@pantograph/vue 0.23.3 → 0.23.4

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 (288) hide show
  1. package/dist/ActionButton/index.js +1 -1
  2. package/dist/ActionButton/index.umd.cjs +1 -1
  3. package/dist/ActionButton.vue_vue_type_script_setup_true_lang-BM-HiVKZ.js +1 -0
  4. package/dist/{ActionButton.vue_vue_type_script_setup_true_lang-C40QLnax.js → ActionButton.vue_vue_type_script_setup_true_lang-CoWtYp90.js} +2 -2
  5. package/dist/Alert/index.js +1 -1
  6. package/dist/Alert/index.umd.cjs +1 -1
  7. package/dist/{Alert.vue_vue_type_style_index_0_lang-x6PDS57O.js → Alert.vue_vue_type_style_index_0_lang-CsZWFSR_.js} +1 -1
  8. package/dist/{Alert.vue_vue_type_style_index_0_lang-DugtMNn6.js → Alert.vue_vue_type_style_index_0_lang-DmEdkb41.js} +4 -4
  9. package/dist/Avatar/index.js +1 -1
  10. package/dist/Avatar/index.umd.cjs +1 -1
  11. package/dist/{Avatar.vue_vue_type_style_index_0_lang-DTxpdu2k.js → Avatar.vue_vue_type_style_index_0_lang-CcKQb0PA.js} +3 -3
  12. package/dist/{Avatar.vue_vue_type_style_index_0_lang-Dbdnz5VW.js → Avatar.vue_vue_type_style_index_0_lang-DTndXzmH.js} +1 -1
  13. package/dist/AvatarGroup/index.js +1 -1
  14. package/dist/AvatarGroup/index.umd.cjs +1 -1
  15. package/dist/Badge/index.js +1 -1
  16. package/dist/Badge/index.umd.cjs +1 -1
  17. package/dist/{Badge.vue_vue_type_script_setup_true_lang-Dc6rezGr.js → Badge.vue_vue_type_script_setup_true_lang-Blql7wH1.js} +2 -2
  18. package/dist/Badge.vue_vue_type_script_setup_true_lang-CsIGsGWg.js +1 -0
  19. package/dist/Base/BaseBadge/BaseBadge.d.ts +1 -1
  20. package/dist/{BaseBadge.vue_vue_type_style_index_0_lang-BMX9MX3W.js → BaseBadge.vue_vue_type_style_index_0_lang-Bhdde0lY.js} +14 -13
  21. package/dist/BaseBadge.vue_vue_type_style_index_0_lang-CA4e9gEN.js +1 -0
  22. package/dist/BaseButton.vue_vue_type_style_index_0_lang-Ch3LDS1D.js +1 -0
  23. package/dist/{BaseButton.vue_vue_type_style_index_0_lang-BGYEuhbj.js → BaseButton.vue_vue_type_style_index_0_lang-stkOtvTd.js} +19 -18
  24. package/dist/Button/Button.d.ts +2 -2
  25. package/dist/Button/index.js +1 -1
  26. package/dist/Button/index.umd.cjs +1 -1
  27. package/dist/Button.vue_vue_type_script_setup_true_lang-BouXlBWO.js +1 -0
  28. package/dist/{Button.vue_vue_type_script_setup_true_lang-bjhWtH8H.js → Button.vue_vue_type_script_setup_true_lang-CIjMWs2s.js} +2 -2
  29. package/dist/Checkbox/Checkbox.d.ts +2 -2
  30. package/dist/Checkbox/index.js +1 -1
  31. package/dist/Checkbox/index.umd.cjs +1 -1
  32. package/dist/Checkbox.vue_vue_type_style_index_0_lang-2qQxhEQ0.js +224 -0
  33. package/dist/Checkbox.vue_vue_type_style_index_0_lang-Bo8DiMqm.js +1 -0
  34. package/dist/CheckboxGroup/CheckboxGroup.d.ts +7 -4
  35. package/dist/CheckboxGroup/index.js +1 -1
  36. package/dist/CheckboxGroup/index.umd.cjs +1 -1
  37. package/dist/Chip/Chip.d.ts +1 -0
  38. package/dist/Chip/index.js +2 -2
  39. package/dist/Chip/index.umd.cjs +1 -1
  40. package/dist/{Chip.vue_vue_type_style_index_0_lang-Ci2Oqnfd.js → Chip.vue_vue_type_style_index_0_lang-pkEj-IcZ.js} +24 -22
  41. package/dist/Chip.vue_vue_type_style_index_0_lang-qKiQbAUD.js +1 -0
  42. package/dist/ChipGroup/index.js +1 -1
  43. package/dist/ChipGroup/index.umd.cjs +1 -1
  44. package/dist/{ChipGroup.vue_vue_type_style_index_0_lang-Bln1W3La.js → ChipGroup.vue_vue_type_style_index_0_lang-BFHkFjPI.js} +1 -1
  45. package/dist/{ChipGroup.vue_vue_type_style_index_0_lang-ZlvXsJHD.js → ChipGroup.vue_vue_type_style_index_0_lang-DmbWGoar.js} +1 -1
  46. package/dist/ColorPicker/index.js +1 -1
  47. package/dist/ColorPicker/index.umd.cjs +1 -1
  48. package/dist/{ColorPicker.vue_vue_type_style_index_0_lang-B8rVS60w.js → ColorPicker.vue_vue_type_style_index_0_lang-CxWDk_6b.js} +263 -263
  49. package/dist/{ColorPicker.vue_vue_type_style_index_0_lang-BnjCOPow.js → ColorPicker.vue_vue_type_style_index_0_lang-DKGxK13w.js} +2 -2
  50. package/dist/ColorSwatch/ColorSwatch.d.ts +1 -1
  51. package/dist/ColorSwatch/index.js +1 -1
  52. package/dist/ColorSwatch/index.umd.cjs +1 -1
  53. package/dist/ColorSwatch.vue_vue_type_style_index_0_lang-CABlbyiP.js +1 -0
  54. package/dist/{ColorSwatch.vue_vue_type_style_index_0_lang-CjQa4I-g.js → ColorSwatch.vue_vue_type_style_index_0_lang-CAXvzEY_.js} +4 -5
  55. package/dist/ColorSwatchGroup/index.js +1 -1
  56. package/dist/ColorSwatchGroup/index.umd.cjs +1 -1
  57. package/dist/{ColorSwatchGroup.vue_vue_type_style_index_0_lang-BxBlKgbC.js → ColorSwatchGroup.vue_vue_type_style_index_0_lang-Cjn4NZYK.js} +38 -36
  58. package/dist/ColorSwatchGroup.vue_vue_type_style_index_0_lang-D8oB421I.js +1 -0
  59. package/dist/ColorTrigger/index.js +1 -1
  60. package/dist/ColorTrigger/index.umd.cjs +1 -1
  61. package/dist/ColorTrigger.vue_vue_type_style_index_0_lang-BsexkD4u.js +1 -0
  62. package/dist/{ColorTrigger.vue_vue_type_style_index_0_lang-BNTg203W.js → ColorTrigger.vue_vue_type_style_index_0_lang-XqnB_VGl.js} +25 -23
  63. package/dist/Combobox/Combobox.d.ts +82 -0
  64. package/dist/Combobox/Combobox.model.d.ts +4 -0
  65. package/dist/Combobox/ComboboxInput.d.ts +2 -0
  66. package/dist/Combobox/ComboboxLabel.d.ts +16 -0
  67. package/dist/Combobox/ComboboxOption.d.ts +19 -0
  68. package/dist/Combobox/ComboboxTrigger.d.ts +4 -0
  69. package/dist/Combobox/ComboboxWrapper.d.ts +4 -0
  70. package/dist/Combobox/context.d.ts +34 -0
  71. package/dist/Combobox/index.d.ts +4 -0
  72. package/dist/Combobox/index.js +8 -0
  73. package/dist/Combobox/index.umd.cjs +1 -0
  74. package/dist/Combobox/types.d.ts +111 -0
  75. package/dist/Combobox.vue_vue_type_style_index_0_lang-BM7QiXKH.js +831 -0
  76. package/dist/Combobox.vue_vue_type_style_index_0_lang-IdKdwJfN.js +1 -0
  77. package/dist/ConfigProvider/index.js +5 -5
  78. package/dist/ConfigProvider/index.umd.cjs +1 -1
  79. package/dist/DataTable/DataTable.d.ts +1 -1
  80. package/dist/DataTable/index.js +1 -1
  81. package/dist/DataTable/index.umd.cjs +1 -1
  82. package/dist/DataTable.vue_vue_type_style_index_0_lang-CnUiY5l1.js +1 -0
  83. package/dist/{DataTable.vue_vue_type_style_index_0_lang-9W9p_J1i.js → DataTable.vue_vue_type_style_index_0_lang-CpQ0Yn-D.js} +161 -156
  84. package/dist/DropZone/DropZone.d.ts +1 -1
  85. package/dist/DropZone/index.js +1 -1
  86. package/dist/DropZone/index.umd.cjs +1 -1
  87. package/dist/{DropZone.vue_vue_type_style_index_0_lang-CH23eQwT.js → DropZone.vue_vue_type_style_index_0_lang-BnrcUu_6.js} +2 -2
  88. package/dist/DropZone.vue_vue_type_style_index_0_lang-DVZrmQwL.js +1 -0
  89. package/dist/Empty/index.js +1 -1
  90. package/dist/Empty/index.umd.cjs +1 -1
  91. package/dist/Empty.vue_vue_type_style_index_0_lang-DidQV2p4.js +1 -0
  92. package/dist/{Empty.vue_vue_type_style_index_0_lang-C4a5JepF.js → Empty.vue_vue_type_style_index_0_lang-jfObDGf0.js} +1 -1
  93. package/dist/FloatButton/index.js +1 -1
  94. package/dist/FloatButton/index.umd.cjs +1 -1
  95. package/dist/FloatButton.vue_vue_type_script_setup_true_lang-BOFSVjFP.js +1 -0
  96. package/dist/{FloatButton.vue_vue_type_script_setup_true_lang-BGZBnlXi.js → FloatButton.vue_vue_type_script_setup_true_lang-Br1BEY7H.js} +2 -2
  97. package/dist/Form/Form.d.ts +2 -2
  98. package/dist/Form/index.js +1 -1
  99. package/dist/Form/index.umd.cjs +1 -1
  100. package/dist/FormItem.vue_vue_type_style_index_0_lang-CwxlEgep.js +2785 -0
  101. package/dist/FormItem.vue_vue_type_style_index_0_lang-s7o6crR0.js +9 -0
  102. package/dist/GOPicker/GOPicker.d.ts +13 -8
  103. package/dist/GOPicker/index.js +1 -1
  104. package/dist/GOPicker/index.umd.cjs +1 -1
  105. package/dist/GraphicalObject/index.js +1 -1
  106. package/dist/GraphicalObject/index.umd.cjs +1 -1
  107. package/dist/GraphicalObject.vue_vue_type_script_setup_true_lang-BlFC2U5K.js +1 -0
  108. package/dist/{GraphicalObject.vue_vue_type_script_setup_true_lang-BZCn44kG.js → GraphicalObject.vue_vue_type_script_setup_true_lang-C7HScEPN.js} +3 -3
  109. package/dist/GraphicalObjectGroup/index.js +1 -1
  110. package/dist/GraphicalObjectGroup/index.umd.cjs +1 -1
  111. package/dist/{GraphicalObjectGroup.vue_vue_type_style_index_0_lang-DiSPJXBZ.js → GraphicalObjectGroup.vue_vue_type_style_index_0_lang-ChJsB7QV.js} +1 -1
  112. package/dist/{GraphicalObjectGroup.vue_vue_type_style_index_0_lang-COvFyzfP.js → GraphicalObjectGroup.vue_vue_type_style_index_0_lang-DgjnAH0N.js} +1 -1
  113. package/dist/Icon/index.js +1 -1
  114. package/dist/Icon/index.umd.cjs +1 -1
  115. package/dist/Icon.vue_vue_type_style_index_0_lang-CbLL-Ngi.js +49 -0
  116. package/dist/Icon.vue_vue_type_style_index_0_lang-D3cRtJNJ.js +1 -0
  117. package/dist/IconButton/IconButton.d.ts +2 -2
  118. package/dist/IconButton/index.js +1 -1
  119. package/dist/IconButton/index.umd.cjs +1 -1
  120. package/dist/{IconButton.vue_vue_type_script_setup_true_lang-BjFzPsUi.js → IconButton.vue_vue_type_script_setup_true_lang-DAX_14ed.js} +2 -2
  121. package/dist/IconButton.vue_vue_type_script_setup_true_lang-DvbKC7wq.js +1 -0
  122. package/dist/Image/index.js +1 -1
  123. package/dist/Image/index.umd.cjs +1 -1
  124. package/dist/Image.vue_vue_type_style_index_0_lang-CGdnuyxZ.js +1 -0
  125. package/dist/{Image.vue_vue_type_style_index_0_lang-3vJwTwh4.js → Image.vue_vue_type_style_index_0_lang-CqilRo2A.js} +17 -16
  126. package/dist/IndentLevel/IndentLevel.d.ts +1 -1
  127. package/dist/IndentLevel/index.js +1 -1
  128. package/dist/IndentLevel/index.umd.cjs +1 -1
  129. package/dist/{IndentLevel.vue_vue_type_style_index_0_lang-BWLdpspA.js → IndentLevel.vue_vue_type_style_index_0_lang-CjaQqD7w.js} +8 -8
  130. package/dist/IndentLevel.vue_vue_type_style_index_0_lang-DD2920xJ.js +1 -0
  131. package/dist/Indicator/index.js +1 -1
  132. package/dist/Indicator/index.umd.cjs +1 -1
  133. package/dist/Indicator.vue_vue_type_script_setup_true_lang-Bnqpi2bU.js +1 -0
  134. package/dist/{Indicator.vue_vue_type_script_setup_true_lang-B1mn9s7i.js → Indicator.vue_vue_type_script_setup_true_lang-D5xqdZRn.js} +2 -2
  135. package/dist/Input/Input.d.ts +4 -4
  136. package/dist/Input/index.js +1 -1
  137. package/dist/Input/index.umd.cjs +1 -1
  138. package/dist/Input.vue_vue_type_style_index_0_lang-5iaTCkoa.js +1 -0
  139. package/dist/{Input.vue_vue_type_style_index_0_lang-BFNYYFfe.js → Input.vue_vue_type_style_index_0_lang-C-jEi11-.js} +48 -46
  140. package/dist/Kbd/index.js +1 -1
  141. package/dist/Kbd/index.umd.cjs +1 -1
  142. package/dist/{Kbd.vue_vue_type_style_index_0_lang-uEudChpD.js → Kbd.vue_vue_type_style_index_0_lang-BQkzD8ay.js} +1 -1
  143. package/dist/Kbd.vue_vue_type_style_index_0_lang-CjNtLg1e.js +1 -0
  144. package/dist/Label/index.js +1 -1
  145. package/dist/Label/index.umd.cjs +1 -1
  146. package/dist/Link/index.js +1 -1
  147. package/dist/Link/index.umd.cjs +1 -1
  148. package/dist/{Link.vue_vue_type_style_index_0_lang-AsoIRQm_.js → Link.vue_vue_type_style_index_0_lang-BrS3jRuX.js} +16 -15
  149. package/dist/Link.vue_vue_type_style_index_0_lang-C1i1VsGw.js +1 -0
  150. package/dist/Menu/Menu.d.ts +6 -13
  151. package/dist/Menu/MenuItemWrapper.d.ts +15 -0
  152. package/dist/Menu/index.js +1 -1
  153. package/dist/Menu/index.umd.cjs +1 -1
  154. package/dist/MenuItem/MenuItem.d.ts +2 -26
  155. package/dist/MenuItem/MenuItemContent.d.ts +2 -1
  156. package/dist/MenuItem/index.js +1 -1
  157. package/dist/MenuItem/index.umd.cjs +1 -1
  158. package/dist/MenuItem.vue_vue_type_style_index_0_lang-DGaSx-eQ.js +579 -0
  159. package/dist/MenuItem.vue_vue_type_style_index_0_lang-DL9Njg73.js +1 -0
  160. package/dist/Popover/Popover.d.ts +1 -1
  161. package/dist/Popover/index.js +1 -1
  162. package/dist/Popover/index.umd.cjs +1 -1
  163. package/dist/Popover/utils.d.ts +0 -1
  164. package/dist/Popover.vue_vue_type_style_index_0_lang-CZYvVeso.js +1 -0
  165. package/dist/Popover.vue_vue_type_style_index_0_lang-ColyiCeV.js +241 -0
  166. package/dist/RadioGroup/RadioGroupItem.d.ts +2 -2
  167. package/dist/RadioGroup/index.js +1 -1
  168. package/dist/RadioGroup/index.umd.cjs +1 -1
  169. package/dist/{RadioGroup.vue_vue_type_script_setup_true_lang-bWA97IMn.js → RadioGroup.vue_vue_type_script_setup_true_lang-Buet9dc2.js} +2 -2
  170. package/dist/RadioGroup.vue_vue_type_script_setup_true_lang-lIx8QQp8.js +1 -0
  171. package/dist/ScrollContainer/ScrollContainer.d.ts +1 -1
  172. package/dist/ScrollContainer/index.js +1 -1
  173. package/dist/ScrollContainer/index.umd.cjs +1 -1
  174. package/dist/ScrollContainer.vue_vue_type_style_index_0_lang-BIoD2_5T.js +1 -0
  175. package/dist/{ScrollContainer.vue_vue_type_style_index_0_lang-CZgFGbH_.js → ScrollContainer.vue_vue_type_style_index_0_lang-DfMU1mTu.js} +1 -1
  176. package/dist/Segmented/Segmented.d.ts +57 -0
  177. package/dist/Segmented/Segmented.model.d.ts +2 -0
  178. package/dist/Segmented/index.d.ts +2 -0
  179. package/dist/Segmented/index.js +6 -0
  180. package/dist/Segmented/index.umd.cjs +1 -0
  181. package/dist/Segmented.vue_vue_type_style_index_0_lang-DqaTvxYQ.js +1 -0
  182. package/dist/Segmented.vue_vue_type_style_index_0_lang-R_eXQ6g9.js +165 -0
  183. package/dist/Select/Select.d.ts +2 -2
  184. package/dist/Select/context.d.ts +1 -3
  185. package/dist/Select/index.js +1 -1
  186. package/dist/Select/index.umd.cjs +1 -1
  187. package/dist/Select/types.d.ts +1 -0
  188. package/dist/Select.vue_vue_type_style_index_0_lang-Bc9kyMDB.js +1 -0
  189. package/dist/Select.vue_vue_type_style_index_0_lang-BfUtCG_-.js +714 -0
  190. package/dist/Shortcut/index.js +1 -1
  191. package/dist/Shortcut/index.umd.cjs +1 -1
  192. package/dist/Shortcut.vue_vue_type_style_index_0_lang-DOhEtw_i.js +1 -0
  193. package/dist/{Shortcut.vue_vue_type_style_index_0_lang-DXBz4Ysp.js → Shortcut.vue_vue_type_style_index_0_lang-TtzM0gcb.js} +2 -2
  194. package/dist/Skeleton/Skeleton.d.ts +1 -1
  195. package/dist/Spinner/index.js +1 -1
  196. package/dist/Spinner/index.umd.cjs +1 -1
  197. package/dist/{Spinner.vue_vue_type_style_index_0_lang-DxV3D_9N.js → Spinner.vue_vue_type_style_index_0_lang-Dc9P7GsT.js} +13 -13
  198. package/dist/Spinner.vue_vue_type_style_index_0_lang-RE3hFFZA.js +1 -0
  199. package/dist/SubMenu/SubMenu.d.ts +44 -0
  200. package/dist/SubMenu/index.d.ts +1 -0
  201. package/dist/SubMenu/index.js +5 -0
  202. package/dist/SubMenu/index.umd.cjs +1 -0
  203. package/dist/Switch/Switch.d.ts +3 -3
  204. package/dist/Switch/index.js +1 -1
  205. package/dist/Switch/index.umd.cjs +1 -1
  206. package/dist/Switch.vue_vue_type_style_index_0_lang-DhuZK1wp.js +1 -0
  207. package/dist/{Switch.vue_vue_type_style_index_0_lang-BrkQxi9f.js → Switch.vue_vue_type_style_index_0_lang-jzphTPAF.js} +5 -4
  208. package/dist/{THead.vue_vue_type_style_index_0_lang-BcVlFS1z.js → THead.vue_vue_type_style_index_0_lang-DtBQAI4D.js} +1 -1
  209. package/dist/THead.vue_vue_type_style_index_0_lang-Du3rBBec.js +1 -0
  210. package/dist/Table/index.js +1 -1
  211. package/dist/Table/index.umd.cjs +1 -1
  212. package/dist/Textarea/Textarea.d.ts +7 -7
  213. package/dist/Textarea/index.js +1 -1
  214. package/dist/Textarea/index.umd.cjs +1 -1
  215. package/dist/Textarea.vue_vue_type_style_index_0_lang-BMbkTBJu.js +1 -0
  216. package/dist/{Textarea.vue_vue_type_style_index_0_lang-DnQgUyjY.js → Textarea.vue_vue_type_style_index_0_lang-Dbdx29In.js} +27 -25
  217. package/dist/Tree/Tree.model.d.ts +2 -1
  218. package/dist/Tree/TreeNode.d.ts +6 -6
  219. package/dist/Tree/index.js +1 -1
  220. package/dist/Tree/index.umd.cjs +1 -1
  221. package/dist/Tree/utils.d.ts +1 -0
  222. package/dist/{Tree.vue_vue_type_style_index_0_lang-BRU_5PuO.js → Tree.vue_vue_type_style_index_0_lang-Bcy8moE2.js} +678 -695
  223. package/dist/Tree.vue_vue_type_style_index_0_lang-BrJHHwGl.js +6 -0
  224. package/dist/_getTag-CIY3u1-e.js +1 -0
  225. package/dist/_getTag-MDQGqxLN.js +127 -0
  226. package/dist/{getEmojiList-BtCA6cyU.js → getEmojiList-DSYihWrO.js} +253 -215
  227. package/dist/getEmojiList-kI-Nn4xv.js +1 -0
  228. package/dist/index-DWw7aruo.js +1 -0
  229. package/dist/index-jwkhq8oW.js +188 -0
  230. package/dist/index.d.ts +3 -0
  231. package/dist/index.js +173 -161
  232. package/dist/index.umd.cjs +1 -1
  233. package/dist/isEmpty-bCllo8T9.js +1 -0
  234. package/dist/isEmpty-wdqPTIXx.js +21 -0
  235. package/dist/omit-B3e_dACs.js +629 -0
  236. package/dist/omit-DEPypqqe.js +1 -0
  237. package/dist/style/index.css +1 -1
  238. package/dist/{uniq-D8HAKpFq.js → uniq-BsN259vC.js} +17 -16
  239. package/dist/uniq-Dhcbw64V.js +1 -0
  240. package/dist/useInputDataStates-CtuCKcP6.js +57 -0
  241. package/dist/useInputDataStates-DEfYzXQl.js +1 -0
  242. package/dist/utils/index.js +1 -1
  243. package/dist/utils/index.umd.cjs +1 -1
  244. package/dist/utils/useInputDataStates.d.ts +1 -1
  245. package/package.json +16 -1
  246. package/dist/ActionButton.vue_vue_type_script_setup_true_lang-Zbt1lDGL.js +0 -1
  247. package/dist/Badge.vue_vue_type_script_setup_true_lang-hG6klYy2.js +0 -1
  248. package/dist/BaseBadge.vue_vue_type_style_index_0_lang-VEdsFDiH.js +0 -1
  249. package/dist/BaseButton.vue_vue_type_style_index_0_lang-CcVDY3yV.js +0 -1
  250. package/dist/Button.vue_vue_type_script_setup_true_lang--np1Hw7N.js +0 -1
  251. package/dist/Checkbox.vue_vue_type_style_index_0_lang-5tG-1ejh.js +0 -215
  252. package/dist/Checkbox.vue_vue_type_style_index_0_lang-DaWMPx_d.js +0 -1
  253. package/dist/Chip.vue_vue_type_style_index_0_lang-DqVcmql_.js +0 -1
  254. package/dist/ColorSwatch.vue_vue_type_style_index_0_lang-BCkqRsud.js +0 -1
  255. package/dist/ColorSwatchGroup.vue_vue_type_style_index_0_lang-DBbTuynH.js +0 -1
  256. package/dist/ColorTrigger.vue_vue_type_style_index_0_lang-Brci1et_.js +0 -1
  257. package/dist/DataTable.vue_vue_type_style_index_0_lang-DOJv5evl.js +0 -1
  258. package/dist/DropZone.vue_vue_type_style_index_0_lang-oJc56iXj.js +0 -1
  259. package/dist/Empty.vue_vue_type_style_index_0_lang-DHvpu4sq.js +0 -1
  260. package/dist/FloatButton.vue_vue_type_script_setup_true_lang-CaKIkb0P.js +0 -1
  261. package/dist/GraphicalObject.vue_vue_type_script_setup_true_lang-Byz-BOG1.js +0 -1
  262. package/dist/Icon.vue_vue_type_style_index_0_lang-Cc8Uh2lr.js +0 -9
  263. package/dist/Icon.vue_vue_type_style_index_0_lang-Kn_r4tp8.js +0 -3746
  264. package/dist/IconButton.vue_vue_type_script_setup_true_lang-CGb0HxvX.js +0 -1
  265. package/dist/Image.vue_vue_type_style_index_0_lang-DVDZ0ova.js +0 -1
  266. package/dist/IndentLevel.vue_vue_type_style_index_0_lang-DVx2S15S.js +0 -1
  267. package/dist/Indicator.vue_vue_type_script_setup_true_lang-_V0q7Zly.js +0 -1
  268. package/dist/Input.vue_vue_type_style_index_0_lang-HuiLdgsj.js +0 -1
  269. package/dist/Kbd.vue_vue_type_style_index_0_lang-CuYfgo6l.js +0 -1
  270. package/dist/Link.vue_vue_type_style_index_0_lang-BgwJE1ku.js +0 -1
  271. package/dist/Menu.vue_vue_type_style_index_0_lang-CFuwm984.js +0 -460
  272. package/dist/Menu.vue_vue_type_style_index_0_lang-CiyZmFBO.js +0 -1
  273. package/dist/Popover.vue_vue_type_style_index_0_lang-B-MX4Q7D.js +0 -242
  274. package/dist/Popover.vue_vue_type_style_index_0_lang-BnKgARrA.js +0 -1
  275. package/dist/RadioGroup.vue_vue_type_script_setup_true_lang-Dq66i_P9.js +0 -1
  276. package/dist/ScrollContainer.vue_vue_type_style_index_0_lang-CMdXXxZr.js +0 -1
  277. package/dist/Select.vue_vue_type_style_index_0_lang-C4F2WmaG.js +0 -698
  278. package/dist/Select.vue_vue_type_style_index_0_lang-D8SgxILT.js +0 -1
  279. package/dist/Shortcut.vue_vue_type_style_index_0_lang-DIDsOrKm.js +0 -1
  280. package/dist/Spinner.vue_vue_type_style_index_0_lang-17QUeFmj.js +0 -1
  281. package/dist/Switch.vue_vue_type_style_index_0_lang-DISD-AzJ.js +0 -1
  282. package/dist/THead.vue_vue_type_style_index_0_lang-Ck81v68E.js +0 -1
  283. package/dist/Textarea.vue_vue_type_style_index_0_lang-CJHHqEWa.js +0 -1
  284. package/dist/Tree.vue_vue_type_style_index_0_lang-B9L-4ciK.js +0 -6
  285. package/dist/getEmojiList-Cz4Rzfi1.js +0 -1
  286. package/dist/uniq-Ci_ZUo6O.js +0 -1
  287. package/dist/useInputDataStates-BVOCxFWp.js +0 -56
  288. package/dist/useInputDataStates-C6bS7MJv.js +0 -1
@@ -1,16 +1,19 @@
1
- import { defineComponent as tn, useSlots as nn, computed as A, useTemplateRef as _n, resolveComponent as Dn, createElementBlock as Xe, openBlock as me, mergeProps as st, unref as m, createCommentVNode as Ye, createVNode as ut, withDirectives as Cn, normalizeClass as Ae, withKeys as Xt, withCtx as Te, createBlock as Ue, renderSlot as $e, normalizeProps as Ge, guardReactiveProps as He, withModifiers as Yt, Fragment as Tn, createElementVNode as xn, toDisplayString as In, createSlots as on, renderList as rn, vShow as kn, ref as Le, watch as ot } from "vue";
2
- import { generateVariantClassList as we, getBemElement as fe, getBemModifier as Ot, getBemBlock as On, usePCId as Nn } from "@pantograph/utils";
1
+ import { defineComponent as tn, useSlots as nn, computed as M, useTemplateRef as Dn, resolveComponent as Cn, createElementBlock as Xe, openBlock as pe, mergeProps as st, unref as v, createCommentVNode as Ye, createElementVNode as Yt, withDirectives as Tn, normalizeClass as Ae, createVNode as Lt, createBlock as Ue, withCtx as Be, renderSlot as $e, normalizeProps as Ge, guardReactiveProps as He, withModifiers as xn, Fragment as In, toDisplayString as On, createSlots as on, renderList as rn, vShow as kn, ref as Le, watch as ot } from "vue";
2
+ import { generateVariantClassList as Ee, getBemElement as fe, getBemModifier as kt, getBemBlock as Nn, usePCId as An } from "@pantograph/utils";
3
3
  import { cva as an } from "class-variance-authority";
4
- import { r as j, f as Pn, u as An, v as Lt, q as Fn, o as Mn, w as $t, s as Bn } from "./Icon.vue_vue_type_style_index_0_lang-Kn_r4tp8.js";
5
- import { u as Gt } from "./uniq-D8HAKpFq.js";
4
+ import { h as G, k as $t, o as Pn, j as Fn } from "./FormItem.vue_vue_type_style_index_0_lang-CwxlEgep.js";
5
+ import { u as wt } from "./uniq-BsN259vC.js";
6
6
  import { g as ln } from "./options-D4et5euX.js";
7
- import { createContext as Rn, RovingFocusItem as Kn, RovingFocusGroup as zn } from "reka-ui";
8
- import { _ as Xn } from "./IndentLevel.vue_vue_type_style_index_0_lang-BWLdpspA.js";
9
- import { _ as Yn } from "./Checkbox.vue_vue_type_style_index_0_lang-5tG-1ejh.js";
10
- import { U as Ln, u as $n } from "./useInputDataStates-BVOCxFWp.js";
11
- import { useElementSize as Gn } from "@vueuse/core";
7
+ import { createContext as Mn } from "reka-ui";
8
+ import { _ as Bn } from "./IndentLevel.vue_vue_type_style_index_0_lang-CjaQqD7w.js";
9
+ import { _ as Rn } from "./Icon.vue_vue_type_style_index_0_lang-CbLL-Ngi.js";
10
+ import { _ as zn } from "./Checkbox.vue_vue_type_style_index_0_lang-2qQxhEQ0.js";
11
+ import { U as Kn, u as Xn } from "./useInputDataStates-CtuCKcP6.js";
12
+ import { useElementSize as Yn } from "@vueuse/core";
12
13
  import sn from "vuedraggable";
13
- import { last as Hn } from "lodash-es";
14
+ import { u as Ln, d as Gt } from "./index-jwkhq8oW.js";
15
+ import { last as $n } from "lodash-es";
16
+ import { o as Gn } from "./omit-B3e_dACs.js";
14
17
  /**!
15
18
  * Sortable 1.15.6
16
19
  * @author RubaXa <trash@rubaxa.org>
@@ -27,26 +30,26 @@ function Ht(o, e) {
27
30
  }
28
31
  return n;
29
32
  }
30
- function be(o) {
33
+ function me(o) {
31
34
  for (var e = 1; e < arguments.length; e++) {
32
35
  var n = arguments[e] != null ? arguments[e] : {};
33
36
  e % 2 ? Ht(Object(n), !0).forEach(function(t) {
34
- Vn(o, t, n[t]);
37
+ Hn(o, t, n[t]);
35
38
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(n)) : Ht(Object(n)).forEach(function(t) {
36
39
  Object.defineProperty(o, t, Object.getOwnPropertyDescriptor(n, t));
37
40
  });
38
41
  }
39
42
  return o;
40
43
  }
41
- function dt(o) {
44
+ function ut(o) {
42
45
  "@babel/helpers - typeof";
43
- return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? dt = function(e) {
46
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? ut = function(e) {
44
47
  return typeof e;
45
- } : dt = function(e) {
48
+ } : ut = function(e) {
46
49
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
47
- }, dt(o);
50
+ }, ut(o);
48
51
  }
49
- function Vn(o, e, n) {
52
+ function Hn(o, e, n) {
50
53
  return e in o ? Object.defineProperty(o, e, {
51
54
  value: n,
52
55
  enumerable: !0,
@@ -54,26 +57,26 @@ function Vn(o, e, n) {
54
57
  writable: !0
55
58
  }) : o[e] = n, o;
56
59
  }
57
- function Se() {
58
- return Se = Object.assign || function(o) {
60
+ function _e() {
61
+ return _e = Object.assign || function(o) {
59
62
  for (var e = 1; e < arguments.length; e++) {
60
63
  var n = arguments[e];
61
64
  for (var t in n)
62
65
  Object.prototype.hasOwnProperty.call(n, t) && (o[t] = n[t]);
63
66
  }
64
67
  return o;
65
- }, Se.apply(this, arguments);
68
+ }, _e.apply(this, arguments);
66
69
  }
67
- function Wn(o, e) {
70
+ function jn(o, e) {
68
71
  if (o == null) return {};
69
72
  var n = {}, t = Object.keys(o), i, r;
70
73
  for (r = 0; r < t.length; r++)
71
74
  i = t[r], !(e.indexOf(i) >= 0) && (n[i] = o[i]);
72
75
  return n;
73
76
  }
74
- function jn(o, e) {
77
+ function Vn(o, e) {
75
78
  if (o == null) return {};
76
- var n = Wn(o, e), t, i;
79
+ var n = jn(o, e), t, i;
77
80
  if (Object.getOwnPropertySymbols) {
78
81
  var r = Object.getOwnPropertySymbols(o);
79
82
  for (i = 0; i < r.length; i++)
@@ -81,22 +84,22 @@ function jn(o, e) {
81
84
  }
82
85
  return n;
83
86
  }
84
- var Un = "1.15.6";
85
- function Ee(o) {
87
+ var Wn = "1.15.6";
88
+ function Se(o) {
86
89
  if (typeof window < "u" && window.navigator)
87
90
  return !!/* @__PURE__ */ navigator.userAgent.match(o);
88
91
  }
89
- var _e = Ee(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), tt = Ee(/Edge/i), Vt = Ee(/firefox/i), qe = Ee(/safari/i) && !Ee(/chrome/i) && !Ee(/android/i), Mt = Ee(/iP(ad|od|hone)/i), un = Ee(/chrome/i) && Ee(/android/i), dn = {
92
+ var De = Se(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), tt = Se(/Edge/i), jt = Se(/firefox/i), qe = Se(/safari/i) && !Se(/chrome/i) && !Se(/android/i), Mt = Se(/iP(ad|od|hone)/i), un = Se(/chrome/i) && Se(/android/i), dn = {
90
93
  capture: !1,
91
94
  passive: !1
92
95
  };
93
96
  function I(o, e, n) {
94
- o.addEventListener(e, n, !_e && dn);
97
+ o.addEventListener(e, n, !De && dn);
95
98
  }
96
99
  function x(o, e, n) {
97
- o.removeEventListener(e, n, !_e && dn);
100
+ o.removeEventListener(e, n, !De && dn);
98
101
  }
99
- function gt(o, e) {
102
+ function pt(o, e) {
100
103
  if (e) {
101
104
  if (e[0] === ">" && (e = e.substring(1)), o)
102
105
  try {
@@ -119,21 +122,21 @@ function ce(o, e, n, t) {
119
122
  if (o) {
120
123
  n = n || document;
121
124
  do {
122
- if (e != null && (e[0] === ">" ? o.parentNode === n && gt(o, e) : gt(o, e)) || t && o === n)
125
+ if (e != null && (e[0] === ">" ? o.parentNode === n && pt(o, e) : pt(o, e)) || t && o === n)
123
126
  return o;
124
127
  if (o === n) break;
125
128
  } while (o = cn(o));
126
129
  }
127
130
  return null;
128
131
  }
129
- var Wt = /\s+/g;
132
+ var Vt = /\s+/g;
130
133
  function ne(o, e, n) {
131
134
  if (o && e)
132
135
  if (o.classList)
133
136
  o.classList[n ? "add" : "remove"](e);
134
137
  else {
135
- var t = (" " + o.className + " ").replace(Wt, " ").replace(" " + e + " ", " ");
136
- o.className = (t + (n ? " " + e : "")).replace(Wt, " ");
138
+ var t = (" " + o.className + " ").replace(Vt, " ").replace(" " + e + " ", " ");
139
+ o.className = (t + (n ? " " + e : "")).replace(Vt, " ");
137
140
  }
138
141
  }
139
142
  function E(o, e, n) {
@@ -144,7 +147,7 @@ function E(o, e, n) {
144
147
  !(e in t) && e.indexOf("webkit") === -1 && (e = "-webkit-" + e), t[e] = n + (typeof n == "string" ? "" : "px");
145
148
  }
146
149
  }
147
- function Ke(o, e) {
150
+ function ze(o, e) {
148
151
  var n = "";
149
152
  if (typeof o == "string")
150
153
  n = o;
@@ -166,24 +169,24 @@ function fn(o, e, n) {
166
169
  }
167
170
  return [];
168
171
  }
169
- function ve() {
172
+ function ge() {
170
173
  var o = document.scrollingElement;
171
174
  return o || document.documentElement;
172
175
  }
173
176
  function X(o, e, n, t, i) {
174
177
  if (!(!o.getBoundingClientRect && o !== window)) {
175
- var r, a, l, s, u, p, f;
176
- if (o !== window && o.parentNode && o !== ve() ? (r = o.getBoundingClientRect(), a = r.top, l = r.left, s = r.bottom, u = r.right, p = r.height, f = r.width) : (a = 0, l = 0, s = window.innerHeight, u = window.innerWidth, p = window.innerHeight, f = window.innerWidth), (e || n) && o !== window && (i = i || o.parentNode, !_e))
178
+ var r, a, l, s, u, g, f;
179
+ if (o !== window && o.parentNode && o !== ge() ? (r = o.getBoundingClientRect(), a = r.top, l = r.left, s = r.bottom, u = r.right, g = r.height, f = r.width) : (a = 0, l = 0, s = window.innerHeight, u = window.innerWidth, g = window.innerHeight, f = window.innerWidth), (e || n) && o !== window && (i = i || o.parentNode, !De))
177
180
  do
178
181
  if (i && i.getBoundingClientRect && (E(i, "transform") !== "none" || n && E(i, "position") !== "static")) {
179
- var b = i.getBoundingClientRect();
180
- a -= b.top + parseInt(E(i, "border-top-width")), l -= b.left + parseInt(E(i, "border-left-width")), s = a + r.height, u = l + r.width;
182
+ var w = i.getBoundingClientRect();
183
+ a -= w.top + parseInt(E(i, "border-top-width")), l -= w.left + parseInt(E(i, "border-left-width")), s = a + r.height, u = l + r.width;
181
184
  break;
182
185
  }
183
186
  while (i = i.parentNode);
184
187
  if (t && o !== window) {
185
- var v = Ke(i || o), C = v && v.a, T = v && v.d;
186
- v && (a /= T, l /= C, f /= C, p /= T, s = a + p, u = l + f);
188
+ var y = ze(i || o), D = y && y.a, T = y && y.d;
189
+ y && (a /= T, l /= D, f /= D, g /= T, s = a + g, u = l + f);
187
190
  }
188
191
  return {
189
192
  top: a,
@@ -191,20 +194,20 @@ function X(o, e, n, t, i) {
191
194
  bottom: s,
192
195
  right: u,
193
196
  width: f,
194
- height: p
197
+ height: g
195
198
  };
196
199
  }
197
200
  }
198
- function jt(o, e, n) {
199
- for (var t = Ie(o, !0), i = X(o)[e]; t; ) {
201
+ function Wt(o, e, n) {
202
+ for (var t = xe(o, !0), i = X(o)[e]; t; ) {
200
203
  var r = X(t)[n], a = void 0;
201
204
  if (a = i >= r, !a) return t;
202
- if (t === ve()) break;
203
- t = Ie(t, !1);
205
+ if (t === ge()) break;
206
+ t = xe(t, !1);
204
207
  }
205
208
  return !1;
206
209
  }
207
- function ze(o, e, n, t) {
210
+ function Ke(o, e, n, t) {
208
211
  for (var i = 0, r = 0, a = o.children; r < a.length; ) {
209
212
  if (a[r].style.display !== "none" && a[r] !== S.ghost && (t || a[r] !== S.dragged) && ce(a[r], n.draggable, o, !1)) {
210
213
  if (i === e)
@@ -216,28 +219,28 @@ function ze(o, e, n, t) {
216
219
  return null;
217
220
  }
218
221
  function Bt(o, e) {
219
- for (var n = o.lastElementChild; n && (n === S.ghost || E(n, "display") === "none" || e && !gt(n, e)); )
222
+ for (var n = o.lastElementChild; n && (n === S.ghost || E(n, "display") === "none" || e && !pt(n, e)); )
220
223
  n = n.previousElementSibling;
221
224
  return n || null;
222
225
  }
223
- function se(o, e) {
226
+ function le(o, e) {
224
227
  var n = 0;
225
228
  if (!o || !o.parentNode)
226
229
  return -1;
227
230
  for (; o = o.previousElementSibling; )
228
- o.nodeName.toUpperCase() !== "TEMPLATE" && o !== S.clone && (!e || gt(o, e)) && n++;
231
+ o.nodeName.toUpperCase() !== "TEMPLATE" && o !== S.clone && (!e || pt(o, e)) && n++;
229
232
  return n;
230
233
  }
231
234
  function Ut(o) {
232
- var e = 0, n = 0, t = ve();
235
+ var e = 0, n = 0, t = ge();
233
236
  if (o)
234
237
  do {
235
- var i = Ke(o), r = i.a, a = i.d;
238
+ var i = ze(o), r = i.a, a = i.d;
236
239
  e += o.scrollLeft * r, n += o.scrollTop * a;
237
240
  } while (o !== t && (o = o.parentNode));
238
241
  return [e, n];
239
242
  }
240
- function qn(o, e) {
243
+ function Un(o, e) {
241
244
  for (var n in o)
242
245
  if (o.hasOwnProperty(n)) {
243
246
  for (var t in e)
@@ -245,22 +248,22 @@ function qn(o, e) {
245
248
  }
246
249
  return -1;
247
250
  }
248
- function Ie(o, e) {
249
- if (!o || !o.getBoundingClientRect) return ve();
251
+ function xe(o, e) {
252
+ if (!o || !o.getBoundingClientRect) return ge();
250
253
  var n = o, t = !1;
251
254
  do
252
255
  if (n.clientWidth < n.scrollWidth || n.clientHeight < n.scrollHeight) {
253
256
  var i = E(n);
254
257
  if (n.clientWidth < n.scrollWidth && (i.overflowX == "auto" || i.overflowX == "scroll") || n.clientHeight < n.scrollHeight && (i.overflowY == "auto" || i.overflowY == "scroll")) {
255
- if (!n.getBoundingClientRect || n === document.body) return ve();
258
+ if (!n.getBoundingClientRect || n === document.body) return ge();
256
259
  if (t || e) return n;
257
260
  t = !0;
258
261
  }
259
262
  }
260
263
  while (n = n.parentNode);
261
- return ve();
264
+ return ge();
262
265
  }
263
- function Zn(o, e) {
266
+ function qn(o, e) {
264
267
  if (o && e)
265
268
  for (var n in e)
266
269
  e.hasOwnProperty(n) && (o[n] = e[n]);
@@ -280,7 +283,7 @@ function hn(o, e) {
280
283
  }
281
284
  };
282
285
  }
283
- function Qn() {
286
+ function Zn() {
284
287
  clearTimeout(Ze), Ze = void 0;
285
288
  }
286
289
  function pn(o, e, n) {
@@ -300,8 +303,8 @@ function mn(o, e, n) {
300
303
  }
301
304
  }), t.width = t.right - t.left, t.height = t.bottom - t.top, t.x = t.left, t.y = t.top, t;
302
305
  }
303
- var ee = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
304
- function Jn() {
306
+ var te = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
307
+ function Qn() {
305
308
  var o = [], e;
306
309
  return {
307
310
  captureAnimationState: function() {
@@ -313,9 +316,9 @@ function Jn() {
313
316
  target: i,
314
317
  rect: X(i)
315
318
  });
316
- var r = be({}, o[o.length - 1].rect);
319
+ var r = me({}, o[o.length - 1].rect);
317
320
  if (i.thisAnimationDuration) {
318
- var a = Ke(i, !0);
321
+ var a = ze(i, !0);
319
322
  a && (r.top -= a.f, r.left -= a.e);
320
323
  }
321
324
  i.fromRect = r;
@@ -327,7 +330,7 @@ function Jn() {
327
330
  o.push(t);
328
331
  },
329
332
  removeAnimationState: function(t) {
330
- o.splice(qn(o, {
333
+ o.splice(Un(o, {
331
334
  target: t
332
335
  }), 1);
333
336
  },
@@ -339,9 +342,9 @@ function Jn() {
339
342
  }
340
343
  var r = !1, a = 0;
341
344
  o.forEach(function(l) {
342
- var s = 0, u = l.target, p = u.fromRect, f = X(u), b = u.prevFromRect, v = u.prevToRect, C = l.rect, T = Ke(u, !0);
343
- T && (f.top -= T.f, f.left -= T.e), u.toRect = f, u.thisAnimationDuration && Et(b, f) && !Et(p, f) && // Make sure animatingRect is on line between toRect & fromRect
344
- (C.top - f.top) / (C.left - f.left) === (p.top - f.top) / (p.left - f.left) && (s = to(C, b, v, i.options)), Et(f, p) || (u.prevFromRect = p, u.prevToRect = f, s || (s = i.options.animation), i.animate(u, C, f, s)), s && (r = !0, a = Math.max(a, s), clearTimeout(u.animationResetTimer), u.animationResetTimer = setTimeout(function() {
345
+ var s = 0, u = l.target, g = u.fromRect, f = X(u), w = u.prevFromRect, y = u.prevToRect, D = l.rect, T = ze(u, !0);
346
+ T && (f.top -= T.f, f.left -= T.e), u.toRect = f, u.thisAnimationDuration && Et(w, f) && !Et(g, f) && // Make sure animatingRect is on line between toRect & fromRect
347
+ (D.top - f.top) / (D.left - f.left) === (g.top - f.top) / (g.left - f.left) && (s = eo(D, w, y, i.options)), Et(f, g) || (u.prevFromRect = g, u.prevToRect = f, s || (s = i.options.animation), i.animate(u, D, f, s)), s && (r = !0, a = Math.max(a, s), clearTimeout(u.animationResetTimer), u.animationResetTimer = setTimeout(function() {
345
348
  u.animationTime = 0, u.prevFromRect = null, u.fromRect = null, u.prevToRect = null, u.thisAnimationDuration = null;
346
349
  }, s), u.thisAnimationDuration = s);
347
350
  }), clearTimeout(e), r ? e = setTimeout(function() {
@@ -351,30 +354,30 @@ function Jn() {
351
354
  animate: function(t, i, r, a) {
352
355
  if (a) {
353
356
  E(t, "transition", ""), E(t, "transform", "");
354
- var l = Ke(this.el), s = l && l.a, u = l && l.d, p = (i.left - r.left) / (s || 1), f = (i.top - r.top) / (u || 1);
355
- t.animatingX = !!p, t.animatingY = !!f, E(t, "transform", "translate3d(" + p + "px," + f + "px,0)"), this.forRepaintDummy = eo(t), E(t, "transition", "transform " + a + "ms" + (this.options.easing ? " " + this.options.easing : "")), E(t, "transform", "translate3d(0,0,0)"), typeof t.animated == "number" && clearTimeout(t.animated), t.animated = setTimeout(function() {
357
+ var l = ze(this.el), s = l && l.a, u = l && l.d, g = (i.left - r.left) / (s || 1), f = (i.top - r.top) / (u || 1);
358
+ t.animatingX = !!g, t.animatingY = !!f, E(t, "transform", "translate3d(" + g + "px," + f + "px,0)"), this.forRepaintDummy = Jn(t), E(t, "transition", "transform " + a + "ms" + (this.options.easing ? " " + this.options.easing : "")), E(t, "transform", "translate3d(0,0,0)"), typeof t.animated == "number" && clearTimeout(t.animated), t.animated = setTimeout(function() {
356
359
  E(t, "transition", ""), E(t, "transform", ""), t.animated = !1, t.animatingX = !1, t.animatingY = !1;
357
360
  }, a);
358
361
  }
359
362
  }
360
363
  };
361
364
  }
362
- function eo(o) {
365
+ function Jn(o) {
363
366
  return o.offsetWidth;
364
367
  }
365
- function to(o, e, n, t) {
368
+ function eo(o, e, n, t) {
366
369
  return Math.sqrt(Math.pow(e.top - o.top, 2) + Math.pow(e.left - o.left, 2)) / Math.sqrt(Math.pow(e.top - n.top, 2) + Math.pow(e.left - n.left, 2)) * t.animation;
367
370
  }
368
- var Fe = [], St = {
371
+ var Pe = [], St = {
369
372
  initializeByDefault: !0
370
373
  }, nt = {
371
374
  mount: function(e) {
372
375
  for (var n in St)
373
376
  St.hasOwnProperty(n) && !(n in e) && (e[n] = St[n]);
374
- Fe.forEach(function(t) {
377
+ Pe.forEach(function(t) {
375
378
  if (t.pluginName === e.pluginName)
376
379
  throw "Sortable: Cannot mount plugin ".concat(e.pluginName, " more than once");
377
- }), Fe.push(e);
380
+ }), Pe.push(e);
378
381
  },
379
382
  pluginEvent: function(e, n, t) {
380
383
  var i = this;
@@ -382,20 +385,20 @@ var Fe = [], St = {
382
385
  i.eventCanceled = !0;
383
386
  };
384
387
  var r = e + "Global";
385
- Fe.forEach(function(a) {
386
- n[a.pluginName] && (n[a.pluginName][r] && n[a.pluginName][r](be({
388
+ Pe.forEach(function(a) {
389
+ n[a.pluginName] && (n[a.pluginName][r] && n[a.pluginName][r](me({
387
390
  sortable: n
388
- }, t)), n.options[a.pluginName] && n[a.pluginName][e] && n[a.pluginName][e](be({
391
+ }, t)), n.options[a.pluginName] && n[a.pluginName][e] && n[a.pluginName][e](me({
389
392
  sortable: n
390
393
  }, t)));
391
394
  });
392
395
  },
393
396
  initializePlugins: function(e, n, t, i) {
394
- Fe.forEach(function(l) {
397
+ Pe.forEach(function(l) {
395
398
  var s = l.pluginName;
396
399
  if (!(!e.options[s] && !l.initializeByDefault)) {
397
400
  var u = new l(e, n, e.options);
398
- u.sortable = e, u.options = e.options, e[s] = u, Se(t, u.defaults);
401
+ u.sortable = e, u.options = e.options, e[s] = u, _e(t, u.defaults);
399
402
  }
400
403
  });
401
404
  for (var r in e.options)
@@ -406,44 +409,44 @@ var Fe = [], St = {
406
409
  },
407
410
  getEventProperties: function(e, n) {
408
411
  var t = {};
409
- return Fe.forEach(function(i) {
410
- typeof i.eventProperties == "function" && Se(t, i.eventProperties.call(n[i.pluginName], e));
412
+ return Pe.forEach(function(i) {
413
+ typeof i.eventProperties == "function" && _e(t, i.eventProperties.call(n[i.pluginName], e));
411
414
  }), t;
412
415
  },
413
416
  modifyOption: function(e, n, t) {
414
417
  var i;
415
- return Fe.forEach(function(r) {
418
+ return Pe.forEach(function(r) {
416
419
  e[r.pluginName] && r.optionListeners && typeof r.optionListeners[n] == "function" && (i = r.optionListeners[n].call(e[r.pluginName], t));
417
420
  }), i;
418
421
  }
419
422
  };
420
- function no(o) {
421
- var e = o.sortable, n = o.rootEl, t = o.name, i = o.targetEl, r = o.cloneEl, a = o.toEl, l = o.fromEl, s = o.oldIndex, u = o.newIndex, p = o.oldDraggableIndex, f = o.newDraggableIndex, b = o.originalEvent, v = o.putSortable, C = o.extraEventProperties;
422
- if (e = e || n && n[ee], !!e) {
423
- var T, $ = e.options, H = "on" + t.charAt(0).toUpperCase() + t.substr(1);
424
- window.CustomEvent && !_e && !tt ? T = new CustomEvent(t, {
423
+ function to(o) {
424
+ var e = o.sortable, n = o.rootEl, t = o.name, i = o.targetEl, r = o.cloneEl, a = o.toEl, l = o.fromEl, s = o.oldIndex, u = o.newIndex, g = o.oldDraggableIndex, f = o.newDraggableIndex, w = o.originalEvent, y = o.putSortable, D = o.extraEventProperties;
425
+ if (e = e || n && n[te], !!e) {
426
+ var T, $ = e.options, j = "on" + t.charAt(0).toUpperCase() + t.substr(1);
427
+ window.CustomEvent && !De && !tt ? T = new CustomEvent(t, {
425
428
  bubbles: !0,
426
429
  cancelable: !0
427
- }) : (T = document.createEvent("Event"), T.initEvent(t, !0, !0)), T.to = a || n, T.from = l || n, T.item = i || n, T.clone = r, T.oldIndex = s, T.newIndex = u, T.oldDraggableIndex = p, T.newDraggableIndex = f, T.originalEvent = b, T.pullMode = v ? v.lastPutMode : void 0;
428
- var k = be(be({}, C), nt.getEventProperties(t, e));
429
- for (var K in k)
430
- T[K] = k[K];
431
- n && n.dispatchEvent(T), $[H] && $[H].call(e, T);
430
+ }) : (T = document.createEvent("Event"), T.initEvent(t, !0, !0)), T.to = a || n, T.from = l || n, T.item = i || n, T.clone = r, T.oldIndex = s, T.newIndex = u, T.oldDraggableIndex = g, T.newDraggableIndex = f, T.originalEvent = w, T.pullMode = y ? y.lastPutMode : void 0;
431
+ var N = me(me({}, D), nt.getEventProperties(t, e));
432
+ for (var z in N)
433
+ T[z] = N[z];
434
+ n && n.dispatchEvent(T), $[j] && $[j].call(e, T);
432
435
  }
433
436
  }
434
- var oo = ["evt"], J = function(e, n) {
435
- var t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = t.evt, r = jn(t, oo);
436
- nt.pluginEvent.bind(S)(e, n, be({
437
+ var no = ["evt"], ee = function(e, n) {
438
+ var t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = t.evt, r = Vn(t, no);
439
+ nt.pluginEvent.bind(S)(e, n, me({
437
440
  dragEl: d,
438
- parentEl: B,
439
- ghostEl: D,
440
- rootEl: P,
441
- nextEl: Pe,
442
- lastDownEl: ct,
443
- cloneEl: F,
444
- cloneHidden: xe,
445
- dragStarted: Ve,
446
- putSortable: G,
441
+ parentEl: R,
442
+ ghostEl: _,
443
+ rootEl: F,
444
+ nextEl: Ne,
445
+ lastDownEl: dt,
446
+ cloneEl: B,
447
+ cloneHidden: Te,
448
+ dragStarted: je,
449
+ putSortable: H,
447
450
  activeSortable: S.active,
448
451
  originalEvent: i,
449
452
  oldIndex: Re,
@@ -453,13 +456,13 @@ var oo = ["evt"], J = function(e, n) {
453
456
  hideGhostForTarget: wn,
454
457
  unhideGhostForTarget: En,
455
458
  cloneNowHidden: function() {
456
- xe = !0;
459
+ Te = !0;
457
460
  },
458
461
  cloneNowShown: function() {
459
- xe = !1;
462
+ Te = !1;
460
463
  },
461
464
  dispatchSortableEvent: function(l) {
462
- q({
465
+ Q({
463
466
  sortable: n,
464
467
  name: l,
465
468
  originalEvent: i
@@ -467,27 +470,27 @@ var oo = ["evt"], J = function(e, n) {
467
470
  }
468
471
  }, r));
469
472
  };
470
- function q(o) {
471
- no(be({
472
- putSortable: G,
473
- cloneEl: F,
473
+ function Q(o) {
474
+ to(me({
475
+ putSortable: H,
476
+ cloneEl: B,
474
477
  targetEl: d,
475
- rootEl: P,
478
+ rootEl: F,
476
479
  oldIndex: Re,
477
480
  oldDraggableIndex: Qe,
478
481
  newIndex: oe,
479
482
  newDraggableIndex: Ce
480
483
  }, o));
481
484
  }
482
- var d, B, D, P, Pe, ct, F, xe, Re, oe, Qe, Ce, it, G, Be = !1, mt = !1, vt = [], Oe, de, _t, Dt, qt, Zt, Ve, Me, Je, et = !1, rt = !1, ft, W, Ct = [], Nt = !1, bt = [], wt = typeof document < "u", at = Mt, Qt = tt || _e ? "cssFloat" : "float", io = wt && !un && !Mt && "draggable" in document.createElement("div"), vn = function() {
483
- if (wt) {
484
- if (_e)
485
+ var d, R, _, F, Ne, dt, B, Te, Re, oe, Qe, Ce, it, H, Me = !1, gt = !1, mt = [], Oe, de, _t, Dt, qt, Zt, je, Fe, Je, et = !1, rt = !1, ct, U, Ct = [], Nt = !1, vt = [], bt = typeof document < "u", at = Mt, Qt = tt || De ? "cssFloat" : "float", oo = bt && !un && !Mt && "draggable" in document.createElement("div"), vn = function() {
486
+ if (bt) {
487
+ if (De)
485
488
  return !1;
486
489
  var o = document.createElement("x");
487
490
  return o.style.cssText = "pointer-events:auto", o.style.pointerEvents === "auto";
488
491
  }
489
- }(), bn = function(e, n) {
490
- var t = E(e), i = parseInt(t.width) - parseInt(t.paddingLeft) - parseInt(t.paddingRight) - parseInt(t.borderLeftWidth) - parseInt(t.borderRightWidth), r = ze(e, 0, n), a = ze(e, 1, n), l = r && E(r), s = a && E(a), u = l && parseInt(l.marginLeft) + parseInt(l.marginRight) + X(r).width, p = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + X(a).width;
492
+ }(), yn = function(e, n) {
493
+ var t = E(e), i = parseInt(t.width) - parseInt(t.paddingLeft) - parseInt(t.paddingRight) - parseInt(t.borderLeftWidth) - parseInt(t.borderRightWidth), r = Ke(e, 0, n), a = Ke(e, 1, n), l = r && E(r), s = a && E(a), u = l && parseInt(l.marginLeft) + parseInt(l.marginRight) + X(r).width, g = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + X(a).width;
491
494
  if (t.display === "flex")
492
495
  return t.flexDirection === "column" || t.flexDirection === "column-reverse" ? "vertical" : "horizontal";
493
496
  if (t.display === "grid")
@@ -496,23 +499,23 @@ var d, B, D, P, Pe, ct, F, xe, Re, oe, Qe, Ce, it, G, Be = !1, mt = !1, vt = [],
496
499
  var f = l.float === "left" ? "left" : "right";
497
500
  return a && (s.clear === "both" || s.clear === f) ? "vertical" : "horizontal";
498
501
  }
499
- return r && (l.display === "block" || l.display === "flex" || l.display === "table" || l.display === "grid" || u >= i && t[Qt] === "none" || a && t[Qt] === "none" && u + p > i) ? "vertical" : "horizontal";
500
- }, ro = function(e, n, t) {
502
+ return r && (l.display === "block" || l.display === "flex" || l.display === "table" || l.display === "grid" || u >= i && t[Qt] === "none" || a && t[Qt] === "none" && u + g > i) ? "vertical" : "horizontal";
503
+ }, io = function(e, n, t) {
501
504
  var i = t ? e.left : e.top, r = t ? e.right : e.bottom, a = t ? e.width : e.height, l = t ? n.left : n.top, s = t ? n.right : n.bottom, u = t ? n.width : n.height;
502
505
  return i === l || r === s || i + a / 2 === l + u / 2;
503
- }, ao = function(e, n) {
506
+ }, ro = function(e, n) {
504
507
  var t;
505
- return vt.some(function(i) {
506
- var r = i[ee].options.emptyInsertThreshold;
508
+ return mt.some(function(i) {
509
+ var r = i[te].options.emptyInsertThreshold;
507
510
  if (!(!r || Bt(i))) {
508
511
  var a = X(i), l = e >= a.left - r && e <= a.right + r, s = n >= a.top - r && n <= a.bottom + r;
509
512
  if (l && s)
510
513
  return t = i;
511
514
  }
512
515
  }), t;
513
- }, yn = function(e) {
516
+ }, bn = function(e) {
514
517
  function n(r, a) {
515
- return function(l, s, u, p) {
518
+ return function(l, s, u, g) {
516
519
  var f = l.options.group.name && s.options.group.name && l.options.group.name === s.options.group.name;
517
520
  if (r == null && (a || f))
518
521
  return !0;
@@ -521,42 +524,42 @@ var d, B, D, P, Pe, ct, F, xe, Re, oe, Qe, Ce, it, G, Be = !1, mt = !1, vt = [],
521
524
  if (a && r === "clone")
522
525
  return r;
523
526
  if (typeof r == "function")
524
- return n(r(l, s, u, p), a)(l, s, u, p);
525
- var b = (a ? l : s).options.group.name;
526
- return r === !0 || typeof r == "string" && r === b || r.join && r.indexOf(b) > -1;
527
+ return n(r(l, s, u, g), a)(l, s, u, g);
528
+ var w = (a ? l : s).options.group.name;
529
+ return r === !0 || typeof r == "string" && r === w || r.join && r.indexOf(w) > -1;
527
530
  };
528
531
  }
529
532
  var t = {}, i = e.group;
530
- (!i || dt(i) != "object") && (i = {
533
+ (!i || ut(i) != "object") && (i = {
531
534
  name: i
532
535
  }), t.name = i.name, t.checkPull = n(i.pull, !0), t.checkPut = n(i.put), t.revertClone = i.revertClone, e.group = t;
533
536
  }, wn = function() {
534
- !vn && D && E(D, "display", "none");
537
+ !vn && _ && E(_, "display", "none");
535
538
  }, En = function() {
536
- !vn && D && E(D, "display", "");
539
+ !vn && _ && E(_, "display", "");
537
540
  };
538
- wt && !un && document.addEventListener("click", function(o) {
539
- if (mt)
540
- return o.preventDefault(), o.stopPropagation && o.stopPropagation(), o.stopImmediatePropagation && o.stopImmediatePropagation(), mt = !1, !1;
541
+ bt && !un && document.addEventListener("click", function(o) {
542
+ if (gt)
543
+ return o.preventDefault(), o.stopPropagation && o.stopPropagation(), o.stopImmediatePropagation && o.stopImmediatePropagation(), gt = !1, !1;
541
544
  }, !0);
542
- var Ne = function(e) {
545
+ var ke = function(e) {
543
546
  if (d) {
544
547
  e = e.touches ? e.touches[0] : e;
545
- var n = ao(e.clientX, e.clientY);
548
+ var n = ro(e.clientX, e.clientY);
546
549
  if (n) {
547
550
  var t = {};
548
551
  for (var i in e)
549
552
  e.hasOwnProperty(i) && (t[i] = e[i]);
550
- t.target = t.rootEl = n, t.preventDefault = void 0, t.stopPropagation = void 0, n[ee]._onDragOver(t);
553
+ t.target = t.rootEl = n, t.preventDefault = void 0, t.stopPropagation = void 0, n[te]._onDragOver(t);
551
554
  }
552
555
  }
553
- }, lo = function(e) {
554
- d && d.parentNode[ee]._isOutsideThisEl(e.target);
556
+ }, ao = function(e) {
557
+ d && d.parentNode[te]._isOutsideThisEl(e.target);
555
558
  };
556
559
  function S(o, e) {
557
560
  if (!(o && o.nodeType && o.nodeType === 1))
558
561
  throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(o));
559
- this.el = o, this.options = e = Se({}, e), o[ee] = this;
562
+ this.el = o, this.options = e = _e({}, e), o[te] = this;
560
563
  var n = {
561
564
  group: null,
562
565
  sort: !0,
@@ -572,7 +575,7 @@ function S(o, e) {
572
575
  // will be set to same as swapThreshold if default
573
576
  removeCloneOnHide: !0,
574
577
  direction: function() {
575
- return bn(o, this.options);
578
+ return yn(o, this.options);
576
579
  },
577
580
  ghostClass: "sortable-ghost",
578
581
  chosenClass: "sortable-chosen",
@@ -606,51 +609,51 @@ function S(o, e) {
606
609
  nt.initializePlugins(this, o, n);
607
610
  for (var t in n)
608
611
  !(t in e) && (e[t] = n[t]);
609
- yn(e);
612
+ bn(e);
610
613
  for (var i in this)
611
614
  i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
612
- this.nativeDraggable = e.forceFallback ? !1 : io, this.nativeDraggable && (this.options.touchStartThreshold = 1), e.supportPointer ? I(o, "pointerdown", this._onTapStart) : (I(o, "mousedown", this._onTapStart), I(o, "touchstart", this._onTapStart)), this.nativeDraggable && (I(o, "dragover", this), I(o, "dragenter", this)), vt.push(this.el), e.store && e.store.get && this.sort(e.store.get(this) || []), Se(this, Jn());
615
+ this.nativeDraggable = e.forceFallback ? !1 : oo, this.nativeDraggable && (this.options.touchStartThreshold = 1), e.supportPointer ? I(o, "pointerdown", this._onTapStart) : (I(o, "mousedown", this._onTapStart), I(o, "touchstart", this._onTapStart)), this.nativeDraggable && (I(o, "dragover", this), I(o, "dragenter", this)), mt.push(this.el), e.store && e.store.get && this.sort(e.store.get(this) || []), _e(this, Qn());
613
616
  }
614
617
  S.prototype = /** @lends Sortable.prototype */
615
618
  {
616
619
  constructor: S,
617
620
  _isOutsideThisEl: function(e) {
618
- !this.el.contains(e) && e !== this.el && (Me = null);
621
+ !this.el.contains(e) && e !== this.el && (Fe = null);
619
622
  },
620
623
  _getDirection: function(e, n) {
621
624
  return typeof this.options.direction == "function" ? this.options.direction.call(this, e, n, d) : this.options.direction;
622
625
  },
623
626
  _onTapStart: function(e) {
624
627
  if (e.cancelable) {
625
- var n = this, t = this.el, i = this.options, r = i.preventOnFilter, a = e.type, l = e.touches && e.touches[0] || e.pointerType && e.pointerType === "touch" && e, s = (l || e).target, u = e.target.shadowRoot && (e.path && e.path[0] || e.composedPath && e.composedPath()[0]) || s, p = i.filter;
626
- if (mo(t), !d && !(/mousedown|pointerdown/.test(a) && e.button !== 0 || i.disabled) && !u.isContentEditable && !(!this.nativeDraggable && qe && s && s.tagName.toUpperCase() === "SELECT") && (s = ce(s, i.draggable, t, !1), !(s && s.animated) && ct !== s)) {
627
- if (Re = se(s), Qe = se(s, i.draggable), typeof p == "function") {
628
- if (p.call(this, e, s, this)) {
629
- q({
628
+ var n = this, t = this.el, i = this.options, r = i.preventOnFilter, a = e.type, l = e.touches && e.touches[0] || e.pointerType && e.pointerType === "touch" && e, s = (l || e).target, u = e.target.shadowRoot && (e.path && e.path[0] || e.composedPath && e.composedPath()[0]) || s, g = i.filter;
629
+ if (go(t), !d && !(/mousedown|pointerdown/.test(a) && e.button !== 0 || i.disabled) && !u.isContentEditable && !(!this.nativeDraggable && qe && s && s.tagName.toUpperCase() === "SELECT") && (s = ce(s, i.draggable, t, !1), !(s && s.animated) && dt !== s)) {
630
+ if (Re = le(s), Qe = le(s, i.draggable), typeof g == "function") {
631
+ if (g.call(this, e, s, this)) {
632
+ Q({
630
633
  sortable: n,
631
634
  rootEl: u,
632
635
  name: "filter",
633
636
  targetEl: s,
634
637
  toEl: t,
635
638
  fromEl: t
636
- }), J("filter", n, {
639
+ }), ee("filter", n, {
637
640
  evt: e
638
641
  }), r && e.preventDefault();
639
642
  return;
640
643
  }
641
- } else if (p && (p = p.split(",").some(function(f) {
644
+ } else if (g && (g = g.split(",").some(function(f) {
642
645
  if (f = ce(u, f.trim(), t, !1), f)
643
- return q({
646
+ return Q({
644
647
  sortable: n,
645
648
  rootEl: f,
646
649
  name: "filter",
647
650
  targetEl: s,
648
651
  fromEl: t,
649
652
  toEl: t
650
- }), J("filter", n, {
653
+ }), ee("filter", n, {
651
654
  evt: e
652
655
  }), !0;
653
- }), p)) {
656
+ }), g)) {
654
657
  r && e.preventDefault();
655
658
  return;
656
659
  }
@@ -662,27 +665,27 @@ S.prototype = /** @lends Sortable.prototype */
662
665
  var i = this, r = i.el, a = i.options, l = r.ownerDocument, s;
663
666
  if (t && !d && t.parentNode === r) {
664
667
  var u = X(t);
665
- if (P = r, d = t, B = d.parentNode, Pe = d.nextSibling, ct = t, it = a.group, S.dragged = d, Oe = {
668
+ if (F = r, d = t, R = d.parentNode, Ne = d.nextSibling, dt = t, it = a.group, S.dragged = d, Oe = {
666
669
  target: d,
667
670
  clientX: (n || e).clientX,
668
671
  clientY: (n || e).clientY
669
672
  }, qt = Oe.clientX - u.left, Zt = Oe.clientY - u.top, this._lastX = (n || e).clientX, this._lastY = (n || e).clientY, d.style["will-change"] = "all", s = function() {
670
- if (J("delayEnded", i, {
673
+ if (ee("delayEnded", i, {
671
674
  evt: e
672
675
  }), S.eventCanceled) {
673
676
  i._onDrop();
674
677
  return;
675
678
  }
676
- i._disableDelayedDragEvents(), !Vt && i.nativeDraggable && (d.draggable = !0), i._triggerDragStart(e, n), q({
679
+ i._disableDelayedDragEvents(), !jt && i.nativeDraggable && (d.draggable = !0), i._triggerDragStart(e, n), Q({
677
680
  sortable: i,
678
681
  name: "choose",
679
682
  originalEvent: e
680
683
  }), ne(d, a.chosenClass, !0);
681
- }, a.ignore.split(",").forEach(function(p) {
682
- fn(d, p.trim(), Tt);
683
- }), I(l, "dragover", Ne), I(l, "mousemove", Ne), I(l, "touchmove", Ne), a.supportPointer ? (I(l, "pointerup", i._onDrop), !this.nativeDraggable && I(l, "pointercancel", i._onDrop)) : (I(l, "mouseup", i._onDrop), I(l, "touchend", i._onDrop), I(l, "touchcancel", i._onDrop)), Vt && this.nativeDraggable && (this.options.touchStartThreshold = 4, d.draggable = !0), J("delayStart", this, {
684
+ }, a.ignore.split(",").forEach(function(g) {
685
+ fn(d, g.trim(), Tt);
686
+ }), I(l, "dragover", ke), I(l, "mousemove", ke), I(l, "touchmove", ke), a.supportPointer ? (I(l, "pointerup", i._onDrop), !this.nativeDraggable && I(l, "pointercancel", i._onDrop)) : (I(l, "mouseup", i._onDrop), I(l, "touchend", i._onDrop), I(l, "touchcancel", i._onDrop)), jt && this.nativeDraggable && (this.options.touchStartThreshold = 4, d.draggable = !0), ee("delayStart", this, {
684
687
  evt: e
685
- }), a.delay && (!a.delayOnTouchOnly || n) && (!this.nativeDraggable || !(tt || _e))) {
688
+ }), a.delay && (!a.delayOnTouchOnly || n) && (!this.nativeDraggable || !(tt || De))) {
686
689
  if (S.eventCanceled) {
687
690
  this._onDrop();
688
691
  return;
@@ -704,21 +707,21 @@ S.prototype = /** @lends Sortable.prototype */
704
707
  x(e, "mouseup", this._disableDelayedDrag), x(e, "touchend", this._disableDelayedDrag), x(e, "touchcancel", this._disableDelayedDrag), x(e, "pointerup", this._disableDelayedDrag), x(e, "pointercancel", this._disableDelayedDrag), x(e, "mousemove", this._delayedDragTouchMoveHandler), x(e, "touchmove", this._delayedDragTouchMoveHandler), x(e, "pointermove", this._delayedDragTouchMoveHandler);
705
708
  },
706
709
  _triggerDragStart: function(e, n) {
707
- n = n || e.pointerType == "touch" && e, !this.nativeDraggable || n ? this.options.supportPointer ? I(document, "pointermove", this._onTouchMove) : n ? I(document, "touchmove", this._onTouchMove) : I(document, "mousemove", this._onTouchMove) : (I(d, "dragend", this), I(P, "dragstart", this._onDragStart));
710
+ n = n || e.pointerType == "touch" && e, !this.nativeDraggable || n ? this.options.supportPointer ? I(document, "pointermove", this._onTouchMove) : n ? I(document, "touchmove", this._onTouchMove) : I(document, "mousemove", this._onTouchMove) : (I(d, "dragend", this), I(F, "dragstart", this._onDragStart));
708
711
  try {
709
- document.selection ? ht(function() {
712
+ document.selection ? ft(function() {
710
713
  document.selection.empty();
711
714
  }) : window.getSelection().removeAllRanges();
712
715
  } catch {
713
716
  }
714
717
  },
715
718
  _dragStarted: function(e, n) {
716
- if (Be = !1, P && d) {
717
- J("dragStarted", this, {
719
+ if (Me = !1, F && d) {
720
+ ee("dragStarted", this, {
718
721
  evt: n
719
- }), this.nativeDraggable && I(document, "dragover", lo);
722
+ }), this.nativeDraggable && I(document, "dragover", ao);
720
723
  var t = this.options;
721
- !e && ne(d, t.dragClass, !1), ne(d, t.ghostClass, !0), S.active = this, e && this._appendGhost(), q({
724
+ !e && ne(d, t.dragClass, !1), ne(d, t.ghostClass, !0), S.active = this, e && this._appendGhost(), Q({
722
725
  sortable: this,
723
726
  name: "start",
724
727
  originalEvent: n
@@ -731,11 +734,11 @@ S.prototype = /** @lends Sortable.prototype */
731
734
  this._lastX = de.clientX, this._lastY = de.clientY, wn();
732
735
  for (var e = document.elementFromPoint(de.clientX, de.clientY), n = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(de.clientX, de.clientY), e !== n); )
733
736
  n = e;
734
- if (d.parentNode[ee]._isOutsideThisEl(e), n)
737
+ if (d.parentNode[te]._isOutsideThisEl(e), n)
735
738
  do {
736
- if (n[ee]) {
739
+ if (n[te]) {
737
740
  var t = void 0;
738
- if (t = n[ee]._onDragOver({
741
+ if (t = n[te]._onDragOver({
739
742
  clientX: de.clientX,
740
743
  clientY: de.clientY,
741
744
  target: e,
@@ -750,88 +753,88 @@ S.prototype = /** @lends Sortable.prototype */
750
753
  },
751
754
  _onTouchMove: function(e) {
752
755
  if (Oe) {
753
- var n = this.options, t = n.fallbackTolerance, i = n.fallbackOffset, r = e.touches ? e.touches[0] : e, a = D && Ke(D, !0), l = D && a && a.a, s = D && a && a.d, u = at && W && Ut(W), p = (r.clientX - Oe.clientX + i.x) / (l || 1) + (u ? u[0] - Ct[0] : 0) / (l || 1), f = (r.clientY - Oe.clientY + i.y) / (s || 1) + (u ? u[1] - Ct[1] : 0) / (s || 1);
754
- if (!S.active && !Be) {
756
+ var n = this.options, t = n.fallbackTolerance, i = n.fallbackOffset, r = e.touches ? e.touches[0] : e, a = _ && ze(_, !0), l = _ && a && a.a, s = _ && a && a.d, u = at && U && Ut(U), g = (r.clientX - Oe.clientX + i.x) / (l || 1) + (u ? u[0] - Ct[0] : 0) / (l || 1), f = (r.clientY - Oe.clientY + i.y) / (s || 1) + (u ? u[1] - Ct[1] : 0) / (s || 1);
757
+ if (!S.active && !Me) {
755
758
  if (t && Math.max(Math.abs(r.clientX - this._lastX), Math.abs(r.clientY - this._lastY)) < t)
756
759
  return;
757
760
  this._onDragStart(e, !0);
758
761
  }
759
- if (D) {
760
- a ? (a.e += p - (_t || 0), a.f += f - (Dt || 0)) : a = {
762
+ if (_) {
763
+ a ? (a.e += g - (_t || 0), a.f += f - (Dt || 0)) : a = {
761
764
  a: 1,
762
765
  b: 0,
763
766
  c: 0,
764
767
  d: 1,
765
- e: p,
768
+ e: g,
766
769
  f
767
770
  };
768
- var b = "matrix(".concat(a.a, ",").concat(a.b, ",").concat(a.c, ",").concat(a.d, ",").concat(a.e, ",").concat(a.f, ")");
769
- E(D, "webkitTransform", b), E(D, "mozTransform", b), E(D, "msTransform", b), E(D, "transform", b), _t = p, Dt = f, de = r;
771
+ var w = "matrix(".concat(a.a, ",").concat(a.b, ",").concat(a.c, ",").concat(a.d, ",").concat(a.e, ",").concat(a.f, ")");
772
+ E(_, "webkitTransform", w), E(_, "mozTransform", w), E(_, "msTransform", w), E(_, "transform", w), _t = g, Dt = f, de = r;
770
773
  }
771
774
  e.cancelable && e.preventDefault();
772
775
  }
773
776
  },
774
777
  _appendGhost: function() {
775
- if (!D) {
776
- var e = this.options.fallbackOnBody ? document.body : P, n = X(d, !0, at, !0, e), t = this.options;
778
+ if (!_) {
779
+ var e = this.options.fallbackOnBody ? document.body : F, n = X(d, !0, at, !0, e), t = this.options;
777
780
  if (at) {
778
- for (W = e; E(W, "position") === "static" && E(W, "transform") === "none" && W !== document; )
779
- W = W.parentNode;
780
- W !== document.body && W !== document.documentElement ? (W === document && (W = ve()), n.top += W.scrollTop, n.left += W.scrollLeft) : W = ve(), Ct = Ut(W);
781
+ for (U = e; E(U, "position") === "static" && E(U, "transform") === "none" && U !== document; )
782
+ U = U.parentNode;
783
+ U !== document.body && U !== document.documentElement ? (U === document && (U = ge()), n.top += U.scrollTop, n.left += U.scrollLeft) : U = ge(), Ct = Ut(U);
781
784
  }
782
- D = d.cloneNode(!0), ne(D, t.ghostClass, !1), ne(D, t.fallbackClass, !0), ne(D, t.dragClass, !0), E(D, "transition", ""), E(D, "transform", ""), E(D, "box-sizing", "border-box"), E(D, "margin", 0), E(D, "top", n.top), E(D, "left", n.left), E(D, "width", n.width), E(D, "height", n.height), E(D, "opacity", "0.8"), E(D, "position", at ? "absolute" : "fixed"), E(D, "zIndex", "100000"), E(D, "pointerEvents", "none"), S.ghost = D, e.appendChild(D), E(D, "transform-origin", qt / parseInt(D.style.width) * 100 + "% " + Zt / parseInt(D.style.height) * 100 + "%");
785
+ _ = d.cloneNode(!0), ne(_, t.ghostClass, !1), ne(_, t.fallbackClass, !0), ne(_, t.dragClass, !0), E(_, "transition", ""), E(_, "transform", ""), E(_, "box-sizing", "border-box"), E(_, "margin", 0), E(_, "top", n.top), E(_, "left", n.left), E(_, "width", n.width), E(_, "height", n.height), E(_, "opacity", "0.8"), E(_, "position", at ? "absolute" : "fixed"), E(_, "zIndex", "100000"), E(_, "pointerEvents", "none"), S.ghost = _, e.appendChild(_), E(_, "transform-origin", qt / parseInt(_.style.width) * 100 + "% " + Zt / parseInt(_.style.height) * 100 + "%");
783
786
  }
784
787
  },
785
788
  _onDragStart: function(e, n) {
786
789
  var t = this, i = e.dataTransfer, r = t.options;
787
- if (J("dragStart", this, {
790
+ if (ee("dragStart", this, {
788
791
  evt: e
789
792
  }), S.eventCanceled) {
790
793
  this._onDrop();
791
794
  return;
792
795
  }
793
- J("setupClone", this), S.eventCanceled || (F = gn(d), F.removeAttribute("id"), F.draggable = !1, F.style["will-change"] = "", this._hideClone(), ne(F, this.options.chosenClass, !1), S.clone = F), t.cloneId = ht(function() {
794
- J("clone", t), !S.eventCanceled && (t.options.removeCloneOnHide || P.insertBefore(F, d), t._hideClone(), q({
796
+ ee("setupClone", this), S.eventCanceled || (B = gn(d), B.removeAttribute("id"), B.draggable = !1, B.style["will-change"] = "", this._hideClone(), ne(B, this.options.chosenClass, !1), S.clone = B), t.cloneId = ft(function() {
797
+ ee("clone", t), !S.eventCanceled && (t.options.removeCloneOnHide || F.insertBefore(B, d), t._hideClone(), Q({
795
798
  sortable: t,
796
799
  name: "clone"
797
800
  }));
798
- }), !n && ne(d, r.dragClass, !0), n ? (mt = !0, t._loopId = setInterval(t._emulateDragOver, 50)) : (x(document, "mouseup", t._onDrop), x(document, "touchend", t._onDrop), x(document, "touchcancel", t._onDrop), i && (i.effectAllowed = "move", r.setData && r.setData.call(t, i, d)), I(document, "drop", t), E(d, "transform", "translateZ(0)")), Be = !0, t._dragStartId = ht(t._dragStarted.bind(t, n, e)), I(document, "selectstart", t), Ve = !0, window.getSelection().removeAllRanges(), qe && E(document.body, "user-select", "none");
801
+ }), !n && ne(d, r.dragClass, !0), n ? (gt = !0, t._loopId = setInterval(t._emulateDragOver, 50)) : (x(document, "mouseup", t._onDrop), x(document, "touchend", t._onDrop), x(document, "touchcancel", t._onDrop), i && (i.effectAllowed = "move", r.setData && r.setData.call(t, i, d)), I(document, "drop", t), E(d, "transform", "translateZ(0)")), Me = !0, t._dragStartId = ft(t._dragStarted.bind(t, n, e)), I(document, "selectstart", t), je = !0, window.getSelection().removeAllRanges(), qe && E(document.body, "user-select", "none");
799
802
  },
800
803
  // Returns true - if no further action is needed (either inserted or another condition)
801
804
  _onDragOver: function(e) {
802
- var n = this.el, t = e.target, i, r, a, l = this.options, s = l.group, u = S.active, p = it === s, f = l.sort, b = G || u, v, C = this, T = !1;
805
+ var n = this.el, t = e.target, i, r, a, l = this.options, s = l.group, u = S.active, g = it === s, f = l.sort, w = H || u, y, D = this, T = !1;
803
806
  if (Nt) return;
804
- function $(y, O) {
805
- J(y, C, be({
807
+ function $(O, ae) {
808
+ ee(O, D, me({
806
809
  evt: e,
807
- isOwner: p,
808
- axis: v ? "vertical" : "horizontal",
810
+ isOwner: g,
811
+ axis: y ? "vertical" : "horizontal",
809
812
  revert: a,
810
813
  dragRect: i,
811
814
  targetRect: r,
812
815
  canSort: f,
813
- fromSortable: b,
816
+ fromSortable: w,
814
817
  target: t,
815
- completed: k,
816
- onMove: function(le, g) {
817
- return lt(P, n, d, i, le, X(le), e, g);
818
+ completed: N,
819
+ onMove: function(Z, p) {
820
+ return lt(F, n, d, i, Z, X(Z), e, p);
818
821
  },
819
- changed: K
820
- }, O));
822
+ changed: z
823
+ }, ae));
821
824
  }
822
- function H() {
823
- $("dragOverAnimationCapture"), C.captureAnimationState(), C !== b && b.captureAnimationState();
825
+ function j() {
826
+ $("dragOverAnimationCapture"), D.captureAnimationState(), D !== w && w.captureAnimationState();
824
827
  }
825
- function k(y) {
828
+ function N(O) {
826
829
  return $("dragOverCompleted", {
827
- insertion: y
828
- }), y && (p ? u._hideClone() : u._showClone(C), C !== b && (ne(d, G ? G.options.ghostClass : u.options.ghostClass, !1), ne(d, l.ghostClass, !0)), G !== C && C !== S.active ? G = C : C === S.active && G && (G = null), b === C && (C._ignoreWhileAnimating = t), C.animateAll(function() {
829
- $("dragOverAnimationComplete"), C._ignoreWhileAnimating = null;
830
- }), C !== b && (b.animateAll(), b._ignoreWhileAnimating = null)), (t === d && !d.animated || t === n && !t.animated) && (Me = null), !l.dragoverBubble && !e.rootEl && t !== document && (d.parentNode[ee]._isOutsideThisEl(e.target), !y && Ne(e)), !l.dragoverBubble && e.stopPropagation && e.stopPropagation(), T = !0;
830
+ insertion: O
831
+ }), O && (g ? u._hideClone() : u._showClone(D), D !== w && (ne(d, H ? H.options.ghostClass : u.options.ghostClass, !1), ne(d, l.ghostClass, !0)), H !== D && D !== S.active ? H = D : D === S.active && H && (H = null), w === D && (D._ignoreWhileAnimating = t), D.animateAll(function() {
832
+ $("dragOverAnimationComplete"), D._ignoreWhileAnimating = null;
833
+ }), D !== w && (w.animateAll(), w._ignoreWhileAnimating = null)), (t === d && !d.animated || t === n && !t.animated) && (Fe = null), !l.dragoverBubble && !e.rootEl && t !== document && (d.parentNode[te]._isOutsideThisEl(e.target), !O && ke(e)), !l.dragoverBubble && e.stopPropagation && e.stopPropagation(), T = !0;
831
834
  }
832
- function K() {
833
- oe = se(d), Ce = se(d, l.draggable), q({
834
- sortable: C,
835
+ function z() {
836
+ oe = le(d), Ce = le(d, l.draggable), Q({
837
+ sortable: D,
835
838
  name: "change",
836
839
  toEl: n,
837
840
  newIndex: oe,
@@ -840,52 +843,52 @@ S.prototype = /** @lends Sortable.prototype */
840
843
  });
841
844
  }
842
845
  if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), t = ce(t, l.draggable, n, !0), $("dragOver"), S.eventCanceled) return T;
843
- if (d.contains(e.target) || t.animated && t.animatingX && t.animatingY || C._ignoreWhileAnimating === t)
844
- return k(!1);
845
- if (mt = !1, u && !l.disabled && (p ? f || (a = B !== P) : G === this || (this.lastPutMode = it.checkPull(this, u, d, e)) && s.checkPut(this, u, d, e))) {
846
- if (v = this._getDirection(e, t) === "vertical", i = X(d), $("dragOverValid"), S.eventCanceled) return T;
846
+ if (d.contains(e.target) || t.animated && t.animatingX && t.animatingY || D._ignoreWhileAnimating === t)
847
+ return N(!1);
848
+ if (gt = !1, u && !l.disabled && (g ? f || (a = R !== F) : H === this || (this.lastPutMode = it.checkPull(this, u, d, e)) && s.checkPut(this, u, d, e))) {
849
+ if (y = this._getDirection(e, t) === "vertical", i = X(d), $("dragOverValid"), S.eventCanceled) return T;
847
850
  if (a)
848
- return B = P, H(), this._hideClone(), $("revert"), S.eventCanceled || (Pe ? P.insertBefore(d, Pe) : P.appendChild(d)), k(!0);
849
- var M = Bt(n, l.draggable);
850
- if (!M || fo(e, v, this) && !M.animated) {
851
- if (M === d)
852
- return k(!1);
853
- if (M && n === e.target && (t = M), t && (r = X(t)), lt(P, n, d, i, t, r, e, !!t) !== !1)
854
- return H(), M && M.nextSibling ? n.insertBefore(d, M.nextSibling) : n.appendChild(d), B = n, K(), k(!0);
855
- } else if (M && co(e, v, this)) {
856
- var U = ze(n, 0, l, !0);
857
- if (U === d)
858
- return k(!1);
859
- if (t = U, r = X(t), lt(P, n, d, i, t, r, e, !1) !== !1)
860
- return H(), n.insertBefore(d, U), B = n, K(), k(!0);
851
+ return R = F, j(), this._hideClone(), $("revert"), S.eventCanceled || (Ne ? F.insertBefore(d, Ne) : F.appendChild(d)), N(!0);
852
+ var A = Bt(n, l.draggable);
853
+ if (!A || co(e, y, this) && !A.animated) {
854
+ if (A === d)
855
+ return N(!1);
856
+ if (A && n === e.target && (t = A), t && (r = X(t)), lt(F, n, d, i, t, r, e, !!t) !== !1)
857
+ return j(), A && A.nextSibling ? n.insertBefore(d, A.nextSibling) : n.appendChild(d), R = n, z(), N(!0);
858
+ } else if (A && uo(e, y, this)) {
859
+ var q = Ke(n, 0, l, !0);
860
+ if (q === d)
861
+ return N(!1);
862
+ if (t = q, r = X(t), lt(F, n, d, i, t, r, e, !1) !== !1)
863
+ return j(), n.insertBefore(d, q), R = n, z(), N(!0);
861
864
  } else if (t.parentNode === n) {
862
865
  r = X(t);
863
- var R = 0, ie, re = d.parentNode !== n, N = !ro(d.animated && d.toRect || i, t.animated && t.toRect || r, v), ye = v ? "top" : "left", ae = jt(t, "top", "top") || jt(d, "top", "top"), he = ae ? ae.scrollTop : void 0;
864
- Me !== t && (ie = r[ye], et = !1, rt = !N && l.invertSwap || re), R = ho(e, t, r, v, N ? 1 : l.swapThreshold, l.invertedSwapThreshold == null ? l.swapThreshold : l.invertedSwapThreshold, rt, Me === t);
866
+ var L = 0, se, ie = d.parentNode !== n, P = !io(d.animated && d.toRect || i, t.animated && t.toRect || r, y), ve = y ? "top" : "left", re = Wt(t, "top", "top") || Wt(d, "top", "top"), ye = re ? re.scrollTop : void 0;
867
+ Fe !== t && (se = r[ve], et = !1, rt = !P && l.invertSwap || ie), L = fo(e, t, r, y, P ? 1 : l.swapThreshold, l.invertedSwapThreshold == null ? l.swapThreshold : l.invertedSwapThreshold, rt, Fe === t);
865
868
  var V;
866
- if (R !== 0) {
867
- var L = se(d);
869
+ if (L !== 0) {
870
+ var Y = le(d);
868
871
  do
869
- L -= R, V = B.children[L];
870
- while (V && (E(V, "display") === "none" || V === D));
872
+ Y -= L, V = R.children[Y];
873
+ while (V && (E(V, "display") === "none" || V === _));
871
874
  }
872
- if (R === 0 || V === t)
873
- return k(!1);
874
- Me = t, Je = R;
875
- var pe = t.nextElementSibling, Z = !1;
876
- Z = R === 1;
877
- var De = lt(P, n, d, i, t, r, e, Z);
878
- if (De !== !1)
879
- return (De === 1 || De === -1) && (Z = De === 1), Nt = !0, setTimeout(uo, 30), H(), Z && !pe ? n.appendChild(d) : t.parentNode.insertBefore(d, Z ? pe : t), ae && pn(ae, 0, he - ae.scrollTop), B = d.parentNode, ie !== void 0 && !rt && (ft = Math.abs(ie - X(t)[ye])), K(), k(!0);
875
+ if (L === 0 || V === t)
876
+ return N(!1);
877
+ Fe = t, Je = L;
878
+ var he = t.nextElementSibling, J = !1;
879
+ J = L === 1;
880
+ var b = lt(F, n, d, i, t, r, e, J);
881
+ if (b !== !1)
882
+ return (b === 1 || b === -1) && (J = b === 1), Nt = !0, setTimeout(so, 30), j(), J && !he ? n.appendChild(d) : t.parentNode.insertBefore(d, J ? he : t), re && pn(re, 0, ye - re.scrollTop), R = d.parentNode, se !== void 0 && !rt && (ct = Math.abs(se - X(t)[ve])), z(), N(!0);
880
883
  }
881
884
  if (n.contains(d))
882
- return k(!1);
885
+ return N(!1);
883
886
  }
884
887
  return !1;
885
888
  },
886
889
  _ignoreWhileAnimating: null,
887
890
  _offMoveEvents: function() {
888
- x(document, "mousemove", this._onTouchMove), x(document, "touchmove", this._onTouchMove), x(document, "pointermove", this._onTouchMove), x(document, "dragover", Ne), x(document, "mousemove", Ne), x(document, "touchmove", Ne);
891
+ x(document, "mousemove", this._onTouchMove), x(document, "touchmove", this._onTouchMove), x(document, "pointermove", this._onTouchMove), x(document, "dragover", ke), x(document, "mousemove", ke), x(document, "touchmove", ke);
889
892
  },
890
893
  _offUpEvents: function() {
891
894
  var e = this.el.ownerDocument;
@@ -893,62 +896,62 @@ S.prototype = /** @lends Sortable.prototype */
893
896
  },
894
897
  _onDrop: function(e) {
895
898
  var n = this.el, t = this.options;
896
- if (oe = se(d), Ce = se(d, t.draggable), J("drop", this, {
899
+ if (oe = le(d), Ce = le(d, t.draggable), ee("drop", this, {
897
900
  evt: e
898
- }), B = d && d.parentNode, oe = se(d), Ce = se(d, t.draggable), S.eventCanceled) {
901
+ }), R = d && d.parentNode, oe = le(d), Ce = le(d, t.draggable), S.eventCanceled) {
899
902
  this._nulling();
900
903
  return;
901
904
  }
902
- Be = !1, rt = !1, et = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Pt(this.cloneId), Pt(this._dragStartId), this.nativeDraggable && (x(document, "drop", this), x(n, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), qe && E(document.body, "user-select", ""), E(d, "transform", ""), e && (Ve && (e.cancelable && e.preventDefault(), !t.dropBubble && e.stopPropagation()), D && D.parentNode && D.parentNode.removeChild(D), (P === B || G && G.lastPutMode !== "clone") && F && F.parentNode && F.parentNode.removeChild(F), d && (this.nativeDraggable && x(d, "dragend", this), Tt(d), d.style["will-change"] = "", Ve && !Be && ne(d, G ? G.options.ghostClass : this.options.ghostClass, !1), ne(d, this.options.chosenClass, !1), q({
905
+ Me = !1, rt = !1, et = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), At(this.cloneId), At(this._dragStartId), this.nativeDraggable && (x(document, "drop", this), x(n, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), qe && E(document.body, "user-select", ""), E(d, "transform", ""), e && (je && (e.cancelable && e.preventDefault(), !t.dropBubble && e.stopPropagation()), _ && _.parentNode && _.parentNode.removeChild(_), (F === R || H && H.lastPutMode !== "clone") && B && B.parentNode && B.parentNode.removeChild(B), d && (this.nativeDraggable && x(d, "dragend", this), Tt(d), d.style["will-change"] = "", je && !Me && ne(d, H ? H.options.ghostClass : this.options.ghostClass, !1), ne(d, this.options.chosenClass, !1), Q({
903
906
  sortable: this,
904
907
  name: "unchoose",
905
- toEl: B,
908
+ toEl: R,
906
909
  newIndex: null,
907
910
  newDraggableIndex: null,
908
911
  originalEvent: e
909
- }), P !== B ? (oe >= 0 && (q({
910
- rootEl: B,
912
+ }), F !== R ? (oe >= 0 && (Q({
913
+ rootEl: R,
911
914
  name: "add",
912
- toEl: B,
913
- fromEl: P,
915
+ toEl: R,
916
+ fromEl: F,
914
917
  originalEvent: e
915
- }), q({
918
+ }), Q({
916
919
  sortable: this,
917
920
  name: "remove",
918
- toEl: B,
921
+ toEl: R,
919
922
  originalEvent: e
920
- }), q({
921
- rootEl: B,
923
+ }), Q({
924
+ rootEl: R,
922
925
  name: "sort",
923
- toEl: B,
924
- fromEl: P,
926
+ toEl: R,
927
+ fromEl: F,
925
928
  originalEvent: e
926
- }), q({
929
+ }), Q({
927
930
  sortable: this,
928
931
  name: "sort",
929
- toEl: B,
932
+ toEl: R,
930
933
  originalEvent: e
931
- })), G && G.save()) : oe !== Re && oe >= 0 && (q({
934
+ })), H && H.save()) : oe !== Re && oe >= 0 && (Q({
932
935
  sortable: this,
933
936
  name: "update",
934
- toEl: B,
937
+ toEl: R,
935
938
  originalEvent: e
936
- }), q({
939
+ }), Q({
937
940
  sortable: this,
938
941
  name: "sort",
939
- toEl: B,
942
+ toEl: R,
940
943
  originalEvent: e
941
- })), S.active && ((oe == null || oe === -1) && (oe = Re, Ce = Qe), q({
944
+ })), S.active && ((oe == null || oe === -1) && (oe = Re, Ce = Qe), Q({
942
945
  sortable: this,
943
946
  name: "end",
944
- toEl: B,
947
+ toEl: R,
945
948
  originalEvent: e
946
949
  }), this.save()))), this._nulling();
947
950
  },
948
951
  _nulling: function() {
949
- J("nulling", this), P = d = B = D = Pe = F = ct = xe = Oe = de = Ve = oe = Ce = Re = Qe = Me = Je = G = it = S.dragged = S.ghost = S.clone = S.active = null, bt.forEach(function(e) {
952
+ ee("nulling", this), F = d = R = _ = Ne = B = dt = Te = Oe = de = je = oe = Ce = Re = Qe = Fe = Je = H = it = S.dragged = S.ghost = S.clone = S.active = null, vt.forEach(function(e) {
950
953
  e.checked = !0;
951
- }), bt.length = _t = Dt = 0;
954
+ }), vt.length = _t = Dt = 0;
952
955
  },
953
956
  handleEvent: function(e) {
954
957
  switch (e.type) {
@@ -958,7 +961,7 @@ S.prototype = /** @lends Sortable.prototype */
958
961
  break;
959
962
  case "dragenter":
960
963
  case "dragover":
961
- d && (this._onDragOver(e), so(e));
964
+ d && (this._onDragOver(e), lo(e));
962
965
  break;
963
966
  case "selectstart":
964
967
  e.preventDefault();
@@ -971,7 +974,7 @@ S.prototype = /** @lends Sortable.prototype */
971
974
  */
972
975
  toArray: function() {
973
976
  for (var e = [], n, t = this.el.children, i = 0, r = t.length, a = this.options; i < r; i++)
974
- n = t[i], ce(n, a.draggable, this.el, !1) && e.push(n.getAttribute(a.dataIdAttr) || go(n));
977
+ n = t[i], ce(n, a.draggable, this.el, !1) && e.push(n.getAttribute(a.dataIdAttr) || po(n));
975
978
  return e;
976
979
  },
977
980
  /**
@@ -1014,22 +1017,22 @@ S.prototype = /** @lends Sortable.prototype */
1014
1017
  if (n === void 0)
1015
1018
  return t[e];
1016
1019
  var i = nt.modifyOption(this, e, n);
1017
- typeof i < "u" ? t[e] = i : t[e] = n, e === "group" && yn(t);
1020
+ typeof i < "u" ? t[e] = i : t[e] = n, e === "group" && bn(t);
1018
1021
  },
1019
1022
  /**
1020
1023
  * Destroy
1021
1024
  */
1022
1025
  destroy: function() {
1023
- J("destroy", this);
1026
+ ee("destroy", this);
1024
1027
  var e = this.el;
1025
- e[ee] = null, x(e, "mousedown", this._onTapStart), x(e, "touchstart", this._onTapStart), x(e, "pointerdown", this._onTapStart), this.nativeDraggable && (x(e, "dragover", this), x(e, "dragenter", this)), Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), function(n) {
1028
+ e[te] = null, x(e, "mousedown", this._onTapStart), x(e, "touchstart", this._onTapStart), x(e, "pointerdown", this._onTapStart), this.nativeDraggable && (x(e, "dragover", this), x(e, "dragenter", this)), Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), function(n) {
1026
1029
  n.removeAttribute("draggable");
1027
- }), this._onDrop(), this._disableDelayedDragEvents(), vt.splice(vt.indexOf(this.el), 1), this.el = e = null;
1030
+ }), this._onDrop(), this._disableDelayedDragEvents(), mt.splice(mt.indexOf(this.el), 1), this.el = e = null;
1028
1031
  },
1029
1032
  _hideClone: function() {
1030
- if (!xe) {
1031
- if (J("hideClone", this), S.eventCanceled) return;
1032
- E(F, "display", "none"), this.options.removeCloneOnHide && F.parentNode && F.parentNode.removeChild(F), xe = !0;
1033
+ if (!Te) {
1034
+ if (ee("hideClone", this), S.eventCanceled) return;
1035
+ E(B, "display", "none"), this.options.removeCloneOnHide && B.parentNode && B.parentNode.removeChild(B), Te = !0;
1033
1036
  }
1034
1037
  },
1035
1038
  _showClone: function(e) {
@@ -1037,72 +1040,72 @@ S.prototype = /** @lends Sortable.prototype */
1037
1040
  this._hideClone();
1038
1041
  return;
1039
1042
  }
1040
- if (xe) {
1041
- if (J("showClone", this), S.eventCanceled) return;
1042
- d.parentNode == P && !this.options.group.revertClone ? P.insertBefore(F, d) : Pe ? P.insertBefore(F, Pe) : P.appendChild(F), this.options.group.revertClone && this.animate(d, F), E(F, "display", ""), xe = !1;
1043
+ if (Te) {
1044
+ if (ee("showClone", this), S.eventCanceled) return;
1045
+ d.parentNode == F && !this.options.group.revertClone ? F.insertBefore(B, d) : Ne ? F.insertBefore(B, Ne) : F.appendChild(B), this.options.group.revertClone && this.animate(d, B), E(B, "display", ""), Te = !1;
1043
1046
  }
1044
1047
  }
1045
1048
  };
1046
- function so(o) {
1049
+ function lo(o) {
1047
1050
  o.dataTransfer && (o.dataTransfer.dropEffect = "move"), o.cancelable && o.preventDefault();
1048
1051
  }
1049
1052
  function lt(o, e, n, t, i, r, a, l) {
1050
- var s, u = o[ee], p = u.options.onMove, f;
1051
- return window.CustomEvent && !_e && !tt ? s = new CustomEvent("move", {
1053
+ var s, u = o[te], g = u.options.onMove, f;
1054
+ return window.CustomEvent && !De && !tt ? s = new CustomEvent("move", {
1052
1055
  bubbles: !0,
1053
1056
  cancelable: !0
1054
- }) : (s = document.createEvent("Event"), s.initEvent("move", !0, !0)), s.to = e, s.from = o, s.dragged = n, s.draggedRect = t, s.related = i || e, s.relatedRect = r || X(e), s.willInsertAfter = l, s.originalEvent = a, o.dispatchEvent(s), p && (f = p.call(u, s, a)), f;
1057
+ }) : (s = document.createEvent("Event"), s.initEvent("move", !0, !0)), s.to = e, s.from = o, s.dragged = n, s.draggedRect = t, s.related = i || e, s.relatedRect = r || X(e), s.willInsertAfter = l, s.originalEvent = a, o.dispatchEvent(s), g && (f = g.call(u, s, a)), f;
1055
1058
  }
1056
1059
  function Tt(o) {
1057
1060
  o.draggable = !1;
1058
1061
  }
1059
- function uo() {
1062
+ function so() {
1060
1063
  Nt = !1;
1061
1064
  }
1062
- function co(o, e, n) {
1063
- var t = X(ze(n.el, 0, n.options, !0)), i = mn(n.el, n.options, D), r = 10;
1065
+ function uo(o, e, n) {
1066
+ var t = X(Ke(n.el, 0, n.options, !0)), i = mn(n.el, n.options, _), r = 10;
1064
1067
  return e ? o.clientX < i.left - r || o.clientY < t.top && o.clientX < t.right : o.clientY < i.top - r || o.clientY < t.bottom && o.clientX < t.left;
1065
1068
  }
1066
- function fo(o, e, n) {
1067
- var t = X(Bt(n.el, n.options.draggable)), i = mn(n.el, n.options, D), r = 10;
1069
+ function co(o, e, n) {
1070
+ var t = X(Bt(n.el, n.options.draggable)), i = mn(n.el, n.options, _), r = 10;
1068
1071
  return e ? o.clientX > i.right + r || o.clientY > t.bottom && o.clientX > t.left : o.clientY > i.bottom + r || o.clientX > t.right && o.clientY > t.top;
1069
1072
  }
1070
- function ho(o, e, n, t, i, r, a, l) {
1071
- var s = t ? o.clientY : o.clientX, u = t ? n.height : n.width, p = t ? n.top : n.left, f = t ? n.bottom : n.right, b = !1;
1073
+ function fo(o, e, n, t, i, r, a, l) {
1074
+ var s = t ? o.clientY : o.clientX, u = t ? n.height : n.width, g = t ? n.top : n.left, f = t ? n.bottom : n.right, w = !1;
1072
1075
  if (!a) {
1073
- if (l && ft < u * i) {
1074
- if (!et && (Je === 1 ? s > p + u * r / 2 : s < f - u * r / 2) && (et = !0), et)
1075
- b = !0;
1076
- else if (Je === 1 ? s < p + ft : s > f - ft)
1076
+ if (l && ct < u * i) {
1077
+ if (!et && (Je === 1 ? s > g + u * r / 2 : s < f - u * r / 2) && (et = !0), et)
1078
+ w = !0;
1079
+ else if (Je === 1 ? s < g + ct : s > f - ct)
1077
1080
  return -Je;
1078
- } else if (s > p + u * (1 - i) / 2 && s < f - u * (1 - i) / 2)
1079
- return po(e);
1081
+ } else if (s > g + u * (1 - i) / 2 && s < f - u * (1 - i) / 2)
1082
+ return ho(e);
1080
1083
  }
1081
- return b = b || a, b && (s < p + u * r / 2 || s > f - u * r / 2) ? s > p + u / 2 ? 1 : -1 : 0;
1084
+ return w = w || a, w && (s < g + u * r / 2 || s > f - u * r / 2) ? s > g + u / 2 ? 1 : -1 : 0;
1082
1085
  }
1083
- function po(o) {
1084
- return se(d) < se(o) ? 1 : -1;
1086
+ function ho(o) {
1087
+ return le(d) < le(o) ? 1 : -1;
1085
1088
  }
1086
- function go(o) {
1089
+ function po(o) {
1087
1090
  for (var e = o.tagName + o.className + o.src + o.href + o.textContent, n = e.length, t = 0; n--; )
1088
1091
  t += e.charCodeAt(n);
1089
1092
  return t.toString(36);
1090
1093
  }
1091
- function mo(o) {
1092
- bt.length = 0;
1094
+ function go(o) {
1095
+ vt.length = 0;
1093
1096
  for (var e = o.getElementsByTagName("input"), n = e.length; n--; ) {
1094
1097
  var t = e[n];
1095
- t.checked && bt.push(t);
1098
+ t.checked && vt.push(t);
1096
1099
  }
1097
1100
  }
1098
- function ht(o) {
1101
+ function ft(o) {
1099
1102
  return setTimeout(o, 0);
1100
1103
  }
1101
- function Pt(o) {
1104
+ function At(o) {
1102
1105
  return clearTimeout(o);
1103
1106
  }
1104
- wt && I(document, "touchmove", function(o) {
1105
- (S.active || Be) && o.cancelable && o.preventDefault();
1107
+ bt && I(document, "touchmove", function(o) {
1108
+ (S.active || Me) && o.cancelable && o.preventDefault();
1106
1109
  });
1107
1110
  S.utils = {
1108
1111
  on: I,
@@ -1112,20 +1115,20 @@ S.utils = {
1112
1115
  is: function(e, n) {
1113
1116
  return !!ce(e, n, e, !1);
1114
1117
  },
1115
- extend: Zn,
1118
+ extend: qn,
1116
1119
  throttle: hn,
1117
1120
  closest: ce,
1118
1121
  toggleClass: ne,
1119
1122
  clone: gn,
1120
- index: se,
1121
- nextTick: ht,
1122
- cancelNextTick: Pt,
1123
- detectDirection: bn,
1124
- getChild: ze,
1125
- expando: ee
1123
+ index: le,
1124
+ nextTick: ft,
1125
+ cancelNextTick: At,
1126
+ detectDirection: yn,
1127
+ getChild: Ke,
1128
+ expando: te
1126
1129
  };
1127
1130
  S.get = function(o) {
1128
- return o[ee];
1131
+ return o[te];
1129
1132
  };
1130
1133
  S.mount = function() {
1131
1134
  for (var o = arguments.length, e = new Array(o), n = 0; n < o; n++)
@@ -1133,15 +1136,15 @@ S.mount = function() {
1133
1136
  e[0].constructor === Array && (e = e[0]), e.forEach(function(t) {
1134
1137
  if (!t.prototype || !t.prototype.constructor)
1135
1138
  throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(t));
1136
- t.utils && (S.utils = be(be({}, S.utils), t.utils)), nt.mount(t);
1139
+ t.utils && (S.utils = me(me({}, S.utils), t.utils)), nt.mount(t);
1137
1140
  });
1138
1141
  };
1139
1142
  S.create = function(o, e) {
1140
1143
  return new S(o, e);
1141
1144
  };
1142
- S.version = Un;
1143
- var z = [], We, At, Ft = !1, xt, It, yt, je;
1144
- function vo() {
1145
+ S.version = Wn;
1146
+ var K = [], Ve, Pt, Ft = !1, xt, It, yt, We;
1147
+ function mo() {
1145
1148
  function o() {
1146
1149
  this.defaults = {
1147
1150
  scroll: !0,
@@ -1163,64 +1166,64 @@ function vo() {
1163
1166
  !this.options.dragOverBubble && !t.rootEl && this._handleAutoScroll(t);
1164
1167
  },
1165
1168
  drop: function() {
1166
- this.sortable.nativeDraggable ? x(document, "dragover", this._handleAutoScroll) : (x(document, "pointermove", this._handleFallbackAutoScroll), x(document, "touchmove", this._handleFallbackAutoScroll), x(document, "mousemove", this._handleFallbackAutoScroll)), Jt(), pt(), Qn();
1169
+ this.sortable.nativeDraggable ? x(document, "dragover", this._handleAutoScroll) : (x(document, "pointermove", this._handleFallbackAutoScroll), x(document, "touchmove", this._handleFallbackAutoScroll), x(document, "mousemove", this._handleFallbackAutoScroll)), Jt(), ht(), Zn();
1167
1170
  },
1168
1171
  nulling: function() {
1169
- yt = At = We = Ft = je = xt = It = null, z.length = 0;
1172
+ yt = Pt = Ve = Ft = We = xt = It = null, K.length = 0;
1170
1173
  },
1171
1174
  _handleFallbackAutoScroll: function(n) {
1172
1175
  this._handleAutoScroll(n, !0);
1173
1176
  },
1174
1177
  _handleAutoScroll: function(n, t) {
1175
1178
  var i = this, r = (n.touches ? n.touches[0] : n).clientX, a = (n.touches ? n.touches[0] : n).clientY, l = document.elementFromPoint(r, a);
1176
- if (yt = n, t || this.options.forceAutoScrollFallback || tt || _e || qe) {
1177
- kt(n, this.options, l, t);
1178
- var s = Ie(l, !0);
1179
- Ft && (!je || r !== xt || a !== It) && (je && Jt(), je = setInterval(function() {
1180
- var u = Ie(document.elementFromPoint(r, a), !0);
1181
- u !== s && (s = u, pt()), kt(n, i.options, u, t);
1179
+ if (yt = n, t || this.options.forceAutoScrollFallback || tt || De || qe) {
1180
+ Ot(n, this.options, l, t);
1181
+ var s = xe(l, !0);
1182
+ Ft && (!We || r !== xt || a !== It) && (We && Jt(), We = setInterval(function() {
1183
+ var u = xe(document.elementFromPoint(r, a), !0);
1184
+ u !== s && (s = u, ht()), Ot(n, i.options, u, t);
1182
1185
  }, 10), xt = r, It = a);
1183
1186
  } else {
1184
- if (!this.options.bubbleScroll || Ie(l, !0) === ve()) {
1185
- pt();
1187
+ if (!this.options.bubbleScroll || xe(l, !0) === ge()) {
1188
+ ht();
1186
1189
  return;
1187
1190
  }
1188
- kt(n, this.options, Ie(l, !1), !1);
1191
+ Ot(n, this.options, xe(l, !1), !1);
1189
1192
  }
1190
1193
  }
1191
- }, Se(o, {
1194
+ }, _e(o, {
1192
1195
  pluginName: "scroll",
1193
1196
  initializeByDefault: !0
1194
1197
  });
1195
1198
  }
1196
- function pt() {
1197
- z.forEach(function(o) {
1199
+ function ht() {
1200
+ K.forEach(function(o) {
1198
1201
  clearInterval(o.pid);
1199
- }), z = [];
1202
+ }), K = [];
1200
1203
  }
1201
1204
  function Jt() {
1202
- clearInterval(je);
1205
+ clearInterval(We);
1203
1206
  }
1204
- var kt = hn(function(o, e, n, t) {
1207
+ var Ot = hn(function(o, e, n, t) {
1205
1208
  if (e.scroll) {
1206
- var i = (o.touches ? o.touches[0] : o).clientX, r = (o.touches ? o.touches[0] : o).clientY, a = e.scrollSensitivity, l = e.scrollSpeed, s = ve(), u = !1, p;
1207
- At !== n && (At = n, pt(), We = e.scroll, p = e.scrollFn, We === !0 && (We = Ie(n, !0)));
1208
- var f = 0, b = We;
1209
+ var i = (o.touches ? o.touches[0] : o).clientX, r = (o.touches ? o.touches[0] : o).clientY, a = e.scrollSensitivity, l = e.scrollSpeed, s = ge(), u = !1, g;
1210
+ Pt !== n && (Pt = n, ht(), Ve = e.scroll, g = e.scrollFn, Ve === !0 && (Ve = xe(n, !0)));
1211
+ var f = 0, w = Ve;
1209
1212
  do {
1210
- var v = b, C = X(v), T = C.top, $ = C.bottom, H = C.left, k = C.right, K = C.width, M = C.height, U = void 0, R = void 0, ie = v.scrollWidth, re = v.scrollHeight, N = E(v), ye = v.scrollLeft, ae = v.scrollTop;
1211
- v === s ? (U = K < ie && (N.overflowX === "auto" || N.overflowX === "scroll" || N.overflowX === "visible"), R = M < re && (N.overflowY === "auto" || N.overflowY === "scroll" || N.overflowY === "visible")) : (U = K < ie && (N.overflowX === "auto" || N.overflowX === "scroll"), R = M < re && (N.overflowY === "auto" || N.overflowY === "scroll"));
1212
- var he = U && (Math.abs(k - i) <= a && ye + K < ie) - (Math.abs(H - i) <= a && !!ye), V = R && (Math.abs($ - r) <= a && ae + M < re) - (Math.abs(T - r) <= a && !!ae);
1213
- if (!z[f])
1214
- for (var L = 0; L <= f; L++)
1215
- z[L] || (z[L] = {});
1216
- (z[f].vx != he || z[f].vy != V || z[f].el !== v) && (z[f].el = v, z[f].vx = he, z[f].vy = V, clearInterval(z[f].pid), (he != 0 || V != 0) && (u = !0, z[f].pid = setInterval((function() {
1213
+ var y = w, D = X(y), T = D.top, $ = D.bottom, j = D.left, N = D.right, z = D.width, A = D.height, q = void 0, L = void 0, se = y.scrollWidth, ie = y.scrollHeight, P = E(y), ve = y.scrollLeft, re = y.scrollTop;
1214
+ y === s ? (q = z < se && (P.overflowX === "auto" || P.overflowX === "scroll" || P.overflowX === "visible"), L = A < ie && (P.overflowY === "auto" || P.overflowY === "scroll" || P.overflowY === "visible")) : (q = z < se && (P.overflowX === "auto" || P.overflowX === "scroll"), L = A < ie && (P.overflowY === "auto" || P.overflowY === "scroll"));
1215
+ var ye = q && (Math.abs(N - i) <= a && ve + z < se) - (Math.abs(j - i) <= a && !!ve), V = L && (Math.abs($ - r) <= a && re + A < ie) - (Math.abs(T - r) <= a && !!re);
1216
+ if (!K[f])
1217
+ for (var Y = 0; Y <= f; Y++)
1218
+ K[Y] || (K[Y] = {});
1219
+ (K[f].vx != ye || K[f].vy != V || K[f].el !== y) && (K[f].el = y, K[f].vx = ye, K[f].vy = V, clearInterval(K[f].pid), (ye != 0 || V != 0) && (u = !0, K[f].pid = setInterval((function() {
1217
1220
  t && this.layer === 0 && S.active._onTouchMove(yt);
1218
- var pe = z[this.layer].vy ? z[this.layer].vy * l : 0, Z = z[this.layer].vx ? z[this.layer].vx * l : 0;
1219
- typeof p == "function" && p.call(S.dragged.parentNode[ee], Z, pe, o, yt, z[this.layer].el) !== "continue" || pn(z[this.layer].el, Z, pe);
1221
+ var he = K[this.layer].vy ? K[this.layer].vy * l : 0, J = K[this.layer].vx ? K[this.layer].vx * l : 0;
1222
+ typeof g == "function" && g.call(S.dragged.parentNode[te], J, he, o, yt, K[this.layer].el) !== "continue" || pn(K[this.layer].el, J, he);
1220
1223
  }).bind({
1221
1224
  layer: f
1222
1225
  }), 24))), f++;
1223
- } while (e.bubbleScroll && b !== s && (b = Ie(b, !1)));
1226
+ } while (e.bubbleScroll && w !== s && (w = xe(w, !1)));
1224
1227
  Ft = u;
1225
1228
  }
1226
1229
  }, 30), Sn = function(e) {
@@ -1228,7 +1231,7 @@ var kt = hn(function(o, e, n, t) {
1228
1231
  if (n) {
1229
1232
  var u = t || r;
1230
1233
  l();
1231
- var p = n.changedTouches && n.changedTouches.length ? n.changedTouches[0] : n, f = document.elementFromPoint(p.clientX, p.clientY);
1234
+ var g = n.changedTouches && n.changedTouches.length ? n.changedTouches[0] : n, f = document.elementFromPoint(g.clientX, g.clientY);
1232
1235
  s(), u && !u.el.contains(f) && (a("spill"), this.onSpill({
1233
1236
  dragEl: i,
1234
1237
  putSortable: t
@@ -1246,29 +1249,29 @@ Rt.prototype = {
1246
1249
  onSpill: function(e) {
1247
1250
  var n = e.dragEl, t = e.putSortable;
1248
1251
  this.sortable.captureAnimationState(), t && t.captureAnimationState();
1249
- var i = ze(this.sortable.el, this.startIndex, this.options);
1252
+ var i = Ke(this.sortable.el, this.startIndex, this.options);
1250
1253
  i ? this.sortable.el.insertBefore(n, i) : this.sortable.el.appendChild(n), this.sortable.animateAll(), t && t.animateAll();
1251
1254
  },
1252
1255
  drop: Sn
1253
1256
  };
1254
- Se(Rt, {
1257
+ _e(Rt, {
1255
1258
  pluginName: "revertOnSpill"
1256
1259
  });
1257
- function Kt() {
1260
+ function zt() {
1258
1261
  }
1259
- Kt.prototype = {
1262
+ zt.prototype = {
1260
1263
  onSpill: function(e) {
1261
1264
  var n = e.dragEl, t = e.putSortable, i = t || this.sortable;
1262
1265
  i.captureAnimationState(), n.parentNode && n.parentNode.removeChild(n), i.animateAll();
1263
1266
  },
1264
1267
  drop: Sn
1265
1268
  };
1266
- Se(Kt, {
1269
+ _e(zt, {
1267
1270
  pluginName: "removeOnSpill"
1268
1271
  });
1269
- S.mount(new vo());
1270
- S.mount(Kt, Rt);
1271
- const bo = ["sm", "md", "lg"], en = { none: "gap-none", sm: "gap-sm", md: "gap-md", lg: "gap-lg" }, [yo, wo] = Rn("CheckboxGroup"), Eo = ["data-parents", "data-key", "data-draggable"], So = /* @__PURE__ */ tn({
1272
+ S.mount(new mo());
1273
+ S.mount(zt, Rt);
1274
+ const vo = ["sm", "md", "lg"], en = { none: "gap-none", sm: "gap-sm", md: "gap-md", lg: "gap-lg" }, [yo, bo] = Mn("CheckboxGroup"), wo = ["data-parents", "data-key", "data-draggable"], Eo = /* @__PURE__ */ tn({
1272
1275
  ...ln("TreeNode"),
1273
1276
  __name: "TreeNode",
1274
1277
  props: {
@@ -1279,11 +1282,11 @@ const bo = ["sm", "md", "lg"], en = { none: "gap-none", sm: "gap-sm", md: "gap-m
1279
1282
  setup(o) {
1280
1283
  const e = o, n = nn(), t = yo(), i = an(t.prefixes.node, {
1281
1284
  variants: {
1282
- disabled: we("disabled", t.prefixes.node),
1283
- active: we("active", t.prefixes.node),
1284
- hasChildren: we("has-children", t.prefixes.node)
1285
+ disabled: Ee("disabled", t.prefixes.node),
1286
+ active: Ee("active", t.prefixes.node),
1287
+ hasChildren: Ee("has-children", t.prefixes.node)
1285
1288
  }
1286
- }), r = A(() => {
1289
+ }), r = M(() => {
1287
1290
  switch (t.size.value) {
1288
1291
  case "sm":
1289
1292
  return "2xsm";
@@ -1291,61 +1294,65 @@ const bo = ["sm", "md", "lg"], en = { none: "gap-none", sm: "gap-sm", md: "gap-m
1291
1294
  case "lg":
1292
1295
  return "xsm";
1293
1296
  }
1294
- }), a = A(() => {
1297
+ }), a = M(() => {
1295
1298
  switch (t.size.value) {
1296
1299
  case "sm":
1297
1300
  return "2xsm";
1298
1301
  default:
1299
1302
  return "xsm";
1300
1303
  }
1301
- }), l = (y) => t.getNodeField(y, "children"), s = (y) => t.getNodeField(y, "key"), u = A(() => l(j(e.item))), p = A(() => t.getNodeField(e.item, "leaf")), f = A(() => {
1302
- var y;
1303
- return (y = t.props) != null && y.draggable ? t.getNodeField(e.item, "draggable") ?? !0 : !1;
1304
- }), b = A(() => s(e.item)), v = A(
1304
+ }), l = (b) => t.getNodeField(b, "children"), s = (b) => t.getNodeField(b, "key"), u = M(() => l(G(e.item))), g = M(() => t.getNodeField(e.item, "leaf")), f = M(() => {
1305
+ var b;
1306
+ return (b = t.props) != null && b.draggable ? t.getNodeField(e.item, "draggable") ?? !0 : !1;
1307
+ }), w = M(() => s(e.item)), y = M(
1305
1308
  () => !!(t.disabled.value || t.getNodeField(e.item, "disabled"))
1306
- ), C = A(
1309
+ ), D = M(
1307
1310
  () => {
1308
- var y;
1309
- return !!((y = u.value) != null && y.some((O) => t.expandedKeys.value.includes(s(O))));
1311
+ var b;
1312
+ return !!((b = u.value) != null && b.some((O) => t.expandedKeys.value.includes(s(O))));
1310
1313
  }
1311
- ), T = A(
1314
+ ), T = M(
1312
1315
  () => {
1313
- var y, O;
1314
- return !((y = t.dragging.value) != null && y.key && ((O = t.dragging.value) == null ? void 0 : O.key) === b.value) && t.expandedKeys.value.includes(b.value);
1316
+ var b, O;
1317
+ return !((b = t.dragging.value) != null && b.key && ((O = t.dragging.value) == null ? void 0 : O.key) === w.value) && t.expandedKeys.value.includes(w.value);
1315
1318
  }
1316
- ), $ = A(() => {
1317
- var y, O;
1318
- return !!(!t.dragging.value.value && ((y = t.props) != null && y.showLine) && T.value && ((O = u.value) != null && O.length));
1319
- }), H = () => {
1320
- v.value || t.onSelect(e.item);
1321
- }, k = A(() => !!t.model.value.includes(b.value)), K = A(() => {
1322
- const y = (g = e.item) => {
1323
- const h = l(g);
1324
- return (h == null ? void 0 : h.length) && h.every((_) => t.checked.value.includes(s(_)));
1325
- }, O = (g = e.item) => {
1326
- const h = l(g);
1327
- return h != null && h.length ? !!(h != null && h.some(
1328
- (_) => t.checked.value.includes(s(_)) || O(_)
1319
+ ), $ = M(() => {
1320
+ var b, O;
1321
+ return !!(!t.dragging.value.value && ((b = t.props) != null && b.showLine) && T.value && ((O = u.value) != null && O.length));
1322
+ }), j = () => {
1323
+ y.value || (t.props.syncCheckboxAndSelect ? q() : t.onSelect(e.item));
1324
+ }, N = M(() => !!t.model.value.includes(w.value)), z = M(() => {
1325
+ const b = (Z = e.item) => {
1326
+ const p = l(Z);
1327
+ return (p == null ? void 0 : p.length) && p.every((c) => t.checked.value.includes(s(c)));
1328
+ }, O = (Z = e.item) => {
1329
+ const p = l(Z);
1330
+ return p != null && p.length ? !!(p != null && p.some(
1331
+ (c) => t.checked.value.includes(s(c)) || O(c)
1329
1332
  )) : !1;
1330
- }, ue = t.checked.value.includes(b.value);
1331
- return y() ? (ue || t.onCheck(e.item), !0) : O() ? (ue && t.onCheck(e.item), "indeterminate") : !!ue;
1332
- }), M = () => {
1333
- var ue;
1334
- if (!((ue = u.value) != null && ue.length)) return t.onCheck(e.item);
1335
- const y = (le = e.item) => {
1336
- const g = l(le);
1337
- return g != null && g.length ? g.reduce((h, _) => {
1338
- const c = l(_), w = s(_);
1339
- return c != null && c.length ? [...h, w, ...y(_)] : [...h, w];
1333
+ }, ae = t.checked.value.includes(w.value);
1334
+ return b() ? (ae || t.onCheck(e.item), !0) : O() ? (ae && t.onCheck(e.item), "indeterminate") : !!ae;
1335
+ }), A = (b) => {
1336
+ t.props.syncCheckboxAndSelect || b == null || b.stopPropagation();
1337
+ }, q = (b) => {
1338
+ var Z;
1339
+ if (b !== void 0 && t.props.syncCheckboxAndSelect) return;
1340
+ if (!((Z = u.value) != null && Z.length))
1341
+ return t.props.syncCheckboxAndSelect && t.onSelect(e.item), t.onCheck(e.item);
1342
+ const O = (p = e.item) => {
1343
+ const c = l(p);
1344
+ return c != null && c.length ? c.reduce((C, h) => {
1345
+ const m = l(h), k = s(h);
1346
+ return m != null && m.length ? [...C, k, ...O(h)] : [...C, k];
1340
1347
  }, []) : [];
1341
- }, O = y();
1342
- return t.onCheck(e.item, {
1343
- keys: [b.value, ...O],
1344
- value: !t.checked.value.includes(b.value)
1345
- });
1346
- }, U = A(() => [...e.parentKeys ?? [], b.value]), R = (y) => {
1347
- t.onExpandKey(e.item, y);
1348
- }, ie = A(() => t.dragging.value.key === b.value ? t.dragging.value.level ?? e.level : e.level), re = A(() => ie.value + 1), N = A(() => {
1348
+ }, ae = O(), be = {
1349
+ keys: [w.value, ...ae],
1350
+ value: !t.checked.value.includes(w.value)
1351
+ };
1352
+ return t.props.syncCheckboxAndSelect && t.onSelect(e.item, be), t.onCheck(e.item, be);
1353
+ }, L = M(() => [...e.parentKeys ?? [], w.value]), se = (b) => {
1354
+ t.onExpandKey(e.item, b);
1355
+ }, ie = M(() => t.dragging.value.key === w.value ? t.dragging.value.level ?? e.level : e.level), P = M(() => ie.value + 1), ve = M(() => {
1349
1356
  switch (t.size.value) {
1350
1357
  case "sm":
1351
1358
  return "2xsm";
@@ -1354,139 +1361,121 @@ const bo = ["sm", "md", "lg"], en = { none: "gap-none", sm: "gap-sm", md: "gap-m
1354
1361
  case "lg":
1355
1362
  return "sm";
1356
1363
  }
1357
- }), { rootBindings: ye, inputBindings: ae } = Ln({
1358
- getDisabled: () => v.value
1359
- }), he = A(
1364
+ }), { rootBindings: re, inputBindings: ye } = Kn({
1365
+ getDisabled: () => y.value
1366
+ }), V = M(
1360
1367
  () => {
1361
- var y, O;
1362
- return !!((y = u.value) != null && y.length || (O = t.props) != null && O.lazyLoad && !p.value);
1368
+ var b, O;
1369
+ return !!((b = u.value) != null && b.length || (O = t.props) != null && O.lazyLoad && !g.value);
1363
1370
  }
1364
- ), V = _n("indent"), { width: L, height: pe } = Gn(V), Z = () => {
1365
- t.dir.value === "ltr" ? R(!1) : R(!0);
1366
- }, De = () => {
1367
- t.dir.value === "rtl" ? R(!1) : R(!0);
1368
- };
1369
- return (y, O) => {
1370
- var le, g, h, _, c, w, Y, ke;
1371
- const ue = Dn("TreeNode", !0);
1372
- return me(), Xe("div", st({
1373
- "data-parents": (le = m(t).props) != null && le.draggable ? y.parentKeys : void 0,
1374
- "data-key": (g = m(t).props) != null && g.draggable ? b.value : void 0,
1375
- "data-draggable": (h = m(t).props) != null && h.draggable ? !v.value && f.value : void 0,
1371
+ ), Y = Dn("indent"), { width: he, height: J } = Yn(Y);
1372
+ return (b, O) => {
1373
+ var be, Z, p, c, C, h, m, k, we, W, Ie, ue;
1374
+ const ae = Cn("TreeNode", !0);
1375
+ return pe(), Xe("div", st({
1376
+ "data-parents": (be = v(t).props) != null && be.draggable ? b.parentKeys : void 0,
1377
+ "data-key": (Z = v(t).props) != null && Z.draggable ? w.value : void 0,
1378
+ "data-draggable": (p = v(t).props) != null && p.draggable ? !y.value && f.value : void 0,
1376
1379
  class: [
1377
- (_ = u.value) != null && _.length ? m(t).prefixes.group : "",
1378
- m(fe)(m(t).prefixes.node, "root"),
1379
- m(t).getNodeField(y.item, "class"),
1380
+ (c = u.value) != null && c.length ? v(t).prefixes.group : "",
1381
+ v(fe)(v(t).prefixes.node, "root"),
1382
+ v(t).getNodeField(b.item, "class"),
1380
1383
  {
1381
- [m(Ot)(m(t).prefixes.group, "child-expanded")]: C.value,
1382
- [m(Ot)(m(t).prefixes.group, "draggable")]: (c = m(t).props) == null ? void 0 : c.draggable
1384
+ [v(kt)(v(t).prefixes.group, "child-expanded")]: D.value,
1385
+ [v(kt)(v(t).prefixes.group, "draggable")]: (C = v(t).props) == null ? void 0 : C.draggable
1383
1386
  }
1384
1387
  ]
1385
- }, m(ye), {
1388
+ }, v(re), {
1386
1389
  style: {
1387
- "--ptc-tree-node-indent-height": `${m(pe)}px`,
1388
- "--ptc-tree-node-indent-width": `${m(L)}px`
1390
+ "--ptc-tree-node-indent-height": `${v(J)}px`,
1391
+ "--ptc-tree-node-indent-width": `${v(he)}px`
1389
1392
  }
1390
1393
  }), [
1391
- $.value ? (me(), Xe("div", {
1394
+ $.value ? (pe(), Xe("div", {
1392
1395
  key: 0,
1393
- class: Ae(m(fe)(m(t).prefixes.group, "line"))
1396
+ class: Ae(v(fe)(v(t).prefixes.group, "line"))
1394
1397
  }, null, 2)) : Ye("", !0),
1395
- ut(m(Kn), st({
1396
- as: "div",
1397
- tabStopId: b.value,
1398
- onKeyup: [
1399
- Xt(Z, ["left"]),
1400
- Xt(De, ["right"])
1401
- ],
1402
- focusable: !v.value,
1398
+ Yt("div", st({
1403
1399
  class: [
1404
- m(i)({
1405
- disabled: v.value,
1406
- active: k.value,
1407
- hasChildren: he.value
1400
+ v(i)({
1401
+ disabled: y.value,
1402
+ active: N.value,
1403
+ hasChildren: V.value
1408
1404
  })
1409
1405
  ]
1410
- }, m(ae), { onClick: H }), {
1411
- default: Te(() => {
1412
- var Q, ge, te, zt;
1413
- return [
1414
- (Q = m(t).props) != null && Q.draggable ? (me(), Xe("span", {
1415
- key: 0,
1416
- class: Ae(m(t).prefixes.draggable)
1417
- }, [
1418
- m(t).dragging.value.key !== b.value && !m(t).dragging.value.value ? (me(), Ue(Pn, {
1419
- key: 0,
1420
- icon: "tabler:grip-vertical",
1421
- size: a.value,
1422
- class: Ae(m(t).prefixes.draggableIcon)
1423
- }, {
1424
- default: Te(() => [
1425
- $e(y.$slots, "dragTrigger", Ge(He({ ...y.item, selected: k.value, checked: K.value, disabled: v.value, unFocusable: !0 })))
1426
- ]),
1427
- _: 3
1428
- }, 8, ["size", "class"])) : Ye("", !0)
1429
- ], 2)) : Ye("", !0),
1430
- ut(Xn, {
1431
- ref_key: "indent",
1432
- ref: V,
1433
- level: ie.value,
1434
- children: he.value,
1435
- size: N.value,
1436
- expanded: T.value,
1437
- showLine: !1,
1438
- class: Ae(m(fe)(m(t).prefixes.node, "indent")),
1439
- loading: m(t).getNodeField(y.item, "loading"),
1440
- "branch-icon": m(t).getNodeField(y.item, "switcherIcon") ?? ((ge = m(t).props) == null ? void 0 : ge.switcherIcon),
1441
- "no-rotate-branch": m(t).getNodeField(y.item, "noRotateSwitcherIcon") ?? ((te = m(t).props) == null ? void 0 : te.noRotateSwitcherIcon),
1442
- onToggleExpand: O[0] || (O[0] = Yt((_o) => R(), ["stop"]))
1443
- }, {
1444
- default: Te(() => [
1445
- $e(y.$slots, "switcherIcon", Ge(He({ ...y.item, selected: k.value, checked: K.value, expanded: T.value, disabled: v.value, unFocusable: !0 })))
1446
- ]),
1447
- _: 3
1448
- }, 8, ["level", "children", "size", "expanded", "class", "loading", "branch-icon", "no-rotate-branch"]),
1449
- m(t).dragging.value.key !== b.value || !m(t).dragging.value.value ? (me(), Xe(Tn, { key: 1 }, [
1450
- (zt = m(t).props) != null && zt.checkbox ? (me(), Ue(Yn, {
1451
- key: 0,
1452
- size: r.value,
1453
- onClick: O[1] || (O[1] = Yt(() => {
1454
- }, ["stop"])),
1455
- modelValue: K.value,
1456
- "onUpdate:modelValue": M,
1457
- disabled: v.value
1458
- }, null, 8, ["size", "modelValue", "disabled"])) : Ye("", !0),
1459
- $e(y.$slots, "title", Ge(He({ ...y.item, selected: k.value, checked: K.value, disabled: v.value, unFocusable: !0 })), () => [
1460
- xn("div", {
1461
- class: Ae(m(fe)(m(t).prefixes.node, "title"))
1462
- }, In(m(t).getNodeField(y.item, "title")), 3)
1463
- ])
1464
- ], 64)) : (me(), Xe("div", {
1465
- key: 2,
1466
- class: Ae(m(fe)(m(t).prefixes.node, "slot"))
1467
- }, null, 2))
1468
- ];
1469
- }),
1470
- _: 3
1471
- }, 16, ["tabStopId", "focusable", "class"]),
1472
- m(t).dragging.value.value || m(t).dragging.value.key || (w = u.value) != null && w.length && (T.value || m(t).props.forceMount) ? Cn((me(), Ue(m(sn), st({
1406
+ }, v(ye), { onClick: j }), [
1407
+ (h = v(t).props) != null && h.draggable ? (pe(), Xe("span", {
1408
+ key: 0,
1409
+ class: Ae(v(t).prefixes.draggable)
1410
+ }, [
1411
+ v(t).dragging.value.key !== w.value && !v(t).dragging.value.value ? (pe(), Ue(Rn, {
1412
+ key: 0,
1413
+ icon: "tabler:grip-vertical",
1414
+ size: a.value,
1415
+ class: Ae(v(t).prefixes.draggableIcon)
1416
+ }, {
1417
+ default: Be(() => [
1418
+ $e(b.$slots, "dragTrigger", Ge(He({ ...b.item, selected: N.value, checked: z.value, disabled: y.value, unFocusable: !0 })))
1419
+ ]),
1420
+ _: 3
1421
+ }, 8, ["size", "class"])) : Ye("", !0)
1422
+ ], 2)) : Ye("", !0),
1423
+ Lt(Bn, {
1424
+ ref_key: "indent",
1425
+ ref: Y,
1426
+ level: ie.value,
1427
+ children: V.value,
1428
+ size: ve.value,
1429
+ expanded: T.value,
1430
+ showLine: !1,
1431
+ class: Ae(v(fe)(v(t).prefixes.node, "indent")),
1432
+ loading: v(t).getNodeField(b.item, "loading"),
1433
+ "branch-icon": v(t).getNodeField(b.item, "switcherIcon") ?? ((m = v(t).props) == null ? void 0 : m.switcherIcon),
1434
+ "no-rotate-branch": v(t).getNodeField(b.item, "noRotateSwitcherIcon") ?? ((k = v(t).props) == null ? void 0 : k.noRotateSwitcherIcon),
1435
+ onToggleExpand: O[0] || (O[0] = xn((Kt) => se(), ["stop"]))
1436
+ }, {
1437
+ default: Be(() => [
1438
+ $e(b.$slots, "switcherIcon", Ge(He({ ...b.item, selected: N.value, checked: z.value, expanded: T.value, disabled: y.value, unFocusable: !0 })))
1439
+ ]),
1440
+ _: 3
1441
+ }, 8, ["level", "children", "size", "expanded", "class", "loading", "branch-icon", "no-rotate-branch"]),
1442
+ v(t).dragging.value.key !== w.value || !v(t).dragging.value.value ? (pe(), Xe(In, { key: 1 }, [
1443
+ (we = v(t).props) != null && we.checkbox ? (pe(), Ue(zn, {
1444
+ key: 0,
1445
+ size: r.value,
1446
+ onClick: A,
1447
+ modelValue: z.value,
1448
+ "onUpdate:modelValue": q,
1449
+ disabled: y.value
1450
+ }, null, 8, ["size", "modelValue", "disabled"])) : Ye("", !0),
1451
+ $e(b.$slots, "title", Ge(He({ ...b.item, selected: N.value, checked: z.value, disabled: y.value, unFocusable: !0 })), () => [
1452
+ Yt("div", {
1453
+ class: Ae(v(fe)(v(t).prefixes.node, "title"))
1454
+ }, On(v(t).getNodeField(b.item, "title")), 3)
1455
+ ])
1456
+ ], 64)) : (pe(), Xe("div", {
1457
+ key: 2,
1458
+ class: Ae(v(fe)(v(t).prefixes.node, "slot"))
1459
+ }, null, 2))
1460
+ ], 16),
1461
+ v(t).dragging.value.value || v(t).dragging.value.key || (W = u.value) != null && W.length && (T.value || v(t).props.forceMount) ? Tn((pe(), Ue(v(sn), st({
1473
1462
  key: 1,
1474
- class: m(t).prefixes.groupList,
1475
- "data-parents": (Y = m(t).props) != null && Y.draggable ? U.value : void 0,
1476
- "data-level": (ke = m(t).props) != null && ke.draggable ? re.value : void 0,
1463
+ class: v(t).prefixes.groupList,
1464
+ "data-parents": (Ie = v(t).props) != null && Ie.draggable ? L.value : void 0,
1465
+ "data-level": (ue = v(t).props) != null && ue.draggable ? P.value : void 0,
1477
1466
  tag: "div",
1478
1467
  list: u.value
1479
- }, m(t).getSortableProps(y.item)), {
1480
- item: Te(({ element: Q }) => [
1481
- ut(ue, {
1482
- item: Q,
1483
- parentKeys: U.value,
1484
- level: re.value
1468
+ }, v(t).getSortableProps(b.item)), {
1469
+ item: Be(({ element: Kt }) => [
1470
+ Lt(ae, {
1471
+ item: Kt,
1472
+ parentKeys: L.value,
1473
+ level: P.value
1485
1474
  }, on({ _: 2 }, [
1486
- rn(Object.keys(n), (ge) => ({
1487
- name: ge,
1488
- fn: Te((te) => [
1489
- $e(y.$slots, ge, Ge(He(te)))
1475
+ rn(Object.keys(n), (Xt) => ({
1476
+ name: Xt,
1477
+ fn: Be((_n) => [
1478
+ $e(b.$slots, Xt, Ge(He(_n)))
1490
1479
  ])
1491
1480
  }))
1492
1481
  ]), 1032, ["item", "parentKeys", "level"])
@@ -1495,10 +1484,10 @@ const bo = ["sm", "md", "lg"], en = { none: "gap-none", sm: "gap-sm", md: "gap-m
1495
1484
  }, 16, ["class", "data-parents", "data-level", "list"])), [
1496
1485
  [kn, T.value]
1497
1486
  ]) : Ye("", !0)
1498
- ], 16, Eo);
1487
+ ], 16, wo);
1499
1488
  };
1500
1489
  }
1501
- }), Ro = /* @__PURE__ */ tn({
1490
+ }), zo = /* @__PURE__ */ tn({
1502
1491
  ...ln("Tree"),
1503
1492
  __name: "Tree",
1504
1493
  props: {
@@ -1513,6 +1502,7 @@ const bo = ["sm", "md", "lg"], en = { none: "gap-none", sm: "gap-sm", md: "gap-m
1513
1502
  expandedKeys: {},
1514
1503
  multiple: { type: Boolean },
1515
1504
  checkbox: { type: Boolean },
1505
+ syncCheckboxAndSelect: { type: Boolean },
1516
1506
  defaultExpandAll: { type: Boolean },
1517
1507
  selectable: { type: Boolean },
1518
1508
  showLine: { type: Boolean },
@@ -1529,128 +1519,130 @@ const bo = ["sm", "md", "lg"], en = { none: "gap-none", sm: "gap-sm", md: "gap-m
1529
1519
  },
1530
1520
  emits: ["update:modelValue", "update:value", "update:expandedKeys", "update:checkedKeys", "expand", "select", "check", "dragStart", "dragEnd", "move", "choose", "unchoose"],
1531
1521
  setup(o, { emit: e }) {
1532
- const n = o, t = e, i = nn(), r = On("tree"), a = fe(r, "node"), l = fe(a, "group"), s = fe(a, "draggable"), u = fe(s, "icon"), p = fe(l, "list"), f = {
1522
+ const n = o, t = e, i = nn(), r = Nn("tree"), a = fe(r, "node"), l = fe(a, "group"), s = fe(a, "draggable"), u = fe(s, "icon"), g = fe(l, "list"), f = {
1533
1523
  node: a,
1534
1524
  group: l,
1535
1525
  draggable: s,
1536
1526
  draggableIcon: u,
1537
- groupList: p
1538
- }, b = an(r, {
1527
+ groupList: g
1528
+ }, w = an(r, {
1539
1529
  variants: {
1540
- size: we(bo, r),
1541
- gap: we(en, r),
1542
- selectable: we("selectable", r),
1543
- disabled: we("disabled", r),
1544
- inlineNode: we("inline-node", r),
1545
- dragging: we("dragging", r)
1530
+ size: Ee(vo, r),
1531
+ gap: Ee(en, r),
1532
+ selectable: Ee("selectable", r),
1533
+ disabled: Ee("disabled", r),
1534
+ inlineNode: Ee("inline-node", r),
1535
+ dragging: Ee("dragging", r)
1546
1536
  }
1547
- }), v = (g, h) => {
1548
- var c;
1549
- const _ = Lt(g, h);
1550
- return (c = n.fieldNames) != null && c[h] ? Lt(g, n.fieldNames[h], _) : _;
1551
- }, C = Le(j(n.data)), T = A(() => j(C.value)), $ = () => {
1537
+ }), y = (p, c) => {
1538
+ var h;
1539
+ const C = $t(p, c);
1540
+ return (h = n.fieldNames) != null && h[c] ? $t(p, n.fieldNames[c], C) : C;
1541
+ }, D = Le(G(n.data)), T = M(() => G(D.value)), $ = () => {
1552
1542
  if (!n.lazyLoad) {
1553
- const g = [], h = (_) => {
1554
- for (const c of _) {
1555
- const w = v(c, "children");
1556
- w != null && w.length && (g.push(v(c, "key")), h(w));
1543
+ const p = [], c = (C) => {
1544
+ for (const h of C) {
1545
+ const m = y(h, "children");
1546
+ m != null && m.length && (p.push(y(h, "key")), c(m));
1557
1547
  }
1558
1548
  };
1559
- return h(C.value), g;
1549
+ return c(D.value), p;
1560
1550
  }
1561
1551
  return [];
1562
- }, H = Le(
1552
+ }, j = Le(
1563
1553
  n.expandedKeys ?? (n.defaultExpandAll ? $() : [])
1564
1554
  );
1565
1555
  ot(
1566
1556
  () => [n.defaultExpandAll, n.expandedKeys],
1567
- ([g, h], [_, c]) => {
1568
- h !== c ? H.value = n.expandedKeys ?? [] : g && !_ && (H.value = $());
1557
+ ([p, c], [C, h]) => {
1558
+ c !== h ? j.value = n.expandedKeys ?? [] : p && !C && (j.value = $());
1569
1559
  }
1570
1560
  );
1571
- const k = A({
1561
+ const N = M({
1572
1562
  get() {
1573
- return n.expandedKeys ? n.expandedKeys : H.value;
1563
+ return n.expandedKeys ? n.expandedKeys : j.value;
1574
1564
  },
1575
- set(g) {
1576
- n.expandedKeys || (H.value = g), t("update:expandedKeys", g);
1565
+ set(p) {
1566
+ n.expandedKeys || (j.value = p), t("update:expandedKeys", p);
1577
1567
  }
1578
1568
  });
1579
1569
  ot(
1580
1570
  () => n.data,
1581
1571
  () => {
1582
- C.value = j(n.data);
1583
- const g = $();
1584
- k.value = k.value.filter((h) => g.includes(h));
1572
+ D.value = G(n.data);
1573
+ const p = $();
1574
+ N.value = N.value.filter((c) => p.includes(c));
1585
1575
  },
1586
1576
  { deep: !0 }
1587
1577
  );
1588
- const K = Le(n.modelValue ?? n.value ?? []);
1578
+ const z = Le(n.modelValue ?? n.value ?? []);
1589
1579
  ot(
1590
1580
  () => [n.modelValue, n.value],
1591
1581
  () => {
1592
- K.value = n.modelValue ?? n.value ?? [];
1582
+ z.value = n.modelValue ?? n.value ?? [];
1593
1583
  }
1594
1584
  );
1595
- const M = A({
1585
+ const A = M({
1596
1586
  get() {
1597
- return n.modelValue ?? n.value ? n.modelValue ?? n.value : K.value;
1587
+ return n.modelValue ?? n.value ? n.modelValue ?? n.value : z.value;
1598
1588
  },
1599
- set(g) {
1600
- g && ((n.modelValue ?? n.value) || (K.value = g), t("update:modelValue", g), t("update:value", g));
1589
+ set(p) {
1590
+ p && ((n.modelValue ?? n.value) || (z.value = p), t("update:modelValue", p), t("update:value", p));
1601
1591
  }
1602
- }), { getDisabled: U, getSize: R } = $n(), ie = (g) => {
1603
- var h, _;
1604
- if (n.selectable && !U.value) {
1605
- let c = j(M.value ?? []);
1606
- const w = v(g, "key");
1607
- n.multiple ? (h = M.value) != null && h.includes(w) ? c = j((_ = M.value) == null ? void 0 : _.filter((Y) => Y !== w)) : c = j([...M.value ?? [], w]) : c.includes(w) ? c = [] : c = [w], M.value = c, t("select", g, c.includes(w));
1592
+ }), { getDisabled: q, getSize: L } = Xn(), se = (p, c) => {
1593
+ var C, h;
1594
+ if (n.selectable && !q.value) {
1595
+ let m = G(A.value);
1596
+ const k = y(p, "key");
1597
+ c != null && c.keys.length && n.multiple ? c.value ? m = wt([...c.keys, ...m]) : m = G(A.value.filter((W) => !c.keys.includes(W))) : n.multiple ? (C = A.value) != null && C.includes(k) ? m = G((h = A.value) == null ? void 0 : h.filter((W) => W !== k)) : m = G([...A.value ?? [], k]) : A.value.includes(k) ? m = [] : m = [k], A.value = m;
1598
+ const we = (c == null ? void 0 : c.value) ?? m.includes(k);
1599
+ t("select", p, we, (c == null ? void 0 : c.keys) ?? k);
1608
1600
  }
1609
- }, re = Le(n.checkedKeys ?? []);
1601
+ }, ie = Le(n.checkedKeys ?? []);
1610
1602
  ot(
1611
1603
  () => n.checkedKeys,
1612
1604
  () => {
1613
- re.value = n.checkedKeys ?? [];
1605
+ ie.value = n.checkedKeys ?? [];
1614
1606
  }
1615
1607
  );
1616
- const N = A({
1608
+ const P = M({
1617
1609
  get() {
1618
- return n.checkedKeys ? n.checkedKeys : re.value;
1610
+ return n.checkedKeys ? n.checkedKeys : ie.value;
1619
1611
  },
1620
- set(g) {
1621
- n.checkedKeys || (re.value = g), t("update:checkedKeys", g);
1612
+ set(p) {
1613
+ n.checkedKeys || (ie.value = p), t("update:checkedKeys", p);
1622
1614
  }
1623
- }), ye = (g, h) => {
1624
- if (n.checkbox && !U.value) {
1625
- let _ = j(N.value);
1626
- const c = v(g, "key");
1627
- h != null && h.keys.length ? h.value ? _ = Gt([...h.keys, ..._]) : _ = j(N.value.filter((Y) => !h.keys.includes(Y))) : N.value.includes(c) ? _ = j(N.value.filter((Y) => Y !== c)) : _ = j([...N.value, c]), N.value = _;
1628
- const w = (h == null ? void 0 : h.value) ?? N.value.includes(c);
1629
- t("check", g, w, (h == null ? void 0 : h.keys) ?? c);
1615
+ }), ve = (p, c) => {
1616
+ if (n.checkbox && !q.value) {
1617
+ let C = G(P.value);
1618
+ const h = y(p, "key");
1619
+ c != null && c.keys.length ? c.value ? C = wt([...c.keys, ...C]) : C = G(P.value.filter((k) => !c.keys.includes(k))) : P.value.includes(h) ? C = G(P.value.filter((k) => k !== h)) : C = G([...P.value, h]), P.value = C;
1620
+ const m = (c == null ? void 0 : c.value) ?? C.includes(h);
1621
+ t("check", p, m, (c == null ? void 0 : c.keys) ?? h);
1630
1622
  }
1631
- }, ae = (g, h) => {
1632
- let _ = !0;
1633
- const c = v(g, "key");
1634
- let w = j(k.value);
1635
- h || h !== !1 && !w.includes(c) ? (w = Gt([...w, c]), _ = !0) : (w = w.filter((Y) => Y !== c), _ = !1), k.value = w, t("expand", g, _);
1636
- }, he = A(() => {
1623
+ }, re = (p, c) => {
1624
+ let C = !0;
1625
+ const h = y(p, "key");
1626
+ let m = G(N.value);
1627
+ c || c !== !1 && !m.includes(h) ? (m = wt([...m, h]), C = !0) : (m = m.filter((k) => k !== h), C = !1), N.value = m, t("expand", p, C);
1628
+ }, ye = M(() => {
1637
1629
  if (n.gap) {
1638
1630
  if (typeof n.gap == "number") return `${n.gap}px`;
1639
1631
  if (!Object.keys(en).includes(n.gap)) return n.gap;
1640
1632
  }
1641
- }), V = n.groupName ?? Nn(r), L = Le({
1633
+ }), V = n.groupName ?? An(r), Y = Le({
1642
1634
  key: void 0,
1643
1635
  value: !1,
1644
1636
  level: void 0
1645
- }), pe = A(
1646
- () => Ot(fe(r, "dragging_item"), R.value)
1647
- ), Z = (g) => {
1648
- var h;
1649
- return (h = g.getAttribute("data-parents")) == null ? void 0 : h.split(",");
1650
- }, De = A(() => {
1651
- const g = [], h = (_, c) => {
1652
- _ != null && _.length && _.forEach((w, Y) => {
1653
- const ke = [
1637
+ }), he = M(
1638
+ () => kt(fe(r, "dragging_item"), L.value)
1639
+ ), J = (p) => {
1640
+ var c;
1641
+ return (c = p.getAttribute("data-parents")) == null ? void 0 : c.split(",");
1642
+ }, b = M(() => {
1643
+ const p = [], c = (C, h) => {
1644
+ C != null && C.length && C.forEach((m, k) => {
1645
+ const we = [
1654
1646
  "title",
1655
1647
  "disabled",
1656
1648
  "draggable",
@@ -1660,44 +1652,44 @@ const bo = ["sm", "md", "lg"], en = { none: "gap-none", sm: "gap-sm", md: "gap-m
1660
1652
  "switcherIcon",
1661
1653
  "noRotateSwitcherIcon"
1662
1654
  ];
1663
- let Q = v(w, "key");
1664
- if (!Q) {
1665
- const te = Hn(j(c) ?? []);
1666
- te && (Q = `${te}-${Y}`), Q = `${Y}`;
1655
+ let W = y(m, "key");
1656
+ if (!W) {
1657
+ const ue = $n(G(h) ?? []);
1658
+ ue && (W = `${ue}-${k}`), W = `${k}`;
1667
1659
  }
1668
- Q = String(Q), g.push(
1669
- Fn(
1660
+ W = String(W), p.push(
1661
+ Pn(
1670
1662
  {
1671
- ...Mn(w, "children"),
1672
- ...Object.fromEntries(ke.map((te) => [te, v(w, te)])),
1673
- parentKeys: c,
1674
- key: Q
1663
+ ...Gn(m, "children"),
1664
+ ...Object.fromEntries(we.map((ue) => [ue, y(m, ue)])),
1665
+ parentKeys: h,
1666
+ key: W
1675
1667
  },
1676
- Bn
1668
+ Fn
1677
1669
  )
1678
1670
  );
1679
- const ge = v(w, "children");
1680
- if (ge != null && ge.length) {
1681
- const te = j(c) ?? [];
1682
- te.push(Q), h(ge, te);
1671
+ const Ie = y(m, "children");
1672
+ if (Ie != null && Ie.length) {
1673
+ const ue = G(h) ?? [];
1674
+ ue.push(W), c(Ie, ue);
1683
1675
  }
1684
1676
  });
1685
1677
  };
1686
- return h(j(C.value)), g;
1687
- }), y = (g) => {
1688
- const h = Z(g), _ = g.getAttribute("data-key") ?? "";
1689
- return De.value.find(
1690
- (c) => {
1691
- var w, Y, ke;
1692
- return (!((w = c.parentKeys) != null && w.length) && !(h != null && h.length) || ((Y = c.parentKeys) == null ? void 0 : Y.length) && (h == null ? void 0 : h.length) && c.parentKeys.length === h.length && ((ke = c.parentKeys) == null ? void 0 : ke.every((Q) => h.includes(Q)))) && _ === c.key;
1678
+ return c(G(D.value)), p;
1679
+ }), O = (p) => {
1680
+ const c = J(p), C = p.getAttribute("data-key") ?? "";
1681
+ return b.value.find(
1682
+ (h) => {
1683
+ var m, k, we;
1684
+ return (!((m = h.parentKeys) != null && m.length) && !(c != null && c.length) || ((k = h.parentKeys) == null ? void 0 : k.length) && (c == null ? void 0 : c.length) && h.parentKeys.length === c.length && ((we = h.parentKeys) == null ? void 0 : we.every((W) => c.includes(W)))) && C === h.key;
1693
1685
  }
1694
1686
  );
1695
- }, O = (g) => {
1696
- var _;
1697
- const h = ((_ = n.getSortableProps) == null ? void 0 : _.call(n, g)) || {};
1687
+ }, ae = (p) => {
1688
+ var C;
1689
+ const c = ((C = n.getSortableProps) == null ? void 0 : C.call(n, p)) || {};
1698
1690
  return {
1699
- ...h,
1700
- group: $t(V) ? V(g) : V,
1691
+ ...c,
1692
+ group: Gt(V) ? V(p) : V,
1701
1693
  animation: 150,
1702
1694
  forceFallback: !0,
1703
1695
  fallbackOnBody: !0,
@@ -1705,102 +1697,93 @@ const bo = ["sm", "md", "lg"], en = { none: "gap-none", sm: "gap-sm", md: "gap-m
1705
1697
  handle: `.${f.node} .${f.draggable} .${f.draggableIcon}`,
1706
1698
  // swapThreshold: 0.65,
1707
1699
  dataIdAttr: "data-key",
1708
- dragClass: pe.value,
1709
- onChoose(c) {
1710
- const w = y(c == null ? void 0 : c.item);
1711
- w && (L.value.key = v(w, "key")), t("choose", c);
1700
+ dragClass: he.value,
1701
+ onChoose(h) {
1702
+ const m = O(h == null ? void 0 : h.item);
1703
+ m && (Y.value.key = y(m, "key")), t("choose", h);
1712
1704
  },
1713
- onStart(c) {
1705
+ onStart(h) {
1714
1706
  if (typeof document < "u") {
1715
- const w = document.querySelector(`.${pe.value}`);
1716
- w != null && w.style && (w.style.direction = le.value ?? "ltr");
1707
+ const m = document.querySelector(`.${he.value}`);
1708
+ m != null && m.style && (m.style.direction = Z.value ?? "ltr");
1717
1709
  }
1718
- L.value.value = !0, t("dragStart", c);
1710
+ Y.value.value = !0, t("dragStart", h);
1719
1711
  },
1720
- onUnchoose(c) {
1721
- L.value.key = void 0, L.value.level = void 0, t("unchoose", c);
1712
+ onUnchoose(h) {
1713
+ Y.value.key = void 0, Y.value.level = void 0, t("unchoose", h);
1722
1714
  },
1723
- onEnd(c) {
1724
- L.value.value = !1;
1725
- const w = {
1726
- ...c,
1727
- node: y(c == null ? void 0 : c.item),
1728
- oldParents: Z(c == null ? void 0 : c.item),
1729
- newParents: Z(c == null ? void 0 : c.to)
1715
+ onEnd(h) {
1716
+ Y.value.value = !1;
1717
+ const m = {
1718
+ ...h,
1719
+ node: O(h == null ? void 0 : h.item),
1720
+ oldParents: J(h == null ? void 0 : h.item),
1721
+ newParents: J(h == null ? void 0 : h.to)
1730
1722
  };
1731
- C.value = j(n.data), t("dragEnd", w);
1723
+ D.value = G(n.data), t("dragEnd", m);
1732
1724
  },
1733
- onMove(c, w) {
1734
- var Y;
1735
- if (L.value.level = Number(((Y = c == null ? void 0 : c.to) == null ? void 0 : Y.getAttribute("data-level")) ?? "1"), t("move", c, w), $t(h.onMove)) return h.onMove(c, w);
1725
+ onMove(h, m) {
1726
+ var k;
1727
+ if (Y.value.level = Number(((k = h == null ? void 0 : h.to) == null ? void 0 : k.getAttribute("data-level")) ?? "1"), t("move", h, m), Gt(c.onMove)) return c.onMove(h, m);
1736
1728
  },
1737
- itemKey: (c) => v(c, "key")
1729
+ itemKey: (h) => y(h, "key")
1738
1730
  };
1739
- }, { getDir: ue } = An(), le = ue();
1740
- return wo({
1741
- size: R,
1742
- disabled: U,
1731
+ }, { getDir: be } = Ln(), Z = be();
1732
+ return bo({
1733
+ size: L,
1734
+ disabled: q,
1743
1735
  props: n,
1744
- expandedKeys: k,
1745
- model: M,
1746
- dir: le,
1747
- checked: N,
1748
- onExpandKey: ae,
1749
- onSelect: ie,
1750
- onCheck: ye,
1751
- getNodeField: v,
1752
- getSortableProps: O,
1753
- dragging: L,
1736
+ expandedKeys: N,
1737
+ model: A,
1738
+ dir: Z,
1739
+ checked: P,
1740
+ onExpandKey: re,
1741
+ onSelect: se,
1742
+ onCheck: ve,
1743
+ getNodeField: y,
1744
+ getSortableProps: ae,
1745
+ dragging: Y,
1754
1746
  prefixes: f
1755
- }), (g, h) => (me(), Ue(m(zn), {
1756
- "as-child": "",
1757
- orientation: "vertical",
1758
- dir: m(le)
1759
- }, {
1760
- default: Te(() => [
1761
- ut(m(sn), st({
1762
- role: "tree",
1763
- class: [
1764
- m(b)({
1765
- size: m(R),
1766
- gap: n.gap ?? m(R),
1767
- selectable: n.selectable,
1768
- disabled: m(U),
1769
- inlineNode: n.inlineNode,
1770
- dragging: !!L.value.value
1771
- }),
1772
- n.class
1773
- ],
1774
- style: {
1775
- "--ptc-tree-gap": he.value
1776
- },
1777
- tag: "div",
1778
- list: T.value
1779
- }, O()), {
1780
- item: Te(({ element: _ }) => [
1781
- (me(), Ue(So, {
1782
- key: v(_, "key"),
1783
- item: _
1784
- }, on({ _: 2 }, [
1785
- rn(Object.keys(i), (c) => ({
1786
- name: c,
1787
- fn: Te((w) => [
1788
- $e(g.$slots, c, Ge(He(w)))
1789
- ])
1790
- }))
1791
- ]), 1032, ["item"]))
1792
- ]),
1793
- _: 3
1794
- }, 16, ["class", "style", "list"])
1747
+ }), (p, c) => (pe(), Ue(v(sn), st({
1748
+ role: "tree",
1749
+ class: [
1750
+ v(w)({
1751
+ size: v(L),
1752
+ gap: n.gap ?? v(L),
1753
+ selectable: n.selectable,
1754
+ disabled: v(q),
1755
+ inlineNode: n.inlineNode,
1756
+ dragging: !!Y.value.value
1757
+ }),
1758
+ n.class
1759
+ ],
1760
+ style: {
1761
+ "--ptc-tree-gap": ye.value
1762
+ },
1763
+ tag: "div",
1764
+ list: T.value
1765
+ }, ae()), {
1766
+ item: Be(({ element: C }) => [
1767
+ (pe(), Ue(Eo, {
1768
+ key: y(C, "key"),
1769
+ item: C
1770
+ }, on({ _: 2 }, [
1771
+ rn(Object.keys(i), (h) => ({
1772
+ name: h,
1773
+ fn: Be((m) => [
1774
+ $e(p.$slots, h, Ge(He(m)))
1775
+ ])
1776
+ }))
1777
+ ]), 1032, ["item"]))
1795
1778
  ]),
1796
1779
  _: 3
1797
- }, 8, ["dir"]));
1780
+ }, 16, ["class", "style", "list"]));
1798
1781
  }
1799
1782
  });
1800
1783
  export {
1801
- bo as T,
1802
- Ro as _,
1784
+ vo as T,
1785
+ zo as _,
1803
1786
  en as a,
1804
1787
  yo as i,
1805
- wo as p
1788
+ bo as p
1806
1789
  };