iking-web-ui-pro 0.2.55 → 0.2.56
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/IKHorizontalStepBar/ik.index.es.js +93 -93
- package/dist/IKHorizontalStepBar/ik.index.umd.js +1 -1
- package/dist/IKPreviewFile/ik.index.es.js +1068 -986
- package/dist/IKPreviewFile/ik.index.umd.js +50 -50
- package/dist/IKSearch/ik.index.es.js +1058 -1058
- package/dist/IKSearch/ik.index.umd.js +2 -2
- package/dist/{IKApprovalProcess → IkApprovalProcess}/ik.index.es.js +852 -852
- package/dist/IkApprovalProcess/ik.index.umd.js +1 -0
- package/dist/{IKApprovalProcess → IkApprovalProcess}/style.css +1 -1
- package/dist/{IKApprovalProcessDetail → IkApprovalProcessDetail}/ik.index.es.js +1396 -1314
- package/dist/IkApprovalProcessDetail/ik.index.umd.js +226 -0
- package/dist/{IKApprovalProcessDetail → IkApprovalProcessDetail}/style.css +1 -1
- package/dist/IkBottomOperate/ik.index.es.js +59 -59
- package/dist/IkBottomOperate/ik.index.umd.js +1 -1
- package/dist/IkBtnSetting/ik.index.es.js +110 -110
- package/dist/IkBtnSetting/ik.index.umd.js +1 -1
- package/dist/{IKCalendar → IkCalendar}/ik.index.es.js +2372 -2355
- package/dist/IkCalendar/ik.index.umd.js +1 -0
- package/dist/{IKCalendar → IkCalendar}/style.css +1 -1
- package/dist/IkDescription/ik.index.es.js +2021 -1939
- package/dist/IkDescription/ik.index.umd.js +49 -49
- package/dist/IkDetailPreviewFiles/ik.index.es.js +1336 -1254
- package/dist/IkDetailPreviewFiles/ik.index.umd.js +50 -50
- package/dist/IkFileIcon/ik.index.es.js +394 -394
- package/dist/IkFileIcon/ik.index.umd.js +1 -1
- package/dist/IkFullCalendar/ik.index.es.js +601 -584
- package/dist/IkFullCalendar/ik.index.umd.js +1 -1
- package/dist/IkImageUploadEditor/ik.index.es.js +12343 -49
- package/dist/IkImageUploadEditor/ik.index.umd.js +37 -1
- package/dist/IkImageUploadEditor/style.css +9 -0
- package/dist/IkMonacoEditor/ik.index.es.js +27 -27
- package/dist/IkMonacoEditor/ik.index.umd.js +3 -3
- package/dist/IkPageFull/ik.index.es.js +1466 -1466
- package/dist/IkPageFull/ik.index.umd.js +3 -3
- package/dist/IkPickerUser/ik.index.es.js +839 -839
- package/dist/IkPickerUser/ik.index.umd.js +1 -1
- package/dist/IkPlayer/ik.index.es.js +1062 -981
- package/dist/IkPlayer/ik.index.umd.js +52 -52
- package/dist/IkPreviewFileDialog/ik.index.es.js +794 -712
- package/dist/IkPreviewFileDialog/ik.index.umd.js +50 -50
- package/dist/IkSchedule/ik.index.es.js +1552 -1535
- package/dist/IkSchedule/ik.index.umd.js +1 -1
- package/dist/IkTemplateOfficeConfig/ik.index.es.js +108 -108
- package/dist/IkTemplateOfficeConfig/ik.index.umd.js +1 -1
- package/dist/IkTinymce/ik.index.es.js +26652 -27107
- package/dist/IkTinymce/ik.index.umd.js +61 -61
- package/dist/IkUploadFile/ik.index.es.js +1323 -1241
- package/dist/IkUploadFile/ik.index.umd.js +50 -50
- package/dist/IkUploadImage/ik.index.es.js +313 -313
- package/dist/IkUploadImage/ik.index.umd.js +1 -1
- package/dist/index.es.js +63473 -51975
- package/dist/index.umd.js +184 -148
- package/dist/src/components/IKExpandCollapse/index.d.ts +5 -5
- package/dist/src/components/IKExpandCollapse/src/IKExpandCollapse.vue.d.ts +5 -5
- package/dist/src/components/IKHorizontalStepBar/index.d.ts +30 -90
- package/dist/src/components/IKHorizontalStepBar/src/IKHorizontalStepBar.vue.d.ts +7 -7
- package/dist/src/components/IKPreviewFile/index.d.ts +13 -105
- package/dist/src/components/IKPreviewFile/src/IkPreviewFile.vue.d.ts +7 -7
- package/dist/src/components/IKSearch/index.d.ts +24 -84
- package/dist/src/components/IKSearch/src/IKSearch.vue.d.ts +10 -10
- package/dist/src/components/IKSearch/src/IkSearchAuto.d.ts +5 -5
- package/dist/src/components/IKSearchHead/index.d.ts +5 -5
- package/dist/src/components/IKSearchHead/src/IKSearchHead.vue.d.ts +5 -5
- package/dist/src/components/IKVerticalStepBar/index.d.ts +5 -5
- package/dist/src/components/IKVerticalStepBar/src/IKVerticalStepBar.vue.d.ts +5 -5
- package/dist/src/components/IkApprovalProcess/index.d.ts +7 -7
- package/dist/src/components/IkApprovalProcess/src/IKApprovalProcess.vue.d.ts +7 -7
- package/dist/src/components/IkApprovalProcessDetail/index.d.ts +5 -5
- package/dist/src/components/IkApprovalProcessDetail/src/IKApprovalProcessDetail.vue.d.ts +5 -5
- package/dist/src/components/IkAutoCard/index.d.ts +6 -12
- package/dist/src/components/IkAutoCard/src/IkAutoCard.vue.d.ts +4 -4
- package/dist/src/components/IkBaseDialog/index.d.ts +6 -35
- package/dist/src/components/IkBaseDialog/src/CloseIcon.vue.d.ts +4 -4
- package/dist/src/components/IkBaseDialog/src/IkBaseDialog.vue.d.ts +4 -4
- package/dist/src/components/IkBottomOperate/index.d.ts +15 -43
- package/dist/src/components/IkBottomOperate/src/IkBottomOperate.vue.d.ts +7 -7
- package/dist/src/components/IkBtnContent/index.d.ts +7 -5
- package/dist/src/components/IkBtnContent/src/index.d.ts +7 -5
- package/dist/src/components/IkBtnSetting/index.d.ts +5 -5
- package/dist/src/components/IkBtnSetting/src/IkBtnSetting.vue.d.ts +5 -5
- package/dist/src/components/IkCalendar/index.d.ts +5 -5
- package/dist/src/components/IkCalendar/src/IKCalendar.vue.d.ts +5 -5
- package/dist/src/components/IkCollapseCard/index.d.ts +6 -12
- package/dist/src/components/IkCollapseCard/src/index.vue.d.ts +4 -4
- package/dist/src/components/IkCurrencyInput/index.d.ts +5 -5
- package/dist/src/components/IkCurrencyInput/src/IkCurrencyInput.vue.d.ts +5 -5
- package/dist/src/components/IkDescription/index.d.ts +6 -39
- package/dist/src/components/IkDescription/src/IkDescription.vue.d.ts +4 -4
- package/dist/src/components/IkDetailPreviewFiles/index.d.ts +4 -4
- package/dist/src/components/IkDetailPreviewFiles/src/IkDetailPreviewFiles.vue.d.ts +4 -4
- package/dist/src/components/IkDragList/index.d.ts +13 -130
- package/dist/src/components/IkDragList/src/IkDragList.vue.d.ts +6 -6
- package/dist/src/components/IkEmpty/index.d.ts +6 -19
- package/dist/src/components/IkEmpty/src/index.vue.d.ts +4 -4
- package/dist/src/components/IkFileIcon/index.d.ts +4 -4
- package/dist/src/components/IkFileIcon/src/IkFileIcon.vue.d.ts +4 -4
- package/dist/src/components/IkFullCalendar/index.d.ts +6 -6
- package/dist/src/components/IkIconPicker/index.d.ts +4 -4
- package/dist/src/components/IkIconPicker/src/index.vue.d.ts +4 -4
- package/dist/src/components/IkImageEditor/index.d.ts +1 -1
- package/dist/src/components/IkImageUploadEditor/index.d.ts +8 -8
- package/dist/src/components/IkImageUploadEditor/src/IkImageUploadEditor.vue.d.ts +8 -8
- package/dist/src/components/IkMonacoEditor/index.d.ts +167 -10
- package/dist/src/components/IkMonacoEditor/src/index.vue.d.ts +167 -10
- package/dist/src/components/IkOnlyOffice/index.d.ts +4 -4
- package/dist/src/components/IkOnlyOffice/src/IkOnlyOffice.vue.d.ts +4 -4
- package/dist/src/components/IkPageFull/index.d.ts +54 -143
- package/dist/src/components/IkPageFull/src/IkDialog.d.ts +369 -5
- package/dist/src/components/IkPageFull/src/IkPage.vue.d.ts +5 -5
- package/dist/src/components/IkPageFull/src/IkPageHead.vue.d.ts +5 -5
- package/dist/src/components/IkPageFull/src/IkPageTable.vue.d.ts +8 -8
- package/dist/src/components/IkPageFull/src/IkSearchAuto.d.ts +6 -6
- package/dist/src/components/IkPageFull/src/index.vue.d.ts +20 -14
- package/dist/src/components/IkPageTabs/index.d.ts +13 -38
- package/dist/src/components/IkPageTabs/src/IkPageTabs.vue.d.ts +6 -6
- package/dist/src/components/IkPickerUser/index.d.ts +10 -10
- package/dist/src/components/IkPickerUser/src/avatar/Avatar.vue.d.ts +4 -4
- package/dist/src/components/IkPickerUser/src/list/GroupList.vue.d.ts +6 -6
- package/dist/src/components/IkPickerUser/src/list/PostList.vue.d.ts +6 -6
- package/dist/src/components/IkPickerUser/src/list/RoleList.vue.d.ts +6 -6
- package/dist/src/components/IkPickerUser/src/picker.vue.d.ts +10 -10
- package/dist/src/components/IkPickerUser/src/svg/close_svg.vue.d.ts +1 -1
- package/dist/src/components/IkPickerUser/src/svg/group_svg.vue.d.ts +1 -1
- package/dist/src/components/IkPickerUser/src/svg/post_svg.vue.d.ts +1 -1
- package/dist/src/components/IkPickerUser/src/svg/role_svg.vue.d.ts +1 -1
- package/dist/src/components/IkPickerUser/src/svg/search_svg.vue.d.ts +1 -1
- package/dist/src/components/IkPickerUser/src/use-picker-data.d.ts +1 -1
- package/dist/src/components/IkPlayer/index.d.ts +10 -26
- package/dist/src/components/IkPlayer/src/Player.vue.d.ts +5 -5
- package/dist/src/components/IkPreviewFileDialog/index.d.ts +4 -4
- package/dist/src/components/IkPreviewFileDialog/src/IkPreviewFileDialog.vue.d.ts +4 -4
- package/dist/src/components/IkPrintConfig/index.d.ts +5 -5
- package/dist/src/components/IkPrintView/index.d.ts +5 -5
- package/dist/src/components/IkRadioGroup/index.d.ts +4 -4
- package/dist/src/components/IkRadioGroup/src/index.vue.d.ts +4 -4
- package/dist/src/components/IkSchedule/index.d.ts +17 -48
- package/dist/src/components/IkSelectTag/index.d.ts +10 -25
- package/dist/src/components/IkSelectTag/src/index.vue.d.ts +5 -5
- package/dist/src/components/IkSideText/IkLinearIcon.vue.d.ts +4 -4
- package/dist/src/components/IkSideText/IkSideText.vue.d.ts +4 -4
- package/dist/src/components/IkSideText/index.d.ts +4 -4
- package/dist/src/components/IkStatu/index.d.ts +5 -5
- package/dist/src/components/IkStatu/src/index.vue.d.ts +5 -5
- package/dist/src/components/IkStatuOver/index.d.ts +5 -5
- package/dist/src/components/IkStatuOver/src/index.vue.d.ts +5 -5
- package/dist/src/components/IkSvgIcon/index.d.ts +12 -12
- package/dist/src/components/IkSvgIcon/src/index.vue.d.ts +4 -4
- package/dist/src/components/IkTemplateOfficeConfig/index.d.ts +6 -6
- package/dist/src/components/IkTinymce/index.d.ts +5 -5
- package/dist/src/components/IkTinymce/src/index.vue.d.ts +5 -5
- package/dist/src/components/IkTooltip/index.d.ts +6 -19
- package/dist/src/components/IkTooltip/src/index.vue.d.ts +4 -4
- package/dist/src/components/IkTree/IkTree.vue.d.ts +807 -127
- package/dist/src/components/IkTree/index.d.ts +2630 -611
- package/dist/src/components/IkUploadFile/index.d.ts +14 -135
- package/dist/src/components/IkUploadFile/src/index.vue.d.ts +7 -7
- package/dist/src/components/IkUploadImage/index.d.ts +10 -79
- package/dist/src/components/IkUploadImage/src/index.vue.d.ts +5 -5
- package/dist/src/components/IkUploadImage/src/loading.vue.d.ts +1 -1
- package/dist/src/components/Provider/ProviderConfig.vue.d.ts +4 -4
- package/dist/src/components/Provider/index.d.ts +6 -27
- package/dist/style.css +9 -1
- package/package.json +1 -1
- package/dist/IKApprovalProcess/ik.index.umd.js +0 -1
- package/dist/IKApprovalProcessDetail/ik.index.umd.js +0 -226
- package/dist/IKCalendar/ik.index.umd.js +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as Q, openBlock as N, createElementBlock as W, createElementVNode as j, inject as nt, computed as J, resolveComponent as pt, normalizeClass as Y, normalizeStyle as _e, createCommentVNode as ae, createBlock as
|
|
2
|
-
import { ikColor as
|
|
3
|
-
import { useLocale as
|
|
1
|
+
import { defineComponent as Q, openBlock as N, createElementBlock as W, createElementVNode as j, inject as nt, computed as J, resolveComponent as pt, normalizeClass as Y, normalizeStyle as _e, createCommentVNode as ae, createBlock as Re, withCtx as Z, createTextVNode as Xt, toDisplayString as qt, createVNode as K, unref as P, mergeModels as vt, useModel as si, ref as Ce, h as tr, mergeProps as ir, createSlots as nr, renderSlot as Je, getCurrentScope as rr, onScopeDispose as sr, watch as at, markRaw as Ii, effectScope as ar, shallowRef as or, nextTick as ai, onMounted as lr, Teleport as vn, Transition as mn, withModifiers as ur, Fragment as Zt, resolveDynamicComponent as cr, renderList as fr, withDirectives as hr, vShow as dr, reactive as gr } from "vue";
|
|
2
|
+
import { ikColor as pr, paramType as Pi, _ as Ot, buildUUID as yn } from "iking-utils-pro";
|
|
3
|
+
import { useLocale as vr, useNamespace as _n, useZIndex as mr, ElIcon as Pe, EVENT_CODE as We } from "element-plus";
|
|
4
4
|
const et = (o, a) => {
|
|
5
5
|
if (o.install = (r) => {
|
|
6
6
|
for (const t of [o, ...Object.values(a ?? {})])
|
|
@@ -9,9 +9,9 @@ const et = (o, a) => {
|
|
|
9
9
|
for (const [r, t] of Object.entries(a))
|
|
10
10
|
o[r] = t;
|
|
11
11
|
return o;
|
|
12
|
-
}, Jt = (o, a) => a ? a.startsWith("http") ? a : `${o || location.origin}${a}` : "",
|
|
12
|
+
}, Jt = (o, a) => a ? a.startsWith("http") ? a : `${o || location.origin}${a}` : "", Ai = (o, a) => {
|
|
13
13
|
var i, n, s, l;
|
|
14
|
-
const r = (i = o == null ? void 0 : o.response) != null && i.data ?
|
|
14
|
+
const r = (i = o == null ? void 0 : o.response) != null && i.data ? Li((s = (n = o == null ? void 0 : o.response) == null ? void 0 : n.data) == null ? void 0 : s.suffix) : ((l = o.raw) == null ? void 0 : l.type) || Li(o[a.suffix]), t = r == null ? void 0 : r.toLowerCase(), e = {
|
|
15
15
|
sheet: "excel",
|
|
16
16
|
excel: "excel",
|
|
17
17
|
zip: "zip",
|
|
@@ -31,7 +31,7 @@ const et = (o, a) => {
|
|
|
31
31
|
if (typeof t == "string" && (t.includes(u) || t === u))
|
|
32
32
|
return e[u];
|
|
33
33
|
return "unknown";
|
|
34
|
-
},
|
|
34
|
+
}, yr = {
|
|
35
35
|
".doc": "word",
|
|
36
36
|
".docx": "word",
|
|
37
37
|
".docxf": "word",
|
|
@@ -116,15 +116,15 @@ const et = (o, a) => {
|
|
|
116
116
|
".vob": "video",
|
|
117
117
|
".txt": "txt",
|
|
118
118
|
".pdf": "pdf"
|
|
119
|
-
},
|
|
119
|
+
}, Li = (o) => {
|
|
120
120
|
const a = o == null ? void 0 : o.toLocaleLowerCase(), r = a != null && a.startsWith(".") ? a : `.${a}`;
|
|
121
|
-
return r &&
|
|
122
|
-
},
|
|
121
|
+
return r && yr[r] || "unknow";
|
|
122
|
+
}, _r = (o) => {
|
|
123
123
|
let a = "", r = ["doc", "docx"], t = ["xls", "xlsx"], e = ["ppt", "pptx"], i = ["pdf"];
|
|
124
124
|
return r.includes(o) && (a = "word"), t.includes(o) && (a = "cell"), e.includes(o) && (a = "slide"), i.includes(o) && (a = "text-pdf"), a;
|
|
125
125
|
};
|
|
126
126
|
/*! Element Plus Icons Vue v2.3.1 */
|
|
127
|
-
var
|
|
127
|
+
var Cr = /* @__PURE__ */ Q({
|
|
128
128
|
name: "ArrowLeft",
|
|
129
129
|
__name: "arrow-left",
|
|
130
130
|
setup(o) {
|
|
@@ -138,7 +138,7 @@ var _r = /* @__PURE__ */ Q({
|
|
|
138
138
|
})
|
|
139
139
|
]));
|
|
140
140
|
}
|
|
141
|
-
}),
|
|
141
|
+
}), kr = Cr, br = /* @__PURE__ */ Q({
|
|
142
142
|
name: "ArrowRight",
|
|
143
143
|
__name: "arrow-right",
|
|
144
144
|
setup(o) {
|
|
@@ -152,7 +152,7 @@ var _r = /* @__PURE__ */ Q({
|
|
|
152
152
|
})
|
|
153
153
|
]));
|
|
154
154
|
}
|
|
155
|
-
}),
|
|
155
|
+
}), wr = br, Tr = /* @__PURE__ */ Q({
|
|
156
156
|
name: "Close",
|
|
157
157
|
__name: "close",
|
|
158
158
|
setup(o) {
|
|
@@ -166,7 +166,7 @@ var _r = /* @__PURE__ */ Q({
|
|
|
166
166
|
})
|
|
167
167
|
]));
|
|
168
168
|
}
|
|
169
|
-
}), Cn =
|
|
169
|
+
}), Cn = Tr, Er = /* @__PURE__ */ Q({
|
|
170
170
|
name: "FullScreen",
|
|
171
171
|
__name: "full-screen",
|
|
172
172
|
setup(o) {
|
|
@@ -180,7 +180,7 @@ var _r = /* @__PURE__ */ Q({
|
|
|
180
180
|
})
|
|
181
181
|
]));
|
|
182
182
|
}
|
|
183
|
-
}),
|
|
183
|
+
}), Sr = Er, xr = /* @__PURE__ */ Q({
|
|
184
184
|
name: "RefreshLeft",
|
|
185
185
|
__name: "refresh-left",
|
|
186
186
|
setup(o) {
|
|
@@ -194,7 +194,7 @@ var _r = /* @__PURE__ */ Q({
|
|
|
194
194
|
})
|
|
195
195
|
]));
|
|
196
196
|
}
|
|
197
|
-
}),
|
|
197
|
+
}), Ir = xr, Pr = /* @__PURE__ */ Q({
|
|
198
198
|
name: "RefreshRight",
|
|
199
199
|
__name: "refresh-right",
|
|
200
200
|
setup(o) {
|
|
@@ -208,7 +208,7 @@ var _r = /* @__PURE__ */ Q({
|
|
|
208
208
|
})
|
|
209
209
|
]));
|
|
210
210
|
}
|
|
211
|
-
}),
|
|
211
|
+
}), Ar = Pr, Lr = /* @__PURE__ */ Q({
|
|
212
212
|
name: "ScaleToOriginal",
|
|
213
213
|
__name: "scale-to-original",
|
|
214
214
|
setup(o) {
|
|
@@ -222,7 +222,7 @@ var _r = /* @__PURE__ */ Q({
|
|
|
222
222
|
})
|
|
223
223
|
]));
|
|
224
224
|
}
|
|
225
|
-
}),
|
|
225
|
+
}), Dr = Lr, Rr = /* @__PURE__ */ Q({
|
|
226
226
|
name: "ZoomIn",
|
|
227
227
|
__name: "zoom-in",
|
|
228
228
|
setup(o) {
|
|
@@ -236,7 +236,7 @@ var _r = /* @__PURE__ */ Q({
|
|
|
236
236
|
})
|
|
237
237
|
]));
|
|
238
238
|
}
|
|
239
|
-
}),
|
|
239
|
+
}), Or = Rr, Mr = /* @__PURE__ */ Q({
|
|
240
240
|
name: "ZoomOut",
|
|
241
241
|
__name: "zoom-out",
|
|
242
242
|
setup(o) {
|
|
@@ -250,7 +250,7 @@ var _r = /* @__PURE__ */ Q({
|
|
|
250
250
|
})
|
|
251
251
|
]));
|
|
252
252
|
}
|
|
253
|
-
}),
|
|
253
|
+
}), Nr = Mr;
|
|
254
254
|
const oi = (o, a) => {
|
|
255
255
|
const r = o.__vccOpts || o;
|
|
256
256
|
for (const [t, e] of a)
|
|
@@ -311,7 +311,7 @@ const oi = (o, a) => {
|
|
|
311
311
|
"mp4",
|
|
312
312
|
"flv",
|
|
313
313
|
"tls"
|
|
314
|
-
],
|
|
314
|
+
], Fr = (o) => {
|
|
315
315
|
const a = nt("loadUrl"), r = J(() => o.loadUrl || o.fileUrl || (a == null ? void 0 : a.value)), t = nt("uploadUrl"), e = J(() => o.action || o.uploadUrl || (t == null ? void 0 : t.value)), i = nt("token"), n = J(() => o.token || (i == null ? void 0 : i.value)), s = nt("onlyofficeConfig"), l = J(() => o.onlyofficeConfig || (s == null ? void 0 : s.value)), u = nt("userInfo"), c = J(() => o.userInfo || (u == null ? void 0 : u.value)), h = [...Di, ...Di.map((d) => d.toLocaleUpperCase())];
|
|
316
316
|
return {
|
|
317
317
|
cLoadUrl: r,
|
|
@@ -321,18 +321,18 @@ const oi = (o, a) => {
|
|
|
321
321
|
cUserInfo: c,
|
|
322
322
|
cOnlyofficePreviewType: h
|
|
323
323
|
};
|
|
324
|
-
},
|
|
324
|
+
}, Br = Fr, Hr = {
|
|
325
325
|
key: 0,
|
|
326
326
|
class: "ik-svg-icon ik-icon-span inline-block inline-flex justify-center box-content line-height-[0]"
|
|
327
|
-
},
|
|
327
|
+
}, Ur = {
|
|
328
328
|
key: 1,
|
|
329
329
|
class: "h-[1em] w-[1em]",
|
|
330
330
|
"aria-hidden": "true"
|
|
331
|
-
},
|
|
331
|
+
}, Vr = ["xlink:href"], zr = ["src"], jr = {
|
|
332
332
|
key: 1,
|
|
333
333
|
class: "h-[1em] w-[1em]",
|
|
334
334
|
"aria-hidden": "true"
|
|
335
|
-
},
|
|
335
|
+
}, Wr = ["xlink:href"], Gr = ["src"], Kr = /* @__PURE__ */ Q({
|
|
336
336
|
name: "IkSvgIcon",
|
|
337
337
|
__name: "index",
|
|
338
338
|
props: {
|
|
@@ -385,14 +385,14 @@ const oi = (o, a) => {
|
|
|
385
385
|
padding: r.value.showBg || r.value.bg ? r.value.padding : 0,
|
|
386
386
|
...r.value.color && t.value !== "iksig" ? {
|
|
387
387
|
"--ik-icon-deep-color": r.value.color,
|
|
388
|
-
"--ik-icon-shallow-color": r.value.colorLight ||
|
|
388
|
+
"--ik-icon-shallow-color": r.value.colorLight || pr.setOpacity(r.value.color, r.value.opacity)
|
|
389
389
|
} : {}
|
|
390
390
|
};
|
|
391
391
|
return r.value.width && (n.width = n.height = typeof r.value.width == "number" ? `${r.value.width}px` : r.value.width), n;
|
|
392
392
|
});
|
|
393
393
|
return (i, n) => {
|
|
394
394
|
const s = pt("el-tooltip"), l = pt("el-button");
|
|
395
|
-
return r.value.tableIconType === "icon" || !r.value.tableIconType ? (N(), W("span",
|
|
395
|
+
return r.value.tableIconType === "icon" || !r.value.tableIconType ? (N(), W("span", Hr, [
|
|
396
396
|
r.value.notip || !r.value.title ? (N(), W(
|
|
397
397
|
"i",
|
|
398
398
|
{
|
|
@@ -424,15 +424,15 @@ const oi = (o, a) => {
|
|
|
424
424
|
null,
|
|
425
425
|
6
|
|
426
426
|
/* CLASS, STYLE */
|
|
427
|
-
)) : t.value === "svg" ? (N(), W("svg",
|
|
427
|
+
)) : t.value === "svg" ? (N(), W("svg", Ur, [
|
|
428
428
|
j("use", {
|
|
429
429
|
"xlink:href": `#${r.value.name}`
|
|
430
|
-
}, null, 8,
|
|
430
|
+
}, null, 8, Vr)
|
|
431
431
|
])) : t.value === "img" ? (N(), W("img", {
|
|
432
432
|
key: 2,
|
|
433
433
|
src: r.value.name,
|
|
434
434
|
class: "h-[1em] w-[1em]"
|
|
435
|
-
}, null, 8,
|
|
435
|
+
}, null, 8, zr)) : (N(), W(
|
|
436
436
|
"i",
|
|
437
437
|
{
|
|
438
438
|
key: 3,
|
|
@@ -446,7 +446,7 @@ const oi = (o, a) => {
|
|
|
446
446
|
],
|
|
447
447
|
6
|
|
448
448
|
/* CLASS, STYLE */
|
|
449
|
-
)) : (N(),
|
|
449
|
+
)) : (N(), Re(s, {
|
|
450
450
|
key: 1,
|
|
451
451
|
content: r.value.title,
|
|
452
452
|
placement: "top"
|
|
@@ -480,15 +480,15 @@ const oi = (o, a) => {
|
|
|
480
480
|
null,
|
|
481
481
|
6
|
|
482
482
|
/* CLASS, STYLE */
|
|
483
|
-
)) : t.value === "svg" ? (N(), W("svg",
|
|
483
|
+
)) : t.value === "svg" ? (N(), W("svg", jr, [
|
|
484
484
|
j("use", {
|
|
485
485
|
"xlink:href": `#${r.value.name}`
|
|
486
|
-
}, null, 8,
|
|
486
|
+
}, null, 8, Wr)
|
|
487
487
|
])) : t.value === "img" ? (N(), W("img", {
|
|
488
488
|
key: 2,
|
|
489
489
|
src: r.value.name,
|
|
490
490
|
class: "h-[1em] w-[1em]"
|
|
491
|
-
}, null, 8,
|
|
491
|
+
}, null, 8, Gr)) : (N(), W(
|
|
492
492
|
"i",
|
|
493
493
|
{
|
|
494
494
|
key: 3,
|
|
@@ -507,7 +507,7 @@ const oi = (o, a) => {
|
|
|
507
507
|
_: 1
|
|
508
508
|
/* STABLE */
|
|
509
509
|
}, 8, ["content"]))
|
|
510
|
-
])) : (N(),
|
|
510
|
+
])) : (N(), Re(l, {
|
|
511
511
|
key: 1,
|
|
512
512
|
type: ["warning", "error"].includes(r.value.type) ? "danger" : ""
|
|
513
513
|
}, {
|
|
@@ -524,7 +524,12 @@ const oi = (o, a) => {
|
|
|
524
524
|
};
|
|
525
525
|
}
|
|
526
526
|
});
|
|
527
|
-
const
|
|
527
|
+
const Yr = /* @__PURE__ */ oi(Kr, [["__scopeId", "data-v-e29a45f8"]]), kn = et(Yr);
|
|
528
|
+
var $r = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
529
|
+
function li(o) {
|
|
530
|
+
return o && o.__esModule && Object.prototype.hasOwnProperty.call(o, "default") ? o.default : o;
|
|
531
|
+
}
|
|
532
|
+
const Xr = /* @__PURE__ */ Q({
|
|
528
533
|
__name: "CloseIcon",
|
|
529
534
|
props: {
|
|
530
535
|
showBg: {
|
|
@@ -555,7 +560,7 @@ const Kr = /* @__PURE__ */ oi(Gr, [["__scopeId", "data-v-e29a45f8"]]), kn = et(K
|
|
|
555
560
|
));
|
|
556
561
|
}
|
|
557
562
|
});
|
|
558
|
-
const
|
|
563
|
+
const qr = /* @__PURE__ */ oi(Xr, [["__scopeId", "data-v-ddb34200"]]), Zr = { class: "base-header" }, Jr = /* @__PURE__ */ Q({
|
|
559
564
|
__name: "IkBaseDialog",
|
|
560
565
|
props: /* @__PURE__ */ vt({
|
|
561
566
|
title: { default: "" },
|
|
@@ -580,7 +585,7 @@ const $r = /* @__PURE__ */ oi(Yr, [["__scopeId", "data-v-ddb34200"]]), Xr = { cl
|
|
|
580
585
|
t.value = !t.value;
|
|
581
586
|
}, i = Q({
|
|
582
587
|
setup() {
|
|
583
|
-
return () =>
|
|
588
|
+
return () => tr(qr, {
|
|
584
589
|
showBg: a.showCloseBg,
|
|
585
590
|
fullscreen: a.fullscreen
|
|
586
591
|
});
|
|
@@ -588,7 +593,7 @@ const $r = /* @__PURE__ */ oi(Yr, [["__scopeId", "data-v-ddb34200"]]), Xr = { cl
|
|
|
588
593
|
});
|
|
589
594
|
return (n, s) => {
|
|
590
595
|
const l = pt("el-dialog");
|
|
591
|
-
return N(),
|
|
596
|
+
return N(), Re(l, ir({
|
|
592
597
|
modelValue: r.value,
|
|
593
598
|
"onUpdate:modelValue": s[0] || (s[0] = (u) => r.value = u),
|
|
594
599
|
"align-center": ""
|
|
@@ -597,7 +602,7 @@ const $r = /* @__PURE__ */ oi(Yr, [["__scopeId", "data-v-ddb34200"]]), Xr = { cl
|
|
|
597
602
|
class: `ik-base-dialog ${n.noHeader ? "no-header" : ""} ${n.noFooter ? "no-footer" : ""}`,
|
|
598
603
|
fullscreen: t.value,
|
|
599
604
|
"modal-class": "baseDialog"
|
|
600
|
-
}),
|
|
605
|
+
}), nr({
|
|
601
606
|
icon: Z(() => [
|
|
602
607
|
Je(n.$slots, "title", {}, () => [
|
|
603
608
|
Xt(
|
|
@@ -608,7 +613,7 @@ const $r = /* @__PURE__ */ oi(Yr, [["__scopeId", "data-v-ddb34200"]]), Xr = { cl
|
|
|
608
613
|
])
|
|
609
614
|
]),
|
|
610
615
|
header: Z(() => [
|
|
611
|
-
j("div",
|
|
616
|
+
j("div", Zr, [
|
|
612
617
|
Je(n.$slots, "header", {}, () => [
|
|
613
618
|
Xt(
|
|
614
619
|
qt(n.title),
|
|
@@ -617,7 +622,7 @@ const $r = /* @__PURE__ */ oi(Yr, [["__scopeId", "data-v-ddb34200"]]), Xr = { cl
|
|
|
617
622
|
)
|
|
618
623
|
])
|
|
619
624
|
]),
|
|
620
|
-
n.$attrs.showClose ? (N(),
|
|
625
|
+
n.$attrs.showClose ? (N(), Re(P(kn), {
|
|
621
626
|
key: 0,
|
|
622
627
|
onClick: e,
|
|
623
628
|
name: t.value ? "iksvg_tuichuquanping" : "iksvg_quanping-daohang",
|
|
@@ -642,12 +647,8 @@ const $r = /* @__PURE__ */ oi(Yr, [["__scopeId", "data-v-ddb34200"]]), Xr = { cl
|
|
|
642
647
|
};
|
|
643
648
|
}
|
|
644
649
|
});
|
|
645
|
-
const
|
|
646
|
-
|
|
647
|
-
function li(o) {
|
|
648
|
-
return o && o.__esModule && Object.prototype.hasOwnProperty.call(o, "default") ? o.default : o;
|
|
649
|
-
}
|
|
650
|
-
function Qr(o, a, r, t) {
|
|
650
|
+
const Qr = et(Jr);
|
|
651
|
+
function es(o, a, r, t) {
|
|
651
652
|
function e(i) {
|
|
652
653
|
return i instanceof r ? i : new r(function(n) {
|
|
653
654
|
n(i);
|
|
@@ -674,7 +675,7 @@ function Qr(o, a, r, t) {
|
|
|
674
675
|
u((t = t.apply(o, a || [])).next());
|
|
675
676
|
});
|
|
676
677
|
}
|
|
677
|
-
function
|
|
678
|
+
function ts(o, a) {
|
|
678
679
|
var r = { label: 0, sent: function() {
|
|
679
680
|
if (i[0] & 1)
|
|
680
681
|
throw i[1];
|
|
@@ -739,9 +740,9 @@ function es(o, a) {
|
|
|
739
740
|
return { value: u[0] ? u[1] : void 0, done: !0 };
|
|
740
741
|
}
|
|
741
742
|
}
|
|
742
|
-
var
|
|
743
|
-
return
|
|
744
|
-
return
|
|
743
|
+
var is = function(o, a) {
|
|
744
|
+
return es(void 0, void 0, void 0, function() {
|
|
745
|
+
return ts(this, function(r) {
|
|
745
746
|
return [2, new Promise(function(t, e) {
|
|
746
747
|
try {
|
|
747
748
|
if (window.DocsAPI)
|
|
@@ -829,7 +830,7 @@ var ts = function(o, a) {
|
|
|
829
830
|
var o = this, a = this.documentServerUrl;
|
|
830
831
|
a.endsWith("/") || (a += "/");
|
|
831
832
|
var r = "".concat(a, "web-apps/apps/api/documents/api.js");
|
|
832
|
-
|
|
833
|
+
is(r, "onlyoffice-api-script").then(function() {
|
|
833
834
|
return o.onLoad();
|
|
834
835
|
}).catch(function() {
|
|
835
836
|
o.onError(-2);
|
|
@@ -943,13 +944,13 @@ var ts = function(o, a) {
|
|
|
943
944
|
}
|
|
944
945
|
}
|
|
945
946
|
});
|
|
946
|
-
const
|
|
947
|
-
function
|
|
948
|
-
return N(), W("div", { id: o.id }, null, 8,
|
|
947
|
+
const ns = ["id"];
|
|
948
|
+
function rs(o, a, r, t, e, i) {
|
|
949
|
+
return N(), W("div", { id: o.id }, null, 8, ns);
|
|
949
950
|
}
|
|
950
|
-
ui.render =
|
|
951
|
+
ui.render = rs;
|
|
951
952
|
ui.__file = "src/components/DocumentEditor.vue";
|
|
952
|
-
const
|
|
953
|
+
const ss = /* @__PURE__ */ Q({
|
|
953
954
|
__name: "IkOnlyOffice",
|
|
954
955
|
props: {
|
|
955
956
|
// 文件服务器的服务的地址
|
|
@@ -996,39 +997,39 @@ const rs = /* @__PURE__ */ Q({
|
|
|
996
997
|
/* STYLE */
|
|
997
998
|
));
|
|
998
999
|
}
|
|
999
|
-
}),
|
|
1000
|
+
}), as = et(ss);
|
|
1000
1001
|
var Oi;
|
|
1001
|
-
const bn = typeof window < "u",
|
|
1002
|
+
const bn = typeof window < "u", os = (o) => typeof o == "string", ls = () => {
|
|
1002
1003
|
};
|
|
1003
1004
|
bn && ((Oi = window == null ? void 0 : window.navigator) != null && Oi.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
1004
1005
|
function wn(o) {
|
|
1005
1006
|
return typeof o == "function" ? o() : P(o);
|
|
1006
1007
|
}
|
|
1007
|
-
function ls(o) {
|
|
1008
|
-
return o;
|
|
1009
|
-
}
|
|
1010
1008
|
function us(o) {
|
|
1011
|
-
return
|
|
1009
|
+
return o;
|
|
1012
1010
|
}
|
|
1013
1011
|
function cs(o) {
|
|
1012
|
+
return rr() ? (sr(o), !0) : !1;
|
|
1013
|
+
}
|
|
1014
|
+
function fs(o) {
|
|
1014
1015
|
var a;
|
|
1015
1016
|
const r = wn(o);
|
|
1016
1017
|
return (a = r == null ? void 0 : r.$el) != null ? a : r;
|
|
1017
1018
|
}
|
|
1018
|
-
const
|
|
1019
|
+
const hs = bn ? window : void 0;
|
|
1019
1020
|
function ct(...o) {
|
|
1020
1021
|
let a, r, t, e;
|
|
1021
|
-
if (
|
|
1022
|
-
return
|
|
1022
|
+
if (os(o[0]) || Array.isArray(o[0]) ? ([r, t, e] = o, a = hs) : [a, r, t, e] = o, !a)
|
|
1023
|
+
return ls;
|
|
1023
1024
|
Array.isArray(r) || (r = [r]), Array.isArray(t) || (t = [t]);
|
|
1024
1025
|
const i = [], n = () => {
|
|
1025
1026
|
i.forEach((c) => c()), i.length = 0;
|
|
1026
|
-
}, s = (c, h, d, g) => (c.addEventListener(h, d, g), () => c.removeEventListener(h, d, g)), l = at(() => [
|
|
1027
|
+
}, s = (c, h, d, g) => (c.addEventListener(h, d, g), () => c.removeEventListener(h, d, g)), l = at(() => [fs(a), wn(e)], ([c, h]) => {
|
|
1027
1028
|
n(), c && i.push(...r.flatMap((d) => t.map((g) => s(c, d, g, h))));
|
|
1028
1029
|
}, { immediate: !0, flush: "post" }), u = () => {
|
|
1029
1030
|
l(), n();
|
|
1030
1031
|
};
|
|
1031
|
-
return
|
|
1032
|
+
return cs(u), u;
|
|
1032
1033
|
}
|
|
1033
1034
|
const Mi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Ni = "__vueuse_ssr_handlers__";
|
|
1034
1035
|
Mi[Ni] = Mi[Ni] || {};
|
|
@@ -1036,15 +1037,15 @@ var Fi;
|
|
|
1036
1037
|
(function(o) {
|
|
1037
1038
|
o.UP = "UP", o.RIGHT = "RIGHT", o.DOWN = "DOWN", o.LEFT = "LEFT", o.NONE = "NONE";
|
|
1038
1039
|
})(Fi || (Fi = {}));
|
|
1039
|
-
var
|
|
1040
|
+
var ds = Object.defineProperty, Bi = Object.getOwnPropertySymbols, gs = Object.prototype.hasOwnProperty, ps = Object.prototype.propertyIsEnumerable, Hi = (o, a, r) => a in o ? ds(o, a, { enumerable: !0, configurable: !0, writable: !0, value: r }) : o[a] = r, vs = (o, a) => {
|
|
1040
1041
|
for (var r in a || (a = {}))
|
|
1041
|
-
|
|
1042
|
+
gs.call(a, r) && Hi(o, r, a[r]);
|
|
1042
1043
|
if (Bi)
|
|
1043
1044
|
for (var r of Bi(a))
|
|
1044
|
-
|
|
1045
|
+
ps.call(a, r) && Hi(o, r, a[r]);
|
|
1045
1046
|
return o;
|
|
1046
1047
|
};
|
|
1047
|
-
const
|
|
1048
|
+
const ms = {
|
|
1048
1049
|
easeInSine: [0.12, 0, 0.39, 0],
|
|
1049
1050
|
easeOutSine: [0.61, 1, 0.88, 1],
|
|
1050
1051
|
easeInOutSine: [0.37, 0, 0.63, 1],
|
|
@@ -1070,10 +1071,10 @@ const vs = {
|
|
|
1070
1071
|
easeOutBack: [0.34, 1.56, 0.64, 1],
|
|
1071
1072
|
easeInOutBack: [0.68, -0.6, 0.32, 1.6]
|
|
1072
1073
|
};
|
|
1073
|
-
|
|
1074
|
-
linear:
|
|
1075
|
-
},
|
|
1076
|
-
const
|
|
1074
|
+
vs({
|
|
1075
|
+
linear: us
|
|
1076
|
+
}, ms);
|
|
1077
|
+
const ys = {
|
|
1077
1078
|
/**
|
|
1078
1079
|
* @description preview link list.
|
|
1079
1080
|
*/
|
|
@@ -1143,26 +1144,26 @@ const ms = {
|
|
|
1143
1144
|
crossorigin: {
|
|
1144
1145
|
type: ["anonymous", "use-credentials", ""]
|
|
1145
1146
|
}
|
|
1146
|
-
},
|
|
1147
|
+
}, _s = {
|
|
1147
1148
|
close: () => !0,
|
|
1148
1149
|
switch: (o) => Pi.isNumber(o),
|
|
1149
1150
|
rotate: (o) => Pi.isNumber(o)
|
|
1150
|
-
},
|
|
1151
|
+
}, Cs = ["src", "crossorigin"], ks = /* @__PURE__ */ Q({
|
|
1151
1152
|
name: "ElImageViewer",
|
|
1152
1153
|
__name: "IkImageViewer",
|
|
1153
|
-
props:
|
|
1154
|
-
emits:
|
|
1154
|
+
props: ys,
|
|
1155
|
+
emits: _s,
|
|
1155
1156
|
setup(o, { expose: a, emit: r }) {
|
|
1156
1157
|
const t = (D) => Object.keys(D), e = {
|
|
1157
1158
|
CONTAIN: {
|
|
1158
1159
|
name: "contain",
|
|
1159
|
-
icon: Ii(
|
|
1160
|
+
icon: Ii(Sr)
|
|
1160
1161
|
},
|
|
1161
1162
|
ORIGINAL: {
|
|
1162
1163
|
name: "original",
|
|
1163
|
-
icon: Ii(
|
|
1164
|
+
icon: Ii(Dr)
|
|
1164
1165
|
}
|
|
1165
|
-
}, i = o, n = r, { t: s } =
|
|
1166
|
+
}, i = o, n = r, { t: s } = vr(), l = _n("image-viewer"), { nextZIndex: u } = mr(), c = Ce(), h = Ce([]), d = ar(), g = Ce(!0), p = Ce(i.initialIndex), m = or(e.CONTAIN), y = Ce({
|
|
1166
1167
|
scale: 1,
|
|
1167
1168
|
deg: 0,
|
|
1168
1169
|
offsetX: 0,
|
|
@@ -1175,20 +1176,20 @@ const ms = {
|
|
|
1175
1176
|
l.e("btn"),
|
|
1176
1177
|
l.e("prev"),
|
|
1177
1178
|
l.is("disabled", !i.infinite && b.value)
|
|
1178
|
-
]),
|
|
1179
|
+
]), L = J(() => [
|
|
1179
1180
|
l.e("btn"),
|
|
1180
1181
|
l.e("next"),
|
|
1181
1182
|
l.is("disabled", !i.infinite && B.value)
|
|
1182
1183
|
]), ee = J(() => {
|
|
1183
|
-
const { scale: D, deg: V, offsetX: $, offsetY: he, enableTransition: pe } =
|
|
1184
|
-
let ve = $ / D,
|
|
1184
|
+
const { scale: D, deg: V, offsetX: $, offsetY: he, enableTransition: pe } = y.value;
|
|
1185
|
+
let ve = $ / D, Ie = he / D;
|
|
1185
1186
|
const it = V * Math.PI / 180, Si = Math.cos(it), xi = Math.sin(it);
|
|
1186
|
-
ve = ve * Si +
|
|
1187
|
+
ve = ve * Si + Ie * xi, Ie = Ie * Si - $ / D * xi;
|
|
1187
1188
|
const Rt = {
|
|
1188
|
-
transform: `scale(${D}) rotate(${V}deg) translate(${ve}px, ${
|
|
1189
|
+
transform: `scale(${D}) rotate(${V}deg) translate(${ve}px, ${Ie}px)`,
|
|
1189
1190
|
transition: pe ? "transform .3s" : ""
|
|
1190
1191
|
};
|
|
1191
|
-
return
|
|
1192
|
+
return m.value.name === e.CONTAIN.name && (Rt.maxWidth = Rt.maxHeight = "100%"), Rt;
|
|
1192
1193
|
});
|
|
1193
1194
|
function q() {
|
|
1194
1195
|
ie(), n("close");
|
|
@@ -1235,23 +1236,23 @@ const ms = {
|
|
|
1235
1236
|
function le(D) {
|
|
1236
1237
|
g.value = !1, D.target.alt = s("el.image.error");
|
|
1237
1238
|
}
|
|
1238
|
-
function
|
|
1239
|
+
function be(D) {
|
|
1239
1240
|
if (g.value || D.button !== 0 || !c.value)
|
|
1240
1241
|
return;
|
|
1241
|
-
|
|
1242
|
-
const { offsetX: V, offsetY: $ } =
|
|
1243
|
-
|
|
1244
|
-
...
|
|
1242
|
+
y.value.enableTransition = !1;
|
|
1243
|
+
const { offsetX: V, offsetY: $ } = y.value, he = D.pageX, pe = D.pageY, ve = Ot.throttle((it) => {
|
|
1244
|
+
y.value = {
|
|
1245
|
+
...y.value,
|
|
1245
1246
|
offsetX: V + it.pageX - he,
|
|
1246
1247
|
offsetY: $ + it.pageY - pe
|
|
1247
1248
|
};
|
|
1248
|
-
}),
|
|
1249
|
+
}), Ie = ct(document, "mousemove", ve);
|
|
1249
1250
|
ct(document, "mouseup", () => {
|
|
1250
|
-
|
|
1251
|
+
Ie();
|
|
1251
1252
|
}), D.preventDefault();
|
|
1252
1253
|
}
|
|
1253
1254
|
function bi() {
|
|
1254
|
-
|
|
1255
|
+
y.value = {
|
|
1255
1256
|
scale: 1,
|
|
1256
1257
|
deg: 0,
|
|
1257
1258
|
offsetX: 0,
|
|
@@ -1262,8 +1263,8 @@ const ms = {
|
|
|
1262
1263
|
function wi() {
|
|
1263
1264
|
if (g.value)
|
|
1264
1265
|
return;
|
|
1265
|
-
const D = t(e), V = Object.values(e), $ =
|
|
1266
|
-
|
|
1266
|
+
const D = t(e), V = Object.values(e), $ = m.value.name, pe = ((V == null ? void 0 : V.findIndex((ve) => ve.name === $)) + 1) % D.length;
|
|
1267
|
+
m.value = e[D[pe]], bi();
|
|
1267
1268
|
}
|
|
1268
1269
|
function Dt(D) {
|
|
1269
1270
|
const V = i.urlList.length;
|
|
@@ -1278,7 +1279,7 @@ const ms = {
|
|
|
1278
1279
|
function Fe(D, V = {}) {
|
|
1279
1280
|
if (g.value)
|
|
1280
1281
|
return;
|
|
1281
|
-
const { minScale: $, maxScale: he } = i, { zoomRate: pe, rotateDeg: ve, enableTransition:
|
|
1282
|
+
const { minScale: $, maxScale: he } = i, { zoomRate: pe, rotateDeg: ve, enableTransition: Ie } = {
|
|
1282
1283
|
zoomRate: i.zoomRate,
|
|
1283
1284
|
rotateDeg: 90,
|
|
1284
1285
|
enableTransition: !0,
|
|
@@ -1286,23 +1287,23 @@ const ms = {
|
|
|
1286
1287
|
};
|
|
1287
1288
|
switch (D) {
|
|
1288
1289
|
case "zoomOut":
|
|
1289
|
-
|
|
1290
|
-
(
|
|
1290
|
+
y.value.scale > $ && (y.value.scale = Number.parseFloat(
|
|
1291
|
+
(y.value.scale / pe).toFixed(3)
|
|
1291
1292
|
));
|
|
1292
1293
|
break;
|
|
1293
1294
|
case "zoomIn":
|
|
1294
|
-
|
|
1295
|
-
(
|
|
1295
|
+
y.value.scale < he && (y.value.scale = Number.parseFloat(
|
|
1296
|
+
(y.value.scale * pe).toFixed(3)
|
|
1296
1297
|
));
|
|
1297
1298
|
break;
|
|
1298
1299
|
case "clockwise":
|
|
1299
|
-
|
|
1300
|
+
y.value.deg += ve, n("rotate", y.value.deg);
|
|
1300
1301
|
break;
|
|
1301
1302
|
case "anticlockwise":
|
|
1302
|
-
|
|
1303
|
+
y.value.deg -= ve, n("rotate", y.value.deg);
|
|
1303
1304
|
break;
|
|
1304
1305
|
}
|
|
1305
|
-
|
|
1306
|
+
y.value.enableTransition = Ie;
|
|
1306
1307
|
}
|
|
1307
1308
|
return at(O, () => {
|
|
1308
1309
|
ai(() => {
|
|
@@ -1311,7 +1312,7 @@ const ms = {
|
|
|
1311
1312
|
});
|
|
1312
1313
|
}), at(p, (D) => {
|
|
1313
1314
|
bi(), n("switch", D);
|
|
1314
|
-
}),
|
|
1315
|
+
}), lr(() => {
|
|
1315
1316
|
var D, V;
|
|
1316
1317
|
F(), (V = (D = c.value) == null ? void 0 : D.focus) == null || V.call(D);
|
|
1317
1318
|
}), a({
|
|
@@ -1319,7 +1320,7 @@ const ms = {
|
|
|
1319
1320
|
* @description manually switch image
|
|
1320
1321
|
*/
|
|
1321
1322
|
setActiveItem: Dt
|
|
1322
|
-
}), (D, V) => (N(),
|
|
1323
|
+
}), (D, V) => (N(), Re(vn, { to: "body" }, [
|
|
1323
1324
|
K(mn, {
|
|
1324
1325
|
name: "viewer-fade",
|
|
1325
1326
|
appear: ""
|
|
@@ -1339,7 +1340,7 @@ const ms = {
|
|
|
1339
1340
|
"div",
|
|
1340
1341
|
{
|
|
1341
1342
|
class: Y(P(l).e("mask")),
|
|
1342
|
-
onClick: V[0] || (V[0] =
|
|
1343
|
+
onClick: V[0] || (V[0] = ur(($) => D.hideOnClickModal && q(), ["self"]))
|
|
1343
1344
|
},
|
|
1344
1345
|
null,
|
|
1345
1346
|
2
|
|
@@ -1353,7 +1354,7 @@ const ms = {
|
|
|
1353
1354
|
onClick: q
|
|
1354
1355
|
},
|
|
1355
1356
|
[
|
|
1356
|
-
K(P(
|
|
1357
|
+
K(P(Pe), null, {
|
|
1357
1358
|
default: Z(() => [
|
|
1358
1359
|
K(P(Cn))
|
|
1359
1360
|
]),
|
|
@@ -1376,9 +1377,9 @@ const ms = {
|
|
|
1376
1377
|
onClick: Ti
|
|
1377
1378
|
},
|
|
1378
1379
|
[
|
|
1379
|
-
K(P(
|
|
1380
|
+
K(P(Pe), null, {
|
|
1380
1381
|
default: Z(() => [
|
|
1381
|
-
K(P(
|
|
1382
|
+
K(P(kr))
|
|
1382
1383
|
]),
|
|
1383
1384
|
_: 1
|
|
1384
1385
|
/* STABLE */
|
|
@@ -1390,13 +1391,13 @@ const ms = {
|
|
|
1390
1391
|
j(
|
|
1391
1392
|
"span",
|
|
1392
1393
|
{
|
|
1393
|
-
class: Y(
|
|
1394
|
+
class: Y(L.value),
|
|
1394
1395
|
onClick: Ei
|
|
1395
1396
|
},
|
|
1396
1397
|
[
|
|
1397
|
-
K(P(
|
|
1398
|
+
K(P(Pe), null, {
|
|
1398
1399
|
default: Z(() => [
|
|
1399
|
-
K(P(
|
|
1400
|
+
K(P(wr))
|
|
1400
1401
|
]),
|
|
1401
1402
|
_: 1
|
|
1402
1403
|
/* STABLE */
|
|
@@ -1422,20 +1423,20 @@ const ms = {
|
|
|
1422
1423
|
class: Y(P(l).e("actions__inner"))
|
|
1423
1424
|
},
|
|
1424
1425
|
[
|
|
1425
|
-
K(P(
|
|
1426
|
+
K(P(Pe), {
|
|
1426
1427
|
onClick: V[1] || (V[1] = ($) => Fe("zoomOut"))
|
|
1427
1428
|
}, {
|
|
1428
1429
|
default: Z(() => [
|
|
1429
|
-
K(P(
|
|
1430
|
+
K(P(Nr))
|
|
1430
1431
|
]),
|
|
1431
1432
|
_: 1
|
|
1432
1433
|
/* STABLE */
|
|
1433
1434
|
}),
|
|
1434
|
-
K(P(
|
|
1435
|
+
K(P(Pe), {
|
|
1435
1436
|
onClick: V[2] || (V[2] = ($) => Fe("zoomIn"))
|
|
1436
1437
|
}, {
|
|
1437
1438
|
default: Z(() => [
|
|
1438
|
-
K(P(
|
|
1439
|
+
K(P(Or))
|
|
1439
1440
|
]),
|
|
1440
1441
|
_: 1
|
|
1441
1442
|
/* STABLE */
|
|
@@ -1449,9 +1450,9 @@ const ms = {
|
|
|
1449
1450
|
2
|
|
1450
1451
|
/* CLASS */
|
|
1451
1452
|
),
|
|
1452
|
-
K(P(
|
|
1453
|
+
K(P(Pe), { onClick: wi }, {
|
|
1453
1454
|
default: Z(() => [
|
|
1454
|
-
(N(),
|
|
1455
|
+
(N(), Re(cr(m.value.icon)))
|
|
1455
1456
|
]),
|
|
1456
1457
|
_: 1
|
|
1457
1458
|
/* STABLE */
|
|
@@ -1465,20 +1466,20 @@ const ms = {
|
|
|
1465
1466
|
2
|
|
1466
1467
|
/* CLASS */
|
|
1467
1468
|
),
|
|
1468
|
-
K(P(
|
|
1469
|
+
K(P(Pe), {
|
|
1469
1470
|
onClick: V[3] || (V[3] = ($) => Fe("anticlockwise"))
|
|
1470
1471
|
}, {
|
|
1471
1472
|
default: Z(() => [
|
|
1472
|
-
K(P(
|
|
1473
|
+
K(P(Ir))
|
|
1473
1474
|
]),
|
|
1474
1475
|
_: 1
|
|
1475
1476
|
/* STABLE */
|
|
1476
1477
|
}),
|
|
1477
|
-
K(P(
|
|
1478
|
+
K(P(Pe), {
|
|
1478
1479
|
onClick: V[4] || (V[4] = ($) => Fe("clockwise"))
|
|
1479
1480
|
}, {
|
|
1480
1481
|
default: Z(() => [
|
|
1481
|
-
K(P(
|
|
1482
|
+
K(P(Ar))
|
|
1482
1483
|
]),
|
|
1483
1484
|
_: 1
|
|
1484
1485
|
/* STABLE */
|
|
@@ -1501,7 +1502,7 @@ const ms = {
|
|
|
1501
1502
|
(N(!0), W(
|
|
1502
1503
|
Zt,
|
|
1503
1504
|
null,
|
|
1504
|
-
|
|
1505
|
+
fr(D.urlList, ($, he) => hr((N(), W("img", {
|
|
1505
1506
|
ref_for: !0,
|
|
1506
1507
|
ref: (pe) => h.value[he] = pe,
|
|
1507
1508
|
key: $,
|
|
@@ -1511,9 +1512,9 @@ const ms = {
|
|
|
1511
1512
|
crossorigin: D.crossorigin,
|
|
1512
1513
|
onLoad: oe,
|
|
1513
1514
|
onError: le,
|
|
1514
|
-
onMousedown:
|
|
1515
|
-
}, null, 46,
|
|
1516
|
-
[
|
|
1515
|
+
onMousedown: be
|
|
1516
|
+
}, null, 46, Cs)), [
|
|
1517
|
+
[dr, he === p.value]
|
|
1517
1518
|
])),
|
|
1518
1519
|
128
|
|
1519
1520
|
/* KEYED_FRAGMENT */
|
|
@@ -1533,7 +1534,7 @@ const ms = {
|
|
|
1533
1534
|
})
|
|
1534
1535
|
]));
|
|
1535
1536
|
}
|
|
1536
|
-
}),
|
|
1537
|
+
}), bs = et(ks);
|
|
1537
1538
|
function Ui(o, a) {
|
|
1538
1539
|
var r = Object.keys(o);
|
|
1539
1540
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -1609,7 +1610,7 @@ function Qt(o, a) {
|
|
|
1609
1610
|
return t.__proto__ = e, t;
|
|
1610
1611
|
}, Qt(o, a);
|
|
1611
1612
|
}
|
|
1612
|
-
function
|
|
1613
|
+
function ws() {
|
|
1613
1614
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
|
|
1614
1615
|
return !1;
|
|
1615
1616
|
if (typeof Proxy == "function")
|
|
@@ -1634,7 +1635,7 @@ function ci(o, a) {
|
|
|
1634
1635
|
return v(o);
|
|
1635
1636
|
}
|
|
1636
1637
|
function x(o) {
|
|
1637
|
-
var a =
|
|
1638
|
+
var a = ws();
|
|
1638
1639
|
return function() {
|
|
1639
1640
|
var t = I(o), e;
|
|
1640
1641
|
if (a) {
|
|
@@ -1645,32 +1646,32 @@ function x(o) {
|
|
|
1645
1646
|
return ci(this, e);
|
|
1646
1647
|
};
|
|
1647
1648
|
}
|
|
1648
|
-
function
|
|
1649
|
+
function Ts(o, a) {
|
|
1649
1650
|
for (; !Object.prototype.hasOwnProperty.call(o, a) && (o = I(o), o !== null); )
|
|
1650
1651
|
;
|
|
1651
1652
|
return o;
|
|
1652
1653
|
}
|
|
1653
|
-
function
|
|
1654
|
-
return typeof Reflect < "u" && Reflect.get ?
|
|
1655
|
-
var e =
|
|
1654
|
+
function A() {
|
|
1655
|
+
return typeof Reflect < "u" && Reflect.get ? A = Reflect.get.bind() : A = function(a, r, t) {
|
|
1656
|
+
var e = Ts(a, r);
|
|
1656
1657
|
if (e) {
|
|
1657
1658
|
var i = Object.getOwnPropertyDescriptor(e, r);
|
|
1658
1659
|
return i.get ? i.get.call(arguments.length < 3 ? a : t) : i.value;
|
|
1659
1660
|
}
|
|
1660
|
-
},
|
|
1661
|
+
}, A.apply(this, arguments);
|
|
1661
1662
|
}
|
|
1662
1663
|
function de(o) {
|
|
1663
|
-
return
|
|
1664
|
+
return Es(o) || Ss(o) || xs(o) || Is();
|
|
1664
1665
|
}
|
|
1665
|
-
function
|
|
1666
|
+
function Es(o) {
|
|
1666
1667
|
if (Array.isArray(o))
|
|
1667
1668
|
return ei(o);
|
|
1668
1669
|
}
|
|
1669
|
-
function
|
|
1670
|
+
function Ss(o) {
|
|
1670
1671
|
if (typeof Symbol < "u" && o[Symbol.iterator] != null || o["@@iterator"] != null)
|
|
1671
1672
|
return Array.from(o);
|
|
1672
1673
|
}
|
|
1673
|
-
function
|
|
1674
|
+
function xs(o, a) {
|
|
1674
1675
|
if (o) {
|
|
1675
1676
|
if (typeof o == "string")
|
|
1676
1677
|
return ei(o, a);
|
|
@@ -1687,11 +1688,11 @@ function ei(o, a) {
|
|
|
1687
1688
|
t[r] = o[r];
|
|
1688
1689
|
return t;
|
|
1689
1690
|
}
|
|
1690
|
-
function
|
|
1691
|
+
function Is() {
|
|
1691
1692
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
1692
1693
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1693
1694
|
}
|
|
1694
|
-
function
|
|
1695
|
+
function Ps(o, a) {
|
|
1695
1696
|
if (typeof o != "object" || o === null)
|
|
1696
1697
|
return o;
|
|
1697
1698
|
var r = o[Symbol.toPrimitive];
|
|
@@ -1704,7 +1705,7 @@ function Is(o, a) {
|
|
|
1704
1705
|
return (a === "string" ? String : Number)(o);
|
|
1705
1706
|
}
|
|
1706
1707
|
function Tn(o) {
|
|
1707
|
-
var a =
|
|
1708
|
+
var a = Ps(o, "string");
|
|
1708
1709
|
return typeof a == "symbol" ? a : String(a);
|
|
1709
1710
|
}
|
|
1710
1711
|
var En = { exports: {} };
|
|
@@ -1748,49 +1749,49 @@ var En = { exports: {} };
|
|
|
1748
1749
|
var c = r ? r + u : u, h = this._events[c];
|
|
1749
1750
|
return h ? h.fn ? 1 : h.length : 0;
|
|
1750
1751
|
}, s.prototype.emit = function(u, c, h, d, g, p) {
|
|
1751
|
-
var
|
|
1752
|
-
if (!this._events[
|
|
1752
|
+
var m = r ? r + u : u;
|
|
1753
|
+
if (!this._events[m])
|
|
1753
1754
|
return !1;
|
|
1754
|
-
var
|
|
1755
|
-
if (
|
|
1756
|
-
switch (
|
|
1755
|
+
var y = this._events[m], k = arguments.length, w, b;
|
|
1756
|
+
if (y.fn) {
|
|
1757
|
+
switch (y.once && this.removeListener(u, y.fn, void 0, !0), k) {
|
|
1757
1758
|
case 1:
|
|
1758
|
-
return
|
|
1759
|
+
return y.fn.call(y.context), !0;
|
|
1759
1760
|
case 2:
|
|
1760
|
-
return
|
|
1761
|
+
return y.fn.call(y.context, c), !0;
|
|
1761
1762
|
case 3:
|
|
1762
|
-
return
|
|
1763
|
+
return y.fn.call(y.context, c, h), !0;
|
|
1763
1764
|
case 4:
|
|
1764
|
-
return
|
|
1765
|
+
return y.fn.call(y.context, c, h, d), !0;
|
|
1765
1766
|
case 5:
|
|
1766
|
-
return
|
|
1767
|
+
return y.fn.call(y.context, c, h, d, g), !0;
|
|
1767
1768
|
case 6:
|
|
1768
|
-
return
|
|
1769
|
+
return y.fn.call(y.context, c, h, d, g, p), !0;
|
|
1769
1770
|
}
|
|
1770
1771
|
for (b = 1, w = new Array(k - 1); b < k; b++)
|
|
1771
1772
|
w[b - 1] = arguments[b];
|
|
1772
|
-
|
|
1773
|
+
y.fn.apply(y.context, w);
|
|
1773
1774
|
} else {
|
|
1774
|
-
var B =
|
|
1775
|
+
var B = y.length, O;
|
|
1775
1776
|
for (b = 0; b < B; b++)
|
|
1776
|
-
switch (
|
|
1777
|
+
switch (y[b].once && this.removeListener(u, y[b].fn, void 0, !0), k) {
|
|
1777
1778
|
case 1:
|
|
1778
|
-
|
|
1779
|
+
y[b].fn.call(y[b].context);
|
|
1779
1780
|
break;
|
|
1780
1781
|
case 2:
|
|
1781
|
-
|
|
1782
|
+
y[b].fn.call(y[b].context, c);
|
|
1782
1783
|
break;
|
|
1783
1784
|
case 3:
|
|
1784
|
-
|
|
1785
|
+
y[b].fn.call(y[b].context, c, h);
|
|
1785
1786
|
break;
|
|
1786
1787
|
case 4:
|
|
1787
|
-
|
|
1788
|
+
y[b].fn.call(y[b].context, c, h, d);
|
|
1788
1789
|
break;
|
|
1789
1790
|
default:
|
|
1790
1791
|
if (!w)
|
|
1791
1792
|
for (O = 1, w = new Array(k - 1); O < k; O++)
|
|
1792
1793
|
w[O - 1] = arguments[O];
|
|
1793
|
-
|
|
1794
|
+
y[b].fn.apply(y[b].context, w);
|
|
1794
1795
|
}
|
|
1795
1796
|
}
|
|
1796
1797
|
return !0;
|
|
@@ -1808,9 +1809,9 @@ var En = { exports: {} };
|
|
|
1808
1809
|
if (p.fn)
|
|
1809
1810
|
p.fn === c && (!d || p.once) && (!h || p.context === h) && n(this, g);
|
|
1810
1811
|
else {
|
|
1811
|
-
for (var
|
|
1812
|
-
(p[
|
|
1813
|
-
|
|
1812
|
+
for (var m = 0, y = [], k = p.length; m < k; m++)
|
|
1813
|
+
(p[m].fn !== c || d && !p[m].once || h && p[m].context !== h) && y.push(p[m]);
|
|
1814
|
+
y.length ? this._events[g] = y.length === 1 ? y[0] : y : n(this, g);
|
|
1814
1815
|
}
|
|
1815
1816
|
return this;
|
|
1816
1817
|
}, s.prototype.removeAllListeners = function(u) {
|
|
@@ -1820,13 +1821,13 @@ var En = { exports: {} };
|
|
|
1820
1821
|
})(En);
|
|
1821
1822
|
var Sn = En.exports;
|
|
1822
1823
|
const xn = /* @__PURE__ */ li(Sn);
|
|
1823
|
-
var
|
|
1824
|
+
var As = typeof window < "u" && window.location && window.location.href.indexOf("xgplayerdebugger=1") > -1, Mt = {
|
|
1824
1825
|
info: "color: #525252; background-color: #90ee90;",
|
|
1825
1826
|
error: "color: #525252; background-color: red;",
|
|
1826
1827
|
warn: "color: #525252; background-color: yellow; "
|
|
1827
1828
|
}, Nt = "%c[xgplayer]", M = {
|
|
1828
1829
|
config: {
|
|
1829
|
-
debug:
|
|
1830
|
+
debug: As ? 3 : 0
|
|
1830
1831
|
},
|
|
1831
1832
|
logInfo: function(a) {
|
|
1832
1833
|
for (var r, t = arguments.length, e = new Array(t > 1 ? t - 1 : 0), i = 1; i < t; i++)
|
|
@@ -1850,7 +1851,7 @@ var Ps = typeof window < "u" && window.location && window.location.href.indexOf(
|
|
|
1850
1851
|
function Ls(o) {
|
|
1851
1852
|
o.logInfo = M.logInfo.bind(o), o.logWarn = M.logWarn.bind(o), o.logError = M.logError.bind(o);
|
|
1852
1853
|
}
|
|
1853
|
-
var
|
|
1854
|
+
var Ds = /* @__PURE__ */ function() {
|
|
1854
1855
|
function o(a) {
|
|
1855
1856
|
T(this, o), this.bufferedList = a;
|
|
1856
1857
|
}
|
|
@@ -2096,7 +2097,7 @@ f.setStyleFromCsstext = function(o, a) {
|
|
|
2096
2097
|
o.style[t] = a[t];
|
|
2097
2098
|
});
|
|
2098
2099
|
};
|
|
2099
|
-
function
|
|
2100
|
+
function Rs(o, a) {
|
|
2100
2101
|
for (var r = 0, t = a.length; r < t; r++)
|
|
2101
2102
|
if (o.indexOf(a[r]) > -1)
|
|
2102
2103
|
return !0;
|
|
@@ -2110,7 +2111,7 @@ f.filterStyleFromText = function(o) {
|
|
|
2110
2111
|
return t.map(function(n) {
|
|
2111
2112
|
if (n) {
|
|
2112
2113
|
var s = n.split(":");
|
|
2113
|
-
s.length > 1 && (
|
|
2114
|
+
s.length > 1 && (Rs(s[0], a) ? e[s[0]] = s[1] : i[s[0]] = s[1]);
|
|
2114
2115
|
}
|
|
2115
2116
|
}), o.setAttribute("style", ""), Object.keys(i).map(function(n) {
|
|
2116
2117
|
o.style[n] = i[n];
|
|
@@ -2175,7 +2176,7 @@ f.getBuffered2 = function(o) {
|
|
|
2175
2176
|
}
|
|
2176
2177
|
else
|
|
2177
2178
|
e = r;
|
|
2178
|
-
return new
|
|
2179
|
+
return new Ds(e);
|
|
2179
2180
|
};
|
|
2180
2181
|
f.getEventPos = function(o) {
|
|
2181
2182
|
var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1;
|
|
@@ -2299,7 +2300,7 @@ function In(o) {
|
|
|
2299
2300
|
var a = re(o);
|
|
2300
2301
|
return o !== null && (a === "object" || a === "function");
|
|
2301
2302
|
}
|
|
2302
|
-
function
|
|
2303
|
+
function Os(o, a, r) {
|
|
2303
2304
|
var t, e, i, n, s, l, u = 0, c = !1, h = !1, d = !0, g = !a && a !== 0 && typeof window.requestAnimationFrame == "function";
|
|
2304
2305
|
if (typeof o != "function")
|
|
2305
2306
|
throw new TypeError("Expected a function");
|
|
@@ -2308,16 +2309,16 @@ function Rs(o, a, r) {
|
|
|
2308
2309
|
var ie = t, oe = e;
|
|
2309
2310
|
return t = e = void 0, u = F, n = o.apply(oe, ie), n;
|
|
2310
2311
|
}
|
|
2311
|
-
function
|
|
2312
|
+
function m(F, ie) {
|
|
2312
2313
|
return g ? (window.cancelAnimationFrame(s), window.requestAnimationFrame(F)) : setTimeout(F, ie);
|
|
2313
2314
|
}
|
|
2314
|
-
function
|
|
2315
|
+
function y(F) {
|
|
2315
2316
|
if (g)
|
|
2316
2317
|
return window.cancelAnimationFrame(F);
|
|
2317
2318
|
clearTimeout(F);
|
|
2318
2319
|
}
|
|
2319
2320
|
function k(F) {
|
|
2320
|
-
return u = F, s =
|
|
2321
|
+
return u = F, s = m(B, a), c ? p(F) : n;
|
|
2321
2322
|
}
|
|
2322
2323
|
function w(F) {
|
|
2323
2324
|
var ie = F - l, oe = F - u, le = a - ie;
|
|
@@ -2331,48 +2332,48 @@ function Rs(o, a, r) {
|
|
|
2331
2332
|
var F = Date.now();
|
|
2332
2333
|
if (b(F))
|
|
2333
2334
|
return O(F);
|
|
2334
|
-
s =
|
|
2335
|
+
s = m(B, w(F));
|
|
2335
2336
|
}
|
|
2336
2337
|
function O(F) {
|
|
2337
2338
|
return s = void 0, d && t ? p(F) : (t = e = void 0, n);
|
|
2338
2339
|
}
|
|
2339
2340
|
function z() {
|
|
2340
|
-
s !== void 0 &&
|
|
2341
|
+
s !== void 0 && y(s), u = 0, t = l = e = s = void 0;
|
|
2341
2342
|
}
|
|
2342
|
-
function
|
|
2343
|
+
function L() {
|
|
2343
2344
|
return s === void 0 ? n : O(Date.now());
|
|
2344
2345
|
}
|
|
2345
2346
|
function ee() {
|
|
2346
2347
|
return s !== void 0;
|
|
2347
2348
|
}
|
|
2348
2349
|
function q() {
|
|
2349
|
-
for (var F = Date.now(), ie = b(F), oe = arguments.length, le = new Array(oe),
|
|
2350
|
-
le[
|
|
2350
|
+
for (var F = Date.now(), ie = b(F), oe = arguments.length, le = new Array(oe), be = 0; be < oe; be++)
|
|
2351
|
+
le[be] = arguments[be];
|
|
2351
2352
|
if (t = le, e = this, l = F, ie) {
|
|
2352
2353
|
if (s === void 0)
|
|
2353
2354
|
return k(l);
|
|
2354
2355
|
if (h)
|
|
2355
|
-
return s =
|
|
2356
|
+
return s = m(B, a), p(l);
|
|
2356
2357
|
}
|
|
2357
|
-
return s === void 0 && (s =
|
|
2358
|
+
return s === void 0 && (s = m(B, a)), n;
|
|
2358
2359
|
}
|
|
2359
|
-
return q.cancel = z, q.flush =
|
|
2360
|
+
return q.cancel = z, q.flush = L, q.pending = ee, q;
|
|
2360
2361
|
}
|
|
2361
|
-
function
|
|
2362
|
+
function Ms(o, a, r) {
|
|
2362
2363
|
var t = !0, e = !0;
|
|
2363
2364
|
if (typeof o != "function")
|
|
2364
2365
|
throw new TypeError("Expected a function");
|
|
2365
|
-
return In(r) && (t = "leading" in r ? !!r.leading : t, e = "trailing" in r ? !!r.trailing : e),
|
|
2366
|
+
return In(r) && (t = "leading" in r ? !!r.leading : t, e = "trailing" in r ? !!r.trailing : e), Os(o, a, {
|
|
2366
2367
|
leading: t,
|
|
2367
2368
|
trailing: e,
|
|
2368
2369
|
maxWait: a
|
|
2369
2370
|
});
|
|
2370
2371
|
}
|
|
2371
|
-
function
|
|
2372
|
+
function Ns() {
|
|
2372
2373
|
var o = (document.documentElement.getAttribute("lang") || navigator.language || "zh-cn").toLocaleLowerCase();
|
|
2373
2374
|
return o === "zh-cn" && (o = "zh"), o;
|
|
2374
2375
|
}
|
|
2375
|
-
function
|
|
2376
|
+
function Fs(o, a, r) {
|
|
2376
2377
|
if (o) {
|
|
2377
2378
|
var t = o.getAttribute(r);
|
|
2378
2379
|
return !!(t && t === a && (o.tagName === "VIDEO" || o.tagName === "AUDIO"));
|
|
@@ -2381,7 +2382,7 @@ function Ns(o, a, r) {
|
|
|
2381
2382
|
var zi = {
|
|
2382
2383
|
android: /(Android)\s([\d.]+)/,
|
|
2383
2384
|
ios: /(Version)\/([\d.]+)/
|
|
2384
|
-
},
|
|
2385
|
+
}, Bs = ["avc1.42E01E, mp4a.40.2", "avc1.58A01E, mp4a.40.2", "avc1.4D401E, mp4a.40.2", "avc1.64001E, mp4a.40.2", "avc1.42E01E", "mp4v.20.8", "mp4v.20.8, mp4a.40.2", "mp4v.20.240, mp4a.40.2"], R = {
|
|
2385
2386
|
get device() {
|
|
2386
2387
|
var o = R.os;
|
|
2387
2388
|
return o.isPc ? "pc" : "mobile";
|
|
@@ -2444,7 +2445,7 @@ var zi = {
|
|
|
2444
2445
|
if (this.supportResult)
|
|
2445
2446
|
return this.supportResult;
|
|
2446
2447
|
var r = document.createElement("video");
|
|
2447
|
-
return typeof r.canPlayType == "function" &&
|
|
2448
|
+
return typeof r.canPlayType == "function" && Bs.map(function(t) {
|
|
2448
2449
|
r.canPlayType('video/mp4; codecs="'.concat(t, '"')) === "probably" && (a.isSupport = !0, a.mime += "||".concat(t));
|
|
2449
2450
|
}), this.supportResult = a, r = null, a;
|
|
2450
2451
|
},
|
|
@@ -2483,7 +2484,7 @@ var zi = {
|
|
|
2483
2484
|
return Promise.resolve(r);
|
|
2484
2485
|
}
|
|
2485
2486
|
}
|
|
2486
|
-
}, ti = "3.0.
|
|
2487
|
+
}, ti = "3.0.20", ji = {
|
|
2487
2488
|
1: "media",
|
|
2488
2489
|
2: "media",
|
|
2489
2490
|
3: "media",
|
|
@@ -2531,44 +2532,44 @@ var zi = {
|
|
|
2531
2532
|
p[w] = r.ext[w];
|
|
2532
2533
|
}), p;
|
|
2533
2534
|
} else if (arguments.length > 1) {
|
|
2534
|
-
for (var
|
|
2535
|
+
for (var m = {
|
|
2535
2536
|
playerVersion: ti,
|
|
2536
2537
|
domain: document.domain
|
|
2537
|
-
},
|
|
2538
|
-
y[
|
|
2539
|
-
return
|
|
2538
|
+
}, y = ["errorType", "currentTime", "duration", "networkState", "readyState", "src", "currentSrc", "ended", "errd", "errorCode", "mediaError"], k = 0; k < arguments.length; k++)
|
|
2539
|
+
m[y[k]] = arguments[k];
|
|
2540
|
+
return m.ex = t ? (t[arguments[0]] || {}).msg : "", m;
|
|
2540
2541
|
}
|
|
2541
2542
|
}
|
|
2542
|
-
), fe = "play", fi = "playing", Ve = "ended", tt = "pause", lt = "error", xt = "seeking", Ee = "seeked", ce = "timeupdate", ut = "waiting", Te = "canplay",
|
|
2543
|
+
), fe = "play", fi = "playing", Ve = "ended", tt = "pause", lt = "error", xt = "seeking", Ee = "seeked", ce = "timeupdate", ut = "waiting", Te = "canplay", Hs = "canplaythrough", xe = "durationchange", Pn = "volumechange", Se = "loadeddata", Us = "loadedmetadata", An = "ratechange", Ln = "progress", hi = "loadstart", ze = "emptied", Vs = "stalled", zs = "suspend", js = "abort", Ws = "bufferedChange", di = "focus", Dn = "blur", gi = "ready", Rn = "urlNull", Ue = "autoplay_started", pi = "autoplay_was_prevented", It = "complete", yt = "replay", vi = "destroy", Pt = "urlchange", ii = "download_speed_change", On = "leaveplayer", Mn = "enterplayer", Nn = "loading", we = "fullscreen_change", _t = "cssFullscreen_change", Ct = "mini_state_change", mi = "definition_change", Gs = "before_definition_change", ni = "after_definition_change", Ks = "SEI_PARSED", Ys = "retry", Oe = "video_resize", ri = "pip_change", Fn = "rotate", Bn = "screenShot", kt = "playnext", Hn = "shortcut", Un = "xglog", bt = "user_action", At = "reset", Vn = "source_error", zn = "source_success", $s = "switch_subtitle", jn = ["play", "playing", "ended", "pause", "error", "seeking", "seeked", "timeupdate", "waiting", "canplay", "canplaythrough", "durationchange", "volumechange", "loadeddata", "loadedmetadata", "ratechange", "progress", "loadstart", "emptied", "stalled", "suspend", "abort", "lowdecode"], Wn = {
|
|
2543
2544
|
STATS_INFO: "stats_info",
|
|
2544
2545
|
STATS_DOWNLOAD: "stats_download",
|
|
2545
2546
|
STATS_RESET: "stats_reset"
|
|
2546
2547
|
}, Gn = "fps_stuck";
|
|
2547
|
-
const
|
|
2548
|
+
const Xs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2548
2549
|
__proto__: null,
|
|
2549
|
-
ABORT:
|
|
2550
|
+
ABORT: js,
|
|
2550
2551
|
AFTER_DEFINITION_CHANGE: ni,
|
|
2551
2552
|
AUTOPLAY_PREVENTED: pi,
|
|
2552
2553
|
AUTOPLAY_STARTED: Ue,
|
|
2553
|
-
BEFORE_DEFINITION_CHANGE:
|
|
2554
|
-
BUFFER_CHANGE:
|
|
2554
|
+
BEFORE_DEFINITION_CHANGE: Gs,
|
|
2555
|
+
BUFFER_CHANGE: Ws,
|
|
2555
2556
|
CANPLAY: Te,
|
|
2556
|
-
CANPLAY_THROUGH:
|
|
2557
|
+
CANPLAY_THROUGH: Hs,
|
|
2557
2558
|
COMPLETE: It,
|
|
2558
2559
|
CSS_FULLSCREEN_CHANGE: _t,
|
|
2559
2560
|
DEFINITION_CHANGE: mi,
|
|
2560
2561
|
DESTROY: vi,
|
|
2561
2562
|
DOWNLOAD_SPEED_CHANGE: ii,
|
|
2562
|
-
DURATION_CHANGE:
|
|
2563
|
+
DURATION_CHANGE: xe,
|
|
2563
2564
|
EMPTIED: ze,
|
|
2564
2565
|
ENDED: Ve,
|
|
2565
2566
|
ENTER_PLAYER: Mn,
|
|
2566
2567
|
ERROR: lt,
|
|
2567
2568
|
FPS_STUCK: Gn,
|
|
2568
|
-
FULLSCREEN_CHANGE:
|
|
2569
|
+
FULLSCREEN_CHANGE: we,
|
|
2569
2570
|
LEAVE_PLAYER: On,
|
|
2570
2571
|
LOADED_DATA: Se,
|
|
2571
|
-
LOADED_METADATA:
|
|
2572
|
+
LOADED_METADATA: Us,
|
|
2572
2573
|
LOADING: Nn,
|
|
2573
2574
|
LOAD_START: hi,
|
|
2574
2575
|
MINI_STATE_CHANGE: Ct,
|
|
@@ -2579,30 +2580,30 @@ const $s = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2579
2580
|
PLAYER_FOCUS: di,
|
|
2580
2581
|
PLAYING: fi,
|
|
2581
2582
|
PLAYNEXT: kt,
|
|
2582
|
-
PROGRESS:
|
|
2583
|
-
RATE_CHANGE:
|
|
2583
|
+
PROGRESS: Ln,
|
|
2584
|
+
RATE_CHANGE: An,
|
|
2584
2585
|
READY: gi,
|
|
2585
2586
|
REPLAY: yt,
|
|
2586
|
-
RESET:
|
|
2587
|
-
RETRY:
|
|
2587
|
+
RESET: At,
|
|
2588
|
+
RETRY: Ys,
|
|
2588
2589
|
ROTATE: Fn,
|
|
2589
2590
|
SCREEN_SHOT: Bn,
|
|
2590
2591
|
SEEKED: Ee,
|
|
2591
2592
|
SEEKING: xt,
|
|
2592
|
-
SEI_PARSED:
|
|
2593
|
+
SEI_PARSED: Ks,
|
|
2593
2594
|
SHORTCUT: Hn,
|
|
2594
2595
|
SOURCE_ERROR: Vn,
|
|
2595
2596
|
SOURCE_SUCCESS: zn,
|
|
2596
|
-
STALLED:
|
|
2597
|
+
STALLED: Vs,
|
|
2597
2598
|
STATS_EVENTS: Wn,
|
|
2598
|
-
SUSPEND:
|
|
2599
|
-
SWITCH_SUBTITLE:
|
|
2599
|
+
SUSPEND: zs,
|
|
2600
|
+
SWITCH_SUBTITLE: $s,
|
|
2600
2601
|
TIME_UPDATE: ce,
|
|
2601
2602
|
URL_CHANGE: Pt,
|
|
2602
2603
|
URL_NULL: Rn,
|
|
2603
2604
|
USER_ACTION: bt,
|
|
2604
2605
|
VIDEO_EVENTS: jn,
|
|
2605
|
-
VIDEO_RESIZE:
|
|
2606
|
+
VIDEO_RESIZE: Oe,
|
|
2606
2607
|
VOLUME_CHANGE: Pn,
|
|
2607
2608
|
WAITING: ut,
|
|
2608
2609
|
XGLOG: Un
|
|
@@ -2610,7 +2611,7 @@ const $s = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2610
2611
|
function Ft(o, a) {
|
|
2611
2612
|
!this || !this.emit || (o === "error" ? this.errorHandler(o, a.error) : this.emit(o, a));
|
|
2612
2613
|
}
|
|
2613
|
-
function
|
|
2614
|
+
function qs(o, a) {
|
|
2614
2615
|
return function(r, t) {
|
|
2615
2616
|
var e = {
|
|
2616
2617
|
player: a,
|
|
@@ -2645,7 +2646,7 @@ function Xs(o, a) {
|
|
|
2645
2646
|
Ft.call(a, o, e);
|
|
2646
2647
|
};
|
|
2647
2648
|
}
|
|
2648
|
-
var
|
|
2649
|
+
var Zs = /* @__PURE__ */ function(o) {
|
|
2649
2650
|
S(r, o);
|
|
2650
2651
|
var a = x(r);
|
|
2651
2652
|
function r(t) {
|
|
@@ -2689,7 +2690,7 @@ var qs = /* @__PURE__ */ function(o) {
|
|
|
2689
2690
|
var e = this, i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.media;
|
|
2690
2691
|
this._evHandlers || (this._evHandlers = jn.map(function(n) {
|
|
2691
2692
|
var s = "on".concat(n.charAt(0).toUpperCase()).concat(n.slice(1));
|
|
2692
|
-
return typeof e[s] == "function" && e.on(n, e[s]), _({}, n,
|
|
2693
|
+
return typeof e[s] == "function" && e.on(n, e[s]), _({}, n, qs(n, e));
|
|
2693
2694
|
})), this._evHandlers.forEach(function(n) {
|
|
2694
2695
|
var s = Object.keys(n)[0];
|
|
2695
2696
|
i.addEventListener(s, n[s], !1);
|
|
@@ -3034,36 +3035,36 @@ var qs = /* @__PURE__ */ function(o) {
|
|
|
3034
3035
|
value: function(e, i) {
|
|
3035
3036
|
for (var n, s = arguments.length, l = new Array(s > 2 ? s - 2 : 0), u = 2; u < s; u++)
|
|
3036
3037
|
l[u - 2] = arguments[u];
|
|
3037
|
-
(n =
|
|
3038
|
+
(n = A(I(r.prototype), "emit", this)).call.apply(n, [this, e, i].concat(l));
|
|
3038
3039
|
}
|
|
3039
3040
|
}, {
|
|
3040
3041
|
key: "on",
|
|
3041
3042
|
value: function(e, i) {
|
|
3042
3043
|
for (var n, s = arguments.length, l = new Array(s > 2 ? s - 2 : 0), u = 2; u < s; u++)
|
|
3043
3044
|
l[u - 2] = arguments[u];
|
|
3044
|
-
(n =
|
|
3045
|
+
(n = A(I(r.prototype), "on", this)).call.apply(n, [this, e, i].concat(l));
|
|
3045
3046
|
}
|
|
3046
3047
|
}, {
|
|
3047
3048
|
key: "once",
|
|
3048
3049
|
value: function(e, i) {
|
|
3049
3050
|
for (var n, s = arguments.length, l = new Array(s > 2 ? s - 2 : 0), u = 2; u < s; u++)
|
|
3050
3051
|
l[u - 2] = arguments[u];
|
|
3051
|
-
(n =
|
|
3052
|
+
(n = A(I(r.prototype), "once", this)).call.apply(n, [this, e, i].concat(l));
|
|
3052
3053
|
}
|
|
3053
3054
|
}, {
|
|
3054
3055
|
key: "off",
|
|
3055
3056
|
value: function(e, i) {
|
|
3056
3057
|
for (var n, s = arguments.length, l = new Array(s > 2 ? s - 2 : 0), u = 2; u < s; u++)
|
|
3057
3058
|
l[u - 2] = arguments[u];
|
|
3058
|
-
(n =
|
|
3059
|
+
(n = A(I(r.prototype), "off", this)).call.apply(n, [this, e, i].concat(l));
|
|
3059
3060
|
}
|
|
3060
3061
|
}, {
|
|
3061
3062
|
key: "offAll",
|
|
3062
3063
|
value: function() {
|
|
3063
|
-
|
|
3064
|
+
A(I(r.prototype), "removeAllListeners", this).call(this);
|
|
3064
3065
|
}
|
|
3065
3066
|
}]), r;
|
|
3066
|
-
}(xn),
|
|
3067
|
+
}(xn), Js = /* @__PURE__ */ function() {
|
|
3067
3068
|
function o() {
|
|
3068
3069
|
var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {
|
|
3069
3070
|
name: "xgplayer",
|
|
@@ -3163,32 +3164,47 @@ function wt(o, a) {
|
|
|
3163
3164
|
try {
|
|
3164
3165
|
var i;
|
|
3165
3166
|
(i = r.pre).call.apply(i, [this].concat(Array.prototype.slice.call(arguments)));
|
|
3166
|
-
} catch (
|
|
3167
|
-
throw
|
|
3167
|
+
} catch (s) {
|
|
3168
|
+
throw s.message = "[pluginName: ".concat(this.pluginName, ":").concat(o, ":pre error] >> ").concat(s.message), s;
|
|
3168
3169
|
}
|
|
3169
3170
|
if (this.__hooks && this.__hooks[o])
|
|
3170
3171
|
try {
|
|
3171
|
-
var n
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
}).catch(function(
|
|
3175
|
-
throw
|
|
3176
|
-
}) : ft.apply(void 0, [this, a, r.next].concat(Array.prototype.slice.call(arguments))) :
|
|
3177
|
-
} catch (
|
|
3178
|
-
throw
|
|
3172
|
+
var n = ke(this, o, a);
|
|
3173
|
+
n ? n.then ? n.then(function(s) {
|
|
3174
|
+
s !== !1 && ft.apply(void 0, [e, a, r.next].concat(de(t)));
|
|
3175
|
+
}).catch(function(s) {
|
|
3176
|
+
throw s;
|
|
3177
|
+
}) : ft.apply(void 0, [this, a, r.next].concat(Array.prototype.slice.call(arguments))) : n === void 0 && ft.apply(void 0, [this, a, r.next].concat(Array.prototype.slice.call(arguments)));
|
|
3178
|
+
} catch (s) {
|
|
3179
|
+
throw s.message = "[pluginName: ".concat(this.pluginName, ":").concat(o, "] >> ").concat(s.message), s;
|
|
3179
3180
|
}
|
|
3180
3181
|
else
|
|
3181
3182
|
ft.apply(void 0, [this, a, r.next].concat(Array.prototype.slice.call(arguments)));
|
|
3182
3183
|
}).bind(this);
|
|
3183
3184
|
}
|
|
3185
|
+
function Kn(o, a) {
|
|
3186
|
+
var r = this.__hooks;
|
|
3187
|
+
if (!r || !Array.isArray(r[o]))
|
|
3188
|
+
return -1;
|
|
3189
|
+
for (var t = r[o], e = 0; e < t.length; e++)
|
|
3190
|
+
if (t[e] === a)
|
|
3191
|
+
return e;
|
|
3192
|
+
return -1;
|
|
3193
|
+
}
|
|
3184
3194
|
function Tt(o, a) {
|
|
3185
3195
|
var r = this.__hooks;
|
|
3186
3196
|
if (r)
|
|
3187
|
-
return r.hasOwnProperty(o) ? (r
|
|
3197
|
+
return r.hasOwnProperty(o) ? (Array.isArray(r[o]) || (r[o] = []), Kn.call(this, o, a) === -1 && r[o].push(a), !0) : (console.warn("has no supported hook which name [".concat(o, "]")), !1);
|
|
3188
3198
|
}
|
|
3189
3199
|
function Et(o, a) {
|
|
3190
3200
|
var r = this.__hooks;
|
|
3191
|
-
r
|
|
3201
|
+
if (r) {
|
|
3202
|
+
if (Array.isArray(r[o])) {
|
|
3203
|
+
var t = r[o], e = Kn.call(this, o, a);
|
|
3204
|
+
e !== -1 && t.splice(e, 1);
|
|
3205
|
+
}
|
|
3206
|
+
delete r[o];
|
|
3207
|
+
}
|
|
3192
3208
|
}
|
|
3193
3209
|
function $i(o) {
|
|
3194
3210
|
if (!(!this.plugins || !this.plugins[o.toLowerCase()])) {
|
|
@@ -3207,7 +3223,7 @@ function Xi(o) {
|
|
|
3207
3223
|
}
|
|
3208
3224
|
}
|
|
3209
3225
|
}
|
|
3210
|
-
function
|
|
3226
|
+
function Yn(o) {
|
|
3211
3227
|
var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
|
3212
3228
|
o.__hooks = {}, a && a.map(function(r) {
|
|
3213
3229
|
o.__hooks[r] = null;
|
|
@@ -3220,31 +3236,38 @@ function Kn(o) {
|
|
|
3220
3236
|
}
|
|
3221
3237
|
});
|
|
3222
3238
|
}
|
|
3223
|
-
function
|
|
3239
|
+
function $n(o) {
|
|
3224
3240
|
o.__hooks = null;
|
|
3225
3241
|
}
|
|
3226
|
-
function
|
|
3242
|
+
function ke(o, a, r) {
|
|
3227
3243
|
for (var t = arguments.length, e = new Array(t > 3 ? t - 3 : 0), i = 3; i < t; i++)
|
|
3228
3244
|
e[i - 3] = arguments[i];
|
|
3229
|
-
if (o.__hooks && o.__hooks[a]) {
|
|
3230
|
-
var n, s =
|
|
3231
|
-
|
|
3232
|
-
|
|
3233
|
-
|
|
3234
|
-
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
|
-
|
|
3238
|
-
|
|
3245
|
+
if (o.__hooks && Array.isArray(o.__hooks[a])) {
|
|
3246
|
+
var n = o.__hooks[a], s = -1, l = function u(c, h, d) {
|
|
3247
|
+
for (var g = arguments.length, p = new Array(g > 3 ? g - 3 : 0), m = 3; m < g; m++)
|
|
3248
|
+
p[m - 3] = arguments[m];
|
|
3249
|
+
if (s++, n.length === 0 || s === n.length)
|
|
3250
|
+
return d.call.apply(d, [c, c].concat(p));
|
|
3251
|
+
var y = n[s], k = y.call.apply(y, [c, c].concat(p));
|
|
3252
|
+
if (k && k.then)
|
|
3253
|
+
return k.then(function(w) {
|
|
3254
|
+
return w === !1 ? null : u.apply(void 0, [c, h, d].concat(p));
|
|
3255
|
+
}).catch(function(w) {
|
|
3256
|
+
console.warn("[runHooks]".concat(h, " reject"), w.message);
|
|
3257
|
+
});
|
|
3258
|
+
if (k !== !1)
|
|
3259
|
+
return u.apply(void 0, [c, h, d].concat(p));
|
|
3260
|
+
};
|
|
3261
|
+
return l.apply(void 0, [o, a, r].concat(e));
|
|
3239
3262
|
} else
|
|
3240
3263
|
return r.call.apply(r, [o, o].concat(e));
|
|
3241
3264
|
}
|
|
3242
3265
|
function Bt(o, a) {
|
|
3243
3266
|
M.logError("[".concat(o, "] event or callback cant be undefined or null when call ").concat(a));
|
|
3244
3267
|
}
|
|
3245
|
-
var
|
|
3268
|
+
var Me = /* @__PURE__ */ function() {
|
|
3246
3269
|
function o(a) {
|
|
3247
|
-
T(this, o), f.checkIsFunction(this.beforeCreate) && this.beforeCreate(a),
|
|
3270
|
+
T(this, o), f.checkIsFunction(this.beforeCreate) && this.beforeCreate(a), Yn(this), this.__args = a, this.__events = {}, this.__onceEvents = {}, this.config = a.config || {}, this.player = null, this.playerConfig = {}, this.pluginName = "", this.__init(a);
|
|
3248
3271
|
}
|
|
3249
3272
|
return E(o, [{
|
|
3250
3273
|
key: "beforeCreate",
|
|
@@ -3408,7 +3431,7 @@ var Oe = /* @__PURE__ */ function() {
|
|
|
3408
3431
|
var r = this, t = this.player, e = this.pluginName;
|
|
3409
3432
|
this.offAll(), f.clearAllTimers(this), f.checkIsFunction(this.destroy) && this.destroy(), ["player", "playerConfig", "pluginName", "logger", "__args", "__hooks"].map(function(i) {
|
|
3410
3433
|
r[i] = null;
|
|
3411
|
-
}), t.unRegisterPlugin(e),
|
|
3434
|
+
}), t.unRegisterPlugin(e), $n(this);
|
|
3412
3435
|
}
|
|
3413
3436
|
}], [{
|
|
3414
3437
|
key: "defineGetterOrSetter",
|
|
@@ -3416,6 +3439,15 @@ var Oe = /* @__PURE__ */ function() {
|
|
|
3416
3439
|
for (var e in t)
|
|
3417
3440
|
Object.prototype.hasOwnProperty.call(t, e) && Object.defineProperty(r, e, t[e]);
|
|
3418
3441
|
}
|
|
3442
|
+
}, {
|
|
3443
|
+
key: "defineMethod",
|
|
3444
|
+
value: function(r, t) {
|
|
3445
|
+
for (var e in t)
|
|
3446
|
+
Object.prototype.hasOwnProperty.call(t, e) && typeof t[e] == "function" && Object.defineProperty(r, e, {
|
|
3447
|
+
configurable: !0,
|
|
3448
|
+
value: t[e]
|
|
3449
|
+
});
|
|
3450
|
+
}
|
|
3419
3451
|
}, {
|
|
3420
3452
|
key: "defaultConfig",
|
|
3421
3453
|
get: function() {
|
|
@@ -3427,40 +3459,40 @@ var Oe = /* @__PURE__ */ function() {
|
|
|
3427
3459
|
return "pluginName";
|
|
3428
3460
|
}
|
|
3429
3461
|
}]), o;
|
|
3430
|
-
}(),
|
|
3462
|
+
}(), Qs = 9;
|
|
3431
3463
|
if (typeof Element < "u" && !Element.prototype.matches) {
|
|
3432
3464
|
var Ge = Element.prototype;
|
|
3433
3465
|
Ge.matches = Ge.matchesSelector || Ge.mozMatchesSelector || Ge.msMatchesSelector || Ge.oMatchesSelector || Ge.webkitMatchesSelector;
|
|
3434
3466
|
}
|
|
3435
|
-
function
|
|
3436
|
-
for (; o && o.nodeType !==
|
|
3467
|
+
function ea(o, a) {
|
|
3468
|
+
for (; o && o.nodeType !== Qs; ) {
|
|
3437
3469
|
if (typeof o.matches == "function" && o.matches(a))
|
|
3438
3470
|
return o;
|
|
3439
3471
|
o = o.parentNode;
|
|
3440
3472
|
}
|
|
3441
3473
|
}
|
|
3442
|
-
var
|
|
3474
|
+
var ta = ea, ia = ta;
|
|
3443
3475
|
function Ht(o, a, r, t, e) {
|
|
3444
|
-
var i =
|
|
3476
|
+
var i = ra.apply(this, arguments);
|
|
3445
3477
|
return o.addEventListener(r, i, e), {
|
|
3446
3478
|
destroy: function() {
|
|
3447
3479
|
o.removeEventListener(r, i, e);
|
|
3448
3480
|
}
|
|
3449
3481
|
};
|
|
3450
3482
|
}
|
|
3451
|
-
function
|
|
3483
|
+
function na(o, a, r, t, e) {
|
|
3452
3484
|
return typeof o.addEventListener == "function" ? Ht.apply(null, arguments) : typeof r == "function" ? Ht.bind(null, document).apply(null, arguments) : (typeof o == "string" && (o = document.querySelectorAll(o)), Array.prototype.map.call(o, function(i) {
|
|
3453
3485
|
return Ht(i, a, r, t, e);
|
|
3454
3486
|
}));
|
|
3455
3487
|
}
|
|
3456
|
-
function
|
|
3488
|
+
function ra(o, a, r, t) {
|
|
3457
3489
|
return function(e) {
|
|
3458
|
-
e.delegateTarget =
|
|
3490
|
+
e.delegateTarget = ia(e.target, a), e.delegateTarget && t.call(o, e);
|
|
3459
3491
|
};
|
|
3460
3492
|
}
|
|
3461
|
-
var
|
|
3462
|
-
const qi = /* @__PURE__ */ li(
|
|
3463
|
-
var
|
|
3493
|
+
var sa = na;
|
|
3494
|
+
const qi = /* @__PURE__ */ li(sa);
|
|
3495
|
+
var aa = {
|
|
3464
3496
|
CONTROLS: "controls",
|
|
3465
3497
|
ROOT: "root"
|
|
3466
3498
|
}, G = {
|
|
@@ -3480,10 +3512,10 @@ var sa = {
|
|
|
3480
3512
|
function Ut(o) {
|
|
3481
3513
|
return o ? o.indexOf && /^(?:http|data:|\/)/.test(o) : !1;
|
|
3482
3514
|
}
|
|
3483
|
-
function
|
|
3515
|
+
function oa(o, a) {
|
|
3484
3516
|
return re(o) === "object" && o.class && typeof o.class == "string" ? "".concat(a, " ").concat(o.class) : a;
|
|
3485
3517
|
}
|
|
3486
|
-
function
|
|
3518
|
+
function la(o, a) {
|
|
3487
3519
|
return re(o) === "object" && o.attr && re(o.attr) === "object" && Object.keys(o.attr).map(function(r) {
|
|
3488
3520
|
a[r] = o.attr[r];
|
|
3489
3521
|
}), a;
|
|
@@ -3506,14 +3538,14 @@ function Ji(o, a) {
|
|
|
3506
3538
|
}
|
|
3507
3539
|
return typeof o == "string" ? f.createDomFromHtml(o, t, r) : (M.logWarn("warn>>icons.".concat(a, " in config of plugin named [").concat(e, "] is invalid")), null);
|
|
3508
3540
|
}
|
|
3509
|
-
function
|
|
3541
|
+
function ua(o, a) {
|
|
3510
3542
|
var r = a.config.icons || a.playerConfig.icons;
|
|
3511
3543
|
Object.keys(o).map(function(t) {
|
|
3512
3544
|
var e = o[t], i = e && e.class ? e.class : "", n = e && e.attr ? e.attr : {}, s = null;
|
|
3513
|
-
r && r[t] && (i =
|
|
3545
|
+
r && r[t] && (i = oa(r[t], i), n = la(r[t], n), s = Ji(r[t], t, i, n, a.pluginName)), !s && e && (s = Ji(e.icon ? e.icon : e, n, i, {}, a.pluginName)), a.icons[t] = s;
|
|
3514
3546
|
});
|
|
3515
3547
|
}
|
|
3516
|
-
function
|
|
3548
|
+
function ca(o, a) {
|
|
3517
3549
|
Object.keys(o).map(function(r) {
|
|
3518
3550
|
Object.defineProperty(a.langText, r, {
|
|
3519
3551
|
get: function() {
|
|
@@ -3533,13 +3565,13 @@ var U = /* @__PURE__ */ function(o) {
|
|
|
3533
3565
|
return E(r, [{
|
|
3534
3566
|
key: "__init",
|
|
3535
3567
|
value: function(e) {
|
|
3536
|
-
if (
|
|
3568
|
+
if (A(I(r.prototype), "__init", this).call(this, e), !!e.root) {
|
|
3537
3569
|
var i = e.root, n = null;
|
|
3538
3570
|
this.icons = {}, this.root = null, this.parent = null;
|
|
3539
3571
|
var s = this.registerIcons() || {};
|
|
3540
|
-
|
|
3572
|
+
ua(s, this), this.langText = {};
|
|
3541
3573
|
var l = this.registerLanguageTexts() || {};
|
|
3542
|
-
|
|
3574
|
+
ca(l, this);
|
|
3543
3575
|
var u = "";
|
|
3544
3576
|
try {
|
|
3545
3577
|
u = this.render();
|
|
@@ -3627,7 +3659,7 @@ var U = /* @__PURE__ */ function(o) {
|
|
|
3627
3659
|
value: function(e) {
|
|
3628
3660
|
var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "";
|
|
3629
3661
|
i.root = i.root || this.root;
|
|
3630
|
-
var s =
|
|
3662
|
+
var s = A(I(r.prototype), "registerPlugin", this).call(this, e, i, n);
|
|
3631
3663
|
return this._children.push(s), s;
|
|
3632
3664
|
}
|
|
3633
3665
|
}, {
|
|
@@ -3762,7 +3794,7 @@ var U = /* @__PURE__ */ function(o) {
|
|
|
3762
3794
|
n.destroy();
|
|
3763
3795
|
}), this.__delegates = [], this._children instanceof Array && (this._children.map(function(n) {
|
|
3764
3796
|
i.unRegisterPlugin(n.pluginName);
|
|
3765
|
-
}), this._children = null), this.root && (this.root.hasOwnProperty("remove") ? this.root.remove() : this.root.parentNode && this.root.parentNode.removeChild(this.root)),
|
|
3797
|
+
}), this._children = null), this.root && (this.root.hasOwnProperty("remove") ? this.root.remove() : this.root.parentNode && this.root.parentNode.removeChild(this.root)), A(I(r.prototype), "__destroy", this).call(this), this.icons = {}, ["root", "parent"].map(function(n) {
|
|
3766
3798
|
e[n] = null;
|
|
3767
3799
|
});
|
|
3768
3800
|
}
|
|
@@ -3808,7 +3840,7 @@ var U = /* @__PURE__ */ function(o) {
|
|
|
3808
3840
|
}, {
|
|
3809
3841
|
key: "ROOT_TYPES",
|
|
3810
3842
|
get: function() {
|
|
3811
|
-
return
|
|
3843
|
+
return aa;
|
|
3812
3844
|
}
|
|
3813
3845
|
}, {
|
|
3814
3846
|
key: "POSITIONS",
|
|
@@ -3816,7 +3848,7 @@ var U = /* @__PURE__ */ function(o) {
|
|
|
3816
3848
|
return G;
|
|
3817
3849
|
}
|
|
3818
3850
|
}]), r;
|
|
3819
|
-
}(
|
|
3851
|
+
}(Me), fa = /* @__PURE__ */ function() {
|
|
3820
3852
|
function o() {
|
|
3821
3853
|
var a = this;
|
|
3822
3854
|
if (T(this, o), _(this, "__trigger", function(r) {
|
|
@@ -3826,7 +3858,7 @@ var U = /* @__PURE__ */ function(o) {
|
|
|
3826
3858
|
a.__runHandler(r[e].target);
|
|
3827
3859
|
}), this.__handlers = [], this.timeStamp = 0, this.observer = null, !!window.ResizeObserver)
|
|
3828
3860
|
try {
|
|
3829
|
-
this.observer = new window.ResizeObserver(
|
|
3861
|
+
this.observer = new window.ResizeObserver(Ms(this.__trigger, 100, {
|
|
3830
3862
|
trailing: !0
|
|
3831
3863
|
})), this.timeStamp = (/* @__PURE__ */ new Date()).getTime();
|
|
3832
3864
|
} catch (r) {
|
|
@@ -3837,7 +3869,7 @@ var U = /* @__PURE__ */ function(o) {
|
|
|
3837
3869
|
key: "addObserver",
|
|
3838
3870
|
value: function(r, t) {
|
|
3839
3871
|
if (this.observer) {
|
|
3840
|
-
this.observer
|
|
3872
|
+
this.observer.observe(r);
|
|
3841
3873
|
for (var e = r.getAttribute(He), i = this.__handlers, n = -1, s = 0; s < i.length; s++)
|
|
3842
3874
|
i[s] && r === i[s].target && (n = s);
|
|
3843
3875
|
n > -1 ? this.__handlers[n].handler = t : this.__handlers.push({
|
|
@@ -3851,19 +3883,21 @@ var U = /* @__PURE__ */ function(o) {
|
|
|
3851
3883
|
key: "unObserver",
|
|
3852
3884
|
value: function(r) {
|
|
3853
3885
|
var t = -1;
|
|
3854
|
-
this.__handlers.map(function(
|
|
3855
|
-
r ===
|
|
3886
|
+
this.__handlers.map(function(i, n) {
|
|
3887
|
+
r === i.target && (t = n);
|
|
3856
3888
|
});
|
|
3857
3889
|
try {
|
|
3858
|
-
|
|
3890
|
+
var e;
|
|
3891
|
+
(e = this.observer) === null || e === void 0 || e.unobserve(r);
|
|
3859
3892
|
} catch {
|
|
3860
3893
|
}
|
|
3861
|
-
|
|
3894
|
+
t > -1 && this.__handlers.splice(t, 1);
|
|
3862
3895
|
}
|
|
3863
3896
|
}, {
|
|
3864
3897
|
key: "destroyObserver",
|
|
3865
3898
|
value: function() {
|
|
3866
|
-
|
|
3899
|
+
var r;
|
|
3900
|
+
(r = this.observer) === null || r === void 0 || r.disconnect(), this.observer = null, this.__handlers = null;
|
|
3867
3901
|
}
|
|
3868
3902
|
}, {
|
|
3869
3903
|
key: "__runHandler",
|
|
@@ -3881,17 +3915,18 @@ var U = /* @__PURE__ */ function(o) {
|
|
|
3881
3915
|
}
|
|
3882
3916
|
}]), o;
|
|
3883
3917
|
}(), st = null;
|
|
3884
|
-
function fa(o, a) {
|
|
3885
|
-
return st || (st = new ca()), st.addObserver(o, a), st;
|
|
3886
|
-
}
|
|
3887
3918
|
function ha(o, a) {
|
|
3888
|
-
st.
|
|
3919
|
+
return st || (st = new fa()), st.addObserver(o, a), st;
|
|
3920
|
+
}
|
|
3921
|
+
function da(o, a) {
|
|
3922
|
+
var r;
|
|
3923
|
+
(r = st) === null || r === void 0 || r.unObserver(o, a);
|
|
3889
3924
|
}
|
|
3890
3925
|
var te = {
|
|
3891
3926
|
pluginGroup: {},
|
|
3892
3927
|
init: function(a) {
|
|
3893
3928
|
var r = a._pluginInfoId;
|
|
3894
|
-
r || (r = (/* @__PURE__ */ new Date()).getTime(), a._pluginInfoId = r), !a.config.closeResizeObserver &&
|
|
3929
|
+
r || (r = (/* @__PURE__ */ new Date()).getTime(), a._pluginInfoId = r), !a.config.closeResizeObserver && ha(a.root, function() {
|
|
3895
3930
|
a.resize();
|
|
3896
3931
|
}), this.pluginGroup[r] = {
|
|
3897
3932
|
_originalOptions: a.config || {},
|
|
@@ -4077,7 +4112,7 @@ var te = {
|
|
|
4077
4112
|
destroy: function(a) {
|
|
4078
4113
|
var r = a._pluginInfoId;
|
|
4079
4114
|
if (this.pluginGroup[r]) {
|
|
4080
|
-
|
|
4115
|
+
da(a.root);
|
|
4081
4116
|
for (var t = this.pluginGroup[r]._plugins, e = 0, i = Object.keys(t); e < i.length; e++) {
|
|
4082
4117
|
var n = i[e];
|
|
4083
4118
|
this.unRegister(r, n);
|
|
@@ -4163,7 +4198,7 @@ function Qi() {
|
|
|
4163
4198
|
ignores: [],
|
|
4164
4199
|
whitelist: [],
|
|
4165
4200
|
inactive: 3e3,
|
|
4166
|
-
lang:
|
|
4201
|
+
lang: Ns(),
|
|
4167
4202
|
controls: !0,
|
|
4168
4203
|
marginControls: !1,
|
|
4169
4204
|
fullscreenTarget: null,
|
|
@@ -4199,16 +4234,16 @@ function Qi() {
|
|
|
4199
4234
|
}
|
|
4200
4235
|
};
|
|
4201
4236
|
}
|
|
4202
|
-
var
|
|
4237
|
+
var ga = function(a, r) {
|
|
4203
4238
|
var t, e, i;
|
|
4204
4239
|
r.preset && r.options ? i = new r.preset(r.options, a.config) : i = new r({}, a.config);
|
|
4205
4240
|
var n = i, s = n.plugins, l = s === void 0 ? [] : s, u = n.ignores, c = u === void 0 ? [] : u, h = n.icons, d = h === void 0 ? {} : h, g = n.i18n, p = g === void 0 ? [] : g;
|
|
4206
|
-
a.config.plugins || (a.config.plugins = []), a.config.ignores || (a.config.ignores = []), (t = a.config.plugins).push.apply(t, de(l)), (e = a.config.ignores).push.apply(e, de(c)), Object.keys(d).map(function(
|
|
4207
|
-
a.config.icons[
|
|
4241
|
+
a.config.plugins || (a.config.plugins = []), a.config.ignores || (a.config.ignores = []), (t = a.config.plugins).push.apply(t, de(l)), (e = a.config.ignores).push.apply(e, de(c)), Object.keys(d).map(function(y) {
|
|
4242
|
+
a.config.icons[y] || (a.config.icons[y] = d[y]);
|
|
4208
4243
|
});
|
|
4209
|
-
var
|
|
4210
|
-
p.push.apply(p, de(
|
|
4211
|
-
},
|
|
4244
|
+
var m = a.config.i18n || [];
|
|
4245
|
+
p.push.apply(p, de(m)), a.config.i18n = p;
|
|
4246
|
+
}, pa = /* @__PURE__ */ function(o) {
|
|
4212
4247
|
S(r, o);
|
|
4213
4248
|
var a = x(r);
|
|
4214
4249
|
function r() {
|
|
@@ -4319,7 +4354,7 @@ var da = function(a, r) {
|
|
|
4319
4354
|
default:
|
|
4320
4355
|
i.root = this.left;
|
|
4321
4356
|
}
|
|
4322
|
-
return
|
|
4357
|
+
return A(I(r.prototype), "registerPlugin", this).call(this, e, i, n);
|
|
4323
4358
|
}
|
|
4324
4359
|
}
|
|
4325
4360
|
}
|
|
@@ -4369,7 +4404,7 @@ var da = function(a, r) {
|
|
|
4369
4404
|
};
|
|
4370
4405
|
}
|
|
4371
4406
|
}]), r;
|
|
4372
|
-
}(U),
|
|
4407
|
+
}(U), va = {
|
|
4373
4408
|
LANG: "en",
|
|
4374
4409
|
TEXT: {
|
|
4375
4410
|
ERROR_TYPES: {
|
|
@@ -4459,12 +4494,12 @@ function ot(o, a) {
|
|
|
4459
4494
|
t === "Object" ? (e !== "Object" && (o[r] = {}), ot(o[r], a[r])) : o[r] = a[r];
|
|
4460
4495
|
}), o;
|
|
4461
4496
|
}
|
|
4462
|
-
function
|
|
4497
|
+
function Xn() {
|
|
4463
4498
|
Object.keys(ue.lang.en).map(function(o) {
|
|
4464
4499
|
ue.textKeys[o] = o;
|
|
4465
4500
|
});
|
|
4466
4501
|
}
|
|
4467
|
-
function
|
|
4502
|
+
function ma(o, a) {
|
|
4468
4503
|
var r = [];
|
|
4469
4504
|
if (a || (a = ue), !!a.lang) {
|
|
4470
4505
|
f.typeOf(o) !== "Array" ? r = Object.keys(o).map(function(i) {
|
|
@@ -4477,17 +4512,17 @@ function va(o, a) {
|
|
|
4477
4512
|
var t = a, e = t.lang;
|
|
4478
4513
|
r.map(function(i) {
|
|
4479
4514
|
i.LANG === "zh" && (i.LANG = "zh-cn"), e[i.LANG] ? ot(e[i.LANG] || {}, i.TEXT || {}) : yi(i, a);
|
|
4480
|
-
}),
|
|
4515
|
+
}), Xn();
|
|
4481
4516
|
}
|
|
4482
4517
|
}
|
|
4483
4518
|
function yi(o, a) {
|
|
4484
4519
|
var r = o.LANG;
|
|
4485
4520
|
if (a || (a = ue), !!a.lang) {
|
|
4486
4521
|
var t = o.TEXT || {};
|
|
4487
|
-
r === "zh" && (r = "zh-cn"), a.lang[r] ? ot(a.lang[r], t) : (a.langKeys.push(r), a.lang[r] = t),
|
|
4522
|
+
r === "zh" && (r = "zh-cn"), a.lang[r] ? ot(a.lang[r], t) : (a.langKeys.push(r), a.lang[r] = t), Xn();
|
|
4488
4523
|
}
|
|
4489
4524
|
}
|
|
4490
|
-
function
|
|
4525
|
+
function ya(o) {
|
|
4491
4526
|
var a, r = {
|
|
4492
4527
|
lang: {},
|
|
4493
4528
|
langKeys: [],
|
|
@@ -4496,7 +4531,7 @@ function ma(o) {
|
|
|
4496
4531
|
};
|
|
4497
4532
|
return ot(r.lang, ue.lang), (a = r.langKeys).push.apply(a, de(ue.langKeys)), ot(r.textKeys, ue.textKeys), r;
|
|
4498
4533
|
}
|
|
4499
|
-
yi(
|
|
4534
|
+
yi(va);
|
|
4500
4535
|
var Qe = {
|
|
4501
4536
|
get textKeys() {
|
|
4502
4537
|
return ue.textKeys;
|
|
@@ -4510,9 +4545,9 @@ var Qe = {
|
|
|
4510
4545
|
o[a] = ue.lang[a];
|
|
4511
4546
|
}), ue.lang["zh-cn"] && (o.zh = ue.lang["zh-cn"] || {}), o;
|
|
4512
4547
|
},
|
|
4513
|
-
extend:
|
|
4548
|
+
extend: ma,
|
|
4514
4549
|
use: yi,
|
|
4515
|
-
init:
|
|
4550
|
+
init: ya
|
|
4516
4551
|
}, H = {
|
|
4517
4552
|
INITIAL: 1,
|
|
4518
4553
|
READY: 2,
|
|
@@ -4522,7 +4557,7 @@ var Qe = {
|
|
|
4522
4557
|
RUNNING: 6,
|
|
4523
4558
|
ENDED: 7,
|
|
4524
4559
|
DESTROYED: 8
|
|
4525
|
-
}, en = ["ERROR", "INITIAL", "READY", "ATTACHING", "ATTACHED", "NOTALLOW", "RUNNING", "ENDED", "DESTROYED"], se = {}, Vt = null,
|
|
4560
|
+
}, en = ["ERROR", "INITIAL", "READY", "ATTACHING", "ATTACHED", "NOTALLOW", "RUNNING", "ENDED", "DESTROYED"], se = {}, Vt = null, qn = /* @__PURE__ */ function(o) {
|
|
4526
4561
|
S(r, o);
|
|
4527
4562
|
var a = x(r);
|
|
4528
4563
|
function r() {
|
|
@@ -4609,7 +4644,7 @@ var Qe = {
|
|
|
4609
4644
|
}
|
|
4610
4645
|
}]), r;
|
|
4611
4646
|
}(Sn.EventEmitter);
|
|
4612
|
-
function
|
|
4647
|
+
function _a(o) {
|
|
4613
4648
|
for (var a = Object.keys(se), r = 0; r < a.length; r++) {
|
|
4614
4649
|
var t = se[a[r]];
|
|
4615
4650
|
if (t.root === o)
|
|
@@ -4617,7 +4652,7 @@ function ya(o) {
|
|
|
4617
4652
|
}
|
|
4618
4653
|
return null;
|
|
4619
4654
|
}
|
|
4620
|
-
var
|
|
4655
|
+
var Ca = ["play", "pause", "replay", "retry"], tn = 0, nn = 0, Ae = null, Lt = /* @__PURE__ */ function(o) {
|
|
4621
4656
|
S(r, o);
|
|
4622
4657
|
var a = x(r);
|
|
4623
4658
|
function r(t) {
|
|
@@ -4626,11 +4661,11 @@ var _a = ["play", "pause", "replay", "retry"], tn = 0, nn = 0, Pe = null, At = /
|
|
|
4626
4661
|
var i = f.deepMerge(Qi(), t);
|
|
4627
4662
|
e = a.call(this, i), _(v(e), "canPlayFunc", function() {
|
|
4628
4663
|
if (e.config) {
|
|
4629
|
-
var p = e.config,
|
|
4630
|
-
M.logInfo("player", "canPlayFunc, startTime", e.__startTime), e.
|
|
4664
|
+
var p = e.config, m = p.autoplay, y = p.defaultPlaybackRate;
|
|
4665
|
+
M.logInfo("player", "canPlayFunc, startTime", e.__startTime), e._seekToStartTime(), e.playbackRate = y, (m || e._useAutoplay) && e.mediaPlay(), e.off(Te, e.canPlayFunc), e.removeClass(C.ENTER);
|
|
4631
4666
|
}
|
|
4632
|
-
}), _(v(e), "onFullscreenChange", function(p,
|
|
4633
|
-
var
|
|
4667
|
+
}), _(v(e), "onFullscreenChange", function(p, m) {
|
|
4668
|
+
var y = function() {
|
|
4634
4669
|
f.setTimeout(v(e), function() {
|
|
4635
4670
|
e.resize();
|
|
4636
4671
|
}, 100);
|
|
@@ -4647,11 +4682,11 @@ var _a = ["play", "pause", "replay", "retry"], tn = 0, nn = 0, Pe = null, At = /
|
|
|
4647
4682
|
to: !1
|
|
4648
4683
|
}]
|
|
4649
4684
|
});
|
|
4650
|
-
var w =
|
|
4651
|
-
if (
|
|
4652
|
-
|
|
4685
|
+
var w = Fs(k, e.playerId, He);
|
|
4686
|
+
if (m || k && (k === e._fullscreenEl || w))
|
|
4687
|
+
y(), !e.config.closeFocusVideoFocus && e.media.focus(), e.fullscreen = !0, e.changeFullStyle(e.root, k, C.FULLSCREEN), e.emit(we, !0, e._fullScreenOffset), e.cssfullscreen && e.exitCssFullscreen();
|
|
4653
4688
|
else if (e.fullscreen) {
|
|
4654
|
-
|
|
4689
|
+
y();
|
|
4655
4690
|
var b = v(e), B = b._fullScreenOffset, O = b.config;
|
|
4656
4691
|
if (O.needFullscreenScroll ? (window.scrollTo(B.left, B.top), f.setTimeout(v(e), function() {
|
|
4657
4692
|
e.fullscreen = !1, e._fullScreenOffset = null;
|
|
@@ -4661,20 +4696,20 @@ var _a = ["play", "pause", "replay", "retry"], tn = 0, nn = 0, Pe = null, At = /
|
|
|
4661
4696
|
var z = e._fullscreenEl;
|
|
4662
4697
|
!z && (e.root.contains(p.target) || p.target === e.root) && (z = p.target), e.recoverFullStyle(e.root, z, C.FULLSCREEN);
|
|
4663
4698
|
}
|
|
4664
|
-
e._fullscreenEl = null, e.emit(
|
|
4699
|
+
e._fullscreenEl = null, e.emit(we, !1);
|
|
4665
4700
|
}
|
|
4666
4701
|
}), _(v(e), "_onWebkitbeginfullscreen", function(p) {
|
|
4667
4702
|
e._fullscreenEl = e.media, e.onFullscreenChange(p, !0);
|
|
4668
4703
|
}), _(v(e), "_onWebkitendfullscreen", function(p) {
|
|
4669
4704
|
e.onFullscreenChange(p, !1);
|
|
4670
|
-
}),
|
|
4705
|
+
}), Yn(v(e), Ca), e.config = i, e._pluginInfoId = f.generateSessionId(), Ls(v(e));
|
|
4671
4706
|
var n = e.constructor.defaultPreset;
|
|
4672
4707
|
if (e.config.presets.length) {
|
|
4673
4708
|
var s = e.config.presets.indexOf("default");
|
|
4674
4709
|
s >= 0 && n && (e.config.presets[s] = n);
|
|
4675
4710
|
} else
|
|
4676
4711
|
n && e.config.presets.push(n);
|
|
4677
|
-
e.userTimer = null, e.waitTimer = null, e.handleSource = !0, e._state = H.INITIAL, e.isError = !1, e._hasStart = !1, e.isSeeking = !1, e.isCanplay = !1, e._useAutoplay = !1, e.__startTime = -1, e.rotateDeg = 0, e.isActive = !1, e.fullscreen = !1, e.cssfullscreen = !1, e.isRotateFullscreen = !1, e._fullscreenEl = null, e.timeSegments = [], e._cssfullscreenEl = null, e.curDefinition = null, e._orgCss = "", e._fullScreenOffset = null, e._videoHeight = 0, e._videoWidth = 0, e.videoPos = {
|
|
4712
|
+
e.userTimer = null, e.waitTimer = null, e.handleSource = !0, e._state = H.INITIAL, e.isAd = !1, e.isError = !1, e._hasStart = !1, e.isSeeking = !1, e.isCanplay = !1, e._useAutoplay = !1, e.__startTime = -1, e.rotateDeg = 0, e.isActive = !1, e.fullscreen = !1, e.cssfullscreen = !1, e.isRotateFullscreen = !1, e._fullscreenEl = null, e.timeSegments = [], e._cssfullscreenEl = null, e.curDefinition = null, e._orgCss = "", e._fullScreenOffset = null, e._videoHeight = 0, e._videoWidth = 0, e.videoPos = {
|
|
4678
4713
|
pi: 1,
|
|
4679
4714
|
scale: 0,
|
|
4680
4715
|
rotate: -1,
|
|
@@ -4696,9 +4731,9 @@ var _a = ["play", "pause", "replay", "retry"], tn = 0, nn = 0, Pe = null, At = /
|
|
|
4696
4731
|
}, e._offsetInfo = {
|
|
4697
4732
|
currentTime: -1,
|
|
4698
4733
|
duration: 0
|
|
4699
|
-
}, e.innerContainer = null, e.controls = null, e.topBar = null, e.root = null, e.__i18n = Qe.init(e._pluginInfoId), R.os.isAndroid && R.osVersion > 0 && R.osVersion < 6 && (e.config.autoplay = !1), e.database = new
|
|
4734
|
+
}, e.innerContainer = null, e.controls = null, e.topBar = null, e.root = null, e.__i18n = Qe.init(e._pluginInfoId), R.os.isAndroid && R.osVersion > 0 && R.osVersion < 6 && (e.config.autoplay = !1), e.database = new Js(), e.isUserActive = !1, e._onceSeekCanplay = null, e._isPauseBeforeSeek = 0, e.innerStates = {
|
|
4700
4735
|
isActiveLocked: !1
|
|
4701
|
-
}, e.instManager =
|
|
4736
|
+
}, e.instManager = Ae;
|
|
4702
4737
|
var l = e._initDOM();
|
|
4703
4738
|
if (!l)
|
|
4704
4739
|
return console.error(new Error("can't find the dom which id is ".concat(e.config.id, " or this.config.el does not exist"))), ci(e);
|
|
@@ -4728,8 +4763,8 @@ var _a = ["play", "pause", "replay", "retry"], tn = 0, nn = 0, Pe = null, At = /
|
|
|
4728
4763
|
msg: "container id can't be empty"
|
|
4729
4764
|
})), console.error("this.confg.id or this.config.el can't be empty"), !1;
|
|
4730
4765
|
}
|
|
4731
|
-
var s =
|
|
4732
|
-
s && (M.logWarn("The is an Player instance already exists in this.root, destroy it and reinitialize"), s.destroy()), this.root.setAttribute(He, this.playerId), (e =
|
|
4766
|
+
var s = _a(this.root);
|
|
4767
|
+
s && (M.logWarn("The is an Player instance already exists in this.root, destroy it and reinitialize"), s.destroy()), this.root.setAttribute(He, this.playerId), (e = Ae) === null || e === void 0 || e.add(this), te.init(this), this._initBaseDoms();
|
|
4733
4768
|
var l = this.constructor.XgVideoProxy;
|
|
4734
4769
|
if (l && this.mediaConfig.mediaType === l.mediaType) {
|
|
4735
4770
|
var u = this.innerContainer || this.root;
|
|
@@ -4738,27 +4773,27 @@ var _a = ["play", "pause", "replay", "retry"], tn = 0, nn = 0, Pe = null, At = /
|
|
|
4738
4773
|
this.attachVideoEvents(c), this.media = c;
|
|
4739
4774
|
}
|
|
4740
4775
|
if (this.media.setAttribute(He, this.playerId), this.config.controls) {
|
|
4741
|
-
var h = this.config.controls.root || null, d = te.register(this,
|
|
4776
|
+
var h = this.config.controls.root || null, d = te.register(this, pa, {
|
|
4742
4777
|
root: h
|
|
4743
4778
|
});
|
|
4744
4779
|
this.controls = d;
|
|
4745
4780
|
}
|
|
4746
4781
|
var g = this.config.isMobileSimulateMode === "mobile" ? "mobile" : R.device;
|
|
4747
4782
|
if (this.addClass("".concat(C.DEFAULT, " ").concat(C.INACTIVE, " xgplayer-").concat(g, " ").concat(this.config.controls ? "" : C.NO_CONTROLS)), this.config.autoplay ? this.addClass(C.ENTER) : this.addClass(C.NO_START), this.config.fluid) {
|
|
4748
|
-
var p = this.config,
|
|
4749
|
-
(typeof
|
|
4783
|
+
var p = this.config, m = p.width, y = p.height;
|
|
4784
|
+
(typeof m != "number" || typeof y != "number") && (m = 600, y = 337.5);
|
|
4750
4785
|
var k = {
|
|
4751
4786
|
width: "100%",
|
|
4752
4787
|
height: "0",
|
|
4753
4788
|
"max-width": "100%",
|
|
4754
|
-
"padding-top": "".concat(
|
|
4789
|
+
"padding-top": "".concat(y * 100 / m, "%")
|
|
4755
4790
|
};
|
|
4756
|
-
Object.keys(k).forEach(function(
|
|
4757
|
-
i.root.style[
|
|
4791
|
+
Object.keys(k).forEach(function(L) {
|
|
4792
|
+
i.root.style[L] = k[L];
|
|
4758
4793
|
});
|
|
4759
4794
|
} else
|
|
4760
|
-
["width", "height"].forEach(function(
|
|
4761
|
-
i.config[
|
|
4795
|
+
["width", "height"].forEach(function(L) {
|
|
4796
|
+
i.config[L] && (typeof i.config[L] != "number" ? i.root.style[L] = i.config[L] : i.root.style[L] = "".concat(i.config[L], "px"));
|
|
4762
4797
|
});
|
|
4763
4798
|
var w = this.root.getBoundingClientRect(), b = w.width, B = w.height, O = w.left, z = w.top;
|
|
4764
4799
|
return this.sizeInfo.width = b, this.sizeInfo.height = B, this.sizeInfo.left = O, this.sizeInfo.top = z, !0;
|
|
@@ -4846,7 +4881,7 @@ var _a = ["play", "pause", "replay", "retry"], tn = 0, nn = 0, Pe = null, At = /
|
|
|
4846
4881
|
value: function() {
|
|
4847
4882
|
var e = this;
|
|
4848
4883
|
this.config.presets.forEach(function(i) {
|
|
4849
|
-
|
|
4884
|
+
ga(e, i);
|
|
4850
4885
|
});
|
|
4851
4886
|
}
|
|
4852
4887
|
}, {
|
|
@@ -4877,12 +4912,16 @@ var _a = ["play", "pause", "replay", "retry"], tn = 0, nn = 0, Pe = null, At = /
|
|
|
4877
4912
|
var h = te.getRootByConfig(s.pluginName, this.config);
|
|
4878
4913
|
h.root && (l.root = h.root), h.position && (l.position = h.position);
|
|
4879
4914
|
var d = l.position ? l.position : l.config && l.config.position || s.defaultConfig && s.defaultConfig.position;
|
|
4880
|
-
|
|
4915
|
+
if (!l.root && typeof d == "string" && d.indexOf("controls") > -1) {
|
|
4916
|
+
var g;
|
|
4917
|
+
return (g = this.controls) === null || g === void 0 ? void 0 : g.registerPlugin(s, l, s.pluginName);
|
|
4918
|
+
}
|
|
4919
|
+
return l.root || (l.root = this._getRootByPosition(d)), te.register(this, s, l);
|
|
4881
4920
|
}
|
|
4882
4921
|
}, {
|
|
4883
4922
|
key: "deregister",
|
|
4884
4923
|
value: function(e) {
|
|
4885
|
-
typeof e == "string" ? te.unRegister(this, e) : e instanceof
|
|
4924
|
+
typeof e == "string" ? te.unRegister(this, e) : e instanceof Me && te.unRegister(this, e.pluginName);
|
|
4886
4925
|
}
|
|
4887
4926
|
}, {
|
|
4888
4927
|
key: "unRegisterPlugin",
|
|
@@ -4894,7 +4933,7 @@ var _a = ["play", "pause", "replay", "retry"], tn = 0, nn = 0, Pe = null, At = /
|
|
|
4894
4933
|
key: "removePluginFromConfig",
|
|
4895
4934
|
value: function(e) {
|
|
4896
4935
|
var i;
|
|
4897
|
-
if (typeof e == "string" ? i = e : e instanceof
|
|
4936
|
+
if (typeof e == "string" ? i = e : e instanceof Me && (i = e.pluginName), !!i)
|
|
4898
4937
|
for (var n = this.config.plugins.length - 1; n > -1; n--) {
|
|
4899
4938
|
var s = this.config.plugins[n];
|
|
4900
4939
|
if (s.pluginName.toLowerCase() === i.toLowerCase()) {
|
|
@@ -4964,10 +5003,10 @@ var _a = ["play", "pause", "replay", "retry"], tn = 0, nn = 0, Pe = null, At = /
|
|
|
4964
5003
|
this.__startTime = l;
|
|
4965
5004
|
var u = this.paused && !this.isError;
|
|
4966
5005
|
return this.src = s, new Promise(function(c, h) {
|
|
4967
|
-
var d = function(
|
|
4968
|
-
n.off("timeupdate", g), n.off("canplay", g), h(
|
|
5006
|
+
var d = function(m) {
|
|
5007
|
+
n.off("timeupdate", g), n.off("canplay", g), h(m);
|
|
4969
5008
|
}, g = function() {
|
|
4970
|
-
n.
|
|
5009
|
+
n._seekToStartTime(), u && n.pause(), n.off("error", d), c(!0);
|
|
4971
5010
|
};
|
|
4972
5011
|
if (n.once("error", d), !s) {
|
|
4973
5012
|
n.errorHandler("error", {
|
|
@@ -4993,7 +5032,7 @@ var _a = ["play", "pause", "replay", "retry"], tn = 0, nn = 0, Pe = null, At = /
|
|
|
4993
5032
|
return;
|
|
4994
5033
|
}
|
|
4995
5034
|
this.state < H.RUNNING && (this.removeClass(C.NO_START), !this.isCanplay && this.addClass(C.ENTER));
|
|
4996
|
-
var i =
|
|
5035
|
+
var i = A(I(r.prototype), "play", this).call(this);
|
|
4997
5036
|
return i !== void 0 && i && i.then ? i.then(function() {
|
|
4998
5037
|
e.removeClass(C.NOT_ALLOW_AUTOPLAY), e.addClass(C.PLAYING), e.state < H.RUNNING && (M.logInfo(">>>>playPromise.then"), e.setState(H.RUNNING), e.emit(Ue));
|
|
4999
5038
|
}).catch(function(n) {
|
|
@@ -5009,18 +5048,18 @@ var _a = ["play", "pause", "replay", "retry"], tn = 0, nn = 0, Pe = null, At = /
|
|
|
5009
5048
|
}, {
|
|
5010
5049
|
key: "mediaPause",
|
|
5011
5050
|
value: function() {
|
|
5012
|
-
|
|
5051
|
+
A(I(r.prototype), "pause", this).call(this);
|
|
5013
5052
|
}
|
|
5014
5053
|
}, {
|
|
5015
5054
|
key: "videoPause",
|
|
5016
5055
|
value: function() {
|
|
5017
|
-
|
|
5056
|
+
A(I(r.prototype), "pause", this).call(this);
|
|
5018
5057
|
}
|
|
5019
5058
|
}, {
|
|
5020
5059
|
key: "play",
|
|
5021
5060
|
value: function() {
|
|
5022
5061
|
var e = this;
|
|
5023
|
-
return this.removeClass(C.PAUSED),
|
|
5062
|
+
return this.removeClass(C.PAUSED), ke(this, "play", function() {
|
|
5024
5063
|
return e.mediaPlay();
|
|
5025
5064
|
});
|
|
5026
5065
|
}
|
|
@@ -5028,8 +5067,8 @@ var _a = ["play", "pause", "replay", "retry"], tn = 0, nn = 0, Pe = null, At = /
|
|
|
5028
5067
|
key: "pause",
|
|
5029
5068
|
value: function() {
|
|
5030
5069
|
var e = this;
|
|
5031
|
-
|
|
5032
|
-
|
|
5070
|
+
ke(this, "pause", function() {
|
|
5071
|
+
A(I(r.prototype), "pause", e).call(e);
|
|
5033
5072
|
});
|
|
5034
5073
|
}
|
|
5035
5074
|
}, {
|
|
@@ -5098,9 +5137,9 @@ var _a = ["play", "pause", "replay", "retry"], tn = 0, nn = 0, Pe = null, At = /
|
|
|
5098
5137
|
key: "resetState",
|
|
5099
5138
|
value: function() {
|
|
5100
5139
|
var e = this, i = C.NOT_ALLOW_AUTOPLAY, n = C.PLAYING, s = C.NO_START, l = C.PAUSED, u = C.REPLAY, c = C.ENTER, h = C.ENDED, d = C.ERROR, g = C.LOADING, p = [i, n, s, l, u, c, h, d, g];
|
|
5101
|
-
this.hasStart = !1, this.isError = !1, this._useAutoplay = !1, this.mediaPause(), this._accPlayed.acc = 0, this._accPlayed.t = 0, this._accPlayed.loopAcc = 0, p.forEach(function(
|
|
5102
|
-
e.removeClass(
|
|
5103
|
-
}), this.addClass(C.NO_START), this.emit(
|
|
5140
|
+
this.hasStart = !1, this.isError = !1, this._useAutoplay = !1, this.mediaPause(), this._accPlayed.acc = 0, this._accPlayed.t = 0, this._accPlayed.loopAcc = 0, p.forEach(function(m) {
|
|
5141
|
+
e.removeClass(m);
|
|
5142
|
+
}), this.addClass(C.NO_START), this.emit(At);
|
|
5104
5143
|
}
|
|
5105
5144
|
}, {
|
|
5106
5145
|
key: "reset",
|
|
@@ -5122,7 +5161,7 @@ var _a = ["play", "pause", "replay", "retry"], tn = 0, nn = 0, Pe = null, At = /
|
|
|
5122
5161
|
value: function() {
|
|
5123
5162
|
var e, i = this, n = this.innerContainer, s = this.root, l = this.media;
|
|
5124
5163
|
if (!(!s || !l)) {
|
|
5125
|
-
if (this.hasStart = !1, this._useAutoplay = !1, s.removeAttribute(He), this.updateAcc("destroy"), this._unbindEvents(), this._detachSourceEvents(this.media), f.clearAllTimers(this), this.emit(vi), (e =
|
|
5164
|
+
if (this.hasStart = !1, this._useAutoplay = !1, s.removeAttribute(He), this.updateAcc("destroy"), this._unbindEvents(), this._detachSourceEvents(this.media), f.clearAllTimers(this), this.emit(vi), (e = Ae) === null || e === void 0 || e.remove(this), te.destroy(this), $n(this), A(I(r.prototype), "destroy", this).call(this), this.fullscreen && this._fullscreenEl === this.root && this.exitFullscreen(), n)
|
|
5126
5165
|
for (var u = n.children, c = 0; c < u.length; c++)
|
|
5127
5166
|
n.removeChild(u[c]);
|
|
5128
5167
|
!n && l instanceof window.Node && s.contains(l) && s.removeChild(l), ["topBar", "leftBar", "rightBar", "innerContainer"].map(function(d) {
|
|
@@ -5140,7 +5179,7 @@ var _a = ["play", "pause", "replay", "retry"], tn = 0, nn = 0, Pe = null, At = /
|
|
|
5140
5179
|
key: "replay",
|
|
5141
5180
|
value: function() {
|
|
5142
5181
|
var e = this;
|
|
5143
|
-
this.removeClass(C.ENDED), this.currentTime = 0, this.isSeeking = !1,
|
|
5182
|
+
this.removeClass(C.ENDED), this.currentTime = 0, this.isSeeking = !1, ke(this, "replay", function() {
|
|
5144
5183
|
e.once(Ee, function() {
|
|
5145
5184
|
var i = e.mediaPlay();
|
|
5146
5185
|
i && i.catch && i.catch(function(n) {
|
|
@@ -5153,7 +5192,7 @@ var _a = ["play", "pause", "replay", "retry"], tn = 0, nn = 0, Pe = null, At = /
|
|
|
5153
5192
|
key: "retry",
|
|
5154
5193
|
value: function() {
|
|
5155
5194
|
var e = this;
|
|
5156
|
-
this.removeClass(C.ERROR), this.addClass(C.LOADING),
|
|
5195
|
+
this.removeClass(C.ERROR), this.addClass(C.LOADING), ke(this, "retry", function() {
|
|
5157
5196
|
var i = e.currentTime, n = e.config.url, s = f.isMSE(e.media) ? {
|
|
5158
5197
|
url: n
|
|
5159
5198
|
} : e._preProcessUrl(n);
|
|
@@ -5225,7 +5264,7 @@ var _a = ["play", "pause", "replay", "retry"], tn = 0, nn = 0, Pe = null, At = /
|
|
|
5225
5264
|
var i = e ? "".concat(C.INNER_FULLSCREEN, " ").concat(C.CSS_FULLSCREEN) : C.CSS_FULLSCREEN;
|
|
5226
5265
|
this.changeFullStyle(this.root, e, i);
|
|
5227
5266
|
var n = this.config.fullscreen, s = n === void 0 ? {} : n, l = s.useCssFullscreen === !0 || typeof s.useCssFullscreen == "function" && s.useCssFullscreen();
|
|
5228
|
-
l && (this.fullscreen = !0, this.emit(
|
|
5267
|
+
l && (this.fullscreen = !0, this.emit(we, !0)), this._cssfullscreenEl = e, this.cssfullscreen = !0, this.emit(_t, !0);
|
|
5229
5268
|
}
|
|
5230
5269
|
}, {
|
|
5231
5270
|
key: "exitCssFullscreen",
|
|
@@ -5235,7 +5274,7 @@ var _a = ["play", "pause", "replay", "retry"], tn = 0, nn = 0, Pe = null, At = /
|
|
|
5235
5274
|
this.recoverFullStyle(this.root, this._cssfullscreenEl, e);
|
|
5236
5275
|
else {
|
|
5237
5276
|
var i = this.config.fullscreen, n = i === void 0 ? {} : i, s = n.useCssFullscreen === !0 || typeof n.useCssFullscreen == "function" && n.useCssFullscreen();
|
|
5238
|
-
s ? (this.recoverFullStyle(this.root, this._cssfullscreenEl, e), this.fullscreen = !1, this.emit(
|
|
5277
|
+
s ? (this.recoverFullStyle(this.root, this._cssfullscreenEl, e), this.fullscreen = !1, this.emit(we, !1)) : this.removeClass(e);
|
|
5239
5278
|
}
|
|
5240
5279
|
this._cssfullscreenEl = null, this.cssfullscreen = !1, this.emit(_t, !1);
|
|
5241
5280
|
}
|
|
@@ -5245,13 +5284,13 @@ var _a = ["play", "pause", "replay", "retry"], tn = 0, nn = 0, Pe = null, At = /
|
|
|
5245
5284
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.config.fullscreenTarget;
|
|
5246
5285
|
this.cssfullscreen && this.exitCssFullscreen(e);
|
|
5247
5286
|
var i = e ? "".concat(C.INNER_FULLSCREEN, " ").concat(C.ROTATE_FULLSCREEN) : C.ROTATE_FULLSCREEN;
|
|
5248
|
-
this._fullscreenEl = e || this.root, this.changeFullStyle(this.root, e, i, C.PARENT_ROTATE_FULLSCREEN), this.isRotateFullscreen = !0, this.fullscreen = !0, this.setRotateDeg(90), this._rootStyle = this.root.getAttribute("style"), this.root.style.width = "".concat(window.innerHeight, "px"), this.emit(
|
|
5287
|
+
this._fullscreenEl = e || this.root, this.changeFullStyle(this.root, e, i, C.PARENT_ROTATE_FULLSCREEN), this.isRotateFullscreen = !0, this.fullscreen = !0, this.setRotateDeg(90), this._rootStyle = this.root.getAttribute("style"), this.root.style.width = "".concat(window.innerHeight, "px"), this.emit(we, !0);
|
|
5249
5288
|
}
|
|
5250
5289
|
}, {
|
|
5251
5290
|
key: "exitRotateFullscreen",
|
|
5252
5291
|
value: function(e) {
|
|
5253
5292
|
var i = this._fullscreenEl !== this.root ? "".concat(C.INNER_FULLSCREEN, " ").concat(C.ROTATE_FULLSCREEN) : C.ROTATE_FULLSCREEN;
|
|
5254
|
-
this.recoverFullStyle(this.root, this._fullscreenEl, i, C.PARENT_ROTATE_FULLSCREEN), this.isRotateFullscreen = !1, this.fullscreen = !1, this.setRotateDeg(0), this.emit(
|
|
5293
|
+
this.recoverFullStyle(this.root, this._fullscreenEl, i, C.PARENT_ROTATE_FULLSCREEN), this.isRotateFullscreen = !1, this.fullscreen = !1, this.setRotateDeg(0), this.emit(we, !1), this._rootStyle && (this.root.style.style = this._rootStyle, this._rootStyle = !1);
|
|
5255
5294
|
}
|
|
5256
5295
|
}, {
|
|
5257
5296
|
key: "setRotateDeg",
|
|
@@ -5327,7 +5366,10 @@ var _a = ["play", "pause", "replay", "retry"], tn = 0, nn = 0, Pe = null, At = /
|
|
|
5327
5366
|
}, {
|
|
5328
5367
|
key: "onLoadeddata",
|
|
5329
5368
|
value: function() {
|
|
5330
|
-
|
|
5369
|
+
var e = this;
|
|
5370
|
+
this.isError = !1, this.isSeeking = !1, this.__startTime > 0 && (this.duration > 0 ? this._seekToStartTime() : this.once(xe, function() {
|
|
5371
|
+
e._seekToStartTime();
|
|
5372
|
+
}));
|
|
5331
5373
|
}
|
|
5332
5374
|
}, {
|
|
5333
5375
|
key: "onLoadstart",
|
|
@@ -5444,16 +5486,16 @@ var _a = ["play", "pause", "replay", "retry"], tn = 0, nn = 0, Pe = null, At = /
|
|
|
5444
5486
|
this.videoPos.pi = c, u = u < 0 ? 0 : u;
|
|
5445
5487
|
var h = {
|
|
5446
5488
|
rotate: u
|
|
5447
|
-
}, d = 0, g = 0, p = 1,
|
|
5448
|
-
if (
|
|
5449
|
-
p = s > 0 ? 100 / s : l > 0 ? 100 / l : 1, h.scale = p, d = i > 0 ? (100 - s) / 2 - i : 0, h.y =
|
|
5450
|
-
else if (
|
|
5489
|
+
}, d = 0, g = 0, p = 1, m = Math.abs(u / 90), y = this.root, k = this.innerContainer, w = y.offsetWidth, b = k ? k.offsetHeight : y.offsetHeight, B = b, O = w;
|
|
5490
|
+
if (m % 2 === 0)
|
|
5491
|
+
p = s > 0 ? 100 / s : l > 0 ? 100 / l : 1, h.scale = p, d = i > 0 ? (100 - s) / 2 - i : 0, h.y = m === 2 ? 0 - d : d, g = n > 0 ? (100 - l) / 2 - n : 0, h.x = m === 2 ? 0 - g : g, this.media.style.width = "".concat(O, "px"), this.media.style.height = "".concat(B, "px");
|
|
5492
|
+
else if (m % 2 === 1) {
|
|
5451
5493
|
O = b, B = w;
|
|
5452
5494
|
var z = b - w;
|
|
5453
|
-
g = -z / 2 / O * 100, h.x =
|
|
5495
|
+
g = -z / 2 / O * 100, h.x = m === 3 ? g + i / 2 : g - i / 2, d = z / 2 / B * 100, h.y = m === 3 ? d + n / 2 : d - n / 2, h.scale = p, this.media.style.width = "".concat(O, "px"), this.media.style.height = "".concat(B, "px");
|
|
5454
5496
|
}
|
|
5455
|
-
var
|
|
5456
|
-
this.media.style.transform =
|
|
5497
|
+
var L = f.getTransformStyle(h, this.media.style.transform || this.media.style.webkitTransform);
|
|
5498
|
+
this.media.style.transform = L, this.media.style.webkitTransform = L;
|
|
5457
5499
|
}
|
|
5458
5500
|
}
|
|
5459
5501
|
}
|
|
@@ -5487,7 +5529,7 @@ var _a = ["play", "pause", "replay", "retry"], tn = 0, nn = 0, Pe = null, At = /
|
|
|
5487
5529
|
key: "playNext",
|
|
5488
5530
|
value: function(e) {
|
|
5489
5531
|
var i = this;
|
|
5490
|
-
this.resetState(), this.setConfig(e), this._currentTime = 0, this._duration = 0,
|
|
5532
|
+
this.resetState(), this.setConfig(e), this._currentTime = 0, this._duration = 0, ke(this, "playnext", function() {
|
|
5491
5533
|
i.start(), i.emit(kt, e);
|
|
5492
5534
|
});
|
|
5493
5535
|
}
|
|
@@ -5501,18 +5543,18 @@ var _a = ["play", "pause", "replay", "retry"], tn = 0, nn = 0, Pe = null, At = /
|
|
|
5501
5543
|
var n = this.media, s = n.videoWidth, l = n.videoHeight, u = this.config, c = u.fitVideoSize, h = u.videoFillMode;
|
|
5502
5544
|
if ((h === "fill" || h === "cover" || h === "contain") && this.setAttribute("data-xgfill", h), !(!l || !s)) {
|
|
5503
5545
|
this._videoHeight = l, this._videoWidth = s;
|
|
5504
|
-
var d = this.controls && this.innerContainer ? this.controls.root.getBoundingClientRect().height : 0, g = i.width, p = i.height - d,
|
|
5505
|
-
c === "auto" &&
|
|
5546
|
+
var d = this.controls && this.innerContainer ? this.controls.root.getBoundingClientRect().height : 0, g = i.width, p = i.height - d, m = parseInt(s / l * 1e3, 10), y = parseInt(g / p * 1e3, 10), k = g, w = p, b = {};
|
|
5547
|
+
c === "auto" && y > m || c === "fixWidth" ? (w = g / m * 1e3, this.config.fluid ? b.paddingTop = "".concat(w * 100 / k, "%") : b.height = "".concat(w + d, "px")) : (c === "auto" && y < m || c === "fixHeight") && (k = m * p / 1e3, b.width = "".concat(k, "px")), !this.fullscreen && !this.cssfullscreen && Object.keys(b).forEach(function(O) {
|
|
5506
5548
|
e.root.style[O] = b[O];
|
|
5507
|
-
}), (h === "fillHeight" &&
|
|
5549
|
+
}), (h === "fillHeight" && y < m || h === "fillWidth" && y > m) && this.setAttribute("data-xgfill", "cover");
|
|
5508
5550
|
var B = {
|
|
5509
|
-
videoScale:
|
|
5551
|
+
videoScale: m,
|
|
5510
5552
|
vWidth: k,
|
|
5511
5553
|
vHeight: w,
|
|
5512
5554
|
cWidth: k,
|
|
5513
5555
|
cHeight: w + d
|
|
5514
5556
|
};
|
|
5515
|
-
this.resizePosition(), this.emit(
|
|
5557
|
+
this.resizePosition(), this.emit(Oe, B);
|
|
5516
5558
|
}
|
|
5517
5559
|
}
|
|
5518
5560
|
}
|
|
@@ -5539,6 +5581,11 @@ var _a = ["play", "pause", "replay", "retry"], tn = 0, nn = 0, Pe = null, At = /
|
|
|
5539
5581
|
url: e
|
|
5540
5582
|
};
|
|
5541
5583
|
}
|
|
5584
|
+
}, {
|
|
5585
|
+
key: "_seekToStartTime",
|
|
5586
|
+
value: function() {
|
|
5587
|
+
this.__startTime > 0 && this.duration > 0 && (this.currentTime = this.__startTime > this.duration ? this.duration : this.__startTime, this.__startTime = -1);
|
|
5588
|
+
}
|
|
5542
5589
|
}, {
|
|
5543
5590
|
key: "state",
|
|
5544
5591
|
get: function() {
|
|
@@ -5652,18 +5699,18 @@ var _a = ["play", "pause", "replay", "retry"], tn = 0, nn = 0, Pe = null, At = /
|
|
|
5652
5699
|
}, {
|
|
5653
5700
|
key: "readyState",
|
|
5654
5701
|
get: function() {
|
|
5655
|
-
return
|
|
5702
|
+
return A(I(r.prototype), "readyState", this);
|
|
5656
5703
|
}
|
|
5657
5704
|
}, {
|
|
5658
5705
|
key: "error",
|
|
5659
5706
|
get: function() {
|
|
5660
|
-
var e =
|
|
5707
|
+
var e = A(I(r.prototype), "error", this);
|
|
5661
5708
|
return this.i18n[e] || e;
|
|
5662
5709
|
}
|
|
5663
5710
|
}, {
|
|
5664
5711
|
key: "networkState",
|
|
5665
5712
|
get: function() {
|
|
5666
|
-
return
|
|
5713
|
+
return A(I(r.prototype), "networkState", this);
|
|
5667
5714
|
}
|
|
5668
5715
|
}, {
|
|
5669
5716
|
key: "fullscreenChanging",
|
|
@@ -5757,7 +5804,7 @@ var _a = ["play", "pause", "replay", "retry"], tn = 0, nn = 0, Pe = null, At = /
|
|
|
5757
5804
|
key: "setUserActive",
|
|
5758
5805
|
value: function(e, i) {
|
|
5759
5806
|
var n;
|
|
5760
|
-
typeof i == "boolean" && i !== this.muted && (this.addInnerOP("volumechange"), f.typeOf(i) === Boolean && (this.muted = i)), (n =
|
|
5807
|
+
typeof i == "boolean" && i !== this.muted && (this.addInnerOP("volumechange"), f.typeOf(i) === Boolean && (this.muted = i)), (n = Ae) === null || n === void 0 || n.setActive(this.playerId, e);
|
|
5761
5808
|
}
|
|
5762
5809
|
}], [{
|
|
5763
5810
|
key: "debugger",
|
|
@@ -5770,22 +5817,22 @@ var _a = ["play", "pause", "replay", "retry"], tn = 0, nn = 0, Pe = null, At = /
|
|
|
5770
5817
|
}, {
|
|
5771
5818
|
key: "instManager",
|
|
5772
5819
|
get: function() {
|
|
5773
|
-
return
|
|
5820
|
+
return Ae;
|
|
5774
5821
|
},
|
|
5775
5822
|
set: function(e) {
|
|
5776
|
-
|
|
5823
|
+
Ae = e;
|
|
5777
5824
|
}
|
|
5778
5825
|
}, {
|
|
5779
5826
|
key: "getCurrentUserActivePlayerId",
|
|
5780
5827
|
value: function() {
|
|
5781
5828
|
var e;
|
|
5782
|
-
return (e =
|
|
5829
|
+
return (e = Ae) === null || e === void 0 ? void 0 : e.getActiveId();
|
|
5783
5830
|
}
|
|
5784
5831
|
}, {
|
|
5785
5832
|
key: "setCurrentUserActive",
|
|
5786
5833
|
value: function(e, i) {
|
|
5787
5834
|
var n;
|
|
5788
|
-
(n =
|
|
5835
|
+
(n = Ae) === null || n === void 0 || n.setActive(e, i);
|
|
5789
5836
|
}
|
|
5790
5837
|
}, {
|
|
5791
5838
|
key: "isHevcSupported",
|
|
@@ -5808,10 +5855,10 @@ var _a = ["play", "pause", "replay", "retry"], tn = 0, nn = 0, Pe = null, At = /
|
|
|
5808
5855
|
r.plugins || (r.plugins = {}), r.plugins[e] = i;
|
|
5809
5856
|
}
|
|
5810
5857
|
}]), r;
|
|
5811
|
-
}(
|
|
5812
|
-
_(
|
|
5813
|
-
_(
|
|
5814
|
-
|
|
5858
|
+
}(Zs);
|
|
5859
|
+
_(Lt, "defaultPreset", null);
|
|
5860
|
+
_(Lt, "XgVideoProxy", null);
|
|
5861
|
+
Lt.instManager = qn.getInstance();
|
|
5815
5862
|
function ne() {
|
|
5816
5863
|
return (/* @__PURE__ */ new Date()).getTime();
|
|
5817
5864
|
}
|
|
@@ -5823,7 +5870,7 @@ var Le = {
|
|
|
5823
5870
|
WAIT_END: "waitingEnd",
|
|
5824
5871
|
SEEK_START: "seekStart",
|
|
5825
5872
|
SEEK_END: "seekEnd"
|
|
5826
|
-
},
|
|
5873
|
+
}, ka = /* @__PURE__ */ function(o) {
|
|
5827
5874
|
S(r, o);
|
|
5828
5875
|
var a = x(r);
|
|
5829
5876
|
function r() {
|
|
@@ -5886,7 +5933,7 @@ var Le = {
|
|
|
5886
5933
|
e.endState("destroy");
|
|
5887
5934
|
}), this.on(Pt, function() {
|
|
5888
5935
|
e.endState("urlChange"), M.logInfo("[xgLogger]".concat(e.player.playerId, " URL_CHANGE")), e._state.isFFSend && e._onReset();
|
|
5889
|
-
}), this.on([fi, Te], this._onPlaying), this.on(ut, this._onWaiting), this.on(lt, this._onError), this.on(
|
|
5936
|
+
}), this.on([fi, Te], this._onPlaying), this.on(ut, this._onWaiting), this.on(lt, this._onError), this.on(At, function() {
|
|
5890
5937
|
M.logInfo("[xgLogger]".concat(e.player.playerId, " RESET")), e.endState("reset"), e._initOnceEvents(), e._onReset();
|
|
5891
5938
|
});
|
|
5892
5939
|
}
|
|
@@ -5974,13 +6021,13 @@ var Le = {
|
|
|
5974
6021
|
}
|
|
5975
6022
|
}]), r;
|
|
5976
6023
|
}(U);
|
|
5977
|
-
function
|
|
6024
|
+
function ba() {
|
|
5978
6025
|
return new DOMParser().parseFromString(`<svg class="xgplayer-replay-svg" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 78 78" width="78" height="78">
|
|
5979
6026
|
<path fill="#fff" transform="translate(20, 20)" d="M8.22708362,13.8757234 L11.2677371,12.6472196 C11.7798067,12.4403301 12.3626381,12.6877273 12.5695276,13.1997969 L12.9441342,14.1269807 C13.1510237,14.6390502 12.9036264,15.2218816 12.3915569,15.4287712 L6.8284538,17.6764107 L5.90126995,18.0510173 C5.38920044,18.2579068 4.80636901,18.0105096 4.5994795,17.49844 L1.97723335,11.0081531 C1.77034384,10.4960836 2.0177411,9.91325213 2.52981061,9.70636262 L3.45699446,9.33175602 C3.96906396,9.12486652 4.5518954,9.37226378 4.75878491,9.88433329 L5.67885163,12.1615783 C7.99551726,6.6766934 13.3983951,3 19.5,3 C27.7842712,3 34.5,9.71572875 34.5,18 C34.5,26.2842712 27.7842712,33 19.5,33 C15.4573596,33 11.6658607,31.3912946 8.87004692,28.5831991 C8.28554571,27.9961303 8.28762719,27.0463851 8.87469603,26.4618839 C9.46176488,25.8773827 10.4115101,25.8794641 10.9960113,26.466533 C13.2344327,28.7147875 16.263503,30 19.5,30 C26.127417,30 31.5,24.627417 31.5,18 C31.5,11.372583 26.127417,6 19.5,6 C14.4183772,6 9.94214483,9.18783811 8.22708362,13.8757234 Z"></path>
|
|
5980
6027
|
</svg>
|
|
5981
6028
|
`, "image/svg+xml").firstChild;
|
|
5982
6029
|
}
|
|
5983
|
-
var
|
|
6030
|
+
var wa = /* @__PURE__ */ function(o) {
|
|
5984
6031
|
S(r, o);
|
|
5985
6032
|
var a = x(r);
|
|
5986
6033
|
function r() {
|
|
@@ -5990,7 +6037,7 @@ var ba = /* @__PURE__ */ function(o) {
|
|
|
5990
6037
|
key: "registerIcons",
|
|
5991
6038
|
value: function() {
|
|
5992
6039
|
return {
|
|
5993
|
-
replay:
|
|
6040
|
+
replay: ba
|
|
5994
6041
|
};
|
|
5995
6042
|
}
|
|
5996
6043
|
}, {
|
|
@@ -6063,7 +6110,7 @@ var ba = /* @__PURE__ */ function(o) {
|
|
|
6063
6110
|
};
|
|
6064
6111
|
}
|
|
6065
6112
|
}]), r;
|
|
6066
|
-
}(U),
|
|
6113
|
+
}(U), Ta = /* @__PURE__ */ function(o) {
|
|
6067
6114
|
S(r, o);
|
|
6068
6115
|
var a = x(r);
|
|
6069
6116
|
function r() {
|
|
@@ -6188,7 +6235,7 @@ function Ci() {
|
|
|
6188
6235
|
`, "image/svg+xml").firstChild;
|
|
6189
6236
|
}
|
|
6190
6237
|
var ye = {};
|
|
6191
|
-
function
|
|
6238
|
+
function Ea(o, a) {
|
|
6192
6239
|
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
|
|
6193
6240
|
start: null,
|
|
6194
6241
|
end: null
|
|
@@ -6206,7 +6253,7 @@ function rn(o) {
|
|
|
6206
6253
|
window.clearTimeout(ye[a].id), delete ye[a];
|
|
6207
6254
|
});
|
|
6208
6255
|
}
|
|
6209
|
-
var
|
|
6256
|
+
var Sa = /* @__PURE__ */ function(o) {
|
|
6210
6257
|
S(r, o);
|
|
6211
6258
|
var a = x(r);
|
|
6212
6259
|
function r(t) {
|
|
@@ -6218,33 +6265,45 @@ var Ea = /* @__PURE__ */ function(o) {
|
|
|
6218
6265
|
}), _(v(e), "onAutoplayStart", function() {
|
|
6219
6266
|
if (!e.autoPlayStart) {
|
|
6220
6267
|
var i = e.config.mode === "auto" ? "auto-hide" : "hide";
|
|
6221
|
-
f.addClass(e.root, i), e.autoPlayStart = !0, e.
|
|
6268
|
+
f.addClass(e.root, i), e.autoPlayStart = !0, e.toggleTo("play");
|
|
6222
6269
|
}
|
|
6223
6270
|
}), e.autoPlayStart = !1, e;
|
|
6224
6271
|
}
|
|
6225
6272
|
return E(r, [{
|
|
6226
6273
|
key: "afterCreate",
|
|
6274
|
+
value: function() {
|
|
6275
|
+
var e = this.playerConfig;
|
|
6276
|
+
this.initIcons(), this.listenEvents(), this.bindClickEvents(), e.autoplay || this.show();
|
|
6277
|
+
}
|
|
6278
|
+
}, {
|
|
6279
|
+
key: "listenEvents",
|
|
6227
6280
|
value: function() {
|
|
6228
6281
|
var e = this, i = this.player, n = this.playerConfig;
|
|
6229
|
-
this.
|
|
6282
|
+
this.once(gi, function() {
|
|
6230
6283
|
n && (n.lang && n.lang === "en" ? f.addClass(i.root, "lang-is-en") : n.lang === "jp" && f.addClass(i.root, "lang-is-jp"));
|
|
6231
|
-
}), this.on(Ue, this.onAutoplayStart),
|
|
6284
|
+
}), this.on(Ue, this.onAutoplayStart), this.on(pi, function() {
|
|
6232
6285
|
var s = e.config.mode === "auto" ? "auto-hide" : "hide";
|
|
6233
6286
|
e.setAttr("data-state", "play"), f.removeClass(e.root, s), e.show();
|
|
6234
6287
|
}), this.on(fe, function() {
|
|
6235
|
-
e.
|
|
6288
|
+
e.toggleTo("play");
|
|
6236
6289
|
}), this.on(tt, function() {
|
|
6237
|
-
e.
|
|
6238
|
-
}), this.on(
|
|
6290
|
+
e.toggleTo("pause");
|
|
6291
|
+
}), this.on(At, function() {
|
|
6239
6292
|
e.onPlayerReset();
|
|
6240
|
-
})
|
|
6241
|
-
|
|
6242
|
-
|
|
6243
|
-
|
|
6244
|
-
|
|
6293
|
+
});
|
|
6294
|
+
}
|
|
6295
|
+
}, {
|
|
6296
|
+
key: "bindClickEvents",
|
|
6297
|
+
value: function() {
|
|
6298
|
+
var e = this;
|
|
6299
|
+
this.clickHandler = this.hook("startClick", this.switchPausePlay, {
|
|
6300
|
+
pre: function(n) {
|
|
6301
|
+
n.cancelable && n.preventDefault(), n.stopPropagation();
|
|
6302
|
+
var s = e.player.paused;
|
|
6303
|
+
e.emitUserAction(n, "switch_play_pause", {
|
|
6245
6304
|
props: "paused",
|
|
6246
|
-
from:
|
|
6247
|
-
to: !
|
|
6305
|
+
from: s,
|
|
6306
|
+
to: !s
|
|
6248
6307
|
});
|
|
6249
6308
|
}
|
|
6250
6309
|
}), this.bind(["click", "touchend"], this.clickHandler);
|
|
@@ -6298,7 +6357,7 @@ var Ea = /* @__PURE__ */ function(o) {
|
|
|
6298
6357
|
key: "animate",
|
|
6299
6358
|
value: function(e) {
|
|
6300
6359
|
var i = this;
|
|
6301
|
-
this._animateId =
|
|
6360
|
+
this._animateId = Ea("pauseplay", 400, {
|
|
6302
6361
|
start: function() {
|
|
6303
6362
|
f.addClass(i.root, "interact"), i.show(), i.switchStatus(!0);
|
|
6304
6363
|
},
|
|
@@ -6323,6 +6382,11 @@ var Ea = /* @__PURE__ */ function(o) {
|
|
|
6323
6382
|
}
|
|
6324
6383
|
}, {
|
|
6325
6384
|
key: "onPlayPause",
|
|
6385
|
+
value: function(e) {
|
|
6386
|
+
this.toggleTo(e);
|
|
6387
|
+
}
|
|
6388
|
+
}, {
|
|
6389
|
+
key: "toggleTo",
|
|
6326
6390
|
value: function(e) {
|
|
6327
6391
|
var i = this.config, n = this.player;
|
|
6328
6392
|
if (!(!n || n.state < H.RUNNING || !this.autoPlayStart)) {
|
|
@@ -6381,7 +6445,7 @@ var Ea = /* @__PURE__ */ function(o) {
|
|
|
6381
6445
|
};
|
|
6382
6446
|
}
|
|
6383
6447
|
}]), r;
|
|
6384
|
-
}(U),
|
|
6448
|
+
}(U), xa = /* @__PURE__ */ function(o) {
|
|
6385
6449
|
S(r, o);
|
|
6386
6450
|
var a = x(r);
|
|
6387
6451
|
function r() {
|
|
@@ -6480,8 +6544,8 @@ function an(o) {
|
|
|
6480
6544
|
var a = parseFloat(o), r = o.indexOf("%") === -1 && !Number.isNaN(a);
|
|
6481
6545
|
return r && a;
|
|
6482
6546
|
}
|
|
6483
|
-
var ki = ["paddingLeft", "paddingRight", "paddingTop", "paddingBottom", "marginLeft", "marginRight", "marginTop", "marginBottom", "borderLeftWidth", "borderRightWidth", "borderTopWidth", "borderBottomWidth"],
|
|
6484
|
-
function
|
|
6547
|
+
var ki = ["paddingLeft", "paddingRight", "paddingTop", "paddingBottom", "marginLeft", "marginRight", "marginTop", "marginBottom", "borderLeftWidth", "borderRightWidth", "borderTopWidth", "borderBottomWidth"], Zn = ki.length;
|
|
6548
|
+
function Ia() {
|
|
6485
6549
|
for (var o = {
|
|
6486
6550
|
width: 0,
|
|
6487
6551
|
height: 0,
|
|
@@ -6489,31 +6553,31 @@ function xa() {
|
|
|
6489
6553
|
innerHeight: 0,
|
|
6490
6554
|
outerWidth: 0,
|
|
6491
6555
|
outerHeight: 0
|
|
6492
|
-
}, a = 0; a <
|
|
6556
|
+
}, a = 0; a < Zn; a++) {
|
|
6493
6557
|
var r = ki[a];
|
|
6494
6558
|
o[r] = 0;
|
|
6495
6559
|
}
|
|
6496
6560
|
return o;
|
|
6497
6561
|
}
|
|
6498
|
-
function
|
|
6562
|
+
function Pa(o) {
|
|
6499
6563
|
var a = window.getComputedStyle(o);
|
|
6500
6564
|
return a;
|
|
6501
6565
|
}
|
|
6502
6566
|
function on(o) {
|
|
6503
6567
|
if (typeof o == "string" && (o = document.querySelector(o)), !(!o || re(o) !== "object" || !o.nodeType)) {
|
|
6504
|
-
var a =
|
|
6568
|
+
var a = Pa(o);
|
|
6505
6569
|
if (a.display === "none")
|
|
6506
|
-
return
|
|
6570
|
+
return Ia();
|
|
6507
6571
|
var r = {};
|
|
6508
6572
|
r.width = o.offsetWidth, r.height = o.offsetHeight;
|
|
6509
|
-
for (var t = r.isBorderBox = a.boxSizing === "border-box", e = 0; e <
|
|
6573
|
+
for (var t = r.isBorderBox = a.boxSizing === "border-box", e = 0; e < Zn; e++) {
|
|
6510
6574
|
var i = ki[e], n = a[i], s = parseFloat(n);
|
|
6511
6575
|
r[i] = Number.isNaN(s) ? 0 : s;
|
|
6512
6576
|
}
|
|
6513
|
-
var l = r.paddingLeft + r.paddingRight, u = r.paddingTop + r.paddingBottom, c = r.marginLeft + r.marginRight, h = r.marginTop + r.marginBottom, d = r.borderLeftWidth + r.borderRightWidth, g = r.borderTopWidth + r.borderBottomWidth, p = t,
|
|
6514
|
-
|
|
6515
|
-
var
|
|
6516
|
-
return
|
|
6577
|
+
var l = r.paddingLeft + r.paddingRight, u = r.paddingTop + r.paddingBottom, c = r.marginLeft + r.marginRight, h = r.marginTop + r.marginBottom, d = r.borderLeftWidth + r.borderRightWidth, g = r.borderTopWidth + r.borderBottomWidth, p = t, m = an(a.width);
|
|
6578
|
+
m !== !1 && (r.width = m + (p ? 0 : l + d));
|
|
6579
|
+
var y = an(a.height);
|
|
6580
|
+
return y !== !1 && (r.height = y + (p ? 0 : u + g)), r.innerWidth = r.width - (l + d), r.innerHeight = r.height - (u + g), r.outerWidth = r.width + c, r.outerHeight = r.height + h, r;
|
|
6517
6581
|
}
|
|
6518
6582
|
}
|
|
6519
6583
|
function zt(o, a) {
|
|
@@ -6531,7 +6595,7 @@ var jt = {
|
|
|
6531
6595
|
mousedown: ["mousemove", "mouseup"],
|
|
6532
6596
|
touchstart: ["touchmove", "touchend", "touchcancel"],
|
|
6533
6597
|
pointerdown: ["pointermove", "pointerup", "pointercancel"]
|
|
6534
|
-
},
|
|
6598
|
+
}, Aa = /* @__PURE__ */ function(o) {
|
|
6535
6599
|
S(r, o);
|
|
6536
6600
|
var a = x(r);
|
|
6537
6601
|
function r(t) {
|
|
@@ -6797,7 +6861,7 @@ var jt = {
|
|
|
6797
6861
|
i.controls.registerPlugin(sn, s, sn.pluginName);
|
|
6798
6862
|
}
|
|
6799
6863
|
var l = f.checkTouchSupport() ? "touchend" : "click";
|
|
6800
|
-
this.bind(".mini-cancel-btn", l, this.onCancelClick), this.bind(".play-icon", l, this.onCenterClick), this.config.disableDrag || (this._draggabilly = new
|
|
6864
|
+
this.bind(".mini-cancel-btn", l, this.onCancelClick), this.bind(".play-icon", l, this.onCenterClick), this.config.disableDrag || (this._draggabilly = new Aa(this.player.root, {
|
|
6801
6865
|
handle: this.root
|
|
6802
6866
|
})), this.config.isScrollSwitch && window.addEventListener("scroll", this.onScroll);
|
|
6803
6867
|
}
|
|
@@ -6924,7 +6988,7 @@ var jt = {
|
|
|
6924
6988
|
}), _(v(t), "onVideoClick", function(s) {
|
|
6925
6989
|
var l = v(t), u = l.player, c = l.playerConfig;
|
|
6926
6990
|
s.target && c.closeVideoClick || (s.target === u.root || s.target === u.media || s.target === u.innerContainer || s.target === u.media.__canvas) && (s.preventDefault(), c.closeVideoStopPropagation || s.stopPropagation(), t._clickCount++, t.clickTimer && (clearTimeout(t.clickTimer), t.clickTimer = null), t.clickTimer = setTimeout(function() {
|
|
6927
|
-
t._clickCount && (t._clickCount--,
|
|
6991
|
+
t._clickCount && (t._clickCount--, ke(v(t), Wt[0], function(h, d) {
|
|
6928
6992
|
t.switchPlayPause(d.e);
|
|
6929
6993
|
}, {
|
|
6930
6994
|
e: s,
|
|
@@ -6938,7 +7002,7 @@ var jt = {
|
|
|
6938
7002
|
t._clickCount = 0;
|
|
6939
7003
|
return;
|
|
6940
7004
|
}
|
|
6941
|
-
t._clickCount = 0, t.clickTimer && (clearTimeout(t.clickTimer), t.clickTimer = null), s.preventDefault(), s.stopPropagation(),
|
|
7005
|
+
t._clickCount = 0, t.clickTimer && (clearTimeout(t.clickTimer), t.clickTimer = null), s.preventDefault(), s.stopPropagation(), ke(v(t), Wt[1], function(h, d) {
|
|
6942
7006
|
t.emitUserAction(d.e, "switch_fullscreen", {
|
|
6943
7007
|
props: "fullscreen",
|
|
6944
7008
|
from: u.fullscreen,
|
|
@@ -7003,7 +7067,7 @@ var jt = {
|
|
|
7003
7067
|
return {};
|
|
7004
7068
|
}
|
|
7005
7069
|
}]), r;
|
|
7006
|
-
}(
|
|
7070
|
+
}(Me), De = {
|
|
7007
7071
|
PRESS: "press",
|
|
7008
7072
|
PRESS_END: "pressend",
|
|
7009
7073
|
DOUBlE_CLICK: "doubleclick",
|
|
@@ -7011,12 +7075,12 @@ var jt = {
|
|
|
7011
7075
|
TOUCH_MOVE: "touchmove",
|
|
7012
7076
|
TOUCH_START: "touchstart",
|
|
7013
7077
|
TOUCH_END: "touchend"
|
|
7014
|
-
},
|
|
7078
|
+
}, Da = {
|
|
7015
7079
|
start: "touchstart",
|
|
7016
7080
|
end: "touchend",
|
|
7017
7081
|
move: "touchmove",
|
|
7018
7082
|
cancel: "touchcancel"
|
|
7019
|
-
},
|
|
7083
|
+
}, Ra = {
|
|
7020
7084
|
start: "mousedown",
|
|
7021
7085
|
end: "mouseup",
|
|
7022
7086
|
move: "mousemove",
|
|
@@ -7025,7 +7089,7 @@ var jt = {
|
|
|
7025
7089
|
function un(o) {
|
|
7026
7090
|
return o && o.length > 0 ? o[o.length - 1] : null;
|
|
7027
7091
|
}
|
|
7028
|
-
function
|
|
7092
|
+
function Oa() {
|
|
7029
7093
|
return {
|
|
7030
7094
|
pressDelay: 600,
|
|
7031
7095
|
dbClickDelay: 200,
|
|
@@ -7035,30 +7099,30 @@ function Ra() {
|
|
|
7035
7099
|
needPreventDefault: !0
|
|
7036
7100
|
};
|
|
7037
7101
|
}
|
|
7038
|
-
var
|
|
7102
|
+
var Ma = /* @__PURE__ */ function() {
|
|
7039
7103
|
function o(a) {
|
|
7040
7104
|
var r = this, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
7041
7105
|
eventType: "touch"
|
|
7042
7106
|
};
|
|
7043
7107
|
T(this, o), _(this, "onTouchStart", function(e) {
|
|
7044
7108
|
var i = r._pos, n = r.root, s = un(e.touches);
|
|
7045
|
-
i.x = s ? parseInt(s.pageX, 10) : e.pageX, i.y = s ? parseInt(s.pageX, 10) : e.pageX, i.start = !0, r.__setPress(e), n.addEventListener(r.events.end, r.onTouchEnd), n.addEventListener(r.events.cancel, r.onTouchCancel), n.addEventListener(r.events.move, r.onTouchMove), r.trigger(
|
|
7109
|
+
i.x = s ? parseInt(s.pageX, 10) : e.pageX, i.y = s ? parseInt(s.pageX, 10) : e.pageX, i.start = !0, r.__setPress(e), n.addEventListener(r.events.end, r.onTouchEnd), n.addEventListener(r.events.cancel, r.onTouchCancel), n.addEventListener(r.events.move, r.onTouchMove), r.trigger(De.TOUCH_START, e);
|
|
7046
7110
|
}), _(this, "onTouchCancel", function(e) {
|
|
7047
7111
|
r.onTouchEnd(e);
|
|
7048
7112
|
}), _(this, "onTouchEnd", function(e) {
|
|
7049
7113
|
var i = r._pos, n = r.root;
|
|
7050
|
-
r.__clearPress(), n.removeEventListener(r.events.cancel, r.onTouchCancel), n.removeEventListener(r.events.end, r.onTouchEnd), n.removeEventListener(r.events.move, r.onTouchMove), e.moving = i.moving, e.press = i.press, i.press && r.trigger(
|
|
7114
|
+
r.__clearPress(), n.removeEventListener(r.events.cancel, r.onTouchCancel), n.removeEventListener(r.events.end, r.onTouchEnd), n.removeEventListener(r.events.move, r.onTouchMove), e.moving = i.moving, e.press = i.press, i.press && r.trigger(De.PRESS_END, e), r.trigger(De.TOUCH_END, e), !i.press && !i.moving && r.__setDb(e), i.press = !1, i.start = !1, i.moving = !1;
|
|
7051
7115
|
}), _(this, "onTouchMove", function(e) {
|
|
7052
7116
|
var i = r._pos, n = r.config, s = un(e.touches), l = s ? parseInt(s.pageX, 10) : e.pageX, u = s ? parseInt(s.pageY, 10) : e.pageX, c = l - i.x, h = u - i.y;
|
|
7053
|
-
Math.abs(h) < n.miniStep && Math.abs(c) < n.miniStep || (r.__clearPress(), i.press && r.trigger(
|
|
7117
|
+
Math.abs(h) < n.miniStep && Math.abs(c) < n.miniStep || (r.__clearPress(), i.press && r.trigger(De.PRESS_END, e), i.press = !1, i.moving = !0, r.trigger(De.TOUCH_MOVE, e));
|
|
7054
7118
|
}), this._pos = {
|
|
7055
7119
|
moving: !1,
|
|
7056
7120
|
start: !1,
|
|
7057
7121
|
x: 0,
|
|
7058
7122
|
y: 0
|
|
7059
|
-
}, this.config =
|
|
7123
|
+
}, this.config = Oa(), Object.keys(t).map(function(e) {
|
|
7060
7124
|
r.config[e] = t[e];
|
|
7061
|
-
}), this.root = a, this.events = t.eventType === "mouse" ?
|
|
7125
|
+
}), this.root = a, this.events = t.eventType === "mouse" ? Ra : Da, this.pressIntrvalId = null, this.dbIntrvalId = null, this.__handlers = {}, this._initEvent();
|
|
7062
7126
|
}
|
|
7063
7127
|
return E(o, [{
|
|
7064
7128
|
key: "_initEvent",
|
|
@@ -7070,7 +7134,7 @@ var Oa = /* @__PURE__ */ function() {
|
|
|
7070
7134
|
value: function(r) {
|
|
7071
7135
|
var t = this, e = this.config;
|
|
7072
7136
|
this.pressIntrvalId && this.__clearPress(), this.pressIntrvalId = setTimeout(function() {
|
|
7073
|
-
t.trigger(
|
|
7137
|
+
t.trigger(De.PRESS, r), t._pos.press = !0, t.__clearPress();
|
|
7074
7138
|
}, e.pressDelay);
|
|
7075
7139
|
}
|
|
7076
7140
|
}, {
|
|
@@ -7083,11 +7147,11 @@ var Oa = /* @__PURE__ */ function() {
|
|
|
7083
7147
|
value: function(r) {
|
|
7084
7148
|
var t = this, e = this.config;
|
|
7085
7149
|
if (this.dbIntrvalId) {
|
|
7086
|
-
this.__clearDb(), this.trigger(
|
|
7150
|
+
this.__clearDb(), this.trigger(De.DOUBlE_CLICK, r);
|
|
7087
7151
|
return;
|
|
7088
7152
|
}
|
|
7089
7153
|
this.dbIntrvalId = setTimeout(function() {
|
|
7090
|
-
t.__clearDb(), !t._pos.start && !t._pos.press && !t._pos.moving && t.trigger(
|
|
7154
|
+
t.__clearDb(), !t._pos.start && !t._pos.press && !t._pos.moving && t.trigger(De.CLICK, r);
|
|
7091
7155
|
}, e.dbClickDelay);
|
|
7092
7156
|
}
|
|
7093
7157
|
}, {
|
|
@@ -7137,7 +7201,7 @@ var Oa = /* @__PURE__ */ function() {
|
|
|
7137
7201
|
}
|
|
7138
7202
|
}]), o;
|
|
7139
7203
|
}();
|
|
7140
|
-
function
|
|
7204
|
+
function Na() {
|
|
7141
7205
|
return new DOMParser().parseFromString(`<svg width="20" height="9" viewBox="0 0 8 9" fill="none" xmlns="http://www.w3.org/2000/svg"
|
|
7142
7206
|
xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
7143
7207
|
<path opacity="0.54"
|
|
@@ -7151,7 +7215,7 @@ var Ke = {
|
|
|
7151
7215
|
SEEKING: "seeking",
|
|
7152
7216
|
PLAYBACK: "playbackrate",
|
|
7153
7217
|
LIGHT: ""
|
|
7154
|
-
}, Kt = ["videoClick", "videoDbClick"],
|
|
7218
|
+
}, Kt = ["videoClick", "videoDbClick"], Fa = /* @__PURE__ */ function(o) {
|
|
7155
7219
|
S(r, o);
|
|
7156
7220
|
var a = x(r);
|
|
7157
7221
|
function r(t) {
|
|
@@ -7168,14 +7232,14 @@ var Ke = {
|
|
|
7168
7232
|
}), _(v(e), "onTouchMove", function(i) {
|
|
7169
7233
|
var n = e.getTouche(i), s = v(e), l = s.pos, u = s.config, c = s.player;
|
|
7170
7234
|
if (!(!n || u.disableGesture || !e.duration || !l.isStart)) {
|
|
7171
|
-
var h = u.miniMoveStep, d = u.hideControlsActive, g = parseInt(n.pageX - l.left, 10), p = parseInt(n.pageY - l.top, 10),
|
|
7172
|
-
if (Math.abs(
|
|
7173
|
-
var k =
|
|
7174
|
-
if (b === -1 && (b = e.checkScope(
|
|
7235
|
+
var h = u.miniMoveStep, d = u.hideControlsActive, g = parseInt(n.pageX - l.left, 10), p = parseInt(n.pageY - l.top, 10), m = c.rotateDeg === 90 ? p : g, y = c.rotateDeg === 90 ? g : p;
|
|
7236
|
+
if (Math.abs(m - l.x) > h || Math.abs(y - l.y) > h) {
|
|
7237
|
+
var k = m - l.x, w = y - l.y, b = l.scope;
|
|
7238
|
+
if (b === -1 && (b = e.checkScope(m, y, k, w, l), b === 0 && (d ? c.blur() : c.focus({
|
|
7175
7239
|
autoHide: !1
|
|
7176
7240
|
}), !l.time && (l.time = parseInt(c.currentTime * 1e3, 10) + e.timeOffset * 1e3)), l.scope = b), b === -1 || b > 0 && !u.gestureY || b === 0 && !u.gestureX)
|
|
7177
7241
|
return;
|
|
7178
|
-
e.executeMove(k, w, b, l.width, l.height), l.x =
|
|
7242
|
+
e.executeMove(k, w, b, l.width, l.height), l.x = m, l.y = y;
|
|
7179
7243
|
}
|
|
7180
7244
|
}
|
|
7181
7245
|
}), _(v(e), "onTouchEnd", function(i) {
|
|
@@ -7223,7 +7287,7 @@ var Ke = {
|
|
|
7223
7287
|
value: function() {
|
|
7224
7288
|
return {
|
|
7225
7289
|
seekTipIcon: {
|
|
7226
|
-
icon:
|
|
7290
|
+
icon: Na,
|
|
7227
7291
|
class: "xg-seek-pre"
|
|
7228
7292
|
}
|
|
7229
7293
|
};
|
|
@@ -7238,16 +7302,16 @@ var Ke = {
|
|
|
7238
7302
|
var i = this.playerConfig, n = this.config, s = this.player;
|
|
7239
7303
|
i.closeVideoDblclick === !0 && (n.closedbClick = !0), this.resetPos(), f.isUndefined(i.disableGesture) || (n.disableGesture = !!i.disableGesture), this.appendChild(".xg-seek-icon", this.icons.seekTipIcon), this.xgMask = f.createDom("xg-mask", "", {}, "xgmask"), s.root.appendChild(this.xgMask), this.initCustomStyle(), this.registerThumbnail();
|
|
7240
7304
|
var l = this.domEventType === "mouse" ? "mouse" : "touch";
|
|
7241
|
-
this.touch = new
|
|
7305
|
+
this.touch = new Ma(this.root, {
|
|
7242
7306
|
eventType: l,
|
|
7243
7307
|
needPreventDefault: !this.config.disableGesture
|
|
7244
7308
|
}), this.root.addEventListener("contextmenu", function(d) {
|
|
7245
7309
|
d.preventDefault();
|
|
7246
7310
|
}), s.root.addEventListener("touchmove", this.onRootTouchMove, !0), s.root.addEventListener("touchend", this.onRootTouchEnd, !0), s.root.addEventListener("touchcancel", this.onRootTouchEnd, !0);
|
|
7247
7311
|
var u = this.player.controls;
|
|
7248
|
-
u && u.center && (u.center.addEventListener("touchmove", this.onRootTouchMove, !0), u.center.addEventListener("touchend", this.onRootTouchEnd, !0), u.center.addEventListener("touchcancel", this.onRootTouchEnd, !0)), this.on(
|
|
7312
|
+
u && u.center && (u.center.addEventListener("touchmove", this.onRootTouchMove, !0), u.center.addEventListener("touchend", this.onRootTouchEnd, !0), u.center.addEventListener("touchcancel", this.onRootTouchEnd, !0)), this.on(xe, function() {
|
|
7249
7313
|
var d = e.player, g = e.config;
|
|
7250
|
-
d.duration * 1e3 < g.moveDuration && (g.moveDuration = d.duration * 1e3);
|
|
7314
|
+
d.duration > 0 && d.duration * 1e3 < g.moveDuration && (g.moveDuration = d.duration * 1e3);
|
|
7251
7315
|
}), this.on([Te, Ve], function() {
|
|
7252
7316
|
var d = e.pos, g = d.time, p = d.isStart;
|
|
7253
7317
|
!p && g > 0 && (e.pos.time = 0);
|
|
@@ -7415,7 +7479,7 @@ var Ke = {
|
|
|
7415
7479
|
key: "onClick",
|
|
7416
7480
|
value: function(e) {
|
|
7417
7481
|
var i = this, n = this.player;
|
|
7418
|
-
|
|
7482
|
+
ke(this, Kt[0], function(s, l) {
|
|
7419
7483
|
i.clickHandler(l.e);
|
|
7420
7484
|
}, {
|
|
7421
7485
|
e,
|
|
@@ -7426,7 +7490,7 @@ var Ke = {
|
|
|
7426
7490
|
key: "onDbClick",
|
|
7427
7491
|
value: function(e) {
|
|
7428
7492
|
var i = this, n = this.player;
|
|
7429
|
-
|
|
7493
|
+
ke(this, Kt[1], function(s, l) {
|
|
7430
7494
|
i.dbClickHandler(l.e);
|
|
7431
7495
|
}, {
|
|
7432
7496
|
e,
|
|
@@ -7474,9 +7538,12 @@ var Ke = {
|
|
|
7474
7538
|
}, {
|
|
7475
7539
|
key: "updateBrightness",
|
|
7476
7540
|
value: function(e) {
|
|
7477
|
-
this.
|
|
7478
|
-
|
|
7479
|
-
|
|
7541
|
+
var i = this.pos, n = this.config, s = this.xgMask;
|
|
7542
|
+
if (n.darkness) {
|
|
7543
|
+
this.player.rotateDeg && (e = -e);
|
|
7544
|
+
var l = i.light + 0.8 * e;
|
|
7545
|
+
l = l > n.maxDarkness ? n.maxDarkness : l < 0 ? 0 : l, s && (s.style.backgroundColor = "rgba(0,0,0,".concat(l, ")")), i.light = l;
|
|
7546
|
+
}
|
|
7480
7547
|
}
|
|
7481
7548
|
}, {
|
|
7482
7549
|
key: "activeSeekNote",
|
|
@@ -7505,12 +7572,12 @@ var Ke = {
|
|
|
7505
7572
|
}, {
|
|
7506
7573
|
key: "disableGesture",
|
|
7507
7574
|
value: function() {
|
|
7508
|
-
this.config.disableGesture = !
|
|
7575
|
+
this.config.disableGesture = !0;
|
|
7509
7576
|
}
|
|
7510
7577
|
}, {
|
|
7511
7578
|
key: "enableGesture",
|
|
7512
7579
|
value: function() {
|
|
7513
|
-
this.config.disableGesture = !
|
|
7580
|
+
this.config.disableGesture = !1;
|
|
7514
7581
|
}
|
|
7515
7582
|
}, {
|
|
7516
7583
|
key: "destroy",
|
|
@@ -7580,7 +7647,7 @@ var Ke = {
|
|
|
7580
7647
|
}
|
|
7581
7648
|
}]), r;
|
|
7582
7649
|
}(U);
|
|
7583
|
-
function
|
|
7650
|
+
function Ba(o) {
|
|
7584
7651
|
o.preventDefault(), o.returnValue = !1;
|
|
7585
7652
|
}
|
|
7586
7653
|
function cn(o) {
|
|
@@ -7597,8 +7664,8 @@ var fn = /* @__PURE__ */ function(o) {
|
|
|
7597
7664
|
i[n] = arguments[n];
|
|
7598
7665
|
return t = a.call.apply(a, [this].concat(i)), _(v(t), "onBodyKeyDown", function(s) {
|
|
7599
7666
|
if (t.player) {
|
|
7600
|
-
var l = s || window.event, u = l.keyCode, c = v(t), h = c._keyState, d = c.player, g = t.config, p = g.disable,
|
|
7601
|
-
if (p ||
|
|
7667
|
+
var l = s || window.event, u = l.keyCode, c = v(t), h = c._keyState, d = c.player, g = t.config, p = g.disable, m = g.disableBodyTrigger, y = g.isIgnoreUserActive;
|
|
7668
|
+
if (p || m || !(d.isUserActive || y) || cn(l.target) || !t.checkIsVisible() || l.metaKey || l.altKey || l.ctrlKey) {
|
|
7602
7669
|
h.isBodyKeyDown = !1;
|
|
7603
7670
|
return;
|
|
7604
7671
|
}
|
|
@@ -7745,14 +7812,14 @@ var fn = /* @__PURE__ */ function(o) {
|
|
|
7745
7812
|
value: function(e) {
|
|
7746
7813
|
var i = this.player, n = i.currentTime, s = i.offsetCurrentTime, l = i.duration, u = i.offsetDuration, c = i.timeSegments, h = s > -1 ? s : n, d = u || l, g = e.repeat && this.seekStep >= 4 ? parseInt(this.seekStep / 2, 10) : this.seekStep;
|
|
7747
7814
|
h + g <= d ? h = h + g : h = d;
|
|
7748
|
-
var p = f.getCurrentTimeByOffset(h, c),
|
|
7815
|
+
var p = f.getCurrentTimeByOffset(h, c), m = {
|
|
7749
7816
|
currentTime: {
|
|
7750
7817
|
from: n,
|
|
7751
7818
|
to: p
|
|
7752
7819
|
}
|
|
7753
7820
|
};
|
|
7754
7821
|
this.emitUserAction(e, "seek", {
|
|
7755
|
-
props:
|
|
7822
|
+
props: m
|
|
7756
7823
|
}), this.player.currentTime = p;
|
|
7757
7824
|
}
|
|
7758
7825
|
}, {
|
|
@@ -7822,14 +7889,14 @@ var fn = /* @__PURE__ */ function(o) {
|
|
|
7822
7889
|
var u = this.keyCodeMap[s[l]], c = u.action, h = u.keyCode, d = u.disable, g = u.pressAction, p = u.disablePress;
|
|
7823
7890
|
if (h === e) {
|
|
7824
7891
|
if (!d && !(n && p)) {
|
|
7825
|
-
var
|
|
7826
|
-
typeof
|
|
7892
|
+
var m = n && g || c;
|
|
7893
|
+
typeof m == "function" ? c(i, this.player, n) : typeof m == "string" && typeof this[m] == "function" && this[m](i, this.player, n), this.emit(Hn, X({
|
|
7827
7894
|
key: s[l],
|
|
7828
7895
|
target: i.target,
|
|
7829
7896
|
isPress: n
|
|
7830
7897
|
}, this.keyCodeMap[s[l]]));
|
|
7831
7898
|
}
|
|
7832
|
-
|
|
7899
|
+
Ba(i), i.stopPropagation();
|
|
7833
7900
|
break;
|
|
7834
7901
|
}
|
|
7835
7902
|
}
|
|
@@ -7870,14 +7937,14 @@ var fn = /* @__PURE__ */ function(o) {
|
|
|
7870
7937
|
};
|
|
7871
7938
|
}
|
|
7872
7939
|
}]), r;
|
|
7873
|
-
}(
|
|
7874
|
-
function
|
|
7940
|
+
}(Me);
|
|
7941
|
+
function Ha() {
|
|
7875
7942
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="-5 -5 110 110">
|
|
7876
7943
|
<path d="M100,50A50,50,0,1,1,50,0" stroke-width="5" stroke="#ddd" stroke-dasharray="236" fill="none"></path>
|
|
7877
7944
|
</svg>
|
|
7878
7945
|
`, "image/svg+xml").firstChild;
|
|
7879
7946
|
}
|
|
7880
|
-
var
|
|
7947
|
+
var Ua = /* @__PURE__ */ function(o) {
|
|
7881
7948
|
S(r, o);
|
|
7882
7949
|
var a = x(r);
|
|
7883
7950
|
function r() {
|
|
@@ -7887,7 +7954,7 @@ var Ha = /* @__PURE__ */ function(o) {
|
|
|
7887
7954
|
key: "registerIcons",
|
|
7888
7955
|
value: function() {
|
|
7889
7956
|
return {
|
|
7890
|
-
loadingIcon:
|
|
7957
|
+
loadingIcon: Ha
|
|
7891
7958
|
};
|
|
7892
7959
|
}
|
|
7893
7960
|
}, {
|
|
@@ -7916,7 +7983,7 @@ var Ha = /* @__PURE__ */ function(o) {
|
|
|
7916
7983
|
};
|
|
7917
7984
|
}
|
|
7918
7985
|
}]), r;
|
|
7919
|
-
}(U),
|
|
7986
|
+
}(U), Va = [{
|
|
7920
7987
|
tag: "xg-cache",
|
|
7921
7988
|
className: "xgplayer-progress-cache",
|
|
7922
7989
|
styleKey: "cachedColor"
|
|
@@ -7924,7 +7991,7 @@ var Ha = /* @__PURE__ */ function(o) {
|
|
|
7924
7991
|
tag: "xg-played",
|
|
7925
7992
|
className: "xgplayer-progress-played",
|
|
7926
7993
|
styleKey: "playedColor"
|
|
7927
|
-
}],
|
|
7994
|
+
}], za = /* @__PURE__ */ function() {
|
|
7928
7995
|
function o(a) {
|
|
7929
7996
|
T(this, o), this.fragments = a.fragments || [], this.fragments.length === 0 && this.fragments.push({
|
|
7930
7997
|
percent: 1
|
|
@@ -8111,7 +8178,7 @@ var Ha = /* @__PURE__ */ function(o) {
|
|
|
8111
8178
|
var l = f.createDom("xg-inner", "", {
|
|
8112
8179
|
style: t ? "background:".concat(t, "; flex: ").concat(s.percent) : "flex: ".concat(s.percent)
|
|
8113
8180
|
}, "".concat(s.isFocus ? n : "", " xgplayer-progress-inner ").concat(i));
|
|
8114
|
-
return r.root.appendChild(l),
|
|
8181
|
+
return r.root.appendChild(l), Va.forEach(function(u) {
|
|
8115
8182
|
l.appendChild(f.createDom(u.tag, "", {
|
|
8116
8183
|
style: u.styleKey ? "background: ".concat(r.style[u.styleKey], "; width:0;") : "width:0;"
|
|
8117
8184
|
}, u.className));
|
|
@@ -8127,7 +8194,7 @@ var Ha = /* @__PURE__ */ function(o) {
|
|
|
8127
8194
|
}(), hn = {
|
|
8128
8195
|
POINT: "inner-focus-point",
|
|
8129
8196
|
HIGHLIGHT: "inner-focus-highlight"
|
|
8130
|
-
},
|
|
8197
|
+
}, ja = /* @__PURE__ */ function(o) {
|
|
8131
8198
|
S(r, o);
|
|
8132
8199
|
var a = x(r);
|
|
8133
8200
|
function r(t) {
|
|
@@ -8164,8 +8231,8 @@ var Ha = /* @__PURE__ */ function(o) {
|
|
|
8164
8231
|
}), e.isProgressMoving = !0, f.addClass(e.progressBtn, "active");
|
|
8165
8232
|
var p = e.computeTime(i, g);
|
|
8166
8233
|
p.prePlayTime = s.prePlayTime, e._mouseDownHandlerHook(i, p);
|
|
8167
|
-
var
|
|
8168
|
-
return
|
|
8234
|
+
var m = i.type;
|
|
8235
|
+
return m === "touchstart" ? (e.root.addEventListener("touchmove", e.onMouseMove), e.root.addEventListener("touchend", e.onMouseUp), e.root.addEventListener("touchcancel", e.onMouseUp)) : (e.unbind("mousemove", e.onMoveOnly), document.addEventListener("mousemove", e.onMouseMove, !1), document.addEventListener("mouseup", e.onMouseUp, !1)), !0;
|
|
8169
8236
|
}
|
|
8170
8237
|
}), _(v(e), "onMouseUp", function(i) {
|
|
8171
8238
|
var n = v(e), s = n.player, l = n.config, u = n.pos, c = n.playerConfig, h = n._state;
|
|
@@ -8209,7 +8276,7 @@ var Ha = /* @__PURE__ */ function(o) {
|
|
|
8209
8276
|
direc: 0,
|
|
8210
8277
|
time: 0,
|
|
8211
8278
|
prePlayTime: -1
|
|
8212
|
-
}, e._disableBlur = !1, e;
|
|
8279
|
+
}, e._disableBlur = !1, typeof e.config.isDragingSeek == "boolean" && (console.warn("[XGPLAYER] 'isDragingSeek' is deprecated, please use 'isDraggingSeek' instead"), e.config.isDraggingSeek = e.config.isDragingSeek), e;
|
|
8213
8280
|
}
|
|
8214
8281
|
return E(r, [{
|
|
8215
8282
|
key: "offsetDuration",
|
|
@@ -8257,7 +8324,7 @@ var Ha = /* @__PURE__ */ function(o) {
|
|
|
8257
8324
|
e.emitUserAction("fragment_focus", "fragment_focus", u);
|
|
8258
8325
|
}
|
|
8259
8326
|
});
|
|
8260
|
-
this.innerList ? this.innerList.reset(s) : (this.innerList = new
|
|
8327
|
+
this.innerList ? this.innerList.reset(s) : (this.innerList = new za(s), this.outer.insertBefore(this.innerList.render(), this.outer.children[0]), ["findHightLight", "unHightLight", "setHightLight", "findFragment"].map(function(l) {
|
|
8261
8328
|
e[l] = e.innerList[l].bind(e.innerList);
|
|
8262
8329
|
}));
|
|
8263
8330
|
}
|
|
@@ -8269,7 +8336,6 @@ var Ha = /* @__PURE__ */ function(o) {
|
|
|
8269
8336
|
}, {
|
|
8270
8337
|
key: "afterCreate",
|
|
8271
8338
|
value: function() {
|
|
8272
|
-
var e = this;
|
|
8273
8339
|
if (!(this.config.disable || this.playerConfig.isLive)) {
|
|
8274
8340
|
this.pos = {
|
|
8275
8341
|
x: 0,
|
|
@@ -8279,29 +8345,35 @@ var Ha = /* @__PURE__ */ function(o) {
|
|
|
8279
8345
|
isEnter: !1,
|
|
8280
8346
|
isLocked: !1
|
|
8281
8347
|
}, this.outer = this.find("xg-outer");
|
|
8282
|
-
var
|
|
8348
|
+
var e = this.config, i = e.fragFocusClass, n = e.fragAutoFocus, s = e.fragClass;
|
|
8283
8349
|
this._initInner(this.config.fragments, {
|
|
8284
|
-
fragFocusClass:
|
|
8285
|
-
fragAutoFocus:
|
|
8286
|
-
fragClass:
|
|
8350
|
+
fragFocusClass: i,
|
|
8351
|
+
fragAutoFocus: n,
|
|
8352
|
+
fragClass: s,
|
|
8287
8353
|
style: this.playerConfig.commonStyle || {}
|
|
8288
|
-
}), R.device === "mobile" && (this.config.
|
|
8289
|
-
e.onMouseLeave();
|
|
8290
|
-
}), this.on(ce, function() {
|
|
8291
|
-
e.onTimeupdate();
|
|
8292
|
-
}), this.on(Ee, function() {
|
|
8293
|
-
e.onTimeupdate(), e.onCacheUpdate();
|
|
8294
|
-
}), this.on(An, function() {
|
|
8295
|
-
e.onCacheUpdate();
|
|
8296
|
-
}), this.on(Ve, function() {
|
|
8297
|
-
e.onCacheUpdate(!0), e.onTimeupdate(!0), e._state.now = 0;
|
|
8298
|
-
}), this.on(ze, function() {
|
|
8299
|
-
e.onReset();
|
|
8300
|
-
}), this.on(Re, function() {
|
|
8301
|
-
e.onVideoResize();
|
|
8302
|
-
}), this.bindDomEvents(), this.initCustomStyle();
|
|
8354
|
+
}), R.device === "mobile" && (this.config.isDraggingSeek = !1, this.isMobile = !0), this.progressBtn = this.find(".xgplayer-progress-btn"), this.listenEvents(), this.bindDomEvents(), this.initCustomStyle();
|
|
8303
8355
|
}
|
|
8304
8356
|
}
|
|
8357
|
+
}, {
|
|
8358
|
+
key: "listenEvents",
|
|
8359
|
+
value: function() {
|
|
8360
|
+
var e = this;
|
|
8361
|
+
this.on(xe, function() {
|
|
8362
|
+
e.onMouseLeave();
|
|
8363
|
+
}), this.on(ce, function() {
|
|
8364
|
+
e.onTimeupdate();
|
|
8365
|
+
}), this.on(Ee, function() {
|
|
8366
|
+
e.onTimeupdate(), e.onCacheUpdate();
|
|
8367
|
+
}), this.on(Ln, function() {
|
|
8368
|
+
e.onCacheUpdate();
|
|
8369
|
+
}), this.on(Ve, function() {
|
|
8370
|
+
e.onCacheUpdate(!0), e.onTimeupdate(!0), e._state.now = 0;
|
|
8371
|
+
}), this.on(ze, function() {
|
|
8372
|
+
e.onReset();
|
|
8373
|
+
}), this.on(Oe, function() {
|
|
8374
|
+
e.onVideoResize();
|
|
8375
|
+
});
|
|
8376
|
+
}
|
|
8305
8377
|
}, {
|
|
8306
8378
|
key: "setConfig",
|
|
8307
8379
|
value: function(e) {
|
|
@@ -8390,7 +8462,7 @@ var Ha = /* @__PURE__ */ function(o) {
|
|
|
8390
8462
|
var l = this.config, u = this.player;
|
|
8391
8463
|
if (!(l.isCloseClickSeek && s === 0)) {
|
|
8392
8464
|
var c = i = i >= u.duration ? u.duration - l.endedDiff : Number(i).toFixed(1);
|
|
8393
|
-
this.updatePercent(n), this.updateTime(e), !(s === 1 && (!l.
|
|
8465
|
+
this.updatePercent(n), this.updateTime(e), !(s === 1 && (!l.isDraggingSeek || u.config.mediaType === "audio")) && (this._state.now = c, this._state.direc = c > u.currentTime ? 0 : 1, u.seek(c));
|
|
8394
8466
|
}
|
|
8395
8467
|
}
|
|
8396
8468
|
}, {
|
|
@@ -8398,16 +8470,16 @@ var Ha = /* @__PURE__ */ function(o) {
|
|
|
8398
8470
|
value: function(e, i) {
|
|
8399
8471
|
var n = this.player, s = this.root.getBoundingClientRect(), l = s.width, u = s.height, c = s.top, h = s.left, d, g, p = i;
|
|
8400
8472
|
n.rotateDeg === 90 ? (d = u, g = c) : (d = l, g = h);
|
|
8401
|
-
var
|
|
8402
|
-
|
|
8403
|
-
var
|
|
8404
|
-
|
|
8405
|
-
var k = parseInt(
|
|
8473
|
+
var m = p - g;
|
|
8474
|
+
m = m > d ? d : m < 0 ? 0 : m;
|
|
8475
|
+
var y = m / d;
|
|
8476
|
+
y = y < 0 ? 0 : y > 1 ? 1 : y;
|
|
8477
|
+
var k = parseInt(y * this.offsetDuration * 1e3, 10) / 1e3, w = f.getCurrentTimeByOffset(k, n.timeSegments);
|
|
8406
8478
|
return {
|
|
8407
|
-
percent:
|
|
8479
|
+
percent: y,
|
|
8408
8480
|
currentTime: k,
|
|
8409
8481
|
seekTime: w,
|
|
8410
|
-
offset:
|
|
8482
|
+
offset: m,
|
|
8411
8483
|
width: d,
|
|
8412
8484
|
left: g,
|
|
8413
8485
|
e
|
|
@@ -8513,7 +8585,7 @@ var Ha = /* @__PURE__ */ function(o) {
|
|
|
8513
8585
|
position: G.CONTROLS_CENTER,
|
|
8514
8586
|
index: 0,
|
|
8515
8587
|
disable: !1,
|
|
8516
|
-
|
|
8588
|
+
isDraggingSeek: !0,
|
|
8517
8589
|
closeMoveSeek: !1,
|
|
8518
8590
|
isPauseMoving: !1,
|
|
8519
8591
|
isCloseClickSeek: !1,
|
|
@@ -8567,23 +8639,38 @@ var Ha = /* @__PURE__ */ function(o) {
|
|
|
8567
8639
|
this.unbind("mouseenter", this._onMouseenter), this.unbind("mouseleave", this._onMouseLeave);
|
|
8568
8640
|
}
|
|
8569
8641
|
}]), r;
|
|
8570
|
-
}(U),
|
|
8642
|
+
}(U), Wa = /* @__PURE__ */ function(o) {
|
|
8571
8643
|
S(r, o);
|
|
8572
8644
|
var a = x(r);
|
|
8573
8645
|
function r() {
|
|
8574
|
-
|
|
8646
|
+
var t;
|
|
8647
|
+
T(this, r);
|
|
8648
|
+
for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
|
|
8649
|
+
i[n] = arguments[n];
|
|
8650
|
+
return t = a.call.apply(a, [this].concat(i)), _(v(t), "btnClick", function(s) {
|
|
8651
|
+
s.preventDefault(), s.stopPropagation();
|
|
8652
|
+
var l = v(t), u = l.player;
|
|
8653
|
+
return t.emitUserAction(s, "switch_play_pause", {
|
|
8654
|
+
prop: "paused",
|
|
8655
|
+
from: u.paused,
|
|
8656
|
+
to: !u.paused
|
|
8657
|
+
}), u.ended ? u.replay() : u.paused ? (u.play(), t.animate(!1)) : (u.pause(), t.animate(!0)), !1;
|
|
8658
|
+
}), t;
|
|
8575
8659
|
}
|
|
8576
8660
|
return E(r, [{
|
|
8577
8661
|
key: "afterCreate",
|
|
8578
8662
|
value: function() {
|
|
8579
|
-
|
|
8580
|
-
|
|
8581
|
-
|
|
8582
|
-
|
|
8583
|
-
|
|
8584
|
-
|
|
8663
|
+
A(I(r.prototype), "afterCreate", this).call(this);
|
|
8664
|
+
var e = this.config;
|
|
8665
|
+
e.disable || (this.initIcons(), this.bind(["touchend", "click"], this.btnClick), this.listenEvents(), this.animate(!0));
|
|
8666
|
+
}
|
|
8667
|
+
}, {
|
|
8668
|
+
key: "listenEvents",
|
|
8669
|
+
value: function() {
|
|
8670
|
+
var e = this, i = this.player;
|
|
8671
|
+
this.on([fe, tt, lt, ze], function() {
|
|
8585
8672
|
e.animate(i.paused);
|
|
8586
|
-
})
|
|
8673
|
+
});
|
|
8587
8674
|
}
|
|
8588
8675
|
}, {
|
|
8589
8676
|
key: "registerIcons",
|
|
@@ -8599,17 +8686,6 @@ var Ha = /* @__PURE__ */ function(o) {
|
|
|
8599
8686
|
}
|
|
8600
8687
|
};
|
|
8601
8688
|
}
|
|
8602
|
-
}, {
|
|
8603
|
-
key: "btnClick",
|
|
8604
|
-
value: function(e) {
|
|
8605
|
-
e.preventDefault(), e.stopPropagation();
|
|
8606
|
-
var i = this.player;
|
|
8607
|
-
return this.emitUserAction(e, "switch_play_pause", {
|
|
8608
|
-
prop: "paused",
|
|
8609
|
-
from: i.paused,
|
|
8610
|
-
to: !i.paused
|
|
8611
|
-
}), i.ended ? i.replay() : i.paused ? (i.play(), this.animate(!1)) : (i.pause(), this.animate(!0)), !1;
|
|
8612
|
-
}
|
|
8613
8689
|
}, {
|
|
8614
8690
|
key: "initIcons",
|
|
8615
8691
|
value: function() {
|
|
@@ -8627,7 +8703,7 @@ var Ha = /* @__PURE__ */ function(o) {
|
|
|
8627
8703
|
}, {
|
|
8628
8704
|
key: "destroy",
|
|
8629
8705
|
value: function() {
|
|
8630
|
-
|
|
8706
|
+
A(I(r.prototype), "destroy", this).call(this), this.unbind(["touchend", "click"], this.btnClick);
|
|
8631
8707
|
}
|
|
8632
8708
|
}, {
|
|
8633
8709
|
key: "render",
|
|
@@ -8655,14 +8731,14 @@ var Ha = /* @__PURE__ */ function(o) {
|
|
|
8655
8731
|
}
|
|
8656
8732
|
}]), r;
|
|
8657
8733
|
}(je);
|
|
8658
|
-
function
|
|
8734
|
+
function Ga() {
|
|
8659
8735
|
return new DOMParser().parseFromString(`<svg width="32px" height="40px" viewBox="0 0 32 32" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
8660
8736
|
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
8661
8737
|
<path d="M11.2374369,14 L17.6187184,7.61871843 C17.9604272,7.27700968 17.9604272,6.72299032 17.6187184,6.38128157 C17.2770097,6.03957281 16.7229903,6.03957281 16.3812816,6.38128157 L9.38128157,13.3812816 C9.03957281,13.7229903 9.03957281,14.2770097 9.38128157,14.6187184 L16.3812816,21.6187184 C16.7229903,21.9604272 17.2770097,21.9604272 17.6187184,21.6187184 C17.9604272,21.2770097 17.9604272,20.7229903 17.6187184,20.3812816 L11.2374369,14 L11.2374369,14 Z" fill="#FFFFFF"></path>
|
|
8662
8738
|
</g>
|
|
8663
8739
|
</svg>`, "image/svg+xml").firstChild;
|
|
8664
8740
|
}
|
|
8665
|
-
var
|
|
8741
|
+
var Ka = /* @__PURE__ */ function(o) {
|
|
8666
8742
|
S(r, o);
|
|
8667
8743
|
var a = x(r);
|
|
8668
8744
|
function r() {
|
|
@@ -8681,7 +8757,7 @@ var Ga = /* @__PURE__ */ function(o) {
|
|
|
8681
8757
|
value: function() {
|
|
8682
8758
|
return {
|
|
8683
8759
|
screenBack: {
|
|
8684
|
-
icon:
|
|
8760
|
+
icon: Ga,
|
|
8685
8761
|
class: "xg-fullscreen-back"
|
|
8686
8762
|
}
|
|
8687
8763
|
};
|
|
@@ -8723,19 +8799,19 @@ var Ga = /* @__PURE__ */ function(o) {
|
|
|
8723
8799
|
}
|
|
8724
8800
|
}]), r;
|
|
8725
8801
|
}(U);
|
|
8726
|
-
function
|
|
8802
|
+
function Ya() {
|
|
8727
8803
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="2 -4 28 40">
|
|
8728
8804
|
<path fill="#fff" transform="scale(0.0320625 0.0320625)" d="M598 214h212v212h-84v-128h-128v-84zM726 726v-128h84v212h-212v-84h128zM214 426v-212h212v84h-128v128h-84zM298 598v128h128v84h-212v-212h84z"></path>
|
|
8729
8805
|
</svg>
|
|
8730
8806
|
`, "image/svg+xml").firstChild;
|
|
8731
8807
|
}
|
|
8732
|
-
function
|
|
8808
|
+
function $a() {
|
|
8733
8809
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="2 -4 28 40">
|
|
8734
8810
|
<path fill="#fff" transform="scale(0.0320625 0.0320625)" d="M682 342h128v84h-212v-212h84v128zM598 810v-212h212v84h-128v128h-84zM342 342v-128h84v212h-212v-84h128zM214 682v-84h212v212h-84v-128h-128z"></path>
|
|
8735
8811
|
</svg>
|
|
8736
8812
|
`, "image/svg+xml").firstChild;
|
|
8737
8813
|
}
|
|
8738
|
-
var
|
|
8814
|
+
var Xa = /* @__PURE__ */ function(o) {
|
|
8739
8815
|
S(r, o);
|
|
8740
8816
|
var a = x(r);
|
|
8741
8817
|
function r() {
|
|
@@ -8751,7 +8827,7 @@ var $a = /* @__PURE__ */ function(o) {
|
|
|
8751
8827
|
key: "afterCreate",
|
|
8752
8828
|
value: function() {
|
|
8753
8829
|
var e = this;
|
|
8754
|
-
|
|
8830
|
+
A(I(r.prototype), "afterCreate", this).call(this);
|
|
8755
8831
|
var i = this.config, n = this.playerConfig;
|
|
8756
8832
|
if (!i.disable) {
|
|
8757
8833
|
i.target && (this.playerConfig.fullscreenTarget = this.config.target);
|
|
@@ -8766,11 +8842,11 @@ var $a = /* @__PURE__ */ function(o) {
|
|
|
8766
8842
|
to: !c
|
|
8767
8843
|
});
|
|
8768
8844
|
}
|
|
8769
|
-
}), this.bind(".xgplayer-fullscreen", ["touchend", "click"], this.handleFullscreen), this.on(
|
|
8845
|
+
}), this.bind(".xgplayer-fullscreen", ["touchend", "click"], this.handleFullscreen), this.on(we, function(l) {
|
|
8770
8846
|
var u = e.find(".xg-tips");
|
|
8771
8847
|
u && e.changeLangTextKey(u, l ? e.i18nKeys.EXITFULLSCREEN_TIPS : e.i18nKeys.FULLSCREEN_TIPS), e.animate(l);
|
|
8772
8848
|
}), this.config.needBackIcon && (this.topBackIcon = this.player.registerPlugin({
|
|
8773
|
-
plugin:
|
|
8849
|
+
plugin: Ka,
|
|
8774
8850
|
options: {
|
|
8775
8851
|
config: {
|
|
8776
8852
|
onClick: function(u) {
|
|
@@ -8786,11 +8862,11 @@ var $a = /* @__PURE__ */ function(o) {
|
|
|
8786
8862
|
value: function() {
|
|
8787
8863
|
return {
|
|
8788
8864
|
fullscreen: {
|
|
8789
|
-
icon:
|
|
8865
|
+
icon: Ya,
|
|
8790
8866
|
class: "xg-get-fullscreen"
|
|
8791
8867
|
},
|
|
8792
8868
|
exitFullscreen: {
|
|
8793
|
-
icon:
|
|
8869
|
+
icon: $a,
|
|
8794
8870
|
class: "xg-exit-fullscreen"
|
|
8795
8871
|
}
|
|
8796
8872
|
};
|
|
@@ -8798,7 +8874,7 @@ var $a = /* @__PURE__ */ function(o) {
|
|
|
8798
8874
|
}, {
|
|
8799
8875
|
key: "destroy",
|
|
8800
8876
|
value: function() {
|
|
8801
|
-
|
|
8877
|
+
A(I(r.prototype), "destroy", this).call(this), this.unbind(".xgplayer-icon", R.device === "mobile" ? "touchend" : "click", this.handleFullscreen), R.device === "mobile" && window.removeEventListener("orientationchange", this._onOrientationChange);
|
|
8802
8878
|
}
|
|
8803
8879
|
}, {
|
|
8804
8880
|
key: "initIcons",
|
|
@@ -8871,7 +8947,7 @@ var $a = /* @__PURE__ */ function(o) {
|
|
|
8871
8947
|
};
|
|
8872
8948
|
}
|
|
8873
8949
|
}]), r;
|
|
8874
|
-
}(je),
|
|
8950
|
+
}(je), qa = /* @__PURE__ */ function(o) {
|
|
8875
8951
|
S(r, o);
|
|
8876
8952
|
var a = x(r);
|
|
8877
8953
|
function r(t) {
|
|
@@ -8898,14 +8974,20 @@ var $a = /* @__PURE__ */ function(o) {
|
|
|
8898
8974
|
}, {
|
|
8899
8975
|
key: "afterCreate",
|
|
8900
8976
|
value: function() {
|
|
8901
|
-
var e = this
|
|
8902
|
-
this.mode =
|
|
8903
|
-
|
|
8977
|
+
var e = this.player.controls.config.mode;
|
|
8978
|
+
this.mode = e === "flex" ? "flex" : "normal", !this.config.disable && (this.mode === "flex" && (this.createCenterTime(), this.root.style.display = "none"), this.durationDom = this.find(".time-duration"), this.timeDom = this.find(".time-current"), this.listenEvents());
|
|
8979
|
+
}
|
|
8980
|
+
}, {
|
|
8981
|
+
key: "listenEvents",
|
|
8982
|
+
value: function() {
|
|
8983
|
+
var e = this;
|
|
8984
|
+
this.on([xe, Ee, ce], function(i) {
|
|
8985
|
+
i.eventName === "durationchange" && (e.isActiving = !1), e.onTimeUpdate();
|
|
8904
8986
|
}), this.on(Ve, function() {
|
|
8905
8987
|
e.onTimeUpdate(!0);
|
|
8906
8988
|
}), this.on(ze, function() {
|
|
8907
8989
|
e.onReset();
|
|
8908
|
-
})
|
|
8990
|
+
});
|
|
8909
8991
|
}
|
|
8910
8992
|
}, {
|
|
8911
8993
|
key: "show",
|
|
@@ -9021,7 +9103,7 @@ var $a = /* @__PURE__ */ function(o) {
|
|
|
9021
9103
|
};
|
|
9022
9104
|
}
|
|
9023
9105
|
}]), r;
|
|
9024
|
-
}(U),
|
|
9106
|
+
}(U), Za = /* @__PURE__ */ function(o) {
|
|
9025
9107
|
S(r, o);
|
|
9026
9108
|
var a = x(r);
|
|
9027
9109
|
function r() {
|
|
@@ -9051,8 +9133,8 @@ var $a = /* @__PURE__ */ function(o) {
|
|
|
9051
9133
|
h !== t.curIndex && t.changeIndex(h, u);
|
|
9052
9134
|
var d = f.getOffsetCurrentTime(l, u, h);
|
|
9053
9135
|
if (t.player.offsetCurrentTime = d, !!t.curPos) {
|
|
9054
|
-
var g = t.curPos, p = g.start,
|
|
9055
|
-
l < p ? t.player.currentTime = p : l >
|
|
9136
|
+
var g = t.curPos, p = g.start, m = g.end;
|
|
9137
|
+
l < p ? t.player.currentTime = p : l > m && h >= c - 1 && t.player.pause();
|
|
9056
9138
|
}
|
|
9057
9139
|
}
|
|
9058
9140
|
}), _(v(t), "_onSeeking", function() {
|
|
@@ -9077,7 +9159,7 @@ var $a = /* @__PURE__ */ function(o) {
|
|
|
9077
9159
|
return E(r, [{
|
|
9078
9160
|
key: "afterCreate",
|
|
9079
9161
|
value: function() {
|
|
9080
|
-
this.curIndex = -1, this.curPos = null, this.lastCurrentTime = 0, this.updateSegments(), this.on(
|
|
9162
|
+
this.curIndex = -1, this.curPos = null, this.lastCurrentTime = 0, this.updateSegments(), this.on(xe, this._onDurationChange), this.on(Se, this._onLoadedData), this.on(ce, this._onTimeupdate), this.on(xt, this._onSeeking), this.on(fe, this._onPlay);
|
|
9081
9163
|
}
|
|
9082
9164
|
}, {
|
|
9083
9165
|
key: "setConfig",
|
|
@@ -9158,29 +9240,29 @@ var $a = /* @__PURE__ */ function(o) {
|
|
|
9158
9240
|
};
|
|
9159
9241
|
}
|
|
9160
9242
|
}]), r;
|
|
9161
|
-
}(
|
|
9162
|
-
function
|
|
9243
|
+
}(Me);
|
|
9244
|
+
function Ja() {
|
|
9163
9245
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="0 -10 28 40">
|
|
9164
9246
|
<path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M358.4 358.4h-204.8v307.2h204.8l256 256v-819.2l-256 256z"></path>
|
|
9165
9247
|
<path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M940.632 837.632l-72.192-72.192c65.114-64.745 105.412-154.386 105.412-253.44s-40.299-188.695-105.396-253.424l-0.016-0.016 72.192-72.192c83.639 83.197 135.401 198.37 135.401 325.632s-51.762 242.434-135.381 325.612l-0.020 0.020zM795.648 693.248l-72.704-72.704c27.756-27.789 44.921-66.162 44.921-108.544s-17.165-80.755-44.922-108.546l0.002 0.002 72.704-72.704c46.713 46.235 75.639 110.363 75.639 181.248s-28.926 135.013-75.617 181.227l-0.021 0.021z"></path>
|
|
9166
9248
|
</svg>
|
|
9167
9249
|
`, "image/svg+xml").firstChild;
|
|
9168
9250
|
}
|
|
9169
|
-
function
|
|
9251
|
+
function Qa() {
|
|
9170
9252
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="0 -10 28 40">
|
|
9171
9253
|
<path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M358.4 358.4h-204.8v307.2h204.8l256 256v-819.2l-256 256z"></path>
|
|
9172
9254
|
<path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M795.648 693.248l-72.704-72.704c27.756-27.789 44.921-66.162 44.921-108.544s-17.165-80.755-44.922-108.546l0.002 0.002 72.704-72.704c46.713 46.235 75.639 110.363 75.639 181.248s-28.926 135.013-75.617 181.227l-0.021 0.021zM795.648 693.248l-72.704-72.704c27.756-27.789 44.921-66.162 44.921-108.544s-17.165-80.755-44.922-108.546l0.002 0.002 72.704-72.704c46.713 46.235 75.639 110.363 75.639 181.248s-28.926 135.013-75.617 181.227l-0.021 0.021z"></path>
|
|
9173
9255
|
</svg>
|
|
9174
9256
|
`, "image/svg+xml").firstChild;
|
|
9175
9257
|
}
|
|
9176
|
-
function
|
|
9258
|
+
function eo() {
|
|
9177
9259
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="0 -10 28 40">
|
|
9178
9260
|
<path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M358.4 358.4h-204.8v307.2h204.8l256 256v-819.2l-256 256z"></path>
|
|
9179
9261
|
<path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M920.4 439.808l-108.544-109.056-72.704 72.704 109.568 108.544-109.056 108.544 72.704 72.704 108.032-109.568 108.544 109.056 72.704-72.704-109.568-108.032 109.056-108.544-72.704-72.704-108.032 109.568z"></path>
|
|
9180
9262
|
</svg>
|
|
9181
9263
|
`, "image/svg+xml").firstChild;
|
|
9182
9264
|
}
|
|
9183
|
-
var
|
|
9265
|
+
var to = /* @__PURE__ */ function(o) {
|
|
9184
9266
|
S(r, o);
|
|
9185
9267
|
var a = x(r);
|
|
9186
9268
|
function r() {
|
|
@@ -9228,15 +9310,15 @@ var eo = /* @__PURE__ */ function(o) {
|
|
|
9228
9310
|
value: function() {
|
|
9229
9311
|
return {
|
|
9230
9312
|
volumeSmall: {
|
|
9231
|
-
icon:
|
|
9313
|
+
icon: Qa,
|
|
9232
9314
|
class: "xg-volume-small"
|
|
9233
9315
|
},
|
|
9234
9316
|
volumeLarge: {
|
|
9235
|
-
icon:
|
|
9317
|
+
icon: Ja,
|
|
9236
9318
|
class: "xg-volume"
|
|
9237
9319
|
},
|
|
9238
9320
|
volumeMuted: {
|
|
9239
|
-
icon:
|
|
9321
|
+
icon: eo,
|
|
9240
9322
|
class: "xg-volume-mute"
|
|
9241
9323
|
}
|
|
9242
9324
|
};
|
|
@@ -9375,21 +9457,21 @@ var eo = /* @__PURE__ */ function(o) {
|
|
|
9375
9457
|
}
|
|
9376
9458
|
}]), r;
|
|
9377
9459
|
}(U);
|
|
9378
|
-
function
|
|
9460
|
+
function io() {
|
|
9379
9461
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="-4 -6 40 40" fill="none">
|
|
9380
|
-
<g
|
|
9462
|
+
<g>
|
|
9381
9463
|
<path transform="scale(1.5 1.5)" d="M11.6665 9.16663H4.1665C2.78579 9.16663 1.6665 10.2859 1.6665 11.6666V15.8333C1.6665 17.214 2.78579 18.3333 4.1665 18.3333H11.6665C13.0472 18.3333 14.1665 17.214 14.1665 15.8333V11.6666C14.1665 10.2859 13.0472 9.16663 11.6665 9.16663Z" fill="white"/>
|
|
9382
9464
|
<path transform="scale(1.5 1.5)" fill-rule="evenodd" clip-rule="evenodd" d="M3.88148 4.06298C3.75371 4.21005 3.67667 4.40231 3.67749 4.61242C3.67847 4.87253 3.79852 5.10435 3.98581 5.25646L6.99111 8.05895C7.32771 8.37283 7.85502 8.35443 8.16891 8.01782C8.48279 7.68122 8.46437 7.15391 8.12778 6.84003L6.62061 5.43457L9.8198 5.4224C9.82848 5.42239 9.8372 5.42221 9.84591 5.4219C10.9714 5.38233 12.0885 5.6285 13.0931 6.13744C14.0976 6.64635 14.957 7.40148 15.5908 8.33234C16.2246 9.2632 16.6122 10.3394 16.7177 11.4606C16.823 12.5819 16.6427 13.7115 16.1934 14.7442C16.0098 15.1661 16.203 15.6571 16.6251 15.8408C17.0471 16.0243 17.5381 15.8311 17.7216 15.4091C18.2833 14.1183 18.5087 12.7063 18.3771 11.3047C18.2453 9.90318 17.7607 8.55792 16.9684 7.39433C16.1761 6.23073 15.1021 5.28683 13.8463 4.65065C12.5946 4.01651 11.203 3.70872 9.80072 3.75583L6.43415 3.76862L7.96326 2.12885C8.27715 1.79225 8.25872 1.26494 7.92213 0.951061C7.58553 0.63718 7.05822 0.655585 6.74433 0.99219L3.90268 4.0395C3.89545 4.04724 3.88841 4.05509 3.88154 4.06303L3.88148 4.06298Z" fill="white"/>
|
|
9383
9465
|
</g>
|
|
9384
9466
|
<defs>
|
|
9385
|
-
<clipPath
|
|
9467
|
+
<clipPath>
|
|
9386
9468
|
<rect width="40" height="40" fill="white"/>
|
|
9387
9469
|
</clipPath>
|
|
9388
9470
|
</defs>
|
|
9389
9471
|
</svg>
|
|
9390
9472
|
`, "image/svg+xml").firstChild;
|
|
9391
9473
|
}
|
|
9392
|
-
var
|
|
9474
|
+
var no = /* @__PURE__ */ function(o) {
|
|
9393
9475
|
S(r, o);
|
|
9394
9476
|
var a = x(r);
|
|
9395
9477
|
function r(t) {
|
|
@@ -9401,7 +9483,7 @@ var io = /* @__PURE__ */ function(o) {
|
|
|
9401
9483
|
value: function() {
|
|
9402
9484
|
var e = this;
|
|
9403
9485
|
if (!this.config.disable) {
|
|
9404
|
-
|
|
9486
|
+
A(I(r.prototype), "afterCreate", this).call(this), this.appendChild(".xgplayer-icon", this.icons.rotate), this.onBtnClick = this.onBtnClick.bind(this), this.bind(".xgplayer-icon", ["click", "touchend"], this.onBtnClick), this.on(Oe, function() {
|
|
9405
9487
|
e.rotateDeg && e.config.innerRotate && f.setTimeout(e, function() {
|
|
9406
9488
|
e.updateRotateDeg(e.rotateDeg, e.config.innerRotate);
|
|
9407
9489
|
}, 100);
|
|
@@ -9413,7 +9495,7 @@ var io = /* @__PURE__ */ function(o) {
|
|
|
9413
9495
|
}, {
|
|
9414
9496
|
key: "destroy",
|
|
9415
9497
|
value: function() {
|
|
9416
|
-
|
|
9498
|
+
A(I(r.prototype), "destroy", this).call(this), this.unbind(".xgplayer-icon", ["click", "touchend"], this.onBtnClick);
|
|
9417
9499
|
}
|
|
9418
9500
|
}, {
|
|
9419
9501
|
key: "onBtnClick",
|
|
@@ -9427,13 +9509,13 @@ var io = /* @__PURE__ */ function(o) {
|
|
|
9427
9509
|
this.player.videoRotateDeg = e;
|
|
9428
9510
|
return;
|
|
9429
9511
|
}
|
|
9430
|
-
var n = this.player, s = this.rootWidth, l = this.rootHeight, u = n.root, c = n.innerContainer, h = n.media, d = u.offsetWidth, g = c && i ? c.offsetHeight : u.offsetHeight, p = s,
|
|
9431
|
-
(e === 0.75 || e === 0.25) && (p = "".concat(g, "px"),
|
|
9432
|
-
var w = "translate(".concat(
|
|
9512
|
+
var n = this.player, s = this.rootWidth, l = this.rootHeight, u = n.root, c = n.innerContainer, h = n.media, d = u.offsetWidth, g = c && i ? c.offsetHeight : u.offsetHeight, p = s, m = l, y = 0, k = 0;
|
|
9513
|
+
(e === 0.75 || e === 0.25) && (p = "".concat(g, "px"), m = "".concat(d, "px"), y = -(g - d) / 2, k = -(d - g) / 2);
|
|
9514
|
+
var w = "translate(".concat(y, "px,").concat(k, "px) rotate(").concat(e, "turn)"), b = {
|
|
9433
9515
|
transformOrigin: "center center",
|
|
9434
9516
|
transform: w,
|
|
9435
9517
|
webKitTransform: w,
|
|
9436
|
-
height:
|
|
9518
|
+
height: m,
|
|
9437
9519
|
width: p
|
|
9438
9520
|
}, B = i ? h : u, O = i ? n.getPlugin("poster") : null;
|
|
9439
9521
|
Object.keys(b).map(function(z) {
|
|
@@ -9452,7 +9534,7 @@ var io = /* @__PURE__ */ function(o) {
|
|
|
9452
9534
|
key: "registerIcons",
|
|
9453
9535
|
value: function() {
|
|
9454
9536
|
return {
|
|
9455
|
-
rotate:
|
|
9537
|
+
rotate: io
|
|
9456
9538
|
};
|
|
9457
9539
|
}
|
|
9458
9540
|
}, {
|
|
@@ -9485,14 +9567,14 @@ var io = /* @__PURE__ */ function(o) {
|
|
|
9485
9567
|
}
|
|
9486
9568
|
}]), r;
|
|
9487
9569
|
}(je);
|
|
9488
|
-
function
|
|
9570
|
+
function ro() {
|
|
9489
9571
|
return new DOMParser().parseFromString(`<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
9490
9572
|
<path fill-rule="evenodd" clip-rule="evenodd"
|
|
9491
9573
|
d="M16.5 4.3H3.5C3.38954 4.3 3.3 4.38954 3.3 4.5V15.5C3.3 15.6105 3.38954 15.7 3.5 15.7H8.50005L8.50006 17.5H3.5C2.39543 17.5 1.5 16.6046 1.5 15.5V4.5C1.5 3.39543 2.39543 2.5 3.5 2.5H16.5C17.6046 2.5 18.5 3.39543 18.5 4.5V8.5H16.7V4.5C16.7 4.38954 16.6105 4.3 16.5 4.3ZM12 11.5C11.4477 11.5 11 11.9477 11 12.5L11 16.5C11 17.0523 11.4478 17.5 12 17.5H17.5C18.0523 17.5 18.5 17.0523 18.5 16.5L18.5 12.5C18.5 11.9477 18.0523 11.5 17.5 11.5H12Z"
|
|
9492
9574
|
fill="white" />
|
|
9493
9575
|
</svg>`, "image/svg+xml").firstChild;
|
|
9494
9576
|
}
|
|
9495
|
-
function
|
|
9577
|
+
function so() {
|
|
9496
9578
|
return new DOMParser().parseFromString(`<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
9497
9579
|
<path fill-rule="evenodd" clip-rule="evenodd"
|
|
9498
9580
|
d="M16.5 4.3H3.5C3.38954 4.3 3.3 4.38954 3.3 4.5V15.5C3.3 15.6105 3.38954 15.7 3.5 15.7H8.50005L8.50006 17.5H3.5C2.39543 17.5 1.5 16.6046 1.5 15.5V4.5C1.5 3.39543 2.39543 2.5 3.5 2.5H16.5C17.6046 2.5 18.5 3.39543 18.5 4.5V8.5H16.7V4.5C16.7 4.38954 16.6105 4.3 16.5 4.3ZM12 11.5C11.4477 11.5 11 11.9477 11 12.5L11 16.5C11 17.0523 11.4478 17.5 12 17.5H17.5C18.0523 17.5 18.5 17.0523 18.5 16.5L18.5 12.5C18.5 11.9477 18.0523 11.5 17.5 11.5H12Z"
|
|
@@ -9506,7 +9588,7 @@ var Ye = {
|
|
|
9506
9588
|
PIP: "picture-in-picture",
|
|
9507
9589
|
INLINE: "inline",
|
|
9508
9590
|
FULLSCREEN: "fullscreen"
|
|
9509
|
-
},
|
|
9591
|
+
}, ao = /* @__PURE__ */ function(o) {
|
|
9510
9592
|
S(r, o);
|
|
9511
9593
|
var a = x(r);
|
|
9512
9594
|
function r() {
|
|
@@ -9537,7 +9619,7 @@ var Ye = {
|
|
|
9537
9619
|
key: "afterCreate",
|
|
9538
9620
|
value: function() {
|
|
9539
9621
|
var e = this;
|
|
9540
|
-
this.isPIPAvailable() && (
|
|
9622
|
+
this.isPIPAvailable() && (A(I(r.prototype), "afterCreate", this).call(this), this.pMode = Ye.INLINE, this.initPipEvents(), this.config.showIcon && this.initIcons(), this.once(It, function() {
|
|
9541
9623
|
e.config.showIcon && (f.removeClass(e.find(".xgplayer-icon"), "xg-icon-disable"), e.bind("click", e.switchPIP));
|
|
9542
9624
|
}));
|
|
9543
9625
|
}
|
|
@@ -9546,11 +9628,11 @@ var Ye = {
|
|
|
9546
9628
|
value: function() {
|
|
9547
9629
|
return {
|
|
9548
9630
|
pipIcon: {
|
|
9549
|
-
icon:
|
|
9631
|
+
icon: ro,
|
|
9550
9632
|
class: "xg-get-pip"
|
|
9551
9633
|
},
|
|
9552
9634
|
pipIconExit: {
|
|
9553
|
-
icon:
|
|
9635
|
+
icon: so,
|
|
9554
9636
|
class: "xg-exit-pip"
|
|
9555
9637
|
}
|
|
9556
9638
|
};
|
|
@@ -9612,7 +9694,7 @@ var Ye = {
|
|
|
9612
9694
|
documentPictureInPicture.requestWindow(u).then(function(h) {
|
|
9613
9695
|
var d = s.docPiPNode, g = s.docPiPStyle;
|
|
9614
9696
|
e.enterPIPCallback();
|
|
9615
|
-
var p = d || i.root,
|
|
9697
|
+
var p = d || i.root, m = p.parentElement, y = p.previousSibling, k = p.nextSibling;
|
|
9616
9698
|
e.copyStyleIntoPiPWindow(h);
|
|
9617
9699
|
var w = document.createElement("style");
|
|
9618
9700
|
if (w.append("body{padding:0; margin:0;}"), g) {
|
|
@@ -9623,7 +9705,7 @@ var Ye = {
|
|
|
9623
9705
|
.xgplayer{width: 100%!important; height: 100%!important;}
|
|
9624
9706
|
`);
|
|
9625
9707
|
h.document.head.append(w), h.document.body.append(p), h.addEventListener("pagehide", function(B) {
|
|
9626
|
-
|
|
9708
|
+
m && (k ? m.insertBefore(p, k) : y ? m.insertBefore(p, y.nextSibling) : m.appendChild(p)), e.leavePIPCallback();
|
|
9627
9709
|
}, {
|
|
9628
9710
|
once: !0
|
|
9629
9711
|
});
|
|
@@ -9658,7 +9740,7 @@ var Ye = {
|
|
|
9658
9740
|
}, {
|
|
9659
9741
|
key: "isPIPAvailable",
|
|
9660
9742
|
value: function() {
|
|
9661
|
-
var e = this.player.media, i = f.typeOf(document.pictureInPictureEnabled) === "Boolean" ? document.pictureInPictureEnabled : !
|
|
9743
|
+
var e = this.player.media, i = f.typeOf(document.pictureInPictureEnabled) === "Boolean" ? document.pictureInPictureEnabled : !1;
|
|
9662
9744
|
return i && (f.typeOf(e.disablePictureInPicture) === "Boolean" && !e.disablePictureInPicture || e.webkitSupportsPresentationMode && f.typeOf(e.webkitSetPresentationMode) === "Function") || this.isDocPIPAvailable();
|
|
9663
9745
|
}
|
|
9664
9746
|
}, {
|
|
@@ -9669,7 +9751,7 @@ var Ye = {
|
|
|
9669
9751
|
}, {
|
|
9670
9752
|
key: "destroy",
|
|
9671
9753
|
value: function() {
|
|
9672
|
-
|
|
9754
|
+
A(I(r.prototype), "destroy", this).call(this);
|
|
9673
9755
|
var e = this.player;
|
|
9674
9756
|
e.media.removeEventListener("enterpictureinpicture", this.enterPIPCallback), e.media.removeEventListener("leavepictureinpicture", this.leavePIPCallback), r.checkWebkitSetPresentationMode(e.media) && e.media.removeEventListener("webkitpresentationmodechanged", this.onWebkitpresentationmodechanged), this.exitPIP(), this.unbind("click", this.btnClick);
|
|
9675
9757
|
}
|
|
@@ -9709,13 +9791,13 @@ var Ye = {
|
|
|
9709
9791
|
}
|
|
9710
9792
|
}]), r;
|
|
9711
9793
|
}(je);
|
|
9712
|
-
function
|
|
9794
|
+
function oo() {
|
|
9713
9795
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="40" viewBox="10 0 24 40">
|
|
9714
9796
|
<path transform="scale(0.038 0.028)" d="M800 380v768h-128v-352l-320 320v-704l320 320v-352z"></path>
|
|
9715
9797
|
</svg>
|
|
9716
9798
|
`, "image/svg+xml").firstChild;
|
|
9717
9799
|
}
|
|
9718
|
-
var
|
|
9800
|
+
var lo = /* @__PURE__ */ function(o) {
|
|
9719
9801
|
S(r, o);
|
|
9720
9802
|
var a = x(r);
|
|
9721
9803
|
function r(t) {
|
|
@@ -9734,7 +9816,7 @@ var oo = /* @__PURE__ */ function(o) {
|
|
|
9734
9816
|
key: "registerIcons",
|
|
9735
9817
|
value: function() {
|
|
9736
9818
|
return {
|
|
9737
|
-
playNext:
|
|
9819
|
+
playNext: oo
|
|
9738
9820
|
};
|
|
9739
9821
|
}
|
|
9740
9822
|
}, {
|
|
@@ -9783,19 +9865,19 @@ var oo = /* @__PURE__ */ function(o) {
|
|
|
9783
9865
|
};
|
|
9784
9866
|
}
|
|
9785
9867
|
}]), r;
|
|
9786
|
-
}(U),
|
|
9868
|
+
}(U), Jn = { exports: {} };
|
|
9787
9869
|
(function(o, a) {
|
|
9788
9870
|
(function(r, t) {
|
|
9789
9871
|
o.exports = t();
|
|
9790
|
-
})(
|
|
9872
|
+
})($r, function() {
|
|
9791
9873
|
return function r(t, e, i) {
|
|
9792
|
-
var n = window, s = "application/octet-stream", l = i || s, u = t, c = !e && !i && u, h = document.createElement("a"), d = function(
|
|
9793
|
-
return String(
|
|
9794
|
-
}, g = n.Blob || n.MozBlob || n.WebKitBlob || d, p = e || "download",
|
|
9874
|
+
var n = window, s = "application/octet-stream", l = i || s, u = t, c = !e && !i && u, h = document.createElement("a"), d = function(L) {
|
|
9875
|
+
return String(L);
|
|
9876
|
+
}, g = n.Blob || n.MozBlob || n.WebKitBlob || d, p = e || "download", m, y;
|
|
9795
9877
|
if (g = g.call ? g.bind(n) : Blob, String(this) === "true" && (u = [u, l], l = u[0], u = u[1]), c && c.length < 2048 && (p = c.split("/").pop().split("?")[0], h.href = c, h.href.indexOf(c) !== -1)) {
|
|
9796
9878
|
var k = new XMLHttpRequest();
|
|
9797
|
-
return k.open("GET", c, !0), k.responseType = "blob", k.onload = function(
|
|
9798
|
-
r(
|
|
9879
|
+
return k.open("GET", c, !0), k.responseType = "blob", k.onload = function(L) {
|
|
9880
|
+
r(L.target.response, p, s);
|
|
9799
9881
|
}, setTimeout(function() {
|
|
9800
9882
|
k.send();
|
|
9801
9883
|
}, 0), k;
|
|
@@ -9814,51 +9896,51 @@ var oo = /* @__PURE__ */ function(o) {
|
|
|
9814
9896
|
b[w] = u.charCodeAt(w);
|
|
9815
9897
|
u = new g([b], { type: l });
|
|
9816
9898
|
}
|
|
9817
|
-
|
|
9818
|
-
function O(
|
|
9819
|
-
var ee =
|
|
9899
|
+
m = u instanceof g ? u : new g([u], { type: l });
|
|
9900
|
+
function O(L) {
|
|
9901
|
+
var ee = L.split(/[:;,]/), q = ee[1], F = ee[2] == "base64" ? atob : decodeURIComponent, ie = F(ee.pop()), oe = ie.length, le = 0, be = new Uint8Array(oe);
|
|
9820
9902
|
for (le; le < oe; ++le)
|
|
9821
|
-
|
|
9822
|
-
return new g([
|
|
9903
|
+
be[le] = ie.charCodeAt(le);
|
|
9904
|
+
return new g([be], { type: q });
|
|
9823
9905
|
}
|
|
9824
|
-
function z(
|
|
9906
|
+
function z(L, ee) {
|
|
9825
9907
|
if ("download" in h)
|
|
9826
|
-
return h.href =
|
|
9908
|
+
return h.href = L, h.setAttribute("download", p), h.className = "download-js-link", h.innerHTML = "downloading...", h.style.display = "none", document.body.appendChild(h), setTimeout(function() {
|
|
9827
9909
|
h.click(), document.body.removeChild(h), ee === !0 && setTimeout(function() {
|
|
9828
9910
|
n.URL.revokeObjectURL(h.href);
|
|
9829
9911
|
}, 250);
|
|
9830
9912
|
}, 66), !0;
|
|
9831
9913
|
if (/(Version)\/(\d+)\.(\d+)(?:\.(\d+))?.*Safari\//.test(navigator.userAgent))
|
|
9832
|
-
return /^data:/.test(
|
|
9914
|
+
return /^data:/.test(L) && (L = "data:" + L.replace(/^data:([\w\/\-\+]+)/, s)), window.open(L) || confirm(`Displaying New Document
|
|
9833
9915
|
|
|
9834
|
-
Use Save As... to download, then click back to return to this page.`) && (location.href =
|
|
9916
|
+
Use Save As... to download, then click back to return to this page.`) && (location.href = L), !0;
|
|
9835
9917
|
var q = document.createElement("iframe");
|
|
9836
|
-
document.body.appendChild(q), !ee && /^data:/.test(
|
|
9918
|
+
document.body.appendChild(q), !ee && /^data:/.test(L) && (L = "data:" + L.replace(/^data:([\w\/\-\+]+)/, s)), q.src = L, setTimeout(function() {
|
|
9837
9919
|
document.body.removeChild(q);
|
|
9838
9920
|
}, 333);
|
|
9839
9921
|
}
|
|
9840
9922
|
if (navigator.msSaveBlob)
|
|
9841
|
-
return navigator.msSaveBlob(
|
|
9923
|
+
return navigator.msSaveBlob(m, p);
|
|
9842
9924
|
if (n.URL)
|
|
9843
|
-
z(n.URL.createObjectURL(
|
|
9925
|
+
z(n.URL.createObjectURL(m), !0);
|
|
9844
9926
|
else {
|
|
9845
|
-
if (typeof
|
|
9927
|
+
if (typeof m == "string" || m.constructor === d)
|
|
9846
9928
|
try {
|
|
9847
|
-
return z("data:" + l + ";base64," + n.btoa(
|
|
9929
|
+
return z("data:" + l + ";base64," + n.btoa(m));
|
|
9848
9930
|
} catch {
|
|
9849
|
-
return z("data:" + l + "," + encodeURIComponent(
|
|
9931
|
+
return z("data:" + l + "," + encodeURIComponent(m));
|
|
9850
9932
|
}
|
|
9851
|
-
|
|
9933
|
+
y = new FileReader(), y.onload = function(L) {
|
|
9852
9934
|
z(this.result);
|
|
9853
|
-
},
|
|
9935
|
+
}, y.readAsDataURL(m);
|
|
9854
9936
|
}
|
|
9855
9937
|
return !0;
|
|
9856
9938
|
};
|
|
9857
9939
|
});
|
|
9858
|
-
})(
|
|
9859
|
-
var
|
|
9860
|
-
const
|
|
9861
|
-
function
|
|
9940
|
+
})(Jn);
|
|
9941
|
+
var uo = Jn.exports;
|
|
9942
|
+
const co = /* @__PURE__ */ li(uo);
|
|
9943
|
+
function fo() {
|
|
9862
9944
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="24px" height="24px" viewBox="0 0 24 24">
|
|
9863
9945
|
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
9864
9946
|
<g transform="translate(-488.000000, -340.000000)" fill="#FFFFFF">
|
|
@@ -9875,7 +9957,7 @@ function co() {
|
|
|
9875
9957
|
</svg>
|
|
9876
9958
|
`, "image/svg+xml").firstChild;
|
|
9877
9959
|
}
|
|
9878
|
-
var
|
|
9960
|
+
var ho = /* @__PURE__ */ function(o) {
|
|
9879
9961
|
S(r, o);
|
|
9880
9962
|
var a = x(r);
|
|
9881
9963
|
function r(t) {
|
|
@@ -9886,7 +9968,7 @@ var fo = /* @__PURE__ */ function(o) {
|
|
|
9886
9968
|
var n = e.playerConfig.url, s = "";
|
|
9887
9969
|
f.typeOf(n) === "String" ? s = n : f.typeOf(n) === "Array" && n.length > 0 && (s = n[0].src);
|
|
9888
9970
|
var l = e.getAbsoluteURL(s);
|
|
9889
|
-
|
|
9971
|
+
co(l), e.isLock = !0, e.timer = window.setTimeout(function() {
|
|
9890
9972
|
e.isLock = !1, window.clearTimeout(e.timer), e.timer = null;
|
|
9891
9973
|
}, 300);
|
|
9892
9974
|
}
|
|
@@ -9895,7 +9977,7 @@ var fo = /* @__PURE__ */ function(o) {
|
|
|
9895
9977
|
return E(r, [{
|
|
9896
9978
|
key: "afterCreate",
|
|
9897
9979
|
value: function() {
|
|
9898
|
-
|
|
9980
|
+
A(I(r.prototype), "afterCreate", this).call(this), !this.config.disable && (this.appendChild(".xgplayer-icon", this.icons.download), this._handler = this.hook("click", this.download, {
|
|
9899
9981
|
pre: function(i) {
|
|
9900
9982
|
i.preventDefault(), i.stopPropagation();
|
|
9901
9983
|
}
|
|
@@ -9905,7 +9987,7 @@ var fo = /* @__PURE__ */ function(o) {
|
|
|
9905
9987
|
key: "registerIcons",
|
|
9906
9988
|
value: function() {
|
|
9907
9989
|
return {
|
|
9908
|
-
download:
|
|
9990
|
+
download: fo
|
|
9909
9991
|
};
|
|
9910
9992
|
}
|
|
9911
9993
|
}, {
|
|
@@ -9920,7 +10002,7 @@ var fo = /* @__PURE__ */ function(o) {
|
|
|
9920
10002
|
}, {
|
|
9921
10003
|
key: "destroy",
|
|
9922
10004
|
value: function() {
|
|
9923
|
-
|
|
10005
|
+
A(I(r.prototype), "destroy", this).call(this), this.unbind(["click", "touchend"], this.download), window.clearTimeout(this.timer), this.timer = null;
|
|
9924
10006
|
}
|
|
9925
10007
|
}, {
|
|
9926
10008
|
key: "render",
|
|
@@ -9947,7 +10029,7 @@ var fo = /* @__PURE__ */ function(o) {
|
|
|
9947
10029
|
};
|
|
9948
10030
|
}
|
|
9949
10031
|
}]), r;
|
|
9950
|
-
}(je),
|
|
10032
|
+
}(je), go = /* @__PURE__ */ function(o) {
|
|
9951
10033
|
S(r, o);
|
|
9952
10034
|
var a = x(r);
|
|
9953
10035
|
function r() {
|
|
@@ -9961,11 +10043,11 @@ var fo = /* @__PURE__ */ function(o) {
|
|
|
9961
10043
|
}, {
|
|
9962
10044
|
key: "afterCreate",
|
|
9963
10045
|
value: function() {
|
|
9964
|
-
|
|
10046
|
+
A(I(r.prototype), "afterCreate", this).call(this), this.appendChild(".xgplayer-icon", this.icons.screenshotIcon);
|
|
9965
10047
|
var e = this.config;
|
|
9966
10048
|
this.initSize = function(i) {
|
|
9967
10049
|
e.fitVideo && (e.width = i.vWidth, e.height = i.vHeight);
|
|
9968
|
-
}, this.once(
|
|
10050
|
+
}, this.once(Oe, this.initSize);
|
|
9969
10051
|
}
|
|
9970
10052
|
}, {
|
|
9971
10053
|
key: "onPluginsReady",
|
|
@@ -10013,13 +10095,13 @@ var fo = /* @__PURE__ */ function(o) {
|
|
|
10013
10095
|
type: "image/png"
|
|
10014
10096
|
}, l = this.config, u = this.player, c = s.quality || l.quality, h = s.type || l.type;
|
|
10015
10097
|
return new Promise(function(d, g) {
|
|
10016
|
-
var p = null,
|
|
10098
|
+
var p = null, m;
|
|
10017
10099
|
if (u.media.canvas)
|
|
10018
10100
|
p = u.media.canvas;
|
|
10019
10101
|
else {
|
|
10020
|
-
n.canvas ? (n.canvas.width = e || l.width, n.canvas.height = i || l.height) : n.createCanvas(e, i), p = n.canvas,
|
|
10021
|
-
var
|
|
10022
|
-
|
|
10102
|
+
n.canvas ? (n.canvas.width = e || l.width, n.canvas.height = i || l.height) : n.createCanvas(e, i), p = n.canvas, m = n.canvasCtx;
|
|
10103
|
+
var y = u.media.videoWidth / u.media.videoHeight, k = p.width / p.height, w = 0, b = 0, B = u.media.videoWidth, O = u.media.videoHeight, z, L, ee, q;
|
|
10104
|
+
y > k ? (ee = p.width, q = p.width / y, z = 0, L = Math.round((p.height - q) / 2)) : y === k ? (ee = p.width, q = p.height, z = 0, L = 0) : y < k && (ee = p.height * y, q = p.height, z = Math.round((p.width - ee) / 2), L = 0), m.drawImage(u.media, w, b, B, O, z, L, ee, q);
|
|
10023
10105
|
}
|
|
10024
10106
|
var F = p.toDataURL(h, c).replace(h, "image/octet-stream");
|
|
10025
10107
|
F = F.replace(/^data:image\/[^;]+/, "data:application/octet-stream"), d(F);
|
|
@@ -10035,7 +10117,7 @@ var fo = /* @__PURE__ */ function(o) {
|
|
|
10035
10117
|
}, {
|
|
10036
10118
|
key: "destroy",
|
|
10037
10119
|
value: function() {
|
|
10038
|
-
|
|
10120
|
+
A(I(r.prototype), "destroy", this).call(this), this.unbind(["click", "touchend"], this.onClickBtn), this.off(Oe, this.initSize);
|
|
10039
10121
|
}
|
|
10040
10122
|
}, {
|
|
10041
10123
|
key: "render",
|
|
@@ -10073,7 +10155,7 @@ var fo = /* @__PURE__ */ function(o) {
|
|
|
10073
10155
|
};
|
|
10074
10156
|
}
|
|
10075
10157
|
}]), r;
|
|
10076
|
-
}(je),
|
|
10158
|
+
}(je), po = /* @__PURE__ */ function() {
|
|
10077
10159
|
function o(a) {
|
|
10078
10160
|
T(this, o), this.config = a.config, this.parent = a.root, this.root = f.createDom("ul", "", {}, "xg-options-list xg-list-slide-scroll ".concat(this.config.className)), a.root.appendChild(this.root);
|
|
10079
10161
|
var r = this.config.maxHeight;
|
|
@@ -10153,7 +10235,7 @@ var fo = /* @__PURE__ */ function(o) {
|
|
|
10153
10235
|
CLICK: "click",
|
|
10154
10236
|
HOVER: "hover"
|
|
10155
10237
|
};
|
|
10156
|
-
function
|
|
10238
|
+
function vo(o, a) {
|
|
10157
10239
|
return o === me.SIDE ? a === G.CONTROLS_LEFT ? "xg-side-list xg-left-side" : "xg-side-list xg-right-side" : "";
|
|
10158
10240
|
}
|
|
10159
10241
|
var Be = R.device === "mobile", St = /* @__PURE__ */ function(o) {
|
|
@@ -10188,7 +10270,7 @@ var Be = R.device === "mobile", St = /* @__PURE__ */ function(o) {
|
|
|
10188
10270
|
key: "afterCreate",
|
|
10189
10271
|
value: function() {
|
|
10190
10272
|
var e = this, i = this.config;
|
|
10191
|
-
this.initIcons(), Be = Be || this.domEventType === "touch", Be && R.device === "mobile" && i.listType === me.DEFAULT && (i.listType = me.SIDE), i.hidePortrait && f.addClass(this.root, "portrait"), this.on([
|
|
10273
|
+
this.initIcons(), Be = Be || this.domEventType === "touch", Be && R.device === "mobile" && i.listType === me.DEFAULT && (i.listType = me.SIDE), i.hidePortrait && f.addClass(this.root, "portrait"), this.on([Oe, we], function() {
|
|
10192
10274
|
e._resizeList();
|
|
10193
10275
|
}), this.once(Te, function() {
|
|
10194
10276
|
i.list && i.list.length > 0 && (e.renderItemList(i.list), e.show());
|
|
@@ -10267,9 +10349,9 @@ var Be = R.device === "mobile", St = /* @__PURE__ */ function(o) {
|
|
|
10267
10349
|
var c = {
|
|
10268
10350
|
config: {
|
|
10269
10351
|
data: e || [],
|
|
10270
|
-
className:
|
|
10271
|
-
onItemClick: function(
|
|
10272
|
-
n.onItemClick(
|
|
10352
|
+
className: vo(s.listType, s.position),
|
|
10353
|
+
onItemClick: function(m, y) {
|
|
10354
|
+
n.onItemClick(m, y);
|
|
10273
10355
|
},
|
|
10274
10356
|
domEventType: Be ? "touch" : "mouse"
|
|
10275
10357
|
},
|
|
@@ -10277,7 +10359,7 @@ var Be = R.device === "mobile", St = /* @__PURE__ */ function(o) {
|
|
|
10277
10359
|
};
|
|
10278
10360
|
if (this.config.isShowIcon) {
|
|
10279
10361
|
var h = this.player.root.getBoundingClientRect(), d = h.height, g = s.listType === me.MIDDLE ? d - 50 : d;
|
|
10280
|
-
g && s.heightLimit && (c.config.maxHeight = "".concat(g, "px")), this.optionsList = new
|
|
10362
|
+
g && s.heightLimit && (c.config.maxHeight = "".concat(g, "px")), this.optionsList = new po(c), this.changeCurrentText(), this.show();
|
|
10281
10363
|
}
|
|
10282
10364
|
this._resizeList();
|
|
10283
10365
|
}
|
|
@@ -10328,7 +10410,7 @@ var Be = R.device === "mobile", St = /* @__PURE__ */ function(o) {
|
|
|
10328
10410
|
};
|
|
10329
10411
|
}
|
|
10330
10412
|
}]), r;
|
|
10331
|
-
}(U),
|
|
10413
|
+
}(U), mo = /* @__PURE__ */ function(o) {
|
|
10332
10414
|
S(r, o);
|
|
10333
10415
|
var a = x(r);
|
|
10334
10416
|
function r(t) {
|
|
@@ -10347,7 +10429,7 @@ var Be = R.device === "mobile", St = /* @__PURE__ */ function(o) {
|
|
|
10347
10429
|
key: "afterCreate",
|
|
10348
10430
|
value: function() {
|
|
10349
10431
|
var e = this;
|
|
10350
|
-
|
|
10432
|
+
A(I(r.prototype), "afterCreate", this).call(this), this.on("resourceReady", function(i) {
|
|
10351
10433
|
e.changeDefinitionList(i);
|
|
10352
10434
|
}), this.on(mi, function(i) {
|
|
10353
10435
|
e.renderItemList(e.config.list, i.to);
|
|
@@ -10383,7 +10465,7 @@ var Be = R.device === "mobile", St = /* @__PURE__ */ function(o) {
|
|
|
10383
10465
|
});
|
|
10384
10466
|
return (c.selected || c.definition && c.definition == s) && (d.selected = !0, l = h), d;
|
|
10385
10467
|
});
|
|
10386
|
-
|
|
10468
|
+
A(I(r.prototype), "renderItemList", this).call(this, u, l);
|
|
10387
10469
|
}
|
|
10388
10470
|
}, {
|
|
10389
10471
|
key: "changeDefinitionList",
|
|
@@ -10401,7 +10483,7 @@ var Be = R.device === "mobile", St = /* @__PURE__ */ function(o) {
|
|
|
10401
10483
|
key: "onItemClick",
|
|
10402
10484
|
value: function(e, i) {
|
|
10403
10485
|
var n = this.player.definitionList;
|
|
10404
|
-
|
|
10486
|
+
A(I(r.prototype), "onItemClick", this).apply(this, arguments), this.emitUserAction(e, "change_definition", {
|
|
10405
10487
|
from: i.from,
|
|
10406
10488
|
to: i.to
|
|
10407
10489
|
});
|
|
@@ -10429,7 +10511,7 @@ var Be = R.device === "mobile", St = /* @__PURE__ */ function(o) {
|
|
|
10429
10511
|
});
|
|
10430
10512
|
}
|
|
10431
10513
|
}]), r;
|
|
10432
|
-
}(St),
|
|
10514
|
+
}(St), yo = /* @__PURE__ */ function(o) {
|
|
10433
10515
|
S(r, o);
|
|
10434
10516
|
var a = x(r);
|
|
10435
10517
|
function r(t) {
|
|
@@ -10451,19 +10533,19 @@ var Be = R.device === "mobile", St = /* @__PURE__ */ function(o) {
|
|
|
10451
10533
|
key: "afterCreate",
|
|
10452
10534
|
value: function() {
|
|
10453
10535
|
var e = this;
|
|
10454
|
-
|
|
10536
|
+
A(I(r.prototype), "afterCreate", this).call(this), this.on(An, function() {
|
|
10455
10537
|
e.curValue !== e.player.playbackRate && e.renderItemList();
|
|
10456
10538
|
}), this.renderItemList();
|
|
10457
10539
|
}
|
|
10458
10540
|
}, {
|
|
10459
10541
|
key: "show",
|
|
10460
10542
|
value: function(e) {
|
|
10461
|
-
!this.config.list || this.config.list.length === 0 ||
|
|
10543
|
+
!this.config.list || this.config.list.length === 0 || A(I(r.prototype), "show", this).call(this);
|
|
10462
10544
|
}
|
|
10463
10545
|
}, {
|
|
10464
10546
|
key: "onItemClick",
|
|
10465
10547
|
value: function(e, i) {
|
|
10466
|
-
|
|
10548
|
+
A(I(r.prototype), "onItemClick", this).call(this, e, i);
|
|
10467
10549
|
var n = e.delegateTarget, s = Number(n.getAttribute("rate"));
|
|
10468
10550
|
if (!s || s === this.curValue)
|
|
10469
10551
|
return !1;
|
|
@@ -10488,7 +10570,7 @@ var Be = R.device === "mobile", St = /* @__PURE__ */ function(o) {
|
|
|
10488
10570
|
};
|
|
10489
10571
|
return c.rate === i && (c.selected = !0, n = u), c.showText = e.getTextByLang(l), c;
|
|
10490
10572
|
});
|
|
10491
|
-
|
|
10573
|
+
A(I(r.prototype), "renderItemList", this).call(this, s, n);
|
|
10492
10574
|
}
|
|
10493
10575
|
}, {
|
|
10494
10576
|
key: "changeCurrentText",
|
|
@@ -10501,7 +10583,7 @@ var Be = R.device === "mobile", St = /* @__PURE__ */ function(o) {
|
|
|
10501
10583
|
}, {
|
|
10502
10584
|
key: "destroy",
|
|
10503
10585
|
value: function() {
|
|
10504
|
-
|
|
10586
|
+
A(I(r.prototype), "destroy", this).call(this);
|
|
10505
10587
|
}
|
|
10506
10588
|
}], [{
|
|
10507
10589
|
key: "pluginName",
|
|
@@ -10522,13 +10604,13 @@ var Be = R.device === "mobile", St = /* @__PURE__ */ function(o) {
|
|
|
10522
10604
|
}
|
|
10523
10605
|
}]), r;
|
|
10524
10606
|
}(St);
|
|
10525
|
-
function
|
|
10607
|
+
function _o() {
|
|
10526
10608
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="31" height="40" viewBox="0 -5 31 40">
|
|
10527
10609
|
<path fill="#fff" transform="scale(1.3, 1.3)" class='path_full' d="M9,10v1a.9.9,0,0,1-1,1,.9.9,0,0,1-1-1V9A.9.9,0,0,1,8,8h2a.9.9,0,0,1,1,1,.9.9,0,0,1-1,1Zm6,4V13a1,1,0,0,1,2,0v2a.9.9,0,0,1-1,1H14a1,1,0,0,1,0-2Zm3-7H6V17H18Zm2,0V17a2,2,0,0,1-2,2H6a2,2,0,0,1-2-2V7A2,2,0,0,1,6,5H18A2,2,0,0,1,20,7Z"></path>
|
|
10528
10610
|
</svg>
|
|
10529
10611
|
`, "image/svg+xml").firstChild;
|
|
10530
10612
|
}
|
|
10531
|
-
function
|
|
10613
|
+
function Co() {
|
|
10532
10614
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="31" height="40" viewBox="0 -5 31 40">
|
|
10533
10615
|
<path fill="#fff" transform="scale(1.3, 1.3)" d="M9,10V9a.9.9,0,0,1,1-1,.9.9,0,0,1,1,1v2a.9.9,0,0,1-1,1H8a.9.9,0,0,1-1-1,.9.9,0,0,1,1-1Zm6,4v1a1,1,0,0,1-2,0V13a.9.9,0,0,1,1-1h2a1,1,0,0,1,0,2Zm3-7H6V17H18Zm2,0V17a2,2,0,0,1-2,2H6a2,2,0,0,1-2-2V7A2,2,0,0,1,6,5H18A2,2,0,0,1,20,7Z"></path>
|
|
10534
10616
|
</svg>
|
|
@@ -10549,7 +10631,7 @@ var dn = /* @__PURE__ */ function(o) {
|
|
|
10549
10631
|
key: "afterCreate",
|
|
10550
10632
|
value: function() {
|
|
10551
10633
|
var e = this;
|
|
10552
|
-
|
|
10634
|
+
A(I(r.prototype), "afterCreate", this).call(this), !this.config.disable && (this.config.target && (this.playerConfig.fullscreenTarget = this.config.target), this.initIcons(), this.on(_t, function(i) {
|
|
10553
10635
|
e.animate(i);
|
|
10554
10636
|
}), this.btnClick = this.btnClick.bind(this), this.handleCssFullscreen = this.hook("cssFullscreen_change", this.btnClick, {
|
|
10555
10637
|
pre: function(n) {
|
|
@@ -10588,11 +10670,11 @@ var dn = /* @__PURE__ */ function(o) {
|
|
|
10588
10670
|
value: function() {
|
|
10589
10671
|
return {
|
|
10590
10672
|
cssFullscreen: {
|
|
10591
|
-
icon:
|
|
10673
|
+
icon: _o,
|
|
10592
10674
|
class: "xg-get-cssfull"
|
|
10593
10675
|
},
|
|
10594
10676
|
exitCssFullscreen: {
|
|
10595
|
-
icon:
|
|
10677
|
+
icon: Co,
|
|
10596
10678
|
class: "xg-exit-cssfull"
|
|
10597
10679
|
}
|
|
10598
10680
|
};
|
|
@@ -10600,7 +10682,7 @@ var dn = /* @__PURE__ */ function(o) {
|
|
|
10600
10682
|
}, {
|
|
10601
10683
|
key: "destroy",
|
|
10602
10684
|
value: function() {
|
|
10603
|
-
|
|
10685
|
+
A(I(r.prototype), "destroy", this).call(this), this.unbind(["click", "touchend"], this.btnClick);
|
|
10604
10686
|
}
|
|
10605
10687
|
}, {
|
|
10606
10688
|
key: "render",
|
|
@@ -10628,7 +10710,7 @@ var dn = /* @__PURE__ */ function(o) {
|
|
|
10628
10710
|
};
|
|
10629
10711
|
}
|
|
10630
10712
|
}]), r;
|
|
10631
|
-
}(je),
|
|
10713
|
+
}(je), ko = /* @__PURE__ */ function(o) {
|
|
10632
10714
|
S(r, o);
|
|
10633
10715
|
var a = x(r);
|
|
10634
10716
|
function r() {
|
|
@@ -10689,7 +10771,7 @@ var dn = /* @__PURE__ */ function(o) {
|
|
|
10689
10771
|
return "error";
|
|
10690
10772
|
}
|
|
10691
10773
|
}]), r;
|
|
10692
|
-
}(U),
|
|
10774
|
+
}(U), bo = /* @__PURE__ */ function(o) {
|
|
10693
10775
|
S(r, o);
|
|
10694
10776
|
var a = x(r);
|
|
10695
10777
|
function r() {
|
|
@@ -10777,7 +10859,7 @@ var dn = /* @__PURE__ */ function(o) {
|
|
|
10777
10859
|
width: 6,
|
|
10778
10860
|
height: 6
|
|
10779
10861
|
};
|
|
10780
|
-
function
|
|
10862
|
+
function Qn(o) {
|
|
10781
10863
|
Object.keys(gn).map(function(a) {
|
|
10782
10864
|
o[a] === void 0 && (o[a] = gn[a]);
|
|
10783
10865
|
});
|
|
@@ -10799,7 +10881,7 @@ var pn = {
|
|
|
10799
10881
|
},
|
|
10800
10882
|
createDot: function(a) {
|
|
10801
10883
|
var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, t = this.player.plugins.progress;
|
|
10802
|
-
if (t && (r && (
|
|
10884
|
+
if (t && (r && (Qn(a), this._ispots.push(a)), !(!this.ispotsInit && r))) {
|
|
10803
10885
|
var e = this.calcuPosition(a.time, a.duration), i = a.style || {};
|
|
10804
10886
|
i.left = "".concat(e.left, "%"), i.width = "".concat(e.width, "%");
|
|
10805
10887
|
var n = "xgspot_".concat(a.id, " xgplayer-spot");
|
|
@@ -10919,20 +11001,20 @@ var pn = {
|
|
|
10919
11001
|
return r.find('xg-spot[data-id="'.concat(a, '"]'));
|
|
10920
11002
|
}
|
|
10921
11003
|
};
|
|
10922
|
-
function
|
|
11004
|
+
function wo(o) {
|
|
10923
11005
|
var a = o.config, r = o.player;
|
|
10924
11006
|
Object.keys(pn).map(function(e) {
|
|
10925
11007
|
o[e] = pn[e].bind(o);
|
|
10926
11008
|
});
|
|
10927
11009
|
var t = r.config.progressDot || a.ispots || [];
|
|
10928
11010
|
o._ispots = t.map(function(e) {
|
|
10929
|
-
return
|
|
11011
|
+
return Qn(e), e;
|
|
10930
11012
|
}), o.ispotsInit = !1, o.playerSize = {
|
|
10931
11013
|
left: r.sizeInfo.left,
|
|
10932
11014
|
width: r.sizeInfo.width
|
|
10933
|
-
}, o.on(
|
|
11015
|
+
}, o.on(xe, function() {
|
|
10934
11016
|
o.ispotsInit ? o.updateDuration() : o.initDots();
|
|
10935
|
-
}), o.on(
|
|
11017
|
+
}), o.on(Oe, function() {
|
|
10936
11018
|
o.positionDots();
|
|
10937
11019
|
});
|
|
10938
11020
|
}
|
|
@@ -10943,7 +11025,7 @@ var Xe = {
|
|
|
10943
11025
|
click: "onProgressClick",
|
|
10944
11026
|
mouseover: "onProgressMouseOver",
|
|
10945
11027
|
mouseenter: "onProgressMouseOver"
|
|
10946
|
-
},
|
|
11028
|
+
}, To = /* @__PURE__ */ function(o) {
|
|
10947
11029
|
S(r, o);
|
|
10948
11030
|
var a = x(r);
|
|
10949
11031
|
function r(t) {
|
|
@@ -10994,7 +11076,7 @@ var Xe = {
|
|
|
10994
11076
|
n.seekTime && e.player.seek(n.seekTime);
|
|
10995
11077
|
}), this.transformTimeHook = this.hook("transformTime", function(i) {
|
|
10996
11078
|
e.setTimeContent(f.format(i));
|
|
10997
|
-
}),
|
|
11079
|
+
}), wo(this), this.on(xe, function() {
|
|
10998
11080
|
e.show();
|
|
10999
11081
|
}), this.config.disable && this.disable(), this.extTextRoot = this.find(".xg-spot-ext-text");
|
|
11000
11082
|
}
|
|
@@ -11218,7 +11300,7 @@ var Xe = {
|
|
|
11218
11300
|
};
|
|
11219
11301
|
}
|
|
11220
11302
|
}]), r;
|
|
11221
|
-
}(U),
|
|
11303
|
+
}(U), Eo = /* @__PURE__ */ function(o) {
|
|
11222
11304
|
S(r, o);
|
|
11223
11305
|
var a = x(r);
|
|
11224
11306
|
function r(t) {
|
|
@@ -11229,7 +11311,7 @@ var Xe = {
|
|
|
11229
11311
|
key: "afterCreate",
|
|
11230
11312
|
value: function() {
|
|
11231
11313
|
var e = this;
|
|
11232
|
-
this.usable && this.initThumbnail(), this.on([
|
|
11314
|
+
this.usable && this.initThumbnail(), this.on([xe], function() {
|
|
11233
11315
|
var i = e.config, n = i.pic_num, s = i.interval;
|
|
11234
11316
|
e.usable && (e.interval = s > 0 ? s : Math.round(e.player.duration * 1e3 / n) / 1e3);
|
|
11235
11317
|
});
|
|
@@ -11282,7 +11364,7 @@ var Xe = {
|
|
|
11282
11364
|
this.interval = Math.round(this.player.duration / l);
|
|
11283
11365
|
var g = Math.ceil(e / this.interval);
|
|
11284
11366
|
g = g > l ? l : g;
|
|
11285
|
-
var p = g < u * c ? 0 : Math.ceil(g / (u * c)) - 1,
|
|
11367
|
+
var p = g < u * c ? 0 : Math.ceil(g / (u * c)) - 1, m = g - p * (c * u), y = m > 0 ? Math.ceil(m / c) - 1 : 0, k = m > 0 ? m - y * c - 1 : 0, w = 0, b = 0;
|
|
11286
11368
|
if (i && n) {
|
|
11287
11369
|
var B = i / n;
|
|
11288
11370
|
B < h / d ? (b = n, w = b * (h / d)) : (w = i, b = w / (h / d));
|
|
@@ -11291,7 +11373,7 @@ var Xe = {
|
|
|
11291
11373
|
var O = this.getUrlByIndex(p);
|
|
11292
11374
|
return {
|
|
11293
11375
|
urlIndex: p,
|
|
11294
|
-
rowIndex:
|
|
11376
|
+
rowIndex: y,
|
|
11295
11377
|
colIndex: k,
|
|
11296
11378
|
url: O,
|
|
11297
11379
|
height: b,
|
|
@@ -11299,7 +11381,7 @@ var Xe = {
|
|
|
11299
11381
|
style: {
|
|
11300
11382
|
backgroundImage: "url(".concat(O, ")"),
|
|
11301
11383
|
backgroundSize: "".concat(w * c, "px auto"),
|
|
11302
|
-
backgroundPosition: "-".concat(k * w, "px -").concat(
|
|
11384
|
+
backgroundPosition: "-".concat(k * w, "px -").concat(y * b, "px"),
|
|
11303
11385
|
width: "".concat(w, "px"),
|
|
11304
11386
|
height: "".concat(b, "px")
|
|
11305
11387
|
}
|
|
@@ -11356,7 +11438,7 @@ var Xe = {
|
|
|
11356
11438
|
function Yt(o) {
|
|
11357
11439
|
return o ? "background:".concat(o, ";") : "";
|
|
11358
11440
|
}
|
|
11359
|
-
var
|
|
11441
|
+
var So = /* @__PURE__ */ function(o) {
|
|
11360
11442
|
S(r, o);
|
|
11361
11443
|
var a = x(r);
|
|
11362
11444
|
function r() {
|
|
@@ -11444,14 +11526,14 @@ var Eo = /* @__PURE__ */ function(o) {
|
|
|
11444
11526
|
FRAME_RATE: "framerate",
|
|
11445
11527
|
POSTER: "poster"
|
|
11446
11528
|
};
|
|
11447
|
-
function
|
|
11529
|
+
function xo() {
|
|
11448
11530
|
try {
|
|
11449
11531
|
return parseInt(window.performance.now(), 10);
|
|
11450
11532
|
} catch {
|
|
11451
11533
|
return (/* @__PURE__ */ new Date()).getTime();
|
|
11452
11534
|
}
|
|
11453
11535
|
}
|
|
11454
|
-
function
|
|
11536
|
+
function Io() {
|
|
11455
11537
|
try {
|
|
11456
11538
|
var o = document.createElement("canvas").getContext;
|
|
11457
11539
|
return !!o;
|
|
@@ -11459,7 +11541,7 @@ function xo() {
|
|
|
11459
11541
|
return !1;
|
|
11460
11542
|
}
|
|
11461
11543
|
}
|
|
11462
|
-
var dt = null,
|
|
11544
|
+
var dt = null, Po = /* @__PURE__ */ function(o) {
|
|
11463
11545
|
S(r, o);
|
|
11464
11546
|
var a = x(r);
|
|
11465
11547
|
function r() {
|
|
@@ -11480,7 +11562,7 @@ var dt = null, Io = /* @__PURE__ */ function(o) {
|
|
|
11480
11562
|
!t.player.paused && t._checkIfCanStart() && t.start(0, l);
|
|
11481
11563
|
}
|
|
11482
11564
|
}), _(v(t), "start", function(s, l) {
|
|
11483
|
-
var u = t.player.video, c =
|
|
11565
|
+
var u = t.player.video, c = xo(), h = t.checkVideoIsSupport(u);
|
|
11484
11566
|
!h || !t.canvasCtx || (l || (l = t.interval), t.stop(), u.videoWidth && u.videoHeight && (t.videoPI = u.videoHeight > 0 ? parseInt(u.videoWidth / u.videoHeight * 100, 10) : 0, (t.config.mode === qe.REAL_TIME || c - t.preTime >= l) && (u && u.videoWidth && t.update(h, t.videoPI), t.preTime = c)), t.frameId = t._loopType === "timer" ? f.setTimeout(v(t), t.start, l) : f.requestAnimationFrame(t.start));
|
|
11485
11567
|
}), _(v(t), "stop", function() {
|
|
11486
11568
|
t.frameId && (t._loopType === "timer" ? f.clearTimeout(v(t), t.frameId) : f.cancelAnimationFrame(t.frameId), t.frameId = null);
|
|
@@ -11653,7 +11735,7 @@ var dt = null, Io = /* @__PURE__ */ function(o) {
|
|
|
11653
11735
|
}, {
|
|
11654
11736
|
key: "isSupport",
|
|
11655
11737
|
get: function() {
|
|
11656
|
-
return typeof dt == "boolean" || (dt =
|
|
11738
|
+
return typeof dt == "boolean" || (dt = Io()), dt;
|
|
11657
11739
|
}
|
|
11658
11740
|
}, {
|
|
11659
11741
|
key: "supportCanvasFilter",
|
|
@@ -11661,7 +11743,7 @@ var dt = null, Io = /* @__PURE__ */ function(o) {
|
|
|
11661
11743
|
return !(R.browser === "safari" || R.browser === "firefox");
|
|
11662
11744
|
}
|
|
11663
11745
|
}]), r;
|
|
11664
|
-
}(U),
|
|
11746
|
+
}(U), Ao = {
|
|
11665
11747
|
LANG: "zh-cn",
|
|
11666
11748
|
TEXT: {
|
|
11667
11749
|
ERROR_TYPES: {
|
|
@@ -11880,7 +11962,7 @@ var dt = null, Io = /* @__PURE__ */ function(o) {
|
|
|
11880
11962
|
return {};
|
|
11881
11963
|
}
|
|
11882
11964
|
}]), r;
|
|
11883
|
-
}(
|
|
11965
|
+
}(Me), er = /* @__PURE__ */ function(o) {
|
|
11884
11966
|
S(r, o);
|
|
11885
11967
|
var a = x(r);
|
|
11886
11968
|
function r() {
|
|
@@ -11900,15 +11982,15 @@ var dt = null, Io = /* @__PURE__ */ function(o) {
|
|
|
11900
11982
|
var c = l.media.buffered, h = u.smallGapLimit || 0.5, d = u.gapDetectionThreshold || 0.3, g = l.media.currentTime, p = t._getIndex(c, g, d);
|
|
11901
11983
|
if (!(p === null || p === 0)) {
|
|
11902
11984
|
console.log("GapJump bufferRange ", c.start(p), c.end(p));
|
|
11903
|
-
var
|
|
11904
|
-
if (!(
|
|
11905
|
-
var k =
|
|
11906
|
-
k < r.BROWSER_GAP_TOLERANCE || w && (u.useGapJump !== !1 && (l.media.currentTime = t.isSafari ?
|
|
11985
|
+
var m = c.start(p) + 0.1, y = l.media.duration;
|
|
11986
|
+
if (!(m > y)) {
|
|
11987
|
+
var k = m - g, w = k <= h;
|
|
11988
|
+
k < r.BROWSER_GAP_TOLERANCE || w && (u.useGapJump !== !1 && (l.media.currentTime = t.isSafari ? m + 0.1 : m), t.player && t.player.emit("detectGap"), console.log("gapJump gapIndex", p, " isGapSamll:", w, " currentTime:", l.media.currentTime, " jumpSize:", g - l.media.currentTime), m !== 0.08 && l && l.emit("log", {
|
|
11907
11989
|
type: "oneevent",
|
|
11908
11990
|
end_type: "gap",
|
|
11909
11991
|
vid: l.config.vid,
|
|
11910
11992
|
ext: {
|
|
11911
|
-
video_postion: Math.floor(
|
|
11993
|
+
video_postion: Math.floor(m * 1e3)
|
|
11912
11994
|
}
|
|
11913
11995
|
}));
|
|
11914
11996
|
}
|
|
@@ -11969,8 +12051,8 @@ var dt = null, Io = /* @__PURE__ */ function(o) {
|
|
|
11969
12051
|
}
|
|
11970
12052
|
}]), r;
|
|
11971
12053
|
}(U);
|
|
11972
|
-
|
|
11973
|
-
var
|
|
12054
|
+
er.BROWSER_GAP_TOLERANCE = 1e-3;
|
|
12055
|
+
var Do = /* @__PURE__ */ function(o) {
|
|
11974
12056
|
S(r, o);
|
|
11975
12057
|
var a = x(r);
|
|
11976
12058
|
function r() {
|
|
@@ -12016,7 +12098,7 @@ var Ao = /* @__PURE__ */ function(o) {
|
|
|
12016
12098
|
};
|
|
12017
12099
|
}
|
|
12018
12100
|
}]), r;
|
|
12019
|
-
}(U), Ze = "cdn", gt = ["cdn"],
|
|
12101
|
+
}(U), Ze = "cdn", gt = ["cdn"], Ro = /* @__PURE__ */ function(o) {
|
|
12020
12102
|
S(r, o);
|
|
12021
12103
|
var a = x(r);
|
|
12022
12104
|
function r() {
|
|
@@ -12046,18 +12128,18 @@ var Ao = /* @__PURE__ */ function(o) {
|
|
|
12046
12128
|
if (!(t.cnt >= c)) {
|
|
12047
12129
|
t.cnt++;
|
|
12048
12130
|
try {
|
|
12049
|
-
var g = (/* @__PURE__ */ new Date()).getTime(), p = null,
|
|
12050
|
-
t.xhr =
|
|
12051
|
-
var
|
|
12052
|
-
|
|
12053
|
-
|
|
12054
|
-
}),
|
|
12055
|
-
if (
|
|
12131
|
+
var g = (/* @__PURE__ */ new Date()).getTime(), p = null, m = new XMLHttpRequest();
|
|
12132
|
+
t.xhr = m, m.open("GET", d);
|
|
12133
|
+
var y = {}, k = Math.floor(Math.random() * 10);
|
|
12134
|
+
y.Range = "bytes=" + k + "-" + (u + k), y && Object.keys(y).forEach(function(w) {
|
|
12135
|
+
m.setRequestHeader(w, y[w]);
|
|
12136
|
+
}), m.onreadystatechange = function() {
|
|
12137
|
+
if (m.readyState === 4) {
|
|
12056
12138
|
t.xhr = null, p = (/* @__PURE__ */ new Date()).getTime();
|
|
12057
|
-
var w =
|
|
12139
|
+
var w = m.getResponseHeader("Content-Length") / 1024 * 8, b = Math.round(w * 1e3 / (p - g));
|
|
12058
12140
|
t.appendList(b), t.timer = setTimeout(t.testSpeed, h);
|
|
12059
12141
|
}
|
|
12060
|
-
},
|
|
12142
|
+
}, m.send();
|
|
12061
12143
|
} catch (w) {
|
|
12062
12144
|
console.error(w);
|
|
12063
12145
|
}
|
|
@@ -12142,7 +12224,7 @@ var Ao = /* @__PURE__ */ function(o) {
|
|
|
12142
12224
|
};
|
|
12143
12225
|
}
|
|
12144
12226
|
}]), r;
|
|
12145
|
-
}(U),
|
|
12227
|
+
}(U), Oo = /* @__PURE__ */ function(o) {
|
|
12146
12228
|
S(r, o);
|
|
12147
12229
|
var a = x(r);
|
|
12148
12230
|
function r() {
|
|
@@ -12201,10 +12283,10 @@ var Ao = /* @__PURE__ */ function(o) {
|
|
|
12201
12283
|
value: function(e, i, n, s) {
|
|
12202
12284
|
var l = this.player.media || this.player.video, u = document.hidden, c = l.paused, h = l.readyState, d = l.currentTime, g = l.buffered;
|
|
12203
12285
|
if (!(u || c || h < 4)) {
|
|
12204
|
-
var p = this._checkBuffer(d, g),
|
|
12205
|
-
|
|
12286
|
+
var p = this._checkBuffer(d, g), m = p.enoughBuffer, y = p.buffers;
|
|
12287
|
+
m && (e <= this.config.reportFrame ? (this._currentStuckCount++, this._payload.push({
|
|
12206
12288
|
currentTime: d,
|
|
12207
|
-
buffers:
|
|
12289
|
+
buffers: y,
|
|
12208
12290
|
curDecodedFrames: e,
|
|
12209
12291
|
totalVideoFrames: i,
|
|
12210
12292
|
droppedVideoFrames: n,
|
|
@@ -12252,24 +12334,24 @@ var Ao = /* @__PURE__ */ function(o) {
|
|
|
12252
12334
|
}
|
|
12253
12335
|
}]), r;
|
|
12254
12336
|
}(U);
|
|
12255
|
-
Qe.use(
|
|
12256
|
-
var
|
|
12337
|
+
Qe.use(Ao);
|
|
12338
|
+
var Mo = /* @__PURE__ */ E(function o(a, r) {
|
|
12257
12339
|
var t, e, i;
|
|
12258
12340
|
T(this, o);
|
|
12259
|
-
var n = r && r.isMobileSimulateMode === "mobile", s = r.isLive, l = s ? [] : [
|
|
12260
|
-
this.plugins = [Lo,
|
|
12341
|
+
var n = r && r.isMobileSimulateMode === "mobile", s = r.isLive, l = s ? [] : [Za, ja, So, To, qa], u = [].concat(l, [Wa, Xa, no, lo, mo, yo, ho, go, to, ao]), c = [wa, Ta, Sa, Ua, xa, ko, bo, Eo, La];
|
|
12342
|
+
this.plugins = [Lo, ka].concat(de(u), c, [er, Do]);
|
|
12261
12343
|
var h = n ? "mobile" : R.device;
|
|
12262
12344
|
switch (h) {
|
|
12263
12345
|
case "pc":
|
|
12264
|
-
(t = this.plugins).push.apply(t, [fn, Gt, dn,
|
|
12346
|
+
(t = this.plugins).push.apply(t, [fn, Gt, dn, Ro, Oo]);
|
|
12265
12347
|
break;
|
|
12266
12348
|
case "mobile":
|
|
12267
|
-
(e = this.plugins).push.apply(e, [
|
|
12349
|
+
(e = this.plugins).push.apply(e, [Fa]);
|
|
12268
12350
|
break;
|
|
12269
12351
|
default:
|
|
12270
12352
|
(i = this.plugins).push.apply(i, [fn, Gt, dn]);
|
|
12271
12353
|
}
|
|
12272
|
-
(R.os.isIpad || h === "pc") && this.plugins.push(
|
|
12354
|
+
(R.os.isIpad || h === "pc") && this.plugins.push(Po), R.os.isIpad && this.plugins.push(Gt), this.ignores = [], this.i18n = [];
|
|
12273
12355
|
}), ge = /* @__PURE__ */ function(o) {
|
|
12274
12356
|
S(r, o);
|
|
12275
12357
|
var a = x(r);
|
|
@@ -12277,18 +12359,18 @@ var Oo = /* @__PURE__ */ E(function o(a, r) {
|
|
|
12277
12359
|
return T(this, r), a.apply(this, arguments);
|
|
12278
12360
|
}
|
|
12279
12361
|
return E(r);
|
|
12280
|
-
}(
|
|
12281
|
-
_(ge, "defaultPreset",
|
|
12362
|
+
}(Lt);
|
|
12363
|
+
_(ge, "defaultPreset", Mo);
|
|
12282
12364
|
_(ge, "Util", f);
|
|
12283
12365
|
_(ge, "Sniffer", R);
|
|
12284
12366
|
_(ge, "Errors", mt);
|
|
12285
|
-
_(ge, "Events",
|
|
12367
|
+
_(ge, "Events", Xs);
|
|
12286
12368
|
_(ge, "Plugin", U);
|
|
12287
|
-
_(ge, "BasePlugin",
|
|
12369
|
+
_(ge, "BasePlugin", Me);
|
|
12288
12370
|
_(ge, "I18N", Qe);
|
|
12289
12371
|
_(ge, "STATE_CLASS", C);
|
|
12290
|
-
_(ge, "InstManager",
|
|
12291
|
-
const
|
|
12372
|
+
_(ge, "InstManager", qn);
|
|
12373
|
+
const No = ["id"], Fo = /* @__PURE__ */ Q({
|
|
12292
12374
|
name: "ElImageViewer",
|
|
12293
12375
|
__name: "Player",
|
|
12294
12376
|
props: /* @__PURE__ */ vt({
|
|
@@ -12317,7 +12399,7 @@ const Mo = ["id"], No = /* @__PURE__ */ Q({
|
|
|
12317
12399
|
}, ["update:modelValue"]),
|
|
12318
12400
|
setup(o, { emit: a }) {
|
|
12319
12401
|
let r = null;
|
|
12320
|
-
const t = o, { cLoadUrl: e } =
|
|
12402
|
+
const t = o, { cLoadUrl: e } = Br(t), i = J(() => Jt(e.value, t.url)), n = {
|
|
12321
12403
|
width: "100%",
|
|
12322
12404
|
height: "100%",
|
|
12323
12405
|
// 是否自动播放
|
|
@@ -12351,8 +12433,8 @@ const Mo = ["id"], No = /* @__PURE__ */ Q({
|
|
|
12351
12433
|
});
|
|
12352
12434
|
});
|
|
12353
12435
|
}), (g, p) => {
|
|
12354
|
-
const
|
|
12355
|
-
return u.value ? (N(),
|
|
12436
|
+
const m = pt("el-icon");
|
|
12437
|
+
return u.value ? (N(), Re(vn, {
|
|
12356
12438
|
key: 0,
|
|
12357
12439
|
to: "body"
|
|
12358
12440
|
}, [
|
|
@@ -12386,7 +12468,7 @@ const Mo = ["id"], No = /* @__PURE__ */ Q({
|
|
|
12386
12468
|
class: Y(P(h).e("canvas"))
|
|
12387
12469
|
},
|
|
12388
12470
|
[
|
|
12389
|
-
j("div", { id: P(c) }, null, 8,
|
|
12471
|
+
j("div", { id: P(c) }, null, 8, No),
|
|
12390
12472
|
ae(" CLOSE "),
|
|
12391
12473
|
j(
|
|
12392
12474
|
"span",
|
|
@@ -12395,7 +12477,7 @@ const Mo = ["id"], No = /* @__PURE__ */ Q({
|
|
|
12395
12477
|
onClick: d
|
|
12396
12478
|
},
|
|
12397
12479
|
[
|
|
12398
|
-
K(
|
|
12480
|
+
K(m, { onClick: d }, {
|
|
12399
12481
|
default: Z(() => [
|
|
12400
12482
|
K(P(Cn))
|
|
12401
12483
|
]),
|
|
@@ -12423,7 +12505,7 @@ const Mo = ["id"], No = /* @__PURE__ */ Q({
|
|
|
12423
12505
|
};
|
|
12424
12506
|
}
|
|
12425
12507
|
});
|
|
12426
|
-
const
|
|
12508
|
+
const Bo = /* @__PURE__ */ oi(Fo, [["__scopeId", "data-v-b301aa7d"]]), Ho = et(Bo), Uo = /* @__PURE__ */ Q({
|
|
12427
12509
|
__name: "IkPreviewFileDialog",
|
|
12428
12510
|
props: /* @__PURE__ */ vt({
|
|
12429
12511
|
file: {
|
|
@@ -12466,22 +12548,22 @@ const Fo = /* @__PURE__ */ oi(No, [["__scopeId", "data-v-b301aa7d"]]), Bo = et(F
|
|
|
12466
12548
|
suffix: "suffix",
|
|
12467
12549
|
size: "fileSize",
|
|
12468
12550
|
...a.field
|
|
12469
|
-
})), e = Ce(null), i = Ce(null), n =
|
|
12551
|
+
})), e = Ce(null), i = Ce(null), n = gr({
|
|
12470
12552
|
image: !1,
|
|
12471
12553
|
office: !1,
|
|
12472
12554
|
video: !1
|
|
12473
12555
|
}), s = (u) => {
|
|
12474
|
-
var c, h, d, g, p,
|
|
12556
|
+
var c, h, d, g, p, m, y;
|
|
12475
12557
|
try {
|
|
12476
12558
|
const k = ((c = u == null ? void 0 : u.response) == null ? void 0 : c.data) || u, w = k[t.value.url] || (k == null ? void 0 : k.id) || k.attachmentId, b = (h = k[t.value.suffix] || k.attachmentSuffix) == null ? void 0 : h.toLowerCase(), B = k[t.value.name] || (k == null ? void 0 : k.attachmentName) || (k == null ? void 0 : k.originName);
|
|
12477
12559
|
if (i.value = {
|
|
12478
12560
|
...u,
|
|
12479
12561
|
name: u[t.value.name],
|
|
12480
12562
|
url: Jt(a.loadUrl, w)
|
|
12481
|
-
}, u &&
|
|
12563
|
+
}, u && Ai(u, t.value) === "image") {
|
|
12482
12564
|
n.image = !0;
|
|
12483
12565
|
return;
|
|
12484
|
-
} else if (u &&
|
|
12566
|
+
} else if (u && Ai(u, t.value) === "video") {
|
|
12485
12567
|
n.video = !0;
|
|
12486
12568
|
return;
|
|
12487
12569
|
} else if ((((d = a.onlyOfficeConfig) == null ? void 0 : d.accept) || a.onlyOfficeAccept).includes(b)) {
|
|
@@ -12490,7 +12572,7 @@ const Fo = /* @__PURE__ */ oi(No, [["__scopeId", "data-v-b301aa7d"]]), Bo = et(F
|
|
|
12490
12572
|
editorConfig: {
|
|
12491
12573
|
...((g = a.onlyOfficeConfig) == null ? void 0 : g.editorConfig) || {},
|
|
12492
12574
|
customization: {
|
|
12493
|
-
...((
|
|
12575
|
+
...((m = (p = a.onlyOfficeConfig) == null ? void 0 : p.editorConfig) == null ? void 0 : m.customization) || {},
|
|
12494
12576
|
review: {
|
|
12495
12577
|
reviewDisplay: "final"
|
|
12496
12578
|
}
|
|
@@ -12501,9 +12583,9 @@ const Fo = /* @__PURE__ */ oi(No, [["__scopeId", "data-v-b301aa7d"]]), Bo = et(F
|
|
|
12501
12583
|
title: B,
|
|
12502
12584
|
url: Jt(a.loadUrl, w),
|
|
12503
12585
|
fileType: b,
|
|
12504
|
-
...((
|
|
12586
|
+
...((y = a.onlyOfficeConfig) == null ? void 0 : y.document) || {}
|
|
12505
12587
|
},
|
|
12506
|
-
documentType:
|
|
12588
|
+
documentType: _r(b)
|
|
12507
12589
|
// document_fileType: getFileTypes(suffix),
|
|
12508
12590
|
};
|
|
12509
12591
|
return;
|
|
@@ -12526,7 +12608,7 @@ const Fo = /* @__PURE__ */ oi(No, [["__scopeId", "data-v-b301aa7d"]]), Bo = et(F
|
|
|
12526
12608
|
Zt,
|
|
12527
12609
|
{ key: 0 },
|
|
12528
12610
|
[
|
|
12529
|
-
(h = i.value) != null && h.url && n.image ? (N(),
|
|
12611
|
+
(h = i.value) != null && h.url && n.image ? (N(), Re(P(bs), {
|
|
12530
12612
|
key: 0,
|
|
12531
12613
|
onClose: c[0] || (c[0] = (p) => l()),
|
|
12532
12614
|
ref: "previewImgRef",
|
|
@@ -12536,12 +12618,12 @@ const Fo = /* @__PURE__ */ oi(No, [["__scopeId", "data-v-b301aa7d"]]), Bo = et(F
|
|
|
12536
12618
|
}, null, 8, ["url-list"])) : ae("v-if", !0),
|
|
12537
12619
|
ae(' <IkPreviewVideo :file="fileData" v-model:show="modal.video" />'),
|
|
12538
12620
|
ae(" 文档类 "),
|
|
12539
|
-
K(P(
|
|
12621
|
+
K(P(Ho), {
|
|
12540
12622
|
modelValue: n.video,
|
|
12541
12623
|
"onUpdate:modelValue": c[1] || (c[1] = (p) => n.video = p),
|
|
12542
12624
|
url: (g = i.value) == null ? void 0 : g.url
|
|
12543
12625
|
}, null, 8, ["modelValue", "url"]),
|
|
12544
|
-
K(P(
|
|
12626
|
+
K(P(Qr), {
|
|
12545
12627
|
modelValue: n.office,
|
|
12546
12628
|
"onUpdate:modelValue": c[2] || (c[2] = (p) => n.office = p),
|
|
12547
12629
|
draggable: "",
|
|
@@ -12559,7 +12641,7 @@ const Fo = /* @__PURE__ */ oi(No, [["__scopeId", "data-v-b301aa7d"]]), Bo = et(F
|
|
|
12559
12641
|
default: Z(() => {
|
|
12560
12642
|
var p;
|
|
12561
12643
|
return [
|
|
12562
|
-
K(P(
|
|
12644
|
+
K(P(as), {
|
|
12563
12645
|
"config-options": e.value,
|
|
12564
12646
|
"document-server-url": ((p = o.onlyOfficeConfig) == null ? void 0 : p.serverUrl) || o.onlyofficeServer
|
|
12565
12647
|
}, null, 8, ["config-options", "document-server-url"])
|
|
@@ -12575,8 +12657,8 @@ const Fo = /* @__PURE__ */ oi(No, [["__scopeId", "data-v-b301aa7d"]]), Bo = et(F
|
|
|
12575
12657
|
};
|
|
12576
12658
|
}
|
|
12577
12659
|
});
|
|
12578
|
-
const
|
|
12660
|
+
const Wo = et(Uo);
|
|
12579
12661
|
export {
|
|
12580
|
-
|
|
12581
|
-
|
|
12662
|
+
Wo as IkPreviewFileDialog,
|
|
12663
|
+
Wo as default
|
|
12582
12664
|
};
|