@oracle/oraclejet 17.0.3 → 17.0.5

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 (693) 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/js/libs/oj/debug/ojbufferingdataprovider.js +2 -1
  20. package/dist/js/libs/oj/debug/ojcore-base.js +2 -2
  21. package/dist/js/libs/oj/debug/ojdvt-toolkit.js +19 -4
  22. package/dist/js/libs/oj/debug/ojkeyboardfocus-utils.js +1 -4
  23. package/dist/js/libs/oj/debug/ojtable.js +1 -1
  24. package/dist/js/libs/oj/debug_esm/ojbufferingdataprovider.js +2 -1
  25. package/dist/js/libs/oj/debug_esm/ojcore-base.js +2 -2
  26. package/dist/js/libs/oj/debug_esm/ojdvt-toolkit.js +19 -4
  27. package/dist/js/libs/oj/debug_esm/ojkeyboardfocus-utils.js +1 -4
  28. package/dist/js/libs/oj/debug_esm/ojtable.js +1 -1
  29. package/dist/js/libs/oj/main-template.js +3 -3
  30. package/dist/js/libs/oj/min/ojbufferingdataprovider.js +1 -1
  31. package/dist/js/libs/oj/min/ojbufferingdataprovider.js.map +1 -1
  32. package/dist/js/libs/oj/min/ojcore-base.js +1 -1
  33. package/dist/js/libs/oj/min/ojdvt-toolkit.js +1 -1
  34. package/dist/js/libs/oj/min/ojdvt-toolkit.js.map +1 -1
  35. package/dist/js/libs/oj/min/ojkeyboardfocus-utils.js +1 -1
  36. package/dist/js/libs/oj/min/ojkeyboardfocus-utils.js.map +1 -1
  37. package/dist/js/libs/oj/min/ojtable.js +1 -1
  38. package/dist/js/libs/oj/min/ojtable.js.map +1 -1
  39. package/dist/metadata/components/allComponents.json +241 -241
  40. package/dist/package-backup.json +1 -1
  41. package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/helpers/themes/base/_oj-helpers.scss +1 -1
  42. package/dist/scss/common/helpers/_oj.common.helpers.scss +1 -1
  43. package/dist/webpack-tools/4.x/webpack.config.js +3 -3
  44. package/dist/webpack-tools/webpack.config.js +3 -3
  45. package/package.json +2 -2
  46. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/accordion/themes/base/_oj-accordion.scss +0 -0
  47. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/accordion/themes/redwood/_oj-accordion.cssvars.scss +0 -0
  48. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/accordion/themes/redwood/oj-accordion.scss +0 -0
  49. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/accordion/themes/stable/_oj-accordion.cssvars.scss +0 -0
  50. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/accordion/themes/stable/oj-accordion.scss +0 -0
  51. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/action-card/themes/base/_oj-action-card.scss +0 -0
  52. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/action-card/themes/redwood/_oj-action-card.cssvars.scss +0 -0
  53. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/action-card/themes/redwood/oj-action-card.scss +0 -0
  54. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/action-card/themes/stable/_oj-action-card.cssvars.scss +0 -0
  55. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/action-card/themes/stable/oj-action-card.scss +0 -0
  56. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/all-components/themes/base/_oj.common.servervars.scss +0 -0
  57. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/all-components/themes/base/oj.common.settings.cssvariables.css +0 -0
  58. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/all-components/themes/redwood/_oj-all-components-common.scss +0 -0
  59. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/all-components/themes/redwood/_oj-all-components-notag.scss +0 -0
  60. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/all-components/themes/redwood/_oj-all-components.scss +0 -0
  61. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/all-components/themes/redwood/_oj.redwood.settings.scss +0 -0
  62. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/all-components/themes/redwood/oj.redwood.cssvars.settings.css +0 -0
  63. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/all-components/themes/stable/_oj-all-components-common.scss +0 -0
  64. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/all-components/themes/stable/_oj-all-components-notag.scss +0 -0
  65. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/all-components/themes/stable/_oj-all-components.scss +0 -0
  66. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/all-components/themes/stable/_oj.stable.settings.scss +0 -0
  67. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/all-components/themes/stable/oj.stable.cssvars.settings.css +0 -0
  68. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/animation/themes/base/_oj-animation.scss +0 -0
  69. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/animation/themes/redwood/_oj-animation.cssvars.scss +0 -0
  70. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/animation/themes/redwood/_oj-animation.servervars.scss +0 -0
  71. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/animation/themes/redwood/oj-animation.scss +0 -0
  72. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/animation/themes/stable/_oj-animation.cssvars.scss +0 -0
  73. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/animation/themes/stable/_oj-animation.servervars.scss +0 -0
  74. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/animation/themes/stable/oj-animation.scss +0 -0
  75. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/app-layout/themes/base/_oj-app-layout.scss +0 -0
  76. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/app-layout/themes/redwood/_oj-app-layout.cssvars.scss +0 -0
  77. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/app-layout/themes/redwood/_oj-app-layout.scss +0 -0
  78. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/app-layout/themes/stable/_oj-app-layout.cssvars.scss +0 -0
  79. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/app-layout/themes/stable/_oj-app-layout.scss +0 -0
  80. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/app-layout-hybrid/themes/base/_oj-app-layout-hybrid-ignore.scoped.cssvars.scss +0 -0
  81. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/app-layout-hybrid/themes/base/_oj-app-layout-hybrid.scss +0 -0
  82. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/app-layout-hybrid/themes/redwood/_oj-app-layout-hybrid.cssvars.scss +0 -0
  83. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/app-layout-hybrid/themes/redwood/oj-app-layout-hybrid.scss +0 -0
  84. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/app-layout-hybrid/themes/stable/_oj-app-layout-hybrid.cssvars.scss +0 -0
  85. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/app-layout-hybrid/themes/stable/oj-app-layout-hybrid.scss +0 -0
  86. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/app-layout-web/themes/base/_oj-app-layout-web.scss +0 -0
  87. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/app-layout-web/themes/redwood/_oj-app-layout-web.cssvars.scss +0 -0
  88. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/app-layout-web/themes/redwood/oj-app-layout-web.scss +0 -0
  89. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/app-layout-web/themes/stable/_oj-app-layout-web.cssvars.scss +0 -0
  90. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/app-layout-web/themes/stable/oj-app-layout-web.scss +0 -0
  91. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/avatar/themes/base/_oj-avatar.scss +0 -0
  92. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/avatar/themes/redwood/_oj-avatar-ignore.scoped.cssvars.scss +0 -0
  93. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/avatar/themes/redwood/_oj-avatar-scoped.cssvars.scss +0 -0
  94. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/avatar/themes/redwood/_oj-avatar.cssvars.scss +0 -0
  95. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/avatar/themes/redwood/oj-avatar.scss +0 -0
  96. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/avatar/themes/stable/_oj-avatar-scoped.cssvars.scss +0 -0
  97. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/avatar/themes/stable/_oj-avatar.cssvars.scss +0 -0
  98. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/avatar/themes/stable/oj-avatar.scss +0 -0
  99. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/badge/themes/base/_oj-badge.scss +0 -0
  100. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/badge/themes/redwood/_oj-badge-ignore.scoped.cssvars.scss +0 -0
  101. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/badge/themes/redwood/_oj-badge-scoped.cssvars.scss +0 -0
  102. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/badge/themes/redwood/_oj-badge.cssvars.scss +0 -0
  103. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/badge/themes/redwood/oj-badge.scss +0 -0
  104. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/badge/themes/stable/_oj-badge-scoped.cssvars.scss +0 -0
  105. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/badge/themes/stable/_oj-badge.cssvars.scss +0 -0
  106. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/badge/themes/stable/oj-badge.scss +0 -0
  107. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/button/themes/base/_oj-button.scss +0 -0
  108. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/button/themes/redwood/_oj-button-ignore.scoped.cssvars.scss +0 -0
  109. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/button/themes/redwood/_oj-button-scoped.cssvars.scss +0 -0
  110. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/button/themes/redwood/_oj-button.cssvars.scss +0 -0
  111. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/button/themes/redwood/oj-button.scss +0 -0
  112. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/button/themes/stable/_oj-button-ignore.scoped.cssvars.scss +0 -0
  113. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/button/themes/stable/_oj-button-scoped.cssvars.scss +0 -0
  114. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/button/themes/stable/_oj-button.cssvars.scss +0 -0
  115. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/button/themes/stable/oj-button.scss +0 -0
  116. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/buttonset/themes/base/_oj-buttonset.scss +0 -0
  117. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/buttonset/themes/redwood/_oj-buttonset-scoped.cssvars.scss +0 -0
  118. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/buttonset/themes/redwood/_oj-buttonset.cssvars.scss +0 -0
  119. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/buttonset/themes/redwood/_oj-buttonset.scss +0 -0
  120. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/buttonset/themes/stable/_oj-buttonset-scoped.cssvars.scss +0 -0
  121. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/buttonset/themes/stable/_oj-buttonset.cssvars.scss +0 -0
  122. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/buttonset/themes/stable/_oj-buttonset.scss +0 -0
  123. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/buttonset-many/themes/redwood/oj-buttonset-many.scss +0 -0
  124. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/buttonset-many/themes/stable/oj-buttonset-many.scss +0 -0
  125. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/buttonset-one/themes/redwood/oj-buttonset-one.scss +0 -0
  126. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/buttonset-one/themes/stable/oj-buttonset-one.scss +0 -0
  127. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/chart/themes/base/_oj-chart.scss +0 -0
  128. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/chart/themes/redwood/_oj-chart.cssvars.scss +0 -0
  129. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/chart/themes/redwood/oj-chart.scss +0 -0
  130. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/chart/themes/stable/_oj-chart.cssvars.scss +0 -0
  131. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/chart/themes/stable/oj-chart.scss +0 -0
  132. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/checkboxset/themes/redwood/_oj-checkboxset.cssvars.scss +0 -0
  133. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/checkboxset/themes/redwood/oj-checkboxset.scss +0 -0
  134. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/checkboxset/themes/stable/_oj-checkboxset.cssvars.scss +0 -0
  135. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/checkboxset/themes/stable/oj-checkboxset.scss +0 -0
  136. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/collapsible/themes/base/_oj-collapsible.scss +0 -0
  137. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/collapsible/themes/redwood/_oj-collapsible.cssvars.scss +0 -0
  138. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/collapsible/themes/redwood/oj-collapsible.scss +0 -0
  139. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/collapsible/themes/stable/_oj-collapsible.cssvars.scss +0 -0
  140. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/collapsible/themes/stable/oj-collapsible.scss +0 -0
  141. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/collection/themes/redwood/_oj-collection-ignore.scoped.cssvars.scss +0 -0
  142. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/collection/themes/redwood/_oj-collection-scoped.cssvars.scss +0 -0
  143. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/collection/themes/redwood/_oj-collection.cssvars.scss +0 -0
  144. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/collection/themes/stable/_oj-collection-scoped.cssvars.scss +0 -0
  145. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/collection/themes/stable/_oj-collection.cssvars.scss +0 -0
  146. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/color-palette/themes/base/_oj-color-palette.scss +0 -0
  147. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/color-palette/themes/redwood/_oj-color-palette.cssvars.scss +0 -0
  148. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/color-palette/themes/redwood/oj-color-palette.scss +0 -0
  149. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/color-palette/themes/stable/_oj-color-palette.cssvars.scss +0 -0
  150. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/color-palette/themes/stable/oj-color-palette.scss +0 -0
  151. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/color-spectrum/themes/base/_oj-color-spectrum.scss +0 -0
  152. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/color-spectrum/themes/redwood/_oj-color-spectrum.cssvars.scss +0 -0
  153. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/color-spectrum/themes/redwood/oj-color-spectrum.scss +0 -0
  154. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/color-spectrum/themes/stable/_oj-color-spectrum.cssvars.scss +0 -0
  155. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/color-spectrum/themes/stable/oj-color-spectrum.scss +0 -0
  156. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/combobox/themes/base/_oj-combobox.scss +0 -0
  157. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/combobox/themes/redwood/_oj-combobox.cssvars.scss +0 -0
  158. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/combobox/themes/redwood/_oj-combobox.scss +0 -0
  159. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/combobox/themes/stable/_oj-combobox.cssvars.scss +0 -0
  160. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/combobox/themes/stable/_oj-combobox.scss +0 -0
  161. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/combobox-many/themes/redwood/oj-combobox-many.scss +0 -0
  162. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/combobox-many/themes/stable/oj-combobox-many.scss +0 -0
  163. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/combobox-one/themes/redwood/oj-combobox-one.scss +0 -0
  164. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/combobox-one/themes/stable/oj-combobox-one.scss +0 -0
  165. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/conveyor-belt/themes/base/_oj-conveyor-belt.scss +0 -0
  166. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/conveyor-belt/themes/redwood/_oj-conveyor-belt.cssvars.scss +0 -0
  167. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/conveyor-belt/themes/redwood/oj-conveyor-belt.scss +0 -0
  168. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/conveyor-belt/themes/stable/_oj-conveyor-belt.cssvars.scss +0 -0
  169. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/conveyor-belt/themes/stable/oj-conveyor-belt.scss +0 -0
  170. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/core/themes/redwood/_oj-core-ignore.scoped.cssvars.scss +0 -0
  171. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/core/themes/redwood/_oj-core-scoped.cssvars.scss +0 -0
  172. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/core/themes/redwood/_oj-core.cssvars.scss +0 -0
  173. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/core/themes/stable/_oj-core-ignore.scoped.cssvars.scss +0 -0
  174. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/core/themes/stable/_oj-core-scoped.cssvars.scss +0 -0
  175. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/core/themes/stable/_oj-core.cssvars.scss +0 -0
  176. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/data-grid/themes/base/_oj-data-grid.scss +0 -0
  177. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/data-grid/themes/redwood/_oj-data-grid-scoped.cssvars.scss +0 -0
  178. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/data-grid/themes/redwood/_oj-data-grid.cssvars.scss +0 -0
  179. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/data-grid/themes/redwood/oj-data-grid.scss +0 -0
  180. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/data-grid/themes/stable/_oj-data-grid-scoped.cssvars.scss +0 -0
  181. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/data-grid/themes/stable/_oj-data-grid.cssvars.scss +0 -0
  182. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/data-grid/themes/stable/oj-data-grid.scss +0 -0
  183. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/date-picker/themes/redwood/oj-date-picker.scss +0 -0
  184. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/date-picker/themes/stable/oj-date-picker.scss +0 -0
  185. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/date-time-picker/themes/base/_oj-date-time-picker.scss +0 -0
  186. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/date-time-picker/themes/redwood/_oj-date-time-picker.cssvars.scss +0 -0
  187. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/date-time-picker/themes/redwood/_oj-date-time-picker.servervars.scss +0 -0
  188. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/date-time-picker/themes/redwood/oj-date-time-picker.scss +0 -0
  189. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/date-time-picker/themes/stable/_oj-date-time-picker.cssvars.scss +0 -0
  190. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/date-time-picker/themes/stable/_oj-date-time-picker.servervars.scss +0 -0
  191. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/date-time-picker/themes/stable/oj-date-time-picker.scss +0 -0
  192. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/diagram/themes/base/_oj-diagram.scss +0 -0
  193. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/diagram/themes/redwood/_oj-diagram.cssvars.scss +0 -0
  194. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/diagram/themes/redwood/oj-diagram.scss +0 -0
  195. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/diagram/themes/stable/_oj-diagram.cssvars.scss +0 -0
  196. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/diagram/themes/stable/oj-diagram.scss +0 -0
  197. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/dialog/themes/base/_oj-dialog-ignore.scoped.cssvars.scss +0 -0
  198. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/dialog/themes/base/_oj-dialog.scss +0 -0
  199. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/dialog/themes/redwood/_oj-dialog-ignore.scoped.cssvars.scss +0 -0
  200. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/dialog/themes/redwood/_oj-dialog-scoped.cssvars.scss +0 -0
  201. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/dialog/themes/redwood/_oj-dialog.cssvars.scss +0 -0
  202. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/dialog/themes/redwood/_oj-dialog.servervars.scss +0 -0
  203. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/dialog/themes/redwood/oj-dialog.scss +0 -0
  204. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/dialog/themes/stable/_oj-dialog-scoped.cssvars.scss +0 -0
  205. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/dialog/themes/stable/_oj-dialog.cssvars.scss +0 -0
  206. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/dialog/themes/stable/_oj-dialog.servervars.scss +0 -0
  207. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/dialog/themes/stable/oj-dialog.scss +0 -0
  208. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/drawer-layout/themes/base/_oj-drawer-layout-ignore.scoped.cssvars.scss +0 -0
  209. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/drawer-layout/themes/base/_oj-drawer-layout.scss +0 -0
  210. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/drawer-layout/themes/redwood/_oj-drawer-layout.cssvars.scss +0 -0
  211. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/drawer-layout/themes/redwood/oj-drawer-layout.scss +0 -0
  212. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/drawer-layout/themes/stable/_oj-drawer-layout.cssvars.scss +0 -0
  213. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/drawer-layout/themes/stable/oj-drawer-layout.scss +0 -0
  214. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/drawer-popup/themes/base/_oj-drawer-popup-ignore.scoped.cssvars.scss +0 -0
  215. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/drawer-popup/themes/base/_oj-drawer-popup.scss +0 -0
  216. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/drawer-popup/themes/redwood/_oj-drawer-popup.cssvars.scss +0 -0
  217. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/drawer-popup/themes/redwood/oj-drawer-popup.scss +0 -0
  218. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/drawer-popup/themes/stable/_oj-drawer-popup.cssvars.scss +0 -0
  219. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/drawer-popup/themes/stable/oj-drawer-popup.scss +0 -0
  220. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/dvt/themes/base/_oj-dvt.scss +0 -0
  221. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/dvt/themes/redwood/_oj-dvt.cssvars.scss +0 -0
  222. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/dvt/themes/redwood/_oj-dvt.scss +0 -0
  223. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/dvt/themes/stable/_oj-dvt.cssvars.scss +0 -0
  224. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/dvt/themes/stable/_oj-dvt.scss +0 -0
  225. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/file-picker/themes/base/_oj-file-picker.scss +0 -0
  226. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/file-picker/themes/redwood/_oj-file-picker.cssvars.scss +0 -0
  227. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/file-picker/themes/redwood/oj-file-picker.scss +0 -0
  228. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/file-picker/themes/stable/_oj-file-picker.cssvars.scss +0 -0
  229. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/file-picker/themes/stable/oj-file-picker.scss +0 -0
  230. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/film-strip/themes/base/_oj-film-strip.scss +0 -0
  231. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/film-strip/themes/redwood/_oj-film-strip.cssvars.scss +0 -0
  232. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/film-strip/themes/redwood/oj-film-strip.scss +0 -0
  233. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/film-strip/themes/stable/_oj-film-strip.cssvars.scss +0 -0
  234. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/film-strip/themes/stable/oj-film-strip.scss +0 -0
  235. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/flex/themes/base/_oj-flex.scss +0 -0
  236. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/flex/themes/redwood/oj-flex.scss +0 -0
  237. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/flex/themes/stable/oj-flex.scss +0 -0
  238. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/form-control/themes/base/_oj-form-control.mixins.scss +0 -0
  239. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/form-control/themes/base/_oj-form-control.scss +0 -0
  240. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/form-control/themes/base/_oj-messaging.scss +0 -0
  241. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/form-control/themes/redwood/_oj-form-control-ignore.cssvars.scss +0 -0
  242. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/form-control/themes/redwood/_oj-form-control-ignore.scoped.cssvars.scss +0 -0
  243. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/form-control/themes/redwood/_oj-form-control.cssvars.scss +0 -0
  244. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/form-control/themes/redwood/_oj-form-control.scss +0 -0
  245. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/form-control/themes/redwood/_oj-messaging.scss +0 -0
  246. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/form-control/themes/redwood/_oj-messaging.servervars.scss +0 -0
  247. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/form-control/themes/stable/_oj-form-control-ignore.cssvars.scss +0 -0
  248. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/form-control/themes/stable/_oj-form-control-ignore.scoped.cssvars.scss +0 -0
  249. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/form-control/themes/stable/_oj-form-control.cssvars.scss +0 -0
  250. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/form-control/themes/stable/_oj-form-control.scss +0 -0
  251. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/form-control/themes/stable/_oj-messaging.scss +0 -0
  252. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/form-control/themes/stable/_oj-messaging.servervars.scss +0 -0
  253. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/form-layout/themes/base/_oj-form-layout.scss +0 -0
  254. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/form-layout/themes/redwood/_oj-form-layout-scoped.cssvars.scss +0 -0
  255. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/form-layout/themes/redwood/_oj-form-layout.cssvars.scss +0 -0
  256. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/form-layout/themes/redwood/_oj-form-layout.servervars.scss +0 -0
  257. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/form-layout/themes/redwood/oj-form-layout.scss +0 -0
  258. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/form-layout/themes/stable/_oj-form-layout-scoped.cssvars.scss +0 -0
  259. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/form-layout/themes/stable/_oj-form-layout.cssvars.scss +0 -0
  260. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/form-layout/themes/stable/_oj-form-layout.servervars.scss +0 -0
  261. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/form-layout/themes/stable/oj-form-layout.scss +0 -0
  262. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/gantt/themes/base/_oj-gantt.scss +0 -0
  263. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/gantt/themes/redwood/_oj-gantt.cssvars.scss +0 -0
  264. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/gantt/themes/redwood/oj-gantt.scss +0 -0
  265. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/gantt/themes/stable/_oj-gantt.cssvars.scss +0 -0
  266. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/gantt/themes/stable/oj-gantt.scss +0 -0
  267. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/gauge/themes/base/_oj-gauge.scss +0 -0
  268. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/gauge/themes/redwood/_oj-gauge.cssvars.scss +0 -0
  269. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/gauge/themes/redwood/oj-gauge.scss +0 -0
  270. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/gauge/themes/stable/_oj-gauge.cssvars.scss +0 -0
  271. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/gauge/themes/stable/oj-gauge.scss +0 -0
  272. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/grid/themes/base/_oj-grid.scss +0 -0
  273. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/grid/themes/redwood/oj-grid.scss +0 -0
  274. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/grid/themes/stable/oj-grid.scss +0 -0
  275. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/helpers/themes/base/_oj-helpers-ignore.scoped.cssvars.scss +0 -0
  276. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/helpers/themes/base/_oj-responsive-helpers.scss +0 -0
  277. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/helpers/themes/redwood/_oj-theme.servervars.scss +0 -0
  278. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/helpers/themes/redwood/oj-helpers.scss +0 -0
  279. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/helpers/themes/redwood/oj-responsive.helpers.scss +0 -0
  280. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/helpers/themes/stable/_oj-theme.servervars.scss +0 -0
  281. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/helpers/themes/stable/oj-helpers.scss +0 -0
  282. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/helpers/themes/stable/oj-responsive.helpers.scss +0 -0
  283. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/highlight-text/themes/base/_oj-highlight-text.scss +0 -0
  284. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/highlight-text/themes/redwood/oj-highlight-text.scss +0 -0
  285. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/highlight-text/themes/stable/oj-highlight-text.scss +0 -0
  286. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/icon-circle/themes/base/_oj-icon-circle.scss +0 -0
  287. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/icon-circle/themes/redwood/_oj-icon-circle-ignore.scoped.cssvars.scss +0 -0
  288. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/icon-circle/themes/redwood/_oj-icon-circle.cssvars.scss +0 -0
  289. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/icon-circle/themes/redwood/oj-icon-circle.scss +0 -0
  290. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/icons/themes/base/_oj-icons.scss +0 -0
  291. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/icons/themes/redwood/_oj-icon-font.scss +0 -0
  292. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/icons/themes/redwood/_oj-icons-ignore.scoped.cssvars.scss +0 -0
  293. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/icons/themes/redwood/_oj-icons.cssvars.scss +0 -0
  294. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/icons/themes/redwood/oj-icons.scss +0 -0
  295. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/icons/themes/stable/_oj-icon-font.scss +0 -0
  296. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/icons/themes/stable/_oj-icons-ignore.scoped.cssvars.scss +0 -0
  297. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/icons/themes/stable/_oj-icons.cssvars.scss +0 -0
  298. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/icons/themes/stable/oj-icons.scss +0 -0
  299. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/indexer/themes/base/_oj-indexer.scss +0 -0
  300. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/indexer/themes/redwood/_oj-indexer.cssvars.scss +0 -0
  301. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/indexer/themes/redwood/oj-indexer.scss +0 -0
  302. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/indexer/themes/stable/_oj-indexer.cssvars.scss +0 -0
  303. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/indexer/themes/stable/oj-indexer.scss +0 -0
  304. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/input-date/themes/redwood/oj-input-date.scss +0 -0
  305. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/input-date/themes/stable/oj-input-date.scss +0 -0
  306. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/input-date-time/themes/redwood/oj-input-date-time.scss +0 -0
  307. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/input-date-time/themes/stable/oj-input-date-time.scss +0 -0
  308. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/input-number/themes/base/_oj-input-number.scss +0 -0
  309. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/input-number/themes/redwood/_oj-input-number.cssvars.scss +0 -0
  310. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/input-number/themes/redwood/oj-input-number.scss +0 -0
  311. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/input-number/themes/stable/_oj-input-number.cssvars.scss +0 -0
  312. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/input-number/themes/stable/oj-input-number.scss +0 -0
  313. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/input-password/themes/redwood/oj-input-password.scss +0 -0
  314. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/input-password/themes/stable/oj-input-password.scss +0 -0
  315. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/input-search/themes/base/_oj-input-search.scss +0 -0
  316. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/input-search/themes/redwood/_oj-input-search-scoped.cssvars.scss +0 -0
  317. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/input-search/themes/redwood/_oj-input-search.cssvars.scss +0 -0
  318. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/input-search/themes/redwood/_oj-input-search.scss +0 -0
  319. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/input-search/themes/stable/_oj-input-search-scoped.cssvars.scss +0 -0
  320. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/input-search/themes/stable/_oj-input-search.cssvars.scss +0 -0
  321. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/input-search/themes/stable/_oj-input-search.scss +0 -0
  322. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/input-text/themes/base/_oj-input-text.scss +0 -0
  323. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/input-text/themes/redwood/_oj-input-text.cssvars.scss +0 -0
  324. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/input-text/themes/redwood/oj-input-text.scss +0 -0
  325. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/input-text/themes/stable/_oj-input-text.cssvars.scss +0 -0
  326. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/input-text/themes/stable/oj-input-text.scss +0 -0
  327. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/input-time/themes/redwood/oj-input-time.scss +0 -0
  328. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/input-time/themes/stable/oj-input-time.scss +0 -0
  329. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/label/themes/base/_oj-label.scss +0 -0
  330. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/label/themes/redwood/_oj-label-scoped.cssvars.scss +0 -0
  331. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/label/themes/redwood/_oj-label.cssvars.scss +0 -0
  332. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/label/themes/redwood/oj-label.scss +0 -0
  333. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/label/themes/stable/_oj-label-scoped.cssvars.scss +0 -0
  334. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/label/themes/stable/_oj-label.cssvars.scss +0 -0
  335. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/label/themes/stable/oj-label.scss +0 -0
  336. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/label-value/themes/base/_oj-label-value.scss +0 -0
  337. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/label-value/themes/redwood/_oj-label-value.scss +0 -0
  338. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/label-value/themes/stable/_oj-label-value.scss +0 -0
  339. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/led-gauge/themes/base/_oj-led-gauge.scss +0 -0
  340. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/led-gauge/themes/redwood/_oj-led-gauge.cssvars.scss +0 -0
  341. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/led-gauge/themes/redwood/oj-led-gauge.scss +0 -0
  342. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/led-gauge/themes/stable/_oj-led-gauge.cssvars.scss +0 -0
  343. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/led-gauge/themes/stable/oj-led-gauge.scss +0 -0
  344. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/legend/themes/base/_oj-legend.scss +0 -0
  345. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/legend/themes/redwood/_oj-legend.cssvars.scss +0 -0
  346. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/legend/themes/redwood/oj-legend.scss +0 -0
  347. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/legend/themes/stable/_oj-legend.cssvars.scss +0 -0
  348. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/legend/themes/stable/oj-legend.scss +0 -0
  349. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/list-box/themes/base/_oj-list-box.scss +0 -0
  350. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/list-box/themes/redwood/_oj-list-box.cssvars.scss +0 -0
  351. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/list-box/themes/redwood/_oj-list-box.scss +0 -0
  352. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/list-box/themes/stable/_oj-list-box.cssvars.scss +0 -0
  353. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/list-box/themes/stable/_oj-list-box.scss +0 -0
  354. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/list-item-layout/themes/base/_oj-list-item-layout.scoped.scss +0 -0
  355. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/list-item-layout/themes/base/_oj-list-item-layout.scss +0 -0
  356. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/list-item-layout/themes/redwood/_oj-list-item-layout.cssvars.scss +0 -0
  357. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/list-item-layout/themes/redwood/oj-list-item-layout.scss +0 -0
  358. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/list-item-layout/themes/stable/_oj-list-item-layout.cssvars.scss +0 -0
  359. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/list-item-layout/themes/stable/oj-list-item-layout.scss +0 -0
  360. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/list-view/themes/base/_oj-list-view.scoped.scss +0 -0
  361. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/list-view/themes/base/_oj-list-view.scss +0 -0
  362. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/list-view/themes/redwood/_oj-list-view-ignore.scoped.cssvars.scss +0 -0
  363. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/list-view/themes/redwood/_oj-list-view.cssvars.scss +0 -0
  364. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/list-view/themes/redwood/oj-list-view.scss +0 -0
  365. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/list-view/themes/stable/_oj-list-view.cssvars.scss +0 -0
  366. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/list-view/themes/stable/oj-list-view.scss +0 -0
  367. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/masonry-layout/themes/base/_oj-masonry-layout.scss +0 -0
  368. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/masonry-layout/themes/redwood/_oj-masonry-layout.cssvars.scss +0 -0
  369. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/masonry-layout/themes/redwood/_oj-masonry-layout.servervars.scss +0 -0
  370. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/masonry-layout/themes/redwood/oj-masonry-layout.scss +0 -0
  371. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/masonry-layout/themes/stable/_oj-masonry-layout.cssvars.scss +0 -0
  372. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/masonry-layout/themes/stable/_oj-masonry-layout.servervars.scss +0 -0
  373. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/masonry-layout/themes/stable/oj-masonry-layout.scss +0 -0
  374. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/menu/themes/base/_oj-menu.scss +0 -0
  375. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/menu/themes/redwood/_oj-menu.cssvars.scss +0 -0
  376. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/menu/themes/redwood/oj-menu.scss +0 -0
  377. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/menu/themes/stable/_oj-menu.cssvars.scss +0 -0
  378. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/menu/themes/stable/oj-menu.scss +0 -0
  379. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/menu-button/themes/base/_oj-menu-button.scss +0 -0
  380. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/menu-button/themes/redwood/_oj-menu-button.cssvars.scss +0 -0
  381. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/menu-button/themes/redwood/_oj-menu-button.servervars.scss +0 -0
  382. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/menu-button/themes/redwood/oj-menu-button.scss +0 -0
  383. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/menu-button/themes/stable/_oj-menu-button.cssvars.scss +0 -0
  384. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/menu-button/themes/stable/_oj-menu-button.servervars.scss +0 -0
  385. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/menu-button/themes/stable/oj-menu-button.scss +0 -0
  386. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/menu-select-many/themes/base/_oj-menu-select-many.scss +0 -0
  387. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/menu-select-many/themes/redwood/_oj-menu-select-many.cssvars.scss +0 -0
  388. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/menu-select-many/themes/redwood/oj-menu-select-many.scss +0 -0
  389. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/menu-select-many/themes/stable/_oj-menu-select-many.cssvars.scss +0 -0
  390. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/menu-select-many/themes/stable/oj-menu-select-many.scss +0 -0
  391. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/message/themes/base/_oj-message.scss +0 -0
  392. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/message/themes/redwood/_oj-message-ignore.scoped.cssvars.scss +0 -0
  393. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/message/themes/redwood/_oj-message.cssvars.scss +0 -0
  394. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/message/themes/redwood/_oj-message.servervars.scss +0 -0
  395. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/message/themes/redwood/oj-message.scss +0 -0
  396. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/message/themes/stable/_oj-message-ignore.scoped.cssvars.scss +0 -0
  397. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/message/themes/stable/_oj-message.cssvars.scss +0 -0
  398. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/message/themes/stable/_oj-message.servervars.scss +0 -0
  399. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/message/themes/stable/oj-message.scss +0 -0
  400. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/message-banner/themes/base/_oj-message-banner.scss +0 -0
  401. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/message-banner/themes/redwood/_oj-message-banner-scoped.cssvars.scss +0 -0
  402. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/message-banner/themes/redwood/_oj-message-banner.cssvars.scss +0 -0
  403. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/message-banner/themes/redwood/_oj-message-banner.scss +0 -0
  404. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/message-banner/themes/stable/_oj-message-banner-scoped.cssvars.scss +0 -0
  405. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/message-banner/themes/stable/_oj-message-banner.cssvars.scss +0 -0
  406. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/message-banner/themes/stable/_oj-message-banner.scss +0 -0
  407. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/messages/themes/base/_oj-messages.scss +0 -0
  408. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/messages/themes/redwood/_oj-messages.cssvars.scss +0 -0
  409. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/messages/themes/redwood/_oj-messages.servervars.scss +0 -0
  410. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/messages/themes/redwood/oj-messages.scss +0 -0
  411. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/messages/themes/stable/_oj-messages.cssvars.scss +0 -0
  412. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/messages/themes/stable/_oj-messages.servervars.scss +0 -0
  413. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/messages/themes/stable/oj-messages.scss +0 -0
  414. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/module/themes/base/_oj-module.scss +0 -0
  415. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/module/themes/redwood/oj-module.scss +0 -0
  416. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/module/themes/stable/oj-module.scss +0 -0
  417. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/n-box/themes/base/_oj-n-box.scss +0 -0
  418. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/n-box/themes/redwood/_oj-n-box.cssvars.scss +0 -0
  419. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/n-box/themes/redwood/oj-n-box.scss +0 -0
  420. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/n-box/themes/stable/_oj-n-box.cssvars.scss +0 -0
  421. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/n-box/themes/stable/oj-n-box.scss +0 -0
  422. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/navigation-list/themes/base/_oj-navigation-list.scss +0 -0
  423. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/navigation-list/themes/redwood/_oj-navigation-list-scoped.cssvars.scss +0 -0
  424. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/navigation-list/themes/redwood/_oj-navigation-list.cssvars.scss +0 -0
  425. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/navigation-list/themes/redwood/oj-navigation-list.scss +0 -0
  426. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/navigation-list/themes/stable/_oj-navigation-list-scoped.cssvars.scss +0 -0
  427. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/navigation-list/themes/stable/_oj-navigation-list.cssvars.scss +0 -0
  428. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/navigation-list/themes/stable/oj-navigation-list.scss +0 -0
  429. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/off-canvas/themes/base/_oj-off-canvas.scss +0 -0
  430. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/off-canvas/themes/redwood/_oj-off-canvas.cssvars.scss +0 -0
  431. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/off-canvas/themes/redwood/oj-off-canvas.scss +0 -0
  432. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/off-canvas/themes/stable/_oj-off-canvas.cssvars.scss +0 -0
  433. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/off-canvas/themes/stable/oj-off-canvas.scss +0 -0
  434. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/optgroup/themes/base/_oj-optgroup.scss +0 -0
  435. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/optgroup/themes/redwood/oj-optgroup.scss +0 -0
  436. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/optgroup/themes/stable/oj-optgroup.scss +0 -0
  437. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/option/themes/base/_oj-option.scss +0 -0
  438. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/option/themes/redwood/oj-option.scss +0 -0
  439. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/option/themes/stable/oj-option.scss +0 -0
  440. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/paging-control/themes/base/_oj-paging-control.scss +0 -0
  441. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/paging-control/themes/redwood/_oj-paging-control.cssvars.scss +0 -0
  442. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/paging-control/themes/redwood/oj-paging-control.scss +0 -0
  443. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/paging-control/themes/stable/_oj-paging-control.cssvars.scss +0 -0
  444. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/paging-control/themes/stable/oj-paging-control.scss +0 -0
  445. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/palette/themes/redwood/_oj-palette-scoped.cssvars.scss +0 -0
  446. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/palette/themes/redwood/_oj-palette.cssvars.scss +0 -0
  447. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/palette/themes/stable/_oj-palette.cssvars.scss +0 -0
  448. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/panel/themes/base/_oj-panel-ignore.scoped.cssvars.scss +0 -0
  449. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/panel/themes/base/_oj-panel.scss +0 -0
  450. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/panel/themes/redwood/_oj-panel-scoped.cssvars.scss +0 -0
  451. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/panel/themes/redwood/_oj-panel.cssvars.scss +0 -0
  452. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/panel/themes/redwood/oj-panel.scss +0 -0
  453. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/panel/themes/stable/_oj-panel-scoped.cssvars.scss +0 -0
  454. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/panel/themes/stable/_oj-panel.cssvars.scss +0 -0
  455. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/panel/themes/stable/oj-panel.scss +0 -0
  456. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/picto-chart/themes/base/_oj-picto-chart.scss +0 -0
  457. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/picto-chart/themes/redwood/_oj-picto-chart.cssvars.scss +0 -0
  458. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/picto-chart/themes/redwood/oj-picto-chart.scss +0 -0
  459. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/picto-chart/themes/stable/_oj-picto-chart.cssvars.scss +0 -0
  460. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/picto-chart/themes/stable/oj-picto-chart.scss +0 -0
  461. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/popup/themes/base/_oj-layer.scss +0 -0
  462. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/popup/themes/base/_oj-popup-ignore.scoped.cssvars.scss +0 -0
  463. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/popup/themes/base/_oj-popup.scss +0 -0
  464. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/popup/themes/redwood/_oj-layer.scss +0 -0
  465. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/popup/themes/redwood/_oj-popup-ignore.scoped.cssvars.scss +0 -0
  466. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/popup/themes/redwood/_oj-popup.cssvars.scss +0 -0
  467. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/popup/themes/redwood/oj-popup.scss +0 -0
  468. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/popup/themes/stable/_oj-layer.scss +0 -0
  469. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/popup/themes/stable/_oj-popup.cssvars.scss +0 -0
  470. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/popup/themes/stable/oj-popup.scss +0 -0
  471. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/progress-bar/themes/base/_oj-progress-bar.scss +0 -0
  472. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/progress-bar/themes/redwood/_oj-progress-bar-scoped.cssvars.scss +0 -0
  473. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/progress-bar/themes/redwood/_oj-progress-bar.cssvars.scss +0 -0
  474. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/progress-bar/themes/redwood/oj-progress-bar.scss +0 -0
  475. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/progress-bar/themes/stable/_oj-progress-bar-scoped.cssvars.scss +0 -0
  476. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/progress-bar/themes/stable/_oj-progress-bar.cssvars.scss +0 -0
  477. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/progress-bar/themes/stable/oj-progress-bar.scss +0 -0
  478. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/progress-circle/themes/base/_oj-progress-circle.scss +0 -0
  479. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/progress-circle/themes/redwood/_oj-progress-circle-scoped.cssvars.scss +0 -0
  480. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/progress-circle/themes/redwood/_oj-progress-circle.cssvars.scss +0 -0
  481. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/progress-circle/themes/redwood/oj-progress-circle.scss +0 -0
  482. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/progress-circle/themes/stable/_oj-progress-circle-scoped.cssvars.scss +0 -0
  483. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/progress-circle/themes/stable/_oj-progress-circle.cssvars.scss +0 -0
  484. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/progress-circle/themes/stable/oj-progress-circle.scss +0 -0
  485. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/radio-checkbox/themes/base/_oj-radiocheckbox.scss +0 -0
  486. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/radio-checkbox/themes/redwood/_oj-radiocheckbox-scoped.cssvars.scss +0 -0
  487. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/radio-checkbox/themes/redwood/_oj-radiocheckbox.cssvars.scss +0 -0
  488. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/radio-checkbox/themes/redwood/_oj-radiocheckbox.servervars.scss +0 -0
  489. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/radio-checkbox/themes/stable/_oj-radiocheckbox-scoped.cssvars.scss +0 -0
  490. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/radio-checkbox/themes/stable/_oj-radiocheckbox.cssvars.scss +0 -0
  491. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/radio-checkbox/themes/stable/_oj-radiocheckbox.servervars.scss +0 -0
  492. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/radioset/themes/redwood/_oj-radioset.cssvars.scss +0 -0
  493. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/radioset/themes/redwood/oj-radioset.scss +0 -0
  494. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/radioset/themes/stable/_oj-radioset.cssvars.scss +0 -0
  495. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/radioset/themes/stable/oj-radioset.scss +0 -0
  496. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/rangeslider/themes/redwood/_oj-rangeslider.cssvars.scss +0 -0
  497. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/rangeslider/themes/redwood/oj-rangeslider.scss +0 -0
  498. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/rangeslider/themes/stable/_oj-rangeslider.cssvars.scss +0 -0
  499. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/rangeslider/themes/stable/oj-rangeslider.scss +0 -0
  500. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/rating-gauge/themes/base/_oj-rating-gauge.scss +0 -0
  501. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/rating-gauge/themes/redwood/_oj-rating-gauge.cssvars.scss +0 -0
  502. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/rating-gauge/themes/redwood/oj-rating-gauge.scss +0 -0
  503. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/rating-gauge/themes/stable/_oj-rating-gauge.cssvars.scss +0 -0
  504. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/rating-gauge/themes/stable/oj-rating-gauge.scss +0 -0
  505. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/refresher/themes/base/_oj-refresher.scss +0 -0
  506. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/refresher/themes/redwood/_oj-refresher.cssvars.scss +0 -0
  507. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/refresher/themes/redwood/_oj-refresher.servervars.scss +0 -0
  508. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/refresher/themes/redwood/oj-refresher.scss +0 -0
  509. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/refresher/themes/stable/_oj-refresher.cssvars.scss +0 -0
  510. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/refresher/themes/stable/_oj-refresher.servervars.scss +0 -0
  511. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/refresher/themes/stable/oj-refresher.scss +0 -0
  512. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/resizable/themes/base/_oj-resizable.scss +0 -0
  513. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/resizable/themes/redwood/_oj-resizable.scss +0 -0
  514. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/resizable/themes/stable/_oj-resizable.scss +0 -0
  515. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/row-expander/themes/base/_oj-row-expander.scss +0 -0
  516. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/row-expander/themes/redwood/_oj-row-expander.cssvars.scss +0 -0
  517. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/row-expander/themes/redwood/oj-row-expander.scss +0 -0
  518. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/row-expander/themes/stable/_oj-row-expander.cssvars.scss +0 -0
  519. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/row-expander/themes/stable/oj-row-expander.scss +0 -0
  520. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/scrollbar/themes/base/_oj-scrollbar.scss +0 -0
  521. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/scrollbar/themes/redwood/_oj-scrollbar-scoped.cssvars.scss +0 -0
  522. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/scrollbar/themes/redwood/_oj-scrollbar.cssvars.scss +0 -0
  523. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/scrollbar/themes/redwood/_oj-scrollbar.scss +0 -0
  524. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/scrollbar/themes/stable/_oj-scrollbar-scoped.cssvars.scss +0 -0
  525. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/scrollbar/themes/stable/_oj-scrollbar.cssvars.scss +0 -0
  526. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/scrollbar/themes/stable/_oj-scrollbar.scss +0 -0
  527. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/select/themes/base/_oj-select.scss +0 -0
  528. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/select/themes/redwood/_oj-select.cssvars.scss +0 -0
  529. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/select/themes/redwood/_oj-select.scss +0 -0
  530. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/select/themes/stable/_oj-select.cssvars.scss +0 -0
  531. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/select/themes/stable/_oj-select.scss +0 -0
  532. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/select-many/themes/redwood/oj-select-many.scss +0 -0
  533. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/select-many/themes/stable/oj-select-many.scss +0 -0
  534. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/select-one/themes/redwood/oj-select-one.scss +0 -0
  535. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/select-original/themes/base/_oj-select-original.scss +0 -0
  536. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/select-original/themes/redwood/_oj-select-original.cssvars.scss +0 -0
  537. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/select-original/themes/redwood/_oj-select-original.scss +0 -0
  538. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/select-original/themes/stable/_oj-select-original.cssvars.scss +0 -0
  539. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/select-original/themes/stable/_oj-select-original.scss +0 -0
  540. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/select-single/themes/base/_oj-select-single.scss +0 -0
  541. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/select-single/themes/redwood/oj-select-single.scss +0 -0
  542. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/select-single/themes/stable/oj-select-single.scss +0 -0
  543. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/selector/themes/base/_oj-selector.scss +0 -0
  544. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/selector/themes/redwood/_oj-selector.cssvars.scss +0 -0
  545. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/selector/themes/redwood/oj-selector.scss +0 -0
  546. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/selector/themes/stable/_oj-selector.cssvars.scss +0 -0
  547. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/selector/themes/stable/oj-selector.scss +0 -0
  548. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/slider/themes/base/_oj-slider.scss +0 -0
  549. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/slider/themes/redwood/_oj-slider.cssvars.scss +0 -0
  550. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/slider/themes/redwood/oj-slider.scss +0 -0
  551. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/slider/themes/stable/_oj-slider.cssvars.scss +0 -0
  552. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/slider/themes/stable/oj-slider.scss +0 -0
  553. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/spark-chart/themes/base/_oj-spark-chart.scss +0 -0
  554. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/spark-chart/themes/redwood/_oj-spark-chart.cssvars.scss +0 -0
  555. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/spark-chart/themes/redwood/oj-spark-chart.scss +0 -0
  556. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/spark-chart/themes/stable/_oj-spark-chart.cssvars.scss +0 -0
  557. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/spark-chart/themes/stable/oj-spark-chart.scss +0 -0
  558. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/status-meter-gauge/themes/base/_oj-status-meter-gauge.scss +0 -0
  559. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/status-meter-gauge/themes/redwood/_oj-status-meter-gauge.cssvars.scss +0 -0
  560. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/status-meter-gauge/themes/redwood/oj-status-meter-gauge.scss +0 -0
  561. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/status-meter-gauge/themes/stable/_oj-status-meter-gauge.cssvars.scss +0 -0
  562. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/status-meter-gauge/themes/stable/oj-status-meter-gauge.scss +0 -0
  563. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/stream-list/themes/base/_oj-stream-list.scss +0 -0
  564. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/stream-list/themes/redwood/_oj-stream-list.cssvars.scss +0 -0
  565. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/stream-list/themes/redwood/_oj-stream-list.servervars.scss +0 -0
  566. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/stream-list/themes/redwood/oj-stream-list.scss +0 -0
  567. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/stream-list/themes/stable/_oj-stream-list.cssvars.scss +0 -0
  568. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/stream-list/themes/stable/_oj-stream-list.servervars.scss +0 -0
  569. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/stream-list/themes/stable/oj-stream-list.scss +0 -0
  570. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/sunburst/themes/base/_oj-sunburst.scss +0 -0
  571. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/sunburst/themes/redwood/_oj-sunburst.cssvars.scss +0 -0
  572. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/sunburst/themes/redwood/oj-sunburst.scss +0 -0
  573. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/sunburst/themes/stable/_oj-sunburst.cssvars.scss +0 -0
  574. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/sunburst/themes/stable/oj-sunburst.scss +0 -0
  575. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/swipe-actions/themes/base/_oj-swipe-actions.scss +0 -0
  576. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/swipe-actions/themes/redwood/_oj-swipe-actions.cssvars.scss +0 -0
  577. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/swipe-actions/themes/redwood/oj-swipe-actions.scss +0 -0
  578. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/swipe-actions/themes/stable/_oj-swipe-actions.cssvars.scss +0 -0
  579. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/swipe-actions/themes/stable/oj-swipe-actions.scss +0 -0
  580. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/switch/themes/base/_oj-switch.scss +0 -0
  581. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/switch/themes/redwood/_oj-switch.cssvars.scss +0 -0
  582. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/switch/themes/redwood/oj-switch.scss +0 -0
  583. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/switch/themes/stable/_oj-switch.cssvars.scss +0 -0
  584. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/switch/themes/stable/oj-switch.scss +0 -0
  585. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/switcher/themes/base/_oj-switcher.scss +0 -0
  586. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/switcher/themes/redwood/oj-switcher.scss +0 -0
  587. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/switcher/themes/stable/oj-switcher.scss +0 -0
  588. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/tab-bar/themes/base/_oj-tab-bar.scss +0 -0
  589. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/tab-bar/themes/redwood/_oj-tab-bar-scoped.cssvars.scss +0 -0
  590. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/tab-bar/themes/redwood/_oj-tab-bar.cssvars.scss +0 -0
  591. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/tab-bar/themes/redwood/oj-tab-bar.scss +0 -0
  592. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/tab-bar/themes/stable/_oj-tab-bar-scoped.cssvars.scss +0 -0
  593. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/tab-bar/themes/stable/_oj-tab-bar.cssvars.scss +0 -0
  594. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/tab-bar/themes/stable/oj-tab-bar.scss +0 -0
  595. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/table/themes/base/_oj-table.scss +0 -0
  596. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/table/themes/redwood/_oj-table-scoped.cssvars.scss +0 -0
  597. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/table/themes/redwood/_oj-table.cssvars.scss +0 -0
  598. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/table/themes/redwood/oj-table.scss +0 -0
  599. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/table/themes/stable/_oj-table-scoped.cssvars.scss +0 -0
  600. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/table/themes/stable/_oj-table.cssvars.scss +0 -0
  601. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/table/themes/stable/oj-table.scss +0 -0
  602. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/tag-cloud/themes/base/_oj-tag-cloud.scss +0 -0
  603. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/tag-cloud/themes/redwood/_oj-tag-cloud.cssvars.scss +0 -0
  604. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/tag-cloud/themes/redwood/oj-tag-cloud.scss +0 -0
  605. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/tag-cloud/themes/stable/_oj-tag-cloud.cssvars.scss +0 -0
  606. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/tag-cloud/themes/stable/oj-tag-cloud.scss +0 -0
  607. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/tags/themes/base/_oj-notags-ignore.scoped.cssvars.scss +0 -0
  608. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/tags/themes/base/_oj-notags.scss +0 -0
  609. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/tags/themes/base/_oj-tags-ignore.scoped.cssvars.scss +0 -0
  610. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/tags/themes/base/_oj-tags.scss +0 -0
  611. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/tags/themes/redwood/_oj-tags-scoped.cssvars.scss +0 -0
  612. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/tags/themes/redwood/_oj-tags.cssvars.scss +0 -0
  613. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/tags/themes/redwood/oj-notags.scss +0 -0
  614. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/tags/themes/redwood/oj-tags.scss +0 -0
  615. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/tags/themes/stable/_oj-tags-scoped.cssvars.scss +0 -0
  616. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/tags/themes/stable/_oj-tags.cssvars.scss +0 -0
  617. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/tags/themes/stable/oj-notags.scss +0 -0
  618. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/tags/themes/stable/oj-tags.scss +0 -0
  619. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/text-area/themes/base/_oj-text-area.scss +0 -0
  620. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/text-area/themes/redwood/_oj-text-area.cssvars.scss +0 -0
  621. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/text-area/themes/redwood/oj-text-area.scss +0 -0
  622. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/text-area/themes/stable/_oj-text-area.cssvars.scss +0 -0
  623. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/text-area/themes/stable/oj-text-area.scss +0 -0
  624. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/text-field/themes/base/_oj-text-field.cssvars.scss +0 -0
  625. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/text-field/themes/redwood/_oj-text-field-ignore.scoped.cssvars.scss +0 -0
  626. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/text-field/themes/redwood/_oj-text-field-scoped.cssvars.scss +0 -0
  627. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/text-field/themes/redwood/_oj-text-field.cssvars.scss +0 -0
  628. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/text-field/themes/stable/_oj-text-field-scoped.cssvars.scss +0 -0
  629. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/text-field/themes/stable/_oj-text-field.cssvars.scss +0 -0
  630. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/thematic-map/themes/base/_oj-thematic-map.scss +0 -0
  631. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/thematic-map/themes/redwood/_oj-thematic-map.cssvars.scss +0 -0
  632. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/thematic-map/themes/redwood/oj-thematic-map.scss +0 -0
  633. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/thematic-map/themes/stable/_oj-thematic-map.cssvars.scss +0 -0
  634. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/thematic-map/themes/stable/oj-thematic-map.scss +0 -0
  635. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/time-axis/themes/base/_oj-time-axis.scss +0 -0
  636. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/time-axis/themes/redwood/_oj-time-axis.cssvars.scss +0 -0
  637. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/time-axis/themes/redwood/oj-time-axis.scss +0 -0
  638. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/time-axis/themes/stable/_oj-time-axis.cssvars.scss +0 -0
  639. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/time-axis/themes/stable/oj-time-axis.scss +0 -0
  640. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/timeline/themes/base/_oj-timeline.scss +0 -0
  641. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/timeline/themes/redwood/_oj-timeline-ignore.scoped.cssvars.scss +0 -0
  642. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/timeline/themes/redwood/_oj-timeline.cssvars.scss +0 -0
  643. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/timeline/themes/redwood/oj-timeline.scss +0 -0
  644. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/timeline/themes/stable/_oj-timeline-ignore.scoped.cssvars.scss +0 -0
  645. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/timeline/themes/stable/_oj-timeline.cssvars.scss +0 -0
  646. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/timeline/themes/stable/oj-timeline.scss +0 -0
  647. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/toolbar/themes/base/_oj-toolbar.scss +0 -0
  648. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/toolbar/themes/redwood/_oj-toolbar.cssvars.scss +0 -0
  649. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/toolbar/themes/redwood/oj-toolbar.scss +0 -0
  650. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/toolbar/themes/stable/_oj-toolbar.cssvars.scss +0 -0
  651. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/toolbar/themes/stable/oj-toolbar.scss +0 -0
  652. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/tooltip/themes/base/_oj-tooltip.scss +0 -0
  653. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/tooltip/themes/redwood/_oj-tooltip.cssvars.scss +0 -0
  654. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/tooltip/themes/redwood/oj-tooltip.scss +0 -0
  655. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/tooltip/themes/stable/_oj-tooltip.cssvars.scss +0 -0
  656. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/tooltip/themes/stable/oj-tooltip.scss +0 -0
  657. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/train/themes/base/_oj-train.scss +0 -0
  658. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/train/themes/redwood/_oj-train-scoped.cssvars.scss +0 -0
  659. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/train/themes/redwood/_oj-train.cssvars.scss +0 -0
  660. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/train/themes/redwood/oj-train.scss +0 -0
  661. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/train/themes/stable/_oj-train.cssvars.scss +0 -0
  662. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/train/themes/stable/oj-train.scss +0 -0
  663. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/tree-view/themes/base/_oj-tree-view.scss +0 -0
  664. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/tree-view/themes/redwood/_oj-tree-view.cssvars.scss +0 -0
  665. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/tree-view/themes/redwood/oj-tree-view.scss +0 -0
  666. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/tree-view/themes/stable/_oj-tree-view.cssvars.scss +0 -0
  667. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/tree-view/themes/stable/oj-tree-view.scss +0 -0
  668. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/treemap/themes/base/_oj-treemap.scss +0 -0
  669. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/treemap/themes/redwood/_oj-treemap.cssvars.scss +0 -0
  670. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/treemap/themes/redwood/oj-treemap.scss +0 -0
  671. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/treemap/themes/stable/_oj-treemap.cssvars.scss +0 -0
  672. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/treemap/themes/stable/oj-treemap.scss +0 -0
  673. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/typography/themes/base/_oj-typography.scss +0 -0
  674. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/typography/themes/redwood/_oj-typography-ignore.scoped.cssvars.scss +0 -0
  675. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/typography/themes/redwood/_oj-typography-scoped.cssvars.scss +0 -0
  676. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/typography/themes/redwood/_oj-typography.cssvars.scss +0 -0
  677. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/typography/themes/redwood/oj-typography.scss +0 -0
  678. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/typography/themes/stable/_oj-typography-scoped.cssvars.scss +0 -0
  679. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/typography/themes/stable/_oj-typography.cssvars.scss +0 -0
  680. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/typography/themes/stable/oj-typography.scss +0 -0
  681. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/utilities/_oj.utilities.bidi.scss +0 -0
  682. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/utilities/_oj.utilities.icons.scss +0 -0
  683. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/utilities/_oj.utilities.json.scss +0 -0
  684. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/utilities/_oj.utilities.masonrylayout.scss +0 -0
  685. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/utilities/_oj.utilities.modules.scss +0 -0
  686. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/validation-group/themes/base/_oj-validation-group.scss +0 -0
  687. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/validation-group/themes/redwood/oj-validation-group.scss +0 -0
  688. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/validation-group/themes/stable/oj-validation-group.scss +0 -0
  689. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/waterfall-layout/themes/base/_oj-waterfall-layout.scss +0 -0
  690. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/waterfall-layout/themes/redwood/_oj-waterfall-layout.cssvars.scss +0 -0
  691. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/waterfall-layout/themes/redwood/oj-waterfall-layout.scss +0 -0
  692. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/oj/waterfall-layout/themes/stable/_oj-waterfall-layout.cssvars.scss +0 -0
  693. /package/dist/pcss/oj/{17.0.3 → 17.0.5}/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","jquery","ojs/ojdomutils","ojs/ojlogger","ojs/ojcontext","ojs/ojconfig","ojs/ojtranslation","ojs/ojcomponentcore","ojs/ojthemeutils","ojs/ojdatacollection-common","ojs/ojanimation","ojs/ojdomscroller","ojs/ojcustomelement-utils","@oracle/oraclejet-preact/hooks/UNSAFE_useFormVariantContext","ojs/ojkeyset","ojs/ojvalidator-regexp","ojs/ojkeyboardfocus-utils"],function(e,t,i,l,o,n,s,a,r,_,h,d,u,c,S,E,C,T,p,g,f,A,m,b,L,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,c=c&&Object.prototype.hasOwnProperty.call(c,"default")?c.default:c,C=C&&Object.prototype.hasOwnProperty.call(C,"default")?C.default:C,b=b&&Object.prototype.hasOwnProperty.call(b,"default")?b.default:b,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:""},columnResizeBehavior:{type:"string",enumValues:["add","redistribute"],value:"redistribute"},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:"string"},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"},editableSummary:{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",u.CustomElementBridge.register("oj-table",{metadata:u.CollectionUtils.mergeDeep(D,{properties:{userAssistanceDensity:{binding:{provide:[{name:"containerUserAssistanceDensity",default:"compact"},{name:"userAssistanceDensity",default:"compact"}]}}}})});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",_DIVIDER_RESIZE:"dividerResize",_SINGLE_COL_RESIZE:"singleColResize",_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_SIGNAL="signal",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_HEADER="header",I._CONST_FOOTER="footer",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._OPTION_COLUMN_RESIZE_BEHAVIOR={_ADD:"add",_REDISTRIBUTE:"redistribute"},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.CONTENT_FLICKER_TIMEOUT=20,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,i){const l=this.options.row[t];return"function"==typeof l?l(e):i},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 i=this._getTable();null!=e&&e!==i;){var l=e.nodeName;if(l===I.DOM_ELEMENT._TD||l===I.DOM_ELEMENT._TH)break;if(3!==e.nodeType)if(l.match(t))if(-1!==e.getAttribute(I.DOM_ATTR._TABINDEX))return!0;e=e.parentNode}return!1},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(e){this._pendingFetchStale?(this._pendingFetchStale=!1,this._queueTask(function(){return this._getLayoutManager().notifyTableUpdate(I._UPDATE._DATA_REFRESH),this._beforeDataRefresh(),this._invokeDataFetchRows(this._pendingFetchOptions)}.bind(this))):(e||this._hideStatusMessage(),this._dataFetching=!1,this._pendingFetchStale=!1,this._pendingFetchOptions=null,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=C.getContext(this.element[0]).getBusyContext(),i={description:"The component identified by '"+this._getTableId()+"' "+e};return t.addBusyState(i)},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._skipScrollOnFocus=null,this._active=null,this._isTableTab=null,this._dataFetching=null,this._controller=null,this._isAddRowRendered=!1,this._isRowRemovalRequired=null,this._renderedTableHeaderColumns=!1,this._currentPointerTarget=null,this._previousPointerTarget=null,this._clearAllComponentTimeouts(),this._clearAllComponentBusyStates(),this._clearOpenPopupListeners(),this._clearIdleCallback(),this._unregisterDomScroller(),this._clearLayoutManager(),this._cleanAccStatus(),this._clearSelectionChangedListener(),e?(c(this._getTableBody()).removeAttr(g._OJ_CONTAINER_ATTR),c(this._getTableBody()).removeAttr(C._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),S.unwrap(this.element,c(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),I.CONTENT_FLICKER_TIMEOUT)},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),I.CONTENT_FLICKER_TIMEOUT)},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){E.error(e)}this._setComponentReady()}return e}.bind(this),function(e){return this._taskCount-=1,0===this._taskCount&&(this._pendingTasks=null,E.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._processSlottedChildren()}.bind(this)),this.options.disabled&&this.disable()},I.prototype._refresh=function(){this._dataFetching&&this._controller&&this._controller.abort(A.getAbortReason(this.OuterWrapper));var e=!1;this._active=null,this._pendingFetchOptions=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._statusMessageShown&&this._isSkeletonSupport()||this._refreshTableStatusMessage(),this._clearIdleCallback(),this._hasEditableRow()&&this._setTableEditable(!1,!0),e?this._initFetch():this._queueTask(function(){return this._getLayoutManager().notifyTableUpdate(I._UPDATE._REFRESH),this._invokeDataFetchRows()}.bind(this))},I.prototype._refreshAll=function(e,t){var i=[];if((this._isColumnMetadataUpdated()||!this._isTableHeaderColumnsRendered())&&(this._clearCachedMetadata(),i.push(this._refreshTableHeader()),null!=this._sortColumn)){for(var l=!1,o=this._getColumnDefs(),n=o.length,s=0;s<n;s++){var a=o[s];if(u.Object.compareValues(a,this._sortColumn)){l=!0;break}}l||this._initFetch(null,!0)}return i.push(this._refreshTableFooter()),i.push(this._refreshTableBody(e,t)),Promise.all(i)},I.prototype._refreshTableHeader=function(){try{var e,t=this,i=this._getColumnDefs(),l=i.length,o=this._getTableColGroup();if(null!=o){var n=this._getTableBody();null!=n&&(n.style[I.CSS_PROP._VISIBILITY]=I.CSS_VAL._HIDDEN);var s=this._getTableFooter();if(null!=s&&(s.style[I.CSS_PROP._VISIBILITY]=I.CSS_VAL._HIDDEN),c(o).empty(),this._isGutterStartColumnEnabled()){let e=this._createTableGutterCol();o.appendChild(e)}if(this._isDefaultSelectorEnabled()){var a=this._createTableSelectorCol();o.appendChild(a)}for(e=0;e<l;e++){var r=this._createTableCol();o.appendChild(r)}if(this._isGutterEndColumnEnabled()){let e=this._createTableGutterCol();o.appendChild(e)}}var _=this._getTableBodyLegacyWidthBuffer();if(null!=_)for(c(_).empty(),e=0;e<l;e++){var h=this._createTableBodyCell();h.classList.add(I.CSS_CLASSES._TABLE_LEGACY_WIDTH_BUFFER_CELL_CLASS),_.appendChild(h)}var d=this._getTableHeader();if(!d){if(this._isTableHeaderless())return Promise.resolve();d=this._createTableHeader(),this._styleTableHeader(d)}var u=this._getTableHeaderRow();for(this._unregisterChildStateListeners(u),this._hasHeaderTemplate&&(this._cleanTemplateNodes(u),this._hasHeaderTemplate=!1),c(u).empty(),e=0;e<l;e++){var S=null,E=i[e],C=this._getColumnRenderer(e,"header");if(C){S=this._createTableHeaderColumn(e);var T=this._getRendererContextObject(S,{}),p={headerContext:T,columnIndex:e,data:E.headerText,componentElement:T.componentElement,parentElement:T.parentElement};E.sortable===I._OPTION_ENABLED?p.columnHeaderSortableIconRenderer=function(e,i){t._columnHeaderSortableIconRenderer(this,i)}:p.columnHeaderDefaultRenderer=function(e,i){t._columnHeaderDefaultRenderer(this,i)};var g=C(p);null!=g&&c(S).empty(),A.applyRendererContent(S,g)||(S=c(u).children()[e],this._setTableHeaderColumnAttributes(e,S),this._styleTableHeaderColumn(e,S,!1)),S.classList.add(I.CSS_CLASSES._COLUMN_CUSTOM_HEADER_CLASS)}else{var f=this._getSlotTemplate(E[I._HEADER_TEMPLATE]);if(null==f&&this._isDefaultHeaderTemplateSlotValid()&&(f=this._getSlotTemplate("headerTemplate")),f){var m=this._getRootElement(),b=this._getTemplateEngine();if(null!=b){(S=this._createTableHeaderColumn(e,!0)).classList.add(I.CSS_CLASSES._COLUMN_CUSTOM_HEADER_CLASS);var L=this._getHeaderSlotTemplateContextObject(E.headerText,e),y=b.execute(m,f,L,this.options.as,S,new Map([[R.FormVariantContext,"embedded"]]));y instanceof Array||(y=[y]),y.map(function(e){S.appendChild(e)}),this._hasHeaderTemplate=!0}}}S||this._createTableHeaderColumn(e)}if(this._isGutterEndColumnEnabled()){let e=this._createTableGutterCell("header","end");u.appendChild(e)}if(this._isDefaultSelectorEnabled()){var O=this._createTableHeaderSelectorColumn();u.insertBefore(O,u.firstChild)}if(this._isGutterStartColumnEnabled()){let e=this._createTableGutterCell("header","start");u.insertBefore(e,u.firstChild)}return this._renderedTableHeaderColumns=!0,this._getLayoutManager().optimizeInitialColumnWidths(),this._finalizeNonBodyRowRendering([u])}catch(e){return Promise.reject(e)}},I.prototype._refreshTableFooter=function(){try{var e=this._getColumnDefs(),t=this._getTableFooter();if(this._isTableFooterless())return t?(g.subtreeDetached(t),this._hasFooterTemplate&&(this._cleanTemplateNodes(t),this._hasFooterTemplate=!1),c(t).remove(),this._clearCachedDom(),Promise.resolve()):Promise.resolve();t||(t=this._createTableFooter(),this._styleTableFooter(t)),this._initializeTableFooterHide(t);var i=this._getTableFooterRow();if(this._hasFooterTemplate&&(this._cleanTemplateNodes(i),this._hasFooterTemplate=!1),c(i).empty(),e.length>0){for(var l=this._isDefaultFooterTemplateSlotValid(),o=e.length,n=0;n<o;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={footerContext:_,columnIndex:n,componentElement:_.componentElement,parentElement:_.parentElement};A.applyRendererContent(r,a(h))||(r=c(i).children()[n],this._setTableFooterColumnAttributes(n,r),this._styleTableFooterCell(n,r))}else{var d=this._getSlotTemplate(s[I._FOOTER_TEMPLATE]);if(null==d&&l&&(d=this._getSlotTemplate("footerTemplate")),d){var u=this._getRootElement(),S=this._getTemplateEngine();if(null!=S){var E=this._getFooterSlotTemplateContextObject(n),C=S.execute(u,d,E,this.options.as,r,new Map([[R.FormVariantContext,"embedded"]]));C instanceof Array||(C=[C]),C.map(function(e){r.appendChild(e)}),this._hasFooterTemplate=!0}}}}if(this._isGutterEndColumnEnabled()){let e=this._createTableGutterCell("footer","end");i.appendChild(e)}if(this._isDefaultSelectorEnabled()){var T=this._createTableFooterSelectorCell();i.insertBefore(T,i.firstChild)}if(this._isGutterStartColumnEnabled()){let e=this._createTableGutterCell("footer","start");i.insertBefore(e,i.firstChild)}}return this._finalizeNonBodyRowRendering([i])}catch(e){return Promise.reject(e)}},I.prototype._refreshTableBody=function(e,t,i){var l=this._getTableBody();if(null==l)return Promise.resolve();this._scrollLeft=void 0===this._scrollLeft?0:this._scrollLeft,this._scrollTop=void 0===this._scrollTop?0:this._scrollTop;var o=[];return o.push(this._refreshAddNewRowPlaceholder(!0)),o.push(this._finalizeTableBody(e,t,l,i)),Promise.all(o)},I.prototype._finalizeTableBody=function(e,t,i,l){var o,n,s=this._getRowIdxRowArray(e,t);if(0===s.length&&(0===t||0===this._getTableBodyRows().length))return n=this._clearTableBodyRowsFromIndex(t),this._showNoDataMessage(),n&&this._getTable().focus(),this._finalizeNonBodyRowRendering([i]);const a=document.createDocumentFragment();if(t>0&&this._isLoadMoreOnScroll()&&!this._isLastRowInViewport()&&!this._fetchBySyncScroll)return new Promise(function(l,o){this._setIdleRenderBusyState(),this._renderRowsWhenIdle(s.slice(0),i,a,[],t,l,o,e.isMouseWheel)}.bind(this));var r=[],_=s.length,h=[];for(o=0;o<_;o++)r.push(s[o].rowIdx),h.push(this._renderRow(s[o],a,t));var d=this._animateOnFetch&&this._IsCustomElement();return this._animateOnFetch=!1,Promise.all(h).then(function(e){return n=this._clearTableBodyRowsFromIndex(t),l||this._initializeTableBodyHide(i),this._getLayoutManager().handleAfterRowsProcessed(a),this._appendElementToTableBody(a,i),n&&this._getTable().focus(),d?this._animateVisibleRows(e,r,"add").then(function(){return this._afterRowsRendered(i)}.bind(this)):this._afterRowsRendered(i)}.bind(this),function(e){return Promise.reject(e)})},I.prototype._clearTableBodyRowsFromIndex=function(e){var t=this._getTableBody().contains(document.activeElement),i=!1;if(0===e)t&&(i=!0),this._removeAllTableBodyRows();else{var l=this._getTableBodyRows().length;if(l>0)for(var o=l-1;o>=e;o--){if(t){var n=this._getTableBodyRow(o);null!=n&&n.contains(document.activeElement)&&(i=!0,t=!1)}this._removeTableBodyRow(o)}}return this._clearCachedDomRowData(),this._hideNoDataMessage(),this._isRowRemovalRequired=!1,i},I.prototype._isDefaultSelectorEnabled=function(){return"true"===this._getDefaultOptions().enableSelector&&this._getRowSelectionMode()===I._OPTION_SELECTION_MODES._MULTIPLE},I.prototype._refreshTableBodyRow=function(e,t,i,l,o,n){var s=!1;try{var a=this._getRowRenderer();if((isNaN(e)||e<0)&&E.error("Error: Invalid rowIdx value: "+e),null==i){if(!(i=this._getTableBodyRow(e)))return Promise.resolve(null);(this._hasCellTemplate||this._hasRowTemplate)&&this._cleanTemplateNodes(i),c(i).empty()}var r=this._getCurrentRow();r=r||{};var _=this._getRendererContextObject(i,{row:t,isCurrentRow:r.rowIndex===e});_.editable=this._invokeRowEditableCallback(i[I._ROW_ITEM_EXPANDO]);const b=this._invokeRowSelectableCallback(i[I._ROW_ITEM_EXPANDO]);var h={rowContext:_,row:t[I._CONST_DATA],componentElement:_.componentElement,parentElement:_.parentElement,data:t[I._CONST_DATA]},d=!1,u=this._getTableBody();if(null!=a||this._isDefaultRowTemplateSlotValid()&&null!==this._getSlotTemplate("rowTemplate")){if(null!=a){var S=a(h);null!=S?i.appendChild(S):null==l?i=this._getRawTableBodyRow(e):(o=null==o?0:o,i=l.children?l.children[e-o]:c(l).children()[e-o])}else{var C=this._getSlotTemplate("rowTemplate"),T=this._getRootElement(),p=this._getTemplateEngine();if(null!=p){var f=this._getRowSlotTemplateContextObject(h),A=p.execute(T,C,f,this.options.as,u,new Map([[R.FormVariantContext,"embedded"]]));for(let e=0;e<A.length;e++){var m=A[e];if("TR"===m.tagName){i.parentNode.replaceChild(m,i),i=m,d=!1;break}i.appendChild(m),d=!0}this._hasRowTemplate=!0}}return i._ojReportBusy=u,null==l&&(s=!0,i.classList.add(I.CSS_CLASSES._TABLE_DATA_ROW_REFRESH_CLASS),g.subtreeHidden(i)),this._waitForAllElementsToResolve([i]).then(function(){if(d){var l=i.children;for(let e=0;e<l.length;e++){var o=l[e];if("TR"===o.tagName){i.parentNode.replaceChild(o,i),(i=o)._ojReportBusy=u;break}}}return this._setTableBodyRowAttributes(t,i),this._clearCachedDomRowData(),this._styleTableBodyRow(i,!1),this._applyColumnsDestMap(i),this._applyColumnsStyling(i,t,e),this._finalizeTableBodyCellsRefresh(i,t,e,_.editable,b,n,s)}.bind(this))}return this._setTableBodyRowAttributes(t,i),this._tableBodyRowDefaultRenderer(e,t,h),this._finalizeTableBodyCellsRefresh(i,t,e,_.editable,b,n,s)}catch(e){return s&&(i.classList.remove(I.CSS_CLASSES._TABLE_DATA_ROW_REFRESH_CLASS),1===i.nodeType&&L.CustomElementUtils.subtreeShown(i,!1,!0)),Promise.reject(e)}},I.prototype._applyColumnsDestMap=function(e){if(null!=this._columnsDestMap){var t=this._getChildElementsByTagName(e,I.DOM_ELEMENT._TD),i=this._getColspanLogicalElements(t);for(let e=0;e<this._columnsDestMap.length;e++){var l=i[this._columnsDestMap[e]];l.parentNode.appendChild(l)}}},I.prototype._applyColumnsStyling=function(e,t,i){var l=this._getChildElementsByTagName(e,I.DOM_ELEMENT._TD),o=this._getColspanLogicalElements(l),n=[];for(let e=0;e<o.length;e++){var s=o[e];-1===n.indexOf(s)&&(this._setTableBodyCellAttributes(i,t[I._CONST_KEY],e,s),this._styleTableBodyCell(e,s,!1),n.push(s))}},I.prototype._finalizeTableBodyCellsRefresh=function(e,t,i,l,o,n,s){return this._handleDefaultSelectorCreation(e,t,i,o),this._getLayoutManager().handleRowRefresh(i,e,n),e[I._DATA_OJ_EDITABLE]=l,e[I._DATA_OJ_SELECTABLE]=o,s&&(e.classList.remove(I.CSS_CLASSES._TABLE_DATA_ROW_REFRESH_CLASS),1===e.nodeType&&L.CustomElementUtils.subtreeShown(e,!1,!0)),Promise.resolve(e)},I.prototype._handleDefaultSelectorCreation=function(e,t,i,l){var o=this._getColumnDefs();if(o.length>0){if(this._isDefaultSelectorEnabled()&&l!==I._CONST_OFF&&this._createTableBodyDefaultSelector(t.key,e),this._isGutterStartColumnEnabled()){let t=this._createTableGutterCell("body","start");e.insertBefore(t,e.firstChild)}if(this._isGutterEndColumnEnabled()){let t=this._createTableGutterCell("body","end");e.appendChild(t)}}l===I._CONST_OFF&&o.length>0&&this._isDefaultSelectorEnabled()&&(this._getTableBodyCells(i,e)[0].colSpan+=I._SELECTOR_OFF_COLSPAN_OFFSET)},I.prototype._refreshAddNewRowPlaceholder=function(e){let t=this._getPlaceHolderRow();if(!this._isAddNewRowEnabled()){if(null!=t){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(t),c(t).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 S=this._getRootElement(),E=this._getTableBody();var l;null!=t&&(this._cleanTemplateNodes(t),c(t).empty()),null==t&&(t=this._createTableBodyRow()),E.insertBefore(t,E.firstChild);var o=!1;if(null!=_&&this._isDefaultAddRowTemplateSlotValid()){d=this._getRowSlotTemplateContextObject({},!0),d.submitAddRow=u;const l=i.execute(S,_,d,this.options.as,E);for(let e=0;e<l.length;e++){var n=l[e];if("TR"===n.tagName){t.parentNode.replaceChild(n,t),t=n,t._ojReportBusy=E,o=!1;break}t.appendChild(n),o=!0}return this._waitForAllElementsToResolve([t]).then(function(){if(o){var i=t.children;for(let e=0;e<i.length;e++){var l=i[e];if("TR"===l.tagName){t.parentNode.replaceChild(l,t),t=l,t._ojReportBusy=E;break}}}if(null!=this._columnsDestMap){var n=this._getPlaceHolderRowCells(t);for(let e=0;e<this._columnsDestMap.length;e++){var s=n[this._columnsDestMap[e]];s.parentNode.appendChild(s)}}return this._finalizePlaceHolderRowSetup(t,e)}.bind(this))}if(null!==h&&this._isDefaultAddRowCellTemplateSlotValid()){for(var s=this._getColumnDefs().length,a=0;a<s;a++){l=this._createTableBodyCell(),t.appendChild(l),d=this._getCellSlotTemplateContextObject({columnIndex:a},!0),d.submitAddRow=u;var r=i.execute(S,h,d,this.options.as,E);r instanceof Array||(r=[r]);for(let e=0;e<r.length;e++)l.appendChild(r[e])}return this._finalizePlaceHolderRowSetup(t,e)}}}return Promise.resolve(!1)},I.prototype._finalizePlaceHolderRowSetup=function(e,t){let i;e.classList.add(I.CSS_CLASSES._TABLE_ADD_ROW_PLACEHOLDER_CLASS);let l=this._getPlaceHolderRowCells(e);for(let e=0;e<l.length;e++)i=l[e],this._styleTableAddRowCell(e,i);if(this._isAddRowRendered=!0,this._hasAddRowTemplate=!0,this._isDefaultSelectorEnabled()&&(i=document.createElement(I.DOM_ELEMENT._TD),e.insertBefore(i,e.firstChild),i.classList.add(I.CSS_CLASSES._TABLE_FROZEN_START),this._isVerticalGridEnabled()&&i.classList.add(I.CSS_CLASSES._TABLE_VGRID_LINES_CLASS)),this._isGutterStartColumnEnabled()){let t=this._createTableGutterCell("body","start");e.insertBefore(t,e.firstChild)}if(this._isGutterEndColumnEnabled()){let t=this._createTableGutterCell("body","end");e.appendChild(t)}return t||this._getLayoutManager()._updateStickyRowTops(),this._finalizeNonBodyRowRendering([e])},I.prototype._finalizeBodyRowRendering=function(e){var t=this._getTableBody();return this._waitForAllElementsToResolve([t]).then(function(){var t=this._hasEditableRow()?this._getEditableRowKey():null,i=this._isTableActionableMode()&&this._active?this._active.key:null;return e.forEach(function(e){if(null!=e){var l=this._getRowKey(e);null!=t&&u.KeyUtils.equals(l,t)||null!=i&&u.KeyUtils.equals(l,i)||A.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){A.disableAllFocusableElements(e,null,!0)}),Promise.resolve(!0)})},I.prototype._waitForAllElementsToResolve=function(e){var t=[];return e.forEach(function(e){e&&t.push(C.getContext(e).getBusyContext().whenReady())}),Promise.all(t)},I.prototype._refreshRow=function(e,t,i,l){var o=this._getData(),n=this._getTableBodyRow(e);if(!t){if(!o)return Promise.resolve(!1);if(!n){var s=I._LOGGER_MSG._ERR_REFRESHROW_INVALID_INDEX_SUMMARY,a=p.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),null!=l){var h=new Map;h.set(_,l),r=Promise.resolve({results:h})}else if(i){var d=new Map,u={data:n[I._ROW_ITEM_EXPANDO].data,metadata:n[I._ROW_ITEM_EXPANDO].metadata};d.set(_,u),r=Promise.resolve({results:d})}else r=o.fetchByKeys({keys:new Set([_])});return r.then(function(t){if(null==t||null==t.results||0===t.results.size)return Promise.resolve(!1);var i=n.contains(document.activeElement),l=t.results.get(_);return this._refreshTableBodyRow(e,{data:l.data,metadata:l.metadata,index:e,key:_},null,null,null,!0).then(function(e){return i&&this._getTable().focus(),null==e?Promise.resolve(!0):this._finalizeBodyRowRendering([e])}.bind(this))}.bind(this))},I.prototype._refreshTableStatusMessage=function(){var e=this._getTableStatusMessage();null!=e&&c(e).remove(),this._createTableStatusMessage()},I.prototype._showStatusMessage=function(){if(!this._showStatusTimeout&&!this._statusMessageShown){var e=this._getTableTempSkeletonRow();if(null!=e&&this._getTableBody().removeChild(e),this._isSkeletonSupport()){var t=this._getData();if(t instanceof u.TableDataSourceAdapter){var i=t._startIndex;if(null!=i&&i>0)return}this._isExternalScrollEnabled()&&this._bufferScrollerForLastRow(),this._isRowRemovalRequired=!0}this._showStatusTimeout=setTimeout(function(){var e=!1;this._isSkeletonSupport()&&this._isRowRemovalRequired&&(e=this._clearTableBodyRowsFromIndex(0)),this._refreshTableStatusPosition(!0),e&&this._getTable().focus(),this._showStatusTimeout=null}.bind(this),this._getShowStatusDelay())}},I.prototype._showProgressiveLoading=function(){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 i=this._createTableBodyCell(),l=this._getColumnDefs().length;this._isGutterStartColumnEnabled()&&(l+=1),this._isGutterEndColumnEnabled()&&(l+=1),i.colSpan=this._isDefaultSelectorEnabled()?l+1:l,i.classList.add(I.CSS_CLASSES._TABLE_SKELETON_CELL_CLASS);for(var o=0;o<3;o++)i.appendChild(this._createSkeletonRow());t.appendChild(i),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,t){var i;if(this._isSkeletonSupport()&&null!=(i=null!=e?e:-1===t?this._getPlaceHolderRow():this._getTableBodyRow(t))){for(var l=i.children,o=0;o<l.length;o++)l[o].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===t&&(n.style[I.CSS_PROP._TOP]=l[0].style.top);var a=this._createSkeletonRow();n.appendChild(a),i.insertBefore(n,i.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,t){var i;if(this._isSkeletonSupport()&&null!=(i=null!=e?e:-1===t?this._getPlaceHolderRow():this._getTableBodyRow(t))){var l=i.children[0];if(null!=l&&l.classList.contains(I.CSS_CLASSES._TABLE_SKELETON_CELL_CLASS)){var o=l.children[0];null!=o&&(o.classList.remove(I.CSS_CLASSES._ANIMATION_SKELETON_FADE_IN_CLASS),o.removeEventListener("animationend",this._skeletonHWMSFadeInEndListener)),i.removeChild(l)}for(var n=i.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 i=t.childNodes,l=i.length;l>0;l--)t.removeChild(i[l-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]),i=f.getCachedCSSVarValues(t);e.forEach((e,t)=>{this._defaultOptions[e]=i[t]})}return this._defaultOptions},I.prototype._getShowStatusDelay=function(){return S.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(),i=this._getSlotTemplate("noData");if(this._isDefaultTemplateSlotValid("noData")&&null!==i){var l=this._getTable(),o=this._getTableBody();l.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,o),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(),i,{},null,o).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)c(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 i=this._getTableNoDataRow();null!=i&&(this._cleanTemplateNodes(i),c(i).remove(),this._hasNoDataTemplate=!1)}}this._noDataMessageShown=!1}},I.prototype._handleContextMenuResizePopup=function(){let e,t;if("redwood"===f.parseJSONFromFontFamily("oj-theme-json").behavior){let i=document.getElementById(this._getTableUID()+"_resize_column_width_input"),l=this._getContextMenuResizeDialog();if(e=parseInt(l.getAttribute(I._DATA_OJ_COLUMNIDX),10),this._IsCustomElement()&&"valid"===i.valid)t=i.value,l.close();else{if(this._IsCustomElement()||"valid"!==c(i).ojInputNumber("option","valid"))return;t=c(i).ojInputNumber("option","value"),c(l).ojDialog("close")}}else{let i=document.getElementById(this._getTableUID()+"_resize_popup_spinner"),l=this._getContextMenuResizePopup();if(e=parseInt(l.getAttribute(I._DATA_OJ_COLUMNIDX),10),this._IsCustomElement()&&"valid"===i.valid)t=i.value,l.close();else{if(this._IsCustomElement()||"valid"!==c(i).ojInputNumber("option","valid"))return;t=c(i).ojInputNumber("option","value"),c(l).ojPopup("close")}}for(var i=[],l=this.options.columns.length,o=0;o<l;o++)i[o]=c.extend({},{},this.options.columns[o]);var n=this._getLayoutManager().getMinimumForcedOffsetWidth(e);i[e].width=Math.max(t,n),this.option("columns",i,{_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 i,l=(i=t?t.item:c(e.target)).attr(I._DATA_OJ_COMMAND),o=this._getFirstAncestor(this._contextMenuEvent.target,"."+I.CSS_CLASSES._COLUMN_HEADER_CELL_CLASS,!0);o=null==o?this._contextMenuEventHeaderColumn:o;var n=this._getFirstAncestor(this._contextMenuEvent.target,"."+I.CSS_CLASSES._TABLE_DATA_CELL_CLASS,!0),s=null;if(null!=o?s=this._getElementColumnIdx(o):null!=n&&(s=this._getElementColumnIdx(n)),null!==s)if("oj-table-sortAsc"===l)this._handleSortTableHeaderColumn(s,!0,e);else if("oj-table-sortDsc"===l)this._handleSortTableHeaderColumn(s,!1,e);else if("oj-table-enableNonContiguousSelection"===l)this._nonContiguousSelection=!0,this._removeTableBodyRowTouchSelectionAffordance(),i.attr(I._DATA_OJ_COMMAND,"oj-table-disableNonContiguousSelection"),i.children().first().text(this.getTranslatedString("labelDisableNonContiguousSelection"));else if("oj-table-disableNonContiguousSelection"===l)this._nonContiguousSelection=!1,i.attr(I._DATA_OJ_COMMAND,"oj-table-enableNonContiguousSelection"),i.children().first().text(this.getTranslatedString("labelEnableNonContiguousSelection"));else if("oj-table-resize"===l){var a=o||n,r=this._getLayoutManager().getColumnWidthProperty(a),_=null!=o?o:n;if("redwood"===f.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(_)):(c(t).ojInputNumber("option","value",Math.round(r)),c(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(_)):(c(t).ojInputNumber("option","value",Math.round(r)),c(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||(S.addResizeListener(e,this._resizeListener,50,!0),this._isResizeListenerAdded=!0)},I.prototype._unregisterResizeListener=function(){var e=this._getTableContainer();S.removeResizeListener(e,this._resizeListener),this._isResizeListenerAdded=!1},I.prototype._unregisterChildStateListeners=function(e){for(var t=e.querySelectorAll("*"),i=0;i<t.length;i++)this._UnregisterChildNode(t[i])},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,i=0;i<t;i++){var l=this._getSlotTemplate(e[i][I._HEADER_TEMPLATE]);if(null!=e[i].headerText||null!=e[i].headerStyle||null!=e[i].sortable&&e[i].sortable!==I._OPTION_DISABLED||null!=e[i].sortProperty||null!=e[i].headerRenderer||null!=l)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,i=0;i<t;i++){var l=this._getColumnRenderer(i,"footer"),o=this._getSlotTemplate(e[i][I._FOOTER_TEMPLATE]);if(null!=l)return!1;if(null!=o)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,i){var l,o=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!=i&&("scrollerOffsetTop"===i.subkey||"scrollerOffsetBottom"===i.subkey||"scrollerOffsetStart"===i.subkey||"scrollerOffsetEnd"===i.subkey)||u.Object.compareValues(t,o[e])?l=!1:("verticalGridVisible"!==e&&"display"!==e||(this._renderedTableHeaderColumns=!1),l=!0),l},I.prototype._isTableSortable=function(){for(var e=this._getColumnDefs(),t=e.length,i=0;i<t;i++)if(e[i].sortable===I._OPTION_ENABLED)return!0;return!1},I.prototype._isTableColumnsResizable=function(){for(var e=this._getColumnDefs(),t=e.length,i=0;i<t;i++)if(e[i].resizable===I._OPTION_ENABLED)return!0;return!1},I.prototype._isTouchDevice=function(){return null==this._isTouch&&(this._isTouch=A.isMobileTouchDevice()),this._isTouch},I.prototype._processSlottedChildren=function(){var e=this._getTableBottomSlot();null!=e&&c(e).remove();for(var t=L.CustomElementUtils.getSlotMap(this._getRootElement()),i=Object.keys(t),l=0;l<i.length;l++){var o=i[l];if("bottom"===o){var n=t[o];if(null!=n){e=this._createTableBottomSlot();for(var s=0;s<n.length;s++)e.appendChild(n[s])}}}},I.prototype._handleSortTableHeaderColumn=function(e,t,i){this._clearSortedHeaderColumn(e);var l=this._getColumnDefs()[e],o=null==l.sortProperty?l.field:l.sortProperty;this._invokeDataSort(o,t,i),this._sortColumn=l,this._refreshSortTableHeaderColumn(o,t)},I.prototype._processFetchSort=function(e){try{var t=e.fetchParameters[I._CONST_SORTCRITERIA];if(null!=t&&t.length>0){var i=t[0].attribute,l=t[0].direction===I._COLUMN_SORT_ORDER._ASCENDING;this._refreshSortTableHeaderColumn(i,l),this._setCurrentRow(this.options.currentRow)}else this._clearSortedHeaderColumn()}catch(e){E.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==c(t).data("sorted")){var i=this._getSortIconContainer(t),l=this._getSortIcon(t);null!=i&&null!=l&&(l.classList.remove(I.MARKER_STYLE_CLASSES._DISABLED),l.classList.add(I.MARKER_STYLE_CLASSES._ENABLED),l.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==c(t).data("sorted")){var i=this._getSortIconContainer(t),l=this._getSortIcon(t);null!=i&&null!=l&&(i.setAttribute(I.DOM_ATTR._TITLE,this.getTranslatedString("labelSortAsc")),l.classList.remove(I.CSS_CLASSES._COLUMN_HEADER_DSC_ICON_CLASS),l.classList.remove(I.CSS_CLASSES._COLUMN_HEADER_ASC_ICON_CLASS),l.classList.add(I.CSS_CLASSES._COLUMN_HEADER_DEFAULT_SORT_ICON_CLASS),l.classList.add(I.MARKER_STYLE_CLASSES._DISABLED),l.classList.remove(I.MARKER_STYLE_CLASSES._ENABLED),l.classList.remove(I.MARKER_STYLE_CLASSES._DEFAULT))}}},I.prototype._refreshSortTableHeaderColumn=function(e,t){for(var i,l=this._getColumnDefs(),o=null,n=l.length,s=0;s<n;s++){var a=l[s];if(e===(null==a.sortProperty?a.field:a.sortProperty)){o=s;break}}if(null!=o){this._clearSortedHeaderColumn(o);var r=this._getTableHeaderColumn(o);if(null!=r){var _=c(r).data("sorted"),h=this._getSortIconContainer(r);null!=(i=this._getSortIcon(r))&&(i.classList.add(I.MARKER_STYLE_CLASSES._DEFAULT),i.classList.remove(I.MARKER_STYLE_CLASSES._DISABLED)),t&&_!==I._COLUMN_SORT_ORDER._ASCENDING?(c(r).data("sorted",I._COLUMN_SORT_ORDER._ASCENDING),null!=i&&(h.setAttribute(I.DOM_ATTR._TITLE,this.getTranslatedString("labelSortDsc")),i.classList.remove(I.CSS_CLASSES._COLUMN_HEADER_DEFAULT_SORT_ICON_CLASS),i.classList.remove(I.CSS_CLASSES._COLUMN_HEADER_DSC_ICON_CLASS),i.classList.add(I.CSS_CLASSES._COLUMN_HEADER_ASC_ICON_CLASS))):t||_===I._COLUMN_SORT_ORDER._DESCENDING||(c(r).data("sorted",I._COLUMN_SORT_ORDER._DESCENDING),null!=i&&(h.setAttribute(I.DOM_ATTR._TITLE,this.getTranslatedString("labelSortAsc")),i.classList.remove(I.CSS_CLASSES._COLUMN_HEADER_DEFAULT_SORT_ICON_CLASS),i.classList.remove(I.CSS_CLASSES._COLUMN_HEADER_ASC_ICON_CLASS),i.classList.add(I.CSS_CLASSES._COLUMN_HEADER_DSC_ICON_CLASS)))}}},I.prototype._getSortedTableHeaderColumnIdx=function(){for(var e=this._getTableHeaderColumns(),t=0;t<e.length;t++){if(null!=c(e[t]).data("sorted"))return t}return null},I.prototype._clearSortedHeaderColumn=function(e){var t=this._getSortedTableHeaderColumnIdx();if(null!=t){var i=this._getTableHeaderColumn(t);if(c(i).data("sorted",null),null==e||t!==e)this._hideTableHeaderColumnSortIcon(t);else{var l=this._getSortIcon(i);null!=l&&l.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,i=null!=e?e:this.options.columns,l=this.options.columnsDefault;if((0===i.length||1===i.length&&null==i[0].id&&null==i[0].headerText&&null==i[0].field)&&null==l.headerText&&null==l.field)return[];var o=[],n=i.length;for(t=0;t<n;t++)o[t]=c.extend({},l,i[t]);var s=[],a=o.length;for(t=0;t<a;t++)s.push(o[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 i=this._getColumnDefs()[e],l=null;return"cell"===t?l=i.renderer:"footer"===t?l=i.footerRenderer:"header"===t&&(l=i.headerRenderer),this._WrapCustomElementRenderer(l)},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._controller,t=this._getLayoutManager();this._domScrollerSuccessFunc=function(e){if(this._clearDataWaitingState(!this._animateOnFetch),null!=e){if(A.isFetchAborted(e))return this._hideStatusMessage(),void this._clearScrollBuffer();this._noMoreData=!1,e.maxCountLimit&&(this._noMoreData=!0,this._handleScrollerMaxRowCount());var i=e[I._CONST_VALUE];if(null!=i){var l=i[I._CONST_DATA],o=i.metadata.map(function(e){return e[I._CONST_KEY]}),n=i[I._CONST_METADATA];if(l.length>0)return null!=this._domScroller&&this._domScroller.pauseScrollTracking(),void this._queueTask(function(){var i,s=!1;for(i=o.length-1;i>=0;i--)if(null!==this._getRowIdxForRowKey(o[i]))l.splice(i,1),o.splice(i,1),n.splice(i,1),s=!0;else for(var a=0;a<i;a++)u.KeyUtils.equals(o[i],o[a])&&(l.splice(i,1),o.splice(i,1),n.splice(i,1),s=!0);if(s&&E.warn(A.WARN_DUPLICATE_KEYS_DETAIL),l.length>0){t.notifyTableUpdate(I._UPDATE._ROWS_ADDED);var r=this._getTableBodyRows().length,_=[];for(i=0;i<l.length;i++)_[i]=r+i;return this._refreshTableBody({isMouseWheel:e.isMouseWheel,data:l,keys:o,metadata:n,indexes:_},r,!0).then(function(){null!=this._domScroller&&this._domScroller.resumeScrollTracking(),this._hideStatusMessage(),e.done?(this._noMoreData=!0,this._syncScrollPosition()):this._syncScrollPosition(null,null!=this._scrollPosition)}.bind(this),function(e){this._hideStatusMessage()}.bind(this))}return null!=this._domScroller&&this._domScroller.resumeScrollTracking(),this._hideStatusMessage(),Promise.resolve()}.bind(this))}this._hideStatusMessage(),e.done?(this._noMoreData=!0,this._clearScrollBuffer(),this._syncScrollPosition()):(this._clearScrollBuffer(),this._syncScrollPosition(null,null!=this._scrollPosition))}else this._hideStatusMessage(),this._clearScrollBuffer(),this._syncScrollPosition()}.bind(this),this._domScrollerErrorFunc=function(t){e&&e.signal.aborted&&this._pendingFetchStale&&this._clearDataWaitingState(),this._clearScrollBuffer()}.bind(this);var i=this._getTableBodyRows().length;this._requiresDomScrollerRefresh=!1,this._domScroller=new b(t.getScroller(),this._getData(),{asyncIterator:this._dataProviderAsyncIterator,contentElement:t.getContentElement(),fetchSize:this.options.scrollPolicyOptions.fetchSize,maxCount:this.options.scrollPolicyOptions.maxCount,initialRowCount:i,controller:e,success:this._domScrollerSuccessFunc.bind(this),error:this._domScrollerErrorFunc.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._isSkeletonSupport()?this._showProgressiveLoading():this._showStatusMessage(),!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")}for(var i=this._getTableHeaderColumns(),l=0;l<i.length;l++)i[l].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")}for(var i=this._getTableFooterCells(),l=0;l<i.length;l++)i[l].style[I.CSS_PROP._BOTTOM]=e+"px"},I.prototype._handleScrollerMaxRowCount=function(){var e=this.getTranslatedString("msgScrollPolicyMaxCountSummary"),t=this.getTranslatedString("msgScrollPolicyMaxCountDetail");E.info(e+"\n"+t)},I.prototype._clearIdleCallback=function(){null!=this._idleCallback&&(A.isRequestIdleCallbackSupported()?(window.cancelIdleCallback(this._idleCallback),window.cancelAnimationFrame(this._idleCallback)):window.cancelAnimationFrame(this._idleCallback),this._idleCallback=null)},I.prototype._requestIdleCallback=function(e,t){if(A.isRequestIdleCallbackSupported()){var i,l=window.setTimeout(function(){this._idleCallback=window.requestAnimationFrame(function(){t()}),l=null},250);e&&A.isBlink()&&(i={timeout:100}),this._idleCallback=window.requestIdleCallback(function(e){null!=l&&(window.clearTimeout(l),t(e))},i)}else this._idleCallback=window.requestAnimationFrame(function(){t()})},I.prototype._renderRowsWhenIdle=function(e,t,i,l,o,n,s,a){var r=this;if(0===e.length)return this._idleCallback=null,void Promise.all(l).then(function(){var e=r._clearTableBodyRowsFromIndex(o);r._getLayoutManager().handleAfterRowsProcessed(i),r._appendElementToTableBody(i,t),e&&r._getTable().focus(),r._afterRowsRendered(t).then(function(e){n(e)},function(e){s(e)})},function(e){s(e)});var _=0;function h(){window.requestAnimationFrame(function(){r._renderRowsWhenIdle(e,t,i,l,o,n,s,a),a&&A.isFirefox()&&t.scrollTop!==r._scrollTop&&(t.scrollTop=r._scrollTop)})}try{this._requestIdleCallback(a,function(n){void 0===n?function(){for(var n=0;n<I._BATCH_PROCESS_SIZE_WHEN_IDLE&&0!==e.length;n++)0!==_||r._getLayoutManager().isTableWidthConstrained()||(t.style[I.CSS_PROP._OVERFLOW_X]="hidden"),l.push(r._renderRow(e.shift(),i,o)),_+=1;h()}():function(n){for(var s=n.timeRemaining(),a=0;(s>a||n.didTimeout)&&0!==e.length;)0!==_||r._getLayoutManager().isTableWidthConstrained()||(t.style[I.CSS_PROP._OVERFLOW_X]="hidden"),l.push(r._renderRow(e.shift(),i,o)),_+=1,a=s-n.timeRemaining(),s=n.timeRemaining();h()}(n)})}catch(e){s(e)}},I.prototype._renderRow=function(e,t,i){var l=e.row,o=e.rowIdx;if(null!=l){var n=this._createTableBodyRow();return this._setTableBodyRowAttributes(l,n),this._styleTableBodyRow(n,!0),this._insertTableBodyRow(o,n,t),this._refreshTableBodyRow(o,l,n,t,i)}return Promise.resolve(null)},I.prototype._afterRowsRendered=function(e){this._clearCachedDomRowData(),this._clearIdleRenderBusyState(),this._hasRowOrCellRendererOrTemplate()&&g.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),i=[];if(t&&t.length>0)for(var l=t.length,o=0;o<l;o++){for(var n=this._getElementRowIdx(t[o]),s=!1,a=i.length,r=0;r<a;r++)i[r]===n&&(s=!0);s||i.push(n)}return i},I.prototype._getColumnIdxsForElementsWithStyleClass=function(e){var t=this._tableQuerySelectorAll(this._getTable(),e),i=[];if(t&&t.length>0)for(var l=t.length,o=0;o<l;o++){var n=this._getElementColumnIdx(t[o]),s=!1;null===n&&(t[o].classList.contains(I.CSS_CLASSES._COLUMN_HEADER_SELECTOR_CELL_CLASS)||t[o].classList.contains(I.CSS_CLASSES._TABLE_FOOTER_SELECTOR_CELL_CLASS))&&(n=-1);for(var a=i.length,r=0;r<a;r++)i[r]===n&&(s=!0);s||i.push(n)}return i},I.prototype._syncTableSizing=function(e){var t=this._getLayoutManager();t.isTableLayoutRefreshRequired()&&(e||t.isSizingRefreshRequired())&&t.refreshTableDimensions();var i=this._updateScrollBufferHeight();this._isLoadMoreOnScroll()&&!this._dataFetching&&this._domScroller?(this._setDataWaitingState(!1),this._domScroller.checkViewport(i>0||this._noDataMessageShown).then(this._domScrollerSuccessFunc,this._checkViewportRejected.bind(this))):(this._clearScrollBuffer(),this._syncScrollPosition())},I.prototype._updateScrollBufferHeight=function(){var e=0,t=this._getLayoutManager(),i=this._getTableBodyScrollBuffer();if(null!=i&&(e=i.offsetHeight)>0){var l=t.getVerticalOverflowDiff(i).bottom,o=Math.min(Math.max(0,e-l),e);o!==e&&(e=o,i.style[I.CSS_PROP._HEIGHT]=e+I.CSS_VAL._PX)}return e},I.prototype._clearScrollBuffer=function(){var e=this._getTableBodyScrollBuffer();if(null!=e){var t=e.offsetHeight;if(t>0){var i=this._getLayoutManager(),l=i.getVerticalOverflowDiff(e).bottom,o=Math.max(0,t-l);if(o>0){var n=c(i.getScroller());n.scrollTop(n.scrollTop()-o),this._skipScrollUpdate=!1,i.updateCurrentScrollState()}}this._getTableBody().removeChild(e),this._clearDomCache(I.CSS_CLASSES._TABLE_BUFFER_ROW_CLASS)}},I.prototype._animateVisibleRows=function(e,t,i){if(i=null==this._animationActionOverride?i:this._animationActionOverride,!this._hasAdditionalPendingTasks()){var l;this._animationActionOverride=null;var o=this._getVisibleRowIdxs(),n=[];for(l=e.length-1;l>=0;l--)null==e[l]&&(e.splice(l,1),t.splice(l,1));for(l=0;l<t.length;l++)-1===o.indexOf(t[l])&&n.push(t[l]);for(n.sort(function(e,t){return e-t}),l=n.length-1;l>=0;l--)e.splice(n[l],1);return this._unregisterResizeListener(),this._animateTableBodyRows(e,i).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,this._getRootElement())},I.prototype._clearCachedMetadata=function(){this._columnDefArray=null,this._setTableActionableMode(!1)},I.prototype._getSlotTemplate=function(e){if(this._IsCustomElement()&&e){var t=L.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(),i=t.length,l=0;l<i;l++){var o=t[l][I._CELL_TEMPLATE],n=t[l][I._HEADER_TEMPLATE],s=t[l][I._FOOTER_TEMPLATE];if(e===o||e===n||e===s)return!1}return!0},I.prototype._getTemplateEngine=function(){return this._templateEngine},I.prototype._getVisibleRowIdxs=function(){var e,t=[],i=this._getTable(),l=this._getTableBody(),o=this._getTableBodyRows();if(o.length>0&&l.offsetHeight>0){var n=c(window).height(),s=this._getLayoutManager().getScroller().getBoundingClientRect();if(s.top>n)return t;var a,r,_,h=s.left>=0?s.left+1:s.right-1,d=s.top>=0?s.top:0,u=document.elementsFromPoint(h,d);for(e=0;e<u.length;e++){var S=u[e];if(S.nodeName===I.DOM_ELEMENT._TD&&this._isTableOwned(S)){a=this._getElementRowIdx(S);break}if(S===i)break}if(null==a&&(a=0),s.bottom>n)r=n-1;else{var E=parseInt(window.getComputedStyle(l).borderBottomWidth,10)||0;r=s.bottom>=0?s.bottom-E-1:0}var C=document.elementsFromPoint(h,r);for(e=0;e<C.length;e++){var T=C[e];if(T.nodeName===I.DOM_ELEMENT._TD&&this._isTableOwned(T)){_=this._getElementRowIdx(T);break}if(T===i)break}for(null==_&&(_=o.length-1),e=a;e<=_;e++)t.push(e)}return t},I.prototype._hasRowOrCellRendererOrTemplate=function(e){if(null!=this._getRowRenderer())return!0;var t=null,i=null,l=this._getColumnDefs();if(null!=e)t=this._getColumnRenderer(e,"cell"),i=this._getSlotTemplate(l[e][I._CELL_TEMPLATE]);else for(var o=l.length,n=0;n<o&&null==(t=this._getColumnRenderer(n,"cell"))&&null==(i=this._getSlotTemplate(l[n][I._CELL_TEMPLATE]));n++);if(null!=t||null!=i)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 i=e||{},l=this._getData(),o=this._getLayoutManager();return null==l||!u.DataProviderFeatureChecker.isDataProvider(l)||this._isPagingModelDataProvider()&&!t?null==l?this._queueTask(function(){o.notifyTableUpdate(I._UPDATE._REFRESH);var e=[];return e.push(this._refreshTableHeader()),e.push(this._refreshTableBody()),e.push(this._refreshTableFooter()),Promise.all(e)}):void 0:this._queueTask(function(){return o.notifyTableUpdate(t?I._UPDATE._DATA_SORT:I._UPDATE._REFRESH),this._isExternalScrollEnabled()||(this._scrollTop=0,o.getScroller().scrollTop=0),l instanceof u.TableDataSourceAdapter&&(i.fetchType="init",this._isLoadMoreOnScroll()&&(i[I._CONST_OFFSET]=0)),this._invokeDataFetchRows(i)}.bind(this))},I.prototype._initTemplateEngine=function(){this._queueTask(function(){var e;try{const t={customElement:this._GetCustomElement()};e=T.__getTemplateEngine(t).then(function(e){this._templateEngine=e}.bind(this),function(e){E.warn(e)})}catch(t){E.warn(t),e=Promise.resolve(null)}return e}.bind(this))},I.prototype._initializeFetchFirstOptions=function(e){var t=e||{};return this._clientId=this._clientId||Symbol(),this._controller=new AbortController,t[I._CONST_CLIENTID]=this._clientId,t[I._CONST_SIGNAL]=this._controller.signal,!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 i=0;i<t.length;i++)if(u.KeyUtils.equals(t[i].key,e))return!0;return!1},I.prototype._invokeDataFetchRows=function(e){var t=this._initializeFetchFirstOptions(e),i=this._getData();return null!=i?new Promise(function(e){var l=this._controller;this._animateOnFetch=!1,this._noMoreData=!1,this._pendingFetchOptions=t,this._setDataWaitingState(!0),this._hasRefreshInQueue=!1,this._dataProviderAsyncIterator=i.fetchFirst(t)[Symbol.asyncIterator]();var o=function(e,t,l){var n=l;return(null==l||this._containsKey(l,t))&&(n=null),e.done||null==n&&(this._isLoadMoreOnScroll()||"function"==typeof i.getPageCount)?e:this._dataProviderAsyncIterator.next().then(function(t){return A.isFetchAborted(t)?Promise.reject(!0):(e.done=t.done,e.value.data=e.value.data.concat(t.value.data),e.value.metadata=e.value.metadata.concat(t.value.metadata),o(e,t.value.metadata,n))},function(e){return Promise.reject(e)})}.bind(this),n=[];n.push(this._dataProviderAsyncIterator.next()),n.push(this._getScrollToKey()),this._isTableHeaderColumnsRendered()||n.push(this._refreshTableHeader()),Promise.all(n).then(function(e){var t=e[0];if(A.isFetchAborted(t))return Promise.reject(!0);var i=e[1];return o(t,t[I._CONST_VALUE].metadata,i)},function(e){return Promise.reject(e)}).then(function(t){var l,o=t[I._CONST_VALUE],n=o[I._CONST_DATA],s=o[I._CONST_METADATA],a=o.metadata.map(function(e){return e[I._CONST_KEY]}),r=!1;for(l=a.length-1;l>=0;l--)for(var _=0;_<l;_++)u.KeyUtils.equals(a[l],a[_])&&(n.splice(l,1),a.splice(l,1),s.splice(l,1),r=!0);r&&E.warn(A.WARN_DUPLICATE_KEYS_DETAIL);var h=0;i instanceof u.TableDataSourceAdapter&&(h=i[I._CONST_OFFSET]);var d=0;this._isPagingModelDataProvider()&&(d=i.getStartItemIndex());var c=[],S=n.length;for(l=0;l<S;l++)c[l]=h+d+l;this._unregisterDomScroller(),t.maxCountLimit?(this._noMoreData=!0,this._handleScrollerMaxRowCount()):t.done&&(this._noMoreData=!0),this._refreshAll({data:n,metadata:s,keys:a,indexes:c},h).then(function(){this._clearDataWaitingState(),this._processFetchSort(o),this._isLoadMoreOnScroll()&&this._registerDomScroller(),e(t)}.bind(this),function(t){this._clearDataWaitingState();var i=this._getTableBody();0===this._getTableBodyRows().length?(this._showNoDataMessage(),this._finalizeNonBodyRowRendering([i]).then(function(){e(null)})):e(null)}.bind(this))}.bind(this),function(t){if(l&&l.signal.aborted)this._clearDataWaitingState(!0),e(null);else{this._clearDataWaitingState();var i=this._getTableBody();0===this._getTableBodyRows().length?(this._showNoDataMessage(),this._finalizeNonBodyRowRendering([i]).then(function(){e(null)})):e(null)}}.bind(this))}.bind(this)):Promise.resolve(null)},I.prototype._invokeDataSort=function(e,t,i){if(this._resetAriaLabel=!0,this._getData()){this._dataFetching&&this._controller&&this._controller.abort(A.getAbortReason(this.OuterWrapper));var l=[],o={};o[I._CONST_ATTRIBUTE]=e,o.direction=t?I._COLUMN_SORT_ORDER._ASCENDING:I._COLUMN_SORT_ORDER._DESCENDING,l.push(o),this._trigger("sort",i,{header:l[0][I._CONST_ATTRIBUTE],direction:l[0].direction}),this._beforeDataRefresh(!0),this._showStatusMessage(),this._initFetch({sortCriteria:l},!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 i=t.length,l=0;l<i;l++)for(var o=Object.keys(t[l]),n=0;n<o.length;n++){var s=o[n];if(t[l][s]!==this._columnDefArray[l][s]&&("id"!==s||null==t[l][s]||0!==t[l][s].indexOf(I._COLUMN_HEADER_ID_PREFIX)||null==this._columnDefArray[l][s]||0!==this._columnDefArray[l][s].indexOf(I._COLUMN_HEADER_ID_PREFIX)))return!0}return!1}return!0},I.prototype._getColumnKeys=function(){for(var e=[],t=this._getColumnDefs(),i=0;i<t.length;i++)e.push(t[i][I._FIELD_ID]);return e},I.prototype._getLocalRowKeys=function(){for(var e=[],t=this._getTableBodyRows(),i=0;i<t.length;i++)e.push(t[i][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(),i=t.length,l=0;l<i;l++){var o=t[l];if(u.KeyUtils.equals(o.id,e))return l}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 i=[];if(null!=e)for(var l=e[I._CONST_INDEXES].length,o=0;o<l;o++)i.push({row:{data:e[I._CONST_DATA][o],metadata:e[I._CONST_METADATA]?e[I._CONST_METADATA][o]:null,key:e[I._CONST_KEYS][o],index:e[I._CONST_INDEXES][o]},rowIdx:t+o});return i},I.prototype._getRowIdxForRowKey=function(e){var t=this._getTableBodyRows();if(t.length>0)for(var i=t.length,l=0;l<i;l++)if(u.KeyUtils.equals(t[l][I._ROW_ITEM_EXPANDO].key,e))return l;return null},I.prototype._getDataSourceRowIndexForRowKey=function(e){var t=this._getTableBodyRows();if(t.length>0)for(var i=t.length,l=0;l<i;l++)if(u.KeyUtils.equals(t[l][I._ROW_ITEM_EXPANDO].key,e)){var o=this._getData(),n=0;return this._isPagingModelDataProvider()&&(n=o.getStartItemIndex()),l+n}return null},I.prototype._getRowKeyForDataSourceRowIndex=function(e){var t=this._getTableBodyRows();if(t.length>0){var i=this._getData(),l=0;this._isPagingModelDataProvider()&&(l=i.getStartItemIndex());for(var o=t.length,n=0;n<o;n++)if(l+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(i){this._startAnimation(e,t).then(function(){i(!0)})}.bind(this))},I.prototype._animateTableBodyRows=function(e,t){if(this._isAnimationDisabled(t))return Promise.resolve(!1);for(var i=[],l=0;l<e.length;l++){var o=e[l];i.push(function(e){return this._animateTableBodyRow(e,t)}.bind(this)(o))}return i.length>0?Promise.all(i):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,i){return null==i&&(i=this._getAnimationEffect(t)),m.startAnimation(e,t,i,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,i=0;i<t;i++)e[i].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],i=c(t).scrollLeft(),l=e.cloneNode(),o=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"),i=e.cloneNode(!0);if(this.component._isDefaultSelectorEnabled()){var l=this.component._getTableElementsByClassName(i,I.CSS_CLASSES._TABLE_DATA_ROW_SELECTOR_CLASS)[0];l.selectedKeys=this.component.options.selected.row,l.rowKey=this.component._getRowKey(e)}var o=i.querySelectorAll("td");i.style.position=I.CSS_VAL._ABSOLUTE,i.style.top=e.offsetTop-s+I.CSS_VAL._PX,i.style.width=e.offsetWidth+I.CSS_VAL._PX,i.classList.add("oj-table-body-row-drag-image"),i.classList.remove(I.MARKER_STYLE_CLASSES._SELECTED),i.classList.remove(I.MARKER_STYLE_CLASSES._FOCUS),i.classList.remove(I.MARKER_STYLE_CLASSES._FOCUS_HIGHLIGHT),o.forEach(function(e,i){e.style.width=t[i].offsetWidth+I.CSS_VAL._PX,e.classList.remove(I.MARKER_STYLE_CLASSES._SELECTED),e.classList.remove(I.MARKER_STYLE_CLASSES._HOVER)}),n.appendChild(i)}.bind(this)),o.appendChild(n),l.appendChild(o),l.classList.add("oj-table-container-drag-image"),l.style[I.CSS_PROP._HEIGHT]=window.innerHeight+I.CSS_VAL._PX,l.style[I.CSS_PROP._OVERFLOW]=I.CSS_VAL._HIDDEN,l.style[I.CSS_PROP._OVERFLOW_X]=I.CSS_VAL._HIDDEN,l.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]=c(t).width()+I.CSS_VAL._PX,n.style[I.CSS_PROP._HEIGHT]=t.scrollHeight+I.CSS_VAL._PX,o.style[I.CSS_PROP._WIDTH]=c(t).width()+I.CSS_VAL._PX,document.body.appendChild(l),c(n).scrollLeft(1*i),l},w.prototype._destroyDragImage=function(){this._dragImage&&(c(this._dragImage).remove(),this._dragImage=null)},w.prototype._getEventColumnIndex=function(e){return this.component._getElementColumnIdx(e.currentTarget)},w.prototype._getOverRowIndex=function(e){var t,i=this.component._getFirstAncestor(e.target,I.DOM_ELEMENT._TR,!0),l=this.component._getFirstAncestor(e.target,"."+I.CSS_CLASSES._TABLE_DATA_CELL_CLASS+", ."+I.CSS_CLASSES._TABLE_SELECTOR_CELL_CLASS,!0);if(null!=l){var o=this.component._getFirstAncestor(l,"."+I.CSS_CLASSES._TABLE_DATA_ROW_CLASS,!0);if(null!=o){t=this.component._getTableBodyRows().indexOf(o);var n=e.target.getBoundingClientRect();e.offsetY>n.height/2&&(t+=1)}}else if(c(i).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);if(null!=t&&null!=this._dragStartColumnIdxs&&this._dragStartColumnIdxs.length>0){if(-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))))return this.component._displayDragOverIndicatorColumn(t,this._currentDropColumnBefore),void e.preventDefault();this.component._removeDragOverIndicatorColumn()}},w.prototype._getDragOverColumnIndex=function(e){let t=this.component._getTableHeaderColumns();if(e.originalEvent.clientX<t[0].getBoundingClientRect().left)return 0;for(let i=0;i<t.length;i++){let l=t[i].getBoundingClientRect();if(e.originalEvent.clientX>l.left&&e.originalEvent.clientX<=l.right)return i}return null},w.prototype.handleColumnDragOver=function(e){if(!this._isColumnReordering()){var t=this._getEventColumnIndex(e);this._currentDropColumnBefore=this._isDragOverBeforeColumn(e,t);var i=this._invokeDropCallback("columns","dragOver",e,{columnIndex:t});return(!1===i||e.isDefaultPrevented())&&this.component._displayDragOverIndicatorColumn(t,this._isDragOverBeforeColumn(e,t)),i}},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._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 i=this._setDragRowsDataTransfer(e,t.rows.dataTypes,this.component._getSelectedRowIdxs());return!!i&&this._invokeDndCallback("drag","rows","dragStart",e,i)}},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),i=this._invokeDropCallback("rows","dragOver",e,{rowIndex:t});return!1===i||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)}),i},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,i,l,o){var n,s=this.component.options.dnd[e];if(s&&s[t]){var a=s[t][i];if(a&&"function"==typeof a)try{this.component._IsCustomElement()?(a(l.originalEvent,o),l.originalEvent.defaultPrevented&&l.preventDefault()):(l.dataTransfer=l.originalEvent.dataTransfer,n=a(l,o))}catch(e){E.error("Error: "+e)}}return n},w.prototype._invokeDropCallback=function(e,t,i,l){var o=this._invokeDndCallback("drop",e,t,i,l);return void 0===o&&this._matchDragDataType(i,e)&&i.preventDefault(),o},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 i=t.getBoundingClientRect(),l=e.originalEvent;return l.clientX>=Math.ceil(i.left)&&l.clientX<Math.floor(i.right)&&l.clientY>=Math.ceil(i.top)&&l.clientY<Math.floor(i.bottom)},w.prototype._isDragOverBeforeColumn=function(e,t){var i=this.component._getTableHeaderColumn(t).getBoundingClientRect();if(null!=e.originalEvent.clientX){var l=i.right-e.originalEvent.clientX<(i.right-i.left)/2;return"rtl"===S.getReadingDirection()?l:!l}return!1},w.prototype._matchDragDataType=function(e,t){var i=e.originalEvent.dataTransfer.types,l=this.component.options.dnd.drop;if(l&&l[t]&&l[t].dataTypes)for(var o=l[t].dataTypes,n="string"==typeof o?[o]:o,s=0;s<i.length;s++)if(n.indexOf(i[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,i){if(t){var l=e.dataTransfer,o=JSON.stringify(i);if("string"==typeof t)l.setData(t,o);else for(var n=0;n<t.length;n++)l.setData(t[n],o)}},w.prototype._setDragRowsDataTransfer=function(e,t,i){var l=[];this.component._rowsDragged=[];for(var o=0;o<i.length;o++){var n=this.component.getDataForVisibleRow(i[o]);let e=this.component._getTableBodyRow(i[o]);n&&e&&(l.push(n),this.component._rowsDragged.push(e))}return l.length?(this._setDragRowsData(e.originalEvent,t,l),this._destroyDragImage(),this._dragImage=this._setDragRowsImage(e.originalEvent,this.component._getTableContainer()),{rows:l}):null},w.prototype._setDragRowsImage=function(e,t){var i=this._cloneTableContainer(t),l=this.component._getTableElementsByTagName(t,I.DOM_ELEMENT._TBODY)[0],o=Math.max(0,e.offsetX),n=Math.max(0,e.offsetY);return l.classList.add(w._CSS_CLASSES._DRAG_SOURCE),e.dataTransfer.setDragImage(i,o,n),i},w.prototype._setReorderColumnsDataTransfer=function(e,t){var i=e.originalEvent.dataTransfer,l=this.component._hashCode(this.component._getTableUID());i.setData("Text",I._DND_REORDER_TABLE_ID_DATA_KEY+":"+l+":"+t.join("-")),this._dragImage=this.component._createTableHeaderColumnDragImage(t);try{i.setDragImage(this._dragImage,0,0)}catch(e){}},w.prototype._updateDragRowsState=function(e,t){if(this._dropRowIndex!==t){var i=this.component._getFirstAncestor(e.target,I.DOM_ELEMENT._TR,!0);this._dropRowIndex=t;let l=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,i,l,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 i=this._getSizingState();return e>0&&t>0&&(e!==i.outerWidth||t!==i.outerHeight&&!this._table._isExternalScrollEnabled())}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.optimizeInitialColumnWidths=function(){},N.prototype._updateScrollPositionCache=function(){var e=this.getScroller();this._cachedScrollTop=e.scrollTop,this._cachedScrollLeft=this._table._getElementScrollLeft(e)},N.prototype._restoreCachedScrollPos=function(){var e=null!=this._cachedScrollTop&&this._cachedScrollTop>0?this._cachedScrollTop:null,t=null!=this._cachedScrollLeft&&this._cachedScrollLeft>0?this._cachedScrollLeft:null;if(null!=e){var i=this.getScroller().scrollHeight-this.getScroller().clientHeight,l=e>i?i:e;this._table._isLoadMoreOnScroll()&&i===l&&(l-=1),this.getScroller().scrollTop=l}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(),t=A.getScrollEventElement(e);null!=t&&(null==this._scrollEventListener&&(this._scrollEventListener=function(t){var i=this._table._getElementScrollLeft(e),l=e.scrollTop;i===this._table._scrollLeft&&l===this._table._scrollTop||(this._handleScrollerScrollLeft(i),this._handleScrollerScrollTop(l),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:t,internalSet:!0}}),this._ticking=!1}.bind(this)),this._ticking=!0),this._table._skipScrollUpdate=!1))}.bind(this)),t.removeEventListener("scroll",this._scrollEventListener),t.addEventListener("scroll",this._scrollEventListener,!1))},N.prototype.updateCurrentScrollState=function(){var e=this.getScroller(),t=this._table._getElementScrollLeft(e),i=e.scrollTop;t===this._table._scrollLeft&&i===this._table._scrollTop||(this._handleScrollerScrollLeft(t),this._handleScrollerScrollTop(i),this._table.option("scrollPosition",this._table._getCurrentScrollPosition(),{_context:{internalSet:!0}}))},N.prototype.unregisterScrollListeners=function(){var e=A.getScrollEventElement(this.getScroller());null!=e&&null!=this._scrollEventListener&&e.removeEventListener("scroll",this._scrollEventListener)},N.prototype._restoreScrollLeft=function(e){S.setScrollLeft(this.getScroller(),e)},N.prototype.getColumnWidthProperty=function(e){var t=window.getComputedStyle(e),i=this._getBoxStyle(t);return parseFloat(t.width)+(i.boxSizing===I.CSS_VAL._BORDER_BOX?-i.borderWidth:i.paddingWidth)},N.prototype.getWidthPropertyFromOffsetWidth=function(e,t,i){var l=window.getComputedStyle(t),o=this._getBoxStyle(l);return e-(i?o.borderWidth:0)},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 i=this._table._getTableElementsByClassName(e,I.CSS_CLASSES._COLUMN_HEADER_CLASS);i.length>0&&(i[0].style[I.CSS_PROP._MIN_HEIGHT]=t+I.CSS_VAL._PX)},N.prototype._applyForcedColumnWidth=function(e,t){var i=e;""!==t&&(t+=I.CSS_VAL._PX),i.style[I.CSS_PROP._MIN_WIDTH]=t,i.style[I.CSS_PROP._WIDTH]=t,i.style[I.CSS_PROP._MAX_WIDTH]=t},N.prototype._getForcedColumnWidth=function(e,t,i){var l=this._getBoxStyle(t);return null!=i?i+(l.boxSizing===I.CSS_VAL._BORDER_BOX?l.borderWidth:-l.paddingWidth):parseFloat(t.width)},N.prototype.getMinimumForcedOffsetWidth=function(e){var t=0,i=this._table._getTableHeaderColumn(e);if(null!=i){var l=this._getBoxStyle(window.getComputedStyle(i)),o=l.paddingWidth+l.borderWidth;t<o&&(t=o)}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.initializeDefaultScrollBarSize=function(e){this._table._defaultScrollBarSize=A.getDefaultScrollBarWidth(e)},N.prototype._getDefaultScrollBarSize=function(){return null==this._table._defaultScrollBarSize&&this.initializeDefaultScrollBarSize(this.getScroller()),this._table._defaultScrollBarSize},N.prototype._clearColumnSizingCache=function(){this._table._columnOffsets=null},N.prototype.getColumnScrollLeft=function(){},N.prototype.getRowScrollTop=function(){},N.prototype.getScrollWidth=function(){return this.getScroller().scrollWidth},N.prototype.getScrollHeight=function(){return this.getScroller().scrollHeight},N.prototype.getClientWidth=function(){return this.getScroller().clientWidth},N.prototype.getClientHeight=function(){return this.getScroller().clientHeight},N.prototype._removeTableDimensionsStyling=function(){this.unregisterScrollListeners();var e=this._table._getTable(),t=this._table._getTableHeader(),i=this._table._getTableHeaderRow(),l=this._table._getTableFooter(),o=this._table._getTableFooterRow(),n=this._table._getTableBody(),s=this._table._getTableBottomSlot(),a=this._table._getTableScroller(),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!=n&&n.removeAttribute(I.DOM_ATTR._STYLE),null!=t){t.removeAttribute(I.DOM_ATTR._STYLE),i.removeAttribute(I.DOM_ATTR._STYLE);for(var _=this._table._getTableElementsByClassName(i,I.CSS_CLASSES._COLUMN_HEADER_TEXT_CLASS),h=_.length,d=0;d<h;d++)_[d].style[I.CSS_PROP._WIDTH]=""}null!=l&&(l.removeAttribute(I.DOM_ATTR._STYLE),o.removeAttribute(I.DOM_ATTR._STYLE)),null!=s&&s.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()),i=this.getExactClientHeight(t),l=this.getExactClientWidth(t),o=window.getComputedStyle(this._table._getTable()),n=this.getExactOffsetHeight(o),s=this.getExactOffsetWidth(o),a=[];if(i>0){var r=n+e;r-i>I.SIZING_ERROR_MARGIN?a[0]=1:i-r>I.SIZING_ERROR_MARGIN?a[0]=-1:a[0]=0}else a[0]=0;return l>0?s-l>I.SIZING_ERROR_MARGIN?a[1]=1:l-s>I.SIZING_ERROR_MARGIN?a[1]=-1:a[1]=0:a[1]=0,a},N.prototype._getPixelStyleEquivalent=function(e,t){return"string"==typeof e?""===e?null:"auto"===e?this._getMinWidthAutoEquivalent(t):null!=e.match(/\D/g)&&-1===e.indexOf("px")?(this._table._tableWidthContainer.style.width=e,this._table._tableWidthContainer.offsetWidth+(t?1:0)):parseFloat(e)+(t?1:0):null!=e?e+(t?1:0):null},N.prototype._getMinWidthAutoEquivalent=function(e){return null},N.prototype.handleMouseEnterHeaderCell=function(e){},N.prototype.handleMouseDownHeaderCell=function(e){var t=this._table._getElementColumnIdx(this._table._getEventTargetElement(e)),i=!1;1===e.which?(this._handleHeaderColumnResizeStart(e,!0)||e[I._KEYBOARD_CODES._MODIFIER_SHIFT]||(i=!0),A.isFirefox()&&S.isMetaKeyPressed(e)&&e.preventDefault()):i=!0,i&&(this._table._setActiveHeader(t,e,!0),c(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,i){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),i=parseFloat(e[I.CSS_PROP._HEIGHT])-t.borderWidth-t.paddingWidth;return Math.round(1e3*(i+Number.EPSILON))/1e3},N.prototype.getExactClientWidth=function(e){var t=this._getBoxStyle(e),i=parseFloat(e[I.CSS_PROP._WIDTH])-t.borderWidth-t.paddingWidth;return Math.round(1e3*(i+Number.EPSILON))/1e3},N.prototype.getExactOffsetHeight=function(e,t){var i=parseFloat(e[I.CSS_PROP._HEIGHT]);return t?Math.ceil(1e3*i)/1e3:Math.round(1e3*(i+Number.EPSILON))/1e3},N.prototype.getExactOffsetWidth=function(e,t){var i=parseFloat(e[I.CSS_PROP._WIDTH]);return t?Math.ceil(1e3*i)/1e3:Math.round(1e3*(i+Number.EPSILON))/1e3};const M=function(e){M.superclass.constructor.call(this,e)};u.Object.createSubclass(M,N,"TableLegacyLayoutManager"),M.prototype.handleAfterRowsProcessed=function(e){this._freezeColumnWidths(e)},M.prototype._handleScrollerScrollLeft=function(e){M.superclass._handleScrollerScrollLeft.call(this,e);var t=this._table._getTableHeaderRow();t&&S.setScrollLeft(t.parentNode,e);var i=this._table._getTableFooterRow();i&&S.setScrollLeft(i.parentNode,e)},M.prototype.registerScrollListeners=function(){M.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 i=t.parentNode;null==this._headerScrollEventListener&&(this._headerScrollEventListener=e),i.removeEventListener("scroll",this._headerScrollEventListener),i.addEventListener("scroll",this._headerScrollEventListener,!1)}var l=this._table._getTableFooterRow();if(null!=l){var o=l.parentNode;null==this._footerScrollEventListener&&(this._footerScrollEventListener=e),o.removeEventListener("scroll",this._footerScrollEventListener),o.addEventListener("scroll",this._footerScrollEventListener,!1)}},M.prototype.unregisterScrollListeners=function(){M.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)},M.prototype._restoreScrollLeft=function(e){S.setScrollLeft(this.getScroller(),e);var t=this._table._getTableHeaderRow();t&&S.setScrollLeft(t.parentNode,e);var i=this._table._getTableFooterRow();i&&S.setScrollLeft(i.parentNode,e)},M.prototype.getScroller=function(){return this._table._getTableBody()},M.prototype.getContentElement=function(){return null},M.prototype.getColumnScrollLeft=function(e){if(0===e)return 0;var t=this.getScroller(),i="rtl"===this._table._GetReadingDirection(),l=this._table._getTableHeaderColumn(e);return null!=l?i?t.clientWidth-l.offsetLeft-l.offsetWidth:l.offsetLeft:void 0},M.prototype.getRowScrollTop=function(e){return e.offsetTop},M.prototype.getVerticalOverflowDiff=function(e){var t=this.getScroller(),i=e.getBoundingClientRect(),l=t.getBoundingClientRect();return{top:l.top-i.top+t.clientTop,bottom:i.bottom-l.bottom+(t.offsetHeight-t.clientHeight-t.clientTop)}},M.prototype.getHorizontalOverflowDiff=function(e){var t="rtl"===this._table._GetReadingDirection(),i=this.getScroller(),l=this.getScrollBarWidth(),o=e.getBoundingClientRect(),n=i.getBoundingClientRect(),s={};return t?(s.left=n.left-o.left+l,s.right=o.right-n.right):(s.left=n.left-o.left,s.right=o.right-n.right+l),s},M.prototype._freezeColumnWidths=function(e){var t=this._table._getColumnDefs().length;this._frozenWidthRows||(this._frozenWidthRows=[]);for(var i=[],l=this._table._getTableBodyLegacyWidthBuffer(),o=0;o<t;o++){var n=l.childNodes[o];if(null!=n){var s=parseFloat(n.style[I.CSS_PROP._MIN_WIDTH]);isNaN(s)?i.push(null):i.push(s)}else i.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=i[d];isNaN(u)||this._applyForcedColumnWidth(h[d],u)}this._frozenWidthRows.push(_)}},M.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]),i=0;i<t.length;i++){var l=t[i];this._applyForcedColumnWidth(l,""),this._table._styleTableBodyCell(i,l)}this._frozenWidthRows=[]},M.prototype._setColumnWidths=function(e){var t,i,l,o,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!=(i=this._table._getTableHeaderColumn(t))){n[t]=this._getForcedColumnWidth(i,window.getComputedStyle(i));var d=this._table._getTableElementsByClassName(i,I.CSS_CLASSES._COLUMN_HEADER_TEXT_CLASS);d.length>0&&(s[t]=d[0].clientHeight)}null!=(l=h.childNodes[t])&&(a[t]=this._getForcedColumnWidth(l,window.getComputedStyle(l))),null!=(o=this._table._getTableFooterCell(t))&&(r[t]=this._getForcedColumnWidth(o,window.getComputedStyle(o)))}for(t=0;t<_;t++)i=this._table._getTableHeaderColumn(t),o=this._table._getTableFooterCell(t),!1!==this._forcedWidthColumns[t]?t===_-1&&!this.isTableWidthConstrained()&&e>0?(null!=i&&(this._applyForcedColumnWidth(i,this._forcedWidthColumns[t]+e),this._applyColumnHeaderHeight(i,s[t])),null!=o&&this._applyForcedColumnWidth(o,this._forcedWidthColumns[t]+e)):this._applyColumnHeaderHeight(i,s[t]):(t===_-1&&!this.isTableWidthConstrained()&&e>0?(null!=i&&(this._applyForcedColumnWidth(i,n[t]+e),this._applyColumnHeaderHeight(i,s[t])),null!=o&&this._applyForcedColumnWidth(o,r[t]+e)):(null!=i&&(this._applyForcedColumnWidth(i,n[t]),this._applyColumnHeaderHeight(i,s[t])),null!=o&&this._applyForcedColumnWidth(o,r[t])),null!=(l=h.childNodes[t])&&this._applyForcedColumnWidth(l,a[t]))},M.prototype._setForcedColumnWidths=function(){var e,t,i,l=this._table._getColumnDefs(),o=l.length,n=this._table._getTableBodyRows();this._forcedWidthColumns=[];for(var s=0;s<o;s++){var a=this._getPixelStyleEquivalent(l[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)}var S=this._table._getPlaceHolderRow();if(null!=S){var E=this._table._getColspanLogicalElements(this._table._getPlaceHolderRowCells(S))[s];if(null!=E){var C=this._getForcedColumnWidth(E,window.getComputedStyle(E),a);this._applyForcedColumnWidth(E,C)}}this._table._hasRowOrCellRendererOrTemplate(s)||null!=(t=this._table._getTableBodyCell(0,s))&&(r=window.getComputedStyle(t),_=this._getForcedColumnWidth(t,r,a));for(var T=0;T<n.length;T++)if(null!=(t=this._table._getTableBodyLogicalCells(T)[s]))if(null==r){var p=window.getComputedStyle(t),g=this._getForcedColumnWidth(t,p,a);this._applyForcedColumnWidth(t,g)}else this._applyForcedColumnWidth(t,_);null!=(i=this._table._getTableFooterCell(s))&&this._applyForcedColumnWidth(i,this._getForcedColumnWidth(i,window.getComputedStyle(i),a))}else this._forcedWidthColumns[s]=!1}},M.prototype._verifyMinAndMaxWidths=function(){for(var e=this._table._getColumnDefs(),t=e.length,i=this._table._getTableBodyRows().length,l=!0;l;){l=!1;for(var o=0;o<t;o++)if(!1===this._forcedWidthColumns[o]){if(this._applyColMinMax(e,o,i,!0)){l=!0;break}if(this._applyColMinMax(e,o,i,!1)){l=!0;break}}}},M.prototype._applyColMinMax=function(e,t,i,l){var o,n,s,a=0,r=!1,_=null,h=null,d=l?this._getPixelStyleEquivalent(e[t].minWidth):this._getPixelStyleEquivalent(e[t].maxWidth);if(null!=d&&(o=this._table._getTableHeaderColumn(t),n=this._table._getTableBodyLogicalCells(0)[t],s=this._table._getTableFooterCell(t),null!=o?a=o.offsetWidth:null!=n?a=n.offsetWidth:null!=s&&(a=s.offsetWidth),a>0&&(l?a<d:a>d))){if(r=!0,this._forcedWidthColumns[t]=d,null!=o){var u=this._getForcedColumnWidth(o,window.getComputedStyle(o),d);this._applyForcedColumnWidth(o,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)}var C=this._table._getPlaceHolderRow();if(null!=C){var T=this._table._getColspanLogicalElements(this._table._getPlaceHolderRowCells(C))[t];if(null!=T){var p=this._getForcedColumnWidth(T,window.getComputedStyle(T),d);this._applyForcedColumnWidth(T,p)}}this._table._hasRowOrCellRendererOrTemplate(t)||null==n||(_=window.getComputedStyle(n),h=this._getForcedColumnWidth(n,_,d));for(var g=0;g<i;g++)if(null!=(n=this._table._getTableBodyLogicalCells(g)[t]))if(null==_){var f=window.getComputedStyle(n),A=this._getForcedColumnWidth(n,f,d);this._applyForcedColumnWidth(n,A)}else this._applyForcedColumnWidth(n,h);null!=s&&this._applyForcedColumnWidth(s,this._getForcedColumnWidth(s,window.getComputedStyle(s),d))}return r},M.prototype._isTableColumnsWidthSet=function(){for(var e=this._table._getColumnDefs().length,t=0;t<e;t++)if(!1!==this._forcedWidthColumns[t])return!0;return!1},M.prototype.refreshTableDimensions=function(){var e=this._getSizingState(),t=this._getTableUpdates();if(this._updateScrollPositionCache(),!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._DIVIDER_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 i=this._table._getTable(),l=this._table._getTableContainer(),o=this._table._getTableHeader(),n=this._table._getTableBody(),s=this._table._getTableFooter(),a=this._table._getTableBottomSlot();this._removeTableDimensionsStyling(),this._table._styleTableContainer(l),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=l.clientWidth,u=l.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,l.clientHeight<u+c?(u=l.clientHeight,i.style[I.CSS_PROP._HEIGHT]=u-c-r+I.CSS_VAL._PX,u-c<i.clientHeight+r&&(e.hasVerticalOverflow=!0)):u=l.clientHeight,S.style[I.CSS_PROP._HEIGHT]=""}}else i.style[I.CSS_PROP._WIDTH]=d+c+I.CSS_VAL._PX,l.clientWidth<d+c?(d=l.clientWidth,i.style[I.CSS_PROP._WIDTH]=d-c+I.CSS_VAL._PX,d-c<i.clientWidth&&(e.hasHorizontalOverflow=!0)):(d=l.clientWidth,i.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&&l.classList.add(I.CSS_CLASSES._TABLE_SCROLL_VERTICAL_CLASS),e.hasHorizontalOverflow&&l.classList.add(I.CSS_CLASSES._TABLE_SCROLL_HORIZONTAL_CLASS),l.classList.add(I.CSS_CLASSES._TABLE_LEGACY_SCROLL_CLASS);var C=0,T=this._table._getTableElementsByTagName(i,"caption");if(T.length>0&&(C=(T=T[0]).offsetHeight,T.style[I.CSS_PROP._DISPLAY]=I.CSS_VAL._INLINE,null!=o)){var p=window.getComputedStyle(l);o.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);var f,A=u-(null!=o?o.offsetHeight:0)-g-C-r-h;if(A>0&&(n.style[I.CSS_PROP._HEIGHT]=A+I.CSS_VAL._PX,n.style[I.CSS_PROP._MIN_HEIGHT]=A+I.CSS_VAL._PX),e.hasHorizontalOverflow){if(0===this._table._getTableBodyRows().length){var m=this._table._getTableBodyMessageCell();if(m){var b=m.offsetWidth;null!=o&&(b=Math.max(b,o.offsetWidth)),null!=s&&(b=Math.max(b,s.offsetWidth)),this._applyForcedColumnWidth(m,b)}}f=d-E+I.CSS_VAL._PX}else f=d+I.CSS_VAL._PX;null!=o&&(o.style[I.CSS_PROP._WIDTH]=f),null!=s&&(s.style[I.CSS_PROP._WIDTH]=f)}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()}},M.prototype._removeTableDimensionsStyling=function(){M.superclass._removeTableDimensionsStyling.call(this),this._table._getTableContainer().classList.remove(I.CSS_CLASSES._TABLE_LEGACY_SCROLL_CLASS)},M.prototype._removeHeaderColumnAndCellColumnWidths=function(){var e,t=this._table._getColumnDefs().length;for(e=0;e<t;e++){var i=this._table._getTableHeaderColumn(e);null!=i&&(this._applyForcedColumnWidth(i,""),this._table._styleTableHeaderColumn(e,i))}this._unfreezeColumnWidths();var l=this._table._getTableBodyRows();if(l.length>0)for(e=0;e<t;e++){var o;if(null!=this._forcedWidthColumns&&!1!==this._forcedWidthColumns[e])for(var n=0;n<l.length;n++)null!==(o=this._table._getTableBodyCell(n,e,null))&&(this._applyForcedColumnWidth(o,""),this._table._styleTableBodyCell(e,o));else null!=(o=this._table._getTableBodyLegacyWidthBuffer().childNodes[e])&&this._applyForcedColumnWidth(o,"")}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,"")},M.prototype.handleMouseEnterHeaderCell=function(e){this._setResizeCursor(e)},M.prototype.handleMouseMoveHeader=function(e){this._setResizeCursor(e)},M.prototype.handleMouseMoveHeaderCell=function(e){this._setResizeCursor(e)&&this._table._handleMouseLeaveColumnHeader(this._table._getEventTargetElement(e))},M.prototype.handleMouseUp=function(e){this._handleHeaderColumnResizeEnd(e)},M.prototype.handleMouseLeaveTable=function(){this._clearTableHeaderColumnsResize()},M.prototype.handleTouchMoveHeader=function(e){this._table._isTableColumnsResizable()&&this._setResizeCursor(e)},M.prototype.handleTouchEnd=function(e){this._handleHeaderColumnResizeEnd(e)&&e.preventDefault()},M.prototype.handleTouchCancel=function(){this._clearTableHeaderColumnsResize()},M.prototype.handleKeyDownEsc=function(){this._clearTableHeaderColumnsResize()},M.prototype.handleFocusout=function(){this._clearTableHeaderColumnsResize()},M.prototype._setResizeCursor=function(e){var t=this._table._getEventTargetElement(e),i=this._table._getElementColumnIdx(t);if(null==i)return!1;if(this._table._getColumnDefs()[i].resizable===I._OPTION_DISABLED&&this._resizeStartColumnIdx!==i-1&&this._resizeStartColumnIdx!==i+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(0===this._table._getTableHeaderColumns().length)return!1;if(i===this._resizeStartColumnIdx||this._resizeColumnStart&&i===this._resizeStartColumnIdx-1||!this._resizeColumnStart&&i===this._resizeStartColumnIdx+1){var l=this._getTableHeaderColumnResizeIndicator();if(null!=l){var o=this.getScroller().getBoundingClientRect();return l.style.left=e.originalEvent.clientX-o.left+"px",!0}}return!1},M.prototype._handleHeaderColumnResizeStart=function(e,t){var i=this._table._getEventTargetElement(e),l=this._table._getElementColumnIdx(i);if(null!=l){var o=this._table._getColumnDefs()[l];if(this._resizeColumnStart=this._isHeaderColumnResizeStart(e),o.resizable===I._OPTION_ENABLED&&null!==this._resizeColumnStart)return this._resizeStartColumnIdx=l,this._resizeStartPageX=this._getPageX(e),this._setTableHeaderColumnsResizeStyling(),this._setTableHeaderColumnResizeIndicator(l),e.preventDefault(),!0}return this._resizeStartColumnIdx=null,this._resizeStartPageX=null,!1},M.prototype._handleHeaderColumnResizeEnd=function(e){var t=this._table.options.columns.length,i=this._table._getEventTargetElement(e),l=this._table._getElementColumnIdx(i);if(null!==l&&l===this._resizeStartColumnIdx||this._resizeColumnStart&&l===this._resizeStartColumnIdx-1||!this._resizeColumnStart&&l===this._resizeStartColumnIdx+1){var o=this._table._getTableHeaderColumn(this._resizeStartColumnIdx);if(null!=o){var n,s=o.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=this._table._isVerticalGridEnabled(),r=s+n,_=this.getMinimumForcedOffsetWidth(this._resizeStartColumnIdx);_>r&&(n+=_-r,r=_);for(var h=[],d=0;d<t;d++)h[d]=c.extend({},{},this._table.options.columns[d]);var u=this._resizeColumnStart?this._resizeStartColumnIdx-1:this._resizeStartColumnIdx+1;u===t-1&&this.isTableHeightConstrained()&&(n+=this.getScrollBarWidth());var S=this._table._getTableHeaderColumn(u);if(S){var E=S.getBoundingClientRect().width-n;(_=this.getMinimumForcedOffsetWidth(u))>E&&(r+=E-_,E=_),h[u].width=this.getWidthPropertyFromOffsetWidth(E,S,a)}return h[this._resizeStartColumnIdx].width=this.getWidthPropertyFromOffsetWidth(r,o,a),this._table.option("columns",h,{_context:{writeback:!0,internalSet:!0}}),this._table._clearCachedMetadata(),this._table._queueTask(function(){this.notifyTableUpdate(I._UPDATE._DIVIDER_RESIZE),setTimeout(function(){this._clearTableHeaderColumnsResize()}.bind(this),0)}.bind(this)),!0}}}return this._clearTableHeaderColumnsResize(),!1},M.prototype._clearTableHeaderColumnsResize=function(){this._resizeStartColumnIdx=null,this._resizeColumnStart=null,this._resizeStartPageX=null,this._clearTableHeaderColumnsResizeStyling(),this._removeTableHeaderColumnResizeIndicator()},M.prototype._isHeaderColumnResizeStart=function(e){var t=null,i=this._table.options.columns.length,l=this._table._getElementColumnIdx(e.target),o=this._table._getTableHeaderColumn(l);if(null!==o){var n=this._table._GetReadingDirection(),s=o.getBoundingClientRect(),a=Math.abs(e.originalEvent.clientX-s.left),r=Math.abs(e.originalEvent.clientX-s.right);a<=I.RESIZE_OFFSET?"rtl"===n&&l!==i-1?t=!1:"ltr"===n&&0!==l&&(t=!0):r<=I.RESIZE_OFFSET&&("ltr"===n&&l!==i-1?t=!1:"rtl"===n&&0!==l&&(t=!0))}return t},M.prototype._setTableHeaderColumnResizeIndicator=function(e){var t=this._getTableHeaderColumnResizeIndicator();null==t&&(t=this._createTableHeaderColumnResizeIndicator());var i=this._table._getTable().getBoundingClientRect(),l=this.getScroller().getBoundingClientRect(),o=this._table._getTableHeaderColumn(e).getBoundingClientRect();t.style.height=i.height+"px",this._resizeColumnStart?("rtl"===this._table._GetReadingDirection()?t.style.left=o.left+o.width-l.left+"px":t.style.left=o.left-l.left+"px",t.style.borderLeftWidth="2px",t.style.borderRightWidth="0"):("rtl"===this._table._GetReadingDirection()?t.style.left=o.left-l.left+"px":t.style.left=o.left+o.width-l.left+"px",t.style.borderRightWidth="2px",t.style.borderLeftWidth="0")},M.prototype._setTableHeaderColumnsResizeStyling=function(){this._table._getTable().classList.add(I.CSS_CLASSES._COLUMN_HEADER_RESIZING_CLASS)},M.prototype._clearTableHeaderColumnsResizeStyling=function(){for(var e=this._table._getTableHeaderColumns(),t=0;t<e.length;t++)e[t].style.cursor="";this._table._getTable().classList.remove(I.CSS_CLASSES._COLUMN_HEADER_RESIZING_CLASS)},M.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},M.prototype._getTableHeaderColumnResizeIndicator=function(){return this._table._getTableElementByClassName(I.CSS_CLASSES._COLUMN_HEADER_RESIZE_INDICATOR_CLASS,!0)},M.prototype._removeTableHeaderColumnResizeIndicator=function(){var e=this._getTableHeaderColumnResizeIndicator();e&&(c(e).remove(),this._table._clearDomCache(I.CSS_CLASSES._COLUMN_HEADER_RESIZE_INDICATOR_CLASS))},M.prototype.displayDragOverIndicatorColumn=function(e,t){this._table._removeDragOverIndicatorColumn();var i=this._table._getTableHeaderRow(),l=this._table._getTableHeaderColumn(e),o=t?I.CSS_CLASSES._COLUMN_HEADER_DRAG_INDICATOR_BEFORE_CLASS:I.CSS_CLASSES._COLUMN_HEADER_DRAG_INDICATOR_AFTER_CLASS;null!=l?l.classList.add(o):0===this._table._getColumnDefs().length&&i.classList.add(o)},M.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,i=0;i<t;i++)e[i].classList.remove(I.CSS_CLASSES._COLUMN_HEADER_DRAG_INDICATOR_BEFORE_CLASS),e[i].classList.remove(I.CSS_CLASSES._COLUMN_HEADER_DRAG_INDICATOR_AFTER_CLASS)};const B=function(e){B.superclass.constructor.call(this,e)};u.Object.createSubclass(B,N,"TableStickyLayoutManager"),B.prototype.unregisterListeners=function(){B.superclass.unregisterListeners.call(this),this._cleanupColumnResizing()},B.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))&&E.error("the css selector string specified in scroller attribute does not resolve to any element"),null==e||e.contains(this._table._getRootElement())||(E.error("the specified scroller must be an ancestor of the component"),e=null)),this._scroller=null!=e?e:this._table._getTableScroller()}return this._scroller},B.prototype._isHTMLScroller=function(){return null!=this._table.options.scrollPolicyOptions&&"html"===this._table.options.scrollPolicyOptions.scroller},B.prototype.getContentElement=function(){return this.getScroller()!==this._table._getTableScroller()?this._table._getTable():null},B.prototype.getColumnScrollLeft=function(e){if(0===e)return 0;var t,i,l=0;if(this._table._isDefaultSelectorEnabled()&&(l+=this._selectorColWidth),this._table._isGutterStartColumnEnabled()){l+=this._table._getTableGutterWidth("start")}var o=this._getFrozenStartColumnIndexes();for(t=0;t<o.length&&(i=o[t])<e;t++)l+=this._getAppliedColumnWidth(i);var n=this.getScroller(),s="rtl"===this._table._GetReadingDirection(),a=this._table._getTableHeaderColumn(e);return null!=a?s?n.clientWidth-l-a.offsetLeft-a.offsetWidth:a.offsetLeft-l:void 0},B.prototype.getRowScrollTop=function(e){var t=e.offsetTop;if(!this._table._isTableHeaderless()){var i=this._table._getTableHeader();null!=i&&(t-=i.offsetHeight)}if(this._table._isAddNewRowEnabled()){var l=this._table._getPlaceHolderRow();null!=l&&(t-=l.offsetHeight)}return t},B.prototype._handleScrollerScrollLeft=function(e){B.superclass._handleScrollerScrollLeft.call(this,e),this._updateFrozenEdges(e,!1),null!=this._dragIndicatorColumnIndex&&this.displayDragOverIndicatorColumn()},B.prototype._handleScrollerScrollTop=function(e){if(B.superclass._handleScrollerScrollTop.call(this,e),this._table._isStickyRowsEnabled())for(var t=this._table._getTableBodyStickyRows(),i=0;i<t.length;i++){var l=t[i];this.getVerticalOverflowDiff(l).top>=0?l.classList.add(I.CSS_CLASSES._TABLE_STUCK_ROW_CLASS):l.classList.remove(I.CSS_CLASSES._TABLE_STUCK_ROW_CLASS)}},B.prototype.getVerticalOverflowDiff=function(e){var t,i,l,o,n=e.getBoundingClientRect();this._table._isExternalScrollEnabled()?(l=null==this._table.options.scrollPolicyOptions.scrollerOffsetTop?0:this._table.options.scrollPolicyOptions.scrollerOffsetTop,o=null==this._table.options.scrollPolicyOptions.scrollerOffsetBottom?0:this._table.options.scrollPolicyOptions.scrollerOffsetBottom):(l=0,o=0);var s=this._table._getTableHeader();null!=s&&(l+=s.offsetHeight);var a=this._table._getPlaceHolderRow();null!=a&&(l+=a.offsetHeight);var r=this._table._getTableFooter();if(null!=r&&(o+=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)){l+=d.offsetHeight;break}}if(this._isHTMLScroller())t=0,i=this.getScroller().clientHeight;else{var u=this.getScrollBarHeight(),c=this.getScroller().getBoundingClientRect();t=c.top,i=c.bottom-u}return{top:t+l-n.top,bottom:n.bottom-i+o}},B.prototype.getHorizontalOverflowDiff=function(e,t){var i,l,o,n,s="rtl"===this._table._GetReadingDirection(),a=this.getScroller(),r=this.getScrollBarWidth(),_=e.getBoundingClientRect(),h=a.getBoundingClientRect();if(this._table._isExternalScrollEnabled()?(o=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):(o=0,n=0),this._table._isDefaultSelectorEnabled()&&-1!==t&&(o+=this._selectorColWidth),this._table._isGutterStartColumnEnabled()){o+=this._table._getTableGutterWidth("start")}if(this._table._isGutterEndColumnEnabled()){n+=this._table._getTableGutterWidth("end")}var d=this._getFrozenStartColumnIndexes();for(i=0;i<d.length&&(l=d[i])<t;i++)o+=this._getAppliedColumnWidth(l);var u=this._getFrozenEndColumnIndexes();for(i=u.length-1;i>-1&&(l=u[i])>t;i--)n+=this._getAppliedColumnWidth(l);var c={};return s?(c.left=h.left+n-_.left+r,c.right=_.right-h.right+o):(c.left=h.left+o-_.left,c.right=_.right-h.right+n+r),c},B.prototype._clearAllCache=function(){this._clearColumnSizingCache(),this._columnMinWidths=null,this._columnMaxWidths=null,this._selectorColWidth=null},B.prototype._clearColumnSizingCache=function(e,t){B.superclass._clearColumnSizingCache.call(this),t||(this._singleResizeColumnWidths=null),this._appliedColumnWidths=null,this._table._gutterStartWidth=null,this._table._gutterEndWidth=null},B.prototype.refreshTableDimensions=function(){var e=this._table._getTableContainer(),t=this._getSizingState(),i=this._getTableUpdates(),l=!1;if(this._updateScrollPositionCache(),i.has(I._UPDATE._REFRESH))this._clearAllCache();else if(i.has(I._UPDATE._ATTACHED)||i.has(I._UPDATE._SHOWN))this._clearColumnSizingCache(!0);else if(i.has(I._UPDATE._RESIZE))l=this._isSingleColumnResizeEnabled(),this._clearColumnSizingCache(!0,l);else if(i.has(I._UPDATE._DATA_REFRESH)||i.has(I._UPDATE._DIVIDER_RESIZE)||i.has(I._UPDATE._COL_REORDER)||i.has(I._UPDATE._ROWS_ADDED)&&!t.hasVerticalOverflow||i.has(I._UPDATE._ROWS_REMOVED)&&t.hasVerticalOverflow)this._clearColumnSizingCache();else{if(!i.has(I._UPDATE._SINGLE_COL_RESIZE)&&!i.has(I._UPDATE._COL_RESIZE))return(i.has(I._UPDATE._ROW_REFRESH)||i.has(I._UPDATE._ROWS_REMOVED)||i.has(I._UPDATE._ADD_ROW_DISPLAY))&&(this.unregisterScrollListeners(),this._setupTableHeight(this._table._getTableScroller(),this._getBottomSlotHeight()),this._table._styleTableContainer(e),this._restoreCachedScrollPos(),this.registerScrollListeners()),i.has(I._UPDATE._ROWS_ADDED)||i.has(I._UPDATE._DATA_SORT)||i.has(I._UPDATE._ADD_ROW_DISPLAY)?(this._initializeFrozenColumns(!0),this._table._styleTableContainer(e),this._updateStickyRowTops()):i.has(I._UPDATE._ROW_REFRESH)&&this._updateStickyRowTops(),this._clearTableUpdates(),void this._enableTableVisibility();this._clearColumnSizingCache(!1,this._isSingleColumnResizeEnabled())}var o=this._table._getTableScroller(),n=this._getBottomSlotHeight(),s=this._table._getTable();if(this._removeTableDimensionsStyling(),A.isSafari()){s.classList.remove(I.CSS_CLASSES._TABLE_ELEMENT_CLASS);s.offsetWidth;s.classList.add(I.CSS_CLASSES._TABLE_ELEMENT_CLASS)}this._table._styleTableContainer(e),this._setupTableHeight(o,n),this._applyColumnWidths(l);var a=this._getTableContainerScrollableState(n);this._setupTableScrollerHeight(o,n);var r=this._getTableContainerScrollableState(n);0===a[0]&&1===r[0]&&this._getDefaultScrollBarSize()>0&&!this._isVerticalScrollBarHidden()&&(this._clearColumnSizingCache(),e.classList.add(I.CSS_CLASSES._TABLE_SCROLL_VERTICAL_CLASS),this._applyColumnWidths(l),this._setupTableScrollerHeight(o,n),r=this._getTableContainerScrollableState(n)),this._initializeFrozenColumns(!0),this._updateStickyRowTops(),1===r[0]?(t.hasVerticalOverflow=!0,e.classList.add(I.CSS_CLASSES._TABLE_SCROLL_VERTICAL_CLASS)):(t.hasVerticalOverflow=!1,e.classList.remove(I.CSS_CLASSES._TABLE_SCROLL_VERTICAL_CLASS)),1===r[1]?(t.hasHorizontalOverflow=!0,e.classList.add(I.CSS_CLASSES._TABLE_SCROLL_HORIZONTAL_CLASS)):(t.hasHorizontalOverflow=!1,e.classList.remove(I.CSS_CLASSES._TABLE_SCROLL_HORIZONTAL_CLASS)),this._table._isStatusMessageShown()&&this._table._refreshTableStatusPosition(),this._finalizeTableDimensions()},B.prototype._updateStickyRowTops=function(){var e,t=this._table._getTableHeaderRow(),i=null==this._table.options.scrollPolicyOptions.scrollerOffsetTop?0:this._table.options.scrollPolicyOptions.scrollerOffsetTop,l=null!=t?t.offsetHeight+i:i,o=this._table._getPlaceHolderRowCells(),n=o.length;if(n>0)for(e=0;e<n;e++)o[e].style[I.CSS_PROP._TOP]=l+"px";if(this._table._isStickyRowsEnabled()){var s,a,r=2,_=this._table._getPlaceHolderRow();null!=_&&(l+=_.offsetHeight);var h=this._table._getTableBodyRows();for(e=0;e<h.length;e++){var d=!1,u=h[e],c=this._table._getChildElementsByTagName(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]=l+"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)}}},B.prototype._initializeColumnLayouts=function(){var e=!1;return this._table._isDefaultSelectorEnabled()?null==this._selectorColWidth&&(e=!0,this._selectorColWidth=this._getPixelStyleEquivalent("2.25rem")):null!=this._selectorColWidth&&(e=!0,this._selectorColWidth=null),e},B.prototype._enforceWeightedMinRules=function(e,t,i,l,o,n){var s=t,a=i;const r=[];let _=!0;for(;_;){_=!1;let t=s,i=e-a;if(i>0)for(let e=0;e<this._table._getColumnDefs().length;e++)if(t>0&&null==l[e]&&null==r[e]){const l=o[e],h=l/t*i,d=this._appliedColumnWidths[e];if(h<d){r[e]=d,n[e]=d,a+=d,_=!0,s-=l;break}n[e]=h,i-=h,t-=l}}},B.prototype._setupTableHeight=function(e,t){this._setupTableScrollerHeight(e,t);var i=this._table._getTableBottomSlot();null!=i&&(this._table._isTableStretchEnabled()?(i.style[I.CSS_PROP._BOTTOM]=0,i.style[I.CSS_PROP._POSITION]=I.CSS_VAL._ABSOLUTE):(i.style[I.CSS_PROP._BOTTOM]="",i.style[I.CSS_PROP._POSITION]=""))},B.prototype._setupTableScrollerHeight=function(e,t){e.removeAttribute(I.DOM_ATTR._STYLE);var i=window.getComputedStyle(this._table._getTableContainer()),l=this.getExactClientHeight(i)-t,o=window.getComputedStyle(e),n=this.getExactOffsetHeight(o);Math.abs(n-l)>I.SIZING_ERROR_MARGIN&&(e.style[I.CSS_PROP._HEIGHT]=l+I.CSS_VAL._PX)},B.prototype._removeHeaderColumnAndCellColumnWidths=function(){var e=this._table._getTableSelectorCol();null!=e&&(e.style[I.CSS_PROP._WIDTH]="");for(var t=this._table._getTableCols(),i=0;i<t.length;i++){var l=t[i];l.style[I.CSS_PROP._WIDTH]="",l.style[I.CSS_PROP._DISPLAY]=""}this._appliedColumnWidths=null},B.prototype._applyColumnWidths=function(){this._initializeColumnLayouts()},B.prototype._setAllColumnWidths=function(){},B.prototype._getAppliedColumnWidth=function(e){return null!=this._appliedColumnWidths&&this._appliedColumnWidths.length>e?this._appliedColumnWidths[e]:0},B.prototype._initializeFrozenColumns=function(e,t){if(e||this.hasRenderedSize()){var i,l,o,n;this._table._isExternalScrollEnabled()?(o=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):(o=0,n=0);var s=!1;if(this._table._isGutterStartColumnEnabled()){this._applyFrozenOffset(-1,o,!0,t),o+=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,o,!0,t),o+=this._selectorColWidth,s=!0);var a=this._getFrozenStartColumnIndexes();if(a.length>0)for(s=!0,i=0;i<a.length;i++)l=a[i],this._applyFrozenOffset(l,o,!0,t),o+=this._getAppliedColumnWidth(l);var r=this._getFrozenEndColumnIndexes();if(r.length>0)for(s=!0,i=r.length-1;i>-1;i--)l=r[i],this._applyFrozenOffset(l,n,!1,t),n+=this._getAppliedColumnWidth(l);s&&this._updateFrozenEdges(this._scrollLeft,!0,t)}},B.prototype._getFrozenStartColumnIndexes=function(){for(var e=[],t=this._table._getColumnDefs(),i=0;i<t.length;i++)t[i].frozenEdge===I._OPTION_FROZEN_EDGE._START&&e.push(i);return e},B.prototype._getFrozenEndColumnIndexes=function(){for(var e=[],t=this._table._getColumnDefs(),i=0;i<t.length;i++)t[i].frozenEdge===I._OPTION_FROZEN_EDGE._END&&e.push(i);return e},B.prototype._applyFrozenOffset=function(e,t,i,l){var o,n,s="rtl"===this._table._GetReadingDirection();n=i&&!s||!i&&s?I.CSS_PROP._LEFT:I.CSS_PROP._RIGHT;var a=t+I.CSS_VAL._PX;if(null!=l){let t;if(-1===e){if(this._table._isGutterStartColumnEnabled()&&(t=this._table._getTableGutterCell("body","start",l)),this._table._isDefaultSelectorEnabled())if(l.classList.contains(I.CSS_CLASSES._TABLE_ADD_ROW_PLACEHOLDER_CLASS)){let e=this._table._isGutterStartColumnEnabled()?1:0;t=this._table._getPlaceHolderRowCells(l)[e]}else t=this._table._getTableBodySelectorCell(l)}else t=l.classList.contains(I.CSS_CLASSES._TABLE_ADD_ROW_PLACEHOLDER_CLASS)?this._table._getPlaceHolderRowCell(e):this._table._getTableBodyCell(null,e,l);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",i=this._table._getTableGutterCell("header",t);if(null!=i&&(i.style[n]=a),null!=_){const e=this._table._getTableGutterCell("body",t,_);null!=e&&(e.style[n]=a)}for(o=0;o<r.length;o++){const e=this._table._getTableGutterCell("body",t,r[o]);null!=e&&(e.style[n]=a)}const l=this._table._getTableGutterCell("footer",t);null!=l&&(l.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(o=0;o<r.length;o++){var u=this._table._getTableBodyRow(o),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(o=0;o<r.length;o++){var T=this._table._getTableBodyCell(o,e);null!=T&&(T.style[n]=a)}var p=this._table._getTableFooterCell(e);null!=p&&(p.style[n]=a)}},B.prototype._updateFrozenEdges=function(e,t,i){var l,o,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(l=0;l<_.length&&((o=_[l])<r&&this._getAppliedColumnWidth(o)>0);l++)n=o}this._updateFrozenEdge(n,!0,t,i);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(l=this._appliedColumnWidths.length-1;l>-1;l--)if(-1!==c.indexOf(l)&&this._getAppliedColumnWidth(l)>0)s=l;else if((u+=this._getAppliedColumnWidth(l))>d)break}this._updateFrozenEdge(s,!1,t,i)},B.prototype._updateFrozenEdge=function(e,t,i,l){var o=!1;t?this._frozenStartIndex!==e&&(null!=this._frozenStartIndex&&this._applyFrozenEdge(this._frozenStartIndex,!1,l),null!=e&&(this._applyFrozenEdge(e,!0,l),o=!0),this._frozenStartIndex=e):this._frozenEndIndex!==e&&(null!=this._frozenEndIndex&&this._applyFrozenEdge(this._frozenEndIndex,!1,l),null!=e&&(this._applyFrozenEdge(e,!0,l),o=!0),this._frozenEndIndex=e),i&&!o&&this._applyFrozenEdge(e,!0,l)},B.prototype._applyFrozenEdge=function(e,t,i){let l;const o=t?"add":"remove",n=this._table.options.columns.length;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=e===n?this._table._getTableGutterCell("body","end",i):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.classList[o](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",i=this._table._getTableGutterCell("header",t);if(null!=i&&i.classList[o](I.CSS_CLASSES._TABLE_FROZEN_EDGE),null!=a){const e=this._table._getTableGutterCell("body",t,a);null!=e&&e.classList[o](I.CSS_CLASSES._TABLE_FROZEN_EDGE)}for(l=0;l<s.length;l++){const e=this._table._getTableGutterCell("body",t,s[l]);null!=e&&e.classList[o](I.CSS_CLASSES._TABLE_FROZEN_EDGE)}const n=this._table._getTableGutterCell("footer",t);null!=n&&n.classList[o](I.CSS_CLASSES._TABLE_FROZEN_EDGE)}else if(-1===e){var r=this._table._getTableSelectorColumn();if(null!=r&&r.classList[o](I.CSS_CLASSES._TABLE_FROZEN_EDGE),null!=a){let e=this._table._isGutterStartColumnEnabled()?1:0;var _=this._table._getPlaceHolderRowCells(a)[e];null!=_&&_.classList[o](I.CSS_CLASSES._TABLE_FROZEN_EDGE)}for(l=0;l<s.length;l++){var h=this._table._getTableBodyRow(l),d=this._table._getTableBodySelectorCell(h);null!=d&&d.classList[o](I.CSS_CLASSES._TABLE_FROZEN_EDGE)}var u=this._table._getTableFooterSelectorCell();null!=u&&u.classList[o](I.CSS_CLASSES._TABLE_FROZEN_EDGE)}else{var c=this._table._getTableHeaderColumn(e);if(null!=c&&c.classList[o](I.CSS_CLASSES._TABLE_FROZEN_EDGE),null!=a){var S=this._table._getPlaceHolderRowCell(e);null!=S&&S.classList[o](I.CSS_CLASSES._TABLE_FROZEN_EDGE)}for(l=0;l<s.length;l++){var E=this._table._getTableBodyCell(l,e);null!=E&&E.classList[o](I.CSS_CLASSES._TABLE_FROZEN_EDGE)}var C=this._table._getTableFooterCell(e);null!=C&&C.classList[o](I.CSS_CLASSES._TABLE_FROZEN_EDGE)}},B.prototype._isSingleColumnResizeEnabled=function(){return this._table.options.columnResizeBehavior===I._OPTION_COLUMN_RESIZE_BEHAVIOR._ADD},B.prototype.handleMouseMoveHeaderCell=function(e){this._isColumnResizing||this._setResizeCursor(e,this._isSingleColumnResizeEnabled())},B.prototype._setResizeCursor=function(e,t){var i=this._table._getEventTargetElement(e),l=this._table._getElementColumnIdx(i);if(null!=l&&null!=this._appliedColumnWidths){var o=!1,n=this._table._getTableHeaderColumn(l);if(null!==n){var s=this._table._GetReadingDirection(),a=this._table.options.columns.length,r=n.getBoundingClientRect(),_=Math.abs(e.originalEvent.clientX-r.left),h=Math.abs(e.originalEvent.clientX-r.right);if((_<=I.RESIZE_OFFSET||h<=I.RESIZE_OFFSET)&&(o=!0,(_<=I.RESIZE_OFFSET&&"ltr"===s||h<=I.RESIZE_OFFSET&&"rtl"===s)&&(l-=1)),o&&l>=0&&(t||l<a-1))this._table._getColumnDefs()[l].resizable===I._OPTION_DISABLED||!t&&this._table._getColumnDefs()[l+1].resizable===I._OPTION_DISABLED?(this._cursor=null,i.style.cursor=""):(this._resizeStartIndex=l,t||(this._resizeEndIndex=l+1),this._cursor="col-resize",i.style.cursor=I.CSS_VAL._COL_RESIZE);else this._cursor=null,i.style.cursor=""}}},B.prototype._handleHeaderColumnResizeStart=function(e,t){var i=this._isSingleColumnResizeEnabled();return(!t||null==this._resizeStartIndex&&null==this._resizeEndIndex)&&this._setResizeCursor(e,i),"col-resize"===this._cursor?(this._isColumnResizing=!0,this._resizeStartPageX=this._getPageX(e),this._minimumStartColWidth=this.getMinimumForcedOffsetWidth(this._resizeStartIndex),i||(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)},B.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)},B.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)},B.prototype._handleResizeMouseMove=function(e){e&&0===e.buttons?this._handleResizeMouseUp(e):this._updateResizeColumnWidths(e,this._isSingleColumnResizeEnabled())},B.prototype._handleResizeMouseUp=function(e){this._removeResizeIndicator(),this._updateResizeColumnWidths(e,this._isSingleColumnResizeEnabled(),!0),this._cleanupColumnResizing()},B.prototype._cleanupColumnResizing=function(){this._removeResizeIndicator(),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)},B.prototype.handleTouchMoveHeader=function(e){this._isColumnResizing&&this._updateResizeColumnWidths(e,this._isSingleColumnResizeEnabled())},B.prototype.handleTouchEnd=function(e){this._isColumnResizing&&(e.preventDefault(),this._removeResizeIndicator(),this._updateResizeColumnWidths(e,this._isSingleColumnResizeEnabled(),!0),this._cleanupColumnResizing())},B.prototype._updateResizeColumnWidths=function(e,t,i){var l,o,n,s,a=this._table._GetReadingDirection(),r=this._getAppliedColumnWidth(this._resizeStartIndex),_=t?null:this._getAppliedColumnWidth(this._resizeEndIndex),h=this._getPageX(e)-this._resizeStartPageX;("ltr"===a?(l=r+h,t||(o=_-h)):(l=r-h,t||(o=_+h)),this._minimumStartColWidth>l?(n=this._minimumStartColWidth-l,l=this._minimumStartColWidth,t||(o-=n)):!t&&this._minimumEndColWidth>o&&(n=this._minimumEndColWidth-o,o=this._minimumEndColWidth,l-=n),this._table._getTableCol(this._resizeStartIndex).style[I.CSS_PROP._WIDTH]=l+I.CSS_VAL._PX,t)||(this._table._getTableCol(this._resizeEndIndex).style[I.CSS_PROP._WIDTH]=o+I.CSS_VAL._PX);this._updateStickyRowTops();var d=this._table.options.columns.length;if(i){var u=this._table._isVerticalGridEnabled(),c=[];for(s=0;s<d;s++)c[s]=Object.assign({},{},this._table.options.columns[s]);var S=this._table._getTableHeaderColumn(this._resizeStartIndex);if(c[this._resizeStartIndex].width=this.getWidthPropertyFromOffsetWidth(l,S,u),t)for(this._singleResizeColumnWidths=[],s=0;s<d;s++)s!==this._resizeStartIndex?this._singleResizeColumnWidths[s]=this._getAppliedColumnWidth(s):this._singleResizeColumnWidths[s]=null;else{var E=this._table._getTableHeaderColumn(this._resizeEndIndex);c[this._resizeEndIndex].width=this.getWidthPropertyFromOffsetWidth(o,E,u)}this._table.option("columns",c,{_context:{writeback:!0,internalSet:!0}}),this._table._clearCachedMetadata(),t?this.notifyTableUpdate(I._UPDATE._SINGLE_COL_RESIZE):this.notifyTableUpdate(I._UPDATE._DIVIDER_RESIZE),null!=this._finishResize&&(this._finishResize(),this._finishResize=null)}else if(t){var C=this._table._getTable(),T=0;for(s=0;s<d;s++)s!==this._resizeStartIndex?T+=this._getAppliedColumnWidth(s):T+=l;C.style[I.CSS_PROP._WIDTH]=T+I.CSS_VAL._PX}},B.prototype._setResizeIndicator=function(){var e,t=!1;this._isSingleColumnResizeEnabled()?this._resizeStartIndex===this._table.options.columns.length-1?(e=this._resizeStartIndex,t=!0):e=this._resizeStartIndex+1:e=this._resizeEndIndex;var i=this._table._getPlaceHolderRowCell(e);null!=i&&i.classList.add(t?I.CSS_CLASSES._COLUMN_RESIZE_LAST_INDICATOR_CLASS:I.CSS_CLASSES._COLUMN_RESIZE_INDICATOR_CLASS);var l=this._table._getTableHeaderColumn(e);null!=l&&l.classList.add(t?I.CSS_CLASSES._COLUMN_RESIZE_LAST_INDICATOR_CLASS:I.CSS_CLASSES._COLUMN_RESIZE_INDICATOR_CLASS),this._table._getVisibleRowIdxs().forEach(function(i){var l=this._table._getTableBodyCell(i,e);null!=l&&l.classList.add(t?I.CSS_CLASSES._COLUMN_RESIZE_LAST_INDICATOR_CLASS:I.CSS_CLASSES._COLUMN_RESIZE_INDICATOR_CLASS)}.bind(this));var o=this._table._getTableFooterCell(e);null!=o&&o.classList.add(t?I.CSS_CLASSES._COLUMN_RESIZE_LAST_INDICATOR_CLASS:I.CSS_CLASSES._COLUMN_RESIZE_INDICATOR_CLASS)},B.prototype._removeResizeIndicator=function(){var e=this._table._getTableContainer(),t=this._table._getTableElementsByClassName(e,I.CSS_CLASSES._COLUMN_RESIZE_INDICATOR_CLASS);t.forEach(function(e){e.classList.remove(I.CSS_CLASSES._COLUMN_RESIZE_INDICATOR_CLASS)}),this._isSingleColumnResizeEnabled()&&(t=this._table._getTableElementsByClassName(e,I.CSS_CLASSES._COLUMN_RESIZE_LAST_INDICATOR_CLASS)).forEach(function(e){e.classList.remove(I.CSS_CLASSES._COLUMN_RESIZE_LAST_INDICATOR_CLASS)})},B.prototype.handleRowRefresh=function(e,t,i){B.superclass.handleRowRefresh.call(this,e,t),i&&this._initializeFrozenColumns(!1,t)},B.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 i=this._getTableColumnDropIndicator();null==i&&(i=this._createTableColumnDropIndicator());var l=this.getScroller().getBoundingClientRect(),o=this._table._getTableHeaderColumn(this._dragIndicatorColumnIndex).getBoundingClientRect();this._dragIndicatorIsStart?"rtl"===this._table._GetReadingDirection()?i.style.left=o.left+o.width-l.left+"px":i.style.left=o.left-l.left+"px":"rtl"===this._table._GetReadingDirection()?i.style.left=o.left-l.left+"px":i.style.left=o.left+o.width-l.left+"px",i.style.height=l.height+"px"}},B.prototype.removeDragOverIndicatorColumn=function(){var e=this._getTableColumnDropIndicator();e&&(c(e).remove(),this._table._clearDomCache(I.CSS_CLASSES._COLUMN_DROP_INDICATOR_CLASS)),this._dragIndicatorColumnIndex=null,this._dragIndicatorIsStart=null},B.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},B.prototype._getTableColumnDropIndicator=function(){return this._table._getTableElementByClassName(I.CSS_CLASSES._COLUMN_DROP_INDICATOR_CLASS,!0)};const P=function(e){P.superclass.constructor.call(this,e)};u.Object.createSubclass(P,B,"TableContentsLayoutManager"),P.prototype._clearAllCache=function(){P.superclass._clearAllCache.call(this),this._columnPreferredWidths=null,this._columnSampledMinWidths=null},P.prototype._clearColumnSizingCache=function(e,t){P.superclass._clearColumnSizingCache.call(this,e,t),e&&(this._columnSampledMinWidths=null,this._columnPreferredWidths=null)},P.prototype._removeTableDimensionsStyling=function(){if(P.superclass._removeTableDimensionsStyling.call(this),null==this._columnPreferredWidths||null==this._columnSampledMinWidths){this._removeHeaderWrapperClass();var e=this._table._getTable();e.style[I.CSS_PROP._WIDTH]=1+I.CSS_VAL._PX,Math.abs(this._table._getTableContainer().clientWidth-e.offsetWidth)<=1?e.style[I.CSS_PROP._WIDTH]="":this._isExternalSizing=!0}},P.prototype._initializeColumnLayouts=function(){var e,t,i,l=P.superclass._initializeColumnLayouts.call(this),o=this._table._getColumnDefs(),n=o.length;if(null==this._columnMinWidths||null==this._columnMaxWidths)for(l=!0,this._columnMinWidths=[],this._columnMaxWidths=[],e=0;e<n;e++){var s=this._table._isVerticalGridEnabled()&&(e>0||this._table._isDefaultSelectorEnabled()),a=this._getPixelStyleEquivalent(o[e].minWidth,s);this._columnMinWidths[e]=null==a||a<=0?null:a;var r=this._getPixelStyleEquivalent(o[e].maxWidth,s);null!=r&&r<this._columnMinWidths[e]!=null&&this._columnMinWidths[e]?this._columnMaxWidths[e]=null:this._columnMaxWidths[e]=r}if(null==this._columnPreferredWidths||null==this._columnSampledMinWidths){for(l=!0,this._columnPreferredWidths=[],this._columnSampledMinWidths=[],e=0;e<n;e++){var _;null!=(t=this._table._getTableHeaderColumn(e))?_=this.getExactOffsetWidth(window.getComputedStyle(t),!0):null!=(i=this._table._getTableBodyCell(0,e,null))&&(_=this.getExactOffsetWidth(window.getComputedStyle(i),!0)),null!=this._columnMinWidths[e]&&this._columnMinWidths[e]>_?this._columnPreferredWidths[e]=this._columnMinWidths[e]:this._columnPreferredWidths[e]=_}for(this._applyHeaderWrapperClass(),e=0;e<n;e++)null!=(t=this._table._getTableHeaderColumn(e))?this._columnSampledMinWidths[e]=this.getExactOffsetWidth(window.getComputedStyle(t),!0):null!=(i=this._table._getTableBodyCell(0,e,null))&&(this._columnSampledMinWidths[e]=this.getExactOffsetWidth(window.getComputedStyle(i),!0))}return l},P.prototype._applyColumnWidths=function(e){P.superclass._applyColumnWidths.call(this);var t=this._table._getTable(),i=this._table._getTableScroller(),l=this._isExternalSizing?i.clientWidth:void 0,o=this._setAllColumnWidths(l,e);if(o>0){if(t.style[I.CSS_PROP._WIDTH]=o+I.CSS_VAL._PX,t.style["table-layout"]="fixed",!0!==this._isExternalSizing){var n=i.clientWidth;n-o>1&&(o=this._setAllColumnWidths(n))>0&&(t.style[I.CSS_PROP._WIDTH]=o+I.CSS_VAL._PX)}}else t.style[I.CSS_PROP._WIDTH]="";return o},P.prototype._setAllColumnWidths=function(e,t){var i,l=this._table._getColumnDefs(),o=l.length;if(0===o)return 0;var n=0,s=0,a=0,r=0,_=0,h=[],d=[];this._appliedColumnWidths=[];var u=null!=this._selectorColWidth?this._selectorColWidth:0;if(this._table._isGutterStartColumnEnabled()){u+=this._table._getTableGutterWidth("start")}if(this._table._isGutterEndColumnEnabled()){u+=this._table._getTableGutterWidth("end")}var c=!1;for(i=0;i<o;i++){var S=this._columnSampledMinWidths[i];if(S>0){var E=this._table._isVerticalGridEnabled()&&(i>0||this._table._isDefaultSelectorEnabled()),C=this._getPixelStyleEquivalent(l[i].width,E);if(null==C&&null!=this._singleResizeColumnWidths&&(C=0!==this._singleResizeColumnWidths[i]?this._singleResizeColumnWidths[i]:null),null!=C)h[i]=C,r+=C,_+=C,n+=C,d[i]=C,this._appliedColumnWidths[i]=C;else{var T;c=!0,h[i]=void 0;var p=this._columnMinWidths[i],g=this._columnMaxWidths[i];_+=T=null!=p&&p>=S?p:null!=g&&S>=g?g:S,n+=null!=g&&g<=this._columnPreferredWidths[i]?g:this._columnPreferredWidths[i],s+=this._columnPreferredWidths[i],a+=this._columnPreferredWidths[i]-T,d[i]=T,this._appliedColumnWidths[i]=T}}else d[i]=0,this._appliedColumnWidths[i]=0,h[i]=0}if(c){var f=null!=e?e-u:n;_<f&&this._enforceMinMaxRules(f,n,a,s,_,r,h,d)}for(i=0;i<o;i++)u+=d[i];if(t&&null!=e&&u<e)return this._singleResizeColumnWidths=null,this._setAllColumnWidths(e);if(null!=this._selectorColWidth){var A=this._table._getTableSelectorCol();null!=A&&(A.style[I.CSS_PROP._WIDTH]=this._selectorColWidth+I.CSS_VAL._PX)}for(i=0;i<o;i++){var m=d[i],b=this._table._getTableCol(i);null!=b&&(b.style[I.CSS_PROP._WIDTH]=m+I.CSS_VAL._PX,0===m&&(b.style[I.CSS_PROP._DISPLAY]=I.CSS_VAL._NONE)),this._appliedColumnWidths[i]=m}return u},P.prototype._enforceMinMaxRules=function(e,t,i,l,o,n,s,a){for(var r=n,_=l,h=o,d=!0;d;){d=!1,t>e?this._enforceConstrainedWeightRules(e-h,i,s,a):this._enforceWeightedMinRules(e,_,r,s,this._columnPreferredWidths,a);for(var u=0,c=0;c<this._table._getColumnDefs().length;c++){if(null==s[c]){var S=this._columnMaxWidths[c];null!=S&&a[c]>S&&(d=!0,s[c]=S,r+=S,h+=S-this._appliedColumnWidths[c],_-=this._columnPreferredWidths[c],a[c]=S,this._appliedColumnWidths[c]=S)}u+=a[c]}d=d&&u<e}},P.prototype._enforceConstrainedWeightRules=function(e,t,i,l){if(e>0){let o=e,n=t;for(let e=0;e<this._table._getColumnDefs().length;e++)if(n>0&&null==i[e]){const t=this._columnPreferredWidths[e]-this._appliedColumnWidths[e],i=t/n*o;l[e]=i+this._appliedColumnWidths[e],o-=i,n-=t}}},P.prototype._applyHeaderWrapperClass=function(){var e=this._table._getTableHeaderColumns();for(let t=0;t<e.length;t++)e[t].classList.add(I.CSS_CLASSES._TABLE_HEADER_WRAP_TEXT_CLASS);this._table._getTable().classList.remove(I.CSS_CLASSES._TABLE_DISABLE_WRAPPING_CLASS)},P.prototype._removeHeaderWrapperClass=function(){var e=this._table._getTableHeaderColumns();for(let t=0;t<e.length;t++)e[t].classList.remove(I.CSS_CLASSES._TABLE_HEADER_WRAP_TEXT_CLASS);this._table._getTable().classList.add(I.CSS_CLASSES._TABLE_DISABLE_WRAPPING_CLASS)};const x=function(e){x.superclass.constructor.call(this,e)};u.Object.createSubclass(x,B,"TableFixedLayoutManager"),x.prototype._clearAllCache=function(){x.superclass._clearAllCache.call(this),this._columnWeights=null,this._columnSampledMinWidths=null},x.prototype._clearColumnSizingCache=function(e,t){x.superclass._clearColumnSizingCache.call(this,e,t),e&&(this._columnSampledMinWidths=null)},x.prototype.optimizeInitialColumnWidths=function(){var e=this._table._getTableContainer();this._clearAllCache();var t=this._table._getTable();if(this._removeTableDimensionsStyling(),A.isSafari()){t.classList.remove(I.CSS_CLASSES._TABLE_ELEMENT_CLASS);t.offsetWidth;t.classList.add(I.CSS_CLASSES._TABLE_ELEMENT_CLASS)}this._table._styleTableContainer(e),this._applyColumnWidths()},x.prototype._removeTableDimensionsStyling=function(){this.unregisterScrollListeners()},x.prototype._initializeColumnLayouts=function(){var e,t=x.superclass._initializeColumnLayouts.call(this),i=this._table._getColumnDefs(),l=i.length;if(null==this._columnMinWidths||null==this._columnMaxWidths||null==this._columnWeights)for(t=!0,this._columnMinWidths=[],this._columnMaxWidths=[],this._columnWeights=[],e=0;e<l;e++){var o=this._table._isVerticalGridEnabled()&&(e>0||this._table._isDefaultSelectorEnabled()),n=this._getPixelStyleEquivalent(i[e].minWidth,o);this._columnMinWidths[e]=null==n||n<=0?1:n;var s=this._getPixelStyleEquivalent(i[e].maxWidth,o);null!=s&&s<this._columnMinWidths[e]?this._columnMaxWidths[e]=null:this._columnMaxWidths[e]=s;var a=parseFloat(i[e].weight);a<=1&&(a=1),this._columnWeights[e]=a}if(null==this._columnSampledMinWidths)for(t=!0,this._resetTableElementStyling(),this._columnSampledMinWidths=[],e=0;e<l;e++){var r=this._table._getTableHeaderColumn(e);if(null!=r)this._columnSampledMinWidths[e]=this.getExactOffsetWidth(window.getComputedStyle(r),!0);else{var _=this._table._getTableBodyCell(0,e,null);null!=_&&(this._columnSampledMinWidths[e]=this.getExactOffsetWidth(window.getComputedStyle(_),!0))}}else t&&this._resetTableElementStyling();return t},x.prototype._resetTableElementStyling=function(){this._table._getTable().style="",this._removeHeaderColumnAndCellColumnWidths()},x.prototype._applyColumnWidths=function(e){x.superclass._applyColumnWidths.call(this);var t=this._table._getTable(),i=this._table._getTableScroller().clientWidth,l=this._setAllColumnWidths(i,e);l>0?(t.style[I.CSS_PROP._WIDTH]=l+I.CSS_VAL._PX,t.style["table-layout"]="fixed"):t.style[I.CSS_PROP._WIDTH]=""},x.prototype._setAllColumnWidths=function(e,t){var i=0,l=this._table._getColumnDefs(),o=l.length;if(0===o)return 0;var n=0,s=0,a=0,r=[],_=[];this._appliedColumnWidths=[];var h=null!=this._selectorColWidth?this._selectorColWidth:0;if(this._table._isGutterStartColumnEnabled()){h+=this._table._getTableGutterWidth("start")}if(this._table._isGutterEndColumnEnabled()){h+=this._table._getTableGutterWidth("end")}var d=!1;for(i=0;i<o;i++)if(this._columnSampledMinWidths[i]>0){var u=this._table._isVerticalGridEnabled()&&(i>0||this._table._isDefaultSelectorEnabled()),c=this._getPixelStyleEquivalent(l[i].width,u);if(null==c&&null!=this._singleResizeColumnWidths&&(c=0!==this._singleResizeColumnWidths[i]?this._singleResizeColumnWidths[i]:null),null!=c)s+=c,a+=c,r[i]=c,_[i]=c,this._appliedColumnWidths[i]=c;else{d=!0;var S=this._columnMinWidths[i];a+=S,r[i]=void 0,n+=this._columnWeights[i],_[i]=S,this._appliedColumnWidths[i]=S}}else _[i]=0,this._appliedColumnWidths[i]=0,r[i]=0;if(d){var E=e-h;a<E&&this._enforceMinMaxRules(E,n,s,r,_)}for(i=0;i<o;i++)h+=_[i];if(t&&null!=e&&h<e)return this._singleResizeColumnWidths=null,this._setAllColumnWidths(e);if(null!=this._selectorColWidth){var C=this._table._getTableSelectorCol();null!=C&&(C.style[I.CSS_PROP._WIDTH]=this._selectorColWidth+I.CSS_VAL._PX)}for(i=0;i<o;i++){var T=_[i],p=this._table._getTableCol(i);null!=p&&(p.style[I.CSS_PROP._WIDTH]=T+I.CSS_VAL._PX,0===T&&(p.style[I.CSS_PROP._DISPLAY]=I.CSS_VAL._NONE)),this._appliedColumnWidths[i]=T}return h},x.prototype._enforceMinMaxRules=function(e,t,i,l,o){for(var n=i,s=t,a=!0;a;){a=!1,this._enforceWeightedMinRules(e,s,n,l,this._columnWeights,o);for(var r=0,_=0;_<this._table._getColumnDefs().length;_++){if(null==l[_]){const e=this._columnMaxWidths[_];null!=e&&o[_]>e&&(a=!0,l[_]=e,n+=e,s-=this._columnWeights[_],o[_]=e,this._appliedColumnWidths[_]=e)}r+=o[_]}a=a&&r<e}},x.prototype._getMinWidthAutoEquivalent=function(e){return 100+(e?1:0)},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),!A.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 i=document.createElement(I.DOM_ELEMENT._DIV);i.id=this.createSubId("rowContext"),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("columnContext"),l.classList.add(I.CSS_CLASSES._HIDDEN_CONTENT_ACC_CLASS),e.appendChild(l);var o=document.createElement(I.DOM_ELEMENT._DIV);o.id=this.createSubId("selectorContext"),o.classList.add(I.CSS_CLASSES._HIDDEN_CONTENT_ACC_CLASS),o.textContent=this.getTranslatedString(I._BUNDLE_KEY._LABEL_SELECT_ROW),e.appendChild(o),this._tableContextInfo=t,this._rowContextInfo=i,this._columnContextInfo=l,this._selectorContextInfo=o}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._getAccessibleRowExpanderContext=function(e,t,i){let l,o=-1,n="unknown";if(null!=e&&void 0!==t&&void 0!==i){let s=-1;const a=this._getTableBodyRows(),r=a.filter((e,i)=>!!oj.KeyUtils.equals(e[I._ROW_ITEM_EXPANDO].metadata.parentKey,t)&&(s=i,!0));o=r.length,o>0&&(l=r.findIndex(t=>oj.KeyUtils.equals(t[I._ROW_ITEM_EXPANDO].metadata.key,e)),n="atLeast",this._hasMoreToFetch()&&!a.slice(s).some(e=>e[I._ROW_ITEM_EXPANDO].metadata.treeDepth<i)||(n="exact"))}return{index:l,count:o,precision:n}},I.prototype._updateAccStatusInfo=function(e){var t,i,l="",o="";if(null!=this._active&&this._hasFocus()&&!A.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";var r=this.getTranslatedString(s,{colnum:n,rownum:a});this._isTableEditMode()&&(r+=" "+this.getTranslatedString("accessibleEditableSummary")),this._tableContextInfo.textContent=r,l+=this._tableContextInfo.id+" "+this._getTableContainer().id+" "}var _=this._getActiveType(),h=this._active.index;if(_===I.ACTIVE_ELEMENT_TYPES._HEADER){if(this._accRowIndex=null,this._accColumnIndex=null,this._columnContextInfo.textContent=this.getTranslatedString("accessibleColumnHeaderContext",{index:this._isDefaultSelectorEnabled()?h+2:h+1}),l+=this._columnContextInfo.id+" ",-1===h){if(null==(i=this._getTableSelectorColumn()))return}else{var d=!1;if(null==(i=this._getTableHeaderColumn(h)))return;var u=this._getSelectedHeaderColumnIdxs();for(t=0;t<u.length;t++)if(u[t]===h){o+=this.getTranslatedString("accessibleStateSelected")+" ",d=!0;break}!d&&this._isColumnSelectionEnabled()&&(o+=this.getTranslatedString("accessibleStateUnselected")+" ");var S=this._getColumnDefs()[h],E=c(i).data("sorted");null!=E?E===I._COLUMN_SORT_ORDER._ASCENDING?o+=this.getTranslatedString("accessibleSortAscending",{id:""})+" ":o+=this.getTranslatedString("accessibleSortDescending",{id:""})+" ":null!=S&&S.sortable===I._OPTION_ENABLED&&(o+=this.getTranslatedString("accessibleSortable",{id:""})+" ")}A.getActionableElementsInNode(i).length>0&&(o+=this.getTranslatedString("accessibleContainsControls")),l+=i.id+" "}else if(_===I.ACTIVE_ELEMENT_TYPES._FOOTER){var C;if(this._accRowIndex=null,this._accColumnIndex=null,this._columnContextInfo.textContent=this.getTranslatedString("accessibleColumnFooterContext",{index:this._isDefaultSelectorEnabled()?h+2:h+1}),l+=this._columnContextInfo.id+" ",-1===h){if(null==(C=this._getTableFooterSelectorCell()))return}else{var T=!1;if(null==(C=this._getTableFooterCell(h)))return;var p=this._getSelectedFooterColumnIdxs();for(t=0;t<p.length;t++)if(p[t]===h){o+=this.getTranslatedString("accessibleStateSelected")+" ",T=!0;break}!T&&this._isColumnSelectionEnabled()&&(o+=this.getTranslatedString("accessibleStateUnselected")+" ")}A.getActionableElementsInNode(C).length>0&&(o+=this.getTranslatedString("accessibleContainsControls")),null!=(i=this._getTableHeaderColumn(h))&&(l+=i.id+" "),l+=C.id+" "}else if(_===I.ACTIVE_ELEMENT_TYPES._DATA_ROW){var g,f=null!=e?e:this._accColumnIndex;null==f&&(f=0);var m=this._getTableBodyRow(h);if(null==m)return;if(null==(g=-1===f?this._getTableBodySelectorCell(m):this._getTableBodyLogicalCells(null,m)[f]))return;if(h!==this._accRowIndex||!1!==this._accFirstFocus){var b=this._isAddNewRowEnabled()?2:1;this._rowContextInfo.textContent=this.getTranslatedString("accessibleRowContext",{index:h+b});var L="",R=!1;null!=this._accRowContext&&(L+=this._accRowContext+" ");var y=this._getSelectedRowIdxs();for(t=0;t<y.length;t++)if(y[t]===h){L+=this.getTranslatedString("accessibleStateSelected")+" ",R=!0;break}!R&&this._isRowSelectionEnabled()&&m[I._DATA_OJ_SELECTABLE]!==I._CONST_OFF&&(L+=this.getTranslatedString("accessibleStateUnselected")+" "),A.getActionableElementsInNode(m).length>0&&(L+=this.getTranslatedString("accessibleContainsControls")+" "),this._rowStateInfo.textContent=L,l+=this._rowContextInfo.id+(-1===f?" ":" "+this._getRowHeaderIds(m,g)+" ")+this._rowStateInfo.id+" "}if(f===this._accColumnIndex&&!1===this._accFirstFocus||(this._columnContextInfo.textContent=this.getTranslatedString("accessibleColumnContext",{index:this._isDefaultSelectorEnabled()?f+2:f+1}),l+=this._columnContextInfo.id+" "),-1===f)l+=this._getAccSelectorString(m)+" ";else{null!=(i=this._getTableHeaderColumn(f))&&(l+=i.id+" "+g.id+" ");var O=g.colSpan;O>1&&(o+=this.getTranslatedString("accessibleColumnsSpan",{count:O}))}this._accRowIndex=h,this._accColumnIndex=f}else if(_===I.ACTIVE_ELEMENT_TYPES._NO_DATA){this._accRowIndex=null,this._accColumnIndex=null,l+=this._getNoDataId()+" ";var v=this._getActiveElement();A.getActionableElementsInNode(v).length>0&&(o+=this.getTranslatedString("accessibleContainsControls"))}else if(_===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();A.getActionableElementsInNode(D).length>0&&(o+=this.getTranslatedString("accessibleContainsControls")),l+=this._rowContextInfo.id+" "+this._rowStateInfo.id+" "}this._stateInfo.textContent=o,l+=this._stateInfo.id,this._applyAccStatusLabel(l)}},I.prototype._announceAccSelectionUpdate=function(e){var t;t=e?this.getTranslatedString("accessibleStateSelected"):this.getTranslatedString("accessibleStateUnselected"),this._stateInfo.textContent=t,this._applyAccStatusLabel(this._stateInfo.id)},I.prototype._getAccSelectorString=function(e){return this._selectorContextInfo.id+" "+this._getRowHeaderIds(e)},I.prototype._clearAccStatusInfo=function(){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._getTable().setAttribute(I.DOM_ATTR._ARIA_LABELLEDBY,e)},I.prototype._getRowHeaderIds=function(e,t){var i,l="",o=this.options.accessibility;if(null!=o&&null!=o.rowHeader){var n=o.rowHeader;Array.isArray(n)||(n=[n]);for(var s=this._getColumnDefs(),a=0;a<n.length;a++)for(var r=n[a],_=0;_<s.length;_++)if(r===s[_].id){null!=(i=this._getTableBodyLogicalCells(null,e)[_])&&i!==t&&(l+=i.id+" ");break}}else null!=(i=this._getTableBodyCell(null,0,e))&&i!==t&&(l+=i.id+" ");return l},I.prototype._getVoiceOverCellLabelledby=function(e,t){var i="",l=this._getTableHeaderColumn(t);return null!=l&&(i+=l.id+" "),i+=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._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,i=I._LOGGER_MSG._ERR_DATA_INVALID_TYPE_DETAIL;throw new Error(t+"\n"+i)}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,i=0;i<t;i++){var l=e.addEventListener(this._dataProviderEventHandlers[i].eventType,this._dataProviderEventHandlers[i].eventHandler);l&&(this._dataProviderEventHandlers[i].eventHandler=l)}}},I.prototype._unregisterDataSourceEventListeners=function(){var e=this._getData();if(null!=this._dataProviderEventHandlers&&null!=e)for(var t=this._dataProviderEventHandlers.length,i=0;i<t;i++)e.removeEventListener(this._dataProviderEventHandlers[i].eventType,this._dataProviderEventHandlers[i].eventHandler)},I.prototype._handleDataRefresh=function(e){try{if(this._hasRefreshInQueue)return;if(this._dataFetching)return this._controller&&this._controller.abort(A.getAbortReason(this.OuterWrapper)),this._pendingFetchStale=!0,void(this._pendingFetchOptions=null);e.detail&&void 0!==e.detail.disregardAfterKey?this._queueTask(function(){this._getLayoutManager().notifyTableUpdate(I._UPDATE._ROWS_REMOVED),this._clearActiveRow(null,!0),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._clearActiveRow(null,!0),this._beforeDataRefresh(),this._invokeDataFetchRows()}.bind(this)))}catch(e){E.error(e)}},I.prototype._beforeDataRefresh=function(e){this._clearIdleCallback(),this._adjustScrollPositionOnFetch(e),this._invalidateRangeSelection(),null!=this._lastSelectedRowIdxArray&&(this._lastSelectedRowIdxArray=[]),this._hasEditableRow()&&this._setTableEditable(!1,!0),this._initialSelectionStateValidated=!1},I.prototype._removeRowsAfterLastValidRow=function(e){this._getCurrentScrollPosition().y>0&&this._bufferScrollerForLastRow(e);var t=this._getRowIdxForRowKey(e);if(t>=0){this._hasEditableRow()&&this._getEditableRowIdx()>t&&this._setTableEditable(!1,!0);for(var i=this._getTableBodyRows().length-1;i>t;i--)this._removeTableBodyRow(i)}},I.prototype._bufferScrollerForLastRow=function(e){var t=this._getLayoutManager();if(null!=e){var i=this._getRowIdxForRowKey(e);if(null!=i){var l=this._getTableBodyRow(i),o=t.getVerticalOverflowDiff(l).bottom;o<0&&(this._createTableBodyScrollBuffer().style[I.CSS_PROP._HEIGHT]=Math.abs(o)+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){if(this._dataFetching)return this._controller&&this._controller.abort(A.getAbortReason(this.OuterWrapper)),void(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){E.error(e)}finally{this._clearDataWaitingState()}},I.prototype._executeTableBodyRowsRemove=function(e,t){var i=this,l=e[I._CONST_KEYS];l&&l.size>0&&this._queueTask(function(){var l=i._getRowsFromEventDetailRemove(e);if(0!==l.length){i._getLayoutManager().notifyTableUpdate(I._UPDATE._ROWS_REMOVED),l.sort(function(e,t){return t.rowIdx-e.rowIdx});var o,n,s,a=[],r=[],_=[],h=l.length,d=!1,u=i._getTableBodyRows();if(u.length>0){for(s=0;s<u.length;s++)a.push(s);for(s=0;s<h;s++){n=l[s].rowIdx,r.push(n);for(var c=0;c<a.length;c++)if(a[c]===n){o=i._getTableBodyRow(n),_.push(o),a.splice(c,1);break}}0===a.length&&(d=!0)}var S=i._getTableBody(),E=S.contains(document.activeElement),C=!1;if(d)E&&(C=!0),i._clearSelectionState();else for(s=0;s<h;s++)if(n=l[s].rowIdx,o=i._getTableBodyRow(n),E&&null!=o&&o.contains(document.activeElement)){C=!0;break}if(i._hasEditableRow()){var T=i._getEditableRowKey();A.containsKey([...e[I._CONST_KEYS]],T)&&i._setTableEditable(!1,!0)}return d?(i._removeAllTableBodyRows(),f()):new Promise(function(e){return i._IsCustomElement()?i._animateVisibleRows(_,r,"remove").then(function(){return p(),f().then(function(){e(!0)})}):(p(),f().then(function(){e(!0)}))})}function p(){var e,t;if(i._getCurrentScrollPosition().y>0){var o,n,s,a,r=0,_=[];for(e=0;e<h;e++)t=l[e].rowIdx,null!=(o=i._getTableBodyRow(t))&&(r+=o.offsetHeight,_.push(o));if(i._isStickyRowsEnabled())for(e=(a=i._getTableBodyStickyRows()).length-1;e>=0;e--)if((s=a[e]).classList.contains(I.CSS_CLASSES._TABLE_STUCK_ROW_CLASS)){n=s;break}for(i._createTableBodyScrollBuffer().style[I.CSS_PROP._HEIGHT]=r+I.CSS_VAL._PX,e=0;e<_.length;e++)if(o=_[e],i._removeTableBodyRow(null,o),null!=n){var d=a.indexOf(o);-1!==d&&a.splice(d,1)}if(null!=n)for(e=a.length-1;e>=0;e--)if(s=a[e],i._getLayoutManager().getVerticalOverflowDiff(s).top>0){n!==s&&i._scrollRowIntoViewport(null,!0,n);break}}else for(e=0;e<h;e++)t=l[e].rowIdx,i._removeTableBodyRow(t)}function g(){i._syncActiveElement(),C&&i._getTable().focus()}function f(){return!0!==e.transient&&i._updateSelectionStateFromEventDetailRemove(e,t),i._refreshTableFooter(),0===(u=i._getTableBodyRows()).length?(i._showNoDataMessage(),i._finalizeNonBodyRowRendering([S]).then(function(){g()})):Promise.resolve().then(function(){g()})}i._updateSelectionStateFromEventDetailRemove(e,t)})},I.prototype._getRowsFromEventDetailRemove=function(e){var t=[];return e[I._CONST_KEYS].forEach(function(e){var i=this._getRowIdxForRowKey(e);if(void 0!==i){var l={key:e,index:i};t.push({row:l,rowIdx:i})}}.bind(this)),t},I.prototype._handleDataRowAdd=function(e){try{this._executeTableBodyRowsAdd(e)}catch(e){E.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){this._getLayoutManager().notifyTableUpdate(I._UPDATE._ROWS_ADDED);var i,l,o=!0,n=[],s=[],a=[],r=[],_=this._getTableBody(),h=t.length;for(i=0;i<h;i++)i>0&&t[i-1].rowIdx!==t[i].rowIdx-1&&(o=!1),s.push(t[i].rowIdx);if(o){for(l=document.createDocumentFragment(),i=0;i<h;i++)n.push(this._renderRow(t[i],l,t[0].rowIdx));a.push(l),r.push(t[0].rowIdx)}else for(i=0;i<h;i++){var d=t[i].rowIdx;l=document.createDocumentFragment(),n.push(this._renderRow(t[i],l,d)),a.push(l),r.push(d)}return this._refreshTableFooter().then(function(){return Promise.all(n).then(function(e){for(this._hideNoDataMessage(),i=0;i<a.length;i++)this._handleRowAdds(_,a[i],r[i]),this._clearCachedDomRowData();0===this._scrollTop&&(1===t.length&&0===t[0].rowIdx||-1!==s.indexOf(0))&&delete(null==this.options.scrollPosition?{}:this.options.scrollPosition).rowKey;return this._requiresDomScrollerRefresh&&this._registerDomScroller(),this._IsCustomElement()?this._animateVisibleRows(e,s,"add").then(function(){return this._syncActiveElement(),this._afterRowsRendered(_)}.bind(this)):(this._syncActiveElement(),this._afterRowsRendered(_))}.bind(this))}.bind(this),function(e){return Promise.reject(e)})}this._requiresDomScrollerRefresh&&this._registerDomScroller()}.bind(this))},I.prototype._getRowsFromEventDetailAdd=function(e){var t=[],i=this._getData(),l=!this._isLoadMoreOnScroll()||A.isIterateAfterDoneNotAllowed(i)&&!this._hasMoreToFetch(),o=this._getLocalRowKeys(),n=o.length;if(!l&&0===n)return this._notifyAddOutOfViewport(),t;var s=A.getAddEventKeysResult(o,e,l),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=i.getStartItemIndex()),i instanceof u.TableDataSourceAdapter&&(u.FlattenedTreeTableDataSource&&i.tableDataSource instanceof u.FlattenedTreeTableDataSource?d=i.tableDataSource:this._isPagingModelTableDataSource()&&u.FlattenedTreeTableDataSource&&i.tableDataSource.dataSource instanceof u.FlattenedTreeTableDataSource&&(d=i.tableDataSource.dataSource)),l||n+h===s.length||this._notifyAddOutOfViewport();for(var S=0;S<h;S++){var E=_[S],C=s.indexOf(E);if(-1!==C&&-1===o.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._handleRowAdds=function(e,t,i){this._getLayoutManager().handleAfterRowsProcessed(t);var l=this._getTableBodyRow(i);null!=l?e.insertBefore(t,l):this._appendElementToTableBody(t,e)},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){E.error(e)}finally{this._clearDataWaitingState()}},I.prototype._executeTableBodyRowsChange=function(e){this._queueTask(function(){var t;this._updateSelectionStateFromEventDetailChange(e);var i=this._getRowsFromEventDetailChange(e);if(0!==i.length){this._getLayoutManager().notifyTableUpdate(I._UPDATE._ROW_REFRESH);var l=i.length,o=[],n=!1,s=[];for(t=0;t<l;t++){var a=i[t],r=this._getTableBodyRow(a.rowIdx);null!=r&&r!==document.activeElement&&r.contains(document.activeElement)&&(n=!0),r&&this._setTableBodyRowAttributes(i[t].row,r),s.push(this._refreshTableBodyRow(a.rowIdx,a.row,null,null,null,!0)),o.push(a.rowIdx)}return this._refreshTableFooter().then(function(){return Promise.all(s).then(function(e){return n&&this._getTable().focus(),this._IsCustomElement()?this._animateVisibleRows(e,o,"update").then(function(){return this._finalizeBodyRowRendering(e)}.bind(this)):this._finalizeBodyRowRendering(e)}.bind(this))}.bind(this),function(e){return Promise.reject(e)})}}.bind(this))},I.prototype._getRowsFromEventDetailChange=function(e){var t=e[I._CONST_DATA],i=e[I._CONST_METADATA],l=[];e[I._CONST_KEYS].forEach(function(e){l.push(e)}),t instanceof Array||(t=[t]),i instanceof Array||(i=[i]);for(var o=[],n=t.length,s=0;s<n;s++){var a=this._getRowIdxForRowKey(l[s]);if(void 0!==a){var r={data:t[s],key:l[s],index:a,metadata:i[s]};o.push({row:r,rowIdx:a})}}return o},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),c(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 i=!!this._isTouchDevice()&&this._getRowSelectionMode()===I._OPTION_SELECTION_MODES._MULTIPLE;if(!this._menuContainer)if(this._GetDefaultContextMenu()){if("redwood"===f.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 i=this._createContextMenuItem("sortDsc",this._IsCustomElement());e.appendChild(i)}}else{if(this._isTableSortable()){let t=this._createContextMenuItem("sort",this._IsCustomElement());e.appendChild(t)}if(i){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)):(c(e).ojMenu("refresh"),c(e).on("ojselect",t))}else{var l=e.querySelectorAll("[data-oj-command]");if(l.length>0){var o,n,s;for(n=0;n<l.length;n++)"OJ-OPTION"!==l[n].tagName&&0!==l[n].getElementsByTagName(I.DOM_ELEMENT._A).length||(o=l[n].getAttribute(I._DATA_OJ_COMMAND).split("-"),s=this._createContextMenuItem(o[o.length-1],this._IsCustomElement()),"OJ-OPTION"===l[n].tagName?l[n].innerHTML=s.innerHTML:c(l[n]).replaceWith(s));this._menuContainer=e,c(e).data("oj-ojMenu")&&(this._IsCustomElement()?e.refresh():c(e).ojMenu("refresh")),this._IsCustomElement()?e.addEventListener("ojAction",t):c(e).on("ojselect",t)}}return e},I.prototype._createContextMenuItem=function(e,t){if("sort"===e){var i,l=this._createContextMenuListItem(e,t);return i=this._IsCustomElement()?document.createElement("oj-menu"):document.createElement(I.DOM_ELEMENT._UL),l.appendChild(i),i.appendChild(this._createContextMenuListItem("sortAsc",t)),i.appendChild(this._createContextMenuListItem("sortDsc",t)),l}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"===f.parseJSONFromFontFamily("oj-theme-json").behavior?this._createContextMenuResizeDialog(0):this._createContextMenuResizePopup(0),this._createContextMenuListItem(e,t)}return null},I.prototype._createContextMenuListItem=function(e,t){var i=document.createElement(t?"oj-option":"li");return i.setAttribute(I._DATA_OJ_COMMAND,"oj-table-"+e),i.appendChild(this._createContextMenuLabel(e,t)),i},I.prototype._createContextMenuLabel=function(e,t){var i=null;"sort"===e?i=this.getTranslatedString("labelSort"):"sortAsc"===e?i=this.getTranslatedString("labelSortAsc"):"sortDsc"===e?i=this.getTranslatedString("labelSortDsc"):"enableNonContiguousSelection"===e?i=this.getTranslatedString("labelEnableNonContiguousSelection"):"disableNonContiguousSelection"===e?i=this.getTranslatedString("labelDisableNonContiguousSelection"):"resize"===e&&(i=this.getTranslatedString("labelResizeColumn"));var l=document.createTextNode(i);if(t)return l;var o=document.createElement(I.DOM_ELEMENT._A);return o.setAttribute(I.DOM_ATTR._HREF,"#"),o.appendChild(l),o},I.prototype._createContextMenuResizePopup=function(e){e=Math.round(e);var t,i,l,o,n,s,a,r,_,h=this._getTableContainer(),d=this._getContextMenuResizePopup(),u=this._getTableUID(),S=this.getTranslatedString("labelResizePopupSpinner");function E(){d.setAttribute("id",u+"_resize_popup"),d.setAttribute(I._DATA_OJ_BINDING_PROVIDER,"none"),h.appendChild(d),l=document.createElement(I.DOM_ELEMENT._DIV),o=document.createElement(I.DOM_ELEMENT._DIV),(n=document.createElement(I.DOM_ELEMENT._DIV)).classList.add(I.CSS_CLASSES._TEXT_ALIGN_END),d.appendChild(l),d.appendChild(o),d.appendChild(n),(r=document.createElement("h6")).textContent=S,l.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"),o.appendChild(t),n.appendChild(a),n.appendChild(s),i=function(){t.value=0,d.close()},s.addEventListener("click",i),a.addEventListener("click",this._handleContextMenuResizePopup.bind(this)),t.min=10,t.step=1,t.required=!0,t.value=e,t.displayOptions={messages:["notewindow"]},t.userAssistanceDensity="compact",t.validators=[new O({pattern:I._VALIDATOR_PATTERN,messageDetail:this.getTranslatedString("msgColumnResizeWidthValidation")})],_={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",o.appendChild(t),n.appendChild(a),n.appendChild(s),c(a).ojButton({component:"ojButton",label:this.getTranslatedString("labelResizePopupSubmit")}),c(s).ojButton({component:"ojButton",label:this.getTranslatedString("labelResizePopupCancel")}),i=function(){c(t).ojInputNumber({value:0}),c(d).ojPopup("close")},c(a).on("click",this._handleContextMenuResizePopup.bind(this)),c(s).on("click",i),c(t).ojInputNumber({component:"ojInputNumber",min:10,step:1,required:!0,value:e,displayOptions:{messages:["notewindow"]},userAssistanceDensity:"compact",validators:[new O({pattern:I._VALIDATOR_PATTERN,messageDetail:this.getTranslatedString("msgColumnResizeWidthValidation")})]}),c(d).ojPopup({modality:"modal",position:{my:I._POSITION._START_TOP,at:I._POSITION._START_BOTTOM,collision:"flipfit"}}),this._cacheDomElement(u+"_resize_popup",d)):(t=document.getElementById(u+"_resize_popup_spinner"),c(t).ojInputNumber("option","value",e)),d},I.prototype._createContextMenuResizeDialog=function(e){e=Math.round(e);let t=this._getTableContainer(),i=this._getContextMenuResizeDialog(),l=this._getTableUID();if(this._IsCustomElement())if(null==i){i=document.createElement("oj-dialog"),i.setAttribute("id",l+"_resize_dialog"),i.setAttribute(I._DATA_OJ_BINDING_PROVIDER,"none"),i.setAttribute("dialog-title",this.getTranslatedString("labelResizeColumnDialog")),t.appendChild(i);let o=document.createElement("div");o.setAttribute("slot","body");let n=document.createElement("oj-input-number");n.setAttribute("id",l+"_resize_column_width_input"),n.labelHint=this.getTranslatedString("labelColumnWidth"),n.min=10,n.step=1,n.required=!0,n.value=e,n.displayOptions={messages:["notewindow"]},n.userAssistanceDensity="compact",n.validators=[new O({pattern:I._VALIDATOR_PATTERN,messageDetail:this.getTranslatedString("msgColumnResizeWidthValidation")})],o.appendChild(n);let s=document.createElement("div");s.setAttribute("slot","footer");let a=document.createElement("oj-button");a.setAttribute("id",l+"_resize_dialog_dialogcancel"),a.textContent=this.getTranslatedString("labelResizePopupCancel");let r=document.createElement("oj-button");r.setAttribute("id",l+"_resize_dialog_dialogapply"),r.chroming="callToAction",r.textContent=this.getTranslatedString("labelResizeDialogApply"),s.appendChild(a),s.appendChild(r),"phone"===T.getDeviceRenderMode()&&(i.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")),i.appendChild(o),i.appendChild(s);let _=function(){n.value=0,i.close()};a.addEventListener("click",_),r.addEventListener("click",this._handleContextMenuResizePopup.bind(this)),i.setAttribute("modality","modal"),this._cacheDomElement(l+"_resize_dialog",i)}else{document.getElementById(l+"_resize_column_width_input").value=e}else if(null==i){i=document.createElement(I.DOM_ELEMENT._DIV),i.setAttribute("id",l+"_resize_dialog"),i.setAttribute(I._DATA_OJ_BINDING_PROVIDER,"none"),"phone"===T.getDeviceRenderMode()&&i.classList.add(I.CSS_CLASSES._TABLE_RESIZE_DIALOG_MOBILE_CLASS),t.appendChild(i);let o=document.createElement("div");o.setAttribute("slot","body"),i.appendChild(o);let n=document.createElement(I.DOM_ELEMENT._INPUT);n.setAttribute("id",l+"_resize_column_width_input");let s=document.createElement(I.DOM_ELEMENT._BUTTON);s.setAttribute("id",l+"_resize_dialog_dialogcancel");let a=document.createElement(I.DOM_ELEMENT._BUTTON);a.setAttribute("id",l+"_resize_dialog_dialogapply");let r=document.createElement("div");r.setAttribute("slot","footer"),i.appendChild(r),o.appendChild(n),r.appendChild(a),r.appendChild(s),c(a).ojButton({component:"ojButton",chroming:"callToAction",label:this.getTranslatedString("labelResizeDialogApply")}),c(s).ojButton({component:"ojButton",label:this.getTranslatedString("labelResizePopupCancel")});let _=function(){c(n).ojInputNumber({value:0}),c(i).ojDialog("close")};c(a).on("click",this._handleContextMenuResizePopup.bind(this)),c(s).on("click",_),c(n).ojInputNumber({component:"ojInputNumber",labelHint:this.getTranslatedString("labelColumnWidth"),min:10,step:1,required:!0,value:e,displayOptions:{messages:["notewindow"]},userAssistanceDensity:"compact",validators:[new O({pattern:I._VALIDATOR_PATTERN,messageDetail:this.getTranslatedString("msgColumnResizeWidthValidation")})]}),c(i).ojDialog({dialogTitle:this.getTranslatedString("labelResizeColumnDialog"),modality:"modal"}),"phone"===T.getDeviceRenderMode()&&(i.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")),this._cacheDomElement(l+"_resize_dialog",i)}else{let t=document.getElementById(l+"_resize_column_width_input");c(t).ojInputNumber("option","value",e)}return i},I.prototype._createInitialTable=function(e,t){var i=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(),i},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 i=this._getTableBodyScrollBuffer();null!=i?t.insertBefore(e,i):t.appendChild(e)},I.prototype._createTableBodyCell=function(){return document.createElement(I.DOM_ELEMENT._TD)},I.prototype._createTableBodyDefaultSelector=function(e,t){var i=null;(i=document.createElement(I.DOM_ELEMENT._TD)).classList.add(I.CSS_CLASSES._TABLE_SELECTOR_CELL_CLASS),this._isStickyLayoutEnabled()&&i.classList.add(I.CSS_CLASSES._TABLE_FROZEN_START),this._isVerticalGridEnabled()&&i.classList.add(I.CSS_CLASSES._TABLE_VGRID_LINES_CLASS),i.setAttribute(I.DOM_ATTR._ID,this._getTableUID()+":select:"+e);var l=document.createElement("oj-selector");var o;return l.id=this._getTableUID()+"_table_selector_"+e,this.options.selected.row.has(e)?l.selectedKeys=new y.KeySetImpl([e]):l.selectedKeys=new y.KeySetImpl,l.setAttribute(I._DATA_OJ_BINDING_PROVIDER,"none"),l.classList.add(I.CSS_CLASSES._TABLE_DATA_ROW_SELECTOR_CLASS),l.setAttribute("selection-mode","multiple"),l.rowKey=e,A.isIos()?(o=this.getTranslatedString(I._BUNDLE_KEY._LABEL_SELECT_ROW),l.setAttribute(I.DOM_ATTR._ARIA_LABEL,o)):(o=this._getAccSelectorString(t),l.setAttribute(I.DOM_ATTR._ARIA_LABELLEDBY,o)),l.addEventListener("selectedKeysChanged",this._selectedKeysChangedListener.bind(this)),i.appendChild(l),t.insertBefore(i,t.firstChild),i},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,i){var l=document.createElement(I.DOM_ELEMENT._TD);return this._isGutterStartColumnEnabled()&&(t+=1),this._isGutterEndColumnEnabled()&&(t+=1),this._isDefaultSelectorEnabled()&&(t+=1),l.setAttribute(I.DOM_ATTR._COLSPAN,t),l.classList.add(I.CSS_CLASSES._TABLE_BODY_MESSAGE_CLASS),l.appendChild(document.createTextNode(i)),e.appendChild(l),l},I.prototype._createTableBodyMessageRow=function(e,t){var i=this._getTableBody(),l=document.createElement(I.DOM_ELEMENT._TR);if(l.id=this.createSubId("messageRow"),l.classList.add(I.CSS_CLASSES._TABLE_BODY_MESSAGE_ROW_CLASS),this._isGutterStartColumnEnabled()){let e=this._createTableGutterCell("body","start");l.appendChild(e)}if(this._createTableBodyMessageCell(l,e,t),this._isGutterEndColumnEnabled()){let e=this._createTableGutterCell("body","end");l.appendChild(e)}return this._appendElementToTableBody(l,i),l},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(),i=this._getTableBodyRowTouchSelectionAffordanceTop();if(!i){(i=document.createElement(I.DOM_ELEMENT._DIV)).classList.add(I.CSS_CLASSES._TABLE_DATA_ROW_TOUCH_SELECTION_AFFORDANCE_TOP_CLASS),i.classList.add(I.CSS_CLASSES._TABLE_DATA_ROW_TOUCH_SELECTION_AFFORDANCE_TOUCH_AREA_CLASS);var l=document.createElement(I.DOM_ELEMENT._DIV);l.classList.add(I.CSS_CLASSES._TABLE_DATA_ROW_TOUCH_SELECTION_AFFORDANCE_TOP_ICON_CLASS),l.setAttribute(I.DOM_ATTR._ROLE,"button"),l.setAttribute(I.DOM_ATTR._ARIA_LABEL,this.getTranslatedString("labelAccSelectionAffordanceTop")),i.appendChild(l),t.appendChild(i)}var o=this._getTableBodyRowTouchSelectionAffordanceBottom();if(!o){(o=document.createElement(I.DOM_ELEMENT._DIV)).classList.add(I.CSS_CLASSES._TABLE_DATA_ROW_TOUCH_SELECTION_AFFORDANCE_BOTTOM_CLASS),o.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")),o.appendChild(n),t.appendChild(o)}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),this._getLayoutManager().initializeDefaultScrollBarSize(e),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 i=this._getTableBody();if(null!=i)return i.parentNode.insertBefore(e,i),e;var l=this._getTableFooter();return null!=l?(l.parentNode.insertBefore(e,l),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 i=document.createElement(I.DOM_ELEMENT._TR);t.appendChild(i);var l=this._getTableBody();if(null!=l)l.parentNode.insertBefore(t,l.nextSibling);else{var o=this._getTableHeader();null!=o?o.parentNode.insertBefore(t,o.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),i=document.createElement(I.DOM_ELEMENT._TR);t.appendChild(i);var l=this._getTableBody();if(null!=l)l.parentNode.insertBefore(t,l);else{var o=this._getTableFooter();null!=o?o.parentNode.insertBefore(t,o):e.appendChild(t)}return this._cacheDomElement(I.CSS_CLASSES._TABLE_HEADER_ROW_CLASS,i),this._cacheDomElement(I.CSS_CLASSES._TABLE_HEADER_CLASS,t),t},I.prototype._createTableHeaderColumn=function(e,t){var i=this._getColumnDefs()[e],l=document.createElement(I.DOM_ELEMENT._TH);this._styleTableHeaderColumn(e,l,!0),l.setAttribute("abbr",i.headerText),l.setAttribute(I.DOM_ATTR._TITLE,i.headerText),this._insertTableHeaderColumn(e,l);var o={columnIndex:e,headerContext:{component:this,parentElement:l}};return i.resizable===I._OPTION_ENABLED&&l.setAttribute("data-oj-resizable",I._OPTION_ENABLED),t?i.sortable===I._OPTION_ENABLED&&l.setAttribute("data-oj-sortable",I._OPTION_ENABLED):i.sortable===I._OPTION_ENABLED?(l.setAttribute("data-oj-sortable",I._OPTION_ENABLED),this._columnHeaderSortableIconRenderer(o)):this._columnHeaderDefaultRenderer(o),l},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 i=document.createElement(I.DOM_ELEMENT._DIV);i.classList.add(I.CSS_CLASSES._COLUMN_HEADER_CLASS),t.appendChild(i);var l=document.createElement(I.DOM_ELEMENT._DIV);l.classList.add(I.CSS_CLASSES._COLUMN_HEADER_TEXT_CLASS),l.textContent=e.length+" Items",i.appendChild(l)}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 i=document.createElement(I.DOM_ELEMENT._DIV);i.classList.add(I.CSS_CLASSES._ICON_CLASS),i.classList.add(I.CSS_CLASSES._TABLE_LOADING_ICON_CLASS),i.setAttribute(I.DOM_ATTR._ARIA_LABEL,this.getTranslatedString(I._BUNDLE_KEY._MSG_FETCHING_DATA)),t.appendChild(i)}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,i,l){var o=this._getDragOverIndicatorRow(!0,t,i,l),n=this._getTableBodyRow(e);null!=n?n.parentNode.insertBefore(o,n):(0===this._getTableBodyRows().length&&this._hideNoDataMessage(),this._getTableBody().appendChild(o))},I.prototype._getDragOverIndicatorRow=function(e,t,i,l){for(var o,n=this._getTableBody().children,s=0;s<n.length;s++)if(n[s].classList.contains(I.CSS_CLASSES._TABLE_DATA_ROW_DRAG_INDICATOR_CLASS)){o=n[s];break}if(e&&null==o){(o=document.createElement(I.DOM_ELEMENT._TR)).classList.add(I.CSS_CLASSES._TABLE_DATA_ROW_DRAG_INDICATOR_CLASS),"line"===i?o.classList.add("oj-table-body-row-drop-target"):null!=t&&(c(o).height(parseInt(c(t).height(),10)),l&&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 a=document.createElement(I.DOM_ELEMENT._TD),r=this._getColumnDefs().length;this._isDefaultSelectorEnabled()&&(r+=1),this._isGutterStartColumnEnabled()&&(r+=1),this._isGutterEndColumnEnabled()&&(r+=1),a.setAttribute(I.DOM_ATTR._COLSPAN,r),o.appendChild(a)}return o},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 c(t.parentNode).children("."+I.CSS_CLASSES._TABLE_DATA_CELL_CLASS).index(t);var i=this._getFirstAncestor(e,"."+I.CSS_CLASSES._COLUMN_HEADER_CELL_CLASS,!0);if(null!=i)return c(i.parentNode).children("."+I.CSS_CLASSES._COLUMN_HEADER_CELL_CLASS).index(i);var l=this._getFirstAncestor(e,"."+I.CSS_CLASSES._TABLE_FOOTER_CELL_CLASS,!0);return null!=l?c(l.parentNode).children("."+I.CSS_CLASSES._TABLE_FOOTER_CELL_CLASS).index(l):null},I.prototype._getElementRowIdx=function(e){var t=this._getFirstAncestor(e,"."+I.CSS_CLASSES._TABLE_DATA_ROW_CLASS,!0);if(null!=t){var i=this._getTableBodyRows(),l=c(i).index(t);return l>-1?l:null}return null},I.prototype._getFirstAncestor=function(e,t,i){var l;if(null==e)return null;if(e.matches(t))return i&&!this._isTableOwned(e)?this._getFirstAncestor(e.parentNode,t,i):e;if(l=c(e).parents(t),i){for(var o=0;o<l.length;o++)if(this._isTableOwned(l[o]))return l[o];return null}return l.length>0?l[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,i){var l=this._getTableBodyCells(e,i);return l.length>t?l[t]:null},I.prototype._getTableBodyLogicalCells=function(e,t){var i=this._getTableBodyCells(e,t);return this._getColspanLogicalElements(i)},I.prototype._getTableBodyCells=function(e,t){var i=[];if(t||(t=this._getTableBodyRow(e)),null!=t)for(var l=t.children,o=0;o<l.length;o++)l[o].classList.contains(I.CSS_CLASSES._TABLE_DATA_CELL_CLASS)&&i.push(l[o]);return i},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 i=this._isAddNewRowEnabled()?e+1:e;return this._isStickyLayoutEnabled()||(i+=1),t.children[i]},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 t.length>e?t[e]:null},I.prototype._getTableFooterCells=function(){var e=[],t=this._getTableFooterRow();if(null!=t)for(var i=t.children,l=0;l<i.length;l++)i[l].classList.contains(I.CSS_CLASSES._TABLE_FOOTER_CELL_CLASS)&&e.push(i[l]);return e},I.prototype._getTableFooterLogicalCells=function(){return this._getColspanLogicalElements(this._getTableFooterCells())},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.length>e&&e>=0?t[e]:null},I.prototype._getTableCols=function(){var e=[],t=this._getTableColGroup();if(null!=t)for(var i=t.children,l=0;l<i.length;l++)i[l].classList.contains(I.CSS_CLASSES._TABLE_COL_CLASS)&&e.push(i[l]);return e},I.prototype._getTableCol=function(e){var t=this._getTableCols();return t.length>0?t[e]:null},I.prototype._getTableSelectorCol=function(){var e=this._getTableColGroup();if(null!=e)for(var t=e.children,i=0;i<t.length;i++)if(t[i].classList.contains(I.CSS_CLASSES._TABLE_COL_SELECTOR_CLASS))return t[i];return null},I.prototype._getTableHeaderColumns=function(){var e=[],t=this._getTableHeaderRow();if(null!=t)for(var i=t.children,l=0;l<i.length;l++)i[l].classList.contains(I.CSS_CLASSES._COLUMN_HEADER_CELL_CLASS)&&e.push(i[l]);return e},I.prototype._getTableHeaderLogicalColumns=function(){return this._getColspanLogicalElements(this._getTableHeaderColumns())},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=[],i=null!=e?e:this._getPlaceHolderRow();if(null!=i)for(var l=i.children,o=0;o<l.length;o++)t.push(l[o]);return t},I.prototype._getPlaceHolderRowCell=function(e){var t=this._isDefaultSelectorEnabled()?e+1:e;this._isGutterStartColumnEnabled()&&(t+=1);var i=this._getPlaceHolderRowCells();return i.length>t&&t>=0?i[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=L.ElementUtils.getUniqueId()+"_table"),this._tableUID},I.prototype._hashCode=function(e){if(null==e)return 0;"string"!==c.type(e)&&(e=e.toString());var t=0;if(0===e.length)return t;for(var i=e.length,l=0;l<i;l++){t=(t<<5)-t+e.charCodeAt(l),t&=t}return t},I.prototype._insertTableBodyCell=function(e,t,i,l,o,n){if(this._setTableBodyCellAttributes(e,t,i,l),n)return o.appendChild(l),l;if(0===i)o.insertBefore(l,o.firstChild);else{var s=this._getTableElementsByClassName(o,I.CSS_CLASSES._TABLE_DATA_CELL_CLASS);if(s.length>=i){var a=s[i-1];a.parentNode.insertBefore(l,a.nextSibling)}else o.appendChild(l)}return l},I.prototype._insertTableBodyRow=function(e,t,i){if(null==i){var l=this._getTableBody(),o=this._getTableBodyRow(e);null!=o?l.insertBefore(t,o):this._appendElementToTableBody(t,l)}else i.appendChild(t);this._clearCachedDomRowData()},I.prototype._insertTableFooterCell=function(e,t){var i=this._getTableFooterRow(),l=this._getTableElementsByClassName(i,I.CSS_CLASSES._TABLE_FOOTER_CELL_CLASS);if(this._setTableFooterColumnAttributes(e,t),0===e)i.insertBefore(t,i.firstChild);else if(i.length>=e){var o=l[e-1];o.parentNode.insertBefore(t,o.nextSibling)}else i.appendChild(t);return t},I.prototype._insertTableHeaderColumn=function(e,t){var i=this._getTableHeaderRow(),l=this._getTableHeaderColumns();this._setTableHeaderColumnAttributes(e,t);var o=this._getTableHeaderColumn(e);if(o)c(o).replaceWith(c(t));else if(0!==e&&l.length>=e){var n=l[e-1];n.parentNode.insertBefore(t,n.nextSibling)}else i.appendChild(t)},I.prototype._moveTableBodyRowTouchSelectionAffordanceTop=function(e){var t=this._getTableBodyRowTouchSelectionAffordanceTop();if(null!=t){null!=e?(c(t).data("rowIdx",e),c(t.children[0]).data("rowIdx",e)):e=c(t).data("rowIdx");var i=this._getLayoutManager().getScroller(),l=this._getTableBodyRow(e),o=this._getTouchAffordanceGlassPane();if(null!=l&&null!=o){var n=l.getBoundingClientRect(),s=o.getBoundingClientRect();t.style[I.CSS_PROP._TOP]=n.top-s.top-t.clientHeight/2+I.CSS_VAL._PX,t.style[I.CSS_PROP._LEFT]=i.clientWidth/2+I.CSS_VAL._PX}}},I.prototype._moveTableBodyRowTouchSelectionAffordanceBottom=function(e){var t=this._getTableBodyRowTouchSelectionAffordanceBottom();if(null!=t){null!=e?(c(t).data("rowIdx",e),c(t.children[0]).data("rowIdx",e)):e=c(t).data("rowIdx");var i=this._getLayoutManager().getScroller(),l=this._getTableBodyRow(e),o=this._getTouchAffordanceGlassPane();if(null!=l&&null!=o){var n=l.getBoundingClientRect(),s=o.getBoundingClientRect();t.style[I.CSS_PROP._TOP]=n.top-s.top+n.height-t.clientHeight/2+I.CSS_VAL._PX,t.style[I.CSS_PROP._LEFT]=i.clientWidth/2+I.CSS_VAL._PX}}},I.prototype._moveTableHeaderColumn=function(e,t,i){var l=[],o=[],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 i=e[t];l[t]=this._getTableHeaderColumn(i),o[t]=this._getTableFooterCell(i),this._isAddNewRowEnabled()&&(s[t]=this._getPlaceHolderRowCell(i))}for(let t=0;t<e.length;t++)null!=l[t]&&(r=l[t].getAttribute(I.DOM_ATTR._COLSPAN),null==h||null!=r&&1!==r||(_?(h.parentNode.insertBefore(l[t],h.nextSibling),h=l[t]):h.parentNode.insertBefore(l[t],h))),null!=o[t]&&(r=o[t].getAttribute(I.DOM_ATTR._COLSPAN),null==d||null!=r&&1!==r||(_?(d.parentNode.insertBefore(o[t],d.nextSibling),d=o[t]):d.parentNode.insertBefore(o[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 S=this._getTableBodyRows();for(let i=0;i<S.length;i++){for(let t=0;t<e.length;t++)n[t]=this._getTableBodyCell(i,e[t],null);a=this._getTableBodyCell(i,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]=c.extend({},{},this.options.columns[e]);var T=_?t:t-1,p=[],g=[],f=[],A=e.reverse();if(!this._columnsDestMap){this._columnsDestMap=[];for(let e=0;e<E.length;e++)this._columnsDestMap[e]=e}return A.forEach(function(e){e<=T&&(T-=1),p.unshift(E.splice(e,1)[0]),g.unshift(this._columnDefArray.splice(e,1)[0]),f.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,...f),this._updateSelectionStylingFromColumnReorder(),this.option("columns",E,{_context:{writeback:!0,originalEvent:i,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]"),i=0;i<t.length;i++){var l=c(t[i]).children(I.DOM_ELEMENT._A);if(0===l.length&&"OJ-OPTION"===t[i].tagName&&(l=c(t[i])),l.length>0){var o,n=t[i].getAttribute(I._DATA_OJ_COMMAND).split("-");"sort"===(n=n[n.length-1])?o=this.getTranslatedString("labelSort"):"sortAsc"===n?o=this.getTranslatedString("labelSortAsc"):"sortDsc"===n?o=this.getTranslatedString("labelSortDsc"):"resize"===n&&(o=this.getTranslatedString("labelResizeColumn")),l.contents().filter(function(){return 3===this.nodeType})[0].nodeValue=o}}},I.prototype._removeDragOverIndicatorColumn=function(){this._getLayoutManager().removeDragOverIndicatorColumn()},I.prototype._removeDragOverIndicatorRow=function(){var e=this._getDragOverIndicatorRow(!1);null!=e&&c(e).remove(),0===this._getTableBodyRows().length&&this._showNoDataMessage()},I.prototype._removeTableBodyRow=function(e,t){var i;null!=(i=null!=t?t:this._getTableBodyRow(e))&&(g.subtreeDetached(i),(this._hasCellTemplate||this._hasRowTemplate)&&this._cleanTemplateNodes(i),c(i).remove(),this._clearCachedDomRowData())},I.prototype._removeAllTableBodyRows=function(){var e=this._getTableBodyRows();if(e.length>0){var t=this._getTableBody();if(null!=t){g.subtreeDetached(t);for(var i=0;i<e.length;i++)(this._hasCellTemplate||this._hasRowTemplate)&&this._cleanTemplateNodes(e[i]),c(e[i]).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),i=0;i<t.length;i++)c(t[i]).remove()},I.prototype._setTableBodyCellAttributes=function(e,t,i,l){var o=l.getAttribute(I.DOM_ATTR._ID);if(!(null!=o&&o.length>0)&&null!=this._getColumnDefs()[i]){var n=this._hashCode(t);null==n&&(n=this._hashCode(null!=t?t.toString():e.toString())),o=this._getTableUID()+":"+n+"_"+i,l.setAttribute(I.DOM_ATTR._ID,o)}},I.prototype._setTableBodyRowAttributes=function(e,t){t[I._ROW_ITEM_EXPANDO]=e},I.prototype._setTableHeaderColumnAttributes=function(e,t){var i=this._getColumnDefs()[e];t.getAttribute(I.DOM_ATTR._ID)||t.setAttribute(I.DOM_ATTR._ID,this._getTableUID()+":"+i.id)},I.prototype._setTableFooterColumnAttributes=function(e,t){var i=this._getColumnDefs()[e];t.getAttribute(I.DOM_ATTR._ID)||t.setAttribute(I.DOM_ATTR._ID,this._getTableUID()+":"+i.id+":ftr")},I.prototype._setTableColumnCellsClass=function(e,t,i){var l,o=this._getTableBodyRows();if(o.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,i))&&n.length>0){var a=n.length;for(l=0;l<a;l++)t?n[l].classList.add(i):n[l].classList.remove(i)}}else{var r=o.length;for(l=0;l<r;l++){var _=this._getTableBodyCell(l,e,null);null!=_&&(t?_.classList.add(i):_.classList.remove(i))}}},I.prototype._setTableBodyMessage=function(e){var t=this._getTableBodyMessageCell();c(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 i=this._getTableElementsByTagName(e,I.DOM_ELEMENT._TFOOT);i=i.length>0?i[0]:null;var l=this._getTableElementsByTagName(e,I.DOM_ELEMENT._TBODY);if(l=l.length>0?l[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 o=function(){};this._focusSetupHandlers(o,o)}e.setAttribute(I.DOM_ATTR._ARIA_LABELLEDBY,this._getTableContainer().id),this._styleTableHeader(t),this._styleTableFooter(i),this._styleTableBody(l),this._styleTableContainer(this._getTableContainer())},I.prototype._styleTableBody=function(e){e.classList.add(I.CSS_CLASSES._TABLE_BODY_CLASS),e.setAttribute(g._OJ_CONTAINER_ATTR,this.widgetName),e.setAttribute(C._OJ_CONTEXT_ATTRIBUTE,"")},I.prototype._styleTableBodyCell=function(e,t,i){var l=this._getColumnDefs()[e];!i&&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 o=t.getAttribute(I.DOM_ATTR._STYLE)||{};if(null==l||null==l.style||!i&&o===l.style||A.applyMergedInlineStyles(t,o,l.style),null==l||null==l.className||!i&&c(t).hasClass(l.className)||c(t).addClass(l.className),!this._isVerticalGridEnabled()||!i&&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!=l?l.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 i=this._getColumnDefs()[e],l=null!=i?i.frozenEdge:null;l===I._OPTION_FROZEN_EDGE._START?(t.classList.add(I.CSS_CLASSES._TABLE_FROZEN_START),t.classList.remove(I.CSS_CLASSES._TABLE_FROZEN_END)):l===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._isFixedLayoutEnabled()?e.classList.add(I.CSS_CLASSES._TABLE_FIXED_CLASS):e.classList.remove(I.CSS_CLASSES._TABLE_FIXED_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 i="0";null!=this.options.scrollPolicyOptions.scrollerOffsetTop&&(i=this.options.scrollPolicyOptions.scrollerOffsetTop),this._updateHeaderTop(i)}if(!this._isTableFooterless()){var l="0";null!=this.options.scrollPolicyOptions.scrollerOffsetBottom&&(l=this.options.scrollPolicyOptions.scrollerOffsetBottom),this._updateFooterBottom(l)}}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._getChildElementsByTagName(e,I.DOM_ELEMENT._TR)[0];t.classList.add(I.CSS_CLASSES._TABLE_FOOTER_ROW_CLASS),t.setAttribute(C._OJ_CONTEXT_ATTRIBUTE,"")}},I.prototype._styleTableFooterCell=function(e,t){var i=this._getColumnDefs()[e],l=t.getAttribute(I.DOM_ATTR._STYLE)||{};null!=i.footerStyle&&l!==i.footerStyle&&A.applyMergedInlineStyles(t,l,i.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),i.footerClassName&&c(t).addClass(i.footerClassName),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._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._getChildElementsByTagName(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(C._OJ_CONTEXT_ATTRIBUTE,"")}},I.prototype._styleTableHeaderColumn=function(e,t,i){var l=this._getColumnDefs()[e];!i&&t.classList.contains(I.CSS_CLASSES._COLUMN_HEADER_CELL_CLASS)||t.classList.add(I.CSS_CLASSES._COLUMN_HEADER_CELL_CLASS),l.sortable===I._OPTION_ENABLED&&t.classList.add(I.CSS_CLASSES._TABLE_SORT_CLASS),!0===l.showRequired&&this._isStickyLayoutEnabled()&&t.classList.add(I.CSS_CLASSES._TABLE_SHOW_REQUIRED_CLASS),this._isVerticalGridEnabled()&&(!i&&t.classList.contains(I.CSS_CLASSES._TABLE_VGRID_LINES_CLASS)||t.classList.add(I.CSS_CLASSES._TABLE_VGRID_LINES_CLASS));var o=t.getAttribute(I.DOM_ATTR._STYLE)||{};null==l.headerStyle||!i&&o===l.headerStyle||A.applyMergedInlineStyles(t,o,l.headerStyle),null==l.headerClassName||!i&&c(t).hasClass(l.headerClassName)||c(t).addClass(l.headerClassName),this._isStickyLayoutEnabled()&&(l.frozenEdge===I._OPTION_FROZEN_EDGE._START?(t.classList.add(I.CSS_CLASSES._TABLE_FROZEN_START),t.classList.remove(I.CSS_CLASSES._TABLE_FROZEN_END)):l.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,i=[],l=e.length,o=0;o<l;o++){var n=e[o].getAttribute(I.DOM_ATTR._COLSPAN);if(null!=n){n=parseInt(n,10);for(var s=0;s<n;s++)i[t+s]=e[o];t+=n}else i[t]=e[o],t+=1}return i},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(),i=this._getTableContainer().getBoundingClientRect();e.style[I.CSS_PROP._TOP]=t.top-i.top+I.CSS_VAL._PX,e.style[I.CSS_PROP._BOTTOM]=t.bottom-i.bottom+I.CSS_VAL._PX,this._moveTableBodyRowTouchSelectionAffordanceTop(),this._moveTableBodyRowTouchSelectionAffordanceBottom()}},I.prototype._refreshTableStatusPosition=function(e){var t=this._getTableContainer(),i=t.clientHeight,l=this._getTableStatusMessage(),o=0,n=i,s=this._getTableHeader();if(null!=s){var a=s.offsetHeight;o=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++)l.appendChild(this._createSkeletonRow());this._skeletonFadeInEndListener=function(){l.classList.remove(I.CSS_CLASSES._ANIMATION_SKELETON_FADE_IN_CLASS),l.querySelectorAll(".oj-table-skeleton").forEach(function(e){e.classList.add("oj-animation-skeleton")}),l.removeEventListener("animationend",this._skeletonFadeInEndListener)}.bind(this),l.addEventListener("animationend",this._skeletonFadeInEndListener),l.classList.add(I.CSS_CLASSES._ANIMATION_SKELETON_FADE_IN_CLASS)}else n<=40&&(o=0,n=i);if(l.style[I.CSS_PROP._TOP]=o+I.CSS_VAL._PX,l.style[I.CSS_PROP._HEIGHT]=n+I.CSS_VAL._PX,l.style[I.CSS_PROP._WIDTH]=t.clientWidth+I.CSS_VAL._PX,e&&(l.style[I.CSS_PROP._DISPLAY]=I.CSS_VAL._INLINE,this._statusMessageShown=!0),!this._isSkeletonSupport()){var c=l.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 i={width:t.offsetWidth,height:t.offsetHeight};return e.removeChild(t),i.height>0&&i.width>0&&(this._defaultSkeletonDim=i),i}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 i=this._getTableContainer();if(i)if(this._cacheDomElement(e,null),t){if(this._cacheDomElement(e,this._getChildElementByClassName(i,e)),null==this._getCachedDomElement(e)){var l=this._getTable();this._cacheDomElement(e,this._getChildElementByClassName(l,e))}}else{var o=this._getTableElementsByClassName(i,e);o.length>0&&this._cacheDomElement(e,o[0])}}return this._getCachedDomElement(e)},I.prototype._getChildElementByClassName=function(e,t){if(null!=e.childNodes&&e.childNodes.length>0)for(var i=0;i<e.childNodes.length;i++)if(null!=e.childNodes[i].classList&&e.childNodes[i].classList.contains(t))return e.childNodes[i];return null},I.prototype._getChildElementsByTagName=function(e,t){var i=[];if(null!=e.childNodes&&e.childNodes.length>0)for(var l=0;l<e.childNodes.length;l++){var o=e.childNodes[l].tagName;null!=o&&o.toLowerCase()===t&&i.push(e.childNodes[l])}return i},I.prototype._getTableElementsByClassName=function(e,t,i){var l=e.getElementsByClassName(t);return this._filterTableOwnedElements(l,i?e:null)},I.prototype._getTableElementsByTagName=function(e,t,i){var l=e.getElementsByTagName(t);return this._filterTableOwnedElements(l,i?e:null)},I.prototype._tableQuerySelectorAll=function(e,t,i){var l=e.querySelectorAll(t);return this._filterTableOwnedElements(l,i?e:null)},I.prototype._filterTableOwnedElements=function(e,t){var i,l;if(t){i=t;for(var o=t.getElementsByTagName(I.DOM_ELEMENT._TABLE),n=0;n<o.length;n++)if(o[n].parentNode===t||o[n].parentNode.parentNode===t){l=o[n];break}}else i=this._getTableContainer(),l=this._getTable();return Array.prototype.filter.call(e,function(e){return this._isTableOwned(e,i,l)}.bind(this))},I.prototype._isTableOwned=function(e,t,i){var l=t||this._getTableContainer(),o=t?i:this._getTable();if(l){if(o){var n=this._getFirstAncestor(e,o.tagName);if(n===o)return!0;if(n)return!1}var s=this._getFirstAncestor(e,"."+I.CSS_CLASSES._TABLE_CONTAINER_CLASS);if(s===l)return!0;if(s)return!1;if(!l.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)for(var t=e.children,i=0;i<t.length;i++)if(t[i].classList.contains(I.CSS_CLASSES._TABLE_SELECTOR_CELL_CLASS))return t[i];return null},I.prototype._getTableSelectorColumn=function(){var e=this._getTableHeaderRow();if(null!=e)for(var t=e.children,i=0;i<t.length;i++)if(t[i].classList.contains(I.CSS_CLASSES._COLUMN_HEADER_SELECTOR_CELL_CLASS))return t[i];return null},I.prototype._getTableFooterSelectorCell=function(){var e=this._getTableFooterRow();if(null!=e)for(var t=e.children,i=0;i<t.length;i++)if(t[i].classList.contains(I.CSS_CLASSES._TABLE_FOOTER_SELECTOR_CELL_CLASS))return t[i];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 i=this._getTableGutterCell("header",e);if(null==i&&(i=this._getTableGutterCell("body",e,this._getTableBodyRow(0))),null==i)return 0;t=this._getLayoutManager().getExactOffsetWidth(window.getComputedStyle(i),!0),"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 i,l="header"===e?I.DOM_ELEMENT._TH:I.DOM_ELEMENT._TD,o=document.createElement(l);return i="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,o.classList.add(i),"start"===t?o.classList.add(I.CSS_CLASSES._TABLE_FROZEN_START):o.classList.add(I.CSS_CLASSES._TABLE_FROZEN_END),o},I.prototype._getTableGutterCell=function(e,t,i){let l;if("header"===e?(i=this._getTableHeaderRow(),l="start"===t?I.CSS_CLASSES._TABLE_GUTTER_START_HEADER_CELL:I.CSS_CLASSES._TABLE_GUTTER_END_HEADER_CELL):"footer"===e?(i=this._getTableFooterRow(),l="start"===t?I.CSS_CLASSES._TABLE_GUTTER_START_FOOTER_CELL:I.CSS_CLASSES._TABLE_GUTTER_END_FOOTER_CELL):l="start"===t?I.CSS_CLASSES._TABLE_GUTTER_START_BODY_CELL:I.CSS_CLASSES._TABLE_GUTTER_END_BODY_CELL,null!=i)for(var o=i.children,n=0;n<o.length;n++)if(o[n].classList.contains(l))return o[n];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_FIXED_CLASS:"oj-table-fixed",_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_DISABLE_WRAPPING_CLASS:"oj-table-disable-wrapping",_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_RESIZE_LAST_INDICATOR_CLASS:"oj-table-column-resize-last-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_DATA_ROW_REFRESH_CLASS:"oj-table-body-row-refresh",_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_CLASS:"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(){if(null!=this._openPopups){for(var e=0;e<this._openPopups.length;e++)this._openPopups[e].removeEventListener("focusin",this._handlePopupFocusinListener),this._openPopups[e].removeEventListener("focusout",this._handlePopupFocusoutListener);this._openPopups=null}this._handlePopupFocusinListener=null,this._handlePopupFocusoutListener=null},I.prototype._handlePopupFocusout=function(e){this._handleFocusout(e)},I.prototype._handlePopupFocusin=function(e){this._handleFocusin(e,!0)},I.prototype._handleFocusout=function(e){this._clearFocusoutTimeout();var t=this._getTable();this._clearOpenPopupListeners(),this._openPopups=v.getAllLogicalChildPopups(t),this._handlePopupFocusinListener=this._handlePopupFocusin.bind(this),this._handlePopupFocusoutListener=this._handlePopupFocusout.bind(this);for(var i=0;i<this._openPopups.length;i++)this._openPopups[i].addEventListener("focusin",this._handlePopupFocusinListener),this._openPopups[i].addEventListener("focusout",this._handlePopupFocusoutListener);this._setFocusoutBusyState(),this._focusoutTimeout=setTimeout(function(){this._isTableTab=null,this._tempFFFocus=null,this._clearOpenPopupListeners(),this._focusOutHandler(c(t)),this._focusOutHandler(c(this._getTableContainer())),this._clearKeyboardKeys(),this._unhighlightActive(),this._getLayoutManager().handleFocusout(),this._setTableEditable(!1,!1,0,!0,e),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 i=this._getTable(),l=this._getTableBody(),o=this._getTableContainer();if(this._focusInHandler(c(i)),this._focusInHandler(c(o)),e.target===l&&!this._tempFFFocus&&A.isFirefox())setTimeout(function(){i.focus()},0);else if(c(i).has(e.target).length>0){var n=this._getActiveRowIndex(),s=this._getActiveHeaderIndex(),a=this._getPlaceHolderRow();if(null!=a&&c(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 i=r[t];if(c(i).has(e.target).length>0){let e=t;this._isDefaultSelectorEnabled()&&(e-=1),this._isGutterStartColumnEnabled()&&(e-=1),this._scrollColumnIntoViewport(e,i);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 i=_[t];if(c(i).has(e.target).length>0){this._scrollColumnIntoViewport(t,i);break}}}}else setTimeout(function(){i.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._handleEditCellFocusEvent=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)},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,this._isSkipScrollOnFocus),this._isSkipScrollOnFocus&&(this._isSkipScrollOnFocus=!1)},focusin:function(e){this._handleFocusin(e)},"focus .oj-table-data-cell":function(e){this._handleEditCellFocusEvent(e)},"focus .oj-table-selector-cell":function(e){this._handleEditCellFocusEvent(e)},keydown:function(e){var t=e.key||e.keyCode;this._addKeyboardKey(t);var i=this._getKeyboardKeys()[0];if(!this._isEditPending&&(A.isEscapeKeyEvent(i)||A.isEnterKeyEvent(i)||A.isF2KeyEvent(i)||A.isTabKeyEvent(i)||!this._isNodeEditable(e.target))&&(1===this._getKeyboardKeys().length||2===this._getKeyboardKeys().length&&e[I._KEYBOARD_CODES._MODIFIER_SHIFT])){(this._isKeyPressMatch(A.isArrowUpKeyEvent)||this._isKeyPressMatch(A.isArrowDownKeyEvent)||this._isKeyPressMatch(A.isArrowLeftKeyEvent)||this._isKeyPressMatch(A.isArrowRightKeyEvent)||this._isKeyPressMatch(A.isHomeKeyEvent)||this._isKeyPressMatch(A.isEndKeyEvent))&&(e.preventDefault(),e.stopPropagation());var l=e[I._KEYBOARD_CODES._MODIFIER_SHIFT];this._isKeyPressMatch(A.isArrowUpKeyEvent)||this._isKeyPressMatch(A.isArrowDownKeyEvent)?this._handleKeydownUpDown(e,l&&this._getRowSelectionMode()===I._OPTION_SELECTION_MODES._MULTIPLE):this._isKeyPressMatch(A.isArrowLeftKeyEvent)||this._isKeyPressMatch(A.isArrowRightKeyEvent)?this._handleKeydownLeftRight(e,l&&this._getColumnSelectionMode()===I._OPTION_SELECTION_MODES._MULTIPLE):this._isKeyPressMatch(A.isTabKeyEvent)?this._handleKeydownTab(e):A.isF2KeyEvent(i)?this._handleKeydownF2(e):A.isSpaceBarKeyEvent(i)?this._handleKeydownSpacebar(e):A.isEnterKeyEvent(i)?this._handleKeydownEnter(e):A.isHomeKeyEvent(i)?this._handleKeydownHome(e):A.isEndKeyEvent(i)?this._handleKeydownEnd(e):A.isEscapeKeyEvent(i)&&this._handleKeydownEsc(e)}},keyup:function(e){if(A.isMac()&&this._isKeyPressMatch(A.isMetaKeyEvent))this._clearKeyboardKeys();else{if(1===this._getKeyboardKeys().length){var t=this._getKeyboardKeys()[0];if(this._isNodeEditable(e.target)||null!=this._getTableFooter()&&c(this._getTableFooter()).has(e.target).length>0)return void this._removeKeyboardKey(t);this._removeKeyboardKey(t)}var i=e.key||e.keyCode;this._removeKeyboardKey(i)}},"mouseleave .oj-table-element":function(){this._getLayoutManager().handleMouseLeaveTable()},"mousedown .oj-table-body":function(e){const t=e[I._KEYBOARD_CODES._MODIFIER_SHIFT];if(!(A.isEventClickthroughDisabled(e,this._getTable())||A.isFromDefaultSelector(e)&&!t||this._isEditPending)&&(this._preventShiftSelection(e,I._CONST_ROW),1===e.which&&(this._mouseDownRowIdx=this._getElementRowIdx(e.target),null!=this._mouseDownRowIdx))){var i=this._getTableBodyRow(this._mouseDownRowIdx);null!=i&&i.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),i=this._getElementRowIdx(t);this._isTableOwned(t)&&null==this._getTableDndContext()._dragImage?(t.classList.add(I.MARKER_STYLE_CLASSES._HOVER),this._updateRowStateCellsClass(i,null,{hover:!0}),this._handleMouseEnterSelection(e.target)):(this._updateRowStateCellsClass(i,null,{hover:!1}),e.stopPropagation())}},"mouseleave .oj-table-body-row":function(e){var t=this._getEventTargetElement(e),i=this._getElementRowIdx(t);this._isTableOwned(t)?(t.classList.remove(I.MARKER_STYLE_CLASSES._HOVER),this._updateRowStateCellsClass(i,null,{hover:!1})):(this._updateRowStateCellsClass(i,null,{hover:!0}),e.stopPropagation())},"mousedown .oj-table-element":function(){!A.isIos()&&this._isStickyLayoutEnabled()&&(this._allowSelectionOnClick=!0)},"mousedown .oj-table-column-header-cell":function(e){A.isEventClickthroughDisabled(e,this._getTable())||this._isEditPending||(this._preventShiftSelection(e,I._CONST_HEADER),this._lastSelectedHeaderIdx=null,this._getLayoutManager().handleMouseDownHeaderCell(e))},"mousedown .oj-table-footer-cell":function(e){if(!A.isEventClickthroughDisabled(e,this._getTable())&&!this._isEditPending&&(this._preventShiftSelection(e,I._CONST_FOOTER),1===e.which)){var t=this._getElementColumnIdx(this._getEventTargetElement(e));e[I._KEYBOARD_CODES._MODIFIER_SHIFT]||(this._setActiveFooter(t,e,!0),c(e.target).data(I._FOCUS_CALLED,!0)),A.isFirefox()&&S.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(!A.isEventClickthroughDisabled(e,this._getTable())&&!this._isEditPending){this._lastSelectedRowIdx=null;var t=this._getEventTargetElement(e),i=this._getElementRowIdx(t);e[I._KEYBOARD_CODES._MODIFIER_SHIFT]||(this._setActiveRow(i,e,!0),c(e.target).data(I._FOCUS_CALLED,!0)),A.isFirefox()&&S.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),i=this._getTableHeaderColumn(t);if(i)c(i).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(A.isEventClickthroughDisabled(e,this._getTable())||this._isEditPending||!this._shouldAllowSelection())return;var t=this._getEventTargetElement(e),i=this._getElementRowIdx(t),l=c(e.target).data(I._FOCUS_CALLED),o=e[I._KEYBOARD_CODES._MODIFIER_SHIFT];if(!(l||o&&null!=this._getActiveRowIndex())){var n=this._setActiveRow(i,e,!0);if(c(e.target).data(I._FOCUS_CALLED,!1),!n)return}if(this._getTableBodyRow(i)[I._DATA_OJ_SELECTABLE]!==I._CONST_OFF&&(this._fireActionEvent(i,e,!0),!A.isFromDefaultSelector(e)||o))if(o){var s=this._getActiveRowIndex();if(null!=s&&this._getRowSelectionMode()===I._OPTION_SELECTION_MODES._MULTIPLE)return void this._selectRange(s,i,!0);this._handleSelectionGesture(i,!0,!1)}else if(S.isMetaKeyPressed(e))this._handleSelectionGesture(i,!0,!0),this._lastSelectedRowIdxArray&&this._lastSelectedRowIdxArray.indexOf(i)>-1&&(this._selectionAnchorIdx=i);else if(0===this._getKeyboardKeys().length){var a=this._isTouchDevice();this._handleSelectionGesture(i,!0,a&&(this._isStickyLayoutEnabled()||this._nonContiguousSelection)),this._lastSelectedRowIdxArray&&this._lastSelectedRowIdxArray.indexOf(i)>-1&&(this._selectionAnchorIdx=i);var r=this._getRowSelection(i);!this._isStickyLayoutEnabled()&&a&&r&&!this._nonContiguousSelection&&this._getRowSelectionMode()===I._OPTION_SELECTION_MODES._MULTIPLE&&this._createTableBodyRowTouchSelectionAffordance(i)}},"pointerdown .oj-table-data-cell, .oj-table-gutter-start-body-cell, .oj-table-gutter-end-body-cell":function(e){this._previousPointerTarget=this._currentPointerTarget,this._currentPointerTarget=e.target},"dblclick .oj-table-data-cell, .oj-table-gutter-start-body-cell, .oj-table-gutter-end-body-cell":function(e){if(!(A.isEventClickthroughDisabled(e,this._getTable())||null!=this._currentPointerTarget&&e.target!==this._currentPointerTarget||null!=this._previousPointerTarget&&e.target!==this._previousPointerTarget)){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);const i=this._getElementRowIdx(e.target);this._setEditRow({rowIndex:i},t)}this._currentPointerTarget=null,this._previousPointerTarget=null},"contextmenu .oj-table-data-cell":function(e){if(!A.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(!A.isEventClickthroughDisabled(e,this._getTable())&&!this._isEditPending&&this._shouldAllowSelection()){var t=this._getEventTargetElement(e);if(t.style.cursor!==I.CSS_VAL._COL_RESIZE){var i=this._getElementColumnIdx(t),l=c(e.target).data(I._FOCUS_CALLED),o=e[I._KEYBOARD_CODES._MODIFIER_SHIFT];if(l||o&&null!=this._getActiveHeaderIndex()||(this._setActiveHeader(i,e),c(e.target).data(I._FOCUS_CALLED,!1)),o){var n=this._getActiveHeaderIndex();null!=n&&this._getColumnSelectionMode()===I._OPTION_SELECTION_MODES._MULTIPLE?this._selectRange(n,i,!1):this._handleSelectionGesture(i,!1,!0)}else S.isMetaKeyPressed(e)?this._handleSelectionGesture(i,!1,!0):0===this._getKeyboardKeys().length&&this._handleSelectionGesture(i,!1,this._isTouchDevice())}}},"click .oj-table-footer-cell":function(e){if(!A.isEventClickthroughDisabled(e,this._getTable())&&!this._isEditPending&&this._shouldAllowSelection()){var t=this._getEventTargetElement(e);if(t.style.cursor!==I.CSS_VAL._COL_RESIZE){var i=this._getElementColumnIdx(t),l=c(e.target).data(I._FOCUS_CALLED),o=e[I._KEYBOARD_CODES._MODIFIER_SHIFT];if(l||o&&null!=this._getActiveFooterIndex()||(this._setActiveFooter(i,e),c(e.target).data(I._FOCUS_CALLED,!1)),o){var n=this._getActiveFooterIndex();null!=n&&this._getColumnSelectionMode()===I._OPTION_SELECTION_MODES._MULTIPLE?this._selectRange(n,i,!1):this._handleSelectionGesture(i,!1,!0)}else S.isMetaKeyPressed(e)?this._handleSelectionGesture(i,!1,!0):0===this._getKeyboardKeys().length&&this._handleSelectionGesture(i,!1,!1)}}},"click .oj-table-add-row-placeholder":function(e){A.isEventClickthroughDisabled(e,this._getTable())||this._isEditPending||this._setActiveAddRow()},"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,i){if(i||!this._isTableActionableMode()){var l=this._getTableBodyRow(e);null!=l&&this._trigger("rowAction",t,{context:{key:l[I._ROW_ITEM_EXPANDO].key,data:l[I._ROW_ITEM_EXPANDO].data,metadata:l[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=c.event.special;e.ojtablebeforecurrentrow={handle:function(e){return e.handleObj.handler.apply(this,[e,arguments[1]])}},e.ojtablesort={handle:function(e){return e.handleObj.handler.apply(this,[e,arguments[1]])}}},I.prototype._touchEventDoubleTapFunction=function(e,t){var i=c(e.target);null!=this._lastTapTime&&(new Date).getTime()-this._lastTapTime<250&&this._lastTapTarget[0]===i[0]?(this._lastTapTime=null,this._lastTapTarget=null,t()):(this._lastTapTarget=i,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=c(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=c(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(c(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),i=this._getElementColumnIdx(t);this._setTableEditable(!0,!1,i,!0,e),e.preventDefault()}.bind(this)}.bind(this)(e))},touchcancel:function(){this._mouseDownRowIdx=null,this._getLayoutManager().handleTouchCancel()}}),this._IsCustomElement()){const i=function(e,t){return function(i){const l=i.currentTarget,o=i.target.closest(e);o&&l.contains(o)&&t(c.Event(i,{currentTarget:o}))}},l="touchstart",o="touchmove",n=".oj-table-body-row-touch-selection-affordance-touch-area",s=".oj-table-column-header-cell",a=".oj-table-header";this._delegatedTouchStartTableBodyListener=i(n,e[`${l} ${n}`].bind(this)),this._delegatedTouchStartCellHeaderListener=i(s,e[`${l} ${s}`].bind(this)),this._delegatedTouchMoveTableHeaderListener=i(a,e[`${o} ${a}`].bind(this)),this._delegatedTouchMoveTableBodyListener=i(n,e[`${o} ${n}`].bind(this)),t.addEventListener(l,this._delegatedTouchStartTableBodyListener,{passive:!1}),t.addEventListener(l,this._delegatedTouchStartCellHeaderListener,{passive:!1}),t.addEventListener(o,this._delegatedTouchMoveTableHeaderListener,{passive:!0}),t.addEventListener(o,this._delegatedTouchMoveTableBodyListener,{passive:!1})}else this._on(c(t),e)},I.prototype._setupSelectionChangedListener=function(){this._clearSelectionChangedListener(),!A.isIos()&&this._isStickyLayoutEnabled()&&(this._browserSelectionChangeListener=()=>{const e=document.getSelection();("Range"===e.type||e.anchorNode!==e.focusNode&&e.anchorOffset!==e.focusOffset)&&(this._allowSelectionOnClick=!1)},document.addEventListener("selectionchange",this._browserSelectionChangeListener,{passive:!0}))},I.prototype._clearSelectionChangedListener=function(){null!=this._browserSelectionChangeListener&&(document.removeEventListener("selectionchange",this._browserSelectionChangeListener,{passive:!0}),delete this._browserSelectionChangeListener,delete this._allowSelectionOnClick)},I.prototype._shouldAllowSelection=function(){return!1!==this._allowSelectionOnClick},I.prototype._preventShiftSelection=function(e,t){const i=e[I._KEYBOARD_CODES._MODIFIER_SHIFT],l=t===I._CONST_FOOTER,o=t===I._CONST_HEADER,n=t===I._CONST_ROW,s=this._getRowSelectionMode()===I._OPTION_SELECTION_MODES._MULTIPLE,a=this._getColumnSelectionMode()===I._OPTION_SELECTION_MODES._MULTIPLE,r=n&&this._hasActiveRow()&&s,_=(this._hasActiveHeader()&&o||this._hasActiveFooter()&&l)&&a;i&&(r||_)&&e.preventDefault()},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 i=e.parentElement;return null!=i&&this._getTable().contains(i)?this._getActiveObjectFromActionableChild(i):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(c(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(c(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,i){var l=this._hasFocus()&&!i,o=this._getTableBodyRows().length;if(null!=this._active){if(this._hasActiveHeader()||this._hasActiveFooter()){if(this._getFirstVisibleColumnIndex(this._active.index,!0)!==this._active.index){var n=this._getFirstVisibleColumnIndex(0,!0);this._hasActiveHeader()?this._setActiveHeader(n,e,!l):this._setActiveFooter(n,e,!l)}else l&&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 l&&this._scrollRowIntoViewport(this._active.index),t&&this._updateAccStatusInfo(),void this._highlightActive();var s=this._getCurrentRow(),a=null!=s?s.rowKey:null;if(null!=a){if(o>0){var r=this._getRowIdxForRowKey(a);return null!=r||(r=Math.min(null!=s.rowIndex?s.rowIndex:0,o-1)),void this._setActiveRow(r,e,!0,!l)}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():o>0?this._setActiveRow(0,e,!0,!l):this._setActiveNoData():this._setActiveHeader(this._getFirstVisibleColumnIndex(0,!0),e,!l)},I.prototype._getFirstVisibleColumnIndex=function(e,t){var i;if(this._isTableHeaderless()){if(this._isTableFooterless())return null;i=this._getTableFooterCell.bind(this)}else i=this._getTableHeaderColumn.bind(this);var l,o=this._getColumnDefs().length,n=e;if(t)for(;n<o;){if((l=i(n))&&l.clientWidth>0)return n;n+=1}else{for(;n>-1;){if((l=i(n))&&l.clientWidth>0)return n;n-=1}if(this._isDefaultSelectorEnabled())return-1}return null},I.prototype._getNextVisibleColumnIndex=function(e,t){var i=t?e+1:e-1,l=this._getFirstVisibleColumnIndex(i,t);return null!==l?l: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,i){var l=this._getLayoutManager();if(l.hasRenderedSize()&&(null==i&&(i=this._getTableBodyRow(e)),t||!i.classList.contains(I.CSS_CLASSES._TABLE_STUCK_ROW_CLASS))){var o=c(l.getScroller()),n=l.getVerticalOverflowDiff(i),s=n.top,a=s>=0,r=n.bottom,_=r>=0;a&&_||(_?(Math.abs(s)>Math.abs(r)?o.scrollTop(o.scrollTop()+r):o.scrollTop(o.scrollTop()-s),this._skipScrollUpdate=!1,l.updateCurrentScrollState()):a&&(Math.abs(r)>Math.abs(s)?o.scrollTop(o.scrollTop()-s):o.scrollTop(o.scrollTop()+r),this._skipScrollUpdate=!1,l.updateCurrentScrollState()))}},I.prototype._scrollColumnIntoViewport=function(e,t){var i=this._getLayoutManager();if(i.hasRenderedSize()){var l;if(null!=t)l=t;else if(!(l=-1===e?this._getTableSelectorColumn():this._getTableHeaderColumn(e)))return;var o=i.getScroller(),n=c(o),s=i.getHorizontalOverflowDiff(l,e),a=s.left,r=s.right,_=a>=0,h=r>=0;A.isEdge()&&(a*=-1,r*=-1),_&&h||(_?(Math.abs(r)>Math.abs(a)?n.scrollLeft(n.scrollLeft()-a):n.scrollLeft(n.scrollLeft()+r),this._skipScrollUpdate=!1,i.updateCurrentScrollState()):h&&(Math.abs(a)>Math.abs(r)?n.scrollLeft(n.scrollLeft()+r):n.scrollLeft(n.scrollLeft()-a),this._skipScrollUpdate=!1,i.updateCurrentScrollState()))}},I.prototype._setCurrentRow=function(e,t,i){var l,o,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)),h=this._getDataSourceRowIndexForRowKey(d),n=this._getRowIdxForRowKey(d),s={rowIndex:h,rowKey:d},-1!==n&&(!_||n<-1||null===n||null===d)){if(l=I._LOGGER_MSG._ERR_CURRENTROW_UNAVAILABLE_INDEX_SUMMARY,o=p.applyParameters(I._LOGGER_MSG._ERR_CURRENTROW_UNAVAILABLE_INDEX_DETAIL,{rowIdx:n}),this.option("currentRow",this._currentRow,{_context:{writeback:!0,originalEvent:t,internalSet:!0}}),i)throw new Error(l+"\n"+o);return E.info(l+"\n"+o),I._CURRENT_ROW_STATUS._IGNORED}}var c=this._getActiveRowIndex(),S=!this._compareCurrentRowValues(a,s);if(S){var C,T=this._getAccessibleContext();this._clearAccessibleContext();try{C=this._trigger("beforeCurrentRow",t,{currentRow:s,previousCurrentRow:a})}catch(e){return l=I._LOGGER_MSG._ERR_PRECURRENTROW_ERROR_SUMMARY,o=p.applyParameters(I._LOGGER_MSG._ERR_PRECURRENTROW_ERROR_DETAIL,{error:e.toString()}),E.info(l+"\n"+o),this.option("currentRow",this._currentRow,{_context:{writeback:!0,originalEvent:t,internalSet:!0}}),I._CURRENT_ROW_STATUS._ERROR}if(!C)return this._setAccessibleContext(T),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 g=a.rowKey,f=this._getRowIdxForRowKey(g);if(this._hasEditableRow()&&(null==s||!u.KeyUtils.equals(g,s.rowKey))){var A=this._setTableEditable(!1,!1,0,!0,t);if(A instanceof Promise)return A.then(function(e){if(!1===e)return this._resetCurrentRow(a,f,t),I._CURRENT_ROW_STATUS._IGNORED;var i=this._getTableBodyRow(f);return null!=i&&i.classList.remove(I.CSS_CLASSES._TABLE_DATA_CURRENT_ROW_CLASS),this._currentRow=s,this._updateCurrentRow(r,n,t),null==t&&this._setActiveRow(n,t,!1,!this._hasFocus()),I._CURRENT_ROW_STATUS._UPDATED}.bind(this),function(){return this._resetCurrentRow(a,f,t),I._CURRENT_ROW_STATUS._VETOED}.bind(this));if(!1===A)return this._resetCurrentRow(a,f,t),I._CURRENT_ROW_STATUS._VETOED}var m=this._getTableBodyRow(f);null!=m&&m.classList.remove(I.CSS_CLASSES._TABLE_DATA_CURRENT_ROW_CLASS)}this._currentRow=s,this._updateCurrentRow(r,n,t)}return!S&&c===n||null!=t||this._setActiveRow(n,t,!1,!this._hasFocus()),I._CURRENT_ROW_STATUS._UPDATED},I.prototype._resetCurrentRow=function(e,t,i){this._currentRow=e;var l=document.activeElement,o=this._getAccessibleContext(),n=this._getElementColumnIdx(l);this._queueTask(function(){var e=t,l=n;null!=e&&null!=l?setTimeout(function(){this._setCellFocus(e,l)}.bind(this),0):null!=e&&setTimeout(function(){this._setActiveRow(e,i)}.bind(this),0)}.bind(this)),this._setAccessibleContext(o),this.option("currentRow",this._currentRow,{_context:{writeback:!0,originalEvent:i,internalSet:!0}})},I.prototype._updateCurrentRow=function(e,t,i){if(this.option("currentRow",this._currentRow,{_context:{writeback:!0,originalEvent:i,internalSet:!0}}),!e){var l=this._getTableBodyRow(t);null!=l&&l.classList.add(I.CSS_CLASSES._TABLE_DATA_CURRENT_ROW_CLASS)}},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 i,l=this._getTableBodyRow(e);if(null!=l&&null!=(i=-1===t?this._getTableBodySelectorCell(l):this._getTableBodyCell(e,t,l))){var o=A.getFocusableElementsInNode(i);if(o.length>0){var n=o[0];return n.focus(),"function"==typeof n.select&&n.select(),this._scrollColumnIntoViewport(t,i),this._scrollRowIntoViewport(e),!0}}return!1},I.prototype._setCellInRowFocus=function(e,t,i){if(!this._setCellFocus(e,t)){for(var l=this._getTableBodyCells(e).length,o=0;o<l;o++){var n=o;if(i||(n=l-o-1),this._setCellFocus(e,n))return}this._isDefaultSelectorEnabled()&&this._setCellFocus(e,-1)}},I.prototype._setFocusInHandler=function(e){this._focusInHandler=e},I.prototype._setFocusOutHandler=function(e){this._focusOutHandler=e},I.prototype._setActiveRow=function(e,t,i,l,o,n){if(-1===e)return this._clearActiveRow(t,i);var s=this._getTableBodyRow(e);return null!=s&&this._setActive(s,t,i,l,o,n)},I.prototype._clearActiveRow=function(e,t){return!this._hasActiveRow()||this._setActive(null,e,t)},I.prototype._setActiveHeader=function(e,t,i){if(this._isTableHeaderless()||null==e)return!1;var l=-1===e?this._getTableSelectorColumn():this._getTableHeaderColumn(e);return this._setActive(l,t,!0,i)},I.prototype._setActiveFooter=function(e,t,i){if(this._isTableFooterless()||null==e)return!1;var l=-1===e?this._getTableFooterSelectorCell():this._getTableFooterCell(e);return this._setActive(l,t,!0,i)},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,i,l,o,n){if(null!=e){var s=this._createActiveObject(e);if(this._areActiveObjectsEqual(s,this._active))this._updateActive(!1,s,l,o,n);else{if(s.type===I.ACTIVE_ELEMENT_TYPES._DATA_ROW){if(i){const e=this._setCurrentRow({rowKey:s.key},t);if(e instanceof Promise)return e.then(e=>e===I._CURRENT_ROW_STATUS._UPDATED&&(this._updateActive(!0,s,l,o,n),!0));if(e!==I._CURRENT_ROW_STATUS._UPDATED)return!1}}else if(!this._clearActiveRow(t,i))return!1;this._updateActive(!0,s,l,o,n)}}else if(null!=this._active){if(this._hasActiveRow()&&i){const e=this._setCurrentRow(null,t);if(e instanceof Promise)return e.then(e=>e===I._CURRENT_ROW_STATUS._UPDATED&&(this._unhighlightActive(),this._active=null,!0));if(e!==I._CURRENT_ROW_STATUS._UPDATED)return!1}this._unhighlightActive(),this._active=null}return!0},I.prototype._updateActive=function(e,t,i,l,o){e&&(this._setTableActionableMode(!1,!0),this._unhighlightActive(),this._active=t),i||(t.type===I.ACTIVE_ELEMENT_TYPES._HEADER||t.type===I.ACTIVE_ELEMENT_TYPES._FOOTER?this._scrollColumnIntoViewport(t.index):t.type===I.ACTIVE_ELEMENT_TYPES._DATA_ROW&&this._scrollRowIntoViewport(t.index,o)),this._highlightActive(l),this._active.isActionable||this._updateAccStatusInfo()},I.prototype._setColumnState=function(e,t){var i=this._getTableHeaderColumn(e),l=this._getTableFooterCell(e);this._applyColumnState(i,l,e,t)},I.prototype._applyColumnState=function(e,t,i,l){l?(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(i,l)},I.prototype._updateColumnStateCellsClass=function(e,t){for(var i=this._getSelectedRowIdxs(),l=this._getTableBodyRows(),o=0;o<l.length;o++){var n=this._getTableBodyCell(o,e);if(n)if(t)n.classList.add(I.MARKER_STYLE_CLASSES._SELECTED);else{for(var s=!1,a=i.length,r=0;r<a;r++)if(o===i[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,i){if(t||(t=this._getTableBodyRow(e)),t[I._DATA_OJ_SELECTABLE]!==I._CONST_OFF){var l=this._getTableBodyCells(null,t);if(0!==l.length){if(this._isDefaultSelectorEnabled()){var o=this._getTableBodySelectorCell(t);l.unshift(o)}if(this._isGutterStartColumnEnabled()){let e=this._getTableGutterCell("body","start",t);l.unshift(e)}if(this._isGutterEndColumnEnabled()){let e=this._getTableGutterCell("body","end",t);l.push(e)}var n,s=i.selected,a=i.hover,r=l.length;if(null!=a)for(n=0;n<r;n++)a?l[n].classList.add(I.MARKER_STYLE_CLASSES._HOVER):l[n].classList.remove(I.MARKER_STYLE_CLASSES._HOVER);if(null!=s)for(n=0;n<r;n++)s?l[n].classList.add(I.MARKER_STYLE_CLASSES._SELECTED):l[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 i=this._getLayoutManager(),l=this._getSelectedRowIdxs();null!=l&&l.length>0&&this._isRowSelectionEnabled()&&this._isScrollToKey()?(!isNaN(this._selectionAnchorIdx)&&l.indexOf(this._selectionAnchorIdx)>-1?t.rowKey=this._getRowKeyForRowIdx(this._selectionAnchorIdx):t.rowKey=this._getRowKeyForRowIdx(l[0]),delete t.rowIndex):(this._isExternalScrollEnabled()||(t.y=0,this._scrollTop=0,i.getScroller().scrollTop=0),delete t.rowIndex,delete t.rowKey),e||(this._isExternalScrollEnabled()||(t.x=0,this._scrollLeft=0,i.getScroller().scrollLeft=0),delete t.columnIndex,delete t.columnKey,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(),i=0;i<t.length;i++)if(u.KeyUtils.equals(t[i][I._ROW_ITEM_EXPANDO].key,e))return t[i];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 i=t.getCapability("fetchFirst");if(i&&"immediate"===i.iterationSpeed)return!0}return!1},I.prototype._getScrollToKey=function(){var e=this.options.scrollPosition.rowKey;return e?new Promise(function(t){var i=this._validateKeyForScroll(e,!0);null==i?t(null):i.then(function(i){t(i?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 i=this._getData();return i.containsKeys?new Promise(function(t){var l=new Set;l.add(e),i.containsKeys({keys:l}).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 i=this._validateKeyForScroll(e.rowKey,!1);if(i){var l=this._createComponentBusyState("is validating scroll position rowKey.");i.then(function(t){t||delete e.rowKey,this._clearComponentBusyState(l),this._syncScrollPosition(e,!0)}.bind(this))}return!1}var o=this._getScrollCoordinates(e),n=this._isScrollableX()?o.x:0,s=this._isScrollableY()?o.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,S.setScrollLeft(t,e)},I.prototype._setScrollY=function(e){var t=this._getLayoutManager(),i=t.getScroller();this._skipScrollUpdate=!0;var l=i.scrollTop;return i.scrollTop=-1===e?t.getScrollHeight()-t.getClientHeight():e,l!==i.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,i,l=this._getLayoutManager();if(!l.hasRenderedSize())return{x:0,y:0};var o=e.rowKey;null!=o&&(t=this._getScrollTopByKey(o));var n=e.columnKey;null!=n&&(i=this._getScrollLeftByKey(n));var s=e.rowIndex;isNaN(t)&&!isNaN(s)&&(t=this._getScrollTopByIndex(s));var a=e.columnIndex;isNaN(i)&&!isNaN(a)&&(i=this._getScrollLeftByIndex(a));var r=e.offsetX;!isNaN(i)&&!isNaN(r)&&i>=0&&(i+=r);var _=e.offsetY;if(!isNaN(t)&&!isNaN(_)&&t>=0&&(t+=_),isNaN(i)&&!isNaN(e.x)&&(i=Math.max(0,e.x)),-1!==t){var h=isNaN(t)?e.y:t;if(!isNaN(h)){var d=l.getScrollHeight()-l.getClientHeight();t=h>d?this._hasMoreToFetch()?-1:d:Math.max(0,h)}}return{x:i,y:t}},I.prototype._getCurrentHorizontalScrollPosition=function(e){var t=null==e?this._scrollLeft:e,i={x:null==t?0:t},l=this.option("scrollPosition"),o=Math.abs(l.x-i.x);if(o<1&&null!=l.columnKey&&!isNaN(l.columnIndex))return i.columnKey=l.columnKey,i.columnIndex=l.columnIndex,i.offsetX=l.offsetX+o,i;var n=this._getColumnLocations();if(n&&n.length>0){var s,a=n.length-1;for(s=0;s<n.length-1;s++)if(i.x>=n[s]&&i.x<n[s+1]){a=s;break}i.columnKey=this._getColumnDefs()[a].id,i.columnIndex=a,i.offsetX=i.x-n[a]}return i},I.prototype._getCurrentVerticalScrollPosition=function(e){var t=null==e?this._scrollTop:e,i={y:null==t?0:t},l=this._findClosestElementToTop(i);return null!=l&&(i.rowIndex=l.index,i.rowKey=this._getRowKeyForRowIdx(l.index),i.offsetY=l.offset),i},I.prototype._getCurrentScrollPosition=function(e,t){if(!this._getLayoutManager().hasRenderedSize())return{x:0,y:0};var i=this._getCurrentHorizontalScrollPosition(e),l=this._getCurrentVerticalScrollPosition(t);return Object.keys(l).forEach(function(e){i[e]=l[e]}),i},I.prototype._getColumnLocations=function(){if(null==this._columnOffsets){this._columnOffsets=[];var e=this._getTableHeaderColumns();if(e.length>0){var t=this._getScrollLeftByIndex(0);this._columnOffsets.push(0);for(var i=1;i<e.length;i++)this._columnOffsets.push(this._getScrollLeftByIndex(i)-t)}}return this._columnOffsets},I.prototype._findClosestElementToTop=function(e){var t,i=this._getLayoutManager(),l=this._getTableBodyRows(),o=l.length,n=i.getScrollHeight();if(0===o||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*o);var r=l[t=Math.min(Math.max(t,0),o-1)],_=i.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<o;){var c=_;if(r=l[t],_=i.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:l[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 i;e&&!this._isTableActionableMode()?(i=this._hasActiveHeader()?this._getTableHeaderRow():this._hasActiveFooter()?this._getTableFooterRow():this._getActiveElement(),this._clearAccStatusInfo(),this._applyActionableMode(i,t)):!e&&this._isTableActionableMode()&&(this._active.isActionable=!1,!t&&this._getTable().contains(document.activeElement)&&this._getTable().focus(),null!=(i=this._hasActiveHeader()?this._getTableHeaderRow():this._hasActiveFooter()?this._getTableFooterRow():this._getActiveElement())&&A.disableAllFocusableElements(i,null,!0))},I.prototype._applyActionableMode=function(e,t){var i=this._getActiveElement();if(null!=i){A.enableAllFocusableElements(e);var l=A.getFocusableElementsInNode(i);l.length>0&&(this._active.isActionable=!0,this._focusOutHandler(c(i)),t||l[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,t=0){if(this._isTableEditMode())if(!0!==this._isEditPending){this._delayed_edit=null;var i=e.rowKey,l=e.rowIndex;if(null!=i||l>-1){var o=this._setCurrentRow({rowKey:i,rowIndex:l});o instanceof Promise?o.then(function(i){i===I._CURRENT_ROW_STATUS._UPDATED?this._setEditableHelper(t):i===I._CURRENT_ROW_STATUS._IGNORED&&this._scrollToRowHelper(e,t)}.bind(this)):o===I._CURRENT_ROW_STATUS._UPDATED?this._setEditableHelper(t):o===I._CURRENT_ROW_STATUS._IGNORED&&this._scrollToRowHelper(e,t)}else this._setTableEditable(!1,!1,0,!0,null)}else this._delayed_edit={editRow:e,columnIdx:t}},I.prototype._setEditableHelper=function(e){null==this._delayed_edit&&this._setTableEditable(!0,!1,e,!0,null)},I.prototype._scrollToRowHelper=function(e,t){const i=this._scrollTop;this._syncScrollPosition({rowKey:e.rowKey,rowIndex:e.rowIndex})||(this._editRowCallback=function(){this._scrollTop!==i&&this._setEditRow(e,t)}.bind(this))},I.prototype._getRowToBeEdited=function(e){const t=e.rowKey,i=e.rowIndex;return null!=t?this._findRowElementByKey(t):i>-1?this._getTableBodyRow(i):null},I.prototype._setEditableRowIdx=function(e){this._editableRowKey=this._getRowKeyForRowIdx(e),this._editableRowIdx=e},I.prototype._setAdjacentRowEditable=function(e,t,i,l){var o=this._getEditableRowIdx(),n=this._setTableEditable(!1,!1,e,i,l);n instanceof Promise?n.then(function(){this._queueTask(function(){this._handleAdjacentEditEndSuccessful(e,o,i,l)}.bind(this))}.bind(this),function(){this._queueTask(function(){this._handleEditEndRejected(t,o,!i)}.bind(this))}.bind(this)):!1===n?this._handleEditEndRejected(t,o,!i):this._handleAdjacentEditEndSuccessful(e,o,i,l)},I.prototype._handleAdjacentEditEndSuccessful=function(e,t,i,l){var o=this._getTableBodyRows(),n=this._findAdjacentEditableRow(t,o,i);null!==n?(this._setActiveRow(n,l,!0,!1,!0),this._setTableEditable(!0,!1,e,i,l)):this._getTable().focus()},I.prototype._findAdjacentEditableRow=function(e,t,i){if(i)for(let i=e+1;i<t.length;i++){if(t[i][I._DATA_OJ_EDITABLE]!==I._CONST_OFF)return i}else for(let i=e-1;i>=0;i--){if(t[i][I._DATA_OJ_EDITABLE]!==I._CONST_OFF)return i}return null},I.prototype._handleEditEndRejected=function(e,t,i){this._setCellInRowFocus(t,e,i)},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,i,l,o){if(this._isTableEditMode()&&!this._isEditPending){var n=this._getData()instanceof u.TableDataSourceAdapter,s=this._getCurrentRow();if(null!=s){const u=this._getRowToBeEdited(s);if(u&&u[I._DATA_OJ_EDITABLE]!==I._CONST_OFF){var a,r,_,h,d=s.rowKey,c=this._getRowIdxForRowKey(d),S=[];let u;var E=this._getEditableRowKey();try{if(e&&!this._hasEditableRow())a=this._getTableBodyRow(c),(r=this._getRendererContextObject(a,{row:{key:d,index:s.rowIndex},isCurrentRow:!0})).item=a[I._ROW_ITEM_EXPANDO],(_=this._trigger("beforeRowEdit",o,{accept:function(e){S.push(e)},rowContext:r}))&&(h={rowKey:d,rowIndex:c});else{if(e||!this._hasEditableRow())return;a=this._getTableBodyRow(this._getEditableRowIdx()),d=this._getRowKeyForRowIdx(this._getEditableRowIdx()),(r=this._getRendererContextObject(a,{row:{key:d,index:this._getDataSourceRowIndexForRowKey(d)},isCurrentRow:!0})).item=a[I._ROW_ITEM_EXPANDO],(_=this._trigger("beforeRowEditEnd",o,{accept:function(e){S.push(e)},setUpdatedItem:function(e){u=e},cancelEdit:t,rowContext:r}))&&(h={rowKey:null,rowIndex:-1})}}catch(e){return!1}if(!_)return this._syncActiveElement(),!1;var C=this._getTable();a.contains(document.activeElement)&&(this._isSkipScrollOnFocus=!t,C.focus());var T=function(s){this._removeSkeletonRow(a);var r=this._getRowIdxForRowKey(d);return e&&c!==r&&(h.rowIndex=r),this._fireEditRowChangeEvent(h,o),e?(this._setTableActionableMode(!1,!0),this._setEditableRowIdx(r),C.setAttribute(I.DOM_ATTR._ARIA_LABELLEDBY,""),this._refreshRow(r,!1,!n).then(function(){return this._setCellInRowFocus(r,i,l),this._refreshPrevEditableRow(E,s,!1)}.bind(this))):(this._focusEditCell=null,this._setEditableRowIdx(null),this._refreshPrevEditableRow(E,s,t))}.bind(this);if(0!==S.length)return this._prepareAsyncRowEdit(a),this._queueTask(function(){return this._editPromise=Promise.all(S).then(function(){return null!=u?u.then(function(e){return T(e)},function(){return T()}):T()},function(){return this._removeSkeletonRow(a),e&&null==E&&this._syncActiveElement(),this._clearEditPending(),!1}.bind(this)),this._editPromise}.bind(this));if(null!=u)return this._prepareAsyncRowEdit(a),this._queueTask(function(){return this._editPromise=u.then(function(e){return T(e)},function(){return T()}),this._editPromise}.bind(this));this._fireEditRowChangeEvent(h,o),e?(this._setTableActionableMode(!1,!0),this._setEditableRowIdx(c),C.setAttribute(I.DOM_ATTR._ARIA_LABELLEDBY,""),this._queueTask(function(){var e=this._getRowIdxForRowKey(d);return this._refreshRow(e,!1,!n).then(function(){this._setCellInRowFocus(e,i,l)}.bind(this))}.bind(this))):(this._focusEditCell=null,this._setEditableRowIdx(null)),this._queueTask(function(){return this._refreshPrevEditableRow(E,null,t)}.bind(this))}}}},I.prototype._prepareAsyncRowEdit=function(e){this._isEditPending=!0,this._insertSkeletonRow(e),this._syncScrollPosition()},I.prototype._clearEditPending=function(){this._isEditPending=!1,this._isSkipScrollOnFocus=!1,this._editPromise=null,null!=this._delayed_edit&&this._queueTask(()=>{this._setEditRow(this._delayed_edit.editRow,this._delayed_edit.columnIdx)})},I.prototype._refreshPrevEditableRow=function(e,t,i){const l=this._getRowIdxForRowKey(e);if(null!=l){let e;return null!=t&&t.updatedItem&&(e=t.updatedItem),this._refreshRow(l,!1,i,e).then(()=>{this._clearEditPending()})}return this._clearEditPending(),Promise.resolve()},I.prototype._handleAddRow=function(e,t){let i=[];this._trigger("beforeRowAddEnd",t,{accept:function(e){i.push(e)},cancelAdd:e})&&(this._setTableActionableMode(!1),0!==i.length?(this._insertSkeletonRow(null,-1),this._getTable().focus(),this._queueTask(function(){return Promise.all(i).then(function(){return this._removeSkeletonRow(null,-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(null,-1),this._setActiveAddRow(),this._setTableActionableMode(!0)}.bind(this))}.bind(this))):this._queueTask(function(){return 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)))},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,i=!1,l=Object.keys(A.KEYBOARD_KEYS);for(t=0;t<l.length;t++){var o=l[t];if(A.KEYBOARD_KEYS[o]===e){i=!0;break}}if(i){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(),i=0;i<t.length;i++)if(e(t[i]))return!0;return!1},I.prototype._removeKeyboardKey=function(e){for(var t=this._getKeyboardKeys(),i=t.length,l=0;l<i;l++)t[l]===e&&t.splice(l,1)},I.prototype._clearKeyboardKeys=function(){this._keyboardKeys=[]},I.prototype._handleKeydownLeftRight=function(e,t){if(!this._isTableActionableMode()&&!this._hasEditableRow()){var i,l,o="rtl"===this._GetReadingDirection(),n=this._isKeyPressMatch(A.isArrowLeftKeyEvent),s=o&&n||!o&&!n,a=this._getActiveHeaderIndex();if(null!=a)return i=!t||this._isNavigate||null==this._lastSelectedHeaderIdx?a:this._lastSelectedHeaderIdx,l=this._getNextVisibleColumnIndex(i,s),void(t?(this._isNavigate=!1,this._selectRange(a,Math.max(0,l),!1),this._scrollColumnIntoViewport(l)):(this._isNavigate=!0,l!==a&&this._setActiveHeader(l,e)));var r=this._getActiveFooterIndex();if(null!=r)return i=!t||this._isNavigate||null==this._lastSelectedFooterIdx?r:this._lastSelectedFooterIdx,l=this._getNextVisibleColumnIndex(i,s),void(t?(this._isNavigate=!1,this._selectRange(r,Math.max(0,l),!1),this._scrollColumnIntoViewport(l)):(this._isNavigate=!0,l!==r&&this._setActiveFooter(l,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 i=this._isKeyPressMatch(A.isArrowUpKeyEvent),l=this._getFirstVisibleColumnIndex(0,!0);if(S.isMetaKeyPressed(e))i&&null==this._getActiveHeaderIndex()?this._setActiveHeader(l,e):i||null!=this._getActiveFooterIndex()||this._setActiveFooter(l,e);else{var o=this._getActiveRowIndex();if(null==o)i||null==this._getActiveHeaderIndex()?i&&null!=this._getActiveFooterIndex()?this._getTableBodyRows().length>0?this._setActiveRow(this._getTableBodyRows().length-1,e,!0,null,null,!0):this._setActiveNoData():this._hasActiveAddRow()?i?this._setActiveHeader(l,e):this._getTableBodyRows().length>0?this._setActiveRow(0,e,!0,null,null,!0):this._setActiveNoData():this._hasActiveNoData()&&(i?this._isAddNewRowEnabled()?this._setActiveAddRow():this._setActiveHeader(l,e):this._setActiveFooter(l,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?o:this._lastSelectedRowIdx,s=i?n>0?n-1:n:n<a-1?n+1:n,t)this._isNavigate=!1,this._selectRange(o,s,!0),this._scrollRowIntoViewport(s,!0);else if(this._isNavigate=!0,s!==o){if(!this._setActiveRow(s,e,!0,null,null,!0))return;this._getTable().focus()}else 0===s&&i?this._isAddNewRowEnabled()?this._setActiveAddRow():this._setActiveHeader(l,e):s!==a-1||i||this._setActiveFooter(l,e)}}}},I.prototype._handleKeydownTab=function(e){this._isTableTab=!0;var t,i=this._getActiveRowIndex(),l=this._getTableBody(),o=document.activeElement;if(null!=i&&this._getEditableRowIdx()===i){var n=this._getTableBodyRow(i),s=A.getFocusableElementsInNode(n),a=s.length,r=c(s).index(o),_=Math.max(this._getColumnDefs().length-1,0);r!==a-1||e[I._KEYBOARD_CODES._MODIFIER_SHIFT]?0===r&&e[I._KEYBOARD_CODES._MODIFIER_SHIFT]&&(this._setAdjacentRowEditable(_,0,!1,e),e.preventDefault(),e.stopPropagation()):(this._setAdjacentRowEditable(-1,_,!0,e),e.preventDefault(),e.stopPropagation())}else if(this._isTableActionableMode()){var h,d;if(h=this._hasActiveHeader()?this._getTableHeaderRow():this._hasActiveFooter()?this._getTableFooterRow():this._getActiveElement(),(t=A.getFocusableElementsInNode(h)).length>1){if(e[I._KEYBOARD_CODES._MODIFIER_SHIFT]){if(o===t[0])c(t[t.length-1]).focus(),e.preventDefault(),e.stopPropagation();else for(d=0;d<t.length;d++)if(o===t[d]){t[d-1].focus(),e.preventDefault(),e.stopPropagation();break}}else if(o===t[t.length-1])c(t[0]).focus(),e.preventDefault(),e.stopPropagation();else for(d=0;d<t.length;d++)if(o===t[d]){t[d+1].focus(),e.preventDefault(),e.stopPropagation();break}}else e.preventDefault(),e.stopPropagation()}else{!A.isFirefox()||this._isStickyLayoutEnabled()||e[I._KEYBOARD_CODES._MODIFIER_SHIFT]||(this._tempFFFocus=!0,l.focus());var u=e.key||e.keyCode;this._removeKeyboardKey(u)}},I.prototype._handleKeydownEnter=function(e){if(!(this._isTableActionableMode()&&!this._hasActiveAddRow()||A.isEventClickthroughDisabled(e,this._getTable()))){var t=this._getActiveHeaderIndex();if(null!=t){if(-1!==t&&this._getColumnDefs()[t].sortable===I._OPTION_ENABLED){var i=this._getTableHeaderColumn(t),l=c(i).data("sorted");null==l||l===I._COLUMN_SORT_ORDER._DESCENDING?this._handleSortTableHeaderColumn(t,!0,e):this._handleSortTableHeaderColumn(t,!1,e)}}else if(null==this._getActiveFooterIndex()){var o=this._getCurrentRow(),n=null!=(o=o||{}).rowIndex?o.rowIndex:-1;if(n>=0)if(this._isTableEditMode()){if(!this._hasEditableRow())return void this._setTableEditable(!0,!1,-1,!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 i=this._getActiveHeaderIndex();if(null==i){var l=this._getActiveFooterIndex();null!=l&&this._handleSelectionGesture(l,!1,!0)}else-1!==i?this._handleSelectionGesture(i,!1,!0):this._isSelectAllControlVisible()&&this._handleSelectAllGesture()}else this._handleSelectionGesture(t,!0,!0)}},I.prototype._handleKeydownF2=function(e){e.preventDefault(),e.stopPropagation(),this._isStickyLayoutEnabled()?this._isTableEditMode()&&this._hasEditableRow()||this._toggleTableActionableMode():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 i=this._getTableBodyRows().length;this._setActiveRow(i-1,e,!0)}},I.prototype._columnHeaderDefaultRenderer=function(e,t){var i=e.headerContext.parentElement,l=document.createElement(I.DOM_ELEMENT._DIV);l.classList.add(I.CSS_CLASSES._COLUMN_HEADER_CLASS),c(i).empty(),i.appendChild(l);var o=document.createElement(I.DOM_ELEMENT._DIV);o.classList.add(I.CSS_CLASSES._COLUMN_HEADER_TEXT_CLASS),l.insertBefore(o,l.firstChild),null!=t?t(c(o)):this._columnHeaderDefaultTextRenderer(o,e)},I.prototype._columnHeaderSortableIconRenderer=function(e,t){var i=e.headerContext.parentElement,l=document.createElement(I.DOM_ELEMENT._DIV);l.classList.add(I.CSS_CLASSES._COLUMN_HEADER_CLASS),c(i).empty(),i.appendChild(l);var o=document.createElement(I.DOM_ELEMENT._DIV);o.classList.add(I.CSS_CLASSES._TABLE_SORT_ICON_CONTAINER_CLASS),o.setAttribute(I.DOM_ATTR._TITLE,this.getTranslatedString("labelSortAsc")),o.setAttribute(I.DOM_ATTR._ARIA_HIDDEN,"true"),this._AddHoverable(c(o)),l.appendChild(o);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(c(n)),o.appendChild(n);var s=document.createElement(I.DOM_ELEMENT._DIV);s.classList.add(I.CSS_CLASSES._COLUMN_HEADER_TEXT_CLASS),l.insertBefore(s,l.firstChild),null!=t?t(c(s)):this._columnHeaderDefaultTextRenderer(s,e)},I.prototype._columnHeaderDefaultTextRenderer=function(e,t){var i=t.columnIndex,l=this._getColumnDefs()[i],o=null==l.headerText?"":l.headerText;if(e.appendChild(document.createTextNode(o)),!0===l.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,i){for(var l=this._getColumnDefs().length,o=0;o<l;o++)this._tableBodyCellDefaultRenderer(e,o,t,i)},I.prototype._tableBodyCellDefaultRenderer=function(e,t,i,l){var o=l.rowContext.parentElement,n=this._getColumnDefs()[t],s=this._createTableBodyCell();this._styleTableBodyCell(t,s,!0),this._insertTableBodyCell(e,i.key,t,s,o,!0);var a=null;null!=n.field&&(a=this._getObjectPath(i.data,n.field));var r=this._getColumnRenderer(t,"cell"),_=this._getSlotTemplate(n.template);if(null==_&&this._isDefaultCellTemplateSlotValid()&&(_=this._getSlotTemplate("cellTemplate")),r||_){var h=this._getRendererContextObject(s,{row:i});h.rowEditable=o[I._DATA_OJ_EDITABLE];var d={cellContext:h,columnIndex:t,data:a,row:i.data,componentElement:h.componentElement,parentElement:h.parentElement};if(r)A.applyRendererContent(s,r(d))||(s=c(o).children()[t],this._setTableBodyCellAttributes(e,i.key,t,s),this._styleTableBodyCell(t,s,!1));else{var u=this._getRootElement(),S=this._getTemplateEngine();if(null!=S){var E=this._getTableBody(),C=this._getCellSlotTemplateContextObject(d),T=S.execute(u,_,C,this.options.as,E,new Map([[R.FormVariantContext,"embedded"]]));T instanceof Array||(T=[T]),T.map(function(e){s.appendChild(e)}),this._hasCellTemplate=!0}}}else{var p=null==(a=this._getVal(a))?"":a;if(s.appendChild(document.createTextNode(p)),A.isIos()){s.setAttribute(I.DOM_ATTR._ROLE,"text");var g=this._getVoiceOverCellLabelledby(s,t);s.setAttribute(I.DOM_ATTR._ARIA_LABELLEDBY,g)}}},I.prototype._getRendererContextObject=function(e,t){var i={component:g.__GetWidgetConstructor(this.element,"ojTable")},l=this.options.data;if(this._isPagingModelTableDataSource()&&(l=l.getWrappedDataSource()),i.datasource=l,i.parentElement=e,null!=t.row){var o=t.row,n=o.key;if(i.status=this._getRendererStatusObject(o),this._hasEditableRow()){var s=this._getEditableRowKey();u.Object.compareValues(n,s)?i.mode="edit":i.mode="navigation"}else i.mode="navigation";this._copyMetadata(i,o)}return this._FixRendererContext(i)},I.prototype._getRendererStatusObject=function(e){return{rowIndex:e.index,rowKey:e.key,currentRow:c.extend({},this._getCurrentRow())}},I.prototype._getCellSlotTemplateContextObject=function(e,t){var i=this._getSlotTemplateContextObject(),l=e.columnIndex;if(!t){var o=e.cellContext.status.rowIndex,n=e.cellContext.status.rowKey;i[I._CONST_DATA]=e.data,i.row=e.row,i[I._CONST_INDEX]=o,i.mode=e.cellContext.mode,i[I._CONST_KEY]=n;const t=e.parentElement.parentElement;i.item=t[I._ROW_ITEM_EXPANDO],i.rowEditable=this._invokeRowEditableCallback(t[I._ROW_ITEM_EXPANDO])}i.columnIndex=l,i.columnKey=this._getColumnKeyForColumnIdx(e.columnIndex);var s=this.options.data;return this._isPagingModelTableDataSource()&&(s=s.getWrappedDataSource()),i.datasource=s,i},I.prototype._getRowSlotTemplateContextObject=function(e,t){var i=this._getSlotTemplateContextObject();t||(i[I._CONST_DATA]=e.data,i[I._CONST_INDEX]=e.rowContext.status.rowIndex,i[I._CONST_KEY]=e.rowContext.status.rowKey,i.mode=e.rowContext.mode,i.item=e.parentElement[I._ROW_ITEM_EXPANDO],i.editable=this._invokeRowEditableCallback(e.parentElement[I._ROW_ITEM_EXPANDO]),i.rowContext=e.rowContext);var l=this.options.data;return this._isPagingModelTableDataSource()&&(l=l.getWrappedDataSource()),i.datasource=l,i},I.prototype._getHeaderSlotTemplateContextObject=function(e,t){var i=this._getSlotTemplateContextObject();return i[I._CONST_DATA]=e,i.columnIndex=t,i.headerText=e,i.columnKey=this._getColumnKeyForColumnIdx(t),i},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 i=t.metadata;if(i)for(var l=Object.keys(i),o=0;o<l.length;o++){var n=l[o];e[n]=i[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 i=e,l=!1;if(t.split(".").map(function(e){if(null!=i&&-1!==e.indexOf("[")&&-1!==e.indexOf("]")){var t=e.substr(0,e.indexOf("[")),o=parseInt(e.substr(e.indexOf("[")+1,e.indexOf("]")-e.indexOf("[")-1),10);i=i[t][o],l=!0}else null!==i&&void 0!==i[e]&&(i=i[e],l=!0)}),l)return i}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 i=this.option("selected"),l=i.row;l&&(e[I._CONST_KEYS].forEach(function(e){null!=t&&t[I._CONST_KEYS].has(e)||(l.isAddAll()?l.has(e)||(l=l.add([e])):l=l.delete([e]))}),i.row!==l&&(i={row:l,column:i.column},this._isSelectionRequiredSatisfied(i)?this._setSelected(i):this._selectFirstRowOrColumn()))},I.prototype._updateSelectionStateFromEventDetailChange=function(e){var t=this.option("firstSelectedRow");if(null!=t){var i=[];e[I._CONST_KEYS].forEach(function(e){i.push(e)});for(var l=0;l<i.length;l++){var o=i[l],n=e[I._CONST_DATA][l];if(u.KeyUtils.equals(o,t.key)&&this.option("firstSelectedRow",{key:o,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(o,a.key)){this._validatedSelectedRowKeyData[s]=n;break}}}}},I.prototype._updateSelectionStylingFromColumnReorder=function(){var e=this.option("selected").column;this._getTableHeaderColumns().forEach(function(t,i){e.has(this._getColumnKeyForColumnIdx(i))?this._setColumnState(i,!0):this._setColumnState(i,!1)},this)},I.prototype._validateInitialSelectionState=function(e){var t,i,l=this.option("selection"),o=this.option("selected"),n=o.row,s=o.column;if(this._validatedSelectedRowKeyData=null,(this._selectionSet||!e&&null!=l&&0!==l.length&&n===n.clear()&&s===s.clear())&&(o=this._getSelectedEquivalent(l),t=!0),this._isSelectionRequired())if((i=this._validateSelected(o)).isLocal)this._enforceSelectionRequired(o,i.result,t);else{var a=this._createComponentBusyState("is validating selection-required keys.");i.result.then(function(e){this._enforceSelectionRequired(o,e,t),this._clearComponentBusyState(a)}.bind(this))}else t&&this._syncRangeSelection(),this._setSelected(o,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,i=e.column;return t.isAddAll()||t.values().size>0||i.isAddAll()||i.values().size>0},I.prototype._isSelectionRequiredSatisfied=function(e){return!this._isSelectionRequired()||this._hasSelected(e)},I.prototype._enforceSelectionRequired=function(e,t,i){i?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,i=t;if(!t.isAddAll()){var l=this._getColumnKeys(),o=[];t.values().forEach(function(e){-1===l.indexOf(e)&&o.push(e)}),o.length>0&&(i=i.delete(o))}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:i}}.bind(this))};s=s.delete(r)}}return{isLocal:!0,result:{row:s,column:i}}},I.prototype._fetchValidRowKeyData=function(e){var t=this._getData();if(t&&t.getCapability){var i=t.getCapability("fetchByKeys");if(i&&"lookup"===i.implementation)return new Promise(function(i){t.fetchByKeys({keys:new Set(e),scope:"global"}).then(function(e){var t=[];e.results.forEach(function(e,i){t.push({key:i,data:e.data})}),i(t)},function(){i([])})})}return null},I.prototype._syncRangeSelection=function(e){if(void 0===e&&(e=this.option("selection")),null!=e)for(var t=e.length,i=0;i<t;i++){var l,o,n,s,a=e[i];null!=a.startKey&&null!=a.startKey[I._CONST_ROW]?(l=a.startKey[I._CONST_ROW],o=this._getDataSourceRowIndexForRowKey(l),a.startIndex={},a.startIndex[I._CONST_ROW]=o):null!=a.startIndex&&null!=a.startIndex[I._CONST_ROW]&&(o=a.startIndex[I._CONST_ROW],null!=(l=this._getRowKeyForDataSourceRowIndex(o))&&(a.startKey={},a.startKey[I._CONST_ROW]=l)),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,i){var l,o,n,s,a,r,_=!0;if(null!=e.startKey&&null!=e.startKey[I._CONST_ROW]?(a=e.startKey[I._CONST_ROW],l=this._getDataSourceRowIndexForRowKey(a),isNaN(l)&&(_=null)):null!=e.startIndex&&null!=e.startIndex[I._CONST_ROW]&&(l=e.startIndex[I._CONST_ROW]),null!=e.endKey&&null!=e.endKey[I._CONST_ROW])r=e.endKey[I._CONST_ROW],null===(o=this._getDataSourceRowIndexForRowKey(r))&&this._isLoadMoreOnScroll()&&(o=this._getDataSourceLastFetchedRowIndex(),_=null);else if(null!=e.endIndex&&null!=e.endIndex[I._CONST_ROW]){o=e.endIndex[I._CONST_ROW];var h=this._getDataSourceLastFetchedRowIndex();this._isLoadMoreOnScroll()&&o>h&&(o=h,_=null)}if(void 0===l&&void 0===o)_=!1;else if(null!=l&&null!=o&&l<=o){a=this._getRowKeyForDataSourceRowIndex(l),r=this._getRowKeyForDataSourceRowIndex(o),n=this._getRowIdxForRowKey(a),s=this._getRowIdxForRowKey(r);for(var d=n;d<=s;d++){var u=this._getRowKeyForRowIdx(d);t=t.add([u])}i=i.clear()}else E.warn("Error: Cannot resolve row range in selection - \n start row key: "+a+"\n end row key: "+r+"\n start row index: "+l+"\n end row index: "+o),null!=a&&null!=r&&(t=(t=t.add([a])).add([r]),i=i.clear());return{status:_,rowKeySet:t,columnKeySet:i}},I.prototype._getDataSourceLastFetchedRowIndex=function(){var e=this._getTableBodyRows();if(e.length>0){var t=this._getData(),i=0;return this._isPagingModelDataProvider()&&(i=t.getStartItemIndex()),e.length+i-1}return 0},I.prototype._processColumnRangeSelection=function(e,t,i){var l,o,n,s,a=!0;if(null!=e.startKey&&null!=e.startKey[I._CONST_COLUMN]?(l=e.startKey[I._CONST_COLUMN],n=this._getColumnIdxForColumnKey(l)):null!=e.startIndex&&null!=e.startIndex[I._CONST_COLUMN]&&(n=e.startIndex[I._CONST_COLUMN]),null!=e.endKey&&null!=e.endKey[I._CONST_COLUMN]?(o=e.endKey[I._CONST_COLUMN],s=this._getColumnIdxForColumnKey(o)):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);i=i.add([_])}t=t.clear()}else E.error("Error: Cannot resolve column range in selection - \n start column key: "+l+"\n end column key: "+o+"\n start column index: "+n+"\n end column index: "+s);return{status:a,rowKeySet:t,columnKeySet:i}},I.prototype._invalidateRangeSelection=function(){var e=this.option("selection");if(null!=e)for(var t=0;t<e.length;t++){var i,l,o=e[t];if(null!=o.startKey&&(i=o.startKey[I._CONST_ROW]),null!=o.endKey&&(l=o.endKey[I._CONST_ROW]),i!==l||void 0===i){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 i;null==e.row&&(e.row=new y.KeySetImpl),null==e.column&&(e.column=new y.KeySetImpl);var l=this.option("selected");if(this._selectionSet?A.areKeySetsEqual(l.row,e.row)&&A.areKeySetsEqual(l.column,e.column)||(i=!0):l.row===e.row&&l.column===e.column||(i=!0),i&&(this.option("selected",e,{_context:{writeback:!0,internalSet:!0}}),this._isSelectionRequired()&&this._validatedSelectedRowKeyData))for(var o=this._validatedSelectedRowKeyData.length-1;o>=0;o--){var n=this._validatedSelectedRowKeyData[o];e.row.has(n.key)||this._validatedSelectedRowKeyData.splice(o,1)}this._isDefaultSelectorEnabled()&&this._updateSelectors(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 i=null;if(null!=e){var l=this.getDataForVisibleRow(this._getRowIdxForRowKey(e));if(null!=l)i=l[I._CONST_DATA];else if(this._validatedSelectedRowKeyData)for(var o=0;o<this._validatedSelectedRowKeyData.length;o++){var n=this._validatedSelectedRowKeyData[o];if(u.KeyUtils.equals(e,n.key)){i=n.data;break}}}this.option("firstSelectedRow",{key:e,data:i},{_context:{writeback:!0,internalSet:!0}})}},I.prototype._getSelectedEquivalent=function(e){var t;if(null!=e){for(var i=(t={row:new y.KeySetImpl,column:new y.KeySetImpl}).row,l=t.column,o=e.length,n=0;n<o;n++){var s=e[n];if(null==s.startKey&&null==s[I._CONST_STARTINDEX]||null==s.endKey&&null==s[I._CONST_ENDINDEX])E.error("Error: Invalid range object in selection. Both start and end objects must be specified");else{var a=this._processRowRangeSelection(s,i,l);i=a.rowKeySet,l=a.columnKeySet,!1===a.status&&(!1===(a=this._processColumnRangeSelection(s,i,l)).status&&E.error("Error: Invalid range object"),i=a.rowKeySet,l=a.columnKeySet)}}t.row===i&&t.column===l||(t={row:i,column:l})}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 i={startKey:{row:e},endKey:{row:e}},l=this._getDataSourceRowIndexForRowKey(e);!isNaN(l)&&l>=0&&(i.startIndex={row:l},i.endIndex={row:l}),t.push(i)},this),t.inverted=e.isAddAll(),t},I.prototype._getColumnSelectionFromKeySet=function(e){var t=[];return(e.isAddAll()?e.deletedValues():e.values()).forEach(function(e){var i={startKey:{column:e},endKey:{column:e}},l=this._getColumnIdxForColumnKey(e);l>=0&&(i.startIndex={column:l},i.endIndex={column:l}),t.push(i)},this),t.inverted=e.isAddAll(),t},I.prototype._applySelected=function(e){var t=e.row,i=e.column;if(this._getSelectedRowIdxs().forEach(function(e){var i=this._getTableBodyRow(e);const l=i[I._DATA_OJ_SELECTABLE]!==I._CONST_OFF;!t.has(this._getRowKey(i))&&l&&(this._applyRowSelection(e,i,!1),this._setLastRowSelection(e,!1))},this),this._isRowSelectionEnabled())if(t.isAddAll()){let e;this._getTableBodyRows().forEach(function(i,l){const o=i[I._DATA_OJ_SELECTABLE]!==I._CONST_OFF,n=this._getRowKey(i);t.has(n)&&o&&(this._applyRowSelection(l,i,!0),e=l)},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){i.has(this._getColumnKeyForColumnIdx(e))||this._applyColumnSelection(e,!1)},this),this._isColumnSelectionEnabled())if(i.isAddAll()){var l=this._getTableHeaderColumns();l.forEach(function(e,t){i.has(this._getColumnKeyForColumnIdx(t))&&this._applyColumnSelection(t,!0)},this);var o=l.length-1,n=this._getColumnKeyForColumnIdx(o);this._setLastHeaderColumnSelection(o,i.has(n))}else i.values().forEach(function(e){var t=this._getColumnIdxForColumnKey(e);null!=t&&t>=0&&this._applyColumnSelection(t,!0)},this)},I.prototype._applyRowSelection=function(e,t,i){if(t.classList.contains(I.MARKER_STYLE_CLASSES._SELECTED)!==i){i?t.classList.add(I.MARKER_STYLE_CLASSES._SELECTED):t.classList.remove(I.MARKER_STYLE_CLASSES._SELECTED);var l=this.options.dnd.drag;l&&("rows"===l||l.rows)&&this._getTableDndContext().setElementDraggable(t,i)}i?this._updateRowStateCellsClass(e,null,{selected:!0}):this._updateRowStateCellsClass(e,null,{selected:!1})},I.prototype._applyColumnSelection=function(e,t){var i=this.options.dnd.reorder;if(i&&i.columns===I._OPTION_ENABLED){var l=this._getTableHeaderColumn(e);this._getTableDndContext().setElementDraggable(l,t)}this._setColumnState(e,t)},I.prototype._setLastRowSelection=function(e,t){this._lastSelectedRowIdxArray||(this._lastSelectedRowIdxArray=[]);for(var i=this._lastSelectedRowIdxArray.length,l=0;l<i;l++)if(this._lastSelectedRowIdxArray[l]===e){this._lastSelectedRowIdxArray.splice(l,1);break}t&&this._lastSelectedRowIdxArray.push(e)},I.prototype._setLastHeaderColumnSelection=function(e,t){this._lastSelectedColumnIdxArray||(this._lastSelectedColumnIdxArray=[]);for(var i=this._lastSelectedColumnIdxArray.length,l=0;l<i;l++)if(this._lastSelectedColumnIdxArray[l]===e){this._lastSelectedColumnIdxArray.splice(l,1);break}t&&this._lastSelectedColumnIdxArray.push(e)},I.prototype._handleSelectionGesture=function(e,t,i){var l,o=this.option("selected"),n=o.row,s=o.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=i?n.delete([a]):new y.KeySetImpl([a]),l=!i):!i&&this._getSelectedRowIdxs().length>1&&r===I._OPTION_SELECTION_MODES._MULTIPLE?(n=new y.KeySetImpl([a]),l=!0):(n=n.delete([a]),l=!1):(n=i&&r===I._OPTION_SELECTION_MODES._MULTIPLE?n.add([a]):new y.KeySetImpl([a]),l=!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=i?s.delete([h]):new y.KeySetImpl([h]),l=!i):!i&&this._getSelectedHeaderColumnIdxs().length>1&&_===I._OPTION_SELECTION_MODES._MULTIPLE?(s=new y.KeySetImpl([h]),l=!0):(s=s.delete([h]),l=!1):(s=i&&_===I._OPTION_SELECTION_MODES._MULTIPLE?s.add([h]):new y.KeySetImpl([h]),l=!0)}}o.row===n&&o.column===s||(o={row:n,column:s},this._isSelectionRequiredSatisfied(o)&&(this._announceAccSelectionUpdate(l),this._setSelected(o)))},I.prototype._handleSelectAllGesture=function(){var e=this.option("selected"),t=e.row,i=e.column;i=i.clear(),t=t.isAddAll()?new y.KeySetImpl:new y.AllKeySetImpl,e.row===t&&e.column===i||(e={row:t,column:i},this._isSelectionRequiredSatisfied(e)&&this._setSelected(e))},I.prototype._handleMouseEnterSelection=function(e,t){if(this._isRowSelectionEnabled()&&!this._isStickyLayoutEnabled()){var i=this._getElementRowIdx(e);null!=this._mouseDownRowIdx&&null!=i&&this._mouseDownRowIdx!==i?(this._getRowSelectionMode()===I._OPTION_SELECTION_MODES._MULTIPLE&&this._selectRange(this._mouseDownRowIdx,i,!0),i<this._mouseDownRowIdx?this._moveTableBodyRowTouchSelectionAffordanceTop(i):this._moveTableBodyRowTouchSelectionAffordanceBottom(i)):null!=i&&i===this._mouseDownRowIdx&&(t?(this._selectRange(i,i,!0),this._moveTableBodyRowTouchSelectionAffordanceTop(i),this._moveTableBodyRowTouchSelectionAffordanceBottom(i)):this._clearSelectedRows())}},I.prototype._selectRange=function(e,t,i){var l,o=this.option("selected"),n=o.row,s=o.column;if(i){if(s=s.clear(),this._isRowSelectionEnabled()){if(n=n.clear(),e<=t)for(l=e;l<=t;l++){const e=this._getRowKeyForRowIdx(l),t=this._findRowElementByKey(e);t&&t[I._DATA_OJ_SELECTABLE]!==I._CONST_OFF&&(n=n.add([e]))}else for(l=e;l>=t;l--){const e=this._getRowKeyForRowIdx(l),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(l=e;l<=t;l++)s=s.add([this._getColumnKeyForColumnIdx(l)]);else for(l=e;l>=t;l--)s=s.add([this._getColumnKeyForColumnIdx(l)]);this._lastSelectedHeaderIdx=t}o.row===n&&o.column===s||(o={row:n,column:s},this._isSelectionRequiredSatisfied(o)&&this._setSelected(o))},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 i={row:t,column:this.option("selected.column")};this._setSelected(i)}},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 i=this._getTable().getElementsByClassName(I.CSS_CLASSES._TABLE_HEADER_SELECTOR_CLASS)[0];if(i){let e=t.values?t.values().size:t.deletedValues().size;i.indeterminate=0!==e}this._setSelected({row:t,column:new y.KeySetImpl},!1,!0)}},I.prototype._updateSelectors=function(e){let t=this._getTable(),i=t.getElementsByClassName(I.CSS_CLASSES._TABLE_HEADER_SELECTOR_CLASS);if(i.length>0){i[0].selectedKeys=e;let t=e.values?e.values().size:e.deletedValues().size;i[0].indeterminate=0!==t}let l=[],o=t.querySelectorAll(`\n .${I.CSS_CLASSES._TABLE_DATA_ROW_SELECTOR_CLASS} >\n .${I.MARKER_STYLE_CLASSES._SELECTED}`);for(let e=0;e<o.length;e++)l.push(o[e].parentElement);let n=Array.from(t.getElementsByClassName(I.CSS_CLASSES._TABLE_DATA_ROW_SELECTOR_CLASS));for(let t=0;t<n.length;t++){let i=n[t],o=-1!==l.indexOf(i);e.has(i.rowKey)?o||(i.selectedKeys=new y.KeySetImpl([i.rowKey])):o&&(i.selectedKeys=new y.KeySetImpl([]))}},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:"",columnResizeBehavior:"redistribute",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 i=t.rowIndex,l=this._getRowKeyForRowIdx(i);t.key=l}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,i=e.subId;if(i===I._SUB_ID._TABLE_CELL){var l=parseInt(e.rowIndex,10);return t=parseInt(e.columnIndex,10),this._getTableBodyLogicalCells(l)[t]}if(i===I._SUB_ID._TABLE_HEADER||i===I._SUB_ID._TABLE_SORT_ASCENDING||i===I._SUB_ID._TABLE_SORT_DESCENDING){t=e.index;var o=this._getTableHeaderLogicalColumns()[t];if(null!=o){if(i===I._SUB_ID._TABLE_HEADER)return o;if(i===I._SUB_ID._TABLE_SORT_ASCENDING){var n=this._getTableElementsByClassName(o,I.CSS_CLASSES._COLUMN_HEADER_ASC_ICON_CLASS);if(n.length>0)return n[0]}else{var s=this._getTableElementsByClassName(o,I.CSS_CLASSES._COLUMN_HEADER_DSC_ICON_CLASS);if(s.length>0)return s[0]}}}else if(i===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 i=this._getFirstAncestor(e,"."+I.CSS_CLASSES._TABLE_DATA_CELL_CLASS,!0);if(null!=i)return{subId:I._SUB_ID._TABLE_CELL,rowIndex:this._getElementRowIdx(i),columnIndex:this._getElementColumnIdx(i)};var l=this._getFirstAncestor(e,"."+I.CSS_CLASSES._COLUMN_HEADER_ASC_ICON_CLASS,!0);if(null!=l)return{subId:t?I._SUB_ID._TABLE_HEADER:I._SUB_ID._TABLE_SORT_ASCENDING,index:this._getElementColumnIdx(l)};var o=this._getFirstAncestor(e,"."+I.CSS_CLASSES._COLUMN_HEADER_DSC_ICON_CLASS,!0);if(null!=o)return{subId:t?I._SUB_ID._TABLE_HEADER:I._SUB_ID._TABLE_SORT_DESCENDING,index:this._getElementColumnIdx(o)};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 i=I._LOGGER_MSG._ERR_REFRESHROW_INVALID_INDEX_SUMMARY,l=p.applyParameters(I._LOGGER_MSG._ERR_REFRESHROW_INVALID_INDEX_DETAIL,{rowIdx:e.toString()});throw new RangeError(i+"\n"+l)}return this._queueTask(function(){return this._refreshRow(e,!0)}.bind(this))},I.prototype.widget=function(){var e=this._getTableContainer();return null!=e?c(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),A.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._setupSelectionChangedListener(),this._isInitFetch?(this._initFetch(),this._isInitFetch=!1):this._queueTask(function(){return this._getLayoutManager().notifyTableUpdate(I._UPDATE._REFRESH),this._invokeDataFetchRows()}.bind(this))},I.prototype._SetupContextMenu=function(){const e={};this._isStickyLayoutEnabled()&&(e.allowBrowserContextMenu=!0),this._super(e)},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._NotifyShown=function(){this._super(),this._getLayoutManager().notifyTableUpdate(I._UPDATE._SHOWN),this._hasPendingTasks()||this._syncTableSizing()},I.prototype._VerifyConnectedForSetup=function(){return!0},I.prototype._AllowConnectedSuspension=function(){return!0},I.prototype._GetDefaultContextMenu=function(){return this._defaultContextMenu},I.prototype._NotifyContextMenuGesture=function(e,t,i){var l={};if(this._contextMenuEvent=t.originalEvent?t.originalEvent:t,!(this._isNodeEditable(this._contextMenuEvent.target)||this._isNodeClickable(this._contextMenuEvent.target)||"touch"===i&&this._isNodeDraggable(this._contextMenuEvent.target))){var o,n=this._getFirstAncestor(this._contextMenuEvent.target,"."+I.CSS_CLASSES._TABLE_DATA_CELL_CLASS,!0);if(null!=n){var s=this._getElementColumnIdx(n);o=this._getTableHeaderColumn(s)}else o=this._getFirstAncestor(this._contextMenuEvent.target,"."+I.CSS_CLASSES._COLUMN_HEADER_CELL_CLASS,!0);if("keydown"===this._contextMenuEvent.type){var a=this._getTable();if(null==o&&(o=this._getActiveHeaderColumn()),this._contextMenuEvent.target===a)if(null!=o)l.position={my:I._POSITION._START_TOP,at:I._POSITION._START_BOTTOM,of:o};else{var r=this._getActiveRowIndex();if(r>=0){var _=this._getTableBodyRow(r);l.position={my:I._POSITION._START_TOP,at:I._POSITION._START_BOTTOM,of:_}}else l.position={my:I._POSITION._START_TOP,at:I._POSITION._START_BOTTOM,of:this._contextMenuEvent.target}}else l.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==o&&null==n&&null==h)return}this._contextMenuEventHeaderColumn=o;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],o&&o.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],o&&o.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],o&&o.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,i,l)}},I.prototype._setOptions=function(e,t){for(var i=!1,l=!1,o=!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?(this._columnsDestMap=null,o=!0):"selectionMode"===a&&void 0!==r.row?o=!0:"data"===a&&(l=!0),i=!0)}this._superApply(arguments),i&&(o&&(this._clearCachedMetadata(),this._refreshTableHeader()),l&&this._beforeDataRefresh(),this._refresh())},I.prototype._setOption=function(e,t,i){"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!=i?(this._superApply(arguments),this._isStickyLayoutEnabled()&&("scrollerOffsetTop"===i.subkey?(this._styleTableContainer(this._getTableContainer()),this._getLayoutManager()._updateStickyRowTops()):"scrollerOffsetBottom"===i.subkey?this._styleTableContainer(this._getTableContainer()):"scrollerOffsetStart"!==i.subkey&&"scrollerOffsetEnd"!==i.subkey||this._getLayoutManager()._initializeFrozenColumns())):"addRowDisplay"===e?(this._queueTask(function(){return this._refreshAddRowDisplay()}.bind(this)),this._superApply(arguments)):"selectAllControl"===e?(this._queueTask(function(){return this._refreshTableHeader()}.bind(this)),this._superApply(arguments)):this._superApply(arguments)},I.prototype._CompareOptionValues=function(e,t,i){switch(e){case"columns":case"currentRow":case"scrollPolicyOptions":return u.Object.compareValues(t,i);case"selection":return t&&void 0===t.inverted&&(t.inverted=!1),i&&void 0===i.inverted&&(i.inverted=!1),(!t||!i||t.inverted===i.inverted)&&u.Object.compareValues(t,i);case"selected":return(t.row&&i.row&&A.areKeySetsEqual(t.row,i.row)||null==t.row&&null==i.row)&&(t.column&&i.column&&A.areKeySetsEqual(t.column,i.column)||null==t.column&&null==i.column);default:return this._super(e,t,i)}},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 x(this):this._layoutManager=new P(this):(this._layoutManager=new M(this),this._isFixedLayoutEnabled()&&E.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 i=this._getColumnDefs(),l=this._getColumnIdxForColumnKey(e),o=this._getTableHeaderColumn(l);return l<i.length?this._getColumnDefs()[l].sortable===I._OPTION_ENABLED?null!=o&&c(o).data("sorted")===t?`Column is already sorted in ${t} order.`:(this._handleSortTableHeaderColumn(l,t===I._COLUMN_SORT_ORDER._ASCENDING,null),null):"Sort is not enabled for given header.":"Invalid header."},u.__registerWidget("oj.ojTable",c.oj.baseComponent,new I),g.setDefaultOptions({ojTable:{display:g.createDynamicPropertyGetter(function(){return f.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","jquery","ojs/ojdomutils","ojs/ojlogger","ojs/ojcontext","ojs/ojconfig","ojs/ojtranslation","ojs/ojcomponentcore","ojs/ojthemeutils","ojs/ojdatacollection-common","ojs/ojanimation","ojs/ojdomscroller","ojs/ojcustomelement-utils","@oracle/oraclejet-preact/hooks/UNSAFE_useFormVariantContext","ojs/ojkeyset","ojs/ojvalidator-regexp","ojs/ojkeyboardfocus-utils"],function(e,t,i,l,o,n,s,a,r,_,h,d,u,c,S,E,C,T,p,g,f,A,m,b,L,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,c=c&&Object.prototype.hasOwnProperty.call(c,"default")?c.default:c,C=C&&Object.prototype.hasOwnProperty.call(C,"default")?C.default:C,b=b&&Object.prototype.hasOwnProperty.call(b,"default")?b.default:b,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:""},columnResizeBehavior:{type:"string",enumValues:["add","redistribute"],value:"redistribute"},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:"string"},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"},editableSummary:{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",u.CustomElementBridge.register("oj-table",{metadata:u.CollectionUtils.mergeDeep(D,{properties:{userAssistanceDensity:{binding:{provide:[{name:"containerUserAssistanceDensity",default:"compact"},{name:"userAssistanceDensity",default:"compact"}]}}}})});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",_DIVIDER_RESIZE:"dividerResize",_SINGLE_COL_RESIZE:"singleColResize",_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_SIGNAL="signal",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_HEADER="header",I._CONST_FOOTER="footer",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._OPTION_COLUMN_RESIZE_BEHAVIOR={_ADD:"add",_REDISTRIBUTE:"redistribute"},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.CONTENT_FLICKER_TIMEOUT=20,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,i){const l=this.options.row[t];return"function"==typeof l?l(e):i},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 i=this._getTable();null!=e&&e!==i;){var l=e.nodeName;if(l===I.DOM_ELEMENT._TD||l===I.DOM_ELEMENT._TH)break;if(3!==e.nodeType)if(l.match(t))if(-1!==e.getAttribute(I.DOM_ATTR._TABINDEX))return!0;e=e.parentNode}return!1},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(e){this._pendingFetchStale?(this._pendingFetchStale=!1,this._queueTask(function(){return this._getLayoutManager().notifyTableUpdate(I._UPDATE._DATA_REFRESH),this._beforeDataRefresh(),this._invokeDataFetchRows(this._pendingFetchOptions)}.bind(this))):(e||this._hideStatusMessage(),this._dataFetching=!1,this._pendingFetchStale=!1,this._pendingFetchOptions=null,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=C.getContext(this.element[0]).getBusyContext(),i={description:"The component identified by '"+this._getTableId()+"' "+e};return t.addBusyState(i)},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._skipScrollOnFocus=null,this._active=null,this._isTableTab=null,this._dataFetching=null,this._controller=null,this._isAddRowRendered=!1,this._isRowRemovalRequired=null,this._renderedTableHeaderColumns=!1,this._currentPointerTarget=null,this._previousPointerTarget=null,this._clearAllComponentTimeouts(),this._clearAllComponentBusyStates(),this._clearOpenPopupListeners(),this._clearIdleCallback(),this._unregisterDomScroller(),this._clearLayoutManager(),this._cleanAccStatus(),this._clearSelectionChangedListener(),e?(c(this._getTableBody()).removeAttr(g._OJ_CONTAINER_ATTR),c(this._getTableBody()).removeAttr(C._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),S.unwrap(this.element,c(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),I.CONTENT_FLICKER_TIMEOUT)},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),I.CONTENT_FLICKER_TIMEOUT)},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){E.error(e)}this._setComponentReady()}return e}.bind(this),function(e){return this._taskCount-=1,0===this._taskCount&&(this._pendingTasks=null,E.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._processSlottedChildren()}.bind(this)),this.options.disabled&&this.disable()},I.prototype._refresh=function(){this._dataFetching&&this._controller&&this._controller.abort(A.getAbortReason(this.OuterWrapper));var e=!1;this._active=null,this._pendingFetchOptions=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._statusMessageShown&&this._isSkeletonSupport()||this._refreshTableStatusMessage(),this._clearIdleCallback(),this._hasEditableRow()&&this._setTableEditable(!1,!0),e?this._initFetch():this._queueTask(function(){return this._getLayoutManager().notifyTableUpdate(I._UPDATE._REFRESH),this._invokeDataFetchRows()}.bind(this))},I.prototype._refreshAll=function(e,t){var i=[];if((this._isColumnMetadataUpdated()||!this._isTableHeaderColumnsRendered())&&(this._clearCachedMetadata(),i.push(this._refreshTableHeader()),null!=this._sortColumn)){for(var l=!1,o=this._getColumnDefs(),n=o.length,s=0;s<n;s++){var a=o[s];if(u.Object.compareValues(a,this._sortColumn)){l=!0;break}}l||this._initFetch(null,!0)}return i.push(this._refreshTableFooter()),i.push(this._refreshTableBody(e,t)),Promise.all(i)},I.prototype._refreshTableHeader=function(){try{var e,t=this,i=this._getColumnDefs(),l=i.length,o=this._getTableColGroup();if(null!=o){var n=this._getTableBody();null!=n&&(n.style[I.CSS_PROP._VISIBILITY]=I.CSS_VAL._HIDDEN);var s=this._getTableFooter();if(null!=s&&(s.style[I.CSS_PROP._VISIBILITY]=I.CSS_VAL._HIDDEN),c(o).empty(),this._isGutterStartColumnEnabled()){let e=this._createTableGutterCol();o.appendChild(e)}if(this._isDefaultSelectorEnabled()){var a=this._createTableSelectorCol();o.appendChild(a)}for(e=0;e<l;e++){var r=this._createTableCol();o.appendChild(r)}if(this._isGutterEndColumnEnabled()){let e=this._createTableGutterCol();o.appendChild(e)}}var _=this._getTableBodyLegacyWidthBuffer();if(null!=_)for(c(_).empty(),e=0;e<l;e++){var h=this._createTableBodyCell();h.classList.add(I.CSS_CLASSES._TABLE_LEGACY_WIDTH_BUFFER_CELL_CLASS),_.appendChild(h)}var d=this._getTableHeader();if(!d){if(this._isTableHeaderless())return Promise.resolve();d=this._createTableHeader(),this._styleTableHeader(d)}var u=this._getTableHeaderRow();for(this._unregisterChildStateListeners(u),this._hasHeaderTemplate&&(this._cleanTemplateNodes(u),this._hasHeaderTemplate=!1),c(u).empty(),e=0;e<l;e++){var S=null,E=i[e],C=this._getColumnRenderer(e,"header");if(C){S=this._createTableHeaderColumn(e);var T=this._getRendererContextObject(S,{}),p={headerContext:T,columnIndex:e,data:E.headerText,componentElement:T.componentElement,parentElement:T.parentElement};E.sortable===I._OPTION_ENABLED?p.columnHeaderSortableIconRenderer=function(e,i){t._columnHeaderSortableIconRenderer(this,i)}:p.columnHeaderDefaultRenderer=function(e,i){t._columnHeaderDefaultRenderer(this,i)};var g=C(p);null!=g&&c(S).empty(),A.applyRendererContent(S,g)||(S=c(u).children()[e],this._setTableHeaderColumnAttributes(e,S),this._styleTableHeaderColumn(e,S,!1)),S.classList.add(I.CSS_CLASSES._COLUMN_CUSTOM_HEADER_CLASS)}else{var f=this._getSlotTemplate(E[I._HEADER_TEMPLATE]);if(null==f&&this._isDefaultHeaderTemplateSlotValid()&&(f=this._getSlotTemplate("headerTemplate")),f){var m=this._getRootElement(),b=this._getTemplateEngine();if(null!=b){(S=this._createTableHeaderColumn(e,!0)).classList.add(I.CSS_CLASSES._COLUMN_CUSTOM_HEADER_CLASS);var L=this._getHeaderSlotTemplateContextObject(E.headerText,e),y=b.execute(m,f,L,this.options.as,S,new Map([[R.FormVariantContext,"embedded"]]));y instanceof Array||(y=[y]),y.map(function(e){S.appendChild(e)}),this._hasHeaderTemplate=!0}}}S||this._createTableHeaderColumn(e)}if(this._isGutterEndColumnEnabled()){let e=this._createTableGutterCell("header","end");u.appendChild(e)}if(this._isDefaultSelectorEnabled()){var O=this._createTableHeaderSelectorColumn();u.insertBefore(O,u.firstChild)}if(this._isGutterStartColumnEnabled()){let e=this._createTableGutterCell("header","start");u.insertBefore(e,u.firstChild)}return this._renderedTableHeaderColumns=!0,this._getLayoutManager().optimizeInitialColumnWidths(),this._finalizeNonBodyRowRendering([u])}catch(e){return Promise.reject(e)}},I.prototype._refreshTableFooter=function(){try{var e=this._getColumnDefs(),t=this._getTableFooter();if(this._isTableFooterless())return t?(g.subtreeDetached(t),this._hasFooterTemplate&&(this._cleanTemplateNodes(t),this._hasFooterTemplate=!1),c(t).remove(),this._clearCachedDom(),Promise.resolve()):Promise.resolve();t||(t=this._createTableFooter(),this._styleTableFooter(t)),this._initializeTableFooterHide(t);var i=this._getTableFooterRow();if(this._hasFooterTemplate&&(this._cleanTemplateNodes(i),this._hasFooterTemplate=!1),c(i).empty(),e.length>0){for(var l=this._isDefaultFooterTemplateSlotValid(),o=e.length,n=0;n<o;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={footerContext:_,columnIndex:n,componentElement:_.componentElement,parentElement:_.parentElement};A.applyRendererContent(r,a(h))||(r=c(i).children()[n],this._setTableFooterColumnAttributes(n,r),this._styleTableFooterCell(n,r))}else{var d=this._getSlotTemplate(s[I._FOOTER_TEMPLATE]);if(null==d&&l&&(d=this._getSlotTemplate("footerTemplate")),d){var u=this._getRootElement(),S=this._getTemplateEngine();if(null!=S){var E=this._getFooterSlotTemplateContextObject(n),C=S.execute(u,d,E,this.options.as,r,new Map([[R.FormVariantContext,"embedded"]]));C instanceof Array||(C=[C]),C.map(function(e){r.appendChild(e)}),this._hasFooterTemplate=!0}}}}if(this._isGutterEndColumnEnabled()){let e=this._createTableGutterCell("footer","end");i.appendChild(e)}if(this._isDefaultSelectorEnabled()){var T=this._createTableFooterSelectorCell();i.insertBefore(T,i.firstChild)}if(this._isGutterStartColumnEnabled()){let e=this._createTableGutterCell("footer","start");i.insertBefore(e,i.firstChild)}}return this._finalizeNonBodyRowRendering([i])}catch(e){return Promise.reject(e)}},I.prototype._refreshTableBody=function(e,t,i){var l=this._getTableBody();if(null==l)return Promise.resolve();this._scrollLeft=void 0===this._scrollLeft?0:this._scrollLeft,this._scrollTop=void 0===this._scrollTop?0:this._scrollTop;var o=[];return o.push(this._refreshAddNewRowPlaceholder(!0)),o.push(this._finalizeTableBody(e,t,l,i)),Promise.all(o)},I.prototype._finalizeTableBody=function(e,t,i,l){var o,n,s=this._getRowIdxRowArray(e,t);if(0===s.length&&(0===t||0===this._getTableBodyRows().length))return n=this._clearTableBodyRowsFromIndex(t),this._showNoDataMessage(),n&&this._getTable().focus(),this._finalizeNonBodyRowRendering([i]);const a=document.createDocumentFragment();if(t>0&&this._isLoadMoreOnScroll()&&!this._isLastRowInViewport()&&!this._fetchBySyncScroll)return new Promise(function(l,o){this._setIdleRenderBusyState(),this._renderRowsWhenIdle(s.slice(0),i,a,[],t,l,o,e.isMouseWheel)}.bind(this));var r=[],_=s.length,h=[];for(o=0;o<_;o++)r.push(s[o].rowIdx),h.push(this._renderRow(s[o],a,t));var d=this._animateOnFetch&&this._IsCustomElement();return this._animateOnFetch=!1,Promise.all(h).then(function(e){return n=this._clearTableBodyRowsFromIndex(t),l||this._initializeTableBodyHide(i),this._getLayoutManager().handleAfterRowsProcessed(a),this._appendElementToTableBody(a,i),n&&this._getTable().focus(),d?this._animateVisibleRows(e,r,"add").then(function(){return this._afterRowsRendered(i)}.bind(this)):this._afterRowsRendered(i)}.bind(this),function(e){return Promise.reject(e)})},I.prototype._clearTableBodyRowsFromIndex=function(e){var t=this._getTableBody().contains(document.activeElement),i=!1;if(0===e)t&&(i=!0),this._removeAllTableBodyRows();else{var l=this._getTableBodyRows().length;if(l>0)for(var o=l-1;o>=e;o--){if(t){var n=this._getTableBodyRow(o);null!=n&&n.contains(document.activeElement)&&(i=!0,t=!1)}this._removeTableBodyRow(o)}}return this._clearCachedDomRowData(),this._hideNoDataMessage(),this._isRowRemovalRequired=!1,i},I.prototype._isDefaultSelectorEnabled=function(){return"true"===this._getDefaultOptions().enableSelector&&this._getRowSelectionMode()===I._OPTION_SELECTION_MODES._MULTIPLE},I.prototype._refreshTableBodyRow=function(e,t,i,l,o,n){var s=!1;try{var a=this._getRowRenderer();if((isNaN(e)||e<0)&&E.error("Error: Invalid rowIdx value: "+e),null==i){if(!(i=this._getTableBodyRow(e)))return Promise.resolve(null);(this._hasCellTemplate||this._hasRowTemplate)&&this._cleanTemplateNodes(i),c(i).empty()}var r=this._getCurrentRow();r=r||{};var _=this._getRendererContextObject(i,{row:t,isCurrentRow:r.rowIndex===e});_.editable=this._invokeRowEditableCallback(i[I._ROW_ITEM_EXPANDO]);const b=this._invokeRowSelectableCallback(i[I._ROW_ITEM_EXPANDO]);var h={rowContext:_,row:t[I._CONST_DATA],componentElement:_.componentElement,parentElement:_.parentElement,data:t[I._CONST_DATA]},d=!1,u=this._getTableBody();if(null!=a||this._isDefaultRowTemplateSlotValid()&&null!==this._getSlotTemplate("rowTemplate")){if(null!=a){var S=a(h);null!=S?i.appendChild(S):null==l?i=this._getRawTableBodyRow(e):(o=null==o?0:o,i=l.children?l.children[e-o]:c(l).children()[e-o])}else{var C=this._getSlotTemplate("rowTemplate"),T=this._getRootElement(),p=this._getTemplateEngine();if(null!=p){var f=this._getRowSlotTemplateContextObject(h),A=p.execute(T,C,f,this.options.as,u,new Map([[R.FormVariantContext,"embedded"]]));for(let e=0;e<A.length;e++){var m=A[e];if("TR"===m.tagName){i.parentNode.replaceChild(m,i),i=m,d=!1;break}i.appendChild(m),d=!0}this._hasRowTemplate=!0}}return i._ojReportBusy=u,null==l&&(s=!0,i.classList.add(I.CSS_CLASSES._TABLE_DATA_ROW_REFRESH_CLASS),g.subtreeHidden(i)),this._waitForAllElementsToResolve([i]).then(function(){if(d){var l=i.children;for(let e=0;e<l.length;e++){var o=l[e];if("TR"===o.tagName){i.parentNode.replaceChild(o,i),(i=o)._ojReportBusy=u;break}}}return this._setTableBodyRowAttributes(t,i),this._clearCachedDomRowData(),this._styleTableBodyRow(i,!1),this._applyColumnsDestMap(i),this._applyColumnsStyling(i,t,e),this._finalizeTableBodyCellsRefresh(i,t,e,_.editable,b,n,s)}.bind(this))}return this._setTableBodyRowAttributes(t,i),this._tableBodyRowDefaultRenderer(e,t,h),this._finalizeTableBodyCellsRefresh(i,t,e,_.editable,b,n,s)}catch(e){return s&&(i.classList.remove(I.CSS_CLASSES._TABLE_DATA_ROW_REFRESH_CLASS),1===i.nodeType&&L.CustomElementUtils.subtreeShown(i,!1,!0)),Promise.reject(e)}},I.prototype._applyColumnsDestMap=function(e){if(null!=this._columnsDestMap){var t=this._getChildElementsByTagName(e,I.DOM_ELEMENT._TD),i=this._getColspanLogicalElements(t);for(let e=0;e<this._columnsDestMap.length;e++){var l=i[this._columnsDestMap[e]];l.parentNode.appendChild(l)}}},I.prototype._applyColumnsStyling=function(e,t,i){var l=this._getChildElementsByTagName(e,I.DOM_ELEMENT._TD),o=this._getColspanLogicalElements(l),n=[];for(let e=0;e<o.length;e++){var s=o[e];-1===n.indexOf(s)&&(this._setTableBodyCellAttributes(i,t[I._CONST_KEY],e,s),this._styleTableBodyCell(e,s,!1),n.push(s))}},I.prototype._finalizeTableBodyCellsRefresh=function(e,t,i,l,o,n,s){return this._handleDefaultSelectorCreation(e,t,i,o),this._getLayoutManager().handleRowRefresh(i,e,n),e[I._DATA_OJ_EDITABLE]=l,e[I._DATA_OJ_SELECTABLE]=o,s&&(e.classList.remove(I.CSS_CLASSES._TABLE_DATA_ROW_REFRESH_CLASS),1===e.nodeType&&L.CustomElementUtils.subtreeShown(e,!1,!0)),Promise.resolve(e)},I.prototype._handleDefaultSelectorCreation=function(e,t,i,l){var o=this._getColumnDefs();if(o.length>0){if(this._isDefaultSelectorEnabled()&&l!==I._CONST_OFF&&this._createTableBodyDefaultSelector(t.key,e),this._isGutterStartColumnEnabled()){let t=this._createTableGutterCell("body","start");e.insertBefore(t,e.firstChild)}if(this._isGutterEndColumnEnabled()){let t=this._createTableGutterCell("body","end");e.appendChild(t)}}l===I._CONST_OFF&&o.length>0&&this._isDefaultSelectorEnabled()&&(this._getTableBodyCells(i,e)[0].colSpan+=I._SELECTOR_OFF_COLSPAN_OFFSET)},I.prototype._refreshAddNewRowPlaceholder=function(e){let t=this._getPlaceHolderRow();if(!this._isAddNewRowEnabled()){if(null!=t){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(t),c(t).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 S=this._getRootElement(),E=this._getTableBody();var l;null!=t&&(this._cleanTemplateNodes(t),c(t).empty()),null==t&&(t=this._createTableBodyRow()),E.insertBefore(t,E.firstChild);var o=!1;if(null!=_&&this._isDefaultAddRowTemplateSlotValid()){d=this._getRowSlotTemplateContextObject({},!0),d.submitAddRow=u;const l=i.execute(S,_,d,this.options.as,E);for(let e=0;e<l.length;e++){var n=l[e];if("TR"===n.tagName){t.parentNode.replaceChild(n,t),t=n,t._ojReportBusy=E,o=!1;break}t.appendChild(n),o=!0}return this._waitForAllElementsToResolve([t]).then(function(){if(o){var i=t.children;for(let e=0;e<i.length;e++){var l=i[e];if("TR"===l.tagName){t.parentNode.replaceChild(l,t),t=l,t._ojReportBusy=E;break}}}if(null!=this._columnsDestMap){var n=this._getPlaceHolderRowCells(t);for(let e=0;e<this._columnsDestMap.length;e++){var s=n[this._columnsDestMap[e]];s.parentNode.appendChild(s)}}return this._finalizePlaceHolderRowSetup(t,e)}.bind(this))}if(null!==h&&this._isDefaultAddRowCellTemplateSlotValid()){for(var s=this._getColumnDefs().length,a=0;a<s;a++){l=this._createTableBodyCell(),t.appendChild(l),d=this._getCellSlotTemplateContextObject({columnIndex:a},!0),d.submitAddRow=u;var r=i.execute(S,h,d,this.options.as,E);r instanceof Array||(r=[r]);for(let e=0;e<r.length;e++)l.appendChild(r[e])}return this._finalizePlaceHolderRowSetup(t,e)}}}return Promise.resolve(!1)},I.prototype._finalizePlaceHolderRowSetup=function(e,t){let i;e.classList.add(I.CSS_CLASSES._TABLE_ADD_ROW_PLACEHOLDER_CLASS);let l=this._getPlaceHolderRowCells(e);for(let e=0;e<l.length;e++)i=l[e],this._styleTableAddRowCell(e,i);if(this._isAddRowRendered=!0,this._hasAddRowTemplate=!0,this._isDefaultSelectorEnabled()&&(i=document.createElement(I.DOM_ELEMENT._TD),e.insertBefore(i,e.firstChild),i.classList.add(I.CSS_CLASSES._TABLE_FROZEN_START),this._isVerticalGridEnabled()&&i.classList.add(I.CSS_CLASSES._TABLE_VGRID_LINES_CLASS)),this._isGutterStartColumnEnabled()){let t=this._createTableGutterCell("body","start");e.insertBefore(t,e.firstChild)}if(this._isGutterEndColumnEnabled()){let t=this._createTableGutterCell("body","end");e.appendChild(t)}return t||this._getLayoutManager()._updateStickyRowTops(),this._finalizeNonBodyRowRendering([e])},I.prototype._finalizeBodyRowRendering=function(e){var t=this._getTableBody();return this._waitForAllElementsToResolve([t]).then(function(){var t=this._hasEditableRow()?this._getEditableRowKey():null,i=this._isTableActionableMode()&&this._active?this._active.key:null;return e.forEach(function(e){if(null!=e){var l=this._getRowKey(e);null!=t&&u.KeyUtils.equals(l,t)||null!=i&&u.KeyUtils.equals(l,i)||A.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){A.disableAllFocusableElements(e,null,!0)}),Promise.resolve(!0)})},I.prototype._waitForAllElementsToResolve=function(e){var t=[];return e.forEach(function(e){e&&t.push(C.getContext(e).getBusyContext().whenReady())}),Promise.all(t)},I.prototype._refreshRow=function(e,t,i,l){var o=this._getData(),n=this._getTableBodyRow(e);if(!t){if(!o)return Promise.resolve(!1);if(!n){var s=I._LOGGER_MSG._ERR_REFRESHROW_INVALID_INDEX_SUMMARY,a=p.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),null!=l){var h=new Map;h.set(_,l),r=Promise.resolve({results:h})}else if(i){var d=new Map,u={data:n[I._ROW_ITEM_EXPANDO].data,metadata:n[I._ROW_ITEM_EXPANDO].metadata};d.set(_,u),r=Promise.resolve({results:d})}else r=o.fetchByKeys({keys:new Set([_])});return r.then(function(t){if(null==t||null==t.results||0===t.results.size)return Promise.resolve(!1);var i=n.contains(document.activeElement),l=t.results.get(_);return this._refreshTableBodyRow(e,{data:l.data,metadata:l.metadata,index:e,key:_},null,null,null,!0).then(function(e){return i&&this._getTable().focus(),null==e?Promise.resolve(!0):this._finalizeBodyRowRendering([e])}.bind(this))}.bind(this))},I.prototype._refreshTableStatusMessage=function(){var e=this._getTableStatusMessage();null!=e&&c(e).remove(),this._createTableStatusMessage()},I.prototype._showStatusMessage=function(){if(!this._showStatusTimeout&&!this._statusMessageShown){var e=this._getTableTempSkeletonRow();if(null!=e&&this._getTableBody().removeChild(e),this._isSkeletonSupport()){var t=this._getData();if(t instanceof u.TableDataSourceAdapter){var i=t._startIndex;if(null!=i&&i>0)return}this._isExternalScrollEnabled()&&this._bufferScrollerForLastRow(),this._isRowRemovalRequired=!0}this._showStatusTimeout=setTimeout(function(){var e=!1;this._isSkeletonSupport()&&this._isRowRemovalRequired&&(e=this._clearTableBodyRowsFromIndex(0)),this._refreshTableStatusPosition(!0),e&&this._getTable().focus(),this._showStatusTimeout=null}.bind(this),this._getShowStatusDelay())}},I.prototype._showProgressiveLoading=function(){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 i=this._createTableBodyCell(),l=this._getColumnDefs().length;this._isGutterStartColumnEnabled()&&(l+=1),this._isGutterEndColumnEnabled()&&(l+=1),i.colSpan=this._isDefaultSelectorEnabled()?l+1:l,i.classList.add(I.CSS_CLASSES._TABLE_SKELETON_CELL_CLASS);for(var o=0;o<3;o++)i.appendChild(this._createSkeletonRow());t.appendChild(i),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,t){var i;if(this._isSkeletonSupport()&&null!=(i=null!=e?e:-1===t?this._getPlaceHolderRow():this._getTableBodyRow(t))){for(var l=i.children,o=0;o<l.length;o++)l[o].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===t&&(n.style[I.CSS_PROP._TOP]=l[0].style.top);var a=this._createSkeletonRow();n.appendChild(a),i.insertBefore(n,i.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,t){var i;if(this._isSkeletonSupport()&&null!=(i=null!=e?e:-1===t?this._getPlaceHolderRow():this._getTableBodyRow(t))){var l=i.children[0];if(null!=l&&l.classList.contains(I.CSS_CLASSES._TABLE_SKELETON_CELL_CLASS)){var o=l.children[0];null!=o&&(o.classList.remove(I.CSS_CLASSES._ANIMATION_SKELETON_FADE_IN_CLASS),o.removeEventListener("animationend",this._skeletonHWMSFadeInEndListener)),i.removeChild(l)}for(var n=i.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 i=t.childNodes,l=i.length;l>0;l--)t.removeChild(i[l-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]),i=f.getCachedCSSVarValues(t);e.forEach((e,t)=>{this._defaultOptions[e]=i[t]})}return this._defaultOptions},I.prototype._getShowStatusDelay=function(){return S.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(),i=this._getSlotTemplate("noData");if(this._isDefaultTemplateSlotValid("noData")&&null!==i){var l=this._getTable(),o=this._getTableBody();l.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,o),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(),i,{},null,o).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)c(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 i=this._getTableNoDataRow();null!=i&&(this._cleanTemplateNodes(i),c(i).remove(),this._hasNoDataTemplate=!1)}}this._noDataMessageShown=!1}},I.prototype._handleContextMenuResizePopup=function(){let e,t;if("redwood"===f.parseJSONFromFontFamily("oj-theme-json").behavior){let i=document.getElementById(this._getTableUID()+"_resize_column_width_input"),l=this._getContextMenuResizeDialog();if(e=parseInt(l.getAttribute(I._DATA_OJ_COLUMNIDX),10),this._IsCustomElement()&&"valid"===i.valid)t=i.value,l.close();else{if(this._IsCustomElement()||"valid"!==c(i).ojInputNumber("option","valid"))return;t=c(i).ojInputNumber("option","value"),c(l).ojDialog("close")}}else{let i=document.getElementById(this._getTableUID()+"_resize_popup_spinner"),l=this._getContextMenuResizePopup();if(e=parseInt(l.getAttribute(I._DATA_OJ_COLUMNIDX),10),this._IsCustomElement()&&"valid"===i.valid)t=i.value,l.close();else{if(this._IsCustomElement()||"valid"!==c(i).ojInputNumber("option","valid"))return;t=c(i).ojInputNumber("option","value"),c(l).ojPopup("close")}}for(var i=[],l=this.options.columns.length,o=0;o<l;o++)i[o]=c.extend({},{},this.options.columns[o]);var n=this._getLayoutManager().getMinimumForcedOffsetWidth(e);i[e].width=Math.max(t,n),this.option("columns",i,{_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 i,l=(i=t?t.item:c(e.target)).attr(I._DATA_OJ_COMMAND),o=this._getFirstAncestor(this._contextMenuEvent.target,"."+I.CSS_CLASSES._COLUMN_HEADER_CELL_CLASS,!0);o=null==o?this._contextMenuEventHeaderColumn:o;var n=this._getFirstAncestor(this._contextMenuEvent.target,"."+I.CSS_CLASSES._TABLE_DATA_CELL_CLASS,!0),s=null;if(null!=o?s=this._getElementColumnIdx(o):null!=n&&(s=this._getElementColumnIdx(n)),null!==s)if("oj-table-sortAsc"===l)this._handleSortTableHeaderColumn(s,!0,e);else if("oj-table-sortDsc"===l)this._handleSortTableHeaderColumn(s,!1,e);else if("oj-table-enableNonContiguousSelection"===l)this._nonContiguousSelection=!0,this._removeTableBodyRowTouchSelectionAffordance(),i.attr(I._DATA_OJ_COMMAND,"oj-table-disableNonContiguousSelection"),i.children().first().text(this.getTranslatedString("labelDisableNonContiguousSelection"));else if("oj-table-disableNonContiguousSelection"===l)this._nonContiguousSelection=!1,i.attr(I._DATA_OJ_COMMAND,"oj-table-enableNonContiguousSelection"),i.children().first().text(this.getTranslatedString("labelEnableNonContiguousSelection"));else if("oj-table-resize"===l){var a=o||n,r=this._getLayoutManager().getColumnWidthProperty(a),_=null!=o?o:n;if("redwood"===f.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(_)):(c(t).ojInputNumber("option","value",Math.round(r)),c(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(_)):(c(t).ojInputNumber("option","value",Math.round(r)),c(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||(S.addResizeListener(e,this._resizeListener,50,!0),this._isResizeListenerAdded=!0)},I.prototype._unregisterResizeListener=function(){var e=this._getTableContainer();S.removeResizeListener(e,this._resizeListener),this._isResizeListenerAdded=!1},I.prototype._unregisterChildStateListeners=function(e){for(var t=e.querySelectorAll("*"),i=0;i<t.length;i++)this._UnregisterChildNode(t[i])},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,i=0;i<t;i++){var l=this._getSlotTemplate(e[i][I._HEADER_TEMPLATE]);if(null!=e[i].headerText||null!=e[i].headerStyle||null!=e[i].sortable&&e[i].sortable!==I._OPTION_DISABLED||null!=e[i].sortProperty||null!=e[i].headerRenderer||null!=l)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,i=0;i<t;i++){var l=this._getColumnRenderer(i,"footer"),o=this._getSlotTemplate(e[i][I._FOOTER_TEMPLATE]);if(null!=l)return!1;if(null!=o)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,i){var l,o=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!=i&&("scrollerOffsetTop"===i.subkey||"scrollerOffsetBottom"===i.subkey||"scrollerOffsetStart"===i.subkey||"scrollerOffsetEnd"===i.subkey)||u.Object.compareValues(t,o[e])?l=!1:("verticalGridVisible"!==e&&"display"!==e||(this._renderedTableHeaderColumns=!1),l=!0),l},I.prototype._isTableSortable=function(){for(var e=this._getColumnDefs(),t=e.length,i=0;i<t;i++)if(e[i].sortable===I._OPTION_ENABLED)return!0;return!1},I.prototype._isTableColumnsResizable=function(){for(var e=this._getColumnDefs(),t=e.length,i=0;i<t;i++)if(e[i].resizable===I._OPTION_ENABLED)return!0;return!1},I.prototype._isTouchDevice=function(){return null==this._isTouch&&(this._isTouch=A.isMobileTouchDevice()),this._isTouch},I.prototype._processSlottedChildren=function(){var e=this._getTableBottomSlot();null!=e&&c(e).remove();for(var t=L.CustomElementUtils.getSlotMap(this._getRootElement()),i=Object.keys(t),l=0;l<i.length;l++){var o=i[l];if("bottom"===o){var n=t[o];if(null!=n){e=this._createTableBottomSlot();for(var s=0;s<n.length;s++)e.appendChild(n[s])}}}},I.prototype._handleSortTableHeaderColumn=function(e,t,i){this._clearSortedHeaderColumn(e);var l=this._getColumnDefs()[e],o=null==l.sortProperty?l.field:l.sortProperty;this._invokeDataSort(o,t,i),this._sortColumn=l,this._refreshSortTableHeaderColumn(o,t)},I.prototype._processFetchSort=function(e){try{var t=e.fetchParameters[I._CONST_SORTCRITERIA];if(null!=t&&t.length>0){var i=t[0].attribute,l=t[0].direction===I._COLUMN_SORT_ORDER._ASCENDING;this._refreshSortTableHeaderColumn(i,l),this._setCurrentRow(this.options.currentRow)}else this._clearSortedHeaderColumn()}catch(e){E.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==c(t).data("sorted")){var i=this._getSortIconContainer(t),l=this._getSortIcon(t);null!=i&&null!=l&&(l.classList.remove(I.MARKER_STYLE_CLASSES._DISABLED),l.classList.add(I.MARKER_STYLE_CLASSES._ENABLED),l.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==c(t).data("sorted")){var i=this._getSortIconContainer(t),l=this._getSortIcon(t);null!=i&&null!=l&&(i.setAttribute(I.DOM_ATTR._TITLE,this.getTranslatedString("labelSortAsc")),l.classList.remove(I.CSS_CLASSES._COLUMN_HEADER_DSC_ICON_CLASS),l.classList.remove(I.CSS_CLASSES._COLUMN_HEADER_ASC_ICON_CLASS),l.classList.add(I.CSS_CLASSES._COLUMN_HEADER_DEFAULT_SORT_ICON_CLASS),l.classList.add(I.MARKER_STYLE_CLASSES._DISABLED),l.classList.remove(I.MARKER_STYLE_CLASSES._ENABLED),l.classList.remove(I.MARKER_STYLE_CLASSES._DEFAULT))}}},I.prototype._refreshSortTableHeaderColumn=function(e,t){for(var i,l=this._getColumnDefs(),o=null,n=l.length,s=0;s<n;s++){var a=l[s];if(e===(null==a.sortProperty?a.field:a.sortProperty)){o=s;break}}if(null!=o){this._clearSortedHeaderColumn(o);var r=this._getTableHeaderColumn(o);if(null!=r){var _=c(r).data("sorted"),h=this._getSortIconContainer(r);null!=(i=this._getSortIcon(r))&&(i.classList.add(I.MARKER_STYLE_CLASSES._DEFAULT),i.classList.remove(I.MARKER_STYLE_CLASSES._DISABLED)),t&&_!==I._COLUMN_SORT_ORDER._ASCENDING?(c(r).data("sorted",I._COLUMN_SORT_ORDER._ASCENDING),null!=i&&(h.setAttribute(I.DOM_ATTR._TITLE,this.getTranslatedString("labelSortDsc")),i.classList.remove(I.CSS_CLASSES._COLUMN_HEADER_DEFAULT_SORT_ICON_CLASS),i.classList.remove(I.CSS_CLASSES._COLUMN_HEADER_DSC_ICON_CLASS),i.classList.add(I.CSS_CLASSES._COLUMN_HEADER_ASC_ICON_CLASS))):t||_===I._COLUMN_SORT_ORDER._DESCENDING||(c(r).data("sorted",I._COLUMN_SORT_ORDER._DESCENDING),null!=i&&(h.setAttribute(I.DOM_ATTR._TITLE,this.getTranslatedString("labelSortAsc")),i.classList.remove(I.CSS_CLASSES._COLUMN_HEADER_DEFAULT_SORT_ICON_CLASS),i.classList.remove(I.CSS_CLASSES._COLUMN_HEADER_ASC_ICON_CLASS),i.classList.add(I.CSS_CLASSES._COLUMN_HEADER_DSC_ICON_CLASS)))}}},I.prototype._getSortedTableHeaderColumnIdx=function(){for(var e=this._getTableHeaderColumns(),t=0;t<e.length;t++){if(null!=c(e[t]).data("sorted"))return t}return null},I.prototype._clearSortedHeaderColumn=function(e){var t=this._getSortedTableHeaderColumnIdx();if(null!=t){var i=this._getTableHeaderColumn(t);if(c(i).data("sorted",null),null==e||t!==e)this._hideTableHeaderColumnSortIcon(t);else{var l=this._getSortIcon(i);null!=l&&l.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,i=null!=e?e:this.options.columns,l=this.options.columnsDefault;if((0===i.length||1===i.length&&null==i[0].id&&null==i[0].headerText&&null==i[0].field)&&null==l.headerText&&null==l.field)return[];var o=[],n=i.length;for(t=0;t<n;t++)o[t]=c.extend({},l,i[t]);var s=[],a=o.length;for(t=0;t<a;t++)s.push(o[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 i=this._getColumnDefs()[e],l=null;return"cell"===t?l=i.renderer:"footer"===t?l=i.footerRenderer:"header"===t&&(l=i.headerRenderer),this._WrapCustomElementRenderer(l)},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._controller,t=this._getLayoutManager();this._domScrollerSuccessFunc=function(e){if(this._clearDataWaitingState(!this._animateOnFetch),null!=e){if(A.isFetchAborted(e))return this._hideStatusMessage(),void this._clearScrollBuffer();this._noMoreData=!1,e.maxCountLimit&&(this._noMoreData=!0,this._handleScrollerMaxRowCount());var i=e[I._CONST_VALUE];if(null!=i){var l=i[I._CONST_DATA],o=i.metadata.map(function(e){return e[I._CONST_KEY]}),n=i[I._CONST_METADATA];if(l.length>0)return null!=this._domScroller&&this._domScroller.pauseScrollTracking(),void this._queueTask(function(){var i,s=!1;for(i=o.length-1;i>=0;i--)if(null!==this._getRowIdxForRowKey(o[i]))l.splice(i,1),o.splice(i,1),n.splice(i,1),s=!0;else for(var a=0;a<i;a++)u.KeyUtils.equals(o[i],o[a])&&(l.splice(i,1),o.splice(i,1),n.splice(i,1),s=!0);if(s&&E.warn(A.WARN_DUPLICATE_KEYS_DETAIL),l.length>0){t.notifyTableUpdate(I._UPDATE._ROWS_ADDED);var r=this._getTableBodyRows().length,_=[];for(i=0;i<l.length;i++)_[i]=r+i;return this._refreshTableBody({isMouseWheel:e.isMouseWheel,data:l,keys:o,metadata:n,indexes:_},r,!0).then(function(){null!=this._domScroller&&this._domScroller.resumeScrollTracking(),this._hideStatusMessage(),e.done?(this._noMoreData=!0,this._syncScrollPosition()):this._syncScrollPosition(null,null!=this._scrollPosition)}.bind(this),function(e){this._hideStatusMessage()}.bind(this))}return null!=this._domScroller&&this._domScroller.resumeScrollTracking(),this._hideStatusMessage(),Promise.resolve()}.bind(this))}this._hideStatusMessage(),e.done?(this._noMoreData=!0,this._clearScrollBuffer(),this._syncScrollPosition()):(this._clearScrollBuffer(),this._syncScrollPosition(null,null!=this._scrollPosition))}else this._hideStatusMessage(),this._clearScrollBuffer(),this._syncScrollPosition()}.bind(this),this._domScrollerErrorFunc=function(t){e&&e.signal.aborted&&this._pendingFetchStale&&this._clearDataWaitingState(),this._clearScrollBuffer()}.bind(this);var i=this._getTableBodyRows().length;this._requiresDomScrollerRefresh=!1,this._domScroller=new b(t.getScroller(),this._getData(),{asyncIterator:this._dataProviderAsyncIterator,contentElement:t.getContentElement(),fetchSize:this.options.scrollPolicyOptions.fetchSize,maxCount:this.options.scrollPolicyOptions.maxCount,initialRowCount:i,controller:e,success:this._domScrollerSuccessFunc.bind(this),error:this._domScrollerErrorFunc.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._isSkeletonSupport()?this._showProgressiveLoading():this._showStatusMessage(),!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")}for(var i=this._getTableHeaderColumns(),l=0;l<i.length;l++)i[l].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")}for(var i=this._getTableFooterCells(),l=0;l<i.length;l++)i[l].style[I.CSS_PROP._BOTTOM]=e+"px"},I.prototype._handleScrollerMaxRowCount=function(){var e=this.getTranslatedString("msgScrollPolicyMaxCountSummary"),t=this.getTranslatedString("msgScrollPolicyMaxCountDetail");E.info(e+"\n"+t)},I.prototype._clearIdleCallback=function(){null!=this._idleCallback&&(A.isRequestIdleCallbackSupported()?(window.cancelIdleCallback(this._idleCallback),window.cancelAnimationFrame(this._idleCallback)):window.cancelAnimationFrame(this._idleCallback),this._idleCallback=null)},I.prototype._requestIdleCallback=function(e,t){if(A.isRequestIdleCallbackSupported()){var i,l=window.setTimeout(function(){this._idleCallback=window.requestAnimationFrame(function(){t()}),l=null},250);e&&A.isBlink()&&(i={timeout:100}),this._idleCallback=window.requestIdleCallback(function(e){null!=l&&(window.clearTimeout(l),t(e))},i)}else this._idleCallback=window.requestAnimationFrame(function(){t()})},I.prototype._renderRowsWhenIdle=function(e,t,i,l,o,n,s,a){var r=this;if(0===e.length)return this._idleCallback=null,void Promise.all(l).then(function(){var e=r._clearTableBodyRowsFromIndex(o);r._getLayoutManager().handleAfterRowsProcessed(i),r._appendElementToTableBody(i,t),e&&r._getTable().focus(),r._afterRowsRendered(t).then(function(e){n(e)},function(e){s(e)})},function(e){s(e)});var _=0;function h(){window.requestAnimationFrame(function(){r._renderRowsWhenIdle(e,t,i,l,o,n,s,a),a&&A.isFirefox()&&t.scrollTop!==r._scrollTop&&(t.scrollTop=r._scrollTop)})}try{this._requestIdleCallback(a,function(n){void 0===n?function(){for(var n=0;n<I._BATCH_PROCESS_SIZE_WHEN_IDLE&&0!==e.length;n++)0!==_||r._getLayoutManager().isTableWidthConstrained()||(t.style[I.CSS_PROP._OVERFLOW_X]="hidden"),l.push(r._renderRow(e.shift(),i,o)),_+=1;h()}():function(n){for(var s=n.timeRemaining(),a=0;(s>a||n.didTimeout)&&0!==e.length;)0!==_||r._getLayoutManager().isTableWidthConstrained()||(t.style[I.CSS_PROP._OVERFLOW_X]="hidden"),l.push(r._renderRow(e.shift(),i,o)),_+=1,a=s-n.timeRemaining(),s=n.timeRemaining();h()}(n)})}catch(e){s(e)}},I.prototype._renderRow=function(e,t,i){var l=e.row,o=e.rowIdx;if(null!=l){var n=this._createTableBodyRow();return this._setTableBodyRowAttributes(l,n),this._styleTableBodyRow(n,!0),this._insertTableBodyRow(o,n,t),this._refreshTableBodyRow(o,l,n,t,i)}return Promise.resolve(null)},I.prototype._afterRowsRendered=function(e){this._clearCachedDomRowData(),this._clearIdleRenderBusyState(),this._hasRowOrCellRendererOrTemplate()&&g.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),i=[];if(t&&t.length>0)for(var l=t.length,o=0;o<l;o++){for(var n=this._getElementRowIdx(t[o]),s=!1,a=i.length,r=0;r<a;r++)i[r]===n&&(s=!0);s||i.push(n)}return i},I.prototype._getColumnIdxsForElementsWithStyleClass=function(e){var t=this._tableQuerySelectorAll(this._getTable(),e),i=[];if(t&&t.length>0)for(var l=t.length,o=0;o<l;o++){var n=this._getElementColumnIdx(t[o]),s=!1;null===n&&(t[o].classList.contains(I.CSS_CLASSES._COLUMN_HEADER_SELECTOR_CELL_CLASS)||t[o].classList.contains(I.CSS_CLASSES._TABLE_FOOTER_SELECTOR_CELL_CLASS))&&(n=-1);for(var a=i.length,r=0;r<a;r++)i[r]===n&&(s=!0);s||i.push(n)}return i},I.prototype._syncTableSizing=function(e){var t=this._getLayoutManager();t.isTableLayoutRefreshRequired()&&(e||t.isSizingRefreshRequired())&&t.refreshTableDimensions();var i=this._updateScrollBufferHeight();this._isLoadMoreOnScroll()&&!this._dataFetching&&this._domScroller?(this._setDataWaitingState(!1),this._domScroller.checkViewport(i>0||this._noDataMessageShown).then(this._domScrollerSuccessFunc,this._checkViewportRejected.bind(this))):(this._clearScrollBuffer(),this._syncScrollPosition())},I.prototype._updateScrollBufferHeight=function(){var e=0,t=this._getLayoutManager(),i=this._getTableBodyScrollBuffer();if(null!=i&&(e=i.offsetHeight)>0){var l=t.getVerticalOverflowDiff(i).bottom,o=Math.min(Math.max(0,e-l),e);o!==e&&(e=o,i.style[I.CSS_PROP._HEIGHT]=e+I.CSS_VAL._PX)}return e},I.prototype._clearScrollBuffer=function(){var e=this._getTableBodyScrollBuffer();if(null!=e){var t=e.offsetHeight;if(t>0){var i=this._getLayoutManager(),l=i.getVerticalOverflowDiff(e).bottom,o=Math.max(0,t-l);if(o>0){var n=c(i.getScroller());n.scrollTop(n.scrollTop()-o),this._skipScrollUpdate=!1,i.updateCurrentScrollState()}}this._getTableBody().removeChild(e),this._clearDomCache(I.CSS_CLASSES._TABLE_BUFFER_ROW_CLASS)}},I.prototype._animateVisibleRows=function(e,t,i){if(i=null==this._animationActionOverride?i:this._animationActionOverride,!this._hasAdditionalPendingTasks()){var l;this._animationActionOverride=null;var o=this._getVisibleRowIdxs(),n=[];for(l=e.length-1;l>=0;l--)null==e[l]&&(e.splice(l,1),t.splice(l,1));for(l=0;l<t.length;l++)-1===o.indexOf(t[l])&&n.push(t[l]);for(n.sort(function(e,t){return e-t}),l=n.length-1;l>=0;l--)e.splice(n[l],1);return this._unregisterResizeListener(),this._animateTableBodyRows(e,i).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,this._getRootElement())},I.prototype._clearCachedMetadata=function(){this._columnDefArray=null,this._setTableActionableMode(!1)},I.prototype._getSlotTemplate=function(e){if(this._IsCustomElement()&&e){var t=L.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(),i=t.length,l=0;l<i;l++){var o=t[l][I._CELL_TEMPLATE],n=t[l][I._HEADER_TEMPLATE],s=t[l][I._FOOTER_TEMPLATE];if(e===o||e===n||e===s)return!1}return!0},I.prototype._getTemplateEngine=function(){return this._templateEngine},I.prototype._getVisibleRowIdxs=function(){var e,t=[],i=this._getTable(),l=this._getTableBody(),o=this._getTableBodyRows();if(o.length>0&&l.offsetHeight>0){var n=c(window).height(),s=this._getLayoutManager().getScroller().getBoundingClientRect();if(s.top>n)return t;var a,r,_,h=s.left>=0?s.left+1:s.right-1,d=s.top>=0?s.top:0,u=document.elementsFromPoint(h,d);for(e=0;e<u.length;e++){var S=u[e];if(S.nodeName===I.DOM_ELEMENT._TD&&this._isTableOwned(S)){a=this._getElementRowIdx(S);break}if(S===i)break}if(null==a&&(a=0),s.bottom>n)r=n-1;else{var E=parseInt(window.getComputedStyle(l).borderBottomWidth,10)||0;r=s.bottom>=0?s.bottom-E-1:0}var C=document.elementsFromPoint(h,r);for(e=0;e<C.length;e++){var T=C[e];if(T.nodeName===I.DOM_ELEMENT._TD&&this._isTableOwned(T)){_=this._getElementRowIdx(T);break}if(T===i)break}for(null==_&&(_=o.length-1),e=a;e<=_;e++)t.push(e)}return t},I.prototype._hasRowOrCellRendererOrTemplate=function(e){if(null!=this._getRowRenderer())return!0;var t=null,i=null,l=this._getColumnDefs();if(null!=e)t=this._getColumnRenderer(e,"cell"),i=this._getSlotTemplate(l[e][I._CELL_TEMPLATE]);else for(var o=l.length,n=0;n<o&&null==(t=this._getColumnRenderer(n,"cell"))&&null==(i=this._getSlotTemplate(l[n][I._CELL_TEMPLATE]));n++);if(null!=t||null!=i)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 i=e||{},l=this._getData(),o=this._getLayoutManager();return null==l||!u.DataProviderFeatureChecker.isDataProvider(l)||this._isPagingModelDataProvider()&&!t?null==l?this._queueTask(function(){o.notifyTableUpdate(I._UPDATE._REFRESH);var e=[];return e.push(this._refreshTableHeader()),e.push(this._refreshTableBody()),e.push(this._refreshTableFooter()),Promise.all(e)}):void 0:this._queueTask(function(){return o.notifyTableUpdate(t?I._UPDATE._DATA_SORT:I._UPDATE._REFRESH),this._isExternalScrollEnabled()||(this._scrollTop=0,o.getScroller().scrollTop=0),l instanceof u.TableDataSourceAdapter&&(i.fetchType="init",this._isLoadMoreOnScroll()&&(i[I._CONST_OFFSET]=0)),this._invokeDataFetchRows(i)}.bind(this))},I.prototype._initTemplateEngine=function(){this._queueTask(function(){var e;try{const t={customElement:this._GetCustomElement()};e=T.__getTemplateEngine(t).then(function(e){this._templateEngine=e}.bind(this),function(e){E.warn(e)})}catch(t){E.warn(t),e=Promise.resolve(null)}return e}.bind(this))},I.prototype._initializeFetchFirstOptions=function(e){var t=e||{};return this._clientId=this._clientId||Symbol(),this._controller=new AbortController,t[I._CONST_CLIENTID]=this._clientId,t[I._CONST_SIGNAL]=this._controller.signal,!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 i=0;i<t.length;i++)if(u.KeyUtils.equals(t[i].key,e))return!0;return!1},I.prototype._invokeDataFetchRows=function(e){var t=this._initializeFetchFirstOptions(e),i=this._getData();return null!=i?new Promise(function(e){var l=this._controller;this._animateOnFetch=!1,this._noMoreData=!1,this._pendingFetchOptions=t,this._setDataWaitingState(!0),this._hasRefreshInQueue=!1,this._dataProviderAsyncIterator=i.fetchFirst(t)[Symbol.asyncIterator]();var o=function(e,t,l){var n=l;return(null==l||this._containsKey(l,t))&&(n=null),e.done||null==n&&(this._isLoadMoreOnScroll()||"function"==typeof i.getPageCount)?e:this._dataProviderAsyncIterator.next().then(function(t){return A.isFetchAborted(t)?Promise.reject(!0):(e.done=t.done,e.value.data=e.value.data.concat(t.value.data),e.value.metadata=e.value.metadata.concat(t.value.metadata),o(e,t.value.metadata,n))},function(e){return Promise.reject(e)})}.bind(this),n=[];n.push(this._dataProviderAsyncIterator.next()),n.push(this._getScrollToKey()),this._isTableHeaderColumnsRendered()||n.push(this._refreshTableHeader()),Promise.all(n).then(function(e){var t=e[0];if(A.isFetchAborted(t))return Promise.reject(!0);var i=e[1];return o(t,t[I._CONST_VALUE].metadata,i)},function(e){return Promise.reject(e)}).then(function(t){var l,o=t[I._CONST_VALUE],n=o[I._CONST_DATA],s=o[I._CONST_METADATA],a=o.metadata.map(function(e){return e[I._CONST_KEY]}),r=!1;for(l=a.length-1;l>=0;l--)for(var _=0;_<l;_++)u.KeyUtils.equals(a[l],a[_])&&(n.splice(l,1),a.splice(l,1),s.splice(l,1),r=!0);r&&E.warn(A.WARN_DUPLICATE_KEYS_DETAIL);var h=0;i instanceof u.TableDataSourceAdapter&&(h=i[I._CONST_OFFSET]);var d=0;this._isPagingModelDataProvider()&&(d=i.getStartItemIndex());var c=[],S=n.length;for(l=0;l<S;l++)c[l]=h+d+l;this._unregisterDomScroller(),t.maxCountLimit?(this._noMoreData=!0,this._handleScrollerMaxRowCount()):t.done&&(this._noMoreData=!0),this._refreshAll({data:n,metadata:s,keys:a,indexes:c},h).then(function(){this._clearDataWaitingState(),this._processFetchSort(o),this._isLoadMoreOnScroll()&&this._registerDomScroller(),e(t)}.bind(this),function(t){this._clearDataWaitingState();var i=this._getTableBody();0===this._getTableBodyRows().length?(this._showNoDataMessage(),this._finalizeNonBodyRowRendering([i]).then(function(){e(null)})):e(null)}.bind(this))}.bind(this),function(t){if(l&&l.signal.aborted)this._clearDataWaitingState(!0),e(null);else{this._clearDataWaitingState();var i=this._getTableBody();0===this._getTableBodyRows().length?(this._showNoDataMessage(),this._finalizeNonBodyRowRendering([i]).then(function(){e(null)})):e(null)}}.bind(this))}.bind(this)):Promise.resolve(null)},I.prototype._invokeDataSort=function(e,t,i){if(this._resetAriaLabel=!0,this._getData()){this._dataFetching&&this._controller&&this._controller.abort(A.getAbortReason(this.OuterWrapper));var l=[],o={};o[I._CONST_ATTRIBUTE]=e,o.direction=t?I._COLUMN_SORT_ORDER._ASCENDING:I._COLUMN_SORT_ORDER._DESCENDING,l.push(o),this._trigger("sort",i,{header:l[0][I._CONST_ATTRIBUTE],direction:l[0].direction}),this._beforeDataRefresh(!0),this._showStatusMessage(),this._initFetch({sortCriteria:l},!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 i=t.length,l=0;l<i;l++)for(var o=Object.keys(t[l]),n=0;n<o.length;n++){var s=o[n];if(t[l][s]!==this._columnDefArray[l][s]&&("id"!==s||null==t[l][s]||0!==t[l][s].indexOf(I._COLUMN_HEADER_ID_PREFIX)||null==this._columnDefArray[l][s]||0!==this._columnDefArray[l][s].indexOf(I._COLUMN_HEADER_ID_PREFIX)))return!0}return!1}return!0},I.prototype._getColumnKeys=function(){for(var e=[],t=this._getColumnDefs(),i=0;i<t.length;i++)e.push(t[i][I._FIELD_ID]);return e},I.prototype._getLocalRowKeys=function(){for(var e=[],t=this._getTableBodyRows(),i=0;i<t.length;i++)e.push(t[i][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(),i=t.length,l=0;l<i;l++){var o=t[l];if(u.KeyUtils.equals(o.id,e))return l}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 i=[];if(null!=e)for(var l=e[I._CONST_INDEXES].length,o=0;o<l;o++)i.push({row:{data:e[I._CONST_DATA][o],metadata:e[I._CONST_METADATA]?e[I._CONST_METADATA][o]:null,key:e[I._CONST_KEYS][o],index:e[I._CONST_INDEXES][o]},rowIdx:t+o});return i},I.prototype._getRowIdxForRowKey=function(e){var t=this._getTableBodyRows();if(t.length>0)for(var i=t.length,l=0;l<i;l++)if(u.KeyUtils.equals(t[l][I._ROW_ITEM_EXPANDO].key,e))return l;return null},I.prototype._getDataSourceRowIndexForRowKey=function(e){var t=this._getTableBodyRows();if(t.length>0)for(var i=t.length,l=0;l<i;l++)if(u.KeyUtils.equals(t[l][I._ROW_ITEM_EXPANDO].key,e)){var o=this._getData(),n=0;return this._isPagingModelDataProvider()&&(n=o.getStartItemIndex()),l+n}return null},I.prototype._getRowKeyForDataSourceRowIndex=function(e){var t=this._getTableBodyRows();if(t.length>0){var i=this._getData(),l=0;this._isPagingModelDataProvider()&&(l=i.getStartItemIndex());for(var o=t.length,n=0;n<o;n++)if(l+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(i){this._startAnimation(e,t).then(function(){i(!0)})}.bind(this))},I.prototype._animateTableBodyRows=function(e,t){if(this._isAnimationDisabled(t))return Promise.resolve(!1);for(var i=[],l=0;l<e.length;l++){var o=e[l];i.push(function(e){return this._animateTableBodyRow(e,t)}.bind(this)(o))}return i.length>0?Promise.all(i):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,i){return null==i&&(i=this._getAnimationEffect(t)),m.startAnimation(e,t,i,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,i=0;i<t;i++)e[i].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],i=c(t).scrollLeft(),l=e.cloneNode(),o=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"),i=e.cloneNode(!0);if(this.component._isDefaultSelectorEnabled()){var l=this.component._getTableElementsByClassName(i,I.CSS_CLASSES._TABLE_DATA_ROW_SELECTOR_CLASS)[0];l.selectedKeys=this.component.options.selected.row,l.rowKey=this.component._getRowKey(e)}var o=i.querySelectorAll("td");i.style.position=I.CSS_VAL._ABSOLUTE,i.style.top=e.offsetTop-s+I.CSS_VAL._PX,i.style.width=e.offsetWidth+I.CSS_VAL._PX,i.classList.add("oj-table-body-row-drag-image"),i.classList.remove(I.MARKER_STYLE_CLASSES._SELECTED),i.classList.remove(I.MARKER_STYLE_CLASSES._FOCUS),i.classList.remove(I.MARKER_STYLE_CLASSES._FOCUS_HIGHLIGHT),o.forEach(function(e,i){e.style.width=t[i].offsetWidth+I.CSS_VAL._PX,e.classList.remove(I.MARKER_STYLE_CLASSES._SELECTED),e.classList.remove(I.MARKER_STYLE_CLASSES._HOVER)}),n.appendChild(i)}.bind(this)),o.appendChild(n),l.appendChild(o),l.classList.add("oj-table-container-drag-image"),l.style[I.CSS_PROP._HEIGHT]=window.innerHeight+I.CSS_VAL._PX,l.style[I.CSS_PROP._OVERFLOW]=I.CSS_VAL._HIDDEN,l.style[I.CSS_PROP._OVERFLOW_X]=I.CSS_VAL._HIDDEN,l.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]=c(t).width()+I.CSS_VAL._PX,n.style[I.CSS_PROP._HEIGHT]=t.scrollHeight+I.CSS_VAL._PX,o.style[I.CSS_PROP._WIDTH]=c(t).width()+I.CSS_VAL._PX,document.body.appendChild(l),c(n).scrollLeft(1*i),l},w.prototype._destroyDragImage=function(){this._dragImage&&(c(this._dragImage).remove(),this._dragImage=null)},w.prototype._getEventColumnIndex=function(e){return this.component._getElementColumnIdx(e.currentTarget)},w.prototype._getOverRowIndex=function(e){var t,i=this.component._getFirstAncestor(e.target,I.DOM_ELEMENT._TR,!0),l=this.component._getFirstAncestor(e.target,"."+I.CSS_CLASSES._TABLE_DATA_CELL_CLASS+", ."+I.CSS_CLASSES._TABLE_SELECTOR_CELL_CLASS,!0);if(null!=l){var o=this.component._getFirstAncestor(l,"."+I.CSS_CLASSES._TABLE_DATA_ROW_CLASS,!0);if(null!=o){t=this.component._getTableBodyRows().indexOf(o);var n=e.target.getBoundingClientRect();e.offsetY>n.height/2&&(t+=1)}}else if(c(i).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);if(null!=t&&null!=this._dragStartColumnIdxs&&this._dragStartColumnIdxs.length>0){if(-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))))return this.component._displayDragOverIndicatorColumn(t,this._currentDropColumnBefore),void e.preventDefault();this.component._removeDragOverIndicatorColumn()}},w.prototype._getDragOverColumnIndex=function(e){let t=this.component._getTableHeaderColumns();if(e.originalEvent.clientX<t[0].getBoundingClientRect().left)return 0;for(let i=0;i<t.length;i++){let l=t[i].getBoundingClientRect();if(e.originalEvent.clientX>l.left&&e.originalEvent.clientX<=l.right)return i}return null},w.prototype.handleColumnDragOver=function(e){if(!this._isColumnReordering()){var t=this._getEventColumnIndex(e);this._currentDropColumnBefore=this._isDragOverBeforeColumn(e,t);var i=this._invokeDropCallback("columns","dragOver",e,{columnIndex:t});return(!1===i||e.isDefaultPrevented())&&this.component._displayDragOverIndicatorColumn(t,this._isDragOverBeforeColumn(e,t)),i}},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._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 i=this._setDragRowsDataTransfer(e,t.rows.dataTypes,this.component._getSelectedRowIdxs());return!!i&&this._invokeDndCallback("drag","rows","dragStart",e,i)}},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),i=this._invokeDropCallback("rows","dragOver",e,{rowIndex:t});return!1===i||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)}),i},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,i,l,o){var n,s=this.component.options.dnd[e];if(s&&s[t]){var a=s[t][i];if(a&&"function"==typeof a)try{this.component._IsCustomElement()?(a(l.originalEvent,o),l.originalEvent.defaultPrevented&&l.preventDefault()):(l.dataTransfer=l.originalEvent.dataTransfer,n=a(l,o))}catch(e){E.error("Error: "+e)}}return n},w.prototype._invokeDropCallback=function(e,t,i,l){var o=this._invokeDndCallback("drop",e,t,i,l);return void 0===o&&this._matchDragDataType(i,e)&&i.preventDefault(),o},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 i=t.getBoundingClientRect(),l=e.originalEvent;return l.clientX>=Math.ceil(i.left)&&l.clientX<Math.floor(i.right)&&l.clientY>=Math.ceil(i.top)&&l.clientY<Math.floor(i.bottom)},w.prototype._isDragOverBeforeColumn=function(e,t){var i=this.component._getTableHeaderColumn(t).getBoundingClientRect();if(null!=e.originalEvent.clientX){var l=i.right-e.originalEvent.clientX<(i.right-i.left)/2;return"rtl"===S.getReadingDirection()?l:!l}return!1},w.prototype._matchDragDataType=function(e,t){var i=e.originalEvent.dataTransfer.types,l=this.component.options.dnd.drop;if(l&&l[t]&&l[t].dataTypes)for(var o=l[t].dataTypes,n="string"==typeof o?[o]:o,s=0;s<i.length;s++)if(n.indexOf(i[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,i){if(t){var l=e.dataTransfer,o=JSON.stringify(i);if("string"==typeof t)l.setData(t,o);else for(var n=0;n<t.length;n++)l.setData(t[n],o)}},w.prototype._setDragRowsDataTransfer=function(e,t,i){var l=[];this.component._rowsDragged=[];for(var o=0;o<i.length;o++){var n=this.component.getDataForVisibleRow(i[o]);let e=this.component._getTableBodyRow(i[o]);n&&e&&(l.push(n),this.component._rowsDragged.push(e))}return l.length?(this._setDragRowsData(e.originalEvent,t,l),this._destroyDragImage(),this._dragImage=this._setDragRowsImage(e.originalEvent,this.component._getTableContainer()),{rows:l}):null},w.prototype._setDragRowsImage=function(e,t){var i=this._cloneTableContainer(t),l=this.component._getTableElementsByTagName(t,I.DOM_ELEMENT._TBODY)[0],o=Math.max(0,e.offsetX),n=Math.max(0,e.offsetY);return l.classList.add(w._CSS_CLASSES._DRAG_SOURCE),e.dataTransfer.setDragImage(i,o,n),i},w.prototype._setReorderColumnsDataTransfer=function(e,t){var i=e.originalEvent.dataTransfer,l=this.component._hashCode(this.component._getTableUID());i.setData("Text",I._DND_REORDER_TABLE_ID_DATA_KEY+":"+l+":"+t.join("-")),this._dragImage=this.component._createTableHeaderColumnDragImage(t);try{i.setDragImage(this._dragImage,0,0)}catch(e){}},w.prototype._updateDragRowsState=function(e,t){if(this._dropRowIndex!==t){var i=this.component._getFirstAncestor(e.target,I.DOM_ELEMENT._TR,!0);this._dropRowIndex=t;let l=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,i,l,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 i=this._getSizingState();return e>0&&t>0&&(e!==i.outerWidth||t!==i.outerHeight&&!this._table._isExternalScrollEnabled())}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.optimizeInitialColumnWidths=function(){},N.prototype._updateScrollPositionCache=function(){var e=this.getScroller();this._cachedScrollTop=e.scrollTop,this._cachedScrollLeft=this._table._getElementScrollLeft(e)},N.prototype._restoreCachedScrollPos=function(){var e=null!=this._cachedScrollTop&&this._cachedScrollTop>0?this._cachedScrollTop:null,t=null!=this._cachedScrollLeft&&this._cachedScrollLeft>0?this._cachedScrollLeft:null;if(null!=e){var i=this.getScroller().scrollHeight-this.getScroller().clientHeight,l=e>i?i:e;this._table._isLoadMoreOnScroll()&&i===l&&(l-=1),this.getScroller().scrollTop=l}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(),t=A.getScrollEventElement(e);null!=t&&(null==this._scrollEventListener&&(this._scrollEventListener=function(t){var i=this._table._getElementScrollLeft(e),l=e.scrollTop;i===this._table._scrollLeft&&l===this._table._scrollTop||(this._handleScrollerScrollLeft(i),this._handleScrollerScrollTop(l),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:t,internalSet:!0}}),this._ticking=!1}.bind(this)),this._ticking=!0),this._table._skipScrollUpdate=!1))}.bind(this)),t.removeEventListener("scroll",this._scrollEventListener),t.addEventListener("scroll",this._scrollEventListener,!1))},N.prototype.updateCurrentScrollState=function(){var e=this.getScroller(),t=this._table._getElementScrollLeft(e),i=e.scrollTop;t===this._table._scrollLeft&&i===this._table._scrollTop||(this._handleScrollerScrollLeft(t),this._handleScrollerScrollTop(i),this._table.option("scrollPosition",this._table._getCurrentScrollPosition(),{_context:{internalSet:!0}}))},N.prototype.unregisterScrollListeners=function(){var e=A.getScrollEventElement(this.getScroller());null!=e&&null!=this._scrollEventListener&&e.removeEventListener("scroll",this._scrollEventListener)},N.prototype._restoreScrollLeft=function(e){S.setScrollLeft(this.getScroller(),e)},N.prototype.getColumnWidthProperty=function(e){var t=window.getComputedStyle(e),i=this._getBoxStyle(t);return parseFloat(t.width)+(i.boxSizing===I.CSS_VAL._BORDER_BOX?-i.borderWidth:i.paddingWidth)},N.prototype.getWidthPropertyFromOffsetWidth=function(e,t,i){var l=window.getComputedStyle(t),o=this._getBoxStyle(l);return e-(i?o.borderWidth:0)},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 i=this._table._getTableElementsByClassName(e,I.CSS_CLASSES._COLUMN_HEADER_CLASS);i.length>0&&(i[0].style[I.CSS_PROP._MIN_HEIGHT]=t+I.CSS_VAL._PX)},N.prototype._applyForcedColumnWidth=function(e,t){var i=e;""!==t&&(t+=I.CSS_VAL._PX),i.style[I.CSS_PROP._MIN_WIDTH]=t,i.style[I.CSS_PROP._WIDTH]=t,i.style[I.CSS_PROP._MAX_WIDTH]=t},N.prototype._getForcedColumnWidth=function(e,t,i){var l=this._getBoxStyle(t);return null!=i?i+(l.boxSizing===I.CSS_VAL._BORDER_BOX?l.borderWidth:-l.paddingWidth):parseFloat(t.width)},N.prototype.getMinimumForcedOffsetWidth=function(e){var t=0,i=this._table._getTableHeaderColumn(e);if(null!=i){var l=this._getBoxStyle(window.getComputedStyle(i)),o=l.paddingWidth+l.borderWidth;t<o&&(t=o)}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.initializeDefaultScrollBarSize=function(e){this._table._defaultScrollBarSize=A.getDefaultScrollBarWidth(e)},N.prototype._getDefaultScrollBarSize=function(){return null==this._table._defaultScrollBarSize&&this.initializeDefaultScrollBarSize(this.getScroller()),this._table._defaultScrollBarSize},N.prototype._clearColumnSizingCache=function(){this._table._columnOffsets=null},N.prototype.getColumnScrollLeft=function(){},N.prototype.getRowScrollTop=function(){},N.prototype.getScrollWidth=function(){return this.getScroller().scrollWidth},N.prototype.getScrollHeight=function(){return this.getScroller().scrollHeight},N.prototype.getClientWidth=function(){return this.getScroller().clientWidth},N.prototype.getClientHeight=function(){return this.getScroller().clientHeight},N.prototype._removeTableDimensionsStyling=function(){this.unregisterScrollListeners();var e=this._table._getTable(),t=this._table._getTableHeader(),i=this._table._getTableHeaderRow(),l=this._table._getTableFooter(),o=this._table._getTableFooterRow(),n=this._table._getTableBody(),s=this._table._getTableBottomSlot(),a=this._table._getTableScroller(),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!=n&&n.removeAttribute(I.DOM_ATTR._STYLE),null!=t){t.removeAttribute(I.DOM_ATTR._STYLE),i.removeAttribute(I.DOM_ATTR._STYLE);for(var _=this._table._getTableElementsByClassName(i,I.CSS_CLASSES._COLUMN_HEADER_TEXT_CLASS),h=_.length,d=0;d<h;d++)_[d].style[I.CSS_PROP._WIDTH]=""}null!=l&&(l.removeAttribute(I.DOM_ATTR._STYLE),o.removeAttribute(I.DOM_ATTR._STYLE)),null!=s&&s.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()),i=this.getExactClientHeight(t),l=this.getExactClientWidth(t),o=window.getComputedStyle(this._table._getTable()),n=this.getExactOffsetHeight(o),s=this.getExactOffsetWidth(o),a=[];if(i>0){var r=n+e;r-i>I.SIZING_ERROR_MARGIN?a[0]=1:i-r>I.SIZING_ERROR_MARGIN?a[0]=-1:a[0]=0}else a[0]=0;return l>0?s-l>I.SIZING_ERROR_MARGIN?a[1]=1:l-s>I.SIZING_ERROR_MARGIN?a[1]=-1:a[1]=0:a[1]=0,a},N.prototype._getPixelStyleEquivalent=function(e,t){return"string"==typeof e?""===e?null:"auto"===e?this._getMinWidthAutoEquivalent(t):null!=e.match(/\D/g)&&-1===e.indexOf("px")?(this._table._tableWidthContainer.style.width=e,this._table._tableWidthContainer.offsetWidth+(t?1:0)):parseFloat(e)+(t?1:0):null!=e?e+(t?1:0):null},N.prototype._getMinWidthAutoEquivalent=function(e){return null},N.prototype.handleMouseEnterHeaderCell=function(e){},N.prototype.handleMouseDownHeaderCell=function(e){var t=this._table._getElementColumnIdx(this._table._getEventTargetElement(e)),i=!1;1===e.which?(this._handleHeaderColumnResizeStart(e,!0)||e[I._KEYBOARD_CODES._MODIFIER_SHIFT]||(i=!0),A.isFirefox()&&S.isMetaKeyPressed(e)&&e.preventDefault()):i=!0,i&&(this._table._setActiveHeader(t,e,!0),c(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,i){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),i=parseFloat(e[I.CSS_PROP._HEIGHT])-t.borderWidth-t.paddingWidth;return Math.round(1e3*(i+Number.EPSILON))/1e3},N.prototype.getExactClientWidth=function(e){var t=this._getBoxStyle(e),i=parseFloat(e[I.CSS_PROP._WIDTH])-t.borderWidth-t.paddingWidth;return Math.round(1e3*(i+Number.EPSILON))/1e3},N.prototype.getExactOffsetHeight=function(e,t){var i=parseFloat(e[I.CSS_PROP._HEIGHT]);return t?Math.ceil(1e3*i)/1e3:Math.round(1e3*(i+Number.EPSILON))/1e3},N.prototype.getExactOffsetWidth=function(e,t){var i=parseFloat(e[I.CSS_PROP._WIDTH]);return t?Math.ceil(1e3*i)/1e3:Math.round(1e3*(i+Number.EPSILON))/1e3};const M=function(e){M.superclass.constructor.call(this,e)};u.Object.createSubclass(M,N,"TableLegacyLayoutManager"),M.prototype.handleAfterRowsProcessed=function(e){this._freezeColumnWidths(e)},M.prototype._handleScrollerScrollLeft=function(e){M.superclass._handleScrollerScrollLeft.call(this,e);var t=this._table._getTableHeaderRow();t&&S.setScrollLeft(t.parentNode,e);var i=this._table._getTableFooterRow();i&&S.setScrollLeft(i.parentNode,e)},M.prototype.registerScrollListeners=function(){M.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 i=t.parentNode;null==this._headerScrollEventListener&&(this._headerScrollEventListener=e),i.removeEventListener("scroll",this._headerScrollEventListener),i.addEventListener("scroll",this._headerScrollEventListener,!1)}var l=this._table._getTableFooterRow();if(null!=l){var o=l.parentNode;null==this._footerScrollEventListener&&(this._footerScrollEventListener=e),o.removeEventListener("scroll",this._footerScrollEventListener),o.addEventListener("scroll",this._footerScrollEventListener,!1)}},M.prototype.unregisterScrollListeners=function(){M.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)},M.prototype._restoreScrollLeft=function(e){S.setScrollLeft(this.getScroller(),e);var t=this._table._getTableHeaderRow();t&&S.setScrollLeft(t.parentNode,e);var i=this._table._getTableFooterRow();i&&S.setScrollLeft(i.parentNode,e)},M.prototype.getScroller=function(){return this._table._getTableBody()},M.prototype.getContentElement=function(){return null},M.prototype.getColumnScrollLeft=function(e){if(0===e)return 0;var t=this.getScroller(),i="rtl"===this._table._GetReadingDirection(),l=this._table._getTableHeaderColumn(e);return null!=l?i?t.clientWidth-l.offsetLeft-l.offsetWidth:l.offsetLeft:void 0},M.prototype.getRowScrollTop=function(e){return e.offsetTop},M.prototype.getVerticalOverflowDiff=function(e){var t=this.getScroller(),i=e.getBoundingClientRect(),l=t.getBoundingClientRect();return{top:l.top-i.top+t.clientTop,bottom:i.bottom-l.bottom+(t.offsetHeight-t.clientHeight-t.clientTop)}},M.prototype.getHorizontalOverflowDiff=function(e){var t="rtl"===this._table._GetReadingDirection(),i=this.getScroller(),l=this.getScrollBarWidth(),o=e.getBoundingClientRect(),n=i.getBoundingClientRect(),s={};return t?(s.left=n.left-o.left+l,s.right=o.right-n.right):(s.left=n.left-o.left,s.right=o.right-n.right+l),s},M.prototype._freezeColumnWidths=function(e){var t=this._table._getColumnDefs().length;this._frozenWidthRows||(this._frozenWidthRows=[]);for(var i=[],l=this._table._getTableBodyLegacyWidthBuffer(),o=0;o<t;o++){var n=l.childNodes[o];if(null!=n){var s=parseFloat(n.style[I.CSS_PROP._MIN_WIDTH]);isNaN(s)?i.push(null):i.push(s)}else i.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=i[d];isNaN(u)||this._applyForcedColumnWidth(h[d],u)}this._frozenWidthRows.push(_)}},M.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]),i=0;i<t.length;i++){var l=t[i];this._applyForcedColumnWidth(l,""),this._table._styleTableBodyCell(i,l)}this._frozenWidthRows=[]},M.prototype._setColumnWidths=function(e){var t,i,l,o,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!=(i=this._table._getTableHeaderColumn(t))){n[t]=this._getForcedColumnWidth(i,window.getComputedStyle(i));var d=this._table._getTableElementsByClassName(i,I.CSS_CLASSES._COLUMN_HEADER_TEXT_CLASS);d.length>0&&(s[t]=d[0].clientHeight)}null!=(l=h.childNodes[t])&&(a[t]=this._getForcedColumnWidth(l,window.getComputedStyle(l))),null!=(o=this._table._getTableFooterCell(t))&&(r[t]=this._getForcedColumnWidth(o,window.getComputedStyle(o)))}for(t=0;t<_;t++)i=this._table._getTableHeaderColumn(t),o=this._table._getTableFooterCell(t),!1!==this._forcedWidthColumns[t]?t===_-1&&!this.isTableWidthConstrained()&&e>0?(null!=i&&(this._applyForcedColumnWidth(i,this._forcedWidthColumns[t]+e),this._applyColumnHeaderHeight(i,s[t])),null!=o&&this._applyForcedColumnWidth(o,this._forcedWidthColumns[t]+e)):this._applyColumnHeaderHeight(i,s[t]):(t===_-1&&!this.isTableWidthConstrained()&&e>0?(null!=i&&(this._applyForcedColumnWidth(i,n[t]+e),this._applyColumnHeaderHeight(i,s[t])),null!=o&&this._applyForcedColumnWidth(o,r[t]+e)):(null!=i&&(this._applyForcedColumnWidth(i,n[t]),this._applyColumnHeaderHeight(i,s[t])),null!=o&&this._applyForcedColumnWidth(o,r[t])),null!=(l=h.childNodes[t])&&this._applyForcedColumnWidth(l,a[t]))},M.prototype._setForcedColumnWidths=function(){var e,t,i,l=this._table._getColumnDefs(),o=l.length,n=this._table._getTableBodyRows();this._forcedWidthColumns=[];for(var s=0;s<o;s++){var a=this._getPixelStyleEquivalent(l[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)}var S=this._table._getPlaceHolderRow();if(null!=S){var E=this._table._getColspanLogicalElements(this._table._getPlaceHolderRowCells(S))[s];if(null!=E){var C=this._getForcedColumnWidth(E,window.getComputedStyle(E),a);this._applyForcedColumnWidth(E,C)}}this._table._hasRowOrCellRendererOrTemplate(s)||null!=(t=this._table._getTableBodyCell(0,s))&&(r=window.getComputedStyle(t),_=this._getForcedColumnWidth(t,r,a));for(var T=0;T<n.length;T++)if(null!=(t=this._table._getTableBodyLogicalCells(T)[s]))if(null==r){var p=window.getComputedStyle(t),g=this._getForcedColumnWidth(t,p,a);this._applyForcedColumnWidth(t,g)}else this._applyForcedColumnWidth(t,_);null!=(i=this._table._getTableFooterCell(s))&&this._applyForcedColumnWidth(i,this._getForcedColumnWidth(i,window.getComputedStyle(i),a))}else this._forcedWidthColumns[s]=!1}},M.prototype._verifyMinAndMaxWidths=function(){for(var e=this._table._getColumnDefs(),t=e.length,i=this._table._getTableBodyRows().length,l=!0;l;){l=!1;for(var o=0;o<t;o++)if(!1===this._forcedWidthColumns[o]){if(this._applyColMinMax(e,o,i,!0)){l=!0;break}if(this._applyColMinMax(e,o,i,!1)){l=!0;break}}}},M.prototype._applyColMinMax=function(e,t,i,l){var o,n,s,a=0,r=!1,_=null,h=null,d=l?this._getPixelStyleEquivalent(e[t].minWidth):this._getPixelStyleEquivalent(e[t].maxWidth);if(null!=d&&(o=this._table._getTableHeaderColumn(t),n=this._table._getTableBodyLogicalCells(0)[t],s=this._table._getTableFooterCell(t),null!=o?a=o.offsetWidth:null!=n?a=n.offsetWidth:null!=s&&(a=s.offsetWidth),a>0&&(l?a<d:a>d))){if(r=!0,this._forcedWidthColumns[t]=d,null!=o){var u=this._getForcedColumnWidth(o,window.getComputedStyle(o),d);this._applyForcedColumnWidth(o,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)}var C=this._table._getPlaceHolderRow();if(null!=C){var T=this._table._getColspanLogicalElements(this._table._getPlaceHolderRowCells(C))[t];if(null!=T){var p=this._getForcedColumnWidth(T,window.getComputedStyle(T),d);this._applyForcedColumnWidth(T,p)}}this._table._hasRowOrCellRendererOrTemplate(t)||null==n||(_=window.getComputedStyle(n),h=this._getForcedColumnWidth(n,_,d));for(var g=0;g<i;g++)if(null!=(n=this._table._getTableBodyLogicalCells(g)[t]))if(null==_){var f=window.getComputedStyle(n),A=this._getForcedColumnWidth(n,f,d);this._applyForcedColumnWidth(n,A)}else this._applyForcedColumnWidth(n,h);null!=s&&this._applyForcedColumnWidth(s,this._getForcedColumnWidth(s,window.getComputedStyle(s),d))}return r},M.prototype._isTableColumnsWidthSet=function(){for(var e=this._table._getColumnDefs().length,t=0;t<e;t++)if(!1!==this._forcedWidthColumns[t])return!0;return!1},M.prototype.refreshTableDimensions=function(){var e=this._getSizingState(),t=this._getTableUpdates();if(this._updateScrollPositionCache(),!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._DIVIDER_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 i=this._table._getTable(),l=this._table._getTableContainer(),o=this._table._getTableHeader(),n=this._table._getTableBody(),s=this._table._getTableFooter(),a=this._table._getTableBottomSlot();this._removeTableDimensionsStyling(),this._table._styleTableContainer(l),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=l.clientWidth,u=l.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,l.clientHeight<u+c?(u=l.clientHeight,i.style[I.CSS_PROP._HEIGHT]=u-c-r+I.CSS_VAL._PX,u-c<i.clientHeight+r&&(e.hasVerticalOverflow=!0)):u=l.clientHeight,S.style[I.CSS_PROP._HEIGHT]=""}}else i.style[I.CSS_PROP._WIDTH]=d+c+I.CSS_VAL._PX,l.clientWidth<d+c?(d=l.clientWidth,i.style[I.CSS_PROP._WIDTH]=d-c+I.CSS_VAL._PX,d-c<i.clientWidth&&(e.hasHorizontalOverflow=!0)):(d=l.clientWidth,i.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&&l.classList.add(I.CSS_CLASSES._TABLE_SCROLL_VERTICAL_CLASS),e.hasHorizontalOverflow&&l.classList.add(I.CSS_CLASSES._TABLE_SCROLL_HORIZONTAL_CLASS),l.classList.add(I.CSS_CLASSES._TABLE_LEGACY_SCROLL_CLASS);var C=0,T=this._table._getTableElementsByTagName(i,"caption");if(T.length>0&&(C=(T=T[0]).offsetHeight,T.style[I.CSS_PROP._DISPLAY]=I.CSS_VAL._INLINE,null!=o)){var p=window.getComputedStyle(l);o.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);var f,A=u-(null!=o?o.offsetHeight:0)-g-C-r-h;if(A>0&&(n.style[I.CSS_PROP._HEIGHT]=A+I.CSS_VAL._PX,n.style[I.CSS_PROP._MIN_HEIGHT]=A+I.CSS_VAL._PX),e.hasHorizontalOverflow){if(0===this._table._getTableBodyRows().length){var m=this._table._getTableBodyMessageCell();if(m){var b=m.offsetWidth;null!=o&&(b=Math.max(b,o.offsetWidth)),null!=s&&(b=Math.max(b,s.offsetWidth)),this._applyForcedColumnWidth(m,b)}}f=d-E+I.CSS_VAL._PX}else f=d+I.CSS_VAL._PX;null!=o&&(o.style[I.CSS_PROP._WIDTH]=f),null!=s&&(s.style[I.CSS_PROP._WIDTH]=f)}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()}},M.prototype._removeTableDimensionsStyling=function(){M.superclass._removeTableDimensionsStyling.call(this),this._table._getTableContainer().classList.remove(I.CSS_CLASSES._TABLE_LEGACY_SCROLL_CLASS)},M.prototype._removeHeaderColumnAndCellColumnWidths=function(){var e,t=this._table._getColumnDefs().length;for(e=0;e<t;e++){var i=this._table._getTableHeaderColumn(e);null!=i&&(this._applyForcedColumnWidth(i,""),this._table._styleTableHeaderColumn(e,i))}this._unfreezeColumnWidths();var l=this._table._getTableBodyRows();if(l.length>0)for(e=0;e<t;e++){var o;if(null!=this._forcedWidthColumns&&!1!==this._forcedWidthColumns[e])for(var n=0;n<l.length;n++)null!==(o=this._table._getTableBodyCell(n,e,null))&&(this._applyForcedColumnWidth(o,""),this._table._styleTableBodyCell(e,o));else null!=(o=this._table._getTableBodyLegacyWidthBuffer().childNodes[e])&&this._applyForcedColumnWidth(o,"")}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,"")},M.prototype.handleMouseEnterHeaderCell=function(e){this._setResizeCursor(e)},M.prototype.handleMouseMoveHeader=function(e){this._setResizeCursor(e)},M.prototype.handleMouseMoveHeaderCell=function(e){this._setResizeCursor(e)&&this._table._handleMouseLeaveColumnHeader(this._table._getEventTargetElement(e))},M.prototype.handleMouseUp=function(e){this._handleHeaderColumnResizeEnd(e)},M.prototype.handleMouseLeaveTable=function(){this._clearTableHeaderColumnsResize()},M.prototype.handleTouchMoveHeader=function(e){this._table._isTableColumnsResizable()&&this._setResizeCursor(e)},M.prototype.handleTouchEnd=function(e){this._handleHeaderColumnResizeEnd(e)&&e.preventDefault()},M.prototype.handleTouchCancel=function(){this._clearTableHeaderColumnsResize()},M.prototype.handleKeyDownEsc=function(){this._clearTableHeaderColumnsResize()},M.prototype.handleFocusout=function(){this._clearTableHeaderColumnsResize()},M.prototype._setResizeCursor=function(e){var t=this._table._getEventTargetElement(e),i=this._table._getElementColumnIdx(t);if(null==i)return!1;if(this._table._getColumnDefs()[i].resizable===I._OPTION_DISABLED&&this._resizeStartColumnIdx!==i-1&&this._resizeStartColumnIdx!==i+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(0===this._table._getTableHeaderColumns().length)return!1;if(i===this._resizeStartColumnIdx||this._resizeColumnStart&&i===this._resizeStartColumnIdx-1||!this._resizeColumnStart&&i===this._resizeStartColumnIdx+1){var l=this._getTableHeaderColumnResizeIndicator();if(null!=l){var o=this.getScroller().getBoundingClientRect();return l.style.left=e.originalEvent.clientX-o.left+"px",!0}}return!1},M.prototype._handleHeaderColumnResizeStart=function(e,t){var i=this._table._getEventTargetElement(e),l=this._table._getElementColumnIdx(i);if(null!=l){var o=this._table._getColumnDefs()[l];if(this._resizeColumnStart=this._isHeaderColumnResizeStart(e),o.resizable===I._OPTION_ENABLED&&null!==this._resizeColumnStart)return this._resizeStartColumnIdx=l,this._resizeStartPageX=this._getPageX(e),this._setTableHeaderColumnsResizeStyling(),this._setTableHeaderColumnResizeIndicator(l),e.preventDefault(),!0}return this._resizeStartColumnIdx=null,this._resizeStartPageX=null,!1},M.prototype._handleHeaderColumnResizeEnd=function(e){var t=this._table.options.columns.length,i=this._table._getEventTargetElement(e),l=this._table._getElementColumnIdx(i);if(null!==l&&l===this._resizeStartColumnIdx||this._resizeColumnStart&&l===this._resizeStartColumnIdx-1||!this._resizeColumnStart&&l===this._resizeStartColumnIdx+1){var o=this._table._getTableHeaderColumn(this._resizeStartColumnIdx);if(null!=o){var n,s=o.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=this._table._isVerticalGridEnabled(),r=s+n,_=this.getMinimumForcedOffsetWidth(this._resizeStartColumnIdx);_>r&&(n+=_-r,r=_);for(var h=[],d=0;d<t;d++)h[d]=c.extend({},{},this._table.options.columns[d]);var u=this._resizeColumnStart?this._resizeStartColumnIdx-1:this._resizeStartColumnIdx+1;u===t-1&&this.isTableHeightConstrained()&&(n+=this.getScrollBarWidth());var S=this._table._getTableHeaderColumn(u);if(S){var E=S.getBoundingClientRect().width-n;(_=this.getMinimumForcedOffsetWidth(u))>E&&(r+=E-_,E=_),h[u].width=this.getWidthPropertyFromOffsetWidth(E,S,a)}return h[this._resizeStartColumnIdx].width=this.getWidthPropertyFromOffsetWidth(r,o,a),this._table.option("columns",h,{_context:{writeback:!0,internalSet:!0}}),this._table._clearCachedMetadata(),this._table._queueTask(function(){this.notifyTableUpdate(I._UPDATE._DIVIDER_RESIZE),setTimeout(function(){this._clearTableHeaderColumnsResize()}.bind(this),0)}.bind(this)),!0}}}return this._clearTableHeaderColumnsResize(),!1},M.prototype._clearTableHeaderColumnsResize=function(){this._resizeStartColumnIdx=null,this._resizeColumnStart=null,this._resizeStartPageX=null,this._clearTableHeaderColumnsResizeStyling(),this._removeTableHeaderColumnResizeIndicator()},M.prototype._isHeaderColumnResizeStart=function(e){var t=null,i=this._table.options.columns.length,l=this._table._getElementColumnIdx(e.target),o=this._table._getTableHeaderColumn(l);if(null!==o){var n=this._table._GetReadingDirection(),s=o.getBoundingClientRect(),a=Math.abs(e.originalEvent.clientX-s.left),r=Math.abs(e.originalEvent.clientX-s.right);a<=I.RESIZE_OFFSET?"rtl"===n&&l!==i-1?t=!1:"ltr"===n&&0!==l&&(t=!0):r<=I.RESIZE_OFFSET&&("ltr"===n&&l!==i-1?t=!1:"rtl"===n&&0!==l&&(t=!0))}return t},M.prototype._setTableHeaderColumnResizeIndicator=function(e){var t=this._getTableHeaderColumnResizeIndicator();null==t&&(t=this._createTableHeaderColumnResizeIndicator());var i=this._table._getTable().getBoundingClientRect(),l=this.getScroller().getBoundingClientRect(),o=this._table._getTableHeaderColumn(e).getBoundingClientRect();t.style.height=i.height+"px",this._resizeColumnStart?("rtl"===this._table._GetReadingDirection()?t.style.left=o.left+o.width-l.left+"px":t.style.left=o.left-l.left+"px",t.style.borderLeftWidth="2px",t.style.borderRightWidth="0"):("rtl"===this._table._GetReadingDirection()?t.style.left=o.left-l.left+"px":t.style.left=o.left+o.width-l.left+"px",t.style.borderRightWidth="2px",t.style.borderLeftWidth="0")},M.prototype._setTableHeaderColumnsResizeStyling=function(){this._table._getTable().classList.add(I.CSS_CLASSES._COLUMN_HEADER_RESIZING_CLASS)},M.prototype._clearTableHeaderColumnsResizeStyling=function(){for(var e=this._table._getTableHeaderColumns(),t=0;t<e.length;t++)e[t].style.cursor="";this._table._getTable().classList.remove(I.CSS_CLASSES._COLUMN_HEADER_RESIZING_CLASS)},M.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},M.prototype._getTableHeaderColumnResizeIndicator=function(){return this._table._getTableElementByClassName(I.CSS_CLASSES._COLUMN_HEADER_RESIZE_INDICATOR_CLASS,!0)},M.prototype._removeTableHeaderColumnResizeIndicator=function(){var e=this._getTableHeaderColumnResizeIndicator();e&&(c(e).remove(),this._table._clearDomCache(I.CSS_CLASSES._COLUMN_HEADER_RESIZE_INDICATOR_CLASS))},M.prototype.displayDragOverIndicatorColumn=function(e,t){this._table._removeDragOverIndicatorColumn();var i=this._table._getTableHeaderRow(),l=this._table._getTableHeaderColumn(e),o=t?I.CSS_CLASSES._COLUMN_HEADER_DRAG_INDICATOR_BEFORE_CLASS:I.CSS_CLASSES._COLUMN_HEADER_DRAG_INDICATOR_AFTER_CLASS;null!=l?l.classList.add(o):0===this._table._getColumnDefs().length&&i.classList.add(o)},M.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,i=0;i<t;i++)e[i].classList.remove(I.CSS_CLASSES._COLUMN_HEADER_DRAG_INDICATOR_BEFORE_CLASS),e[i].classList.remove(I.CSS_CLASSES._COLUMN_HEADER_DRAG_INDICATOR_AFTER_CLASS)};const B=function(e){B.superclass.constructor.call(this,e)};u.Object.createSubclass(B,N,"TableStickyLayoutManager"),B.prototype.unregisterListeners=function(){B.superclass.unregisterListeners.call(this),this._cleanupColumnResizing()},B.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))&&E.error("the css selector string specified in scroller attribute does not resolve to any element"),null==e||e.contains(this._table._getRootElement())||(E.error("the specified scroller must be an ancestor of the component"),e=null)),this._scroller=null!=e?e:this._table._getTableScroller()}return this._scroller},B.prototype._isHTMLScroller=function(){return null!=this._table.options.scrollPolicyOptions&&"html"===this._table.options.scrollPolicyOptions.scroller},B.prototype.getContentElement=function(){return this.getScroller()!==this._table._getTableScroller()?this._table._getTable():null},B.prototype.getColumnScrollLeft=function(e){if(0===e)return 0;var t,i,l=0;if(this._table._isDefaultSelectorEnabled()&&(l+=this._selectorColWidth),this._table._isGutterStartColumnEnabled()){l+=this._table._getTableGutterWidth("start")}var o=this._getFrozenStartColumnIndexes();for(t=0;t<o.length&&(i=o[t])<e;t++)l+=this._getAppliedColumnWidth(i);var n=this.getScroller(),s="rtl"===this._table._GetReadingDirection(),a=this._table._getTableHeaderColumn(e);return null!=a?s?n.clientWidth-l-a.offsetLeft-a.offsetWidth:a.offsetLeft-l:void 0},B.prototype.getRowScrollTop=function(e){var t=e.offsetTop;if(!this._table._isTableHeaderless()){var i=this._table._getTableHeader();null!=i&&(t-=i.offsetHeight)}if(this._table._isAddNewRowEnabled()){var l=this._table._getPlaceHolderRow();null!=l&&(t-=l.offsetHeight)}return t},B.prototype._handleScrollerScrollLeft=function(e){B.superclass._handleScrollerScrollLeft.call(this,e),this._updateFrozenEdges(e,!1),null!=this._dragIndicatorColumnIndex&&this.displayDragOverIndicatorColumn()},B.prototype._handleScrollerScrollTop=function(e){if(B.superclass._handleScrollerScrollTop.call(this,e),this._table._isStickyRowsEnabled())for(var t=this._table._getTableBodyStickyRows(),i=0;i<t.length;i++){var l=t[i];this.getVerticalOverflowDiff(l).top>=0?l.classList.add(I.CSS_CLASSES._TABLE_STUCK_ROW_CLASS):l.classList.remove(I.CSS_CLASSES._TABLE_STUCK_ROW_CLASS)}},B.prototype.getVerticalOverflowDiff=function(e){var t,i,l,o,n=e.getBoundingClientRect();this._table._isExternalScrollEnabled()?(l=null==this._table.options.scrollPolicyOptions.scrollerOffsetTop?0:this._table.options.scrollPolicyOptions.scrollerOffsetTop,o=null==this._table.options.scrollPolicyOptions.scrollerOffsetBottom?0:this._table.options.scrollPolicyOptions.scrollerOffsetBottom):(l=0,o=0);var s=this._table._getTableHeader();null!=s&&(l+=s.offsetHeight);var a=this._table._getPlaceHolderRow();null!=a&&(l+=a.offsetHeight);var r=this._table._getTableFooter();if(null!=r&&(o+=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)){l+=d.offsetHeight;break}}if(this._isHTMLScroller())t=0,i=this.getScroller().clientHeight;else{var u=this.getScrollBarHeight(),c=this.getScroller().getBoundingClientRect();t=c.top,i=c.bottom-u}return{top:t+l-n.top,bottom:n.bottom-i+o}},B.prototype.getHorizontalOverflowDiff=function(e,t){var i,l,o,n,s="rtl"===this._table._GetReadingDirection(),a=this.getScroller(),r=this.getScrollBarWidth(),_=e.getBoundingClientRect(),h=a.getBoundingClientRect();if(this._table._isExternalScrollEnabled()?(o=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):(o=0,n=0),this._table._isDefaultSelectorEnabled()&&-1!==t&&(o+=this._selectorColWidth),this._table._isGutterStartColumnEnabled()){o+=this._table._getTableGutterWidth("start")}if(this._table._isGutterEndColumnEnabled()){n+=this._table._getTableGutterWidth("end")}var d=this._getFrozenStartColumnIndexes();for(i=0;i<d.length&&(l=d[i])<t;i++)o+=this._getAppliedColumnWidth(l);var u=this._getFrozenEndColumnIndexes();for(i=u.length-1;i>-1&&(l=u[i])>t;i--)n+=this._getAppliedColumnWidth(l);var c={};return s?(c.left=h.left+n-_.left+r,c.right=_.right-h.right+o):(c.left=h.left+o-_.left,c.right=_.right-h.right+n+r),c},B.prototype._clearAllCache=function(){this._clearColumnSizingCache(),this._columnMinWidths=null,this._columnMaxWidths=null,this._selectorColWidth=null},B.prototype._clearColumnSizingCache=function(e,t){B.superclass._clearColumnSizingCache.call(this),t||(this._singleResizeColumnWidths=null),this._appliedColumnWidths=null,this._table._gutterStartWidth=null,this._table._gutterEndWidth=null},B.prototype.refreshTableDimensions=function(){var e=this._table._getTableContainer(),t=this._getSizingState(),i=this._getTableUpdates(),l=!1;if(this._updateScrollPositionCache(),i.has(I._UPDATE._REFRESH))this._clearAllCache();else if(i.has(I._UPDATE._ATTACHED)||i.has(I._UPDATE._SHOWN))this._clearColumnSizingCache(!0);else if(i.has(I._UPDATE._RESIZE))l=this._isSingleColumnResizeEnabled(),this._clearColumnSizingCache(!0,l);else if(i.has(I._UPDATE._DATA_REFRESH)||i.has(I._UPDATE._DIVIDER_RESIZE)||i.has(I._UPDATE._COL_REORDER)||i.has(I._UPDATE._ROWS_ADDED)&&!t.hasVerticalOverflow||i.has(I._UPDATE._ROWS_REMOVED)&&t.hasVerticalOverflow)this._clearColumnSizingCache();else{if(!i.has(I._UPDATE._SINGLE_COL_RESIZE)&&!i.has(I._UPDATE._COL_RESIZE))return(i.has(I._UPDATE._ROW_REFRESH)||i.has(I._UPDATE._ROWS_REMOVED)||i.has(I._UPDATE._ADD_ROW_DISPLAY))&&(this.unregisterScrollListeners(),this._setupTableHeight(this._table._getTableScroller(),this._getBottomSlotHeight()),this._table._styleTableContainer(e),this._restoreCachedScrollPos(),this.registerScrollListeners()),i.has(I._UPDATE._ROWS_ADDED)||i.has(I._UPDATE._DATA_SORT)||i.has(I._UPDATE._ADD_ROW_DISPLAY)?(this._initializeFrozenColumns(!0),this._table._styleTableContainer(e),this._updateStickyRowTops()):i.has(I._UPDATE._ROW_REFRESH)&&this._updateStickyRowTops(),this._clearTableUpdates(),void this._enableTableVisibility();this._clearColumnSizingCache(!1,this._isSingleColumnResizeEnabled())}var o=this._table._getTableScroller(),n=this._getBottomSlotHeight(),s=this._table._getTable();if(this._removeTableDimensionsStyling(),A.isSafari()){s.classList.remove(I.CSS_CLASSES._TABLE_ELEMENT_CLASS);s.offsetWidth;s.classList.add(I.CSS_CLASSES._TABLE_ELEMENT_CLASS)}this._table._styleTableContainer(e),this._setupTableHeight(o,n),this._applyColumnWidths(l);var a=this._getTableContainerScrollableState(n);this._setupTableScrollerHeight(o,n);var r=this._getTableContainerScrollableState(n);0===a[0]&&1===r[0]&&this._getDefaultScrollBarSize()>0&&!this._isVerticalScrollBarHidden()&&(this._clearColumnSizingCache(),e.classList.add(I.CSS_CLASSES._TABLE_SCROLL_VERTICAL_CLASS),this._applyColumnWidths(l),this._setupTableScrollerHeight(o,n),r=this._getTableContainerScrollableState(n)),this._initializeFrozenColumns(!0),this._updateStickyRowTops(),1===r[0]?(t.hasVerticalOverflow=!0,e.classList.add(I.CSS_CLASSES._TABLE_SCROLL_VERTICAL_CLASS)):(t.hasVerticalOverflow=!1,e.classList.remove(I.CSS_CLASSES._TABLE_SCROLL_VERTICAL_CLASS)),1===r[1]?(t.hasHorizontalOverflow=!0,e.classList.add(I.CSS_CLASSES._TABLE_SCROLL_HORIZONTAL_CLASS)):(t.hasHorizontalOverflow=!1,e.classList.remove(I.CSS_CLASSES._TABLE_SCROLL_HORIZONTAL_CLASS)),this._table._isStatusMessageShown()&&this._table._refreshTableStatusPosition(),this._finalizeTableDimensions()},B.prototype._updateStickyRowTops=function(){var e,t=this._table._getTableHeaderRow(),i=null==this._table.options.scrollPolicyOptions.scrollerOffsetTop?0:this._table.options.scrollPolicyOptions.scrollerOffsetTop,l=null!=t?t.offsetHeight+i:i,o=this._table._getPlaceHolderRowCells(),n=o.length;if(n>0)for(e=0;e<n;e++)o[e].style[I.CSS_PROP._TOP]=l+"px";if(this._table._isStickyRowsEnabled()){var s,a,r=2,_=this._table._getPlaceHolderRow();null!=_&&(l+=_.offsetHeight);var h=this._table._getTableBodyRows();for(e=0;e<h.length;e++){var d=!1,u=h[e],c=this._table._getChildElementsByTagName(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]=l+"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)}}},B.prototype._initializeColumnLayouts=function(){var e=!1;return this._table._isDefaultSelectorEnabled()?null==this._selectorColWidth&&(e=!0,this._selectorColWidth=this._getPixelStyleEquivalent("2.25rem")):null!=this._selectorColWidth&&(e=!0,this._selectorColWidth=null),e},B.prototype._enforceWeightedMinRules=function(e,t,i,l,o,n){var s=t,a=i;const r=[];let _=!0;for(;_;){_=!1;let t=s,i=e-a;if(i>0)for(let e=0;e<this._table._getColumnDefs().length;e++)if(t>0&&null==l[e]&&null==r[e]){const l=o[e],h=l/t*i,d=this._appliedColumnWidths[e];if(h<d){r[e]=d,n[e]=d,a+=d,_=!0,s-=l;break}n[e]=h,i-=h,t-=l}}},B.prototype._setupTableHeight=function(e,t){this._setupTableScrollerHeight(e,t);var i=this._table._getTableBottomSlot();null!=i&&(this._table._isTableStretchEnabled()?(i.style[I.CSS_PROP._BOTTOM]=0,i.style[I.CSS_PROP._POSITION]=I.CSS_VAL._ABSOLUTE):(i.style[I.CSS_PROP._BOTTOM]="",i.style[I.CSS_PROP._POSITION]=""))},B.prototype._setupTableScrollerHeight=function(e,t){e.removeAttribute(I.DOM_ATTR._STYLE);var i=window.getComputedStyle(this._table._getTableContainer()),l=this.getExactClientHeight(i)-t,o=window.getComputedStyle(e),n=this.getExactOffsetHeight(o);Math.abs(n-l)>I.SIZING_ERROR_MARGIN&&(e.style[I.CSS_PROP._HEIGHT]=l+I.CSS_VAL._PX)},B.prototype._removeHeaderColumnAndCellColumnWidths=function(){var e=this._table._getTableSelectorCol();null!=e&&(e.style[I.CSS_PROP._WIDTH]="");for(var t=this._table._getTableCols(),i=0;i<t.length;i++){var l=t[i];l.style[I.CSS_PROP._WIDTH]="",l.style[I.CSS_PROP._DISPLAY]=""}this._appliedColumnWidths=null},B.prototype._applyColumnWidths=function(){this._initializeColumnLayouts()},B.prototype._setAllColumnWidths=function(){},B.prototype._getAppliedColumnWidth=function(e){return null!=this._appliedColumnWidths&&this._appliedColumnWidths.length>e?this._appliedColumnWidths[e]:0},B.prototype._initializeFrozenColumns=function(e,t){if(e||this.hasRenderedSize()){var i,l,o,n;this._table._isExternalScrollEnabled()?(o=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):(o=0,n=0);var s=!1;if(this._table._isGutterStartColumnEnabled()){this._applyFrozenOffset(-1,o,!0,t),o+=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,o,!0,t),o+=this._selectorColWidth,s=!0);var a=this._getFrozenStartColumnIndexes();if(a.length>0)for(s=!0,i=0;i<a.length;i++)l=a[i],this._applyFrozenOffset(l,o,!0,t),o+=this._getAppliedColumnWidth(l);var r=this._getFrozenEndColumnIndexes();if(r.length>0)for(s=!0,i=r.length-1;i>-1;i--)l=r[i],this._applyFrozenOffset(l,n,!1,t),n+=this._getAppliedColumnWidth(l);s&&this._updateFrozenEdges(this._scrollLeft,!0,t)}},B.prototype._getFrozenStartColumnIndexes=function(){for(var e=[],t=this._table._getColumnDefs(),i=0;i<t.length;i++)t[i].frozenEdge===I._OPTION_FROZEN_EDGE._START&&e.push(i);return e},B.prototype._getFrozenEndColumnIndexes=function(){for(var e=[],t=this._table._getColumnDefs(),i=0;i<t.length;i++)t[i].frozenEdge===I._OPTION_FROZEN_EDGE._END&&e.push(i);return e},B.prototype._applyFrozenOffset=function(e,t,i,l){var o,n,s="rtl"===this._table._GetReadingDirection();n=i&&!s||!i&&s?I.CSS_PROP._LEFT:I.CSS_PROP._RIGHT;var a=t+I.CSS_VAL._PX;if(null!=l){let t;if(-1===e){if(this._table._isGutterStartColumnEnabled()&&(t=this._table._getTableGutterCell("body","start",l)),this._table._isDefaultSelectorEnabled())if(l.classList.contains(I.CSS_CLASSES._TABLE_ADD_ROW_PLACEHOLDER_CLASS)){let e=this._table._isGutterStartColumnEnabled()?1:0;t=this._table._getPlaceHolderRowCells(l)[e]}else t=this._table._getTableBodySelectorCell(l)}else t=l.classList.contains(I.CSS_CLASSES._TABLE_ADD_ROW_PLACEHOLDER_CLASS)?this._table._getPlaceHolderRowCell(e):this._table._getTableBodyCell(null,e,l);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",i=this._table._getTableGutterCell("header",t);if(null!=i&&(i.style[n]=a),null!=_){const e=this._table._getTableGutterCell("body",t,_);null!=e&&(e.style[n]=a)}for(o=0;o<r.length;o++){const e=this._table._getTableGutterCell("body",t,r[o]);null!=e&&(e.style[n]=a)}const l=this._table._getTableGutterCell("footer",t);null!=l&&(l.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(o=0;o<r.length;o++){var u=this._table._getTableBodyRow(o),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(o=0;o<r.length;o++){var T=this._table._getTableBodyCell(o,e);null!=T&&(T.style[n]=a)}var p=this._table._getTableFooterCell(e);null!=p&&(p.style[n]=a)}},B.prototype._updateFrozenEdges=function(e,t,i){var l,o,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(l=0;l<_.length&&((o=_[l])<r&&this._getAppliedColumnWidth(o)>0);l++)n=o}this._updateFrozenEdge(n,!0,t,i);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(l=this._appliedColumnWidths.length-1;l>-1;l--)if(-1!==c.indexOf(l)&&this._getAppliedColumnWidth(l)>0)s=l;else if((u+=this._getAppliedColumnWidth(l))>d)break}this._updateFrozenEdge(s,!1,t,i)},B.prototype._updateFrozenEdge=function(e,t,i,l){var o=!1;t?this._frozenStartIndex!==e&&(null!=this._frozenStartIndex&&this._applyFrozenEdge(this._frozenStartIndex,!1,l),null!=e&&(this._applyFrozenEdge(e,!0,l),o=!0),this._frozenStartIndex=e):this._frozenEndIndex!==e&&(null!=this._frozenEndIndex&&this._applyFrozenEdge(this._frozenEndIndex,!1,l),null!=e&&(this._applyFrozenEdge(e,!0,l),o=!0),this._frozenEndIndex=e),i&&!o&&this._applyFrozenEdge(e,!0,l)},B.prototype._applyFrozenEdge=function(e,t,i){let l;const o=t?"add":"remove",n=this._table.options.columns.length;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=e===n?this._table._getTableGutterCell("body","end",i):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.classList[o](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",i=this._table._getTableGutterCell("header",t);if(null!=i&&i.classList[o](I.CSS_CLASSES._TABLE_FROZEN_EDGE),null!=a){const e=this._table._getTableGutterCell("body",t,a);null!=e&&e.classList[o](I.CSS_CLASSES._TABLE_FROZEN_EDGE)}for(l=0;l<s.length;l++){const e=this._table._getTableGutterCell("body",t,s[l]);null!=e&&e.classList[o](I.CSS_CLASSES._TABLE_FROZEN_EDGE)}const n=this._table._getTableGutterCell("footer",t);null!=n&&n.classList[o](I.CSS_CLASSES._TABLE_FROZEN_EDGE)}else if(-1===e){var r=this._table._getTableSelectorColumn();if(null!=r&&r.classList[o](I.CSS_CLASSES._TABLE_FROZEN_EDGE),null!=a){let e=this._table._isGutterStartColumnEnabled()?1:0;var _=this._table._getPlaceHolderRowCells(a)[e];null!=_&&_.classList[o](I.CSS_CLASSES._TABLE_FROZEN_EDGE)}for(l=0;l<s.length;l++){var h=this._table._getTableBodyRow(l),d=this._table._getTableBodySelectorCell(h);null!=d&&d.classList[o](I.CSS_CLASSES._TABLE_FROZEN_EDGE)}var u=this._table._getTableFooterSelectorCell();null!=u&&u.classList[o](I.CSS_CLASSES._TABLE_FROZEN_EDGE)}else{var c=this._table._getTableHeaderColumn(e);if(null!=c&&c.classList[o](I.CSS_CLASSES._TABLE_FROZEN_EDGE),null!=a){var S=this._table._getPlaceHolderRowCell(e);null!=S&&S.classList[o](I.CSS_CLASSES._TABLE_FROZEN_EDGE)}for(l=0;l<s.length;l++){var E=this._table._getTableBodyCell(l,e);null!=E&&E.classList[o](I.CSS_CLASSES._TABLE_FROZEN_EDGE)}var C=this._table._getTableFooterCell(e);null!=C&&C.classList[o](I.CSS_CLASSES._TABLE_FROZEN_EDGE)}},B.prototype._isSingleColumnResizeEnabled=function(){return this._table.options.columnResizeBehavior===I._OPTION_COLUMN_RESIZE_BEHAVIOR._ADD},B.prototype.handleMouseMoveHeaderCell=function(e){this._isColumnResizing||this._setResizeCursor(e,this._isSingleColumnResizeEnabled())},B.prototype._setResizeCursor=function(e,t){var i=this._table._getEventTargetElement(e),l=this._table._getElementColumnIdx(i);if(null!=l&&null!=this._appliedColumnWidths){var o=!1,n=this._table._getTableHeaderColumn(l);if(null!==n){var s=this._table._GetReadingDirection(),a=this._table.options.columns.length,r=n.getBoundingClientRect(),_=Math.abs(e.originalEvent.clientX-r.left),h=Math.abs(e.originalEvent.clientX-r.right);if((_<=I.RESIZE_OFFSET||h<=I.RESIZE_OFFSET)&&(o=!0,(_<=I.RESIZE_OFFSET&&"ltr"===s||h<=I.RESIZE_OFFSET&&"rtl"===s)&&(l-=1)),o&&l>=0&&(t||l<a-1))this._table._getColumnDefs()[l].resizable===I._OPTION_DISABLED||!t&&this._table._getColumnDefs()[l+1].resizable===I._OPTION_DISABLED?(this._cursor=null,i.style.cursor=""):(this._resizeStartIndex=l,t||(this._resizeEndIndex=l+1),this._cursor="col-resize",i.style.cursor=I.CSS_VAL._COL_RESIZE);else this._cursor=null,i.style.cursor=""}}},B.prototype._handleHeaderColumnResizeStart=function(e,t){var i=this._isSingleColumnResizeEnabled();return(!t||null==this._resizeStartIndex&&null==this._resizeEndIndex)&&this._setResizeCursor(e,i),"col-resize"===this._cursor?(this._isColumnResizing=!0,this._resizeStartPageX=this._getPageX(e),this._minimumStartColWidth=this.getMinimumForcedOffsetWidth(this._resizeStartIndex),i||(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)},B.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)},B.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)},B.prototype._handleResizeMouseMove=function(e){e&&0===e.buttons?this._handleResizeMouseUp(e):this._updateResizeColumnWidths(e,this._isSingleColumnResizeEnabled())},B.prototype._handleResizeMouseUp=function(e){this._removeResizeIndicator(),this._updateResizeColumnWidths(e,this._isSingleColumnResizeEnabled(),!0),this._cleanupColumnResizing()},B.prototype._cleanupColumnResizing=function(){this._removeResizeIndicator(),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)},B.prototype.handleTouchMoveHeader=function(e){this._isColumnResizing&&this._updateResizeColumnWidths(e,this._isSingleColumnResizeEnabled())},B.prototype.handleTouchEnd=function(e){this._isColumnResizing&&(e.preventDefault(),this._removeResizeIndicator(),this._updateResizeColumnWidths(e,this._isSingleColumnResizeEnabled(),!0),this._cleanupColumnResizing())},B.prototype._updateResizeColumnWidths=function(e,t,i){var l,o,n,s,a=this._table._GetReadingDirection(),r=this._getAppliedColumnWidth(this._resizeStartIndex),_=t?null:this._getAppliedColumnWidth(this._resizeEndIndex),h=this._getPageX(e)-this._resizeStartPageX;("ltr"===a?(l=r+h,t||(o=_-h)):(l=r-h,t||(o=_+h)),this._minimumStartColWidth>l?(n=this._minimumStartColWidth-l,l=this._minimumStartColWidth,t||(o-=n)):!t&&this._minimumEndColWidth>o&&(n=this._minimumEndColWidth-o,o=this._minimumEndColWidth,l-=n),this._table._getTableCol(this._resizeStartIndex).style[I.CSS_PROP._WIDTH]=l+I.CSS_VAL._PX,t)||(this._table._getTableCol(this._resizeEndIndex).style[I.CSS_PROP._WIDTH]=o+I.CSS_VAL._PX);this._updateStickyRowTops();var d=this._table.options.columns.length;if(i){var u=this._table._isVerticalGridEnabled(),c=[];for(s=0;s<d;s++)c[s]=Object.assign({},{},this._table.options.columns[s]);var S=this._table._getTableHeaderColumn(this._resizeStartIndex);if(c[this._resizeStartIndex].width=this.getWidthPropertyFromOffsetWidth(l,S,u),t)for(this._singleResizeColumnWidths=[],s=0;s<d;s++)s!==this._resizeStartIndex?this._singleResizeColumnWidths[s]=this._getAppliedColumnWidth(s):this._singleResizeColumnWidths[s]=null;else{var E=this._table._getTableHeaderColumn(this._resizeEndIndex);c[this._resizeEndIndex].width=this.getWidthPropertyFromOffsetWidth(o,E,u)}this._table.option("columns",c,{_context:{writeback:!0,internalSet:!0}}),this._table._clearCachedMetadata(),t?this.notifyTableUpdate(I._UPDATE._SINGLE_COL_RESIZE):this.notifyTableUpdate(I._UPDATE._DIVIDER_RESIZE),null!=this._finishResize&&(this._finishResize(),this._finishResize=null)}else if(t){var C=this._table._getTable(),T=0;for(s=0;s<d;s++)s!==this._resizeStartIndex?T+=this._getAppliedColumnWidth(s):T+=l;C.style[I.CSS_PROP._WIDTH]=T+I.CSS_VAL._PX}},B.prototype._setResizeIndicator=function(){var e,t=!1;this._isSingleColumnResizeEnabled()?this._resizeStartIndex===this._table.options.columns.length-1?(e=this._resizeStartIndex,t=!0):e=this._resizeStartIndex+1:e=this._resizeEndIndex;var i=this._table._getPlaceHolderRowCell(e);null!=i&&i.classList.add(t?I.CSS_CLASSES._COLUMN_RESIZE_LAST_INDICATOR_CLASS:I.CSS_CLASSES._COLUMN_RESIZE_INDICATOR_CLASS);var l=this._table._getTableHeaderColumn(e);null!=l&&l.classList.add(t?I.CSS_CLASSES._COLUMN_RESIZE_LAST_INDICATOR_CLASS:I.CSS_CLASSES._COLUMN_RESIZE_INDICATOR_CLASS),this._table._getVisibleRowIdxs().forEach(function(i){var l=this._table._getTableBodyCell(i,e);null!=l&&l.classList.add(t?I.CSS_CLASSES._COLUMN_RESIZE_LAST_INDICATOR_CLASS:I.CSS_CLASSES._COLUMN_RESIZE_INDICATOR_CLASS)}.bind(this));var o=this._table._getTableFooterCell(e);null!=o&&o.classList.add(t?I.CSS_CLASSES._COLUMN_RESIZE_LAST_INDICATOR_CLASS:I.CSS_CLASSES._COLUMN_RESIZE_INDICATOR_CLASS)},B.prototype._removeResizeIndicator=function(){var e=this._table._getTableContainer(),t=this._table._getTableElementsByClassName(e,I.CSS_CLASSES._COLUMN_RESIZE_INDICATOR_CLASS);t.forEach(function(e){e.classList.remove(I.CSS_CLASSES._COLUMN_RESIZE_INDICATOR_CLASS)}),this._isSingleColumnResizeEnabled()&&(t=this._table._getTableElementsByClassName(e,I.CSS_CLASSES._COLUMN_RESIZE_LAST_INDICATOR_CLASS)).forEach(function(e){e.classList.remove(I.CSS_CLASSES._COLUMN_RESIZE_LAST_INDICATOR_CLASS)})},B.prototype.handleRowRefresh=function(e,t,i){B.superclass.handleRowRefresh.call(this,e,t),i&&this._initializeFrozenColumns(!1,t)},B.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 i=this._getTableColumnDropIndicator();null==i&&(i=this._createTableColumnDropIndicator());var l=this.getScroller().getBoundingClientRect(),o=this._table._getTableHeaderColumn(this._dragIndicatorColumnIndex).getBoundingClientRect();this._dragIndicatorIsStart?"rtl"===this._table._GetReadingDirection()?i.style.left=o.left+o.width-l.left+"px":i.style.left=o.left-l.left+"px":"rtl"===this._table._GetReadingDirection()?i.style.left=o.left-l.left+"px":i.style.left=o.left+o.width-l.left+"px",i.style.height=l.height+"px"}},B.prototype.removeDragOverIndicatorColumn=function(){var e=this._getTableColumnDropIndicator();e&&(c(e).remove(),this._table._clearDomCache(I.CSS_CLASSES._COLUMN_DROP_INDICATOR_CLASS)),this._dragIndicatorColumnIndex=null,this._dragIndicatorIsStart=null},B.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},B.prototype._getTableColumnDropIndicator=function(){return this._table._getTableElementByClassName(I.CSS_CLASSES._COLUMN_DROP_INDICATOR_CLASS,!0)};const P=function(e){P.superclass.constructor.call(this,e)};u.Object.createSubclass(P,B,"TableContentsLayoutManager"),P.prototype._clearAllCache=function(){P.superclass._clearAllCache.call(this),this._columnPreferredWidths=null,this._columnSampledMinWidths=null},P.prototype._clearColumnSizingCache=function(e,t){P.superclass._clearColumnSizingCache.call(this,e,t),e&&(this._columnSampledMinWidths=null,this._columnPreferredWidths=null)},P.prototype._removeTableDimensionsStyling=function(){if(P.superclass._removeTableDimensionsStyling.call(this),null==this._columnPreferredWidths||null==this._columnSampledMinWidths){this._removeHeaderWrapperClass();var e=this._table._getTable();e.style[I.CSS_PROP._WIDTH]=1+I.CSS_VAL._PX,Math.abs(this._table._getTableContainer().clientWidth-e.offsetWidth)<=1?e.style[I.CSS_PROP._WIDTH]="":this._isExternalSizing=!0}},P.prototype._initializeColumnLayouts=function(){var e,t,i,l=P.superclass._initializeColumnLayouts.call(this),o=this._table._getColumnDefs(),n=o.length;if(null==this._columnMinWidths||null==this._columnMaxWidths)for(l=!0,this._columnMinWidths=[],this._columnMaxWidths=[],e=0;e<n;e++){var s=this._table._isVerticalGridEnabled()&&(e>0||this._table._isDefaultSelectorEnabled()),a=this._getPixelStyleEquivalent(o[e].minWidth,s);this._columnMinWidths[e]=null==a||a<=0?null:a;var r=this._getPixelStyleEquivalent(o[e].maxWidth,s);null!=r&&r<this._columnMinWidths[e]!=null&&this._columnMinWidths[e]?this._columnMaxWidths[e]=null:this._columnMaxWidths[e]=r}if(null==this._columnPreferredWidths||null==this._columnSampledMinWidths){for(l=!0,this._columnPreferredWidths=[],this._columnSampledMinWidths=[],e=0;e<n;e++){var _;null!=(t=this._table._getTableHeaderColumn(e))?_=this.getExactOffsetWidth(window.getComputedStyle(t),!0):null!=(i=this._table._getTableBodyCell(0,e,null))&&(_=this.getExactOffsetWidth(window.getComputedStyle(i),!0)),null!=this._columnMinWidths[e]&&this._columnMinWidths[e]>_?this._columnPreferredWidths[e]=this._columnMinWidths[e]:this._columnPreferredWidths[e]=_}for(this._applyHeaderWrapperClass(),e=0;e<n;e++)null!=(t=this._table._getTableHeaderColumn(e))?this._columnSampledMinWidths[e]=this.getExactOffsetWidth(window.getComputedStyle(t),!0):null!=(i=this._table._getTableBodyCell(0,e,null))&&(this._columnSampledMinWidths[e]=this.getExactOffsetWidth(window.getComputedStyle(i),!0))}return l},P.prototype._applyColumnWidths=function(e){P.superclass._applyColumnWidths.call(this);var t=this._table._getTable(),i=this._table._getTableScroller(),l=this._isExternalSizing?i.clientWidth:void 0,o=this._setAllColumnWidths(l,e);if(o>0){if(t.style[I.CSS_PROP._WIDTH]=o+I.CSS_VAL._PX,t.style["table-layout"]="fixed",!0!==this._isExternalSizing){var n=i.clientWidth;n-o>1&&(o=this._setAllColumnWidths(n))>0&&(t.style[I.CSS_PROP._WIDTH]=o+I.CSS_VAL._PX)}}else t.style[I.CSS_PROP._WIDTH]="";return o},P.prototype._setAllColumnWidths=function(e,t){var i,l=this._table._getColumnDefs(),o=l.length;if(0===o)return 0;var n=0,s=0,a=0,r=0,_=0,h=[],d=[];this._appliedColumnWidths=[];var u=null!=this._selectorColWidth?this._selectorColWidth:0;if(this._table._isGutterStartColumnEnabled()){u+=this._table._getTableGutterWidth("start")}if(this._table._isGutterEndColumnEnabled()){u+=this._table._getTableGutterWidth("end")}var c=!1;for(i=0;i<o;i++){var S=this._columnSampledMinWidths[i];if(S>0){var E=this._table._isVerticalGridEnabled()&&(i>0||this._table._isDefaultSelectorEnabled()),C=this._getPixelStyleEquivalent(l[i].width,E);if(null==C&&null!=this._singleResizeColumnWidths&&(C=0!==this._singleResizeColumnWidths[i]?this._singleResizeColumnWidths[i]:null),null!=C)h[i]=C,r+=C,_+=C,n+=C,d[i]=C,this._appliedColumnWidths[i]=C;else{var T;c=!0,h[i]=void 0;var p=this._columnMinWidths[i],g=this._columnMaxWidths[i];_+=T=null!=p&&p>=S?p:null!=g&&S>=g?g:S,n+=null!=g&&g<=this._columnPreferredWidths[i]?g:this._columnPreferredWidths[i],s+=this._columnPreferredWidths[i],a+=this._columnPreferredWidths[i]-T,d[i]=T,this._appliedColumnWidths[i]=T}}else d[i]=0,this._appliedColumnWidths[i]=0,h[i]=0}if(c){var f=null!=e?e-u:n;_<f&&this._enforceMinMaxRules(f,n,a,s,_,r,h,d)}for(i=0;i<o;i++)u+=d[i];if(t&&null!=e&&u<e)return this._singleResizeColumnWidths=null,this._setAllColumnWidths(e);if(null!=this._selectorColWidth){var A=this._table._getTableSelectorCol();null!=A&&(A.style[I.CSS_PROP._WIDTH]=this._selectorColWidth+I.CSS_VAL._PX)}for(i=0;i<o;i++){var m=d[i],b=this._table._getTableCol(i);null!=b&&(b.style[I.CSS_PROP._WIDTH]=m+I.CSS_VAL._PX,0===m&&(b.style[I.CSS_PROP._DISPLAY]=I.CSS_VAL._NONE)),this._appliedColumnWidths[i]=m}return u},P.prototype._enforceMinMaxRules=function(e,t,i,l,o,n,s,a){for(var r=n,_=l,h=o,d=!0;d;){d=!1,t>e?this._enforceConstrainedWeightRules(e-h,i,s,a):this._enforceWeightedMinRules(e,_,r,s,this._columnPreferredWidths,a);for(var u=0,c=0;c<this._table._getColumnDefs().length;c++){if(null==s[c]){var S=this._columnMaxWidths[c];null!=S&&a[c]>S&&(d=!0,s[c]=S,r+=S,h+=S-this._appliedColumnWidths[c],_-=this._columnPreferredWidths[c],a[c]=S,this._appliedColumnWidths[c]=S)}u+=a[c]}d=d&&u<e}},P.prototype._enforceConstrainedWeightRules=function(e,t,i,l){if(e>0){let o=e,n=t;for(let e=0;e<this._table._getColumnDefs().length;e++)if(n>0&&null==i[e]){const t=this._columnPreferredWidths[e]-this._appliedColumnWidths[e],i=t/n*o;l[e]=i+this._appliedColumnWidths[e],o-=i,n-=t}}},P.prototype._applyHeaderWrapperClass=function(){var e=this._table._getTableHeaderColumns();for(let t=0;t<e.length;t++)e[t].classList.add(I.CSS_CLASSES._TABLE_HEADER_WRAP_TEXT_CLASS);this._table._getTable().classList.remove(I.CSS_CLASSES._TABLE_DISABLE_WRAPPING_CLASS)},P.prototype._removeHeaderWrapperClass=function(){var e=this._table._getTableHeaderColumns();for(let t=0;t<e.length;t++)e[t].classList.remove(I.CSS_CLASSES._TABLE_HEADER_WRAP_TEXT_CLASS);this._table._getTable().classList.add(I.CSS_CLASSES._TABLE_DISABLE_WRAPPING_CLASS)};const x=function(e){x.superclass.constructor.call(this,e)};u.Object.createSubclass(x,B,"TableFixedLayoutManager"),x.prototype._clearAllCache=function(){x.superclass._clearAllCache.call(this),this._columnWeights=null,this._columnSampledMinWidths=null},x.prototype._clearColumnSizingCache=function(e,t){x.superclass._clearColumnSizingCache.call(this,e,t),e&&(this._columnSampledMinWidths=null)},x.prototype.optimizeInitialColumnWidths=function(){var e=this._table._getTableContainer();this._clearAllCache();var t=this._table._getTable();if(this._removeTableDimensionsStyling(),A.isSafari()){t.classList.remove(I.CSS_CLASSES._TABLE_ELEMENT_CLASS);t.offsetWidth;t.classList.add(I.CSS_CLASSES._TABLE_ELEMENT_CLASS)}this._table._styleTableContainer(e),this._applyColumnWidths()},x.prototype._removeTableDimensionsStyling=function(){this.unregisterScrollListeners()},x.prototype._initializeColumnLayouts=function(){var e,t=x.superclass._initializeColumnLayouts.call(this),i=this._table._getColumnDefs(),l=i.length;if(null==this._columnMinWidths||null==this._columnMaxWidths||null==this._columnWeights)for(t=!0,this._columnMinWidths=[],this._columnMaxWidths=[],this._columnWeights=[],e=0;e<l;e++){var o=this._table._isVerticalGridEnabled()&&(e>0||this._table._isDefaultSelectorEnabled()),n=this._getPixelStyleEquivalent(i[e].minWidth,o);this._columnMinWidths[e]=null==n||n<=0?1:n;var s=this._getPixelStyleEquivalent(i[e].maxWidth,o);null!=s&&s<this._columnMinWidths[e]?this._columnMaxWidths[e]=null:this._columnMaxWidths[e]=s;var a=parseFloat(i[e].weight);a<=1&&(a=1),this._columnWeights[e]=a}if(null==this._columnSampledMinWidths)for(t=!0,this._resetTableElementStyling(),this._columnSampledMinWidths=[],e=0;e<l;e++){var r=this._table._getTableHeaderColumn(e);if(null!=r)this._columnSampledMinWidths[e]=this.getExactOffsetWidth(window.getComputedStyle(r),!0);else{var _=this._table._getTableBodyCell(0,e,null);null!=_&&(this._columnSampledMinWidths[e]=this.getExactOffsetWidth(window.getComputedStyle(_),!0))}}else t&&this._resetTableElementStyling();return t},x.prototype._resetTableElementStyling=function(){this._table._getTable().style="",this._removeHeaderColumnAndCellColumnWidths()},x.prototype._applyColumnWidths=function(e){x.superclass._applyColumnWidths.call(this);var t=this._table._getTable(),i=this._table._getTableScroller().clientWidth,l=this._setAllColumnWidths(i,e);l>0?(t.style[I.CSS_PROP._WIDTH]=l+I.CSS_VAL._PX,t.style["table-layout"]="fixed"):t.style[I.CSS_PROP._WIDTH]=""},x.prototype._setAllColumnWidths=function(e,t){var i=0,l=this._table._getColumnDefs(),o=l.length;if(0===o)return 0;var n=0,s=0,a=0,r=[],_=[];this._appliedColumnWidths=[];var h=null!=this._selectorColWidth?this._selectorColWidth:0;if(this._table._isGutterStartColumnEnabled()){h+=this._table._getTableGutterWidth("start")}if(this._table._isGutterEndColumnEnabled()){h+=this._table._getTableGutterWidth("end")}var d=!1;for(i=0;i<o;i++)if(this._columnSampledMinWidths[i]>0){var u=this._table._isVerticalGridEnabled()&&(i>0||this._table._isDefaultSelectorEnabled()),c=this._getPixelStyleEquivalent(l[i].width,u);if(null==c&&null!=this._singleResizeColumnWidths&&(c=0!==this._singleResizeColumnWidths[i]?this._singleResizeColumnWidths[i]:null),null!=c)s+=c,a+=c,r[i]=c,_[i]=c,this._appliedColumnWidths[i]=c;else{d=!0;var S=this._columnMinWidths[i];a+=S,r[i]=void 0,n+=this._columnWeights[i],_[i]=S,this._appliedColumnWidths[i]=S}}else _[i]=0,this._appliedColumnWidths[i]=0,r[i]=0;if(d){var E=e-h;a<E&&this._enforceMinMaxRules(E,n,s,r,_)}for(i=0;i<o;i++)h+=_[i];if(t&&null!=e&&h<e)return this._singleResizeColumnWidths=null,this._setAllColumnWidths(e);if(null!=this._selectorColWidth){var C=this._table._getTableSelectorCol();null!=C&&(C.style[I.CSS_PROP._WIDTH]=this._selectorColWidth+I.CSS_VAL._PX)}for(i=0;i<o;i++){var T=_[i],p=this._table._getTableCol(i);null!=p&&(p.style[I.CSS_PROP._WIDTH]=T+I.CSS_VAL._PX,0===T&&(p.style[I.CSS_PROP._DISPLAY]=I.CSS_VAL._NONE)),this._appliedColumnWidths[i]=T}return h},x.prototype._enforceMinMaxRules=function(e,t,i,l,o){for(var n=i,s=t,a=!0;a;){a=!1,this._enforceWeightedMinRules(e,s,n,l,this._columnWeights,o);for(var r=0,_=0;_<this._table._getColumnDefs().length;_++){if(null==l[_]){const e=this._columnMaxWidths[_];null!=e&&o[_]>e&&(a=!0,l[_]=e,n+=e,s-=this._columnWeights[_],o[_]=e,this._appliedColumnWidths[_]=e)}r+=o[_]}a=a&&r<e}},x.prototype._getMinWidthAutoEquivalent=function(e){return 100+(e?1:0)},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),!A.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 i=document.createElement(I.DOM_ELEMENT._DIV);i.id=this.createSubId("rowContext"),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("columnContext"),l.classList.add(I.CSS_CLASSES._HIDDEN_CONTENT_ACC_CLASS),e.appendChild(l);var o=document.createElement(I.DOM_ELEMENT._DIV);o.id=this.createSubId("selectorContext"),o.classList.add(I.CSS_CLASSES._HIDDEN_CONTENT_ACC_CLASS),o.textContent=this.getTranslatedString(I._BUNDLE_KEY._LABEL_SELECT_ROW),e.appendChild(o),this._tableContextInfo=t,this._rowContextInfo=i,this._columnContextInfo=l,this._selectorContextInfo=o}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._getAccessibleRowExpanderContext=function(e,t,i){let l,o=-1,n="unknown";if(null!=e&&void 0!==t&&void 0!==i){let s=-1;const a=this._getTableBodyRows(),r=a.filter((e,i)=>!!oj.KeyUtils.equals(e[I._ROW_ITEM_EXPANDO].metadata.parentKey,t)&&(s=i,!0));o=r.length,o>0&&(l=r.findIndex(t=>oj.KeyUtils.equals(t[I._ROW_ITEM_EXPANDO].metadata.key,e)),n="atLeast",this._hasMoreToFetch()&&!a.slice(s).some(e=>e[I._ROW_ITEM_EXPANDO].metadata.treeDepth<i)||(n="exact"))}return{index:l,count:o,precision:n}},I.prototype._updateAccStatusInfo=function(e){var t,i,l="",o="";if(null!=this._active&&this._hasFocus()&&!A.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";var r=this.getTranslatedString(s,{colnum:n,rownum:a});this._isTableEditMode()&&(r+=" "+this.getTranslatedString("accessibleEditableSummary")),this._tableContextInfo.textContent=r,l+=this._tableContextInfo.id+" "+this._getTableContainer().id+" "}var _=this._getActiveType(),h=this._active.index;if(_===I.ACTIVE_ELEMENT_TYPES._HEADER){if(this._accRowIndex=null,this._accColumnIndex=null,this._columnContextInfo.textContent=this.getTranslatedString("accessibleColumnHeaderContext",{index:this._isDefaultSelectorEnabled()?h+2:h+1}),l+=this._columnContextInfo.id+" ",-1===h){if(null==(i=this._getTableSelectorColumn()))return}else{var d=!1;if(null==(i=this._getTableHeaderColumn(h)))return;var u=this._getSelectedHeaderColumnIdxs();for(t=0;t<u.length;t++)if(u[t]===h){o+=this.getTranslatedString("accessibleStateSelected")+" ",d=!0;break}!d&&this._isColumnSelectionEnabled()&&(o+=this.getTranslatedString("accessibleStateUnselected")+" ");var S=this._getColumnDefs()[h],E=c(i).data("sorted");null!=E?E===I._COLUMN_SORT_ORDER._ASCENDING?o+=this.getTranslatedString("accessibleSortAscending",{id:""})+" ":o+=this.getTranslatedString("accessibleSortDescending",{id:""})+" ":null!=S&&S.sortable===I._OPTION_ENABLED&&(o+=this.getTranslatedString("accessibleSortable",{id:""})+" ")}A.getActionableElementsInNode(i).length>0&&(o+=this.getTranslatedString("accessibleContainsControls")),l+=i.id+" "}else if(_===I.ACTIVE_ELEMENT_TYPES._FOOTER){var C;if(this._accRowIndex=null,this._accColumnIndex=null,this._columnContextInfo.textContent=this.getTranslatedString("accessibleColumnFooterContext",{index:this._isDefaultSelectorEnabled()?h+2:h+1}),l+=this._columnContextInfo.id+" ",-1===h){if(null==(C=this._getTableFooterSelectorCell()))return}else{var T=!1;if(null==(C=this._getTableFooterCell(h)))return;var p=this._getSelectedFooterColumnIdxs();for(t=0;t<p.length;t++)if(p[t]===h){o+=this.getTranslatedString("accessibleStateSelected")+" ",T=!0;break}!T&&this._isColumnSelectionEnabled()&&(o+=this.getTranslatedString("accessibleStateUnselected")+" ")}A.getActionableElementsInNode(C).length>0&&(o+=this.getTranslatedString("accessibleContainsControls")),null!=(i=this._getTableHeaderColumn(h))&&(l+=i.id+" "),l+=C.id+" "}else if(_===I.ACTIVE_ELEMENT_TYPES._DATA_ROW){var g,f=null!=e?e:this._accColumnIndex;null==f&&(f=0);var m=this._getTableBodyRow(h);if(null==m)return;if(null==(g=-1===f?this._getTableBodySelectorCell(m):this._getTableBodyLogicalCells(null,m)[f]))return;if(h!==this._accRowIndex||!1!==this._accFirstFocus){var b=this._isAddNewRowEnabled()?2:1;this._rowContextInfo.textContent=this.getTranslatedString("accessibleRowContext",{index:h+b});var L="",R=!1;null!=this._accRowContext&&(L+=this._accRowContext+" ");var y=this._getSelectedRowIdxs();for(t=0;t<y.length;t++)if(y[t]===h){L+=this.getTranslatedString("accessibleStateSelected")+" ",R=!0;break}!R&&this._isRowSelectionEnabled()&&m[I._DATA_OJ_SELECTABLE]!==I._CONST_OFF&&(L+=this.getTranslatedString("accessibleStateUnselected")+" "),A.getActionableElementsInNode(m).length>0&&(L+=this.getTranslatedString("accessibleContainsControls")+" "),this._rowStateInfo.textContent=L,l+=this._rowContextInfo.id+(-1===f?" ":" "+this._getRowHeaderIds(m,g)+" ")+this._rowStateInfo.id+" "}if(f===this._accColumnIndex&&!1===this._accFirstFocus||(this._columnContextInfo.textContent=this.getTranslatedString("accessibleColumnContext",{index:this._isDefaultSelectorEnabled()?f+2:f+1}),l+=this._columnContextInfo.id+" "),-1===f)l+=this._getAccSelectorString(m)+" ";else{null!=(i=this._getTableHeaderColumn(f))&&(l+=i.id+" "+g.id+" ");var O=g.colSpan;O>1&&(o+=this.getTranslatedString("accessibleColumnsSpan",{count:O}))}this._accRowIndex=h,this._accColumnIndex=f}else if(_===I.ACTIVE_ELEMENT_TYPES._NO_DATA){this._accRowIndex=null,this._accColumnIndex=null,l+=this._getNoDataId()+" ";var v=this._getActiveElement();A.getActionableElementsInNode(v).length>0&&(o+=this.getTranslatedString("accessibleContainsControls"))}else if(_===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();A.getActionableElementsInNode(D).length>0&&(o+=this.getTranslatedString("accessibleContainsControls")),l+=this._rowContextInfo.id+" "+this._rowStateInfo.id+" "}this._stateInfo.textContent=o,l+=this._stateInfo.id,this._applyAccStatusLabel(l)}},I.prototype._announceAccSelectionUpdate=function(e){var t;t=e?this.getTranslatedString("accessibleStateSelected"):this.getTranslatedString("accessibleStateUnselected"),this._stateInfo.textContent=t,this._applyAccStatusLabel(this._stateInfo.id)},I.prototype._getAccSelectorString=function(e){return this._selectorContextInfo.id+" "+this._getRowHeaderIds(e)},I.prototype._clearAccStatusInfo=function(){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._getTable().setAttribute(I.DOM_ATTR._ARIA_LABELLEDBY,e)},I.prototype._getRowHeaderIds=function(e,t){var i,l="",o=this.options.accessibility;if(null!=o&&null!=o.rowHeader){var n=o.rowHeader;Array.isArray(n)||(n=[n]);for(var s=this._getColumnDefs(),a=0;a<n.length;a++)for(var r=n[a],_=0;_<s.length;_++)if(r===s[_].id){null!=(i=this._getTableBodyLogicalCells(null,e)[_])&&i!==t&&(l+=i.id+" ");break}}else null!=(i=this._getTableBodyCell(null,0,e))&&i!==t&&(l+=i.id+" ");return l},I.prototype._getVoiceOverCellLabelledby=function(e,t){var i="",l=this._getTableHeaderColumn(t);return null!=l&&(i+=l.id+" "),i+=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._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,i=I._LOGGER_MSG._ERR_DATA_INVALID_TYPE_DETAIL;throw new Error(t+"\n"+i)}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,i=0;i<t;i++){var l=e.addEventListener(this._dataProviderEventHandlers[i].eventType,this._dataProviderEventHandlers[i].eventHandler);l&&(this._dataProviderEventHandlers[i].eventHandler=l)}}},I.prototype._unregisterDataSourceEventListeners=function(){var e=this._getData();if(null!=this._dataProviderEventHandlers&&null!=e)for(var t=this._dataProviderEventHandlers.length,i=0;i<t;i++)e.removeEventListener(this._dataProviderEventHandlers[i].eventType,this._dataProviderEventHandlers[i].eventHandler)},I.prototype._handleDataRefresh=function(e){try{if(this._hasRefreshInQueue)return;if(this._dataFetching)return this._controller&&this._controller.abort(A.getAbortReason(this.OuterWrapper)),this._pendingFetchStale=!0,void(this._pendingFetchOptions=null);e.detail&&void 0!==e.detail.disregardAfterKey?this._queueTask(function(){this._getLayoutManager().notifyTableUpdate(I._UPDATE._ROWS_REMOVED),this._clearActiveRow(null,!0),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._clearActiveRow(null,!0),this._beforeDataRefresh(),this._invokeDataFetchRows()}.bind(this)))}catch(e){E.error(e)}},I.prototype._beforeDataRefresh=function(e){this._clearIdleCallback(),this._adjustScrollPositionOnFetch(e),this._invalidateRangeSelection(),null!=this._lastSelectedRowIdxArray&&(this._lastSelectedRowIdxArray=[]),this._hasEditableRow()&&this._setTableEditable(!1,!0),this._initialSelectionStateValidated=!1},I.prototype._removeRowsAfterLastValidRow=function(e){this._getCurrentScrollPosition().y>0&&this._bufferScrollerForLastRow(e);var t=this._getRowIdxForRowKey(e);if(t>=0){this._hasEditableRow()&&this._getEditableRowIdx()>t&&this._setTableEditable(!1,!0);for(var i=this._getTableBodyRows().length-1;i>t;i--)this._removeTableBodyRow(i)}},I.prototype._bufferScrollerForLastRow=function(e){var t=this._getLayoutManager();if(null!=e){var i=this._getRowIdxForRowKey(e);if(null!=i){var l=this._getTableBodyRow(i),o=t.getVerticalOverflowDiff(l).bottom;o<0&&(this._createTableBodyScrollBuffer().style[I.CSS_PROP._HEIGHT]=Math.abs(o)+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){if(this._dataFetching)return this._controller&&this._controller.abort(A.getAbortReason(this.OuterWrapper)),void(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){E.error(e)}finally{this._clearDataWaitingState()}},I.prototype._executeTableBodyRowsRemove=function(e,t){var i=this,l=e[I._CONST_KEYS];l&&l.size>0&&this._queueTask(function(){var l=i._getRowsFromEventDetailRemove(e);if(0!==l.length){i._getLayoutManager().notifyTableUpdate(I._UPDATE._ROWS_REMOVED),l.sort(function(e,t){return t.rowIdx-e.rowIdx});var o,n,s,a=[],r=[],_=[],h=l.length,d=!1,u=i._getTableBodyRows();if(u.length>0){for(s=0;s<u.length;s++)a.push(s);for(s=0;s<h;s++){n=l[s].rowIdx,r.push(n);for(var c=0;c<a.length;c++)if(a[c]===n){o=i._getTableBodyRow(n),_.push(o),a.splice(c,1);break}}0===a.length&&(d=!0)}var S=i._getTableBody(),E=S.contains(document.activeElement),C=!1;if(d)E&&(C=!0),i._clearSelectionState();else for(s=0;s<h;s++)if(n=l[s].rowIdx,o=i._getTableBodyRow(n),E&&null!=o&&o.contains(document.activeElement)){C=!0;break}if(i._hasEditableRow()){var T=i._getEditableRowKey();A.containsKey([...e[I._CONST_KEYS]],T)&&i._setTableEditable(!1,!0)}return d?(i._removeAllTableBodyRows(),f()):new Promise(function(e){return i._IsCustomElement()?i._animateVisibleRows(_,r,"remove").then(function(){return p(),f().then(function(){e(!0)})}):(p(),f().then(function(){e(!0)}))})}function p(){var e,t;if(i._getCurrentScrollPosition().y>0){var o,n,s,a,r=0,_=[];for(e=0;e<h;e++)t=l[e].rowIdx,null!=(o=i._getTableBodyRow(t))&&(r+=o.offsetHeight,_.push(o));if(i._isStickyRowsEnabled())for(e=(a=i._getTableBodyStickyRows()).length-1;e>=0;e--)if((s=a[e]).classList.contains(I.CSS_CLASSES._TABLE_STUCK_ROW_CLASS)){n=s;break}for(i._createTableBodyScrollBuffer().style[I.CSS_PROP._HEIGHT]=r+I.CSS_VAL._PX,e=0;e<_.length;e++)if(o=_[e],i._removeTableBodyRow(null,o),null!=n){var d=a.indexOf(o);-1!==d&&a.splice(d,1)}if(null!=n)for(e=a.length-1;e>=0;e--)if(s=a[e],i._getLayoutManager().getVerticalOverflowDiff(s).top>0){n!==s&&i._scrollRowIntoViewport(null,!0,n);break}}else for(e=0;e<h;e++)t=l[e].rowIdx,i._removeTableBodyRow(t)}function g(){i._syncActiveElement(),C&&i._getTable().focus()}function f(){return!0!==e.transient&&i._updateSelectionStateFromEventDetailRemove(e,t),i._refreshTableFooter(),0===(u=i._getTableBodyRows()).length?(i._showNoDataMessage(),i._finalizeNonBodyRowRendering([S]).then(function(){g()})):Promise.resolve().then(function(){g()})}i._updateSelectionStateFromEventDetailRemove(e,t)})},I.prototype._getRowsFromEventDetailRemove=function(e){var t=[];return e[I._CONST_KEYS].forEach(function(e){var i=this._getRowIdxForRowKey(e);if(void 0!==i){var l={key:e,index:i};t.push({row:l,rowIdx:i})}}.bind(this)),t},I.prototype._handleDataRowAdd=function(e){try{this._executeTableBodyRowsAdd(e)}catch(e){E.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){this._getLayoutManager().notifyTableUpdate(I._UPDATE._ROWS_ADDED);var i,l,o=!0,n=[],s=[],a=[],r=[],_=this._getTableBody(),h=t.length;for(i=0;i<h;i++)i>0&&t[i-1].rowIdx!==t[i].rowIdx-1&&(o=!1),s.push(t[i].rowIdx);if(o){for(l=document.createDocumentFragment(),i=0;i<h;i++)n.push(this._renderRow(t[i],l,t[0].rowIdx));a.push(l),r.push(t[0].rowIdx)}else for(i=0;i<h;i++){var d=t[i].rowIdx;l=document.createDocumentFragment(),n.push(this._renderRow(t[i],l,d)),a.push(l),r.push(d)}return this._refreshTableFooter().then(function(){return Promise.all(n).then(function(e){for(this._hideNoDataMessage(),i=0;i<a.length;i++)this._handleRowAdds(_,a[i],r[i]),this._clearCachedDomRowData();0===this._scrollTop&&(1===t.length&&0===t[0].rowIdx||-1!==s.indexOf(0))&&delete(null==this.options.scrollPosition?{}:this.options.scrollPosition).rowKey;return this._requiresDomScrollerRefresh&&this._registerDomScroller(),this._IsCustomElement()?this._animateVisibleRows(e,s,"add").then(function(){return this._syncActiveElement(),this._afterRowsRendered(_)}.bind(this)):(this._syncActiveElement(),this._afterRowsRendered(_))}.bind(this))}.bind(this),function(e){return Promise.reject(e)})}this._requiresDomScrollerRefresh&&this._registerDomScroller()}.bind(this))},I.prototype._getRowsFromEventDetailAdd=function(e){var t=[],i=this._getData(),l=!this._isLoadMoreOnScroll()||A.isIterateAfterDoneNotAllowed(i)&&!this._hasMoreToFetch(),o=this._getLocalRowKeys(),n=o.length;if(!l&&0===n)return this._notifyAddOutOfViewport(),t;var s=A.getAddEventKeysResult(o,e,l),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=i.getStartItemIndex()),i instanceof u.TableDataSourceAdapter&&(u.FlattenedTreeTableDataSource&&i.tableDataSource instanceof u.FlattenedTreeTableDataSource?d=i.tableDataSource:this._isPagingModelTableDataSource()&&u.FlattenedTreeTableDataSource&&i.tableDataSource.dataSource instanceof u.FlattenedTreeTableDataSource&&(d=i.tableDataSource.dataSource)),l||n+h===s.length||this._notifyAddOutOfViewport();for(var S=0;S<h;S++){var E=_[S],C=s.indexOf(E);if(-1!==C&&-1===o.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._handleRowAdds=function(e,t,i){this._getLayoutManager().handleAfterRowsProcessed(t);var l=this._getTableBodyRow(i);null!=l?e.insertBefore(t,l):this._appendElementToTableBody(t,e)},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){E.error(e)}finally{this._clearDataWaitingState()}},I.prototype._executeTableBodyRowsChange=function(e){this._queueTask(function(){var t;this._updateSelectionStateFromEventDetailChange(e);var i=this._getRowsFromEventDetailChange(e);if(0!==i.length){this._getLayoutManager().notifyTableUpdate(I._UPDATE._ROW_REFRESH);var l=i.length,o=[],n=!1,s=[];for(t=0;t<l;t++){var a=i[t],r=this._getTableBodyRow(a.rowIdx);null!=r&&r!==document.activeElement&&r.contains(document.activeElement)&&(n=!0),r&&this._setTableBodyRowAttributes(i[t].row,r),s.push(this._refreshTableBodyRow(a.rowIdx,a.row,null,null,null,!0)),o.push(a.rowIdx)}return this._refreshTableFooter().then(function(){return Promise.all(s).then(function(e){return n&&this._getTable().focus(),this._IsCustomElement()?this._animateVisibleRows(e,o,"update").then(function(){return this._finalizeBodyRowRendering(e)}.bind(this)):this._finalizeBodyRowRendering(e)}.bind(this))}.bind(this),function(e){return Promise.reject(e)})}}.bind(this))},I.prototype._getRowsFromEventDetailChange=function(e){var t=e[I._CONST_DATA],i=e[I._CONST_METADATA],l=[];e[I._CONST_KEYS].forEach(function(e){l.push(e)}),t instanceof Array||(t=[t]),i instanceof Array||(i=[i]);for(var o=[],n=t.length,s=0;s<n;s++){var a=this._getRowIdxForRowKey(l[s]);if(void 0!==a){var r={data:t[s],key:l[s],index:a,metadata:i[s]};o.push({row:r,rowIdx:a})}}return o},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),c(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 i=!!this._isTouchDevice()&&this._getRowSelectionMode()===I._OPTION_SELECTION_MODES._MULTIPLE;if(!this._menuContainer)if(this._GetDefaultContextMenu()){if("redwood"===f.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 i=this._createContextMenuItem("sortDsc",this._IsCustomElement());e.appendChild(i)}}else{if(this._isTableSortable()){let t=this._createContextMenuItem("sort",this._IsCustomElement());e.appendChild(t)}if(i){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)):(c(e).ojMenu("refresh"),c(e).on("ojselect",t))}else{var l=e.querySelectorAll("[data-oj-command]");if(l.length>0){var o,n,s;for(n=0;n<l.length;n++)"OJ-OPTION"!==l[n].tagName&&0!==l[n].getElementsByTagName(I.DOM_ELEMENT._A).length||(o=l[n].getAttribute(I._DATA_OJ_COMMAND).split("-"),s=this._createContextMenuItem(o[o.length-1],this._IsCustomElement()),"OJ-OPTION"===l[n].tagName?l[n].innerHTML=s.innerHTML:c(l[n]).replaceWith(s));this._menuContainer=e,c(e).data("oj-ojMenu")&&(this._IsCustomElement()?e.refresh():c(e).ojMenu("refresh")),this._IsCustomElement()?e.addEventListener("ojAction",t):c(e).on("ojselect",t)}}return e},I.prototype._createContextMenuItem=function(e,t){if("sort"===e){var i,l=this._createContextMenuListItem(e,t);return i=this._IsCustomElement()?document.createElement("oj-menu"):document.createElement(I.DOM_ELEMENT._UL),l.appendChild(i),i.appendChild(this._createContextMenuListItem("sortAsc",t)),i.appendChild(this._createContextMenuListItem("sortDsc",t)),l}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"===f.parseJSONFromFontFamily("oj-theme-json").behavior?this._createContextMenuResizeDialog(0):this._createContextMenuResizePopup(0),this._createContextMenuListItem(e,t)}return null},I.prototype._createContextMenuListItem=function(e,t){var i=document.createElement(t?"oj-option":"li");return i.setAttribute(I._DATA_OJ_COMMAND,"oj-table-"+e),i.appendChild(this._createContextMenuLabel(e,t)),i},I.prototype._createContextMenuLabel=function(e,t){var i=null;"sort"===e?i=this.getTranslatedString("labelSort"):"sortAsc"===e?i=this.getTranslatedString("labelSortAsc"):"sortDsc"===e?i=this.getTranslatedString("labelSortDsc"):"enableNonContiguousSelection"===e?i=this.getTranslatedString("labelEnableNonContiguousSelection"):"disableNonContiguousSelection"===e?i=this.getTranslatedString("labelDisableNonContiguousSelection"):"resize"===e&&(i=this.getTranslatedString("labelResizeColumn"));var l=document.createTextNode(i);if(t)return l;var o=document.createElement(I.DOM_ELEMENT._A);return o.setAttribute(I.DOM_ATTR._HREF,"#"),o.appendChild(l),o},I.prototype._createContextMenuResizePopup=function(e){e=Math.round(e);var t,i,l,o,n,s,a,r,_,h=this._getTableContainer(),d=this._getContextMenuResizePopup(),u=this._getTableUID(),S=this.getTranslatedString("labelResizePopupSpinner");function E(){d.setAttribute("id",u+"_resize_popup"),d.setAttribute(I._DATA_OJ_BINDING_PROVIDER,"none"),h.appendChild(d),l=document.createElement(I.DOM_ELEMENT._DIV),o=document.createElement(I.DOM_ELEMENT._DIV),(n=document.createElement(I.DOM_ELEMENT._DIV)).classList.add(I.CSS_CLASSES._TEXT_ALIGN_END),d.appendChild(l),d.appendChild(o),d.appendChild(n),(r=document.createElement("h6")).textContent=S,l.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"),o.appendChild(t),n.appendChild(a),n.appendChild(s),i=function(){t.value=0,d.close()},s.addEventListener("click",i),a.addEventListener("click",this._handleContextMenuResizePopup.bind(this)),t.min=10,t.step=1,t.required=!0,t.value=e,t.displayOptions={messages:["notewindow"]},t.userAssistanceDensity="compact",t.validators=[new O({pattern:I._VALIDATOR_PATTERN,messageDetail:this.getTranslatedString("msgColumnResizeWidthValidation")})],_={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",o.appendChild(t),n.appendChild(a),n.appendChild(s),c(a).ojButton({component:"ojButton",label:this.getTranslatedString("labelResizePopupSubmit")}),c(s).ojButton({component:"ojButton",label:this.getTranslatedString("labelResizePopupCancel")}),i=function(){c(t).ojInputNumber({value:0}),c(d).ojPopup("close")},c(a).on("click",this._handleContextMenuResizePopup.bind(this)),c(s).on("click",i),c(t).ojInputNumber({component:"ojInputNumber",min:10,step:1,required:!0,value:e,displayOptions:{messages:["notewindow"]},userAssistanceDensity:"compact",validators:[new O({pattern:I._VALIDATOR_PATTERN,messageDetail:this.getTranslatedString("msgColumnResizeWidthValidation")})]}),c(d).ojPopup({modality:"modal",position:{my:I._POSITION._START_TOP,at:I._POSITION._START_BOTTOM,collision:"flipfit"}}),this._cacheDomElement(u+"_resize_popup",d)):(t=document.getElementById(u+"_resize_popup_spinner"),c(t).ojInputNumber("option","value",e)),d},I.prototype._createContextMenuResizeDialog=function(e){e=Math.round(e);let t=this._getTableContainer(),i=this._getContextMenuResizeDialog(),l=this._getTableUID();if(this._IsCustomElement())if(null==i){i=document.createElement("oj-dialog"),i.setAttribute("id",l+"_resize_dialog"),i.setAttribute(I._DATA_OJ_BINDING_PROVIDER,"none"),i.setAttribute("dialog-title",this.getTranslatedString("labelResizeColumnDialog")),t.appendChild(i);let o=document.createElement("div");o.setAttribute("slot","body");let n=document.createElement("oj-input-number");n.setAttribute("id",l+"_resize_column_width_input"),n.labelHint=this.getTranslatedString("labelColumnWidth"),n.min=10,n.step=1,n.required=!0,n.value=e,n.displayOptions={messages:["notewindow"]},n.userAssistanceDensity="compact",n.validators=[new O({pattern:I._VALIDATOR_PATTERN,messageDetail:this.getTranslatedString("msgColumnResizeWidthValidation")})],o.appendChild(n);let s=document.createElement("div");s.setAttribute("slot","footer");let a=document.createElement("oj-button");a.setAttribute("id",l+"_resize_dialog_dialogcancel"),a.textContent=this.getTranslatedString("labelResizePopupCancel");let r=document.createElement("oj-button");r.setAttribute("id",l+"_resize_dialog_dialogapply"),r.chroming="callToAction",r.textContent=this.getTranslatedString("labelResizeDialogApply"),s.appendChild(a),s.appendChild(r),"phone"===T.getDeviceRenderMode()&&(i.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")),i.appendChild(o),i.appendChild(s);let _=function(){n.value=0,i.close()};a.addEventListener("click",_),r.addEventListener("click",this._handleContextMenuResizePopup.bind(this)),i.setAttribute("modality","modal"),this._cacheDomElement(l+"_resize_dialog",i)}else{document.getElementById(l+"_resize_column_width_input").value=e}else if(null==i){i=document.createElement(I.DOM_ELEMENT._DIV),i.setAttribute("id",l+"_resize_dialog"),i.setAttribute(I._DATA_OJ_BINDING_PROVIDER,"none"),"phone"===T.getDeviceRenderMode()&&i.classList.add(I.CSS_CLASSES._TABLE_RESIZE_DIALOG_MOBILE_CLASS),t.appendChild(i);let o=document.createElement("div");o.setAttribute("slot","body"),i.appendChild(o);let n=document.createElement(I.DOM_ELEMENT._INPUT);n.setAttribute("id",l+"_resize_column_width_input");let s=document.createElement(I.DOM_ELEMENT._BUTTON);s.setAttribute("id",l+"_resize_dialog_dialogcancel");let a=document.createElement(I.DOM_ELEMENT._BUTTON);a.setAttribute("id",l+"_resize_dialog_dialogapply");let r=document.createElement("div");r.setAttribute("slot","footer"),i.appendChild(r),o.appendChild(n),r.appendChild(a),r.appendChild(s),c(a).ojButton({component:"ojButton",chroming:"callToAction",label:this.getTranslatedString("labelResizeDialogApply")}),c(s).ojButton({component:"ojButton",label:this.getTranslatedString("labelResizePopupCancel")});let _=function(){c(n).ojInputNumber({value:0}),c(i).ojDialog("close")};c(a).on("click",this._handleContextMenuResizePopup.bind(this)),c(s).on("click",_),c(n).ojInputNumber({component:"ojInputNumber",labelHint:this.getTranslatedString("labelColumnWidth"),min:10,step:1,required:!0,value:e,displayOptions:{messages:["notewindow"]},userAssistanceDensity:"compact",validators:[new O({pattern:I._VALIDATOR_PATTERN,messageDetail:this.getTranslatedString("msgColumnResizeWidthValidation")})]}),c(i).ojDialog({dialogTitle:this.getTranslatedString("labelResizeColumnDialog"),modality:"modal"}),"phone"===T.getDeviceRenderMode()&&(i.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")),this._cacheDomElement(l+"_resize_dialog",i)}else{let t=document.getElementById(l+"_resize_column_width_input");c(t).ojInputNumber("option","value",e)}return i},I.prototype._createInitialTable=function(e,t){var i=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(),i},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 i=this._getTableBodyScrollBuffer();null!=i?t.insertBefore(e,i):t.appendChild(e)},I.prototype._createTableBodyCell=function(){return document.createElement(I.DOM_ELEMENT._TD)},I.prototype._createTableBodyDefaultSelector=function(e,t){var i=null;(i=document.createElement(I.DOM_ELEMENT._TD)).classList.add(I.CSS_CLASSES._TABLE_SELECTOR_CELL_CLASS),this._isStickyLayoutEnabled()&&i.classList.add(I.CSS_CLASSES._TABLE_FROZEN_START),this._isVerticalGridEnabled()&&i.classList.add(I.CSS_CLASSES._TABLE_VGRID_LINES_CLASS),i.setAttribute(I.DOM_ATTR._ID,this._getTableUID()+":select:"+e);var l=document.createElement("oj-selector");var o;return l.id=this._getTableUID()+"_table_selector_"+e,this.options.selected.row.has(e)?l.selectedKeys=new y.KeySetImpl([e]):l.selectedKeys=new y.KeySetImpl,l.setAttribute(I._DATA_OJ_BINDING_PROVIDER,"none"),l.classList.add(I.CSS_CLASSES._TABLE_DATA_ROW_SELECTOR_CLASS),l.setAttribute("selection-mode","multiple"),l.rowKey=e,A.isIos()?(o=this.getTranslatedString(I._BUNDLE_KEY._LABEL_SELECT_ROW),l.setAttribute(I.DOM_ATTR._ARIA_LABEL,o)):(o=this._getAccSelectorString(t),l.setAttribute(I.DOM_ATTR._ARIA_LABELLEDBY,o)),l.addEventListener("selectedKeysChanged",this._selectedKeysChangedListener.bind(this)),i.appendChild(l),t.insertBefore(i,t.firstChild),i},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,i){var l=document.createElement(I.DOM_ELEMENT._TD);return this._isGutterStartColumnEnabled()&&(t+=1),this._isGutterEndColumnEnabled()&&(t+=1),this._isDefaultSelectorEnabled()&&(t+=1),l.setAttribute(I.DOM_ATTR._COLSPAN,t),l.classList.add(I.CSS_CLASSES._TABLE_BODY_MESSAGE_CLASS),l.appendChild(document.createTextNode(i)),e.appendChild(l),l},I.prototype._createTableBodyMessageRow=function(e,t){var i=this._getTableBody(),l=document.createElement(I.DOM_ELEMENT._TR);if(l.id=this.createSubId("messageRow"),l.classList.add(I.CSS_CLASSES._TABLE_BODY_MESSAGE_ROW_CLASS),this._isGutterStartColumnEnabled()){let e=this._createTableGutterCell("body","start");l.appendChild(e)}if(this._createTableBodyMessageCell(l,e,t),this._isGutterEndColumnEnabled()){let e=this._createTableGutterCell("body","end");l.appendChild(e)}return this._appendElementToTableBody(l,i),l},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(),i=this._getTableBodyRowTouchSelectionAffordanceTop();if(!i){(i=document.createElement(I.DOM_ELEMENT._DIV)).classList.add(I.CSS_CLASSES._TABLE_DATA_ROW_TOUCH_SELECTION_AFFORDANCE_TOP_CLASS),i.classList.add(I.CSS_CLASSES._TABLE_DATA_ROW_TOUCH_SELECTION_AFFORDANCE_TOUCH_AREA_CLASS);var l=document.createElement(I.DOM_ELEMENT._DIV);l.classList.add(I.CSS_CLASSES._TABLE_DATA_ROW_TOUCH_SELECTION_AFFORDANCE_TOP_ICON_CLASS),l.setAttribute(I.DOM_ATTR._ROLE,"button"),l.setAttribute(I.DOM_ATTR._ARIA_LABEL,this.getTranslatedString("labelAccSelectionAffordanceTop")),i.appendChild(l),t.appendChild(i)}var o=this._getTableBodyRowTouchSelectionAffordanceBottom();if(!o){(o=document.createElement(I.DOM_ELEMENT._DIV)).classList.add(I.CSS_CLASSES._TABLE_DATA_ROW_TOUCH_SELECTION_AFFORDANCE_BOTTOM_CLASS),o.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")),o.appendChild(n),t.appendChild(o)}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),this._getLayoutManager().initializeDefaultScrollBarSize(e),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 i=this._getTableBody();if(null!=i)return i.parentNode.insertBefore(e,i),e;var l=this._getTableFooter();return null!=l?(l.parentNode.insertBefore(e,l),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 i=document.createElement(I.DOM_ELEMENT._TR);t.appendChild(i);var l=this._getTableBody();if(null!=l)l.parentNode.insertBefore(t,l.nextSibling);else{var o=this._getTableHeader();null!=o?o.parentNode.insertBefore(t,o.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),i=document.createElement(I.DOM_ELEMENT._TR);t.appendChild(i);var l=this._getTableBody();if(null!=l)l.parentNode.insertBefore(t,l);else{var o=this._getTableFooter();null!=o?o.parentNode.insertBefore(t,o):e.appendChild(t)}return this._cacheDomElement(I.CSS_CLASSES._TABLE_HEADER_ROW_CLASS,i),this._cacheDomElement(I.CSS_CLASSES._TABLE_HEADER_CLASS,t),t},I.prototype._createTableHeaderColumn=function(e,t){var i=this._getColumnDefs()[e],l=document.createElement(I.DOM_ELEMENT._TH);this._styleTableHeaderColumn(e,l,!0),l.setAttribute("abbr",i.headerText),l.setAttribute(I.DOM_ATTR._TITLE,i.headerText),this._insertTableHeaderColumn(e,l);var o={columnIndex:e,headerContext:{component:this,parentElement:l}};return i.resizable===I._OPTION_ENABLED&&l.setAttribute("data-oj-resizable",I._OPTION_ENABLED),t?i.sortable===I._OPTION_ENABLED&&l.setAttribute("data-oj-sortable",I._OPTION_ENABLED):i.sortable===I._OPTION_ENABLED?(l.setAttribute("data-oj-sortable",I._OPTION_ENABLED),this._columnHeaderSortableIconRenderer(o)):this._columnHeaderDefaultRenderer(o),l},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 i=document.createElement(I.DOM_ELEMENT._DIV);i.classList.add(I.CSS_CLASSES._COLUMN_HEADER_CLASS),t.appendChild(i);var l=document.createElement(I.DOM_ELEMENT._DIV);l.classList.add(I.CSS_CLASSES._COLUMN_HEADER_TEXT_CLASS),l.textContent=e.length+" Items",i.appendChild(l)}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 i=document.createElement(I.DOM_ELEMENT._DIV);i.classList.add(I.CSS_CLASSES._ICON_CLASS),i.classList.add(I.CSS_CLASSES._TABLE_LOADING_ICON_CLASS),i.setAttribute(I.DOM_ATTR._ARIA_LABEL,this.getTranslatedString(I._BUNDLE_KEY._MSG_FETCHING_DATA)),t.appendChild(i)}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,i,l){var o=this._getDragOverIndicatorRow(!0,t,i,l),n=this._getTableBodyRow(e);null!=n?n.parentNode.insertBefore(o,n):(0===this._getTableBodyRows().length&&this._hideNoDataMessage(),this._getTableBody().appendChild(o))},I.prototype._getDragOverIndicatorRow=function(e,t,i,l){for(var o,n=this._getTableBody().children,s=0;s<n.length;s++)if(n[s].classList.contains(I.CSS_CLASSES._TABLE_DATA_ROW_DRAG_INDICATOR_CLASS)){o=n[s];break}if(e&&null==o){(o=document.createElement(I.DOM_ELEMENT._TR)).classList.add(I.CSS_CLASSES._TABLE_DATA_ROW_DRAG_INDICATOR_CLASS),"line"===i?o.classList.add("oj-table-body-row-drop-target"):null!=t&&(c(o).height(parseInt(c(t).height(),10)),l&&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 a=document.createElement(I.DOM_ELEMENT._TD),r=this._getColumnDefs().length;this._isDefaultSelectorEnabled()&&(r+=1),this._isGutterStartColumnEnabled()&&(r+=1),this._isGutterEndColumnEnabled()&&(r+=1),a.setAttribute(I.DOM_ATTR._COLSPAN,r),o.appendChild(a)}return o},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 c(t.parentNode).children("."+I.CSS_CLASSES._TABLE_DATA_CELL_CLASS).index(t);var i=this._getFirstAncestor(e,"."+I.CSS_CLASSES._COLUMN_HEADER_CELL_CLASS,!0);if(null!=i)return c(i.parentNode).children("."+I.CSS_CLASSES._COLUMN_HEADER_CELL_CLASS).index(i);var l=this._getFirstAncestor(e,"."+I.CSS_CLASSES._TABLE_FOOTER_CELL_CLASS,!0);return null!=l?c(l.parentNode).children("."+I.CSS_CLASSES._TABLE_FOOTER_CELL_CLASS).index(l):null},I.prototype._getElementRowIdx=function(e){var t=this._getFirstAncestor(e,"."+I.CSS_CLASSES._TABLE_DATA_ROW_CLASS,!0);if(null!=t){var i=this._getTableBodyRows(),l=c(i).index(t);return l>-1?l:null}return null},I.prototype._getFirstAncestor=function(e,t,i){var l;if(null==e)return null;if(e.matches(t))return i&&!this._isTableOwned(e)?this._getFirstAncestor(e.parentNode,t,i):e;if(l=c(e).parents(t),i){for(var o=0;o<l.length;o++)if(this._isTableOwned(l[o]))return l[o];return null}return l.length>0?l[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,i){var l=this._getTableBodyCells(e,i);return l.length>t?l[t]:null},I.prototype._getTableBodyLogicalCells=function(e,t){var i=this._getTableBodyCells(e,t);return this._getColspanLogicalElements(i)},I.prototype._getTableBodyCells=function(e,t){var i=[];if(t||(t=this._getTableBodyRow(e)),null!=t)for(var l=t.children,o=0;o<l.length;o++)l[o].classList.contains(I.CSS_CLASSES._TABLE_DATA_CELL_CLASS)&&i.push(l[o]);return i},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 i=this._isAddNewRowEnabled()?e+1:e;return this._isStickyLayoutEnabled()||(i+=1),t.children[i]},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 t.length>e?t[e]:null},I.prototype._getTableFooterCells=function(){var e=[],t=this._getTableFooterRow();if(null!=t)for(var i=t.children,l=0;l<i.length;l++)i[l].classList.contains(I.CSS_CLASSES._TABLE_FOOTER_CELL_CLASS)&&e.push(i[l]);return e},I.prototype._getTableFooterLogicalCells=function(){return this._getColspanLogicalElements(this._getTableFooterCells())},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.length>e&&e>=0?t[e]:null},I.prototype._getTableCols=function(){var e=[],t=this._getTableColGroup();if(null!=t)for(var i=t.children,l=0;l<i.length;l++)i[l].classList.contains(I.CSS_CLASSES._TABLE_COL_CLASS)&&e.push(i[l]);return e},I.prototype._getTableCol=function(e){var t=this._getTableCols();return t.length>0?t[e]:null},I.prototype._getTableSelectorCol=function(){var e=this._getTableColGroup();if(null!=e)for(var t=e.children,i=0;i<t.length;i++)if(t[i].classList.contains(I.CSS_CLASSES._TABLE_COL_SELECTOR_CLASS))return t[i];return null},I.prototype._getTableHeaderColumns=function(){var e=[],t=this._getTableHeaderRow();if(null!=t)for(var i=t.children,l=0;l<i.length;l++)i[l].classList.contains(I.CSS_CLASSES._COLUMN_HEADER_CELL_CLASS)&&e.push(i[l]);return e},I.prototype._getTableHeaderLogicalColumns=function(){return this._getColspanLogicalElements(this._getTableHeaderColumns())},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=[],i=null!=e?e:this._getPlaceHolderRow();if(null!=i)for(var l=i.children,o=0;o<l.length;o++)t.push(l[o]);return t},I.prototype._getPlaceHolderRowCell=function(e){var t=this._isDefaultSelectorEnabled()?e+1:e;this._isGutterStartColumnEnabled()&&(t+=1);var i=this._getPlaceHolderRowCells();return i.length>t&&t>=0?i[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=L.ElementUtils.getUniqueId()+"_table"),this._tableUID},I.prototype._hashCode=function(e){if(null==e)return 0;"string"!==c.type(e)&&(e=e.toString());var t=0;if(0===e.length)return t;for(var i=e.length,l=0;l<i;l++){t=(t<<5)-t+e.charCodeAt(l),t&=t}return t},I.prototype._insertTableBodyCell=function(e,t,i,l,o,n){if(this._setTableBodyCellAttributes(e,t,i,l),n)return o.appendChild(l),l;if(0===i)o.insertBefore(l,o.firstChild);else{var s=this._getTableElementsByClassName(o,I.CSS_CLASSES._TABLE_DATA_CELL_CLASS);if(s.length>=i){var a=s[i-1];a.parentNode.insertBefore(l,a.nextSibling)}else o.appendChild(l)}return l},I.prototype._insertTableBodyRow=function(e,t,i){if(null==i){var l=this._getTableBody(),o=this._getTableBodyRow(e);null!=o?l.insertBefore(t,o):this._appendElementToTableBody(t,l)}else i.appendChild(t);this._clearCachedDomRowData()},I.prototype._insertTableFooterCell=function(e,t){var i=this._getTableFooterRow(),l=this._getTableElementsByClassName(i,I.CSS_CLASSES._TABLE_FOOTER_CELL_CLASS);if(this._setTableFooterColumnAttributes(e,t),0===e)i.insertBefore(t,i.firstChild);else if(i.length>=e){var o=l[e-1];o.parentNode.insertBefore(t,o.nextSibling)}else i.appendChild(t);return t},I.prototype._insertTableHeaderColumn=function(e,t){var i=this._getTableHeaderRow(),l=this._getTableHeaderColumns();this._setTableHeaderColumnAttributes(e,t);var o=this._getTableHeaderColumn(e);if(o)c(o).replaceWith(c(t));else if(0!==e&&l.length>=e){var n=l[e-1];n.parentNode.insertBefore(t,n.nextSibling)}else i.appendChild(t)},I.prototype._moveTableBodyRowTouchSelectionAffordanceTop=function(e){var t=this._getTableBodyRowTouchSelectionAffordanceTop();if(null!=t){null!=e?(c(t).data("rowIdx",e),c(t.children[0]).data("rowIdx",e)):e=c(t).data("rowIdx");var i=this._getLayoutManager().getScroller(),l=this._getTableBodyRow(e),o=this._getTouchAffordanceGlassPane();if(null!=l&&null!=o){var n=l.getBoundingClientRect(),s=o.getBoundingClientRect();t.style[I.CSS_PROP._TOP]=n.top-s.top-t.clientHeight/2+I.CSS_VAL._PX,t.style[I.CSS_PROP._LEFT]=i.clientWidth/2+I.CSS_VAL._PX}}},I.prototype._moveTableBodyRowTouchSelectionAffordanceBottom=function(e){var t=this._getTableBodyRowTouchSelectionAffordanceBottom();if(null!=t){null!=e?(c(t).data("rowIdx",e),c(t.children[0]).data("rowIdx",e)):e=c(t).data("rowIdx");var i=this._getLayoutManager().getScroller(),l=this._getTableBodyRow(e),o=this._getTouchAffordanceGlassPane();if(null!=l&&null!=o){var n=l.getBoundingClientRect(),s=o.getBoundingClientRect();t.style[I.CSS_PROP._TOP]=n.top-s.top+n.height-t.clientHeight/2+I.CSS_VAL._PX,t.style[I.CSS_PROP._LEFT]=i.clientWidth/2+I.CSS_VAL._PX}}},I.prototype._moveTableHeaderColumn=function(e,t,i){var l=[],o=[],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 i=e[t];l[t]=this._getTableHeaderColumn(i),o[t]=this._getTableFooterCell(i),this._isAddNewRowEnabled()&&(s[t]=this._getPlaceHolderRowCell(i))}for(let t=0;t<e.length;t++)null!=l[t]&&(r=l[t].getAttribute(I.DOM_ATTR._COLSPAN),null==h||null!=r&&1!==r||(_?(h.parentNode.insertBefore(l[t],h.nextSibling),h=l[t]):h.parentNode.insertBefore(l[t],h))),null!=o[t]&&(r=o[t].getAttribute(I.DOM_ATTR._COLSPAN),null==d||null!=r&&1!==r||(_?(d.parentNode.insertBefore(o[t],d.nextSibling),d=o[t]):d.parentNode.insertBefore(o[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 S=this._getTableBodyRows();for(let i=0;i<S.length;i++){for(let t=0;t<e.length;t++)n[t]=this._getTableBodyCell(i,e[t],null);a=this._getTableBodyCell(i,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]=c.extend({},{},this.options.columns[e]);var T=_?t:t-1,p=[],g=[],f=[],A=e.reverse();if(!this._columnsDestMap){this._columnsDestMap=[];for(let e=0;e<E.length;e++)this._columnsDestMap[e]=e}return A.forEach(function(e){e<=T&&(T-=1),p.unshift(E.splice(e,1)[0]),g.unshift(this._columnDefArray.splice(e,1)[0]),f.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,...f),this._updateSelectionStylingFromColumnReorder(),this.option("columns",E,{_context:{writeback:!0,originalEvent:i,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]"),i=0;i<t.length;i++){var l=c(t[i]).children(I.DOM_ELEMENT._A);if(0===l.length&&"OJ-OPTION"===t[i].tagName&&(l=c(t[i])),l.length>0){var o,n=t[i].getAttribute(I._DATA_OJ_COMMAND).split("-");"sort"===(n=n[n.length-1])?o=this.getTranslatedString("labelSort"):"sortAsc"===n?o=this.getTranslatedString("labelSortAsc"):"sortDsc"===n?o=this.getTranslatedString("labelSortDsc"):"resize"===n&&(o=this.getTranslatedString("labelResizeColumn")),l.contents().filter(function(){return 3===this.nodeType})[0].nodeValue=o}}},I.prototype._removeDragOverIndicatorColumn=function(){this._getLayoutManager().removeDragOverIndicatorColumn()},I.prototype._removeDragOverIndicatorRow=function(){var e=this._getDragOverIndicatorRow(!1);null!=e&&c(e).remove(),0===this._getTableBodyRows().length&&this._showNoDataMessage()},I.prototype._removeTableBodyRow=function(e,t){var i;null!=(i=null!=t?t:this._getTableBodyRow(e))&&(g.subtreeDetached(i),(this._hasCellTemplate||this._hasRowTemplate)&&this._cleanTemplateNodes(i),c(i).remove(),this._clearCachedDomRowData())},I.prototype._removeAllTableBodyRows=function(){var e=this._getTableBodyRows();if(e.length>0){var t=this._getTableBody();if(null!=t){g.subtreeDetached(t);for(var i=0;i<e.length;i++)(this._hasCellTemplate||this._hasRowTemplate)&&this._cleanTemplateNodes(e[i]),c(e[i]).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),i=0;i<t.length;i++)c(t[i]).remove()},I.prototype._setTableBodyCellAttributes=function(e,t,i,l){var o=l.getAttribute(I.DOM_ATTR._ID);if(!(null!=o&&o.length>0)&&null!=this._getColumnDefs()[i]){var n=this._hashCode(t);null==n&&(n=this._hashCode(null!=t?t.toString():e.toString())),o=this._getTableUID()+":"+n+"_"+i,l.setAttribute(I.DOM_ATTR._ID,o)}},I.prototype._setTableBodyRowAttributes=function(e,t){t[I._ROW_ITEM_EXPANDO]=e},I.prototype._setTableHeaderColumnAttributes=function(e,t){var i=this._getColumnDefs()[e];t.getAttribute(I.DOM_ATTR._ID)||t.setAttribute(I.DOM_ATTR._ID,this._getTableUID()+":"+i.id)},I.prototype._setTableFooterColumnAttributes=function(e,t){var i=this._getColumnDefs()[e];t.getAttribute(I.DOM_ATTR._ID)||t.setAttribute(I.DOM_ATTR._ID,this._getTableUID()+":"+i.id+":ftr")},I.prototype._setTableColumnCellsClass=function(e,t,i){var l,o=this._getTableBodyRows();if(o.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,i))&&n.length>0){var a=n.length;for(l=0;l<a;l++)t?n[l].classList.add(i):n[l].classList.remove(i)}}else{var r=o.length;for(l=0;l<r;l++){var _=this._getTableBodyCell(l,e,null);null!=_&&(t?_.classList.add(i):_.classList.remove(i))}}},I.prototype._setTableBodyMessage=function(e){var t=this._getTableBodyMessageCell();c(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 i=this._getTableElementsByTagName(e,I.DOM_ELEMENT._TFOOT);i=i.length>0?i[0]:null;var l=this._getTableElementsByTagName(e,I.DOM_ELEMENT._TBODY);if(l=l.length>0?l[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 o=function(){};this._focusSetupHandlers(o,o)}e.setAttribute(I.DOM_ATTR._ARIA_LABELLEDBY,this._getTableContainer().id),this._styleTableHeader(t),this._styleTableFooter(i),this._styleTableBody(l),this._styleTableContainer(this._getTableContainer())},I.prototype._styleTableBody=function(e){e.classList.add(I.CSS_CLASSES._TABLE_BODY_CLASS),e.setAttribute(g._OJ_CONTAINER_ATTR,this.widgetName),e.setAttribute(C._OJ_CONTEXT_ATTRIBUTE,"")},I.prototype._styleTableBodyCell=function(e,t,i){var l=this._getColumnDefs()[e];!i&&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 o=t.getAttribute(I.DOM_ATTR._STYLE)||{};if(null==l||null==l.style||!i&&o===l.style||A.applyMergedInlineStyles(t,o,l.style),null==l||null==l.className||!i&&c(t).hasClass(l.className)||c(t).addClass(l.className),!this._isVerticalGridEnabled()||!i&&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!=l?l.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 i=this._getColumnDefs()[e],l=null!=i?i.frozenEdge:null;l===I._OPTION_FROZEN_EDGE._START?(t.classList.add(I.CSS_CLASSES._TABLE_FROZEN_START),t.classList.remove(I.CSS_CLASSES._TABLE_FROZEN_END)):l===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._isFixedLayoutEnabled()?e.classList.add(I.CSS_CLASSES._TABLE_FIXED_CLASS):e.classList.remove(I.CSS_CLASSES._TABLE_FIXED_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 i="0";null!=this.options.scrollPolicyOptions.scrollerOffsetTop&&(i=this.options.scrollPolicyOptions.scrollerOffsetTop),this._updateHeaderTop(i)}if(!this._isTableFooterless()){var l="0";null!=this.options.scrollPolicyOptions.scrollerOffsetBottom&&(l=this.options.scrollPolicyOptions.scrollerOffsetBottom),this._updateFooterBottom(l)}}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._getChildElementsByTagName(e,I.DOM_ELEMENT._TR)[0];t.classList.add(I.CSS_CLASSES._TABLE_FOOTER_ROW_CLASS),t.setAttribute(C._OJ_CONTEXT_ATTRIBUTE,"")}},I.prototype._styleTableFooterCell=function(e,t){var i=this._getColumnDefs()[e],l=t.getAttribute(I.DOM_ATTR._STYLE)||{};null!=i.footerStyle&&l!==i.footerStyle&&A.applyMergedInlineStyles(t,l,i.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),i.footerClassName&&c(t).addClass(i.footerClassName),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._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._getChildElementsByTagName(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(C._OJ_CONTEXT_ATTRIBUTE,"")}},I.prototype._styleTableHeaderColumn=function(e,t,i){var l=this._getColumnDefs()[e];!i&&t.classList.contains(I.CSS_CLASSES._COLUMN_HEADER_CELL_CLASS)||t.classList.add(I.CSS_CLASSES._COLUMN_HEADER_CELL_CLASS),l.sortable===I._OPTION_ENABLED&&t.classList.add(I.CSS_CLASSES._TABLE_SORT_CLASS),!0===l.showRequired&&this._isStickyLayoutEnabled()&&t.classList.add(I.CSS_CLASSES._TABLE_SHOW_REQUIRED_CLASS),this._isVerticalGridEnabled()&&(!i&&t.classList.contains(I.CSS_CLASSES._TABLE_VGRID_LINES_CLASS)||t.classList.add(I.CSS_CLASSES._TABLE_VGRID_LINES_CLASS));var o=t.getAttribute(I.DOM_ATTR._STYLE)||{};null==l.headerStyle||!i&&o===l.headerStyle||A.applyMergedInlineStyles(t,o,l.headerStyle),null==l.headerClassName||!i&&c(t).hasClass(l.headerClassName)||c(t).addClass(l.headerClassName),this._isStickyLayoutEnabled()&&(l.frozenEdge===I._OPTION_FROZEN_EDGE._START?(t.classList.add(I.CSS_CLASSES._TABLE_FROZEN_START),t.classList.remove(I.CSS_CLASSES._TABLE_FROZEN_END)):l.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,i=[],l=e.length,o=0;o<l;o++){var n=e[o].getAttribute(I.DOM_ATTR._COLSPAN);if(null!=n){n=parseInt(n,10);for(var s=0;s<n;s++)i[t+s]=e[o];t+=n}else i[t]=e[o],t+=1}return i},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(),i=this._getTableContainer().getBoundingClientRect();e.style[I.CSS_PROP._TOP]=t.top-i.top+I.CSS_VAL._PX,e.style[I.CSS_PROP._BOTTOM]=t.bottom-i.bottom+I.CSS_VAL._PX,this._moveTableBodyRowTouchSelectionAffordanceTop(),this._moveTableBodyRowTouchSelectionAffordanceBottom()}},I.prototype._refreshTableStatusPosition=function(e){var t=this._getTableContainer(),i=t.clientHeight,l=this._getTableStatusMessage(),o=0,n=i,s=this._getTableHeader();if(null!=s){var a=s.offsetHeight;o=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++)l.appendChild(this._createSkeletonRow());this._skeletonFadeInEndListener=function(){l.classList.remove(I.CSS_CLASSES._ANIMATION_SKELETON_FADE_IN_CLASS),l.querySelectorAll(".oj-table-skeleton").forEach(function(e){e.classList.add("oj-animation-skeleton")}),l.removeEventListener("animationend",this._skeletonFadeInEndListener)}.bind(this),l.addEventListener("animationend",this._skeletonFadeInEndListener),l.classList.add(I.CSS_CLASSES._ANIMATION_SKELETON_FADE_IN_CLASS)}else n<=40&&(o=0,n=i);if(l.style[I.CSS_PROP._TOP]=o+I.CSS_VAL._PX,l.style[I.CSS_PROP._HEIGHT]=n+I.CSS_VAL._PX,l.style[I.CSS_PROP._WIDTH]=t.clientWidth+I.CSS_VAL._PX,e&&(l.style[I.CSS_PROP._DISPLAY]=I.CSS_VAL._INLINE,this._statusMessageShown=!0),!this._isSkeletonSupport()){var c=l.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 i={width:t.offsetWidth,height:t.offsetHeight};return e.removeChild(t),i.height>0&&i.width>0&&(this._defaultSkeletonDim=i),i}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 i=this._getTableContainer();if(i)if(this._cacheDomElement(e,null),t){if(this._cacheDomElement(e,this._getChildElementByClassName(i,e)),null==this._getCachedDomElement(e)){var l=this._getTable();this._cacheDomElement(e,this._getChildElementByClassName(l,e))}}else{var o=this._getTableElementsByClassName(i,e);o.length>0&&this._cacheDomElement(e,o[0])}}return this._getCachedDomElement(e)},I.prototype._getChildElementByClassName=function(e,t){if(null!=e.childNodes&&e.childNodes.length>0)for(var i=0;i<e.childNodes.length;i++)if(null!=e.childNodes[i].classList&&e.childNodes[i].classList.contains(t))return e.childNodes[i];return null},I.prototype._getChildElementsByTagName=function(e,t){var i=[];if(null!=e.childNodes&&e.childNodes.length>0)for(var l=0;l<e.childNodes.length;l++){var o=e.childNodes[l].tagName;null!=o&&o.toLowerCase()===t&&i.push(e.childNodes[l])}return i},I.prototype._getTableElementsByClassName=function(e,t,i){var l=e.getElementsByClassName(t);return this._filterTableOwnedElements(l,i?e:null)},I.prototype._getTableElementsByTagName=function(e,t,i){var l=e.getElementsByTagName(t);return this._filterTableOwnedElements(l,i?e:null)},I.prototype._tableQuerySelectorAll=function(e,t,i){var l=e.querySelectorAll(t);return this._filterTableOwnedElements(l,i?e:null)},I.prototype._filterTableOwnedElements=function(e,t){var i,l;if(t){i=t;for(var o=t.getElementsByTagName(I.DOM_ELEMENT._TABLE),n=0;n<o.length;n++)if(o[n].parentNode===t||o[n].parentNode.parentNode===t){l=o[n];break}}else i=this._getTableContainer(),l=this._getTable();return Array.prototype.filter.call(e,function(e){return this._isTableOwned(e,i,l)}.bind(this))},I.prototype._isTableOwned=function(e,t,i){var l=t||this._getTableContainer(),o=t?i:this._getTable();if(l){if(o){var n=this._getFirstAncestor(e,o.tagName);if(n===o)return!0;if(n)return!1}var s=this._getFirstAncestor(e,"."+I.CSS_CLASSES._TABLE_CONTAINER_CLASS);if(s===l)return!0;if(s)return!1;if(!l.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)for(var t=e.children,i=0;i<t.length;i++)if(t[i].classList.contains(I.CSS_CLASSES._TABLE_SELECTOR_CELL_CLASS))return t[i];return null},I.prototype._getTableSelectorColumn=function(){var e=this._getTableHeaderRow();if(null!=e)for(var t=e.children,i=0;i<t.length;i++)if(t[i].classList.contains(I.CSS_CLASSES._COLUMN_HEADER_SELECTOR_CELL_CLASS))return t[i];return null},I.prototype._getTableFooterSelectorCell=function(){var e=this._getTableFooterRow();if(null!=e)for(var t=e.children,i=0;i<t.length;i++)if(t[i].classList.contains(I.CSS_CLASSES._TABLE_FOOTER_SELECTOR_CELL_CLASS))return t[i];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 i=this._getTableGutterCell("header",e);if(null==i&&(i=this._getTableGutterCell("body",e,this._getTableBodyRow(0))),null==i)return 0;t=this._getLayoutManager().getExactOffsetWidth(window.getComputedStyle(i),!0),"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 i,l="header"===e?I.DOM_ELEMENT._TH:I.DOM_ELEMENT._TD,o=document.createElement(l);return i="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,o.classList.add(i),"start"===t?o.classList.add(I.CSS_CLASSES._TABLE_FROZEN_START):o.classList.add(I.CSS_CLASSES._TABLE_FROZEN_END),o},I.prototype._getTableGutterCell=function(e,t,i){let l;if("header"===e?(i=this._getTableHeaderRow(),l="start"===t?I.CSS_CLASSES._TABLE_GUTTER_START_HEADER_CELL:I.CSS_CLASSES._TABLE_GUTTER_END_HEADER_CELL):"footer"===e?(i=this._getTableFooterRow(),l="start"===t?I.CSS_CLASSES._TABLE_GUTTER_START_FOOTER_CELL:I.CSS_CLASSES._TABLE_GUTTER_END_FOOTER_CELL):l="start"===t?I.CSS_CLASSES._TABLE_GUTTER_START_BODY_CELL:I.CSS_CLASSES._TABLE_GUTTER_END_BODY_CELL,null!=i)for(var o=i.children,n=0;n<o.length;n++)if(o[n].classList.contains(l))return o[n];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_FIXED_CLASS:"oj-table-fixed",_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_DISABLE_WRAPPING_CLASS:"oj-table-disable-wrapping",_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_RESIZE_LAST_INDICATOR_CLASS:"oj-table-column-resize-last-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_DATA_ROW_REFRESH_CLASS:"oj-table-body-row-refresh",_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_CLASS:"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(){if(null!=this._openPopups){for(var e=0;e<this._openPopups.length;e++)this._openPopups[e].removeEventListener("focusin",this._handlePopupFocusinListener),this._openPopups[e].removeEventListener("focusout",this._handlePopupFocusoutListener);this._openPopups=null}this._handlePopupFocusinListener=null,this._handlePopupFocusoutListener=null},I.prototype._handlePopupFocusout=function(e){this._handleFocusout(e)},I.prototype._handlePopupFocusin=function(e){this._handleFocusin(e,!0)},I.prototype._handleFocusout=function(e){this._clearFocusoutTimeout();var t=this._getTable();this._clearOpenPopupListeners(),this._openPopups=v.getAllLogicalChildPopups(t),this._handlePopupFocusinListener=this._handlePopupFocusin.bind(this),this._handlePopupFocusoutListener=this._handlePopupFocusout.bind(this);for(var i=0;i<this._openPopups.length;i++)this._openPopups[i].addEventListener("focusin",this._handlePopupFocusinListener),this._openPopups[i].addEventListener("focusout",this._handlePopupFocusoutListener);this._setFocusoutBusyState(),this._focusoutTimeout=setTimeout(function(){this._isTableTab=null,this._tempFFFocus=null,this._clearOpenPopupListeners(),this._focusOutHandler(c(t)),this._focusOutHandler(c(this._getTableContainer())),this._clearKeyboardKeys(),this._unhighlightActive(),this._getLayoutManager().handleFocusout(),this._setTableEditable(!1,!1,0,!0,e),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 i=this._getTable(),l=this._getTableBody(),o=this._getTableContainer();if(this._focusInHandler(c(i)),this._focusInHandler(c(o)),e.target===l&&!this._tempFFFocus&&A.isFirefox())setTimeout(function(){i.focus()},0);else if(c(i).has(e.target).length>0){var n=this._getActiveRowIndex(),s=this._getActiveHeaderIndex(),a=this._getPlaceHolderRow();if(null!=a&&c(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 i=r[t];if(c(i).has(e.target).length>0){let e=t;this._isDefaultSelectorEnabled()&&(e-=1),this._isGutterStartColumnEnabled()&&(e-=1),this._scrollColumnIntoViewport(e,i);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 i=_[t];if(c(i).has(e.target).length>0){this._scrollColumnIntoViewport(t,i);break}}}}else setTimeout(function(){i.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._handleEditCellFocusEvent=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)},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,this._isSkipScrollOnFocus),this._isSkipScrollOnFocus&&(this._isSkipScrollOnFocus=!1)},focusin:function(e){this._handleFocusin(e)},"focus .oj-table-data-cell":function(e){this._handleEditCellFocusEvent(e)},"focus .oj-table-selector-cell":function(e){this._handleEditCellFocusEvent(e)},keydown:function(e){var t=e.key||e.keyCode;this._addKeyboardKey(t);var i=this._getKeyboardKeys()[0];if(!this._isEditPending&&(A.isEscapeKeyEvent(i)||A.isEnterKeyEvent(i)||A.isF2KeyEvent(i)||A.isTabKeyEvent(i)||!this._isNodeEditable(e.target))&&(1===this._getKeyboardKeys().length||2===this._getKeyboardKeys().length&&e[I._KEYBOARD_CODES._MODIFIER_SHIFT])){(this._isKeyPressMatch(A.isArrowUpKeyEvent)||this._isKeyPressMatch(A.isArrowDownKeyEvent)||this._isKeyPressMatch(A.isArrowLeftKeyEvent)||this._isKeyPressMatch(A.isArrowRightKeyEvent)||this._isKeyPressMatch(A.isHomeKeyEvent)||this._isKeyPressMatch(A.isEndKeyEvent))&&(e.preventDefault(),e.stopPropagation());var l=e[I._KEYBOARD_CODES._MODIFIER_SHIFT];this._isKeyPressMatch(A.isArrowUpKeyEvent)||this._isKeyPressMatch(A.isArrowDownKeyEvent)?this._handleKeydownUpDown(e,l&&this._getRowSelectionMode()===I._OPTION_SELECTION_MODES._MULTIPLE):this._isKeyPressMatch(A.isArrowLeftKeyEvent)||this._isKeyPressMatch(A.isArrowRightKeyEvent)?this._handleKeydownLeftRight(e,l&&this._getColumnSelectionMode()===I._OPTION_SELECTION_MODES._MULTIPLE):this._isKeyPressMatch(A.isTabKeyEvent)?this._handleKeydownTab(e):A.isF2KeyEvent(i)?this._handleKeydownF2(e):A.isSpaceBarKeyEvent(i)?this._handleKeydownSpacebar(e):A.isEnterKeyEvent(i)?this._handleKeydownEnter(e):A.isHomeKeyEvent(i)?this._handleKeydownHome(e):A.isEndKeyEvent(i)?this._handleKeydownEnd(e):A.isEscapeKeyEvent(i)&&this._handleKeydownEsc(e)}},keyup:function(e){if(A.isMac()&&this._isKeyPressMatch(A.isMetaKeyEvent))this._clearKeyboardKeys();else{if(1===this._getKeyboardKeys().length){var t=this._getKeyboardKeys()[0];if(this._isNodeEditable(e.target)||null!=this._getTableFooter()&&c(this._getTableFooter()).has(e.target).length>0)return void this._removeKeyboardKey(t);this._removeKeyboardKey(t)}var i=e.key||e.keyCode;this._removeKeyboardKey(i)}},"mouseleave .oj-table-element":function(){this._getLayoutManager().handleMouseLeaveTable()},"mousedown .oj-table-body":function(e){const t=e[I._KEYBOARD_CODES._MODIFIER_SHIFT];if(!(A.isEventClickthroughDisabled(e,this._getTable())||A.isFromDefaultSelector(e)&&!t||this._isEditPending)&&(this._preventShiftSelection(e,I._CONST_ROW),1===e.which&&(this._mouseDownRowIdx=this._getElementRowIdx(e.target),null!=this._mouseDownRowIdx))){var i=this._getTableBodyRow(this._mouseDownRowIdx);null!=i&&i.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),i=this._getElementRowIdx(t);this._isTableOwned(t)&&null==this._getTableDndContext()._dragImage?(t.classList.add(I.MARKER_STYLE_CLASSES._HOVER),this._updateRowStateCellsClass(i,null,{hover:!0}),this._handleMouseEnterSelection(e.target)):(this._updateRowStateCellsClass(i,null,{hover:!1}),e.stopPropagation())}},"mouseleave .oj-table-body-row":function(e){var t=this._getEventTargetElement(e),i=this._getElementRowIdx(t);this._isTableOwned(t)?(t.classList.remove(I.MARKER_STYLE_CLASSES._HOVER),this._updateRowStateCellsClass(i,null,{hover:!1})):(this._updateRowStateCellsClass(i,null,{hover:!0}),e.stopPropagation())},"mousedown .oj-table-element":function(){!A.isIos()&&this._isStickyLayoutEnabled()&&(this._allowSelectionOnClick=!0)},"mousedown .oj-table-column-header-cell":function(e){A.isEventClickthroughDisabled(e,this._getTable())||this._isEditPending||(this._preventShiftSelection(e,I._CONST_HEADER),this._lastSelectedHeaderIdx=null,this._getLayoutManager().handleMouseDownHeaderCell(e))},"mousedown .oj-table-footer-cell":function(e){if(!A.isEventClickthroughDisabled(e,this._getTable())&&!this._isEditPending&&(this._preventShiftSelection(e,I._CONST_FOOTER),1===e.which)){var t=this._getElementColumnIdx(this._getEventTargetElement(e));e[I._KEYBOARD_CODES._MODIFIER_SHIFT]||(this._setActiveFooter(t,e,!0),c(e.target).data(I._FOCUS_CALLED,!0)),A.isFirefox()&&S.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(!A.isEventClickthroughDisabled(e,this._getTable())&&!this._isEditPending){this._lastSelectedRowIdx=null;var t=this._getEventTargetElement(e),i=this._getElementRowIdx(t);e[I._KEYBOARD_CODES._MODIFIER_SHIFT]||(this._setActiveRow(i,e,!0),c(e.target).data(I._FOCUS_CALLED,!0)),A.isFirefox()&&S.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),i=this._getTableHeaderColumn(t);if(i)c(i).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(A.isEventClickthroughDisabled(e,this._getTable())||this._isEditPending||!this._shouldAllowSelection())return;var t=this._getEventTargetElement(e),i=this._getElementRowIdx(t),l=c(e.target).data(I._FOCUS_CALLED),o=e[I._KEYBOARD_CODES._MODIFIER_SHIFT];if(!(l||o&&null!=this._getActiveRowIndex())){var n=this._setActiveRow(i,e,!0);if(c(e.target).data(I._FOCUS_CALLED,!1),!n)return}if(this._getTableBodyRow(i)[I._DATA_OJ_SELECTABLE]!==I._CONST_OFF&&(this._fireActionEvent(i,e,!0),!A.isFromDefaultSelector(e)||o))if(o){var s=this._getActiveRowIndex();if(null!=s&&this._getRowSelectionMode()===I._OPTION_SELECTION_MODES._MULTIPLE)return void this._selectRange(s,i,!0);this._handleSelectionGesture(i,!0,!1)}else if(S.isMetaKeyPressed(e))this._handleSelectionGesture(i,!0,!0),this._lastSelectedRowIdxArray&&this._lastSelectedRowIdxArray.indexOf(i)>-1&&(this._selectionAnchorIdx=i);else if(0===this._getKeyboardKeys().length){var a=this._isTouchDevice();this._handleSelectionGesture(i,!0,a&&(this._isStickyLayoutEnabled()||this._nonContiguousSelection)),this._lastSelectedRowIdxArray&&this._lastSelectedRowIdxArray.indexOf(i)>-1&&(this._selectionAnchorIdx=i);var r=this._getRowSelection(i);!this._isStickyLayoutEnabled()&&a&&r&&!this._nonContiguousSelection&&this._getRowSelectionMode()===I._OPTION_SELECTION_MODES._MULTIPLE&&this._createTableBodyRowTouchSelectionAffordance(i)}},"pointerdown .oj-table-data-cell, .oj-table-gutter-start-body-cell, .oj-table-gutter-end-body-cell":function(e){this._previousPointerTarget=this._currentPointerTarget,this._currentPointerTarget=e.target},"dblclick .oj-table-data-cell, .oj-table-gutter-start-body-cell, .oj-table-gutter-end-body-cell":function(e){if(!(A.isEventClickthroughDisabled(e,this._getTable())||null!=this._currentPointerTarget&&e.target!==this._currentPointerTarget||null!=this._previousPointerTarget&&e.target!==this._previousPointerTarget)){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);const i=this._getElementRowIdx(e.target);this._setEditRow({rowIndex:i},t)}this._currentPointerTarget=null,this._previousPointerTarget=null},"contextmenu .oj-table-data-cell":function(e){if(!A.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(!A.isEventClickthroughDisabled(e,this._getTable())&&!this._isEditPending&&this._shouldAllowSelection()){var t=this._getEventTargetElement(e);if(t.style.cursor!==I.CSS_VAL._COL_RESIZE){var i=this._getElementColumnIdx(t),l=c(e.target).data(I._FOCUS_CALLED),o=e[I._KEYBOARD_CODES._MODIFIER_SHIFT];if(l||o&&null!=this._getActiveHeaderIndex()||(this._setActiveHeader(i,e),c(e.target).data(I._FOCUS_CALLED,!1)),o){var n=this._getActiveHeaderIndex();null!=n&&this._getColumnSelectionMode()===I._OPTION_SELECTION_MODES._MULTIPLE?this._selectRange(n,i,!1):this._handleSelectionGesture(i,!1,!0)}else S.isMetaKeyPressed(e)?this._handleSelectionGesture(i,!1,!0):0===this._getKeyboardKeys().length&&this._handleSelectionGesture(i,!1,this._isTouchDevice())}}},"click .oj-table-footer-cell":function(e){if(!A.isEventClickthroughDisabled(e,this._getTable())&&!this._isEditPending&&this._shouldAllowSelection()){var t=this._getEventTargetElement(e);if(t.style.cursor!==I.CSS_VAL._COL_RESIZE){var i=this._getElementColumnIdx(t),l=c(e.target).data(I._FOCUS_CALLED),o=e[I._KEYBOARD_CODES._MODIFIER_SHIFT];if(l||o&&null!=this._getActiveFooterIndex()||(this._setActiveFooter(i,e),c(e.target).data(I._FOCUS_CALLED,!1)),o){var n=this._getActiveFooterIndex();null!=n&&this._getColumnSelectionMode()===I._OPTION_SELECTION_MODES._MULTIPLE?this._selectRange(n,i,!1):this._handleSelectionGesture(i,!1,!0)}else S.isMetaKeyPressed(e)?this._handleSelectionGesture(i,!1,!0):0===this._getKeyboardKeys().length&&this._handleSelectionGesture(i,!1,!1)}}},"click .oj-table-add-row-placeholder":function(e){A.isEventClickthroughDisabled(e,this._getTable())||this._isEditPending||this._setActiveAddRow()},"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,i){if(i||!this._isTableActionableMode()){var l=this._getTableBodyRow(e);null!=l&&this._trigger("rowAction",t,{context:{key:l[I._ROW_ITEM_EXPANDO].key,data:l[I._ROW_ITEM_EXPANDO].data,metadata:l[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=c.event.special;e.ojtablebeforecurrentrow={handle:function(e){return e.handleObj.handler.apply(this,[e,arguments[1]])}},e.ojtablesort={handle:function(e){return e.handleObj.handler.apply(this,[e,arguments[1]])}}},I.prototype._touchEventDoubleTapFunction=function(e,t){var i=c(e.target);null!=this._lastTapTime&&(new Date).getTime()-this._lastTapTime<250&&this._lastTapTarget[0]===i[0]?(this._lastTapTime=null,this._lastTapTarget=null,t()):(this._lastTapTarget=i,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=c(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=c(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(c(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),i=this._getElementColumnIdx(t);this._setTableEditable(!0,!1,i,!0,e),e.preventDefault()}.bind(this)}.bind(this)(e))},touchcancel:function(){this._mouseDownRowIdx=null,this._getLayoutManager().handleTouchCancel()}}),this._IsCustomElement()){const i=function(e,t){return function(i){const l=i.currentTarget,o=i.target.closest(e);o&&l.contains(o)&&t(c.Event(i,{currentTarget:o}))}},l="touchstart",o="touchmove",n=".oj-table-body-row-touch-selection-affordance-touch-area",s=".oj-table-column-header-cell",a=".oj-table-header";this._delegatedTouchStartTableBodyListener=i(n,e[`${l} ${n}`].bind(this)),this._delegatedTouchStartCellHeaderListener=i(s,e[`${l} ${s}`].bind(this)),this._delegatedTouchMoveTableHeaderListener=i(a,e[`${o} ${a}`].bind(this)),this._delegatedTouchMoveTableBodyListener=i(n,e[`${o} ${n}`].bind(this)),t.addEventListener(l,this._delegatedTouchStartTableBodyListener,{passive:!1}),t.addEventListener(l,this._delegatedTouchStartCellHeaderListener,{passive:!1}),t.addEventListener(o,this._delegatedTouchMoveTableHeaderListener,{passive:!0}),t.addEventListener(o,this._delegatedTouchMoveTableBodyListener,{passive:!1})}else this._on(c(t),e)},I.prototype._setupSelectionChangedListener=function(){this._clearSelectionChangedListener(),!A.isIos()&&this._isStickyLayoutEnabled()&&(this._browserSelectionChangeListener=()=>{const e=document.getSelection();("Range"===e.type||e.anchorNode!==e.focusNode&&e.anchorOffset!==e.focusOffset)&&(this._allowSelectionOnClick=!1)},document.addEventListener("selectionchange",this._browserSelectionChangeListener,{passive:!0}))},I.prototype._clearSelectionChangedListener=function(){null!=this._browserSelectionChangeListener&&(document.removeEventListener("selectionchange",this._browserSelectionChangeListener,{passive:!0}),delete this._browserSelectionChangeListener,delete this._allowSelectionOnClick)},I.prototype._shouldAllowSelection=function(){return!1!==this._allowSelectionOnClick},I.prototype._preventShiftSelection=function(e,t){const i=e[I._KEYBOARD_CODES._MODIFIER_SHIFT],l=t===I._CONST_FOOTER,o=t===I._CONST_HEADER,n=t===I._CONST_ROW,s=this._getRowSelectionMode()===I._OPTION_SELECTION_MODES._MULTIPLE,a=this._getColumnSelectionMode()===I._OPTION_SELECTION_MODES._MULTIPLE,r=n&&this._hasActiveRow()&&s,_=(this._hasActiveHeader()&&o||this._hasActiveFooter()&&l)&&a;i&&(r||_)&&e.preventDefault()},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 i=e.parentElement;return null!=i&&this._getTable().contains(i)?this._getActiveObjectFromActionableChild(i):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(c(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(c(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,i){var l=this._hasFocus()&&!i,o=this._getTableBodyRows().length;if(null!=this._active){if(this._hasActiveHeader()||this._hasActiveFooter()){if(this._getFirstVisibleColumnIndex(this._active.index,!0)!==this._active.index){var n=this._getFirstVisibleColumnIndex(0,!0);this._hasActiveHeader()?this._setActiveHeader(n,e,!l):this._setActiveFooter(n,e,!l)}else l&&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 l&&this._scrollRowIntoViewport(this._active.index),t&&this._updateAccStatusInfo(),void this._highlightActive();var s=this._getCurrentRow(),a=null!=s?s.rowKey:null;if(null!=a){if(o>0){var r=this._getRowIdxForRowKey(a);return null!=r||(r=Math.min(null!=s.rowIndex?s.rowIndex:0,o-1)),void this._setActiveRow(r,e,!0,!l)}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():o>0?this._setActiveRow(0,e,!0,!l):this._setActiveNoData():this._setActiveHeader(this._getFirstVisibleColumnIndex(0,!0),e,!l)},I.prototype._getFirstVisibleColumnIndex=function(e,t){var i;if(this._isTableHeaderless()){if(this._isTableFooterless())return null;i=this._getTableFooterCell.bind(this)}else i=this._getTableHeaderColumn.bind(this);var l,o=this._getColumnDefs().length,n=e;if(t)for(;n<o;){if((l=i(n))&&l.clientWidth>0)return n;n+=1}else{for(;n>-1;){if((l=i(n))&&l.clientWidth>0)return n;n-=1}if(this._isDefaultSelectorEnabled())return-1}return null},I.prototype._getNextVisibleColumnIndex=function(e,t){var i=t?e+1:e-1,l=this._getFirstVisibleColumnIndex(i,t);return null!==l?l: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,i){var l=this._getLayoutManager();if(l.hasRenderedSize()&&(null==i&&(i=this._getTableBodyRow(e)),t||!i.classList.contains(I.CSS_CLASSES._TABLE_STUCK_ROW_CLASS))){var o=c(l.getScroller()),n=l.getVerticalOverflowDiff(i),s=n.top,a=s>=0,r=n.bottom,_=r>=0;a&&_||(_?(Math.abs(s)>Math.abs(r)?o.scrollTop(o.scrollTop()+r):o.scrollTop(o.scrollTop()-s),this._skipScrollUpdate=!1,l.updateCurrentScrollState()):a&&(Math.abs(r)>Math.abs(s)?o.scrollTop(o.scrollTop()-s):o.scrollTop(o.scrollTop()+r),this._skipScrollUpdate=!1,l.updateCurrentScrollState()))}},I.prototype._scrollColumnIntoViewport=function(e,t){var i=this._getLayoutManager();if(i.hasRenderedSize()){var l;if(null!=t)l=t;else if(!(l=-1===e?this._getTableSelectorColumn():this._getTableHeaderColumn(e)))return;var o=i.getScroller(),n=c(o),s=i.getHorizontalOverflowDiff(l,e),a=s.left,r=s.right,_=a>=0,h=r>=0;A.isEdge()&&(a*=-1,r*=-1),_&&h||(_?(Math.abs(r)>Math.abs(a)?n.scrollLeft(n.scrollLeft()-a):n.scrollLeft(n.scrollLeft()+r),this._skipScrollUpdate=!1,i.updateCurrentScrollState()):h&&(Math.abs(a)>Math.abs(r)?n.scrollLeft(n.scrollLeft()+r):n.scrollLeft(n.scrollLeft()-a),this._skipScrollUpdate=!1,i.updateCurrentScrollState()))}},I.prototype._setCurrentRow=function(e,t,i){var l,o,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)),h=this._getDataSourceRowIndexForRowKey(d),n=this._getRowIdxForRowKey(d),s={rowIndex:h,rowKey:d},-1!==n&&(!_||n<-1||null===n||null===d)){if(l=I._LOGGER_MSG._ERR_CURRENTROW_UNAVAILABLE_INDEX_SUMMARY,o=p.applyParameters(I._LOGGER_MSG._ERR_CURRENTROW_UNAVAILABLE_INDEX_DETAIL,{rowIdx:n}),this.option("currentRow",this._currentRow,{_context:{writeback:!0,originalEvent:t,internalSet:!0}}),i)throw new Error(l+"\n"+o);return E.info(l+"\n"+o),I._CURRENT_ROW_STATUS._IGNORED}}var c=this._getActiveRowIndex(),S=!this._compareCurrentRowValues(a,s);if(S){var C,T=this._getAccessibleContext();this._clearAccessibleContext();try{C=this._trigger("beforeCurrentRow",t,{currentRow:s,previousCurrentRow:a})}catch(e){return l=I._LOGGER_MSG._ERR_PRECURRENTROW_ERROR_SUMMARY,o=p.applyParameters(I._LOGGER_MSG._ERR_PRECURRENTROW_ERROR_DETAIL,{error:e.toString()}),E.info(l+"\n"+o),this.option("currentRow",this._currentRow,{_context:{writeback:!0,originalEvent:t,internalSet:!0}}),I._CURRENT_ROW_STATUS._ERROR}if(!C)return this._setAccessibleContext(T),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 g=a.rowKey,f=this._getRowIdxForRowKey(g);if(this._hasEditableRow()&&(null==s||!u.KeyUtils.equals(g,s.rowKey))){var A=this._setTableEditable(!1,!1,0,!0,t);if(A instanceof Promise)return A.then(function(e){if(!1===e)return this._resetCurrentRow(a,f,t),I._CURRENT_ROW_STATUS._IGNORED;var i=this._getTableBodyRow(f);return null!=i&&i.classList.remove(I.CSS_CLASSES._TABLE_DATA_CURRENT_ROW_CLASS),this._currentRow=s,this._updateCurrentRow(r,n,t),null==t&&this._setActiveRow(n,t,!1,!this._hasFocus()),I._CURRENT_ROW_STATUS._UPDATED}.bind(this),function(){return this._resetCurrentRow(a,f,t),I._CURRENT_ROW_STATUS._VETOED}.bind(this));if(!1===A)return this._resetCurrentRow(a,f,t),I._CURRENT_ROW_STATUS._VETOED}var m=this._getTableBodyRow(f);null!=m&&m.classList.remove(I.CSS_CLASSES._TABLE_DATA_CURRENT_ROW_CLASS)}this._currentRow=s,this._updateCurrentRow(r,n,t)}return!S&&c===n||null!=t||this._setActiveRow(n,t,!1,!this._hasFocus()),I._CURRENT_ROW_STATUS._UPDATED},I.prototype._resetCurrentRow=function(e,t,i){this._currentRow=e;var l=document.activeElement,o=this._getAccessibleContext(),n=this._getElementColumnIdx(l);this._queueTask(function(){var e=t,l=n;null!=e&&null!=l?setTimeout(function(){this._setCellFocus(e,l)}.bind(this),0):null!=e&&setTimeout(function(){this._setActiveRow(e,i)}.bind(this),0)}.bind(this)),this._setAccessibleContext(o),this.option("currentRow",this._currentRow,{_context:{writeback:!0,originalEvent:i,internalSet:!0}})},I.prototype._updateCurrentRow=function(e,t,i){if(this.option("currentRow",this._currentRow,{_context:{writeback:!0,originalEvent:i,internalSet:!0}}),!e){var l=this._getTableBodyRow(t);null!=l&&l.classList.add(I.CSS_CLASSES._TABLE_DATA_CURRENT_ROW_CLASS)}},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 i,l=this._getTableBodyRow(e);if(null!=l&&null!=(i=-1===t?this._getTableBodySelectorCell(l):this._getTableBodyCell(e,t,l))){var o=A.getFocusableElementsInNode(i);if(o.length>0){var n=o[0];return n.focus(),"function"==typeof n.select&&n.select(),this._scrollColumnIntoViewport(t,i),this._scrollRowIntoViewport(e),!0}}return!1},I.prototype._setCellInRowFocus=function(e,t,i){if(!this._setCellFocus(e,t)){for(var l=this._getTableBodyCells(e).length,o=0;o<l;o++){var n=o;if(i||(n=l-o-1),this._setCellFocus(e,n))return}this._isDefaultSelectorEnabled()&&this._setCellFocus(e,-1)}},I.prototype._setFocusInHandler=function(e){this._focusInHandler=e},I.prototype._setFocusOutHandler=function(e){this._focusOutHandler=e},I.prototype._setActiveRow=function(e,t,i,l,o,n){if(-1===e)return this._clearActiveRow(t,i);var s=this._getTableBodyRow(e);return null!=s&&this._setActive(s,t,i,l,o,n)},I.prototype._clearActiveRow=function(e,t){return!this._hasActiveRow()||this._setActive(null,e,t)},I.prototype._setActiveHeader=function(e,t,i){if(this._isTableHeaderless()||null==e)return!1;var l=-1===e?this._getTableSelectorColumn():this._getTableHeaderColumn(e);return this._setActive(l,t,!0,i)},I.prototype._setActiveFooter=function(e,t,i){if(this._isTableFooterless()||null==e)return!1;var l=-1===e?this._getTableFooterSelectorCell():this._getTableFooterCell(e);return this._setActive(l,t,!0,i)},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,i,l,o,n){if(null!=e){var s=this._createActiveObject(e);if(this._areActiveObjectsEqual(s,this._active))this._updateActive(!1,s,l,o,n);else{if(s.type===I.ACTIVE_ELEMENT_TYPES._DATA_ROW){if(i){const e=this._setCurrentRow({rowKey:s.key},t);if(e instanceof Promise)return e.then(e=>e===I._CURRENT_ROW_STATUS._UPDATED&&(this._updateActive(!0,s,l,o,n),!0));if(e!==I._CURRENT_ROW_STATUS._UPDATED)return!1}}else if(!this._clearActiveRow(t,i))return!1;this._updateActive(!0,s,l,o,n)}}else if(null!=this._active){if(this._hasActiveRow()&&i){const e=this._setCurrentRow(null,t);if(e instanceof Promise)return e.then(e=>e===I._CURRENT_ROW_STATUS._UPDATED&&(this._unhighlightActive(),this._active=null,!0));if(e!==I._CURRENT_ROW_STATUS._UPDATED)return!1}this._unhighlightActive(),this._active=null}return!0},I.prototype._updateActive=function(e,t,i,l,o){e&&(this._setTableActionableMode(!1,!0),this._unhighlightActive(),this._active=t),i||(t.type===I.ACTIVE_ELEMENT_TYPES._HEADER||t.type===I.ACTIVE_ELEMENT_TYPES._FOOTER?this._scrollColumnIntoViewport(t.index):t.type===I.ACTIVE_ELEMENT_TYPES._DATA_ROW&&this._scrollRowIntoViewport(t.index,o)),this._highlightActive(l),this._active.isActionable||this._updateAccStatusInfo()},I.prototype._setColumnState=function(e,t){var i=this._getTableHeaderColumn(e),l=this._getTableFooterCell(e);this._applyColumnState(i,l,e,t)},I.prototype._applyColumnState=function(e,t,i,l){l?(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(i,l)},I.prototype._updateColumnStateCellsClass=function(e,t){for(var i=this._getSelectedRowIdxs(),l=this._getTableBodyRows(),o=0;o<l.length;o++){var n=this._getTableBodyCell(o,e);if(n)if(t)n.classList.add(I.MARKER_STYLE_CLASSES._SELECTED);else{for(var s=!1,a=i.length,r=0;r<a;r++)if(o===i[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,i){if(t||(t=this._getTableBodyRow(e)),null!=t&&t[I._DATA_OJ_SELECTABLE]!==I._CONST_OFF){var l=this._getTableBodyCells(null,t);if(0!==l.length){if(this._isDefaultSelectorEnabled()){var o=this._getTableBodySelectorCell(t);l.unshift(o)}if(this._isGutterStartColumnEnabled()){let e=this._getTableGutterCell("body","start",t);l.unshift(e)}if(this._isGutterEndColumnEnabled()){let e=this._getTableGutterCell("body","end",t);l.push(e)}var n,s=i.selected,a=i.hover,r=l.length;if(null!=a)for(n=0;n<r;n++)a?l[n].classList.add(I.MARKER_STYLE_CLASSES._HOVER):l[n].classList.remove(I.MARKER_STYLE_CLASSES._HOVER);if(null!=s)for(n=0;n<r;n++)s?l[n].classList.add(I.MARKER_STYLE_CLASSES._SELECTED):l[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 i=this._getLayoutManager(),l=this._getSelectedRowIdxs();null!=l&&l.length>0&&this._isRowSelectionEnabled()&&this._isScrollToKey()?(!isNaN(this._selectionAnchorIdx)&&l.indexOf(this._selectionAnchorIdx)>-1?t.rowKey=this._getRowKeyForRowIdx(this._selectionAnchorIdx):t.rowKey=this._getRowKeyForRowIdx(l[0]),delete t.rowIndex):(this._isExternalScrollEnabled()||(t.y=0,this._scrollTop=0,i.getScroller().scrollTop=0),delete t.rowIndex,delete t.rowKey),e||(this._isExternalScrollEnabled()||(t.x=0,this._scrollLeft=0,i.getScroller().scrollLeft=0),delete t.columnIndex,delete t.columnKey,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(),i=0;i<t.length;i++)if(u.KeyUtils.equals(t[i][I._ROW_ITEM_EXPANDO].key,e))return t[i];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 i=t.getCapability("fetchFirst");if(i&&"immediate"===i.iterationSpeed)return!0}return!1},I.prototype._getScrollToKey=function(){var e=this.options.scrollPosition.rowKey;return e?new Promise(function(t){var i=this._validateKeyForScroll(e,!0);null==i?t(null):i.then(function(i){t(i?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 i=this._getData();return i.containsKeys?new Promise(function(t){var l=new Set;l.add(e),i.containsKeys({keys:l}).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 i=this._validateKeyForScroll(e.rowKey,!1);if(i){var l=this._createComponentBusyState("is validating scroll position rowKey.");i.then(function(t){t||delete e.rowKey,this._clearComponentBusyState(l),this._syncScrollPosition(e,!0)}.bind(this))}return!1}var o=this._getScrollCoordinates(e),n=this._isScrollableX()?o.x:0,s=this._isScrollableY()?o.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,S.setScrollLeft(t,e)},I.prototype._setScrollY=function(e){var t=this._getLayoutManager(),i=t.getScroller();this._skipScrollUpdate=!0;var l=i.scrollTop;return i.scrollTop=-1===e?t.getScrollHeight()-t.getClientHeight():e,l!==i.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,i,l=this._getLayoutManager();if(!l.hasRenderedSize())return{x:0,y:0};var o=e.rowKey;null!=o&&(t=this._getScrollTopByKey(o));var n=e.columnKey;null!=n&&(i=this._getScrollLeftByKey(n));var s=e.rowIndex;isNaN(t)&&!isNaN(s)&&(t=this._getScrollTopByIndex(s));var a=e.columnIndex;isNaN(i)&&!isNaN(a)&&(i=this._getScrollLeftByIndex(a));var r=e.offsetX;!isNaN(i)&&!isNaN(r)&&i>=0&&(i+=r);var _=e.offsetY;if(!isNaN(t)&&!isNaN(_)&&t>=0&&(t+=_),isNaN(i)&&!isNaN(e.x)&&(i=Math.max(0,e.x)),-1!==t){var h=isNaN(t)?e.y:t;if(!isNaN(h)){var d=l.getScrollHeight()-l.getClientHeight();t=h>d?this._hasMoreToFetch()?-1:d:Math.max(0,h)}}return{x:i,y:t}},I.prototype._getCurrentHorizontalScrollPosition=function(e){var t=null==e?this._scrollLeft:e,i={x:null==t?0:t},l=this.option("scrollPosition"),o=Math.abs(l.x-i.x);if(o<1&&null!=l.columnKey&&!isNaN(l.columnIndex))return i.columnKey=l.columnKey,i.columnIndex=l.columnIndex,i.offsetX=l.offsetX+o,i;var n=this._getColumnLocations();if(n&&n.length>0){var s,a=n.length-1;for(s=0;s<n.length-1;s++)if(i.x>=n[s]&&i.x<n[s+1]){a=s;break}i.columnKey=this._getColumnDefs()[a].id,i.columnIndex=a,i.offsetX=i.x-n[a]}return i},I.prototype._getCurrentVerticalScrollPosition=function(e){var t=null==e?this._scrollTop:e,i={y:null==t?0:t},l=this._findClosestElementToTop(i);return null!=l&&(i.rowIndex=l.index,i.rowKey=this._getRowKeyForRowIdx(l.index),i.offsetY=l.offset),i},I.prototype._getCurrentScrollPosition=function(e,t){if(!this._getLayoutManager().hasRenderedSize())return{x:0,y:0};var i=this._getCurrentHorizontalScrollPosition(e),l=this._getCurrentVerticalScrollPosition(t);return Object.keys(l).forEach(function(e){i[e]=l[e]}),i},I.prototype._getColumnLocations=function(){if(null==this._columnOffsets){this._columnOffsets=[];var e=this._getTableHeaderColumns();if(e.length>0){var t=this._getScrollLeftByIndex(0);this._columnOffsets.push(0);for(var i=1;i<e.length;i++)this._columnOffsets.push(this._getScrollLeftByIndex(i)-t)}}return this._columnOffsets},I.prototype._findClosestElementToTop=function(e){var t,i=this._getLayoutManager(),l=this._getTableBodyRows(),o=l.length,n=i.getScrollHeight();if(0===o||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*o);var r=l[t=Math.min(Math.max(t,0),o-1)],_=i.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<o;){var c=_;if(r=l[t],_=i.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:l[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 i;e&&!this._isTableActionableMode()?(i=this._hasActiveHeader()?this._getTableHeaderRow():this._hasActiveFooter()?this._getTableFooterRow():this._getActiveElement(),this._clearAccStatusInfo(),this._applyActionableMode(i,t)):!e&&this._isTableActionableMode()&&(this._active.isActionable=!1,!t&&this._getTable().contains(document.activeElement)&&this._getTable().focus(),null!=(i=this._hasActiveHeader()?this._getTableHeaderRow():this._hasActiveFooter()?this._getTableFooterRow():this._getActiveElement())&&A.disableAllFocusableElements(i,null,!0))},I.prototype._applyActionableMode=function(e,t){var i=this._getActiveElement();if(null!=i){A.enableAllFocusableElements(e);var l=A.getFocusableElementsInNode(i);l.length>0&&(this._active.isActionable=!0,this._focusOutHandler(c(i)),t||l[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,t=0){if(this._isTableEditMode())if(!0!==this._isEditPending){this._delayed_edit=null;var i=e.rowKey,l=e.rowIndex;if(null!=i||l>-1){var o=this._setCurrentRow({rowKey:i,rowIndex:l});o instanceof Promise?o.then(function(i){i===I._CURRENT_ROW_STATUS._UPDATED?this._setEditableHelper(t):i===I._CURRENT_ROW_STATUS._IGNORED&&this._scrollToRowHelper(e,t)}.bind(this)):o===I._CURRENT_ROW_STATUS._UPDATED?this._setEditableHelper(t):o===I._CURRENT_ROW_STATUS._IGNORED&&this._scrollToRowHelper(e,t)}else this._setTableEditable(!1,!1,0,!0,null)}else this._delayed_edit={editRow:e,columnIdx:t}},I.prototype._setEditableHelper=function(e){null==this._delayed_edit&&this._setTableEditable(!0,!1,e,!0,null)},I.prototype._scrollToRowHelper=function(e,t){const i=this._scrollTop;this._syncScrollPosition({rowKey:e.rowKey,rowIndex:e.rowIndex})||(this._editRowCallback=function(){this._scrollTop!==i&&this._setEditRow(e,t)}.bind(this))},I.prototype._getRowToBeEdited=function(e){const t=e.rowKey,i=e.rowIndex;return null!=t?this._findRowElementByKey(t):i>-1?this._getTableBodyRow(i):null},I.prototype._setEditableRowIdx=function(e){this._editableRowKey=this._getRowKeyForRowIdx(e),this._editableRowIdx=e},I.prototype._setAdjacentRowEditable=function(e,t,i,l){var o=this._getEditableRowIdx(),n=this._setTableEditable(!1,!1,e,i,l);n instanceof Promise?n.then(function(){this._queueTask(function(){this._handleAdjacentEditEndSuccessful(e,o,i,l)}.bind(this))}.bind(this),function(){this._queueTask(function(){this._handleEditEndRejected(t,o,!i)}.bind(this))}.bind(this)):!1===n?this._handleEditEndRejected(t,o,!i):this._handleAdjacentEditEndSuccessful(e,o,i,l)},I.prototype._handleAdjacentEditEndSuccessful=function(e,t,i,l){var o=this._getTableBodyRows(),n=this._findAdjacentEditableRow(t,o,i);null!==n?(this._setActiveRow(n,l,!0,!1,!0),this._setTableEditable(!0,!1,e,i,l)):this._getTable().focus()},I.prototype._findAdjacentEditableRow=function(e,t,i){if(i)for(let i=e+1;i<t.length;i++){if(t[i][I._DATA_OJ_EDITABLE]!==I._CONST_OFF)return i}else for(let i=e-1;i>=0;i--){if(t[i][I._DATA_OJ_EDITABLE]!==I._CONST_OFF)return i}return null},I.prototype._handleEditEndRejected=function(e,t,i){this._setCellInRowFocus(t,e,i)},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,i,l,o){if(this._isTableEditMode()&&!this._isEditPending){var n=this._getData()instanceof u.TableDataSourceAdapter,s=this._getCurrentRow();if(null!=s){const u=this._getRowToBeEdited(s);if(u&&u[I._DATA_OJ_EDITABLE]!==I._CONST_OFF){var a,r,_,h,d=s.rowKey,c=this._getRowIdxForRowKey(d),S=[];let u;var E=this._getEditableRowKey();try{if(e&&!this._hasEditableRow())a=this._getTableBodyRow(c),(r=this._getRendererContextObject(a,{row:{key:d,index:s.rowIndex},isCurrentRow:!0})).item=a[I._ROW_ITEM_EXPANDO],(_=this._trigger("beforeRowEdit",o,{accept:function(e){S.push(e)},rowContext:r}))&&(h={rowKey:d,rowIndex:c});else{if(e||!this._hasEditableRow())return;a=this._getTableBodyRow(this._getEditableRowIdx()),d=this._getRowKeyForRowIdx(this._getEditableRowIdx()),(r=this._getRendererContextObject(a,{row:{key:d,index:this._getDataSourceRowIndexForRowKey(d)},isCurrentRow:!0})).item=a[I._ROW_ITEM_EXPANDO],(_=this._trigger("beforeRowEditEnd",o,{accept:function(e){S.push(e)},setUpdatedItem:function(e){u=e},cancelEdit:t,rowContext:r}))&&(h={rowKey:null,rowIndex:-1})}}catch(e){return!1}if(!_)return this._syncActiveElement(),!1;var C=this._getTable();a.contains(document.activeElement)&&(this._isSkipScrollOnFocus=!t,C.focus());var T=function(s){this._removeSkeletonRow(a);var r=this._getRowIdxForRowKey(d);return e&&c!==r&&(h.rowIndex=r),this._fireEditRowChangeEvent(h,o),e?(this._setTableActionableMode(!1,!0),this._setEditableRowIdx(r),C.setAttribute(I.DOM_ATTR._ARIA_LABELLEDBY,""),this._refreshRow(r,!1,!n).then(function(){return this._setCellInRowFocus(r,i,l),this._refreshPrevEditableRow(E,s,!1)}.bind(this))):(this._focusEditCell=null,this._setEditableRowIdx(null),this._refreshPrevEditableRow(E,s,t))}.bind(this);if(0!==S.length)return this._prepareAsyncRowEdit(a),this._queueTask(function(){return this._editPromise=Promise.all(S).then(function(){return null!=u?u.then(function(e){return T(e)},function(){return T()}):T()},function(){return this._removeSkeletonRow(a),e&&null==E&&this._syncActiveElement(),this._clearEditPending(),!1}.bind(this)),this._editPromise}.bind(this));if(null!=u)return this._prepareAsyncRowEdit(a),this._queueTask(function(){return this._editPromise=u.then(function(e){return T(e)},function(){return T()}),this._editPromise}.bind(this));this._fireEditRowChangeEvent(h,o),e?(this._setTableActionableMode(!1,!0),this._setEditableRowIdx(c),C.setAttribute(I.DOM_ATTR._ARIA_LABELLEDBY,""),this._queueTask(function(){var e=this._getRowIdxForRowKey(d);return this._refreshRow(e,!1,!n).then(function(){this._setCellInRowFocus(e,i,l)}.bind(this))}.bind(this))):(this._focusEditCell=null,this._setEditableRowIdx(null)),this._queueTask(function(){return this._refreshPrevEditableRow(E,null,t)}.bind(this))}}}},I.prototype._prepareAsyncRowEdit=function(e){this._isEditPending=!0,this._insertSkeletonRow(e),this._syncScrollPosition()},I.prototype._clearEditPending=function(){this._isEditPending=!1,this._isSkipScrollOnFocus=!1,this._editPromise=null,null!=this._delayed_edit&&this._queueTask(()=>{this._setEditRow(this._delayed_edit.editRow,this._delayed_edit.columnIdx)})},I.prototype._refreshPrevEditableRow=function(e,t,i){const l=this._getRowIdxForRowKey(e);if(null!=l){let e;return null!=t&&t.updatedItem&&(e=t.updatedItem),this._refreshRow(l,!1,i,e).then(()=>{this._clearEditPending()})}return this._clearEditPending(),Promise.resolve()},I.prototype._handleAddRow=function(e,t){let i=[];this._trigger("beforeRowAddEnd",t,{accept:function(e){i.push(e)},cancelAdd:e})&&(this._setTableActionableMode(!1),0!==i.length?(this._insertSkeletonRow(null,-1),this._getTable().focus(),this._queueTask(function(){return Promise.all(i).then(function(){return this._removeSkeletonRow(null,-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(null,-1),this._setActiveAddRow(),this._setTableActionableMode(!0)}.bind(this))}.bind(this))):this._queueTask(function(){return 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)))},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,i=!1,l=Object.keys(A.KEYBOARD_KEYS);for(t=0;t<l.length;t++){var o=l[t];if(A.KEYBOARD_KEYS[o]===e){i=!0;break}}if(i){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(),i=0;i<t.length;i++)if(e(t[i]))return!0;return!1},I.prototype._removeKeyboardKey=function(e){for(var t=this._getKeyboardKeys(),i=t.length,l=0;l<i;l++)t[l]===e&&t.splice(l,1)},I.prototype._clearKeyboardKeys=function(){this._keyboardKeys=[]},I.prototype._handleKeydownLeftRight=function(e,t){if(!this._isTableActionableMode()&&!this._hasEditableRow()){var i,l,o="rtl"===this._GetReadingDirection(),n=this._isKeyPressMatch(A.isArrowLeftKeyEvent),s=o&&n||!o&&!n,a=this._getActiveHeaderIndex();if(null!=a)return i=!t||this._isNavigate||null==this._lastSelectedHeaderIdx?a:this._lastSelectedHeaderIdx,l=this._getNextVisibleColumnIndex(i,s),void(t?(this._isNavigate=!1,this._selectRange(a,Math.max(0,l),!1),this._scrollColumnIntoViewport(l)):(this._isNavigate=!0,l!==a&&this._setActiveHeader(l,e)));var r=this._getActiveFooterIndex();if(null!=r)return i=!t||this._isNavigate||null==this._lastSelectedFooterIdx?r:this._lastSelectedFooterIdx,l=this._getNextVisibleColumnIndex(i,s),void(t?(this._isNavigate=!1,this._selectRange(r,Math.max(0,l),!1),this._scrollColumnIntoViewport(l)):(this._isNavigate=!0,l!==r&&this._setActiveFooter(l,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 i=this._isKeyPressMatch(A.isArrowUpKeyEvent),l=this._getFirstVisibleColumnIndex(0,!0);if(S.isMetaKeyPressed(e))i&&null==this._getActiveHeaderIndex()?this._setActiveHeader(l,e):i||null!=this._getActiveFooterIndex()||this._setActiveFooter(l,e);else{var o=this._getActiveRowIndex();if(null==o)i||null==this._getActiveHeaderIndex()?i&&null!=this._getActiveFooterIndex()?this._getTableBodyRows().length>0?this._setActiveRow(this._getTableBodyRows().length-1,e,!0,null,null,!0):this._setActiveNoData():this._hasActiveAddRow()?i?this._setActiveHeader(l,e):this._getTableBodyRows().length>0?this._setActiveRow(0,e,!0,null,null,!0):this._setActiveNoData():this._hasActiveNoData()&&(i?this._isAddNewRowEnabled()?this._setActiveAddRow():this._setActiveHeader(l,e):this._setActiveFooter(l,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?o:this._lastSelectedRowIdx,s=i?n>0?n-1:n:n<a-1?n+1:n,t)this._isNavigate=!1,this._selectRange(o,s,!0),this._scrollRowIntoViewport(s,!0);else if(this._isNavigate=!0,s!==o){if(!this._setActiveRow(s,e,!0,null,null,!0))return;this._getTable().focus()}else 0===s&&i?this._isAddNewRowEnabled()?this._setActiveAddRow():this._setActiveHeader(l,e):s!==a-1||i||this._setActiveFooter(l,e)}}}},I.prototype._handleKeydownTab=function(e){this._isTableTab=!0;var t,i=this._getActiveRowIndex(),l=this._getTableBody(),o=document.activeElement;if(null!=i&&this._getEditableRowIdx()===i){var n=this._getTableBodyRow(i),s=A.getFocusableElementsInNode(n),a=s.length,r=c(s).index(o),_=Math.max(this._getColumnDefs().length-1,0);r!==a-1||e[I._KEYBOARD_CODES._MODIFIER_SHIFT]?0===r&&e[I._KEYBOARD_CODES._MODIFIER_SHIFT]&&(this._setAdjacentRowEditable(_,0,!1,e),e.preventDefault(),e.stopPropagation()):(this._setAdjacentRowEditable(-1,_,!0,e),e.preventDefault(),e.stopPropagation())}else if(this._isTableActionableMode()){var h,d;if(h=this._hasActiveHeader()?this._getTableHeaderRow():this._hasActiveFooter()?this._getTableFooterRow():this._getActiveElement(),(t=A.getFocusableElementsInNode(h)).length>1){if(e[I._KEYBOARD_CODES._MODIFIER_SHIFT]){if(o===t[0])c(t[t.length-1]).focus(),e.preventDefault(),e.stopPropagation();else for(d=0;d<t.length;d++)if(o===t[d]){t[d-1].focus(),e.preventDefault(),e.stopPropagation();break}}else if(o===t[t.length-1])c(t[0]).focus(),e.preventDefault(),e.stopPropagation();else for(d=0;d<t.length;d++)if(o===t[d]){t[d+1].focus(),e.preventDefault(),e.stopPropagation();break}}else e.preventDefault(),e.stopPropagation()}else{!A.isFirefox()||this._isStickyLayoutEnabled()||e[I._KEYBOARD_CODES._MODIFIER_SHIFT]||(this._tempFFFocus=!0,l.focus());var u=e.key||e.keyCode;this._removeKeyboardKey(u)}},I.prototype._handleKeydownEnter=function(e){if(!(this._isTableActionableMode()&&!this._hasActiveAddRow()||A.isEventClickthroughDisabled(e,this._getTable()))){var t=this._getActiveHeaderIndex();if(null!=t){if(-1!==t&&this._getColumnDefs()[t].sortable===I._OPTION_ENABLED){var i=this._getTableHeaderColumn(t),l=c(i).data("sorted");null==l||l===I._COLUMN_SORT_ORDER._DESCENDING?this._handleSortTableHeaderColumn(t,!0,e):this._handleSortTableHeaderColumn(t,!1,e)}}else if(null==this._getActiveFooterIndex()){var o=this._getCurrentRow(),n=null!=(o=o||{}).rowIndex?o.rowIndex:-1;if(n>=0)if(this._isTableEditMode()){if(!this._hasEditableRow())return void this._setTableEditable(!0,!1,-1,!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 i=this._getActiveHeaderIndex();if(null==i){var l=this._getActiveFooterIndex();null!=l&&this._handleSelectionGesture(l,!1,!0)}else-1!==i?this._handleSelectionGesture(i,!1,!0):this._isSelectAllControlVisible()&&this._handleSelectAllGesture()}else this._handleSelectionGesture(t,!0,!0)}},I.prototype._handleKeydownF2=function(e){e.preventDefault(),e.stopPropagation(),this._isStickyLayoutEnabled()?this._isTableEditMode()&&this._hasEditableRow()||this._toggleTableActionableMode():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 i=this._getTableBodyRows().length;this._setActiveRow(i-1,e,!0)}},I.prototype._columnHeaderDefaultRenderer=function(e,t){var i=e.headerContext.parentElement,l=document.createElement(I.DOM_ELEMENT._DIV);l.classList.add(I.CSS_CLASSES._COLUMN_HEADER_CLASS),c(i).empty(),i.appendChild(l);var o=document.createElement(I.DOM_ELEMENT._DIV);o.classList.add(I.CSS_CLASSES._COLUMN_HEADER_TEXT_CLASS),l.insertBefore(o,l.firstChild),null!=t?t(c(o)):this._columnHeaderDefaultTextRenderer(o,e)},I.prototype._columnHeaderSortableIconRenderer=function(e,t){var i=e.headerContext.parentElement,l=document.createElement(I.DOM_ELEMENT._DIV);l.classList.add(I.CSS_CLASSES._COLUMN_HEADER_CLASS),c(i).empty(),i.appendChild(l);var o=document.createElement(I.DOM_ELEMENT._DIV);o.classList.add(I.CSS_CLASSES._TABLE_SORT_ICON_CONTAINER_CLASS),o.setAttribute(I.DOM_ATTR._TITLE,this.getTranslatedString("labelSortAsc")),o.setAttribute(I.DOM_ATTR._ARIA_HIDDEN,"true"),this._AddHoverable(c(o)),l.appendChild(o);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(c(n)),o.appendChild(n);var s=document.createElement(I.DOM_ELEMENT._DIV);s.classList.add(I.CSS_CLASSES._COLUMN_HEADER_TEXT_CLASS),l.insertBefore(s,l.firstChild),null!=t?t(c(s)):this._columnHeaderDefaultTextRenderer(s,e)},I.prototype._columnHeaderDefaultTextRenderer=function(e,t){var i=t.columnIndex,l=this._getColumnDefs()[i],o=null==l.headerText?"":l.headerText;if(e.appendChild(document.createTextNode(o)),!0===l.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,i){for(var l=this._getColumnDefs().length,o=0;o<l;o++)this._tableBodyCellDefaultRenderer(e,o,t,i)},I.prototype._tableBodyCellDefaultRenderer=function(e,t,i,l){var o=l.rowContext.parentElement,n=this._getColumnDefs()[t],s=this._createTableBodyCell();this._styleTableBodyCell(t,s,!0),this._insertTableBodyCell(e,i.key,t,s,o,!0);var a=null;null!=n.field&&(a=this._getObjectPath(i.data,n.field));var r=this._getColumnRenderer(t,"cell"),_=this._getSlotTemplate(n.template);if(null==_&&this._isDefaultCellTemplateSlotValid()&&(_=this._getSlotTemplate("cellTemplate")),r||_){var h=this._getRendererContextObject(s,{row:i});h.rowEditable=o[I._DATA_OJ_EDITABLE];var d={cellContext:h,columnIndex:t,data:a,row:i.data,componentElement:h.componentElement,parentElement:h.parentElement};if(r)A.applyRendererContent(s,r(d))||(s=c(o).children()[t],this._setTableBodyCellAttributes(e,i.key,t,s),this._styleTableBodyCell(t,s,!1));else{var u=this._getRootElement(),S=this._getTemplateEngine();if(null!=S){var E=this._getTableBody(),C=this._getCellSlotTemplateContextObject(d),T=S.execute(u,_,C,this.options.as,E,new Map([[R.FormVariantContext,"embedded"]]));T instanceof Array||(T=[T]),T.map(function(e){s.appendChild(e)}),this._hasCellTemplate=!0}}}else{var p=null==(a=this._getVal(a))?"":a;if(s.appendChild(document.createTextNode(p)),A.isIos()){s.setAttribute(I.DOM_ATTR._ROLE,"text");var g=this._getVoiceOverCellLabelledby(s,t);s.setAttribute(I.DOM_ATTR._ARIA_LABELLEDBY,g)}}},I.prototype._getRendererContextObject=function(e,t){var i={component:g.__GetWidgetConstructor(this.element,"ojTable")},l=this.options.data;if(this._isPagingModelTableDataSource()&&(l=l.getWrappedDataSource()),i.datasource=l,i.parentElement=e,null!=t.row){var o=t.row,n=o.key;if(i.status=this._getRendererStatusObject(o),this._hasEditableRow()){var s=this._getEditableRowKey();u.Object.compareValues(n,s)?i.mode="edit":i.mode="navigation"}else i.mode="navigation";this._copyMetadata(i,o)}return this._FixRendererContext(i)},I.prototype._getRendererStatusObject=function(e){return{rowIndex:e.index,rowKey:e.key,currentRow:c.extend({},this._getCurrentRow())}},I.prototype._getCellSlotTemplateContextObject=function(e,t){var i=this._getSlotTemplateContextObject(),l=e.columnIndex;if(!t){var o=e.cellContext.status.rowIndex,n=e.cellContext.status.rowKey;i[I._CONST_DATA]=e.data,i.row=e.row,i[I._CONST_INDEX]=o,i.mode=e.cellContext.mode,i[I._CONST_KEY]=n;const t=e.parentElement.parentElement;i.item=t[I._ROW_ITEM_EXPANDO],i.rowEditable=this._invokeRowEditableCallback(t[I._ROW_ITEM_EXPANDO])}i.columnIndex=l,i.columnKey=this._getColumnKeyForColumnIdx(e.columnIndex);var s=this.options.data;return this._isPagingModelTableDataSource()&&(s=s.getWrappedDataSource()),i.datasource=s,i},I.prototype._getRowSlotTemplateContextObject=function(e,t){var i=this._getSlotTemplateContextObject();t||(i[I._CONST_DATA]=e.data,i[I._CONST_INDEX]=e.rowContext.status.rowIndex,i[I._CONST_KEY]=e.rowContext.status.rowKey,i.mode=e.rowContext.mode,i.item=e.parentElement[I._ROW_ITEM_EXPANDO],i.editable=this._invokeRowEditableCallback(e.parentElement[I._ROW_ITEM_EXPANDO]),i.rowContext=e.rowContext);var l=this.options.data;return this._isPagingModelTableDataSource()&&(l=l.getWrappedDataSource()),i.datasource=l,i},I.prototype._getHeaderSlotTemplateContextObject=function(e,t){var i=this._getSlotTemplateContextObject();return i[I._CONST_DATA]=e,i.columnIndex=t,i.headerText=e,i.columnKey=this._getColumnKeyForColumnIdx(t),i},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 i=t.metadata;if(i)for(var l=Object.keys(i),o=0;o<l.length;o++){var n=l[o];e[n]=i[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 i=e,l=!1;if(t.split(".").map(function(e){if(null!=i&&-1!==e.indexOf("[")&&-1!==e.indexOf("]")){var t=e.substr(0,e.indexOf("[")),o=parseInt(e.substr(e.indexOf("[")+1,e.indexOf("]")-e.indexOf("[")-1),10);i=i[t][o],l=!0}else null!==i&&void 0!==i[e]&&(i=i[e],l=!0)}),l)return i}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 i=this.option("selected"),l=i.row;l&&(e[I._CONST_KEYS].forEach(function(e){null!=t&&t[I._CONST_KEYS].has(e)||(l.isAddAll()?l.has(e)||(l=l.add([e])):l=l.delete([e]))}),i.row!==l&&(i={row:l,column:i.column},this._isSelectionRequiredSatisfied(i)?this._setSelected(i):this._selectFirstRowOrColumn()))},I.prototype._updateSelectionStateFromEventDetailChange=function(e){var t=this.option("firstSelectedRow");if(null!=t){var i=[];e[I._CONST_KEYS].forEach(function(e){i.push(e)});for(var l=0;l<i.length;l++){var o=i[l],n=e[I._CONST_DATA][l];if(u.KeyUtils.equals(o,t.key)&&this.option("firstSelectedRow",{key:o,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(o,a.key)){this._validatedSelectedRowKeyData[s]=n;break}}}}},I.prototype._updateSelectionStylingFromColumnReorder=function(){var e=this.option("selected").column;this._getTableHeaderColumns().forEach(function(t,i){e.has(this._getColumnKeyForColumnIdx(i))?this._setColumnState(i,!0):this._setColumnState(i,!1)},this)},I.prototype._validateInitialSelectionState=function(e){var t,i,l=this.option("selection"),o=this.option("selected"),n=o.row,s=o.column;if(this._validatedSelectedRowKeyData=null,(this._selectionSet||!e&&null!=l&&0!==l.length&&n===n.clear()&&s===s.clear())&&(o=this._getSelectedEquivalent(l),t=!0),this._isSelectionRequired())if((i=this._validateSelected(o)).isLocal)this._enforceSelectionRequired(o,i.result,t);else{var a=this._createComponentBusyState("is validating selection-required keys.");i.result.then(function(e){this._enforceSelectionRequired(o,e,t),this._clearComponentBusyState(a)}.bind(this))}else t&&this._syncRangeSelection(),this._setSelected(o,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,i=e.column;return t.isAddAll()||t.values().size>0||i.isAddAll()||i.values().size>0},I.prototype._isSelectionRequiredSatisfied=function(e){return!this._isSelectionRequired()||this._hasSelected(e)},I.prototype._enforceSelectionRequired=function(e,t,i){i?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,i=t;if(!t.isAddAll()){var l=this._getColumnKeys(),o=[];t.values().forEach(function(e){-1===l.indexOf(e)&&o.push(e)}),o.length>0&&(i=i.delete(o))}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:i}}.bind(this))};s=s.delete(r)}}return{isLocal:!0,result:{row:s,column:i}}},I.prototype._fetchValidRowKeyData=function(e){var t=this._getData();if(t&&t.getCapability){var i=t.getCapability("fetchByKeys");if(i&&"lookup"===i.implementation)return new Promise(function(i){t.fetchByKeys({keys:new Set(e),scope:"global"}).then(function(e){var t=[];e.results.forEach(function(e,i){t.push({key:i,data:e.data})}),i(t)},function(){i([])})})}return null},I.prototype._syncRangeSelection=function(e){if(void 0===e&&(e=this.option("selection")),null!=e)for(var t=e.length,i=0;i<t;i++){var l,o,n,s,a=e[i];null!=a.startKey&&null!=a.startKey[I._CONST_ROW]?(l=a.startKey[I._CONST_ROW],o=this._getDataSourceRowIndexForRowKey(l),a.startIndex={},a.startIndex[I._CONST_ROW]=o):null!=a.startIndex&&null!=a.startIndex[I._CONST_ROW]&&(o=a.startIndex[I._CONST_ROW],null!=(l=this._getRowKeyForDataSourceRowIndex(o))&&(a.startKey={},a.startKey[I._CONST_ROW]=l)),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,i){var l,o,n,s,a,r,_=!0;if(null!=e.startKey&&null!=e.startKey[I._CONST_ROW]?(a=e.startKey[I._CONST_ROW],l=this._getDataSourceRowIndexForRowKey(a),isNaN(l)&&(_=null)):null!=e.startIndex&&null!=e.startIndex[I._CONST_ROW]&&(l=e.startIndex[I._CONST_ROW]),null!=e.endKey&&null!=e.endKey[I._CONST_ROW])r=e.endKey[I._CONST_ROW],null===(o=this._getDataSourceRowIndexForRowKey(r))&&this._isLoadMoreOnScroll()&&(o=this._getDataSourceLastFetchedRowIndex(),_=null);else if(null!=e.endIndex&&null!=e.endIndex[I._CONST_ROW]){o=e.endIndex[I._CONST_ROW];var h=this._getDataSourceLastFetchedRowIndex();this._isLoadMoreOnScroll()&&o>h&&(o=h,_=null)}if(void 0===l&&void 0===o)_=!1;else if(null!=l&&null!=o&&l<=o){a=this._getRowKeyForDataSourceRowIndex(l),r=this._getRowKeyForDataSourceRowIndex(o),n=this._getRowIdxForRowKey(a),s=this._getRowIdxForRowKey(r);for(var d=n;d<=s;d++){var u=this._getRowKeyForRowIdx(d);t=t.add([u])}i=i.clear()}else E.warn("Error: Cannot resolve row range in selection - \n start row key: "+a+"\n end row key: "+r+"\n start row index: "+l+"\n end row index: "+o),null!=a&&null!=r&&(t=(t=t.add([a])).add([r]),i=i.clear());return{status:_,rowKeySet:t,columnKeySet:i}},I.prototype._getDataSourceLastFetchedRowIndex=function(){var e=this._getTableBodyRows();if(e.length>0){var t=this._getData(),i=0;return this._isPagingModelDataProvider()&&(i=t.getStartItemIndex()),e.length+i-1}return 0},I.prototype._processColumnRangeSelection=function(e,t,i){var l,o,n,s,a=!0;if(null!=e.startKey&&null!=e.startKey[I._CONST_COLUMN]?(l=e.startKey[I._CONST_COLUMN],n=this._getColumnIdxForColumnKey(l)):null!=e.startIndex&&null!=e.startIndex[I._CONST_COLUMN]&&(n=e.startIndex[I._CONST_COLUMN]),null!=e.endKey&&null!=e.endKey[I._CONST_COLUMN]?(o=e.endKey[I._CONST_COLUMN],s=this._getColumnIdxForColumnKey(o)):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);i=i.add([_])}t=t.clear()}else E.error("Error: Cannot resolve column range in selection - \n start column key: "+l+"\n end column key: "+o+"\n start column index: "+n+"\n end column index: "+s);return{status:a,rowKeySet:t,columnKeySet:i}},I.prototype._invalidateRangeSelection=function(){var e=this.option("selection");if(null!=e)for(var t=0;t<e.length;t++){var i,l,o=e[t];if(null!=o.startKey&&(i=o.startKey[I._CONST_ROW]),null!=o.endKey&&(l=o.endKey[I._CONST_ROW]),i!==l||void 0===i){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 i;null==e.row&&(e.row=new y.KeySetImpl),null==e.column&&(e.column=new y.KeySetImpl);var l=this.option("selected");if(this._selectionSet?A.areKeySetsEqual(l.row,e.row)&&A.areKeySetsEqual(l.column,e.column)||(i=!0):l.row===e.row&&l.column===e.column||(i=!0),i&&(this.option("selected",e,{_context:{writeback:!0,internalSet:!0}}),this._isSelectionRequired()&&this._validatedSelectedRowKeyData))for(var o=this._validatedSelectedRowKeyData.length-1;o>=0;o--){var n=this._validatedSelectedRowKeyData[o];e.row.has(n.key)||this._validatedSelectedRowKeyData.splice(o,1)}this._isDefaultSelectorEnabled()&&this._updateSelectors(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 i=null;if(null!=e){var l=this.getDataForVisibleRow(this._getRowIdxForRowKey(e));if(null!=l)i=l[I._CONST_DATA];else if(this._validatedSelectedRowKeyData)for(var o=0;o<this._validatedSelectedRowKeyData.length;o++){var n=this._validatedSelectedRowKeyData[o];if(u.KeyUtils.equals(e,n.key)){i=n.data;break}}}this.option("firstSelectedRow",{key:e,data:i},{_context:{writeback:!0,internalSet:!0}})}},I.prototype._getSelectedEquivalent=function(e){var t;if(null!=e){for(var i=(t={row:new y.KeySetImpl,column:new y.KeySetImpl}).row,l=t.column,o=e.length,n=0;n<o;n++){var s=e[n];if(null==s.startKey&&null==s[I._CONST_STARTINDEX]||null==s.endKey&&null==s[I._CONST_ENDINDEX])E.error("Error: Invalid range object in selection. Both start and end objects must be specified");else{var a=this._processRowRangeSelection(s,i,l);i=a.rowKeySet,l=a.columnKeySet,!1===a.status&&(!1===(a=this._processColumnRangeSelection(s,i,l)).status&&E.error("Error: Invalid range object"),i=a.rowKeySet,l=a.columnKeySet)}}t.row===i&&t.column===l||(t={row:i,column:l})}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 i={startKey:{row:e},endKey:{row:e}},l=this._getDataSourceRowIndexForRowKey(e);!isNaN(l)&&l>=0&&(i.startIndex={row:l},i.endIndex={row:l}),t.push(i)},this),t.inverted=e.isAddAll(),t},I.prototype._getColumnSelectionFromKeySet=function(e){var t=[];return(e.isAddAll()?e.deletedValues():e.values()).forEach(function(e){var i={startKey:{column:e},endKey:{column:e}},l=this._getColumnIdxForColumnKey(e);l>=0&&(i.startIndex={column:l},i.endIndex={column:l}),t.push(i)},this),t.inverted=e.isAddAll(),t},I.prototype._applySelected=function(e){var t=e.row,i=e.column;if(this._getSelectedRowIdxs().forEach(function(e){var i=this._getTableBodyRow(e);const l=i[I._DATA_OJ_SELECTABLE]!==I._CONST_OFF;!t.has(this._getRowKey(i))&&l&&(this._applyRowSelection(e,i,!1),this._setLastRowSelection(e,!1))},this),this._isRowSelectionEnabled())if(t.isAddAll()){let e;this._getTableBodyRows().forEach(function(i,l){const o=i[I._DATA_OJ_SELECTABLE]!==I._CONST_OFF,n=this._getRowKey(i);t.has(n)&&o&&(this._applyRowSelection(l,i,!0),e=l)},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){i.has(this._getColumnKeyForColumnIdx(e))||this._applyColumnSelection(e,!1)},this),this._isColumnSelectionEnabled())if(i.isAddAll()){var l=this._getTableHeaderColumns();l.forEach(function(e,t){i.has(this._getColumnKeyForColumnIdx(t))&&this._applyColumnSelection(t,!0)},this);var o=l.length-1,n=this._getColumnKeyForColumnIdx(o);this._setLastHeaderColumnSelection(o,i.has(n))}else i.values().forEach(function(e){var t=this._getColumnIdxForColumnKey(e);null!=t&&t>=0&&this._applyColumnSelection(t,!0)},this)},I.prototype._applyRowSelection=function(e,t,i){if(t.classList.contains(I.MARKER_STYLE_CLASSES._SELECTED)!==i){i?t.classList.add(I.MARKER_STYLE_CLASSES._SELECTED):t.classList.remove(I.MARKER_STYLE_CLASSES._SELECTED);var l=this.options.dnd.drag;l&&("rows"===l||l.rows)&&this._getTableDndContext().setElementDraggable(t,i)}i?this._updateRowStateCellsClass(e,null,{selected:!0}):this._updateRowStateCellsClass(e,null,{selected:!1})},I.prototype._applyColumnSelection=function(e,t){var i=this.options.dnd.reorder;if(i&&i.columns===I._OPTION_ENABLED){var l=this._getTableHeaderColumn(e);this._getTableDndContext().setElementDraggable(l,t)}this._setColumnState(e,t)},I.prototype._setLastRowSelection=function(e,t){this._lastSelectedRowIdxArray||(this._lastSelectedRowIdxArray=[]);for(var i=this._lastSelectedRowIdxArray.length,l=0;l<i;l++)if(this._lastSelectedRowIdxArray[l]===e){this._lastSelectedRowIdxArray.splice(l,1);break}t&&this._lastSelectedRowIdxArray.push(e)},I.prototype._setLastHeaderColumnSelection=function(e,t){this._lastSelectedColumnIdxArray||(this._lastSelectedColumnIdxArray=[]);for(var i=this._lastSelectedColumnIdxArray.length,l=0;l<i;l++)if(this._lastSelectedColumnIdxArray[l]===e){this._lastSelectedColumnIdxArray.splice(l,1);break}t&&this._lastSelectedColumnIdxArray.push(e)},I.prototype._handleSelectionGesture=function(e,t,i){var l,o=this.option("selected"),n=o.row,s=o.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=i?n.delete([a]):new y.KeySetImpl([a]),l=!i):!i&&this._getSelectedRowIdxs().length>1&&r===I._OPTION_SELECTION_MODES._MULTIPLE?(n=new y.KeySetImpl([a]),l=!0):(n=n.delete([a]),l=!1):(n=i&&r===I._OPTION_SELECTION_MODES._MULTIPLE?n.add([a]):new y.KeySetImpl([a]),l=!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=i?s.delete([h]):new y.KeySetImpl([h]),l=!i):!i&&this._getSelectedHeaderColumnIdxs().length>1&&_===I._OPTION_SELECTION_MODES._MULTIPLE?(s=new y.KeySetImpl([h]),l=!0):(s=s.delete([h]),l=!1):(s=i&&_===I._OPTION_SELECTION_MODES._MULTIPLE?s.add([h]):new y.KeySetImpl([h]),l=!0)}}o.row===n&&o.column===s||(o={row:n,column:s},this._isSelectionRequiredSatisfied(o)&&(this._announceAccSelectionUpdate(l),this._setSelected(o)))},I.prototype._handleSelectAllGesture=function(){var e=this.option("selected"),t=e.row,i=e.column;i=i.clear(),t=t.isAddAll()?new y.KeySetImpl:new y.AllKeySetImpl,e.row===t&&e.column===i||(e={row:t,column:i},this._isSelectionRequiredSatisfied(e)&&this._setSelected(e))},I.prototype._handleMouseEnterSelection=function(e,t){if(this._isRowSelectionEnabled()&&!this._isStickyLayoutEnabled()){var i=this._getElementRowIdx(e);null!=this._mouseDownRowIdx&&null!=i&&this._mouseDownRowIdx!==i?(this._getRowSelectionMode()===I._OPTION_SELECTION_MODES._MULTIPLE&&this._selectRange(this._mouseDownRowIdx,i,!0),i<this._mouseDownRowIdx?this._moveTableBodyRowTouchSelectionAffordanceTop(i):this._moveTableBodyRowTouchSelectionAffordanceBottom(i)):null!=i&&i===this._mouseDownRowIdx&&(t?(this._selectRange(i,i,!0),this._moveTableBodyRowTouchSelectionAffordanceTop(i),this._moveTableBodyRowTouchSelectionAffordanceBottom(i)):this._clearSelectedRows())}},I.prototype._selectRange=function(e,t,i){var l,o=this.option("selected"),n=o.row,s=o.column;if(i){if(s=s.clear(),this._isRowSelectionEnabled()){if(n=n.clear(),e<=t)for(l=e;l<=t;l++){const e=this._getRowKeyForRowIdx(l),t=this._findRowElementByKey(e);t&&t[I._DATA_OJ_SELECTABLE]!==I._CONST_OFF&&(n=n.add([e]))}else for(l=e;l>=t;l--){const e=this._getRowKeyForRowIdx(l),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(l=e;l<=t;l++)s=s.add([this._getColumnKeyForColumnIdx(l)]);else for(l=e;l>=t;l--)s=s.add([this._getColumnKeyForColumnIdx(l)]);this._lastSelectedHeaderIdx=t}o.row===n&&o.column===s||(o={row:n,column:s},this._isSelectionRequiredSatisfied(o)&&this._setSelected(o))},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 i={row:t,column:this.option("selected.column")};this._setSelected(i)}},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 i=this._getTable().getElementsByClassName(I.CSS_CLASSES._TABLE_HEADER_SELECTOR_CLASS)[0];if(i){let e=t.values?t.values().size:t.deletedValues().size;i.indeterminate=0!==e}this._setSelected({row:t,column:new y.KeySetImpl},!1,!0)}},I.prototype._updateSelectors=function(e){let t=this._getTable(),i=t.getElementsByClassName(I.CSS_CLASSES._TABLE_HEADER_SELECTOR_CLASS);if(i.length>0){i[0].selectedKeys=e;let t=e.values?e.values().size:e.deletedValues().size;i[0].indeterminate=0!==t}let l=[],o=t.querySelectorAll(`\n .${I.CSS_CLASSES._TABLE_DATA_ROW_SELECTOR_CLASS} >\n .${I.MARKER_STYLE_CLASSES._SELECTED}`);for(let e=0;e<o.length;e++)l.push(o[e].parentElement);let n=Array.from(t.getElementsByClassName(I.CSS_CLASSES._TABLE_DATA_ROW_SELECTOR_CLASS));for(let t=0;t<n.length;t++){let i=n[t],o=-1!==l.indexOf(i);e.has(i.rowKey)?o||(i.selectedKeys=new y.KeySetImpl([i.rowKey])):o&&(i.selectedKeys=new y.KeySetImpl([]))}},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:"",columnResizeBehavior:"redistribute",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 i=t.rowIndex,l=this._getRowKeyForRowIdx(i);t.key=l}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,i=e.subId;if(i===I._SUB_ID._TABLE_CELL){var l=parseInt(e.rowIndex,10);return t=parseInt(e.columnIndex,10),this._getTableBodyLogicalCells(l)[t]}if(i===I._SUB_ID._TABLE_HEADER||i===I._SUB_ID._TABLE_SORT_ASCENDING||i===I._SUB_ID._TABLE_SORT_DESCENDING){t=e.index;var o=this._getTableHeaderLogicalColumns()[t];if(null!=o){if(i===I._SUB_ID._TABLE_HEADER)return o;if(i===I._SUB_ID._TABLE_SORT_ASCENDING){var n=this._getTableElementsByClassName(o,I.CSS_CLASSES._COLUMN_HEADER_ASC_ICON_CLASS);if(n.length>0)return n[0]}else{var s=this._getTableElementsByClassName(o,I.CSS_CLASSES._COLUMN_HEADER_DSC_ICON_CLASS);if(s.length>0)return s[0]}}}else if(i===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 i=this._getFirstAncestor(e,"."+I.CSS_CLASSES._TABLE_DATA_CELL_CLASS,!0);if(null!=i)return{subId:I._SUB_ID._TABLE_CELL,rowIndex:this._getElementRowIdx(i),columnIndex:this._getElementColumnIdx(i)};var l=this._getFirstAncestor(e,"."+I.CSS_CLASSES._COLUMN_HEADER_ASC_ICON_CLASS,!0);if(null!=l)return{subId:t?I._SUB_ID._TABLE_HEADER:I._SUB_ID._TABLE_SORT_ASCENDING,index:this._getElementColumnIdx(l)};var o=this._getFirstAncestor(e,"."+I.CSS_CLASSES._COLUMN_HEADER_DSC_ICON_CLASS,!0);if(null!=o)return{subId:t?I._SUB_ID._TABLE_HEADER:I._SUB_ID._TABLE_SORT_DESCENDING,index:this._getElementColumnIdx(o)};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 i=I._LOGGER_MSG._ERR_REFRESHROW_INVALID_INDEX_SUMMARY,l=p.applyParameters(I._LOGGER_MSG._ERR_REFRESHROW_INVALID_INDEX_DETAIL,{rowIdx:e.toString()});throw new RangeError(i+"\n"+l)}return this._queueTask(function(){return this._refreshRow(e,!0)}.bind(this))},I.prototype.widget=function(){var e=this._getTableContainer();return null!=e?c(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),A.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._setupSelectionChangedListener(),this._isInitFetch?(this._initFetch(),this._isInitFetch=!1):this._queueTask(function(){return this._getLayoutManager().notifyTableUpdate(I._UPDATE._REFRESH),this._invokeDataFetchRows()}.bind(this))},I.prototype._SetupContextMenu=function(){const e={};this._isStickyLayoutEnabled()&&(e.allowBrowserContextMenu=!0),this._super(e)},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._NotifyShown=function(){this._super(),this._getLayoutManager().notifyTableUpdate(I._UPDATE._SHOWN),this._hasPendingTasks()||this._syncTableSizing()},I.prototype._VerifyConnectedForSetup=function(){return!0},I.prototype._AllowConnectedSuspension=function(){return!0},I.prototype._GetDefaultContextMenu=function(){return this._defaultContextMenu},I.prototype._NotifyContextMenuGesture=function(e,t,i){var l={};if(this._contextMenuEvent=t.originalEvent?t.originalEvent:t,!(this._isNodeEditable(this._contextMenuEvent.target)||this._isNodeClickable(this._contextMenuEvent.target)||"touch"===i&&this._isNodeDraggable(this._contextMenuEvent.target))){var o,n=this._getFirstAncestor(this._contextMenuEvent.target,"."+I.CSS_CLASSES._TABLE_DATA_CELL_CLASS,!0);if(null!=n){var s=this._getElementColumnIdx(n);o=this._getTableHeaderColumn(s)}else o=this._getFirstAncestor(this._contextMenuEvent.target,"."+I.CSS_CLASSES._COLUMN_HEADER_CELL_CLASS,!0);if("keydown"===this._contextMenuEvent.type){var a=this._getTable();if(null==o&&(o=this._getActiveHeaderColumn()),this._contextMenuEvent.target===a)if(null!=o)l.position={my:I._POSITION._START_TOP,at:I._POSITION._START_BOTTOM,of:o};else{var r=this._getActiveRowIndex();if(r>=0){var _=this._getTableBodyRow(r);l.position={my:I._POSITION._START_TOP,at:I._POSITION._START_BOTTOM,of:_}}else l.position={my:I._POSITION._START_TOP,at:I._POSITION._START_BOTTOM,of:this._contextMenuEvent.target}}else l.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==o&&null==n&&null==h)return}this._contextMenuEventHeaderColumn=o;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],o&&o.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],o&&o.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],o&&o.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,i,l)}},I.prototype._setOptions=function(e,t){for(var i=!1,l=!1,o=!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?(this._columnsDestMap=null,o=!0):"selectionMode"===a&&void 0!==r.row?o=!0:"data"===a&&(l=!0),i=!0)}this._superApply(arguments),i&&(o&&(this._clearCachedMetadata(),this._refreshTableHeader()),l&&this._beforeDataRefresh(),this._refresh())},I.prototype._setOption=function(e,t,i){"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!=i?(this._superApply(arguments),this._isStickyLayoutEnabled()&&("scrollerOffsetTop"===i.subkey?(this._styleTableContainer(this._getTableContainer()),this._getLayoutManager()._updateStickyRowTops()):"scrollerOffsetBottom"===i.subkey?this._styleTableContainer(this._getTableContainer()):"scrollerOffsetStart"!==i.subkey&&"scrollerOffsetEnd"!==i.subkey||this._getLayoutManager()._initializeFrozenColumns())):"addRowDisplay"===e?(this._queueTask(function(){return this._refreshAddRowDisplay()}.bind(this)),this._superApply(arguments)):"selectAllControl"===e?(this._queueTask(function(){return this._refreshTableHeader()}.bind(this)),this._superApply(arguments)):this._superApply(arguments)},I.prototype._CompareOptionValues=function(e,t,i){switch(e){case"columns":case"currentRow":case"scrollPolicyOptions":return u.Object.compareValues(t,i);case"selection":return t&&void 0===t.inverted&&(t.inverted=!1),i&&void 0===i.inverted&&(i.inverted=!1),(!t||!i||t.inverted===i.inverted)&&u.Object.compareValues(t,i);case"selected":return(t.row&&i.row&&A.areKeySetsEqual(t.row,i.row)||null==t.row&&null==i.row)&&(t.column&&i.column&&A.areKeySetsEqual(t.column,i.column)||null==t.column&&null==i.column);default:return this._super(e,t,i)}},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 x(this):this._layoutManager=new P(this):(this._layoutManager=new M(this),this._isFixedLayoutEnabled()&&E.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 i=this._getColumnDefs(),l=this._getColumnIdxForColumnKey(e),o=this._getTableHeaderColumn(l);return l<i.length?this._getColumnDefs()[l].sortable===I._OPTION_ENABLED?null!=o&&c(o).data("sorted")===t?`Column is already sorted in ${t} order.`:(this._handleSortTableHeaderColumn(l,t===I._COLUMN_SORT_ORDER._ASCENDING,null),null):"Sort is not enabled for given header.":"Invalid header."},u.__registerWidget("oj.ojTable",c.oj.baseComponent,new I),g.setDefaultOptions({ojTable:{display:g.createDynamicPropertyGetter(function(){return f.getCachedCSSVarValues(["--oj-private-table-global-display-default"])[0]})}})});
9
9
  //# sourceMappingURL=ojtable.js.map