@m3ui-vue/m3ui-vue 1.5.0 → 1.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.
- package/dist/API.md +43 -32
- package/dist/{MButton-D_uxtJa-.js → MButton-CPghlKb0.js} +8 -9
- package/dist/MButton-CPghlKb0.js.map +1 -0
- package/dist/{MDialog-DT4KAPmn.js → MDialog-X50At1Gk.js} +38 -44
- package/dist/MDialog-X50At1Gk.js.map +1 -0
- package/dist/{MIcon-Bxh9j135.js → MIcon-DpajuUTJ.js} +2 -3
- package/dist/MIcon-DpajuUTJ.js.map +1 -0
- package/dist/{MIconButton-DoNotQ9v.js → MIconButton-BBggVwBV.js} +5 -6
- package/dist/MIconButton-BBggVwBV.js.map +1 -0
- package/dist/{MListItem-CwYrxpPZ.js → MListItem-DVi1j1QI.js} +8 -14
- package/dist/MListItem-DVi1j1QI.js.map +1 -0
- package/dist/{MLoadingIndicator-DhzECYRI.js → MLoadingIndicator-vooA3110.js} +3 -4
- package/dist/MLoadingIndicator-vooA3110.js.map +1 -0
- package/dist/{MMenuItem-Bih0h4-n.js → MMenuItem-CRNZkVVr.js} +13 -25
- package/dist/MMenuItem-CRNZkVVr.js.map +1 -0
- package/dist/{MProgressBar-BCoruxA-.js → MProgressBar-BWly1UKN.js} +3 -8
- package/dist/MProgressBar-BWly1UKN.js.map +1 -0
- package/dist/{MSeekBar-DQPF5FTp.js → MSeekBar-BL2W5_rD.js} +4 -5
- package/dist/MSeekBar-BL2W5_rD.js.map +1 -0
- package/dist/{MSegmentedButton-DL9JtJFX.js → MSegmentedButton-BEB4gXLA.js} +3 -4
- package/dist/MSegmentedButton-BEB4gXLA.js.map +1 -0
- package/dist/{MSlider-BvoMZTy9.js → MSlider-B9NcKTmZ.js} +22 -23
- package/dist/MSlider-B9NcKTmZ.js.map +1 -0
- package/dist/{MSpinner-CgcCQhS9.js → MSpinner-_XpTRkAg.js} +3 -4
- package/dist/MSpinner-_XpTRkAg.js.map +1 -0
- package/dist/{MTextField-B72dwF6V.js → MTextField-DpcPmR5B.js} +119 -89
- package/dist/MTextField-DpcPmR5B.js.map +1 -0
- package/dist/{MTooltip-YyF1CO75.js → MTooltip-BL3jPYPT.js} +10 -12
- package/dist/MTooltip-BL3jPYPT.js.map +1 -0
- package/dist/THIRD_PARTY_LICENSES.md +2 -2
- package/dist/{_plugin-vue_export-helper-B3ysoDQm.js → _plugin-vue_export-helper-Djzt4Yr7.js} +1 -2
- package/dist/{_storageKeys-CYXsUBwK.js → _storageKeys-C4W_4xK4.js} +2 -3
- package/dist/_storageKeys-C4W_4xK4.js.map +1 -0
- package/dist/{_useEscapeStack-CjndQhqg.js → _useEscapeStack-C5-BYr8y.js} +2 -3
- package/dist/_useEscapeStack-C5-BYr8y.js.map +1 -0
- package/dist/api.json +1 -1
- package/dist/barcode.js +1 -2
- package/dist/barcode.js.map +1 -1
- package/dist/chart.js +2 -4
- package/dist/chart.js.map +1 -1
- package/dist/code-editor.js +22 -23
- package/dist/code-editor.js.map +1 -1
- package/dist/{common-0dgrgaPL.js → common-kIb6A2Qu.js} +8 -37
- package/dist/common-kIb6A2Qu.js.map +1 -0
- package/dist/components/MAbsolute.vue.d.ts +5 -3
- package/dist/components/MAlert.vue.d.ts +8 -6
- package/dist/components/MAppBar.vue.d.ts +9 -7
- package/dist/components/MAppBarWithSearch.vue.d.ts +15 -13
- package/dist/components/MAppLayout.vue.d.ts +13 -11
- package/dist/components/MAspectRatio.vue.d.ts +5 -3
- package/dist/components/MAudioPlayer.vue.d.ts +22 -20
- package/dist/components/MAutocomplete.vue.d.ts +1 -1
- package/dist/components/MAvailabilityCalendar.vue.d.ts +19 -17
- package/dist/components/MBadge.vue.d.ts +6 -4
- package/dist/components/MBar.vue.d.ts +14 -12
- package/dist/components/MBarcode.vue.d.ts +5 -3
- package/dist/components/MBeforeAfter.vue.d.ts +12 -10
- package/dist/components/MBodyMap.vue.d.ts +1 -1
- package/dist/components/MBottomAppBar.vue.d.ts +10 -8
- package/dist/components/MBottomSheet.vue.d.ts +8 -6
- package/dist/components/MBottomSheetScaffold.vue.d.ts +9 -7
- package/dist/components/MBox.vue.d.ts +6 -4
- package/dist/components/MButton.vue.d.ts +7 -5
- package/dist/components/MCard.vue.d.ts +12 -10
- package/dist/components/MCenter.vue.d.ts +5 -3
- package/dist/components/MChatBubble.vue.d.ts +6 -4
- package/dist/components/MCheckbox.vue.d.ts +5 -3
- package/dist/components/MChip.vue.d.ts +9 -7
- package/dist/components/MCircleProgressBar.vue.d.ts +6 -4
- package/dist/components/MCodeEditor.vue.d.ts +5 -3
- package/dist/components/MContainer.vue.d.ts +6 -4
- package/dist/components/MContextMenu.vue.d.ts +8 -6
- package/dist/components/MCopyButton.vue.d.ts +1 -1
- package/dist/components/MDataTable.vue.d.ts +21 -19
- package/dist/components/MDialog.vue.d.ts +21 -19
- package/dist/components/MDragHandle.vue.d.ts +1 -1
- package/dist/components/MDrawCanvas.vue.d.ts +5 -3
- package/dist/components/MDrawToolbar.vue.d.ts +7 -5
- package/dist/components/MEmptyState.vue.d.ts +5 -3
- package/dist/components/MExpansionPanel.vue.d.ts +6 -4
- package/dist/components/MExportButton.vue.d.ts +7 -5
- package/dist/components/MFab.vue.d.ts +11 -9
- package/dist/components/MFabMenu.vue.d.ts +3 -3
- package/dist/components/MFixed.vue.d.ts +5 -3
- package/dist/components/MFlex.vue.d.ts +7 -5
- package/dist/components/MFloorPlan.vue.d.ts +3 -3
- package/dist/components/MFloorPlanInspector.vue.d.ts +32 -30
- package/dist/components/MFloorPlanToolbar.vue.d.ts +2 -2
- package/dist/components/MFlow.vue.d.ts +4 -4
- package/dist/components/MFlowControls.vue.d.ts +6 -4
- package/dist/components/MFlowHandle.vue.d.ts +1 -1
- package/dist/components/MFlowNode.vue.d.ts +11 -9
- package/dist/components/MFooter.vue.d.ts +12 -10
- package/dist/components/MFullscreen.vue.d.ts +5 -3
- package/dist/components/MGantt.vue.d.ts +33 -31
- package/dist/components/MGanttControls.vue.d.ts +8 -6
- package/dist/components/MGrid.vue.d.ts +6 -4
- package/dist/components/MIcon.vue.d.ts +5 -0
- package/dist/components/MIconButton.vue.d.ts +1 -1
- package/dist/components/MImageCropper.vue.d.ts +14 -12
- package/dist/components/MInfiniteScroll.vue.d.ts +11 -9
- package/dist/components/MList.vue.d.ts +5 -3
- package/dist/components/MListGroup.vue.d.ts +7 -5
- package/dist/components/MListItem.vue.d.ts +21 -19
- package/dist/components/MListSubheader.vue.d.ts +5 -3
- package/dist/components/MLoadingOverlay.vue.d.ts +10 -8
- package/dist/components/MMap.vue.d.ts +14 -6
- package/dist/components/MMapControl.vue.d.ts +12 -10
- package/dist/components/MMapFeatureInfo.vue.d.ts +11 -9
- package/dist/components/MMapIdentify.vue.d.ts +9 -7
- package/dist/components/MMapLayers.vue.d.ts +13 -11
- package/dist/components/MMapMarker.vue.d.ts +7 -5
- package/dist/components/MMapPopup.vue.d.ts +5 -3
- package/dist/components/MMasonry.vue.d.ts +5 -3
- package/dist/components/MMenu.vue.d.ts +12 -10
- package/dist/components/MMenuItem.vue.d.ts +11 -9
- package/dist/components/MMultiAutocomplete.vue.d.ts +1 -1
- package/dist/components/MMultiSelect.vue.d.ts +6 -4
- package/dist/components/MNavigationDrawer.vue.d.ts +14 -12
- package/dist/components/MNavigationRail.vue.d.ts +7 -5
- package/dist/components/MOdontogram.vue.d.ts +1 -1
- package/dist/components/MOrderBook.vue.d.ts +1 -1
- package/dist/components/MOverlay.vue.d.ts +5 -3
- package/dist/components/MPdfViewer.vue.d.ts +4 -4
- package/dist/components/MPhoneInput.vue.d.ts +11 -9
- package/dist/components/MPosKeypad.vue.d.ts +18 -16
- package/dist/components/MProgressBar.vue.d.ts +1 -1
- package/dist/components/MPullToRefresh.vue.d.ts +5 -3
- package/dist/components/MQRCode.vue.d.ts +7 -5
- package/dist/components/MRadioGroup.vue.d.ts +1 -1
- package/dist/components/MReceipt.vue.d.ts +2 -2
- package/dist/components/MRelative.vue.d.ts +5 -3
- package/dist/components/MResourceTimeline.vue.d.ts +31 -29
- package/dist/components/MResponsive.vue.d.ts +5 -3
- package/dist/components/MResult.vue.d.ts +7 -5
- package/dist/components/MScrollable.vue.d.ts +7 -5
- package/dist/components/MSearchBar.vue.d.ts +13 -11
- package/dist/components/MSearchField.vue.d.ts +7 -5
- package/dist/components/MSection.vue.d.ts +11 -9
- package/dist/components/MSeekBar.vue.d.ts +3 -3
- package/dist/components/MSelect.vue.d.ts +1 -1
- package/dist/components/MShader.vue.d.ts +11 -9
- package/dist/components/MShortNavigationBar.vue.d.ts +1 -1
- package/dist/components/MSideSheet.vue.d.ts +9 -7
- package/dist/components/MSimpleCarousel.vue.d.ts +1 -1
- package/dist/components/MSkeleton.vue.d.ts +2 -2
- package/dist/components/MSlider.vue.d.ts +3 -3
- package/dist/components/MSparkline.vue.d.ts +1 -1
- package/dist/components/MSplitButton.vue.d.ts +7 -5
- package/dist/components/MSplitter.vue.d.ts +9 -7
- package/dist/components/MSpotlightSearch.vue.d.ts +1 -1
- package/dist/components/MStack.vue.d.ts +8 -6
- package/dist/components/MStatCard.vue.d.ts +5 -3
- package/dist/components/MStepper.vue.d.ts +5 -3
- package/dist/components/MSticky.vue.d.ts +5 -3
- package/dist/components/MSubtitle.vue.d.ts +6 -4
- package/dist/components/MSwipeToDismiss.vue.d.ts +11 -9
- package/dist/components/MTable.vue.d.ts +17 -15
- package/dist/components/MText.vue.d.ts +5 -3
- package/dist/components/MTextField.vue.d.ts +6 -4
- package/dist/components/MTimePickerModal.vue.d.ts +1 -1
- package/dist/components/MTitle.vue.d.ts +6 -4
- package/dist/components/MToggleButton.vue.d.ts +5 -3
- package/dist/components/MToolbar.vue.d.ts +24 -22
- package/dist/components/MTooltip.vue.d.ts +10 -8
- package/dist/components/MTopAppBar.vue.d.ts +22 -20
- package/dist/components/MTour.vue.d.ts +28 -26
- package/dist/components/MTransition.vue.d.ts +5 -3
- package/dist/components/MTree.vue.d.ts +6 -4
- package/dist/components/MTreeTable.vue.d.ts +21 -19
- package/dist/components/MTypewriter.vue.d.ts +6 -4
- package/dist/components/MVirtualTable.vue.d.ts +8 -6
- package/dist/components/_MMapLayerItem.vue.d.ts +8 -6
- package/dist/components/_MPdfPage.vue.d.ts +2 -2
- package/dist/components/_MToolbarFab.vue.d.ts +5 -3
- package/dist/components/_MTreeNode.vue.d.ts +13 -11
- package/dist/composables/_fieldLayout.d.ts +47 -0
- package/dist/composables/useMap.d.ts +8 -0
- package/dist/{dist-CrjSW5DN.js → dist-Bj5kEq8G.js} +4 -6
- package/dist/dist-Bj5kEq8G.js.map +1 -0
- package/dist/draw.js +62 -82
- package/dist/draw.js.map +1 -1
- package/dist/{emoji-names-de-BphO5XpV.js → emoji-names-de-Cu3OSpp6.js} +2 -3
- package/dist/emoji-names-de-Cu3OSpp6.js.map +1 -0
- package/dist/{emoji-names-en-9ZvMRvzi.js → emoji-names-en-BNX1pM9h.js} +2 -3
- package/dist/emoji-names-en-BNX1pM9h.js.map +1 -0
- package/dist/{emoji-names-es-DvfWU3Pj.js → emoji-names-es-C_Dafg4D.js} +2 -3
- package/dist/emoji-names-es-C_Dafg4D.js.map +1 -0
- package/dist/{emoji-names-fr-B-jhUlsP.js → emoji-names-fr-D4HTMFuM.js} +2 -3
- package/dist/emoji-names-fr-D4HTMFuM.js.map +1 -0
- package/dist/{emoji-names-ja-l8cMFJo1.js → emoji-names-ja-BCql-Sj6.js} +2 -3
- package/dist/emoji-names-ja-BCql-Sj6.js.map +1 -0
- package/dist/{emoji-names-ko-YP-o9G0c.js → emoji-names-ko-CT8L52nn.js} +2 -3
- package/dist/emoji-names-ko-CT8L52nn.js.map +1 -0
- package/dist/{emoji-names-pt-DGj_Js4M.js → emoji-names-pt-DHiwPiL-.js} +2 -3
- package/dist/emoji-names-pt-DHiwPiL-.js.map +1 -0
- package/dist/{emoji-names-zh-Dzecwtw_.js → emoji-names-zh-L3FXVief.js} +2 -3
- package/dist/emoji-names-zh-L3FXVief.js.map +1 -0
- package/dist/flow.js +351 -374
- package/dist/flow.js.map +1 -1
- package/dist/{flowPaths-CcWOKY4Z.js → flowPaths-BaH7yaUM.js} +3 -8
- package/dist/flowPaths-BaH7yaUM.js.map +1 -0
- package/dist/gantt.js +272 -333
- package/dist/gantt.js.map +1 -1
- package/dist/locales/index.js +1 -2
- package/dist/locales/index.js.map +1 -1
- package/dist/m3ui-vue.css +1 -1
- package/dist/m3ui.js +4085 -4277
- package/dist/m3ui.js.map +1 -1
- package/dist/map.d.ts +1 -1
- package/dist/map.js +521 -520
- package/dist/map.js.map +1 -1
- package/dist/markdown.js +3 -4
- package/dist/markdown.js.map +1 -1
- package/dist/{material-color-utilities-C_iikgRm.js → material-color-utilities-CEFytLsr.js} +15 -32
- package/dist/material-color-utilities-CEFytLsr.js.map +1 -0
- package/dist/media.js +80 -94
- package/dist/media.js.map +1 -1
- package/dist/{motion-DZiXG09o.js → motion-BcejVTeX.js} +2 -3
- package/dist/motion-BcejVTeX.js.map +1 -0
- package/dist/pdf.js +103 -115
- package/dist/pdf.js.map +1 -1
- package/dist/qrcode.js +1 -2
- package/dist/qrcode.js.map +1 -1
- package/dist/rich-text-editor.js +33 -34
- package/dist/rich-text-editor.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/terminal.js +2 -3
- package/dist/terminal.js.map +1 -1
- package/dist/{useLocale-DLcG3qPC.js → useLocale-COav9m8C.js} +2 -3
- package/dist/useLocale-COav9m8C.js.map +1 -0
- package/dist/{useThemeTokens-DQQcaWbE.js → useThemeTokens-DyAdPQB0.js} +6 -10
- package/dist/useThemeTokens-DyAdPQB0.js.map +1 -0
- package/package.json +32 -32
- package/src/__tests__/MFab.test.ts +10 -1
- package/src/__tests__/MMap.test.ts +16 -1
- package/src/__tests__/_fakeMaplibre.ts +2 -0
- package/src/__tests__/fieldOverflow.test.ts +118 -0
- package/src/components/MAutocomplete.vue +21 -24
- package/src/components/MColorPicker.vue +3 -3
- package/src/components/MDatePicker.vue +4 -4
- package/src/components/MDateRangePicker.vue +4 -4
- package/src/components/MMap.vue +12 -3
- package/src/components/MMapMeasure.vue +3 -1
- package/src/components/MMaskField.vue +16 -24
- package/src/components/MMultiAutocomplete.vue +19 -25
- package/src/components/MMultiSelect.vue +20 -27
- package/src/components/MNumberField.vue +16 -26
- package/src/components/MPinInput.vue +3 -2
- package/src/components/MSearchBar.vue +2 -2
- package/src/components/MSelect.vue +16 -22
- package/src/components/MTagInput.vue +19 -26
- package/src/components/MTextField.vue +18 -46
- package/src/components/MTimePicker.vue +4 -4
- package/src/composables/_fieldLayout.ts +117 -0
- package/src/composables/useMap.ts +17 -0
- package/src/composables/useMapLayers.ts +4 -1
- package/src/map.ts +1 -1
- package/dist/MButton-D_uxtJa-.js.map +0 -1
- package/dist/MDialog-DT4KAPmn.js.map +0 -1
- package/dist/MIcon-Bxh9j135.js.map +0 -1
- package/dist/MIconButton-DoNotQ9v.js.map +0 -1
- package/dist/MListItem-CwYrxpPZ.js.map +0 -1
- package/dist/MLoadingIndicator-DhzECYRI.js.map +0 -1
- package/dist/MMenuItem-Bih0h4-n.js.map +0 -1
- package/dist/MProgressBar-BCoruxA-.js.map +0 -1
- package/dist/MSeekBar-DQPF5FTp.js.map +0 -1
- package/dist/MSegmentedButton-DL9JtJFX.js.map +0 -1
- package/dist/MSlider-BvoMZTy9.js.map +0 -1
- package/dist/MSpinner-CgcCQhS9.js.map +0 -1
- package/dist/MTextField-B72dwF6V.js.map +0 -1
- package/dist/MTooltip-YyF1CO75.js.map +0 -1
- package/dist/_storageKeys-CYXsUBwK.js.map +0 -1
- package/dist/_useEscapeStack-CjndQhqg.js.map +0 -1
- package/dist/common-0dgrgaPL.js.map +0 -1
- package/dist/dist-CrjSW5DN.js.map +0 -1
- package/dist/emoji-names-de-BphO5XpV.js.map +0 -1
- package/dist/emoji-names-en-9ZvMRvzi.js.map +0 -1
- package/dist/emoji-names-es-DvfWU3Pj.js.map +0 -1
- package/dist/emoji-names-fr-B-jhUlsP.js.map +0 -1
- package/dist/emoji-names-ja-l8cMFJo1.js.map +0 -1
- package/dist/emoji-names-ko-YP-o9G0c.js.map +0 -1
- package/dist/emoji-names-pt-DGj_Js4M.js.map +0 -1
- package/dist/emoji-names-zh-Dzecwtw_.js.map +0 -1
- package/dist/flowPaths-CcWOKY4Z.js.map +0 -1
- package/dist/material-color-utilities-C_iikgRm.js.map +0 -1
- package/dist/motion-DZiXG09o.js.map +0 -1
- package/dist/useLocale-DLcG3qPC.js.map +0 -1
- package/dist/useThemeTokens-DQQcaWbE.js.map +0 -1
package/dist/media.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { i as e } from "./useLocale-
|
|
2
|
-
import { t } from "./
|
|
3
|
-
import { t as n } from "./
|
|
4
|
-
import {
|
|
5
|
-
import { t as
|
|
6
|
-
import { t as o } from "./
|
|
7
|
-
import { t as s } from "./
|
|
1
|
+
import { i as e } from "./useLocale-COav9m8C.js";
|
|
2
|
+
import { t } from "./MSeekBar-BL2W5_rD.js";
|
|
3
|
+
import { t as n } from "./MIconButton-BBggVwBV.js";
|
|
4
|
+
import { t as r } from "./MIcon-DpajuUTJ.js";
|
|
5
|
+
import { t as i } from "./MSlider-B9NcKTmZ.js";
|
|
6
|
+
import { n as a, t as o } from "./MMenuItem-CRNZkVVr.js";
|
|
7
|
+
import { t as s } from "./MLoadingIndicator-vooA3110.js";
|
|
8
8
|
import { Fragment as c, Transition as l, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createTextVNode as h, createVNode as g, defineComponent as _, getCurrentScope as v, guardReactiveProps as y, mergeProps as b, nextTick as ee, normalizeClass as x, normalizeProps as S, normalizeStyle as te, onBeforeUnmount as ne, onMounted as re, onScopeDispose as C, openBlock as w, ref as T, renderList as E, renderSlot as D, shallowRef as O, toDisplayString as k, toValue as A, unref as j, useSlots as ie, watch as M, withCtx as N, withModifiers as P } from "vue";
|
|
9
|
-
|
|
9
|
+
// src/composables/useMediaPlayer.ts
|
|
10
10
|
var F = typeof window < "u", I = null;
|
|
11
11
|
function ae(e = {}) {
|
|
12
12
|
let t = {}, n = e.seekStep ?? 10, r = O(null), i = O(void 0), a = T(!1), o = T(0), s = T(0), c = T([]), l = T(1), d = T(1), f = T(!1), p = T(!1), m = T(!1), h = O(null), g = T(!1), _ = u(() => s.value === Infinity), y = 0, b = 0, ee = () => {
|
|
@@ -84,24 +84,20 @@ function ae(e = {}) {
|
|
|
84
84
|
}, w = /* @__PURE__ */ new Map();
|
|
85
85
|
M(() => (i.value === void 0 ? A(e.media) : i.value) ?? null, (e, t) => {
|
|
86
86
|
if (t) for (let [e, n] of w) t.removeEventListener(e, n);
|
|
87
|
-
if (w.clear(), r.value = e, !e)
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
87
|
+
if (w.clear(), r.value = e, !e) m.value = !1, p.value = !1;
|
|
88
|
+
else {
|
|
89
|
+
cancelAnimationFrame(y), y = 0, e.playbackRate = l.value, e.volume = d.value, f.value && (e.muted = !0), o.value > 0 && !e.currentTime && (e.currentTime = o.value);
|
|
90
|
+
for (let [t, n] of Object.entries(re)) {
|
|
91
|
+
let r = () => n(e);
|
|
92
|
+
w.set(t, r), e.addEventListener(t, r);
|
|
93
|
+
}
|
|
94
|
+
ne(e);
|
|
95
95
|
}
|
|
96
|
-
ne(e);
|
|
97
96
|
}, { immediate: !0 });
|
|
98
97
|
async function E() {
|
|
99
98
|
let e = r.value;
|
|
100
|
-
if (m.value && j(0), m.value = !1, !e)
|
|
101
|
-
|
|
102
|
-
return;
|
|
103
|
-
}
|
|
104
|
-
try {
|
|
99
|
+
if (m.value && j(0), m.value = !1, !e) a.value = !0, oe(), S();
|
|
100
|
+
else try {
|
|
105
101
|
await e.play();
|
|
106
102
|
} catch (t) {
|
|
107
103
|
t?.name === "NotAllowedError" && (g.value = !0), a.value = !e.paused;
|
|
@@ -128,7 +124,7 @@ function ae(e = {}) {
|
|
|
128
124
|
let P = () => F && "mediaSession" in navigator ? navigator.mediaSession : null;
|
|
129
125
|
function ae() {
|
|
130
126
|
let n = P(), r = A(e.metadata);
|
|
131
|
-
|
|
127
|
+
n && I === t && typeof MediaMetadata < "u" && (n.metadata = r ? new MediaMetadata({
|
|
132
128
|
title: r.title ?? "",
|
|
133
129
|
artist: r.artist ?? "",
|
|
134
130
|
album: r.album ?? "",
|
|
@@ -232,8 +228,7 @@ function ae(e = {}) {
|
|
|
232
228
|
}
|
|
233
229
|
};
|
|
234
230
|
}
|
|
235
|
-
|
|
236
|
-
//#region src/components/MVideoPlayer.vue?vue&type=script&setup=true&lang.ts
|
|
231
|
+
// src/components/MVideoPlayer.vue?vue&type=script&setup=true&lang.ts
|
|
237
232
|
var L = ["aria-label"], R = { class: "absolute inset-0 flex items-center justify-center" }, oe = [
|
|
238
233
|
"poster",
|
|
239
234
|
"loop",
|
|
@@ -453,11 +448,7 @@ var L = ["aria-label"], R = { class: "absolute inset-0 flex items-center justify
|
|
|
453
448
|
return;
|
|
454
449
|
}
|
|
455
450
|
let t = e.currentTarget.getBoundingClientRect(), n = (e.clientX - t.left) / (t.width || 1), r = performance.now();
|
|
456
|
-
|
|
457
|
-
clearTimeout(Ge), We = r, J(n < .5 ? -C.seekStep : C.seekStep, !0);
|
|
458
|
-
return;
|
|
459
|
-
}
|
|
460
|
-
We = r, clearTimeout(Ge), Ge = setTimeout(() => U.value ? U.value = !1 : G(), 260);
|
|
451
|
+
(n < .35 || n > .65) && (r - We < 300 || q.side && r - q.at < 1e3 && q.side === (n < .5 ? "left" : "right")) ? (clearTimeout(Ge), We = r, J(n < .5 ? -C.seekStep : C.seekStep, !0)) : (We = r, clearTimeout(Ge), Ge = setTimeout(() => U.value ? U.value = !1 : G(), 260));
|
|
461
452
|
}
|
|
462
453
|
let Y = T(!1);
|
|
463
454
|
async function Qe() {
|
|
@@ -466,11 +457,7 @@ var L = ["aria-label"], R = { class: "absolute inset-0 flex items-center justify
|
|
|
466
457
|
return;
|
|
467
458
|
}
|
|
468
459
|
let e = document.documentElement;
|
|
469
|
-
|
|
470
|
-
z.value.webkitEnterFullscreen();
|
|
471
|
-
return;
|
|
472
|
-
}
|
|
473
|
-
Y.value = !0, await e.requestFullscreen?.().catch(() => {}), screen.orientation?.lock?.("landscape").catch(() => {});
|
|
460
|
+
!e.requestFullscreen && z.value && "webkitEnterFullscreen" in z.value ? z.value.webkitEnterFullscreen() : (Y.value = !0, await e.requestFullscreen?.().catch(() => {}), screen.orientation?.lock?.("landscape").catch(() => {}));
|
|
474
461
|
}
|
|
475
462
|
function $e() {
|
|
476
463
|
!document.fullscreenElement && Y.value && (Y.value = !1);
|
|
@@ -655,13 +642,13 @@ var L = ["aria-label"], R = { class: "absolute inset-0 flex items-center justify
|
|
|
655
642
|
onDblclick: Qe,
|
|
656
643
|
onContextmenu: u[0] ||= P(() => {}, ["prevent"])
|
|
657
644
|
}, null, 32),
|
|
658
|
-
j(B).waiting.value && !j(B).error.value ? (w(), p("div", de, [g(
|
|
645
|
+
j(B).waiting.value && !j(B).error.value ? (w(), p("div", de, [g(s, {
|
|
659
646
|
size: H.value ? 56 : 72,
|
|
660
647
|
contained: "",
|
|
661
648
|
label: j(F).loading
|
|
662
649
|
}, null, 8, ["size", "label"])])) : f("", !0),
|
|
663
650
|
g(l, { name: "m3-video-fade" }, {
|
|
664
|
-
default: N(() => [Je.value ? (w(), p("div", fe, [m("span", pe, [u[14] ||= h(" 2× ", -1), g(
|
|
651
|
+
default: N(() => [Je.value ? (w(), p("div", fe, [m("span", pe, [u[14] ||= h(" 2× ", -1), g(r, {
|
|
665
652
|
name: "fast_forward",
|
|
666
653
|
size: 18,
|
|
667
654
|
filled: ""
|
|
@@ -673,14 +660,14 @@ var L = ["aria-label"], R = { class: "absolute inset-0 flex items-center justify
|
|
|
673
660
|
key: K.value.n,
|
|
674
661
|
class: x(["pointer-events-none absolute inset-y-0 flex items-center justify-center", K.value.side === "left" ? "left-0 w-2/5" : K.value.side === "right" ? "right-0 w-2/5" : "inset-x-0"]),
|
|
675
662
|
"aria-hidden": "true"
|
|
676
|
-
}, [m("div", me, [m("span", he, [g(
|
|
663
|
+
}, [m("div", me, [m("span", he, [g(r, {
|
|
677
664
|
name: K.value.icon,
|
|
678
665
|
size: 34,
|
|
679
666
|
filled: ""
|
|
680
667
|
}, null, 8, ["name"])]), K.value.text ? (w(), p("span", ge, k(K.value.text), 1)) : f("", !0)])], 2)) : f("", !0)]),
|
|
681
668
|
_: 1
|
|
682
669
|
}),
|
|
683
|
-
j(B).error.value ? (w(), p("div", _e, [D(e.$slots, "error", { error: j(B).error.value }, () => [m("p", ve, [g(
|
|
670
|
+
j(B).error.value ? (w(), p("div", _e, [D(e.$slots, "error", { error: j(B).error.value }, () => [m("p", ve, [g(r, {
|
|
684
671
|
name: "error",
|
|
685
672
|
size: 32
|
|
686
673
|
}), h(" " + k(bt.value), 1)])])])) : f("", !0),
|
|
@@ -694,7 +681,7 @@ var L = ["aria-label"], R = { class: "absolute inset-0 flex items-center justify
|
|
|
694
681
|
class: "pointer-events-auto absolute inset-x-0 top-0",
|
|
695
682
|
onPointerenter: u[1] ||= (e) => W.value = !0,
|
|
696
683
|
onPointerleave: u[2] ||= (e) => W.value = !1
|
|
697
|
-
}, [D(e.$slots, "top", S(y(yt.value)), () => [Y.value ? (w(), p("div", xe, [g(
|
|
684
|
+
}, [D(e.$slots, "top", S(y(yt.value)), () => [Y.value ? (w(), p("div", xe, [g(n, {
|
|
698
685
|
icon: "arrow_back",
|
|
699
686
|
label: j(F).mediaExitFullscreen,
|
|
700
687
|
color: "#fff",
|
|
@@ -704,7 +691,7 @@ var L = ["aria-label"], R = { class: "absolute inset-0 flex items-center justify
|
|
|
704
691
|
key: 0,
|
|
705
692
|
class: x(["absolute inset-0 flex items-center justify-center", $.value.gap])
|
|
706
693
|
}, [D(e.$slots, "center", S(y(yt.value)), () => [
|
|
707
|
-
Ot.value ? (w(), d(
|
|
694
|
+
Ot.value ? (w(), d(n, {
|
|
708
695
|
key: 0,
|
|
709
696
|
icon: "skip_previous",
|
|
710
697
|
label: j(F).previous,
|
|
@@ -725,7 +712,7 @@ var L = ["aria-label"], R = { class: "absolute inset-0 flex items-center justify
|
|
|
725
712
|
"tabindex",
|
|
726
713
|
"class"
|
|
727
714
|
])) : f("", !0),
|
|
728
|
-
j(B).live.value ? f("", !0) : (w(), d(
|
|
715
|
+
j(B).live.value ? f("", !0) : (w(), d(n, {
|
|
729
716
|
key: 1,
|
|
730
717
|
icon: Tt("back"),
|
|
731
718
|
label: Ct.value,
|
|
@@ -741,7 +728,7 @@ var L = ["aria-label"], R = { class: "absolute inset-0 flex items-center justify
|
|
|
741
728
|
"size",
|
|
742
729
|
"icon-size"
|
|
743
730
|
])),
|
|
744
|
-
g(
|
|
731
|
+
g(n, {
|
|
745
732
|
icon: xt.value,
|
|
746
733
|
label: St.value,
|
|
747
734
|
size: $.value.play,
|
|
@@ -760,7 +747,7 @@ var L = ["aria-label"], R = { class: "absolute inset-0 flex items-center justify
|
|
|
760
747
|
"icon-size",
|
|
761
748
|
"style"
|
|
762
749
|
]),
|
|
763
|
-
j(B).live.value ? f("", !0) : (w(), d(
|
|
750
|
+
j(B).live.value ? f("", !0) : (w(), d(n, {
|
|
764
751
|
key: 2,
|
|
765
752
|
icon: Tt("forward"),
|
|
766
753
|
label: wt.value,
|
|
@@ -776,7 +763,7 @@ var L = ["aria-label"], R = { class: "absolute inset-0 flex items-center justify
|
|
|
776
763
|
"size",
|
|
777
764
|
"icon-size"
|
|
778
765
|
])),
|
|
779
|
-
Ot.value ? (w(), d(
|
|
766
|
+
Ot.value ? (w(), d(n, {
|
|
780
767
|
key: 3,
|
|
781
768
|
icon: "skip_next",
|
|
782
769
|
label: j(F).next,
|
|
@@ -802,7 +789,7 @@ var L = ["aria-label"], R = { class: "absolute inset-0 flex items-center justify
|
|
|
802
789
|
class: "pointer-events-auto absolute inset-x-0 bottom-0",
|
|
803
790
|
onPointerenter: u[10] ||= (e) => W.value = !0,
|
|
804
791
|
onPointerleave: u[11] ||= (e) => W.value = !1
|
|
805
|
-
}, [D(e.$slots, "bottom", S(y(yt.value)), () => [m("div", { class: x(H.value ? "px-2 pb-1" : "px-4 pb-2") }, [j(B).live.value ? f("", !0) : (w(), d(
|
|
792
|
+
}, [D(e.$slots, "bottom", S(y(yt.value)), () => [m("div", { class: x(H.value ? "px-2 pb-1" : "px-4 pb-2") }, [j(B).live.value ? f("", !0) : (w(), d(t, {
|
|
806
793
|
key: 0,
|
|
807
794
|
modelValue: j(B).currentTime.value,
|
|
808
795
|
"onUpdate:modelValue": u[6] ||= (e) => j(B).currentTime.value = e,
|
|
@@ -829,14 +816,14 @@ var L = ["aria-label"], R = { class: "absolute inset-0 flex items-center justify
|
|
|
829
816
|
])), m("div", Ce, [
|
|
830
817
|
j(B).live.value ? (w(), p("span", we, [u[15] ||= m("span", { class: "size-1.5 rounded-full bg-on-error" }, null, -1), h(k(j(F).mediaLive), 1)])) : (w(), p("p", Te, [h(k(jt.value), 1), Mt.value && !H.value ? (w(), p("span", Ee, " · " + k(Mt.value), 1)) : f("", !0)])),
|
|
831
818
|
u[16] ||= m("span", { class: "flex-1" }, null, -1),
|
|
832
|
-
m("div", De, [H.value ? f("", !0) : (w(), p("div", Oe, [g(
|
|
819
|
+
m("div", De, [H.value ? f("", !0) : (w(), p("div", Oe, [g(i, {
|
|
833
820
|
modelValue: rt.value,
|
|
834
821
|
"onUpdate:modelValue": u[7] ||= (e) => rt.value = e,
|
|
835
822
|
min: 0,
|
|
836
823
|
max: 100,
|
|
837
824
|
size: "xs",
|
|
838
825
|
class: "w-22 px-1"
|
|
839
|
-
}, null, 8, ["modelValue"])])), g(
|
|
826
|
+
}, null, 8, ["modelValue"])])), g(n, {
|
|
840
827
|
icon: nt.value,
|
|
841
828
|
label: j(B).muted.value ? j(F).mediaUnmute : j(F).mediaMute,
|
|
842
829
|
color: "#fff",
|
|
@@ -847,7 +834,7 @@ var L = ["aria-label"], R = { class: "absolute inset-0 flex items-center justify
|
|
|
847
834
|
"label",
|
|
848
835
|
"size"
|
|
849
836
|
])]),
|
|
850
|
-
_.tracks?.length ? (w(), d(
|
|
837
|
+
_.tracks?.length ? (w(), d(n, {
|
|
851
838
|
key: 2,
|
|
852
839
|
icon: X.value >= 0 ? "subtitles" : "subtitles_off",
|
|
853
840
|
label: j(F).mediaSubtitles,
|
|
@@ -861,21 +848,21 @@ var L = ["aria-label"], R = { class: "absolute inset-0 flex items-center justify
|
|
|
861
848
|
"size",
|
|
862
849
|
"icon-filled"
|
|
863
850
|
])) : f("", !0),
|
|
864
|
-
g(
|
|
851
|
+
g(a, {
|
|
865
852
|
ref_key: "menu",
|
|
866
853
|
ref: Ie,
|
|
867
854
|
"submenu-mode": "push",
|
|
868
855
|
align: "right"
|
|
869
856
|
}, {
|
|
870
|
-
trigger: N(() => [g(
|
|
857
|
+
trigger: N(() => [g(n, {
|
|
871
858
|
icon: "settings",
|
|
872
859
|
label: j(F).mediaSettings,
|
|
873
860
|
color: "#fff",
|
|
874
861
|
size: H.value ? "xs" : "sm"
|
|
875
862
|
}, null, 8, ["label", "size"])]),
|
|
876
863
|
default: N(() => [
|
|
877
|
-
g(
|
|
878
|
-
children: N(() => [(w(!0), p(c, null, E(_.speeds, (e) => (w(), d(
|
|
864
|
+
g(o, { icon: "slow_motion_video" }, {
|
|
865
|
+
children: N(() => [(w(!0), p(c, null, E(_.speeds, (e) => (w(), d(o, {
|
|
879
866
|
key: e,
|
|
880
867
|
selected: j(B).rate.value === e,
|
|
881
868
|
onClick: (t) => j(B).rate.value = e
|
|
@@ -886,17 +873,17 @@ var L = ["aria-label"], R = { class: "absolute inset-0 flex items-center justify
|
|
|
886
873
|
default: N(() => [h(k(j(F).mediaSpeed) + " · " + k(gt(j(B).rate.value)) + " ", 1)]),
|
|
887
874
|
_: 1
|
|
888
875
|
}),
|
|
889
|
-
_.tracks?.length ? (w(), d(
|
|
876
|
+
_.tracks?.length ? (w(), d(o, {
|
|
890
877
|
key: 0,
|
|
891
878
|
icon: "subtitles"
|
|
892
879
|
}, {
|
|
893
|
-
children: N(() => [g(
|
|
880
|
+
children: N(() => [g(o, {
|
|
894
881
|
selected: X.value < 0,
|
|
895
882
|
onClick: u[8] ||= (e) => X.value = -1
|
|
896
883
|
}, {
|
|
897
884
|
default: N(() => [h(k(j(F).mediaSubtitlesOff), 1)]),
|
|
898
885
|
_: 1
|
|
899
|
-
}, 8, ["selected"]), (w(!0), p(c, null, E(_.tracks, (e, t) => (w(), d(
|
|
886
|
+
}, 8, ["selected"]), (w(!0), p(c, null, E(_.tracks, (e, t) => (w(), d(o, {
|
|
900
887
|
key: e.src,
|
|
901
888
|
selected: X.value === t,
|
|
902
889
|
onClick: (e) => X.value = t
|
|
@@ -907,17 +894,17 @@ var L = ["aria-label"], R = { class: "absolute inset-0 flex items-center justify
|
|
|
907
894
|
default: N(() => [h(k(j(F).mediaSubtitles) + " · " + k(X.value >= 0 ? _.tracks[X.value]?.label : j(F).mediaSubtitlesOff) + " ", 1)]),
|
|
908
895
|
_: 1
|
|
909
896
|
})) : f("", !0),
|
|
910
|
-
ct.value.length > 1 ? (w(), d(
|
|
897
|
+
ct.value.length > 1 ? (w(), d(o, {
|
|
911
898
|
key: 1,
|
|
912
899
|
icon: "tune"
|
|
913
900
|
}, {
|
|
914
|
-
children: N(() => [g(
|
|
901
|
+
children: N(() => [g(o, {
|
|
915
902
|
selected: Q.value < 0,
|
|
916
903
|
onClick: u[9] ||= (e) => Q.value = -1
|
|
917
904
|
}, {
|
|
918
905
|
default: N(() => [h(k(j(F).mediaQualityAuto), 1)]),
|
|
919
906
|
_: 1
|
|
920
|
-
}, 8, ["selected"]), (w(!0), p(c, null, E(ct.value, (e, t) => (w(), d(
|
|
907
|
+
}, 8, ["selected"]), (w(!0), p(c, null, E(ct.value, (e, t) => (w(), d(o, {
|
|
921
908
|
key: t,
|
|
922
909
|
selected: Q.value === t,
|
|
923
910
|
onClick: (e) => Q.value = t
|
|
@@ -932,7 +919,7 @@ var L = ["aria-label"], R = { class: "absolute inset-0 flex items-center justify
|
|
|
932
919
|
]),
|
|
933
920
|
_: 3
|
|
934
921
|
}, 512),
|
|
935
|
-
et.value && !H.value ? (w(), d(
|
|
922
|
+
et.value && !H.value ? (w(), d(n, {
|
|
936
923
|
key: 3,
|
|
937
924
|
icon: "picture_in_picture_alt",
|
|
938
925
|
label: j(F).mediaPictureInPicture,
|
|
@@ -940,7 +927,7 @@ var L = ["aria-label"], R = { class: "absolute inset-0 flex items-center justify
|
|
|
940
927
|
size: "sm",
|
|
941
928
|
onClick: tt
|
|
942
929
|
}, null, 8, ["label"])) : f("", !0),
|
|
943
|
-
g(
|
|
930
|
+
g(n, {
|
|
944
931
|
icon: Y.value ? "fullscreen_exit" : "fullscreen",
|
|
945
932
|
label: Y.value ? j(F).mediaExitFullscreen : j(F).mediaFullscreen,
|
|
946
933
|
color: "#fff",
|
|
@@ -1030,8 +1017,8 @@ var L = ["aria-label"], R = { class: "absolute inset-0 flex items-center justify
|
|
|
1030
1017
|
"error",
|
|
1031
1018
|
"click"
|
|
1032
1019
|
],
|
|
1033
|
-
setup(
|
|
1034
|
-
let _ =
|
|
1020
|
+
setup(s, { emit: l }) {
|
|
1021
|
+
let _ = s, v = l, y = e(), b = T(), ee = u(() => !!(_.src || _.sources?.length)), x = _.player ?? ae({
|
|
1035
1022
|
media: () => ee.value ? b.value : null,
|
|
1036
1023
|
duration: () => _.duration,
|
|
1037
1024
|
loop: () => _.repeat === "one",
|
|
@@ -1109,21 +1096,21 @@ var L = ["aria-label"], R = { class: "absolute inset-0 flex items-center justify
|
|
|
1109
1096
|
function me(e) {
|
|
1110
1097
|
e.target.closest("button, a, [role=\"slider\"]") || v("click", e);
|
|
1111
1098
|
}
|
|
1112
|
-
return (e, l) =>
|
|
1099
|
+
return (e, l) => s.variant === "mini" ? (w(), p("div", {
|
|
1113
1100
|
key: 0,
|
|
1114
1101
|
role: "region",
|
|
1115
|
-
"aria-label":
|
|
1102
|
+
"aria-label": s.title || j(y).mediaPlayer,
|
|
1116
1103
|
class: "m3-audio-mini cursor-pointer items-center gap-2 rounded-md bg-surface-container-low px-2 py-1 text-on-surface shadow-elevation-2",
|
|
1117
1104
|
onClick: me
|
|
1118
1105
|
}, [
|
|
1119
|
-
D(e.$slots, "artwork", { player: j(x) }, () => [
|
|
1106
|
+
D(e.$slots, "artwork", { player: j(x) }, () => [s.artwork ? (w(), p("img", {
|
|
1120
1107
|
key: 0,
|
|
1121
|
-
src:
|
|
1108
|
+
src: s.artwork,
|
|
1122
1109
|
alt: "",
|
|
1123
1110
|
class: "size-14 shrink-0 rounded-sm object-cover"
|
|
1124
|
-
}, null, 8, B)) : (w(), p("div", V, [g(
|
|
1125
|
-
m("div", Ae, [m("p", je, k(
|
|
1126
|
-
g(
|
|
1111
|
+
}, null, 8, B)) : (w(), p("div", V, [g(r, { name: "music_note" })]))]),
|
|
1112
|
+
m("div", Ae, [m("p", je, k(s.title), 1), s.artist ? (w(), p("p", Me, k(s.artist), 1)) : f("", !0)]),
|
|
1113
|
+
g(n, {
|
|
1127
1114
|
icon: "skip_previous",
|
|
1128
1115
|
label: j(y).previous,
|
|
1129
1116
|
size: 48,
|
|
@@ -1132,7 +1119,7 @@ var L = ["aria-label"], R = { class: "absolute inset-0 flex items-center justify
|
|
|
1132
1119
|
"icon-filled": "",
|
|
1133
1120
|
onClick: A
|
|
1134
1121
|
}, null, 8, ["label", "disabled"]),
|
|
1135
|
-
g(
|
|
1122
|
+
g(n, {
|
|
1136
1123
|
icon: F.value,
|
|
1137
1124
|
label: I.value,
|
|
1138
1125
|
size: 48,
|
|
@@ -1140,7 +1127,7 @@ var L = ["aria-label"], R = { class: "absolute inset-0 flex items-center justify
|
|
|
1140
1127
|
"icon-filled": "",
|
|
1141
1128
|
onClick: l[0] ||= (e) => j(x).toggle()
|
|
1142
1129
|
}, null, 8, ["icon", "label"]),
|
|
1143
|
-
g(
|
|
1130
|
+
g(n, {
|
|
1144
1131
|
icon: "skip_next",
|
|
1145
1132
|
label: j(y).next,
|
|
1146
1133
|
size: 48,
|
|
@@ -1162,7 +1149,7 @@ var L = ["aria-label"], R = { class: "absolute inset-0 flex items-center justify
|
|
|
1162
1149
|
ref_key: "audioEl",
|
|
1163
1150
|
ref: b,
|
|
1164
1151
|
preload: "metadata",
|
|
1165
|
-
loop:
|
|
1152
|
+
loop: s.repeat === "one",
|
|
1166
1153
|
class: "hidden"
|
|
1167
1154
|
}, [(w(!0), p(c, null, E(P.value, (e) => (w(), p("source", {
|
|
1168
1155
|
key: e.src,
|
|
@@ -1172,20 +1159,20 @@ var L = ["aria-label"], R = { class: "absolute inset-0 flex items-center justify
|
|
|
1172
1159
|
], 8, ke)) : (w(), p("div", {
|
|
1173
1160
|
key: 1,
|
|
1174
1161
|
role: "region",
|
|
1175
|
-
"aria-label":
|
|
1162
|
+
"aria-label": s.title || j(y).mediaPlayer,
|
|
1176
1163
|
class: "@container flex flex-col gap-1 text-on-surface"
|
|
1177
1164
|
}, [
|
|
1178
1165
|
m("div", U, [
|
|
1179
|
-
D(e.$slots, "artwork", { player: j(x) }, () => [
|
|
1166
|
+
D(e.$slots, "artwork", { player: j(x) }, () => [s.artwork ? (w(), p("img", {
|
|
1180
1167
|
key: 0,
|
|
1181
|
-
src:
|
|
1168
|
+
src: s.artwork,
|
|
1182
1169
|
alt: "",
|
|
1183
1170
|
class: "size-14 shrink-0 rounded-md object-cover"
|
|
1184
1171
|
}, null, 8, W)) : f("", !0)]),
|
|
1185
|
-
m("div", Ie, [
|
|
1172
|
+
m("div", Ie, [s.title ? (w(), p("p", Le, k(s.title), 1)) : f("", !0), s.artist ? (w(), p("p", Re, k(s.artist), 1)) : f("", !0)]),
|
|
1186
1173
|
D(e.$slots, "actions", { player: j(x) })
|
|
1187
1174
|
]),
|
|
1188
|
-
j(x).live.value ? f("", !0) : (w(), d(
|
|
1175
|
+
j(x).live.value ? f("", !0) : (w(), d(t, {
|
|
1189
1176
|
key: 0,
|
|
1190
1177
|
modelValue: j(x).currentTime.value,
|
|
1191
1178
|
"onUpdate:modelValue": l[1] ||= (e) => j(x).currentTime.value = e,
|
|
@@ -1193,8 +1180,8 @@ var L = ["aria-label"], R = { class: "absolute inset-0 flex items-center justify
|
|
|
1193
1180
|
buffered: j(x).buffered.value,
|
|
1194
1181
|
playing: j(x).playing.value && !j(x).waiting.value,
|
|
1195
1182
|
"playback-rate": j(x).rate.value,
|
|
1196
|
-
variant:
|
|
1197
|
-
color:
|
|
1183
|
+
variant: s.seekBar,
|
|
1184
|
+
color: s.color,
|
|
1198
1185
|
size: "sm"
|
|
1199
1186
|
}, null, 8, [
|
|
1200
1187
|
"modelValue",
|
|
@@ -1206,14 +1193,14 @@ var L = ["aria-label"], R = { class: "absolute inset-0 flex items-center justify
|
|
|
1206
1193
|
"color"
|
|
1207
1194
|
])),
|
|
1208
1195
|
m("div", G, [
|
|
1209
|
-
m("div", ze, [
|
|
1196
|
+
m("div", ze, [s.shuffle === void 0 ? f("", !0) : (w(), d(n, {
|
|
1210
1197
|
key: 0,
|
|
1211
1198
|
icon: "shuffle",
|
|
1212
1199
|
label: j(y).mediaShuffle,
|
|
1213
|
-
checked:
|
|
1200
|
+
checked: s.shuffle,
|
|
1214
1201
|
"onUpdate:checked": l[2] ||= (e) => v("update:shuffle", e)
|
|
1215
1202
|
}, null, 8, ["label", "checked"]))]),
|
|
1216
|
-
g(
|
|
1203
|
+
g(n, {
|
|
1217
1204
|
icon: "skip_previous",
|
|
1218
1205
|
label: j(y).previous,
|
|
1219
1206
|
size: "md",
|
|
@@ -1221,12 +1208,12 @@ var L = ["aria-label"], R = { class: "absolute inset-0 flex items-center justify
|
|
|
1221
1208
|
"icon-filled": "",
|
|
1222
1209
|
onClick: A
|
|
1223
1210
|
}, null, 8, ["label", "disabled"]),
|
|
1224
|
-
g(
|
|
1211
|
+
g(n, {
|
|
1225
1212
|
icon: F.value,
|
|
1226
1213
|
label: I.value,
|
|
1227
1214
|
size: "md",
|
|
1228
1215
|
variant: "filled",
|
|
1229
|
-
color:
|
|
1216
|
+
color: s.color,
|
|
1230
1217
|
"icon-filled": "",
|
|
1231
1218
|
onClick: l[3] ||= (e) => j(x).toggle()
|
|
1232
1219
|
}, null, 8, [
|
|
@@ -1234,7 +1221,7 @@ var L = ["aria-label"], R = { class: "absolute inset-0 flex items-center justify
|
|
|
1234
1221
|
"label",
|
|
1235
1222
|
"color"
|
|
1236
1223
|
]),
|
|
1237
|
-
g(
|
|
1224
|
+
g(n, {
|
|
1238
1225
|
icon: "skip_next",
|
|
1239
1226
|
label: j(y).next,
|
|
1240
1227
|
size: "md",
|
|
@@ -1242,11 +1229,11 @@ var L = ["aria-label"], R = { class: "absolute inset-0 flex items-center justify
|
|
|
1242
1229
|
"icon-filled": "",
|
|
1243
1230
|
onClick: ie
|
|
1244
1231
|
}, null, 8, ["label", "disabled"]),
|
|
1245
|
-
m("div", K, [
|
|
1232
|
+
m("div", K, [s.repeat === void 0 ? f("", !0) : (w(), d(n, {
|
|
1246
1233
|
key: 0,
|
|
1247
1234
|
icon: R.value,
|
|
1248
1235
|
label: oe.value,
|
|
1249
|
-
checked:
|
|
1236
|
+
checked: s.repeat !== "off",
|
|
1250
1237
|
"onUpdate:checked": se
|
|
1251
1238
|
}, null, 8, [
|
|
1252
1239
|
"icon",
|
|
@@ -1255,7 +1242,7 @@ var L = ["aria-label"], R = { class: "absolute inset-0 flex items-center justify
|
|
|
1255
1242
|
]))])
|
|
1256
1243
|
]),
|
|
1257
1244
|
m("div", Be, [
|
|
1258
|
-
|
|
1245
|
+
s.speeds?.length ? (w(), d(a, {
|
|
1259
1246
|
key: 0,
|
|
1260
1247
|
align: "right"
|
|
1261
1248
|
}, {
|
|
@@ -1264,7 +1251,7 @@ var L = ["aria-label"], R = { class: "absolute inset-0 flex items-center justify
|
|
|
1264
1251
|
class: "h-8 cursor-pointer rounded-full px-3 text-label-large text-on-surface-variant hover:bg-on-surface/8",
|
|
1265
1252
|
"aria-label": j(y).mediaSpeed
|
|
1266
1253
|
}, k(de(j(x).rate.value)), 9, Ve)]),
|
|
1267
|
-
default: N(() => [(w(!0), p(c, null, E(
|
|
1254
|
+
default: N(() => [(w(!0), p(c, null, E(s.speeds, (e) => (w(), d(o, {
|
|
1268
1255
|
key: e,
|
|
1269
1256
|
selected: j(x).rate.value === e,
|
|
1270
1257
|
onClick: (t) => j(x).rate.value = e
|
|
@@ -1275,13 +1262,13 @@ var L = ["aria-label"], R = { class: "absolute inset-0 flex items-center justify
|
|
|
1275
1262
|
_: 1
|
|
1276
1263
|
})) : f("", !0),
|
|
1277
1264
|
l[5] ||= m("span", { class: "flex-1" }, null, -1),
|
|
1278
|
-
g(
|
|
1265
|
+
g(n, {
|
|
1279
1266
|
icon: ce.value,
|
|
1280
1267
|
label: j(x).muted.value ? j(y).mediaUnmute : j(y).mediaMute,
|
|
1281
1268
|
size: "xs",
|
|
1282
1269
|
onClick: ue
|
|
1283
1270
|
}, null, 8, ["icon", "label"]),
|
|
1284
|
-
g(
|
|
1271
|
+
g(i, {
|
|
1285
1272
|
modelValue: le.value,
|
|
1286
1273
|
"onUpdate:modelValue": l[4] ||= (e) => le.value = e,
|
|
1287
1274
|
min: 0,
|
|
@@ -1295,7 +1282,7 @@ var L = ["aria-label"], R = { class: "absolute inset-0 flex items-center justify
|
|
|
1295
1282
|
ref_key: "audioEl",
|
|
1296
1283
|
ref: b,
|
|
1297
1284
|
preload: "metadata",
|
|
1298
|
-
loop:
|
|
1285
|
+
loop: s.repeat === "one",
|
|
1299
1286
|
class: "hidden"
|
|
1300
1287
|
}, [(w(!0), p(c, null, E(P.value, (e) => (w(), p("source", {
|
|
1301
1288
|
key: e.src,
|
|
@@ -1305,7 +1292,6 @@ var L = ["aria-label"], R = { class: "absolute inset-0 flex items-center justify
|
|
|
1305
1292
|
], 8, Fe));
|
|
1306
1293
|
}
|
|
1307
1294
|
});
|
|
1308
|
-
//#endregion
|
|
1309
1295
|
export { q as MAudioPlayer, z as MVideoPlayer, ae as useMediaPlayer };
|
|
1310
1296
|
|
|
1311
1297
|
//# sourceMappingURL=media.js.map
|