@sankhyalabs/ezui 7.3.3 → 7.3.4-dev.1

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 (1017) hide show
  1. package/README.md +8 -8
  2. package/dist/cjs/{ApplicationUtils-5cc05979.js → ApplicationUtils-9a9185fc.js} +1 -1
  3. package/dist/cjs/FormLayout-fe8da83c.js +9 -0
  4. package/dist/cjs/{app-globals-2fbe4b17.js → app-globals-27a943d9.js} +1 -1
  5. package/dist/cjs/{ez-combo-box-list_5.cjs.entry.js → classic-search-list_8.cjs.entry.js} +364 -5
  6. package/dist/cjs/ez-actions-button.cjs.entry.js +4 -3
  7. package/dist/cjs/ez-alert-list.cjs.entry.js +1 -1
  8. package/dist/cjs/ez-avatar.cjs.entry.js +1 -1
  9. package/dist/cjs/ez-calendar.cjs.entry.js +1 -1
  10. package/dist/cjs/ez-card-item.cjs.entry.js +62 -0
  11. package/dist/cjs/ez-chart.cjs.entry.js +1 -1
  12. package/dist/cjs/ez-classic-combo-box.cjs.entry.js +38 -15
  13. package/dist/cjs/ez-classic-date-input.cjs.entry.js +201 -0
  14. package/dist/cjs/ez-classic-date-time-input.cjs.entry.js +246 -0
  15. package/dist/cjs/ez-classic-input.cjs.entry.js +144 -18
  16. package/dist/cjs/ez-classic-number-input.cjs.entry.js +205 -0
  17. package/dist/cjs/ez-classic-search-plus.cjs.entry.js +420 -0
  18. package/dist/cjs/ez-classic-search.cjs.entry.js +683 -0
  19. package/dist/cjs/ez-classic-text-area.cjs.entry.js +13 -2
  20. package/dist/cjs/ez-classic-time-input.cjs.entry.js +198 -0
  21. package/dist/cjs/ez-collapsible-box.cjs.entry.js +4 -3
  22. package/dist/cjs/ez-combo-box.cjs.entry.js +4 -3
  23. package/dist/cjs/ez-date-input.cjs.entry.js +1 -1
  24. package/dist/cjs/ez-date-time-input.cjs.entry.js +1 -1
  25. package/dist/cjs/ez-dialog.cjs.entry.js +1 -1
  26. package/dist/cjs/ez-double-list.cjs.entry.js +1 -1
  27. package/dist/cjs/ez-dropdown.cjs.entry.js +1 -1
  28. package/dist/cjs/ez-empty-card.cjs.entry.js +1 -1
  29. package/dist/cjs/ez-file-item.cjs.entry.js +1 -1
  30. package/dist/cjs/ez-form-view.cjs.entry.js +130 -37
  31. package/dist/cjs/ez-form.cjs.entry.js +144 -81
  32. package/dist/cjs/ez-grid-pagination.cjs.entry.js +331 -0
  33. package/dist/cjs/ez-grid.cjs.entry.js +1036 -264
  34. package/dist/cjs/ez-guide-navigator.cjs.entry.js +1 -1
  35. package/dist/cjs/ez-icon.cjs.entry.js +1 -1
  36. package/dist/cjs/ez-link-builder_6.cjs.entry.js +1 -1
  37. package/dist/cjs/ez-list.cjs.entry.js +1 -1
  38. package/dist/cjs/ez-modal-container.cjs.entry.js +1 -1
  39. package/dist/cjs/ez-modal.cjs.entry.js +2 -2
  40. package/dist/cjs/{ez-card-item_5.cjs.entry.js → ez-multi-selection-list_5.cjs.entry.js} +222 -56
  41. package/dist/cjs/ez-number-input.cjs.entry.js +1 -1
  42. package/dist/cjs/ez-pagination.cjs.entry.js +1 -1
  43. package/dist/cjs/ez-popover.cjs.entry.js +8 -0
  44. package/dist/cjs/ez-popup.cjs.entry.js +1 -1
  45. package/dist/cjs/ez-record-navigation.cjs.entry.js +121 -0
  46. package/dist/cjs/ez-scroller_2.cjs.entry.js +81 -14
  47. package/dist/cjs/ez-search-plus.cjs.entry.js +18 -8
  48. package/dist/cjs/ez-search-result-list.cjs.entry.js +1 -1
  49. package/dist/cjs/ez-search.cjs.entry.js +49 -11
  50. package/dist/cjs/ez-sidebar-navigator.cjs.entry.js +1 -1
  51. package/dist/cjs/ez-skeleton.cjs.entry.js +1 -1
  52. package/dist/cjs/ez-sortable-list.cjs.entry.js +2 -2
  53. package/dist/cjs/ez-spinner.cjs.entry.js +1 -1
  54. package/dist/cjs/ez-split-button.cjs.entry.js +16 -17
  55. package/dist/cjs/ez-split-item.cjs.entry.js +7 -5
  56. package/dist/cjs/ez-split-panel.cjs.entry.js +6 -4
  57. package/dist/cjs/ez-tabselector.cjs.entry.js +209 -61
  58. package/dist/cjs/ez-text-input.cjs.entry.js +37 -0
  59. package/dist/cjs/ez-time-input.cjs.entry.js +1 -1
  60. package/dist/cjs/ez-tooltip.cjs.entry.js +1 -1
  61. package/dist/cjs/ez-tree.cjs.entry.js +1 -1
  62. package/dist/cjs/ez-upload.cjs.entry.js +2 -2
  63. package/dist/cjs/ezui.cjs.js +3 -3
  64. package/dist/cjs/filter-column.cjs.entry.js +1 -1
  65. package/dist/cjs/{floating-ui.dom.esm-f1e4e440.js → floating-ui.dom.esm-4a0428c0.js} +309 -260
  66. package/dist/cjs/index-a7b0c73d.js +58 -26
  67. package/dist/cjs/{index-1be40f19.js → index-d4a1cad8.js} +175 -30
  68. package/dist/cjs/loader.cjs.js +3 -3
  69. package/dist/cjs/{purify-06a8724d.js → purify-4f39f037.js} +293 -117
  70. package/dist/cjs/{search-column-316e2c59.js → search-column-c04897a9.js} +12 -10
  71. package/dist/cjs/searchFormatters-051f8677.js +23 -0
  72. package/dist/cjs/{FormLayout-18853e70.js → types-6a5df0c7.js} +0 -6
  73. package/dist/collection/collection-manifest.json +64 -3
  74. package/dist/collection/components/ez-classic-combo-box/ez-classic-combo-box.css +5 -0
  75. package/dist/collection/components/ez-classic-combo-box/ez-classic-combo-box.js +96 -18
  76. package/dist/collection/components/ez-classic-date-input/ez-classic-date-input.css +44 -0
  77. package/dist/collection/components/ez-classic-date-input/ez-classic-date-input.js +541 -0
  78. package/dist/collection/components/ez-classic-date-time-input/ez-classic-date-time-input.css +44 -0
  79. package/dist/collection/components/ez-classic-date-time-input/ez-classic-date-time-input.js +586 -0
  80. package/dist/collection/components/ez-classic-input/ez-classic-input.css +33 -5
  81. package/dist/collection/components/ez-classic-input/ez-classic-input.js +200 -19
  82. package/dist/collection/components/ez-classic-number-input/ez-classic-number-input.css +16 -0
  83. package/dist/collection/components/ez-classic-number-input/ez-classic-number-input.js +583 -0
  84. package/dist/collection/components/ez-classic-search/ez-classic-search.css +126 -0
  85. package/dist/collection/components/ez-classic-search/ez-classic-search.js +1330 -0
  86. package/dist/collection/components/ez-classic-search/subcomponent/classic-search-list/classic-search-list.css +227 -0
  87. package/dist/collection/components/ez-classic-search/subcomponent/classic-search-list/classic-search-list.js +316 -0
  88. package/dist/collection/components/ez-classic-search/utils/searchFormatters.js +18 -0
  89. package/dist/collection/components/ez-classic-search-plus/ez-classic-search-plus.css +428 -0
  90. package/dist/collection/components/ez-classic-search-plus/ez-classic-search-plus.js +1003 -0
  91. package/dist/collection/components/ez-classic-search-plus/subcomponent/ez-search-result-list/ez-classic-search-result-list.css +221 -0
  92. package/dist/collection/components/ez-classic-search-plus/subcomponent/ez-search-result-list/ez-classic-search-result-list.js +298 -0
  93. package/dist/collection/components/ez-classic-text-area/ez-classic-text-area.css +3 -2
  94. package/dist/collection/components/ez-classic-text-area/ez-classic-text-area.js +32 -1
  95. package/dist/collection/components/ez-classic-time-input/ez-classic-time-input.css +14 -0
  96. package/dist/collection/components/ez-classic-time-input/ez-classic-time-input.js +512 -0
  97. package/dist/collection/components/ez-dropdown/ez-dropdown.css +2 -2
  98. package/dist/collection/components/ez-empty-card/ez-empty-card.js +7 -7
  99. package/dist/collection/components/ez-form/ez-form.js +30 -4
  100. package/dist/collection/components/ez-form-view/ez-form-view.css +27 -8
  101. package/dist/collection/components/ez-form-view/ez-form-view.js +62 -4
  102. package/dist/collection/components/ez-form-view/fieldbuilder/FieldBuilder.js +9 -4
  103. package/dist/collection/components/ez-form-view/fieldbuilder/templates/CheckBox.tpl.js +9 -6
  104. package/dist/collection/components/ez-form-view/fieldbuilder/templates/ComboBox.tpl.js +8 -1
  105. package/dist/collection/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.js +30 -6
  106. package/dist/collection/components/ez-form-view/fieldbuilder/templates/FileInput.tpl.js +1 -1
  107. package/dist/collection/components/ez-form-view/fieldbuilder/templates/ImageInput.tpl.js +4 -0
  108. package/dist/collection/components/ez-form-view/fieldbuilder/templates/NumberInput.tpl.js +12 -5
  109. package/dist/collection/components/ez-form-view/fieldbuilder/templates/RichText.tpl.js +1 -1
  110. package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.js +9 -3
  111. package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInputPlus.tpl.js +8 -1
  112. package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextArea.tpl.js +7 -1
  113. package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.js +8 -1
  114. package/dist/collection/components/ez-form-view/structure/index.js +1 -1
  115. package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +194 -13
  116. package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +11 -1
  117. package/dist/collection/components/ez-grid/controller/ag-grid/gridColumnDefaultWidths.js +23 -0
  118. package/dist/collection/components/ez-grid/controller/ag-grid/utils/AggFunctionResolver.js +24 -0
  119. package/dist/collection/components/ez-grid/ez-grid.css +5 -60
  120. package/dist/collection/components/ez-grid/ez-grid.js +52 -150
  121. package/dist/collection/components/ez-grid/interfaces/IAggegationFunc.js +1 -0
  122. package/dist/collection/components/ez-grid/utils/index.js +1 -0
  123. package/dist/collection/components/ez-grid-pagination/ez-grid-pagination.css +217 -0
  124. package/dist/collection/components/ez-grid-pagination/ez-grid-pagination.js +516 -0
  125. package/dist/collection/components/ez-grid-pagination/ez-grid-pagination.model.js +1 -0
  126. package/dist/collection/components/ez-icon/ez-icon.css +8 -7
  127. package/dist/collection/components/ez-image-input/ez-image-input.css +189 -0
  128. package/dist/collection/components/ez-image-input/ez-image-input.js +329 -0
  129. package/dist/collection/components/ez-modal/ez-modal.css +3 -0
  130. package/dist/collection/components/ez-popover/ez-popover.js +27 -0
  131. package/dist/collection/components/ez-record-navigation/ez-record-navigation.css +51 -0
  132. package/dist/collection/components/ez-record-navigation/ez-record-navigation.js +246 -0
  133. package/dist/collection/components/ez-scroller/EzScrollNavigationMode.js +5 -0
  134. package/dist/collection/components/ez-scroller/ez-scroller.css +117 -11
  135. package/dist/collection/components/ez-scroller/ez-scroller.js +118 -13
  136. package/dist/collection/components/ez-search/ez-search.css +4 -0
  137. package/dist/collection/components/ez-search/ez-search.js +75 -3
  138. package/dist/collection/components/ez-search-plus/ez-search-plus.js +11 -2
  139. package/dist/collection/components/ez-sortable-list/ez-sortable-list.css +1 -1
  140. package/dist/collection/components/ez-split-button/ez-split-button.css +1 -1
  141. package/dist/collection/components/ez-split-button/ez-split-button.js +20 -15
  142. package/dist/collection/components/ez-split-panel/ez-split-panel.css +29 -0
  143. package/dist/collection/components/ez-split-panel/ez-split-panel.js +23 -3
  144. package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.css +9 -0
  145. package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.js +20 -1
  146. package/dist/collection/components/ez-tabselector/ez-tabselector.css +33 -1
  147. package/dist/collection/components/ez-tabselector/ez-tabselector.js +254 -62
  148. package/dist/collection/components/ez-text-input/ez-text-input.js +38 -1
  149. package/dist/collection/utils/form/DataBinder.js +2 -2
  150. package/dist/collection/utils/form/FormMetadata.js +132 -74
  151. package/dist/collection/utils/form/interfaces/FormLayout.js +3 -1
  152. package/dist/collection/utils/i18n/locales/en-us.js +55 -4
  153. package/dist/collection/utils/i18n/locales/es-es.js +55 -4
  154. package/dist/collection/utils/i18n/locales/pt-br.js +55 -4
  155. package/dist/collection/utils/searchColumn/search-column.js +8 -6
  156. package/dist/custom-elements/index.d.ts +66 -0
  157. package/dist/custom-elements/index.js +5455 -956
  158. package/dist/esm/{ApplicationUtils-1569f757.js → ApplicationUtils-29d2709c.js} +1 -1
  159. package/dist/esm/FormLayout-bda67973.js +9 -0
  160. package/dist/esm/{app-globals-c0ac93c0.js → app-globals-44bdc4c4.js} +1 -1
  161. package/dist/esm/{ez-combo-box-list_5.entry.js → classic-search-list_8.entry.js} +363 -7
  162. package/dist/esm/ez-actions-button.entry.js +4 -3
  163. package/dist/esm/ez-alert-list.entry.js +1 -1
  164. package/dist/esm/ez-avatar.entry.js +1 -1
  165. package/dist/esm/ez-calendar.entry.js +1 -1
  166. package/dist/esm/ez-card-item.entry.js +58 -0
  167. package/dist/esm/ez-chart.entry.js +1 -1
  168. package/dist/esm/ez-classic-combo-box.entry.js +38 -15
  169. package/dist/esm/ez-classic-date-input.entry.js +197 -0
  170. package/dist/esm/ez-classic-date-time-input.entry.js +242 -0
  171. package/dist/esm/ez-classic-input.entry.js +145 -19
  172. package/dist/esm/ez-classic-number-input.entry.js +201 -0
  173. package/dist/esm/ez-classic-search-plus.entry.js +416 -0
  174. package/dist/esm/ez-classic-search.entry.js +679 -0
  175. package/dist/esm/ez-classic-text-area.entry.js +13 -2
  176. package/dist/esm/ez-classic-time-input.entry.js +194 -0
  177. package/dist/esm/ez-collapsible-box.entry.js +4 -3
  178. package/dist/esm/ez-combo-box.entry.js +4 -3
  179. package/dist/esm/ez-date-input.entry.js +1 -1
  180. package/dist/esm/ez-date-time-input.entry.js +1 -1
  181. package/dist/esm/ez-dialog.entry.js +1 -1
  182. package/dist/esm/ez-double-list.entry.js +1 -1
  183. package/dist/esm/ez-dropdown.entry.js +1 -1
  184. package/dist/esm/ez-empty-card.entry.js +1 -1
  185. package/dist/esm/ez-file-item.entry.js +1 -1
  186. package/dist/esm/ez-form-view.entry.js +130 -37
  187. package/dist/esm/ez-form.entry.js +144 -81
  188. package/dist/esm/ez-grid-pagination.entry.js +327 -0
  189. package/dist/esm/ez-grid.entry.js +1035 -263
  190. package/dist/esm/ez-guide-navigator.entry.js +1 -1
  191. package/dist/esm/ez-icon.entry.js +1 -1
  192. package/dist/esm/ez-link-builder_6.entry.js +1 -1
  193. package/dist/esm/ez-list.entry.js +1 -1
  194. package/dist/esm/ez-modal-container.entry.js +1 -1
  195. package/dist/esm/ez-modal.entry.js +2 -2
  196. package/dist/esm/{ez-card-item_5.entry.js → ez-multi-selection-list_5.entry.js} +224 -58
  197. package/dist/esm/ez-number-input.entry.js +1 -1
  198. package/dist/esm/ez-pagination.entry.js +1 -1
  199. package/dist/esm/ez-popover.entry.js +8 -0
  200. package/dist/esm/ez-popup.entry.js +1 -1
  201. package/dist/esm/ez-record-navigation.entry.js +117 -0
  202. package/dist/esm/ez-scroller_2.entry.js +81 -14
  203. package/dist/esm/ez-search-plus.entry.js +15 -5
  204. package/dist/esm/ez-search-result-list.entry.js +1 -1
  205. package/dist/esm/ez-search.entry.js +44 -6
  206. package/dist/esm/ez-sidebar-navigator.entry.js +1 -1
  207. package/dist/esm/ez-skeleton.entry.js +1 -1
  208. package/dist/esm/ez-sortable-list.entry.js +2 -2
  209. package/dist/esm/ez-spinner.entry.js +1 -1
  210. package/dist/esm/ez-split-button.entry.js +16 -17
  211. package/dist/esm/ez-split-item.entry.js +7 -5
  212. package/dist/esm/ez-split-panel.entry.js +6 -4
  213. package/dist/esm/ez-tabselector.entry.js +209 -61
  214. package/dist/esm/ez-text-input.entry.js +37 -0
  215. package/dist/esm/ez-time-input.entry.js +1 -1
  216. package/dist/esm/ez-tooltip.entry.js +1 -1
  217. package/dist/esm/ez-tree.entry.js +1 -1
  218. package/dist/esm/ez-upload.entry.js +2 -2
  219. package/dist/esm/ezui.js +3 -3
  220. package/dist/esm/filter-column.entry.js +1 -1
  221. package/dist/esm/{floating-ui.dom.esm-c94d4011.js → floating-ui.dom.esm-ffa73324.js} +309 -260
  222. package/dist/esm/{index-41363fa6.js → index-b5a15d4b.js} +175 -30
  223. package/dist/esm/index-baa5e267.js +58 -26
  224. package/dist/esm/loader.js +3 -3
  225. package/dist/esm/{purify-ca96ec34.js → purify-f52f5419.js} +293 -117
  226. package/dist/esm/{search-column-c20d2b01.js → search-column-9414ad22.js} +12 -10
  227. package/dist/esm/searchFormatters-6d9b06e4.js +20 -0
  228. package/dist/esm/{FormLayout-071d324c.js → types-6f6b2650.js} +1 -7
  229. package/dist/ezui/ezui.esm.js +1 -1
  230. package/dist/ezui/p-08e3184d.entry.js +1 -0
  231. package/dist/ezui/p-0d80e3ec.entry.js +1 -0
  232. package/dist/ezui/p-0ddb9a95.entry.js +1 -0
  233. package/dist/ezui/{p-3afa1c6e.entry.js → p-0fbf5842.entry.js} +1 -1
  234. package/dist/ezui/{p-4fe123b6.entry.js → p-1160c33a.entry.js} +1 -1
  235. package/dist/ezui/p-1222005d.entry.js +1 -0
  236. package/dist/ezui/p-178cb9df.entry.js +1 -0
  237. package/dist/ezui/p-1c7aa5af.entry.js +1 -0
  238. package/dist/ezui/{p-859e3134.entry.js → p-27236a0f.entry.js} +1 -1
  239. package/dist/ezui/{p-02d448bb.entry.js → p-2c1c9ec6.entry.js} +1 -1
  240. package/dist/ezui/{p-baec56c9.js → p-320c401f.js} +1 -1
  241. package/dist/ezui/p-34a09786.entry.js +1 -0
  242. package/dist/ezui/{p-82b0afe7.entry.js → p-359430a5.entry.js} +1 -1
  243. package/dist/ezui/{p-110cfb7d.entry.js → p-381570d2.entry.js} +1 -1
  244. package/dist/ezui/p-3b7d9f30.js +1 -0
  245. package/dist/ezui/{p-d5eb2fad.entry.js → p-3b9ccdb7.entry.js} +1 -1
  246. package/dist/ezui/p-40a0a773.entry.js +1 -0
  247. package/dist/ezui/{p-b3d8034b.entry.js → p-40c92fc7.entry.js} +1 -1
  248. package/dist/ezui/p-45d09b32.entry.js +1 -0
  249. package/dist/ezui/p-46188bfe.entry.js +1 -0
  250. package/dist/ezui/p-47e4a8ce.js +1 -0
  251. package/dist/ezui/p-49bc0b59.entry.js +1 -0
  252. package/dist/ezui/p-5124ba43.entry.js +1 -0
  253. package/dist/ezui/{p-721fd999.entry.js → p-52122022.entry.js} +1 -1
  254. package/dist/ezui/p-5895e687.js +1 -0
  255. package/dist/ezui/p-58ce160e.js +3 -0
  256. package/dist/ezui/{p-04126429.js → p-58fa7883.js} +1 -1
  257. package/dist/ezui/{p-0f7971cf.entry.js → p-5a217a52.entry.js} +1 -1
  258. package/dist/ezui/p-63409a57.entry.js +1 -0
  259. package/dist/ezui/p-6369a0cd.entry.js +1 -0
  260. package/dist/ezui/{p-ce0b36d7.entry.js → p-664b9f4c.entry.js} +1 -1
  261. package/dist/ezui/{p-9b3f3c02.entry.js → p-6c24ab67.entry.js} +1 -1
  262. package/dist/ezui/{p-34a476a9.entry.js → p-73bae77e.entry.js} +1 -1
  263. package/dist/ezui/p-7b6c9097.entry.js +309 -0
  264. package/dist/ezui/{p-a80e6b24.entry.js → p-7ecac0c4.entry.js} +1 -1
  265. package/dist/ezui/{p-39761eca.entry.js → p-83ffba67.entry.js} +1 -1
  266. package/dist/ezui/{p-d6bb930d.entry.js → p-852d6133.entry.js} +1 -1
  267. package/dist/ezui/p-88a115b3.js +1 -0
  268. package/dist/ezui/p-8ebe11f4.js +1 -0
  269. package/dist/ezui/p-90a0b52b.entry.js +1 -0
  270. package/dist/ezui/p-95fb50d1.entry.js +1 -0
  271. package/dist/ezui/{p-6c51ccd1.entry.js → p-97545f8e.entry.js} +1 -1
  272. package/dist/ezui/{p-948f0fb2.entry.js → p-a62bbd49.entry.js} +1 -1
  273. package/dist/ezui/p-abfbbe1e.entry.js +1 -0
  274. package/dist/ezui/{p-b989a33e.entry.js → p-ade1c43b.entry.js} +1 -1
  275. package/dist/ezui/{p-9ab2add9.entry.js → p-afb2f145.entry.js} +1 -1
  276. package/dist/ezui/p-b29d9b0e.entry.js +1 -0
  277. package/dist/ezui/p-b43fcdb6.js +1 -0
  278. package/dist/ezui/{p-4d30b703.entry.js → p-b50289bb.entry.js} +1 -1
  279. package/dist/ezui/p-b5d88625.entry.js +1 -0
  280. package/dist/ezui/p-bcf0460e.entry.js +1 -0
  281. package/dist/ezui/p-be4b042f.entry.js +1 -0
  282. package/dist/ezui/{p-05c32903.entry.js → p-c547f48f.entry.js} +1 -1
  283. package/dist/ezui/{p-ecd6409d.entry.js → p-c6b9a72a.entry.js} +2 -2
  284. package/dist/ezui/p-ca4c015a.entry.js +1 -0
  285. package/dist/ezui/p-d6f50207.entry.js +1 -0
  286. package/dist/ezui/p-d892e4c5.entry.js +1 -0
  287. package/dist/ezui/p-dcb7275b.entry.js +1 -0
  288. package/dist/ezui/p-dcd6a163.entry.js +1 -0
  289. package/dist/ezui/p-dcde2e69.entry.js +1 -0
  290. package/dist/ezui/p-ddf856db.entry.js +1 -0
  291. package/dist/ezui/p-df6173c8.entry.js +1 -0
  292. package/dist/ezui/{p-a4083a7a.entry.js → p-e60aa084.entry.js} +1 -1
  293. package/dist/ezui/p-eb0cfd29.entry.js +1 -0
  294. package/dist/ezui/{p-e5de42e7.entry.js → p-ef3cd4ef.entry.js} +1 -1
  295. package/dist/ezui/{p-fa6732f2.entry.js → p-efea2c79.entry.js} +1 -1
  296. package/dist/ezui/{p-9b215871.entry.js → p-f7fb2587.entry.js} +1 -1
  297. package/dist/ezui/p-fed3f5fe.entry.js +1 -0
  298. package/dist/types/components/ez-classic-combo-box/ez-classic-combo-box.d.ts +11 -3
  299. package/dist/types/components/ez-classic-date-input/ez-classic-date-input.d.ts +91 -0
  300. package/dist/types/components/ez-classic-date-time-input/ez-classic-date-time-input.d.ts +95 -0
  301. package/dist/types/components/ez-classic-input/ez-classic-input.d.ts +24 -1
  302. package/dist/types/components/ez-classic-number-input/ez-classic-number-input.d.ts +101 -0
  303. package/dist/types/components/ez-classic-search/ez-classic-search.d.ts +219 -0
  304. package/dist/types/components/ez-classic-search/subcomponent/classic-search-list/classic-search-list.d.ts +29 -0
  305. package/dist/types/components/ez-classic-search/utils/searchFormatters.d.ts +2 -0
  306. package/dist/types/components/ez-classic-search-plus/ez-classic-search-plus.d.ts +189 -0
  307. package/dist/types/components/ez-classic-search-plus/subcomponent/ez-search-result-list/ez-classic-search-result-list.d.ts +29 -0
  308. package/dist/types/components/ez-classic-text-area/ez-classic-text-area.d.ts +3 -0
  309. package/dist/types/components/ez-empty-card/ez-empty-card.d.ts +2 -2
  310. package/dist/types/components/ez-form/ez-form.d.ts +6 -0
  311. package/dist/types/components/ez-form-view/ez-form-view.d.ts +11 -0
  312. package/dist/types/components/ez-form-view/fieldbuilder/FieldBuilder.d.ts +9 -0
  313. package/dist/types/components/ez-form-view/fieldbuilder/templates/CheckBox.tpl.d.ts +3 -2
  314. package/dist/types/components/ez-form-view/fieldbuilder/templates/ComboBox.tpl.d.ts +2 -1
  315. package/dist/types/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.d.ts +5 -4
  316. package/dist/types/components/ez-form-view/fieldbuilder/templates/FileInput.tpl.d.ts +2 -1
  317. package/dist/types/components/ez-form-view/fieldbuilder/templates/ImageInput.tpl.d.ts +2 -0
  318. package/dist/types/components/ez-form-view/fieldbuilder/templates/NumberInput.tpl.d.ts +3 -2
  319. package/dist/types/components/ez-form-view/fieldbuilder/templates/RichText.tpl.d.ts +2 -1
  320. package/dist/types/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.d.ts +2 -1
  321. package/dist/types/components/ez-form-view/fieldbuilder/templates/SearchInputPlus.tpl.d.ts +2 -1
  322. package/dist/types/components/ez-form-view/fieldbuilder/templates/TextArea.tpl.d.ts +2 -1
  323. package/dist/types/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.d.ts +2 -1
  324. package/dist/types/components/ez-grid/controller/EzGridController.d.ts +2 -0
  325. package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +31 -0
  326. package/dist/types/components/ez-grid/controller/ag-grid/gridColumnDefaultWidths.d.ts +4 -0
  327. package/dist/types/components/ez-grid/controller/ag-grid/utils/AggFunctionResolver.d.ts +2 -0
  328. package/dist/types/components/ez-grid/ez-grid.d.ts +10 -27
  329. package/dist/types/components/ez-grid/interfaces/IAggegationFunc.d.ts +3 -0
  330. package/dist/types/components/ez-grid/utils/index.d.ts +1 -0
  331. package/dist/types/components/ez-grid-pagination/ez-grid-pagination.d.ts +91 -0
  332. package/dist/types/components/ez-grid-pagination/ez-grid-pagination.model.d.ts +7 -0
  333. package/dist/types/components/ez-image-input/ez-image-input.d.ts +43 -0
  334. package/dist/types/components/ez-popover/ez-popover.d.ts +9 -0
  335. package/dist/types/components/ez-record-navigation/ez-record-navigation.d.ts +43 -0
  336. package/dist/types/components/ez-scroller/EzScrollNavigationMode.d.ts +4 -0
  337. package/dist/types/components/ez-scroller/ez-scroller.d.ts +16 -2
  338. package/dist/types/components/ez-search/ez-search.d.ts +12 -1
  339. package/dist/types/components/ez-search-plus/ez-search-plus.d.ts +1 -0
  340. package/dist/types/components/ez-split-button/ez-split-button.d.ts +1 -2
  341. package/dist/types/components/ez-split-panel/ez-split-panel.d.ts +4 -0
  342. package/dist/types/components/ez-split-panel/structure/item/ez-split-item.d.ts +4 -0
  343. package/dist/types/components/ez-tabselector/ez-tabselector.d.ts +42 -20
  344. package/dist/types/components/ez-text-input/ez-text-input.d.ts +4 -0
  345. package/dist/types/components.d.ts +3516 -2053
  346. package/dist/types/utils/form/FormMetadata.d.ts +2 -1
  347. package/dist/types/utils/form/interfaces/FormLayout.d.ts +3 -1
  348. package/dist/types/utils/form/interfaces/IFormSheetMetadata.d.ts +3 -0
  349. package/dist/types/utils/form/interfaces/ITabConfig.d.ts +3 -0
  350. package/dist/types/utils/i18n/locales/en-us.d.ts +54 -3
  351. package/dist/types/utils/i18n/locales/es-es.d.ts +54 -3
  352. package/dist/types/utils/i18n/locales/pt-br.d.ts +54 -3
  353. package/dist/types/utils/i18n/translations.d.ts +162 -9
  354. package/package.json +12 -7
  355. package/react/components.d.ts +11 -0
  356. package/react/components.js +11 -0
  357. package/react/components.js.map +1 -1
  358. package/dist/cjs/ApplicationUtils-5cc05979.js.gz +0 -0
  359. package/dist/cjs/CSSVarsUtils-f20973d1.js.gz +0 -0
  360. package/dist/cjs/CheckMode-ecb90b87.js.gz +0 -0
  361. package/dist/cjs/DialogType-2114c337.js.gz +0 -0
  362. package/dist/cjs/EzScrollDirection-b2c99895.js.gz +0 -0
  363. package/dist/cjs/FocusResolver-885f2173.js.gz +0 -0
  364. package/dist/cjs/FormLayout-18853e70.js.gz +0 -0
  365. package/dist/cjs/RichToolbarHelper-ea12328f.js.gz +0 -0
  366. package/dist/cjs/_commonjsHelpers-537d719a.js.gz +0 -0
  367. package/dist/cjs/app-globals-2fbe4b17.js.gz +0 -0
  368. package/dist/cjs/constants-72b7e05e.js.gz +0 -0
  369. package/dist/cjs/ez-actions-button.cjs.entry.js.gz +0 -0
  370. package/dist/cjs/ez-alert-list.cjs.entry.js.gz +0 -0
  371. package/dist/cjs/ez-alert.cjs.entry.js.gz +0 -0
  372. package/dist/cjs/ez-application.cjs.entry.js.gz +0 -0
  373. package/dist/cjs/ez-avatar.cjs.entry.js.gz +0 -0
  374. package/dist/cjs/ez-badge.cjs.entry.js.gz +0 -0
  375. package/dist/cjs/ez-breadcrumb.cjs.entry.js.gz +0 -0
  376. package/dist/cjs/ez-button.cjs.entry.js.gz +0 -0
  377. package/dist/cjs/ez-calendar.cjs.entry.js.gz +0 -0
  378. package/dist/cjs/ez-card-item_5.cjs.entry.js.gz +0 -0
  379. package/dist/cjs/ez-chart.cjs.entry.js.gz +0 -0
  380. package/dist/cjs/ez-check.cjs.entry.js.gz +0 -0
  381. package/dist/cjs/ez-chip.cjs.entry.js.gz +0 -0
  382. package/dist/cjs/ez-classic-combo-box.cjs.entry.js.gz +0 -0
  383. package/dist/cjs/ez-classic-input.cjs.entry.js.gz +0 -0
  384. package/dist/cjs/ez-classic-text-area.cjs.entry.js.gz +0 -0
  385. package/dist/cjs/ez-collapsible-box.cjs.entry.js.gz +0 -0
  386. package/dist/cjs/ez-combo-box-list_5.cjs.entry.js.gz +0 -0
  387. package/dist/cjs/ez-combo-box.cjs.entry.js.gz +0 -0
  388. package/dist/cjs/ez-date-input.cjs.entry.js.gz +0 -0
  389. package/dist/cjs/ez-date-time-input.cjs.entry.js.gz +0 -0
  390. package/dist/cjs/ez-dialog.cjs.entry.js.gz +0 -0
  391. package/dist/cjs/ez-double-list.cjs.entry.js.gz +0 -0
  392. package/dist/cjs/ez-dropdown.cjs.entry.js.gz +0 -0
  393. package/dist/cjs/ez-empty-card.cjs.entry.js.gz +0 -0
  394. package/dist/cjs/ez-file-item.cjs.entry.js.gz +0 -0
  395. package/dist/cjs/ez-filter-input.cjs.entry.js.gz +0 -0
  396. package/dist/cjs/ez-form-view.cjs.entry.js.gz +0 -0
  397. package/dist/cjs/ez-form.cjs.entry.js.gz +0 -0
  398. package/dist/cjs/ez-grid-view.cjs.entry.js.gz +0 -0
  399. package/dist/cjs/ez-grid.cjs.entry.js.gz +0 -0
  400. package/dist/cjs/ez-guide-navigator.cjs.entry.js.gz +0 -0
  401. package/dist/cjs/ez-icon.cjs.entry.js.gz +0 -0
  402. package/dist/cjs/ez-link-builder_6.cjs.entry.js.gz +0 -0
  403. package/dist/cjs/ez-list-item.cjs.entry.js.gz +0 -0
  404. package/dist/cjs/ez-list.cjs.entry.js.gz +0 -0
  405. package/dist/cjs/ez-loading-bar.cjs.entry.js.gz +0 -0
  406. package/dist/cjs/ez-modal-container.cjs.entry.js.gz +0 -0
  407. package/dist/cjs/ez-modal.cjs.entry.js.gz +0 -0
  408. package/dist/cjs/ez-number-input.cjs.entry.js.gz +0 -0
  409. package/dist/cjs/ez-pagination.cjs.entry.js.gz +0 -0
  410. package/dist/cjs/ez-popover-core.cjs.entry.js +0 -227
  411. package/dist/cjs/ez-popover-core.cjs.entry.js.gz +0 -0
  412. package/dist/cjs/ez-popover.cjs.entry.js.gz +0 -0
  413. package/dist/cjs/ez-popup.cjs.entry.js.gz +0 -0
  414. package/dist/cjs/ez-progress-bar.cjs.entry.js.gz +0 -0
  415. package/dist/cjs/ez-radio-button.cjs.entry.js.gz +0 -0
  416. package/dist/cjs/ez-rich-toolbar-item.cjs.entry.js.gz +0 -0
  417. package/dist/cjs/ez-scroller_2.cjs.entry.js.gz +0 -0
  418. package/dist/cjs/ez-search-plus.cjs.entry.js.gz +0 -0
  419. package/dist/cjs/ez-search-result-list.cjs.entry.js.gz +0 -0
  420. package/dist/cjs/ez-search.cjs.entry.js.gz +0 -0
  421. package/dist/cjs/ez-sidebar-navigator.cjs.entry.js.gz +0 -0
  422. package/dist/cjs/ez-skeleton.cjs.entry.js.gz +0 -0
  423. package/dist/cjs/ez-sortable-list.cjs.entry.js.gz +0 -0
  424. package/dist/cjs/ez-spinner.cjs.entry.js.gz +0 -0
  425. package/dist/cjs/ez-split-button.cjs.entry.js.gz +0 -0
  426. package/dist/cjs/ez-split-item.cjs.entry.js.gz +0 -0
  427. package/dist/cjs/ez-split-panel.cjs.entry.js.gz +0 -0
  428. package/dist/cjs/ez-tabselector.cjs.entry.js.gz +0 -0
  429. package/dist/cjs/ez-tag-input.cjs.entry.js.gz +0 -0
  430. package/dist/cjs/ez-tag.cjs.entry.js.gz +0 -0
  431. package/dist/cjs/ez-text-area.cjs.entry.js.gz +0 -0
  432. package/dist/cjs/ez-text-input.cjs.entry.js.gz +0 -0
  433. package/dist/cjs/ez-tile-medium.cjs.entry.js.gz +0 -0
  434. package/dist/cjs/ez-tile.cjs.entry.js.gz +0 -0
  435. package/dist/cjs/ez-time-input.cjs.entry.js.gz +0 -0
  436. package/dist/cjs/ez-toast.cjs.entry.js.gz +0 -0
  437. package/dist/cjs/ez-tooltip.cjs.entry.js.gz +0 -0
  438. package/dist/cjs/ez-tree.cjs.entry.js.gz +0 -0
  439. package/dist/cjs/ez-underface.cjs.entry.js.gz +0 -0
  440. package/dist/cjs/ez-upload.cjs.entry.js.gz +0 -0
  441. package/dist/cjs/ez-view-stack.cjs.entry.js.gz +0 -0
  442. package/dist/cjs/ezListHelper-0d3970b4.js.gz +0 -0
  443. package/dist/cjs/ezui.cjs.js.gz +0 -0
  444. package/dist/cjs/filter-column.cjs.entry.js.gz +0 -0
  445. package/dist/cjs/floating-ui.dom.esm-f1e4e440.js.gz +0 -0
  446. package/dist/cjs/index-1be40f19.js.gz +0 -0
  447. package/dist/cjs/index-a7b0c73d.js.gz +0 -0
  448. package/dist/cjs/index.cjs.js.gz +0 -0
  449. package/dist/cjs/loader.cjs.js.gz +0 -0
  450. package/dist/cjs/purify-06a8724d.js.gz +0 -0
  451. package/dist/cjs/search-column-316e2c59.js.gz +0 -0
  452. package/dist/cjs/searchFormatters-b7e1ed1e.js.gz +0 -0
  453. package/dist/collection/components/ez-actions-button/ez-actions-button.css.gz +0 -0
  454. package/dist/collection/components/ez-actions-button/ez-actions-button.js.gz +0 -0
  455. package/dist/collection/components/ez-alert/ez-alert.css.gz +0 -0
  456. package/dist/collection/components/ez-alert/ez-alert.js.gz +0 -0
  457. package/dist/collection/components/ez-alert-list/ez-alert-list.css.gz +0 -0
  458. package/dist/collection/components/ez-alert-list/ez-alert-list.js.gz +0 -0
  459. package/dist/collection/components/ez-application/ez-application.css.gz +0 -0
  460. package/dist/collection/components/ez-application/ez-application.js.gz +0 -0
  461. package/dist/collection/components/ez-avatar/ez-avatar.css.gz +0 -0
  462. package/dist/collection/components/ez-avatar/ez-avatar.js.gz +0 -0
  463. package/dist/collection/components/ez-badge/enum/sizes.js.gz +0 -0
  464. package/dist/collection/components/ez-badge/ez-badge.css.gz +0 -0
  465. package/dist/collection/components/ez-badge/ez-badge.js.gz +0 -0
  466. package/dist/collection/components/ez-badge/interfaces/IPosition.js.gz +0 -0
  467. package/dist/collection/components/ez-breadcrumb/ez-breadcrumb.css.gz +0 -0
  468. package/dist/collection/components/ez-breadcrumb/ez-breadcrumb.js.gz +0 -0
  469. package/dist/collection/components/ez-breadcrumb/subcomponents/breadcrumb-item.js.gz +0 -0
  470. package/dist/collection/components/ez-button/ez-button.css.gz +0 -0
  471. package/dist/collection/components/ez-button/ez-button.js.gz +0 -0
  472. package/dist/collection/components/ez-calendar/ez-calendar.css.gz +0 -0
  473. package/dist/collection/components/ez-calendar/ez-calendar.js.gz +0 -0
  474. package/dist/collection/components/ez-card-item/ez-card-item.css.gz +0 -0
  475. package/dist/collection/components/ez-card-item/ez-card-item.js.gz +0 -0
  476. package/dist/collection/components/ez-chart/components/BarChart.js.gz +0 -0
  477. package/dist/collection/components/ez-chart/components/ColumnChart.js.gz +0 -0
  478. package/dist/collection/components/ez-chart/components/DonutChart.js.gz +0 -0
  479. package/dist/collection/components/ez-chart/components/LineChart.js.gz +0 -0
  480. package/dist/collection/components/ez-chart/components/PieChart.js.gz +0 -0
  481. package/dist/collection/components/ez-chart/components/index.js.gz +0 -0
  482. package/dist/collection/components/ez-chart/ez-chart.css.gz +0 -0
  483. package/dist/collection/components/ez-chart/ez-chart.js.gz +0 -0
  484. package/dist/collection/components/ez-chart/interfaces/ChartAxis.js.gz +0 -0
  485. package/dist/collection/components/ez-chart/interfaces/ChartContext.js.gz +0 -0
  486. package/dist/collection/components/ez-chart/interfaces/ChartOptions.js.gz +0 -0
  487. package/dist/collection/components/ez-chart/interfaces/ChartSerie.js.gz +0 -0
  488. package/dist/collection/components/ez-chart/interfaces/ChartStrategies.js.gz +0 -0
  489. package/dist/collection/components/ez-chart/interfaces/ChartType.js.gz +0 -0
  490. package/dist/collection/components/ez-chart/interfaces/ChartTypeValue.js.gz +0 -0
  491. package/dist/collection/components/ez-chart/interfaces/index.js.gz +0 -0
  492. package/dist/collection/components/ez-chart/test/mock-chart.js.gz +0 -0
  493. package/dist/collection/components/ez-chart/types/BaseHighChartsRender.js.gz +0 -0
  494. package/dist/collection/components/ez-check/CheckMode.js.gz +0 -0
  495. package/dist/collection/components/ez-check/ez-check.css.gz +0 -0
  496. package/dist/collection/components/ez-check/ez-check.js.gz +0 -0
  497. package/dist/collection/components/ez-chip/ez-chip.css.gz +0 -0
  498. package/dist/collection/components/ez-chip/ez-chip.js.gz +0 -0
  499. package/dist/collection/components/ez-classic-combo-box/ez-classic-combo-box.css.gz +0 -0
  500. package/dist/collection/components/ez-classic-combo-box/ez-classic-combo-box.js.gz +0 -0
  501. package/dist/collection/components/ez-classic-combo-box/interfaces/IOption.js.gz +0 -0
  502. package/dist/collection/components/ez-classic-input/ez-classic-input.css.gz +0 -0
  503. package/dist/collection/components/ez-classic-input/ez-classic-input.js.gz +0 -0
  504. package/dist/collection/components/ez-classic-input/interfaces/optionsSetFocus.js.gz +0 -0
  505. package/dist/collection/components/ez-classic-input/utils/maskFormatter.js.gz +0 -0
  506. package/dist/collection/components/ez-classic-text-area/ez-classic-text-area.css.gz +0 -0
  507. package/dist/collection/components/ez-classic-text-area/ez-classic-text-area.js.gz +0 -0
  508. package/dist/collection/components/ez-classic-text-area/interfaces/optionsSetFocus.js.gz +0 -0
  509. package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.css.gz +0 -0
  510. package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.js.gz +0 -0
  511. package/dist/collection/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.css.gz +0 -0
  512. package/dist/collection/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.js.gz +0 -0
  513. package/dist/collection/components/ez-combo-box/ez-combo-box.css.gz +0 -0
  514. package/dist/collection/components/ez-combo-box/ez-combo-box.js.gz +0 -0
  515. package/dist/collection/components/ez-date-input/ez-date-input.css.gz +0 -0
  516. package/dist/collection/components/ez-date-input/ez-date-input.js.gz +0 -0
  517. package/dist/collection/components/ez-date-time-input/ez-date-time-input.css.gz +0 -0
  518. package/dist/collection/components/ez-date-time-input/ez-date-time-input.js.gz +0 -0
  519. package/dist/collection/components/ez-dialog/DialogType.js.gz +0 -0
  520. package/dist/collection/components/ez-dialog/ez-dialog.css.gz +0 -0
  521. package/dist/collection/components/ez-dialog/ez-dialog.js.gz +0 -0
  522. package/dist/collection/components/ez-double-list/doubleListHelper.js.gz +0 -0
  523. package/dist/collection/components/ez-double-list/ez-double-list.css.gz +0 -0
  524. package/dist/collection/components/ez-double-list/ez-double-list.js.gz +0 -0
  525. package/dist/collection/components/ez-dropdown/ez-dropdown.css.gz +0 -0
  526. package/dist/collection/components/ez-dropdown/ez-dropdown.js.gz +0 -0
  527. package/dist/collection/components/ez-dropdown/structure/DropdownItem.js.gz +0 -0
  528. package/dist/collection/components/ez-dropdown/structure/SubmenuControl.js.gz +0 -0
  529. package/dist/collection/components/ez-empty-card/ez-empty-card.css.gz +0 -0
  530. package/dist/collection/components/ez-empty-card/ez-empty-card.js.gz +0 -0
  531. package/dist/collection/components/ez-file-item/ez-file-item.css.gz +0 -0
  532. package/dist/collection/components/ez-file-item/ez-file-item.js.gz +0 -0
  533. package/dist/collection/components/ez-filter-input/ez-filter-input.css.gz +0 -0
  534. package/dist/collection/components/ez-filter-input/ez-filter-input.js.gz +0 -0
  535. package/dist/collection/components/ez-form/ez-form.css.gz +0 -0
  536. package/dist/collection/components/ez-form/ez-form.js.gz +0 -0
  537. package/dist/collection/components/ez-form/store/form.slice.js.gz +0 -0
  538. package/dist/collection/components/ez-form-view/custom-input/ez-custom-form-input.js.gz +0 -0
  539. package/dist/collection/components/ez-form-view/ez-form-view.css.gz +0 -0
  540. package/dist/collection/components/ez-form-view/ez-form-view.js.gz +0 -0
  541. package/dist/collection/components/ez-form-view/fieldbuilder/FieldBuilder.js.gz +0 -0
  542. package/dist/collection/components/ez-form-view/fieldbuilder/templates/CheckBox.tpl.js.gz +0 -0
  543. package/dist/collection/components/ez-form-view/fieldbuilder/templates/ComboBox.tpl.js.gz +0 -0
  544. package/dist/collection/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.js.gz +0 -0
  545. package/dist/collection/components/ez-form-view/fieldbuilder/templates/FileInput.tpl.js.gz +0 -0
  546. package/dist/collection/components/ez-form-view/fieldbuilder/templates/MultiSelectInput.tpl.js.gz +0 -0
  547. package/dist/collection/components/ez-form-view/fieldbuilder/templates/NumberInput.tpl.js.gz +0 -0
  548. package/dist/collection/components/ez-form-view/fieldbuilder/templates/RichText.tpl.js.gz +0 -0
  549. package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.js.gz +0 -0
  550. package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInputPlus.tpl.js.gz +0 -0
  551. package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextArea.tpl.js.gz +0 -0
  552. package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.js.gz +0 -0
  553. package/dist/collection/components/ez-form-view/interfaces/IFormViewField.js.gz +0 -0
  554. package/dist/collection/components/ez-form-view/interfaces/index.js.gz +0 -0
  555. package/dist/collection/components/ez-form-view/structure/index.js.gz +0 -0
  556. package/dist/collection/components/ez-grid/controller/EzGridController.js.gz +0 -0
  557. package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js.gz +0 -0
  558. package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js.gz +0 -0
  559. package/dist/collection/components/ez-grid/controller/ag-grid/DataSourceInterceptor.js.gz +0 -0
  560. package/dist/collection/components/ez-grid/controller/ag-grid/GridEditionManager.js.gz +0 -0
  561. package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomCellEditor.js.gz +0 -0
  562. package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomCellRender.js.gz +0 -0
  563. package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomHeader.js.gz +0 -0
  564. package/dist/collection/components/ez-grid/controller/ag-grid/components/cellRendererStatus.js.gz +0 -0
  565. package/dist/collection/components/ez-grid/controller/ag-grid/components/selectionHeader.js.gz +0 -0
  566. package/dist/collection/components/ez-grid/controller/ag-grid/components/test/constants/EzGridCustomCellEditorConstants.js.gz +0 -0
  567. package/dist/collection/components/ez-grid/controller/ag-grid/components/test/constants/EzGridCustomCellRenderConstants.js.gz +0 -0
  568. package/dist/collection/components/ez-grid/controller/ag-grid/editor/EzCellEditor.js.gz +0 -0
  569. package/dist/collection/components/ez-grid/controller/ag-grid/editor/EzCellRender.js.gz +0 -0
  570. package/dist/collection/components/ez-grid/controller/ag-grid/editor/GridEditorUtils.js.gz +0 -0
  571. package/dist/collection/components/ez-grid/controller/ag-grid/editor/IEditorMetadata.js.gz +0 -0
  572. package/dist/collection/components/ez-grid/controller/ag-grid/editor/IUICellEditor.js.gz +0 -0
  573. package/dist/collection/components/ez-grid/controller/ag-grid/editor/IUICellRender.js.gz +0 -0
  574. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/ComboBox.tpl.js.gz +0 -0
  575. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/DateInput.tpl.js.gz +0 -0
  576. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/NumberInput.tpl.js.gz +0 -0
  577. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/Search.tpl.js.gz +0 -0
  578. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/SearchPlus.tpl.js.gz +0 -0
  579. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/TextInput.tpl.js.gz +0 -0
  580. package/dist/collection/components/ez-grid/controller/ag-grid/mock/Server.js.gz +0 -0
  581. package/dist/collection/components/ez-grid/controller/ag-grid/test/constants/GridEditionMock.js.gz +0 -0
  582. package/dist/collection/components/ez-grid/controller/ag-grid/utils/buildLocaleText.js.gz +0 -0
  583. package/dist/collection/components/ez-grid/ez-grid.css.gz +0 -0
  584. package/dist/collection/components/ez-grid/ez-grid.js.gz +0 -0
  585. package/dist/collection/components/ez-grid/interfaces/IColumnFilter.js.gz +0 -0
  586. package/dist/collection/components/ez-grid/interfaces/ICustomFormatter.js.gz +0 -0
  587. package/dist/collection/components/ez-grid/interfaces/IGridMode.js.gz +0 -0
  588. package/dist/collection/components/ez-grid/interfaces/ISelection.js.gz +0 -0
  589. package/dist/collection/components/ez-grid/interfaces/ISelectionToastConfig.js.gz +0 -0
  590. package/dist/collection/components/ez-grid/interfaces/index.js.gz +0 -0
  591. package/dist/collection/components/ez-grid/subcomponents/filter-column.css.gz +0 -0
  592. package/dist/collection/components/ez-grid/subcomponents/filter-column.js.gz +0 -0
  593. package/dist/collection/components/ez-grid/subcomponents/selection-counter.js.gz +0 -0
  594. package/dist/collection/components/ez-grid/subcomponents/utils/selectionCounterUtils.js.gz +0 -0
  595. package/dist/collection/components/ez-grid/test/resources/gridDataUnit.js.gz +0 -0
  596. package/dist/collection/components/ez-grid/utils/ColumnFilterManager.js.gz +0 -0
  597. package/dist/collection/components/ez-grid/utils/InMemoryFilterColumnDataSource.js.gz +0 -0
  598. package/dist/collection/components/ez-grid/utils/index.js.gz +0 -0
  599. package/dist/collection/components/ez-grid-view/ez-grid-view.css.gz +0 -0
  600. package/dist/collection/components/ez-grid-view/ez-grid-view.js.gz +0 -0
  601. package/dist/collection/components/ez-guide-navigator/ez-guide-navigator.css.gz +0 -0
  602. package/dist/collection/components/ez-guide-navigator/ez-guide-navigator.js.gz +0 -0
  603. package/dist/collection/components/ez-guide-navigator/interfaces/IGuideItem.js.gz +0 -0
  604. package/dist/collection/components/ez-guide-navigator/interfaces/index.js.gz +0 -0
  605. package/dist/collection/components/ez-icon/ez-icon.css.gz +0 -0
  606. package/dist/collection/components/ez-icon/ez-icon.js.gz +0 -0
  607. package/dist/collection/components/ez-list/ez-list.css.gz +0 -0
  608. package/dist/collection/components/ez-list/ez-list.js.gz +0 -0
  609. package/dist/collection/components/ez-list/ezListHelper.js.gz +0 -0
  610. package/dist/collection/components/ez-list-item/ez-list-item.css.gz +0 -0
  611. package/dist/collection/components/ez-list-item/ez-list-item.js.gz +0 -0
  612. package/dist/collection/components/ez-loading-bar/ez-loading-bar.css.gz +0 -0
  613. package/dist/collection/components/ez-loading-bar/ez-loading-bar.js.gz +0 -0
  614. package/dist/collection/components/ez-modal/ez-modal.css.gz +0 -0
  615. package/dist/collection/components/ez-modal/ez-modal.js.gz +0 -0
  616. package/dist/collection/components/ez-modal-container/ez-modal-container.css.gz +0 -0
  617. package/dist/collection/components/ez-modal-container/ez-modal-container.js.gz +0 -0
  618. package/dist/collection/components/ez-modal-container/index.js.gz +0 -0
  619. package/dist/collection/components/ez-modal-container/modal-action.js.gz +0 -0
  620. package/dist/collection/components/ez-modal-container/modal-button-status.js.gz +0 -0
  621. package/dist/collection/components/ez-multi-select-input/ez-multi-select-input.css.gz +0 -0
  622. package/dist/collection/components/ez-multi-select-input/ez-multi-select-input.js.gz +0 -0
  623. package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.css.gz +0 -0
  624. package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.js.gz +0 -0
  625. package/dist/collection/components/ez-multi-selection-list/interfaces/IMultiSelectionListDataSource.js.gz +0 -0
  626. package/dist/collection/components/ez-multi-selection-list/interfaces/IMultiSelectionOption.js.gz +0 -0
  627. package/dist/collection/components/ez-multi-selection-list/interfaces/IStaticOptionsFetchConfig.js.gz +0 -0
  628. package/dist/collection/components/ez-multi-selection-list/subcomponents/multi-selection-box-message.css.gz +0 -0
  629. package/dist/collection/components/ez-multi-selection-list/subcomponents/multi-selection-box-message.js.gz +0 -0
  630. package/dist/collection/components/ez-number-input/ez-number-input.css.gz +0 -0
  631. package/dist/collection/components/ez-number-input/ez-number-input.js.gz +0 -0
  632. package/dist/collection/components/ez-pagination/ez-pagination.css.gz +0 -0
  633. package/dist/collection/components/ez-pagination/ez-pagination.js.gz +0 -0
  634. package/dist/collection/components/ez-popover/ez-popover.css.gz +0 -0
  635. package/dist/collection/components/ez-popover/ez-popover.js.gz +0 -0
  636. package/dist/collection/components/ez-popover-plus/ez-popover-plus.css.gz +0 -0
  637. package/dist/collection/components/ez-popover-plus/ez-popover-plus.js.gz +0 -0
  638. package/dist/collection/components/ez-popover-plus/subcomponent/ez-popover-core.css.gz +0 -0
  639. package/dist/collection/components/ez-popover-plus/subcomponent/ez-popover-core.js.gz +0 -0
  640. package/dist/collection/components/ez-popup/ez-popup.css.gz +0 -0
  641. package/dist/collection/components/ez-popup/ez-popup.js.gz +0 -0
  642. package/dist/collection/components/ez-popup/interfaces/EzButtonProps.js.gz +0 -0
  643. package/dist/collection/components/ez-progress-bar/ez-progress-bar.css.gz +0 -0
  644. package/dist/collection/components/ez-progress-bar/ez-progress-bar.js.gz +0 -0
  645. package/dist/collection/components/ez-radio-button/ez-radio-button.css.gz +0 -0
  646. package/dist/collection/components/ez-radio-button/ez-radio-button.js.gz +0 -0
  647. package/dist/collection/components/ez-rich-text/ez-link-builder/ez-link-builder.css.gz +0 -0
  648. package/dist/collection/components/ez-rich-text/ez-link-builder/ez-link-builder.js.gz +0 -0
  649. package/dist/collection/components/ez-rich-text/ez-rich-text.css.gz +0 -0
  650. package/dist/collection/components/ez-rich-text/ez-rich-text.js.gz +0 -0
  651. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/RichToolbarHelper.js.gz +0 -0
  652. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-arrows/ez-rich-toolbar-arrows.css.gz +0 -0
  653. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-arrows/ez-rich-toolbar-arrows.js.gz +0 -0
  654. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-configs/ez-rich-toolbar-configs.css.gz +0 -0
  655. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-configs/ez-rich-toolbar-configs.js.gz +0 -0
  656. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-item/ez-rich-toolbar-item.css.gz +0 -0
  657. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-item/ez-rich-toolbar-item.js.gz +0 -0
  658. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-letters/ez-rich-toolbar-letters.css.gz +0 -0
  659. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-letters/ez-rich-toolbar-letters.js.gz +0 -0
  660. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar.css.gz +0 -0
  661. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar.js.gz +0 -0
  662. package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/ez-simple-image-uploader.css.gz +0 -0
  663. package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/ez-simple-image-uploader.js.gz +0 -0
  664. package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/test/resource/imageBase64.js.gz +0 -0
  665. package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/utils/fileToBase64.js.gz +0 -0
  666. package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/utils/formatBytes.js.gz +0 -0
  667. package/dist/collection/components/ez-scroller/EzScrollDirection.js.gz +0 -0
  668. package/dist/collection/components/ez-scroller/ez-scroller.css.gz +0 -0
  669. package/dist/collection/components/ez-scroller/ez-scroller.js.gz +0 -0
  670. package/dist/collection/components/ez-search/ez-search.css.gz +0 -0
  671. package/dist/collection/components/ez-search/ez-search.js.gz +0 -0
  672. package/dist/collection/components/ez-search/subcomponent/search-list/search-list.css.gz +0 -0
  673. package/dist/collection/components/ez-search/subcomponent/search-list/search-list.js.gz +0 -0
  674. package/dist/collection/components/ez-search/utils/searchFormatters.js.gz +0 -0
  675. package/dist/collection/components/ez-search-plus/ez-search-plus.css.gz +0 -0
  676. package/dist/collection/components/ez-search-plus/ez-search-plus.js.gz +0 -0
  677. package/dist/collection/components/ez-search-plus/subcomponent/ez-search-result-list/ez-search-result-list.css.gz +0 -0
  678. package/dist/collection/components/ez-search-plus/subcomponent/ez-search-result-list/ez-search-result-list.js.gz +0 -0
  679. package/dist/collection/components/ez-sidebar-button/ez-sidebar-button.css.gz +0 -0
  680. package/dist/collection/components/ez-sidebar-button/ez-sidebar-button.js.gz +0 -0
  681. package/dist/collection/components/ez-sidebar-navigator/ez-sidebar-navigator.css.gz +0 -0
  682. package/dist/collection/components/ez-sidebar-navigator/ez-sidebar-navigator.js.gz +0 -0
  683. package/dist/collection/components/ez-sidebar-navigator/interfaces/ModeMenuEnum.js.gz +0 -0
  684. package/dist/collection/components/ez-sidebar-navigator/interfaces/SizeMenuEnum.js.gz +0 -0
  685. package/dist/collection/components/ez-sidebar-navigator/interfaces/TypeMenuEnum.js.gz +0 -0
  686. package/dist/collection/components/ez-sidebar-navigator/interfaces/index.js.gz +0 -0
  687. package/dist/collection/components/ez-skeleton/ez-skeleton.constants.js.gz +0 -0
  688. package/dist/collection/components/ez-skeleton/ez-skeleton.css.gz +0 -0
  689. package/dist/collection/components/ez-skeleton/ez-skeleton.js.gz +0 -0
  690. package/dist/collection/components/ez-sortable-list/ez-sortable-list.css.gz +0 -0
  691. package/dist/collection/components/ez-sortable-list/ez-sortable-list.js.gz +0 -0
  692. package/dist/collection/components/ez-spinner/ez-spinner.css.gz +0 -0
  693. package/dist/collection/components/ez-spinner/ez-spinner.js.gz +0 -0
  694. package/dist/collection/components/ez-split-button/ez-split-button.css.gz +0 -0
  695. package/dist/collection/components/ez-split-button/ez-split-button.js.gz +0 -0
  696. package/dist/collection/components/ez-split-button/test/dropdownItems.js.gz +0 -0
  697. package/dist/collection/components/ez-split-panel/ez-split-panel.css.gz +0 -0
  698. package/dist/collection/components/ez-split-panel/ez-split-panel.js.gz +0 -0
  699. package/dist/collection/components/ez-split-panel/interfaces/IPanelSizeInfo.js.gz +0 -0
  700. package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.css.gz +0 -0
  701. package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.js.gz +0 -0
  702. package/dist/collection/components/ez-tabselector/ez-tabselector.css.gz +0 -0
  703. package/dist/collection/components/ez-tabselector/ez-tabselector.js.gz +0 -0
  704. package/dist/collection/components/ez-tag/ez-tag.css.gz +0 -0
  705. package/dist/collection/components/ez-tag/ez-tag.js.gz +0 -0
  706. package/dist/collection/components/ez-tag-input/ez-tag-input.css.gz +0 -0
  707. package/dist/collection/components/ez-tag-input/ez-tag-input.js.gz +0 -0
  708. package/dist/collection/components/ez-tag-input/interfaces/optionsSetFocus.js.gz +0 -0
  709. package/dist/collection/components/ez-text-area/ez-text-area.css.gz +0 -0
  710. package/dist/collection/components/ez-text-area/ez-text-area.js.gz +0 -0
  711. package/dist/collection/components/ez-text-edit/ez-text-edit.css.gz +0 -0
  712. package/dist/collection/components/ez-text-edit/ez-text-edit.js.gz +0 -0
  713. package/dist/collection/components/ez-text-input/ez-text-input.css.gz +0 -0
  714. package/dist/collection/components/ez-text-input/ez-text-input.js.gz +0 -0
  715. package/dist/collection/components/ez-tile/ez-tile.css.gz +0 -0
  716. package/dist/collection/components/ez-tile/ez-tile.js.gz +0 -0
  717. package/dist/collection/components/ez-tile-medium/ez-tile-medium.css.gz +0 -0
  718. package/dist/collection/components/ez-tile-medium/ez-tile-medium.js.gz +0 -0
  719. package/dist/collection/components/ez-time-input/ez-time-input.css.gz +0 -0
  720. package/dist/collection/components/ez-time-input/ez-time-input.js.gz +0 -0
  721. package/dist/collection/components/ez-toast/ez-toast.css.gz +0 -0
  722. package/dist/collection/components/ez-toast/ez-toast.js.gz +0 -0
  723. package/dist/collection/components/ez-tooltip/ez-tooltip.css.gz +0 -0
  724. package/dist/collection/components/ez-tooltip/ez-tooltip.js.gz +0 -0
  725. package/dist/collection/components/ez-tree/ez-tree.css.gz +0 -0
  726. package/dist/collection/components/ez-tree/ez-tree.js.gz +0 -0
  727. package/dist/collection/components/ez-tree/interfaces/ITree.js.gz +0 -0
  728. package/dist/collection/components/ez-tree/interfaces/ITreeItem.js.gz +0 -0
  729. package/dist/collection/components/ez-tree/interfaces/ITreeItemBadge.js.gz +0 -0
  730. package/dist/collection/components/ez-tree/subcomponents/DefaultIconResolver.js.gz +0 -0
  731. package/dist/collection/components/ez-tree/subcomponents/DefaultTooltipResolver.js.gz +0 -0
  732. package/dist/collection/components/ez-tree/subcomponents/TreeItem.js.gz +0 -0
  733. package/dist/collection/components/ez-tree/subcomponents/index.js.gz +0 -0
  734. package/dist/collection/components/ez-tree/types/Node.js.gz +0 -0
  735. package/dist/collection/components/ez-tree/types/Tree.js.gz +0 -0
  736. package/dist/collection/components/ez-tree/types/UpdateItemConfig.js.gz +0 -0
  737. package/dist/collection/components/ez-underface/ez-underface.css.gz +0 -0
  738. package/dist/collection/components/ez-underface/ez-underface.js.gz +0 -0
  739. package/dist/collection/components/ez-upload/RemoteFile.js.gz +0 -0
  740. package/dist/collection/components/ez-upload/ez-upload.css.gz +0 -0
  741. package/dist/collection/components/ez-upload/ez-upload.js.gz +0 -0
  742. package/dist/collection/components/ez-view-stack/ez-view-stack.css.gz +0 -0
  743. package/dist/collection/components/ez-view-stack/ez-view-stack.js.gz +0 -0
  744. package/dist/collection/global/app-init.js.gz +0 -0
  745. package/dist/collection/index.js.gz +0 -0
  746. package/dist/collection/servidor.js.gz +0 -0
  747. package/dist/collection/setupTests.js.gz +0 -0
  748. package/dist/collection/sw.js.gz +0 -0
  749. package/dist/collection/utils/ApplicationUtils.js.gz +0 -0
  750. package/dist/collection/utils/AssetsUtils.js.gz +0 -0
  751. package/dist/collection/utils/CSSVarsUtils.js.gz +0 -0
  752. package/dist/collection/utils/FocusResolver.js.gz +0 -0
  753. package/dist/collection/utils/ag-grid-license.js.gz +0 -0
  754. package/dist/collection/utils/constants.js.gz +0 -0
  755. package/dist/collection/utils/customEditor/interfaces/ICustomEditor.js.gz +0 -0
  756. package/dist/collection/utils/customEditor/interfaces/ICustomEditorInfo.js.gz +0 -0
  757. package/dist/collection/utils/customRender/interfaces/ICustomRender.js.gz +0 -0
  758. package/dist/collection/utils/customRender/interfaces/ICustomRenderInfo.js.gz +0 -0
  759. package/dist/collection/utils/form/DataBinder.js.gz +0 -0
  760. package/dist/collection/utils/form/FormMetadata.js.gz +0 -0
  761. package/dist/collection/utils/form/index.js.gz +0 -0
  762. package/dist/collection/utils/form/interfaces/FormLayout.js.gz +0 -0
  763. package/dist/collection/utils/form/interfaces/IDefaultConfig.js.gz +0 -0
  764. package/dist/collection/utils/form/interfaces/IFormCardConfig.js.gz +0 -0
  765. package/dist/collection/utils/form/interfaces/IFormConfig.js.gz +0 -0
  766. package/dist/collection/utils/form/interfaces/IFormSheetMetadata.js.gz +0 -0
  767. package/dist/collection/utils/form/interfaces/ISummaryField.js.gz +0 -0
  768. package/dist/collection/utils/form/interfaces/ITabConfig.js.gz +0 -0
  769. package/dist/collection/utils/form/interfaces/index.js.gz +0 -0
  770. package/dist/collection/utils/form/test/DataBinder.test.js.gz +0 -0
  771. package/dist/collection/utils/form/test/resources/metadataTest.js.gz +0 -0
  772. package/dist/collection/utils/i18n/elanguages.js.gz +0 -0
  773. package/dist/collection/utils/i18n/index.js.gz +0 -0
  774. package/dist/collection/utils/i18n/locales/en-us.js.gz +0 -0
  775. package/dist/collection/utils/i18n/locales/es-es.js.gz +0 -0
  776. package/dist/collection/utils/i18n/locales/pt-br.js.gz +0 -0
  777. package/dist/collection/utils/i18n/translations.js.gz +0 -0
  778. package/dist/collection/utils/index.js.gz +0 -0
  779. package/dist/collection/utils/interfaces/AbstractFieldMetadata.js.gz +0 -0
  780. package/dist/collection/utils/interfaces/IAction.js.gz +0 -0
  781. package/dist/collection/utils/interfaces/IFieldConfig.js.gz +0 -0
  782. package/dist/collection/utils/mock/ez-upload-mock.js.gz +0 -0
  783. package/dist/collection/utils/search/types.js.gz +0 -0
  784. package/dist/collection/utils/searchColumn/search-column.js.gz +0 -0
  785. package/dist/collection/utils/utils.js.gz +0 -0
  786. package/dist/collection/utils/validators/recordvalidator/IInvalidCells.js.gz +0 -0
  787. package/dist/collection/utils/validators/recordvalidator/IInvalidField.js.gz +0 -0
  788. package/dist/collection/utils/validators/recordvalidator/IRecordValidator.js.gz +0 -0
  789. package/dist/collection/utils/validators/recordvalidator/IValidationResult.js.gz +0 -0
  790. package/dist/collection/utils/validators/recordvalidator/IValidationSource.js.gz +0 -0
  791. package/dist/collection/utils/validators/recordvalidator/RecordValidationProcessor.js.gz +0 -0
  792. package/dist/custom-elements/index.js.gz +0 -0
  793. package/dist/esm/ApplicationUtils-1569f757.js.gz +0 -0
  794. package/dist/esm/CSSVarsUtils-acba92d7.js.gz +0 -0
  795. package/dist/esm/CheckMode-bdb2ec19.js.gz +0 -0
  796. package/dist/esm/DialogType-54a62731.js.gz +0 -0
  797. package/dist/esm/EzScrollDirection-2df26c93.js.gz +0 -0
  798. package/dist/esm/FocusResolver-1ccbf850.js.gz +0 -0
  799. package/dist/esm/FormLayout-071d324c.js.gz +0 -0
  800. package/dist/esm/RichToolbarHelper-f3a149c4.js.gz +0 -0
  801. package/dist/esm/_commonjsHelpers-9943807e.js.gz +0 -0
  802. package/dist/esm/app-globals-c0ac93c0.js.gz +0 -0
  803. package/dist/esm/constants-3fabe81e.js.gz +0 -0
  804. package/dist/esm/ez-actions-button.entry.js.gz +0 -0
  805. package/dist/esm/ez-alert-list.entry.js.gz +0 -0
  806. package/dist/esm/ez-alert.entry.js.gz +0 -0
  807. package/dist/esm/ez-application.entry.js.gz +0 -0
  808. package/dist/esm/ez-avatar.entry.js.gz +0 -0
  809. package/dist/esm/ez-badge.entry.js.gz +0 -0
  810. package/dist/esm/ez-breadcrumb.entry.js.gz +0 -0
  811. package/dist/esm/ez-button.entry.js.gz +0 -0
  812. package/dist/esm/ez-calendar.entry.js.gz +0 -0
  813. package/dist/esm/ez-card-item_5.entry.js.gz +0 -0
  814. package/dist/esm/ez-chart.entry.js.gz +0 -0
  815. package/dist/esm/ez-check.entry.js.gz +0 -0
  816. package/dist/esm/ez-chip.entry.js.gz +0 -0
  817. package/dist/esm/ez-classic-combo-box.entry.js.gz +0 -0
  818. package/dist/esm/ez-classic-input.entry.js.gz +0 -0
  819. package/dist/esm/ez-classic-text-area.entry.js.gz +0 -0
  820. package/dist/esm/ez-collapsible-box.entry.js.gz +0 -0
  821. package/dist/esm/ez-combo-box-list_5.entry.js.gz +0 -0
  822. package/dist/esm/ez-combo-box.entry.js.gz +0 -0
  823. package/dist/esm/ez-date-input.entry.js.gz +0 -0
  824. package/dist/esm/ez-date-time-input.entry.js.gz +0 -0
  825. package/dist/esm/ez-dialog.entry.js.gz +0 -0
  826. package/dist/esm/ez-double-list.entry.js.gz +0 -0
  827. package/dist/esm/ez-dropdown.entry.js.gz +0 -0
  828. package/dist/esm/ez-empty-card.entry.js.gz +0 -0
  829. package/dist/esm/ez-file-item.entry.js.gz +0 -0
  830. package/dist/esm/ez-filter-input.entry.js.gz +0 -0
  831. package/dist/esm/ez-form-view.entry.js.gz +0 -0
  832. package/dist/esm/ez-form.entry.js.gz +0 -0
  833. package/dist/esm/ez-grid-view.entry.js.gz +0 -0
  834. package/dist/esm/ez-grid.entry.js.gz +0 -0
  835. package/dist/esm/ez-guide-navigator.entry.js.gz +0 -0
  836. package/dist/esm/ez-icon.entry.js.gz +0 -0
  837. package/dist/esm/ez-link-builder_6.entry.js.gz +0 -0
  838. package/dist/esm/ez-list-item.entry.js.gz +0 -0
  839. package/dist/esm/ez-list.entry.js.gz +0 -0
  840. package/dist/esm/ez-loading-bar.entry.js.gz +0 -0
  841. package/dist/esm/ez-modal-container.entry.js.gz +0 -0
  842. package/dist/esm/ez-modal.entry.js.gz +0 -0
  843. package/dist/esm/ez-number-input.entry.js.gz +0 -0
  844. package/dist/esm/ez-pagination.entry.js.gz +0 -0
  845. package/dist/esm/ez-popover-core.entry.js +0 -223
  846. package/dist/esm/ez-popover-core.entry.js.gz +0 -0
  847. package/dist/esm/ez-popover.entry.js.gz +0 -0
  848. package/dist/esm/ez-popup.entry.js.gz +0 -0
  849. package/dist/esm/ez-progress-bar.entry.js.gz +0 -0
  850. package/dist/esm/ez-radio-button.entry.js.gz +0 -0
  851. package/dist/esm/ez-rich-toolbar-item.entry.js.gz +0 -0
  852. package/dist/esm/ez-scroller_2.entry.js.gz +0 -0
  853. package/dist/esm/ez-search-plus.entry.js.gz +0 -0
  854. package/dist/esm/ez-search-result-list.entry.js.gz +0 -0
  855. package/dist/esm/ez-search.entry.js.gz +0 -0
  856. package/dist/esm/ez-sidebar-navigator.entry.js.gz +0 -0
  857. package/dist/esm/ez-skeleton.entry.js.gz +0 -0
  858. package/dist/esm/ez-sortable-list.entry.js.gz +0 -0
  859. package/dist/esm/ez-spinner.entry.js.gz +0 -0
  860. package/dist/esm/ez-split-button.entry.js.gz +0 -0
  861. package/dist/esm/ez-split-item.entry.js.gz +0 -0
  862. package/dist/esm/ez-split-panel.entry.js.gz +0 -0
  863. package/dist/esm/ez-tabselector.entry.js.gz +0 -0
  864. package/dist/esm/ez-tag-input.entry.js.gz +0 -0
  865. package/dist/esm/ez-tag.entry.js.gz +0 -0
  866. package/dist/esm/ez-text-area.entry.js.gz +0 -0
  867. package/dist/esm/ez-text-input.entry.js.gz +0 -0
  868. package/dist/esm/ez-tile-medium.entry.js.gz +0 -0
  869. package/dist/esm/ez-tile.entry.js.gz +0 -0
  870. package/dist/esm/ez-time-input.entry.js.gz +0 -0
  871. package/dist/esm/ez-toast.entry.js.gz +0 -0
  872. package/dist/esm/ez-tooltip.entry.js.gz +0 -0
  873. package/dist/esm/ez-tree.entry.js.gz +0 -0
  874. package/dist/esm/ez-underface.entry.js.gz +0 -0
  875. package/dist/esm/ez-upload.entry.js.gz +0 -0
  876. package/dist/esm/ez-view-stack.entry.js.gz +0 -0
  877. package/dist/esm/ezListHelper-00fb9b8d.js.gz +0 -0
  878. package/dist/esm/ezui.js.gz +0 -0
  879. package/dist/esm/filter-column.entry.js.gz +0 -0
  880. package/dist/esm/floating-ui.dom.esm-c94d4011.js.gz +0 -0
  881. package/dist/esm/index-41363fa6.js.gz +0 -0
  882. package/dist/esm/index-baa5e267.js.gz +0 -0
  883. package/dist/esm/index.js.gz +0 -0
  884. package/dist/esm/loader.js.gz +0 -0
  885. package/dist/esm/polyfills/core-js.js.gz +0 -0
  886. package/dist/esm/polyfills/css-shim.js.gz +0 -0
  887. package/dist/esm/polyfills/dom.js.gz +0 -0
  888. package/dist/esm/polyfills/es5-html-element.js.gz +0 -0
  889. package/dist/esm/polyfills/index.js.gz +0 -0
  890. package/dist/esm/polyfills/system.js.gz +0 -0
  891. package/dist/esm/purify-ca96ec34.js.gz +0 -0
  892. package/dist/esm/search-column-c20d2b01.js.gz +0 -0
  893. package/dist/esm/searchFormatters-8229207e.js.gz +0 -0
  894. package/dist/ezui/ezui.esm.js.gz +0 -0
  895. package/dist/ezui/index.esm.js.gz +0 -0
  896. package/dist/ezui/p-02d448bb.entry.js.gz +0 -0
  897. package/dist/ezui/p-04126429.js.gz +0 -0
  898. package/dist/ezui/p-05c32903.entry.js.gz +0 -0
  899. package/dist/ezui/p-0ec37151.entry.js +0 -1
  900. package/dist/ezui/p-0ec37151.entry.js.gz +0 -0
  901. package/dist/ezui/p-0f7971cf.entry.js.gz +0 -0
  902. package/dist/ezui/p-110cfb7d.entry.js.gz +0 -0
  903. package/dist/ezui/p-112455b1.js.gz +0 -0
  904. package/dist/ezui/p-18384b91.entry.js +0 -1
  905. package/dist/ezui/p-18384b91.entry.js.gz +0 -0
  906. package/dist/ezui/p-1e7a8633.entry.js.gz +0 -0
  907. package/dist/ezui/p-1f50fa05.entry.js.gz +0 -0
  908. package/dist/ezui/p-20c024f7.entry.js.gz +0 -0
  909. package/dist/ezui/p-23a36bb6.js.gz +0 -0
  910. package/dist/ezui/p-24460bb2.js +0 -1
  911. package/dist/ezui/p-24460bb2.js.gz +0 -0
  912. package/dist/ezui/p-288631d1.entry.js +0 -1
  913. package/dist/ezui/p-288631d1.entry.js.gz +0 -0
  914. package/dist/ezui/p-30ffb9ed.js +0 -1
  915. package/dist/ezui/p-30ffb9ed.js.gz +0 -0
  916. package/dist/ezui/p-34a476a9.entry.js.gz +0 -0
  917. package/dist/ezui/p-39761eca.entry.js.gz +0 -0
  918. package/dist/ezui/p-3afa1c6e.entry.js.gz +0 -0
  919. package/dist/ezui/p-3ce867cf.entry.js +0 -1
  920. package/dist/ezui/p-3ce867cf.entry.js.gz +0 -0
  921. package/dist/ezui/p-3e767a74.js.gz +0 -0
  922. package/dist/ezui/p-40a60148.js.gz +0 -0
  923. package/dist/ezui/p-411c0222.entry.js.gz +0 -0
  924. package/dist/ezui/p-4314f87a.entry.js +0 -1
  925. package/dist/ezui/p-4314f87a.entry.js.gz +0 -0
  926. package/dist/ezui/p-477af30b.entry.js +0 -1
  927. package/dist/ezui/p-477af30b.entry.js.gz +0 -0
  928. package/dist/ezui/p-48effc69.entry.js +0 -1
  929. package/dist/ezui/p-48effc69.entry.js.gz +0 -0
  930. package/dist/ezui/p-4d30b703.entry.js.gz +0 -0
  931. package/dist/ezui/p-4fe123b6.entry.js.gz +0 -0
  932. package/dist/ezui/p-5554704c.js +0 -1
  933. package/dist/ezui/p-5554704c.js.gz +0 -0
  934. package/dist/ezui/p-5ed81457.entry.js.gz +0 -0
  935. package/dist/ezui/p-6020f3d5.entry.js +0 -1
  936. package/dist/ezui/p-6020f3d5.entry.js.gz +0 -0
  937. package/dist/ezui/p-6c51ccd1.entry.js.gz +0 -0
  938. package/dist/ezui/p-6ca0815e.entry.js +0 -1
  939. package/dist/ezui/p-6ca0815e.entry.js.gz +0 -0
  940. package/dist/ezui/p-6cb82d33.entry.js +0 -1
  941. package/dist/ezui/p-6cb82d33.entry.js.gz +0 -0
  942. package/dist/ezui/p-6d596a5a.entry.js.gz +0 -0
  943. package/dist/ezui/p-6de4cae1.entry.js +0 -1
  944. package/dist/ezui/p-6de4cae1.entry.js.gz +0 -0
  945. package/dist/ezui/p-6f77a359.entry.js.gz +0 -0
  946. package/dist/ezui/p-721fd999.entry.js.gz +0 -0
  947. package/dist/ezui/p-7995dcb4.entry.js +0 -1
  948. package/dist/ezui/p-7995dcb4.entry.js.gz +0 -0
  949. package/dist/ezui/p-7f792043.entry.js.gz +0 -0
  950. package/dist/ezui/p-7fe97ef5.entry.js +0 -1
  951. package/dist/ezui/p-7fe97ef5.entry.js.gz +0 -0
  952. package/dist/ezui/p-80aeef27.entry.js +0 -309
  953. package/dist/ezui/p-80aeef27.entry.js.gz +0 -0
  954. package/dist/ezui/p-80dfc50b.js.gz +0 -0
  955. package/dist/ezui/p-82b0afe7.entry.js.gz +0 -0
  956. package/dist/ezui/p-859e3134.entry.js.gz +0 -0
  957. package/dist/ezui/p-8bf077ea.entry.js +0 -1
  958. package/dist/ezui/p-8bf077ea.entry.js.gz +0 -0
  959. package/dist/ezui/p-8df1ca33.entry.js.gz +0 -0
  960. package/dist/ezui/p-91c9d50e.entry.js.gz +0 -0
  961. package/dist/ezui/p-93e1c917.entry.js.gz +0 -0
  962. package/dist/ezui/p-948f0fb2.entry.js.gz +0 -0
  963. package/dist/ezui/p-94deb71e.entry.js +0 -1
  964. package/dist/ezui/p-94deb71e.entry.js.gz +0 -0
  965. package/dist/ezui/p-98bb8b16.js.gz +0 -0
  966. package/dist/ezui/p-9ab2add9.entry.js.gz +0 -0
  967. package/dist/ezui/p-9b215871.entry.js.gz +0 -0
  968. package/dist/ezui/p-9b3f3c02.entry.js.gz +0 -0
  969. package/dist/ezui/p-9f5fa3f9.entry.js.gz +0 -0
  970. package/dist/ezui/p-a0bf1fc7.entry.js.gz +0 -0
  971. package/dist/ezui/p-a3075f52.entry.js.gz +0 -0
  972. package/dist/ezui/p-a3ada561.entry.js.gz +0 -0
  973. package/dist/ezui/p-a4083a7a.entry.js.gz +0 -0
  974. package/dist/ezui/p-a61fdd20.js +0 -1
  975. package/dist/ezui/p-a61fdd20.js.gz +0 -0
  976. package/dist/ezui/p-a80b1287.entry.js +0 -1
  977. package/dist/ezui/p-a80b1287.entry.js.gz +0 -0
  978. package/dist/ezui/p-a80e6b24.entry.js.gz +0 -0
  979. package/dist/ezui/p-ab574d59.js.gz +0 -0
  980. package/dist/ezui/p-b1e45320.js.gz +0 -0
  981. package/dist/ezui/p-b3d8034b.entry.js.gz +0 -0
  982. package/dist/ezui/p-b853763b.js.gz +0 -0
  983. package/dist/ezui/p-b989a33e.entry.js.gz +0 -0
  984. package/dist/ezui/p-baec56c9.js.gz +0 -0
  985. package/dist/ezui/p-bbeafaa1.entry.js +0 -1
  986. package/dist/ezui/p-bbeafaa1.entry.js.gz +0 -0
  987. package/dist/ezui/p-bc2f844e.entry.js.gz +0 -0
  988. package/dist/ezui/p-cde41310.entry.js +0 -1
  989. package/dist/ezui/p-cde41310.entry.js.gz +0 -0
  990. package/dist/ezui/p-ce0b36d7.entry.js.gz +0 -0
  991. package/dist/ezui/p-d0e354df.js +0 -3
  992. package/dist/ezui/p-d0e354df.js.gz +0 -0
  993. package/dist/ezui/p-d2645bdf.entry.js +0 -1
  994. package/dist/ezui/p-d2645bdf.entry.js.gz +0 -0
  995. package/dist/ezui/p-d5eb2fad.entry.js.gz +0 -0
  996. package/dist/ezui/p-d6742c1e.entry.js.gz +0 -0
  997. package/dist/ezui/p-d6bb930d.entry.js.gz +0 -0
  998. package/dist/ezui/p-d8cc640d.entry.js.gz +0 -0
  999. package/dist/ezui/p-dc628ed3.js.gz +0 -0
  1000. package/dist/ezui/p-de862af4.entry.js +0 -1
  1001. package/dist/ezui/p-de862af4.entry.js.gz +0 -0
  1002. package/dist/ezui/p-e5de42e7.entry.js.gz +0 -0
  1003. package/dist/ezui/p-e75c7a23.entry.js.gz +0 -0
  1004. package/dist/ezui/p-e7a7c594.entry.js.gz +0 -0
  1005. package/dist/ezui/p-e8c57463.entry.js.gz +0 -0
  1006. package/dist/ezui/p-ec7db713.js.gz +0 -0
  1007. package/dist/ezui/p-ecd6409d.entry.js.gz +0 -0
  1008. package/dist/ezui/p-f00c9dc2.entry.js +0 -1
  1009. package/dist/ezui/p-f00c9dc2.entry.js.gz +0 -0
  1010. package/dist/ezui/p-f181aea8.entry.js +0 -1
  1011. package/dist/ezui/p-f181aea8.entry.js.gz +0 -0
  1012. package/dist/ezui/p-f34ec732.entry.js.gz +0 -0
  1013. package/dist/ezui/p-f7b8d2b9.entry.js +0 -1
  1014. package/dist/ezui/p-f7b8d2b9.entry.js.gz +0 -0
  1015. package/dist/ezui/p-fa6732f2.entry.js.gz +0 -0
  1016. package/dist/index.cjs.js.gz +0 -0
  1017. package/dist/index.js.gz +0 -0
@@ -1,7 +1,7 @@
1
- import{r as t,c as e,h as i,g as n}from"./p-23a36bb6.js";import{ArrayUtils as r}from"@sankhyalabs/core";import{i as o}from"./p-a61fdd20.js";
1
+ import{r as t,c as e,h as i,g as n}from"./p-23a36bb6.js";import{ArrayUtils as r}from"@sankhyalabs/core";import{i as o}from"./p-3b7d9f30.js";
2
2
  /**!
3
3
  * Sortable 1.15.7
4
4
  * @author RubaXa <trash@rubaxa.org>
5
5
  * @author owenm <owen23355@gmail.com>
6
6
  * @license MIT
7
- */function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i<e;i++)n[i]=t[i];return n}function s(t,e,i){return(e=function(t){var e=function(t){if("object"!=typeof t||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,"string");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function l(){return l=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)({}).hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},l.apply(null,arguments)}function u(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function c(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?u(Object(i),!0).forEach((function(e){s(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):u(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function h(t,e){if(null==t)return{};var i,n,r=function(t,e){if(null==t)return{};var i={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(-1!==e.indexOf(n))continue;i[n]=t[n]}return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)-1===e.indexOf(i=o[n])&&{}.propertyIsEnumerable.call(t,i)&&(r[i]=t[i])}return r}function d(t){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d(t)}function f(t){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(t)}var v=f(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),m=f(/Edge/i),b=f(/firefox/i),p=f(/safari/i)&&!f(/chrome/i)&&!f(/android/i),g=f(/iP(ad|od|hone)/i),w=f(/chrome/i)&&f(/android/i),y={capture:!1,passive:!1};function x(t,e,i){t.addEventListener(e,i,!v&&y)}function _(t,e,i){t.removeEventListener(e,i,!v&&y)}function E(t,e){if(e){if(">"===e[0]&&(e=e.substring(1)),t)try{if(t.matches)return t.matches(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e)}catch(t){return!1}return!1}}function z(t){return t.host&&t!==document&&t.host.nodeType&&t.host!==t?t.host:t.parentNode}function k(t,e,i,n){if(t){i=i||document;do{if(null!=e&&(">"===e[0]?t.parentNode===i&&E(t,e):E(t,e))||n&&t===i)return t;if(t===i)break}while(t=z(t))}return null}var S,I=/\s+/g;function D(t,e,i){if(t&&e)if(t.classList)t.classList[i?"add":"remove"](e);else{var n=(" "+t.className+" ").replace(I," ").replace(" "+e+" "," ");t.className=(n+(i?" "+e:"")).replace(I," ")}}function T(t,e,i){var n=t&&t.style;if(n){if(void 0===i)return document.defaultView&&document.defaultView.getComputedStyle?i=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(i=t.currentStyle),void 0===e?i:i[e];e in n||-1!==e.indexOf("webkit")||(e="-webkit-"+e),n[e]=i+("string"==typeof i?"":"px")}}function C(t,e){var i="";if("string"==typeof t)i=t;else do{var n=T(t,"transform");n&&"none"!==n&&(i=n+" "+i)}while(!e&&(t=t.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(i)}function M(t,e,i){if(t){var n=t.getElementsByTagName(e),r=0,o=n.length;if(i)for(;r<o;r++)i(n[r],r);return n}return[]}function O(){return document.scrollingElement||document.documentElement}function A(t,e,i,n,r){if(t.getBoundingClientRect||t===window){var o,a,s,l,u,c,h;if(t!==window&&t.parentNode&&t!==O()?(a=(o=t.getBoundingClientRect()).top,s=o.left,l=o.bottom,u=o.right,c=o.height,h=o.width):(a=0,s=0,l=window.innerHeight,u=window.innerWidth,c=window.innerHeight,h=window.innerWidth),(e||i)&&t!==window&&(r=r||t.parentNode,!v))do{if(r&&r.getBoundingClientRect&&("none"!==T(r,"transform")||i&&"static"!==T(r,"position"))){var d=r.getBoundingClientRect();a-=d.top+parseInt(T(r,"border-top-width")),s-=d.left+parseInt(T(r,"border-left-width")),l=a+o.height,u=s+o.width;break}}while(r=r.parentNode);if(n&&t!==window){var f=C(r||t),m=f&&f.a,b=f&&f.d;f&&(l=(a/=b)+(c/=b),u=(s/=m)+(h/=m))}return{top:a,left:s,bottom:l,right:u,width:h,height:c}}}function j(t,e,i){for(var n=L(t,!0),r=A(t)[e];n;){var o=A(n)[i];if(!("top"===i||"left"===i?r>=o:r<=o))return n;if(n===O())break;n=L(n,!1)}return!1}function F(t,e,i,n){for(var r=0,o=0,a=t.children;o<a.length;){if("none"!==a[o].style.display&&a[o]!==Ut.ghost&&(n||a[o]!==Ut.dragged)&&k(a[o],i.draggable,t,!1)){if(r===e)return a[o];r++}o++}return null}function $(t,e){for(var i=t.lastElementChild;i&&(i===Ut.ghost||"none"===T(i,"display")||e&&!E(i,e));)i=i.previousElementSibling;return i||null}function B(t,e){var i=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)"TEMPLATE"===t.nodeName.toUpperCase()||t===Ut.clone||e&&!E(t,e)||i++;return i}function N(t){var e=0,i=0,n=O();if(t)do{var r=C(t);e+=t.scrollLeft*r.a,i+=t.scrollTop*r.d}while(t!==n&&(t=t.parentNode));return[e,i]}function L(t,e){if(!t||!t.getBoundingClientRect)return O();var i=t,n=!1;do{if(i.clientWidth<i.scrollWidth||i.clientHeight<i.scrollHeight){var r=T(i);if(i.clientWidth<i.scrollWidth&&("auto"==r.overflowX||"scroll"==r.overflowX)||i.clientHeight<i.scrollHeight&&("auto"==r.overflowY||"scroll"==r.overflowY)){if(!i.getBoundingClientRect||i===document.body)return O();if(n||e)return i;n=!0}}}while(i=i.parentNode);return O()}function P(t,e){return Math.round(t.top)===Math.round(e.top)&&Math.round(t.left)===Math.round(e.left)&&Math.round(t.height)===Math.round(e.height)&&Math.round(t.width)===Math.round(e.width)}function G(t,e){return function(){if(!S){var i=arguments,n=this;1===i.length?t.call(n,i[0]):t.apply(n,i),S=setTimeout((function(){S=void 0}),e)}}}function H(t,e,i){t.scrollLeft+=e,t.scrollTop+=i}function K(t){var e=window.Polymer,i=window.jQuery||window.Zepto;return e&&e.dom?e.dom(t).cloneNode(!0):i?i(t).clone(!0)[0]:t.cloneNode(!0)}function R(t,e){T(t,"position","absolute"),T(t,"top",e.top),T(t,"left",e.left),T(t,"width",e.width),T(t,"height",e.height)}function U(t){T(t,"position",""),T(t,"top",""),T(t,"left",""),T(t,"width",""),T(t,"height","")}function W(t,e,i){var n={};return Array.from(t.children).forEach((function(r){var o,a,s,l;if(k(r,e.draggable,t,!1)&&!r.animated&&r!==i){var u=A(r);n.left=Math.min(null!==(o=n.left)&&void 0!==o?o:1/0,u.left),n.top=Math.min(null!==(a=n.top)&&void 0!==a?a:1/0,u.top),n.right=Math.max(null!==(s=n.right)&&void 0!==s?s:-1/0,u.right),n.bottom=Math.max(null!==(l=n.bottom)&&void 0!==l?l:-1/0,u.bottom)}})),n.width=n.right-n.left,n.height=n.bottom-n.top,n.x=n.left,n.y=n.top,n}var Y="Sortable"+(new Date).getTime();var X=[],V={initializeByDefault:!0},Z={mount:function(t){for(var e in V)V.hasOwnProperty(e)&&!(e in t)&&(t[e]=V[e]);X.forEach((function(e){if(e.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")})),X.push(t)},pluginEvent:function(t,e,i){var n=this;this.eventCanceled=!1,i.cancel=function(){n.eventCanceled=!0};var r=t+"Global";X.forEach((function(n){e[n.pluginName]&&(e[n.pluginName][r]&&e[n.pluginName][r](c({sortable:e},i)),e.options[n.pluginName]&&e[n.pluginName][t]&&e[n.pluginName][t](c({sortable:e},i)))}))},initializePlugins:function(t,e,i){for(var n in X.forEach((function(n){var r=n.pluginName;if(t.options[r]||n.initializeByDefault){var o=new n(t,e,t.options);o.sortable=t,o.options=t.options,t[r]=o,l(i,o.defaults)}})),t.options)if(t.options.hasOwnProperty(n)){var r=this.modifyOption(t,n,t.options[n]);void 0!==r&&(t.options[n]=r)}},getEventProperties:function(t,e){var i={};return X.forEach((function(n){"function"==typeof n.eventProperties&&l(i,n.eventProperties.call(e[n.pluginName],t))})),i},modifyOption:function(t,e,i){var n;return X.forEach((function(r){t[r.pluginName]&&r.optionListeners&&"function"==typeof r.optionListeners[e]&&(n=r.optionListeners[e].call(t[r.pluginName],i))})),n}};function q(t){var e=t.sortable,i=t.rootEl,n=t.name,r=t.targetEl,o=t.cloneEl,a=t.toEl,s=t.fromEl,l=t.oldIndex,u=t.newIndex,h=t.oldDraggableIndex,d=t.newDraggableIndex,f=t.originalEvent,b=t.putSortable,p=t.extraEventProperties;if(e=e||i&&i[Y]){var g,w=e.options,y="on"+n.charAt(0).toUpperCase()+n.substr(1);!window.CustomEvent||v||m?(g=document.createEvent("Event")).initEvent(n,!0,!0):g=new CustomEvent(n,{bubbles:!0,cancelable:!0}),g.to=a||i,g.from=s||i,g.item=r||i,g.clone=o,g.oldIndex=l,g.newIndex=u,g.oldDraggableIndex=h,g.newDraggableIndex=d,g.originalEvent=f,g.pullMode=b?b.lastPutMode:void 0;var x=c(c({},p),Z.getEventProperties(n,e));for(var _ in x)g[_]=x[_];i&&i.dispatchEvent(g),w[y]&&w[y].call(e,g)}}var J=["evt"],Q=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=i.evt,r=h(i,J);Z.pluginEvent.bind(Ut)(t,e,c({dragEl:et,parentEl:it,ghostEl:nt,rootEl:rt,nextEl:ot,lastDownEl:at,cloneEl:st,cloneHidden:lt,dragStarted:xt,putSortable:vt,activeSortable:Ut.active,originalEvent:n,oldIndex:ut,oldDraggableIndex:ht,newIndex:ct,newDraggableIndex:dt,hideGhostForTarget:Gt,unhideGhostForTarget:Ht,cloneNowHidden:function(){lt=!0},cloneNowShown:function(){lt=!1},dispatchSortableEvent:function(t){tt({sortable:e,name:t,originalEvent:n})}},r))};function tt(t){q(c({putSortable:vt,cloneEl:st,targetEl:et,rootEl:rt,oldIndex:ut,oldDraggableIndex:ht,newIndex:ct,newDraggableIndex:dt},t))}var et,it,nt,rt,ot,at,st,lt,ut,ct,ht,dt,ft,vt,mt,bt,pt,gt,wt,yt,xt,_t,Et,zt,kt,St=!1,It=!1,Dt=[],Tt=!1,Ct=!1,Mt=[],Ot=!1,At=[],jt="undefined"!=typeof document,Ft=g,$t=m||v?"cssFloat":"float",Bt=jt&&!w&&!g&&"draggable"in document.createElement("div"),Nt=function(){if(jt){if(v)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto","auto"===t.style.pointerEvents}}(),Lt=function(t,e){var i=T(t),n=parseInt(i.width)-parseInt(i.paddingLeft)-parseInt(i.paddingRight)-parseInt(i.borderLeftWidth)-parseInt(i.borderRightWidth),r=F(t,0,e),o=F(t,1,e),a=r&&T(r),s=o&&T(o),l=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+A(r).width,u=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+A(o).width;return"flex"===i.display?"column"===i.flexDirection||"column-reverse"===i.flexDirection?"vertical":"horizontal":"grid"===i.display?i.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal":r&&a.float&&"none"!==a.float?!o||"both"!==s.clear&&s.clear!==("left"===a.float?"left":"right")?"horizontal":"vertical":r&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||l>=n&&"none"===i[$t]||o&&"none"===i[$t]&&l+u>n)?"vertical":"horizontal"},Pt=function(t){function e(t,i){return function(n,r,o,a){if(null==t&&(i||n.options.group.name&&r.options.group.name&&n.options.group.name===r.options.group.name))return!0;if(null==t||!1===t)return!1;if(i&&"clone"===t)return t;if("function"==typeof t)return e(t(n,r,o,a),i)(n,r,o,a);var s=(i?n:r).options.group.name;return!0===t||"string"==typeof t&&t===s||t.join&&t.indexOf(s)>-1}}var i={},n=t.group;n&&"object"==d(n)||(n={name:n}),i.name=n.name,i.checkPull=e(n.pull,!0),i.checkPut=e(n.put),i.revertClone=n.revertClone,t.group=i},Gt=function(){!Nt&&nt&&T(nt,"display","none")},Ht=function(){!Nt&&nt&&T(nt,"display","")};jt&&!w&&document.addEventListener("click",(function(t){if(It)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),It=!1,!1}),!0);var Kt=function(t){if(et){var e=(r=(t=t.touches?t.touches[0]:t).clientX,o=t.clientY,Dt.some((function(t){var e=t[Y].options.emptyInsertThreshold;if(e&&!$(t)){var i=A(t);return r>=i.left-e&&r<=i.right+e&&o>=i.top-e&&o<=i.bottom+e?a=t:void 0}})),a);if(e){var i={};for(var n in t)t.hasOwnProperty(n)&&(i[n]=t[n]);i.target=i.rootEl=e,i.preventDefault=void 0,i.stopPropagation=void 0,e[Y]._onDragOver(i)}}var r,o,a},Rt=function(t){et&&et.parentNode[Y]._isOutsideThisEl(t.target)};function Ut(t,e){if(!t||!t.nodeType||1!==t.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=e=l({},e),t[Y]=this;var i,n,r={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Lt(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(t,e){t.setData("Text",e.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==Ut.supportPointer&&"PointerEvent"in window&&(!p||g),emptyInsertThreshold:5};for(var o in Z.initializePlugins(this,t,r),r)!(o in e)&&(e[o]=r[o]);for(var a in Pt(e),this)"_"===a.charAt(0)&&"function"==typeof this[a]&&(this[a]=this[a].bind(this));this.nativeDraggable=!e.forceFallback&&Bt,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?x(t,"pointerdown",this._onTapStart):(x(t,"mousedown",this._onTapStart),x(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(x(t,"dragover",this),x(t,"dragenter",this)),Dt.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),l(this,(n=[],{captureAnimationState:function(){n=[],this.options.animation&&[].slice.call(this.el.children).forEach((function(t){if("none"!==T(t,"display")&&t!==Ut.ghost){n.push({target:t,rect:A(t)});var e=c({},n[n.length-1].rect);if(t.thisAnimationDuration){var i=C(t,!0);i&&(e.top-=i.f,e.left-=i.e)}t.fromRect=e}}))},addAnimationState:function(t){n.push(t)},removeAnimationState:function(t){n.splice(function(t,e){for(var i in t)if(t.hasOwnProperty(i))for(var n in e)if(e.hasOwnProperty(n)&&e[n]===t[i][n])return Number(i);return-1}(n,{target:t}),1)},animateAll:function(t){var e=this;if(!this.options.animation)return clearTimeout(i),void("function"==typeof t&&t());var r=!1,o=0;n.forEach((function(t){var i=0,n=t.target,a=n.fromRect,s=A(n),l=n.prevFromRect,u=n.prevToRect,c=t.rect,h=C(n,!0);h&&(s.top-=h.f,s.left-=h.e),n.toRect=s,n.thisAnimationDuration&&P(l,s)&&!P(a,s)&&(c.top-s.top)/(c.left-s.left)==(a.top-s.top)/(a.left-s.left)&&(i=function(t,e,i,n){return Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))/Math.sqrt(Math.pow(e.top-i.top,2)+Math.pow(e.left-i.left,2))*n.animation}(c,l,u,e.options)),P(s,a)||(n.prevFromRect=a,n.prevToRect=s,i||(i=e.options.animation),e.animate(n,c,s,i)),i&&(r=!0,o=Math.max(o,i),clearTimeout(n.animationResetTimer),n.animationResetTimer=setTimeout((function(){n.animationTime=0,n.prevFromRect=null,n.fromRect=null,n.prevToRect=null,n.thisAnimationDuration=null}),i),n.thisAnimationDuration=i)})),clearTimeout(i),r?i=setTimeout((function(){"function"==typeof t&&t()}),o):"function"==typeof t&&t(),n=[]},animate:function(t,e,i,n){if(n){T(t,"transition",""),T(t,"transform","");var r=C(this.el),o=(e.left-i.left)/(r&&r.a||1),a=(e.top-i.top)/(r&&r.d||1);t.animatingX=!!o,t.animatingY=!!a,T(t,"transform","translate3d("+o+"px,"+a+"px,0)"),this.forRepaintDummy=function(t){return t.offsetWidth}(t),T(t,"transition","transform "+n+"ms"+(this.options.easing?" "+this.options.easing:"")),T(t,"transform","translate3d(0,0,0)"),"number"==typeof t.animated&&clearTimeout(t.animated),t.animated=setTimeout((function(){T(t,"transition",""),T(t,"transform",""),t.animated=!1,t.animatingX=!1,t.animatingY=!1}),n)}}}))}function Wt(t,e,i,n,r,o,a,s){var l,u,c=t[Y],h=c.options.onMove;return!window.CustomEvent||v||m?(l=document.createEvent("Event")).initEvent("move",!0,!0):l=new CustomEvent("move",{bubbles:!0,cancelable:!0}),l.to=e,l.from=t,l.dragged=i,l.draggedRect=n,l.related=r||e,l.relatedRect=o||A(e),l.willInsertAfter=s,l.originalEvent=a,t.dispatchEvent(l),h&&(u=h.call(c,l,a)),u}function Yt(t){t.draggable=!1}function Xt(){Ot=!1}function Vt(t){for(var e=t.tagName+t.className+t.src+t.href+t.textContent,i=e.length,n=0;i--;)n+=e.charCodeAt(i);return n.toString(36)}function Zt(t){return setTimeout(t,0)}function qt(t){return clearTimeout(t)}Ut.prototype={constructor:Ut,_isOutsideThisEl:function(t){this.el.contains(t)||t===this.el||(_t=null)},_getDirection:function(t,e){return"function"==typeof this.options.direction?this.options.direction.call(this,t,e,et):this.options.direction},_onTapStart:function(t){if(t.cancelable){var e=this,i=this.el,n=this.options,r=n.preventOnFilter,o=t.type,a=t.touches&&t.touches[0]||t.pointerType&&"touch"===t.pointerType&&t,s=(a||t).target,l=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||s,u=n.filter;if(function(t){At.length=0;for(var e=t.getElementsByTagName("input"),i=e.length;i--;){var n=e[i];n.checked&&At.push(n)}}(i),!et&&!(/mousedown|pointerdown/.test(o)&&0!==t.button||n.disabled)&&!l.isContentEditable&&(this.nativeDraggable||!p||!s||"SELECT"!==s.tagName.toUpperCase())&&!((s=k(s,n.draggable,i,!1))&&s.animated||at===s)){if(ut=B(s),ht=B(s,n.draggable),"function"==typeof u){if(u.call(this,t,s,this))return tt({sortable:e,rootEl:l,name:"filter",targetEl:s,toEl:i,fromEl:i}),Q("filter",e,{evt:t}),void(r&&t.preventDefault())}else if(u&&(u=u.split(",").some((function(n){if(n=k(l,n.trim(),i,!1))return tt({sortable:e,rootEl:n,name:"filter",targetEl:s,fromEl:i,toEl:i}),Q("filter",e,{evt:t}),!0}))))return void(r&&t.preventDefault());n.handle&&!k(l,n.handle,i,!1)||this._prepareDragStart(t,a,s)}}},_prepareDragStart:function(t,e,i){var n,r=this,o=r.el,a=r.options,s=o.ownerDocument;if(i&&!et&&i.parentNode===o){var l=A(i);if(rt=o,it=(et=i).parentNode,ot=et.nextSibling,at=i,ft=a.group,Ut.dragged=et,wt=(mt={target:et,clientX:(e||t).clientX,clientY:(e||t).clientY}).clientX-l.left,yt=mt.clientY-l.top,this._lastX=(e||t).clientX,this._lastY=(e||t).clientY,et.style["will-change"]="all",n=function(){Q("delayEnded",r,{evt:t}),Ut.eventCanceled?r._onDrop():(r._disableDelayedDragEvents(),!b&&r.nativeDraggable&&(et.draggable=!0),r._triggerDragStart(t,e),tt({sortable:r,name:"choose",originalEvent:t}),D(et,a.chosenClass,!0))},a.ignore.split(",").forEach((function(t){M(et,t.trim(),Yt)})),x(s,"dragover",Kt),x(s,"mousemove",Kt),x(s,"touchmove",Kt),a.supportPointer?(x(s,"pointerup",r._onDrop),!this.nativeDraggable&&x(s,"pointercancel",r._onDrop)):(x(s,"mouseup",r._onDrop),x(s,"touchend",r._onDrop),x(s,"touchcancel",r._onDrop)),b&&this.nativeDraggable&&(this.options.touchStartThreshold=4,et.draggable=!0),Q("delayStart",this,{evt:t}),!a.delay||a.delayOnTouchOnly&&!e||this.nativeDraggable&&(m||v))n();else{if(Ut.eventCanceled)return void this._onDrop();a.supportPointer?(x(s,"pointerup",r._disableDelayedDrag),x(s,"pointercancel",r._disableDelayedDrag)):(x(s,"mouseup",r._disableDelayedDrag),x(s,"touchend",r._disableDelayedDrag),x(s,"touchcancel",r._disableDelayedDrag)),x(s,"mousemove",r._delayedDragTouchMoveHandler),x(s,"touchmove",r._delayedDragTouchMoveHandler),a.supportPointer&&x(s,"pointermove",r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(n,a.delay)}}},_delayedDragTouchMoveHandler:function(t){var e=t.touches?t.touches[0]:t;Math.max(Math.abs(e.clientX-this._lastX),Math.abs(e.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){et&&Yt(et),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;_(t,"mouseup",this._disableDelayedDrag),_(t,"touchend",this._disableDelayedDrag),_(t,"touchcancel",this._disableDelayedDrag),_(t,"pointerup",this._disableDelayedDrag),_(t,"pointercancel",this._disableDelayedDrag),_(t,"mousemove",this._delayedDragTouchMoveHandler),_(t,"touchmove",this._delayedDragTouchMoveHandler),_(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,e){e=e||"touch"==t.pointerType&&t,!this.nativeDraggable||e?x(document,this.options.supportPointer?"pointermove":e?"touchmove":"mousemove",this._onTouchMove):(x(et,"dragend",this),x(rt,"dragstart",this._onDragStart));try{document.selection?Zt((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(t){}},_dragStarted:function(t,e){if(St=!1,rt&&et){Q("dragStarted",this,{evt:e}),this.nativeDraggable&&x(document,"dragover",Rt);var i=this.options;!t&&D(et,i.dragClass,!1),D(et,i.ghostClass,!0),Ut.active=this,t&&this._appendGhost(),tt({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(bt){this._lastX=bt.clientX,this._lastY=bt.clientY,Gt();for(var t=document.elementFromPoint(bt.clientX,bt.clientY),e=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(bt.clientX,bt.clientY))!==e;)e=t;if(et.parentNode[Y]._isOutsideThisEl(t),e)do{if(e[Y]&&e[Y]._onDragOver({clientX:bt.clientX,clientY:bt.clientY,target:t,rootEl:e})&&!this.options.dragoverBubble)break;t=e}while(e=z(e));Ht()}},_onTouchMove:function(t){if(mt){var e=this.options,i=e.fallbackTolerance,n=e.fallbackOffset,r=t.touches?t.touches[0]:t,o=nt&&C(nt,!0),a=nt&&o&&o.a,s=nt&&o&&o.d,l=Ft&&kt&&N(kt),u=(r.clientX-mt.clientX+n.x)/(a||1)+(l?l[0]-Mt[0]:0)/(a||1),c=(r.clientY-mt.clientY+n.y)/(s||1)+(l?l[1]-Mt[1]:0)/(s||1);if(!Ut.active&&!St){if(i&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))<i)return;this._onDragStart(t,!0)}if(nt){o?(o.e+=u-(pt||0),o.f+=c-(gt||0)):o={a:1,b:0,c:0,d:1,e:u,f:c};var h="matrix(".concat(o.a,",").concat(o.b,",").concat(o.c,",").concat(o.d,",").concat(o.e,",").concat(o.f,")");T(nt,"webkitTransform",h),T(nt,"mozTransform",h),T(nt,"msTransform",h),T(nt,"transform",h),pt=u,gt=c,bt=r}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!nt){var t=this.options.fallbackOnBody?document.body:rt,e=A(et,!0,Ft,!0,t),i=this.options;if(Ft){for(kt=t;"static"===T(kt,"position")&&"none"===T(kt,"transform")&&kt!==document;)kt=kt.parentNode;kt!==document.body&&kt!==document.documentElement?(kt===document&&(kt=O()),e.top+=kt.scrollTop,e.left+=kt.scrollLeft):kt=O(),Mt=N(kt)}D(nt=et.cloneNode(!0),i.ghostClass,!1),D(nt,i.fallbackClass,!0),D(nt,i.dragClass,!0),T(nt,"transition",""),T(nt,"transform",""),T(nt,"box-sizing","border-box"),T(nt,"margin",0),T(nt,"top",e.top),T(nt,"left",e.left),T(nt,"width",e.width),T(nt,"height",e.height),T(nt,"opacity","0.8"),T(nt,"position",Ft?"absolute":"fixed"),T(nt,"zIndex","100000"),T(nt,"pointerEvents","none"),Ut.ghost=nt,t.appendChild(nt),T(nt,"transform-origin",wt/parseInt(nt.style.width)*100+"% "+yt/parseInt(nt.style.height)*100+"%")}},_onDragStart:function(t,e){var i=this,n=t.dataTransfer,r=i.options;Q("dragStart",this,{evt:t}),Ut.eventCanceled?this._onDrop():(Q("setupClone",this),Ut.eventCanceled||((st=K(et)).removeAttribute("id"),st.draggable=!1,st.style["will-change"]="",this._hideClone(),D(st,this.options.chosenClass,!1),Ut.clone=st),i.cloneId=Zt((function(){Q("clone",i),Ut.eventCanceled||(i.options.removeCloneOnHide||rt.insertBefore(st,et),i._hideClone(),tt({sortable:i,name:"clone"}))})),!e&&D(et,r.dragClass,!0),e?(It=!0,i._loopId=setInterval(i._emulateDragOver,50)):(_(document,"mouseup",i._onDrop),_(document,"touchend",i._onDrop),_(document,"touchcancel",i._onDrop),n&&(n.effectAllowed="move",r.setData&&r.setData.call(i,n,et)),x(document,"drop",i),T(et,"transform","translateZ(0)")),St=!0,i._dragStartId=Zt(i._dragStarted.bind(i,e,t)),x(document,"selectstart",i),xt=!0,window.getSelection().removeAllRanges(),p&&T(document.body,"user-select","none"))},_onDragOver:function(t){var e,i,n,r,o=this.el,a=t.target,s=this.options,l=s.group,u=Ut.active,h=ft===l,d=s.sort,f=vt||u,v=this,m=!1;if(!Ot){if(void 0!==t.preventDefault&&t.cancelable&&t.preventDefault(),a=k(a,s.draggable,o,!0),N("dragOver"),Ut.eventCanceled)return m;if(et.contains(t.target)||a.animated&&a.animatingX&&a.animatingY||v._ignoreWhileAnimating===a)return P(!1);if(It=!1,u&&!s.disabled&&(h?d||(n=it!==rt):vt===this||(this.lastPutMode=ft.checkPull(this,u,et,t))&&l.checkPut(this,u,et,t))){if(r="vertical"===this._getDirection(t,a),e=A(et),N("dragOverValid"),Ut.eventCanceled)return m;if(n)return it=rt,L(),this._hideClone(),N("revert"),Ut.eventCanceled||(ot?rt.insertBefore(et,ot):rt.appendChild(et)),P(!0);var b=$(o,s.draggable);if(!b||function(t,e,i){var n=A($(i.el,i.options.draggable)),r=W(i.el,i.options,nt);return e?t.clientX>r.right+10||t.clientY>n.bottom&&t.clientX>n.left:t.clientY>r.bottom+10||t.clientX>n.right&&t.clientY>n.top}(t,r,this)&&!b.animated){if(b===et)return P(!1);if(b&&o===t.target&&(a=b),a&&(i=A(a)),!1!==Wt(rt,o,et,e,a,i,t,!!a))return L(),b&&b.nextSibling?o.insertBefore(et,b.nextSibling):o.appendChild(et),it=o,G(),P(!0)}else if(b&&function(t,e,i){var n=A(F(i.el,0,i.options,!0)),r=W(i.el,i.options,nt);return e?t.clientX<r.left-10||t.clientY<n.top&&t.clientX<n.right:t.clientY<r.top-10||t.clientY<n.bottom&&t.clientX<n.left}(t,r,this)){var p=F(o,0,s,!0);if(p===et)return P(!1);if(i=A(a=p),!1!==Wt(rt,o,et,e,a,i,t,!1))return L(),o.insertBefore(et,p),it=o,G(),P(!0)}else if(a.parentNode===o){i=A(a);var g,w,y,x=et.parentNode!==o,_=!function(t,e,i){var n=i?t.left:t.top,r=i?e.left:e.top;return n===r||(i?t.right:t.bottom)===(i?e.right:e.bottom)||n+(i?t.width:t.height)/2===r+(i?e.width:e.height)/2}(et.animated&&et.toRect||e,a.animated&&a.toRect||i,r),E=r?"top":"left",z=j(a,"top","top")||j(et,"top","top"),S=z?z.scrollTop:void 0;if(_t!==a&&(w=i[E],Tt=!1,Ct=!_&&s.invertSwap||x),g=function(t,e,i,n,r,o,a,s){var l=n?t.clientY:t.clientX,u=n?i.height:i.width,c=n?i.top:i.left,h=n?i.bottom:i.right,d=!1;if(!a)if(s&&zt<u*r){if(!Tt&&(1===Et?l>c+u*o/2:l<h-u*o/2)&&(Tt=!0),Tt)d=!0;else if(1===Et?l<c+zt:l>h-zt)return-Et}else if(l>c+u*(1-r)/2&&l<h-u*(1-r)/2)return function(t){return B(et)<B(t)?1:-1}(e);return(d=d||a)&&(l<c+u*o/2||l>h-u*o/2)?l>c+u/2?1:-1:0}(t,a,i,r,_?1:s.swapThreshold,null==s.invertedSwapThreshold?s.swapThreshold:s.invertedSwapThreshold,Ct,_t===a),0!==g){var I=B(et);do{y=it.children[I-=g]}while(y&&("none"===T(y,"display")||y===nt))}if(0===g||y===a)return P(!1);_t=a,Et=g;var C=a.nextElementSibling,M=!1,O=Wt(rt,o,et,e,a,i,t,M=1===g);if(!1!==O)return 1!==O&&-1!==O||(M=1===O),Ot=!0,setTimeout(Xt,30),L(),M&&!C?o.appendChild(et):a.parentNode.insertBefore(et,M?C:a),z&&H(z,0,S-z.scrollTop),it=et.parentNode,void 0===w||Ct||(zt=Math.abs(w-A(a)[E])),G(),P(!0)}if(o.contains(et))return P(!1)}return!1}function N(s,l){Q(s,v,c({evt:t,isOwner:h,axis:r?"vertical":"horizontal",revert:n,dragRect:e,targetRect:i,canSort:d,fromSortable:f,target:a,completed:P,onMove:function(i,n){return Wt(rt,o,et,e,i,A(i),t,n)},changed:G},l))}function L(){N("dragOverAnimationCapture"),v.captureAnimationState(),v!==f&&f.captureAnimationState()}function P(e){return N("dragOverCompleted",{insertion:e}),e&&(h?u._hideClone():u._showClone(v),v!==f&&(D(et,vt?vt.options.ghostClass:u.options.ghostClass,!1),D(et,s.ghostClass,!0)),vt!==v&&v!==Ut.active?vt=v:v===Ut.active&&vt&&(vt=null),f===v&&(v._ignoreWhileAnimating=a),v.animateAll((function(){N("dragOverAnimationComplete"),v._ignoreWhileAnimating=null})),v!==f&&(f.animateAll(),f._ignoreWhileAnimating=null)),(a===et&&!et.animated||a===o&&!a.animated)&&(_t=null),s.dragoverBubble||t.rootEl||a===document||(et.parentNode[Y]._isOutsideThisEl(t.target),!e&&Kt(t)),!s.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),m=!0}function G(){ct=B(et),dt=B(et,s.draggable),tt({sortable:v,name:"change",toEl:o,newIndex:ct,newDraggableIndex:dt,originalEvent:t})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){_(document,"mousemove",this._onTouchMove),_(document,"touchmove",this._onTouchMove),_(document,"pointermove",this._onTouchMove),_(document,"dragover",Kt),_(document,"mousemove",Kt),_(document,"touchmove",Kt)},_offUpEvents:function(){var t=this.el.ownerDocument;_(t,"mouseup",this._onDrop),_(t,"touchend",this._onDrop),_(t,"pointerup",this._onDrop),_(t,"pointercancel",this._onDrop),_(t,"touchcancel",this._onDrop),_(document,"selectstart",this)},_onDrop:function(t){var e=this.el,i=this.options;ct=B(et),dt=B(et,i.draggable),Q("drop",this,{evt:t}),it=et&&et.parentNode,ct=B(et),dt=B(et,i.draggable),Ut.eventCanceled||(St=!1,Ct=!1,Tt=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),qt(this.cloneId),qt(this._dragStartId),this.nativeDraggable&&(_(document,"drop",this),_(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),p&&T(document.body,"user-select",""),T(et,"transform",""),t&&(xt&&(t.cancelable&&t.preventDefault(),!i.dropBubble&&t.stopPropagation()),nt&&nt.parentNode&&nt.parentNode.removeChild(nt),(rt===it||vt&&"clone"!==vt.lastPutMode)&&st&&st.parentNode&&st.parentNode.removeChild(st),et&&(this.nativeDraggable&&_(et,"dragend",this),Yt(et),et.style["will-change"]="",xt&&!St&&D(et,vt?vt.options.ghostClass:this.options.ghostClass,!1),D(et,this.options.chosenClass,!1),tt({sortable:this,name:"unchoose",toEl:it,newIndex:null,newDraggableIndex:null,originalEvent:t}),rt!==it?(ct>=0&&(tt({rootEl:it,name:"add",toEl:it,fromEl:rt,originalEvent:t}),tt({sortable:this,name:"remove",toEl:it,originalEvent:t}),tt({rootEl:it,name:"sort",toEl:it,fromEl:rt,originalEvent:t}),tt({sortable:this,name:"sort",toEl:it,originalEvent:t})),vt&&vt.save()):ct!==ut&&ct>=0&&(tt({sortable:this,name:"update",toEl:it,originalEvent:t}),tt({sortable:this,name:"sort",toEl:it,originalEvent:t})),Ut.active&&(null!=ct&&-1!==ct||(ct=ut,dt=ht),tt({sortable:this,name:"end",toEl:it,originalEvent:t}),this.save())))),this._nulling()},_nulling:function(){Q("nulling",this),rt=et=it=nt=ot=st=at=lt=mt=bt=xt=ct=dt=ut=ht=_t=Et=vt=ft=Ut.dragged=Ut.ghost=Ut.clone=Ut.active=null;var t=this.el;At.forEach((function(e){t.contains(e)&&(e.checked=!0)})),At.length=pt=gt=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":et&&(this._onDragOver(t),function(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault()}(t));break;case"selectstart":t.preventDefault()}},toArray:function(){for(var t,e=[],i=this.el.children,n=0,r=i.length,o=this.options;n<r;n++)k(t=i[n],o.draggable,this.el,!1)&&e.push(t.getAttribute(o.dataIdAttr)||Vt(t));return e},sort:function(t,e){var i={},n=this.el;this.toArray().forEach((function(t,e){var r=n.children[e];k(r,this.options.draggable,n,!1)&&(i[t]=r)}),this),e&&this.captureAnimationState(),t.forEach((function(t){i[t]&&(n.removeChild(i[t]),n.appendChild(i[t]))})),e&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,e){return k(t,e||this.options.draggable,this.el,!1)},option:function(t,e){var i=this.options;if(void 0===e)return i[t];var n=Z.modifyOption(this,t,e);i[t]=void 0!==n?n:e,"group"===t&&Pt(i)},destroy:function(){Q("destroy",this);var t=this.el;t[Y]=null,_(t,"mousedown",this._onTapStart),_(t,"touchstart",this._onTapStart),_(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(_(t,"dragover",this),_(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),(function(t){t.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),Dt.splice(Dt.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!lt){if(Q("hideClone",this),Ut.eventCanceled)return;T(st,"display","none"),this.options.removeCloneOnHide&&st.parentNode&&st.parentNode.removeChild(st),lt=!0}},_showClone:function(t){if("clone"===t.lastPutMode){if(lt){if(Q("showClone",this),Ut.eventCanceled)return;et.parentNode!=rt||this.options.group.revertClone?ot?rt.insertBefore(st,ot):rt.appendChild(st):rt.insertBefore(st,et),this.options.group.revertClone&&this.animate(et,st),T(st,"display",""),lt=!1}}else this._hideClone()}},jt&&x(document,"touchmove",(function(t){(Ut.active||St)&&t.cancelable&&t.preventDefault()})),Ut.utils={on:x,off:_,css:T,find:M,is:function(t,e){return!!k(t,e,t,!1)},extend:function(t,e){if(t&&e)for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t},throttle:G,closest:k,toggleClass:D,clone:K,index:B,nextTick:Zt,cancelNextTick:qt,detectDirection:Lt,getChild:F,expando:Y},Ut.get=function(t){return t[Y]},Ut.mount=function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];e[0].constructor===Array&&(e=e[0]),e.forEach((function(t){if(!t.prototype||!t.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(t));t.utils&&(Ut.utils=c(c({},Ut.utils),t.utils)),Z.mount(t)}))},Ut.create=function(t,e){return new Ut(t,e)},Ut.version="1.15.7";var Jt,Qt,te,ee,ie,ne,re=[],oe=!1;function ae(){re.forEach((function(t){clearInterval(t.pid)})),re=[]}function se(){clearInterval(ne)}var le=G((function(t,e,i,n){if(e.scroll){var r,o=(t.touches?t.touches[0]:t).clientX,a=(t.touches?t.touches[0]:t).clientY,s=e.scrollSensitivity,l=e.scrollSpeed,u=O(),c=!1;Qt!==i&&(Qt=i,ae(),r=e.scrollFn,!0===(Jt=e.scroll)&&(Jt=L(i,!0)));var h=0,d=Jt;do{var f=d,v=A(f),m=v.top,b=v.bottom,p=v.left,g=v.right,w=v.width,y=v.height,x=void 0,_=void 0,E=f.scrollWidth,z=f.scrollHeight,k=T(f),S=f.scrollLeft,I=f.scrollTop;f===u?(x=w<E&&("auto"===k.overflowX||"scroll"===k.overflowX||"visible"===k.overflowX),_=y<z&&("auto"===k.overflowY||"scroll"===k.overflowY||"visible"===k.overflowY)):(x=w<E&&("auto"===k.overflowX||"scroll"===k.overflowX),_=y<z&&("auto"===k.overflowY||"scroll"===k.overflowY));var D=x&&(Math.abs(g-o)<=s&&S+w<E)-(Math.abs(p-o)<=s&&!!S),C=_&&(Math.abs(b-a)<=s&&I+y<z)-(Math.abs(m-a)<=s&&!!I);if(!re[h])for(var M=0;M<=h;M++)re[M]||(re[M]={});re[h].vx==D&&re[h].vy==C&&re[h].el===f||(re[h].el=f,re[h].vx=D,re[h].vy=C,clearInterval(re[h].pid),0==D&&0==C||(c=!0,re[h].pid=setInterval(function(){n&&0===this.layer&&Ut.active._onTouchMove(ie);var e=re[this.layer].vy?re[this.layer].vy*l:0,i=re[this.layer].vx?re[this.layer].vx*l:0;"function"==typeof r&&"continue"!==r.call(Ut.dragged.parentNode[Y],i,e,t,ie,re[this.layer].el)||H(re[this.layer].el,i,e)}.bind({layer:h}),24))),h++}while(e.bubbleScroll&&d!==u&&(d=L(d,!1)));oe=c}}),30),ue=function(t){var e=t.originalEvent,i=t.putSortable,n=t.dragEl,r=t.dispatchSortableEvent,o=t.unhideGhostForTarget;if(e){var a=i||t.activeSortable;(0,t.hideGhostForTarget)();var s=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e,l=document.elementFromPoint(s.clientX,s.clientY);o(),a&&!a.el.contains(l)&&(r("spill"),this.onSpill({dragEl:n,putSortable:i}))}};function ce(){}function he(){}ce.prototype={startIndex:null,dragStart:function(t){this.startIndex=t.oldDraggableIndex},onSpill:function(t){var e=t.dragEl,i=t.putSortable;this.sortable.captureAnimationState(),i&&i.captureAnimationState();var n=F(this.sortable.el,this.startIndex,this.options);n?this.sortable.el.insertBefore(e,n):this.sortable.el.appendChild(e),this.sortable.animateAll(),i&&i.animateAll()},drop:ue},l(ce,{pluginName:"revertOnSpill"}),he.prototype={onSpill:function(t){var e=t.dragEl,i=t.putSortable||this.sortable;i.captureAnimationState(),e.parentNode&&e.parentNode.removeChild(e),i.animateAll()},drop:ue},l(he,{pluginName:"removeOnSpill"});var de,fe,ve,me,be,pe=[],ge=[],we=!1,ye=!1,xe=!1;function _e(t,e){ge.forEach((function(i,n){var r=e.children[i.sortableIndex+(t?Number(n):0)];r?e.insertBefore(i,r):e.appendChild(i)}))}function Ee(){pe.forEach((function(t){t!==ve&&t.parentNode&&t.parentNode.removeChild(t)}))}Ut.mount(new function(){function t(){for(var t in this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===t.charAt(0)&&"function"==typeof this[t]&&(this[t]=this[t].bind(this))}return t.prototype={dragStarted:function(t){var e=t.originalEvent;this.sortable.nativeDraggable?x(document,"dragover",this._handleAutoScroll):x(document,this.options.supportPointer?"pointermove":e.touches?"touchmove":"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var e=t.originalEvent;this.options.dragOverBubble||e.rootEl||this._handleAutoScroll(e)},drop:function(){this.sortable.nativeDraggable?_(document,"dragover",this._handleAutoScroll):(_(document,"pointermove",this._handleFallbackAutoScroll),_(document,"touchmove",this._handleFallbackAutoScroll),_(document,"mousemove",this._handleFallbackAutoScroll)),se(),ae(),clearTimeout(S),S=void 0},nulling:function(){ie=Qt=Jt=oe=ne=te=ee=null,re.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,e){var i=this,n=(t.touches?t.touches[0]:t).clientX,r=(t.touches?t.touches[0]:t).clientY,o=document.elementFromPoint(n,r);if(ie=t,e||this.options.forceAutoScrollFallback||m||v||p){le(t,this.options,o,e);var a=L(o,!0);!oe||ne&&n===te&&r===ee||(ne&&se(),ne=setInterval((function(){var o=L(document.elementFromPoint(n,r),!0);o!==a&&(a=o,ae()),le(t,i.options,o,e)}),10),te=n,ee=r)}else{if(!this.options.bubbleScroll||L(o,!0)===O())return void ae();le(t,this.options,L(o,!1),!1)}}},l(t,{pluginName:"scroll",initializeByDefault:!0})}),Ut.mount(he,ce),Ut.mount(new function(){function t(t){for(var e in this)"_"===e.charAt(0)&&"function"==typeof this[e]&&(this[e]=this[e].bind(this));t.options.avoidImplicitDeselect||(t.options.supportPointer?x(document,"pointerup",this._deselectMultiDrag):(x(document,"mouseup",this._deselectMultiDrag),x(document,"touchend",this._deselectMultiDrag))),x(document,"keydown",this._checkKeyDown),x(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,avoidImplicitDeselect:!1,setData:function(e,i){var n="";pe.length&&fe===t?pe.forEach((function(t,e){n+=(e?", ":"")+t.textContent})):n=i.textContent,e.setData("Text",n)}}}return t.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(t){ve=t.dragEl},delayEnded:function(){this.isMultiDrag=~pe.indexOf(ve)},setupClone:function(t){var e=t.sortable,i=t.cancel;if(this.isMultiDrag){for(var n=0;n<pe.length;n++)ge.push(K(pe[n])),ge[n].sortableIndex=pe[n].sortableIndex,ge[n].draggable=!1,ge[n].style["will-change"]="",D(ge[n],this.options.selectedClass,!1),pe[n]===ve&&D(ge[n],this.options.chosenClass,!1);e._hideClone(),i()}},clone:function(t){var e=t.dispatchSortableEvent,i=t.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||pe.length&&fe===t.sortable&&(_e(!0,t.rootEl),e("clone"),i()))},showClone:function(t){var e=t.cloneNowShown,i=t.cancel;this.isMultiDrag&&(_e(!1,t.rootEl),ge.forEach((function(t){T(t,"display","")})),e(),be=!1,i())},hideClone:function(t){var e=this,i=t.cloneNowHidden,n=t.cancel;this.isMultiDrag&&(ge.forEach((function(t){T(t,"display","none"),e.options.removeCloneOnHide&&t.parentNode&&t.parentNode.removeChild(t)})),i(),be=!0,n())},dragStartGlobal:function(){!this.isMultiDrag&&fe&&fe.multiDrag._deselectMultiDrag(),pe.forEach((function(t){t.sortableIndex=B(t)})),pe=pe.sort((function(t,e){return t.sortableIndex-e.sortableIndex})),xe=!0},dragStarted:function(t){var e=this,i=t.sortable;if(this.isMultiDrag){if(this.options.sort&&(i.captureAnimationState(),this.options.animation)){pe.forEach((function(t){t!==ve&&T(t,"position","absolute")}));var n=A(ve,!1,!0,!0);pe.forEach((function(t){t!==ve&&R(t,n)})),ye=!0,we=!0}i.animateAll((function(){ye=!1,we=!1,e.options.animation&&pe.forEach((function(t){U(t)})),e.options.sort&&Ee()}))}},dragOver:function(t){var e=t.completed,i=t.cancel;ye&&~pe.indexOf(t.target)&&(e(!1),i())},revert:function(t){var e=t.fromSortable,i=t.rootEl,n=t.sortable,r=t.dragRect;pe.length>1&&(pe.forEach((function(t){n.addAnimationState({target:t,rect:ye?A(t):r}),U(t),t.fromRect=r,e.removeAnimationState(t)})),ye=!1,function(t,e){pe.forEach((function(i,n){var r=e.children[i.sortableIndex+(t?Number(n):0)];r?e.insertBefore(i,r):e.appendChild(i)}))}(!this.options.removeCloneOnHide,i))},dragOverCompleted:function(t){var e=t.sortable,i=t.isOwner,n=t.activeSortable,r=t.parentEl,o=t.putSortable,a=this.options;if(t.insertion){if(i&&n._hideClone(),we=!1,a.animation&&pe.length>1&&(ye||!i&&!n.options.sort&&!o)){var s=A(ve,!1,!0,!0);pe.forEach((function(t){t!==ve&&(R(t,s),r.appendChild(t))})),ye=!0}if(!i)if(ye||Ee(),pe.length>1){var l=be;n._showClone(e),n.options.animation&&!be&&l&&ge.forEach((function(t){n.addAnimationState({target:t,rect:me}),t.fromRect=me,t.thisAnimationDuration=null}))}else n._showClone(e)}},dragOverAnimationCapture:function(t){var e=t.dragRect,i=t.isOwner,n=t.activeSortable;if(pe.forEach((function(t){t.thisAnimationDuration=null})),n.options.animation&&!i&&n.multiDrag.isMultiDrag){me=l({},e);var r=C(ve,!0);me.top-=r.f,me.left-=r.e}},dragOverAnimationComplete:function(){ye&&(ye=!1,Ee())},drop:function(t){var e=t.originalEvent,i=t.rootEl,n=t.parentEl,r=t.sortable,o=t.dispatchSortableEvent,a=t.oldIndex,s=t.putSortable,l=s||this.sortable;if(e){var u=this.options,c=n.children;if(!xe)if(u.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),D(ve,u.selectedClass,!~pe.indexOf(ve)),~pe.indexOf(ve))pe.splice(pe.indexOf(ve),1),de=null,q({sortable:r,rootEl:i,name:"deselect",targetEl:ve,originalEvent:e});else{if(pe.push(ve),q({sortable:r,rootEl:i,name:"select",targetEl:ve,originalEvent:e}),e.shiftKey&&de&&r.el.contains(de)){var h=B(de),d=B(ve);~h&&~d&&h!==d&&function(){var t,o;d>h?(o=h,t=d):(o=d,t=h+1);for(var a=u.filter;o<t;o++)~pe.indexOf(c[o])||k(c[o],u.draggable,n,!1)&&(a&&("function"==typeof a?a.call(r,e,c[o],r):a.split(",").some((function(t){return k(c[o],t.trim(),n,!1)})))||(D(c[o],u.selectedClass,!0),pe.push(c[o]),q({sortable:r,rootEl:i,name:"select",targetEl:c[o],originalEvent:e})))}()}else de=ve;fe=l}if(xe&&this.isMultiDrag){if(ye=!1,(n[Y].options.sort||n!==i)&&pe.length>1){var f=A(ve),v=B(ve,":not(."+this.options.selectedClass+")");if(!we&&u.animation&&(ve.thisAnimationDuration=null),l.captureAnimationState(),!we&&(u.animation&&(ve.fromRect=f,pe.forEach((function(t){if(t.thisAnimationDuration=null,t!==ve){var e=ye?A(t):f;t.fromRect=e,l.addAnimationState({target:t,rect:e})}}))),Ee(),pe.forEach((function(t){c[v]?n.insertBefore(t,c[v]):n.appendChild(t),v++})),a===B(ve))){var m=!1;pe.forEach((function(t){t.sortableIndex===B(t)||(m=!0)})),m&&(o("update"),o("sort"))}pe.forEach((function(t){U(t)})),l.animateAll()}fe=l}(i===n||s&&"clone"!==s.lastPutMode)&&ge.forEach((function(t){t.parentNode&&t.parentNode.removeChild(t)}))}},nullingGlobal:function(){this.isMultiDrag=xe=!1,ge.length=0},destroyGlobal:function(){this._deselectMultiDrag(),_(document,"pointerup",this._deselectMultiDrag),_(document,"mouseup",this._deselectMultiDrag),_(document,"touchend",this._deselectMultiDrag),_(document,"keydown",this._checkKeyDown),_(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(t){if(!(void 0!==xe&&xe||fe!==this.sortable||t&&k(t.target,this.options.draggable,this.sortable.el,!1)||t&&0!==t.button))for(;pe.length;){var e=pe[0];D(e,this.options.selectedClass,!1),pe.shift(),q({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:e,originalEvent:t})}},_checkKeyDown:function(t){t.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(t){t.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},l(t,{pluginName:"multiDrag",utils:{select:function(t){var e=t.parentNode[Y];e&&e.options.multiDrag&&!~pe.indexOf(t)&&(fe&&fe!==e&&(fe.multiDrag._deselectMultiDrag(),fe=e),D(t,e.options.selectedClass,!0),pe.push(t))},deselect:function(t){var e=t.parentNode[Y],i=pe.indexOf(t);e&&e.options.multiDrag&&~i&&(D(t,e.options.selectedClass,!1),pe.splice(i,1))}},eventProperties:function(){var t,e=this,i=[],n=[];return pe.forEach((function(t){var r;i.push({multiDragElement:t,index:t.sortableIndex}),r=ye&&t!==ve?-1:ye?B(t,":not(."+e.options.selectedClass+")"):B(t),n.push({multiDragElement:t,index:r})})),{items:(t=pe,function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return a(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?a(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),clones:[].concat(ge),oldIndicies:i,newIndicies:n}},optionListeners:{multiDragKey:function(t){return"ctrl"===(t=t.toLowerCase())?t="Control":t.length>1&&(t=t.charAt(0).toUpperCase()+t.substr(1)),t}}})});const ze=class{constructor(i){t(this,i),this.itemsReordered=e(this,"itemsReordered",7),this.ezSelectItens=e(this,"ezSelectItens",7),this.ezDoubleClick=e(this,"ezDoubleClick",7),this.ezChoose=e(this,"ezChoose",7),this.filterTerm="",this.title=void 0,this.hideHeader=!1,this.hideTotalizer=!1,this.group="default",this.dataSource=[],this.idSortableList="DEFAULT_LIST",this.entityLabel=void 0,this.entityLabelPlural=void 0,this.emptyMessage=void 0,this.hoverFeedback=!0,this.enableMultipleSelection=!1,this.removeItensMoved=!1,this.itemRightSlotBuilder=void 0,this.itemLeftSlotBuilder=void 0,this.selectedItems=new Set}async clearSelection(){this.selectedItems.clear(),this.dataSource.forEach((t=>{var e;const i=null===(e=this.el.shadowRoot)||void 0===e?void 0:e.querySelector(`[data-key="${t.id}"]`);i&&(Ut.utils.deselect(i),t.selected=!1)})),this.ezSelectItens.emit([])}async componentWillLoad(){this.i18n=await o(),this.emptyMessage=this.i18n("ez-sortable-list.emptyMessage"),this.entityLabel=this.i18n("ez-sortable-list.entityLabel"),this.entityLabelPlural=this.i18n("ez-sortable-list.entityLabelPlural")}componentDidLoad(){this.initSortable()}componentDidRender(){this.selectPredefinedItens()}initSortable(){this._sortableInstance&&this._sortableInstance.destroy(),this._sortableInstance=new Ut(this.el.shadowRoot.querySelector(`#${this.idSortableList}`),{group:{name:this.group,pull:!0,put:!0},ghostClass:"ghost",dragClass:"dragging",animation:15,multiDrag:this.enableMultipleSelection,avoidImplicitDeselect:this.enableMultipleSelection,selectedClass:"selected",filter:".filtered",swapThreshold:.5,multiDragKey:"Control",removeCloneOnHide:!0,onEnd:t=>this.handleReorderEvent(t),onSelect:t=>this.handleSelect(t),onDeselect:t=>this.handleDeselect(t),onSort:t=>this.handleSortItem(t),onChoose:t=>this.ezChoose.emit(t)})}selectPredefinedItens(){this.dataSource.forEach((t=>{var e;const i=null===(e=this.el.shadowRoot)||void 0===e?void 0:e.querySelector(`[data-key="${t.id}"]`);i&&(this.selectedItems.has(t.id)||!0===t.selected?Ut.utils.select(i):Ut.utils.deselect(i))}))}handleSortItem(t){var e;if(!this.removeItensMoved)return;const i=t.from.getAttribute("id");t.to.getAttribute("id")!==i?((null===(e=t.items)||void 0===e?void 0:e.length)>0?t.items:[t.item]).forEach((t=>t.remove())):t.items=this.removeDuplicateElements(t.items)}removeDuplicateElements(t){const e=new Set;return t.filter((t=>{const i=t.getAttribute("data-key");if(i){if(e.has(i))return t.remove(),!1;e.add(i)}return!0}))}handleSelect(t){this.updateSelection(t.item,!0)}handleDeselect(t){this.updateSelection(t.item,!1)}updateSelection(t,e){const i=t.getAttribute("data-key");if(!i)return;const n=this.dataSource.find((t=>t.id===i));n&&(n.selected=e,e?this.selectedItems.add(i):this.selectedItems.delete(i),this.emitSelectedItems())}emitSelectedItems(){this.ezSelectItens.emit(Array.from(this.selectedItems).map((t=>this.dataSource.find((e=>e.id===t)))).filter(Boolean))}handleReorderEvent(t){var e;const i=((null===(e=t.items)||void 0===e?void 0:e.length)>0?t.items:[t.item]).map((t=>t.getAttribute("data-key"))).filter(Boolean);this.itemsReordered.emit({dataSource:this.dataSource,selectItens:i,from:t.from,to:t.to,newIndex:t.newIndex,newIndicies:t.newIndicies})}handleDoubleClick(t){var e;const i=this.dataSource.find((e=>e.id===t));i&&(null===(e=this.ezDoubleClick)||void 0===e||e.emit(i))}getContainerItemBuilder(t,e,n){var r,o;const a="left"===t?null===(r=this.itemLeftSlotBuilder)||void 0===r?void 0:r.call(this,e):null===(o=this.itemRightSlotBuilder)||void 0===o?void 0:o.call(this,e);if(null!=a)return"string"!=typeof a?i("div",{class:n},a):i("div",{class:n,innerHTML:a})}disconnectedCallback(){this._sortableInstance&&(this._sortableInstance.destroy(),this._sortableInstance=null)}buildTotalizer(){return`${this.i18n("ez-sortable-list.total")} ${this.dataSource.length} ${1===this.dataSource.length?this.entityLabel:this.entityLabelPlural}`}renderItems(){return r.applyStringFilter(this.filterTerm,this.dataSource).map((t=>i("div",{id:`ID_${t.id}`,key:`KEY_${t.id}`,class:{"sortable-item":!0,"hover-feedback":this.hoverFeedback},"data-key":t.id,onDblClick:()=>this.handleDoubleClick(t.id)},!!this.itemLeftSlotBuilder&&this.getContainerItemBuilder("left",t),i("div",{class:"item-content"},i("span",{class:"draggable-icon"}),t.label),!!this.itemRightSlotBuilder&&this.getContainerItemBuilder("right",t))))}handleFilterChanged(t){t.stopPropagation(),t.preventDefault(),this.filterTerm=t.detail}renderTotalizer(){if(!this.hideTotalizer)return i("div",{class:"sortable-totalizer"},this.buildTotalizer())}renderHeader(){if(!this.hideHeader)return i("div",{class:"sortable-header"},i("span",{class:"sortable-label"},this.title),i("ez-filter-input",{label:`${this.i18n("ez-sortable-list.search")} ${this.entityLabel}`,mode:"slim",onEzChange:t=>this.handleFilterChanged(t)}))}render(){return i("div",{class:"sortable-content"},this.renderHeader(),i("div",{class:`sortable-list ${this.dataSource.length<1?"empty-content":""} list-scroller--fix`,"data-content":this.emptyMessage,style:{"--empty-content":`"${this.emptyMessage}"`},id:this.idSortableList,key:this.idSortableList},this.renderItems()),this.renderTotalizer())}get el(){return n(this)}};ze.style=':host{--ez-sortable-list__host--z-index:var(--visible, 1);--ez-sortable-list__host--border-radius:var(--border--radius-medium, 12px);--ez-sortable-list__host--padding:var(--space--medium, 12px);--ez-sortable-list__item--margin:0 var(--space--small, 6px);--ez-sortable-list__item--padding:var(--space--3xs, 6px);--ez-sortable-list__item--color:var(--title--primary, #2b3a54);--ez-sortable-list__item--font-family:var(--font-pattern, "Roboto");--ez-sortable-list__item--font-size:var(--text--medium, 14px);--ez-sortable-list__selected-item--border-radius:var(--border--radius-small, 6px);--ez-sortable-list__selected-item--background-color:var(--color--primary-300, #E2F4EF);--ez-sortable-list__selectable--padding-right:var(--space--small, 6px);--ez-sortable-list__selectable--padding-left:var(--space--small, 6px);--ez-sortable-list__icon--color:#AFB6C0;--ez-sortable-list__draggable-icon--image:url(\'data:image/svg+xml;utf8,<svg width="18" height="18" viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg"><path d="m 6.75,2.25 h 1.5 v 1.5 h -1.5 z m 3,0 h 1.5 v 1.5 h -1.5 z m -3,3 h 1.5 v 1.5 h -1.5 z m 3,0 h 1.5 v 1.5 h -1.5 z m -3,3 h 1.5 v 1.5 h -1.5 z m 3,0 h 1.5 v 1.5 h -1.5 z m -3,3 h 1.5 v 1.5 h -1.5 z m 3,0 h 1.5 v 1.5 h -1.5 z m -3,3 h 1.5 v 1.5 h -1.5 z m 3,0 h 1.5 v 1.5 h -1.5 z"/></svg>\');--ez-sortable-list__scrollbar--color-default:var(--scrollbar--default, #626e82);--ez-sortable-list--color-background:var(--scrollbar--background, #E5EAF0);--ez-sortable-list__scrollbar--color-clicked:var(--scrollbar--clicked, #a2abb9);--ez-sortable-list__scrollbar--color-hover:var(--scrollbar--hover, #2B3A54);--ez-sortable-list--border-radius:var(--border--radius-small, 6px);--ez-sortable-list__scrollbar--width:var(--space--small, 6px);max-height:100%;width:100%;background-color:#fff;display:flex;z-index:var(--ez-sortable-list__host--z-index)}.sortable-item{display:flex;justify-content:space-between;font-family:var(--ez-sortable-list__item--font-family);font-size:var(--ez-sortable-list__item--font-size);padding:var(--ez-sortable-list__item--padding) 0px;margin:var(--ez-sortable-list__item--margin)}.hover-feedback:hover{background-color:var(--background--medium);border-radius:var(--border--radius-regular)}.sortable-item.dragging{background:#FFFFFF;border:1px solid #008561;box-shadow:0px 0px 16px rgba(0, 38, 111, 0.122);border-radius:6px}.sortable-list{padding:0;margin:0;width:100%;height:100%;max-height:100%;display:flex;flex-direction:column;overflow-y:auto;overflow-x:hidden;color:var(--text-color);scrollbar-color:var(--ez-sortable-list__scrollbar--color-clicked) var(--ez-sortable-list--color-background)}.sortable-list.empty-content::after{content:attr(data-content);display:block;font-size:16px;font-weight:400;color:#AFB6C0;margin:auto;padding:8px}.list-scroller--fix{scrollbar-width:thin}.list-scroller--hover{scrollbar-width:none}.item-content{display:flex;flex-grow:1;flex-direction:row}.empty-message{font-weight:var(--text-weight--medium);font-size:var(--text--medium);color:var(--text--secondary);margin:auto}.draggable-icon{align-items:flex-start;display:flex;outline:none;border:none;background-color:unset}.draggable-icon::after{content:\'\';display:flex;width:18px;height:18px;background-color:var(--ez-sortable-list__icon--color);-webkit-mask-image:var(--ez-sortable-list__draggable-icon--image);mask-image:var(--ez-sortable-list__draggable-icon--image)}.selectable{cursor:pointer;padding-right:var(--ez-sortable-list__selectable--padding-right);padding-left:var(--ez-sortable-list__selectable--padding-left)}.selected{background:var(--ez-sortable-list__selected-item--background-color);border-radius:var(--ez-sortable-list__selected-item--border-radius)}.list-fix::-webkit-scrollbar-thumb{background-color:var(--ez-sortable-list__scrollbar--color-default);border-radius:var(--ez-sortable-list--border-radius)}.list-fix::-webkit-scrollbar-thumb:active{background-color:var(--ez-sortable-list__scrollbar--color-clicked)}.list-fix::-webkit-scrollbar{width:var(--ez-sortable-list__scrollbar--width);display:none}.list-hover::-webkit-scrollbar-thumb:hover{background-color:var(--ez-sortable-list__scrollbar--color-hover)}.list-hover:hover{scrollbar-width:thin}.list-hover:hover::-webkit-scrollbar{display:block}.ghost{opacity:.5;background:#589f7b}.sortable-content{display:flex;justify-content:space-between;gap:10px;flex-direction:column;border:var(--border--small) var(--color--strokes);border-radius:var(--border--radius-medium);width:100%;height:400px;min-width:40%}@media (max-height: 630px){.sortable-content{height:290px}}.sortable-header{background:var(--background--body);padding:10px;border-radius:var(--border--radius-medium) var(--border--radius-medium) 0 0}.sortable-label{font-weight:var(--text-weight--large);font-size:var(--text--medium);color:var(--title--primary);margin-bottom:10px;display:block}.sortable-totalizer{padding:5px 10px;background:var(--background--body);font-weight:var(--text-weight--medium);font-size:var(--text--medium);color:var(--text--primary);border-radius:0 0 var(--border--radius-medium) var(--border--radius-medium)}';export{ze as ez_sortable_list}
7
+ */function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i<e;i++)n[i]=t[i];return n}function s(t,e,i){return(e=function(t){var e=function(t){if("object"!=typeof t||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,"string");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function l(){return l=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)({}).hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},l.apply(null,arguments)}function u(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function c(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?u(Object(i),!0).forEach((function(e){s(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):u(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function h(t,e){if(null==t)return{};var i,n,r=function(t,e){if(null==t)return{};var i={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(-1!==e.indexOf(n))continue;i[n]=t[n]}return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)-1===e.indexOf(i=o[n])&&{}.propertyIsEnumerable.call(t,i)&&(r[i]=t[i])}return r}function d(t){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d(t)}function f(t){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(t)}var v=f(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),m=f(/Edge/i),b=f(/firefox/i),p=f(/safari/i)&&!f(/chrome/i)&&!f(/android/i),g=f(/iP(ad|od|hone)/i),w=f(/chrome/i)&&f(/android/i),y={capture:!1,passive:!1};function x(t,e,i){t.addEventListener(e,i,!v&&y)}function _(t,e,i){t.removeEventListener(e,i,!v&&y)}function E(t,e){if(e){if(">"===e[0]&&(e=e.substring(1)),t)try{if(t.matches)return t.matches(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e)}catch(t){return!1}return!1}}function z(t){return t.host&&t!==document&&t.host.nodeType&&t.host!==t?t.host:t.parentNode}function k(t,e,i,n){if(t){i=i||document;do{if(null!=e&&(">"===e[0]?t.parentNode===i&&E(t,e):E(t,e))||n&&t===i)return t;if(t===i)break}while(t=z(t))}return null}var S,I=/\s+/g;function D(t,e,i){if(t&&e)if(t.classList)t.classList[i?"add":"remove"](e);else{var n=(" "+t.className+" ").replace(I," ").replace(" "+e+" "," ");t.className=(n+(i?" "+e:"")).replace(I," ")}}function T(t,e,i){var n=t&&t.style;if(n){if(void 0===i)return document.defaultView&&document.defaultView.getComputedStyle?i=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(i=t.currentStyle),void 0===e?i:i[e];e in n||-1!==e.indexOf("webkit")||(e="-webkit-"+e),n[e]=i+("string"==typeof i?"":"px")}}function C(t,e){var i="";if("string"==typeof t)i=t;else do{var n=T(t,"transform");n&&"none"!==n&&(i=n+" "+i)}while(!e&&(t=t.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(i)}function M(t,e,i){if(t){var n=t.getElementsByTagName(e),r=0,o=n.length;if(i)for(;r<o;r++)i(n[r],r);return n}return[]}function O(){return document.scrollingElement||document.documentElement}function A(t,e,i,n,r){if(t.getBoundingClientRect||t===window){var o,a,s,l,u,c,h;if(t!==window&&t.parentNode&&t!==O()?(a=(o=t.getBoundingClientRect()).top,s=o.left,l=o.bottom,u=o.right,c=o.height,h=o.width):(a=0,s=0,l=window.innerHeight,u=window.innerWidth,c=window.innerHeight,h=window.innerWidth),(e||i)&&t!==window&&(r=r||t.parentNode,!v))do{if(r&&r.getBoundingClientRect&&("none"!==T(r,"transform")||i&&"static"!==T(r,"position"))){var d=r.getBoundingClientRect();a-=d.top+parseInt(T(r,"border-top-width")),s-=d.left+parseInt(T(r,"border-left-width")),l=a+o.height,u=s+o.width;break}}while(r=r.parentNode);if(n&&t!==window){var f=C(r||t),m=f&&f.a,b=f&&f.d;f&&(l=(a/=b)+(c/=b),u=(s/=m)+(h/=m))}return{top:a,left:s,bottom:l,right:u,width:h,height:c}}}function j(t,e,i){for(var n=L(t,!0),r=A(t)[e];n;){var o=A(n)[i];if(!("top"===i||"left"===i?r>=o:r<=o))return n;if(n===O())break;n=L(n,!1)}return!1}function F(t,e,i,n){for(var r=0,o=0,a=t.children;o<a.length;){if("none"!==a[o].style.display&&a[o]!==Ut.ghost&&(n||a[o]!==Ut.dragged)&&k(a[o],i.draggable,t,!1)){if(r===e)return a[o];r++}o++}return null}function $(t,e){for(var i=t.lastElementChild;i&&(i===Ut.ghost||"none"===T(i,"display")||e&&!E(i,e));)i=i.previousElementSibling;return i||null}function B(t,e){var i=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)"TEMPLATE"===t.nodeName.toUpperCase()||t===Ut.clone||e&&!E(t,e)||i++;return i}function N(t){var e=0,i=0,n=O();if(t)do{var r=C(t);e+=t.scrollLeft*r.a,i+=t.scrollTop*r.d}while(t!==n&&(t=t.parentNode));return[e,i]}function L(t,e){if(!t||!t.getBoundingClientRect)return O();var i=t,n=!1;do{if(i.clientWidth<i.scrollWidth||i.clientHeight<i.scrollHeight){var r=T(i);if(i.clientWidth<i.scrollWidth&&("auto"==r.overflowX||"scroll"==r.overflowX)||i.clientHeight<i.scrollHeight&&("auto"==r.overflowY||"scroll"==r.overflowY)){if(!i.getBoundingClientRect||i===document.body)return O();if(n||e)return i;n=!0}}}while(i=i.parentNode);return O()}function P(t,e){return Math.round(t.top)===Math.round(e.top)&&Math.round(t.left)===Math.round(e.left)&&Math.round(t.height)===Math.round(e.height)&&Math.round(t.width)===Math.round(e.width)}function G(t,e){return function(){if(!S){var i=arguments,n=this;1===i.length?t.call(n,i[0]):t.apply(n,i),S=setTimeout((function(){S=void 0}),e)}}}function H(t,e,i){t.scrollLeft+=e,t.scrollTop+=i}function K(t){var e=window.Polymer,i=window.jQuery||window.Zepto;return e&&e.dom?e.dom(t).cloneNode(!0):i?i(t).clone(!0)[0]:t.cloneNode(!0)}function R(t,e){T(t,"position","absolute"),T(t,"top",e.top),T(t,"left",e.left),T(t,"width",e.width),T(t,"height",e.height)}function U(t){T(t,"position",""),T(t,"top",""),T(t,"left",""),T(t,"width",""),T(t,"height","")}function W(t,e,i){var n={};return Array.from(t.children).forEach((function(r){var o,a,s,l;if(k(r,e.draggable,t,!1)&&!r.animated&&r!==i){var u=A(r);n.left=Math.min(null!==(o=n.left)&&void 0!==o?o:1/0,u.left),n.top=Math.min(null!==(a=n.top)&&void 0!==a?a:1/0,u.top),n.right=Math.max(null!==(s=n.right)&&void 0!==s?s:-1/0,u.right),n.bottom=Math.max(null!==(l=n.bottom)&&void 0!==l?l:-1/0,u.bottom)}})),n.width=n.right-n.left,n.height=n.bottom-n.top,n.x=n.left,n.y=n.top,n}var Y="Sortable"+(new Date).getTime();var X=[],V={initializeByDefault:!0},Z={mount:function(t){for(var e in V)V.hasOwnProperty(e)&&!(e in t)&&(t[e]=V[e]);X.forEach((function(e){if(e.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")})),X.push(t)},pluginEvent:function(t,e,i){var n=this;this.eventCanceled=!1,i.cancel=function(){n.eventCanceled=!0};var r=t+"Global";X.forEach((function(n){e[n.pluginName]&&(e[n.pluginName][r]&&e[n.pluginName][r](c({sortable:e},i)),e.options[n.pluginName]&&e[n.pluginName][t]&&e[n.pluginName][t](c({sortable:e},i)))}))},initializePlugins:function(t,e,i){for(var n in X.forEach((function(n){var r=n.pluginName;if(t.options[r]||n.initializeByDefault){var o=new n(t,e,t.options);o.sortable=t,o.options=t.options,t[r]=o,l(i,o.defaults)}})),t.options)if(t.options.hasOwnProperty(n)){var r=this.modifyOption(t,n,t.options[n]);void 0!==r&&(t.options[n]=r)}},getEventProperties:function(t,e){var i={};return X.forEach((function(n){"function"==typeof n.eventProperties&&l(i,n.eventProperties.call(e[n.pluginName],t))})),i},modifyOption:function(t,e,i){var n;return X.forEach((function(r){t[r.pluginName]&&r.optionListeners&&"function"==typeof r.optionListeners[e]&&(n=r.optionListeners[e].call(t[r.pluginName],i))})),n}};function q(t){var e=t.sortable,i=t.rootEl,n=t.name,r=t.targetEl,o=t.cloneEl,a=t.toEl,s=t.fromEl,l=t.oldIndex,u=t.newIndex,h=t.oldDraggableIndex,d=t.newDraggableIndex,f=t.originalEvent,b=t.putSortable,p=t.extraEventProperties;if(e=e||i&&i[Y]){var g,w=e.options,y="on"+n.charAt(0).toUpperCase()+n.substr(1);!window.CustomEvent||v||m?(g=document.createEvent("Event")).initEvent(n,!0,!0):g=new CustomEvent(n,{bubbles:!0,cancelable:!0}),g.to=a||i,g.from=s||i,g.item=r||i,g.clone=o,g.oldIndex=l,g.newIndex=u,g.oldDraggableIndex=h,g.newDraggableIndex=d,g.originalEvent=f,g.pullMode=b?b.lastPutMode:void 0;var x=c(c({},p),Z.getEventProperties(n,e));for(var _ in x)g[_]=x[_];i&&i.dispatchEvent(g),w[y]&&w[y].call(e,g)}}var J=["evt"],Q=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=i.evt,r=h(i,J);Z.pluginEvent.bind(Ut)(t,e,c({dragEl:et,parentEl:it,ghostEl:nt,rootEl:rt,nextEl:ot,lastDownEl:at,cloneEl:st,cloneHidden:lt,dragStarted:xt,putSortable:vt,activeSortable:Ut.active,originalEvent:n,oldIndex:ut,oldDraggableIndex:ht,newIndex:ct,newDraggableIndex:dt,hideGhostForTarget:Gt,unhideGhostForTarget:Ht,cloneNowHidden:function(){lt=!0},cloneNowShown:function(){lt=!1},dispatchSortableEvent:function(t){tt({sortable:e,name:t,originalEvent:n})}},r))};function tt(t){q(c({putSortable:vt,cloneEl:st,targetEl:et,rootEl:rt,oldIndex:ut,oldDraggableIndex:ht,newIndex:ct,newDraggableIndex:dt},t))}var et,it,nt,rt,ot,at,st,lt,ut,ct,ht,dt,ft,vt,mt,bt,pt,gt,wt,yt,xt,_t,Et,zt,kt,St=!1,It=!1,Dt=[],Tt=!1,Ct=!1,Mt=[],Ot=!1,At=[],jt="undefined"!=typeof document,Ft=g,$t=m||v?"cssFloat":"float",Bt=jt&&!w&&!g&&"draggable"in document.createElement("div"),Nt=function(){if(jt){if(v)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto","auto"===t.style.pointerEvents}}(),Lt=function(t,e){var i=T(t),n=parseInt(i.width)-parseInt(i.paddingLeft)-parseInt(i.paddingRight)-parseInt(i.borderLeftWidth)-parseInt(i.borderRightWidth),r=F(t,0,e),o=F(t,1,e),a=r&&T(r),s=o&&T(o),l=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+A(r).width,u=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+A(o).width;return"flex"===i.display?"column"===i.flexDirection||"column-reverse"===i.flexDirection?"vertical":"horizontal":"grid"===i.display?i.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal":r&&a.float&&"none"!==a.float?!o||"both"!==s.clear&&s.clear!==("left"===a.float?"left":"right")?"horizontal":"vertical":r&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||l>=n&&"none"===i[$t]||o&&"none"===i[$t]&&l+u>n)?"vertical":"horizontal"},Pt=function(t){function e(t,i){return function(n,r,o,a){if(null==t&&(i||n.options.group.name&&r.options.group.name&&n.options.group.name===r.options.group.name))return!0;if(null==t||!1===t)return!1;if(i&&"clone"===t)return t;if("function"==typeof t)return e(t(n,r,o,a),i)(n,r,o,a);var s=(i?n:r).options.group.name;return!0===t||"string"==typeof t&&t===s||t.join&&t.indexOf(s)>-1}}var i={},n=t.group;n&&"object"==d(n)||(n={name:n}),i.name=n.name,i.checkPull=e(n.pull,!0),i.checkPut=e(n.put),i.revertClone=n.revertClone,t.group=i},Gt=function(){!Nt&&nt&&T(nt,"display","none")},Ht=function(){!Nt&&nt&&T(nt,"display","")};jt&&!w&&document.addEventListener("click",(function(t){if(It)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),It=!1,!1}),!0);var Kt=function(t){if(et){var e=(r=(t=t.touches?t.touches[0]:t).clientX,o=t.clientY,Dt.some((function(t){var e=t[Y].options.emptyInsertThreshold;if(e&&!$(t)){var i=A(t);return r>=i.left-e&&r<=i.right+e&&o>=i.top-e&&o<=i.bottom+e?a=t:void 0}})),a);if(e){var i={};for(var n in t)t.hasOwnProperty(n)&&(i[n]=t[n]);i.target=i.rootEl=e,i.preventDefault=void 0,i.stopPropagation=void 0,e[Y]._onDragOver(i)}}var r,o,a},Rt=function(t){et&&et.parentNode[Y]._isOutsideThisEl(t.target)};function Ut(t,e){if(!t||!t.nodeType||1!==t.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=e=l({},e),t[Y]=this;var i,n,r={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Lt(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(t,e){t.setData("Text",e.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==Ut.supportPointer&&"PointerEvent"in window&&(!p||g),emptyInsertThreshold:5};for(var o in Z.initializePlugins(this,t,r),r)!(o in e)&&(e[o]=r[o]);for(var a in Pt(e),this)"_"===a.charAt(0)&&"function"==typeof this[a]&&(this[a]=this[a].bind(this));this.nativeDraggable=!e.forceFallback&&Bt,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?x(t,"pointerdown",this._onTapStart):(x(t,"mousedown",this._onTapStart),x(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(x(t,"dragover",this),x(t,"dragenter",this)),Dt.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),l(this,(n=[],{captureAnimationState:function(){n=[],this.options.animation&&[].slice.call(this.el.children).forEach((function(t){if("none"!==T(t,"display")&&t!==Ut.ghost){n.push({target:t,rect:A(t)});var e=c({},n[n.length-1].rect);if(t.thisAnimationDuration){var i=C(t,!0);i&&(e.top-=i.f,e.left-=i.e)}t.fromRect=e}}))},addAnimationState:function(t){n.push(t)},removeAnimationState:function(t){n.splice(function(t,e){for(var i in t)if(t.hasOwnProperty(i))for(var n in e)if(e.hasOwnProperty(n)&&e[n]===t[i][n])return Number(i);return-1}(n,{target:t}),1)},animateAll:function(t){var e=this;if(!this.options.animation)return clearTimeout(i),void("function"==typeof t&&t());var r=!1,o=0;n.forEach((function(t){var i=0,n=t.target,a=n.fromRect,s=A(n),l=n.prevFromRect,u=n.prevToRect,c=t.rect,h=C(n,!0);h&&(s.top-=h.f,s.left-=h.e),n.toRect=s,n.thisAnimationDuration&&P(l,s)&&!P(a,s)&&(c.top-s.top)/(c.left-s.left)==(a.top-s.top)/(a.left-s.left)&&(i=function(t,e,i,n){return Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))/Math.sqrt(Math.pow(e.top-i.top,2)+Math.pow(e.left-i.left,2))*n.animation}(c,l,u,e.options)),P(s,a)||(n.prevFromRect=a,n.prevToRect=s,i||(i=e.options.animation),e.animate(n,c,s,i)),i&&(r=!0,o=Math.max(o,i),clearTimeout(n.animationResetTimer),n.animationResetTimer=setTimeout((function(){n.animationTime=0,n.prevFromRect=null,n.fromRect=null,n.prevToRect=null,n.thisAnimationDuration=null}),i),n.thisAnimationDuration=i)})),clearTimeout(i),r?i=setTimeout((function(){"function"==typeof t&&t()}),o):"function"==typeof t&&t(),n=[]},animate:function(t,e,i,n){if(n){T(t,"transition",""),T(t,"transform","");var r=C(this.el),o=(e.left-i.left)/(r&&r.a||1),a=(e.top-i.top)/(r&&r.d||1);t.animatingX=!!o,t.animatingY=!!a,T(t,"transform","translate3d("+o+"px,"+a+"px,0)"),this.forRepaintDummy=function(t){return t.offsetWidth}(t),T(t,"transition","transform "+n+"ms"+(this.options.easing?" "+this.options.easing:"")),T(t,"transform","translate3d(0,0,0)"),"number"==typeof t.animated&&clearTimeout(t.animated),t.animated=setTimeout((function(){T(t,"transition",""),T(t,"transform",""),t.animated=!1,t.animatingX=!1,t.animatingY=!1}),n)}}}))}function Wt(t,e,i,n,r,o,a,s){var l,u,c=t[Y],h=c.options.onMove;return!window.CustomEvent||v||m?(l=document.createEvent("Event")).initEvent("move",!0,!0):l=new CustomEvent("move",{bubbles:!0,cancelable:!0}),l.to=e,l.from=t,l.dragged=i,l.draggedRect=n,l.related=r||e,l.relatedRect=o||A(e),l.willInsertAfter=s,l.originalEvent=a,t.dispatchEvent(l),h&&(u=h.call(c,l,a)),u}function Yt(t){t.draggable=!1}function Xt(){Ot=!1}function Vt(t){for(var e=t.tagName+t.className+t.src+t.href+t.textContent,i=e.length,n=0;i--;)n+=e.charCodeAt(i);return n.toString(36)}function Zt(t){return setTimeout(t,0)}function qt(t){return clearTimeout(t)}Ut.prototype={constructor:Ut,_isOutsideThisEl:function(t){this.el.contains(t)||t===this.el||(_t=null)},_getDirection:function(t,e){return"function"==typeof this.options.direction?this.options.direction.call(this,t,e,et):this.options.direction},_onTapStart:function(t){if(t.cancelable){var e=this,i=this.el,n=this.options,r=n.preventOnFilter,o=t.type,a=t.touches&&t.touches[0]||t.pointerType&&"touch"===t.pointerType&&t,s=(a||t).target,l=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||s,u=n.filter;if(function(t){At.length=0;for(var e=t.getElementsByTagName("input"),i=e.length;i--;){var n=e[i];n.checked&&At.push(n)}}(i),!et&&!(/mousedown|pointerdown/.test(o)&&0!==t.button||n.disabled)&&!l.isContentEditable&&(this.nativeDraggable||!p||!s||"SELECT"!==s.tagName.toUpperCase())&&!((s=k(s,n.draggable,i,!1))&&s.animated||at===s)){if(ut=B(s),ht=B(s,n.draggable),"function"==typeof u){if(u.call(this,t,s,this))return tt({sortable:e,rootEl:l,name:"filter",targetEl:s,toEl:i,fromEl:i}),Q("filter",e,{evt:t}),void(r&&t.preventDefault())}else if(u&&(u=u.split(",").some((function(n){if(n=k(l,n.trim(),i,!1))return tt({sortable:e,rootEl:n,name:"filter",targetEl:s,fromEl:i,toEl:i}),Q("filter",e,{evt:t}),!0}))))return void(r&&t.preventDefault());n.handle&&!k(l,n.handle,i,!1)||this._prepareDragStart(t,a,s)}}},_prepareDragStart:function(t,e,i){var n,r=this,o=r.el,a=r.options,s=o.ownerDocument;if(i&&!et&&i.parentNode===o){var l=A(i);if(rt=o,it=(et=i).parentNode,ot=et.nextSibling,at=i,ft=a.group,Ut.dragged=et,wt=(mt={target:et,clientX:(e||t).clientX,clientY:(e||t).clientY}).clientX-l.left,yt=mt.clientY-l.top,this._lastX=(e||t).clientX,this._lastY=(e||t).clientY,et.style["will-change"]="all",n=function(){Q("delayEnded",r,{evt:t}),Ut.eventCanceled?r._onDrop():(r._disableDelayedDragEvents(),!b&&r.nativeDraggable&&(et.draggable=!0),r._triggerDragStart(t,e),tt({sortable:r,name:"choose",originalEvent:t}),D(et,a.chosenClass,!0))},a.ignore.split(",").forEach((function(t){M(et,t.trim(),Yt)})),x(s,"dragover",Kt),x(s,"mousemove",Kt),x(s,"touchmove",Kt),a.supportPointer?(x(s,"pointerup",r._onDrop),!this.nativeDraggable&&x(s,"pointercancel",r._onDrop)):(x(s,"mouseup",r._onDrop),x(s,"touchend",r._onDrop),x(s,"touchcancel",r._onDrop)),b&&this.nativeDraggable&&(this.options.touchStartThreshold=4,et.draggable=!0),Q("delayStart",this,{evt:t}),!a.delay||a.delayOnTouchOnly&&!e||this.nativeDraggable&&(m||v))n();else{if(Ut.eventCanceled)return void this._onDrop();a.supportPointer?(x(s,"pointerup",r._disableDelayedDrag),x(s,"pointercancel",r._disableDelayedDrag)):(x(s,"mouseup",r._disableDelayedDrag),x(s,"touchend",r._disableDelayedDrag),x(s,"touchcancel",r._disableDelayedDrag)),x(s,"mousemove",r._delayedDragTouchMoveHandler),x(s,"touchmove",r._delayedDragTouchMoveHandler),a.supportPointer&&x(s,"pointermove",r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(n,a.delay)}}},_delayedDragTouchMoveHandler:function(t){var e=t.touches?t.touches[0]:t;Math.max(Math.abs(e.clientX-this._lastX),Math.abs(e.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){et&&Yt(et),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;_(t,"mouseup",this._disableDelayedDrag),_(t,"touchend",this._disableDelayedDrag),_(t,"touchcancel",this._disableDelayedDrag),_(t,"pointerup",this._disableDelayedDrag),_(t,"pointercancel",this._disableDelayedDrag),_(t,"mousemove",this._delayedDragTouchMoveHandler),_(t,"touchmove",this._delayedDragTouchMoveHandler),_(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,e){e=e||"touch"==t.pointerType&&t,!this.nativeDraggable||e?x(document,this.options.supportPointer?"pointermove":e?"touchmove":"mousemove",this._onTouchMove):(x(et,"dragend",this),x(rt,"dragstart",this._onDragStart));try{document.selection?Zt((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(t){}},_dragStarted:function(t,e){if(St=!1,rt&&et){Q("dragStarted",this,{evt:e}),this.nativeDraggable&&x(document,"dragover",Rt);var i=this.options;!t&&D(et,i.dragClass,!1),D(et,i.ghostClass,!0),Ut.active=this,t&&this._appendGhost(),tt({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(bt){this._lastX=bt.clientX,this._lastY=bt.clientY,Gt();for(var t=document.elementFromPoint(bt.clientX,bt.clientY),e=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(bt.clientX,bt.clientY))!==e;)e=t;if(et.parentNode[Y]._isOutsideThisEl(t),e)do{if(e[Y]&&e[Y]._onDragOver({clientX:bt.clientX,clientY:bt.clientY,target:t,rootEl:e})&&!this.options.dragoverBubble)break;t=e}while(e=z(e));Ht()}},_onTouchMove:function(t){if(mt){var e=this.options,i=e.fallbackTolerance,n=e.fallbackOffset,r=t.touches?t.touches[0]:t,o=nt&&C(nt,!0),a=nt&&o&&o.a,s=nt&&o&&o.d,l=Ft&&kt&&N(kt),u=(r.clientX-mt.clientX+n.x)/(a||1)+(l?l[0]-Mt[0]:0)/(a||1),c=(r.clientY-mt.clientY+n.y)/(s||1)+(l?l[1]-Mt[1]:0)/(s||1);if(!Ut.active&&!St){if(i&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))<i)return;this._onDragStart(t,!0)}if(nt){o?(o.e+=u-(pt||0),o.f+=c-(gt||0)):o={a:1,b:0,c:0,d:1,e:u,f:c};var h="matrix(".concat(o.a,",").concat(o.b,",").concat(o.c,",").concat(o.d,",").concat(o.e,",").concat(o.f,")");T(nt,"webkitTransform",h),T(nt,"mozTransform",h),T(nt,"msTransform",h),T(nt,"transform",h),pt=u,gt=c,bt=r}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!nt){var t=this.options.fallbackOnBody?document.body:rt,e=A(et,!0,Ft,!0,t),i=this.options;if(Ft){for(kt=t;"static"===T(kt,"position")&&"none"===T(kt,"transform")&&kt!==document;)kt=kt.parentNode;kt!==document.body&&kt!==document.documentElement?(kt===document&&(kt=O()),e.top+=kt.scrollTop,e.left+=kt.scrollLeft):kt=O(),Mt=N(kt)}D(nt=et.cloneNode(!0),i.ghostClass,!1),D(nt,i.fallbackClass,!0),D(nt,i.dragClass,!0),T(nt,"transition",""),T(nt,"transform",""),T(nt,"box-sizing","border-box"),T(nt,"margin",0),T(nt,"top",e.top),T(nt,"left",e.left),T(nt,"width",e.width),T(nt,"height",e.height),T(nt,"opacity","0.8"),T(nt,"position",Ft?"absolute":"fixed"),T(nt,"zIndex","100000"),T(nt,"pointerEvents","none"),Ut.ghost=nt,t.appendChild(nt),T(nt,"transform-origin",wt/parseInt(nt.style.width)*100+"% "+yt/parseInt(nt.style.height)*100+"%")}},_onDragStart:function(t,e){var i=this,n=t.dataTransfer,r=i.options;Q("dragStart",this,{evt:t}),Ut.eventCanceled?this._onDrop():(Q("setupClone",this),Ut.eventCanceled||((st=K(et)).removeAttribute("id"),st.draggable=!1,st.style["will-change"]="",this._hideClone(),D(st,this.options.chosenClass,!1),Ut.clone=st),i.cloneId=Zt((function(){Q("clone",i),Ut.eventCanceled||(i.options.removeCloneOnHide||rt.insertBefore(st,et),i._hideClone(),tt({sortable:i,name:"clone"}))})),!e&&D(et,r.dragClass,!0),e?(It=!0,i._loopId=setInterval(i._emulateDragOver,50)):(_(document,"mouseup",i._onDrop),_(document,"touchend",i._onDrop),_(document,"touchcancel",i._onDrop),n&&(n.effectAllowed="move",r.setData&&r.setData.call(i,n,et)),x(document,"drop",i),T(et,"transform","translateZ(0)")),St=!0,i._dragStartId=Zt(i._dragStarted.bind(i,e,t)),x(document,"selectstart",i),xt=!0,window.getSelection().removeAllRanges(),p&&T(document.body,"user-select","none"))},_onDragOver:function(t){var e,i,n,r,o=this.el,a=t.target,s=this.options,l=s.group,u=Ut.active,h=ft===l,d=s.sort,f=vt||u,v=this,m=!1;if(!Ot){if(void 0!==t.preventDefault&&t.cancelable&&t.preventDefault(),a=k(a,s.draggable,o,!0),N("dragOver"),Ut.eventCanceled)return m;if(et.contains(t.target)||a.animated&&a.animatingX&&a.animatingY||v._ignoreWhileAnimating===a)return P(!1);if(It=!1,u&&!s.disabled&&(h?d||(n=it!==rt):vt===this||(this.lastPutMode=ft.checkPull(this,u,et,t))&&l.checkPut(this,u,et,t))){if(r="vertical"===this._getDirection(t,a),e=A(et),N("dragOverValid"),Ut.eventCanceled)return m;if(n)return it=rt,L(),this._hideClone(),N("revert"),Ut.eventCanceled||(ot?rt.insertBefore(et,ot):rt.appendChild(et)),P(!0);var b=$(o,s.draggable);if(!b||function(t,e,i){var n=A($(i.el,i.options.draggable)),r=W(i.el,i.options,nt);return e?t.clientX>r.right+10||t.clientY>n.bottom&&t.clientX>n.left:t.clientY>r.bottom+10||t.clientX>n.right&&t.clientY>n.top}(t,r,this)&&!b.animated){if(b===et)return P(!1);if(b&&o===t.target&&(a=b),a&&(i=A(a)),!1!==Wt(rt,o,et,e,a,i,t,!!a))return L(),b&&b.nextSibling?o.insertBefore(et,b.nextSibling):o.appendChild(et),it=o,G(),P(!0)}else if(b&&function(t,e,i){var n=A(F(i.el,0,i.options,!0)),r=W(i.el,i.options,nt);return e?t.clientX<r.left-10||t.clientY<n.top&&t.clientX<n.right:t.clientY<r.top-10||t.clientY<n.bottom&&t.clientX<n.left}(t,r,this)){var p=F(o,0,s,!0);if(p===et)return P(!1);if(i=A(a=p),!1!==Wt(rt,o,et,e,a,i,t,!1))return L(),o.insertBefore(et,p),it=o,G(),P(!0)}else if(a.parentNode===o){i=A(a);var g,w,y,x=et.parentNode!==o,_=!function(t,e,i){var n=i?t.left:t.top,r=i?e.left:e.top;return n===r||(i?t.right:t.bottom)===(i?e.right:e.bottom)||n+(i?t.width:t.height)/2===r+(i?e.width:e.height)/2}(et.animated&&et.toRect||e,a.animated&&a.toRect||i,r),E=r?"top":"left",z=j(a,"top","top")||j(et,"top","top"),S=z?z.scrollTop:void 0;if(_t!==a&&(w=i[E],Tt=!1,Ct=!_&&s.invertSwap||x),g=function(t,e,i,n,r,o,a,s){var l=n?t.clientY:t.clientX,u=n?i.height:i.width,c=n?i.top:i.left,h=n?i.bottom:i.right,d=!1;if(!a)if(s&&zt<u*r){if(!Tt&&(1===Et?l>c+u*o/2:l<h-u*o/2)&&(Tt=!0),Tt)d=!0;else if(1===Et?l<c+zt:l>h-zt)return-Et}else if(l>c+u*(1-r)/2&&l<h-u*(1-r)/2)return function(t){return B(et)<B(t)?1:-1}(e);return(d=d||a)&&(l<c+u*o/2||l>h-u*o/2)?l>c+u/2?1:-1:0}(t,a,i,r,_?1:s.swapThreshold,null==s.invertedSwapThreshold?s.swapThreshold:s.invertedSwapThreshold,Ct,_t===a),0!==g){var I=B(et);do{y=it.children[I-=g]}while(y&&("none"===T(y,"display")||y===nt))}if(0===g||y===a)return P(!1);_t=a,Et=g;var C=a.nextElementSibling,M=!1,O=Wt(rt,o,et,e,a,i,t,M=1===g);if(!1!==O)return 1!==O&&-1!==O||(M=1===O),Ot=!0,setTimeout(Xt,30),L(),M&&!C?o.appendChild(et):a.parentNode.insertBefore(et,M?C:a),z&&H(z,0,S-z.scrollTop),it=et.parentNode,void 0===w||Ct||(zt=Math.abs(w-A(a)[E])),G(),P(!0)}if(o.contains(et))return P(!1)}return!1}function N(s,l){Q(s,v,c({evt:t,isOwner:h,axis:r?"vertical":"horizontal",revert:n,dragRect:e,targetRect:i,canSort:d,fromSortable:f,target:a,completed:P,onMove:function(i,n){return Wt(rt,o,et,e,i,A(i),t,n)},changed:G},l))}function L(){N("dragOverAnimationCapture"),v.captureAnimationState(),v!==f&&f.captureAnimationState()}function P(e){return N("dragOverCompleted",{insertion:e}),e&&(h?u._hideClone():u._showClone(v),v!==f&&(D(et,vt?vt.options.ghostClass:u.options.ghostClass,!1),D(et,s.ghostClass,!0)),vt!==v&&v!==Ut.active?vt=v:v===Ut.active&&vt&&(vt=null),f===v&&(v._ignoreWhileAnimating=a),v.animateAll((function(){N("dragOverAnimationComplete"),v._ignoreWhileAnimating=null})),v!==f&&(f.animateAll(),f._ignoreWhileAnimating=null)),(a===et&&!et.animated||a===o&&!a.animated)&&(_t=null),s.dragoverBubble||t.rootEl||a===document||(et.parentNode[Y]._isOutsideThisEl(t.target),!e&&Kt(t)),!s.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),m=!0}function G(){ct=B(et),dt=B(et,s.draggable),tt({sortable:v,name:"change",toEl:o,newIndex:ct,newDraggableIndex:dt,originalEvent:t})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){_(document,"mousemove",this._onTouchMove),_(document,"touchmove",this._onTouchMove),_(document,"pointermove",this._onTouchMove),_(document,"dragover",Kt),_(document,"mousemove",Kt),_(document,"touchmove",Kt)},_offUpEvents:function(){var t=this.el.ownerDocument;_(t,"mouseup",this._onDrop),_(t,"touchend",this._onDrop),_(t,"pointerup",this._onDrop),_(t,"pointercancel",this._onDrop),_(t,"touchcancel",this._onDrop),_(document,"selectstart",this)},_onDrop:function(t){var e=this.el,i=this.options;ct=B(et),dt=B(et,i.draggable),Q("drop",this,{evt:t}),it=et&&et.parentNode,ct=B(et),dt=B(et,i.draggable),Ut.eventCanceled||(St=!1,Ct=!1,Tt=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),qt(this.cloneId),qt(this._dragStartId),this.nativeDraggable&&(_(document,"drop",this),_(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),p&&T(document.body,"user-select",""),T(et,"transform",""),t&&(xt&&(t.cancelable&&t.preventDefault(),!i.dropBubble&&t.stopPropagation()),nt&&nt.parentNode&&nt.parentNode.removeChild(nt),(rt===it||vt&&"clone"!==vt.lastPutMode)&&st&&st.parentNode&&st.parentNode.removeChild(st),et&&(this.nativeDraggable&&_(et,"dragend",this),Yt(et),et.style["will-change"]="",xt&&!St&&D(et,vt?vt.options.ghostClass:this.options.ghostClass,!1),D(et,this.options.chosenClass,!1),tt({sortable:this,name:"unchoose",toEl:it,newIndex:null,newDraggableIndex:null,originalEvent:t}),rt!==it?(ct>=0&&(tt({rootEl:it,name:"add",toEl:it,fromEl:rt,originalEvent:t}),tt({sortable:this,name:"remove",toEl:it,originalEvent:t}),tt({rootEl:it,name:"sort",toEl:it,fromEl:rt,originalEvent:t}),tt({sortable:this,name:"sort",toEl:it,originalEvent:t})),vt&&vt.save()):ct!==ut&&ct>=0&&(tt({sortable:this,name:"update",toEl:it,originalEvent:t}),tt({sortable:this,name:"sort",toEl:it,originalEvent:t})),Ut.active&&(null!=ct&&-1!==ct||(ct=ut,dt=ht),tt({sortable:this,name:"end",toEl:it,originalEvent:t}),this.save())))),this._nulling()},_nulling:function(){Q("nulling",this),rt=et=it=nt=ot=st=at=lt=mt=bt=xt=ct=dt=ut=ht=_t=Et=vt=ft=Ut.dragged=Ut.ghost=Ut.clone=Ut.active=null;var t=this.el;At.forEach((function(e){t.contains(e)&&(e.checked=!0)})),At.length=pt=gt=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":et&&(this._onDragOver(t),function(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault()}(t));break;case"selectstart":t.preventDefault()}},toArray:function(){for(var t,e=[],i=this.el.children,n=0,r=i.length,o=this.options;n<r;n++)k(t=i[n],o.draggable,this.el,!1)&&e.push(t.getAttribute(o.dataIdAttr)||Vt(t));return e},sort:function(t,e){var i={},n=this.el;this.toArray().forEach((function(t,e){var r=n.children[e];k(r,this.options.draggable,n,!1)&&(i[t]=r)}),this),e&&this.captureAnimationState(),t.forEach((function(t){i[t]&&(n.removeChild(i[t]),n.appendChild(i[t]))})),e&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,e){return k(t,e||this.options.draggable,this.el,!1)},option:function(t,e){var i=this.options;if(void 0===e)return i[t];var n=Z.modifyOption(this,t,e);i[t]=void 0!==n?n:e,"group"===t&&Pt(i)},destroy:function(){Q("destroy",this);var t=this.el;t[Y]=null,_(t,"mousedown",this._onTapStart),_(t,"touchstart",this._onTapStart),_(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(_(t,"dragover",this),_(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),(function(t){t.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),Dt.splice(Dt.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!lt){if(Q("hideClone",this),Ut.eventCanceled)return;T(st,"display","none"),this.options.removeCloneOnHide&&st.parentNode&&st.parentNode.removeChild(st),lt=!0}},_showClone:function(t){if("clone"===t.lastPutMode){if(lt){if(Q("showClone",this),Ut.eventCanceled)return;et.parentNode!=rt||this.options.group.revertClone?ot?rt.insertBefore(st,ot):rt.appendChild(st):rt.insertBefore(st,et),this.options.group.revertClone&&this.animate(et,st),T(st,"display",""),lt=!1}}else this._hideClone()}},jt&&x(document,"touchmove",(function(t){(Ut.active||St)&&t.cancelable&&t.preventDefault()})),Ut.utils={on:x,off:_,css:T,find:M,is:function(t,e){return!!k(t,e,t,!1)},extend:function(t,e){if(t&&e)for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t},throttle:G,closest:k,toggleClass:D,clone:K,index:B,nextTick:Zt,cancelNextTick:qt,detectDirection:Lt,getChild:F,expando:Y},Ut.get=function(t){return t[Y]},Ut.mount=function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];e[0].constructor===Array&&(e=e[0]),e.forEach((function(t){if(!t.prototype||!t.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(t));t.utils&&(Ut.utils=c(c({},Ut.utils),t.utils)),Z.mount(t)}))},Ut.create=function(t,e){return new Ut(t,e)},Ut.version="1.15.7";var Jt,Qt,te,ee,ie,ne,re=[],oe=!1;function ae(){re.forEach((function(t){clearInterval(t.pid)})),re=[]}function se(){clearInterval(ne)}var le=G((function(t,e,i,n){if(e.scroll){var r,o=(t.touches?t.touches[0]:t).clientX,a=(t.touches?t.touches[0]:t).clientY,s=e.scrollSensitivity,l=e.scrollSpeed,u=O(),c=!1;Qt!==i&&(Qt=i,ae(),r=e.scrollFn,!0===(Jt=e.scroll)&&(Jt=L(i,!0)));var h=0,d=Jt;do{var f=d,v=A(f),m=v.top,b=v.bottom,p=v.left,g=v.right,w=v.width,y=v.height,x=void 0,_=void 0,E=f.scrollWidth,z=f.scrollHeight,k=T(f),S=f.scrollLeft,I=f.scrollTop;f===u?(x=w<E&&("auto"===k.overflowX||"scroll"===k.overflowX||"visible"===k.overflowX),_=y<z&&("auto"===k.overflowY||"scroll"===k.overflowY||"visible"===k.overflowY)):(x=w<E&&("auto"===k.overflowX||"scroll"===k.overflowX),_=y<z&&("auto"===k.overflowY||"scroll"===k.overflowY));var D=x&&(Math.abs(g-o)<=s&&S+w<E)-(Math.abs(p-o)<=s&&!!S),C=_&&(Math.abs(b-a)<=s&&I+y<z)-(Math.abs(m-a)<=s&&!!I);if(!re[h])for(var M=0;M<=h;M++)re[M]||(re[M]={});re[h].vx==D&&re[h].vy==C&&re[h].el===f||(re[h].el=f,re[h].vx=D,re[h].vy=C,clearInterval(re[h].pid),0==D&&0==C||(c=!0,re[h].pid=setInterval(function(){n&&0===this.layer&&Ut.active._onTouchMove(ie);var e=re[this.layer].vy?re[this.layer].vy*l:0,i=re[this.layer].vx?re[this.layer].vx*l:0;"function"==typeof r&&"continue"!==r.call(Ut.dragged.parentNode[Y],i,e,t,ie,re[this.layer].el)||H(re[this.layer].el,i,e)}.bind({layer:h}),24))),h++}while(e.bubbleScroll&&d!==u&&(d=L(d,!1)));oe=c}}),30),ue=function(t){var e=t.originalEvent,i=t.putSortable,n=t.dragEl,r=t.dispatchSortableEvent,o=t.unhideGhostForTarget;if(e){var a=i||t.activeSortable;(0,t.hideGhostForTarget)();var s=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e,l=document.elementFromPoint(s.clientX,s.clientY);o(),a&&!a.el.contains(l)&&(r("spill"),this.onSpill({dragEl:n,putSortable:i}))}};function ce(){}function he(){}ce.prototype={startIndex:null,dragStart:function(t){this.startIndex=t.oldDraggableIndex},onSpill:function(t){var e=t.dragEl,i=t.putSortable;this.sortable.captureAnimationState(),i&&i.captureAnimationState();var n=F(this.sortable.el,this.startIndex,this.options);n?this.sortable.el.insertBefore(e,n):this.sortable.el.appendChild(e),this.sortable.animateAll(),i&&i.animateAll()},drop:ue},l(ce,{pluginName:"revertOnSpill"}),he.prototype={onSpill:function(t){var e=t.dragEl,i=t.putSortable||this.sortable;i.captureAnimationState(),e.parentNode&&e.parentNode.removeChild(e),i.animateAll()},drop:ue},l(he,{pluginName:"removeOnSpill"});var de,fe,ve,me,be,pe=[],ge=[],we=!1,ye=!1,xe=!1;function _e(t,e){ge.forEach((function(i,n){var r=e.children[i.sortableIndex+(t?Number(n):0)];r?e.insertBefore(i,r):e.appendChild(i)}))}function Ee(){pe.forEach((function(t){t!==ve&&t.parentNode&&t.parentNode.removeChild(t)}))}Ut.mount(new function(){function t(){for(var t in this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===t.charAt(0)&&"function"==typeof this[t]&&(this[t]=this[t].bind(this))}return t.prototype={dragStarted:function(t){var e=t.originalEvent;this.sortable.nativeDraggable?x(document,"dragover",this._handleAutoScroll):x(document,this.options.supportPointer?"pointermove":e.touches?"touchmove":"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var e=t.originalEvent;this.options.dragOverBubble||e.rootEl||this._handleAutoScroll(e)},drop:function(){this.sortable.nativeDraggable?_(document,"dragover",this._handleAutoScroll):(_(document,"pointermove",this._handleFallbackAutoScroll),_(document,"touchmove",this._handleFallbackAutoScroll),_(document,"mousemove",this._handleFallbackAutoScroll)),se(),ae(),clearTimeout(S),S=void 0},nulling:function(){ie=Qt=Jt=oe=ne=te=ee=null,re.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,e){var i=this,n=(t.touches?t.touches[0]:t).clientX,r=(t.touches?t.touches[0]:t).clientY,o=document.elementFromPoint(n,r);if(ie=t,e||this.options.forceAutoScrollFallback||m||v||p){le(t,this.options,o,e);var a=L(o,!0);!oe||ne&&n===te&&r===ee||(ne&&se(),ne=setInterval((function(){var o=L(document.elementFromPoint(n,r),!0);o!==a&&(a=o,ae()),le(t,i.options,o,e)}),10),te=n,ee=r)}else{if(!this.options.bubbleScroll||L(o,!0)===O())return void ae();le(t,this.options,L(o,!1),!1)}}},l(t,{pluginName:"scroll",initializeByDefault:!0})}),Ut.mount(he,ce),Ut.mount(new function(){function t(t){for(var e in this)"_"===e.charAt(0)&&"function"==typeof this[e]&&(this[e]=this[e].bind(this));t.options.avoidImplicitDeselect||(t.options.supportPointer?x(document,"pointerup",this._deselectMultiDrag):(x(document,"mouseup",this._deselectMultiDrag),x(document,"touchend",this._deselectMultiDrag))),x(document,"keydown",this._checkKeyDown),x(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,avoidImplicitDeselect:!1,setData:function(e,i){var n="";pe.length&&fe===t?pe.forEach((function(t,e){n+=(e?", ":"")+t.textContent})):n=i.textContent,e.setData("Text",n)}}}return t.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(t){ve=t.dragEl},delayEnded:function(){this.isMultiDrag=~pe.indexOf(ve)},setupClone:function(t){var e=t.sortable,i=t.cancel;if(this.isMultiDrag){for(var n=0;n<pe.length;n++)ge.push(K(pe[n])),ge[n].sortableIndex=pe[n].sortableIndex,ge[n].draggable=!1,ge[n].style["will-change"]="",D(ge[n],this.options.selectedClass,!1),pe[n]===ve&&D(ge[n],this.options.chosenClass,!1);e._hideClone(),i()}},clone:function(t){var e=t.dispatchSortableEvent,i=t.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||pe.length&&fe===t.sortable&&(_e(!0,t.rootEl),e("clone"),i()))},showClone:function(t){var e=t.cloneNowShown,i=t.cancel;this.isMultiDrag&&(_e(!1,t.rootEl),ge.forEach((function(t){T(t,"display","")})),e(),be=!1,i())},hideClone:function(t){var e=this,i=t.cloneNowHidden,n=t.cancel;this.isMultiDrag&&(ge.forEach((function(t){T(t,"display","none"),e.options.removeCloneOnHide&&t.parentNode&&t.parentNode.removeChild(t)})),i(),be=!0,n())},dragStartGlobal:function(){!this.isMultiDrag&&fe&&fe.multiDrag._deselectMultiDrag(),pe.forEach((function(t){t.sortableIndex=B(t)})),pe=pe.sort((function(t,e){return t.sortableIndex-e.sortableIndex})),xe=!0},dragStarted:function(t){var e=this,i=t.sortable;if(this.isMultiDrag){if(this.options.sort&&(i.captureAnimationState(),this.options.animation)){pe.forEach((function(t){t!==ve&&T(t,"position","absolute")}));var n=A(ve,!1,!0,!0);pe.forEach((function(t){t!==ve&&R(t,n)})),ye=!0,we=!0}i.animateAll((function(){ye=!1,we=!1,e.options.animation&&pe.forEach((function(t){U(t)})),e.options.sort&&Ee()}))}},dragOver:function(t){var e=t.completed,i=t.cancel;ye&&~pe.indexOf(t.target)&&(e(!1),i())},revert:function(t){var e=t.fromSortable,i=t.rootEl,n=t.sortable,r=t.dragRect;pe.length>1&&(pe.forEach((function(t){n.addAnimationState({target:t,rect:ye?A(t):r}),U(t),t.fromRect=r,e.removeAnimationState(t)})),ye=!1,function(t,e){pe.forEach((function(i,n){var r=e.children[i.sortableIndex+(t?Number(n):0)];r?e.insertBefore(i,r):e.appendChild(i)}))}(!this.options.removeCloneOnHide,i))},dragOverCompleted:function(t){var e=t.sortable,i=t.isOwner,n=t.activeSortable,r=t.parentEl,o=t.putSortable,a=this.options;if(t.insertion){if(i&&n._hideClone(),we=!1,a.animation&&pe.length>1&&(ye||!i&&!n.options.sort&&!o)){var s=A(ve,!1,!0,!0);pe.forEach((function(t){t!==ve&&(R(t,s),r.appendChild(t))})),ye=!0}if(!i)if(ye||Ee(),pe.length>1){var l=be;n._showClone(e),n.options.animation&&!be&&l&&ge.forEach((function(t){n.addAnimationState({target:t,rect:me}),t.fromRect=me,t.thisAnimationDuration=null}))}else n._showClone(e)}},dragOverAnimationCapture:function(t){var e=t.dragRect,i=t.isOwner,n=t.activeSortable;if(pe.forEach((function(t){t.thisAnimationDuration=null})),n.options.animation&&!i&&n.multiDrag.isMultiDrag){me=l({},e);var r=C(ve,!0);me.top-=r.f,me.left-=r.e}},dragOverAnimationComplete:function(){ye&&(ye=!1,Ee())},drop:function(t){var e=t.originalEvent,i=t.rootEl,n=t.parentEl,r=t.sortable,o=t.dispatchSortableEvent,a=t.oldIndex,s=t.putSortable,l=s||this.sortable;if(e){var u=this.options,c=n.children;if(!xe)if(u.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),D(ve,u.selectedClass,!~pe.indexOf(ve)),~pe.indexOf(ve))pe.splice(pe.indexOf(ve),1),de=null,q({sortable:r,rootEl:i,name:"deselect",targetEl:ve,originalEvent:e});else{if(pe.push(ve),q({sortable:r,rootEl:i,name:"select",targetEl:ve,originalEvent:e}),e.shiftKey&&de&&r.el.contains(de)){var h=B(de),d=B(ve);~h&&~d&&h!==d&&function(){var t,o;d>h?(o=h,t=d):(o=d,t=h+1);for(var a=u.filter;o<t;o++)~pe.indexOf(c[o])||k(c[o],u.draggable,n,!1)&&(a&&("function"==typeof a?a.call(r,e,c[o],r):a.split(",").some((function(t){return k(c[o],t.trim(),n,!1)})))||(D(c[o],u.selectedClass,!0),pe.push(c[o]),q({sortable:r,rootEl:i,name:"select",targetEl:c[o],originalEvent:e})))}()}else de=ve;fe=l}if(xe&&this.isMultiDrag){if(ye=!1,(n[Y].options.sort||n!==i)&&pe.length>1){var f=A(ve),v=B(ve,":not(."+this.options.selectedClass+")");if(!we&&u.animation&&(ve.thisAnimationDuration=null),l.captureAnimationState(),!we&&(u.animation&&(ve.fromRect=f,pe.forEach((function(t){if(t.thisAnimationDuration=null,t!==ve){var e=ye?A(t):f;t.fromRect=e,l.addAnimationState({target:t,rect:e})}}))),Ee(),pe.forEach((function(t){c[v]?n.insertBefore(t,c[v]):n.appendChild(t),v++})),a===B(ve))){var m=!1;pe.forEach((function(t){t.sortableIndex===B(t)||(m=!0)})),m&&(o("update"),o("sort"))}pe.forEach((function(t){U(t)})),l.animateAll()}fe=l}(i===n||s&&"clone"!==s.lastPutMode)&&ge.forEach((function(t){t.parentNode&&t.parentNode.removeChild(t)}))}},nullingGlobal:function(){this.isMultiDrag=xe=!1,ge.length=0},destroyGlobal:function(){this._deselectMultiDrag(),_(document,"pointerup",this._deselectMultiDrag),_(document,"mouseup",this._deselectMultiDrag),_(document,"touchend",this._deselectMultiDrag),_(document,"keydown",this._checkKeyDown),_(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(t){if(!(void 0!==xe&&xe||fe!==this.sortable||t&&k(t.target,this.options.draggable,this.sortable.el,!1)||t&&0!==t.button))for(;pe.length;){var e=pe[0];D(e,this.options.selectedClass,!1),pe.shift(),q({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:e,originalEvent:t})}},_checkKeyDown:function(t){t.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(t){t.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},l(t,{pluginName:"multiDrag",utils:{select:function(t){var e=t.parentNode[Y];e&&e.options.multiDrag&&!~pe.indexOf(t)&&(fe&&fe!==e&&(fe.multiDrag._deselectMultiDrag(),fe=e),D(t,e.options.selectedClass,!0),pe.push(t))},deselect:function(t){var e=t.parentNode[Y],i=pe.indexOf(t);e&&e.options.multiDrag&&~i&&(D(t,e.options.selectedClass,!1),pe.splice(i,1))}},eventProperties:function(){var t,e=this,i=[],n=[];return pe.forEach((function(t){var r;i.push({multiDragElement:t,index:t.sortableIndex}),r=ye&&t!==ve?-1:ye?B(t,":not(."+e.options.selectedClass+")"):B(t),n.push({multiDragElement:t,index:r})})),{items:(t=pe,function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return a(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?a(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),clones:[].concat(ge),oldIndicies:i,newIndicies:n}},optionListeners:{multiDragKey:function(t){return"ctrl"===(t=t.toLowerCase())?t="Control":t.length>1&&(t=t.charAt(0).toUpperCase()+t.substr(1)),t}}})});const ze=class{constructor(i){t(this,i),this.itemsReordered=e(this,"itemsReordered",7),this.ezSelectItens=e(this,"ezSelectItens",7),this.ezDoubleClick=e(this,"ezDoubleClick",7),this.ezChoose=e(this,"ezChoose",7),this.filterTerm="",this.title=void 0,this.hideHeader=!1,this.hideTotalizer=!1,this.group="default",this.dataSource=[],this.idSortableList="DEFAULT_LIST",this.entityLabel=void 0,this.entityLabelPlural=void 0,this.emptyMessage=void 0,this.hoverFeedback=!0,this.enableMultipleSelection=!1,this.removeItensMoved=!1,this.itemRightSlotBuilder=void 0,this.itemLeftSlotBuilder=void 0,this.selectedItems=new Set}async clearSelection(){this.selectedItems.clear(),this.dataSource.forEach((t=>{var e;const i=null===(e=this.el.shadowRoot)||void 0===e?void 0:e.querySelector(`[data-key="${t.id}"]`);i&&(Ut.utils.deselect(i),t.selected=!1)})),this.ezSelectItens.emit([])}async componentWillLoad(){this.i18n=await o(),this.emptyMessage=this.i18n("ez-sortable-list.emptyMessage"),this.entityLabel=this.i18n("ez-sortable-list.entityLabel"),this.entityLabelPlural=this.i18n("ez-sortable-list.entityLabelPlural")}componentDidLoad(){this.initSortable()}componentDidRender(){this.selectPredefinedItens()}initSortable(){this._sortableInstance&&this._sortableInstance.destroy(),this._sortableInstance=new Ut(this.el.shadowRoot.querySelector(`#${this.idSortableList}`),{group:{name:this.group,pull:!0,put:!0},ghostClass:"ghost",dragClass:"dragging",animation:15,multiDrag:this.enableMultipleSelection,avoidImplicitDeselect:this.enableMultipleSelection,selectedClass:"selected",filter:".filtered",swapThreshold:.5,multiDragKey:"Control",removeCloneOnHide:!0,onEnd:t=>this.handleReorderEvent(t),onSelect:t=>this.handleSelect(t),onDeselect:t=>this.handleDeselect(t),onSort:t=>this.handleSortItem(t),onChoose:t=>this.ezChoose.emit(t)})}selectPredefinedItens(){this.dataSource.forEach((t=>{var e;const i=null===(e=this.el.shadowRoot)||void 0===e?void 0:e.querySelector(`[data-key="${t.id}"]`);i&&(this.selectedItems.has(t.id)||!0===t.selected?Ut.utils.select(i):Ut.utils.deselect(i))}))}handleSortItem(t){var e;if(!this.removeItensMoved)return;const i=t.from.getAttribute("id");t.to.getAttribute("id")!==i?((null===(e=t.items)||void 0===e?void 0:e.length)>0?t.items:[t.item]).forEach((t=>t.remove())):t.items=this.removeDuplicateElements(t.items)}removeDuplicateElements(t){const e=new Set;return t.filter((t=>{const i=t.getAttribute("data-key");if(i){if(e.has(i))return t.remove(),!1;e.add(i)}return!0}))}handleSelect(t){this.updateSelection(t.item,!0)}handleDeselect(t){this.updateSelection(t.item,!1)}updateSelection(t,e){const i=t.getAttribute("data-key");if(!i)return;const n=this.dataSource.find((t=>t.id===i));n&&(n.selected=e,e?this.selectedItems.add(i):this.selectedItems.delete(i),this.emitSelectedItems())}emitSelectedItems(){this.ezSelectItens.emit(Array.from(this.selectedItems).map((t=>this.dataSource.find((e=>e.id===t)))).filter(Boolean))}handleReorderEvent(t){var e;const i=((null===(e=t.items)||void 0===e?void 0:e.length)>0?t.items:[t.item]).map((t=>t.getAttribute("data-key"))).filter(Boolean);this.itemsReordered.emit({dataSource:this.dataSource,selectItens:i,from:t.from,to:t.to,newIndex:t.newIndex,newIndicies:t.newIndicies})}handleDoubleClick(t){var e;const i=this.dataSource.find((e=>e.id===t));i&&(null===(e=this.ezDoubleClick)||void 0===e||e.emit(i))}getContainerItemBuilder(t,e,n){var r,o;const a="left"===t?null===(r=this.itemLeftSlotBuilder)||void 0===r?void 0:r.call(this,e):null===(o=this.itemRightSlotBuilder)||void 0===o?void 0:o.call(this,e);if(null!=a)return"string"!=typeof a?i("div",{class:n},a):i("div",{class:n,innerHTML:a})}disconnectedCallback(){this._sortableInstance&&(this._sortableInstance.destroy(),this._sortableInstance=null)}buildTotalizer(){return`${this.i18n("ez-sortable-list.total")} ${this.dataSource.length} ${1===this.dataSource.length?this.entityLabel:this.entityLabelPlural}`}renderItems(){return r.applyStringFilter(this.filterTerm,this.dataSource).map((t=>i("div",{id:`ID_${t.id}`,key:`KEY_${t.id}`,class:{"sortable-item":!0,"hover-feedback":this.hoverFeedback},"data-key":t.id,onDblClick:()=>this.handleDoubleClick(t.id)},!!this.itemLeftSlotBuilder&&this.getContainerItemBuilder("left",t),i("div",{class:"item-content"},i("span",{class:"draggable-icon"}),t.label),!!this.itemRightSlotBuilder&&this.getContainerItemBuilder("right",t))))}handleFilterChanged(t){t.stopPropagation(),t.preventDefault(),this.filterTerm=t.detail}renderTotalizer(){if(!this.hideTotalizer)return i("div",{class:"sortable-totalizer"},this.buildTotalizer())}renderHeader(){if(!this.hideHeader)return i("div",{class:"sortable-header"},i("span",{class:"sortable-label"},this.title),i("ez-filter-input",{label:`${this.i18n("ez-sortable-list.search")} ${this.entityLabel}`,mode:"slim",onEzChange:t=>this.handleFilterChanged(t)}))}render(){return i("div",{class:"sortable-content"},this.renderHeader(),i("div",{class:`sortable-list ${this.dataSource.length<1?"empty-content":""} list-scroller--fix`,"data-content":this.emptyMessage,style:{"--empty-content":`"${this.emptyMessage}"`},id:this.idSortableList,key:this.idSortableList},this.renderItems()),this.renderTotalizer())}get el(){return n(this)}};ze.style=':host{--ez-sortable-list__host--z-index:var(--visible, 1);--ez-sortable-list__host--border-radius:var(--border--radius-medium, 12px);--ez-sortable-list__host--padding:var(--space--medium, 12px);--ez-sortable-list__item--margin:0 var(--space--small, 6px);--ez-sortable-list__item--padding:var(--space--3xs, 6px);--ez-sortable-list__item--color:var(--title--primary, #2b3a54);--ez-sortable-list__item--font-family:var(--font-pattern, "Roboto");--ez-sortable-list__item--font-size:var(--text--medium, 14px);--ez-sortable-list__selected-item--border-radius:var(--border--radius-small, 6px);--ez-sortable-list__selected-item--background-color:var(--color--primary-300, #E2F4EF);--ez-sortable-list__selectable--padding-right:var(--space--small, 6px);--ez-sortable-list__selectable--padding-left:var(--space--small, 6px);--ez-sortable-list__icon--color:#AFB6C0;--ez-sortable-list__draggable-icon--image:url(\'data:image/svg+xml;utf8,<svg width="18" height="18" viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg"><path d="m 6.75,2.25 h 1.5 v 1.5 h -1.5 z m 3,0 h 1.5 v 1.5 h -1.5 z m -3,3 h 1.5 v 1.5 h -1.5 z m 3,0 h 1.5 v 1.5 h -1.5 z m -3,3 h 1.5 v 1.5 h -1.5 z m 3,0 h 1.5 v 1.5 h -1.5 z m -3,3 h 1.5 v 1.5 h -1.5 z m 3,0 h 1.5 v 1.5 h -1.5 z m -3,3 h 1.5 v 1.5 h -1.5 z m 3,0 h 1.5 v 1.5 h -1.5 z"/></svg>\');--ez-sortable-list__scrollbar--color-default:var(--scrollbar--default, #626e82);--ez-sortable-list--color-background:var(--scrollbar--background, #E5EAF0);--ez-sortable-list__scrollbar--color-clicked:var(--scrollbar--clicked, #a2abb9);--ez-sortable-list__scrollbar--color-hover:var(--scrollbar--hover, #2B3A54);--ez-sortable-list--border-radius:var(--border--radius-small, 6px);--ez-sortable-list__scrollbar--width:var(--space--small, 6px);max-height:100%;width:100%;background-color:#fff;display:flex;z-index:var(--ez-sortable-list__host--z-index)}.sortable-item{display:flex;justify-content:space-between;font-family:var(--ez-sortable-list__item--font-family);font-size:var(--ez-sortable-list__item--font-size);padding:var(--ez-sortable-list__item--padding) 0px;margin:var(--ez-sortable-list__item--margin)}.hover-feedback:hover{background-color:var(--background--medium);border-radius:var(--border--radius-regular)}.sortable-item.dragging{background:#FFFFFF;border:1px solid #008561;box-shadow:0px 0px 16px rgba(0, 38, 111, 0.122);border-radius:6px}.sortable-list{padding:0;margin:0;width:100%;height:100%;max-height:100%;display:flex;flex-direction:column;overflow-y:auto;overflow-x:hidden;color:var(--text-color);scrollbar-color:var(--ez-sortable-list__scrollbar--color-clicked) var(--ez-sortable-list--color-background)}.sortable-list.empty-content::after{content:attr(data-content);display:block;font-size:16px;font-weight:400;color:#AFB6C0;margin:auto;padding:8px}.list-scroller--fix{scrollbar-width:thin}.list-scroller--hover{scrollbar-width:none}.item-content{display:flex;flex-grow:1;flex-direction:row}.empty-message{font-weight:var(--text-weight--medium);font-size:var(--text--medium);color:var(--text--secondary);margin:auto}.draggable-icon{align-items:flex-start;display:flex;outline:none;border:none;background-color:unset}.draggable-icon::after{content:\'\';display:flex;width:18px;height:18px;background-color:var(--ez-sortable-list__icon--color);-webkit-mask-image:var(--ez-sortable-list__draggable-icon--image);mask-image:var(--ez-sortable-list__draggable-icon--image)}.selectable{cursor:pointer;padding-right:var(--ez-sortable-list__selectable--padding-right);padding-left:var(--ez-sortable-list__selectable--padding-left)}.selected{background:var(--ez-sortable-list__selected-item--background-color);border-radius:var(--ez-sortable-list__selected-item--border-radius)}.list-fix::-webkit-scrollbar-thumb{background-color:var(--ez-sortable-list__scrollbar--color-default);border-radius:var(--ez-sortable-list--border-radius)}.list-fix::-webkit-scrollbar-thumb:active{background-color:var(--ez-sortable-list__scrollbar--color-clicked)}.list-fix::-webkit-scrollbar{width:var(--ez-sortable-list__scrollbar--width);display:none}.list-hover::-webkit-scrollbar-thumb:hover{background-color:var(--ez-sortable-list__scrollbar--color-hover)}.list-hover:hover{scrollbar-width:thin}.list-hover:hover::-webkit-scrollbar{display:block}.ghost{opacity:.5;background:#589f7b}.sortable-content{display:flex;justify-content:space-between;gap:10px;flex-direction:column;border:var(--border--small) var(--color--strokes);border-radius:var(--border--radius-medium);width:100%;height:400px;min-width:40%}@media (max-height: 630px){.sortable-content{height:270px}}.sortable-header{background:var(--background--body);padding:10px;border-radius:var(--border--radius-medium) var(--border--radius-medium) 0 0}.sortable-label{font-weight:var(--text-weight--large);font-size:var(--text--medium);color:var(--title--primary);margin-bottom:10px;display:block}.sortable-totalizer{padding:5px 10px;background:var(--background--body);font-weight:var(--text-weight--medium);font-size:var(--text--medium);color:var(--text--primary);border-radius:0 0 var(--border--radius-medium) var(--border--radius-medium)}';export{ze as ez_sortable_list}
@@ -0,0 +1 @@
1
+ import{r as i,c as s,h as t,g as e}from"./p-23a36bb6.js";import{NumberUtils as h,StringUtils as r,ElementIDUtils as n}from"@sankhyalabs/core";import{C as a}from"./p-ec7db713.js";import{i as o}from"./p-3b7d9f30.js";const l=class{constructor(t){i(this,t),this.ezChange=s(this,"ezChange",7),this.ezStartChange=s(this,"ezStartChange",7),this.ezCancelWaitingChange=s(this,"ezCancelWaitingChange",7),this._focused=!1,this._changePending=!1,this._valuePromiseCallbacks=[],this._value=void 0,this.label=void 0,this.value=void 0,this.enabled=!0,this.required=!1,this.canShowError=!0,this.errorMessage=void 0,this.allowNegative=!0,this.precision=void 0,this.prettyPrecision=void 0,this.mode="regular",this.size="default",this.autoFocus=!1,this.alternativePlaceholder=void 0}async setFocus(i){this._textInput.setFocus(i)}async setBlur(){this._textInput.setBlur()}async isInvalid(){return"string"==typeof this.errorMessage&&""!==this.errorMessage.trim()}async getValueAsync(){return this._changePending?new Promise((i=>{this._valuePromiseCallbacks.push(i)})):Promise.resolve(this.value)}observeLabel(){this._textInput&&(this._textInput.label=this.label)}observeErrorMessage(){var i;this._textInput&&(this._textInput.errorMessage=this.errorMessage,(null===(i=this.errorMessage)||void 0===i?void 0:i.trim())||this.setInputValue())}observeValue(i,s){this._textInput&&i!=s&&this.handleNewValue(i,s),this._changePending=!1}observePrecision(){this._textInput&&this.setInputValue()}handleNewValue(i,s){const t=this.validateValue(i),e=this.validateValue(s);if(null===t&&(this._value=""),t===e)return;const h=this.getTextValue(t)||"",r=this.getParsedNumber(h);(this._value||"")===h||void 0===r&&this._focused||(this._value=h,this._focused=!1,this.errorMessage=""),this.ezChange.emit(null===t?void 0:t)}validateValue(i){return isNaN(i)||void 0===i?null:i}getTextValue(i){if(null==i)return;let s=this.precision>=0?h.format(i.toString(),Number(this.precision),Number(this.prettyPrecision)):i.toString();return 0===this.precision?r.replaceAll(s,".",""):s}changeValue(i){this.errorMessage="",this.value!=i?this.value=void 0===i?null:i:(this.setInputValue(),this.ezCancelWaitingChange.emit())}setError(i){this.value=null,this.errorMessage=i,this.ezCancelWaitingChange.emit()}handleBlur(){if(this._changePending)try{const i=this.getParsedNumber();if(void 0!==i&&isNaN(i))this.setError(this.i18n("ez-classic-number-input.invalidNumber"));else try{this.changeValue(i)}catch(i){return void this.setError(i.message)}}finally{for(const i of this._valuePromiseCallbacks)i(this.value);this._valuePromiseCallbacks=[]}}handleInput(){this.getParsedNumber()!==this.value&&(this._focused=!0,this._changePending=!0,this.ezStartChange.emit({waitmessage:"",blocking:!1}))}getParsedNumber(i=this._textInput.value){return(null==i?void 0:i.trim())?h.stringToNumber(i):void 0}setInputValue(){const i=this.getTextValue(this.value)||"";(this._value||"")!==i&&(this._value=i,this._textInput.value=this._value)}async componentWillLoad(){this.i18n=await o()}componentDidLoad(){a.applyVarsTextInput(this._elem,this._textInput),this.setInputValue(),this.autoFocus&&requestAnimationFrame((()=>{this.setFocus({selectText:!0})}))}render(){return n.addIDInfoIfNotExists(this._elem,"input"),t("ez-classic-input",{class:"number__input","data-element-id":n.getInternalIDInfo("textInput"),ref:i=>this._textInput=i,"data-slave-mode":"true",label:this.label,onBlur:()=>this.handleBlur(),onInput:()=>this.handleInput(),enabled:this.enabled,errorMessage:this.errorMessage,size:this.size,value:this._value,required:this.required,onEzChange:i=>i.stopPropagation()})}get _elem(){return e(this)}static get watchers(){return{label:["observeLabel"],errorMessage:["observeErrorMessage"],value:["observeValue"],precision:["observePrecision"],prettyPrecision:["observePrecision"]}}};l.style=":host{--ez-classic-number-input__min-width:0px;--ez-classic-number-input__max-width:100%;display:block;width:100%}.number__input{height:100%;min-width:var(--ez-classic-number-input__min-width);max-width:var(--ez-classic-number-input__max-width)}";export{l as ez_classic_number_input}
@@ -0,0 +1 @@
1
+ import{r as e,c as n,h as t,H as i,g as a}from"./p-23a36bb6.js";import{StringUtils as o,ElementIDUtils as d}from"@sankhyalabs/core";const r=class{constructor(t){e(this,t),this.ezClick=n(this,"ezClick",7),this.item=void 0,this.enableKey=!0,this.compacted=!1}componentWillRender(){this.createDetailList()}componentDidLoad(){var e,n;const t={id:o.toCamelCase((null===(e=this.item)||void 0===e?void 0:e.key)||(null===(n=this.item)||void 0===n?void 0:n.title)||"")};d.addIDInfo(this._element,null,t)}createDetailList(){var e,n,t;this._details={detailsLeft:[],detailsRight:[]};let i=0;if(null===(e=this.item)||void 0===e?void 0:e.details)for(const e in this.item.details)i<3?this._details.detailsLeft.push({label:e,value:null===(n=this.item.details[e])||void 0===n?void 0:n.toString()}):this._details.detailsRight.push({label:e,value:null===(t=this.item.details[e])||void 0===t?void 0:t.toString()}),i++}buildDetailContentTitle(e){var n,t;if(null!=(null==e?void 0:e.label)||null!=(null==e?void 0:e.value))return`${null===(n=o.replaceAccentuatedCharsHtmlEntities(null==e?void 0:e.label))||void 0===n?void 0:n.replace(/<[^>]*>/g,"")}: ${null===(t=o.replaceAccentuatedCharsHtmlEntities(null==e?void 0:e.value))||void 0===t?void 0:t.replace(/<[^>]*>/g,"")}`}buildDetailContent(e){return t("div",{class:"card-item__detail "+(this.compacted?"":"card-item__detail-default"),title:this.buildDetailContentTitle(e)},t("label",{class:"card-item__detail-label "+(this.compacted?"card-item__detail-label-compacted":"")},`${e.label}: `)," ",t("label",{class:"card-item__detail-value "+(this.compacted?"card-item__detail-value-compacted":""),innerHTML:e.value}))}render(){return t(i,null,this.item&&t("div",{class:`card-item ${this.compacted?"card-item__compacted":"card-item__expanded"} `,onClick:()=>{this.ezClick.emit(this.item)}},t("div",{class:"ez-row card-item__content"},t("div",{class:"ez-col ez-col--sd-11 card-item__details"},t("label",{class:"card-item__title "+(this.compacted?"card-item__title-compacted":"")},this.enableKey&&t("span",{class:"card-item__key",innerHTML:this.item.key}),t("span",{innerHTML:this.item.title})),t("div",{class:this.compacted?"card-item__details-container_compacted":"card-item__details-container_default"},t("div",{class:"card-item__details-container__left "+(this.compacted?"card-item__details-container__left-compacted":"")},this._details.detailsLeft.map((e=>this.buildDetailContent(e)))),t("div",{class:"card-item__details-container__right "+(this.compacted?"card-item__details-container__right-compacted":"")},this._details.detailsRight.map((e=>this.buildDetailContent(e)))))),t("div",{class:"ez-col ez-col--sd-1 card-item__details-slot"},t("slot",{name:"rightSlot"})))))}get _element(){return a(this)}};r.style=":host { \n /*@doc Define o tamanho da fonte do componente.*/\n --ez-card-item--font-size: var(--text--medium, 14px);\n\n /*@doc Define o tamanho da fonte do componente no modo compacto.*/\n --ez-card-item--font-size-compacted: var(--text--extra-small, 10px);\n\n /*@doc Define a família da fonte do componente.*/\n --ez-card-item--font-family: var(--font-pattern, Arial);\n\n /*@doc Define o peso da fonte do componente.*/\n --ez-card-item--font-weight: var(--font-weight--semi-bold, 600);\n\n /*@doc Define o peso da fonte do title do componente.*/\n --ez-card-item--font-weight-large: var(--font-weight--semi-bold, 600);\n\n /*@doc Define a cor da fonte do componente.*/\n --ez-card-item--color: var(--text--primary, #626e82);\n\n /*@doc Define a cor da fonte da key do componente.*/\n --ez-card-item__key--color: var(--text--primary, #626e82);\n\n /*@doc Define a cor da fonte do label do detalhe do componente.*/\n --ez-card-item__detail-label--color: var(--text--secondary, #A2ABB9);\n\n /*@doc Define a cor da fonte do valor do detalhe do componente.*/\n --ez-card-item__detail-value--color: var(--color--petroleum-500, #404E65);\n\n /*@doc Define o espaçamento inferior dos detalhes do componente.*/\n --ez-card-item__detail--padding-bottom: var(--space--extra-small, 3px);\n\n /*@doc Define o espaçamento inferior do title do componente.*/\n --ez-card-item__title--padding-bottom: var(--space--extra-small, 3px);\n\n /*@doc Define a cor do highlight / marcação nos textos do componente.*/\n --ez-card-item__highlight--color: var(--color--primary-300, #E2F4EF);\n\n /*@doc Define o peso da fonte do componente.*/\n --ez-card-item--detail-label--font-weight: var(--text-weight--large, 400);\n\n width: 100%;\n display: flex;\n cursor: pointer;\n}\n\n.card-item {\n display: flex;\n flex-direction: column;\n width: 100%;\n cursor: pointer;\n z-index: 0;\n position: relative;\n container-type: inline-size;\n container-name: box;\n white-space: pre-line;\n}\n\n.card-item__detail{\n display: inline-block;\n width: 100%;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n opacity: 0.95;\n}\n\n\n\n.card-item__expanded {\n padding: var(--space--medium);\n}\n\n.card-item:hover {\n background: #F0F3F7;\n border-radius: 12px;\n}\n\n.card-item__title {\n display: flex;\n align-items: center;\n line-height: 18px;\n cursor: pointer;\n\n /*public*/\n font-size: var(--ez-card-item--font-size);\n font-family: var(--ez-card-item--font-family);\n font-weight: var(--ez-card-item--font-weight-large);\n color: var(--ez-card-item--color);\n padding-bottom: var(--ez-card-item__title--padding-bottom);\n gap: var(--space--small, 6px);\n}\n\n.card-item__key {\n /*public*/\n color: var(--ez-card-item__key--color);\n}\n\n.card-item__details {\n display: flex;\n flex-direction: column;\n cursor: pointer;\n justify-content: space-between;\n width: 100%;\n}\n\n.card-item__details-container__left {\n display: flex;\n flex-direction: column;\n white-space: pre-line;\n cursor: pointer;\n width: 50%;\n}\n\n.card-item__details-container__right {\n display: flex;\n flex-direction: column;\n white-space: pre-line;\n width: 50%;\n cursor: pointer;\n}\n\n.card-item__detail{\n cursor: pointer;\n}\n\n.card-item__detail-default:not(:last-child) {\n padding-bottom: var(--ez-card-item__detail--padding-bottom);\n}\n\n.card-item__detail-label {\n cursor: pointer;\n\n /*public*/\n font-size: var(--ez-card-item--font-size);\n font-family: var(--ez-card-item--font-family);\n font-weight: var(--ez-card-item--detail-label--font-weight);\n}\n\n.card-item__detail-value {\n cursor: pointer;\n line-break: anywhere;\n\n /*public*/\n font-size: var(--ez-card-item--font-size);\n font-family: var(--ez-card-item--font-family);\n font-weight: var(--ez-card-item--font-weight);\n color: var(--ez-card-item__detail-value--color);\n}\n\n.card-item__highlight {\n position: relative;\n border-radius: 8px;\n z-index: -1;\n\n /*public*/\n background-color: var(--ez-card-item__highlight--color);\n outline: 2px solid var(--ez-card-item__highlight--color);\n box-shadow: -4px 0px 0px 0px var(--ez-card-item__highlight--color), \n 4px 0px 0px 0px var(--ez-card-item__highlight--color);\n}\n\n.card-item__content{\n display: flex;\n align-items: center;\n}\n\n.card-item__details-container_default{\n display: flex;\n}\n\n.card-item__details-slot{\n margin-left: auto;\n}\n\n/* Modo compacto */\n.card-item__compacted {\n padding: var(--space--2xs) var(--space--small);\n}\n\n.card-item__detail-label-compacted {\n font-size: var(--ez-card-item--font-size-compacted);\n}\n\n.card-item__detail-value-compacted {\n font-size: var(--ez-card-item--font-size-compacted);\n}\n\n.card-item__title-compacted {\n font-size: var(--ez-card-item--font-size-compacted);\n}\n\n.card-item__details-container__left-compacted{\n width: 100%;\n}\n\n.card-item__details-container__right-compacted {\n width: 100%;\n}\n\n\n@container box (max-width: 550px) {\n .card-item__details {\n flex-direction: column;\n }\n\n .card-item__details-container__left {\n width: 100%;\n }\n \n .card-item__details-container__right {\n width: 100%;\n }\n}\n\n@container box (max-width: 200px) {\n .card-item__title {\n font-size: 10px;\n }\n\n .card-item__detail-label {\n font-size: 10px;\n }\n\n .card-item__detail-value {\n font-size: 10px;\n }\n\n}";export{r as ez_card_item}
@@ -0,0 +1 @@
1
+ import{h as e,r as a,c as l,g as n,H as i}from"./p-23a36bb6.js";import{ObjectUtils as o,StringUtils as t,UserInterface as r,ElementIDUtils as s}from"@sankhyalabs/core";import{F as d}from"./p-47e4a8ce.js";import{C as c}from"./p-b853763b.js";import{g as m}from"./p-3b7d9f30.js";function u(a,l,n,i,o,t){return e("div",{class:"ez-col ez-col--sd-12 ez-align--middle ez-padding-top--medium ez-padding-bottom--medium ez-size-height--full "+((null==t?void 0:t.formLayout)===d.CLASSIC_CASCADE||(null==t?void 0:t.formLayout)===d.CLASSIC_SIDE_BY_SIDE?"ez-margin-top--small":"")},e("ez-check",{enabled:!n,label:l,mode:o?c.SWITCH:c.REGULAR,"data-field-name":a,"data-context-name":i,key:a}))}function v(a,l,n,i,o,t,r,s,c,m){var u;return e("div",{class:"ez-col ez-col--sd-12"},(null==m?void 0:m.formLayout)===d.CLASSIC_CASCADE||(null==m?void 0:m.formLayout)===d.CLASSIC_SIDE_BY_SIDE?e("ez-classic-number-input",{class:"ez-input__no-margin",enabled:!n,label:l,precision:i,prettyPrecision:o,"data-field-name":a,"data-context-name":t,key:a,canShowError:r,size:null!==(u=null==m?void 0:m.size)&&void 0!==u?u:"small",required:c}):e("ez-number-input",{class:"ez-input__no-margin",enabled:!n,label:l,precision:i,prettyPrecision:o,"data-field-name":a,"data-context-name":t,key:a,canShowError:r}))}const p=({name:a,label:l,readOnly:n,contextName:i,canShowError:o,props:t,required:r},s)=>{var c;return e("div",{class:"ez-col ez-col--sd-12"},(null==s?void 0:s.formLayout)===d.CLASSIC_CASCADE||(null==s?void 0:s.formLayout)===d.CLASSIC_SIDE_BY_SIDE?e("ez-classic-input",{class:"ez-input__no-margin",label:l,"data-field-name":a,"data-context-name":i,key:a,enabled:!n,mask:null==t?void 0:t.mask,"clean-value-mask":null==t?void 0:t.cleanValueMask,size:null!==(c=null==s?void 0:s.size)&&void 0!==c?c:"small",required:r}):e("ez-text-input",{class:"ez-input__no-margin",label:l,"data-field-name":a,"data-context-name":i,key:a,enabled:!n,canShowError:o,mask:null==t?void 0:t.mask,"clean-value-mask":null==t?void 0:t.cleanValueMask}))},h=new Map;h.set(r.CHECKBOX,((e,a)=>u(e.name,e.label,e.readOnly,e.contextName,!1,a))),h.set(r.SWITCH,((e,a)=>u(e.name,e.label,e.readOnly,e.contextName,!0,a))),h.set(r.OPTIONSELECTOR,(({name:a,label:l,readOnly:n,required:i,props:o,contextName:t,canShowError:r},s)=>{var c;const m=(null==s?void 0:s.formLayout)===d.CLASSIC_CASCADE||(null==s?void 0:s.formLayout)===d.CLASSIC_SIDE_BY_SIDE,u=null==o?void 0:o.options;let v;if("string"==typeof u){const e=JSON.parse(u);v=Object.keys(e).map((a=>({value:a,label:e[a]})))}else v=u;return e("div",{class:"ez-col ez-col--sd-12"},m?e("ez-classic-combo-box",{class:"ez-input__no-margin",enabled:!n,suppressEmptyOption:i,label:l,"data-field-name":a,"data-context-name":t,key:a,options:v,size:null!==(c=null==s?void 0:s.size)&&void 0!==c?c:"small",required:i}):e("ez-combo-box",{class:"ez-input__no-margin",enabled:!n,suppressEmptyOption:i,label:l,"data-field-name":a,"data-context-name":t,key:a,options:v,canShowError:r}))})),h.set(r.DATE,(({name:a,label:l,readOnly:n,canShowError:i,required:o},t)=>{var r;return e("div",{class:"ez-col ez-col--sd-12"},(null==t?void 0:t.formLayout)===d.CLASSIC_CASCADE||(null==t?void 0:t.formLayout)===d.CLASSIC_SIDE_BY_SIDE?e("ez-classic-date-input",{class:"ez-input__no-margin",enabled:!n,label:l,"data-field-name":a,key:a,canShowError:i,size:null!==(r=null==t?void 0:t.size)&&void 0!==r?r:"small",required:o}):e("ez-date-input",{class:"ez-input__no-margin",enabled:!n,label:l,"data-field-name":a,key:a,canShowError:i}))})),h.set(r.TIME,(({name:a,label:l,readOnly:n,canShowError:i,props:o,required:t},r)=>{var s,c,m;return e("div",{class:"ez-col ez-col--sd-12"},(null==r?void 0:r.formLayout)===d.CLASSIC_CASCADE||(null==r?void 0:r.formLayout)===d.CLASSIC_SIDE_BY_SIDE?e("ez-classic-time-input",{class:"ez-input__no-margin",enabled:!n,label:l,"data-field-name":a,key:a,canShowError:i,"show-seconds":null!==(s=null==o?void 0:o.showSeconds)&&void 0!==s&&s,size:null!==(c=null==r?void 0:r.size)&&void 0!==c?c:"small",required:t}):e("ez-time-input",{class:"ez-input__no-margin",enabled:!n,label:l,"data-field-name":a,key:a,canShowError:i,"show-seconds":null!==(m=null==o?void 0:o.showSeconds)&&void 0!==m&&m}))})),h.set(r.ELAPSEDTIME,(({name:a,label:l,readOnly:n,canShowError:i,required:o},t)=>{var r;return e("div",{class:"ez-col ez-col--sd-12"},(null==t?void 0:t.formLayout)===d.CLASSIC_CASCADE||(null==t?void 0:t.formLayout)===d.CLASSIC_SIDE_BY_SIDE?e("ez-classic-time-input",{class:"ez-input__no-margin",enabled:!n,label:l,"data-field-name":a,key:a,canShowError:i,showSeconds:!0,size:null!==(r=null==t?void 0:t.size)&&void 0!==r?r:"small",required:o}):e("ez-time-input",{class:"ez-input__no-margin",enabled:!n,label:l,"data-field-name":a,key:a,canShowError:i,showSeconds:!0}))})),h.set(r.DATETIME,(({name:a,label:l,readOnly:n,contextName:i,canShowError:o,required:t},r)=>{var s;return e("div",{class:"ez-col ez-col--sd-12"},(null==r?void 0:r.formLayout)===d.CLASSIC_CASCADE||(null==r?void 0:r.formLayout)===d.CLASSIC_SIDE_BY_SIDE?e("ez-classic-date-time-input",{class:"ez-input__no-margin",enabled:!n,label:l,"data-field-name":a,"data-context-name":i,key:a,canShowError:o,size:null!==(s=null==r?void 0:r.size)&&void 0!==s?s:"small",required:t}):e("ez-date-time-input",{class:"ez-input__no-margin",enabled:!n,label:l,"data-field-name":a,"data-context-name":i,key:a,canShowError:o}))})),h.set(r.FILE,(({name:a,label:l,readOnly:n,contextName:i,props:t})=>{const r=o.removeEmptyValues({subTitle:t.subTitle,requestHeaders:Object.assign(Object.assign({},t.STORAGESTRATEGY&&{STORAGESTRATEGY:t.STORAGESTRATEGY}),t.INTERNAL_FILENAME&&{INTERNAL_FILENAME:t.INTERNAL_FILENAME})});return e("div",{class:"ez-col ez-col--sd-12"},e("ez-upload",Object.assign({enabled:!n,label:l,"data-field-name":a,"data-context-name":i,key:a},r)))})),h.set(r.DECIMALNUMBER,(({name:e,label:a,readOnly:l,props:n,contextName:i,canShowError:o,required:t},r)=>{var s,d;const c=Number(null!==(s=null==n?void 0:n.precision)&&void 0!==s?s:2);return v(e,a,l,c,Number(null!==(d=null==n?void 0:n.prettyPrecision)&&void 0!==d?d:c),i,o,0,t,r)})),h.set(r.INTEGERNUMBER,(({name:e,label:a,readOnly:l,contextName:n,canShowError:i,props:o,required:t},r)=>v(e,a,l,0,0,n,i,0,t,r))),h.set(r.SEARCH,(({name:a,label:l,readOnly:n,required:i,contextName:o,canShowError:r,optionLoader:s,props:c},m)=>{var u,v,p;const h=!t.isEmpty(null==c?void 0:c.DESCRIPTIONFIELD);return e("div",{class:"ez-col ez-col--sd-12"},(null==m?void 0:m.formLayout)===d.CLASSIC_CASCADE||(null==m?void 0:m.formLayout)===d.CLASSIC_SIDE_BY_SIDE?e("ez-classic-search",{class:"ez-input__no-margin",enabled:!n,suppressEmptyOption:i,label:l,"data-field-name":a,"data-context-name":o,key:a,canShowError:r,optionLoader:s,ignoreLimitCharsToSearch:null!==(u=null==c?void 0:c.ignoreLimitCharsToSearch)&&void 0!==u&&u,hideDescriptionInput:!h,size:null!==(v=null==m?void 0:m.size)&&void 0!==v?v:"small",required:i}):e("ez-search",{class:"ez-input__no-margin",enabled:!n,suppressEmptyOption:i,label:l,"data-field-name":a,"data-context-name":o,key:a,canShowError:r,optionLoader:s,ignoreLimitCharsToSearch:null!==(p=null==c?void 0:c.ignoreLimitCharsToSearch)&&void 0!==p&&p,hideDescriptionInput:!h}))})),h.set(r.SEARCHPLUS,(({name:a,label:l,readOnly:n,contextName:i,canShowError:o,optionLoader:r,props:s,required:c},m)=>{var u;const v=(null==m?void 0:m.formLayout)===d.CLASSIC_CASCADE||(null==m?void 0:m.formLayout)===d.CLASSIC_SIDE_BY_SIDE,p=!t.isEmpty(null==s?void 0:s.DESCRIPTIONFIELD);return e("div",{class:"ez-col ez-col--sd-12"},v?e("ez-classic-search-plus",{class:"ez-input__no-margin",enabled:!n,label:l,"data-field-name":a,"data-context-name":i,key:a,canShowError:o,optionLoader:r,hideDescriptionInput:!p,size:null!==(u=null==m?void 0:m.size)&&void 0!==u?u:"small",required:c}):e("ez-search-plus",{class:"ez-input__no-margin",enabled:!n,label:l,"data-field-name":a,"data-context-name":i,key:a,canShowError:o,optionLoader:r,hideDescriptionInput:!p}))})),h.set(r.LONGTEXT,(({name:a,label:l,readOnly:n,rows:i,contextName:o,canShowError:t},r)=>e("div",{class:"ez-col ez-col--sd-12",key:a},(null==r?void 0:r.formLayout)===d.CLASSIC_CASCADE||(null==r?void 0:r.formLayout)===d.CLASSIC_SIDE_BY_SIDE?e("ez-classic-text-area",{enabled:!n,label:l,"data-field-name":a,"data-context-name":o,rows:i}):e("ez-text-area",{enabled:!n,label:l,"data-field-name":a,"data-context-name":o,rows:i,canShowError:t})))),h.set(r.HTML,(({name:a,label:l,readOnly:n,contextName:i,rows:o,canShowError:t})=>e("div",{class:"ez-col ez-col--sd-12"},e("ez-rich-text",{key:a,enabled:!n,label:l,"data-field-name":a,"data-context-name":i,rows:o,canShowError:t})))),h.set(r.IMAGE,(({name:a,label:l,readOnly:n,contextName:i,props:o})=>e("div",{class:"ez-col ez-col--sd-12"},e("ez-image-input",Object.assign({enabled:!n,label:l,"data-field-name":a,"data-context-name":i,key:a,maxFileSize:1/0},o))))),h.set(r.MULTISELECTOR,(({name:a,label:l,readOnly:n,contextName:i,canShowError:o,props:t})=>{var r,s,d,c;const m=null==t?void 0:t.options;let u;if("string"==typeof m){const e=JSON.parse(m);u=Object.keys(e).map((a=>({value:a,label:e[a],check:!1})))}else u=m;const v=null!==(r=null==t?void 0:t.useOptions)&&void 0!==r?r:null!=u&&null==(null==t?void 0:t.dataSource);return e("div",{class:"ez-col ez-col--sd-12"},e("ez-multi-select-input",{class:"ez-input__no-margin",label:l,"data-field-name":a,"data-context-name":i,key:a,enabled:!n,canShowError:o,options:u,dataSource:null==t?void 0:t.dataSource,columnName:null!==(s=null==t?void 0:t.columnName)&&void 0!==s?s:a,useOptions:v,isTextSearch:null!==(d=null==t?void 0:t.isTextSearch)&&void 0!==d&&d,orderSelectedFirst:null!==(c=null==t?void 0:t.orderSelectedFirst)&&void 0!==c&&c}))}));const z=(e,a=new Map,l)=>{const n=m(),i=(null==l?void 0:l.formLayout)===d.CLASSIC_CASCADE||(null==l?void 0:l.formLayout)===d.CLASSIC_SIDE_BY_SIDE,o=a.get(e.userInterface)||h.get(e.userInterface)||p,t=!i&&e.required?`${e.label}${n("app.requiredInfo")}`:e.label,r=o(Object.assign(Object.assign({},e),{label:t}),l);return r.l["data-form-item"]=e.name,r};class w{constructor(e){this.elem=e}addRightElement(e){this.removeRightElement(),e.classList.add("ez-padding-left--small","ez-margin-top--auto","ez-margin-bottom--extra-small"),e.setAttribute("data-custom-item","true"),this.elem.classList.add("ez-col--nowrap"),this.elem.appendChild(e)}removeRightElement(){Array.from(this.elem.querySelectorAll('[data-custom-item="true"]')).forEach((e=>e.remove()))}get fieldName(){return this.elem.getAttribute("data-form-item")}}class b{constructor(e,a){this.items=new Map,this.formId=a,e.forEach((e=>{const a=new w(e);this.items.set(a.fieldName,a)}))}getItem(e){return this.items.get(e)}get formName(){return this.formId}}const f=class{constructor(e){a(this,e),this.ezContentReady=l(this,"ezContentReady",7),this.formItemsReady=l(this,"formItemsReady",7),this.MAIN_GROUP_NAME="__main",this._customEditors=new Map,this.fields=void 0,this.selectedRecord=void 0,this.singleColumn=!1,this.formLayout=void 0,this.customUiBuilders=new Map}async showUp(){this.singleColumn||this._element.scrollIntoView({behavior:"smooth",block:"start"})}async addCustomEditor(e,a,l){const n=new Map(this._customEditors);n.set(e,{customEditor:a,detailContext:l}),this._customEditors=n}async setFieldProp(e,a,l){const n=this.fields.map((n=>(n.name===e&&null!=l&&(n.props=n.props||{},n.props[a]=l),n)));this.fields=[...n]}getGroupByField(e){var a,l;const n=null!==(a=e.group)&&void 0!==a?a:null===(l=e.props)||void 0===l?void 0:l.UITabName;if(n&&n!==this.MAIN_GROUP_NAME)return n}groupFields(e){const a=new Map;return e.forEach((e=>{const l=this.getGroupByField(e);if(l){let n=a.get(l);null==n&&(n=[],a.set(l,n)),n.push(e)}else a.set(e.name,e)})),a}componentDidRender(){this._formElements=Array.from(this._element.querySelectorAll("[data-field-name]")),this.ezContentReady.emit(this._formElements);const e=new b(Array.from(this._element.querySelectorAll("[data-form-item]")));this.formItemsReady.emit(e)}isItemFullWidth(e){return[r.FILE,r.LONGTEXT,r.HTML].includes(e)}buildFormItemElement(a,l=""){var n;this.isItemFullWidth(a.userInterface)&&(l+=` input-full_width ${this.singleColumn&&"single-column"}`);const i={formLayout:this.formLayout,size:"xsmall"};if(this._customEditors.has(a.name)){const o=null===(n=this._formElements.map((e=>({name:e.dataset.fieldName,value:e.value}))).find((e=>e.name===a.name)))||void 0===n?void 0:n.value,t=this._customEditors.get(a.name).customEditor;return e("div",{class:l},e("ez-custom-form-input",{"data-field-name":a.name,customEditor:t,formViewField:a,builderFallback:e=>z(e,this.customUiBuilders,i),value:o,selectedRecord:this.selectedRecord}))}return e("div",{class:l},z(a,this.customUiBuilders,i))}render(){if(s.addIDInfoIfNotExists(this._element,"ezFormView"),null==this.fields)return;let a=[],l=Array.from(this.groupFields(this.fields).entries()).map((([l,n])=>{if(Array.isArray(n))return e("ez-collapsible-box",{id:`group-${l}`,label:l,"header-size":"large",key:l},e("div",{class:`form-view__content ${this.singleColumn&&"form-view__content--single-column"}`},n.map((e=>this.buildFormItemElement(e)))));a.push(n)})),n=a.map((e=>this.buildFormItemElement(e))),o=e("div",{class:`form-view__content ${this.singleColumn&&"form-view__content--single-column"}`},n);return e(i,null,o,l)}get _element(){return n(this)}};f.style=".sc-ez-form-view-h{display:flex;flex-wrap:wrap;width:100%;--ez-form-view__item--min-width:250px;--ez-form-view__long-item--min-width:530px;--ez-form-view__item--max-width:512px;--ez-form-view__long-item--max-width:100%;--ez-form-view__item--gap:var(--space--14, 14px);--ez-form-view__item--padding:var(--space--small)}.form-view__content.sc-ez-form-view{display:grid;grid-template-columns:repeat(auto-fill, minmax(var(--ez-form-view__item--min-width), 1fr));gap:var(--ez-form-view__item--gap);padding-inline:var(--ez-form-view__item--padding);width:100%}.form-view__content--single-column.sc-ez-form-view{grid-template-columns:1fr}.form-view__content--single-column.sc-ez-form-view>div.sc-ez-form-view:not(.input-full_width){width:clamp(var(--ez-form-view__item--min-width), 70%, var(--ez-form-view__item--max-width))}.input-full_width.sc-ez-form-view{grid-column:1/-1;width:clamp(var(--ez-form-view__long-item--min-width), 100%, var(--ez-form-view__long-item--max-width))}.single-column.sc-ez-form-view{--ez-form-view__long-item--max-width:1024px}*.sc-ez-form-view:has(*)+ez-collapsible-box.sc-ez-form-view{margin-top:var(--space--16, 16px)}";export{f as ez_form_view}
@@ -0,0 +1 @@
1
+ import{r as t,c as i,h as e,f as n,H as s,g as r}from"./p-23a36bb6.js";import{DateUtils as o,ApplicationContext as l,Action as a,StringUtils as u,KeyboardManager as h,DataUnit as d,ElementIDUtils as c}from"@sankhyalabs/core";import{b as f,a as v,S as m,f as p,c as b,D as y}from"./p-58fa7883.js";import{g as w,i as g}from"./p-3b7d9f30.js";import{F as _}from"./p-47e4a8ce.js";import"./p-320c401f.js";import"./p-ab574d59.js";import"./p-b853763b.js";import"./p-5895e687.js";const C=/child\[([^\]]+)\]/,O=/\$\{.+\}/;class j{constructor(){this._sheets=new Map,this._requiredFields=[],this._cleanOnCopyFields=[],this._defaultValues={}}static getDetailName(t){const i=C.exec(t);return i?i[1]:void 0}getSheet(t){return this._sheets.get(t)}getAllSheets(){return this._sheets}addSheet(t){this._sheets.set(t.name,t)}addRequiredFields(t){this._requiredFields=this._requiredFields.concat(t)}getRequiredFields(){return this._requiredFields}addCleanOnCopyFields(t){this._cleanOnCopyFields=this._cleanOnCopyFields.concat(t)}getCleanOnCopyFields(){return this._cleanOnCopyFields}addDefaultValues(t){return this._defaultValues=Object.assign(Object.assign({},this._defaultValues),t)}getDefaultValues(){const t={};return Object.entries(this._defaultValues).forEach((([i,e])=>{if("string"==typeof e){const t=O.exec(e);t&&(e=this.getDefaultVar(t[0]))}t[i]=e})),t}getDefaultVar(t){return"${data}"===t?o.getToday():"${datahora}"===t?o.getToday(!0):this._defaultVars?this._defaultVars.get(t):void 0}setDefaultVars(t){this._defaultVars=t}}function E(t){var i,e;return(null!==(e=null===(i=t.fields)||void 0===i?void 0:i.map(((t,i)=>({label:t.tab,name:t.tab,order:i,visible:!0,isDetail:!1,isCustom:!1}))))&&void 0!==e?e:[]).reduce(((t,i)=>t.some((t=>t.name===i.name))?t:[...t,i]),[])}const F=(t,i)=>{var e;if(!i)return;const n=null!==(e=null==i?void 0:i.tabs)&&void 0!==e?e:E(i);return null==n?void 0:n.find((i=>i.label===t))},z=(t,i,e)=>{if("string"!=typeof t)return t;if(e){const i=F(t,e);if(i)return i}return Array.from(i.keys()).find((i=>i.label===t))||{label:t,visible:!0}};function x(t,i){var e,n;return"__main"===t[0].label&&"__main"!==i[0].label?-1:"__main"!==t[0].label&&"__main"===i[0].label?1:(null!==(e=t[0].order)&&void 0!==e?e:Number.MAX_VALUE)-(null!==(n=i[0].order)&&void 0!==n?n:Number.MAX_VALUE)}const A=t=>`child[${t.name}]`,N=t=>({name:A(t),label:t.label,fields:[]});function S(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var D="function"==typeof Symbol&&Symbol.observable||"@@observable",M=function(){return Math.random().toString(36).substring(7).split("").join(".")},R={INIT:"@@redux/INIT"+M(),REPLACE:"@@redux/REPLACE"+M(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+M()}};function T(t){if("object"!=typeof t||null===t)return!1;for(var i=t;null!==Object.getPrototypeOf(i);)i=Object.getPrototypeOf(i);return Object.getPrototypeOf(t)===i}function P(t,i,e){var n;if("function"==typeof i&&"function"==typeof e||"function"==typeof e&&"function"==typeof arguments[3])throw new Error(S(0));if("function"==typeof i&&void 0===e&&(e=i,i=void 0),void 0!==e){if("function"!=typeof e)throw new Error(S(1));return e(P)(t,i)}if("function"!=typeof t)throw new Error(S(2));var s=t,r=i,o=[],l=o,a=!1;function u(){l===o&&(l=o.slice())}function h(){if(a)throw new Error(S(3));return r}function d(t){if("function"!=typeof t)throw new Error(S(4));if(a)throw new Error(S(5));var i=!0;return u(),l.push(t),function(){if(i){if(a)throw new Error(S(6));i=!1,u();var e=l.indexOf(t);l.splice(e,1),o=null}}}function c(t){if(!T(t))throw new Error(S(7));if(void 0===t.type)throw new Error(S(8));if(a)throw new Error(S(9));try{a=!0,r=s(r,t)}finally{a=!1}for(var i=o=l,e=0;e<i.length;e++)(0,i[e])();return t}function f(t){if("function"!=typeof t)throw new Error(S(10));s=t,c({type:R.REPLACE})}function v(){var t,i=d;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(S(11));function e(){t.next&&t.next(h())}return e(),{unsubscribe:i(e)}}})[D]=function(){return this},t}return c({type:R.INIT}),(n={dispatch:c,subscribe:d,getState:h,replaceReducer:f})[D]=v,n}const I={};function L(t=I,i){switch(i.type){case $.METADATA_LOADED:return Object.assign(Object.assign({},t),{formMetadata:i.payload,currentSheet:void 0});case $.CHANGE_TAB:return Object.assign(Object.assign({},t),{currentSheet:i.payload});default:return t}}function V(t){return t.formMetadata}function K(t){const i=function(t){return t.currentSheet}(t);return i?t.formMetadata.getSheet(i):Array.from(t.formMetadata.getAllSheets().values())[0]}var $;!function(t){t.METADATA_LOADED="FORM/METADATA_LOADED",t.CHANGE_TAB="FORM/CHANGE_TAB"}($||($={}));const q=class{constructor(e){t(this,e),this.ezFormRequestClearFieldToFocus=i(this,"ezFormRequestClearFieldToFocus",7),this.ezFormSetFields=i(this,"ezFormSetFields",7),this.ezReady=i(this,"ezReady",7),this.formItemsReady=i(this,"formItemsReady",7),this._customEditors=new Map,this._application=l.getContextValue("__SNK__APPLICATION__"),this.onDataUnitAction=t=>{t.type===a.METADATA_LOADED&&this.processMetadata()},this._fieldsProps=new Map,this._singleColumn=!1,this._formLayout=void 0,this.dataUnit=void 0,this.config=void 0,this.recordsValidator=void 0,this.fieldToFocus=void 0,this.onlyStaticFields=!1,this.useSearchField=!0,this.elementFocusSearchField=void 0,this.customUiBuilders=new Map}validate(){return this._dataBinder.validate()}async addCustomEditor(t,i,e){if(this._formView)return void this._formView.addCustomEditor(t,i,e);const n=new Map(this._customEditors);n.set(t,{customEditor:i,detailContext:e}),this._customEditors=n}observeConfig(){this.processMetadata()}async setFieldProp(t,i,e){const n=new Map(this._fieldsProps),s=this._fieldsProps.get(t);n.set(t,Object.assign(Object.assign({},s),{[i]:e})),this._fieldsProps=n}getDynamicContent(){var t;const i=V(this._store.getState());if(!i)return null;const n=Array.from(i.getAllSheets().values()),s=K(null===(t=this._store)||void 0===t?void 0:t.getState());let r=[];if(n.length>1){const t=n.map(((t,i)=>({tabKey:t.name,label:t.label,index:i}))),i="selector";r.push(e("ez-tabselector",{tabs:this.buildIdTabSelector(t),onEzChange:t=>this._store.dispatch(function(t){return{type:$.CHANGE_TAB,payload:"string"==typeof t?t:t.tabKey}}(t.detail)),selectedTab:s.name,"data-element-id":i}))}return r=r.concat(this.buildFormContent(s)),r}buildFormContent(t){const i=null==t?void 0:t.fields;if(null==t)return;this.ezFormSetFields.emit(i);const n=`${u.replaceAccentuatedChars(u.toCamelCase(null==t?void 0:t.label),!1)}_selectorContainer`;return e("div",{class:"dynamic-content ez-box--no-outline","data-element-id":n,ref:t=>this._container=t,tabindex:"0"},e("ez-popover",{ref:t=>this._ezPopoverSearchField=t,overlayType:"none"},this.renderFieldColumn()),e("ez-form-view",{ref:t=>this._formView=t,class:"ez-row ez-padding-vertical--small",fields:i,singleColumn:this._singleColumn,formLayout:this._formLayout,selectedRecord:this.dataUnit.getSelectedRecord(),customUiBuilders:this.customUiBuilders}))}renderFieldColumn(){return null!=this._fieldSearch||(this._fieldSearch=v({value:u.generateUUID(),label:this._i18n("ez-form.labelSearchField")},(({argument:t})=>this.fieldsOptionLoader(t)),(t=>this.onSelectField(t)))),this._fieldSearch}getFormFields(){var t;return null===(t=this.config)||void 0===t?void 0:t.fields}fieldsOptionLoader(t){const i=null==t?void 0:t.toLowerCase(),e=this.getFormFields().map((t=>{var i;return null===(i=this.dataUnit)||void 0===i?void 0:i.getField(t.name)})).filter((t=>{var e,n;return(null===(e=t.name)||void 0===e?void 0:e.toLowerCase().includes(i))||(null===(n=t.label)||void 0===n?void 0:n.toLowerCase().includes(i))})).map((t=>({value:t.name,label:t.label})));return Promise.resolve(e)}onSelectField(t){null!=t&&null!=t.value?(this.fieldToFocus=t.value,this._ezPopoverSearchField.hide()):this.fieldToFocus=""}async initKeyboardManager(){var t,i;this._keyboardManager=new h({propagate:!1,element:null!==(t=this.elementFocusSearchField)&&void 0!==t?t:this._element}),this.useSearchField&&this._keyboardManager.bind(m,(async()=>{if(!this._container||!this._ezPopoverSearchField)return;const t=this._container.getBoundingClientRect();await p(this._fieldSearch),this._ezPopoverSearchField.showUnder(this._container,{horizontalGap:t.width-b,verticalGap:-1*t.height})}),{description:this._i18n("ez-form.labelSearchField"),element:null!==(i=this.elementFocusSearchField)&&void 0!==i?i:this._element})}componentDidLoad(){this.initKeyboardManager()}processMetadata(){if(this.bindFields()&&this.dataUnit&&this._store){const t=((t,i,e=!1,n)=>{var s;null!=t&&!0!==(null==t?void 0:t.emptyConfig)||(t=(t=>{const i=t.metadata;let e;return i&&(e=i.fields.filter((t=>!1!==t.visible)).map((t=>({name:t.name,defaultValue:t.defaultValue})))),{emptyConfig:!1,fields:e}})(i));const r=new Map,o=new Map,l=[],a=[],u={};(null!==(s=null==t?void 0:t.tabs)&&void 0!==s?s:E(t)).forEach((t=>{o.has(t.label)||!1!==t.visible||o.set(t.label,t)})),function(t,i,e,n,s,r,o){var l;null===(l=null==t?void 0:t.fields)||void 0===l||l.forEach((l=>{var a,u,h,d,c,v;if(!1===l.visible)return;!l.tab&&(null===(u=null===(a=n.getField(l.name))||void 0===a?void 0:a.properties)||void 0===u?void 0:u.isPrimaryKey)&&(l.tab="__main");const m=z(l.tab||"Geral",i,t);if(e.has(m.label))return;const p=n.getField(l.name);if(p&&(null==(null==p?void 0:p.visible)||!0===(null==p?void 0:p.visible))&&m.visible){i.has(m)||i.set(m,[]);const t=f(p,l);null===(h=i.get(m))||void 0===h||h.push(t),t.required&&s.push(l.name),((null==l.cleanOnCopy?null===(d=p.properties)||void 0===d?void 0:d.cleanOnCopy:l.cleanOnCopy)||(null===(c=p.properties)||void 0===c?void 0:c.cleanOnCopy))&&r.push(l.name);let e=null==l.defaultValue?null===(v=p.properties)||void 0===v?void 0:v.defaultValue:l.defaultValue;if(e&&null!=e.value){const{type:t,value:i}=e;if(t)if("V"===t)e=i;else try{const t=JSON.parse(i);e=t&&"value"in t?t:i}catch(t){}o[l.name]=e}}}))}(t,r,o,i,l,a,u);const h=new j;return h.setDefaultVars(t.defaultVars),e&&function(t,i,e){const n=t.metadata;void 0!==n&&void 0!==n.children&&n.children.forEach((t=>{const n=F(t.label,i);if(n)return void e.set(Object.assign(n,{name:A(t),isDetail:!0}),[]);const{label:s,name:r,fields:o}=N(t);e.set({name:r,label:s,isDetail:!0},o)}))}(i,t,r),n&&function(t,i,e){t.forEach((t=>{const n=F(t.label,i),s={};Object.entries(t).forEach((([t,i])=>{(function(t){return["id","label"].includes(t)})(t)||(s[t]=i)})),e.set(n?Object.assign(n,{name:t.id,isCustom:!0,ctxProps:s}):{label:t.label,name:t.id,isCustom:!0,visible:!0,ctxProps:s},[])}))}(n,t,r),Array.from(r.entries()).sort(x).forEach((([t,i])=>{o.has(t.label)||h.addSheet(function(t,i){const e=w();return{label:"__main"===t.label?e("ez-form.mainTab"):t.label,name:t.name||t.label,isCustom:t.isCustom,isDetail:t.isDetail,ctxProps:t.ctxProps,fields:i}}(t,i))})),h.addRequiredFields(l),h.addCleanOnCopyFields(a),h.addDefaultValues(u),h})(this.config,this.dataUnit);this._store.dispatch({type:$.METADATA_LOADED,payload:t})}}isStatic(){var t;return(null===(t=this._staticFields)||void 0===t?void 0:t.length)>0}bindFields(){return!this.isStatic()||!1===this.onlyStaticFields}async componentWillLoad(){var t;void 0===this.dataUnit&&(this.dataUnit=new d("ez-form")),this.dataUnit.unsubscribe(this.onDataUnitAction),this.dataUnit.subscribe(this.onDataUnitAction),this._dataBinder=new y(this.dataUnit),this._store=P(L),this._store.subscribe((()=>n(this))),this._staticFields=Array.from(this._element.querySelectorAll("[data-field-name]")),this.processMetadata(),c.addIDInfo(this._element,null,{dataUnit:this.dataUnit});const i=await(null===(t=this._application)||void 0===t?void 0:t.getLayoutFormConfig());this.setSingleColumn(i),this.registerNotifyListeners(i),this._i18n=await g()}async setSingleColumn(t){this._singleColumn=(null==t?void 0:t.config)===_.CASCADE||(null==t?void 0:t.config)===_.CLASSIC_CASCADE,this._formLayout=null==t?void 0:t.config}async registerNotifyListeners(t){t&&t.onConfigChange((t=>{this._singleColumn=t===_.CASCADE||t===_.CLASSIC_CASCADE,this._formLayout=t}))}componentDidRender(){const t=V(this._store.getState());t.addRequiredFields(this._staticFields.filter((t=>t.dataset.required)).map((t=>t.dataset.fieldName))),this._dataBinder.bind(Array.from(this._element.querySelectorAll("[data-field-name]")),this.dataUnit.dataUnitId,t,this.recordsValidator),this.ezReady.emit(),this.handleFieldToFocus(),this.setCustomEditors(),this.setFieldsProps()}setCustomEditors(){if(this._formView)for(const[t,i]of this._customEditors)this._formView.addCustomEditor(t,i.customEditor,i.detailContext),this._customEditors.delete(t)}handleFieldToFocus(){var t;if(null==this.fieldToFocus)return;const i=K(null===(t=this._store)||void 0===t?void 0:t.getState());(null==i?void 0:i.fields).some((t=>t.name===this.fieldToFocus))&&requestAnimationFrame((()=>{this._dataBinder.setFocus(this.fieldToFocus),this.ezFormRequestClearFieldToFocus.emit(),this.fieldToFocus=null}))}setFieldsProps(){if(this._formView)for(const[t,i]of this._fieldsProps){for(const e in i)this._formView.setFieldProp(t,e,i[e]);this._fieldsProps.delete(t)}}disconnectedCallback(){var t;this.dataUnit.unsubscribe(this.onDataUnitAction),this._dataBinder.onDisconnectedCallback(),null===(t=this._keyboardManager)||void 0===t||t.unbindAllShortcutKeys()}buildIdTabSelector(t){return t&&t.forEach((t=>t[c.DATA_ELEMENT_ID_ATTRIBUTE_NAME]=u.toCamelCase(t.label))),t}render(){return e(s,null,this.isStatic()?null:this.getDynamicContent())}get _element(){return r(this)}static get watchers(){return{config:["observeConfig"]}}};q.style=".sc-ez-form-h{display:flex;flex-direction:column;width:100%}.dynamic-content.sc-ez-form ez-collapsible-box.sc-ez-form{--ez-collapsible-box__header--padding-right:var(--space-small, 6px);--ez-collapsible-box__header--padding-left:var(--space-small, 6px)}";export{q as ez_form}
@@ -0,0 +1 @@
1
+ import{r as t,c as i,h as s,H as e,g as a}from"./p-23a36bb6.js";import{DateUtils as n,ElementIDUtils as h}from"@sankhyalabs/core";import{C as o}from"./p-ec7db713.js";import{i as r}from"./p-3b7d9f30.js";const l=class{constructor(s){t(this,s),this.ezChange=i(this,"ezChange",7),this.ezStartChange=i(this,"ezStartChange",7),this.ezCancelWaitingChange=i(this,"ezCancelWaitingChange",7),this.ezInput=i(this,"ezInput",7),this._changePending=!1,this._focused=!1,this._valuePromiseCallbacks=[],this.label=void 0,this.value=void 0,this.enabled=!0,this.errorMessage=void 0,this.mode="regular",this.size="default",this.required=!1,this.canShowError=!0,this.autoFocus=!1,this.alternativePlaceholder=void 0}observeLabel(){this._textInput&&(this._textInput.label=this.label)}observeErrorMessage(){var t;this._textInput&&(this._textInput.errorMessage=this.errorMessage,(null===(t=this.errorMessage)||void 0===t?void 0:t.trim())||this.setInputValue())}observeValue(t,i){if(this._textInput&&t!=i){const s=n.validateDate(t),e=n.validateDate(i);if((null==s?void 0:s.getTime())!==(null==e?void 0:e.getTime())){const t=this.getTextValue(s)||"";!n.strToDate(t)&&this._focused||(this._textInput.value||"")===t||(this._textInput.value=t,this._focused=!1,this.errorMessage=""),this.ezChange.emit(null===s?void 0:s)}}this._changePending=!1}async setFocus(t){this._textInput.setFocus(t)}async setBlur(){this._textInput.setBlur()}async isInvalid(){return"string"==typeof this.errorMessage&&""!==this.errorMessage.trim()}async getValueAsync(){return this._changePending?new Promise((t=>{this._valuePromiseCallbacks.push(t)})):Promise.resolve(this.value)}changeValue(t){const i=n.validateDate(this.value),s=n.validateDate(t);(null==i?void 0:i.getTime())!==(null==s?void 0:s.getTime())?this.value=s:this._changePending=!1}async handleChangeCalendar(t){this.changeValue(this._calendar.value),this.ezInput.emit(this._calendar.value),this._popover.hide(),await this.setFocus(),t.stopPropagation()}handleBlur(){if(this._changePending)try{const t=this._textInput.value,i=n.strToDate(t);if(i||!t){this.errorMessage="";const t=n.validateDate(this.value),s=n.validateDate(i);(null==t?void 0:t.getTime())===(null==s?void 0:s.getTime())?(s&&(this._textInput.value=this.getTextValue(s)||"",this._focused=!1),this.ezCancelWaitingChange.emit()):(this._focused=!1,this.changeValue(s))}else this.changeValue(void 0),this.ezCancelWaitingChange.emit(),this.errorMessage=this.i18n("ez-classic-date-input.invalidDate")}finally{for(const t of this._valuePromiseCallbacks)t(this.value);this._valuePromiseCallbacks=[]}}getTextValue(t){return t?n.formatDate(t):void 0}handleInput(t){const i=n.strToDate(this._textInput.value),s=n.validateDate(this.value),e=n.validateDate(i);if((null==s?void 0:s.getTime())!==(null==e?void 0:e.getTime())&&(this._changePending=!0,this._focused=!0,this.ezStartChange.emit({waitmessage:"",blocking:!1})),"H"===t.data||"h"===t.data){const t=new Date;this.ezInput.emit(t),this.changeValue(t)}}setInputValue(){const t=this.getTextValue(this.value)||"";(this._textInput.value||"")!==t&&(this._textInput.value=t)}disconnectedCallback(){this._popover.hide()}async componentWillLoad(){this.i18n=await r()}componentDidLoad(){o.applyVarsTextInput(this._elem,this._textInput),this.setInputValue(),this.autoFocus&&requestAnimationFrame((()=>{this.setFocus({selectText:!0})}))}render(){return h.addIDInfoIfNotExists(this._elem,"input"),s(e,null,s("ez-classic-input",{"data-element-id":h.getInternalIDInfo("textInput"),ref:t=>this._textInput=t,"data-slave-mode":"true",label:this.label,onBlur:()=>this.handleBlur(),onInput:t=>this.handleInput(t),mask:"##/##/####",enabled:this.enabled,errorMessage:this.errorMessage,mode:this.mode,size:this.size,canShowError:this.canShowError,alternativePlaceholder:this.alternativePlaceholder,required:this.required,leftIconName:"calendar",leftIconClickable:this.enabled,onIconClick:()=>{var t;return null===(t=this._popover)||void 0===t?void 0:t.showUnder(this._textInput)},onEzChange:t=>t.stopPropagation()}),s("ez-popover-plus",{ref:t=>this._popover=t,anchorElement:this._textInput,autoClose:!0,boxWidth:"fit-content",overlayType:"none","data-element-id":this._elem.getAttribute("data-element-id"),onEzVisibilityChange:t=>t.stopPropagation()},s("ez-calendar",{ref:t=>this._calendar=t,"data-element-id":h.getInternalIDInfo("calendar"),onEzChange:t=>this.handleChangeCalendar(t),value:this.value})))}get _elem(){return a(this)}static get watchers(){return{label:["observeLabel"],errorMessage:["observeErrorMessage"],value:["observeValue"]}}};l.style=':host{display:block;width:100%;--ez-classic-date-input__input--background-color:var(--background--medium, #e0e0e0);--ez-classic-date-input__input--border-color:var(--ez-classic-date-input__input--background-color);--ez-classic-date-input__calendar-image:url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" version="1.1" height="16px" width="15px"><path d="M 3.171875,5.25 C 2.6485088,5.25 2.21875,5.6797588 2.21875,6.203125 2.21875,6.7264912 2.6485088,7.15625 3.171875,7.15625 3.6952412,7.15625 4.125,6.7264912 4.125,6.203125 4.125,5.6797588 3.6952412,5.25 3.171875,5.25 Z m 2.875,0 C 5.5235088,5.25 5.09375,5.6797588 5.09375,6.203125 5.09375,6.7264912 5.5235088,7.15625 6.046875,7.15625 6.5702412,7.15625 7,6.7264912 7,6.203125 7,5.6797588 6.5702412,5.25 6.046875,5.25 Z m 2.875,0 c -0.5233662,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297588,0.953125 0.953125,0.953125 0.5233662,0 0.9511719,-0.4297588 0.9511719,-0.953125 C 9.8730469,5.6797588 9.4452412,5.25 8.921875,5.25 Z m 2.873047,0 c -0.523366,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.429759,0.953125 0.953125,0.953125 0.523366,0 0.953125,-0.4297588 0.953125,-0.953125 C 12.748047,5.6797588 12.318288,5.25 11.794922,5.25 Z M 3.171875,8.1230469 c -0.5233662,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297588,0.9531251 0.953125,0.9531251 0.5233662,0 0.953125,-0.4297589 0.953125,-0.9531251 0,-0.5233662 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.875,0 c -0.5233662,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297588,0.9531251 0.953125,0.9531251 C 6.5702412,10.029297 7,9.5995381 7,9.0761719 7,8.5528057 6.5702412,8.1230469 6.046875,8.1230469 Z m 2.8554688,0 c -0.5233663,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297587,0.9531251 0.953125,0.9531251 0.5233661,0 0.9531249,-0.4297589 0.953125,-0.9531251 0,-0.5233662 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.9003902,0 c -0.523366,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.429759,0.9531251 0.953125,0.9531251 0.523367,0 0.953125,-0.4297589 0.953125,-0.9531251 0,-0.5233662 -0.429758,-0.953125 -0.953125,-0.953125 z M 3.171875,10.998047 c -0.5233662,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.4297588,0.953125 0.953125,0.953125 0.5233662,0 0.953125,-0.429759 0.953125,-0.953125 0,-0.523366 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.875,0 c -0.5233662,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.4297588,0.953125 0.953125,0.953125 C 6.5702412,12.904297 7,12.474538 7,11.951172 7,11.427806 6.5702412,10.998047 6.046875,10.998047 Z m 2.8554688,0 c -0.5233663,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.4297587,0.953125 0.953125,0.953125 0.5233661,0 0.9531249,-0.429759 0.953125,-0.953125 0,-0.523366 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.9003902,0 c -0.523366,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.429759,0.953125 0.953125,0.953125 0.523367,0 0.953125,-0.429759 0.953125,-0.953125 0,-0.523366 -0.429758,-0.953125 -0.953125,-0.953125 z M 3.5,0 c -0.554,0 -1,0.446 -1,1 v 0.050781 C 1.0853217,1.2909766 0,2.5186658 0,4 v 9 c 0,1.652487 1.3475134,3 3,3 h 9 c 1.652487,0 3,-1.347513 3,-3 V 4 C 15,2.5186658 13.914678,1.2909766 12.5,1.0507812 V 1 c 0,-0.554 -0.446,-1 -1,-1 -0.554,0 -1,0.446 -1,1 h -2 c 0,-0.554 -0.446,-1 -1,-1 -0.554,0 -1,0.446 -1,1 h -2 C 4.5,0.446 4.054,0 3.5,0 Z m 1,2.0996094 h 2 v 0.640625 c 0,0.554 0.446,1 1,1 0.554,0 1,-0.446 1,-1 v -0.640625 h 2 v 0.640625 c 0,0.554 0.446,1 1,1 0.554,0 1,-0.446 1,-1 V 2.1738281 C 13.311725,2.3905225 13.900391,3.11278 13.900391,4 v 9 c 0,1.062113 -0.838278,1.900391 -1.900391,1.900391 H 3 C 1.9378864,14.900391 1.0996094,14.062113 1.0996094,13 V 4 C 1.0996094,3.11278 1.6882747,2.3905225 2.5,2.1738281 v 0.5664063 c 0,0.554 0.446,1 1,1 0.554,0 1,-0.446 1,-1 z"/></svg>\')}.btn-open-cal{outline:none;border:none;background-color:unset;cursor:pointer}.btn-open-cal:disabled{cursor:not-allowed}.btn-open-cal::after{content:\'\';display:flex;background-color:var(--text--primary, #008561);width:15px;height:16px;-webkit-mask-image:var(--ez-classic-date-input__calendar-image);mask-image:var(--ez-classic-date-input__calendar-image)}.btn-open-cal:disabled:after{background-color:var(--text--disable, #AFB6C0)}.btn-open-cal:enabled:hover::after{background-color:var(--color--primary, #4e4e4e)}ez-classic-input{--text-input__input--background-color:var(--ez-classic-date-input__input--background-color, #FFFFFF);--text-input__input--border-color:var(--ez-classic-date-input__input--border-color, #DCE0E8)}';export{l as ez_classic_date_input}
@@ -0,0 +1 @@
1
+ import{r as t,c as i,h as s,H as e,g as h}from"./p-23a36bb6.js";import{C as o}from"./p-ec7db713.js";import{ObjectUtils as r,StringUtils as n,ElementIDUtils as a}from"@sankhyalabs/core";import{A as l}from"./p-320c401f.js";import"./p-ab574d59.js";import"./p-b853763b.js";import{i as c}from"./p-3b7d9f30.js";import{S as d}from"./p-5895e687.js";import"./p-47e4a8ce.js";import{r as u,a as v}from"./p-40a60148.js";const p=class{constructor(s){t(this,s),this.ezChange=i(this,"ezChange",7),this.ezEmptySearch=i(this,"ezEmptySearch",7),this._changeDeboucingTimeout=null,this._limitCharsToSearch=3,this._deboucingTime=300,this._maxWidthValue=0,this._tabPressed=!1,this._startHighlightTag="<span class='card-item__highlight'>",this._endHighlightTag="</span>",this._preSelection=void 0,this._visibleOptions=void 0,this._startLoading=!1,this._showLoading=!0,this._showLoadingDescription=!1,this._criteria=void 0,this.value=void 0,this.label=void 0,this.enabled=!0,this.errorMessage=void 0,this.optionLoader=void 0,this.contextProperties=void 0,this.showSelectedValue=!0,this.showOptionValue=!0,this.suppressEmptyOption=!1,this.stopPropagateEnterKeyEvent=!1,this.mode="regular",this.canShowError=!0,this.hideErrorOnFocusOut=!0,this.listOptionsPosition=void 0,this.isTextSearch=!1,this.ignoreLimitCharsToSearch=!1,this.options=void 0,this.suppressSearch=!1,this.ensureClearButtonVisible=!1,this.suppressPreLoad=!0,this.autoFocus=!1,this.alternativePlaceholder=void 0,this.showMore=void 0,this.suppressInputPersist=!1,this.hideDescriptionInput=!1}observeErrorMessage(){var t;this._textInput&&(this._textInput.errorMessage=this.errorMessage,!(null===(t=this.errorMessage)||void 0===t?void 0:t.trim())&&this.errorMessage&&this.setInputValue())}getValue(t){return"object"==typeof t?null==t?void 0:t.value:t}validateNewValue(t,i){const s=this.getValue(t),e=this.getValue(i);return!("[object Object]"===s||s===e)}async observeValue(t,i){if(this._textInput&&this.validateNewValue(t,i)){if("string"==typeof t)return void await this.handleValueAsString(t);const i=this.getSelectedOption(t),s=this.getSelectedOption(this._currentValue);this.isDifferentValues(s,i)&&(this._currentValue=i,this.setInputValue(),this.ezChange.emit(null!=i?i:void 0)),this.resetOptions()}}observeOptions(t,i){!t.length&&this.suppressPreLoad||(null==t?void 0:t.join(""))!==(null==i?void 0:i.join(""))&&this.loadOptions(d.PRELOAD)}async getValueAsync(){return new Promise(this._showLoading?t=>{let i=setInterval((()=>{this._showLoading||(clearInterval(i),t(this.value))}),100)}:t=>t(this.value))}async setFocus(t){this._textInput&&this._textInput.setFocus(t)}async setBlur(){this._textInput&&this._textInput.setBlur()}async isInvalid(){return"string"==typeof this.errorMessage&&""!==this.errorMessage.trim()}async clearValue(){this.clearSearch()}async handleValueAsString(t){this.getSelectedOption(t)?this.setInputValue():(await this.loadDescriptionValue(t),this._currentValue&&(this.setInputValue(),this.ezChange.emit(this.value),this._currentValue=this.value))}isDifferentValues(t,i){return r.objectToString(t||{})!==r.objectToString(i||{})}getFormattedText(t){if(null==t)return;let i=this.showSelectedValue&&null!=t.value?t.label?`${t.value} - ${t.label}`:t.value:t.label;return i=null==i?void 0:i.replace(new RegExp(this._startHighlightTag,"g"),"").replace(new RegExp(this._endHighlightTag,"g"),""),i}getText(){const t=this.getSelectedOption(this._currentValue),i=this.getFormattedText(t);return u(i)}getSelectedOption(t){return"string"==typeof t||t instanceof String?this._visibleOptions.find((i=>i.value===t)):t?Object.assign(Object.assign({},t),{value:v(null==t?void 0:t.value),label:v(null==t?void 0:t.label)}):t}updateVisibleOptions(){let t=this._source||[];this._visibleOptions=this.suppressEmptyOption?t:[{value:void 0,label:""}].concat(t),this._maxWidthValue=this.getMaxWidthValue()}getMaxWidthValue(){var t;const i=[];return null===(t=this._visibleOptions)||void 0===t||t.forEach((t=>{const s=this.getWidthValue(t.value);i.includes(s)||i.push(s)})),i.length>1?Math.max(...i):0}getWidthValue(t){if(null!=this._itemValueBasis){const i=this._itemValueBasis;if(null!=t)return i.innerHTML=t,i.clientWidth>0?i.clientWidth+2:0;i.innerHTML=""}return 0}showOptions(){this.enabled&&(this.isOptionsVisible()||this._ezPopOverPlusElement.showUnder(this._textInput))}hideOptions(){this._ezPopOverPlusElement.hide()}isOptionsVisible(){return this._ezPopOverPlusElement.opened}selectCurrentOption(t=!0){void 0!==this._preSelection?(this.selectOption(this._visibleOptions[this._preSelection],t),this._preSelection=void 0):this.controlListWithOnlyOne()}updateSource(t){this._startLoading=!1,t instanceof Promise?(this._showLoading=!0,this._showLoadingDescription=!0,t.then((t=>{this.updateSource(t)})).finally((()=>{this._showLoading=!1,this._showLoadingDescription=!1})),this.updateVisibleOptions()):(this._showLoading=!1,Array.isArray(t)?(this._source=t,this.updateVisibleOptions(),this._tabPressed&&(this._tabPressed=!1,this.controlEmptySearch(!1))):this.selectOption(t))}clearSource(){this._source=[],this.updateVisibleOptions()}selectOption(t,i=!0){var s,e;const h=this.getSelectedOption(this.value),o=Object.assign(Object.assign({},t),{value:v(null==t?void 0:t.value),label:v(null==t?void 0:t.label)}),r=Object.assign(Object.assign({},o),{value:u(null==o?void 0:o.value),label:u(null==o?void 0:o.label)});if((null===(s=null==h?void 0:h.value)||void 0===s?void 0:s.toString())!==(null===(e=null==r?void 0:r.value)||void 0===e?void 0:e.toString())||null==h&&null!=r&&"value"in r){const t=(null==r?void 0:r.value)?r:void 0;this.value=t,this._currentValue=t}else this.setInputValue(),this.resetOptions();this._visibleOptions=[],this.clearSource(),i&&setTimeout((()=>{this.setFocus()}),0)}loadOptions(t,i=""){this._criteria=i,this._startLoading=!0,this.updateSource(this.optionLoader?this.optionLoader({mode:t,argument:i},this.contextProperties):this.options)}cancelPreselection(){!this._textInput.value&&this._currentValue&&this._source.length>0?this.selectOption(void 0):window.setTimeout((()=>{this.setInputValue()}),this._deboucingTime),this.resetOptions()}setInputValue(t=!0){if(this.suppressInputPersist)return void this.clearSearch();const i=this.getText();(this._textInput.value||"")!==i&&(this._textInput.value=i,t&&(this.errorMessage=null))}clearSearch(){this.value=null,this._currentValue=null,this._textInput.value="",this.ezChange.emit(null)}controlListWithOnlyOne(t=!0){var i,s;const e=null===(i=this._visibleOptions)||void 0===i?void 0:i.filter((t=>""!==t.label&&null!=t.value));if((null==e?void 0:e.length)>0){const i=new RegExp(this._startHighlightTag,"g"),h=new RegExp(this._endHighlightTag,"g");let o=n.decodeHtmlEntities(e[0].label);const r={value:null===(s=e[0].value)||void 0===s?void 0:s.replace(i,"").replace(h,""),label:null==o?void 0:o.replace(i,"").replace(h,"")};this.selectOption(r,t)}}controlEmptySearch(t=!0){var i;(null===(i=this._visibleOptions)||void 0===i?void 0:i.length)?this.controlListWithOnlyOne(t):(this.clearSearch(),l.info(this.i18n("ez-search.emptyList")))}async loadDescriptionValue(t){var i,s,e;if(null==t)return;if((null===(i=this.options)||void 0===i?void 0:i.length)>0)return void this.loadOptionValue(t);const h={mode:this.hideDescriptionInput?d.LOAD_DESCRIPTION:d.PREDICTIVE,argument:t};try{const t=await(null===(s=this.optionLoader)||void 0===s?void 0:s.call(this,h,this.contextProperties));if(null==t)return;t instanceof Promise?t.then((t=>{this.setDescriptionValue(t)})):this.setDescriptionValue(t)}catch(t){throw"WarningException"===(null===(e=null==t?void 0:t.constructor)||void 0===e?void 0:e.name)&&(this.errorMessage=t.message),t}}setDescriptionValue(t){const i=(null==t?void 0:t[0])||t;null!=i&&Object.keys(i).length?(this._currentValue=i?Object.assign(Object.assign({},i),{value:v(i.value),label:v(i.label)}):i,this.value=this._currentValue,this.setTextInputValue()):this.showNoResultMessage()}setTextInputValue(){if(this._textInput&&null==this._textInput.value){if(null==this.value)return;const t="string"==typeof this.value?this.value:this.getFormattedText(this.value);this._textInput.value=u(t)}}loadOptionValue(t){var i;const s=null===(i=this.options)||void 0===i?void 0:i.find((i=>i.value===t));null!=s?this.selectOption(s):this.showNoResultMessage()}async showNoResultMessage(){var t;const i="string"==typeof this.value?this.value:null===(t=this.value)||void 0===t?void 0:t.value;this.clearSearch(),this.ezEmptySearch.emit(i);const s=this.i18n("ez-search.emptySearch",{field:this.getFieldLabel()});this.errorMessage=s,await l.info(s)}getFieldLabel(){var t;return null===(t=this.label)||void 0===t?void 0:t.replace(this.i18n("app.requiredInfo"),"").toUpperCase()}resetOptions(){this.showMore?this.handleResetOptionsWithShowMoreVisible():(this.hideOptions(),this._criteria=void 0,this._preSelection=void 0,this.updateVisibleOptions())}handleResetOptionsWithShowMoreVisible(){setTimeout((()=>{this.hideOptions(),this._criteria=void 0,this._preSelection=void 0,this.updateVisibleOptions()}),100)}async handleInitialValue(){if(!this.getValue(this.value))return;if("string"==typeof this.value)return void await this.handleValueAsString(this.value);let t=this.getFormattedText(this.value);t=u(t),this._textInput.value=t}async componentWillLoad(){if(this.i18n=await c(),void 0===this.options){this.options=[];const t=this.el.querySelectorAll("option");t&&t.forEach((t=>{let i=t.innerText,s=t.getAttribute("value"),e=t.getAttribute("details");s||(s=i),this.options.push({label:i,value:s,details:e}),t.hidden=!0}))}this.updateSource([])}componentDidRender(){var t;null===(t=this._optionsList)||void 0===t||t.querySelectorAll(".item").forEach((t=>{a.addIDInfoIfNotExists(t,"itemSearch")}))}async componentDidLoad(){this._currentValue=this.value,o.applyVarsTextInput(this.el,this._textInput),this._resizeObserver=new ResizeObserver((t=>{window.requestAnimationFrame((()=>{Array.isArray(t)}))})),this._intersectionObserver=new IntersectionObserver((t=>{t.forEach((t=>{!t.isIntersecting&&this._ezPopOverPlusElement&&this._ezPopOverPlusElement.hide()}))}),{threshold:.1}),this._textInput&&this._intersectionObserver.observe(this._textInput),await this.handleInitialValue(),this.autoFocus&&requestAnimationFrame((()=>{this.setFocus({selectText:!0})}))}disconnectedCallback(){var t,i;null===(t=this._resizeObserver)||void 0===t||t.disconnect(),null===(i=this._intersectionObserver)||void 0===i||i.disconnect()}handlerIconClick(){this.loadOptions(d.ADVANCED)}buildNumberArgument(t){return this.isTextSearch?NaN:Number(t||void 0)}onTextInputChangeHandler(t){var i;if(this.clearDeboucingTimeout(),this._startLoading)return void(this._changeDeboucingTimeout=window.setTimeout((()=>{this.onTextInputChangeHandler(t)}),this._deboucingTime));const s=null===(i=t.target.value)||void 0===i?void 0:i.trim(),e=this.buildNumberArgument(s);this._criteria||(this._textInput.value=t.data||s),this._criteria=s,s?(this._showLoading=!1,this.clearSource(),this.ignoreLimitCharsToSearch||!isNaN(e)||s.length>=this._limitCharsToSearch?(this._showLoading=!0,this._changeDeboucingTimeout=window.setTimeout((()=>{this.loadOptions(d.PREDICTIVE,isNaN(e)?s:e.toString())}),this._deboucingTime),this.showOptions()):this.hideOptions()):(this.hideOptions(),this._showLoading=!1,this.clearSource())}clearDeboucingTimeout(){this._changeDeboucingTimeout&&(window.clearTimeout(this._changeDeboucingTimeout),this._changeDeboucingTimeout=null)}async keyDownHandler(t){switch(this._tabPressed=!1,t.ctrlKey&&("f"!==t.key&&"F"!==t.key||(this.loadOptions(d.ADVANCED),t.stopPropagation(),t.stopImmediatePropagation(),t.preventDefault())),t.key){case"ArrowDown":t.stopPropagation(),this.canShowListOptions()&&t.preventDefault(),this.isOptionsVisible()||this.showOptions(),await this._searchList.nextOption();break;case"ArrowUp":t.stopPropagation(),this.canShowListOptions()&&t.preventDefault(),await this._searchList.previousOption();break;case"Enter":this.handleEventPropagation(t),this.selectCurrentOption();break;case"Escape":this.cancelPreselection();break;case"Tab":this._tabPressed=!0,this.selectCurrentOption(!1)}}handleEventPropagation(t){this._ezPopOverPlusElement.opened&&this.stopPropagateEnterKeyEvent&&t.stopPropagation()}onTextInputFocusOutHandler(){this.hideErrorOnFocusOut&&this.cancelPreselection()}canShowListOptions(){return!this._showLoading&&this._visibleOptions.length>0}canShowLoadSpinDescription(){return this._showLoadingDescription&&!this._ezPopOverPlusElement.opened}onChangePreSelection(t){this._preSelection=t}async handleClickShowMore(){var t,i;if(!this.optionLoader)return;const s=null!==(i=null===(t=this._textInput)||void 0===t?void 0:t.value)&&void 0!==i?i:"",e={mode:d.ADVANCED,argument:s},h=await this.optionLoader(e,this.contextProperties);h&&!Array.isArray(h)&&this.selectOption(h)}renderShowMore(){if(this.showMore&&!this._showLoading)return s("div",{style:{display:"flex",justifyContent:"center"},"data-element-id":a.getInternalIDInfo("showMore")},s("ez-button",{onClick:async()=>await this.handleClickShowMore(),variant:"tertiary",style:{width:"100%",justifyContent:"center"},label:this.i18n("ez-search.showMore")}))}render(){var t;return a.addIDInfoIfNotExists(this.el,"input"),s(e,null,s("ez-text-input",{"data-element-id":a.getInternalIDInfo("textInput"),class:this.suppressSearch?"suppressed-search-input":"",ref:t=>this._textInput=t,"data-slave-mode":"true",enabled:this.enabled&&!this.suppressSearch,onInput:t=>this.onTextInputChangeHandler(t),onFocusout:()=>this.onTextInputFocusOutHandler(),onKeyDown:t=>this.keyDownHandler(t),label:this.label,canShowError:this.canShowError,errorMessage:this.errorMessage,mode:this.mode,alternativePlaceholder:this.alternativePlaceholder},s("button",{class:"btn",slot:"leftIcon",disabled:!this.enabled,tabindex:-1,onClick:()=>this.handlerIconClick()},this.canShowLoadSpinDescription()?s("div",{class:"message__loading"}):s("ez-icon",{iconName:"search"})),(null===(t=this._textInput)||void 0===t?void 0:t.value)&&(this._criteria||this.value)||this.ensureClearButtonVisible?s("button",{class:"btn btn__close",slot:"rightIcon",disabled:!this.enabled,tabindex:-1,onClick:()=>this.clearSearch()},s("ez-icon",{iconName:"close"})):void 0),s("ez-popover-plus",{ref:t=>this._ezPopOverPlusElement=t,autoClose:!1,overlayType:"none",useAnchorSize:!0,anchorElement:[this._textInput,this.el],"data-element-id":this.el.getAttribute("data-element-id"),onEzVisibilityChange:t=>t.stopPropagation()},s("div",null,s("search-list",{ref:t=>this._searchList=t,showLoading:this._showLoading,visibleOptions:this._visibleOptions,textEmptyList:this.i18n("ez-search.emptyList"),canShowListOptions:this.canShowListOptions(),value:this.value,showOptionValue:this.showOptionValue,preSelection:this._preSelection,onChangeValue:({detail:t})=>this.selectOption(t),onChangePreSelection:({detail:t})=>this.onChangePreSelection(t)}),this.renderShowMore())))}get el(){return h(this)}static get watchers(){return{errorMessage:["observeErrorMessage"],value:["observeValue"],options:["observeOptions"]}}};p.style=":host{--ez-search--height:42px;--ez-search--width:100%;--ez-search--min-width:0;--ez-search__icon--width:48px;--ez-search--border-radius:var(--border--radius-medium, 12px);--ez-search--border-radius-small:var(--border--radius-small, 6px);--ez-search--font-size:var(--text--medium, 14px);--ez-search--font-family:var(--font-pattern, Arial);--ez-search--font-weight--large:var(--text-weight--large, 500);--ez-search--font-weight--medium:var(--text-weight--medium, 400);--ez-search--background-color--xlight:var(--background--xlight, #fff);--ez-search--background-medium:var(--background--medium, #f0f3f7);--ez-search--line-height:calc(var(--text--medium, 14px) + 4px);--ez-search__input--background-color:var(--background--medium, #e0e0e0);--ez-search__input--border:var(--border--medium, 2px solid);--ez-search__input--border-color:var(--ez-search__input--background-color);--ez-search__input--focus--border-color:var(--color--primary, #008561);--ez-search__input--disabled--background-color:var(--color--disable-secondary, #F2F5F8);--ez-search__input--disabled--color:var(--text--disable, #AFB6C0);--ez-search__input--error--border-color:#CC2936;--ez-search__btn--color:var(--title--primary, #2B3A54);--ez-search__btn-disabled--color:var(--text--disable, #AFB6C0);--ez-search__btn-hover--color:var(--color--primary, #4e4e4e);--ez-search__label--color:var(--title--primary, #2B3A54);--ez-search--space--medium:var(--space--medium, 12px);--ez-search--space--small:var(--space--small, 6px);display:flex;flex-wrap:wrap;position:relative;width:var(--ez-search--width);min-width:var(--ez-search--min-width)}ez-icon{--ez-icon--color:inherit;font-weight:var(--text-weight--large, 600)}.suppressed-search-input{--ez-text-input__input--border-color:var(--color--strokes, #dce0e8);--ez-text-input__input--disabled--background-color:var(--background--xlight, #fff);--ez-text-input__input--disabled--color:var(--title--primary, #2B3A54)}.btn{outline:none;border:none;background:none;cursor:pointer;color:var(--ez-search__btn--color)}.btn:disabled{cursor:not-allowed;color:var(--ez-search__btn-disabled--color)}.btn:disabled:hover{cursor:not-allowed;color:var(--ez-search__btn-disabled--color)}.btn:hover{color:var(--ez-search__btn-hover--color)}.btn__close{visibility:hidden}ez-text-input:hover .btn__close,ez-text-input:focus .btn__close{visibility:visible}";export{p as ez_search}
@@ -0,0 +1 @@
1
+ import{r as i,c as t,h as a,H as n,g as e}from"./p-23a36bb6.js";import{i as o}from"./p-3b7d9f30.js";import{Action as s,ElementIDUtils as r}from"@sankhyalabs/core";const l="ez-grid-pagination:ask-cancel",c=class{constructor(a){i(this,a),this.pageChange=t(this,"pageChange",7),this._dataUnitInitialized=!1,this._pendingResolve=null,this._collapseTimeout=null,this._suppressedUntilNextAsk=!1,this._hoverEnabled=!1,this.handleLoadAllChange=i=>{this.loadAll=i.target.checked},this.handleAskCancelPagination=i=>{const t=i.detail;if(!t||!this.dataUnit)return;if(t.dataUnitName!==this.dataUnit.name)return;this.resolvePending("CONTINUE"),this._pendingResolve=t.resolve,this._suppressedUntilNextAsk=!1,this._hoverEnabled=!0,this.loadAll=!1;const a=this._cancelPaginationPopoverElement;a&&!a.opened&&"function"==typeof a.showAbove&&a.showAbove({bottom:"4px",right:"4px"})},this.paginationInfo=void 0,this.leftButtonDisabled=void 0,this.rightButtonDisabled=void 0,this.expanded=!1,this.loadAll=!1,this.paginationCounterMode="auto",this.dataUnit=void 0,this.paginationTextPosition="left",this.buttonsSize="large"}async previousPage(){this.dataUnit&&(await this.dataUnit.previousPage(),this.handlePageChange("previous"))}async nextPage(){this.dataUnit&&(await this.dataUnit.nextPage(),this.handlePageChange("next"))}async firstPage(){this.dataUnit&&(await this.dataUnit.gotoPage(0),this.handlePageChange("previous"))}async lastPage(){this.dataUnit&&(await this.dataUnit.gotoPage(this.getTotalPages()-1),this.handlePageChange("next"))}onDataUnitChange(){this.initializeDataUnit()}shouldPresentPaginationLabel(){return"hidden"!==this.paginationCounterMode}getRemainingPageLabel(){var i;return this.paginationInfo?`${null==this.paginationInfo.total?this.i18n("ez-grid-pagination.remainingPageLabel",{count:(null!==(i=this.paginationInfo.count)&&void 0!==i?i:0)+1}):this.i18n("ez-grid-pagination.remainingTotalLabel",{total:this.paginationInfo.total,count:this.paginationInfo.count})}`:""}getActualPageLabel(){var i,t;return this.paginationInfo?`${null!==(i=this.paginationInfo.firstRecord)&&void 0!==i?i:0} - ${null!==(t=this.paginationInfo.lastRecord)&&void 0!==t?t:0}`:"0-0"}getPaginationCount(){var i;if(!this.paginationInfo||!this.dataUnit)return"0-0";const t=(null!==(i=this.paginationInfo.currentPage)&&void 0!==i?i:0)+1;let a=this.getTotalPages();return this.i18n("ez-grid-pagination.pageCounter",{currentPage:t,totalPages:a})}getTotalPages(){var i;return void 0!==this.paginationInfo.total?Math.ceil(this.paginationInfo.total/this.dataUnit.pageSize):Math.ceil((null!==(i=this.paginationInfo.count)&&void 0!==i?i:0)/this.dataUnit.pageSize)}handlePageChange(i){this.setPaginationInfo(),this.setStatusButtonPagination(),this.pageChange.emit(i)}resolvePending(i){if(!this._pendingResolve)return;const t=this._pendingResolve;this._pendingResolve=null,t(i)}async handleCancelAction(){if(!this.dataUnit)return;this.dataUnit.cancelPagination=!0,this.resolvePending("CANCEL"),this._suppressedUntilNextAsk=!0,this.collapse();const i=this._cancelPaginationPopoverElement;i&&"function"==typeof i.hide&&await i.hide()}async handleContinueAction(){this.resolvePending(this.loadAll?"LOAD_ALL":"CONTINUE"),this._suppressedUntilNextAsk=!0,this.loadAll=!1,this.collapse();const i=this._cancelPaginationPopoverElement;i&&"function"==typeof i.hide&&await i.hide()}handleShowCancelPagination(){const i=this._cancelPaginationPopoverElement;if(!this.hasToShowCancelPagination()){if(this._pendingResolve)return;return i&&"function"==typeof i.hide&&i.hide(),this._hoverEnabled=!1,void this.collapse()}this._suppressedUntilNextAsk||(null==i?void 0:i.opened)||i&&"function"==typeof i.showAbove&&i.showAbove({bottom:"4px",right:"4px"})}hasToShowCancelPagination(){return!(!this.dataUnit||!this.paginationInfo)&&(!this.dataUnit.cancelPagination&&void 0===this.paginationInfo.total&&this.paginationInfo.count>this.dataUnit.pageSize)}expand(){this._hoverEnabled&&(this._collapseTimeout&&(clearTimeout(this._collapseTimeout),this._collapseTimeout=null),this.expanded=!0)}collapse(){this._collapseTimeout&&(clearTimeout(this._collapseTimeout),this._collapseTimeout=null),this.expanded=!1}scheduleCollapse(){this._collapseTimeout&&clearTimeout(this._collapseTimeout),this._collapseTimeout=setTimeout((()=>{this._collapseTimeout=null,this.expanded=!1}),120)}setPaginationInfo(){this.paginationInfo=this.dataUnit&&this.dataUnit.getPaginationInfo()||null}dataUnitObserver(i){switch(i.type){case s.PAGINATION_UPDATED:this.setPaginationInfo(),this.setStatusButtonPagination(),this.handleShowCancelPagination();break;case s.DATA_LOADED:this.setPaginationInfo()}}getLeftButtonDisabledStatus(){var i,t;return!this.dataUnit||(null!==(t=null===(i=this.paginationInfo)||void 0===i?void 0:i.currentPage)&&void 0!==t?t:0)<=0}getRightButtonDisabledStatus(){var i;return!this.dataUnit||!(null===(i=this.paginationInfo)||void 0===i?void 0:i.hasMore)}setStatusButtonPagination(){this.leftButtonDisabled=this.getLeftButtonDisabledStatus(),this.rightButtonDisabled=this.getRightButtonDisabledStatus()}initializeDataUnit(){this.dataUnit&&!this._dataUnitInitialized&&(this.setPaginationInfo(),this.setStatusButtonPagination(),this._dataUnitObserverBound=this.dataUnitObserver.bind(this),this.dataUnit.subscribe(this._dataUnitObserverBound),this._dataUnitInitialized=!0)}addInfoId(){this._element&&r.addIDInfo(this._element)}renderCollapsedTrigger(){return a("div",{class:"cancel-pagination__trigger"},a("ez-icon",{iconName:"sync",size:"x-large",class:"spin"}),a("span",{class:"cancel-pagination__label"},this.i18n("ez-grid-pagination.paginationLabel")))}renderExpandedContent(){return a("div",{class:"cancel-pagination__expanded",role:"group","aria-label":this.i18n("ez-grid-pagination.paginationLabel")},a("div",{class:"cancel-pagination__trigger cancel-pagination__trigger--expanded"},a("ez-icon",{iconName:"ellipsis-circle",size:"large",class:"spin"}),a("span",{class:"cancel-pagination__label"},this.i18n("ez-grid-pagination.paginationLabel"))),a("hr",{class:"cancel-pagination__divider","aria-hidden":"true"}),a("p",{class:"cancel-pagination__message"},this.i18n("ez-grid-pagination.largeLoad.line1")),a("p",{class:"cancel-pagination__message"},this.i18n("ez-grid-pagination.largeLoad.line2")),a("p",{class:"cancel-pagination__question"},this.i18n("ez-grid-pagination.largeLoad.line3")),a("label",{class:"cancel-pagination__checkbox"},a("input",{type:"checkbox",checked:this.loadAll,onChange:this.handleLoadAllChange}),a("span",null,this.i18n("ez-grid-pagination.largeLoad.loadAll"))),a("div",{class:"cancel-pagination__actions"},a("ez-button",{class:"cancel-pagination__continue-btn",label:this.i18n("ez-grid-pagination.largeLoad.continue"),size:"small",onClick:()=>this.handleContinueAction()}),a("ez-button",{class:"cancel-pagination__cancel-btn ez-button--primary",label:this.i18n("ez-grid-pagination.largeLoad.cancel"),size:"small",onClick:()=>this.handleCancelAction()})))}renderCancelPagination(){return a("ez-popover",{class:"cancel-pagination__popover",ref:i=>this._cancelPaginationPopoverElement=i,"overlay-type":"none",autoClose:!1},a("div",{class:{"cancel-pagination":!0,"cancel-pagination--expanded":this.expanded},onMouseEnter:()=>this.expand(),onMouseLeave:()=>this.scheduleCollapse()},this.expanded?this.renderExpandedContent():this.renderCollapsedTrigger()))}async connectedCallback(){this._askCancelListenerBound=this.handleAskCancelPagination.bind(this),document.addEventListener(l,this._askCancelListenerBound),this.i18n=await o(),this.initializeDataUnit()}componentDidLoad(){this.addInfoId()}disconnectedCallback(){this._askCancelListenerBound&&(document.removeEventListener(l,this._askCancelListenerBound),this._askCancelListenerBound=void 0),this._collapseTimeout&&(clearTimeout(this._collapseTimeout),this._collapseTimeout=null),this.resolvePending("CONTINUE"),this.dataUnit&&this._dataUnitInitialized&&this._dataUnitObserverBound&&this.dataUnit.unsubscribe(this._dataUnitObserverBound)}render(){return a(n,null,a("div",{id:"grid-pagination--container",class:{pagination__container:!0,"pagination-expanded":"hidden"!==this.paginationCounterMode,"pagination-contracted":"hidden"===this.paginationCounterMode,"pagination-text-right":"right"===this.paginationTextPosition}},a("div",{id:"grid-pagination--page-navigator",class:"pagination__page-navigator"},a("div",{id:"grid-pagination--row-summary-panel",class:"pagination__row-summary-panel"},a("span",{class:"pagination__label","aria-live":"polite","aria-atomic":"true",title:`${this.getActualPageLabel()} ${this.getRemainingPageLabel()}`},this.shouldPresentPaginationLabel()&&this.getActualPageLabel(),this.shouldPresentPaginationLabel()&&this.getRemainingPageLabel())),this.renderCancelPagination(),a("div",{id:"grid-pagination--page-summary-panel",class:{"pagination__page-summary-panel":!0,pagination__container:!0,"pagination-expanded":"hidden"!==this.paginationCounterMode,"pagination-contracted":"hidden"===this.paginationCounterMode,"pagination-text-right":"right"===this.paginationTextPosition}},a("div",{id:"grid-pagination--first-tooltip",class:{"pagination__buttons-container":!0,disabled:this.leftButtonDisabled}},a("ez-tooltip",{message:this.i18n("ez-grid-pagination.firstPage")},a("ez-icon",{size:this.buttonsSize,iconName:"dual-chevron-left",onClick:()=>!this.leftButtonDisabled&&this.firstPage()}))),a("div",{id:"grid-pagination--previous-tooltip",class:{"pagination__buttons-container":!0,disabled:this.leftButtonDisabled}},a("ez-tooltip",{message:this.i18n("ez-grid-pagination.previousPage")},a("ez-icon",{size:this.buttonsSize,iconName:"chevron-left",onClick:()=>!this.leftButtonDisabled&&this.previousPage()}))),a("div",{class:"pagination__container-label"},a("span",{class:"pagination__label","aria-live":"polite","aria-atomic":"true",title:`${this.getActualPageLabel()} ${this.getRemainingPageLabel()}`},this.shouldPresentPaginationLabel()&&this.getPaginationCount())),a("div",{id:"grid-pagination--next-tooltip",class:{"pagination__buttons-container":!0,disabled:this.rightButtonDisabled}},a("ez-tooltip",{message:this.i18n("ez-grid-pagination.nextPage")},a("ez-icon",{size:this.buttonsSize,iconName:"chevron-right",onClick:()=>!this.rightButtonDisabled&&this.nextPage()}))),a("div",{id:"grid-pagination--last-tooltip",class:{"pagination__buttons-container":!0,disabled:this.rightButtonDisabled}},a("ez-tooltip",{message:this.i18n("ez-grid-pagination.lastPage")},a("ez-icon",{size:this.buttonsSize,iconName:"dual-chevron-right",onClick:()=>!this.rightButtonDisabled&&this.lastPage()})))))))}get _element(){return e(this)}static get watchers(){return{dataUnit:["onDataUnitChange"]}}};c.style=":host{display:block}.pagination__container{display:flex;align-items:center;flex-grow:1;flex-shrink:1;flex-wrap:nowrap;justify-content:flex-end;position:relative}ez-popover.cancel-pagination__popover{position:absolute;right:0;bottom:100%;width:0;height:0}.pagination__buttons-container{display:flex;border-radius:50%;background-color:var(--color--ocean-green-90, #E1E2E5);cursor:pointer}.pagination__buttons-container ez-icon{--ez-icon--color:var(--color--ocean-green-600, #008561)}.pagination__buttons-container.disabled{background-color:#DEDEDE;cursor:not-allowed;pointer-events:auto}.pagination__buttons-container.disabled ez-icon{--ez-icon--color:var(--color--petroleum-300, #848D9C);pointer-events:none}.pagination__page-navigator{display:flex;align-items:center}.pagination__row-summary-panel{font-size:var(--font-size--default, 14px);font-family:var(--font--pattern, 'Roboto');color:var(--color--petroleum-300, #848D9C);font-weight:var(--font-weight--regular, 400);padding:var(--space--8, 8px) var(--space--16, 16px)}.pagination__page-summary-panel{display:flex;align-items:center;padding:var(--space--8, 8px) var(--space--16, 16px);gap:var(--space--4, 4px)}.pagination__container-label{margin:0 var(--space--8, 8px)}.pagination-contracted{width:100px}.pagination-expanded{min-width:150px}.pagination__label{font-family:var(--font--pattern, 'Roboto');color:var(--color--petroleum-300, #848D9C);font-weight:var(--font-weight--regular, 400);width:100%;white-space:nowrap}.cancel-pagination{display:flex;flex-direction:column;padding:var(--space--12, 12px);gap:var(--space--16, 16px);min-width:304px;max-width:180px;transition:min-width 220ms cubic-bezier(0.4, 0, 0.2, 1),\n max-width 220ms cubic-bezier(0.4, 0, 0.2, 1);overflow:hidden}.cancel-pagination--expanded{min-width:304px}.cancel-pagination__expanded{animation:cancel-pagination-fade-in 220ms cubic-bezier(0.4, 0, 0.2, 1) 60ms both}@keyframes cancel-pagination-fade-in{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}.cancel-pagination__trigger{display:flex;flex-direction:row;align-items:center;gap:var(--space--16, 16px);padding:var(--space--4, 4px);border-radius:var(--border-radius--small, 4px);cursor:pointer;outline:none}.cancel-pagination__trigger:focus-visible{box-shadow:0 0 0 2px var(--color--ocean-green-600, #008561)}.cancel-pagination__trigger--expanded{cursor:default;padding-bottom:var(--space--4, 4px)}.cancel-pagination__divider{border:0;border-top:1px solid var(--color--petroleum-100, #C8CCD3);width:100%}.cancel-pagination__label{color:var(--color--petroleum-700, #2E3742);font-size:var(--font-size--medium, 16px);font-weight:var(--font-weight--semi-bold, 600);font-family:var(--font--pattern, 'Roboto');white-space:nowrap}.cancel-pagination__expanded{display:flex;flex-direction:column;gap:var(--space--8, 8px)}.cancel-pagination__message{color:var(--color--petroleum-500, #4A5567);font-size:var(--font-size--default, 14px);font-family:var(--font--pattern, 'Roboto');font-weight:var(--font-weight--regular, 400);margin:0;line-height:1.4}.cancel-pagination__question{color:var(--color--petroleum-700, #2E3742);font-size:var(--font-size--default, 14px);font-family:var(--font--pattern, 'Roboto');font-weight:var(--font-weight--semi-bold, 600);margin-top:16px;margin-bottom:8px}.cancel-pagination__checkbox{display:flex;flex-direction:row;align-items:center;gap:var(--space--8, 8px);color:var(--color--petroleum-700, #2E3742);font-size:var(--font-size--default, 14px);font-family:var(--font--pattern, 'Roboto');cursor:pointer}.cancel-pagination__checkbox input[type=\"checkbox\"]{cursor:pointer;accent-color:var(--color--ocean-green-600, #008561)}.cancel-pagination__actions{display:flex;flex-direction:row;justify-content:flex-end;gap:var(--space--8, 8px);padding-top:var(--space--4, 4px)}.spin{animation-name:spin;animation-duration:5000ms;animation-iteration-count:infinite;animation-timing-function:linear;--ez-icon--color:var(--color--ocean-green-600, #008561)}@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.pagination-text-right{flex-direction:row-reverse}";export{c as ez_grid_pagination}
@@ -0,0 +1 @@
1
+ import{r as t,c as i,h as s,H as e,g as r}from"./p-23a36bb6.js";import{ElementIDUtils as o,MaskFormatter as a}from"@sankhyalabs/core";class n{constructor(t){this.mask=t,this.maskChars={"#":t=>/\d/.test(t),U:t=>/[a-zA-Z]/.test(t),L:t=>/[a-zA-Z]/.test(t),A:t=>/[a-zA-Z0-9]/.test(t),Z:t=>/[a-zA-Z0-9]/.test(t),"?":t=>/[a-zA-Z]/.test(t),"*":()=>!0}}format(t){if(!t||!this.mask)return t;const i=this.removeIncompatibleChars(t);let s="",e=0,r=0;for(;r<this.mask.length&&e<i.length;){const t=this.mask[r],o=i[e];if("'"!==t){if(this.maskChars[t]){if(!this.maskChars[t](o)){e++;continue}s+="U"===t||"Z"===t?o.toUpperCase():"L"===t?o.toLowerCase():o,e++}else s+=t,o===t&&e++;r++}else r++,r<this.mask.length&&(s+=this.mask[r],r++)}return s}removeIncompatibleChars(t){let i="";for(let s=0;s<t.length;s++){const e=t[s];let r=!1;for(const t in this.maskChars)if(this.maskChars[t](e)){r=!0;break}if(!r)for(let t=0;t<this.mask.length;t++)if(this.mask[t]===e&&!this.maskChars[this.mask[t]]){r=!0;break}r&&(i+=e)}return i}removeMask(t){if(!t||!this.mask)return t;let i="",s=0,e=0;for(;s<t.length&&e<this.mask.length;){const r=this.mask[e],o=t[s];"'"!==r?(this.maskChars[r]?(this.maskChars[r](o)&&(i+=o),s++):o===r&&s++,e++):(e++,e<this.mask.length&&(o===this.mask[e]&&s++,e++))}for(;s<t.length;){const e=t[s];/[a-zA-Z0-9]/.test(e)&&(i+=e),s++}return i}getMask(){return this.mask}generatePlaceholder(){if(!this.mask)return"";let t="",i=0;for(;i<this.mask.length;){const s=this.mask[i];if("'"!==s){if(this.maskChars[s])switch(s){case"#":case"~":t+="0";break;case"U":case"L":case"?":case"A":t+="A";break;default:t+="_"}else t+=s;i++}else i++,i<this.mask.length&&(t+=this.mask[i],i++)}return t}}const c=class{constructor(s){t(this,s),this.ezChange=i(this,"ezChange",7),this.ezBlur=i(this,"ezBlur",7),this.ezFocus=i(this,"ezFocus",7),this.iconClick=i(this,"iconClick",7),this._internalValueChange=!1,this.type="text",this.value=void 0,this.label=void 0,this.helpText=void 0,this.errorMessage=void 0,this.placeholder=void 0,this.enabled=!0,this.readonly=!1,this.required=!1,this.name=void 0,this.size="default",this.minlength=void 0,this.maxlength=void 0,this.leftIconName=void 0,this.rightIconName=void 0,this.rightIconTooltip=void 0,this.leftIconTooltip=void 0,this.state="default",this.leftIconClickable=!1,this.rightIconClickable=!1,this.mask=void 0,this.emitMaskedValue=!1}async setFocus(t){(null==t?void 0:t.selectText)&&this._inputElem.select(),(null==t?void 0:t.preventScroll)||this._inputElem.scrollIntoView({behavior:"smooth",block:"center"}),this._inputElem.focus({preventScroll:!0})}async setBlur(){this._inputElem.blur()}async syncValue(){if(this._internalValueChange)this._internalValueChange=!1;else if(this.value&&this._maskFormatter&&this._inputElem){const t=this._maskFormatter.format(this.value);this._inputElem.value=t}else this._inputElem&&(this._inputElem.value=this.value||"")}async observeErrorMessage(t){this.state=t&&""!==t.trim()?"error":"default"}onInput(t){try{const i=t.target,s=i.value;if(this._maskFormatter){const{formattedValue:t,cleanValue:e}=this.processInputWithMask(s);this.updateInputValue(i,t,e)}else this.updateInputValueWithoutMask(s)}catch(t){console.error("Error processing input event:",t)}}processInputWithMask(t){return"cgc_cpf"===this.mask?this.processCgcCpfMask(t):this.processRegularMask(t)}processCgcCpfMask(t){const i=t.replace(/\D/g,"");return 11===i.length||14===i.length?(this._maskFormatter=new n(11===i.length?a.DEFAULT_MASKS.cpf:a.DEFAULT_MASKS.cnpj),{formattedValue:this._maskFormatter.format(i),cleanValue:i}):{formattedValue:i,cleanValue:i}}processRegularMask(t){const i=this._maskFormatter.format(t);return{formattedValue:i,cleanValue:this._maskFormatter.removeMask(i)}}isDataChar(t){return/[a-zA-Z0-9]/.test(t)}countDataCharsBefore(t,i){let s=0;for(let e=0;e<i&&e<t.length;e++)this.isDataChar(t[e])&&s++;return s}skipLeadingSeparators(t,i){for(;i<t.length&&!this.isDataChar(t[i]);)i++;return i}findPositionAfterDataChars(t,i){let s=0;for(let e=0;e<=t.length;e++){if(s===i)return this.skipLeadingSeparators(t,e);e<t.length&&this.isDataChar(t[e])&&s++}return t.length}getCursorPositionAfterFormat(t,i,s){const e=this.countDataCharsBefore(t,s);return this.findPositionAfterDataChars(i,e)}restoreCursorSelection(t,i,s,e,r){const o=this.getCursorPositionAfterFormat(i,s,e),a=e===r?o:this.getCursorPositionAfterFormat(i,s,r);t.setSelectionRange(o,a)}updateInputValue(t,i,s){const e=t.value,r=t.selectionStart,o=t.selectionEnd;t.value=i,null!==r&&null!==o&&this.restoreCursorSelection(t,e,i,r,o),this._internalValueChange=!0,this.value=s,this.ezChange.emit(this.emitMaskedValue?i:s)}updateInputValueWithoutMask(t){this._internalValueChange=!0,this.value=t,this.ezChange.emit(t)}onBlur(){this.ezBlur.emit(this.value)}onFocus(){this.ezFocus.emit(this.value)}handleIconClick(t,i){this.enabled&&("left"===i&&!this.leftIconClickable||"right"===i&&!this.rightIconClickable?this.setFocus({preventScroll:!0}):(t.stopPropagation(),this.iconClick.emit({icon:i})))}addInfoId(){this._element&&o.addIDInfo(this._element),this._inputElem&&o.addIDInfo(this._inputElem,"classic-input",{id:"embedded"})}buildPlaceholder(){!this.placeholder&&this._maskFormatter&&(this.placeholder=this._maskFormatter.generatePlaceholder())}buildMaskFormatter(){if(this.mask&&(!this._maskFormatter||"cgc_cpf"===this.mask)){const t=this.getMaskToBuilder();this._maskFormatter=t?new n(t):void 0}}getMaskToBuilder(){return"cgc_cpf"===this.mask?this.getCGCCpfMask():"phone"===this.mask?this.getPhoneMask():this.mask in a.DEFAULT_MASKS?a.DEFAULT_MASKS[this.mask]:this.mask}getPhoneMask(){return this.value&&10===this.value.length?n.DEFAULT_MASKS?n.DEFAULT_MASKS.phone:void 0:this.value&&11===this.value.length&&n.DEFAULT_MASKS?n.DEFAULT_MASKS.phone_mobile:void 0}getCGCCpfMask(){var t,i;return 11===(null===(t=this.value)||void 0===t?void 0:t.length)?a.DEFAULT_MASKS.cpf:14===(null===(i=this.value)||void 0===i?void 0:i.length)?a.DEFAULT_MASKS.cnpj:void 0}componentDidRender(){this.buildMaskFormatter(),this.buildPlaceholder(),this.syncValue()}componentDidLoad(){this.syncValue(),this.addInfoId()}render(){return s(e,null,s("label",{title:this.label,htmlFor:this.name},this.label,this.required&&s("span",{class:"required-indicator"},"*")),s("div",{class:"input-container "+(this.size?`input-container--${this.size}`:""),"data-state":this.state,"data-disabled":(!this.enabled).toString(),onClick:()=>this.setFocus({preventScroll:!0})},this.leftIconName&&s("ez-icon",{iconName:this.leftIconName,title:this.leftIconTooltip,onClick:t=>this.handleIconClick(t,"left"),class:{"icon-clickable":this.leftIconClickable}}),s("input",{ref:t=>this._inputElem=t,id:this.name,type:this.type,title:this.value,placeholder:this.placeholder,disabled:!this.enabled,readonly:this.readonly,name:this.name,minlength:this.minlength,maxlength:this.maxlength,onInput:t=>this.onInput(t),onBlur:this.onBlur.bind(this),onFocus:this.onFocus.bind(this)}),this.rightIconName&&s("ez-icon",{iconName:this.rightIconName,title:this.rightIconTooltip,onClick:t=>this.handleIconClick(t,"right"),class:{"icon-clickable":this.rightIconClickable}})),(this.helpText||this.errorMessage)&&s("span",{id:"input_helpText",title:this.errorMessage||this.helpText},this.errorMessage||this.helpText))}get _element(){return r(this)}static get watchers(){return{value:["syncValue"],errorMessage:["observeErrorMessage"]}}};c.style=':host{display:flex;flex-direction:column;align-items:flex-start;box-sizing:border-box;font-family:var(--font--pattern, Arial, sans-serif);font-size:var(--font-size--default, 14px);color:var(--color--ocean-green-1000, #00281D);border:none;padding:0;padding-inline:var(--space--2, 2px);width:100%;--ez-classic-input--label-color:var(--color--ocean-green-1000, #00281D);--ez-classic-input--border-color-default:var(--color--gray-200, #D2D2D3);--ez-classic-input--border-color-focus:var(--color--gray-300, #A4A5A7);--ez-classic-input--border-color-success:var(--color--green-600, #157A00);--ez-classic-input--border-color-error:var(--color--red-600, #BD0025);--ez-classic-input--border-color-warning:var(--color--yellow-600, #EFB103);--ez-classic-input--background-color:var(--color--gray-70, #FFFFFF);--ez-classic-input--background-color-disabled:var(--color--gray-90, #EAEAEA);--ez-classic-input--text-color:var(--color--ocean-green-1000, #00281D);--ez-classic-input--placeholder-color:#bdbdbd;--ez-classic-input--icon-color:var(--color--gray-400, #77777A);--ez-classic-input--helptext-color:var(--color--ocean-green-1000, #00281D);--ez-classic-input--height:var(--space--56, 56px);--ez-classic-input--height-small:var(--space--48, 48px);--ez-classic-input--height-xsmall:var(--space--40, 40px);--ez-classic-input--gap:var(--space--10, 10px);--ez-classic-input--padding-inline:var(--space--16, 16px)}.input-container{display:flex;flex-direction:row;align-items:center;width:100%;border:none;border-radius:var(--border--radius-8, 8px);padding-inline:var(--ez-classic-input--padding-inline);box-sizing:border-box;gap:var(--ez-classic-input--gap);margin-block:var(--space--4, 4px);transition:box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);height:var(--ez-classic-input--height);background-color:var(--ez-classic-input--background-color)}.input-container--small{height:var(--ez-classic-input--height-small)}.input-container--xsmall{height:var(--ez-classic-input--height-xsmall)}.input-container,.input-container[data-state="default"]{box-shadow:0 0 0 1px var(--ez-classic-input--border-color-default)}.input-container[data-state="success"]{box-shadow:0 0 0 var(--space--2, 2px) var(--ez-classic-input--border-color-success)}.input-container[data-state="error"]{box-shadow:0 0 0 var(--space--2, 2px) var(--ez-classic-input--border-color-error)}.input-container[data-state="warning"]{box-shadow:0 0 0 var(--space--2, 2px) var(--ez-classic-input--border-color-warning)}.input-container:focus-within{box-shadow:0 0 0 var(--space--2, 2px) var(--ez-classic-input--border-color-focus)}ez-icon{min-width:var(--space--24, 24px);color:var(--ez-classic-input--icon-color)}input{flex:1;border:none;outline:none;background:transparent;height:100%;width:100%;padding:0;font-family:var(--font--pattern, Arial, sans-serif);font-size:var(--font-size--default, 14px);color:var(--color--ocean-green-1000, #00281D);text-overflow:ellipsis;color:var(--ez-classic-input--text-color)}input::placeholder{color:var(--ez-classic-input--placeholder-color)}.input-container[data-disabled="true"]{cursor:not-allowed;background:var(--ez-classic-input--background-color-disabled);border-color:var(--ez-classic-input--border-color-default)}.input-container[data-disabled="true"]>*{cursor:not-allowed}.input-container input:read-only{cursor:default}@keyframes ez-helptext-fadein{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}span{font-size:var(--font-size--xsmall, 10px);line-height:var(--line-height--16, 16px);overflow:hidden;text-overflow:ellipsis;animation:ez-helptext-fadein 0.3s ease;color:var(--ez-classic-input--helptext-color)}label{display:block;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ez-classic-input--label-color)}.icon-clickable{cursor:pointer}.required-indicator{font-size:var(--font--size--default, 14px);font-family:var(--font--pattern, \'Roboto\');color:var(--color--red-600, #BD0025);margin-left:var(--space--4, 4px);vertical-align:top}';export{c as ez_classic_input}