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