bkui-vue 0.0.1-beta.445 → 0.0.1-beta.447

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 (391) hide show
  1. package/dist/index.cjs.js +34 -34
  2. package/dist/index.esm.js +269 -92
  3. package/dist/index.umd.js +34 -34
  4. package/lib/bkui-vue/components.d.ts +64 -0
  5. package/lib/bkui-vue/hooks.d.ts +1 -0
  6. package/lib/bkui-vue/index.d.ts +6 -0
  7. package/lib/{preset.d.ts → bkui-vue/preset.d.ts} +8 -0
  8. package/lib/code-diff/{code-diff.d.ts → src/code-diff.d.ts} +1 -1
  9. package/lib/config-provider/index.js +1 -1
  10. package/lib/config-provider/{config-provider.d.ts → src/config-provider.d.ts} +142 -17
  11. package/lib/config-provider/{index.d.ts → src/index.d.ts} +30 -7
  12. package/lib/config-provider/src/token.d.ts +122 -0
  13. package/lib/config-provider/src/use-global-config.d.ts +5 -0
  14. package/lib/config-provider/src/use-locale.d.ts +3 -0
  15. package/lib/config-provider/src/use-prefix.d.ts +9 -0
  16. package/lib/dialog/{dialog.d.ts → src/dialog.d.ts} +5 -9
  17. package/lib/dialog/{index.d.ts → src/index.d.ts} +11 -19
  18. package/lib/dialog/{props.d.ts → src/props.d.ts} +2 -4
  19. package/lib/directives/{index.d.ts → src/index.d.ts} +1 -1
  20. package/lib/hooks.js +1 -0
  21. package/lib/icon/img-error.js +1 -0
  22. package/lib/icon/index.js +1 -1
  23. package/lib/icon/src/index.d.ts +79 -0
  24. package/lib/index.js +1 -1
  25. package/lib/input/{index.d.ts → src/index.d.ts} +4 -4
  26. package/lib/modal/index.js +1 -1
  27. package/lib/modal/{index.d.ts → src/index.d.ts} +24 -23
  28. package/lib/modal/{modal.d.ts → src/modal.d.ts} +7 -9
  29. package/lib/modal/{props.mixin.d.ts → src/props.mixin.d.ts} +2 -4
  30. package/lib/pagination/{use-limit.d.ts → src/use-limit.d.ts} +1 -1
  31. package/lib/pagination/{use-total.d.ts → src/use-total.d.ts} +1 -1
  32. package/lib/plugin-popover/index.js +1 -1
  33. package/lib/plugins/src/index.d.ts +1 -0
  34. package/lib/popover/index.js +1 -1
  35. package/lib/popover/{utils.d.ts → src/utils.d.ts} +5 -0
  36. package/lib/search-select/index.js +1 -1
  37. package/lib/search-select/{index.d.ts → src/index.d.ts} +6 -0
  38. package/lib/search-select/{input.d.ts → src/input.d.ts} +1 -0
  39. package/lib/search-select/{menu.d.ts → src/menu.d.ts} +1 -0
  40. package/lib/search-select/{search-select.d.ts → src/search-select.d.ts} +2 -0
  41. package/lib/search-select/{selected.d.ts → src/selected.d.ts} +1 -0
  42. package/lib/select/{index.d.ts → src/index.d.ts} +4 -4
  43. package/lib/select/{type.d.ts → src/type.d.ts} +1 -1
  44. package/lib/shared/index.js +1 -1
  45. package/lib/shared/{hooks → src/hooks}/use-form-item.d.ts +1 -1
  46. package/lib/shared/{hooks → src/hooks}/use-form.d.ts +1 -1
  47. package/lib/shared/{mask-manager.d.ts → src/mask-manager.d.ts} +7 -3
  48. package/lib/shared/{pop-manager.d.ts → src/pop-manager.d.ts} +3 -1
  49. package/lib/shared/{token.d.ts → src/token.d.ts} +1 -1
  50. package/lib/sideslider/{index.d.ts → src/index.d.ts} +11 -19
  51. package/lib/sideslider/{sideslider.d.ts → src/sideslider.d.ts} +5 -9
  52. package/lib/slider/{slider-button.d.ts → src/slider-button.d.ts} +1 -1
  53. package/lib/styles/src/index.d.ts +56 -0
  54. package/lib/table/index.js +1 -1
  55. package/lib/table/{components → src/components}/table-column.d.ts +85 -0
  56. package/lib/table/{const.d.ts → src/const.d.ts} +1 -1
  57. package/lib/table/{index.d.ts → src/index.d.ts} +255 -0
  58. package/lib/table/{props.d.ts → src/props.d.ts} +1 -0
  59. package/lib/table/{render.d.ts → src/render.d.ts} +1 -1
  60. package/lib/table-column/index.js +1 -1
  61. package/lib/table-column/{index.d.ts → src/index.d.ts} +255 -0
  62. package/lib/tag-input/{index.d.ts → src/index.d.ts} +4 -4
  63. package/lib/tag-input/{tag-input.d.ts → src/tag-input.d.ts} +2 -2
  64. package/lib/tag-input/{tag-props.d.ts → src/tag-props.d.ts} +1 -1
  65. package/lib/tag-input/{tag-render.d.ts → src/tag-render.d.ts} +1 -1
  66. package/package.json +1 -1
  67. package/lib/config-provider/type.d.ts +0 -125
  68. package/lib/icon/image-fill.js +0 -1
  69. package/lib/icon/index.d.ts +0 -79
  70. package/lib/index.d.ts +0 -5
  71. package/lib/plugins/index.d.ts +0 -1
  72. package/lib/styles/index.d.ts +0 -56
  73. package/lib/breadcrumb/{breadcrumb-item.d.ts → src/breadcrumb-item.d.ts} +0 -0
  74. package/lib/breadcrumb/{breadcrumb.d.ts → src/breadcrumb.d.ts} +0 -0
  75. package/lib/breadcrumb/{index.d.ts → src/index.d.ts} +0 -0
  76. package/lib/breadcrumb/{props.d.ts → src/props.d.ts} +0 -0
  77. package/lib/button/{button-group.d.ts → src/button-group.d.ts} +0 -0
  78. package/lib/button/{button.d.ts → src/button.d.ts} +0 -0
  79. package/lib/button/{index.d.ts → src/index.d.ts} +0 -0
  80. package/lib/card/{card.d.ts → src/card.d.ts} +0 -0
  81. package/lib/card/{index.d.ts → src/index.d.ts} +0 -0
  82. package/lib/cascader/{cascader-panel.d.ts → src/cascader-panel.d.ts} +0 -0
  83. package/lib/cascader/{cascader.d.ts → src/cascader.d.ts} +0 -0
  84. package/lib/cascader/{index.d.ts → src/index.d.ts} +0 -0
  85. package/lib/cascader/{interface.d.ts → src/interface.d.ts} +0 -0
  86. package/lib/cascader/{node.d.ts → src/node.d.ts} +0 -0
  87. package/lib/cascader/{store.d.ts → src/store.d.ts} +0 -0
  88. package/lib/checkbox/{checkbox-group.d.ts → src/checkbox-group.d.ts} +0 -0
  89. package/lib/checkbox/{checkbox.d.ts → src/checkbox.d.ts} +0 -0
  90. package/lib/checkbox/{common.d.ts → src/common.d.ts} +0 -0
  91. package/lib/checkbox/{index.d.ts → src/index.d.ts} +0 -0
  92. package/lib/checkbox/{type.d.ts → src/type.d.ts} +0 -0
  93. package/lib/code-diff/{index.d.ts → src/index.d.ts} +0 -0
  94. package/lib/collapse/{collapse-panel.d.ts → src/collapse-panel.d.ts} +0 -0
  95. package/lib/collapse/{collapse.d.ts → src/collapse.d.ts} +0 -0
  96. package/lib/collapse/{index.d.ts → src/index.d.ts} +0 -0
  97. package/lib/collapse/{props.d.ts → src/props.d.ts} +0 -0
  98. package/lib/collapse/{utils.d.ts → src/utils.d.ts} +0 -0
  99. package/lib/collapse-transition/{collapse-transition.d.ts → src/collapse-transition.d.ts} +0 -0
  100. package/lib/collapse-transition/{index.d.ts → src/index.d.ts} +0 -0
  101. package/lib/color-picker/{color-picker.d.ts → src/color-picker.d.ts} +0 -0
  102. package/lib/color-picker/{components → src/components}/color-input.d.ts +0 -0
  103. package/lib/color-picker/{components → src/components}/hue-slider.d.ts +0 -0
  104. package/lib/color-picker/{components → src/components}/input-container.d.ts +0 -0
  105. package/lib/color-picker/{components → src/components}/recommend-colors.d.ts +0 -0
  106. package/lib/color-picker/{components → src/components}/saturation-panel.d.ts +0 -0
  107. package/lib/color-picker/{index.d.ts → src/index.d.ts} +0 -0
  108. package/lib/color-picker/{utils.d.ts → src/utils.d.ts} +0 -0
  109. package/lib/container/{col.d.ts → src/col.d.ts} +0 -0
  110. package/lib/container/{container.d.ts → src/container.d.ts} +0 -0
  111. package/lib/container/{index.d.ts → src/index.d.ts} +0 -0
  112. package/lib/container/{row.d.ts → src/row.d.ts} +0 -0
  113. package/lib/date-picker/{base → src/base}/confirm.d.ts +0 -0
  114. package/lib/date-picker/{base → src/base}/date-table.d.ts +0 -0
  115. package/lib/date-picker/{base → src/base}/month-table.d.ts +0 -0
  116. package/lib/date-picker/{base → src/base}/picker-dropdown.d.ts +0 -0
  117. package/lib/date-picker/{base → src/base}/time-spinner.d.ts +0 -0
  118. package/lib/date-picker/{base → src/base}/year-table.d.ts +0 -0
  119. package/lib/date-picker/{date-picker.d.ts → src/date-picker.d.ts} +0 -0
  120. package/lib/date-picker/{fecha.d.ts → src/fecha.d.ts} +0 -0
  121. package/lib/date-picker/{index.d.ts → src/index.d.ts} +0 -0
  122. package/lib/date-picker/{interface.d.ts → src/interface.d.ts} +0 -0
  123. package/lib/date-picker/{panel → src/panel}/date-range.d.ts +0 -0
  124. package/lib/date-picker/{panel → src/panel}/date.d.ts +0 -0
  125. package/lib/date-picker/{panel → src/panel}/time-range.d.ts +0 -0
  126. package/lib/date-picker/{panel → src/panel}/time.d.ts +0 -0
  127. package/lib/date-picker/{props.d.ts → src/props.d.ts} +0 -0
  128. package/lib/date-picker/{time-picker.d.ts → src/time-picker.d.ts} +0 -0
  129. package/lib/date-picker/{utils.d.ts → src/utils.d.ts} +0 -0
  130. package/lib/directives/{clickoutside.d.ts → src/clickoutside.d.ts} +0 -0
  131. package/lib/directives/{ellipsis.d.ts → src/ellipsis.d.ts} +0 -0
  132. package/lib/directives/{mousewheel.d.ts → src/mousewheel.d.ts} +0 -0
  133. package/lib/directives/{tooltips.d.ts → src/tooltips.d.ts} +0 -0
  134. package/lib/divider/{divider.d.ts → src/divider.d.ts} +0 -0
  135. package/lib/divider/{index.d.ts → src/index.d.ts} +0 -0
  136. package/lib/divider/{props.d.ts → src/props.d.ts} +0 -0
  137. package/lib/dropdown/{dropdown-item.d.ts → src/dropdown-item.d.ts} +0 -0
  138. package/lib/dropdown/{dropdown-menu.d.ts → src/dropdown-menu.d.ts} +0 -0
  139. package/lib/dropdown/{dropdown.d.ts → src/dropdown.d.ts} +0 -0
  140. package/lib/dropdown/{index.d.ts → src/index.d.ts} +0 -0
  141. package/lib/exception/{exception.d.ts → src/exception.d.ts} +0 -0
  142. package/lib/exception/{index.d.ts → src/index.d.ts} +0 -0
  143. package/lib/exception/{typings → src/typings}/index.d.ts +0 -0
  144. package/lib/fixed-navbar/{fixed-navbar.d.ts → src/fixed-navbar.d.ts} +0 -0
  145. package/lib/fixed-navbar/{index.d.ts → src/index.d.ts} +0 -0
  146. package/lib/form/{compose-form-item.d.ts → src/compose-form-item.d.ts} +0 -0
  147. package/lib/form/{form-item.d.ts → src/form-item.d.ts} +0 -0
  148. package/lib/form/{form.d.ts → src/form.d.ts} +0 -0
  149. package/lib/form/{index.d.ts → src/index.d.ts} +0 -0
  150. package/lib/form/{type.d.ts → src/type.d.ts} +0 -0
  151. package/lib/form/{utils.d.ts → src/utils.d.ts} +0 -0
  152. package/lib/form/{validator.d.ts → src/validator.d.ts} +0 -0
  153. package/lib/{use-message.d.ts → hooks/use-message.d.ts} +0 -0
  154. package/lib/icon/{angle-double-down-line.d.ts → icons/angle-double-down-line.d.ts} +0 -0
  155. package/lib/icon/{angle-double-left-line.d.ts → icons/angle-double-left-line.d.ts} +0 -0
  156. package/lib/icon/{angle-double-left.d.ts → icons/angle-double-left.d.ts} +0 -0
  157. package/lib/icon/{angle-double-right-line.d.ts → icons/angle-double-right-line.d.ts} +0 -0
  158. package/lib/icon/{angle-double-right.d.ts → icons/angle-double-right.d.ts} +0 -0
  159. package/lib/icon/{angle-double-up-line.d.ts → icons/angle-double-up-line.d.ts} +0 -0
  160. package/lib/icon/{angle-down-fill.d.ts → icons/angle-down-fill.d.ts} +0 -0
  161. package/lib/icon/{angle-down-line.d.ts → icons/angle-down-line.d.ts} +0 -0
  162. package/lib/icon/{angle-down.d.ts → icons/angle-down.d.ts} +0 -0
  163. package/lib/icon/{angle-left.d.ts → icons/angle-left.d.ts} +0 -0
  164. package/lib/icon/{angle-right.d.ts → icons/angle-right.d.ts} +0 -0
  165. package/lib/icon/{angle-up-fill.d.ts → icons/angle-up-fill.d.ts} +0 -0
  166. package/lib/icon/{angle-up.d.ts → icons/angle-up.d.ts} +0 -0
  167. package/lib/icon/{archive-fill.d.ts → icons/archive-fill.d.ts} +0 -0
  168. package/lib/icon/{arrows-left.d.ts → icons/arrows-left.d.ts} +0 -0
  169. package/lib/icon/{arrows-right.d.ts → icons/arrows-right.d.ts} +0 -0
  170. package/lib/icon/{audio-fill.d.ts → icons/audio-fill.d.ts} +0 -0
  171. package/lib/icon/{bk.d.ts → icons/bk.d.ts} +0 -0
  172. package/lib/icon/{circle.d.ts → icons/circle.d.ts} +0 -0
  173. package/lib/icon/{close-line.d.ts → icons/close-line.d.ts} +0 -0
  174. package/lib/icon/{close.d.ts → icons/close.d.ts} +0 -0
  175. package/lib/icon/{code.d.ts → icons/code.d.ts} +0 -0
  176. package/lib/icon/{cog-shape.d.ts → icons/cog-shape.d.ts} +0 -0
  177. package/lib/icon/{collapse-left.d.ts → icons/collapse-left.d.ts} +0 -0
  178. package/lib/icon/{copy.d.ts → icons/copy.d.ts} +0 -0
  179. package/lib/icon/{data-shape.d.ts → icons/data-shape.d.ts} +0 -0
  180. package/lib/icon/{del.d.ts → icons/del.d.ts} +0 -0
  181. package/lib/icon/{doc-fill.d.ts → icons/doc-fill.d.ts} +0 -0
  182. package/lib/icon/{done.d.ts → icons/done.d.ts} +0 -0
  183. package/lib/icon/{down-shape.d.ts → icons/down-shape.d.ts} +0 -0
  184. package/lib/icon/{down-small.d.ts → icons/down-small.d.ts} +0 -0
  185. package/lib/icon/{edit-line.d.ts → icons/edit-line.d.ts} +0 -0
  186. package/lib/icon/{ellipsis.d.ts → icons/ellipsis.d.ts} +0 -0
  187. package/lib/icon/{enlarge-line.d.ts → icons/enlarge-line.d.ts} +0 -0
  188. package/lib/icon/{error.d.ts → icons/error.d.ts} +0 -0
  189. package/lib/icon/{excel-fill.d.ts → icons/excel-fill.d.ts} +0 -0
  190. package/lib/icon/{exclamation-circle-shape.d.ts → icons/exclamation-circle-shape.d.ts} +0 -0
  191. package/lib/icon/{eye.d.ts → icons/eye.d.ts} +0 -0
  192. package/lib/icon/{filliscreen-line.d.ts → icons/filliscreen-line.d.ts} +0 -0
  193. package/lib/icon/{folder-open.d.ts → icons/folder-open.d.ts} +0 -0
  194. package/lib/icon/{folder-shape-open.d.ts → icons/folder-shape-open.d.ts} +0 -0
  195. package/lib/icon/{folder-shape.d.ts → icons/folder-shape.d.ts} +0 -0
  196. package/lib/icon/{folder.d.ts → icons/folder.d.ts} +0 -0
  197. package/lib/icon/{funnel.d.ts → icons/funnel.d.ts} +0 -0
  198. package/lib/icon/{help-document-fill.d.ts → icons/help-document-fill.d.ts} +0 -0
  199. package/lib/icon/{help-fill.d.ts → icons/help-fill.d.ts} +0 -0
  200. package/lib/icon/{help.d.ts → icons/help.d.ts} +0 -0
  201. package/lib/icon/{icon.d.ts → icons/icon.d.ts} +0 -0
  202. package/lib/icon/{image-fill.d.ts → icons/image-fill.d.ts} +0 -0
  203. package/lib/icon/{img-error.d.ts → icons/img-error.d.ts} +0 -0
  204. package/lib/icon/{img-placehoulder.d.ts → icons/img-placehoulder.d.ts} +0 -0
  205. package/lib/icon/{info-line.d.ts → icons/info-line.d.ts} +0 -0
  206. package/lib/icon/{info.d.ts → icons/info.d.ts} +0 -0
  207. package/lib/icon/{left-shape.d.ts → icons/left-shape.d.ts} +0 -0
  208. package/lib/icon/{left-turn-line.d.ts → icons/left-turn-line.d.ts} +0 -0
  209. package/lib/icon/{narrow-line.d.ts → icons/narrow-line.d.ts} +0 -0
  210. package/lib/icon/{original.d.ts → icons/original.d.ts} +0 -0
  211. package/lib/icon/{pdf-fill.d.ts → icons/pdf-fill.d.ts} +0 -0
  212. package/lib/icon/{play-shape.d.ts → icons/play-shape.d.ts} +0 -0
  213. package/lib/icon/{plus.d.ts → icons/plus.d.ts} +0 -0
  214. package/lib/icon/{ppt-fill.d.ts → icons/ppt-fill.d.ts} +0 -0
  215. package/lib/icon/{qq.d.ts → icons/qq.d.ts} +0 -0
  216. package/lib/icon/{right-shape.d.ts → icons/right-shape.d.ts} +0 -0
  217. package/lib/icon/{right-turn-line.d.ts → icons/right-turn-line.d.ts} +0 -0
  218. package/lib/icon/{search.d.ts → icons/search.d.ts} +0 -0
  219. package/lib/icon/{share.d.ts → icons/share.d.ts} +0 -0
  220. package/lib/icon/{spinner.d.ts → icons/spinner.d.ts} +0 -0
  221. package/lib/icon/{success.d.ts → icons/success.d.ts} +0 -0
  222. package/lib/icon/{switcher-loading.d.ts → icons/switcher-loading.d.ts} +0 -0
  223. package/lib/icon/{text-file.d.ts → icons/text-file.d.ts} +0 -0
  224. package/lib/icon/{text-fill.d.ts → icons/text-fill.d.ts} +0 -0
  225. package/lib/icon/{transfer.d.ts → icons/transfer.d.ts} +0 -0
  226. package/lib/icon/{tree-application-shape.d.ts → icons/tree-application-shape.d.ts} +0 -0
  227. package/lib/icon/{unfull-screen.d.ts → icons/unfull-screen.d.ts} +0 -0
  228. package/lib/icon/{unvisible.d.ts → icons/unvisible.d.ts} +0 -0
  229. package/lib/icon/{up-shape.d.ts → icons/up-shape.d.ts} +0 -0
  230. package/lib/icon/{upload.d.ts → icons/upload.d.ts} +0 -0
  231. package/lib/icon/{video-fill.d.ts → icons/video-fill.d.ts} +0 -0
  232. package/lib/icon/{warn.d.ts → icons/warn.d.ts} +0 -0
  233. package/lib/icon/{weixin.d.ts → icons/weixin.d.ts} +0 -0
  234. package/lib/image/{image-viewer.d.ts → src/image-viewer.d.ts} +0 -0
  235. package/lib/image/{image.d.ts → src/image.d.ts} +0 -0
  236. package/lib/image/{index.d.ts → src/index.d.ts} +0 -0
  237. package/lib/image/{props.d.ts → src/props.d.ts} +0 -0
  238. package/lib/info-box/{index.d.ts → src/index.d.ts} +0 -0
  239. package/lib/info-box/{info-box.d.ts → src/info-box.d.ts} +0 -0
  240. package/lib/input/{input.d.ts → src/input.d.ts} +1 -1
  241. package/lib/link/{index.d.ts → src/index.d.ts} +0 -0
  242. package/lib/link/{link.d.ts → src/link.d.ts} +0 -0
  243. package/lib/loading/{directive.d.ts → src/directive.d.ts} +0 -0
  244. package/lib/loading/{index.d.ts → src/index.d.ts} +0 -0
  245. package/lib/loading/{loading.d.ts → src/loading.d.ts} +0 -0
  246. package/lib/locale/{index.d.ts → src/index.d.ts} +0 -0
  247. package/lib/locale/{lang → src/lang}/en.d.ts +0 -0
  248. package/lib/locale/{lang → src/lang}/zh-cn.d.ts +0 -0
  249. package/lib/menu/{index.d.ts → src/index.d.ts} +0 -0
  250. package/lib/menu/{menu-group.d.ts → src/menu-group.d.ts} +0 -0
  251. package/lib/menu/{menu-item.d.ts → src/menu-item.d.ts} +0 -0
  252. package/lib/menu/{menu.d.ts → src/menu.d.ts} +0 -0
  253. package/lib/menu/{submenu.d.ts → src/submenu.d.ts} +0 -0
  254. package/lib/menu/{utils.d.ts → src/utils.d.ts} +0 -0
  255. package/lib/message/{index.d.ts → src/index.d.ts} +0 -0
  256. package/lib/message/{messageConstructor.d.ts → src/messageConstructor.d.ts} +0 -0
  257. package/lib/navigation/{index.d.ts → src/index.d.ts} +0 -0
  258. package/lib/navigation/{navigation-title.d.ts → src/navigation-title.d.ts} +0 -0
  259. package/lib/navigation/{navigation.d.ts → src/navigation.d.ts} +0 -0
  260. package/lib/notify/{index.d.ts → src/index.d.ts} +0 -0
  261. package/lib/notify/{notifyConstructor.d.ts → src/notifyConstructor.d.ts} +0 -0
  262. package/lib/overflow-title/{components → src/components}/overflow-title.d.ts +0 -0
  263. package/lib/overflow-title/{directive → src/directive}/overflow-title.d.ts +0 -0
  264. package/lib/overflow-title/{index.d.ts → src/index.d.ts} +0 -0
  265. package/lib/overflow-title/{props.d.ts → src/props.d.ts} +0 -0
  266. package/lib/overflow-title/{utils → src/utils}/getActualWidthByCanvas.d.ts +0 -0
  267. package/lib/overflow-title/{utils → src/utils}/getActualWidthByDom.d.ts +0 -0
  268. package/lib/pagination/{index.d.ts → src/index.d.ts} +0 -0
  269. package/lib/pagination/{pagination.d.ts → src/pagination.d.ts} +0 -0
  270. package/lib/pagination/{type.d.ts → src/type.d.ts} +0 -0
  271. package/lib/pagination/{use-list.d.ts → src/use-list.d.ts} +0 -0
  272. package/lib/pagination/{use-small-list.d.ts → src/use-small-list.d.ts} +0 -0
  273. package/lib/plugin-popover/{index.d.ts → src/index.d.ts} +0 -0
  274. package/lib/pop-confirm/{index.d.ts → src/index.d.ts} +0 -0
  275. package/lib/pop-confirm/{pop-confirm.d.ts → src/pop-confirm.d.ts} +0 -0
  276. package/lib/pop-confirm/{props.d.ts → src/props.d.ts} +0 -0
  277. package/lib/popover/{arrow.d.ts → src/arrow.d.ts} +0 -0
  278. package/lib/popover/{const.d.ts → src/const.d.ts} +0 -0
  279. package/lib/popover/{content.d.ts → src/content.d.ts} +0 -0
  280. package/lib/popover/{index.d.ts → src/index.d.ts} +0 -0
  281. package/lib/popover/{plugin-popover.d.ts → src/plugin-popover.d.ts} +0 -0
  282. package/lib/popover/{popover.d.ts → src/popover.d.ts} +0 -0
  283. package/lib/popover/{props.d.ts → src/props.d.ts} +0 -0
  284. package/lib/popover/{reference.d.ts → src/reference.d.ts} +0 -0
  285. package/lib/popover/{root.d.ts → src/root.d.ts} +0 -0
  286. package/lib/popover/{use-floating.d.ts → src/use-floating.d.ts} +0 -0
  287. package/lib/popover/{use-platform.d.ts → src/use-platform.d.ts} +0 -0
  288. package/lib/popover/{use-popover-init.d.ts → src/use-popover-init.d.ts} +0 -0
  289. package/lib/popover/{use-popper-id.d.ts → src/use-popper-id.d.ts} +0 -0
  290. package/lib/popover2/{index.d.ts → src/index.d.ts} +0 -0
  291. package/lib/popover2/{popover.d.ts → src/popover.d.ts} +0 -0
  292. package/lib/process/{index.d.ts → src/index.d.ts} +0 -0
  293. package/lib/process/{process.d.ts → src/process.d.ts} +0 -0
  294. package/lib/progress/{circle.d.ts → src/circle.d.ts} +0 -0
  295. package/lib/progress/{index.d.ts → src/index.d.ts} +0 -0
  296. package/lib/progress/{line.d.ts → src/line.d.ts} +0 -0
  297. package/lib/progress/{progress.d.ts → src/progress.d.ts} +0 -0
  298. package/lib/radio/{common.d.ts → src/common.d.ts} +0 -0
  299. package/lib/radio/{index.d.ts → src/index.d.ts} +0 -0
  300. package/lib/radio/{radio-button.d.ts → src/radio-button.d.ts} +0 -0
  301. package/lib/radio/{radio-group.d.ts → src/radio-group.d.ts} +0 -0
  302. package/lib/radio/{radio.d.ts → src/radio.d.ts} +0 -0
  303. package/lib/radio/{type.d.ts → src/type.d.ts} +0 -0
  304. package/lib/rate/{index.d.ts → src/index.d.ts} +0 -0
  305. package/lib/rate/{rate.d.ts → src/rate.d.ts} +0 -0
  306. package/lib/rate/{star.d.ts → src/star.d.ts} +0 -0
  307. package/lib/resize-layout/{index.d.ts → src/index.d.ts} +0 -0
  308. package/lib/resize-layout/{resize-layout.d.ts → src/resize-layout.d.ts} +0 -0
  309. package/lib/search-select/{utils.d.ts → src/utils.d.ts} +0 -0
  310. package/lib/select/{common.d.ts → src/common.d.ts} +0 -0
  311. package/lib/select/{option.d.ts → src/option.d.ts} +0 -0
  312. package/lib/select/{optionGroup.d.ts → src/optionGroup.d.ts} +0 -0
  313. package/lib/select/{select.d.ts → src/select.d.ts} +1 -1
  314. /package/lib/select/{selectTagInput.d.ts → src/selectTagInput.d.ts} +0 -0
  315. /package/lib/shared/{dom.d.ts → src/dom.d.ts} +0 -0
  316. /package/lib/shared/{helper.d.ts → src/helper.d.ts} +0 -0
  317. /package/lib/shared/{index.d.ts → src/index.d.ts} +0 -0
  318. /package/lib/shared/{popover.d.ts → src/popover.d.ts} +0 -0
  319. /package/lib/shared/{scrollbar-width.d.ts → src/scrollbar-width.d.ts} +0 -0
  320. /package/lib/shared/{utils.d.ts → src/utils.d.ts} +0 -0
  321. /package/lib/shared/{vue-types.d.ts → src/vue-types.d.ts} +0 -0
  322. /package/lib/shared/{z-index-manager.d.ts → src/z-index-manager.d.ts} +0 -0
  323. /package/lib/slider/{index.d.ts → src/index.d.ts} +0 -0
  324. /package/lib/slider/{slider.d.ts → src/slider.d.ts} +0 -0
  325. /package/lib/steps/{index.d.ts → src/index.d.ts} +0 -0
  326. /package/lib/steps/{steps.d.ts → src/steps.d.ts} +0 -0
  327. /package/lib/swiper/{index.d.ts → src/index.d.ts} +0 -0
  328. /package/lib/swiper/{swiper.d.ts → src/swiper.d.ts} +0 -0
  329. /package/lib/switcher/{index.d.ts → src/index.d.ts} +0 -0
  330. /package/lib/switcher/{switcher.d.ts → src/switcher.d.ts} +0 -0
  331. /package/lib/tab/{index.d.ts → src/index.d.ts} +0 -0
  332. /package/lib/tab/{props.d.ts → src/props.d.ts} +0 -0
  333. /package/lib/tab/{tab-nav.d.ts → src/tab-nav.d.ts} +0 -0
  334. /package/lib/tab/{tab-panel.d.ts → src/tab-panel.d.ts} +0 -0
  335. /package/lib/tab/{tab.d.ts → src/tab.d.ts} +0 -0
  336. /package/lib/table/{cache.d.ts → src/cache.d.ts} +0 -0
  337. /package/lib/table/{components → src/components}/index.d.ts +0 -0
  338. /package/lib/table/{components → src/components}/table-cell.d.ts +0 -0
  339. /package/lib/table/{components → src/components}/table-row.d.ts +0 -0
  340. /package/lib/table/{plugins → src/plugins}/body-empty.d.ts +0 -0
  341. /package/lib/table/{plugins → src/plugins}/col-group.d.ts +0 -0
  342. /package/lib/table/{plugins → src/plugins}/common.d.ts +0 -0
  343. /package/lib/table/{plugins → src/plugins}/head-filter.d.ts +0 -0
  344. /package/lib/table/{plugins → src/plugins}/head-sort.d.ts +0 -0
  345. /package/lib/table/{plugins → src/plugins}/index.d.ts +0 -0
  346. /package/lib/table/{plugins → src/plugins}/settings.d.ts +0 -0
  347. /package/lib/table/{plugins → src/plugins}/use-active-columns.d.ts +0 -0
  348. /package/lib/table/{plugins → src/plugins}/use-column-resize.d.ts +0 -0
  349. /package/lib/table/{plugins → src/plugins}/use-fixed-column.d.ts +0 -0
  350. /package/lib/table/{plugins → src/plugins}/use-pagination.d.ts +0 -0
  351. /package/lib/table/{plugins → src/plugins}/use-scroll-loading.d.ts +0 -0
  352. /package/lib/table/{table.d.ts → src/table.d.ts} +0 -0
  353. /package/lib/table/{use-column.d.ts → src/use-column.d.ts} +0 -0
  354. /package/lib/table/{use-common.d.ts → src/use-common.d.ts} +0 -0
  355. /package/lib/table/{utils.d.ts → src/utils.d.ts} +0 -0
  356. /package/lib/tag/{index.d.ts → src/index.d.ts} +0 -0
  357. /package/lib/tag/{tag.d.ts → src/tag.d.ts} +0 -0
  358. /package/lib/tag-input/{common.d.ts → src/common.d.ts} +0 -0
  359. /package/lib/tag-input/{list-tag-render.d.ts → src/list-tag-render.d.ts} +0 -0
  360. /package/lib/time-picker/{index.d.ts → src/index.d.ts} +0 -0
  361. /package/lib/timeline/{index.d.ts → src/index.d.ts} +0 -0
  362. /package/lib/timeline/{timeline.d.ts → src/timeline.d.ts} +0 -0
  363. /package/lib/transfer/{const.d.ts → src/const.d.ts} +0 -0
  364. /package/lib/transfer/{index.d.ts → src/index.d.ts} +0 -0
  365. /package/lib/transfer/{props.d.ts → src/props.d.ts} +0 -0
  366. /package/lib/transfer/{transfer.d.ts → src/transfer.d.ts} +0 -0
  367. /package/lib/tree/{constant.d.ts → src/constant.d.ts} +0 -0
  368. /package/lib/tree/{index.d.ts → src/index.d.ts} +0 -0
  369. /package/lib/tree/{props.d.ts → src/props.d.ts} +0 -0
  370. /package/lib/tree/{tree.d.ts → src/tree.d.ts} +0 -0
  371. /package/lib/tree/{use-empty.d.ts → src/use-empty.d.ts} +0 -0
  372. /package/lib/tree/{use-node-action.d.ts → src/use-node-action.d.ts} +0 -0
  373. /package/lib/tree/{use-node-async.d.ts → src/use-node-async.d.ts} +0 -0
  374. /package/lib/tree/{use-node-attribute.d.ts → src/use-node-attribute.d.ts} +0 -0
  375. /package/lib/tree/{use-node-drag.d.ts → src/use-node-drag.d.ts} +0 -0
  376. /package/lib/tree/{use-search.d.ts → src/use-search.d.ts} +0 -0
  377. /package/lib/tree/{use-tree-init.d.ts → src/use-tree-init.d.ts} +0 -0
  378. /package/lib/tree/{util.d.ts → src/util.d.ts} +0 -0
  379. /package/lib/upload/{index.d.ts → src/index.d.ts} +0 -0
  380. /package/lib/upload/{props.d.ts → src/props.d.ts} +0 -0
  381. /package/lib/upload/{upload-list.d.ts → src/upload-list.d.ts} +0 -0
  382. /package/lib/upload/{upload-trigger.d.ts → src/upload-trigger.d.ts} +0 -0
  383. /package/lib/upload/{upload.d.ts → src/upload.d.ts} +0 -0
  384. /package/lib/upload/{upload.type.d.ts → src/upload.type.d.ts} +0 -0
  385. /package/lib/upload/{use-ajax-upload.d.ts → src/use-ajax-upload.d.ts} +0 -0
  386. /package/lib/upload/{use-file-handler.d.ts → src/use-file-handler.d.ts} +0 -0
  387. /package/lib/virtual-render/{index.d.ts → src/index.d.ts} +0 -0
  388. /package/lib/virtual-render/{props.d.ts → src/props.d.ts} +0 -0
  389. /package/lib/virtual-render/{use-tag-render.d.ts → src/use-tag-render.d.ts} +0 -0
  390. /package/lib/virtual-render/{v-virtual-render.d.ts → src/v-virtual-render.d.ts} +0 -0
  391. /package/lib/virtual-render/{virtual-render.d.ts → src/virtual-render.d.ts} +0 -0
@@ -1 +1 @@
1
- !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("vue-types"));else if("function"==typeof define&&define.amd)define(["../shared","vue","vue-types"],t);else{var n="object"==typeof exports?t(require("../shared"),require("vue"),require("vue-types")):t(e["../shared"],e.vue,e["vue-types"]);for(var o in n)("object"==typeof exports?exports:e)[o]=n[o]}}(self,((e,t,n)=>(()=>{var o={8022:(e,t,n)=>{var o=n(4481),r=n(6426),i=r;i.v1=o,i.v4=r,e.exports=i},8725:e=>{for(var t=[],n=0;n<256;++n)t[n]=(n+256).toString(16).substr(1);e.exports=function(e,n){var o=n||0,r=t;return[r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]]].join("")}},9157:e=>{var t="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(t){var n=new Uint8Array(16);e.exports=function(){return t(n),n}}else{var o=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),o[t]=e>>>((3&t)<<3)&255;return o}}},4481:(e,t,n)=>{var o,r,i=n(9157),l=n(8725),a=0,u=0;e.exports=function(e,t,n){var c=t&&n||0,s=t||[],f=(e=e||{}).node||o,d=void 0!==e.clockseq?e.clockseq:r;if(null==f||null==d){var p=i();null==f&&(f=o=[1|p[0],p[1],p[2],p[3],p[4],p[5]]),null==d&&(d=r=16383&(p[6]<<8|p[7]))}var v=void 0!==e.msecs?e.msecs:(new Date).getTime(),m=void 0!==e.nsecs?e.nsecs:u+1,h=v-a+(m-u)/1e4;if(h<0&&void 0===e.clockseq&&(d=d+1&16383),(h<0||v>a)&&void 0===e.nsecs&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");a=v,u=m,r=d;var y=(1e4*(268435455&(v+=122192928e5))+m)%4294967296;s[c++]=y>>>24&255,s[c++]=y>>>16&255,s[c++]=y>>>8&255,s[c++]=255&y;var g=v/4294967296*1e4&268435455;s[c++]=g>>>8&255,s[c++]=255&g,s[c++]=g>>>24&15|16,s[c++]=g>>>16&255,s[c++]=d>>>8|128,s[c++]=255&d;for(var w=0;w<6;++w)s[c+w]=f[w];return t||l(s)}},6426:(e,t,n)=>{var o=n(9157),r=n(8725);e.exports=function(e,t,n){var i=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var l=(e=e||{}).random||(e.rng||o)();if(l[6]=15&l[6]|64,l[8]=63&l[8]|128,t)for(var a=0;a<16;++a)t[i+a]=l[a];return t||r(l)}},4212:t=>{"use strict";t.exports=e},748:e=>{"use strict";e.exports=t},210:e=>{"use strict";e.exports=n}},r={};function i(e){var t=r[e];if(void 0!==t)return t.exports;var n=r[e]={exports:{}};return o[e](n,n.exports,i),n.exports}i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var l={};return(()=>{"use strict";i.r(l),i.d(l,{$bkPopover:()=>We,PopoverProps:()=>I,default:()=>qe});var e=i(4212),t=i(748);function n(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l,a=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,l=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw l}}}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}var r,a=new Map;function u(e,t){var n=[];return Array.isArray(t.arg)?n=t.arg:function(e){return"undefined"!=typeof Element&&e instanceof Element}(t.arg)&&n.push(t.arg),function(o,r){var i=t.instance.popperRef,l=o.target,a=null==r?void 0:r.target,u=!t||!t.instance,c=!l||!a,s=e.contains(l)||e.contains(a),f=e===l,d=n.length&&n.some((function(e){return null==e?void 0:e.contains(l)}))||n.length&&n.includes(a),p=i&&(i.contains(l)||i.contains(a));u||c||s||f||d||p||t.value(o,r)}}document.addEventListener("mousedown",(function(e){return r=e})),document.addEventListener("mouseup",(function(e){var t,o=n(a.values());try{for(o.s();!(t=o.n()).done;){var i,l=n(t.value);try{for(l.s();!(i=l.n()).done;)(0,i.value.documentHandler)(e,r)}catch(e){l.e(e)}finally{l.f()}}}catch(e){o.e(e)}finally{o.f()}}));var c={beforeMount:function(e,t){a.has(e)||a.set(e,[]),a.get(e).push({documentHandler:u(e,t),bindingFn:t.value})},updated:function(e,t){a.has(e)||a.set(e,[]);var n=a.get(e),o=n.findIndex((function(e){return e.bindingFn===t.oldValue})),r={documentHandler:u(e,t),bindingFn:t.value};o>=0?n.splice(o,1,r):n.push(r)},unmounted:function(e){a.delete(e)},install:function(e){e.directive("bkTooltips",c)}};const s=c,f=(0,t.defineComponent)({name:"PopArrow",render:function(){var n=(0,e.resolveClassName)("pop2-arrow");return(0,t.createVNode)("div",{class:n},null)}});function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p,v,m=function(){return!0};!function(e){e.SHOW="show",e.HIDE="hide",e.CLICK_OUTSIDE="clickoutside",e.CONTENT_MOUSEENTER="contentMouseenter",e.CONTENT_MOUSELEAVE="contentMouseleave",e.STOP_HIDE="stopHide"}(v||(v={}));var h=(d(p={},v.SHOW,m),d(p,v.HIDE,m),d(p,v.CLICK_OUTSIDE,m),d(p,v.CONTENT_MOUSEENTER,m),d(p,v.CONTENT_MOUSELEAVE,m),d(p,v.STOP_HIDE,m),p);const y=(0,t.defineComponent)({name:"PopContent",props:{width:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number]).def("auto"),height:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number]).def("auto"),maxHeight:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number]).def("auto"),extCls:e.PropTypes.string.def("")},setup:function(e){var n=function(e){return/^\d+\.?\d*$/.test("".concat(e))?"".concat(e,"px"):e};return{style:(0,t.computed)((function(){return{width:n(e.width),height:n(e.height),maxHeight:n(e.maxHeight)}}))}},render:function(){var n,o,r,i,l,a,u=[(0,e.resolveClassName)("popover"),(0,e.resolveClassName)("pop2-content"),this.extCls];return(0,t.createVNode)("div",{class:u,tabindex:"-1",style:this.style},[null!==(r=null===(o=(n=this.$slots).arrow)||void 0===o?void 0:o.call(n))&&void 0!==r?r:"",null!==(a=null===(l=(i=this.$slots).default)||void 0===l?void 0:l.call(i))&&void 0!==a?a:""])}});var g,w,b,T,x,P,R,E,O,A,C,S,H,L=i(210);(0,L.createTypes)({}),function(e){e.SMALL="small",e.LARGE="large",e.DEFAULT="default"}(g||(g={})),function(e){e.Top="top",e.Left="left",e.Right="right",e.Bottom="bottom"}(w||(w={})),function(e){e.IF="if",e.SHOW="show"}(b||(b={})),function(e){e.LEFT="left",e.CENTER="center",e.RIGHT="right"}(T||(T={})),function(e){e.PRIMARY="primary",e.WARNING="warning",e.SUCCESS="success",e.DANGER="danger"}(x||(x={})),function(e){e.AUTO="auto",e.AUTO_START="auto-start",e.AUTO_END="auto-end",e.TOP="top",e.RIGHT="right",e.BOTTOM="bottom",e.LEFT="left",e.TOP_START="top-start",e.TOP_END="top-end",e.BOTTOM_START="bottom-start",e.BOTTOM_END="bottom-end",e.RIGHT_START="right-start",e.RIGHT_END="right-end",e.LEFT_START="left-start",e.LEFT_END="left-end"}(P||(P={})),function(e){e.HOVER="hover",e.CLICK="click",e.MANUAL="manual"}(R||(R={})),function(e){e.AUTO="auto",e.SHOWN="shown"}(E||(E={})),function(e){e.SHOW="show",e.OPERATION="operation",e.CONFIRM="confirm",e.PROCESS="process"}(O||(O={})),function(e){e.HORIZONTAL="horizontal",e.VERTICAL="vertical"}(A||(A={})),function(e){e.DASHED="dashed",e.SOLID="solid"}(C||(C={})),function(e){e.SUCCESS="success",e.INFO="info",e.WARNING="warning",e.DANGER="danger"}(S||(S={})),function(e){e.SIMPLICITY="simplicity",e.NORMAL="normal"}(H||(H={}));var N={onAfterHidden:Function,onAfterShow:Function},I=Object.assign({isShow:e.PropTypes.bool.def(!1),always:e.PropTypes.bool.def(!1),disabled:e.PropTypes.bool.def(!1),width:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number]).def("auto"),height:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number]).def("auto"),maxHeight:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number]).def("auto"),content:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number,e.PropTypes.any]).def(""),allowHtml:e.PropTypes.bool.def(!1),placement:(0,e.placementType)().def(P.TOP_START),theme:e.PropTypes.string.def("dark"),trigger:(0,L.string)().def(R.HOVER),renderType:(0,L.toType)("popRenderType",{}).def(E.SHOWN),arrow:e.PropTypes.bool.def(!0),padding:e.PropTypes.number.def(5),offset:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.shape({})]).def(6),boundary:e.PropTypes.oneOfType([e.PropTypes.string.def("parent"),e.PropTypes.instanceOf(HTMLElement)]),zIndex:e.PropTypes.number.def(void 0),disableTeleport:e.PropTypes.bool.def(!1),autoPlacement:e.PropTypes.bool.def(!1),autoVisibility:e.PropTypes.bool.def(!0),disableOutsideClick:e.PropTypes.bool.def(!1),disableTransform:e.PropTypes.bool.def(!1),reference:e.PropTypes.any.def(null),modifiers:e.PropTypes.array.def([]),popoverDelay:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.arrayOf(e.PropTypes.number)]).def(100),extCls:e.PropTypes.string.def("")},N);const D=(0,t.defineComponent)({name:"PopReference",render:function(){var e,t,n;return null!==(n=null===(t=(e=this.$slots).default)||void 0===t?void 0:t.call(e))&&void 0!==n?n:""}}),M=(0,t.defineComponent)({props:{class:e.PropTypes.string.def("")},render:function(){var e,n;return(0,t.createVNode)(t.Fragment,null,[null===(n=(e=this.$slots).default)||void 0===n?void 0:n.call(e)])}});function j(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function V(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i=[],l=!0,a=!1;try{for(n=n.call(e);!(l=(o=n.next()).done)&&(i.push(o.value),!t||i.length!==t);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==n.return||n.return()}finally{if(a)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return j(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?j(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function F(e){return e.split("-")[0]}function k(e){return e.split("-")[1]}function _(e){return["top","bottom"].includes(F(e))?"x":"y"}function U(e){return"y"===e?"height":"width"}function $(e,t,n){let{reference:o,floating:r}=e;const i=o.x+o.width/2-r.width/2,l=o.y+o.height/2-r.height/2,a=_(t),u=U(a),c=o[u]/2-r[u]/2,s="x"===a;let f;switch(F(t)){case"top":f={x:i,y:o.y-r.height};break;case"bottom":f={x:i,y:o.y+o.height};break;case"right":f={x:o.x+o.width,y:l};break;case"left":f={x:o.x-r.width,y:l};break;default:f={x:o.x,y:o.y}}switch(k(t)){case"start":f[a]-=c*(n&&s?-1:1);break;case"end":f[a]+=c*(n&&s?-1:1)}return f}function B(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function W(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function q(e,t){var n;void 0===t&&(t={});const{x:o,y:r,platform:i,rects:l,elements:a,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:s="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=t,v=B(p),m=a[d?"floating"===f?"reference":"floating":f],h=W(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:s,strategy:u})),y=W(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:"floating"===f?{...l.floating,x:o,y:r}:l.reference,offsetParent:await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),strategy:u}):l[f]);return{top:h.top-y.top+v.top,bottom:y.bottom-h.bottom+v.bottom,left:h.left-y.left+v.left,right:y.right-h.right+v.right}}const z=Math.min,G=Math.max;function Y(e,t,n){return G(e,z(t,n))}const K={left:"right",right:"left",bottom:"top",top:"bottom"};function X(e){return e.replace(/left|right|bottom|top/g,(e=>K[e]))}function Z(e,t,n){void 0===n&&(n=!1);const o=k(e),r=_(e),i=U(r);let l="x"===r?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=X(l)),{main:l,cross:X(l)}}const J={start:"end",end:"start"};function Q(e){return e.replace(/start|end/g,(e=>J[e]))}const ee=["top","right","bottom","left"],te=ee.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]);function ne(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function oe(e){return ee.some((t=>e[t]>=0))}const re=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:o}=t,r=await async function(e,t){const{placement:n,platform:o,elements:r}=e,i=await(null==o.isRTL?void 0:o.isRTL(r.floating)),l=F(n),a=k(n),u="x"===_(n),c=["left","top"].includes(l)?-1:1,s=i&&u?-1:1,f="function"==typeof t?t(e):t;let{mainAxis:d,crossAxis:p,alignmentAxis:v}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return a&&"number"==typeof v&&(p="end"===a?-1*v:v),u?{x:p*s,y:d*c}:{x:d*c,y:p*s}}(t,e);return{x:n+r.x,y:o+r.y,data:r}}}};const ie=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:i=!0,crossAxis:l=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...u}=e,c={x:n,y:o},s=await q(t,u),f=_(F(r)),d=function(e){return"x"===e?"y":"x"}(f);let p=c[f],v=c[d];if(i){const e="y"===f?"bottom":"right";p=Y(p+s["y"===f?"top":"left"],p,p-s[e])}if(l){const e="y"===d?"bottom":"right";v=Y(v+s["y"===d?"top":"left"],v,v-s[e])}const m=a.fn({...t,[f]:p,[d]:v});return{...m,data:{x:m.x-n,y:m.y-o}}}}};function le(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function ae(e){if(null==e)return window;if(!le(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function ue(e){return ae(e).getComputedStyle(e)}function ce(e){return le(e)?"":e?(e.nodeName||"").toLowerCase():""}function se(){const e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((e=>e.brand+"/"+e.version)).join(" "):navigator.userAgent}function fe(e){return e instanceof ae(e).HTMLElement}function de(e){return e instanceof ae(e).Element}function pe(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ae(e).ShadowRoot||e instanceof ShadowRoot)}function ve(e){const{overflow:t,overflowX:n,overflowY:o}=ue(e);return/auto|scroll|overlay|hidden/.test(t+o+n)}function me(e){return["table","td","th"].includes(ce(e))}function he(e){const t=/firefox/i.test(se()),n=ue(e);return"none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||["transform","perspective"].includes(n.willChange)||t&&"filter"===n.willChange||t&&!!n.filter&&"none"!==n.filter}function ye(){return!/^((?!chrome|android).)*safari/i.test(se())}const ge=Math.min,we=Math.max,be=Math.round;function Te(e,t,n){var o,r,i,l;void 0===t&&(t=!1),void 0===n&&(n=!1);const a=e.getBoundingClientRect();let u=1,c=1;t&&fe(e)&&(u=e.offsetWidth>0&&be(a.width)/e.offsetWidth||1,c=e.offsetHeight>0&&be(a.height)/e.offsetHeight||1);const s=de(e)?ae(e):window,f=!ye()&&n,d=(a.left+(f&&null!=(o=null==(r=s.visualViewport)?void 0:r.offsetLeft)?o:0))/u,p=(a.top+(f&&null!=(i=null==(l=s.visualViewport)?void 0:l.offsetTop)?i:0))/c,v=a.width/u,m=a.height/c;return{width:v,height:m,top:p,right:d+v,bottom:p+m,left:d,x:d,y:p}}function xe(e){return(t=e,(t instanceof ae(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function Pe(e){return de(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Re(e){return Te(xe(e)).left+Pe(e).scrollLeft}function Ee(e,t,n){const o=fe(t),r=xe(t),i=Te(e,o&&function(e){const t=Te(e);return be(t.width)!==e.offsetWidth||be(t.height)!==e.offsetHeight}(t),"fixed"===n);let l={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if(o||!o&&"fixed"!==n)if(("body"!==ce(t)||ve(r))&&(l=Pe(t)),fe(t)){const e=Te(t,!0);a.x=e.x+t.clientLeft,a.y=e.y+t.clientTop}else r&&(a.x=Re(r));return{x:i.left+l.scrollLeft-a.x,y:i.top+l.scrollTop-a.y,width:i.width,height:i.height}}function Oe(e){return"html"===ce(e)?e:e.assignedSlot||e.parentNode||(pe(e)?e.host:null)||xe(e)}function Ae(e){return fe(e)&&"fixed"!==getComputedStyle(e).position?e.offsetParent:null}function Ce(e){const t=ae(e);let n=Ae(e);for(;n&&me(n)&&"static"===getComputedStyle(n).position;)n=Ae(n);return n&&("html"===ce(n)||"body"===ce(n)&&"static"===getComputedStyle(n).position&&!he(n))?t:n||function(e){let t=Oe(e);for(pe(t)&&(t=t.host);fe(t)&&!["html","body"].includes(ce(t));){if(he(t))return t;t=t.parentNode}return null}(e)||t}function Se(e){if(fe(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=Te(e);return{width:t.width,height:t.height}}function He(e){const t=Oe(e);return["html","body","#document"].includes(ce(t))?e.ownerDocument.body:fe(t)&&ve(t)?t:He(t)}function Le(e,t){var n;void 0===t&&(t=[]);const o=He(e),r=o===(null==(n=e.ownerDocument)?void 0:n.body),i=ae(o),l=r?[i].concat(i.visualViewport||[],ve(o)?o:[]):o,a=t.concat(l);return r?a:a.concat(Le(l))}function Ne(e,t,n){return"viewport"===t?W(function(e,t){const n=ae(e),o=xe(e),r=n.visualViewport;let i=o.clientWidth,l=o.clientHeight,a=0,u=0;if(r){i=r.width,l=r.height;const e=ye();(e||!e&&"fixed"===t)&&(a=r.offsetLeft,u=r.offsetTop)}return{width:i,height:l,x:a,y:u}}(e,n)):de(t)?function(e,t){const n=Te(e,!1,"fixed"===t),o=n.top+e.clientTop,r=n.left+e.clientLeft;return{top:o,left:r,x:r,y:o,right:r+e.clientWidth,bottom:o+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}(t,n):W(function(e){var t;const n=xe(e),o=Pe(e),r=null==(t=e.ownerDocument)?void 0:t.body,i=we(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),l=we(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0);let a=-o.scrollLeft+Re(e);const u=-o.scrollTop;return"rtl"===ue(r||n).direction&&(a+=we(n.clientWidth,r?r.clientWidth:0)-i),{width:i,height:l,x:a,y:u}}(xe(e)))}function Ie(e){const t=Le(e),n=["absolute","fixed"].includes(ue(e).position)&&fe(e)?Ce(e):e;return de(n)?t.filter((e=>de(e)&&function(e,t){const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&pe(n)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}(e,n)&&"body"!==ce(e))):[]}const De={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const i=[..."clippingAncestors"===n?Ie(t):[].concat(n),o],l=i[0],a=i.reduce(((e,n)=>{const o=Ne(t,n,r);return e.top=we(o.top,e.top),e.right=ge(o.right,e.right),e.bottom=ge(o.bottom,e.bottom),e.left=we(o.left,e.left),e}),Ne(t,l,r));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:o}=e;const r=fe(n),i=xe(n);if(n===i)return t;let l={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if((r||!r&&"fixed"!==o)&&(("body"!==ce(n)||ve(i))&&(l=Pe(n)),fe(n))){const e=Te(n,!0);a.x=e.x+n.clientLeft,a.y=e.y+n.clientTop}return{...t,x:t.x-l.scrollLeft+a.x,y:t.y-l.scrollTop+a.y}},isElement:de,getDimensions:Se,getOffsetParent:Ce,getDocumentElement:xe,getElementRects:e=>{let{reference:t,floating:n,strategy:o}=e;return{reference:Ee(t,Ce(n),o),floating:{...Se(n),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===ue(e).direction},Me=(e,t,n)=>(async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:l}=n,a=await(null==l.isRTL?void 0:l.isRTL(t));let u=await l.getElementRects({reference:e,floating:t,strategy:r}),{x:c,y:s}=$(u,o,a),f=o,d={};for(let n=0;n<i.length;n++){const{name:p,fn:v}=i[n],{x:m,y:h,data:y,reset:g}=await v({x:c,y:s,initialPlacement:o,placement:f,strategy:r,middlewareData:d,rects:u,platform:l,elements:{reference:e,floating:t}});c=null!=m?m:c,s=null!=h?h:s,d={...d,[p]:{...d[p],...y}},g&&("object"==typeof g&&(g.placement&&(f=g.placement),g.rects&&(u=!0===g.rects?await l.getElementRects({reference:e,floating:t,strategy:r}):g.rects),({x:c,y:s}=$(u,f,a))),n=-1)}return{x:c,y:s,placement:f,strategy:r,middlewareData:d}})(e,t,{platform:De,...n}),je=function(n,o,r){var i=r.refReference,l=r.refContent,a=r.refArrow,u=r.refRoot,c=(0,t.ref)(!1),s=(0,t.ref)(),f=function(){var e,t,n,o=T(null===(e=i.value)||void 0===e?void 0:e.$el);return(null===(t=document.fullscreenElement)||void 0===t?void 0:t.shadowRoot)?document.fullscreenElement.shadowRoot.contains(o):null===(n=document.fullscreenElement)||void 0===n?void 0:n.contains(o)},p=["dark","light"],m=(0,t.computed)((function(){var e,t,o=null!==(t=null===(e=n.theme)||void 0===e?void 0:e.split(/\s+/))&&void 0!==t?t:[];return o.sort((function(e,t){return Number(p.includes(t))-Number(p.includes(e))})),{systemThemes:o,customThemes:o.filter((function(e){return!p.includes(e)}))}})),h=function(){return n.autoVisibility},y=function(){return n.autoPlacement},g=function(){var e,t,o,r;return{elReference:T(null===(e=i.value)||void 0===e?void 0:e.$el),elContent:T(null===(t=l.value)||void 0===t?void 0:t.$el),elArrow:n.arrow?T(null===(o=a.value)||void 0===o?void 0:o.$el):null,root:T(null===(r=u.value)||void 0===r?void 0:r.$el)}},w=function(){var e={};return Array.isArray(n.modifiers)&&n.modifiers.forEach((function(t){var n,o,r,i,l;if("offset"===t.name){if("number"==typeof(null===(n=t.options)||void 0===n?void 0:n.offset)&&(l=null===(o=t.options)||void 0===o?void 0:o.offset),Array.isArray(null===(r=t.options)||void 0===r?void 0:r.offset)){var a=V(null===(i=t.options)||void 0===i?void 0:i.offset,2);l={mainAxis:a[0],crossAxis:a[1]}}Object.assign(e,{offset:l})}})),e},b=function(e,t){var n,o,r=w(),i=[re(r.offset||t.offset),ie({padding:t.padding})],l={placement:t.placement,middleware:i};if(t.arrow&&i.push((e=>({name:"arrow",options:e,async fn(t){const{element:n,padding:o=0}=null!=e?e:{},{x:r,y:i,placement:l,rects:a,platform:u}=t;if(null==n)return{};const c=B(o),s={x:r,y:i},f=_(l),d=k(l),p=U(f),v=await u.getDimensions(n),m="y"===f?"top":"left",h="y"===f?"bottom":"right",y=a.reference[p]+a.reference[f]-s[f]-a.floating[p],g=s[f]-a.reference[f],w=await(null==u.getOffsetParent?void 0:u.getOffsetParent(n));let b=w?"y"===f?w.clientHeight||0:w.clientWidth||0:0;0===b&&(b=a.floating[p]);const T=y/2-g/2,x=c[m],P=b-v[p]-c[h],R=b/2-v[p]/2+T,E=Y(x,R,P),O=("start"===d?c[m]:c[h])>0&&R!==E&&a.reference[p]<=a.floating[p];return{[f]:s[f]-(O?R<x?x-R:P-R:0),data:{[f]:E,centerOffset:R-E}}}}))({element:e})),y()?i.push(function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,o,r,i,l;const{x:a,y:u,rects:c,middlewareData:s,placement:f,platform:d,elements:p}=t,{alignment:v=null,allowedPlacements:m=te,autoAlignment:h=!0,...y}=e,g=function(e,t,n){return(e?[...n.filter((t=>k(t)===e)),...n.filter((t=>k(t)!==e))]:n.filter((e=>F(e)===e))).filter((n=>!e||k(n)===e||!!t&&Q(n)!==n))}(v,h,m),w=await q(t,y),b=null!=(n=null==(o=s.autoPlacement)?void 0:o.index)?n:0,T=g[b];if(null==T)return{};const{main:x,cross:P}=Z(T,c,await(null==d.isRTL?void 0:d.isRTL(p.floating)));if(f!==T)return{x:a,y:u,reset:{placement:g[0]}};const R=[w[F(T)],w[x],w[P]],E=[...null!=(r=null==(i=s.autoPlacement)?void 0:i.overflows)?r:[],{placement:T,overflows:R}],O=g[b+1];if(O)return{data:{index:b+1,overflows:E},reset:{placement:O}};const A=E.slice().sort(((e,t)=>e.overflows[0]-t.overflows[0])),C=null==(l=A.find((e=>{let{overflows:t}=e;return t.every((e=>e<=0))})))?void 0:l.placement,S=null!=C?C:A[0].placement;return S!==f?{data:{index:b+1,overflows:E},reset:{placement:S}}:{}}}}()):(i.unshift(function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(t){var n;const{placement:o,elements:r,rects:i,platform:l,strategy:a}=t,{padding:u=2,x:c,y:s}=e,f=W(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({rect:i.reference,offsetParent:await(null==l.getOffsetParent?void 0:l.getOffsetParent(r.floating)),strategy:a}):i.reference),d=null!=(n=await(null==l.getClientRects?void 0:l.getClientRects(r.reference)))?n:[],p=B(u),v=await l.getElementRects({reference:{getBoundingClientRect:function(){var e;if(2===d.length&&d[0].left>d[1].right&&null!=c&&null!=s)return null!=(e=d.find((e=>c>e.left-p.left&&c<e.right+p.right&&s>e.top-p.top&&s<e.bottom+p.bottom)))?e:f;if(d.length>=2){if("x"===_(o)){const e=d[0],t=d[d.length-1],n="top"===F(o),r=e.top,i=t.bottom,l=n?e.left:t.left,a=n?e.right:t.right;return{top:r,bottom:i,left:l,right:a,width:a-l,height:i-r,x:l,y:r}}const e="left"===F(o),t=G(...d.map((e=>e.right))),n=z(...d.map((e=>e.left))),r=d.filter((o=>e?o.left===n:o.right===t)),i=r[0].top,l=r[r.length-1].bottom;return{top:i,bottom:l,left:n,right:t,width:t-n,height:l-i,x:n,y:i}}return f}},floating:r.floating,strategy:a});return i.reference.x!==v.reference.x||i.reference.y!==v.reference.y||i.reference.width!==v.reference.width||i.reference.height!==v.reference.height?{reset:{rects:v}}:{}}}}()),i.push(function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:o,middlewareData:r,rects:i,initialPlacement:l,platform:a,elements:u}=t,{mainAxis:c=!0,crossAxis:s=!0,fallbackPlacements:f,fallbackStrategy:d="bestFit",flipAlignment:p=!0,...v}=e,m=F(o),h=f||(m!==l&&p?function(e){const t=X(e);return[Q(e),t,Q(t)]}(l):[X(l)]),y=[l,...h],g=await q(t,v),w=[];let b=(null==(n=r.flip)?void 0:n.overflows)||[];if(c&&w.push(g[m]),s){const{main:e,cross:t}=Z(o,i,await(null==a.isRTL?void 0:a.isRTL(u.floating)));w.push(g[e],g[t])}if(b=[...b,{placement:o,overflows:w}],!w.every((e=>e<=0))){var T,x;const e=(null!=(T=null==(x=r.flip)?void 0:x.index)?T:0)+1,t=y[e];if(t)return{data:{index:e,overflows:b},reset:{placement:t}};let n="bottom";switch(d){case"bestFit":{var P;const e=null==(P=b.map((e=>[e,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:P[0].placement;e&&(n=e);break}case"initialPlacement":n=l}if(o!==n)return{reset:{placement:n}}}return{}}}}())),h()&&l.middleware.push(function(e){let{strategy:t="referenceHidden",...n}={};return{name:"hide",async fn(e){const{rects:o}=e;switch(t){case"referenceHidden":{const t=ne(await q(e,{...n,elementContext:"reference"}),o.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:oe(t)}}}case"escaped":{const t=ne(await q(e,{...n,altBoundary:!0}),o.floating);return{data:{escapedOffsets:t,escaped:oe(t)}}}default:return{}}}}}()),f()||t.isVirtualEl){var a=(o=s.value,{getElementRects:function(e){var t=e.reference,n=e.floating,o=t.getBoundingClientRect(),r=n.getBoundingClientRect();return{reference:{width:o.width,height:o.height,x:o.x,y:o.y},floating:{width:r.width,height:r.height,x:r.x,y:r.y}}},getDimensions:function(e){var t=e.getBoundingClientRect();return{width:t.width,height:t.height}},getClippingRect:function(e){var t;!function(e){if(null==e)throw new TypeError("Cannot destructure undefined")}(e);var n=null!==(t=null==o?void 0:o.getBoundingClientRect())&&void 0!==t?t:{},r=n.width,i=void 0===r?0:r,l=n.height;return{width:i,height:void 0===l?0:l,x:0,y:0}}}),u=a.getElementRects,c=a.getDimensions,d=a.getClippingRect;Object.assign(l,{platform:Object.assign(Object.assign({},null!==(n=null==t?void 0:t.platform)&&void 0!==n?n:{}),{getElementRects:u,getDimensions:c,getClippingRect:d})})}return l},T=function e(t){return t instanceof HTMLElement?t:t instanceof Text?e(t.nextElementSibling):"function"==typeof(null==t?void 0:t.getBoundingClientRect)?t:null},x=m.value.customThemes.join(" "),P=m.value.customThemes.reduce((function(e,t){return Object.assign(d({},"data-".concat(t,"-theme"),!0),e)}),{}),R="".concat(x),E=null,O=function(e){var t=window.devicePixelRatio||1;return Math.round(e*t)/t||0},A=function(e,t,o,r){var i;n.disableTransform?Object.assign(e.style,{left:"".concat(O(t),"px"),top:"".concat(O(o),"px")}):Object.assign(e.style,{left:"0",top:"0",transform:"translate3d(".concat(O(t),"px,").concat(O(o),"px,0)")});var l=!!h()&&(null===(i=r.hide)||void 0===i?void 0:i.referenceHidden);Object.assign(e.style,{visibility:l?"hidden":"visible"})},C=function(e,t,o){var r;if(n.arrow){var i=null!==(r=o.arrow)&&void 0!==r?r:{},l=i.x,a=i.y;e.setAttribute("data-arrow",t),Object.assign(e.style,{left:"",top:"",bottom:"",right:""});var u={top:"bottom",right:"left",bottom:"top",left:"right"}[t];Object.assign(e.style,d({left:null!==l?"".concat(l,"px"):"",top:null!==a?"".concat(a,"px"):""},u,"-4px"))}},S=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=g(),o=n.elReference,r=n.elContent,i=n.elArrow,l=e||o;if(l&&r){var a=b(i,t);Me(l,r,a).then((function(e){var t=e.x,n=e.y,o=e.placement,l=e.middlewareData,a=r.className;r.className="".concat(a.replace(R,"")," ").concat(R).replace(/\s+/gm," ").replace(/^\s+|\s+$/g,""),Object.keys(P).forEach((function(e){r.setAttribute(e,P[e])}));var u=o.split("-")[0],c=u;["left","right","top","bottom"].includes(u)||(c="top"),A(r,t,n,l),C(i,c,l)}))}},H=void 0,L=void 0,N=!1,I=function(){return Array.isArray(n.popoverDelay)?[n.popoverDelay[0],n.popoverDelay.slice(-1)[0]]:[n.popoverDelay,n.popoverDelay]},D=function(){var e=I()[0];L=setTimeout((function(){H&&clearTimeout(H),n.disabled||(c.value=!0)}),e)},M=function(){var e=I()[1];H=setTimeout((function(){L&&clearTimeout(L),c.value=!1}),e)},j=function(){c.value?M():D()},$=function(){j()},K=function(){"hover"===n.trigger&&(H&&(N=!0,clearTimeout(H),H=void 0),ee())},J=function(){N&&(M(),N=!1,le())},ee=function(){o.emit(v.CONTENT_MOUSEENTER)},le=function(){o.emit(v.CONTENT_MOUSELEAVE)};return(0,t.watch)((function(){return n.isShow}),(function(e){c.value=e})),(0,t.watch)(c,(function(t){var r,i;t?((i=T(null===(r=l.value)||void 0===r?void 0:r.$el)).style.setProperty("display","block"),i.style.setProperty("z-index","".concat(n.zIndex?n.zIndex:e.bkZIndexManager.getPopperIndex())),S(),o.emit("afterShow",{isShow:!0})):function(){var e;T(null===(e=l.value)||void 0===e?void 0:e.$el).style.setProperty("display","none"),o.emit("afterHidden",{isShow:!1})}()})),{showPopover:D,hidePopover:M,resolveTriggerEvents:function(){var e;return null!==(e={hover:{content:[["mouseenter",K],["mouseleave",J]],reference:[["mouseenter",D],["mouseleave",M],["focus",D],["blur",M]]},click:[["click",$]],manual:{content:[["mouseenter",ee],["mouseleave",le]],reference:[[]]}}[n.trigger])&&void 0!==e?e:[]},updatePopover:S,triggerPopover:j,resolvePopElements:g,isElementFullScreen:f,resolveTargetElement:T,createPopInstance:function(){var e=g(),t=e.elReference,o=e.elContent;E=function(e,t,n,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:l=!0,animationFrame:a=!1}=o,u=r&&!a,c=i&&!a,s=u||c?[...de(e)?Le(e):[],...Le(t)]:[];s.forEach((e=>{u&&e.addEventListener("scroll",n,{passive:!0}),c&&e.addEventListener("resize",n)}));let f,d=null;l&&(d=new ResizeObserver(n),de(e)&&!a&&d.observe(e),d.observe(t));let p=a?Te(e):null;return a&&function t(){const o=Te(e);!p||o.x===p.x&&o.y===p.y&&o.width===p.width&&o.height===p.height||n(),p=o,f=requestAnimationFrame(t)}(),l||n(),()=>{var e;s.forEach((e=>{u&&e.removeEventListener("scroll",n),c&&e.removeEventListener("resize",n)})),null==(e=d)||e.disconnect(),d=null,a&&cancelAnimationFrame(f)}}(t,o,(function(){c.value&&S(null,n)}))},updateFullscreenTarget:function(e){s.value=e},getFullscreenRoot:function(e){return f()?document.fullscreenElement.shadowRoot?document.fullscreenElement.shadowRoot.querySelector(e):document.fullscreenElement.querySelector(e):document.body},stopHide:function(){H&&(N=!0,clearTimeout(H),H=void 0)},localIsShow:c,cleanup:E}};var Ve=i(8022),Fe={},ke=function(e){return document.querySelector(e)instanceof HTMLElement},_e=function(e){return e instanceof Element||e instanceof HTMLDocument},Ue=null,$e=null;const Be=(0,t.defineComponent)({name:"Popover",components:{Content:y,Arrow:f,Root:M},directives:{clickoutside:s},props:I,emits:h,setup:function(n,o){var r=n.content,i=n.theme,l=n.disableTeleport,a=(0,t.toRefs)(n).reference,u=(0,t.ref)(),c=(0,t.ref)(),s=(0,t.ref)(),f=(0,t.ref)(),d=(0,t.computed)((function(){return a.value||u.value})),p=function(e,n,o){var r=o.refReference,i=o.refContent,l=o.refArrow,a=o.refRoot,u=null,c=(0,t.ref)(!1),s=(Fe.fullscreenReferId||(Fe.fullscreenReferId="id_".concat((0,Ve.v4)())),Fe.fullscreenReferId),f=(0,t.ref)(),d=je(e,n,{refReference:r,refContent:i,refArrow:l,refRoot:a}),p=d.localIsShow,m=d.showPopover,h=d.hidePopover,y=d.updatePopover,g=d.resolveTriggerEvents,w=d.resolvePopElements,b=d.isElementFullScreen,T=d.updateFullscreenTarget,x=d.createPopInstance,P=d.getFullscreenRoot,R=d.stopHide,E=function(){h()},O=function(){x(),e.always?m():A()},A=function(){var e=w(),t=e.elReference,n=e.elContent;if(u=g(),Array.isArray(u))C(t,u);else{var o=u,r=o.content,i=o.reference;C(t,i),C(n,r)}},C=function(e,t){t.forEach((function(t){var n=V(t,2),o=n[0],r=n[1];o&&"function"==typeof r&&e.addEventListener(o,r)}))},S=function(){var e=w(),t=e.elReference,n=e.root;c.value?N.value=null==f?void 0:f.value:N.value=L(n||t)},H=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#",n=function(n){var o=null,r=function(e){null===o&&e()};return r((function(){if(/^parent$/i.test(e.boundary)){o="".concat(t).concat(Ue);var r=(n||{}).parentNode;(null==r?void 0:r.parentNode)&&(r.parentNode.setAttribute("data-pnode-id",$e),o="[data-pnode-id=".concat($e,"]"))}})),r((function(){if(!/^body$/i.test(e.boundary)&&"string"==typeof e.boundary){if(!ke(e.boundary))return console.error("props.boundary is not available selector"),void(o="body");o=e.boundary}})),r((function(){o="string"==typeof e.boundary?e.boundary:"".concat(t).concat(Ue)})),o};if(null===Ue||!ke("#".concat(Ue))){Ue="id_".concat((0,Ve.v4)());var o=document.createElement("div");o.setAttribute("id",Ue),o.setAttribute("data-popper-id",Ue),document.body.append(o)}return null===$e&&($e="id_".concat((0,Ve.v4)())),{popContainerId:Ue,prefixId:n(),getPrefixId:n}}(e,"#"),L=H.getPrefixId,N=(0,t.ref)(),I=function(){!function(){if(null==u?void 0:u.length){var e=w().elReference;e&&u.forEach((function(t){var n=V(t,2),o=n[0],r=n[1];o&&"function"==typeof r&&e.removeEventListener(o,r)})),u=null}}()},D=function(e){var t;f.value=e,T(e),c.value=b(),null===(t=null==f?void 0:f.value)||void 0===t||t.setAttribute("data-fllsrn-id",s)},M=function(t){var n,o,r;document.fullscreenElement||(r="[data-fllsrn-id=".concat(s,"]"),(null!==(o=null===(n=null==f?void 0:f.value)||void 0===n?void 0:n.querySelectorAll(r))&&void 0!==o?o:[]).forEach((function(e){null==e||e.removeAttribute("data-fllsrn-id")}))),D(t.target),S(),y(null,e)};return{onMountedFn:function(){if(!e.disabled){if(O(),b()){var t="[data-fllsrn-id=".concat(s,"]"),n=P(t);D(n)}S(),document.body.addEventListener("fullscreenchange",M)}},onUnmountedFn:function(){I(),document.body.removeEventListener("fullscreenchange",M)},handleClickOutside:function(t){n.emit(v.CLICK_OUTSIDE,{isShow:p.value,event:t}),e.disableOutsideClick||e.always||e.disabled||"manual"===e.trigger||p.value&&E()},beforeInstanceUnmount:I,updateBoundary:S,initPopInstance:O,updatePopover:y,showPopover:m,hidePopover:h,showFn:function(){m()},hideFn:E,stopHide:R,isFullscreen:c,boundary:N,localIsShow:p}}(n,o,{refReference:d,refContent:c,refArrow:s,refRoot:f}),m=p.onMountedFn,h=p.onUnmountedFn,y=p.handleClickOutside,g=p.beforeInstanceUnmount,w=p.updateBoundary,b=p.initPopInstance,T=p.showFn,x=p.hideFn,P=p.showPopover,R=p.hidePopover,E=p.updatePopover,O=p.stopHide,A=p.localIsShow,C=p.boundary;n.always||n.disabled||(0,t.watch)((function(){return n.isShow}),(function(){n.isShow?P():R()}),{immediate:!0}),(0,t.watch)((function(){return[n.disabled]}),(function(e){e[0]?g():b()})),w(),(0,t.onMounted)(m),(0,t.onBeforeUnmount)(h);var S=(0,t.computed)((function(){return!l})),H=(0,t.computed)((function(){return n.renderType===e.RenderType.AUTO||A.value}));return{boundary:C,arrow:n.arrow,refDefaultReference:u,refContent:c,refArrow:s,content:r,theme:i,transBoundary:S,handleClickOutside:y,updatePopover:E,hide:function(){x()},show:function(){T()},stopHide:O,contentIsShow:H,renderContent:function(){if(n.allowHtml){if(_e(n.content))return(0,t.h)("div",{innerHTML:n.content.innerHTML});if(/^(#|\.)/.test(n.content)){var e=document.querySelector(n.content);return _e(e)?(0,t.h)("div",{innerHTML:e.innerHTML}):r}return(0,t.h)("div",{innerHTML:n.content})}return r}}},render:function(){var e,n,o,r,i,l,a=this;return(0,t.createVNode)(M,{ref:"refRoot"},{default:function(){return[(0,t.createVNode)(D,{ref:"refDefaultReference"},{default:function(){return[null!==(o=null===(n=(e=a.$slots).default)||void 0===n?void 0:n.call(e))&&void 0!==o?o:(0,t.createVNode)("span",null,null)]}}),(0,t.createVNode)(t.Teleport,{to:a.boundary,disabled:!a.transBoundary},{default:function(){return[(0,t.withDirectives)((0,t.createVNode)(y,{ref:"refContent","data-theme":a.theme,extCls:a.extCls,width:a.width,height:a.height,maxHeight:a.maxHeight},{default:function(){return[a.contentIsShow?null!==(l=null===(i=(r=a.$slots).content)||void 0===i?void 0:i.call(r))&&void 0!==l?l:a.renderContent():""]},arrow:function(){var e,n;return a.arrow?(0,t.createVNode)(f,{ref:"refArrow"},{default:function(){return[null===(n=(e=a.$slots).arrow)||void 0===n?void 0:n.call(e)]}}):""}}),[[(0,t.resolveDirective)("clickoutside"),a.handleClickOutside]])]}})]}})}});function We(e){var n,o=null,r=null,i=null,l=Object.assign(Object.assign({boundary:"body",placement:"top",autoVisibility:!1},e),{trigger:"manual"}),a={name:"$popover",setup:function(e,n){var o=n.expose,r=(0,t.ref)(l),i=(0,t.ref)(),a=(0,t.ref)({position:"absolute",pointerEvents:"none",left:0,top:0,width:"auto",height:"auto",transform:""}),u=function(e){if(_e(e)){var t=e.getBoundingClientRect(),n=t.x,o=t.y,r=t.width,i=t.height;Object.assign(a.value,{width:"".concat(r,"px"),height:"".concat(i,"px"),transform:"translate3d(".concat(n,"px,").concat(o,"px,0)")})}else{var l=e.clientX,u=e.clientY;Object.assign(a.value,{transform:"translate3d(".concat(l,"px,").concat(u,"px,0)"),width:"10px",height:"10px"})}};u(r.value.target);var c=(0,t.computed)((function(){var e=["target"];return Object.keys(r.value).filter((function(t){return!e.includes(t)})).reduce((function(e,t){return Object.assign(Object.assign({},e),d({},t,r.value[t]))}),{})})),s=function(){var e;null===(e=l.onContentMouseenter)||void 0===e||e.call(l)},f=function(){var e;null===(e=l.onContentMouseleave)||void 0===e||e.call(l)};return o({show:function(){var e,t;null===(t=null===(e=i.value)||void 0===e?void 0:e.show)||void 0===t||t.call(e)},hide:function(){var e,t;null===(t=null===(e=i.value)||void 0===e?void 0:e.hide)||void 0===t||t.call(e)},updateTarget:function(e){var n,o;r.value.target=e,u(e),null===(o=null===(n=i.value)||void 0===n?void 0:n.updatePopover)||void 0===o||o.call(n),(0,t.nextTick)((function(){var e,t;null===(t=null===(e=i.value)||void 0===e?void 0:e.updatePopover)||void 0===t||t.call(e)}))},stopHide:function(){var e,t;null===(t=null===(e=i.value)||void 0===e?void 0:e.stopHide)||void 0===t||t.call(e)}}),function(){return(0,t.createVNode)(Be,(0,t.mergeProps)(c.value,{ref:i,onContentMouseenter:s,onContentMouseleave:f}),{default:function(){return[(0,t.createVNode)("span",{style:a.value},null)]}})}}};return null===o&&(i=document.createElement("div"),(n=l.boundary,/^body$/i.test(n)?document.body:/^parent$/i.test(n)?_e(l.target)?l.target.parentNode:l.target.target.parentNode:"string"==typeof n&&ke(n)?document.querySelector(n):document.body).append(i),o=(0,t.createApp)(a),r=o.mount(i)),{close:function(){o&&(o.unmount(),r=null,o=null,i.remove())},show:function(){null==r||r.show()},hide:function(){null==r||r.hide()},update:function(e){null==r||r.updateTarget(e)},get vm(){return r},get $el(){return r.$el}}}const qe=(0,e.withInstall)(Be)})(),l})()));
1
+ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("vue-types"));else if("function"==typeof define&&define.amd)define(["../shared","vue","vue-types"],t);else{var n="object"==typeof exports?t(require("../shared"),require("vue"),require("vue-types")):t(e["../shared"],e.vue,e["vue-types"]);for(var o in n)("object"==typeof exports?exports:e)[o]=n[o]}}(self,((e,t,n)=>(()=>{var o={8022:(e,t,n)=>{var o=n(4481),r=n(6426),i=r;i.v1=o,i.v4=r,e.exports=i},8725:e=>{for(var t=[],n=0;n<256;++n)t[n]=(n+256).toString(16).substr(1);e.exports=function(e,n){var o=n||0,r=t;return[r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]]].join("")}},9157:e=>{var t="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(t){var n=new Uint8Array(16);e.exports=function(){return t(n),n}}else{var o=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),o[t]=e>>>((3&t)<<3)&255;return o}}},4481:(e,t,n)=>{var o,r,i=n(9157),l=n(8725),a=0,u=0;e.exports=function(e,t,n){var c=t&&n||0,s=t||[],f=(e=e||{}).node||o,d=void 0!==e.clockseq?e.clockseq:r;if(null==f||null==d){var p=i();null==f&&(f=o=[1|p[0],p[1],p[2],p[3],p[4],p[5]]),null==d&&(d=r=16383&(p[6]<<8|p[7]))}var v=void 0!==e.msecs?e.msecs:(new Date).getTime(),m=void 0!==e.nsecs?e.nsecs:u+1,h=v-a+(m-u)/1e4;if(h<0&&void 0===e.clockseq&&(d=d+1&16383),(h<0||v>a)&&void 0===e.nsecs&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");a=v,u=m,r=d;var y=(1e4*(268435455&(v+=122192928e5))+m)%4294967296;s[c++]=y>>>24&255,s[c++]=y>>>16&255,s[c++]=y>>>8&255,s[c++]=255&y;var g=v/4294967296*1e4&268435455;s[c++]=g>>>8&255,s[c++]=255&g,s[c++]=g>>>24&15|16,s[c++]=g>>>16&255,s[c++]=d>>>8|128,s[c++]=255&d;for(var w=0;w<6;++w)s[c+w]=f[w];return t||l(s)}},6426:(e,t,n)=>{var o=n(9157),r=n(8725);e.exports=function(e,t,n){var i=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var l=(e=e||{}).random||(e.rng||o)();if(l[6]=15&l[6]|64,l[8]=63&l[8]|128,t)for(var a=0;a<16;++a)t[i+a]=l[a];return t||r(l)}},4212:t=>{"use strict";t.exports=e},748:e=>{"use strict";e.exports=t},210:e=>{"use strict";e.exports=n}},r={};function i(e){var t=r[e];if(void 0!==t)return t.exports;var n=r[e]={exports:{}};return o[e](n,n.exports,i),n.exports}i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var l={};return(()=>{"use strict";i.r(l),i.d(l,{$bkPopover:()=>qe,PopoverProps:()=>L,default:()=>ze});var e=i(4212),t=i(748);function n(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l,a=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,l=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw l}}}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}var r,a=new Map;function u(e,t){var n=[];return Array.isArray(t.arg)?n=t.arg:function(e){return"undefined"!=typeof Element&&e instanceof Element}(t.arg)&&n.push(t.arg),function(o,r){var i=t.instance.popperRef,l=o.target,a=null==r?void 0:r.target,u=!t||!t.instance,c=!l||!a,s=e.contains(l)||e.contains(a),f=e===l,d=n.length&&n.some((function(e){return null==e?void 0:e.contains(l)}))||n.length&&n.includes(a),p=i&&(i.contains(l)||i.contains(a));u||c||s||f||d||p||t.value(o,r)}}document.addEventListener("mousedown",(function(e){return r=e})),document.addEventListener("mouseup",(function(e){var t,o=n(a.values());try{for(o.s();!(t=o.n()).done;){var i,l=n(t.value);try{for(l.s();!(i=l.n()).done;)(0,i.value.documentHandler)(e,r)}catch(e){l.e(e)}finally{l.f()}}}catch(e){o.e(e)}finally{o.f()}}));var c={beforeMount:function(e,t){a.has(e)||a.set(e,[]),a.get(e).push({documentHandler:u(e,t),bindingFn:t.value})},updated:function(e,t){a.has(e)||a.set(e,[]);var n=a.get(e),o=n.findIndex((function(e){return e.bindingFn===t.oldValue})),r={documentHandler:u(e,t),bindingFn:t.value};o>=0?n.splice(o,1,r):n.push(r)},unmounted:function(e){a.delete(e)},install:function(e){e.directive("bkTooltips",c)}};const s=c,f=(0,t.defineComponent)({name:"PopArrow",render:function(){var n=(0,e.resolveClassName)("pop2-arrow");return(0,t.createVNode)("div",{class:n},null)}});function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p,v,m=function(){return!0};!function(e){e.SHOW="show",e.HIDE="hide",e.CLICK_OUTSIDE="clickoutside",e.CONTENT_MOUSEENTER="contentMouseenter",e.CONTENT_MOUSELEAVE="contentMouseleave",e.STOP_HIDE="stopHide"}(v||(v={}));var h=(d(p={},v.SHOW,m),d(p,v.HIDE,m),d(p,v.CLICK_OUTSIDE,m),d(p,v.CONTENT_MOUSEENTER,m),d(p,v.CONTENT_MOUSELEAVE,m),d(p,v.STOP_HIDE,m),p);const y=(0,t.defineComponent)({name:"PopContent",props:{width:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number]).def("auto"),height:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number]).def("auto"),maxHeight:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number]).def("auto"),extCls:e.PropTypes.string.def("")},setup:function(e){var n=function(e){return/^\d+\.?\d*$/.test("".concat(e))?"".concat(e,"px"):e};return{style:(0,t.computed)((function(){return{width:n(e.width),height:n(e.height),maxHeight:n(e.maxHeight)}}))}},render:function(){var n,o,r,i,l,a,u=[(0,e.resolveClassName)("popover"),(0,e.resolveClassName)("pop2-content"),this.extCls];return(0,t.createVNode)("div",{class:u,tabindex:"-1",style:this.style},[null!==(r=null===(o=(n=this.$slots).arrow)||void 0===o?void 0:o.call(n))&&void 0!==r?r:"",null!==(a=null===(l=(i=this.$slots).default)||void 0===l?void 0:l.call(i))&&void 0!==a?a:""])}});var g,w,b,T,x,P,R,E,O,A,C,S,N,H=i(210);(0,H.createTypes)({}),function(e){e.SMALL="small",e.LARGE="large",e.DEFAULT="default"}(g||(g={})),function(e){e.Top="top",e.Left="left",e.Right="right",e.Bottom="bottom"}(w||(w={})),function(e){e.IF="if",e.SHOW="show"}(b||(b={})),function(e){e.LEFT="left",e.CENTER="center",e.RIGHT="right"}(T||(T={})),function(e){e.PRIMARY="primary",e.WARNING="warning",e.SUCCESS="success",e.DANGER="danger"}(x||(x={})),function(e){e.AUTO="auto",e.AUTO_START="auto-start",e.AUTO_END="auto-end",e.TOP="top",e.RIGHT="right",e.BOTTOM="bottom",e.LEFT="left",e.TOP_START="top-start",e.TOP_END="top-end",e.BOTTOM_START="bottom-start",e.BOTTOM_END="bottom-end",e.RIGHT_START="right-start",e.RIGHT_END="right-end",e.LEFT_START="left-start",e.LEFT_END="left-end"}(P||(P={})),function(e){e.HOVER="hover",e.CLICK="click",e.MANUAL="manual"}(R||(R={})),function(e){e.AUTO="auto",e.SHOWN="shown"}(E||(E={})),function(e){e.SHOW="show",e.OPERATION="operation",e.CONFIRM="confirm",e.PROCESS="process"}(O||(O={})),function(e){e.HORIZONTAL="horizontal",e.VERTICAL="vertical"}(A||(A={})),function(e){e.DASHED="dashed",e.SOLID="solid"}(C||(C={})),function(e){e.SUCCESS="success",e.INFO="info",e.WARNING="warning",e.DANGER="danger"}(S||(S={})),function(e){e.SIMPLICITY="simplicity",e.NORMAL="normal"}(N||(N={}));var I={onAfterHidden:Function,onAfterShow:Function},L=Object.assign({isShow:e.PropTypes.bool.def(!1),always:e.PropTypes.bool.def(!1),disabled:e.PropTypes.bool.def(!1),width:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number]).def("auto"),height:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number]).def("auto"),maxHeight:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number]).def("auto"),content:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number,e.PropTypes.any]).def(""),allowHtml:e.PropTypes.bool.def(!1),placement:(0,e.placementType)().def(P.TOP_START),theme:e.PropTypes.string.def("dark"),trigger:(0,H.string)().def(R.HOVER),renderType:(0,H.toType)("popRenderType",{}).def(E.SHOWN),arrow:e.PropTypes.bool.def(!0),padding:e.PropTypes.number.def(5),offset:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.shape({})]).def(6),boundary:e.PropTypes.oneOfType([e.PropTypes.string.def("parent"),e.PropTypes.instanceOf(HTMLElement)]),zIndex:e.PropTypes.number.def(void 0),disableTeleport:e.PropTypes.bool.def(!1),autoPlacement:e.PropTypes.bool.def(!1),autoVisibility:e.PropTypes.bool.def(!0),disableOutsideClick:e.PropTypes.bool.def(!1),disableTransform:e.PropTypes.bool.def(!1),reference:e.PropTypes.any.def(null),modifiers:e.PropTypes.array.def([]),popoverDelay:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.arrayOf(e.PropTypes.number)]).def(100),extCls:e.PropTypes.string.def("")},I);const D=(0,t.defineComponent)({name:"PopReference",render:function(){var e,t,n;return null!==(n=null===(t=(e=this.$slots).default)||void 0===t?void 0:t.call(e))&&void 0!==n?n:""}}),M=(0,t.defineComponent)({props:{class:e.PropTypes.string.def("")},render:function(){var e,n;return(0,t.createVNode)(t.Fragment,null,[null===(n=(e=this.$slots).default)||void 0===n?void 0:n.call(e)])}});function j(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function V(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i=[],l=!0,a=!1;try{for(n=n.call(e);!(l=(o=n.next()).done)&&(i.push(o.value),!t||i.length!==t);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==n.return||n.return()}finally{if(a)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return j(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?j(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function F(e){return e.split("-")[0]}function k(e){return e.split("-")[1]}function _(e){return["top","bottom"].includes(F(e))?"x":"y"}function U(e){return"y"===e?"height":"width"}function $(e,t,n){let{reference:o,floating:r}=e;const i=o.x+o.width/2-r.width/2,l=o.y+o.height/2-r.height/2,a=_(t),u=U(a),c=o[u]/2-r[u]/2,s="x"===a;let f;switch(F(t)){case"top":f={x:i,y:o.y-r.height};break;case"bottom":f={x:i,y:o.y+o.height};break;case"right":f={x:o.x+o.width,y:l};break;case"left":f={x:o.x-r.width,y:l};break;default:f={x:o.x,y:o.y}}switch(k(t)){case"start":f[a]-=c*(n&&s?-1:1);break;case"end":f[a]+=c*(n&&s?-1:1)}return f}function B(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function W(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function q(e,t){var n;void 0===t&&(t={});const{x:o,y:r,platform:i,rects:l,elements:a,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:s="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=t,v=B(p),m=a[d?"floating"===f?"reference":"floating":f],h=W(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:s,strategy:u})),y=W(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:"floating"===f?{...l.floating,x:o,y:r}:l.reference,offsetParent:await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),strategy:u}):l[f]);return{top:h.top-y.top+v.top,bottom:y.bottom-h.bottom+v.bottom,left:h.left-y.left+v.left,right:y.right-h.right+v.right}}const z=Math.min,G=Math.max;function Y(e,t,n){return G(e,z(t,n))}const K={left:"right",right:"left",bottom:"top",top:"bottom"};function X(e){return e.replace(/left|right|bottom|top/g,(e=>K[e]))}function Z(e,t,n){void 0===n&&(n=!1);const o=k(e),r=_(e),i=U(r);let l="x"===r?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=X(l)),{main:l,cross:X(l)}}const J={start:"end",end:"start"};function Q(e){return e.replace(/start|end/g,(e=>J[e]))}const ee=["top","right","bottom","left"],te=ee.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]);function ne(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function oe(e){return ee.some((t=>e[t]>=0))}const re=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:o}=t,r=await async function(e,t){const{placement:n,platform:o,elements:r}=e,i=await(null==o.isRTL?void 0:o.isRTL(r.floating)),l=F(n),a=k(n),u="x"===_(n),c=["left","top"].includes(l)?-1:1,s=i&&u?-1:1,f="function"==typeof t?t(e):t;let{mainAxis:d,crossAxis:p,alignmentAxis:v}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return a&&"number"==typeof v&&(p="end"===a?-1*v:v),u?{x:p*s,y:d*c}:{x:d*c,y:p*s}}(t,e);return{x:n+r.x,y:o+r.y,data:r}}}};const ie=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:i=!0,crossAxis:l=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...u}=e,c={x:n,y:o},s=await q(t,u),f=_(F(r)),d=function(e){return"x"===e?"y":"x"}(f);let p=c[f],v=c[d];if(i){const e="y"===f?"bottom":"right";p=Y(p+s["y"===f?"top":"left"],p,p-s[e])}if(l){const e="y"===d?"bottom":"right";v=Y(v+s["y"===d?"top":"left"],v,v-s[e])}const m=a.fn({...t,[f]:p,[d]:v});return{...m,data:{x:m.x-n,y:m.y-o}}}}};function le(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function ae(e){if(null==e)return window;if(!le(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function ue(e){return ae(e).getComputedStyle(e)}function ce(e){return le(e)?"":e?(e.nodeName||"").toLowerCase():""}function se(){const e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((e=>e.brand+"/"+e.version)).join(" "):navigator.userAgent}function fe(e){return e instanceof ae(e).HTMLElement}function de(e){return e instanceof ae(e).Element}function pe(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ae(e).ShadowRoot||e instanceof ShadowRoot)}function ve(e){const{overflow:t,overflowX:n,overflowY:o}=ue(e);return/auto|scroll|overlay|hidden/.test(t+o+n)}function me(e){return["table","td","th"].includes(ce(e))}function he(e){const t=/firefox/i.test(se()),n=ue(e);return"none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||["transform","perspective"].includes(n.willChange)||t&&"filter"===n.willChange||t&&!!n.filter&&"none"!==n.filter}function ye(){return!/^((?!chrome|android).)*safari/i.test(se())}const ge=Math.min,we=Math.max,be=Math.round;function Te(e,t,n){var o,r,i,l;void 0===t&&(t=!1),void 0===n&&(n=!1);const a=e.getBoundingClientRect();let u=1,c=1;t&&fe(e)&&(u=e.offsetWidth>0&&be(a.width)/e.offsetWidth||1,c=e.offsetHeight>0&&be(a.height)/e.offsetHeight||1);const s=de(e)?ae(e):window,f=!ye()&&n,d=(a.left+(f&&null!=(o=null==(r=s.visualViewport)?void 0:r.offsetLeft)?o:0))/u,p=(a.top+(f&&null!=(i=null==(l=s.visualViewport)?void 0:l.offsetTop)?i:0))/c,v=a.width/u,m=a.height/c;return{width:v,height:m,top:p,right:d+v,bottom:p+m,left:d,x:d,y:p}}function xe(e){return(t=e,(t instanceof ae(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function Pe(e){return de(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Re(e){return Te(xe(e)).left+Pe(e).scrollLeft}function Ee(e,t,n){const o=fe(t),r=xe(t),i=Te(e,o&&function(e){const t=Te(e);return be(t.width)!==e.offsetWidth||be(t.height)!==e.offsetHeight}(t),"fixed"===n);let l={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if(o||!o&&"fixed"!==n)if(("body"!==ce(t)||ve(r))&&(l=Pe(t)),fe(t)){const e=Te(t,!0);a.x=e.x+t.clientLeft,a.y=e.y+t.clientTop}else r&&(a.x=Re(r));return{x:i.left+l.scrollLeft-a.x,y:i.top+l.scrollTop-a.y,width:i.width,height:i.height}}function Oe(e){return"html"===ce(e)?e:e.assignedSlot||e.parentNode||(pe(e)?e.host:null)||xe(e)}function Ae(e){return fe(e)&&"fixed"!==getComputedStyle(e).position?e.offsetParent:null}function Ce(e){const t=ae(e);let n=Ae(e);for(;n&&me(n)&&"static"===getComputedStyle(n).position;)n=Ae(n);return n&&("html"===ce(n)||"body"===ce(n)&&"static"===getComputedStyle(n).position&&!he(n))?t:n||function(e){let t=Oe(e);for(pe(t)&&(t=t.host);fe(t)&&!["html","body"].includes(ce(t));){if(he(t))return t;t=t.parentNode}return null}(e)||t}function Se(e){if(fe(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=Te(e);return{width:t.width,height:t.height}}function Ne(e){const t=Oe(e);return["html","body","#document"].includes(ce(t))?e.ownerDocument.body:fe(t)&&ve(t)?t:Ne(t)}function He(e,t){var n;void 0===t&&(t=[]);const o=Ne(e),r=o===(null==(n=e.ownerDocument)?void 0:n.body),i=ae(o),l=r?[i].concat(i.visualViewport||[],ve(o)?o:[]):o,a=t.concat(l);return r?a:a.concat(He(l))}function Ie(e,t,n){return"viewport"===t?W(function(e,t){const n=ae(e),o=xe(e),r=n.visualViewport;let i=o.clientWidth,l=o.clientHeight,a=0,u=0;if(r){i=r.width,l=r.height;const e=ye();(e||!e&&"fixed"===t)&&(a=r.offsetLeft,u=r.offsetTop)}return{width:i,height:l,x:a,y:u}}(e,n)):de(t)?function(e,t){const n=Te(e,!1,"fixed"===t),o=n.top+e.clientTop,r=n.left+e.clientLeft;return{top:o,left:r,x:r,y:o,right:r+e.clientWidth,bottom:o+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}(t,n):W(function(e){var t;const n=xe(e),o=Pe(e),r=null==(t=e.ownerDocument)?void 0:t.body,i=we(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),l=we(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0);let a=-o.scrollLeft+Re(e);const u=-o.scrollTop;return"rtl"===ue(r||n).direction&&(a+=we(n.clientWidth,r?r.clientWidth:0)-i),{width:i,height:l,x:a,y:u}}(xe(e)))}function Le(e){const t=He(e),n=["absolute","fixed"].includes(ue(e).position)&&fe(e)?Ce(e):e;return de(n)?t.filter((e=>de(e)&&function(e,t){const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&pe(n)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}(e,n)&&"body"!==ce(e))):[]}const De={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const i=[..."clippingAncestors"===n?Le(t):[].concat(n),o],l=i[0],a=i.reduce(((e,n)=>{const o=Ie(t,n,r);return e.top=we(o.top,e.top),e.right=ge(o.right,e.right),e.bottom=ge(o.bottom,e.bottom),e.left=we(o.left,e.left),e}),Ie(t,l,r));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:o}=e;const r=fe(n),i=xe(n);if(n===i)return t;let l={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if((r||!r&&"fixed"!==o)&&(("body"!==ce(n)||ve(i))&&(l=Pe(n)),fe(n))){const e=Te(n,!0);a.x=e.x+n.clientLeft,a.y=e.y+n.clientTop}return{...t,x:t.x-l.scrollLeft+a.x,y:t.y-l.scrollTop+a.y}},isElement:de,getDimensions:Se,getOffsetParent:Ce,getDocumentElement:xe,getElementRects:e=>{let{reference:t,floating:n,strategy:o}=e;return{reference:Ee(t,Ce(n),o),floating:{...Se(n),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===ue(e).direction},Me=(e,t,n)=>(async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:l}=n,a=await(null==l.isRTL?void 0:l.isRTL(t));let u=await l.getElementRects({reference:e,floating:t,strategy:r}),{x:c,y:s}=$(u,o,a),f=o,d={};for(let n=0;n<i.length;n++){const{name:p,fn:v}=i[n],{x:m,y:h,data:y,reset:g}=await v({x:c,y:s,initialPlacement:o,placement:f,strategy:r,middlewareData:d,rects:u,platform:l,elements:{reference:e,floating:t}});c=null!=m?m:c,s=null!=h?h:s,d={...d,[p]:{...d[p],...y}},g&&("object"==typeof g&&(g.placement&&(f=g.placement),g.rects&&(u=!0===g.rects?await l.getElementRects({reference:e,floating:t,strategy:r}):g.rects),({x:c,y:s}=$(u,f,a))),n=-1)}return{x:c,y:s,placement:f,strategy:r,middlewareData:d}})(e,t,{platform:De,...n});var je=i(8022),Ve={},Fe=function(e){return document.querySelector(e)instanceof HTMLElement},ke=function(e){return e instanceof Element||e instanceof HTMLDocument},_e=function(e){if(ke(e))return{isElement:!0,content:e,vNode:void 0};if(/^(#|\.)/.test(e)){var t=document.querySelector(e),n=ke(t);return{isElement:n,content:n?t:e,vNode:n?void 0:e}}return{isElement:!1,content:e,vNode:e}};const Ue=function(n,o,r){var i=r.refReference,l=r.refContent,a=r.refArrow,u=r.refRoot,c=(0,t.ref)(!1),s=(0,t.ref)(),f=function(){var e,t,n,o=T(null===(e=i.value)||void 0===e?void 0:e.$el);return(null===(t=document.fullscreenElement)||void 0===t?void 0:t.shadowRoot)?document.fullscreenElement.shadowRoot.contains(o):null===(n=document.fullscreenElement)||void 0===n?void 0:n.contains(o)},p=["dark","light"],m=(0,t.computed)((function(){var e,t,o=null!==(t=null===(e=n.theme)||void 0===e?void 0:e.split(/\s+/))&&void 0!==t?t:[];return o.sort((function(e,t){return Number(p.includes(t))-Number(p.includes(e))})),{systemThemes:o,customThemes:o.filter((function(e){return!p.includes(e)}))}})),h=function(){return n.autoVisibility},y=function(){return n.autoPlacement},g=function(){var e,t,o,r,c=T(null===(e=i.value)||void 0===e?void 0:e.$el),s=T(null===(t=l.value)||void 0===t?void 0:t.$el),f=n.arrow?T(null===(o=a.value)||void 0===o?void 0:o.$el):null,d=T(null===(r=u.value)||void 0===r?void 0:r.$el),p=_e(n.content),v=p.isElement,m=p.content;return s&&v&&!(null==s?void 0:s.contains(m))&&s.append(m),{elReference:c,elContent:s,elArrow:f,root:d}},w=function(){var e={};return Array.isArray(n.modifiers)&&n.modifiers.forEach((function(t){var n,o,r,i,l;if("offset"===t.name){if("number"==typeof(null===(n=t.options)||void 0===n?void 0:n.offset)&&(l=null===(o=t.options)||void 0===o?void 0:o.offset),Array.isArray(null===(r=t.options)||void 0===r?void 0:r.offset)){var a=V(null===(i=t.options)||void 0===i?void 0:i.offset,2);l={mainAxis:a[0],crossAxis:a[1]}}Object.assign(e,{offset:l})}})),e},b=function(e,t){var n,o,r=w(),i=[re(r.offset||t.offset),ie({padding:t.padding})],l={placement:t.placement,middleware:i};if(t.arrow&&i.push((e=>({name:"arrow",options:e,async fn(t){const{element:n,padding:o=0}=null!=e?e:{},{x:r,y:i,placement:l,rects:a,platform:u}=t;if(null==n)return{};const c=B(o),s={x:r,y:i},f=_(l),d=k(l),p=U(f),v=await u.getDimensions(n),m="y"===f?"top":"left",h="y"===f?"bottom":"right",y=a.reference[p]+a.reference[f]-s[f]-a.floating[p],g=s[f]-a.reference[f],w=await(null==u.getOffsetParent?void 0:u.getOffsetParent(n));let b=w?"y"===f?w.clientHeight||0:w.clientWidth||0:0;0===b&&(b=a.floating[p]);const T=y/2-g/2,x=c[m],P=b-v[p]-c[h],R=b/2-v[p]/2+T,E=Y(x,R,P),O=("start"===d?c[m]:c[h])>0&&R!==E&&a.reference[p]<=a.floating[p];return{[f]:s[f]-(O?R<x?x-R:P-R:0),data:{[f]:E,centerOffset:R-E}}}}))({element:e})),y()?i.push(function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,o,r,i,l;const{x:a,y:u,rects:c,middlewareData:s,placement:f,platform:d,elements:p}=t,{alignment:v=null,allowedPlacements:m=te,autoAlignment:h=!0,...y}=e,g=function(e,t,n){return(e?[...n.filter((t=>k(t)===e)),...n.filter((t=>k(t)!==e))]:n.filter((e=>F(e)===e))).filter((n=>!e||k(n)===e||!!t&&Q(n)!==n))}(v,h,m),w=await q(t,y),b=null!=(n=null==(o=s.autoPlacement)?void 0:o.index)?n:0,T=g[b];if(null==T)return{};const{main:x,cross:P}=Z(T,c,await(null==d.isRTL?void 0:d.isRTL(p.floating)));if(f!==T)return{x:a,y:u,reset:{placement:g[0]}};const R=[w[F(T)],w[x],w[P]],E=[...null!=(r=null==(i=s.autoPlacement)?void 0:i.overflows)?r:[],{placement:T,overflows:R}],O=g[b+1];if(O)return{data:{index:b+1,overflows:E},reset:{placement:O}};const A=E.slice().sort(((e,t)=>e.overflows[0]-t.overflows[0])),C=null==(l=A.find((e=>{let{overflows:t}=e;return t.every((e=>e<=0))})))?void 0:l.placement,S=null!=C?C:A[0].placement;return S!==f?{data:{index:b+1,overflows:E},reset:{placement:S}}:{}}}}()):(i.unshift(function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(t){var n;const{placement:o,elements:r,rects:i,platform:l,strategy:a}=t,{padding:u=2,x:c,y:s}=e,f=W(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({rect:i.reference,offsetParent:await(null==l.getOffsetParent?void 0:l.getOffsetParent(r.floating)),strategy:a}):i.reference),d=null!=(n=await(null==l.getClientRects?void 0:l.getClientRects(r.reference)))?n:[],p=B(u),v=await l.getElementRects({reference:{getBoundingClientRect:function(){var e;if(2===d.length&&d[0].left>d[1].right&&null!=c&&null!=s)return null!=(e=d.find((e=>c>e.left-p.left&&c<e.right+p.right&&s>e.top-p.top&&s<e.bottom+p.bottom)))?e:f;if(d.length>=2){if("x"===_(o)){const e=d[0],t=d[d.length-1],n="top"===F(o),r=e.top,i=t.bottom,l=n?e.left:t.left,a=n?e.right:t.right;return{top:r,bottom:i,left:l,right:a,width:a-l,height:i-r,x:l,y:r}}const e="left"===F(o),t=G(...d.map((e=>e.right))),n=z(...d.map((e=>e.left))),r=d.filter((o=>e?o.left===n:o.right===t)),i=r[0].top,l=r[r.length-1].bottom;return{top:i,bottom:l,left:n,right:t,width:t-n,height:l-i,x:n,y:i}}return f}},floating:r.floating,strategy:a});return i.reference.x!==v.reference.x||i.reference.y!==v.reference.y||i.reference.width!==v.reference.width||i.reference.height!==v.reference.height?{reset:{rects:v}}:{}}}}()),i.push(function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:o,middlewareData:r,rects:i,initialPlacement:l,platform:a,elements:u}=t,{mainAxis:c=!0,crossAxis:s=!0,fallbackPlacements:f,fallbackStrategy:d="bestFit",flipAlignment:p=!0,...v}=e,m=F(o),h=f||(m!==l&&p?function(e){const t=X(e);return[Q(e),t,Q(t)]}(l):[X(l)]),y=[l,...h],g=await q(t,v),w=[];let b=(null==(n=r.flip)?void 0:n.overflows)||[];if(c&&w.push(g[m]),s){const{main:e,cross:t}=Z(o,i,await(null==a.isRTL?void 0:a.isRTL(u.floating)));w.push(g[e],g[t])}if(b=[...b,{placement:o,overflows:w}],!w.every((e=>e<=0))){var T,x;const e=(null!=(T=null==(x=r.flip)?void 0:x.index)?T:0)+1,t=y[e];if(t)return{data:{index:e,overflows:b},reset:{placement:t}};let n="bottom";switch(d){case"bestFit":{var P;const e=null==(P=b.map((e=>[e,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:P[0].placement;e&&(n=e);break}case"initialPlacement":n=l}if(o!==n)return{reset:{placement:n}}}return{}}}}())),h()&&l.middleware.push(function(e){let{strategy:t="referenceHidden",...n}={};return{name:"hide",async fn(e){const{rects:o}=e;switch(t){case"referenceHidden":{const t=ne(await q(e,{...n,elementContext:"reference"}),o.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:oe(t)}}}case"escaped":{const t=ne(await q(e,{...n,altBoundary:!0}),o.floating);return{data:{escapedOffsets:t,escaped:oe(t)}}}default:return{}}}}}()),f()||t.isVirtualEl){var a=(o=s.value,{getElementRects:function(e){var t=e.reference,n=e.floating,o=t.getBoundingClientRect(),r=n.getBoundingClientRect();return{reference:{width:o.width,height:o.height,x:o.x,y:o.y},floating:{width:r.width,height:r.height,x:r.x,y:r.y}}},getDimensions:function(e){var t=e.getBoundingClientRect();return{width:t.width,height:t.height}},getClippingRect:function(e){var t;!function(e){if(null==e)throw new TypeError("Cannot destructure undefined")}(e);var n=null!==(t=null==o?void 0:o.getBoundingClientRect())&&void 0!==t?t:{},r=n.width,i=void 0===r?0:r,l=n.height;return{width:i,height:void 0===l?0:l,x:0,y:0}}}),u=a.getElementRects,c=a.getDimensions,d=a.getClippingRect;Object.assign(l,{platform:Object.assign(Object.assign({},null!==(n=null==t?void 0:t.platform)&&void 0!==n?n:{}),{getElementRects:u,getDimensions:c,getClippingRect:d})})}return l},T=function e(t){return t instanceof HTMLElement?t:t instanceof Text?e(t.nextElementSibling):"function"==typeof(null==t?void 0:t.getBoundingClientRect)?t:null},x=m.value.customThemes.join(" "),P=m.value.customThemes.reduce((function(e,t){return Object.assign(d({},"data-".concat(t,"-theme"),!0),e)}),{}),R="".concat(x),E=null,O=function(e){var t=window.devicePixelRatio||1;return Math.round(e*t)/t||0},A=function(e,t,o,r){var i;n.disableTransform?Object.assign(e.style,{left:"".concat(O(t),"px"),top:"".concat(O(o),"px")}):Object.assign(e.style,{left:"0",top:"0",transform:"translate3d(".concat(O(t),"px,").concat(O(o),"px,0)")});var l=!!h()&&(null===(i=r.hide)||void 0===i?void 0:i.referenceHidden);Object.assign(e.style,{visibility:l?"hidden":"visible"})},C=function(e,t,o){var r;if(n.arrow){var i=null!==(r=o.arrow)&&void 0!==r?r:{},l=i.x,a=i.y;e.setAttribute("data-arrow",t),Object.assign(e.style,{left:"",top:"",bottom:"",right:""});var u={top:"bottom",right:"left",bottom:"top",left:"right"}[t];Object.assign(e.style,d({left:null!==l?"".concat(l,"px"):"",top:null!==a?"".concat(a,"px"):""},u,"-4px"))}},S=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=g(),o=n.elReference,r=n.elContent,i=n.elArrow,l=e||o;if(l&&r){var a=b(i,t);Me(l,r,a).then((function(e){var t=e.x,n=e.y,o=e.placement,l=e.middlewareData,a=r.className;r.className="".concat(a.replace(R,"")," ").concat(R).replace(/\s+/gm," ").replace(/^\s+|\s+$/g,""),Object.keys(P).forEach((function(e){r.setAttribute(e,P[e])}));var u=o.split("-")[0],c=u;["left","right","top","bottom"].includes(u)||(c="top"),A(r,t,n,l),C(i,c,l)}))}},N=void 0,H=void 0,I=!1,L=function(){return Array.isArray(n.popoverDelay)?[n.popoverDelay[0],n.popoverDelay.slice(-1)[0]]:[n.popoverDelay,n.popoverDelay]},D=function(){var e=L()[0];H=setTimeout((function(){N&&clearTimeout(N),n.disabled||(c.value=!0)}),e)},M=function(){var e=L()[1];N=setTimeout((function(){H&&clearTimeout(H),c.value=!1}),e)},j=function(){c.value?M():D()},$=function(){j()},K=function(){"hover"===n.trigger&&(N&&(I=!0,clearTimeout(N),N=void 0),ee())},J=function(){I&&(M(),I=!1,le())},ee=function(){o.emit(v.CONTENT_MOUSEENTER)},le=function(){o.emit(v.CONTENT_MOUSELEAVE)};return(0,t.watch)((function(){return n.isShow}),(function(e){c.value=e})),(0,t.watch)(c,(function(t){var r,i;t?((i=T(null===(r=l.value)||void 0===r?void 0:r.$el)).style.setProperty("display","block"),i.style.setProperty("z-index","".concat(n.zIndex?n.zIndex:e.bkZIndexManager.getPopperIndex())),S(),o.emit("afterShow",{isShow:!0})):function(){var e;T(null===(e=l.value)||void 0===e?void 0:e.$el).style.setProperty("display","none"),o.emit("afterHidden",{isShow:!1})}()})),{showPopover:D,hidePopover:M,resolveTriggerEvents:function(){var e;return null!==(e={hover:{content:[["mouseenter",K],["mouseleave",J]],reference:[["mouseenter",D],["mouseleave",M],["focus",D],["blur",M]]},click:[["click",$]],manual:{content:[["mouseenter",ee],["mouseleave",le]],reference:[[]]}}[n.trigger])&&void 0!==e?e:[]},updatePopover:S,triggerPopover:j,resolvePopElements:g,isElementFullScreen:f,resolveTargetElement:T,createPopInstance:function(){var e=g(),t=e.elReference,o=e.elContent;E=function(e,t,n,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:l=!0,animationFrame:a=!1}=o,u=r&&!a,c=i&&!a,s=u||c?[...de(e)?He(e):[],...He(t)]:[];s.forEach((e=>{u&&e.addEventListener("scroll",n,{passive:!0}),c&&e.addEventListener("resize",n)}));let f,d=null;l&&(d=new ResizeObserver(n),de(e)&&!a&&d.observe(e),d.observe(t));let p=a?Te(e):null;return a&&function t(){const o=Te(e);!p||o.x===p.x&&o.y===p.y&&o.width===p.width&&o.height===p.height||n(),p=o,f=requestAnimationFrame(t)}(),l||n(),()=>{var e;s.forEach((e=>{u&&e.removeEventListener("scroll",n),c&&e.removeEventListener("resize",n)})),null==(e=d)||e.disconnect(),d=null,a&&cancelAnimationFrame(f)}}(t,o,(function(){c.value&&S(null,n)}))},updateFullscreenTarget:function(e){s.value=e},getFullscreenRoot:function(e){return f()?document.fullscreenElement.shadowRoot?document.fullscreenElement.shadowRoot.querySelector(e):document.fullscreenElement.querySelector(e):document.body},stopHide:function(){N&&(I=!0,clearTimeout(N),N=void 0)},localIsShow:c,cleanup:E}};var $e=null,Be=null;const We=(0,t.defineComponent)({name:"Popover",components:{Content:y,Arrow:f,Root:M},directives:{clickoutside:s},props:L,emits:h,setup:function(n,o){var r=n.content,i=n.theme,l=n.disableTeleport,a=(0,t.toRefs)(n).reference,u=(0,t.ref)(),c=(0,t.ref)(),s=(0,t.ref)(),f=(0,t.ref)(),d=(0,t.computed)((function(){return a.value||u.value})),p=function(e,n,o){var r=o.refReference,i=o.refContent,l=o.refArrow,a=o.refRoot,u=null,c=(0,t.ref)(!1),s=(Ve.fullscreenReferId||(Ve.fullscreenReferId="id_".concat((0,je.v4)())),Ve.fullscreenReferId),f=(0,t.ref)(),d=Ue(e,n,{refReference:r,refContent:i,refArrow:l,refRoot:a}),p=d.localIsShow,m=d.showPopover,h=d.hidePopover,y=d.updatePopover,g=d.resolveTriggerEvents,w=d.resolvePopElements,b=d.isElementFullScreen,T=d.updateFullscreenTarget,x=d.createPopInstance,P=d.getFullscreenRoot,R=d.stopHide,E=function(){h()},O=function(){x(),e.always?m():A()},A=function(){var e=w(),t=e.elReference,n=e.elContent;if(u=g(),Array.isArray(u))C(t,u);else{var o=u,r=o.content,i=o.reference;C(t,i),C(n,r)}},C=function(e,t){t.forEach((function(t){var n=V(t,2),o=n[0],r=n[1];o&&"function"==typeof r&&e.addEventListener(o,r)}))},S=function(){var e=w(),t=e.elReference,n=e.root;c.value?I.value=null==f?void 0:f.value:I.value=H(n||t)},N=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#",n=function(n){var o=null,r=function(e){null===o&&e()};return r((function(){if(/^parent$/i.test(e.boundary)){o="".concat(t).concat($e);var r=(n||{}).parentNode;(null==r?void 0:r.parentNode)&&(r.parentNode.setAttribute("data-pnode-id",Be),o="[data-pnode-id=".concat(Be,"]"))}})),r((function(){if(!/^body$/i.test(e.boundary)&&"string"==typeof e.boundary){if(!Fe(e.boundary))return console.error("props.boundary is not available selector"),void(o="body");o=e.boundary}})),r((function(){o="string"==typeof e.boundary?e.boundary:"".concat(t).concat($e)})),o};if(null===$e||!Fe("#".concat($e))){$e="id_".concat((0,je.v4)());var o=document.createElement("div");o.setAttribute("id",$e),o.setAttribute("data-popper-id",$e),document.body.append(o)}return null===Be&&(Be="id_".concat((0,je.v4)())),{popContainerId:$e,prefixId:n(),getPrefixId:n}}(e,"#"),H=N.getPrefixId,I=(0,t.ref)(),L=function(){!function(){if(null==u?void 0:u.length){var e=w().elReference;e&&u.forEach((function(t){var n=V(t,2),o=n[0],r=n[1];o&&"function"==typeof r&&e.removeEventListener(o,r)})),u=null}}()},D=function(e){var t;f.value=e,T(e),c.value=b(),null===(t=null==f?void 0:f.value)||void 0===t||t.setAttribute("data-fllsrn-id",s)},M=function(t){var n,o,r;document.fullscreenElement||(r="[data-fllsrn-id=".concat(s,"]"),(null!==(o=null===(n=null==f?void 0:f.value)||void 0===n?void 0:n.querySelectorAll(r))&&void 0!==o?o:[]).forEach((function(e){null==e||e.removeAttribute("data-fllsrn-id")}))),D(t.target),S(),y(null,e)};return{onMountedFn:function(){if(!e.disabled){if(O(),b()){var t="[data-fllsrn-id=".concat(s,"]"),n=P(t);D(n)}S(),document.body.addEventListener("fullscreenchange",M)}},onUnmountedFn:function(){L(),document.body.removeEventListener("fullscreenchange",M)},handleClickOutside:function(t){n.emit(v.CLICK_OUTSIDE,{isShow:p.value,event:t}),e.disableOutsideClick||e.always||e.disabled||"manual"===e.trigger||p.value&&E()},beforeInstanceUnmount:L,updateBoundary:S,initPopInstance:O,updatePopover:y,showPopover:m,hidePopover:h,showFn:function(){m()},hideFn:E,stopHide:R,isFullscreen:c,boundary:I,localIsShow:p}}(n,o,{refReference:d,refContent:c,refArrow:s,refRoot:f}),m=p.onMountedFn,h=p.onUnmountedFn,y=p.handleClickOutside,g=p.beforeInstanceUnmount,w=p.updateBoundary,b=p.initPopInstance,T=p.showFn,x=p.hideFn,P=p.showPopover,R=p.hidePopover,E=p.updatePopover,O=p.stopHide,A=p.localIsShow,C=p.boundary;n.always||n.disabled||(0,t.watch)((function(){return n.isShow}),(function(){n.isShow?P():R()}),{immediate:!0}),(0,t.watch)((function(){return[n.disabled]}),(function(e){e[0]?g():b()})),w(),(0,t.onMounted)(m),(0,t.onBeforeUnmount)(h);var S=(0,t.computed)((function(){return!l})),N=(0,t.computed)((function(){return n.renderType===e.RenderType.AUTO||A.value}));return{boundary:C,arrow:n.arrow,refDefaultReference:u,refContent:c,refArrow:s,content:r,theme:i,transBoundary:S,handleClickOutside:y,updatePopover:E,hide:function(){x()},show:function(){T()},stopHide:O,contentIsShow:N,renderContent:function(){return n.allowHtml?_e(n.content).vNode:r}}},render:function(){var e,n,o,r,i,l,a=this;return(0,t.createVNode)(M,{ref:"refRoot"},{default:function(){return[(0,t.createVNode)(D,{ref:"refDefaultReference"},{default:function(){return[null!==(o=null===(n=(e=a.$slots).default)||void 0===n?void 0:n.call(e))&&void 0!==o?o:(0,t.createVNode)("span",null,null)]}}),(0,t.createVNode)(t.Teleport,{to:a.boundary,disabled:!a.transBoundary},{default:function(){return[(0,t.withDirectives)((0,t.createVNode)(y,{ref:"refContent","data-theme":a.theme,extCls:a.extCls,width:a.width,height:a.height,maxHeight:a.maxHeight},{default:function(){return[a.contentIsShow?null!==(l=null===(i=(r=a.$slots).content)||void 0===i?void 0:i.call(r))&&void 0!==l?l:a.renderContent():""]},arrow:function(){var e,n;return a.arrow?(0,t.createVNode)(f,{ref:"refArrow"},{default:function(){return[null===(n=(e=a.$slots).arrow)||void 0===n?void 0:n.call(e)]}}):""}}),[[(0,t.resolveDirective)("clickoutside"),a.handleClickOutside]])]}})]}})}});function qe(e){var n,o=null,r=null,i=null,l=Object.assign(Object.assign({boundary:"body",placement:"top",autoVisibility:!1},e),{trigger:"manual"}),a={name:"$popover",setup:function(e,n){var o=n.expose,r=(0,t.ref)(l),i=(0,t.ref)(),a=(0,t.ref)({position:"absolute",pointerEvents:"none",left:0,top:0,width:"auto",height:"auto",transform:""}),u=function(e){if(ke(e)){var t=e.getBoundingClientRect(),n=t.x,o=t.y,r=t.width,i=t.height;Object.assign(a.value,{width:"".concat(r,"px"),height:"".concat(i,"px"),transform:"translate3d(".concat(n,"px,").concat(o,"px,0)")})}else{var l=e.clientX,u=e.clientY;Object.assign(a.value,{transform:"translate3d(".concat(l,"px,").concat(u,"px,0)"),width:"10px",height:"10px"})}};u(r.value.target);var c=(0,t.computed)((function(){var e=["target"];return Object.keys(r.value).filter((function(t){return!e.includes(t)})).reduce((function(e,t){return Object.assign(Object.assign({},e),d({},t,r.value[t]))}),{})})),s=function(){var e;null===(e=l.onContentMouseenter)||void 0===e||e.call(l)},f=function(){var e;null===(e=l.onContentMouseleave)||void 0===e||e.call(l)};return o({show:function(){var e,t;null===(t=null===(e=i.value)||void 0===e?void 0:e.show)||void 0===t||t.call(e)},hide:function(){var e,t;null===(t=null===(e=i.value)||void 0===e?void 0:e.hide)||void 0===t||t.call(e)},updateTarget:function(e){var n,o;r.value.target=e,u(e),null===(o=null===(n=i.value)||void 0===n?void 0:n.updatePopover)||void 0===o||o.call(n),(0,t.nextTick)((function(){var e,t;null===(t=null===(e=i.value)||void 0===e?void 0:e.updatePopover)||void 0===t||t.call(e)}))},stopHide:function(){var e,t;null===(t=null===(e=i.value)||void 0===e?void 0:e.stopHide)||void 0===t||t.call(e)}}),function(){return(0,t.createVNode)(We,(0,t.mergeProps)(c.value,{ref:i,onContentMouseenter:s,onContentMouseleave:f}),{default:function(){return[(0,t.createVNode)("span",{style:a.value},null)]}})}}};return null===o&&(i=document.createElement("div"),(n=l.boundary,/^body$/i.test(n)?document.body:/^parent$/i.test(n)?ke(l.target)?l.target.parentNode:l.target.target.parentNode:"string"==typeof n&&Fe(n)?document.querySelector(n):document.body).append(i),o=(0,t.createApp)(a),r=o.mount(i)),{close:function(){o&&(o.unmount(),r=null,o=null,i.remove())},show:function(){null==r||r.show()},hide:function(){null==r||r.hide()},update:function(e){null==r||r.updateTarget(e)},get vm(){return r},get $el(){return r.$el}}}const ze=(0,e.withInstall)(We)})(),l})()));
@@ -1,3 +1,8 @@
1
1
  export declare const isAvailableId: (query: string) => boolean;
2
2
  export declare const getFullscreenUid: () => any;
3
3
  export declare const isElement: (element: any) => boolean;
4
+ export declare const contentAsHTMLElement: (content: any) => {
5
+ isElement: boolean;
6
+ content: any;
7
+ vNode: any;
8
+ };
@@ -1 +1 @@
1
- !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("../config-provider"),require("../directives"),require("../icon"),require("../popover"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../config-provider","../directives","../icon","../popover"],t);else{var n="object"==typeof exports?t(require("../shared"),require("vue"),require("../config-provider"),require("../directives"),require("../icon"),require("../popover")):t(e["../shared"],e.vue,e["../config-provider"],e["../directives"],e["../icon"],e["../popover"]);for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(self,((e,t,n,r,i,a)=>(()=>{var o={7162:(e,t,n)=>{e.exports=n(5047)},5047:e=>{var t=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var i=t&&t.prototype instanceof m?t:m,a=Object.create(i.prototype),o=new C(r||[]);return a._invoke=function(e,t,n){var r=d;return function(i,a){if(r===h)throw new Error("Generator is already running");if(r===f){if("throw"===i)throw a;return N()}for(n.method=i,n.arg=a;;){var o=n.delegate;if(o){var l=S(o,n);if(l){if(l===p)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===d)throw r=f,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=h;var u=s(e,t,n);if("normal"===u.type){if(r=n.done?f:v,u.arg===p)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=f,n.method="throw",n.arg=u.arg)}}}(e,n,o),a}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var d="suspendedStart",v="suspendedYield",h="executing",f="completed",p={};function m(){}function g(){}function _(){}var y={};u(y,a,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(V([])));w&&w!==n&&r.call(w,a)&&(y=w);var k=_.prototype=m.prototype=Object.create(y);function x(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function n(i,a,o,l){var u=s(e[i],e,a);if("throw"!==u.type){var c=u.arg,d=c.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,o,l)}),(function(e){n("throw",e,o,l)})):t.resolve(d).then((function(e){c.value=e,o(c)}),(function(e){return n("throw",e,o,l)}))}l(u.arg)}var i;this._invoke=function(e,r){function a(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(a,a):a()}}function S(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,S(e,n),"throw"===n.method))return p;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var i=s(r,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,p;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,p):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,p)}function L(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(L,this),this.reset(!0)}function V(e){if(e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}return{next:N}}function N(){return{value:t,done:!0}}return g.prototype=_,u(k,"constructor",_),u(_,"constructor",g),g.displayName=u(_,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,u(e,l,"GeneratorFunction")),e.prototype=Object.create(k),e},e.awrap=function(e){return{__await:e}},x(E.prototype),u(E.prototype,o,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,r,i,a){void 0===a&&(a=Promise);var o=new E(c(t,n,r,i),a);return e.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},x(k),u(k,l,"Generator"),u(k,a,(function(){return this})),u(k,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=V,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(I),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return l.type="throw",l.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],l=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var u=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(u&&c){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method="next",this.next=a.finallyLoc,p):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),I(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;I(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:V(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),p}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},2717:e=>{"use strict";e.exports=n},4061:e=>{"use strict";e.exports=r},6870:e=>{"use strict";e.exports=i},5537:e=>{"use strict";e.exports=a},4212:t=>{"use strict";t.exports=e},748:e=>{"use strict";e.exports=t}},l={};function u(e){var t=l[e];if(void 0!==t)return t.exports;var n=l[e]={exports:{}};return o[e](n,n.exports,u),n.exports}u.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return u.d(t,{a:t}),t},u.d=(e,t)=>{for(var n in t)u.o(t,n)&&!u.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},u.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),u.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var c={};return(()=>{"use strict";u.r(c),u.d(c,{BkSearchSelect:()=>B,default:()=>D});var e=u(4212),t=u(748),n=null,r=null;function i(e,t){void 0===t&&(t={});var n=document.createElement(e);return Object.keys(t).forEach((function(e){n[e]=t[e]})),n}function a(e,t,n){return(window.getComputedStyle(e,n||null)||{display:"none"})[t]}function o(e){if(!document.documentElement.contains(e))return{detached:!0,rendered:!1};for(var t=e;t!==document;){if("none"===a(t,"display"))return{detached:!1,rendered:!1};t=t.parentNode}return{detached:!1,rendered:!0}}var l=0,s=null;function d(e,t){if(e.__resize_mutation_handler__||(e.__resize_mutation_handler__=v.bind(e)),!e.__resize_listeners__)if(e.__resize_listeners__=[],window.ResizeObserver){var n=e.offsetWidth,r=e.offsetHeight,u=new ResizeObserver((function(){(e.__resize_observer_triggered__||(e.__resize_observer_triggered__=!0,e.offsetWidth!==n||e.offsetHeight!==r))&&f(e)})),c=o(e),d=c.detached,m=c.rendered;e.__resize_observer_triggered__=!1===d&&!1===m,e.__resize_observer__=u,u.observe(e)}else if(e.attachEvent&&e.addEventListener)e.__resize_legacy_resize_handler__=function(){f(e)},e.attachEvent("onresize",e.__resize_legacy_resize_handler__),document.addEventListener("DOMSubtreeModified",e.__resize_mutation_handler__);else if(l||(s=function(e){var t=document.createElement("style");return t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e)),(document.querySelector("head")||document.body).appendChild(t),t}('.resize-triggers{visibility:hidden;opacity:0;pointer-events:none}.resize-contract-trigger,.resize-contract-trigger:before,.resize-expand-trigger,.resize-triggers{content:"";position:absolute;top:0;left:0;height:100%;width:100%;overflow:hidden}.resize-contract-trigger,.resize-expand-trigger{background:#eee;overflow:auto}.resize-contract-trigger:before{width:200%;height:200%}')),function(e){var t=a(e,"position");t&&"static"!==t||(e.style.position="relative"),e.__resize_old_position__=t,e.__resize_last__={};var n=i("div",{className:"resize-triggers"}),r=i("div",{className:"resize-expand-trigger"}),o=i("div"),l=i("div",{className:"resize-contract-trigger"});r.appendChild(o),n.appendChild(r),n.appendChild(l),e.appendChild(n),e.__resize_triggers__={triggers:n,expand:r,expandChild:o,contract:l},p(e),e.addEventListener("scroll",h,!0),e.__resize_last__={width:e.offsetWidth,height:e.offsetHeight}}(e),e.__resize_rendered__=o(e).rendered,window.MutationObserver){var g=new MutationObserver(e.__resize_mutation_handler__);g.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0}),e.__resize_mutation_observer__=g}e.__resize_listeners__.push(t),l++}function v(){var e=o(this),t=e.rendered,n=e.detached;t!==this.__resize_rendered__&&(!n&&this.__resize_triggers__&&(p(this),this.addEventListener("scroll",h,!0)),this.__resize_rendered__=t,f(this))}function h(){var e,t,i=this;p(this),this.__resize_raf__&&(e=this.__resize_raf__,r||(r=(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||function(e){clearTimeout(e)}).bind(window)),r(e)),this.__resize_raf__=(t=function(){var e,t,n,r,a,o,l=(n=(t=(e=i).__resize_last__).width,r=t.height,a=e.offsetWidth,o=e.offsetHeight,a!==n||o!==r?{width:a,height:o}:null);l&&(i.__resize_last__=l,f(i))},n||(n=(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){return setTimeout(e,16)}).bind(window)),n(t))}function f(e){e&&e.__resize_listeners__&&e.__resize_listeners__.forEach((function(t){t.call(e,e)}))}function p(e){var t=e.__resize_triggers__,n=t.expand,r=t.expandChild,i=t.contract,a=i.scrollWidth,o=i.scrollHeight,l=n.offsetWidth,u=n.offsetHeight,c=n.scrollWidth,s=n.scrollHeight;i.scrollLeft=a,i.scrollTop=o,r.style.width=l+1+"px",r.style.height=u+1+"px",n.scrollLeft=c,n.scrollTop=s}var m=u(2717),g=u(4061),_=u(6870),y=u(7162),b=u.n(y);function w(e,t,n,r){return new(n||(n=Promise))((function(i,a){function o(e){try{u(r.next(e))}catch(e){a(e)}}function l(e){try{u(r.throw(e))}catch(e){a(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,l)}u((r=r.apply(e,t||[])).next())}))}Object.create,Object.create;var k=u(5537),x=u.n(k);const E=(0,t.defineComponent)({name:"SearchSelectMenu",props:{list:{type:Array},hoverId:String,keyword:{type:String,default:""},multiple:{type:Boolean,default:!1},selected:{type:Array,default:function(){return[]}},conditions:{type:Array},footerBtns:{type:Array,default:function(){return[]}}},emits:["selectItem","selectCondition","footerClick"],setup:function(e,n){var r=n.emit,i=(0,m.useLocale)("searchSelect"),a=(0,t.computed)((function(){return void 0===e.footerBtns||0===e.footerBtns.length?[{id:"confirm",name:i.value.ok},{id:"cancel",name:i.value.cancel,disabled:!1}]:e.footerBtns}));return{handleClick:function(e){r("selectItem",e)},handleClickCondition:function(e){r("selectCondition",e)},handleClickFooterBtn:function(e){r("footerClick",e)},filterList:(0,t.computed)((function(){var t,n;return(null===(t=e.list)||void 0===t?void 0:t.length)?(null===(n=e.keyword)||void 0===n?void 0:n.length)?e.list.filter((function(t){return t.name.toLocaleLowerCase().includes(e.keyword.toLocaleLowerCase())})):e.list:[]})),getSearchNode:function(n){var r;return(null===(r=n.value)||void 0===r?void 0:r.name)?[(0,t.createVNode)("span",{class:"menu-name"},[n.name,(0,t.createTextVNode)(":")]),n.value.name]:function(n){if(!n)return n;var r=e.keyword,i=r.length;if(!(null==r?void 0:r.trim().length)||!n.toLocaleLowerCase().includes(r.toLocaleLowerCase()))return n;var a=[],o=-1;return r=r.replace(/([.*/]{1})/gim,"\\$1"),n.replace(new RegExp("".concat(r),"igm"),(function(e,r){return 0===a.length&&0!==r?a.push(n.slice(0,r)):o>=0&&a.push(n.slice(o+e.length,r)),a.push((0,t.createVNode)("span",{class:"is-keyword"},[e])),o=r,e})),o>=0&&a.push(n.slice(o+i)),a.length?a:n}(n.name)},localFooterBtns:a}},render:function(){var e,n,r,i=this;return(0,t.createVNode)("div",{class:"bk-search-select-menu"},[!!(null===(e=this.conditions)||void 0===e?void 0:e.length)&&(0,t.createVNode)("ul",{class:"menu-header"},[this.conditions.map((function(e){return(0,t.createVNode)("li",{key:e.id,class:"menu-header-item ".concat(e.disabled?"is-disabled":""),onClick:function(){return!e.disabled&&i.handleClickCondition(e)}},[e.name])}))]),(0,t.createVNode)("ul",{class:"menu-content"},[null===(n=this.list)||void 0===n?void 0:n.map((function(e){return(0,t.createVNode)("li",{class:"menu-item ".concat(e.disabled?"is-disabled":""," ").concat(i.hoverId!==e.id||e.disabled?"":"is-hover"),key:e.id,id:e.id,tabindex:"-1",onClick:function(){return!e.disabled&&i.handleClick(e)}},[i.$slots.default?i.$slots.default({item:e,list:i.list,multiple:!!i.multiple,hoverId:i.hoverId,getSearchNode:i.getSearchNode}):(0,t.createVNode)(t.Fragment,null,[i.getSearchNode(e),i.multiple&&i.selected.includes(e.id)&&(0,t.createVNode)(_.Done,{class:"is-selected"},null)])])}))]),this.multiple&&(null===(r=this.localFooterBtns)||void 0===r?void 0:r.length)&&(0,t.createVNode)("div",{class:"menu-footer"},[this.localFooterBtns.map((function(e){return(0,t.createVNode)("span",{class:"menu-footer-btn ".concat(e.disabled?"is-disabled":""),key:e.id,onClick:function(){return!e.disabled&&i.handleClickFooterBtn(e)}},[e.name])}))])])}});function S(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function L(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var I;!function(e){e.ALL="all",e.NEEDKEY="need-key"}(I||(I={}));var C,V=Symbol("SEARCH_SLECT_PROVIDER_KEY"),N=function(){return(0,t.inject)(V)};!function(e){e.DEFAULT="default",e.EDIT="edit"}(C||(C={}));var z=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"|";S(this,e),this.searchItem=t,this.type=n,this.splitCode=r,this.values=[],this.id=t.id,this.name=t.name}var t,n;return t=e,(n=[{key:"multiple",get:function(){return!!this.searchItem.multiple}},{key:"placeholder",get:function(){return this.searchItem.placeholder||""}},{key:"children",get:function(){return this.searchItem.children||[]}},{key:"validate",get:function(){return!this.searchItem.noValidate}},{key:"inputInnerHtml",get:function(){var e;return this.isSpecialType()?this.name:"".concat(this.keyInnerHtml).concat((null===(e=this.values)||void 0===e?void 0:e.map((function(e){return e.name})).join(this.splitCode))||"")}},{key:"inputInnerText",get:function(){var e;return this.isSpecialType()?this.name:"".concat(this.keyInnerText).concat((null===(e=this.values)||void 0===e?void 0:e.map((function(e){return e.name})).join(this.splitCode))||"")}},{key:"keyInnerHtml",get:function(){return this.isSpecialType()?this.name:this.name?"".concat(this.name,": "):""}},{key:"keyInnerText",get:function(){return this.isSpecialType()?this.name:this.name?"".concat(this.name,": "):""}},{key:"isSpecialType",value:function(){return["text","condition"].includes(this.type)}},{key:"addValue",value:function(e){if(this.multiple){var t=this.values.findIndex((function(t){return t.id===e.id}));return t>-1?void this.values.splice(t,1):void this.values.push(e)}this.values=[e]}},{key:"toValue",value:function(){var e,t={id:this.id,name:this.name};return(null===(e=this.values)||void 0===e?void 0:e.length)&&(t.values=this.values.map((function(e){return{id:e.id,name:e.name}}))),this.type&&"default"!==this.type&&(t.type=this.type),t}},{key:"toValueKey",value:function(){return JSON.stringify(this.toValue())}},{key:"isInValueList",value:function(e){return this.children.some((function(t){return t.id===(null==e?void 0:e.id)}))}}])&&L(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();const O=(0,t.defineComponent)({name:"SearchSelectInput",directives:{clickoutside:g.clickoutside},props:{data:{type:Array,required:!0},showInputBefore:Boolean,showCondition:Boolean,clickOutside:Function,placeholder:String,conditions:{type:Array,default:function(){return[]}},defautUsingItem:Object,mode:{type:String,default:C.DEFAULT},getMenuList:Function,validateValues:Function,valueBehavior:String},emits:["focus","add","delete"],setup:function(n,r){var i=r.emit,a=r.expose,o=(0,m.useLocale)("searchSelect"),l=(0,t.ref)(null),u=(0,t.ref)(null),c=(0,t.ref)(""),s=(0,t.ref)(!1),d=(0,t.ref)(!1),v=(0,t.ref)(!1),h=(0,t.ref)(n.defautUsingItem),f=(0,t.ref)(""),p=(0,t.ref)(!1),g=(0,e.debounce)(300,q),_=!1,y=(0,t.ref)([]),k=(0,t.ref)([]),x=N(),E=x.editKey,S=x.onValidate,L=x.valueSplitCode;function V(e){switch(e.code){case"ArrowDown":case"ArrowUp":O(e);break;case"Enter":case"NumpadEnter":!function(e){if(_){e.preventDefault();var t=k.value.find((function(e){return e.id===f.value}));t&&j(t)}}(e)}}function O(e){var t;e.preventDefault(),null===(t=l.value)||void 0===t||t.blur();for(var n=k.value.length,r=n,i=k.value.findIndex((function(e){return e.id===f.value}));r>=0;){i=(i="ArrowDown"===e.code?i+1:i-1)>n-1?0:i<0?n-1:i;var a=k.value[i];if(a&&!a.disabled){r=-1;var o=document.getElementById(a.id);return null==o||o.focus(),void(f.value=a.id)}r-=1}}function T(e){A(),e&&q()}function F(e){var t;return w(this,void 0,void 0,b().mark((function r(){var a,o,l,u,d;return b().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return null==e||e.preventDefault(),r.next=3,new Promise((function(e){return setTimeout(e,0)}));case 3:if(h.value){r.next=16;break}if(c.value&&n.valueBehavior!==I.NEEDKEY){r.next=6;break}return r.abrupt("return");case 6:return a={id:c.value,name:c.value},r.next=9,B(a);case 9:if(r.sent){r.next=12;break}return r.abrupt("return");case 12:return i("add",new z(a,"text",L.value)),c.value="",q(),r.abrupt("return");case 16:if(null==(o=h.value.values)?void 0:o.length){r.next=43;break}if(!(null===(t=c.value)||void 0===t?void 0:t.length)){r.next=41;break}if(!c.value.includes(L.value)){r.next=29;break}return l=c.value.split(L.value),r.next=23,B({id:c.value,name:c.value});case 23:if(r.sent){r.next=26;break}return r.abrupt("return");case 26:l.forEach((function(e){return h.value.addValue({id:e,name:e})})),r.next=36;break;case 29:return u={id:c.value,name:c.value},r.next=32,B(u);case 32:if(r.sent){r.next=35;break}return r.abrupt("return");case 35:h.value.addValue(u);case 36:return i("add",h.value),c.value="",h.value=null,A(!0),r.abrupt("return");case 41:return s.value=!0,r.abrupt("return");case 43:if(!c.value){r.next=56;break}return d={id:c.value,name:c.value},r.next=47,B(d);case 47:if(r.sent){r.next=50;break}return r.abrupt("return");case 50:return h.value.addValue(d),i("add",h.value),c.value="",h.value=null,A(!0),r.abrupt("return");case 56:return r.next=58,B();case 58:if(r.sent){r.next=61;break}return r.abrupt("return");case 61:M();case 62:case"end":return r.stop()}}),r)})))}function j(e,t){var r,i,a,o,u;return w(this,void 0,void 0,b().mark((function s(){var d,p;return b().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:if(!(null===(r=e.value)||void 0===r?void 0:r.id)){s.next=8;break}if((n.valueBehavior!==I.NEEDKEY||!e.value)&&n.validateValues){s.next=8;break}return(d=new z(Object.assign(Object.assign({},e),{id:null!==(i=e.realId)&&void 0!==i?i:e.id}),t,L.value)).addValue(e.value),M(d),n.valueBehavior===I.NEEDKEY&&f.value&&A(!0),f.value="",s.abrupt("return");case 8:if(h.value&&(null===(a=null==l?void 0:l.value)||void 0===a?void 0:a.innerText)){s.next=16;break}return h.value=new z(e,t,L.value),c.value="",(p="condition"===t)&&M(),v.value=p||!!h.value.children.length,A(n.valueBehavior===I.NEEDKEY&&!!f.value),s.abrupt("return");case 16:if("condition"!==(null===(o=h.value)||void 0===o?void 0:o.type)){s.next=20;break}return h.value=new z(e,t,L.value),M(),s.abrupt("return");case 20:return h.value.addValue(e),s.next=23,B(e);case 23:if(s.sent){s.next=26;break}return s.abrupt("return");case 26:h.value.multiple||M(),n.valueBehavior===I.NEEDKEY&&(null===(u=h.value)||void 0===u?void 0:u.multiple)&&A();case 28:case"end":return s.stop()}}),s)})))}function B(e){return w(this,void 0,void 0,b().mark((function t(){var r,i,a,o;return b().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(h.value){t.next=4;break}return t.next=3,D(null,[e]);case 3:case 8:return t.abrupt("return",t.sent);case 4:if(r=h.value,i=r.searchItem,a=r.validate,o=r.values,!a||"function"!=typeof n.validateValues){t.next=9;break}return t.next=8,D(i,e?[e]:o);case 9:return S(""),t.abrupt("return",!0);case 11:case"end":return t.stop()}}),t)})))}function D(e,t){var r;return w(this,void 0,void 0,b().mark((function i(){var a;return b().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,null===(r=n.validateValues)||void 0===r?void 0:r.call(n,null!=e?e:null,t).catch((function(){return!1}));case 2:if("string"!=typeof(a=i.sent)&&!1!==a){i.next=6;break}return S(a||"校验错误"),i.abrupt("return",!1);case 6:return S(""),i.abrupt("return",!0);case 8:case"end":return i.stop()}}),i)})))}function A(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];e&&(0,t.nextTick)().then((function(){q()})),d.value=!0,v.value=!0,s.value=!1;var n=setTimeout((function(){if(l.value){l.value.focus();var e=window.getSelection();0===e.focusOffset&&(e.selectAllChildren(l.value),e.collapseToEnd())}window.clearTimeout(n)}),0);i("focus",d.value)}function q(){var t,r,i,a,o;return w(this,void 0,void 0,b().mark((function l(){var u,s;return b().wrap((function(l){for(;;)switch(l.prev=l.next){case 0:if(u=[],"function"!=typeof n.getMenuList||void 0!==(null===(r=null===(t=h.value)||void 0===t?void 0:t.searchItem)||void 0===r?void 0:r.async)&&!0!==h.value.searchItem.async){l.next=9;break}return p.value=!0,l.next=5,n.getMenuList(null===(i=h.value)||void 0===i?void 0:i.searchItem,c.value).catch((function(){return[]}));case 5:u=l.sent,p.value=!1,l.next=10;break;case 9:(null==h?void 0:h.value)?"condition"===h.value.type?u=n.conditions:(null===(o=h.value.values)||void 0===o?void 0:o.length)&&!h.value.multiple&&n.mode!==C.EDIT||(u=h.value.children.filter((function(e){return e.name.toLocaleLowerCase().includes(c.value.toLocaleLowerCase())}))):(null===(a=c.value)||void 0===a?void 0:a.length)?n.data.filter((function(e){return!e.isSelected})).forEach((function(t){var n,r;t.name.toLocaleLowerCase().includes(c.value.toLocaleLowerCase())?(u.push(t),null===(n=t.children)||void 0===n||n.forEach((function(n){u.push(Object.assign(Object.assign({},t),{realId:t.id,id:(0,e.random)(10),value:n}))})),u.push(Object.assign(Object.assign({},t),{realId:t.id,id:(0,e.random)(10),value:{id:c.value,name:c.value}}))):(null===(r=t.children)||void 0===r||r.forEach((function(n){n.name.toLocaleLowerCase().includes(c.value.toLocaleLowerCase())&&u.push(Object.assign(Object.assign({},t),{realId:t.id,id:(0,e.random)(10),value:n}))})),u.push(Object.assign(Object.assign({},t),{value:{id:c.value,name:c.value}})))})):u=n.data.filter((function(e){return!e.isSelected})).slice();case 10:k.value=u,n.valueBehavior===I.NEEDKEY&&(s=u.find((function(e){return!e.disabled})))&&(!f.value||f.value&&!u.some((function(e){return e.id===f.value})))&&(f.value=s.id);case 12:case"end":return l.stop()}}),l)})))}function M(e){i("add",null!=e?e:h.value),h.value=null,c.value="",A(n.valueBehavior===I.NEEDKEY)}function K(){var e=l.value.innerText;"\n"===e[e.length-1]||"\r"===e[0]?(H(e.slice(0,-1)),K()):"\n"!==e[0]&&"\r"!==e[0]||(H(e.slice(1)),K())}function H(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";l.value&&(l.value.innerHTML=t||(null===(e=h.value)||void 0===e?void 0:e.inputInnerHtml)||"")}return(0,t.watch)(E,(function(){n.mode===C.DEFAULT&&E.value&&(v.value=!1)})),(0,t.watchEffect)((function(){c.value||H()}),{flush:"pre"}),(0,t.watch)([k,v],(function(){var e;(null===(e=k.value)||void 0===e?void 0:e.some((function(e){return!e.disabled})))&&v.value?_||(n.valueBehavior===I.NEEDKEY?f.value=k.value.find((function(e){return!e.disabled})).id:f.value="",_=!0,document.addEventListener("keydown",V)):(document.removeEventListener("keydown",V),_=!1,n.valueBehavior!==I.NEEDKEY&&(f.value=""))})),a({handleInputFocus:T,isFocus:d}),{popoverRef:u,inputRef:l,keyword:c,loading:p,remoteMenuList:y,menuList:k,menuHoverId:f,isFocus:d,usingItem:h,showPopover:v,showNoSelectValueError:s,debounceSetMenuList:g,documentArrowEvent:O,handleClickOutside:function(e){var t,r;!(null===(t=u.value)||void 0===t?void 0:t.contains(e.target))&&(null===(r=n.clickOutside)||void 0===r?void 0:r.call(n,e.target,u.value))&&(v.value=!1,d.value=!1,i("focus",d.value))},handleInputFocus:T,handleInputChange:function(e){var t,n,r,i,a,o,u,s,d;K();var v=e.target.innerText;if(/(\r|\n)/gm.test(v)||/\s{2}/gm.test(v))e.preventDefault(),v=v.replace(/(\r|\n)/gm,L.value).replace(/\s{2}/gm,""),l.value.innerText=v,A(),c.value=v.replace((null===(t=h.value)||void 0===t?void 0:t.keyInnerText)||"","").trim(),g();else if(!c.value&&v.length<((null===(r=null===(n=h.value)||void 0===n?void 0:n.inputInnerText)||void 0===r?void 0:r.length)||1)){var f=v.replace(" "," ").replace((null===(i=h.value)||void 0===i?void 0:i.keyInnerText.replace(" "," ").trim())||"","").trim();if(v&&(null===(a=h.value)||void 0===a?void 0:a.keyInnerText)&&v.replace(" "," ").includes(h.value.keyInnerText.replace(" "," ").trim())&&f&&(null===(o=h.value.values)||void 0===o?void 0:o.length))return c.value=f,console.info("outerText",f),void g();!f&&(null==v?void 0:v.length)||(h.value=null),c.value=f?v:"",g()}else(null===(s=null===(u=h.value)||void 0===u?void 0:u.values)||void 0===s?void 0:s.length)||(c.value=v.replace(" "," ").replace((null===(d=h.value)||void 0===d?void 0:d.keyInnerText.replace(" "," "))||"","").trim(),A(),g())},handleInputKeyup:function(e){switch(e.code){case"Enter":case"NumpadEnter":if(n.valueBehavior===I.NEEDKEY&&k.value.some((function(e){return e.id===f.value})))return;F(e);break;case"Backspace":!function(){var e,r;if(!h.value&&!c.value)return i("delete"),void(0,t.nextTick)(q);if(null===(e=h.value)||void 0===e?void 0:e.values.length){if((null===(r=h.value)||void 0===r?void 0:r.multiple)||h.value.isInValueList(h.value.values[0])||n.mode===C.EDIT&&!c.value)return h.value.values.splice(-1,1),c.value="",void A()}else c.value||(h.value=null,c.value="",q());S("")}();default:s.value=!1}},handleSelectItem:j,handleSelectCondtionItem:function(e){j(e,"condition")},handleMenuFooterClick:function(e){switch(e.id){case"confirm":F();break;case"cancel":h.value.values=[],v.value=!1}},t:o}},render:function(){var e,n,r=this,i=this.usingItem||{},a=i.multiple,o=i.values,l=i.placeholder,u=i.inputInnerHtml,c=!(null===(e=this.keyword)||void 0===e?void 0:e.length)&&!(null==o?void 0:o.length)&&l,s=this.loading||this.showNoSelectValueError||this.showPopover&&!!(null===(n=this.menuList)||void 0===n?void 0:n.length),d=!this.usingItem&&this.showCondition,v=Object.assign({},this.$slots.menu?{default:function(e){var t,n;return null===(n=(t=r.$slots).menu)||void 0===n?void 0:n.call(t,e)}}:{});return(0,t.createVNode)(x(),{trigger:"manual",theme:"light",placement:"bottom-start",arrow:!1,disableOutsideClick:!0,isShow:s},{default:function(){var e;return(0,t.withDirectives)((0,t.createVNode)("div",{ref:"inputRef",class:{"div-input":!0,"input-before":r.showInputBefore&&!(null===(e=r.keyword)||void 0===e?void 0:e.length),"input-after":c},contenteditable:!0,"data-placeholder":u||r.keyword?"":r.placeholder,"data-tips":l||"",spellcheck:"false",onFocus:r.handleInputFocus,onInput:r.handleInputChange,onKeydown:r.handleInputKeyup},null),[[(0,t.resolveDirective)("clickoutside"),r.handleClickOutside]])},content:function(){var e;return r.loading?(0,t.createVNode)("div",null,[r.t.loading]):r.showNoSelectValueError?(0,t.createVNode)("div",null,[r.t.filterQueryMustHasValue]):(null===(e=r.menuList)||void 0===e?void 0:e.length)?(0,t.createVNode)("div",{ref:"popoverRef",class:"bk-search-select-popover"},[(0,t.createVNode)(E,{list:r.menuList,keyword:r.keyword,multiple:!!a,hoverId:r.menuHoverId,selected:(null==o?void 0:o.map((function(e){return e.id})))||[],conditions:d?r.conditions:[],onSelectItem:r.handleSelectItem,onSelectCondition:r.handleSelectCondtionItem,onFooterClick:r.handleMenuFooterClick},Object.assign({},v))]):void 0}})}}),T=(0,t.defineComponent)({name:"SearchSelected",props:{data:{type:Array,required:!0},selectedList:{type:Array,required:!0},overflowIndex:{type:Number,default:-1},conditions:{type:Array,default:function(){return[]}},getMenuList:Function,validateValues:Function,valueBehavior:String},emits:["delete"],setup:function(e,n){var r=n.emit,i=(0,t.ref)(null),a=N(),o=a.onEditClick,l=a.onEditEnter,u=a.onEditBlur,c=a.editKey,s=a.valueSplitCode;return{inputRef:i,editKey:c,copySeletedItem:function(e){var t=new z(e.searchItem,e.type,s.value);return t.values=e.values.slice(),t},handleDeleteSelected:function(e){r("delete",e)},handleEditSeleted:function(e,t,n){e.preventDefault(),e.stopPropagation(),o(t,n),setTimeout((function(){return i.value.handleInputFocus()}),200)},handleInputOutside:function(){return!0},handleAddSelected:function(e,t){l(e,t)},handleInputFocus:function(e){e||u()}}},render:function(){var e=this,n=function(n,r){return e.editKey==="".concat(n.id,"_").concat(r)?(0,t.createVNode)("div",{class:"selected-input",key:e.editKey.toString()},[(0,t.createVNode)(O,{ref:"inputRef",key:e.editKey.toString(),mode:C.EDIT,data:e.data,showCondition:!1,conditions:e.conditions,defautUsingItem:e.copySeletedItem(n),clickOutside:e.handleInputOutside,getMenuList:e.getMenuList,validateValues:e.validateValues,valueBehavior:e.valueBehavior,onAdd:function(t){return e.handleAddSelected(t,r)},onFocus:e.handleInputFocus},null)]):(0,t.createVNode)("li",{class:"search-container-selected ".concat((e.overflowIndex>=0?r<e.overflowIndex:r>=0)?"":"hidden-selected"),key:"".concat(n.id,"_").concat(r)},[(0,t.createVNode)("span",{class:"selected-name",onClick:function(t){return e.handleEditSeleted(t,n,r)}},[n.inputInnerText]),(0,t.createVNode)(_.Error,{class:"selected-clear",onClick:function(){return e.handleDeleteSelected(r)}},null)])};return(0,t.createVNode)(t.Fragment,null,[this.selectedList.map((function(r,i){return[e.overflowIndex>=0&&i===e.overflowIndex&&(0,t.createVNode)("div",{class:"search-container-selected overflow-selected"},[(0,t.createTextVNode)("+"),e.selectedList.length-e.overflowIndex]),n(r,i)]}))])}});var F={data:{type:Array,default:function(){return[]}},modelValue:{type:Array,default:function(){return[]}},shrink:{type:Boolean,default:!0},maxHeight:{type:Number,default:120},minHeight:{type:Number,default:26},conditions:{type:Array,default:function(){return[]}},clearable:{type:Boolean,default:!0},placeholder:String,getMenuList:Function,validateValues:Function,valueSplitCode:{type:String,default:"|"},uniqueSelect:{type:Boolean,default:!1},valueBehavior:{type:String,default:I.ALL,validator:function(e){return[I.ALL,I.NEEDKEY].includes(e)}}};const j=(0,t.defineComponent)({name:"SearchSelect",directives:{clickoutside:g.clickoutside},props:F,emits:["update:modelValue","search"],setup:function(n,r){var i,a=r.emit,o=(0,m.useLocale)("searchSelect"),u=(0,t.computed)((function(){return void 0===n.conditions?[{id:"or",name:o.value.or},{id:"and",name:o.value.and}]:n.conditions})),c=(0,t.ref)(null),v=(0,t.ref)(null),f=(0,t.ref)(!1),p=(0,t.ref)([]),g=(0,t.ref)(-1),_=(0,e.debounce)(32,L),y=(0,t.ref)(""),b=(0,t.ref)(""),w=(0,t.computed)((function(){return n.valueSplitCode})),k=(0,t.shallowRef)([]);function x(e,t){y.value="".concat(e.id,"_").concat(t)}function E(e,t){var n=p.value.slice();n.splice(t,1,e),a("update:modelValue",n.map((function(e){return e.toValue()}))),y.value=""}function S(e){b.value=e||""}function L(){if(f.value||p.value.length<1)g.value=-1;else{for(var e=v.value.querySelector(".bk-search-select-container"),t=v.value.querySelector(".search-container").clientWidth-6-2,r=e.querySelectorAll(".search-container-selected:not(.overflow-selected)"),i=0,a=0,o=0;0===a&&i<=t-40&&o<=r.length-1;){var l=r[o];if(l.clientHeight>n.minHeight)return void(g.value=o);(i+=l?l.clientWidth+6:0)>=t-40&&(a=o),o+=1}a===r.length-1&&i<=t?g.value=-1:g.value=i>=t-40?a:a-1}}return(0,t.watch)((function(){return n.data}),(function(){var e;k.value=JSON.parse(JSON.stringify(n.data)),null===(e=k.value)||void 0===e||e.forEach((function(e){e.isSelected=n.uniqueSelect&&!!n.modelValue.some((function(t){return t.id===e.id}))}))}),{immediate:!0}),(0,t.watch)((function(){return n.modelValue}),(function(e){var t,r;if(!(null==e?void 0:e.length))return p.value=[],void(null===(t=k.value)||void 0===t||t.forEach((function(e){e.isSelected=!1})));var i=[];e.forEach((function(e){var t,r=p.value.find((function(t){return t.id===e.id&&t.name===e.name}));if((null==r?void 0:r.toValueKey())===JSON.stringify(e))r.values=e.values||[],i.push(r);else{var a=n.data.find((function(t){return t.id===e.id})),o="default";a||(a=n.conditions.find((function(t){return t.id===e.id})))&&(o="condition"),a||(null===(t=e.values)||void 0===t?void 0:t.length)||(o="text");var l=new z(a||e,o,w.value);l.values=e.values||[],i.push(l)}})),p.value=i,null===(r=k.value)||void 0===r||r.forEach((function(e){e.isSelected=n.uniqueSelect&&!!i.some((function(t){return t.id===e.id}))}))}),{immediate:!0,deep:!0}),(0,t.onMounted)((function(){d(v.value.querySelector(".bk-search-select-container"),_)})),(0,t.onBeforeUnmount)((function(){!function(e,t){var n=e.__resize_listeners__;if(n){if(t&&n.splice(n.indexOf(t),1),!n.length||!t){if(e.detachEvent&&e.removeEventListener)return e.detachEvent("onresize",e.__resize_legacy_resize_handler__),void document.removeEventListener("DOMSubtreeModified",e.__resize_mutation_handler__);e.__resize_observer__?(e.__resize_observer__.unobserve(e),e.__resize_observer__.disconnect(),e.__resize_observer__=null):(e.__resize_mutation_observer__&&(e.__resize_mutation_observer__.disconnect(),e.__resize_mutation_observer__=null),e.removeEventListener("scroll",h),e.removeChild(e.__resize_triggers__.triggers),e.__resize_triggers__=null),e.__resize_listeners__=null}!--l&&s&&s.parentNode.removeChild(s)}}(v.value.querySelector(".bk-search-select-container"),_)})),i={onEditClick:x,onEditEnter:E,onEditBlur:function(){y.value="",S("")},onValidate:S,editKey:y,valueSplitCode:w},(0,t.provide)(V,i),{inputRef:c,wrapRef:v,isFocus:f,copyData:k,selectedList:p,overflowIndex:g,validateStr:b,splitCode:w,onEditClick:x,onEditEnter:E,handleWrapClick:function(){y.value||c.value.handleInputFocus()},handleInputFocus:function(e){var t;e&&(g.value=-1),!1===e&&(null===(t=v.value.querySelector(".bk-search-select-container"))||void 0===t||t.scrollTo(0,0)),f.value=e},handleResize:L,handleClearAll:function(){p.value=[],g.value=-1,a("update:modelValue",[])},handleInputOutside:function(e){var t;return!(null===(t=v.value)||void 0===t?void 0:t.contains(e))},handleAddSelected:function(e){var t=p.value.slice();t.push(e),S(""),a("update:modelValue",t.map((function(e){return e.toValue()})))},handleDeleteSelected:function(e){var t=p.value.slice();t.splice("number"==typeof e?e:p.value.length-1,1),S(""),a("update:modelValue",t.map((function(e){return e.toValue()})))},handleClickSearch:function(e){a("search",e)},localConditions:u,t:o}},render:function(){var e,n,r=this,i="".concat(!this.shrink||this.isFocus?this.maxHeight:this.minHeight,"px"),a=!!this.selectedList.length&&"condition"!==this.selectedList.slice(-1)[0].type,o=Object.assign({},this.$slots.menu?{menu:function(e){var t,n;return null===(n=(t=r.$slots).menu)||void 0===n?void 0:n.call(t,e)}}:{});return(0,t.createVNode)("div",{class:"bk-search-select",ref:"wrapRef"},[(0,t.createVNode)("div",{class:{"bk-search-select-container":!0,"is-focus":this.isFocus},onClick:this.handleWrapClick},[(0,t.createVNode)("div",{class:"search-prefix"},[null===(n=(e=this.$slots).prepend)||void 0===n?void 0:n.call(e)]),(0,t.createVNode)("div",{class:"search-container",style:{maxHeight:i}},[(0,t.createVNode)(T,{data:this.copyData,conditions:this.localConditions,selectedList:this.selectedList,overflowIndex:this.overflowIndex,getMenuList:this.getMenuList,validateValues:this.validateValues,valueBehavior:this.valueBehavior,onDelete:this.handleDeleteSelected},Object.assign({},o)),(0,t.createVNode)("div",{class:"search-container-input"},[(0,t.createVNode)(O,{ref:"inputRef",data:this.copyData,showInputBefore:!this.selectedList.length,showCondition:a,conditions:this.localConditions,placeholder:this.placeholder||this.t.pleaseSelect,clickOutside:this.handleInputOutside,getMenuList:this.getMenuList,validateValues:this.validateValues,valueBehavior:this.valueBehavior,onAdd:this.handleAddSelected,onDelete:this.handleDeleteSelected,onFocus:this.handleInputFocus},Object.assign({},o))])]),(0,t.createVNode)("div",{class:"search-nextfix"},[this.clearable&&!!this.selectedList.length&&(0,t.createVNode)(_.Close,{class:"search-clear",onClick:this.handleClearAll},null),this.$slots.append?this.$slots.append():(0,t.createVNode)(_.Search,{onClick:this.handleClickSearch,class:"search-nextfix-icon ".concat(this.isFocus?"is-focus":"")},null)])]),!!this.validateStr.length&&(0,t.createVNode)("div",{class:"bk-search-select-tips"},[this.$slots.validate?this.$slots.validate():(0,t.createVNode)(t.Fragment,null,[(0,t.createVNode)(_.ExclamationCircleShape,{class:"select-tips"},null),this.validateStr||""])])])}});var B=(0,e.withInstall)(j);const D=B})(),c})()));
1
+ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("../config-provider"),require("../directives"),require("../icon"),require("../popover"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../config-provider","../directives","../icon","../popover"],t);else{var n="object"==typeof exports?t(require("../shared"),require("vue"),require("../config-provider"),require("../directives"),require("../icon"),require("../popover")):t(e["../shared"],e.vue,e["../config-provider"],e["../directives"],e["../icon"],e["../popover"]);for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(self,((e,t,n,r,i,a)=>(()=>{var o={7162:(e,t,n)=>{e.exports=n(5047)},5047:e=>{var t=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function s(e,t,n,r){var i=t&&t.prototype instanceof m?t:m,a=Object.create(i.prototype),o=new I(r||[]);return a._invoke=function(e,t,n){var r=d;return function(i,a){if(r===h)throw new Error("Generator is already running");if(r===f){if("throw"===i)throw a;return V()}for(n.method=i,n.arg=a;;){var o=n.delegate;if(o){var l=S(o,n);if(l){if(l===p)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===d)throw r=f,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=h;var u=c(e,t,n);if("normal"===u.type){if(r=n.done?f:v,u.arg===p)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=f,n.method="throw",n.arg=u.arg)}}}(e,n,o),a}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var d="suspendedStart",v="suspendedYield",h="executing",f="completed",p={};function m(){}function g(){}function _(){}var y={};u(y,a,(function(){return this}));var w=Object.getPrototypeOf,b=w&&w(w(N([])));b&&b!==n&&r.call(b,a)&&(y=b);var x=_.prototype=m.prototype=Object.create(y);function k(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function n(i,a,o,l){var u=c(e[i],e,a);if("throw"!==u.type){var s=u.arg,d=s.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,o,l)}),(function(e){n("throw",e,o,l)})):t.resolve(d).then((function(e){s.value=e,o(s)}),(function(e){return n("throw",e,o,l)}))}l(u.arg)}var i;this._invoke=function(e,r){function a(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(a,a):a()}}function S(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,S(e,n),"throw"===n.method))return p;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var i=c(r,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,p;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,p):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,p)}function L(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(L,this),this.reset(!0)}function N(e){if(e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}return{next:V}}function V(){return{value:t,done:!0}}return g.prototype=_,u(x,"constructor",_),u(_,"constructor",g),g.displayName=u(_,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,u(e,l,"GeneratorFunction")),e.prototype=Object.create(x),e},e.awrap=function(e){return{__await:e}},k(E.prototype),u(E.prototype,o,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,r,i,a){void 0===a&&(a=Promise);var o=new E(s(t,n,r,i),a);return e.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},k(x),u(x,l,"Generator"),u(x,a,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=N,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(C),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return l.type="throw",l.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],l=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var u=r.call(o,"catchLoc"),s=r.call(o,"finallyLoc");if(u&&s){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method="next",this.next=a.finallyLoc,p):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;C(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:N(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),p}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},2717:e=>{"use strict";e.exports=n},4061:e=>{"use strict";e.exports=r},6870:e=>{"use strict";e.exports=i},5537:e=>{"use strict";e.exports=a},4212:t=>{"use strict";t.exports=e},748:e=>{"use strict";e.exports=t}},l={};function u(e){var t=l[e];if(void 0!==t)return t.exports;var n=l[e]={exports:{}};return o[e](n,n.exports,u),n.exports}u.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return u.d(t,{a:t}),t},u.d=(e,t)=>{for(var n in t)u.o(t,n)&&!u.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},u.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),u.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var s={};return(()=>{"use strict";u.r(s),u.d(s,{BkSearchSelect:()=>D,default:()=>A});var e=u(4212);function t(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var n=u(748),r=null,i=null;function a(e,t){void 0===t&&(t={});var n=document.createElement(e);return Object.keys(t).forEach((function(e){n[e]=t[e]})),n}function o(e,t,n){return(window.getComputedStyle(e,n||null)||{display:"none"})[t]}function l(e){if(!document.documentElement.contains(e))return{detached:!0,rendered:!1};for(var t=e;t!==document;){if("none"===o(t,"display"))return{detached:!1,rendered:!1};t=t.parentNode}return{detached:!1,rendered:!0}}var c=0,d=null;function v(e,t){if(e.__resize_mutation_handler__||(e.__resize_mutation_handler__=h.bind(e)),!e.__resize_listeners__)if(e.__resize_listeners__=[],window.ResizeObserver){var n=e.offsetWidth,r=e.offsetHeight,i=new ResizeObserver((function(){(e.__resize_observer_triggered__||(e.__resize_observer_triggered__=!0,e.offsetWidth!==n||e.offsetHeight!==r))&&p(e)})),u=l(e),s=u.detached,v=u.rendered;e.__resize_observer_triggered__=!1===s&&!1===v,e.__resize_observer__=i,i.observe(e)}else if(e.attachEvent&&e.addEventListener)e.__resize_legacy_resize_handler__=function(){p(e)},e.attachEvent("onresize",e.__resize_legacy_resize_handler__),document.addEventListener("DOMSubtreeModified",e.__resize_mutation_handler__);else if(c||(d=function(e){var t=document.createElement("style");return t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e)),(document.querySelector("head")||document.body).appendChild(t),t}('.resize-triggers{visibility:hidden;opacity:0;pointer-events:none}.resize-contract-trigger,.resize-contract-trigger:before,.resize-expand-trigger,.resize-triggers{content:"";position:absolute;top:0;left:0;height:100%;width:100%;overflow:hidden}.resize-contract-trigger,.resize-expand-trigger{background:#eee;overflow:auto}.resize-contract-trigger:before{width:200%;height:200%}')),function(e){var t=o(e,"position");t&&"static"!==t||(e.style.position="relative"),e.__resize_old_position__=t,e.__resize_last__={};var n=a("div",{className:"resize-triggers"}),r=a("div",{className:"resize-expand-trigger"}),i=a("div"),l=a("div",{className:"resize-contract-trigger"});r.appendChild(i),n.appendChild(r),n.appendChild(l),e.appendChild(n),e.__resize_triggers__={triggers:n,expand:r,expandChild:i,contract:l},m(e),e.addEventListener("scroll",f,!0),e.__resize_last__={width:e.offsetWidth,height:e.offsetHeight}}(e),e.__resize_rendered__=l(e).rendered,window.MutationObserver){var g=new MutationObserver(e.__resize_mutation_handler__);g.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0}),e.__resize_mutation_observer__=g}e.__resize_listeners__.push(t),c++}function h(){var e=l(this),t=e.rendered,n=e.detached;t!==this.__resize_rendered__&&(!n&&this.__resize_triggers__&&(m(this),this.addEventListener("scroll",f,!0)),this.__resize_rendered__=t,p(this))}function f(){var e,t,n=this;m(this),this.__resize_raf__&&(e=this.__resize_raf__,i||(i=(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||function(e){clearTimeout(e)}).bind(window)),i(e)),this.__resize_raf__=(t=function(){var e,t,r,i,a,o,l=(r=(t=(e=n).__resize_last__).width,i=t.height,a=e.offsetWidth,o=e.offsetHeight,a!==r||o!==i?{width:a,height:o}:null);l&&(n.__resize_last__=l,p(n))},r||(r=(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){return setTimeout(e,16)}).bind(window)),r(t))}function p(e){e&&e.__resize_listeners__&&e.__resize_listeners__.forEach((function(t){t.call(e,e)}))}function m(e){var t=e.__resize_triggers__,n=t.expand,r=t.expandChild,i=t.contract,a=i.scrollWidth,o=i.scrollHeight,l=n.offsetWidth,u=n.offsetHeight,s=n.scrollWidth,c=n.scrollHeight;i.scrollLeft=a,i.scrollTop=o,r.style.width=l+1+"px",r.style.height=u+1+"px",n.scrollLeft=s,n.scrollTop=c}var g=u(2717),_=u(4061),y=u(6870),w=u(7162),b=u.n(w);function x(e,t,n,r){return new(n||(n=Promise))((function(i,a){function o(e){try{u(r.next(e))}catch(e){a(e)}}function l(e){try{u(r.throw(e))}catch(e){a(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,l)}u((r=r.apply(e,t||[])).next())}))}Object.create,Object.create;var k=u(5537),E=u.n(k);const S=(0,n.defineComponent)({name:"SearchSelectMenu",props:{list:{type:Array},hoverId:String,keyword:{type:String,default:""},multiple:{type:Boolean,default:!1},selected:{type:Array,default:function(){return[]}},conditions:{type:Array},footerBtns:{type:Array,default:function(){return[]}}},emits:["selectItem","selectCondition","footerClick"],setup:function(e,t){var r=t.emit,i=(0,g.useLocale)("searchSelect"),a=(0,g.usePrefix)().resolveClassName,o=(0,n.computed)((function(){return void 0===e.footerBtns||0===e.footerBtns.length?[{id:"confirm",name:i.value.ok},{id:"cancel",name:i.value.cancel,disabled:!1}]:e.footerBtns}));return{handleClick:function(e){r("selectItem",e)},handleClickCondition:function(e){r("selectCondition",e)},handleClickFooterBtn:function(e){r("footerClick",e)},filterList:(0,n.computed)((function(){var t,n;return(null===(t=e.list)||void 0===t?void 0:t.length)?(null===(n=e.keyword)||void 0===n?void 0:n.length)?e.list.filter((function(t){return t.name.toLocaleLowerCase().includes(e.keyword.toLocaleLowerCase())})):e.list:[]})),getSearchNode:function(t){var r;return(null===(r=t.value)||void 0===r?void 0:r.name)?[(0,n.createVNode)("span",{class:"menu-name"},[t.name,(0,n.createTextVNode)(":")]),t.value.name]:function(t){if(!t)return t;var r=e.keyword,i=r.length;if(!(null==r?void 0:r.trim().length)||!t.toLocaleLowerCase().includes(r.toLocaleLowerCase()))return t;var a=[],o=-1;return r=r.replace(/([.*/]{1})/gim,"\\$1"),t.replace(new RegExp("".concat(r),"igm"),(function(e,r){return 0===a.length&&0!==r?a.push(t.slice(0,r)):o>=0&&a.push(t.slice(o+e.length,r)),a.push((0,n.createVNode)("span",{class:"is-keyword"},[e])),o=r,e})),o>=0&&a.push(t.slice(o+i)),a.length?a:t}(t.name)},localFooterBtns:o,resolveClassName:a}},render:function(){var e,t,r,i=this;return(0,n.createVNode)("div",{class:this.resolveClassName("search-select-menu")},[!!(null===(e=this.conditions)||void 0===e?void 0:e.length)&&(0,n.createVNode)("ul",{class:"menu-header"},[this.conditions.map((function(e){return(0,n.createVNode)("li",{key:e.id,class:"menu-header-item ".concat(e.disabled?"is-disabled":""),onClick:function(){return!e.disabled&&i.handleClickCondition(e)}},[e.name])}))]),(0,n.createVNode)("ul",{class:"menu-content"},[null===(t=this.list)||void 0===t?void 0:t.map((function(e){return(0,n.createVNode)("li",{class:"menu-item ".concat(e.disabled?"is-disabled":""," ").concat(i.hoverId!==e.id||e.disabled?"":"is-hover"),key:e.id,id:e.id,tabindex:"-1",onClick:function(){return!e.disabled&&i.handleClick(e)}},[i.$slots.default?i.$slots.default({item:e,list:i.list,multiple:!!i.multiple,hoverId:i.hoverId,getSearchNode:i.getSearchNode}):(0,n.createVNode)(n.Fragment,null,[i.getSearchNode(e),i.multiple&&i.selected.includes(e.id)&&(0,n.createVNode)(y.Done,{class:"is-selected"},null)])])}))]),this.multiple&&(null===(r=this.localFooterBtns)||void 0===r?void 0:r.length)&&(0,n.createVNode)("div",{class:"menu-footer"},[this.localFooterBtns.map((function(e){return(0,n.createVNode)("span",{class:"menu-footer-btn ".concat(e.disabled?"is-disabled":""),key:e.id,onClick:function(){return!e.disabled&&i.handleClickFooterBtn(e)}},[e.name])}))])])}});function L(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function C(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var I;!function(e){e.ALL="all",e.NEEDKEY="need-key"}(I||(I={}));var N,V=Symbol("SEARCH_SLECT_PROVIDER_KEY"),z=function(){return(0,n.inject)(V)};!function(e){e.DEFAULT="default",e.EDIT="edit"}(N||(N={}));var O=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"|";L(this,e),this.searchItem=t,this.type=n,this.splitCode=r,this.values=[],this.id=t.id,this.name=t.name}var t,n;return t=e,(n=[{key:"multiple",get:function(){return!!this.searchItem.multiple}},{key:"placeholder",get:function(){return this.searchItem.placeholder||""}},{key:"children",get:function(){return this.searchItem.children||[]}},{key:"validate",get:function(){return!this.searchItem.noValidate}},{key:"inputInnerHtml",get:function(){var e;return this.isSpecialType()?this.name:"".concat(this.keyInnerHtml).concat((null===(e=this.values)||void 0===e?void 0:e.map((function(e){return e.name})).join(this.splitCode))||"")}},{key:"inputInnerText",get:function(){var e;return this.isSpecialType()?this.name:"".concat(this.keyInnerText).concat((null===(e=this.values)||void 0===e?void 0:e.map((function(e){return e.name})).join(this.splitCode))||"")}},{key:"keyInnerHtml",get:function(){return this.isSpecialType()?this.name:this.name?"".concat(this.name,": "):""}},{key:"keyInnerText",get:function(){return this.isSpecialType()?this.name:this.name?"".concat(this.name,": "):""}},{key:"isSpecialType",value:function(){return["text","condition"].includes(this.type)}},{key:"addValue",value:function(e){if(this.multiple){var t=this.values.findIndex((function(t){return t.id===e.id}));return t>-1?void this.values.splice(t,1):void this.values.push(e)}this.values=[e]}},{key:"toValue",value:function(){var e,t={id:this.id,name:this.name};return(null===(e=this.values)||void 0===e?void 0:e.length)&&(t.values=this.values.map((function(e){return{id:e.id,name:e.name}}))),this.type&&"default"!==this.type&&(t.type=this.type),t}},{key:"toValueKey",value:function(){return JSON.stringify(this.toValue())}},{key:"isInValueList",value:function(e){return this.children.some((function(t){return t.id===(null==e?void 0:e.id)}))}}])&&C(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();const T=(0,n.defineComponent)({name:"SearchSelectInput",directives:{clickoutside:_.clickoutside},props:{data:{type:Array,required:!0},showInputBefore:Boolean,showCondition:Boolean,clickOutside:Function,placeholder:String,conditions:{type:Array,default:function(){return[]}},defautUsingItem:Object,mode:{type:String,default:N.DEFAULT},getMenuList:Function,validateValues:Function,valueBehavior:String},emits:["focus","add","delete"],setup:function(t,r){var i=r.emit,a=r.expose,o=(0,g.useLocale)("searchSelect"),l=(0,g.usePrefix)().resolveClassName,u=(0,n.ref)(null),s=(0,n.ref)(null),c=(0,n.ref)(""),d=(0,n.ref)(!1),v=(0,n.ref)(!1),h=(0,n.ref)(!1),f=(0,n.ref)(t.defautUsingItem),p=(0,n.ref)(""),m=(0,n.ref)(!1),_=(0,e.debounce)(300,M),y=!1,w=(0,n.ref)([]),k=(0,n.ref)([]),E=z(),S=E.editKey,L=E.onValidate,C=E.valueSplitCode;function V(e){switch(e.code){case"ArrowDown":case"ArrowUp":T(e);break;case"Enter":case"NumpadEnter":!function(e){if(y){e.preventDefault();var t=k.value.find((function(e){return e.id===p.value}));t&&B(t)}}(e)}}function T(e){var t;e.preventDefault(),null===(t=u.value)||void 0===t||t.blur();for(var n=k.value.length,r=n,i=k.value.findIndex((function(e){return e.id===p.value}));r>=0;){i=(i="ArrowDown"===e.code?i+1:i-1)>n-1?0:i<0?n-1:i;var a=k.value[i];if(a&&!a.disabled){r=-1;var o=document.getElementById(a.id);return null==o||o.focus(),void(p.value=a.id)}r-=1}}function F(e){q(),e&&M()}function j(e){var n;return x(this,void 0,void 0,b().mark((function r(){var a,o,l,u,s;return b().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return null==e||e.preventDefault(),r.next=3,new Promise((function(e){return setTimeout(e,0)}));case 3:if(f.value){r.next=16;break}if(c.value&&t.valueBehavior!==I.NEEDKEY){r.next=6;break}return r.abrupt("return");case 6:return a={id:c.value,name:c.value},r.next=9,D(a);case 9:if(r.sent){r.next=12;break}return r.abrupt("return");case 12:return i("add",new O(a,"text",C.value)),c.value="",M(),r.abrupt("return");case 16:if(null==(o=f.value.values)?void 0:o.length){r.next=43;break}if(!(null===(n=c.value)||void 0===n?void 0:n.length)){r.next=41;break}if(!c.value.includes(C.value)){r.next=29;break}return l=c.value.split(C.value),r.next=23,D({id:c.value,name:c.value});case 23:if(r.sent){r.next=26;break}return r.abrupt("return");case 26:l.forEach((function(e){return f.value.addValue({id:e,name:e})})),r.next=36;break;case 29:return u={id:c.value,name:c.value},r.next=32,D(u);case 32:if(r.sent){r.next=35;break}return r.abrupt("return");case 35:f.value.addValue(u);case 36:return i("add",f.value),c.value="",f.value=null,q(!0),r.abrupt("return");case 41:return d.value=!0,r.abrupt("return");case 43:if(!c.value){r.next=56;break}return s={id:c.value,name:c.value},r.next=47,D(s);case 47:if(r.sent){r.next=50;break}return r.abrupt("return");case 50:return f.value.addValue(s),i("add",f.value),c.value="",f.value=null,q(!0),r.abrupt("return");case 56:return r.next=58,D();case 58:if(r.sent){r.next=61;break}return r.abrupt("return");case 61:K();case 62:case"end":return r.stop()}}),r)})))}function B(e,n){var r,i,a,o,l;return x(this,void 0,void 0,b().mark((function s(){var d,v;return b().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:if(!(null===(r=e.value)||void 0===r?void 0:r.id)){s.next=8;break}if((t.valueBehavior!==I.NEEDKEY||!e.value)&&t.validateValues){s.next=8;break}return(d=new O(Object.assign(Object.assign({},e),{id:null!==(i=e.realId)&&void 0!==i?i:e.id}),n,C.value)).addValue(e.value),K(d),t.valueBehavior===I.NEEDKEY&&p.value&&q(!0),p.value="",s.abrupt("return");case 8:if(f.value&&(null===(a=null==u?void 0:u.value)||void 0===a?void 0:a.innerText)){s.next=16;break}return f.value=new O(e,n,C.value),c.value="",(v="condition"===n)&&K(),h.value=v||!!f.value.children.length,q(t.valueBehavior===I.NEEDKEY&&!!p.value),s.abrupt("return");case 16:if("condition"!==(null===(o=f.value)||void 0===o?void 0:o.type)){s.next=20;break}return f.value=new O(e,n,C.value),K(),s.abrupt("return");case 20:return f.value.addValue(e),s.next=23,D(e);case 23:if(s.sent){s.next=26;break}return s.abrupt("return");case 26:f.value.multiple||K(),t.valueBehavior===I.NEEDKEY&&(null===(l=f.value)||void 0===l?void 0:l.multiple)&&q();case 28:case"end":return s.stop()}}),s)})))}function D(e){return x(this,void 0,void 0,b().mark((function n(){var r,i,a,o;return b().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(f.value){n.next=4;break}return n.next=3,A(null,[e]);case 3:case 8:return n.abrupt("return",n.sent);case 4:if(r=f.value,i=r.searchItem,a=r.validate,o=r.values,!a||"function"!=typeof t.validateValues){n.next=9;break}return n.next=8,A(i,e?[e]:o);case 9:return L(""),n.abrupt("return",!0);case 11:case"end":return n.stop()}}),n)})))}function A(e,n){var r;return x(this,void 0,void 0,b().mark((function i(){var a;return b().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,null===(r=t.validateValues)||void 0===r?void 0:r.call(t,null!=e?e:null,n).catch((function(){return!1}));case 2:if("string"!=typeof(a=i.sent)&&!1!==a){i.next=6;break}return L(a||"校验错误"),i.abrupt("return",!1);case 6:return L(""),i.abrupt("return",!0);case 8:case"end":return i.stop()}}),i)})))}function q(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];e&&(0,n.nextTick)().then((function(){M()})),v.value=!0,h.value=!0,d.value=!1;var t=setTimeout((function(){if(u.value){u.value.focus();var e=window.getSelection();0===e.focusOffset&&(e.selectAllChildren(u.value),e.collapseToEnd())}window.clearTimeout(t)}),0);i("focus",v.value)}function M(){var n,r,i,a,o;return x(this,void 0,void 0,b().mark((function l(){var u,s;return b().wrap((function(l){for(;;)switch(l.prev=l.next){case 0:if(u=[],"function"!=typeof t.getMenuList||void 0!==(null===(r=null===(n=f.value)||void 0===n?void 0:n.searchItem)||void 0===r?void 0:r.async)&&!0!==f.value.searchItem.async){l.next=9;break}return m.value=!0,l.next=5,t.getMenuList(null===(i=f.value)||void 0===i?void 0:i.searchItem,c.value).catch((function(){return[]}));case 5:u=l.sent,m.value=!1,l.next=10;break;case 9:(null==f?void 0:f.value)?"condition"===f.value.type?u=t.conditions:(null===(o=f.value.values)||void 0===o?void 0:o.length)&&!f.value.multiple&&t.mode!==N.EDIT||(u=f.value.children.filter((function(e){return e.name.toLocaleLowerCase().includes(c.value.toLocaleLowerCase())}))):(null===(a=c.value)||void 0===a?void 0:a.length)?t.data.filter((function(e){return!e.isSelected})).forEach((function(t){var n,r;t.name.toLocaleLowerCase().includes(c.value.toLocaleLowerCase())?(u.push(t),null===(n=t.children)||void 0===n||n.forEach((function(n){u.push(Object.assign(Object.assign({},t),{realId:t.id,id:(0,e.random)(10),value:n}))})),u.push(Object.assign(Object.assign({},t),{realId:t.id,id:(0,e.random)(10),value:{id:c.value,name:c.value}}))):(null===(r=t.children)||void 0===r||r.forEach((function(n){n.name.toLocaleLowerCase().includes(c.value.toLocaleLowerCase())&&u.push(Object.assign(Object.assign({},t),{realId:t.id,id:(0,e.random)(10),value:n}))})),u.push(Object.assign(Object.assign({},t),{value:{id:c.value,name:c.value}})))})):u=t.data.filter((function(e){return!e.isSelected})).slice();case 10:k.value=u,t.valueBehavior===I.NEEDKEY&&(s=u.find((function(e){return!e.disabled})))&&(!p.value||p.value&&!u.some((function(e){return e.id===p.value})))&&(p.value=s.id);case 12:case"end":return l.stop()}}),l)})))}function K(e){i("add",null!=e?e:f.value),f.value=null,c.value="",q(t.valueBehavior===I.NEEDKEY)}function H(){var e=u.value.innerText;"\n"===e[e.length-1]||"\r"===e[0]?(R(e.slice(0,-1)),H()):"\n"!==e[0]&&"\r"!==e[0]||(R(e.slice(1)),H())}function R(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";u.value&&(u.value.innerHTML=t||(null===(e=f.value)||void 0===e?void 0:e.inputInnerHtml)||"")}return(0,n.watch)(S,(function(){t.mode===N.DEFAULT&&S.value&&(h.value=!1)})),(0,n.watchEffect)((function(){c.value||R()}),{flush:"pre"}),(0,n.watch)([k,h],(function(){var e;(null===(e=k.value)||void 0===e?void 0:e.some((function(e){return!e.disabled})))&&h.value?y||(t.valueBehavior===I.NEEDKEY?p.value=k.value.find((function(e){return!e.disabled})).id:p.value="",y=!0,document.addEventListener("keydown",V)):(document.removeEventListener("keydown",V),y=!1,t.valueBehavior!==I.NEEDKEY&&(p.value=""))})),a({handleInputFocus:F,isFocus:v}),{popoverRef:s,inputRef:u,keyword:c,loading:m,remoteMenuList:w,menuList:k,menuHoverId:p,isFocus:v,usingItem:f,showPopover:h,showNoSelectValueError:d,debounceSetMenuList:_,documentArrowEvent:T,handleClickOutside:function(e){var n,r;!(null===(n=s.value)||void 0===n?void 0:n.contains(e.target))&&(null===(r=t.clickOutside)||void 0===r?void 0:r.call(t,e.target,s.value))&&(h.value=!1,v.value=!1,i("focus",v.value))},handleInputFocus:F,handleInputChange:function(e){var t,n,r,i,a,o,l,s,d;H();var v=e.target.innerText;if(/(\r|\n)/gm.test(v)||/\s{2}/gm.test(v))e.preventDefault(),v=v.replace(/(\r|\n)/gm,C.value).replace(/\s{2}/gm,""),u.value.innerText=v,q(),c.value=v.replace((null===(t=f.value)||void 0===t?void 0:t.keyInnerText)||"","").trim(),_();else if(!c.value&&v.length<((null===(r=null===(n=f.value)||void 0===n?void 0:n.inputInnerText)||void 0===r?void 0:r.length)||1)){var h=v.replace(" "," ").replace((null===(i=f.value)||void 0===i?void 0:i.keyInnerText.replace(" "," ").trim())||"","").trim();if(v&&(null===(a=f.value)||void 0===a?void 0:a.keyInnerText)&&v.replace(" "," ").includes(f.value.keyInnerText.replace(" "," ").trim())&&h&&(null===(o=f.value.values)||void 0===o?void 0:o.length))return c.value=h,console.info("outerText",h),void _();!h&&(null==v?void 0:v.length)||(f.value=null),c.value=h?v:"",_()}else(null===(s=null===(l=f.value)||void 0===l?void 0:l.values)||void 0===s?void 0:s.length)||(c.value=v.replace(" "," ").replace((null===(d=f.value)||void 0===d?void 0:d.keyInnerText.replace(" "," "))||"","").trim(),q(),_())},handleInputKeyup:function(e){switch(e.code){case"Enter":case"NumpadEnter":if(t.valueBehavior===I.NEEDKEY&&k.value.some((function(e){return e.id===p.value})))return;j(e);break;case"Backspace":!function(){var e,r;if(!f.value&&!c.value)return i("delete"),void(0,n.nextTick)(M);if(null===(e=f.value)||void 0===e?void 0:e.values.length){if((null===(r=f.value)||void 0===r?void 0:r.multiple)||f.value.isInValueList(f.value.values[0])||t.mode===N.EDIT&&!c.value)return f.value.values.splice(-1,1),c.value="",void q()}else c.value||(f.value=null,c.value="",M());L("")}();default:d.value=!1}},handleSelectItem:B,handleSelectCondtionItem:function(e){B(e,"condition")},handleMenuFooterClick:function(e){switch(e.id){case"confirm":j();break;case"cancel":f.value.values=[],h.value=!1}},resolveClassName:l,t:o}},render:function(){var e,t,r=this,i=this.usingItem||{},a=i.multiple,o=i.values,l=i.placeholder,u=i.inputInnerHtml,s=!(null===(e=this.keyword)||void 0===e?void 0:e.length)&&!(null==o?void 0:o.length)&&l,c=this.loading||this.showNoSelectValueError||this.showPopover&&!!(null===(t=this.menuList)||void 0===t?void 0:t.length),d=!this.usingItem&&this.showCondition,v=Object.assign({},this.$slots.menu?{default:function(e){var t,n;return null===(n=(t=r.$slots).menu)||void 0===n?void 0:n.call(t,e)}}:{});return(0,n.createVNode)(E(),{trigger:"manual",theme:"light",placement:"bottom-start",arrow:!1,disableOutsideClick:!0,isShow:c},{default:function(){var e;return(0,n.withDirectives)((0,n.createVNode)("div",{ref:"inputRef",class:{"div-input":!0,"input-before":r.showInputBefore&&!(null===(e=r.keyword)||void 0===e?void 0:e.length),"input-after":s},contenteditable:!0,"data-placeholder":u||r.keyword?"":r.placeholder,"data-tips":l||"",spellcheck:"false",onFocus:r.handleInputFocus,onInput:r.handleInputChange,onKeydown:r.handleInputKeyup},null),[[(0,n.resolveDirective)("clickoutside"),r.handleClickOutside]])},content:function(){var e;return r.loading?(0,n.createVNode)("div",null,[r.t.loading]):r.showNoSelectValueError?(0,n.createVNode)("div",null,[r.t.filterQueryMustHasValue]):(null===(e=r.menuList)||void 0===e?void 0:e.length)?(0,n.createVNode)("div",{ref:"popoverRef",class:r.resolveClassName("search-select-popover")},[(0,n.createVNode)(S,{list:r.menuList,keyword:r.keyword,multiple:!!a,hoverId:r.menuHoverId,selected:(null==o?void 0:o.map((function(e){return e.id})))||[],conditions:d?r.conditions:[],onSelectItem:r.handleSelectItem,onSelectCondition:r.handleSelectCondtionItem,onFooterClick:r.handleMenuFooterClick},Object.assign({},v))]):void 0}})}}),F=(0,n.defineComponent)({name:"SearchSelected",props:{data:{type:Array,required:!0},selectedList:{type:Array,required:!0},overflowIndex:{type:Number,default:-1},conditions:{type:Array,default:function(){return[]}},getMenuList:Function,validateValues:Function,valueBehavior:String},emits:["delete"],setup:function(e,t){var r=t.emit,i=(0,n.ref)(null),a=z(),o=a.onEditClick,l=a.onEditEnter,u=a.onEditBlur,s=a.editKey,c=a.valueSplitCode;return{inputRef:i,editKey:s,copySeletedItem:function(e){var t=new O(e.searchItem,e.type,c.value);return t.values=e.values.slice(),t},handleDeleteSelected:function(e){r("delete",e)},handleEditSeleted:function(e,t,n){e.preventDefault(),e.stopPropagation(),o(t,n),setTimeout((function(){return i.value.handleInputFocus()}),200)},handleInputOutside:function(){return!0},handleAddSelected:function(e,t){l(e,t)},handleInputFocus:function(e){e||u()}}},render:function(){var e=this,t=function(t,r){return e.editKey==="".concat(t.id,"_").concat(r)?(0,n.createVNode)("div",{class:"selected-input",key:e.editKey.toString()},[(0,n.createVNode)(T,{ref:"inputRef",key:e.editKey.toString(),mode:N.EDIT,data:e.data,showCondition:!1,conditions:e.conditions,defautUsingItem:e.copySeletedItem(t),clickOutside:e.handleInputOutside,getMenuList:e.getMenuList,validateValues:e.validateValues,valueBehavior:e.valueBehavior,onAdd:function(t){return e.handleAddSelected(t,r)},onFocus:e.handleInputFocus},null)]):(0,n.createVNode)("li",{class:"search-container-selected ".concat((e.overflowIndex>=0?r<e.overflowIndex:r>=0)?"":"hidden-selected"),key:"".concat(t.id,"_").concat(r)},[(0,n.createVNode)("span",{class:"selected-name",onClick:function(n){return e.handleEditSeleted(n,t,r)}},[t.inputInnerText]),(0,n.createVNode)(y.Error,{class:"selected-clear",onClick:function(){return e.handleDeleteSelected(r)}},null)])};return(0,n.createVNode)(n.Fragment,null,[this.selectedList.map((function(r,i){return[e.overflowIndex>=0&&i===e.overflowIndex&&(0,n.createVNode)("div",{class:"search-container-selected overflow-selected"},[(0,n.createTextVNode)("+"),e.selectedList.length-e.overflowIndex]),t(r,i)]}))])}});var j={data:{type:Array,default:function(){return[]}},modelValue:{type:Array,default:function(){return[]}},shrink:{type:Boolean,default:!0},maxHeight:{type:Number,default:120},minHeight:{type:Number,default:26},conditions:{type:Array,default:function(){return[]}},clearable:{type:Boolean,default:!0},placeholder:String,getMenuList:Function,validateValues:Function,valueSplitCode:{type:String,default:"|"},uniqueSelect:{type:Boolean,default:!1},valueBehavior:{type:String,default:I.ALL,validator:function(e){return[I.ALL,I.NEEDKEY].includes(e)}}};const B=(0,n.defineComponent)({name:"SearchSelect",directives:{clickoutside:_.clickoutside},props:j,emits:["update:modelValue","search"],setup:function(t,r){var i,a=r.emit,o=(0,g.useLocale)("searchSelect"),l=(0,g.usePrefix)().resolveClassName,u=(0,n.computed)((function(){return void 0===t.conditions?[{id:"or",name:o.value.or},{id:"and",name:o.value.and}]:t.conditions})),s=(0,n.ref)(null),h=(0,n.ref)(null),p=(0,n.ref)(!1),m=(0,n.ref)([]),_=(0,n.ref)(-1),y=(0,e.debounce)(32,C),w=(0,n.ref)(""),b=(0,n.ref)(""),x=(0,n.computed)((function(){return t.valueSplitCode})),k=(0,n.shallowRef)([]);function E(e,t){w.value="".concat(e.id,"_").concat(t)}function S(e,t){var n=m.value.slice();n.splice(t,1,e),a("update:modelValue",n.map((function(e){return e.toValue()}))),w.value=""}function L(e){b.value=e||""}function C(){if(p.value||m.value.length<1)_.value=-1;else{for(var e=h.value.querySelector(".".concat(l("search-select-container"))),n=h.value.querySelector(".search-container").clientWidth-6-2,r=e.querySelectorAll(".search-container-selected:not(.overflow-selected)"),i=0,a=0,o=0;0===a&&i<=n-40&&o<=r.length-1;){var u=r[o];if(u.clientHeight>t.minHeight)return void(_.value=o);(i+=u?u.clientWidth+6:0)>=n-40&&(a=o),o+=1}a===r.length-1&&i<=n?_.value=-1:_.value=i>=n-40?a:a-1}}return(0,n.watch)((function(){return t.data}),(function(){var e;k.value=JSON.parse(JSON.stringify(t.data)),null===(e=k.value)||void 0===e||e.forEach((function(e){e.isSelected=t.uniqueSelect&&!!t.modelValue.some((function(t){return t.id===e.id}))}))}),{immediate:!0}),(0,n.watch)((function(){return t.modelValue}),(function(e){var n,r;if(!(null==e?void 0:e.length))return m.value=[],void(null===(n=k.value)||void 0===n||n.forEach((function(e){e.isSelected=!1})));var i=[];e.forEach((function(e){var n,r=m.value.find((function(t){return t.id===e.id&&t.name===e.name}));if((null==r?void 0:r.toValueKey())===JSON.stringify(e))r.values=e.values||[],i.push(r);else{var a=t.data.find((function(t){return t.id===e.id})),o="default";a||(a=t.conditions.find((function(t){return t.id===e.id})))&&(o="condition"),a||(null===(n=e.values)||void 0===n?void 0:n.length)||(o="text");var l=new O(a||e,o,x.value);l.values=e.values||[],i.push(l)}})),m.value=i,null===(r=k.value)||void 0===r||r.forEach((function(e){e.isSelected=t.uniqueSelect&&!!i.some((function(t){return t.id===e.id}))}))}),{immediate:!0,deep:!0}),(0,n.onMounted)((function(){v(h.value.querySelector(".".concat(l("search-select-container"))),y)})),(0,n.onBeforeUnmount)((function(){!function(e,t){var n=e.__resize_listeners__;if(n){if(t&&n.splice(n.indexOf(t),1),!n.length||!t){if(e.detachEvent&&e.removeEventListener)return e.detachEvent("onresize",e.__resize_legacy_resize_handler__),void document.removeEventListener("DOMSubtreeModified",e.__resize_mutation_handler__);e.__resize_observer__?(e.__resize_observer__.unobserve(e),e.__resize_observer__.disconnect(),e.__resize_observer__=null):(e.__resize_mutation_observer__&&(e.__resize_mutation_observer__.disconnect(),e.__resize_mutation_observer__=null),e.removeEventListener("scroll",f),e.removeChild(e.__resize_triggers__.triggers),e.__resize_triggers__=null),e.__resize_listeners__=null}!--c&&d&&d.parentNode.removeChild(d)}}(h.value.querySelector(".".concat(l("search-select-container"))),y)})),i={onEditClick:E,onEditEnter:S,onEditBlur:function(){w.value="",L("")},onValidate:L,editKey:w,valueSplitCode:x},(0,n.provide)(V,i),{inputRef:s,wrapRef:h,isFocus:p,copyData:k,selectedList:m,overflowIndex:_,validateStr:b,splitCode:x,onEditClick:E,onEditEnter:S,handleWrapClick:function(){w.value||s.value.handleInputFocus()},handleInputFocus:function(e){var t;e&&(_.value=-1),!1===e&&(null===(t=h.value.querySelector(".".concat(l("search-select-container"))))||void 0===t||t.scrollTo(0,0)),p.value=e},handleResize:C,handleClearAll:function(){m.value=[],_.value=-1,a("update:modelValue",[])},handleInputOutside:function(e){var t;return!(null===(t=h.value)||void 0===t?void 0:t.contains(e))},handleAddSelected:function(e){var t=m.value.slice();t.push(e),L(""),a("update:modelValue",t.map((function(e){return e.toValue()})))},handleDeleteSelected:function(e){var t=m.value.slice();t.splice("number"==typeof e?e:m.value.length-1,1),L(""),a("update:modelValue",t.map((function(e){return e.toValue()})))},handleClickSearch:function(e){a("search",e)},localConditions:u,resolveClassName:l,t:o}},render:function(){var e,r,i,a=this,o="".concat(!this.shrink||this.isFocus?this.maxHeight:this.minHeight,"px"),l=!!this.selectedList.length&&"condition"!==this.selectedList.slice(-1)[0].type,u=Object.assign({},this.$slots.menu?{menu:function(e){var t,n;return null===(n=(t=a.$slots).menu)||void 0===n?void 0:n.call(t,e)}}:{});return(0,n.createVNode)("div",{class:this.resolveClassName("search-select"),ref:"wrapRef"},[(0,n.createVNode)("div",{class:(e={},t(e,this.resolveClassName("search-select-container"),!0),t(e,"is-focus",this.isFocus),e),onClick:this.handleWrapClick},[(0,n.createVNode)("div",{class:"search-prefix"},[null===(i=(r=this.$slots).prepend)||void 0===i?void 0:i.call(r)]),(0,n.createVNode)("div",{class:"search-container",style:{maxHeight:o}},[(0,n.createVNode)(F,{data:this.copyData,conditions:this.localConditions,selectedList:this.selectedList,overflowIndex:this.overflowIndex,getMenuList:this.getMenuList,validateValues:this.validateValues,valueBehavior:this.valueBehavior,onDelete:this.handleDeleteSelected},Object.assign({},u)),(0,n.createVNode)("div",{class:"search-container-input"},[(0,n.createVNode)(T,{ref:"inputRef",data:this.copyData,showInputBefore:!this.selectedList.length,showCondition:l,conditions:this.localConditions,placeholder:this.placeholder||this.t.pleaseSelect,clickOutside:this.handleInputOutside,getMenuList:this.getMenuList,validateValues:this.validateValues,valueBehavior:this.valueBehavior,onAdd:this.handleAddSelected,onDelete:this.handleDeleteSelected,onFocus:this.handleInputFocus},Object.assign({},u))])]),(0,n.createVNode)("div",{class:"search-nextfix"},[this.clearable&&!!this.selectedList.length&&(0,n.createVNode)(y.Close,{class:"search-clear",onClick:this.handleClearAll},null),this.$slots.append?this.$slots.append():(0,n.createVNode)(y.Search,{onClick:this.handleClickSearch,class:"search-nextfix-icon ".concat(this.isFocus?"is-focus":"")},null)])]),!!this.validateStr.length&&(0,n.createVNode)("div",{class:this.resolveClassName("search-select-tips")},[this.$slots.validate?this.$slots.validate():(0,n.createVNode)(n.Fragment,null,[(0,n.createVNode)(y.ExclamationCircleShape,{class:"select-tips"},null),this.validateStr||""])])])}});var D=(0,e.withInstall)(B);const A=D})(),s})()));
@@ -181,6 +181,7 @@ declare const BkSearchSelect: {
181
181
  handleSelectItem: (item: import("./utils").ICommonItem, type?: import("./utils").SearchItemType) => Promise<void>;
182
182
  handleSelectCondtionItem: (item: import("./utils").ICommonItem) => void;
183
183
  handleMenuFooterClick: (item: import("./utils").IMenuFooterItem) => void;
184
+ resolveClassName: (cls: string) => string;
184
185
  t: import("vue").ComputedRef<{
185
186
  pleaseSelect: string;
186
187
  loading: string;
@@ -319,6 +320,7 @@ declare const BkSearchSelect: {
319
320
  handleDeleteSelected: (index?: number) => void;
320
321
  handleClickSearch: (e: MouseEvent) => void;
321
322
  localConditions: import("vue").ComputedRef<import("./utils").ICommonItem[]>;
323
+ resolveClassName: (cls: string) => string;
322
324
  t: import("vue").ComputedRef<{
323
325
  pleaseSelect: string;
324
326
  loading: string;
@@ -465,6 +467,7 @@ declare const BkSearchSelect: {
465
467
  handleSelectItem: (item: import("./utils").ICommonItem, type?: import("./utils").SearchItemType) => Promise<void>;
466
468
  handleSelectCondtionItem: (item: import("./utils").ICommonItem) => void;
467
469
  handleMenuFooterClick: (item: import("./utils").IMenuFooterItem) => void;
470
+ resolveClassName: (cls: string) => string;
468
471
  t: import("vue").ComputedRef<{
469
472
  pleaseSelect: string;
470
473
  loading: string;
@@ -603,6 +606,7 @@ declare const BkSearchSelect: {
603
606
  handleDeleteSelected: (index?: number) => void;
604
607
  handleClickSearch: (e: MouseEvent) => void;
605
608
  localConditions: import("vue").ComputedRef<import("./utils").ICommonItem[]>;
609
+ resolveClassName: (cls: string) => string;
606
610
  t: import("vue").ComputedRef<{
607
611
  pleaseSelect: string;
608
612
  loading: string;
@@ -722,6 +726,7 @@ declare const BkSearchSelect: {
722
726
  handleSelectItem: (item: import("./utils").ICommonItem, type?: import("./utils").SearchItemType) => Promise<void>;
723
727
  handleSelectCondtionItem: (item: import("./utils").ICommonItem) => void;
724
728
  handleMenuFooterClick: (item: import("./utils").IMenuFooterItem) => void;
729
+ resolveClassName: (cls: string) => string;
725
730
  t: import("vue").ComputedRef<{
726
731
  pleaseSelect: string;
727
732
  loading: string;
@@ -860,6 +865,7 @@ declare const BkSearchSelect: {
860
865
  handleDeleteSelected: (index?: number) => void;
861
866
  handleClickSearch: (e: MouseEvent) => void;
862
867
  localConditions: import("vue").ComputedRef<import("./utils").ICommonItem[]>;
868
+ resolveClassName: (cls: string) => string;
863
869
  t: import("vue").ComputedRef<{
864
870
  pleaseSelect: string;
865
871
  loading: string;
@@ -57,6 +57,7 @@ declare const _default: import("vue").DefineComponent<{
57
57
  handleSelectItem: (item: ICommonItem, type?: SearchItemType) => Promise<void>;
58
58
  handleSelectCondtionItem: (item: ICommonItem) => void;
59
59
  handleMenuFooterClick: (item: IMenuFooterItem) => void;
60
+ resolveClassName: (cls: string) => string;
60
61
  t: import("vue").ComputedRef<{
61
62
  pleaseSelect: string;
62
63
  loading: string;
@@ -39,6 +39,7 @@ declare const _default: import("vue").DefineComponent<{
39
39
  name: string;
40
40
  disabled: boolean;
41
41
  })[]>;
42
+ resolveClassName: (cls: string) => string;
42
43
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("selectItem" | "selectCondition" | "footerClick")[], "selectItem" | "selectCondition" | "footerClick", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
43
44
  list: {
44
45
  type: PropType<ICommonItem[]>;
@@ -149,6 +149,7 @@ declare const _default: import("vue").DefineComponent<{
149
149
  handleSelectItem: (item: ICommonItem, type?: SearchItemType) => Promise<void>;
150
150
  handleSelectCondtionItem: (item: ICommonItem) => void;
151
151
  handleMenuFooterClick: (item: import("./utils").IMenuFooterItem) => void;
152
+ resolveClassName: (cls: string) => string;
152
153
  t: import("vue").ComputedRef<{
153
154
  pleaseSelect: string;
154
155
  loading: string;
@@ -287,6 +288,7 @@ declare const _default: import("vue").DefineComponent<{
287
288
  handleDeleteSelected: (index?: number) => void;
288
289
  handleClickSearch: (e: MouseEvent) => void;
289
290
  localConditions: import("vue").ComputedRef<ICommonItem[]>;
291
+ resolveClassName: (cls: string) => string;
290
292
  t: import("vue").ComputedRef<{
291
293
  pleaseSelect: string;
292
294
  loading: string;
@@ -78,6 +78,7 @@ declare const _default: import("vue").DefineComponent<{
78
78
  handleSelectItem: (item: ICommonItem, type?: import("./utils").SearchItemType) => Promise<void>;
79
79
  handleSelectCondtionItem: (item: ICommonItem) => void;
80
80
  handleMenuFooterClick: (item: import("./utils").IMenuFooterItem) => void;
81
+ resolveClassName: (cls: string) => string;
81
82
  t: import("vue").ComputedRef<{
82
83
  pleaseSelect: string;
83
84
  loading: string;
@@ -5,6 +5,7 @@ declare const BkSelect: {
5
5
  $: import("vue").ComponentInternalInstance;
6
6
  $data: {};
7
7
  $props: Partial<{
8
+ prefix: string;
8
9
  tagTheme: "success" | "info" | "warning" | "danger";
9
10
  behavior: "simplicity" | "normal";
10
11
  disabled: boolean;
@@ -13,7 +14,6 @@ declare const BkSelect: {
13
14
  list: unknown[];
14
15
  showOnInit: boolean;
15
16
  placeholder: string;
16
- prefix: string;
17
17
  loading: boolean;
18
18
  scrollHeight: number;
19
19
  clearable: boolean;
@@ -325,7 +325,7 @@ declare const BkSelect: {
325
325
  "onUpdate:modelValue"?: (...args: any[]) => any;
326
326
  onToggle?: (...args: any[]) => any;
327
327
  "onScroll-end"?: (...args: any[]) => any;
328
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "tagTheme" | "behavior" | "disabled" | "size" | "multiple" | "list" | "showOnInit" | "placeholder" | "prefix" | "loading" | "scrollHeight" | "clearable" | "withValidate" | "noDataText" | "showSelectedIcon" | "filterable" | "allowCreate" | "collapseTags" | "popoverMinWidth" | "displayKey" | "idKey" | "remoteMethod" | "showSelectAll" | "multipleMode" | "autoHeight" | "noMatchText" | "loadingText" | "searchPlaceholder" | "selectAllText" | "scrollLoading" | "customContent" | "inputSearch" | "enableVirtualRender" | "allowEmptyValues" | "autoFocus" | "keepSearchValue">;
328
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "prefix" | "tagTheme" | "behavior" | "disabled" | "size" | "multiple" | "list" | "showOnInit" | "placeholder" | "loading" | "scrollHeight" | "clearable" | "withValidate" | "noDataText" | "showSelectedIcon" | "filterable" | "allowCreate" | "collapseTags" | "popoverMinWidth" | "displayKey" | "idKey" | "remoteMethod" | "showSelectAll" | "multipleMode" | "autoHeight" | "noMatchText" | "loadingText" | "searchPlaceholder" | "selectAllText" | "scrollLoading" | "customContent" | "inputSearch" | "enableVirtualRender" | "allowEmptyValues" | "autoFocus" | "keepSearchValue">;
329
329
  $attrs: {
330
330
  [x: string]: unknown;
331
331
  };
@@ -986,6 +986,7 @@ declare const BkSelect: {
986
986
  localSearchPlaceholder: import("vue").ComputedRef<string>;
987
987
  localSelectAllText: import("vue").ComputedRef<string>;
988
988
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("blur" | "change" | "focus" | "toggle" | "clear" | "update:modelValue" | "scroll-end")[], string, {
989
+ prefix: string;
989
990
  tagTheme: "success" | "info" | "warning" | "danger";
990
991
  behavior: "simplicity" | "normal";
991
992
  disabled: boolean;
@@ -994,7 +995,6 @@ declare const BkSelect: {
994
995
  list: unknown[];
995
996
  showOnInit: boolean;
996
997
  placeholder: string;
997
- prefix: string;
998
998
  loading: boolean;
999
999
  scrollHeight: number;
1000
1000
  clearable: boolean;
@@ -2339,6 +2339,7 @@ declare const BkSelect: {
2339
2339
  localSearchPlaceholder: import("vue").ComputedRef<string>;
2340
2340
  localSelectAllText: import("vue").ComputedRef<string>;
2341
2341
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("blur" | "change" | "focus" | "toggle" | "clear" | "update:modelValue" | "scroll-end")[], "blur" | "change" | "focus" | "toggle" | "clear" | "update:modelValue" | "scroll-end", {
2342
+ prefix: string;
2342
2343
  tagTheme: "success" | "info" | "warning" | "danger";
2343
2344
  behavior: "simplicity" | "normal";
2344
2345
  disabled: boolean;
@@ -2347,7 +2348,6 @@ declare const BkSelect: {
2347
2348
  list: unknown[];
2348
2349
  showOnInit: boolean;
2349
2350
  placeholder: string;
2350
- prefix: string;
2351
2351
  loading: boolean;
2352
2352
  scrollHeight: number;
2353
2353
  clearable: boolean;
@@ -1,4 +1,4 @@
1
- import Popover from '../popover';
1
+ import Popover from '@bkui-vue/popover';
2
2
  import Option from './option';
3
3
  import Group from './optionGroup';
4
4
  import SelectTagInput from './selectTagInput';