@sugarat/easypicker2-client 2.5.0 → 2.6.0

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 (142) hide show
  1. package/dist/assets/{data-analysis-13490516.js → data-analysis-3ce8c1c1.js} +2 -2
  2. package/dist/assets/{data-analysis-13490516.js.map → data-analysis-3ce8c1c1.js.map} +1 -1
  3. package/dist/assets/{data-analysis-legacy.f8612e65.js → data-analysis-legacy.985137a1.js} +2 -2
  4. package/dist/assets/{data-board-229a3bf5.js → data-board-fc2c2ec1.js} +2 -2
  5. package/dist/assets/{data-board-229a3bf5.js.map → data-board-fc2c2ec1.js.map} +1 -1
  6. package/dist/assets/{data-board-legacy.a60c4519.js → data-board-legacy.33116f7c.js} +2 -2
  7. package/dist/assets/{el-date-picker-5a3e3d86.js → el-date-picker-b377a533.js} +2 -2
  8. package/dist/assets/{el-date-picker-5a3e3d86.js.map → el-date-picker-b377a533.js.map} +1 -1
  9. package/dist/assets/{el-date-picker-legacy.6d67764b.js → el-date-picker-legacy.127f0787.js} +2 -2
  10. package/dist/assets/{el-dialog-463960e0.js → el-dialog-5b7bce58.js} +2 -2
  11. package/dist/assets/{el-dialog-463960e0.js.map → el-dialog-5b7bce58.js.map} +1 -1
  12. package/dist/assets/{el-dialog-legacy.0bcf48a4.js → el-dialog-legacy.e6ef2c86.js} +2 -2
  13. package/dist/assets/{el-dropdown-item-7c33f4fa.js → el-dropdown-item-e0275106.js} +2 -2
  14. package/dist/assets/{el-dropdown-item-7c33f4fa.js.map → el-dropdown-item-e0275106.js.map} +1 -1
  15. package/dist/assets/{el-dropdown-item-legacy.8625546e.js → el-dropdown-item-legacy.4888d114.js} +2 -2
  16. package/dist/assets/{el-form-item-f40006bf.js → el-form-item-c0658f70.js} +2 -2
  17. package/dist/assets/{el-form-item-f40006bf.js.map → el-form-item-c0658f70.js.map} +1 -1
  18. package/dist/assets/{el-form-item-legacy.d28db5d0.js → el-form-item-legacy.a8e8784e.js} +2 -2
  19. package/dist/assets/{el-loading-5d91bb6c.js → el-loading-c8798044.js} +2 -2
  20. package/dist/assets/{el-loading-5d91bb6c.js.map → el-loading-c8798044.js.map} +1 -1
  21. package/dist/assets/{el-loading-legacy.0f35210f.js → el-loading-legacy.534bd799.js} +2 -2
  22. package/dist/assets/{el-pagination-ffb99240.js → el-pagination-dabcccbb.js} +2 -2
  23. package/dist/assets/{el-pagination-ffb99240.js.map → el-pagination-dabcccbb.js.map} +1 -1
  24. package/dist/assets/{el-pagination-legacy.25b54e8d.js → el-pagination-legacy.7d2ae10d.js} +2 -2
  25. package/dist/assets/{el-progress-2fff98be.js → el-progress-54b274cd.js} +2 -2
  26. package/dist/assets/{el-progress-2fff98be.js.map → el-progress-54b274cd.js.map} +1 -1
  27. package/dist/assets/{el-progress-legacy.db8b5855.js → el-progress-legacy.07ca6502.js} +2 -2
  28. package/dist/assets/{el-select-7d894fd0.js → el-select-f81a7377.js} +2 -2
  29. package/dist/assets/{el-select-7d894fd0.js.map → el-select-f81a7377.js.map} +1 -1
  30. package/dist/assets/{el-select-legacy.ad6ded5a.js → el-select-legacy.94fad7fa.js} +2 -2
  31. package/dist/assets/{el-switch-2eda0412.js → el-switch-9eba6fd0.js} +2 -2
  32. package/dist/assets/{el-switch-2eda0412.js.map → el-switch-9eba6fd0.js.map} +1 -1
  33. package/dist/assets/{el-switch-legacy.e17e7919.js → el-switch-legacy.490534be.js} +2 -2
  34. package/dist/assets/{el-tab-pane-b3156067.js → el-tab-pane-89bdd69b.js} +2 -2
  35. package/dist/assets/{el-tab-pane-b3156067.js.map → el-tab-pane-89bdd69b.js.map} +1 -1
  36. package/dist/assets/{el-tab-pane-legacy.2cf21031.js → el-tab-pane-legacy.cfdbc441.js} +2 -2
  37. package/dist/assets/{el-table-column-22352e92.js → el-table-column-6716308a.js} +2 -2
  38. package/dist/assets/{el-table-column-22352e92.js.map → el-table-column-6716308a.js.map} +1 -1
  39. package/dist/assets/{el-table-column-legacy.fd665e2a.js → el-table-column-legacy.49685e5a.js} +4 -4
  40. package/dist/assets/index-0b0f29ec.js +2 -0
  41. package/dist/assets/index-0b0f29ec.js.map +1 -0
  42. package/dist/assets/index-17c6005d.css +1 -0
  43. package/dist/assets/{index-bc1a6d96.js → index-20019c57.js} +2 -2
  44. package/dist/assets/{index-bc1a6d96.js.map → index-20019c57.js.map} +1 -1
  45. package/dist/assets/index-247f2c67.css +1 -0
  46. package/dist/assets/{index-f298d979.js → index-248e88e2.js} +2 -2
  47. package/dist/assets/{index-f298d979.js.map → index-248e88e2.js.map} +1 -1
  48. package/dist/assets/{index-8eff6b5a.js → index-39637d43.js} +2 -2
  49. package/dist/assets/{index-8eff6b5a.js.map → index-39637d43.js.map} +1 -1
  50. package/dist/assets/{index-c61deab7.js → index-5099f123.js} +2 -2
  51. package/dist/assets/index-5099f123.js.map +1 -0
  52. package/dist/assets/index-57513f17.css +1 -0
  53. package/dist/assets/index-8557974a.js +2 -0
  54. package/dist/assets/index-8557974a.js.map +1 -0
  55. package/dist/assets/{index-82a6b493.css → index-85fcd87a.css} +1 -1
  56. package/dist/assets/index-867d07e4.js +2 -0
  57. package/dist/assets/{index-34bd5929.js.map → index-867d07e4.js.map} +1 -1
  58. package/dist/assets/{index-afb7d164.js → index-8f353d3b.js} +2 -2
  59. package/dist/assets/{index-afb7d164.js.map → index-8f353d3b.js.map} +1 -1
  60. package/dist/assets/index-8f7abc30.js +2 -0
  61. package/dist/assets/index-8f7abc30.js.map +1 -0
  62. package/dist/assets/{index-75b8c91c.js → index-8fbd06a5.js} +2 -2
  63. package/dist/assets/{index-75b8c91c.js.map → index-8fbd06a5.js.map} +1 -1
  64. package/dist/assets/index-a880597c.css +1 -0
  65. package/dist/assets/{index-d32645f3.js → index-acdbf3b6.js} +2 -2
  66. package/dist/assets/{index-d32645f3.js.map → index-acdbf3b6.js.map} +1 -1
  67. package/dist/assets/{index-ca90e8da.js → index-b3e58b02.js} +2 -2
  68. package/dist/assets/{index-ca90e8da.js.map → index-b3e58b02.js.map} +1 -1
  69. package/dist/assets/{index-17fa8fb7.js → index-c13133c5.js} +2 -2
  70. package/dist/assets/{index-17fa8fb7.js.map → index-c13133c5.js.map} +1 -1
  71. package/dist/assets/{index-b3774417.js → index-c1d6836c.js} +2 -2
  72. package/dist/assets/{index-b3774417.js.map → index-c1d6836c.js.map} +1 -1
  73. package/dist/assets/{index-5f3a9ae0.css → index-d26aeed5.css} +1 -1
  74. package/dist/assets/index-d98be3e4.js +19 -0
  75. package/dist/assets/index-d98be3e4.js.map +1 -0
  76. package/dist/assets/{index-f6ffb548.js → index-d9db6cc1.js} +2 -2
  77. package/dist/assets/{index-f6ffb548.js.map → index-d9db6cc1.js.map} +1 -1
  78. package/dist/assets/{index-6f4c911e.js → index-e0ef7135.js} +2 -2
  79. package/dist/assets/{index-6f4c911e.js.map → index-e0ef7135.js.map} +1 -1
  80. package/dist/assets/index-ebf625c9.js +2 -0
  81. package/dist/assets/index-ebf625c9.js.map +1 -0
  82. package/dist/assets/{index-6d7ac779.js → index-eda7d85a.js} +2 -2
  83. package/dist/assets/{index-6d7ac779.js.map → index-eda7d85a.js.map} +1 -1
  84. package/dist/assets/{index-c840d3aa.js → index-fdc557f8.js} +2 -2
  85. package/dist/assets/{index-c840d3aa.js.map → index-fdc557f8.js.map} +1 -1
  86. package/dist/assets/{index-legacy.189f20a8.js → index-legacy.0c570346.js} +2 -2
  87. package/dist/assets/index-legacy.24edddf9.js +2 -0
  88. package/dist/assets/{index-legacy.01d9320a.js → index-legacy.31681402.js} +2 -2
  89. package/dist/assets/{index-legacy.bd5a4368.js → index-legacy.3e6b32cf.js} +2 -2
  90. package/dist/assets/index-legacy.4edc099d.js +2 -0
  91. package/dist/assets/{index-legacy.1f2405e5.js → index-legacy.614df679.js} +2 -2
  92. package/dist/assets/{index-legacy.6c7021b3.js → index-legacy.6420d0ab.js} +2 -2
  93. package/dist/assets/{index-legacy.9f65dcb9.js → index-legacy.679e5ce1.js} +2 -2
  94. package/dist/assets/{index-legacy.9c4986d3.js → index-legacy.7b42e0cb.js} +2 -2
  95. package/dist/assets/index-legacy.7bafa2e6.js +2 -0
  96. package/dist/assets/{index-legacy.4f956884.js → index-legacy.7ff3d773.js} +2 -2
  97. package/dist/assets/{index-legacy.9dc57803.js → index-legacy.84e0eca9.js} +2 -2
  98. package/dist/assets/{index-legacy.d9854cf5.js → index-legacy.9ca64f8c.js} +2 -2
  99. package/dist/assets/{index-legacy.7dae3131.js → index-legacy.a4371211.js} +2 -2
  100. package/dist/assets/index-legacy.acb8b137.js +23 -0
  101. package/dist/assets/index-legacy.bc3790f6.js +2 -0
  102. package/dist/assets/{index-legacy.e6994f0a.js → index-legacy.d0e21cb1.js} +2 -2
  103. package/dist/assets/{index-legacy.08663170.js → index-legacy.daf56c8f.js} +2 -2
  104. package/dist/assets/{index-legacy.1540c5bc.js → index-legacy.e12feae0.js} +2 -2
  105. package/dist/assets/{index-legacy.51740a44.js → index-legacy.e7f8790c.js} +2 -2
  106. package/dist/assets/{isEqual-9c466456.js → isEqual-82bb65ad.js} +2 -2
  107. package/dist/assets/{isEqual-9c466456.js.map → isEqual-82bb65ad.js.map} +1 -1
  108. package/dist/assets/{isEqual-legacy.985bb619.js → isEqual-legacy.dbaa2a6e.js} +2 -2
  109. package/dist/assets/{refresh-6ae903c0.js → refresh-f2c4c532.js} +2 -2
  110. package/dist/assets/{refresh-6ae903c0.js.map → refresh-f2c4c532.js.map} +1 -1
  111. package/dist/assets/{refresh-legacy.8092415a.js → refresh-legacy.0ee83ca1.js} +2 -2
  112. package/dist/assets/{tip-00ddf749.js → tip-3d272885.js} +2 -2
  113. package/dist/assets/{tip-00ddf749.js.map → tip-3d272885.js.map} +1 -1
  114. package/dist/assets/{tip-legacy.6e921091.js → tip-legacy.dee89e85.js} +2 -2
  115. package/dist/assets/validator-d4ea1237.js +2 -0
  116. package/dist/assets/{validator-853854a1.js.map → validator-d4ea1237.js.map} +1 -1
  117. package/dist/assets/validator-legacy.ecd1e5dd.js +2 -0
  118. package/dist/index.html +3 -3
  119. package/package.json +10 -4
  120. package/dist/assets/index-34bd5929.js +0 -2
  121. package/dist/assets/index-34fd4f9f.css +0 -1
  122. package/dist/assets/index-62c7029f.js +0 -15
  123. package/dist/assets/index-62c7029f.js.map +0 -1
  124. package/dist/assets/index-98964915.js +0 -2
  125. package/dist/assets/index-98964915.js.map +0 -1
  126. package/dist/assets/index-b0a4c236.js +0 -2
  127. package/dist/assets/index-b0a4c236.js.map +0 -1
  128. package/dist/assets/index-c3a1cd43.js +0 -2
  129. package/dist/assets/index-c3a1cd43.js.map +0 -1
  130. package/dist/assets/index-c61deab7.js.map +0 -1
  131. package/dist/assets/index-d3ae2239.css +0 -1
  132. package/dist/assets/index-eb08e7b7.css +0 -1
  133. package/dist/assets/index-f31c9ba4.css +0 -1
  134. package/dist/assets/index-f47a54b0.js +0 -2
  135. package/dist/assets/index-f47a54b0.js.map +0 -1
  136. package/dist/assets/index-legacy.45ec3501.js +0 -2
  137. package/dist/assets/index-legacy.5d174bde.js +0 -2
  138. package/dist/assets/index-legacy.978f90e1.js +0 -18
  139. package/dist/assets/index-legacy.d32480a5.js +0 -2
  140. package/dist/assets/index-legacy.e7464d3c.js +0 -2
  141. package/dist/assets/validator-853854a1.js +0 -2
  142. package/dist/assets/validator-legacy.b34dfdfa.js +0 -2
@@ -1 +1 @@
1
- {"version":3,"file":"el-dropdown-item-7c33f4fa.js","sources":["../../node_modules/.pnpm/element-plus@2.2.13_vue@3.3.4/node_modules/element-plus/es/components/collection/src/collection2.mjs","../../node_modules/.pnpm/element-plus@2.2.13_vue@3.3.4/node_modules/element-plus/es/components/collection/src/collection-item.mjs","../../node_modules/.pnpm/element-plus@2.2.13_vue@3.3.4/node_modules/element-plus/es/components/collection/src/collection.mjs","../../node_modules/.pnpm/element-plus@2.2.13_vue@3.3.4/node_modules/element-plus/es/components/roving-focus-group/src/roving-focus-group.mjs","../../node_modules/.pnpm/element-plus@2.2.13_vue@3.3.4/node_modules/element-plus/es/components/roving-focus-group/src/tokens.mjs","../../node_modules/.pnpm/element-plus@2.2.13_vue@3.3.4/node_modules/element-plus/es/components/roving-focus-group/src/utils.mjs","../../node_modules/.pnpm/element-plus@2.2.13_vue@3.3.4/node_modules/element-plus/es/components/roving-focus-group/src/roving-focus-group-impl.mjs","../../node_modules/.pnpm/element-plus@2.2.13_vue@3.3.4/node_modules/element-plus/es/components/roving-focus-group/src/roving-focus-group2.mjs","../../node_modules/.pnpm/element-plus@2.2.13_vue@3.3.4/node_modules/element-plus/es/components/roving-focus-group/src/roving-focus-item.mjs","../../node_modules/.pnpm/element-plus@2.2.13_vue@3.3.4/node_modules/element-plus/es/components/dropdown/src/dropdown.mjs","../../node_modules/.pnpm/element-plus@2.2.13_vue@3.3.4/node_modules/element-plus/es/components/dropdown/src/tokens.mjs","../../node_modules/.pnpm/element-plus@2.2.13_vue@3.3.4/node_modules/element-plus/es/components/dropdown/src/dropdown2.mjs","../../node_modules/.pnpm/element-plus@2.2.13_vue@3.3.4/node_modules/element-plus/es/components/dropdown/src/dropdown-item-impl.mjs","../../node_modules/.pnpm/element-plus@2.2.13_vue@3.3.4/node_modules/element-plus/es/components/dropdown/src/useDropdown.mjs","../../node_modules/.pnpm/element-plus@2.2.13_vue@3.3.4/node_modules/element-plus/es/components/dropdown/src/dropdown-item.mjs","../../node_modules/.pnpm/element-plus@2.2.13_vue@3.3.4/node_modules/element-plus/es/components/dropdown/src/dropdown-menu.mjs","../../node_modules/.pnpm/element-plus@2.2.13_vue@3.3.4/node_modules/element-plus/es/components/dropdown/index.mjs","../../node_modules/.pnpm/@element-plus+icons-vue@1.1.4_vue@3.3.4/node_modules/@element-plus/icons-vue/dist/es/arrow-down.mjs"],"sourcesContent":["import { renderSlot } from 'vue';\nimport _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';\n\nconst _sfc_main = {\n inheritAttrs: false\n};\nfunction _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {\n return renderSlot(_ctx.$slots, \"default\");\n}\nvar Collection = /* @__PURE__ */ _export_sfc(_sfc_main, [[\"render\", _sfc_render], [\"__file\", \"/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection.vue\"]]);\n\nexport { Collection as default };\n//# sourceMappingURL=collection2.mjs.map\n","import { renderSlot } from 'vue';\nimport _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';\n\nconst _sfc_main = {\n name: \"ElCollectionItem\",\n inheritAttrs: false\n};\nfunction _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {\n return renderSlot(_ctx.$slots, \"default\");\n}\nvar CollectionItem = /* @__PURE__ */ _export_sfc(_sfc_main, [[\"render\", _sfc_render], [\"__file\", \"/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection-item.vue\"]]);\n\nexport { CollectionItem as default };\n//# sourceMappingURL=collection-item.mjs.map\n","import { ref, unref, provide, inject, onMounted, onBeforeUnmount } from 'vue';\nimport Collection from './collection2.mjs';\nimport CollectionItem from './collection-item.mjs';\n\nconst COLLECTION_ITEM_SIGN = `data-el-collection-item`;\nconst createCollectionWithScope = (name) => {\n const COLLECTION_NAME = `El${name}Collection`;\n const COLLECTION_ITEM_NAME = `${COLLECTION_NAME}Item`;\n const COLLECTION_INJECTION_KEY = Symbol(COLLECTION_NAME);\n const COLLECTION_ITEM_INJECTION_KEY = Symbol(COLLECTION_ITEM_NAME);\n const ElCollection = {\n ...Collection,\n name: COLLECTION_NAME,\n setup() {\n const collectionRef = ref(null);\n const itemMap = /* @__PURE__ */ new Map();\n const getItems = () => {\n const collectionEl = unref(collectionRef);\n if (!collectionEl)\n return [];\n const orderedNodes = Array.from(collectionEl.querySelectorAll(`[${COLLECTION_ITEM_SIGN}]`));\n const items = [...itemMap.values()];\n return items.sort((a, b) => orderedNodes.indexOf(a.ref) - orderedNodes.indexOf(b.ref));\n };\n provide(COLLECTION_INJECTION_KEY, {\n itemMap,\n getItems,\n collectionRef\n });\n }\n };\n const ElCollectionItem = {\n ...CollectionItem,\n name: COLLECTION_ITEM_NAME,\n setup(_, { attrs }) {\n const collectionItemRef = ref(null);\n const collectionInjection = inject(COLLECTION_INJECTION_KEY, void 0);\n provide(COLLECTION_ITEM_INJECTION_KEY, {\n collectionItemRef\n });\n onMounted(() => {\n const collectionItemEl = unref(collectionItemRef);\n if (collectionItemEl) {\n collectionInjection.itemMap.set(collectionItemEl, {\n ref: collectionItemEl,\n ...attrs\n });\n }\n });\n onBeforeUnmount(() => {\n const collectionItemEl = unref(collectionItemRef);\n collectionInjection.itemMap.delete(collectionItemEl);\n });\n }\n };\n return {\n COLLECTION_INJECTION_KEY,\n COLLECTION_ITEM_INJECTION_KEY,\n ElCollection,\n ElCollectionItem\n };\n};\n\nexport { COLLECTION_ITEM_SIGN, createCollectionWithScope };\n//# sourceMappingURL=collection.mjs.map\n","import '../../../utils/index.mjs';\nimport '../../collection/index.mjs';\nimport { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';\nimport { createCollectionWithScope } from '../../collection/src/collection.mjs';\n\nconst rovingFocusGroupProps = buildProps({\n style: { type: definePropType([String, Array, Object]) },\n currentTabId: {\n type: definePropType(String)\n },\n defaultCurrentTabId: String,\n loop: Boolean,\n dir: {\n type: String,\n values: [\"ltr\", \"rtl\"],\n default: \"ltr\"\n },\n orientation: {\n type: definePropType(String)\n },\n onBlur: Function,\n onFocus: Function,\n onMousedown: Function\n});\nconst {\n ElCollection,\n ElCollectionItem,\n COLLECTION_INJECTION_KEY,\n COLLECTION_ITEM_INJECTION_KEY\n} = createCollectionWithScope(\"RovingFocusGroup\");\n\nexport { ElCollection, ElCollectionItem, COLLECTION_INJECTION_KEY as ROVING_FOCUS_COLLECTION_INJECTION_KEY, COLLECTION_ITEM_INJECTION_KEY as ROVING_FOCUS_ITEM_COLLECTION_INJECTION_KEY, rovingFocusGroupProps };\n//# sourceMappingURL=roving-focus-group.mjs.map\n","const ROVING_FOCUS_GROUP_INJECTION_KEY = Symbol(\"elRovingFocusGroup\");\nconst ROVING_FOCUS_GROUP_ITEM_INJECTION_KEY = Symbol(\"elRovingFocusGroupItem\");\n\nexport { ROVING_FOCUS_GROUP_INJECTION_KEY, ROVING_FOCUS_GROUP_ITEM_INJECTION_KEY };\n//# sourceMappingURL=tokens.mjs.map\n","import '../../../constants/index.mjs';\nimport { EVENT_CODE } from '../../../constants/aria.mjs';\n\nconst MAP_KEY_TO_FOCUS_INTENT = {\n ArrowLeft: \"prev\",\n ArrowUp: \"prev\",\n ArrowRight: \"next\",\n ArrowDown: \"next\",\n PageUp: \"first\",\n Home: \"first\",\n PageDown: \"last\",\n End: \"last\"\n};\nconst getDirectionAwareKey = (key, dir) => {\n if (dir !== \"rtl\")\n return key;\n switch (key) {\n case EVENT_CODE.right:\n return EVENT_CODE.left;\n case EVENT_CODE.left:\n return EVENT_CODE.right;\n default:\n return key;\n }\n};\nconst getFocusIntent = (event, orientation, dir) => {\n const key = getDirectionAwareKey(event.key, dir);\n if (orientation === \"vertical\" && [EVENT_CODE.left, EVENT_CODE.right].includes(key))\n return void 0;\n if (orientation === \"horizontal\" && [EVENT_CODE.up, EVENT_CODE.down].includes(key))\n return void 0;\n return MAP_KEY_TO_FOCUS_INTENT[key];\n};\nconst reorderArray = (array, atIdx) => {\n return array.map((_, idx) => array[(idx + atIdx) % array.length]);\n};\nconst focusFirst = (elements) => {\n const { activeElement: prevActive } = document;\n for (const element of elements) {\n if (element === prevActive)\n return;\n element.focus();\n if (prevActive !== document.activeElement)\n return;\n }\n};\n\nexport { focusFirst, getFocusIntent, reorderArray };\n//# sourceMappingURL=utils.mjs.map\n","import { defineComponent, ref, inject, computed, unref, provide, readonly, toRef, watch, renderSlot } from 'vue';\nimport { useEventListener } from '@vueuse/core';\nimport '../../../utils/index.mjs';\nimport { rovingFocusGroupProps, ROVING_FOCUS_COLLECTION_INJECTION_KEY as COLLECTION_INJECTION_KEY } from './roving-focus-group.mjs';\nimport { ROVING_FOCUS_GROUP_INJECTION_KEY } from './tokens.mjs';\nimport { focusFirst } from './utils.mjs';\nimport _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';\nimport { composeEventHandlers } from '../../../utils/dom/event.mjs';\n\nconst CURRENT_TAB_ID_CHANGE_EVT = \"currentTabIdChange\";\nconst ENTRY_FOCUS_EVT = \"rovingFocusGroup.entryFocus\";\nconst EVT_OPTS = { bubbles: false, cancelable: true };\nconst _sfc_main = defineComponent({\n name: \"ElRovingFocusGroupImpl\",\n inheritAttrs: false,\n props: rovingFocusGroupProps,\n emits: [CURRENT_TAB_ID_CHANGE_EVT, \"entryFocus\"],\n setup(props, { emit }) {\n var _a;\n const currentTabbedId = ref((_a = props.currentTabId || props.defaultCurrentTabId) != null ? _a : null);\n const isBackingOut = ref(false);\n const isClickFocus = ref(false);\n const rovingFocusGroupRef = ref(null);\n const { getItems } = inject(COLLECTION_INJECTION_KEY, void 0);\n const rovingFocusGroupRootStyle = computed(() => {\n return [\n {\n outline: \"none\"\n },\n props.style\n ];\n });\n const onItemFocus = (tabbedId) => {\n emit(CURRENT_TAB_ID_CHANGE_EVT, tabbedId);\n };\n const onItemShiftTab = () => {\n isBackingOut.value = true;\n };\n const onMousedown = composeEventHandlers((e) => {\n var _a2;\n (_a2 = props.onMousedown) == null ? void 0 : _a2.call(props, e);\n }, () => {\n isClickFocus.value = true;\n });\n const onFocus = composeEventHandlers((e) => {\n var _a2;\n (_a2 = props.onFocus) == null ? void 0 : _a2.call(props, e);\n }, (e) => {\n const isKeyboardFocus = !unref(isClickFocus);\n const { target, currentTarget } = e;\n if (target === currentTarget && isKeyboardFocus && !unref(isBackingOut)) {\n const entryFocusEvt = new Event(ENTRY_FOCUS_EVT, EVT_OPTS);\n currentTarget == null ? void 0 : currentTarget.dispatchEvent(entryFocusEvt);\n if (!entryFocusEvt.defaultPrevented) {\n const items = getItems().filter((item) => item.focusable);\n const activeItem = items.find((item) => item.active);\n const currentItem = items.find((item) => item.id === unref(currentTabbedId));\n const candidates = [activeItem, currentItem, ...items].filter(Boolean);\n const candidateNodes = candidates.map((item) => item.ref);\n focusFirst(candidateNodes);\n }\n }\n isClickFocus.value = false;\n });\n const onBlur = composeEventHandlers((e) => {\n var _a2;\n (_a2 = props.onBlur) == null ? void 0 : _a2.call(props, e);\n }, () => {\n isBackingOut.value = false;\n });\n const handleEntryFocus = (...args) => {\n emit(\"entryFocus\", ...args);\n };\n provide(ROVING_FOCUS_GROUP_INJECTION_KEY, {\n currentTabbedId: readonly(currentTabbedId),\n loop: toRef(props, \"loop\"),\n tabIndex: computed(() => {\n return unref(isBackingOut) ? -1 : 0;\n }),\n rovingFocusGroupRef,\n rovingFocusGroupRootStyle,\n orientation: toRef(props, \"orientation\"),\n dir: toRef(props, \"dir\"),\n onItemFocus,\n onItemShiftTab,\n onBlur,\n onFocus,\n onMousedown\n });\n watch(() => props.currentTabId, (val) => {\n currentTabbedId.value = val != null ? val : null;\n });\n useEventListener(rovingFocusGroupRef, ENTRY_FOCUS_EVT, handleEntryFocus);\n }\n});\nfunction _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {\n return renderSlot(_ctx.$slots, \"default\");\n}\nvar ElRovingFocusGroupImpl = /* @__PURE__ */ _export_sfc(_sfc_main, [[\"render\", _sfc_render], [\"__file\", \"/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group-impl.vue\"]]);\n\nexport { ElRovingFocusGroupImpl as default };\n//# sourceMappingURL=roving-focus-group-impl.mjs.map\n","import { defineComponent, resolveComponent, openBlock, createBlock, withCtx, createVNode, normalizeProps, guardReactiveProps, renderSlot } from 'vue';\nimport ElRovingFocusGroupImpl from './roving-focus-group-impl.mjs';\nimport { ElCollection } from './roving-focus-group.mjs';\nimport _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';\n\nconst _sfc_main = defineComponent({\n name: \"ElRovingFocusGroup\",\n components: {\n ElFocusGroupCollection: ElCollection,\n ElRovingFocusGroupImpl\n }\n});\nfunction _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {\n const _component_el_roving_focus_group_impl = resolveComponent(\"el-roving-focus-group-impl\");\n const _component_el_focus_group_collection = resolveComponent(\"el-focus-group-collection\");\n return openBlock(), createBlock(_component_el_focus_group_collection, null, {\n default: withCtx(() => [\n createVNode(_component_el_roving_focus_group_impl, normalizeProps(guardReactiveProps(_ctx.$attrs)), {\n default: withCtx(() => [\n renderSlot(_ctx.$slots, \"default\")\n ]),\n _: 3\n }, 16)\n ]),\n _: 3\n });\n}\nvar ElRovingFocusGroup = /* @__PURE__ */ _export_sfc(_sfc_main, [[\"render\", _sfc_render], [\"__file\", \"/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group.vue\"]]);\n\nexport { ElRovingFocusGroup as default };\n//# sourceMappingURL=roving-focus-group2.mjs.map\n","import { defineComponent, inject, ref, unref, nextTick, computed, provide, resolveComponent, openBlock, createBlock, withCtx, renderSlot } from 'vue';\nimport '../../../hooks/index.mjs';\nimport '../../../utils/index.mjs';\nimport '../../../constants/index.mjs';\nimport { ElCollectionItem, ROVING_FOCUS_COLLECTION_INJECTION_KEY as COLLECTION_INJECTION_KEY } from './roving-focus-group.mjs';\nimport { ROVING_FOCUS_GROUP_INJECTION_KEY, ROVING_FOCUS_GROUP_ITEM_INJECTION_KEY } from './tokens.mjs';\nimport { getFocusIntent, reorderArray, focusFirst } from './utils.mjs';\nimport _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';\nimport { useId } from '../../../hooks/use-id/index.mjs';\nimport { composeEventHandlers } from '../../../utils/dom/event.mjs';\nimport { EVENT_CODE } from '../../../constants/aria.mjs';\n\nconst _sfc_main = defineComponent({\n components: {\n ElRovingFocusCollectionItem: ElCollectionItem\n },\n props: {\n focusable: {\n type: Boolean,\n default: true\n },\n active: {\n type: Boolean,\n default: false\n }\n },\n emits: [\"mousedown\", \"focus\", \"keydown\"],\n setup(props, { emit }) {\n const { currentTabbedId, loop, onItemFocus, onItemShiftTab } = inject(ROVING_FOCUS_GROUP_INJECTION_KEY, void 0);\n const { getItems } = inject(COLLECTION_INJECTION_KEY, void 0);\n const id = useId();\n const rovingFocusGroupItemRef = ref(null);\n const handleMousedown = composeEventHandlers((e) => {\n emit(\"mousedown\", e);\n }, (e) => {\n if (!props.focusable) {\n e.preventDefault();\n } else {\n onItemFocus(unref(id));\n }\n });\n const handleFocus = composeEventHandlers((e) => {\n emit(\"focus\", e);\n }, () => {\n onItemFocus(unref(id));\n });\n const handleKeydown = composeEventHandlers((e) => {\n emit(\"keydown\", e);\n }, (e) => {\n const { key, shiftKey, target, currentTarget } = e;\n if (key === EVENT_CODE.tab && shiftKey) {\n onItemShiftTab();\n return;\n }\n if (target !== currentTarget)\n return;\n const focusIntent = getFocusIntent(e);\n if (focusIntent) {\n e.preventDefault();\n const items = getItems().filter((item) => item.focusable);\n let elements = items.map((item) => item.ref);\n switch (focusIntent) {\n case \"last\": {\n elements.reverse();\n break;\n }\n case \"prev\":\n case \"next\": {\n if (focusIntent === \"prev\") {\n elements.reverse();\n }\n const currentIdx = elements.indexOf(currentTarget);\n elements = loop.value ? reorderArray(elements, currentIdx + 1) : elements.slice(currentIdx + 1);\n break;\n }\n default: {\n break;\n }\n }\n nextTick(() => {\n focusFirst(elements);\n });\n }\n });\n const isCurrentTab = computed(() => currentTabbedId.value === unref(id));\n provide(ROVING_FOCUS_GROUP_ITEM_INJECTION_KEY, {\n rovingFocusGroupItemRef,\n tabIndex: computed(() => unref(isCurrentTab) ? 0 : -1),\n handleMousedown,\n handleFocus,\n handleKeydown\n });\n return {\n id,\n handleKeydown,\n handleFocus,\n handleMousedown\n };\n }\n});\nfunction _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {\n const _component_el_roving_focus_collection_item = resolveComponent(\"el-roving-focus-collection-item\");\n return openBlock(), createBlock(_component_el_roving_focus_collection_item, {\n id: _ctx.id,\n focusable: _ctx.focusable,\n active: _ctx.active\n }, {\n default: withCtx(() => [\n renderSlot(_ctx.$slots, \"default\")\n ]),\n _: 3\n }, 8, [\"id\", \"focusable\", \"active\"]);\n}\nvar ElRovingFocusItem = /* @__PURE__ */ _export_sfc(_sfc_main, [[\"render\", _sfc_render], [\"__file\", \"/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-item.vue\"]]);\n\nexport { ElRovingFocusItem as default };\n//# sourceMappingURL=roving-focus-item.mjs.map\n","import '../../../utils/index.mjs';\nimport '../../../constants/index.mjs';\nimport '../../collection/index.mjs';\nimport '../../tooltip/index.mjs';\nimport { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';\nimport { useTooltipTriggerProps, useTooltipContentProps } from '../../tooltip/src/tooltip.mjs';\nimport { iconPropType } from '../../../utils/vue/icon.mjs';\nimport { EVENT_CODE } from '../../../constants/aria.mjs';\nimport { createCollectionWithScope } from '../../collection/src/collection.mjs';\n\nconst dropdownProps = buildProps({\n trigger: useTooltipTriggerProps.trigger,\n effect: {\n ...useTooltipContentProps.effect,\n default: \"light\"\n },\n type: {\n type: definePropType(String)\n },\n placement: {\n type: definePropType(String),\n default: \"bottom\"\n },\n popperOptions: {\n type: definePropType(Object),\n default: () => ({})\n },\n id: String,\n size: {\n type: String,\n default: \"\"\n },\n splitButton: Boolean,\n hideOnClick: {\n type: Boolean,\n default: true\n },\n loop: {\n type: Boolean,\n default: true\n },\n showTimeout: {\n type: Number,\n default: 150\n },\n hideTimeout: {\n type: Number,\n default: 150\n },\n tabindex: {\n type: definePropType([Number, String]),\n default: 0\n },\n maxHeight: {\n type: definePropType([Number, String]),\n default: \"\"\n },\n popperClass: {\n type: String,\n default: \"\"\n },\n disabled: {\n type: Boolean,\n default: false\n },\n role: {\n type: String,\n default: \"menu\"\n },\n buttonProps: {\n type: definePropType(Object)\n }\n});\nconst dropdownItemProps = buildProps({\n command: {\n type: [Object, String, Number],\n default: () => ({})\n },\n disabled: Boolean,\n divided: Boolean,\n textValue: String,\n icon: {\n type: iconPropType\n }\n});\nconst dropdownMenuProps = buildProps({\n onKeydown: { type: definePropType(Function) }\n});\nconst FIRST_KEYS = [\n EVENT_CODE.down,\n EVENT_CODE.pageDown,\n EVENT_CODE.home\n];\nconst LAST_KEYS = [EVENT_CODE.up, EVENT_CODE.pageUp, EVENT_CODE.end];\nconst FIRST_LAST_KEYS = [...FIRST_KEYS, ...LAST_KEYS];\nconst {\n ElCollection,\n ElCollectionItem,\n COLLECTION_INJECTION_KEY,\n COLLECTION_ITEM_INJECTION_KEY\n} = createCollectionWithScope(\"Dropdown\");\n\nexport { COLLECTION_INJECTION_KEY as DROPDOWN_COLLECTION_INJECTION_KEY, COLLECTION_ITEM_INJECTION_KEY as DROPDOWN_COLLECTION_ITEM_INJECTION_KEY, ElCollection, ElCollectionItem, FIRST_KEYS, FIRST_LAST_KEYS, LAST_KEYS, dropdownItemProps, dropdownMenuProps, dropdownProps };\n//# sourceMappingURL=dropdown.mjs.map\n","const DROPDOWN_INJECTION_KEY = Symbol(\"elDropdown\");\n\nexport { DROPDOWN_INJECTION_KEY };\n//# sourceMappingURL=tokens.mjs.map\n","import { defineComponent, getCurrentInstance, ref, computed, unref, provide, toRef, resolveComponent, openBlock, createElementBlock, normalizeClass, createVNode, createSlots, withCtx, renderSlot, createBlock, mergeProps, createCommentVNode } from 'vue';\nimport { ElButton } from '../../button/index.mjs';\nimport { ElTooltip } from '../../tooltip/index.mjs';\nimport { ElScrollbar } from '../../scrollbar/index.mjs';\nimport { ElIcon } from '../../icon/index.mjs';\nimport '../../roving-focus-group/index.mjs';\nimport '../../slot/index.mjs';\nimport '../../../utils/index.mjs';\nimport { ArrowDown } from '@element-plus/icons-vue';\nimport '../../../constants/index.mjs';\nimport '../../../hooks/index.mjs';\nimport { ElCollection, dropdownProps } from './dropdown.mjs';\nimport { DROPDOWN_INJECTION_KEY } from './tokens.mjs';\nimport _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';\nimport ElRovingFocusGroup from '../../roving-focus-group/src/roving-focus-group2.mjs';\nimport { OnlyChild } from '../../slot/src/only-child.mjs';\nimport { useNamespace } from '../../../hooks/use-namespace/index.mjs';\nimport { useLocale } from '../../../hooks/use-locale/index.mjs';\nimport { EVENT_CODE } from '../../../constants/aria.mjs';\nimport { addUnit } from '../../../utils/dom/style.mjs';\nimport { useId } from '../../../hooks/use-id/index.mjs';\nimport { useSize } from '../../../hooks/use-common-props/index.mjs';\n\nconst { ButtonGroup: ElButtonGroup } = ElButton;\nconst _sfc_main = defineComponent({\n name: \"ElDropdown\",\n components: {\n ElButton,\n ElButtonGroup,\n ElScrollbar,\n ElDropdownCollection: ElCollection,\n ElTooltip,\n ElRovingFocusGroup,\n ElOnlyChild: OnlyChild,\n ElIcon,\n ArrowDown\n },\n props: dropdownProps,\n emits: [\"visible-change\", \"click\", \"command\"],\n setup(props, { emit }) {\n const _instance = getCurrentInstance();\n const ns = useNamespace(\"dropdown\");\n const { t } = useLocale();\n const triggeringElementRef = ref();\n const referenceElementRef = ref();\n const popperRef = ref(null);\n const contentRef = ref(null);\n const scrollbar = ref(null);\n const currentTabId = ref(null);\n const isUsingKeyboard = ref(false);\n const triggerKeys = [EVENT_CODE.enter, EVENT_CODE.space, EVENT_CODE.down];\n const wrapStyle = computed(() => ({\n maxHeight: addUnit(props.maxHeight)\n }));\n const dropdownTriggerKls = computed(() => [ns.m(dropdownSize.value)]);\n const defaultTriggerId = useId().value;\n const triggerId = computed(() => {\n return props.id || defaultTriggerId;\n });\n function handleClick() {\n handleClose();\n }\n function handleClose() {\n var _a;\n (_a = popperRef.value) == null ? void 0 : _a.onClose();\n }\n function handleOpen() {\n var _a;\n (_a = popperRef.value) == null ? void 0 : _a.onOpen();\n }\n const dropdownSize = useSize();\n function commandHandler(...args) {\n emit(\"command\", ...args);\n }\n function onItemEnter() {\n }\n function onItemLeave() {\n const contentEl = unref(contentRef);\n contentEl == null ? void 0 : contentEl.focus();\n currentTabId.value = null;\n }\n function handleCurrentTabIdChange(id) {\n currentTabId.value = id;\n }\n function handleEntryFocus(e) {\n if (!isUsingKeyboard.value) {\n e.preventDefault();\n e.stopImmediatePropagation();\n }\n }\n function handleBeforeShowTooltip() {\n emit(\"visible-change\", true);\n }\n function handleShowTooltip(event) {\n if ((event == null ? void 0 : event.type) === \"keydown\") {\n contentRef.value.focus();\n }\n }\n function handleBeforeHideTooltip() {\n emit(\"visible-change\", false);\n }\n provide(DROPDOWN_INJECTION_KEY, {\n contentRef,\n role: computed(() => props.role),\n triggerId,\n isUsingKeyboard,\n onItemEnter,\n onItemLeave\n });\n provide(\"elDropdown\", {\n instance: _instance,\n dropdownSize,\n handleClick,\n commandHandler,\n trigger: toRef(props, \"trigger\"),\n hideOnClick: toRef(props, \"hideOnClick\")\n });\n const onFocusAfterTrapped = (e) => {\n var _a, _b;\n e.preventDefault();\n (_b = (_a = contentRef.value) == null ? void 0 : _a.focus) == null ? void 0 : _b.call(_a, {\n preventScroll: true\n });\n };\n const handlerMainButtonClick = (event) => {\n emit(\"click\", event);\n };\n return {\n t,\n ns,\n scrollbar,\n wrapStyle,\n dropdownTriggerKls,\n dropdownSize,\n triggerId,\n triggerKeys,\n currentTabId,\n handleCurrentTabIdChange,\n handlerMainButtonClick,\n handleEntryFocus,\n handleClose,\n handleOpen,\n handleBeforeShowTooltip,\n handleShowTooltip,\n handleBeforeHideTooltip,\n onFocusAfterTrapped,\n popperRef,\n contentRef,\n triggeringElementRef,\n referenceElementRef\n };\n }\n});\nfunction _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {\n var _a;\n const _component_el_dropdown_collection = resolveComponent(\"el-dropdown-collection\");\n const _component_el_roving_focus_group = resolveComponent(\"el-roving-focus-group\");\n const _component_el_scrollbar = resolveComponent(\"el-scrollbar\");\n const _component_el_only_child = resolveComponent(\"el-only-child\");\n const _component_el_tooltip = resolveComponent(\"el-tooltip\");\n const _component_el_button = resolveComponent(\"el-button\");\n const _component_arrow_down = resolveComponent(\"arrow-down\");\n const _component_el_icon = resolveComponent(\"el-icon\");\n const _component_el_button_group = resolveComponent(\"el-button-group\");\n return openBlock(), createElementBlock(\"div\", {\n class: normalizeClass([_ctx.ns.b(), _ctx.ns.is(\"disabled\", _ctx.disabled)])\n }, [\n createVNode(_component_el_tooltip, {\n ref: \"popperRef\",\n role: _ctx.role,\n effect: _ctx.effect,\n \"fallback-placements\": [\"bottom\", \"top\"],\n \"popper-options\": _ctx.popperOptions,\n \"gpu-acceleration\": false,\n \"hide-after\": _ctx.trigger === \"hover\" ? _ctx.hideTimeout : 0,\n \"manual-mode\": true,\n placement: _ctx.placement,\n \"popper-class\": [_ctx.ns.e(\"popper\"), _ctx.popperClass],\n \"reference-element\": (_a = _ctx.referenceElementRef) == null ? void 0 : _a.$el,\n trigger: _ctx.trigger,\n \"trigger-keys\": _ctx.triggerKeys,\n \"trigger-target-el\": _ctx.contentRef,\n \"show-after\": _ctx.trigger === \"hover\" ? _ctx.showTimeout : 0,\n \"stop-popper-mouse-event\": false,\n \"virtual-ref\": _ctx.triggeringElementRef,\n \"virtual-triggering\": _ctx.splitButton,\n disabled: _ctx.disabled,\n transition: `${_ctx.ns.namespace.value}-zoom-in-top`,\n teleported: \"\",\n pure: \"\",\n persistent: \"\",\n onBeforeShow: _ctx.handleBeforeShowTooltip,\n onShow: _ctx.handleShowTooltip,\n onBeforeHide: _ctx.handleBeforeHideTooltip\n }, createSlots({\n content: withCtx(() => [\n createVNode(_component_el_scrollbar, {\n ref: \"scrollbar\",\n \"wrap-style\": _ctx.wrapStyle,\n tag: \"div\",\n \"view-class\": _ctx.ns.e(\"list\")\n }, {\n default: withCtx(() => [\n createVNode(_component_el_roving_focus_group, {\n loop: _ctx.loop,\n \"current-tab-id\": _ctx.currentTabId,\n orientation: \"horizontal\",\n onCurrentTabIdChange: _ctx.handleCurrentTabIdChange,\n onEntryFocus: _ctx.handleEntryFocus\n }, {\n default: withCtx(() => [\n createVNode(_component_el_dropdown_collection, null, {\n default: withCtx(() => [\n renderSlot(_ctx.$slots, \"dropdown\")\n ]),\n _: 3\n })\n ]),\n _: 3\n }, 8, [\"loop\", \"current-tab-id\", \"onCurrentTabIdChange\", \"onEntryFocus\"])\n ]),\n _: 3\n }, 8, [\"wrap-style\", \"view-class\"])\n ]),\n _: 2\n }, [\n !_ctx.splitButton ? {\n name: \"default\",\n fn: withCtx(() => [\n createVNode(_component_el_only_child, {\n id: _ctx.triggerId,\n role: \"button\",\n tabindex: _ctx.tabindex\n }, {\n default: withCtx(() => [\n renderSlot(_ctx.$slots, \"default\")\n ]),\n _: 3\n }, 8, [\"id\", \"tabindex\"])\n ])\n } : void 0\n ]), 1032, [\"role\", \"effect\", \"popper-options\", \"hide-after\", \"placement\", \"popper-class\", \"reference-element\", \"trigger\", \"trigger-keys\", \"trigger-target-el\", \"show-after\", \"virtual-ref\", \"virtual-triggering\", \"disabled\", \"transition\", \"onBeforeShow\", \"onShow\", \"onBeforeHide\"]),\n _ctx.splitButton ? (openBlock(), createBlock(_component_el_button_group, { key: 0 }, {\n default: withCtx(() => [\n createVNode(_component_el_button, mergeProps({ ref: \"referenceElementRef\" }, _ctx.buttonProps, {\n size: _ctx.dropdownSize,\n type: _ctx.type,\n disabled: _ctx.disabled,\n tabindex: _ctx.tabindex,\n onClick: _ctx.handlerMainButtonClick\n }), {\n default: withCtx(() => [\n renderSlot(_ctx.$slots, \"default\")\n ]),\n _: 3\n }, 16, [\"size\", \"type\", \"disabled\", \"tabindex\", \"onClick\"]),\n createVNode(_component_el_button, mergeProps({\n id: _ctx.triggerId,\n ref: \"triggeringElementRef\"\n }, _ctx.buttonProps, {\n role: \"button\",\n size: _ctx.dropdownSize,\n type: _ctx.type,\n class: _ctx.ns.e(\"caret-button\"),\n disabled: _ctx.disabled,\n tabindex: _ctx.tabindex,\n \"aria-label\": _ctx.t(\"el.dropdown.toggleDropdown\")\n }), {\n default: withCtx(() => [\n createVNode(_component_el_icon, {\n class: normalizeClass(_ctx.ns.e(\"icon\"))\n }, {\n default: withCtx(() => [\n createVNode(_component_arrow_down)\n ]),\n _: 1\n }, 8, [\"class\"])\n ]),\n _: 1\n }, 16, [\"id\", \"size\", \"type\", \"class\", \"disabled\", \"tabindex\", \"aria-label\"])\n ]),\n _: 3\n })) : createCommentVNode(\"v-if\", true)\n ], 2);\n}\nvar Dropdown = /* @__PURE__ */ _export_sfc(_sfc_main, [[\"render\", _sfc_render], [\"__file\", \"/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown.vue\"]]);\n\nexport { Dropdown as default };\n//# sourceMappingURL=dropdown2.mjs.map\n","import { defineComponent, inject, computed, resolveComponent, openBlock, createElementBlock, Fragment, mergeProps, createCommentVNode, createElementVNode, createBlock, withCtx, resolveDynamicComponent, renderSlot } from 'vue';\nimport '../../roving-focus-group/index.mjs';\nimport '../../collection/index.mjs';\nimport { ElIcon } from '../../icon/index.mjs';\nimport '../../../hooks/index.mjs';\nimport '../../../utils/index.mjs';\nimport '../../../constants/index.mjs';\nimport { dropdownItemProps, DROPDOWN_COLLECTION_ITEM_INJECTION_KEY as COLLECTION_ITEM_INJECTION_KEY } from './dropdown.mjs';\nimport { DROPDOWN_INJECTION_KEY } from './tokens.mjs';\nimport _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';\nimport { useNamespace } from '../../../hooks/use-namespace/index.mjs';\nimport { ROVING_FOCUS_ITEM_COLLECTION_INJECTION_KEY as COLLECTION_ITEM_INJECTION_KEY$1 } from '../../roving-focus-group/src/roving-focus-group.mjs';\nimport { ROVING_FOCUS_GROUP_ITEM_INJECTION_KEY } from '../../roving-focus-group/src/tokens.mjs';\nimport { composeRefs } from '../../../utils/vue/refs.mjs';\nimport { composeEventHandlers } from '../../../utils/dom/event.mjs';\nimport { EVENT_CODE } from '../../../constants/aria.mjs';\nimport { COLLECTION_ITEM_SIGN } from '../../collection/src/collection.mjs';\n\nconst _sfc_main = defineComponent({\n name: \"DropdownItemImpl\",\n components: {\n ElIcon\n },\n props: dropdownItemProps,\n emits: [\"pointermove\", \"pointerleave\", \"click\", \"clickimpl\"],\n setup(_, { emit }) {\n const ns = useNamespace(\"dropdown\");\n const { role: menuRole } = inject(DROPDOWN_INJECTION_KEY, void 0);\n const { collectionItemRef: dropdownCollectionItemRef } = inject(COLLECTION_ITEM_INJECTION_KEY, void 0);\n const { collectionItemRef: rovingFocusCollectionItemRef } = inject(COLLECTION_ITEM_INJECTION_KEY$1, void 0);\n const {\n rovingFocusGroupItemRef,\n tabIndex,\n handleFocus,\n handleKeydown: handleItemKeydown,\n handleMousedown\n } = inject(ROVING_FOCUS_GROUP_ITEM_INJECTION_KEY, void 0);\n const itemRef = composeRefs(dropdownCollectionItemRef, rovingFocusCollectionItemRef, rovingFocusGroupItemRef);\n const role = computed(() => {\n if (menuRole.value === \"menu\") {\n return \"menuitem\";\n } else if (menuRole.value === \"navigation\") {\n return \"link\";\n }\n return \"button\";\n });\n const handleKeydown = composeEventHandlers((e) => {\n const { code } = e;\n if (code === EVENT_CODE.enter || code === EVENT_CODE.space) {\n e.preventDefault();\n e.stopImmediatePropagation();\n emit(\"clickimpl\", e);\n return true;\n }\n }, handleItemKeydown);\n return {\n ns,\n itemRef,\n dataset: {\n [COLLECTION_ITEM_SIGN]: \"\"\n },\n role,\n tabIndex,\n handleFocus,\n handleKeydown,\n handleMousedown\n };\n }\n});\nconst _hoisted_1 = [\"aria-disabled\", \"tabindex\", \"role\"];\nfunction _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {\n const _component_el_icon = resolveComponent(\"el-icon\");\n return openBlock(), createElementBlock(Fragment, null, [\n _ctx.divided ? (openBlock(), createElementBlock(\"li\", mergeProps({\n key: 0,\n role: \"separator\",\n class: _ctx.ns.bem(\"menu\", \"item\", \"divided\")\n }, _ctx.$attrs), null, 16)) : createCommentVNode(\"v-if\", true),\n createElementVNode(\"li\", mergeProps({ ref: _ctx.itemRef }, { ..._ctx.dataset, ..._ctx.$attrs }, {\n \"aria-disabled\": _ctx.disabled,\n class: [_ctx.ns.be(\"menu\", \"item\"), _ctx.ns.is(\"disabled\", _ctx.disabled)],\n tabindex: _ctx.tabIndex,\n role: _ctx.role,\n onClick: _cache[0] || (_cache[0] = (e) => _ctx.$emit(\"clickimpl\", e)),\n onFocus: _cache[1] || (_cache[1] = (...args) => _ctx.handleFocus && _ctx.handleFocus(...args)),\n onKeydown: _cache[2] || (_cache[2] = (...args) => _ctx.handleKeydown && _ctx.handleKeydown(...args)),\n onMousedown: _cache[3] || (_cache[3] = (...args) => _ctx.handleMousedown && _ctx.handleMousedown(...args)),\n onPointermove: _cache[4] || (_cache[4] = (e) => _ctx.$emit(\"pointermove\", e)),\n onPointerleave: _cache[5] || (_cache[5] = (e) => _ctx.$emit(\"pointerleave\", e))\n }), [\n _ctx.icon ? (openBlock(), createBlock(_component_el_icon, { key: 0 }, {\n default: withCtx(() => [\n (openBlock(), createBlock(resolveDynamicComponent(_ctx.icon)))\n ]),\n _: 1\n })) : createCommentVNode(\"v-if\", true),\n renderSlot(_ctx.$slots, \"default\")\n ], 16, _hoisted_1)\n ], 64);\n}\nvar ElDropdownItemImpl = /* @__PURE__ */ _export_sfc(_sfc_main, [[\"render\", _sfc_render], [\"__file\", \"/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item-impl.vue\"]]);\n\nexport { ElDropdownItemImpl as default };\n//# sourceMappingURL=dropdown-item-impl.mjs.map\n","import { inject, computed, ref } from 'vue';\nimport '../../../utils/index.mjs';\nimport '../../../constants/index.mjs';\nimport '../../../hooks/index.mjs';\nimport { useNamespace } from '../../../hooks/use-namespace/index.mjs';\nimport { generateId } from '../../../utils/rand.mjs';\nimport { EVENT_CODE } from '../../../constants/aria.mjs';\nimport { addClass } from '../../../utils/dom/style.mjs';\n\nconst useDropdown = () => {\n const elDropdown = inject(\"elDropdown\", {});\n const _elDropdownSize = computed(() => elDropdown == null ? void 0 : elDropdown.dropdownSize);\n return {\n elDropdown,\n _elDropdownSize\n };\n};\nconst initDropdownDomEvent = (dropdownChildren, triggerElm, _instance) => {\n const ns = useNamespace(\"dropdown\");\n const menuItems = ref(null);\n const menuItemsArray = ref(null);\n const dropdownElm = ref(null);\n const listId = ref(`dropdown-menu-${generateId()}`);\n dropdownElm.value = dropdownChildren == null ? void 0 : dropdownChildren.subTree.el;\n function removeTabindex() {\n var _a;\n triggerElm.setAttribute(\"tabindex\", \"-1\");\n (_a = menuItemsArray.value) == null ? void 0 : _a.forEach((item) => {\n item.setAttribute(\"tabindex\", \"-1\");\n });\n }\n function resetTabindex(ele) {\n removeTabindex();\n ele == null ? void 0 : ele.setAttribute(\"tabindex\", \"0\");\n }\n function handleTriggerKeyDown(ev) {\n const code = ev.code;\n if ([EVENT_CODE.up, EVENT_CODE.down].includes(code)) {\n removeTabindex();\n resetTabindex(menuItems.value[0]);\n menuItems.value[0].focus();\n ev.preventDefault();\n ev.stopPropagation();\n } else if (code === EVENT_CODE.enter) {\n _instance.handleClick();\n } else if ([EVENT_CODE.tab, EVENT_CODE.esc].includes(code)) {\n _instance.hide();\n }\n }\n function handleItemKeyDown(ev) {\n const code = ev.code;\n const target = ev.target;\n const currentIndex = menuItemsArray.value.indexOf(target);\n const max = menuItemsArray.value.length - 1;\n let nextIndex;\n if ([EVENT_CODE.up, EVENT_CODE.down].includes(code)) {\n if (code === EVENT_CODE.up) {\n nextIndex = currentIndex !== 0 ? currentIndex - 1 : 0;\n } else {\n nextIndex = currentIndex < max ? currentIndex + 1 : max;\n }\n removeTabindex();\n resetTabindex(menuItems.value[nextIndex]);\n menuItems.value[nextIndex].focus();\n ev.preventDefault();\n ev.stopPropagation();\n } else if (code === EVENT_CODE.enter) {\n triggerElmFocus();\n target.click();\n if (_instance.props.hideOnClick) {\n _instance.hide();\n }\n } else if ([EVENT_CODE.tab, EVENT_CODE.esc].includes(code)) {\n _instance.hide();\n triggerElmFocus();\n }\n }\n function initAria() {\n dropdownElm.value.setAttribute(\"id\", listId.value);\n triggerElm.setAttribute(\"aria-haspopup\", \"list\");\n triggerElm.setAttribute(\"aria-controls\", listId.value);\n if (!_instance.props.splitButton) {\n triggerElm.setAttribute(\"role\", \"button\");\n triggerElm.setAttribute(\"tabindex\", _instance.props.tabindex);\n addClass(triggerElm, ns.b(\"selfdefine\"));\n }\n }\n function initEvent() {\n var _a;\n triggerElm == null ? void 0 : triggerElm.addEventListener(\"keydown\", handleTriggerKeyDown);\n (_a = dropdownElm.value) == null ? void 0 : _a.addEventListener(\"keydown\", handleItemKeyDown, true);\n }\n function initDomOperation() {\n menuItems.value = dropdownElm.value.querySelectorAll(\"[tabindex='-1']\");\n menuItemsArray.value = Array.from(menuItems.value);\n initEvent();\n initAria();\n }\n function triggerElmFocus() {\n triggerElm.focus();\n }\n initDomOperation();\n};\n\nexport { initDropdownDomEvent, useDropdown };\n//# sourceMappingURL=useDropdown.mjs.map\n","import { defineComponent, getCurrentInstance, ref, computed, unref, inject, resolveComponent, openBlock, createBlock, withCtx, createVNode, mergeProps, renderSlot } from 'vue';\nimport '../../roving-focus-group/index.mjs';\nimport '../../../utils/index.mjs';\nimport ElDropdownItemImpl from './dropdown-item-impl.mjs';\nimport { useDropdown } from './useDropdown.mjs';\nimport { ElCollectionItem, dropdownItemProps } from './dropdown.mjs';\nimport { DROPDOWN_INJECTION_KEY } from './tokens.mjs';\nimport _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';\nimport ElRovingFocusItem from '../../roving-focus-group/src/roving-focus-item.mjs';\nimport { composeEventHandlers, whenMouse } from '../../../utils/dom/event.mjs';\n\nconst _sfc_main = defineComponent({\n name: \"ElDropdownItem\",\n components: {\n ElDropdownCollectionItem: ElCollectionItem,\n ElRovingFocusItem,\n ElDropdownItemImpl\n },\n inheritAttrs: false,\n props: dropdownItemProps,\n emits: [\"pointermove\", \"pointerleave\", \"click\"],\n setup(props, { emit, attrs }) {\n const { elDropdown } = useDropdown();\n const _instance = getCurrentInstance();\n const itemRef = ref(null);\n const textContent = computed(() => {\n var _a, _b;\n return (_b = (_a = unref(itemRef)) == null ? void 0 : _a.textContent) != null ? _b : \"\";\n });\n const { onItemEnter, onItemLeave } = inject(DROPDOWN_INJECTION_KEY, void 0);\n const handlePointerMove = composeEventHandlers((e) => {\n emit(\"pointermove\", e);\n return e.defaultPrevented;\n }, whenMouse((e) => {\n var _a;\n if (props.disabled) {\n onItemLeave(e);\n } else {\n onItemEnter(e);\n if (!e.defaultPrevented) {\n ;\n (_a = e.currentTarget) == null ? void 0 : _a.focus();\n }\n }\n }));\n const handlePointerLeave = composeEventHandlers((e) => {\n emit(\"pointerleave\", e);\n return e.defaultPrevented;\n }, whenMouse((e) => {\n onItemLeave(e);\n }));\n const handleClick = composeEventHandlers((e) => {\n emit(\"click\", e);\n return e.type !== \"keydown\" && e.defaultPrevented;\n }, (e) => {\n var _a, _b, _c;\n if (props.disabled) {\n e.stopImmediatePropagation();\n return;\n }\n if ((_a = elDropdown == null ? void 0 : elDropdown.hideOnClick) == null ? void 0 : _a.value) {\n (_b = elDropdown.handleClick) == null ? void 0 : _b.call(elDropdown);\n }\n (_c = elDropdown.commandHandler) == null ? void 0 : _c.call(elDropdown, props.command, _instance, e);\n });\n const propsAndAttrs = computed(() => {\n return { ...props, ...attrs };\n });\n return {\n handleClick,\n handlePointerMove,\n handlePointerLeave,\n textContent,\n propsAndAttrs\n };\n }\n});\nfunction _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {\n var _a;\n const _component_el_dropdown_item_impl = resolveComponent(\"el-dropdown-item-impl\");\n const _component_el_roving_focus_item = resolveComponent(\"el-roving-focus-item\");\n const _component_el_dropdown_collection_item = resolveComponent(\"el-dropdown-collection-item\");\n return openBlock(), createBlock(_component_el_dropdown_collection_item, {\n disabled: _ctx.disabled,\n \"text-value\": (_a = _ctx.textValue) != null ? _a : _ctx.textContent\n }, {\n default: withCtx(() => [\n createVNode(_component_el_roving_focus_item, {\n focusable: !_ctx.disabled\n }, {\n default: withCtx(() => [\n createVNode(_component_el_dropdown_item_impl, mergeProps(_ctx.propsAndAttrs, {\n onPointerleave: _ctx.handlePointerLeave,\n onPointermove: _ctx.handlePointerMove,\n onClickimpl: _ctx.handleClick\n }), {\n default: withCtx(() => [\n renderSlot(_ctx.$slots, \"default\")\n ]),\n _: 3\n }, 16, [\"onPointerleave\", \"onPointermove\", \"onClickimpl\"])\n ]),\n _: 3\n }, 8, [\"focusable\"])\n ]),\n _: 3\n }, 8, [\"disabled\", \"text-value\"]);\n}\nvar DropdownItem = /* @__PURE__ */ _export_sfc(_sfc_main, [[\"render\", _sfc_render], [\"__file\", \"/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item.vue\"]]);\n\nexport { DropdownItem as default };\n//# sourceMappingURL=dropdown-item.mjs.map\n","import { defineComponent, inject, computed, unref, openBlock, createElementBlock, normalizeClass, normalizeStyle, renderSlot } from 'vue';\nimport '../../../utils/index.mjs';\nimport '../../../constants/index.mjs';\nimport '../../focus-trap/index.mjs';\nimport '../../roving-focus-group/index.mjs';\nimport '../../../hooks/index.mjs';\nimport { DROPDOWN_INJECTION_KEY } from './tokens.mjs';\nimport { dropdownMenuProps, DROPDOWN_COLLECTION_INJECTION_KEY as COLLECTION_INJECTION_KEY, FIRST_LAST_KEYS, LAST_KEYS } from './dropdown.mjs';\nimport { useDropdown } from './useDropdown.mjs';\nimport _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';\nimport { useNamespace } from '../../../hooks/use-namespace/index.mjs';\nimport { FOCUS_TRAP_INJECTION_KEY } from '../../focus-trap/src/tokens.mjs';\nimport { ROVING_FOCUS_GROUP_INJECTION_KEY } from '../../roving-focus-group/src/tokens.mjs';\nimport { ROVING_FOCUS_COLLECTION_INJECTION_KEY as COLLECTION_INJECTION_KEY$1 } from '../../roving-focus-group/src/roving-focus-group.mjs';\nimport { composeRefs } from '../../../utils/vue/refs.mjs';\nimport { composeEventHandlers } from '../../../utils/dom/event.mjs';\nimport { EVENT_CODE } from '../../../constants/aria.mjs';\nimport { focusFirst } from '../../roving-focus-group/src/utils.mjs';\n\nconst _sfc_main = defineComponent({\n name: \"ElDropdownMenu\",\n props: dropdownMenuProps,\n setup(props) {\n const ns = useNamespace(\"dropdown\");\n const { _elDropdownSize } = useDropdown();\n const size = _elDropdownSize.value;\n const { focusTrapRef, onKeydown } = inject(FOCUS_TRAP_INJECTION_KEY, void 0);\n const { contentRef, role, triggerId } = inject(DROPDOWN_INJECTION_KEY, void 0);\n const { collectionRef: dropdownCollectionRef, getItems } = inject(COLLECTION_INJECTION_KEY, void 0);\n const {\n rovingFocusGroupRef,\n rovingFocusGroupRootStyle,\n tabIndex,\n onBlur,\n onFocus,\n onMousedown\n } = inject(ROVING_FOCUS_GROUP_INJECTION_KEY, void 0);\n const { collectionRef: rovingFocusGroupCollectionRef } = inject(COLLECTION_INJECTION_KEY$1, void 0);\n const dropdownKls = computed(() => {\n return [ns.b(\"menu\"), ns.bm(\"menu\", size == null ? void 0 : size.value)];\n });\n const dropdownListWrapperRef = composeRefs(contentRef, dropdownCollectionRef, focusTrapRef, rovingFocusGroupRef, rovingFocusGroupCollectionRef);\n const composedKeydown = composeEventHandlers((e) => {\n var _a;\n (_a = props.onKeydown) == null ? void 0 : _a.call(props, e);\n }, (e) => {\n const { currentTarget, code, target } = e;\n const isKeydownContained = currentTarget.contains(target);\n if (isKeydownContained) {\n }\n if (EVENT_CODE.tab === code) {\n e.stopImmediatePropagation();\n }\n e.preventDefault();\n if (target !== unref(contentRef))\n return;\n if (!FIRST_LAST_KEYS.includes(code))\n return;\n const items = getItems().filter((item) => !item.disabled);\n const targets = items.map((item) => item.ref);\n if (LAST_KEYS.includes(code)) {\n targets.reverse();\n }\n focusFirst(targets);\n });\n const handleKeydown = (e) => {\n composedKeydown(e);\n onKeydown(e);\n };\n return {\n size,\n rovingFocusGroupRootStyle,\n tabIndex,\n dropdownKls,\n role,\n triggerId,\n dropdownListWrapperRef,\n handleKeydown,\n onBlur,\n onFocus,\n onMousedown\n };\n }\n});\nconst _hoisted_1 = [\"role\", \"aria-labelledby\"];\nfunction _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {\n return openBlock(), createElementBlock(\"ul\", {\n ref: _ctx.dropdownListWrapperRef,\n class: normalizeClass(_ctx.dropdownKls),\n style: normalizeStyle(_ctx.rovingFocusGroupRootStyle),\n tabindex: -1,\n role: _ctx.role,\n \"aria-labelledby\": _ctx.triggerId,\n onBlur: _cache[0] || (_cache[0] = (...args) => _ctx.onBlur && _ctx.onBlur(...args)),\n onFocus: _cache[1] || (_cache[1] = (...args) => _ctx.onFocus && _ctx.onFocus(...args)),\n onKeydown: _cache[2] || (_cache[2] = (...args) => _ctx.handleKeydown && _ctx.handleKeydown(...args)),\n onMousedown: _cache[3] || (_cache[3] = (...args) => _ctx.onMousedown && _ctx.onMousedown(...args))\n }, [\n renderSlot(_ctx.$slots, \"default\")\n ], 46, _hoisted_1);\n}\nvar DropdownMenu = /* @__PURE__ */ _export_sfc(_sfc_main, [[\"render\", _sfc_render], [\"__file\", \"/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-menu.vue\"]]);\n\nexport { DropdownMenu as default };\n//# sourceMappingURL=dropdown-menu.mjs.map\n","import '../../utils/index.mjs';\nimport Dropdown from './src/dropdown2.mjs';\nimport DropdownItem from './src/dropdown-item.mjs';\nimport DropdownMenu from './src/dropdown-menu.mjs';\nexport { DROPDOWN_COLLECTION_INJECTION_KEY, DROPDOWN_COLLECTION_ITEM_INJECTION_KEY, ElCollection, ElCollectionItem, FIRST_KEYS, FIRST_LAST_KEYS, LAST_KEYS, dropdownItemProps, dropdownMenuProps, dropdownProps } from './src/dropdown.mjs';\nexport { DROPDOWN_INJECTION_KEY } from './src/tokens.mjs';\nimport { withInstall, withNoopInstall } from '../../utils/vue/install.mjs';\n\nconst ElDropdown = withInstall(Dropdown, {\n DropdownItem,\n DropdownMenu\n});\nconst ElDropdownItem = withNoopInstall(DropdownItem);\nconst ElDropdownMenu = withNoopInstall(DropdownMenu);\n\nexport { ElDropdown, ElDropdownItem, ElDropdownMenu, ElDropdown as default };\n//# sourceMappingURL=index.mjs.map\n","import { defineComponent, openBlock, createElementBlock, createElementVNode } from 'vue';\nimport _export_sfc from './_virtual/plugin-vue_export-helper.mjs';\n\nconst _sfc_main = defineComponent({\n name: \"ArrowDown\"\n});\nconst _hoisted_1 = {\n viewBox: \"0 0 1024 1024\",\n xmlns: \"http://www.w3.org/2000/svg\"\n};\nconst _hoisted_2 = /* @__PURE__ */ createElementVNode(\"path\", {\n fill: \"currentColor\",\n d: \"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z\"\n}, null, -1);\nconst _hoisted_3 = [\n _hoisted_2\n];\nfunction _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {\n return openBlock(), createElementBlock(\"svg\", _hoisted_1, _hoisted_3);\n}\nvar arrowDown = /* @__PURE__ */ _export_sfc(_sfc_main, [[\"render\", _sfc_render]]);\n\nexport { arrowDown as default };\n"],"names":["_sfc_main","_sfc_render","_ctx","_cache","$props","$setup","$data","$options","renderSlot","Collection","_export_sfc","CollectionItem","COLLECTION_ITEM_SIGN","createCollectionWithScope","name","COLLECTION_NAME","COLLECTION_ITEM_NAME","COLLECTION_INJECTION_KEY","COLLECTION_ITEM_INJECTION_KEY","ElCollection","collectionRef","ref","itemMap","provide","collectionEl","unref","orderedNodes","a","b","ElCollectionItem","_","attrs","collectionItemRef","collectionInjection","inject","onMounted","collectionItemEl","onBeforeUnmount","rovingFocusGroupProps","buildProps","definePropType","ROVING_FOCUS_GROUP_INJECTION_KEY","ROVING_FOCUS_GROUP_ITEM_INJECTION_KEY","MAP_KEY_TO_FOCUS_INTENT","getDirectionAwareKey","key","dir","EVENT_CODE","getFocusIntent","event","orientation","reorderArray","array","atIdx","idx","focusFirst","elements","prevActive","element","CURRENT_TAB_ID_CHANGE_EVT","ENTRY_FOCUS_EVT","EVT_OPTS","defineComponent","props","emit","_a","currentTabbedId","isBackingOut","isClickFocus","rovingFocusGroupRef","getItems","rovingFocusGroupRootStyle","computed","onItemFocus","tabbedId","onItemShiftTab","onMousedown","composeEventHandlers","e","_a2","onFocus","isKeyboardFocus","target","currentTarget","entryFocusEvt","items","item","activeItem","currentItem","candidateNodes","onBlur","handleEntryFocus","args","readonly","toRef","watch","val","useEventListener","ElRovingFocusGroupImpl","_component_el_roving_focus_group_impl","resolveComponent","_component_el_focus_group_collection","openBlock","createBlock","withCtx","createVNode","normalizeProps","guardReactiveProps","ElRovingFocusGroup","loop","id","useId","rovingFocusGroupItemRef","handleMousedown","handleFocus","handleKeydown","shiftKey","focusIntent","currentIdx","nextTick","isCurrentTab","_component_el_roving_focus_collection_item","ElRovingFocusItem","dropdownProps","useTooltipTriggerProps","useTooltipContentProps","dropdownItemProps","iconPropType","dropdownMenuProps","FIRST_KEYS","LAST_KEYS","FIRST_LAST_KEYS","DROPDOWN_INJECTION_KEY","ElButtonGroup","ElButton","ElScrollbar","ElTooltip","OnlyChild","ElIcon","ArrowDown","_instance","getCurrentInstance","ns","useNamespace","t","useLocale","triggeringElementRef","referenceElementRef","popperRef","contentRef","scrollbar","currentTabId","isUsingKeyboard","triggerKeys","wrapStyle","addUnit","dropdownTriggerKls","dropdownSize","defaultTriggerId","triggerId","handleClick","handleClose","handleOpen","useSize","commandHandler","onItemEnter","onItemLeave","contentEl","handleCurrentTabIdChange","handleBeforeShowTooltip","handleShowTooltip","handleBeforeHideTooltip","_b","_component_el_dropdown_collection","_component_el_roving_focus_group","_component_el_scrollbar","_component_el_only_child","_component_el_tooltip","_component_el_button","_component_arrow_down","_component_el_icon","_component_el_button_group","createElementBlock","normalizeClass","createSlots","mergeProps","createCommentVNode","Dropdown","menuRole","dropdownCollectionItemRef","rovingFocusCollectionItemRef","COLLECTION_ITEM_INJECTION_KEY$1","tabIndex","handleItemKeydown","itemRef","composeRefs","role","code","_hoisted_1","Fragment","createElementVNode","resolveDynamicComponent","ElDropdownItemImpl","useDropdown","elDropdown","_elDropdownSize","textContent","handlePointerMove","whenMouse","handlePointerLeave","_c","propsAndAttrs","_component_el_dropdown_item_impl","_component_el_roving_focus_item","_component_el_dropdown_collection_item","DropdownItem","size","focusTrapRef","onKeydown","FOCUS_TRAP_INJECTION_KEY","dropdownCollectionRef","rovingFocusGroupCollectionRef","COLLECTION_INJECTION_KEY$1","dropdownKls","dropdownListWrapperRef","composedKeydown","targets","normalizeStyle","DropdownMenu","ElDropdown","withInstall","ElDropdownItem","withNoopInstall","ElDropdownMenu","_hoisted_2","_hoisted_3","arrowDown"],"mappings":"kiBAGA,MAAMA,GAAY,CAChB,aAAc,EAChB,EACA,SAASC,GAAYC,EAAMC,EAAQC,EAAQC,EAAQC,EAAOC,EAAU,CAClE,OAAOC,EAAWN,EAAK,OAAQ,SAAS,CAC1C,CACA,IAAIO,GAA6BC,EAAYV,GAAW,CAAC,CAAC,SAAUC,EAAW,EAAG,CAAC,SAAU,+FAA+F,CAAC,CAAC,ECN9L,MAAMD,GAAY,CAChB,KAAM,mBACN,aAAc,EAChB,EACA,SAASC,GAAYC,EAAMC,EAAQC,EAAQC,EAAQC,EAAOC,EAAU,CAClE,OAAOC,EAAWN,EAAK,OAAQ,SAAS,CAC1C,CACA,IAAIS,GAAiCD,EAAYV,GAAW,CAAC,CAAC,SAAUC,EAAW,EAAG,CAAC,SAAU,oGAAoG,CAAC,CAAC,ECNvM,MAAMW,GAAuB,0BACvBC,GAA6BC,GAAS,CAC1C,MAAMC,EAAkB,KAAK,OAAAD,EAAI,cAC3BE,EAAuB,GAAG,OAAAD,EAAe,QACzCE,EAA2B,OAAOF,CAAe,EACjDG,EAAgC,OAAOF,CAAoB,EAC3DG,EAAe,CACnB,GAAGV,GACH,KAAMM,EACN,OAAQ,CACN,MAAMK,EAAgBC,EAAI,IAAI,EACxBC,EAA0B,IAAI,IASpCC,EAAQN,EAA0B,CAChC,QAAAK,EACA,SAVe,IAAM,CACrB,MAAME,EAAeC,EAAML,CAAa,EACxC,GAAI,CAACI,EACH,MAAO,GACT,MAAME,EAAe,MAAM,KAAKF,EAAa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C,EAAK,GAAIoM,EAAU,CACnB,CACA,IAAI8B,GAA+B1N,EAAYV,GAAW,CAAC,CAAC,SAAUC,EAAW,EAAG,CAAC,SAAU,gGAAgG,CAAC,CAAC,EC7F5L,MAACoO,GAAaC,GAAY3C,GAAU,CACvC,aAAA4B,GACA,aAAAa,EACF,CAAC,EACKG,GAAiBC,GAAgBjB,EAAY,EAC7CkB,GAAiBD,GAAgBJ,EAAY,ECV7CpO,GAAY8D,EAAgB,CAChC,KAAM,WACR,CAAC,EACKwI,GAAa,CACjB,QAAS,gBACT,MAAO,4BACT,EACMoC,GAA6BlC,GAAmB,OAAQ,CAC5D,KAAM,eACN,EAAG,iNACL,EAAG,KAAM,EAAE,EACLmC,GAAa,CACjBD,EACF,EACA,SAASzO,GAAYC,EAAMC,EAAQC,EAAQC,EAAQC,EAAOC,EAAU,CAClE,OAAO+F,EAAW,EAAEgF,EAAmB,MAAOgB,GAAYqC,EAAU,CACtE,CACG,IAACC,GAA4BlO,GAAYV,GAAW,CAAC,CAAC,SAAUC,EAAW,CAAC,CAAC","x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]}
1
+ {"version":3,"file":"el-dropdown-item-e0275106.js","sources":["../../node_modules/.pnpm/element-plus@2.2.13_vue@3.3.4/node_modules/element-plus/es/components/collection/src/collection2.mjs","../../node_modules/.pnpm/element-plus@2.2.13_vue@3.3.4/node_modules/element-plus/es/components/collection/src/collection-item.mjs","../../node_modules/.pnpm/element-plus@2.2.13_vue@3.3.4/node_modules/element-plus/es/components/collection/src/collection.mjs","../../node_modules/.pnpm/element-plus@2.2.13_vue@3.3.4/node_modules/element-plus/es/components/roving-focus-group/src/roving-focus-group.mjs","../../node_modules/.pnpm/element-plus@2.2.13_vue@3.3.4/node_modules/element-plus/es/components/roving-focus-group/src/tokens.mjs","../../node_modules/.pnpm/element-plus@2.2.13_vue@3.3.4/node_modules/element-plus/es/components/roving-focus-group/src/utils.mjs","../../node_modules/.pnpm/element-plus@2.2.13_vue@3.3.4/node_modules/element-plus/es/components/roving-focus-group/src/roving-focus-group-impl.mjs","../../node_modules/.pnpm/element-plus@2.2.13_vue@3.3.4/node_modules/element-plus/es/components/roving-focus-group/src/roving-focus-group2.mjs","../../node_modules/.pnpm/element-plus@2.2.13_vue@3.3.4/node_modules/element-plus/es/components/roving-focus-group/src/roving-focus-item.mjs","../../node_modules/.pnpm/element-plus@2.2.13_vue@3.3.4/node_modules/element-plus/es/components/dropdown/src/dropdown.mjs","../../node_modules/.pnpm/element-plus@2.2.13_vue@3.3.4/node_modules/element-plus/es/components/dropdown/src/tokens.mjs","../../node_modules/.pnpm/element-plus@2.2.13_vue@3.3.4/node_modules/element-plus/es/components/dropdown/src/dropdown2.mjs","../../node_modules/.pnpm/element-plus@2.2.13_vue@3.3.4/node_modules/element-plus/es/components/dropdown/src/dropdown-item-impl.mjs","../../node_modules/.pnpm/element-plus@2.2.13_vue@3.3.4/node_modules/element-plus/es/components/dropdown/src/useDropdown.mjs","../../node_modules/.pnpm/element-plus@2.2.13_vue@3.3.4/node_modules/element-plus/es/components/dropdown/src/dropdown-item.mjs","../../node_modules/.pnpm/element-plus@2.2.13_vue@3.3.4/node_modules/element-plus/es/components/dropdown/src/dropdown-menu.mjs","../../node_modules/.pnpm/element-plus@2.2.13_vue@3.3.4/node_modules/element-plus/es/components/dropdown/index.mjs","../../node_modules/.pnpm/@element-plus+icons-vue@1.1.4_vue@3.3.4/node_modules/@element-plus/icons-vue/dist/es/arrow-down.mjs"],"sourcesContent":["import { renderSlot } from 'vue';\nimport _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';\n\nconst _sfc_main = {\n inheritAttrs: false\n};\nfunction _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {\n return renderSlot(_ctx.$slots, \"default\");\n}\nvar Collection = /* @__PURE__ */ _export_sfc(_sfc_main, [[\"render\", _sfc_render], [\"__file\", \"/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection.vue\"]]);\n\nexport { Collection as default };\n//# sourceMappingURL=collection2.mjs.map\n","import { renderSlot } from 'vue';\nimport _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';\n\nconst _sfc_main = {\n name: \"ElCollectionItem\",\n inheritAttrs: false\n};\nfunction _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {\n return renderSlot(_ctx.$slots, \"default\");\n}\nvar CollectionItem = /* @__PURE__ */ _export_sfc(_sfc_main, [[\"render\", _sfc_render], [\"__file\", \"/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection-item.vue\"]]);\n\nexport { CollectionItem as default };\n//# sourceMappingURL=collection-item.mjs.map\n","import { ref, unref, provide, inject, onMounted, onBeforeUnmount } from 'vue';\nimport Collection from './collection2.mjs';\nimport CollectionItem from './collection-item.mjs';\n\nconst COLLECTION_ITEM_SIGN = `data-el-collection-item`;\nconst createCollectionWithScope = (name) => {\n const COLLECTION_NAME = `El${name}Collection`;\n const COLLECTION_ITEM_NAME = `${COLLECTION_NAME}Item`;\n const COLLECTION_INJECTION_KEY = Symbol(COLLECTION_NAME);\n const COLLECTION_ITEM_INJECTION_KEY = Symbol(COLLECTION_ITEM_NAME);\n const ElCollection = {\n ...Collection,\n name: COLLECTION_NAME,\n setup() {\n const collectionRef = ref(null);\n const itemMap = /* @__PURE__ */ new Map();\n const getItems = () => {\n const collectionEl = unref(collectionRef);\n if (!collectionEl)\n return [];\n const orderedNodes = Array.from(collectionEl.querySelectorAll(`[${COLLECTION_ITEM_SIGN}]`));\n const items = [...itemMap.values()];\n return items.sort((a, b) => orderedNodes.indexOf(a.ref) - orderedNodes.indexOf(b.ref));\n };\n provide(COLLECTION_INJECTION_KEY, {\n itemMap,\n getItems,\n collectionRef\n });\n }\n };\n const ElCollectionItem = {\n ...CollectionItem,\n name: COLLECTION_ITEM_NAME,\n setup(_, { attrs }) {\n const collectionItemRef = ref(null);\n const collectionInjection = inject(COLLECTION_INJECTION_KEY, void 0);\n provide(COLLECTION_ITEM_INJECTION_KEY, {\n collectionItemRef\n });\n onMounted(() => {\n const collectionItemEl = unref(collectionItemRef);\n if (collectionItemEl) {\n collectionInjection.itemMap.set(collectionItemEl, {\n ref: collectionItemEl,\n ...attrs\n });\n }\n });\n onBeforeUnmount(() => {\n const collectionItemEl = unref(collectionItemRef);\n collectionInjection.itemMap.delete(collectionItemEl);\n });\n }\n };\n return {\n COLLECTION_INJECTION_KEY,\n COLLECTION_ITEM_INJECTION_KEY,\n ElCollection,\n ElCollectionItem\n };\n};\n\nexport { COLLECTION_ITEM_SIGN, createCollectionWithScope };\n//# sourceMappingURL=collection.mjs.map\n","import '../../../utils/index.mjs';\nimport '../../collection/index.mjs';\nimport { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';\nimport { createCollectionWithScope } from '../../collection/src/collection.mjs';\n\nconst rovingFocusGroupProps = buildProps({\n style: { type: definePropType([String, Array, Object]) },\n currentTabId: {\n type: definePropType(String)\n },\n defaultCurrentTabId: String,\n loop: Boolean,\n dir: {\n type: String,\n values: [\"ltr\", \"rtl\"],\n default: \"ltr\"\n },\n orientation: {\n type: definePropType(String)\n },\n onBlur: Function,\n onFocus: Function,\n onMousedown: Function\n});\nconst {\n ElCollection,\n ElCollectionItem,\n COLLECTION_INJECTION_KEY,\n COLLECTION_ITEM_INJECTION_KEY\n} = createCollectionWithScope(\"RovingFocusGroup\");\n\nexport { ElCollection, ElCollectionItem, COLLECTION_INJECTION_KEY as ROVING_FOCUS_COLLECTION_INJECTION_KEY, COLLECTION_ITEM_INJECTION_KEY as ROVING_FOCUS_ITEM_COLLECTION_INJECTION_KEY, rovingFocusGroupProps };\n//# sourceMappingURL=roving-focus-group.mjs.map\n","const ROVING_FOCUS_GROUP_INJECTION_KEY = Symbol(\"elRovingFocusGroup\");\nconst ROVING_FOCUS_GROUP_ITEM_INJECTION_KEY = Symbol(\"elRovingFocusGroupItem\");\n\nexport { ROVING_FOCUS_GROUP_INJECTION_KEY, ROVING_FOCUS_GROUP_ITEM_INJECTION_KEY };\n//# sourceMappingURL=tokens.mjs.map\n","import '../../../constants/index.mjs';\nimport { EVENT_CODE } from '../../../constants/aria.mjs';\n\nconst MAP_KEY_TO_FOCUS_INTENT = {\n ArrowLeft: \"prev\",\n ArrowUp: \"prev\",\n ArrowRight: \"next\",\n ArrowDown: \"next\",\n PageUp: \"first\",\n Home: \"first\",\n PageDown: \"last\",\n End: \"last\"\n};\nconst getDirectionAwareKey = (key, dir) => {\n if (dir !== \"rtl\")\n return key;\n switch (key) {\n case EVENT_CODE.right:\n return EVENT_CODE.left;\n case EVENT_CODE.left:\n return EVENT_CODE.right;\n default:\n return key;\n }\n};\nconst getFocusIntent = (event, orientation, dir) => {\n const key = getDirectionAwareKey(event.key, dir);\n if (orientation === \"vertical\" && [EVENT_CODE.left, EVENT_CODE.right].includes(key))\n return void 0;\n if (orientation === \"horizontal\" && [EVENT_CODE.up, EVENT_CODE.down].includes(key))\n return void 0;\n return MAP_KEY_TO_FOCUS_INTENT[key];\n};\nconst reorderArray = (array, atIdx) => {\n return array.map((_, idx) => array[(idx + atIdx) % array.length]);\n};\nconst focusFirst = (elements) => {\n const { activeElement: prevActive } = document;\n for (const element of elements) {\n if (element === prevActive)\n return;\n element.focus();\n if (prevActive !== document.activeElement)\n return;\n }\n};\n\nexport { focusFirst, getFocusIntent, reorderArray };\n//# sourceMappingURL=utils.mjs.map\n","import { defineComponent, ref, inject, computed, unref, provide, readonly, toRef, watch, renderSlot } from 'vue';\nimport { useEventListener } from '@vueuse/core';\nimport '../../../utils/index.mjs';\nimport { rovingFocusGroupProps, ROVING_FOCUS_COLLECTION_INJECTION_KEY as COLLECTION_INJECTION_KEY } from './roving-focus-group.mjs';\nimport { ROVING_FOCUS_GROUP_INJECTION_KEY } from './tokens.mjs';\nimport { focusFirst } from './utils.mjs';\nimport _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';\nimport { composeEventHandlers } from '../../../utils/dom/event.mjs';\n\nconst CURRENT_TAB_ID_CHANGE_EVT = \"currentTabIdChange\";\nconst ENTRY_FOCUS_EVT = \"rovingFocusGroup.entryFocus\";\nconst EVT_OPTS = { bubbles: false, cancelable: true };\nconst _sfc_main = defineComponent({\n name: \"ElRovingFocusGroupImpl\",\n inheritAttrs: false,\n props: rovingFocusGroupProps,\n emits: [CURRENT_TAB_ID_CHANGE_EVT, \"entryFocus\"],\n setup(props, { emit }) {\n var _a;\n const currentTabbedId = ref((_a = props.currentTabId || props.defaultCurrentTabId) != null ? _a : null);\n const isBackingOut = ref(false);\n const isClickFocus = ref(false);\n const rovingFocusGroupRef = ref(null);\n const { getItems } = inject(COLLECTION_INJECTION_KEY, void 0);\n const rovingFocusGroupRootStyle = computed(() => {\n return [\n {\n outline: \"none\"\n },\n props.style\n ];\n });\n const onItemFocus = (tabbedId) => {\n emit(CURRENT_TAB_ID_CHANGE_EVT, tabbedId);\n };\n const onItemShiftTab = () => {\n isBackingOut.value = true;\n };\n const onMousedown = composeEventHandlers((e) => {\n var _a2;\n (_a2 = props.onMousedown) == null ? void 0 : _a2.call(props, e);\n }, () => {\n isClickFocus.value = true;\n });\n const onFocus = composeEventHandlers((e) => {\n var _a2;\n (_a2 = props.onFocus) == null ? void 0 : _a2.call(props, e);\n }, (e) => {\n const isKeyboardFocus = !unref(isClickFocus);\n const { target, currentTarget } = e;\n if (target === currentTarget && isKeyboardFocus && !unref(isBackingOut)) {\n const entryFocusEvt = new Event(ENTRY_FOCUS_EVT, EVT_OPTS);\n currentTarget == null ? void 0 : currentTarget.dispatchEvent(entryFocusEvt);\n if (!entryFocusEvt.defaultPrevented) {\n const items = getItems().filter((item) => item.focusable);\n const activeItem = items.find((item) => item.active);\n const currentItem = items.find((item) => item.id === unref(currentTabbedId));\n const candidates = [activeItem, currentItem, ...items].filter(Boolean);\n const candidateNodes = candidates.map((item) => item.ref);\n focusFirst(candidateNodes);\n }\n }\n isClickFocus.value = false;\n });\n const onBlur = composeEventHandlers((e) => {\n var _a2;\n (_a2 = props.onBlur) == null ? void 0 : _a2.call(props, e);\n }, () => {\n isBackingOut.value = false;\n });\n const handleEntryFocus = (...args) => {\n emit(\"entryFocus\", ...args);\n };\n provide(ROVING_FOCUS_GROUP_INJECTION_KEY, {\n currentTabbedId: readonly(currentTabbedId),\n loop: toRef(props, \"loop\"),\n tabIndex: computed(() => {\n return unref(isBackingOut) ? -1 : 0;\n }),\n rovingFocusGroupRef,\n rovingFocusGroupRootStyle,\n orientation: toRef(props, \"orientation\"),\n dir: toRef(props, \"dir\"),\n onItemFocus,\n onItemShiftTab,\n onBlur,\n onFocus,\n onMousedown\n });\n watch(() => props.currentTabId, (val) => {\n currentTabbedId.value = val != null ? val : null;\n });\n useEventListener(rovingFocusGroupRef, ENTRY_FOCUS_EVT, handleEntryFocus);\n }\n});\nfunction _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {\n return renderSlot(_ctx.$slots, \"default\");\n}\nvar ElRovingFocusGroupImpl = /* @__PURE__ */ _export_sfc(_sfc_main, [[\"render\", _sfc_render], [\"__file\", \"/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group-impl.vue\"]]);\n\nexport { ElRovingFocusGroupImpl as default };\n//# sourceMappingURL=roving-focus-group-impl.mjs.map\n","import { defineComponent, resolveComponent, openBlock, createBlock, withCtx, createVNode, normalizeProps, guardReactiveProps, renderSlot } from 'vue';\nimport ElRovingFocusGroupImpl from './roving-focus-group-impl.mjs';\nimport { ElCollection } from './roving-focus-group.mjs';\nimport _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';\n\nconst _sfc_main = defineComponent({\n name: \"ElRovingFocusGroup\",\n components: {\n ElFocusGroupCollection: ElCollection,\n ElRovingFocusGroupImpl\n }\n});\nfunction _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {\n const _component_el_roving_focus_group_impl = resolveComponent(\"el-roving-focus-group-impl\");\n const _component_el_focus_group_collection = resolveComponent(\"el-focus-group-collection\");\n return openBlock(), createBlock(_component_el_focus_group_collection, null, {\n default: withCtx(() => [\n createVNode(_component_el_roving_focus_group_impl, normalizeProps(guardReactiveProps(_ctx.$attrs)), {\n default: withCtx(() => [\n renderSlot(_ctx.$slots, \"default\")\n ]),\n _: 3\n }, 16)\n ]),\n _: 3\n });\n}\nvar ElRovingFocusGroup = /* @__PURE__ */ _export_sfc(_sfc_main, [[\"render\", _sfc_render], [\"__file\", \"/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group.vue\"]]);\n\nexport { ElRovingFocusGroup as default };\n//# sourceMappingURL=roving-focus-group2.mjs.map\n","import { defineComponent, inject, ref, unref, nextTick, computed, provide, resolveComponent, openBlock, createBlock, withCtx, renderSlot } from 'vue';\nimport '../../../hooks/index.mjs';\nimport '../../../utils/index.mjs';\nimport '../../../constants/index.mjs';\nimport { ElCollectionItem, ROVING_FOCUS_COLLECTION_INJECTION_KEY as COLLECTION_INJECTION_KEY } from './roving-focus-group.mjs';\nimport { ROVING_FOCUS_GROUP_INJECTION_KEY, ROVING_FOCUS_GROUP_ITEM_INJECTION_KEY } from './tokens.mjs';\nimport { getFocusIntent, reorderArray, focusFirst } from './utils.mjs';\nimport _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';\nimport { useId } from '../../../hooks/use-id/index.mjs';\nimport { composeEventHandlers } from '../../../utils/dom/event.mjs';\nimport { EVENT_CODE } from '../../../constants/aria.mjs';\n\nconst _sfc_main = defineComponent({\n components: {\n ElRovingFocusCollectionItem: ElCollectionItem\n },\n props: {\n focusable: {\n type: Boolean,\n default: true\n },\n active: {\n type: Boolean,\n default: false\n }\n },\n emits: [\"mousedown\", \"focus\", \"keydown\"],\n setup(props, { emit }) {\n const { currentTabbedId, loop, onItemFocus, onItemShiftTab } = inject(ROVING_FOCUS_GROUP_INJECTION_KEY, void 0);\n const { getItems } = inject(COLLECTION_INJECTION_KEY, void 0);\n const id = useId();\n const rovingFocusGroupItemRef = ref(null);\n const handleMousedown = composeEventHandlers((e) => {\n emit(\"mousedown\", e);\n }, (e) => {\n if (!props.focusable) {\n e.preventDefault();\n } else {\n onItemFocus(unref(id));\n }\n });\n const handleFocus = composeEventHandlers((e) => {\n emit(\"focus\", e);\n }, () => {\n onItemFocus(unref(id));\n });\n const handleKeydown = composeEventHandlers((e) => {\n emit(\"keydown\", e);\n }, (e) => {\n const { key, shiftKey, target, currentTarget } = e;\n if (key === EVENT_CODE.tab && shiftKey) {\n onItemShiftTab();\n return;\n }\n if (target !== currentTarget)\n return;\n const focusIntent = getFocusIntent(e);\n if (focusIntent) {\n e.preventDefault();\n const items = getItems().filter((item) => item.focusable);\n let elements = items.map((item) => item.ref);\n switch (focusIntent) {\n case \"last\": {\n elements.reverse();\n break;\n }\n case \"prev\":\n case \"next\": {\n if (focusIntent === \"prev\") {\n elements.reverse();\n }\n const currentIdx = elements.indexOf(currentTarget);\n elements = loop.value ? reorderArray(elements, currentIdx + 1) : elements.slice(currentIdx + 1);\n break;\n }\n default: {\n break;\n }\n }\n nextTick(() => {\n focusFirst(elements);\n });\n }\n });\n const isCurrentTab = computed(() => currentTabbedId.value === unref(id));\n provide(ROVING_FOCUS_GROUP_ITEM_INJECTION_KEY, {\n rovingFocusGroupItemRef,\n tabIndex: computed(() => unref(isCurrentTab) ? 0 : -1),\n handleMousedown,\n handleFocus,\n handleKeydown\n });\n return {\n id,\n handleKeydown,\n handleFocus,\n handleMousedown\n };\n }\n});\nfunction _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {\n const _component_el_roving_focus_collection_item = resolveComponent(\"el-roving-focus-collection-item\");\n return openBlock(), createBlock(_component_el_roving_focus_collection_item, {\n id: _ctx.id,\n focusable: _ctx.focusable,\n active: _ctx.active\n }, {\n default: withCtx(() => [\n renderSlot(_ctx.$slots, \"default\")\n ]),\n _: 3\n }, 8, [\"id\", \"focusable\", \"active\"]);\n}\nvar ElRovingFocusItem = /* @__PURE__ */ _export_sfc(_sfc_main, [[\"render\", _sfc_render], [\"__file\", \"/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-item.vue\"]]);\n\nexport { ElRovingFocusItem as default };\n//# sourceMappingURL=roving-focus-item.mjs.map\n","import '../../../utils/index.mjs';\nimport '../../../constants/index.mjs';\nimport '../../collection/index.mjs';\nimport '../../tooltip/index.mjs';\nimport { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';\nimport { useTooltipTriggerProps, useTooltipContentProps } from '../../tooltip/src/tooltip.mjs';\nimport { iconPropType } from '../../../utils/vue/icon.mjs';\nimport { EVENT_CODE } from '../../../constants/aria.mjs';\nimport { createCollectionWithScope } from '../../collection/src/collection.mjs';\n\nconst dropdownProps = buildProps({\n trigger: useTooltipTriggerProps.trigger,\n effect: {\n ...useTooltipContentProps.effect,\n default: \"light\"\n },\n type: {\n type: definePropType(String)\n },\n placement: {\n type: definePropType(String),\n default: \"bottom\"\n },\n popperOptions: {\n type: definePropType(Object),\n default: () => ({})\n },\n id: String,\n size: {\n type: String,\n default: \"\"\n },\n splitButton: Boolean,\n hideOnClick: {\n type: Boolean,\n default: true\n },\n loop: {\n type: Boolean,\n default: true\n },\n showTimeout: {\n type: Number,\n default: 150\n },\n hideTimeout: {\n type: Number,\n default: 150\n },\n tabindex: {\n type: definePropType([Number, String]),\n default: 0\n },\n maxHeight: {\n type: definePropType([Number, String]),\n default: \"\"\n },\n popperClass: {\n type: String,\n default: \"\"\n },\n disabled: {\n type: Boolean,\n default: false\n },\n role: {\n type: String,\n default: \"menu\"\n },\n buttonProps: {\n type: definePropType(Object)\n }\n});\nconst dropdownItemProps = buildProps({\n command: {\n type: [Object, String, Number],\n default: () => ({})\n },\n disabled: Boolean,\n divided: Boolean,\n textValue: String,\n icon: {\n type: iconPropType\n }\n});\nconst dropdownMenuProps = buildProps({\n onKeydown: { type: definePropType(Function) }\n});\nconst FIRST_KEYS = [\n EVENT_CODE.down,\n EVENT_CODE.pageDown,\n EVENT_CODE.home\n];\nconst LAST_KEYS = [EVENT_CODE.up, EVENT_CODE.pageUp, EVENT_CODE.end];\nconst FIRST_LAST_KEYS = [...FIRST_KEYS, ...LAST_KEYS];\nconst {\n ElCollection,\n ElCollectionItem,\n COLLECTION_INJECTION_KEY,\n COLLECTION_ITEM_INJECTION_KEY\n} = createCollectionWithScope(\"Dropdown\");\n\nexport { COLLECTION_INJECTION_KEY as DROPDOWN_COLLECTION_INJECTION_KEY, COLLECTION_ITEM_INJECTION_KEY as DROPDOWN_COLLECTION_ITEM_INJECTION_KEY, ElCollection, ElCollectionItem, FIRST_KEYS, FIRST_LAST_KEYS, LAST_KEYS, dropdownItemProps, dropdownMenuProps, dropdownProps };\n//# sourceMappingURL=dropdown.mjs.map\n","const DROPDOWN_INJECTION_KEY = Symbol(\"elDropdown\");\n\nexport { DROPDOWN_INJECTION_KEY };\n//# sourceMappingURL=tokens.mjs.map\n","import { defineComponent, getCurrentInstance, ref, computed, unref, provide, toRef, resolveComponent, openBlock, createElementBlock, normalizeClass, createVNode, createSlots, withCtx, renderSlot, createBlock, mergeProps, createCommentVNode } from 'vue';\nimport { ElButton } from '../../button/index.mjs';\nimport { ElTooltip } from '../../tooltip/index.mjs';\nimport { ElScrollbar } from '../../scrollbar/index.mjs';\nimport { ElIcon } from '../../icon/index.mjs';\nimport '../../roving-focus-group/index.mjs';\nimport '../../slot/index.mjs';\nimport '../../../utils/index.mjs';\nimport { ArrowDown } from '@element-plus/icons-vue';\nimport '../../../constants/index.mjs';\nimport '../../../hooks/index.mjs';\nimport { ElCollection, dropdownProps } from './dropdown.mjs';\nimport { DROPDOWN_INJECTION_KEY } from './tokens.mjs';\nimport _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';\nimport ElRovingFocusGroup from '../../roving-focus-group/src/roving-focus-group2.mjs';\nimport { OnlyChild } from '../../slot/src/only-child.mjs';\nimport { useNamespace } from '../../../hooks/use-namespace/index.mjs';\nimport { useLocale } from '../../../hooks/use-locale/index.mjs';\nimport { EVENT_CODE } from '../../../constants/aria.mjs';\nimport { addUnit } from '../../../utils/dom/style.mjs';\nimport { useId } from '../../../hooks/use-id/index.mjs';\nimport { useSize } from '../../../hooks/use-common-props/index.mjs';\n\nconst { ButtonGroup: ElButtonGroup } = ElButton;\nconst _sfc_main = defineComponent({\n name: \"ElDropdown\",\n components: {\n ElButton,\n ElButtonGroup,\n ElScrollbar,\n ElDropdownCollection: ElCollection,\n ElTooltip,\n ElRovingFocusGroup,\n ElOnlyChild: OnlyChild,\n ElIcon,\n ArrowDown\n },\n props: dropdownProps,\n emits: [\"visible-change\", \"click\", \"command\"],\n setup(props, { emit }) {\n const _instance = getCurrentInstance();\n const ns = useNamespace(\"dropdown\");\n const { t } = useLocale();\n const triggeringElementRef = ref();\n const referenceElementRef = ref();\n const popperRef = ref(null);\n const contentRef = ref(null);\n const scrollbar = ref(null);\n const currentTabId = ref(null);\n const isUsingKeyboard = ref(false);\n const triggerKeys = [EVENT_CODE.enter, EVENT_CODE.space, EVENT_CODE.down];\n const wrapStyle = computed(() => ({\n maxHeight: addUnit(props.maxHeight)\n }));\n const dropdownTriggerKls = computed(() => [ns.m(dropdownSize.value)]);\n const defaultTriggerId = useId().value;\n const triggerId = computed(() => {\n return props.id || defaultTriggerId;\n });\n function handleClick() {\n handleClose();\n }\n function handleClose() {\n var _a;\n (_a = popperRef.value) == null ? void 0 : _a.onClose();\n }\n function handleOpen() {\n var _a;\n (_a = popperRef.value) == null ? void 0 : _a.onOpen();\n }\n const dropdownSize = useSize();\n function commandHandler(...args) {\n emit(\"command\", ...args);\n }\n function onItemEnter() {\n }\n function onItemLeave() {\n const contentEl = unref(contentRef);\n contentEl == null ? void 0 : contentEl.focus();\n currentTabId.value = null;\n }\n function handleCurrentTabIdChange(id) {\n currentTabId.value = id;\n }\n function handleEntryFocus(e) {\n if (!isUsingKeyboard.value) {\n e.preventDefault();\n e.stopImmediatePropagation();\n }\n }\n function handleBeforeShowTooltip() {\n emit(\"visible-change\", true);\n }\n function handleShowTooltip(event) {\n if ((event == null ? void 0 : event.type) === \"keydown\") {\n contentRef.value.focus();\n }\n }\n function handleBeforeHideTooltip() {\n emit(\"visible-change\", false);\n }\n provide(DROPDOWN_INJECTION_KEY, {\n contentRef,\n role: computed(() => props.role),\n triggerId,\n isUsingKeyboard,\n onItemEnter,\n onItemLeave\n });\n provide(\"elDropdown\", {\n instance: _instance,\n dropdownSize,\n handleClick,\n commandHandler,\n trigger: toRef(props, \"trigger\"),\n hideOnClick: toRef(props, \"hideOnClick\")\n });\n const onFocusAfterTrapped = (e) => {\n var _a, _b;\n e.preventDefault();\n (_b = (_a = contentRef.value) == null ? void 0 : _a.focus) == null ? void 0 : _b.call(_a, {\n preventScroll: true\n });\n };\n const handlerMainButtonClick = (event) => {\n emit(\"click\", event);\n };\n return {\n t,\n ns,\n scrollbar,\n wrapStyle,\n dropdownTriggerKls,\n dropdownSize,\n triggerId,\n triggerKeys,\n currentTabId,\n handleCurrentTabIdChange,\n handlerMainButtonClick,\n handleEntryFocus,\n handleClose,\n handleOpen,\n handleBeforeShowTooltip,\n handleShowTooltip,\n handleBeforeHideTooltip,\n onFocusAfterTrapped,\n popperRef,\n contentRef,\n triggeringElementRef,\n referenceElementRef\n };\n }\n});\nfunction _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {\n var _a;\n const _component_el_dropdown_collection = resolveComponent(\"el-dropdown-collection\");\n const _component_el_roving_focus_group = resolveComponent(\"el-roving-focus-group\");\n const _component_el_scrollbar = resolveComponent(\"el-scrollbar\");\n const _component_el_only_child = resolveComponent(\"el-only-child\");\n const _component_el_tooltip = resolveComponent(\"el-tooltip\");\n const _component_el_button = resolveComponent(\"el-button\");\n const _component_arrow_down = resolveComponent(\"arrow-down\");\n const _component_el_icon = resolveComponent(\"el-icon\");\n const _component_el_button_group = resolveComponent(\"el-button-group\");\n return openBlock(), createElementBlock(\"div\", {\n class: normalizeClass([_ctx.ns.b(), _ctx.ns.is(\"disabled\", _ctx.disabled)])\n }, [\n createVNode(_component_el_tooltip, {\n ref: \"popperRef\",\n role: _ctx.role,\n effect: _ctx.effect,\n \"fallback-placements\": [\"bottom\", \"top\"],\n \"popper-options\": _ctx.popperOptions,\n \"gpu-acceleration\": false,\n \"hide-after\": _ctx.trigger === \"hover\" ? _ctx.hideTimeout : 0,\n \"manual-mode\": true,\n placement: _ctx.placement,\n \"popper-class\": [_ctx.ns.e(\"popper\"), _ctx.popperClass],\n \"reference-element\": (_a = _ctx.referenceElementRef) == null ? void 0 : _a.$el,\n trigger: _ctx.trigger,\n \"trigger-keys\": _ctx.triggerKeys,\n \"trigger-target-el\": _ctx.contentRef,\n \"show-after\": _ctx.trigger === \"hover\" ? _ctx.showTimeout : 0,\n \"stop-popper-mouse-event\": false,\n \"virtual-ref\": _ctx.triggeringElementRef,\n \"virtual-triggering\": _ctx.splitButton,\n disabled: _ctx.disabled,\n transition: `${_ctx.ns.namespace.value}-zoom-in-top`,\n teleported: \"\",\n pure: \"\",\n persistent: \"\",\n onBeforeShow: _ctx.handleBeforeShowTooltip,\n onShow: _ctx.handleShowTooltip,\n onBeforeHide: _ctx.handleBeforeHideTooltip\n }, createSlots({\n content: withCtx(() => [\n createVNode(_component_el_scrollbar, {\n ref: \"scrollbar\",\n \"wrap-style\": _ctx.wrapStyle,\n tag: \"div\",\n \"view-class\": _ctx.ns.e(\"list\")\n }, {\n default: withCtx(() => [\n createVNode(_component_el_roving_focus_group, {\n loop: _ctx.loop,\n \"current-tab-id\": _ctx.currentTabId,\n orientation: \"horizontal\",\n onCurrentTabIdChange: _ctx.handleCurrentTabIdChange,\n onEntryFocus: _ctx.handleEntryFocus\n }, {\n default: withCtx(() => [\n createVNode(_component_el_dropdown_collection, null, {\n default: withCtx(() => [\n renderSlot(_ctx.$slots, \"dropdown\")\n ]),\n _: 3\n })\n ]),\n _: 3\n }, 8, [\"loop\", \"current-tab-id\", \"onCurrentTabIdChange\", \"onEntryFocus\"])\n ]),\n _: 3\n }, 8, [\"wrap-style\", \"view-class\"])\n ]),\n _: 2\n }, [\n !_ctx.splitButton ? {\n name: \"default\",\n fn: withCtx(() => [\n createVNode(_component_el_only_child, {\n id: _ctx.triggerId,\n role: \"button\",\n tabindex: _ctx.tabindex\n }, {\n default: withCtx(() => [\n renderSlot(_ctx.$slots, \"default\")\n ]),\n _: 3\n }, 8, [\"id\", \"tabindex\"])\n ])\n } : void 0\n ]), 1032, [\"role\", \"effect\", \"popper-options\", \"hide-after\", \"placement\", \"popper-class\", \"reference-element\", \"trigger\", \"trigger-keys\", \"trigger-target-el\", \"show-after\", \"virtual-ref\", \"virtual-triggering\", \"disabled\", \"transition\", \"onBeforeShow\", \"onShow\", \"onBeforeHide\"]),\n _ctx.splitButton ? (openBlock(), createBlock(_component_el_button_group, { key: 0 }, {\n default: withCtx(() => [\n createVNode(_component_el_button, mergeProps({ ref: \"referenceElementRef\" }, _ctx.buttonProps, {\n size: _ctx.dropdownSize,\n type: _ctx.type,\n disabled: _ctx.disabled,\n tabindex: _ctx.tabindex,\n onClick: _ctx.handlerMainButtonClick\n }), {\n default: withCtx(() => [\n renderSlot(_ctx.$slots, \"default\")\n ]),\n _: 3\n }, 16, [\"size\", \"type\", \"disabled\", \"tabindex\", \"onClick\"]),\n createVNode(_component_el_button, mergeProps({\n id: _ctx.triggerId,\n ref: \"triggeringElementRef\"\n }, _ctx.buttonProps, {\n role: \"button\",\n size: _ctx.dropdownSize,\n type: _ctx.type,\n class: _ctx.ns.e(\"caret-button\"),\n disabled: _ctx.disabled,\n tabindex: _ctx.tabindex,\n \"aria-label\": _ctx.t(\"el.dropdown.toggleDropdown\")\n }), {\n default: withCtx(() => [\n createVNode(_component_el_icon, {\n class: normalizeClass(_ctx.ns.e(\"icon\"))\n }, {\n default: withCtx(() => [\n createVNode(_component_arrow_down)\n ]),\n _: 1\n }, 8, [\"class\"])\n ]),\n _: 1\n }, 16, [\"id\", \"size\", \"type\", \"class\", \"disabled\", \"tabindex\", \"aria-label\"])\n ]),\n _: 3\n })) : createCommentVNode(\"v-if\", true)\n ], 2);\n}\nvar Dropdown = /* @__PURE__ */ _export_sfc(_sfc_main, [[\"render\", _sfc_render], [\"__file\", \"/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown.vue\"]]);\n\nexport { Dropdown as default };\n//# sourceMappingURL=dropdown2.mjs.map\n","import { defineComponent, inject, computed, resolveComponent, openBlock, createElementBlock, Fragment, mergeProps, createCommentVNode, createElementVNode, createBlock, withCtx, resolveDynamicComponent, renderSlot } from 'vue';\nimport '../../roving-focus-group/index.mjs';\nimport '../../collection/index.mjs';\nimport { ElIcon } from '../../icon/index.mjs';\nimport '../../../hooks/index.mjs';\nimport '../../../utils/index.mjs';\nimport '../../../constants/index.mjs';\nimport { dropdownItemProps, DROPDOWN_COLLECTION_ITEM_INJECTION_KEY as COLLECTION_ITEM_INJECTION_KEY } from './dropdown.mjs';\nimport { DROPDOWN_INJECTION_KEY } from './tokens.mjs';\nimport _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';\nimport { useNamespace } from '../../../hooks/use-namespace/index.mjs';\nimport { ROVING_FOCUS_ITEM_COLLECTION_INJECTION_KEY as COLLECTION_ITEM_INJECTION_KEY$1 } from '../../roving-focus-group/src/roving-focus-group.mjs';\nimport { ROVING_FOCUS_GROUP_ITEM_INJECTION_KEY } from '../../roving-focus-group/src/tokens.mjs';\nimport { composeRefs } from '../../../utils/vue/refs.mjs';\nimport { composeEventHandlers } from '../../../utils/dom/event.mjs';\nimport { EVENT_CODE } from '../../../constants/aria.mjs';\nimport { COLLECTION_ITEM_SIGN } from '../../collection/src/collection.mjs';\n\nconst _sfc_main = defineComponent({\n name: \"DropdownItemImpl\",\n components: {\n ElIcon\n },\n props: dropdownItemProps,\n emits: [\"pointermove\", \"pointerleave\", \"click\", \"clickimpl\"],\n setup(_, { emit }) {\n const ns = useNamespace(\"dropdown\");\n const { role: menuRole } = inject(DROPDOWN_INJECTION_KEY, void 0);\n const { collectionItemRef: dropdownCollectionItemRef } = inject(COLLECTION_ITEM_INJECTION_KEY, void 0);\n const { collectionItemRef: rovingFocusCollectionItemRef } = inject(COLLECTION_ITEM_INJECTION_KEY$1, void 0);\n const {\n rovingFocusGroupItemRef,\n tabIndex,\n handleFocus,\n handleKeydown: handleItemKeydown,\n handleMousedown\n } = inject(ROVING_FOCUS_GROUP_ITEM_INJECTION_KEY, void 0);\n const itemRef = composeRefs(dropdownCollectionItemRef, rovingFocusCollectionItemRef, rovingFocusGroupItemRef);\n const role = computed(() => {\n if (menuRole.value === \"menu\") {\n return \"menuitem\";\n } else if (menuRole.value === \"navigation\") {\n return \"link\";\n }\n return \"button\";\n });\n const handleKeydown = composeEventHandlers((e) => {\n const { code } = e;\n if (code === EVENT_CODE.enter || code === EVENT_CODE.space) {\n e.preventDefault();\n e.stopImmediatePropagation();\n emit(\"clickimpl\", e);\n return true;\n }\n }, handleItemKeydown);\n return {\n ns,\n itemRef,\n dataset: {\n [COLLECTION_ITEM_SIGN]: \"\"\n },\n role,\n tabIndex,\n handleFocus,\n handleKeydown,\n handleMousedown\n };\n }\n});\nconst _hoisted_1 = [\"aria-disabled\", \"tabindex\", \"role\"];\nfunction _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {\n const _component_el_icon = resolveComponent(\"el-icon\");\n return openBlock(), createElementBlock(Fragment, null, [\n _ctx.divided ? (openBlock(), createElementBlock(\"li\", mergeProps({\n key: 0,\n role: \"separator\",\n class: _ctx.ns.bem(\"menu\", \"item\", \"divided\")\n }, _ctx.$attrs), null, 16)) : createCommentVNode(\"v-if\", true),\n createElementVNode(\"li\", mergeProps({ ref: _ctx.itemRef }, { ..._ctx.dataset, ..._ctx.$attrs }, {\n \"aria-disabled\": _ctx.disabled,\n class: [_ctx.ns.be(\"menu\", \"item\"), _ctx.ns.is(\"disabled\", _ctx.disabled)],\n tabindex: _ctx.tabIndex,\n role: _ctx.role,\n onClick: _cache[0] || (_cache[0] = (e) => _ctx.$emit(\"clickimpl\", e)),\n onFocus: _cache[1] || (_cache[1] = (...args) => _ctx.handleFocus && _ctx.handleFocus(...args)),\n onKeydown: _cache[2] || (_cache[2] = (...args) => _ctx.handleKeydown && _ctx.handleKeydown(...args)),\n onMousedown: _cache[3] || (_cache[3] = (...args) => _ctx.handleMousedown && _ctx.handleMousedown(...args)),\n onPointermove: _cache[4] || (_cache[4] = (e) => _ctx.$emit(\"pointermove\", e)),\n onPointerleave: _cache[5] || (_cache[5] = (e) => _ctx.$emit(\"pointerleave\", e))\n }), [\n _ctx.icon ? (openBlock(), createBlock(_component_el_icon, { key: 0 }, {\n default: withCtx(() => [\n (openBlock(), createBlock(resolveDynamicComponent(_ctx.icon)))\n ]),\n _: 1\n })) : createCommentVNode(\"v-if\", true),\n renderSlot(_ctx.$slots, \"default\")\n ], 16, _hoisted_1)\n ], 64);\n}\nvar ElDropdownItemImpl = /* @__PURE__ */ _export_sfc(_sfc_main, [[\"render\", _sfc_render], [\"__file\", \"/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item-impl.vue\"]]);\n\nexport { ElDropdownItemImpl as default };\n//# sourceMappingURL=dropdown-item-impl.mjs.map\n","import { inject, computed, ref } from 'vue';\nimport '../../../utils/index.mjs';\nimport '../../../constants/index.mjs';\nimport '../../../hooks/index.mjs';\nimport { useNamespace } from '../../../hooks/use-namespace/index.mjs';\nimport { generateId } from '../../../utils/rand.mjs';\nimport { EVENT_CODE } from '../../../constants/aria.mjs';\nimport { addClass } from '../../../utils/dom/style.mjs';\n\nconst useDropdown = () => {\n const elDropdown = inject(\"elDropdown\", {});\n const _elDropdownSize = computed(() => elDropdown == null ? void 0 : elDropdown.dropdownSize);\n return {\n elDropdown,\n _elDropdownSize\n };\n};\nconst initDropdownDomEvent = (dropdownChildren, triggerElm, _instance) => {\n const ns = useNamespace(\"dropdown\");\n const menuItems = ref(null);\n const menuItemsArray = ref(null);\n const dropdownElm = ref(null);\n const listId = ref(`dropdown-menu-${generateId()}`);\n dropdownElm.value = dropdownChildren == null ? void 0 : dropdownChildren.subTree.el;\n function removeTabindex() {\n var _a;\n triggerElm.setAttribute(\"tabindex\", \"-1\");\n (_a = menuItemsArray.value) == null ? void 0 : _a.forEach((item) => {\n item.setAttribute(\"tabindex\", \"-1\");\n });\n }\n function resetTabindex(ele) {\n removeTabindex();\n ele == null ? void 0 : ele.setAttribute(\"tabindex\", \"0\");\n }\n function handleTriggerKeyDown(ev) {\n const code = ev.code;\n if ([EVENT_CODE.up, EVENT_CODE.down].includes(code)) {\n removeTabindex();\n resetTabindex(menuItems.value[0]);\n menuItems.value[0].focus();\n ev.preventDefault();\n ev.stopPropagation();\n } else if (code === EVENT_CODE.enter) {\n _instance.handleClick();\n } else if ([EVENT_CODE.tab, EVENT_CODE.esc].includes(code)) {\n _instance.hide();\n }\n }\n function handleItemKeyDown(ev) {\n const code = ev.code;\n const target = ev.target;\n const currentIndex = menuItemsArray.value.indexOf(target);\n const max = menuItemsArray.value.length - 1;\n let nextIndex;\n if ([EVENT_CODE.up, EVENT_CODE.down].includes(code)) {\n if (code === EVENT_CODE.up) {\n nextIndex = currentIndex !== 0 ? currentIndex - 1 : 0;\n } else {\n nextIndex = currentIndex < max ? currentIndex + 1 : max;\n }\n removeTabindex();\n resetTabindex(menuItems.value[nextIndex]);\n menuItems.value[nextIndex].focus();\n ev.preventDefault();\n ev.stopPropagation();\n } else if (code === EVENT_CODE.enter) {\n triggerElmFocus();\n target.click();\n if (_instance.props.hideOnClick) {\n _instance.hide();\n }\n } else if ([EVENT_CODE.tab, EVENT_CODE.esc].includes(code)) {\n _instance.hide();\n triggerElmFocus();\n }\n }\n function initAria() {\n dropdownElm.value.setAttribute(\"id\", listId.value);\n triggerElm.setAttribute(\"aria-haspopup\", \"list\");\n triggerElm.setAttribute(\"aria-controls\", listId.value);\n if (!_instance.props.splitButton) {\n triggerElm.setAttribute(\"role\", \"button\");\n triggerElm.setAttribute(\"tabindex\", _instance.props.tabindex);\n addClass(triggerElm, ns.b(\"selfdefine\"));\n }\n }\n function initEvent() {\n var _a;\n triggerElm == null ? void 0 : triggerElm.addEventListener(\"keydown\", handleTriggerKeyDown);\n (_a = dropdownElm.value) == null ? void 0 : _a.addEventListener(\"keydown\", handleItemKeyDown, true);\n }\n function initDomOperation() {\n menuItems.value = dropdownElm.value.querySelectorAll(\"[tabindex='-1']\");\n menuItemsArray.value = Array.from(menuItems.value);\n initEvent();\n initAria();\n }\n function triggerElmFocus() {\n triggerElm.focus();\n }\n initDomOperation();\n};\n\nexport { initDropdownDomEvent, useDropdown };\n//# sourceMappingURL=useDropdown.mjs.map\n","import { defineComponent, getCurrentInstance, ref, computed, unref, inject, resolveComponent, openBlock, createBlock, withCtx, createVNode, mergeProps, renderSlot } from 'vue';\nimport '../../roving-focus-group/index.mjs';\nimport '../../../utils/index.mjs';\nimport ElDropdownItemImpl from './dropdown-item-impl.mjs';\nimport { useDropdown } from './useDropdown.mjs';\nimport { ElCollectionItem, dropdownItemProps } from './dropdown.mjs';\nimport { DROPDOWN_INJECTION_KEY } from './tokens.mjs';\nimport _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';\nimport ElRovingFocusItem from '../../roving-focus-group/src/roving-focus-item.mjs';\nimport { composeEventHandlers, whenMouse } from '../../../utils/dom/event.mjs';\n\nconst _sfc_main = defineComponent({\n name: \"ElDropdownItem\",\n components: {\n ElDropdownCollectionItem: ElCollectionItem,\n ElRovingFocusItem,\n ElDropdownItemImpl\n },\n inheritAttrs: false,\n props: dropdownItemProps,\n emits: [\"pointermove\", \"pointerleave\", \"click\"],\n setup(props, { emit, attrs }) {\n const { elDropdown } = useDropdown();\n const _instance = getCurrentInstance();\n const itemRef = ref(null);\n const textContent = computed(() => {\n var _a, _b;\n return (_b = (_a = unref(itemRef)) == null ? void 0 : _a.textContent) != null ? _b : \"\";\n });\n const { onItemEnter, onItemLeave } = inject(DROPDOWN_INJECTION_KEY, void 0);\n const handlePointerMove = composeEventHandlers((e) => {\n emit(\"pointermove\", e);\n return e.defaultPrevented;\n }, whenMouse((e) => {\n var _a;\n if (props.disabled) {\n onItemLeave(e);\n } else {\n onItemEnter(e);\n if (!e.defaultPrevented) {\n ;\n (_a = e.currentTarget) == null ? void 0 : _a.focus();\n }\n }\n }));\n const handlePointerLeave = composeEventHandlers((e) => {\n emit(\"pointerleave\", e);\n return e.defaultPrevented;\n }, whenMouse((e) => {\n onItemLeave(e);\n }));\n const handleClick = composeEventHandlers((e) => {\n emit(\"click\", e);\n return e.type !== \"keydown\" && e.defaultPrevented;\n }, (e) => {\n var _a, _b, _c;\n if (props.disabled) {\n e.stopImmediatePropagation();\n return;\n }\n if ((_a = elDropdown == null ? void 0 : elDropdown.hideOnClick) == null ? void 0 : _a.value) {\n (_b = elDropdown.handleClick) == null ? void 0 : _b.call(elDropdown);\n }\n (_c = elDropdown.commandHandler) == null ? void 0 : _c.call(elDropdown, props.command, _instance, e);\n });\n const propsAndAttrs = computed(() => {\n return { ...props, ...attrs };\n });\n return {\n handleClick,\n handlePointerMove,\n handlePointerLeave,\n textContent,\n propsAndAttrs\n };\n }\n});\nfunction _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {\n var _a;\n const _component_el_dropdown_item_impl = resolveComponent(\"el-dropdown-item-impl\");\n const _component_el_roving_focus_item = resolveComponent(\"el-roving-focus-item\");\n const _component_el_dropdown_collection_item = resolveComponent(\"el-dropdown-collection-item\");\n return openBlock(), createBlock(_component_el_dropdown_collection_item, {\n disabled: _ctx.disabled,\n \"text-value\": (_a = _ctx.textValue) != null ? _a : _ctx.textContent\n }, {\n default: withCtx(() => [\n createVNode(_component_el_roving_focus_item, {\n focusable: !_ctx.disabled\n }, {\n default: withCtx(() => [\n createVNode(_component_el_dropdown_item_impl, mergeProps(_ctx.propsAndAttrs, {\n onPointerleave: _ctx.handlePointerLeave,\n onPointermove: _ctx.handlePointerMove,\n onClickimpl: _ctx.handleClick\n }), {\n default: withCtx(() => [\n renderSlot(_ctx.$slots, \"default\")\n ]),\n _: 3\n }, 16, [\"onPointerleave\", \"onPointermove\", \"onClickimpl\"])\n ]),\n _: 3\n }, 8, [\"focusable\"])\n ]),\n _: 3\n }, 8, [\"disabled\", \"text-value\"]);\n}\nvar DropdownItem = /* @__PURE__ */ _export_sfc(_sfc_main, [[\"render\", _sfc_render], [\"__file\", \"/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item.vue\"]]);\n\nexport { DropdownItem as default };\n//# sourceMappingURL=dropdown-item.mjs.map\n","import { defineComponent, inject, computed, unref, openBlock, createElementBlock, normalizeClass, normalizeStyle, renderSlot } from 'vue';\nimport '../../../utils/index.mjs';\nimport '../../../constants/index.mjs';\nimport '../../focus-trap/index.mjs';\nimport '../../roving-focus-group/index.mjs';\nimport '../../../hooks/index.mjs';\nimport { DROPDOWN_INJECTION_KEY } from './tokens.mjs';\nimport { dropdownMenuProps, DROPDOWN_COLLECTION_INJECTION_KEY as COLLECTION_INJECTION_KEY, FIRST_LAST_KEYS, LAST_KEYS } from './dropdown.mjs';\nimport { useDropdown } from './useDropdown.mjs';\nimport _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';\nimport { useNamespace } from '../../../hooks/use-namespace/index.mjs';\nimport { FOCUS_TRAP_INJECTION_KEY } from '../../focus-trap/src/tokens.mjs';\nimport { ROVING_FOCUS_GROUP_INJECTION_KEY } from '../../roving-focus-group/src/tokens.mjs';\nimport { ROVING_FOCUS_COLLECTION_INJECTION_KEY as COLLECTION_INJECTION_KEY$1 } from '../../roving-focus-group/src/roving-focus-group.mjs';\nimport { composeRefs } from '../../../utils/vue/refs.mjs';\nimport { composeEventHandlers } from '../../../utils/dom/event.mjs';\nimport { EVENT_CODE } from '../../../constants/aria.mjs';\nimport { focusFirst } from '../../roving-focus-group/src/utils.mjs';\n\nconst _sfc_main = defineComponent({\n name: \"ElDropdownMenu\",\n props: dropdownMenuProps,\n setup(props) {\n const ns = useNamespace(\"dropdown\");\n const { _elDropdownSize } = useDropdown();\n const size = _elDropdownSize.value;\n const { focusTrapRef, onKeydown } = inject(FOCUS_TRAP_INJECTION_KEY, void 0);\n const { contentRef, role, triggerId } = inject(DROPDOWN_INJECTION_KEY, void 0);\n const { collectionRef: dropdownCollectionRef, getItems } = inject(COLLECTION_INJECTION_KEY, void 0);\n const {\n rovingFocusGroupRef,\n rovingFocusGroupRootStyle,\n tabIndex,\n onBlur,\n onFocus,\n onMousedown\n } = inject(ROVING_FOCUS_GROUP_INJECTION_KEY, void 0);\n const { collectionRef: rovingFocusGroupCollectionRef } = inject(COLLECTION_INJECTION_KEY$1, void 0);\n const dropdownKls = computed(() => {\n return [ns.b(\"menu\"), ns.bm(\"menu\", size == null ? void 0 : size.value)];\n });\n const dropdownListWrapperRef = composeRefs(contentRef, dropdownCollectionRef, focusTrapRef, rovingFocusGroupRef, rovingFocusGroupCollectionRef);\n const composedKeydown = composeEventHandlers((e) => {\n var _a;\n (_a = props.onKeydown) == null ? void 0 : _a.call(props, e);\n }, (e) => {\n const { currentTarget, code, target } = e;\n const isKeydownContained = currentTarget.contains(target);\n if (isKeydownContained) {\n }\n if (EVENT_CODE.tab === code) {\n e.stopImmediatePropagation();\n }\n e.preventDefault();\n if (target !== unref(contentRef))\n return;\n if (!FIRST_LAST_KEYS.includes(code))\n return;\n const items = getItems().filter((item) => !item.disabled);\n const targets = items.map((item) => item.ref);\n if (LAST_KEYS.includes(code)) {\n targets.reverse();\n }\n focusFirst(targets);\n });\n const handleKeydown = (e) => {\n composedKeydown(e);\n onKeydown(e);\n };\n return {\n size,\n rovingFocusGroupRootStyle,\n tabIndex,\n dropdownKls,\n role,\n triggerId,\n dropdownListWrapperRef,\n handleKeydown,\n onBlur,\n onFocus,\n onMousedown\n };\n }\n});\nconst _hoisted_1 = [\"role\", \"aria-labelledby\"];\nfunction _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {\n return openBlock(), createElementBlock(\"ul\", {\n ref: _ctx.dropdownListWrapperRef,\n class: normalizeClass(_ctx.dropdownKls),\n style: normalizeStyle(_ctx.rovingFocusGroupRootStyle),\n tabindex: -1,\n role: _ctx.role,\n \"aria-labelledby\": _ctx.triggerId,\n onBlur: _cache[0] || (_cache[0] = (...args) => _ctx.onBlur && _ctx.onBlur(...args)),\n onFocus: _cache[1] || (_cache[1] = (...args) => _ctx.onFocus && _ctx.onFocus(...args)),\n onKeydown: _cache[2] || (_cache[2] = (...args) => _ctx.handleKeydown && _ctx.handleKeydown(...args)),\n onMousedown: _cache[3] || (_cache[3] = (...args) => _ctx.onMousedown && _ctx.onMousedown(...args))\n }, [\n renderSlot(_ctx.$slots, \"default\")\n ], 46, _hoisted_1);\n}\nvar DropdownMenu = /* @__PURE__ */ _export_sfc(_sfc_main, [[\"render\", _sfc_render], [\"__file\", \"/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-menu.vue\"]]);\n\nexport { DropdownMenu as default };\n//# sourceMappingURL=dropdown-menu.mjs.map\n","import '../../utils/index.mjs';\nimport Dropdown from './src/dropdown2.mjs';\nimport DropdownItem from './src/dropdown-item.mjs';\nimport DropdownMenu from './src/dropdown-menu.mjs';\nexport { DROPDOWN_COLLECTION_INJECTION_KEY, DROPDOWN_COLLECTION_ITEM_INJECTION_KEY, ElCollection, ElCollectionItem, FIRST_KEYS, FIRST_LAST_KEYS, LAST_KEYS, dropdownItemProps, dropdownMenuProps, dropdownProps } from './src/dropdown.mjs';\nexport { DROPDOWN_INJECTION_KEY } from './src/tokens.mjs';\nimport { withInstall, withNoopInstall } from '../../utils/vue/install.mjs';\n\nconst ElDropdown = withInstall(Dropdown, {\n DropdownItem,\n DropdownMenu\n});\nconst ElDropdownItem = withNoopInstall(DropdownItem);\nconst ElDropdownMenu = withNoopInstall(DropdownMenu);\n\nexport { ElDropdown, ElDropdownItem, ElDropdownMenu, ElDropdown as default };\n//# sourceMappingURL=index.mjs.map\n","import { defineComponent, openBlock, createElementBlock, createElementVNode } from 'vue';\nimport _export_sfc from './_virtual/plugin-vue_export-helper.mjs';\n\nconst _sfc_main = defineComponent({\n name: \"ArrowDown\"\n});\nconst _hoisted_1 = {\n viewBox: \"0 0 1024 1024\",\n xmlns: \"http://www.w3.org/2000/svg\"\n};\nconst _hoisted_2 = /* @__PURE__ */ createElementVNode(\"path\", {\n fill: \"currentColor\",\n d: \"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z\"\n}, null, -1);\nconst _hoisted_3 = [\n _hoisted_2\n];\nfunction _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {\n return openBlock(), createElementBlock(\"svg\", _hoisted_1, _hoisted_3);\n}\nvar arrowDown = /* @__PURE__ */ _export_sfc(_sfc_main, [[\"render\", _sfc_render]]);\n\nexport { arrowDown as default };\n"],"names":["_sfc_main","_sfc_render","_ctx","_cache","$props","$setup","$data","$options","renderSlot","Collection","_export_sfc","CollectionItem","COLLECTION_ITEM_SIGN","createCollectionWithScope","name","COLLECTION_NAME","COLLECTION_ITEM_NAME","COLLECTION_INJECTION_KEY","COLLECTION_ITEM_INJECTION_KEY","ElCollection","collectionRef","ref","itemMap","provide","collectionEl","unref","orderedNodes","a","b","ElCollectionItem","_","attrs","collectionItemRef","collectionInjection","inject","onMounted","collectionItemEl","onBeforeUnmount","rovingFocusGroupProps","buildProps","definePropType","ROVING_FOCUS_GROUP_INJECTION_KEY","ROVING_FOCUS_GROUP_ITEM_INJECTION_KEY","MAP_KEY_TO_FOCUS_INTENT","getDirectionAwareKey","key","dir","EVENT_CODE","getFocusIntent","event","orientation","reorderArray","array","atIdx","idx","focusFirst","elements","prevActive","element","CURRENT_TAB_ID_CHANGE_EVT","ENTRY_FOCUS_EVT","EVT_OPTS","defineComponent","props","emit","_a","currentTabbedId","isBackingOut","isClickFocus","rovingFocusGroupRef","getItems","rovingFocusGroupRootStyle","computed","onItemFocus","tabbedId","onItemShiftTab","onMousedown","composeEventHandlers","e","_a2","onFocus","isKeyboardFocus","target","currentTarget","entryFocusEvt","items","item","activeItem","currentItem","candidateNodes","onBlur","handleEntryFocus","args","readonly","toRef","watch","val","useEventListener","ElRovingFocusGroupImpl","_component_el_roving_focus_group_impl","resolveComponent","_component_el_focus_group_collection","openBlock","createBlock","withCtx","createVNode","normalizeProps","guardReactiveProps","ElRovingFocusGroup","loop","id","useId","rovingFocusGroupItemRef","handleMousedown","handleFocus","handleKeydown","shiftKey","focusIntent","currentIdx","nextTick","isCurrentTab","_component_el_roving_focus_collection_item","ElRovingFocusItem","dropdownProps","useTooltipTriggerProps","useTooltipContentProps","dropdownItemProps","iconPropType","dropdownMenuProps","FIRST_KEYS","LAST_KEYS","FIRST_LAST_KEYS","DROPDOWN_INJECTION_KEY","ElButtonGroup","ElButton","ElScrollbar","ElTooltip","OnlyChild","ElIcon","ArrowDown","_instance","getCurrentInstance","ns","useNamespace","t","useLocale","triggeringElementRef","referenceElementRef","popperRef","contentRef","scrollbar","currentTabId","isUsingKeyboard","triggerKeys","wrapStyle","addUnit","dropdownTriggerKls","dropdownSize","defaultTriggerId","triggerId","handleClick","handleClose","handleOpen","useSize","commandHandler","onItemEnter","onItemLeave","contentEl","handleCurrentTabIdChange","handleBeforeShowTooltip","handleShowTooltip","handleBeforeHideTooltip","_b","_component_el_dropdown_collection","_component_el_roving_focus_group","_component_el_scrollbar","_component_el_only_child","_component_el_tooltip","_component_el_button","_component_arrow_down","_component_el_icon","_component_el_button_group","createElementBlock","normalizeClass","createSlots","mergeProps","createCommentVNode","Dropdown","menuRole","dropdownCollectionItemRef","rovingFocusCollectionItemRef","COLLECTION_ITEM_INJECTION_KEY$1","tabIndex","handleItemKeydown","itemRef","composeRefs","role","code","_hoisted_1","Fragment","createElementVNode","resolveDynamicComponent","ElDropdownItemImpl","useDropdown","elDropdown","_elDropdownSize","textContent","handlePointerMove","whenMouse","handlePointerLeave","_c","propsAndAttrs","_component_el_dropdown_item_impl","_component_el_roving_focus_item","_component_el_dropdown_collection_item","DropdownItem","size","focusTrapRef","onKeydown","FOCUS_TRAP_INJECTION_KEY","dropdownCollectionRef","rovingFocusGroupCollectionRef","COLLECTION_INJECTION_KEY$1","dropdownKls","dropdownListWrapperRef","composedKeydown","targets","normalizeStyle","DropdownMenu","ElDropdown","withInstall","ElDropdownItem","withNoopInstall","ElDropdownMenu","_hoisted_2","_hoisted_3","arrowDown"],"mappings":"kiBAGA,MAAMA,GAAY,CAChB,aAAc,EAChB,EACA,SAASC,GAAYC,EAAMC,EAAQC,EAAQC,EAAQC,EAAOC,EAAU,CAClE,OAAOC,EAAWN,EAAK,OAAQ,SAAS,CAC1C,CACA,IAAIO,GAA6BC,EAAYV,GAAW,CAAC,CAAC,SAAUC,EAAW,EAAG,CAAC,SAAU,+FAA+F,CAAC,CAAC,ECN9L,MAAMD,GAAY,CAChB,KAAM,mBACN,aAAc,EAChB,EACA,SAASC,GAAYC,EAAMC,EAAQC,EAAQC,EAAQC,EAAOC,EAAU,CAClE,OAAOC,EAAWN,EAAK,OAAQ,SAAS,CAC1C,CACA,IAAIS,GAAiCD,EAAYV,GAAW,CAAC,CAAC,SAAUC,EAAW,EAAG,CAAC,SAAU,oGAAoG,CAAC,CAAC,ECNvM,MAAMW,GAAuB,0BACvBC,GAA6BC,GAAS,CAC1C,MAAMC,EAAkB,KAAK,OAAAD,EAAI,cAC3BE,EAAuB,GAAG,OAAAD,EAAe,QACzCE,EAA2B,OAAOF,CAAe,EACjDG,EAAgC,OAAOF,CAAoB,EAC3DG,EAAe,CACnB,GAAGV,GACH,KAAMM,EACN,OAAQ,CACN,MAAMK,EAAgBC,EAAI,IAAI,EACxBC,EAA0B,IAAI,IASpCC,EAAQN,EAA0B,CAChC,QAAAK,EACA,SAVe,IAAM,CACrB,MAAME,EAAeC,EAAML,CAAa,EACxC,GAAI,CAACI,EACH,MAAO,GACT,MAAME,EAAe,MAAM,KAAKF,EAAa,iBAAiB,IAAI,OAAAZ,GAAoB,IAAG,CAAC,EAE1F,MADc,CAAC,GAAGU,EAAQ,OAAQ,CAAA,EACrB,KAAK,CAACK,EAAGC,IAAMF,EAAa,QA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C7F5L,MAACoO,GAAaC,GAAY3C,GAAU,CACvC,aAAA4B,GACA,aAAAa,EACF,CAAC,EACKG,GAAiBC,GAAgBjB,EAAY,EAC7CkB,GAAiBD,GAAgBJ,EAAY,ECV7CpO,GAAY8D,EAAgB,CAChC,KAAM,WACR,CAAC,EACKwI,GAAa,CACjB,QAAS,gBACT,MAAO,4BACT,EACMoC,GAA6BlC,GAAmB,OAAQ,CAC5D,KAAM,eACN,EAAG,iNACL,EAAG,KAAM,EAAE,EACLmC,GAAa,CACjBD,EACF,EACA,SAASzO,GAAYC,EAAMC,EAAQC,EAAQC,EAAQC,EAAOC,EAAU,CAClE,OAAO+F,EAAW,EAAEgF,EAAmB,MAAOgB,GAAYqC,EAAU,CACtE,CACG,IAACC,GAA4BlO,GAAYV,GAAW,CAAC,CAAC,SAAUC,EAAW,CAAC,CAAC","x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]}
@@ -1,2 +1,2 @@
1
- System.register(["./index-legacy.978f90e1.js","./el-dialog-legacy.0bcf48a4.js","./index-legacy.bd5a4368.js"],(function(e,o){"use strict";var n,t,r,l,d,a,i,p,u,s,c,m,f,g,v,w,b,h,_,y,I,x,C,E,k,T,F,S,R,B,O,D,M,z,K,N,P,$,L,G,A,H,j,J,Y,U,V,W,q,Q,X,Z,ee,oe,ne,te;return{setters:[e=>{n=e.N,t=e.T,r=e.r,l=e.ag,d=e.ah,a=e.o,i=e.k,p=e.ai,u=e.J,s=e.aj,c=e.ak,m=e.d,f=e.O,g=e.al,v=e.am,w=e.$,b=e.an,h=e.ao,_=e.i,y=e.f,I=e.D,x=e.w,C=e.j,E=e.ap,k=e.aq,T=e.ar,F=e.as,S=e.K,R=e.L,B=e.at,O=e.x,D=e.W,M=e.au,z=e.I,K=e.av,N=e.Q,P=e.R,$=e.aw,L=e.c,G=e.ax,A=e.V,H=e.H,j=e.S,J=e.ay,Y=e.a,U=e.G,V=e.F,W=e.az,q=e.aA,Q=e.aB,X=e.Y,Z=e.aC,ee=e.g},e=>{oe=e.a,ne=e.c},e=>{te=e.u}],execute:function(){var o=document.createElement("style");o.textContent='.el-dropdown{--el-dropdown-menu-box-shadow:var(--el-box-shadow-light);--el-dropdown-menuItem-hover-fill:var(--el-color-primary-light-9);--el-dropdown-menuItem-hover-color:var(--el-color-primary);--el-dropdown-menu-index:10;display:inline-flex;position:relative;color:var(--el-text-color-regular);font-size:var(--el-font-size-base);line-height:1;vertical-align:top}.el-dropdown.is-disabled{color:var(--el-text-color-placeholder);cursor:not-allowed}.el-dropdown__popper{--el-dropdown-menu-box-shadow:var(--el-box-shadow-light);--el-dropdown-menuItem-hover-fill:var(--el-color-primary-light-9);--el-dropdown-menuItem-hover-color:var(--el-color-primary);--el-dropdown-menu-index:10}.el-dropdown__popper.el-popper{background:var(--el-bg-color-overlay);border:1px solid var(--el-border-color-light);box-shadow:var(--el-dropdown-menu-box-shadow)}.el-dropdown__popper.el-popper .el-popper__arrow:before{border:1px solid var(--el-border-color-light)}.el-dropdown__popper.el-popper[data-popper-placement^=top] .el-popper__arrow:before{border-top-color:transparent;border-left-color:transparent}.el-dropdown__popper.el-popper[data-popper-placement^=bottom] .el-popper__arrow:before{border-bottom-color:transparent;border-right-color:transparent}.el-dropdown__popper.el-popper[data-popper-placement^=left] .el-popper__arrow:before{border-left-color:transparent;border-bottom-color:transparent}.el-dropdown__popper.el-popper[data-popper-placement^=right] .el-popper__arrow:before{border-right-color:transparent;border-top-color:transparent}.el-dropdown__popper .el-dropdown-menu{border:none}.el-dropdown__popper .el-dropdown__popper-selfdefine{outline:0}.el-dropdown__popper .el-scrollbar__bar{z-index:calc(var(--el-dropdown-menu-index) + 1)}.el-dropdown__popper .el-dropdown__list{list-style:none;padding:0;margin:0;box-sizing:border-box}.el-dropdown .el-dropdown__caret-button{padding-left:0;padding-right:0;display:inline-flex;justify-content:center;align-items:center;width:32px;border-left:none}.el-dropdown .el-dropdown__caret-button>span{display:inline-flex}.el-dropdown .el-dropdown__caret-button:before{content:"";position:absolute;display:block;width:1px;top:-1px;bottom:-1px;left:0;background:var(--el-overlay-color-lighter)}.el-dropdown .el-dropdown__caret-button.el-button:before{background:var(--el-border-color);opacity:.5}.el-dropdown .el-dropdown__caret-button .el-dropdown__icon{font-size:inherit;padding-left:0}.el-dropdown .el-dropdown-selfdefine{outline:0}.el-dropdown--large .el-dropdown__caret-button{width:40px}.el-dropdown--small .el-dropdown__caret-button{width:24px}.el-dropdown-menu{position:relative;top:0;left:0;z-index:var(--el-dropdown-menu-index);padding:5px 0;margin:0;background-color:var(--el-bg-color-overlay);border:none;border-radius:var(--el-border-radius-base);box-shadow:none;list-style:none}.el-dropdown-menu__item{display:flex;align-items:center;white-space:nowrap;list-style:none;line-height:22px;padding:5px 16px;margin:0;font-size:var(--el-font-size-base);color:var(--el-text-color-regular);cursor:pointer;outline:0}.el-dropdown-menu__item:not(.is-disabled):focus{background-color:var(--el-dropdown-menuItem-hover-fill);color:var(--el-dropdown-menuItem-hover-color)}.el-dropdown-menu__item i{margin-right:5px}.el-dropdown-menu__item--divided{margin:6px 0;border-top:1px solid var(--el-border-color-lighter)}.el-dropdown-menu__item.is-disabled{cursor:not-allowed;color:var(--el-text-color-disabled)}.el-dropdown-menu--large{padding:7px 0}.el-dropdown-menu--large .el-dropdown-menu__item{padding:7px 20px;line-height:22px;font-size:14px}.el-dropdown-menu--large .el-dropdown-menu__item--divided{margin:8px 0}.el-dropdown-menu--small{padding:3px 0}.el-dropdown-menu--small .el-dropdown-menu__item{padding:2px 12px;line-height:20px;font-size:12px}.el-dropdown-menu--small .el-dropdown-menu__item--divided{margin:4px 0}\n',document.head.appendChild(o);var re=n({inheritAttrs:!1},[["render",function(e,o,n,r,l,d){return t(e.$slots,"default")}],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection.vue"]]),le=n({name:"ElCollectionItem",inheritAttrs:!1},[["render",function(e,o,n,r,l,d){return t(e.$slots,"default")}],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection-item.vue"]]);const de="data-el-collection-item",ae=e=>{const o=`El${e}Collection`,n=`${o}Item`,t=Symbol(o),u=Symbol(n),s={...re,name:o,setup(){const e=r(null),o=new Map;l(t,{itemMap:o,getItems:()=>{const n=i(e);if(!n)return[];const t=Array.from(n.querySelectorAll(`[${de}]`));return[...o.values()].sort(((e,o)=>t.indexOf(e.ref)-t.indexOf(o.ref)))},collectionRef:e})}},c={...le,name:n,setup(e,{attrs:o}){const n=r(null),s=d(t,void 0);l(u,{collectionItemRef:n}),a((()=>{const e=i(n);e&&s.itemMap.set(e,{ref:e,...o})})),p((()=>{const e=i(n);s.itemMap.delete(e)}))}};return{COLLECTION_INJECTION_KEY:t,COLLECTION_ITEM_INJECTION_KEY:u,ElCollection:s,ElCollectionItem:c}},ie=u({style:{type:s([String,Array,Object])},currentTabId:{type:s(String)},defaultCurrentTabId:String,loop:Boolean,dir:{type:String,values:["ltr","rtl"],default:"ltr"},orientation:{type:s(String)},onBlur:Function,onFocus:Function,onMousedown:Function}),{ElCollection:pe,ElCollectionItem:ue,COLLECTION_INJECTION_KEY:se,COLLECTION_ITEM_INJECTION_KEY:ce}=ae("RovingFocusGroup"),me=Symbol("elRovingFocusGroup"),fe=Symbol("elRovingFocusGroupItem"),ge={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"},ve=(e,o,n)=>{const t=((e,o)=>{if("rtl"!==o)return e;switch(e){case c.right:return c.left;case c.left:return c.right;default:return e}})(e.key,n);if(!("vertical"===o&&[c.left,c.right].includes(t)||"horizontal"===o&&[c.up,c.down].includes(t)))return ge[t]},we=e=>{const{activeElement:o}=document;for(const n of e){if(n===o)return;if(n.focus(),o!==document.activeElement)return}},be="currentTabIdChange",he="rovingFocusGroup.entryFocus",_e={bubbles:!1,cancelable:!0},ye=m({name:"ElRovingFocusGroupImpl",inheritAttrs:!1,props:ie,emits:[be,"entryFocus"],setup(e,{emit:o}){var n;const t=r(null!=(n=e.currentTabId||e.defaultCurrentTabId)?n:null),a=r(!1),p=r(!1),u=r(null),{getItems:s}=d(se,void 0),c=f((()=>[{outline:"none"},e.style])),m=h((o=>{var n;null==(n=e.onMousedown)||n.call(e,o)}),(()=>{p.value=!0})),_=h((o=>{var n;null==(n=e.onFocus)||n.call(e,o)}),(e=>{const o=!i(p),{target:n,currentTarget:r}=e;if(n===r&&o&&!i(a)){const e=new Event(he,_e);if(null==r||r.dispatchEvent(e),!e.defaultPrevented){const e=s().filter((e=>e.focusable)),o=[e.find((e=>e.active)),e.find((e=>e.id===i(t))),...e].filter(Boolean).map((e=>e.ref));we(o)}}p.value=!1})),y=h((o=>{var n;null==(n=e.onBlur)||n.call(e,o)}),(()=>{a.value=!1}));l(me,{currentTabbedId:g(t),loop:v(e,"loop"),tabIndex:f((()=>i(a)?-1:0)),rovingFocusGroupRef:u,rovingFocusGroupRootStyle:c,orientation:v(e,"orientation"),dir:v(e,"dir"),onItemFocus:e=>{o(be,e)},onItemShiftTab:()=>{a.value=!0},onBlur:y,onFocus:_,onMousedown:m}),w((()=>e.currentTabId),(e=>{t.value=null!=e?e:null})),b(u,he,((...e)=>{o("entryFocus",...e)}))}}),Ie=m({name:"ElRovingFocusGroup",components:{ElFocusGroupCollection:pe,ElRovingFocusGroupImpl:n(ye,[["render",function(e,o,n,r,l,d){return t(e.$slots,"default")}],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group-impl.vue"]])}});var xe=n(Ie,[["render",function(e,o,n,r,l,d){const a=_("el-roving-focus-group-impl"),i=_("el-focus-group-collection");return y(),I(i,null,{default:x((()=>[C(a,E(k(e.$attrs)),{default:x((()=>[t(e.$slots,"default")])),_:3},16)])),_:3})}],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group.vue"]]);const Ce=m({components:{ElRovingFocusCollectionItem:ue},props:{focusable:{type:Boolean,default:!0},active:{type:Boolean,default:!1}},emits:["mousedown","focus","keydown"],setup(e,{emit:o}){const{currentTabbedId:n,loop:t,onItemFocus:a,onItemShiftTab:p}=d(me,void 0),{getItems:u}=d(se,void 0),s=T(),m=r(null),g=h((e=>{o("mousedown",e)}),(o=>{e.focusable?a(i(s)):o.preventDefault()})),v=h((e=>{o("focus",e)}),(()=>{a(i(s))})),w=h((e=>{o("keydown",e)}),(e=>{const{key:o,shiftKey:n,target:r,currentTarget:l}=e;if(o===c.tab&&n)return void p();if(r!==l)return;const d=ve(e);if(d){e.preventDefault();let o=u().filter((e=>e.focusable)).map((e=>e.ref));switch(d){case"last":o.reverse();break;case"prev":case"next":{"prev"===d&&o.reverse();const e=o.indexOf(l);o=t.value?(i=e+1,(a=o).map(((e,o)=>a[(o+i)%a.length]))):o.slice(e+1);break}}F((()=>{we(o)}))}var a,i})),b=f((()=>n.value===i(s)));return l(fe,{rovingFocusGroupItemRef:m,tabIndex:f((()=>i(b)?0:-1)),handleMousedown:g,handleFocus:v,handleKeydown:w}),{id:s,handleKeydown:w,handleFocus:v,handleMousedown:g}}});var Ee=n(Ce,[["render",function(e,o,n,r,l,d){const a=_("el-roving-focus-collection-item");return y(),I(a,{id:e.id,focusable:e.focusable,active:e.active},{default:x((()=>[t(e.$slots,"default")])),_:3},8,["id","focusable","active"])}],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-item.vue"]]);const ke=e("d",u({trigger:S.trigger,effect:{...R.effect,default:"light"},type:{type:s(String)},placement:{type:s(String),default:"bottom"},popperOptions:{type:s(Object),default:()=>({})},id:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:s([Number,String]),default:0},maxHeight:{type:s([Number,String]),default:""},popperClass:{type:String,default:""},disabled:{type:Boolean,default:!1},role:{type:String,default:"menu"},buttonProps:{type:s(Object)}})),Te=u({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:B}}),Fe=u({onKeydown:{type:s(Function)}}),Se=[c.down,c.pageDown,c.home],Re=[c.up,c.pageUp,c.end],Be=[...Se,...Re],{ElCollection:Oe,ElCollectionItem:De,COLLECTION_INJECTION_KEY:Me,COLLECTION_ITEM_INJECTION_KEY:ze}=ae("Dropdown"),Ke=Symbol("elDropdown"),{ButtonGroup:Ne}=O,Pe=m({name:"ElDropdown",components:{ElButton:O,ElButtonGroup:Ne,ElScrollbar:oe,ElDropdownCollection:Oe,ElTooltip:D,ElRovingFocusGroup:xe,ElOnlyChild:M,ElIcon:z,ArrowDown:K},props:ke,emits:["visible-change","click","command"],setup(e,{emit:o}){const n=J(),t=N("dropdown"),{t:d}=te(),a=r(),p=r(),u=r(null),s=r(null),m=r(null),g=r(null),w=r(!1),b=[c.enter,c.space,c.down],h=f((()=>({maxHeight:P(e.maxHeight)}))),_=f((()=>[t.m(C.value)])),y=T().value,I=f((()=>e.id||y));function x(){var e;null==(e=u.value)||e.onClose()}const C=$();return l(Ke,{contentRef:s,role:f((()=>e.role)),triggerId:I,isUsingKeyboard:w,onItemEnter:function(){},onItemLeave:function(){const e=i(s);null==e||e.focus(),g.value=null}}),l("elDropdown",{instance:n,dropdownSize:C,handleClick:function(){x()},commandHandler:function(...e){o("command",...e)},trigger:v(e,"trigger"),hideOnClick:v(e,"hideOnClick")}),{t:d,ns:t,scrollbar:m,wrapStyle:h,dropdownTriggerKls:_,dropdownSize:C,triggerId:I,triggerKeys:b,currentTabId:g,handleCurrentTabIdChange:function(e){g.value=e},handlerMainButtonClick:e=>{o("click",e)},handleEntryFocus:function(e){w.value||(e.preventDefault(),e.stopImmediatePropagation())},handleClose:x,handleOpen:function(){var e;null==(e=u.value)||e.onOpen()},handleBeforeShowTooltip:function(){o("visible-change",!0)},handleShowTooltip:function(e){"keydown"===(null==e?void 0:e.type)&&s.value.focus()},handleBeforeHideTooltip:function(){o("visible-change",!1)},onFocusAfterTrapped:e=>{var o,n;e.preventDefault(),null==(n=null==(o=s.value)?void 0:o.focus)||n.call(o,{preventScroll:!0})},popperRef:u,contentRef:s,triggeringElementRef:a,referenceElementRef:p}}});var $e=n(Pe,[["render",function(e,o,n,r,l,d){var a;const i=_("el-dropdown-collection"),p=_("el-roving-focus-group"),u=_("el-scrollbar"),s=_("el-only-child"),c=_("el-tooltip"),m=_("el-button"),f=_("arrow-down"),g=_("el-icon"),v=_("el-button-group");return y(),L("div",{class:H([e.ns.b(),e.ns.is("disabled",e.disabled)])},[C(c,{ref:"popperRef",role:e.role,effect:e.effect,"fallback-placements":["bottom","top"],"popper-options":e.popperOptions,"gpu-acceleration":!1,"hide-after":"hover"===e.trigger?e.hideTimeout:0,"manual-mode":!0,placement:e.placement,"popper-class":[e.ns.e("popper"),e.popperClass],"reference-element":null==(a=e.referenceElementRef)?void 0:a.$el,trigger:e.trigger,"trigger-keys":e.triggerKeys,"trigger-target-el":e.contentRef,"show-after":"hover"===e.trigger?e.showTimeout:0,"stop-popper-mouse-event":!1,"virtual-ref":e.triggeringElementRef,"virtual-triggering":e.splitButton,disabled:e.disabled,transition:`${e.ns.namespace.value}-zoom-in-top`,teleported:"",pure:"",persistent:"",onBeforeShow:e.handleBeforeShowTooltip,onShow:e.handleShowTooltip,onBeforeHide:e.handleBeforeHideTooltip},G({content:x((()=>[C(u,{ref:"scrollbar","wrap-style":e.wrapStyle,tag:"div","view-class":e.ns.e("list")},{default:x((()=>[C(p,{loop:e.loop,"current-tab-id":e.currentTabId,orientation:"horizontal",onCurrentTabIdChange:e.handleCurrentTabIdChange,onEntryFocus:e.handleEntryFocus},{default:x((()=>[C(i,null,{default:x((()=>[t(e.$slots,"dropdown")])),_:3})])),_:3},8,["loop","current-tab-id","onCurrentTabIdChange","onEntryFocus"])])),_:3},8,["wrap-style","view-class"])])),_:2},[e.splitButton?void 0:{name:"default",fn:x((()=>[C(s,{id:e.triggerId,role:"button",tabindex:e.tabindex},{default:x((()=>[t(e.$slots,"default")])),_:3},8,["id","tabindex"])]))}]),1032,["role","effect","popper-options","hide-after","placement","popper-class","reference-element","trigger","trigger-keys","trigger-target-el","show-after","virtual-ref","virtual-triggering","disabled","transition","onBeforeShow","onShow","onBeforeHide"]),e.splitButton?(y(),I(v,{key:0},{default:x((()=>[C(m,A({ref:"referenceElementRef"},e.buttonProps,{size:e.dropdownSize,type:e.type,disabled:e.disabled,tabindex:e.tabindex,onClick:e.handlerMainButtonClick}),{default:x((()=>[t(e.$slots,"default")])),_:3},16,["size","type","disabled","tabindex","onClick"]),C(m,A({id:e.triggerId,ref:"triggeringElementRef"},e.buttonProps,{role:"button",size:e.dropdownSize,type:e.type,class:e.ns.e("caret-button"),disabled:e.disabled,tabindex:e.tabindex,"aria-label":e.t("el.dropdown.toggleDropdown")}),{default:x((()=>[C(g,{class:H(e.ns.e("icon"))},{default:x((()=>[C(f)])),_:1},8,["class"])])),_:1},16,["id","size","type","class","disabled","tabindex","aria-label"])])),_:3})):j("v-if",!0)],2)}],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown.vue"]]);const Le=m({name:"DropdownItemImpl",components:{ElIcon:z},props:Te,emits:["pointermove","pointerleave","click","clickimpl"],setup(e,{emit:o}){const n=N("dropdown"),{role:t}=d(Ke,void 0),{collectionItemRef:r}=d(ze,void 0),{collectionItemRef:l}=d(ce,void 0),{rovingFocusGroupItemRef:a,tabIndex:i,handleFocus:p,handleKeydown:u,handleMousedown:s}=d(fe,void 0),m=ne(r,l,a),g=f((()=>"menu"===t.value?"menuitem":"navigation"===t.value?"link":"button")),v=h((e=>{const{code:n}=e;if(n===c.enter||n===c.space)return e.preventDefault(),e.stopImmediatePropagation(),o("clickimpl",e),!0}),u);return{ns:n,itemRef:m,dataset:{[de]:""},role:g,tabIndex:i,handleFocus:p,handleKeydown:v,handleMousedown:s}}}),Ge=["aria-disabled","tabindex","role"],Ae=()=>{const e=d("elDropdown",{}),o=f((()=>null==e?void 0:e.dropdownSize));return{elDropdown:e,_elDropdownSize:o}},He=m({name:"ElDropdownItem",components:{ElDropdownCollectionItem:De,ElRovingFocusItem:Ee,ElDropdownItemImpl:n(Le,[["render",function(e,o,n,r,l,d){const a=_("el-icon");return y(),L(V,null,[e.divided?(y(),L("li",A({key:0,role:"separator",class:e.ns.bem("menu","item","divided")},e.$attrs),null,16)):j("v-if",!0),Y("li",A({ref:e.itemRef},{...e.dataset,...e.$attrs},{"aria-disabled":e.disabled,class:[e.ns.be("menu","item"),e.ns.is("disabled",e.disabled)],tabindex:e.tabIndex,role:e.role,onClick:o[0]||(o[0]=o=>e.$emit("clickimpl",o)),onFocus:o[1]||(o[1]=(...o)=>e.handleFocus&&e.handleFocus(...o)),onKeydown:o[2]||(o[2]=(...o)=>e.handleKeydown&&e.handleKeydown(...o)),onMousedown:o[3]||(o[3]=(...o)=>e.handleMousedown&&e.handleMousedown(...o)),onPointermove:o[4]||(o[4]=o=>e.$emit("pointermove",o)),onPointerleave:o[5]||(o[5]=o=>e.$emit("pointerleave",o))}),[e.icon?(y(),I(a,{key:0},{default:x((()=>[(y(),I(U(e.icon)))])),_:1})):j("v-if",!0),t(e.$slots,"default")],16,Ge)],64)}],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item-impl.vue"]])},inheritAttrs:!1,props:Te,emits:["pointermove","pointerleave","click"],setup(e,{emit:o,attrs:n}){const{elDropdown:t}=Ae(),l=J(),a=r(null),p=f((()=>{var e,o;return null!=(o=null==(e=i(a))?void 0:e.textContent)?o:""})),{onItemEnter:u,onItemLeave:s}=d(Ke,void 0),c=h((e=>(o("pointermove",e),e.defaultPrevented)),W((o=>{var n;e.disabled?s(o):(u(o),o.defaultPrevented||null==(n=o.currentTarget)||n.focus())}))),m=h((e=>(o("pointerleave",e),e.defaultPrevented)),W((e=>{s(e)})));return{handleClick:h((e=>(o("click",e),"keydown"!==e.type&&e.defaultPrevented)),(o=>{var n,r,d;e.disabled?o.stopImmediatePropagation():((null==(n=null==t?void 0:t.hideOnClick)?void 0:n.value)&&(null==(r=t.handleClick)||r.call(t)),null==(d=t.commandHandler)||d.call(t,e.command,l,o))})),handlePointerMove:c,handlePointerLeave:m,textContent:p,propsAndAttrs:f((()=>({...e,...n})))}}});var je=n(He,[["render",function(e,o,n,r,l,d){var a;const i=_("el-dropdown-item-impl"),p=_("el-roving-focus-item"),u=_("el-dropdown-collection-item");return y(),I(u,{disabled:e.disabled,"text-value":null!=(a=e.textValue)?a:e.textContent},{default:x((()=>[C(p,{focusable:!e.disabled},{default:x((()=>[C(i,A(e.propsAndAttrs,{onPointerleave:e.handlePointerLeave,onPointermove:e.handlePointerMove,onClickimpl:e.handleClick}),{default:x((()=>[t(e.$slots,"default")])),_:3},16,["onPointerleave","onPointermove","onClickimpl"])])),_:3},8,["focusable"])])),_:3},8,["disabled","text-value"])}],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item.vue"]]);const Je=m({name:"ElDropdownMenu",props:Fe,setup(e){const o=N("dropdown"),{_elDropdownSize:n}=Ae(),t=n.value,{focusTrapRef:r,onKeydown:l}=d(q,void 0),{contentRef:a,role:p,triggerId:u}=d(Ke,void 0),{collectionRef:s,getItems:m}=d(Me,void 0),{rovingFocusGroupRef:g,rovingFocusGroupRootStyle:v,tabIndex:w,onBlur:b,onFocus:_,onMousedown:y}=d(me,void 0),{collectionRef:I}=d(se,void 0),x=f((()=>[o.b("menu"),o.bm("menu",null==t?void 0:t.value)])),C=ne(a,s,r,g,I),E=h((o=>{var n;null==(n=e.onKeydown)||n.call(e,o)}),(e=>{const{currentTarget:o,code:n,target:t}=e;if(o.contains(t),c.tab===n&&e.stopImmediatePropagation(),e.preventDefault(),t!==i(a))return;if(!Be.includes(n))return;const r=m().filter((e=>!e.disabled)).map((e=>e.ref));Re.includes(n)&&r.reverse(),we(r)}));return{size:t,rovingFocusGroupRootStyle:v,tabIndex:w,dropdownKls:x,role:p,triggerId:u,dropdownListWrapperRef:C,handleKeydown:e=>{E(e),l(e)},onBlur:b,onFocus:_,onMousedown:y}}}),Ye=["role","aria-labelledby"];var Ue=n(Je,[["render",function(e,o,n,r,l,d){return y(),L("ul",{ref:e.dropdownListWrapperRef,class:H(e.dropdownKls),style:Q(e.rovingFocusGroupRootStyle),tabindex:-1,role:e.role,"aria-labelledby":e.triggerId,onBlur:o[0]||(o[0]=(...o)=>e.onBlur&&e.onBlur(...o)),onFocus:o[1]||(o[1]=(...o)=>e.onFocus&&e.onFocus(...o)),onKeydown:o[2]||(o[2]=(...o)=>e.handleKeydown&&e.handleKeydown(...o)),onMousedown:o[3]||(o[3]=(...o)=>e.onMousedown&&e.onMousedown(...o))},[t(e.$slots,"default")],46,Ye)}],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-menu.vue"]]);e("E",X($e,{DropdownItem:je,DropdownMenu:Ue})),e("b",Z(je)),e("c",Z(Ue));const Ve=m({name:"ArrowDown"}),We={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},qe=[Y("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"},null,-1)];e("a",ee(Ve,[["render",function(e,o,n,t,r,l){return y(),L("svg",We,qe)}]]))}}}));
2
- //# sourceMappingURL=el-dropdown-item-legacy.8625546e.js.map
1
+ System.register(["./index-legacy.acb8b137.js","./el-dialog-legacy.e6ef2c86.js","./index-legacy.3e6b32cf.js"],(function(e,o){"use strict";var n,t,r,l,d,a,i,p,u,s,c,m,f,g,v,w,b,h,_,y,I,x,C,E,k,T,F,S,R,B,O,D,M,z,K,N,P,$,L,G,A,H,j,J,Y,U,V,W,q,Q,X,Z,ee,oe,ne,te;return{setters:[e=>{n=e.N,t=e.T,r=e.r,l=e.ah,d=e.ai,a=e.o,i=e.k,p=e.aj,u=e.J,s=e.ak,c=e.al,m=e.d,f=e.O,g=e.am,v=e.an,w=e.$,b=e.ao,h=e.ap,_=e.i,y=e.f,I=e.D,x=e.w,C=e.j,E=e.aq,k=e.ar,T=e.as,F=e.at,S=e.K,R=e.L,B=e.au,O=e.x,D=e.W,M=e.av,z=e.I,K=e.aw,N=e.Q,P=e.R,$=e.ax,L=e.c,G=e.ay,A=e.V,H=e.H,j=e.S,J=e.az,Y=e.a,U=e.G,V=e.F,W=e.aA,q=e.aB,Q=e.ad,X=e.Y,Z=e.aC,ee=e.g},e=>{oe=e.a,ne=e.c},e=>{te=e.u}],execute:function(){var o=document.createElement("style");o.textContent='.el-dropdown{--el-dropdown-menu-box-shadow:var(--el-box-shadow-light);--el-dropdown-menuItem-hover-fill:var(--el-color-primary-light-9);--el-dropdown-menuItem-hover-color:var(--el-color-primary);--el-dropdown-menu-index:10;display:inline-flex;position:relative;color:var(--el-text-color-regular);font-size:var(--el-font-size-base);line-height:1;vertical-align:top}.el-dropdown.is-disabled{color:var(--el-text-color-placeholder);cursor:not-allowed}.el-dropdown__popper{--el-dropdown-menu-box-shadow:var(--el-box-shadow-light);--el-dropdown-menuItem-hover-fill:var(--el-color-primary-light-9);--el-dropdown-menuItem-hover-color:var(--el-color-primary);--el-dropdown-menu-index:10}.el-dropdown__popper.el-popper{background:var(--el-bg-color-overlay);border:1px solid var(--el-border-color-light);box-shadow:var(--el-dropdown-menu-box-shadow)}.el-dropdown__popper.el-popper .el-popper__arrow:before{border:1px solid var(--el-border-color-light)}.el-dropdown__popper.el-popper[data-popper-placement^=top] .el-popper__arrow:before{border-top-color:transparent;border-left-color:transparent}.el-dropdown__popper.el-popper[data-popper-placement^=bottom] .el-popper__arrow:before{border-bottom-color:transparent;border-right-color:transparent}.el-dropdown__popper.el-popper[data-popper-placement^=left] .el-popper__arrow:before{border-left-color:transparent;border-bottom-color:transparent}.el-dropdown__popper.el-popper[data-popper-placement^=right] .el-popper__arrow:before{border-right-color:transparent;border-top-color:transparent}.el-dropdown__popper .el-dropdown-menu{border:none}.el-dropdown__popper .el-dropdown__popper-selfdefine{outline:0}.el-dropdown__popper .el-scrollbar__bar{z-index:calc(var(--el-dropdown-menu-index) + 1)}.el-dropdown__popper .el-dropdown__list{list-style:none;padding:0;margin:0;box-sizing:border-box}.el-dropdown .el-dropdown__caret-button{padding-left:0;padding-right:0;display:inline-flex;justify-content:center;align-items:center;width:32px;border-left:none}.el-dropdown .el-dropdown__caret-button>span{display:inline-flex}.el-dropdown .el-dropdown__caret-button:before{content:"";position:absolute;display:block;width:1px;top:-1px;bottom:-1px;left:0;background:var(--el-overlay-color-lighter)}.el-dropdown .el-dropdown__caret-button.el-button:before{background:var(--el-border-color);opacity:.5}.el-dropdown .el-dropdown__caret-button .el-dropdown__icon{font-size:inherit;padding-left:0}.el-dropdown .el-dropdown-selfdefine{outline:0}.el-dropdown--large .el-dropdown__caret-button{width:40px}.el-dropdown--small .el-dropdown__caret-button{width:24px}.el-dropdown-menu{position:relative;top:0;left:0;z-index:var(--el-dropdown-menu-index);padding:5px 0;margin:0;background-color:var(--el-bg-color-overlay);border:none;border-radius:var(--el-border-radius-base);box-shadow:none;list-style:none}.el-dropdown-menu__item{display:flex;align-items:center;white-space:nowrap;list-style:none;line-height:22px;padding:5px 16px;margin:0;font-size:var(--el-font-size-base);color:var(--el-text-color-regular);cursor:pointer;outline:0}.el-dropdown-menu__item:not(.is-disabled):focus{background-color:var(--el-dropdown-menuItem-hover-fill);color:var(--el-dropdown-menuItem-hover-color)}.el-dropdown-menu__item i{margin-right:5px}.el-dropdown-menu__item--divided{margin:6px 0;border-top:1px solid var(--el-border-color-lighter)}.el-dropdown-menu__item.is-disabled{cursor:not-allowed;color:var(--el-text-color-disabled)}.el-dropdown-menu--large{padding:7px 0}.el-dropdown-menu--large .el-dropdown-menu__item{padding:7px 20px;line-height:22px;font-size:14px}.el-dropdown-menu--large .el-dropdown-menu__item--divided{margin:8px 0}.el-dropdown-menu--small{padding:3px 0}.el-dropdown-menu--small .el-dropdown-menu__item{padding:2px 12px;line-height:20px;font-size:12px}.el-dropdown-menu--small .el-dropdown-menu__item--divided{margin:4px 0}\n',document.head.appendChild(o);var re=n({inheritAttrs:!1},[["render",function(e,o,n,r,l,d){return t(e.$slots,"default")}],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection.vue"]]),le=n({name:"ElCollectionItem",inheritAttrs:!1},[["render",function(e,o,n,r,l,d){return t(e.$slots,"default")}],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection-item.vue"]]);const de="data-el-collection-item",ae=e=>{const o=`El${e}Collection`,n=`${o}Item`,t=Symbol(o),u=Symbol(n),s={...re,name:o,setup(){const e=r(null),o=new Map;l(t,{itemMap:o,getItems:()=>{const n=i(e);if(!n)return[];const t=Array.from(n.querySelectorAll(`[${de}]`));return[...o.values()].sort(((e,o)=>t.indexOf(e.ref)-t.indexOf(o.ref)))},collectionRef:e})}},c={...le,name:n,setup(e,{attrs:o}){const n=r(null),s=d(t,void 0);l(u,{collectionItemRef:n}),a((()=>{const e=i(n);e&&s.itemMap.set(e,{ref:e,...o})})),p((()=>{const e=i(n);s.itemMap.delete(e)}))}};return{COLLECTION_INJECTION_KEY:t,COLLECTION_ITEM_INJECTION_KEY:u,ElCollection:s,ElCollectionItem:c}},ie=u({style:{type:s([String,Array,Object])},currentTabId:{type:s(String)},defaultCurrentTabId:String,loop:Boolean,dir:{type:String,values:["ltr","rtl"],default:"ltr"},orientation:{type:s(String)},onBlur:Function,onFocus:Function,onMousedown:Function}),{ElCollection:pe,ElCollectionItem:ue,COLLECTION_INJECTION_KEY:se,COLLECTION_ITEM_INJECTION_KEY:ce}=ae("RovingFocusGroup"),me=Symbol("elRovingFocusGroup"),fe=Symbol("elRovingFocusGroupItem"),ge={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"},ve=(e,o,n)=>{const t=((e,o)=>{if("rtl"!==o)return e;switch(e){case c.right:return c.left;case c.left:return c.right;default:return e}})(e.key,n);if(!("vertical"===o&&[c.left,c.right].includes(t)||"horizontal"===o&&[c.up,c.down].includes(t)))return ge[t]},we=e=>{const{activeElement:o}=document;for(const n of e){if(n===o)return;if(n.focus(),o!==document.activeElement)return}},be="currentTabIdChange",he="rovingFocusGroup.entryFocus",_e={bubbles:!1,cancelable:!0},ye=m({name:"ElRovingFocusGroupImpl",inheritAttrs:!1,props:ie,emits:[be,"entryFocus"],setup(e,{emit:o}){var n;const t=r(null!=(n=e.currentTabId||e.defaultCurrentTabId)?n:null),a=r(!1),p=r(!1),u=r(null),{getItems:s}=d(se,void 0),c=f((()=>[{outline:"none"},e.style])),m=h((o=>{var n;null==(n=e.onMousedown)||n.call(e,o)}),(()=>{p.value=!0})),_=h((o=>{var n;null==(n=e.onFocus)||n.call(e,o)}),(e=>{const o=!i(p),{target:n,currentTarget:r}=e;if(n===r&&o&&!i(a)){const e=new Event(he,_e);if(null==r||r.dispatchEvent(e),!e.defaultPrevented){const e=s().filter((e=>e.focusable)),o=[e.find((e=>e.active)),e.find((e=>e.id===i(t))),...e].filter(Boolean).map((e=>e.ref));we(o)}}p.value=!1})),y=h((o=>{var n;null==(n=e.onBlur)||n.call(e,o)}),(()=>{a.value=!1}));l(me,{currentTabbedId:g(t),loop:v(e,"loop"),tabIndex:f((()=>i(a)?-1:0)),rovingFocusGroupRef:u,rovingFocusGroupRootStyle:c,orientation:v(e,"orientation"),dir:v(e,"dir"),onItemFocus:e=>{o(be,e)},onItemShiftTab:()=>{a.value=!0},onBlur:y,onFocus:_,onMousedown:m}),w((()=>e.currentTabId),(e=>{t.value=null!=e?e:null})),b(u,he,((...e)=>{o("entryFocus",...e)}))}}),Ie=m({name:"ElRovingFocusGroup",components:{ElFocusGroupCollection:pe,ElRovingFocusGroupImpl:n(ye,[["render",function(e,o,n,r,l,d){return t(e.$slots,"default")}],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group-impl.vue"]])}});var xe=n(Ie,[["render",function(e,o,n,r,l,d){const a=_("el-roving-focus-group-impl"),i=_("el-focus-group-collection");return y(),I(i,null,{default:x((()=>[C(a,E(k(e.$attrs)),{default:x((()=>[t(e.$slots,"default")])),_:3},16)])),_:3})}],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group.vue"]]);const Ce=m({components:{ElRovingFocusCollectionItem:ue},props:{focusable:{type:Boolean,default:!0},active:{type:Boolean,default:!1}},emits:["mousedown","focus","keydown"],setup(e,{emit:o}){const{currentTabbedId:n,loop:t,onItemFocus:a,onItemShiftTab:p}=d(me,void 0),{getItems:u}=d(se,void 0),s=T(),m=r(null),g=h((e=>{o("mousedown",e)}),(o=>{e.focusable?a(i(s)):o.preventDefault()})),v=h((e=>{o("focus",e)}),(()=>{a(i(s))})),w=h((e=>{o("keydown",e)}),(e=>{const{key:o,shiftKey:n,target:r,currentTarget:l}=e;if(o===c.tab&&n)return void p();if(r!==l)return;const d=ve(e);if(d){e.preventDefault();let o=u().filter((e=>e.focusable)).map((e=>e.ref));switch(d){case"last":o.reverse();break;case"prev":case"next":{"prev"===d&&o.reverse();const e=o.indexOf(l);o=t.value?(i=e+1,(a=o).map(((e,o)=>a[(o+i)%a.length]))):o.slice(e+1);break}}F((()=>{we(o)}))}var a,i})),b=f((()=>n.value===i(s)));return l(fe,{rovingFocusGroupItemRef:m,tabIndex:f((()=>i(b)?0:-1)),handleMousedown:g,handleFocus:v,handleKeydown:w}),{id:s,handleKeydown:w,handleFocus:v,handleMousedown:g}}});var Ee=n(Ce,[["render",function(e,o,n,r,l,d){const a=_("el-roving-focus-collection-item");return y(),I(a,{id:e.id,focusable:e.focusable,active:e.active},{default:x((()=>[t(e.$slots,"default")])),_:3},8,["id","focusable","active"])}],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-item.vue"]]);const ke=e("d",u({trigger:S.trigger,effect:{...R.effect,default:"light"},type:{type:s(String)},placement:{type:s(String),default:"bottom"},popperOptions:{type:s(Object),default:()=>({})},id:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:s([Number,String]),default:0},maxHeight:{type:s([Number,String]),default:""},popperClass:{type:String,default:""},disabled:{type:Boolean,default:!1},role:{type:String,default:"menu"},buttonProps:{type:s(Object)}})),Te=u({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:B}}),Fe=u({onKeydown:{type:s(Function)}}),Se=[c.down,c.pageDown,c.home],Re=[c.up,c.pageUp,c.end],Be=[...Se,...Re],{ElCollection:Oe,ElCollectionItem:De,COLLECTION_INJECTION_KEY:Me,COLLECTION_ITEM_INJECTION_KEY:ze}=ae("Dropdown"),Ke=Symbol("elDropdown"),{ButtonGroup:Ne}=O,Pe=m({name:"ElDropdown",components:{ElButton:O,ElButtonGroup:Ne,ElScrollbar:oe,ElDropdownCollection:Oe,ElTooltip:D,ElRovingFocusGroup:xe,ElOnlyChild:M,ElIcon:z,ArrowDown:K},props:ke,emits:["visible-change","click","command"],setup(e,{emit:o}){const n=J(),t=N("dropdown"),{t:d}=te(),a=r(),p=r(),u=r(null),s=r(null),m=r(null),g=r(null),w=r(!1),b=[c.enter,c.space,c.down],h=f((()=>({maxHeight:P(e.maxHeight)}))),_=f((()=>[t.m(C.value)])),y=T().value,I=f((()=>e.id||y));function x(){var e;null==(e=u.value)||e.onClose()}const C=$();return l(Ke,{contentRef:s,role:f((()=>e.role)),triggerId:I,isUsingKeyboard:w,onItemEnter:function(){},onItemLeave:function(){const e=i(s);null==e||e.focus(),g.value=null}}),l("elDropdown",{instance:n,dropdownSize:C,handleClick:function(){x()},commandHandler:function(...e){o("command",...e)},trigger:v(e,"trigger"),hideOnClick:v(e,"hideOnClick")}),{t:d,ns:t,scrollbar:m,wrapStyle:h,dropdownTriggerKls:_,dropdownSize:C,triggerId:I,triggerKeys:b,currentTabId:g,handleCurrentTabIdChange:function(e){g.value=e},handlerMainButtonClick:e=>{o("click",e)},handleEntryFocus:function(e){w.value||(e.preventDefault(),e.stopImmediatePropagation())},handleClose:x,handleOpen:function(){var e;null==(e=u.value)||e.onOpen()},handleBeforeShowTooltip:function(){o("visible-change",!0)},handleShowTooltip:function(e){"keydown"===(null==e?void 0:e.type)&&s.value.focus()},handleBeforeHideTooltip:function(){o("visible-change",!1)},onFocusAfterTrapped:e=>{var o,n;e.preventDefault(),null==(n=null==(o=s.value)?void 0:o.focus)||n.call(o,{preventScroll:!0})},popperRef:u,contentRef:s,triggeringElementRef:a,referenceElementRef:p}}});var $e=n(Pe,[["render",function(e,o,n,r,l,d){var a;const i=_("el-dropdown-collection"),p=_("el-roving-focus-group"),u=_("el-scrollbar"),s=_("el-only-child"),c=_("el-tooltip"),m=_("el-button"),f=_("arrow-down"),g=_("el-icon"),v=_("el-button-group");return y(),L("div",{class:H([e.ns.b(),e.ns.is("disabled",e.disabled)])},[C(c,{ref:"popperRef",role:e.role,effect:e.effect,"fallback-placements":["bottom","top"],"popper-options":e.popperOptions,"gpu-acceleration":!1,"hide-after":"hover"===e.trigger?e.hideTimeout:0,"manual-mode":!0,placement:e.placement,"popper-class":[e.ns.e("popper"),e.popperClass],"reference-element":null==(a=e.referenceElementRef)?void 0:a.$el,trigger:e.trigger,"trigger-keys":e.triggerKeys,"trigger-target-el":e.contentRef,"show-after":"hover"===e.trigger?e.showTimeout:0,"stop-popper-mouse-event":!1,"virtual-ref":e.triggeringElementRef,"virtual-triggering":e.splitButton,disabled:e.disabled,transition:`${e.ns.namespace.value}-zoom-in-top`,teleported:"",pure:"",persistent:"",onBeforeShow:e.handleBeforeShowTooltip,onShow:e.handleShowTooltip,onBeforeHide:e.handleBeforeHideTooltip},G({content:x((()=>[C(u,{ref:"scrollbar","wrap-style":e.wrapStyle,tag:"div","view-class":e.ns.e("list")},{default:x((()=>[C(p,{loop:e.loop,"current-tab-id":e.currentTabId,orientation:"horizontal",onCurrentTabIdChange:e.handleCurrentTabIdChange,onEntryFocus:e.handleEntryFocus},{default:x((()=>[C(i,null,{default:x((()=>[t(e.$slots,"dropdown")])),_:3})])),_:3},8,["loop","current-tab-id","onCurrentTabIdChange","onEntryFocus"])])),_:3},8,["wrap-style","view-class"])])),_:2},[e.splitButton?void 0:{name:"default",fn:x((()=>[C(s,{id:e.triggerId,role:"button",tabindex:e.tabindex},{default:x((()=>[t(e.$slots,"default")])),_:3},8,["id","tabindex"])]))}]),1032,["role","effect","popper-options","hide-after","placement","popper-class","reference-element","trigger","trigger-keys","trigger-target-el","show-after","virtual-ref","virtual-triggering","disabled","transition","onBeforeShow","onShow","onBeforeHide"]),e.splitButton?(y(),I(v,{key:0},{default:x((()=>[C(m,A({ref:"referenceElementRef"},e.buttonProps,{size:e.dropdownSize,type:e.type,disabled:e.disabled,tabindex:e.tabindex,onClick:e.handlerMainButtonClick}),{default:x((()=>[t(e.$slots,"default")])),_:3},16,["size","type","disabled","tabindex","onClick"]),C(m,A({id:e.triggerId,ref:"triggeringElementRef"},e.buttonProps,{role:"button",size:e.dropdownSize,type:e.type,class:e.ns.e("caret-button"),disabled:e.disabled,tabindex:e.tabindex,"aria-label":e.t("el.dropdown.toggleDropdown")}),{default:x((()=>[C(g,{class:H(e.ns.e("icon"))},{default:x((()=>[C(f)])),_:1},8,["class"])])),_:1},16,["id","size","type","class","disabled","tabindex","aria-label"])])),_:3})):j("v-if",!0)],2)}],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown.vue"]]);const Le=m({name:"DropdownItemImpl",components:{ElIcon:z},props:Te,emits:["pointermove","pointerleave","click","clickimpl"],setup(e,{emit:o}){const n=N("dropdown"),{role:t}=d(Ke,void 0),{collectionItemRef:r}=d(ze,void 0),{collectionItemRef:l}=d(ce,void 0),{rovingFocusGroupItemRef:a,tabIndex:i,handleFocus:p,handleKeydown:u,handleMousedown:s}=d(fe,void 0),m=ne(r,l,a),g=f((()=>"menu"===t.value?"menuitem":"navigation"===t.value?"link":"button")),v=h((e=>{const{code:n}=e;if(n===c.enter||n===c.space)return e.preventDefault(),e.stopImmediatePropagation(),o("clickimpl",e),!0}),u);return{ns:n,itemRef:m,dataset:{[de]:""},role:g,tabIndex:i,handleFocus:p,handleKeydown:v,handleMousedown:s}}}),Ge=["aria-disabled","tabindex","role"],Ae=()=>{const e=d("elDropdown",{}),o=f((()=>null==e?void 0:e.dropdownSize));return{elDropdown:e,_elDropdownSize:o}},He=m({name:"ElDropdownItem",components:{ElDropdownCollectionItem:De,ElRovingFocusItem:Ee,ElDropdownItemImpl:n(Le,[["render",function(e,o,n,r,l,d){const a=_("el-icon");return y(),L(V,null,[e.divided?(y(),L("li",A({key:0,role:"separator",class:e.ns.bem("menu","item","divided")},e.$attrs),null,16)):j("v-if",!0),Y("li",A({ref:e.itemRef},{...e.dataset,...e.$attrs},{"aria-disabled":e.disabled,class:[e.ns.be("menu","item"),e.ns.is("disabled",e.disabled)],tabindex:e.tabIndex,role:e.role,onClick:o[0]||(o[0]=o=>e.$emit("clickimpl",o)),onFocus:o[1]||(o[1]=(...o)=>e.handleFocus&&e.handleFocus(...o)),onKeydown:o[2]||(o[2]=(...o)=>e.handleKeydown&&e.handleKeydown(...o)),onMousedown:o[3]||(o[3]=(...o)=>e.handleMousedown&&e.handleMousedown(...o)),onPointermove:o[4]||(o[4]=o=>e.$emit("pointermove",o)),onPointerleave:o[5]||(o[5]=o=>e.$emit("pointerleave",o))}),[e.icon?(y(),I(a,{key:0},{default:x((()=>[(y(),I(U(e.icon)))])),_:1})):j("v-if",!0),t(e.$slots,"default")],16,Ge)],64)}],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item-impl.vue"]])},inheritAttrs:!1,props:Te,emits:["pointermove","pointerleave","click"],setup(e,{emit:o,attrs:n}){const{elDropdown:t}=Ae(),l=J(),a=r(null),p=f((()=>{var e,o;return null!=(o=null==(e=i(a))?void 0:e.textContent)?o:""})),{onItemEnter:u,onItemLeave:s}=d(Ke,void 0),c=h((e=>(o("pointermove",e),e.defaultPrevented)),W((o=>{var n;e.disabled?s(o):(u(o),o.defaultPrevented||null==(n=o.currentTarget)||n.focus())}))),m=h((e=>(o("pointerleave",e),e.defaultPrevented)),W((e=>{s(e)})));return{handleClick:h((e=>(o("click",e),"keydown"!==e.type&&e.defaultPrevented)),(o=>{var n,r,d;e.disabled?o.stopImmediatePropagation():((null==(n=null==t?void 0:t.hideOnClick)?void 0:n.value)&&(null==(r=t.handleClick)||r.call(t)),null==(d=t.commandHandler)||d.call(t,e.command,l,o))})),handlePointerMove:c,handlePointerLeave:m,textContent:p,propsAndAttrs:f((()=>({...e,...n})))}}});var je=n(He,[["render",function(e,o,n,r,l,d){var a;const i=_("el-dropdown-item-impl"),p=_("el-roving-focus-item"),u=_("el-dropdown-collection-item");return y(),I(u,{disabled:e.disabled,"text-value":null!=(a=e.textValue)?a:e.textContent},{default:x((()=>[C(p,{focusable:!e.disabled},{default:x((()=>[C(i,A(e.propsAndAttrs,{onPointerleave:e.handlePointerLeave,onPointermove:e.handlePointerMove,onClickimpl:e.handleClick}),{default:x((()=>[t(e.$slots,"default")])),_:3},16,["onPointerleave","onPointermove","onClickimpl"])])),_:3},8,["focusable"])])),_:3},8,["disabled","text-value"])}],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item.vue"]]);const Je=m({name:"ElDropdownMenu",props:Fe,setup(e){const o=N("dropdown"),{_elDropdownSize:n}=Ae(),t=n.value,{focusTrapRef:r,onKeydown:l}=d(q,void 0),{contentRef:a,role:p,triggerId:u}=d(Ke,void 0),{collectionRef:s,getItems:m}=d(Me,void 0),{rovingFocusGroupRef:g,rovingFocusGroupRootStyle:v,tabIndex:w,onBlur:b,onFocus:_,onMousedown:y}=d(me,void 0),{collectionRef:I}=d(se,void 0),x=f((()=>[o.b("menu"),o.bm("menu",null==t?void 0:t.value)])),C=ne(a,s,r,g,I),E=h((o=>{var n;null==(n=e.onKeydown)||n.call(e,o)}),(e=>{const{currentTarget:o,code:n,target:t}=e;if(o.contains(t),c.tab===n&&e.stopImmediatePropagation(),e.preventDefault(),t!==i(a))return;if(!Be.includes(n))return;const r=m().filter((e=>!e.disabled)).map((e=>e.ref));Re.includes(n)&&r.reverse(),we(r)}));return{size:t,rovingFocusGroupRootStyle:v,tabIndex:w,dropdownKls:x,role:p,triggerId:u,dropdownListWrapperRef:C,handleKeydown:e=>{E(e),l(e)},onBlur:b,onFocus:_,onMousedown:y}}}),Ye=["role","aria-labelledby"];var Ue=n(Je,[["render",function(e,o,n,r,l,d){return y(),L("ul",{ref:e.dropdownListWrapperRef,class:H(e.dropdownKls),style:Q(e.rovingFocusGroupRootStyle),tabindex:-1,role:e.role,"aria-labelledby":e.triggerId,onBlur:o[0]||(o[0]=(...o)=>e.onBlur&&e.onBlur(...o)),onFocus:o[1]||(o[1]=(...o)=>e.onFocus&&e.onFocus(...o)),onKeydown:o[2]||(o[2]=(...o)=>e.handleKeydown&&e.handleKeydown(...o)),onMousedown:o[3]||(o[3]=(...o)=>e.onMousedown&&e.onMousedown(...o))},[t(e.$slots,"default")],46,Ye)}],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-menu.vue"]]);e("E",X($e,{DropdownItem:je,DropdownMenu:Ue})),e("b",Z(je)),e("c",Z(Ue));const Ve=m({name:"ArrowDown"}),We={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},qe=[Y("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"},null,-1)];e("a",ee(Ve,[["render",function(e,o,n,t,r,l){return y(),L("svg",We,qe)}]]))}}}));
2
+ //# sourceMappingURL=el-dropdown-item-legacy.4888d114.js.map