@oracle/oraclejet 14.0.9 → 14.0.11

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 (935) hide show
  1. package/README.md +1 -1
  2. package/THIRDPARTYLICENSE.txt +8 -8
  3. package/dist/css/alta/oj-alta-min.css +1 -1
  4. package/dist/css/alta/oj-alta-notag-min.css +1 -1
  5. package/dist/css/alta/oj-alta-notag.css +1 -1
  6. package/dist/css/alta/oj-alta.css +1 -1
  7. package/dist/css/alta-android/oj-alta-min.css +1 -1
  8. package/dist/css/alta-android/oj-alta.css +1 -1
  9. package/dist/css/alta-ios/oj-alta-min.css +1 -1
  10. package/dist/css/alta-ios/oj-alta.css +1 -1
  11. package/dist/css/alta-windows/oj-alta-min.css +1 -1
  12. package/dist/css/alta-windows/oj-alta.css +1 -1
  13. package/dist/css/redwood/oj-redwood-min.css +1 -1
  14. package/dist/css/redwood/oj-redwood-notag-min.css +1 -1
  15. package/dist/css/redwood/oj-redwood-notag.css +1 -1
  16. package/dist/css/redwood/oj-redwood.css +1 -1
  17. package/dist/css/stable/oj-stable-min.css +1 -1
  18. package/dist/css/stable/oj-stable.css +1 -1
  19. package/dist/icu-l10n/Bundler.js +46 -37
  20. package/dist/icu-l10n/README.md +46 -2
  21. package/dist/icu-l10n/l10nBundleBuilder.js +2 -1
  22. package/dist/icu-l10n/package.json +1 -1
  23. package/dist/icu-l10n/test/l10nTest.js +53 -40
  24. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/effects/effect-blind.js +77 -0
  25. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/effects/effect-bounce.js +117 -0
  26. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/effects/effect-clip.js +72 -0
  27. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/effects/effect-drop.js +76 -0
  28. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/effects/effect-explode.js +118 -0
  29. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/effects/effect-fade.js +54 -0
  30. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/effects/effect-fold.js +96 -0
  31. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/effects/effect-highlight.js +64 -0
  32. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/effects/effect-puff.js +50 -0
  33. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/effects/effect-pulsate.js +71 -0
  34. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/effects/effect-scale.js +64 -0
  35. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/effects/effect-shake.js +81 -0
  36. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/effects/effect-size.js +200 -0
  37. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/effects/effect-slide.js +83 -0
  38. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/effects/effect-transfer.js +47 -0
  39. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/i18n/datepicker-af.js +43 -0
  40. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/i18n/datepicker-ar-DZ.js +45 -0
  41. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/i18n/datepicker-ar.js +45 -0
  42. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/i18n/datepicker-az.js +43 -0
  43. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/i18n/datepicker-be.js +43 -0
  44. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/i18n/datepicker-bg.js +44 -0
  45. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/i18n/datepicker-bs.js +43 -0
  46. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/i18n/datepicker-ca.js +43 -0
  47. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/i18n/datepicker-cs.js +43 -0
  48. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/i18n/datepicker-cy-GB.js +51 -0
  49. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/i18n/datepicker-da.js +43 -0
  50. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/i18n/datepicker-de-AT.js +44 -0
  51. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/i18n/datepicker-de.js +43 -0
  52. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/i18n/datepicker-el.js +43 -0
  53. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/i18n/datepicker-en-AU.js +43 -0
  54. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/i18n/datepicker-en-GB.js +43 -0
  55. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/i18n/datepicker-en-NZ.js +43 -0
  56. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/i18n/datepicker-eo.js +43 -0
  57. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/i18n/datepicker-es.js +43 -0
  58. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/i18n/datepicker-et.js +51 -0
  59. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/i18n/datepicker-eu.js +42 -0
  60. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/i18n/datepicker-fa.js +79 -0
  61. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/i18n/datepicker-fi.js +43 -0
  62. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/i18n/datepicker-fo.js +51 -0
  63. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/i18n/datepicker-fr-CA.js +43 -0
  64. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/i18n/datepicker-fr-CH.js +43 -0
  65. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/i18n/datepicker-fr.js +45 -0
  66. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/i18n/datepicker-gl.js +43 -0
  67. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/i18n/datepicker-he.js +43 -0
  68. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/i18n/datepicker-hi.js +43 -0
  69. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/i18n/datepicker-hr.js +43 -0
  70. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/i18n/datepicker-hu.js +42 -0
  71. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/i18n/datepicker-hy.js +43 -0
  72. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/i18n/datepicker-id.js +44 -0
  73. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/i18n/datepicker-is.js +51 -0
  74. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/i18n/datepicker-it-CH.js +43 -0
  75. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/i18n/datepicker-it.js +43 -0
  76. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/i18n/datepicker-ja.js +43 -0
  77. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/i18n/datepicker-ka.js +54 -0
  78. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/i18n/datepicker-kk.js +43 -0
  79. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/i18n/datepicker-km.js +43 -0
  80. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/i18n/datepicker-ko.js +43 -0
  81. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/i18n/datepicker-ky.js +44 -0
  82. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/i18n/datepicker-lb.js +51 -0
  83. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/i18n/datepicker-lt.js +51 -0
  84. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/i18n/datepicker-lv.js +51 -0
  85. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/i18n/datepicker-mk.js +43 -0
  86. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/i18n/datepicker-ml.js +43 -0
  87. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/i18n/datepicker-ms.js +43 -0
  88. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/i18n/datepicker-nb.js +55 -0
  89. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/i18n/datepicker-nl-BE.js +43 -0
  90. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/i18n/datepicker-nl.js +43 -0
  91. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/i18n/datepicker-nn.js +55 -0
  92. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/i18n/datepicker-no.js +56 -0
  93. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/i18n/datepicker-pl.js +43 -0
  94. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/i18n/datepicker-pt-BR.js +51 -0
  95. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/i18n/datepicker-pt.js +50 -0
  96. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/i18n/datepicker-rm.js +67 -0
  97. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/i18n/datepicker-ro.js +46 -0
  98. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/i18n/datepicker-ru.js +43 -0
  99. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/i18n/datepicker-sk.js +43 -0
  100. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/i18n/datepicker-sl.js +44 -0
  101. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/i18n/datepicker-sq.js +43 -0
  102. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/i18n/datepicker-sr-SR.js +43 -0
  103. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/i18n/datepicker-sr.js +43 -0
  104. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/i18n/datepicker-sv.js +43 -0
  105. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/i18n/datepicker-ta.js +59 -0
  106. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/i18n/datepicker-th.js +43 -0
  107. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/i18n/datepicker-tj.js +43 -0
  108. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/i18n/datepicker-tr.js +43 -0
  109. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/i18n/datepicker-uk.js +44 -0
  110. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/i18n/datepicker-vi.js +43 -0
  111. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/i18n/datepicker-zh-CN.js +43 -0
  112. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/i18n/datepicker-zh-HK.js +43 -0
  113. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/i18n/datepicker-zh-TW.js +43 -0
  114. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/vendor/jquery-color/jquery.color.js +1 -1
  115. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/version.js +1 -0
  116. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/widgets/accordion.js +628 -0
  117. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/widgets/autocomplete.js +686 -0
  118. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/widgets/button.js +455 -0
  119. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/widgets/checkboxradio.js +295 -0
  120. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/widgets/controlgroup.js +305 -0
  121. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/widgets/datepicker.js +2244 -0
  122. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/widgets/dialog.js +969 -0
  123. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/widgets/draggable.js +2 -2
  124. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/widgets/droppable.js +509 -0
  125. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/widgets/menu.js +721 -0
  126. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/widgets/progressbar.js +185 -0
  127. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/widgets/resizable.js +1226 -0
  128. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/widgets/selectable.js +322 -0
  129. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/widgets/selectmenu.js +703 -0
  130. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/widgets/slider.js +761 -0
  131. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/widgets/spinner.js +589 -0
  132. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/widgets/tabs.js +932 -0
  133. package/dist/js/libs/jquery/jqueryui-amd-1.13.2/widgets/tooltip.js +534 -0
  134. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/core.js +1 -1
  135. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/data.js +1 -1
  136. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/disable-selection.js +1 -1
  137. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/effect.js +1 -1
  138. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/effects/effect-blind.js +9 -0
  139. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/effects/effect-bounce.js +9 -0
  140. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/effects/effect-clip.js +9 -0
  141. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/effects/effect-drop.js +9 -0
  142. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/effects/effect-explode.js +9 -0
  143. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/effects/effect-fade.js +9 -0
  144. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/effects/effect-fold.js +9 -0
  145. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/effects/effect-highlight.js +9 -0
  146. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/effects/effect-puff.js +9 -0
  147. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/effects/effect-pulsate.js +9 -0
  148. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/effects/effect-scale.js +9 -0
  149. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/effects/effect-shake.js +9 -0
  150. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/effects/effect-size.js +9 -0
  151. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/effects/effect-slide.js +9 -0
  152. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/effects/effect-transfer.js +9 -0
  153. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/focusable.js +1 -1
  154. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/form-reset-mixin.js +1 -1
  155. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/form.js +1 -1
  156. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/i18n/datepicker-af.js +1 -0
  157. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/i18n/datepicker-ar-DZ.js +1 -0
  158. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/i18n/datepicker-ar.js +1 -0
  159. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/i18n/datepicker-az.js +1 -0
  160. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/i18n/datepicker-be.js +1 -0
  161. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/i18n/datepicker-bg.js +1 -0
  162. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/i18n/datepicker-bs.js +1 -0
  163. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/i18n/datepicker-ca.js +1 -0
  164. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/i18n/datepicker-cs.js +1 -0
  165. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/i18n/datepicker-cy-GB.js +1 -0
  166. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/i18n/datepicker-da.js +1 -0
  167. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/i18n/datepicker-de-AT.js +1 -0
  168. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/i18n/datepicker-de.js +1 -0
  169. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/i18n/datepicker-el.js +1 -0
  170. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/i18n/datepicker-en-AU.js +1 -0
  171. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/i18n/datepicker-en-GB.js +1 -0
  172. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/i18n/datepicker-en-NZ.js +1 -0
  173. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/i18n/datepicker-eo.js +1 -0
  174. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/i18n/datepicker-es.js +1 -0
  175. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/i18n/datepicker-et.js +1 -0
  176. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/i18n/datepicker-eu.js +1 -0
  177. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/i18n/datepicker-fa.js +1 -0
  178. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/i18n/datepicker-fi.js +1 -0
  179. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/i18n/datepicker-fo.js +1 -0
  180. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/i18n/datepicker-fr-CA.js +1 -0
  181. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/i18n/datepicker-fr-CH.js +1 -0
  182. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/i18n/datepicker-fr.js +1 -0
  183. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/i18n/datepicker-gl.js +1 -0
  184. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/i18n/datepicker-he.js +1 -0
  185. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/i18n/datepicker-hi.js +1 -0
  186. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/i18n/datepicker-hr.js +1 -0
  187. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/i18n/datepicker-hu.js +1 -0
  188. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/i18n/datepicker-hy.js +1 -0
  189. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/i18n/datepicker-id.js +1 -0
  190. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/i18n/datepicker-is.js +1 -0
  191. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/i18n/datepicker-it-CH.js +1 -0
  192. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/i18n/datepicker-it.js +1 -0
  193. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/i18n/datepicker-ja.js +1 -0
  194. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/i18n/datepicker-ka.js +1 -0
  195. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/i18n/datepicker-kk.js +1 -0
  196. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/i18n/datepicker-km.js +1 -0
  197. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/i18n/datepicker-ko.js +1 -0
  198. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/i18n/datepicker-ky.js +1 -0
  199. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/i18n/datepicker-lb.js +1 -0
  200. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/i18n/datepicker-lt.js +1 -0
  201. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/i18n/datepicker-lv.js +1 -0
  202. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/i18n/datepicker-mk.js +1 -0
  203. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/i18n/datepicker-ml.js +1 -0
  204. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/i18n/datepicker-ms.js +1 -0
  205. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/i18n/datepicker-nb.js +1 -0
  206. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/i18n/datepicker-nl-BE.js +1 -0
  207. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/i18n/datepicker-nl.js +1 -0
  208. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/i18n/datepicker-nn.js +1 -0
  209. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/i18n/datepicker-no.js +1 -0
  210. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/i18n/datepicker-pl.js +1 -0
  211. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/i18n/datepicker-pt-BR.js +1 -0
  212. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/i18n/datepicker-pt.js +1 -0
  213. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/i18n/datepicker-rm.js +1 -0
  214. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/i18n/datepicker-ro.js +1 -0
  215. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/i18n/datepicker-ru.js +1 -0
  216. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/i18n/datepicker-sk.js +1 -0
  217. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/i18n/datepicker-sl.js +1 -0
  218. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/i18n/datepicker-sq.js +1 -0
  219. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/i18n/datepicker-sr-SR.js +1 -0
  220. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/i18n/datepicker-sr.js +1 -0
  221. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/i18n/datepicker-sv.js +1 -0
  222. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/i18n/datepicker-ta.js +1 -0
  223. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/i18n/datepicker-th.js +1 -0
  224. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/i18n/datepicker-tj.js +1 -0
  225. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/i18n/datepicker-tr.js +1 -0
  226. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/i18n/datepicker-uk.js +1 -0
  227. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/i18n/datepicker-vi.js +1 -0
  228. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/i18n/datepicker-zh-CN.js +1 -0
  229. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/i18n/datepicker-zh-HK.js +1 -0
  230. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/i18n/datepicker-zh-TW.js +1 -0
  231. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/ie.js +1 -1
  232. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/jquery-patch.js +1 -1
  233. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/jquery-var-for-color.js +1 -1
  234. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/keycode.js +1 -1
  235. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/labels.js +1 -1
  236. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/plugin.js +1 -1
  237. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/position.js +1 -1
  238. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/safe-active-element.js +1 -1
  239. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/safe-blur.js +1 -1
  240. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/scroll-parent.js +1 -1
  241. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/tabbable.js +1 -1
  242. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/unique-id.js +1 -1
  243. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/vendor/jquery-color/jquery.color.js +1 -1
  244. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/version.js +1 -1
  245. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/widget.js +1 -1
  246. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/widgets/accordion.js +9 -0
  247. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/widgets/autocomplete.js +9 -0
  248. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/widgets/button.js +9 -0
  249. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/widgets/checkboxradio.js +9 -0
  250. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/widgets/controlgroup.js +9 -0
  251. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/widgets/datepicker.js +9 -0
  252. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/widgets/dialog.js +9 -0
  253. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/widgets/draggable.js +1 -1
  254. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/widgets/droppable.js +9 -0
  255. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/widgets/menu.js +9 -0
  256. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/widgets/mouse.js +1 -1
  257. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/widgets/progressbar.js +9 -0
  258. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/widgets/resizable.js +9 -0
  259. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/widgets/selectable.js +9 -0
  260. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/widgets/selectmenu.js +9 -0
  261. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/widgets/slider.js +9 -0
  262. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/widgets/sortable.js +1 -1
  263. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/widgets/spinner.js +9 -0
  264. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/widgets/tabs.js +9 -0
  265. package/dist/js/libs/jquery/jqueryui-amd-1.13.2.min/widgets/tooltip.js +9 -0
  266. package/dist/js/libs/oj/debug/ojcore-base.js +2 -2
  267. package/dist/js/libs/oj/debug/ojdatetimepicker.js +29 -17
  268. package/dist/js/libs/oj/debug/ojdiagram-toolkit.js +4 -3
  269. package/dist/js/libs/oj/debug/ojflattenedtreedataproviderview.js +61 -57
  270. package/dist/js/libs/oj/debug/ojtable.js +132 -134
  271. package/dist/js/libs/oj/debug_esm/ojcore-base.js +2 -2
  272. package/dist/js/libs/oj/debug_esm/ojdatetimepicker.js +29 -17
  273. package/dist/js/libs/oj/debug_esm/ojdiagram-toolkit.js +4 -3
  274. package/dist/js/libs/oj/debug_esm/ojflattenedtreedataproviderview.js +61 -57
  275. package/dist/js/libs/oj/debug_esm/ojtable.js +132 -134
  276. package/dist/js/libs/oj/main-template.js +3 -3
  277. package/dist/js/libs/oj/min/ojcore-base.js +1 -1
  278. package/dist/js/libs/oj/min/ojcore-base.js.map +1 -1
  279. package/dist/js/libs/oj/min/ojdatetimepicker.js +1 -1
  280. package/dist/js/libs/oj/min/ojdatetimepicker.js.map +1 -1
  281. package/dist/js/libs/oj/min/ojdiagram-toolkit.js +1 -1
  282. package/dist/js/libs/oj/min/ojdiagram-toolkit.js.map +1 -1
  283. package/dist/js/libs/oj/min/ojflattenedtreedataproviderview.js +1 -1
  284. package/dist/js/libs/oj/min/ojflattenedtreedataproviderview.js.map +1 -1
  285. package/dist/js/libs/oj/min/ojtable.js +1 -1
  286. package/dist/js/libs/oj/min/ojtable.js.map +1 -1
  287. package/dist/metadata/components/allComponents.json +239 -239
  288. package/dist/package-backup.json +1 -1
  289. package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/helpers/themes/base/_oj-helpers.scss +1 -1
  290. package/dist/scss/common/helpers/_oj.common.helpers.scss +1 -1
  291. package/dist/webpack-tools/4.x/webpack.config.js +3 -3
  292. package/dist/webpack-tools/webpack.config.js +3 -3
  293. package/package.json +2 -2
  294. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/accordion/themes/base/_oj-accordion.scss +0 -0
  295. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/accordion/themes/redwood/_oj-accordion.cssvars.scss +0 -0
  296. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/accordion/themes/redwood/oj-accordion.scss +0 -0
  297. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/accordion/themes/stable/_oj-accordion.cssvars.scss +0 -0
  298. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/accordion/themes/stable/oj-accordion.scss +0 -0
  299. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/action-card/themes/base/_oj-action-card.scss +0 -0
  300. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/action-card/themes/redwood/_oj-action-card.cssvars.scss +0 -0
  301. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/action-card/themes/redwood/oj-action-card.scss +0 -0
  302. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/action-card/themes/stable/_oj-action-card.cssvars.scss +0 -0
  303. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/action-card/themes/stable/oj-action-card.scss +0 -0
  304. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/all-components/themes/base/_oj.common.servervars.scss +0 -0
  305. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/all-components/themes/base/oj.common.settings.cssvariables.css +0 -0
  306. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/all-components/themes/redwood/_oj-all-components-common.scss +0 -0
  307. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/all-components/themes/redwood/_oj-all-components-notag.scss +0 -0
  308. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/all-components/themes/redwood/_oj-all-components.scss +0 -0
  309. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/all-components/themes/redwood/_oj.redwood.settings.scss +0 -0
  310. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/all-components/themes/redwood/oj.redwood.cssvars.settings.css +0 -0
  311. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/all-components/themes/stable/_oj-all-components-common.scss +0 -0
  312. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/all-components/themes/stable/_oj-all-components-notag.scss +0 -0
  313. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/all-components/themes/stable/_oj-all-components.scss +0 -0
  314. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/all-components/themes/stable/_oj.stable.settings.scss +0 -0
  315. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/all-components/themes/stable/oj.stable.cssvars.settings.css +0 -0
  316. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/animation/themes/base/_oj-animation.scss +0 -0
  317. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/animation/themes/redwood/_oj-animation.cssvars.scss +0 -0
  318. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/animation/themes/redwood/_oj-animation.servervars.scss +0 -0
  319. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/animation/themes/redwood/oj-animation.scss +0 -0
  320. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/animation/themes/stable/_oj-animation.cssvars.scss +0 -0
  321. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/animation/themes/stable/_oj-animation.servervars.scss +0 -0
  322. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/animation/themes/stable/oj-animation.scss +0 -0
  323. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/app-layout/themes/base/_oj-app-layout.scss +0 -0
  324. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/app-layout/themes/redwood/_oj-app-layout.cssvars.scss +0 -0
  325. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/app-layout/themes/redwood/_oj-app-layout.scss +0 -0
  326. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/app-layout/themes/stable/_oj-app-layout.cssvars.scss +0 -0
  327. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/app-layout/themes/stable/_oj-app-layout.scss +0 -0
  328. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/app-layout-hybrid/themes/base/_oj-app-layout-hybrid-ignore.scoped.cssvars.scss +0 -0
  329. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/app-layout-hybrid/themes/base/_oj-app-layout-hybrid.scss +0 -0
  330. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/app-layout-hybrid/themes/redwood/_oj-app-layout-hybrid.cssvars.scss +0 -0
  331. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/app-layout-hybrid/themes/redwood/oj-app-layout-hybrid.scss +0 -0
  332. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/app-layout-hybrid/themes/stable/_oj-app-layout-hybrid.cssvars.scss +0 -0
  333. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/app-layout-hybrid/themes/stable/oj-app-layout-hybrid.scss +0 -0
  334. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/app-layout-web/themes/base/_oj-app-layout-web.scss +0 -0
  335. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/app-layout-web/themes/redwood/_oj-app-layout-web.cssvars.scss +0 -0
  336. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/app-layout-web/themes/redwood/oj-app-layout-web.scss +0 -0
  337. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/app-layout-web/themes/stable/_oj-app-layout-web.cssvars.scss +0 -0
  338. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/app-layout-web/themes/stable/oj-app-layout-web.scss +0 -0
  339. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/avatar/themes/base/_oj-avatar.scss +0 -0
  340. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/avatar/themes/redwood/_oj-avatar-ignore.scoped.cssvars.scss +0 -0
  341. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/avatar/themes/redwood/_oj-avatar-scoped.cssvars.scss +0 -0
  342. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/avatar/themes/redwood/_oj-avatar.cssvars.scss +0 -0
  343. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/avatar/themes/redwood/oj-avatar.scss +0 -0
  344. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/avatar/themes/stable/_oj-avatar-scoped.cssvars.scss +0 -0
  345. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/avatar/themes/stable/_oj-avatar.cssvars.scss +0 -0
  346. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/avatar/themes/stable/oj-avatar.scss +0 -0
  347. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/badge/themes/base/_oj-badge.scss +0 -0
  348. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/badge/themes/redwood/_oj-badge-ignore.scoped.cssvars.scss +0 -0
  349. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/badge/themes/redwood/_oj-badge-scoped.cssvars.scss +0 -0
  350. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/badge/themes/redwood/_oj-badge.cssvars.scss +0 -0
  351. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/badge/themes/redwood/oj-badge.scss +0 -0
  352. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/badge/themes/stable/_oj-badge-scoped.cssvars.scss +0 -0
  353. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/badge/themes/stable/_oj-badge.cssvars.scss +0 -0
  354. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/badge/themes/stable/oj-badge.scss +0 -0
  355. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/button/themes/base/_oj-button.scss +0 -0
  356. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/button/themes/redwood/_oj-button-ignore.scoped.cssvars.scss +0 -0
  357. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/button/themes/redwood/_oj-button-scoped.cssvars.scss +0 -0
  358. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/button/themes/redwood/_oj-button.cssvars.scss +0 -0
  359. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/button/themes/redwood/oj-button.scss +0 -0
  360. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/button/themes/stable/_oj-button-ignore.scoped.cssvars.scss +0 -0
  361. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/button/themes/stable/_oj-button-scoped.cssvars.scss +0 -0
  362. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/button/themes/stable/_oj-button.cssvars.scss +0 -0
  363. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/button/themes/stable/oj-button.scss +0 -0
  364. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/buttonset/themes/base/_oj-buttonset.scss +0 -0
  365. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/buttonset/themes/redwood/_oj-buttonset-scoped.cssvars.scss +0 -0
  366. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/buttonset/themes/redwood/_oj-buttonset.cssvars.scss +0 -0
  367. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/buttonset/themes/redwood/_oj-buttonset.scss +0 -0
  368. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/buttonset/themes/stable/_oj-buttonset-scoped.cssvars.scss +0 -0
  369. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/buttonset/themes/stable/_oj-buttonset.cssvars.scss +0 -0
  370. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/buttonset/themes/stable/_oj-buttonset.scss +0 -0
  371. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/buttonset-many/themes/redwood/oj-buttonset-many.scss +0 -0
  372. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/buttonset-many/themes/stable/oj-buttonset-many.scss +0 -0
  373. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/buttonset-one/themes/redwood/oj-buttonset-one.scss +0 -0
  374. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/buttonset-one/themes/stable/oj-buttonset-one.scss +0 -0
  375. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/chart/themes/base/_oj-chart.scss +0 -0
  376. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/chart/themes/redwood/_oj-chart.cssvars.scss +0 -0
  377. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/chart/themes/redwood/oj-chart.scss +0 -0
  378. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/chart/themes/stable/_oj-chart.cssvars.scss +0 -0
  379. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/chart/themes/stable/oj-chart.scss +0 -0
  380. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/checkboxset/themes/redwood/_oj-checkboxset.cssvars.scss +0 -0
  381. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/checkboxset/themes/redwood/oj-checkboxset.scss +0 -0
  382. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/checkboxset/themes/stable/_oj-checkboxset.cssvars.scss +0 -0
  383. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/checkboxset/themes/stable/oj-checkboxset.scss +0 -0
  384. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/collapsible/themes/base/_oj-collapsible.scss +0 -0
  385. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/collapsible/themes/redwood/_oj-collapsible.cssvars.scss +0 -0
  386. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/collapsible/themes/redwood/oj-collapsible.scss +0 -0
  387. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/collapsible/themes/stable/_oj-collapsible.cssvars.scss +0 -0
  388. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/collapsible/themes/stable/oj-collapsible.scss +0 -0
  389. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/collection/themes/redwood/_oj-collection-ignore.scoped.cssvars.scss +0 -0
  390. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/collection/themes/redwood/_oj-collection-scoped.cssvars.scss +0 -0
  391. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/collection/themes/redwood/_oj-collection.cssvars.scss +0 -0
  392. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/collection/themes/stable/_oj-collection.cssvars.scss +0 -0
  393. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/color-palette/themes/base/_oj-color-palette.scss +0 -0
  394. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/color-palette/themes/redwood/_oj-color-palette.cssvars.scss +0 -0
  395. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/color-palette/themes/redwood/oj-color-palette.scss +0 -0
  396. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/color-palette/themes/stable/_oj-color-palette.cssvars.scss +0 -0
  397. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/color-palette/themes/stable/oj-color-palette.scss +0 -0
  398. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/color-spectrum/themes/base/_oj-color-spectrum.scss +0 -0
  399. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/color-spectrum/themes/redwood/_oj-color-spectrum.cssvars.scss +0 -0
  400. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/color-spectrum/themes/redwood/oj-color-spectrum.scss +0 -0
  401. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/color-spectrum/themes/stable/_oj-color-spectrum.cssvars.scss +0 -0
  402. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/color-spectrum/themes/stable/oj-color-spectrum.scss +0 -0
  403. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/combobox/themes/base/_oj-combobox.scss +0 -0
  404. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/combobox/themes/redwood/_oj-combobox.cssvars.scss +0 -0
  405. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/combobox/themes/redwood/_oj-combobox.scss +0 -0
  406. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/combobox/themes/stable/_oj-combobox.cssvars.scss +0 -0
  407. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/combobox/themes/stable/_oj-combobox.scss +0 -0
  408. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/combobox-many/themes/redwood/oj-combobox-many.scss +0 -0
  409. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/combobox-many/themes/stable/oj-combobox-many.scss +0 -0
  410. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/combobox-one/themes/redwood/oj-combobox-one.scss +0 -0
  411. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/combobox-one/themes/stable/oj-combobox-one.scss +0 -0
  412. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/conveyor-belt/themes/base/_oj-conveyor-belt.scss +0 -0
  413. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/conveyor-belt/themes/redwood/_oj-conveyor-belt.cssvars.scss +0 -0
  414. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/conveyor-belt/themes/redwood/oj-conveyor-belt.scss +0 -0
  415. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/conveyor-belt/themes/stable/_oj-conveyor-belt.cssvars.scss +0 -0
  416. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/conveyor-belt/themes/stable/oj-conveyor-belt.scss +0 -0
  417. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/core/themes/redwood/_oj-core-ignore.scoped.cssvars.scss +0 -0
  418. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/core/themes/redwood/_oj-core-scoped.cssvars.scss +0 -0
  419. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/core/themes/redwood/_oj-core.cssvars.scss +0 -0
  420. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/core/themes/stable/_oj-core-ignore.scoped.cssvars.scss +0 -0
  421. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/core/themes/stable/_oj-core-scoped.cssvars.scss +0 -0
  422. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/core/themes/stable/_oj-core.cssvars.scss +0 -0
  423. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/data-grid/themes/base/_oj-data-grid.scss +0 -0
  424. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/data-grid/themes/redwood/_oj-data-grid-scoped.cssvars.scss +0 -0
  425. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/data-grid/themes/redwood/_oj-data-grid.cssvars.scss +0 -0
  426. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/data-grid/themes/redwood/oj-data-grid.scss +0 -0
  427. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/data-grid/themes/stable/_oj-data-grid-scoped.cssvars.scss +0 -0
  428. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/data-grid/themes/stable/_oj-data-grid.cssvars.scss +0 -0
  429. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/data-grid/themes/stable/oj-data-grid.scss +0 -0
  430. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/date-picker/themes/redwood/oj-date-picker.scss +0 -0
  431. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/date-picker/themes/stable/oj-date-picker.scss +0 -0
  432. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/date-time-picker/themes/base/_oj-date-time-picker.scss +0 -0
  433. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/date-time-picker/themes/redwood/_oj-date-time-picker.cssvars.scss +0 -0
  434. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/date-time-picker/themes/redwood/_oj-date-time-picker.servervars.scss +0 -0
  435. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/date-time-picker/themes/redwood/oj-date-time-picker.scss +0 -0
  436. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/date-time-picker/themes/stable/_oj-date-time-picker.cssvars.scss +0 -0
  437. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/date-time-picker/themes/stable/_oj-date-time-picker.servervars.scss +0 -0
  438. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/date-time-picker/themes/stable/oj-date-time-picker.scss +0 -0
  439. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/diagram/themes/base/_oj-diagram.scss +0 -0
  440. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/diagram/themes/redwood/_oj-diagram.cssvars.scss +0 -0
  441. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/diagram/themes/redwood/oj-diagram.scss +0 -0
  442. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/diagram/themes/stable/_oj-diagram.cssvars.scss +0 -0
  443. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/diagram/themes/stable/oj-diagram.scss +0 -0
  444. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/dialog/themes/base/_oj-dialog-ignore.scoped.cssvars.scss +0 -0
  445. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/dialog/themes/base/_oj-dialog.scss +0 -0
  446. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/dialog/themes/redwood/_oj-dialog-ignore.scoped.cssvars.scss +0 -0
  447. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/dialog/themes/redwood/_oj-dialog-scoped.cssvars.scss +0 -0
  448. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/dialog/themes/redwood/_oj-dialog.cssvars.scss +0 -0
  449. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/dialog/themes/redwood/_oj-dialog.servervars.scss +0 -0
  450. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/dialog/themes/redwood/oj-dialog.scss +0 -0
  451. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/dialog/themes/stable/_oj-dialog-scoped.cssvars.scss +0 -0
  452. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/dialog/themes/stable/_oj-dialog.cssvars.scss +0 -0
  453. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/dialog/themes/stable/_oj-dialog.servervars.scss +0 -0
  454. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/dialog/themes/stable/oj-dialog.scss +0 -0
  455. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/drawer-layout/themes/base/_oj-drawer-layout-ignore.scoped.cssvars.scss +0 -0
  456. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/drawer-layout/themes/base/_oj-drawer-layout.scss +0 -0
  457. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/drawer-layout/themes/redwood/_oj-drawer-layout.cssvars.scss +0 -0
  458. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/drawer-layout/themes/redwood/oj-drawer-layout.scss +0 -0
  459. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/drawer-layout/themes/stable/_oj-drawer-layout.cssvars.scss +0 -0
  460. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/drawer-layout/themes/stable/oj-drawer-layout.scss +0 -0
  461. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/drawer-popup/themes/base/_oj-drawer-popup-ignore.scoped.cssvars.scss +0 -0
  462. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/drawer-popup/themes/base/_oj-drawer-popup.scss +0 -0
  463. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/drawer-popup/themes/redwood/_oj-drawer-popup.cssvars.scss +0 -0
  464. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/drawer-popup/themes/redwood/oj-drawer-popup.scss +0 -0
  465. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/drawer-popup/themes/stable/_oj-drawer-popup.cssvars.scss +0 -0
  466. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/drawer-popup/themes/stable/oj-drawer-popup.scss +0 -0
  467. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/dvt/themes/base/_oj-dvt.scss +0 -0
  468. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/dvt/themes/redwood/_oj-dvt.cssvars.scss +0 -0
  469. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/dvt/themes/redwood/_oj-dvt.scss +0 -0
  470. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/dvt/themes/stable/_oj-dvt.cssvars.scss +0 -0
  471. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/dvt/themes/stable/_oj-dvt.scss +0 -0
  472. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/file-picker/themes/base/_oj-file-picker.scss +0 -0
  473. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/file-picker/themes/redwood/_oj-file-picker.cssvars.scss +0 -0
  474. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/file-picker/themes/redwood/oj-file-picker.scss +0 -0
  475. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/file-picker/themes/stable/_oj-file-picker.cssvars.scss +0 -0
  476. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/file-picker/themes/stable/oj-file-picker.scss +0 -0
  477. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/film-strip/themes/base/_oj-film-strip.scss +0 -0
  478. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/film-strip/themes/redwood/_oj-film-strip.cssvars.scss +0 -0
  479. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/film-strip/themes/redwood/oj-film-strip.scss +0 -0
  480. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/film-strip/themes/stable/_oj-film-strip.cssvars.scss +0 -0
  481. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/film-strip/themes/stable/oj-film-strip.scss +0 -0
  482. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/flex/themes/base/_oj-flex.scss +0 -0
  483. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/flex/themes/redwood/oj-flex.scss +0 -0
  484. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/flex/themes/stable/oj-flex.scss +0 -0
  485. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/form-control/themes/base/_oj-form-control.mixins.scss +0 -0
  486. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/form-control/themes/base/_oj-form-control.scss +0 -0
  487. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/form-control/themes/base/_oj-messaging.scss +0 -0
  488. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/form-control/themes/redwood/_oj-form-control.cssvars.scss +0 -0
  489. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/form-control/themes/redwood/_oj-form-control.scss +0 -0
  490. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/form-control/themes/redwood/_oj-messaging.scss +0 -0
  491. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/form-control/themes/redwood/_oj-messaging.servervars.scss +0 -0
  492. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/form-control/themes/stable/_oj-form-control.cssvars.scss +0 -0
  493. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/form-control/themes/stable/_oj-form-control.scss +0 -0
  494. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/form-control/themes/stable/_oj-messaging.scss +0 -0
  495. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/form-control/themes/stable/_oj-messaging.servervars.scss +0 -0
  496. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/form-layout/themes/base/_oj-form-layout.scss +0 -0
  497. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/form-layout/themes/redwood/_oj-form-layout-scoped.cssvars.scss +0 -0
  498. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/form-layout/themes/redwood/_oj-form-layout.cssvars.scss +0 -0
  499. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/form-layout/themes/redwood/_oj-form-layout.servervars.scss +0 -0
  500. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/form-layout/themes/redwood/oj-form-layout.scss +0 -0
  501. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/form-layout/themes/stable/_oj-form-layout.cssvars.scss +0 -0
  502. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/form-layout/themes/stable/_oj-form-layout.servervars.scss +0 -0
  503. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/form-layout/themes/stable/oj-form-layout.scss +0 -0
  504. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/gantt/themes/base/_oj-gantt.scss +0 -0
  505. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/gantt/themes/redwood/_oj-gantt.cssvars.scss +0 -0
  506. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/gantt/themes/redwood/oj-gantt.scss +0 -0
  507. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/gantt/themes/stable/_oj-gantt.cssvars.scss +0 -0
  508. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/gantt/themes/stable/oj-gantt.scss +0 -0
  509. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/gauge/themes/base/_oj-gauge.scss +0 -0
  510. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/gauge/themes/redwood/_oj-gauge.cssvars.scss +0 -0
  511. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/gauge/themes/redwood/oj-gauge.scss +0 -0
  512. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/gauge/themes/stable/_oj-gauge.cssvars.scss +0 -0
  513. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/gauge/themes/stable/oj-gauge.scss +0 -0
  514. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/grid/themes/base/_oj-grid.scss +0 -0
  515. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/grid/themes/redwood/oj-grid.scss +0 -0
  516. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/grid/themes/stable/oj-grid.scss +0 -0
  517. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/helpers/themes/base/_oj-helpers-ignore.scoped.cssvars.scss +0 -0
  518. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/helpers/themes/base/_oj-responsive-helpers.scss +0 -0
  519. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/helpers/themes/redwood/_oj-theme.servervars.scss +0 -0
  520. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/helpers/themes/redwood/oj-helpers.scss +0 -0
  521. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/helpers/themes/redwood/oj-responsive.helpers.scss +0 -0
  522. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/helpers/themes/stable/_oj-theme.servervars.scss +0 -0
  523. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/helpers/themes/stable/oj-helpers.scss +0 -0
  524. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/helpers/themes/stable/oj-responsive.helpers.scss +0 -0
  525. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/highlight-text/themes/base/_oj-highlight-text.scss +0 -0
  526. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/highlight-text/themes/redwood/oj-highlight-text.scss +0 -0
  527. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/highlight-text/themes/stable/oj-highlight-text.scss +0 -0
  528. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/icon-circle/themes/base/_oj-icon-circle.scss +0 -0
  529. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/icon-circle/themes/redwood/_oj-icon-circle-ignore.scoped.cssvars.scss +0 -0
  530. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/icon-circle/themes/redwood/_oj-icon-circle.cssvars.scss +0 -0
  531. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/icon-circle/themes/redwood/oj-icon-circle.scss +0 -0
  532. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/icons/themes/base/_oj-icons.scss +0 -0
  533. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/icons/themes/redwood/_oj-icon-font.scss +0 -0
  534. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/icons/themes/redwood/_oj-icons-ignore.scoped.cssvars.scss +0 -0
  535. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/icons/themes/redwood/_oj-icons.cssvars.scss +0 -0
  536. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/icons/themes/redwood/oj-icons.scss +0 -0
  537. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/icons/themes/stable/_oj-icon-font.scss +0 -0
  538. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/icons/themes/stable/_oj-icons-ignore.scoped.cssvars.scss +0 -0
  539. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/icons/themes/stable/_oj-icons.cssvars.scss +0 -0
  540. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/icons/themes/stable/oj-icons.scss +0 -0
  541. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/indexer/themes/base/_oj-indexer.scss +0 -0
  542. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/indexer/themes/redwood/_oj-indexer.cssvars.scss +0 -0
  543. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/indexer/themes/redwood/oj-indexer.scss +0 -0
  544. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/indexer/themes/stable/_oj-indexer.cssvars.scss +0 -0
  545. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/indexer/themes/stable/oj-indexer.scss +0 -0
  546. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/input-date/themes/redwood/oj-input-date.scss +0 -0
  547. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/input-date/themes/stable/oj-input-date.scss +0 -0
  548. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/input-date-time/themes/redwood/oj-input-date-time.scss +0 -0
  549. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/input-date-time/themes/stable/oj-input-date-time.scss +0 -0
  550. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/input-number/themes/base/_oj-input-number.scss +0 -0
  551. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/input-number/themes/redwood/_oj-input-number.cssvars.scss +0 -0
  552. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/input-number/themes/redwood/oj-input-number.scss +0 -0
  553. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/input-number/themes/stable/_oj-input-number.cssvars.scss +0 -0
  554. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/input-number/themes/stable/oj-input-number.scss +0 -0
  555. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/input-password/themes/redwood/oj-input-password.scss +0 -0
  556. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/input-password/themes/stable/oj-input-password.scss +0 -0
  557. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/input-search/themes/base/_oj-input-search.scss +0 -0
  558. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/input-search/themes/redwood/_oj-input-search-scoped.cssvars.scss +0 -0
  559. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/input-search/themes/redwood/_oj-input-search.cssvars.scss +0 -0
  560. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/input-search/themes/redwood/_oj-input-search.scss +0 -0
  561. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/input-search/themes/stable/_oj-input-search-scoped.cssvars.scss +0 -0
  562. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/input-search/themes/stable/_oj-input-search.cssvars.scss +0 -0
  563. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/input-search/themes/stable/_oj-input-search.scss +0 -0
  564. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/input-text/themes/base/_oj-input-text.scss +0 -0
  565. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/input-text/themes/redwood/_oj-input-text.cssvars.scss +0 -0
  566. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/input-text/themes/redwood/oj-input-text.scss +0 -0
  567. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/input-text/themes/stable/_oj-input-text.cssvars.scss +0 -0
  568. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/input-text/themes/stable/oj-input-text.scss +0 -0
  569. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/input-time/themes/redwood/oj-input-time.scss +0 -0
  570. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/input-time/themes/stable/oj-input-time.scss +0 -0
  571. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/label/themes/base/_oj-label.scss +0 -0
  572. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/label/themes/redwood/_oj-label-scoped.cssvars.scss +0 -0
  573. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/label/themes/redwood/_oj-label.cssvars.scss +0 -0
  574. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/label/themes/redwood/oj-label.scss +0 -0
  575. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/label/themes/stable/_oj-label-scoped.cssvars.scss +0 -0
  576. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/label/themes/stable/_oj-label.cssvars.scss +0 -0
  577. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/label/themes/stable/oj-label.scss +0 -0
  578. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/label-value/themes/base/_oj-label-value.scss +0 -0
  579. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/label-value/themes/redwood/_oj-label-value.scss +0 -0
  580. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/label-value/themes/stable/_oj-label-value.scss +0 -0
  581. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/led-gauge/themes/base/_oj-led-gauge.scss +0 -0
  582. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/led-gauge/themes/redwood/_oj-led-gauge.cssvars.scss +0 -0
  583. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/led-gauge/themes/redwood/oj-led-gauge.scss +0 -0
  584. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/led-gauge/themes/stable/_oj-led-gauge.cssvars.scss +0 -0
  585. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/led-gauge/themes/stable/oj-led-gauge.scss +0 -0
  586. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/legend/themes/base/_oj-legend.scss +0 -0
  587. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/legend/themes/redwood/_oj-legend.cssvars.scss +0 -0
  588. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/legend/themes/redwood/oj-legend.scss +0 -0
  589. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/legend/themes/stable/_oj-legend.cssvars.scss +0 -0
  590. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/legend/themes/stable/oj-legend.scss +0 -0
  591. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/list-box/themes/base/_oj-list-box.scss +0 -0
  592. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/list-box/themes/redwood/_oj-list-box.cssvars.scss +0 -0
  593. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/list-box/themes/redwood/_oj-list-box.scss +0 -0
  594. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/list-box/themes/stable/_oj-list-box.cssvars.scss +0 -0
  595. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/list-box/themes/stable/_oj-list-box.scss +0 -0
  596. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/list-item-layout/themes/base/_oj-list-item-layout.scoped.scss +0 -0
  597. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/list-item-layout/themes/base/_oj-list-item-layout.scss +0 -0
  598. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/list-item-layout/themes/redwood/_oj-list-item-layout.cssvars.scss +0 -0
  599. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/list-item-layout/themes/redwood/oj-list-item-layout.scss +0 -0
  600. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/list-item-layout/themes/stable/_oj-list-item-layout.cssvars.scss +0 -0
  601. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/list-item-layout/themes/stable/oj-list-item-layout.scss +0 -0
  602. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/list-view/themes/base/_oj-list-view.scoped.scss +0 -0
  603. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/list-view/themes/base/_oj-list-view.scss +0 -0
  604. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/list-view/themes/redwood/_oj-list-view-ignore.scoped.cssvars.scss +0 -0
  605. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/list-view/themes/redwood/_oj-list-view.cssvars.scss +0 -0
  606. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/list-view/themes/redwood/oj-list-view.scss +0 -0
  607. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/list-view/themes/stable/_oj-list-view.cssvars.scss +0 -0
  608. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/list-view/themes/stable/oj-list-view.scss +0 -0
  609. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/masonry-layout/themes/base/_oj-masonry-layout.scss +0 -0
  610. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/masonry-layout/themes/redwood/_oj-masonry-layout.cssvars.scss +0 -0
  611. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/masonry-layout/themes/redwood/_oj-masonry-layout.servervars.scss +0 -0
  612. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/masonry-layout/themes/redwood/oj-masonry-layout.scss +0 -0
  613. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/masonry-layout/themes/stable/_oj-masonry-layout.cssvars.scss +0 -0
  614. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/masonry-layout/themes/stable/_oj-masonry-layout.servervars.scss +0 -0
  615. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/masonry-layout/themes/stable/oj-masonry-layout.scss +0 -0
  616. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/menu/themes/base/_oj-menu.scss +0 -0
  617. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/menu/themes/redwood/_oj-menu.cssvars.scss +0 -0
  618. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/menu/themes/redwood/oj-menu.scss +0 -0
  619. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/menu/themes/stable/_oj-menu.cssvars.scss +0 -0
  620. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/menu/themes/stable/oj-menu.scss +0 -0
  621. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/menu-button/themes/base/_oj-menu-button.scss +0 -0
  622. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/menu-button/themes/redwood/_oj-menu-button.cssvars.scss +0 -0
  623. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/menu-button/themes/redwood/_oj-menu-button.servervars.scss +0 -0
  624. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/menu-button/themes/redwood/oj-menu-button.scss +0 -0
  625. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/menu-button/themes/stable/_oj-menu-button.cssvars.scss +0 -0
  626. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/menu-button/themes/stable/_oj-menu-button.servervars.scss +0 -0
  627. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/menu-button/themes/stable/oj-menu-button.scss +0 -0
  628. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/menu-select-many/themes/base/_oj-menu-select-many.scss +0 -0
  629. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/menu-select-many/themes/redwood/_oj-menu-select-many.cssvars.scss +0 -0
  630. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/menu-select-many/themes/redwood/oj-menu-select-many.scss +0 -0
  631. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/menu-select-many/themes/stable/_oj-menu-select-many.cssvars.scss +0 -0
  632. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/menu-select-many/themes/stable/oj-menu-select-many.scss +0 -0
  633. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/message/themes/base/_oj-message.scss +0 -0
  634. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/message/themes/redwood/_oj-message-ignore.scoped.cssvars.scss +0 -0
  635. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/message/themes/redwood/_oj-message.cssvars.scss +0 -0
  636. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/message/themes/redwood/_oj-message.servervars.scss +0 -0
  637. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/message/themes/redwood/oj-message.scss +0 -0
  638. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/message/themes/stable/_oj-message-ignore.scoped.cssvars.scss +0 -0
  639. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/message/themes/stable/_oj-message.cssvars.scss +0 -0
  640. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/message/themes/stable/_oj-message.servervars.scss +0 -0
  641. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/message/themes/stable/oj-message.scss +0 -0
  642. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/message-banner/themes/base/_oj-message-banner.scss +0 -0
  643. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/message-banner/themes/redwood/_oj-message-banner-scoped.cssvars.scss +0 -0
  644. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/message-banner/themes/redwood/_oj-message-banner.cssvars.scss +0 -0
  645. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/message-banner/themes/redwood/_oj-message-banner.scss +0 -0
  646. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/message-banner/themes/stable/_oj-message-banner-scoped.cssvars.scss +0 -0
  647. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/message-banner/themes/stable/_oj-message-banner.cssvars.scss +0 -0
  648. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/message-banner/themes/stable/_oj-message-banner.scss +0 -0
  649. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/messages/themes/base/_oj-messages.scss +0 -0
  650. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/messages/themes/redwood/_oj-messages.cssvars.scss +0 -0
  651. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/messages/themes/redwood/_oj-messages.servervars.scss +0 -0
  652. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/messages/themes/redwood/oj-messages.scss +0 -0
  653. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/messages/themes/stable/_oj-messages.cssvars.scss +0 -0
  654. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/messages/themes/stable/_oj-messages.servervars.scss +0 -0
  655. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/messages/themes/stable/oj-messages.scss +0 -0
  656. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/module/themes/base/_oj-module.scss +0 -0
  657. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/module/themes/redwood/oj-module.scss +0 -0
  658. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/module/themes/stable/oj-module.scss +0 -0
  659. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/n-box/themes/base/_oj-n-box.scss +0 -0
  660. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/n-box/themes/redwood/_oj-n-box.cssvars.scss +0 -0
  661. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/n-box/themes/redwood/oj-n-box.scss +0 -0
  662. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/n-box/themes/stable/_oj-n-box.cssvars.scss +0 -0
  663. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/n-box/themes/stable/oj-n-box.scss +0 -0
  664. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/navigation-list/themes/base/_oj-navigation-list.scss +0 -0
  665. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/navigation-list/themes/redwood/_oj-navigation-list-scoped.cssvars.scss +0 -0
  666. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/navigation-list/themes/redwood/_oj-navigation-list.cssvars.scss +0 -0
  667. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/navigation-list/themes/redwood/oj-navigation-list.scss +0 -0
  668. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/navigation-list/themes/stable/_oj-navigation-list-scoped.cssvars.scss +0 -0
  669. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/navigation-list/themes/stable/_oj-navigation-list.cssvars.scss +0 -0
  670. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/navigation-list/themes/stable/oj-navigation-list.scss +0 -0
  671. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/off-canvas/themes/base/_oj-off-canvas.scss +0 -0
  672. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/off-canvas/themes/redwood/_oj-off-canvas.cssvars.scss +0 -0
  673. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/off-canvas/themes/redwood/oj-off-canvas.scss +0 -0
  674. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/off-canvas/themes/stable/_oj-off-canvas.cssvars.scss +0 -0
  675. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/off-canvas/themes/stable/oj-off-canvas.scss +0 -0
  676. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/optgroup/themes/base/_oj-optgroup.scss +0 -0
  677. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/optgroup/themes/redwood/oj-optgroup.scss +0 -0
  678. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/optgroup/themes/stable/oj-optgroup.scss +0 -0
  679. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/option/themes/base/_oj-option.scss +0 -0
  680. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/option/themes/redwood/oj-option.scss +0 -0
  681. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/option/themes/stable/oj-option.scss +0 -0
  682. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/paging-control/themes/base/_oj-paging-control.scss +0 -0
  683. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/paging-control/themes/redwood/_oj-paging-control.cssvars.scss +0 -0
  684. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/paging-control/themes/redwood/oj-paging-control.scss +0 -0
  685. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/paging-control/themes/stable/_oj-paging-control.cssvars.scss +0 -0
  686. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/paging-control/themes/stable/oj-paging-control.scss +0 -0
  687. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/palette/themes/redwood/_oj-palette-scoped.cssvars.scss +0 -0
  688. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/palette/themes/redwood/_oj-palette.cssvars.scss +0 -0
  689. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/palette/themes/stable/_oj-palette.cssvars.scss +0 -0
  690. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/panel/themes/base/_oj-panel-ignore.scoped.cssvars.scss +0 -0
  691. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/panel/themes/base/_oj-panel.scss +0 -0
  692. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/panel/themes/redwood/_oj-panel-scoped.cssvars.scss +0 -0
  693. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/panel/themes/redwood/_oj-panel.cssvars.scss +0 -0
  694. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/panel/themes/redwood/oj-panel.scss +0 -0
  695. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/panel/themes/stable/_oj-panel-scoped.cssvars.scss +0 -0
  696. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/panel/themes/stable/_oj-panel.cssvars.scss +0 -0
  697. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/panel/themes/stable/oj-panel.scss +0 -0
  698. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/picto-chart/themes/base/_oj-picto-chart.scss +0 -0
  699. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/picto-chart/themes/redwood/_oj-picto-chart.cssvars.scss +0 -0
  700. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/picto-chart/themes/redwood/oj-picto-chart.scss +0 -0
  701. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/picto-chart/themes/stable/_oj-picto-chart.cssvars.scss +0 -0
  702. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/picto-chart/themes/stable/oj-picto-chart.scss +0 -0
  703. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/popup/themes/base/_oj-layer.scss +0 -0
  704. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/popup/themes/base/_oj-popup-ignore.scoped.cssvars.scss +0 -0
  705. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/popup/themes/base/_oj-popup.scss +0 -0
  706. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/popup/themes/redwood/_oj-layer.scss +0 -0
  707. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/popup/themes/redwood/_oj-popup-ignore.scoped.cssvars.scss +0 -0
  708. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/popup/themes/redwood/_oj-popup.cssvars.scss +0 -0
  709. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/popup/themes/redwood/oj-popup.scss +0 -0
  710. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/popup/themes/stable/_oj-layer.scss +0 -0
  711. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/popup/themes/stable/_oj-popup.cssvars.scss +0 -0
  712. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/popup/themes/stable/oj-popup.scss +0 -0
  713. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/progress-bar/themes/base/_oj-progress-bar.scss +0 -0
  714. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/progress-bar/themes/redwood/_oj-progress-bar-scoped.cssvars.scss +0 -0
  715. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/progress-bar/themes/redwood/_oj-progress-bar.cssvars.scss +0 -0
  716. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/progress-bar/themes/redwood/oj-progress-bar.scss +0 -0
  717. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/progress-bar/themes/stable/_oj-progress-bar-scoped.cssvars.scss +0 -0
  718. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/progress-bar/themes/stable/_oj-progress-bar.cssvars.scss +0 -0
  719. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/progress-bar/themes/stable/oj-progress-bar.scss +0 -0
  720. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/progress-circle/themes/base/_oj-progress-circle.scss +0 -0
  721. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/progress-circle/themes/redwood/_oj-progress-circle-scoped.cssvars.scss +0 -0
  722. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/progress-circle/themes/redwood/_oj-progress-circle.cssvars.scss +0 -0
  723. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/progress-circle/themes/redwood/oj-progress-circle.scss +0 -0
  724. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/progress-circle/themes/stable/_oj-progress-circle-scoped.cssvars.scss +0 -0
  725. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/progress-circle/themes/stable/_oj-progress-circle.cssvars.scss +0 -0
  726. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/progress-circle/themes/stable/oj-progress-circle.scss +0 -0
  727. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/radio-checkbox/themes/base/_oj-radiocheckbox.scss +0 -0
  728. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/radio-checkbox/themes/redwood/_oj-radiocheckbox-scoped.cssvars.scss +0 -0
  729. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/radio-checkbox/themes/redwood/_oj-radiocheckbox.cssvars.scss +0 -0
  730. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/radio-checkbox/themes/redwood/_oj-radiocheckbox.servervars.scss +0 -0
  731. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/radio-checkbox/themes/stable/_oj-radiocheckbox-scoped.cssvars.scss +0 -0
  732. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/radio-checkbox/themes/stable/_oj-radiocheckbox.cssvars.scss +0 -0
  733. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/radio-checkbox/themes/stable/_oj-radiocheckbox.servervars.scss +0 -0
  734. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/radioset/themes/redwood/_oj-radioset.cssvars.scss +0 -0
  735. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/radioset/themes/redwood/oj-radioset.scss +0 -0
  736. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/radioset/themes/stable/_oj-radioset.cssvars.scss +0 -0
  737. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/radioset/themes/stable/oj-radioset.scss +0 -0
  738. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/rangeslider/themes/redwood/_oj-rangeslider.cssvars.scss +0 -0
  739. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/rangeslider/themes/redwood/oj-rangeslider.scss +0 -0
  740. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/rangeslider/themes/stable/_oj-rangeslider.cssvars.scss +0 -0
  741. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/rangeslider/themes/stable/oj-rangeslider.scss +0 -0
  742. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/rating-gauge/themes/base/_oj-rating-gauge.scss +0 -0
  743. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/rating-gauge/themes/redwood/_oj-rating-gauge.cssvars.scss +0 -0
  744. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/rating-gauge/themes/redwood/oj-rating-gauge.scss +0 -0
  745. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/rating-gauge/themes/stable/_oj-rating-gauge.cssvars.scss +0 -0
  746. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/rating-gauge/themes/stable/oj-rating-gauge.scss +0 -0
  747. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/refresher/themes/base/_oj-refresher.scss +0 -0
  748. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/refresher/themes/redwood/_oj-refresher.cssvars.scss +0 -0
  749. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/refresher/themes/redwood/_oj-refresher.servervars.scss +0 -0
  750. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/refresher/themes/redwood/oj-refresher.scss +0 -0
  751. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/refresher/themes/stable/_oj-refresher.cssvars.scss +0 -0
  752. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/refresher/themes/stable/_oj-refresher.servervars.scss +0 -0
  753. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/refresher/themes/stable/oj-refresher.scss +0 -0
  754. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/resizable/themes/base/_oj-resizable.scss +0 -0
  755. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/resizable/themes/redwood/_oj-resizable.scss +0 -0
  756. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/resizable/themes/stable/_oj-resizable.scss +0 -0
  757. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/row-expander/themes/base/_oj-row-expander.scss +0 -0
  758. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/row-expander/themes/redwood/_oj-row-expander.cssvars.scss +0 -0
  759. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/row-expander/themes/redwood/oj-row-expander.scss +0 -0
  760. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/row-expander/themes/stable/_oj-row-expander.cssvars.scss +0 -0
  761. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/row-expander/themes/stable/oj-row-expander.scss +0 -0
  762. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/scrollbar/themes/base/_oj-scrollbar.scss +0 -0
  763. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/scrollbar/themes/redwood/_oj-scrollbar-scoped.cssvars.scss +0 -0
  764. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/scrollbar/themes/redwood/_oj-scrollbar.cssvars.scss +0 -0
  765. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/scrollbar/themes/redwood/_oj-scrollbar.scss +0 -0
  766. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/scrollbar/themes/stable/_oj-scrollbar-scoped.cssvars.scss +0 -0
  767. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/scrollbar/themes/stable/_oj-scrollbar.cssvars.scss +0 -0
  768. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/scrollbar/themes/stable/_oj-scrollbar.scss +0 -0
  769. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/select/themes/base/_oj-select.scss +0 -0
  770. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/select/themes/redwood/_oj-select.cssvars.scss +0 -0
  771. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/select/themes/redwood/_oj-select.scss +0 -0
  772. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/select/themes/stable/_oj-select.cssvars.scss +0 -0
  773. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/select/themes/stable/_oj-select.scss +0 -0
  774. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/select-many/themes/redwood/oj-select-many.scss +0 -0
  775. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/select-many/themes/stable/oj-select-many.scss +0 -0
  776. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/select-one/themes/redwood/oj-select-one.scss +0 -0
  777. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/select-original/themes/base/_oj-select-original.scss +0 -0
  778. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/select-original/themes/redwood/_oj-select-original.cssvars.scss +0 -0
  779. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/select-original/themes/redwood/_oj-select-original.scss +0 -0
  780. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/select-original/themes/stable/_oj-select-original.cssvars.scss +0 -0
  781. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/select-original/themes/stable/_oj-select-original.scss +0 -0
  782. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/select-single/themes/base/_oj-select-single.scss +0 -0
  783. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/select-single/themes/redwood/oj-select-single.scss +0 -0
  784. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/select-single/themes/stable/oj-select-single.scss +0 -0
  785. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/selector/themes/base/_oj-selector.scss +0 -0
  786. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/selector/themes/redwood/_oj-selector.cssvars.scss +0 -0
  787. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/selector/themes/redwood/oj-selector.scss +0 -0
  788. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/selector/themes/stable/_oj-selector.cssvars.scss +0 -0
  789. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/selector/themes/stable/oj-selector.scss +0 -0
  790. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/slider/themes/base/_oj-slider.scss +0 -0
  791. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/slider/themes/redwood/_oj-slider.cssvars.scss +0 -0
  792. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/slider/themes/redwood/oj-slider.scss +0 -0
  793. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/slider/themes/stable/_oj-slider.cssvars.scss +0 -0
  794. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/slider/themes/stable/oj-slider.scss +0 -0
  795. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/spark-chart/themes/base/_oj-spark-chart.scss +0 -0
  796. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/spark-chart/themes/redwood/_oj-spark-chart.cssvars.scss +0 -0
  797. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/spark-chart/themes/redwood/oj-spark-chart.scss +0 -0
  798. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/spark-chart/themes/stable/_oj-spark-chart.cssvars.scss +0 -0
  799. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/spark-chart/themes/stable/oj-spark-chart.scss +0 -0
  800. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/status-meter-gauge/themes/base/_oj-status-meter-gauge.scss +0 -0
  801. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/status-meter-gauge/themes/redwood/_oj-status-meter-gauge.cssvars.scss +0 -0
  802. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/status-meter-gauge/themes/redwood/oj-status-meter-gauge.scss +0 -0
  803. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/status-meter-gauge/themes/stable/_oj-status-meter-gauge.cssvars.scss +0 -0
  804. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/status-meter-gauge/themes/stable/oj-status-meter-gauge.scss +0 -0
  805. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/stream-list/themes/base/_oj-stream-list.scss +0 -0
  806. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/stream-list/themes/redwood/_oj-stream-list.cssvars.scss +0 -0
  807. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/stream-list/themes/redwood/_oj-stream-list.servervars.scss +0 -0
  808. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/stream-list/themes/redwood/oj-stream-list.scss +0 -0
  809. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/stream-list/themes/stable/_oj-stream-list.cssvars.scss +0 -0
  810. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/stream-list/themes/stable/_oj-stream-list.servervars.scss +0 -0
  811. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/stream-list/themes/stable/oj-stream-list.scss +0 -0
  812. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/sunburst/themes/base/_oj-sunburst.scss +0 -0
  813. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/sunburst/themes/redwood/_oj-sunburst.cssvars.scss +0 -0
  814. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/sunburst/themes/redwood/oj-sunburst.scss +0 -0
  815. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/sunburst/themes/stable/_oj-sunburst.cssvars.scss +0 -0
  816. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/sunburst/themes/stable/oj-sunburst.scss +0 -0
  817. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/swipe-actions/themes/base/_oj-swipe-actions.scss +0 -0
  818. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/swipe-actions/themes/redwood/_oj-swipe-actions.cssvars.scss +0 -0
  819. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/swipe-actions/themes/redwood/oj-swipe-actions.scss +0 -0
  820. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/swipe-actions/themes/stable/_oj-swipe-actions.cssvars.scss +0 -0
  821. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/swipe-actions/themes/stable/oj-swipe-actions.scss +0 -0
  822. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/switch/themes/base/_oj-switch.scss +0 -0
  823. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/switch/themes/redwood/_oj-switch.cssvars.scss +0 -0
  824. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/switch/themes/redwood/oj-switch.scss +0 -0
  825. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/switch/themes/stable/_oj-switch.cssvars.scss +0 -0
  826. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/switch/themes/stable/oj-switch.scss +0 -0
  827. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/switcher/themes/base/_oj-switcher.scss +0 -0
  828. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/switcher/themes/redwood/oj-switcher.scss +0 -0
  829. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/switcher/themes/stable/oj-switcher.scss +0 -0
  830. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/tab-bar/themes/base/_oj-tab-bar.scss +0 -0
  831. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/tab-bar/themes/redwood/_oj-tab-bar-scoped.cssvars.scss +0 -0
  832. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/tab-bar/themes/redwood/_oj-tab-bar.cssvars.scss +0 -0
  833. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/tab-bar/themes/redwood/oj-tab-bar.scss +0 -0
  834. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/tab-bar/themes/stable/_oj-tab-bar-scoped.cssvars.scss +0 -0
  835. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/tab-bar/themes/stable/_oj-tab-bar.cssvars.scss +0 -0
  836. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/tab-bar/themes/stable/oj-tab-bar.scss +0 -0
  837. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/table/themes/base/_oj-table.scss +0 -0
  838. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/table/themes/redwood/_oj-table-scoped.cssvars.scss +0 -0
  839. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/table/themes/redwood/_oj-table.cssvars.scss +0 -0
  840. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/table/themes/redwood/oj-table.scss +0 -0
  841. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/table/themes/stable/_oj-table-scoped.cssvars.scss +0 -0
  842. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/table/themes/stable/_oj-table.cssvars.scss +0 -0
  843. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/table/themes/stable/oj-table.scss +0 -0
  844. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/tag-cloud/themes/base/_oj-tag-cloud.scss +0 -0
  845. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/tag-cloud/themes/redwood/_oj-tag-cloud.cssvars.scss +0 -0
  846. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/tag-cloud/themes/redwood/oj-tag-cloud.scss +0 -0
  847. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/tag-cloud/themes/stable/_oj-tag-cloud.cssvars.scss +0 -0
  848. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/tag-cloud/themes/stable/oj-tag-cloud.scss +0 -0
  849. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/tags/themes/base/_oj-notags-ignore.scoped.cssvars.scss +0 -0
  850. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/tags/themes/base/_oj-notags.scss +0 -0
  851. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/tags/themes/base/_oj-tags-ignore.scoped.cssvars.scss +0 -0
  852. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/tags/themes/base/_oj-tags.scss +0 -0
  853. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/tags/themes/redwood/_oj-tags-scoped.cssvars.scss +0 -0
  854. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/tags/themes/redwood/_oj-tags.cssvars.scss +0 -0
  855. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/tags/themes/redwood/oj-notags.scss +0 -0
  856. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/tags/themes/redwood/oj-tags.scss +0 -0
  857. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/tags/themes/stable/_oj-tags-scoped.cssvars.scss +0 -0
  858. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/tags/themes/stable/_oj-tags.cssvars.scss +0 -0
  859. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/tags/themes/stable/oj-notags.scss +0 -0
  860. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/tags/themes/stable/oj-tags.scss +0 -0
  861. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/text-area/themes/base/_oj-text-area.scss +0 -0
  862. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/text-area/themes/redwood/_oj-text-area.cssvars.scss +0 -0
  863. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/text-area/themes/redwood/oj-text-area.scss +0 -0
  864. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/text-area/themes/stable/_oj-text-area.cssvars.scss +0 -0
  865. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/text-area/themes/stable/oj-text-area.scss +0 -0
  866. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/text-field/themes/base/_oj-text-field.cssvars.scss +0 -0
  867. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/text-field/themes/redwood/_oj-text-field-ignore.scoped.cssvars.scss +0 -0
  868. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/text-field/themes/redwood/_oj-text-field-scoped.cssvars.scss +0 -0
  869. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/text-field/themes/redwood/_oj-text-field.cssvars.scss +0 -0
  870. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/text-field/themes/stable/_oj-text-field-scoped.cssvars.scss +0 -0
  871. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/text-field/themes/stable/_oj-text-field.cssvars.scss +0 -0
  872. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/thematic-map/themes/base/_oj-thematic-map.scss +0 -0
  873. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/thematic-map/themes/redwood/_oj-thematic-map.cssvars.scss +0 -0
  874. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/thematic-map/themes/redwood/oj-thematic-map.scss +0 -0
  875. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/thematic-map/themes/stable/_oj-thematic-map.cssvars.scss +0 -0
  876. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/thematic-map/themes/stable/oj-thematic-map.scss +0 -0
  877. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/time-axis/themes/base/_oj-time-axis.scss +0 -0
  878. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/time-axis/themes/redwood/_oj-time-axis.cssvars.scss +0 -0
  879. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/time-axis/themes/redwood/oj-time-axis.scss +0 -0
  880. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/time-axis/themes/stable/_oj-time-axis.cssvars.scss +0 -0
  881. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/time-axis/themes/stable/oj-time-axis.scss +0 -0
  882. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/timeline/themes/base/_oj-timeline.scss +0 -0
  883. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/timeline/themes/redwood/_oj-timeline-ignore.scoped.cssvars.scss +0 -0
  884. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/timeline/themes/redwood/_oj-timeline.cssvars.scss +0 -0
  885. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/timeline/themes/redwood/oj-timeline.scss +0 -0
  886. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/timeline/themes/stable/_oj-timeline-ignore.scoped.cssvars.scss +0 -0
  887. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/timeline/themes/stable/_oj-timeline.cssvars.scss +0 -0
  888. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/timeline/themes/stable/oj-timeline.scss +0 -0
  889. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/toolbar/themes/base/_oj-toolbar.scss +0 -0
  890. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/toolbar/themes/redwood/_oj-toolbar.cssvars.scss +0 -0
  891. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/toolbar/themes/redwood/oj-toolbar.scss +0 -0
  892. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/toolbar/themes/stable/_oj-toolbar.cssvars.scss +0 -0
  893. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/toolbar/themes/stable/oj-toolbar.scss +0 -0
  894. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/tooltip/themes/base/_oj-tooltip.scss +0 -0
  895. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/tooltip/themes/redwood/_oj-tooltip.cssvars.scss +0 -0
  896. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/tooltip/themes/redwood/oj-tooltip.scss +0 -0
  897. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/tooltip/themes/stable/_oj-tooltip.cssvars.scss +0 -0
  898. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/tooltip/themes/stable/oj-tooltip.scss +0 -0
  899. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/train/themes/base/_oj-train.scss +0 -0
  900. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/train/themes/redwood/_oj-train-scoped.cssvars.scss +0 -0
  901. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/train/themes/redwood/_oj-train.cssvars.scss +0 -0
  902. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/train/themes/redwood/oj-train.scss +0 -0
  903. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/train/themes/stable/_oj-train.cssvars.scss +0 -0
  904. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/train/themes/stable/oj-train.scss +0 -0
  905. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/tree-view/themes/base/_oj-tree-view.scss +0 -0
  906. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/tree-view/themes/redwood/_oj-tree-view.cssvars.scss +0 -0
  907. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/tree-view/themes/redwood/oj-tree-view.scss +0 -0
  908. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/tree-view/themes/stable/_oj-tree-view.cssvars.scss +0 -0
  909. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/tree-view/themes/stable/oj-tree-view.scss +0 -0
  910. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/treemap/themes/base/_oj-treemap.scss +0 -0
  911. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/treemap/themes/redwood/_oj-treemap.cssvars.scss +0 -0
  912. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/treemap/themes/redwood/oj-treemap.scss +0 -0
  913. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/treemap/themes/stable/_oj-treemap.cssvars.scss +0 -0
  914. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/treemap/themes/stable/oj-treemap.scss +0 -0
  915. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/typography/themes/base/_oj-typography.scss +0 -0
  916. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/typography/themes/redwood/_oj-typography-ignore.scoped.cssvars.scss +0 -0
  917. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/typography/themes/redwood/_oj-typography-scoped.cssvars.scss +0 -0
  918. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/typography/themes/redwood/_oj-typography.cssvars.scss +0 -0
  919. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/typography/themes/redwood/oj-typography.scss +0 -0
  920. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/typography/themes/stable/_oj-typography-scoped.cssvars.scss +0 -0
  921. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/typography/themes/stable/_oj-typography.cssvars.scss +0 -0
  922. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/typography/themes/stable/oj-typography.scss +0 -0
  923. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/utilities/_oj.utilities.bidi.scss +0 -0
  924. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/utilities/_oj.utilities.icons.scss +0 -0
  925. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/utilities/_oj.utilities.json.scss +0 -0
  926. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/utilities/_oj.utilities.masonrylayout.scss +0 -0
  927. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/utilities/_oj.utilities.modules.scss +0 -0
  928. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/validation-group/themes/base/_oj-validation-group.scss +0 -0
  929. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/validation-group/themes/redwood/oj-validation-group.scss +0 -0
  930. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/validation-group/themes/stable/oj-validation-group.scss +0 -0
  931. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/waterfall-layout/themes/base/_oj-waterfall-layout.scss +0 -0
  932. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/waterfall-layout/themes/redwood/_oj-waterfall-layout.cssvars.scss +0 -0
  933. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/waterfall-layout/themes/redwood/oj-waterfall-layout.scss +0 -0
  934. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/waterfall-layout/themes/stable/_oj-waterfall-layout.cssvars.scss +0 -0
  935. /package/dist/pcss/oj/{14.0.9 → 14.0.11}/oj/waterfall-layout/themes/stable/oj-waterfall-layout.scss +0 -0
@@ -5,5 +5,5 @@
5
5
  * as shown at https://oss.oracle.com/licenses/upl/
6
6
  * @ignore
7
7
  */
8
- define(["touchr","ojdnd","ojs/ojeditablevalue","ojs/ojinputnumber","ojs/ojmenu","ojs/ojpopup","ojs/ojdialog","ojs/ojbutton","ojs/ojdatasource-common","ojs/ojdataprovideradapter","ojs/ojlistdataproviderview","ojs/ojselector","ojs/ojcore-base","@oracle/oraclejet-preact/hooks/UNSAFE_useFormVariantContext","jquery","ojs/ojdomutils","ojs/ojlogger","ojs/ojcontext","ojs/ojconfig","ojs/ojtranslation","ojs/ojthemeutils","ojs/ojcomponentcore","ojs/ojdatacollection-common","ojs/ojanimation","ojs/ojdomscroller","ojs/ojcustomelement-utils","ojs/ojkeyset","ojs/ojvalidator-regexp","ojs/ojkeyboardfocus-utils"],function(e,t,o,i,l,n,s,a,r,_,h,d,u,c,S,E,C,T,p,g,A,f,b,L,m,R,y,O,v){"use strict";var D;h=h&&Object.prototype.hasOwnProperty.call(h,"default")?h.default:h,u=u&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u,S=S&&Object.prototype.hasOwnProperty.call(S,"default")?S.default:S,T=T&&Object.prototype.hasOwnProperty.call(T,"default")?T.default:T,m=m&&Object.prototype.hasOwnProperty.call(m,"default")?m.default:m,O=O&&Object.prototype.hasOwnProperty.call(O,"default")?O.default:O,(D={properties:{accessibility:{type:"object",properties:{rowHeader:{type:"string|Array<string>"}}},addRowDisplay:{type:"string",enumValues:["hidden","top"],value:"top"},as:{type:"string",value:""},columns:{type:"Array<Object>",writeback:!0},columnsDefault:{type:"object",properties:{className:{type:"string"},field:{type:"string"},footerClassName:{type:"string"},footerRenderer:{type:"function"},footerStyle:{type:"string"},footerTemplate:{type:"string"},headerClassName:{type:"string"},headerRenderer:{type:"function"},headerStyle:{type:"string"},headerTemplate:{type:"string"},headerText:{type:"string"},maxWidth:{type:"string|number"},minWidth:{type:"string|number",value:"auto"},renderer:{type:"function"},resizable:{type:"string",enumValues:["disabled","enabled"],value:"disabled"},showRequired:{type:"boolean",value:!1},sortProperty:{type:"string"},sortable:{type:"string",enumValues:["auto","disabled","enabled"],value:"auto"},style:{type:"string"},template:{type:"string"},weight:{type:"number",value:1},width:{type:"string|number"}}},currentRow:{type:"object",writeback:!0},data:{type:"object",extension:{webelement:{exceptionStatus:[{type:"unsupported",since:"13.0.0",description:"Data sets from a DataProvider cannot be sent to WebDriverJS; use ViewModels or page variables instead."}]}}},display:{type:"string",enumValues:["grid","list"],value:"list"},dnd:{type:"object",properties:{drag:{type:"object",properties:{rows:{type:"object",properties:{dataTypes:{type:"string|Array<string>"},drag:{type:"function"},dragEnd:{type:"function"},dragStart:{type:"function"}}}}},drop:{type:"object",properties:{columns:{type:"object",properties:{dataTypes:{type:"string|Array<string>"},dragEnter:{type:"function"},dragLeave:{type:"function"},dragOver:{type:"function"},drop:{type:"function"}}},rows:{type:"object",properties:{dataTypes:{type:"string|Array<string>"},dragEnter:{type:"function"},dragLeave:{type:"function"},dragOver:{type:"function"},drop:{type:"function"}}}}},reorder:{type:"object",properties:{columns:{type:"string",enumValues:["disabled","enabled"],value:"disabled"}}}}},editMode:{type:"string",enumValues:["none","rowEdit"],value:"none"},editRow:{type:"object",writeback:!0,value:{rowKey:null,rowIndex:-1}},firstSelectedRow:{type:"object",writeback:!0,readOnly:!0,value:{key:null,data:null},properties:{data:{type:"any"},key:{type:"any"}}},horizontalGridVisible:{type:"string",enumValues:["auto","disabled","enabled"],value:"auto"},layout:{type:"string",enumValues:["contents","fixed"],value:"contents"},row:{type:"object",properties:{editable:{type:"function"},selectable:{type:"function"},sticky:{type:"function"}}},rowRenderer:{type:"function"},scrollPolicy:{type:"string",enumValues:["auto","loadAll","loadMoreOnScroll"],value:"auto"},scrollPolicyOptions:{type:"object",properties:{fetchSize:{type:"number",value:25},maxCount:{type:"number",value:500},scroller:{type:"string"},scrollerOffsetBottom:{type:"number"},scrollerOffsetEnd:{type:"number"},scrollerOffsetStart:{type:"number"},scrollerOffsetTop:{type:"number"}}},scrollPosition:{type:"object",writeback:!0,value:{x:0,y:0},properties:{columnIndex:{type:"number"},columnKey:{type:"any"},offsetX:{type:"number"},offsetY:{type:"number"},rowIndex:{type:"number"},rowKey:{type:"any"},x:{type:"number"},y:{type:"number"}}},scrollToKey:{type:"string",enumValues:["always","auto","capability","never"],value:"auto"},selectAllControl:{type:"string",enumValues:["hidden","visible"],value:"visible"},selected:{type:"object",writeback:!0,properties:{column:{type:"KeySet",writeback:!0},row:{type:"KeySet",writeback:!0}}},selection:{type:"Array<Object>",writeback:!0,value:[]},selectionMode:{type:"Object<string, string>",properties:{column:{type:"string",enumValues:["multiple","none","single"]},row:{type:"string",enumValues:["multiple","none","single"]}}},selectionRequired:{type:"boolean",value:!1},translations:{type:"object",value:{},properties:{accessibleAddRow:{type:"string"},accessibleColumnContext:{type:"string"},accessibleColumnFooterContext:{type:"string"},accessibleColumnHeaderContext:{type:"string"},accessibleColumnsSpan:{type:"string"},accessibleContainsControls:{type:"string"},accessibleRowContext:{type:"string"},accessibleSortAscending:{type:"string"},accessibleSortDescending:{type:"string"},accessibleSortable:{type:"string"},accessibleStateSelected:{type:"string"},accessibleStateUnselected:{type:"string"},accessibleSummaryEstimate:{type:"string"},accessibleSummaryExact:{type:"string"},labelAccSelectionAffordanceBottom:{type:"string"},labelAccSelectionAffordanceTop:{type:"string"},labelColumnWidth:{type:"string"},labelDisableNonContiguousSelection:{type:"string"},labelEditRow:{type:"string"},labelEnableNonContiguousSelection:{type:"string"},labelResize:{type:"string"},labelResizeColumn:{type:"string"},labelResizeColumnDialog:{type:"string"},labelResizeDialogApply:{type:"string"},labelResizePopupCancel:{type:"string"},labelResizePopupSpinner:{type:"string"},labelResizePopupSubmit:{type:"string"},labelSelectAllRows:{type:"string"},labelSelectAndEditRow:{type:"string"},labelSelectColum:{type:"string"},labelSelectRow:{type:"string"},labelSort:{type:"string"},labelSortAsc:{type:"string"},labelSortDsc:{type:"string"},msgColumnResizeWidthValidation:{type:"string"},msgFetchingData:{type:"string"},msgInitializing:{type:"string"},msgNoData:{type:"string"},msgScrollPolicyMaxCountDetail:{type:"string"},msgScrollPolicyMaxCountSummary:{type:"string"},msgStatusSortAscending:{type:"string"},msgStatusSortDescending:{type:"string"},tooltipRequired:{type:"string"}}},verticalGridVisible:{type:"string",enumValues:["auto","disabled","enabled"],value:"auto"}},methods:{getContextByNode:{},getDataForVisibleRow:{},getProperty:{},refresh:{},refreshRow:{},setProperties:{},setProperty:{},getNodeBySubId:{},getSubIdByNode:{}},events:{ojAnimateEnd:{},ojAnimateStart:{},ojBeforeCurrentRow:{},ojBeforeRowAddEnd:{},ojBeforeRowEdit:{},ojBeforeRowEditEnd:{},ojRowAction:{},ojSort:{}},extension:{}}).extension._WIDGET_NAME="ojTable",D.extension._INNER_ELEM="table",D.extension._BINDING={provide:[{name:"__oj_private_contexts",default:new Map([[c.FormVariantContext,"embedded"]])}]},u.CustomElementBridge.register("oj-table",{metadata:D});const I=function(){};I._BUNDLE_KEY={_MSG_FETCHING_DATA:"msgFetchingData",_MSG_NO_DATA:"msgNoData",_MSG_INITIALIZING:"msgInitializing",_MSG_STATUS_SORT_ASC:"msgStatusSortAscending",_MSG_STATUS_SORT_DSC:"msgStatusSortDescending",_LABEL_SELECT_COLUMN:"labelSelectColumn",_LABEL_SELECT_ALL_ROWS:"labelSelectAllRows",_LABEL_SELECT_ROW:"labelSelectRow",_LABEL_EDIT_ROW:"labelEditRow",_LABEL_SELECT_AND_EDIT_ROW:"labelSelectAndEditRow"},I._LOGGER_MSG={_ERR_PRECURRENTROW_ERROR_SUMMARY:"Did not change current row due to error.",_ERR_PRECURRENTROW_ERROR_DETAIL:"Error detail: {error}.",_ERR_CURRENTROW_UNAVAILABLE_INDEX_SUMMARY:"Did not change current row due to unavailable row index.",_ERR_CURRENTROW_UNAVAILABLE_INDEX_DETAIL:"Unavailable row index: {rowIdx}.",_ERR_REFRESHROW_INVALID_INDEX_SUMMARY:"Invalid row index value.",_ERR_REFRESHROW_INVALID_INDEX_DETAIL:"Row index: {rowIdx}.",_ERR_DATA_INVALID_TYPE_SUMMARY:"Invalid data type.",_ERR_DATA_INVALID_TYPE_DETAIL:"Please specify the appropriate data type.",_ERR_ELEMENT_INVALID_TYPE_SUMMARY:"Invalid element type.",_ERR_ELEMENT_INVALID_TYPE_DETAIL:"Only a <table> element can be specified for ojTable."},I._UPDATE={_ADD_ROW_DISPLAY:"addRowDisplay",_ATTACHED:"attached",_DATA_REFRESH:"dataRefresh",_DATA_SORT:"dataSort",_RESIZE:"resize",_REFRESH:"refresh",_COL_REORDER:"colReorder",_COL_RESIZE:"colResize",_ROW_REFRESH:"rowRefresh",_ROWS_ADDED:"rowsAdded",_ROWS_REMOVED:"rowsRemoved",_SHOWN:"shown"},I._SUB_ID={_TABLE_CELL:"oj-table-cell",_TABLE_HEADER:"oj-table-header",_TABLE_FOOTER:"oj-table-footer",_TABLE_SORT_ASCENDING:"oj-table-sort-ascending",_TABLE_SORT_DESCENDING:"oj-table-sort-descending"},I._POSITION={_START_TOP:"start top",_START_BOTTOM:"start bottom"},I._FIELD_ID="id",I._CONST_ATTRIBUTE="attribute",I._CONST_DATA="data",I._CONST_METADATA="metadata",I._CONST_INDEXES="indexes",I._CONST_INDEX="index",I._CONST_KEY="key",I._CONST_KEYS="keys",I._CONST_AFTERKEYS="afterKeys",I._CONST_ADDBEFOREKEYS="addBeforeKeys",I._CONST_CLIENTID="clientId",I._CONST_STARTINDEX="startIndex",I._CONST_ENDINDEX="endIndex",I._CONST_PAGESIZE="size",I._CONST_OFFSET="offset",I._CONST_SILENT="silent",I._CONST_COLUMN="column",I._CONST_ROW="row",I._CONST_VALUE="value",I._CONST_SORTCRITERIA="sortCriteria",I._CONST_ON="on",I._CONST_OFF="off",I._COLUMN_HEADER_ID="_headerColumn",I._COLUMN_HEADER_TEXT_ID="_headerColumnText",I._COLUMN_HEADER_ASC_ID="_headerColumnAsc",I._COLUMN_HEADER_DSC_ID="_headerColumnDsc",I._COLUMN_HEADER_ID_PREFIX="_hdrCol",I._COLUMN_HEADER_ROW_SELECT_ID="_hdrColRowSel",I._FOCUS_CALLED="_focusedCalled",I._ROW_TEMPLATE="rowTemplate",I._CELL_TEMPLATE="template",I._HEADER_TEMPLATE="headerTemplate",I._FOOTER_TEMPLATE="footerTemplate",I._OPTION_AUTO="auto",I._OPTION_ENABLED="enabled",I._OPTION_DISABLED="disabled",I._OPTION_DISPLAY={_LIST:"list",_GRID:"grid"},I._OPTION_EDIT_MODE={_NONE:"none",_ROW_EDIT:"rowEdit"},I._OPTION_FROZEN_EDGE={_END:"end",_START:"start"},I._OPTION_SELECTION_MODES={_SINGLE:"single",_MULTIPLE:"multiple",_NONE:"none"},I._OPTION_SCROLL_POLICY={_AUTO:"auto",_LOADMORE_ON_SCROLL:"loadMoreOnScroll",_LOAD_ALL:"loadAll"},I._COLUMN_SORT_ORDER={_ASCENDING:"ascending",_DESCENDING:"descending"},I._DND_REORDER_TABLE_ID_DATA_KEY="oj-table-dnd-reorder-table-id",I._CURRENT_ROW_STATUS={_UPDATED:"updated",_IGNORED:"ignored",_VETOED:"vetoed",_ERROR:"error"},I._ROW_ITEM_EXPANDO="oj-table-oj-row-item",I._DATA_OJ_COMMAND="data-oj-command",I._DATA_OJ_EDITABLE="data-oj-editable",I._DATA_OJ_SELECTABLE="data-oj-selectable",I._DATA_OJ_COLUMNIDX="data-oj-columnIdx",I._VALIDATOR_PATTERN="^[1-9][0-9]*$",I._DATA_OJ_BINDING_PROVIDER="data-oj-binding-provider",I._BATCH_PROCESS_SIZE_WHEN_IDLE=5,I.RESIZE_OFFSET=10,I.SIZING_ERROR_MARGIN=.05,I._SELECTOR_OFF_COLSPAN_OFFSET=1,I._CSS_Vars={enableSticky:"--oj-private-table-global-sticky-default",enableSelector:"--oj-private-table-global-enable-selector-default",showIndicatorDelay:"--oj-private-core-global-loading-indicator-delay-duration",loadIndicator:"--oj-private-table-global-load-indicator-default",horizontalGridVisible:"--oj-private-table-global-display-list-horizontal-grid-visible-default",addAnimation:"--oj-private-table-global-add-animation",removeAnimation:"--oj-private-table-global-remove-animation",updateAnimation:"--oj-private-table-global-update-animation"},I.prototype._isStickyLayoutEnabled=function(){return"true"===this._getDefaultOptions().enableSticky},I.prototype._isStickyRowsEnabled=function(){return!(!this._isStickyLayoutEnabled()||null==this.options.row)&&"function"==typeof this.options.row.sticky},I.prototype._isFixedLayoutEnabled=function(){return"fixed"===this.options.layout},I.prototype._isTableStretchEnabled=function(){return this._getTableContainer().classList.contains(I.CSS_CLASSES._TABLE_STRETCH_CLASS)},I.prototype._isExternalScrollEnabled=function(){if(this._isStickyLayoutEnabled()){var e=this.options.scrollPolicyOptions;if(null!=e)return null!=e.scroller}return!1},I.prototype._invokeRowSelectableCallback=function(e){return this._invokeActionCallback(e,"selectable",I._CONST_ON)},I.prototype._invokeRowEditableCallback=function(e){return this._invokeActionCallback(e,"editable",I._CONST_ON)},I.prototype._invokeRowStickyCallback=function(e){return this._invokeActionCallback(e,"sticky",I._CONST_OFF)},I.prototype._invokeActionCallback=function(e,t,o){const i=this.options.row[t];return"function"==typeof i?i(e):o},I.prototype._isNodeEditable=function(e){return this._isNodeType(e,/^INPUT|TEXTAREA/)},I.prototype._isNodeClickable=function(e){return this._isNodeType(e,/SELECT|OPTION|BUTTON|^A\b/)},I.prototype._isNodeDraggable=function(e){return null!=this._getFirstAncestor(e,"[draggable='true']",!0)},I.prototype._isNodeType=function(e,t){for(var o=this._getTable();null!=e&&e!==o;){var i=e.nodeName;if(i===I.DOM_ELEMENT._TD||i===I.DOM_ELEMENT._TH)break;if(3!==e.nodeType)if(i.match(t))if(-1!==e.getAttribute(I.DOM_ATTR._TABINDEX))return!0;e=e.parentNode}return!1},I.prototype._handleDataFetchStart=function(){this._setDataWaitingState()},I.prototype._setDataWaitingState=function(e){!1!==e&&(this._isExternalScrollEnabled()||this._clearScrollBuffer(),this._showStatusMessage(),this._hideNoDataMessage()),this._dataFetching=!0,this._dataResolveFunc||(this._dataResolveFunc=this._addComponentBusyState("is waiting for data."))},I.prototype._checkViewportRejected=function(){this._animateOnFetch=!1,this._clearDataWaitingState()},I.prototype._clearDataWaitingState=function(){this._pendingFetchStale?(this._pendingFetchStale=!1,this._queueTask(function(){return this._getLayoutManager().notifyTableUpdate(I._UPDATE._DATA_REFRESH),this._beforeDataRefresh(),this._invokeDataFetchRows()}.bind(this))):(this._hideStatusMessage(),this._dataFetching=!1,this._pendingFetchStale=!1,this._dataResolveFunc&&(this._dataResolveFunc(),this._dataResolveFunc=null))},I.prototype._setComponentNotReady=function(){this._readyResolveFunc||(this._readyResolveFunc=this._addComponentBusyState("is being loaded."))},I.prototype._setComponentReady=function(){this._readyResolveFunc&&(this._readyResolveFunc(),this._readyResolveFunc=null)},I.prototype._addComponentBusyState=function(e){var t=T.getContext(this.element[0]).getBusyContext(),o={description:"The component identified by '"+this._getTableId()+"' "+e};return t.addBusyState(o)},I.prototype._createComponentBusyState=function(e){var t=this._addComponentBusyState(e);return null==this._busyStateStack&&(this._busyStateStack=[]),this._busyStateStack.push(t),t},I.prototype._clearComponentBusyState=function(e){if(this._busyStateStack){var t=this._busyStateStack.indexOf(e);-1!==t&&(e(),this._busyStateStack.splice(t,1))}},I.prototype._clearBusyStateStack=function(){if(this._busyStateStack){for(var e=0;e<this._busyStateStack.length;e++)this._busyStateStack[e]();this._busyStateStack=null}},I.prototype._setFocusoutBusyState=function(){this._focusoutResolveFunc||(this._focusoutResolveFunc=this._addComponentBusyState("is handling focusout."))},I.prototype._clearFocusoutBusyState=function(){this._focusoutResolveFunc&&(this._focusoutResolveFunc(),this._focusoutResolveFunc=null)},I.prototype._setIdleRenderBusyState=function(){this._idleRenderResolveFunc||(this._idleRenderResolveFunc=this._addComponentBusyState("is waiting for idle rendering."))},I.prototype._clearIdleRenderBusyState=function(){this._idleRenderResolveFunc&&(this._idleRenderResolveFunc(),this._idleRenderResolveFunc=null)},I.prototype._setScrollPosBusyState=function(){this._scrollPosResolveFunc||(this._scrollPosResolveFunc=this._addComponentBusyState("is handling scroll position."))},I.prototype._clearScrollPosBusyState=function(){this._scrollPosResolveFunc&&(this._scrollPosResolveFunc(),this._scrollPosResolveFunc=null)},I.prototype._clearAllComponentBusyStates=function(){this._clearBusyStateStack(),this._pendingFetchStale=!1,this._clearDataWaitingState(),this._clearFocusoutBusyState(),this._clearIdleRenderBusyState(),this._clearScrollPosBusyState(),this._setComponentReady()},I.prototype._cleanComponent=function(e){this._animateOnFetch=null,this._isEditPending=null,this._active=null,this._isTableTab=null,this._renderedTableHeaderColumns=!1,this._clearAllComponentTimeouts(),this._clearAllComponentBusyStates(),this._clearOpenPopupListeners(),this._clearIdleCallback(),this._unregisterDomScroller(),this._clearLayoutManager(),e?(S(this._getTableBody()).removeAttr(f._OJ_CONTAINER_ATTR),S(this._getTableBody()).removeAttr(T._OJ_CONTEXT_ATTRIBUTE),this.element.children().remove("."+I.CSS_CLASSES._TABLE_HEADER_CLASS),this.element.children().remove("."+I.CSS_CLASSES._TABLE_BODY_CLASS),this.element.children().remove("."+I.CSS_CLASSES._TABLE_FOOTER_CLASS),this.element.children().remove("."+I.CSS_CLASSES._TABLE_STATUS_MESSAGE_CLASS),this.element.children().remove("."+I.CSS_CLASSES._TABLE_BODY_MESSAGE_ROW_CLASS),E.unwrap(this.element,S(this._getTableContainer())),this.element[0].classList.remove(I.CSS_CLASSES._TABLE_CLASS),this._data instanceof u.TableDataSourceAdapter&&this._data.destroy(),this._componentDestroyed=!0):(this._unregisterDataSourceEventListeners(),this._unregisterResizeListener()),(this._hasHeaderTemplate||this._hasCellTemplate||this._hasFooterTemplate||this._hasRowTemplate||this._hasAddRowTemplate||this._hasNoDataTemplate)&&this._cleanTemplateNodes(this.element[0])},I.prototype._clearAllComponentTimeouts=function(){this._clearFocusoutTimeout(),this._clearShowStatusTimeout(),this._clearTableBodyHideTimeout(),this._clearTableFooterHideTimeout(),this._clearNotifyAttachedTimeout(),this._clearBrowserAutoScrollTimeout()},I.prototype._clearFocusoutTimeout=function(){this._focusoutTimeout&&(clearTimeout(this._focusoutTimeout),this._focusoutTimeout=null)},I.prototype._clearShowStatusTimeout=function(){this._showStatusTimeout&&(clearTimeout(this._showStatusTimeout),this._showStatusTimeout=null)},I.prototype._initializeTableBodyHide=function(e){this._clearTableBodyHideTimeout(),this._bodyVisibilityTimeout=setTimeout(function(){e.style[I.CSS_PROP._VISIBILITY]=I.CSS_VAL._HIDDEN,this._bodyVisibilityTimeout=null}.bind(this),0)},I.prototype._clearTableBodyHideTimeout=function(){null!=this._bodyVisibilityTimeout&&(clearTimeout(this._bodyVisibilityTimeout),this._bodyVisibilityTimeout=null)},I.prototype._initializeTableFooterHide=function(e){this._clearTableFooterHideTimeout(),this._footerVisibilityTimeout=setTimeout(function(){e.style[I.CSS_PROP._VISIBILITY]=I.CSS_VAL._HIDDEN,this._footerVisibilityTimeout=null}.bind(this),0)},I.prototype._clearTableFooterHideTimeout=function(){null!=this._footerVisibilityTimeout&&(clearTimeout(this._footerVisibilityTimeout),this._footerVisibilityTimeout=null)},I.prototype._clearBrowserAutoScrollTimeout=function(){null!=this._browserAutoScrollTimeout&&(clearTimeout(this._browserAutoScrollTimeout),this._browserAutoScrollTimeout=null,this._browserAutoScrollInitPos=null)},I.prototype._setFinalTask=function(e){this._finalTask=e?e.bind(this):void 0},I.prototype._hasPendingTasks=function(){return this._taskCount>0},I.prototype._hasAdditionalPendingTasks=function(){return this._taskCount>1},I.prototype._queueTask=function(e){return this._pendingTasks||(this._taskCount=0,this._pendingTasks=Promise.resolve(),this._setComponentNotReady()),this._taskCount+=1,this._pendingTasks=this._pendingTasks.then(function(){if(!this._componentDestroyed)return e.bind(this)()}.bind(this)).then(function(e){if(this._taskCount-=1,0===this._taskCount){this._pendingTasks=null;try{this._componentDestroyed||(this._finalTask&&this._finalTask(),this._trigger("ready"))}catch(e){C.error(e)}this._setComponentReady()}return e}.bind(this),function(e){return this._taskCount-=1,0===this._taskCount&&(this._pendingTasks=null,C.error(e),this._setComponentReady()),Promise.reject(e)}.bind(this)),this._pendingTasks},I.prototype._draw=function(){if(this._setFinalTask(function(){this._syncTableSizing(),this._initialSelectionStateValidated?this._syncSelectionState():this._validateInitialSelectionState(),this._resetAriaLabel&&this._updateAccStatusInfo(),this._resetAriaLabel=!1}.bind(this)),!this.element.is("table")){var e=I._LOGGER_MSG._ERR_ELEMENT_INVALID_TYPE_SUMMARY,t=I._LOGGER_MSG._ERR_ELEMENT_INVALID_TYPE_DETAIL;throw new RangeError(e+"\n"+t)}this.element[0].classList.add(I.CSS_CLASSES._TABLE_ELEMENT_CLASS),this.element[0].setAttribute(I.DOM_ATTR._ROLE,"application"),this._createInitialTable(this._isTableHeaderless(),this._isTableFooterless()),this._styleInitialTable(),this._queueTask(function(){this._getLayoutManager().notifyTableUpdate(I._UPDATE._REFRESH),this._refreshTableHeader(),this._refreshTableFooter(),this._refreshTableBody(),this._processSlottedChildren()}.bind(this)),this.options.disabled&&this.disable()},I.prototype._refresh=function(){var e=!1;this._active=null,this._dataOption!==this.options[I._CONST_DATA]&&(this._clearCachedDataMetadata(),null==this._data&&(e=!0));var t=this._GetContextMenu();return null!=t&&t!==this._getContextMenuElement()&&this._createContextMenuContainer(),this._clearLayoutManager(),this._clearCachedDom(),this._clearCachedStyling(),this._refreshContextMenu(),this._refreshTableStatusMessage(),this._clearIdleCallback(),e?this._initFetch():this._queueTask(function(){return this._getLayoutManager().notifyTableUpdate(I._UPDATE._REFRESH),this._invokeDataFetchRows()}.bind(this))},I.prototype._refreshAll=function(e,t){var o=[];if((this._isColumnMetadataUpdated()||!this._isTableHeaderColumnsRendered()&&!this._isTableHeaderless())&&(this._clearCachedMetadata(),o.push(this._refreshTableHeader()),null!=this._sortColumn)){for(var i=!1,l=this._getColumnDefs(),n=l.length,s=0;s<n;s++){var a=l[s];if(u.Object.compareValues(a,this._sortColumn)){i=!0;break}}i||this._initFetch(null,!0)}return o.push(this._refreshTableFooter()),o.push(this._refreshTableBody(e,t)),Promise.all(o)},I.prototype._refreshTableHeader=function(){var e,t=this,o=this._getColumnDefs(),i=o.length,l=this._getTableColGroup();if(null!=l){if(S(l).empty(),this._isGutterStartColumnEnabled()){let e=this._createTableGutterCol();l.appendChild(e)}if(this._isDefaultSelectorEnabled()){var n=this._createTableSelectorCol();l.appendChild(n)}for(e=0;e<i;e++){var s=this._createTableCol();l.appendChild(s)}if(this._isGutterEndColumnEnabled()){let e=this._createTableGutterCol();l.appendChild(e)}}var a=this._getTableBodyLegacyWidthBuffer();if(null!=a)for(S(a).empty(),e=0;e<i;e++){var r=this._createTableBodyCell();r.classList.add(I.CSS_CLASSES._TABLE_LEGACY_WIDTH_BUFFER_CELL_CLASS),a.appendChild(r)}var _=this._getTableHeader();if(!_){if(this._isTableHeaderless())return Promise.resolve();_=this._createTableHeader(),this._styleTableHeader(_)}var h=this._getTableHeaderRow();for(this._unregisterChildStateListeners(h),this._hasHeaderTemplate&&(this._cleanTemplateNodes(h),this._hasHeaderTemplate=!1),S(h).empty(),e=0;e<i;e++){var d=o[e],u=this._getColumnRenderer(e,"header"),c=this._createTableHeaderColumn(e);if(u){var E=this._getRendererContextObject(c,{}),C={headerContext:E,columnIndex:e,data:d.headerText,componentElement:E.componentElement,parentElement:E.parentElement};d.sortable===I._OPTION_ENABLED?C.columnHeaderSortableIconRenderer=function(e,o){t._columnHeaderSortableIconRenderer(this,o)}:C.columnHeaderDefaultRenderer=function(e,o){t._columnHeaderDefaultRenderer(this,o)};var T=u(C);null!=T?(S(c).empty(),S(c).append(T)):(c=S(h).children()[e],this._setTableHeaderColumnAttributes(e,c),this._styleTableHeaderColumn(e,c,!1)),c.classList.add(I.CSS_CLASSES._COLUMN_CUSTOM_HEADER_CLASS)}else{var p=this._getSlotTemplate(d[I._HEADER_TEMPLATE]);if(null==p&&this._isDefaultHeaderTemplateSlotValid()&&(p=this._getSlotTemplate("headerTemplate")),p){var g=this._getRootElement(),A=this._getTemplateEngine();if(null!=A){c&&S(c).empty(),c.classList.add(I.CSS_CLASSES._COLUMN_CUSTOM_HEADER_CLASS);var f=this._getHeaderSlotTemplateContextObject(d.headerText,e),b=A.execute(g,p,f,this.options.as,c);b instanceof Array||(b=[b]),b.map(function(e){c.appendChild(e)}),this._hasHeaderTemplate=!0}}}}if(this._isGutterEndColumnEnabled()){let e=this._createTableGutterCell("header","end");h.appendChild(e)}if(this._isDefaultSelectorEnabled()){var L=this._createTableHeaderSelectorColumn();h.insertBefore(L,h.firstChild)}if(this._isGutterStartColumnEnabled()){let e=this._createTableGutterCell("header","start");h.insertBefore(e,h.firstChild)}return this._renderedTableHeaderColumns=!0,this._finalizeNonBodyRowRendering([h])},I.prototype._refreshTableFooter=function(){var e=this._getColumnDefs(),t=this._getTableFooter();if(!t){if(this._isTableFooterless())return Promise.resolve();t=this._createTableFooter(),this._styleTableFooter(t)}this._initializeTableFooterHide(t);var o=this._getTableFooterRow();if(this._hasFooterTemplate&&(this._cleanTemplateNodes(o),this._hasFooterTemplate=!1),S(o).empty(),e.length>0){for(var i=this._isDefaultFooterTemplateSlotValid(),l=e.length,n=0;n<l;n++){var s=e[n],a=this._getColumnRenderer(n,"footer"),r=this._createTableFooterCell();if(this._styleTableFooterCell(n,r),this._insertTableFooterCell(n,r),a){var _=this._getRendererContextObject(r,{}),h=a({footerContext:_,columnIndex:n,componentElement:_.componentElement,parentElement:_.parentElement});null!=h?(S(r).empty(),S(r).append(h)):(r=S(o).children()[n],this._setTableFooterColumnAttributes(n,r),this._styleTableFooterCell(n,r))}else{var d=this._getSlotTemplate(s[I._FOOTER_TEMPLATE]);if(null==d&&i&&(d=this._getSlotTemplate("footerTemplate")),d){var u=this._getRootElement(),c=this._getTemplateEngine();if(null!=c){var E=this._getFooterSlotTemplateContextObject(n),C=c.execute(u,d,E,this.options.as,r);C instanceof Array||(C=[C]),C.map(function(e){r.appendChild(e)}),this._hasFooterTemplate=!0}}}}if(this._isGutterEndColumnEnabled()){let e=this._createTableGutterCell("footer","end");o.appendChild(e)}if(this._isDefaultSelectorEnabled()){var T=this._createTableFooterSelectorCell();o.insertBefore(T,o.firstChild)}if(this._isGutterStartColumnEnabled()){let e=this._createTableGutterCell("footer","start");o.insertBefore(e,o.firstChild)}}return this._finalizeNonBodyRowRendering([o])},I.prototype._refreshTableBody=function(e,t,o){var i=this._getTableBody();if(null==i)return Promise.resolve();var l,n=this._getRowIdxRowArray(e,t),s=S.contains(i,document.activeElement),a=!1;if(this._scrollLeft=void 0===this._scrollLeft?0:this._scrollLeft,this._scrollTop=void 0===this._scrollTop?0:this._scrollTop,0===t)s&&(a=!0),this._removeAllTableBodyRows();else{var r=this._getTableBodyRows().length;if(r>0)for(l=r-1;l>=t;l--){if(s){var _=this._getTableBodyRow(l);null!=_&&S.contains(_,document.activeElement)&&(a=!0,s=!1)}this._removeTableBodyRow(l)}}a&&this._getTable().focus(),this._clearCachedDomRowData(),this._hideNoDataMessage();const h=document.createDocumentFragment();if(!this._isAddNewRowEnabled()||null!=t&&0!==t||null!=this._getPlaceHolderRow()||this._refreshAddNewRowPlaceholder(h,!0),0===n.length&&0===this._getTableBodyRows().length)return this._appendElementToTableBody(h,i),this._showNoDataMessage(),this._finalizeNonBodyRowRendering([i]);if(t>0&&this._isLoadMoreOnScroll()&&!this._isLastRowInViewport()&&!this._fetchBySyncScroll)return new Promise(function(o,l){this._setIdleRenderBusyState(),this._renderRowsWhenIdle(n.slice(0),i,t,o,l,e.isMouseWheel)}.bind(this));var d=this._getLayoutManager(),u=n.length;if(this._animateOnFetch&&this._IsCustomElement()){this._animateOnFetch=!1;var c=[],E=[];for(l=0;l<u;l++)E.push(n[l].rowIdx),c.push(this._addSingleTableBodyRow(n[l].rowIdx,n[l].row,h,t));return d.handleAfterRowsProcessed(h),this._appendElementToTableBody(h,i),this._animateVisibleRows(c,E,"add").then(function(){return this._afterRowsRendered(i)}.bind(this))}for(this._animateOnFetch=!1,o||this._initializeTableBodyHide(i),l=0;l<u;l++)this._renderRow(n[l],h,t);return d.handleAfterRowsProcessed(h),this._appendElementToTableBody(h,i),this._afterRowsRendered(i)},I.prototype._isDefaultSelectorEnabled=function(){return"true"===this._getDefaultOptions().enableSelector&&this._getRowSelectionMode()===I._OPTION_SELECTION_MODES._MULTIPLE},I.prototype._refreshTableBodyRow=function(e,t,o,i,l,n){var s=this._getRowRenderer();(isNaN(e)||e<0)&&C.error("Error: Invalid rowIdx value: "+e);var a=this._hashCode(t[I._CONST_KEY]);if(null==o){if(!(o=this._getTableBodyRow(e)))return null;(this._hasCellTemplate||this._hasRowTemplate)&&this._cleanTemplateNodes(o),S(o).empty()}this._hideNoDataMessage();var r=this._getCurrentRow();r=r||{};var _=this._getRendererContextObject(o,{row:t,isCurrentRow:r.rowIndex===e});_.editable=this._invokeRowEditableCallback(o[I._ROW_ITEM_EXPANDO]);const h=this._invokeRowSelectableCallback(o[I._ROW_ITEM_EXPANDO]);var d={rowContext:_,row:t[I._CONST_DATA],componentElement:_.componentElement,parentElement:_.parentElement,data:t[I._CONST_DATA]},u=this._getColumnDefs();if(null!=s||this._isDefaultRowTemplateSlotValid()&&null!==this._getSlotTemplate("rowTemplate")){if(null!=s){var c=s(d);null!=c?o.appendChild(c):null==i?o=this._getRawTableBodyRow(e):(l=null==l?0:l,o=i.children?i.children[e-l]:S(i).children()[e-l])}else{var E=this._getSlotTemplate("rowTemplate"),T=this._getRootElement(),p=this._getTemplateEngine();if(null!=p){var g=this._getRowSlotTemplateContextObject(d),A=this._getTableBody(),f=p.execute(T,E,g,this.options.as,A);for(let e=0;e<f.length;e++){if("TR"===f[e].tagName){o.parentNode.replaceChild(f[e],o);break}o.appendChild(f[e])}null==i?o=this._getRawTableBodyRow(e):(l=null==l?0:l,o=i.children?i.children[e-l]:S(i).children()[e-l]),this._hasRowTemplate=!0}}this._setTableBodyRowAttributes(t,o),this._clearCachedDomRowData(),this._styleTableBodyRow(o,!1);var b,L=this._getTableElementsByTagName(o,I.DOM_ELEMENT._TD),m=L.length;for(let o=0;o<m;o++)b=L[o],this._setTableBodyCellAttributes(e,t[I._CONST_KEY],a,o,b),this._styleTableBodyCell(o,b,!1);if(null!=this._columnsDestMap)for(let e=0;e<this._columnsDestMap.length;e++){var R=L[this._columnsDestMap[e]];R.parentNode.appendChild(R)}if(u.length>0){if(this._isDefaultSelectorEnabled()&&h!==I._CONST_OFF&&this._createTableBodyDefaultSelector(t.key,o),this._isGutterStartColumnEnabled()){let e=this._createTableGutterCell("body","start");o.insertBefore(e,o.firstChild)}if(this._isGutterEndColumnEnabled()){let e=this._createTableGutterCell("body","end");o.appendChild(e)}}}else if(this._setTableBodyRowAttributes(t,o),this._tableBodyRowDefaultRenderer(e,t,d),u.length>0){if(this._isDefaultSelectorEnabled()&&h!==I._CONST_OFF&&this._createTableBodyDefaultSelector(t.key,o),this._isGutterStartColumnEnabled()){let e=this._createTableGutterCell("body","start");o.insertBefore(e,o.firstChild)}if(this._isGutterEndColumnEnabled()){let e=this._createTableGutterCell("body","end");o.appendChild(e)}}return h===I._CONST_OFF&&u.length>0&&this._isDefaultSelectorEnabled()&&(this._getTableBodyCells(e,o)[0].colSpan+=I._SELECTOR_OFF_COLSPAN_OFFSET),this._getLayoutManager().handleRowRefresh(e,o,n),o[I._DATA_OJ_EDITABLE]=_.editable,o[I._DATA_OJ_SELECTABLE]=h,o},I.prototype._refreshAddNewRowPlaceholder=function(e,t){let o=this._getPlaceHolderRow();if(!this._isAddNewRowEnabled()){if(null!=o){if(this._hasActiveAddRow())if(this._isTableHeaderless())this._getTableBodyRows().length>0?this._setActiveRow(0,null,!0):this._setActiveNoData();else{var i=this._getFirstVisibleColumnIndex(0,!0);this._setActiveHeader(i)}this._cleanTemplateNodes(o),S(o).remove(),this._hasAddRowTemplate=!1,this._setTableActionableMode(!1)}return Promise.resolve(!1)}const l=this._getTemplateEngine(),n=this._getSlotTemplate("addRowTemplate"),s=this._getSlotTemplate("addRowCellTemplate");if(null!==l){let i,u=function(e){this._handleAddRow(e,null)}.bind(this);const c=this._getRootElement(),E=this._getTableBody();var a;if(null!=o&&(this._cleanTemplateNodes(o),S(o).empty()),null==o&&(o=this._createTableBodyRow()),null!=e?e.appendChild(o):E.insertBefore(o,E.firstChild),null!=n&&this._isDefaultAddRowTemplateSlotValid()){i=this._getRowSlotTemplateContextObject({},!0),i.submitAddRow=u;const t=l.execute(c,n,i,this.options.as,E);for(let e=0;e<t.length;e++){if("TR"===t[e].tagName){o.parentNode.replaceChild(t[e],o);break}o.appendChild(t[e])}o=null==e?this._getRawTableBodyRow(-1):e.children?e.children[0]:S(e).children()[0]}else if(null!==s&&this._isDefaultAddRowCellTemplateSlotValid())for(var r=this._getColumnDefs().length,_=0;_<r;_++){a=this._createTableBodyCell(),o.appendChild(a),i=this._getCellSlotTemplateContextObject({columnIndex:_},!0),i.submitAddRow=u;var h=l.execute(c,s,i,this.options.as,E);h instanceof Array||(h=[h]);for(let e=0;e<h.length;e++)a.appendChild(h[e])}o.classList.add(I.CSS_CLASSES._TABLE_ADD_ROW_PLACEHOLDER_CLASS);var d=this._getPlaceHolderRowCells(o);for(let e=0;e<d.length;e++)a=d[e],this._styleTableAddRowCell(e,a);if(this._hasAddRowTemplate=!0,this._isDefaultSelectorEnabled()&&(a=document.createElement(I.DOM_ELEMENT._TD),o.insertBefore(a,o.firstChild),a.classList.add(I.CSS_CLASSES._TABLE_FROZEN_START),this._isVerticalGridEnabled()&&a.classList.add(I.CSS_CLASSES._TABLE_VGRID_LINES_CLASS)),this._isGutterStartColumnEnabled()){let e=this._createTableGutterCell("body","start");o.insertBefore(e,o.firstChild)}if(this._isGutterEndColumnEnabled()){let e=this._createTableGutterCell("body","end");o.appendChild(e)}return t||this._getLayoutManager()._updateStickyRowTops(),this._finalizeNonBodyRowRendering([o])}return Promise.resolve(!1)},I.prototype._finalizeBodyRowRendering=function(e){var t=this._getTableBody();return this._waitForAllElementsToResolve([t]).then(function(){var t=this._hasEditableRow()?this._getEditableRowKey():null,o=this._isTableActionableMode()&&this._active?this._active.key:null;return e.forEach(function(e){var i=this._getRowKey(e);null!=t&&u.KeyUtils.equals(i,t)||null!=o&&u.KeyUtils.equals(i,o)||b.disableAllFocusableElements(e,null,!0)}.bind(this)),Promise.resolve(!0)}.bind(this))},I.prototype._finalizeNonBodyRowRendering=function(e){return this._waitForAllElementsToResolve(e).then(function(){return e.forEach(function(e){b.disableAllFocusableElements(e,null,!0)}),Promise.resolve(!0)})},I.prototype._waitForAllElementsToResolve=function(e){var t=[];return e.forEach(function(e){e&&t.push(T.getContext(e).getBusyContext().whenReady())}),Promise.all(t)},I.prototype._refreshRow=function(e,t,o,i){var l=this._getData(),n=this._getTableBodyRow(e);if(!o){if(!l)return Promise.resolve(!1);if(!n){var s=I._LOGGER_MSG._ERR_REFRESHROW_INVALID_INDEX_SUMMARY,a=g.applyParameters(I._LOGGER_MSG._ERR_REFRESHROW_INVALID_INDEX_DETAIL,{rowIdx:e.toString()});throw new RangeError(s+"\n"+a)}}var r,_=this._getRowKeyForRowIdx(e);if(this._getLayoutManager().notifyTableUpdate(I._UPDATE._ROW_REFRESH),i){var h=new Map,d={data:n[I._ROW_ITEM_EXPANDO].data,metadata:n[I._ROW_ITEM_EXPANDO].metadata};h.set(_,d),r=Promise.resolve({results:h})}else r=l.fetchByKeys({keys:new Set([_])});return r.then(function(o){if(null==o||null==o.results||0===o.results.size)return Promise.resolve(!1);t=t&&S.contains(n,document.activeElement);var i=o.results.get(_);return this._refreshTableBodyRow(e,{data:i.data,metadata:i.metadata,index:e,key:_},null,null,null,!0),t&&this._getTable().focus(),(n=this._getTableBodyRow(e))?this._finalizeBodyRowRendering([n]):Promise.resolve(!0)}.bind(this))},I.prototype._refreshTableStatusMessage=function(){var e=this._getTableStatusMessage();null!=e&&S(e).remove(),this._createTableStatusMessage()},I.prototype._showStatusMessage=function(){if(!this._showStatusTimeout){var e=this._getTableTempSkeletonRow();if(!this._statusMessageShown&&!e){if(this._isSkeletonSupport()){var t=this._getData();if(t instanceof u.TableDataSourceAdapter){var o=t._startIndex;if(null!=o&&o>0)return}this._isExternalScrollEnabled()&&this._bufferScrollerForLastRow(),this._removeAllTableBodyRows()}this._showStatusTimeout=setTimeout(function(){this._refreshTableStatusPosition(!0),this._showStatusTimeout=null}.bind(this),this._getShowStatusDelay())}}},I.prototype._showProgressiveLoading=function(){if(this._isSkeletonSupport()){var e=this._getTableBodyRows(),t=this._getTableTempSkeletonRow();if(null!=e&&e.length>0&&!t){(t=this._createTableBodyRow()).classList.add(I.CSS_CLASSES._TABLE_FETCH_SKELETON_ROW_CLASS);var o=this._createTableBodyCell(),i=this._getColumnDefs().length;this._isGutterStartColumnEnabled()&&(i+=1),this._isGutterEndColumnEnabled()&&(i+=1),o.colSpan=this._isDefaultSelectorEnabled()?i+1:i,o.classList.add(I.CSS_CLASSES._TABLE_SKELETON_CELL_CLASS);for(var l=0;l<3;l++)o.appendChild(this._createSkeletonRow());t.appendChild(o),this._appendElementToTableBody(t,this._getTableBody()),this._skeletonHWMSFadeInEndListener=function(){t.classList.remove(I.CSS_CLASSES._ANIMATION_SKELETON_FADE_IN_CLASS),t.querySelectorAll(".oj-table-skeleton").forEach(function(e){e.classList.add("oj-animation-skeleton")}),t.removeEventListener("animationend",this._skeletonHWMSFadeInEndListener)}.bind(this),t.addEventListener("animationend",this._skeletonHWMSFadeInEndListener),t.classList.add(I.CSS_CLASSES._ANIMATION_SKELETON_FADE_IN_CLASS)}}},I.prototype._insertSkeletonRow=function(e){if(this._isSkeletonSupport()){var t,o=this._getTableBodyRows();if(-1===e&&this._isAddNewRowEnabled())t=this._getPlaceHolderRow();else{if(!(null!=o&&o.length>0))return;t=this._getTableBodyRow(e)}for(var i=t.children,l=0;l<i.length;l++)i[l].classList.add(I.CSS_CLASSES._TABLE_HIDDEN_CELL_CLASS);var n=this._createTableBodyCell(),s=this._getColumnDefs().length;this._isGutterStartColumnEnabled()&&(s+=1),this._isGutterEndColumnEnabled()&&(s+=1),n.colSpan=this._isDefaultSelectorEnabled()?s+1:s,n.classList.add(I.CSS_CLASSES._TABLE_SKELETON_CELL_CLASS),-1===e&&(n.style[I.CSS_PROP._TOP]=i[0].style.top);var a=this._createSkeletonRow();n.appendChild(a),t.insertBefore(n,t.firstChild),this._skeletonHWMSFadeInEndListener=function(){a.classList.remove(I.CSS_CLASSES._ANIMATION_SKELETON_FADE_IN_CLASS),a.querySelectorAll(".oj-table-skeleton").forEach(function(e){e.classList.add("oj-animation-skeleton")}),a.removeEventListener("animationend",this._skeletonHWMSFadeInEndListener)}.bind(this),a.addEventListener("animationend",this._skeletonHWMSFadeInEndListener),a.classList.add(I.CSS_CLASSES._ANIMATION_SKELETON_FADE_IN_CLASS)}},I.prototype._removeSkeletonRow=function(e){if(this._isSkeletonSupport()){var t,o=this._getTableBodyRows();if(-1===e&&this._isAddNewRowEnabled())t=this._getPlaceHolderRow();else{if(!(null!=o&&o.length>0))return;t=this._getTableBodyRow(e)}var i=t.children[0],l=i.children[0];l.classList.remove(I.CSS_CLASSES._ANIMATION_SKELETON_FADE_IN_CLASS),l.removeEventListener("animationend",this._skeletonHWMSFadeInEndListener),t.removeChild(i);for(var n=t.children,s=0;s<n.length;s++)n[s].classList.remove(I.CSS_CLASSES._TABLE_HIDDEN_CELL_CLASS)}},I.prototype._hideStatusMessage=function(){this._clearShowStatusTimeout();var e=this._getTableTempSkeletonRow();if(this._statusMessageShown||e){var t=this._getTableStatusMessage();if(t.style[I.CSS_PROP._DISPLAY]=I.CSS_VAL._NONE,this._isSkeletonSupport())if(e)this._getTableBody().removeChild(e);else for(var o=t.childNodes,i=o.length;i>0;i--)t.removeChild(o[i-1]);this._statusMessageShown=!1}},I.prototype._isStatusMessageShown=function(){return this._statusMessageShown},I.prototype._getDefaultOptions=function(){if(null==this._defaultOptions){this._defaultOptions={};const e=Object.keys(I._CSS_Vars),t=e.map(e=>I._CSS_Vars[e]),o=A.getCachedCSSVarValues(t);e.forEach((e,t)=>{this._defaultOptions[e]=o[t]})}return this._defaultOptions},I.prototype._getShowStatusDelay=function(){return E.getCSSTimeUnitAsMillis(this._getDefaultOptions().showIndicatorDelay)},I.prototype._isSkeletonSupport=function(){return"skeleton"===this._getDefaultOptions().loadIndicator},I.prototype._showNoDataMessage=function(){if(!this._noDataMessageShown){var e=this._getTableBodyMessageRow(),t=this._getData(),o=this._getSlotTemplate("noData");if(this._isDefaultTemplateSlotValid("noData")&&null!==o){var i=this._getTable(),l=this._getTableBody();i.classList.add(I.CSS_CLASSES._TABLE_NO_DATA_CONTAINER_CLASS);var n=document.createElement(I.DOM_ELEMENT._TR);if(n.id=this.createSubId("noData"),n.classList.add(I.CSS_CLASSES._TABLE_NO_DATA_ROW_CLASS),this._appendElementToTableBody(n,l),this._isGutterStartColumnEnabled()){let e=this._createTableGutterCell("body","start");n.appendChild(e)}var s=document.createElement(I.DOM_ELEMENT._TD),a=this._getColumnDefs().length;if(this._isDefaultSelectorEnabled()&&(a+=1),s.setAttribute(I.DOM_ATTR._COLSPAN,a),n.appendChild(s),this._isGutterEndColumnEnabled()){let e=this._createTableGutterCell("body","end");n.appendChild(e)}var r=this._getTemplateEngine();if(null!=r)r.execute(this._getRootElement(),o,{},null,l).forEach(function(e){s.appendChild(e)}),this._hasNoDataTemplate=!0}else{var _=null;_=null!=this.options.emptyText?this.options.emptyText:this.getTranslatedString(I._BUNDLE_KEY._MSG_NO_DATA);var h=null!=t?_:this.getTranslatedString(I._BUNDLE_KEY._MSG_INITIALIZING);null==e?this._createTableBodyMessageRow(this._getColumnDefs().length,h):this._setTableBodyMessage(h)}this._noDataMessageShown=!0}},I.prototype._hideNoDataMessage=function(){if(this._noDataMessageShown){var e=this._getTableBodyMessageRow();if(null!=e)S(e).remove();else{var t=this._getTable();if(t.classList.contains(I.CSS_CLASSES._TABLE_NO_DATA_CONTAINER_CLASS)){t.classList.remove(I.CSS_CLASSES._TABLE_NO_DATA_CONTAINER_CLASS);var o=this._getTableNoDataRow();null!=o&&(this._cleanTemplateNodes(o),S(o).remove(),this._hasNoDataTemplate=!1)}}this._noDataMessageShown=!1}},I.prototype._handleContextMenuResizePopup=function(){let e,t;if("redwood"===A.parseJSONFromFontFamily("oj-theme-json").behavior){let o=document.getElementById(this._getTableUID()+"_resize_column_width_input"),i=this._getContextMenuResizeDialog();e=parseInt(i.getAttribute(I._DATA_OJ_COLUMNIDX),10),this._IsCustomElement()?(t=o.value,i.close()):(t=S(o).ojInputNumber("option","value"),S(i).ojDialog("close"))}else{let o=document.getElementById(this._getTableUID()+"_resize_popup_spinner"),i=this._getContextMenuResizePopup();e=parseInt(i.getAttribute(I._DATA_OJ_COLUMNIDX),10),this._IsCustomElement()?(t=o.value,i.close()):(t=S(o).ojInputNumber("option","value"),S(i).ojPopup("close"))}for(var o=[],i=this.options.columns.length,l=0;l<i;l++)o[l]=S.extend({},{},this.options.columns[l]);var n=this._getLayoutManager().getMinimumForcedOffsetWidth(e);o[e].width=Math.max(t,n),this.option("columns",o,{_context:{writeback:!0,internalSet:!0}}),this._clearCachedMetadata(),this._queueTask(function(){this._getLayoutManager().notifyTableUpdate(I._UPDATE._COL_RESIZE),setTimeout(function(){this._getTable().focus()}.bind(this),0)}.bind(this))},I.prototype._handleContextMenuSelect=function(e,t){var o,i=(o=t?t.item:S(e.target)).attr(I._DATA_OJ_COMMAND),l=this._getFirstAncestor(this._contextMenuEvent.target,"."+I.CSS_CLASSES._COLUMN_HEADER_CELL_CLASS,!0);l=null==l?this._contextMenuEventHeaderColumn:l;var n=this._getFirstAncestor(this._contextMenuEvent.target,"."+I.CSS_CLASSES._TABLE_DATA_CELL_CLASS,!0),s=null;if(null!=l?s=this._getElementColumnIdx(l):null!=n&&(s=this._getElementColumnIdx(n)),null!==s)if("oj-table-sortAsc"===i)this._handleSortTableHeaderColumn(s,!0,e);else if("oj-table-sortDsc"===i)this._handleSortTableHeaderColumn(s,!1,e);else if("oj-table-enableNonContiguousSelection"===i)this._nonContiguousSelection=!0,this._removeTableBodyRowTouchSelectionAffordance(),o.attr(I._DATA_OJ_COMMAND,"oj-table-disableNonContiguousSelection"),o.children().first().text(this.getTranslatedString("labelDisableNonContiguousSelection"));else if("oj-table-disableNonContiguousSelection"===i)this._nonContiguousSelection=!1,o.attr(I._DATA_OJ_COMMAND,"oj-table-enableNonContiguousSelection"),o.children().first().text(this.getTranslatedString("labelEnableNonContiguousSelection"));else if("oj-table-resize"===i){var a=l||n,r=this._getLayoutManager().getColumnWidthProperty(a),_=null!=l?l:n;if("redwood"===A.parseJSONFromFontFamily("oj-theme-json").behavior){let e=this._getContextMenuResizeDialog();e.setAttribute(I._DATA_OJ_COLUMNIDX,s);let t=document.getElementById(this._getTableUID()+"_resize_column_width_input");this._IsCustomElement()?(t.value=Math.round(r),e.open(_)):(S(t).ojInputNumber("option","value",Math.round(r)),S(e).ojDialog("open",_))}else{let e=this._getContextMenuResizePopup();e.setAttribute(I._DATA_OJ_COLUMNIDX,s);let t=document.getElementById(this._getTableUID()+"_resize_popup_spinner");this._IsCustomElement()?(t.value=Math.round(r),e.open(_)):(S(t).ojInputNumber("option","value",Math.round(r)),S(e).ojPopup("open",_))}}},I.prototype._registerResizeListener=function(){var e=this._getTableContainer();this._resizeListener||(this._resizeListener=function(){var e=this._getLayoutManager(),t=window.getComputedStyle(this._getTableContainer());e.isSizingRefreshRequired(e.getExactOffsetWidth(t),e.getExactOffsetHeight(t))&&(e.notifyTableUpdate(I._UPDATE._RESIZE),this._hasPendingTasks()||this._syncTableSizing(!0))}.bind(this)),this._isResizeListenerAdded||(E.addResizeListener(e,this._resizeListener,50,!0),this._isResizeListenerAdded=!0)},I.prototype._unregisterResizeListener=function(){var e=this._getTableContainer();E.removeResizeListener(e,this._resizeListener),this._isResizeListenerAdded=!1},I.prototype._unregisterChildStateListeners=function(e){for(var t=e.querySelectorAll("*"),o=0;o<t.length;o++)this._UnregisterChildNode(t[o])},I.prototype._isLoadMoreOnScroll=function(){return this.options.scrollPolicy===I._OPTION_SCROLL_POLICY._AUTO?!(this._data instanceof u.TableDataSourceAdapter):this.options.scrollPolicy!==I._OPTION_SCROLL_POLICY._LOAD_ALL},I.prototype._isTableHeaderless=function(){for(var e=this._getColumnDefs(),t=e.length,o=0;o<t;o++){var i=this._getSlotTemplate(e[o][I._HEADER_TEMPLATE]);if(null!=e[o].headerText||null!=e[o].headerStyle||null!=e[o].sortable&&e[o].sortable!==I._OPTION_DISABLED||null!=e[o].sortProperty||null!=e[o].headerRenderer||null!=i)return!1}if(this._isDefaultHeaderTemplateSlotValid()&&null!=this._getSlotTemplate("headerTemplate"))return!1;return!0},I.prototype._isTableFooterless=function(){for(var e=this._getColumnDefs(),t=e.length,o=0;o<t;o++){var i=this._getColumnRenderer(o,"footer"),l=this._getSlotTemplate(e[o][I._FOOTER_TEMPLATE]);if(null!=i)return!1;if(null!=l)return!1}if(this._isDefaultFooterTemplateSlotValid()&&null!=this._getSlotTemplate("footerTemplate"))return!1;return!0},I.prototype._isTableHeaderColumnsRendered=function(){return!0===this._renderedTableHeaderColumns},I.prototype._isTableRefreshNeeded=function(e,t,o){var i,l=this.options;return"contextMenu"===e&&t==="#"+this._getTableUID()+"_contextmenu"||"columns"===e&&!this._isColumnMetadataUpdated(t)||"scrollToKey"===e||"addRowDisplay"===e||"scrollPosition"===e||"selection"===e||"selected"===e||"currentRow"===e||"editRow"===e||"scrollPolicyOptions"===e&&this._isStickyLayoutEnabled()&&null!=o&&("scrollerOffsetTop"===o.subkey||"scrollerOffsetBottom"===o.subkey||"scrollerOffsetStart"===o.subkey||"scrollerOffsetEnd"===o.subkey)||u.Object.compareValues(t,l[e])?i=!1:("verticalGridVisible"!==e&&"display"!==e||(this._renderedTableHeaderColumns=!1),i=!0),i},I.prototype._isTableSortable=function(){for(var e=this._getColumnDefs(),t=e.length,o=0;o<t;o++)if(e[o].sortable===I._OPTION_ENABLED)return!0;return!1},I.prototype._isTableColumnsResizable=function(){for(var e=this._getColumnDefs(),t=e.length,o=0;o<t;o++)if(e[o].resizable===I._OPTION_ENABLED)return!0;return!1},I.prototype._isTouchDevice=function(){return null==this._isTouch&&(this._isTouch=b.isMobileTouchDevice()),this._isTouch},I.prototype._processSlottedChildren=function(){var e=this._getTableBottomSlot();null!=e&&S(e).remove();for(var t=R.CustomElementUtils.getSlotMap(this._getRootElement()),o=Object.keys(t),i=0;i<o.length;i++){var l=o[i];if("bottom"===l){var n=t[l];if(null!=n){e=this._createTableBottomSlot();for(var s=0;s<n.length;s++)e.appendChild(n[s])}}}},I.prototype._handleSortTableHeaderColumn=function(e,t,o){this._clearSortedHeaderColumn(e);var i=this._getColumnDefs()[e],l=null==i.sortProperty?i.field:i.sortProperty;this._invokeDataSort(l,t,o),this._sortColumn=i,this._refreshSortTableHeaderColumn(l,t)},I.prototype._processFetchSort=function(e){try{var t=e.fetchParameters[I._CONST_SORTCRITERIA];if(null!=t&&t.length>0){var o=t[0].attribute,i=t[0].direction===I._COLUMN_SORT_ORDER._ASCENDING;this._refreshSortTableHeaderColumn(o,i),this._setCurrentRow(this.options.currentRow)}else this._clearSortedHeaderColumn()}catch(e){C.error(e)}},I.prototype._handleMouseEnterColumnHeader=function(e){if(e){this._isColumnSelectionEnabled()&&e.classList.add(I.MARKER_STYLE_CLASSES._HOVER);var t=this._getElementColumnIdx(e);(e.classList.contains(I.CSS_CLASSES._COLUMN_HEADER_ASC_ICON_CLASS)||e.classList.contains(I.CSS_CLASSES._COLUMN_HEADER_DSC_ICON_CLASS)||e.classList.contains(I.CSS_CLASSES._COLUMN_HEADER_DEFAULT_SORT_ICON_CLASS))&&e.classList.add(I.MARKER_STYLE_CLASSES._HOVER),this._showTableHeaderColumnSortIcon(t)}},I.prototype._handleMouseLeaveColumnHeader=function(e){if(e){e.classList.remove(I.MARKER_STYLE_CLASSES._HOVER);var t=this._getElementColumnIdx(e);this._hideTableHeaderColumnSortIcon(t)}},I.prototype._showTableHeaderColumnSortIcon=function(e){if(this._getColumnDefs()[e].sortable===I._OPTION_ENABLED){var t=this._getTableHeaderColumn(e);if(!t)return;if(null==S(t).data("sorted")){var o=this._getSortIconContainer(t),i=this._getSortIcon(t);null!=o&&null!=i&&(i.classList.remove(I.MARKER_STYLE_CLASSES._DISABLED),i.classList.add(I.MARKER_STYLE_CLASSES._ENABLED),i.classList.add(I.MARKER_STYLE_CLASSES._DEFAULT))}}},I.prototype._hideTableHeaderColumnSortIcon=function(e){if(this._getColumnDefs()[e].sortable===I._OPTION_ENABLED){var t=this._getTableHeaderColumn(e);if(null==S(t).data("sorted")){var o=this._getSortIconContainer(t),i=this._getSortIcon(t);null!=o&&null!=i&&(o.setAttribute(I.DOM_ATTR._TITLE,this.getTranslatedString("labelSortAsc")),i.classList.remove(I.CSS_CLASSES._COLUMN_HEADER_DSC_ICON_CLASS),i.classList.remove(I.CSS_CLASSES._COLUMN_HEADER_ASC_ICON_CLASS),i.classList.add(I.CSS_CLASSES._COLUMN_HEADER_DEFAULT_SORT_ICON_CLASS),i.classList.add(I.MARKER_STYLE_CLASSES._DISABLED),i.classList.remove(I.MARKER_STYLE_CLASSES._ENABLED),i.classList.remove(I.MARKER_STYLE_CLASSES._DEFAULT))}}},I.prototype._refreshSortTableHeaderColumn=function(e,t){for(var o,i=this._getColumnDefs(),l=null,n=i.length,s=0;s<n;s++){var a=i[s];if(e===(null==a.sortProperty?a.field:a.sortProperty)){l=s;break}}if(null!=l){this._clearSortedHeaderColumn(l);var r=this._getTableHeaderColumn(l);if(null!=r){var _=S(r).data("sorted"),h=this._getSortIconContainer(r);null!=(o=this._getSortIcon(r))&&(o.classList.add(I.MARKER_STYLE_CLASSES._DEFAULT),o.classList.remove(I.MARKER_STYLE_CLASSES._DISABLED)),t&&_!==I._COLUMN_SORT_ORDER._ASCENDING?(S(r).data("sorted",I._COLUMN_SORT_ORDER._ASCENDING),null!=o&&(h.setAttribute(I.DOM_ATTR._TITLE,this.getTranslatedString("labelSortDsc")),o.classList.remove(I.CSS_CLASSES._COLUMN_HEADER_DEFAULT_SORT_ICON_CLASS),o.classList.remove(I.CSS_CLASSES._COLUMN_HEADER_DSC_ICON_CLASS),o.classList.add(I.CSS_CLASSES._COLUMN_HEADER_ASC_ICON_CLASS))):t||_===I._COLUMN_SORT_ORDER._DESCENDING||(S(r).data("sorted",I._COLUMN_SORT_ORDER._DESCENDING),null!=o&&(h.setAttribute(I.DOM_ATTR._TITLE,this.getTranslatedString("labelSortAsc")),o.classList.remove(I.CSS_CLASSES._COLUMN_HEADER_DEFAULT_SORT_ICON_CLASS),o.classList.remove(I.CSS_CLASSES._COLUMN_HEADER_ASC_ICON_CLASS),o.classList.add(I.CSS_CLASSES._COLUMN_HEADER_DSC_ICON_CLASS)))}}},I.prototype._getSortedTableHeaderColumnIdx=function(){for(var e=this._getTableHeaderColumns(),t=e?e.length:0,o=0;o<t;o++){if(null!=S(e[o]).data("sorted"))return o}return null},I.prototype._clearSortedHeaderColumn=function(e){var t=this._getSortedTableHeaderColumnIdx();if(null!=t){var o=this._getTableHeaderColumn(t);if(S(o).data("sorted",null),null==e||t!==e)this._hideTableHeaderColumnSortIcon(t);else{var i=this._getSortIcon(o);null!=i&&i.classList.remove(I.MARKER_STYLE_CLASSES._SELECTED)}}},I.prototype._getColumnDefs=function(){return this._columnDefArray||(this._columnDefArray=this._getColumnMetadata()),this._columnDefArray},I.prototype._getColumnMetadata=function(e){var t,o=null!=e?e:this.options.columns,i=this.options.columnsDefault;if((0===o.length||1===o.length&&null==o[0].id&&null==o[0].headerText&&null==o[0].field)&&null==i.headerText&&null==i.field)return[];var l=[],n=o.length;for(t=0;t<n;t++)l[t]=S.extend({},i,o[t]);var s=[],a=l.length;for(t=0;t<a;t++)s.push(l[t]);var r=this._getData(),_=!1;for(null!=r&&null!=r.getCapability("sort")&&(_=!0),t=0;t<a;t++)null==s[t][I._FIELD_ID]&&(s[t][I._FIELD_ID]=I._COLUMN_HEADER_ID_PREFIX+t),!_||null!=s[t].sortable&&s[t].sortable!==I._OPTION_AUTO||(s[t].sortable=I._OPTION_ENABLED);return s},I.prototype._getColumnRenderer=function(e,t){var o=this._getColumnDefs()[e],i=null;return"cell"===t?i=o.renderer:"footer"===t?i=o.footerRenderer:"header"===t&&(i=o.headerRenderer),this._WrapCustomElementRenderer(i)},I.prototype._getRowRenderer=function(){return this._WrapCustomElementRenderer(this.options.rowRenderer)},I.prototype._isLastRowInViewport=function(){var e=this._getTableBodyRows(),t=e[e.length-1];return this._getLayoutManager().getVerticalOverflowDiff(t).bottom-t.offsetHeight<=0},I.prototype._registerDomScroller=function(){this._unregisterDomScroller();var e=this._getLayoutManager();this._domScrollerSuccessFunc=function(t){if(this._clearDataWaitingState(),null!=t){this._noMoreData=!1,t.maxCountLimit&&(this._noMoreData=!0,this._handleScrollerMaxRowCount());var o=t[I._CONST_VALUE];if(null!=o){var i=o[I._CONST_DATA],l=o.metadata.map(function(e){return e[I._CONST_KEY]}),n=o[I._CONST_METADATA];if(i.length>0)return void this._queueTask(function(){var o;for(o=l.length-1;o>=0;o--)null!==this._getRowIdxForRowKey(l[o])&&(i.splice(o,1),l.splice(o,1),n.splice(o,1));if(i.length>0){e.notifyTableUpdate(I._UPDATE._ROWS_ADDED);var s=this._getTableBodyRows().length,a=[];for(o=0;o<i.length;o++)a[o]=s+o;return this._refreshTableBody({isMouseWheel:t.isMouseWheel,data:i,keys:l,metadata:n,indexes:a},s,!0).then(function(){e.clearCachedDimensions(),t.done?(this._noMoreData=!0,this._syncScrollPosition()):this._syncScrollPosition(null,null!=this._scrollPosition)}.bind(this))}return Promise.resolve()}.bind(this))}t.done?(this._noMoreData=!0,this._clearScrollBuffer(),this._syncScrollPosition()):(this._clearScrollBuffer(),this._syncScrollPosition(null,null!=this._scrollPosition))}else this._clearScrollBuffer(),this._syncScrollPosition()}.bind(this);var t=this._getTableBodyRows().length;this._requiresDomScrollerRefresh=!1,this._domScroller=new m(e.getScroller(),this._getData(),{asyncIterator:this._dataProviderAsyncIterator,contentElement:e.getContentElement(),fetchSize:this.options.scrollPolicyOptions.fetchSize,maxCount:this.options.scrollPolicyOptions.maxCount,initialRowCount:t,success:this._domScrollerSuccessFunc.bind(this),request:this._handleDataFetchStart.bind(this),localKeyValidator:function(e){return null!==this._findRowElementByKey(e)}.bind(this),beforeFetch:function(e){return null==this._idleCallback&&(this._fetchBySyncScroll=Math.abs(this._scrollY-e)<=1,this._setDataWaitingState(!1),this._showProgressiveLoading(),!0)}.bind(this),beforeScroll:this._clearScrollPosBusyState.bind(this),fetchTrigger:4})},I.prototype._unregisterDomScroller=function(){null!=this._domScroller&&(this._domScroller.destroy(),this._domScroller=null)},I.prototype._updateHeaderTop=function(e){if(this._isDefaultSelectorEnabled()){var t=this._getTableSelectorColumn();null!=t&&(t.style[I.CSS_PROP._TOP]=e+"px")}var o=this._getTableHeaderColumns();if(null!=o)for(var i=0;i<o.length;i++)o[i].style[I.CSS_PROP._TOP]=e+"px"},I.prototype._updateFooterBottom=function(e){if(this._isDefaultSelectorEnabled()){var t=this._getTableFooterSelectorCell();null!=t&&(t.style[I.CSS_PROP._BOTTOM]=e+"px")}var o=this._getTableFooterCells();if(null!=o)for(var i=0;i<o.length;i++)o[i].style[I.CSS_PROP._BOTTOM]=e+"px"},I.prototype._handleScrollerMaxRowCount=function(){var e=this.getTranslatedString("msgScrollPolicyMaxCountSummary"),t=this.getTranslatedString("msgScrollPolicyMaxCountDetail");C.info(e+"\n"+t)},I.prototype._clearIdleCallback=function(){null!=this._idleCallback&&(b.isRequestIdleCallbackSupported()?(window.cancelIdleCallback(this._idleCallback),window.cancelAnimationFrame(this._idleCallback)):window.cancelAnimationFrame(this._idleCallback),this._idleCallback=null)},I.prototype._requestIdleCallback=function(e,t){if(b.isRequestIdleCallbackSupported()){var o,i=window.setTimeout(function(){this._idleCallback=window.requestAnimationFrame(function(){t()}),i=null},250);e&&b.isBlink()&&(o={timeout:100}),this._idleCallback=window.requestIdleCallback(function(e){null!=i&&(window.clearTimeout(i),t(e))},o)}else this._idleCallback=window.requestAnimationFrame(function(){t()})},I.prototype._renderRowsWhenIdle=function(e,t,o,i,l,n){if(0===e.length)return this._idleCallback=null,void this._afterRowsRendered(t).then(function(e){i(e)},function(e){l(e)});var s,a=this,r=0;function _(){window.requestAnimationFrame(function(){a._getLayoutManager().handleAfterRowsProcessed(s),a._appendElementToTableBody(s,t),a._renderRowsWhenIdle(e,t,o+r,i,l,n),n&&b.isFirefox()&&t.scrollTop!==a._scrollTop&&(t.scrollTop=a._scrollTop)})}this._requestIdleCallback(n,function(i){void 0===i?function(){s=document.createDocumentFragment();for(var i=0;i<I._BATCH_PROCESS_SIZE_WHEN_IDLE&&0!==e.length;i++)0!==r||a._getLayoutManager().isTableWidthConstrained()||(t.style[I.CSS_PROP._OVERFLOW_X]="hidden"),a._renderRow(e.shift(),s,o),r+=1;_()}():function(i){var l=i.timeRemaining(),n=0;for(s=document.createDocumentFragment();(l>n||i.didTimeout)&&0!==e.length;)0!==r||a._getLayoutManager().isTableWidthConstrained()||(t.style[I.CSS_PROP._OVERFLOW_X]="hidden"),a._renderRow(e.shift(),s,o),r+=1,n=l-i.timeRemaining(),l=i.timeRemaining();_()}(i)})},I.prototype._renderRow=function(e,t,o){var i=e.row,l=e.rowIdx;if(null!=i){var n=this._createTableBodyRow();this._setTableBodyRowAttributes(i,n),this._styleTableBodyRow(n,!0),this._insertTableBodyRow(l,n,t),this._refreshTableBodyRow(l,i,n,t,o)}},I.prototype._afterRowsRendered=function(e){this._clearCachedDomRowData(),this._clearIdleRenderBusyState(),this._hasRowOrCellRendererOrTemplate()&&f.subtreeAttached(e);var t=this._getTableBodyRows();return t.length>0?this._finalizeBodyRowRendering(t):Promise.resolve(!0)},I.prototype._getRowIdxsForElementsWithStyleClass=function(e){var t=this._tableQuerySelectorAll(this._getTable(),e),o=[];if(t&&t.length>0)for(var i=t.length,l=0;l<i;l++){for(var n=this._getElementRowIdx(t[l]),s=!1,a=o.length,r=0;r<a;r++)o[r]===n&&(s=!0);s||o.push(n)}return o},I.prototype._getColumnIdxsForElementsWithStyleClass=function(e){var t=this._tableQuerySelectorAll(this._getTable(),e),o=[];if(t&&t.length>0)for(var i=t.length,l=0;l<i;l++){var n=this._getElementColumnIdx(t[l]),s=!1;null===n&&(t[l].classList.contains(I.CSS_CLASSES._COLUMN_HEADER_SELECTOR_CELL_CLASS)||t[l].classList.contains(I.CSS_CLASSES._TABLE_FOOTER_SELECTOR_CELL_CLASS))&&(n=-1);for(var a=o.length,r=0;r<a;r++)o[r]===n&&(s=!0);s||o.push(n)}return o},I.prototype._syncTableSizing=function(e){var t=this._getLayoutManager();t.isTableLayoutRefreshRequired()&&(e||t.isSizingRefreshRequired())&&t.refreshTableDimensions();var o=this._updateScrollBufferHeight();this._isLoadMoreOnScroll()&&!this._dataFetching&&this._domScroller?(this._setDataWaitingState(!1),this._domScroller.checkViewport(o>0||this._noDataMessageShown).then(this._domScrollerSuccessFunc,this._checkViewportRejected.bind(this))):(this._clearScrollBuffer(),this._syncScrollPosition())},I.prototype._updateScrollBufferHeight=function(){var e=0,t=this._getLayoutManager(),o=this._getTableBodyScrollBuffer();if(null!=o&&(e=o.offsetHeight)>0){var i=t.getVerticalOverflowDiff(o).bottom,l=Math.min(Math.max(0,e-i),e);l!==e&&(e=l,o.style[I.CSS_PROP._HEIGHT]=e+I.CSS_VAL._PX)}return e},I.prototype._clearScrollBuffer=function(){var e=this._getTableBodyScrollBuffer();null!=e&&(this._getTableBody().removeChild(e),this._clearDomCache(I.CSS_CLASSES._TABLE_BUFFER_ROW_CLASS))},I.prototype._addSingleTableBodyRow=function(e,t,o,i){var l=this._createTableBodyRow();return this._setTableBodyRowAttributes(t,l),this._styleTableBodyRow(l,!0),this._insertTableBodyRow(e,l,o),l=this._refreshTableBodyRow(e,t,l,o,i),o||f.subtreeAttached(l),l},I.prototype._animateVisibleRows=function(e,t,o){if(o=null==this._animationActionOverride?o:this._animationActionOverride,!this._hasAdditionalPendingTasks()){this._animationActionOverride=null;var i,l=this._getVisibleRowIdxs(),n=[];for(i=0;i<t.length;i++)-1===l.indexOf(t[i])&&n.push(t[i]);for(n.sort(function(e,t){return e-t}),i=n.length-1;i>=0;i--)e.splice(n[i],1);return this._unregisterResizeListener(),this._animateTableBodyRows(e,o).then(function(){this._registerResizeListener()}.bind(this))}return this._animationActionOverride="update",Promise.resolve()},I.prototype._cleanTemplateNodes=function(e){var t=this._getTemplateEngine();null!=t&&t.clean(e)},I.prototype._clearCachedMetadata=function(){this._columnDefArray=null,this._setTableActionableMode(!1)},I.prototype._getSlotTemplate=function(e){if(this._IsCustomElement()&&e){var t=R.CustomElementUtils.getSlotMap(this._getRootElement())[e];if(t&&t.length>0&&"template"===t[0].tagName.toLowerCase())return t[0]}return null},I.prototype._isDefaultCellTemplateSlotValid=function(){return this._isDefaultTemplateSlotValid("cellTemplate")},I.prototype._isDefaultRowTemplateSlotValid=function(){return this._isDefaultTemplateSlotValid("rowTemplate")},I.prototype._isDefaultHeaderTemplateSlotValid=function(){return this._isDefaultTemplateSlotValid("headerTemplate")},I.prototype._isDefaultFooterTemplateSlotValid=function(){return this._isDefaultTemplateSlotValid("footerTemplate")},I.prototype._isDefaultAddRowTemplateSlotValid=function(){return this._isDefaultTemplateSlotValid("addRowTemplate")},I.prototype._isDefaultAddRowCellTemplateSlotValid=function(){return this._isDefaultTemplateSlotValid("addRowCellTemplate")},I.prototype._isDefaultTemplateSlotValid=function(e){for(var t=this._getColumnDefs(),o=t.length,i=0;i<o;i++){var l=t[i][I._CELL_TEMPLATE],n=t[i][I._HEADER_TEMPLATE],s=t[i][I._FOOTER_TEMPLATE];if(e===l||e===n||e===s)return!1}return!0},I.prototype._getTemplateEngine=function(){return this._templateEngine},I.prototype._getVisibleRowIdxs=function(){var e=[],t=this._getTableBody(),o=this._getTableBodyRows();if(o.length>0&&t.offsetHeight>0){var i=S(window).height(),l=t.getBoundingClientRect();if(l.top>i)return e;var n=l.left>=0?l.left+1:l.right-1,s=l.top>=0?l.top:0,a=document.elementFromPoint(n,s),r=null;null!=a&&(r=this._getElementRowIdx(a));var _,h,d=null!=r?r:0;if(l.bottom>i)null!=(h=document.elementFromPoint(n,i-1))&&(_=this._getElementRowIdx(h));else{var u=parseInt(window.getComputedStyle(t).borderBottomWidth,10)||0,c=l.bottom>=0?l.bottom-u-1:0;null!=(h=document.elementFromPoint(n,c))&&(_=this._getElementRowIdx(h))}null==_&&(_=o.length-1);for(var E=d;E<=_;E++)e.push(E)}return e},I.prototype._hasRowOrCellRendererOrTemplate=function(e){if(null!=this._getRowRenderer())return!0;var t=null,o=null,i=this._getColumnDefs();if(null!=e)t=this._getColumnRenderer(e,"cell"),o=this._getSlotTemplate(i[e][I._CELL_TEMPLATE]);else for(var l=i.length,n=0;n<l&&null==(t=this._getColumnRenderer(n,"cell"))&&null==(o=this._getSlotTemplate(i[n][I._CELL_TEMPLATE]));n++);if(null!=t||null!=o)return!0;if(this._isDefaultRowTemplateSlotValid()&&null!=this._getSlotTemplate("rowTemplate"))return!0;if(this._isDefaultCellTemplateSlotValid()&&null!=this._getSlotTemplate("cellTemplate"))return!0;return!1},I.prototype._initFetch=function(e,t){var o=e||{},i=this._getData(),l=this._getLayoutManager();return null==i||!u.DataProviderFeatureChecker.isDataProvider(i)||this._isPagingModelDataProvider()&&!t?null==i?this._queueTask(function(){return l.notifyTableUpdate(t?I._UPDATE._DATA_SORT:I._UPDATE._REFRESH),Promise.resolve()}):void 0:this._queueTask(function(){return l.notifyTableUpdate(t?I._UPDATE._DATA_SORT:I._UPDATE._REFRESH),this._isExternalScrollEnabled()||(this._scrollTop=0,l.getScroller().scrollTop=0),i instanceof u.TableDataSourceAdapter&&(o.fetchType="init",this._isLoadMoreOnScroll()&&(o[I._CONST_OFFSET]=0)),this._invokeDataFetchRows(o)}.bind(this))},I.prototype._initTemplateEngine=function(){this._queueTask(function(){var e;try{const t={customElement:this._GetCustomElement()};e=p.__getTemplateEngine(t).then(function(e){this._templateEngine=e}.bind(this),function(e){C.warn(e)})}catch(t){C.warn(t),e=Promise.resolve(null)}return e}.bind(this))},I.prototype._initializeFetchFirstOptions=function(e){var t=e||{};return this._clientId=this._clientId||Symbol(),t[I._CONST_CLIENTID]=this._clientId,!t[I._CONST_PAGESIZE]&&this._isLoadMoreOnScroll()?t[I._CONST_PAGESIZE]=this.options.scrollPolicyOptions.fetchSize:t[I._CONST_PAGESIZE]=-1,t[I._CONST_SILENT]=!0,t},I.prototype._containsKey=function(e,t){for(var o=0;o<t.length;o++)if(u.KeyUtils.equals(t[o].key,e))return!0;return!1},I.prototype._invokeDataFetchRows=function(e){var t=this._initializeFetchFirstOptions(e),o=this._getData();return null!=o?new Promise(function(e){this._animateOnFetch=!1,this._noMoreData=!1,this._setDataWaitingState(),this._hasRefreshInQueue=!1,this._dataProviderAsyncIterator=o.fetchFirst(t)[Symbol.asyncIterator]();var i=function(e,t,l){var n=l;return(null==l||this._containsKey(l,t))&&(n=null),e.done||null==n&&(this._isLoadMoreOnScroll()||"function"==typeof o.getPageCount)?e:this._dataProviderAsyncIterator.next().then(function(t){return e.done=t.done,e.value.data=e.value.data.concat(t.value.data),e.value.metadata=e.value.metadata.concat(t.value.metadata),i(e,t.value.metadata,n)})}.bind(this),l=this._getScrollToKey(),n=this._dataProviderAsyncIterator.next();Promise.all([n,l]).then(function(e){var t=e[0],o=e[1];return i(t,t[I._CONST_VALUE].metadata,o)}).then(function(t){var i=t[I._CONST_VALUE],l=i[I._CONST_DATA],n=i.metadata.map(function(e){return e[I._CONST_KEY]}),s=0;o instanceof u.TableDataSourceAdapter&&(s=o[I._CONST_OFFSET]);var a=0;this._isPagingModelDataProvider()&&(a=o.getStartItemIndex());for(var r=[],_=l.length,h=0;h<_;h++)r[h]=s+a+h;var d=i[I._CONST_METADATA];this._unregisterDomScroller(),t.maxCountLimit?(this._noMoreData=!0,this._handleScrollerMaxRowCount()):t.done&&(this._noMoreData=!0),this._refreshAll({data:l,metadata:d,keys:n,indexes:r},s).then(function(){this._clearDataWaitingState(),this._processFetchSort(i),this._isLoadMoreOnScroll()&&this._registerDomScroller(),e(t)}.bind(this))}.bind(this),function(){this._clearDataWaitingState();var t=this._getTableBody();0===this._getTableBodyRows().length&&(this._showNoDataMessage(),this._finalizeNonBodyRowRendering([t]).then(function(){e(null)})),e(null)}.bind(this))}.bind(this)):Promise.resolve(null)},I.prototype._invokeDataSort=function(e,t,o){if(this._resetAriaLabel=!0,this._getData()){var i=[],l={};l[I._CONST_ATTRIBUTE]=e,l.direction=t?I._COLUMN_SORT_ORDER._ASCENDING:I._COLUMN_SORT_ORDER._DESCENDING,i.push(l),this._trigger("sort",o,{header:i[0][I._CONST_ATTRIBUTE],direction:i[0].direction}),this._beforeDataRefresh(!0),this._showStatusMessage(),this._initFetch({sortCriteria:i},!0)}},I.prototype._isColumnMetadataUpdated=function(e){if(null!=this._columnDefArray){var t=this._getColumnMetadata(e);if(this._columnDefArray.length!==t.length)return!0;for(var o=t.length,i=0;i<o;i++)for(var l=Object.keys(t[i]),n=0;n<l.length;n++){var s=l[n];if(t[i][s]!==this._columnDefArray[i][s]&&("id"!==s||null==t[i][s]||0!==t[i][s].indexOf(I._COLUMN_HEADER_ID_PREFIX)||null==this._columnDefArray[i][s]||0!==this._columnDefArray[i][s].indexOf(I._COLUMN_HEADER_ID_PREFIX)))return!0}return!1}return!0},I.prototype._getColumnKeys=function(){for(var e=[],t=this._getColumnDefs(),o=0;o<t.length;o++)e.push(t[o][I._FIELD_ID]);return e},I.prototype._getLocalRowKeys=function(){for(var e=[],t=this._getTableBodyRows(),o=0;o<t.length;o++)e.push(t[o][I._ROW_ITEM_EXPANDO].key);return e},I.prototype._hasMoreToFetch=function(){return!!this._isLoadMoreOnScroll()&&!this._noMoreData},I.prototype._clearCachedDataMetadata=function(){null!=this._data&&this._unregisterDataSourceEventListeners(),this._data=null},I.prototype._getColumnIdxForColumnKey=function(e){for(var t=this._getColumnDefs(),o=t.length,i=0;i<o;i++){var l=t[i];if(u.KeyUtils.equals(l.id,e))return i}return null},I.prototype._getColumnKeyForColumnIdx=function(e){var t=this._getColumnDefs();return e<t.length?t[e][I._FIELD_ID]:null},I.prototype._getRowIdxRowArray=function(e,t){var o=[];if(null!=e)for(var i=e[I._CONST_INDEXES].length,l=0;l<i;l++)o.push({row:{data:e[I._CONST_DATA][l],metadata:e[I._CONST_METADATA]?e[I._CONST_METADATA][l]:null,key:e[I._CONST_KEYS][l],index:e[I._CONST_INDEXES][l]},rowIdx:t+l});return o},I.prototype._getRowIdxForRowKey=function(e){var t=this._getTableBodyRows();if(t.length>0)for(var o=t.length,i=0;i<o;i++)if(u.KeyUtils.equals(t[i][I._ROW_ITEM_EXPANDO].key,e))return i;return null},I.prototype._getDataSourceRowIndexForRowKey=function(e){var t=this._getTableBodyRows();if(t.length>0)for(var o=t.length,i=0;i<o;i++)if(u.KeyUtils.equals(t[i][I._ROW_ITEM_EXPANDO].key,e)){var l=this._getData(),n=0;return this._isPagingModelDataProvider()&&(n=l.getStartItemIndex()),i+n}return null},I.prototype._getRowKeyForDataSourceRowIndex=function(e){var t=this._getTableBodyRows();if(t.length>0){var o=this._getData(),i=0;this._isPagingModelDataProvider()&&(i=o.getStartItemIndex());for(var l=t.length,n=0;n<l;n++)if(i+n===e)return t[n][I._ROW_ITEM_EXPANDO].key}return null},I.prototype._getRowKeyForRowIdx=function(e){var t=this._getTableBodyRow(e);return null!=t?t[I._ROW_ITEM_EXPANDO].key:null},I.prototype._getRowKey=function(e,t){return null==e&&(e=this._getTableBodyRow(t)),null!=e?e[I._ROW_ITEM_EXPANDO].key:null},I.prototype._isPagingModelDataProvider=function(){var e=this._getData();return null!=e.getStartItemIndex&&null!==e.getStartItemIndex()&&e.getStartItemIndex()>=0},I.prototype._animateTableBodyRow=function(e,t){return this._isAnimationDisabled(t)?Promise.resolve(!1):new Promise(function(o){this._startAnimation(e,t).then(function(){o(!0)})}.bind(this))},I.prototype._animateTableBodyRows=function(e,t){if(this._isAnimationDisabled(t))return Promise.resolve(!1);for(var o=[],i=0;i<e.length;i++){var l=e[i];o.push(function(e){return this._animateTableBodyRow(e,t)}.bind(this)(l))}return o.length>0?Promise.all(o):Promise.resolve(!1)},I.prototype._getAnimationEffect=function(e){return null==this.defaultAnimations&&(this.defaultAnimations={}),null==this.defaultAnimations[e]&&(this.defaultAnimations[e]=JSON.parse(this._getDefaultOptions()[e+"Animation"])),this.defaultAnimations[e]},I.prototype._isAnimationDisabled=function(e){var t=this._getAnimationEffect(e);return null==t||0===t.length},I.prototype._startAnimation=function(e,t,o){return null==o&&(o=this._getAnimationEffect(t)),L.startAnimation(e,t,o,this)},I.prototype._isAddNewRowEnabled=function(){return this._isStickyLayoutEnabled()&&"top"===this.options.addRowDisplay&&(null!=this._getSlotTemplate("addRowTemplate")&&this._isDefaultAddRowTemplateSlotValid()||null!=this._getSlotTemplate("addRowCellTemplate")&&this._isDefaultAddRowCellTemplateSlotValid())},I.prototype._refreshAddRowDisplay=function(){return this._refreshAddNewRowPlaceholder().then(function(e){this._getLayoutManager().notifyTableUpdate(I._UPDATE._ADD_ROW_DISPLAY),e&&(this._setActiveAddRow(),this._setTableActionableMode(!0))}.bind(this))};const w=function(e){this.component=e,this.Init()};u._registerLegacyNamespaceProp("TableDndContext",w),u.Object.createSubclass(w,u.Object,"oj.TableDndContext"),w._CSS_CLASSES={_DRAG_SOURCE:"oj-table-drag-source",_DRAG_SOURCE_OPAQUE:"oj-table-drag-source-opaque",_DROP_TARGET_EMPTY:"oj-table-drop-target-empty"},w.prototype.Init=function(){w.superclass.Init.call(this)},w.prototype._addDragMarkerClass=function(e){this.component._getTableHeaderColumn(e).classList.add(w._CSS_CLASSES._DRAG_SOURCE_OPAQUE),this.component._setTableColumnCellsClass(e,!0,w._CSS_CLASSES._DRAG_SOURCE_OPAQUE)},w.prototype._removeDragMarkerClass=function(){var e=this.component._getTableElementsByClassName(this.component._getTableHeader(),w._CSS_CLASSES._DRAG_SOURCE_OPAQUE);if(null!=e&&e.length>0)for(var t=e.length,o=0;o<t;o++)e[o].classList.remove(w._CSS_CLASSES._DRAG_SOURCE_OPAQUE);this.component._setTableColumnCellsClass(null,!1,w._CSS_CLASSES._DRAG_SOURCE_OPAQUE)},w.prototype._cloneTableContainer=function(e){var t=this.component._getTableElementsByTagName(e,I.DOM_ELEMENT._TBODY)[0],o=S(t).scrollLeft(),i=e.cloneNode(),l=this.component._getTableElementsByTagName(e,I.DOM_ELEMENT._TABLE)[0].cloneNode(),n=t.cloneNode(),s=this.component._rowsDragged[0].offsetTop;return this.component._rowsDragged.forEach(function(e){var t=e.querySelectorAll("td"),o=e.cloneNode(!0);if(this.component._isDefaultSelectorEnabled()){var i=this.component._getTableElementsByClassName(o,I.CSS_CLASSES._TABLE_DATA_ROW_SELECTOR_CLASS)[0];i.selectedKeys=this.component.options.selected.row,i.rowKey=this.component._getRowKey(e)}var l=o.querySelectorAll("td");o.style.position=I.CSS_VAL._ABSOLUTE,o.style.top=e.offsetTop-s+I.CSS_VAL._PX,o.style.width=e.offsetWidth+I.CSS_VAL._PX,o.classList.add("oj-table-body-row-drag-image"),o.classList.remove(I.MARKER_STYLE_CLASSES._SELECTED),o.classList.remove(I.MARKER_STYLE_CLASSES._FOCUS),o.classList.remove(I.MARKER_STYLE_CLASSES._FOCUS_HIGHLIGHT),l.forEach(function(e,o){e.style.width=t[o].offsetWidth+I.CSS_VAL._PX,e.classList.remove(I.MARKER_STYLE_CLASSES._SELECTED),e.classList.remove(I.MARKER_STYLE_CLASSES._HOVER)}),n.appendChild(o)}.bind(this)),l.appendChild(n),i.appendChild(l),i.classList.add("oj-table-container-drag-image"),i.style[I.CSS_PROP._HEIGHT]=window.innerHeight+I.CSS_VAL._PX,i.style[I.CSS_PROP._OVERFLOW]=I.CSS_VAL._HIDDEN,i.style[I.CSS_PROP._OVERFLOW_X]=I.CSS_VAL._HIDDEN,i.style[I.CSS_PROP._OVERFLOW_Y]=I.CSS_VAL._HIDDEN,n.style[I.CSS_PROP._OVERFLOW]=I.CSS_VAL._HIDDEN,n.style[I.CSS_PROP._OVERFLOW_X]=I.CSS_VAL._HIDDEN,n.style[I.CSS_PROP._OVERFLOW_Y]=I.CSS_VAL._HIDDEN,n.style[I.CSS_PROP._BACKGROUND_COLOR]=I.CSS_VAL._TRANSPARENT,n.style[I.CSS_PROP._BORDER_COLOR]=I.CSS_VAL._TRANSPARENT,n.style[I.CSS_PROP._WIDTH]=S(t).width()+I.CSS_VAL._PX,n.style[I.CSS_PROP._HEIGHT]=t.scrollHeight+I.CSS_VAL._PX,l.style[I.CSS_PROP._WIDTH]=S(t).width()+I.CSS_VAL._PX,document.body.appendChild(i),S(n).scrollLeft(1*o),i},w.prototype._destroyDragImage=function(){this._dragImage&&(S(this._dragImage).remove(),this._dragImage=null)},w.prototype._getEventColumnIndex=function(e){return this.component._getElementColumnIdx(e.currentTarget)},w.prototype._getOverRowIndex=function(e){var t,o=this.component._getFirstAncestor(e.target,I.DOM_ELEMENT._TR,!0),i=this.component._getFirstAncestor(e.target,"."+I.CSS_CLASSES._TABLE_DATA_CELL_CLASS+", ."+I.CSS_CLASSES._TABLE_SELECTOR_CELL,!0);if(null!=i){var l=this.component._getFirstAncestor(i,"."+I.CSS_CLASSES._TABLE_DATA_ROW_CLASS,!0);if(null!=l){t=this.component._getTableBodyRows().indexOf(l);var n=e.target.getBoundingClientRect();e.offsetY>n.height/2&&(t+=1)}}else if(S(o).hasClass(I.CSS_CLASSES._TABLE_DATA_ROW_DRAG_INDICATOR_CLASS))t=this._dropRowIndex;else{if(0===(t=this.component._getTableBodyRows().length)){this.component._getTableBody().classList.add(w._CSS_CLASSES._DROP_TARGET_EMPTY)}}return t},w.prototype.handleColumnDragStart=function(e){if(this._isColumnReorderEnabled())return this._dragStartColumnIdxs=this.component._getSelectedHeaderColumnIdxs(),this._setReorderColumnsDataTransfer(e,this._dragStartColumnIdxs),setTimeout(function(){window.getSelection().removeAllRanges()},0),this._dragStartColumnIdxs.forEach(function(e){this._addDragMarkerClass(e)}.bind(this)),!0},w.prototype.handleColumnDragEnd=function(e){this._isColumnReorderEnabled()&&(this._dragStartColumnIdxs=null,this.component._removeDragOverIndicatorColumn(),this._destroyDragImage(),this._removeDragMarkerClass())},w.prototype.handleColumnDragEnter=function(e){if(!this._isColumnReordering()){var t=this._getEventColumnIndex(e);return this._invokeDropCallback("columns","dragEnter",e,{columnIndex:t})}},w.prototype.handleColumnReorderDragOver=function(e){var t=this._getDragOverColumnIndex(e);null!=t&&null!=this._dragStartColumnIdxs&&this._dragStartColumnIdxs.length>0&&-1===this._dragStartColumnIdxs.indexOf(t)&&(this._currentDropColumnBefore=this._isDragOverBeforeColumn(e,t),this._currentDropColumnBefore&&this._dragStartColumnIdxs.indexOf(t-1)>-1||!this._currentDropColumnBefore&&this._dragStartColumnIdxs.indexOf(t+1)>-1||this.component._displayDragOverIndicatorColumn(t,this._currentDropColumnBefore),e.preventDefault())},w.prototype._getDragOverColumnIndex=function(e){let t=this.component._getTableHeaderColumns();if(e.originalEvent.clientX<t[0].getBoundingClientRect().left)return 0;for(let o=0;o<t.length;o++){let i=t[o].getBoundingClientRect();if(e.originalEvent.clientX>i.left&&e.originalEvent.clientX<=i.right)return o}return null},w.prototype.handleColumnDragOver=function(e){if(!this._isColumnReordering()){var t=this._getEventColumnIndex(e);this._currentDropColumnBefore=this._isDragOverBeforeColumn(e,t);var o=this._invokeDropCallback("columns","dragOver",e,{columnIndex:t});return(!1===o||e.isDefaultPrevented())&&this.component._displayDragOverIndicatorColumn(t,this._isDragOverBeforeColumn(e,t)),o}},w.prototype.handleColumnDragLeave=function(e){if(!this._isColumnReordering()){this.component._removeDragOverIndicatorColumn();var t=this._getEventColumnIndex(e);return this._invokeDndCallback("drop","columns","dragLeave",e,{columnIndex:t})}},w.prototype.handleColumnReorderDrop=function(e){this.component._removeDragOverIndicatorColumn();var t=this._getDragOverColumnIndex(e);null!=t&&(this._currentDropColumnBefore||(t+=1),-1===this._dragStartColumnIdxs.indexOf(t)&&(this.component._columnsDestMap=this.component._moveTableHeaderColumn(this._dragStartColumnIdxs,t,e))),e.preventDefault()},w.prototype.handleColumnDrop=function(e){if(!this._isColumnReordering()){this.component._removeDragOverIndicatorColumn();var t=this._getEventColumnIndex(e);return this._currentDropColumnBefore||(t+=1),this._invokeDropCallback("columns","drop",e,{columnIndex:t})}},w.prototype.handleRowDragStart=function(e){var t=this.component.options.dnd.drag;if(t&&t.rows){var o=this._setDragRowsDataTransfer(e,t.rows.dataTypes,this.component._getSelectedRowIdxs());return!!o&&this._invokeDndCallback("drag","rows","dragStart",e,o)}},w.prototype.handleRowDrag=function(e){return this._invokeDndCallback("drag","rows","drag",e)},w.prototype.handleRowDragEnd=function(e){return this._destroyDragImage(),this.component._rowsDragged&&this.component._rowsDragged.length>0&&this.component._rowsDragged.forEach(function(e){e.classList.remove(w._CSS_CLASSES._DRAG_SOURCE_OPAQUE),e.classList.remove("oj-table-row-drag-source-hide"),e.classList.add(I.MARKER_STYLE_CLASSES._SELECTED),this.component._updateRowStateCellsClass(null,e,{selected:!0})}.bind(this)),this.component._removeDragOverIndicatorRow(),this._invokeDndCallback("drag","rows","dragEnd",e)},w.prototype.handleRowDragEnter=function(e){var t=this._getOverRowIndex(e);return this._invokeDropCallback("rows","dragEnter",e,{rowIndex:t})},w.prototype.handleRowDragOver=function(e){var t=this._getOverRowIndex(e),o=this._invokeDropCallback("rows","dragOver",e,{rowIndex:t});return!1===o||e.isDefaultPrevented()?this._updateDragRowsState(e,t):e.currentTarget.classList.contains(w._CSS_CLASSES._DRAG_SOURCE)&&this.component._rowsDragged.forEach(function(e){e.classList.add(w._CSS_CLASSES._DRAG_SOURCE_OPAQUE)}),o},w.prototype.handleRowDragLeave=function(e){var t=this._invokeDndCallback("drop","rows","dragLeave",e,{rowIndex:this._dropRowIndex});this._isDndEventInElement(e,e.currentTarget)||(this.component._getTableBody().classList.remove(w._CSS_CLASSES._DROP_TARGET_EMPTY),this.component._removeDragOverIndicatorRow(),this._dropRowIndex=null);return t},w.prototype.handleRowDrop=function(e){var t=this._dropRowIndex;return this._destroyDragImage(),this.component._getTableBody().classList.remove(w._CSS_CLASSES._DROP_TARGET_EMPTY),this.component._removeDragOverIndicatorRow(),this._dropRowIndex=null,this._invokeDropCallback("rows","drop",e,{rowIndex:t})},w.prototype._invokeDndCallback=function(e,t,o,i,l){var n,s=this.component.options.dnd[e];if(s&&s[t]){var a=s[t][o];if(a&&"function"==typeof a)try{this.component._IsCustomElement()?(a(i.originalEvent,l),i.originalEvent.defaultPrevented&&i.preventDefault()):(i.dataTransfer=i.originalEvent.dataTransfer,n=a(i,l))}catch(e){C.error("Error: "+e)}}return n},w.prototype._invokeDropCallback=function(e,t,o,i){var l=this._invokeDndCallback("drop",e,t,o,i);return void 0===l&&this._matchDragDataType(o,e)&&o.preventDefault(),l},w.prototype._isColumnReorderEnabled=function(){var e=this.component.options.dnd;return e&&e.reorder&&e.reorder.columns===I._OPTION_ENABLED},w.prototype._isColumnReordering=function(){return null!=this._dragStartColumnIdxs},w.prototype._isDndEventInElement=function(e,t){var o=t.getBoundingClientRect(),i=e.originalEvent;return i.clientX>=Math.ceil(o.left)&&i.clientX<Math.floor(o.right)&&i.clientY>=Math.ceil(o.top)&&i.clientY<Math.floor(o.bottom)},w.prototype._isDragOverBeforeColumn=function(e,t){var o=this.component._getTableHeaderColumn(t).getBoundingClientRect();if(null!=e.originalEvent.clientX){var i=o.right-e.originalEvent.clientX<(o.right-o.left)/2;return"rtl"===E.getReadingDirection()?i:!i}return!1},w.prototype._matchDragDataType=function(e,t){var o=e.originalEvent.dataTransfer.types,i=this.component.options.dnd.drop;if(i&&i[t]&&i[t].dataTypes)for(var l=i[t].dataTypes,n="string"==typeof l?[l]:l,s=0;s<o.length;s++)if(n.indexOf(o[s])>=0)return!0;return!1},w.prototype.setElementDraggable=function(e,t){t?(e.setAttribute(I.DOM_ATTR._DRAGGABLE,!0),e.classList.add(I.MARKER_STYLE_CLASSES._DRAGGABLE)):(e.removeAttribute(I.DOM_ATTR._DRAGGABLE),e.classList.remove(I.MARKER_STYLE_CLASSES._DRAGGABLE))},w.prototype._setDragRowsData=function(e,t,o){if(t){var i=e.dataTransfer,l=JSON.stringify(o);if("string"==typeof t)i.setData(t,l);else for(var n=0;n<t.length;n++)i.setData(t[n],l)}},w.prototype._setDragRowsDataTransfer=function(e,t,o){var i=[];this.component._rowsDragged=[];for(var l=0;l<o.length;l++){var n=this.component.getDataForVisibleRow(o[l]);let e=this.component._getTableBodyRow(o[l]);n&&e&&(i.push(n),this.component._rowsDragged.push(e))}return i.length?(this._setDragRowsData(e.originalEvent,t,i),this._destroyDragImage(),this._dragImage=this._setDragRowsImage(e.originalEvent,this.component._getTableContainer()),{rows:i}):null},w.prototype._setDragRowsImage=function(e,t){var o=this._cloneTableContainer(t),i=this.component._getTableElementsByTagName(t,I.DOM_ELEMENT._TBODY)[0],l=Math.max(0,e.offsetX),n=Math.max(0,e.offsetY);return i.classList.add(w._CSS_CLASSES._DRAG_SOURCE),e.dataTransfer.setDragImage(o,l,n),o},w.prototype._setReorderColumnsDataTransfer=function(e,t){var o=e.originalEvent.dataTransfer,i=this.component._hashCode(this.component._getTableUID());o.setData("Text",I._DND_REORDER_TABLE_ID_DATA_KEY+":"+i+":"+t.join("-")),this._dragImage=this.component._createTableHeaderColumnDragImage(t);try{o.setDragImage(this._dragImage,0,0)}catch(e){}},w.prototype._updateDragRowsState=function(e,t){if(this._dropRowIndex!==t){var o=this.component._getFirstAncestor(e.target,I.DOM_ELEMENT._TR,!0);this._dropRowIndex=t;let i=e.currentTarget.classList.contains(w._CSS_CLASSES._DRAG_SOURCE)||e.currentTarget.classList.contains(w._CSS_CLASSES._DROP_TARGET_EMPTY)?"space":"line";this.component._displayDragOverIndicatorRow(this._dropRowIndex,o,i,e.currentTarget.classList.contains(w._CSS_CLASSES._DRAG_SOURCE))}};const N=function(e){this._table=e,this._tableUpdates=new Set};u.Object.createSubclass(N,u.Object,"TableLayoutManager"),N.prototype.getScroller=function(){},N.prototype.getContentElement=function(){},N.prototype.unregisterListeners=function(){this.unregisterScrollListeners()},N.prototype._getSizingState=function(){return null==this._sizingState&&(this._sizingState={outerWidth:null,outerHeight:null,hasHorizontalOverflow:!1,hasVerticalOverflow:!1}),this._sizingState},N.prototype.notifyTableUpdate=function(e){this._tableUpdates.add(e)},N.prototype._getTableUpdates=function(){return this._tableUpdates},N.prototype._clearTableUpdates=function(){this._tableUpdates.clear()},N.prototype.isTableLayoutRefreshRequired=function(){return this._tableUpdates.size>0},N.prototype.isSizingRefreshRequired=function(e,t){if(null!=e&&null!=t){var o=this._getSizingState();return e>0&&t>0&&(e!==o.outerWidth||t!==o.outerHeight)}return this.hasRenderedSize()},N.prototype.hasRenderedSize=function(){var e=this._table._getTableContainer();return e.offsetWidth>0&&e.offsetHeight>0},N.prototype._enableTableVisibility=function(){this._table._clearTableBodyHideTimeout(),this._table._clearTableFooterHideTimeout();var e=this._table._getTableBody();e&&(e.style[I.CSS_PROP._VISIBILITY]="");var t=this._table._getTableFooter();t&&(t.style[I.CSS_PROP._VISIBILITY]="")},N.prototype.refreshTableDimensions=function(){},N.prototype._restoreCachedScrollPos=function(){var e=null!=this._table._scrollTop&&this._table._scrollTop>0?this._table._scrollTop:null,t=null!=this._table._scrollLeft&&this._table._scrollLeft>0?this._table._scrollLeft:null;if(null!=e){var o=this.getScroller().scrollHeight-this.getScroller().clientHeight,i=e>o?o:e;this._table._isLoadMoreOnScroll()&&o===i&&(i-=1),this.getScroller().scrollTop=i}null!=t&&this._restoreScrollLeft(t)},N.prototype._finalizeTableDimensions=function(){this._restoreCachedScrollPos();var e=this._getSizingState(),t=window.getComputedStyle(this._table._getTableContainer());e.outerWidth=this.getExactOffsetWidth(t),e.outerHeight=this.getExactOffsetHeight(t),this._clearTableUpdates(),this._enableTableVisibility(),this.registerScrollListeners()},N.prototype.handleAfterRowsProcessed=function(){},N.prototype._handleScrollerScrollLeft=function(e){this._table._scrollLeft=e},N.prototype._handleScrollerScrollTop=function(e){if(this._table._domScroller||this._table._clearScrollPosBusyState(),this._table._isExternalScrollEnabled()&&!this._table._hasActiveRow()&&null!=this._table._browserAutoScrollInitPos){var t=this._table._browserAutoScrollInitPos;if(this._table._clearBrowserAutoScrollTimeout(),this._table._getCurrentVerticalScrollPosition(e).rowIndex>0&&e>t)return void this._table._scrollRowIntoViewport(0,!0)}e<0&&(e=0),this._table._scrollTop=e,this._table._scrollY=this._table._skipScrollUpdate?e:null,this._table._moveTableBodyRowTouchSelectionAffordanceTop(),this._table._moveTableBodyRowTouchSelectionAffordanceBottom(),this._table._updateScrollBufferHeight()},N.prototype.registerScrollListeners=function(){var e=this.getScroller();null!=e&&(null==this._scrollEventListener&&(this._scrollEventListener=function(e){var t=this._table._getElementScrollLeft(e.target),o=e.target.scrollTop;t===this._table._scrollLeft&&o===this._table._scrollTop||(this._handleScrollerScrollLeft(t),this._handleScrollerScrollTop(o),this._table._isScrollPositionAdjusted()||(this._table._skipScrollUpdate||this._ticking||(window.requestAnimationFrame(function(){this._table._isScrollPositionAdjusted()||this._table._skipScrollUpdate||this._table.option("scrollPosition",this._table._getCurrentScrollPosition(),{_context:{originalEvent:e,internalSet:!0}}),this._ticking=!1}.bind(this)),this._ticking=!0),this._table._skipScrollUpdate=!1))}.bind(this)),e.removeEventListener("scroll",this._scrollEventListener),e.addEventListener("scroll",this._scrollEventListener,!1))},N.prototype.updateCurrentScrollState=function(){var e=this.getScroller(),t=this._table._getElementScrollLeft(e),o=e.scrollTop;t===this._table._scrollLeft&&o===this._table._scrollTop||(this._handleScrollerScrollLeft(t),this._handleScrollerScrollTop(o),this._table.option("scrollPosition",this._table._getCurrentScrollPosition(),{_context:{internalSet:!0}}))},N.prototype.unregisterScrollListeners=function(){var e=this.getScroller();null!=e&&null!=this._scrollEventListener&&e.removeEventListener("scroll",this._scrollEventListener)},N.prototype._restoreScrollLeft=function(e){E.setScrollLeft(this.getScroller(),e)},N.prototype.getColumnWidthProperty=function(e){var t=window.getComputedStyle(e),o=this._getBoxStyle(t);return b.isIE()?parseFloat(t.width)+o.paddingWidth:parseFloat(t.width)+(o.boxSizing===I.CSS_VAL._BORDER_BOX?-o.borderWidth:o.paddingWidth)},N.prototype.getWidthPropertyFromOffsetWidth=function(e,t){var o=window.getComputedStyle(t);return e-this._getBoxStyle(o).borderWidth},N.prototype.isTableWidthConstrained=function(){return this._getSizingState().hasHorizontalOverflow},N.prototype.isTableHeightConstrained=function(){return this._getSizingState().hasVerticalOverflow},N.prototype.getScrollBarHeight=function(){return this.isTableWidthConstrained()?this._getDefaultScrollBarSize():0},N.prototype.getScrollBarWidth=function(){return this.isTableHeightConstrained()&&!this._isVerticalScrollBarHidden()?this._getDefaultScrollBarSize():0},N.prototype._getBoxStyle=function(e,t){return t?{boxSizing:e[I.CSS_PROP._BOX_SIZING],borderWidth:(parseFloat(e[I.CSS_PROP._BORDER_TOP_WIDTH])||0)+(parseFloat(e[I.CSS_PROP._BORDER_BOTTOM_WIDTH])||0),paddingWidth:(parseFloat(e[I.CSS_PROP._PADDING_TOP])||0)+(parseFloat(e[I.CSS_PROP._PADDING_BOTTOM])||0)}:{boxSizing:e[I.CSS_PROP._BOX_SIZING],borderWidth:(parseFloat(e[I.CSS_PROP._BORDER_RIGHT_WIDTH])||0)+(parseFloat(e[I.CSS_PROP._BORDER_LEFT_WIDTH])||0),paddingWidth:(parseFloat(e[I.CSS_PROP._PADDING_RIGHT])||0)+(parseFloat(e[I.CSS_PROP._PADDING_LEFT])||0)}},N.prototype._applyColumnHeaderHeight=function(e,t){var o=this._table._getTableElementsByClassName(e,I.CSS_CLASSES._COLUMN_HEADER_CLASS);o.length>0&&(o[0].style[I.CSS_PROP._MIN_HEIGHT]=t+I.CSS_VAL._PX)},N.prototype._applyForcedColumnWidth=function(e,t){var o=e;""!==t&&(t+=I.CSS_VAL._PX),o.style[I.CSS_PROP._MIN_WIDTH]=t,o.style[I.CSS_PROP._WIDTH]=t,o.style[I.CSS_PROP._MAX_WIDTH]=t},N.prototype._getForcedColumnWidth=function(e,t,o){var i=this._getBoxStyle(t);return null!=o?o+(i.boxSizing===I.CSS_VAL._BORDER_BOX?i.borderWidth:-i.paddingWidth):b.isIE()&&i.boxSizing===I.CSS_VAL._BORDER_BOX?parseFloat(t.width)+i.paddingWidth+i.borderWidth:parseFloat(t.width)},N.prototype.getMinimumForcedOffsetWidth=function(e){var t=0,o=this._table._getTableHeaderColumn(e);if(null!=o){var i=this._getBoxStyle(window.getComputedStyle(o)),l=i.paddingWidth+i.borderWidth;t<l&&(t=l)}var n=this._table._getTableBodyCell(0,e,null);if(null!=n){var s,a=0;if(this._table._hasRowOrCellRendererOrTemplate(e)){for(var r=this._table._getTableBodyRows(),_=0;_<r.length;_++)if(null!=(n=this._table._getTableBodyCell(_,e,null))){var h=(s=this._getBoxStyle(window.getComputedStyle(n))).paddingWidth+s.borderWidth;a<h&&(a=h)}}else a=(s=this._getBoxStyle(window.getComputedStyle(n))).paddingWidth+s.borderWidth;t<a&&(t=a)}var d=this._table._getTableFooterCell(e);if(null!=d){var u=this._getBoxStyle(window.getComputedStyle(d)),c=u.paddingWidth+u.borderWidth;t<c&&(t=c)}return t},N.prototype._isVerticalScrollBarHidden=function(){return!this._table._isTouchDevice()&&this._table._getTableContainer().classList.contains(I.MARKER_STYLE_CLASSES._HIDE_VERTICAL_SCROLLBAR)},N.prototype._getDefaultScrollBarSize=function(){return null==this._defaultScrollBarSize&&(this._defaultScrollBarSize=b.getDefaultScrollBarWidth(this.getScroller())),this._defaultScrollBarSize},N.prototype.clearCachedDimensions=function(){this._clientWidth=null,this._clientHeight=null,this._scrollWidth=null,this._scrollHeight=null},N.prototype._clearColumnSizingCache=function(){this._table._columnOffsets=null},N.prototype.getColumnScrollLeft=function(){},N.prototype.getRowScrollTop=function(){},N.prototype.getScrollWidth=function(){return null==this._scrollWidth&&(this._scrollWidth=this.getScroller().scrollWidth),this._scrollWidth},N.prototype.getScrollHeight=function(){return null==this._scrollHeight&&(this._scrollHeight=this.getScroller().scrollHeight),this._scrollHeight},N.prototype.getClientWidth=function(){return null==this._clientWidth&&(this._clientWidth=this.getScroller().clientWidth),this._clientWidth},N.prototype.getClientHeight=function(){return null==this._clientHeight&&(this._clientHeight=this.getScroller().clientHeight),this._clientHeight},N.prototype._removeTableDimensionsStyling=function(){this.unregisterScrollListeners();var e=this._table._getTable(),t=this._table._getTableHeader(),o=this._table._getTableHeaderRow(),i=this._table._getTableHeaderColumns(),l=this._table._getTableFooter(),n=this._table._getTableFooterRow(),s=this._table._getTableBody(),a=this._table._getTableBottomSlot(),r=this._table._getTableContainer();if(r.classList.remove(I.CSS_CLASSES._TABLE_SCROLL_VERTICAL_CLASS),r.classList.remove(I.CSS_CLASSES._TABLE_SCROLL_HORIZONTAL_CLASS),e.removeAttribute(I.DOM_ATTR._STYLE),null!=s&&s.removeAttribute(I.DOM_ATTR._STYLE),null!=t){t.removeAttribute(I.DOM_ATTR._STYLE),o.removeAttribute(I.DOM_ATTR._STYLE);for(var _=this._table._getTableElementsByClassName(o,I.CSS_CLASSES._COLUMN_HEADER_TEXT_CLASS),h=_.length,d=0;d<h;d++)_[d].style[I.CSS_PROP._WIDTH]="";if(null!=i)for(let e=0;e<i.length;e++)i[e].classList.remove(I.CSS_CLASSES._TABLE_HEADER_WRAP_TEXT_CLASS)}null!=l&&(l.removeAttribute(I.DOM_ATTR._STYLE),n.removeAttribute(I.DOM_ATTR._STYLE)),null!=a&&a.removeAttribute(I.DOM_ATTR._STYLE),this._removeHeaderColumnAndCellColumnWidths()},N.prototype._getBottomSlotHeight=function(){var e=this._table._getTableBottomSlot();if(null!=e&&e.clientHeight>0&&e.style[I.CSS_PROP._DISPLAY]!==I.CSS_VAL._NONE){var t=window.getComputedStyle(e);return this.getExactOffsetHeight(t)}return 0},N.prototype._getTableContainerScrollableState=function(e){var t=window.getComputedStyle(this._table._getTableContainer()),o=this.getExactClientHeight(t),i=this.getExactClientWidth(t),l=window.getComputedStyle(this._table._getTable()),n=this.getExactOffsetHeight(l),s=this.getExactOffsetWidth(l),a=[];if(o>0){var r=n+e;a[0]=r-o>I.SIZING_ERROR_MARGIN?1:o-r>I.SIZING_ERROR_MARGIN?-1:0}else a[0]=0;return a[1]=i>0?s-i>I.SIZING_ERROR_MARGIN?1:i-s>I.SIZING_ERROR_MARGIN?-1:0:0,a},N.prototype._setForcedColumnWidths=function(){var e,t,o,i=this._table._getColumnDefs(),l=i.length,n=this._table._getTableBodyRows();this._forcedWidthColumns=[];for(var s=0;s<l;s++){var a=this._getPixelStyleEquivalent(i[s].width);if(null!=a){var r=null,_=null;if(null!=(e=this._table._getTableHeaderColumn(s))){var h=this._getForcedColumnWidth(e,window.getComputedStyle(e),a);this._applyForcedColumnWidth(e,h),this._forcedWidthColumns[s]=h}else this._forcedWidthColumns[s]=!0;var d=this._table._getTableBodyLegacyWidthBuffer();if(null!=d){var u=d.childNodes[s],c=this._getForcedColumnWidth(u,window.getComputedStyle(u),a);this._applyForcedColumnWidth(u,c)}if(null!=(t=0===this._table._editableRowIdx&&n.length>1?this._table._getTableBodyCell(1,s,null):this._table._getTableBodyCell(0,s,null))){this._table._hasRowOrCellRendererOrTemplate(s)||(r=window.getComputedStyle(t),_=this._getForcedColumnWidth(t,r,a));for(var S=0;S<n.length;S++)if(null!=(t=this._table._getTableBodyCell(S,s,null)))if(null==r){var E=window.getComputedStyle(t),C=this._getForcedColumnWidth(t,E,a);this._applyForcedColumnWidth(t,C)}else this._applyForcedColumnWidth(t,_)}null!=(o=this._table._getTableFooterCell(s))&&this._applyForcedColumnWidth(o,this._getForcedColumnWidth(o,window.getComputedStyle(o),a))}else this._forcedWidthColumns[s]=!1}},N.prototype._verifyMinAndMaxWidths=function(){for(var e=this._table._getColumnDefs(),t=e.length,o=this._table._getTableBodyRows().length,i=!0;i;){i=!1;for(var l=0;l<t;l++)if(!1===this._forcedWidthColumns[l]){if(this._applyColMinMax(e,l,o,!0)){i=!0;break}if(this._applyColMinMax(e,l,o,!1)){i=!0;break}}}},N.prototype._applyColMinMax=function(e,t,o,i){var l,n,s,a=0,r=!1,_=null,h=null,d=i?this._getPixelStyleEquivalent(e[t].minWidth):this._getPixelStyleEquivalent(e[t].maxWidth);if(null!=d&&(l=this._table._getTableHeaderColumn(t),0===this._table._editableRowIdx&&o>1?n=this._table._getTableBodyCell(1,t,null):o>0&&(n=this._table._getTableBodyCell(0,t,null)),s=this._table._getTableFooterCell(t),null!=l?a=l.offsetWidth:null!=n?a=n.offsetWidth:null!=s&&(a=s.offsetWidth),a>0&&(i?a<d:a>d))){if(r=!0,this._forcedWidthColumns[t]=d,null!=l){var u=this._getForcedColumnWidth(l,window.getComputedStyle(l),d);this._applyForcedColumnWidth(l,u)}var c=this._table._getTableBodyLegacyWidthBuffer();if(null!=c){var S=c.childNodes[t],E=this._getForcedColumnWidth(S,window.getComputedStyle(S),d);this._applyForcedColumnWidth(S,E)}if(null!=n){this._table._hasRowOrCellRendererOrTemplate(t)||(_=window.getComputedStyle(n),h=this._getForcedColumnWidth(n,_,d));for(var C=0;C<o;C++)if(null!=(n=this._table._getTableBodyCell(C,t,null)))if(null==_){var T=window.getComputedStyle(n),p=this._getForcedColumnWidth(n,T,d);this._applyForcedColumnWidth(n,p)}else this._applyForcedColumnWidth(n,h)}null!=s&&this._applyForcedColumnWidth(s,this._getForcedColumnWidth(s,window.getComputedStyle(s),d))}return r},N.prototype._getPixelStyleEquivalent=function(e){return"string"==typeof e?""===e?null:"auto"===e?this._getMinWidthAutoEquivalent():null!=e.match(/\D/g)&&-1===e.indexOf("px")?(this._table._tableWidthContainer.style.width=e,this._table._tableWidthContainer.offsetWidth):parseFloat(e):e},N.prototype._getMinWidthAutoEquivalent=function(){return null},N.prototype.handleMouseEnterHeaderCell=function(e){},N.prototype.handleMouseDownHeaderCell=function(e){var t=this._table._getElementColumnIdx(this._table._getEventTargetElement(e)),o=!1;1===e.which?(this._handleHeaderColumnResizeStart(e,!0)||e[I._KEYBOARD_CODES._MODIFIER_SHIFT]||(o=!0),b.isFirefox()&&E.isMetaKeyPressed(e)&&e.preventDefault()):o=!0,o&&(this._table._setActiveHeader(t,e,!0),S(e.target).data(I._FOCUS_CALLED,!0))},N.prototype.handleMouseMoveHeader=function(e){},N.prototype.handleMouseMoveHeaderCell=function(e){},N.prototype.handleMouseUp=function(e){},N.prototype.handleMouseLeaveTable=function(){},N.prototype.handleTouchStartHeaderCell=function(e){1===e.originalEvent.touches.length&&this._table._isTableColumnsResizable()&&this._handleHeaderColumnResizeStart(e)&&e.preventDefault()},N.prototype.handleTouchMoveHeader=function(e){},N.prototype.handleTouchEnd=function(e){},N.prototype.handleTouchCancel=function(){},N.prototype.handleKeyDownEsc=function(){},N.prototype.handleFocusout=function(){},N.prototype.handleRowRefresh=function(e,t,o){this._table._hasEditableRow()&&this._table._getEditableRowIdx()===e?t.classList.add(I.CSS_CLASSES._TABLE_DATA_ROW_EDIT_CLASS):t.classList.remove(I.CSS_CLASSES._TABLE_DATA_ROW_EDIT_CLASS)},N.prototype._handleHeaderColumnResizeStart=function(e,t){},N.prototype.displayDragOverIndicatorColumn=function(e,t){},N.prototype.removeDragOverIndicatorColumn=function(){},N.prototype._getPageX=function(e){return void 0!==e.pageX?e.pageX:void 0!==e.changedTouches?e.changedTouches[0].pageX:0},N.prototype.getExactClientHeight=function(e){var t=this._getBoxStyle(e,!0),o=parseFloat(e[I.CSS_PROP._HEIGHT])-t.borderWidth-t.paddingWidth;return Math.round(1e3*(o+Number.EPSILON))/1e3},N.prototype.getExactClientWidth=function(e){var t=this._getBoxStyle(e),o=parseFloat(e[I.CSS_PROP._WIDTH])-t.borderWidth-t.paddingWidth;return Math.round(1e3*(o+Number.EPSILON))/1e3},N.prototype.getExactOffsetHeight=function(e){var t=parseFloat(e[I.CSS_PROP._HEIGHT]);return Math.round(1e3*(t+Number.EPSILON))/1e3},N.prototype.getExactOffsetWidth=function(e){var t=parseFloat(e[I.CSS_PROP._WIDTH]);return Math.round(1e3*(t+Number.EPSILON))/1e3};const B=function(e){B.superclass.constructor.call(this,e)};u.Object.createSubclass(B,N,"TableLegacyLayoutManager"),B.prototype.handleAfterRowsProcessed=function(e){this._freezeColumnWidths(e)},B.prototype._handleScrollerScrollLeft=function(e){B.superclass._handleScrollerScrollLeft.call(this,e);var t=this._table._getTableHeaderRow();t&&E.setScrollLeft(t.parentNode,e);var o=this._table._getTableFooterRow();o&&E.setScrollLeft(o.parentNode,e)},B.prototype.registerScrollListeners=function(){B.superclass.registerScrollListeners.call(this);var e=function(e){var t=this._table._getElementScrollLeft(e.target);this._table._scrollLeft!==t&&this._table._setScrollX(t)}.bind(this),t=this._table._getTableHeaderRow();if(null!=t){var o=t.parentNode;null==this._headerScrollEventListener&&(this._headerScrollEventListener=e),o.removeEventListener("scroll",this._headerScrollEventListener),o.addEventListener("scroll",this._headerScrollEventListener,!1)}var i=this._table._getTableFooterRow();if(null!=i){var l=i.parentNode;null==this._footerScrollEventListener&&(this._footerScrollEventListener=e),l.removeEventListener("scroll",this._footerScrollEventListener),l.addEventListener("scroll",this._footerScrollEventListener,!1)}},B.prototype.unregisterScrollListeners=function(){B.superclass.unregisterScrollListeners.call(this);var e=this._table._getTableHeaderRow();null!=e&&null!=this._headerScrollEventListener&&e.parentNode.removeEventListener("scroll",this._headerScrollEventListener);var t=this._table._getTableFooterRow();null!=t&&null!=this._footerScrollEventListener&&t.parentNode.removeEventListener("scroll",this._footerScrollEventListener)},B.prototype._restoreScrollLeft=function(e){E.setScrollLeft(this.getScroller(),e);var t=this._table._getTableHeaderRow();t&&E.setScrollLeft(t.parentNode,e);var o=this._table._getTableFooterRow();o&&E.setScrollLeft(o.parentNode,e)},B.prototype.getScroller=function(){return this._table._getTableBody()},B.prototype.getContentElement=function(){return null},B.prototype.getColumnScrollLeft=function(e){if(0===e)return 0;var t=this.getScroller(),o="rtl"===this._table._GetReadingDirection(),i=this._table._getTableHeaderColumn(e);return null!=i?o?t.clientWidth-i.offsetLeft-i.offsetWidth:i.offsetLeft:void 0},B.prototype.getRowScrollTop=function(e){return e.offsetTop},B.prototype.getVerticalOverflowDiff=function(e){var t=this.getScroller(),o=e.getBoundingClientRect(),i=t.getBoundingClientRect();return{top:i.top-o.top+t.clientTop,bottom:o.bottom-i.bottom+(t.offsetHeight-t.clientHeight-t.clientTop)}},B.prototype.getHorizontalOverflowDiff=function(e){var t="rtl"===this._table._GetReadingDirection(),o=this.getScroller(),i=this.getScrollBarWidth(),l=e.getBoundingClientRect(),n=o.getBoundingClientRect(),s={};return t?(s.left=n.left-l.left+i,s.right=l.right-n.right):(s.left=n.left-l.left,s.right=l.right-n.right+i),s},B.prototype._freezeColumnWidths=function(e){var t=this._table._getColumnDefs().length;this._frozenWidthRows||(this._frozenWidthRows=[]);for(var o=[],i=this._table._getTableBodyLegacyWidthBuffer(),l=0;l<t;l++){var n=i.childNodes[l];if(null!=n){var s=parseFloat(n.style[I.CSS_PROP._MIN_WIDTH]);isNaN(s)?o.push(null):o.push(s)}else o.push(null)}for(var a=e.childNodes,r=0;r<a.length;r++)if("TR"===a[r].nodeName){for(var _=a[r],h=this._table._getTableBodyCells(null,_),d=0;d<h.length;d++){var u=o[d];isNaN(u)||this._applyForcedColumnWidth(h[d],u)}this._frozenWidthRows.push(_)}},B.prototype._unfreezeColumnWidths=function(){if(this._frozenWidthRows)for(var e=0;e<this._frozenWidthRows.length;e++)for(var t=this._table._getTableBodyCells(null,this._frozenWidthRows[e]),o=0;o<t.length;o++){var i=t[o];this._applyForcedColumnWidth(i,""),this._table._styleTableBodyCell(o,i)}this._frozenWidthRows=[]},B.prototype._setColumnWidths=function(e){var t,o,i,l,n=[],s=[],a=[],r=[],_=this._table._getColumnDefs().length,h=this._table._getTableBodyLegacyWidthBuffer();for(t=0;t<_;t++)if(!1!==this._forcedWidthColumns[t])n[t]=null,a[t]=null,r[t]=null;else{if(null!=(o=this._table._getTableHeaderColumn(t))){n[t]=this._getForcedColumnWidth(o,window.getComputedStyle(o));var d=this._table._getTableElementsByClassName(o,I.CSS_CLASSES._COLUMN_HEADER_TEXT_CLASS);d.length>0&&(s[t]=d[0].clientHeight)}null!=(i=h.childNodes[t])&&(a[t]=this._getForcedColumnWidth(i,window.getComputedStyle(i))),null!=(l=this._table._getTableFooterCell(t))&&(r[t]=this._getForcedColumnWidth(l,window.getComputedStyle(l)))}for(t=0;t<_;t++)o=this._table._getTableHeaderColumn(t),l=this._table._getTableFooterCell(t),!1!==this._forcedWidthColumns[t]?t===_-1&&!this.isTableWidthConstrained()&&e>0?(null!=o&&(this._applyForcedColumnWidth(o,this._forcedWidthColumns[t]+e),this._applyColumnHeaderHeight(o,s[t])),null!=l&&this._applyForcedColumnWidth(l,this._forcedWidthColumns[t]+e)):this._applyColumnHeaderHeight(o,s[t]):(t===_-1&&!this.isTableWidthConstrained()&&e>0?(null!=o&&(this._applyForcedColumnWidth(o,n[t]+e),this._applyColumnHeaderHeight(o,s[t])),null!=l&&this._applyForcedColumnWidth(l,r[t]+e)):(null!=o&&(this._applyForcedColumnWidth(o,n[t]),this._applyColumnHeaderHeight(o,s[t])),null!=l&&this._applyForcedColumnWidth(l,r[t])),null!=(i=h.childNodes[t])&&this._applyForcedColumnWidth(i,a[t]))},B.prototype._isTableColumnsWidthSet=function(){for(var e=this._table._getColumnDefs().length,t=0;t<e;t++)if(!1!==this._forcedWidthColumns[t])return!0;return!1},B.prototype._isAllTableColumnsWidthSet=function(){for(var e=this._table._getColumnDefs().length,t=0;t<e;t++)if(!1===this._forcedWidthColumns[t])return!1;return!0},B.prototype.refreshTableDimensions=function(){var e=this._getSizingState(),t=this._getTableUpdates();if(!t.has(I._UPDATE._DATA_REFRESH)&&!t.has(I._UPDATE._DATA_SORT)&&!t.has(I._UPDATE._ATTACHED)&&!t.has(I._UPDATE._SHOWN)&&!t.has(I._UPDATE._RESIZE)&&!t.has(I._UPDATE._REFRESH)&&!t.has(I._UPDATE._COL_RESIZE)&&!t.has(I._UPDATE._COL_REORDER)&&!t.has(I._UPDATE._ROW_REFRESH)&&(!t.has(I._UPDATE._ROWS_ADDED)||e.hasVerticalOverflow)&&(!t.has(I._UPDATE._ROWS_REMOVED)||!e.hasVerticalOverflow))return this._clearTableUpdates(),void this._enableTableVisibility();this._clearColumnSizingCache();var o=this._table._getTable(),i=this._table._getTableContainer(),l=this._table._getTableHeader(),n=this._table._getTableBody(),s=this._table._getTableFooter(),a=this._table._getTableBottomSlot();this.clearCachedDimensions(),this._removeTableDimensionsStyling(),this._table._styleTableContainer(i),this._setForcedColumnWidths(),this._verifyMinAndMaxWidths();var r=this._getBottomSlotHeight(),_=this._getTableContainerScrollableState(r);if(e.hasVerticalOverflow=1===_[0],e.hasHorizontalOverflow=1===_[1],null!=n){var h=n.offsetHeight-n.clientHeight;if(e.hasVerticalOverflow||e.hasHorizontalOverflow){var d=i.clientWidth,u=i.clientHeight,c=this._getDefaultScrollBarSize();if(c>0)if(e.hasHorizontalOverflow||this._isVerticalScrollBarHidden()){if(!e.hasVerticalOverflow){var S=this._table._getTableLegacySizer();S.style[I.CSS_PROP._HEIGHT]=c+I.CSS_VAL._PX,i.clientHeight<u+c?(u=i.clientHeight,o.style[I.CSS_PROP._HEIGHT]=u-c-r+I.CSS_VAL._PX,u-c<o.clientHeight+r&&(e.hasVerticalOverflow=!0)):u=i.clientHeight,S.style[I.CSS_PROP._HEIGHT]=""}}else o.style[I.CSS_PROP._WIDTH]=d+c+I.CSS_VAL._PX,i.clientWidth<d+c?(d=i.clientWidth,o.style[I.CSS_PROP._WIDTH]=d-c+I.CSS_VAL._PX,d-c<o.clientWidth&&(e.hasHorizontalOverflow=!0)):(d=i.clientWidth,o.style[I.CSS_PROP._WIDTH]="");e.hasVerticalOverflow&&this._isVerticalScrollBarHidden()&&(n.style[I.CSS_PROP._OVERFLOW_Y]="hidden");var E=this.getScrollBarWidth();this._setColumnWidths(E),e.hasVerticalOverflow&&i.classList.add(I.CSS_CLASSES._TABLE_SCROLL_VERTICAL_CLASS),e.hasHorizontalOverflow&&i.classList.add(I.CSS_CLASSES._TABLE_SCROLL_HORIZONTAL_CLASS),i.classList.add(I.CSS_CLASSES._TABLE_LEGACY_SCROLL_CLASS);var C=0,T=this._table._getTableElementsByTagName(o,"caption");if(T.length>0&&(C=(T=T[0]).offsetHeight,T.style[I.CSS_PROP._DISPLAY]=I.CSS_VAL._INLINE,null!=l)){var p=window.getComputedStyle(i);l.style[I.CSS_PROP._BORDER_TOP]=p[I.CSS_PROP._BORDER_TOP]}n.style[I.CSS_PROP._WIDTH]=d+I.CSS_VAL._PX;var g=0;null!=s&&(g=s.offsetHeight,n.style[I.CSS_PROP._TOP]=-1*g+I.CSS_VAL._PX);var A,f=u-(null!=l?l.offsetHeight:0)-g-C-r-h;if(f>0&&(n.style[I.CSS_PROP._HEIGHT]=f+I.CSS_VAL._PX,n.style[I.CSS_PROP._MIN_HEIGHT]=f+I.CSS_VAL._PX),e.hasHorizontalOverflow){if(0===this._table._getTableBodyRows().length){var b=this._table._getTableBodyMessageCell();if(b){var L=b.offsetWidth;null!=l&&(L=Math.max(L,l.offsetWidth)),null!=s&&(L=Math.max(L,s.offsetWidth)),this._applyForcedColumnWidth(b,L)}}A=d-E+I.CSS_VAL._PX}else A=d+I.CSS_VAL._PX;null!=l&&(l.style[I.CSS_PROP._WIDTH]=A),null!=s&&(s.style[I.CSS_PROP._TOP]=f+I.CSS_VAL._PX,s.style[I.CSS_PROP._WIDTH]=A)}else this._isTableColumnsWidthSet()&&this._setColumnWidths(0),r>0&&-1===_[0]&&(a.style[I.CSS_PROP._BOTTOM]=0,a.style[I.CSS_PROP._POSITION]=I.CSS_VAL._ABSOLUTE);this._table._isStatusMessageShown()&&this._table._refreshTableStatusPosition(),this._table._refreshTouchAffordanceGlassPanePosition(),this._finalizeTableDimensions()}},B.prototype._removeTableDimensionsStyling=function(){B.superclass._removeTableDimensionsStyling.call(this),this._table._getTableContainer().classList.remove(I.CSS_CLASSES._TABLE_LEGACY_SCROLL_CLASS)},B.prototype._removeHeaderColumnAndCellColumnWidths=function(){var e,t=this._table._getColumnDefs().length;for(e=0;e<t;e++){var o=this._table._getTableHeaderColumn(e);null!=o&&(this._applyForcedColumnWidth(o,""),this._table._styleTableHeaderColumn(e,o))}this._unfreezeColumnWidths();var i=this._table._getTableBodyRows();if(i.length>0)for(e=0;e<t;e++){var l;if(null!=this._forcedWidthColumns&&!1!==this._forcedWidthColumns[e])for(var n=0;n<i.length;n++)null!==(l=this._table._getTableBodyCell(n,e,null))&&(this._applyForcedColumnWidth(l,""),this._table._styleTableBodyCell(e,l));else null!=(l=this._table._getTableBodyLegacyWidthBuffer().childNodes[e])&&this._applyForcedColumnWidth(l,"")}for(e=0;e<t;e++){var s=this._table._getTableFooterCell(e);null!=s&&(this._applyForcedColumnWidth(s,""),this._table._styleTableFooterCell(e,s))}var a=this._table._getTableBodyMessageCell();a&&this._applyForcedColumnWidth(a,"")},B.prototype.handleMouseEnterHeaderCell=function(e){this._setResizeCursor(e)},B.prototype.handleMouseMoveHeader=function(e){this._setResizeCursor(e)},B.prototype.handleMouseMoveHeaderCell=function(e){this._setResizeCursor(e)&&this._table._handleMouseLeaveColumnHeader(this._table._getEventTargetElement(e))},B.prototype.handleMouseUp=function(e){this._handleHeaderColumnResizeEnd(e)},B.prototype.handleMouseLeaveTable=function(){this._clearTableHeaderColumnsResize()},B.prototype.handleTouchMoveHeader=function(e){this._table._isTableColumnsResizable()&&this._setResizeCursor(e)},B.prototype.handleTouchEnd=function(e){this._handleHeaderColumnResizeEnd(e)&&e.preventDefault()},B.prototype.handleTouchCancel=function(){this._clearTableHeaderColumnsResize()},B.prototype.handleKeyDownEsc=function(){this._clearTableHeaderColumnsResize()},B.prototype.handleFocusout=function(){this._clearTableHeaderColumnsResize()},B.prototype._setResizeCursor=function(e){var t=this._table._getEventTargetElement(e),o=this._table._getElementColumnIdx(t);if(null==o)return!1;if(this._table._getColumnDefs()[o].resizable===I._OPTION_DISABLED&&this._resizeStartColumnIdx!==o-1&&this._resizeStartColumnIdx!==o+1)return!1;if(null==this._resizeStartColumnIdx)return null!==this._isHeaderColumnResizeStart(e)?(t.style.cursor=I.CSS_VAL._COL_RESIZE,!0):(t.style.cursor="",!1);if(!this._table._getTableHeaderColumns())return!1;if(o===this._resizeStartColumnIdx||this._resizeColumnStart&&o===this._resizeStartColumnIdx-1||!this._resizeColumnStart&&o===this._resizeStartColumnIdx+1){var i=this._getTableHeaderColumnResizeIndicator();if(null!=i){var l=this.getScroller().getBoundingClientRect();return i.style.left=e.originalEvent.clientX-l.left+"px",!0}}return!1},B.prototype._handleHeaderColumnResizeStart=function(e,t){var o=this._table._getEventTargetElement(e),i=this._table._getElementColumnIdx(o);if(null!=i){var l=this._table._getColumnDefs()[i];if(this._resizeColumnStart=this._isHeaderColumnResizeStart(e),l.resizable===I._OPTION_ENABLED&&null!==this._resizeColumnStart)return this._resizeStartColumnIdx=i,this._resizeStartPageX=this._getPageX(e),this._setTableHeaderColumnsResizeStyling(),this._setTableHeaderColumnResizeIndicator(i),e.preventDefault(),!0}return this._resizeStartColumnIdx=null,this._resizeStartPageX=null,!1},B.prototype._handleHeaderColumnResizeEnd=function(e){var t=this._table.options.columns.length,o=this._table._getEventTargetElement(e),i=this._table._getElementColumnIdx(o);if(null!==i&&i===this._resizeStartColumnIdx||this._resizeColumnStart&&i===this._resizeStartColumnIdx-1||!this._resizeColumnStart&&i===this._resizeStartColumnIdx+1){var l=this._table._getTableHeaderColumn(this._resizeStartColumnIdx);if(null!=l){var n,s=l.getBoundingClientRect().width;if(this._resizeStartColumnIdx===t-1&&this.isTableHeightConstrained()&&(s-=this.getScrollBarWidth()),n="rtl"===this._table._GetReadingDirection()&&this._resizeColumnStart||"ltr"===this._table._GetReadingDirection()&&!this._resizeColumnStart?this._getPageX(e)-this._resizeStartPageX:this._resizeStartPageX-this._getPageX(e),Math.abs(n)>2){var a=s+n,r=this.getMinimumForcedOffsetWidth(this._resizeStartColumnIdx);r>a&&(n+=r-a,a=r);for(var _=[],h=0;h<t;h++)_[h]=S.extend({},{},this._table.options.columns[h]);var d=this._resizeColumnStart?this._resizeStartColumnIdx-1:this._resizeStartColumnIdx+1;d===t-1&&this.isTableHeightConstrained()&&(n+=this.getScrollBarWidth());var u=this._table._getTableHeaderColumn(d);if(u){var c=u.getBoundingClientRect().width-n;(r=this.getMinimumForcedOffsetWidth(d))>c&&(a+=c-r,c=r),_[d].width=this.getWidthPropertyFromOffsetWidth(c,u)}return _[this._resizeStartColumnIdx].width=this.getWidthPropertyFromOffsetWidth(a,l),this._table.option("columns",_,{_context:{writeback:!0,internalSet:!0}}),this._table._clearCachedMetadata(),this._table._queueTask(function(){this.notifyTableUpdate(I._UPDATE._COL_RESIZE),setTimeout(function(){this._clearTableHeaderColumnsResize()}.bind(this),0)}.bind(this)),!0}}}return this._clearTableHeaderColumnsResize(),!1},B.prototype._clearTableHeaderColumnsResize=function(){this._resizeStartColumnIdx=null,this._resizeColumnStart=null,this._resizeStartPageX=null,this._clearTableHeaderColumnsResizeStyling(),this._removeTableHeaderColumnResizeIndicator()},B.prototype._isHeaderColumnResizeStart=function(e){var t=null,o=this._table.options.columns.length,i=this._table._getElementColumnIdx(e.target),l=this._table._getTableHeaderColumn(i);if(null!==l){var n=this._table._GetReadingDirection(),s=l.getBoundingClientRect(),a=Math.abs(e.originalEvent.clientX-s.left),r=Math.abs(e.originalEvent.clientX-s.right);a<=I.RESIZE_OFFSET?"rtl"===n&&i!==o-1?t=!1:"ltr"===n&&0!==i&&(t=!0):r<=I.RESIZE_OFFSET&&("ltr"===n&&i!==o-1?t=!1:"rtl"===n&&0!==i&&(t=!0))}return t},B.prototype._setTableHeaderColumnResizeIndicator=function(e){var t=this._getTableHeaderColumnResizeIndicator();null==t&&(t=this._createTableHeaderColumnResizeIndicator());var o=this._table._getTable().getBoundingClientRect(),i=this.getScroller().getBoundingClientRect(),l=this._table._getTableHeaderColumn(e).getBoundingClientRect();t.style.height=o.height+"px",this._resizeColumnStart?("rtl"===this._table._GetReadingDirection()?t.style.left=l.left+l.width-i.left+"px":t.style.left=l.left-i.left+"px",t.style.borderLeftWidth="2px",t.style.borderRightWidth="0"):("rtl"===this._table._GetReadingDirection()?t.style.left=l.left-i.left+"px":t.style.left=l.left+l.width-i.left+"px",t.style.borderRightWidth="2px",t.style.borderLeftWidth="0")},B.prototype._setTableHeaderColumnsResizeStyling=function(){this._table._getTable().classList.add(I.CSS_CLASSES._COLUMN_HEADER_RESIZING_CLASS)},B.prototype._clearTableHeaderColumnsResizeStyling=function(){var e=this._table._getTableHeaderColumns();if(e)for(var t=0;t<e.length;t++)e[t].style.cursor="";this._table._getTable().classList.remove(I.CSS_CLASSES._COLUMN_HEADER_RESIZING_CLASS)},B.prototype._createTableHeaderColumnResizeIndicator=function(){var e=this._getTableHeaderColumnResizeIndicator();if(!e){var t=this._table._getTableContainer();e=document.createElement(I.DOM_ELEMENT._DIV),t.appendChild(e),e.classList.add(I.CSS_CLASSES._COLUMN_HEADER_RESIZE_INDICATOR_CLASS),this._table._cacheDomElement(I.CSS_CLASSES._COLUMN_HEADER_RESIZE_INDICATOR_CLASS,e)}return e},B.prototype._getTableHeaderColumnResizeIndicator=function(){return this._table._getTableElementByClassName(I.CSS_CLASSES._COLUMN_HEADER_RESIZE_INDICATOR_CLASS,!0)},B.prototype._removeTableHeaderColumnResizeIndicator=function(){var e=this._getTableHeaderColumnResizeIndicator();e&&(S(e).remove(),this._table._clearDomCache(I.CSS_CLASSES._COLUMN_HEADER_RESIZE_INDICATOR_CLASS))},B.prototype.displayDragOverIndicatorColumn=function(e,t){this._table._removeDragOverIndicatorColumn();var o=this._table._getTableHeaderRow(),i=this._table._getTableHeaderColumn(e),l=t?I.CSS_CLASSES._COLUMN_HEADER_DRAG_INDICATOR_BEFORE_CLASS:I.CSS_CLASSES._COLUMN_HEADER_DRAG_INDICATOR_AFTER_CLASS;null!=i?i.classList.add(l):0===this._table._getColumnDefs().length&&o.classList.add(l)},B.prototype.removeDragOverIndicatorColumn=function(){for(var e=this._table._tableQuerySelectorAll(this._table._getTable(),"."+I.CSS_CLASSES._COLUMN_HEADER_DRAG_INDICATOR_BEFORE_CLASS+",."+I.CSS_CLASSES._COLUMN_HEADER_DRAG_INDICATOR_AFTER_CLASS),t=e.length,o=0;o<t;o++)e[o].classList.remove(I.CSS_CLASSES._COLUMN_HEADER_DRAG_INDICATOR_BEFORE_CLASS),e[o].classList.remove(I.CSS_CLASSES._COLUMN_HEADER_DRAG_INDICATOR_AFTER_CLASS)};const M=function(e){M.superclass.constructor.call(this,e)};u.Object.createSubclass(M,N,"TableStickyLayoutManager"),M.prototype.unregisterListeners=function(){M.superclass.unregisterListeners.call(this),this._clearMouseResizeListeners()},M.prototype.getScroller=function(){if(null==this._scroller){var e,t=this._table.options.scrollPolicyOptions;null!=t&&null!=(e=t.scroller)&&("string"==typeof e&&null==(e=document.querySelector(e))&&C.error("the css selector string specified in scroller attribute does not resolve to any element"),null==e||e.contains(this._table._getRootElement())||(C.error("the specified scroller must be an ancestor of the component"),e=null)),this._scroller=null!=e?e:this._table._getTableScroller()}return this._scroller},M.prototype._isHTMLScroller=function(){return null!=this._table.options.scrollPolicyOptions&&"html"===this._table.options.scrollPolicyOptions.scroller},M.prototype.getContentElement=function(){return this.getScroller()!==this._table._getTableScroller()?this._table._getTable():null},M.prototype.getColumnScrollLeft=function(e){if(0===e)return 0;var t,o,i=0;if(this._table._isDefaultSelectorEnabled()&&(i+=this._selectorColWidth),this._table._isGutterStartColumnEnabled()){i+=this._table._getTableGutterWidth("start")}var l=this._getFrozenStartColumnIndexes();for(t=0;t<l.length&&(o=l[t])<e;t++)i+=this._getAppliedColumnWidth(o);var n=this.getScroller(),s="rtl"===this._table._GetReadingDirection(),a=this._table._getTableHeaderColumn(e);return null!=a?s?n.clientWidth-i-a.offsetLeft-a.offsetWidth:a.offsetLeft-i:void 0},M.prototype.getRowScrollTop=function(e){var t=e.offsetTop;if(!this._table._isTableHeaderless()){var o=this._table._getTableHeader();null!=o&&(t-=o.offsetHeight)}if(this._table._isAddNewRowEnabled()){var i=this._table._getPlaceHolderRow();null!=i&&(t-=i.offsetHeight)}return t},M.prototype._handleScrollerScrollLeft=function(e){M.superclass._handleScrollerScrollLeft.call(this,e),this._updateFrozenEdges(e,!1),null!=this._dragIndicatorColumnIndex&&this.displayDragOverIndicatorColumn()},M.prototype._handleScrollerScrollTop=function(e){if(M.superclass._handleScrollerScrollTop.call(this,e),this._table._isStickyRowsEnabled())for(var t=this._table._getTableBodyStickyRows(),o=0;o<t.length;o++){var i=t[o];this.getVerticalOverflowDiff(i).top>0?i.classList.add(I.CSS_CLASSES._TABLE_STUCK_ROW_CLASS):i.classList.remove(I.CSS_CLASSES._TABLE_STUCK_ROW_CLASS)}},M.prototype.getVerticalOverflowDiff=function(e){var t,o,i,l,n=e.getBoundingClientRect();this._table._isExternalScrollEnabled()?(i=null==this._table.options.scrollPolicyOptions.scrollerOffsetTop?0:this._table.options.scrollPolicyOptions.scrollerOffsetTop,l=null==this._table.options.scrollPolicyOptions.scrollerOffsetBottom?0:this._table.options.scrollPolicyOptions.scrollerOffsetBottom):(i=0,l=0);var s=this._table._getTableHeader();null!=s&&(i+=s.offsetHeight);var a=this._table._getPlaceHolderRow();null!=a&&(i+=a.offsetHeight);var r=this._table._getTableFooter();if(null!=r&&(l+=r.offsetHeight),this._table._isStickyRowsEnabled())for(var _=this._table._getTableBodyStickyRows(),h=_.length-1;h>=0;h--){var d=_[h];if(d===e)break;if(d.classList.contains(I.CSS_CLASSES._TABLE_STUCK_ROW_CLASS)){i+=d.offsetHeight;break}}if(this._isHTMLScroller())t=0,o=this.getScroller().clientHeight;else{var u=this.getScrollBarHeight(),c=this.getScroller().getBoundingClientRect();t=c.top,o=c.bottom-u}return{top:t+i-n.top,bottom:n.bottom-o+l}},M.prototype.getHorizontalOverflowDiff=function(e,t){var o,i,l,n,s="rtl"===this._table._GetReadingDirection(),a=this.getScroller(),r=this.getScrollBarWidth(),_=e.getBoundingClientRect(),h=a.getBoundingClientRect();if(this._table._isExternalScrollEnabled()?(l=null==this._table.options.scrollPolicyOptions.scrollerOffsetStart?0:this._table.options.scrollPolicyOptions.scrollerOffsetStart,n=null==this._table.options.scrollPolicyOptions.scrollerOffsetEnd?0:this._table.options.scrollPolicyOptions.scrollerOffsetEnd):(l=0,n=0),this._table._isDefaultSelectorEnabled()&&(l+=this._selectorColWidth),this._table._isGutterStartColumnEnabled()){l+=this._table._getTableGutterWidth("start")}if(this._table._isGutterEndColumnEnabled()){n+=this._table._getTableGutterWidth("end")}var d=this._getFrozenStartColumnIndexes();for(o=0;o<d.length&&(i=d[o])<t;o++)l+=this._getAppliedColumnWidth(i);var u=this._getFrozenEndColumnIndexes();for(o=u.length-1;o>-1&&(i=u[o])>t;o--)n+=this._getAppliedColumnWidth(i);var c={};return s?(c.left=h.left+n-_.left+r,c.right=_.right-h.right+l):(c.left=h.left+l-_.left,c.right=_.right-h.right+n+r),c},M.prototype._clearAllCache=function(){this._clearColumnSizingCache()},M.prototype._clearColumnSizingCache=function(){M.superclass._clearColumnSizingCache.call(this),this._appliedColumnWidths=null,this._columnInitWidths=null,this._selectorColWidth=null,this._table._gutterStartWidth=null,this._table._gutterEndWidth=null},M.prototype.refreshTableDimensions=function(){var e=this._table._getTableContainer(),t=this._getSizingState(),o=this._getTableUpdates();if(o.has(I._UPDATE._REFRESH))this._clearAllCache();else{if(!(o.has(I._UPDATE._DATA_REFRESH)||o.has(I._UPDATE._ATTACHED)||o.has(I._UPDATE._SHOWN)||o.has(I._UPDATE._RESIZE)||o.has(I._UPDATE._COL_RESIZE)||o.has(I._UPDATE._COL_REORDER)||o.has(I._UPDATE._ROWS_ADDED)&&!t.hasVerticalOverflow||o.has(I._UPDATE._ROWS_REMOVED)&&t.hasVerticalOverflow))return(o.has(I._UPDATE._ROW_REFRESH)||o.has(I._UPDATE._ROWS_REMOVED)||o.has(I._UPDATE._ADD_ROW_DISPLAY))&&(this.unregisterScrollListeners(),this.clearCachedDimensions(),this._setupTableHeight(this._getBottomSlotHeight()),this._table._styleTableContainer(e),this._restoreCachedScrollPos(),this.registerScrollListeners()),o.has(I._UPDATE._ROWS_ADDED)||o.has(I._UPDATE._DATA_SORT)||o.has(I._UPDATE._ADD_ROW_DISPLAY)?(this._initializeFrozenColumns(!0),this._table._styleTableContainer(e),this._updateStickyRowTops()):o.has(I._UPDATE._ROW_REFRESH)&&this._updateStickyRowTops(),this._clearTableUpdates(),void this._enableTableVisibility();this._clearColumnSizingCache()}var i,l=this._getBottomSlotHeight(),n=this._table._getTable();this.clearCachedDimensions(),this._removeTableDimensionsStyling(),b.isSafari()&&(n.classList.remove(I.CSS_CLASSES._TABLE_ELEMENT_CLASS),i=n.offsetWidth,n.classList.add(I.CSS_CLASSES._TABLE_ELEMENT_CLASS)),this._table._styleTableContainer(e),this._initializeColumnLayouts(),this._setupTableHeight(l),(i=this._determineColumnWidths())>0&&(n.style[I.CSS_PROP._WIDTH]=i+I.CSS_VAL._PX,n.style["table-layout"]="fixed");let s=0;this._table._isGutterStartColumnEnabled()&&(s+=this._table._getTableGutterWidth("start")),this._table._isGutterEndColumnEnabled()&&(s+=this._table._getTableGutterWidth("end")),s>0&&(n.style[I.CSS_PROP._WIDTH]=i+s+I.CSS_VAL._PX),this._applyHeaderWrapperClass(),this._initializeFrozenColumns(!0),this._updateStickyRowTops();var a=this._getTableContainerScrollableState(l);1===a[0]?(t.hasVerticalOverflow=!0,e.classList.add(I.CSS_CLASSES._TABLE_SCROLL_VERTICAL_CLASS)):t.hasVerticalOverflow=!1,1===a[1]?(t.hasHorizontalOverflow=!0,e.classList.add(I.CSS_CLASSES._TABLE_SCROLL_HORIZONTAL_CLASS)):t.hasHorizontalOverflow=!1,this._table._isStatusMessageShown()&&this._table._refreshTableStatusPosition(),this._finalizeTableDimensions()},M.prototype._updateStickyRowTops=function(){var e,t=this._table._getTableHeaderRow(),o=null==this._table.options.scrollPolicyOptions.scrollerOffsetTop?0:this._table.options.scrollPolicyOptions.scrollerOffsetTop,i=null!=t?t.offsetHeight+o:o,l=this._table._getPlaceHolderRowCells(),n=l.length;if(n>0)for(e=0;e<n;e++)l[e].style[I.CSS_PROP._TOP]=i+"px";if(this._table._isStickyRowsEnabled()){var s,a,r=2,_=this._table._getPlaceHolderRow();null!=_&&(i+=_.offsetHeight);var h=this._table._getTableBodyRows();for(e=0;e<h.length;e++){var d=!1,u=h[e],c=this._table._getTableElementsByTagName(u,I.DOM_ELEMENT._TD);u.classList.contains(I.CSS_CLASSES._TABLE_STICKY_ROW_CLASS)&&(d=!0);for(var S=0;S<c.length;S++)s=c[S],d&&(s.style[I.CSS_PROP._TOP]=i+"px"),a=s.classList.contains(I.CSS_CLASSES._TABLE_FROZEN_START)?1:s.classList.contains(I.CSS_CLASSES._TABLE_FROZEN_END)?2:0,s.style[I.CSS_PROP._ZINDEX]=d?3*(r+1)+a:3*(r-2)+a;d&&(r+=2)}}},M.prototype._initializeColumnLayouts=function(){this._setForcedColumnWidths(),this._verifyMinAndMaxWidths()},M.prototype._setupTableHeight=function(e){var t=this._table._getTableScroller();t.removeAttribute(I.DOM_ATTR._STYLE);var o=window.getComputedStyle(this._table._getTableContainer()),i=this.getExactClientHeight(o)-e,l=window.getComputedStyle(t),n=this.getExactOffsetHeight(l);Math.abs(n-i)>I.SIZING_ERROR_MARGIN&&(t.style[I.CSS_PROP._HEIGHT]=i+I.CSS_VAL._PX);var s=this._table._getTableBottomSlot();null!=s&&(this._table._isTableStretchEnabled()?(s.style[I.CSS_PROP._BOTTOM]=0,s.style[I.CSS_PROP._POSITION]=I.CSS_VAL._ABSOLUTE):(s.style[I.CSS_PROP._BOTTOM]="",s.style[I.CSS_PROP._POSITION]=""))},M.prototype._removeHeaderColumnAndCellColumnWidths=function(){for(var e=this._table._getColumnDefs().length,t=0;t<e;t++){var o=this._table._getTableCol(t);o.style[I.CSS_PROP._WIDTH]="",o.style[I.CSS_PROP._DISPLAY]=""}this._appliedColumnWidths=null},M.prototype._determineColumnWidths=function(){this._savePreferredColWidths();var e=this._setAllColumnWidths();return this._clearForcedColumnWidths(),e},M.prototype._setAllColumnWidths=function(){var e=this._table._getColumnDefs().length,t=null!=this._selectorColWidth?this._selectorColWidth:0;this._appliedColumnWidths=[];for(var o=0;o<e;o++){var i=this._table._getTableCol(o),l=this._columnInitWidths[o];i.style[I.CSS_PROP._WIDTH]=l+I.CSS_VAL._PX,0===l&&(i.style[I.CSS_PROP._DISPLAY]=I.CSS_VAL._NONE),this._appliedColumnWidths[o]=l,t+=l}return t},M.prototype._getAppliedColumnWidth=function(e){return null!=this._appliedColumnWidths&&this._appliedColumnWidths.length>e?this._appliedColumnWidths[e]:0},M.prototype._clearForcedColumnWidths=function(){for(var e=this._table._getTableBodyRows(),t=0;t<this._forcedWidthColumns.length;t++)if(!1!==this._forcedWidthColumns[t]){var o=this._table._getTableHeaderColumn(t);null!=o&&this._applyForcedColumnWidth(o,"");for(var i=0;i<e.length;i++){var l=this._table._getTableBodyCell(i,t,null);null!=l&&this._applyForcedColumnWidth(l,"")}var n=this._table._getTableFooterCell(t);null!=n&&this._applyForcedColumnWidth(n,"")}},M.prototype._savePreferredColWidths=function(){if(null==this._selectorColWidth&&this._table._isDefaultSelectorEnabled()){var e=this._table._getTableSelectorColumn();if(null!=e)this._selectorColWidth=e.getBoundingClientRect().width;else{var t=this._table._getTableBodyRow(0),o=this._table._getTableBodySelectorCell(t);null!=o&&(this._selectorColWidth=o.getBoundingClientRect().width)}}if(null==this._columnInitWidths){this._columnInitWidths=[];for(var i=this._table._getColumnDefs().length,l=0;l<i;l++){var n=this._table._getTableHeaderColumn(l);if(null!=n)this._columnInitWidths[l]=n.getBoundingClientRect().width;else{var s=this._table._getTableBodyCell(0,l,null);null!=s&&(this._columnInitWidths[l]=s.getBoundingClientRect().width)}}}},M.prototype._initializeFrozenColumns=function(e,t){if(e||this.hasRenderedSize()){var o,i,l,n;this._table._isExternalScrollEnabled()?(l=null==this._table.options.scrollPolicyOptions.scrollerOffsetStart?0:this._table.options.scrollPolicyOptions.scrollerOffsetStart,n=null==this._table.options.scrollPolicyOptions.scrollerOffsetEnd?0:this._table.options.scrollPolicyOptions.scrollerOffsetEnd):(l=0,n=0);var s=!1;if(this._table._isGutterStartColumnEnabled()){this._applyFrozenOffset(-1,l,!0,t),l+=this._table._getTableGutterWidth("start"),s=!0}if(this._table._isGutterEndColumnEnabled()&&null!=this._appliedColumnWidths){this._applyFrozenOffset(this._appliedColumnWidths.length,n,!1,t),n+=this._table._getTableGutterWidth("end")}this._table._isDefaultSelectorEnabled()&&(this._applyFrozenOffset(-1,l,!0,t),l+=this._selectorColWidth,s=!0);var a=this._getFrozenStartColumnIndexes();if(a.length>0)for(s=!0,o=0;o<a.length;o++)i=a[o],this._applyFrozenOffset(i,l,!0,t),l+=this._getAppliedColumnWidth(i);var r=this._getFrozenEndColumnIndexes();if(r.length>0)for(s=!0,o=r.length-1;o>-1;o--)i=r[o],this._applyFrozenOffset(i,n,!1,t),n+=this._getAppliedColumnWidth(i);s&&this._updateFrozenEdges(this._scrollLeft,!0,t)}},M.prototype._getFrozenStartColumnIndexes=function(){for(var e=[],t=this._table._getColumnDefs(),o=0;o<t.length;o++)t[o].frozenEdge===I._OPTION_FROZEN_EDGE._START&&e.push(o);return e},M.prototype._getFrozenEndColumnIndexes=function(){for(var e=[],t=this._table._getColumnDefs(),o=0;o<t.length;o++)t[o].frozenEdge===I._OPTION_FROZEN_EDGE._END&&e.push(o);return e},M.prototype._applyFrozenOffset=function(e,t,o,i){var l,n,s="rtl"===this._table._GetReadingDirection();n=o&&!s||!o&&s?I.CSS_PROP._LEFT:I.CSS_PROP._RIGHT;var a=t+I.CSS_VAL._PX;if(null!=i){let t;if(-1===e){if(this._table._isGutterStartColumnEnabled()&&(t=this._table._getTableGutterCell("body","start",i)),this._table._isDefaultSelectorEnabled())if(i.classList.contains(I.CSS_CLASSES._TABLE_ADD_ROW_PLACEHOLDER_CLASS)){let e=this._table._isGutterStartColumnEnabled()?1:0;t=this._table._getPlaceHolderRowCells(i)[e]}else t=this._table._getTableBodySelectorCell(i)}else t=i.classList.contains(I.CSS_CLASSES._TABLE_ADD_ROW_PLACEHOLDER_CLASS)?this._table._getPlaceHolderRowCell(e):this._table._getTableBodyCell(null,e,i);return void(null!=t&&(t.style[n]=a))}const r=this._table._getTableBodyRows(),_=this._table._getPlaceHolderRow(),h=this._table.options.columns.length;if(-1===e&&!this._table._isDefaultSelectorEnabled()||e===h){const t=-1===e?"start":"end",o=this._table._getTableGutterCell("header",t);if(null!=o&&(o.style[n]=a),null!=_){const e=this._table._getTableGutterCell("body",t,_);null!=e&&(e.style[n]=a)}for(l=0;l<r.length;l++){const e=this._table._getTableGutterCell("body",t,r[l]);null!=e&&(e.style[n]=a)}const i=this._table._getTableGutterCell("footer",t);null!=i&&(i.style[n]=a)}else if(-1===e){var d=this._table._getTableSelectorColumn();if(null!=d&&(d.style[n]=a),null!=_){const e=this._table._isGutterStartColumnEnabled()?1:0,t=this._table._getPlaceHolderRowCells(_)[e];null!=t&&(t.style[n]=a)}for(l=0;l<r.length;l++){var u=this._table._getTableBodyRow(l),c=this._table._getTableBodySelectorCell(u);null!=c&&(c.style[n]=a)}var S=this._table._getTableFooterSelectorCell();null!=S&&(S.style[n]=a)}else{var E=this._table._getTableHeaderColumn(e);if(null!=E&&(E.style[n]=a),null!=_){var C=this._table._getPlaceHolderRowCell(e);null!=C&&(C.style[n]=a)}for(l=0;l<r.length;l++){var T=this._table._getTableBodyCell(l,e);null!=T&&(T.style[n]=a)}var p=this._table._getTableFooterCell(e);null!=p&&(p.style[n]=a)}},M.prototype._updateFrozenEdges=function(e,t,o){var i,l,n,s,a=this._table._getCurrentHorizontalScrollPosition(e);if(0===a.x)n=null;else{var r=a.columnIndex;n=this._table._isDefaultSelectorEnabled()||this._table._isGutterStartColumnEnabled()?-1:null;var _=this._getFrozenStartColumnIndexes();for(i=0;i<_.length&&((l=_[i])<r&&this._getAppliedColumnWidth(l)>0);i++)n=l}this._updateFrozenEdge(n,!0,t,o);var h=this.getScroller(),d=h.scrollWidth-h.clientWidth-a.x;if(d<1)s=null;else if(null!=this._appliedColumnWidths){this._table._isGutterEndColumnEnabled()&&(s=this._appliedColumnWidths.length);var u=0,c=this._getFrozenEndColumnIndexes();for(i=this._appliedColumnWidths.length-1;i>-1;i--)if(-1!==c.indexOf(i)&&this._getAppliedColumnWidth(i)>0)s=i;else if((u+=this._getAppliedColumnWidth(i))>d)break}this._updateFrozenEdge(s,!1,t,o)},M.prototype._updateFrozenEdge=function(e,t,o,i){var l=!1;t?this._frozenStartIndex!==e&&(null!=this._frozenStartIndex&&this._applyFrozenEdge(this._frozenStartIndex,!1,i),null!=e&&(this._applyFrozenEdge(e,!0,i),l=!0),this._frozenStartIndex=e):this._frozenEndIndex!==e&&(null!=this._frozenEndIndex&&this._applyFrozenEdge(this._frozenEndIndex,!1,i),null!=e&&(this._applyFrozenEdge(e,!0,i),l=!0),this._frozenEndIndex=e),o&&!l&&this._applyFrozenEdge(e,!0,i)},M.prototype._applyFrozenEdge=function(e,t,o){let i;const l=t?"add":"remove",n=this._table.options.columns.length;if(null!=o){let t;if(-1===e){if(this._table._isGutterStartColumnEnabled()&&(t=this._table._getTableGutterCell("body","start",o)),this._table._isDefaultSelectorEnabled())if(o.classList.contains(I.CSS_CLASSES._TABLE_ADD_ROW_PLACEHOLDER_CLASS)){let e=this._table._isGutterStartColumnEnabled()?1:0;t=this._table._getPlaceHolderRowCells(o)[e]}else t=this._table._getTableBodySelectorCell(o)}else t=e===n?this._table._getTableGutterCell("body","end",o):o.classList.contains(I.CSS_CLASSES._TABLE_ADD_ROW_PLACEHOLDER_CLASS)?this._table._getPlaceHolderRowCell(e):this._table._getTableBodyCell(null,e,o);return void(null!=t&&t.classList[l](I.CSS_CLASSES._TABLE_FROZEN_EDGE))}const s=this._table._getTableBodyRows(),a=this._table._getPlaceHolderRow();if(-1===e&&!this._table._isDefaultSelectorEnabled()||e===n){const t=-1===e?"start":"end",o=this._table._getTableGutterCell("header",t);if(null!=o&&o.classList[l](I.CSS_CLASSES._TABLE_FROZEN_EDGE),null!=a){const e=this._table._getTableGutterCell("body",t,a);null!=e&&e.classList[l](I.CSS_CLASSES._TABLE_FROZEN_EDGE)}for(i=0;i<s.length;i++){const e=this._table._getTableGutterCell("body",t,s[i]);null!=e&&e.classList[l](I.CSS_CLASSES._TABLE_FROZEN_EDGE)}const n=this._table._getTableGutterCell("footer",t);null!=n&&n.classList[l](I.CSS_CLASSES._TABLE_FROZEN_EDGE)}else if(-1===e){var r=this._table._getTableSelectorColumn();if(null!=r&&r.classList[l](I.CSS_CLASSES._TABLE_FROZEN_EDGE),null!=a){let e=this._table._isGutterStartColumnEnabled()?1:0;var _=this._table._getPlaceHolderRowCells(a)[e];null!=_&&_.classList[l](I.CSS_CLASSES._TABLE_FROZEN_EDGE)}for(i=0;i<s.length;i++){var h=this._table._getTableBodyRow(i),d=this._table._getTableBodySelectorCell(h);null!=d&&d.classList[l](I.CSS_CLASSES._TABLE_FROZEN_EDGE)}var u=this._table._getTableFooterSelectorCell();null!=u&&u.classList[l](I.CSS_CLASSES._TABLE_FROZEN_EDGE)}else{var c=this._table._getTableHeaderColumn(e);if(null!=c&&c.classList[l](I.CSS_CLASSES._TABLE_FROZEN_EDGE),null!=a){var S=this._table._getPlaceHolderRowCell(e);null!=S&&S.classList[l](I.CSS_CLASSES._TABLE_FROZEN_EDGE)}for(i=0;i<s.length;i++){var E=this._table._getTableBodyCell(i,e);null!=E&&E.classList[l](I.CSS_CLASSES._TABLE_FROZEN_EDGE)}var C=this._table._getTableFooterCell(e);null!=C&&C.classList[l](I.CSS_CLASSES._TABLE_FROZEN_EDGE)}},M.prototype.handleMouseMoveHeaderCell=function(e){this._isColumnResizing||this._setResizeCursor(e)},M.prototype._setResizeCursor=function(e){var t=this._table._getEventTargetElement(e),o=this._table._getElementColumnIdx(t);if(null!=o){if(this._table._getColumnDefs()[o].resizable===I._OPTION_DISABLED)return this._cursor=null,void(t.style.cursor="");var i=!1,l=this._table._getTableHeaderColumn(o);if(null!==l){var n=this._table._GetReadingDirection(),s=this._table.options.columns.length,a=l.getBoundingClientRect(),r=Math.abs(e.originalEvent.clientX-a.left),_=Math.abs(e.originalEvent.clientX-a.right);r<=I.RESIZE_OFFSET?"rtl"===n&&o!==s-1?(i=!0,this._resizeStartIndex=o,this._resizeEndIndex=o+1):"ltr"===n&&0!==o&&(i=!0,this._resizeStartIndex=o-1,this._resizeEndIndex=o):_<=I.RESIZE_OFFSET&&("ltr"===n&&o!==s-1?(i=!0,this._resizeStartIndex=o,this._resizeEndIndex=o+1):"rtl"===n&&0!==o&&(i=!0,this._resizeStartIndex=o-1,this._resizeEndIndex=o))}i?(this._cursor="col-resize",t.style.cursor=I.CSS_VAL._COL_RESIZE):(this._cursor=null,t.style.cursor="")}},M.prototype._handleHeaderColumnResizeStart=function(e,t){return(!t||null==this._resizeStartIndex&&null==this._resizeEndIndex)&&this._setResizeCursor(e),"col-resize"===this._cursor?(this._isColumnResizing=!0,this._resizeStartPageX=this._getPageX(e),this._minimumStartColWidth=this.getMinimumForcedOffsetWidth(this._resizeStartIndex),this._minimumEndColWidth=this.getMinimumForcedOffsetWidth(this._resizeEndIndex),this._setResizeIndicator(),e.preventDefault(),t&&this._setupMouseResizeListeners(),this._table._queueTask(function(){return this._isColumnResizing?new Promise(function(e){this._finishResize=e}.bind(this)):Promise.resolve()}.bind(this)),!0):(this._resizeStartPageX=null,!1)},M.prototype._setupMouseResizeListeners=function(){this._clearMouseResizeListeners(),this._docMouseMoveListener=this._handleResizeMouseMove.bind(this),this._docMouseUpListener=this._handleResizeMouseUp.bind(this),document.addEventListener("mousemove",this._docMouseMoveListener,!1),document.addEventListener("mouseup",this._docMouseUpListener,!1)},M.prototype._clearMouseResizeListeners=function(){null!=this._docMouseMoveListener&&(document.removeEventListener("mousemove",this._docMouseMoveListener,!1),this._docMouseMoveListener=null),null!=this._docMouseUpListener&&(document.removeEventListener("mouseup",this._docMouseUpListener,!1),this._docMouseUpListener=null)},M.prototype._handleResizeMouseMove=function(e){e&&0===e.buttons?this._handleResizeMouseUp(e):this._updateResizeColumnWidths(e)},M.prototype._handleResizeMouseUp=function(e){this._removeResizeIndicator(),this._updateResizeColumnWidths(e,!0),this._cleanupColumnResizing()},M.prototype._cleanupColumnResizing=function(){this._clearMouseResizeListeners(),this._resizeStartIndex=null,this._resizeEndIndex=null,this._isColumnResizing=null,this._resizeStartPageX=null,this._minimumStartColWidth=null,this._minimumEndColWidth=null,null!=this._finishResize&&(this._finishResize(),this._finishResize=null)},M.prototype.handleTouchMoveHeader=function(e){this._isColumnResizing&&this._updateResizeColumnWidths(e)},M.prototype.handleTouchEnd=function(e){this._isColumnResizing&&(e.preventDefault(),this._removeResizeIndicator(),this._updateResizeColumnWidths(e,!0),this._cleanupColumnResizing())},M.prototype._updateResizeColumnWidths=function(e,t){var o,i,l,n=this._table._GetReadingDirection(),s=this._getAppliedColumnWidth(this._resizeStartIndex),a=this._getAppliedColumnWidth(this._resizeEndIndex),r=this._getPageX(e)-this._resizeStartPageX;"ltr"===n?(o=s+r,i=a-r):(o=s-r,i=a+r),this._minimumStartColWidth>o?(l=this._minimumStartColWidth-o,o=this._minimumStartColWidth,i-=l):this._minimumEndColWidth>i&&(l=this._minimumEndColWidth-i,i=this._minimumEndColWidth,o-=l);var _=this._table._getTableCol(this._resizeStartIndex),h=this._table._getTableCol(this._resizeEndIndex);if(_.style[I.CSS_PROP._WIDTH]=o+I.CSS_VAL._PX,h.style[I.CSS_PROP._WIDTH]=i+I.CSS_VAL._PX,this._updateStickyRowTops(),t){for(var d=this._table.options.columns.length,u=[],c=0;c<d;c++)u[c]=Object.assign({},{},this._table.options.columns[c]);var S=this._table._getTableHeaderColumn(this._resizeStartIndex);u[this._resizeStartIndex].width=this.getWidthPropertyFromOffsetWidth(o,S);var E=this._table._getTableHeaderColumn(this._resizeEndIndex);u[this._resizeEndIndex].width=this.getWidthPropertyFromOffsetWidth(i,E),this._table.option("columns",u,{_context:{writeback:!0,internalSet:!0}}),this._table._clearCachedMetadata(),this.notifyTableUpdate(I._UPDATE._COL_RESIZE),null!=this._finishResize&&(this._finishResize(),this._finishResize=null)}},M.prototype._setResizeIndicator=function(){var e=this._table._getPlaceHolderRowCell(this._resizeEndIndex);null!=e&&e.classList.add(I.CSS_CLASSES._COLUMN_RESIZE_INDICATOR_CLASS);var t=this._table._getTableHeaderColumn(this._resizeEndIndex);null!=t&&t.classList.add(I.CSS_CLASSES._COLUMN_RESIZE_INDICATOR_CLASS),this._table._getVisibleRowIdxs().forEach(function(e){var t=this._table._getTableBodyCell(e,this._resizeEndIndex);null!=t&&t.classList.add(I.CSS_CLASSES._COLUMN_RESIZE_INDICATOR_CLASS)}.bind(this));var o=this._table._getTableFooterCell(this._resizeEndIndex);null!=o&&o.classList.add(I.CSS_CLASSES._COLUMN_RESIZE_INDICATOR_CLASS)},M.prototype._removeResizeIndicator=function(){var e=this._table._getTableContainer();this._table._getTableElementsByClassName(e,I.CSS_CLASSES._COLUMN_RESIZE_INDICATOR_CLASS).forEach(function(e){e.classList.remove(I.CSS_CLASSES._COLUMN_RESIZE_INDICATOR_CLASS)})},M.prototype.handleRowRefresh=function(e,t,o){M.superclass.handleRowRefresh.call(this,e,t),o&&this._initializeFrozenColumns(!1,t)},M.prototype.displayDragOverIndicatorColumn=function(e,t){if(null==e||this._dragIndicatorColumnIndex!==e||this._dragIndicatorIsStart!==t){this._dragIndicatorColumnIndex=null!=e?e:this._dragIndicatorColumnIndex,this._dragIndicatorIsStart=null!=t?t:this._dragIndicatorIsStart;var o=this._getTableColumnDropIndicator();null==o&&(o=this._createTableColumnDropIndicator());var i=this.getScroller().getBoundingClientRect(),l=this._table._getTableHeaderColumn(this._dragIndicatorColumnIndex).getBoundingClientRect();this._dragIndicatorIsStart?"rtl"===this._table._GetReadingDirection()?o.style.left=l.left+l.width-i.left+"px":o.style.left=l.left-i.left+"px":"rtl"===this._table._GetReadingDirection()?o.style.left=l.left-i.left+"px":o.style.left=l.left+l.width-i.left+"px",o.style.height=i.height+"px"}},M.prototype.removeDragOverIndicatorColumn=function(){var e=this._getTableColumnDropIndicator();e&&(S(e).remove(),this._table._clearDomCache(I.CSS_CLASSES._COLUMN_DROP_INDICATOR_CLASS)),this._dragIndicatorColumnIndex=null,this._dragIndicatorIsStart=null},M.prototype._createTableColumnDropIndicator=function(){var e=this._getTableColumnDropIndicator();if(!e){var t=this._table._getTableContainer();(e=document.createElement(I.DOM_ELEMENT._DIV)).classList.add(I.CSS_CLASSES._COLUMN_DROP_INDICATOR_CLASS),t.appendChild(e),this._table._cacheDomElement(I.CSS_CLASSES._COLUMN_DROP_INDICATOR_CLASS,e)}return e},M.prototype._getTableColumnDropIndicator=function(){return this._table._getTableElementByClassName(I.CSS_CLASSES._COLUMN_DROP_INDICATOR_CLASS,!0)},M.prototype._applyHeaderWrapperClass=function(){const e=this._table._getTableHeaderColumns();if(null!=e)for(let t=0;t<e.length;t++)e[t].classList.add(I.CSS_CLASSES._TABLE_HEADER_WRAP_TEXT_CLASS)};const P=function(e){P.superclass.constructor.call(this,e)};u.Object.createSubclass(P,M,"TableFixedLayoutManager"),P.prototype._clearAllCache=function(){P.superclass._clearAllCache.call(this),this._columnWeights=null,this._columnMinWidths=null,this._columnMaxWidths=null},P.prototype._initializeColumnLayouts=function(){var e,t=!1;if(this._table._isDefaultSelectorEnabled()){if(null==this._selectorColWidth){t=!0;var o=this._table._getTableSelectorColumn();if(null!=o)this._selectorColWidth=o.offsetWidth;else{var i=this._table._getTableBodyRow(0),l=this._table._getTableBodySelectorCell(i);null!=l&&(this._selectorColWidth=l.offsetWidth)}}}else null!=this._selectorColWidth&&(t=!0,this._selectorColWidth=null);var n=this._table._getColumnDefs(),s=n.length;if(null==this._columnWeights)for(t=!0,this._columnWeights=[],e=0;e<s;e++){var a=parseFloat(n[e].weight);a<=1&&(a=1),this._columnWeights[e]=a}if(null==this._columnMinWidths)for(t=!0,this._columnMinWidths=[],e=0;e<s;e++){var r=this._getPixelStyleEquivalent(n[e].minWidth);this._columnMinWidths[e]=null==r||r<=0?1:r}if(null==this._columnMaxWidths)for(t=!0,this._columnMaxWidths=[],e=0;e<s;e++){var _=this._getPixelStyleEquivalent(n[e].maxWidth);this._columnMaxWidths[e]=null!=_&&_<=0?null:_}if(null==this._columnInitWidths)for(t=!0,this._resetTableElementStyling(),this._columnInitWidths=[],e=0;e<s;e++){var h=this._table._getTableHeaderColumn(e);if(null!=h)this._columnInitWidths[e]=h.offsetWidth;else{var d=this._table._getTableBodyCell(0,e,null);null!=d&&(this._columnInitWidths[e]=d.offsetWidth)}}else t&&this._resetTableElementStyling();return t},P.prototype._resetTableElementStyling=function(){this._table._getTable().style="",this._removeHeaderColumnAndCellColumnWidths()},P.prototype._removeTableDimensionsStyling=function(){this.unregisterScrollListeners()},P.prototype._determineColumnWidths=function(){var e=this._table._getTableScroller().clientWidth;return this._setAllColumnWidths(e)},P.prototype._setAllColumnWidths=function(e){var t,o=this._table._getColumnDefs(),i=o.length,l=null!=this._selectorColWidth?this._selectorColWidth:0,n=l,s=0,a=[];this._appliedColumnWidths=[];var r=[];for(t=0;t<i;t++){var _=this._getPixelStyleEquivalent(o[t].width);null!=_?(r[t]=_,n+=_):(this._columnInitWidths[t]>0?(_=this._columnMinWidths[t],s+=this._columnWeights[t]):_=0,r[t]=!1),a[t]=_,l+=_}if(n<e)for(var h=!0;h;){var d=s;h=!1;var u=e-n;for(t=0;t<i;t++){if(!1===r[t])if(a[t]>0){var c=this._columnWeights[t],S=Math.floor(c/d*u),E=this._columnMinWidths[t],C=this._columnMaxWidths[t];if(null!=E&&S<E){r[t]=E,n+=E,s-=c,a[t]=E,h=!0;break}if(null!=C&&S>C){r[t]=C,n+=C,s-=c,a[t]=C,h=!0;break}a[t]=S,d-=c,u-=S}}l=e}for(t=0;t<i;t++){var T=this._table._getTableCol(t),p=a[t];T.style[I.CSS_PROP._WIDTH]=p+I.CSS_VAL._PX,0===p&&(T.style[I.CSS_PROP._DISPLAY]=I.CSS_VAL._NONE),this._appliedColumnWidths[t]=p}return l},P.prototype._getMinWidthAutoEquivalent=function(){return 100},I.prototype._createContextInfo=function(){var e=document.createElement(I.DOM_ELEMENT._DIV);if(e.id=this.createSubId("context"),e.classList.add(I.CSS_CLASSES._TABLE_ACC_CONTEXT_INFO_CLASS),e.classList.add(I.CSS_CLASSES._HIDDEN_CONTENT_ACC_CLASS),!b.isIos()){var t=document.createElement(I.DOM_ELEMENT._DIV);t.id=this.createSubId("tableContext"),t.classList.add(I.CSS_CLASSES._HIDDEN_CONTENT_ACC_CLASS),e.appendChild(t);var o=document.createElement(I.DOM_ELEMENT._DIV);o.id=this.createSubId("rowContext"),o.classList.add(I.CSS_CLASSES._HIDDEN_CONTENT_ACC_CLASS),e.appendChild(o);var i=document.createElement(I.DOM_ELEMENT._DIV);i.id=this.createSubId("columnContext"),i.classList.add(I.CSS_CLASSES._HIDDEN_CONTENT_ACC_CLASS),e.appendChild(i);var l=document.createElement(I.DOM_ELEMENT._DIV);l.id=this.createSubId("selectorContext"),l.classList.add(I.CSS_CLASSES._HIDDEN_CONTENT_ACC_CLASS),l.textContent=this.getTranslatedString(I._BUNDLE_KEY._LABEL_SELECT_ROW),e.appendChild(l),this._tableContextInfo=t,this._rowContextInfo=o,this._columnContextInfo=i,this._selectorContextInfo=l}return this._getTableContainer().appendChild(e),e},I.prototype._createStateInfo=function(){var e=document.createElement(I.DOM_ELEMENT._DIV);return e.id=this.createSubId("state"),e.classList.add(I.CSS_CLASSES._TABLE_ACC_STATE_INFO_CLASS),e.classList.add(I.CSS_CLASSES._HIDDEN_CONTENT_ACC_CLASS),this._getTableContainer().appendChild(e),this._stateInfo=e,e},I.prototype._createRowStateInfo=function(){var e=document.createElement(I.DOM_ELEMENT._DIV);return e.id=this.createSubId("rowState"),e.classList.add(I.CSS_CLASSES._TABLE_ACC_ROW_STATE_INFO_CLASS),e.classList.add(I.CSS_CLASSES._HIDDEN_CONTENT_ACC_CLASS),this._getTableContainer().appendChild(e),this._rowStateInfo=e,e},I.prototype._createTableStatusAccNotification=function(){var e=this._getTableContainer(),t=document.createElement(I.DOM_ELEMENT._DIV);return t.setAttribute(I.DOM_ATTR._ROLE,"status"),t.classList.add(I.CSS_CLASSES._TABLE_STATUS_ACC_NOTIFICATION_CLASS),t.classList.add(I.CSS_CLASSES._HIDDEN_CONTENT_ACC_CLASS),e.appendChild(t),this._cacheDomElement(I.CSS_CLASSES._TABLE_STATUS_ACC_NOTIFICATION_CLASS,t),this._accStatus=t,t},I.prototype._setAccessibleContext=function(e){var t="";null!=e&&(t=e.context+" "+e.state),this._accRowContext=t},I.prototype._getAccessibleContext=function(){return this._accRowContext},I.prototype._clearAccessibleContext=function(){this._accRowContext=null},I.prototype._updateAccStatusInfo=function(e){var t,o,i="",l="";if(null!=this._active&&!b.isIos()){if(!1!==this._accFirstFocus){var n=this._getColumnDefs().length;this._isDefaultSelectorEnabled()&&(n+=1);var s,a=this._getTableBodyRows().length;s=0===a?"accessibleSummaryExact":"accessibleSummaryEstimate",this._tableContextInfo.textContent=this.getTranslatedString(s,{colnum:n,rownum:a}),i+=this._tableContextInfo.id+" "+this._getTableContainer().id+" "}var r=this._getActiveType(),_=this._active.index;if(r===I.ACTIVE_ELEMENT_TYPES._HEADER){if(this._accRowIndex=null,this._accColumnIndex=null,this._columnContextInfo.textContent=this.getTranslatedString("accessibleColumnHeaderContext",{index:this._isDefaultSelectorEnabled()?_+2:_+1}),i+=this._columnContextInfo.id+" ",-1===_)o=this._getTableSelectorColumn();else{var h=!1;o=this._getTableHeaderColumn(_);var d=this._getSelectedHeaderColumnIdxs();for(t=0;t<d.length;t++)if(d[t]===_){l+=this.getTranslatedString("accessibleStateSelected")+" ",h=!0;break}!h&&this._isColumnSelectionEnabled()&&(l+=this.getTranslatedString("accessibleStateUnselected")+" ");var u=this._getColumnDefs()[_],c=S(o).data("sorted");null!=c?c===I._COLUMN_SORT_ORDER._ASCENDING?l+=this.getTranslatedString("accessibleSortAscending",{id:""})+" ":l+=this.getTranslatedString("accessibleSortDescending",{id:""})+" ":u.sortable===I._OPTION_ENABLED&&(l+=this.getTranslatedString("accessibleSortable",{id:""})+" ")}b.getActionableElementsInNode(o).length>0&&(l+=this.getTranslatedString("accessibleContainsControls")),i+=o.id+" "}else if(r===I.ACTIVE_ELEMENT_TYPES._FOOTER){var E;if(this._accRowIndex=null,this._accColumnIndex=null,this._columnContextInfo.textContent=this.getTranslatedString("accessibleColumnFooterContext",{index:this._isDefaultSelectorEnabled()?_+2:_+1}),i+=this._columnContextInfo.id+" ",-1===_)E=this._getTableFooterSelectorCell();else{var C=!1;E=this._getTableFooterCell(_);var T=this._getSelectedFooterColumnIdxs();for(t=0;t<T.length;t++)if(T[t]===_){l+=this.getTranslatedString("accessibleStateSelected")+" ",C=!0;break}!C&&this._isColumnSelectionEnabled()&&(l+=this.getTranslatedString("accessibleStateUnselected")+" ")}b.getActionableElementsInNode(E).length>0&&(l+=this.getTranslatedString("accessibleContainsControls")),null!=(o=this._getTableHeaderColumn(_))&&(i+=o.id+" "),i+=E.id+" "}else if(r===I.ACTIVE_ELEMENT_TYPES._DATA_ROW){var p,g=null!=e?e:this._accColumnIndex;null==g&&(g=0);var A=this._getTableBodyRow(_),f=this._getTableElementsByClassName(A,I.CSS_CLASSES._TABLE_DATA_CELL_CLASS);if(p=-1===g?this._getTableBodySelectorCell(A):f[g],_!==this._accRowIndex||!1!==this._accFirstFocus){var L=this._isAddNewRowEnabled()?2:1;this._rowContextInfo.textContent=this.getTranslatedString("accessibleRowContext",{index:_+L});var m="",R=!1;null!=this._accRowContext&&(m+=this._accRowContext+" ");var y=this._getSelectedRowIdxs();for(t=0;t<y.length;t++)if(y[t]===_){m+=this.getTranslatedString("accessibleStateSelected")+" ",R=!0;break}!R&&this._isRowSelectionEnabled()&&A[I._DATA_OJ_SELECTABLE]!==I._CONST_OFF&&(m+=this.getTranslatedString("accessibleStateUnselected")+" "),b.getActionableElementsInNode(A).length>0&&(m+=this.getTranslatedString("accessibleContainsControls")+" "),this._rowStateInfo.textContent=m,i+=this._rowContextInfo.id+(-1===g?" ":" "+this._getRowHeaderIds(_,A,p)+" ")+this._rowStateInfo.id+" "}if(g===this._accColumnIndex&&!1===this._accFirstFocus||(this._columnContextInfo.textContent=this.getTranslatedString("accessibleColumnContext",{index:this._isDefaultSelectorEnabled()?g+2:g+1}),i+=this._columnContextInfo.id+" "),-1===g)null!=p&&(i+=this._getAccSelectorString(_)+" ");else{null!=(o=this._getTableHeaderColumn(g))&&(i+=o.id+" "+p.id+" ");var O=p.colSpan;O>1&&(l+=this.getTranslatedString("accessibleColumnsSpan",{count:O}))}this._accRowIndex=_,this._accColumnIndex=g}else if(r===I.ACTIVE_ELEMENT_TYPES._NO_DATA){this._accRowIndex=null,this._accColumnIndex=null,i+=this._getNoDataId()+" ";var v=this._getActiveElement();b.getActionableElementsInNode(v).length>0&&(l+=this.getTranslatedString("accessibleContainsControls"))}else if(r===I.ACTIVE_ELEMENT_TYPES._ADD_ROW){this._accRowIndex=null,this._accColumnIndex=null,this._rowContextInfo.textContent=this.getTranslatedString("accessibleRowContext",{index:1}),this._rowStateInfo.textContent=this.getTranslatedString("accessibleAddRow");var D=this._getActiveElement();b.getActionableElementsInNode(D).length>0&&(l+=this.getTranslatedString("accessibleContainsControls")),i+=this._rowContextInfo.id+" "+this._rowStateInfo.id+" "}this._stateInfo.textContent=l,i+=this._stateInfo.id,this._applyAccStatusLabel(i)}},I.prototype._announceAccSelectionUpdate=function(e){var t;t=e?this.getTranslatedString("accessibleStateSelected"):this.getTranslatedString("accessibleStateUnselected"),this._stateInfo.textContent=t;var o=this._stateInfo.id;this._accStatus.setAttribute(I.DOM_ATTR._ARIA_LABELLEDBY,o)},I.prototype._getAccSelectorString=function(e,t){return this._selectorContextInfo.id+" "+this._getRowHeaderIds(e,t)},I.prototype._clearAccStatusInfo=function(){this._accStatus.setAttribute(I.DOM_ATTR._ARIA_LABELLEDBY,""),this._getTable().setAttribute(I.DOM_ATTR._ARIA_LABELLEDBY,"")},I.prototype._applyAccStatusLabel=function(e){!1!==this._accFirstFocus?this._accFirstFocus=!1:this._accActionFocus?this._accActionFocus=!1:this._accStatus.setAttribute(I.DOM_ATTR._ARIA_LABELLEDBY,e),this._getTable().setAttribute(I.DOM_ATTR._ARIA_LABELLEDBY,e)},I.prototype._getRowHeaderIds=function(e,t,o){var i,l="",n=this.options.accessibility;if(null!=n&&null!=n.rowHeader){var s=n.rowHeader;Array.isArray(s)||(s=[s]);for(var a=this._getColumnDefs(),r=0;r<s.length;r++)for(var _=s[r],h=0;h<a.length;h++)if(_===a[h].id){null!=(i=this._getTableBodyLogicalCells(e,t)[h])&&i!==o&&(l+=i.id+" ");break}}else null!=(i=this._getTableBodyCell(e,0,t))&&i!==o&&(l+=i.id+" ");return l},I.prototype._getVoiceOverCellLabelledby=function(e,t){var o="",i=this._getTableHeaderColumn(t);return null!=i&&(o+=i.id+" "),o+=e.id+" "},I.prototype._getNoDataId=function(){var e=this._getTableBodyMessageRow();if(null!=e)return e.id;var t=this._getTableNoDataRow();return null!=t?t.id:""},I.prototype._cleanAccStatus=function(){this._accFirstFocus=!0,this._accActionFocus=!1,this._accStatus.removeAttribute(I.DOM_ATTR._ARIA_LABELLEDBY),this._getTable().removeAttribute(I.DOM_ATTR._ARIA_LABELLEDBY)},I.prototype._getData=function(){if(!this._data&&null!=this.options.data){var e=this.options.data;if(u.TableDataSource&&e instanceof u.TableDataSource||this._isPagingModelTableDataSource())this._data=new u.TableDataSourceAdapter(e);else{if(!u.DataProviderFeatureChecker.isDataProvider(e)){var t=I._LOGGER_MSG._ERR_DATA_INVALID_TYPE_SUMMARY,o=I._LOGGER_MSG._ERR_DATA_INVALID_TYPE_DETAIL;throw new Error(t+"\n"+o)}e instanceof h||u.DataProviderFeatureChecker.isTreeDataProvider(e)?this._data=e:this._data=new h(e)}this._dataOption=this.options.data,this._registerDataSourceEventListeners()}return this._data},I.prototype._isPagingModelTableDataSource=function(){return!!(u.PagingTableDataSource&&this.options.data instanceof u.PagingTableDataSource)},I.prototype._registerDataSourceEventListeners=function(){var e=this._getData();if(null!=e){this._unregisterDataSourceEventListeners(),this._dataProviderEventHandlers=[],this._dataProviderEventHandlers.push({eventType:"mutate",eventHandler:this._handleDataRowMutate.bind(this)}),this._dataProviderEventHandlers.push({eventType:"refresh",eventHandler:this._handleDataRefresh.bind(this)});for(var t=this._dataProviderEventHandlers.length,o=0;o<t;o++){var i=e.addEventListener(this._dataProviderEventHandlers[o].eventType,this._dataProviderEventHandlers[o].eventHandler);i&&(this._dataProviderEventHandlers[o].eventHandler=i)}}},I.prototype._unregisterDataSourceEventListeners=function(){var e=this._getData();if(null!=this._dataProviderEventHandlers&&null!=e)for(var t=this._dataProviderEventHandlers.length,o=0;o<t;o++)e.removeEventListener(this._dataProviderEventHandlers[o].eventType,this._dataProviderEventHandlers[o].eventHandler)},I.prototype._handleDataRefresh=function(e){try{if(this._hasRefreshInQueue)return;if(this._dataFetching)return void(this._pendingFetchStale=!0);e.detail&&void 0!==e.detail.disregardAfterKey?this._queueTask(function(){this._getLayoutManager().notifyTableUpdate(I._UPDATE._ROWS_REMOVED),this._resetActiveRow(),this._removeRowsAfterLastValidRow(e.detail.disregardAfterKey),this._hasMoreToFetch()||this._registerDomScroller(),this._animateOnFetch=!0}.bind(this)):(this._hasRefreshInQueue=!0,this._queueTask(function(){return this._getLayoutManager().notifyTableUpdate(I._UPDATE._DATA_REFRESH),this._resetActiveRow(),this._beforeDataRefresh(),this._invokeDataFetchRows()}.bind(this)))}catch(e){C.error(e)}},I.prototype._beforeDataRefresh=function(e){this._clearIdleCallback(),this._adjustScrollPositionOnFetch(e),this._invalidateRangeSelection(),null!=this._lastSelectedRowIdxArray&&(this._lastSelectedRowIdxArray=[]),this._initialSelectionStateValidated=!1},I.prototype._removeRowsAfterLastValidRow=function(e){this._getCurrentScrollPosition().y>0&&this._bufferScrollerForLastRow(e);var t=this._getRowIdxForRowKey(e);if(t>=0)for(var o=this._getTableBodyRows().length-1;o>t;o--)this._removeTableBodyRow(o)},I.prototype._bufferScrollerForLastRow=function(e){var t=this._getLayoutManager();if(null!=e){var o=this._getRowIdxForRowKey(e);if(null!=o){var i=this._getTableBodyRow(o),l=t.getVerticalOverflowDiff(i).bottom;l<0&&(this._createTableBodyScrollBuffer().style[I.CSS_PROP._HEIGHT]=Math.abs(l)+1+I.CSS_VAL._PX)}}else this._createTableBodyScrollBuffer().style[I.CSS_PROP._HEIGHT]=this._getTableBody().offsetHeight+I.CSS_VAL._PX},I.prototype._handleDataRowMutate=function(e){this._dataFetching?this._pendingFetchStale=!0:(null!=e.detail.remove&&this._handleDataRowRemove(e.detail.remove,e.detail.add),null!=e.detail.add&&this._handleDataRowAdd(e.detail.add),null!=e.detail.update&&this._handleDataRowChange(e.detail.update))},I.prototype._handleDataRowRemove=function(e,t){try{this._executeTableBodyRowsRemove(e,t)}catch(e){C.error(e)}finally{this._clearDataWaitingState()}},I.prototype._executeTableBodyRowsRemove=function(e,t){var o=this,i=e[I._CONST_KEYS];i&&i.size>0&&this._queueTask(function(){var i=o._getRowsFromEventDetailRemove(e);if(0!==i.length){o._getLayoutManager().notifyTableUpdate(I._UPDATE._ROWS_REMOVED),i.sort(function(e,t){return t.rowIdx-e.rowIdx});var l,n,s,a=[],r=[],_=[],h=i.length,d=!1,u=o._getTableBodyRows();if(u.length>0){for(s=0;s<u.length;s++)a.push(s);for(s=0;s<h;s++){n=i[s].rowIdx,r.push(n);for(var c=0;c<a.length;c++)if(a[c]===n){l=o._getTableBodyRow(n),_.push(l),a.splice(c,1);break}}0===a.length&&(d=!0)}var E=o._getTableBody(),C=S.contains(E,document.activeElement),T=!1;if(d)C&&(T=!0),o._clearSelectionState();else for(s=0;s<h;s++)if(n=i[s].rowIdx,l=o._getTableBodyRow(n),C&&null!=l&&S.contains(l,document.activeElement)){T=!0;break}if(o._hasEditableRow()){var p=o._getEditableRowKey();b.containsKey([...e[I._CONST_KEYS]],p)&&o._setTableEditable(!1,!0)}return d?(o._removeAllTableBodyRows(),f()):new Promise(function(e){return o._IsCustomElement()?o._animateVisibleRows(_,r,"remove").then(function(){return g(),f().then(function(){e(!0)})}):(g(),f().then(function(){e(!0)}))})}function g(){var e,t;if(o._getCurrentScrollPosition().y>0){var l,n,s,a,r=0,_=[];for(e=0;e<h;e++)t=i[e].rowIdx,null!=(l=o._getTableBodyRow(t))&&(r+=l.offsetHeight,_.push(l));if(o._isStickyRowsEnabled())for(e=(a=o._getTableBodyStickyRows()).length-1;e>=0;e--)if((s=a[e]).classList.contains(I.CSS_CLASSES._TABLE_STUCK_ROW_CLASS)){n=s;break}for(o._createTableBodyScrollBuffer().style[I.CSS_PROP._HEIGHT]=r+I.CSS_VAL._PX,e=0;e<_.length;e++)if(l=_[e],o._removeTableBodyRow(null,l),null!=n){var d=a.indexOf(l);-1!==d&&a.splice(d,1)}if(null!=n)for(e=a.length-1;e>=0;e--)if(s=a[e],o._getLayoutManager().getVerticalOverflowDiff(s).top>0){n!==s&&o._scrollRowIntoViewport(null,!0,n);break}}else for(e=0;e<h;e++)t=i[e].rowIdx,o._removeTableBodyRow(t)}function A(){o._syncActiveElement(),T&&o._getTable().focus()}function f(){return!0!==e.transient&&o._updateSelectionStateFromEventDetailRemove(e,t),o._refreshTableFooter(),0===(u=o._getTableBodyRows()).length?(o._showNoDataMessage(),o._finalizeNonBodyRowRendering([E]).then(function(){A()})):Promise.resolve().then(function(){A()})}o._updateSelectionStateFromEventDetailRemove(e,t)})},I.prototype._getRowsFromEventDetailRemove=function(e){var t=[];return e[I._CONST_KEYS].forEach(function(e){var o=this._getRowIdxForRowKey(e);if(void 0!==o){var i={key:e,index:o};t.push({row:i,rowIdx:o})}}.bind(this)),t},I.prototype._handleDataRowAdd=function(e){try{this._executeTableBodyRowsAdd(e)}catch(e){C.error(e)}finally{this._clearDataWaitingState()}},I.prototype._executeTableBodyRowsAdd=function(e){var t=e[I._CONST_KEYS];t&&t.size>0&&this._queueTask(function(){var t=this._getRowsFromEventDetailAdd(e);if(0!==t.length){var o=this._getLayoutManager();o.notifyTableUpdate(I._UPDATE._ROWS_ADDED);var i,l,n,s,a=!1,r=[],_=[],h=this._getTableBody();if(t.length>1){l=t.length;var d=!0;for(i=0;i<l;i++)0!==i&&t[i-1].rowIdx!==t[i].rowIdx-1&&(d=!1),_.push(t[i].rowIdx);if(d){for(n=document.createDocumentFragment(),l=t.length,i=0;i<l;i++)r.push(this._addSingleTableBodyRow(t[i].rowIdx,t[i].row,n,t[0].rowIdx));o.handleAfterRowsProcessed(n),null!=(s=this._getTableBodyRow(t[0].rowIdx))?h.insertBefore(n,s):this._appendElementToTableBody(n,h),a=!0}}if(!a)for(l=t.length,i=0;i<l;i++){var u=t[i].rowIdx;n=document.createDocumentFragment(),r.push(this._addSingleTableBodyRow(u,t[i].row,n,u)),o.handleAfterRowsProcessed(n),null!=(s=this._getTableBodyRow(u))?h.insertBefore(n,s):this._appendElementToTableBody(n,h)}if(this._clearCachedDomRowData(),this._refreshTableFooter(),0===this._scrollTop&&(1===t.length&&0===t[0].rowIdx||-1!==_.indexOf(0)))delete(null==this.options.scrollPosition?{}:this.options.scrollPosition).rowKey;return this._requiresDomScrollerRefresh&&this._registerDomScroller(),this._IsCustomElement()?this._animateVisibleRows(r,_,"add").then(function(){return this._syncActiveElement(),this._afterRowsRendered(h)}.bind(this)):(this._syncActiveElement(),this._afterRowsRendered(h))}this._requiresDomScrollerRefresh&&this._registerDomScroller()}.bind(this))},I.prototype._getRowsFromEventDetailAdd=function(e){var t=[],o=this._getData(),i=!this._isLoadMoreOnScroll()||b.isIterateAfterDoneNotAllowed(o),l=this._getLocalRowKeys(),n=l.length;if(!i&&0===n)return this._notifyAddOutOfViewport(),t;var s=b.getAddEventKeysResult(l,e,i),a=e[I._CONST_DATA],r=e[I._CONST_METADATA],_=[];e[I._CONST_KEYS].forEach(function(e){_.push(e)}),a instanceof Array||(a=[a]);var h=a.length;r instanceof Array||(r=[r]);var d,c=0;this._isPagingModelDataProvider()&&(c=o.getStartItemIndex()),o instanceof u.TableDataSourceAdapter&&(u.FlattenedTreeTableDataSource&&o.tableDataSource instanceof u.FlattenedTreeTableDataSource?d=o.tableDataSource:this._isPagingModelTableDataSource()&&u.FlattenedTreeTableDataSource&&o.tableDataSource.dataSource instanceof u.FlattenedTreeTableDataSource&&(d=o.tableDataSource.dataSource)),i||n+h===s.length||this._notifyAddOutOfViewport();for(var S=0;S<h;S++){var E=_[S],C=s.indexOf(E);if(-1!==C&&-1===l.indexOf(E)){var T;T=d&&d._getMetadata?d._getMetadata(C):r[S];var p={data:a[S],metadata:T,key:E,index:C+c};t.push({row:p,rowIdx:C})}}return t},I.prototype._notifyAddOutOfViewport=function(){this._noMoreData&&(this._animateOnFetch=!0,this._requiresDomScrollerRefresh=!0),this._noMoreData=!1},I.prototype._handleDataRowChange=function(e){try{this._executeTableBodyRowsChange(e)}catch(e){C.error(e)}finally{this._clearDataWaitingState()}},I.prototype._executeTableBodyRowsChange=function(e){this._queueTask(function(){this._updateSelectionStateFromEventDetailChange(e);var t=this._getRowsFromEventDetailChange(e);if(0!==t.length){this._getLayoutManager().notifyTableUpdate(I._UPDATE._ROW_REFRESH);for(var o=t.length,i=[],l=[],n=!1,s=0;s<o;s++){var a=t[s],r=this._getTableBodyRow(a.rowIdx);null!=r&&r!==document.activeElement&&r.contains(document.activeElement)&&(n=!0),r&&this._setTableBodyRowAttributes(t[s].row,r);var _=this._refreshTableBodyRow(a.rowIdx,a.row,null,null,null,!0);_&&(i.push(_),l.push(a.rowIdx))}return n&&this._getTable().focus(),this._refreshTableFooter(),this._IsCustomElement()?this._animateVisibleRows(i,l,"update").then(function(){return this._finalizeBodyRowRendering(i)}.bind(this)):this._finalizeBodyRowRendering(i)}}.bind(this))},I.prototype._getRowsFromEventDetailChange=function(e){var t=e[I._CONST_DATA],o=e[I._CONST_METADATA],i=[];e[I._CONST_KEYS].forEach(function(e){i.push(e)}),t instanceof Array||(t=[t]),o instanceof Array||(o=[o]);for(var l=[],n=t.length,s=0;s<n;s++){var a=this._getRowIdxForRowKey(i[s]);if(void 0!==a){var r={data:t[s],key:i[s],index:a,metadata:o[s]};l.push({row:r,rowIdx:a})}}return l},I.prototype._clearCachedDom=function(){this._clearCachedDomRowData(),this._clearDomCache()},I.prototype._clearCachedDomRowData=function(){this._cachedDomTableBodyRows=null,this._cachedDomTableBodyStickyRows=null},I.prototype._clearCachedStyling=function(){this._isGutterStartColumnEnabledCache=null,this._isGutterEndColumnEnabledCache=null},I.prototype._createContextMenuContainer=function(){var e=this._GetContextMenu(),t=!(this._isStickyLayoutEnabled()||!this._isTouchDevice())&&this._getRowSelectionMode()===I._OPTION_SELECTION_MODES._MULTIPLE;return!e&&(this._isTableSortable()||t||this._isTableColumnsResizable())&&(this._IsCustomElement()?(e=document.createElement("oj-menu")).setAttribute(I._DATA_OJ_BINDING_PROVIDER,"none"):(e=document.createElement(I.DOM_ELEMENT._UL),S(e).ojMenu()),e.style[I.CSS_PROP._DISPLAY]=I.CSS_VAL._NONE,e.setAttribute(I.DOM_ATTR._ID,this._getTableUID()+"_contextmenu"),this._getTableContainer().appendChild(e),this.option("contextMenu","#"+e.getAttribute(I.DOM_ATTR._ID),{_context:{internalSet:!0}}),this._defaultContextMenu=e),e},I.prototype._populateContextMenuItems=function(e,t){var o=!!this._isTouchDevice()&&this._getRowSelectionMode()===I._OPTION_SELECTION_MODES._MULTIPLE;if(!this._menuContainer)if(this._GetDefaultContextMenu()){if("redwood"===A.parseJSONFromFontFamily("oj-theme-json").behavior){if(this._isTableColumnsResizable()){let t=this._createContextMenuItem("resize",this._IsCustomElement());if(e.appendChild(t),this._isTableSortable()){let t=document.createElement(this._IsCustomElement()?"oj-option":"li");e.appendChild(t)}}if(this._isTableSortable()){let t=this._createContextMenuItem("sortAsc",this._IsCustomElement());e.appendChild(t);let o=this._createContextMenuItem("sortDsc",this._IsCustomElement());e.appendChild(o)}}else{if(this._isTableSortable()){let t=this._createContextMenuItem("sort",this._IsCustomElement());e.appendChild(t)}if(o){let t=this._createContextMenuItem("enableNonContiguousSelection",this._IsCustomElement());e.appendChild(t)}if(this._isTableColumnsResizable()){let t=this._createContextMenuItem("resize",this._IsCustomElement());e.appendChild(t)}}this._menuContainer=e,this._IsCustomElement()?(e.refresh(),e.addEventListener("ojAction",t)):(S(e).ojMenu("refresh"),S(e).on("ojselect",t))}else{var i=e.querySelectorAll("[data-oj-command]");if(i.length>0){var l,n,s;for(n=0;n<i.length;n++)"OJ-OPTION"!==i[n].tagName&&0!==i[n].getElementsByTagName(I.DOM_ELEMENT._A).length||(l=i[n].getAttribute(I._DATA_OJ_COMMAND).split("-"),s=this._createContextMenuItem(l[l.length-1],this._IsCustomElement()),"OJ-OPTION"===i[n].tagName?i[n].innerHTML=s.innerHTML:S(i[n]).replaceWith(s));this._menuContainer=e,S(e).data("oj-ojMenu")&&(this._IsCustomElement()?e.refresh():S(e).ojMenu("refresh")),this._IsCustomElement()?e.addEventListener("ojAction",t):S(e).on("ojselect",t)}}return e},I.prototype._createContextMenuItem=function(e,t){if("sort"===e){var o,i=this._createContextMenuListItem(e,t);return o=this._IsCustomElement()?document.createElement("oj-menu"):document.createElement(I.DOM_ELEMENT._UL),i.appendChild(o),o.appendChild(this._createContextMenuListItem("sortAsc",t)),o.appendChild(this._createContextMenuListItem("sortDsc",t)),i}if("sortAsc"===e)return this._createContextMenuListItem(e,t);if("sortDsc"===e)return this._createContextMenuListItem(e,t);if("enableNonContiguousSelection"===e)return this._createContextMenuListItem(e,t);if("disableNonContiguousSelection"===e)return this._createContextMenuListItem(e,t);if("resize"===e){return"redwood"===A.parseJSONFromFontFamily("oj-theme-json").behavior?this._createContextMenuResizeDialog(0):this._createContextMenuResizePopup(0),this._createContextMenuListItem(e,t)}return null},I.prototype._createContextMenuListItem=function(e,t){var o=document.createElement(t?"oj-option":"li");return o.setAttribute(I._DATA_OJ_COMMAND,"oj-table-"+e),o.appendChild(this._createContextMenuLabel(e,t)),o},I.prototype._createContextMenuLabel=function(e,t){var o=null;"sort"===e?o=this.getTranslatedString("labelSort"):"sortAsc"===e?o=this.getTranslatedString("labelSortAsc"):"sortDsc"===e?o=this.getTranslatedString("labelSortDsc"):"enableNonContiguousSelection"===e?o=this.getTranslatedString("labelEnableNonContiguousSelection"):"disableNonContiguousSelection"===e?o=this.getTranslatedString("labelDisableNonContiguousSelection"):"resize"===e&&(o=this.getTranslatedString("labelResizeColumn"));var i=document.createTextNode(o);if(t)return i;var l=document.createElement(I.DOM_ELEMENT._A);return l.setAttribute(I.DOM_ATTR._HREF,"#"),l.appendChild(i),l},I.prototype._createContextMenuResizePopup=function(e){e=Math.round(e);var t,o,i,l,n,s,a,r,_,h=this._getTableContainer(),d=this._getContextMenuResizePopup(),u=this._getTableUID(),c=this.getTranslatedString("labelResizePopupSpinner");function E(){d.setAttribute("id",u+"_resize_popup"),d.setAttribute(I._DATA_OJ_BINDING_PROVIDER,"none"),h.appendChild(d),i=document.createElement(I.DOM_ELEMENT._DIV),l=document.createElement(I.DOM_ELEMENT._DIV),(n=document.createElement(I.DOM_ELEMENT._DIV)).classList.add(I.CSS_CLASSES._TEXT_ALIGN_END),d.appendChild(i),d.appendChild(l),d.appendChild(n),(r=document.createElement("h6")).textContent=c,i.appendChild(r)}return this._IsCustomElement()?null==d?(d=document.createElement("oj-popup"),E(),(t=document.createElement("oj-input-number")).setAttribute("id",u+"_resize_popup_spinner"),(s=document.createElement("oj-button")).setAttribute("id",u+"_resize_popup_popupcancel"),s.style.margin="5px",s.textContent=this.getTranslatedString("labelResizePopupCancel"),(a=document.createElement("oj-button")).setAttribute("id",u+"_resize_popup_popupsubmit"),a.style.margin="5px",a.textContent=this.getTranslatedString("labelResizePopupSubmit"),l.appendChild(t),n.appendChild(a),n.appendChild(s),o=function(){a.disabled=!1,t.value=0,d.close()},s.addEventListener("click",o),a.addEventListener("click",this._handleContextMenuResizePopup.bind(this)),t.min=10,t.step=1,t.value=e,t.displayOptions={messages:["notewindow"]},t.userAssistanceDensity="compact",t.validators=[new O({pattern:I._VALIDATOR_PATTERN,messageDetail:this.getTranslatedString("msgColumnResizeWidthValidation")})],t.addEventListener("validChanged",function(e){"valid"===e.detail.value?a.disabled=!1:a.disabled=!0}),_={my:I._POSITION._START_TOP,at:I._POSITION._START_BOTTOM,collision:"flipfit"},d.setAttribute("position",JSON.stringify(_)),d.setAttribute("modality","modal"),this._cacheDomElement(u+"_resize_popup",d)):(t=document.getElementById(u+"_resize_popup_spinner")).value=e:null==d?(d=document.createElement(I.DOM_ELEMENT._DIV),E(),(t=document.createElement(I.DOM_ELEMENT._INPUT)).setAttribute("id",u+"_resize_popup_spinner"),(s=document.createElement(I.DOM_ELEMENT._BUTTON)).setAttribute("id",u+"_resize_popup_popupcancel"),s.style.margin="5px",(a=document.createElement(I.DOM_ELEMENT._BUTTON)).setAttribute("id",u+"_resize_popup_popupsubmit"),a.style.margin="5px",l.appendChild(t),n.appendChild(a),n.appendChild(s),S(a).ojButton({component:"ojButton",label:this.getTranslatedString("labelResizePopupSubmit")}),S(s).ojButton({component:"ojButton",label:this.getTranslatedString("labelResizePopupCancel")}),o=function(){S(a).ojButton({disabled:!1}),S(t).ojInputNumber({value:0}),S(d).ojPopup("close")},S(a).on("click",this._handleContextMenuResizePopup.bind(this)),S(s).on("click",o),S(t).ojInputNumber({component:"ojInputNumber",min:10,step:1,value:e,displayOptions:{messages:["notewindow"]},userAssistanceDensity:"compact",validators:[new O({pattern:I._VALIDATOR_PATTERN,messageDetail:this.getTranslatedString("msgColumnResizeWidthValidation")})]}),S(d).ojPopup({modality:"modal",position:{my:I._POSITION._START_TOP,at:I._POSITION._START_BOTTOM,collision:"flipfit"}}),S(t).on("change",function(){S(a).ojButton({disabled:!S(t).ojInputNumber("validate")})}),this._cacheDomElement(u+"_resize_popup",d)):(t=document.getElementById(u+"_resize_popup_spinner"),S(t).ojInputNumber("option","value",e)),d},I.prototype._createContextMenuResizeDialog=function(e){e=Math.round(e);let t=this._getTableContainer(),o=this._getContextMenuResizeDialog(),i=this._getTableUID();if(this._IsCustomElement())if(null==o){o=document.createElement("oj-dialog"),o.setAttribute("id",i+"_resize_dialog"),o.setAttribute(I._DATA_OJ_BINDING_PROVIDER,"none"),o.setAttribute("dialog-title",this.getTranslatedString("labelResizeColumnDialog")),t.appendChild(o);let l=document.createElement("div");l.setAttribute("slot","body");let n=document.createElement("oj-input-number");n.setAttribute("id",i+"_resize_column_width_input"),n.labelHint=this.getTranslatedString("labelColumnWidth"),n.min=10,n.step=1,n.value=e,n.displayOptions={messages:["notewindow"]},n.userAssistanceDensity="compact",n.validators=[new O({pattern:I._VALIDATOR_PATTERN,messageDetail:this.getTranslatedString("msgColumnResizeWidthValidation")})],l.appendChild(n);let s=document.createElement("div");s.setAttribute("slot","footer");let a=document.createElement("oj-button");a.setAttribute("id",i+"_resize_dialog_dialogcancel"),a.textContent=this.getTranslatedString("labelResizePopupCancel");let r=document.createElement("oj-button");r.setAttribute("id",i+"_resize_dialog_dialogapply"),r.chroming="callToAction",r.textContent=this.getTranslatedString("labelResizeDialogApply"),s.appendChild(a),s.appendChild(r),"phone"===p.getDeviceRenderMode()&&(o.classList.add(I.CSS_CLASSES._TABLE_RESIZE_DIALOG_MOBILE_CLASS),r.classList.add(I.CSS_CLASSES._BUTTON_SMALL_CLASS,I.CSS_CLASSES._SMALL_6_CLASS,I.CSS_CLASSES._SMALL_HOR_MARGIN_CLASS),a.classList.add(I.CSS_CLASSES._BUTTON_SMALL_CLASS,I.CSS_CLASSES._SMALL_6_CLASS,I.CSS_CLASSES._SMALL_HOR_MARGIN_CLASS),s.classList.add("oj-sm-justify-content-center")),n.addEventListener("validChanged",function(e){"valid"===e.detail.value?r.disabled=!1:r.disabled=!0}),o.appendChild(l),o.appendChild(s);let _=function(){r.disabled=!1,n.value=0,o.close()};a.addEventListener("click",_),r.addEventListener("click",this._handleContextMenuResizePopup.bind(this)),o.setAttribute("modality","modal"),this._cacheDomElement(i+"_resize_dialog",o)}else{document.getElementById(i+"_resize_column_width_input").value=e}else if(null==o){o=document.createElement(I.DOM_ELEMENT._DIV),o.setAttribute("id",i+"_resize_dialog"),o.setAttribute(I._DATA_OJ_BINDING_PROVIDER,"none"),"phone"===p.getDeviceRenderMode()&&o.classList.add(I.CSS_CLASSES._TABLE_RESIZE_DIALOG_MOBILE_CLASS),t.appendChild(o);let l=document.createElement("div");l.setAttribute("slot","body"),o.appendChild(l);let n=document.createElement(I.DOM_ELEMENT._INPUT);n.setAttribute("id",i+"_resize_column_width_input");let s=document.createElement(I.DOM_ELEMENT._BUTTON);s.setAttribute("id",i+"_resize_dialog_dialogcancel");let a=document.createElement(I.DOM_ELEMENT._BUTTON);a.setAttribute("id",i+"_resize_dialog_dialogapply");let r=document.createElement("div");r.setAttribute("slot","footer"),o.appendChild(r),l.appendChild(n),r.appendChild(a),r.appendChild(s),S(a).ojButton({component:"ojButton",chroming:"callToAction",label:this.getTranslatedString("labelResizeDialogApply")}),S(s).ojButton({component:"ojButton",label:this.getTranslatedString("labelResizePopupCancel")});let _=function(){S(a).ojButton({disabled:!1}),S(n).ojInputNumber({value:0}),S(o).ojDialog("close")};S(a).on("click",this._handleContextMenuResizePopup.bind(this)),S(s).on("click",_),S(n).ojInputNumber({component:"ojInputNumber",labelHint:this.getTranslatedString("labelColumnWidth"),min:10,step:1,value:e,displayOptions:{messages:["notewindow"]},userAssistanceDensity:"compact",validators:[new O({pattern:I._VALIDATOR_PATTERN,messageDetail:this.getTranslatedString("msgColumnResizeWidthValidation")})]}),S(o).ojDialog({dialogTitle:this.getTranslatedString("labelResizeColumnDialog"),modality:"modal"}),"phone"===p.getDeviceRenderMode()&&(o.classList.add(I.CSS_CLASSES._TABLE_RESIZE_DIALOG_MOBILE_CLASS),a.classList.add(I.CSS_CLASSES._BUTTON_SMALL_CLASS,I.CSS_CLASSES._SMALL_6_CLASS,I.CSS_CLASSES._SMALL_HOR_MARGIN_CLASS),s.classList.add(I.CSS_CLASSES._BUTTON_SMALL_CLASS,I.CSS_CLASSES._SMALL_6_CLASS,I.CSS_CLASSES._SMALL_HOR_MARGIN_CLASS),r.classList.add("oj-sm-justify-content-center")),S(n).on("change",function(){S(a).ojButton({disabled:!S(n).ojInputNumber("validate")})}),this._cacheDomElement(i+"_resize_dialog",o)}else{let t=document.getElementById(i+"_resize_column_width_input");S(t).ojInputNumber("option","value",e)}return o},I.prototype._createInitialTable=function(e,t){var o=this._getTable();return this._createTableContainer(),this._isStickyLayoutEnabled()&&(this._createTableScroller(),this._createTableColGroup()),e||this._createTableHeader(),this._createTableBody(),t||this._createTableFooter(),this._isStickyLayoutEnabled()||(this._createTableBodyLegacyWidthBuffer(),this._createTableLegacySizer()),this._createTableStatusMessage(),this._createTableStatusAccNotification(),this._createContextInfo(),this._createStateInfo(),this._createRowStateInfo(),this._createTableWidthContainer(),o},I.prototype._createTableBody=function(){var e=this._getTable(),t=document.createElement(I.DOM_ELEMENT._TBODY);return t.style[I.CSS_PROP._VISIBILITY]=I.CSS_VAL._HIDDEN,e.appendChild(t),this._cacheDomElement(I.CSS_CLASSES._TABLE_BODY_CLASS,t),t},I.prototype._createTableBodyScrollBuffer=function(){var e=this._getTableBodyScrollBuffer();return null==e&&((e=this._createTableBodyRow()).classList.add(I.CSS_CLASSES._TABLE_BUFFER_ROW_CLASS),this._getTableBody().appendChild(e),this._clearDomCache(I.CSS_CLASSES._TABLE_BUFFER_ROW_CLASS)),e},I.prototype._createTableBodyLegacyWidthBuffer=function(){var e=this._createTableBodyRow();return e.classList.add(I.CSS_CLASSES._TABLE_LEGACY_WIDTH_BUFFER_ROW_CLASS),this._getTableBody().appendChild(e),e},I.prototype._createTableLegacySizer=function(){var e=document.createElement(I.DOM_ELEMENT._DIV);return e.classList.add(I.CSS_CLASSES._TABLE_LEGACY_SIZER_CLASS),this._getTableContainer().appendChild(e),this._cacheDomElement(I.CSS_CLASSES._TABLE_LEGACY_SIZER_CLASS,e),e},I.prototype._appendElementToTableBody=function(e,t){var o=this._getTableBodyScrollBuffer();null!=o?t.insertBefore(e,o):t.appendChild(e)},I.prototype._createTableBodyCell=function(){return document.createElement(I.DOM_ELEMENT._TD)},I.prototype._createTableBodyDefaultSelector=function(e,t){var o=null;(o=document.createElement(I.DOM_ELEMENT._TD)).classList.add(I.CSS_CLASSES._TABLE_SELECTOR_CELL),this._isStickyLayoutEnabled()&&o.classList.add(I.CSS_CLASSES._TABLE_FROZEN_START),this._isVerticalGridEnabled()&&o.classList.add(I.CSS_CLASSES._TABLE_VGRID_LINES_CLASS),o.setAttribute(I.DOM_ATTR._ID,this._getTableUID()+":select:"+e);var i=document.createElement("oj-selector");var l;return i.id=this._getTableUID()+"_table_selector_"+e,this.options.selected.row.has(e)?i.selectedKeys=new y.KeySetImpl([e]):i.selectedKeys=new y.KeySetImpl,i.setAttribute(I._DATA_OJ_BINDING_PROVIDER,"none"),i.classList.add(I.CSS_CLASSES._TABLE_DATA_ROW_SELECTOR_CLASS),i.setAttribute("selection-mode","multiple"),i.rowKey=e,b.isIos()?(l=this.getTranslatedString(I._BUNDLE_KEY._LABEL_SELECT_ROW),i.setAttribute(I.DOM_ATTR._ARIA_LABEL,l)):(l=this._getAccSelectorString(null,t),i.setAttribute(I.DOM_ATTR._ARIA_LABELLEDBY,l)),i.addEventListener("selectedKeysChanged",this._selectedKeysChangedListener.bind(this)),o.appendChild(i),t.insertBefore(o,t.firstChild),o},I.prototype._createTableHeaderSelectorColumn=function(){var e=document.createElement(I.DOM_ELEMENT._TH);if(e.classList.add(I.CSS_CLASSES._COLUMN_HEADER_SELECTOR_CELL_CLASS),this._isStickyLayoutEnabled()&&e.classList.add(I.CSS_CLASSES._TABLE_FROZEN_START),this._isVerticalGridEnabled()&&e.classList.add(I.CSS_CLASSES._TABLE_VGRID_LINES_CLASS),e.setAttribute(I.DOM_ATTR._ID,this._getTableUID()+":selectAll"),this._isSelectAllControlVisible()){var t=document.createElement("oj-selector");t.selectedKeys=this.options.selected.row,t.setAttribute(I._DATA_OJ_BINDING_PROVIDER,"none"),t.classList.add(I.CSS_CLASSES._TABLE_HEADER_SELECTOR_CLASS),t.setAttribute("selection-mode","all"),t.setAttribute(I.DOM_ATTR._ARIA_LABEL,this.getTranslatedString(I._BUNDLE_KEY._LABEL_SELECT_ALL_ROWS)),t.addEventListener("selectedKeysChanged",this._selectedKeysChangedListener.bind(this)),e.appendChild(t)}return e},I.prototype._createTableFooterSelectorCell=function(){var e=this._createTableFooterCell();return e.classList.add(I.CSS_CLASSES._TABLE_FOOTER_SELECTOR_CELL_CLASS),this._isStickyLayoutEnabled()&&e.classList.add(I.CSS_CLASSES._TABLE_FROZEN_START),this._isVerticalGridEnabled()&&e.classList.add(I.CSS_CLASSES._TABLE_VGRID_LINES_CLASS),e.setAttribute(I.DOM_ATTR._ID,this._getTableUID()+":footerSelector"),e},I.prototype._createTableBodyMessageCell=function(e,t,o){var i=document.createElement(I.DOM_ELEMENT._TD);return this._isGutterStartColumnEnabled()&&(t+=1),this._isGutterEndColumnEnabled()&&(t+=1),this._isDefaultSelectorEnabled()&&(t+=1),i.setAttribute(I.DOM_ATTR._COLSPAN,t),i.classList.add(I.CSS_CLASSES._TABLE_BODY_MESSAGE_CLASS),i.appendChild(document.createTextNode(o)),e.appendChild(i),i},I.prototype._createTableBodyMessageRow=function(e,t){var o=this._getTableBody(),i=document.createElement(I.DOM_ELEMENT._TR);if(i.id=this.createSubId("messageRow"),i.classList.add(I.CSS_CLASSES._TABLE_BODY_MESSAGE_ROW_CLASS),this._isGutterStartColumnEnabled()){let e=this._createTableGutterCell("body","start");i.appendChild(e)}if(this._createTableBodyMessageCell(i,e,t),this._isGutterEndColumnEnabled()){let e=this._createTableGutterCell("body","end");i.appendChild(e)}return this._appendElementToTableBody(i,o),i},I.prototype._createTableBodyRow=function(){var e=document.createElement(I.DOM_ELEMENT._TR);return e._ojReportBusy=this._getTableBody(),e},I.prototype._getTouchAffordanceGlassPane=function(){var e=this._getTableContainer(),t=this._getTableElementsByClassName(e,I.CSS_CLASSES._TABLE_TOUCH_AFFORDANCE_GLASS_PANE_CLASS);return t.length>0?t[0]:null},I.prototype._createTouchAffordanceGlassPane=function(){var e=this._getTouchAffordanceGlassPane();if(!e){var t=this._getTableContainer();(e=document.createElement(I.DOM_ELEMENT._DIV)).classList.add(I.CSS_CLASSES._TABLE_TOUCH_AFFORDANCE_GLASS_PANE_CLASS),t.appendChild(e),this._refreshTouchAffordanceGlassPanePosition()}return e},I.prototype._createTableBodyRowTouchSelectionAffordance=function(e){var t=this._createTouchAffordanceGlassPane(),o=this._getTableBodyRowTouchSelectionAffordanceTop();if(!o){(o=document.createElement(I.DOM_ELEMENT._DIV)).classList.add(I.CSS_CLASSES._TABLE_DATA_ROW_TOUCH_SELECTION_AFFORDANCE_TOP_CLASS),o.classList.add(I.CSS_CLASSES._TABLE_DATA_ROW_TOUCH_SELECTION_AFFORDANCE_TOUCH_AREA_CLASS);var i=document.createElement(I.DOM_ELEMENT._DIV);i.classList.add(I.CSS_CLASSES._TABLE_DATA_ROW_TOUCH_SELECTION_AFFORDANCE_TOP_ICON_CLASS),i.setAttribute(I.DOM_ATTR._ROLE,"button"),i.setAttribute(I.DOM_ATTR._ARIA_LABEL,this.getTranslatedString("labelAccSelectionAffordanceTop")),o.appendChild(i),t.appendChild(o)}var l=this._getTableBodyRowTouchSelectionAffordanceBottom();if(!l){(l=document.createElement(I.DOM_ELEMENT._DIV)).classList.add(I.CSS_CLASSES._TABLE_DATA_ROW_TOUCH_SELECTION_AFFORDANCE_BOTTOM_CLASS),l.classList.add(I.CSS_CLASSES._TABLE_DATA_ROW_TOUCH_SELECTION_AFFORDANCE_TOUCH_AREA_CLASS);var n=document.createElement(I.DOM_ELEMENT._DIV);n.classList.add(I.CSS_CLASSES._TABLE_DATA_ROW_TOUCH_SELECTION_AFFORDANCE_BOTTOM_ICON_CLASS),n.setAttribute(I.DOM_ATTR._ROLE,"button"),n.setAttribute(I.DOM_ATTR._ARIA_LABEL,this.getTranslatedString("labelAccSelectionAffordanceBottom")),l.appendChild(n),t.appendChild(l)}this._moveTableBodyRowTouchSelectionAffordanceTop(e),this._moveTableBodyRowTouchSelectionAffordanceBottom(e)},I.prototype._createTableBottomSlot=function(){var e=this._getTableContainer(),t=document.createElement(I.DOM_ELEMENT._DIV);return t.classList.add(I.CSS_CLASSES._TABLE_BOTTOM_SLOT_CLASS),e.appendChild(t),this._cacheDomElement(I.CSS_CLASSES._TABLE_BOTTOM_SLOT_CLASS,t),t},I.prototype._createTableContainer=function(){var e=this.OuterWrapper;return e||(e=document.createElement(I.DOM_ELEMENT._DIV),this.element[0].parentNode.replaceChild(e,this.element[0]),e.insertBefore(this.element[0],e.firstChild)),this._cacheDomElement(I.CSS_CLASSES._TABLE_CONTAINER_CLASS,e),e.classList.add(I.CSS_CLASSES._TABLE_CLASS),e.classList.add(I.CSS_CLASSES._TABLE_CONTAINER_CLASS),e.classList.add(I.MARKER_STYLE_CLASSES._WIDGET),e},I.prototype._createTableScroller=function(){var e=document.createElement(I.DOM_ELEMENT._DIV);return e.classList.add(I.CSS_CLASSES._TABLE_SCROLLER_CLASS),e.setAttribute(I.DOM_ATTR._TABINDEX,"-1"),this.element[0].parentNode.replaceChild(e,this.element[0]),e.insertBefore(this.element[0],e.firstChild),e},I.prototype._createTableColGroup=function(){var e=document.createElement(I.DOM_ELEMENT._COLGROUP);e.classList.add(I.CSS_CLASSES._TABLE_COLGROUP_CLASS),this._cacheDomElement(I.CSS_CLASSES._TABLE_COLGROUP_CLASS,e);var t=this._getTableHeader();if(null!=t)return t.parentNode.insertBefore(e,t),e;var o=this._getTableBody();if(null!=o)return o.parentNode.insertBefore(e,o),e;var i=this._getTableFooter();return null!=i?(i.parentNode.insertBefore(e,i),e):(this._getTable().appendChild(e),e)},I.prototype._createTableFooter=function(){var e=this._getTable(),t=document.createElement(I.DOM_ELEMENT._TFOOT);t.style[I.CSS_PROP._VISIBILITY]=I.CSS_VAL._HIDDEN;var o=document.createElement(I.DOM_ELEMENT._TR);t.appendChild(o);var i=this._getTableBody();if(null!=i)i.parentNode.insertBefore(t,i.nextSibling);else{var l=this._getTableHeader();null!=l?l.parentNode.insertBefore(t,l.nextSibling):e.appendChild(t)}return this._cacheDomElement(I.CSS_CLASSES._TABLE_FOOTER_CLASS,t),t},I.prototype._createTableFooterCell=function(){return document.createElement(I.DOM_ELEMENT._TD)},I.prototype._createTableHeader=function(){var e=this._getTable(),t=document.createElement(I.DOM_ELEMENT._THEAD),o=document.createElement(I.DOM_ELEMENT._TR);t.appendChild(o);var i=this._getTableBody();if(null!=i)i.parentNode.insertBefore(t,i);else{var l=this._getTableFooter();null!=l?l.parentNode.insertBefore(t,l):e.appendChild(t)}return this._cacheDomElement(I.CSS_CLASSES._TABLE_HEADER_ROW_CLASS,o),this._cacheDomElement(I.CSS_CLASSES._TABLE_HEADER_CLASS,t),t},I.prototype._createTableHeaderColumn=function(e){var t=this._getColumnDefs()[e],o=document.createElement(I.DOM_ELEMENT._TH);this._styleTableHeaderColumn(e,o,!0),o.setAttribute("abbr",t.headerText),o.setAttribute(I.DOM_ATTR._TITLE,t.headerText),this._insertTableHeaderColumn(e,o);var i={columnIndex:e,headerContext:{component:this,parentElement:o}};return t.resizable===I._OPTION_ENABLED&&o.setAttribute("data-oj-resizable",I._OPTION_ENABLED),t.sortable===I._OPTION_ENABLED?(o.setAttribute("data-oj-sortable",I._OPTION_ENABLED),this._columnHeaderSortableIconRenderer(i)):this._columnHeaderDefaultRenderer(i),o},I.prototype._createTableSelectorCol=function(){var e=document.createElement(I.DOM_ELEMENT._COL);return e.classList.add(I.CSS_CLASSES._TABLE_COL_SELECTOR_CLASS),e},I.prototype._createTableCol=function(){var e=document.createElement(I.DOM_ELEMENT._COL);return e.classList.add(I.CSS_CLASSES._TABLE_COL_CLASS),e},I.prototype._createTableHeaderColumnDragImage=function(e){var t;if(1===e.length){(t=this._getTableHeaderColumn(e[0]).cloneNode(!0)).classList.remove(I.MARKER_STYLE_CLASSES._FOCUS),t.classList.remove(I.MARKER_STYLE_CLASSES._FOCUS_HIGHLIGHT),t.classList.remove(I.MARKER_STYLE_CLASSES._HOVER)}else{(t=document.createElement("th")).classList.add("oj-table-column-header-cell");var o=document.createElement(I.DOM_ELEMENT._DIV);o.classList.add(I.CSS_CLASSES._COLUMN_HEADER_CLASS),t.appendChild(o);var i=document.createElement(I.DOM_ELEMENT._DIV);i.classList.add(I.CSS_CLASSES._COLUMN_HEADER_TEXT_CLASS),i.textContent=e.length+" Items",o.appendChild(i)}return t.classList.add(I.CSS_CLASSES._COLUMN_HEADER_DRAG_IMAGE),t.style[I.CSS_PROP._POSITION]=I.CSS_VAL._ABSOLUTE,t.style[I.CSS_PROP._TOP]="0",t.style[I.CSS_PROP._LEFT]="-999em",t.style[I.CSS_PROP._ZINDEX]="-999",document.body.appendChild(t),t},I.prototype.createSubId=function(e){return[this._getRootElement().id,e].join(":")},I.prototype._createTableStatusMessage=function(){var e=this._getTableContainer(),t=document.createElement(I.DOM_ELEMENT._DIV);if(t.classList.add(I.CSS_CLASSES._TABLE_STATUS_MESSAGE_CLASS),t.style[I.CSS_PROP._DISPLAY]=I.CSS_VAL._NONE,!this._isSkeletonSupport()){var o=document.createElement(I.DOM_ELEMENT._DIV);o.classList.add(I.CSS_CLASSES._ICON_CLASS),o.classList.add(I.CSS_CLASSES._TABLE_LOADING_ICON_CLASS),o.setAttribute(I.DOM_ATTR._ARIA_LABEL,this.getTranslatedString(I._BUNDLE_KEY._MSG_FETCHING_DATA)),t.appendChild(o)}return e.appendChild(t),this._cacheDomElement(I.CSS_CLASSES._TABLE_STATUS_MESSAGE_CLASS,t),t},I.prototype._createTableWidthContainer=function(){var e=this._getTableContainer(),t=document.createElement(I.DOM_ELEMENT._DIV);return t.classList.add(I.CSS_CLASSES._TABLE_WIDTH_CONTAINER_CLASS),e.appendChild(t),this._tableWidthContainer=t,t},I.prototype._displayDragOverIndicatorColumn=function(e,t){this._getLayoutManager().displayDragOverIndicatorColumn(e,t)},I.prototype._displayDragOverIndicatorRow=function(e,t,o,i){this._removeDragOverIndicatorRow();var l=document.createElement(I.DOM_ELEMENT._TR);l.classList.add(I.CSS_CLASSES._TABLE_DATA_ROW_DRAG_INDICATOR_CLASS),"line"===o?l.classList.add("oj-table-body-row-drop-target"):null!=t&&(S(l).height(parseInt(S(t).height(),10)),i&&this._rowsDragged.forEach(function(e){e.classList.add("oj-table-row-drag-source-hide"),e.classList.remove(I.MARKER_STYLE_CLASSES._SELECTED),this._updateRowStateCellsClass(null,e,{selected:!1})}.bind(this)));var n=document.createElement(I.DOM_ELEMENT._TD),s=this._getColumnDefs().length;this._isDefaultSelectorEnabled()&&(s+=1),this._isGutterStartColumnEnabled()&&(s+=1),this._isGutterEndColumnEnabled()&&(s+=1),n.setAttribute(I.DOM_ATTR._COLSPAN,s),l.appendChild(n);var a=this._getTableBodyRow(e);null!=a?a.parentNode.insertBefore(l,a):(0===this._getTableBodyRows().length&&this._hideNoDataMessage(),this._getTableBody().appendChild(l))},I.prototype._getContextMenuElement=function(){return this._menuContainer},I.prototype._getContextMenuResizePopup=function(){var e=this._getTableUID()+"_resize_popup";if(!this._isCachedDomElement(e)){var t=document.getElementById(e);this._cacheDomElement(e,t)}return this._getCachedDomElement(e)},I.prototype._getContextMenuResizeDialog=function(){let e=this._getTableUID()+"_resize_dialog";if(!this._isCachedDomElement(e)){let t=document.getElementById(e);this._cacheDomElement(e,t)}return this._getCachedDomElement(e)},I.prototype._getElementColumnIdx=function(e){var t=this._getFirstAncestor(e,"."+I.CSS_CLASSES._TABLE_DATA_CELL_CLASS,!0);if(null!=t)return S(t.parentNode).children("."+I.CSS_CLASSES._TABLE_DATA_CELL_CLASS).index(t);var o=this._getFirstAncestor(e,"."+I.CSS_CLASSES._COLUMN_HEADER_CELL_CLASS,!0);if(null!=o)return S(o.parentNode).children("."+I.CSS_CLASSES._COLUMN_HEADER_CELL_CLASS).index(o);var i=this._getFirstAncestor(e,"."+I.CSS_CLASSES._TABLE_FOOTER_CELL_CLASS,!0);return null!=i?S(i.parentNode).children("."+I.CSS_CLASSES._TABLE_FOOTER_CELL_CLASS).index(i):null},I.prototype._getElementRowIdx=function(e){var t=this._getFirstAncestor(e,"."+I.CSS_CLASSES._TABLE_DATA_ROW_CLASS,!0);if(null!=t){var o=this._getTableBodyRows(),i=S(o).index(t);return i>-1?i:null}return null},I.prototype._getFirstAncestor=function(e,t,o){var i;if(null==e)return null;if(b.isIE()&&!Element.prototype.matches?e.msMatchesSelector(t):e.matches(t))return o&&!this._isTableOwned(e)?this._getFirstAncestor(e.parentNode,t,o):e;if(i=S(e).parents(t),o){for(var l=0;l<i.length;l++)if(this._isTableOwned(i[l]))return i[l];return null}return i.length>0?i[0]:null},I.prototype._getElementScrollLeft=function(e){return Math.abs(e.scrollLeft)},I.prototype._getTable=function(){return this.element[0]},I.prototype._getTableBody=function(){return this._getTableElementByClassName(I.CSS_CLASSES._TABLE_BODY_CLASS,!0)},I.prototype._getTableBodyScrollBuffer=function(){return this._getTableElementByClassName(I.CSS_CLASSES._TABLE_BUFFER_ROW_CLASS)},I.prototype._getTableBodyLegacyWidthBuffer=function(){return this._getTableElementByClassName(I.CSS_CLASSES._TABLE_LEGACY_WIDTH_BUFFER_ROW_CLASS)},I.prototype._getTableLegacySizer=function(){return this._getTableElementByClassName(I.CSS_CLASSES._TABLE_LEGACY_SIZER_CLASS,!0)},I.prototype._getTableBodyCell=function(e,t,o){var i=this._getTableBodyCells(e,o);return i.length>t?i[t]:null},I.prototype._getTableBodyLogicalCells=function(e,t){var o=this._getTableBodyCells(e,t);return this._getColspanLogicalElements(o)},I.prototype._getTableBodyCells=function(e,t){return t||(t=this._getTableBodyRow(e))?this._getTableElementsByClassName(t,I.CSS_CLASSES._TABLE_DATA_CELL_CLASS):[]},I.prototype._getTableBodyMessageCell=function(){var e=this._getTableBody();if(e){var t=this._getTableElementsByClassName(e,I.CSS_CLASSES._TABLE_BODY_MESSAGE_CLASS);if(t.length>0)return t[0]}return null},I.prototype._getTableBodyMessageRow=function(){var e=this._getTableBody();if(e){var t=this._getTableElementsByClassName(e,I.CSS_CLASSES._TABLE_BODY_MESSAGE_ROW_CLASS);if(t.length>0)return t[0]}return null},I.prototype._getTableNoDataRow=function(){var e=this._getTableBody();if(e){var t=this._getTableElementsByClassName(e,I.CSS_CLASSES._TABLE_NO_DATA_ROW_CLASS);if(t.length>0)return t[0]}return null},I.prototype._getRawTableBodyRow=function(e){var t=this._getTableBody();let o=this._isAddNewRowEnabled()?e+1:e;return this._isStickyLayoutEnabled()||(o+=1),t.children[o]},I.prototype._getTableBodyRow=function(e){var t=this._getTableBodyRows();return null!=e&&t.length>e?t[e]:null},I.prototype._getTableBodyRows=function(){if(!this._cachedDomTableBodyRows){var e=this._getTableBody();this._cachedDomTableBodyRows=null!=e?this._getTableElementsByClassName(e,I.CSS_CLASSES._TABLE_DATA_ROW_CLASS):[]}return this._cachedDomTableBodyRows},I.prototype._getTableBodyStickyRows=function(){if(!this._cachedDomTableBodyStickyRows){var e=this._getTableBody();this._cachedDomTableBodyStickyRows=null!=e?this._getTableElementsByClassName(e,I.CSS_CLASSES._TABLE_STICKY_ROW_CLASS):[]}return this._cachedDomTableBodyStickyRows},I.prototype._getTableTempSkeletonRow=function(){var e=this._getTableBody();return null!=e?this._getChildElementByClassName(e,I.CSS_CLASSES._TABLE_FETCH_SKELETON_ROW_CLASS):null},I.prototype._getTableBodyRowTouchSelectionAffordanceTop=function(){var e=this._getTableContainer(),t=this._getTableElementsByClassName(e,I.CSS_CLASSES._TABLE_DATA_ROW_TOUCH_SELECTION_AFFORDANCE_TOP_CLASS);return t.length>0?t[0]:null},I.prototype._getTableBodyRowTouchSelectionAffordanceBottom=function(){var e=this._getTableContainer(),t=this._getTableElementsByClassName(e,I.CSS_CLASSES._TABLE_DATA_ROW_TOUCH_SELECTION_AFFORDANCE_BOTTOM_CLASS);return t.length>0?t[0]:null},I.prototype._getTableBottomSlot=function(){return this._getTableElementByClassName(I.CSS_CLASSES._TABLE_BOTTOM_SLOT_CLASS,!0)},I.prototype._getTableContainer=function(){if(!this._isCachedDomElement(I.CSS_CLASSES._TABLE_CONTAINER_CLASS)){var e=this.element[0].parentNode;e.classList.contains(I.CSS_CLASSES._TABLE_SCROLLER_CLASS)?this._cacheDomElement(I.CSS_CLASSES._TABLE_CONTAINER_CLASS,e.parentNode):this._cacheDomElement(I.CSS_CLASSES._TABLE_CONTAINER_CLASS,e)}return this._getCachedDomElement(I.CSS_CLASSES._TABLE_CONTAINER_CLASS)},I.prototype._getTableScroller=function(){return this._getTableElementByClassName(I.CSS_CLASSES._TABLE_SCROLLER_CLASS,!0)},I.prototype._getTableFooter=function(){return this._getTableElementByClassName(I.CSS_CLASSES._TABLE_FOOTER_CLASS,!0)},I.prototype._getTableFooterCell=function(e){var t=this._getTableFooterCells();return null!=t&&t.length>e?t[e]:null},I.prototype._getTableFooterCells=function(){var e=this._getTableFooterRow(),t=null!=e?this._getTableElementsByClassName(e,I.CSS_CLASSES._TABLE_FOOTER_CELL_CLASS):null;return null!=t&&t.length>0?t:null},I.prototype._getTableFooterLogicalCells=function(){var e=this._getTableFooterCells();return e?this._getColspanLogicalElements(e):null},I.prototype._getTableFooterRow=function(){return this._getTableElementByClassName(I.CSS_CLASSES._TABLE_FOOTER_ROW_CLASS)},I.prototype._getTableHeader=function(){return this._getTableElementByClassName(I.CSS_CLASSES._TABLE_HEADER_CLASS,!0)},I.prototype._getTableHeaderColumn=function(e){var t=this._getTableHeaderColumns();return t&&t.length>e&&e>=0?t[e]:null},I.prototype._getTableCol=function(e){var t=this._getTableColGroup();if(null!=t){var o=this._getTableElementsByClassName(t,I.CSS_CLASSES._TABLE_COL_CLASS);if(o.length>0)return o[e]}return null},I.prototype._getTableHeaderColumns=function(){var e=this._getTableHeaderRow();if(null!=e){var t=this._getTableElementsByClassName(e,I.CSS_CLASSES._COLUMN_HEADER_CELL_CLASS);if(t.length>0)return t}return null},I.prototype._getTableHeaderLogicalColumns=function(){var e=this._getTableHeaderColumns();return e?this._getColspanLogicalElements(e):null},I.prototype._getTableHeaderRow=function(){return this._getTableElementByClassName(I.CSS_CLASSES._TABLE_HEADER_ROW_CLASS)},I.prototype._getPlaceHolderRow=function(){return this._getTable().getElementsByClassName(I.CSS_CLASSES._TABLE_ADD_ROW_PLACEHOLDER_CLASS)[0]},I.prototype._getPlaceHolderRowCells=function(e){var t=null!=e?e:this._getPlaceHolderRow();return null!=t?this._getTableElementsByTagName(t,I.DOM_ELEMENT._TD):[]},I.prototype._getPlaceHolderRowCell=function(e){var t=this._isDefaultSelectorEnabled()?e+1:e;this._isGutterStartColumnEnabled()&&(t+=1);var o=this._getPlaceHolderRowCells();return o.length>t&&t>=0?o[t]:null},I.prototype._getTableColGroup=function(){return this._getTableElementByClassName(I.CSS_CLASSES._TABLE_COLGROUP_CLASS,!0)},I.prototype._getTableId=function(){if(!this._tableId){var e=this._IsCustomElement()?this._getTableContainer():this._getTable();this._tableId=e.getAttribute(I.DOM_ATTR._ID)}return this._tableId},I.prototype._getTableStatusMessage=function(){return this._getTableElementByClassName(I.CSS_CLASSES._TABLE_STATUS_MESSAGE_CLASS,!0)},I.prototype._getTableUID=function(){return this._tableUID||(null!=this._getTableId()?this._tableUID=this._getTableId():this._tableUID=R.ElementUtils.getUniqueId()+"_table"),this._tableUID},I.prototype._hashCode=function(e){if(null==e)return 0;"string"!==S.type(e)&&(e=e.toString());var t=0;if(0===e.length)return t;for(var o=e.length,i=0;i<o;i++){t=(t<<5)-t+e.charCodeAt(i),t&=t}return t},I.prototype._insertTableBodyCell=function(e,t,o,i,l,n,s){if(this._setTableBodyCellAttributes(e,t,o,i,l),s)return n.appendChild(l),l;if(0===i)n.insertBefore(l,n.firstChild);else{var a=this._getTableElementsByClassName(n,I.CSS_CLASSES._TABLE_DATA_CELL_CLASS);if(a.length>=i){var r=a[i-1];r.parentNode.insertBefore(l,r.nextSibling)}else n.appendChild(l)}return l},I.prototype._insertTableBodyRow=function(e,t,o){if(null==o){var i=this._getTableBody(),l=this._getTableBodyRow(e);null!=l?i.insertBefore(t,l):this._appendElementToTableBody(t,i)}else o.appendChild(t);this._clearCachedDomRowData()},I.prototype._insertTableFooterCell=function(e,t){var o=this._getTableFooterRow(),i=this._getTableElementsByClassName(o,I.CSS_CLASSES._TABLE_FOOTER_CELL_CLASS);if(this._setTableFooterColumnAttributes(e,t),0===e)o.insertBefore(t,o.firstChild);else if(o.length>=e){var l=i[e-1];l.parentNode.insertBefore(t,l.nextSibling)}else o.appendChild(t);return t},I.prototype._insertTableHeaderColumn=function(e,t){var o=this._getTableHeaderRow(),i=this._getTableHeaderColumns();this._setTableHeaderColumnAttributes(e,t);var l=this._getTableHeaderColumn(e);if(l)S(l).replaceWith(S(t));else if(0!==e&&i&&i.length>=e){var n=i[e-1];n.parentNode.insertBefore(t,n.nextSibling)}else o.appendChild(t)},I.prototype._moveTableBodyRowTouchSelectionAffordanceTop=function(e){var t=this._getTableBodyRowTouchSelectionAffordanceTop();if(null!=t){null!=e?(S(t).data("rowIdx",e),S(t.children[0]).data("rowIdx",e)):e=S(t).data("rowIdx");var o=this._getLayoutManager().getScroller(),i=this._getTableBodyRow(e).getBoundingClientRect(),l=this._getTouchAffordanceGlassPane().getBoundingClientRect();t.style[I.CSS_PROP._TOP]=i.top-l.top-t.clientHeight/2+I.CSS_VAL._PX,t.style[I.CSS_PROP._LEFT]=o.clientWidth/2+I.CSS_VAL._PX}},I.prototype._moveTableBodyRowTouchSelectionAffordanceBottom=function(e){var t=this._getTableBodyRowTouchSelectionAffordanceBottom();if(null!=t){null!=e?(S(t).data("rowIdx",e),S(t.children[0]).data("rowIdx",e)):e=S(t).data("rowIdx");var o=this._getLayoutManager().getScroller(),i=this._getTableBodyRow(e).getBoundingClientRect(),l=this._getTouchAffordanceGlassPane().getBoundingClientRect();t.style[I.CSS_PROP._TOP]=i.top-l.top+i.height-t.clientHeight/2+I.CSS_VAL._PX,t.style[I.CSS_PROP._LEFT]=o.clientWidth/2+I.CSS_VAL._PX}},I.prototype._moveTableHeaderColumn=function(e,t,o){var i=[],l=[],n=[],s=[],a=null,r=null,_=!1;t===this._getColumnDefs().length&&(t-=1,_=!0);var h=this._getTableHeaderColumn(t),d=this._getTableFooterCell(t),u=this._getPlaceHolderRowCell(t);for(let t=0;t<e.length;t++){let o=e[t];i[t]=this._getTableHeaderColumn(o),l[t]=this._getTableFooterCell(o),this._isAddNewRowEnabled()&&(s[t]=this._getPlaceHolderRowCell(o))}for(let t=0;t<e.length;t++)null!=i[t]&&(r=i[t].getAttribute(I.DOM_ATTR._COLSPAN),null==h||null!=r&&1!==r||(_?(h.parentNode.insertBefore(i[t],h.nextSibling),h=i[t]):h.parentNode.insertBefore(i[t],h))),null!=l[t]&&(r=l[t].getAttribute(I.DOM_ATTR._COLSPAN),null==d||null!=r&&1!==r||(_?(d.parentNode.insertBefore(l[t],d.nextSibling),d=l[t]):d.parentNode.insertBefore(l[t],d))),null!=s[t]&&(r=s[t].getAttribute(I.DOM_ATTR._COLSPAN),null==u||null!=r&&1!==r||(_?(u.parentNode.insertBefore(s[t],u.nextSibling),u=s[t]):u.parentNode.insertBefore(s[t],u)));var c=this._getTableBodyRows();for(let o=0;o<c.length;o++){for(let t=0;t<e.length;t++)n[t]=this._getTableBodyCell(o,e[t],null);a=this._getTableBodyCell(o,t,null);for(let t=0;t<e.length;t++)null!=n[t]&&(r=n[t].getAttribute(I.DOM_ATTR._COLSPAN),null==a||null!=r&&1!==r||(_?(a.parentNode.insertBefore(n[t],a.nextSibling),a=n[t]):a.parentNode.insertBefore(n[t],a)))}var E=[],C=this.options.columns.length;for(let e=0;e<C;e++)E[e]=S.extend({},{},this.options.columns[e]);var T=_?t:t-1,p=[],g=[],A=[],f=e.reverse();if(!this._columnsDestMap){this._columnsDestMap=[];for(let e=0;e<E.length;e++)this._columnsDestMap[e]=e}return f.forEach(function(e){e<=T&&(T-=1),p.unshift(E.splice(e,1)[0]),g.unshift(this._columnDefArray.splice(e,1)[0]),A.unshift(this._columnsDestMap.splice(e,1)[0])}.bind(this)),E.splice(T+1,0,...p),this._columnDefArray.splice(T+1,0,...g),this._columnsDestMap.splice(T+1,0,...A),this.option("columns",E,{_context:{writeback:!0,originalEvent:o,internalSet:!0}}),this._queueTask(function(){this._getLayoutManager().notifyTableUpdate(I._UPDATE._COL_REORDER)}.bind(this)),this._columnsDestMap},I.prototype._refreshContextMenu=function(){var e=this._menuContainer;if(e)for(var t=e.querySelectorAll("[data-oj-command]"),o=0;o<t.length;o++){var i=S(t[o]).children(I.DOM_ELEMENT._A);if(0===i.length&&"OJ-OPTION"===t[o].tagName&&(i=S(t[o])),i.length>0){var l,n=t[o].getAttribute(I._DATA_OJ_COMMAND).split("-");"sort"===(n=n[n.length-1])?l=this.getTranslatedString("labelSort"):"sortAsc"===n?l=this.getTranslatedString("labelSortAsc"):"sortDsc"===n?l=this.getTranslatedString("labelSortDsc"):"resize"===n&&(l=this.getTranslatedString("labelResizeColumn")),i.contents().filter(function(){return 3===this.nodeType})[0].nodeValue=l}}},I.prototype._removeDragOverIndicatorColumn=function(){this._getLayoutManager().removeDragOverIndicatorColumn()},I.prototype._removeDragOverIndicatorRow=function(){var e,t=this._getTableBody(),o=this._getTableElementsByClassName(t,I.CSS_CLASSES._TABLE_DATA_ROW_DRAG_INDICATOR_CLASS),i=o.length;for(e=0;e<i;e++)S(o[e]).remove();0===this._getTableBodyRows().length&&this._showNoDataMessage()},I.prototype._removeTableBodyRow=function(e,t){var o;null!=(o=null!=t?t:this._getTableBodyRow(e))&&(f.subtreeDetached(o),(this._hasCellTemplate||this._hasRowTemplate)&&this._cleanTemplateNodes(o),S(o).remove(),this._clearCachedDomRowData())},I.prototype._removeAllTableBodyRows=function(){var e=this._getTableBodyRows();if(e.length>0){var t=this._getTableBody();if(null!=t){f.subtreeDetached(t);for(var o=0;o<e.length;o++)(this._hasCellTemplate||this._hasRowTemplate)&&this._cleanTemplateNodes(e[o]),S(e[o]).remove();(this._hasCellTemplate||this._hasRowTemplate)&&(this._hasCellTemplate=!1,this._hasRowTemplate=!1,this._registerDomEventListeners())}this._clearCachedDomRowData()}},I.prototype._removeTableBodyRowTouchSelectionAffordance=function(){for(var e=this._getTableContainer(),t=this._getTableElementsByClassName(e,I.CSS_CLASSES._TABLE_DATA_ROW_TOUCH_SELECTION_AFFORDANCE_TOUCH_AREA_CLASS),o=0;o<t.length;o++)S(t[o]).remove()},I.prototype._setTableBodyCellAttributes=function(e,t,o,i,l){var n=l.getAttribute(I.DOM_ATTR._ID);if(!(null!=n&&n.length>0)&&null!=this._getColumnDefs()[i]){var s=null!=t?t.toString():e.toString(),a=null==o?this._hashCode(s):o;n=this._getTableUID()+":"+a+"_"+i,l.setAttribute(I.DOM_ATTR._ID,n)}},I.prototype._setTableBodyRowAttributes=function(e,t){t[I._ROW_ITEM_EXPANDO]=e},I.prototype._setTableHeaderColumnAttributes=function(e,t){var o=this._getColumnDefs()[e];t.getAttribute(I.DOM_ATTR._ID)||t.setAttribute(I.DOM_ATTR._ID,this._getTableUID()+":"+o.id)},I.prototype._setTableFooterColumnAttributes=function(e,t){var o=this._getColumnDefs()[e];t.getAttribute(I.DOM_ATTR._ID)||t.setAttribute(I.DOM_ATTR._ID,this._getTableUID()+":"+o.id+":ftr")},I.prototype._setTableColumnCellsClass=function(e,t,o){var i,l=this._getTableBodyRows();if(l.length>0)if(null===e){var n=null,s=this._getTableBody();if(null!=(n=t?this._getTableElementsByTagName(s,I.DOM_ELEMENT._TD):this._getTableElementsByClassName(s,o))&&n.length>0){var a=n.length;for(i=0;i<a;i++)t?n[i].classList.add(o):n[i].classList.remove(o)}}else{var r=l.length;for(i=0;i<r;i++){var _=this._getTableBodyCell(i,e,null);t?_.classList.add(o):_.classList.remove(o)}}},I.prototype._setTableBodyMessage=function(e){var t=this._getTableBodyMessageCell();S(t).empty(),t.appendChild(document.createTextNode(e))},I.prototype._styleInitialTable=function(){var e=this._getTable(),t=this._getTableElementsByTagName(e,I.DOM_ELEMENT._THEAD);t=t.length>0?t[0]:null;var o=this._getTableElementsByTagName(e,I.DOM_ELEMENT._TFOOT);o=o.length>0?o[0]:null;var i=this._getTableElementsByTagName(e,I.DOM_ELEMENT._TBODY);if(i=i.length>0?i[0]:null,-1!==parseInt(this._getRootElement().getAttribute(I.DOM_ATTR._TABINDEX),10))e.setAttribute(I.DOM_ATTR._TABINDEX,"0"),this._focusable({element:e,applyHighlight:!0,setupHandlers:this._focusSetupHandlers.bind(this)});else{e.setAttribute(I.DOM_ATTR._TABINDEX,"-1");var l=function(){};this._focusSetupHandlers(l,l)}e.setAttribute(I.DOM_ATTR._ARIA_LABELLEDBY,this._getTableContainer().id),this._styleTableHeader(t),this._styleTableFooter(o),this._styleTableBody(i),this._styleTableContainer(this._getTableContainer())},I.prototype._styleTableBody=function(e){e.classList.add(I.CSS_CLASSES._TABLE_BODY_CLASS),e.setAttribute(f._OJ_CONTAINER_ATTR,this.widgetName),e.setAttribute(T._OJ_CONTEXT_ATTRIBUTE,"")},I.prototype._styleTableBodyCell=function(e,t,o){var i=this._getColumnDefs()[e];!o&&t.classList.contains(I.CSS_CLASSES._TABLE_DATA_CELL_CLASS)||(t.classList.add(I.CSS_CLASSES._TABLE_DATA_CELL_CLASS),t.classList.add(I.CSS_CLASSES._TABLE_DATE_CELL_FORM_CONTROL_CLASS));var l=t.getAttribute(I.DOM_ATTR._STYLE)||{};if(null==i||null==i.style||!o&&l===i.style||b.applyMergedInlineStyles(t,l,i.style),null==i||null==i.className||!o&&S(t).hasClass(i.className)||S(t).addClass(i.className),!this._isVerticalGridEnabled()||!o&&t.classList.contains(I.CSS_CLASSES._TABLE_VGRID_LINES_CLASS)||t.classList.add(I.CSS_CLASSES._TABLE_VGRID_LINES_CLASS),this._isStickyLayoutEnabled()){var n=null!=i?i.frozenEdge:null;n===I._OPTION_FROZEN_EDGE._START?(t.classList.add(I.CSS_CLASSES._TABLE_FROZEN_START),t.classList.remove(I.CSS_CLASSES._TABLE_FROZEN_END)):n===I._OPTION_FROZEN_EDGE._END?(t.classList.add(I.CSS_CLASSES._TABLE_FROZEN_END),t.classList.remove(I.CSS_CLASSES._TABLE_FROZEN_START)):(t.classList.remove(I.CSS_CLASSES._TABLE_FROZEN_END),t.classList.remove(I.CSS_CLASSES._TABLE_FROZEN_START))}},I.prototype._styleTableAddRowCell=function(e,t){var o=this._getColumnDefs()[e],i=null!=o?o.frozenEdge:null;i===I._OPTION_FROZEN_EDGE._START?(t.classList.add(I.CSS_CLASSES._TABLE_FROZEN_START),t.classList.remove(I.CSS_CLASSES._TABLE_FROZEN_END)):i===I._OPTION_FROZEN_EDGE._END?(t.classList.add(I.CSS_CLASSES._TABLE_FROZEN_END),t.classList.remove(I.CSS_CLASSES._TABLE_FROZEN_START)):(t.classList.remove(I.CSS_CLASSES._TABLE_FROZEN_END),t.classList.remove(I.CSS_CLASSES._TABLE_FROZEN_START)),this._isVerticalGridEnabled()&&t.classList.add(I.CSS_CLASSES._TABLE_VGRID_LINES_CLASS)},I.prototype._styleTableBodyRow=function(e,t){!t&&e.classList.contains(I.CSS_CLASSES._TABLE_DATA_ROW_CLASS)||e.classList.add(I.CSS_CLASSES._TABLE_DATA_ROW_CLASS),this._invokeRowStickyCallback(e[I._ROW_ITEM_EXPANDO])===I._CONST_ON&&e.classList.add(I.CSS_CLASSES._TABLE_STICKY_ROW_CLASS)},I.prototype._styleTableContainer=function(e){this.options.display===I._OPTION_DISPLAY._GRID?e.classList.add(I.CSS_CLASSES._TABLE_COMPACT_CLASS):e.classList.remove(I.CSS_CLASSES._TABLE_COMPACT_CLASS);var t=this.options.editMode;if(null!=t&&t!==I._OPTION_EDIT_MODE._NONE?e.classList.add(I.CSS_CLASSES._TABLE_EDIT_CLASS):e.classList.remove(I.CSS_CLASSES._TABLE_EDIT_CLASS),this._isHorizontalGridEnabled()?e.classList.add(I.CSS_CLASSES._TABLE_HGRID_CLASS):e.classList.remove(I.CSS_CLASSES._TABLE_HGRID_CLASS),this._isStickyLayoutEnabled()?e.classList.add(I.CSS_CLASSES._TABLE_STICKY_CLASS):e.classList.remove(I.CSS_CLASSES._TABLE_STICKY_CLASS),this._isAddNewRowEnabled()?e.classList.add(I.CSS_CLASSES._TABLE_ADD_ROW_CLASS):e.classList.remove(I.CSS_CLASSES._TABLE_ADD_ROW_CLASS),this._isExternalScrollEnabled()){if(e.classList.add(I.CSS_CLASSES._TABLE_EXTERNAL_SCROLL_CLASS),!this._isTableHeaderless()){var o="0";null!=this.options.scrollPolicyOptions.scrollerOffsetTop&&(o=this.options.scrollPolicyOptions.scrollerOffsetTop),this._updateHeaderTop(o)}if(!this._isTableFooterless()){var i="0";null!=this.options.scrollPolicyOptions.scrollerOffsetBottom&&(i=this.options.scrollPolicyOptions.scrollerOffsetBottom),this._updateFooterBottom(i)}}else this._isStickyLayoutEnabled()&&(e.classList.remove(I.CSS_CLASSES._TABLE_EXTERNAL_SCROLL_CLASS),this._isTableHeaderless()||this._updateHeaderTop(""),this._isTableFooterless()||this._updateFooterBottom(""));this._getRowSelectionMode()===I._OPTION_SELECTION_MODES._MULTIPLE?e.classList.add(I.CSS_CLASSES._TABLE_MULTI_ROW_SELECT_CLASS):e.classList.remove(I.CSS_CLASSES._TABLE_MULTI_ROW_SELECT_CLASS)},I.prototype._styleTableFooter=function(e){if(e){e.classList.add(I.CSS_CLASSES._TABLE_FOOTER_CLASS);var t=this._getTableElementsByTagName(e,I.DOM_ELEMENT._TR)[0];t.classList.add(I.CSS_CLASSES._TABLE_FOOTER_ROW_CLASS),t.setAttribute(T._OJ_CONTEXT_ATTRIBUTE,"")}},I.prototype._styleTableFooterCell=function(e,t){var o=this._getColumnDefs()[e],i=t.getAttribute(I.DOM_ATTR._STYLE)||{};null!=o.footerStyle&&i!==o.footerStyle&&b.applyMergedInlineStyles(t,i,o.footerStyle),t.classList.contains(I.CSS_CLASSES._TABLE_FOOTER_CELL_CLASS)||t.classList.add(I.CSS_CLASSES._TABLE_FOOTER_CELL_CLASS),this._isVerticalGridEnabled()&&!t.classList.contains(I.CSS_CLASSES._TABLE_VGRID_LINES_CLASS)&&t.classList.add(I.CSS_CLASSES._TABLE_VGRID_LINES_CLASS),o.footerClassName&&S(t).addClass(o.footerClassName),this._isStickyLayoutEnabled()&&(o.frozenEdge===I._OPTION_FROZEN_EDGE._START?(t.classList.add(I.CSS_CLASSES._TABLE_FROZEN_START),t.classList.remove(I.CSS_CLASSES._TABLE_FROZEN_END)):o.frozenEdge===I._OPTION_FROZEN_EDGE._END?(t.classList.add(I.CSS_CLASSES._TABLE_FROZEN_END),t.classList.remove(I.CSS_CLASSES._TABLE_FROZEN_START)):(t.classList.remove(I.CSS_CLASSES._TABLE_FROZEN_END),t.classList.remove(I.CSS_CLASSES._TABLE_FROZEN_START)))},I.prototype._styleTableHeader=function(e){if(e){e.classList.add(I.CSS_CLASSES._TABLE_HEADER_CLASS),e.style[I.CSS_PROP._DISPLAY]="table-header-group";var t=this._getTableElementsByTagName(e,I.DOM_ELEMENT._TR)[0];t.classList.add(I.CSS_CLASSES._TABLE_HEADER_ROW_CLASS),t.style[I.CSS_PROP._POSITION]=I.CSS_VAL._RELATIVE,t.setAttribute(T._OJ_CONTEXT_ATTRIBUTE,"")}},I.prototype._styleTableHeaderColumn=function(e,t,o){var i=this._getColumnDefs()[e];!o&&t.classList.contains(I.CSS_CLASSES._COLUMN_HEADER_CELL_CLASS)||t.classList.add(I.CSS_CLASSES._COLUMN_HEADER_CELL_CLASS),i.sortable===I._OPTION_ENABLED&&t.classList.add(I.CSS_CLASSES._TABLE_SORT_CLASS),!0===i.showRequired&&this._isStickyLayoutEnabled()&&t.classList.add(I.CSS_CLASSES._TABLE_SHOW_REQUIRED_CLASS),this._isVerticalGridEnabled()&&(!o&&t.classList.contains(I.CSS_CLASSES._TABLE_VGRID_LINES_CLASS)||t.classList.add(I.CSS_CLASSES._TABLE_VGRID_LINES_CLASS));var l=t.getAttribute(I.DOM_ATTR._STYLE)||{};null==i.headerStyle||!o&&l===i.headerStyle||b.applyMergedInlineStyles(t,l,i.headerStyle),null==i.headerClassName||!o&&S(t).hasClass(i.headerClassName)||S(t).addClass(i.headerClassName),this._isStickyLayoutEnabled()&&(i.frozenEdge===I._OPTION_FROZEN_EDGE._START?(t.classList.add(I.CSS_CLASSES._TABLE_FROZEN_START),t.classList.remove(I.CSS_CLASSES._TABLE_FROZEN_END)):i.frozenEdge===I._OPTION_FROZEN_EDGE._END?(t.classList.add(I.CSS_CLASSES._TABLE_FROZEN_END),t.classList.remove(I.CSS_CLASSES._TABLE_FROZEN_START)):(t.classList.remove(I.CSS_CLASSES._TABLE_FROZEN_END),t.classList.remove(I.CSS_CLASSES._TABLE_FROZEN_START)))},I.prototype._getColspanLogicalElements=function(e){for(var t=0,o=[],i=e.length,l=0;l<i;l++){var n=e[l].getAttribute(I.DOM_ATTR._COLSPAN);if(null!=n){n=parseInt(n,10);for(var s=0;s<n;s++)o[t+s]=e[l];t+=n}else o[t]=e[l],t+=1}return o},I.prototype._isHorizontalGridEnabled=function(){if(this.options.horizontalGridVisible===I._OPTION_ENABLED)return!0;if(this.options.horizontalGridVisible===I._OPTION_AUTO){if(this.options.display===I._OPTION_DISPLAY._GRID)return!0;if("enabled"===this._getDefaultOptions().horizontalGridVisible)return!0}return!1},I.prototype._isSelectAllControlVisible=function(){return!(!this._isDefaultSelectorEnabled()||"hidden"===this.options.selectAllControl)},I.prototype._isVerticalGridEnabled=function(){return this.options.verticalGridVisible===I._OPTION_ENABLED||this.options.verticalGridVisible===I._OPTION_AUTO&&this.options.display===I._OPTION_DISPLAY._GRID},I.prototype._refreshTouchAffordanceGlassPanePosition=function(){var e=this._getTouchAffordanceGlassPane();if(e){var t=this._getLayoutManager().getScroller().getBoundingClientRect(),o=this._getTableContainer().getBoundingClientRect();e.style[I.CSS_PROP._TOP]=t.top-o.top+I.CSS_VAL._PX,e.style[I.CSS_PROP._BOTTOM]=t.bottom-o.bottom+I.CSS_VAL._PX,this._moveTableBodyRowTouchSelectionAffordanceTop(),this._moveTableBodyRowTouchSelectionAffordanceBottom()}},I.prototype._refreshTableStatusPosition=function(e){var t=this._getTableContainer(),o=t.clientHeight,i=this._getTableStatusMessage(),l=0,n=o,s=this._getTableHeader();if(null!=s){var a=s.offsetHeight;l=a,n-=a}var r=this._getTableFooter();null!=r&&(n-=r.offsetHeight);var _=this._getTableBottomSlot();if(null!=_&&(n-=_.offsetHeight),this._isSkeletonSupport()){var h=0,d=this._getDefaultSkeletonDimension();d.width>0&&d.height>0&&(h=Math.max(1,Math.ceil(n/d.height)));for(var u=0;u<h;u++)i.appendChild(this._createSkeletonRow());this._skeletonFadeInEndListener=function(){i.classList.remove(I.CSS_CLASSES._ANIMATION_SKELETON_FADE_IN_CLASS),i.querySelectorAll(".oj-table-skeleton").forEach(function(e){e.classList.add("oj-animation-skeleton")}),i.removeEventListener("animationend",this._skeletonFadeInEndListener)}.bind(this),i.addEventListener("animationend",this._skeletonFadeInEndListener),i.classList.add(I.CSS_CLASSES._ANIMATION_SKELETON_FADE_IN_CLASS)}else n<=40&&(l=0,n=o);if(i.style[I.CSS_PROP._TOP]=l+I.CSS_VAL._PX,i.style[I.CSS_PROP._HEIGHT]=n+I.CSS_VAL._PX,i.style[I.CSS_PROP._WIDTH]=t.clientWidth+I.CSS_VAL._PX,e&&(i.style[I.CSS_PROP._DISPLAY]=I.CSS_VAL._INLINE,this._statusMessageShown=!0),!this._isSkeletonSupport()){var c=i.children[0];c.style[I.CSS_PROP._TOP]=(n-c.offsetHeight)/2+I.CSS_VAL._PX}},I.prototype._createSkeletonRow=function(){var e=document.createElement("div");e.className=I.CSS_CLASSES._TABLE_SKELETON_CONTAINER_CLASS;var t=document.createElement("div");return t.className=I.CSS_CLASSES._TABLE_SKELETON_CLASS,e.appendChild(t),e},I.prototype._getDefaultSkeletonDimension=function(){if(null==this._defaultSkeletonDim){var e=this._getTableContainer(),t=this._createSkeletonRow();t.style.visibility="hidden",t.style.display="block",e.appendChild(t);var o={width:t.offsetWidth,height:t.offsetHeight};return e.removeChild(t),o.height>0&&o.width>0&&(this._defaultSkeletonDim=o),o}return this._defaultSkeletonDim},I.prototype._cacheDomElement=function(e,t){this._domCache||(this._domCache={}),this._domCache[e]=t},I.prototype._clearDomCache=function(e){e&&this._domCache?delete this._domCache[e]:this._domCache={}},I.prototype._getCachedDomElement=function(e){return this._domCache?this._domCache[e]:null},I.prototype._isCachedDomElement=function(e){return this._domCache||(this._domCache={}),-1!==Object.keys(this._domCache).indexOf(e)},I.prototype._getTableElementByClassName=function(e,t){if(!this._isCachedDomElement(e)){var o=this._getTableContainer();if(o)if(this._cacheDomElement(e,null),t){if(this._cacheDomElement(e,this._getChildElementByClassName(o,e)),null==this._getCachedDomElement(e)){var i=this._getTable();this._cacheDomElement(e,this._getChildElementByClassName(i,e))}}else{var l=this._getTableElementsByClassName(o,e);l.length>0&&this._cacheDomElement(e,l[0])}}return this._getCachedDomElement(e)},I.prototype._getChildElementByClassName=function(e,t){if(null!=e.childNodes&&e.childNodes.length>0)for(var o=0;o<e.childNodes.length;o++)if(null!=e.childNodes[o].classList&&e.childNodes[o].classList.contains(t))return e.childNodes[o];return null},I.prototype._getTableElementsByClassName=function(e,t,o){var i=e.getElementsByClassName(t);return this._filterTableOwnedElements(i,o?e:null)},I.prototype._getTableElementsByTagName=function(e,t,o){var i=e.getElementsByTagName(t);return this._filterTableOwnedElements(i,o?e:null)},I.prototype._tableQuerySelectorAll=function(e,t,o){var i=e.querySelectorAll(t);return this._filterTableOwnedElements(i,o?e:null)},I.prototype._filterTableOwnedElements=function(e,t){var o,i;if(t){o=t;for(var l=t.getElementsByTagName(I.DOM_ELEMENT._TABLE),n=0;n<l.length;n++)if(l[n].parentNode===t||l[n].parentNode.parentNode===t){i=l[n];break}}else o=this._getTableContainer(),i=this._getTable();return Array.prototype.filter.call(e,function(e){return this._isTableOwned(e,o,i)}.bind(this))},I.prototype._isTableOwned=function(e,t,o){var i=t||this._getTableContainer(),l=t?o:this._getTable();if(i){if(l){var n=this._getFirstAncestor(e,l.tagName);if(n===l)return!0;if(n)return!1}var s=this._getFirstAncestor(e,"."+I.CSS_CLASSES._TABLE_CONTAINER_CLASS);if(s===i)return!0;if(s)return!1;if(!i.contains(e))return!0}return!1},I.prototype._focusSetupHandlers=function(e,t){this._setFocusInHandler(e),this._setFocusOutHandler(t)},I.prototype._getSortIconContainer=function(e){return this._getTableElementsByClassName(e,I.CSS_CLASSES._TABLE_SORT_ICON_CONTAINER_CLASS)[0]},I.prototype._getSortIcon=function(e){var t=this._getSortIconContainer(e);return null!=t?t.firstChild:null},I.prototype._getTableBodySelectorCell=function(e){if(null!=e){var t=this._getTableElementsByClassName(e,I.CSS_CLASSES._TABLE_SELECTOR_CELL);if(t.length>0)return t[0]}return null},I.prototype._getTableSelectorColumn=function(){var e=this._getTableHeaderRow();if(null!=e){var t=this._getTableElementsByClassName(e,I.CSS_CLASSES._COLUMN_HEADER_SELECTOR_CELL_CLASS);if(t.length>0)return t[0]}return null},I.prototype._getTableFooterSelectorCell=function(){var e=this._getTableFooterRow();if(null!=e){var t=this._getTableElementsByClassName(e,I.CSS_CLASSES._TABLE_FOOTER_SELECTOR_CELL_CLASS);if(t.length>0)return t[0]}return null},I.prototype._isGutterStartColumnEnabled=function(){if(null==this._isGutterStartColumnEnabledCache)if(this.options.display!==I._OPTION_DISPLAY._GRID&&this._isStickyLayoutEnabled()){const e=this._getRootElement();this._isGutterStartColumnEnabledCache=window.getComputedStyle(e).getPropertyValue("--oj-core-gutter-start").length>0}else this._isGutterStartColumnEnabledCache=!1;return this._isGutterStartColumnEnabledCache},I.prototype._isGutterEndColumnEnabled=function(){if(null==this._isGutterEndColumnEnabledCache)if(this.options.display!==I._OPTION_DISPLAY._GRID&&this._isStickyLayoutEnabled()){const e=this._getRootElement();this._isGutterEndColumnEnabledCache=window.getComputedStyle(e).getPropertyValue("--oj-core-gutter-end").length>0}else this._isGutterEndColumnEnabledCache=!1;return this._isGutterEndColumnEnabledCache},I.prototype._getTableGutterWidth=function(e){let t="start"===e?this._gutterStartWidth:this._gutterEndWidth;if(null==t||0===t){let o=this._getTableGutterCell("header",e);if(null==o&&(o=this._getTableGutterCell("body",e,this._getTableBodyRow(0))),null==o)return 0;t=o.getBoundingClientRect().width,"start"===e?this._gutterStartWidth=t:this._gutterEndWidth=t}return t},I.prototype._createTableGutterCol=function(){let e=document.createElement(I.DOM_ELEMENT._COL);return e.classList.add(I.CSS_CLASSES._TABLE_COL_GUTTER_CLASS),e},I.prototype._createTableGutterCell=function(e,t){let o,i="header"===e?I.DOM_ELEMENT._TH:I.DOM_ELEMENT._TD,l=document.createElement(i);return o="header"===e?"start"===t?I.CSS_CLASSES._TABLE_GUTTER_START_HEADER_CELL:I.CSS_CLASSES._TABLE_GUTTER_END_HEADER_CELL:"footer"===e?"start"===t?I.CSS_CLASSES._TABLE_GUTTER_START_FOOTER_CELL:I.CSS_CLASSES._TABLE_GUTTER_END_FOOTER_CELL:"start"===t?I.CSS_CLASSES._TABLE_GUTTER_START_BODY_CELL:I.CSS_CLASSES._TABLE_GUTTER_END_BODY_CELL,l.classList.add(o),"start"===t?l.classList.add(I.CSS_CLASSES._TABLE_FROZEN_START):l.classList.add(I.CSS_CLASSES._TABLE_FROZEN_END),l},I.prototype._getTableGutterCell=function(e,t,o){let i;if("header"===e?(o=this._getTableHeaderRow(),i="start"===t?I.CSS_CLASSES._TABLE_GUTTER_START_HEADER_CELL:I.CSS_CLASSES._TABLE_GUTTER_END_HEADER_CELL):"footer"===e?(o=this._getTableFooterRow(),i="start"===t?I.CSS_CLASSES._TABLE_GUTTER_START_FOOTER_CELL:I.CSS_CLASSES._TABLE_GUTTER_END_FOOTER_CELL):i="start"===t?I.CSS_CLASSES._TABLE_GUTTER_START_BODY_CELL:I.CSS_CLASSES._TABLE_GUTTER_END_BODY_CELL,null!=o){let e=this._getTableElementsByClassName(o,i);if(e.length>0)return e[0]}return null},I.CSS_CLASSES={_OPTION_DEFAULTS_CLASS:"oj-table-option-defaults",_TABLE_CONTAINER_CLASS:"oj-table-container",_TABLE_SCROLLER_CLASS:"oj-table-scroller",_TABLE_EXTERNAL_SCROLL_CLASS:"oj-table-external-scroll",_TABLE_CLASS:"oj-table",_TABLE_STICKY_CLASS:"oj-table-sticky",_TABLE_STRETCH_CLASS:"oj-table-stretch",_TABLE_COMPACT_CLASS:"oj-table-grid-display",_TABLE_HGRID_CLASS:"oj-table-horizontal-grid",_TABLE_EDIT_CLASS:"oj-table-editable",_TABLE_MULTI_ROW_SELECT_CLASS:"oj-table-multiple-row-selection",_TABLE_SCROLL_VERTICAL_CLASS:"oj-table-scroll-vertical",_TABLE_SCROLL_HORIZONTAL_CLASS:"oj-table-scroll-horizontal",_TABLE_SORT_CLASS:"oj-table-sort",_TABLE_SHOW_REQUIRED_CLASS:"oj-table-show-required",_TABLE_ELEMENT_CLASS:"oj-table-element",_TABLE_FOOTER_CLASS:"oj-table-footer",_TABLE_FOOTER_ROW_CLASS:"oj-table-footer-row",_TABLE_HEADER_CLASS:"oj-table-header",_TABLE_HEADER_ROW_CLASS:"oj-table-header-row",_TABLE_HEADER_SELECTOR_CLASS:"oj-table-header-selector",_TABLE_COLGROUP_CLASS:"oj-table-colgroup",_TABLE_COL_GUTTER_CLASS:"oj-table-gutter-col",_TABLE_COL_SELECTOR_CLASS:"oj-table-col-selector",_TABLE_COL_CLASS:"oj-table-col",_TABLE_BOTTOM_SLOT_CLASS:"oj-table-slot-bottom",_TABLE_SORT_ICON_CONTAINER_CLASS:"oj-table-sort-icon-container",_COLUMN_HEADER_CELL_CLASS:"oj-table-column-header-cell",_TABLE_HEADER_WRAP_TEXT_CLASS:"oj-table-header-cell-wrap-text",_COLUMN_HEADER_SELECTOR_CELL_CLASS:"oj-table-column-header-selector-cell",_COLUMN_HEADER_DROP_EMPTY_CELL_CLASS:"oj-table-column-header-drop-empty-cell",_COLUMN_HEADER_CLASS:"oj-table-column-header",_COLUMN_CUSTOM_HEADER_CLASS:"oj-table-custom-header",_COLUMN_HEADER_TEXT_CLASS:"oj-table-column-header-text",_COLUMN_HEADER_ASC_ICON_CLASS:"oj-table-column-header-asc-icon",_COLUMN_HEADER_DSC_ICON_CLASS:"oj-table-column-header-dsc-icon",_COLUMN_HEADER_SHOW_REQUIRED_ICON_CLASS:"oj-table-column-header-show-required-icon",_COLUMN_HEADER_DEFAULT_SORT_ICON_CLASS:"oj-table-column-header-default-sort-icon",_COLUMN_HEADER_DRAG_INDICATOR_BEFORE_CLASS:"oj-table-column-header-drag-indicator-before",_COLUMN_HEADER_DRAG_INDICATOR_AFTER_CLASS:"oj-table-column-header-drag-indicator-after",_COLUMN_HEADER_DRAG_IMAGE:"oj-table-column-header-cell-drag-image",_COLUMN_HEADER_RESIZING_CLASS:"oj-table-column-header-resizing",_COLUMN_HEADER_RESIZE_INDICATOR_CLASS:"oj-table-column-header-resize-indicator",_COLUMN_RESIZE_INDICATOR_CLASS:"oj-table-column-resize-indicator",_COLUMN_DROP_INDICATOR_CLASS:"oj-table-column-drop-indicator",_TABLE_BODY_CLASS:"oj-table-body",_TABLE_BUFFER_ROW_CLASS:"oj-table-body-scroll-buffer",_TABLE_LEGACY_WIDTH_BUFFER_ROW_CLASS:"oj-table-legacy-width-buffer",_TABLE_LEGACY_WIDTH_BUFFER_CELL_CLASS:"oj-table-legacy-width-buffer-cell",_TABLE_DATA_ROW_CLASS:"oj-table-body-row",_TABLE_STICKY_ROW_CLASS:"oj-table-sticky-row",_TABLE_STUCK_ROW_CLASS:"oj-table-stuck-row",_TABLE_DATA_ROW_DRAG_INDICATOR_CLASS:"oj-table-body-row-drag-indicator",_TABLE_TOUCH_AFFORDANCE_GLASS_PANE_CLASS:"oj-table-touch-affordance-glass-pane",_TABLE_DATA_ROW_TOUCH_SELECTION_AFFORDANCE_TOP_CLASS:"oj-table-body-row-touch-selection-affordance-top",_TABLE_DATA_ROW_TOUCH_SELECTION_AFFORDANCE_BOTTOM_CLASS:"oj-table-body-row-touch-selection-affordance-bottom",_TABLE_DATA_ROW_TOUCH_SELECTION_AFFORDANCE_TOP_ICON_CLASS:"oj-table-body-row-touch-selection-affordance-top-icon",_TABLE_DATA_ROW_TOUCH_SELECTION_AFFORDANCE_BOTTOM_ICON_CLASS:"oj-table-body-row-touch-selection-affordance-bottom-icon",_TABLE_DATA_ROW_TOUCH_SELECTION_AFFORDANCE_TOUCH_AREA_CLASS:"oj-table-body-row-touch-selection-affordance-touch-area",_TABLE_DATA_ROW_EDIT_CLASS:"oj-table-body-row-edit",_TABLE_DATA_ROW_SELECTOR_CLASS:"oj-table-body-row-selector",_TABLE_SELECTOR_CELL:"oj-table-selector-cell",_TABLE_DATA_CURRENT_ROW_CLASS:"oj-table-body-current-row",_TABLE_ACTIVE_ELEMENT_CLASS:"oj-table-active-element",_TABLE_DATA_CELL_CLASS:"oj-table-data-cell",_TABLE_DATA_CELL_EDIT_CLASS:"oj-table-data-cell-edit",_TABLE_DATE_CELL_FORM_CONTROL_CLASS:"oj-form-control-inherit",_TABLE_VGRID_LINES_CLASS:"oj-table-vgrid-lines",_TABLE_FOOTER_CELL_CLASS:"oj-table-footer-cell",_TABLE_FOOTER_SELECTOR_CELL_CLASS:"oj-table-footer-selector-cell",_TABLE_FOOTER_DROP_EMPTY_CELL_CLASS:"oj-table-footer-drop-empty-cell",_TABLE_STATUS_ACC_NOTIFICATION_CLASS:"oj-table-status-acc-notification",_TABLE_STATUS_MESSAGE_CLASS:"oj-table-status-message",_TABLE_STATUS_MESSAGE_TEXT_CLASS:"oj-table-status-message-text",_TABLE_ACC_CONTEXT_INFO_CLASS:"oj-table-acc-context-info",_TABLE_ACC_STATE_INFO_CLASS:"oj-table-acc-state-info",_TABLE_ACC_ROW_STATE_INFO_CLASS:"oj-table-acc-row-state-info",_TABLE_WIDTH_CONTAINER_CLASS:"oj-table-width-container",_TABLE_LOADING_ICON_CLASS:"oj-table-loading-icon",_TABLE_BODY_MESSAGE_CLASS:"oj-table-body-message",_TABLE_BODY_MESSAGE_ROW_CLASS:"oj-table-body-message-row",_TABLE_NO_DATA_CONTAINER_CLASS:"oj-table-no-data-container",_TABLE_NO_DATA_ROW_CLASS:"oj-table-no-data-row",_TABLE_FETCH_SKELETON_ROW_CLASS:"oj-table-fetch-skeleton-row",_TABLE_SKELETON_CELL_CLASS:"oj-table-skeleton-cell",_TABLE_SKELETON_CONTAINER_CLASS:"oj-table-skeleton-container",_TABLE_SKELETON_CLASS:"oj-table-skeleton",_TABLE_ADD_ROW_CLASS:"oj-table-add-row",_TABLE_ADD_ROW_PLACEHOLDER_CLASS:"oj-table-add-row-placeholder",_TABLE_HIDDEN_CELL_CLASS:"oj-table-hidden-cell",_TABLE_FROZEN_START:"oj-table-frozen-start",_TABLE_FROZEN_END:"oj-table-frozen-end",_TABLE_FROZEN_EDGE:"oj-table-frozen-edge",_TABLE_GUTTER_START_HEADER_CELL:"oj-table-gutter-start-header-cell",_TABLE_GUTTER_END_HEADER_CELL:"oj-table-gutter-end-header-cell",_TABLE_GUTTER_START_BODY_CELL:"oj-table-gutter-start-body-cell",_TABLE_GUTTER_END_BODY_CELL:"oj-table-gutter-end-body-cell",_TABLE_GUTTER_START_FOOTER_CELL:"oj-table-gutter-start-footer-cell",_TABLE_GUTTER_END_FOOTER_CELL:"oj-table-gutter-end-footer-cell",_TABLE_LEGACY_SIZER_CLASS:"oj-table-legacy-sizer",_TABLE_LEGACY_SCROLL_CLASS:"oj-table-legacy-scroll",_TABLE_RESIZE_DIALOG_MOBILE_CLASS:"oj-table-resize-dialog-mobile",_BUTTON_SMALL_CLASS:"oj-button-sm",_SMALL_HOR_MARGIN_CLASS:"oj-sm-margin-2x-horizontal",_SMALL_6_CLASS:"oj-sm-6",_ICON_CLASS:"oj-icon",_WIDGET_ICON_CLASS:"oj-component-icon",_HIDDEN_CONTENT_ACC_CLASS:"oj-helper-hidden-accessible",_TEXT_ALIGN_END:"oj-helper-text-align-end",_ANIMATION_SKELETON_FADE_IN_CLASS:"oj-animation-skeleton-fade-in"},I.CSS_PROP={_DISPLAY:"display",_VISIBILITY:"visibility",_POSITION:"position",_HEIGHT:"height",_WIDTH:"width",_TOP:"top",_BOTTOM:"bottom",_LEFT:"left",_RIGHT:"right",_PADDING_TOP:"padding-top",_PADDING_BOTTOM:"padding-bottom",_PADDING_LEFT:"padding-left",_PADDING_RIGHT:"padding-right",_OVERFLOW:"overflow",_OVERFLOW_X:"overflow-x",_OVERFLOW_Y:"overflow-y",_MIN_WIDTH:"min-width",_MAX_WIDTH:"max-width",_MIN_HEIGHT:"min-height",_FLOAT:"float",_BORDER_TOP:"border-top",_BORDER_TOP_WIDTH:"border-top-width",_BORDER_BOTTOM_WIDTH:"border-bottom-width",_BORDER_LEFT_WIDTH:"border-left-width",_BORDER_RIGHT_WIDTH:"border-right-width",_BORDER_COLOR:"border-color",_MARGIN_BOTTOM:"margin-bottom",_VERTICAL_ALIGN:"vertical-align",_CURSOR:"cursor",_ZINDEX:"z-index",_BACKGROUND_COLOR:"background-color",_BOX_SIZING:"box-sizing"},I.CSS_VAL={_NONE:"none",_BLOCK:"block",_INLINE_BLOCK:"inline-block",_RELATIVE:"relative",_ABSOLUTE:"absolute",_INLINE:"inline",_AUTO:"auto",_HIDDEN:"hidden",_SCROLL:"scroll",_VISIBLE:"visible",_LEFT:"left",_PX:"px",_MIDDLE:"middle",_MOVE:"move",_FIXED:"fixed",_TRANSPARENT:"transparent",_BORDER_BOX:"border-box",_COL_RESIZE:"col-resize"},I.DOM_ATTR={_STYLE:"style",_TABINDEX:"tabindex",_TYPE:"type",_ID:"id",_TITLE:"title",_HREF:"href",_COLSPAN:"colspan",_DRAGGABLE:"draggable",_ROLE:"role",_ARIA_LABEL:"aria-label",_ARIA_LABELLEDBY:"aria-labelledby",_ARIA_HIDDEN:"aria-hidden"},I.DOM_ELEMENT={_DIV:"div",_A:"a",_TR:"tr",_TD:"td",_TH:"th",_TABLE:"table",_TBODY:"tbody",_THEAD:"thead",_TFOOT:"tfoot",_INPUT:"input",_UL:"ul",_SPAN:"span",_BUTTON:"button",_LABEL:"label",_COLGROUP:"colgroup",_COL:"col"},I.MARKER_STYLE_CLASSES={_WIDGET:"oj-component",_ACTIVE:"oj-active",_CLICKABLE_ICON:"oj-clickable-icon-nocontext",_DISABLED:"oj-disabled",_ENABLED:"oj-enabled",_FOCUS:"oj-focus",_FOCUS_HIGHLIGHT:"oj-focus-highlight",_HOVER:"oj-hover",_SELECTED:"oj-selected",_DEFAULT:"oj-default",_WARNING:"oj-warning",_DRAGGABLE:"oj-draggable",_DRAG:"oj-drag",_HIDE_VERTICAL_SCROLLBAR:"oj-table-hide-vertical-scrollbar"},I.DEFAULT_ROW_HEIGHT_GUESS=50,I.prototype._clearOpenPopupListeners=function(){null!=this._openPopup&&(this._openPopup.removeEventListener("focusin",this._handlePopupFocusinListener),this._openPopup.removeEventListener("focusout",this._handlePopupFocusoutListener),this._openPopup=null),this._handlePopupFocusinListener=null,this._handlePopupFocusoutListener=null},I.prototype._handlePopupFocusout=function(e){this._handleFocusout(e,!0)},I.prototype._handlePopupFocusin=function(e){this._handleFocusin(e,!0)},I.prototype._handleFocusout=function(e,t){this._clearFocusoutTimeout();var o=this._getTable();if(!t){this._clearOpenPopupListeners();var i=v.getLogicalChildPopup(o);if(null!=i)return this._openPopup=i,this._handlePopupFocusinListener=this._handlePopupFocusin.bind(this),this._handlePopupFocusoutListener=this._handlePopupFocusout.bind(this),i.addEventListener("focusin",this._handlePopupFocusinListener),void i.addEventListener("focusout",this._handlePopupFocusoutListener)}this._setFocusoutBusyState(),this._focusoutTimeout=setTimeout(function(){this._isTableTab=null,this._tempFFFocus=null,this._clearOpenPopupListeners(),this._focusOutHandler(S(o)),this._focusOutHandler(S(this._getTableContainer())),this._clearKeyboardKeys(),this._unhighlightActive(),this._getLayoutManager().handleFocusout(),this._setTableEditable(!1,!1,0,!0,e,!0),this._cleanAccStatus(),this._focusEditCell&&(this._focusEditCell.classList.remove(I.CSS_CLASSES._TABLE_DATA_CELL_EDIT_CLASS),this._focusEditCell=null),this._setTableActionableMode(!1,!0),this._clearFocusoutBusyState()}.bind(this),100)},I.prototype._handleFocusin=function(e,t){if(this._clearFocusoutTimeout(),this._clearFocusoutBusyState(),!t){this._clearOpenPopupListeners();var o=this._getTable(),i=this._getTableBody(),l=this._getTableContainer();if(this._focusInHandler(S(o)),this._focusInHandler(S(l)),e.target===i&&!this._tempFFFocus&&b.isFirefox())setTimeout(function(){o.focus()},0);else if(S(o).has(e.target).length>0){var n=this._getActiveRowIndex(),s=this._getActiveHeaderIndex(),a=this._getPlaceHolderRow();if(null!=a&&S(a).has(e.target).length>0){if(this._setActiveAddRow(),v.isActionableElement(e.target)&&(this._setTableActionableMode(!0,!0),this._isTableTab)){var r=this._getPlaceHolderRowCells();for(let t=0;t<r.length;t++){const o=r[t];if(S(o).has(e.target).length>0){let e=t;this._isDefaultSelectorEnabled()&&(e-=1),this._isGutterStartColumnEnabled()&&(e-=1),this._scrollColumnIntoViewport(e);break}}}}else if(this._isTableEditMode())if(this._isNodeEditable(e.target)||this._isNodeClickable(e.target)||this._isTableActionableMode()||this._hasEditableRow()||this._tempFFFocus||null!=n||null!=s){if(this._isTableTab&&null!=n){var _=this._getTableBodyCells(n);for(let t=0;t<_.length;t++){const o=_[t];if(S(o).has(e.target).length>0){this._scrollColumnIntoViewport(t);break}}}}else setTimeout(function(){o.focus()},0);else if(v.isActionableElement(e.target)){this._accActionFocus=!0;var h=this._getActiveObjectFromActionableChild(e.target);null!=h&&(h.type===I.ACTIVE_ELEMENT_TYPES._DATA_ROW?this._setActiveRow(h.index,e,!0,!0):h.type===I.ACTIVE_ELEMENT_TYPES._HEADER?this._setActiveHeader(h.index,e,!0):h.type===I.ACTIVE_ELEMENT_TYPES._FOOTER?this._setActiveFooter(h.index,e,!0):h.type===I.ACTIVE_ELEMENT_TYPES._NO_DATA?this._setActiveNoData():h.type===I.ACTIVE_ELEMENT_TYPES._ADD_ROW&&this._setActiveAddRow(),this._setTableActionableMode(!0,!0))}}else this._setTableActionableMode(!1,!0)}this._isTableTab=null},I.prototype._events={focusout:function(e){this._handleFocusout(e)},focus:function(e){this._isExternalScrollEnabled()&&(this._browserAutoScrollInitPos=this._getCurrentVerticalScrollPosition().y,this._browserAutoScrollTimeout=setTimeout(function(){this._browserAutoScrollInitPos=null}.bind(this),0)),this._syncActiveElement(e,!0)},focusin:function(e){this._handleFocusin(e)},"focus .oj-table-data-cell":function(e){var t=this._getEventTargetElement(e);this._getElementRowIdx(t)===this._getEditableRowIdx()&&(this._focusEditCell&&this._focusEditCell!==t&&this._focusEditCell.classList.contains(I.CSS_CLASSES._TABLE_DATA_CELL_EDIT_CLASS)&&this._focusEditCell.classList.remove(I.CSS_CLASSES._TABLE_DATA_CELL_EDIT_CLASS),t.classList.add(I.CSS_CLASSES._TABLE_DATA_CELL_EDIT_CLASS),this._focusEditCell=t)},keydown:function(e){var t=e.key||e.keyCode;this._addKeyboardKey(t);var o=this._getKeyboardKeys()[0];if(!this._isEditPending&&(b.isEscapeKeyEvent(o)||b.isEnterKeyEvent(o)||b.isF2KeyEvent(o)||b.isTabKeyEvent(o)||!(this._isNodeEditable(e.target)||null!=this._getTableFooter()&&S(this._getTableFooter()).has(e.target).length>0))&&(1===this._getKeyboardKeys().length||2===this._getKeyboardKeys().length&&e[I._KEYBOARD_CODES._MODIFIER_SHIFT])){(this._isKeyPressMatch(b.isArrowUpKeyEvent)||this._isKeyPressMatch(b.isArrowDownKeyEvent)||this._isKeyPressMatch(b.isArrowLeftKeyEvent)||this._isKeyPressMatch(b.isArrowRightKeyEvent)||this._isKeyPressMatch(b.isHomeKeyEvent)||this._isKeyPressMatch(b.isEndKeyEvent))&&(e.preventDefault(),e.stopPropagation());var i=e[I._KEYBOARD_CODES._MODIFIER_SHIFT];this._isKeyPressMatch(b.isArrowUpKeyEvent)||this._isKeyPressMatch(b.isArrowDownKeyEvent)?this._handleKeydownUpDown(e,i&&this._getRowSelectionMode()===I._OPTION_SELECTION_MODES._MULTIPLE):this._isKeyPressMatch(b.isArrowLeftKeyEvent)||this._isKeyPressMatch(b.isArrowRightKeyEvent)?this._handleKeydownLeftRight(e,i&&this._getColumnSelectionMode()===I._OPTION_SELECTION_MODES._MULTIPLE):this._isKeyPressMatch(b.isTabKeyEvent)?this._handleKeydownTab(e):b.isF2KeyEvent(o)?this._handleKeydownF2(e):b.isSpaceBarKeyEvent(o)?this._handleKeydownSpacebar(e):b.isEnterKeyEvent(o)?this._handleKeydownEnter(e):b.isHomeKeyEvent(o)?this._handleKeydownHome(e):b.isEndKeyEvent(o)?this._handleKeydownEnd(e):b.isEscapeKeyEvent(o)&&this._handleKeydownEsc(e)}},keyup:function(e){if(b.isMac()&&this._isKeyPressMatch(b.isMetaKeyEvent))this._clearKeyboardKeys();else{if(1===this._getKeyboardKeys().length){var t=this._getKeyboardKeys()[0];if(this._isNodeEditable(e.target)||null!=this._getTableFooter()&&S(this._getTableFooter()).has(e.target).length>0)return void this._removeKeyboardKey(t);this._removeKeyboardKey(t)}var o=e.key||e.keyCode;this._removeKeyboardKey(o)}},"mouseleave .oj-table-element":function(){this._getLayoutManager().handleMouseLeaveTable()},"mousedown .oj-table-body":function(e){var t=e[I._KEYBOARD_CODES._MODIFIER_SHIFT];if(!(b.isEventClickthroughDisabled(e,this._getTable())||b.isFromDefaultSelector(e)&&!t||this._isEditPending)&&1===e.which&&(this._mouseDownRowIdx=this._getElementRowIdx(e.target),null!=this._mouseDownRowIdx)){var o=this._getTableBodyRow(this._mouseDownRowIdx);null!=o&&o.draggable&&(this._mouseDownRowIdx=null)}},mouseup:function(){this._mouseDownRowIdx=null},"mouseenter .oj-table-body-row":function(e){if(this._isRowSelectionEnabled()){e.originalEvent&&0===e.originalEvent.buttons&&(this._mouseDownRowIdx=null);var t=this._getEventTargetElement(e),o=this._getElementRowIdx(t);this._isTableOwned(t)&&null==this._getTableDndContext()._dragImage?(t.classList.add(I.MARKER_STYLE_CLASSES._HOVER),this._updateRowStateCellsClass(o,null,{hover:!0}),this._handleMouseEnterSelection(e.target)):(this._updateRowStateCellsClass(o,null,{hover:!1}),e.stopPropagation())}},"mouseleave .oj-table-body-row":function(e){var t=this._getEventTargetElement(e),o=this._getElementRowIdx(t);this._isTableOwned(t)?(t.classList.remove(I.MARKER_STYLE_CLASSES._HOVER),this._updateRowStateCellsClass(o,null,{hover:!1})):(this._updateRowStateCellsClass(o,null,{hover:!0}),e.stopPropagation())},"mousedown .oj-table-column-header-cell":function(e){b.isEventClickthroughDisabled(e,this._getTable())||this._isEditPending||(this._lastSelectedHeaderIdx=null,this._getLayoutManager().handleMouseDownHeaderCell(e))},"mousedown .oj-table-footer-cell":function(e){if(!b.isEventClickthroughDisabled(e,this._getTable())&&!this._isEditPending&&1===e.which){var t=this._getElementColumnIdx(this._getEventTargetElement(e));e[I._KEYBOARD_CODES._MODIFIER_SHIFT]||(this._setActiveFooter(t,e,!0),S(e.target).data(I._FOCUS_CALLED,!0)),b.isFirefox()&&E.isMetaKeyPressed(e)&&e.preventDefault()}},"mouseenter .oj-table-column-header-cell":function(e){this._getLayoutManager().handleMouseEnterHeaderCell(e);var t=this._getEventTargetElement(e);this._handleMouseEnterColumnHeader(t)},"mousemove .oj-table-header":function(e){this._getLayoutManager().handleMouseMoveHeader(e)},"mousemove .oj-table-column-header-cell":function(e){this._getLayoutManager().handleMouseMoveHeaderCell(e);var t=this._getEventTargetElement(e);this._handleMouseEnterColumnHeader(t)},"mouseleave .oj-table-column-header-cell":function(e){var t=this._getEventTargetElement(e);this._handleMouseLeaveColumnHeader(t)},"mouseup .oj-table-column-header-cell":function(e){this._getLayoutManager().handleMouseUp(e)},"mousedown .oj-table-data-cell":function(e){if(!b.isEventClickthroughDisabled(e,this._getTable())&&!this._isEditPending){this._lastSelectedRowIdx=null;var t=this._getEventTargetElement(e),o=this._getElementRowIdx(t);e[I._KEYBOARD_CODES._MODIFIER_SHIFT]||(this._setActiveRow(o,e,!0),S(e.target).data(I._FOCUS_CALLED,!0)),b.isFirefox()&&E.isMetaKeyPressed(e)&&e.preventDefault()}},"mouseup .oj-table-data-cell":function(e){this._getLayoutManager().handleMouseUp(e)},"click .oj-table-sort-icon-container":function(e){if(!this._isEditPending){var t=this._getElementColumnIdx(e.target),o=this._getTableHeaderColumn(t);if(o)S(o).data("sorted")===I._COLUMN_SORT_ORDER._ASCENDING?this._handleSortTableHeaderColumn(t,!1,e):this._handleSortTableHeaderColumn(t,!0,e),e.preventDefault(),e.stopPropagation()}},"click .oj-table-body-row":function(e){if(b.isEventClickthroughDisabled(e,this._getTable())||this._isEditPending)return;var t=this._getEventTargetElement(e),o=this._getElementRowIdx(t),i=S(e.target).data(I._FOCUS_CALLED),l=e[I._KEYBOARD_CODES._MODIFIER_SHIFT];if(!(i||l&&null!=this._getActiveRowIndex())){var n=this._setActiveRow(o,e,!0);if(S(e.target).data(I._FOCUS_CALLED,!1),!n)return}if(this._getTableBodyRow(o)[I._DATA_OJ_SELECTABLE]!==I._CONST_OFF&&(this._fireActionEvent(o,e,!0),!b.isFromDefaultSelector(e)||l))if(l){var s=this._getActiveRowIndex();if(null!=s&&(window.getSelection().removeAllRanges(),this._getRowSelectionMode()===I._OPTION_SELECTION_MODES._MULTIPLE))return void this._selectRange(s,o,!0);this._handleSelectionGesture(o,!0,!1)}else if(E.isMetaKeyPressed(e))this._handleSelectionGesture(o,!0,!0),this._lastSelectedRowIdxArray&&this._lastSelectedRowIdxArray.indexOf(o)>-1&&(this._selectionAnchorIdx=o);else if(0===this._getKeyboardKeys().length){var a=this._isTouchDevice();this._handleSelectionGesture(o,!0,a&&(this._isStickyLayoutEnabled()||this._nonContiguousSelection)),this._lastSelectedRowIdxArray&&this._lastSelectedRowIdxArray.indexOf(o)>-1&&(this._selectionAnchorIdx=o);var r=this._getRowSelection(o);!this._isStickyLayoutEnabled()&&a&&r&&!this._nonContiguousSelection&&this._getRowSelectionMode()===I._OPTION_SELECTION_MODES._MULTIPLE&&this._createTableBodyRowTouchSelectionAffordance(o)}},"dblclick .oj-table-data-cell, .oj-table-gutter-start-body-cell, .oj-table-gutter-end-body-cell":function(e){if(b.isEventClickthroughDisabled(e,this._getTable())||this._isEditPending)return;let t;t=e.target.classList.contains(I.CSS_CLASSES._TABLE_GUTTER_START_BODY_CELL)?0:e.target.classList.contains(I.CSS_CLASSES._TABLE_GUTTER_END_BODY_CELL)?this._getColumnDefs().length-1:this._getElementColumnIdx(e.target),this._setTableEditable(!0,!1,t,!0,e)},"contextmenu .oj-table-data-cell":function(e){if(!b.isEventClickthroughDisabled(e,this._getTable())&&!this._isEditPending){var t=this._getElementRowIdx(this._getEventTargetElement(e));this._setActiveRow(t,e,!0)}},"click .oj-table-column-header-cell":function(e){if(!b.isEventClickthroughDisabled(e,this._getTable())&&!this._isEditPending){var t=this._getEventTargetElement(e);if(t.style.cursor!==I.CSS_VAL._COL_RESIZE){var o=this._getElementColumnIdx(t),i=S(e.target).data(I._FOCUS_CALLED),l=e[I._KEYBOARD_CODES._MODIFIER_SHIFT];if(i||l&&null!=this._getActiveHeaderIndex()||(this._setActiveHeader(o,e),S(e.target).data(I._FOCUS_CALLED,!1)),l){var n=this._getActiveHeaderIndex();null!=n&&this._getColumnSelectionMode()===I._OPTION_SELECTION_MODES._MULTIPLE?this._selectRange(n,o,!1):this._handleSelectionGesture(o,!1,!0)}else E.isMetaKeyPressed(e)?this._handleSelectionGesture(o,!1,!0):0===this._getKeyboardKeys().length&&this._handleSelectionGesture(o,!1,this._isTouchDevice())}}},"click .oj-table-footer-cell":function(e){if(!b.isEventClickthroughDisabled(e,this._getTable())&&!this._isEditPending){var t=this._getEventTargetElement(e);if(t.style.cursor!==I.CSS_VAL._COL_RESIZE){var o=this._getElementColumnIdx(t),i=S(e.target).data(I._FOCUS_CALLED),l=e[I._KEYBOARD_CODES._MODIFIER_SHIFT];if(i||l&&null!=this._getActiveFooterIndex()||(this._setActiveFooter(o,e),S(e.target).data(I._FOCUS_CALLED,!1)),l){var n=this._getActiveFooterIndex();null!=n&&this._getColumnSelectionMode()===I._OPTION_SELECTION_MODES._MULTIPLE?this._selectRange(n,o,!1):this._handleSelectionGesture(o,!1,!0)}else E.isMetaKeyPressed(e)?this._handleSelectionGesture(o,!1,!0):0===this._getKeyboardKeys().length&&this._handleSelectionGesture(o,!1,!1)}}},"dragstart .oj-table-column-header-cell":function(e){if(!this._isEditPending)return this._getEventTargetElement(e).style.cursor!==I.CSS_VAL._COL_RESIZE?this._getTableDndContext().handleColumnDragStart(e):void 0},"dragenter .oj-table-column-header-cell":function(e){return this._getTableDndContext().handleColumnDragEnter(e)},"dragover .oj-table-column-header-cell":function(e){return this._getTableDndContext().handleColumnDragOver(e)},"dragleave .oj-table-column-header-cell":function(e){return this._getTableDndContext().handleColumnDragLeave(e)},"drop .oj-table-column-header-cell":function(e){return this._getTableDndContext().handleColumnDrop(e)},"dragend .oj-table-column-header-cell":function(e){return this._getTableDndContext().handleColumnDragEnd(e)},"dragstart .oj-table-body-row":function(e){if(!this._isEditPending)return this._getTableDndContext().handleRowDragStart(e)},"drag .oj-table-body-row":function(e){return this._getTableDndContext().handleRowDrag(e)},"dragend .oj-table-body-row":function(e){return this._getTableDndContext().handleRowDragEnd(e)},"dragenter .oj-table-body":function(e){return this._getTableDndContext().handleRowDragEnter(e)},"dragover .oj-table-body":function(e){if(!this._getTableDndContext()._isColumnReordering())return this._getTableDndContext().handleRowDragOver(e)},"dragleave .oj-table-body":function(e){return this._getTableDndContext().handleRowDragLeave(e)},"drop .oj-table-body":function(e){if(!this._getTableDndContext()._isColumnReordering())return this._getTableDndContext().handleRowDrop(e)},"dragover .oj-table-element":function(e){if(this._getTableDndContext()._isColumnReordering())return this._getTableDndContext().handleColumnReorderDragOver(e)},"drop .oj-table-element":function(e){if(this._getTableDndContext()._isColumnReordering())return this._getTableDndContext().handleColumnReorderDrop(e)}},I.prototype._fireActionEvent=function(e,t,o){if(o||!this._isTableActionableMode()){var i=this._getTableBodyRow(e);null!=i&&this._trigger("rowAction",t,{context:{key:i[I._ROW_ITEM_EXPANDO].key,data:i[I._ROW_ITEM_EXPANDO].data,metadata:i[I._ROW_ITEM_EXPANDO].metadata}})}},I.prototype._getEventTargetElement=function(e){return 0===e.type.indexOf("touch")?this._getTouchEventTargetElement(e):e.currentTarget},I.prototype._getTouchEventTargetElement=function(e){var t=e.originalEvent.changedTouches[0];return document.elementFromPoint(t.clientX,t.clientY)},I.prototype._registerCustomEvents=function(){var e=S.event.special;e.ojtablebeforecurrentrow={handle:function(e){var t=e.handleObj;return t.handler.apply(this,[e,arguments[1]])}},e.ojtablesort={handle:function(e){var t=e.handleObj;return t.handler.apply(this,[e,arguments[1]])}}},I.prototype._touchEventDoubleTapFunction=function(e,t){var o=S(e.target);null!=this._lastTapTime&&(new Date).getTime()-this._lastTapTime<250&&this._lastTapTarget[0]===o[0]?(this._lastTapTime=null,this._lastTapTarget=null,t()):(this._lastTapTarget=o,this._lastTapTime=(new Date).getTime())},I.prototype._registerTouchEvents=function(){const e={"touchstart .oj-table-body-row-touch-selection-affordance-touch-area":function(e){1===e.originalEvent.touches.length&&this._getRowSelectionMode()===I._OPTION_SELECTION_MODES._MULTIPLE&&(e.target.classList.contains(I.CSS_CLASSES._TABLE_DATA_ROW_TOUCH_SELECTION_AFFORDANCE_TOP_CLASS)||e.target.classList.contains(I.CSS_CLASSES._TABLE_DATA_ROW_TOUCH_SELECTION_AFFORDANCE_TOP_ICON_CLASS)?(e.preventDefault(),this._mouseDownRowIdx=S(this._getTableBodyRowTouchSelectionAffordanceBottom()).data("rowIdx")):(e.target.classList.contains(I.CSS_CLASSES._TABLE_DATA_ROW_TOUCH_SELECTION_AFFORDANCE_BOTTOM_CLASS)||e.target.classList.contains(I.CSS_CLASSES._TABLE_DATA_ROW_TOUCH_SELECTION_AFFORDANCE_BOTTOM_ICON_CLASS))&&(e.preventDefault(),this._mouseDownRowIdx=S(this._getTableBodyRowTouchSelectionAffordanceTop()).data("rowIdx")))},"touchstart .oj-table-column-header-cell":function(e){this._getLayoutManager().handleTouchStartHeaderCell(e)},"touchmove .oj-table-header":function(e){this._getLayoutManager().handleTouchMoveHeader(e)},"touchmove .oj-table-body-row-touch-selection-affordance-touch-area":function(e){if(null!=this._mouseDownRowIdx){e.preventDefault();var t=this._getEventTargetElement(e);this._handleMouseEnterSelection(t,!0)}}},t=this._getTableContainer();if(this._on(S(t),{touchend:function(e){if(null!=this._mouseDownRowIdx){var t=this._getEventTargetElement(e);this._handleMouseEnterSelection(t,!0)}this._mouseDownRowIdx=null,this._getLayoutManager().handleTouchEnd(e)},"touchend .oj-table-body":function(e){this._touchEventDoubleTapFunction(e,function(e){return function(){var t=this._getEventTargetElement(e),o=this._getElementColumnIdx(t);this._setTableEditable(!0,!1,o,!0,e),e.preventDefault()}.bind(this)}.bind(this)(e))},touchcancel:function(){this._mouseDownRowIdx=null,this._getLayoutManager().handleTouchCancel()}}),this._IsCustomElement()){const o=function(e,t){return function(o){const i=o.currentTarget,l=o.target.closest(e);l&&i.contains(l)&&t(S.Event(o,{currentTarget:l}))}},i="touchstart",l="touchmove",n=".oj-table-body-row-touch-selection-affordance-touch-area",s=".oj-table-column-header-cell",a=".oj-table-header";this._delegatedTouchStartTableBodyListener=o(n,e[`${i} ${n}`].bind(this)),this._delegatedTouchStartCellHeaderListener=o(s,e[`${i} ${s}`].bind(this)),this._delegatedTouchMoveTableHeaderListener=o(a,e[`${l} ${a}`].bind(this)),this._delegatedTouchMoveTableBodyListener=o(n,e[`${l} ${n}`].bind(this)),t.addEventListener(i,this._delegatedTouchStartTableBodyListener,{passive:!1}),t.addEventListener(i,this._delegatedTouchStartCellHeaderListener,{passive:!1}),t.addEventListener(l,this._delegatedTouchMoveTableHeaderListener,{passive:!0}),t.addEventListener(l,this._delegatedTouchMoveTableBodyListener,{passive:!1})}else this._on(S(t),e)},I.ACTIVE_ELEMENT_TYPES={_HEADER:"header",_FOOTER:"footer",_DATA_ROW:"dataRow",_NO_DATA:"noData",_ADD_ROW:"addRow"},I.prototype._createActiveObject=function(e){var t;return e.classList.contains(I.CSS_CLASSES._TABLE_DATA_ROW_CLASS)?(t=this._getElementRowIdx(e),{type:I.ACTIVE_ELEMENT_TYPES._DATA_ROW,index:t,key:this._getRowKeyForRowIdx(t),isActionable:!1}):e.classList.contains(I.CSS_CLASSES._COLUMN_HEADER_CELL_CLASS)?(t=this._getElementColumnIdx(e),{type:I.ACTIVE_ELEMENT_TYPES._HEADER,index:t,key:this._getColumnKeyForColumnIdx(t),isActionable:!1}):e.classList.contains(I.CSS_CLASSES._COLUMN_HEADER_SELECTOR_CELL_CLASS)?{type:I.ACTIVE_ELEMENT_TYPES._HEADER,index:-1,isActionable:!1}:e.classList.contains(I.CSS_CLASSES._TABLE_FOOTER_CELL_CLASS)?(t=this._getElementColumnIdx(e),{type:I.ACTIVE_ELEMENT_TYPES._FOOTER,index:t,key:this._getColumnKeyForColumnIdx(t),isActionable:!1}):e.classList.contains(I.CSS_CLASSES._TABLE_FOOTER_SELECTOR_CELL_CLASS)?{type:I.ACTIVE_ELEMENT_TYPES._FOOTER,index:-1,isActionable:!1}:e.classList.contains(I.CSS_CLASSES._TABLE_BODY_MESSAGE_ROW_CLASS)||e.classList.contains(I.CSS_CLASSES._TABLE_NO_DATA_ROW_CLASS)?{type:I.ACTIVE_ELEMENT_TYPES._NO_DATA,isActionable:!1}:e.classList.contains(I.CSS_CLASSES._TABLE_ADD_ROW_PLACEHOLDER_CLASS)?{type:I.ACTIVE_ELEMENT_TYPES._ADD_ROW,isActionable:!1}:null},I.prototype._getActiveObjectFromActionableChild=function(e){var t=this._createActiveObject(e);if(null!=t)return t;var o=e.parentElement;return null!=o&&S.contains(this._getTable(),o)?this._getActiveObjectFromActionableChild(o):null},I.prototype._areActiveObjectsEqual=function(e,t){return null!=e&&null!=t?e.type===t.type&&e.index===t.index&&u.KeyUtils.equals(e.key,t.key):null==e&&null==t},I.prototype._getElementFromActiveObject=function(e){if(null!=e){if(e.type===I.ACTIVE_ELEMENT_TYPES._DATA_ROW)return this._getTableBodyRow(e.index);if(e.type===I.ACTIVE_ELEMENT_TYPES._HEADER)return-1===e.index?this._getTableSelectorColumn():this._getTableHeaderColumn(e.index);if(e.type===I.ACTIVE_ELEMENT_TYPES._FOOTER)return-1===e.index?this._getTableFooterSelectorCell():this._getTableFooterCell(e.index);if(e.type===I.ACTIVE_ELEMENT_TYPES._NO_DATA){var t=this._getTableBodyMessageRow();return null!=t?t:this._getTableNoDataRow()}if(e.type===I.ACTIVE_ELEMENT_TYPES._ADD_ROW)return this._getPlaceHolderRow()}return null},I.prototype._getActiveElement=function(){return this._getElementFromActiveObject(this._active)},I.prototype._getActiveType=function(){return null!=this._active?this._active.type:null},I.prototype._highlightActive=function(e){if(null!=this._active){var t=this._getElementFromActiveObject(this._active);t&&(t.classList.add(I.CSS_CLASSES._TABLE_ACTIVE_ELEMENT_CLASS),!this._hasFocus()||this._active.isActionable||e||(this._focusInHandler(S(t)),this._hasActiveHeader()&&-1!==this._active.index&&this._showTableHeaderColumnSortIcon(this._active.index)))}},I.prototype._unhighlightActive=function(){if(null!=this._active){var e=this._getElementFromActiveObject(this._active);e&&(e.classList.remove(I.CSS_CLASSES._TABLE_ACTIVE_ELEMENT_CLASS),this._focusOutHandler(S(e)),this._hasActiveHeader()&&-1!==this._active.index&&this._hideTableHeaderColumnSortIcon(this._active.index))}},I.prototype._hasFocus=function(){return this._getTable().classList.contains(I.MARKER_STYLE_CLASSES._FOCUS)},I.prototype._syncActiveElement=function(e,t){var o=this._hasFocus(),i=this._getTableBodyRows().length;if(null!=this._active){if(this._hasActiveHeader()||this._hasActiveFooter()){if(this._getFirstVisibleColumnIndex(this._active.index,!0)!==this._active.index){var l=this._getFirstVisibleColumnIndex(0,!0);this._hasActiveHeader()?this._setActiveHeader(l,e,!o):this._setActiveFooter(l,e,!o)}else o&&this._scrollColumnIntoViewport(this._active.index),this._highlightActive(),t&&this._updateAccStatusInfo();return}if(this._hasActiveRow()){if(u.KeyUtils.equals(this._active.key,this._getRowKeyForRowIdx(this._active.index)))return o&&this._scrollRowIntoViewport(this._active.index),t&&this._updateAccStatusInfo(),void this._highlightActive();var n=this._getCurrentRow(),s=null!=n?n.rowKey:null;if(null!=s){if(i>0){var a=this._getRowIdxForRowKey(s);return null!=a||(a=Math.min(null!=n.rowIndex?n.rowIndex:0,i-1)),void this._setActiveRow(a,e,!0,!o)}this._setActiveNoData()}return}if(this._hasActiveNoData()){if(!0===this._noDataMessageShown)return this._highlightActive(),void(t&&this._updateAccStatusInfo())}else if(this._hasActiveAddRow()&&null!=this._getPlaceHolderRow())return this._highlightActive(),void(t&&this._updateAccStatusInfo())}this._isTableHeaderless()?null!=this._getPlaceHolderRow()?this._setActiveAddRow():i>0?this._setActiveRow(0,e,!0,!o):this._setActiveNoData():this._setActiveHeader(this._getFirstVisibleColumnIndex(0,!0),e,!o)},I.prototype._getFirstVisibleColumnIndex=function(e,t){var o;if(this._isTableHeaderless()){if(this._isTableFooterless())return null;o=this._getTableFooterCell.bind(this)}else o=this._getTableHeaderColumn.bind(this);var i,l=this._getColumnDefs().length,n=e;if(t)for(;n<l;){if((i=o(n))&&i.clientWidth>0)return n;n+=1}else for(;n>-1;){if((i=o(n))&&i.clientWidth>0)return n;n-=1}return null},I.prototype._getNextVisibleColumnIndex=function(e,t){var o=t?e+1:e-1;if(-1===o)return this._isDefaultSelectorEnabled()?o:e;var i=this._getFirstVisibleColumnIndex(o,t);return null!==i?i:e},I.prototype._getCurrentRow=function(){return this._getData()?this._currentRow:null},I.prototype._hasActiveRow=function(){return this._getActiveType()===I.ACTIVE_ELEMENT_TYPES._DATA_ROW},I.prototype._getActiveRowIndex=function(){return this._hasActiveRow()?this._active.index:null},I.prototype._hasActiveHeader=function(){return this._getActiveType()===I.ACTIVE_ELEMENT_TYPES._HEADER},I.prototype._getActiveHeaderIndex=function(){return this._hasActiveHeader()?this._active.index:null},I.prototype._getActiveHeaderColumn=function(){var e=this._getActiveHeaderIndex();return null!=e?-1===e?this._getTableSelectorColumn():this._getTableHeaderColumn(e):null},I.prototype._hasActiveFooter=function(){return this._getActiveType()===I.ACTIVE_ELEMENT_TYPES._FOOTER},I.prototype._getActiveFooterIndex=function(){return this._hasActiveFooter()?this._active.index:null},I.prototype._hasActiveAddRow=function(){return this._getActiveType()===I.ACTIVE_ELEMENT_TYPES._ADD_ROW},I.prototype._hasActiveNoData=function(){return this._getActiveType()===I.ACTIVE_ELEMENT_TYPES._NO_DATA},I.prototype._scrollRowIntoViewport=function(e,t,o){var i=this._getLayoutManager();if(i.hasRenderedSize()&&(null==o&&(o=this._getTableBodyRow(e)),t||!o.classList.contains(I.CSS_CLASSES._TABLE_STUCK_ROW_CLASS))){var l=S(i.getScroller()),n=i.getVerticalOverflowDiff(o),s=n.top,a=s>=0,r=n.bottom,_=r>=0;a&&_||(_?(Math.abs(s)>Math.abs(r)?l.scrollTop(l.scrollTop()+r):l.scrollTop(l.scrollTop()-s),this._skipScrollUpdate=!1,i.updateCurrentScrollState()):a&&(Math.abs(r)>Math.abs(s)?l.scrollTop(l.scrollTop()-s):l.scrollTop(l.scrollTop()+r),this._skipScrollUpdate=!1,i.updateCurrentScrollState()))}},I.prototype._scrollColumnIntoViewport=function(e){var t,o=this._getLayoutManager();if(o.hasRenderedSize()&&(t=-1===e?this._getTableSelectorColumn():this._getTableHeaderColumn(e))){var i=o.getScroller(),l=S(i),n=o.getHorizontalOverflowDiff(t,e),s=n.left,a=n.right,r=s>=0,_=a>=0;b.isEdge()&&(s*=-1,a*=-1),r&&_||(r?(Math.abs(a)>Math.abs(s)?l.scrollLeft(l.scrollLeft()-s):l.scrollLeft(l.scrollLeft()+a),this._skipScrollUpdate=!1,o.updateCurrentScrollState()):_&&(Math.abs(s)>Math.abs(a)?l.scrollLeft(l.scrollLeft()+a):l.scrollLeft(l.scrollLeft()-s),this._skipScrollUpdate=!1,o.updateCurrentScrollState()))}},I.prototype._setCurrentRow=function(e,t,o){var i,l,n,s,a=this._currentRow,r=null==e||null==e.rowKey&&null==e.rowIndex;if(r)n=-1,s=null!=e?e:null;else{var _=this._getData(),h=e.rowIndex,d=e.rowKey;if(null==d&&(d=this._getRowKeyForDataSourceRowIndex(h)),s={rowIndex:h=this._getDataSourceRowIndexForRowKey(d),rowKey:d},-1!==(n=this._getRowIdxForRowKey(d))&&(!_||n<-1||null===n||null===d)){if(i=I._LOGGER_MSG._ERR_CURRENTROW_UNAVAILABLE_INDEX_SUMMARY,l=g.applyParameters(I._LOGGER_MSG._ERR_CURRENTROW_UNAVAILABLE_INDEX_DETAIL,{rowIdx:n}),this.option("currentRow",this._currentRow,{_context:{writeback:!0,originalEvent:t,internalSet:!0}}),o)throw new Error(i+"\n"+l);return C.info(i+"\n"+l),I._CURRENT_ROW_STATUS._IGNORED}}var u=this._getActiveRowIndex(),c=!this._compareCurrentRowValues(a,s);if(c){var S,E=this._getAccessibleContext();this._clearAccessibleContext();try{S=this._trigger("beforeCurrentRow",t,{currentRow:s,previousCurrentRow:a})}catch(e){return i=I._LOGGER_MSG._ERR_PRECURRENTROW_ERROR_SUMMARY,l=g.applyParameters(I._LOGGER_MSG._ERR_PRECURRENTROW_ERROR_DETAIL,{error:e.toString()}),C.info(i+"\n"+l),this.option("currentRow",this._currentRow,{_context:{writeback:!0,originalEvent:t,internalSet:!0}}),I._CURRENT_ROW_STATUS._ERROR}if(!S)return this._setAccessibleContext(E),this.option("currentRow",this._currentRow,{_context:{writeback:!0,originalEvent:t,internalSet:!0}}),I._CURRENT_ROW_STATUS._VETOED;if(!(null==a||null==a.rowKey&&null==a.rowIndex)){var T=a.rowIndex,p=this._getRowKeyForDataSourceRowIndex(T),A=this._getRowIdxForRowKey(p);if(!1===this._setTableEditable(!1,!1,0,!0,t)){this._currentRow=a;var f=document.activeElement,b=this._getElementColumnIdx(f);return this._queueTask(function(){var e=A,o=b;null!=e&&null!=o?setTimeout(function(){this._setCellFocus(e,o)}.bind(this),0):null!=e&&setTimeout(function(){this._setActiveRow(e,t)}.bind(this),0)}.bind(this)),this._setAccessibleContext(E),this.option("currentRow",this._currentRow,{_context:{writeback:!0,originalEvent:t,internalSet:!0}}),I._CURRENT_ROW_STATUS._IGNORED}var L=this._getTableBodyRow(A);null!=L&&L.classList.remove(I.CSS_CLASSES._TABLE_DATA_CURRENT_ROW_CLASS)}if(this._currentRow=s,this.option("currentRow",this._currentRow,{_context:{writeback:!0,originalEvent:t,internalSet:!0}}),!r){var m=this._getTableBodyRow(n);null!=m&&m.classList.add(I.CSS_CLASSES._TABLE_DATA_CURRENT_ROW_CLASS)}}return!c&&u===n||null!=t||this._setActiveRow(n,t,!1,!this._hasFocus()),I._CURRENT_ROW_STATUS._UPDATED},I.prototype._compareCurrentRowValues=function(e,t){if(e===t)return!0;if(null!=e&&null!=t){if(e.rowIndex===t.rowIndex&&u.KeyUtils.equals(e.rowKey,t.rowKey))return!0}else if(null==e&&null==t)return!0;return!1},I.prototype._setCellFocus=function(e,t){var o=this._getTableBodyCell(e,t);if(o){var i=b.getFocusableElementsInNode(o);if(i.length>0){var l=i[0];return l.focus(),"function"==typeof l.select&&l.select(),this._scrollColumnIntoViewport(t),!0}}return!1},I.prototype._setCellInRowFocus=function(e,t,o){if(!this._setCellFocus(e,t))for(var i=this._getTableBodyCells(e).length,l=0;l<i;l++){var n=l;if(o||(n=i-l-1),this._setCellFocus(e,n))return}},I.prototype._setFocusInHandler=function(e){this._focusInHandler=e},I.prototype._setFocusOutHandler=function(e){this._focusOutHandler=e},I.prototype._setActiveRow=function(e,t,o,i,l,n){if(-1===e)return this._clearActiveRow(t,o);var s=this._getTableBodyRow(e);return null!=s&&this._setActive(s,t,o,i,l,n)},I.prototype._clearActiveRow=function(e,t,o){return!this._hasActiveRow()||this._setActive(null,e,t,o)},I.prototype._resetActiveRow=function(){return!this._hasActiveRow()||this._setActive(null)},I.prototype._setActiveHeader=function(e,t,o){if(this._isTableHeaderless()||null==e)return!1;var i=-1===e?this._getTableSelectorColumn():this._getTableHeaderColumn(e);return this._setActive(i,t,!0,o)},I.prototype._setActiveFooter=function(e,t,o){if(this._isTableFooterless()||null==e)return!1;var i=-1===e?this._getTableFooterSelectorCell():this._getTableFooterCell(e);return this._setActive(i,t,!0,o)},I.prototype._setActiveAddRow=function(){var e=this._getPlaceHolderRow();return null!=e&&this._setActive(e,null,!0)},I.prototype._setActiveNoData=function(){var e=this._getTableBodyMessageRow();if(null!=e)this._setActive(e,null,!0);else{var t=this._getTableNoDataRow();null!=t&&this._setActive(t,null,!0)}},I.prototype._setActive=function(e,t,o,i,l,n){if(null!=e){var s=this._createActiveObject(e);if(!this._areActiveObjectsEqual(s,this._active)){if(s.type===I.ACTIVE_ELEMENT_TYPES._DATA_ROW){if(o&&this._setCurrentRow({rowKey:s.key},t)!==I._CURRENT_ROW_STATUS._UPDATED)return!1}else if(!this._clearActiveRow(t,o))return!1;this._setTableActionableMode(!1,!0),this._unhighlightActive(),this._active=s}i||(s.type===I.ACTIVE_ELEMENT_TYPES._HEADER||s.type===I.ACTIVE_ELEMENT_TYPES._FOOTER?this._scrollColumnIntoViewport(s.index):s.type===I.ACTIVE_ELEMENT_TYPES._DATA_ROW&&this._scrollRowIntoViewport(s.index,n)),this._highlightActive(l),this._active.isActionable||this._updateAccStatusInfo()}else if(null!=this._active){if(this._hasActiveRow()&&o&&this._setCurrentRow(null,t)!==I._CURRENT_ROW_STATUS._UPDATED)return!1;this._unhighlightActive(),this._active=null}return!0},I.prototype._setColumnState=function(e,t){var o=this._getTableHeaderColumn(e),i=this._getTableFooterCell(e);this._applyColumnState(o,i,e,t)},I.prototype._applyColumnState=function(e,t,o,i){i?(null!=e&&e.classList.add(I.MARKER_STYLE_CLASSES._SELECTED),null!=t&&t.classList.add(I.MARKER_STYLE_CLASSES._SELECTED)):(null!=e&&e.classList.remove(I.MARKER_STYLE_CLASSES._SELECTED),null!=t&&t.classList.remove(I.MARKER_STYLE_CLASSES._SELECTED)),this._updateColumnStateCellsClass(o,i)},I.prototype._updateColumnStateCellsClass=function(e,t){for(var o=this._getSelectedRowIdxs(),i=this._getTableBodyRows(),l=0;l<i.length;l++){var n=this._getTableBodyCell(l,e);if(n)if(t)n.classList.add(I.MARKER_STYLE_CLASSES._SELECTED);else{for(var s=!1,a=o.length,r=0;r<a;r++)if(l===o[r]){s=!0;break}s||n.classList.remove(I.MARKER_STYLE_CLASSES._SELECTED)}}if(null!=this._getPlaceHolderRow()){var _=this._getPlaceHolderRowCell(e);null!=_&&(t?_.classList.add(I.MARKER_STYLE_CLASSES._SELECTED):_.classList.remove(I.MARKER_STYLE_CLASSES._SELECTED))}},I.prototype._updateRowStateCellsClass=function(e,t,o){if(t||(t=this._getTableBodyRow(e)),t[I._DATA_OJ_SELECTABLE]!==I._CONST_OFF){var i=this._getTableBodyCells(null,t);if(0!==i.length){if(this._isDefaultSelectorEnabled()){var l=this._getTableBodySelectorCell(t);i.unshift(l)}if(this._isGutterStartColumnEnabled()){let e=this._getTableGutterCell("body","start",t);i.unshift(e)}if(this._isGutterEndColumnEnabled()){let e=this._getTableGutterCell("body","end",t);i.push(e)}var n,s=o.selected,a=o.hover,r=i.length;if(null!=a)for(n=0;n<r;n++)a?i[n].classList.add(I.MARKER_STYLE_CLASSES._HOVER):i[n].classList.remove(I.MARKER_STYLE_CLASSES._HOVER);if(null!=s)for(n=0;n<r;n++)s?i[n].classList.add(I.MARKER_STYLE_CLASSES._SELECTED):i[n].classList.remove(I.MARKER_STYLE_CLASSES._SELECTED)}}},I.prototype._adjustScrollPositionOnFetch=function(e){var t=null==this.options.scrollPosition?{}:this.options.scrollPosition;if(!isNaN(t.rowIndex)&&void 0!==t.rowKey){var o=this._getSelectedRowIdxs();null!=o&&o.length>0&&this._isRowSelectionEnabled()&&this._isScrollToKey()?(!isNaN(this._selectionAnchorIdx)&&o.indexOf(this._selectionAnchorIdx)>-1?t.rowKey=this._getRowKeyForRowIdx(this._selectionAnchorIdx):t.rowKey=this._getRowKeyForRowIdx(o[0]),delete t.rowIndex):(this._isExternalScrollEnabled()||(t.y=0),delete t.rowIndex,delete t.rowKey),e||(t.x=0,t.columnKey=null,t.columnIndex=0,t.offsetX=0),t.offsetY=0,this.option("scrollPosition",t,{_context:{internalSet:!0},changed:!1})}},I.prototype._isScrollPositionAdjusted=function(){var e=this.options.scrollPosition;return null!=e&&(void 0===e.rowIndex&&null!=e.rowKey)},I.prototype._findRowElementByKey=function(e){for(var t=this._getTableBodyRows(),o=0;o<t.length;o++)if(u.KeyUtils.equals(t[o][I._ROW_ITEM_EXPANDO].key,e))return t[o];return null},I.prototype._isScrollToKey=function(){var e=this.options.scrollToKey;if("never"===e)return!1;if("always"===e)return!0;var t=this.options.data;if(!u.DataProviderFeatureChecker.isDataProvider(t))return!0;if(t.getCapability){var o=t.getCapability("fetchFirst");if(o&&"immediate"===o.iterationSpeed)return!0}return!1},I.prototype._getScrollToKey=function(){var e=this.options.scrollPosition.rowKey;return e?new Promise(function(t){var o=this._validateKeyForScroll(e,!0);null==o?t(null):o.then(function(o){t(o?e:null)})}.bind(this)):Promise.resolve(null)},I.prototype._validateKeyForScroll=function(e,t){if(!this._isScrollToKey())return null;if(!t&&null!=this._findRowElementByKey(e))return Promise.resolve(!0);var o=this._getData();return o.containsKeys?new Promise(function(t){var i=new Set;i.add(e),o.containsKeys({keys:i}).then(function(e){t(e.results.size>0)},function(){t(!1)})}):null},I.prototype._syncScrollPosition=function(e,t){if(!this._IsCustomElement()||this._noDataMessageShown||!this._isScrollableX()&&!this._isScrollableY())return!0;if(null!=this._scrollPosition?e=this._scrollPosition:null==e&&(e=this.options.scrollPosition),!t&&null!=e.rowKey){var o=this._validateKeyForScroll(e.rowKey,!1);if(o){var i=this._createComponentBusyState("is validating scroll position rowKey.");o.then(function(t){t||delete e.rowKey,this._clearComponentBusyState(i),this._syncScrollPosition(e,!0)}.bind(this))}return!1}var l=this._getScrollCoordinates(e),n=this._isScrollableX()?l.x:0,s=this._isScrollableY()?l.y:0;if(isNaN(n)&&isNaN(s))return this.option("scrollPosition",this._getCurrentScrollPosition(),{_context:{originalEvent:null,internalSet:!0}}),this._scrollPosition=null,this._editRowCallback=null,!0;var a,r=isNaN(this._scrollTop)?0:this._scrollTop,_=isNaN(this._scrollLeft)?0:this._scrollLeft;if(!isNaN(n)&&isNaN(s)||!isNaN(n)&&s===r&&n!==_)this._isScrollableX()?(this._setScrollX(n),a=this._getCurrentScrollPosition(n)):a=this._getCurrentScrollPosition(),this.option("scrollPosition",a,{_context:{originalEvent:null,internalSet:!0}});else if(s!==r){if(!this._isScrollableY())return isNaN(n)||n===_?(this.option("scrollPosition",this._getCurrentScrollPosition(),{_context:{originalEvent:null,internalSet:!0}}),!0):(delete e.y,this._syncScrollPosition(e,t));var h=this._setScrollY(s);if(isNaN(n)||n===_||this._setScrollX(n),-1===s)return this._scrollPosition=e,h;this.option("scrollPosition",this._getCurrentScrollPosition(n,s),{_context:{originalEvent:null,internalSet:!0}})}else e&&(null==e.rowKey||isNaN(e.rowIndex))&&this.option("scrollPosition",this._getCurrentScrollPosition(n,s),{_context:{originalEvent:null,internalSet:!0}});return null!=this._scrollPosition&&(this._scrollPosition=null),this._editRowCallback&&(this._editRowCallback(),this._editRowCallback=null),!0},I.prototype._isScrollableX=function(){var e=this._getLayoutManager();return Math.abs(e.getScrollWidth()-e.getClientWidth())>1},I.prototype._isScrollableY=function(){var e=this._getLayoutManager();return Math.abs(e.getScrollHeight()-e.getClientHeight())>1},I.prototype._setScrollX=function(e){var t=this._getLayoutManager().getScroller();this._skipScrollUpdate=!0,E.setScrollLeft(t,e)},I.prototype._setScrollY=function(e){var t=this._getLayoutManager(),o=t.getScroller();this._skipScrollUpdate=!0;var i=o.scrollTop;return o.scrollTop=-1===e?t.getScrollHeight()-t.getClientHeight():e,i!==o.scrollTop&&(this._setScrollPosBusyState(),!0)},I.prototype._getScrollTopByIndex=function(e){if(0===e)return 0;if(!(this._isLoadMoreOnScroll()&&e>this.options.scrollPolicyOptions.maxCount)){var t=this._getTableBodyRows()[e];return null!=t?this._getLayoutManager().getRowScrollTop(t):this._hasMoreToFetch()?-1:void 0}},I.prototype._getScrollTopByKey=function(e){var t=this._findRowElementByKey(e);return null!=t?this._getLayoutManager().getRowScrollTop(t):this._hasMoreToFetch()?-1:void 0},I.prototype._getScrollLeftByIndex=function(e){return this._getLayoutManager().getColumnScrollLeft(e)},I.prototype._getScrollLeftByKey=function(e){var t=this._getColumnIdxForColumnKey(e);return this._getScrollLeftByIndex(t)},I.prototype._getScrollCoordinates=function(e){var t,o,i=this._getLayoutManager();if(!i.hasRenderedSize())return{x:0,y:0};var l=e.rowKey;null!=l&&(t=this._getScrollTopByKey(l));var n=e.columnKey;null!=n&&(o=this._getScrollLeftByKey(n));var s=e.rowIndex;isNaN(t)&&!isNaN(s)&&(t=this._getScrollTopByIndex(s));var a=e.columnIndex;isNaN(o)&&!isNaN(a)&&(o=this._getScrollLeftByIndex(a));var r=e.offsetX;!isNaN(o)&&!isNaN(r)&&o>=0&&(o+=r);var _=e.offsetY;return!isNaN(t)&&!isNaN(_)&&t>=0&&(t+=_),isNaN(o)&&!isNaN(e.x)&&(o=Math.max(0,e.x)),isNaN(t)&&!isNaN(e.y)&&(t=e.y>i.getScrollHeight()?this._hasMoreToFetch()?-1:i.getScrollHeight()-i.getClientHeight():Math.max(0,e.y)),{x:o,y:t}},I.prototype._getCurrentHorizontalScrollPosition=function(e){var t=null==e?this._scrollLeft:e,o={x:null==t?0:t},i=this.option("scrollPosition"),l=Math.abs(i.x-o.x);if(l<1&&null!=i.columnKey&&!isNaN(i.columnIndex))return o.columnKey=i.columnKey,o.columnIndex=i.columnIndex,o.offsetX=i.offsetX+l,o;var n=this._getColumnLocations();if(n&&n.length>0){var s,a=n.length-1;for(s=0;s<n.length-1;s++)if(o.x>=n[s]&&o.x<n[s+1]){a=s;break}o.columnKey=this._getColumnDefs()[a].id,o.columnIndex=a,o.offsetX=o.x-n[a]}return o},I.prototype._getCurrentVerticalScrollPosition=function(e){var t=null==e?this._scrollTop:e,o={y:null==t?0:t},i=this._findClosestElementToTop(o);return null!=i&&(o.rowIndex=i.index,o.rowKey=this._getRowKeyForRowIdx(i.index),o.offsetY=i.offset),o},I.prototype._getCurrentScrollPosition=function(e,t){if(!this._getLayoutManager().hasRenderedSize())return{x:0,y:0};var o=this._getCurrentHorizontalScrollPosition(e),i=this._getCurrentVerticalScrollPosition(t);return Object.keys(i).forEach(function(e){o[e]=i[e]}),o},I.prototype._getColumnLocations=function(){if(null==this._columnOffsets){this._columnOffsets=[];var e=this._getTableHeaderColumns();if(e&&e.length>0){var t=this._getScrollLeftByIndex(0);this._columnOffsets.push(0);for(var o=1;o<e.length;o++)this._columnOffsets.push(this._getScrollLeftByIndex(o)-t)}}return this._columnOffsets},I.prototype._findClosestElementToTop=function(e){var t,o=this._getLayoutManager(),i=this._getTableBodyRows(),l=i.length,n=o.getScrollHeight();if(0===l||0===n)return null;var s=e.y,a=this.option("scrollPosition");t=Math.abs(a.y-s)<I.DEFAULT_ROW_HEIGHT_GUESS&&null!=a.rowKey&&!isNaN(a.rowIndex)?a.rowIndex:Math.floor(s/n*l);var r=i[t=Math.min(Math.max(t,0),l-1)],_=o.getRowScrollTop(r),h=s-_,d={index:t,elem:r,offsetTop:_,offset:h};if(Math.abs(h)<1)return d;var u=h>0;for(u?t+=1:t-=1;t>=0&&t<l;){var c=_;if(r=i[t],_=o.getRowScrollTop(r),(h=Math.abs(s-_))<1||(u?s<=_:s>=_)){d=h<1||!u?{index:t,elem:r,offsetTop:_,offset:h}:{index:t-1,elem:i[t-1],offsetTop:c,offset:s-c};break}u?t+=1:t-=1}return d},I.prototype._registerDomEventListeners=function(){this._getLayoutManager().registerScrollListeners()},I.prototype._isTableActionableMode=function(){return null!=this._active&&this._active.isActionable},I.prototype._isTableEditMode=function(){return this.options.editMode===I._OPTION_EDIT_MODE._ROW_EDIT},I.prototype._toggleTableActionableMode=function(){this._isTableActionableMode()?this._setTableActionableMode(!1):this._setTableActionableMode(!0)},I.prototype._setTableActionableMode=function(e,t){var o;e&&!this._isTableActionableMode()?(o=this._hasActiveHeader()?this._getTableHeaderRow():this._hasActiveFooter()?this._getTableFooterRow():this._getActiveElement(),this._clearAccStatusInfo(),this._applyActionableMode(o,t)):!e&&this._isTableActionableMode()&&(this._active.isActionable=!1,!t&&S.contains(this._getTable(),document.activeElement)&&this._getTable().focus(),null!=(o=this._hasActiveHeader()?this._getTableHeaderRow():this._hasActiveFooter()?this._getTableFooterRow():this._getActiveElement())&&b.disableAllFocusableElements(o,null,!0))},I.prototype._applyActionableMode=function(e,t){var o=this._getActiveElement();if(null!=o){b.enableAllFocusableElements(e);var i=b.getFocusableElementsInNode(o);i.length>0&&(this._active.isActionable=!0,this._focusOutHandler(S(o)),t||i[0].focus())}},I.prototype._getEditableRowIdx=function(){if(null!=this._getEditableRowKey()){var e=this._getRowIdxForRowKey(this._getEditableRowKey());if(null!==e)return e}return this._editableRowIdx},I.prototype._getEditableRowKey=function(){return this._editableRowKey},I.prototype._hasEditableRow=function(){return!!this._isTableEditMode()&&null!==this._getEditableRowIdx()},I.prototype._setEditRow=function(e){if(this._isTableEditMode()){var t=e.rowKey,o=e.rowIndex;if(null!=t||o>-1){var i=this._setCurrentRow({rowKey:t,rowIndex:o});if(i===I._CURRENT_ROW_STATUS._UPDATED)this._setTableEditable(!0,!1,0,!0,null);else if(i===I._CURRENT_ROW_STATUS._IGNORED){var l=this._scrollTop;this._syncScrollPosition({rowKey:t,rowIndex:o})||(this._editRowCallback=function(){this._scrollTop!==l&&this._setEditRow(e)}.bind(this))}}else this._setTableEditable(!1,!1,0,!0,null)}},I.prototype._getRowToBeEdited=function(e){const t=e.rowKey,o=e.rowIndex;return null!=t?this._findRowElementByKey(t):o>-1?this._getTableBodyRow(o):null},I.prototype._setEditableRowIdx=function(e){this._editableRowKey=this._getRowKeyForRowIdx(e),this._editableRowIdx=e},I.prototype._setAdjacentRowEditable=function(e,t,o,i){var l=this._getEditableRowIdx(),n=this._setTableEditable(!1,!1,e,o,i);n instanceof Promise?n.then(function(){this._queueTask(function(){this._handleAdjacentEditEndSuccessful(e,l,o,i)}.bind(this))}.bind(this),function(){this._queueTask(function(){this._handleEditEndRejected(t,l,!o)}.bind(this))}.bind(this)):!1===n?this._handleEditEndRejected(t,l,!o):this._handleAdjacentEditEndSuccessful(e,l,o,i)},I.prototype._handleAdjacentEditEndSuccessful=function(e,t,o,i){var l=this._getTableBodyRows(),n=this._findAdjacentEditableRow(t,l,o);null!==n?(this._setActiveRow(n,i,!0,!1,!0),this._setTableEditable(!0,!1,e,o,i)):this._getTable().focus()},I.prototype._findAdjacentEditableRow=function(e,t,o){if(o)for(let o=e+1;o<t.length;o++){if(t[o][I._DATA_OJ_EDITABLE]!==I._CONST_OFF)return o}else for(let o=e-1;o>=0;o--){if(t[o][I._DATA_OJ_EDITABLE]!==I._CONST_OFF)return o}return null},I.prototype._handleEditEndRejected=function(e,t,o){this._setCellInRowFocus(t,e,o)},I.prototype._fireEditRowChangeEvent=function(e,t){this._queueTask(function(){this.option("editRow",e,{_context:{originalEvent:t,internalSet:!0,writeback:!0}})}.bind(this))},I.prototype._setTableEditable=function(e,t,o,i,l,n){if(this._isTableEditMode()&&!this._isEditPending){var s=this._getData()instanceof u.TableDataSourceAdapter,a=this._getCurrentRow();if(null!=a){const u=this._getRowToBeEdited(a);if(u&&u[I._DATA_OJ_EDITABLE]!==I._CONST_OFF){var r,_,h,d,c=a.rowKey,S=this._getRowIdxForRowKey(c),E=[],C=this._getEditableRowIdx();try{if(e&&!this._hasEditableRow())r=this._getTableBodyRow(S),(_=this._getRendererContextObject(r,{row:{key:c,index:a.rowIndex},isCurrentRow:!0})).item=r[I._ROW_ITEM_EXPANDO],(h=this._trigger("beforeRowEdit",l,{accept:function(e){E.push(e)},rowContext:_}))&&(d={rowKey:c,rowIndex:S});else{if(e||!this._hasEditableRow())return;r=this._getTableBodyRow(this._getEditableRowIdx()),c=this._getRowKeyForRowIdx(this._getEditableRowIdx()),(_=this._getRendererContextObject(r,{row:{key:c,index:this._getDataSourceRowIndexForRowKey(c)},isCurrentRow:!0})).item=r[I._ROW_ITEM_EXPANDO],(h=this._trigger("beforeRowEditEnd",l,{accept:function(e){E.push(e)},cancelEdit:t,rowContext:_}))&&(d={rowKey:null,rowIndex:-1})}}catch(e){return!1}if(!h)return this._syncActiveElement(),!1;if(0!==E.length)return this._isEditPending=!0,this._insertSkeletonRow(S),this._getTable().focus(),this._queueTask(function(){return Promise.all(E).then(function(){if(this._removeSkeletonRow(S),d&&this._fireEditRowChangeEvent(d,l),e)return this._setEditableRowIdx(S),this._getTable().setAttribute(I.DOM_ATTR._ARIA_LABELLEDBY,""),this._accStatus.setAttribute(I.DOM_ATTR._ARIA_LABELLEDBY,""),this._refreshRow(S,!0,!1,!s).then(function(){if((this._setCellInRowFocus(S,o,i),null!=C)&&null!=this._getTableBodyRow(C))return this._refreshRow(C,!1).then(function(){this._isEditPending=!1}.bind(this));return this._isEditPending=!1,Promise.resolve()}.bind(this));if((this._focusEditCell=null,this._setEditableRowIdx(null),n||this._getTable().focus(),null!=C)&&null!=this._getTableBodyRow(C))return this._refreshRow(C,!1).then(function(){this._isEditPending=!1}.bind(this));return this._isEditPending=!1,Promise.resolve()}.bind(this),function(){return this._removeSkeletonRow(S),e&&null==C&&this._syncActiveElement(),this._isEditPending=!1,!1}.bind(this))}.bind(this)),Promise.all(E);if(d&&this._fireEditRowChangeEvent(d,l),e?(this._setEditableRowIdx(S),this._getTable().setAttribute(I.DOM_ATTR._ARIA_LABELLEDBY,""),this._accStatus.setAttribute(I.DOM_ATTR._ARIA_LABELLEDBY,""),this._queueTask(function(){return this._refreshRow(S,!0,!1,!s).then(function(){this._setCellInRowFocus(S,o,i)}.bind(this))}.bind(this))):(this._focusEditCell=null,this._setEditableRowIdx(null),n||this._getTable().focus()),null!=C)null!=this._getTableBodyRow(C)&&this._queueTask(function(){return this._refreshRow(C,!1)}.bind(this))}}}},I.prototype._handleAddRow=function(e,t){let o=[];this._trigger("beforeRowAddEnd",t,{accept:function(e){o.push(e)},cancelAdd:e})&&(this._setTableActionableMode(!1),0!==o.length?(this._insertSkeletonRow(-1),this._getTable().focus(),this._queueTask(function(){return Promise.all(o).then(function(){return this._removeSkeletonRow(-1),this._refreshAddNewRowPlaceholder().then(function(){let t=this._getPlaceHolderRow();this._getLayoutManager()._initializeFrozenColumns(!1,t),this._setActiveAddRow(),this._setTableActionableMode(!e)}.bind(this))}.bind(this),function(){this._removeSkeletonRow(-1),this._setActiveAddRow(),this._setTableActionableMode(!0)}.bind(this))}.bind(this))):this._refreshAddNewRowPlaceholder().then(function(){let t=this._getPlaceHolderRow();this._getLayoutManager()._initializeFrozenColumns(!1,t),this._setActiveAddRow(),this._setTableActionableMode(!e)}.bind(this)))},I._KEYBOARD_CODES={_MODIFIER_SHIFT:"shiftKey"},I.prototype._getKeyboardKeys=function(){return this._keyboardKeys||(this._keyboardKeys=[]),this._keyboardKeys.reverse()},I.prototype._addKeyboardKey=function(e){var t,o=!1,i=Object.keys(b.KEYBOARD_KEYS);for(t=0;t<i.length;t++){var l=i[t];if(b.KEYBOARD_KEYS[l]===e){o=!0;break}}if(o){var n=this._getKeyboardKeys(),s=!1,a=n.length;for(t=0;t<a;t++)if(n[t]===e){s=!0;break}s||n.push(e)}},I.prototype._isKeyPressMatch=function(e){for(var t=this._getKeyboardKeys(),o=0;o<t.length;o++)if(e(t[o]))return!0;return!1},I.prototype._removeKeyboardKey=function(e){for(var t=this._getKeyboardKeys(),o=t.length,i=0;i<o;i++)t[i]===e&&t.splice(i,1)},I.prototype._clearKeyboardKeys=function(){this._keyboardKeys=[]},I.prototype._handleKeydownLeftRight=function(e,t){if(!this._isTableActionableMode()&&!this._hasEditableRow()){var o,i,l="rtl"===this._GetReadingDirection(),n=this._isKeyPressMatch(b.isArrowLeftKeyEvent),s=l&&n||!l&&!n,a=this._getActiveHeaderIndex();if(null!=a)return o=!t||this._isNavigate||null==this._lastSelectedHeaderIdx?a:this._lastSelectedHeaderIdx,i=this._getNextVisibleColumnIndex(o,s),void(t?(this._isNavigate=!1,this._selectRange(a,Math.max(0,i),!1),this._scrollColumnIntoViewport(i)):(this._isNavigate=!0,i!==a&&this._setActiveHeader(i,e)));var r=this._getActiveFooterIndex();if(null!=r)return o=!t||this._isNavigate||null==this._lastSelectedFooterIdx?r:this._lastSelectedFooterIdx,i=this._getNextVisibleColumnIndex(o,s),void(t?(this._isNavigate=!1,this._selectRange(r,Math.max(0,i),!1),this._scrollColumnIntoViewport(i)):(this._isNavigate=!0,i!==r&&this._setActiveFooter(i,e)));this._updateAccStatusInfo(this._getNextVisibleColumnIndex(this._accColumnIndex,s))}},I.prototype._handleKeydownUpDown=function(e,t){if(!this._isTableActionableMode()&&!this._hasEditableRow()){null==this._active&&this._syncActiveElement();var o=this._isKeyPressMatch(b.isArrowUpKeyEvent),i=this._getFirstVisibleColumnIndex(0,!0);if(E.isMetaKeyPressed(e))o&&null==this._getActiveHeaderIndex()?this._setActiveHeader(i,e):o||null!=this._getActiveFooterIndex()||this._setActiveFooter(i,e);else{var l=this._getActiveRowIndex();if(null==l)o||null==this._getActiveHeaderIndex()?o&&null!=this._getActiveFooterIndex()?this._getTableBodyRows().length>0?this._setActiveRow(this._getTableBodyRows().length-1,e,!0,null,null,!0):this._setActiveNoData():this._hasActiveAddRow()?o?this._setActiveHeader(i,e):this._getTableBodyRows().length>0?this._setActiveRow(0,e,!0,null,null,!0):this._setActiveNoData():this._hasActiveNoData()&&(o?this._isAddNewRowEnabled()?this._setActiveAddRow():this._setActiveHeader(i,e):this._setActiveFooter(i,e)):this._isAddNewRowEnabled()?this._setActiveAddRow():this._getTableBodyRows().length>0?this._setActiveRow(0,e,!0,null,null,!0):this._setActiveNoData();else{var n,s,a=this._getTableBodyRows().length;if(n=!t||this._isNavigate||null==this._lastSelectedRowIdx?l:this._lastSelectedRowIdx,s=o?n>0?n-1:n:n<a-1?n+1:n,t)this._isNavigate=!1,this._selectRange(l,s,!0),this._scrollRowIntoViewport(s,!0);else if(this._isNavigate=!0,s!==l){if(!this._setActiveRow(s,e,!0,null,null,!0))return;this._getTable().focus()}else 0===s&&o?this._isAddNewRowEnabled()?this._setActiveAddRow():this._setActiveHeader(i,e):s!==a-1||o||this._setActiveFooter(i,e)}}}},I.prototype._handleKeydownTab=function(e){this._isTableTab=!0;var t,o=this._getActiveRowIndex(),i=this._getTableBody(),l=document.activeElement;if(null!=o&&this._getEditableRowIdx()===o){var n=this._getTableBodyRow(o),s=b.getFocusableElementsInNode(n),a=s.length,r=S(s).index(l),_=this._getTableHeaderColumns(),h=_?_.length-1:0;r!==a-1||e[I._KEYBOARD_CODES._MODIFIER_SHIFT]?0===r&&e[I._KEYBOARD_CODES._MODIFIER_SHIFT]&&(this._setAdjacentRowEditable(h,0,!1,e),e.preventDefault(),e.stopPropagation()):(this._setAdjacentRowEditable(0,h,!0,e),e.preventDefault(),e.stopPropagation())}else if(this._isTableActionableMode()){var d,u;if(d=this._hasActiveHeader()?this._getTableHeaderRow():this._hasActiveFooter()?this._getTableFooterRow():this._getActiveElement(),(t=b.getFocusableElementsInNode(d)).length>1){if(e[I._KEYBOARD_CODES._MODIFIER_SHIFT]){if(l===t[0])S(t[t.length-1]).focus(),e.preventDefault(),e.stopPropagation();else for(u=0;u<t.length;u++)if(l===t[u]){t[u-1].focus(),e.preventDefault(),e.stopPropagation();break}}else if(l===t[t.length-1])S(t[0]).focus(),e.preventDefault(),e.stopPropagation();else for(u=0;u<t.length;u++)if(l===t[u]){t[u+1].focus(),e.preventDefault(),e.stopPropagation();break}}else e.preventDefault(),e.stopPropagation()}else{!b.isFirefox()||this._isStickyLayoutEnabled()||e[I._KEYBOARD_CODES._MODIFIER_SHIFT]||(this._tempFFFocus=!0,i.focus());var c=e.key||e.keyCode;this._removeKeyboardKey(c)}},I.prototype._handleKeydownEnter=function(e){if(!(this._isTableActionableMode()&&!this._hasActiveAddRow()||b.isEventClickthroughDisabled(e,this._getTable()))){var t=this._getActiveHeaderIndex();if(null!=t){if(-1!==t&&this._getColumnDefs()[t].sortable===I._OPTION_ENABLED){var o=this._getTableHeaderColumn(t),i=S(o).data("sorted");null==i||i===I._COLUMN_SORT_ORDER._DESCENDING?this._handleSortTableHeaderColumn(t,!0,e):this._handleSortTableHeaderColumn(t,!1,e)}}else if(null==this._getActiveFooterIndex()){var l=this._getCurrentRow(),n=null!=(l=l||{}).rowIndex?l.rowIndex:-1;if(n>=0)if(this._isTableEditMode()){if(!this._hasEditableRow())return void this._setTableEditable(!0,!1,0,!0,e);var s=this._getElementColumnIdx(e.target);e[I._KEYBOARD_CODES._MODIFIER_SHIFT]?this._setAdjacentRowEditable(s,s,!1,e):this._setAdjacentRowEditable(s,s,!0,e)}else this._fireActionEvent(n,e,!1),this._setTableActionableMode(!0);else this._hasActiveAddRow()&&this._isTableActionableMode()&&this._handleAddRow(!1,e)}}},I.prototype._handleKeydownSpacebar=function(e){if(!this._isTableActionableMode()&&!this._hasEditableRow()){e.preventDefault(),e.stopPropagation();var t=this._getActiveRowIndex();if(null==t){var o=this._getActiveHeaderIndex();if(null==o){var i=this._getActiveFooterIndex();null!=i&&this._handleSelectionGesture(i,!1,!0)}else-1!==o?this._handleSelectionGesture(o,!1,!0):this._isSelectAllControlVisible()&&this._handleSelectAllGesture()}else this._handleSelectionGesture(t,!0,!0)}},I.prototype._handleKeydownF2=function(e){e.preventDefault(),e.stopPropagation(),this._isTableEditMode()?this._hasEditableRow()?this._setTableEditable(!1,!1,0,!0,e):(this._setTableEditable(!0,!1,0,!0,e),this._hasEditableRow()||this._toggleTableActionableMode()):this._toggleTableActionableMode()},I.prototype._handleKeydownEsc=function(e){this._hasEditableRow()?(e.preventDefault(),e.stopPropagation(),this._setTableEditable(!1,!0,0,!0,e)):this._isTableActionableMode()&&(e.preventDefault(),e.stopPropagation(),this._setTableActionableMode(!1)),this._getLayoutManager().handleKeyDownEsc()},I.prototype._handleKeydownHome=function(e){if(!this._isTableActionableMode()&&!this._hasEditableRow())if(null==this._active&&this._syncActiveElement(),this._hasActiveHeader()||this._hasActiveFooter()){var t=this._getFirstVisibleColumnIndex(0,!0);this._hasActiveHeader()?this._setActiveHeader(t,e):this._setActiveFooter(t,e)}else this._hasActiveRow()&&this._setActiveRow(0,e,!0)},I.prototype._handleKeydownEnd=function(e){if(!this._isTableActionableMode()&&!this._hasEditableRow())if(null==this._active&&this._syncActiveElement(),this._hasActiveHeader()||this._hasActiveFooter()){var t=this._getNextVisibleColumnIndex(this._getColumnDefs().length,!1);this._hasActiveHeader()?this._setActiveHeader(t,e):this._setActiveFooter(t,e)}else if(this._hasActiveRow()){var o=this._getTableBodyRows().length;this._setActiveRow(o-1,e,!0)}},I.prototype._columnHeaderDefaultRenderer=function(e,t){var o=e.headerContext.parentElement,i=document.createElement(I.DOM_ELEMENT._DIV);i.classList.add(I.CSS_CLASSES._COLUMN_HEADER_CLASS),S(o).empty(),o.appendChild(i);var l=document.createElement(I.DOM_ELEMENT._DIV);l.classList.add(I.CSS_CLASSES._COLUMN_HEADER_TEXT_CLASS),i.insertBefore(l,i.firstChild),null!=t?t(S(l)):this._columnHeaderDefaultTextRenderer(l,e)},I.prototype._columnHeaderSortableIconRenderer=function(e,t){var o=e.headerContext.parentElement,i=document.createElement(I.DOM_ELEMENT._DIV);i.classList.add(I.CSS_CLASSES._COLUMN_HEADER_CLASS),S(o).empty(),o.appendChild(i);var l=document.createElement(I.DOM_ELEMENT._DIV);l.classList.add(I.CSS_CLASSES._TABLE_SORT_ICON_CONTAINER_CLASS),l.setAttribute(I.DOM_ATTR._TITLE,this.getTranslatedString("labelSortAsc")),l.setAttribute(I.DOM_ATTR._ARIA_HIDDEN,"true"),this._AddHoverable(S(l)),i.appendChild(l);var n=document.createElement(I.DOM_ELEMENT._DIV);n.classList.add(I.CSS_CLASSES._WIDGET_ICON_CLASS),n.classList.add(I.CSS_CLASSES._COLUMN_HEADER_DEFAULT_SORT_ICON_CLASS),n.classList.add(I.MARKER_STYLE_CLASSES._DISABLED),n.classList.add(I.MARKER_STYLE_CLASSES._CLICKABLE_ICON),this._AddHoverable(S(n)),l.appendChild(n);var s=document.createElement(I.DOM_ELEMENT._DIV);s.classList.add(I.CSS_CLASSES._COLUMN_HEADER_TEXT_CLASS),i.insertBefore(s,i.firstChild),null!=t?t(S(s)):this._columnHeaderDefaultTextRenderer(s,e)},I.prototype._columnHeaderDefaultTextRenderer=function(e,t){var o=t.columnIndex,i=this._getColumnDefs()[o],l=null==i.headerText?"":i.headerText;if(e.appendChild(document.createTextNode(l)),!0===i.showRequired&&this._isStickyLayoutEnabled()){var n=e.parentElement,s=this._createRequiredIconDomElement();n.childNodes.length>1?n.insertBefore(s,n.childNodes[1]):n.appendChild(s)}},I.prototype._createRequiredIconDomElement=function(){var e=document.createElement(I.DOM_ELEMENT._SPAN);return e.className=I.CSS_CLASSES._COLUMN_HEADER_SHOW_REQUIRED_ICON_CLASS,e.setAttribute(I.DOM_ATTR._ROLE,"img"),e.setAttribute(I.DOM_ATTR._TITLE,this.getTranslatedString("tooltipRequired")),e},I.prototype._tableBodyRowDefaultRenderer=function(e,t,o){for(var i=this._hashCode(t.key),l=this._getColumnDefs().length,n=0;n<l;n++)this._tableBodyCellDefaultRenderer(e,n,t,i,o)},I.prototype._tableBodyCellDefaultRenderer=function(e,t,o,i,l){var n=l.rowContext.parentElement,s=this._getColumnDefs()[t],a=this._createTableBodyCell();this._styleTableBodyCell(t,a,!0),this._insertTableBodyCell(e,o.key,i,t,a,n,!0);var r=null;null!=s.field&&(r=this._getObjectPath(o.data,s.field));var _=this._getColumnRenderer(t,"cell"),h=this._getSlotTemplate(s.template);if(null==h&&this._isDefaultCellTemplateSlotValid()&&(h=this._getSlotTemplate("cellTemplate")),_||h){var d=this._getRendererContextObject(a,{row:o});d.rowEditable=n[I._DATA_OJ_EDITABLE];var u={cellContext:d,columnIndex:t,data:r,row:o.data,componentElement:d.componentElement,parentElement:d.parentElement};if(_){var c=_(u);null!=c?S(a).append(c):(a=S(n).children()[t],this._setTableBodyCellAttributes(e,o.key,i,t,a),this._styleTableBodyCell(t,a,!1))}else{var E=this._getRootElement(),C=this._getTemplateEngine();if(null!=C){var T=this._getTableBody(),p=this._getCellSlotTemplateContextObject(u),g=C.execute(E,h,p,this.options.as,T);g instanceof Array||(g=[g]),g.map(function(e){a.appendChild(e)}),this._hasCellTemplate=!0}}}else{var A=null==(r=this._getVal(r))?"":r;if(a.appendChild(document.createTextNode(A)),b.isIos()){a.setAttribute(I.DOM_ATTR._ROLE,"text");var f=this._getVoiceOverCellLabelledby(a,t);a.setAttribute(I.DOM_ATTR._ARIA_LABELLEDBY,f)}}},I.prototype._getRendererContextObject=function(e,t){var o={component:f.__GetWidgetConstructor(this.element,"ojTable")},i=this.options.data;if(this._isPagingModelTableDataSource()&&(i=i.getWrappedDataSource()),o.datasource=i,o.parentElement=e,null!=t.row){var l=t.row,n=l.key;if(o.status=this._getRendererStatusObject(l),this._hasEditableRow()){var s=this._getEditableRowKey();u.Object.compareValues(n,s)?o.mode="edit":o.mode="navigation"}else o.mode="navigation";this._copyMetadata(o,l)}return this._FixRendererContext(o)},I.prototype._getRendererStatusObject=function(e){return{rowIndex:e.index,rowKey:e.key,currentRow:S.extend({},this._getCurrentRow())}},I.prototype._getCellSlotTemplateContextObject=function(e,t){var o=this._getSlotTemplateContextObject(),i=e.columnIndex;if(!t){var l=e.cellContext.status.rowIndex,n=e.cellContext.status.rowKey;o[I._CONST_DATA]=e.data,o.row=e.row,o[I._CONST_INDEX]=l,o.mode=e.cellContext.mode,o[I._CONST_KEY]=n;const t=e.parentElement.parentElement;o.item=t[I._ROW_ITEM_EXPANDO],o.rowEditable=this._invokeRowEditableCallback(t[I._ROW_ITEM_EXPANDO])}o.columnIndex=i,o.columnKey=this._getColumnKeyForColumnIdx(e.columnIndex);var s=this.options.data;return this._isPagingModelTableDataSource()&&(s=s.getWrappedDataSource()),o.datasource=s,o},I.prototype._getRowSlotTemplateContextObject=function(e,t){var o=this._getSlotTemplateContextObject();t||(o[I._CONST_DATA]=e.data,o[I._CONST_INDEX]=e.rowContext.status.rowIndex,o[I._CONST_KEY]=e.rowContext.status.rowKey,o.mode=e.rowContext.mode,o.item=e.parentElement[I._ROW_ITEM_EXPANDO],o.editable=this._invokeRowEditableCallback(e.parentElement[I._ROW_ITEM_EXPANDO]),o.rowContext=e.rowContext);var i=this.options.data;return this._isPagingModelTableDataSource()&&(i=i.getWrappedDataSource()),o.datasource=i,o},I.prototype._getHeaderSlotTemplateContextObject=function(e,t){var o=this._getSlotTemplateContextObject();return o[I._CONST_DATA]=e,o.columnIndex=t,o.headerText=e,o.columnKey=this._getColumnKeyForColumnIdx(t),o},I.prototype._getFooterSlotTemplateContextObject=function(e){var t=this._getSlotTemplateContextObject();return t.columnIndex=e,t.columnKey=this._getColumnKeyForColumnIdx(e),t},I.prototype._getSlotTemplateContextObject=function(){return{componentElement:this._getRootElement()}},I.prototype._copyMetadata=function(e,t){var o=t.metadata;if(o)for(var i=Object.keys(o),l=0;l<i.length;l++){var n=i[l];e[n]=o[n]}},I.prototype._getObjectPath=function(e,t){if(null!=e&&("string"==typeof t||t instanceof String)&&(-1!==t.indexOf(".")||-1!==t.indexOf("[")&&-1!==t.indexOf("]"))){var o=e,i=!1;if(t.split(".").map(function(e){if(null!=o&&-1!==e.indexOf("[")&&-1!==e.indexOf("]")){var t=e.substr(0,e.indexOf("[")),l=parseInt(e.substr(e.indexOf("[")+1,e.indexOf("]")-e.indexOf("[")-1),10);o=o[t][l],i=!0}else null!==o&&void 0!==o[e]&&(o=o[e],i=!0)}),i)return o}else if(null==e)return null;return e[t]},I.prototype._getVal=function(e){return"function"==typeof e?e():e},I.prototype._getRowSelectionMode=function(){return null==this.options.selectionMode?null:this.options.selectionMode[I._CONST_ROW]},I.prototype._isRowSelectionEnabled=function(){var e=this._getRowSelectionMode();return e===I._OPTION_SELECTION_MODES._SINGLE||e===I._OPTION_SELECTION_MODES._MULTIPLE},I.prototype._getColumnSelectionMode=function(){return null==this.options.selectionMode?null:this.options.selectionMode[I._CONST_COLUMN]},I.prototype._isColumnSelectionEnabled=function(){var e=this._getColumnSelectionMode();return e===I._OPTION_SELECTION_MODES._SINGLE||e===I._OPTION_SELECTION_MODES._MULTIPLE},I.prototype._syncSelectionState=function(){var e=this.option("selected"),t=this.option("selection");this._selectionSet&&(e=this._getSelectedEquivalent(t),this._syncRangeSelection()),this._isSelectionRequiredSatisfied(e)?this._setSelected(e,this._selectionSet):this._selectFirstRowOrColumn()},I.prototype._updateSelectionStateFromEventDetailRemove=function(e,t){var o=this.option("selected"),i=o.row;i&&(e[I._CONST_KEYS].forEach(function(e){null!=t&&t[I._CONST_KEYS].has(e)||(i.isAddAll()?i.has(e)||(i=i.add([e])):i=i.delete([e]))}),o.row!==i&&(o={row:i,column:o.column},this._isSelectionRequiredSatisfied(o)?this._setSelected(o):this._selectFirstRowOrColumn()))},I.prototype._updateSelectionStateFromEventDetailChange=function(e){var t=this.option("firstSelectedRow");if(null!=t){var o=[];e[I._CONST_KEYS].forEach(function(e){o.push(e)});for(var i=0;i<o.length;i++){var l=o[i],n=e[I._CONST_DATA][i];if(u.KeyUtils.equals(l,t.key)&&this.option("firstSelectedRow",{key:l,data:n},{_context:{writeback:!0,internalSet:!0}}),null!=this._validatedSelectedRowKeyData)for(var s=0;s<this._validatedSelectedRowKeyData.length;s++){var a=this._validatedSelectedRowKeyData[s];if(u.KeyUtils.equals(l,a.key)){this._validatedSelectedRowKeyData[s]=n;break}}}}},I.prototype._validateInitialSelectionState=function(e){var t,o,i=this.option("selection"),l=this.option("selected"),n=l.row,s=l.column;if(this._validatedSelectedRowKeyData=null,(this._selectionSet||!e&&null!=i&&0!==i.length&&n===n.clear()&&s===s.clear())&&(l=this._getSelectedEquivalent(i),t=!0),this._isSelectionRequired())if((o=this._validateSelected(l)).isLocal)this._enforceSelectionRequired(l,o.result,t);else{var a=this._createComponentBusyState("is validating selection-required keys.");o.result.then(function(e){this._enforceSelectionRequired(l,e,t),this._clearComponentBusyState(a)}.bind(this))}else t&&this._syncRangeSelection(),this._setSelected(l,t);this._initialSelectionStateValidated=!0},I.prototype._isSelectionRequired=function(){return"true"===String(this.options.selectionRequired).toLowerCase()},I.prototype._hasSelected=function(e){null==e&&(e=this.option("selected"));var t=e.row,o=e.column;return t.isAddAll()||t.values().size>0||o.isAddAll()||o.values().size>0},I.prototype._isSelectionRequiredSatisfied=function(e){return!this._isSelectionRequired()||this._hasSelected(e)},I.prototype._enforceSelectionRequired=function(e,t,o){o?this._hasSelected(t)?t.row===e.row&&t.column===e.column?(this._syncRangeSelection(),this._setSelected(t,!0)):this._setSelected(t):this._selectFirstRowOrColumn():this._hasSelected(t)?this._setSelected(t):this._selectFirstRowOrColumn()},I.prototype._selectFirstRowOrColumn=function(){var e,t;if(this._isRowSelectionEnabled()&&null!=(t=this._getRowKeyForRowIdx(0)))return e=new y.KeySetImpl([t]),void this._setSelected({row:e,column:new y.KeySetImpl});this._isColumnSelectionEnabled()&&null!=(t=this._getColumnKeyForColumnIdx(0))&&(e=new y.KeySetImpl([t]),this._setSelected({row:new y.KeySetImpl,column:e}))},I.prototype._validateSelected=function(e){var t=e.column,o=t;if(!t.isAddAll()){var i=this._getColumnKeys(),l=[];t.values().forEach(function(e){-1===i.indexOf(e)&&l.push(e)}),l.length>0&&(o=o.delete(l))}var n=e.row,s=n;if(!n.isAddAll()){var a=this._getLocalRowKeys(),r=[];if(n.values().forEach(function(e){-1===a.indexOf(e)&&r.push(e)}),r.length>0){var _=this._fetchValidRowKeyData(r);if(_)return{isLocal:!1,result:_.then(function(e){return this._validatedSelectedRowKeyData=e,e.forEach(function(e){r.splice(r.indexOf(e.key),1)}),{row:s=s.delete(r),column:o}}.bind(this))};s=s.delete(r)}}return{isLocal:!0,result:{row:s,column:o}}},I.prototype._fetchValidRowKeyData=function(e){var t=this._getData();if(t&&t.getCapability){var o=t.getCapability("fetchByKeys");if(o&&"lookup"===o.implementation)return new Promise(function(o){t.fetchByKeys({keys:new Set(e),scope:"global"}).then(function(e){var t=[];e.results.forEach(function(e,o){t.push({key:o,data:e.data})}),o(t)},function(){o([])})})}return null},I.prototype._syncRangeSelection=function(e){if(void 0===e&&(e=this.option("selection")),null!=e)for(var t=e.length,o=0;o<t;o++){var i,l,n,s,a=e[o];null!=a.startKey&&null!=a.startKey[I._CONST_ROW]?(i=a.startKey[I._CONST_ROW],l=this._getDataSourceRowIndexForRowKey(i),a.startIndex={},a.startIndex[I._CONST_ROW]=l):null!=a.startIndex&&null!=a.startIndex[I._CONST_ROW]&&(l=a.startIndex[I._CONST_ROW],null!=(i=this._getRowKeyForDataSourceRowIndex(l))&&(a.startKey={},a.startKey[I._CONST_ROW]=i)),null!=a.endKey&&null!=a.endKey[I._CONST_ROW]?(n=a.endKey[I._CONST_ROW],s=this._getDataSourceRowIndexForRowKey(n),a.endIndex={},a.endIndex[I._CONST_ROW]=s):null!=a.endIndex&&null!=a.endIndex[I._CONST_ROW]&&(s=a.endIndex[I._CONST_ROW],null!=(n=this._getRowKeyForDataSourceRowIndex(s))&&(a.endKey={},a.endKey[I._CONST_ROW]=n))}},I.prototype._processRowRangeSelection=function(e,t,o){var i,l,n,s,a,r,_=!0;if(null!=e.startKey&&null!=e.startKey[I._CONST_ROW]?(a=e.startKey[I._CONST_ROW],i=this._getDataSourceRowIndexForRowKey(a),isNaN(i)&&(_=null)):null!=e.startIndex&&null!=e.startIndex[I._CONST_ROW]&&(i=e.startIndex[I._CONST_ROW]),null!=e.endKey&&null!=e.endKey[I._CONST_ROW])r=e.endKey[I._CONST_ROW],null===(l=this._getDataSourceRowIndexForRowKey(r))&&this._isLoadMoreOnScroll()&&(l=this._getDataSourceLastFetchedRowIndex(),_=null);else if(null!=e.endIndex&&null!=e.endIndex[I._CONST_ROW]){l=e.endIndex[I._CONST_ROW];var h=this._getDataSourceLastFetchedRowIndex();this._isLoadMoreOnScroll()&&l>h&&(l=h,_=null)}if(void 0===i&&void 0===l)_=!1;else if(null!=i&&null!=l&&i<=l){a=this._getRowKeyForDataSourceRowIndex(i),r=this._getRowKeyForDataSourceRowIndex(l),n=this._getRowIdxForRowKey(a),s=this._getRowIdxForRowKey(r);for(var d=n;d<=s;d++){var u=this._getRowKeyForRowIdx(d);t=t.add([u])}o=o.clear()}else C.warn("Error: Cannot resolve row range in selection - \n start row key: "+a+"\n end row key: "+r+"\n start row index: "+i+"\n end row index: "+l),null!=a&&null!=r&&(t=(t=t.add([a])).add([r]),o=o.clear());return{status:_,rowKeySet:t,columnKeySet:o}},I.prototype._getDataSourceLastFetchedRowIndex=function(){var e=this._getTableBodyRows();if(e.length>0){var t=this._getData(),o=0;return this._isPagingModelDataProvider()&&(o=t.getStartItemIndex()),e.length+o-1}return 0},I.prototype._processColumnRangeSelection=function(e,t,o){var i,l,n,s,a=!0;if(null!=e.startKey&&null!=e.startKey[I._CONST_COLUMN]?(i=e.startKey[I._CONST_COLUMN],n=this._getColumnIdxForColumnKey(i)):null!=e.startIndex&&null!=e.startIndex[I._CONST_COLUMN]&&(n=e.startIndex[I._CONST_COLUMN]),null!=e.endKey&&null!=e.endKey[I._CONST_COLUMN]?(l=e.endKey[I._CONST_COLUMN],s=this._getColumnIdxForColumnKey(l)):null!=e.endIndex&&null!=e.endIndex[I._CONST_COLUMN]&&(s=e.endIndex[I._CONST_COLUMN]),void 0===n&&void 0===s)a=!1;else if(null!=n&&null!=s&&!isNaN(n)&&!isNaN(s)&&n<=s){for(var r=n;r<=s;r++){var _=this._getColumnKeyForColumnIdx(r);o=o.add([_])}t=t.clear()}else C.error("Error: Cannot resolve column range in selection - \n start column key: "+i+"\n end column key: "+l+"\n start column index: "+n+"\n end column index: "+s);return{status:a,rowKeySet:t,columnKeySet:o}},I.prototype._invalidateRangeSelection=function(){var e=this.option("selection");if(null!=e)for(var t=0;t<e.length;t++){var o,i,l=e[t];if(null!=l.startKey&&(o=l.startKey[I._CONST_ROW]),null!=l.endKey&&(i=l.endKey[I._CONST_ROW]),o!==i||void 0===o){var n=this.option("selected.row"),s=this._getRowSelectionFromKeySet(n);this.option("selection",s,{_context:{writeback:!0,internalSet:!0}});break}}},I.prototype._setSelected=function(e,t){if(this._selectionSet=t,null!=e){var o;null==e.row&&(e.row=new y.KeySetImpl),null==e.column&&(e.column=new y.KeySetImpl);var i=this.option("selected");if(this._selectionSet?b.areKeySetsEqual(i.row,e.row)&&b.areKeySetsEqual(i.column,e.column)||(o=!0):i.row===e.row&&i.column===e.column||(o=!0),o&&(this.option("selected",e,{_context:{writeback:!0,internalSet:!0}}),this._isSelectionRequired()&&this._validatedSelectedRowKeyData))for(var l=this._validatedSelectedRowKeyData.length-1;l>=0;l--){var n=this._validatedSelectedRowKeyData[l];e.row.has(n.key)||this._validatedSelectedRowKeyData.splice(l,1)}this._isDefaultSelectorEnabled()&&this._updateSelector(e.row),this._applySelected(e);var s=null,a=this._getRowSelectionFromKeySet(e.row);if(null!=a&&a.length>0){var r=a[0];null!=r.startKey&&(s=r.startKey[I._CONST_ROW])}if(this._setFirstSelectedRow(s),!t){var _=this._getSelectionEquivalent(e);this.option("selection",_,{_context:{writeback:!0,internalSet:!0}})}}},I.prototype._setFirstSelectedRow=function(e){var t=this.option("firstSelectedRow");if(!u.KeyUtils.equals(e,t.key)||!this._initialSelectionStateValidated){var o=null;if(null!=e){var i=this.getDataForVisibleRow(this._getRowIdxForRowKey(e));if(null!=i)o=i[I._CONST_DATA];else if(this._validatedSelectedRowKeyData)for(var l=0;l<this._validatedSelectedRowKeyData.length;l++){var n=this._validatedSelectedRowKeyData[l];if(u.KeyUtils.equals(e,n.key)){o=n.data;break}}}this.option("firstSelectedRow",{key:e,data:o},{_context:{writeback:!0,internalSet:!0}})}},I.prototype._getSelectedEquivalent=function(e){var t;if(null!=e){for(var o=(t={row:new y.KeySetImpl,column:new y.KeySetImpl}).row,i=t.column,l=e.length,n=0;n<l;n++){var s=e[n];if(null==s.startKey&&null==s[I._CONST_STARTINDEX]||null==s.endKey&&null==s[I._CONST_ENDINDEX])C.error("Error: Invalid range object in selection. Both start and end objects must be specified");else{var a=this._processRowRangeSelection(s,o,i);o=a.rowKeySet,i=a.columnKeySet,!1===a.status&&(!1===(a=this._processColumnRangeSelection(s,o,i)).status&&C.error("Error: Invalid range object"),o=a.rowKeySet,i=a.columnKeySet)}}t.row===o&&t.column===i||(t={row:o,column:i})}else t={row:new y.KeySetImpl,column:new y.KeySetImpl};return t},I.prototype._getSelectionEquivalent=function(e){var t=this._getRowSelectionFromKeySet(e.row);return t.length>0||t.inverted||(t=this._getColumnSelectionFromKeySet(e.column)).length>0||t.inverted?t:[]},I.prototype._getRowSelectionFromKeySet=function(e){var t=[];return(e.isAddAll()?e.deletedValues():e.values()).forEach(function(e){var o={startKey:{row:e},endKey:{row:e}},i=this._getDataSourceRowIndexForRowKey(e);!isNaN(i)&&i>=0&&(o.startIndex={row:i},o.endIndex={row:i}),t.push(o)},this),t.inverted=e.isAddAll(),t},I.prototype._getColumnSelectionFromKeySet=function(e){var t=[];return(e.isAddAll()?e.deletedValues():e.values()).forEach(function(e){var o={startKey:{column:e},endKey:{column:e}},i=this._getColumnIdxForColumnKey(e);i>=0&&(o.startIndex={column:i},o.endIndex={column:i}),t.push(o)},this),t.inverted=e.isAddAll(),t},I.prototype._applySelected=function(e){var t=e.row,o=e.column;if(this._getSelectedRowIdxs().forEach(function(e){var o=this._getTableBodyRow(e);const i=o[I._DATA_OJ_SELECTABLE]!==I._CONST_OFF;!t.has(this._getRowKey(o))&&i&&(this._applyRowSelection(e,o,!1),this._setLastRowSelection(e,!1))},this),this._isRowSelectionEnabled())if(t.isAddAll()){let e;this._getTableBodyRows().forEach(function(o,i){const l=o[I._DATA_OJ_SELECTABLE]!==I._CONST_OFF,n=this._getRowKey(o);t.has(n)&&l&&(this._applyRowSelection(i,o,!0),e=i)},this),e&&this._setLastRowSelection(e,!0)}else t.values().forEach(function(e){var t=this._getRowIdxForRowKey(e);if(null!=t&&t>=0){const e=this._getTableBodyRow(t);e[I._DATA_OJ_SELECTABLE]!==I._CONST_OFF&&(this._applyRowSelection(t,e,!0),this._setLastRowSelection(t,!0))}},this);if(0===this._getSelectedRowIdxs().length&&this._removeTableBodyRowTouchSelectionAffordance(),this._getSelectedHeaderColumnIdxs().forEach(function(e){o.has(this._getColumnKeyForColumnIdx(e))||this._applyColumnSelection(e,!1)},this),this._isColumnSelectionEnabled())if(o.isAddAll()){var i=this._getTableHeaderColumns();i.forEach(function(e,t){o.has(this._getColumnKeyForColumnIdx(t))&&this._applyColumnSelection(t,!0)},this);var l=i.length-1,n=this._getColumnKeyForColumnIdx(l);this._setLastHeaderColumnSelection(l,o.has(n))}else o.values().forEach(function(e){var t=this._getColumnIdxForColumnKey(e);null!=t&&t>=0&&this._applyColumnSelection(t,!0)},this)},I.prototype._applyRowSelection=function(e,t,o){if(t.classList.contains(I.MARKER_STYLE_CLASSES._SELECTED)!==o){o?t.classList.add(I.MARKER_STYLE_CLASSES._SELECTED):t.classList.remove(I.MARKER_STYLE_CLASSES._SELECTED);var i=this.options.dnd.drag;i&&("rows"===i||i.rows)&&this._getTableDndContext().setElementDraggable(t,o)}o?this._updateRowStateCellsClass(e,null,{hover:!1,selected:!0}):this._updateRowStateCellsClass(e,null,{selected:!1})},I.prototype._applyColumnSelection=function(e,t){var o=this.options.dnd.reorder;if(o&&o.columns===I._OPTION_ENABLED){var i=this._getTableHeaderColumn(e);this._getTableDndContext().setElementDraggable(i,t)}this._setColumnState(e,t)},I.prototype._setLastRowSelection=function(e,t){this._lastSelectedRowIdxArray||(this._lastSelectedRowIdxArray=[]);for(var o=this._lastSelectedRowIdxArray.length,i=0;i<o;i++)if(this._lastSelectedRowIdxArray[i]===e){this._lastSelectedRowIdxArray.splice(i,1);break}t&&this._lastSelectedRowIdxArray.push(e)},I.prototype._setLastHeaderColumnSelection=function(e,t){this._lastSelectedColumnIdxArray||(this._lastSelectedColumnIdxArray=[]);for(var o=this._lastSelectedColumnIdxArray.length,i=0;i<o;i++)if(this._lastSelectedColumnIdxArray[i]===e){this._lastSelectedColumnIdxArray.splice(i,1);break}t&&this._lastSelectedColumnIdxArray.push(e)},I.prototype._handleSelectionGesture=function(e,t,o){var i,l=this.option("selected"),n=l.row,s=l.column;if(t){s=s.clear();const t=this._getTableBodyRow(e);if(this._isRowSelectionEnabled()&&t&&t[I._DATA_OJ_SELECTABLE]!==I._CONST_OFF){var a=this._getRowKeyForRowIdx(e),r=this._getRowSelectionMode();n.has(a)?this._isStickyLayoutEnabled()?(n=o?n.delete([a]):new y.KeySetImpl([a]),i=!o):!o&&this._getSelectedRowIdxs().length>1&&r===I._OPTION_SELECTION_MODES._MULTIPLE?(n=new y.KeySetImpl([a]),i=!0):(n=n.delete([a]),i=!1):(n=o&&r===I._OPTION_SELECTION_MODES._MULTIPLE?n.add([a]):new y.KeySetImpl([a]),i=!0)}}else if(this._isColumnSelectionEnabled()){n=n.clear();var _=this._getColumnSelectionMode();if(e>-1){var h=this._getColumnKeyForColumnIdx(e);s.has(h)?this._isStickyLayoutEnabled()?(s=o?s.delete([h]):new y.KeySetImpl([h]),i=!o):!o&&this._getSelectedHeaderColumnIdxs().length>1&&_===I._OPTION_SELECTION_MODES._MULTIPLE?(s=new y.KeySetImpl([h]),i=!0):(s=s.delete([h]),i=!1):(s=o&&_===I._OPTION_SELECTION_MODES._MULTIPLE?s.add([h]):new y.KeySetImpl([h]),i=!0)}}l.row===n&&l.column===s||(l={row:n,column:s},this._isSelectionRequiredSatisfied(l)&&(this._announceAccSelectionUpdate(i),this._setSelected(l)))},I.prototype._handleSelectAllGesture=function(){var e=this.option("selected"),t=e.row,o=e.column;o=o.clear(),t=t.isAddAll()?new y.KeySetImpl:new y.AllKeySetImpl,e.row===t&&e.column===o||(e={row:t,column:o},this._isSelectionRequiredSatisfied(e)&&this._setSelected(e))},I.prototype._handleMouseEnterSelection=function(e,t){if(this._isRowSelectionEnabled()){var o=this._getElementRowIdx(e);null!=this._mouseDownRowIdx&&null!=o&&this._mouseDownRowIdx!==o?(this._getRowSelectionMode()===I._OPTION_SELECTION_MODES._MULTIPLE&&this._selectRange(this._mouseDownRowIdx,o,!0),o<this._mouseDownRowIdx?this._moveTableBodyRowTouchSelectionAffordanceTop(o):this._moveTableBodyRowTouchSelectionAffordanceBottom(o)):null!=o&&o===this._mouseDownRowIdx&&(t?(this._selectRange(o,o,!0),this._moveTableBodyRowTouchSelectionAffordanceTop(o),this._moveTableBodyRowTouchSelectionAffordanceBottom(o)):this._clearSelectedRows())}},I.prototype._selectRange=function(e,t,o){var i,l=this.option("selected"),n=l.row,s=l.column;if(o){if(s=s.clear(),this._isRowSelectionEnabled()){if(n=n.clear(),e<=t)for(i=e;i<=t;i++){const e=this._getRowKeyForRowIdx(i),t=this._findRowElementByKey(e);t&&t[I._DATA_OJ_SELECTABLE]!==I._CONST_OFF&&(n=n.add([e]))}else for(i=e;i>=t;i--){const e=this._getRowKeyForRowIdx(i),t=this._findRowElementByKey(e);t&&t[I._DATA_OJ_SELECTABLE]!==I._CONST_OFF&&(n=n.add([e]))}this._lastSelectedRowIdx=t}}else if(n=n.clear(),this._isColumnSelectionEnabled()){if(s=s.clear(),e<=t)for(i=e;i<=t;i++)s=s.add([this._getColumnKeyForColumnIdx(i)]);else for(i=e;i>=t;i--)s=s.add([this._getColumnKeyForColumnIdx(i)]);this._lastSelectedHeaderIdx=t}l.row===n&&l.column===s||(l={row:n,column:s},this._isSelectionRequiredSatisfied(l)&&this._setSelected(l))},I.prototype._getRowSelection=function(e){return this._getTableBodyRow(e).classList.contains(I.MARKER_STYLE_CLASSES._SELECTED)},I.prototype._getHeaderColumnSelection=function(e){return this._getTableHeaderColumn(e).classList.contains(I.MARKER_STYLE_CLASSES._SELECTED)},I.prototype._getFooterColumnSelection=function(e){return this._getTableFooterCell(e).classList.contains(I.MARKER_STYLE_CLASSES._SELECTED)},I.prototype._getSelectedRowIdxs=function(){return this._getRowIdxsForElementsWithStyleClass("."+I.CSS_CLASSES._TABLE_DATA_ROW_CLASS+"."+I.MARKER_STYLE_CLASSES._SELECTED)},I.prototype._getSelectedHeaderColumnIdxs=function(){return this._getColumnIdxsForElementsWithStyleClass("."+I.CSS_CLASSES._COLUMN_HEADER_CELL_CLASS+"."+I.MARKER_STYLE_CLASSES._SELECTED)},I.prototype._getSelectedFooterColumnIdxs=function(){return this._getColumnIdxsForElementsWithStyleClass("."+I.CSS_CLASSES._TABLE_FOOTER_CELL_CLASS+"."+I.MARKER_STYLE_CLASSES._SELECTED)},I.prototype._clearSelectedRows=function(){this._selectionAnchorIdx=null,this._lastSelectedRowIdx=null;var e=this.option("selected.row"),t=e.clear();if(t!==e){var o={row:t,column:this.option("selected.column")};this._setSelected(o)}},I.prototype._clearSelectionState=function(){if(this._selectionAnchorIdx=null,this._lastSelectedRowIdx=null,this._lastSelectedHeaderIdx=null,this._hasSelected()){var e={row:new y.KeySetImpl,column:new y.KeySetImpl};this._setSelected(e)}},I.prototype._selectedKeysChangedListener=function(e){if("internal"===e.detail.updatedFrom)if(e.detail.value.isAddAll())this._setSelected({row:e.detail.value,column:new y.KeySetImpl},!1,!0);else{let t=this.option("selected").row;if(null==e.target.rowKey)return void this._setSelected({row:new y.KeySetImpl,column:new y.KeySetImpl},!1,!0);t=t.has(e.target.rowKey)?t.delete([e.target.rowKey]):t.add([e.target.rowKey]);let o=this._getTable().getElementsByClassName(I.CSS_CLASSES._TABLE_HEADER_SELECTOR_CLASS)[0];if(o){let e=this._getTableBodyRows(),i=t.values?t.values().size:t.deletedValues().size;0!==i&&e.length!==i?o.indeterminate=!0:o.indeterminate=!1}this._setSelected({row:t,column:new y.KeySetImpl},!1,!0)}},I.prototype._updateSelector=function(e){let t=this._getTable(),o=t.getElementsByClassName(I.CSS_CLASSES._TABLE_HEADER_SELECTOR_CLASS);if(o.length>0){o[0].selectedKeys=e;let t=this._getTableBodyRows(),i=e.values?e.values().size:e.deletedValues().size;0!==i&&t.length!==i?o[0].indeterminate=!0:o[0].indeterminate=!1}let i=t.querySelectorAll(`\n .${I.CSS_CLASSES._TABLE_DATA_ROW_CLASS}.${I.MARKER_STYLE_CLASSES._SELECTED} >\n .${I.CSS_CLASSES._TABLE_SELECTOR_CELL}`);if(e.isAddAll()){let o=Array.from(t.getElementsByClassName(I.CSS_CLASSES._TABLE_DATA_ROW_SELECTOR_CLASS));for(let t=0;t<o.length;t++)e.has(o[t].rowKey)?o[t].selectedKeys=new y.KeySetImpl([o[t].rowKey]):o[t].selectedKeys=new y.KeySetImpl([])}else{i.forEach(t=>{let o=t.firstChild;e.has(o.rowKey)?e.delete([o.rowKey]):o.selectedKeys=new y.KeySetImpl([])});let o=Array.from(t.getElementsByClassName(I.CSS_CLASSES._TABLE_DATA_ROW_SELECTOR_CLASS));for(let t=0;t<o.length;t++)e.has(o[t].rowKey)&&(o[t].selectedKeys=new y.KeySetImpl([o[t].rowKey]))}},I.prototype.version="1.0.0",I.prototype.defaultElement="<table>",I.prototype.widgetEventPrefix="oj",I.prototype.options={accessibility:null,addRowDisplay:"top",animateStart:null,animateEnd:null,as:"",currentRow:null,data:null,display:"list",dnd:{drag:null,drop:null,reorder:{columns:"disabled"}},editMode:"none",editRow:{rowKey:null,rowIndex:-1},emptyText:null,horizontalGridVisible:"auto",layout:"contents",row:{editable:null,selectable:null,sticky:null},rowRenderer:null,scrollToKey:"auto",scrollPolicy:"auto",scrollPolicyOptions:{fetchSize:25,maxCount:500,scroller:null,scrollerOffsetBottom:null,scrollerOffsetStart:null,scrollerOffsetEnd:null,scrollerOffsetTop:null},scrollPosition:{x:0,y:0},selectAllControl:"visible",firstSelectedRow:{key:null,data:null},selection:[],selected:{row:new y.KeySetImpl,column:new y.KeySetImpl},selectionMode:null,selectionRequired:!1,verticalGridVisible:"auto",columns:[{className:null,field:null,footerClassName:null,footerRenderer:null,footerStyle:null,footerTemplate:null,frozenEdge:null,headerClassName:null,headerRenderer:null,headerStyle:null,headerTemplate:null,headerText:null,renderer:null,resizable:"disabled",id:null,sortProperty:null,sortable:"auto",style:null,template:null,minWidth:null,maxWidth:null,weight:null,width:null}],columnsDefault:{className:null,field:null,footerClassName:null,footerRenderer:null,footerStyle:null,footerTemplate:null,headerClassName:null,headerRenderer:null,headerStyle:null,headerTemplate:null,headerText:null,renderer:null,resizable:"disabled",sortProperty:null,sortable:"auto",style:null,template:null,minWidth:"auto",maxWidth:null,weight:1,width:null},beforeCurrentRow:null,beforeRowEdit:null,beforeRowEditEnd:null,beforeRowAddEnd:null,ready:null,rowAction:null,sort:null},I.prototype.getContextByNode=function(e){var t=this.getSubIdByNode(e,!0);if(t&&t.subId===I._SUB_ID._TABLE_CELL){var o=t.rowIndex,i=this._getRowKeyForRowIdx(o);t.key=i}return t},I.prototype.getDataForVisibleRow=function(e){var t=this._getTableBodyRow(e);return null!=t?{key:t[I._ROW_ITEM_EXPANDO].key,data:t[I._ROW_ITEM_EXPANDO].data,index:e}:null},I.prototype.getNodeBySubId=function(e){if(null==e)return this.element?this.element[0]:null;var t,o=e.subId;if(o===I._SUB_ID._TABLE_CELL){var i=parseInt(e.rowIndex,10);return t=parseInt(e.columnIndex,10),this._getTableBodyLogicalCells(i)[t]}if(o===I._SUB_ID._TABLE_HEADER||o===I._SUB_ID._TABLE_SORT_ASCENDING||o===I._SUB_ID._TABLE_SORT_DESCENDING){t=e.index;var l=this._getTableHeaderLogicalColumns()[t];if(null!=l){if(o===I._SUB_ID._TABLE_HEADER)return l;if(o===I._SUB_ID._TABLE_SORT_ASCENDING){var n=this._getTableElementsByClassName(l,I.CSS_CLASSES._COLUMN_HEADER_ASC_ICON_CLASS);if(n.length>0)return n[0]}else{var s=this._getTableElementsByClassName(l,I.CSS_CLASSES._COLUMN_HEADER_DSC_ICON_CLASS);if(s.length>0)return s[0]}}}else if(o===I._SUB_ID._TABLE_FOOTER){t=e.index;var a=this._getTableFooterLogicalCells()[t];if(null!=a)return a}return null},I.prototype.getSubIdByNode=function(e,t){var o=this._getFirstAncestor(e,"."+I.CSS_CLASSES._TABLE_DATA_CELL_CLASS,!0);if(null!=o)return{subId:I._SUB_ID._TABLE_CELL,rowIndex:this._getElementRowIdx(o),columnIndex:this._getElementColumnIdx(o)};var i=this._getFirstAncestor(e,"."+I.CSS_CLASSES._COLUMN_HEADER_ASC_ICON_CLASS,!0);if(null!=i)return{subId:t?I._SUB_ID._TABLE_HEADER:I._SUB_ID._TABLE_SORT_ASCENDING,index:this._getElementColumnIdx(i)};var l=this._getFirstAncestor(e,"."+I.CSS_CLASSES._COLUMN_HEADER_DSC_ICON_CLASS,!0);if(null!=l)return{subId:t?I._SUB_ID._TABLE_HEADER:I._SUB_ID._TABLE_SORT_DESCENDING,index:this._getElementColumnIdx(l)};var n=this._getFirstAncestor(e,"."+I.CSS_CLASSES._COLUMN_HEADER_CELL_CLASS,!0);if(null!=n)return{subId:I._SUB_ID._TABLE_HEADER,index:this._getElementColumnIdx(n)};var s=this._getFirstAncestor(e,"."+I.CSS_CLASSES._TABLE_FOOTER_CELL_CLASS,!0);return null!=s?{subId:I._SUB_ID._TABLE_FOOTER,index:this._getElementColumnIdx(s)}:null},I.prototype.refresh=function(){this._super(),this._refresh()},I.prototype.refreshRow=function(e){if(!this._getData())return Promise.resolve(!1);var t=this._getTableBodyRows();if(isNaN(e)||e<0||e>=t.length||0===t.length){var o=I._LOGGER_MSG._ERR_REFRESHROW_INVALID_INDEX_SUMMARY,i=g.applyParameters(I._LOGGER_MSG._ERR_REFRESHROW_INVALID_INDEX_DETAIL,{rowIdx:e.toString()});throw new RangeError(o+"\n"+i)}return this._queueTask(function(){return this._refreshRow(e,!0,!0)}.bind(this))},I.prototype.widget=function(){var e=this._getTableContainer();return null!=e?S(e):this.element},I.prototype._ComponentCreate=function(){this._super(),this._initTemplateEngine(),this._draw(),this._registerCustomEvents(),this._on(this._events),this._isTouchDevice()&&this._registerTouchEvents(),this._registerDomEventListeners(),this._setEditableRowIdx(null),b.disableDefaultBrowserStyling(this.element[0])},I.prototype._AfterCreate=function(){this._super(),this._createContextMenuContainer(),this._isInitFetch=!0},I.prototype._SetupResources=function(){this._super(),this._registerResizeListener(),this._registerDataSourceEventListeners(),this._isInitFetch?(this._initFetch(),this._isInitFetch=!1):this._queueTask(function(){return this._getLayoutManager().notifyTableUpdate(I._UPDATE._REFRESH),this._invokeDataFetchRows()}.bind(this))},I.prototype._ReleaseResources=function(){this._super(),this._cleanComponent()},I.prototype._destroy=function(){this._cleanComponent(!0)},I.prototype._NotifyAttached=function(){this._super(),this._scrollTop=void 0,this._scrollLeft=void 0,this._IsCustomElement()?this._initializeNotifyAttachedTimeout():(this._getLayoutManager().notifyTableUpdate(I._UPDATE._ATTACHED),this._hasPendingTasks()||this._syncTableSizing())},I.prototype._NotifyDetached=function(){this._super(),this._clearNotifyAttachedTimeout()},I.prototype._initializeNotifyAttachedTimeout=function(){this._clearNotifyAttachedTimeout(),this._notifyAttachedTimeout=setTimeout(function(){this._hasPendingTasks()||this._syncScrollPosition(),this._notifyAttachedTimeout=null}.bind(this),0)},I.prototype._clearNotifyAttachedTimeout=function(){null!=this._notifyAttachedTimeout&&(clearTimeout(this._notifyAttachedTimeout),this._notifyAttachedTimeout=null)},I.prototype._NotifyHidden=function(){this._super(),this._getLayoutManager().clearCachedDimensions()},I.prototype._NotifyShown=function(){this._super(),this._getLayoutManager().notifyTableUpdate(I._UPDATE._SHOWN),this._hasPendingTasks()||this._syncTableSizing()},I.prototype._VerifyConnectedForSetup=function(){return!0},I.prototype._GetDefaultContextMenu=function(){return this._defaultContextMenu},I.prototype._NotifyContextMenuGesture=function(e,t,o){var i={};if(this._contextMenuEvent=t.originalEvent,!(this._isNodeEditable(this._contextMenuEvent.target)||this._isNodeClickable(this._contextMenuEvent.target)||"touch"===o&&this._isNodeDraggable(this._contextMenuEvent.target))){var l,n=this._getFirstAncestor(this._contextMenuEvent.target,"."+I.CSS_CLASSES._TABLE_DATA_CELL_CLASS,!0);if(null!=n){var s=this._getElementColumnIdx(n);l=this._getTableHeaderColumn(s)}else l=this._getFirstAncestor(this._contextMenuEvent.target,"."+I.CSS_CLASSES._COLUMN_HEADER_CELL_CLASS,!0);if("keydown"===this._contextMenuEvent.type){var a=this._getTable();if(null==l&&(l=this._getActiveHeaderColumn()),this._contextMenuEvent.target===a)if(null!=l)i.position={my:I._POSITION._START_TOP,at:I._POSITION._START_BOTTOM,of:l};else{var r=this._getActiveRowIndex();if(r>=0){var _=this._getTableBodyRow(r);i.position={my:I._POSITION._START_TOP,at:I._POSITION._START_BOTTOM,of:_}}else i.position={my:I._POSITION._START_TOP,at:I._POSITION._START_BOTTOM,of:this._contextMenuEvent.target}}else i.position={my:I._POSITION._START_TOP,at:I._POSITION._START_BOTTOM,of:this._contextMenuEvent.target}}else{var h=this._getFirstAncestor(this._contextMenuEvent.target,"."+I.CSS_CLASSES._TABLE_FOOTER_CELL_CLASS,!0);if(null==l&&null==n&&null==h)return}this._contextMenuEventHeaderColumn=l;var d=e.element?e.element[0]:e;this._populateContextMenuItems(d,this._handleContextMenuSelect.bind(this));var u=d.querySelectorAll("[data-oj-command=oj-table-sortAsc]");u.length>0&&(u=u[0],l&&l.getAttribute("data-oj-sortable")===I._OPTION_ENABLED?"OJ-OPTION"===u.nodeName?u.removeAttribute("disabled"):u.classList.remove(I.MARKER_STYLE_CLASSES._DISABLED):"OJ-OPTION"===u.nodeName?u.setAttribute("disabled","true"):u.classList.add(I.MARKER_STYLE_CLASSES._DISABLED));var c=d.querySelectorAll("[data-oj-command=oj-table-sortDsc]");c.length>0&&(c=c[0],l&&l.getAttribute("data-oj-sortable")===I._OPTION_ENABLED?"OJ-OPTION"===c.nodeName?c.removeAttribute("disabled"):c.classList.remove(I.MARKER_STYLE_CLASSES._DISABLED):"OJ-OPTION"===c.nodeName?c.setAttribute("disabled","true"):c.classList.add(I.MARKER_STYLE_CLASSES._DISABLED));var S=d.querySelectorAll("[data-oj-command=oj-table-resize]");S.length>0&&(S=S[0],l&&l.getAttribute("data-oj-resizable")===I._OPTION_ENABLED?"OJ-OPTION"===S.nodeName?S.removeAttribute("disabled"):S.classList.remove(I.MARKER_STYLE_CLASSES._DISABLED):"OJ-OPTION"===S.nodeName?S.setAttribute("disabled","true"):S.classList.add(I.MARKER_STYLE_CLASSES._DISABLED)),this._OpenContextMenu(t,o,i)}},I.prototype._setOptions=function(e,t){for(var o=!1,i=!1,l=!1,n=Object.keys(e),s=0;s<n.length;s++){var a=n[s],r=e[a];this._isTableRefreshNeeded(a,r,t)&&("columns"===a||"selectionMode"===a&&void 0!==r.row?l=!0:"data"===a&&(i=!0),o=!0)}this._superApply(arguments),o&&(l&&(this._clearCachedMetadata(),this._refreshTableHeader()),i&&this._beforeDataRefresh(),this._refresh())},I.prototype._setOption=function(e,t,o){"selection"===e?(this._selectionSet=!0,this._syncRangeSelection(t),this._superApply(arguments),this._validateInitialSelectionState(!0)):"selected"===e?(this._selectionSet=!1,this._superApply(arguments),this._validateInitialSelectionState(!0)):"currentRow"===e?(this._queueTask(function(){this._setCurrentRow(t,null,!0)}.bind(this)).catch(function(){}),this._superApply(arguments)):"scrollPosition"===e?(this._queueTask(function(){this._syncScrollPosition(t)}.bind(this)),this._superApply(arguments)):"editRow"===e?this._setEditRow(t):"scrollPolicyOptions"===e&&null!=o?(this._superApply(arguments),this._isStickyLayoutEnabled()&&("scrollerOffsetTop"===o.subkey||"scrollerOffsetBottom"===o.subkey?this._styleTableContainer(this._getTableContainer()):"scrollerOffsetStart"!==o.subkey&&"scrollerOffsetEnd"!==o.subkey||this._getLayoutManager()._initializeFrozenColumns())):"addRowDisplay"===e?(this._queueTask(function(){return this._refreshAddRowDisplay()}.bind(this)),this._superApply(arguments)):this._superApply(arguments)},I.prototype._CompareOptionValues=function(e,t,o){switch(e){case"columns":case"currentRow":return u.Object.compareValues(t,o);case"selection":return t&&void 0===t.inverted&&(t.inverted=!1),o&&void 0===o.inverted&&(o.inverted=!1),(!t||!o||t.inverted===o.inverted)&&u.Object.compareValues(t,o);case"selected":return(t.row&&o.row&&b.areKeySetsEqual(t.row,o.row)||null==t.row&&null==o.row)&&(t.column&&o.column&&b.areKeySetsEqual(t.column,o.column)||null==t.column&&null==o.column);default:return this._super(e,t,o)}},I.prototype._getTableDndContext=function(){return this._tableDndContext||(this._tableDndContext=new w(this)),this._tableDndContext},I.prototype._getLayoutManager=function(){return null==this._layoutManager&&(this._isStickyLayoutEnabled()?this._isFixedLayoutEnabled()?this._layoutManager=new P(this):this._layoutManager=new M(this):(this._layoutManager=new B(this),this._isFixedLayoutEnabled()&&C.error('The current theme does not support the layout="fixed" attribute setting of the <oj-table>.'))),this._layoutManager},I.prototype._clearLayoutManager=function(){null!=this._layoutManager&&this._layoutManager.unregisterListeners(),this._layoutManager=null},I.prototype._doSortHelper=function(e,t){const o=this._getColumnDefs(),i=this._getColumnIdxForColumnKey(e),l=this._getTableHeaderColumn(i);return i<o.length?this._getColumnDefs()[i].sortable===I._OPTION_ENABLED?null!=l&&S(l).data("sorted")===t?`Column is already sorted in ${t} order.`:(this._handleSortTableHeaderColumn(i,t===I._COLUMN_SORT_ORDER._ASCENDING,null),null):"Sort is not enabled for given header.":"Invalid header."},u.__registerWidget("oj.ojTable",S.oj.baseComponent,new I),f.setDefaultOptions({ojTable:{display:f.createDynamicPropertyGetter(function(){return A.getCachedCSSVarValues(["--oj-private-table-global-display-default"])[0]})}})});
8
+ define(["touchr","ojdnd","ojs/ojeditablevalue","ojs/ojinputnumber","ojs/ojmenu","ojs/ojpopup","ojs/ojdialog","ojs/ojbutton","ojs/ojdatasource-common","ojs/ojdataprovideradapter","ojs/ojlistdataproviderview","ojs/ojselector","ojs/ojcore-base","@oracle/oraclejet-preact/hooks/UNSAFE_useFormVariantContext","jquery","ojs/ojdomutils","ojs/ojlogger","ojs/ojcontext","ojs/ojconfig","ojs/ojtranslation","ojs/ojthemeutils","ojs/ojcomponentcore","ojs/ojdatacollection-common","ojs/ojanimation","ojs/ojdomscroller","ojs/ojcustomelement-utils","ojs/ojkeyset","ojs/ojvalidator-regexp","ojs/ojkeyboardfocus-utils"],function(e,t,o,i,l,n,s,a,r,_,h,d,u,c,S,E,C,T,p,g,A,f,b,L,m,R,y,O,v){"use strict";var D;h=h&&Object.prototype.hasOwnProperty.call(h,"default")?h.default:h,u=u&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u,S=S&&Object.prototype.hasOwnProperty.call(S,"default")?S.default:S,T=T&&Object.prototype.hasOwnProperty.call(T,"default")?T.default:T,m=m&&Object.prototype.hasOwnProperty.call(m,"default")?m.default:m,O=O&&Object.prototype.hasOwnProperty.call(O,"default")?O.default:O,(D={properties:{accessibility:{type:"object",properties:{rowHeader:{type:"string|Array<string>"}}},addRowDisplay:{type:"string",enumValues:["hidden","top"],value:"top"},as:{type:"string",value:""},columns:{type:"Array<Object>",writeback:!0},columnsDefault:{type:"object",properties:{className:{type:"string"},field:{type:"string"},footerClassName:{type:"string"},footerRenderer:{type:"function"},footerStyle:{type:"string"},footerTemplate:{type:"string"},headerClassName:{type:"string"},headerRenderer:{type:"function"},headerStyle:{type:"string"},headerTemplate:{type:"string"},headerText:{type:"string"},maxWidth:{type:"string|number"},minWidth:{type:"string|number",value:"auto"},renderer:{type:"function"},resizable:{type:"string",enumValues:["disabled","enabled"],value:"disabled"},showRequired:{type:"boolean",value:!1},sortProperty:{type:"string"},sortable:{type:"string",enumValues:["auto","disabled","enabled"],value:"auto"},style:{type:"string"},template:{type:"string"},weight:{type:"number",value:1},width:{type:"string|number"}}},currentRow:{type:"object",writeback:!0},data:{type:"object",extension:{webelement:{exceptionStatus:[{type:"unsupported",since:"13.0.0",description:"Data sets from a DataProvider cannot be sent to WebDriverJS; use ViewModels or page variables instead."}]}}},display:{type:"string",enumValues:["grid","list"],value:"list"},dnd:{type:"object",properties:{drag:{type:"object",properties:{rows:{type:"object",properties:{dataTypes:{type:"string|Array<string>"},drag:{type:"function"},dragEnd:{type:"function"},dragStart:{type:"function"}}}}},drop:{type:"object",properties:{columns:{type:"object",properties:{dataTypes:{type:"string|Array<string>"},dragEnter:{type:"function"},dragLeave:{type:"function"},dragOver:{type:"function"},drop:{type:"function"}}},rows:{type:"object",properties:{dataTypes:{type:"string|Array<string>"},dragEnter:{type:"function"},dragLeave:{type:"function"},dragOver:{type:"function"},drop:{type:"function"}}}}},reorder:{type:"object",properties:{columns:{type:"string",enumValues:["disabled","enabled"],value:"disabled"}}}}},editMode:{type:"string",enumValues:["none","rowEdit"],value:"none"},editRow:{type:"object",writeback:!0,value:{rowKey:null,rowIndex:-1}},firstSelectedRow:{type:"object",writeback:!0,readOnly:!0,value:{key:null,data:null},properties:{data:{type:"any"},key:{type:"any"}}},horizontalGridVisible:{type:"string",enumValues:["auto","disabled","enabled"],value:"auto"},layout:{type:"string",enumValues:["contents","fixed"],value:"contents"},row:{type:"object",properties:{editable:{type:"function"},selectable:{type:"function"},sticky:{type:"function"}}},rowRenderer:{type:"function"},scrollPolicy:{type:"string",enumValues:["auto","loadAll","loadMoreOnScroll"],value:"auto"},scrollPolicyOptions:{type:"object",properties:{fetchSize:{type:"number",value:25},maxCount:{type:"number",value:500},scroller:{type:"string"},scrollerOffsetBottom:{type:"number"},scrollerOffsetEnd:{type:"number"},scrollerOffsetStart:{type:"number"},scrollerOffsetTop:{type:"number"}}},scrollPosition:{type:"object",writeback:!0,value:{x:0,y:0},properties:{columnIndex:{type:"number"},columnKey:{type:"any"},offsetX:{type:"number"},offsetY:{type:"number"},rowIndex:{type:"number"},rowKey:{type:"any"},x:{type:"number"},y:{type:"number"}}},scrollToKey:{type:"string",enumValues:["always","auto","capability","never"],value:"auto"},selectAllControl:{type:"string",enumValues:["hidden","visible"],value:"visible"},selected:{type:"object",writeback:!0,properties:{column:{type:"KeySet",writeback:!0},row:{type:"KeySet",writeback:!0}}},selection:{type:"Array<Object>",writeback:!0,value:[]},selectionMode:{type:"Object<string, string>",properties:{column:{type:"string",enumValues:["multiple","none","single"]},row:{type:"string",enumValues:["multiple","none","single"]}}},selectionRequired:{type:"boolean",value:!1},translations:{type:"object",value:{},properties:{accessibleAddRow:{type:"string"},accessibleColumnContext:{type:"string"},accessibleColumnFooterContext:{type:"string"},accessibleColumnHeaderContext:{type:"string"},accessibleColumnsSpan:{type:"string"},accessibleContainsControls:{type:"string"},accessibleRowContext:{type:"string"},accessibleSortAscending:{type:"string"},accessibleSortDescending:{type:"string"},accessibleSortable:{type:"string"},accessibleStateSelected:{type:"string"},accessibleStateUnselected:{type:"string"},accessibleSummaryEstimate:{type:"string"},accessibleSummaryExact:{type:"string"},labelAccSelectionAffordanceBottom:{type:"string"},labelAccSelectionAffordanceTop:{type:"string"},labelColumnWidth:{type:"string"},labelDisableNonContiguousSelection:{type:"string"},labelEditRow:{type:"string"},labelEnableNonContiguousSelection:{type:"string"},labelResize:{type:"string"},labelResizeColumn:{type:"string"},labelResizeColumnDialog:{type:"string"},labelResizeDialogApply:{type:"string"},labelResizePopupCancel:{type:"string"},labelResizePopupSpinner:{type:"string"},labelResizePopupSubmit:{type:"string"},labelSelectAllRows:{type:"string"},labelSelectAndEditRow:{type:"string"},labelSelectColum:{type:"string"},labelSelectRow:{type:"string"},labelSort:{type:"string"},labelSortAsc:{type:"string"},labelSortDsc:{type:"string"},msgColumnResizeWidthValidation:{type:"string"},msgFetchingData:{type:"string"},msgInitializing:{type:"string"},msgNoData:{type:"string"},msgScrollPolicyMaxCountDetail:{type:"string"},msgScrollPolicyMaxCountSummary:{type:"string"},msgStatusSortAscending:{type:"string"},msgStatusSortDescending:{type:"string"},tooltipRequired:{type:"string"}}},verticalGridVisible:{type:"string",enumValues:["auto","disabled","enabled"],value:"auto"}},methods:{getContextByNode:{},getDataForVisibleRow:{},getProperty:{},refresh:{},refreshRow:{},setProperties:{},setProperty:{},getNodeBySubId:{},getSubIdByNode:{}},events:{ojAnimateEnd:{},ojAnimateStart:{},ojBeforeCurrentRow:{},ojBeforeRowAddEnd:{},ojBeforeRowEdit:{},ojBeforeRowEditEnd:{},ojRowAction:{},ojSort:{}},extension:{}}).extension._WIDGET_NAME="ojTable",D.extension._INNER_ELEM="table",D.extension._BINDING={provide:[{name:"__oj_private_contexts",default:new Map([[c.FormVariantContext,"embedded"]])}]},u.CustomElementBridge.register("oj-table",{metadata:D});const I=function(){};I._BUNDLE_KEY={_MSG_FETCHING_DATA:"msgFetchingData",_MSG_NO_DATA:"msgNoData",_MSG_INITIALIZING:"msgInitializing",_MSG_STATUS_SORT_ASC:"msgStatusSortAscending",_MSG_STATUS_SORT_DSC:"msgStatusSortDescending",_LABEL_SELECT_COLUMN:"labelSelectColumn",_LABEL_SELECT_ALL_ROWS:"labelSelectAllRows",_LABEL_SELECT_ROW:"labelSelectRow",_LABEL_EDIT_ROW:"labelEditRow",_LABEL_SELECT_AND_EDIT_ROW:"labelSelectAndEditRow"},I._LOGGER_MSG={_ERR_PRECURRENTROW_ERROR_SUMMARY:"Did not change current row due to error.",_ERR_PRECURRENTROW_ERROR_DETAIL:"Error detail: {error}.",_ERR_CURRENTROW_UNAVAILABLE_INDEX_SUMMARY:"Did not change current row due to unavailable row index.",_ERR_CURRENTROW_UNAVAILABLE_INDEX_DETAIL:"Unavailable row index: {rowIdx}.",_ERR_REFRESHROW_INVALID_INDEX_SUMMARY:"Invalid row index value.",_ERR_REFRESHROW_INVALID_INDEX_DETAIL:"Row index: {rowIdx}.",_ERR_DATA_INVALID_TYPE_SUMMARY:"Invalid data type.",_ERR_DATA_INVALID_TYPE_DETAIL:"Please specify the appropriate data type.",_ERR_ELEMENT_INVALID_TYPE_SUMMARY:"Invalid element type.",_ERR_ELEMENT_INVALID_TYPE_DETAIL:"Only a <table> element can be specified for ojTable."},I._UPDATE={_ADD_ROW_DISPLAY:"addRowDisplay",_ATTACHED:"attached",_DATA_REFRESH:"dataRefresh",_DATA_SORT:"dataSort",_RESIZE:"resize",_REFRESH:"refresh",_COL_REORDER:"colReorder",_COL_RESIZE:"colResize",_ROW_REFRESH:"rowRefresh",_ROWS_ADDED:"rowsAdded",_ROWS_REMOVED:"rowsRemoved",_SHOWN:"shown"},I._SUB_ID={_TABLE_CELL:"oj-table-cell",_TABLE_HEADER:"oj-table-header",_TABLE_FOOTER:"oj-table-footer",_TABLE_SORT_ASCENDING:"oj-table-sort-ascending",_TABLE_SORT_DESCENDING:"oj-table-sort-descending"},I._POSITION={_START_TOP:"start top",_START_BOTTOM:"start bottom"},I._FIELD_ID="id",I._CONST_ATTRIBUTE="attribute",I._CONST_DATA="data",I._CONST_METADATA="metadata",I._CONST_INDEXES="indexes",I._CONST_INDEX="index",I._CONST_KEY="key",I._CONST_KEYS="keys",I._CONST_AFTERKEYS="afterKeys",I._CONST_ADDBEFOREKEYS="addBeforeKeys",I._CONST_CLIENTID="clientId",I._CONST_STARTINDEX="startIndex",I._CONST_ENDINDEX="endIndex",I._CONST_PAGESIZE="size",I._CONST_OFFSET="offset",I._CONST_SILENT="silent",I._CONST_COLUMN="column",I._CONST_ROW="row",I._CONST_VALUE="value",I._CONST_SORTCRITERIA="sortCriteria",I._CONST_ON="on",I._CONST_OFF="off",I._COLUMN_HEADER_ID="_headerColumn",I._COLUMN_HEADER_TEXT_ID="_headerColumnText",I._COLUMN_HEADER_ASC_ID="_headerColumnAsc",I._COLUMN_HEADER_DSC_ID="_headerColumnDsc",I._COLUMN_HEADER_ID_PREFIX="_hdrCol",I._COLUMN_HEADER_ROW_SELECT_ID="_hdrColRowSel",I._FOCUS_CALLED="_focusedCalled",I._ROW_TEMPLATE="rowTemplate",I._CELL_TEMPLATE="template",I._HEADER_TEMPLATE="headerTemplate",I._FOOTER_TEMPLATE="footerTemplate",I._OPTION_AUTO="auto",I._OPTION_ENABLED="enabled",I._OPTION_DISABLED="disabled",I._OPTION_DISPLAY={_LIST:"list",_GRID:"grid"},I._OPTION_EDIT_MODE={_NONE:"none",_ROW_EDIT:"rowEdit"},I._OPTION_FROZEN_EDGE={_END:"end",_START:"start"},I._OPTION_SELECTION_MODES={_SINGLE:"single",_MULTIPLE:"multiple",_NONE:"none"},I._OPTION_SCROLL_POLICY={_AUTO:"auto",_LOADMORE_ON_SCROLL:"loadMoreOnScroll",_LOAD_ALL:"loadAll"},I._COLUMN_SORT_ORDER={_ASCENDING:"ascending",_DESCENDING:"descending"},I._DND_REORDER_TABLE_ID_DATA_KEY="oj-table-dnd-reorder-table-id",I._CURRENT_ROW_STATUS={_UPDATED:"updated",_IGNORED:"ignored",_VETOED:"vetoed",_ERROR:"error"},I._ROW_ITEM_EXPANDO="oj-table-oj-row-item",I._DATA_OJ_COMMAND="data-oj-command",I._DATA_OJ_EDITABLE="data-oj-editable",I._DATA_OJ_SELECTABLE="data-oj-selectable",I._DATA_OJ_COLUMNIDX="data-oj-columnIdx",I._VALIDATOR_PATTERN="^[1-9][0-9]*$",I._DATA_OJ_BINDING_PROVIDER="data-oj-binding-provider",I._BATCH_PROCESS_SIZE_WHEN_IDLE=5,I.RESIZE_OFFSET=10,I.SIZING_ERROR_MARGIN=.05,I._SELECTOR_OFF_COLSPAN_OFFSET=1,I._CSS_Vars={enableSticky:"--oj-private-table-global-sticky-default",enableSelector:"--oj-private-table-global-enable-selector-default",showIndicatorDelay:"--oj-private-core-global-loading-indicator-delay-duration",loadIndicator:"--oj-private-table-global-load-indicator-default",horizontalGridVisible:"--oj-private-table-global-display-list-horizontal-grid-visible-default",addAnimation:"--oj-private-table-global-add-animation",removeAnimation:"--oj-private-table-global-remove-animation",updateAnimation:"--oj-private-table-global-update-animation"},I.prototype._isStickyLayoutEnabled=function(){return"true"===this._getDefaultOptions().enableSticky},I.prototype._isStickyRowsEnabled=function(){return!(!this._isStickyLayoutEnabled()||null==this.options.row)&&"function"==typeof this.options.row.sticky},I.prototype._isFixedLayoutEnabled=function(){return"fixed"===this.options.layout},I.prototype._isTableStretchEnabled=function(){return this._getTableContainer().classList.contains(I.CSS_CLASSES._TABLE_STRETCH_CLASS)},I.prototype._isExternalScrollEnabled=function(){if(this._isStickyLayoutEnabled()){var e=this.options.scrollPolicyOptions;if(null!=e)return null!=e.scroller}return!1},I.prototype._invokeRowSelectableCallback=function(e){return this._invokeActionCallback(e,"selectable",I._CONST_ON)},I.prototype._invokeRowEditableCallback=function(e){return this._invokeActionCallback(e,"editable",I._CONST_ON)},I.prototype._invokeRowStickyCallback=function(e){return this._invokeActionCallback(e,"sticky",I._CONST_OFF)},I.prototype._invokeActionCallback=function(e,t,o){const i=this.options.row[t];return"function"==typeof i?i(e):o},I.prototype._isNodeEditable=function(e){return this._isNodeType(e,/^INPUT|TEXTAREA/)},I.prototype._isNodeClickable=function(e){return this._isNodeType(e,/SELECT|OPTION|BUTTON|^A\b/)},I.prototype._isNodeDraggable=function(e){return null!=this._getFirstAncestor(e,"[draggable='true']",!0)},I.prototype._isNodeType=function(e,t){for(var o=this._getTable();null!=e&&e!==o;){var i=e.nodeName;if(i===I.DOM_ELEMENT._TD||i===I.DOM_ELEMENT._TH)break;if(3!==e.nodeType)if(i.match(t))if(-1!==e.getAttribute(I.DOM_ATTR._TABINDEX))return!0;e=e.parentNode}return!1},I.prototype._handleDataFetchStart=function(){this._setDataWaitingState()},I.prototype._setDataWaitingState=function(e){!1!==e&&(this._isExternalScrollEnabled()||this._clearScrollBuffer(),this._showStatusMessage(),this._hideNoDataMessage()),this._dataFetching=!0,this._dataResolveFunc||(this._dataResolveFunc=this._addComponentBusyState("is waiting for data."))},I.prototype._checkViewportRejected=function(){this._animateOnFetch=!1,this._clearDataWaitingState()},I.prototype._clearDataWaitingState=function(){this._pendingFetchStale?(this._pendingFetchStale=!1,this._queueTask(function(){return this._getLayoutManager().notifyTableUpdate(I._UPDATE._DATA_REFRESH),this._beforeDataRefresh(),this._invokeDataFetchRows()}.bind(this))):(this._hideStatusMessage(),this._dataFetching=!1,this._pendingFetchStale=!1,this._dataResolveFunc&&(this._dataResolveFunc(),this._dataResolveFunc=null))},I.prototype._setComponentNotReady=function(){this._readyResolveFunc||(this._readyResolveFunc=this._addComponentBusyState("is being loaded."))},I.prototype._setComponentReady=function(){this._readyResolveFunc&&(this._readyResolveFunc(),this._readyResolveFunc=null)},I.prototype._addComponentBusyState=function(e){var t=T.getContext(this.element[0]).getBusyContext(),o={description:"The component identified by '"+this._getTableId()+"' "+e};return t.addBusyState(o)},I.prototype._createComponentBusyState=function(e){var t=this._addComponentBusyState(e);return null==this._busyStateStack&&(this._busyStateStack=[]),this._busyStateStack.push(t),t},I.prototype._clearComponentBusyState=function(e){if(this._busyStateStack){var t=this._busyStateStack.indexOf(e);-1!==t&&(e(),this._busyStateStack.splice(t,1))}},I.prototype._clearBusyStateStack=function(){if(this._busyStateStack){for(var e=0;e<this._busyStateStack.length;e++)this._busyStateStack[e]();this._busyStateStack=null}},I.prototype._setFocusoutBusyState=function(){this._focusoutResolveFunc||(this._focusoutResolveFunc=this._addComponentBusyState("is handling focusout."))},I.prototype._clearFocusoutBusyState=function(){this._focusoutResolveFunc&&(this._focusoutResolveFunc(),this._focusoutResolveFunc=null)},I.prototype._setIdleRenderBusyState=function(){this._idleRenderResolveFunc||(this._idleRenderResolveFunc=this._addComponentBusyState("is waiting for idle rendering."))},I.prototype._clearIdleRenderBusyState=function(){this._idleRenderResolveFunc&&(this._idleRenderResolveFunc(),this._idleRenderResolveFunc=null)},I.prototype._setScrollPosBusyState=function(){this._scrollPosResolveFunc||(this._scrollPosResolveFunc=this._addComponentBusyState("is handling scroll position."))},I.prototype._clearScrollPosBusyState=function(){this._scrollPosResolveFunc&&(this._scrollPosResolveFunc(),this._scrollPosResolveFunc=null)},I.prototype._clearAllComponentBusyStates=function(){this._clearBusyStateStack(),this._pendingFetchStale=!1,this._clearDataWaitingState(),this._clearFocusoutBusyState(),this._clearIdleRenderBusyState(),this._clearScrollPosBusyState(),this._setComponentReady()},I.prototype._cleanComponent=function(e){this._animateOnFetch=null,this._isEditPending=null,this._active=null,this._isTableTab=null,this._isAddRowRendered=!1,this._renderedTableHeaderColumns=!1,this._clearAllComponentTimeouts(),this._clearAllComponentBusyStates(),this._clearOpenPopupListeners(),this._clearIdleCallback(),this._unregisterDomScroller(),this._clearLayoutManager(),e?(S(this._getTableBody()).removeAttr(f._OJ_CONTAINER_ATTR),S(this._getTableBody()).removeAttr(T._OJ_CONTEXT_ATTRIBUTE),this.element.children().remove("."+I.CSS_CLASSES._TABLE_HEADER_CLASS),this.element.children().remove("."+I.CSS_CLASSES._TABLE_BODY_CLASS),this.element.children().remove("."+I.CSS_CLASSES._TABLE_FOOTER_CLASS),this.element.children().remove("."+I.CSS_CLASSES._TABLE_STATUS_MESSAGE_CLASS),this.element.children().remove("."+I.CSS_CLASSES._TABLE_BODY_MESSAGE_ROW_CLASS),E.unwrap(this.element,S(this._getTableContainer())),this.element[0].classList.remove(I.CSS_CLASSES._TABLE_CLASS),this._data instanceof u.TableDataSourceAdapter&&this._data.destroy(),this._componentDestroyed=!0):(this._unregisterDataSourceEventListeners(),this._unregisterResizeListener()),(this._hasHeaderTemplate||this._hasCellTemplate||this._hasFooterTemplate||this._hasRowTemplate||this._hasAddRowTemplate||this._hasNoDataTemplate)&&this._cleanTemplateNodes(this.element[0])},I.prototype._clearAllComponentTimeouts=function(){this._clearFocusoutTimeout(),this._clearShowStatusTimeout(),this._clearTableBodyHideTimeout(),this._clearTableFooterHideTimeout(),this._clearNotifyAttachedTimeout(),this._clearBrowserAutoScrollTimeout()},I.prototype._clearFocusoutTimeout=function(){this._focusoutTimeout&&(clearTimeout(this._focusoutTimeout),this._focusoutTimeout=null)},I.prototype._clearShowStatusTimeout=function(){this._showStatusTimeout&&(clearTimeout(this._showStatusTimeout),this._showStatusTimeout=null)},I.prototype._initializeTableBodyHide=function(e){this._clearTableBodyHideTimeout(),this._bodyVisibilityTimeout=setTimeout(function(){e.style[I.CSS_PROP._VISIBILITY]=I.CSS_VAL._HIDDEN,this._bodyVisibilityTimeout=null}.bind(this),0)},I.prototype._clearTableBodyHideTimeout=function(){null!=this._bodyVisibilityTimeout&&(clearTimeout(this._bodyVisibilityTimeout),this._bodyVisibilityTimeout=null)},I.prototype._initializeTableFooterHide=function(e){this._clearTableFooterHideTimeout(),this._footerVisibilityTimeout=setTimeout(function(){e.style[I.CSS_PROP._VISIBILITY]=I.CSS_VAL._HIDDEN,this._footerVisibilityTimeout=null}.bind(this),0)},I.prototype._clearTableFooterHideTimeout=function(){null!=this._footerVisibilityTimeout&&(clearTimeout(this._footerVisibilityTimeout),this._footerVisibilityTimeout=null)},I.prototype._clearBrowserAutoScrollTimeout=function(){null!=this._browserAutoScrollTimeout&&(clearTimeout(this._browserAutoScrollTimeout),this._browserAutoScrollTimeout=null,this._browserAutoScrollInitPos=null)},I.prototype._setFinalTask=function(e){this._finalTask=e?e.bind(this):void 0},I.prototype._hasPendingTasks=function(){return this._taskCount>0},I.prototype._hasAdditionalPendingTasks=function(){return this._taskCount>1},I.prototype._queueTask=function(e){return this._pendingTasks||(this._taskCount=0,this._pendingTasks=Promise.resolve(),this._setComponentNotReady()),this._taskCount+=1,this._pendingTasks=this._pendingTasks.then(function(){if(!this._componentDestroyed)return e.bind(this)()}.bind(this)).then(function(e){if(this._taskCount-=1,0===this._taskCount){this._pendingTasks=null;try{this._componentDestroyed||(this._finalTask&&this._finalTask(),this._trigger("ready"))}catch(e){C.error(e)}this._setComponentReady()}return e}.bind(this),function(e){return this._taskCount-=1,0===this._taskCount&&(this._pendingTasks=null,C.error(e),this._setComponentReady()),Promise.reject(e)}.bind(this)),this._pendingTasks},I.prototype._draw=function(){if(this._setFinalTask(function(){this._syncTableSizing(),this._initialSelectionStateValidated?this._syncSelectionState():this._validateInitialSelectionState(),this._resetAriaLabel&&this._updateAccStatusInfo(),this._resetAriaLabel=!1}.bind(this)),!this.element.is("table")){var e=I._LOGGER_MSG._ERR_ELEMENT_INVALID_TYPE_SUMMARY,t=I._LOGGER_MSG._ERR_ELEMENT_INVALID_TYPE_DETAIL;throw new RangeError(e+"\n"+t)}this.element[0].classList.add(I.CSS_CLASSES._TABLE_ELEMENT_CLASS),this.element[0].setAttribute(I.DOM_ATTR._ROLE,"application"),this._createInitialTable(this._isTableHeaderless(),this._isTableFooterless()),this._styleInitialTable(),this._queueTask(function(){this._getLayoutManager().notifyTableUpdate(I._UPDATE._REFRESH),this._refreshTableHeader(),this._refreshTableFooter(),this._refreshTableBody(),this._processSlottedChildren()}.bind(this)),this.options.disabled&&this.disable()},I.prototype._refresh=function(){var e=!1;this._active=null,this._dataOption!==this.options[I._CONST_DATA]&&(this._clearCachedDataMetadata(),null==this._data&&(e=!0));var t=this._GetContextMenu();return null!=t&&t!==this._getContextMenuElement()&&this._createContextMenuContainer(),this._isAddRowRendered=!1,this._clearLayoutManager(),this._clearCachedDom(),this._clearCachedStyling(),this._refreshContextMenu(),this._refreshTableStatusMessage(),this._clearIdleCallback(),e?this._initFetch():this._queueTask(function(){return this._getLayoutManager().notifyTableUpdate(I._UPDATE._REFRESH),this._invokeDataFetchRows()}.bind(this))},I.prototype._refreshAll=function(e,t){var o=[];if((this._isColumnMetadataUpdated()||!this._isTableHeaderColumnsRendered()&&!this._isTableHeaderless())&&(this._clearCachedMetadata(),o.push(this._refreshTableHeader()),null!=this._sortColumn)){for(var i=!1,l=this._getColumnDefs(),n=l.length,s=0;s<n;s++){var a=l[s];if(u.Object.compareValues(a,this._sortColumn)){i=!0;break}}i||this._initFetch(null,!0)}return o.push(this._refreshTableFooter()),o.push(this._refreshTableBody(e,t)),Promise.all(o)},I.prototype._refreshTableHeader=function(){var e,t=this,o=this._getColumnDefs(),i=o.length,l=this._getTableColGroup();if(null!=l){if(S(l).empty(),this._isGutterStartColumnEnabled()){let e=this._createTableGutterCol();l.appendChild(e)}if(this._isDefaultSelectorEnabled()){var n=this._createTableSelectorCol();l.appendChild(n)}for(e=0;e<i;e++){var s=this._createTableCol();l.appendChild(s)}if(this._isGutterEndColumnEnabled()){let e=this._createTableGutterCol();l.appendChild(e)}}var a=this._getTableBodyLegacyWidthBuffer();if(null!=a)for(S(a).empty(),e=0;e<i;e++){var r=this._createTableBodyCell();r.classList.add(I.CSS_CLASSES._TABLE_LEGACY_WIDTH_BUFFER_CELL_CLASS),a.appendChild(r)}var _=this._getTableHeader();if(!_){if(this._isTableHeaderless())return Promise.resolve();_=this._createTableHeader(),this._styleTableHeader(_)}var h=this._getTableHeaderRow();for(this._unregisterChildStateListeners(h),this._hasHeaderTemplate&&(this._cleanTemplateNodes(h),this._hasHeaderTemplate=!1),S(h).empty(),e=0;e<i;e++){var d=o[e],u=this._getColumnRenderer(e,"header"),c=this._createTableHeaderColumn(e);if(u){var E=this._getRendererContextObject(c,{}),C={headerContext:E,columnIndex:e,data:d.headerText,componentElement:E.componentElement,parentElement:E.parentElement};d.sortable===I._OPTION_ENABLED?C.columnHeaderSortableIconRenderer=function(e,o){t._columnHeaderSortableIconRenderer(this,o)}:C.columnHeaderDefaultRenderer=function(e,o){t._columnHeaderDefaultRenderer(this,o)};var T=u(C);null!=T?(S(c).empty(),S(c).append(T)):(c=S(h).children()[e],this._setTableHeaderColumnAttributes(e,c),this._styleTableHeaderColumn(e,c,!1)),c.classList.add(I.CSS_CLASSES._COLUMN_CUSTOM_HEADER_CLASS)}else{var p=this._getSlotTemplate(d[I._HEADER_TEMPLATE]);if(null==p&&this._isDefaultHeaderTemplateSlotValid()&&(p=this._getSlotTemplate("headerTemplate")),p){var g=this._getRootElement(),A=this._getTemplateEngine();if(null!=A){c&&S(c).empty(),c.classList.add(I.CSS_CLASSES._COLUMN_CUSTOM_HEADER_CLASS);var f=this._getHeaderSlotTemplateContextObject(d.headerText,e),b=A.execute(g,p,f,this.options.as,c);b instanceof Array||(b=[b]),b.map(function(e){c.appendChild(e)}),this._hasHeaderTemplate=!0}}}}if(this._isGutterEndColumnEnabled()){let e=this._createTableGutterCell("header","end");h.appendChild(e)}if(this._isDefaultSelectorEnabled()){var L=this._createTableHeaderSelectorColumn();h.insertBefore(L,h.firstChild)}if(this._isGutterStartColumnEnabled()){let e=this._createTableGutterCell("header","start");h.insertBefore(e,h.firstChild)}return this._renderedTableHeaderColumns=!0,this._finalizeNonBodyRowRendering([h])},I.prototype._refreshTableFooter=function(){var e=this._getColumnDefs(),t=this._getTableFooter();if(!t){if(this._isTableFooterless())return Promise.resolve();t=this._createTableFooter(),this._styleTableFooter(t)}this._initializeTableFooterHide(t);var o=this._getTableFooterRow();if(this._hasFooterTemplate&&(this._cleanTemplateNodes(o),this._hasFooterTemplate=!1),S(o).empty(),e.length>0){for(var i=this._isDefaultFooterTemplateSlotValid(),l=e.length,n=0;n<l;n++){var s=e[n],a=this._getColumnRenderer(n,"footer"),r=this._createTableFooterCell();if(this._styleTableFooterCell(n,r),this._insertTableFooterCell(n,r),a){var _=this._getRendererContextObject(r,{}),h=a({footerContext:_,columnIndex:n,componentElement:_.componentElement,parentElement:_.parentElement});null!=h?(S(r).empty(),S(r).append(h)):(r=S(o).children()[n],this._setTableFooterColumnAttributes(n,r),this._styleTableFooterCell(n,r))}else{var d=this._getSlotTemplate(s[I._FOOTER_TEMPLATE]);if(null==d&&i&&(d=this._getSlotTemplate("footerTemplate")),d){var u=this._getRootElement(),c=this._getTemplateEngine();if(null!=c){var E=this._getFooterSlotTemplateContextObject(n),C=c.execute(u,d,E,this.options.as,r);C instanceof Array||(C=[C]),C.map(function(e){r.appendChild(e)}),this._hasFooterTemplate=!0}}}}if(this._isGutterEndColumnEnabled()){let e=this._createTableGutterCell("footer","end");o.appendChild(e)}if(this._isDefaultSelectorEnabled()){var T=this._createTableFooterSelectorCell();o.insertBefore(T,o.firstChild)}if(this._isGutterStartColumnEnabled()){let e=this._createTableGutterCell("footer","start");o.insertBefore(e,o.firstChild)}}return this._finalizeNonBodyRowRendering([o])},I.prototype._refreshTableBody=function(e,t,o){var i=this._getTableBody();if(null==i)return Promise.resolve();var l,n=this._getRowIdxRowArray(e,t),s=S.contains(i,document.activeElement),a=!1;if(this._scrollLeft=void 0===this._scrollLeft?0:this._scrollLeft,this._scrollTop=void 0===this._scrollTop?0:this._scrollTop,0===t)s&&(a=!0),this._removeAllTableBodyRows();else{var r=this._getTableBodyRows().length;if(r>0)for(l=r-1;l>=t;l--){if(s){var _=this._getTableBodyRow(l);null!=_&&S.contains(_,document.activeElement)&&(a=!0,s=!1)}this._removeTableBodyRow(l)}}a&&this._getTable().focus(),this._clearCachedDomRowData(),this._hideNoDataMessage();const h=document.createDocumentFragment();if(this._refreshAddNewRowPlaceholder(h,!0),0===n.length&&0===this._getTableBodyRows().length)return this._appendElementToTableBody(h,i),this._showNoDataMessage(),this._finalizeNonBodyRowRendering([i]);if(t>0&&this._isLoadMoreOnScroll()&&!this._isLastRowInViewport()&&!this._fetchBySyncScroll)return new Promise(function(o,l){this._setIdleRenderBusyState(),this._renderRowsWhenIdle(n.slice(0),i,t,o,l,e.isMouseWheel)}.bind(this));var d=this._getLayoutManager(),u=n.length;if(this._animateOnFetch&&this._IsCustomElement()){this._animateOnFetch=!1;var c=[],E=[];for(l=0;l<u;l++)E.push(n[l].rowIdx),c.push(this._addSingleTableBodyRow(n[l].rowIdx,n[l].row,h,t));return d.handleAfterRowsProcessed(h),this._appendElementToTableBody(h,i),this._animateVisibleRows(c,E,"add").then(function(){return this._afterRowsRendered(i)}.bind(this))}for(this._animateOnFetch=!1,o||this._initializeTableBodyHide(i),l=0;l<u;l++)this._renderRow(n[l],h,t);return d.handleAfterRowsProcessed(h),this._appendElementToTableBody(h,i),this._afterRowsRendered(i)},I.prototype._isDefaultSelectorEnabled=function(){return"true"===this._getDefaultOptions().enableSelector&&this._getRowSelectionMode()===I._OPTION_SELECTION_MODES._MULTIPLE},I.prototype._refreshTableBodyRow=function(e,t,o,i,l,n){var s=this._getRowRenderer();(isNaN(e)||e<0)&&C.error("Error: Invalid rowIdx value: "+e);var a=this._hashCode(t[I._CONST_KEY]);if(null==o){if(!(o=this._getTableBodyRow(e)))return null;(this._hasCellTemplate||this._hasRowTemplate)&&this._cleanTemplateNodes(o),S(o).empty()}this._hideNoDataMessage();var r=this._getCurrentRow();r=r||{};var _=this._getRendererContextObject(o,{row:t,isCurrentRow:r.rowIndex===e});_.editable=this._invokeRowEditableCallback(o[I._ROW_ITEM_EXPANDO]);const h=this._invokeRowSelectableCallback(o[I._ROW_ITEM_EXPANDO]);var d={rowContext:_,row:t[I._CONST_DATA],componentElement:_.componentElement,parentElement:_.parentElement,data:t[I._CONST_DATA]},u=this._getColumnDefs();if(null!=s||this._isDefaultRowTemplateSlotValid()&&null!==this._getSlotTemplate("rowTemplate")){if(null!=s){var c=s(d);null!=c?o.appendChild(c):null==i?o=this._getRawTableBodyRow(e):(l=null==l?0:l,o=i.children?i.children[e-l]:S(i).children()[e-l])}else{var E=this._getSlotTemplate("rowTemplate"),T=this._getRootElement(),p=this._getTemplateEngine();if(null!=p){var g=this._getRowSlotTemplateContextObject(d),A=this._getTableBody(),f=p.execute(T,E,g,this.options.as,A);for(let e=0;e<f.length;e++){if("TR"===f[e].tagName){o.parentNode.replaceChild(f[e],o);break}o.appendChild(f[e])}null==i?o=this._getRawTableBodyRow(e):(l=null==l?0:l,o=i.children?i.children[e-l]:S(i).children()[e-l]),this._hasRowTemplate=!0}}this._setTableBodyRowAttributes(t,o),this._clearCachedDomRowData(),this._styleTableBodyRow(o,!1);var b,L=this._getTableElementsByTagName(o,I.DOM_ELEMENT._TD),m=L.length;for(let o=0;o<m;o++)b=L[o],this._setTableBodyCellAttributes(e,t[I._CONST_KEY],a,o,b),this._styleTableBodyCell(o,b,!1);if(null!=this._columnsDestMap)for(let e=0;e<this._columnsDestMap.length;e++){var R=L[this._columnsDestMap[e]];R.parentNode.appendChild(R)}if(u.length>0){if(this._isDefaultSelectorEnabled()&&h!==I._CONST_OFF&&this._createTableBodyDefaultSelector(t.key,o),this._isGutterStartColumnEnabled()){let e=this._createTableGutterCell("body","start");o.insertBefore(e,o.firstChild)}if(this._isGutterEndColumnEnabled()){let e=this._createTableGutterCell("body","end");o.appendChild(e)}}}else if(this._setTableBodyRowAttributes(t,o),this._tableBodyRowDefaultRenderer(e,t,d),u.length>0){if(this._isDefaultSelectorEnabled()&&h!==I._CONST_OFF&&this._createTableBodyDefaultSelector(t.key,o),this._isGutterStartColumnEnabled()){let e=this._createTableGutterCell("body","start");o.insertBefore(e,o.firstChild)}if(this._isGutterEndColumnEnabled()){let e=this._createTableGutterCell("body","end");o.appendChild(e)}}return h===I._CONST_OFF&&u.length>0&&this._isDefaultSelectorEnabled()&&(this._getTableBodyCells(e,o)[0].colSpan+=I._SELECTOR_OFF_COLSPAN_OFFSET),this._getLayoutManager().handleRowRefresh(e,o,n),o[I._DATA_OJ_EDITABLE]=_.editable,o[I._DATA_OJ_SELECTABLE]=h,o},I.prototype._refreshAddNewRowPlaceholder=function(e,t){let o=this._getPlaceHolderRow();if(!this._isAddNewRowEnabled()){if(null!=o){if(this._hasActiveAddRow())if(this._isTableHeaderless())this._getTableBodyRows().length>0?this._setActiveRow(0,null,!0):this._setActiveNoData();else{var i=this._getFirstVisibleColumnIndex(0,!0);this._setActiveHeader(i)}this._cleanTemplateNodes(o),S(o).remove(),this._hasAddRowTemplate=!1,this._setTableActionableMode(!1)}return this._isAddRowRendered=!1,Promise.resolve(!1)}if(!this._isAddRowRendered){const i=this._getTemplateEngine(),_=this._getSlotTemplate("addRowTemplate"),h=this._getSlotTemplate("addRowCellTemplate");if(null!==i){let d,u=function(e){this._handleAddRow(e,null)}.bind(this);const c=this._getRootElement(),E=this._getTableBody();var l;if(null!=o&&(this._cleanTemplateNodes(o),S(o).empty()),null==o&&(o=this._createTableBodyRow()),null!=e?e.appendChild(o):E.insertBefore(o,E.firstChild),null!=_&&this._isDefaultAddRowTemplateSlotValid()){d=this._getRowSlotTemplateContextObject({},!0),d.submitAddRow=u;const t=i.execute(c,_,d,this.options.as,E);for(let e=0;e<t.length;e++){if("TR"===t[e].tagName){o.parentNode.replaceChild(t[e],o);break}o.appendChild(t[e])}o=null==e?this._getRawTableBodyRow(-1):e.children?e.children[0]:S(e).children()[0]}else if(null!==h&&this._isDefaultAddRowCellTemplateSlotValid())for(var n=this._getColumnDefs().length,s=0;s<n;s++){l=this._createTableBodyCell(),o.appendChild(l),d=this._getCellSlotTemplateContextObject({columnIndex:s},!0),d.submitAddRow=u;var a=i.execute(c,h,d,this.options.as,E);a instanceof Array||(a=[a]);for(let e=0;e<a.length;e++)l.appendChild(a[e])}o.classList.add(I.CSS_CLASSES._TABLE_ADD_ROW_PLACEHOLDER_CLASS);var r=this._getPlaceHolderRowCells(o);for(let e=0;e<r.length;e++)l=r[e],this._styleTableAddRowCell(e,l);if(this._isAddRowRendered=!0,this._hasAddRowTemplate=!0,this._isDefaultSelectorEnabled()&&(l=document.createElement(I.DOM_ELEMENT._TD),o.insertBefore(l,o.firstChild),l.classList.add(I.CSS_CLASSES._TABLE_FROZEN_START),this._isVerticalGridEnabled()&&l.classList.add(I.CSS_CLASSES._TABLE_VGRID_LINES_CLASS)),this._isGutterStartColumnEnabled()){let e=this._createTableGutterCell("body","start");o.insertBefore(e,o.firstChild)}if(this._isGutterEndColumnEnabled()){let e=this._createTableGutterCell("body","end");o.appendChild(e)}return t||this._getLayoutManager()._updateStickyRowTops(),this._finalizeNonBodyRowRendering([o])}}return Promise.resolve(!1)},I.prototype._finalizeBodyRowRendering=function(e){var t=this._getTableBody();return this._waitForAllElementsToResolve([t]).then(function(){var t=this._hasEditableRow()?this._getEditableRowKey():null,o=this._isTableActionableMode()&&this._active?this._active.key:null;return e.forEach(function(e){var i=this._getRowKey(e);null!=t&&u.KeyUtils.equals(i,t)||null!=o&&u.KeyUtils.equals(i,o)||b.disableAllFocusableElements(e,null,!0)}.bind(this)),Promise.resolve(!0)}.bind(this))},I.prototype._finalizeNonBodyRowRendering=function(e){return this._waitForAllElementsToResolve(e).then(function(){return e.forEach(function(e){b.disableAllFocusableElements(e,null,!0)}),Promise.resolve(!0)})},I.prototype._waitForAllElementsToResolve=function(e){var t=[];return e.forEach(function(e){e&&t.push(T.getContext(e).getBusyContext().whenReady())}),Promise.all(t)},I.prototype._refreshRow=function(e,t,o,i){var l=this._getData(),n=this._getTableBodyRow(e);if(!o){if(!l)return Promise.resolve(!1);if(!n){var s=I._LOGGER_MSG._ERR_REFRESHROW_INVALID_INDEX_SUMMARY,a=g.applyParameters(I._LOGGER_MSG._ERR_REFRESHROW_INVALID_INDEX_DETAIL,{rowIdx:e.toString()});throw new RangeError(s+"\n"+a)}}var r,_=this._getRowKeyForRowIdx(e);if(this._getLayoutManager().notifyTableUpdate(I._UPDATE._ROW_REFRESH),i){var h=new Map,d={data:n[I._ROW_ITEM_EXPANDO].data,metadata:n[I._ROW_ITEM_EXPANDO].metadata};h.set(_,d),r=Promise.resolve({results:h})}else r=l.fetchByKeys({keys:new Set([_])});return r.then(function(o){if(null==o||null==o.results||0===o.results.size)return Promise.resolve(!1);t=t&&S.contains(n,document.activeElement);var i=o.results.get(_);return this._refreshTableBodyRow(e,{data:i.data,metadata:i.metadata,index:e,key:_},null,null,null,!0),t&&this._getTable().focus(),(n=this._getTableBodyRow(e))?this._finalizeBodyRowRendering([n]):Promise.resolve(!0)}.bind(this))},I.prototype._refreshTableStatusMessage=function(){var e=this._getTableStatusMessage();null!=e&&S(e).remove(),this._createTableStatusMessage()},I.prototype._showStatusMessage=function(){if(!this._showStatusTimeout){var e=this._getTableTempSkeletonRow();if(!this._statusMessageShown&&!e){if(this._isSkeletonSupport()){var t=this._getData();if(t instanceof u.TableDataSourceAdapter){var o=t._startIndex;if(null!=o&&o>0)return}this._isExternalScrollEnabled()&&this._bufferScrollerForLastRow(),this._removeAllTableBodyRows()}this._showStatusTimeout=setTimeout(function(){this._refreshTableStatusPosition(!0),this._showStatusTimeout=null}.bind(this),this._getShowStatusDelay())}}},I.prototype._showProgressiveLoading=function(){if(this._isSkeletonSupport()){var e=this._getTableBodyRows(),t=this._getTableTempSkeletonRow();if(null!=e&&e.length>0&&!t){(t=this._createTableBodyRow()).classList.add(I.CSS_CLASSES._TABLE_FETCH_SKELETON_ROW_CLASS);var o=this._createTableBodyCell(),i=this._getColumnDefs().length;this._isGutterStartColumnEnabled()&&(i+=1),this._isGutterEndColumnEnabled()&&(i+=1),o.colSpan=this._isDefaultSelectorEnabled()?i+1:i,o.classList.add(I.CSS_CLASSES._TABLE_SKELETON_CELL_CLASS);for(var l=0;l<3;l++)o.appendChild(this._createSkeletonRow());t.appendChild(o),this._appendElementToTableBody(t,this._getTableBody()),this._skeletonHWMSFadeInEndListener=function(){t.classList.remove(I.CSS_CLASSES._ANIMATION_SKELETON_FADE_IN_CLASS),t.querySelectorAll(".oj-table-skeleton").forEach(function(e){e.classList.add("oj-animation-skeleton")}),t.removeEventListener("animationend",this._skeletonHWMSFadeInEndListener)}.bind(this),t.addEventListener("animationend",this._skeletonHWMSFadeInEndListener),t.classList.add(I.CSS_CLASSES._ANIMATION_SKELETON_FADE_IN_CLASS)}}},I.prototype._insertSkeletonRow=function(e){if(this._isSkeletonSupport()){var t,o=this._getTableBodyRows();if(-1===e&&this._isAddNewRowEnabled())t=this._getPlaceHolderRow();else{if(!(null!=o&&o.length>0))return;t=this._getTableBodyRow(e)}for(var i=t.children,l=0;l<i.length;l++)i[l].classList.add(I.CSS_CLASSES._TABLE_HIDDEN_CELL_CLASS);var n=this._createTableBodyCell(),s=this._getColumnDefs().length;this._isGutterStartColumnEnabled()&&(s+=1),this._isGutterEndColumnEnabled()&&(s+=1),n.colSpan=this._isDefaultSelectorEnabled()?s+1:s,n.classList.add(I.CSS_CLASSES._TABLE_SKELETON_CELL_CLASS),-1===e&&(n.style[I.CSS_PROP._TOP]=i[0].style.top);var a=this._createSkeletonRow();n.appendChild(a),t.insertBefore(n,t.firstChild),this._skeletonHWMSFadeInEndListener=function(){a.classList.remove(I.CSS_CLASSES._ANIMATION_SKELETON_FADE_IN_CLASS),a.querySelectorAll(".oj-table-skeleton").forEach(function(e){e.classList.add("oj-animation-skeleton")}),a.removeEventListener("animationend",this._skeletonHWMSFadeInEndListener)}.bind(this),a.addEventListener("animationend",this._skeletonHWMSFadeInEndListener),a.classList.add(I.CSS_CLASSES._ANIMATION_SKELETON_FADE_IN_CLASS)}},I.prototype._removeSkeletonRow=function(e){if(this._isSkeletonSupport()){var t,o=this._getTableBodyRows();if(-1===e&&this._isAddNewRowEnabled())t=this._getPlaceHolderRow();else{if(!(null!=o&&o.length>0))return;t=this._getTableBodyRow(e)}var i=t.children[0],l=i.children[0];l.classList.remove(I.CSS_CLASSES._ANIMATION_SKELETON_FADE_IN_CLASS),l.removeEventListener("animationend",this._skeletonHWMSFadeInEndListener),t.removeChild(i);for(var n=t.children,s=0;s<n.length;s++)n[s].classList.remove(I.CSS_CLASSES._TABLE_HIDDEN_CELL_CLASS)}},I.prototype._hideStatusMessage=function(){this._clearShowStatusTimeout();var e=this._getTableTempSkeletonRow();if(this._statusMessageShown||e){var t=this._getTableStatusMessage();if(t.style[I.CSS_PROP._DISPLAY]=I.CSS_VAL._NONE,this._isSkeletonSupport())if(e)this._getTableBody().removeChild(e);else for(var o=t.childNodes,i=o.length;i>0;i--)t.removeChild(o[i-1]);this._statusMessageShown=!1}},I.prototype._isStatusMessageShown=function(){return this._statusMessageShown},I.prototype._getDefaultOptions=function(){if(null==this._defaultOptions){this._defaultOptions={};const e=Object.keys(I._CSS_Vars),t=e.map(e=>I._CSS_Vars[e]),o=A.getCachedCSSVarValues(t);e.forEach((e,t)=>{this._defaultOptions[e]=o[t]})}return this._defaultOptions},I.prototype._getShowStatusDelay=function(){return E.getCSSTimeUnitAsMillis(this._getDefaultOptions().showIndicatorDelay)},I.prototype._isSkeletonSupport=function(){return"skeleton"===this._getDefaultOptions().loadIndicator},I.prototype._showNoDataMessage=function(){if(!this._noDataMessageShown){var e=this._getTableBodyMessageRow(),t=this._getData(),o=this._getSlotTemplate("noData");if(this._isDefaultTemplateSlotValid("noData")&&null!==o){var i=this._getTable(),l=this._getTableBody();i.classList.add(I.CSS_CLASSES._TABLE_NO_DATA_CONTAINER_CLASS);var n=document.createElement(I.DOM_ELEMENT._TR);if(n.id=this.createSubId("noData"),n.classList.add(I.CSS_CLASSES._TABLE_NO_DATA_ROW_CLASS),this._appendElementToTableBody(n,l),this._isGutterStartColumnEnabled()){let e=this._createTableGutterCell("body","start");n.appendChild(e)}var s=document.createElement(I.DOM_ELEMENT._TD),a=this._getColumnDefs().length;if(this._isDefaultSelectorEnabled()&&(a+=1),s.setAttribute(I.DOM_ATTR._COLSPAN,a),n.appendChild(s),this._isGutterEndColumnEnabled()){let e=this._createTableGutterCell("body","end");n.appendChild(e)}var r=this._getTemplateEngine();if(null!=r)r.execute(this._getRootElement(),o,{},null,l).forEach(function(e){s.appendChild(e)}),this._hasNoDataTemplate=!0}else{var _=null;_=null!=this.options.emptyText?this.options.emptyText:this.getTranslatedString(I._BUNDLE_KEY._MSG_NO_DATA);var h=null!=t?_:this.getTranslatedString(I._BUNDLE_KEY._MSG_INITIALIZING);null==e?this._createTableBodyMessageRow(this._getColumnDefs().length,h):this._setTableBodyMessage(h)}this._noDataMessageShown=!0}},I.prototype._hideNoDataMessage=function(){if(this._noDataMessageShown){var e=this._getTableBodyMessageRow();if(null!=e)S(e).remove();else{var t=this._getTable();if(t.classList.contains(I.CSS_CLASSES._TABLE_NO_DATA_CONTAINER_CLASS)){t.classList.remove(I.CSS_CLASSES._TABLE_NO_DATA_CONTAINER_CLASS);var o=this._getTableNoDataRow();null!=o&&(this._cleanTemplateNodes(o),S(o).remove(),this._hasNoDataTemplate=!1)}}this._noDataMessageShown=!1}},I.prototype._handleContextMenuResizePopup=function(){let e,t;if("redwood"===A.parseJSONFromFontFamily("oj-theme-json").behavior){let o=document.getElementById(this._getTableUID()+"_resize_column_width_input"),i=this._getContextMenuResizeDialog();e=parseInt(i.getAttribute(I._DATA_OJ_COLUMNIDX),10),this._IsCustomElement()?(t=o.value,i.close()):(t=S(o).ojInputNumber("option","value"),S(i).ojDialog("close"))}else{let o=document.getElementById(this._getTableUID()+"_resize_popup_spinner"),i=this._getContextMenuResizePopup();e=parseInt(i.getAttribute(I._DATA_OJ_COLUMNIDX),10),this._IsCustomElement()?(t=o.value,i.close()):(t=S(o).ojInputNumber("option","value"),S(i).ojPopup("close"))}for(var o=[],i=this.options.columns.length,l=0;l<i;l++)o[l]=S.extend({},{},this.options.columns[l]);var n=this._getLayoutManager().getMinimumForcedOffsetWidth(e);o[e].width=Math.max(t,n),this.option("columns",o,{_context:{writeback:!0,internalSet:!0}}),this._clearCachedMetadata(),this._queueTask(function(){this._getLayoutManager().notifyTableUpdate(I._UPDATE._COL_RESIZE),setTimeout(function(){this._getTable().focus()}.bind(this),0)}.bind(this))},I.prototype._handleContextMenuSelect=function(e,t){var o,i=(o=t?t.item:S(e.target)).attr(I._DATA_OJ_COMMAND),l=this._getFirstAncestor(this._contextMenuEvent.target,"."+I.CSS_CLASSES._COLUMN_HEADER_CELL_CLASS,!0);l=null==l?this._contextMenuEventHeaderColumn:l;var n=this._getFirstAncestor(this._contextMenuEvent.target,"."+I.CSS_CLASSES._TABLE_DATA_CELL_CLASS,!0),s=null;if(null!=l?s=this._getElementColumnIdx(l):null!=n&&(s=this._getElementColumnIdx(n)),null!==s)if("oj-table-sortAsc"===i)this._handleSortTableHeaderColumn(s,!0,e);else if("oj-table-sortDsc"===i)this._handleSortTableHeaderColumn(s,!1,e);else if("oj-table-enableNonContiguousSelection"===i)this._nonContiguousSelection=!0,this._removeTableBodyRowTouchSelectionAffordance(),o.attr(I._DATA_OJ_COMMAND,"oj-table-disableNonContiguousSelection"),o.children().first().text(this.getTranslatedString("labelDisableNonContiguousSelection"));else if("oj-table-disableNonContiguousSelection"===i)this._nonContiguousSelection=!1,o.attr(I._DATA_OJ_COMMAND,"oj-table-enableNonContiguousSelection"),o.children().first().text(this.getTranslatedString("labelEnableNonContiguousSelection"));else if("oj-table-resize"===i){var a=l||n,r=this._getLayoutManager().getColumnWidthProperty(a),_=null!=l?l:n;if("redwood"===A.parseJSONFromFontFamily("oj-theme-json").behavior){let e=this._getContextMenuResizeDialog();e.setAttribute(I._DATA_OJ_COLUMNIDX,s);let t=document.getElementById(this._getTableUID()+"_resize_column_width_input");this._IsCustomElement()?(t.value=Math.round(r),e.open(_)):(S(t).ojInputNumber("option","value",Math.round(r)),S(e).ojDialog("open",_))}else{let e=this._getContextMenuResizePopup();e.setAttribute(I._DATA_OJ_COLUMNIDX,s);let t=document.getElementById(this._getTableUID()+"_resize_popup_spinner");this._IsCustomElement()?(t.value=Math.round(r),e.open(_)):(S(t).ojInputNumber("option","value",Math.round(r)),S(e).ojPopup("open",_))}}},I.prototype._registerResizeListener=function(){var e=this._getTableContainer();this._resizeListener||(this._resizeListener=function(){var e=this._getLayoutManager(),t=window.getComputedStyle(this._getTableContainer());e.isSizingRefreshRequired(e.getExactOffsetWidth(t),e.getExactOffsetHeight(t))&&(e.notifyTableUpdate(I._UPDATE._RESIZE),this._hasPendingTasks()||this._syncTableSizing(!0))}.bind(this)),this._isResizeListenerAdded||(E.addResizeListener(e,this._resizeListener,50,!0),this._isResizeListenerAdded=!0)},I.prototype._unregisterResizeListener=function(){var e=this._getTableContainer();E.removeResizeListener(e,this._resizeListener),this._isResizeListenerAdded=!1},I.prototype._unregisterChildStateListeners=function(e){for(var t=e.querySelectorAll("*"),o=0;o<t.length;o++)this._UnregisterChildNode(t[o])},I.prototype._isLoadMoreOnScroll=function(){return this.options.scrollPolicy===I._OPTION_SCROLL_POLICY._AUTO?!(this._data instanceof u.TableDataSourceAdapter):this.options.scrollPolicy!==I._OPTION_SCROLL_POLICY._LOAD_ALL},I.prototype._isTableHeaderless=function(){for(var e=this._getColumnDefs(),t=e.length,o=0;o<t;o++){var i=this._getSlotTemplate(e[o][I._HEADER_TEMPLATE]);if(null!=e[o].headerText||null!=e[o].headerStyle||null!=e[o].sortable&&e[o].sortable!==I._OPTION_DISABLED||null!=e[o].sortProperty||null!=e[o].headerRenderer||null!=i)return!1}if(this._isDefaultHeaderTemplateSlotValid()&&null!=this._getSlotTemplate("headerTemplate"))return!1;return!0},I.prototype._isTableFooterless=function(){for(var e=this._getColumnDefs(),t=e.length,o=0;o<t;o++){var i=this._getColumnRenderer(o,"footer"),l=this._getSlotTemplate(e[o][I._FOOTER_TEMPLATE]);if(null!=i)return!1;if(null!=l)return!1}if(this._isDefaultFooterTemplateSlotValid()&&null!=this._getSlotTemplate("footerTemplate"))return!1;return!0},I.prototype._isTableHeaderColumnsRendered=function(){return!0===this._renderedTableHeaderColumns},I.prototype._isTableRefreshNeeded=function(e,t,o){var i,l=this.options;return"contextMenu"===e&&t==="#"+this._getTableUID()+"_contextmenu"||"columns"===e&&!this._isColumnMetadataUpdated(t)||"scrollToKey"===e||"addRowDisplay"===e||"scrollPosition"===e||"selection"===e||"selected"===e||"currentRow"===e||"editRow"===e||"scrollPolicyOptions"===e&&this._isStickyLayoutEnabled()&&null!=o&&("scrollerOffsetTop"===o.subkey||"scrollerOffsetBottom"===o.subkey||"scrollerOffsetStart"===o.subkey||"scrollerOffsetEnd"===o.subkey)||u.Object.compareValues(t,l[e])?i=!1:("verticalGridVisible"!==e&&"display"!==e||(this._renderedTableHeaderColumns=!1),i=!0),i},I.prototype._isTableSortable=function(){for(var e=this._getColumnDefs(),t=e.length,o=0;o<t;o++)if(e[o].sortable===I._OPTION_ENABLED)return!0;return!1},I.prototype._isTableColumnsResizable=function(){for(var e=this._getColumnDefs(),t=e.length,o=0;o<t;o++)if(e[o].resizable===I._OPTION_ENABLED)return!0;return!1},I.prototype._isTouchDevice=function(){return null==this._isTouch&&(this._isTouch=b.isMobileTouchDevice()),this._isTouch},I.prototype._processSlottedChildren=function(){var e=this._getTableBottomSlot();null!=e&&S(e).remove();for(var t=R.CustomElementUtils.getSlotMap(this._getRootElement()),o=Object.keys(t),i=0;i<o.length;i++){var l=o[i];if("bottom"===l){var n=t[l];if(null!=n){e=this._createTableBottomSlot();for(var s=0;s<n.length;s++)e.appendChild(n[s])}}}},I.prototype._handleSortTableHeaderColumn=function(e,t,o){this._clearSortedHeaderColumn(e);var i=this._getColumnDefs()[e],l=null==i.sortProperty?i.field:i.sortProperty;this._invokeDataSort(l,t,o),this._sortColumn=i,this._refreshSortTableHeaderColumn(l,t)},I.prototype._processFetchSort=function(e){try{var t=e.fetchParameters[I._CONST_SORTCRITERIA];if(null!=t&&t.length>0){var o=t[0].attribute,i=t[0].direction===I._COLUMN_SORT_ORDER._ASCENDING;this._refreshSortTableHeaderColumn(o,i),this._setCurrentRow(this.options.currentRow)}else this._clearSortedHeaderColumn()}catch(e){C.error(e)}},I.prototype._handleMouseEnterColumnHeader=function(e){if(e){this._isColumnSelectionEnabled()&&e.classList.add(I.MARKER_STYLE_CLASSES._HOVER);var t=this._getElementColumnIdx(e);(e.classList.contains(I.CSS_CLASSES._COLUMN_HEADER_ASC_ICON_CLASS)||e.classList.contains(I.CSS_CLASSES._COLUMN_HEADER_DSC_ICON_CLASS)||e.classList.contains(I.CSS_CLASSES._COLUMN_HEADER_DEFAULT_SORT_ICON_CLASS))&&e.classList.add(I.MARKER_STYLE_CLASSES._HOVER),this._showTableHeaderColumnSortIcon(t)}},I.prototype._handleMouseLeaveColumnHeader=function(e){if(e){e.classList.remove(I.MARKER_STYLE_CLASSES._HOVER);var t=this._getElementColumnIdx(e);this._hideTableHeaderColumnSortIcon(t)}},I.prototype._showTableHeaderColumnSortIcon=function(e){if(this._getColumnDefs()[e].sortable===I._OPTION_ENABLED){var t=this._getTableHeaderColumn(e);if(!t)return;if(null==S(t).data("sorted")){var o=this._getSortIconContainer(t),i=this._getSortIcon(t);null!=o&&null!=i&&(i.classList.remove(I.MARKER_STYLE_CLASSES._DISABLED),i.classList.add(I.MARKER_STYLE_CLASSES._ENABLED),i.classList.add(I.MARKER_STYLE_CLASSES._DEFAULT))}}},I.prototype._hideTableHeaderColumnSortIcon=function(e){if(this._getColumnDefs()[e].sortable===I._OPTION_ENABLED){var t=this._getTableHeaderColumn(e);if(null==S(t).data("sorted")){var o=this._getSortIconContainer(t),i=this._getSortIcon(t);null!=o&&null!=i&&(o.setAttribute(I.DOM_ATTR._TITLE,this.getTranslatedString("labelSortAsc")),i.classList.remove(I.CSS_CLASSES._COLUMN_HEADER_DSC_ICON_CLASS),i.classList.remove(I.CSS_CLASSES._COLUMN_HEADER_ASC_ICON_CLASS),i.classList.add(I.CSS_CLASSES._COLUMN_HEADER_DEFAULT_SORT_ICON_CLASS),i.classList.add(I.MARKER_STYLE_CLASSES._DISABLED),i.classList.remove(I.MARKER_STYLE_CLASSES._ENABLED),i.classList.remove(I.MARKER_STYLE_CLASSES._DEFAULT))}}},I.prototype._refreshSortTableHeaderColumn=function(e,t){for(var o,i=this._getColumnDefs(),l=null,n=i.length,s=0;s<n;s++){var a=i[s];if(e===(null==a.sortProperty?a.field:a.sortProperty)){l=s;break}}if(null!=l){this._clearSortedHeaderColumn(l);var r=this._getTableHeaderColumn(l);if(null!=r){var _=S(r).data("sorted"),h=this._getSortIconContainer(r);null!=(o=this._getSortIcon(r))&&(o.classList.add(I.MARKER_STYLE_CLASSES._DEFAULT),o.classList.remove(I.MARKER_STYLE_CLASSES._DISABLED)),t&&_!==I._COLUMN_SORT_ORDER._ASCENDING?(S(r).data("sorted",I._COLUMN_SORT_ORDER._ASCENDING),null!=o&&(h.setAttribute(I.DOM_ATTR._TITLE,this.getTranslatedString("labelSortDsc")),o.classList.remove(I.CSS_CLASSES._COLUMN_HEADER_DEFAULT_SORT_ICON_CLASS),o.classList.remove(I.CSS_CLASSES._COLUMN_HEADER_DSC_ICON_CLASS),o.classList.add(I.CSS_CLASSES._COLUMN_HEADER_ASC_ICON_CLASS))):t||_===I._COLUMN_SORT_ORDER._DESCENDING||(S(r).data("sorted",I._COLUMN_SORT_ORDER._DESCENDING),null!=o&&(h.setAttribute(I.DOM_ATTR._TITLE,this.getTranslatedString("labelSortAsc")),o.classList.remove(I.CSS_CLASSES._COLUMN_HEADER_DEFAULT_SORT_ICON_CLASS),o.classList.remove(I.CSS_CLASSES._COLUMN_HEADER_ASC_ICON_CLASS),o.classList.add(I.CSS_CLASSES._COLUMN_HEADER_DSC_ICON_CLASS)))}}},I.prototype._getSortedTableHeaderColumnIdx=function(){for(var e=this._getTableHeaderColumns(),t=e?e.length:0,o=0;o<t;o++){if(null!=S(e[o]).data("sorted"))return o}return null},I.prototype._clearSortedHeaderColumn=function(e){var t=this._getSortedTableHeaderColumnIdx();if(null!=t){var o=this._getTableHeaderColumn(t);if(S(o).data("sorted",null),null==e||t!==e)this._hideTableHeaderColumnSortIcon(t);else{var i=this._getSortIcon(o);null!=i&&i.classList.remove(I.MARKER_STYLE_CLASSES._SELECTED)}}},I.prototype._getColumnDefs=function(){return this._columnDefArray||(this._columnDefArray=this._getColumnMetadata()),this._columnDefArray},I.prototype._getColumnMetadata=function(e){var t,o=null!=e?e:this.options.columns,i=this.options.columnsDefault;if((0===o.length||1===o.length&&null==o[0].id&&null==o[0].headerText&&null==o[0].field)&&null==i.headerText&&null==i.field)return[];var l=[],n=o.length;for(t=0;t<n;t++)l[t]=S.extend({},i,o[t]);var s=[],a=l.length;for(t=0;t<a;t++)s.push(l[t]);var r=this._getData(),_=!1;for(null!=r&&null!=r.getCapability("sort")&&(_=!0),t=0;t<a;t++)null==s[t][I._FIELD_ID]&&(s[t][I._FIELD_ID]=I._COLUMN_HEADER_ID_PREFIX+t),!_||null!=s[t].sortable&&s[t].sortable!==I._OPTION_AUTO||(s[t].sortable=I._OPTION_ENABLED);return s},I.prototype._getColumnRenderer=function(e,t){var o=this._getColumnDefs()[e],i=null;return"cell"===t?i=o.renderer:"footer"===t?i=o.footerRenderer:"header"===t&&(i=o.headerRenderer),this._WrapCustomElementRenderer(i)},I.prototype._getRowRenderer=function(){return this._WrapCustomElementRenderer(this.options.rowRenderer)},I.prototype._isLastRowInViewport=function(){var e=this._getTableBodyRows(),t=e[e.length-1];return this._getLayoutManager().getVerticalOverflowDiff(t).bottom-t.offsetHeight<=0},I.prototype._registerDomScroller=function(){this._unregisterDomScroller();var e=this._getLayoutManager();this._domScrollerSuccessFunc=function(t){if(this._clearDataWaitingState(),null!=t){this._noMoreData=!1,t.maxCountLimit&&(this._noMoreData=!0,this._handleScrollerMaxRowCount());var o=t[I._CONST_VALUE];if(null!=o){var i=o[I._CONST_DATA],l=o.metadata.map(function(e){return e[I._CONST_KEY]}),n=o[I._CONST_METADATA];if(i.length>0)return void this._queueTask(function(){var o;for(o=l.length-1;o>=0;o--)null!==this._getRowIdxForRowKey(l[o])&&(i.splice(o,1),l.splice(o,1),n.splice(o,1));if(i.length>0){e.notifyTableUpdate(I._UPDATE._ROWS_ADDED);var s=this._getTableBodyRows().length,a=[];for(o=0;o<i.length;o++)a[o]=s+o;return this._refreshTableBody({isMouseWheel:t.isMouseWheel,data:i,keys:l,metadata:n,indexes:a},s,!0).then(function(){e.clearCachedDimensions(),t.done?(this._noMoreData=!0,this._syncScrollPosition()):this._syncScrollPosition(null,null!=this._scrollPosition)}.bind(this))}return Promise.resolve()}.bind(this))}t.done?(this._noMoreData=!0,this._clearScrollBuffer(),this._syncScrollPosition()):(this._clearScrollBuffer(),this._syncScrollPosition(null,null!=this._scrollPosition))}else this._clearScrollBuffer(),this._syncScrollPosition()}.bind(this);var t=this._getTableBodyRows().length;this._requiresDomScrollerRefresh=!1,this._domScroller=new m(e.getScroller(),this._getData(),{asyncIterator:this._dataProviderAsyncIterator,contentElement:e.getContentElement(),fetchSize:this.options.scrollPolicyOptions.fetchSize,maxCount:this.options.scrollPolicyOptions.maxCount,initialRowCount:t,success:this._domScrollerSuccessFunc.bind(this),request:this._handleDataFetchStart.bind(this),localKeyValidator:function(e){return null!==this._findRowElementByKey(e)}.bind(this),beforeFetch:function(e){return null==this._idleCallback&&(this._fetchBySyncScroll=Math.abs(this._scrollY-e)<=1,this._setDataWaitingState(!1),this._showProgressiveLoading(),!0)}.bind(this),beforeScroll:this._clearScrollPosBusyState.bind(this),fetchTrigger:4})},I.prototype._unregisterDomScroller=function(){null!=this._domScroller&&(this._domScroller.destroy(),this._domScroller=null)},I.prototype._updateHeaderTop=function(e){if(this._isDefaultSelectorEnabled()){var t=this._getTableSelectorColumn();null!=t&&(t.style[I.CSS_PROP._TOP]=e+"px")}var o=this._getTableHeaderColumns();if(null!=o)for(var i=0;i<o.length;i++)o[i].style[I.CSS_PROP._TOP]=e+"px"},I.prototype._updateFooterBottom=function(e){if(this._isDefaultSelectorEnabled()){var t=this._getTableFooterSelectorCell();null!=t&&(t.style[I.CSS_PROP._BOTTOM]=e+"px")}var o=this._getTableFooterCells();if(null!=o)for(var i=0;i<o.length;i++)o[i].style[I.CSS_PROP._BOTTOM]=e+"px"},I.prototype._handleScrollerMaxRowCount=function(){var e=this.getTranslatedString("msgScrollPolicyMaxCountSummary"),t=this.getTranslatedString("msgScrollPolicyMaxCountDetail");C.info(e+"\n"+t)},I.prototype._clearIdleCallback=function(){null!=this._idleCallback&&(b.isRequestIdleCallbackSupported()?(window.cancelIdleCallback(this._idleCallback),window.cancelAnimationFrame(this._idleCallback)):window.cancelAnimationFrame(this._idleCallback),this._idleCallback=null)},I.prototype._requestIdleCallback=function(e,t){if(b.isRequestIdleCallbackSupported()){var o,i=window.setTimeout(function(){this._idleCallback=window.requestAnimationFrame(function(){t()}),i=null},250);e&&b.isBlink()&&(o={timeout:100}),this._idleCallback=window.requestIdleCallback(function(e){null!=i&&(window.clearTimeout(i),t(e))},o)}else this._idleCallback=window.requestAnimationFrame(function(){t()})},I.prototype._renderRowsWhenIdle=function(e,t,o,i,l,n){if(0===e.length)return this._idleCallback=null,void this._afterRowsRendered(t).then(function(e){i(e)},function(e){l(e)});var s,a=this,r=0;function _(){window.requestAnimationFrame(function(){a._getLayoutManager().handleAfterRowsProcessed(s),a._appendElementToTableBody(s,t),a._renderRowsWhenIdle(e,t,o+r,i,l,n),n&&b.isFirefox()&&t.scrollTop!==a._scrollTop&&(t.scrollTop=a._scrollTop)})}this._requestIdleCallback(n,function(i){void 0===i?function(){s=document.createDocumentFragment();for(var i=0;i<I._BATCH_PROCESS_SIZE_WHEN_IDLE&&0!==e.length;i++)0!==r||a._getLayoutManager().isTableWidthConstrained()||(t.style[I.CSS_PROP._OVERFLOW_X]="hidden"),a._renderRow(e.shift(),s,o),r+=1;_()}():function(i){var l=i.timeRemaining(),n=0;for(s=document.createDocumentFragment();(l>n||i.didTimeout)&&0!==e.length;)0!==r||a._getLayoutManager().isTableWidthConstrained()||(t.style[I.CSS_PROP._OVERFLOW_X]="hidden"),a._renderRow(e.shift(),s,o),r+=1,n=l-i.timeRemaining(),l=i.timeRemaining();_()}(i)})},I.prototype._renderRow=function(e,t,o){var i=e.row,l=e.rowIdx;if(null!=i){var n=this._createTableBodyRow();this._setTableBodyRowAttributes(i,n),this._styleTableBodyRow(n,!0),this._insertTableBodyRow(l,n,t),this._refreshTableBodyRow(l,i,n,t,o)}},I.prototype._afterRowsRendered=function(e){this._clearCachedDomRowData(),this._clearIdleRenderBusyState(),this._hasRowOrCellRendererOrTemplate()&&f.subtreeAttached(e);var t=this._getTableBodyRows();return t.length>0?this._finalizeBodyRowRendering(t):Promise.resolve(!0)},I.prototype._getRowIdxsForElementsWithStyleClass=function(e){var t=this._tableQuerySelectorAll(this._getTable(),e),o=[];if(t&&t.length>0)for(var i=t.length,l=0;l<i;l++){for(var n=this._getElementRowIdx(t[l]),s=!1,a=o.length,r=0;r<a;r++)o[r]===n&&(s=!0);s||o.push(n)}return o},I.prototype._getColumnIdxsForElementsWithStyleClass=function(e){var t=this._tableQuerySelectorAll(this._getTable(),e),o=[];if(t&&t.length>0)for(var i=t.length,l=0;l<i;l++){var n=this._getElementColumnIdx(t[l]),s=!1;null===n&&(t[l].classList.contains(I.CSS_CLASSES._COLUMN_HEADER_SELECTOR_CELL_CLASS)||t[l].classList.contains(I.CSS_CLASSES._TABLE_FOOTER_SELECTOR_CELL_CLASS))&&(n=-1);for(var a=o.length,r=0;r<a;r++)o[r]===n&&(s=!0);s||o.push(n)}return o},I.prototype._syncTableSizing=function(e){var t=this._getLayoutManager();t.isTableLayoutRefreshRequired()&&(e||t.isSizingRefreshRequired())&&t.refreshTableDimensions();var o=this._updateScrollBufferHeight();this._isLoadMoreOnScroll()&&!this._dataFetching&&this._domScroller?(this._setDataWaitingState(!1),this._domScroller.checkViewport(o>0||this._noDataMessageShown).then(this._domScrollerSuccessFunc,this._checkViewportRejected.bind(this))):(this._clearScrollBuffer(),this._syncScrollPosition())},I.prototype._updateScrollBufferHeight=function(){var e=0,t=this._getLayoutManager(),o=this._getTableBodyScrollBuffer();if(null!=o&&(e=o.offsetHeight)>0){var i=t.getVerticalOverflowDiff(o).bottom,l=Math.min(Math.max(0,e-i),e);l!==e&&(e=l,o.style[I.CSS_PROP._HEIGHT]=e+I.CSS_VAL._PX)}return e},I.prototype._clearScrollBuffer=function(){var e=this._getTableBodyScrollBuffer();null!=e&&(this._getTableBody().removeChild(e),this._clearDomCache(I.CSS_CLASSES._TABLE_BUFFER_ROW_CLASS))},I.prototype._addSingleTableBodyRow=function(e,t,o,i){var l=this._createTableBodyRow();return this._setTableBodyRowAttributes(t,l),this._styleTableBodyRow(l,!0),this._insertTableBodyRow(e,l,o),l=this._refreshTableBodyRow(e,t,l,o,i),o||f.subtreeAttached(l),l},I.prototype._animateVisibleRows=function(e,t,o){if(o=null==this._animationActionOverride?o:this._animationActionOverride,!this._hasAdditionalPendingTasks()){this._animationActionOverride=null;var i,l=this._getVisibleRowIdxs(),n=[];for(i=0;i<t.length;i++)-1===l.indexOf(t[i])&&n.push(t[i]);for(n.sort(function(e,t){return e-t}),i=n.length-1;i>=0;i--)e.splice(n[i],1);return this._unregisterResizeListener(),this._animateTableBodyRows(e,o).then(function(){this._registerResizeListener()}.bind(this))}return this._animationActionOverride="update",Promise.resolve()},I.prototype._cleanTemplateNodes=function(e){var t=this._getTemplateEngine();null!=t&&t.clean(e)},I.prototype._clearCachedMetadata=function(){this._columnDefArray=null,this._setTableActionableMode(!1)},I.prototype._getSlotTemplate=function(e){if(this._IsCustomElement()&&e){var t=R.CustomElementUtils.getSlotMap(this._getRootElement())[e];if(t&&t.length>0&&"template"===t[0].tagName.toLowerCase())return t[0]}return null},I.prototype._isDefaultCellTemplateSlotValid=function(){return this._isDefaultTemplateSlotValid("cellTemplate")},I.prototype._isDefaultRowTemplateSlotValid=function(){return this._isDefaultTemplateSlotValid("rowTemplate")},I.prototype._isDefaultHeaderTemplateSlotValid=function(){return this._isDefaultTemplateSlotValid("headerTemplate")},I.prototype._isDefaultFooterTemplateSlotValid=function(){return this._isDefaultTemplateSlotValid("footerTemplate")},I.prototype._isDefaultAddRowTemplateSlotValid=function(){return this._isDefaultTemplateSlotValid("addRowTemplate")},I.prototype._isDefaultAddRowCellTemplateSlotValid=function(){return this._isDefaultTemplateSlotValid("addRowCellTemplate")},I.prototype._isDefaultTemplateSlotValid=function(e){for(var t=this._getColumnDefs(),o=t.length,i=0;i<o;i++){var l=t[i][I._CELL_TEMPLATE],n=t[i][I._HEADER_TEMPLATE],s=t[i][I._FOOTER_TEMPLATE];if(e===l||e===n||e===s)return!1}return!0},I.prototype._getTemplateEngine=function(){return this._templateEngine},I.prototype._getVisibleRowIdxs=function(){var e=[],t=this._getTableBody(),o=this._getTableBodyRows();if(o.length>0&&t.offsetHeight>0){var i=S(window).height(),l=t.getBoundingClientRect();if(l.top>i)return e;var n=l.left>=0?l.left+1:l.right-1,s=l.top>=0?l.top:0,a=document.elementFromPoint(n,s),r=null;null!=a&&(r=this._getElementRowIdx(a));var _,h,d=null!=r?r:0;if(l.bottom>i)null!=(h=document.elementFromPoint(n,i-1))&&(_=this._getElementRowIdx(h));else{var u=parseInt(window.getComputedStyle(t).borderBottomWidth,10)||0,c=l.bottom>=0?l.bottom-u-1:0;null!=(h=document.elementFromPoint(n,c))&&(_=this._getElementRowIdx(h))}null==_&&(_=o.length-1);for(var E=d;E<=_;E++)e.push(E)}return e},I.prototype._hasRowOrCellRendererOrTemplate=function(e){if(null!=this._getRowRenderer())return!0;var t=null,o=null,i=this._getColumnDefs();if(null!=e)t=this._getColumnRenderer(e,"cell"),o=this._getSlotTemplate(i[e][I._CELL_TEMPLATE]);else for(var l=i.length,n=0;n<l&&null==(t=this._getColumnRenderer(n,"cell"))&&null==(o=this._getSlotTemplate(i[n][I._CELL_TEMPLATE]));n++);if(null!=t||null!=o)return!0;if(this._isDefaultRowTemplateSlotValid()&&null!=this._getSlotTemplate("rowTemplate"))return!0;if(this._isDefaultCellTemplateSlotValid()&&null!=this._getSlotTemplate("cellTemplate"))return!0;return!1},I.prototype._initFetch=function(e,t){var o=e||{},i=this._getData(),l=this._getLayoutManager();return null==i||!u.DataProviderFeatureChecker.isDataProvider(i)||this._isPagingModelDataProvider()&&!t?null==i?this._queueTask(function(){return l.notifyTableUpdate(t?I._UPDATE._DATA_SORT:I._UPDATE._REFRESH),Promise.resolve()}):void 0:this._queueTask(function(){return l.notifyTableUpdate(t?I._UPDATE._DATA_SORT:I._UPDATE._REFRESH),this._isExternalScrollEnabled()||(this._scrollTop=0,l.getScroller().scrollTop=0),i instanceof u.TableDataSourceAdapter&&(o.fetchType="init",this._isLoadMoreOnScroll()&&(o[I._CONST_OFFSET]=0)),this._invokeDataFetchRows(o)}.bind(this))},I.prototype._initTemplateEngine=function(){this._queueTask(function(){var e;try{const t={customElement:this._GetCustomElement()};e=p.__getTemplateEngine(t).then(function(e){this._templateEngine=e}.bind(this),function(e){C.warn(e)})}catch(t){C.warn(t),e=Promise.resolve(null)}return e}.bind(this))},I.prototype._initializeFetchFirstOptions=function(e){var t=e||{};return this._clientId=this._clientId||Symbol(),t[I._CONST_CLIENTID]=this._clientId,!t[I._CONST_PAGESIZE]&&this._isLoadMoreOnScroll()?t[I._CONST_PAGESIZE]=this.options.scrollPolicyOptions.fetchSize:t[I._CONST_PAGESIZE]=-1,t[I._CONST_SILENT]=!0,t},I.prototype._containsKey=function(e,t){for(var o=0;o<t.length;o++)if(u.KeyUtils.equals(t[o].key,e))return!0;return!1},I.prototype._invokeDataFetchRows=function(e){var t=this._initializeFetchFirstOptions(e),o=this._getData();return null!=o?new Promise(function(e){this._animateOnFetch=!1,this._noMoreData=!1,this._setDataWaitingState(),this._hasRefreshInQueue=!1,this._dataProviderAsyncIterator=o.fetchFirst(t)[Symbol.asyncIterator]();var i=function(e,t,l){var n=l;return(null==l||this._containsKey(l,t))&&(n=null),e.done||null==n&&(this._isLoadMoreOnScroll()||"function"==typeof o.getPageCount)?e:this._dataProviderAsyncIterator.next().then(function(t){return e.done=t.done,e.value.data=e.value.data.concat(t.value.data),e.value.metadata=e.value.metadata.concat(t.value.metadata),i(e,t.value.metadata,n)})}.bind(this),l=this._getScrollToKey(),n=this._dataProviderAsyncIterator.next();Promise.all([n,l]).then(function(e){var t=e[0],o=e[1];return i(t,t[I._CONST_VALUE].metadata,o)}).then(function(t){var i=t[I._CONST_VALUE],l=i[I._CONST_DATA],n=i.metadata.map(function(e){return e[I._CONST_KEY]}),s=0;o instanceof u.TableDataSourceAdapter&&(s=o[I._CONST_OFFSET]);var a=0;this._isPagingModelDataProvider()&&(a=o.getStartItemIndex());for(var r=[],_=l.length,h=0;h<_;h++)r[h]=s+a+h;var d=i[I._CONST_METADATA];this._unregisterDomScroller(),t.maxCountLimit?(this._noMoreData=!0,this._handleScrollerMaxRowCount()):t.done&&(this._noMoreData=!0),this._refreshAll({data:l,metadata:d,keys:n,indexes:r},s).then(function(){this._clearDataWaitingState(),this._processFetchSort(i),this._isLoadMoreOnScroll()&&this._registerDomScroller(),e(t)}.bind(this))}.bind(this),function(){this._clearDataWaitingState();var t=this._getTableBody();0===this._getTableBodyRows().length&&(this._showNoDataMessage(),this._finalizeNonBodyRowRendering([t]).then(function(){e(null)})),e(null)}.bind(this))}.bind(this)):Promise.resolve(null)},I.prototype._invokeDataSort=function(e,t,o){if(this._resetAriaLabel=!0,this._getData()){var i=[],l={};l[I._CONST_ATTRIBUTE]=e,l.direction=t?I._COLUMN_SORT_ORDER._ASCENDING:I._COLUMN_SORT_ORDER._DESCENDING,i.push(l),this._trigger("sort",o,{header:i[0][I._CONST_ATTRIBUTE],direction:i[0].direction}),this._beforeDataRefresh(!0),this._showStatusMessage(),this._initFetch({sortCriteria:i},!0)}},I.prototype._isColumnMetadataUpdated=function(e){if(null!=this._columnDefArray){var t=this._getColumnMetadata(e);if(this._columnDefArray.length!==t.length)return!0;for(var o=t.length,i=0;i<o;i++)for(var l=Object.keys(t[i]),n=0;n<l.length;n++){var s=l[n];if(t[i][s]!==this._columnDefArray[i][s]&&("id"!==s||null==t[i][s]||0!==t[i][s].indexOf(I._COLUMN_HEADER_ID_PREFIX)||null==this._columnDefArray[i][s]||0!==this._columnDefArray[i][s].indexOf(I._COLUMN_HEADER_ID_PREFIX)))return!0}return!1}return!0},I.prototype._getColumnKeys=function(){for(var e=[],t=this._getColumnDefs(),o=0;o<t.length;o++)e.push(t[o][I._FIELD_ID]);return e},I.prototype._getLocalRowKeys=function(){for(var e=[],t=this._getTableBodyRows(),o=0;o<t.length;o++)e.push(t[o][I._ROW_ITEM_EXPANDO].key);return e},I.prototype._hasMoreToFetch=function(){return!!this._isLoadMoreOnScroll()&&!this._noMoreData},I.prototype._clearCachedDataMetadata=function(){null!=this._data&&this._unregisterDataSourceEventListeners(),this._data=null},I.prototype._getColumnIdxForColumnKey=function(e){for(var t=this._getColumnDefs(),o=t.length,i=0;i<o;i++){var l=t[i];if(u.KeyUtils.equals(l.id,e))return i}return null},I.prototype._getColumnKeyForColumnIdx=function(e){var t=this._getColumnDefs();return e<t.length?t[e][I._FIELD_ID]:null},I.prototype._getRowIdxRowArray=function(e,t){var o=[];if(null!=e)for(var i=e[I._CONST_INDEXES].length,l=0;l<i;l++)o.push({row:{data:e[I._CONST_DATA][l],metadata:e[I._CONST_METADATA]?e[I._CONST_METADATA][l]:null,key:e[I._CONST_KEYS][l],index:e[I._CONST_INDEXES][l]},rowIdx:t+l});return o},I.prototype._getRowIdxForRowKey=function(e){var t=this._getTableBodyRows();if(t.length>0)for(var o=t.length,i=0;i<o;i++)if(u.KeyUtils.equals(t[i][I._ROW_ITEM_EXPANDO].key,e))return i;return null},I.prototype._getDataSourceRowIndexForRowKey=function(e){var t=this._getTableBodyRows();if(t.length>0)for(var o=t.length,i=0;i<o;i++)if(u.KeyUtils.equals(t[i][I._ROW_ITEM_EXPANDO].key,e)){var l=this._getData(),n=0;return this._isPagingModelDataProvider()&&(n=l.getStartItemIndex()),i+n}return null},I.prototype._getRowKeyForDataSourceRowIndex=function(e){var t=this._getTableBodyRows();if(t.length>0){var o=this._getData(),i=0;this._isPagingModelDataProvider()&&(i=o.getStartItemIndex());for(var l=t.length,n=0;n<l;n++)if(i+n===e)return t[n][I._ROW_ITEM_EXPANDO].key}return null},I.prototype._getRowKeyForRowIdx=function(e){var t=this._getTableBodyRow(e);return null!=t?t[I._ROW_ITEM_EXPANDO].key:null},I.prototype._getRowKey=function(e,t){return null==e&&(e=this._getTableBodyRow(t)),null!=e?e[I._ROW_ITEM_EXPANDO].key:null},I.prototype._isPagingModelDataProvider=function(){var e=this._getData();return null!=e.getStartItemIndex&&null!==e.getStartItemIndex()&&e.getStartItemIndex()>=0},I.prototype._animateTableBodyRow=function(e,t){return this._isAnimationDisabled(t)?Promise.resolve(!1):new Promise(function(o){this._startAnimation(e,t).then(function(){o(!0)})}.bind(this))},I.prototype._animateTableBodyRows=function(e,t){if(this._isAnimationDisabled(t))return Promise.resolve(!1);for(var o=[],i=0;i<e.length;i++){var l=e[i];o.push(function(e){return this._animateTableBodyRow(e,t)}.bind(this)(l))}return o.length>0?Promise.all(o):Promise.resolve(!1)},I.prototype._getAnimationEffect=function(e){return null==this.defaultAnimations&&(this.defaultAnimations={}),null==this.defaultAnimations[e]&&(this.defaultAnimations[e]=JSON.parse(this._getDefaultOptions()[e+"Animation"])),this.defaultAnimations[e]},I.prototype._isAnimationDisabled=function(e){var t=this._getAnimationEffect(e);return null==t||0===t.length},I.prototype._startAnimation=function(e,t,o){return null==o&&(o=this._getAnimationEffect(t)),L.startAnimation(e,t,o,this)},I.prototype._isAddNewRowEnabled=function(){return this._isStickyLayoutEnabled()&&"top"===this.options.addRowDisplay&&(null!=this._getSlotTemplate("addRowTemplate")&&this._isDefaultAddRowTemplateSlotValid()||null!=this._getSlotTemplate("addRowCellTemplate")&&this._isDefaultAddRowCellTemplateSlotValid())},I.prototype._refreshAddRowDisplay=function(){return this._isAddRowRendered=!1,this._refreshAddNewRowPlaceholder().then(function(e){this._getLayoutManager().notifyTableUpdate(I._UPDATE._ADD_ROW_DISPLAY),e&&(this._setActiveAddRow(),this._setTableActionableMode(!0))}.bind(this))};const w=function(e){this.component=e,this.Init()};u._registerLegacyNamespaceProp("TableDndContext",w),u.Object.createSubclass(w,u.Object,"oj.TableDndContext"),w._CSS_CLASSES={_DRAG_SOURCE:"oj-table-drag-source",_DRAG_SOURCE_OPAQUE:"oj-table-drag-source-opaque",_DROP_TARGET_EMPTY:"oj-table-drop-target-empty"},w.prototype.Init=function(){w.superclass.Init.call(this)},w.prototype._addDragMarkerClass=function(e){this.component._getTableHeaderColumn(e).classList.add(w._CSS_CLASSES._DRAG_SOURCE_OPAQUE),this.component._setTableColumnCellsClass(e,!0,w._CSS_CLASSES._DRAG_SOURCE_OPAQUE)},w.prototype._removeDragMarkerClass=function(){var e=this.component._getTableElementsByClassName(this.component._getTableHeader(),w._CSS_CLASSES._DRAG_SOURCE_OPAQUE);if(null!=e&&e.length>0)for(var t=e.length,o=0;o<t;o++)e[o].classList.remove(w._CSS_CLASSES._DRAG_SOURCE_OPAQUE);this.component._setTableColumnCellsClass(null,!1,w._CSS_CLASSES._DRAG_SOURCE_OPAQUE)},w.prototype._cloneTableContainer=function(e){var t=this.component._getTableElementsByTagName(e,I.DOM_ELEMENT._TBODY)[0],o=S(t).scrollLeft(),i=e.cloneNode(),l=this.component._getTableElementsByTagName(e,I.DOM_ELEMENT._TABLE)[0].cloneNode(),n=t.cloneNode(),s=this.component._rowsDragged[0].offsetTop;return this.component._rowsDragged.forEach(function(e){var t=e.querySelectorAll("td"),o=e.cloneNode(!0);if(this.component._isDefaultSelectorEnabled()){var i=this.component._getTableElementsByClassName(o,I.CSS_CLASSES._TABLE_DATA_ROW_SELECTOR_CLASS)[0];i.selectedKeys=this.component.options.selected.row,i.rowKey=this.component._getRowKey(e)}var l=o.querySelectorAll("td");o.style.position=I.CSS_VAL._ABSOLUTE,o.style.top=e.offsetTop-s+I.CSS_VAL._PX,o.style.width=e.offsetWidth+I.CSS_VAL._PX,o.classList.add("oj-table-body-row-drag-image"),o.classList.remove(I.MARKER_STYLE_CLASSES._SELECTED),o.classList.remove(I.MARKER_STYLE_CLASSES._FOCUS),o.classList.remove(I.MARKER_STYLE_CLASSES._FOCUS_HIGHLIGHT),l.forEach(function(e,o){e.style.width=t[o].offsetWidth+I.CSS_VAL._PX,e.classList.remove(I.MARKER_STYLE_CLASSES._SELECTED),e.classList.remove(I.MARKER_STYLE_CLASSES._HOVER)}),n.appendChild(o)}.bind(this)),l.appendChild(n),i.appendChild(l),i.classList.add("oj-table-container-drag-image"),i.style[I.CSS_PROP._HEIGHT]=window.innerHeight+I.CSS_VAL._PX,i.style[I.CSS_PROP._OVERFLOW]=I.CSS_VAL._HIDDEN,i.style[I.CSS_PROP._OVERFLOW_X]=I.CSS_VAL._HIDDEN,i.style[I.CSS_PROP._OVERFLOW_Y]=I.CSS_VAL._HIDDEN,n.style[I.CSS_PROP._OVERFLOW]=I.CSS_VAL._HIDDEN,n.style[I.CSS_PROP._OVERFLOW_X]=I.CSS_VAL._HIDDEN,n.style[I.CSS_PROP._OVERFLOW_Y]=I.CSS_VAL._HIDDEN,n.style[I.CSS_PROP._BACKGROUND_COLOR]=I.CSS_VAL._TRANSPARENT,n.style[I.CSS_PROP._BORDER_COLOR]=I.CSS_VAL._TRANSPARENT,n.style[I.CSS_PROP._WIDTH]=S(t).width()+I.CSS_VAL._PX,n.style[I.CSS_PROP._HEIGHT]=t.scrollHeight+I.CSS_VAL._PX,l.style[I.CSS_PROP._WIDTH]=S(t).width()+I.CSS_VAL._PX,document.body.appendChild(i),S(n).scrollLeft(1*o),i},w.prototype._destroyDragImage=function(){this._dragImage&&(S(this._dragImage).remove(),this._dragImage=null)},w.prototype._getEventColumnIndex=function(e){return this.component._getElementColumnIdx(e.currentTarget)},w.prototype._getOverRowIndex=function(e){var t,o=this.component._getFirstAncestor(e.target,I.DOM_ELEMENT._TR,!0),i=this.component._getFirstAncestor(e.target,"."+I.CSS_CLASSES._TABLE_DATA_CELL_CLASS+", ."+I.CSS_CLASSES._TABLE_SELECTOR_CELL,!0);if(null!=i){var l=this.component._getFirstAncestor(i,"."+I.CSS_CLASSES._TABLE_DATA_ROW_CLASS,!0);if(null!=l){t=this.component._getTableBodyRows().indexOf(l);var n=e.target.getBoundingClientRect();e.offsetY>n.height/2&&(t+=1)}}else if(S(o).hasClass(I.CSS_CLASSES._TABLE_DATA_ROW_DRAG_INDICATOR_CLASS))t=this._dropRowIndex;else{if(0===(t=this.component._getTableBodyRows().length)){this.component._getTableBody().classList.add(w._CSS_CLASSES._DROP_TARGET_EMPTY)}}return t},w.prototype.handleColumnDragStart=function(e){if(this._isColumnReorderEnabled())return this._dragStartColumnIdxs=this.component._getSelectedHeaderColumnIdxs(),this._setReorderColumnsDataTransfer(e,this._dragStartColumnIdxs),setTimeout(function(){window.getSelection().removeAllRanges()},0),this._dragStartColumnIdxs.forEach(function(e){this._addDragMarkerClass(e)}.bind(this)),!0},w.prototype.handleColumnDragEnd=function(e){this._isColumnReorderEnabled()&&(this._dragStartColumnIdxs=null,this.component._removeDragOverIndicatorColumn(),this._destroyDragImage(),this._removeDragMarkerClass())},w.prototype.handleColumnDragEnter=function(e){if(!this._isColumnReordering()){var t=this._getEventColumnIndex(e);return this._invokeDropCallback("columns","dragEnter",e,{columnIndex:t})}},w.prototype.handleColumnReorderDragOver=function(e){var t=this._getDragOverColumnIndex(e);null!=t&&null!=this._dragStartColumnIdxs&&this._dragStartColumnIdxs.length>0&&-1===this._dragStartColumnIdxs.indexOf(t)&&(this._currentDropColumnBefore=this._isDragOverBeforeColumn(e,t),this._currentDropColumnBefore&&this._dragStartColumnIdxs.indexOf(t-1)>-1||!this._currentDropColumnBefore&&this._dragStartColumnIdxs.indexOf(t+1)>-1||this.component._displayDragOverIndicatorColumn(t,this._currentDropColumnBefore),e.preventDefault())},w.prototype._getDragOverColumnIndex=function(e){let t=this.component._getTableHeaderColumns();if(e.originalEvent.clientX<t[0].getBoundingClientRect().left)return 0;for(let o=0;o<t.length;o++){let i=t[o].getBoundingClientRect();if(e.originalEvent.clientX>i.left&&e.originalEvent.clientX<=i.right)return o}return null},w.prototype.handleColumnDragOver=function(e){if(!this._isColumnReordering()){var t=this._getEventColumnIndex(e);this._currentDropColumnBefore=this._isDragOverBeforeColumn(e,t);var o=this._invokeDropCallback("columns","dragOver",e,{columnIndex:t});return(!1===o||e.isDefaultPrevented())&&this.component._displayDragOverIndicatorColumn(t,this._isDragOverBeforeColumn(e,t)),o}},w.prototype.handleColumnDragLeave=function(e){if(!this._isColumnReordering()){this.component._removeDragOverIndicatorColumn();var t=this._getEventColumnIndex(e);return this._invokeDndCallback("drop","columns","dragLeave",e,{columnIndex:t})}},w.prototype.handleColumnReorderDrop=function(e){this.component._removeDragOverIndicatorColumn();var t=this._getDragOverColumnIndex(e);null!=t&&(this._currentDropColumnBefore||(t+=1),-1===this._dragStartColumnIdxs.indexOf(t)&&(this.component._columnsDestMap=this.component._moveTableHeaderColumn(this._dragStartColumnIdxs,t,e))),e.preventDefault()},w.prototype.handleColumnDrop=function(e){if(!this._isColumnReordering()){this.component._removeDragOverIndicatorColumn();var t=this._getEventColumnIndex(e);return this._currentDropColumnBefore||(t+=1),this._invokeDropCallback("columns","drop",e,{columnIndex:t})}},w.prototype.handleRowDragStart=function(e){var t=this.component.options.dnd.drag;if(t&&t.rows){var o=this._setDragRowsDataTransfer(e,t.rows.dataTypes,this.component._getSelectedRowIdxs());return!!o&&this._invokeDndCallback("drag","rows","dragStart",e,o)}},w.prototype.handleRowDrag=function(e){return this._invokeDndCallback("drag","rows","drag",e)},w.prototype.handleRowDragEnd=function(e){return this._destroyDragImage(),this.component._rowsDragged&&this.component._rowsDragged.length>0&&this.component._rowsDragged.forEach(function(e){e.classList.remove(w._CSS_CLASSES._DRAG_SOURCE_OPAQUE),e.classList.remove("oj-table-row-drag-source-hide"),e.classList.add(I.MARKER_STYLE_CLASSES._SELECTED),this.component._updateRowStateCellsClass(null,e,{selected:!0})}.bind(this)),this.component._removeDragOverIndicatorRow(),this._invokeDndCallback("drag","rows","dragEnd",e)},w.prototype.handleRowDragEnter=function(e){var t=this._getOverRowIndex(e);return this._invokeDropCallback("rows","dragEnter",e,{rowIndex:t})},w.prototype.handleRowDragOver=function(e){var t=this._getOverRowIndex(e),o=this._invokeDropCallback("rows","dragOver",e,{rowIndex:t});return!1===o||e.isDefaultPrevented()?this._updateDragRowsState(e,t):e.currentTarget.classList.contains(w._CSS_CLASSES._DRAG_SOURCE)&&this.component._rowsDragged.forEach(function(e){e.classList.add(w._CSS_CLASSES._DRAG_SOURCE_OPAQUE)}),o},w.prototype.handleRowDragLeave=function(e){var t=this._invokeDndCallback("drop","rows","dragLeave",e,{rowIndex:this._dropRowIndex});this._isDndEventInElement(e,e.currentTarget)||(this.component._getTableBody().classList.remove(w._CSS_CLASSES._DROP_TARGET_EMPTY),this.component._removeDragOverIndicatorRow(),this._dropRowIndex=null);return t},w.prototype.handleRowDrop=function(e){var t=this._dropRowIndex;return this._destroyDragImage(),this.component._getTableBody().classList.remove(w._CSS_CLASSES._DROP_TARGET_EMPTY),this.component._removeDragOverIndicatorRow(),this._dropRowIndex=null,this._invokeDropCallback("rows","drop",e,{rowIndex:t})},w.prototype._invokeDndCallback=function(e,t,o,i,l){var n,s=this.component.options.dnd[e];if(s&&s[t]){var a=s[t][o];if(a&&"function"==typeof a)try{this.component._IsCustomElement()?(a(i.originalEvent,l),i.originalEvent.defaultPrevented&&i.preventDefault()):(i.dataTransfer=i.originalEvent.dataTransfer,n=a(i,l))}catch(e){C.error("Error: "+e)}}return n},w.prototype._invokeDropCallback=function(e,t,o,i){var l=this._invokeDndCallback("drop",e,t,o,i);return void 0===l&&this._matchDragDataType(o,e)&&o.preventDefault(),l},w.prototype._isColumnReorderEnabled=function(){var e=this.component.options.dnd;return e&&e.reorder&&e.reorder.columns===I._OPTION_ENABLED},w.prototype._isColumnReordering=function(){return null!=this._dragStartColumnIdxs},w.prototype._isDndEventInElement=function(e,t){var o=t.getBoundingClientRect(),i=e.originalEvent;return i.clientX>=Math.ceil(o.left)&&i.clientX<Math.floor(o.right)&&i.clientY>=Math.ceil(o.top)&&i.clientY<Math.floor(o.bottom)},w.prototype._isDragOverBeforeColumn=function(e,t){var o=this.component._getTableHeaderColumn(t).getBoundingClientRect();if(null!=e.originalEvent.clientX){var i=o.right-e.originalEvent.clientX<(o.right-o.left)/2;return"rtl"===E.getReadingDirection()?i:!i}return!1},w.prototype._matchDragDataType=function(e,t){var o=e.originalEvent.dataTransfer.types,i=this.component.options.dnd.drop;if(i&&i[t]&&i[t].dataTypes)for(var l=i[t].dataTypes,n="string"==typeof l?[l]:l,s=0;s<o.length;s++)if(n.indexOf(o[s])>=0)return!0;return!1},w.prototype.setElementDraggable=function(e,t){t?(e.setAttribute(I.DOM_ATTR._DRAGGABLE,!0),e.classList.add(I.MARKER_STYLE_CLASSES._DRAGGABLE)):(e.removeAttribute(I.DOM_ATTR._DRAGGABLE),e.classList.remove(I.MARKER_STYLE_CLASSES._DRAGGABLE))},w.prototype._setDragRowsData=function(e,t,o){if(t){var i=e.dataTransfer,l=JSON.stringify(o);if("string"==typeof t)i.setData(t,l);else for(var n=0;n<t.length;n++)i.setData(t[n],l)}},w.prototype._setDragRowsDataTransfer=function(e,t,o){var i=[];this.component._rowsDragged=[];for(var l=0;l<o.length;l++){var n=this.component.getDataForVisibleRow(o[l]);let e=this.component._getTableBodyRow(o[l]);n&&e&&(i.push(n),this.component._rowsDragged.push(e))}return i.length?(this._setDragRowsData(e.originalEvent,t,i),this._destroyDragImage(),this._dragImage=this._setDragRowsImage(e.originalEvent,this.component._getTableContainer()),{rows:i}):null},w.prototype._setDragRowsImage=function(e,t){var o=this._cloneTableContainer(t),i=this.component._getTableElementsByTagName(t,I.DOM_ELEMENT._TBODY)[0],l=Math.max(0,e.offsetX),n=Math.max(0,e.offsetY);return i.classList.add(w._CSS_CLASSES._DRAG_SOURCE),e.dataTransfer.setDragImage(o,l,n),o},w.prototype._setReorderColumnsDataTransfer=function(e,t){var o=e.originalEvent.dataTransfer,i=this.component._hashCode(this.component._getTableUID());o.setData("Text",I._DND_REORDER_TABLE_ID_DATA_KEY+":"+i+":"+t.join("-")),this._dragImage=this.component._createTableHeaderColumnDragImage(t);try{o.setDragImage(this._dragImage,0,0)}catch(e){}},w.prototype._updateDragRowsState=function(e,t){if(this._dropRowIndex!==t){var o=this.component._getFirstAncestor(e.target,I.DOM_ELEMENT._TR,!0);this._dropRowIndex=t;let i=e.currentTarget.classList.contains(w._CSS_CLASSES._DRAG_SOURCE)||e.currentTarget.classList.contains(w._CSS_CLASSES._DROP_TARGET_EMPTY)?"space":"line";this.component._displayDragOverIndicatorRow(this._dropRowIndex,o,i,e.currentTarget.classList.contains(w._CSS_CLASSES._DRAG_SOURCE))}};const N=function(e){this._table=e,this._tableUpdates=new Set};u.Object.createSubclass(N,u.Object,"TableLayoutManager"),N.prototype.getScroller=function(){},N.prototype.getContentElement=function(){},N.prototype.unregisterListeners=function(){this.unregisterScrollListeners()},N.prototype._getSizingState=function(){return null==this._sizingState&&(this._sizingState={outerWidth:null,outerHeight:null,hasHorizontalOverflow:!1,hasVerticalOverflow:!1}),this._sizingState},N.prototype.notifyTableUpdate=function(e){this._tableUpdates.add(e)},N.prototype._getTableUpdates=function(){return this._tableUpdates},N.prototype._clearTableUpdates=function(){this._tableUpdates.clear()},N.prototype.isTableLayoutRefreshRequired=function(){return this._tableUpdates.size>0},N.prototype.isSizingRefreshRequired=function(e,t){if(null!=e&&null!=t){var o=this._getSizingState();return e>0&&t>0&&(e!==o.outerWidth||t!==o.outerHeight)}return this.hasRenderedSize()},N.prototype.hasRenderedSize=function(){var e=this._table._getTableContainer();return e.offsetWidth>0&&e.offsetHeight>0},N.prototype._enableTableVisibility=function(){this._table._clearTableBodyHideTimeout(),this._table._clearTableFooterHideTimeout();var e=this._table._getTableBody();e&&(e.style[I.CSS_PROP._VISIBILITY]="");var t=this._table._getTableFooter();t&&(t.style[I.CSS_PROP._VISIBILITY]="")},N.prototype.refreshTableDimensions=function(){},N.prototype._restoreCachedScrollPos=function(){var e=null!=this._table._scrollTop&&this._table._scrollTop>0?this._table._scrollTop:null,t=null!=this._table._scrollLeft&&this._table._scrollLeft>0?this._table._scrollLeft:null;if(null!=e){var o=this.getScroller().scrollHeight-this.getScroller().clientHeight,i=e>o?o:e;this._table._isLoadMoreOnScroll()&&o===i&&(i-=1),this.getScroller().scrollTop=i}null!=t&&this._restoreScrollLeft(t)},N.prototype._finalizeTableDimensions=function(){this._restoreCachedScrollPos();var e=this._getSizingState(),t=window.getComputedStyle(this._table._getTableContainer());e.outerWidth=this.getExactOffsetWidth(t),e.outerHeight=this.getExactOffsetHeight(t),this._clearTableUpdates(),this._enableTableVisibility(),this.registerScrollListeners()},N.prototype.handleAfterRowsProcessed=function(){},N.prototype._handleScrollerScrollLeft=function(e){this._table._scrollLeft=e},N.prototype._handleScrollerScrollTop=function(e){if(this._table._domScroller||this._table._clearScrollPosBusyState(),this._table._isExternalScrollEnabled()&&!this._table._hasActiveRow()&&null!=this._table._browserAutoScrollInitPos){var t=this._table._browserAutoScrollInitPos;if(this._table._clearBrowserAutoScrollTimeout(),this._table._getCurrentVerticalScrollPosition(e).rowIndex>0&&e>t)return void this._table._scrollRowIntoViewport(0,!0)}e<0&&(e=0),this._table._scrollTop=e,this._table._scrollY=this._table._skipScrollUpdate?e:null,this._table._moveTableBodyRowTouchSelectionAffordanceTop(),this._table._moveTableBodyRowTouchSelectionAffordanceBottom(),this._table._updateScrollBufferHeight()},N.prototype.registerScrollListeners=function(){var e=this.getScroller();null!=e&&(null==this._scrollEventListener&&(this._scrollEventListener=function(e){var t=this._table._getElementScrollLeft(e.target),o=e.target.scrollTop;t===this._table._scrollLeft&&o===this._table._scrollTop||(this._handleScrollerScrollLeft(t),this._handleScrollerScrollTop(o),this._table._isScrollPositionAdjusted()||(this._table._skipScrollUpdate||this._ticking||(window.requestAnimationFrame(function(){this._table._isScrollPositionAdjusted()||this._table._skipScrollUpdate||this._table.option("scrollPosition",this._table._getCurrentScrollPosition(),{_context:{originalEvent:e,internalSet:!0}}),this._ticking=!1}.bind(this)),this._ticking=!0),this._table._skipScrollUpdate=!1))}.bind(this)),e.removeEventListener("scroll",this._scrollEventListener),e.addEventListener("scroll",this._scrollEventListener,!1))},N.prototype.updateCurrentScrollState=function(){var e=this.getScroller(),t=this._table._getElementScrollLeft(e),o=e.scrollTop;t===this._table._scrollLeft&&o===this._table._scrollTop||(this._handleScrollerScrollLeft(t),this._handleScrollerScrollTop(o),this._table.option("scrollPosition",this._table._getCurrentScrollPosition(),{_context:{internalSet:!0}}))},N.prototype.unregisterScrollListeners=function(){var e=this.getScroller();null!=e&&null!=this._scrollEventListener&&e.removeEventListener("scroll",this._scrollEventListener)},N.prototype._restoreScrollLeft=function(e){E.setScrollLeft(this.getScroller(),e)},N.prototype.getColumnWidthProperty=function(e){var t=window.getComputedStyle(e),o=this._getBoxStyle(t);return b.isIE()?parseFloat(t.width)+o.paddingWidth:parseFloat(t.width)+(o.boxSizing===I.CSS_VAL._BORDER_BOX?-o.borderWidth:o.paddingWidth)},N.prototype.getWidthPropertyFromOffsetWidth=function(e,t){var o=window.getComputedStyle(t);return e-this._getBoxStyle(o).borderWidth},N.prototype.isTableWidthConstrained=function(){return this._getSizingState().hasHorizontalOverflow},N.prototype.isTableHeightConstrained=function(){return this._getSizingState().hasVerticalOverflow},N.prototype.getScrollBarHeight=function(){return this.isTableWidthConstrained()?this._getDefaultScrollBarSize():0},N.prototype.getScrollBarWidth=function(){return this.isTableHeightConstrained()&&!this._isVerticalScrollBarHidden()?this._getDefaultScrollBarSize():0},N.prototype._getBoxStyle=function(e,t){return t?{boxSizing:e[I.CSS_PROP._BOX_SIZING],borderWidth:(parseFloat(e[I.CSS_PROP._BORDER_TOP_WIDTH])||0)+(parseFloat(e[I.CSS_PROP._BORDER_BOTTOM_WIDTH])||0),paddingWidth:(parseFloat(e[I.CSS_PROP._PADDING_TOP])||0)+(parseFloat(e[I.CSS_PROP._PADDING_BOTTOM])||0)}:{boxSizing:e[I.CSS_PROP._BOX_SIZING],borderWidth:(parseFloat(e[I.CSS_PROP._BORDER_RIGHT_WIDTH])||0)+(parseFloat(e[I.CSS_PROP._BORDER_LEFT_WIDTH])||0),paddingWidth:(parseFloat(e[I.CSS_PROP._PADDING_RIGHT])||0)+(parseFloat(e[I.CSS_PROP._PADDING_LEFT])||0)}},N.prototype._applyColumnHeaderHeight=function(e,t){var o=this._table._getTableElementsByClassName(e,I.CSS_CLASSES._COLUMN_HEADER_CLASS);o.length>0&&(o[0].style[I.CSS_PROP._MIN_HEIGHT]=t+I.CSS_VAL._PX)},N.prototype._applyForcedColumnWidth=function(e,t){var o=e;""!==t&&(t+=I.CSS_VAL._PX),o.style[I.CSS_PROP._MIN_WIDTH]=t,o.style[I.CSS_PROP._WIDTH]=t,o.style[I.CSS_PROP._MAX_WIDTH]=t},N.prototype._getForcedColumnWidth=function(e,t,o){var i=this._getBoxStyle(t);return null!=o?o+(i.boxSizing===I.CSS_VAL._BORDER_BOX?i.borderWidth:-i.paddingWidth):b.isIE()&&i.boxSizing===I.CSS_VAL._BORDER_BOX?parseFloat(t.width)+i.paddingWidth+i.borderWidth:parseFloat(t.width)},N.prototype.getMinimumForcedOffsetWidth=function(e){var t=0,o=this._table._getTableHeaderColumn(e);if(null!=o){var i=this._getBoxStyle(window.getComputedStyle(o)),l=i.paddingWidth+i.borderWidth;t<l&&(t=l)}var n=this._table._getTableBodyCell(0,e,null);if(null!=n){var s,a=0;if(this._table._hasRowOrCellRendererOrTemplate(e)){for(var r=this._table._getTableBodyRows(),_=0;_<r.length;_++)if(null!=(n=this._table._getTableBodyCell(_,e,null))){var h=(s=this._getBoxStyle(window.getComputedStyle(n))).paddingWidth+s.borderWidth;a<h&&(a=h)}}else a=(s=this._getBoxStyle(window.getComputedStyle(n))).paddingWidth+s.borderWidth;t<a&&(t=a)}var d=this._table._getTableFooterCell(e);if(null!=d){var u=this._getBoxStyle(window.getComputedStyle(d)),c=u.paddingWidth+u.borderWidth;t<c&&(t=c)}return t},N.prototype._isVerticalScrollBarHidden=function(){return!this._table._isTouchDevice()&&this._table._getTableContainer().classList.contains(I.MARKER_STYLE_CLASSES._HIDE_VERTICAL_SCROLLBAR)},N.prototype._getDefaultScrollBarSize=function(){return null==this._defaultScrollBarSize&&(this._defaultScrollBarSize=b.getDefaultScrollBarWidth(this.getScroller())),this._defaultScrollBarSize},N.prototype.clearCachedDimensions=function(){this._clientWidth=null,this._clientHeight=null,this._scrollWidth=null,this._scrollHeight=null},N.prototype._clearColumnSizingCache=function(){this._table._columnOffsets=null},N.prototype.getColumnScrollLeft=function(){},N.prototype.getRowScrollTop=function(){},N.prototype.getScrollWidth=function(){return null==this._scrollWidth&&(this._scrollWidth=this.getScroller().scrollWidth),this._scrollWidth},N.prototype.getScrollHeight=function(){return null==this._scrollHeight&&(this._scrollHeight=this.getScroller().scrollHeight),this._scrollHeight},N.prototype.getClientWidth=function(){return null==this._clientWidth&&(this._clientWidth=this.getScroller().clientWidth),this._clientWidth},N.prototype.getClientHeight=function(){return null==this._clientHeight&&(this._clientHeight=this.getScroller().clientHeight),this._clientHeight},N.prototype._removeTableDimensionsStyling=function(){this.unregisterScrollListeners();var e=this._table._getTable(),t=this._table._getTableHeader(),o=this._table._getTableHeaderRow(),i=this._table._getTableHeaderColumns(),l=this._table._getTableFooter(),n=this._table._getTableFooterRow(),s=this._table._getTableBody(),a=this._table._getTableBottomSlot(),r=this._table._getTableContainer();if(r.classList.remove(I.CSS_CLASSES._TABLE_SCROLL_VERTICAL_CLASS),r.classList.remove(I.CSS_CLASSES._TABLE_SCROLL_HORIZONTAL_CLASS),e.removeAttribute(I.DOM_ATTR._STYLE),null!=s&&s.removeAttribute(I.DOM_ATTR._STYLE),null!=t){t.removeAttribute(I.DOM_ATTR._STYLE),o.removeAttribute(I.DOM_ATTR._STYLE);for(var _=this._table._getTableElementsByClassName(o,I.CSS_CLASSES._COLUMN_HEADER_TEXT_CLASS),h=_.length,d=0;d<h;d++)_[d].style[I.CSS_PROP._WIDTH]="";if(null!=i)for(let e=0;e<i.length;e++)i[e].classList.remove(I.CSS_CLASSES._TABLE_HEADER_WRAP_TEXT_CLASS)}null!=l&&(l.removeAttribute(I.DOM_ATTR._STYLE),n.removeAttribute(I.DOM_ATTR._STYLE)),null!=a&&a.removeAttribute(I.DOM_ATTR._STYLE),this._removeHeaderColumnAndCellColumnWidths()},N.prototype._getBottomSlotHeight=function(){var e=this._table._getTableBottomSlot();if(null!=e&&e.clientHeight>0&&e.style[I.CSS_PROP._DISPLAY]!==I.CSS_VAL._NONE){var t=window.getComputedStyle(e);return this.getExactOffsetHeight(t)}return 0},N.prototype._getTableContainerScrollableState=function(e){var t=window.getComputedStyle(this._table._getTableContainer()),o=this.getExactClientHeight(t),i=this.getExactClientWidth(t),l=window.getComputedStyle(this._table._getTable()),n=this.getExactOffsetHeight(l),s=this.getExactOffsetWidth(l),a=[];if(o>0){var r=n+e;a[0]=r-o>I.SIZING_ERROR_MARGIN?1:o-r>I.SIZING_ERROR_MARGIN?-1:0}else a[0]=0;return a[1]=i>0?s-i>I.SIZING_ERROR_MARGIN?1:i-s>I.SIZING_ERROR_MARGIN?-1:0:0,a},N.prototype._setForcedColumnWidths=function(){var e,t,o,i=this._table._getColumnDefs(),l=i.length,n=this._table._getTableBodyRows();this._forcedWidthColumns=[];for(var s=0;s<l;s++){var a=this._getPixelStyleEquivalent(i[s].width);if(null!=a){var r=null,_=null;if(null!=(e=this._table._getTableHeaderColumn(s))){var h=this._getForcedColumnWidth(e,window.getComputedStyle(e),a);this._applyForcedColumnWidth(e,h),this._forcedWidthColumns[s]=h}else this._forcedWidthColumns[s]=!0;var d=this._table._getTableBodyLegacyWidthBuffer();if(null!=d){var u=d.childNodes[s],c=this._getForcedColumnWidth(u,window.getComputedStyle(u),a);this._applyForcedColumnWidth(u,c)}if(null!=(t=0===this._table._editableRowIdx&&n.length>1?this._table._getTableBodyCell(1,s,null):this._table._getTableBodyCell(0,s,null))){this._table._hasRowOrCellRendererOrTemplate(s)||(r=window.getComputedStyle(t),_=this._getForcedColumnWidth(t,r,a));for(var S=0;S<n.length;S++)if(null!=(t=this._table._getTableBodyCell(S,s,null)))if(null==r){var E=window.getComputedStyle(t),C=this._getForcedColumnWidth(t,E,a);this._applyForcedColumnWidth(t,C)}else this._applyForcedColumnWidth(t,_)}null!=(o=this._table._getTableFooterCell(s))&&this._applyForcedColumnWidth(o,this._getForcedColumnWidth(o,window.getComputedStyle(o),a))}else this._forcedWidthColumns[s]=!1}},N.prototype._verifyMinAndMaxWidths=function(){for(var e=this._table._getColumnDefs(),t=e.length,o=this._table._getTableBodyRows().length,i=!0;i;){i=!1;for(var l=0;l<t;l++)if(!1===this._forcedWidthColumns[l]){if(this._applyColMinMax(e,l,o,!0)){i=!0;break}if(this._applyColMinMax(e,l,o,!1)){i=!0;break}}}},N.prototype._applyColMinMax=function(e,t,o,i){var l,n,s,a=0,r=!1,_=null,h=null,d=i?this._getPixelStyleEquivalent(e[t].minWidth):this._getPixelStyleEquivalent(e[t].maxWidth);if(null!=d&&(l=this._table._getTableHeaderColumn(t),0===this._table._editableRowIdx&&o>1?n=this._table._getTableBodyCell(1,t,null):o>0&&(n=this._table._getTableBodyCell(0,t,null)),s=this._table._getTableFooterCell(t),null!=l?a=l.offsetWidth:null!=n?a=n.offsetWidth:null!=s&&(a=s.offsetWidth),a>0&&(i?a<d:a>d))){if(r=!0,this._forcedWidthColumns[t]=d,null!=l){var u=this._getForcedColumnWidth(l,window.getComputedStyle(l),d);this._applyForcedColumnWidth(l,u)}var c=this._table._getTableBodyLegacyWidthBuffer();if(null!=c){var S=c.childNodes[t],E=this._getForcedColumnWidth(S,window.getComputedStyle(S),d);this._applyForcedColumnWidth(S,E)}if(null!=n){this._table._hasRowOrCellRendererOrTemplate(t)||(_=window.getComputedStyle(n),h=this._getForcedColumnWidth(n,_,d));for(var C=0;C<o;C++)if(null!=(n=this._table._getTableBodyCell(C,t,null)))if(null==_){var T=window.getComputedStyle(n),p=this._getForcedColumnWidth(n,T,d);this._applyForcedColumnWidth(n,p)}else this._applyForcedColumnWidth(n,h)}null!=s&&this._applyForcedColumnWidth(s,this._getForcedColumnWidth(s,window.getComputedStyle(s),d))}return r},N.prototype._getPixelStyleEquivalent=function(e){return"string"==typeof e?""===e?null:"auto"===e?this._getMinWidthAutoEquivalent():null!=e.match(/\D/g)&&-1===e.indexOf("px")?(this._table._tableWidthContainer.style.width=e,this._table._tableWidthContainer.offsetWidth):parseFloat(e):e},N.prototype._getMinWidthAutoEquivalent=function(){return null},N.prototype.handleMouseEnterHeaderCell=function(e){},N.prototype.handleMouseDownHeaderCell=function(e){var t=this._table._getElementColumnIdx(this._table._getEventTargetElement(e)),o=!1;1===e.which?(this._handleHeaderColumnResizeStart(e,!0)||e[I._KEYBOARD_CODES._MODIFIER_SHIFT]||(o=!0),b.isFirefox()&&E.isMetaKeyPressed(e)&&e.preventDefault()):o=!0,o&&(this._table._setActiveHeader(t,e,!0),S(e.target).data(I._FOCUS_CALLED,!0))},N.prototype.handleMouseMoveHeader=function(e){},N.prototype.handleMouseMoveHeaderCell=function(e){},N.prototype.handleMouseUp=function(e){},N.prototype.handleMouseLeaveTable=function(){},N.prototype.handleTouchStartHeaderCell=function(e){1===e.originalEvent.touches.length&&this._table._isTableColumnsResizable()&&this._handleHeaderColumnResizeStart(e)&&e.preventDefault()},N.prototype.handleTouchMoveHeader=function(e){},N.prototype.handleTouchEnd=function(e){},N.prototype.handleTouchCancel=function(){},N.prototype.handleKeyDownEsc=function(){},N.prototype.handleFocusout=function(){},N.prototype.handleRowRefresh=function(e,t,o){this._table._hasEditableRow()&&this._table._getEditableRowIdx()===e?t.classList.add(I.CSS_CLASSES._TABLE_DATA_ROW_EDIT_CLASS):t.classList.remove(I.CSS_CLASSES._TABLE_DATA_ROW_EDIT_CLASS)},N.prototype._handleHeaderColumnResizeStart=function(e,t){},N.prototype.displayDragOverIndicatorColumn=function(e,t){},N.prototype.removeDragOverIndicatorColumn=function(){},N.prototype._getPageX=function(e){return void 0!==e.pageX?e.pageX:void 0!==e.changedTouches?e.changedTouches[0].pageX:0},N.prototype.getExactClientHeight=function(e){var t=this._getBoxStyle(e,!0),o=parseFloat(e[I.CSS_PROP._HEIGHT])-t.borderWidth-t.paddingWidth;return Math.round(1e3*(o+Number.EPSILON))/1e3},N.prototype.getExactClientWidth=function(e){var t=this._getBoxStyle(e),o=parseFloat(e[I.CSS_PROP._WIDTH])-t.borderWidth-t.paddingWidth;return Math.round(1e3*(o+Number.EPSILON))/1e3},N.prototype.getExactOffsetHeight=function(e){var t=parseFloat(e[I.CSS_PROP._HEIGHT]);return Math.round(1e3*(t+Number.EPSILON))/1e3},N.prototype.getExactOffsetWidth=function(e){var t=parseFloat(e[I.CSS_PROP._WIDTH]);return Math.round(1e3*(t+Number.EPSILON))/1e3};const B=function(e){B.superclass.constructor.call(this,e)};u.Object.createSubclass(B,N,"TableLegacyLayoutManager"),B.prototype.handleAfterRowsProcessed=function(e){this._freezeColumnWidths(e)},B.prototype._handleScrollerScrollLeft=function(e){B.superclass._handleScrollerScrollLeft.call(this,e);var t=this._table._getTableHeaderRow();t&&E.setScrollLeft(t.parentNode,e);var o=this._table._getTableFooterRow();o&&E.setScrollLeft(o.parentNode,e)},B.prototype.registerScrollListeners=function(){B.superclass.registerScrollListeners.call(this);var e=function(e){var t=this._table._getElementScrollLeft(e.target);this._table._scrollLeft!==t&&this._table._setScrollX(t)}.bind(this),t=this._table._getTableHeaderRow();if(null!=t){var o=t.parentNode;null==this._headerScrollEventListener&&(this._headerScrollEventListener=e),o.removeEventListener("scroll",this._headerScrollEventListener),o.addEventListener("scroll",this._headerScrollEventListener,!1)}var i=this._table._getTableFooterRow();if(null!=i){var l=i.parentNode;null==this._footerScrollEventListener&&(this._footerScrollEventListener=e),l.removeEventListener("scroll",this._footerScrollEventListener),l.addEventListener("scroll",this._footerScrollEventListener,!1)}},B.prototype.unregisterScrollListeners=function(){B.superclass.unregisterScrollListeners.call(this);var e=this._table._getTableHeaderRow();null!=e&&null!=this._headerScrollEventListener&&e.parentNode.removeEventListener("scroll",this._headerScrollEventListener);var t=this._table._getTableFooterRow();null!=t&&null!=this._footerScrollEventListener&&t.parentNode.removeEventListener("scroll",this._footerScrollEventListener)},B.prototype._restoreScrollLeft=function(e){E.setScrollLeft(this.getScroller(),e);var t=this._table._getTableHeaderRow();t&&E.setScrollLeft(t.parentNode,e);var o=this._table._getTableFooterRow();o&&E.setScrollLeft(o.parentNode,e)},B.prototype.getScroller=function(){return this._table._getTableBody()},B.prototype.getContentElement=function(){return null},B.prototype.getColumnScrollLeft=function(e){if(0===e)return 0;var t=this.getScroller(),o="rtl"===this._table._GetReadingDirection(),i=this._table._getTableHeaderColumn(e);return null!=i?o?t.clientWidth-i.offsetLeft-i.offsetWidth:i.offsetLeft:void 0},B.prototype.getRowScrollTop=function(e){return e.offsetTop},B.prototype.getVerticalOverflowDiff=function(e){var t=this.getScroller(),o=e.getBoundingClientRect(),i=t.getBoundingClientRect();return{top:i.top-o.top+t.clientTop,bottom:o.bottom-i.bottom+(t.offsetHeight-t.clientHeight-t.clientTop)}},B.prototype.getHorizontalOverflowDiff=function(e){var t="rtl"===this._table._GetReadingDirection(),o=this.getScroller(),i=this.getScrollBarWidth(),l=e.getBoundingClientRect(),n=o.getBoundingClientRect(),s={};return t?(s.left=n.left-l.left+i,s.right=l.right-n.right):(s.left=n.left-l.left,s.right=l.right-n.right+i),s},B.prototype._freezeColumnWidths=function(e){var t=this._table._getColumnDefs().length;this._frozenWidthRows||(this._frozenWidthRows=[]);for(var o=[],i=this._table._getTableBodyLegacyWidthBuffer(),l=0;l<t;l++){var n=i.childNodes[l];if(null!=n){var s=parseFloat(n.style[I.CSS_PROP._MIN_WIDTH]);isNaN(s)?o.push(null):o.push(s)}else o.push(null)}for(var a=e.childNodes,r=0;r<a.length;r++)if("TR"===a[r].nodeName){for(var _=a[r],h=this._table._getTableBodyCells(null,_),d=0;d<h.length;d++){var u=o[d];isNaN(u)||this._applyForcedColumnWidth(h[d],u)}this._frozenWidthRows.push(_)}},B.prototype._unfreezeColumnWidths=function(){if(this._frozenWidthRows)for(var e=0;e<this._frozenWidthRows.length;e++)for(var t=this._table._getTableBodyCells(null,this._frozenWidthRows[e]),o=0;o<t.length;o++){var i=t[o];this._applyForcedColumnWidth(i,""),this._table._styleTableBodyCell(o,i)}this._frozenWidthRows=[]},B.prototype._setColumnWidths=function(e){var t,o,i,l,n=[],s=[],a=[],r=[],_=this._table._getColumnDefs().length,h=this._table._getTableBodyLegacyWidthBuffer();for(t=0;t<_;t++)if(!1!==this._forcedWidthColumns[t])n[t]=null,a[t]=null,r[t]=null;else{if(null!=(o=this._table._getTableHeaderColumn(t))){n[t]=this._getForcedColumnWidth(o,window.getComputedStyle(o));var d=this._table._getTableElementsByClassName(o,I.CSS_CLASSES._COLUMN_HEADER_TEXT_CLASS);d.length>0&&(s[t]=d[0].clientHeight)}null!=(i=h.childNodes[t])&&(a[t]=this._getForcedColumnWidth(i,window.getComputedStyle(i))),null!=(l=this._table._getTableFooterCell(t))&&(r[t]=this._getForcedColumnWidth(l,window.getComputedStyle(l)))}for(t=0;t<_;t++)o=this._table._getTableHeaderColumn(t),l=this._table._getTableFooterCell(t),!1!==this._forcedWidthColumns[t]?t===_-1&&!this.isTableWidthConstrained()&&e>0?(null!=o&&(this._applyForcedColumnWidth(o,this._forcedWidthColumns[t]+e),this._applyColumnHeaderHeight(o,s[t])),null!=l&&this._applyForcedColumnWidth(l,this._forcedWidthColumns[t]+e)):this._applyColumnHeaderHeight(o,s[t]):(t===_-1&&!this.isTableWidthConstrained()&&e>0?(null!=o&&(this._applyForcedColumnWidth(o,n[t]+e),this._applyColumnHeaderHeight(o,s[t])),null!=l&&this._applyForcedColumnWidth(l,r[t]+e)):(null!=o&&(this._applyForcedColumnWidth(o,n[t]),this._applyColumnHeaderHeight(o,s[t])),null!=l&&this._applyForcedColumnWidth(l,r[t])),null!=(i=h.childNodes[t])&&this._applyForcedColumnWidth(i,a[t]))},B.prototype._isTableColumnsWidthSet=function(){for(var e=this._table._getColumnDefs().length,t=0;t<e;t++)if(!1!==this._forcedWidthColumns[t])return!0;return!1},B.prototype._isAllTableColumnsWidthSet=function(){for(var e=this._table._getColumnDefs().length,t=0;t<e;t++)if(!1===this._forcedWidthColumns[t])return!1;return!0},B.prototype.refreshTableDimensions=function(){var e=this._getSizingState(),t=this._getTableUpdates();if(!t.has(I._UPDATE._DATA_REFRESH)&&!t.has(I._UPDATE._DATA_SORT)&&!t.has(I._UPDATE._ATTACHED)&&!t.has(I._UPDATE._SHOWN)&&!t.has(I._UPDATE._RESIZE)&&!t.has(I._UPDATE._REFRESH)&&!t.has(I._UPDATE._COL_RESIZE)&&!t.has(I._UPDATE._COL_REORDER)&&!t.has(I._UPDATE._ROW_REFRESH)&&(!t.has(I._UPDATE._ROWS_ADDED)||e.hasVerticalOverflow)&&(!t.has(I._UPDATE._ROWS_REMOVED)||!e.hasVerticalOverflow))return this._clearTableUpdates(),void this._enableTableVisibility();this._clearColumnSizingCache();var o=this._table._getTable(),i=this._table._getTableContainer(),l=this._table._getTableHeader(),n=this._table._getTableBody(),s=this._table._getTableFooter(),a=this._table._getTableBottomSlot();this.clearCachedDimensions(),this._removeTableDimensionsStyling(),this._table._styleTableContainer(i),this._setForcedColumnWidths(),this._verifyMinAndMaxWidths();var r=this._getBottomSlotHeight(),_=this._getTableContainerScrollableState(r);if(e.hasVerticalOverflow=1===_[0],e.hasHorizontalOverflow=1===_[1],null!=n){var h=n.offsetHeight-n.clientHeight;if(e.hasVerticalOverflow||e.hasHorizontalOverflow){var d=i.clientWidth,u=i.clientHeight,c=this._getDefaultScrollBarSize();if(c>0)if(e.hasHorizontalOverflow||this._isVerticalScrollBarHidden()){if(!e.hasVerticalOverflow){var S=this._table._getTableLegacySizer();S.style[I.CSS_PROP._HEIGHT]=c+I.CSS_VAL._PX,i.clientHeight<u+c?(u=i.clientHeight,o.style[I.CSS_PROP._HEIGHT]=u-c-r+I.CSS_VAL._PX,u-c<o.clientHeight+r&&(e.hasVerticalOverflow=!0)):u=i.clientHeight,S.style[I.CSS_PROP._HEIGHT]=""}}else o.style[I.CSS_PROP._WIDTH]=d+c+I.CSS_VAL._PX,i.clientWidth<d+c?(d=i.clientWidth,o.style[I.CSS_PROP._WIDTH]=d-c+I.CSS_VAL._PX,d-c<o.clientWidth&&(e.hasHorizontalOverflow=!0)):(d=i.clientWidth,o.style[I.CSS_PROP._WIDTH]="");e.hasVerticalOverflow&&this._isVerticalScrollBarHidden()&&(n.style[I.CSS_PROP._OVERFLOW_Y]="hidden");var E=this.getScrollBarWidth();this._setColumnWidths(E),e.hasVerticalOverflow&&i.classList.add(I.CSS_CLASSES._TABLE_SCROLL_VERTICAL_CLASS),e.hasHorizontalOverflow&&i.classList.add(I.CSS_CLASSES._TABLE_SCROLL_HORIZONTAL_CLASS),i.classList.add(I.CSS_CLASSES._TABLE_LEGACY_SCROLL_CLASS);var C=0,T=this._table._getTableElementsByTagName(o,"caption");if(T.length>0&&(C=(T=T[0]).offsetHeight,T.style[I.CSS_PROP._DISPLAY]=I.CSS_VAL._INLINE,null!=l)){var p=window.getComputedStyle(i);l.style[I.CSS_PROP._BORDER_TOP]=p[I.CSS_PROP._BORDER_TOP]}n.style[I.CSS_PROP._WIDTH]=d+I.CSS_VAL._PX;var g=0;null!=s&&(g=s.offsetHeight,n.style[I.CSS_PROP._TOP]=-1*g+I.CSS_VAL._PX);var A,f=u-(null!=l?l.offsetHeight:0)-g-C-r-h;if(f>0&&(n.style[I.CSS_PROP._HEIGHT]=f+I.CSS_VAL._PX,n.style[I.CSS_PROP._MIN_HEIGHT]=f+I.CSS_VAL._PX),e.hasHorizontalOverflow){if(0===this._table._getTableBodyRows().length){var b=this._table._getTableBodyMessageCell();if(b){var L=b.offsetWidth;null!=l&&(L=Math.max(L,l.offsetWidth)),null!=s&&(L=Math.max(L,s.offsetWidth)),this._applyForcedColumnWidth(b,L)}}A=d-E+I.CSS_VAL._PX}else A=d+I.CSS_VAL._PX;null!=l&&(l.style[I.CSS_PROP._WIDTH]=A),null!=s&&(s.style[I.CSS_PROP._TOP]=f+I.CSS_VAL._PX,s.style[I.CSS_PROP._WIDTH]=A)}else this._isTableColumnsWidthSet()&&this._setColumnWidths(0),r>0&&-1===_[0]&&(a.style[I.CSS_PROP._BOTTOM]=0,a.style[I.CSS_PROP._POSITION]=I.CSS_VAL._ABSOLUTE);this._table._isStatusMessageShown()&&this._table._refreshTableStatusPosition(),this._table._refreshTouchAffordanceGlassPanePosition(),this._finalizeTableDimensions()}},B.prototype._removeTableDimensionsStyling=function(){B.superclass._removeTableDimensionsStyling.call(this),this._table._getTableContainer().classList.remove(I.CSS_CLASSES._TABLE_LEGACY_SCROLL_CLASS)},B.prototype._removeHeaderColumnAndCellColumnWidths=function(){var e,t=this._table._getColumnDefs().length;for(e=0;e<t;e++){var o=this._table._getTableHeaderColumn(e);null!=o&&(this._applyForcedColumnWidth(o,""),this._table._styleTableHeaderColumn(e,o))}this._unfreezeColumnWidths();var i=this._table._getTableBodyRows();if(i.length>0)for(e=0;e<t;e++){var l;if(null!=this._forcedWidthColumns&&!1!==this._forcedWidthColumns[e])for(var n=0;n<i.length;n++)null!==(l=this._table._getTableBodyCell(n,e,null))&&(this._applyForcedColumnWidth(l,""),this._table._styleTableBodyCell(e,l));else null!=(l=this._table._getTableBodyLegacyWidthBuffer().childNodes[e])&&this._applyForcedColumnWidth(l,"")}for(e=0;e<t;e++){var s=this._table._getTableFooterCell(e);null!=s&&(this._applyForcedColumnWidth(s,""),this._table._styleTableFooterCell(e,s))}var a=this._table._getTableBodyMessageCell();a&&this._applyForcedColumnWidth(a,"")},B.prototype.handleMouseEnterHeaderCell=function(e){this._setResizeCursor(e)},B.prototype.handleMouseMoveHeader=function(e){this._setResizeCursor(e)},B.prototype.handleMouseMoveHeaderCell=function(e){this._setResizeCursor(e)&&this._table._handleMouseLeaveColumnHeader(this._table._getEventTargetElement(e))},B.prototype.handleMouseUp=function(e){this._handleHeaderColumnResizeEnd(e)},B.prototype.handleMouseLeaveTable=function(){this._clearTableHeaderColumnsResize()},B.prototype.handleTouchMoveHeader=function(e){this._table._isTableColumnsResizable()&&this._setResizeCursor(e)},B.prototype.handleTouchEnd=function(e){this._handleHeaderColumnResizeEnd(e)&&e.preventDefault()},B.prototype.handleTouchCancel=function(){this._clearTableHeaderColumnsResize()},B.prototype.handleKeyDownEsc=function(){this._clearTableHeaderColumnsResize()},B.prototype.handleFocusout=function(){this._clearTableHeaderColumnsResize()},B.prototype._setResizeCursor=function(e){var t=this._table._getEventTargetElement(e),o=this._table._getElementColumnIdx(t);if(null==o)return!1;if(this._table._getColumnDefs()[o].resizable===I._OPTION_DISABLED&&this._resizeStartColumnIdx!==o-1&&this._resizeStartColumnIdx!==o+1)return!1;if(null==this._resizeStartColumnIdx)return null!==this._isHeaderColumnResizeStart(e)?(t.style.cursor=I.CSS_VAL._COL_RESIZE,!0):(t.style.cursor="",!1);if(!this._table._getTableHeaderColumns())return!1;if(o===this._resizeStartColumnIdx||this._resizeColumnStart&&o===this._resizeStartColumnIdx-1||!this._resizeColumnStart&&o===this._resizeStartColumnIdx+1){var i=this._getTableHeaderColumnResizeIndicator();if(null!=i){var l=this.getScroller().getBoundingClientRect();return i.style.left=e.originalEvent.clientX-l.left+"px",!0}}return!1},B.prototype._handleHeaderColumnResizeStart=function(e,t){var o=this._table._getEventTargetElement(e),i=this._table._getElementColumnIdx(o);if(null!=i){var l=this._table._getColumnDefs()[i];if(this._resizeColumnStart=this._isHeaderColumnResizeStart(e),l.resizable===I._OPTION_ENABLED&&null!==this._resizeColumnStart)return this._resizeStartColumnIdx=i,this._resizeStartPageX=this._getPageX(e),this._setTableHeaderColumnsResizeStyling(),this._setTableHeaderColumnResizeIndicator(i),e.preventDefault(),!0}return this._resizeStartColumnIdx=null,this._resizeStartPageX=null,!1},B.prototype._handleHeaderColumnResizeEnd=function(e){var t=this._table.options.columns.length,o=this._table._getEventTargetElement(e),i=this._table._getElementColumnIdx(o);if(null!==i&&i===this._resizeStartColumnIdx||this._resizeColumnStart&&i===this._resizeStartColumnIdx-1||!this._resizeColumnStart&&i===this._resizeStartColumnIdx+1){var l=this._table._getTableHeaderColumn(this._resizeStartColumnIdx);if(null!=l){var n,s=l.getBoundingClientRect().width;if(this._resizeStartColumnIdx===t-1&&this.isTableHeightConstrained()&&(s-=this.getScrollBarWidth()),n="rtl"===this._table._GetReadingDirection()&&this._resizeColumnStart||"ltr"===this._table._GetReadingDirection()&&!this._resizeColumnStart?this._getPageX(e)-this._resizeStartPageX:this._resizeStartPageX-this._getPageX(e),Math.abs(n)>2){var a=s+n,r=this.getMinimumForcedOffsetWidth(this._resizeStartColumnIdx);r>a&&(n+=r-a,a=r);for(var _=[],h=0;h<t;h++)_[h]=S.extend({},{},this._table.options.columns[h]);var d=this._resizeColumnStart?this._resizeStartColumnIdx-1:this._resizeStartColumnIdx+1;d===t-1&&this.isTableHeightConstrained()&&(n+=this.getScrollBarWidth());var u=this._table._getTableHeaderColumn(d);if(u){var c=u.getBoundingClientRect().width-n;(r=this.getMinimumForcedOffsetWidth(d))>c&&(a+=c-r,c=r),_[d].width=this.getWidthPropertyFromOffsetWidth(c,u)}return _[this._resizeStartColumnIdx].width=this.getWidthPropertyFromOffsetWidth(a,l),this._table.option("columns",_,{_context:{writeback:!0,internalSet:!0}}),this._table._clearCachedMetadata(),this._table._queueTask(function(){this.notifyTableUpdate(I._UPDATE._COL_RESIZE),setTimeout(function(){this._clearTableHeaderColumnsResize()}.bind(this),0)}.bind(this)),!0}}}return this._clearTableHeaderColumnsResize(),!1},B.prototype._clearTableHeaderColumnsResize=function(){this._resizeStartColumnIdx=null,this._resizeColumnStart=null,this._resizeStartPageX=null,this._clearTableHeaderColumnsResizeStyling(),this._removeTableHeaderColumnResizeIndicator()},B.prototype._isHeaderColumnResizeStart=function(e){var t=null,o=this._table.options.columns.length,i=this._table._getElementColumnIdx(e.target),l=this._table._getTableHeaderColumn(i);if(null!==l){var n=this._table._GetReadingDirection(),s=l.getBoundingClientRect(),a=Math.abs(e.originalEvent.clientX-s.left),r=Math.abs(e.originalEvent.clientX-s.right);a<=I.RESIZE_OFFSET?"rtl"===n&&i!==o-1?t=!1:"ltr"===n&&0!==i&&(t=!0):r<=I.RESIZE_OFFSET&&("ltr"===n&&i!==o-1?t=!1:"rtl"===n&&0!==i&&(t=!0))}return t},B.prototype._setTableHeaderColumnResizeIndicator=function(e){var t=this._getTableHeaderColumnResizeIndicator();null==t&&(t=this._createTableHeaderColumnResizeIndicator());var o=this._table._getTable().getBoundingClientRect(),i=this.getScroller().getBoundingClientRect(),l=this._table._getTableHeaderColumn(e).getBoundingClientRect();t.style.height=o.height+"px",this._resizeColumnStart?("rtl"===this._table._GetReadingDirection()?t.style.left=l.left+l.width-i.left+"px":t.style.left=l.left-i.left+"px",t.style.borderLeftWidth="2px",t.style.borderRightWidth="0"):("rtl"===this._table._GetReadingDirection()?t.style.left=l.left-i.left+"px":t.style.left=l.left+l.width-i.left+"px",t.style.borderRightWidth="2px",t.style.borderLeftWidth="0")},B.prototype._setTableHeaderColumnsResizeStyling=function(){this._table._getTable().classList.add(I.CSS_CLASSES._COLUMN_HEADER_RESIZING_CLASS)},B.prototype._clearTableHeaderColumnsResizeStyling=function(){var e=this._table._getTableHeaderColumns();if(e)for(var t=0;t<e.length;t++)e[t].style.cursor="";this._table._getTable().classList.remove(I.CSS_CLASSES._COLUMN_HEADER_RESIZING_CLASS)},B.prototype._createTableHeaderColumnResizeIndicator=function(){var e=this._getTableHeaderColumnResizeIndicator();if(!e){var t=this._table._getTableContainer();e=document.createElement(I.DOM_ELEMENT._DIV),t.appendChild(e),e.classList.add(I.CSS_CLASSES._COLUMN_HEADER_RESIZE_INDICATOR_CLASS),this._table._cacheDomElement(I.CSS_CLASSES._COLUMN_HEADER_RESIZE_INDICATOR_CLASS,e)}return e},B.prototype._getTableHeaderColumnResizeIndicator=function(){return this._table._getTableElementByClassName(I.CSS_CLASSES._COLUMN_HEADER_RESIZE_INDICATOR_CLASS,!0)},B.prototype._removeTableHeaderColumnResizeIndicator=function(){var e=this._getTableHeaderColumnResizeIndicator();e&&(S(e).remove(),this._table._clearDomCache(I.CSS_CLASSES._COLUMN_HEADER_RESIZE_INDICATOR_CLASS))},B.prototype.displayDragOverIndicatorColumn=function(e,t){this._table._removeDragOverIndicatorColumn();var o=this._table._getTableHeaderRow(),i=this._table._getTableHeaderColumn(e),l=t?I.CSS_CLASSES._COLUMN_HEADER_DRAG_INDICATOR_BEFORE_CLASS:I.CSS_CLASSES._COLUMN_HEADER_DRAG_INDICATOR_AFTER_CLASS;null!=i?i.classList.add(l):0===this._table._getColumnDefs().length&&o.classList.add(l)},B.prototype.removeDragOverIndicatorColumn=function(){for(var e=this._table._tableQuerySelectorAll(this._table._getTable(),"."+I.CSS_CLASSES._COLUMN_HEADER_DRAG_INDICATOR_BEFORE_CLASS+",."+I.CSS_CLASSES._COLUMN_HEADER_DRAG_INDICATOR_AFTER_CLASS),t=e.length,o=0;o<t;o++)e[o].classList.remove(I.CSS_CLASSES._COLUMN_HEADER_DRAG_INDICATOR_BEFORE_CLASS),e[o].classList.remove(I.CSS_CLASSES._COLUMN_HEADER_DRAG_INDICATOR_AFTER_CLASS)};const M=function(e){M.superclass.constructor.call(this,e)};u.Object.createSubclass(M,N,"TableStickyLayoutManager"),M.prototype.unregisterListeners=function(){M.superclass.unregisterListeners.call(this),this._clearMouseResizeListeners()},M.prototype.getScroller=function(){if(null==this._scroller){var e,t=this._table.options.scrollPolicyOptions;null!=t&&null!=(e=t.scroller)&&("string"==typeof e&&null==(e=document.querySelector(e))&&C.error("the css selector string specified in scroller attribute does not resolve to any element"),null==e||e.contains(this._table._getRootElement())||(C.error("the specified scroller must be an ancestor of the component"),e=null)),this._scroller=null!=e?e:this._table._getTableScroller()}return this._scroller},M.prototype._isHTMLScroller=function(){return null!=this._table.options.scrollPolicyOptions&&"html"===this._table.options.scrollPolicyOptions.scroller},M.prototype.getContentElement=function(){return this.getScroller()!==this._table._getTableScroller()?this._table._getTable():null},M.prototype.getColumnScrollLeft=function(e){if(0===e)return 0;var t,o,i=0;if(this._table._isDefaultSelectorEnabled()&&(i+=this._selectorColWidth),this._table._isGutterStartColumnEnabled()){i+=this._table._getTableGutterWidth("start")}var l=this._getFrozenStartColumnIndexes();for(t=0;t<l.length&&(o=l[t])<e;t++)i+=this._getAppliedColumnWidth(o);var n=this.getScroller(),s="rtl"===this._table._GetReadingDirection(),a=this._table._getTableHeaderColumn(e);return null!=a?s?n.clientWidth-i-a.offsetLeft-a.offsetWidth:a.offsetLeft-i:void 0},M.prototype.getRowScrollTop=function(e){var t=e.offsetTop;if(!this._table._isTableHeaderless()){var o=this._table._getTableHeader();null!=o&&(t-=o.offsetHeight)}if(this._table._isAddNewRowEnabled()){var i=this._table._getPlaceHolderRow();null!=i&&(t-=i.offsetHeight)}return t},M.prototype._handleScrollerScrollLeft=function(e){M.superclass._handleScrollerScrollLeft.call(this,e),this._updateFrozenEdges(e,!1),null!=this._dragIndicatorColumnIndex&&this.displayDragOverIndicatorColumn()},M.prototype._handleScrollerScrollTop=function(e){if(M.superclass._handleScrollerScrollTop.call(this,e),this._table._isStickyRowsEnabled())for(var t=this._table._getTableBodyStickyRows(),o=0;o<t.length;o++){var i=t[o];this.getVerticalOverflowDiff(i).top>0?i.classList.add(I.CSS_CLASSES._TABLE_STUCK_ROW_CLASS):i.classList.remove(I.CSS_CLASSES._TABLE_STUCK_ROW_CLASS)}},M.prototype.getVerticalOverflowDiff=function(e){var t,o,i,l,n=e.getBoundingClientRect();this._table._isExternalScrollEnabled()?(i=null==this._table.options.scrollPolicyOptions.scrollerOffsetTop?0:this._table.options.scrollPolicyOptions.scrollerOffsetTop,l=null==this._table.options.scrollPolicyOptions.scrollerOffsetBottom?0:this._table.options.scrollPolicyOptions.scrollerOffsetBottom):(i=0,l=0);var s=this._table._getTableHeader();null!=s&&(i+=s.offsetHeight);var a=this._table._getPlaceHolderRow();null!=a&&(i+=a.offsetHeight);var r=this._table._getTableFooter();if(null!=r&&(l+=r.offsetHeight),this._table._isStickyRowsEnabled())for(var _=this._table._getTableBodyStickyRows(),h=_.length-1;h>=0;h--){var d=_[h];if(d===e)break;if(d.classList.contains(I.CSS_CLASSES._TABLE_STUCK_ROW_CLASS)){i+=d.offsetHeight;break}}if(this._isHTMLScroller())t=0,o=this.getScroller().clientHeight;else{var u=this.getScrollBarHeight(),c=this.getScroller().getBoundingClientRect();t=c.top,o=c.bottom-u}return{top:t+i-n.top,bottom:n.bottom-o+l}},M.prototype.getHorizontalOverflowDiff=function(e,t){var o,i,l,n,s="rtl"===this._table._GetReadingDirection(),a=this.getScroller(),r=this.getScrollBarWidth(),_=e.getBoundingClientRect(),h=a.getBoundingClientRect();if(this._table._isExternalScrollEnabled()?(l=null==this._table.options.scrollPolicyOptions.scrollerOffsetStart?0:this._table.options.scrollPolicyOptions.scrollerOffsetStart,n=null==this._table.options.scrollPolicyOptions.scrollerOffsetEnd?0:this._table.options.scrollPolicyOptions.scrollerOffsetEnd):(l=0,n=0),this._table._isDefaultSelectorEnabled()&&(l+=this._selectorColWidth),this._table._isGutterStartColumnEnabled()){l+=this._table._getTableGutterWidth("start")}if(this._table._isGutterEndColumnEnabled()){n+=this._table._getTableGutterWidth("end")}var d=this._getFrozenStartColumnIndexes();for(o=0;o<d.length&&(i=d[o])<t;o++)l+=this._getAppliedColumnWidth(i);var u=this._getFrozenEndColumnIndexes();for(o=u.length-1;o>-1&&(i=u[o])>t;o--)n+=this._getAppliedColumnWidth(i);var c={};return s?(c.left=h.left+n-_.left+r,c.right=_.right-h.right+l):(c.left=h.left+l-_.left,c.right=_.right-h.right+n+r),c},M.prototype._clearAllCache=function(){this._clearColumnSizingCache()},M.prototype._clearColumnSizingCache=function(){M.superclass._clearColumnSizingCache.call(this),this._appliedColumnWidths=null,this._columnInitWidths=null,this._selectorColWidth=null,this._table._gutterStartWidth=null,this._table._gutterEndWidth=null},M.prototype.refreshTableDimensions=function(){var e=this._table._getTableContainer(),t=this._getSizingState(),o=this._getTableUpdates();if(o.has(I._UPDATE._REFRESH))this._clearAllCache();else{if(!(o.has(I._UPDATE._DATA_REFRESH)||o.has(I._UPDATE._ATTACHED)||o.has(I._UPDATE._SHOWN)||o.has(I._UPDATE._RESIZE)||o.has(I._UPDATE._COL_RESIZE)||o.has(I._UPDATE._COL_REORDER)||o.has(I._UPDATE._ROWS_ADDED)&&!t.hasVerticalOverflow||o.has(I._UPDATE._ROWS_REMOVED)&&t.hasVerticalOverflow))return(o.has(I._UPDATE._ROW_REFRESH)||o.has(I._UPDATE._ROWS_REMOVED)||o.has(I._UPDATE._ADD_ROW_DISPLAY))&&(this.unregisterScrollListeners(),this.clearCachedDimensions(),this._setupTableHeight(this._getBottomSlotHeight()),this._table._styleTableContainer(e),this._restoreCachedScrollPos(),this.registerScrollListeners()),o.has(I._UPDATE._ROWS_ADDED)||o.has(I._UPDATE._DATA_SORT)||o.has(I._UPDATE._ADD_ROW_DISPLAY)?(this._initializeFrozenColumns(!0),this._table._styleTableContainer(e),this._updateStickyRowTops()):o.has(I._UPDATE._ROW_REFRESH)&&this._updateStickyRowTops(),this._clearTableUpdates(),void this._enableTableVisibility();this._clearColumnSizingCache()}var i,l=this._getBottomSlotHeight(),n=this._table._getTable();this.clearCachedDimensions(),this._removeTableDimensionsStyling(),b.isSafari()&&(n.classList.remove(I.CSS_CLASSES._TABLE_ELEMENT_CLASS),i=n.offsetWidth,n.classList.add(I.CSS_CLASSES._TABLE_ELEMENT_CLASS)),this._table._styleTableContainer(e),this._initializeColumnLayouts(),this._setupTableHeight(l),(i=this._determineColumnWidths())>0&&(n.style[I.CSS_PROP._WIDTH]=i+I.CSS_VAL._PX,n.style["table-layout"]="fixed");let s=0;this._table._isGutterStartColumnEnabled()&&(s+=this._table._getTableGutterWidth("start")),this._table._isGutterEndColumnEnabled()&&(s+=this._table._getTableGutterWidth("end")),s>0&&(n.style[I.CSS_PROP._WIDTH]=i+s+I.CSS_VAL._PX),this._applyHeaderWrapperClass(),this._initializeFrozenColumns(!0),this._updateStickyRowTops();var a=this._getTableContainerScrollableState(l);1===a[0]?(t.hasVerticalOverflow=!0,e.classList.add(I.CSS_CLASSES._TABLE_SCROLL_VERTICAL_CLASS)):t.hasVerticalOverflow=!1,1===a[1]?(t.hasHorizontalOverflow=!0,e.classList.add(I.CSS_CLASSES._TABLE_SCROLL_HORIZONTAL_CLASS)):t.hasHorizontalOverflow=!1,this._table._isStatusMessageShown()&&this._table._refreshTableStatusPosition(),this._finalizeTableDimensions()},M.prototype._updateStickyRowTops=function(){var e,t=this._table._getTableHeaderRow(),o=null==this._table.options.scrollPolicyOptions.scrollerOffsetTop?0:this._table.options.scrollPolicyOptions.scrollerOffsetTop,i=null!=t?t.offsetHeight+o:o,l=this._table._getPlaceHolderRowCells(),n=l.length;if(n>0)for(e=0;e<n;e++)l[e].style[I.CSS_PROP._TOP]=i+"px";if(this._table._isStickyRowsEnabled()){var s,a,r=2,_=this._table._getPlaceHolderRow();null!=_&&(i+=_.offsetHeight);var h=this._table._getTableBodyRows();for(e=0;e<h.length;e++){var d=!1,u=h[e],c=this._table._getTableElementsByTagName(u,I.DOM_ELEMENT._TD);u.classList.contains(I.CSS_CLASSES._TABLE_STICKY_ROW_CLASS)&&(d=!0);for(var S=0;S<c.length;S++)s=c[S],d&&(s.style[I.CSS_PROP._TOP]=i+"px"),a=s.classList.contains(I.CSS_CLASSES._TABLE_FROZEN_START)?1:s.classList.contains(I.CSS_CLASSES._TABLE_FROZEN_END)?2:0,s.style[I.CSS_PROP._ZINDEX]=d?3*(r+1)+a:3*(r-2)+a;d&&(r+=2)}}},M.prototype._initializeColumnLayouts=function(){this._setForcedColumnWidths(),this._verifyMinAndMaxWidths()},M.prototype._setupTableHeight=function(e){var t=this._table._getTableScroller();t.removeAttribute(I.DOM_ATTR._STYLE);var o=window.getComputedStyle(this._table._getTableContainer()),i=this.getExactClientHeight(o)-e,l=window.getComputedStyle(t),n=this.getExactOffsetHeight(l);Math.abs(n-i)>I.SIZING_ERROR_MARGIN&&(t.style[I.CSS_PROP._HEIGHT]=i+I.CSS_VAL._PX);var s=this._table._getTableBottomSlot();null!=s&&(this._table._isTableStretchEnabled()?(s.style[I.CSS_PROP._BOTTOM]=0,s.style[I.CSS_PROP._POSITION]=I.CSS_VAL._ABSOLUTE):(s.style[I.CSS_PROP._BOTTOM]="",s.style[I.CSS_PROP._POSITION]=""))},M.prototype._removeHeaderColumnAndCellColumnWidths=function(){for(var e=this._table._getColumnDefs().length,t=0;t<e;t++){var o=this._table._getTableCol(t);o.style[I.CSS_PROP._WIDTH]="",o.style[I.CSS_PROP._DISPLAY]=""}this._appliedColumnWidths=null},M.prototype._determineColumnWidths=function(){this._savePreferredColWidths();var e=this._setAllColumnWidths();return this._clearForcedColumnWidths(),e},M.prototype._setAllColumnWidths=function(){var e=this._table._getColumnDefs().length,t=null!=this._selectorColWidth?this._selectorColWidth:0;this._appliedColumnWidths=[];for(var o=0;o<e;o++){var i=this._table._getTableCol(o),l=this._columnInitWidths[o];i.style[I.CSS_PROP._WIDTH]=l+I.CSS_VAL._PX,0===l&&(i.style[I.CSS_PROP._DISPLAY]=I.CSS_VAL._NONE),this._appliedColumnWidths[o]=l,t+=l}return t},M.prototype._getAppliedColumnWidth=function(e){return null!=this._appliedColumnWidths&&this._appliedColumnWidths.length>e?this._appliedColumnWidths[e]:0},M.prototype._clearForcedColumnWidths=function(){for(var e=this._table._getTableBodyRows(),t=0;t<this._forcedWidthColumns.length;t++)if(!1!==this._forcedWidthColumns[t]){var o=this._table._getTableHeaderColumn(t);null!=o&&this._applyForcedColumnWidth(o,"");for(var i=0;i<e.length;i++){var l=this._table._getTableBodyCell(i,t,null);null!=l&&this._applyForcedColumnWidth(l,"")}var n=this._table._getTableFooterCell(t);null!=n&&this._applyForcedColumnWidth(n,"")}},M.prototype._savePreferredColWidths=function(){if(null==this._selectorColWidth&&this._table._isDefaultSelectorEnabled()){var e=this._table._getTableSelectorColumn();if(null!=e)this._selectorColWidth=e.getBoundingClientRect().width;else{var t=this._table._getTableBodyRow(0),o=this._table._getTableBodySelectorCell(t);null!=o&&(this._selectorColWidth=o.getBoundingClientRect().width)}}if(null==this._columnInitWidths){this._columnInitWidths=[];for(var i=this._table._getColumnDefs().length,l=0;l<i;l++){var n=this._table._getTableHeaderColumn(l);if(null!=n)this._columnInitWidths[l]=n.getBoundingClientRect().width;else{var s=this._table._getTableBodyCell(0,l,null);null!=s&&(this._columnInitWidths[l]=s.getBoundingClientRect().width)}}}},M.prototype._initializeFrozenColumns=function(e,t){if(e||this.hasRenderedSize()){var o,i,l,n;this._table._isExternalScrollEnabled()?(l=null==this._table.options.scrollPolicyOptions.scrollerOffsetStart?0:this._table.options.scrollPolicyOptions.scrollerOffsetStart,n=null==this._table.options.scrollPolicyOptions.scrollerOffsetEnd?0:this._table.options.scrollPolicyOptions.scrollerOffsetEnd):(l=0,n=0);var s=!1;if(this._table._isGutterStartColumnEnabled()){this._applyFrozenOffset(-1,l,!0,t),l+=this._table._getTableGutterWidth("start"),s=!0}if(this._table._isGutterEndColumnEnabled()&&null!=this._appliedColumnWidths){this._applyFrozenOffset(this._appliedColumnWidths.length,n,!1,t),n+=this._table._getTableGutterWidth("end")}this._table._isDefaultSelectorEnabled()&&(this._applyFrozenOffset(-1,l,!0,t),l+=this._selectorColWidth,s=!0);var a=this._getFrozenStartColumnIndexes();if(a.length>0)for(s=!0,o=0;o<a.length;o++)i=a[o],this._applyFrozenOffset(i,l,!0,t),l+=this._getAppliedColumnWidth(i);var r=this._getFrozenEndColumnIndexes();if(r.length>0)for(s=!0,o=r.length-1;o>-1;o--)i=r[o],this._applyFrozenOffset(i,n,!1,t),n+=this._getAppliedColumnWidth(i);s&&this._updateFrozenEdges(this._scrollLeft,!0,t)}},M.prototype._getFrozenStartColumnIndexes=function(){for(var e=[],t=this._table._getColumnDefs(),o=0;o<t.length;o++)t[o].frozenEdge===I._OPTION_FROZEN_EDGE._START&&e.push(o);return e},M.prototype._getFrozenEndColumnIndexes=function(){for(var e=[],t=this._table._getColumnDefs(),o=0;o<t.length;o++)t[o].frozenEdge===I._OPTION_FROZEN_EDGE._END&&e.push(o);return e},M.prototype._applyFrozenOffset=function(e,t,o,i){var l,n,s="rtl"===this._table._GetReadingDirection();n=o&&!s||!o&&s?I.CSS_PROP._LEFT:I.CSS_PROP._RIGHT;var a=t+I.CSS_VAL._PX;if(null!=i){let t;if(-1===e){if(this._table._isGutterStartColumnEnabled()&&(t=this._table._getTableGutterCell("body","start",i)),this._table._isDefaultSelectorEnabled())if(i.classList.contains(I.CSS_CLASSES._TABLE_ADD_ROW_PLACEHOLDER_CLASS)){let e=this._table._isGutterStartColumnEnabled()?1:0;t=this._table._getPlaceHolderRowCells(i)[e]}else t=this._table._getTableBodySelectorCell(i)}else t=i.classList.contains(I.CSS_CLASSES._TABLE_ADD_ROW_PLACEHOLDER_CLASS)?this._table._getPlaceHolderRowCell(e):this._table._getTableBodyCell(null,e,i);return void(null!=t&&(t.style[n]=a))}const r=this._table._getTableBodyRows(),_=this._table._getPlaceHolderRow(),h=this._table.options.columns.length;if(-1===e&&!this._table._isDefaultSelectorEnabled()||e===h){const t=-1===e?"start":"end",o=this._table._getTableGutterCell("header",t);if(null!=o&&(o.style[n]=a),null!=_){const e=this._table._getTableGutterCell("body",t,_);null!=e&&(e.style[n]=a)}for(l=0;l<r.length;l++){const e=this._table._getTableGutterCell("body",t,r[l]);null!=e&&(e.style[n]=a)}const i=this._table._getTableGutterCell("footer",t);null!=i&&(i.style[n]=a)}else if(-1===e){var d=this._table._getTableSelectorColumn();if(null!=d&&(d.style[n]=a),null!=_){const e=this._table._isGutterStartColumnEnabled()?1:0,t=this._table._getPlaceHolderRowCells(_)[e];null!=t&&(t.style[n]=a)}for(l=0;l<r.length;l++){var u=this._table._getTableBodyRow(l),c=this._table._getTableBodySelectorCell(u);null!=c&&(c.style[n]=a)}var S=this._table._getTableFooterSelectorCell();null!=S&&(S.style[n]=a)}else{var E=this._table._getTableHeaderColumn(e);if(null!=E&&(E.style[n]=a),null!=_){var C=this._table._getPlaceHolderRowCell(e);null!=C&&(C.style[n]=a)}for(l=0;l<r.length;l++){var T=this._table._getTableBodyCell(l,e);null!=T&&(T.style[n]=a)}var p=this._table._getTableFooterCell(e);null!=p&&(p.style[n]=a)}},M.prototype._updateFrozenEdges=function(e,t,o){var i,l,n,s,a=this._table._getCurrentHorizontalScrollPosition(e);if(0===a.x)n=null;else{var r=a.columnIndex;n=this._table._isDefaultSelectorEnabled()||this._table._isGutterStartColumnEnabled()?-1:null;var _=this._getFrozenStartColumnIndexes();for(i=0;i<_.length&&((l=_[i])<r&&this._getAppliedColumnWidth(l)>0);i++)n=l}this._updateFrozenEdge(n,!0,t,o);var h=this.getScroller(),d=h.scrollWidth-h.clientWidth-a.x;if(d<1)s=null;else if(null!=this._appliedColumnWidths){this._table._isGutterEndColumnEnabled()&&(s=this._appliedColumnWidths.length);var u=0,c=this._getFrozenEndColumnIndexes();for(i=this._appliedColumnWidths.length-1;i>-1;i--)if(-1!==c.indexOf(i)&&this._getAppliedColumnWidth(i)>0)s=i;else if((u+=this._getAppliedColumnWidth(i))>d)break}this._updateFrozenEdge(s,!1,t,o)},M.prototype._updateFrozenEdge=function(e,t,o,i){var l=!1;t?this._frozenStartIndex!==e&&(null!=this._frozenStartIndex&&this._applyFrozenEdge(this._frozenStartIndex,!1,i),null!=e&&(this._applyFrozenEdge(e,!0,i),l=!0),this._frozenStartIndex=e):this._frozenEndIndex!==e&&(null!=this._frozenEndIndex&&this._applyFrozenEdge(this._frozenEndIndex,!1,i),null!=e&&(this._applyFrozenEdge(e,!0,i),l=!0),this._frozenEndIndex=e),o&&!l&&this._applyFrozenEdge(e,!0,i)},M.prototype._applyFrozenEdge=function(e,t,o){let i;const l=t?"add":"remove",n=this._table.options.columns.length;if(null!=o){let t;if(-1===e){if(this._table._isGutterStartColumnEnabled()&&(t=this._table._getTableGutterCell("body","start",o)),this._table._isDefaultSelectorEnabled())if(o.classList.contains(I.CSS_CLASSES._TABLE_ADD_ROW_PLACEHOLDER_CLASS)){let e=this._table._isGutterStartColumnEnabled()?1:0;t=this._table._getPlaceHolderRowCells(o)[e]}else t=this._table._getTableBodySelectorCell(o)}else t=e===n?this._table._getTableGutterCell("body","end",o):o.classList.contains(I.CSS_CLASSES._TABLE_ADD_ROW_PLACEHOLDER_CLASS)?this._table._getPlaceHolderRowCell(e):this._table._getTableBodyCell(null,e,o);return void(null!=t&&t.classList[l](I.CSS_CLASSES._TABLE_FROZEN_EDGE))}const s=this._table._getTableBodyRows(),a=this._table._getPlaceHolderRow();if(-1===e&&!this._table._isDefaultSelectorEnabled()||e===n){const t=-1===e?"start":"end",o=this._table._getTableGutterCell("header",t);if(null!=o&&o.classList[l](I.CSS_CLASSES._TABLE_FROZEN_EDGE),null!=a){const e=this._table._getTableGutterCell("body",t,a);null!=e&&e.classList[l](I.CSS_CLASSES._TABLE_FROZEN_EDGE)}for(i=0;i<s.length;i++){const e=this._table._getTableGutterCell("body",t,s[i]);null!=e&&e.classList[l](I.CSS_CLASSES._TABLE_FROZEN_EDGE)}const n=this._table._getTableGutterCell("footer",t);null!=n&&n.classList[l](I.CSS_CLASSES._TABLE_FROZEN_EDGE)}else if(-1===e){var r=this._table._getTableSelectorColumn();if(null!=r&&r.classList[l](I.CSS_CLASSES._TABLE_FROZEN_EDGE),null!=a){let e=this._table._isGutterStartColumnEnabled()?1:0;var _=this._table._getPlaceHolderRowCells(a)[e];null!=_&&_.classList[l](I.CSS_CLASSES._TABLE_FROZEN_EDGE)}for(i=0;i<s.length;i++){var h=this._table._getTableBodyRow(i),d=this._table._getTableBodySelectorCell(h);null!=d&&d.classList[l](I.CSS_CLASSES._TABLE_FROZEN_EDGE)}var u=this._table._getTableFooterSelectorCell();null!=u&&u.classList[l](I.CSS_CLASSES._TABLE_FROZEN_EDGE)}else{var c=this._table._getTableHeaderColumn(e);if(null!=c&&c.classList[l](I.CSS_CLASSES._TABLE_FROZEN_EDGE),null!=a){var S=this._table._getPlaceHolderRowCell(e);null!=S&&S.classList[l](I.CSS_CLASSES._TABLE_FROZEN_EDGE)}for(i=0;i<s.length;i++){var E=this._table._getTableBodyCell(i,e);null!=E&&E.classList[l](I.CSS_CLASSES._TABLE_FROZEN_EDGE)}var C=this._table._getTableFooterCell(e);null!=C&&C.classList[l](I.CSS_CLASSES._TABLE_FROZEN_EDGE)}},M.prototype.handleMouseMoveHeaderCell=function(e){this._isColumnResizing||this._setResizeCursor(e)},M.prototype._setResizeCursor=function(e){var t=this._table._getEventTargetElement(e),o=this._table._getElementColumnIdx(t);if(null!=o){if(this._table._getColumnDefs()[o].resizable===I._OPTION_DISABLED)return this._cursor=null,void(t.style.cursor="");var i=!1,l=this._table._getTableHeaderColumn(o);if(null!==l){var n=this._table._GetReadingDirection(),s=this._table.options.columns.length,a=l.getBoundingClientRect(),r=Math.abs(e.originalEvent.clientX-a.left),_=Math.abs(e.originalEvent.clientX-a.right);r<=I.RESIZE_OFFSET?"rtl"===n&&o!==s-1?(i=!0,this._resizeStartIndex=o,this._resizeEndIndex=o+1):"ltr"===n&&0!==o&&(i=!0,this._resizeStartIndex=o-1,this._resizeEndIndex=o):_<=I.RESIZE_OFFSET&&("ltr"===n&&o!==s-1?(i=!0,this._resizeStartIndex=o,this._resizeEndIndex=o+1):"rtl"===n&&0!==o&&(i=!0,this._resizeStartIndex=o-1,this._resizeEndIndex=o))}i?(this._cursor="col-resize",t.style.cursor=I.CSS_VAL._COL_RESIZE):(this._cursor=null,t.style.cursor="")}},M.prototype._handleHeaderColumnResizeStart=function(e,t){return(!t||null==this._resizeStartIndex&&null==this._resizeEndIndex)&&this._setResizeCursor(e),"col-resize"===this._cursor?(this._isColumnResizing=!0,this._resizeStartPageX=this._getPageX(e),this._minimumStartColWidth=this.getMinimumForcedOffsetWidth(this._resizeStartIndex),this._minimumEndColWidth=this.getMinimumForcedOffsetWidth(this._resizeEndIndex),this._setResizeIndicator(),e.preventDefault(),t&&this._setupMouseResizeListeners(),this._table._queueTask(function(){return this._isColumnResizing?new Promise(function(e){this._finishResize=e}.bind(this)):Promise.resolve()}.bind(this)),!0):(this._resizeStartPageX=null,!1)},M.prototype._setupMouseResizeListeners=function(){this._clearMouseResizeListeners(),this._docMouseMoveListener=this._handleResizeMouseMove.bind(this),this._docMouseUpListener=this._handleResizeMouseUp.bind(this),document.addEventListener("mousemove",this._docMouseMoveListener,!1),document.addEventListener("mouseup",this._docMouseUpListener,!1)},M.prototype._clearMouseResizeListeners=function(){null!=this._docMouseMoveListener&&(document.removeEventListener("mousemove",this._docMouseMoveListener,!1),this._docMouseMoveListener=null),null!=this._docMouseUpListener&&(document.removeEventListener("mouseup",this._docMouseUpListener,!1),this._docMouseUpListener=null)},M.prototype._handleResizeMouseMove=function(e){e&&0===e.buttons?this._handleResizeMouseUp(e):this._updateResizeColumnWidths(e)},M.prototype._handleResizeMouseUp=function(e){this._removeResizeIndicator(),this._updateResizeColumnWidths(e,!0),this._cleanupColumnResizing()},M.prototype._cleanupColumnResizing=function(){this._clearMouseResizeListeners(),this._resizeStartIndex=null,this._resizeEndIndex=null,this._isColumnResizing=null,this._resizeStartPageX=null,this._minimumStartColWidth=null,this._minimumEndColWidth=null,null!=this._finishResize&&(this._finishResize(),this._finishResize=null)},M.prototype.handleTouchMoveHeader=function(e){this._isColumnResizing&&this._updateResizeColumnWidths(e)},M.prototype.handleTouchEnd=function(e){this._isColumnResizing&&(e.preventDefault(),this._removeResizeIndicator(),this._updateResizeColumnWidths(e,!0),this._cleanupColumnResizing())},M.prototype._updateResizeColumnWidths=function(e,t){var o,i,l,n=this._table._GetReadingDirection(),s=this._getAppliedColumnWidth(this._resizeStartIndex),a=this._getAppliedColumnWidth(this._resizeEndIndex),r=this._getPageX(e)-this._resizeStartPageX;"ltr"===n?(o=s+r,i=a-r):(o=s-r,i=a+r),this._minimumStartColWidth>o?(l=this._minimumStartColWidth-o,o=this._minimumStartColWidth,i-=l):this._minimumEndColWidth>i&&(l=this._minimumEndColWidth-i,i=this._minimumEndColWidth,o-=l);var _=this._table._getTableCol(this._resizeStartIndex),h=this._table._getTableCol(this._resizeEndIndex);if(_.style[I.CSS_PROP._WIDTH]=o+I.CSS_VAL._PX,h.style[I.CSS_PROP._WIDTH]=i+I.CSS_VAL._PX,this._updateStickyRowTops(),t){for(var d=this._table.options.columns.length,u=[],c=0;c<d;c++)u[c]=Object.assign({},{},this._table.options.columns[c]);var S=this._table._getTableHeaderColumn(this._resizeStartIndex);u[this._resizeStartIndex].width=this.getWidthPropertyFromOffsetWidth(o,S);var E=this._table._getTableHeaderColumn(this._resizeEndIndex);u[this._resizeEndIndex].width=this.getWidthPropertyFromOffsetWidth(i,E),this._table.option("columns",u,{_context:{writeback:!0,internalSet:!0}}),this._table._clearCachedMetadata(),this.notifyTableUpdate(I._UPDATE._COL_RESIZE),null!=this._finishResize&&(this._finishResize(),this._finishResize=null)}},M.prototype._setResizeIndicator=function(){var e=this._table._getPlaceHolderRowCell(this._resizeEndIndex);null!=e&&e.classList.add(I.CSS_CLASSES._COLUMN_RESIZE_INDICATOR_CLASS);var t=this._table._getTableHeaderColumn(this._resizeEndIndex);null!=t&&t.classList.add(I.CSS_CLASSES._COLUMN_RESIZE_INDICATOR_CLASS),this._table._getVisibleRowIdxs().forEach(function(e){var t=this._table._getTableBodyCell(e,this._resizeEndIndex);null!=t&&t.classList.add(I.CSS_CLASSES._COLUMN_RESIZE_INDICATOR_CLASS)}.bind(this));var o=this._table._getTableFooterCell(this._resizeEndIndex);null!=o&&o.classList.add(I.CSS_CLASSES._COLUMN_RESIZE_INDICATOR_CLASS)},M.prototype._removeResizeIndicator=function(){var e=this._table._getTableContainer();this._table._getTableElementsByClassName(e,I.CSS_CLASSES._COLUMN_RESIZE_INDICATOR_CLASS).forEach(function(e){e.classList.remove(I.CSS_CLASSES._COLUMN_RESIZE_INDICATOR_CLASS)})},M.prototype.handleRowRefresh=function(e,t,o){M.superclass.handleRowRefresh.call(this,e,t),o&&this._initializeFrozenColumns(!1,t)},M.prototype.displayDragOverIndicatorColumn=function(e,t){if(null==e||this._dragIndicatorColumnIndex!==e||this._dragIndicatorIsStart!==t){this._dragIndicatorColumnIndex=null!=e?e:this._dragIndicatorColumnIndex,this._dragIndicatorIsStart=null!=t?t:this._dragIndicatorIsStart;var o=this._getTableColumnDropIndicator();null==o&&(o=this._createTableColumnDropIndicator());var i=this.getScroller().getBoundingClientRect(),l=this._table._getTableHeaderColumn(this._dragIndicatorColumnIndex).getBoundingClientRect();this._dragIndicatorIsStart?"rtl"===this._table._GetReadingDirection()?o.style.left=l.left+l.width-i.left+"px":o.style.left=l.left-i.left+"px":"rtl"===this._table._GetReadingDirection()?o.style.left=l.left-i.left+"px":o.style.left=l.left+l.width-i.left+"px",o.style.height=i.height+"px"}},M.prototype.removeDragOverIndicatorColumn=function(){var e=this._getTableColumnDropIndicator();e&&(S(e).remove(),this._table._clearDomCache(I.CSS_CLASSES._COLUMN_DROP_INDICATOR_CLASS)),this._dragIndicatorColumnIndex=null,this._dragIndicatorIsStart=null},M.prototype._createTableColumnDropIndicator=function(){var e=this._getTableColumnDropIndicator();if(!e){var t=this._table._getTableContainer();(e=document.createElement(I.DOM_ELEMENT._DIV)).classList.add(I.CSS_CLASSES._COLUMN_DROP_INDICATOR_CLASS),t.appendChild(e),this._table._cacheDomElement(I.CSS_CLASSES._COLUMN_DROP_INDICATOR_CLASS,e)}return e},M.prototype._getTableColumnDropIndicator=function(){return this._table._getTableElementByClassName(I.CSS_CLASSES._COLUMN_DROP_INDICATOR_CLASS,!0)},M.prototype._applyHeaderWrapperClass=function(){const e=this._table._getTableHeaderColumns();if(null!=e)for(let t=0;t<e.length;t++)e[t].classList.add(I.CSS_CLASSES._TABLE_HEADER_WRAP_TEXT_CLASS)};const P=function(e){P.superclass.constructor.call(this,e)};u.Object.createSubclass(P,M,"TableFixedLayoutManager"),P.prototype._clearAllCache=function(){P.superclass._clearAllCache.call(this),this._columnWeights=null,this._columnMinWidths=null,this._columnMaxWidths=null},P.prototype._initializeColumnLayouts=function(){var e,t=!1;if(this._table._isDefaultSelectorEnabled()){if(null==this._selectorColWidth){t=!0;var o=this._table._getTableSelectorColumn();if(null!=o)this._selectorColWidth=o.offsetWidth;else{var i=this._table._getTableBodyRow(0),l=this._table._getTableBodySelectorCell(i);null!=l&&(this._selectorColWidth=l.offsetWidth)}}}else null!=this._selectorColWidth&&(t=!0,this._selectorColWidth=null);var n=this._table._getColumnDefs(),s=n.length;if(null==this._columnWeights)for(t=!0,this._columnWeights=[],e=0;e<s;e++){var a=parseFloat(n[e].weight);a<=1&&(a=1),this._columnWeights[e]=a}if(null==this._columnMinWidths)for(t=!0,this._columnMinWidths=[],e=0;e<s;e++){var r=this._getPixelStyleEquivalent(n[e].minWidth);this._columnMinWidths[e]=null==r||r<=0?1:r}if(null==this._columnMaxWidths)for(t=!0,this._columnMaxWidths=[],e=0;e<s;e++){var _=this._getPixelStyleEquivalent(n[e].maxWidth);this._columnMaxWidths[e]=null!=_&&_<=0?null:_}if(null==this._columnInitWidths)for(t=!0,this._resetTableElementStyling(),this._columnInitWidths=[],e=0;e<s;e++){var h=this._table._getTableHeaderColumn(e);if(null!=h)this._columnInitWidths[e]=h.offsetWidth;else{var d=this._table._getTableBodyCell(0,e,null);null!=d&&(this._columnInitWidths[e]=d.offsetWidth)}}else t&&this._resetTableElementStyling();return t},P.prototype._resetTableElementStyling=function(){this._table._getTable().style="",this._removeHeaderColumnAndCellColumnWidths()},P.prototype._removeTableDimensionsStyling=function(){this.unregisterScrollListeners()},P.prototype._determineColumnWidths=function(){var e=this._table._getTableScroller().clientWidth;return this._setAllColumnWidths(e)},P.prototype._setAllColumnWidths=function(e){var t,o=this._table._getColumnDefs(),i=o.length,l=null!=this._selectorColWidth?this._selectorColWidth:0,n=l,s=0,a=[];this._appliedColumnWidths=[];var r=[];for(t=0;t<i;t++){var _=this._getPixelStyleEquivalent(o[t].width);null!=_?(r[t]=_,n+=_):(this._columnInitWidths[t]>0?(_=this._columnMinWidths[t],s+=this._columnWeights[t]):_=0,r[t]=!1),a[t]=_,l+=_}if(n<e)for(var h=!0;h;){var d=s;h=!1;var u=e-n;for(t=0;t<i;t++){if(!1===r[t])if(a[t]>0){var c=this._columnWeights[t],S=Math.floor(c/d*u),E=this._columnMinWidths[t],C=this._columnMaxWidths[t];if(null!=E&&S<E){r[t]=E,n+=E,s-=c,a[t]=E,h=!0;break}if(null!=C&&S>C){r[t]=C,n+=C,s-=c,a[t]=C,h=!0;break}a[t]=S,d-=c,u-=S}}l=e}for(t=0;t<i;t++){var T=this._table._getTableCol(t),p=a[t];T.style[I.CSS_PROP._WIDTH]=p+I.CSS_VAL._PX,0===p&&(T.style[I.CSS_PROP._DISPLAY]=I.CSS_VAL._NONE),this._appliedColumnWidths[t]=p}return l},P.prototype._getMinWidthAutoEquivalent=function(){return 100},I.prototype._createContextInfo=function(){var e=document.createElement(I.DOM_ELEMENT._DIV);if(e.id=this.createSubId("context"),e.classList.add(I.CSS_CLASSES._TABLE_ACC_CONTEXT_INFO_CLASS),e.classList.add(I.CSS_CLASSES._HIDDEN_CONTENT_ACC_CLASS),!b.isIos()){var t=document.createElement(I.DOM_ELEMENT._DIV);t.id=this.createSubId("tableContext"),t.classList.add(I.CSS_CLASSES._HIDDEN_CONTENT_ACC_CLASS),e.appendChild(t);var o=document.createElement(I.DOM_ELEMENT._DIV);o.id=this.createSubId("rowContext"),o.classList.add(I.CSS_CLASSES._HIDDEN_CONTENT_ACC_CLASS),e.appendChild(o);var i=document.createElement(I.DOM_ELEMENT._DIV);i.id=this.createSubId("columnContext"),i.classList.add(I.CSS_CLASSES._HIDDEN_CONTENT_ACC_CLASS),e.appendChild(i);var l=document.createElement(I.DOM_ELEMENT._DIV);l.id=this.createSubId("selectorContext"),l.classList.add(I.CSS_CLASSES._HIDDEN_CONTENT_ACC_CLASS),l.textContent=this.getTranslatedString(I._BUNDLE_KEY._LABEL_SELECT_ROW),e.appendChild(l),this._tableContextInfo=t,this._rowContextInfo=o,this._columnContextInfo=i,this._selectorContextInfo=l}return this._getTableContainer().appendChild(e),e},I.prototype._createStateInfo=function(){var e=document.createElement(I.DOM_ELEMENT._DIV);return e.id=this.createSubId("state"),e.classList.add(I.CSS_CLASSES._TABLE_ACC_STATE_INFO_CLASS),e.classList.add(I.CSS_CLASSES._HIDDEN_CONTENT_ACC_CLASS),this._getTableContainer().appendChild(e),this._stateInfo=e,e},I.prototype._createRowStateInfo=function(){var e=document.createElement(I.DOM_ELEMENT._DIV);return e.id=this.createSubId("rowState"),e.classList.add(I.CSS_CLASSES._TABLE_ACC_ROW_STATE_INFO_CLASS),e.classList.add(I.CSS_CLASSES._HIDDEN_CONTENT_ACC_CLASS),this._getTableContainer().appendChild(e),this._rowStateInfo=e,e},I.prototype._createTableStatusAccNotification=function(){var e=this._getTableContainer(),t=document.createElement(I.DOM_ELEMENT._DIV);return t.setAttribute(I.DOM_ATTR._ROLE,"status"),t.classList.add(I.CSS_CLASSES._TABLE_STATUS_ACC_NOTIFICATION_CLASS),t.classList.add(I.CSS_CLASSES._HIDDEN_CONTENT_ACC_CLASS),e.appendChild(t),this._cacheDomElement(I.CSS_CLASSES._TABLE_STATUS_ACC_NOTIFICATION_CLASS,t),this._accStatus=t,t},I.prototype._setAccessibleContext=function(e){var t="";null!=e&&(t=e.context+" "+e.state),this._accRowContext=t},I.prototype._getAccessibleContext=function(){return this._accRowContext},I.prototype._clearAccessibleContext=function(){this._accRowContext=null},I.prototype._updateAccStatusInfo=function(e){var t,o,i="",l="";if(null!=this._active&&!b.isIos()){if(!1!==this._accFirstFocus){var n=this._getColumnDefs().length;this._isDefaultSelectorEnabled()&&(n+=1);var s,a=this._getTableBodyRows().length;s=0===a?"accessibleSummaryExact":"accessibleSummaryEstimate",this._tableContextInfo.textContent=this.getTranslatedString(s,{colnum:n,rownum:a}),i+=this._tableContextInfo.id+" "+this._getTableContainer().id+" "}var r=this._getActiveType(),_=this._active.index;if(r===I.ACTIVE_ELEMENT_TYPES._HEADER){if(this._accRowIndex=null,this._accColumnIndex=null,this._columnContextInfo.textContent=this.getTranslatedString("accessibleColumnHeaderContext",{index:this._isDefaultSelectorEnabled()?_+2:_+1}),i+=this._columnContextInfo.id+" ",-1===_)o=this._getTableSelectorColumn();else{var h=!1;o=this._getTableHeaderColumn(_);var d=this._getSelectedHeaderColumnIdxs();for(t=0;t<d.length;t++)if(d[t]===_){l+=this.getTranslatedString("accessibleStateSelected")+" ",h=!0;break}!h&&this._isColumnSelectionEnabled()&&(l+=this.getTranslatedString("accessibleStateUnselected")+" ");var u=this._getColumnDefs()[_],c=S(o).data("sorted");null!=c?c===I._COLUMN_SORT_ORDER._ASCENDING?l+=this.getTranslatedString("accessibleSortAscending",{id:""})+" ":l+=this.getTranslatedString("accessibleSortDescending",{id:""})+" ":u.sortable===I._OPTION_ENABLED&&(l+=this.getTranslatedString("accessibleSortable",{id:""})+" ")}b.getActionableElementsInNode(o).length>0&&(l+=this.getTranslatedString("accessibleContainsControls")),i+=o.id+" "}else if(r===I.ACTIVE_ELEMENT_TYPES._FOOTER){var E;if(this._accRowIndex=null,this._accColumnIndex=null,this._columnContextInfo.textContent=this.getTranslatedString("accessibleColumnFooterContext",{index:this._isDefaultSelectorEnabled()?_+2:_+1}),i+=this._columnContextInfo.id+" ",-1===_)E=this._getTableFooterSelectorCell();else{var C=!1;E=this._getTableFooterCell(_);var T=this._getSelectedFooterColumnIdxs();for(t=0;t<T.length;t++)if(T[t]===_){l+=this.getTranslatedString("accessibleStateSelected")+" ",C=!0;break}!C&&this._isColumnSelectionEnabled()&&(l+=this.getTranslatedString("accessibleStateUnselected")+" ")}b.getActionableElementsInNode(E).length>0&&(l+=this.getTranslatedString("accessibleContainsControls")),null!=(o=this._getTableHeaderColumn(_))&&(i+=o.id+" "),i+=E.id+" "}else if(r===I.ACTIVE_ELEMENT_TYPES._DATA_ROW){var p,g=null!=e?e:this._accColumnIndex;null==g&&(g=0);var A=this._getTableBodyRow(_),f=this._getTableElementsByClassName(A,I.CSS_CLASSES._TABLE_DATA_CELL_CLASS);if(p=-1===g?this._getTableBodySelectorCell(A):f[g],_!==this._accRowIndex||!1!==this._accFirstFocus){var L=this._isAddNewRowEnabled()?2:1;this._rowContextInfo.textContent=this.getTranslatedString("accessibleRowContext",{index:_+L});var m="",R=!1;null!=this._accRowContext&&(m+=this._accRowContext+" ");var y=this._getSelectedRowIdxs();for(t=0;t<y.length;t++)if(y[t]===_){m+=this.getTranslatedString("accessibleStateSelected")+" ",R=!0;break}!R&&this._isRowSelectionEnabled()&&A[I._DATA_OJ_SELECTABLE]!==I._CONST_OFF&&(m+=this.getTranslatedString("accessibleStateUnselected")+" "),b.getActionableElementsInNode(A).length>0&&(m+=this.getTranslatedString("accessibleContainsControls")+" "),this._rowStateInfo.textContent=m,i+=this._rowContextInfo.id+(-1===g?" ":" "+this._getRowHeaderIds(_,A,p)+" ")+this._rowStateInfo.id+" "}if(g===this._accColumnIndex&&!1===this._accFirstFocus||(this._columnContextInfo.textContent=this.getTranslatedString("accessibleColumnContext",{index:this._isDefaultSelectorEnabled()?g+2:g+1}),i+=this._columnContextInfo.id+" "),-1===g)null!=p&&(i+=this._getAccSelectorString(_)+" ");else{null!=(o=this._getTableHeaderColumn(g))&&(i+=o.id+" "+p.id+" ");var O=p.colSpan;O>1&&(l+=this.getTranslatedString("accessibleColumnsSpan",{count:O}))}this._accRowIndex=_,this._accColumnIndex=g}else if(r===I.ACTIVE_ELEMENT_TYPES._NO_DATA){this._accRowIndex=null,this._accColumnIndex=null,i+=this._getNoDataId()+" ";var v=this._getActiveElement();b.getActionableElementsInNode(v).length>0&&(l+=this.getTranslatedString("accessibleContainsControls"))}else if(r===I.ACTIVE_ELEMENT_TYPES._ADD_ROW){this._accRowIndex=null,this._accColumnIndex=null,this._rowContextInfo.textContent=this.getTranslatedString("accessibleRowContext",{index:1}),this._rowStateInfo.textContent=this.getTranslatedString("accessibleAddRow");var D=this._getActiveElement();b.getActionableElementsInNode(D).length>0&&(l+=this.getTranslatedString("accessibleContainsControls")),i+=this._rowContextInfo.id+" "+this._rowStateInfo.id+" "}this._stateInfo.textContent=l,i+=this._stateInfo.id,this._applyAccStatusLabel(i)}},I.prototype._announceAccSelectionUpdate=function(e){var t;t=e?this.getTranslatedString("accessibleStateSelected"):this.getTranslatedString("accessibleStateUnselected"),this._stateInfo.textContent=t;var o=this._stateInfo.id;this._accStatus.setAttribute(I.DOM_ATTR._ARIA_LABELLEDBY,o)},I.prototype._getAccSelectorString=function(e,t){return this._selectorContextInfo.id+" "+this._getRowHeaderIds(e,t)},I.prototype._clearAccStatusInfo=function(){this._accStatus.setAttribute(I.DOM_ATTR._ARIA_LABELLEDBY,""),this._getTable().setAttribute(I.DOM_ATTR._ARIA_LABELLEDBY,"")},I.prototype._applyAccStatusLabel=function(e){!1!==this._accFirstFocus?this._accFirstFocus=!1:this._accActionFocus?this._accActionFocus=!1:this._accStatus.setAttribute(I.DOM_ATTR._ARIA_LABELLEDBY,e),this._getTable().setAttribute(I.DOM_ATTR._ARIA_LABELLEDBY,e)},I.prototype._getRowHeaderIds=function(e,t,o){var i,l="",n=this.options.accessibility;if(null!=n&&null!=n.rowHeader){var s=n.rowHeader;Array.isArray(s)||(s=[s]);for(var a=this._getColumnDefs(),r=0;r<s.length;r++)for(var _=s[r],h=0;h<a.length;h++)if(_===a[h].id){null!=(i=this._getTableBodyLogicalCells(e,t)[h])&&i!==o&&(l+=i.id+" ");break}}else null!=(i=this._getTableBodyCell(e,0,t))&&i!==o&&(l+=i.id+" ");return l},I.prototype._getVoiceOverCellLabelledby=function(e,t){var o="",i=this._getTableHeaderColumn(t);return null!=i&&(o+=i.id+" "),o+=e.id+" "},I.prototype._getNoDataId=function(){var e=this._getTableBodyMessageRow();if(null!=e)return e.id;var t=this._getTableNoDataRow();return null!=t?t.id:""},I.prototype._cleanAccStatus=function(){this._accFirstFocus=!0,this._accActionFocus=!1,this._accStatus.removeAttribute(I.DOM_ATTR._ARIA_LABELLEDBY),this._getTable().removeAttribute(I.DOM_ATTR._ARIA_LABELLEDBY)},I.prototype._getData=function(){if(!this._data&&null!=this.options.data){var e=this.options.data;if(u.TableDataSource&&e instanceof u.TableDataSource||this._isPagingModelTableDataSource())this._data=new u.TableDataSourceAdapter(e);else{if(!u.DataProviderFeatureChecker.isDataProvider(e)){var t=I._LOGGER_MSG._ERR_DATA_INVALID_TYPE_SUMMARY,o=I._LOGGER_MSG._ERR_DATA_INVALID_TYPE_DETAIL;throw new Error(t+"\n"+o)}e instanceof h||u.DataProviderFeatureChecker.isTreeDataProvider(e)?this._data=e:this._data=new h(e)}this._dataOption=this.options.data,this._registerDataSourceEventListeners()}return this._data},I.prototype._isPagingModelTableDataSource=function(){return!!(u.PagingTableDataSource&&this.options.data instanceof u.PagingTableDataSource)},I.prototype._registerDataSourceEventListeners=function(){var e=this._getData();if(null!=e){this._unregisterDataSourceEventListeners(),this._dataProviderEventHandlers=[],this._dataProviderEventHandlers.push({eventType:"mutate",eventHandler:this._handleDataRowMutate.bind(this)}),this._dataProviderEventHandlers.push({eventType:"refresh",eventHandler:this._handleDataRefresh.bind(this)});for(var t=this._dataProviderEventHandlers.length,o=0;o<t;o++){var i=e.addEventListener(this._dataProviderEventHandlers[o].eventType,this._dataProviderEventHandlers[o].eventHandler);i&&(this._dataProviderEventHandlers[o].eventHandler=i)}}},I.prototype._unregisterDataSourceEventListeners=function(){var e=this._getData();if(null!=this._dataProviderEventHandlers&&null!=e)for(var t=this._dataProviderEventHandlers.length,o=0;o<t;o++)e.removeEventListener(this._dataProviderEventHandlers[o].eventType,this._dataProviderEventHandlers[o].eventHandler)},I.prototype._handleDataRefresh=function(e){try{if(this._hasRefreshInQueue)return;if(this._dataFetching)return void(this._pendingFetchStale=!0);e.detail&&void 0!==e.detail.disregardAfterKey?this._queueTask(function(){this._getLayoutManager().notifyTableUpdate(I._UPDATE._ROWS_REMOVED),this._resetActiveRow(),this._removeRowsAfterLastValidRow(e.detail.disregardAfterKey),this._hasMoreToFetch()||this._registerDomScroller(),this._animateOnFetch=!0}.bind(this)):(this._hasRefreshInQueue=!0,this._queueTask(function(){return this._getLayoutManager().notifyTableUpdate(I._UPDATE._DATA_REFRESH),this._resetActiveRow(),this._beforeDataRefresh(),this._invokeDataFetchRows()}.bind(this)))}catch(e){C.error(e)}},I.prototype._beforeDataRefresh=function(e){this._clearIdleCallback(),this._adjustScrollPositionOnFetch(e),this._invalidateRangeSelection(),null!=this._lastSelectedRowIdxArray&&(this._lastSelectedRowIdxArray=[]),this._initialSelectionStateValidated=!1},I.prototype._removeRowsAfterLastValidRow=function(e){this._getCurrentScrollPosition().y>0&&this._bufferScrollerForLastRow(e);var t=this._getRowIdxForRowKey(e);if(t>=0)for(var o=this._getTableBodyRows().length-1;o>t;o--)this._removeTableBodyRow(o)},I.prototype._bufferScrollerForLastRow=function(e){var t=this._getLayoutManager();if(null!=e){var o=this._getRowIdxForRowKey(e);if(null!=o){var i=this._getTableBodyRow(o),l=t.getVerticalOverflowDiff(i).bottom;l<0&&(this._createTableBodyScrollBuffer().style[I.CSS_PROP._HEIGHT]=Math.abs(l)+1+I.CSS_VAL._PX)}}else this._createTableBodyScrollBuffer().style[I.CSS_PROP._HEIGHT]=this._getTableBody().offsetHeight+I.CSS_VAL._PX},I.prototype._handleDataRowMutate=function(e){this._dataFetching?this._pendingFetchStale=!0:(null!=e.detail.remove&&this._handleDataRowRemove(e.detail.remove,e.detail.add),null!=e.detail.add&&this._handleDataRowAdd(e.detail.add),null!=e.detail.update&&this._handleDataRowChange(e.detail.update))},I.prototype._handleDataRowRemove=function(e,t){try{this._executeTableBodyRowsRemove(e,t)}catch(e){C.error(e)}finally{this._clearDataWaitingState()}},I.prototype._executeTableBodyRowsRemove=function(e,t){var o=this,i=e[I._CONST_KEYS];i&&i.size>0&&this._queueTask(function(){var i=o._getRowsFromEventDetailRemove(e);if(0!==i.length){o._getLayoutManager().notifyTableUpdate(I._UPDATE._ROWS_REMOVED),i.sort(function(e,t){return t.rowIdx-e.rowIdx});var l,n,s,a=[],r=[],_=[],h=i.length,d=!1,u=o._getTableBodyRows();if(u.length>0){for(s=0;s<u.length;s++)a.push(s);for(s=0;s<h;s++){n=i[s].rowIdx,r.push(n);for(var c=0;c<a.length;c++)if(a[c]===n){l=o._getTableBodyRow(n),_.push(l),a.splice(c,1);break}}0===a.length&&(d=!0)}var E=o._getTableBody(),C=S.contains(E,document.activeElement),T=!1;if(d)C&&(T=!0),o._clearSelectionState();else for(s=0;s<h;s++)if(n=i[s].rowIdx,l=o._getTableBodyRow(n),C&&null!=l&&S.contains(l,document.activeElement)){T=!0;break}if(o._hasEditableRow()){var p=o._getEditableRowKey();b.containsKey([...e[I._CONST_KEYS]],p)&&o._setTableEditable(!1,!0)}return d?(o._removeAllTableBodyRows(),f()):new Promise(function(e){return o._IsCustomElement()?o._animateVisibleRows(_,r,"remove").then(function(){return g(),f().then(function(){e(!0)})}):(g(),f().then(function(){e(!0)}))})}function g(){var e,t;if(o._getCurrentScrollPosition().y>0){var l,n,s,a,r=0,_=[];for(e=0;e<h;e++)t=i[e].rowIdx,null!=(l=o._getTableBodyRow(t))&&(r+=l.offsetHeight,_.push(l));if(o._isStickyRowsEnabled())for(e=(a=o._getTableBodyStickyRows()).length-1;e>=0;e--)if((s=a[e]).classList.contains(I.CSS_CLASSES._TABLE_STUCK_ROW_CLASS)){n=s;break}for(o._createTableBodyScrollBuffer().style[I.CSS_PROP._HEIGHT]=r+I.CSS_VAL._PX,e=0;e<_.length;e++)if(l=_[e],o._removeTableBodyRow(null,l),null!=n){var d=a.indexOf(l);-1!==d&&a.splice(d,1)}if(null!=n)for(e=a.length-1;e>=0;e--)if(s=a[e],o._getLayoutManager().getVerticalOverflowDiff(s).top>0){n!==s&&o._scrollRowIntoViewport(null,!0,n);break}}else for(e=0;e<h;e++)t=i[e].rowIdx,o._removeTableBodyRow(t)}function A(){o._syncActiveElement(),T&&o._getTable().focus()}function f(){return!0!==e.transient&&o._updateSelectionStateFromEventDetailRemove(e,t),o._refreshTableFooter(),0===(u=o._getTableBodyRows()).length?(o._showNoDataMessage(),o._finalizeNonBodyRowRendering([E]).then(function(){A()})):Promise.resolve().then(function(){A()})}o._updateSelectionStateFromEventDetailRemove(e,t)})},I.prototype._getRowsFromEventDetailRemove=function(e){var t=[];return e[I._CONST_KEYS].forEach(function(e){var o=this._getRowIdxForRowKey(e);if(void 0!==o){var i={key:e,index:o};t.push({row:i,rowIdx:o})}}.bind(this)),t},I.prototype._handleDataRowAdd=function(e){try{this._executeTableBodyRowsAdd(e)}catch(e){C.error(e)}finally{this._clearDataWaitingState()}},I.prototype._executeTableBodyRowsAdd=function(e){var t=e[I._CONST_KEYS];t&&t.size>0&&this._queueTask(function(){var t=this._getRowsFromEventDetailAdd(e);if(0!==t.length){var o=this._getLayoutManager();o.notifyTableUpdate(I._UPDATE._ROWS_ADDED);var i,l,n,s,a=!1,r=[],_=[],h=this._getTableBody();if(t.length>1){l=t.length;var d=!0;for(i=0;i<l;i++)0!==i&&t[i-1].rowIdx!==t[i].rowIdx-1&&(d=!1),_.push(t[i].rowIdx);if(d){for(n=document.createDocumentFragment(),l=t.length,i=0;i<l;i++)r.push(this._addSingleTableBodyRow(t[i].rowIdx,t[i].row,n,t[0].rowIdx));o.handleAfterRowsProcessed(n),null!=(s=this._getTableBodyRow(t[0].rowIdx))?h.insertBefore(n,s):this._appendElementToTableBody(n,h),a=!0}}if(!a)for(l=t.length,i=0;i<l;i++){var u=t[i].rowIdx;n=document.createDocumentFragment(),r.push(this._addSingleTableBodyRow(u,t[i].row,n,u)),o.handleAfterRowsProcessed(n),null!=(s=this._getTableBodyRow(u))?h.insertBefore(n,s):this._appendElementToTableBody(n,h)}if(this._clearCachedDomRowData(),this._refreshTableFooter(),0===this._scrollTop&&(1===t.length&&0===t[0].rowIdx||-1!==_.indexOf(0)))delete(null==this.options.scrollPosition?{}:this.options.scrollPosition).rowKey;return this._requiresDomScrollerRefresh&&this._registerDomScroller(),this._IsCustomElement()?this._animateVisibleRows(r,_,"add").then(function(){return this._syncActiveElement(),this._afterRowsRendered(h)}.bind(this)):(this._syncActiveElement(),this._afterRowsRendered(h))}this._requiresDomScrollerRefresh&&this._registerDomScroller()}.bind(this))},I.prototype._getRowsFromEventDetailAdd=function(e){var t=[],o=this._getData(),i=!this._isLoadMoreOnScroll()||b.isIterateAfterDoneNotAllowed(o),l=this._getLocalRowKeys(),n=l.length;if(!i&&0===n)return this._notifyAddOutOfViewport(),t;var s=b.getAddEventKeysResult(l,e,i),a=e[I._CONST_DATA],r=e[I._CONST_METADATA],_=[];e[I._CONST_KEYS].forEach(function(e){_.push(e)}),a instanceof Array||(a=[a]);var h=a.length;r instanceof Array||(r=[r]);var d,c=0;this._isPagingModelDataProvider()&&(c=o.getStartItemIndex()),o instanceof u.TableDataSourceAdapter&&(u.FlattenedTreeTableDataSource&&o.tableDataSource instanceof u.FlattenedTreeTableDataSource?d=o.tableDataSource:this._isPagingModelTableDataSource()&&u.FlattenedTreeTableDataSource&&o.tableDataSource.dataSource instanceof u.FlattenedTreeTableDataSource&&(d=o.tableDataSource.dataSource)),i||n+h===s.length||this._notifyAddOutOfViewport();for(var S=0;S<h;S++){var E=_[S],C=s.indexOf(E);if(-1!==C&&-1===l.indexOf(E)){var T;T=d&&d._getMetadata?d._getMetadata(C):r[S];var p={data:a[S],metadata:T,key:E,index:C+c};t.push({row:p,rowIdx:C})}}return t},I.prototype._notifyAddOutOfViewport=function(){this._noMoreData&&(this._animateOnFetch=!0,this._requiresDomScrollerRefresh=!0),this._noMoreData=!1},I.prototype._handleDataRowChange=function(e){try{this._executeTableBodyRowsChange(e)}catch(e){C.error(e)}finally{this._clearDataWaitingState()}},I.prototype._executeTableBodyRowsChange=function(e){this._queueTask(function(){this._updateSelectionStateFromEventDetailChange(e);var t=this._getRowsFromEventDetailChange(e);if(0!==t.length){this._getLayoutManager().notifyTableUpdate(I._UPDATE._ROW_REFRESH);for(var o=t.length,i=[],l=[],n=!1,s=0;s<o;s++){var a=t[s],r=this._getTableBodyRow(a.rowIdx);null!=r&&r!==document.activeElement&&r.contains(document.activeElement)&&(n=!0),r&&this._setTableBodyRowAttributes(t[s].row,r);var _=this._refreshTableBodyRow(a.rowIdx,a.row,null,null,null,!0);_&&(i.push(_),l.push(a.rowIdx))}return n&&this._getTable().focus(),this._refreshTableFooter(),this._IsCustomElement()?this._animateVisibleRows(i,l,"update").then(function(){return this._finalizeBodyRowRendering(i)}.bind(this)):this._finalizeBodyRowRendering(i)}}.bind(this))},I.prototype._getRowsFromEventDetailChange=function(e){var t=e[I._CONST_DATA],o=e[I._CONST_METADATA],i=[];e[I._CONST_KEYS].forEach(function(e){i.push(e)}),t instanceof Array||(t=[t]),o instanceof Array||(o=[o]);for(var l=[],n=t.length,s=0;s<n;s++){var a=this._getRowIdxForRowKey(i[s]);if(void 0!==a){var r={data:t[s],key:i[s],index:a,metadata:o[s]};l.push({row:r,rowIdx:a})}}return l},I.prototype._clearCachedDom=function(){this._clearCachedDomRowData(),this._clearDomCache()},I.prototype._clearCachedDomRowData=function(){this._cachedDomTableBodyRows=null,this._cachedDomTableBodyStickyRows=null},I.prototype._clearCachedStyling=function(){this._isGutterStartColumnEnabledCache=null,this._isGutterEndColumnEnabledCache=null},I.prototype._createContextMenuContainer=function(){var e=this._GetContextMenu(),t=!(this._isStickyLayoutEnabled()||!this._isTouchDevice())&&this._getRowSelectionMode()===I._OPTION_SELECTION_MODES._MULTIPLE;return!e&&(this._isTableSortable()||t||this._isTableColumnsResizable())&&(this._IsCustomElement()?(e=document.createElement("oj-menu")).setAttribute(I._DATA_OJ_BINDING_PROVIDER,"none"):(e=document.createElement(I.DOM_ELEMENT._UL),S(e).ojMenu()),e.style[I.CSS_PROP._DISPLAY]=I.CSS_VAL._NONE,e.setAttribute(I.DOM_ATTR._ID,this._getTableUID()+"_contextmenu"),this._getTableContainer().appendChild(e),this.option("contextMenu","#"+e.getAttribute(I.DOM_ATTR._ID),{_context:{internalSet:!0}}),this._defaultContextMenu=e),e},I.prototype._populateContextMenuItems=function(e,t){var o=!!this._isTouchDevice()&&this._getRowSelectionMode()===I._OPTION_SELECTION_MODES._MULTIPLE;if(!this._menuContainer)if(this._GetDefaultContextMenu()){if("redwood"===A.parseJSONFromFontFamily("oj-theme-json").behavior){if(this._isTableColumnsResizable()){let t=this._createContextMenuItem("resize",this._IsCustomElement());if(e.appendChild(t),this._isTableSortable()){let t=document.createElement(this._IsCustomElement()?"oj-option":"li");e.appendChild(t)}}if(this._isTableSortable()){let t=this._createContextMenuItem("sortAsc",this._IsCustomElement());e.appendChild(t);let o=this._createContextMenuItem("sortDsc",this._IsCustomElement());e.appendChild(o)}}else{if(this._isTableSortable()){let t=this._createContextMenuItem("sort",this._IsCustomElement());e.appendChild(t)}if(o){let t=this._createContextMenuItem("enableNonContiguousSelection",this._IsCustomElement());e.appendChild(t)}if(this._isTableColumnsResizable()){let t=this._createContextMenuItem("resize",this._IsCustomElement());e.appendChild(t)}}this._menuContainer=e,this._IsCustomElement()?(e.refresh(),e.addEventListener("ojAction",t)):(S(e).ojMenu("refresh"),S(e).on("ojselect",t))}else{var i=e.querySelectorAll("[data-oj-command]");if(i.length>0){var l,n,s;for(n=0;n<i.length;n++)"OJ-OPTION"!==i[n].tagName&&0!==i[n].getElementsByTagName(I.DOM_ELEMENT._A).length||(l=i[n].getAttribute(I._DATA_OJ_COMMAND).split("-"),s=this._createContextMenuItem(l[l.length-1],this._IsCustomElement()),"OJ-OPTION"===i[n].tagName?i[n].innerHTML=s.innerHTML:S(i[n]).replaceWith(s));this._menuContainer=e,S(e).data("oj-ojMenu")&&(this._IsCustomElement()?e.refresh():S(e).ojMenu("refresh")),this._IsCustomElement()?e.addEventListener("ojAction",t):S(e).on("ojselect",t)}}return e},I.prototype._createContextMenuItem=function(e,t){if("sort"===e){var o,i=this._createContextMenuListItem(e,t);return o=this._IsCustomElement()?document.createElement("oj-menu"):document.createElement(I.DOM_ELEMENT._UL),i.appendChild(o),o.appendChild(this._createContextMenuListItem("sortAsc",t)),o.appendChild(this._createContextMenuListItem("sortDsc",t)),i}if("sortAsc"===e)return this._createContextMenuListItem(e,t);if("sortDsc"===e)return this._createContextMenuListItem(e,t);if("enableNonContiguousSelection"===e)return this._createContextMenuListItem(e,t);if("disableNonContiguousSelection"===e)return this._createContextMenuListItem(e,t);if("resize"===e){return"redwood"===A.parseJSONFromFontFamily("oj-theme-json").behavior?this._createContextMenuResizeDialog(0):this._createContextMenuResizePopup(0),this._createContextMenuListItem(e,t)}return null},I.prototype._createContextMenuListItem=function(e,t){var o=document.createElement(t?"oj-option":"li");return o.setAttribute(I._DATA_OJ_COMMAND,"oj-table-"+e),o.appendChild(this._createContextMenuLabel(e,t)),o},I.prototype._createContextMenuLabel=function(e,t){var o=null;"sort"===e?o=this.getTranslatedString("labelSort"):"sortAsc"===e?o=this.getTranslatedString("labelSortAsc"):"sortDsc"===e?o=this.getTranslatedString("labelSortDsc"):"enableNonContiguousSelection"===e?o=this.getTranslatedString("labelEnableNonContiguousSelection"):"disableNonContiguousSelection"===e?o=this.getTranslatedString("labelDisableNonContiguousSelection"):"resize"===e&&(o=this.getTranslatedString("labelResizeColumn"));var i=document.createTextNode(o);if(t)return i;var l=document.createElement(I.DOM_ELEMENT._A);return l.setAttribute(I.DOM_ATTR._HREF,"#"),l.appendChild(i),l},I.prototype._createContextMenuResizePopup=function(e){e=Math.round(e);var t,o,i,l,n,s,a,r,_,h=this._getTableContainer(),d=this._getContextMenuResizePopup(),u=this._getTableUID(),c=this.getTranslatedString("labelResizePopupSpinner");function E(){d.setAttribute("id",u+"_resize_popup"),d.setAttribute(I._DATA_OJ_BINDING_PROVIDER,"none"),h.appendChild(d),i=document.createElement(I.DOM_ELEMENT._DIV),l=document.createElement(I.DOM_ELEMENT._DIV),(n=document.createElement(I.DOM_ELEMENT._DIV)).classList.add(I.CSS_CLASSES._TEXT_ALIGN_END),d.appendChild(i),d.appendChild(l),d.appendChild(n),(r=document.createElement("h6")).textContent=c,i.appendChild(r)}return this._IsCustomElement()?null==d?(d=document.createElement("oj-popup"),E(),(t=document.createElement("oj-input-number")).setAttribute("id",u+"_resize_popup_spinner"),(s=document.createElement("oj-button")).setAttribute("id",u+"_resize_popup_popupcancel"),s.style.margin="5px",s.textContent=this.getTranslatedString("labelResizePopupCancel"),(a=document.createElement("oj-button")).setAttribute("id",u+"_resize_popup_popupsubmit"),a.style.margin="5px",a.textContent=this.getTranslatedString("labelResizePopupSubmit"),l.appendChild(t),n.appendChild(a),n.appendChild(s),o=function(){a.disabled=!1,t.value=0,d.close()},s.addEventListener("click",o),a.addEventListener("click",this._handleContextMenuResizePopup.bind(this)),t.min=10,t.step=1,t.value=e,t.displayOptions={messages:["notewindow"]},t.userAssistanceDensity="compact",t.validators=[new O({pattern:I._VALIDATOR_PATTERN,messageDetail:this.getTranslatedString("msgColumnResizeWidthValidation")})],t.addEventListener("validChanged",function(e){"valid"===e.detail.value?a.disabled=!1:a.disabled=!0}),_={my:I._POSITION._START_TOP,at:I._POSITION._START_BOTTOM,collision:"flipfit"},d.setAttribute("position",JSON.stringify(_)),d.setAttribute("modality","modal"),this._cacheDomElement(u+"_resize_popup",d)):(t=document.getElementById(u+"_resize_popup_spinner")).value=e:null==d?(d=document.createElement(I.DOM_ELEMENT._DIV),E(),(t=document.createElement(I.DOM_ELEMENT._INPUT)).setAttribute("id",u+"_resize_popup_spinner"),(s=document.createElement(I.DOM_ELEMENT._BUTTON)).setAttribute("id",u+"_resize_popup_popupcancel"),s.style.margin="5px",(a=document.createElement(I.DOM_ELEMENT._BUTTON)).setAttribute("id",u+"_resize_popup_popupsubmit"),a.style.margin="5px",l.appendChild(t),n.appendChild(a),n.appendChild(s),S(a).ojButton({component:"ojButton",label:this.getTranslatedString("labelResizePopupSubmit")}),S(s).ojButton({component:"ojButton",label:this.getTranslatedString("labelResizePopupCancel")}),o=function(){S(a).ojButton({disabled:!1}),S(t).ojInputNumber({value:0}),S(d).ojPopup("close")},S(a).on("click",this._handleContextMenuResizePopup.bind(this)),S(s).on("click",o),S(t).ojInputNumber({component:"ojInputNumber",min:10,step:1,value:e,displayOptions:{messages:["notewindow"]},userAssistanceDensity:"compact",validators:[new O({pattern:I._VALIDATOR_PATTERN,messageDetail:this.getTranslatedString("msgColumnResizeWidthValidation")})]}),S(d).ojPopup({modality:"modal",position:{my:I._POSITION._START_TOP,at:I._POSITION._START_BOTTOM,collision:"flipfit"}}),S(t).on("change",function(){S(a).ojButton({disabled:!S(t).ojInputNumber("validate")})}),this._cacheDomElement(u+"_resize_popup",d)):(t=document.getElementById(u+"_resize_popup_spinner"),S(t).ojInputNumber("option","value",e)),d},I.prototype._createContextMenuResizeDialog=function(e){e=Math.round(e);let t=this._getTableContainer(),o=this._getContextMenuResizeDialog(),i=this._getTableUID();if(this._IsCustomElement())if(null==o){o=document.createElement("oj-dialog"),o.setAttribute("id",i+"_resize_dialog"),o.setAttribute(I._DATA_OJ_BINDING_PROVIDER,"none"),o.setAttribute("dialog-title",this.getTranslatedString("labelResizeColumnDialog")),t.appendChild(o);let l=document.createElement("div");l.setAttribute("slot","body");let n=document.createElement("oj-input-number");n.setAttribute("id",i+"_resize_column_width_input"),n.labelHint=this.getTranslatedString("labelColumnWidth"),n.min=10,n.step=1,n.value=e,n.displayOptions={messages:["notewindow"]},n.userAssistanceDensity="compact",n.validators=[new O({pattern:I._VALIDATOR_PATTERN,messageDetail:this.getTranslatedString("msgColumnResizeWidthValidation")})],l.appendChild(n);let s=document.createElement("div");s.setAttribute("slot","footer");let a=document.createElement("oj-button");a.setAttribute("id",i+"_resize_dialog_dialogcancel"),a.textContent=this.getTranslatedString("labelResizePopupCancel");let r=document.createElement("oj-button");r.setAttribute("id",i+"_resize_dialog_dialogapply"),r.chroming="callToAction",r.textContent=this.getTranslatedString("labelResizeDialogApply"),s.appendChild(a),s.appendChild(r),"phone"===p.getDeviceRenderMode()&&(o.classList.add(I.CSS_CLASSES._TABLE_RESIZE_DIALOG_MOBILE_CLASS),r.classList.add(I.CSS_CLASSES._BUTTON_SMALL_CLASS,I.CSS_CLASSES._SMALL_6_CLASS,I.CSS_CLASSES._SMALL_HOR_MARGIN_CLASS),a.classList.add(I.CSS_CLASSES._BUTTON_SMALL_CLASS,I.CSS_CLASSES._SMALL_6_CLASS,I.CSS_CLASSES._SMALL_HOR_MARGIN_CLASS),s.classList.add("oj-sm-justify-content-center")),n.addEventListener("validChanged",function(e){"valid"===e.detail.value?r.disabled=!1:r.disabled=!0}),o.appendChild(l),o.appendChild(s);let _=function(){r.disabled=!1,n.value=0,o.close()};a.addEventListener("click",_),r.addEventListener("click",this._handleContextMenuResizePopup.bind(this)),o.setAttribute("modality","modal"),this._cacheDomElement(i+"_resize_dialog",o)}else{document.getElementById(i+"_resize_column_width_input").value=e}else if(null==o){o=document.createElement(I.DOM_ELEMENT._DIV),o.setAttribute("id",i+"_resize_dialog"),o.setAttribute(I._DATA_OJ_BINDING_PROVIDER,"none"),"phone"===p.getDeviceRenderMode()&&o.classList.add(I.CSS_CLASSES._TABLE_RESIZE_DIALOG_MOBILE_CLASS),t.appendChild(o);let l=document.createElement("div");l.setAttribute("slot","body"),o.appendChild(l);let n=document.createElement(I.DOM_ELEMENT._INPUT);n.setAttribute("id",i+"_resize_column_width_input");let s=document.createElement(I.DOM_ELEMENT._BUTTON);s.setAttribute("id",i+"_resize_dialog_dialogcancel");let a=document.createElement(I.DOM_ELEMENT._BUTTON);a.setAttribute("id",i+"_resize_dialog_dialogapply");let r=document.createElement("div");r.setAttribute("slot","footer"),o.appendChild(r),l.appendChild(n),r.appendChild(a),r.appendChild(s),S(a).ojButton({component:"ojButton",chroming:"callToAction",label:this.getTranslatedString("labelResizeDialogApply")}),S(s).ojButton({component:"ojButton",label:this.getTranslatedString("labelResizePopupCancel")});let _=function(){S(a).ojButton({disabled:!1}),S(n).ojInputNumber({value:0}),S(o).ojDialog("close")};S(a).on("click",this._handleContextMenuResizePopup.bind(this)),S(s).on("click",_),S(n).ojInputNumber({component:"ojInputNumber",labelHint:this.getTranslatedString("labelColumnWidth"),min:10,step:1,value:e,displayOptions:{messages:["notewindow"]},userAssistanceDensity:"compact",validators:[new O({pattern:I._VALIDATOR_PATTERN,messageDetail:this.getTranslatedString("msgColumnResizeWidthValidation")})]}),S(o).ojDialog({dialogTitle:this.getTranslatedString("labelResizeColumnDialog"),modality:"modal"}),"phone"===p.getDeviceRenderMode()&&(o.classList.add(I.CSS_CLASSES._TABLE_RESIZE_DIALOG_MOBILE_CLASS),a.classList.add(I.CSS_CLASSES._BUTTON_SMALL_CLASS,I.CSS_CLASSES._SMALL_6_CLASS,I.CSS_CLASSES._SMALL_HOR_MARGIN_CLASS),s.classList.add(I.CSS_CLASSES._BUTTON_SMALL_CLASS,I.CSS_CLASSES._SMALL_6_CLASS,I.CSS_CLASSES._SMALL_HOR_MARGIN_CLASS),r.classList.add("oj-sm-justify-content-center")),S(n).on("change",function(){S(a).ojButton({disabled:!S(n).ojInputNumber("validate")})}),this._cacheDomElement(i+"_resize_dialog",o)}else{let t=document.getElementById(i+"_resize_column_width_input");S(t).ojInputNumber("option","value",e)}return o},I.prototype._createInitialTable=function(e,t){var o=this._getTable();return this._createTableContainer(),this._isStickyLayoutEnabled()&&(this._createTableScroller(),this._createTableColGroup()),e||this._createTableHeader(),this._createTableBody(),t||this._createTableFooter(),this._isStickyLayoutEnabled()||(this._createTableBodyLegacyWidthBuffer(),this._createTableLegacySizer()),this._createTableStatusMessage(),this._createTableStatusAccNotification(),this._createContextInfo(),this._createStateInfo(),this._createRowStateInfo(),this._createTableWidthContainer(),o},I.prototype._createTableBody=function(){var e=this._getTable(),t=document.createElement(I.DOM_ELEMENT._TBODY);return t.style[I.CSS_PROP._VISIBILITY]=I.CSS_VAL._HIDDEN,e.appendChild(t),this._cacheDomElement(I.CSS_CLASSES._TABLE_BODY_CLASS,t),t},I.prototype._createTableBodyScrollBuffer=function(){var e=this._getTableBodyScrollBuffer();return null==e&&((e=this._createTableBodyRow()).classList.add(I.CSS_CLASSES._TABLE_BUFFER_ROW_CLASS),this._getTableBody().appendChild(e),this._clearDomCache(I.CSS_CLASSES._TABLE_BUFFER_ROW_CLASS)),e},I.prototype._createTableBodyLegacyWidthBuffer=function(){var e=this._createTableBodyRow();return e.classList.add(I.CSS_CLASSES._TABLE_LEGACY_WIDTH_BUFFER_ROW_CLASS),this._getTableBody().appendChild(e),e},I.prototype._createTableLegacySizer=function(){var e=document.createElement(I.DOM_ELEMENT._DIV);return e.classList.add(I.CSS_CLASSES._TABLE_LEGACY_SIZER_CLASS),this._getTableContainer().appendChild(e),this._cacheDomElement(I.CSS_CLASSES._TABLE_LEGACY_SIZER_CLASS,e),e},I.prototype._appendElementToTableBody=function(e,t){var o=this._getTableBodyScrollBuffer();null!=o?t.insertBefore(e,o):t.appendChild(e)},I.prototype._createTableBodyCell=function(){return document.createElement(I.DOM_ELEMENT._TD)},I.prototype._createTableBodyDefaultSelector=function(e,t){var o=null;(o=document.createElement(I.DOM_ELEMENT._TD)).classList.add(I.CSS_CLASSES._TABLE_SELECTOR_CELL),this._isStickyLayoutEnabled()&&o.classList.add(I.CSS_CLASSES._TABLE_FROZEN_START),this._isVerticalGridEnabled()&&o.classList.add(I.CSS_CLASSES._TABLE_VGRID_LINES_CLASS),o.setAttribute(I.DOM_ATTR._ID,this._getTableUID()+":select:"+e);var i=document.createElement("oj-selector");var l;return i.id=this._getTableUID()+"_table_selector_"+e,this.options.selected.row.has(e)?i.selectedKeys=new y.KeySetImpl([e]):i.selectedKeys=new y.KeySetImpl,i.setAttribute(I._DATA_OJ_BINDING_PROVIDER,"none"),i.classList.add(I.CSS_CLASSES._TABLE_DATA_ROW_SELECTOR_CLASS),i.setAttribute("selection-mode","multiple"),i.rowKey=e,b.isIos()?(l=this.getTranslatedString(I._BUNDLE_KEY._LABEL_SELECT_ROW),i.setAttribute(I.DOM_ATTR._ARIA_LABEL,l)):(l=this._getAccSelectorString(null,t),i.setAttribute(I.DOM_ATTR._ARIA_LABELLEDBY,l)),i.addEventListener("selectedKeysChanged",this._selectedKeysChangedListener.bind(this)),o.appendChild(i),t.insertBefore(o,t.firstChild),o},I.prototype._createTableHeaderSelectorColumn=function(){var e=document.createElement(I.DOM_ELEMENT._TH);if(e.classList.add(I.CSS_CLASSES._COLUMN_HEADER_SELECTOR_CELL_CLASS),this._isStickyLayoutEnabled()&&e.classList.add(I.CSS_CLASSES._TABLE_FROZEN_START),this._isVerticalGridEnabled()&&e.classList.add(I.CSS_CLASSES._TABLE_VGRID_LINES_CLASS),e.setAttribute(I.DOM_ATTR._ID,this._getTableUID()+":selectAll"),this._isSelectAllControlVisible()){var t=document.createElement("oj-selector");t.selectedKeys=this.options.selected.row,t.setAttribute(I._DATA_OJ_BINDING_PROVIDER,"none"),t.classList.add(I.CSS_CLASSES._TABLE_HEADER_SELECTOR_CLASS),t.setAttribute("selection-mode","all"),t.setAttribute(I.DOM_ATTR._ARIA_LABEL,this.getTranslatedString(I._BUNDLE_KEY._LABEL_SELECT_ALL_ROWS)),t.addEventListener("selectedKeysChanged",this._selectedKeysChangedListener.bind(this)),e.appendChild(t)}return e},I.prototype._createTableFooterSelectorCell=function(){var e=this._createTableFooterCell();return e.classList.add(I.CSS_CLASSES._TABLE_FOOTER_SELECTOR_CELL_CLASS),this._isStickyLayoutEnabled()&&e.classList.add(I.CSS_CLASSES._TABLE_FROZEN_START),this._isVerticalGridEnabled()&&e.classList.add(I.CSS_CLASSES._TABLE_VGRID_LINES_CLASS),e.setAttribute(I.DOM_ATTR._ID,this._getTableUID()+":footerSelector"),e},I.prototype._createTableBodyMessageCell=function(e,t,o){var i=document.createElement(I.DOM_ELEMENT._TD);return this._isGutterStartColumnEnabled()&&(t+=1),this._isGutterEndColumnEnabled()&&(t+=1),this._isDefaultSelectorEnabled()&&(t+=1),i.setAttribute(I.DOM_ATTR._COLSPAN,t),i.classList.add(I.CSS_CLASSES._TABLE_BODY_MESSAGE_CLASS),i.appendChild(document.createTextNode(o)),e.appendChild(i),i},I.prototype._createTableBodyMessageRow=function(e,t){var o=this._getTableBody(),i=document.createElement(I.DOM_ELEMENT._TR);if(i.id=this.createSubId("messageRow"),i.classList.add(I.CSS_CLASSES._TABLE_BODY_MESSAGE_ROW_CLASS),this._isGutterStartColumnEnabled()){let e=this._createTableGutterCell("body","start");i.appendChild(e)}if(this._createTableBodyMessageCell(i,e,t),this._isGutterEndColumnEnabled()){let e=this._createTableGutterCell("body","end");i.appendChild(e)}return this._appendElementToTableBody(i,o),i},I.prototype._createTableBodyRow=function(){var e=document.createElement(I.DOM_ELEMENT._TR);return e._ojReportBusy=this._getTableBody(),e},I.prototype._getTouchAffordanceGlassPane=function(){var e=this._getTableContainer(),t=this._getTableElementsByClassName(e,I.CSS_CLASSES._TABLE_TOUCH_AFFORDANCE_GLASS_PANE_CLASS);return t.length>0?t[0]:null},I.prototype._createTouchAffordanceGlassPane=function(){var e=this._getTouchAffordanceGlassPane();if(!e){var t=this._getTableContainer();(e=document.createElement(I.DOM_ELEMENT._DIV)).classList.add(I.CSS_CLASSES._TABLE_TOUCH_AFFORDANCE_GLASS_PANE_CLASS),t.appendChild(e),this._refreshTouchAffordanceGlassPanePosition()}return e},I.prototype._createTableBodyRowTouchSelectionAffordance=function(e){var t=this._createTouchAffordanceGlassPane(),o=this._getTableBodyRowTouchSelectionAffordanceTop();if(!o){(o=document.createElement(I.DOM_ELEMENT._DIV)).classList.add(I.CSS_CLASSES._TABLE_DATA_ROW_TOUCH_SELECTION_AFFORDANCE_TOP_CLASS),o.classList.add(I.CSS_CLASSES._TABLE_DATA_ROW_TOUCH_SELECTION_AFFORDANCE_TOUCH_AREA_CLASS);var i=document.createElement(I.DOM_ELEMENT._DIV);i.classList.add(I.CSS_CLASSES._TABLE_DATA_ROW_TOUCH_SELECTION_AFFORDANCE_TOP_ICON_CLASS),i.setAttribute(I.DOM_ATTR._ROLE,"button"),i.setAttribute(I.DOM_ATTR._ARIA_LABEL,this.getTranslatedString("labelAccSelectionAffordanceTop")),o.appendChild(i),t.appendChild(o)}var l=this._getTableBodyRowTouchSelectionAffordanceBottom();if(!l){(l=document.createElement(I.DOM_ELEMENT._DIV)).classList.add(I.CSS_CLASSES._TABLE_DATA_ROW_TOUCH_SELECTION_AFFORDANCE_BOTTOM_CLASS),l.classList.add(I.CSS_CLASSES._TABLE_DATA_ROW_TOUCH_SELECTION_AFFORDANCE_TOUCH_AREA_CLASS);var n=document.createElement(I.DOM_ELEMENT._DIV);n.classList.add(I.CSS_CLASSES._TABLE_DATA_ROW_TOUCH_SELECTION_AFFORDANCE_BOTTOM_ICON_CLASS),n.setAttribute(I.DOM_ATTR._ROLE,"button"),n.setAttribute(I.DOM_ATTR._ARIA_LABEL,this.getTranslatedString("labelAccSelectionAffordanceBottom")),l.appendChild(n),t.appendChild(l)}this._moveTableBodyRowTouchSelectionAffordanceTop(e),this._moveTableBodyRowTouchSelectionAffordanceBottom(e)},I.prototype._createTableBottomSlot=function(){var e=this._getTableContainer(),t=document.createElement(I.DOM_ELEMENT._DIV);return t.classList.add(I.CSS_CLASSES._TABLE_BOTTOM_SLOT_CLASS),e.appendChild(t),this._cacheDomElement(I.CSS_CLASSES._TABLE_BOTTOM_SLOT_CLASS,t),t},I.prototype._createTableContainer=function(){var e=this.OuterWrapper;return e||(e=document.createElement(I.DOM_ELEMENT._DIV),this.element[0].parentNode.replaceChild(e,this.element[0]),e.insertBefore(this.element[0],e.firstChild)),this._cacheDomElement(I.CSS_CLASSES._TABLE_CONTAINER_CLASS,e),e.classList.add(I.CSS_CLASSES._TABLE_CLASS),e.classList.add(I.CSS_CLASSES._TABLE_CONTAINER_CLASS),e.classList.add(I.MARKER_STYLE_CLASSES._WIDGET),e},I.prototype._createTableScroller=function(){var e=document.createElement(I.DOM_ELEMENT._DIV);return e.classList.add(I.CSS_CLASSES._TABLE_SCROLLER_CLASS),e.setAttribute(I.DOM_ATTR._TABINDEX,"-1"),this.element[0].parentNode.replaceChild(e,this.element[0]),e.insertBefore(this.element[0],e.firstChild),e},I.prototype._createTableColGroup=function(){var e=document.createElement(I.DOM_ELEMENT._COLGROUP);e.classList.add(I.CSS_CLASSES._TABLE_COLGROUP_CLASS),this._cacheDomElement(I.CSS_CLASSES._TABLE_COLGROUP_CLASS,e);var t=this._getTableHeader();if(null!=t)return t.parentNode.insertBefore(e,t),e;var o=this._getTableBody();if(null!=o)return o.parentNode.insertBefore(e,o),e;var i=this._getTableFooter();return null!=i?(i.parentNode.insertBefore(e,i),e):(this._getTable().appendChild(e),e)},I.prototype._createTableFooter=function(){var e=this._getTable(),t=document.createElement(I.DOM_ELEMENT._TFOOT);t.style[I.CSS_PROP._VISIBILITY]=I.CSS_VAL._HIDDEN;var o=document.createElement(I.DOM_ELEMENT._TR);t.appendChild(o);var i=this._getTableBody();if(null!=i)i.parentNode.insertBefore(t,i.nextSibling);else{var l=this._getTableHeader();null!=l?l.parentNode.insertBefore(t,l.nextSibling):e.appendChild(t)}return this._cacheDomElement(I.CSS_CLASSES._TABLE_FOOTER_CLASS,t),t},I.prototype._createTableFooterCell=function(){return document.createElement(I.DOM_ELEMENT._TD)},I.prototype._createTableHeader=function(){var e=this._getTable(),t=document.createElement(I.DOM_ELEMENT._THEAD),o=document.createElement(I.DOM_ELEMENT._TR);t.appendChild(o);var i=this._getTableBody();if(null!=i)i.parentNode.insertBefore(t,i);else{var l=this._getTableFooter();null!=l?l.parentNode.insertBefore(t,l):e.appendChild(t)}return this._cacheDomElement(I.CSS_CLASSES._TABLE_HEADER_ROW_CLASS,o),this._cacheDomElement(I.CSS_CLASSES._TABLE_HEADER_CLASS,t),t},I.prototype._createTableHeaderColumn=function(e){var t=this._getColumnDefs()[e],o=document.createElement(I.DOM_ELEMENT._TH);this._styleTableHeaderColumn(e,o,!0),o.setAttribute("abbr",t.headerText),o.setAttribute(I.DOM_ATTR._TITLE,t.headerText),this._insertTableHeaderColumn(e,o);var i={columnIndex:e,headerContext:{component:this,parentElement:o}};return t.resizable===I._OPTION_ENABLED&&o.setAttribute("data-oj-resizable",I._OPTION_ENABLED),t.sortable===I._OPTION_ENABLED?(o.setAttribute("data-oj-sortable",I._OPTION_ENABLED),this._columnHeaderSortableIconRenderer(i)):this._columnHeaderDefaultRenderer(i),o},I.prototype._createTableSelectorCol=function(){var e=document.createElement(I.DOM_ELEMENT._COL);return e.classList.add(I.CSS_CLASSES._TABLE_COL_SELECTOR_CLASS),e},I.prototype._createTableCol=function(){var e=document.createElement(I.DOM_ELEMENT._COL);return e.classList.add(I.CSS_CLASSES._TABLE_COL_CLASS),e},I.prototype._createTableHeaderColumnDragImage=function(e){var t;if(1===e.length){(t=this._getTableHeaderColumn(e[0]).cloneNode(!0)).classList.remove(I.MARKER_STYLE_CLASSES._FOCUS),t.classList.remove(I.MARKER_STYLE_CLASSES._FOCUS_HIGHLIGHT),t.classList.remove(I.MARKER_STYLE_CLASSES._HOVER)}else{(t=document.createElement("th")).classList.add("oj-table-column-header-cell");var o=document.createElement(I.DOM_ELEMENT._DIV);o.classList.add(I.CSS_CLASSES._COLUMN_HEADER_CLASS),t.appendChild(o);var i=document.createElement(I.DOM_ELEMENT._DIV);i.classList.add(I.CSS_CLASSES._COLUMN_HEADER_TEXT_CLASS),i.textContent=e.length+" Items",o.appendChild(i)}return t.classList.add(I.CSS_CLASSES._COLUMN_HEADER_DRAG_IMAGE),t.style[I.CSS_PROP._POSITION]=I.CSS_VAL._ABSOLUTE,t.style[I.CSS_PROP._TOP]="0",t.style[I.CSS_PROP._LEFT]="-999em",t.style[I.CSS_PROP._ZINDEX]="-999",document.body.appendChild(t),t},I.prototype.createSubId=function(e){return[this._getRootElement().id,e].join(":")},I.prototype._createTableStatusMessage=function(){var e=this._getTableContainer(),t=document.createElement(I.DOM_ELEMENT._DIV);if(t.classList.add(I.CSS_CLASSES._TABLE_STATUS_MESSAGE_CLASS),t.style[I.CSS_PROP._DISPLAY]=I.CSS_VAL._NONE,!this._isSkeletonSupport()){var o=document.createElement(I.DOM_ELEMENT._DIV);o.classList.add(I.CSS_CLASSES._ICON_CLASS),o.classList.add(I.CSS_CLASSES._TABLE_LOADING_ICON_CLASS),o.setAttribute(I.DOM_ATTR._ARIA_LABEL,this.getTranslatedString(I._BUNDLE_KEY._MSG_FETCHING_DATA)),t.appendChild(o)}return e.appendChild(t),this._cacheDomElement(I.CSS_CLASSES._TABLE_STATUS_MESSAGE_CLASS,t),t},I.prototype._createTableWidthContainer=function(){var e=this._getTableContainer(),t=document.createElement(I.DOM_ELEMENT._DIV);return t.classList.add(I.CSS_CLASSES._TABLE_WIDTH_CONTAINER_CLASS),e.appendChild(t),this._tableWidthContainer=t,t},I.prototype._displayDragOverIndicatorColumn=function(e,t){this._getLayoutManager().displayDragOverIndicatorColumn(e,t)},I.prototype._displayDragOverIndicatorRow=function(e,t,o,i){this._removeDragOverIndicatorRow();var l=document.createElement(I.DOM_ELEMENT._TR);l.classList.add(I.CSS_CLASSES._TABLE_DATA_ROW_DRAG_INDICATOR_CLASS),"line"===o?l.classList.add("oj-table-body-row-drop-target"):null!=t&&(S(l).height(parseInt(S(t).height(),10)),i&&this._rowsDragged.forEach(function(e){e.classList.add("oj-table-row-drag-source-hide"),e.classList.remove(I.MARKER_STYLE_CLASSES._SELECTED),this._updateRowStateCellsClass(null,e,{selected:!1})}.bind(this)));var n=document.createElement(I.DOM_ELEMENT._TD),s=this._getColumnDefs().length;this._isDefaultSelectorEnabled()&&(s+=1),this._isGutterStartColumnEnabled()&&(s+=1),this._isGutterEndColumnEnabled()&&(s+=1),n.setAttribute(I.DOM_ATTR._COLSPAN,s),l.appendChild(n);var a=this._getTableBodyRow(e);null!=a?a.parentNode.insertBefore(l,a):(0===this._getTableBodyRows().length&&this._hideNoDataMessage(),this._getTableBody().appendChild(l))},I.prototype._getContextMenuElement=function(){return this._menuContainer},I.prototype._getContextMenuResizePopup=function(){var e=this._getTableUID()+"_resize_popup";if(!this._isCachedDomElement(e)){var t=document.getElementById(e);this._cacheDomElement(e,t)}return this._getCachedDomElement(e)},I.prototype._getContextMenuResizeDialog=function(){let e=this._getTableUID()+"_resize_dialog";if(!this._isCachedDomElement(e)){let t=document.getElementById(e);this._cacheDomElement(e,t)}return this._getCachedDomElement(e)},I.prototype._getElementColumnIdx=function(e){var t=this._getFirstAncestor(e,"."+I.CSS_CLASSES._TABLE_DATA_CELL_CLASS,!0);if(null!=t)return S(t.parentNode).children("."+I.CSS_CLASSES._TABLE_DATA_CELL_CLASS).index(t);var o=this._getFirstAncestor(e,"."+I.CSS_CLASSES._COLUMN_HEADER_CELL_CLASS,!0);if(null!=o)return S(o.parentNode).children("."+I.CSS_CLASSES._COLUMN_HEADER_CELL_CLASS).index(o);var i=this._getFirstAncestor(e,"."+I.CSS_CLASSES._TABLE_FOOTER_CELL_CLASS,!0);return null!=i?S(i.parentNode).children("."+I.CSS_CLASSES._TABLE_FOOTER_CELL_CLASS).index(i):null},I.prototype._getElementRowIdx=function(e){var t=this._getFirstAncestor(e,"."+I.CSS_CLASSES._TABLE_DATA_ROW_CLASS,!0);if(null!=t){var o=this._getTableBodyRows(),i=S(o).index(t);return i>-1?i:null}return null},I.prototype._getFirstAncestor=function(e,t,o){var i;if(null==e)return null;if(b.isIE()&&!Element.prototype.matches?e.msMatchesSelector(t):e.matches(t))return o&&!this._isTableOwned(e)?this._getFirstAncestor(e.parentNode,t,o):e;if(i=S(e).parents(t),o){for(var l=0;l<i.length;l++)if(this._isTableOwned(i[l]))return i[l];return null}return i.length>0?i[0]:null},I.prototype._getElementScrollLeft=function(e){return Math.abs(e.scrollLeft)},I.prototype._getTable=function(){return this.element[0]},I.prototype._getTableBody=function(){return this._getTableElementByClassName(I.CSS_CLASSES._TABLE_BODY_CLASS,!0)},I.prototype._getTableBodyScrollBuffer=function(){return this._getTableElementByClassName(I.CSS_CLASSES._TABLE_BUFFER_ROW_CLASS)},I.prototype._getTableBodyLegacyWidthBuffer=function(){return this._getTableElementByClassName(I.CSS_CLASSES._TABLE_LEGACY_WIDTH_BUFFER_ROW_CLASS)},I.prototype._getTableLegacySizer=function(){return this._getTableElementByClassName(I.CSS_CLASSES._TABLE_LEGACY_SIZER_CLASS,!0)},I.prototype._getTableBodyCell=function(e,t,o){var i=this._getTableBodyCells(e,o);return i.length>t?i[t]:null},I.prototype._getTableBodyLogicalCells=function(e,t){var o=this._getTableBodyCells(e,t);return this._getColspanLogicalElements(o)},I.prototype._getTableBodyCells=function(e,t){return t||(t=this._getTableBodyRow(e))?this._getTableElementsByClassName(t,I.CSS_CLASSES._TABLE_DATA_CELL_CLASS):[]},I.prototype._getTableBodyMessageCell=function(){var e=this._getTableBody();if(e){var t=this._getTableElementsByClassName(e,I.CSS_CLASSES._TABLE_BODY_MESSAGE_CLASS);if(t.length>0)return t[0]}return null},I.prototype._getTableBodyMessageRow=function(){var e=this._getTableBody();if(e){var t=this._getTableElementsByClassName(e,I.CSS_CLASSES._TABLE_BODY_MESSAGE_ROW_CLASS);if(t.length>0)return t[0]}return null},I.prototype._getTableNoDataRow=function(){var e=this._getTableBody();if(e){var t=this._getTableElementsByClassName(e,I.CSS_CLASSES._TABLE_NO_DATA_ROW_CLASS);if(t.length>0)return t[0]}return null},I.prototype._getRawTableBodyRow=function(e){var t=this._getTableBody();let o=this._isAddNewRowEnabled()?e+1:e;return this._isStickyLayoutEnabled()||(o+=1),t.children[o]},I.prototype._getTableBodyRow=function(e){var t=this._getTableBodyRows();return null!=e&&t.length>e?t[e]:null},I.prototype._getTableBodyRows=function(){if(!this._cachedDomTableBodyRows){var e=this._getTableBody();this._cachedDomTableBodyRows=null!=e?this._getTableElementsByClassName(e,I.CSS_CLASSES._TABLE_DATA_ROW_CLASS):[]}return this._cachedDomTableBodyRows},I.prototype._getTableBodyStickyRows=function(){if(!this._cachedDomTableBodyStickyRows){var e=this._getTableBody();this._cachedDomTableBodyStickyRows=null!=e?this._getTableElementsByClassName(e,I.CSS_CLASSES._TABLE_STICKY_ROW_CLASS):[]}return this._cachedDomTableBodyStickyRows},I.prototype._getTableTempSkeletonRow=function(){var e=this._getTableBody();return null!=e?this._getChildElementByClassName(e,I.CSS_CLASSES._TABLE_FETCH_SKELETON_ROW_CLASS):null},I.prototype._getTableBodyRowTouchSelectionAffordanceTop=function(){var e=this._getTableContainer(),t=this._getTableElementsByClassName(e,I.CSS_CLASSES._TABLE_DATA_ROW_TOUCH_SELECTION_AFFORDANCE_TOP_CLASS);return t.length>0?t[0]:null},I.prototype._getTableBodyRowTouchSelectionAffordanceBottom=function(){var e=this._getTableContainer(),t=this._getTableElementsByClassName(e,I.CSS_CLASSES._TABLE_DATA_ROW_TOUCH_SELECTION_AFFORDANCE_BOTTOM_CLASS);return t.length>0?t[0]:null},I.prototype._getTableBottomSlot=function(){return this._getTableElementByClassName(I.CSS_CLASSES._TABLE_BOTTOM_SLOT_CLASS,!0)},I.prototype._getTableContainer=function(){if(!this._isCachedDomElement(I.CSS_CLASSES._TABLE_CONTAINER_CLASS)){var e=this.element[0].parentNode;e.classList.contains(I.CSS_CLASSES._TABLE_SCROLLER_CLASS)?this._cacheDomElement(I.CSS_CLASSES._TABLE_CONTAINER_CLASS,e.parentNode):this._cacheDomElement(I.CSS_CLASSES._TABLE_CONTAINER_CLASS,e)}return this._getCachedDomElement(I.CSS_CLASSES._TABLE_CONTAINER_CLASS)},I.prototype._getTableScroller=function(){return this._getTableElementByClassName(I.CSS_CLASSES._TABLE_SCROLLER_CLASS,!0)},I.prototype._getTableFooter=function(){return this._getTableElementByClassName(I.CSS_CLASSES._TABLE_FOOTER_CLASS,!0)},I.prototype._getTableFooterCell=function(e){var t=this._getTableFooterCells();return null!=t&&t.length>e?t[e]:null},I.prototype._getTableFooterCells=function(){var e=this._getTableFooterRow(),t=null!=e?this._getTableElementsByClassName(e,I.CSS_CLASSES._TABLE_FOOTER_CELL_CLASS):null;return null!=t&&t.length>0?t:null},I.prototype._getTableFooterLogicalCells=function(){var e=this._getTableFooterCells();return e?this._getColspanLogicalElements(e):null},I.prototype._getTableFooterRow=function(){return this._getTableElementByClassName(I.CSS_CLASSES._TABLE_FOOTER_ROW_CLASS)},I.prototype._getTableHeader=function(){return this._getTableElementByClassName(I.CSS_CLASSES._TABLE_HEADER_CLASS,!0)},I.prototype._getTableHeaderColumn=function(e){var t=this._getTableHeaderColumns();return t&&t.length>e&&e>=0?t[e]:null},I.prototype._getTableCol=function(e){var t=this._getTableColGroup();if(null!=t){var o=this._getTableElementsByClassName(t,I.CSS_CLASSES._TABLE_COL_CLASS);if(o.length>0)return o[e]}return null},I.prototype._getTableHeaderColumns=function(){var e=this._getTableHeaderRow();if(null!=e){var t=this._getTableElementsByClassName(e,I.CSS_CLASSES._COLUMN_HEADER_CELL_CLASS);if(t.length>0)return t}return null},I.prototype._getTableHeaderLogicalColumns=function(){var e=this._getTableHeaderColumns();return e?this._getColspanLogicalElements(e):null},I.prototype._getTableHeaderRow=function(){return this._getTableElementByClassName(I.CSS_CLASSES._TABLE_HEADER_ROW_CLASS)},I.prototype._getPlaceHolderRow=function(){return this._getTable().getElementsByClassName(I.CSS_CLASSES._TABLE_ADD_ROW_PLACEHOLDER_CLASS)[0]},I.prototype._getPlaceHolderRowCells=function(e){var t=null!=e?e:this._getPlaceHolderRow();return null!=t?this._getTableElementsByTagName(t,I.DOM_ELEMENT._TD):[]},I.prototype._getPlaceHolderRowCell=function(e){var t=this._isDefaultSelectorEnabled()?e+1:e;this._isGutterStartColumnEnabled()&&(t+=1);var o=this._getPlaceHolderRowCells();return o.length>t&&t>=0?o[t]:null},I.prototype._getTableColGroup=function(){return this._getTableElementByClassName(I.CSS_CLASSES._TABLE_COLGROUP_CLASS,!0)},I.prototype._getTableId=function(){if(!this._tableId){var e=this._IsCustomElement()?this._getTableContainer():this._getTable();this._tableId=e.getAttribute(I.DOM_ATTR._ID)}return this._tableId},I.prototype._getTableStatusMessage=function(){return this._getTableElementByClassName(I.CSS_CLASSES._TABLE_STATUS_MESSAGE_CLASS,!0)},I.prototype._getTableUID=function(){return this._tableUID||(null!=this._getTableId()?this._tableUID=this._getTableId():this._tableUID=R.ElementUtils.getUniqueId()+"_table"),this._tableUID},I.prototype._hashCode=function(e){if(null==e)return 0;"string"!==S.type(e)&&(e=e.toString());var t=0;if(0===e.length)return t;for(var o=e.length,i=0;i<o;i++){t=(t<<5)-t+e.charCodeAt(i),t&=t}return t},I.prototype._insertTableBodyCell=function(e,t,o,i,l,n,s){if(this._setTableBodyCellAttributes(e,t,o,i,l),s)return n.appendChild(l),l;if(0===i)n.insertBefore(l,n.firstChild);else{var a=this._getTableElementsByClassName(n,I.CSS_CLASSES._TABLE_DATA_CELL_CLASS);if(a.length>=i){var r=a[i-1];r.parentNode.insertBefore(l,r.nextSibling)}else n.appendChild(l)}return l},I.prototype._insertTableBodyRow=function(e,t,o){if(null==o){var i=this._getTableBody(),l=this._getTableBodyRow(e);null!=l?i.insertBefore(t,l):this._appendElementToTableBody(t,i)}else o.appendChild(t);this._clearCachedDomRowData()},I.prototype._insertTableFooterCell=function(e,t){var o=this._getTableFooterRow(),i=this._getTableElementsByClassName(o,I.CSS_CLASSES._TABLE_FOOTER_CELL_CLASS);if(this._setTableFooterColumnAttributes(e,t),0===e)o.insertBefore(t,o.firstChild);else if(o.length>=e){var l=i[e-1];l.parentNode.insertBefore(t,l.nextSibling)}else o.appendChild(t);return t},I.prototype._insertTableHeaderColumn=function(e,t){var o=this._getTableHeaderRow(),i=this._getTableHeaderColumns();this._setTableHeaderColumnAttributes(e,t);var l=this._getTableHeaderColumn(e);if(l)S(l).replaceWith(S(t));else if(0!==e&&i&&i.length>=e){var n=i[e-1];n.parentNode.insertBefore(t,n.nextSibling)}else o.appendChild(t)},I.prototype._moveTableBodyRowTouchSelectionAffordanceTop=function(e){var t=this._getTableBodyRowTouchSelectionAffordanceTop();if(null!=t){null!=e?(S(t).data("rowIdx",e),S(t.children[0]).data("rowIdx",e)):e=S(t).data("rowIdx");var o=this._getLayoutManager().getScroller(),i=this._getTableBodyRow(e).getBoundingClientRect(),l=this._getTouchAffordanceGlassPane().getBoundingClientRect();t.style[I.CSS_PROP._TOP]=i.top-l.top-t.clientHeight/2+I.CSS_VAL._PX,t.style[I.CSS_PROP._LEFT]=o.clientWidth/2+I.CSS_VAL._PX}},I.prototype._moveTableBodyRowTouchSelectionAffordanceBottom=function(e){var t=this._getTableBodyRowTouchSelectionAffordanceBottom();if(null!=t){null!=e?(S(t).data("rowIdx",e),S(t.children[0]).data("rowIdx",e)):e=S(t).data("rowIdx");var o=this._getLayoutManager().getScroller(),i=this._getTableBodyRow(e).getBoundingClientRect(),l=this._getTouchAffordanceGlassPane().getBoundingClientRect();t.style[I.CSS_PROP._TOP]=i.top-l.top+i.height-t.clientHeight/2+I.CSS_VAL._PX,t.style[I.CSS_PROP._LEFT]=o.clientWidth/2+I.CSS_VAL._PX}},I.prototype._moveTableHeaderColumn=function(e,t,o){var i=[],l=[],n=[],s=[],a=null,r=null,_=!1;t===this._getColumnDefs().length&&(t-=1,_=!0);var h=this._getTableHeaderColumn(t),d=this._getTableFooterCell(t),u=this._getPlaceHolderRowCell(t);for(let t=0;t<e.length;t++){let o=e[t];i[t]=this._getTableHeaderColumn(o),l[t]=this._getTableFooterCell(o),this._isAddNewRowEnabled()&&(s[t]=this._getPlaceHolderRowCell(o))}for(let t=0;t<e.length;t++)null!=i[t]&&(r=i[t].getAttribute(I.DOM_ATTR._COLSPAN),null==h||null!=r&&1!==r||(_?(h.parentNode.insertBefore(i[t],h.nextSibling),h=i[t]):h.parentNode.insertBefore(i[t],h))),null!=l[t]&&(r=l[t].getAttribute(I.DOM_ATTR._COLSPAN),null==d||null!=r&&1!==r||(_?(d.parentNode.insertBefore(l[t],d.nextSibling),d=l[t]):d.parentNode.insertBefore(l[t],d))),null!=s[t]&&(r=s[t].getAttribute(I.DOM_ATTR._COLSPAN),null==u||null!=r&&1!==r||(_?(u.parentNode.insertBefore(s[t],u.nextSibling),u=s[t]):u.parentNode.insertBefore(s[t],u)));var c=this._getTableBodyRows();for(let o=0;o<c.length;o++){for(let t=0;t<e.length;t++)n[t]=this._getTableBodyCell(o,e[t],null);a=this._getTableBodyCell(o,t,null);for(let t=0;t<e.length;t++)null!=n[t]&&(r=n[t].getAttribute(I.DOM_ATTR._COLSPAN),null==a||null!=r&&1!==r||(_?(a.parentNode.insertBefore(n[t],a.nextSibling),a=n[t]):a.parentNode.insertBefore(n[t],a)))}var E=[],C=this.options.columns.length;for(let e=0;e<C;e++)E[e]=S.extend({},{},this.options.columns[e]);var T=_?t:t-1,p=[],g=[],A=[],f=e.reverse();if(!this._columnsDestMap){this._columnsDestMap=[];for(let e=0;e<E.length;e++)this._columnsDestMap[e]=e}return f.forEach(function(e){e<=T&&(T-=1),p.unshift(E.splice(e,1)[0]),g.unshift(this._columnDefArray.splice(e,1)[0]),A.unshift(this._columnsDestMap.splice(e,1)[0])}.bind(this)),E.splice(T+1,0,...p),this._columnDefArray.splice(T+1,0,...g),this._columnsDestMap.splice(T+1,0,...A),this.option("columns",E,{_context:{writeback:!0,originalEvent:o,internalSet:!0}}),this._queueTask(function(){this._getLayoutManager().notifyTableUpdate(I._UPDATE._COL_REORDER)}.bind(this)),this._columnsDestMap},I.prototype._refreshContextMenu=function(){var e=this._menuContainer;if(e)for(var t=e.querySelectorAll("[data-oj-command]"),o=0;o<t.length;o++){var i=S(t[o]).children(I.DOM_ELEMENT._A);if(0===i.length&&"OJ-OPTION"===t[o].tagName&&(i=S(t[o])),i.length>0){var l,n=t[o].getAttribute(I._DATA_OJ_COMMAND).split("-");"sort"===(n=n[n.length-1])?l=this.getTranslatedString("labelSort"):"sortAsc"===n?l=this.getTranslatedString("labelSortAsc"):"sortDsc"===n?l=this.getTranslatedString("labelSortDsc"):"resize"===n&&(l=this.getTranslatedString("labelResizeColumn")),i.contents().filter(function(){return 3===this.nodeType})[0].nodeValue=l}}},I.prototype._removeDragOverIndicatorColumn=function(){this._getLayoutManager().removeDragOverIndicatorColumn()},I.prototype._removeDragOverIndicatorRow=function(){var e,t=this._getTableBody(),o=this._getTableElementsByClassName(t,I.CSS_CLASSES._TABLE_DATA_ROW_DRAG_INDICATOR_CLASS),i=o.length;for(e=0;e<i;e++)S(o[e]).remove();0===this._getTableBodyRows().length&&this._showNoDataMessage()},I.prototype._removeTableBodyRow=function(e,t){var o;null!=(o=null!=t?t:this._getTableBodyRow(e))&&(f.subtreeDetached(o),(this._hasCellTemplate||this._hasRowTemplate)&&this._cleanTemplateNodes(o),S(o).remove(),this._clearCachedDomRowData())},I.prototype._removeAllTableBodyRows=function(){var e=this._getTableBodyRows();if(e.length>0){var t=this._getTableBody();if(null!=t){f.subtreeDetached(t);for(var o=0;o<e.length;o++)(this._hasCellTemplate||this._hasRowTemplate)&&this._cleanTemplateNodes(e[o]),S(e[o]).remove();(this._hasCellTemplate||this._hasRowTemplate)&&(this._hasCellTemplate=!1,this._hasRowTemplate=!1,this._registerDomEventListeners())}this._clearCachedDomRowData()}},I.prototype._removeTableBodyRowTouchSelectionAffordance=function(){for(var e=this._getTableContainer(),t=this._getTableElementsByClassName(e,I.CSS_CLASSES._TABLE_DATA_ROW_TOUCH_SELECTION_AFFORDANCE_TOUCH_AREA_CLASS),o=0;o<t.length;o++)S(t[o]).remove()},I.prototype._setTableBodyCellAttributes=function(e,t,o,i,l){var n=l.getAttribute(I.DOM_ATTR._ID);if(!(null!=n&&n.length>0)&&null!=this._getColumnDefs()[i]){var s=null!=t?t.toString():e.toString(),a=null==o?this._hashCode(s):o;n=this._getTableUID()+":"+a+"_"+i,l.setAttribute(I.DOM_ATTR._ID,n)}},I.prototype._setTableBodyRowAttributes=function(e,t){t[I._ROW_ITEM_EXPANDO]=e},I.prototype._setTableHeaderColumnAttributes=function(e,t){var o=this._getColumnDefs()[e];t.getAttribute(I.DOM_ATTR._ID)||t.setAttribute(I.DOM_ATTR._ID,this._getTableUID()+":"+o.id)},I.prototype._setTableFooterColumnAttributes=function(e,t){var o=this._getColumnDefs()[e];t.getAttribute(I.DOM_ATTR._ID)||t.setAttribute(I.DOM_ATTR._ID,this._getTableUID()+":"+o.id+":ftr")},I.prototype._setTableColumnCellsClass=function(e,t,o){var i,l=this._getTableBodyRows();if(l.length>0)if(null===e){var n=null,s=this._getTableBody();if(null!=(n=t?this._getTableElementsByTagName(s,I.DOM_ELEMENT._TD):this._getTableElementsByClassName(s,o))&&n.length>0){var a=n.length;for(i=0;i<a;i++)t?n[i].classList.add(o):n[i].classList.remove(o)}}else{var r=l.length;for(i=0;i<r;i++){var _=this._getTableBodyCell(i,e,null);t?_.classList.add(o):_.classList.remove(o)}}},I.prototype._setTableBodyMessage=function(e){var t=this._getTableBodyMessageCell();S(t).empty(),t.appendChild(document.createTextNode(e))},I.prototype._styleInitialTable=function(){var e=this._getTable(),t=this._getTableElementsByTagName(e,I.DOM_ELEMENT._THEAD);t=t.length>0?t[0]:null;var o=this._getTableElementsByTagName(e,I.DOM_ELEMENT._TFOOT);o=o.length>0?o[0]:null;var i=this._getTableElementsByTagName(e,I.DOM_ELEMENT._TBODY);if(i=i.length>0?i[0]:null,-1!==parseInt(this._getRootElement().getAttribute(I.DOM_ATTR._TABINDEX),10))e.setAttribute(I.DOM_ATTR._TABINDEX,"0"),this._focusable({element:e,applyHighlight:!0,setupHandlers:this._focusSetupHandlers.bind(this)});else{e.setAttribute(I.DOM_ATTR._TABINDEX,"-1");var l=function(){};this._focusSetupHandlers(l,l)}e.setAttribute(I.DOM_ATTR._ARIA_LABELLEDBY,this._getTableContainer().id),this._styleTableHeader(t),this._styleTableFooter(o),this._styleTableBody(i),this._styleTableContainer(this._getTableContainer())},I.prototype._styleTableBody=function(e){e.classList.add(I.CSS_CLASSES._TABLE_BODY_CLASS),e.setAttribute(f._OJ_CONTAINER_ATTR,this.widgetName),e.setAttribute(T._OJ_CONTEXT_ATTRIBUTE,"")},I.prototype._styleTableBodyCell=function(e,t,o){var i=this._getColumnDefs()[e];!o&&t.classList.contains(I.CSS_CLASSES._TABLE_DATA_CELL_CLASS)||(t.classList.add(I.CSS_CLASSES._TABLE_DATA_CELL_CLASS),t.classList.add(I.CSS_CLASSES._TABLE_DATE_CELL_FORM_CONTROL_CLASS));var l=t.getAttribute(I.DOM_ATTR._STYLE)||{};if(null==i||null==i.style||!o&&l===i.style||b.applyMergedInlineStyles(t,l,i.style),null==i||null==i.className||!o&&S(t).hasClass(i.className)||S(t).addClass(i.className),!this._isVerticalGridEnabled()||!o&&t.classList.contains(I.CSS_CLASSES._TABLE_VGRID_LINES_CLASS)||t.classList.add(I.CSS_CLASSES._TABLE_VGRID_LINES_CLASS),this._isStickyLayoutEnabled()){var n=null!=i?i.frozenEdge:null;n===I._OPTION_FROZEN_EDGE._START?(t.classList.add(I.CSS_CLASSES._TABLE_FROZEN_START),t.classList.remove(I.CSS_CLASSES._TABLE_FROZEN_END)):n===I._OPTION_FROZEN_EDGE._END?(t.classList.add(I.CSS_CLASSES._TABLE_FROZEN_END),t.classList.remove(I.CSS_CLASSES._TABLE_FROZEN_START)):(t.classList.remove(I.CSS_CLASSES._TABLE_FROZEN_END),t.classList.remove(I.CSS_CLASSES._TABLE_FROZEN_START))}},I.prototype._styleTableAddRowCell=function(e,t){var o=this._getColumnDefs()[e],i=null!=o?o.frozenEdge:null;i===I._OPTION_FROZEN_EDGE._START?(t.classList.add(I.CSS_CLASSES._TABLE_FROZEN_START),t.classList.remove(I.CSS_CLASSES._TABLE_FROZEN_END)):i===I._OPTION_FROZEN_EDGE._END?(t.classList.add(I.CSS_CLASSES._TABLE_FROZEN_END),t.classList.remove(I.CSS_CLASSES._TABLE_FROZEN_START)):(t.classList.remove(I.CSS_CLASSES._TABLE_FROZEN_END),t.classList.remove(I.CSS_CLASSES._TABLE_FROZEN_START)),this._isVerticalGridEnabled()&&t.classList.add(I.CSS_CLASSES._TABLE_VGRID_LINES_CLASS)},I.prototype._styleTableBodyRow=function(e,t){!t&&e.classList.contains(I.CSS_CLASSES._TABLE_DATA_ROW_CLASS)||e.classList.add(I.CSS_CLASSES._TABLE_DATA_ROW_CLASS),this._invokeRowStickyCallback(e[I._ROW_ITEM_EXPANDO])===I._CONST_ON&&e.classList.add(I.CSS_CLASSES._TABLE_STICKY_ROW_CLASS)},I.prototype._styleTableContainer=function(e){this.options.display===I._OPTION_DISPLAY._GRID?e.classList.add(I.CSS_CLASSES._TABLE_COMPACT_CLASS):e.classList.remove(I.CSS_CLASSES._TABLE_COMPACT_CLASS);var t=this.options.editMode;if(null!=t&&t!==I._OPTION_EDIT_MODE._NONE?e.classList.add(I.CSS_CLASSES._TABLE_EDIT_CLASS):e.classList.remove(I.CSS_CLASSES._TABLE_EDIT_CLASS),this._isHorizontalGridEnabled()?e.classList.add(I.CSS_CLASSES._TABLE_HGRID_CLASS):e.classList.remove(I.CSS_CLASSES._TABLE_HGRID_CLASS),this._isStickyLayoutEnabled()?e.classList.add(I.CSS_CLASSES._TABLE_STICKY_CLASS):e.classList.remove(I.CSS_CLASSES._TABLE_STICKY_CLASS),this._isAddNewRowEnabled()?e.classList.add(I.CSS_CLASSES._TABLE_ADD_ROW_CLASS):e.classList.remove(I.CSS_CLASSES._TABLE_ADD_ROW_CLASS),this._isExternalScrollEnabled()){if(e.classList.add(I.CSS_CLASSES._TABLE_EXTERNAL_SCROLL_CLASS),!this._isTableHeaderless()){var o="0";null!=this.options.scrollPolicyOptions.scrollerOffsetTop&&(o=this.options.scrollPolicyOptions.scrollerOffsetTop),this._updateHeaderTop(o)}if(!this._isTableFooterless()){var i="0";null!=this.options.scrollPolicyOptions.scrollerOffsetBottom&&(i=this.options.scrollPolicyOptions.scrollerOffsetBottom),this._updateFooterBottom(i)}}else this._isStickyLayoutEnabled()&&(e.classList.remove(I.CSS_CLASSES._TABLE_EXTERNAL_SCROLL_CLASS),this._isTableHeaderless()||this._updateHeaderTop(""),this._isTableFooterless()||this._updateFooterBottom(""));this._getRowSelectionMode()===I._OPTION_SELECTION_MODES._MULTIPLE?e.classList.add(I.CSS_CLASSES._TABLE_MULTI_ROW_SELECT_CLASS):e.classList.remove(I.CSS_CLASSES._TABLE_MULTI_ROW_SELECT_CLASS)},I.prototype._styleTableFooter=function(e){if(e){e.classList.add(I.CSS_CLASSES._TABLE_FOOTER_CLASS);var t=this._getTableElementsByTagName(e,I.DOM_ELEMENT._TR)[0];t.classList.add(I.CSS_CLASSES._TABLE_FOOTER_ROW_CLASS),t.setAttribute(T._OJ_CONTEXT_ATTRIBUTE,"")}},I.prototype._styleTableFooterCell=function(e,t){var o=this._getColumnDefs()[e],i=t.getAttribute(I.DOM_ATTR._STYLE)||{};null!=o.footerStyle&&i!==o.footerStyle&&b.applyMergedInlineStyles(t,i,o.footerStyle),t.classList.contains(I.CSS_CLASSES._TABLE_FOOTER_CELL_CLASS)||t.classList.add(I.CSS_CLASSES._TABLE_FOOTER_CELL_CLASS),this._isVerticalGridEnabled()&&!t.classList.contains(I.CSS_CLASSES._TABLE_VGRID_LINES_CLASS)&&t.classList.add(I.CSS_CLASSES._TABLE_VGRID_LINES_CLASS),o.footerClassName&&S(t).addClass(o.footerClassName),this._isStickyLayoutEnabled()&&(o.frozenEdge===I._OPTION_FROZEN_EDGE._START?(t.classList.add(I.CSS_CLASSES._TABLE_FROZEN_START),t.classList.remove(I.CSS_CLASSES._TABLE_FROZEN_END)):o.frozenEdge===I._OPTION_FROZEN_EDGE._END?(t.classList.add(I.CSS_CLASSES._TABLE_FROZEN_END),t.classList.remove(I.CSS_CLASSES._TABLE_FROZEN_START)):(t.classList.remove(I.CSS_CLASSES._TABLE_FROZEN_END),t.classList.remove(I.CSS_CLASSES._TABLE_FROZEN_START)))},I.prototype._styleTableHeader=function(e){if(e){e.classList.add(I.CSS_CLASSES._TABLE_HEADER_CLASS),e.style[I.CSS_PROP._DISPLAY]="table-header-group";var t=this._getTableElementsByTagName(e,I.DOM_ELEMENT._TR)[0];t.classList.add(I.CSS_CLASSES._TABLE_HEADER_ROW_CLASS),t.style[I.CSS_PROP._POSITION]=I.CSS_VAL._RELATIVE,t.setAttribute(T._OJ_CONTEXT_ATTRIBUTE,"")}},I.prototype._styleTableHeaderColumn=function(e,t,o){var i=this._getColumnDefs()[e];!o&&t.classList.contains(I.CSS_CLASSES._COLUMN_HEADER_CELL_CLASS)||t.classList.add(I.CSS_CLASSES._COLUMN_HEADER_CELL_CLASS),i.sortable===I._OPTION_ENABLED&&t.classList.add(I.CSS_CLASSES._TABLE_SORT_CLASS),!0===i.showRequired&&this._isStickyLayoutEnabled()&&t.classList.add(I.CSS_CLASSES._TABLE_SHOW_REQUIRED_CLASS),this._isVerticalGridEnabled()&&(!o&&t.classList.contains(I.CSS_CLASSES._TABLE_VGRID_LINES_CLASS)||t.classList.add(I.CSS_CLASSES._TABLE_VGRID_LINES_CLASS));var l=t.getAttribute(I.DOM_ATTR._STYLE)||{};null==i.headerStyle||!o&&l===i.headerStyle||b.applyMergedInlineStyles(t,l,i.headerStyle),null==i.headerClassName||!o&&S(t).hasClass(i.headerClassName)||S(t).addClass(i.headerClassName),this._isStickyLayoutEnabled()&&(i.frozenEdge===I._OPTION_FROZEN_EDGE._START?(t.classList.add(I.CSS_CLASSES._TABLE_FROZEN_START),t.classList.remove(I.CSS_CLASSES._TABLE_FROZEN_END)):i.frozenEdge===I._OPTION_FROZEN_EDGE._END?(t.classList.add(I.CSS_CLASSES._TABLE_FROZEN_END),t.classList.remove(I.CSS_CLASSES._TABLE_FROZEN_START)):(t.classList.remove(I.CSS_CLASSES._TABLE_FROZEN_END),t.classList.remove(I.CSS_CLASSES._TABLE_FROZEN_START)))},I.prototype._getColspanLogicalElements=function(e){for(var t=0,o=[],i=e.length,l=0;l<i;l++){var n=e[l].getAttribute(I.DOM_ATTR._COLSPAN);if(null!=n){n=parseInt(n,10);for(var s=0;s<n;s++)o[t+s]=e[l];t+=n}else o[t]=e[l],t+=1}return o},I.prototype._isHorizontalGridEnabled=function(){if(this.options.horizontalGridVisible===I._OPTION_ENABLED)return!0;if(this.options.horizontalGridVisible===I._OPTION_AUTO){if(this.options.display===I._OPTION_DISPLAY._GRID)return!0;if("enabled"===this._getDefaultOptions().horizontalGridVisible)return!0}return!1},I.prototype._isSelectAllControlVisible=function(){return!(!this._isDefaultSelectorEnabled()||"hidden"===this.options.selectAllControl)},I.prototype._isVerticalGridEnabled=function(){return this.options.verticalGridVisible===I._OPTION_ENABLED||this.options.verticalGridVisible===I._OPTION_AUTO&&this.options.display===I._OPTION_DISPLAY._GRID},I.prototype._refreshTouchAffordanceGlassPanePosition=function(){var e=this._getTouchAffordanceGlassPane();if(e){var t=this._getLayoutManager().getScroller().getBoundingClientRect(),o=this._getTableContainer().getBoundingClientRect();e.style[I.CSS_PROP._TOP]=t.top-o.top+I.CSS_VAL._PX,e.style[I.CSS_PROP._BOTTOM]=t.bottom-o.bottom+I.CSS_VAL._PX,this._moveTableBodyRowTouchSelectionAffordanceTop(),this._moveTableBodyRowTouchSelectionAffordanceBottom()}},I.prototype._refreshTableStatusPosition=function(e){var t=this._getTableContainer(),o=t.clientHeight,i=this._getTableStatusMessage(),l=0,n=o,s=this._getTableHeader();if(null!=s){var a=s.offsetHeight;l=a,n-=a}var r=this._getTableFooter();null!=r&&(n-=r.offsetHeight);var _=this._getTableBottomSlot();if(null!=_&&(n-=_.offsetHeight),this._isSkeletonSupport()){var h=0,d=this._getDefaultSkeletonDimension();d.width>0&&d.height>0&&(h=Math.max(1,Math.ceil(n/d.height)));for(var u=0;u<h;u++)i.appendChild(this._createSkeletonRow());this._skeletonFadeInEndListener=function(){i.classList.remove(I.CSS_CLASSES._ANIMATION_SKELETON_FADE_IN_CLASS),i.querySelectorAll(".oj-table-skeleton").forEach(function(e){e.classList.add("oj-animation-skeleton")}),i.removeEventListener("animationend",this._skeletonFadeInEndListener)}.bind(this),i.addEventListener("animationend",this._skeletonFadeInEndListener),i.classList.add(I.CSS_CLASSES._ANIMATION_SKELETON_FADE_IN_CLASS)}else n<=40&&(l=0,n=o);if(i.style[I.CSS_PROP._TOP]=l+I.CSS_VAL._PX,i.style[I.CSS_PROP._HEIGHT]=n+I.CSS_VAL._PX,i.style[I.CSS_PROP._WIDTH]=t.clientWidth+I.CSS_VAL._PX,e&&(i.style[I.CSS_PROP._DISPLAY]=I.CSS_VAL._INLINE,this._statusMessageShown=!0),!this._isSkeletonSupport()){var c=i.children[0];c.style[I.CSS_PROP._TOP]=(n-c.offsetHeight)/2+I.CSS_VAL._PX}},I.prototype._createSkeletonRow=function(){var e=document.createElement("div");e.className=I.CSS_CLASSES._TABLE_SKELETON_CONTAINER_CLASS;var t=document.createElement("div");return t.className=I.CSS_CLASSES._TABLE_SKELETON_CLASS,e.appendChild(t),e},I.prototype._getDefaultSkeletonDimension=function(){if(null==this._defaultSkeletonDim){var e=this._getTableContainer(),t=this._createSkeletonRow();t.style.visibility="hidden",t.style.display="block",e.appendChild(t);var o={width:t.offsetWidth,height:t.offsetHeight};return e.removeChild(t),o.height>0&&o.width>0&&(this._defaultSkeletonDim=o),o}return this._defaultSkeletonDim},I.prototype._cacheDomElement=function(e,t){this._domCache||(this._domCache={}),this._domCache[e]=t},I.prototype._clearDomCache=function(e){e&&this._domCache?delete this._domCache[e]:this._domCache={}},I.prototype._getCachedDomElement=function(e){return this._domCache?this._domCache[e]:null},I.prototype._isCachedDomElement=function(e){return this._domCache||(this._domCache={}),-1!==Object.keys(this._domCache).indexOf(e)},I.prototype._getTableElementByClassName=function(e,t){if(!this._isCachedDomElement(e)){var o=this._getTableContainer();if(o)if(this._cacheDomElement(e,null),t){if(this._cacheDomElement(e,this._getChildElementByClassName(o,e)),null==this._getCachedDomElement(e)){var i=this._getTable();this._cacheDomElement(e,this._getChildElementByClassName(i,e))}}else{var l=this._getTableElementsByClassName(o,e);l.length>0&&this._cacheDomElement(e,l[0])}}return this._getCachedDomElement(e)},I.prototype._getChildElementByClassName=function(e,t){if(null!=e.childNodes&&e.childNodes.length>0)for(var o=0;o<e.childNodes.length;o++)if(null!=e.childNodes[o].classList&&e.childNodes[o].classList.contains(t))return e.childNodes[o];return null},I.prototype._getTableElementsByClassName=function(e,t,o){var i=e.getElementsByClassName(t);return this._filterTableOwnedElements(i,o?e:null)},I.prototype._getTableElementsByTagName=function(e,t,o){var i=e.getElementsByTagName(t);return this._filterTableOwnedElements(i,o?e:null)},I.prototype._tableQuerySelectorAll=function(e,t,o){var i=e.querySelectorAll(t);return this._filterTableOwnedElements(i,o?e:null)},I.prototype._filterTableOwnedElements=function(e,t){var o,i;if(t){o=t;for(var l=t.getElementsByTagName(I.DOM_ELEMENT._TABLE),n=0;n<l.length;n++)if(l[n].parentNode===t||l[n].parentNode.parentNode===t){i=l[n];break}}else o=this._getTableContainer(),i=this._getTable();return Array.prototype.filter.call(e,function(e){return this._isTableOwned(e,o,i)}.bind(this))},I.prototype._isTableOwned=function(e,t,o){var i=t||this._getTableContainer(),l=t?o:this._getTable();if(i){if(l){var n=this._getFirstAncestor(e,l.tagName);if(n===l)return!0;if(n)return!1}var s=this._getFirstAncestor(e,"."+I.CSS_CLASSES._TABLE_CONTAINER_CLASS);if(s===i)return!0;if(s)return!1;if(!i.contains(e))return!0}return!1},I.prototype._focusSetupHandlers=function(e,t){this._setFocusInHandler(e),this._setFocusOutHandler(t)},I.prototype._getSortIconContainer=function(e){return this._getTableElementsByClassName(e,I.CSS_CLASSES._TABLE_SORT_ICON_CONTAINER_CLASS)[0]},I.prototype._getSortIcon=function(e){var t=this._getSortIconContainer(e);return null!=t?t.firstChild:null},I.prototype._getTableBodySelectorCell=function(e){if(null!=e){var t=this._getTableElementsByClassName(e,I.CSS_CLASSES._TABLE_SELECTOR_CELL);if(t.length>0)return t[0]}return null},I.prototype._getTableSelectorColumn=function(){var e=this._getTableHeaderRow();if(null!=e){var t=this._getTableElementsByClassName(e,I.CSS_CLASSES._COLUMN_HEADER_SELECTOR_CELL_CLASS);if(t.length>0)return t[0]}return null},I.prototype._getTableFooterSelectorCell=function(){var e=this._getTableFooterRow();if(null!=e){var t=this._getTableElementsByClassName(e,I.CSS_CLASSES._TABLE_FOOTER_SELECTOR_CELL_CLASS);if(t.length>0)return t[0]}return null},I.prototype._isGutterStartColumnEnabled=function(){if(null==this._isGutterStartColumnEnabledCache)if(this.options.display!==I._OPTION_DISPLAY._GRID&&this._isStickyLayoutEnabled()){const e=this._getRootElement();this._isGutterStartColumnEnabledCache=window.getComputedStyle(e).getPropertyValue("--oj-core-gutter-start").length>0}else this._isGutterStartColumnEnabledCache=!1;return this._isGutterStartColumnEnabledCache},I.prototype._isGutterEndColumnEnabled=function(){if(null==this._isGutterEndColumnEnabledCache)if(this.options.display!==I._OPTION_DISPLAY._GRID&&this._isStickyLayoutEnabled()){const e=this._getRootElement();this._isGutterEndColumnEnabledCache=window.getComputedStyle(e).getPropertyValue("--oj-core-gutter-end").length>0}else this._isGutterEndColumnEnabledCache=!1;return this._isGutterEndColumnEnabledCache},I.prototype._getTableGutterWidth=function(e){let t="start"===e?this._gutterStartWidth:this._gutterEndWidth;if(null==t||0===t){let o=this._getTableGutterCell("header",e);if(null==o&&(o=this._getTableGutterCell("body",e,this._getTableBodyRow(0))),null==o)return 0;t=o.getBoundingClientRect().width,"start"===e?this._gutterStartWidth=t:this._gutterEndWidth=t}return t},I.prototype._createTableGutterCol=function(){let e=document.createElement(I.DOM_ELEMENT._COL);return e.classList.add(I.CSS_CLASSES._TABLE_COL_GUTTER_CLASS),e},I.prototype._createTableGutterCell=function(e,t){let o,i="header"===e?I.DOM_ELEMENT._TH:I.DOM_ELEMENT._TD,l=document.createElement(i);return o="header"===e?"start"===t?I.CSS_CLASSES._TABLE_GUTTER_START_HEADER_CELL:I.CSS_CLASSES._TABLE_GUTTER_END_HEADER_CELL:"footer"===e?"start"===t?I.CSS_CLASSES._TABLE_GUTTER_START_FOOTER_CELL:I.CSS_CLASSES._TABLE_GUTTER_END_FOOTER_CELL:"start"===t?I.CSS_CLASSES._TABLE_GUTTER_START_BODY_CELL:I.CSS_CLASSES._TABLE_GUTTER_END_BODY_CELL,l.classList.add(o),"start"===t?l.classList.add(I.CSS_CLASSES._TABLE_FROZEN_START):l.classList.add(I.CSS_CLASSES._TABLE_FROZEN_END),l},I.prototype._getTableGutterCell=function(e,t,o){let i;if("header"===e?(o=this._getTableHeaderRow(),i="start"===t?I.CSS_CLASSES._TABLE_GUTTER_START_HEADER_CELL:I.CSS_CLASSES._TABLE_GUTTER_END_HEADER_CELL):"footer"===e?(o=this._getTableFooterRow(),i="start"===t?I.CSS_CLASSES._TABLE_GUTTER_START_FOOTER_CELL:I.CSS_CLASSES._TABLE_GUTTER_END_FOOTER_CELL):i="start"===t?I.CSS_CLASSES._TABLE_GUTTER_START_BODY_CELL:I.CSS_CLASSES._TABLE_GUTTER_END_BODY_CELL,null!=o){let e=this._getTableElementsByClassName(o,i);if(e.length>0)return e[0]}return null},I.CSS_CLASSES={_OPTION_DEFAULTS_CLASS:"oj-table-option-defaults",_TABLE_CONTAINER_CLASS:"oj-table-container",_TABLE_SCROLLER_CLASS:"oj-table-scroller",_TABLE_EXTERNAL_SCROLL_CLASS:"oj-table-external-scroll",_TABLE_CLASS:"oj-table",_TABLE_STICKY_CLASS:"oj-table-sticky",_TABLE_STRETCH_CLASS:"oj-table-stretch",_TABLE_COMPACT_CLASS:"oj-table-grid-display",_TABLE_HGRID_CLASS:"oj-table-horizontal-grid",_TABLE_EDIT_CLASS:"oj-table-editable",_TABLE_MULTI_ROW_SELECT_CLASS:"oj-table-multiple-row-selection",_TABLE_SCROLL_VERTICAL_CLASS:"oj-table-scroll-vertical",_TABLE_SCROLL_HORIZONTAL_CLASS:"oj-table-scroll-horizontal",_TABLE_SORT_CLASS:"oj-table-sort",_TABLE_SHOW_REQUIRED_CLASS:"oj-table-show-required",_TABLE_ELEMENT_CLASS:"oj-table-element",_TABLE_FOOTER_CLASS:"oj-table-footer",_TABLE_FOOTER_ROW_CLASS:"oj-table-footer-row",_TABLE_HEADER_CLASS:"oj-table-header",_TABLE_HEADER_ROW_CLASS:"oj-table-header-row",_TABLE_HEADER_SELECTOR_CLASS:"oj-table-header-selector",_TABLE_COLGROUP_CLASS:"oj-table-colgroup",_TABLE_COL_GUTTER_CLASS:"oj-table-gutter-col",_TABLE_COL_SELECTOR_CLASS:"oj-table-col-selector",_TABLE_COL_CLASS:"oj-table-col",_TABLE_BOTTOM_SLOT_CLASS:"oj-table-slot-bottom",_TABLE_SORT_ICON_CONTAINER_CLASS:"oj-table-sort-icon-container",_COLUMN_HEADER_CELL_CLASS:"oj-table-column-header-cell",_TABLE_HEADER_WRAP_TEXT_CLASS:"oj-table-header-cell-wrap-text",_COLUMN_HEADER_SELECTOR_CELL_CLASS:"oj-table-column-header-selector-cell",_COLUMN_HEADER_DROP_EMPTY_CELL_CLASS:"oj-table-column-header-drop-empty-cell",_COLUMN_HEADER_CLASS:"oj-table-column-header",_COLUMN_CUSTOM_HEADER_CLASS:"oj-table-custom-header",_COLUMN_HEADER_TEXT_CLASS:"oj-table-column-header-text",_COLUMN_HEADER_ASC_ICON_CLASS:"oj-table-column-header-asc-icon",_COLUMN_HEADER_DSC_ICON_CLASS:"oj-table-column-header-dsc-icon",_COLUMN_HEADER_SHOW_REQUIRED_ICON_CLASS:"oj-table-column-header-show-required-icon",_COLUMN_HEADER_DEFAULT_SORT_ICON_CLASS:"oj-table-column-header-default-sort-icon",_COLUMN_HEADER_DRAG_INDICATOR_BEFORE_CLASS:"oj-table-column-header-drag-indicator-before",_COLUMN_HEADER_DRAG_INDICATOR_AFTER_CLASS:"oj-table-column-header-drag-indicator-after",_COLUMN_HEADER_DRAG_IMAGE:"oj-table-column-header-cell-drag-image",_COLUMN_HEADER_RESIZING_CLASS:"oj-table-column-header-resizing",_COLUMN_HEADER_RESIZE_INDICATOR_CLASS:"oj-table-column-header-resize-indicator",_COLUMN_RESIZE_INDICATOR_CLASS:"oj-table-column-resize-indicator",_COLUMN_DROP_INDICATOR_CLASS:"oj-table-column-drop-indicator",_TABLE_BODY_CLASS:"oj-table-body",_TABLE_BUFFER_ROW_CLASS:"oj-table-body-scroll-buffer",_TABLE_LEGACY_WIDTH_BUFFER_ROW_CLASS:"oj-table-legacy-width-buffer",_TABLE_LEGACY_WIDTH_BUFFER_CELL_CLASS:"oj-table-legacy-width-buffer-cell",_TABLE_DATA_ROW_CLASS:"oj-table-body-row",_TABLE_STICKY_ROW_CLASS:"oj-table-sticky-row",_TABLE_STUCK_ROW_CLASS:"oj-table-stuck-row",_TABLE_DATA_ROW_DRAG_INDICATOR_CLASS:"oj-table-body-row-drag-indicator",_TABLE_TOUCH_AFFORDANCE_GLASS_PANE_CLASS:"oj-table-touch-affordance-glass-pane",_TABLE_DATA_ROW_TOUCH_SELECTION_AFFORDANCE_TOP_CLASS:"oj-table-body-row-touch-selection-affordance-top",_TABLE_DATA_ROW_TOUCH_SELECTION_AFFORDANCE_BOTTOM_CLASS:"oj-table-body-row-touch-selection-affordance-bottom",_TABLE_DATA_ROW_TOUCH_SELECTION_AFFORDANCE_TOP_ICON_CLASS:"oj-table-body-row-touch-selection-affordance-top-icon",_TABLE_DATA_ROW_TOUCH_SELECTION_AFFORDANCE_BOTTOM_ICON_CLASS:"oj-table-body-row-touch-selection-affordance-bottom-icon",_TABLE_DATA_ROW_TOUCH_SELECTION_AFFORDANCE_TOUCH_AREA_CLASS:"oj-table-body-row-touch-selection-affordance-touch-area",_TABLE_DATA_ROW_EDIT_CLASS:"oj-table-body-row-edit",_TABLE_DATA_ROW_SELECTOR_CLASS:"oj-table-body-row-selector",_TABLE_SELECTOR_CELL:"oj-table-selector-cell",_TABLE_DATA_CURRENT_ROW_CLASS:"oj-table-body-current-row",_TABLE_ACTIVE_ELEMENT_CLASS:"oj-table-active-element",_TABLE_DATA_CELL_CLASS:"oj-table-data-cell",_TABLE_DATA_CELL_EDIT_CLASS:"oj-table-data-cell-edit",_TABLE_DATE_CELL_FORM_CONTROL_CLASS:"oj-form-control-inherit",_TABLE_VGRID_LINES_CLASS:"oj-table-vgrid-lines",_TABLE_FOOTER_CELL_CLASS:"oj-table-footer-cell",_TABLE_FOOTER_SELECTOR_CELL_CLASS:"oj-table-footer-selector-cell",_TABLE_FOOTER_DROP_EMPTY_CELL_CLASS:"oj-table-footer-drop-empty-cell",_TABLE_STATUS_ACC_NOTIFICATION_CLASS:"oj-table-status-acc-notification",_TABLE_STATUS_MESSAGE_CLASS:"oj-table-status-message",_TABLE_STATUS_MESSAGE_TEXT_CLASS:"oj-table-status-message-text",_TABLE_ACC_CONTEXT_INFO_CLASS:"oj-table-acc-context-info",_TABLE_ACC_STATE_INFO_CLASS:"oj-table-acc-state-info",_TABLE_ACC_ROW_STATE_INFO_CLASS:"oj-table-acc-row-state-info",_TABLE_WIDTH_CONTAINER_CLASS:"oj-table-width-container",_TABLE_LOADING_ICON_CLASS:"oj-table-loading-icon",_TABLE_BODY_MESSAGE_CLASS:"oj-table-body-message",_TABLE_BODY_MESSAGE_ROW_CLASS:"oj-table-body-message-row",_TABLE_NO_DATA_CONTAINER_CLASS:"oj-table-no-data-container",_TABLE_NO_DATA_ROW_CLASS:"oj-table-no-data-row",_TABLE_FETCH_SKELETON_ROW_CLASS:"oj-table-fetch-skeleton-row",_TABLE_SKELETON_CELL_CLASS:"oj-table-skeleton-cell",_TABLE_SKELETON_CONTAINER_CLASS:"oj-table-skeleton-container",_TABLE_SKELETON_CLASS:"oj-table-skeleton",_TABLE_ADD_ROW_CLASS:"oj-table-add-row",_TABLE_ADD_ROW_PLACEHOLDER_CLASS:"oj-table-add-row-placeholder",_TABLE_HIDDEN_CELL_CLASS:"oj-table-hidden-cell",_TABLE_FROZEN_START:"oj-table-frozen-start",_TABLE_FROZEN_END:"oj-table-frozen-end",_TABLE_FROZEN_EDGE:"oj-table-frozen-edge",_TABLE_GUTTER_START_HEADER_CELL:"oj-table-gutter-start-header-cell",_TABLE_GUTTER_END_HEADER_CELL:"oj-table-gutter-end-header-cell",_TABLE_GUTTER_START_BODY_CELL:"oj-table-gutter-start-body-cell",_TABLE_GUTTER_END_BODY_CELL:"oj-table-gutter-end-body-cell",_TABLE_GUTTER_START_FOOTER_CELL:"oj-table-gutter-start-footer-cell",_TABLE_GUTTER_END_FOOTER_CELL:"oj-table-gutter-end-footer-cell",_TABLE_LEGACY_SIZER_CLASS:"oj-table-legacy-sizer",_TABLE_LEGACY_SCROLL_CLASS:"oj-table-legacy-scroll",_TABLE_RESIZE_DIALOG_MOBILE_CLASS:"oj-table-resize-dialog-mobile",_BUTTON_SMALL_CLASS:"oj-button-sm",_SMALL_HOR_MARGIN_CLASS:"oj-sm-margin-2x-horizontal",_SMALL_6_CLASS:"oj-sm-6",_ICON_CLASS:"oj-icon",_WIDGET_ICON_CLASS:"oj-component-icon",_HIDDEN_CONTENT_ACC_CLASS:"oj-helper-hidden-accessible",_TEXT_ALIGN_END:"oj-helper-text-align-end",_ANIMATION_SKELETON_FADE_IN_CLASS:"oj-animation-skeleton-fade-in"},I.CSS_PROP={_DISPLAY:"display",_VISIBILITY:"visibility",_POSITION:"position",_HEIGHT:"height",_WIDTH:"width",_TOP:"top",_BOTTOM:"bottom",_LEFT:"left",_RIGHT:"right",_PADDING_TOP:"padding-top",_PADDING_BOTTOM:"padding-bottom",_PADDING_LEFT:"padding-left",_PADDING_RIGHT:"padding-right",_OVERFLOW:"overflow",_OVERFLOW_X:"overflow-x",_OVERFLOW_Y:"overflow-y",_MIN_WIDTH:"min-width",_MAX_WIDTH:"max-width",_MIN_HEIGHT:"min-height",_FLOAT:"float",_BORDER_TOP:"border-top",_BORDER_TOP_WIDTH:"border-top-width",_BORDER_BOTTOM_WIDTH:"border-bottom-width",_BORDER_LEFT_WIDTH:"border-left-width",_BORDER_RIGHT_WIDTH:"border-right-width",_BORDER_COLOR:"border-color",_MARGIN_BOTTOM:"margin-bottom",_VERTICAL_ALIGN:"vertical-align",_CURSOR:"cursor",_ZINDEX:"z-index",_BACKGROUND_COLOR:"background-color",_BOX_SIZING:"box-sizing"},I.CSS_VAL={_NONE:"none",_BLOCK:"block",_INLINE_BLOCK:"inline-block",_RELATIVE:"relative",_ABSOLUTE:"absolute",_INLINE:"inline",_AUTO:"auto",_HIDDEN:"hidden",_SCROLL:"scroll",_VISIBLE:"visible",_LEFT:"left",_PX:"px",_MIDDLE:"middle",_MOVE:"move",_FIXED:"fixed",_TRANSPARENT:"transparent",_BORDER_BOX:"border-box",_COL_RESIZE:"col-resize"},I.DOM_ATTR={_STYLE:"style",_TABINDEX:"tabindex",_TYPE:"type",_ID:"id",_TITLE:"title",_HREF:"href",_COLSPAN:"colspan",_DRAGGABLE:"draggable",_ROLE:"role",_ARIA_LABEL:"aria-label",_ARIA_LABELLEDBY:"aria-labelledby",_ARIA_HIDDEN:"aria-hidden"},I.DOM_ELEMENT={_DIV:"div",_A:"a",_TR:"tr",_TD:"td",_TH:"th",_TABLE:"table",_TBODY:"tbody",_THEAD:"thead",_TFOOT:"tfoot",_INPUT:"input",_UL:"ul",_SPAN:"span",_BUTTON:"button",_LABEL:"label",_COLGROUP:"colgroup",_COL:"col"},I.MARKER_STYLE_CLASSES={_WIDGET:"oj-component",_ACTIVE:"oj-active",_CLICKABLE_ICON:"oj-clickable-icon-nocontext",_DISABLED:"oj-disabled",_ENABLED:"oj-enabled",_FOCUS:"oj-focus",_FOCUS_HIGHLIGHT:"oj-focus-highlight",_HOVER:"oj-hover",_SELECTED:"oj-selected",_DEFAULT:"oj-default",_WARNING:"oj-warning",_DRAGGABLE:"oj-draggable",_DRAG:"oj-drag",_HIDE_VERTICAL_SCROLLBAR:"oj-table-hide-vertical-scrollbar"},I.DEFAULT_ROW_HEIGHT_GUESS=50,I.prototype._clearOpenPopupListeners=function(){null!=this._openPopup&&(this._openPopup.removeEventListener("focusin",this._handlePopupFocusinListener),this._openPopup.removeEventListener("focusout",this._handlePopupFocusoutListener),this._openPopup=null),this._handlePopupFocusinListener=null,this._handlePopupFocusoutListener=null},I.prototype._handlePopupFocusout=function(e){this._handleFocusout(e,!0)},I.prototype._handlePopupFocusin=function(e){this._handleFocusin(e,!0)},I.prototype._handleFocusout=function(e,t){this._clearFocusoutTimeout();var o=this._getTable();if(!t){this._clearOpenPopupListeners();var i=v.getLogicalChildPopup(o);if(null!=i)return this._openPopup=i,this._handlePopupFocusinListener=this._handlePopupFocusin.bind(this),this._handlePopupFocusoutListener=this._handlePopupFocusout.bind(this),i.addEventListener("focusin",this._handlePopupFocusinListener),void i.addEventListener("focusout",this._handlePopupFocusoutListener)}this._setFocusoutBusyState(),this._focusoutTimeout=setTimeout(function(){this._isTableTab=null,this._tempFFFocus=null,this._clearOpenPopupListeners(),this._focusOutHandler(S(o)),this._focusOutHandler(S(this._getTableContainer())),this._clearKeyboardKeys(),this._unhighlightActive(),this._getLayoutManager().handleFocusout(),this._setTableEditable(!1,!1,0,!0,e,!0),this._cleanAccStatus(),this._focusEditCell&&(this._focusEditCell.classList.remove(I.CSS_CLASSES._TABLE_DATA_CELL_EDIT_CLASS),this._focusEditCell=null),this._setTableActionableMode(!1,!0),this._clearFocusoutBusyState()}.bind(this),100)},I.prototype._handleFocusin=function(e,t){if(this._clearFocusoutTimeout(),this._clearFocusoutBusyState(),!t){this._clearOpenPopupListeners();var o=this._getTable(),i=this._getTableBody(),l=this._getTableContainer();if(this._focusInHandler(S(o)),this._focusInHandler(S(l)),e.target===i&&!this._tempFFFocus&&b.isFirefox())setTimeout(function(){o.focus()},0);else if(S(o).has(e.target).length>0){var n=this._getActiveRowIndex(),s=this._getActiveHeaderIndex(),a=this._getPlaceHolderRow();if(null!=a&&S(a).has(e.target).length>0){if(this._setActiveAddRow(),v.isActionableElement(e.target)&&(this._setTableActionableMode(!0,!0),this._isTableTab)){var r=this._getPlaceHolderRowCells();for(let t=0;t<r.length;t++){const o=r[t];if(S(o).has(e.target).length>0){let e=t;this._isDefaultSelectorEnabled()&&(e-=1),this._isGutterStartColumnEnabled()&&(e-=1),this._scrollColumnIntoViewport(e);break}}}}else if(this._isTableEditMode())if(this._isNodeEditable(e.target)||this._isNodeClickable(e.target)||this._isTableActionableMode()||this._hasEditableRow()||this._tempFFFocus||null!=n||null!=s){if(this._isTableTab&&null!=n){var _=this._getTableBodyCells(n);for(let t=0;t<_.length;t++){const o=_[t];if(S(o).has(e.target).length>0){this._scrollColumnIntoViewport(t);break}}}}else setTimeout(function(){o.focus()},0);else if(v.isActionableElement(e.target)){this._accActionFocus=!0;var h=this._getActiveObjectFromActionableChild(e.target);null!=h&&(h.type===I.ACTIVE_ELEMENT_TYPES._DATA_ROW?this._setActiveRow(h.index,e,!0,!0):h.type===I.ACTIVE_ELEMENT_TYPES._HEADER?this._setActiveHeader(h.index,e,!0):h.type===I.ACTIVE_ELEMENT_TYPES._FOOTER?this._setActiveFooter(h.index,e,!0):h.type===I.ACTIVE_ELEMENT_TYPES._NO_DATA?this._setActiveNoData():h.type===I.ACTIVE_ELEMENT_TYPES._ADD_ROW&&this._setActiveAddRow(),this._setTableActionableMode(!0,!0))}}else this._setTableActionableMode(!1,!0)}this._isTableTab=null},I.prototype._events={focusout:function(e){this._handleFocusout(e)},focus:function(e){this._isExternalScrollEnabled()&&(this._browserAutoScrollInitPos=this._getCurrentVerticalScrollPosition().y,this._browserAutoScrollTimeout=setTimeout(function(){this._browserAutoScrollInitPos=null}.bind(this),0)),this._syncActiveElement(e,!0)},focusin:function(e){this._handleFocusin(e)},"focus .oj-table-data-cell":function(e){var t=this._getEventTargetElement(e);this._getElementRowIdx(t)===this._getEditableRowIdx()&&(this._focusEditCell&&this._focusEditCell!==t&&this._focusEditCell.classList.contains(I.CSS_CLASSES._TABLE_DATA_CELL_EDIT_CLASS)&&this._focusEditCell.classList.remove(I.CSS_CLASSES._TABLE_DATA_CELL_EDIT_CLASS),t.classList.add(I.CSS_CLASSES._TABLE_DATA_CELL_EDIT_CLASS),this._focusEditCell=t)},keydown:function(e){var t=e.key||e.keyCode;this._addKeyboardKey(t);var o=this._getKeyboardKeys()[0];if(!this._isEditPending&&(b.isEscapeKeyEvent(o)||b.isEnterKeyEvent(o)||b.isF2KeyEvent(o)||b.isTabKeyEvent(o)||!(this._isNodeEditable(e.target)||null!=this._getTableFooter()&&S(this._getTableFooter()).has(e.target).length>0))&&(1===this._getKeyboardKeys().length||2===this._getKeyboardKeys().length&&e[I._KEYBOARD_CODES._MODIFIER_SHIFT])){(this._isKeyPressMatch(b.isArrowUpKeyEvent)||this._isKeyPressMatch(b.isArrowDownKeyEvent)||this._isKeyPressMatch(b.isArrowLeftKeyEvent)||this._isKeyPressMatch(b.isArrowRightKeyEvent)||this._isKeyPressMatch(b.isHomeKeyEvent)||this._isKeyPressMatch(b.isEndKeyEvent))&&(e.preventDefault(),e.stopPropagation());var i=e[I._KEYBOARD_CODES._MODIFIER_SHIFT];this._isKeyPressMatch(b.isArrowUpKeyEvent)||this._isKeyPressMatch(b.isArrowDownKeyEvent)?this._handleKeydownUpDown(e,i&&this._getRowSelectionMode()===I._OPTION_SELECTION_MODES._MULTIPLE):this._isKeyPressMatch(b.isArrowLeftKeyEvent)||this._isKeyPressMatch(b.isArrowRightKeyEvent)?this._handleKeydownLeftRight(e,i&&this._getColumnSelectionMode()===I._OPTION_SELECTION_MODES._MULTIPLE):this._isKeyPressMatch(b.isTabKeyEvent)?this._handleKeydownTab(e):b.isF2KeyEvent(o)?this._handleKeydownF2(e):b.isSpaceBarKeyEvent(o)?this._handleKeydownSpacebar(e):b.isEnterKeyEvent(o)?this._handleKeydownEnter(e):b.isHomeKeyEvent(o)?this._handleKeydownHome(e):b.isEndKeyEvent(o)?this._handleKeydownEnd(e):b.isEscapeKeyEvent(o)&&this._handleKeydownEsc(e)}},keyup:function(e){if(b.isMac()&&this._isKeyPressMatch(b.isMetaKeyEvent))this._clearKeyboardKeys();else{if(1===this._getKeyboardKeys().length){var t=this._getKeyboardKeys()[0];if(this._isNodeEditable(e.target)||null!=this._getTableFooter()&&S(this._getTableFooter()).has(e.target).length>0)return void this._removeKeyboardKey(t);this._removeKeyboardKey(t)}var o=e.key||e.keyCode;this._removeKeyboardKey(o)}},"mouseleave .oj-table-element":function(){this._getLayoutManager().handleMouseLeaveTable()},"mousedown .oj-table-body":function(e){var t=e[I._KEYBOARD_CODES._MODIFIER_SHIFT];if(!(b.isEventClickthroughDisabled(e,this._getTable())||b.isFromDefaultSelector(e)&&!t||this._isEditPending)&&1===e.which&&(this._mouseDownRowIdx=this._getElementRowIdx(e.target),null!=this._mouseDownRowIdx)){var o=this._getTableBodyRow(this._mouseDownRowIdx);null!=o&&o.draggable&&(this._mouseDownRowIdx=null)}},mouseup:function(){this._mouseDownRowIdx=null},"mouseenter .oj-table-body-row":function(e){if(this._isRowSelectionEnabled()){e.originalEvent&&0===e.originalEvent.buttons&&(this._mouseDownRowIdx=null);var t=this._getEventTargetElement(e),o=this._getElementRowIdx(t);this._isTableOwned(t)&&null==this._getTableDndContext()._dragImage?(t.classList.add(I.MARKER_STYLE_CLASSES._HOVER),this._updateRowStateCellsClass(o,null,{hover:!0}),this._handleMouseEnterSelection(e.target)):(this._updateRowStateCellsClass(o,null,{hover:!1}),e.stopPropagation())}},"mouseleave .oj-table-body-row":function(e){var t=this._getEventTargetElement(e),o=this._getElementRowIdx(t);this._isTableOwned(t)?(t.classList.remove(I.MARKER_STYLE_CLASSES._HOVER),this._updateRowStateCellsClass(o,null,{hover:!1})):(this._updateRowStateCellsClass(o,null,{hover:!0}),e.stopPropagation())},"mousedown .oj-table-column-header-cell":function(e){b.isEventClickthroughDisabled(e,this._getTable())||this._isEditPending||(this._lastSelectedHeaderIdx=null,this._getLayoutManager().handleMouseDownHeaderCell(e))},"mousedown .oj-table-footer-cell":function(e){if(!b.isEventClickthroughDisabled(e,this._getTable())&&!this._isEditPending&&1===e.which){var t=this._getElementColumnIdx(this._getEventTargetElement(e));e[I._KEYBOARD_CODES._MODIFIER_SHIFT]||(this._setActiveFooter(t,e,!0),S(e.target).data(I._FOCUS_CALLED,!0)),b.isFirefox()&&E.isMetaKeyPressed(e)&&e.preventDefault()}},"mouseenter .oj-table-column-header-cell":function(e){this._getLayoutManager().handleMouseEnterHeaderCell(e);var t=this._getEventTargetElement(e);this._handleMouseEnterColumnHeader(t)},"mousemove .oj-table-header":function(e){this._getLayoutManager().handleMouseMoveHeader(e)},"mousemove .oj-table-column-header-cell":function(e){this._getLayoutManager().handleMouseMoveHeaderCell(e);var t=this._getEventTargetElement(e);this._handleMouseEnterColumnHeader(t)},"mouseleave .oj-table-column-header-cell":function(e){var t=this._getEventTargetElement(e);this._handleMouseLeaveColumnHeader(t)},"mouseup .oj-table-column-header-cell":function(e){this._getLayoutManager().handleMouseUp(e)},"mousedown .oj-table-data-cell":function(e){if(!b.isEventClickthroughDisabled(e,this._getTable())&&!this._isEditPending){this._lastSelectedRowIdx=null;var t=this._getEventTargetElement(e),o=this._getElementRowIdx(t);e[I._KEYBOARD_CODES._MODIFIER_SHIFT]||(this._setActiveRow(o,e,!0),S(e.target).data(I._FOCUS_CALLED,!0)),b.isFirefox()&&E.isMetaKeyPressed(e)&&e.preventDefault()}},"mouseup .oj-table-data-cell":function(e){this._getLayoutManager().handleMouseUp(e)},"click .oj-table-sort-icon-container":function(e){if(!this._isEditPending){var t=this._getElementColumnIdx(e.target),o=this._getTableHeaderColumn(t);if(o)S(o).data("sorted")===I._COLUMN_SORT_ORDER._ASCENDING?this._handleSortTableHeaderColumn(t,!1,e):this._handleSortTableHeaderColumn(t,!0,e),e.preventDefault(),e.stopPropagation()}},"click .oj-table-body-row":function(e){if(b.isEventClickthroughDisabled(e,this._getTable())||this._isEditPending)return;var t=this._getEventTargetElement(e),o=this._getElementRowIdx(t),i=S(e.target).data(I._FOCUS_CALLED),l=e[I._KEYBOARD_CODES._MODIFIER_SHIFT];if(!(i||l&&null!=this._getActiveRowIndex())){var n=this._setActiveRow(o,e,!0);if(S(e.target).data(I._FOCUS_CALLED,!1),!n)return}if(this._getTableBodyRow(o)[I._DATA_OJ_SELECTABLE]!==I._CONST_OFF&&(this._fireActionEvent(o,e,!0),!b.isFromDefaultSelector(e)||l))if(l){var s=this._getActiveRowIndex();if(null!=s&&(window.getSelection().removeAllRanges(),this._getRowSelectionMode()===I._OPTION_SELECTION_MODES._MULTIPLE))return void this._selectRange(s,o,!0);this._handleSelectionGesture(o,!0,!1)}else if(E.isMetaKeyPressed(e))this._handleSelectionGesture(o,!0,!0),this._lastSelectedRowIdxArray&&this._lastSelectedRowIdxArray.indexOf(o)>-1&&(this._selectionAnchorIdx=o);else if(0===this._getKeyboardKeys().length){var a=this._isTouchDevice();this._handleSelectionGesture(o,!0,a&&(this._isStickyLayoutEnabled()||this._nonContiguousSelection)),this._lastSelectedRowIdxArray&&this._lastSelectedRowIdxArray.indexOf(o)>-1&&(this._selectionAnchorIdx=o);var r=this._getRowSelection(o);!this._isStickyLayoutEnabled()&&a&&r&&!this._nonContiguousSelection&&this._getRowSelectionMode()===I._OPTION_SELECTION_MODES._MULTIPLE&&this._createTableBodyRowTouchSelectionAffordance(o)}},"dblclick .oj-table-data-cell, .oj-table-gutter-start-body-cell, .oj-table-gutter-end-body-cell":function(e){if(b.isEventClickthroughDisabled(e,this._getTable())||this._isEditPending)return;let t;t=e.target.classList.contains(I.CSS_CLASSES._TABLE_GUTTER_START_BODY_CELL)?0:e.target.classList.contains(I.CSS_CLASSES._TABLE_GUTTER_END_BODY_CELL)?this._getColumnDefs().length-1:this._getElementColumnIdx(e.target),this._setTableEditable(!0,!1,t,!0,e)},"contextmenu .oj-table-data-cell":function(e){if(!b.isEventClickthroughDisabled(e,this._getTable())&&!this._isEditPending){var t=this._getElementRowIdx(this._getEventTargetElement(e));this._setActiveRow(t,e,!0)}},"click .oj-table-column-header-cell":function(e){if(!b.isEventClickthroughDisabled(e,this._getTable())&&!this._isEditPending){var t=this._getEventTargetElement(e);if(t.style.cursor!==I.CSS_VAL._COL_RESIZE){var o=this._getElementColumnIdx(t),i=S(e.target).data(I._FOCUS_CALLED),l=e[I._KEYBOARD_CODES._MODIFIER_SHIFT];if(i||l&&null!=this._getActiveHeaderIndex()||(this._setActiveHeader(o,e),S(e.target).data(I._FOCUS_CALLED,!1)),l){var n=this._getActiveHeaderIndex();null!=n&&this._getColumnSelectionMode()===I._OPTION_SELECTION_MODES._MULTIPLE?this._selectRange(n,o,!1):this._handleSelectionGesture(o,!1,!0)}else E.isMetaKeyPressed(e)?this._handleSelectionGesture(o,!1,!0):0===this._getKeyboardKeys().length&&this._handleSelectionGesture(o,!1,this._isTouchDevice())}}},"click .oj-table-footer-cell":function(e){if(!b.isEventClickthroughDisabled(e,this._getTable())&&!this._isEditPending){var t=this._getEventTargetElement(e);if(t.style.cursor!==I.CSS_VAL._COL_RESIZE){var o=this._getElementColumnIdx(t),i=S(e.target).data(I._FOCUS_CALLED),l=e[I._KEYBOARD_CODES._MODIFIER_SHIFT];if(i||l&&null!=this._getActiveFooterIndex()||(this._setActiveFooter(o,e),S(e.target).data(I._FOCUS_CALLED,!1)),l){var n=this._getActiveFooterIndex();null!=n&&this._getColumnSelectionMode()===I._OPTION_SELECTION_MODES._MULTIPLE?this._selectRange(n,o,!1):this._handleSelectionGesture(o,!1,!0)}else E.isMetaKeyPressed(e)?this._handleSelectionGesture(o,!1,!0):0===this._getKeyboardKeys().length&&this._handleSelectionGesture(o,!1,!1)}}},"dragstart .oj-table-column-header-cell":function(e){if(!this._isEditPending)return this._getEventTargetElement(e).style.cursor!==I.CSS_VAL._COL_RESIZE?this._getTableDndContext().handleColumnDragStart(e):void 0},"dragenter .oj-table-column-header-cell":function(e){return this._getTableDndContext().handleColumnDragEnter(e)},"dragover .oj-table-column-header-cell":function(e){return this._getTableDndContext().handleColumnDragOver(e)},"dragleave .oj-table-column-header-cell":function(e){return this._getTableDndContext().handleColumnDragLeave(e)},"drop .oj-table-column-header-cell":function(e){return this._getTableDndContext().handleColumnDrop(e)},"dragend .oj-table-column-header-cell":function(e){return this._getTableDndContext().handleColumnDragEnd(e)},"dragstart .oj-table-body-row":function(e){if(!this._isEditPending)return this._getTableDndContext().handleRowDragStart(e)},"drag .oj-table-body-row":function(e){return this._getTableDndContext().handleRowDrag(e)},"dragend .oj-table-body-row":function(e){return this._getTableDndContext().handleRowDragEnd(e)},"dragenter .oj-table-body":function(e){return this._getTableDndContext().handleRowDragEnter(e)},"dragover .oj-table-body":function(e){if(!this._getTableDndContext()._isColumnReordering())return this._getTableDndContext().handleRowDragOver(e)},"dragleave .oj-table-body":function(e){return this._getTableDndContext().handleRowDragLeave(e)},"drop .oj-table-body":function(e){if(!this._getTableDndContext()._isColumnReordering())return this._getTableDndContext().handleRowDrop(e)},"dragover .oj-table-element":function(e){if(this._getTableDndContext()._isColumnReordering())return this._getTableDndContext().handleColumnReorderDragOver(e)},"drop .oj-table-element":function(e){if(this._getTableDndContext()._isColumnReordering())return this._getTableDndContext().handleColumnReorderDrop(e)}},I.prototype._fireActionEvent=function(e,t,o){if(o||!this._isTableActionableMode()){var i=this._getTableBodyRow(e);null!=i&&this._trigger("rowAction",t,{context:{key:i[I._ROW_ITEM_EXPANDO].key,data:i[I._ROW_ITEM_EXPANDO].data,metadata:i[I._ROW_ITEM_EXPANDO].metadata}})}},I.prototype._getEventTargetElement=function(e){return 0===e.type.indexOf("touch")?this._getTouchEventTargetElement(e):e.currentTarget},I.prototype._getTouchEventTargetElement=function(e){var t=e.originalEvent.changedTouches[0];return document.elementFromPoint(t.clientX,t.clientY)},I.prototype._registerCustomEvents=function(){var e=S.event.special;e.ojtablebeforecurrentrow={handle:function(e){var t=e.handleObj;return t.handler.apply(this,[e,arguments[1]])}},e.ojtablesort={handle:function(e){var t=e.handleObj;return t.handler.apply(this,[e,arguments[1]])}}},I.prototype._touchEventDoubleTapFunction=function(e,t){var o=S(e.target);null!=this._lastTapTime&&(new Date).getTime()-this._lastTapTime<250&&this._lastTapTarget[0]===o[0]?(this._lastTapTime=null,this._lastTapTarget=null,t()):(this._lastTapTarget=o,this._lastTapTime=(new Date).getTime())},I.prototype._registerTouchEvents=function(){const e={"touchstart .oj-table-body-row-touch-selection-affordance-touch-area":function(e){1===e.originalEvent.touches.length&&this._getRowSelectionMode()===I._OPTION_SELECTION_MODES._MULTIPLE&&(e.target.classList.contains(I.CSS_CLASSES._TABLE_DATA_ROW_TOUCH_SELECTION_AFFORDANCE_TOP_CLASS)||e.target.classList.contains(I.CSS_CLASSES._TABLE_DATA_ROW_TOUCH_SELECTION_AFFORDANCE_TOP_ICON_CLASS)?(e.preventDefault(),this._mouseDownRowIdx=S(this._getTableBodyRowTouchSelectionAffordanceBottom()).data("rowIdx")):(e.target.classList.contains(I.CSS_CLASSES._TABLE_DATA_ROW_TOUCH_SELECTION_AFFORDANCE_BOTTOM_CLASS)||e.target.classList.contains(I.CSS_CLASSES._TABLE_DATA_ROW_TOUCH_SELECTION_AFFORDANCE_BOTTOM_ICON_CLASS))&&(e.preventDefault(),this._mouseDownRowIdx=S(this._getTableBodyRowTouchSelectionAffordanceTop()).data("rowIdx")))},"touchstart .oj-table-column-header-cell":function(e){this._getLayoutManager().handleTouchStartHeaderCell(e)},"touchmove .oj-table-header":function(e){this._getLayoutManager().handleTouchMoveHeader(e)},"touchmove .oj-table-body-row-touch-selection-affordance-touch-area":function(e){if(null!=this._mouseDownRowIdx){e.preventDefault();var t=this._getEventTargetElement(e);this._handleMouseEnterSelection(t,!0)}}},t=this._getTableContainer();if(this._on(S(t),{touchend:function(e){if(null!=this._mouseDownRowIdx){var t=this._getEventTargetElement(e);this._handleMouseEnterSelection(t,!0)}this._mouseDownRowIdx=null,this._getLayoutManager().handleTouchEnd(e)},"touchend .oj-table-body":function(e){this._touchEventDoubleTapFunction(e,function(e){return function(){var t=this._getEventTargetElement(e),o=this._getElementColumnIdx(t);this._setTableEditable(!0,!1,o,!0,e),e.preventDefault()}.bind(this)}.bind(this)(e))},touchcancel:function(){this._mouseDownRowIdx=null,this._getLayoutManager().handleTouchCancel()}}),this._IsCustomElement()){const o=function(e,t){return function(o){const i=o.currentTarget,l=o.target.closest(e);l&&i.contains(l)&&t(S.Event(o,{currentTarget:l}))}},i="touchstart",l="touchmove",n=".oj-table-body-row-touch-selection-affordance-touch-area",s=".oj-table-column-header-cell",a=".oj-table-header";this._delegatedTouchStartTableBodyListener=o(n,e[`${i} ${n}`].bind(this)),this._delegatedTouchStartCellHeaderListener=o(s,e[`${i} ${s}`].bind(this)),this._delegatedTouchMoveTableHeaderListener=o(a,e[`${l} ${a}`].bind(this)),this._delegatedTouchMoveTableBodyListener=o(n,e[`${l} ${n}`].bind(this)),t.addEventListener(i,this._delegatedTouchStartTableBodyListener,{passive:!1}),t.addEventListener(i,this._delegatedTouchStartCellHeaderListener,{passive:!1}),t.addEventListener(l,this._delegatedTouchMoveTableHeaderListener,{passive:!0}),t.addEventListener(l,this._delegatedTouchMoveTableBodyListener,{passive:!1})}else this._on(S(t),e)},I.ACTIVE_ELEMENT_TYPES={_HEADER:"header",_FOOTER:"footer",_DATA_ROW:"dataRow",_NO_DATA:"noData",_ADD_ROW:"addRow"},I.prototype._createActiveObject=function(e){var t;return e.classList.contains(I.CSS_CLASSES._TABLE_DATA_ROW_CLASS)?(t=this._getElementRowIdx(e),{type:I.ACTIVE_ELEMENT_TYPES._DATA_ROW,index:t,key:this._getRowKeyForRowIdx(t),isActionable:!1}):e.classList.contains(I.CSS_CLASSES._COLUMN_HEADER_CELL_CLASS)?(t=this._getElementColumnIdx(e),{type:I.ACTIVE_ELEMENT_TYPES._HEADER,index:t,key:this._getColumnKeyForColumnIdx(t),isActionable:!1}):e.classList.contains(I.CSS_CLASSES._COLUMN_HEADER_SELECTOR_CELL_CLASS)?{type:I.ACTIVE_ELEMENT_TYPES._HEADER,index:-1,isActionable:!1}:e.classList.contains(I.CSS_CLASSES._TABLE_FOOTER_CELL_CLASS)?(t=this._getElementColumnIdx(e),{type:I.ACTIVE_ELEMENT_TYPES._FOOTER,index:t,key:this._getColumnKeyForColumnIdx(t),isActionable:!1}):e.classList.contains(I.CSS_CLASSES._TABLE_FOOTER_SELECTOR_CELL_CLASS)?{type:I.ACTIVE_ELEMENT_TYPES._FOOTER,index:-1,isActionable:!1}:e.classList.contains(I.CSS_CLASSES._TABLE_BODY_MESSAGE_ROW_CLASS)||e.classList.contains(I.CSS_CLASSES._TABLE_NO_DATA_ROW_CLASS)?{type:I.ACTIVE_ELEMENT_TYPES._NO_DATA,isActionable:!1}:e.classList.contains(I.CSS_CLASSES._TABLE_ADD_ROW_PLACEHOLDER_CLASS)?{type:I.ACTIVE_ELEMENT_TYPES._ADD_ROW,isActionable:!1}:null},I.prototype._getActiveObjectFromActionableChild=function(e){var t=this._createActiveObject(e);if(null!=t)return t;var o=e.parentElement;return null!=o&&S.contains(this._getTable(),o)?this._getActiveObjectFromActionableChild(o):null},I.prototype._areActiveObjectsEqual=function(e,t){return null!=e&&null!=t?e.type===t.type&&e.index===t.index&&u.KeyUtils.equals(e.key,t.key):null==e&&null==t},I.prototype._getElementFromActiveObject=function(e){if(null!=e){if(e.type===I.ACTIVE_ELEMENT_TYPES._DATA_ROW)return this._getTableBodyRow(e.index);if(e.type===I.ACTIVE_ELEMENT_TYPES._HEADER)return-1===e.index?this._getTableSelectorColumn():this._getTableHeaderColumn(e.index);if(e.type===I.ACTIVE_ELEMENT_TYPES._FOOTER)return-1===e.index?this._getTableFooterSelectorCell():this._getTableFooterCell(e.index);if(e.type===I.ACTIVE_ELEMENT_TYPES._NO_DATA){var t=this._getTableBodyMessageRow();return null!=t?t:this._getTableNoDataRow()}if(e.type===I.ACTIVE_ELEMENT_TYPES._ADD_ROW)return this._getPlaceHolderRow()}return null},I.prototype._getActiveElement=function(){return this._getElementFromActiveObject(this._active)},I.prototype._getActiveType=function(){return null!=this._active?this._active.type:null},I.prototype._highlightActive=function(e){if(null!=this._active){var t=this._getElementFromActiveObject(this._active);t&&(t.classList.add(I.CSS_CLASSES._TABLE_ACTIVE_ELEMENT_CLASS),!this._hasFocus()||this._active.isActionable||e||(this._focusInHandler(S(t)),this._hasActiveHeader()&&-1!==this._active.index&&this._showTableHeaderColumnSortIcon(this._active.index)))}},I.prototype._unhighlightActive=function(){if(null!=this._active){var e=this._getElementFromActiveObject(this._active);e&&(e.classList.remove(I.CSS_CLASSES._TABLE_ACTIVE_ELEMENT_CLASS),this._focusOutHandler(S(e)),this._hasActiveHeader()&&-1!==this._active.index&&this._hideTableHeaderColumnSortIcon(this._active.index))}},I.prototype._hasFocus=function(){return this._getTable().classList.contains(I.MARKER_STYLE_CLASSES._FOCUS)},I.prototype._syncActiveElement=function(e,t){var o=this._hasFocus(),i=this._getTableBodyRows().length;if(null!=this._active){if(this._hasActiveHeader()||this._hasActiveFooter()){if(this._getFirstVisibleColumnIndex(this._active.index,!0)!==this._active.index){var l=this._getFirstVisibleColumnIndex(0,!0);this._hasActiveHeader()?this._setActiveHeader(l,e,!o):this._setActiveFooter(l,e,!o)}else o&&this._scrollColumnIntoViewport(this._active.index),this._highlightActive(),t&&this._updateAccStatusInfo();return}if(this._hasActiveRow()){if(u.KeyUtils.equals(this._active.key,this._getRowKeyForRowIdx(this._active.index)))return o&&this._scrollRowIntoViewport(this._active.index),t&&this._updateAccStatusInfo(),void this._highlightActive();var n=this._getCurrentRow(),s=null!=n?n.rowKey:null;if(null!=s){if(i>0){var a=this._getRowIdxForRowKey(s);return null!=a||(a=Math.min(null!=n.rowIndex?n.rowIndex:0,i-1)),void this._setActiveRow(a,e,!0,!o)}this._setActiveNoData()}return}if(this._hasActiveNoData()){if(!0===this._noDataMessageShown)return this._highlightActive(),void(t&&this._updateAccStatusInfo())}else if(this._hasActiveAddRow()&&null!=this._getPlaceHolderRow())return this._highlightActive(),void(t&&this._updateAccStatusInfo())}this._isTableHeaderless()?null!=this._getPlaceHolderRow()?this._setActiveAddRow():i>0?this._setActiveRow(0,e,!0,!o):this._setActiveNoData():this._setActiveHeader(this._getFirstVisibleColumnIndex(0,!0),e,!o)},I.prototype._getFirstVisibleColumnIndex=function(e,t){var o;if(this._isTableHeaderless()){if(this._isTableFooterless())return null;o=this._getTableFooterCell.bind(this)}else o=this._getTableHeaderColumn.bind(this);var i,l=this._getColumnDefs().length,n=e;if(t)for(;n<l;){if((i=o(n))&&i.clientWidth>0)return n;n+=1}else for(;n>-1;){if((i=o(n))&&i.clientWidth>0)return n;n-=1}return null},I.prototype._getNextVisibleColumnIndex=function(e,t){var o=t?e+1:e-1;if(-1===o)return this._isDefaultSelectorEnabled()?o:e;var i=this._getFirstVisibleColumnIndex(o,t);return null!==i?i:e},I.prototype._getCurrentRow=function(){return this._getData()?this._currentRow:null},I.prototype._hasActiveRow=function(){return this._getActiveType()===I.ACTIVE_ELEMENT_TYPES._DATA_ROW},I.prototype._getActiveRowIndex=function(){return this._hasActiveRow()?this._active.index:null},I.prototype._hasActiveHeader=function(){return this._getActiveType()===I.ACTIVE_ELEMENT_TYPES._HEADER},I.prototype._getActiveHeaderIndex=function(){return this._hasActiveHeader()?this._active.index:null},I.prototype._getActiveHeaderColumn=function(){var e=this._getActiveHeaderIndex();return null!=e?-1===e?this._getTableSelectorColumn():this._getTableHeaderColumn(e):null},I.prototype._hasActiveFooter=function(){return this._getActiveType()===I.ACTIVE_ELEMENT_TYPES._FOOTER},I.prototype._getActiveFooterIndex=function(){return this._hasActiveFooter()?this._active.index:null},I.prototype._hasActiveAddRow=function(){return this._getActiveType()===I.ACTIVE_ELEMENT_TYPES._ADD_ROW},I.prototype._hasActiveNoData=function(){return this._getActiveType()===I.ACTIVE_ELEMENT_TYPES._NO_DATA},I.prototype._scrollRowIntoViewport=function(e,t,o){var i=this._getLayoutManager();if(i.hasRenderedSize()&&(null==o&&(o=this._getTableBodyRow(e)),t||!o.classList.contains(I.CSS_CLASSES._TABLE_STUCK_ROW_CLASS))){var l=S(i.getScroller()),n=i.getVerticalOverflowDiff(o),s=n.top,a=s>=0,r=n.bottom,_=r>=0;a&&_||(_?(Math.abs(s)>Math.abs(r)?l.scrollTop(l.scrollTop()+r):l.scrollTop(l.scrollTop()-s),this._skipScrollUpdate=!1,i.updateCurrentScrollState()):a&&(Math.abs(r)>Math.abs(s)?l.scrollTop(l.scrollTop()-s):l.scrollTop(l.scrollTop()+r),this._skipScrollUpdate=!1,i.updateCurrentScrollState()))}},I.prototype._scrollColumnIntoViewport=function(e){var t,o=this._getLayoutManager();if(o.hasRenderedSize()&&(t=-1===e?this._getTableSelectorColumn():this._getTableHeaderColumn(e))){var i=o.getScroller(),l=S(i),n=o.getHorizontalOverflowDiff(t,e),s=n.left,a=n.right,r=s>=0,_=a>=0;b.isEdge()&&(s*=-1,a*=-1),r&&_||(r?(Math.abs(a)>Math.abs(s)?l.scrollLeft(l.scrollLeft()-s):l.scrollLeft(l.scrollLeft()+a),this._skipScrollUpdate=!1,o.updateCurrentScrollState()):_&&(Math.abs(s)>Math.abs(a)?l.scrollLeft(l.scrollLeft()+a):l.scrollLeft(l.scrollLeft()-s),this._skipScrollUpdate=!1,o.updateCurrentScrollState()))}},I.prototype._setCurrentRow=function(e,t,o){var i,l,n,s,a=this._currentRow,r=null==e||null==e.rowKey&&null==e.rowIndex;if(r)n=-1,s=null!=e?e:null;else{var _=this._getData(),h=e.rowIndex,d=e.rowKey;if(null==d&&(d=this._getRowKeyForDataSourceRowIndex(h)),s={rowIndex:h=this._getDataSourceRowIndexForRowKey(d),rowKey:d},-1!==(n=this._getRowIdxForRowKey(d))&&(!_||n<-1||null===n||null===d)){if(i=I._LOGGER_MSG._ERR_CURRENTROW_UNAVAILABLE_INDEX_SUMMARY,l=g.applyParameters(I._LOGGER_MSG._ERR_CURRENTROW_UNAVAILABLE_INDEX_DETAIL,{rowIdx:n}),this.option("currentRow",this._currentRow,{_context:{writeback:!0,originalEvent:t,internalSet:!0}}),o)throw new Error(i+"\n"+l);return C.info(i+"\n"+l),I._CURRENT_ROW_STATUS._IGNORED}}var u=this._getActiveRowIndex(),c=!this._compareCurrentRowValues(a,s);if(c){var S,E=this._getAccessibleContext();this._clearAccessibleContext();try{S=this._trigger("beforeCurrentRow",t,{currentRow:s,previousCurrentRow:a})}catch(e){return i=I._LOGGER_MSG._ERR_PRECURRENTROW_ERROR_SUMMARY,l=g.applyParameters(I._LOGGER_MSG._ERR_PRECURRENTROW_ERROR_DETAIL,{error:e.toString()}),C.info(i+"\n"+l),this.option("currentRow",this._currentRow,{_context:{writeback:!0,originalEvent:t,internalSet:!0}}),I._CURRENT_ROW_STATUS._ERROR}if(!S)return this._setAccessibleContext(E),this.option("currentRow",this._currentRow,{_context:{writeback:!0,originalEvent:t,internalSet:!0}}),I._CURRENT_ROW_STATUS._VETOED;if(!(null==a||null==a.rowKey&&null==a.rowIndex)){var T=a.rowIndex,p=this._getRowKeyForDataSourceRowIndex(T),A=this._getRowIdxForRowKey(p);if(!1===this._setTableEditable(!1,!1,0,!0,t)){this._currentRow=a;var f=document.activeElement,b=this._getElementColumnIdx(f);return this._queueTask(function(){var e=A,o=b;null!=e&&null!=o?setTimeout(function(){this._setCellFocus(e,o)}.bind(this),0):null!=e&&setTimeout(function(){this._setActiveRow(e,t)}.bind(this),0)}.bind(this)),this._setAccessibleContext(E),this.option("currentRow",this._currentRow,{_context:{writeback:!0,originalEvent:t,internalSet:!0}}),I._CURRENT_ROW_STATUS._IGNORED}var L=this._getTableBodyRow(A);null!=L&&L.classList.remove(I.CSS_CLASSES._TABLE_DATA_CURRENT_ROW_CLASS)}if(this._currentRow=s,this.option("currentRow",this._currentRow,{_context:{writeback:!0,originalEvent:t,internalSet:!0}}),!r){var m=this._getTableBodyRow(n);null!=m&&m.classList.add(I.CSS_CLASSES._TABLE_DATA_CURRENT_ROW_CLASS)}}return!c&&u===n||null!=t||this._setActiveRow(n,t,!1,!this._hasFocus()),I._CURRENT_ROW_STATUS._UPDATED},I.prototype._compareCurrentRowValues=function(e,t){if(e===t)return!0;if(null!=e&&null!=t){if(e.rowIndex===t.rowIndex&&u.KeyUtils.equals(e.rowKey,t.rowKey))return!0}else if(null==e&&null==t)return!0;return!1},I.prototype._setCellFocus=function(e,t){var o=this._getTableBodyCell(e,t);if(o){var i=b.getFocusableElementsInNode(o);if(i.length>0){var l=i[0];return l.focus(),"function"==typeof l.select&&l.select(),this._scrollColumnIntoViewport(t),!0}}return!1},I.prototype._setCellInRowFocus=function(e,t,o){if(!this._setCellFocus(e,t))for(var i=this._getTableBodyCells(e).length,l=0;l<i;l++){var n=l;if(o||(n=i-l-1),this._setCellFocus(e,n))return}},I.prototype._setFocusInHandler=function(e){this._focusInHandler=e},I.prototype._setFocusOutHandler=function(e){this._focusOutHandler=e},I.prototype._setActiveRow=function(e,t,o,i,l,n){if(-1===e)return this._clearActiveRow(t,o);var s=this._getTableBodyRow(e);return null!=s&&this._setActive(s,t,o,i,l,n)},I.prototype._clearActiveRow=function(e,t,o){return!this._hasActiveRow()||this._setActive(null,e,t,o)},I.prototype._resetActiveRow=function(){return!this._hasActiveRow()||this._setActive(null)},I.prototype._setActiveHeader=function(e,t,o){if(this._isTableHeaderless()||null==e)return!1;var i=-1===e?this._getTableSelectorColumn():this._getTableHeaderColumn(e);return this._setActive(i,t,!0,o)},I.prototype._setActiveFooter=function(e,t,o){if(this._isTableFooterless()||null==e)return!1;var i=-1===e?this._getTableFooterSelectorCell():this._getTableFooterCell(e);return this._setActive(i,t,!0,o)},I.prototype._setActiveAddRow=function(){var e=this._getPlaceHolderRow();return null!=e&&this._setActive(e,null,!0)},I.prototype._setActiveNoData=function(){var e=this._getTableBodyMessageRow();if(null!=e)this._setActive(e,null,!0);else{var t=this._getTableNoDataRow();null!=t&&this._setActive(t,null,!0)}},I.prototype._setActive=function(e,t,o,i,l,n){if(null!=e){var s=this._createActiveObject(e);if(!this._areActiveObjectsEqual(s,this._active)){if(s.type===I.ACTIVE_ELEMENT_TYPES._DATA_ROW){if(o&&this._setCurrentRow({rowKey:s.key},t)!==I._CURRENT_ROW_STATUS._UPDATED)return!1}else if(!this._clearActiveRow(t,o))return!1;this._setTableActionableMode(!1,!0),this._unhighlightActive(),this._active=s}i||(s.type===I.ACTIVE_ELEMENT_TYPES._HEADER||s.type===I.ACTIVE_ELEMENT_TYPES._FOOTER?this._scrollColumnIntoViewport(s.index):s.type===I.ACTIVE_ELEMENT_TYPES._DATA_ROW&&this._scrollRowIntoViewport(s.index,n)),this._highlightActive(l),this._active.isActionable||this._updateAccStatusInfo()}else if(null!=this._active){if(this._hasActiveRow()&&o&&this._setCurrentRow(null,t)!==I._CURRENT_ROW_STATUS._UPDATED)return!1;this._unhighlightActive(),this._active=null}return!0},I.prototype._setColumnState=function(e,t){var o=this._getTableHeaderColumn(e),i=this._getTableFooterCell(e);this._applyColumnState(o,i,e,t)},I.prototype._applyColumnState=function(e,t,o,i){i?(null!=e&&e.classList.add(I.MARKER_STYLE_CLASSES._SELECTED),null!=t&&t.classList.add(I.MARKER_STYLE_CLASSES._SELECTED)):(null!=e&&e.classList.remove(I.MARKER_STYLE_CLASSES._SELECTED),null!=t&&t.classList.remove(I.MARKER_STYLE_CLASSES._SELECTED)),this._updateColumnStateCellsClass(o,i)},I.prototype._updateColumnStateCellsClass=function(e,t){for(var o=this._getSelectedRowIdxs(),i=this._getTableBodyRows(),l=0;l<i.length;l++){var n=this._getTableBodyCell(l,e);if(n)if(t)n.classList.add(I.MARKER_STYLE_CLASSES._SELECTED);else{for(var s=!1,a=o.length,r=0;r<a;r++)if(l===o[r]){s=!0;break}s||n.classList.remove(I.MARKER_STYLE_CLASSES._SELECTED)}}if(null!=this._getPlaceHolderRow()){var _=this._getPlaceHolderRowCell(e);null!=_&&(t?_.classList.add(I.MARKER_STYLE_CLASSES._SELECTED):_.classList.remove(I.MARKER_STYLE_CLASSES._SELECTED))}},I.prototype._updateRowStateCellsClass=function(e,t,o){if(t||(t=this._getTableBodyRow(e)),t[I._DATA_OJ_SELECTABLE]!==I._CONST_OFF){var i=this._getTableBodyCells(null,t);if(0!==i.length){if(this._isDefaultSelectorEnabled()){var l=this._getTableBodySelectorCell(t);i.unshift(l)}if(this._isGutterStartColumnEnabled()){let e=this._getTableGutterCell("body","start",t);i.unshift(e)}if(this._isGutterEndColumnEnabled()){let e=this._getTableGutterCell("body","end",t);i.push(e)}var n,s=o.selected,a=o.hover,r=i.length;if(null!=a)for(n=0;n<r;n++)a?i[n].classList.add(I.MARKER_STYLE_CLASSES._HOVER):i[n].classList.remove(I.MARKER_STYLE_CLASSES._HOVER);if(null!=s)for(n=0;n<r;n++)s?i[n].classList.add(I.MARKER_STYLE_CLASSES._SELECTED):i[n].classList.remove(I.MARKER_STYLE_CLASSES._SELECTED)}}},I.prototype._adjustScrollPositionOnFetch=function(e){var t=null==this.options.scrollPosition?{}:this.options.scrollPosition;if(!isNaN(t.rowIndex)&&void 0!==t.rowKey){var o=this._getSelectedRowIdxs();null!=o&&o.length>0&&this._isRowSelectionEnabled()&&this._isScrollToKey()?(!isNaN(this._selectionAnchorIdx)&&o.indexOf(this._selectionAnchorIdx)>-1?t.rowKey=this._getRowKeyForRowIdx(this._selectionAnchorIdx):t.rowKey=this._getRowKeyForRowIdx(o[0]),delete t.rowIndex):(this._isExternalScrollEnabled()||(t.y=0),delete t.rowIndex,delete t.rowKey),e||(t.x=0,t.columnKey=null,t.columnIndex=0,t.offsetX=0),t.offsetY=0,this.option("scrollPosition",t,{_context:{internalSet:!0},changed:!1})}},I.prototype._isScrollPositionAdjusted=function(){var e=this.options.scrollPosition;return null!=e&&(void 0===e.rowIndex&&null!=e.rowKey)},I.prototype._findRowElementByKey=function(e){for(var t=this._getTableBodyRows(),o=0;o<t.length;o++)if(u.KeyUtils.equals(t[o][I._ROW_ITEM_EXPANDO].key,e))return t[o];return null},I.prototype._isScrollToKey=function(){var e=this.options.scrollToKey;if("never"===e)return!1;if("always"===e)return!0;var t=this.options.data;if(!u.DataProviderFeatureChecker.isDataProvider(t))return!0;if(t.getCapability){var o=t.getCapability("fetchFirst");if(o&&"immediate"===o.iterationSpeed)return!0}return!1},I.prototype._getScrollToKey=function(){var e=this.options.scrollPosition.rowKey;return e?new Promise(function(t){var o=this._validateKeyForScroll(e,!0);null==o?t(null):o.then(function(o){t(o?e:null)})}.bind(this)):Promise.resolve(null)},I.prototype._validateKeyForScroll=function(e,t){if(!this._isScrollToKey())return null;if(!t&&null!=this._findRowElementByKey(e))return Promise.resolve(!0);var o=this._getData();return o.containsKeys?new Promise(function(t){var i=new Set;i.add(e),o.containsKeys({keys:i}).then(function(e){t(e.results.size>0)},function(){t(!1)})}):null},I.prototype._syncScrollPosition=function(e,t){if(!this._IsCustomElement()||this._noDataMessageShown||!this._isScrollableX()&&!this._isScrollableY())return!0;if(null!=this._scrollPosition?e=this._scrollPosition:null==e&&(e=this.options.scrollPosition),!t&&null!=e.rowKey){var o=this._validateKeyForScroll(e.rowKey,!1);if(o){var i=this._createComponentBusyState("is validating scroll position rowKey.");o.then(function(t){t||delete e.rowKey,this._clearComponentBusyState(i),this._syncScrollPosition(e,!0)}.bind(this))}return!1}var l=this._getScrollCoordinates(e),n=this._isScrollableX()?l.x:0,s=this._isScrollableY()?l.y:0;if(isNaN(n)&&isNaN(s))return this.option("scrollPosition",this._getCurrentScrollPosition(),{_context:{originalEvent:null,internalSet:!0}}),this._scrollPosition=null,this._editRowCallback=null,!0;var a,r=isNaN(this._scrollTop)?0:this._scrollTop,_=isNaN(this._scrollLeft)?0:this._scrollLeft;if(!isNaN(n)&&isNaN(s)||!isNaN(n)&&s===r&&n!==_)this._isScrollableX()?(this._setScrollX(n),a=this._getCurrentScrollPosition(n)):a=this._getCurrentScrollPosition(),this.option("scrollPosition",a,{_context:{originalEvent:null,internalSet:!0}});else if(s!==r){if(!this._isScrollableY())return isNaN(n)||n===_?(this.option("scrollPosition",this._getCurrentScrollPosition(),{_context:{originalEvent:null,internalSet:!0}}),!0):(delete e.y,this._syncScrollPosition(e,t));var h=this._setScrollY(s);if(isNaN(n)||n===_||this._setScrollX(n),-1===s)return this._scrollPosition=e,h;this.option("scrollPosition",this._getCurrentScrollPosition(n,s),{_context:{originalEvent:null,internalSet:!0}})}else e&&(null==e.rowKey||isNaN(e.rowIndex))&&this.option("scrollPosition",this._getCurrentScrollPosition(n,s),{_context:{originalEvent:null,internalSet:!0}});return null!=this._scrollPosition&&(this._scrollPosition=null),this._editRowCallback&&(this._editRowCallback(),this._editRowCallback=null),!0},I.prototype._isScrollableX=function(){var e=this._getLayoutManager();return Math.abs(e.getScrollWidth()-e.getClientWidth())>1},I.prototype._isScrollableY=function(){var e=this._getLayoutManager();return Math.abs(e.getScrollHeight()-e.getClientHeight())>1},I.prototype._setScrollX=function(e){var t=this._getLayoutManager().getScroller();this._skipScrollUpdate=!0,E.setScrollLeft(t,e)},I.prototype._setScrollY=function(e){var t=this._getLayoutManager(),o=t.getScroller();this._skipScrollUpdate=!0;var i=o.scrollTop;return o.scrollTop=-1===e?t.getScrollHeight()-t.getClientHeight():e,i!==o.scrollTop&&(this._setScrollPosBusyState(),!0)},I.prototype._getScrollTopByIndex=function(e){if(0===e)return 0;if(!(this._isLoadMoreOnScroll()&&e>this.options.scrollPolicyOptions.maxCount)){var t=this._getTableBodyRows()[e];return null!=t?this._getLayoutManager().getRowScrollTop(t):this._hasMoreToFetch()?-1:void 0}},I.prototype._getScrollTopByKey=function(e){var t=this._findRowElementByKey(e);return null!=t?this._getLayoutManager().getRowScrollTop(t):this._hasMoreToFetch()?-1:void 0},I.prototype._getScrollLeftByIndex=function(e){return this._getLayoutManager().getColumnScrollLeft(e)},I.prototype._getScrollLeftByKey=function(e){var t=this._getColumnIdxForColumnKey(e);return this._getScrollLeftByIndex(t)},I.prototype._getScrollCoordinates=function(e){var t,o,i=this._getLayoutManager();if(!i.hasRenderedSize())return{x:0,y:0};var l=e.rowKey;null!=l&&(t=this._getScrollTopByKey(l));var n=e.columnKey;null!=n&&(o=this._getScrollLeftByKey(n));var s=e.rowIndex;isNaN(t)&&!isNaN(s)&&(t=this._getScrollTopByIndex(s));var a=e.columnIndex;isNaN(o)&&!isNaN(a)&&(o=this._getScrollLeftByIndex(a));var r=e.offsetX;!isNaN(o)&&!isNaN(r)&&o>=0&&(o+=r);var _=e.offsetY;return!isNaN(t)&&!isNaN(_)&&t>=0&&(t+=_),isNaN(o)&&!isNaN(e.x)&&(o=Math.max(0,e.x)),isNaN(t)&&!isNaN(e.y)&&(t=e.y>i.getScrollHeight()?this._hasMoreToFetch()?-1:i.getScrollHeight()-i.getClientHeight():Math.max(0,e.y)),{x:o,y:t}},I.prototype._getCurrentHorizontalScrollPosition=function(e){var t=null==e?this._scrollLeft:e,o={x:null==t?0:t},i=this.option("scrollPosition"),l=Math.abs(i.x-o.x);if(l<1&&null!=i.columnKey&&!isNaN(i.columnIndex))return o.columnKey=i.columnKey,o.columnIndex=i.columnIndex,o.offsetX=i.offsetX+l,o;var n=this._getColumnLocations();if(n&&n.length>0){var s,a=n.length-1;for(s=0;s<n.length-1;s++)if(o.x>=n[s]&&o.x<n[s+1]){a=s;break}o.columnKey=this._getColumnDefs()[a].id,o.columnIndex=a,o.offsetX=o.x-n[a]}return o},I.prototype._getCurrentVerticalScrollPosition=function(e){var t=null==e?this._scrollTop:e,o={y:null==t?0:t},i=this._findClosestElementToTop(o);return null!=i&&(o.rowIndex=i.index,o.rowKey=this._getRowKeyForRowIdx(i.index),o.offsetY=i.offset),o},I.prototype._getCurrentScrollPosition=function(e,t){if(!this._getLayoutManager().hasRenderedSize())return{x:0,y:0};var o=this._getCurrentHorizontalScrollPosition(e),i=this._getCurrentVerticalScrollPosition(t);return Object.keys(i).forEach(function(e){o[e]=i[e]}),o},I.prototype._getColumnLocations=function(){if(null==this._columnOffsets){this._columnOffsets=[];var e=this._getTableHeaderColumns();if(e&&e.length>0){var t=this._getScrollLeftByIndex(0);this._columnOffsets.push(0);for(var o=1;o<e.length;o++)this._columnOffsets.push(this._getScrollLeftByIndex(o)-t)}}return this._columnOffsets},I.prototype._findClosestElementToTop=function(e){var t,o=this._getLayoutManager(),i=this._getTableBodyRows(),l=i.length,n=o.getScrollHeight();if(0===l||0===n)return null;var s=e.y,a=this.option("scrollPosition");t=Math.abs(a.y-s)<I.DEFAULT_ROW_HEIGHT_GUESS&&null!=a.rowKey&&!isNaN(a.rowIndex)?a.rowIndex:Math.floor(s/n*l);var r=i[t=Math.min(Math.max(t,0),l-1)],_=o.getRowScrollTop(r),h=s-_,d={index:t,elem:r,offsetTop:_,offset:h};if(Math.abs(h)<1)return d;var u=h>0;for(u?t+=1:t-=1;t>=0&&t<l;){var c=_;if(r=i[t],_=o.getRowScrollTop(r),(h=Math.abs(s-_))<1||(u?s<=_:s>=_)){d=h<1||!u?{index:t,elem:r,offsetTop:_,offset:h}:{index:t-1,elem:i[t-1],offsetTop:c,offset:s-c};break}u?t+=1:t-=1}return d},I.prototype._registerDomEventListeners=function(){this._getLayoutManager().registerScrollListeners()},I.prototype._isTableActionableMode=function(){return null!=this._active&&this._active.isActionable},I.prototype._isTableEditMode=function(){return this.options.editMode===I._OPTION_EDIT_MODE._ROW_EDIT},I.prototype._toggleTableActionableMode=function(){this._isTableActionableMode()?this._setTableActionableMode(!1):this._setTableActionableMode(!0)},I.prototype._setTableActionableMode=function(e,t){var o;e&&!this._isTableActionableMode()?(o=this._hasActiveHeader()?this._getTableHeaderRow():this._hasActiveFooter()?this._getTableFooterRow():this._getActiveElement(),this._clearAccStatusInfo(),this._applyActionableMode(o,t)):!e&&this._isTableActionableMode()&&(this._active.isActionable=!1,!t&&S.contains(this._getTable(),document.activeElement)&&this._getTable().focus(),null!=(o=this._hasActiveHeader()?this._getTableHeaderRow():this._hasActiveFooter()?this._getTableFooterRow():this._getActiveElement())&&b.disableAllFocusableElements(o,null,!0))},I.prototype._applyActionableMode=function(e,t){var o=this._getActiveElement();if(null!=o){b.enableAllFocusableElements(e);var i=b.getFocusableElementsInNode(o);i.length>0&&(this._active.isActionable=!0,this._focusOutHandler(S(o)),t||i[0].focus())}},I.prototype._getEditableRowIdx=function(){if(null!=this._getEditableRowKey()){var e=this._getRowIdxForRowKey(this._getEditableRowKey());if(null!==e)return e}return this._editableRowIdx},I.prototype._getEditableRowKey=function(){return this._editableRowKey},I.prototype._hasEditableRow=function(){return!!this._isTableEditMode()&&null!==this._getEditableRowIdx()},I.prototype._setEditRow=function(e){if(this._isTableEditMode()){var t=e.rowKey,o=e.rowIndex;if(null!=t||o>-1){var i=this._setCurrentRow({rowKey:t,rowIndex:o});if(i===I._CURRENT_ROW_STATUS._UPDATED)this._setTableEditable(!0,!1,0,!0,null);else if(i===I._CURRENT_ROW_STATUS._IGNORED){var l=this._scrollTop;this._syncScrollPosition({rowKey:t,rowIndex:o})||(this._editRowCallback=function(){this._scrollTop!==l&&this._setEditRow(e)}.bind(this))}}else this._setTableEditable(!1,!1,0,!0,null)}},I.prototype._getRowToBeEdited=function(e){const t=e.rowKey,o=e.rowIndex;return null!=t?this._findRowElementByKey(t):o>-1?this._getTableBodyRow(o):null},I.prototype._setEditableRowIdx=function(e){this._editableRowKey=this._getRowKeyForRowIdx(e),this._editableRowIdx=e},I.prototype._setAdjacentRowEditable=function(e,t,o,i){var l=this._getEditableRowIdx(),n=this._setTableEditable(!1,!1,e,o,i);n instanceof Promise?n.then(function(){this._queueTask(function(){this._handleAdjacentEditEndSuccessful(e,l,o,i)}.bind(this))}.bind(this),function(){this._queueTask(function(){this._handleEditEndRejected(t,l,!o)}.bind(this))}.bind(this)):!1===n?this._handleEditEndRejected(t,l,!o):this._handleAdjacentEditEndSuccessful(e,l,o,i)},I.prototype._handleAdjacentEditEndSuccessful=function(e,t,o,i){var l=this._getTableBodyRows(),n=this._findAdjacentEditableRow(t,l,o);null!==n?(this._setActiveRow(n,i,!0,!1,!0),this._setTableEditable(!0,!1,e,o,i)):this._getTable().focus()},I.prototype._findAdjacentEditableRow=function(e,t,o){if(o)for(let o=e+1;o<t.length;o++){if(t[o][I._DATA_OJ_EDITABLE]!==I._CONST_OFF)return o}else for(let o=e-1;o>=0;o--){if(t[o][I._DATA_OJ_EDITABLE]!==I._CONST_OFF)return o}return null},I.prototype._handleEditEndRejected=function(e,t,o){this._setCellInRowFocus(t,e,o)},I.prototype._fireEditRowChangeEvent=function(e,t){this._queueTask(function(){this.option("editRow",e,{_context:{originalEvent:t,internalSet:!0,writeback:!0}})}.bind(this))},I.prototype._setTableEditable=function(e,t,o,i,l,n){if(this._isTableEditMode()&&!this._isEditPending){var s=this._getData()instanceof u.TableDataSourceAdapter,a=this._getCurrentRow();if(null!=a){const u=this._getRowToBeEdited(a);if(u&&u[I._DATA_OJ_EDITABLE]!==I._CONST_OFF){var r,_,h,d,c=a.rowKey,S=this._getRowIdxForRowKey(c),E=[],C=this._getEditableRowKey();try{if(e&&!this._hasEditableRow())r=this._getTableBodyRow(S),(_=this._getRendererContextObject(r,{row:{key:c,index:a.rowIndex},isCurrentRow:!0})).item=r[I._ROW_ITEM_EXPANDO],(h=this._trigger("beforeRowEdit",l,{accept:function(e){E.push(e)},rowContext:_}))&&(d={rowKey:c,rowIndex:S});else{if(e||!this._hasEditableRow())return;r=this._getTableBodyRow(this._getEditableRowIdx()),c=this._getRowKeyForRowIdx(this._getEditableRowIdx()),(_=this._getRendererContextObject(r,{row:{key:c,index:this._getDataSourceRowIndexForRowKey(c)},isCurrentRow:!0})).item=r[I._ROW_ITEM_EXPANDO],(h=this._trigger("beforeRowEditEnd",l,{accept:function(e){E.push(e)},cancelEdit:t,rowContext:_}))&&(d={rowKey:null,rowIndex:-1})}}catch(e){return!1}if(!h)return this._syncActiveElement(),!1;if(0!==E.length)return this._isEditPending=!0,this._insertSkeletonRow(S),this._getTable().focus(),this._queueTask(function(){return Promise.all(E).then(function(){if(this._removeSkeletonRow(S),d&&this._fireEditRowChangeEvent(d,l),e)return this._setEditableRowIdx(S),this._getTable().setAttribute(I.DOM_ATTR._ARIA_LABELLEDBY,""),this._accStatus.setAttribute(I.DOM_ATTR._ARIA_LABELLEDBY,""),this._refreshRow(S,!0,!1,!s).then(function(){this._setCellInRowFocus(S,o,i);var e=this._getRowIdxForRowKey(C);return null!=e?this._refreshRow(e,!1).then(function(){this._isEditPending=!1}.bind(this)):(this._isEditPending=!1,Promise.resolve())}.bind(this));this._focusEditCell=null,this._setEditableRowIdx(null),n||this._getTable().focus();var t=this._getRowIdxForRowKey(C);return null!=t?this._refreshRow(t,!1).then(function(){this._isEditPending=!1}.bind(this)):(this._isEditPending=!1,Promise.resolve())}.bind(this),function(){return this._removeSkeletonRow(S),e&&null==C&&this._syncActiveElement(),this._isEditPending=!1,!1}.bind(this))}.bind(this)),Promise.all(E);d&&this._fireEditRowChangeEvent(d,l),e?(this._setEditableRowIdx(S),this._getTable().setAttribute(I.DOM_ATTR._ARIA_LABELLEDBY,""),this._accStatus.setAttribute(I.DOM_ATTR._ARIA_LABELLEDBY,""),this._queueTask(function(){return this._refreshRow(S,!0,!1,!s).then(function(){this._setCellInRowFocus(S,o,i)}.bind(this))}.bind(this))):(this._focusEditCell=null,this._setEditableRowIdx(null),n||this._getTable().focus()),this._queueTask(function(){var e=this._getRowIdxForRowKey(C);return null!=e?this._refreshRow(e,!1):Promise.resolve()}.bind(this))}}}},I.prototype._handleAddRow=function(e,t){let o=[];this._trigger("beforeRowAddEnd",t,{accept:function(e){o.push(e)},cancelAdd:e})&&(this._setTableActionableMode(!1),0!==o.length?(this._insertSkeletonRow(-1),this._getTable().focus(),this._queueTask(function(){return Promise.all(o).then(function(){return this._removeSkeletonRow(-1),this._isAddRowRendered=!1,this._refreshAddNewRowPlaceholder().then(function(){let t=this._getPlaceHolderRow();this._getLayoutManager()._initializeFrozenColumns(!1,t),this._setActiveAddRow(),this._setTableActionableMode(!e)}.bind(this))}.bind(this),function(){this._removeSkeletonRow(-1),this._setActiveAddRow(),this._setTableActionableMode(!0)}.bind(this))}.bind(this))):(this._isAddRowRendered=!1,this._refreshAddNewRowPlaceholder().then(function(){let t=this._getPlaceHolderRow();this._getLayoutManager()._initializeFrozenColumns(!1,t),this._setActiveAddRow(),this._setTableActionableMode(!e)}.bind(this))))},I._KEYBOARD_CODES={_MODIFIER_SHIFT:"shiftKey"},I.prototype._getKeyboardKeys=function(){return this._keyboardKeys||(this._keyboardKeys=[]),this._keyboardKeys.reverse()},I.prototype._addKeyboardKey=function(e){var t,o=!1,i=Object.keys(b.KEYBOARD_KEYS);for(t=0;t<i.length;t++){var l=i[t];if(b.KEYBOARD_KEYS[l]===e){o=!0;break}}if(o){var n=this._getKeyboardKeys(),s=!1,a=n.length;for(t=0;t<a;t++)if(n[t]===e){s=!0;break}s||n.push(e)}},I.prototype._isKeyPressMatch=function(e){for(var t=this._getKeyboardKeys(),o=0;o<t.length;o++)if(e(t[o]))return!0;return!1},I.prototype._removeKeyboardKey=function(e){for(var t=this._getKeyboardKeys(),o=t.length,i=0;i<o;i++)t[i]===e&&t.splice(i,1)},I.prototype._clearKeyboardKeys=function(){this._keyboardKeys=[]},I.prototype._handleKeydownLeftRight=function(e,t){if(!this._isTableActionableMode()&&!this._hasEditableRow()){var o,i,l="rtl"===this._GetReadingDirection(),n=this._isKeyPressMatch(b.isArrowLeftKeyEvent),s=l&&n||!l&&!n,a=this._getActiveHeaderIndex();if(null!=a)return o=!t||this._isNavigate||null==this._lastSelectedHeaderIdx?a:this._lastSelectedHeaderIdx,i=this._getNextVisibleColumnIndex(o,s),void(t?(this._isNavigate=!1,this._selectRange(a,Math.max(0,i),!1),this._scrollColumnIntoViewport(i)):(this._isNavigate=!0,i!==a&&this._setActiveHeader(i,e)));var r=this._getActiveFooterIndex();if(null!=r)return o=!t||this._isNavigate||null==this._lastSelectedFooterIdx?r:this._lastSelectedFooterIdx,i=this._getNextVisibleColumnIndex(o,s),void(t?(this._isNavigate=!1,this._selectRange(r,Math.max(0,i),!1),this._scrollColumnIntoViewport(i)):(this._isNavigate=!0,i!==r&&this._setActiveFooter(i,e)));this._updateAccStatusInfo(this._getNextVisibleColumnIndex(this._accColumnIndex,s))}},I.prototype._handleKeydownUpDown=function(e,t){if(!this._isTableActionableMode()&&!this._hasEditableRow()){null==this._active&&this._syncActiveElement();var o=this._isKeyPressMatch(b.isArrowUpKeyEvent),i=this._getFirstVisibleColumnIndex(0,!0);if(E.isMetaKeyPressed(e))o&&null==this._getActiveHeaderIndex()?this._setActiveHeader(i,e):o||null!=this._getActiveFooterIndex()||this._setActiveFooter(i,e);else{var l=this._getActiveRowIndex();if(null==l)o||null==this._getActiveHeaderIndex()?o&&null!=this._getActiveFooterIndex()?this._getTableBodyRows().length>0?this._setActiveRow(this._getTableBodyRows().length-1,e,!0,null,null,!0):this._setActiveNoData():this._hasActiveAddRow()?o?this._setActiveHeader(i,e):this._getTableBodyRows().length>0?this._setActiveRow(0,e,!0,null,null,!0):this._setActiveNoData():this._hasActiveNoData()&&(o?this._isAddNewRowEnabled()?this._setActiveAddRow():this._setActiveHeader(i,e):this._setActiveFooter(i,e)):this._isAddNewRowEnabled()?this._setActiveAddRow():this._getTableBodyRows().length>0?this._setActiveRow(0,e,!0,null,null,!0):this._setActiveNoData();else{var n,s,a=this._getTableBodyRows().length;if(n=!t||this._isNavigate||null==this._lastSelectedRowIdx?l:this._lastSelectedRowIdx,s=o?n>0?n-1:n:n<a-1?n+1:n,t)this._isNavigate=!1,this._selectRange(l,s,!0),this._scrollRowIntoViewport(s,!0);else if(this._isNavigate=!0,s!==l){if(!this._setActiveRow(s,e,!0,null,null,!0))return;this._getTable().focus()}else 0===s&&o?this._isAddNewRowEnabled()?this._setActiveAddRow():this._setActiveHeader(i,e):s!==a-1||o||this._setActiveFooter(i,e)}}}},I.prototype._handleKeydownTab=function(e){this._isTableTab=!0;var t,o=this._getActiveRowIndex(),i=this._getTableBody(),l=document.activeElement;if(null!=o&&this._getEditableRowIdx()===o){var n=this._getTableBodyRow(o),s=b.getFocusableElementsInNode(n),a=s.length,r=S(s).index(l),_=this._getTableHeaderColumns(),h=_?_.length-1:0;r!==a-1||e[I._KEYBOARD_CODES._MODIFIER_SHIFT]?0===r&&e[I._KEYBOARD_CODES._MODIFIER_SHIFT]&&(this._setAdjacentRowEditable(h,0,!1,e),e.preventDefault(),e.stopPropagation()):(this._setAdjacentRowEditable(0,h,!0,e),e.preventDefault(),e.stopPropagation())}else if(this._isTableActionableMode()){var d,u;if(d=this._hasActiveHeader()?this._getTableHeaderRow():this._hasActiveFooter()?this._getTableFooterRow():this._getActiveElement(),(t=b.getFocusableElementsInNode(d)).length>1){if(e[I._KEYBOARD_CODES._MODIFIER_SHIFT]){if(l===t[0])S(t[t.length-1]).focus(),e.preventDefault(),e.stopPropagation();else for(u=0;u<t.length;u++)if(l===t[u]){t[u-1].focus(),e.preventDefault(),e.stopPropagation();break}}else if(l===t[t.length-1])S(t[0]).focus(),e.preventDefault(),e.stopPropagation();else for(u=0;u<t.length;u++)if(l===t[u]){t[u+1].focus(),e.preventDefault(),e.stopPropagation();break}}else e.preventDefault(),e.stopPropagation()}else{!b.isFirefox()||this._isStickyLayoutEnabled()||e[I._KEYBOARD_CODES._MODIFIER_SHIFT]||(this._tempFFFocus=!0,i.focus());var c=e.key||e.keyCode;this._removeKeyboardKey(c)}},I.prototype._handleKeydownEnter=function(e){if(!(this._isTableActionableMode()&&!this._hasActiveAddRow()||b.isEventClickthroughDisabled(e,this._getTable()))){var t=this._getActiveHeaderIndex();if(null!=t){if(-1!==t&&this._getColumnDefs()[t].sortable===I._OPTION_ENABLED){var o=this._getTableHeaderColumn(t),i=S(o).data("sorted");null==i||i===I._COLUMN_SORT_ORDER._DESCENDING?this._handleSortTableHeaderColumn(t,!0,e):this._handleSortTableHeaderColumn(t,!1,e)}}else if(null==this._getActiveFooterIndex()){var l=this._getCurrentRow(),n=null!=(l=l||{}).rowIndex?l.rowIndex:-1;if(n>=0)if(this._isTableEditMode()){if(!this._hasEditableRow())return void this._setTableEditable(!0,!1,0,!0,e);var s=this._getElementColumnIdx(e.target);e[I._KEYBOARD_CODES._MODIFIER_SHIFT]?this._setAdjacentRowEditable(s,s,!1,e):this._setAdjacentRowEditable(s,s,!0,e)}else this._fireActionEvent(n,e,!1),this._setTableActionableMode(!0);else this._hasActiveAddRow()&&this._isTableActionableMode()&&this._handleAddRow(!1,e)}}},I.prototype._handleKeydownSpacebar=function(e){if(!this._isTableActionableMode()&&!this._hasEditableRow()){e.preventDefault(),e.stopPropagation();var t=this._getActiveRowIndex();if(null==t){var o=this._getActiveHeaderIndex();if(null==o){var i=this._getActiveFooterIndex();null!=i&&this._handleSelectionGesture(i,!1,!0)}else-1!==o?this._handleSelectionGesture(o,!1,!0):this._isSelectAllControlVisible()&&this._handleSelectAllGesture()}else this._handleSelectionGesture(t,!0,!0)}},I.prototype._handleKeydownF2=function(e){e.preventDefault(),e.stopPropagation(),this._isTableEditMode()?this._hasEditableRow()?this._setTableEditable(!1,!1,0,!0,e):(this._setTableEditable(!0,!1,0,!0,e),this._hasEditableRow()||this._toggleTableActionableMode()):this._toggleTableActionableMode()},I.prototype._handleKeydownEsc=function(e){this._hasEditableRow()?(e.preventDefault(),e.stopPropagation(),this._setTableEditable(!1,!0,0,!0,e)):this._isTableActionableMode()&&(e.preventDefault(),e.stopPropagation(),this._setTableActionableMode(!1)),this._getLayoutManager().handleKeyDownEsc()},I.prototype._handleKeydownHome=function(e){if(!this._isTableActionableMode()&&!this._hasEditableRow())if(null==this._active&&this._syncActiveElement(),this._hasActiveHeader()||this._hasActiveFooter()){var t=this._getFirstVisibleColumnIndex(0,!0);this._hasActiveHeader()?this._setActiveHeader(t,e):this._setActiveFooter(t,e)}else this._hasActiveRow()&&this._setActiveRow(0,e,!0)},I.prototype._handleKeydownEnd=function(e){if(!this._isTableActionableMode()&&!this._hasEditableRow())if(null==this._active&&this._syncActiveElement(),this._hasActiveHeader()||this._hasActiveFooter()){var t=this._getNextVisibleColumnIndex(this._getColumnDefs().length,!1);this._hasActiveHeader()?this._setActiveHeader(t,e):this._setActiveFooter(t,e)}else if(this._hasActiveRow()){var o=this._getTableBodyRows().length;this._setActiveRow(o-1,e,!0)}},I.prototype._columnHeaderDefaultRenderer=function(e,t){var o=e.headerContext.parentElement,i=document.createElement(I.DOM_ELEMENT._DIV);i.classList.add(I.CSS_CLASSES._COLUMN_HEADER_CLASS),S(o).empty(),o.appendChild(i);var l=document.createElement(I.DOM_ELEMENT._DIV);l.classList.add(I.CSS_CLASSES._COLUMN_HEADER_TEXT_CLASS),i.insertBefore(l,i.firstChild),null!=t?t(S(l)):this._columnHeaderDefaultTextRenderer(l,e)},I.prototype._columnHeaderSortableIconRenderer=function(e,t){var o=e.headerContext.parentElement,i=document.createElement(I.DOM_ELEMENT._DIV);i.classList.add(I.CSS_CLASSES._COLUMN_HEADER_CLASS),S(o).empty(),o.appendChild(i);var l=document.createElement(I.DOM_ELEMENT._DIV);l.classList.add(I.CSS_CLASSES._TABLE_SORT_ICON_CONTAINER_CLASS),l.setAttribute(I.DOM_ATTR._TITLE,this.getTranslatedString("labelSortAsc")),l.setAttribute(I.DOM_ATTR._ARIA_HIDDEN,"true"),this._AddHoverable(S(l)),i.appendChild(l);var n=document.createElement(I.DOM_ELEMENT._DIV);n.classList.add(I.CSS_CLASSES._WIDGET_ICON_CLASS),n.classList.add(I.CSS_CLASSES._COLUMN_HEADER_DEFAULT_SORT_ICON_CLASS),n.classList.add(I.MARKER_STYLE_CLASSES._DISABLED),n.classList.add(I.MARKER_STYLE_CLASSES._CLICKABLE_ICON),this._AddHoverable(S(n)),l.appendChild(n);var s=document.createElement(I.DOM_ELEMENT._DIV);s.classList.add(I.CSS_CLASSES._COLUMN_HEADER_TEXT_CLASS),i.insertBefore(s,i.firstChild),null!=t?t(S(s)):this._columnHeaderDefaultTextRenderer(s,e)},I.prototype._columnHeaderDefaultTextRenderer=function(e,t){var o=t.columnIndex,i=this._getColumnDefs()[o],l=null==i.headerText?"":i.headerText;if(e.appendChild(document.createTextNode(l)),!0===i.showRequired&&this._isStickyLayoutEnabled()){var n=e.parentElement,s=this._createRequiredIconDomElement();n.childNodes.length>1?n.insertBefore(s,n.childNodes[1]):n.appendChild(s)}},I.prototype._createRequiredIconDomElement=function(){var e=document.createElement(I.DOM_ELEMENT._SPAN);return e.className=I.CSS_CLASSES._COLUMN_HEADER_SHOW_REQUIRED_ICON_CLASS,e.setAttribute(I.DOM_ATTR._ROLE,"img"),e.setAttribute(I.DOM_ATTR._TITLE,this.getTranslatedString("tooltipRequired")),e},I.prototype._tableBodyRowDefaultRenderer=function(e,t,o){for(var i=this._hashCode(t.key),l=this._getColumnDefs().length,n=0;n<l;n++)this._tableBodyCellDefaultRenderer(e,n,t,i,o)},I.prototype._tableBodyCellDefaultRenderer=function(e,t,o,i,l){var n=l.rowContext.parentElement,s=this._getColumnDefs()[t],a=this._createTableBodyCell();this._styleTableBodyCell(t,a,!0),this._insertTableBodyCell(e,o.key,i,t,a,n,!0);var r=null;null!=s.field&&(r=this._getObjectPath(o.data,s.field));var _=this._getColumnRenderer(t,"cell"),h=this._getSlotTemplate(s.template);if(null==h&&this._isDefaultCellTemplateSlotValid()&&(h=this._getSlotTemplate("cellTemplate")),_||h){var d=this._getRendererContextObject(a,{row:o});d.rowEditable=n[I._DATA_OJ_EDITABLE];var u={cellContext:d,columnIndex:t,data:r,row:o.data,componentElement:d.componentElement,parentElement:d.parentElement};if(_){var c=_(u);null!=c?S(a).append(c):(a=S(n).children()[t],this._setTableBodyCellAttributes(e,o.key,i,t,a),this._styleTableBodyCell(t,a,!1))}else{var E=this._getRootElement(),C=this._getTemplateEngine();if(null!=C){var T=this._getTableBody(),p=this._getCellSlotTemplateContextObject(u),g=C.execute(E,h,p,this.options.as,T);g instanceof Array||(g=[g]),g.map(function(e){a.appendChild(e)}),this._hasCellTemplate=!0}}}else{var A=null==(r=this._getVal(r))?"":r;if(a.appendChild(document.createTextNode(A)),b.isIos()){a.setAttribute(I.DOM_ATTR._ROLE,"text");var f=this._getVoiceOverCellLabelledby(a,t);a.setAttribute(I.DOM_ATTR._ARIA_LABELLEDBY,f)}}},I.prototype._getRendererContextObject=function(e,t){var o={component:f.__GetWidgetConstructor(this.element,"ojTable")},i=this.options.data;if(this._isPagingModelTableDataSource()&&(i=i.getWrappedDataSource()),o.datasource=i,o.parentElement=e,null!=t.row){var l=t.row,n=l.key;if(o.status=this._getRendererStatusObject(l),this._hasEditableRow()){var s=this._getEditableRowKey();u.Object.compareValues(n,s)?o.mode="edit":o.mode="navigation"}else o.mode="navigation";this._copyMetadata(o,l)}return this._FixRendererContext(o)},I.prototype._getRendererStatusObject=function(e){return{rowIndex:e.index,rowKey:e.key,currentRow:S.extend({},this._getCurrentRow())}},I.prototype._getCellSlotTemplateContextObject=function(e,t){var o=this._getSlotTemplateContextObject(),i=e.columnIndex;if(!t){var l=e.cellContext.status.rowIndex,n=e.cellContext.status.rowKey;o[I._CONST_DATA]=e.data,o.row=e.row,o[I._CONST_INDEX]=l,o.mode=e.cellContext.mode,o[I._CONST_KEY]=n;const t=e.parentElement.parentElement;o.item=t[I._ROW_ITEM_EXPANDO],o.rowEditable=this._invokeRowEditableCallback(t[I._ROW_ITEM_EXPANDO])}o.columnIndex=i,o.columnKey=this._getColumnKeyForColumnIdx(e.columnIndex);var s=this.options.data;return this._isPagingModelTableDataSource()&&(s=s.getWrappedDataSource()),o.datasource=s,o},I.prototype._getRowSlotTemplateContextObject=function(e,t){var o=this._getSlotTemplateContextObject();t||(o[I._CONST_DATA]=e.data,o[I._CONST_INDEX]=e.rowContext.status.rowIndex,o[I._CONST_KEY]=e.rowContext.status.rowKey,o.mode=e.rowContext.mode,o.item=e.parentElement[I._ROW_ITEM_EXPANDO],o.editable=this._invokeRowEditableCallback(e.parentElement[I._ROW_ITEM_EXPANDO]),o.rowContext=e.rowContext);var i=this.options.data;return this._isPagingModelTableDataSource()&&(i=i.getWrappedDataSource()),o.datasource=i,o},I.prototype._getHeaderSlotTemplateContextObject=function(e,t){var o=this._getSlotTemplateContextObject();return o[I._CONST_DATA]=e,o.columnIndex=t,o.headerText=e,o.columnKey=this._getColumnKeyForColumnIdx(t),o},I.prototype._getFooterSlotTemplateContextObject=function(e){var t=this._getSlotTemplateContextObject();return t.columnIndex=e,t.columnKey=this._getColumnKeyForColumnIdx(e),t},I.prototype._getSlotTemplateContextObject=function(){return{componentElement:this._getRootElement()}},I.prototype._copyMetadata=function(e,t){var o=t.metadata;if(o)for(var i=Object.keys(o),l=0;l<i.length;l++){var n=i[l];e[n]=o[n]}},I.prototype._getObjectPath=function(e,t){if(null!=e&&("string"==typeof t||t instanceof String)&&(-1!==t.indexOf(".")||-1!==t.indexOf("[")&&-1!==t.indexOf("]"))){var o=e,i=!1;if(t.split(".").map(function(e){if(null!=o&&-1!==e.indexOf("[")&&-1!==e.indexOf("]")){var t=e.substr(0,e.indexOf("[")),l=parseInt(e.substr(e.indexOf("[")+1,e.indexOf("]")-e.indexOf("[")-1),10);o=o[t][l],i=!0}else null!==o&&void 0!==o[e]&&(o=o[e],i=!0)}),i)return o}else if(null==e)return null;return e[t]},I.prototype._getVal=function(e){return"function"==typeof e?e():e},I.prototype._getRowSelectionMode=function(){return null==this.options.selectionMode?null:this.options.selectionMode[I._CONST_ROW]},I.prototype._isRowSelectionEnabled=function(){var e=this._getRowSelectionMode();return e===I._OPTION_SELECTION_MODES._SINGLE||e===I._OPTION_SELECTION_MODES._MULTIPLE},I.prototype._getColumnSelectionMode=function(){return null==this.options.selectionMode?null:this.options.selectionMode[I._CONST_COLUMN]},I.prototype._isColumnSelectionEnabled=function(){var e=this._getColumnSelectionMode();return e===I._OPTION_SELECTION_MODES._SINGLE||e===I._OPTION_SELECTION_MODES._MULTIPLE},I.prototype._syncSelectionState=function(){var e=this.option("selected"),t=this.option("selection");this._selectionSet&&(e=this._getSelectedEquivalent(t),this._syncRangeSelection()),this._isSelectionRequiredSatisfied(e)?this._setSelected(e,this._selectionSet):this._selectFirstRowOrColumn()},I.prototype._updateSelectionStateFromEventDetailRemove=function(e,t){var o=this.option("selected"),i=o.row;i&&(e[I._CONST_KEYS].forEach(function(e){null!=t&&t[I._CONST_KEYS].has(e)||(i.isAddAll()?i.has(e)||(i=i.add([e])):i=i.delete([e]))}),o.row!==i&&(o={row:i,column:o.column},this._isSelectionRequiredSatisfied(o)?this._setSelected(o):this._selectFirstRowOrColumn()))},I.prototype._updateSelectionStateFromEventDetailChange=function(e){var t=this.option("firstSelectedRow");if(null!=t){var o=[];e[I._CONST_KEYS].forEach(function(e){o.push(e)});for(var i=0;i<o.length;i++){var l=o[i],n=e[I._CONST_DATA][i];if(u.KeyUtils.equals(l,t.key)&&this.option("firstSelectedRow",{key:l,data:n},{_context:{writeback:!0,internalSet:!0}}),null!=this._validatedSelectedRowKeyData)for(var s=0;s<this._validatedSelectedRowKeyData.length;s++){var a=this._validatedSelectedRowKeyData[s];if(u.KeyUtils.equals(l,a.key)){this._validatedSelectedRowKeyData[s]=n;break}}}}},I.prototype._validateInitialSelectionState=function(e){var t,o,i=this.option("selection"),l=this.option("selected"),n=l.row,s=l.column;if(this._validatedSelectedRowKeyData=null,(this._selectionSet||!e&&null!=i&&0!==i.length&&n===n.clear()&&s===s.clear())&&(l=this._getSelectedEquivalent(i),t=!0),this._isSelectionRequired())if((o=this._validateSelected(l)).isLocal)this._enforceSelectionRequired(l,o.result,t);else{var a=this._createComponentBusyState("is validating selection-required keys.");o.result.then(function(e){this._enforceSelectionRequired(l,e,t),this._clearComponentBusyState(a)}.bind(this))}else t&&this._syncRangeSelection(),this._setSelected(l,t);this._initialSelectionStateValidated=!0},I.prototype._isSelectionRequired=function(){return"true"===String(this.options.selectionRequired).toLowerCase()},I.prototype._hasSelected=function(e){null==e&&(e=this.option("selected"));var t=e.row,o=e.column;return t.isAddAll()||t.values().size>0||o.isAddAll()||o.values().size>0},I.prototype._isSelectionRequiredSatisfied=function(e){return!this._isSelectionRequired()||this._hasSelected(e)},I.prototype._enforceSelectionRequired=function(e,t,o){o?this._hasSelected(t)?t.row===e.row&&t.column===e.column?(this._syncRangeSelection(),this._setSelected(t,!0)):this._setSelected(t):this._selectFirstRowOrColumn():this._hasSelected(t)?this._setSelected(t):this._selectFirstRowOrColumn()},I.prototype._selectFirstRowOrColumn=function(){var e,t;if(this._isRowSelectionEnabled()&&null!=(t=this._getRowKeyForRowIdx(0)))return e=new y.KeySetImpl([t]),void this._setSelected({row:e,column:new y.KeySetImpl});this._isColumnSelectionEnabled()&&null!=(t=this._getColumnKeyForColumnIdx(0))&&(e=new y.KeySetImpl([t]),this._setSelected({row:new y.KeySetImpl,column:e}))},I.prototype._validateSelected=function(e){var t=e.column,o=t;if(!t.isAddAll()){var i=this._getColumnKeys(),l=[];t.values().forEach(function(e){-1===i.indexOf(e)&&l.push(e)}),l.length>0&&(o=o.delete(l))}var n=e.row,s=n;if(!n.isAddAll()){var a=this._getLocalRowKeys(),r=[];if(n.values().forEach(function(e){-1===a.indexOf(e)&&r.push(e)}),r.length>0){var _=this._fetchValidRowKeyData(r);if(_)return{isLocal:!1,result:_.then(function(e){return this._validatedSelectedRowKeyData=e,e.forEach(function(e){r.splice(r.indexOf(e.key),1)}),{row:s=s.delete(r),column:o}}.bind(this))};s=s.delete(r)}}return{isLocal:!0,result:{row:s,column:o}}},I.prototype._fetchValidRowKeyData=function(e){var t=this._getData();if(t&&t.getCapability){var o=t.getCapability("fetchByKeys");if(o&&"lookup"===o.implementation)return new Promise(function(o){t.fetchByKeys({keys:new Set(e),scope:"global"}).then(function(e){var t=[];e.results.forEach(function(e,o){t.push({key:o,data:e.data})}),o(t)},function(){o([])})})}return null},I.prototype._syncRangeSelection=function(e){if(void 0===e&&(e=this.option("selection")),null!=e)for(var t=e.length,o=0;o<t;o++){var i,l,n,s,a=e[o];null!=a.startKey&&null!=a.startKey[I._CONST_ROW]?(i=a.startKey[I._CONST_ROW],l=this._getDataSourceRowIndexForRowKey(i),a.startIndex={},a.startIndex[I._CONST_ROW]=l):null!=a.startIndex&&null!=a.startIndex[I._CONST_ROW]&&(l=a.startIndex[I._CONST_ROW],null!=(i=this._getRowKeyForDataSourceRowIndex(l))&&(a.startKey={},a.startKey[I._CONST_ROW]=i)),null!=a.endKey&&null!=a.endKey[I._CONST_ROW]?(n=a.endKey[I._CONST_ROW],s=this._getDataSourceRowIndexForRowKey(n),a.endIndex={},a.endIndex[I._CONST_ROW]=s):null!=a.endIndex&&null!=a.endIndex[I._CONST_ROW]&&(s=a.endIndex[I._CONST_ROW],null!=(n=this._getRowKeyForDataSourceRowIndex(s))&&(a.endKey={},a.endKey[I._CONST_ROW]=n))}},I.prototype._processRowRangeSelection=function(e,t,o){var i,l,n,s,a,r,_=!0;if(null!=e.startKey&&null!=e.startKey[I._CONST_ROW]?(a=e.startKey[I._CONST_ROW],i=this._getDataSourceRowIndexForRowKey(a),isNaN(i)&&(_=null)):null!=e.startIndex&&null!=e.startIndex[I._CONST_ROW]&&(i=e.startIndex[I._CONST_ROW]),null!=e.endKey&&null!=e.endKey[I._CONST_ROW])r=e.endKey[I._CONST_ROW],null===(l=this._getDataSourceRowIndexForRowKey(r))&&this._isLoadMoreOnScroll()&&(l=this._getDataSourceLastFetchedRowIndex(),_=null);else if(null!=e.endIndex&&null!=e.endIndex[I._CONST_ROW]){l=e.endIndex[I._CONST_ROW];var h=this._getDataSourceLastFetchedRowIndex();this._isLoadMoreOnScroll()&&l>h&&(l=h,_=null)}if(void 0===i&&void 0===l)_=!1;else if(null!=i&&null!=l&&i<=l){a=this._getRowKeyForDataSourceRowIndex(i),r=this._getRowKeyForDataSourceRowIndex(l),n=this._getRowIdxForRowKey(a),s=this._getRowIdxForRowKey(r);for(var d=n;d<=s;d++){var u=this._getRowKeyForRowIdx(d);t=t.add([u])}o=o.clear()}else C.warn("Error: Cannot resolve row range in selection - \n start row key: "+a+"\n end row key: "+r+"\n start row index: "+i+"\n end row index: "+l),null!=a&&null!=r&&(t=(t=t.add([a])).add([r]),o=o.clear());return{status:_,rowKeySet:t,columnKeySet:o}},I.prototype._getDataSourceLastFetchedRowIndex=function(){var e=this._getTableBodyRows();if(e.length>0){var t=this._getData(),o=0;return this._isPagingModelDataProvider()&&(o=t.getStartItemIndex()),e.length+o-1}return 0},I.prototype._processColumnRangeSelection=function(e,t,o){var i,l,n,s,a=!0;if(null!=e.startKey&&null!=e.startKey[I._CONST_COLUMN]?(i=e.startKey[I._CONST_COLUMN],n=this._getColumnIdxForColumnKey(i)):null!=e.startIndex&&null!=e.startIndex[I._CONST_COLUMN]&&(n=e.startIndex[I._CONST_COLUMN]),null!=e.endKey&&null!=e.endKey[I._CONST_COLUMN]?(l=e.endKey[I._CONST_COLUMN],s=this._getColumnIdxForColumnKey(l)):null!=e.endIndex&&null!=e.endIndex[I._CONST_COLUMN]&&(s=e.endIndex[I._CONST_COLUMN]),void 0===n&&void 0===s)a=!1;else if(null!=n&&null!=s&&!isNaN(n)&&!isNaN(s)&&n<=s){for(var r=n;r<=s;r++){var _=this._getColumnKeyForColumnIdx(r);o=o.add([_])}t=t.clear()}else C.error("Error: Cannot resolve column range in selection - \n start column key: "+i+"\n end column key: "+l+"\n start column index: "+n+"\n end column index: "+s);return{status:a,rowKeySet:t,columnKeySet:o}},I.prototype._invalidateRangeSelection=function(){var e=this.option("selection");if(null!=e)for(var t=0;t<e.length;t++){var o,i,l=e[t];if(null!=l.startKey&&(o=l.startKey[I._CONST_ROW]),null!=l.endKey&&(i=l.endKey[I._CONST_ROW]),o!==i||void 0===o){var n=this.option("selected.row"),s=this._getRowSelectionFromKeySet(n);this.option("selection",s,{_context:{writeback:!0,internalSet:!0}});break}}},I.prototype._setSelected=function(e,t){if(this._selectionSet=t,null!=e){var o;null==e.row&&(e.row=new y.KeySetImpl),null==e.column&&(e.column=new y.KeySetImpl);var i=this.option("selected");if(this._selectionSet?b.areKeySetsEqual(i.row,e.row)&&b.areKeySetsEqual(i.column,e.column)||(o=!0):i.row===e.row&&i.column===e.column||(o=!0),o&&(this.option("selected",e,{_context:{writeback:!0,internalSet:!0}}),this._isSelectionRequired()&&this._validatedSelectedRowKeyData))for(var l=this._validatedSelectedRowKeyData.length-1;l>=0;l--){var n=this._validatedSelectedRowKeyData[l];e.row.has(n.key)||this._validatedSelectedRowKeyData.splice(l,1)}this._isDefaultSelectorEnabled()&&this._updateSelector(e.row),this._applySelected(e);var s=null,a=this._getRowSelectionFromKeySet(e.row);if(null!=a&&a.length>0){var r=a[0];null!=r.startKey&&(s=r.startKey[I._CONST_ROW])}if(this._setFirstSelectedRow(s),!t){var _=this._getSelectionEquivalent(e);this.option("selection",_,{_context:{writeback:!0,internalSet:!0}})}}},I.prototype._setFirstSelectedRow=function(e){var t=this.option("firstSelectedRow");if(!u.KeyUtils.equals(e,t.key)||!this._initialSelectionStateValidated){var o=null;if(null!=e){var i=this.getDataForVisibleRow(this._getRowIdxForRowKey(e));if(null!=i)o=i[I._CONST_DATA];else if(this._validatedSelectedRowKeyData)for(var l=0;l<this._validatedSelectedRowKeyData.length;l++){var n=this._validatedSelectedRowKeyData[l];if(u.KeyUtils.equals(e,n.key)){o=n.data;break}}}this.option("firstSelectedRow",{key:e,data:o},{_context:{writeback:!0,internalSet:!0}})}},I.prototype._getSelectedEquivalent=function(e){var t;if(null!=e){for(var o=(t={row:new y.KeySetImpl,column:new y.KeySetImpl}).row,i=t.column,l=e.length,n=0;n<l;n++){var s=e[n];if(null==s.startKey&&null==s[I._CONST_STARTINDEX]||null==s.endKey&&null==s[I._CONST_ENDINDEX])C.error("Error: Invalid range object in selection. Both start and end objects must be specified");else{var a=this._processRowRangeSelection(s,o,i);o=a.rowKeySet,i=a.columnKeySet,!1===a.status&&(!1===(a=this._processColumnRangeSelection(s,o,i)).status&&C.error("Error: Invalid range object"),o=a.rowKeySet,i=a.columnKeySet)}}t.row===o&&t.column===i||(t={row:o,column:i})}else t={row:new y.KeySetImpl,column:new y.KeySetImpl};return t},I.prototype._getSelectionEquivalent=function(e){var t=this._getRowSelectionFromKeySet(e.row);return t.length>0||t.inverted||(t=this._getColumnSelectionFromKeySet(e.column)).length>0||t.inverted?t:[]},I.prototype._getRowSelectionFromKeySet=function(e){var t=[];return(e.isAddAll()?e.deletedValues():e.values()).forEach(function(e){var o={startKey:{row:e},endKey:{row:e}},i=this._getDataSourceRowIndexForRowKey(e);!isNaN(i)&&i>=0&&(o.startIndex={row:i},o.endIndex={row:i}),t.push(o)},this),t.inverted=e.isAddAll(),t},I.prototype._getColumnSelectionFromKeySet=function(e){var t=[];return(e.isAddAll()?e.deletedValues():e.values()).forEach(function(e){var o={startKey:{column:e},endKey:{column:e}},i=this._getColumnIdxForColumnKey(e);i>=0&&(o.startIndex={column:i},o.endIndex={column:i}),t.push(o)},this),t.inverted=e.isAddAll(),t},I.prototype._applySelected=function(e){var t=e.row,o=e.column;if(this._getSelectedRowIdxs().forEach(function(e){var o=this._getTableBodyRow(e);const i=o[I._DATA_OJ_SELECTABLE]!==I._CONST_OFF;!t.has(this._getRowKey(o))&&i&&(this._applyRowSelection(e,o,!1),this._setLastRowSelection(e,!1))},this),this._isRowSelectionEnabled())if(t.isAddAll()){let e;this._getTableBodyRows().forEach(function(o,i){const l=o[I._DATA_OJ_SELECTABLE]!==I._CONST_OFF,n=this._getRowKey(o);t.has(n)&&l&&(this._applyRowSelection(i,o,!0),e=i)},this),e&&this._setLastRowSelection(e,!0)}else t.values().forEach(function(e){var t=this._getRowIdxForRowKey(e);if(null!=t&&t>=0){const e=this._getTableBodyRow(t);e[I._DATA_OJ_SELECTABLE]!==I._CONST_OFF&&(this._applyRowSelection(t,e,!0),this._setLastRowSelection(t,!0))}},this);if(0===this._getSelectedRowIdxs().length&&this._removeTableBodyRowTouchSelectionAffordance(),this._getSelectedHeaderColumnIdxs().forEach(function(e){o.has(this._getColumnKeyForColumnIdx(e))||this._applyColumnSelection(e,!1)},this),this._isColumnSelectionEnabled())if(o.isAddAll()){var i=this._getTableHeaderColumns();i.forEach(function(e,t){o.has(this._getColumnKeyForColumnIdx(t))&&this._applyColumnSelection(t,!0)},this);var l=i.length-1,n=this._getColumnKeyForColumnIdx(l);this._setLastHeaderColumnSelection(l,o.has(n))}else o.values().forEach(function(e){var t=this._getColumnIdxForColumnKey(e);null!=t&&t>=0&&this._applyColumnSelection(t,!0)},this)},I.prototype._applyRowSelection=function(e,t,o){if(t.classList.contains(I.MARKER_STYLE_CLASSES._SELECTED)!==o){o?t.classList.add(I.MARKER_STYLE_CLASSES._SELECTED):t.classList.remove(I.MARKER_STYLE_CLASSES._SELECTED);var i=this.options.dnd.drag;i&&("rows"===i||i.rows)&&this._getTableDndContext().setElementDraggable(t,o)}o?this._updateRowStateCellsClass(e,null,{hover:!1,selected:!0}):this._updateRowStateCellsClass(e,null,{selected:!1})},I.prototype._applyColumnSelection=function(e,t){var o=this.options.dnd.reorder;if(o&&o.columns===I._OPTION_ENABLED){var i=this._getTableHeaderColumn(e);this._getTableDndContext().setElementDraggable(i,t)}this._setColumnState(e,t)},I.prototype._setLastRowSelection=function(e,t){this._lastSelectedRowIdxArray||(this._lastSelectedRowIdxArray=[]);for(var o=this._lastSelectedRowIdxArray.length,i=0;i<o;i++)if(this._lastSelectedRowIdxArray[i]===e){this._lastSelectedRowIdxArray.splice(i,1);break}t&&this._lastSelectedRowIdxArray.push(e)},I.prototype._setLastHeaderColumnSelection=function(e,t){this._lastSelectedColumnIdxArray||(this._lastSelectedColumnIdxArray=[]);for(var o=this._lastSelectedColumnIdxArray.length,i=0;i<o;i++)if(this._lastSelectedColumnIdxArray[i]===e){this._lastSelectedColumnIdxArray.splice(i,1);break}t&&this._lastSelectedColumnIdxArray.push(e)},I.prototype._handleSelectionGesture=function(e,t,o){var i,l=this.option("selected"),n=l.row,s=l.column;if(t){s=s.clear();const t=this._getTableBodyRow(e);if(this._isRowSelectionEnabled()&&t&&t[I._DATA_OJ_SELECTABLE]!==I._CONST_OFF){var a=this._getRowKeyForRowIdx(e),r=this._getRowSelectionMode();n.has(a)?this._isStickyLayoutEnabled()?(n=o?n.delete([a]):new y.KeySetImpl([a]),i=!o):!o&&this._getSelectedRowIdxs().length>1&&r===I._OPTION_SELECTION_MODES._MULTIPLE?(n=new y.KeySetImpl([a]),i=!0):(n=n.delete([a]),i=!1):(n=o&&r===I._OPTION_SELECTION_MODES._MULTIPLE?n.add([a]):new y.KeySetImpl([a]),i=!0)}}else if(this._isColumnSelectionEnabled()){n=n.clear();var _=this._getColumnSelectionMode();if(e>-1){var h=this._getColumnKeyForColumnIdx(e);s.has(h)?this._isStickyLayoutEnabled()?(s=o?s.delete([h]):new y.KeySetImpl([h]),i=!o):!o&&this._getSelectedHeaderColumnIdxs().length>1&&_===I._OPTION_SELECTION_MODES._MULTIPLE?(s=new y.KeySetImpl([h]),i=!0):(s=s.delete([h]),i=!1):(s=o&&_===I._OPTION_SELECTION_MODES._MULTIPLE?s.add([h]):new y.KeySetImpl([h]),i=!0)}}l.row===n&&l.column===s||(l={row:n,column:s},this._isSelectionRequiredSatisfied(l)&&(this._announceAccSelectionUpdate(i),this._setSelected(l)))},I.prototype._handleSelectAllGesture=function(){var e=this.option("selected"),t=e.row,o=e.column;o=o.clear(),t=t.isAddAll()?new y.KeySetImpl:new y.AllKeySetImpl,e.row===t&&e.column===o||(e={row:t,column:o},this._isSelectionRequiredSatisfied(e)&&this._setSelected(e))},I.prototype._handleMouseEnterSelection=function(e,t){if(this._isRowSelectionEnabled()){var o=this._getElementRowIdx(e);null!=this._mouseDownRowIdx&&null!=o&&this._mouseDownRowIdx!==o?(this._getRowSelectionMode()===I._OPTION_SELECTION_MODES._MULTIPLE&&this._selectRange(this._mouseDownRowIdx,o,!0),o<this._mouseDownRowIdx?this._moveTableBodyRowTouchSelectionAffordanceTop(o):this._moveTableBodyRowTouchSelectionAffordanceBottom(o)):null!=o&&o===this._mouseDownRowIdx&&(t?(this._selectRange(o,o,!0),this._moveTableBodyRowTouchSelectionAffordanceTop(o),this._moveTableBodyRowTouchSelectionAffordanceBottom(o)):this._clearSelectedRows())}},I.prototype._selectRange=function(e,t,o){var i,l=this.option("selected"),n=l.row,s=l.column;if(o){if(s=s.clear(),this._isRowSelectionEnabled()){if(n=n.clear(),e<=t)for(i=e;i<=t;i++){const e=this._getRowKeyForRowIdx(i),t=this._findRowElementByKey(e);t&&t[I._DATA_OJ_SELECTABLE]!==I._CONST_OFF&&(n=n.add([e]))}else for(i=e;i>=t;i--){const e=this._getRowKeyForRowIdx(i),t=this._findRowElementByKey(e);t&&t[I._DATA_OJ_SELECTABLE]!==I._CONST_OFF&&(n=n.add([e]))}this._lastSelectedRowIdx=t}}else if(n=n.clear(),this._isColumnSelectionEnabled()){if(s=s.clear(),e<=t)for(i=e;i<=t;i++)s=s.add([this._getColumnKeyForColumnIdx(i)]);else for(i=e;i>=t;i--)s=s.add([this._getColumnKeyForColumnIdx(i)]);this._lastSelectedHeaderIdx=t}l.row===n&&l.column===s||(l={row:n,column:s},this._isSelectionRequiredSatisfied(l)&&this._setSelected(l))},I.prototype._getRowSelection=function(e){return this._getTableBodyRow(e).classList.contains(I.MARKER_STYLE_CLASSES._SELECTED)},I.prototype._getHeaderColumnSelection=function(e){return this._getTableHeaderColumn(e).classList.contains(I.MARKER_STYLE_CLASSES._SELECTED)},I.prototype._getFooterColumnSelection=function(e){return this._getTableFooterCell(e).classList.contains(I.MARKER_STYLE_CLASSES._SELECTED)},I.prototype._getSelectedRowIdxs=function(){return this._getRowIdxsForElementsWithStyleClass("."+I.CSS_CLASSES._TABLE_DATA_ROW_CLASS+"."+I.MARKER_STYLE_CLASSES._SELECTED)},I.prototype._getSelectedHeaderColumnIdxs=function(){return this._getColumnIdxsForElementsWithStyleClass("."+I.CSS_CLASSES._COLUMN_HEADER_CELL_CLASS+"."+I.MARKER_STYLE_CLASSES._SELECTED)},I.prototype._getSelectedFooterColumnIdxs=function(){return this._getColumnIdxsForElementsWithStyleClass("."+I.CSS_CLASSES._TABLE_FOOTER_CELL_CLASS+"."+I.MARKER_STYLE_CLASSES._SELECTED)},I.prototype._clearSelectedRows=function(){this._selectionAnchorIdx=null,this._lastSelectedRowIdx=null;var e=this.option("selected.row"),t=e.clear();if(t!==e){var o={row:t,column:this.option("selected.column")};this._setSelected(o)}},I.prototype._clearSelectionState=function(){if(this._selectionAnchorIdx=null,this._lastSelectedRowIdx=null,this._lastSelectedHeaderIdx=null,this._hasSelected()){var e={row:new y.KeySetImpl,column:new y.KeySetImpl};this._setSelected(e)}},I.prototype._selectedKeysChangedListener=function(e){if("internal"===e.detail.updatedFrom)if(e.detail.value.isAddAll())this._setSelected({row:e.detail.value,column:new y.KeySetImpl},!1,!0);else{let t=this.option("selected").row;if(null==e.target.rowKey)return void this._setSelected({row:new y.KeySetImpl,column:new y.KeySetImpl},!1,!0);t=t.has(e.target.rowKey)?t.delete([e.target.rowKey]):t.add([e.target.rowKey]);let o=this._getTable().getElementsByClassName(I.CSS_CLASSES._TABLE_HEADER_SELECTOR_CLASS)[0];if(o){let e=this._getTableBodyRows(),i=t.values?t.values().size:t.deletedValues().size;0!==i&&e.length!==i?o.indeterminate=!0:o.indeterminate=!1}this._setSelected({row:t,column:new y.KeySetImpl},!1,!0)}},I.prototype._updateSelector=function(e){let t=this._getTable(),o=t.getElementsByClassName(I.CSS_CLASSES._TABLE_HEADER_SELECTOR_CLASS);if(o.length>0){o[0].selectedKeys=e;let t=this._getTableBodyRows(),i=e.values?e.values().size:e.deletedValues().size;0!==i&&t.length!==i?o[0].indeterminate=!0:o[0].indeterminate=!1}let i=t.querySelectorAll(`\n .${I.CSS_CLASSES._TABLE_DATA_ROW_CLASS}.${I.MARKER_STYLE_CLASSES._SELECTED} >\n .${I.CSS_CLASSES._TABLE_SELECTOR_CELL}`);if(e.isAddAll()){let o=Array.from(t.getElementsByClassName(I.CSS_CLASSES._TABLE_DATA_ROW_SELECTOR_CLASS));for(let t=0;t<o.length;t++)e.has(o[t].rowKey)?o[t].selectedKeys=new y.KeySetImpl([o[t].rowKey]):o[t].selectedKeys=new y.KeySetImpl([])}else{i.forEach(t=>{let o=t.firstChild;e.has(o.rowKey)?e.delete([o.rowKey]):o.selectedKeys=new y.KeySetImpl([])});let o=Array.from(t.getElementsByClassName(I.CSS_CLASSES._TABLE_DATA_ROW_SELECTOR_CLASS));for(let t=0;t<o.length;t++)e.has(o[t].rowKey)&&(o[t].selectedKeys=new y.KeySetImpl([o[t].rowKey]))}},I.prototype.version="1.0.0",I.prototype.defaultElement="<table>",I.prototype.widgetEventPrefix="oj",I.prototype.options={accessibility:null,addRowDisplay:"top",animateStart:null,animateEnd:null,as:"",currentRow:null,data:null,display:"list",dnd:{drag:null,drop:null,reorder:{columns:"disabled"}},editMode:"none",editRow:{rowKey:null,rowIndex:-1},emptyText:null,horizontalGridVisible:"auto",layout:"contents",row:{editable:null,selectable:null,sticky:null},rowRenderer:null,scrollToKey:"auto",scrollPolicy:"auto",scrollPolicyOptions:{fetchSize:25,maxCount:500,scroller:null,scrollerOffsetBottom:null,scrollerOffsetStart:null,scrollerOffsetEnd:null,scrollerOffsetTop:null},scrollPosition:{x:0,y:0},selectAllControl:"visible",firstSelectedRow:{key:null,data:null},selection:[],selected:{row:new y.KeySetImpl,column:new y.KeySetImpl},selectionMode:null,selectionRequired:!1,verticalGridVisible:"auto",columns:[{className:null,field:null,footerClassName:null,footerRenderer:null,footerStyle:null,footerTemplate:null,frozenEdge:null,headerClassName:null,headerRenderer:null,headerStyle:null,headerTemplate:null,headerText:null,renderer:null,resizable:"disabled",id:null,sortProperty:null,sortable:"auto",style:null,template:null,minWidth:null,maxWidth:null,weight:null,width:null}],columnsDefault:{className:null,field:null,footerClassName:null,footerRenderer:null,footerStyle:null,footerTemplate:null,headerClassName:null,headerRenderer:null,headerStyle:null,headerTemplate:null,headerText:null,renderer:null,resizable:"disabled",sortProperty:null,sortable:"auto",style:null,template:null,minWidth:"auto",maxWidth:null,weight:1,width:null},beforeCurrentRow:null,beforeRowEdit:null,beforeRowEditEnd:null,beforeRowAddEnd:null,ready:null,rowAction:null,sort:null},I.prototype.getContextByNode=function(e){var t=this.getSubIdByNode(e,!0);if(t&&t.subId===I._SUB_ID._TABLE_CELL){var o=t.rowIndex,i=this._getRowKeyForRowIdx(o);t.key=i}return t},I.prototype.getDataForVisibleRow=function(e){var t=this._getTableBodyRow(e);return null!=t?{key:t[I._ROW_ITEM_EXPANDO].key,data:t[I._ROW_ITEM_EXPANDO].data,index:e}:null},I.prototype.getNodeBySubId=function(e){if(null==e)return this.element?this.element[0]:null;var t,o=e.subId;if(o===I._SUB_ID._TABLE_CELL){var i=parseInt(e.rowIndex,10);return t=parseInt(e.columnIndex,10),this._getTableBodyLogicalCells(i)[t]}if(o===I._SUB_ID._TABLE_HEADER||o===I._SUB_ID._TABLE_SORT_ASCENDING||o===I._SUB_ID._TABLE_SORT_DESCENDING){t=e.index;var l=this._getTableHeaderLogicalColumns()[t];if(null!=l){if(o===I._SUB_ID._TABLE_HEADER)return l;if(o===I._SUB_ID._TABLE_SORT_ASCENDING){var n=this._getTableElementsByClassName(l,I.CSS_CLASSES._COLUMN_HEADER_ASC_ICON_CLASS);if(n.length>0)return n[0]}else{var s=this._getTableElementsByClassName(l,I.CSS_CLASSES._COLUMN_HEADER_DSC_ICON_CLASS);if(s.length>0)return s[0]}}}else if(o===I._SUB_ID._TABLE_FOOTER){t=e.index;var a=this._getTableFooterLogicalCells()[t];if(null!=a)return a}return null},I.prototype.getSubIdByNode=function(e,t){var o=this._getFirstAncestor(e,"."+I.CSS_CLASSES._TABLE_DATA_CELL_CLASS,!0);if(null!=o)return{subId:I._SUB_ID._TABLE_CELL,rowIndex:this._getElementRowIdx(o),columnIndex:this._getElementColumnIdx(o)};var i=this._getFirstAncestor(e,"."+I.CSS_CLASSES._COLUMN_HEADER_ASC_ICON_CLASS,!0);if(null!=i)return{subId:t?I._SUB_ID._TABLE_HEADER:I._SUB_ID._TABLE_SORT_ASCENDING,index:this._getElementColumnIdx(i)};var l=this._getFirstAncestor(e,"."+I.CSS_CLASSES._COLUMN_HEADER_DSC_ICON_CLASS,!0);if(null!=l)return{subId:t?I._SUB_ID._TABLE_HEADER:I._SUB_ID._TABLE_SORT_DESCENDING,index:this._getElementColumnIdx(l)};var n=this._getFirstAncestor(e,"."+I.CSS_CLASSES._COLUMN_HEADER_CELL_CLASS,!0);if(null!=n)return{subId:I._SUB_ID._TABLE_HEADER,index:this._getElementColumnIdx(n)};var s=this._getFirstAncestor(e,"."+I.CSS_CLASSES._TABLE_FOOTER_CELL_CLASS,!0);return null!=s?{subId:I._SUB_ID._TABLE_FOOTER,index:this._getElementColumnIdx(s)}:null},I.prototype.refresh=function(){this._super(),this._refresh()},I.prototype.refreshRow=function(e){if(!this._getData())return Promise.resolve(!1);var t=this._getTableBodyRows();if(isNaN(e)||e<0||e>=t.length||0===t.length){var o=I._LOGGER_MSG._ERR_REFRESHROW_INVALID_INDEX_SUMMARY,i=g.applyParameters(I._LOGGER_MSG._ERR_REFRESHROW_INVALID_INDEX_DETAIL,{rowIdx:e.toString()});throw new RangeError(o+"\n"+i)}return this._queueTask(function(){return this._refreshRow(e,!0,!0)}.bind(this))},I.prototype.widget=function(){var e=this._getTableContainer();return null!=e?S(e):this.element},I.prototype._ComponentCreate=function(){this._super(),this._initTemplateEngine(),this._draw(),this._registerCustomEvents(),this._on(this._events),this._isTouchDevice()&&this._registerTouchEvents(),this._registerDomEventListeners(),this._setEditableRowIdx(null),b.disableDefaultBrowserStyling(this.element[0])},I.prototype._AfterCreate=function(){this._super(),this._createContextMenuContainer(),this._isInitFetch=!0},I.prototype._SetupResources=function(){this._super(),this._registerResizeListener(),this._registerDataSourceEventListeners(),this._isInitFetch?(this._initFetch(),this._isInitFetch=!1):this._queueTask(function(){return this._getLayoutManager().notifyTableUpdate(I._UPDATE._REFRESH),this._invokeDataFetchRows()}.bind(this))},I.prototype._ReleaseResources=function(){this._super(),this._cleanComponent()},I.prototype._destroy=function(){this._cleanComponent(!0)},I.prototype._NotifyAttached=function(){this._super(),this._scrollTop=void 0,this._scrollLeft=void 0,this._IsCustomElement()?this._initializeNotifyAttachedTimeout():(this._getLayoutManager().notifyTableUpdate(I._UPDATE._ATTACHED),this._hasPendingTasks()||this._syncTableSizing())},I.prototype._NotifyDetached=function(){this._super(),this._clearNotifyAttachedTimeout()},I.prototype._initializeNotifyAttachedTimeout=function(){this._clearNotifyAttachedTimeout(),this._notifyAttachedTimeout=setTimeout(function(){this._hasPendingTasks()||this._syncScrollPosition(),this._notifyAttachedTimeout=null}.bind(this),0)},I.prototype._clearNotifyAttachedTimeout=function(){null!=this._notifyAttachedTimeout&&(clearTimeout(this._notifyAttachedTimeout),this._notifyAttachedTimeout=null)},I.prototype._NotifyHidden=function(){this._super(),this._getLayoutManager().clearCachedDimensions()},I.prototype._NotifyShown=function(){this._super(),this._getLayoutManager().notifyTableUpdate(I._UPDATE._SHOWN),this._hasPendingTasks()||this._syncTableSizing()},I.prototype._VerifyConnectedForSetup=function(){return!0},I.prototype._GetDefaultContextMenu=function(){return this._defaultContextMenu},I.prototype._NotifyContextMenuGesture=function(e,t,o){var i={};if(this._contextMenuEvent=t.originalEvent,!(this._isNodeEditable(this._contextMenuEvent.target)||this._isNodeClickable(this._contextMenuEvent.target)||"touch"===o&&this._isNodeDraggable(this._contextMenuEvent.target))){var l,n=this._getFirstAncestor(this._contextMenuEvent.target,"."+I.CSS_CLASSES._TABLE_DATA_CELL_CLASS,!0);if(null!=n){var s=this._getElementColumnIdx(n);l=this._getTableHeaderColumn(s)}else l=this._getFirstAncestor(this._contextMenuEvent.target,"."+I.CSS_CLASSES._COLUMN_HEADER_CELL_CLASS,!0);if("keydown"===this._contextMenuEvent.type){var a=this._getTable();if(null==l&&(l=this._getActiveHeaderColumn()),this._contextMenuEvent.target===a)if(null!=l)i.position={my:I._POSITION._START_TOP,at:I._POSITION._START_BOTTOM,of:l};else{var r=this._getActiveRowIndex();if(r>=0){var _=this._getTableBodyRow(r);i.position={my:I._POSITION._START_TOP,at:I._POSITION._START_BOTTOM,of:_}}else i.position={my:I._POSITION._START_TOP,at:I._POSITION._START_BOTTOM,of:this._contextMenuEvent.target}}else i.position={my:I._POSITION._START_TOP,at:I._POSITION._START_BOTTOM,of:this._contextMenuEvent.target}}else{var h=this._getFirstAncestor(this._contextMenuEvent.target,"."+I.CSS_CLASSES._TABLE_FOOTER_CELL_CLASS,!0);if(null==l&&null==n&&null==h)return}this._contextMenuEventHeaderColumn=l;var d=e.element?e.element[0]:e;this._populateContextMenuItems(d,this._handleContextMenuSelect.bind(this));var u=d.querySelectorAll("[data-oj-command=oj-table-sortAsc]");u.length>0&&(u=u[0],l&&l.getAttribute("data-oj-sortable")===I._OPTION_ENABLED?"OJ-OPTION"===u.nodeName?u.removeAttribute("disabled"):u.classList.remove(I.MARKER_STYLE_CLASSES._DISABLED):"OJ-OPTION"===u.nodeName?u.setAttribute("disabled","true"):u.classList.add(I.MARKER_STYLE_CLASSES._DISABLED));var c=d.querySelectorAll("[data-oj-command=oj-table-sortDsc]");c.length>0&&(c=c[0],l&&l.getAttribute("data-oj-sortable")===I._OPTION_ENABLED?"OJ-OPTION"===c.nodeName?c.removeAttribute("disabled"):c.classList.remove(I.MARKER_STYLE_CLASSES._DISABLED):"OJ-OPTION"===c.nodeName?c.setAttribute("disabled","true"):c.classList.add(I.MARKER_STYLE_CLASSES._DISABLED));var S=d.querySelectorAll("[data-oj-command=oj-table-resize]");S.length>0&&(S=S[0],l&&l.getAttribute("data-oj-resizable")===I._OPTION_ENABLED?"OJ-OPTION"===S.nodeName?S.removeAttribute("disabled"):S.classList.remove(I.MARKER_STYLE_CLASSES._DISABLED):"OJ-OPTION"===S.nodeName?S.setAttribute("disabled","true"):S.classList.add(I.MARKER_STYLE_CLASSES._DISABLED)),this._OpenContextMenu(t,o,i)}},I.prototype._setOptions=function(e,t){for(var o=!1,i=!1,l=!1,n=Object.keys(e),s=0;s<n.length;s++){var a=n[s],r=e[a];this._isTableRefreshNeeded(a,r,t)&&("columns"===a||"selectionMode"===a&&void 0!==r.row?l=!0:"data"===a&&(i=!0),o=!0)}this._superApply(arguments),o&&(l&&(this._clearCachedMetadata(),this._refreshTableHeader()),i&&this._beforeDataRefresh(),this._refresh())},I.prototype._setOption=function(e,t,o){"selection"===e?(this._selectionSet=!0,this._syncRangeSelection(t),this._superApply(arguments),this._validateInitialSelectionState(!0)):"selected"===e?(this._selectionSet=!1,this._superApply(arguments),this._validateInitialSelectionState(!0)):"currentRow"===e?(this._queueTask(function(){this._setCurrentRow(t,null,!0)}.bind(this)).catch(function(){}),this._superApply(arguments)):"scrollPosition"===e?(this._queueTask(function(){this._syncScrollPosition(t)}.bind(this)),this._superApply(arguments)):"editRow"===e?this._setEditRow(t):"scrollPolicyOptions"===e&&null!=o?(this._superApply(arguments),this._isStickyLayoutEnabled()&&("scrollerOffsetTop"===o.subkey||"scrollerOffsetBottom"===o.subkey?this._styleTableContainer(this._getTableContainer()):"scrollerOffsetStart"!==o.subkey&&"scrollerOffsetEnd"!==o.subkey||this._getLayoutManager()._initializeFrozenColumns())):"addRowDisplay"===e?(this._queueTask(function(){return this._refreshAddRowDisplay()}.bind(this)),this._superApply(arguments)):this._superApply(arguments)},I.prototype._CompareOptionValues=function(e,t,o){switch(e){case"columns":case"currentRow":return u.Object.compareValues(t,o);case"selection":return t&&void 0===t.inverted&&(t.inverted=!1),o&&void 0===o.inverted&&(o.inverted=!1),(!t||!o||t.inverted===o.inverted)&&u.Object.compareValues(t,o);case"selected":return(t.row&&o.row&&b.areKeySetsEqual(t.row,o.row)||null==t.row&&null==o.row)&&(t.column&&o.column&&b.areKeySetsEqual(t.column,o.column)||null==t.column&&null==o.column);default:return this._super(e,t,o)}},I.prototype._getTableDndContext=function(){return this._tableDndContext||(this._tableDndContext=new w(this)),this._tableDndContext},I.prototype._getLayoutManager=function(){return null==this._layoutManager&&(this._isStickyLayoutEnabled()?this._isFixedLayoutEnabled()?this._layoutManager=new P(this):this._layoutManager=new M(this):(this._layoutManager=new B(this),this._isFixedLayoutEnabled()&&C.error('The current theme does not support the layout="fixed" attribute setting of the <oj-table>.'))),this._layoutManager},I.prototype._clearLayoutManager=function(){null!=this._layoutManager&&this._layoutManager.unregisterListeners(),this._layoutManager=null},I.prototype._doSortHelper=function(e,t){const o=this._getColumnDefs(),i=this._getColumnIdxForColumnKey(e),l=this._getTableHeaderColumn(i);return i<o.length?this._getColumnDefs()[i].sortable===I._OPTION_ENABLED?null!=l&&S(l).data("sorted")===t?`Column is already sorted in ${t} order.`:(this._handleSortTableHeaderColumn(i,t===I._COLUMN_SORT_ORDER._ASCENDING,null),null):"Sort is not enabled for given header.":"Invalid header."},u.__registerWidget("oj.ojTable",S.oj.baseComponent,new I),f.setDefaultOptions({ojTable:{display:f.createDynamicPropertyGetter(function(){return A.getCachedCSSVarValues(["--oj-private-table-global-display-default"])[0]})}})});
9
9
  //# sourceMappingURL=ojtable.js.map