@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":"tip-00ddf749.js","sources":["../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/throttle.js","../../node_modules/.pnpm/element-plus@2.2.13_vue@3.3.4/node_modules/element-plus/es/utils/dom/position.mjs","../../node_modules/.pnpm/element-plus@2.2.13_vue@3.3.4/node_modules/element-plus/es/utils/browser.mjs","../../node_modules/.pnpm/element-plus@2.2.13_vue@3.3.4/node_modules/element-plus/es/components/image-viewer/src/image-viewer.mjs","../../node_modules/.pnpm/element-plus@2.2.13_vue@3.3.4/node_modules/element-plus/es/components/image-viewer/src/image-viewer2.mjs","../../node_modules/.pnpm/element-plus@2.2.13_vue@3.3.4/node_modules/element-plus/es/components/image-viewer/index.mjs","../../node_modules/.pnpm/element-plus@2.2.13_vue@3.3.4/node_modules/element-plus/es/components/image/src/image.mjs","../../node_modules/.pnpm/element-plus@2.2.13_vue@3.3.4/node_modules/element-plus/es/components/image/src/image2.mjs","../../node_modules/.pnpm/element-plus@2.2.13_vue@3.3.4/node_modules/element-plus/es/components/image/index.mjs","../../node_modules/.pnpm/@element-plus+icons-vue@1.1.4_vue@3.3.4/node_modules/@element-plus/icons-vue/dist/es/opportunity.mjs"],"sourcesContent":["import debounce from './debounce.js';\nimport isObject from './isObject.js';\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/**\n * Creates a throttled function that only invokes `func` at most once per\n * every `wait` milliseconds. The throttled function comes with a `cancel`\n * method to cancel delayed `func` invocations and a `flush` method to\n * immediately invoke them. Provide `options` to indicate whether `func`\n * should be invoked on the leading and/or trailing edge of the `wait`\n * timeout. The `func` is invoked with the last arguments provided to the\n * throttled function. Subsequent calls to the throttled function return the\n * result of the last `func` invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the throttled function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.throttle` and `_.debounce`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to throttle.\n * @param {number} [wait=0] The number of milliseconds to throttle invocations to.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=true]\n * Specify invoking on the leading edge of the timeout.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new throttled function.\n * @example\n *\n * // Avoid excessively updating the position while scrolling.\n * jQuery(window).on('scroll', _.throttle(updatePosition, 100));\n *\n * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.\n * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });\n * jQuery(element).on('click', throttled);\n *\n * // Cancel the trailing throttled invocation.\n * jQuery(window).on('popstate', throttled.cancel);\n */\nfunction throttle(func, wait, options) {\n var leading = true,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n if (isObject(options)) {\n leading = 'leading' in options ? !!options.leading : leading;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n return debounce(func, wait, {\n 'leading': leading,\n 'maxWait': wait,\n 'trailing': trailing\n });\n}\n\nexport default throttle;\n","import { isClient } from '@vueuse/core';\n\nconst isInContainer = (el, container) => {\n if (!isClient || !el || !container)\n return false;\n const elRect = el.getBoundingClientRect();\n let containerRect;\n if (container instanceof Element) {\n containerRect = container.getBoundingClientRect();\n } else {\n containerRect = {\n top: 0,\n right: window.innerWidth,\n bottom: window.innerHeight,\n left: 0\n };\n }\n return elRect.top < containerRect.bottom && elRect.bottom > containerRect.top && elRect.right > containerRect.left && elRect.left < containerRect.right;\n};\nconst getOffsetTop = (el) => {\n let offset = 0;\n let parent = el;\n while (parent) {\n offset += parent.offsetTop;\n parent = parent.offsetParent;\n }\n return offset;\n};\nconst getOffsetTopDistance = (el, containerEl) => {\n return Math.abs(getOffsetTop(el) - getOffsetTop(containerEl));\n};\nconst getClientXY = (event) => {\n let clientX;\n let clientY;\n if (event.type === \"touchend\") {\n clientY = event.changedTouches[0].clientY;\n clientX = event.changedTouches[0].clientX;\n } else if (event.type.startsWith(\"touch\")) {\n clientY = event.touches[0].clientY;\n clientX = event.touches[0].clientX;\n } else {\n clientY = event.clientY;\n clientX = event.clientX;\n }\n return {\n clientX,\n clientY\n };\n};\n\nexport { getClientXY, getOffsetTop, getOffsetTopDistance, isInContainer };\n//# sourceMappingURL=position.mjs.map\n","import { isClient } from '@vueuse/core';\n\nconst isFirefox = () => isClient && /firefox/i.test(window.navigator.userAgent);\n\nexport { isFirefox };\n//# sourceMappingURL=browser.mjs.map\n","import '../../../utils/index.mjs';\nimport { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';\nimport { mutable } from '../../../utils/typescript.mjs';\nimport { isNumber } from '@vueuse/core';\n\nconst imageViewerProps = buildProps({\n urlList: {\n type: definePropType(Array),\n default: () => mutable([])\n },\n zIndex: {\n type: Number\n },\n initialIndex: {\n type: Number,\n default: 0\n },\n infinite: {\n type: Boolean,\n default: true\n },\n hideOnClickModal: {\n type: Boolean,\n default: false\n },\n teleported: {\n type: Boolean,\n default: false\n },\n closeOnPressEscape: {\n type: Boolean,\n default: true\n }\n});\nconst imageViewerEmits = {\n close: () => true,\n switch: (index) => isNumber(index)\n};\n\nexport { imageViewerEmits, imageViewerProps };\n//# sourceMappingURL=image-viewer.mjs.map\n","import { defineComponent, markRaw, ref, effectScope, shallowRef, computed, watch, nextTick, onMounted, openBlock, createBlock, Teleport, createVNode, Transition, withCtx, createElementVNode, normalizeClass, unref, normalizeStyle, withModifiers, createCommentVNode, createElementBlock, Fragment, resolveDynamicComponent, renderList, withDirectives, vShow, renderSlot } from 'vue';\nimport { isNumber, useEventListener } from '@vueuse/core';\nimport { throttle } from 'lodash-unified';\nimport '../../../hooks/index.mjs';\nimport '../../../constants/index.mjs';\nimport '../../../utils/index.mjs';\nimport { ElIcon } from '../../icon/index.mjs';\nimport { FullScreen, ScaleToOriginal, Close, ArrowLeft, ArrowRight, ZoomOut, ZoomIn, RefreshLeft, RefreshRight } from '@element-plus/icons-vue';\nimport { imageViewerProps, imageViewerEmits } from './image-viewer.mjs';\nimport _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';\nimport { isFirefox } from '../../../utils/browser.mjs';\nimport { useLocale } from '../../../hooks/use-locale/index.mjs';\nimport { useNamespace } from '../../../hooks/use-namespace/index.mjs';\nimport { useZIndex } from '../../../hooks/use-z-index/index.mjs';\nimport { EVENT_CODE } from '../../../constants/aria.mjs';\nimport { keysOf } from '../../../utils/objects.mjs';\n\nconst _hoisted_1 = [\"src\"];\nconst __default__ = {\n name: \"ElImageViewer\"\n};\nconst _sfc_main = /* @__PURE__ */ defineComponent({\n ...__default__,\n props: imageViewerProps,\n emits: imageViewerEmits,\n setup(__props, { emit }) {\n const props = __props;\n const modes = {\n CONTAIN: {\n name: \"contain\",\n icon: markRaw(FullScreen)\n },\n ORIGINAL: {\n name: \"original\",\n icon: markRaw(ScaleToOriginal)\n }\n };\n const mousewheelEventName = isFirefox() ? \"DOMMouseScroll\" : \"mousewheel\";\n const { t } = useLocale();\n const ns = useNamespace(\"image-viewer\");\n const { nextZIndex } = useZIndex();\n const wrapper = ref();\n const imgRefs = ref([]);\n const scopeEventListener = effectScope();\n const loading = ref(true);\n const index = ref(props.initialIndex);\n const mode = shallowRef(modes.CONTAIN);\n const transform = ref({\n scale: 1,\n deg: 0,\n offsetX: 0,\n offsetY: 0,\n enableTransition: false\n });\n const isSingle = computed(() => {\n const { urlList } = props;\n return urlList.length <= 1;\n });\n const isFirst = computed(() => {\n return index.value === 0;\n });\n const isLast = computed(() => {\n return index.value === props.urlList.length - 1;\n });\n const currentImg = computed(() => {\n return props.urlList[index.value];\n });\n const imgStyle = computed(() => {\n const { scale, deg, offsetX, offsetY, enableTransition } = transform.value;\n let translateX = offsetX / scale;\n let translateY = offsetY / scale;\n switch (deg % 360) {\n case 90:\n case -270:\n ;\n [translateX, translateY] = [translateY, -translateX];\n break;\n case 180:\n case -180:\n ;\n [translateX, translateY] = [-translateX, -translateY];\n break;\n case 270:\n case -90:\n ;\n [translateX, translateY] = [-translateY, translateX];\n break;\n }\n const style = {\n transform: `scale(${scale}) rotate(${deg}deg) translate(${translateX}px, ${translateY}px)`,\n transition: enableTransition ? \"transform .3s\" : \"\"\n };\n if (mode.value.name === modes.CONTAIN.name) {\n style.maxWidth = style.maxHeight = \"100%\";\n }\n return style;\n });\n const computedZIndex = computed(() => {\n return isNumber(props.zIndex) ? props.zIndex : nextZIndex();\n });\n function hide() {\n unregisterEventListener();\n emit(\"close\");\n }\n function registerEventListener() {\n const keydownHandler = throttle((e) => {\n switch (e.code) {\n case EVENT_CODE.esc:\n props.closeOnPressEscape && hide();\n break;\n case EVENT_CODE.space:\n toggleMode();\n break;\n case EVENT_CODE.left:\n prev();\n break;\n case EVENT_CODE.up:\n handleActions(\"zoomIn\");\n break;\n case EVENT_CODE.right:\n next();\n break;\n case EVENT_CODE.down:\n handleActions(\"zoomOut\");\n break;\n }\n });\n const mousewheelHandler = throttle((e) => {\n const delta = e.wheelDelta ? e.wheelDelta : -e.detail;\n if (delta > 0) {\n handleActions(\"zoomIn\", {\n zoomRate: 1.2,\n enableTransition: false\n });\n } else {\n handleActions(\"zoomOut\", {\n zoomRate: 1.2,\n enableTransition: false\n });\n }\n });\n scopeEventListener.run(() => {\n useEventListener(document, \"keydown\", keydownHandler);\n useEventListener(document, mousewheelEventName, mousewheelHandler);\n });\n }\n function unregisterEventListener() {\n scopeEventListener.stop();\n }\n function handleImgLoad() {\n loading.value = false;\n }\n function handleImgError(e) {\n loading.value = false;\n e.target.alt = t(\"el.image.error\");\n }\n function handleMouseDown(e) {\n if (loading.value || e.button !== 0 || !wrapper.value)\n return;\n transform.value.enableTransition = false;\n const { offsetX, offsetY } = transform.value;\n const startX = e.pageX;\n const startY = e.pageY;\n const dragHandler = throttle((ev) => {\n transform.value = {\n ...transform.value,\n offsetX: offsetX + ev.pageX - startX,\n offsetY: offsetY + ev.pageY - startY\n };\n });\n const removeMousemove = useEventListener(document, \"mousemove\", dragHandler);\n useEventListener(document, \"mouseup\", () => {\n removeMousemove();\n });\n e.preventDefault();\n }\n function reset() {\n transform.value = {\n scale: 1,\n deg: 0,\n offsetX: 0,\n offsetY: 0,\n enableTransition: false\n };\n }\n function toggleMode() {\n if (loading.value)\n return;\n const modeNames = keysOf(modes);\n const modeValues = Object.values(modes);\n const currentMode = mode.value.name;\n const index2 = modeValues.findIndex((i) => i.name === currentMode);\n const nextIndex = (index2 + 1) % modeNames.length;\n mode.value = modes[modeNames[nextIndex]];\n reset();\n }\n function prev() {\n if (isFirst.value && !props.infinite)\n return;\n const len = props.urlList.length;\n index.value = (index.value - 1 + len) % len;\n }\n function next() {\n if (isLast.value && !props.infinite)\n return;\n const len = props.urlList.length;\n index.value = (index.value + 1) % len;\n }\n function handleActions(action, options = {}) {\n if (loading.value)\n return;\n const { zoomRate, rotateDeg, enableTransition } = {\n zoomRate: 1.4,\n rotateDeg: 90,\n enableTransition: true,\n ...options\n };\n switch (action) {\n case \"zoomOut\":\n if (transform.value.scale > 0.2) {\n transform.value.scale = Number.parseFloat((transform.value.scale / zoomRate).toFixed(3));\n }\n break;\n case \"zoomIn\":\n if (transform.value.scale < 7) {\n transform.value.scale = Number.parseFloat((transform.value.scale * zoomRate).toFixed(3));\n }\n break;\n case \"clockwise\":\n transform.value.deg += rotateDeg;\n break;\n case \"anticlockwise\":\n transform.value.deg -= rotateDeg;\n break;\n }\n transform.value.enableTransition = enableTransition;\n }\n watch(currentImg, () => {\n nextTick(() => {\n const $img = imgRefs.value[0];\n if (!($img == null ? void 0 : $img.complete)) {\n loading.value = true;\n }\n });\n });\n watch(index, (val) => {\n reset();\n emit(\"switch\", val);\n });\n onMounted(() => {\n var _a, _b;\n registerEventListener();\n (_b = (_a = wrapper.value) == null ? void 0 : _a.focus) == null ? void 0 : _b.call(_a);\n });\n return (_ctx, _cache) => {\n return openBlock(), createBlock(Teleport, {\n to: \"body\",\n disabled: !_ctx.teleported\n }, [\n createVNode(Transition, {\n name: \"viewer-fade\",\n appear: \"\"\n }, {\n default: withCtx(() => [\n createElementVNode(\"div\", {\n ref_key: \"wrapper\",\n ref: wrapper,\n tabindex: -1,\n class: normalizeClass(unref(ns).e(\"wrapper\")),\n style: normalizeStyle({ zIndex: unref(computedZIndex) })\n }, [\n createElementVNode(\"div\", {\n class: normalizeClass(unref(ns).e(\"mask\")),\n onClick: _cache[0] || (_cache[0] = withModifiers(($event) => _ctx.hideOnClickModal && hide(), [\"self\"]))\n }, null, 2),\n createCommentVNode(\" CLOSE \"),\n createElementVNode(\"span\", {\n class: normalizeClass([unref(ns).e(\"btn\"), unref(ns).e(\"close\")]),\n onClick: hide\n }, [\n createVNode(unref(ElIcon), null, {\n default: withCtx(() => [\n createVNode(unref(Close))\n ]),\n _: 1\n })\n ], 2),\n createCommentVNode(\" ARROW \"),\n !unref(isSingle) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [\n createElementVNode(\"span\", {\n class: normalizeClass([\n unref(ns).e(\"btn\"),\n unref(ns).e(\"prev\"),\n unref(ns).is(\"disabled\", !_ctx.infinite && unref(isFirst))\n ]),\n onClick: prev\n }, [\n createVNode(unref(ElIcon), null, {\n default: withCtx(() => [\n createVNode(unref(ArrowLeft))\n ]),\n _: 1\n })\n ], 2),\n createElementVNode(\"span\", {\n class: normalizeClass([\n unref(ns).e(\"btn\"),\n unref(ns).e(\"next\"),\n unref(ns).is(\"disabled\", !_ctx.infinite && unref(isLast))\n ]),\n onClick: next\n }, [\n createVNode(unref(ElIcon), null, {\n default: withCtx(() => [\n createVNode(unref(ArrowRight))\n ]),\n _: 1\n })\n ], 2)\n ], 64)) : createCommentVNode(\"v-if\", true),\n createCommentVNode(\" ACTIONS \"),\n createElementVNode(\"div\", {\n class: normalizeClass([unref(ns).e(\"btn\"), unref(ns).e(\"actions\")])\n }, [\n createElementVNode(\"div\", {\n class: normalizeClass(unref(ns).e(\"actions__inner\"))\n }, [\n createVNode(unref(ElIcon), {\n onClick: _cache[1] || (_cache[1] = ($event) => handleActions(\"zoomOut\"))\n }, {\n default: withCtx(() => [\n createVNode(unref(ZoomOut))\n ]),\n _: 1\n }),\n createVNode(unref(ElIcon), {\n onClick: _cache[2] || (_cache[2] = ($event) => handleActions(\"zoomIn\"))\n }, {\n default: withCtx(() => [\n createVNode(unref(ZoomIn))\n ]),\n _: 1\n }),\n createElementVNode(\"i\", {\n class: normalizeClass(unref(ns).e(\"actions__divider\"))\n }, null, 2),\n createVNode(unref(ElIcon), { onClick: toggleMode }, {\n default: withCtx(() => [\n (openBlock(), createBlock(resolveDynamicComponent(unref(mode).icon)))\n ]),\n _: 1\n }),\n createElementVNode(\"i\", {\n class: normalizeClass(unref(ns).e(\"actions__divider\"))\n }, null, 2),\n createVNode(unref(ElIcon), {\n onClick: _cache[3] || (_cache[3] = ($event) => handleActions(\"anticlockwise\"))\n }, {\n default: withCtx(() => [\n createVNode(unref(RefreshLeft))\n ]),\n _: 1\n }),\n createVNode(unref(ElIcon), {\n onClick: _cache[4] || (_cache[4] = ($event) => handleActions(\"clockwise\"))\n }, {\n default: withCtx(() => [\n createVNode(unref(RefreshRight))\n ]),\n _: 1\n })\n ], 2)\n ], 2),\n createCommentVNode(\" CANVAS \"),\n createElementVNode(\"div\", {\n class: normalizeClass(unref(ns).e(\"canvas\"))\n }, [\n (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.urlList, (url, i) => {\n return withDirectives((openBlock(), createElementBlock(\"img\", {\n ref_for: true,\n ref: (el) => imgRefs.value[i] = el,\n key: url,\n src: url,\n style: normalizeStyle(unref(imgStyle)),\n class: normalizeClass(unref(ns).e(\"img\")),\n onLoad: handleImgLoad,\n onError: handleImgError,\n onMousedown: handleMouseDown\n }, null, 46, _hoisted_1)), [\n [vShow, i === index.value]\n ]);\n }), 128))\n ], 2),\n renderSlot(_ctx.$slots, \"default\")\n ], 6)\n ]),\n _: 3\n })\n ], 8, [\"disabled\"]);\n };\n }\n});\nvar ImageViewer = /* @__PURE__ */ _export_sfc(_sfc_main, [[\"__file\", \"/home/runner/work/element-plus/element-plus/packages/components/image-viewer/src/image-viewer.vue\"]]);\n\nexport { ImageViewer as default };\n//# sourceMappingURL=image-viewer2.mjs.map\n","import '../../utils/index.mjs';\nimport ImageViewer from './src/image-viewer2.mjs';\nexport { imageViewerEmits, imageViewerProps } from './src/image-viewer.mjs';\nimport { withInstall } from '../../utils/vue/install.mjs';\n\nconst ElImageViewer = withInstall(ImageViewer);\n\nexport { ElImageViewer, ElImageViewer as default };\n//# sourceMappingURL=index.mjs.map\n","import '../../../utils/index.mjs';\nimport { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';\nimport { mutable } from '../../../utils/typescript.mjs';\nimport { isNumber } from '@vueuse/core';\n\nconst imageProps = buildProps({\n hideOnClickModal: {\n type: Boolean,\n default: false\n },\n src: {\n type: String,\n default: \"\"\n },\n fit: {\n type: String,\n values: [\"\", \"contain\", \"cover\", \"fill\", \"none\", \"scale-down\"],\n default: \"\"\n },\n loading: {\n type: String,\n values: [\"eager\", \"lazy\"]\n },\n lazy: {\n type: Boolean,\n default: false\n },\n scrollContainer: {\n type: definePropType([String, Object])\n },\n previewSrcList: {\n type: definePropType(Array),\n default: () => mutable([])\n },\n previewTeleported: {\n type: Boolean,\n default: false\n },\n zIndex: {\n type: Number\n },\n initialIndex: {\n type: Number,\n default: 0\n },\n infinite: {\n type: Boolean,\n default: true\n },\n closeOnPressEscape: {\n type: Boolean,\n default: true\n }\n});\nconst imageEmits = {\n load: (evt) => evt instanceof Event,\n error: (evt) => evt instanceof Event,\n switch: (val) => isNumber(val),\n close: () => true,\n show: () => true\n};\n\nexport { imageEmits, imageProps };\n//# sourceMappingURL=image.mjs.map\n","import { defineComponent, useAttrs, ref, computed, nextTick, watch, onMounted, openBlock, createElementBlock, normalizeClass, unref, normalizeStyle, mergeProps, createCommentVNode, renderSlot, createElementVNode, toDisplayString, Fragment, createBlock, withCtx } from 'vue';\nimport { isClient, useThrottleFn, useEventListener } from '@vueuse/core';\nimport '../../../hooks/index.mjs';\nimport { ElImageViewer } from '../../image-viewer/index.mjs';\nimport '../../../utils/index.mjs';\nimport { imageProps, imageEmits } from './image.mjs';\nimport _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';\nimport { useLocale } from '../../../hooks/use-locale/index.mjs';\nimport { useNamespace } from '../../../hooks/use-namespace/index.mjs';\nimport { useAttrs as useAttrs$1 } from '../../../hooks/use-attrs/index.mjs';\nimport { isInContainer } from '../../../utils/dom/position.mjs';\nimport { isElement } from '../../../utils/types.mjs';\nimport { isString } from '@vue/shared';\nimport { getScrollContainer } from '../../../utils/dom/scroll.mjs';\n\nconst _hoisted_1 = [\"src\", \"loading\"];\nconst _hoisted_2 = { key: 0 };\nconst __default__ = {\n name: \"ElImage\",\n inheritAttrs: false\n};\nconst _sfc_main = /* @__PURE__ */ defineComponent({\n ...__default__,\n props: imageProps,\n emits: imageEmits,\n setup(__props, { emit }) {\n const props = __props;\n let prevOverflow = \"\";\n const { t } = useLocale();\n const ns = useNamespace(\"image\");\n const rawAttrs = useAttrs();\n const attrs = useAttrs$1();\n const imageSrc = ref();\n const hasLoadError = ref(false);\n const isLoading = ref(true);\n const showViewer = ref(false);\n const container = ref();\n const _scrollContainer = ref();\n const supportLoading = isClient && \"loading\" in HTMLImageElement.prototype;\n let stopScrollListener;\n let stopWheelListener;\n const containerStyle = computed(() => rawAttrs.style);\n const imageStyle = computed(() => {\n const { fit } = props;\n if (isClient && fit) {\n return { objectFit: fit };\n }\n return {};\n });\n const preview = computed(() => {\n const { previewSrcList } = props;\n return Array.isArray(previewSrcList) && previewSrcList.length > 0;\n });\n const imageIndex = computed(() => {\n const { previewSrcList, initialIndex } = props;\n let previewIndex = initialIndex;\n if (initialIndex > previewSrcList.length - 1) {\n previewIndex = 0;\n }\n return previewIndex;\n });\n const isManual = computed(() => {\n if (props.loading === \"eager\")\n return false;\n return !supportLoading && props.loading === \"lazy\" || props.lazy;\n });\n const loadImage = () => {\n if (!isClient)\n return;\n isLoading.value = true;\n hasLoadError.value = false;\n imageSrc.value = props.src;\n };\n function handleLoad(event) {\n isLoading.value = false;\n hasLoadError.value = false;\n emit(\"load\", event);\n }\n function handleError(event) {\n isLoading.value = false;\n hasLoadError.value = true;\n emit(\"error\", event);\n }\n function handleLazyLoad() {\n if (isInContainer(container.value, _scrollContainer.value)) {\n loadImage();\n removeLazyLoadListener();\n }\n }\n const lazyLoadHandler = useThrottleFn(handleLazyLoad, 200);\n async function addLazyLoadListener() {\n var _a;\n if (!isClient)\n return;\n await nextTick();\n const { scrollContainer } = props;\n if (isElement(scrollContainer)) {\n _scrollContainer.value = scrollContainer;\n } else if (isString(scrollContainer) && scrollContainer !== \"\") {\n _scrollContainer.value = (_a = document.querySelector(scrollContainer)) != null ? _a : void 0;\n } else if (container.value) {\n _scrollContainer.value = getScrollContainer(container.value);\n }\n if (_scrollContainer.value) {\n stopScrollListener = useEventListener(_scrollContainer, \"scroll\", lazyLoadHandler);\n setTimeout(() => handleLazyLoad(), 100);\n }\n }\n function removeLazyLoadListener() {\n if (!isClient || !_scrollContainer.value || !lazyLoadHandler)\n return;\n stopScrollListener == null ? void 0 : stopScrollListener();\n _scrollContainer.value = void 0;\n }\n function wheelHandler(e) {\n if (!e.ctrlKey)\n return;\n if (e.deltaY < 0) {\n e.preventDefault();\n return false;\n } else if (e.deltaY > 0) {\n e.preventDefault();\n return false;\n }\n }\n function clickHandler() {\n if (!preview.value)\n return;\n stopWheelListener = useEventListener(\"wheel\", wheelHandler, {\n passive: false\n });\n prevOverflow = document.body.style.overflow;\n document.body.style.overflow = \"hidden\";\n showViewer.value = true;\n emit(\"show\");\n }\n function closeViewer() {\n stopWheelListener == null ? void 0 : stopWheelListener();\n document.body.style.overflow = prevOverflow;\n showViewer.value = false;\n emit(\"close\");\n }\n function switchViewer(val) {\n emit(\"switch\", val);\n }\n watch(() => props.src, () => {\n if (isManual.value) {\n isLoading.value = true;\n hasLoadError.value = false;\n removeLazyLoadListener();\n addLazyLoadListener();\n } else {\n loadImage();\n }\n });\n onMounted(() => {\n if (isManual.value) {\n addLazyLoadListener();\n } else {\n loadImage();\n }\n });\n return (_ctx, _cache) => {\n return openBlock(), createElementBlock(\"div\", {\n ref_key: \"container\",\n ref: container,\n class: normalizeClass([unref(ns).b(), _ctx.$attrs.class]),\n style: normalizeStyle(unref(containerStyle))\n }, [\n imageSrc.value !== void 0 && !hasLoadError.value ? (openBlock(), createElementBlock(\"img\", mergeProps({ key: 0 }, unref(attrs), {\n src: imageSrc.value,\n loading: _ctx.loading,\n style: unref(imageStyle),\n class: [\n unref(ns).e(\"inner\"),\n unref(preview) && unref(ns).e(\"preview\"),\n isLoading.value && unref(ns).is(\"loading\")\n ],\n onClick: clickHandler,\n onLoad: handleLoad,\n onError: handleError\n }), null, 16, _hoisted_1)) : createCommentVNode(\"v-if\", true),\n isLoading.value || hasLoadError.value ? (openBlock(), createElementBlock(\"div\", {\n key: 1,\n class: normalizeClass(unref(ns).e(\"wrapper\"))\n }, [\n isLoading.value ? renderSlot(_ctx.$slots, \"placeholder\", { key: 0 }, () => [\n createElementVNode(\"div\", {\n class: normalizeClass(unref(ns).e(\"placeholder\"))\n }, null, 2)\n ]) : hasLoadError.value ? renderSlot(_ctx.$slots, \"error\", { key: 1 }, () => [\n createElementVNode(\"div\", {\n class: normalizeClass(unref(ns).e(\"error\"))\n }, toDisplayString(unref(t)(\"el.image.error\")), 3)\n ]) : createCommentVNode(\"v-if\", true)\n ], 2)) : createCommentVNode(\"v-if\", true),\n unref(preview) ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [\n showViewer.value ? (openBlock(), createBlock(unref(ElImageViewer), {\n key: 0,\n \"z-index\": _ctx.zIndex,\n \"initial-index\": unref(imageIndex),\n infinite: _ctx.infinite,\n \"url-list\": _ctx.previewSrcList,\n \"hide-on-click-modal\": _ctx.hideOnClickModal,\n teleported: _ctx.previewTeleported,\n \"close-on-press-escape\": _ctx.closeOnPressEscape,\n onClose: closeViewer,\n onSwitch: switchViewer\n }, {\n default: withCtx(() => [\n _ctx.$slots.viewer ? (openBlock(), createElementBlock(\"div\", _hoisted_2, [\n renderSlot(_ctx.$slots, \"viewer\")\n ])) : createCommentVNode(\"v-if\", true)\n ]),\n _: 3\n }, 8, [\"z-index\", \"initial-index\", \"infinite\", \"url-list\", \"hide-on-click-modal\", \"teleported\", \"close-on-press-escape\"])) : createCommentVNode(\"v-if\", true)\n ], 64)) : createCommentVNode(\"v-if\", true)\n ], 6);\n };\n }\n});\nvar Image = /* @__PURE__ */ _export_sfc(_sfc_main, [[\"__file\", \"/home/runner/work/element-plus/element-plus/packages/components/image/src/image.vue\"]]);\n\nexport { Image as default };\n//# sourceMappingURL=image2.mjs.map\n","import '../../utils/index.mjs';\nimport Image from './src/image2.mjs';\nexport { imageEmits, imageProps } from './src/image.mjs';\nimport { withInstall } from '../../utils/vue/install.mjs';\n\nconst ElImage = withInstall(Image);\n\nexport { ElImage, ElImage 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: \"Opportunity\"\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: \"M384 960v-64h192.064v64H384zm448-544a350.656 350.656 0 0 1-128.32 271.424C665.344 719.04 640 763.776 640 813.504V832H320v-14.336c0-48-19.392-95.36-57.216-124.992a351.552 351.552 0 0 1-128.448-344.256c25.344-136.448 133.888-248.128 269.76-276.48A352.384 352.384 0 0 1 832 416zm-544 32c0-132.288 75.904-224 192-224v-64c-154.432 0-256 122.752-256 288h64z\"\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 opportunity = /* @__PURE__ */ _export_sfc(_sfc_main, [[\"render\", _sfc_render]]);\n\nexport { opportunity as default };\n"],"names":["FUNC_ERROR_TEXT","throttle","func","wait","options","leading","trailing","isObject","debounce","isInContainer","el","container","isClient","elRect","containerRect","isFirefox","imageViewerProps","buildProps","definePropType","mutable","imageViewerEmits","index","isNumber","_hoisted_1","__default__","_sfc_main","defineComponent","__props","emit","props","modes","markRaw","FullScreen","ScaleToOriginal","mousewheelEventName","t","useLocale","ns","useNamespace","nextZIndex","useZIndex","wrapper","ref","imgRefs","scopeEventListener","effectScope","loading","mode","shallowRef","transform","isSingle","computed","urlList","isFirst","isLast","currentImg","imgStyle","scale","deg","offsetX","offsetY","enableTransition","translateX","translateY","style","computedZIndex","hide","unregisterEventListener","registerEventListener","keydownHandler","e","EVENT_CODE","toggleMode","prev","handleActions","next","mousewheelHandler","useEventListener","handleImgLoad","handleImgError","handleMouseDown","startX","startY","dragHandler","ev","removeMousemove","reset","modeNames","keysOf","modeValues","currentMode","nextIndex","i","len","action","zoomRate","rotateDeg","watch","nextTick","$img","val","onMounted","_a","_b","_ctx","_cache","openBlock","createBlock","Teleport","createVNode","Transition","withCtx","createElementVNode","normalizeClass","unref","normalizeStyle","withModifiers","$event","createCommentVNode","ElIcon","Close","createElementBlock","Fragment","ArrowLeft","ArrowRight","ZoomOut","ZoomIn","resolveDynamicComponent","RefreshLeft","RefreshRight","renderList","url","withDirectives","vShow","renderSlot","ImageViewer","_export_sfc","ElImageViewer","withInstall","imageProps","imageEmits","evt","_hoisted_2","prevOverflow","rawAttrs","useAttrs","attrs","useAttrs$1","imageSrc","hasLoadError","isLoading","showViewer","_scrollContainer","supportLoading","stopScrollListener","stopWheelListener","containerStyle","imageStyle","fit","preview","previewSrcList","imageIndex","initialIndex","previewIndex","isManual","loadImage","handleLoad","event","handleError","handleLazyLoad","removeLazyLoadListener","lazyLoadHandler","useThrottleFn","addLazyLoadListener","scrollContainer","isElement","isString","getScrollContainer","wheelHandler","clickHandler","closeViewer","switchViewer","mergeProps","toDisplayString","Image","ElImage","_hoisted_3","_sfc_render","$props","$setup","$data","$options","opportunity"],"mappings":"8mBAIA,IAAIA,GAAkB,sBA8CtB,SAASC,GAASC,EAAMC,EAAMC,EAAS,CACrC,IAAIC,EAAU,GACVC,EAAW,GAEf,GAAI,OAAOJ,GAAQ,WACjB,MAAM,IAAI,UA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ACT,EACMuH,GAA6B9B,EAAmB,OAAQ,CAC5D,KAAM,eACN,EAAG,iWACL,EAAG,KAAM,EAAE,EACL0E,GAAa,CACjB5C,EACF,EACA,SAAS6C,GAAYnF,EAAMC,EAAQmF,EAAQC,EAAQC,EAAOC,EAAU,CAClE,OAAOrF,EAAW,EAAEe,EAAmB,MAAOlG,GAAYmK,EAAU,CACtE,CACA,IAAIM,GAA8BxD,GAAY/G,GAAW,CAAC,CAAC,SAAUkK,EAAW,CAAC,CAAC","x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9]}
1
+ {"version":3,"file":"tip-3d272885.js","sources":["../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/throttle.js","../../node_modules/.pnpm/element-plus@2.2.13_vue@3.3.4/node_modules/element-plus/es/utils/dom/position.mjs","../../node_modules/.pnpm/element-plus@2.2.13_vue@3.3.4/node_modules/element-plus/es/utils/browser.mjs","../../node_modules/.pnpm/element-plus@2.2.13_vue@3.3.4/node_modules/element-plus/es/components/image-viewer/src/image-viewer.mjs","../../node_modules/.pnpm/element-plus@2.2.13_vue@3.3.4/node_modules/element-plus/es/components/image-viewer/src/image-viewer2.mjs","../../node_modules/.pnpm/element-plus@2.2.13_vue@3.3.4/node_modules/element-plus/es/components/image-viewer/index.mjs","../../node_modules/.pnpm/element-plus@2.2.13_vue@3.3.4/node_modules/element-plus/es/components/image/src/image.mjs","../../node_modules/.pnpm/element-plus@2.2.13_vue@3.3.4/node_modules/element-plus/es/components/image/src/image2.mjs","../../node_modules/.pnpm/element-plus@2.2.13_vue@3.3.4/node_modules/element-plus/es/components/image/index.mjs","../../node_modules/.pnpm/@element-plus+icons-vue@1.1.4_vue@3.3.4/node_modules/@element-plus/icons-vue/dist/es/opportunity.mjs"],"sourcesContent":["import debounce from './debounce.js';\nimport isObject from './isObject.js';\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/**\n * Creates a throttled function that only invokes `func` at most once per\n * every `wait` milliseconds. The throttled function comes with a `cancel`\n * method to cancel delayed `func` invocations and a `flush` method to\n * immediately invoke them. Provide `options` to indicate whether `func`\n * should be invoked on the leading and/or trailing edge of the `wait`\n * timeout. The `func` is invoked with the last arguments provided to the\n * throttled function. Subsequent calls to the throttled function return the\n * result of the last `func` invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the throttled function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.throttle` and `_.debounce`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to throttle.\n * @param {number} [wait=0] The number of milliseconds to throttle invocations to.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=true]\n * Specify invoking on the leading edge of the timeout.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new throttled function.\n * @example\n *\n * // Avoid excessively updating the position while scrolling.\n * jQuery(window).on('scroll', _.throttle(updatePosition, 100));\n *\n * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.\n * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });\n * jQuery(element).on('click', throttled);\n *\n * // Cancel the trailing throttled invocation.\n * jQuery(window).on('popstate', throttled.cancel);\n */\nfunction throttle(func, wait, options) {\n var leading = true,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n if (isObject(options)) {\n leading = 'leading' in options ? !!options.leading : leading;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n return debounce(func, wait, {\n 'leading': leading,\n 'maxWait': wait,\n 'trailing': trailing\n });\n}\n\nexport default throttle;\n","import { isClient } from '@vueuse/core';\n\nconst isInContainer = (el, container) => {\n if (!isClient || !el || !container)\n return false;\n const elRect = el.getBoundingClientRect();\n let containerRect;\n if (container instanceof Element) {\n containerRect = container.getBoundingClientRect();\n } else {\n containerRect = {\n top: 0,\n right: window.innerWidth,\n bottom: window.innerHeight,\n left: 0\n };\n }\n return elRect.top < containerRect.bottom && elRect.bottom > containerRect.top && elRect.right > containerRect.left && elRect.left < containerRect.right;\n};\nconst getOffsetTop = (el) => {\n let offset = 0;\n let parent = el;\n while (parent) {\n offset += parent.offsetTop;\n parent = parent.offsetParent;\n }\n return offset;\n};\nconst getOffsetTopDistance = (el, containerEl) => {\n return Math.abs(getOffsetTop(el) - getOffsetTop(containerEl));\n};\nconst getClientXY = (event) => {\n let clientX;\n let clientY;\n if (event.type === \"touchend\") {\n clientY = event.changedTouches[0].clientY;\n clientX = event.changedTouches[0].clientX;\n } else if (event.type.startsWith(\"touch\")) {\n clientY = event.touches[0].clientY;\n clientX = event.touches[0].clientX;\n } else {\n clientY = event.clientY;\n clientX = event.clientX;\n }\n return {\n clientX,\n clientY\n };\n};\n\nexport { getClientXY, getOffsetTop, getOffsetTopDistance, isInContainer };\n//# sourceMappingURL=position.mjs.map\n","import { isClient } from '@vueuse/core';\n\nconst isFirefox = () => isClient && /firefox/i.test(window.navigator.userAgent);\n\nexport { isFirefox };\n//# sourceMappingURL=browser.mjs.map\n","import '../../../utils/index.mjs';\nimport { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';\nimport { mutable } from '../../../utils/typescript.mjs';\nimport { isNumber } from '@vueuse/core';\n\nconst imageViewerProps = buildProps({\n urlList: {\n type: definePropType(Array),\n default: () => mutable([])\n },\n zIndex: {\n type: Number\n },\n initialIndex: {\n type: Number,\n default: 0\n },\n infinite: {\n type: Boolean,\n default: true\n },\n hideOnClickModal: {\n type: Boolean,\n default: false\n },\n teleported: {\n type: Boolean,\n default: false\n },\n closeOnPressEscape: {\n type: Boolean,\n default: true\n }\n});\nconst imageViewerEmits = {\n close: () => true,\n switch: (index) => isNumber(index)\n};\n\nexport { imageViewerEmits, imageViewerProps };\n//# sourceMappingURL=image-viewer.mjs.map\n","import { defineComponent, markRaw, ref, effectScope, shallowRef, computed, watch, nextTick, onMounted, openBlock, createBlock, Teleport, createVNode, Transition, withCtx, createElementVNode, normalizeClass, unref, normalizeStyle, withModifiers, createCommentVNode, createElementBlock, Fragment, resolveDynamicComponent, renderList, withDirectives, vShow, renderSlot } from 'vue';\nimport { isNumber, useEventListener } from '@vueuse/core';\nimport { throttle } from 'lodash-unified';\nimport '../../../hooks/index.mjs';\nimport '../../../constants/index.mjs';\nimport '../../../utils/index.mjs';\nimport { ElIcon } from '../../icon/index.mjs';\nimport { FullScreen, ScaleToOriginal, Close, ArrowLeft, ArrowRight, ZoomOut, ZoomIn, RefreshLeft, RefreshRight } from '@element-plus/icons-vue';\nimport { imageViewerProps, imageViewerEmits } from './image-viewer.mjs';\nimport _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';\nimport { isFirefox } from '../../../utils/browser.mjs';\nimport { useLocale } from '../../../hooks/use-locale/index.mjs';\nimport { useNamespace } from '../../../hooks/use-namespace/index.mjs';\nimport { useZIndex } from '../../../hooks/use-z-index/index.mjs';\nimport { EVENT_CODE } from '../../../constants/aria.mjs';\nimport { keysOf } from '../../../utils/objects.mjs';\n\nconst _hoisted_1 = [\"src\"];\nconst __default__ = {\n name: \"ElImageViewer\"\n};\nconst _sfc_main = /* @__PURE__ */ defineComponent({\n ...__default__,\n props: imageViewerProps,\n emits: imageViewerEmits,\n setup(__props, { emit }) {\n const props = __props;\n const modes = {\n CONTAIN: {\n name: \"contain\",\n icon: markRaw(FullScreen)\n },\n ORIGINAL: {\n name: \"original\",\n icon: markRaw(ScaleToOriginal)\n }\n };\n const mousewheelEventName = isFirefox() ? \"DOMMouseScroll\" : \"mousewheel\";\n const { t } = useLocale();\n const ns = useNamespace(\"image-viewer\");\n const { nextZIndex } = useZIndex();\n const wrapper = ref();\n const imgRefs = ref([]);\n const scopeEventListener = effectScope();\n const loading = ref(true);\n const index = ref(props.initialIndex);\n const mode = shallowRef(modes.CONTAIN);\n const transform = ref({\n scale: 1,\n deg: 0,\n offsetX: 0,\n offsetY: 0,\n enableTransition: false\n });\n const isSingle = computed(() => {\n const { urlList } = props;\n return urlList.length <= 1;\n });\n const isFirst = computed(() => {\n return index.value === 0;\n });\n const isLast = computed(() => {\n return index.value === props.urlList.length - 1;\n });\n const currentImg = computed(() => {\n return props.urlList[index.value];\n });\n const imgStyle = computed(() => {\n const { scale, deg, offsetX, offsetY, enableTransition } = transform.value;\n let translateX = offsetX / scale;\n let translateY = offsetY / scale;\n switch (deg % 360) {\n case 90:\n case -270:\n ;\n [translateX, translateY] = [translateY, -translateX];\n break;\n case 180:\n case -180:\n ;\n [translateX, translateY] = [-translateX, -translateY];\n break;\n case 270:\n case -90:\n ;\n [translateX, translateY] = [-translateY, translateX];\n break;\n }\n const style = {\n transform: `scale(${scale}) rotate(${deg}deg) translate(${translateX}px, ${translateY}px)`,\n transition: enableTransition ? \"transform .3s\" : \"\"\n };\n if (mode.value.name === modes.CONTAIN.name) {\n style.maxWidth = style.maxHeight = \"100%\";\n }\n return style;\n });\n const computedZIndex = computed(() => {\n return isNumber(props.zIndex) ? props.zIndex : nextZIndex();\n });\n function hide() {\n unregisterEventListener();\n emit(\"close\");\n }\n function registerEventListener() {\n const keydownHandler = throttle((e) => {\n switch (e.code) {\n case EVENT_CODE.esc:\n props.closeOnPressEscape && hide();\n break;\n case EVENT_CODE.space:\n toggleMode();\n break;\n case EVENT_CODE.left:\n prev();\n break;\n case EVENT_CODE.up:\n handleActions(\"zoomIn\");\n break;\n case EVENT_CODE.right:\n next();\n break;\n case EVENT_CODE.down:\n handleActions(\"zoomOut\");\n break;\n }\n });\n const mousewheelHandler = throttle((e) => {\n const delta = e.wheelDelta ? e.wheelDelta : -e.detail;\n if (delta > 0) {\n handleActions(\"zoomIn\", {\n zoomRate: 1.2,\n enableTransition: false\n });\n } else {\n handleActions(\"zoomOut\", {\n zoomRate: 1.2,\n enableTransition: false\n });\n }\n });\n scopeEventListener.run(() => {\n useEventListener(document, \"keydown\", keydownHandler);\n useEventListener(document, mousewheelEventName, mousewheelHandler);\n });\n }\n function unregisterEventListener() {\n scopeEventListener.stop();\n }\n function handleImgLoad() {\n loading.value = false;\n }\n function handleImgError(e) {\n loading.value = false;\n e.target.alt = t(\"el.image.error\");\n }\n function handleMouseDown(e) {\n if (loading.value || e.button !== 0 || !wrapper.value)\n return;\n transform.value.enableTransition = false;\n const { offsetX, offsetY } = transform.value;\n const startX = e.pageX;\n const startY = e.pageY;\n const dragHandler = throttle((ev) => {\n transform.value = {\n ...transform.value,\n offsetX: offsetX + ev.pageX - startX,\n offsetY: offsetY + ev.pageY - startY\n };\n });\n const removeMousemove = useEventListener(document, \"mousemove\", dragHandler);\n useEventListener(document, \"mouseup\", () => {\n removeMousemove();\n });\n e.preventDefault();\n }\n function reset() {\n transform.value = {\n scale: 1,\n deg: 0,\n offsetX: 0,\n offsetY: 0,\n enableTransition: false\n };\n }\n function toggleMode() {\n if (loading.value)\n return;\n const modeNames = keysOf(modes);\n const modeValues = Object.values(modes);\n const currentMode = mode.value.name;\n const index2 = modeValues.findIndex((i) => i.name === currentMode);\n const nextIndex = (index2 + 1) % modeNames.length;\n mode.value = modes[modeNames[nextIndex]];\n reset();\n }\n function prev() {\n if (isFirst.value && !props.infinite)\n return;\n const len = props.urlList.length;\n index.value = (index.value - 1 + len) % len;\n }\n function next() {\n if (isLast.value && !props.infinite)\n return;\n const len = props.urlList.length;\n index.value = (index.value + 1) % len;\n }\n function handleActions(action, options = {}) {\n if (loading.value)\n return;\n const { zoomRate, rotateDeg, enableTransition } = {\n zoomRate: 1.4,\n rotateDeg: 90,\n enableTransition: true,\n ...options\n };\n switch (action) {\n case \"zoomOut\":\n if (transform.value.scale > 0.2) {\n transform.value.scale = Number.parseFloat((transform.value.scale / zoomRate).toFixed(3));\n }\n break;\n case \"zoomIn\":\n if (transform.value.scale < 7) {\n transform.value.scale = Number.parseFloat((transform.value.scale * zoomRate).toFixed(3));\n }\n break;\n case \"clockwise\":\n transform.value.deg += rotateDeg;\n break;\n case \"anticlockwise\":\n transform.value.deg -= rotateDeg;\n break;\n }\n transform.value.enableTransition = enableTransition;\n }\n watch(currentImg, () => {\n nextTick(() => {\n const $img = imgRefs.value[0];\n if (!($img == null ? void 0 : $img.complete)) {\n loading.value = true;\n }\n });\n });\n watch(index, (val) => {\n reset();\n emit(\"switch\", val);\n });\n onMounted(() => {\n var _a, _b;\n registerEventListener();\n (_b = (_a = wrapper.value) == null ? void 0 : _a.focus) == null ? void 0 : _b.call(_a);\n });\n return (_ctx, _cache) => {\n return openBlock(), createBlock(Teleport, {\n to: \"body\",\n disabled: !_ctx.teleported\n }, [\n createVNode(Transition, {\n name: \"viewer-fade\",\n appear: \"\"\n }, {\n default: withCtx(() => [\n createElementVNode(\"div\", {\n ref_key: \"wrapper\",\n ref: wrapper,\n tabindex: -1,\n class: normalizeClass(unref(ns).e(\"wrapper\")),\n style: normalizeStyle({ zIndex: unref(computedZIndex) })\n }, [\n createElementVNode(\"div\", {\n class: normalizeClass(unref(ns).e(\"mask\")),\n onClick: _cache[0] || (_cache[0] = withModifiers(($event) => _ctx.hideOnClickModal && hide(), [\"self\"]))\n }, null, 2),\n createCommentVNode(\" CLOSE \"),\n createElementVNode(\"span\", {\n class: normalizeClass([unref(ns).e(\"btn\"), unref(ns).e(\"close\")]),\n onClick: hide\n }, [\n createVNode(unref(ElIcon), null, {\n default: withCtx(() => [\n createVNode(unref(Close))\n ]),\n _: 1\n })\n ], 2),\n createCommentVNode(\" ARROW \"),\n !unref(isSingle) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [\n createElementVNode(\"span\", {\n class: normalizeClass([\n unref(ns).e(\"btn\"),\n unref(ns).e(\"prev\"),\n unref(ns).is(\"disabled\", !_ctx.infinite && unref(isFirst))\n ]),\n onClick: prev\n }, [\n createVNode(unref(ElIcon), null, {\n default: withCtx(() => [\n createVNode(unref(ArrowLeft))\n ]),\n _: 1\n })\n ], 2),\n createElementVNode(\"span\", {\n class: normalizeClass([\n unref(ns).e(\"btn\"),\n unref(ns).e(\"next\"),\n unref(ns).is(\"disabled\", !_ctx.infinite && unref(isLast))\n ]),\n onClick: next\n }, [\n createVNode(unref(ElIcon), null, {\n default: withCtx(() => [\n createVNode(unref(ArrowRight))\n ]),\n _: 1\n })\n ], 2)\n ], 64)) : createCommentVNode(\"v-if\", true),\n createCommentVNode(\" ACTIONS \"),\n createElementVNode(\"div\", {\n class: normalizeClass([unref(ns).e(\"btn\"), unref(ns).e(\"actions\")])\n }, [\n createElementVNode(\"div\", {\n class: normalizeClass(unref(ns).e(\"actions__inner\"))\n }, [\n createVNode(unref(ElIcon), {\n onClick: _cache[1] || (_cache[1] = ($event) => handleActions(\"zoomOut\"))\n }, {\n default: withCtx(() => [\n createVNode(unref(ZoomOut))\n ]),\n _: 1\n }),\n createVNode(unref(ElIcon), {\n onClick: _cache[2] || (_cache[2] = ($event) => handleActions(\"zoomIn\"))\n }, {\n default: withCtx(() => [\n createVNode(unref(ZoomIn))\n ]),\n _: 1\n }),\n createElementVNode(\"i\", {\n class: normalizeClass(unref(ns).e(\"actions__divider\"))\n }, null, 2),\n createVNode(unref(ElIcon), { onClick: toggleMode }, {\n default: withCtx(() => [\n (openBlock(), createBlock(resolveDynamicComponent(unref(mode).icon)))\n ]),\n _: 1\n }),\n createElementVNode(\"i\", {\n class: normalizeClass(unref(ns).e(\"actions__divider\"))\n }, null, 2),\n createVNode(unref(ElIcon), {\n onClick: _cache[3] || (_cache[3] = ($event) => handleActions(\"anticlockwise\"))\n }, {\n default: withCtx(() => [\n createVNode(unref(RefreshLeft))\n ]),\n _: 1\n }),\n createVNode(unref(ElIcon), {\n onClick: _cache[4] || (_cache[4] = ($event) => handleActions(\"clockwise\"))\n }, {\n default: withCtx(() => [\n createVNode(unref(RefreshRight))\n ]),\n _: 1\n })\n ], 2)\n ], 2),\n createCommentVNode(\" CANVAS \"),\n createElementVNode(\"div\", {\n class: normalizeClass(unref(ns).e(\"canvas\"))\n }, [\n (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.urlList, (url, i) => {\n return withDirectives((openBlock(), createElementBlock(\"img\", {\n ref_for: true,\n ref: (el) => imgRefs.value[i] = el,\n key: url,\n src: url,\n style: normalizeStyle(unref(imgStyle)),\n class: normalizeClass(unref(ns).e(\"img\")),\n onLoad: handleImgLoad,\n onError: handleImgError,\n onMousedown: handleMouseDown\n }, null, 46, _hoisted_1)), [\n [vShow, i === index.value]\n ]);\n }), 128))\n ], 2),\n renderSlot(_ctx.$slots, \"default\")\n ], 6)\n ]),\n _: 3\n })\n ], 8, [\"disabled\"]);\n };\n }\n});\nvar ImageViewer = /* @__PURE__ */ _export_sfc(_sfc_main, [[\"__file\", \"/home/runner/work/element-plus/element-plus/packages/components/image-viewer/src/image-viewer.vue\"]]);\n\nexport { ImageViewer as default };\n//# sourceMappingURL=image-viewer2.mjs.map\n","import '../../utils/index.mjs';\nimport ImageViewer from './src/image-viewer2.mjs';\nexport { imageViewerEmits, imageViewerProps } from './src/image-viewer.mjs';\nimport { withInstall } from '../../utils/vue/install.mjs';\n\nconst ElImageViewer = withInstall(ImageViewer);\n\nexport { ElImageViewer, ElImageViewer as default };\n//# sourceMappingURL=index.mjs.map\n","import '../../../utils/index.mjs';\nimport { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';\nimport { mutable } from '../../../utils/typescript.mjs';\nimport { isNumber } from '@vueuse/core';\n\nconst imageProps = buildProps({\n hideOnClickModal: {\n type: Boolean,\n default: false\n },\n src: {\n type: String,\n default: \"\"\n },\n fit: {\n type: String,\n values: [\"\", \"contain\", \"cover\", \"fill\", \"none\", \"scale-down\"],\n default: \"\"\n },\n loading: {\n type: String,\n values: [\"eager\", \"lazy\"]\n },\n lazy: {\n type: Boolean,\n default: false\n },\n scrollContainer: {\n type: definePropType([String, Object])\n },\n previewSrcList: {\n type: definePropType(Array),\n default: () => mutable([])\n },\n previewTeleported: {\n type: Boolean,\n default: false\n },\n zIndex: {\n type: Number\n },\n initialIndex: {\n type: Number,\n default: 0\n },\n infinite: {\n type: Boolean,\n default: true\n },\n closeOnPressEscape: {\n type: Boolean,\n default: true\n }\n});\nconst imageEmits = {\n load: (evt) => evt instanceof Event,\n error: (evt) => evt instanceof Event,\n switch: (val) => isNumber(val),\n close: () => true,\n show: () => true\n};\n\nexport { imageEmits, imageProps };\n//# sourceMappingURL=image.mjs.map\n","import { defineComponent, useAttrs, ref, computed, nextTick, watch, onMounted, openBlock, createElementBlock, normalizeClass, unref, normalizeStyle, mergeProps, createCommentVNode, renderSlot, createElementVNode, toDisplayString, Fragment, createBlock, withCtx } from 'vue';\nimport { isClient, useThrottleFn, useEventListener } from '@vueuse/core';\nimport '../../../hooks/index.mjs';\nimport { ElImageViewer } from '../../image-viewer/index.mjs';\nimport '../../../utils/index.mjs';\nimport { imageProps, imageEmits } from './image.mjs';\nimport _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';\nimport { useLocale } from '../../../hooks/use-locale/index.mjs';\nimport { useNamespace } from '../../../hooks/use-namespace/index.mjs';\nimport { useAttrs as useAttrs$1 } from '../../../hooks/use-attrs/index.mjs';\nimport { isInContainer } from '../../../utils/dom/position.mjs';\nimport { isElement } from '../../../utils/types.mjs';\nimport { isString } from '@vue/shared';\nimport { getScrollContainer } from '../../../utils/dom/scroll.mjs';\n\nconst _hoisted_1 = [\"src\", \"loading\"];\nconst _hoisted_2 = { key: 0 };\nconst __default__ = {\n name: \"ElImage\",\n inheritAttrs: false\n};\nconst _sfc_main = /* @__PURE__ */ defineComponent({\n ...__default__,\n props: imageProps,\n emits: imageEmits,\n setup(__props, { emit }) {\n const props = __props;\n let prevOverflow = \"\";\n const { t } = useLocale();\n const ns = useNamespace(\"image\");\n const rawAttrs = useAttrs();\n const attrs = useAttrs$1();\n const imageSrc = ref();\n const hasLoadError = ref(false);\n const isLoading = ref(true);\n const showViewer = ref(false);\n const container = ref();\n const _scrollContainer = ref();\n const supportLoading = isClient && \"loading\" in HTMLImageElement.prototype;\n let stopScrollListener;\n let stopWheelListener;\n const containerStyle = computed(() => rawAttrs.style);\n const imageStyle = computed(() => {\n const { fit } = props;\n if (isClient && fit) {\n return { objectFit: fit };\n }\n return {};\n });\n const preview = computed(() => {\n const { previewSrcList } = props;\n return Array.isArray(previewSrcList) && previewSrcList.length > 0;\n });\n const imageIndex = computed(() => {\n const { previewSrcList, initialIndex } = props;\n let previewIndex = initialIndex;\n if (initialIndex > previewSrcList.length - 1) {\n previewIndex = 0;\n }\n return previewIndex;\n });\n const isManual = computed(() => {\n if (props.loading === \"eager\")\n return false;\n return !supportLoading && props.loading === \"lazy\" || props.lazy;\n });\n const loadImage = () => {\n if (!isClient)\n return;\n isLoading.value = true;\n hasLoadError.value = false;\n imageSrc.value = props.src;\n };\n function handleLoad(event) {\n isLoading.value = false;\n hasLoadError.value = false;\n emit(\"load\", event);\n }\n function handleError(event) {\n isLoading.value = false;\n hasLoadError.value = true;\n emit(\"error\", event);\n }\n function handleLazyLoad() {\n if (isInContainer(container.value, _scrollContainer.value)) {\n loadImage();\n removeLazyLoadListener();\n }\n }\n const lazyLoadHandler = useThrottleFn(handleLazyLoad, 200);\n async function addLazyLoadListener() {\n var _a;\n if (!isClient)\n return;\n await nextTick();\n const { scrollContainer } = props;\n if (isElement(scrollContainer)) {\n _scrollContainer.value = scrollContainer;\n } else if (isString(scrollContainer) && scrollContainer !== \"\") {\n _scrollContainer.value = (_a = document.querySelector(scrollContainer)) != null ? _a : void 0;\n } else if (container.value) {\n _scrollContainer.value = getScrollContainer(container.value);\n }\n if (_scrollContainer.value) {\n stopScrollListener = useEventListener(_scrollContainer, \"scroll\", lazyLoadHandler);\n setTimeout(() => handleLazyLoad(), 100);\n }\n }\n function removeLazyLoadListener() {\n if (!isClient || !_scrollContainer.value || !lazyLoadHandler)\n return;\n stopScrollListener == null ? void 0 : stopScrollListener();\n _scrollContainer.value = void 0;\n }\n function wheelHandler(e) {\n if (!e.ctrlKey)\n return;\n if (e.deltaY < 0) {\n e.preventDefault();\n return false;\n } else if (e.deltaY > 0) {\n e.preventDefault();\n return false;\n }\n }\n function clickHandler() {\n if (!preview.value)\n return;\n stopWheelListener = useEventListener(\"wheel\", wheelHandler, {\n passive: false\n });\n prevOverflow = document.body.style.overflow;\n document.body.style.overflow = \"hidden\";\n showViewer.value = true;\n emit(\"show\");\n }\n function closeViewer() {\n stopWheelListener == null ? void 0 : stopWheelListener();\n document.body.style.overflow = prevOverflow;\n showViewer.value = false;\n emit(\"close\");\n }\n function switchViewer(val) {\n emit(\"switch\", val);\n }\n watch(() => props.src, () => {\n if (isManual.value) {\n isLoading.value = true;\n hasLoadError.value = false;\n removeLazyLoadListener();\n addLazyLoadListener();\n } else {\n loadImage();\n }\n });\n onMounted(() => {\n if (isManual.value) {\n addLazyLoadListener();\n } else {\n loadImage();\n }\n });\n return (_ctx, _cache) => {\n return openBlock(), createElementBlock(\"div\", {\n ref_key: \"container\",\n ref: container,\n class: normalizeClass([unref(ns).b(), _ctx.$attrs.class]),\n style: normalizeStyle(unref(containerStyle))\n }, [\n imageSrc.value !== void 0 && !hasLoadError.value ? (openBlock(), createElementBlock(\"img\", mergeProps({ key: 0 }, unref(attrs), {\n src: imageSrc.value,\n loading: _ctx.loading,\n style: unref(imageStyle),\n class: [\n unref(ns).e(\"inner\"),\n unref(preview) && unref(ns).e(\"preview\"),\n isLoading.value && unref(ns).is(\"loading\")\n ],\n onClick: clickHandler,\n onLoad: handleLoad,\n onError: handleError\n }), null, 16, _hoisted_1)) : createCommentVNode(\"v-if\", true),\n isLoading.value || hasLoadError.value ? (openBlock(), createElementBlock(\"div\", {\n key: 1,\n class: normalizeClass(unref(ns).e(\"wrapper\"))\n }, [\n isLoading.value ? renderSlot(_ctx.$slots, \"placeholder\", { key: 0 }, () => [\n createElementVNode(\"div\", {\n class: normalizeClass(unref(ns).e(\"placeholder\"))\n }, null, 2)\n ]) : hasLoadError.value ? renderSlot(_ctx.$slots, \"error\", { key: 1 }, () => [\n createElementVNode(\"div\", {\n class: normalizeClass(unref(ns).e(\"error\"))\n }, toDisplayString(unref(t)(\"el.image.error\")), 3)\n ]) : createCommentVNode(\"v-if\", true)\n ], 2)) : createCommentVNode(\"v-if\", true),\n unref(preview) ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [\n showViewer.value ? (openBlock(), createBlock(unref(ElImageViewer), {\n key: 0,\n \"z-index\": _ctx.zIndex,\n \"initial-index\": unref(imageIndex),\n infinite: _ctx.infinite,\n \"url-list\": _ctx.previewSrcList,\n \"hide-on-click-modal\": _ctx.hideOnClickModal,\n teleported: _ctx.previewTeleported,\n \"close-on-press-escape\": _ctx.closeOnPressEscape,\n onClose: closeViewer,\n onSwitch: switchViewer\n }, {\n default: withCtx(() => [\n _ctx.$slots.viewer ? (openBlock(), createElementBlock(\"div\", _hoisted_2, [\n renderSlot(_ctx.$slots, \"viewer\")\n ])) : createCommentVNode(\"v-if\", true)\n ]),\n _: 3\n }, 8, [\"z-index\", \"initial-index\", \"infinite\", \"url-list\", \"hide-on-click-modal\", \"teleported\", \"close-on-press-escape\"])) : createCommentVNode(\"v-if\", true)\n ], 64)) : createCommentVNode(\"v-if\", true)\n ], 6);\n };\n }\n});\nvar Image = /* @__PURE__ */ _export_sfc(_sfc_main, [[\"__file\", \"/home/runner/work/element-plus/element-plus/packages/components/image/src/image.vue\"]]);\n\nexport { Image as default };\n//# sourceMappingURL=image2.mjs.map\n","import '../../utils/index.mjs';\nimport Image from './src/image2.mjs';\nexport { imageEmits, imageProps } from './src/image.mjs';\nimport { withInstall } from '../../utils/vue/install.mjs';\n\nconst ElImage = withInstall(Image);\n\nexport { ElImage, ElImage 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: \"Opportunity\"\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: \"M384 960v-64h192.064v64H384zm448-544a350.656 350.656 0 0 1-128.32 271.424C665.344 719.04 640 763.776 640 813.504V832H320v-14.336c0-48-19.392-95.36-57.216-124.992a351.552 351.552 0 0 1-128.448-344.256c25.344-136.448 133.888-248.128 269.76-276.48A352.384 352.384 0 0 1 832 416zm-544 32c0-132.288 75.904-224 192-224v-64c-154.432 0-256 122.752-256 288h64z\"\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 opportunity = /* @__PURE__ */ _export_sfc(_sfc_main, [[\"render\", _sfc_render]]);\n\nexport { opportunity as default };\n"],"names":["FUNC_ERROR_TEXT","throttle","func","wait","options","leading","trailing","isObject","debounce","isInContainer","el","container","isClient","elRect","containerRect","isFirefox","imageViewerProps","buildProps","definePropType","mutable","imageViewerEmits","index","isNumber","_hoisted_1","__default__","_sfc_main","defineComponent","__props","emit","props","modes","markRaw","FullScreen","ScaleToOriginal","mousewheelEventName","t","useLocale","ns","useNamespace","nextZIndex","useZIndex","wrapper","ref","imgRefs","scopeEventListener","effectScope","loading","mode","shallowRef","transform","isSingle","computed","urlList","isFirst","isLast","currentImg","imgStyle","scale","deg","offsetX","offsetY","enableTransition","translateX","translateY","style","computedZIndex","hide","unregisterEventListener","registerEventListener","keydownHandler","e","EVENT_CODE","toggleMode","prev","handleActions","next","mousewheelHandler","useEventListener","handleImgLoad","handleImgError","handleMouseDown","startX","startY","dragHandler","ev","removeMousemove","reset","modeNames","keysOf","modeValues","currentMode","nextIndex","i","len","action","zoomRate","rotateDeg","watch","nextTick","$img","val","onMounted","_a","_b","_ctx","_cache","openBlock","createBlock","Teleport","createVNode","Transition","withCtx","createElementVNode","normalizeClass","unref","normalizeStyle","withModifiers","$event","createCommentVNode","ElIcon","Close","createElementBlock","Fragment","ArrowLeft","ArrowRight","ZoomOut","ZoomIn","resolveDynamicComponent","RefreshLeft","RefreshRight","renderList","url","withDirectives","vShow","renderSlot","ImageViewer","_export_sfc","ElImageViewer","withInstall","imageProps","imageEmits","evt","_hoisted_2","prevOverflow","rawAttrs","useAttrs","attrs","useAttrs$1","imageSrc","hasLoadError","isLoading","showViewer","_scrollContainer","supportLoading","stopScrollListener","stopWheelListener","containerStyle","imageStyle","fit","preview","previewSrcList","imageIndex","initialIndex","previewIndex","isManual","loadImage","handleLoad","event","handleError","handleLazyLoad","removeLazyLoadListener","lazyLoadHandler","useThrottleFn","addLazyLoadListener","scrollContainer","isElement","isString","getScrollContainer","wheelHandler","clickHandler","closeViewer","switchViewer","mergeProps","toDisplayString","Image","ElImage","_hoisted_3","_sfc_render","$props","$setup","$data","$options","opportunity"],"mappings":"8mBAIA,IAAIA,GAAkB,sBA8CtB,SAASC,GAASC,EAAMC,EAAMC,EAAS,CACrC,IAAIC,EAAU,GACVC,EAAW,GAEf,GAAI,OAAOJ,GAAQ,WACjB,MAAM,IAAI,UAAUF,EAAe,EAErC,OAAIO,GAASH,CAAO,IAClBC,EAAU,YAAaD,EAAU,CAAC,CAACA,EAAQ,QAAUC,EACrDC,EAAW,aAAcF,EAAU,CAAC,CAACA,EAAQ,SAAWE,GAEnDE,GAASN,EAAMC,EAAM,CAC1B,QAAWE,EACX,QAAWF,EACX,SAAYG,CAChB,CAAG,CACH,CChEA,MAAMG,GAAgB,CAACC,EAAIC,IAAc,CACvC,GAAI,CAACC,GAAY,CAACF,GAAM,CAACC,EACvB,MAAO,GACT,MAAME,EAASH,EAAG,wBAClB,IAAII,EACJ,OAAIH,aAAqB,QACvBG,EAAgBH,EAAU,wBAE1BG,EAAgB,CACd,IAAK,EACL,MAAO,OAAO,WACd,OAAQ,OAAO,YACf,KAAM,CACZ,EAESD,EAAO,IAAMC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U,EAAM+C,CAAU,EACjC,SAAUzD,EAAK,SACf,WAAYA,EAAK,eACjB,sBAAuBA,EAAK,iBAC5B,WAAYA,EAAK,kBACjB,wBAAyBA,EAAK,mBAC9B,QAAS4E,EACT,SAAUC,CACtB,EAAa,CACD,QAAStE,EAAQ,IAAM,CACrBP,EAAK,OAAO,QAAUE,EAAW,EAAEe,EAAmB,MAAOqB,GAAY,CACvER,EAAW9B,EAAK,OAAQ,QAAQ,CAChD,CAAe,GAAKc,EAAmB,OAAQ,EAAI,CACnD,CAAa,EACD,EAAG,CACJ,EAAE,EAAG,CAAC,UAAW,gBAAiB,WAAY,WAAY,sBAAuB,aAAc,uBAAuB,CAAC,GAAKA,EAAmB,OAAQ,EAAI,CAC7J,EAAE,EAAE,GAAKA,EAAmB,OAAQ,EAAI,CAC1C,EAAE,CAAC,EAEP,CACH,CAAC,EACD,IAAIkE,GAAwBhD,GAAY/G,GAAW,CAAC,CAAC,SAAU,qFAAqF,CAAC,CAAC,ECxNjJ,MAACgK,GAAU/C,GAAY8C,EAAK,ECF3B/J,GAAYC,EAAgB,CAChC,KAAM,aACR,CAAC,EACKH,GAAa,CACjB,QAAS,gBACT,MAAO,4BACT,EACMuH,GAA6B9B,EAAmB,OAAQ,CAC5D,KAAM,eACN,EAAG,iWACL,EAAG,KAAM,EAAE,EACL0E,GAAa,CACjB5C,EACF,EACA,SAAS6C,GAAYnF,EAAMC,EAAQmF,EAAQC,EAAQC,EAAOC,EAAU,CAClE,OAAOrF,EAAW,EAAEe,EAAmB,MAAOlG,GAAYmK,EAAU,CACtE,CACA,IAAIM,GAA8BxD,GAAY/G,GAAW,CAAC,CAAC,SAAUkK,EAAW,CAAC,CAAC","x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9]}
@@ -1,2 +1,2 @@
1
- System.register(["./index-legacy.978f90e1.js","./index-legacy.bd5a4368.js","./isEqual-legacy.985bb619.js"],(function(e,t){"use strict";var a,i,n,l,o,r,s,c,u,d,f,v,p,m,g,w,y,h,b,x,_,k,z,C,I,O,E,T,A,S,L,N,j,B,Y,$,M,R,D,H,X,F,Z,P,V,W,q,G,J,K,Q,U,ee,te,ae,ie,ne,le,oe,re,se,ce,ue;return{setters:[e=>{a=e.c7,i=e.bM,n=e.J,l=e.aj,o=e.b0,r=e.aE,s=e.N,c=e.d,u=e.c8,d=e.c9,f=e.ca,v=e.Q,p=e.bH,m=e.r,g=e.cb,w=e.c1,y=e.O,h=e.$,b=e.as,x=e.o,_=e.f,k=e.D,z=e.j,C=e.w,I=e.a,O=e.H,E=e.k,T=e.aB,A=e.aR,S=e.S,L=e.I,N=e.b9,j=e.c,B=e.F,Y=e.b7,$=e.b8,M=e.cc,R=e.b_,D=e.G,H=e.cd,X=e.ce,F=e.C,Z=e.a6,P=e.a7,V=e.T,W=e.bf,q=e.cf,G=e.an,J=e.ak,K=e.cg,Q=e.Y,U=e.bA,ee=e.ch,te=e.V,ae=e.t,ie=e.ci,ne=e.aS,le=e.cj,oe=e.g,re=e._},e=>{se=e.u,ce=e.g},e=>{ue=e.d}],execute:function(){var t=document.createElement("style");function de(e,t,i){var n=!0,l=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return a(i)&&(n="leading"in i?!!i.leading:n,l="trailing"in i?!!i.trailing:l),ue(e,t,{leading:n,maxWait:t,trailing:l})}t.textContent=".el-image__error,.el-image__inner,.el-image__placeholder,.el-image__wrapper{width:100%;height:100%}.el-image{position:relative;display:inline-block;overflow:hidden}.el-image__inner{vertical-align:top;opacity:1}.el-image__inner.is-loading{opacity:0}.el-image__wrapper{position:absolute;top:0;left:0}.el-image__placeholder{background:var(--el-fill-color-light)}.el-image__error{display:flex;justify-content:center;align-items:center;font-size:14px;background:var(--el-fill-color-light);color:var(--el-text-color-placeholder);vertical-align:middle}.el-image__preview{cursor:pointer}.el-image-viewer__wrapper{position:fixed;top:0;right:0;bottom:0;left:0}.el-image-viewer__btn{position:absolute;z-index:1;display:flex;align-items:center;justify-content:center;border-radius:50%;opacity:.8;cursor:pointer;box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.el-image-viewer__btn .el-icon{font-size:inherit;cursor:pointer}.el-image-viewer__close{top:40px;right:40px;width:40px;height:40px;font-size:40px}.el-image-viewer__canvas{width:100%;height:100%;display:flex;justify-content:center;align-items:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.el-image-viewer__actions{left:50%;bottom:30px;transform:translate(-50%);width:282px;height:44px;padding:0 23px;background-color:var(--el-text-color-regular);border-color:#fff;border-radius:22px}.el-image-viewer__actions__inner{width:100%;height:100%;text-align:justify;cursor:default;font-size:23px;color:#fff;display:flex;align-items:center;justify-content:space-around}.el-image-viewer__prev{top:50%;transform:translateY(-50%);left:40px;width:44px;height:44px;font-size:24px;color:#fff;background-color:var(--el-text-color-regular);border-color:#fff}.el-image-viewer__next{top:50%;transform:translateY(-50%);right:40px;text-indent:2px;width:44px;height:44px;font-size:24px;color:#fff;background-color:var(--el-text-color-regular);border-color:#fff}.el-image-viewer__close{width:44px;height:44px;font-size:24px;color:#fff;background-color:var(--el-text-color-regular);border-color:#fff}.el-image-viewer__mask{position:absolute;width:100%;height:100%;top:0;left:0;opacity:.5;background:#000}.viewer-fade-enter-active{-webkit-animation:viewer-fade-in var(--el-transition-duration);animation:viewer-fade-in var(--el-transition-duration)}.viewer-fade-leave-active{-webkit-animation:viewer-fade-out var(--el-transition-duration);animation:viewer-fade-out var(--el-transition-duration)}@-webkit-keyframes viewer-fade-in{0%{transform:translate3d(0,-20px,0);opacity:0}to{transform:translateZ(0);opacity:1}}@keyframes viewer-fade-in{0%{transform:translate3d(0,-20px,0);opacity:0}to{transform:translateZ(0);opacity:1}}@-webkit-keyframes viewer-fade-out{0%{transform:translateZ(0);opacity:1}to{transform:translate3d(0,-20px,0);opacity:0}}@keyframes viewer-fade-out{0%{transform:translateZ(0);opacity:1}to{transform:translate3d(0,-20px,0);opacity:0}}.tip[data-v-2a504a1a]{color:#909399;padding-bottom:10px;font-size:12px;display:flex;justify-content:center;left:0;top:4px}.preview[data-v-2a504a1a]{position:relative}.icon[data-v-2a504a1a]{position:absolute;pointer-events:none;background-color:#fff;left:0;top:1px;font-size:14px;color:#53a8ff}.img-container[data-v-2a504a1a]{width:10px;height:10px}\n",document.head.appendChild(t);const fe=n({urlList:{type:l(Array),default:()=>o([])},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},hideOnClickModal:{type:Boolean,default:!1},teleported:{type:Boolean,default:!1},closeOnPressEscape:{type:Boolean,default:!0}}),ve=["src"],pe=e("a",Q(s(c({name:"ElImageViewer",props:fe,emits:{close:()=>!0,switch:e=>r(e)},setup(e,{emit:t}){const a=e,n={CONTAIN:{name:"contain",icon:u(d)},ORIGINAL:{name:"original",icon:u(f)}},l=i&&/firefox/i.test(window.navigator.userAgent)?"DOMMouseScroll":"mousewheel",{t:o}=se(),s=v("image-viewer"),{nextZIndex:c}=p(),Q=m(),U=m([]),ee=g(),te=m(!0),ae=m(a.initialIndex),ie=w(n.CONTAIN),ne=m({scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),le=y((()=>{const{urlList:e}=a;return e.length<=1})),oe=y((()=>0===ae.value)),re=y((()=>ae.value===a.urlList.length-1)),ce=y((()=>a.urlList[ae.value])),ue=y((()=>{const{scale:e,deg:t,offsetX:a,offsetY:i,enableTransition:l}=ne.value;let o=a/e,r=i/e;switch(t%360){case 90:case-270:[o,r]=[r,-o];break;case 180:case-180:[o,r]=[-o,-r];break;case 270:case-90:[o,r]=[-r,o]}const s={transform:`scale(${e}) rotate(${t}deg) translate(${o}px, ${r}px)`,transition:l?"transform .3s":""};return ie.value.name===n.CONTAIN.name&&(s.maxWidth=s.maxHeight="100%"),s})),fe=y((()=>r(a.zIndex)?a.zIndex:c()));function pe(){ee.stop(),t("close")}function me(){te.value=!1}function ge(e){te.value=!1,e.target.alt=o("el.image.error")}function we(e){if(te.value||0!==e.button||!Q.value)return;ne.value.enableTransition=!1;const{offsetX:t,offsetY:a}=ne.value,i=e.pageX,n=e.pageY,l=de((e=>{ne.value={...ne.value,offsetX:t+e.pageX-i,offsetY:a+e.pageY-n}})),o=G(document,"mousemove",l);G(document,"mouseup",(()=>{o()})),e.preventDefault()}function ye(){ne.value={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function he(){if(te.value)return;const e=K(n),t=Object.values(n),a=ie.value.name,i=(t.findIndex((e=>e.name===a))+1)%e.length;ie.value=n[e[i]],ye()}function be(){if(oe.value&&!a.infinite)return;const e=a.urlList.length;ae.value=(ae.value-1+e)%e}function xe(){if(re.value&&!a.infinite)return;const e=a.urlList.length;ae.value=(ae.value+1)%e}function _e(e,t={}){if(te.value)return;const{zoomRate:a,rotateDeg:i,enableTransition:n}={zoomRate:1.4,rotateDeg:90,enableTransition:!0,...t};switch(e){case"zoomOut":ne.value.scale>.2&&(ne.value.scale=Number.parseFloat((ne.value.scale/a).toFixed(3)));break;case"zoomIn":ne.value.scale<7&&(ne.value.scale=Number.parseFloat((ne.value.scale*a).toFixed(3)));break;case"clockwise":ne.value.deg+=i;break;case"anticlockwise":ne.value.deg-=i}ne.value.enableTransition=n}return h(ce,(()=>{b((()=>{const e=U.value[0];(null==e?void 0:e.complete)||(te.value=!0)}))})),h(ae,(e=>{ye(),t("switch",e)})),x((()=>{var e,t;!function(){const e=de((e=>{switch(e.code){case J.esc:a.closeOnPressEscape&&pe();break;case J.space:he();break;case J.left:be();break;case J.up:_e("zoomIn");break;case J.right:xe();break;case J.down:_e("zoomOut")}})),t=de((e=>{_e((e.wheelDelta?e.wheelDelta:-e.detail)>0?"zoomIn":"zoomOut",{zoomRate:1.2,enableTransition:!1})}));ee.run((()=>{G(document,"keydown",e),G(document,l,t)}))}(),null==(t=null==(e=Q.value)?void 0:e.focus)||t.call(e)})),(e,t)=>(_(),k(q,{to:"body",disabled:!e.teleported},[z(W,{name:"viewer-fade",appear:""},{default:C((()=>[I("div",{ref_key:"wrapper",ref:Q,tabindex:-1,class:O(E(s).e("wrapper")),style:T({zIndex:E(fe)})},[I("div",{class:O(E(s).e("mask")),onClick:t[0]||(t[0]=A((t=>e.hideOnClickModal&&pe()),["self"]))},null,2),S(" CLOSE "),I("span",{class:O([E(s).e("btn"),E(s).e("close")]),onClick:pe},[z(E(L),null,{default:C((()=>[z(E(N))])),_:1})],2),S(" ARROW "),E(le)?S("v-if",!0):(_(),j(B,{key:0},[I("span",{class:O([E(s).e("btn"),E(s).e("prev"),E(s).is("disabled",!e.infinite&&E(oe))]),onClick:be},[z(E(L),null,{default:C((()=>[z(E(Y))])),_:1})],2),I("span",{class:O([E(s).e("btn"),E(s).e("next"),E(s).is("disabled",!e.infinite&&E(re))]),onClick:xe},[z(E(L),null,{default:C((()=>[z(E($))])),_:1})],2)],64)),S(" ACTIONS "),I("div",{class:O([E(s).e("btn"),E(s).e("actions")])},[I("div",{class:O(E(s).e("actions__inner"))},[z(E(L),{onClick:t[1]||(t[1]=e=>_e("zoomOut"))},{default:C((()=>[z(E(M))])),_:1}),z(E(L),{onClick:t[2]||(t[2]=e=>_e("zoomIn"))},{default:C((()=>[z(E(R))])),_:1}),I("i",{class:O(E(s).e("actions__divider"))},null,2),z(E(L),{onClick:he},{default:C((()=>[(_(),k(D(E(ie).icon)))])),_:1}),I("i",{class:O(E(s).e("actions__divider"))},null,2),z(E(L),{onClick:t[3]||(t[3]=e=>_e("anticlockwise"))},{default:C((()=>[z(E(H))])),_:1}),z(E(L),{onClick:t[4]||(t[4]=e=>_e("clockwise"))},{default:C((()=>[z(E(X))])),_:1})],2)],2),S(" CANVAS "),I("div",{class:O(E(s).e("canvas"))},[(_(!0),j(B,null,F(e.urlList,((e,t)=>Z((_(),j("img",{ref_for:!0,ref:e=>U.value[t]=e,key:e,src:e,style:T(E(ue)),class:O(E(s).e("img")),onLoad:me,onError:ge,onMousedown:we},null,46,ve)),[[P,t===ae.value]]))),128))],2),V(e.$slots,"default")],6)])),_:3})],8,["disabled"]))}}),[["__file","/home/runner/work/element-plus/element-plus/packages/components/image-viewer/src/image-viewer.vue"]]))),me=n({hideOnClickModal:{type:Boolean,default:!1},src:{type:String,default:""},fit:{type:String,values:["","contain","cover","fill","none","scale-down"],default:""},loading:{type:String,values:["eager","lazy"]},lazy:{type:Boolean,default:!1},scrollContainer:{type:l([String,Object])},previewSrcList:{type:l(Array),default:()=>o([])},previewTeleported:{type:Boolean,default:!1},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0}}),ge=["src","loading"],we={key:0},ye=e("E",Q(s(c({name:"ElImage",inheritAttrs:!1,props:me,emits:{load:e=>e instanceof Event,error:e=>e instanceof Event,switch:e=>r(e),close:()=>!0,show:()=>!0},setup(e,{emit:t}){const a=e;let n="";const{t:l}=se(),o=v("image"),r=U(),s=ee(),c=m(),u=m(!1),d=m(!0),f=m(!1),p=m(),g=m(),w=i&&"loading"in HTMLImageElement.prototype;let z,A;const L=y((()=>r.style)),N=y((()=>{const{fit:e}=a;return i&&e?{objectFit:e}:{}})),Y=y((()=>{const{previewSrcList:e}=a;return Array.isArray(e)&&e.length>0})),$=y((()=>{const{previewSrcList:e,initialIndex:t}=a;let i=t;return t>e.length-1&&(i=0),i})),M=y((()=>"eager"!==a.loading&&(!w&&"lazy"===a.loading||a.lazy))),R=()=>{i&&(d.value=!0,u.value=!1,c.value=a.src)};function D(e){d.value=!1,u.value=!1,t("load",e)}function H(e){d.value=!1,u.value=!0,t("error",e)}function X(){((e,t)=>{if(!i||!e||!t)return!1;const a=e.getBoundingClientRect();let n;return n=t instanceof Element?t.getBoundingClientRect():{top:0,right:window.innerWidth,bottom:window.innerHeight,left:0},a.top<n.bottom&&a.bottom>n.top&&a.right>n.left&&a.left<n.right})(p.value,g.value)&&(R(),P())}const F=le(X,200);async function Z(){var e;if(!i)return;await b();const{scrollContainer:t}=a;ie(t)?g.value=t:ne(t)&&""!==t?g.value=null!=(e=document.querySelector(t))?e:void 0:p.value&&(g.value=ce(p.value)),g.value&&(z=G(g,"scroll",F),setTimeout((()=>X()),100))}function P(){i&&g.value&&F&&(null==z||z(),g.value=void 0)}function W(e){if(e.ctrlKey)return e.deltaY<0||e.deltaY>0?(e.preventDefault(),!1):void 0}function q(){Y.value&&(A=G("wheel",W,{passive:!1}),n=document.body.style.overflow,document.body.style.overflow="hidden",f.value=!0,t("show"))}function J(){null==A||A(),document.body.style.overflow=n,f.value=!1,t("close")}function K(e){t("switch",e)}return h((()=>a.src),(()=>{M.value?(d.value=!0,u.value=!1,P(),Z()):R()})),x((()=>{M.value?Z():R()})),(e,t)=>(_(),j("div",{ref_key:"container",ref:p,class:O([E(o).b(),e.$attrs.class]),style:T(E(L))},[void 0===c.value||u.value?S("v-if",!0):(_(),j("img",te({key:0},E(s),{src:c.value,loading:e.loading,style:E(N),class:[E(o).e("inner"),E(Y)&&E(o).e("preview"),d.value&&E(o).is("loading")],onClick:q,onLoad:D,onError:H}),null,16,ge)),d.value||u.value?(_(),j("div",{key:1,class:O(E(o).e("wrapper"))},[d.value?V(e.$slots,"placeholder",{key:0},(()=>[I("div",{class:O(E(o).e("placeholder"))},null,2)])):u.value?V(e.$slots,"error",{key:1},(()=>[I("div",{class:O(E(o).e("error"))},ae(E(l)("el.image.error")),3)])):S("v-if",!0)],2)):S("v-if",!0),E(Y)?(_(),j(B,{key:2},[f.value?(_(),k(E(pe),{key:0,"z-index":e.zIndex,"initial-index":E($),infinite:e.infinite,"url-list":e.previewSrcList,"hide-on-click-modal":e.hideOnClickModal,teleported:e.previewTeleported,"close-on-press-escape":e.closeOnPressEscape,onClose:J,onSwitch:K},{default:C((()=>[e.$slots.viewer?(_(),j("div",we,[V(e.$slots,"viewer")])):S("v-if",!0)])),_:3},8,["z-index","initial-index","infinite","url-list","hide-on-click-modal","teleported","close-on-press-escape"])):S("v-if",!0)],64)):S("v-if",!0)],6))}}),[["__file","/home/runner/work/element-plus/element-plus/packages/components/image/src/image.vue"]]))),he=c({name:"Opportunity"}),be={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},xe=[I("path",{fill:"currentColor",d:"M384 960v-64h192.064v64H384zm448-544a350.656 350.656 0 0 1-128.32 271.424C665.344 719.04 640 763.776 640 813.504V832H320v-14.336c0-48-19.392-95.36-57.216-124.992a351.552 351.552 0 0 1-128.448-344.256c25.344-136.448 133.888-248.128 269.76-276.48A352.384 352.384 0 0 1 832 416zm-544 32c0-132.288 75.904-224 192-224v-64c-154.432 0-256 122.752-256 288h64z"},null,-1)];var _e=oe(he,[["render",function(e,t,a,i,n,l){return _(),j("svg",be,xe)}]]);const ke={class:"tip tc"},ze={key:0,class:"preview"};e("T",re(c({__name:"tip",props:{imgs:{}},setup:e=>(e,t)=>{const a=ye,i=L;return _(),j("div",ke,[I("div",null,[V(e.$slots,"default",{},void 0,!0)]),e.imgs?.length?(_(),j("div",ze,[z(a,{"hide-on-click-modal":"",class:"img-container",src:e.imgs[0],"preview-src-list":e.imgs,"initial-index":0,fit:"cover"},null,8,["src","preview-src-list"]),z(i,{class:"icon"},{default:C((()=>[z(E(_e))])),_:1})])):S("",!0)])}}),[["__scopeId","data-v-2a504a1a"]]))}}}));
2
- //# sourceMappingURL=tip-legacy.6e921091.js.map
1
+ System.register(["./index-legacy.acb8b137.js","./index-legacy.3e6b32cf.js","./isEqual-legacy.dbaa2a6e.js"],(function(e,t){"use strict";var a,i,n,l,o,r,s,c,u,d,f,v,p,m,g,w,y,h,b,x,_,k,z,C,I,O,E,T,A,S,L,N,j,$,B,Y,M,R,D,H,X,F,Z,P,V,W,q,G,J,K,Q,U,ee,te,ae,ie,ne,le,oe,re,se,ce,ue;return{setters:[e=>{a=e.c8,i=e.bM,n=e.J,l=e.ak,o=e.b0,r=e.aE,s=e.N,c=e.d,u=e.c9,d=e.ca,f=e.cb,v=e.Q,p=e.bH,m=e.r,g=e.cc,w=e.c2,y=e.O,h=e.$,b=e.at,x=e.o,_=e.f,k=e.D,z=e.j,C=e.w,I=e.a,O=e.H,E=e.k,T=e.ad,A=e.aR,S=e.S,L=e.I,N=e.b9,j=e.c,$=e.F,B=e.b7,Y=e.b8,M=e.cd,R=e.b$,D=e.G,H=e.ce,X=e.cf,F=e.C,Z=e.a7,P=e.a8,V=e.T,W=e.bf,q=e.cg,G=e.ao,J=e.al,K=e.ch,Q=e.Y,U=e.bA,ee=e.ci,te=e.V,ae=e.t,ie=e.cj,ne=e.aS,le=e.ck,oe=e.g,re=e._},e=>{se=e.u,ce=e.g},e=>{ue=e.d}],execute:function(){var t=document.createElement("style");function de(e,t,i){var n=!0,l=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return a(i)&&(n="leading"in i?!!i.leading:n,l="trailing"in i?!!i.trailing:l),ue(e,t,{leading:n,maxWait:t,trailing:l})}t.textContent=".el-image__error,.el-image__inner,.el-image__placeholder,.el-image__wrapper{width:100%;height:100%}.el-image{position:relative;display:inline-block;overflow:hidden}.el-image__inner{vertical-align:top;opacity:1}.el-image__inner.is-loading{opacity:0}.el-image__wrapper{position:absolute;top:0;left:0}.el-image__placeholder{background:var(--el-fill-color-light)}.el-image__error{display:flex;justify-content:center;align-items:center;font-size:14px;background:var(--el-fill-color-light);color:var(--el-text-color-placeholder);vertical-align:middle}.el-image__preview{cursor:pointer}.el-image-viewer__wrapper{position:fixed;top:0;right:0;bottom:0;left:0}.el-image-viewer__btn{position:absolute;z-index:1;display:flex;align-items:center;justify-content:center;border-radius:50%;opacity:.8;cursor:pointer;box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.el-image-viewer__btn .el-icon{font-size:inherit;cursor:pointer}.el-image-viewer__close{top:40px;right:40px;width:40px;height:40px;font-size:40px}.el-image-viewer__canvas{width:100%;height:100%;display:flex;justify-content:center;align-items:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.el-image-viewer__actions{left:50%;bottom:30px;transform:translate(-50%);width:282px;height:44px;padding:0 23px;background-color:var(--el-text-color-regular);border-color:#fff;border-radius:22px}.el-image-viewer__actions__inner{width:100%;height:100%;text-align:justify;cursor:default;font-size:23px;color:#fff;display:flex;align-items:center;justify-content:space-around}.el-image-viewer__prev{top:50%;transform:translateY(-50%);left:40px;width:44px;height:44px;font-size:24px;color:#fff;background-color:var(--el-text-color-regular);border-color:#fff}.el-image-viewer__next{top:50%;transform:translateY(-50%);right:40px;text-indent:2px;width:44px;height:44px;font-size:24px;color:#fff;background-color:var(--el-text-color-regular);border-color:#fff}.el-image-viewer__close{width:44px;height:44px;font-size:24px;color:#fff;background-color:var(--el-text-color-regular);border-color:#fff}.el-image-viewer__mask{position:absolute;width:100%;height:100%;top:0;left:0;opacity:.5;background:#000}.viewer-fade-enter-active{-webkit-animation:viewer-fade-in var(--el-transition-duration);animation:viewer-fade-in var(--el-transition-duration)}.viewer-fade-leave-active{-webkit-animation:viewer-fade-out var(--el-transition-duration);animation:viewer-fade-out var(--el-transition-duration)}@-webkit-keyframes viewer-fade-in{0%{transform:translate3d(0,-20px,0);opacity:0}to{transform:translateZ(0);opacity:1}}@keyframes viewer-fade-in{0%{transform:translate3d(0,-20px,0);opacity:0}to{transform:translateZ(0);opacity:1}}@-webkit-keyframes viewer-fade-out{0%{transform:translateZ(0);opacity:1}to{transform:translate3d(0,-20px,0);opacity:0}}@keyframes viewer-fade-out{0%{transform:translateZ(0);opacity:1}to{transform:translate3d(0,-20px,0);opacity:0}}.tip[data-v-2a504a1a]{color:#909399;padding-bottom:10px;font-size:12px;display:flex;justify-content:center;left:0;top:4px}.preview[data-v-2a504a1a]{position:relative}.icon[data-v-2a504a1a]{position:absolute;pointer-events:none;background-color:#fff;left:0;top:1px;font-size:14px;color:#53a8ff}.img-container[data-v-2a504a1a]{width:10px;height:10px}\n",document.head.appendChild(t);const fe=n({urlList:{type:l(Array),default:()=>o([])},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},hideOnClickModal:{type:Boolean,default:!1},teleported:{type:Boolean,default:!1},closeOnPressEscape:{type:Boolean,default:!0}}),ve=["src"],pe=e("a",Q(s(c({name:"ElImageViewer",props:fe,emits:{close:()=>!0,switch:e=>r(e)},setup(e,{emit:t}){const a=e,n={CONTAIN:{name:"contain",icon:u(d)},ORIGINAL:{name:"original",icon:u(f)}},l=i&&/firefox/i.test(window.navigator.userAgent)?"DOMMouseScroll":"mousewheel",{t:o}=se(),s=v("image-viewer"),{nextZIndex:c}=p(),Q=m(),U=m([]),ee=g(),te=m(!0),ae=m(a.initialIndex),ie=w(n.CONTAIN),ne=m({scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),le=y((()=>{const{urlList:e}=a;return e.length<=1})),oe=y((()=>0===ae.value)),re=y((()=>ae.value===a.urlList.length-1)),ce=y((()=>a.urlList[ae.value])),ue=y((()=>{const{scale:e,deg:t,offsetX:a,offsetY:i,enableTransition:l}=ne.value;let o=a/e,r=i/e;switch(t%360){case 90:case-270:[o,r]=[r,-o];break;case 180:case-180:[o,r]=[-o,-r];break;case 270:case-90:[o,r]=[-r,o]}const s={transform:`scale(${e}) rotate(${t}deg) translate(${o}px, ${r}px)`,transition:l?"transform .3s":""};return ie.value.name===n.CONTAIN.name&&(s.maxWidth=s.maxHeight="100%"),s})),fe=y((()=>r(a.zIndex)?a.zIndex:c()));function pe(){ee.stop(),t("close")}function me(){te.value=!1}function ge(e){te.value=!1,e.target.alt=o("el.image.error")}function we(e){if(te.value||0!==e.button||!Q.value)return;ne.value.enableTransition=!1;const{offsetX:t,offsetY:a}=ne.value,i=e.pageX,n=e.pageY,l=de((e=>{ne.value={...ne.value,offsetX:t+e.pageX-i,offsetY:a+e.pageY-n}})),o=G(document,"mousemove",l);G(document,"mouseup",(()=>{o()})),e.preventDefault()}function ye(){ne.value={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function he(){if(te.value)return;const e=K(n),t=Object.values(n),a=ie.value.name,i=(t.findIndex((e=>e.name===a))+1)%e.length;ie.value=n[e[i]],ye()}function be(){if(oe.value&&!a.infinite)return;const e=a.urlList.length;ae.value=(ae.value-1+e)%e}function xe(){if(re.value&&!a.infinite)return;const e=a.urlList.length;ae.value=(ae.value+1)%e}function _e(e,t={}){if(te.value)return;const{zoomRate:a,rotateDeg:i,enableTransition:n}={zoomRate:1.4,rotateDeg:90,enableTransition:!0,...t};switch(e){case"zoomOut":ne.value.scale>.2&&(ne.value.scale=Number.parseFloat((ne.value.scale/a).toFixed(3)));break;case"zoomIn":ne.value.scale<7&&(ne.value.scale=Number.parseFloat((ne.value.scale*a).toFixed(3)));break;case"clockwise":ne.value.deg+=i;break;case"anticlockwise":ne.value.deg-=i}ne.value.enableTransition=n}return h(ce,(()=>{b((()=>{const e=U.value[0];(null==e?void 0:e.complete)||(te.value=!0)}))})),h(ae,(e=>{ye(),t("switch",e)})),x((()=>{var e,t;!function(){const e=de((e=>{switch(e.code){case J.esc:a.closeOnPressEscape&&pe();break;case J.space:he();break;case J.left:be();break;case J.up:_e("zoomIn");break;case J.right:xe();break;case J.down:_e("zoomOut")}})),t=de((e=>{_e((e.wheelDelta?e.wheelDelta:-e.detail)>0?"zoomIn":"zoomOut",{zoomRate:1.2,enableTransition:!1})}));ee.run((()=>{G(document,"keydown",e),G(document,l,t)}))}(),null==(t=null==(e=Q.value)?void 0:e.focus)||t.call(e)})),(e,t)=>(_(),k(q,{to:"body",disabled:!e.teleported},[z(W,{name:"viewer-fade",appear:""},{default:C((()=>[I("div",{ref_key:"wrapper",ref:Q,tabindex:-1,class:O(E(s).e("wrapper")),style:T({zIndex:E(fe)})},[I("div",{class:O(E(s).e("mask")),onClick:t[0]||(t[0]=A((t=>e.hideOnClickModal&&pe()),["self"]))},null,2),S(" CLOSE "),I("span",{class:O([E(s).e("btn"),E(s).e("close")]),onClick:pe},[z(E(L),null,{default:C((()=>[z(E(N))])),_:1})],2),S(" ARROW "),E(le)?S("v-if",!0):(_(),j($,{key:0},[I("span",{class:O([E(s).e("btn"),E(s).e("prev"),E(s).is("disabled",!e.infinite&&E(oe))]),onClick:be},[z(E(L),null,{default:C((()=>[z(E(B))])),_:1})],2),I("span",{class:O([E(s).e("btn"),E(s).e("next"),E(s).is("disabled",!e.infinite&&E(re))]),onClick:xe},[z(E(L),null,{default:C((()=>[z(E(Y))])),_:1})],2)],64)),S(" ACTIONS "),I("div",{class:O([E(s).e("btn"),E(s).e("actions")])},[I("div",{class:O(E(s).e("actions__inner"))},[z(E(L),{onClick:t[1]||(t[1]=e=>_e("zoomOut"))},{default:C((()=>[z(E(M))])),_:1}),z(E(L),{onClick:t[2]||(t[2]=e=>_e("zoomIn"))},{default:C((()=>[z(E(R))])),_:1}),I("i",{class:O(E(s).e("actions__divider"))},null,2),z(E(L),{onClick:he},{default:C((()=>[(_(),k(D(E(ie).icon)))])),_:1}),I("i",{class:O(E(s).e("actions__divider"))},null,2),z(E(L),{onClick:t[3]||(t[3]=e=>_e("anticlockwise"))},{default:C((()=>[z(E(H))])),_:1}),z(E(L),{onClick:t[4]||(t[4]=e=>_e("clockwise"))},{default:C((()=>[z(E(X))])),_:1})],2)],2),S(" CANVAS "),I("div",{class:O(E(s).e("canvas"))},[(_(!0),j($,null,F(e.urlList,((e,t)=>Z((_(),j("img",{ref_for:!0,ref:e=>U.value[t]=e,key:e,src:e,style:T(E(ue)),class:O(E(s).e("img")),onLoad:me,onError:ge,onMousedown:we},null,46,ve)),[[P,t===ae.value]]))),128))],2),V(e.$slots,"default")],6)])),_:3})],8,["disabled"]))}}),[["__file","/home/runner/work/element-plus/element-plus/packages/components/image-viewer/src/image-viewer.vue"]]))),me=n({hideOnClickModal:{type:Boolean,default:!1},src:{type:String,default:""},fit:{type:String,values:["","contain","cover","fill","none","scale-down"],default:""},loading:{type:String,values:["eager","lazy"]},lazy:{type:Boolean,default:!1},scrollContainer:{type:l([String,Object])},previewSrcList:{type:l(Array),default:()=>o([])},previewTeleported:{type:Boolean,default:!1},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0}}),ge=["src","loading"],we={key:0},ye=e("E",Q(s(c({name:"ElImage",inheritAttrs:!1,props:me,emits:{load:e=>e instanceof Event,error:e=>e instanceof Event,switch:e=>r(e),close:()=>!0,show:()=>!0},setup(e,{emit:t}){const a=e;let n="";const{t:l}=se(),o=v("image"),r=U(),s=ee(),c=m(),u=m(!1),d=m(!0),f=m(!1),p=m(),g=m(),w=i&&"loading"in HTMLImageElement.prototype;let z,A;const L=y((()=>r.style)),N=y((()=>{const{fit:e}=a;return i&&e?{objectFit:e}:{}})),B=y((()=>{const{previewSrcList:e}=a;return Array.isArray(e)&&e.length>0})),Y=y((()=>{const{previewSrcList:e,initialIndex:t}=a;let i=t;return t>e.length-1&&(i=0),i})),M=y((()=>"eager"!==a.loading&&(!w&&"lazy"===a.loading||a.lazy))),R=()=>{i&&(d.value=!0,u.value=!1,c.value=a.src)};function D(e){d.value=!1,u.value=!1,t("load",e)}function H(e){d.value=!1,u.value=!0,t("error",e)}function X(){((e,t)=>{if(!i||!e||!t)return!1;const a=e.getBoundingClientRect();let n;return n=t instanceof Element?t.getBoundingClientRect():{top:0,right:window.innerWidth,bottom:window.innerHeight,left:0},a.top<n.bottom&&a.bottom>n.top&&a.right>n.left&&a.left<n.right})(p.value,g.value)&&(R(),P())}const F=le(X,200);async function Z(){var e;if(!i)return;await b();const{scrollContainer:t}=a;ie(t)?g.value=t:ne(t)&&""!==t?g.value=null!=(e=document.querySelector(t))?e:void 0:p.value&&(g.value=ce(p.value)),g.value&&(z=G(g,"scroll",F),setTimeout((()=>X()),100))}function P(){i&&g.value&&F&&(null==z||z(),g.value=void 0)}function W(e){if(e.ctrlKey)return e.deltaY<0||e.deltaY>0?(e.preventDefault(),!1):void 0}function q(){B.value&&(A=G("wheel",W,{passive:!1}),n=document.body.style.overflow,document.body.style.overflow="hidden",f.value=!0,t("show"))}function J(){null==A||A(),document.body.style.overflow=n,f.value=!1,t("close")}function K(e){t("switch",e)}return h((()=>a.src),(()=>{M.value?(d.value=!0,u.value=!1,P(),Z()):R()})),x((()=>{M.value?Z():R()})),(e,t)=>(_(),j("div",{ref_key:"container",ref:p,class:O([E(o).b(),e.$attrs.class]),style:T(E(L))},[void 0===c.value||u.value?S("v-if",!0):(_(),j("img",te({key:0},E(s),{src:c.value,loading:e.loading,style:E(N),class:[E(o).e("inner"),E(B)&&E(o).e("preview"),d.value&&E(o).is("loading")],onClick:q,onLoad:D,onError:H}),null,16,ge)),d.value||u.value?(_(),j("div",{key:1,class:O(E(o).e("wrapper"))},[d.value?V(e.$slots,"placeholder",{key:0},(()=>[I("div",{class:O(E(o).e("placeholder"))},null,2)])):u.value?V(e.$slots,"error",{key:1},(()=>[I("div",{class:O(E(o).e("error"))},ae(E(l)("el.image.error")),3)])):S("v-if",!0)],2)):S("v-if",!0),E(B)?(_(),j($,{key:2},[f.value?(_(),k(E(pe),{key:0,"z-index":e.zIndex,"initial-index":E(Y),infinite:e.infinite,"url-list":e.previewSrcList,"hide-on-click-modal":e.hideOnClickModal,teleported:e.previewTeleported,"close-on-press-escape":e.closeOnPressEscape,onClose:J,onSwitch:K},{default:C((()=>[e.$slots.viewer?(_(),j("div",we,[V(e.$slots,"viewer")])):S("v-if",!0)])),_:3},8,["z-index","initial-index","infinite","url-list","hide-on-click-modal","teleported","close-on-press-escape"])):S("v-if",!0)],64)):S("v-if",!0)],6))}}),[["__file","/home/runner/work/element-plus/element-plus/packages/components/image/src/image.vue"]]))),he=c({name:"Opportunity"}),be={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},xe=[I("path",{fill:"currentColor",d:"M384 960v-64h192.064v64H384zm448-544a350.656 350.656 0 0 1-128.32 271.424C665.344 719.04 640 763.776 640 813.504V832H320v-14.336c0-48-19.392-95.36-57.216-124.992a351.552 351.552 0 0 1-128.448-344.256c25.344-136.448 133.888-248.128 269.76-276.48A352.384 352.384 0 0 1 832 416zm-544 32c0-132.288 75.904-224 192-224v-64c-154.432 0-256 122.752-256 288h64z"},null,-1)];var _e=oe(he,[["render",function(e,t,a,i,n,l){return _(),j("svg",be,xe)}]]);const ke={class:"tip tc"},ze={key:0,class:"preview"};e("T",re(c({__name:"tip",props:{imgs:{}},setup:e=>(e,t)=>{const a=ye,i=L;return _(),j("div",ke,[I("div",null,[V(e.$slots,"default",{},void 0,!0)]),e.imgs?.length?(_(),j("div",ze,[z(a,{"hide-on-click-modal":"",class:"img-container",src:e.imgs[0],"preview-src-list":e.imgs,"initial-index":0,fit:"cover"},null,8,["src","preview-src-list"]),z(i,{class:"icon"},{default:C((()=>[z(E(_e))])),_:1})])):S("",!0)])}}),[["__scopeId","data-v-2a504a1a"]]))}}}));
2
+ //# sourceMappingURL=tip-legacy.dee89e85.js.map
@@ -0,0 +1,2 @@
1
+ import{cy as i}from"./index-d98be3e4.js";const n=o=>["",...i].includes(o);export{n as i};
2
+ //# sourceMappingURL=validator-d4ea1237.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"validator-853854a1.js","sources":["../../node_modules/.pnpm/element-plus@2.2.13_vue@3.3.4/node_modules/element-plus/es/utils/vue/validator.mjs"],"sourcesContent":["import '../../constants/index.mjs';\nimport { componentSizes } from '../../constants/size.mjs';\nimport { datePickTypes } from '../../constants/date.mjs';\n\nconst isValidComponentSize = (val) => [\"\", ...componentSizes].includes(val);\nconst isValidDatePickType = (val) => [...datePickTypes].includes(val);\n\nexport { isValidComponentSize, isValidDatePickType };\n//# sourceMappingURL=validator.mjs.map\n"],"names":["isValidComponentSize","val","componentSizes"],"mappings":"yCAIK,MAACA,EAAwBC,GAAQ,CAAC,GAAI,GAAGC,CAAc,EAAE,SAASD,CAAG","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"validator-d4ea1237.js","sources":["../../node_modules/.pnpm/element-plus@2.2.13_vue@3.3.4/node_modules/element-plus/es/utils/vue/validator.mjs"],"sourcesContent":["import '../../constants/index.mjs';\nimport { componentSizes } from '../../constants/size.mjs';\nimport { datePickTypes } from '../../constants/date.mjs';\n\nconst isValidComponentSize = (val) => [\"\", ...componentSizes].includes(val);\nconst isValidDatePickType = (val) => [...datePickTypes].includes(val);\n\nexport { isValidComponentSize, isValidDatePickType };\n//# sourceMappingURL=validator.mjs.map\n"],"names":["isValidComponentSize","val","componentSizes"],"mappings":"yCAIK,MAACA,EAAwBC,GAAQ,CAAC,GAAI,GAAGC,CAAc,EAAE,SAASD,CAAG","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ System.register(["./index-legacy.acb8b137.js"],(function(e,t){"use strict";var s;return{setters:[e=>{s=e.cy}],execute:function(){e("i",(e=>["",...s].includes(e)))}}}));
2
+ //# sourceMappingURL=validator-legacy.ecd1e5dd.js.map
package/dist/index.html CHANGED
@@ -117,8 +117,8 @@
117
117
  </script>
118
118
  <!-- xlsx支持 -->
119
119
  <script src="https://lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/xlsx/0.18.2/xlsx.full.min.js"></script>
120
- <script type="module" crossorigin src="/assets/index-62c7029f.js"></script>
121
- <link rel="stylesheet" href="/assets/index-5f3a9ae0.css">
120
+ <script type="module" crossorigin src="/assets/index-d98be3e4.js"></script>
121
+ <link rel="stylesheet" href="/assets/index-d26aeed5.css">
122
122
  <script type="module">try{import.meta.url;import("_").catch(()=>1);}catch(e){}window.__vite_is_modern_browser=true;</script>
123
123
  <script type="module">!function(){if(window.__vite_is_modern_browser)return;console.warn("vite: loading legacy build because dynamic import or import.meta.url is unsupported, syntax error above should be ignored");var e=document.getElementById("vite-legacy-polyfill"),n=document.createElement("script");n.src=e.src,n.onload=function(){System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))},document.body.appendChild(n)}();</script>
124
124
  </head>
@@ -128,7 +128,7 @@
128
128
 
129
129
  <script nomodule>!function(){var e=document,t=e.createElement("script");if(!("noModule"in t)&&"onbeforeload"in t){var n=!1;e.addEventListener("beforeload",(function(e){if(e.target===t)n=!0;else if(!e.target.hasAttribute("nomodule")||!n)return;e.preventDefault()}),!0),t.type="module",t.src=".",e.head.appendChild(t),t.remove()}}();</script>
130
130
  <script nomodule crossorigin id="vite-legacy-polyfill" src="/assets/polyfills-legacy.99e38685.js"></script>
131
- <script nomodule crossorigin id="vite-legacy-entry" data-src="/assets/index-legacy.978f90e1.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
131
+ <script nomodule crossorigin id="vite-legacy-entry" data-src="/assets/index-legacy.acb8b137.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
132
132
  </body>
133
133
 
134
134
  </html>
package/package.json CHANGED
@@ -1,13 +1,15 @@
1
1
  {
2
2
  "name": "@sugarat/easypicker2-client",
3
+ "version": "2.6.0",
3
4
  "files": [
5
+ "package.json",
4
6
  "dist"
5
7
  ],
6
- "version": "2.5.0",
7
8
  "scripts": {
8
9
  "dev": "vite",
9
10
  "dev:test": "cross-env VITE_APP_AXIOS_BASE_URL=/api-test/ vite --mode test",
10
11
  "build": "vite build",
12
+ "build:test": "cross-env VITE_APP_AXIOS_BASE_URL=/api-test/ vite build --mode test",
11
13
  "serve": "vite preview",
12
14
  "lint": "eslint src --fix",
13
15
  "docs:dev": "vitepress dev docs",
@@ -16,16 +18,19 @@
16
18
  "docs:deploy": "zx scripts/deploy/docs.mjs",
17
19
  "deploy:prod": "zx scripts/deploy/prod.mjs",
18
20
  "deploy:test": "zx scripts/deploy/test.mjs",
19
- "upload:oss": "pnpm build && q ep client -up"
21
+ "upload:oss": "pnpm build && q ep client -up",
22
+ "update:version": "npm version prerelease --preid=beta --no-git-tag-version",
23
+ "preinstall": "npm config set registry https://registry.npmmirror.com/"
20
24
  },
21
25
  "dependencies": {
22
26
  "@element-plus/icons-vue": "^1.1.4",
23
- "@sugarat/theme": "^0.2.5",
27
+ "@sugarat/theme": "^0.4.6",
28
+ "@vueuse/core": "^10.11.0",
24
29
  "axios": "^0.27.2",
25
30
  "clipboard-copy": "^4.0.1",
26
31
  "element-plus": "2.2.13",
27
32
  "spark-md5": "^3.0.2",
28
- "vitepress": "^1.0.0-rc.20",
33
+ "vitepress": "1.2.3",
29
34
  "vue": "^3.3.4",
30
35
  "vue-json-viewer": "^3.0.4",
31
36
  "vue-router": "^4.2.4",
@@ -45,6 +50,7 @@
45
50
  "eslint-plugin-prettier": "^4.2.1",
46
51
  "eslint-plugin-todo-ddl": "^1.1.1",
47
52
  "eslint-plugin-vue": "^7.20.0",
53
+ "pagefind": "^1.1.0",
48
54
  "prettier": "^2.8.8",
49
55
  "sass": "^1.64.1",
50
56
  "terser": "^5.19.2",
@@ -1,2 +0,0 @@
1
- import{J as B,aD as A,aI as F,aS as U,aE as M,M as z,aF as le,r as $,ah as te,O as y,aw as se,aL as ne,N as G,d as S,Q as x,f,c as h,a as E,a6 as K,c4 as Q,k as a,bL as O,H as _,T as N,b as w,t as R,aR as j,as as q,aB as re,ar as ie,aJ as ue,c5 as de,o as ce,ag as pe,Z as me,bK as fe,$ as be,aT as ve,Y as _e,aC as H,_ as D,D as g,a5 as P,h as ge,ac as ye,c6 as he,E as T,j as V,w as v,x as Ee,v as J,C,S as I,F as L}from"./index-62c7029f.js";import{E as ke}from"./el-dialog-463960e0.js";import{E as Ve}from"./tip-00ddf749.js";import{a as $e,E as we}from"./el-form-item-f40006bf.js";import{a as Se,E as Ie}from"./el-select-7d894fd0.js";const W=Symbol("radioGroupKey"),Y=B({size:A,disabled:Boolean,label:{type:[String,Number,Boolean],default:""}}),Re=B({...Y,modelValue:{type:[String,Number,Boolean],default:""},name:{type:String,default:""},border:Boolean}),Z={[F]:o=>U(o)||M(o)||z(o),[le]:o=>U(o)||M(o)||z(o)},X=(o,n)=>{const t=$(),l=te(W,void 0),i=y(()=>!!l),b=y({get(){return i.value?l.modelValue:o.modelValue},set(d){i.value?l.changeEvent(d):n&&n(F,d),t.value.checked=o.modelValue===o.label}}),r=se(y(()=>l==null?void 0:l.size)),c=ne(y(()=>l==null?void 0:l.disabled)),s=$(!1),p=y(()=>c.value||i.value&&b.value!==o.label?-1:0);return{radioRef:t,isGroup:i,radioGroup:l,focus:s,size:r,disabled:c,tabIndex:p,modelValue:b}},Be=["value","name","disabled"],Ce={name:"ElRadio"},Le=S({...Ce,props:Re,emits:Z,setup(o,{emit:n}){const t=o,l=x("radio"),{radioRef:i,radioGroup:b,focus:r,size:c,disabled:s,modelValue:p}=X(t,n);function d(){q(()=>n("change",p.value))}return(e,m)=>{var u;return f(),h("label",{class:_([a(l).b(),a(l).is("disabled",a(s)),a(l).is("focus",a(r)),a(l).is("bordered",e.border),a(l).is("checked",a(p)===e.label),a(l).m(a(c))])},[E("span",{class:_([a(l).e("input"),a(l).is("disabled",a(s)),a(l).is("checked",a(p)===e.label)])},[K(E("input",{ref_key:"radioRef",ref:i,"onUpdate:modelValue":m[0]||(m[0]=k=>O(p)?p.value=k:null),class:_(a(l).e("original")),value:e.label,name:e.name||((u=a(b))==null?void 0:u.name),disabled:a(s),type:"radio",onFocus:m[1]||(m[1]=k=>r.value=!0),onBlur:m[2]||(m[2]=k=>r.value=!1),onChange:d},null,42,Be),[[Q,a(p)]]),E("span",{class:_(a(l).e("inner"))},null,2)],2),E("span",{class:_(a(l).e("label")),onKeydown:m[3]||(m[3]=j(()=>{},["stop"]))},[N(e.$slots,"default",{},()=>[w(R(e.label),1)])],34)],2)}}});var Fe=G(Le,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio.vue"]]);const Ge=B({...Y,name:{type:String,default:""}}),xe=["value","name","disabled"],Ne={name:"ElRadioButton"},De=S({...Ne,props:Ge,setup(o){const n=o,t=x("radio"),{radioRef:l,focus:i,size:b,disabled:r,modelValue:c,radioGroup:s}=X(n),p=y(()=>({backgroundColor:(s==null?void 0:s.fill)||"",borderColor:(s==null?void 0:s.fill)||"",boxShadow:s!=null&&s.fill?"-1px 0 0 0 ".concat(s.fill):"",color:(s==null?void 0:s.textColor)||""}));return(d,e)=>{var m;return f(),h("label",{class:_([a(t).b("button"),a(t).is("active",a(c)===d.label),a(t).is("disabled",a(r)),a(t).is("focus",a(i)),a(t).bm("button",a(b))])},[K(E("input",{ref_key:"radioRef",ref:l,"onUpdate:modelValue":e[0]||(e[0]=u=>O(c)?c.value=u:null),class:_(a(t).be("button","original-radio")),value:d.label,type:"radio",name:d.name||((m=a(s))==null?void 0:m.name),disabled:a(r),onFocus:e[1]||(e[1]=u=>i.value=!0),onBlur:e[2]||(e[2]=u=>i.value=!1)},null,42,xe),[[Q,a(c)]]),E("span",{class:_(a(t).be("button","inner")),style:re(a(c)===d.label?a(p):{}),onKeydown:e[3]||(e[3]=j(()=>{},["stop"]))},[N(d.$slots,"default",{},()=>[w(R(d.label),1)])],38)],2)}}});var ee=G(De,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-button.vue"]]);const Ue=B({id:{type:String,default:void 0},size:A,disabled:Boolean,modelValue:{type:[String,Number,Boolean],default:""},fill:{type:String,default:""},label:{type:String,default:void 0},textColor:{type:String,default:""},name:{type:String,default:void 0},validateEvent:{type:Boolean,default:!0}}),Me=Z,ze=["id","aria-label","aria-labelledby"],Pe={name:"ElRadioGroup"},Te=S({...Pe,props:Ue,emits:Me,setup(o,{emit:n}){const t=o,l=x("radio"),i=ie(),b=$(),{formItem:r}=ue(),{inputId:c,isLabeledByFormItem:s}=de(t,{formItemContext:r}),p=e=>{n(F,e),q(()=>n("change",e))};ce(()=>{const e=b.value.querySelectorAll("[type=radio]"),m=e[0];!Array.from(e).some(u=>u.checked)&&m&&(m.tabIndex=0)});const d=y(()=>t.name||i.value);return pe(W,me({...fe(t),changeEvent:p,name:d})),be(()=>t.modelValue,()=>{t.validateEvent&&(r==null||r.validate("change").catch(e=>ve()))}),(e,m)=>(f(),h("div",{id:a(c),ref_key:"radioGroupRef",ref:b,class:_(a(l).b("group")),role:"radiogroup","aria-label":a(s)?void 0:e.label||"radio-group","aria-labelledby":a(s)?a(r).labelId:void 0},[N(e.$slots,"default")],10,ze))}});var ae=G(Te,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-group.vue"]]);const Ae=_e(Fe,{RadioButton:ee,RadioGroup:ae}),Ke=H(ae),oa=H(ee),Qe={name:"QrCode",props:{value:String},data(){return{src:"",srcList:[]}},watch:{value(o){o&&(this.src=this.createEwm(o),this.srcList=[this.src])}},methods:{createEwm(o,n){return new AraleQRCode({text:o,size:400,foreground:"#000",...n}).toDataURL("image/png")}},mounted(){this.value&&(this.src=this.createEwm(this.value),this.srcList=[this.src])}};function Oe(o,n,t,l,i,b){const r=Ve;return f(),g(r,{style:{width:"150px",height:"150px"},src:i.src,"preview-src-list":i.srcList},null,8,["src","preview-src-list"])}const oe=D(Qe,[["render",Oe]]),je=S({name:"linkDialog",components:{QrCode:oe},props:{title:{type:String,default:"链接面板"},value:{type:Boolean},link:{type:String,default:""},download:{type:Boolean,default:!0}},setup(o,n){const t=$(""),l=$(!1),i=()=>{ye(t.value)};P(()=>{t.value=o.link}),P(()=>{l.value=o.value,l.value&&o.download&&setTimeout(()=>{T.success("如未自动开始下载,请复制链接到浏览器中执行下载")},200)});const b=()=>{n.emit("update:value",!1)},r=()=>{he(t.value).then(p=>{t.value=p,T.success("短链生成成功")})},c=ge(),s=y(()=>c.getters["public/isMobile"]);return{shareLink:t,createShortLink:r,copyLink:i,handleClose:b,showModel:l,isMobile:s}}}),qe={style:{"margin-top":"10px","text-align":"center"}};function He(o,n,t,l,i,b){const r=Ee,c=J,s=oe,p=ke;return f(),h("div",null,[V(p,{fullscreen:o.isMobile,onClose:o.handleClose,title:o.title,modelValue:o.showModel,"onUpdate:modelValue":n[1]||(n[1]=d=>o.showModel=d),center:""},{default:v(()=>[E("div",null,[V(c,{placeholder:"生成的链接",modelValue:o.shareLink,"onUpdate:modelValue":n[0]||(n[0]=d=>o.shareLink=d)},{prepend:v(()=>[V(r,{type:"primary",onClick:o.createShortLink},{default:v(()=>[w("生成短链")]),_:1},8,["onClick"])]),append:v(()=>[V(r,{type:"primary",onClick:o.copyLink},{default:v(()=>[w("复制")]),_:1},8,["onClick"])]),_:1},8,["modelValue"])]),E("div",qe,[V(s,{value:o.shareLink},null,8,["value"])])]),_:1},8,["fullscreen","onClose","title","modelValue"])])}const la=D(je,[["render",He]]);const Je={key:0,class:"fixed-text"},We=S({__name:"index",props:{infos:{},disabled:{type:Boolean},labelPosition:{}},setup(o){const n=+"14";return(t,l)=>{const i=J,b=Ae,r=Ke,c=Se,s=Ie,p=we,d=$e;return f(),g(d,{disabled:t.disabled,"label-position":t.labelPosition||"top"},{default:v(()=>[(f(!0),h(L,null,C(t.infos,(e,m)=>(f(),g(p,{class:"ellipsis",key:m,label:e.type==="text"?"":e.text},{default:v(()=>[e.type==="text"?(f(),h("div",Je,R(e.text),1)):I("",!0),e.type==="input"?(f(),g(i,{key:1,maxlength:a(n),clearable:"","show-word-limit":"",placeholder:"请输入 ".concat(e.text),modelValue:e.value,"onUpdate:modelValue":u=>e.value=u},null,8,["maxlength","placeholder","modelValue","onUpdate:modelValue"])):I("",!0),e.type==="radio"?(f(),g(r,{key:2,modelValue:e.value,"onUpdate:modelValue":u=>e.value=u},{default:v(()=>[(f(!0),h(L,null,C(e.children,(u,k)=>(f(),g(b,{key:k,label:u.text},{default:v(()=>[w(R(u.text),1)]),_:2},1032,["label"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):I("",!0),e.type==="select"?(f(),g(s,{key:3,"default-first-option":"",clearable:"",filterable:"",modelValue:e.value,"onUpdate:modelValue":u=>e.value=u,placeholder:"请选择 ".concat(e.text)},{default:v(()=>[(f(!0),h(L,null,C(e.children,(u,k)=>(f(),g(c,{key:k,label:u.text,value:u.text},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","placeholder"])):I("",!0)]),_:2},1032,["label"]))),128))]),_:1},8,["disabled","label-position"])}}});const ta=D(We,[["__scopeId","data-v-a3161c5f"]]);export{oa as E,ta as I,la as L,Ke as a,Ae as b};
2
- //# sourceMappingURL=index-34bd5929.js.map
@@ -1 +0,0 @@
1
- @media screen and (max-width: 700px){.user[data-v-0b1b911a]{margin-top:40px!important}.log-filter[data-v-0b1b911a]{justify-content:center}}.user[data-v-0b1b911a]{margin:0 auto}.panel[data-v-0b1b911a]{max-width:1256px;padding:1em;background-color:#fff;margin:10px auto;box-sizing:border-box;box-shadow:0 2px 12px rgba(0,0,0,.1);border-radius:4px}.log-filter[data-v-0b1b911a]{display:flex;flex-wrap:wrap}.log-filter .item[data-v-0b1b911a]{margin-right:10px;margin-bottom:10px}.log-filter .item .label[data-v-0b1b911a]{margin-right:10px;font-size:12px}.text-btn-list[data-v-0b1b911a]{display:flex;flex-wrap:wrap}.text-btn-list button[data-v-0b1b911a]{margin-left:0}.user-oss-info[data-v-0b1b911a]{list-style:none}.user-oss-info li[data-v-0b1b911a]{margin-bottom:10px}.user-oss-info .clear-btn[data-v-0b1b911a]{margin-left:10px}