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