Skip to content

Instantly share code, notes, and snippets.

@Albert-W
Created March 23, 2024 09:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Albert-W/da6438e001c86420b574841ad7f94dea to your computer and use it in GitHub Desktop.
Save Albert-W/da6438e001c86420b574841ad7f94dea to your computer and use it in GitHub Desktop.
iyf 3.js
(window.webpackJsonp = window.webpackJsonp || []).push([
[3],
{
"1XPh": function (t, e, i) {
"use strict";
i.d(e, "b", function () {
return n;
}),
i.d(e, "a", function () {
return o;
});
var n = (function (t) {
return (
(t[(t.SearchPageLeft = 0)] = "SearchPageLeft"),
(t[(t.SearchPageRight = 1)] = "SearchPageRight"),
(t[(t.SearchPageContent = 2)] = "SearchPageContent"),
(t[(t.VideoPageLeft = 3)] = "VideoPageLeft"),
(t[(t.VideoPageRight = 4)] = "VideoPageRight"),
(t[(t.VideoPageContent = 5)] = "VideoPageContent"),
(t[(t.LoginBoxLeft = 6)] = "LoginBoxLeft"),
(t[(t.DiscoveryPageContent = 7)] = "DiscoveryPageContent"),
t
);
})({}),
o = (function (t) {
return (t[(t.Image = 0)] = "Image"), (t[(t.Video = 1)] = "Video"), t;
})({});
},
"3umQ": function (t, e, i) {
"use strict";
i.d(e, "a", function () {
return c;
});
var n = i("fXoL"),
o = i("ofXK");
function a(t, e) {
if ((1 & t && (n.Ub(0, "h3"), n.Kc(1), n.Tb()), 2 & t)) {
const t = n.ec();
n.Fb("block-title ", t.mode, ""), n.Cb(1), n.Lc(t.title);
}
}
function s(t, e) {
if ((1 & t && (n.Ub(0, "h4"), n.Kc(1), n.Tb()), 2 & t)) {
const t = n.ec();
n.Fb("block-title ", t.mode, ""), n.Cb(1), n.Lc(t.title);
}
}
let c = (() => {
class t {
constructor() {
(this.title = ""), (this.size = "medium"), (this.mode = "");
}
ngOnInit() {}
}
return (
(t.ɵfac = function (e) {
return new (e || t)();
}),
(t.ɵcmp = n.Ib({
type: t,
selectors: [["app-block-title"]],
inputs: { title: "title", size: "size", mode: "mode" },
decls: 2,
vars: 2,
consts: [[3, "class", 4, "ngIf"]],
template: function (t, e) {
1 & t && (n.Ic(0, a, 2, 4, "h3", 0), n.Ic(1, s, 2, 4, "h4", 0)),
2 & t &&
(n.lc("ngIf", "large" === e.size),
n.Cb(1),
n.lc("ngIf", "medium" === e.size));
},
directives: [o.n],
styles: [
'.block-title[_ngcontent-%COMP%]{display:block;padding:5px 0 5px 36px;position:relative;margin-bottom:20px;cursor:default}.block-title[_ngcontent-%COMP%]:after{content:"";display:block;position:absolute;left:0;top:3px;bottom:5px;background:url(/assets/images/player_logo.png) no-repeat 50%;background-size:contain;width:24px;height:24px;margin-right:1.2em}.block-title.search[_ngcontent-%COMP%]{padding:5px 0}.block-title.search[_ngcontent-%COMP%]:after{width:0;height:0}',
],
})),
t
);
})();
},
"7DwK": function (t, e, i) {
"use strict";
i.d(e, "a", function () {
return v;
});
var n = i("fXoL"),
o = i("1XPh"),
a = i("22MO"),
s = i("kizo"),
c = i("ofXK"),
r = i("Le4d"),
l = i("dHfA");
const _ = ["block"],
g = ["class", "dabc"];
function d(t, e) {
if (1 & t) {
const t = n.Vb();
n.Ub(0, "div", 6),
n.Ub(1, "img", 7),
n.bc("load", function (e) {
return n.Ac(t), n.ec(2).tryToGetSize(e);
}),
n.fc(2, "safeResource"),
n.Tb(),
n.Tb();
}
if (2 & t) {
const t = n.ec(2);
n.Cb(1), n.mc("src", n.gc(2, 1, t.posterImage), n.Dc);
}
}
const h = function (t, e, i) {
return { "w-100": t, "extended-pru": e, "extended-prd": i };
};
function p(t, e) {
if (1 & t) {
const t = n.Vb();
n.Ub(0, "img", 13),
n.bc("load", function (e) {
return n.Ac(t), n.ec(3).tryToGetSize(e);
}),
n.fc(1, "safeResource"),
n.fc(2, "replaceHost"),
n.Tb();
}
if (2 & t) {
const t = n.ec(3);
n.lc(
"src",
n.gc(1, 2, n.gc(2, 4, t.gg.rawImage)),
n.Dc
)(
"ngClass",
n.sc(
6,
h,
"PB" === t.code || "VPB" === t.code,
("PRU" === t.code || "VPRU" === t.code) && t.gg.isLonger,
("PRD" === t.code || "VPRD" === t.code) && t.gg.isLonger
)
);
}
}
function u(t, e) {
if (
(1 & t &&
(n.Pb(0, "div", 14),
n.fc(1, "safeResource"),
n.fc(2, "replaceHost")),
2 & t)
) {
const t = n.ec(3);
n.Gc(
"background-image",
"url(" + n.gc(1, 2, n.gc(2, 4, t.gg.rawImage)) + ")"
);
}
}
function b(t, e) {
if (
(1 & t &&
(n.Pb(0, "div", 15),
n.fc(1, "safeResource"),
n.fc(2, "replaceHost")),
2 & t)
) {
const t = n.ec(3);
n.Gc(
"background-image",
"url(" + n.gc(1, 2, n.gc(2, 4, t.gg.rawImage)) + ")"
);
}
}
function m(t, e) {
if (
(1 & t &&
(n.Ub(0, "div", 8),
n.Ub(1, "a", 9),
n.fc(2, "replaceHost"),
n.Ic(3, p, 3, 10, "img", 10),
n.Ic(4, u, 3, 6, "div", 11),
n.Ic(5, b, 3, 6, "div", 12),
n.Tb(),
n.Tb()),
2 & t)
) {
const t = n.ec(2);
n.Cb(1),
n.lc("href", n.gc(2, 4, t.gg.linkUrl), n.Dc),
n.Cb(2),
n.lc("ngIf", "H4" !== t.code && "PB" !== t.code),
n.Cb(1),
n.lc("ngIf", "PB" === t.code),
n.Cb(1),
n.lc("ngIf", "H4" === t.code);
}
}
const f = function (t, e, i, n, o) {
return {
"search-page-left": t,
"search-page-right": e,
"video-page-left": i,
"video-page-right": n,
fixed: o,
};
};
function P(t, e) {
if (
(1 & t &&
(n.Ub(0, "div", 1, 2),
n.Ic(2, d, 3, 3, "div", 3),
n.Ic(3, m, 6, 6, "div", 4),
n.Ub(4, "div", 5),
n.Kc(5, "\u5e7f\u544a"),
n.Tb(),
n.Tb()),
2 & t)
) {
const t = n.ec();
n.lc(
"ngClass",
n.uc(
3,
f,
t.ggPosition === t.postion.SearchPageLeft,
t.ggPosition === t.postion.SearchPageRight,
t.ggPosition === t.postion.VideoPageLeft || t.posterImage,
t.ggPosition === t.postion.VideoPageRight,
t.fixed
)
),
n.Cb(2),
n.lc("ngIf", t.posterImage),
n.Cb(1),
n.lc("ngIf", t.gg && !t.posterImage);
}
}
let v = (() => {
class t {
constructor(t, e) {
(this._ggService = t),
(this._windowService = e),
(this.extra = []),
(this.subscriptions = []),
(this.postion = o.b),
(this.ggContentType = o.a),
(this.sticky = !1),
(this.screenType = s.a),
(this.ggLoaded = new n.n()),
(this.parentCount = 0),
(this.maxParentCount = 5);
}
ngOnChanges(t) {
t.extra && this.tryLoadFromExtra();
}
ngOnInit() {
this._windowService.size$.subscribe((t) => {
this.screenSize = t;
}),
this.posterImage ||
(this.tryLoadFromExtra(),
this._ggService.ggs &&
((this.gg = this._ggService.ggs.data.find(
(t) => t.position === this.code
)),
this.ggLoaded.emit(void 0 !== this.gg)),
this._ggService.ggSource$.subscribe((t) => {
t && (this.gg = t.find((t) => t.position === this.code));
}));
}
tryLoadFromExtra() {
if (this.extra.length > 0) {
var t = this.extra.find((t) => t.position == this.code);
if (t) return (this.gg = t), void (this.gg.isLonger = !0);
} else
this._ggService.ggs &&
(this.gg = this._ggService.ggs.data.find(
(t) => t.position === this.code
));
}
ngOnDestroy() {
this.subscriptions.forEach((t) => {
t.unsubscribe();
});
}
tryToGetSize(t) {
if (
"SS" !== this.code &&
"ASS" !== this.code &&
null != t &&
t.target
) {
var e = t.target;
0 == e.clientHeight &&
(e.style.height = this.getParentHeight(e) + "px");
}
}
getParentHeight(t) {
var e = 0;
return (
this.maxParentCount < this.parentCount ||
(++this.parentCount,
0 == (e = t.parentElement.clientHeight) &&
(e = this.getParentHeight(t.parentElement))),
e
);
}
}
return (
(t.ɵfac = function (e) {
return new (e || t)(n.Ob(a.a), n.Ob(s.b));
}),
(t.ɵcmp = n.Ib({
type: t,
selectors: [["div", 8, "dabc"]],
viewQuery: function (t, e) {
if ((1 & t && n.Qc(_, 3), 2 & t)) {
let t;
n.wc((t = n.cc())) && (e.blockElement = t.first);
}
},
inputs: {
posterImage: "posterImage",
ggPosition: "ggPosition",
code: "code",
fixed: "fixed",
extra: "extra",
},
outputs: { ggLoaded: "ggLoaded" },
features: [n.Ab],
attrs: g,
decls: 1,
vars: 1,
consts: [
[
"class",
"w-100 h-100",
"style",
"position: relative;",
3,
"ngClass",
4,
"ngIf",
],
[1, "w-100", "h-100", 2, "position", "relative", 3, "ngClass"],
["block", ""],
["class", "inner position-relative", 4, "ngIf"],
["class", "inner position-relative w-100 h-100", 4, "ngIf"],
[1, "gg-tips-text"],
[1, "inner", "position-relative"],
["alt", "\u5e7f\u544a", "width", "100%", 3, "src", "load"],
[1, "inner", "position-relative", "w-100", "h-100"],
["target", "_blank", 1, "w-100", "h-100", 3, "href"],
[
"width",
"100%",
"alt",
"\u5e7f\u544a",
3,
"src",
"ngClass",
"load",
4,
"ngIf",
],
[
"class",
"w-100 h-100 bg-hoverable",
3,
"background-image",
4,
"ngIf",
],
[
"class",
"w-100 h-100 bg-center",
3,
"background-image",
4,
"ngIf",
],
[
"width",
"100%",
"alt",
"\u5e7f\u544a",
3,
"src",
"ngClass",
"load",
],
[1, "w-100", "h-100", "bg-hoverable"],
[1, "w-100", "h-100", "bg-center"],
],
template: function (t, e) {
1 & t && n.Ic(0, P, 6, 9, "div", 0),
2 & t &&
n.lc("ngIf", (!!e.gg && !!e.gg.rawImage) || !!e.posterImage);
},
directives: [c.n, c.l],
pipes: [r.b, l.b],
styles: [
"[_nghost-%COMP%] .video-page-right[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;overflow:hidden;width:520px;height:366px}[_nghost-%COMP%] .video-page-right[_ngcontent-%COMP%] a[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{flex-shrink:0;min-width:100%;min-height:100%}@media (max-width:1678px){[_nghost-%COMP%] .video-page-right[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{width:auto;height:auto;min-height:252px}}@media (min-width:1679px) and (max-width:1911px){[_nghost-%COMP%] .video-page-right[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{width:auto;height:auto;min-height:316px}}.video-page-left[_ngcontent-%COMP%], .video-page-left[_ngcontent-%COMP%] .inner[_ngcontent-%COMP%], .video-page-right[_ngcontent-%COMP%], .video-page-right[_ngcontent-%COMP%] .inner[_ngcontent-%COMP%]{height:100%}.video-page-left[_ngcontent-%COMP%] img[_ngcontent-%COMP%], .video-page-right[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:100%;top:0}.video-page-right[_ngcontent-%COMP%] .inner[_ngcontent-%COMP%]{text-align:center}.video-page-content[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%}.sticky[_ngcontent-%COMP%]{position:fixed!important;top:80px}.search-page-content[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;left:0}.search-page-left[_ngcontent-%COMP%]{height:100%}.search-page-left[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{position:absolute;right:0;top:0}.search-page-left.fixed[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{position:fixed;left:-20px;top:60px}.search-page-right[_ngcontent-%COMP%]{height:100%}.search-page-right[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{position:absolute;left:0;top:0}.search-page-right.fixed[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{position:fixed;right:-20px;left:auto;top:60px}.extended-pru[_ngcontent-%COMP%]{position:absolute;min-height:366px!important;height:366px!important;object-fit:cover;object-position:top;transition-delay:50ms;transition:height .2s ease-out,z-index .2s ease-out;z-index:0;will-change:height,z-index}.extended-pru[_ngcontent-%COMP%]:hover{top:0;height:753px!important;z-index:20}.extended-prd[_ngcontent-%COMP%]{position:absolute;min-height:366px!important;height:366px!important;object-fit:cover;object-position:top;transition:all .2s ease-out;transition-delay:50ms;will-change:height,z-index}.extended-prd[_ngcontent-%COMP%]:hover{top:-387px!important;bottom:unset!important;z-index:20;height:753px!important}@media (max-width:1678px){.video-page-left[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{right:0}.video-page-right[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{left:0;width:357px;height:252px}.extended-pru[_ngcontent-%COMP%]{min-height:252px!important;height:252px!important}.extended-pru[_ngcontent-%COMP%]:hover{height:518px!important}.extended-prd[_ngcontent-%COMP%]{min-height:252px!important;height:252px!important}.extended-prd[_ngcontent-%COMP%]:hover{top:-266px!important;bottom:unset!important;height:518px!important}}@media (min-width:1679px) and (max-width:1911px){.video-page-left[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:358px;right:0}.video-page-right[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:450px;height:316px;left:0}.extended-pru[_ngcontent-%COMP%]{min-height:316px!important;height:316px!important}.extended-pru[_ngcontent-%COMP%]:hover{height:650px!important}.extended-prd[_ngcontent-%COMP%]{min-height:316px!important;height:316px!important}.extended-prd[_ngcontent-%COMP%]:hover{top:-334px!important;bottom:unset!important;height:650px!important}}.gg-tips-text[_ngcontent-%COMP%]{font-size:12px;color:#fff;opacity:.5;position:absolute;top:5px;left:8px;text-shadow:2px 2px #000}.bg-center[_ngcontent-%COMP%]{background-position:50%}.bg-center[_ngcontent-%COMP%], .bg-hoverable[_ngcontent-%COMP%]{background-repeat:no-repeat}.bg-hoverable[_ngcontent-%COMP%]{height:122px;background-position:0;background-size:cover;transition:background-position .5s ease-in-out;transition-delay:50ms;will-change:background-position}.bg-hoverable[_ngcontent-%COMP%]:hover{background-position:100%}@media (max-width:1678px){.bg-hoverable[_ngcontent-%COMP%]{height:84px}}@media (min-width:1679px) and (max-width:1911px){.bg-hoverable[_ngcontent-%COMP%]{height:106px}}",
],
})),
t
);
})();
},
Q4H4: function (t, e, i) {
"use strict";
i.r(e),
i.d(e, "VideoModule", function () {
return Do;
});
var n = i("ofXK"),
o = i("iWjc"),
a = i("tyNb"),
s = i("xgIS"),
c = i("jBNF"),
r = i("c0WJ"),
l = i("1XPh"),
_ = i("fXoL");
let g = (() => {
class t {
constructor(t) {
(this._playHistoryService = t),
(this.current = 0),
(this.duration = 0),
(this.margin = 2);
}
assingVideo(t) {
this.video = t;
}
veryBeginning() {
return this.current < (this.duration / 100) * this.margin;
}
veryEnd() {
return this.current > (this.duration * (100 - this.margin)) / 100;
}
getMedia() {
(this.media = {}),
Object.keys(this.video.playlist).map((t) => {
const e = this.video.playlist[t].medias.filter(
(t) => t.key === this.mediaKey
);
e.length > 0 && (this.media = e[0]);
});
}
nextMedia() {
let t = "";
return ["tv-series", "anime", "variety"].includes(
this.video.category
)
? (Object.keys(this.video.playlist).map((e) => {
const i = this.video.playlist[e].medias.findIndex(
(t) => t.id === this.media.id
);
i > -1 &&
i < this.video.playlist[e].medias.length - 1 &&
(t = this.video.playlist[e].medias[i + 1].id);
}),
t)
: t;
}
save(t, e, i) {
if (((this.mediaKey = i), this.getMedia(), !this.video)) return;
if (!this.media) return;
if (((this.current = t), (this.duration = e), this.veryBeginning()))
return;
const n = {
vid: this.video.id,
vKey: this.video.key,
title: this.video.title,
category: this.video.category,
mid: this.media.id,
mKey: this.media.key,
mTitle: this.media.title,
nextMid: this.nextMedia(),
current: t,
duration: e,
timestamp: Date.now().toString(),
};
this._playHistoryService.pushLocalPlayHistory(n);
}
getFromLocal() {
return this._playHistoryService.getLocalPlayHistoryById(
this.video.id
);
}
}
return (
(t.ɵfac = function (e) {
return new (e || t)(_.Yb(r.a));
}),
(t.ɵprov = _.Kb({ token: t, factory: t.ɵfac })),
t
);
})();
var d = i("0Xxy"),
h = i("bTnO"),
p = i("6nLG"),
u = i("b1b0"),
b = i("5kbV"),
m = i("syxV"),
f = i("pLpv"),
P = i("3My9"),
v = i("AytR"),
C = i("etJ/"),
O = i("xMFu"),
M = i("OnY+"),
x = i("Qa7H"),
E = i("fWe4"),
y = i("tWDZ"),
D = i("KTAx"),
T = i("Njeq"),
I = i("lJxs"),
w = i("+6MP"),
U = i("ciLT"),
L = i("5Jsc"),
k = i("tWDE"),
A = i("kizo"),
K = i("8V5e"),
B = (function () {
function t(t) {
this.zone = t;
}
return (
Object.defineProperty(t.prototype, "StockPanel", {
get: function () {
return AmCharts.StockPanel;
},
enumerable: !0,
configurable: !0,
}),
Object.defineProperty(t.prototype, "StockGraph", {
get: function () {
return AmCharts.StockGraph;
},
enumerable: !0,
configurable: !0,
}),
Object.defineProperty(t.prototype, "StockEvent", {
get: function () {
return AmCharts.StockEvent;
},
enumerable: !0,
configurable: !0,
}),
Object.defineProperty(t.prototype, "StockLegend", {
get: function () {
return AmCharts.StockLegend;
},
enumerable: !0,
configurable: !0,
}),
Object.defineProperty(t.prototype, "baseHref", {
get: function () {
return AmCharts.baseHref;
},
set: function (t) {
AmCharts.baseHref = t;
},
enumerable: !0,
configurable: !0,
}),
Object.defineProperty(t.prototype, "useUTC", {
get: function () {
return AmCharts.useUTC;
},
set: function (t) {
AmCharts.useUTC = t;
},
enumerable: !0,
configurable: !0,
}),
Object.defineProperty(t.prototype, "dayNames", {
get: function () {
return AmCharts.dayNames;
},
set: function (t) {
AmCharts.dayNames = t;
},
enumerable: !0,
configurable: !0,
}),
Object.defineProperty(t.prototype, "monthNames", {
get: function () {
return AmCharts.monthNames;
},
set: function (t) {
AmCharts.monthNames = t;
},
enumerable: !0,
configurable: !0,
}),
Object.defineProperty(t.prototype, "shortDayNames", {
get: function () {
return AmCharts.shortDayNames;
},
set: function (t) {
AmCharts.shortDayNames = t;
},
enumerable: !0,
configurable: !0,
}),
Object.defineProperty(t.prototype, "shortMonthNames", {
get: function () {
return AmCharts.shortMonthNames;
},
set: function (t) {
AmCharts.shortMonthNames = t;
},
enumerable: !0,
configurable: !0,
}),
Object.defineProperty(t.prototype, "theme", {
get: function () {
return AmCharts.theme;
},
set: function (t) {
AmCharts.theme = t;
},
enumerable: !0,
configurable: !0,
}),
Object.defineProperty(t.prototype, "processDelay", {
get: function () {
return AmCharts.processDelay;
},
set: function (t) {
AmCharts.processDelay = t;
},
enumerable: !0,
configurable: !0,
}),
Object.defineProperty(t.prototype, "charts", {
get: function () {
return AmCharts.charts;
},
enumerable: !0,
configurable: !0,
}),
(t.prototype.addInitHandler = function (t, e) {
AmCharts.addInitHandler(t, e);
}),
(t.prototype.addPrefix = function (t, e, i, n) {
return AmCharts.addPrefix(t, e, i, n);
}),
(t.prototype.clear = function () {
AmCharts.clear();
}),
(t.prototype.formatDate = function (t, e) {
return AmCharts.formatDate(t, e);
}),
(t.prototype.formatNumber = function (t, e, i) {
return AmCharts.formatNumber(t, e, i);
}),
(t.prototype.stringToDate = function (t, e) {
return AmCharts.stringToDate(t, e);
}),
(t.prototype.makeChart = function (t, e, i) {
return this.zone.runOutsideAngular(function () {
return AmCharts.makeChart(t, e, i);
});
}),
(t.prototype.addListener = function (t, e, i) {
var n = this,
o = function (t) {
n.zone.run(function () {
i(t);
});
};
return (
this.zone.runOutsideAngular(function () {
t.addListener(e, o);
}),
function () {
n.zone.runOutsideAngular(function () {
t.removeListener(t, e, o);
});
}
);
}),
(t.prototype.updateChart = function (t, e) {
this.zone.runOutsideAngular(function () {
e(), t.validateNow(!0);
});
}),
(t.prototype.destroyChart = function (t) {
this.zone.runOutsideAngular(function () {
t.clear();
});
}),
(t.ɵfac = function (e) {
return new (e || t)(_.Yb(_.A));
}),
(t.ɵprov = _.Kb({
token: t,
factory: function (e) {
return t.ɵfac(e);
},
})),
t
);
})(),
R = (function () {
function t() {}
return (
(t.ɵfac = function (e) {
return new (e || t)();
}),
(t.ɵmod = _.Mb({ type: t })),
(t.ɵinj = _.Lb({ providers: [B] })),
t
);
})(),
S = i("toE3");
let W = (() => {
class t {
constructor(t, e, i, n, o, a) {
(this._amChartsService = t),
(this._videoService = e),
(this._storage = i),
(this._windowService = n),
(this._utility = o),
(this._script = a),
(this.visible = !1),
(this.chatMode = 1),
(this.screenType = A.a),
(this.isDark = !1),
(this.containerSize = { height: 150, width: 300 }),
(this.lastVideoKey = null),
(this.subscriptions = []),
(this.loading = !1);
}
ngOnDestroy() {
this.constellationChart &&
this._amChartsService.destroyChart(this.constellationChart),
this.subscriptions.forEach((t) => t.unsubscribe());
}
ngOnChanges(t) {
var e, i;
(null === (e = t.videoKey) || void 0 === e
? void 0
: e.currentValue) && this.changeChart(),
(null === (i = t.visible) || void 0 === i
? void 0
: i.currentValue) && this.changeChart();
}
changeChart() {
this.visible &&
(this.constellationChart &&
(this._amChartsService.destroyChart(this.constellationChart),
(this.constellationChart = null)),
this.lastVideoKey !== this.videoKey && (this.data = null),
this._script.load("amcharts").then(() => {
this._script.load("amcharts-light", "amcharts-pie").then(() => {
this.data
? (this.constellationChart =
this._amChartsService.makeChart(
"chartdiv",
this.renderChart(this.dataProvider)
))
: this.createChat();
});
}));
}
ngOnInit() {
this.subscriptions.push(
this._utility
.GetOrCreateSubscript("theme.change")
.subscribe((t) => {
(this.isDark = "dark" == t), this.changeChart();
}),
this._windowService.size$.subscribe((t) => {
(this.screenSize = t), this.changeChart();
})
),
this.changeChart(),
(this.isDark = !!parseInt(
this._storage.GetConfig().isDark || "1"
));
}
renderChart(t) {
let e = 360;
switch (this.screenSize) {
case this.screenType.Small:
case this.screenType.Medium:
(e = 150), (this.containerSize = { width: 300, height: 340 });
break;
case this.screenType.Large:
(e = 320), (this.containerSize = { width: 600, height: 340 });
break;
default:
(e = 360), (this.containerSize = { width: 670, height: 340 });
}
const i = {
type: "pie",
theme: "light",
addClassNames: !0,
startDuration: 0,
dataProvider: t,
labelText: "[[title]]",
valueField: "value",
titleField: "constellation",
outlineAlpha: 0,
depth3D: 0,
balloonText:
"[[title]]<br><span style='font-size:14px'>([[percents]]%)</span>",
angle: 0,
export: { enabled: !0 },
balloon: { enabled: !1 },
color: this.isDark ? "rgba(236, 236, 238, 0.4)" : "#888888",
};
return (
(i.legend = {
position: "absolute",
right: 0,
width: e,
fontSize: 15,
markerSize: 12,
maxColumns: 2,
align: "center",
color: this.isDark ? "rgba(236, 236, 238, 0.4)" : "#888888",
top: -5,
markerType: "circle",
switchable: !1,
valueText: "[[percents]]%",
valueWidth: 70,
}),
i
);
}
ngAfterViewInit() {}
createChat() {
this.loading ||
((this.loading = !0),
(this.lastVideoKey = this.videoKey),
this._videoService.getStatistics(this.videoKey).subscribe((t) => {
(this.data = t), (this.loading = !1);
const e = [],
i = [],
n = [];
for (const o in this.data.AgeSexCount)
this.data.AgeSexCount.hasOwnProperty(o) &&
"\u672a\u77e5" !== o &&
0 !== this.data.AgeSexCount[o] &&
i.push({
constellation: o,
value: this.data.AgeSexCount[o],
});
switch (this.chatMode) {
case 0:
this.dataProvider = e;
break;
case 1:
this.dataProvider = i;
break;
case 2:
this.dataProvider = n;
break;
default:
this.dataProvider = e;
}
this.constellationChart = this._amChartsService.makeChart(
"chartdiv",
this.renderChart(this.dataProvider)
);
}));
}
}
return (
(t.ɵfac = function (e) {
return new (e || t)(
_.Ob(B),
_.Ob(c.a),
_.Ob(C.a),
_.Ob(A.b),
_.Ob(P.a),
_.Ob(S.a)
);
}),
(t.ɵcmp = _.Ib({
type: t,
selectors: [["app-play-statistics"]],
inputs: { videoKey: "videoKey", visible: "visible" },
features: [_.Ab],
decls: 5,
vars: 4,
consts: [
[1, "statistics"],
[1, "py-3", "mb-4", "text-left"],
[1, "chart-container"],
["id", "chartdiv"],
],
template: function (t, e) {
1 & t &&
(_.Ub(0, "div", 0),
_.Ub(1, "h4", 1),
_.Kc(2, "\u559c\u6b22\u6b64\u5267\u7684\u4eba\u7fa4\uff1a"),
_.Tb(),
_.Ub(3, "div", 2),
_.Pb(4, "div", 3),
_.Tb(),
_.Tb()),
2 & t &&
(_.Cb(4),
_.Gc("width", 100, "%")(
"height",
e.containerSize.height,
"px"
));
},
styles: [
".statistics[_ngcontent-%COMP%]{margin-bottom:-9em}.chart-container[_ngcontent-%COMP%]{width:52em;margin-top:52px}.py-3[_ngcontent-%COMP%]{color:#fff6}.light[_nghost-%COMP%] .py-3[_ngcontent-%COMP%], .light [_nghost-%COMP%] .py-3[_ngcontent-%COMP%]{color:#333}",
],
})),
t
);
})();
function z(t, e) {
if (1 & t) {
const t = _.Vb();
_.Ub(0, "button", 8),
_.bc("click", function () {
_.Ac(t);
const i = e.index;
return _.ec(2).selectPeriod(i);
}),
_.Kc(1),
_.Tb();
}
if (2 & t) {
const t = e.$implicit,
i = e.index,
n = _.ec(2);
_.Gb("active", n.currentPeriods === i), _.Cb(1), _.Lc(t.label);
}
}
function q(t, e) {
if (
(1 & t &&
(_.Ub(0, "div", 5),
_.Ub(1, "h4", 6),
_.Kc(2, "\u4eba\u6c14\u8d70\u5411\uff1a"),
_.Tb(),
_.Ic(3, z, 2, 3, "button", 7),
_.Tb()),
2 & t)
) {
const t = _.ec();
_.Cb(3), _.lc("ngForOf", t.periods);
}
}
function j(t, e) {
1 & t && _.Pb(0, "div", 9),
2 & t && _.Gc("width", 90, "%")("height", 250, "px");
}
function V(t, e) {
1 & t &&
(_.Ub(0, "div", 10), _.Kc(1, "\u6682\u65e0\u6570\u636e"), _.Tb());
}
let N = (() => {
class t {
constructor(t, e, i, n, o) {
(this.AmCharts = t),
(this._videoService = e),
(this._storage = i),
(this._utility = n),
(this._script = o),
(this.visible = !1),
(this.isDark = !1),
(this.rawPeriods = [
{ label: "\u5468" },
{ label: "\u6708" },
{ label: "\u5e74" },
{ label: "\u5168\u90e8" },
]),
(this.periods = []),
(this.emptyChart = !1),
(this.currentPeriods = 0),
(this.maxAxisValue = 0),
(this.lastVideoKey = null),
(this.loading = !1);
}
ngOnChanges(t) {
var e, i;
(null === (e = t.videoKey) || void 0 === e
? void 0
: e.currentValue) && this.changeChart(),
(null === (i = t.visible) || void 0 === i
? void 0
: i.currentValue) && this.changeChart();
}
changeChart() {
this.visible &&
(this.chart2 &&
(this.AmCharts.destroyChart(this.chart2), (this.chart2 = null)),
this.lastVideoKey !== this.videoKey && (this.data = null),
this._script.load("amcharts").then((t) => {
this._script
.load("amcharts-light", "amcharts-serial")
.then(() => {
this.data
? (this.chart2 = this.AmCharts.makeChart(
"chartdiv2",
this.makeOptions(this.data)
))
: this.createChat();
});
}));
}
ngOnInit() {
this._utility
.GetOrCreateSubscript("theme.change")
.subscribe((t) => {
this.isDark = "dark" == t;
}),
(this.isDark = !!parseInt(
this._storage.GetConfig().isDark || "1"
));
}
selectPeriod(t) {
(this.emptyChart = !1),
(this.currentPeriods = t),
this.chart2 &&
(this.AmCharts.destroyChart(this.chart2), (this.chart2 = null)),
this.createChat();
}
createChat() {
this.loading ||
((this.loading = !0),
(this.lastVideoKey = this.videoKey),
this._videoService
.getPopularityTrend(this.videoKey, this.currentPeriods)
.subscribe((t) => {
var e;
if (null != t && null != t.result && !t.result.length)
return (this.emptyChart = !0), void (this.loading = !1);
(this.emptyChart = !1),
(this.maxAxisValue = t.sumClick ? t.sumClick : 0),
(this.periods = this.rawPeriods.slice(
0,
t.btnNum ? t.btnNum : 4
));
const i = t.unit;
(this.data =
null === (e = t.result) || void 0 === e
? void 0
: e.map((t) => {
const e = new Date(t.date.split("+")[0]),
n = "" + (e.getMonth() + 1),
o = "" + e.getDate(),
a = (e.getHours(), e.getFullYear());
return {
day:
"\u6708" === i
? 1 === t.isStartYear
? `${n}\u6708<br>(${a})`
: `${n}\u6708`
: "\u5929" === i
? `${o}\u65e5`
: t.key,
value: t.hot,
};
})),
(this.loading = !1),
(this.chart2 = this.AmCharts.makeChart(
"chartdiv2",
this.makeOptions(this.data)
));
}));
}
makeOptions(t) {
return {
addClassNames: !0,
type: "serial",
theme: "light",
marginTop: 6,
dataProvider: t,
valueAxes: [
{
gridAlpha: 0,
position: "left",
titleColor: "transparent",
color: this.isDark ? "rgba(236, 236, 238, 0.4)" : "#888",
labelsEnabled: !0,
axisColor: this.isDark ? "rgba(236, 236, 238, 0.4)" : "#888",
axisThickness: 2,
labelFunction(t, e, i) {
let n = t ? t.toString() : "0";
if (t > 99999999) {
const e = Math.round(t / 1e7) / 10;
n =
-1 === e.toString().indexOf(".")
? e.toString() + ".0\u4ebf"
: e.toString() + "\u4ebf";
} else t > 9999 && (n = (t / 1e4).toFixed(0) + "\u4e07");
return n;
},
},
],
graphs: [
{
id: "g1",
balloonText: "[[value]]",
bullet: "round",
bulletSize: 8,
lineColor: "#01bdfc",
lineThickness: 2,
negativeLineColor: "#637bb6",
valueField: "value",
labelsEnabled: !1,
},
],
chartScrollbar: { enabled: !1 },
chartCursor: {
behavior: "none",
categoryBalloonEnabled: !1,
cursorAlpha: 0,
categoryBalloonColor: "#01bdfc",
cursorColor: "rgba(236, 236, 238, 0.4)",
},
dataDateFormat: "YYYY",
categoryField: "day",
categoryAxis: {
minPeriod: "DD",
gridAlpha: 0,
minorGridAlpha: 0,
color: this.isDark ? "rgba(236, 236, 238, 0.4)" : "#888",
axisColor: this.isDark ? "rgba(236, 236, 238, 0.4)" : "#888",
axisThickness: 2,
balloon: { enabled: !1 },
},
zoomOutButtonImage: "",
zoomOutText: "\u5c55\u793a\u6240\u6709",
};
}
ngOnDestroy() {
this.chart2 && this.AmCharts.destroyChart(this.chart2);
}
}
return (
(t.ɵfac = function (e) {
return new (e || t)(
_.Ob(B),
_.Ob(c.a),
_.Ob(C.a),
_.Ob(P.a),
_.Ob(S.a)
);
}),
(t.ɵcmp = _.Ib({
type: t,
selectors: [["app-trending-chart"]],
inputs: { videoKey: "videoKey", visible: "visible" },
features: [_.Ab],
decls: 5,
vars: 3,
consts: [
[1, ""],
["class", "py-3 mb-4 d-flex align-items-center", 4, "ngIf"],
[1, "chart-container"],
["id", "chartdiv2", 3, "width", "height", 4, "ngIf"],
["class", "no-data", 4, "ngIf"],
[1, "py-3", "mb-4", "d-flex", "align-items-center"],
[1, "text-left", "chart-title"],
[
"class",
"margin-right: 5px;",
3,
"active",
"click",
4,
"ngFor",
"ngForOf",
],
[1, "margin-right:", "5px;", 3, "click"],
["id", "chartdiv2"],
[1, "no-data"],
],
template: function (t, e) {
1 & t &&
(_.Ub(0, "div", 0),
_.Ic(1, q, 4, 1, "div", 1),
_.Ub(2, "div", 2),
_.Ic(3, j, 1, 4, "div", 3),
_.Ic(4, V, 2, 0, "div", 4),
_.Tb(),
_.Tb()),
2 & t &&
(_.Cb(1),
_.lc("ngIf", e.periods.length > 0),
_.Cb(2),
_.lc("ngIf", !e.emptyChart),
_.Cb(1),
_.lc("ngIf", e.emptyChart));
},
directives: [n.n, n.m],
styles: [
".statistics[_ngcontent-%COMP%]{margin-bottom:-9em}.chart-container[_ngcontent-%COMP%]{width:52em;min-height:220px;position:relative}.chart-title[_ngcontent-%COMP%]{color:#fff6}.light[_nghost-%COMP%] .chart-title[_ngcontent-%COMP%], .light [_nghost-%COMP%] .chart-title[_ngcontent-%COMP%]{color:#333}button[_ngcontent-%COMP%]{width:60px;height:22px;background-color:#1c1d2f!important;border:none;margin-right:12px;outline:none;color:#ffffffb3}.light[_nghost-%COMP%] button[_ngcontent-%COMP%], .light [_nghost-%COMP%] button[_ngcontent-%COMP%]{background-color:#f8f8f8!important}.light[_nghost-%COMP%] button[_ngcontent-%COMP%], .light [_nghost-%COMP%] button[_ngcontent-%COMP%]{color:#888}button.active[_ngcontent-%COMP%]{color:#00c0ff!important}.no-data[_ngcontent-%COMP%]{position:absolute;left:50%;top:50%;font-size:22px;color:#fff6;transform:translate(-50%,-50%)}.light[_nghost-%COMP%] .no-data[_ngcontent-%COMP%], .light [_nghost-%COMP%] .no-data[_ngcontent-%COMP%]{color:#888}",
],
})),
t
);
})();
const H = ["summaryBox"],
F = function (t, e, i, n) {
return { expanded: t, "should-hide": e, hasRating: i, show: n };
};
function $(t, e) {
if ((1 & t && _.Pb(0, "div", 1, 2), 2 & t)) {
const t = _.ec();
_.lc(
"ngClass",
_.tc(
2,
F,
t.expanded,
t.shouldHide,
t.hasRating && t.hasProgress,
t.visible
)
)("innerHTML", t.text, _.Bc);
}
}
function G(t, e) {
if ((1 & t && _.Pb(0, "span", 1, 2), 2 & t)) {
const t = _.ec();
_.lc(
"ngClass",
_.tc(
2,
F,
t.expanded,
t.shouldHide,
t.hasRating && t.hasProgress,
t.visible
)
)("innerHTML", t.brief, _.Bc);
}
}
let Q = (() => {
class t {
constructor() {
(this.shouldHide = !1),
(this.expanded = !1),
(this.hasRating = !1),
(this.hasProgress = !1),
(this.visible = !1);
}
ngOnInit() {}
ngOnChanges(t) {
this.text = this.summary;
}
ngAfterViewInit() {}
onClick() {
this.expanded = !this.expanded;
}
stripHtml(t) {
const e = document.createElement("div");
return (
(e.innerHTML = t.replace("\u3000", "\r\n")),
e.textContent || e.innerText || ""
);
}
}
return (
(t.ɵfac = function (e) {
return new (e || t)();
}),
(t.ɵcmp = _.Ib({
type: t,
selectors: [["app-summary"]],
viewQuery: function (t, e) {
if ((1 & t && _.Qc(H, 1), 2 & t)) {
let t;
_.wc((t = _.cc())) && (e.summaryBox = t.first);
}
},
inputs: {
summary: "summary",
hasRating: "hasRating",
hasProgress: "hasProgress",
visible: "visible",
},
features: [_.Ab],
decls: 2,
vars: 2,
consts: [
["class", "summary", 3, "ngClass", "innerHTML", 4, "ngIf"],
[1, "summary", 3, "ngClass", "innerHTML"],
["summaryBox", ""],
],
template: function (t, e) {
1 & t &&
(_.Ic(0, $, 2, 7, "div", 0), _.Ic(1, G, 2, 7, "span", 0)),
2 & t &&
(_.lc("ngIf", !e.brief || e.expanded),
_.Cb(1),
_.lc("ngIf", e.brief && !e.expanded));
},
directives: [n.n, n.l],
styles: [
".summary[_ngcontent-%COMP%]{font-size:16px;line-height:1.5;overflow:hidden;text-overflow:ellipsis;white-space:pre-wrap;opacity:0;max-width:77em;max-height:6em;overflow-y:auto}.summary.expanded[_ngcontent-%COMP%]{max-height:500px!important;transition:all .5s ease-out}.summary.should-hide[_ngcontent-%COMP%]{max-height:6rem}.summary.hasRating[_ngcontent-%COMP%]{max-height:3em}.summary.show[_ngcontent-%COMP%]{opacity:1}.expander[_ngcontent-%COMP%]{color:#00a8ec!important}.expander[_ngcontent-%COMP%]:hover{color:#1278ba!important}@media (max-width:1911px){.summary[_ngcontent-%COMP%]{max-height:3em}}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5rem;height:.5rem;background-color:#6663!important;border-radius:.5rem}.light[_nghost-%COMP%] [_ngcontent-%COMP%]::-webkit-scrollbar, .light [_nghost-%COMP%] [_ngcontent-%COMP%]::-webkit-scrollbar{background-color:#eee}[_ngcontent-%COMP%]::-webkit-scrollbar-track{border-radius:0}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border-radius:0;background-color:#6663;-webkit-transition:all .2s;transition:all .2s;border-radius:.5rem}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:hover{background-color:#98989833}",
],
})),
t
);
})();
var Y = i("Le4d");
function X(t, e) {
if ((1 & t && (_.Ub(0, "h4", 22), _.Kc(1), _.Tb()), 2 & t)) {
const t = _.ec(2);
_.Cb(1), _.Mc("", t.mediaTitle, " ");
}
}
const J = function (t) {
return { active: t };
},
Z = function (t) {
return { "rotate-180": t };
};
function tt(t, e) {
if (1 & t) {
const t = _.Vb();
_.Ub(0, "span", 7),
_.bc("click", function () {
return _.Ac(t), _.ec(2).tap("all");
}),
_.Pb(1, "i", 23),
_.Kc(2, "\u7edf\u8ba1"),
_.Pb(3, "i", 9),
_.Tb();
}
if (2 & t) {
const t = _.ec(2);
_.lc("ngClass", _.qc(2, J, "all" == t.action)),
_.Cb(3),
_.lc("ngClass", _.qc(4, Z, "all" == t.action));
}
}
function et(t, e) {
if ((1 & t && (_.Ub(0, "span", 25), _.Kc(1), _.Tb()), 2 & t)) {
const t = e.$implicit;
_.Cb(1), _.Lc(t);
}
}
function it(t, e) {
if (
(1 & t && (_.Ub(0, "div", 14), _.Ic(1, et, 2, 1, "span", 24), _.Tb()),
2 & t)
) {
const t = _.ec(2);
_.Cb(1), _.lc("ngForOf", t.tagList);
}
}
function nt(t, e) {
if (
(1 & t && (_.Ub(0, "span", 26), _.Kc(1), _.fc(2, "date"), _.Tb()),
2 & t)
) {
const t = _.ec(2);
_.Cb(1), _.Lc(_.hc(2, 1, t.video.addTime, "yyyy-MM-dd hh:mm"));
}
}
function ot(t, e) {
1 & t && _.Pb(0, "div", 27);
}
function at(t, e) {
if (
(1 & t &&
(_.Ub(0, "div", 14),
_.Ub(1, "div", 28),
_.Ub(2, "div", 29),
_.Kc(3),
_.Tb(),
_.Tb(),
_.Tb()),
2 & t)
) {
const t = _.ec(2);
_.Cb(3),
_.Lc(
"\u6682\u65e0\u8bc4\u5206" !== t.video.score
? t.video.score + "\u5206"
: t.video.score
);
}
}
const st = function (t) {
return { opened: t };
};
function ct(t, e) {
if (
(1 & t &&
(_.Ub(0, "div", 30),
_.Pb(1, "app-play-statistics", 31),
_.Pb(2, "app-trending-chart", 31),
_.Tb()),
2 & t)
) {
const t = _.ec(2);
_.lc("ngClass", _.qc(5, st, "all" == t.action)),
_.Cb(1),
_.lc("videoKey", t.video.key)("visible", "all" == t.action),
_.Cb(1),
_.lc("videoKey", t.video.key)("visible", "all" == t.action);
}
}
function rt(t, e) {
if (
(1 & t &&
(_.Ub(0, "div", 32),
_.Pb(1, "img", 33),
_.fc(2, "safeResource"),
_.Tb()),
2 & t)
) {
const t = _.ec(2);
_.Cb(1),
_.nc(
"src",
"",
_.gc(2, 2, t.video.image),
"?w=216&h=309&format=jpg&mode=stretch",
_.Dc
),
_.mc("alt", t.video.title);
}
}
function lt(t, e) {
if ((1 & t && (_.Ub(0, "div", 45), _.Kc(1), _.Tb()), 2 & t)) {
const t = _.ec(3);
_.Cb(1),
_.Mc(
" ",
t.video.lastName ? t.video.lastName : "\u5df2\u5b8c\u7ed3",
" "
);
}
}
function _t(t, e) {
1 & t && (_.Ub(0, "span", 49), _.Kc(1, "/"), _.Tb());
}
function gt(t, e) {
if ((1 & t && (_.Ub(0, "span"), _.Kc(1), _.Tb()), 2 & t)) {
const t = _.ec(4);
_.Cb(1), _.Lc("\u5171" + t.video.serialCount + "\u96c6");
}
}
function dt(t, e) {
if (
(1 & t &&
(_.Ub(0, "div", 46),
_.Kc(1),
_.Ic(2, _t, 2, 0, "span", 47),
_.Ic(3, gt, 2, 1, "span", 48),
_.Tb()),
2 & t)
) {
const t = _.ec(3);
_.Cb(1),
_.Mc(" ", "\u66f4\u65b0\u5230" + t.video.lastName + "\u96c6", " "),
_.Cb(1),
_.lc("ngIf", !!t.video.serialCount),
_.Cb(1),
_.lc("ngIf", !!t.video.serialCount);
}
}
function ht(t, e) {
if (
(1 & t &&
(_.Ub(0, "div", 50),
_.Ub(1, "span", 42),
_.Kc(2, "\u6dfb\u52a0\uff1a"),
_.Tb(),
_.Ub(3, "span"),
_.Kc(4),
_.Tb(),
_.Tb()),
2 & t)
) {
const t = _.ec(3);
_.Cb(4), _.Lc(t.video.created);
}
}
function pt(t, e) {
if (
(1 & t &&
(_.Ub(0, "div", 51),
_.Ub(1, "span", 42),
_.Kc(2, "\u66f4\u65b0\uff1a"),
_.Tb(),
_.Ub(3, "span"),
_.Kc(4),
_.Tb(),
_.Tb()),
2 & t)
) {
const t = _.ec(3);
_.Cb(4),
_.Lc(
t.video.inProgress ? t.video.updateSchedule : "\u5df2\u5b8c\u7ed3"
);
}
}
function ut(t, e) {
1 & t && (_.Ub(0, "span", 56), _.Kc(1, "/"), _.Tb());
}
const bt = function () {
return { type: "director" };
};
function mt(t, e) {
if (
(1 & t &&
(_.Ub(0, "span"),
_.Ub(1, "a", 54),
_.Kc(2),
_.Tb(),
_.Ic(3, ut, 2, 0, "span", 55),
_.Tb()),
2 & t)
) {
const t = e.$implicit,
i = e.last;
_.Cb(1),
_.lc("routerLink", "/search/" + t)("queryParams", _.pc(4, bt)),
_.Cb(1),
_.Lc(t),
_.Cb(1),
_.lc("ngIf", !i);
}
}
function ft(t, e) {
if (
(1 & t &&
(_.Ub(0, "div", 52),
_.Ub(1, "span", 42),
_.Kc(2, "\u5bfc\u6f14\uff1a"),
_.Tb(),
_.Ic(3, mt, 4, 5, "span", 53),
_.Tb()),
2 & t)
) {
const t = _.ec(3);
_.Cb(3), _.lc("ngForOf", t.video.directors);
}
}
function Pt(t, e) {
1 & t && (_.Ub(0, "span", 61), _.Kc(1, "\u4e3b\u6f14\uff1a"), _.Tb());
}
function vt(t, e) {
1 & t &&
(_.Ub(0, "div", 62),
_.Ub(1, "span"),
_.Kc(2, "\u672a\u77e5"),
_.Tb(),
_.Tb());
}
function Ct(t, e) {
1 & t && (_.Ub(0, "span", 56), _.Kc(1, "/"), _.Tb());
}
const Ot = function () {
return { type: "star" };
};
function Mt(t, e) {
if (
(1 & t &&
(_.Ub(0, "span"),
_.Ub(1, "a", 54),
_.Kc(2),
_.Tb(),
_.Ic(3, Ct, 2, 0, "span", 55),
_.Tb()),
2 & t)
) {
const t = e.$implicit,
i = e.last;
_.Cb(1),
_.lc("routerLink", "/search/" + t)("queryParams", _.pc(4, Ot)),
_.Cb(1),
_.Lc(t),
_.Cb(1),
_.lc("ngIf", !i);
}
}
function xt(t, e) {
if (
(1 & t && (_.Ub(0, "div", 63), _.Ic(1, Mt, 4, 5, "span", 53), _.Tb()),
2 & t)
) {
const t = _.ec(4);
_.Cb(1), _.lc("ngForOf", t.video.actors);
}
}
function Et(t, e) {
if (
(1 & t &&
(_.Ub(0, "div", 57),
_.Ic(1, Pt, 2, 0, "span", 58),
_.Ic(2, vt, 3, 0, "div", 59),
_.Ic(3, xt, 2, 1, "div", 60),
_.Tb()),
2 & t)
) {
const t = _.ec(3);
_.Cb(1),
_.lc("ngIf", !t.isAdult),
_.Cb(1),
_.lc("ngIf", !(null != t.video.actors && t.video.actors.length)),
_.Cb(1),
_.lc("ngIf", null == t.video.actors ? null : t.video.actors.length);
}
}
function yt(t, e) {
if (
(1 & t &&
(_.Sb(0),
_.Pb(1, "div"),
_.Ub(2, "div", 68),
_.Kc(3),
_.Tb(),
_.Rb()),
2 & t)
) {
const t = e.$implicit;
_.Cb(1),
_.Fb("other-logo ", t.templateKey, ""),
_.Cb(2),
_.Lc(t.rating);
}
}
function Dt(t, e) {
if (
(1 & t &&
(_.Ub(0, "div", 64),
_.Ub(1, "div", 42),
_.Kc(2, "\u8bc4\u5206\uff1a "),
_.Tb(),
_.Pb(3, "div", 65),
_.Ub(4, "div", 66),
_.Kc(5),
_.Tb(),
_.Pb(6, "div", 67),
_.Ic(7, yt, 4, 4, "ng-container", 53),
_.Tb()),
2 & t)
) {
const t = _.ec(3);
_.Cb(5), _.Lc(t.video.score), _.Cb(2), _.lc("ngForOf", t.ratingList);
}
}
function Tt(t, e) {
if (
(1 & t &&
(_.Ub(0, "div", 34),
_.Ic(1, lt, 2, 1, "div", 35),
_.Ic(2, dt, 4, 3, "div", 36),
_.Ic(3, ht, 5, 1, "div", 37),
_.Ic(4, pt, 5, 1, "div", 38),
_.Ic(5, ft, 4, 1, "div", 39),
_.Ic(6, Et, 4, 3, "div", 40),
_.Ub(7, "div", 41),
_.Ub(8, "span", 42),
_.Kc(9, "\u7b80\u4ecb\uff1a "),
_.Tb(),
_.Pb(10, "app-summary", 43),
_.Tb(),
_.Ic(11, Dt, 8, 2, "div", 44),
_.Tb()),
2 & t)
) {
const t = _.ec(2);
_.Cb(1),
_.lc(
"ngIf",
"video" === t.type &&
!t.isAdult &&
!t.video.inProgress &&
"movie" !== t.video.category &&
"0,1,6,57" !== t.video.cid
),
_.Cb(1),
_.lc(
"ngIf",
"video" === t.type &&
!t.isAdult &&
t.video.inProgress &&
t.video.lastName &&
"movie" !== t.video.category
),
_.Cb(1),
_.lc("ngIf", "video" === t.type),
_.Cb(1),
_.lc(
"ngIf",
t.video.updateSchedule && !t.isAdult && t.video.inProgress
),
_.Cb(1),
_.lc(
"ngIf",
(null == t.video.directors ? null : t.video.directors.length) &&
!t.isAdult
),
_.Cb(1),
_.lc("ngIf", "video" === t.type),
_.Cb(4),
_.lc("summary", t.video.summary || t.video.contxt)(
"hasRating",
t.ratingList.length > 0 &&
"\u6682\u65e0\u8bc4\u5206" !== t.video.score
)(
"hasProgress",
"video" === t.type &&
!t.isAdult &&
"movie" !== t.video.category &&
"0,1,6,57" !== t.video.cid
)("visible", t.summaryVisibility),
_.Cb(1),
_.lc(
"ngIf",
t.ratingList.length > 0 &&
"\u6682\u65e0\u8bc4\u5206" !== t.video.score
);
}
}
const It = function (t, e) {
return { top: t, opened: e };
};
function wt(t, e) {
if (1 & t) {
const t = _.Vb();
_.Ub(0, "div", 1),
_.Ub(1, "div", 2),
_.Ub(2, "h4", 3),
_.Kc(3),
_.Tb(),
_.Ic(4, X, 2, 1, "h4", 4),
_.Tb(),
_.Ub(5, "div", 5),
_.Ub(6, "div", 6),
_.Ub(7, "span", 7),
_.bc("click", function () {
return _.Ac(t), _.ec().tap("detail");
}),
_.Pb(8, "i", 8),
_.Kc(9),
_.Pb(10, "i", 9),
_.Tb(),
_.Ic(11, tt, 4, 6, "span", 10),
_.Tb(),
_.Ic(12, it, 2, 1, "div", 11),
_.Ub(13, "div", 12),
_.Ic(14, nt, 3, 4, "span", 13),
_.Ub(15, "div", 14),
_.Pb(16, "i", 15),
_.Ub(17, "span", 16),
_.Kc(18),
_.fc(19, "chineseCounter"),
_.Tb(),
_.Tb(),
_.Ic(20, ot, 1, 0, "div", 17),
_.Ic(21, at, 4, 1, "div", 11),
_.Tb(),
_.Tb(),
_.Ic(22, ct, 3, 7, "div", 18),
_.Ub(23, "div", 19),
_.Ic(24, rt, 3, 4, "div", 20),
_.Ic(25, Tt, 12, 11, "div", 21),
_.Tb(),
_.Tb();
}
if (2 & t) {
const t = _.ec();
_.Cb(3),
_.Lc(t.video.title),
_.Cb(1),
_.lc("ngIf", !!t.mediaTitle && t.video.isMediaTitleVisible),
_.Cb(3),
_.lc("ngClass", _.qc(18, J, "detail" == t.action)),
_.Cb(2),
_.Lc("video" === t.type ? "\u8be6\u60c5" : "\u7b80\u4ecb"),
_.Cb(1),
_.lc("ngClass", _.qc(20, Z, "detail" == t.action)),
_.Cb(1),
_.lc("ngIf", "video" === t.type),
_.Cb(1),
_.lc("ngIf", "video" === t.type),
_.Cb(2),
_.lc("ngIf", "top" === t.type),
_.Cb(4),
_.Lc(_.gc(19, 16, t.video.userData.viewCount)),
_.Cb(2),
_.lc("ngIf", "video" === t.type),
_.Cb(1),
_.lc("ngIf", "video" === t.type),
_.Cb(1),
_.lc("ngIf", "video" === t.type),
_.Cb(1),
_.lc(
"ngClass",
_.rc(22, It, "top" === t.type, "detail" == t.action)
)("ngStyle", t.dynamicHeightTransition()),
_.Cb(1),
_.lc("ngIf", "video" === t.type),
_.Cb(1),
_.lc("ngIf", !t.tvLive);
}
}
let Ut = (() => {
class t {
constructor(t, e) {
(this._categoryService = t),
(this._videoService = e),
(this.isAdult = 2 === v.a.cinema),
(this.screenType = A.a),
(this.mediaTitle = ""),
(this.tvLive = !1),
(this.type = "video"),
(this.queryNav = {}),
(this.navKey = ""),
(this.introHeight = "352px"),
(this.action = ""),
(this.tagList = []),
(this.ratingList = []),
(this.summaryVisibility = !1);
}
get video() {
return this._video;
}
set video(t) {
t &&
((this.navKey = this.getNavKey(t.category)),
(this.queryNav = this.getNavQuery(t.category)),
this.getTagList(t),
(t = Object.assign(Object.assign({}, t), {
directors:
t.directors && t.directors.length > 0
? t.directors[0].split(" / ")
: [],
}))),
(this._video = t),
this._video &&
!this.isAdult &&
(this.getRatingList(this._video.key),
this.ifTvLive(this._video));
}
ngOnInit() {
this.action = "video" === this.type ? "detail" : "";
}
tap(t) {
this.action = this.action == t ? "" : t;
}
getRatingBarWidth() {
return this.screenSize === A.a.Small
? 150
: this.screenSize === A.a.Medium
? 100
: this.screenSize === A.a.Large
? 160
: 218;
}
getNavKey(t) {
switch (t) {
case "sport":
case "chinese":
case "games":
return "/list";
case "movie":
return "/movies";
}
return "/" + t;
}
getNavQuery(t) {
switch (t) {
case "sport":
return { cid: "0,1,95" };
case "chinese":
return { cid: "0,1,8" };
case "games":
return { cid: "0,1,100" };
}
return "";
}
getTagList(t) {
this.tagList = [];
var e = this.cidMapperArray(t.cidMapper);
this.tagList.push(e.length > 1 ? e[0] : t.genre),
e.length > 2 && this.tagList.push(e[1]),
e.length > 3 && this.tagList.push(e[2]),
this.tagList.push(t.region),
this.tagList.push(t.published),
this.tagList.push(t.language);
}
getIntroHeight() {}
cidMapperArray(t) {
return t ? t.split(",") : [];
}
getRatingList(t) {
(this.summaryVisibility = !1),
this._videoService.getRatingList(t).subscribe((t) => {
(this.ratingList = t), (this.summaryVisibility = !0);
}),
setTimeout(() => {
this.summaryVisibility = !0;
}, 1e3);
}
dynamicHeightTransition() {
let t = {};
return (
(t = { height: "detail" === this.action ? this.introHeight : 0 }),
t
);
}
ifTvLive(t) {
const e =
!!(null == t ? void 0 : t.cid) &&
(null == t ? void 0 : t.cid.startsWith("0,1,111"));
(this.tvLive = !!e), this.tvLive && (this.action = "");
}
}
return (
(t.ɵfac = function (e) {
return new (e || t)(_.Ob(K.a), _.Ob(c.a));
}),
(t.ɵcmp = _.Ib({
type: t,
selectors: [["app-video-info"]],
inputs: {
mediaTitle: "mediaTitle",
video: "video",
screenSize: "screenSize",
type: "type",
},
decls: 1,
vars: 1,
consts: [
["class", "video-detail", 4, "ngIf"],
[1, "video-detail"],
[2, "margin-bottom", "28px"],
[1, "d-inline", "h4"],
["class", "d-inline h4", "style", "margin-left:1em", 4, "ngIf"],
[1, "linear", "d-flex", 2, "margin-bottom", "28px"],
[1, "linear-left"],
[1, "action", 3, "ngClass", "click"],
[1, "iconfont", "iconxiangqing"],
[1, "iconfont", "iconjiantou_liebiaozhankai", 3, "ngClass"],
["class", "action", 3, "ngClass", "click", 4, "ngIf"],
["class", "d-flex align-items-center", 4, "ngIf"],
[1, "d-inline-flex", "align-items-center", 2, "height", "24px"],
["class", "mr-2", 4, "ngIf"],
[1, "d-flex", "align-items-center"],
[
1,
"iconfont",
"iconrenqi",
"d-block",
"mr-2",
2,
"color",
"#fe6f71",
"top",
"auto",
],
[1, "mr-0", "fs-14"],
[
"style",
"margin: 0 15px; width: 1px; height: 15px; background-color: rgba(255, 255, 255, 0.2);",
4,
"ngIf",
],
["class", "d-flex openner statistics", 3, "ngClass", 4, "ngIf"],
[
"id",
"introDiv",
1,
"d-flex",
"openner",
3,
"ngClass",
"ngStyle",
],
["class", "img", 4, "ngIf"],
["class", "intro", 4, "ngIf"],
[1, "d-inline", "h4", 2, "margin-left", "1em"],
[1, "iconfont", "iconshujutongji"],
["class", "tag", 4, "ngFor", "ngForOf"],
[1, "tag"],
[1, "mr-2"],
[
2,
"margin",
"0 15px",
"width",
"1px",
"height",
"15px",
"background-color",
"rgba(255, 255, 255, 0.2)",
],
[1, "rate"],
[1, "value"],
[1, "d-flex", "openner", "statistics", 3, "ngClass"],
[3, "videoKey", "visible"],
[1, "img"],
["width", "216", "height", "309", 3, "src", "alt"],
[1, "intro"],
["class", "endProgress d-flex", 4, "ngIf"],
["class", "inProgress d-flex", 4, "ngIf"],
["class", "created d-flex", 4, "ngIf"],
["class", "updateSchedule d-flex", 4, "ngIf"],
["class", "directors d-flex", 4, "ngIf"],
["class", "d-flex", "style", "white-space: nowrap", 4, "ngIf"],
[1, "d-flex"],
[1, "info-label"],
[3, "summary", "hasRating", "hasProgress", "visible"],
["class", "d-flex score-info", 4, "ngIf"],
[1, "endProgress", "d-flex"],
[1, "inProgress", "d-flex"],
["class", "mx-1", 4, "ngIf"],
[4, "ngIf"],
[1, "mx-1"],
[1, "created", "d-flex"],
[1, "updateSchedule", "d-flex"],
[1, "directors", "d-flex"],
[4, "ngFor", "ngForOf"],
[1, "star", 3, "routerLink", "queryParams"],
["class", "text-light mx-1", 4, "ngIf"],
[1, "text-light", "mx-1"],
[1, "d-flex", 2, "white-space", "nowrap"],
[
"class",
"info-label",
"style",
"vertical-align: top;",
4,
"ngIf",
],
["class", "d-inline-block actors", 4, "ngIf"],
["class", "d-inline-flex actors", 4, "ngIf"],
[1, "info-label", 2, "vertical-align", "top"],
[1, "d-inline-block", "actors"],
[1, "d-inline-flex", "actors"],
[1, "d-flex", "score-info"],
[1, "logo-icon", "site-logo"],
[1, "site-score"],
[1, "gap-line"],
[1, "other-score"],
],
template: function (t, e) {
1 & t && _.Ic(0, wt, 26, 25, "div", 0),
2 & t && _.lc("ngIf", e.video && e.video.title);
},
directives: [n.n, n.l, n.o, n.m, W, N, Q, a.g],
pipes: [Y.a, n.e, Y.b],
styles: [
".video-detail[_ngcontent-%COMP%]{margin-top:28px;padding-left:1em}.bar-container[_ngcontent-%COMP%]{position:relative;border-radius:20px;height:20px;padding-left:54px;background-color:#090b21;overflow:hidden;border:1px solid #6663}.bar-container[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{position:absolute;top:0;left:15px;font-size:15px;line-height:17px}#introDiv[_ngcontent-%COMP%]{overflow:hidden!important;margin-bottom:0!important}.actors[_ngcontent-%COMP%]{width:inherit;max-height:24px;overflow:hidden;display:-webkit-box!important;-webkit-line-clamp:1;-webkit-box-orient:vertical;text-overflow:ellipsis}.info-label[_ngcontent-%COMP%]{display:inline-block;white-space:nowrap;width:3em}.light[_nghost-%COMP%] .info-label[_ngcontent-%COMP%], .light [_nghost-%COMP%] .info-label[_ngcontent-%COMP%]{color:#888}.star[_ngcontent-%COMP%]{cursor:pointer;white-space:normal;text-transform:capitalize}.h4[_ngcontent-%COMP%]{font-size:22px;font-weight:700}.img[_ngcontent-%COMP%]{width:216px;height:309px;margin-right:25px}.intro[_ngcontent-%COMP%]{color:#ffffffb3;font-size:16px}.light[_nghost-%COMP%] .intro[_ngcontent-%COMP%], .light [_nghost-%COMP%] .intro[_ngcontent-%COMP%]{color:#333}.intro[_ngcontent-%COMP%] .d-flex[_ngcontent-%COMP%], .linear[_ngcontent-%COMP%]{margin-bottom:1.5em}.linear[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:inline-block;margin-right:1em;color:#ffffffb3}.light[_nghost-%COMP%] .linear[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .light [_nghost-%COMP%] .linear[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#333}.linear[_ngcontent-%COMP%] .action[_ngcontent-%COMP%]{margin-right:2em;cursor:pointer;-webkit-user-select:none;user-select:none;font-size:16px}.light[_nghost-%COMP%] .linear[_ngcontent-%COMP%] .action[_ngcontent-%COMP%]:hover, .light [_nghost-%COMP%] .linear[_ngcontent-%COMP%] .action[_ngcontent-%COMP%]:hover{color:#00c0ff}.light[_nghost-%COMP%] .linear[_ngcontent-%COMP%] .action[_ngcontent-%COMP%]:hover .iconfont[_ngcontent-%COMP%], .light [_nghost-%COMP%] .linear[_ngcontent-%COMP%] .action[_ngcontent-%COMP%]:hover .iconfont[_ngcontent-%COMP%]{color:#00c0ff}.linear[_ngcontent-%COMP%] .action.active[_ngcontent-%COMP%]{color:#00c0ff}.light[_nghost-%COMP%] .linear[_ngcontent-%COMP%] .action.active[_ngcontent-%COMP%], .light [_nghost-%COMP%] .linear[_ngcontent-%COMP%] .action.active[_ngcontent-%COMP%]{color:#00c0ff}.light[_nghost-%COMP%] .linear[_ngcontent-%COMP%] .action.active[_ngcontent-%COMP%] .iconfont[_ngcontent-%COMP%], .light [_nghost-%COMP%] .linear[_ngcontent-%COMP%] .action.active[_ngcontent-%COMP%] .iconfont[_ngcontent-%COMP%]{color:#00c0ff}.linear[_ngcontent-%COMP%] .iconfont[_ngcontent-%COMP%]{font-size:27px;position:relative;top:.2em}.light[_nghost-%COMP%] .linear[_ngcontent-%COMP%] .iconfont[_ngcontent-%COMP%], .light [_nghost-%COMP%] .linear[_ngcontent-%COMP%] .iconfont[_ngcontent-%COMP%]{color:#aaa}.linear[_ngcontent-%COMP%] .linear-left[_ngcontent-%COMP%]{margin-top:-1em;margin-left:-.4em}.tag[_ngcontent-%COMP%]{background-color:#1c1d2f;color:#fff6;padding:.1em 0;width:55px;font-size:12px;text-align:center}.light[_nghost-%COMP%] .tag[_ngcontent-%COMP%], .light [_nghost-%COMP%] .tag[_ngcontent-%COMP%]{background-color:#f8f8f8}.light[_nghost-%COMP%] .tag[_ngcontent-%COMP%], .light [_nghost-%COMP%] .tag[_ngcontent-%COMP%]{color:#888!important}.tag[_ngcontent-%COMP%]:hover a[_ngcontent-%COMP%]{color:#fff}.light[_nghost-%COMP%] .tag[_ngcontent-%COMP%]:hover a[_ngcontent-%COMP%], .light [_nghost-%COMP%] .tag[_ngcontent-%COMP%]:hover a[_ngcontent-%COMP%]{color:#fff}.openner[_ngcontent-%COMP%]{overflow:hidden;transition:height .3s;z-index:0;position:relative}.openner.statistics[_ngcontent-%COMP%]{height:0;background-color:#090b21}.light[_nghost-%COMP%] .openner.statistics[_ngcontent-%COMP%], .light [_nghost-%COMP%] .openner.statistics[_ngcontent-%COMP%]{background-color:#fff}.openner.statistics.opened[_ngcontent-%COMP%]{z-index:1;height:352px!important;overflow:hidden;margin-bottom:0}.openner.opened[_ngcontent-%COMP%]{z-index:0;margin-bottom:28px;overflow:visible}.openner.noMaxHeight[_ngcontent-%COMP%]{max-height:unset!important}.rate[_ngcontent-%COMP%]{font-size:12px;align-items:baseline}.rate[_ngcontent-%COMP%], .rate[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{color:#ee9d03!important;display:inline-block}.rate[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{font-weight:700;font-size:14px;margin-right:5px!important}.rate[_ngcontent-%COMP%] .rate-label[_ngcontent-%COMP%]{color:#ee9d03!important;display:inline-block;line-height:12px;vertical-align:text-top}.iconrenqi[_ngcontent-%COMP%]{font-size:28px!important}.text-serial[_ngcontent-%COMP%]{color:#ffffffb3}.light[_nghost-%COMP%] .text-serial[_ngcontent-%COMP%], .light [_nghost-%COMP%] .text-serial[_ngcontent-%COMP%]{color:#888}.score-info[_ngcontent-%COMP%]{align-items:center}.gap-line[_ngcontent-%COMP%]{margin:0 18px;height:10px;border-right:1px solid;border-color:#6663}.site-logo[_ngcontent-%COMP%]{width:16px;height:16px;margin-right:6px!important}.site-score[_ngcontent-%COMP%]{color:#ffa800;font-size:16px}.other-logo[_ngcontent-%COMP%]{margin-right:6px!important}.other-logo.douban[_ngcontent-%COMP%]{width:13px;height:13px;background:url(/assets/images/score-douban.png) no-repeat 50%;background-size:contain}.other-logo.imdb[_ngcontent-%COMP%]{width:26px;height:13px;background:url(/assets/images/score-imdb.png) no-repeat 50%;background-size:contain}.other-logo.rt[_ngcontent-%COMP%]{width:13px;height:13px;background:url(/assets/images/score-rt.png) no-repeat 50%;background-size:contain}.other-score[_ngcontent-%COMP%]{font-size:14px;margin-right:12px}",
],
})),
t
);
})();
var Lt = i("LmEr"),
kt = i("qUyv"),
At = i("QjhS"),
Kt = i("YKxU"),
Bt = i("jtAa"),
Rt = i("qXbc"),
St = i("2EkQ");
const Wt = ["appBox"],
zt = ["shareBox"];
function qt(t, e) {
if (
(1 & t &&
(_.Ub(0, "span", 31), _.Kc(1), _.fc(2, "chineseCounter"), _.Tb()),
2 & t)
) {
const t = _.ec(2);
_.Cb(1), _.Mc(" ", _.gc(2, 1, t.commentsCount), " ");
}
}
function jt(t, e) {
1 & t && (_.Ub(0, "span", 27), _.Kc(1, " \u8bc4\u8bba "), _.Tb());
}
function Vt(t, e) {
if (
(1 & t &&
(_.Ub(0, "span", 32), _.Kc(1), _.fc(2, "chineseCounter"), _.Tb()),
2 & t)
) {
const t = _.ec(2);
_.Cb(1), _.Lc(_.gc(2, 1, t.video.userData.like));
}
}
function Nt(t, e) {
1 & t && (_.Ub(0, "span"), _.Kc(1, "\u8d5e"), _.Tb());
}
function Ht(t, e) {
if (
(1 & t &&
(_.Ub(0, "span", 32), _.Kc(1), _.fc(2, "chineseCounter"), _.Tb()),
2 & t)
) {
const t = _.ec(2);
_.Cb(1), _.Lc(_.gc(2, 1, t.video.userData.dislike));
}
}
function Ft(t, e) {
1 & t && (_.Ub(0, "span"), _.Kc(1, "\u8e29"), _.Tb());
}
function $t(t, e) {
if (
(1 & t &&
(_.Ub(0, "span", 31), _.Kc(1), _.fc(2, "chineseCounter"), _.Tb()),
2 & t)
) {
const t = _.ec(2);
_.Cb(1), _.Mc(" ", _.gc(2, 1, t.video.userData.favorites), " ");
}
}
function Gt(t, e) {
1 & t && (_.Ub(0, "span", 27), _.Kc(1, " \u6536\u85cf "), _.Tb());
}
function Qt(t, e) {
1 & t && (_.Ub(0, "span", 27), _.Kc(1, "\u5206\u4eab"), _.Tb());
}
function Yt(t, e) {
if (
(1 & t &&
(_.Ub(0, "span", 31), _.Kc(1), _.fc(2, "chineseCounter"), _.Tb()),
2 & t)
) {
const t = _.ec(2);
_.Cb(1), _.Lc(_.gc(2, 1, t.video.userData.shared));
}
}
function Xt(t, e) {
if ((1 & t && (_.Pb(0, "img", 51), _.fc(1, "absUrl")), 2 & t)) {
const t = _.ec(3);
_.mc("alt", t.video.title),
_.lc(
"src",
_.gc(1, 2, t.video.image + "?w=228&h=135&mode=crop&format=jpg"),
_.Dc
);
}
}
function Jt(t, e) {
if ((1 & t && (_.Pb(0, "img", 51), _.fc(1, "absUrl")), 2 & t)) {
const t = _.ec(3);
_.mc("alt", t.video.title),
_.lc(
"src",
_.gc(1, 2, t.video.image + "?w=120&h=172&mode=crop&format=jpg"),
_.Dc
);
}
}
function Zt(t, e) {
if ((1 & t && (_.Ub(0, "span", 54), _.Kc(1), _.Tb()), 2 & t)) {
const t = e.$implicit;
_.Cb(1), _.Lc(t);
}
}
function te(t, e) {
if (
(1 & t && (_.Ub(0, "div", 52), _.Ic(1, Zt, 2, 1, "span", 53), _.Tb()),
2 & t)
) {
const t = _.ec(3);
_.Cb(1), _.lc("ngForOf", t.tagList.slice(0, 4));
}
}
function ee(t, e) {
if ((1 & t && (_.Ub(0, "div", 58), _.Kc(1), _.Tb()), 2 & t)) {
const t = _.ec(4);
_.Cb(1), _.Lc(t.video.score);
}
}
function ie(t, e) {
if (
(1 & t &&
(_.Ub(0, "div", 55),
_.Ic(1, ee, 2, 1, "div", 56),
_.Ub(2, "div", 57),
_.Kc(3),
_.Tb(),
_.Tb()),
2 & t)
) {
const t = _.ec(3);
_.Cb(1),
_.lc("ngIf", "\u6682\u65e0\u8bc4\u5206" !== t.video.score),
_.Cb(2),
_.Lc(
"\u6682\u65e0\u8bc4\u5206" !== t.video.score
? "\u5206"
: t.video.score
);
}
}
function ne(t, e) {
if ((1 & t && (_.Ub(0, "span"), _.Kc(1), _.Tb()), 2 & t)) {
const t = _.ec(3);
_.Cb(1),
_.Mc(
"\u66f4\u591a\u6709\u8da3\u7684\u5c0f\u89c6\u9891\u5c3d\u5728",
t.siteName,
"\uff0c\u5feb\u6765\u548c\u6211\u4e00\u8d77\u770b\u5427\uff01"
);
}
}
function oe(t, e) {
if ((1 & t && (_.Ub(0, "span"), _.Kc(1), _.Tb()), 2 & t)) {
const t = _.ec(3);
_.Cb(1),
_.Oc(
"\u6211\u6b63\u5728",
t.siteName,
"\u770b\u300a",
t.video.title,
"\u300b \u6d77\u91cf\u9ad8\u6e05\u8d44\u6e90\u514d\u8d39\u770b\uff0c\u5c3d\u5728",
t.siteName,
"\uff0c\u5feb\u6765\u548c\u6211\u4e00\u8d77\u770b\u5427\uff01"
);
}
}
const ae = function (t) {
return { drama: t };
},
se = function () {
return [];
};
function ce(t, e) {
if (1 & t) {
const t = _.Vb();
_.Ub(0, "div", 33, 34),
_.Ub(2, "div", 35),
_.Ub(3, "div", 36),
_.Ub(4, "div", 37),
_.Ub(5, "div", 38),
_.Ic(6, Xt, 2, 4, "img", 39),
_.Ic(7, Jt, 2, 4, "img", 39),
_.Tb(),
_.Ub(8, "div", 40),
_.Ub(9, "div", 41),
_.Kc(10),
_.Tb(),
_.Ub(11, "div", 42),
_.Ic(12, te, 2, 1, "div", 43),
_.Ub(13, "div", 44),
_.Ub(14, "div", 7),
_.Pb(15, "i", 45),
_.Ub(16, "span", 46),
_.Kc(17),
_.fc(18, "chineseCounter"),
_.Tb(),
_.Tb(),
_.Ic(19, ie, 4, 2, "div", 47),
_.Tb(),
_.Tb(),
_.Ub(20, "div", 48),
_.Ic(21, ne, 2, 1, "span", 18),
_.Ic(22, oe, 2, 3, "span", 18),
_.Tb(),
_.Tb(),
_.Tb(),
_.Tb(),
_.Ub(23, "div", 49),
_.Ub(24, "app-share", 50),
_.bc("sharedEvent", function (e) {
return _.Ac(t), _.ec(2).sharedEventHandler(e);
}),
_.fc(25, "chineseCounter"),
_.Tb(),
_.Tb(),
_.Tb(),
_.Tb();
}
if (2 & t) {
const t = _.ec(2);
_.lc("ngClass", _.qc(28, ae, !!t.video && "top" !== t.video.cid)),
_.Cb(5),
_.lc("ngClass", _.qc(30, ae, !!t.video && "top" !== t.video.cid)),
_.Cb(1),
_.lc("ngIf", !!t.video && "top" === t.video.cid),
_.Cb(1),
_.lc("ngIf", !!t.video && "top" !== t.video.cid),
_.Cb(2),
_.lc("title", t.video.title)(
"ngClass",
_.qc(32, ae, !!t.video && "top" !== t.video.cid)
),
_.Cb(1),
_.Mc(" ", t.video.title, " "),
_.Cb(1),
_.lc("ngClass", _.qc(34, ae, !!t.video && "top" !== t.video.cid)),
_.Cb(1),
_.lc("ngIf", !!t.video && "top" !== t.video.cid),
_.Cb(5),
_.Lc(_.gc(18, 24, t.video.userData.viewCount)),
_.Cb(2),
_.lc("ngIf", !!t.video && "top" !== t.video.cid),
_.Cb(1),
_.lc("ngClass", _.qc(36, ae, !!t.video && "top" !== t.video.cid)),
_.Cb(1),
_.lc("ngIf", !!t.video && "top" === t.video.cid),
_.Cb(1),
_.lc("ngIf", !!t.video && "top" !== t.video.cid),
_.Cb(2),
_.lc("isHorizontal", !0)("title", t.video.title)(
"url",
t.router.url
)("id", t.video.key)("image", t.video.image)(
"isNews",
!!t.video && "top" === t.video.cid
)(
"tagList",
t.tagList.length > 0 ? t.tagList.slice(0, 4) : _.pc(38, se)
)("hot", _.gc(25, 26, t.video.userData.viewCount))(
"score",
"top" !== t.video.cid &&
"\u6682\u65e0\u8bc4\u5206" !== t.video.score
? t.video.score
: ""
)(
"scoreLabel",
"top" !== t.video.cid
? "\u6682\u65e0\u8bc4\u5206" !== t.video.score
? "\u5206"
: t.video.score
: ""
);
}
}
function re(t, e) {
1 & t && _.Pb(0, "div", 66);
}
function le(t, e) {
1 & t && _.Pb(0, "div", 67);
}
function _e(t, e) {
1 & t && (_.Ub(0, "span", 27), _.Kc(1, "\u4e0b\u8f7dApp"), _.Tb());
}
function ge(t, e) {
1 & t && (_.Ub(0, "span", 27), _.Kc(1, "\u624b\u673a\u770b"), _.Tb());
}
function de(t, e) {
1 & t && _.Pb(0, "i", 82);
}
function he(t, e) {
1 & t && _.Pb(0, "i", 83);
}
const pe = function (t) {
return { wy: t };
};
function ue(t, e) {
if (1 & t) {
const t = _.Vb();
_.Ub(0, "div", 68),
_.Ub(1, "div", 69),
_.Ub(2, "div", 70),
_.Ub(3, "div", 71),
_.Pb(4, "img", 72),
_.Tb(),
_.Ub(5, "div", 73),
_.Ub(6, "div", 74),
_.Kc(
7,
"\u626b\u4e00\u626b\uff0cApp\u89c2\u770b\u66f4\u4fbf\u6377\uff01"
),
_.Tb(),
_.Ub(8, "div", 75),
_.bc("click", function () {
return _.Ac(t), _.ec(3).toAppPage();
}),
_.Pb(9, "i", 76),
_.Ic(10, de, 1, 0, "i", 77),
_.Ic(11, he, 1, 0, "i", 78),
_.Kc(12),
_.Pb(13, "i", 66),
_.Tb(),
_.Ub(14, "div", 79),
_.Kc(15),
_.Tb(),
_.Tb(),
_.Tb(),
_.Ub(16, "div", 80),
_.Ub(17, "i", 81),
_.bc("click", function () {
return _.Ac(t), (_.ec(3).showBox = !1);
}),
_.Tb(),
_.Tb(),
_.Tb(),
_.Tb();
}
if (2 & t) {
const t = _.ec(3);
_.Cb(4),
_.lc("src", t.qrHost + t.link, _.Dc),
_.Cb(5),
_.lc("ngClass", _.qc(6, pe, t.isAdult)),
_.Cb(1),
_.lc("ngIf", !t.isAdult),
_.Cb(1),
_.lc("ngIf", !t.isAdult),
_.Cb(1),
_.Mc(
" ",
t.isAdult ? "\u4e0b\u8f7d\u5b89\u5353App" : "\u4e0b\u8f7dApp",
" "
),
_.Cb(3),
_.Mc(
" ",
t.isAdult
? "\u6ca1\u6709App\uff1f \u7acb\u5373\u4e0b\u8f7d"
: "\u6ca1\u6709App\uff1f \u626b\u7801\u7acb\u5373\u4e0b\u8f7d",
" "
);
}
}
function be(t, e) {
if (1 & t) {
const t = _.Vb();
_.Ub(0, "div", 59, 60),
_.Ub(2, "div", 61),
_.bc("click", function () {
return _.Ac(t), _.ec(2).toggleBox();
}),
_.Ub(3, "div", 62),
_.Ic(4, re, 1, 0, "div", 63),
_.Ic(5, le, 1, 0, "div", 64),
_.Tb(),
_.Ub(6, "div"),
_.Ic(7, _e, 2, 0, "span", 12),
_.Ic(8, ge, 2, 0, "span", 12),
_.Tb(),
_.Tb(),
_.Ic(9, ue, 18, 8, "div", 65),
_.Tb();
}
if (2 & t) {
const t = _.ec(2);
_.Cb(4),
_.lc("ngIf", !t.isAdult),
_.Cb(1),
_.lc("ngIf", t.isAdult),
_.Cb(2),
_.lc("ngIf", !t.isAdult),
_.Cb(1),
_.lc("ngIf", t.isAdult),
_.Cb(1),
_.lc("ngIf", t.showBox);
}
}
const me = function (t, e, i) {
return { active: t, iconzan: e, iconzanshixin: i };
},
fe = function (t) {
return { active: t };
},
Pe = function (t, e, i) {
return { active: t, iconcai: e, iconcaishixin: i };
},
ve = function (t, e, i) {
return { iconshoucang: t, iconshoucangshixin: e, active: i };
};
function Ce(t, e) {
if (1 & t) {
const t = _.Vb();
_.Ub(0, "div", 5),
_.Ub(1, "button", 6),
_.bc("click", function () {
return _.Ac(t), _.ec().showComments();
}),
_.Ub(2, "div", 7),
_.Ub(3, "div", 8),
_.Pb(4, "div", 9),
_.Tb(),
_.Ub(5, "div", 10),
_.Ic(6, qt, 3, 3, "span", 11),
_.Ic(7, jt, 2, 0, "span", 12),
_.Tb(),
_.Tb(),
_.Tb(),
_.Ub(8, "button", 13),
_.Ub(9, "div", 14),
_.bc("click", function () {
return _.Ac(t), _.ec().like();
}),
_.Ub(10, "div", 8),
_.Pb(11, "div", 15),
_.Tb(),
_.Ub(12, "div", 16),
_.Ic(13, Vt, 3, 3, "span", 17),
_.Ic(14, Nt, 2, 0, "span", 18),
_.Tb(),
_.Tb(),
_.Tb(),
_.Ub(15, "button", 19),
_.Ub(16, "div", 14),
_.bc("click", function () {
return _.Ac(t), _.ec().dislike();
}),
_.Ub(17, "div", 8),
_.Pb(18, "div", 15),
_.Tb(),
_.Ub(19, "div", 16),
_.Ic(20, Ht, 3, 3, "span", 17),
_.Ic(21, Ft, 2, 0, "span", 18),
_.Tb(),
_.Tb(),
_.Tb(),
_.Ub(22, "button", 20),
_.Ub(23, "div", 14),
_.bc("click", function () {
return _.Ac(t), _.ec().favorite();
}),
_.Ub(24, "div", 8),
_.Pb(25, "div", 15),
_.Tb(),
_.Ub(26, "div", 16),
_.Ic(27, $t, 3, 3, "span", 11),
_.Ic(28, Gt, 2, 0, "span", 12),
_.Tb(),
_.Tb(),
_.Tb(),
_.Ub(29, "button", 21),
_.Ub(30, "div", 14),
_.bc("click", function () {
return _.Ac(t), _.ec().share();
}),
_.Ub(31, "div", 8),
_.Pb(32, "div", 22),
_.Tb(),
_.Ub(33, "div"),
_.Ic(34, Qt, 2, 0, "span", 12),
_.Ic(35, Yt, 3, 3, "span", 11),
_.Tb(),
_.Tb(),
_.Tb(),
_.Ic(36, ce, 26, 39, "div", 23),
_.Ub(37, "button", 24),
_.Ub(38, "div", 14),
_.bc("click", function () {
return _.Ac(t), _.ec().openReport();
}),
_.Ub(39, "div", 8),
_.Pb(40, "div", 25),
_.Tb(),
_.Ub(41, "div", 26),
_.Ub(42, "span", 27),
_.Kc(43, "\u53cd\u9988"),
_.Tb(),
_.Tb(),
_.Tb(),
_.Tb(),
_.Ub(44, "button", 28),
_.Ub(45, "div", 14),
_.bc("click", function () {
return _.Ac(t), _.ec().openVideoDowanload();
}),
_.Ub(46, "div", 8),
_.Pb(47, "div", 29),
_.Tb(),
_.Ub(48, "div", 26),
_.Ub(49, "span", 27),
_.Kc(50, "\u79bb\u7ebf\u770b"),
_.Tb(),
_.Tb(),
_.Tb(),
_.Tb(),
_.Ic(51, be, 10, 5, "div", 30),
_.Tb();
}
if (2 & t) {
const t = _.ec();
_.Cb(6),
_.lc("ngIf", t.commentsCount > 0),
_.Cb(1),
_.lc("ngIf", 0 === t.commentsCount),
_.Cb(4),
_.lc(
"ngClass",
_.sc(
18,
me,
t.video.userBehaviors.like,
!t.video.userBehaviors.like,
t.video.userBehaviors.like
)
),
_.Cb(1),
_.lc("ngClass", _.qc(22, fe, t.video.userBehaviors.like)),
_.Cb(1),
_.lc("ngIf", t.video.userData.like),
_.Cb(1),
_.lc("ngIf", !t.video.userData.like),
_.Cb(4),
_.lc(
"ngClass",
_.sc(
24,
Pe,
t.video.userBehaviors.dislike,
!t.video.userBehaviors.dislike,
t.video.userBehaviors.dislike
)
),
_.Cb(1),
_.lc("ngClass", _.qc(28, fe, t.video.userBehaviors.dislike)),
_.Cb(1),
_.lc("ngIf", t.video.userData.dislike),
_.Cb(1),
_.lc("ngIf", !t.video.userData.dislike),
_.Cb(4),
_.lc(
"ngClass",
_.sc(
30,
ve,
!t.video.userBehaviors.favorite,
t.video.userBehaviors.favorite,
t.video.userBehaviors.favorite
)
),
_.Cb(1),
_.lc("ngClass", _.qc(34, fe, t.video.userBehaviors.favorite)),
_.Cb(1),
_.lc("ngIf", t.video.userData.favorites),
_.Cb(1),
_.lc("ngIf", !t.video.userData.favorites),
_.Cb(6),
_.lc("ngIf", !t.video.userData.shared),
_.Cb(1),
_.lc("ngIf", t.video.userData.shared),
_.Cb(1),
_.lc("ngIf", t.showShareBox),
_.Cb(15),
_.lc("ngIf", !t.disableAppHover);
}
}
const Oe = function (t) {
return { visibility: t };
};
let Me = (() => {
class t {
constructor(t, e, i, n, o, a, s, c, r, l, g) {
(this._videoService = t),
(this._dnDialogService = e),
(this._favoriteService = i),
(this.pageScrollService = n),
(this._toastService = o),
(this._userService = a),
(this._utility = s),
(this.document = c),
(this._storage = r),
(this.router = l),
(this._purchaseSuccessDialogService = g),
(this.subscriptions = []),
(this.disableFav = !1),
(this.isLive = !1),
(this.likeLoading = !1),
(this.dislikeLoading = !1),
(this.favoriteLoading = !1),
(this.disableAppHover = !0),
(this.userBehaviorEvent = new _.n()),
(this.qrHost = this._utility.GetHost(
"https://img.{Host}/qrcode/?url="
)),
(this.link = this._utility.GetHost(
"https://www.{Host}/app-download"
)),
(this.showBox = !1),
(this.openList = null),
(this.showShareBox = !1),
(this.openShareList = null),
(this.siteName = this._utility.getSiteConfig.title),
(this.commentsCount = 0),
(this.mediaTitle = ""),
(this.danmuChatRoomControl = 1),
(this.unsub = null),
(this.tagList = []);
}
ngOnInit() {
this.subscriptions.push(
this._userService.userState$.subscribe((t) => {
(this.user = t), this.readState();
}),
this._purchaseSuccessDialogService.purchaseSuccessDialogSource$.subscribe(
(t) => {
0 !== Object.keys(t).length &&
((this.video.userData.favorites =
this.video.userData.favorites + 1),
this.userBehaviorEvent.emit("favorite"),
this._favoriteService.changeFavoriteStatus(void 0));
}
)
);
}
readState() {
this.user &&
this.user.id &&
this._favoriteService.favoriteStatusSource$.subscribe((t) => {
"all" === t &&
((this.video.userBehaviors.favorite = !1),
this.video.userData.favorites--);
});
}
like() {
this.user && this.user.id
? this.likeLoading ||
((this.likeLoading = !0),
this.subscriptions.push(
this._videoService.like(this.video.id).subscribe((t) => {
(this.likeLoading = !1),
t.message
? this._dnDialogService.open("message-dialog", {
message: t.message,
})
: (this.userBehaviorEvent.emit(
Object.assign({ name: "likeStatus" }, t[0])
),
this._toastService.showBlackToast(
"\u9012\u4ea4\u6210\u529f\uff01"
));
})
))
: this._dnDialogService.open("login-required-dialog");
}
dislike() {
this.user && this.user.id
? this.dislikeLoading ||
((this.dislikeLoading = !0),
this.subscriptions.push(
this._videoService.dislike(this.video.id).subscribe((t) => {
(this.dislikeLoading = !1),
t.message
? this._dnDialogService.open("message-dialog", {
message: t.message,
})
: (this.userBehaviorEvent.emit(
Object.assign({ name: "likeStatus" }, t[0])
),
this._toastService.showBlackToast(
"\u9012\u4ea4\u6210\u529f\uff01"
));
})
))
: this._dnDialogService.open("login-required-dialog");
}
sharedEventHandler(t) {
this._videoService.share(this.video.id).subscribe();
}
share() {
this.getTagList(this.video),
(this.showShareBox = !this.showShareBox),
this.showShareBox
? setTimeout(() => {
this.openShareList = this._utility.openList(
this.shareBox.nativeElement,
null,
(t) => {
this.openShareList.unsubscribe(),
(this.showShareBox = !1);
}
);
}, 10)
: this.openShareList && this.openShareList.unsubscribe();
}
favorite() {
!0 !== this.favoriteLoading &&
(this.user && this.user.id
? ((this.favoriteLoading = !0),
this.video.userBehaviors.favorite
? this._favoriteService
.removeFavoritesItem(this.user, this.video.id)
.subscribe((t) => {
401 != t.code &&
((this.video.userBehaviors.favorite = !1),
(this.video.userData.favorites =
this.video.userData.favorites - 1),
this._toastService.showBlackToast(
"\u5df2\u53d6\u6d88\u6536\u85cf\uff01"
),
this._favoriteService.changeFavoriteStatus(void 0)),
(this.favoriteLoading = !1);
})
: this._videoService
.favorite(this.user, this.video.id)
.subscribe((t) => {
401 != t.code &&
((this.video.userData.favorites =
this.video.userData.favorites + 1),
this.userBehaviorEvent.emit("favorite"),
this._toastService.showBlackToast(
"\u6536\u85cf\u6210\u529f\uff01"
),
this._favoriteService.changeFavoriteStatus(void 0)),
(this.favoriteLoading = !1);
}))
: this._dnDialogService.open("login-required-dialog"));
}
download() {
this._dnDialogService.open("message-dialog", {
message: "\u8be5\u5f71\u7247\u6682\u65f6\u4e0d\u53ef\u4e0b\u8f7d",
});
}
openVideoDowanload() {
this._dnDialogService.open("not-allow-video-download-dialog");
}
showComments() {
this.pageScrollService.scroll({
document: this.document,
duration: 400,
scrollOffset: 60,
scrollTarget: "#commentsArea",
});
}
ngOnDestroy() {
this.subscriptions.forEach((t) => t.unsubscribe()),
null != this.unsub && this.unsub();
}
toggleBox() {
(this.showBox = !this.showBox),
this.showBox
? (this.openList = this._utility.openList(
this.appBox.nativeElement,
null,
(t) => {
this.openList.unsubscribe(), (this.showBox = !1);
}
))
: this.openList && this.openList.unsubscribe();
}
toAppPage() {
(this._utility.getSiteConfig.enableIOSDonwload ||
this._utility.getSiteConfig.enableAndroidDownload) &&
this._utility.getWindow().open("/app-download", "_blank");
}
openReport() {
this.user && this.user.id
? this._storage.GetCookie("report_breaktime")
? this._toastService.showBlackToast(
"\u8bf7\u4f11\u606f\u4e00\u4f1a\u513f\u518d\u4f7f\u7528\u53cd\u9988\u3002"
)
: this._dnDialogService.open("report-in-play-page-dialog", {
videoData: this.video,
mediaTitle: this.mediaTitle,
})
: this._dnDialogService.open("login-required-dialog");
}
cidMapperArray(t) {
return t ? t.split(",") : [];
}
getTagList(t) {
if (((this.tagList = []), "top" === t.cid)) return;
const e = this.cidMapperArray(t.cidMapper);
this.tagList.push(e.length > 1 ? e[0] : t.genre),
e.length > 2 && this.tagList.push(e[1]),
e.length > 3 && this.tagList.push(e[2]),
this.tagList.push(t.region),
this.tagList.push(t.published),
this.tagList.push(t.language);
}
}
return (
(t.ɵfac = function (e) {
return new (e || t)(
_.Ob(E.a),
_.Ob(d.a),
_.Ob(m.a),
_.Ob(L.a),
_.Ob(Kt.a),
_.Ob(U.a),
_.Ob(P.a),
_.Ob(n.d),
_.Ob(C.a),
_.Ob(a.d),
_.Ob(f.a)
);
}),
(t.ɵcmp = _.Ib({
type: t,
selectors: [["app-video-user-data-bar"]],
viewQuery: function (t, e) {
if ((1 & t && (_.Qc(Wt, 1), _.Qc(zt, 1)), 2 & t)) {
let t;
_.wc((t = _.cc())) && (e.appBox = t.first),
_.wc((t = _.cc())) && (e.shareBox = t.first);
}
},
inputs: {
video: "video",
disableFav: "disableFav",
isLive: "isLive",
commentsCount: "commentsCount",
mediaTitle: "mediaTitle",
danmuChatRoomControl: "danmuChatRoomControl",
},
outputs: { userBehaviorEvent: "userBehaviorEvent" },
decls: 5,
vars: 5,
consts: [
[1, "user-data-bar", "d-flex", "align-items-center"],
["class", "d-flex align-items-center user-data-inner", 4, "ngIf"],
[1, "flex-1", "d-flex", "align-items-center", 3, "ngStyle"],
[1, "flex-1"],
[3, "vgFor"],
[1, "d-flex", "align-items-center", "user-data-inner"],
[
"aria-label",
"\u8bc4\u8bba",
"title",
"\u70b9\u8bc4",
1,
"ico",
"comment",
3,
"click",
],
[1, "d-flex", "align-items-center"],
[1, "icon-container", "cus-mr"],
[1, "iconfont", "iconpinglun"],
[1, ""],
["class", "icon-text notranslate", 4, "ngIf"],
["class", "icon-text", 4, "ngIf"],
[
"aria-label",
"\u70b9\u8d5e",
"title",
"\u8d5e\u4e00\u4e2a",
1,
"ico",
],
[1, "d-flex", "align-items-center", 3, "click"],
[1, "iconfont", 3, "ngClass"],
[3, "ngClass"],
["class", "notranslate", 4, "ngIf"],
[4, "ngIf"],
[
"aria-label",
"\u70b9\u8e29",
"title",
"\u8e29\u4e00\u4e0b",
1,
"ico",
],
["aria-label", "\u6536\u85cf", "title", "\u6536\u85cf", 1, "ico"],
["aria-label", "\u5206\u4eab", "title", "\u5206\u4eab", 1, "ico"],
[1, "iconfont", "iconfenxiang"],
["class", "hovered-share-box", 3, "ngClass", 4, "ngIf"],
[
"aria-label",
"\u53cd\u9988",
"title",
"\u53cd\u9988",
1,
"ico",
"report-icon",
],
[1, "iconfont", "iconbangzhu"],
[1, "hideInSmall"],
[1, "icon-text"],
["aria-label", "\u4e0b\u8f7d", "title", "\u4e0b\u8f7d", 1, "ico"],
[1, "iconfont", "iconlixianhuancun1"],
["class", "app-hover", 4, "ngIf"],
[1, "icon-text", "notranslate"],
[1, "notranslate"],
[1, "hovered-share-box", 3, "ngClass"],
["shareBox", ""],
[1, "share-box-inner"],
[1, "share-box-top"],
[1, "share-content"],
[1, "share-cover", 3, "ngClass"],
[
"class",
"cover-path",
"loading",
"lazy",
3,
"src",
"alt",
4,
"ngIf",
],
[1, "share-info"],
[1, "share-title", 3, "title", "ngClass"],
[1, "share-data", 3, "ngClass"],
["class", "d-flex align-items-center mr-1", 4, "ngIf"],
[1, "d-inline-flex", "align-items-center"],
[
1,
"iconfont",
"iconrenqi",
"d-block",
"mr-1",
2,
"font-size",
"18px",
"color",
"#fe6f71",
],
[1, "mr-0", "fs-14"],
["class", "rate", 4, "ngIf"],
[1, "share-context", 3, "ngClass"],
[1, "share-box-bottom"],
[
1,
"w-100",
3,
"isHorizontal",
"title",
"url",
"id",
"image",
"isNews",
"tagList",
"hot",
"score",
"scoreLabel",
"sharedEvent",
],
["loading", "lazy", 1, "cover-path", 3, "src", "alt"],
[1, "d-flex", "align-items-center", "mr-1"],
["class", "tag", 4, "ngFor", "ngForOf"],
[1, "tag"],
[1, "rate"],
["class", "value", 4, "ngIf"],
[1, "rate-label"],
[1, "value"],
[1, "app-hover"],
["appBox", ""],
[
1,
"d-flex",
"align-items-center",
"justify-content-center",
"hover-button",
3,
"click",
],
[1, "icon-container", "align-items-center"],
["class", "iconfont iconzhengzaixiazai", 4, "ngIf"],
["class", "iconfont iconshouji mr-1", 4, "ngIf"],
["class", "hovered-box", 4, "ngIf"],
[1, "iconfont", "iconzhengzaixiazai"],
[1, "iconfont", "iconshouji", "mr-1"],
[1, "hovered-box"],
[1, "box-inner"],
[1, "box-mid"],
[1, "box-content"],
["alt", "\u7f51\u5740\u4e8c\u7ef4\u7801", 1, "qr-path", 3, "src"],
[1, "box-content", "with-label"],
[1, "box-text"],
[1, "dl-label", 3, "click"],
[1, "iconfont", "iconanzhuo", 3, "ngClass"],
["class", "iconfont iconWindows", 4, "ngIf"],
["class", "iconfont iconTVDUAN", 4, "ngIf"],
[1, "box-text-footer"],
[1, "box-close"],
[1, "iconfont", "iconguanbi", 3, "click"],
[1, "iconfont", "iconWindows"],
[1, "iconfont", "iconTVDUAN"],
],
template: function (t, e) {
1 & t &&
(_.Ub(0, "div", 0),
_.Ic(1, Ce, 52, 36, "div", 1),
_.Ub(2, "div", 2),
_.Pb(3, "div", 3),
_.Pb(4, "app-danmu-input", 4),
_.Tb(),
_.Tb()),
2 & t &&
(_.Cb(1),
_.lc("ngIf", e.video),
_.Cb(1),
_.lc(
"ngStyle",
_.qc(
3,
Oe,
1 !== e.danmuChatRoomControl ? "hidden" : "visible"
)
),
_.Cb(2),
_.lc("vgFor", "video_player"));
},
directives: [n.n, n.o, Bt.a, n.l, Rt.a, n.m],
pipes: [Y.a, St.a],
styles: [
".user-data-bar[_ngcontent-%COMP%]{position:relative;font-size:15px;line-height:30px;background-color:#1c1d2f;padding:7px 18px 7px 12px;min-height:65px}.icon-container[_ngcontent-%COMP%]{height:30px;width:30px;text-align:center;display:flex;justify-content:center}.dn-icon[_ngcontent-%COMP%]{font-size:25px;margin:0 auto 2px;cursor:pointer}.seprator-overlay[_ngcontent-%COMP%]{z-index:-1}.ico[_ngcontent-%COMP%]{position:relative;cursor:pointer;flex:1;white-space:nowrap;margin-right:1.5em;color:#fff6;background-color:initial;border:none;outline:none}.ico[_ngcontent-%COMP%] .iconfont[_ngcontent-%COMP%]{font-size:32px}.ico[_ngcontent-%COMP%]:hover .dn-icon[_ngcontent-%COMP%], .ico[_ngcontent-%COMP%]:hover div[_ngcontent-%COMP%]{color:#00c0ff}.ico[_ngcontent-%COMP%]:active{transform:translateY(1px)}.ico.small[_ngcontent-%COMP%]{flex:0}.ico[_ngcontent-%COMP%]:last-child{margin-right:0}.active[_ngcontent-%COMP%]{color:#00c0ff}.sec-first[_ngcontent-%COMP%], .sec-last[_ngcontent-%COMP%], .sec-second[_ngcontent-%COMP%]{width:33%}.seprator[_ngcontent-%COMP%]{height:30px;width:1px;background-color:#ddd}.sec-center[_ngcontent-%COMP%]{border-left:1px solid #ddd;border-right:1px solid #ddd}.icon-favorite[_ngcontent-%COMP%]{margin-top:-2px}.favorited[_ngcontent-%COMP%]{position:absolute;font-size:13px;background-color:red;line-height:18px;color:#fff;top:2px;padding:1px 2px;right:0;border:1px solid red}.ico[_ngcontent-%COMP%]{font-size:12px}@media (max-width:1911px){.user-data-inner[_ngcontent-%COMP%]{width:420px}.user-data-inner[_ngcontent-%COMP%] .ico.comment[_ngcontent-%COMP%]{display:none}}.app-hover[_ngcontent-%COMP%]{position:relative}.hover-button[_ngcontent-%COMP%]{font-size:12px;width:72px;height:24px;line-height:24px;border-radius:2px;cursor:pointer;background:linear-gradient(45deg,#5562a0 45%,#b687c3);color:#fff!important}.hover-button[_ngcontent-%COMP%] .icon-container[_ngcontent-%COMP%]{width:auto;height:auto;margin-right:2px}.hover-button[_ngcontent-%COMP%] .iconfont[_ngcontent-%COMP%]{font-size:16px}.hover-button[_ngcontent-%COMP%] .icon-text[_ngcontent-%COMP%]{white-space:nowrap;margin-right:2px}.hovered-box[_ngcontent-%COMP%]{display:block;width:305px;height:130px;border-radius:0;position:absolute;left:-108px;top:-154px;z-index:4599;background-color:#2b2c3a}.box-inner[_ngcontent-%COMP%]{padding:10px;display:flex;flex-direction:column;justify-content:center;align-items:center}.box-mid[_ngcontent-%COMP%]{width:100%;margin:10px 0;display:flex;justify-content:space-around}.box-content[_ngcontent-%COMP%]{width:90px;height:90px}.box-content.with-label[_ngcontent-%COMP%]{width:auto;display:flex;flex-direction:column;justify-content:space-between;align-items:center}.box-text[_ngcontent-%COMP%]{color:#fff}.box-text[_ngcontent-%COMP%], .box-text-footer[_ngcontent-%COMP%]{text-align:center;font-size:12px}.box-text-footer[_ngcontent-%COMP%]{color:#fff6}.dl-label[_ngcontent-%COMP%]{font-size:14px;border-radius:14px;background:linear-gradient(45deg,#5562a0 10%,#b687c3);cursor:pointer;position:relative;width:164px;height:29px;display:flex;justify-content:space-around;align-items:center;padding:0 2px 0 4px;margin:2px 0}.dl-label[_ngcontent-%COMP%], .dl-label[_ngcontent-%COMP%] .iconfont[_ngcontent-%COMP%]{color:#fff}.dl-label[_ngcontent-%COMP%] .iconfont.iconanzhuo[_ngcontent-%COMP%]{font-size:16px;color:#b2ff9d}.dl-label[_ngcontent-%COMP%] .iconfont.iconanzhuo.wy[_ngcontent-%COMP%]{font-size:18px;color:#61db32}.dl-label[_ngcontent-%COMP%] .iconfont.iconWindows[_ngcontent-%COMP%]{font-size:16px;color:#9ee7ff}.dl-label[_ngcontent-%COMP%] .iconfont.iconTVDUAN[_ngcontent-%COMP%]{font-size:16px;color:#a5ffdc}.dl-label[_ngcontent-%COMP%] .iconfont.iconzhengzaixiazai[_ngcontent-%COMP%]{font-size:18px}.qr-path[_ngcontent-%COMP%]{width:100%;height:100%}.box-close[_ngcontent-%COMP%]{position:absolute;right:6px;top:0}.box-close[_ngcontent-%COMP%] .iconfont[_ngcontent-%COMP%]{cursor:pointer;font-size:18px;color:#ffffffb3}.box-close[_ngcontent-%COMP%] .iconfont[_ngcontent-%COMP%]:hover{color:#fff}.cus-mr[_ngcontent-%COMP%]{margin-right:.5rem}.hovered-share-box[_ngcontent-%COMP%]{display:block;width:575px;height:280px;border-radius:0;position:absolute;left:75px;top:-275px;z-index:4599;background-color:#1c1d2f;box-shadow:2px 2px 1px 0 #00000057}.hovered-share-box.drama[_ngcontent-%COMP%]{height:317px;top:-312px}.share-box-inner[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center}.share-box-top[_ngcontent-%COMP%]{padding:18px;width:100%;display:flex;justify-content:space-between}.share-box-bottom[_ngcontent-%COMP%]{padding:18px;height:112px;width:100%;position:absolute;bottom:0;background-color:#090b21}.share-content[_ngcontent-%COMP%]{display:flex}.share-cover[_ngcontent-%COMP%]{width:228px;height:135px;overflow:hidden;border-radius:8px;background-color:#2b2c3a}.share-cover.drama[_ngcontent-%COMP%]{width:120px;height:172px}.share-cover[_ngcontent-%COMP%] .cover-path[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover}.share-info[_ngcontent-%COMP%]{margin-left:15px;display:flex;flex-direction:column}.share-title[_ngcontent-%COMP%]{font-size:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:290px}.share-title.drama[_ngcontent-%COMP%]{margin-top:10px;width:400px}.share-data[_ngcontent-%COMP%]{line-height:21px;height:25px;margin:10px 0;display:flex;align-items:center}.share-data.drama[_ngcontent-%COMP%]{margin-bottom:30px}.tag[_ngcontent-%COMP%]{background-color:#2b2c3a;color:#fff6;padding:.1em 0;width:50px;text-overflow:ellipsis;overflow:hidden;white-space:pre;font-size:14px;margin-right:12px;text-align:center}.rate[_ngcontent-%COMP%]{font-size:14px;align-items:baseline;margin-left:12px}.rate[_ngcontent-%COMP%], .rate[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{color:#ee9d03!important;display:inline-block}.rate[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{font-weight:700;font-size:24px}.rate[_ngcontent-%COMP%] .rate-label[_ngcontent-%COMP%]{color:#ee9d03!important;display:inline-block;line-height:15px;vertical-align:text-top;margin-left:5px!important}.share-context[_ngcontent-%COMP%]{overflow:hidden;width:290px;line-height:21px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;text-overflow:ellipsis;font-size:14px;color:#ffffffb3}.share-context.drama[_ngcontent-%COMP%]{width:400px}@media (max-width:1911px){.ico[_ngcontent-%COMP%]{margin-right:1.5em;flex:unset}.ico[_ngcontent-%COMP%] .iconfont[_ngcontent-%COMP%]{font-size:24px}.ico[_ngcontent-%COMP%] .cus-mr[_ngcontent-%COMP%]{margin-right:0}.ico[_ngcontent-%COMP%] .hideInSmall[_ngcontent-%COMP%]{display:none}.app-hover[_ngcontent-%COMP%]{margin-left:.5rem}}@media (min-width:1679px) and (max-width:1911px){.user-data-bar[_ngcontent-%COMP%]{padding:3px 18px 3px 12px;min-height:56px}}@media (max-width:1678px){.user-data-bar[_ngcontent-%COMP%]{padding:0 18px 0 12px;min-height:45px}}",
],
})),
t
);
})();
var xe = i("7DwK"),
Ee = i("2Vo4"),
ye = i("5yqk"),
De = i("tRdC"),
Te = i("NHcN");
let Ie = (() => {
class t {
constructor(t, e, i, n, o) {
(this._apiUrlHelper = t),
(this._httpClientHelper = e),
(this._notifyService = i),
(this._utility = n),
(this._socketio = o),
(this.server = this._utility.GetHost("https://chat.{Host}")),
(this.connected$ = new Ee.a("")),
(this.observers = []),
(this.onnect = new _.n()),
(this.connectionHash = null),
(this.subscriptions = []),
(this.join$ = this.on(De.a.JoinVideoRoom).pipe()),
(this.leave$ = this.on(De.a.LeaveVideoRoom).pipe()),
(this.sendMessage$ = this.on(De.a.SendBarrage).pipe()),
(this.userMultiLogin$ = this.on(De.a.UserLiveTest).pipe()),
this.notLoginListen();
}
connect(t, e) {
this._socketio.getOrCreateSocket(0).then((t) => {
(this.socket = t),
this.socket.on("connect", () => {
var t = Math.random();
this.connected$.next(this.server),
this.observers.forEach((e) => {
e.hash != t &&
(this.socket.removeListener(e.name),
this.socket.on(e.name, (t) => {
e.observer.next(t);
}),
(e.hash = t));
}),
(this.connectionHash = t),
this.onnect.next("connected"),
setTimeout(() => {
this.join(e);
}, 1e3);
}),
this.socket.on("disconnect", () => {
this.connected$.next(void 0);
});
});
}
authorize(t, e) {}
join(t) {
this.emit("joinVideoRoom", { uniqueKey: t });
}
leave(t) {
this.emit("leaveVideoRoom", { uniqueKey: t });
}
disconnect() {
this.socket && this.socket.disconnect();
}
emit(t, e) {
this.socket && this.socket.emit(t, e);
}
listenFromChatService(t) {
var e = this.observers.find((e) => e.name == t.action);
return (
null == e &&
(((e = new we()).name = t.action),
(e.observer = new _.n()),
this.observers.push(e)),
e.hash != this.connectionHash &&
((e.hash = this.connectionHash),
this.socket.on(t.action, (t) => {
e.observer.next(t);
})),
e.observer
);
}
listen(t) {
const e = this.listenFromChatService({ action: t });
return this.subscriptions.push(e.subscribe((t) => {})), e;
}
on(t) {
const e = this._notifyService.on({
action: t,
data: null,
code: 0,
});
return this.subscriptions.push(e.subscribe((t) => {})), e;
}
sendMessage(t, e) {
this.roomId = e;
const i = this._apiUrlHelper.urlBuilder(
"send-barrage",
{ uniqueKey: this.roomId },
this._utility.isNews ? "NEWS_ENDPOINT" : ""
);
return this._httpClientHelper.post(i, { contxt: t, type: 1 }, null);
}
ngOnDestroy() {
this.subscriptions.forEach((t) => t.unsubscribe());
}
notLoginListen() {
(this.notLoginJoin$ = this.listen(De.a.JoinVideoRoom).pipe()),
(this.notLoginLeave$ = this.listen(De.a.LeaveVideoRoom).pipe()),
(this.notLoginMessage$ = this.listen(De.a.SendBarrage).pipe());
}
}
return (
(t.ɵfac = function (e) {
return new (e || t)(
_.Yb(T.a),
_.Yb(y.a),
_.Yb(ye.a),
_.Yb(P.a),
_.Yb(Te.a)
);
}),
(t.ɵprov = _.Kb({ token: t, factory: t.ɵfac, providedIn: "root" })),
t
);
})();
class we {}
var Ue = i("Y7a1"),
Le = i("dOYE"),
ke = i("N9ew"),
Ae = i("BXbW"),
Ke = i("UnVO"),
Be = i("ELgw"),
Re = i("3Pt+"),
Se = i("l7P3");
let We = (() => {
class t {
constructor(t, e, i) {
(this.elRef = t),
(this.sanitizer = e),
(this._dnEmojiService = i),
(this.contenteditableModelChange = new _.n()),
(this.contenteditableHtml = !1);
}
ngOnChanges(t) {
t.contenteditableModel &&
(t.contenteditableModel.isFirstChange() &&
!this.contenteditableModel &&
this.onInput(!0),
this.refreshView());
}
onInput(t = !1) {
let e = this.elRef.nativeElement[this.getProperty()];
t &&
((e = e.replace(/^[\n\s]+/, "")),
(e = e.replace(/[\n\s]+$/, ""))),
this.contenteditableModelChange.emit(e);
}
onPaste(t) {
t.preventDefault();
let e = t.clipboardData.getData("text/html");
e = this._dnEmojiService.emojiHtml2String(e);
const i = document.createElement("html");
(i.innerHTML = e),
(e = i.innerText
.replace(/^[\n\s]+/, "")
.replace(/[\n\s]+$/, "")
.replace(/\u00a0/g, " ")),
(e = this._dnEmojiService.emojiString2Html(e)),
document.execCommand("insertHTML", !0, e);
}
refreshView() {
const t = this.sanitize(this.contenteditableModel);
t !== this.elRef.nativeElement[this.getProperty()] &&
(this.elRef.nativeElement[this.getProperty()] = t);
}
getProperty() {
return "innerHTML";
}
sanitize(t) {
return this.contenteditableHtml
? this.sanitizer.sanitize(_.I.HTML, t)
: t;
}
}
return (
(t.ɵfac = function (e) {
return new (e || t)(_.Ob(_.l), _.Ob(_.H), _.Ob(Ae.a));
}),
(t.ɵdir = _.Jb({
type: t,
selectors: [["", "contenteditableModel", ""]],
hostBindings: function (t, e) {
1 & t &&
_.bc("input", function () {
return e.onInput();
})("blur", function () {
return e.onInput();
})("keyup", function () {
return e.onInput();
})("paste", function (t) {
return e.onPaste(t);
});
},
inputs: {
contenteditableModel: "contenteditableModel",
contenteditableHtml: "contenteditableHtml",
},
outputs: {
contenteditableModelChange: "contenteditableModelChange",
},
features: [_.Ab],
})),
t
);
})();
var ze = i("08EM"),
qe = i("mJNP");
const je = ["msgEditor"],
Ve = ["LiveChatEmojiPicker"],
Ne = ["scrollContainer"],
He = function (t) {
return { bigv: t };
};
function Fe(t, e) {
if ((1 & t && _.Pb(0, "app-membership-icon", 29), 2 & t)) {
const t = _.ec().$implicit,
e = _.ec();
_.lc("ngClass", _.qc(4, He, t.IsOfficalUP))(
"membership",
t.IsOfficalUP ? "bigV" : e.getMembership(t.gid)
)("noText", !0)("newIcon", !0);
}
}
function $e(t, e) {
if (
(1 & t &&
(_.Ub(0, "div", 25),
_.Ic(1, Fe, 1, 6, "app-membership-icon", 26),
_.Ub(2, "span", 27),
_.Kc(3),
_.Tb(),
_.Pb(4, "span", 28),
_.Tb()),
2 & t)
) {
const t = e.$implicit;
_.Cb(1),
_.lc("ngIf", t.gid > 0),
_.Cb(2),
_.Mc(" ", t.nickName, " : "),
_.Cb(1),
_.lc("innerHtml", t.processContext, _.Bc);
}
}
function Ge(t, e) {
if (1 & t) {
const t = _.Vb();
_.Ub(0, "app-emoji-box", 30),
_.bc("close", function () {
return _.Ac(t), (_.ec().showEmojiPicker = !1);
}),
_.Tb();
}
2 & t && _.lc("isLive", !0);
}
const Qe = function (t) {
return { compact: t };
},
Ye = function (t) {
return { "not-allowed": t };
};
let Xe = (() => {
class t {
constructor(t, e, i, n, o, a, s, c, r, l) {
(this._userService = t),
(this._formBuilder = e),
(this._emojiPickerService = i),
(this.cdRef = n),
(this._dnEmojiService = o),
(this.liveChatSocketService = a),
(this._route = s),
(this._dnDialogService = c),
(this._utility = r),
(this.store = l),
(this.onlineUser = 0),
(this.msgList = []),
(this.message = ""),
(this.notAllowedChat = !1),
(this.isSending = !1),
(this.unsub = null),
(this.showEmojiPicker = !1),
(this.openList = null),
(this.subscriptions = []),
(this.uniqueKey = ""),
(this.notifySubscription = []),
(this.isConnecting = !1),
(this.currentKey = ""),
(this.lowerHeight = !1),
(this.chatForm = this._formBuilder.group({}));
}
ngOnInit() {
this.subscriptions.push(
this._emojiPickerService.emojiSource$.subscribe((t) => {
t &&
t.hasOwnProperty("id") &&
(Object(Be.a)(this.savedSelection),
this.pasteHtmlAtCaret(Object.assign(new Le.a(), t).html, !1),
this._emojiPickerService.selectEmoji(null),
(this.showEmojiPicker = !1));
}),
this.liveChatSocketService.join$.subscribe((t) => {
this.onlineUser = t.onlineCount;
}),
this.liveChatSocketService.leave$.subscribe((t) => {
this.onlineUser = t.onlineCount;
}),
this.liveChatSocketService.sendMessage$.subscribe((t) => {
1 === t.type &&
(this.msgList.push(t),
setTimeout(() => {
this.naviToBottom();
}, 50));
}),
this.liveChatSocketService.userMultiLogin$.subscribe((t) => {
console.log(t);
}),
this._userService.userState$.subscribe((t) => {
(this.user = t), this.readState();
})
),
(this.currentKey = this.uniqueKey);
}
ngOnChanges(t) {
t.uniqueKey &&
"" !== this.currentKey &&
this.currentKey !== this.uniqueKey &&
((this.currentKey = this.uniqueKey),
(this.msgList = []),
null === this.user.id &&
this.liveChatSocketService.join(this.currentKey));
}
ngOnDestroy() {
this.subscriptions.forEach((t) => t.unsubscribe()),
this.liveChatSocketService.disconnect();
}
ngAfterViewInit() {
this.cdRef.detectChanges(),
(this.emojiPickerElem = this.EmojiPicker.nativeElement);
}
readState() {
null === this.user.id &&
this.subscriptions.push(
this._route.params.subscribe((t) => {
this.liveChatSocketService.connect(this.user, this.uniqueKey);
}),
this.liveChatSocketService.notLoginJoin$.subscribe((t) => {
this.onlineUser = t.onlineCount;
}),
this.liveChatSocketService.notLoginLeave$.subscribe((t) => {
this.onlineUser = t.onlineCount;
}),
this.liveChatSocketService.notLoginMessage$.subscribe((t) => {
this.msgList.push(t),
setTimeout(() => {
this.naviToBottom();
}, 50);
})
),
null !== this.user.id && this.liveChatSocketService.disconnect();
}
onChange(t) {}
onFocusIn() {
this.focused = !0;
}
onFocusOut() {
this.focused = !1;
}
onDragOver(t) {
t.preventDefault();
}
onDragLeave(t) {
t.preventDefault();
}
onDrop(t) {
t.preventDefault();
}
onTextAreaBlur() {
this.savedSelection = Object(Be.b)();
}
sendMessageByEnter(t) {
13 === t.keyCode && (t.preventDefault(), this.sendMessage());
}
strip(t) {
const e = document.createElement("DIV");
return (e.innerHTML = t), e.textContent || e.innerText || "";
}
sendMessage() {
if (!this.user.id)
return void this._userService.showLoginDialog(!0);
if (this.notAllowedChat) return;
if (!this.message) return;
if (this.isConnecting)
return (
this._dnDialogService.open("message-dialog", {
message:
"\u6b63\u5728\u8fde\u63a5\u804a\u5929\u5ba4\uff0c\u8bf7\u7a0d\u540e\u518d\u8bd5\u3002",
}),
void this.liveChatSocketService.join(this.uniqueKey)
);
this.message = this.message
.replace(/&nbsp;/g, " ")
.replace(/\u00a0/g, " ")
.replace(/^\s+|\s+$/g, "")
.replace(/<br>/g, "");
const t = this._dnEmojiService
.emojiHtml2String(this.message.trim())
.replace("<div></div>", "");
if (this.isEmpty(t))
return void this._dnDialogService.open("message-dialog", {
message: "\u8bf7\u81f3\u5c11\u8bf4\u70b9\u4ec0\u4e48",
});
if (t.length > 100)
return void this._dnDialogService.open("message-dialog", {
message:
"\u60a8\u53d1\u8868\u7684\u5185\u5bb9\u8fc7\u957f\uff0c\u8bf7\u7b80\u77ed\u53d1\u8a00",
});
const e = new Date().getTime();
if (this.timestamp && e - this.timestamp < 3e3)
return (
this._dnDialogService.open("player-message-dialog", {
size: { width: 360, height: 240 },
message:
"\u804a\u5929\u8f93\u5165\u9891\u7387\u8fc7\u9ad8\uff0c\u8bf7\u7a0d\u5019\u518d\u8bd5\u3002",
}),
void (this.message = "")
);
(this.timestamp = new Date().getTime()),
this.liveChatSocketService
.sendMessage(t, this.uniqueKey)
.subscribe((t) => {
if (t.length > 0) {
let e = {
guid: t[0].guid,
avatar: t[0].avatar,
country: t[0].country,
contxt: t[0].processContext,
color: t[0].color,
font: t[0].font,
isDeleted: 0,
lid: t[0].lid,
nickName: t[0].nickName,
position: t[0].position,
second: t[0].second,
uid: t[0].uid,
vid: t[0].vid,
addTime: t[0].addTime,
prefix: t[0].prefix,
isOfficalUP: t[0].isOfficalUP,
needBorder: !0,
};
this.store.dispatch(new Ue.k(e)),
this._utility.Notify(Ue.a.DANMU_SEND, e);
}
}),
(this.message = "");
}
toggleEmojiPicker() {
(this.showEmojiPicker = !this.showEmojiPicker),
this.showEmojiPicker
? (this.openList = this._utility.openList(
this.emojiPickerElem,
null,
(t) => {
var e;
(t.getAttribute("class") &&
(null === (e = t.getAttribute("class")) || void 0 === e
? void 0
: e.split(" ")
).indexOf("emoji-item") > -1) ||
(this.openList.unsubscribe(),
(this.showEmojiPicker = !1));
}
))
: this.openList && this.openList.unsubscribe();
}
pasteHtmlAtCaret(t, e) {
let i, n;
if (
(this.editorRef.nativeElement.focus(),
window.getSelection &&
((i = window.getSelection()),
i.getRangeAt &&
i.rangeCount &&
((n = i.getRangeAt(0)),
n.commonAncestorContainer.parentNode ===
this.editorRef.nativeElement ||
n.commonAncestorContainer ===
this.editorRef.nativeElement)))
) {
n.deleteContents();
const o = document.createElement("div");
o.innerHTML = t;
const a = document.createDocumentFragment();
let s, c;
for (; (s = o.firstChild); ) c = a.appendChild(s);
const r = a.firstChild;
return (
n.insertNode(a),
void (
c &&
((n = n.cloneRange()),
n.setStartAfter(c),
e ? n.setStartBefore(r) : n.collapse(!0),
i.removeAllRanges(),
i.addRange(n))
)
);
}
}
fixVipSymbol(t) {
if (t) return Ke.a.getGIDResource(t);
}
isEmpty(t) {
let e = t
.replace(/&nbsp;/g, " ")
.replace(/\u00a0/g, " ")
.replace(/^\s+|\s+$/g, "");
return (
(e = this._dnEmojiService.emojiHtml2String(this.message.trim())),
(e = this.strip(e).trim()),
"" === e
);
}
naviToBottom() {
try {
this.sc.nativeElement.scrollTop =
this.sc.nativeElement.scrollHeight;
} catch (t) {}
}
getMembership(t) {
let e = "";
switch (t) {
case 0:
e = "vip";
break;
case 1:
case 2:
e = "gvip";
break;
case 3:
e = "royalVip";
break;
case 4:
case 101:
case 102:
e = "cpvip";
break;
default:
e = "vip";
}
return "royalVip";
}
}
return (
(t.ɵfac = function (e) {
return new (e || t)(
_.Ob(U.a),
_.Ob(Re.c),
_.Ob(ke.a),
_.Ob(_.h),
_.Ob(Ae.a),
_.Ob(Ie),
_.Ob(a.a),
_.Ob(d.a),
_.Ob(P.a),
_.Ob(Se.b)
);
}),
(t.ɵcmp = _.Ib({
type: t,
selectors: [["app-live-chat"]],
viewQuery: function (t, e) {
if ((1 & t && (_.Qc(je, 3), _.Qc(Ve, 1), _.Qc(Ne, 3)), 2 & t)) {
let t;
_.wc((t = _.cc())) && (e.editorRef = t.first),
_.wc((t = _.cc())) && (e.EmojiPicker = t.first),
_.wc((t = _.cc())) && (e.sc = t.first);
}
},
inputs: { uniqueKey: "uniqueKey", lowerHeight: "lowerHeight" },
features: [_.Bb([ke.a, Ie]), _.Ab],
decls: 29,
vars: 14,
consts: [
[1, "live-chat", "w-100", 3, "ngClass"],
[1, "live-chat-header", "d-flex", "align-items-center"],
[1, "live-logo"],
[3, "src"],
[1, "live-title"],
[1, "live-chat-user"],
[1, "live-signol"],
[1, "live-chat-container"],
["scrollContainer", ""],
[1, "live-chat-scrollbar", "scroll-bar"],
["perfectscroll", ""],
[1, "live-chat-inner"],
["class", "live-chat-content", 4, "ngFor", "ngForOf"],
[1, "live-chat-bottom"],
[1, "live-chat-input"],
["id", "chat-input-form", 1, "d-flex", 3, "formGroup"],
[1, "input-area"],
[
"id",
"message-input",
"contenteditable",
"true",
"placeholder",
"\u804a\u4e24\u53e5\u5427~",
3,
"contenteditableModel",
"contenteditableModelChange",
"focusin",
"focusout",
"dragover",
"dragleave",
"drop",
"blur",
"keydown",
],
["msgEditor", ""],
[1, "not-input-area"],
[1, "d-flex", "mr-4", "align-items-center", "emoji-box-trigger"],
["LiveChatEmojiPicker", ""],
[1, "iconfont", "iconbiaoqing", 3, "click"],
["class", "live-chat-emoji", 3, "isLive", "close", 4, "ngIf"],
[
"href",
"javascript:void(0)",
1,
"chat-input_submit",
3,
"ngClass",
"click",
],
[1, "live-chat-content"],
[
"class",
"new-user-vip-icon",
3,
"ngClass",
"membership",
"noText",
"newIcon",
4,
"ngIf",
],
[1, "live-chat-userName", "mr-2"],
[1, "live-chat-message", 3, "innerHtml"],
[
1,
"new-user-vip-icon",
3,
"ngClass",
"membership",
"noText",
"newIcon",
],
[1, "live-chat-emoji", 3, "isLive", "close"],
],
template: function (t, e) {
1 & t &&
(_.Ub(0, "div", 0),
_.Ub(1, "div", 1),
_.Ub(2, "div", 2),
_.Pb(3, "img", 3),
_.fc(4, "absUrl"),
_.Tb(),
_.Ub(5, "div", 4),
_.Kc(6, " \u804a\u5929 "),
_.Ub(7, "span", 5),
_.Kc(8),
_.Tb(),
_.Tb(),
_.Pb(9, "div", 6),
_.Tb(),
_.Ub(10, "div", 7, 8),
_.Ub(12, "div", 9, 10),
_.Ub(14, "div", 11),
_.Ic(15, $e, 5, 3, "div", 12),
_.Tb(),
_.Tb(),
_.Tb(),
_.Ub(16, "div", 13),
_.Ub(17, "div", 14),
_.Ub(18, "form", 15),
_.Ub(19, "div", 16),
_.Ub(20, "div", 17, 18),
_.bc("contenteditableModelChange", function (t) {
return (e.message = t);
})("contenteditableModelChange", function (t) {
return e.onChange(t);
})("focusin", function () {
return e.onFocusIn();
})("focusout", function () {
return e.onFocusOut();
})("dragover", function (t) {
return e.onDragOver(t);
})("dragleave", function (t) {
return e.onDragLeave(t);
})("drop", function (t) {
return e.onDrop(t);
})("blur", function () {
return e.onTextAreaBlur();
})("keydown", function (t) {
return e.sendMessageByEnter(t);
}),
_.Tb(),
_.Tb(),
_.Ub(22, "div", 19),
_.Ub(23, "div", 20, 21),
_.Ub(25, "i", 22),
_.bc("click", function () {
return e.toggleEmojiPicker();
}),
_.Tb(),
_.Ic(26, Ge, 1, 1, "app-emoji-box", 23),
_.Tb(),
_.Ub(27, "a", 24),
_.bc("click", function () {
return e.sendMessage();
}),
_.Kc(28, "\u53d1\u9001 "),
_.Tb(),
_.Tb(),
_.Tb(),
_.Tb(),
_.Tb(),
_.Tb()),
2 & t &&
(_.lc("ngClass", _.qc(10, Qe, e.lowerHeight)),
_.Cb(3),
_.mc(
"src",
_.gc(4, 8, "./assets/images/live-chat-logo.png"),
_.Dc
),
_.Cb(5),
_.Mc("", e.onlineUser, "\u4eba"),
_.Cb(7),
_.lc("ngForOf", e.msgList),
_.Cb(3),
_.lc("formGroup", e.chatForm),
_.Cb(2),
_.lc("contenteditableModel", e.message),
_.Cb(6),
_.lc("ngIf", e.showEmojiPicker),
_.Cb(1),
_.lc("ngClass", _.qc(12, Ye, e.notAllowedChat)));
},
directives: [n.l, n.m, Re.s, Re.k, Re.f, We, n.n, ze.a, qe.a],
pipes: [St.a],
styles: [
'.live-chat[_ngcontent-%COMP%]{background-color:#1c1d2f;height:753px}.live-chat.compact[_ngcontent-%COMP%]{height:366px}.live-chat-header[_ngcontent-%COMP%]{background-color:#2b2c3a;height:42px;padding:0 14px}.live-chat-container[_ngcontent-%COMP%]{height:calc(100% - 42px - 65px);padding:2px 0 2px 14px;overflow:hidden;overflow-y:auto}.live-chat-container[_ngcontent-%COMP%]::-webkit-scrollbar{width:10px;height:auto;background-color:#6666661a!important}.live-chat-container[_ngcontent-%COMP%]::-webkit-scrollbar-track{border-radius:0}.live-chat-container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#6663;-webkit-transition:all .2s;transition:all .2s;border-radius:5px}.live-chat-container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:hover{background-color:#98989833}.live-chat-bottom[_ngcontent-%COMP%]{background-color:#2b2c3a;height:65px;padding-top:6px}.live-chat-bottom[_ngcontent-%COMP%] .live-chat-input[_ngcontent-%COMP%]{height:100%}.live-logo[_ngcontent-%COMP%]{width:36px;height:14px}.live-logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%}.live-title[_ngcontent-%COMP%]{margin:0 10px 0 12px;font-size:14px;color:#fff}.live-title[_ngcontent-%COMP%] .live-chat-user[_ngcontent-%COMP%]{margin-left:8px;color:#00c0ff}.live-signol[_ngcontent-%COMP%]{width:6px;height:6px;border-radius:50%;background-color:#00ff3c}.live-signol.offline[_ngcontent-%COMP%]{background-color:red}.live-chat-inner[_ngcontent-%COMP%]{margin-top:6px}.live-chat-content[_ngcontent-%COMP%]{font-size:14px;line-height:28px;margin-right:14px;margin-bottom:4px;display:flex}.user-vip-icon[_ngcontent-%COMP%]{width:16px;height:14px;float:left;margin-right:4px;margin-top:2px}.user-vip-icon.bigv[_ngcontent-%COMP%]{margin-top:3px}.user-vip-icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%}.new-user-vip-icon[_ngcontent-%COMP%]{float:left;margin-right:4px;margin-top:5px}.new-user-vip-icon.bigv[_ngcontent-%COMP%]{zoom:.8333333333}#chat-input-form[_ngcontent-%COMP%]{position:relative;width:100%;height:100%}.input-area[_ngcontent-%COMP%]{width:calc(100% - 120px);padding:14px}.not-input-area[_ngcontent-%COMP%]{width:120px}#message-input[placeholder][_ngcontent-%COMP%]:empty:before{content:attr(placeholder);color:#fff6}#message-input[placeholder][_ngcontent-%COMP%]:empty:focus:before{content:""}[contenteditable][_ngcontent-%COMP%]{display:flex;height:27px;line-height:27px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;outline:none!important;font-size:14px;color:#fff!important}[contenteditable][_ngcontent-%COMP%] img[_ngcontent-%COMP%]{display:inline}[contenteditable][_ngcontent-%COMP%] br[_ngcontent-%COMP%]{display:none}[contenteditable][_ngcontent-%COMP%] *[_ngcontent-%COMP%]{display:inline;white-space:nowrap}.live-chat-emoji[_ngcontent-%COMP%]{position:absolute;right:435px;bottom:5px;z-index:1000}.emoji-box-trigger[_ngcontent-%COMP%]{cursor:pointer;margin-top:13px;width:30px;height:30px;overflow:hidden}.emoji-box-trigger.iconbiaoqing[_ngcontent-%COMP%], .emoji-box-trigger.icontupian2[_ngcontent-%COMP%]{color:#ffffffb3!important}.chat-input_submit[_ngcontent-%COMP%], .emoji-box-trigger.iconbiaoqing[_ngcontent-%COMP%]:hover, .emoji-box-trigger.icontupian2[_ngcontent-%COMP%]:hover{color:#fff!important}.chat-input_submit[_ngcontent-%COMP%]{position:absolute;right:12px;top:12px;width:62px;height:30px;line-height:32px;text-align:center;background-color:#00c0ff;border-radius:0}.chat-input_submit.not-allowed[_ngcontent-%COMP%]{background-color:#383838!important;cursor:not-allowed}.live-chat-userName[_ngcontent-%COMP%]{color:#fff6;float:left;line-height:28px;font-size:14px;white-space:pre}.live-chat-message[_ngcontent-%COMP%]{color:#fff;line-height:28px;font-size:14px}@media (max-width:1678px){.live-chat[_ngcontent-%COMP%]{height:518px}.live-chat.compact[_ngcontent-%COMP%]{height:252px}.live-chat-container[_ngcontent-%COMP%]{height:calc(100% - 42px - 45px)}.live-chat-bottom[_ngcontent-%COMP%]{height:45px;padding-top:0}.live-chat-bottom[_ngcontent-%COMP%] .input-area[_ngcontent-%COMP%]{padding:10px 14px}.live-chat-bottom[_ngcontent-%COMP%] .not-input-area[_ngcontent-%COMP%] .emoji-box-trigger[_ngcontent-%COMP%]{margin-top:9px}.live-chat-bottom[_ngcontent-%COMP%] .not-input-area[_ngcontent-%COMP%] .chat-input_submit[_ngcontent-%COMP%]{top:7px}}@media (min-width:1679px) and (max-width:1911px){.live-chat[_ngcontent-%COMP%]{height:650px}.live-chat.compact[_ngcontent-%COMP%]{height:316px}.live-chat-container[_ngcontent-%COMP%]{height:calc(100% - 42px - 56px)}.live-chat-bottom[_ngcontent-%COMP%]{height:56px;padding-top:1px}}',
],
})),
t
);
})();
var Je = i("9U6K"),
Ze = i("sJdA"),
ti = i("uIam");
function ei(t, e) {
1 & t &&
(_.Ub(0, "div", 26), _.Pb(1, "app-membership-icon", 27), _.Tb()),
2 & t &&
(_.Cb(1),
_.lc("membership", "premium")("noText", !0)("newIcon", !0));
}
function ii(t, e) {
1 & t &&
(_.Ub(0, "div", 28), _.Pb(1, "app-membership-icon", 29), _.Tb()),
2 & t &&
(_.Cb(1), _.lc("membership", "bigV")("noText", !0)("newIcon", !0));
}
function ni(t, e) {
if ((1 & t && _.Pb(0, "app-membership-icon", 30), 2 & t)) {
const t = _.ec(2);
_.lc("membership", t.getMembership(t.publisher.gid))("noText", !0)(
"newIcon",
!0
)("canHover", !0);
}
}
function oi(t, e) {
if (
(1 & t && (_.Ub(0, "div", 31), _.Pb(1, "i", 32), _.Kc(2), _.Tb()),
2 & t)
) {
const t = _.ec(2);
_.Cb(2), _.Mc(" ", t.publisher.from, " ");
}
}
function ai(t, e) {
if (
(1 & t &&
(_.Ub(0, "span"), _.Kc(1), _.fc(2, "chineseCounter"), _.Tb()),
2 & t)
) {
const t = _.ec(2);
_.Cb(1), _.Lc(_.gc(2, 1, t.publisher.fansCount));
}
}
function si(t, e) {
if (
(1 & t &&
(_.Ub(0, "span", 33), _.Kc(1), _.fc(2, "chineseCounter"), _.Tb()),
2 & t)
) {
const t = _.ec(2);
_.Cb(1), _.Lc(_.gc(2, 1, t.publisher.fansCount));
}
}
const ci = function (t, e) {
return { iconnanxing: t, iconnvxing: e };
},
ri = function (t) {
return { maxLv: t };
};
function li(t, e) {
if (1 & t) {
const t = _.Vb();
_.Ub(0, "div", 2),
_.Ub(1, "div", 3),
_.Ub(2, "div", 4),
_.Ub(3, "app-namecard", 5),
_.bc("userLoadedEvent", function (e) {
return _.Ac(t), _.ec().onPublisherLoaded(e);
}),
_.fc(4, "safeResource"),
_.Tb(),
_.Ub(5, "div", 6),
_.bc("click", function () {
return _.Ac(t), _.ec().visit();
}),
_.Pb(6, "img", 7),
_.fc(7, "safeResource"),
_.Tb(),
_.Ic(8, ei, 2, 3, "div", 8),
_.Ic(9, ii, 2, 3, "div", 9),
_.Tb(),
_.Ub(10, "div", 10),
_.Ub(11, "div", 11),
_.bc("click", function () {
return _.Ac(t), _.ec().visit();
}),
_.Ub(12, "div", 12),
_.Kc(13),
_.Tb(),
_.Pb(14, "i", 13),
_.Ic(15, ni, 1, 4, "app-membership-icon", 14),
_.Tb(),
_.Ub(16, "div", 15),
_.Ub(17, "div", 16),
_.Pb(18, "img", 17),
_.fc(19, "absUrl"),
_.fc(20, "staticLevel"),
_.Tb(),
_.Ic(21, oi, 3, 1, "div", 18),
_.Tb(),
_.Tb(),
_.Tb(),
_.Pb(22, "div", 19),
_.Ub(23, "div", 20),
_.Ub(24, "div", 21),
_.Ub(25, "div", 22),
_.Kc(26, "\u7c89\u4e1d\uff1a "),
_.Ic(27, ai, 3, 3, "span", 23),
_.Ic(28, si, 3, 3, "span", 24),
_.Tb(),
_.Ub(29, "div", 22),
_.Kc(30),
_.fc(31, "chineseCounter"),
_.Tb(),
_.Ub(32, "div", 22),
_.Kc(33),
_.fc(34, "chineseCounter"),
_.Tb(),
_.Tb(),
_.Ub(35, "div", 25),
_.Kc(36),
_.Tb(),
_.Tb(),
_.Tb();
}
if (2 & t) {
const t = _.ec();
_.Cb(3),
_.lc("currentUser", t.uid)("user", t.publisherEntity)(
"userId",
t.publisher.uid
)("avatar", _.gc(4, 24, t.publisher.avatar))("status", 1)(
"fromPublisher",
!0
)(
"officalUp",
null == t.publisher ? null : t.publisher.isOfficalUP
)("vipSymbol", t.getImage(t.publisher.gid))(
"userKey",
t.publisher.key
),
_.Cb(3),
_.mc("alt", t.publisher.title),
_.lc(
"src",
_.gc(7, 26, t.publisher.avatar + "?w=110&h=110&mode=crop"),
_.Dc
),
_.Cb(2),
_.lc(
"ngIf",
t.publisher.gid > 0 &&
!(null != t.publisher && t.publisher.isOfficalUP)
),
_.Cb(1),
_.lc("ngIf", null == t.publisher ? null : t.publisher.isOfficalUP),
_.Cb(4),
_.Lc(t.publisher.title),
_.Cb(1),
_.lc(
"ngClass",
_.rc(36, ci, 0 === t.publisher.gender, 1 === t.publisher.gender)
),
_.Cb(1),
_.lc("ngIf", t.publisher.gid > 0),
_.Cb(2),
_.lc("ngClass", _.qc(39, ri, t.publisher.userLevel > 7)),
_.Cb(1),
_.mc(
"src",
_.gc(19, 28, _.gc(20, 30, t.publisher.userLevel)),
_.Dc
),
_.Cb(3),
_.lc("ngIf", !!t.publisher.from),
_.Cb(6),
_.lc("ngIf", t.publisher.fansCount > 1e4),
_.Cb(1),
_.lc("ngIf", !(t.publisher.fansCount > 1e4)),
_.Cb(2),
_.Mc(
"\u4f5c\u54c1\uff1a",
_.gc(31, 32, t.publisher.videoCount),
""
),
_.Cb(3),
_.Mc("\u83b7\u8d5e\uff1a", _.gc(34, 34, t.publisher.likes), ""),
_.Cb(3),
_.Mc(
" ",
t.publisher.slogon
? t.publisher.slogon
: "\u6ca1\u6709\u4e2a\u6027\u6240\u4ee5\u6ca1\u6709\u7b7e\u540d",
" "
);
}
}
const _i = function (t) {
return { id: t };
};
function gi(t, e) {
if (
(1 & t &&
(_.Ub(0, "div", 40),
_.Ub(1, "a", 41),
_.Pb(2, "i", 42),
_.Ub(3, "span"),
_.Kc(4, "\u79c1\u4fe1"),
_.Tb(),
_.Tb(),
_.Tb()),
2 & t)
) {
const t = _.ec(2);
_.Cb(1),
_.lc(
"queryParams",
_.qc(1, _i, t.publisher.userKey || t.publisher.key)
);
}
}
function di(t, e) {
1 & t && (_.Ub(0, "span", 43), _.Pb(1, "i", 44), _.Tb());
}
function hi(t, e) {
1 & t && (_.Ub(0, "span"), _.Kc(1, "\u5df2"), _.Tb());
}
function pi(t, e) {
1 & t && (_.Ub(0, "span"), _.Kc(1, "+ "), _.Tb());
}
const ui = function (t) {
return { notAttend: t };
};
function bi(t, e) {
if (1 & t) {
const t = _.Vb();
_.Ub(0, "div", 34),
_.Ic(1, gi, 5, 3, "div", 35),
_.Ub(2, "a", 36),
_.Ub(3, "button", 37),
_.Ub(4, "span"),
_.Kc(5, "\u4e2a\u4eba\u4e3b\u9875"),
_.Tb(),
_.Tb(),
_.Tb(),
_.Ub(6, "button", 38),
_.bc("click", function () {
return _.Ac(t), _.ec().guanzhu();
}),
_.Ic(7, di, 2, 0, "span", 39),
_.Ic(8, hi, 2, 0, "span", 23),
_.Ic(9, pi, 2, 0, "span", 23),
_.Kc(10, "\u5173\u6ce8 "),
_.Tb(),
_.Tb();
}
if (2 & t) {
const t = _.ec();
_.Cb(1),
_.lc("ngIf", t.uid !== t.publisher.uid),
_.Cb(1),
_.lc(
"routerLink",
"/space/" +
((null == t.publisher ? null : t.publisher.userKey) ||
(null == t.publisher ? null : t.publisher.key))
),
_.Cb(4),
_.lc(
"ngClass",
_.qc(6, ui, !(null != t.publisher && t.publisher.isAttend))
),
_.Cb(1),
_.lc("ngIf", t.loading),
_.Cb(1),
_.lc(
"ngIf",
!t.loading && (null == t.publisher ? null : t.publisher.isAttend)
),
_.Cb(1),
_.lc(
"ngIf",
!(t.loading || (null != t.publisher && t.publisher.isAttend))
);
}
}
let mi = (() => {
class t {
constructor(t, e, i, n) {
(this._router = t),
(this._toast = e),
(this._upload = i),
(this._user = n),
(this.uid = 0),
(this.fromVideo = !1),
(this.smallest = !1),
(this.loading = !1);
}
ngOnInit() {}
visit() {
var t, e;
this._router.navigateByUrl(
this.fromVideo
? "/space/" +
((null === (t = this.publisher) || void 0 === t
? void 0
: t.userKey) || this.publisher.key)
: "/space/" +
((null === (e = this.publisher) || void 0 === e
? void 0
: e.userKey) || this.publisher.key)
);
}
subscript() {
this._upload.subscriptChannel(this.publisher.key).subscribe((t) => {
if (null != t && t.length > 0) {
var e = t[0];
e.msg
? this._toast.showBlackToast(e.msg)
: (this.publisher.isSubscripted = !e.isCancel);
}
});
}
getMembership(t) {
var e = "";
switch (t) {
case 0:
e = "";
break;
case 1:
case 2:
e = "gvip";
break;
case 3:
e = "royalVip";
break;
case 4:
case 101:
case 102:
e = "cpvip";
break;
default:
e = "vip";
}
return "royalVip";
}
getImage(t) {
var e = "";
switch (t) {
case 0:
e = "";
break;
case 1:
e = Ke.a.gVipBadge;
break;
case 2:
e = Ke.a.etVipBadge;
break;
case 3:
e = Ke.a.royalVipBadge;
break;
case 4:
e = Ke.a.cpVipBadge;
break;
case 101:
case 102:
e = Ke.a.editorBadge;
break;
default:
e = Ke.a.gVipBadge;
}
return Ke.a.royalVipBadge;
}
guanzhu() {
this.uid > 0
? ((this.loading = !0),
this._upload
.SetAttension(this.publisher.userKey)
.subscribe((t) => {
(this.loading = !1),
401 !== t.code &&
this.publisher.uid !== this.uid &&
((this.publisher.isAttend = !this.publisher.isAttend),
(this.publisher.fansCount += this.publisher.isAttend
? 1
: this.publisher.fansCount > 0
? -1
: 0));
}))
: (this._toast.showBlackToast("\u8bf7\u5148\u767b\u5f55"),
this._user.showLoginDialog(!0));
}
onPublisherLoaded(t) {}
}
return (
(t.ɵfac = function (e) {
return new (e || t)(_.Ob(a.d), _.Ob(Kt.a), _.Ob(Je.a), _.Ob(U.a));
}),
(t.ɵcmp = _.Ib({
type: t,
selectors: [["video-publisher"]],
inputs: {
publisher: "publisher",
uid: "uid",
fromVideo: "fromVideo",
smallest: "smallest",
},
decls: 2,
vars: 2,
consts: [
["class", "publisher", 4, "ngIf"],
["class", "action", 4, "ngIf"],
[1, "publisher"],
[1, "d-flex"],
[1, "avatar"],
[
1,
"cardBox",
"fixed",
3,
"currentUser",
"user",
"userId",
"avatar",
"status",
"fromPublisher",
"officalUp",
"vipSymbol",
"userKey",
"userLoadedEvent",
],
[3, "click"],
[1, "img-responsive", 3, "src", "alt"],
["class", "vip-icon", 4, "ngIf"],
["class", "vip-icon officalUp", 4, "ngIf"],
[
1,
"d-flex",
"flex-column",
"justify-content-center",
2,
"margin-top",
"4px",
],
[1, "name", "d-flex", "align-items-center", 3, "click"],
[1, "name-text"],
[1, "iconfont", "icon-size", 3, "ngClass"],
[
"class",
"ml-2 position-relative",
"style",
"top: 1px;",
3,
"membership",
"noText",
"newIcon",
"canHover",
4,
"ngIf",
],
[1, "d-flex", "align-items-center"],
[1, "medal", 3, "ngClass"],
[
"alt",
"\u7528\u6237\u7b49\u7ea7",
"width",
"38",
"height",
"17",
1,
"level",
"mr-2",
3,
"src",
],
["class", "from", 4, "ngIf"],
[1, "seprate-line"],
[1, "intro"],
[1, "d-flex", "ac"],
[1, "flex-1"],
[4, "ngIf"],
["class", "notranslate", 4, "ngIf"],
[1, "slogon"],
[1, "vip-icon"],
[
"alt",
"VIP\u6807\u8bc6",
1,
"mr-2",
"new-bigv-icon",
3,
"membership",
"noText",
"newIcon",
],
[1, "vip-icon", "officalUp"],
[
"alt",
"\u5b98\u65b9\u6807\u8bc6",
1,
"mr-2",
"new-bigv-icon",
3,
"membership",
"noText",
"newIcon",
],
[
1,
"ml-2",
"position-relative",
2,
"top",
"1px",
3,
"membership",
"noText",
"newIcon",
"canHover",
],
[1, "from"],
[
1,
"iconfont",
"iconditu_dingwei",
2,
"font-size",
"18px",
"margin-right",
"6px",
],
[1, "notranslate"],
[1, "action"],
["class", "message-btn-ctn", 4, "ngIf"],
[1, "user-space", 3, "routerLink"],
["type", "button", 1, "btn", "btn-default", "space-button"],
[
"type",
"button",
1,
"btn",
"btn-default",
"pull-right",
"follow-button",
3,
"ngClass",
"click",
],
["class", "icon-sm", 4, "ngIf"],
[1, "message-btn-ctn"],
[
"routerLink",
"/user/messages/chat",
"target",
"_blank",
1,
"icon-btn",
3,
"queryParams",
],
[1, "iconfont", "iconsixin"],
[1, "icon-sm"],
[1, "iconfont", "iconjiazai_shuaxin", "animate-spin"],
],
template: function (t, e) {
1 & t &&
(_.Ic(0, li, 37, 41, "div", 0), _.Ic(1, bi, 11, 8, "div", 1)),
2 & t &&
(_.lc("ngIf", !!e.publisher),
_.Cb(1),
_.lc("ngIf", !!e.publisher));
},
directives: [n.n, Ze.a, n.l, ze.a, a.g],
pipes: [Y.b, St.a, ti.a, Y.a],
styles: [
".publisher[_ngcontent-%COMP%]{width:100%;position:relative;padding:22px 22px 12px;color:#fff;border-bottom:1px solid #6663}.action[_ngcontent-%COMP%], .publisher[_ngcontent-%COMP%]{background-color:#1c1d2f}.action[_ngcontent-%COMP%]{padding:1.25em 22px;display:flex;justify-content:space-between;align-items:center}.message-btn-ctn[_ngcontent-%COMP%]{height:37px}.btn[_ngcontent-%COMP%]{margin-top:.2em}.avatar[_ngcontent-%COMP%]{width:50px;height:50px;cursor:pointer;margin-right:25px}.avatar[_ngcontent-%COMP%] .img-responsive[_ngcontent-%COMP%]{border-radius:50%}.cardBox[_ngcontent-%COMP%]{opacity:0}.cardBox[_ngcontent-%COMP%]:hover{opacity:1}.img-responsive[_ngcontent-%COMP%]{width:100%;height:100%}.vip-icon[_ngcontent-%COMP%]{position:absolute;z-index:999;width:20px;height:20px;margin-top:-25px;margin-left:35px}.new-bigv-icon[_ngcontent-%COMP%]{zoom:.8333333333}.name[_ngcontent-%COMP%]{font-size:16px;line-height:16px;cursor:pointer}.name[_ngcontent-%COMP%] .name-text[_ngcontent-%COMP%]{max-width:175px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-right:4px}.medal[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:38px;margin-top:8px}.medal.maxLv[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:54px}.intro[_ngcontent-%COMP%]{padding:29px 4px;color:#fff6}.intro[_ngcontent-%COMP%] .ac[_ngcontent-%COMP%]{color:#fff;margin-bottom:1.5em}.count[_ngcontent-%COMP%]{position:absolute;right:0;bottom:-.5em;color:#525252;width:5em;text-align:center;white-space:nowrap}.from[_ngcontent-%COMP%]{color:#fff6;display:flex;align-items:center;margin-top:5px}.icon-btn[_ngcontent-%COMP%]{color:#fff6;cursor:pointer}.icon-btn[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{position:relative;top:-.3em;margin-left:.3em}.icon-btn[_ngcontent-%COMP%]:hover{color:#fff}.btn-default[_ngcontent-%COMP%]{color:#ffffffb3!important;border:0!important;height:34px;padding:.3em 1em}.btn-default[_ngcontent-%COMP%], .btn-default[_ngcontent-%COMP%]:hover{background-color:#373843!important}.btn-default[_ngcontent-%COMP%]:hover{color:#fff!important}.icon-size[_ngcontent-%COMP%]{font-size:16px;font-weight:700}.icon-sm[_ngcontent-%COMP%] .iconfont[_ngcontent-%COMP%]{font-size:14px}.user-space[_ngcontent-%COMP%]{margin-left:auto;margin-right:1em}.follow-button[_ngcontent-%COMP%], .space-button[_ngcontent-%COMP%]{padding-bottom:.2em}.follow-button[_ngcontent-%COMP%]{min-width:70px}.follow-button.notAttend[_ngcontent-%COMP%]{background-color:#00c0ff!important;color:#fff!important}.publisher.xs[_ngcontent-%COMP%]{height:72px!important;padding-top:7px!important;border-bottom:none!important}.publisher.xs[_ngcontent-%COMP%] .intro[_ngcontent-%COMP%], .publisher.xs[_ngcontent-%COMP%] .seprate-line[_ngcontent-%COMP%]{display:none!important}.action.xs[_ngcontent-%COMP%]{height:0!important;padding:0!important;margin:0!important}.action.xs[_ngcontent-%COMP%] .message-btn-ctn[_ngcontent-%COMP%], .action.xs[_ngcontent-%COMP%] .user-space[_ngcontent-%COMP%]{display:none!important}.action.xs[_ngcontent-%COMP%] .follow-button[_ngcontent-%COMP%]{height:auto!important;position:absolute!important;top:28px!important;right:25px!important}.vip-icon[_ngcontent-%COMP%]{pointer-events:none}.publisher[_ngcontent-%COMP%]{background-color:#131429!important}.action[_ngcontent-%COMP%]{position:relative;height:0;padding:0!important;margin:0!important}.action[_ngcontent-%COMP%] .user-space[_ngcontent-%COMP%]{display:none!important}.action[_ngcontent-%COMP%] .btn-default[_ngcontent-%COMP%]{height:auto}.intro[_ngcontent-%COMP%] .ac[_ngcontent-%COMP%]{margin-bottom:0!important;height:19px}.seprate-line[_ngcontent-%COMP%], .slogon[_ngcontent-%COMP%]{display:none}@media (max-width:1678px){.intro[_ngcontent-%COMP%]{display:none}.publisher[_ngcontent-%COMP%]{padding:15px 18px 16px;border-bottom:none!important}.follow-button[_ngcontent-%COMP%]{position:absolute;top:-59px;right:25px}.message-btn-ctn[_ngcontent-%COMP%]{display:none}}@media (min-width:1679px) and (max-width:1911px){.intro[_ngcontent-%COMP%]{padding:8px 72px 0 8px!important}.publisher[_ngcontent-%COMP%]{padding:13px 18px;border-bottom:none!important}.follow-button[_ngcontent-%COMP%]{position:absolute;top:-83px;right:25px}.message-btn-ctn[_ngcontent-%COMP%]{position:absolute;top:-42px;right:34px}}@media (min-width:1912px){.intro[_ngcontent-%COMP%]{padding:25px 165px 0 8px!important}.publisher[_ngcontent-%COMP%]{padding:12px 18px 13px;border-bottom:none!important}.follow-button[_ngcontent-%COMP%]{position:absolute;top:-97px;right:25px}.message-btn-ctn[_ngcontent-%COMP%]{position:absolute;top:-42px;right:34px}}",
],
})),
t
);
})();
var fi = i("PkM9"),
Pi = i("ha/m"),
vi = i("oAdE"),
Ci = i("VWJ4"),
Oi = i("SbQY"),
Mi = i("3umQ"),
xi = i("jhYu"),
Ei = i("0zID");
function yi(t, e) {
1 & t && _.Pb(0, "div", 13);
}
function Di(t, e) {
if (
(1 & t &&
(_.Ub(0, "div", 14),
_.Pb(1, "i", 15),
_.Ub(2, "span", 16),
_.Kc(3),
_.fc(4, "chineseCounter"),
_.Tb(),
_.Tb()),
2 & t)
) {
const t = _.ec();
_.Cb(3), _.Mc(" ", _.gc(4, 1, t.video.hot || 0), " ");
}
}
function Ti(t, e) {
if (
(1 & t &&
(_.Ub(0, "div", 17), _.Ub(1, "span", 16), _.Kc(2), _.Tb(), _.Tb()),
2 & t)
) {
const t = _.ec();
_.Cb(2), _.Lc(t.getTime(t.video.lastSeconds));
}
}
function Ii(t, e) {
if (
(1 & t &&
(_.Ub(0, "div", 18),
_.Ub(1, "span"),
_.Kc(2),
_.Tb(),
_.Ub(3, "span"),
_.Kc(4),
_.Tb(),
_.Ub(5, "span"),
_.Kc(6),
_.Tb(),
_.Ub(7, "span"),
_.Kc(8),
_.Tb(),
_.Tb()),
2 & t)
) {
const t = _.ec();
_.Cb(2),
_.Lc(t.video.genre),
_.Cb(2),
_.Lc(t.video.region),
_.Cb(2),
_.Lc(t.video.published),
_.Cb(2),
_.Lc(t.video.language);
}
}
function wi(t, e) {
1 & t && (_.Ub(0, "span", 22), _.Kc(1, "\u66f4\u65b0"), _.Tb());
}
function Ui(t, e) {
if (
(1 & t &&
(_.Ub(0, "div", 19),
_.Ic(1, wi, 2, 0, "span", 20),
_.Ub(2, "span", 21),
_.Kc(3),
_.Tb(),
_.Tb()),
2 & t)
) {
const t = _.ec();
_.Cb(1),
_.lc("ngIf", t.video.inProgress),
_.Cb(2),
_.Lc(t.video.lastUpdatedItem);
}
}
function Li(t, e) {
if (
(1 & t &&
(_.Ub(0, "div", 23),
_.Ub(1, "div", 24),
_.Pb(2, "i", 25),
_.Ub(3, "span", 26),
_.Kc(4),
_.fc(5, "chineseCounter"),
_.Tb(),
_.Pb(6, "span", 27),
_.Tb(),
_.Ub(7, "div", 28),
_.Ub(8, "span", 29),
_.Kc(9),
_.fc(10, "number"),
_.Tb(),
_.Tb(),
_.Tb()),
2 & t)
) {
const t = _.ec();
_.Cb(4),
_.Lc(_.gc(5, 2, t.video.hot)),
_.Cb(5),
_.Mc(
" ",
t.video.score && "\u6682\u65e0\u8bc4\u5206" !== t.video.score
? _.hc(10, 4, t.video.score, "1.1-1") + "\u5206"
: "\u6682\u65e0\u8bc4\u5206",
" "
);
}
}
const ki = function (t) {
return ["/space/", t];
};
function Ai(t, e) {
if (
(1 & t &&
(_.Ub(0, "div", 30),
_.Ub(1, "div", 31),
_.Ub(2, "a", 32),
_.Pb(3, "img", 33),
_.fc(4, "safeResource"),
_.Ub(5, "span", 34),
_.Kc(6),
_.Tb(),
_.Tb(),
_.Tb(),
_.Ub(7, "span", 35),
_.fc(8, "date"),
_.Kc(9),
_.fc(10, "date"),
_.Tb(),
_.Tb()),
2 & t)
) {
const t = _.ec();
_.Cb(2),
_.mc("title", null == t.video ? null : t.video.nickName),
_.lc(
"routerLink",
_.qc(15, ki, null == t.video ? null : t.video.userKey)
),
_.Cb(1),
_.nc(
"dataSrc",
"",
_.gc(4, 7, null == t.video ? null : t.video.headImg),
"?w=21&h=21&mode=crop"
),
_.mc("alt", null == t.video ? null : t.video.nickName),
_.Cb(3),
_.Lc(null == t.video ? null : t.video.nickName),
_.Cb(1),
_.mc("title", _.hc(8, 9, t.video.published, "yyyy-MM-dd hh:mm")),
_.Cb(2),
_.Lc(_.hc(10, 12, t.video.published, "yyyy-MM-dd hh:mm"));
}
}
const Ki = function (t) {
return { isNews: t };
},
Bi = function () {
return ["/watch"];
},
Ri = function (t) {
return ["/play", t];
},
Si = function (t) {
return { v: t };
},
Wi = function () {
return {};
};
let zi = (() => {
class t extends xi.b {
constructor() {
super(...arguments), (this.isNews = !1);
}
ngOnInit() {}
getTime(t) {
return t ? t.split(".")[0].split(":").slice(1).join(":") : "";
}
}
return (
(t.ɵfac = function (e) {
return qi(e || t);
}),
(t.ɵcmp = _.Ib({
type: t,
selectors: [["app-video-teaser-rec"]],
inputs: { isNews: "isNews", video: "video" },
features: [_.zb],
decls: 15,
vars: 33,
consts: [
[1, "video-compact", "mb-2", 3, "ngClass"],
[1, "poster"],
[3, "routerLink", "queryParams"],
[3, "src", "alt"],
["class", "shadow-bar", 4, "ngIf"],
["class", "hot-count", 4, "ngIf"],
["class", "view-count", 4, "ngIf"],
[1, "right"],
[
1,
"d-block",
"title",
3,
"ngClass",
"routerLink",
"queryParams",
"title",
],
["class", "tags", 4, "ngIf"],
["class", "update-status", 4, "ngIf"],
["class", "d-flex align-items-center relative-info", 4, "ngIf"],
["class", "published", 4, "ngIf"],
[1, "shadow-bar"],
[1, "hot-count"],
[1, "iconfont", "iconrenqi", "mr-1"],
[1, "num"],
[1, "view-count"],
[1, "tags"],
[1, "update-status"],
["class", "mr-2", 4, "ngIf"],
[1, "item"],
[1, "mr-2"],
[1, "d-flex", "align-items-center", "relative-info"],
[1, "d-flex", "align-items-center"],
[
1,
"iconfont",
"iconrenqi",
"d-block",
"mr-2",
2,
"color",
"#fe6f71",
"top",
"auto",
"font-size",
"20px",
],
[1, "hot-number"],
[1, "gap-line"],
[1, "rating-text", "d-flex", "align-items-center"],
[1, "rating-number"],
[1, "published"],
[1, "publisher"],
[3, "routerLink", "title"],
[
"src",
"./assets/images/loading_216x309.png",
1,
"avatar",
3,
"dataSrc",
"lazyLoad",
"alt",
],
[1, "ml-2", "nickName"],
[1, "publish-date", 3, "title"],
],
template: function (t, e) {
1 & t &&
(_.Ub(0, "div", 0),
_.Ub(1, "div", 1),
_.Ub(2, "a", 2),
_.Pb(3, "img", 3),
_.fc(4, "safeResource"),
_.Ic(5, yi, 1, 0, "div", 4),
_.Tb(),
_.Ic(6, Di, 5, 3, "div", 5),
_.Ic(7, Ti, 3, 1, "div", 6),
_.Tb(),
_.Ub(8, "div", 7),
_.Ub(9, "a", 8),
_.Kc(10),
_.Tb(),
_.Ic(11, Ii, 9, 4, "div", 9),
_.Ic(12, Ui, 4, 2, "div", 10),
_.Ic(13, Li, 11, 7, "div", 11),
_.Ic(14, Ai, 11, 17, "div", 12),
_.Tb(),
_.Tb()),
2 & t &&
(_.lc("ngClass", _.qc(19, Ki, e.isNews)),
_.Cb(2),
_.lc(
"routerLink",
e.isNews ? _.pc(21, Bi) : _.qc(22, Ri, e.video.key)
)(
"queryParams",
e.isNews ? _.qc(24, Si, e.video.key) : _.pc(26, Wi)
),
_.Cb(1),
_.mc(
"src",
_.gc(
4,
17,
e.video.image +
(e.isNews
? "?w=216&h=122&format=jpg&mode=crop"
: "?w=216&h=309&format=jpg&mode=stretch")
),
_.Dc
),
_.mc("alt", e.video.title),
_.Cb(2),
_.lc("ngIf", e.isNews),
_.Cb(1),
_.lc("ngIf", e.isNews),
_.Cb(1),
_.lc("ngIf", e.isNews),
_.Cb(2),
_.mc("title", e.video.title),
_.lc("ngClass", e.isNews ? "mb-2" : "mb-4")(
"routerLink",
e.isNews ? _.pc(27, Bi) : _.qc(28, Ri, e.video.key)
)(
"queryParams",
e.isNews ? _.qc(30, Si, e.video.key) : _.pc(32, Wi)
),
_.Cb(1),
_.Mc(" ", e.video.title, " "),
_.Cb(1),
_.lc("ngIf", !e.isNews),
_.Cb(1),
_.lc("ngIf", e.video.lastUpdatedItem),
_.Cb(1),
_.lc("ngIf", !e.isNews),
_.Cb(1),
_.lc("ngIf", e.isNews));
},
directives: [n.l, a.g, n.n, Ei.a],
pipes: [Y.b, Y.a, n.f, n.e],
styles: [
'.video-compact[_ngcontent-%COMP%]{position:relative}.video-compact[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.video-compact[_ngcontent-%COMP%] .poster[_ngcontent-%COMP%]{width:105px;position:absolute;left:0;top:0;overflow:hidden}.video-compact[_ngcontent-%COMP%] .poster[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:105px;height:150px}.video-compact[_ngcontent-%COMP%] .poster[_ngcontent-%COMP%]:after{content:"";display:block;position:absolute;bottom:0;left:0;height:0;background:linear-gradient(180deg,#0000,#0003 38%,#0006);width:100%}.video-compact[_ngcontent-%COMP%] .poster[_ngcontent-%COMP%] .view-count[_ngcontent-%COMP%]{position:absolute;bottom:7px;right:7px;color:#fff;z-index:1;font-size:12px;line-height:20px}.video-compact[_ngcontent-%COMP%] .poster[_ngcontent-%COMP%] .shadow-bar[_ngcontent-%COMP%]{height:30px;position:absolute;bottom:4px;width:100%;background:linear-gradient(180deg,#0000,#000000e6 90%,#000)}.video-compact[_ngcontent-%COMP%] .poster[_ngcontent-%COMP%] .hot-count[_ngcontent-%COMP%]{display:inline-flex;align-items:center;color:#fff;line-height:20px;z-index:1;font-size:12px;position:absolute;bottom:7px;left:7px}.video-compact[_ngcontent-%COMP%] .poster[_ngcontent-%COMP%] .hot-count[_ngcontent-%COMP%] .iconfont[_ngcontent-%COMP%]{font-size:16px;color:#fe6f71}.video-compact[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{margin:0 0 4px;display:-webkit-box;max-height:50px;line-height:25px;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;white-space:normal;-webkit-line-clamp:2;font-weight:500;font-size:16px;color:#fff}.light[_nghost-%COMP%] .video-compact[_ngcontent-%COMP%] .title[_ngcontent-%COMP%], .light [_nghost-%COMP%] .video-compact[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{color:#333}.video-compact[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]:hover{color:#00c0ff!important}.video-compact[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{padding-left:120px;min-height:160px}.video-compact[_ngcontent-%COMP%] .label[_ngcontent-%COMP%], .video-compact[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{color:#fff6;line-height:28px;font-size:15px}.video-compact[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{display:inline-block}.tags[_ngcontent-%COMP%]{margin-top:.5em;margin-bottom:1em;font-size:12px;color:#fff6}.light[_nghost-%COMP%] .tags[_ngcontent-%COMP%], .light [_nghost-%COMP%] .tags[_ngcontent-%COMP%]{color:#888}.tags[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{background-color:#1c1d2f;display:inline-block;padding:.1em 0;margin-right:.5em;margin-bottom:.5em;width:58px;text-align:center}.light[_nghost-%COMP%] .tags[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .light [_nghost-%COMP%] .tags[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{background-color:#f8f8f8}.video-compact.isNews[_ngcontent-%COMP%] .poster[_ngcontent-%COMP%]{width:185px}.video-compact.isNews[_ngcontent-%COMP%] .poster[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:185px;height:102px;object-fit:cover;background:#000}.video-compact.isNews[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{padding-left:200px;min-height:110px}.video-compact[_ngcontent-%COMP%] .published[_ngcontent-%COMP%]{color:#fff6;white-space:nowrap;display:flex;align-items:center}.light[_nghost-%COMP%] .video-compact[_ngcontent-%COMP%] .published[_ngcontent-%COMP%], .light [_nghost-%COMP%] .video-compact[_ngcontent-%COMP%] .published[_ngcontent-%COMP%]{color:#333}.publisher[_ngcontent-%COMP%]{margin-right:14px}.publisher[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:flex;align-items:center}.publisher[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{width:21px;height:21px;border-radius:50%;-webkit-user-drag:none;-khtml-user-drag:none;-moz-user-drag:none;-o-user-drag:none;-webkit-user-select:none;-o-user-select:none;user-select:none}.publisher[_ngcontent-%COMP%] .nickName[_ngcontent-%COMP%]{color:#fff6;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:80px}.light[_nghost-%COMP%] .publisher[_ngcontent-%COMP%] .nickName[_ngcontent-%COMP%], .light [_nghost-%COMP%] .publisher[_ngcontent-%COMP%] .nickName[_ngcontent-%COMP%]{color:#888}.publisher[_ngcontent-%COMP%]:hover .nickName[_ngcontent-%COMP%]{color:#00c0ff!important}@media (max-width:1678px){.publisher[_ngcontent-%COMP%]{margin-right:7px}.publisher[_ngcontent-%COMP%] .nickName[_ngcontent-%COMP%]{width:60px}.publish-date[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:90px}}.update-status[_ngcontent-%COMP%]{color:#fff6;font-size:14px;padding-left:.1em}.update-status[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]{color:#fff}.relative-info[_ngcontent-%COMP%]{margin-top:10px}.hot-number[_ngcontent-%COMP%]{font-size:14px;color:#ffffffb3}.light[_nghost-%COMP%] .hot-number[_ngcontent-%COMP%], .light [_nghost-%COMP%] .hot-number[_ngcontent-%COMP%]{color:#888}.gap-line[_ngcontent-%COMP%]{margin:0 18px;height:10px;border-right:1px solid;border-color:#a0a0a0}.rating-text[_ngcontent-%COMP%]{color:#ffa800}.rating-text[_ngcontent-%COMP%] .rating-number[_ngcontent-%COMP%]{font-weight:600;position:absolute;font-size:14px}@media (max-width:1678px){.tags[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{width:48px!important}}',
],
})),
t
);
})();
const qi = _.Wb(zi);
function ji(t, e) {
if (
(1 & t &&
(_.Ub(0, "div"), _.Pb(1, "app-video-teaser-rec", 4), _.Tb()),
2 & t)
) {
const t = e.$implicit,
i = _.ec(2);
_.Cb(1), _.lc("video", t)("isNews", i.isNews);
}
}
function Vi(t, e) {
if (
(1 & t && (_.Ub(0, "div"), _.Ic(1, ji, 2, 2, "div", 3), _.Tb()),
2 & t)
) {
const t = _.ec();
_.Cb(1), _.lc("ngForOf", t.items);
}
}
function Ni(t, e) {
1 & t &&
(_.Ub(0, "div", 5), _.Kc(1, " \u6682\u65e0\u5185\u5bb9\n"), _.Tb());
}
let Hi = (() => {
class t {
constructor(t, e, i) {
(this._videoListService = t),
(this.store = e),
(this._utility = i),
(this.items = []),
(this.isNews = !1),
(this.subscript = null),
(this.cacheKey = null),
(this.cachedTitle = null),
(this.title = "\u76f8\u5173\u5185\u5bb9"),
(this.onRelatedItems = new _.n()),
(this.isAdult = 2 == v.a.cinema),
(this.timeout = null),
(this.sub = null);
}
ngOnInit() {
(this.subscript = this.store.subscribe(() => this.readState())),
this.readState();
}
ngOnDestroy() {
this.subscript && this.subscript(),
this._utility.clearTimeout(this.timeout),
null != this.sub && this.sub.unsubscribe();
}
readState() {
const t = this.store.getState().video;
if (t.currentVideo && this.cacheKey !== t.currentVideo.id) {
let e = t.currentVideo;
this.cacheKey = t.currentVideo.id;
const i = t.currentVideo.key;
(this.currentCid = t.currentVideo.cid),
this._utility.clearTimeout(this.timeout),
null != this.sub && this.sub.unsubscribe(),
(this.timeout = this._utility.setTimeout(() => {
this.sub = this._videoListService
.getRelatedVideos(
this.currentCid,
e.title,
e.id,
e.tags || [],
this.isNews
)
.subscribe((t) => {
(this.items = t.filter((t) => t.key !== i)),
this.isNews &&
!this.isAdult &&
this.onRelatedItems.next(
this.items.filter((t, e) => e < 6)
);
});
}, 200));
}
}
}
return (
(t.ɵfac = function (e) {
return new (e || t)(_.Ob(Oi.a), _.Ob(h.a), _.Ob(P.a));
}),
(t.ɵcmp = _.Ib({
type: t,
selectors: [["app-sidebar-related-videos"]],
inputs: { isNews: "isNews", title: "title" },
outputs: { onRelatedItems: "onRelatedItems" },
decls: 3,
vars: 4,
consts: [
[3, "title", "size"],
[4, "ngIf"],
["class", "text-center no-content", 4, "ngIf"],
[4, "ngFor", "ngForOf"],
[3, "video", "isNews"],
[1, "text-center", "no-content"],
],
template: function (t, e) {
1 & t &&
(_.Pb(0, "app-block-title", 0),
_.Ic(1, Vi, 2, 1, "div", 1),
_.Ic(2, Ni, 2, 0, "div", 2)),
2 & t &&
(_.lc("title", e.title)("size", "large"),
_.Cb(1),
_.lc("ngIf", e.items.length > 0),
_.Cb(1),
_.lc("ngIf", 0 == e.items.length));
},
directives: [Mi.a, n.n, n.m, zi],
styles: [""],
})),
t
);
})();
var Fi = i("Jr3z"),
$i = i("dayM");
let Gi = (() => {
class t {
constructor(t) {
(this._purchaseRequiredDialogService = t),
this._purchaseRequiredDialogService.purchaseRequiredDialogSource$.subscribe(
(t) => {
(this.price = t.price), (this.mediaId = t.mediaId);
}
);
}
ngOnInit() {}
}
return (
(t.ɵfac = function (e) {
return new (e || t)(_.Ob(b.a));
}),
(t.ɵcmp = _.Ib({
type: t,
selectors: [["app-purchase-required"]],
decls: 5,
vars: 1,
consts: [
[
2,
"padding",
"15px",
"height",
"100px",
"display",
"flex",
"flex-direction",
"column",
"align-items",
"center",
"justify-content",
"space-between",
],
[1, "mx-2"],
[1, "mx-2", 2, "color", "#FEC1A1"],
],
template: function (t, e) {
1 & t &&
(_.Ub(0, "div", 0),
_.Ub(1, "h5", 1),
_.Kc(2),
_.Tb(),
_.Ub(3, "h5", 2),
_.Kc(
4,
"\u5f00\u901aVIP\u5373\u523b\u4eab\u53d7\u5168\u7ad9\u9ad8\u6e05\u7279\u6743\uff01"
),
_.Tb(),
_.Tb()),
2 & t &&
(_.Cb(2),
_.Mc(
"\u89e3\u9501\u8be5\u89c6\u9891\u5c06\u82b1\u8d39",
e.price,
"\u91d1\u5e01"
));
},
styles: [""],
})),
t
);
})();
var Qi = i("ZR7r");
let Yi = (() => {
class t {
constructor(t, e, i) {
(this._router = t),
(this._purchaseSuccessDialogService = e),
(this._dnDialogService = i),
(this.subscription = []);
}
ngOnDestroy() {
this.subscription.forEach((t) => t.unsubscribe());
}
ngOnInit() {
this.subscription.push(
this._purchaseSuccessDialogService.purchaseSuccessDialogSource$.subscribe(
(t) => {
(this.videoKey = t.videoKey), (this.mediaKey = t.mediaKey);
}
)
);
}
playNow() {
this._purchaseSuccessDialogService.changeLineOrBitrate(!0),
this._dnDialogService.close("purchase-success");
}
}
return (
(t.ɵfac = function (e) {
return new (e || t)(_.Ob(a.d), _.Ob(f.a), _.Ob(d.a));
}),
(t.ɵcmp = _.Ib({
type: t,
selectors: [["app-purchase-success"]],
decls: 2,
vars: 0,
consts: [[1, "dn-button", "dn-button-blue", 3, "click"]],
template: function (t, e) {
1 & t &&
(_.Ub(0, "div", 0),
_.bc("click", function () {
return e.playNow();
}),
_.Kc(1, "\u7acb\u5373\u64ad\u653e"),
_.Tb());
},
styles: [""],
})),
t
);
})();
var Xi = i("qWkz");
const Ji = ["class", "video-module"];
function Zi(t, e) {
if ((1 & t && _.Pb(0, "div", 30), 2 & t)) {
const t = _.ec(2);
_.lc("ggPosition", t.ggPosition.VideoPageContent)("code", "PB")(
"extra",
t.extraPubList
);
}
}
function tn(t, e) {
if (
(1 & t && (_.Ub(0, "div", 31), _.Pb(1, "div", 32), _.Tb()), 2 & t)
) {
const t = _.ec(2);
_.Cb(1),
_.lc("ggPosition", t.ggPosition.VideoPageRight)("code", "PRU")(
"extra",
t.extraPubList
);
}
}
function en(t, e) {
1 & t && _.Pb(0, "div", 33);
}
function nn(t, e) {
if (
(1 & t && (_.Ub(0, "div", 31), _.Pb(1, "div", 32), _.Tb()), 2 & t)
) {
const t = _.ec(2);
_.Cb(1),
_.lc("ggPosition", t.ggPosition.VideoPageRight)("code", "PRD")(
"extra",
t.extraPubList
);
}
}
function on(t, e) {
if (
(1 & t && (_.Ub(0, "div", 31), _.Pb(1, "app-live-chat", 34), _.Tb()),
2 & t)
) {
const t = _.ec(2);
_.Cb(1),
_.lc("uniqueKey", t.uniqueKey)("lowerHeight", t.enbaleChatRoomPRU);
}
}
function an(t, e) {
if ((1 & t && _.Pb(0, "video-publisher", 35), 2 & t)) {
const t = _.ec(2);
_.lc("publisher", t.video.publisher)(
"uid",
null == t.user ? null : t.user.id
)("smallest", 2 === t.danmuChatRoomControl);
}
}
const sn = function (t) {
return { "float-player": t };
};
function cn(t, e) {
if (1 & t) {
const t = _.Vb();
_.Ub(0, "div", 18),
_.Ub(1, "div", 19),
_.Ub(2, "div", 20),
_.Ub(3, "div", 21),
_.Ub(4, "dn-videoplayer", 22),
_.bc("onVideoReady", function (e) {
return _.Ac(t), _.ec().onPlayerReady(e);
})("onErrorHandler", function () {
return _.Ac(t), _.ec().handleError();
})("onChangeLanguage", function (e) {
return _.Ac(t), _.ec().changingLanguage(e);
})("onPlay", function () {
return _.Ac(t), _.ec().onPlay();
})("apiReady", function (e) {
return _.Ac(t), _.ec().onPlayerApiReady(e);
})("onCloseSmallPlayer", function () {
return _.Ac(t), _.ec().closeSmallPlayer();
}),
_.Tb(),
_.Tb(),
_.Ub(5, "app-video-user-data-bar", 23),
_.bc("userBehaviorEvent", function (e) {
return _.Ac(t), _.ec().onUserrBehavior(e);
}),
_.Tb(),
_.Ic(6, Zi, 1, 3, "div", 24),
_.Tb(),
_.Ub(7, "div", 25),
_.Ic(8, tn, 2, 3, "div", 26),
_.Ic(9, en, 1, 0, "div", 27),
_.Ic(10, nn, 2, 3, "div", 26),
_.Ic(11, on, 2, 2, "div", 26),
_.Ub(12, "div", 28),
_.Ic(13, an, 1, 3, "video-publisher", 29),
_.Tb(),
_.Tb(),
_.Tb(),
_.Tb();
}
if (2 & t) {
const t = _.ec();
_.Cb(2),
_.lc("ngClass", _.qc(43, sn, t.showSmallPlayer)),
_.Cb(2),
_.lc("mediaTitle", t.mediaTitle)(
"isFloatPlayer",
t.showSmallPlayer
)("shouldSkipAds", t.getGID > 0 || t.hasBought)(
"needBought",
t.getGID <= 0
)("hasBought", t.hasBought)(
"showNextButton",
t.playListConfig.canSelect
)("playlist", t.playlist)("playlistType", t.whichListType)(
"filterGold",
t.filterGold
)("filterCallback", t.filterCallbackFunc)(
"unlockCallback",
t.unlockCallbackFunc
)("logo", "auto")("playNextCallback", t.playNextFunc)(
"serverInfo",
t.serverInfo
)("isPlayRatio", t.playRatio)("previewFormat", t.previewFormat)(
"languageList",
t.languageList
)("language", t.language)("bitrates", t.bitrates)(
"isLine",
t.isLine
)("unlockGold", t.unlockGold)("playingMedia", t.playingMedia)(
"video",
t.video
)("newMediaKey", t.newMediaKey)("isLive", t.isLive)("user", t.user)(
"isUserFilterAd",
t.isUserFilterAd
)("mediaList", t.pendingPlayList.medias)(
"danmuChatRoomControl",
t.danmuChatRoomControl
)("adsDanmus", t.adsDanmus)("playListConfig", t.playListConfig),
_.Cb(1),
_.lc("isLive", t.isLive)("video", t.video)(
"commentsCount",
t.commentsCount
)("mediaTitle", t.mediaTitle)(
"danmuChatRoomControl",
t.danmuChatRoomControl
),
_.Cb(1),
_.lc("ngIf", !!t.mediaKey),
_.Cb(2),
_.lc("ngIf", 2 !== t.danmuChatRoomControl || t.enbaleChatRoomPRU),
_.Cb(1),
_.lc("ngIf", 2 !== t.danmuChatRoomControl || t.enbaleChatRoomPRU),
_.Cb(1),
_.lc("ngIf", 2 !== t.danmuChatRoomControl),
_.Cb(1),
_.lc("ngIf", 2 === t.danmuChatRoomControl),
_.Cb(2),
_.lc("ngIf", null != t.video);
}
}
function rn(t, e) {
if (
(1 & t && (_.Ub(0, "div", 36), _.Pb(1, "app-list", 37), _.Tb()),
2 & t)
) {
const t = _.ec();
_.Cb(1),
_.lc("items", t.playlist)("isWide", t.wideButton)(
"newMediaKey",
t.newMediaKey
)("currentKey", t.newMediaKey)("pageSize", t.playListPageSize)(
"isLive",
t.isLive
);
}
}
function ln(t, e) {
if (
(1 & t &&
(_.Ub(0, "div", 36), _.Pb(1, "app-list-by-year", 38), _.Tb()),
2 & t)
) {
const t = _.ec();
_.Cb(1),
_.lc("items", t.playlist)("fromPlayer", !1)(
"newMediaKey",
t.newMediaKey
)("currentKey", t.newMediaKey);
}
}
function _n(t, e) {
if ((1 & t && (_.Ub(0, "span"), _.Kc(1), _.Tb()), 2 & t)) {
const t = _.ec(2);
_.Cb(1),
_.Mc("(", 0 === t.video.commentStatus ? t.commentsCount : 0, ")");
}
}
function gn(t, e) {
if (1 & t) {
const t = _.Vb();
_.Ub(0, "app-dn-comments", 48),
_.bc("onCommentsLoaded", function (e) {
return _.Ac(t), _.ec(2).setCommentCount(e);
}),
_.Tb();
}
if (2 & t) {
const t = _.ec(2);
_.lc("videoId", t.video.id);
}
}
function dn(t, e) {
if (1 & t) {
const t = _.Vb();
_.Ub(0, "div", 39, 40),
_.Ub(2, "div", 41),
_.Ub(3, "h4", 42),
_.Pb(4, "i", 43),
_.Kc(5, " \u8bc4\u8bba\u533a"),
_.Tb(),
_.Ic(6, _n, 2, 1, "span", 44),
_.Tb(),
_.Ub(7, "app-comment-box", 45, 46),
_.bc("commentSuccessEvent", function (e) {
return _.Ac(t), _.ec().commentCountHandler(e);
}),
_.Tb(),
_.Ic(9, gn, 1, 1, "app-dn-comments", 47),
_.Tb();
}
if (2 & t) {
const t = _.ec();
_.Cb(6),
_.lc("ngIf", t.commentsCount),
_.Cb(1),
_.lc("videoId", t.video.id)("commentStatus", t.video.commentStatus),
_.Cb(2),
_.lc("ngIf", t.video && 0 === t.video.commentStatus);
}
}
function hn(t, e) {
1 & t &&
(_.Ub(0, "div", 49),
_.Pb(1, "div", 41),
_.Pb(2, "app-sidebar-related-videos", 50),
_.Tb());
}
function pn(t, e) {
1 & t &&
(_.Ub(0, "div", 59),
_.Ub(1, "div"),
_.Pb(2, "app-loader-spinner"),
_.Ub(3, "p"),
_.Kc(4, "\u6b63\u5728\u63d0\u4ea4..."),
_.Tb(),
_.Tb(),
_.Tb());
}
function un(t, e) {
1 & t && (_.Ub(0, "div", 60), _.Pb(1, "app-purchase-required"), _.Tb());
}
function bn(t, e) {
1 & t &&
(_.Ub(0, "div", 61),
_.Kc(
1,
" \u5f00\u901aVIP\uff0c\u5c0a\u4eab\u5168\u7ad9VIP\u7279\u6743 "
),
_.Tb());
}
function mn(t, e) {
if (1 & t) {
const t = _.Vb();
_.Ub(0, "div", 62),
_.bc("click", function () {
return _.Ac(t), _.ec(2).buyMedia();
}),
_.Kc(1, "\u7acb\u523b\u89e3\u9501"),
_.Tb();
}
}
function fn(t, e) {
1 & t && _.Pb(0, "div", 63);
}
function Pn(t, e) {
if (1 & t) {
const t = _.Vb();
_.Ic(0, pn, 5, 0, "div", 51),
_.Ic(1, un, 2, 0, "div", 52),
_.Ic(2, bn, 2, 0, "div", 53),
_.Ub(3, "div", 54),
_.Ic(4, mn, 2, 0, "div", 55),
_.Ic(5, fn, 1, 0, "div", 56),
_.Ub(6, "div", 57),
_.bc("click", function () {
return _.Ac(t), _.ec().showRechargeBox();
}),
_.Kc(7, "\u5f00\u901aVIP"),
_.Tb(),
_.Tb(),
_.Pb(8, "app-dn-dialog-close-button", 58);
}
if (2 & t) {
const t = e.data,
i = _.ec();
_.lc("ngIf", i.purchasing),
_.Cb(1),
_.lc("ngIf", !t.isLive),
_.Cb(1),
_.lc("ngIf", t.isLive),
_.Cb(2),
_.lc("ngIf", !t.isLive),
_.Cb(1),
_.lc("ngIf", !t.isLive),
_.Cb(3),
_.lc("dialog", "purchase-required");
}
}
function vn(t, e) {
1 & t &&
(_.Pb(0, "app-message-dialog", 64),
_.Ub(1, "div", 54),
_.Pb(2, "app-purchase-success"),
_.Tb(),
_.Pb(3, "app-dn-dialog-close-button", 58)),
2 & t &&
(_.lc("message", e.data.message),
_.Cb(3),
_.lc("dialog", "purchase-success"));
}
function Cn(t, e) {
if (1 & t) {
const t = _.Vb();
_.Ub(0, "div", 65),
_.Ub(1, "h5", 66),
_.Kc(2),
_.Tb(),
_.Tb(),
_.Ub(3, "div", 54),
_.Ub(4, "div", 67),
_.Kc(5, "\u83b7\u53d6\u91d1\u5e01"),
_.Tb(),
_.Pb(6, "div", 63),
_.Ub(7, "div", 68),
_.bc("click", function () {
return _.Ac(t), _.ec().showRechargeBox();
}),
_.Kc(8, "\u5145\u503cVIP"),
_.Tb(),
_.Tb(),
_.Pb(9, "app-dn-dialog-close-button", 58);
}
if (2 & t) {
const t = e.data;
_.Cb(2),
_.Mc(
"\u60a8\u5f53\u524d\u91d1\u5e01\u4e0d\u8db3",
t["purchase-required-price"],
"\uff0c\u8bf7\u83b7\u53d6\u91d1\u5e01\u6216\u5347\u7ea7VIP\u540e\u518d\u8bd5\u3002"
),
_.Cb(2),
_.lc("routerLink", "/user/index"),
_.Cb(5),
_.lc("dialog", "media-unavailable");
}
}
function On(t, e) {
if (1 & t) {
const t = _.Vb();
_.Ub(0, "div", 69),
_.Pb(1, "div", 70),
_.Ub(2, "h5", 71),
_.Kc(
3,
"\u6b64\u529f\u80fd\u4ec5\u9650 VIP \u7528\u6237\u4f7f\u7528"
),
_.Tb(),
_.Tb(),
_.Ub(4, "div", 54),
_.Ub(5, "div", 68),
_.bc("click", function () {
return _.Ac(t), _.ec().showRechargeBox();
}),
_.Kc(6, "\u5347\u7ea7VIP"),
_.Tb(),
_.Pb(7, "div", 63),
_.Pb(8, "app-dn-dialog-button", 72),
_.Tb(),
_.Pb(9, "app-dn-dialog-close-button", 58);
}
2 & t &&
(_.Cb(8),
_.lc("dialog", "vip-only"),
_.Cb(1),
_.lc("dialog", "vip-only"));
}
function Mn(t, e) {
if (1 & t) {
const t = _.Vb();
_.Ub(0, "div", 60),
_.Ub(1, "div", 73),
_.Kc(
2,
"\u4eba\u592a\u591a\u4e86\uff0c\u8bf7\u7a0d\u7b49\u4e00\u4f1a\u513f\u518d\u8fdb\u5427\uff01"
),
_.Tb(),
_.Ub(3, "div", 74),
_.Kc(
4,
"\u5ba2\u6237\u7aef\u548cVIP\u7528\u6237\u4e0d\u53d7\u9650\u5236\uff01"
),
_.Tb(),
_.Tb(),
_.Ub(5, "div", 54),
_.Ub(6, "div", 75),
_.bc("click", function () {
return _.Ac(t), _.ec().showRechargeBox();
}),
_.Kc(7, "\u5145\u503cVIP"),
_.Tb(),
_.Pb(8, "div", 63),
_.Ub(9, "div", 75),
_.bc("click", function () {
return _.Ac(t), _.ec().toDownloadPage();
}),
_.Kc(10, "\u4e0b\u8f7d\u5ba2\u6237\u7aef"),
_.Tb(),
_.Tb(),
_.Pb(11, "app-dn-dialog-close-button", 58);
}
2 & t && (_.Cb(11), _.lc("dialog", "live-online-limit"));
}
let xn = (() => {
class t {
constructor(
t,
e,
i,
n,
o,
a,
s,
c,
r,
_,
g,
d,
h,
p,
u,
b,
m,
f,
P,
C,
O,
M
) {
(this._videoService = t),
(this._router = e),
(this._activatedRoute = i),
(this._seoService = n),
(this._dnDialogService = o),
(this._rechargeBoxService = a),
(this._favoriteService = s),
(this._purchaseRequiredDialogService = c),
(this._purchaseSuccessDialogService = r),
(this.store = _),
(this._storage = g),
(this.watchHistoy = d),
(this._playHistoryService = h),
(this._permission = p),
(this.danmuFacade = u),
(this.httpHelper = b),
(this.rankedVideosService = m),
(this._apiUrlHelper = f),
(this.videoPlayerSettingsService = P),
(this._userService = C),
(this._utility = O),
(this._scroll = M),
(this.pendingPlayList = {
medias: null,
adsList: null,
pauseList: null,
}),
(this.broker = ""),
(this.videoTitle = ""),
(this.mediaid = null),
(this.filterGold = 10),
(this.showSmallPlayer = !1),
(this.customData = null),
(this.smallPlayerValid = !0),
(this.start = 0),
(this.hasBought = 0),
(this.unlockGold = 100),
(this.forbiddeinPlay = ["videojs", "jwplayer"]),
(this.isVideoOver = !1),
(this.subscriptions = []),
(this.ggPosition = l.b),
(this.purchasing = !1),
(this.currentLanguage = 0),
(this.serverInfo = {}),
(this.playListPageSize = 50),
(this.contentWidth = { width: 1370, margin: 0 }),
(this.playlist = []),
(this.wideButton = !1),
(this.showSmallPlayerOffset = 540),
(this.qrHost = this._utility.GetHost(
"https://img.{Host}/qrcode/?url="
)),
(this.link = this._utility.GetHost(
"https://www.{Host}/app-download"
)),
(this.scrollToList = !1),
(this.isLive = !1),
(this.uniqueKey = ""),
(this.startTimeCount = !1),
(this.nowTime = null),
(this.lastTime = null),
(this.isUserFilterAd = !1),
(this.danmuChatRoomControl = 1),
(this.enbaleChatRoomPRU = !0),
(this.adsDanmus = []),
(this.mediaTitle = ""),
(this.currentRankList = []),
(this.rankListTitle = ""),
(this.rankMoreLink = ""),
(this.forbiddenFloatPlayer = !1),
(this._listener = () => {}),
(this.autoPlay = !1),
(this.playedKey = "-1"),
(this.viewTime = ""),
(this.lastuid = 0),
(this.currentUID = 0),
(this.playListConfig = {
canSelect: !1,
isWide: !1,
title: "\u9009\u96c6",
}),
(this.cinema = v.a.cinema),
(this.language = ""),
(this.languageList = []),
(this.previewFormat = ""),
(this.extraPubList = []),
(this.isLimitShow = !1),
(this.isNeedLoginShow = !1),
(this.playRatio = !1),
(this.bitrates = []),
(this.isLine = !1),
(this.app = v.a.app),
(this.onPlayReady = []),
(this.plaerReadyTimeout = null),
(this.isWatched = !1),
(this.watchtimeout = 60),
(this.lastTimer = null),
(this.shouldClose = !1),
(this.enableDownload =
this._utility.getSiteConfig.enableAndroidDownload ||
this._utility.getSiteConfig.enableIOSDonwload),
(this.reload = !1),
(this.scrollTimeout = null);
}
get playNextFunc() {
return this.nextVideo.bind(this, !0);
}
get getGID() {
var t, e;
return (
(null ===
(e =
null === (t = this.user) || void 0 === t
? void 0
: t.token) || void 0 === e
? void 0
: e.gid) || 0
);
}
onWindowScroll() {
this._utility.getWindow().pageYOffset > this.showSmallPlayerOffset
? this.smallPlayerValid &&
!this.forbiddenFloatPlayer &&
(this.showSmallPlayer = !0)
: ((this.showSmallPlayer = !1), (this.smallPlayerValid = !0));
}
ngOnInit() {
(window.rechargeBox = () => {
this._rechargeBoxService.changeDisplayStatus(!0);
}),
(this._utility.isNews = !1),
(this.user = this._userService.user),
(this.lastuid = this.httpHelper.token.uid || 0),
this.subscriptions.push(
this._userService.userState$.subscribe((t) => {
(this.user = t), this.readState();
}),
this.videoPlayerSettingsService.playerSettings$.subscribe(
(t) => {
this.forbiddenFloatPlayer =
"1" === t.forbiddenFloatingPlayer;
}
)
),
this._purchaseRequiredDialogService.purchaseRequiredDialogSource$.subscribe(
(t) => {
this.videoInShoppingCart = {
price: t.price,
mediaId: t.mediaId,
};
}
),
(this.playRatio = this._permission.isValid(O.b.PlayRatio)),
this.subscriptions.push(
this._activatedRoute.queryParams.subscribe((t) => {
let e = t.id;
(this.scrollToList = !!t.s),
e &&
((this.isWatched = !1),
(this.autoPlay = !1),
(this.mediaKey = e),
this.renderPlayer(),
this.danmuFacade.resetDanmu(null));
}),
this._activatedRoute.params.subscribe((t) => {
this._activatedRoute.snapshot.queryParams.id ||
((this.isWatched = !1),
(this.mediaKey = t.id),
(this.autoPlay = !0),
this.renderPlayer(),
this.danmuFacade.resetDanmu(null));
}),
(this.checkForbiddenPlayer = this._utility.setTimeout(() => {
this.checkForError();
}, 5e3)),
this._activatedRoute.fragment.subscribe((t) => {
"comments" === t && this.scrollToComments();
}),
Object(s.a)(window, "scroll", { passive: !0 }).subscribe(
Object(k.a)(this.onWindowScroll.bind(this)).bind(this)
)
);
}
stratScroll() {}
checkForError() {
for (var t = 0; t < this.forbiddeinPlay.length; ++t)
if (this._utility.getWindow()[this.forbiddeinPlay[t]])
return (
confirm(
"\u68c0\u67e5\u5230\u60a8\u6b63\u5728\u4f7f\u7528\u6076\u610f\u63d2\u4ef6\uff0c\u8be5\u63d2\u4ef6\u4f1a\u7be1\u6539\u7f51\u7ad9\u6570\u636e\uff0c\u81f4\u4f7f\u7f51\u7ad9\u90e8\u5206\u529f\u80fd\u5931\u6548\uff0c\u5e76\u5b58\u5728\u76d7\u53f7\u98ce\u9669\u3002"
),
void (this._utility.getWindow().location.href = "/")
);
this.checkForbiddenPlayer = this._utility.setTimeout(
() => this.checkForError(),
5e3
);
}
readState() {
var t, e, i, n;
(null === (t = this.user) || void 0 === t ? void 0 : t.id) > 0 &&
this.lastuid !=
(null === (e = this.user) || void 0 === e ? void 0 : e.id) &&
this.onUserInfoChanged(),
this.api &&
this.pendingPlayList.pauseList &&
this.api.invokePauseList(this.pendingPlayList.pauseList),
(this.lastuid = (
null === (i = this.user) || void 0 === i ? void 0 : i.id
)
? null === (n = this.user) || void 0 === n
? void 0
: n.id
: this.lastuid);
}
onUserInfoChanged() {
this.mediaKey &&
((this.currentUID = this.user.id),
this._videoService
.IsUserFilter(this.user, this.newMediaKey)
.subscribe((t) => {
t &&
(0 === this.user.token.gid &&
(this.hasBought = this._permission.isValid(
O.b.FilterFrontAds
)
? 2
: t.isFilter
? 1
: 0),
(this.broker = t.broker));
}),
this.timeout && clearTimeout(this.timeout),
(this.timeout = setTimeout(() => {
this.reloadClairty();
}, 500)));
}
renderVideoPage() {
this.videoKey &&
this.subscriptions.push(
this._videoService
.getVideo(this.user, this.videoKey)
.subscribe((t) => {
this.invokeDataToVideoPage(t),
this._videoService
.getPlaylistByLanguage(
this.user,
this.videoKey,
this.video.taxis,
this.video.cid
)
.subscribe((t) => {
(this.whichListType = t.playListType || "None"),
(this.playlist = t.playList),
(this.playListPageSize = t.pageSize);
});
})
);
}
reloadClairty() {
this.newMediaKey &&
this._videoService
.getMedia(this.user, this.newMediaKey, !1)
.subscribe((t) => {
const e = t.clarity.filter((t) => "auto" !== t.description).map((t) => ({...t,isVIP: false,isEnabled: true,isNav: true}));
if (
((this.isLive =
!!e[e.length - 1].path && e[e.length - 1].path.isLive),
t.isLimitedStream && this.isLive)
)
return (
this._dnDialogService.open("live-online-limit"),
void (this.isLimitShow = !0)
);
this.isLive && this.isLimitShow
? this.renderPlayer()
: this.isNeedLoginShow
? this.invokePlayVideo(t)
: ((this.adsDanmus = t.barrageData
? t.barrageData.map((t) =>
Object.assign(Object.assign({}, t), {
isClicked: t.isGetBarrageAdCoin,
link: t.linkurl,
contxt: t.signature,
buttonText: t.btnTxt,
isAds: !1,
})
)
: []),
this.invokeClarity(t),
this.checkIsBought(t),
this.reloadPause(t),
console.log("reload clarity"));
});
}
reloadPause(t) {
let e = [];
t.pauseData &&
(e = t.pauseData.map((t) => this.converHtml5ToMedia2(t))),
this.api &&
this.pendingPlayList.pauseList &&
this.api.invokePauseList(this.pendingPlayList.pauseList),
(this.pendingPlayList.pauseList = null);
}
getRankList() {
this.rankList
? this.selectCurrentRankList()
: this.rankedVideosService.getRankedVideos().subscribe((t) => {
(this.rankList = t), this.selectCurrentRankList();
});
}
selectCurrentRankList() {
var t;
const e = this.video.cid.match(/\d+,\d+,\d+/g)[0];
this.currentRankList =
(null === (t = this.rankList.find((t) => t.cid === e)) ||
void 0 === t
? void 0
: t.items) || [];
}
getVideoPageHotTop(t) {
const e = this._apiUrlHelper.urlBuilder("nav-second-links", {
cid: t,
});
return this.httpHelper
.getWithCache(e)
.pipe(
Object(I.a)((t) =>
t.map((t) => ({
cid: t.videoType,
genre: t.videoType,
key: t.link,
language: t.lang,
link: t.link,
published: t.year,
rating: (10 * t.pinFenValue).toFixed(1).toString(),
region: t.regional,
title: t.title,
updates: t.updateNumber,
}))
)
);
}
invokeDataToVideoPage(t) {
var e, i, n, o, a, s, c;
(this.video = t),
(this.wideButton =
null === (e = this.video) || void 0 === e
? void 0
: e.isWide),
(this.playListConfig = {
isWide: this.wideButton,
canSelect:
"movie" !==
(null === (i = this.video) || void 0 === i
? void 0
: i.category) &&
null !=
(null === (n = this.video) || void 0 === n
? void 0
: n.cid) &&
"top" !==
(null === (o = this.video) || void 0 === o
? void 0
: o.cid) &&
!(null === (a = this.video) || void 0 === a
? void 0
: a.cid.startsWith("0,1,6,57")),
title:
(null === (s = this.video) || void 0 === s
? void 0
: s.cid) &&
(null === (c = this.video) || void 0 === c
? void 0
: c.cid.startsWith("0,1,111"))
? "\u9009\u53f0"
: "\u9009\u96c6",
});
let r = (this.video.summary || "").substring(0, 255);
(this.watchtimeout = this.video.watchTimeout),
(this.unlockGold = this.video.unlockGold),
(this.filterGold = this.video.filtergold),
this.updateUserBehaviors(),
this.watchHistoy.assingVideo(this.video),
(this.history = this.watchHistoy.getFromLocal()),
(this.posterImage = this.video.image),
(this.videoTitle = this.video.title),
this._seoService.setTitle(
this.video.title +
(this.video.isMediaTitleVisible
? "-" + this.mediaTitle
: "") +
"-\u514d\u8d39\u5728\u7ebf\u89c2\u770b"
),
this._seoService.setDescription(
this.video.title +
(r ? ":" + r : "") +
"\u53ef\u4ee5\u5728\u7ebf\u514d\u8d39\u770b"
),
this._seoService.setKeywords(this.video.keywords),
this._seoService.setImage(this.video.image),
this._videoService
.pageViewRecord(this.video.recApiUrl)
.subscribe((t) => {
"ok" === t &&
this._favoriteService.changeFavoriteStatus(!0);
}),
(this.language = t.language),
(this.languageList = t.languages),
this.store.dispatch({ type: p.d, video: this.video }),
this.store.dispatch({ type: p.c, language: this.language }),
(this.extraPubList = t.extraList || []);
}
changingLanguage(t) {
t.attr
? (this.api.showInfo(
"\u6b63\u5728\u5207\u6362\u5230[" + t.title + "]",
5,
!1
),
this._videoService
.getPlaylistByLanguage(
this.user,
t.link,
this.video.taxis,
this.video.cid
)
.subscribe((e) => {
var i;
(i =
e.playList.length > 1
? e.playList.findIndex(
(t) => t.title == this.mediaTitle
)
: 0) > -1
? (this._storage.SetConfig({ lang: t.attr }),
(this.start = this.api.currentTime),
setTimeout(() => {
this.api.showInfo(
"\u5207\u6362\u6210\u529f",
5,
!1
);
}, 3e3),
this.toVideoByID(e.playList[i].key))
: alert(
"\u64ad\u653e\u5217\u8868\u51fa\u9519\uff0c\u8bf7\u8054\u7cfb\u5ba2\u670d"
);
}))
: this.api.showInfo(
"\u6b63\u5728\u64ad\u653e[" + t.title + "]",
5,
!1
);
}
invokeClarity(t) {
if (t) {
const e = t.clarity.filter((t) => "auto" !== t.description).map((t) => ({...t,isVIP: false,isEnabled: true,isNav: true}));
(this.isLive =
!!e[e.length - 1].path && e[e.length - 1].path.isLive),
(this.uniqueKey = t.uniqueKey),
(this.isLine = !!t.isLine),
(this.bitrates = e.map(
(t, i) => (
(t.label = this.isLine ? t.memo : t.title),
(t.title = this.isLine ? t.label : t.title),
(t.qualityIndex = e.length - 1 - i),
(t.short = "auto" == t.description ? "" : t.description),
(t.bitrate = t.bitrate / 1e3),
t
)
)),
setTimeout(() => {
var e;
this.isUserFilterAd =
!(
!(null === (e = this.user) || void 0 === e
? void 0
: e.id) || !t.isUserFilterAd
) && t.isUserFilterAd;
}, 200);
const index = this.bitrates.findIndex((t) => t.bitrate < 1081);
console.log(this.bitrates, this.playingMedia, index);
if(index !== -1) this.playingMedia = this.bitrates[index];
}
}
checkIsBought(t) {
this.hasBought = true;
}
invokePlayVideo(t) {
var e;
console.log('invokePlayVideo', t);
(this.danmuChatRoomControl = t.barrageStatus),
(this.adsDanmus = t.barrageData
? t.barrageData.map((t) =>
Object.assign(Object.assign({}, t), {
isClicked: t.isGetBarrageAdCoin,
link: t.linkurl,
contxt: t.signature,
buttonText: t.btnTxt,
isAds: !0,
})
)
: []),
(this.previewFormat = t.previewFormat),
(this.mediaTitle = t.mediaTitle),
this.videoKey != t.key
? ((this.videoKey = t.key), this.renderVideoPage())
: (null === (e = this.video) || void 0 === e
? void 0
: e.title) &&
this._seoService.setTitle(
this.video.title +
(this.video.isMediaTitleVisible
? "-" + this.mediaTitle
: "") +
"-\u514d\u8d39\u5728\u7ebf\u89c2\u770b"
);
const i = t.clarity.filter((t) => "auto" !== t.description).map((t) => ({...t,isVIP: false,isEnabled: true,isNav: true}));
if (
((this.isLive =
!!i[i.length - 1].path && i[i.length - 1].path.isLive),
t.isLimitedStream && this.isLive)
)
return (
this._dnDialogService.open("live-online-limit"),
void (this.isLimitShow = !0)
);
if (t.needLogin)
return (
this._dnDialogService.open("login-required-dialog"),
void (this.isNeedLoginShow = !0)
);
(this.isNeedLoginShow = !1),
(this.isLimitShow = !1),
this.invokeClarity(t),
this.checkIsBought(t);
const n = t.uniqueKey;
this.danmuFacade.setDanmuKey(n),
this.danmuFacade.requireDanmuList({ key: n, user: this.user }),
this.start ||
(t.startSecond > 0
? ((this.start = t.startSecond),
setTimeout(() => {
this.api &&
this.api.showInfo(
"\u4e3a\u60a8\u8df3\u5230\u4e0a\u6b21\u64ad\u653e\u7684\u65f6\u95f4",
5,
!1
);
}, 500))
: (this.start = 0));
var o = [],
a = [],
s = [];
if (
((this.serverInfo = t.videoServer),
(this.customData = t.customData),
this.interpreterCustom(),
t.title && this._seoService.setTitle(t.title),
t.startData && !this._permission.isValid(O.b.FilterFrontAds))
)
for (var c = 0; c < t.startData.length; ++c) {
var r = this.converHtml5ToMedia2(t.startData[c]);
o.push(r);
}
var l = 3,
_ = t.maxFrontAds || 2;
for (c = 0; c < t.flvPathList.length; ++c) {
var g = t.flvPathList[c];
if (
(g.needSign &&
(g.result = g.backup =
this.httpHelper.uriSignature(
this.httpHelper.appendUserInfo(g.result).url
)),
g.link)
)
g.result &&
(this._permission.isValid(O.b.FilterFrontAds) ||
(this.shouldUseFronAds(t.title)
? l > 0 &&
o.length < _ &&
(--l, o.push(this.converHtml5ToMedia2(g)))
: a.push(this.converHtml5ToMedia2(g))));
else {
this.broker = t.flvPathList[c].broker;
var d = this.converHtml5ToMedia2(t.flvPathList[c]);
(d.title = t.key), o.push(d);
}
}
t.pauseData &&
!this._permission.isValid(O.b.FilterPauseAds) &&
(s = t.pauseData.map((t) => this.converHtml5ToMedia2(t))),
this.assingPendding("medias", o),
0 === a.length &&
(this.user.id > 0 &&
this.user.token.gid <= 0 &&
(this.hasBought = this._permission.isValid(
O.b.FilterFrontAds
)
? 2
: this.hasBought),
(a = [{ src: "", href: "", isAd: !0 }])),
(this.mediaid = t.mediaKey),
this.shouldUseFronAds(t.title) ||
this.playOrWait();
}
normalRenderPlayer() {
this.subscriptions.push(
this._videoService
.getMedia(this.user, this.mediaKey, this.autoPlay)
.subscribe((t) => {
t &&
t.mediaKey &&
(this.invokePlayVideo(t),
(this.newMediaKey = t.mediaKey),
(this.lastTimer = null));
})
),
(this.shouldClose = !0);
}
renderPlayer() {
this.mediaKey && this.normalRenderPlayer();
}
shouldUseFronAds(t) {
return !1;
}
get filterCallbackFunc() {
return this.filterCallback.bind(this);
}
get unlockCallbackFunc() {
return this.unlockCallback.bind(this);
}
unlockCallback(t) {
this.user.id
? this.user.id &&
(this._purchaseRequiredDialogService.setState({
price: this.unlockGold,
mediaId: t,
}),
this._dnDialogService.open("purchase-required", {
"purchase-required-price": this.unlockGold,
"media-id": t,
}))
: this._dnDialogService.open("login-required-dialog");
}
filterCallback(t, e) {
this.user.id
? this._videoService
.filterVideo(this.user, this.mediaid)
.subscribe((i) => {
const n = i[0];
n && (n && n.issucess ? t() : e(n));
})
: e("\u8bf7\u5148\u767b\u5f55");
}
converHtml5ToMedia2(t) {
return {
title: "",
src: this.httpHelper.uriSignature(t.result, !1),
length: 0,
type: this.getType(t.isHls),
href: decodeURIComponent(t.link),
isStream: 0 === t.type,
isAd: !!t.link,
isHls: t.isHls,
isImage:
t.result &&
(t.result.indexOf(".jpg") > -1 ||
t.result.indexOf(".png") > -1 ||
t.result.indexOf(".gif") > -1),
backup: "",
rtmp: "",
isLive: t.isLive,
};
}
assingPendding(t, e) {
this.pendingPlayList[t] = e;
}
playOrWait() {
null != this.api &&
(this.pendingPlayList.adsList &&
(this.api.invokeInterstitial(this.pendingPlayList.adsList),
(this.pendingPlayList.adsList = null)),
this.pendingPlayList.pauseList &&
(this.api.invokePauseList(this.pendingPlayList.pauseList),
(this.pendingPlayList.pauseList = null)));
}
interpreterCustom() {
var t = { start: this.start || 0, info: "", end: 0, endInfo: "" };
this.customData &&
(!this.start &&
this.customData.s > 0 &&
((t.start = this.customData.s), (t.info = "vipstart")),
this.customData.e &&
((t.end = this.customData.e), (t.endInfo = "vipend"))),
null != this.api
? this.api.invokePlayConfig(t)
: this.onPlayReady.push(() => {
this.api.invokePlayConfig(t);
}),
(this._utility.preLoadPlaySecond = t),
(this.start = 0);
}
getType(t) {
return t ? "application/vnd.apple.mpegurl" : "video/mp4";
}
updateUserBehaviors() {}
onPlayerReady(t) {
(this.api = t),
this.playOrWait(),
this.api.subscript("time", (t) => {
this.broker &&
(!this.lastTimer ||
Math.abs(t.current - this.lastTimer.current) >
1e3 * this.watchtimeout) &&
((this.lastTimer = t),
this._videoService.sendPlayHistory(
this.broker.replace(
"__placeholder__",
Math.floor(t.current / 1e3) +
"_" +
Math.floor(t.total / 1e3)
) +
"&timeout=" +
this.watchtimeout,
this.api.getAndDeleteLogs()
));
}),
this.api.subscript("fullscreen", (t) => {
t.isfullscreen || this._utility.getWindow().scrollTo(0, 0);
}),
this.api.subscript("playAds", (t) => {
t.href &&
this._videoService.sendWatched(
t.href.replace("/c/c", "/c/d").replace("http:", "https:")
);
}),
this.onPlayReady.length > 0 &&
(this.onPlayReady.forEach((t) => {
t();
}),
(this.onPlayReady = []));
}
ngOnDestroy() {
this.subscriptions.forEach((t) => t.unsubscribe()),
this._seoService.removeImage(),
this.user.id &&
(this._utility.clearTimeout(t.timeout),
(t.timeout = this._utility.setTimeout(
() => this._playHistoryService.changePlayHistoryStatus(!0),
5e3
))),
this._utility.clearTimeout(this.checkForbiddenPlayer),
this.danmuFacade.setDanmuKey(""),
this._seoService.setKeywords();
}
onPlay() {}
onUserrBehavior(t) {
if ("string" == typeof t)
"favorite" === t && (this.video.userBehaviors.favorite = !0);
else
switch (t.name) {
case "likeStatus":
(this.video.userData.like = t.good),
(this.video.userData.dislike = t.bad),
(this.video.userBehaviors.like = 1 == t.likeStatus),
(this.video.userBehaviors.dislike = 2 == t.likeStatus);
}
}
buyMedia() {
if (this.user.dnCoins < this.videoInShoppingCart.price)
return void this._dnDialogService.open("media-unavailable", {
"media-unavailable-price": this.videoInShoppingCart.price,
});
const t = this.videoInShoppingCart.mediaId;
t &&
((this.purchasing = !0),
this._videoService
.purchaseMedia(this.user, t)
.subscribe((t) => {
if (((this.purchasing = !1), t.issucess)) {
let e = t.key.split(",")[0];
this._userService.updateUserData({
dnCoins: t.json.gold,
level: t.json.currentLevel,
}),
this._purchaseSuccessDialogService.setState({
mediaKey: t.key.split(",")[0],
videoKey: this.video.key,
}),
this.playlist
.filter((t) => t.id == e)
.forEach((t) => {
t.bought = !0;
}),
this._dnDialogService.open("purchase-success", {
success: t.key,
message:
'<h5>\u89c6\u9891\u5df2\u89e3\u9501\uff0c\u5e76\u5df2\u6dfb\u52a0\u5230\u6536\u85cf\u5939\u3002</h5><div class="leftUnlocksToday">' +
t.subtitle +
"</div>",
}),
this.reloadClairty();
} else
this._dnDialogService.open("message-dialog", {
message: t,
});
}));
}
trySetresponsivePlayerSize() {}
showRechargeBox() {
this._dnDialogService.close("media-unavailable"),
this._dnDialogService.close("purchase-required"),
this._dnDialogService.close("coin-or-upgrade-to-skip-ad"),
this._dnDialogService.close("vip-only"),
this._dnDialogService.close("live-online-limit"),
this._rechargeBoxService.changeDisplayStatus(!0);
}
onUpdateTime() {}
getPlayList() {}
closeSmallPlayer() {
(this.smallPlayerValid = !1), (this.showSmallPlayer = !1);
}
nextVideo(t = !1, e, i) {
((this.user.id && this.user.token.gid > 0) || !0 === t) &&
this._videoService
.playNextVideo({ ID: this.mediaid })
.subscribe((t) => {
if (t && t.length) {
if (!t[0]) return (this.isVideoOver = !0), void i();
(this.customData = t[0].custom),
this.interpreterCustom(),
(this.start = 0),
this.toVideoByID(t[0].key),
(this.mediaid = t[0].id),
e && e();
} else i && i();
});
}
toVideoByID(t) {
var e = this._router.parseUrl(this._router.url);
(e.queryParams.start = ""),
(e.queryParams.a = ""),
delete e.queryParams.start,
delete e.queryParams.a,
(this.mediaKey = e.queryParams.id = decodeURIComponent(t)),
this._router.navigateByUrl(e, { replaceUrl: !0 });
}
handleError() {
this.renderPlayer();
}
setCommentCount(t) {
this.commentsCount = t;
}
onPlayerApiReady(t) {}
commentCountHandler(t) {
this.commentsCount += 1;
}
scrollToComments() {
clearTimeout(this.scrollTimeout),
this.video
? this._scroll.scroll({
document: this._utility.getDocument(),
duration: 100,
scrollTarget: "commentsArea",
})
: (this.scrollTimeout = setTimeout(() => {
this.scrollToComments();
}, 500));
}
toDownloadPage() {
this._dnDialogService.close("live-online-limit"),
this._router.navigate(["/app-download"]);
}
}
return (
(t.timeout = null),
(t.ɵfac = function (e) {
return new (e || t)(
_.Ob(c.a),
_.Ob(a.d),
_.Ob(a.a),
_.Ob(M.a),
_.Ob(d.a),
_.Ob(u.a),
_.Ob(m.a),
_.Ob(b.a),
_.Ob(f.a),
_.Ob(h.a),
_.Ob(C.a),
_.Ob(g),
_.Ob(r.a),
_.Ob(O.a),
_.Ob(x.a),
_.Ob(y.a),
_.Ob(D.a),
_.Ob(T.a),
_.Ob(w.a),
_.Ob(U.a),
_.Ob(P.a),
_.Ob(L.a)
);
}),
(t.ɵcmp = _.Ib({
type: t,
selectors: [["div", 8, "video-module"]],
inputs: { vgFor: "vgFor" },
features: [_.Bb([g, c.a, { provide: E.a, useClass: c.a }])],
attrs: Ji,
decls: 26,
vars: 8,
consts: [
[1, "main", 2, "padding-bottom", "30px"],
[1, "playPageTop"],
["class", "container v-page v-page-content d-flex", 4, "ngIf"],
["id", "playPageBottom", 1, "playPageBottom"],
["playPageBottom", ""],
[
1,
"container",
"v-page",
"v-page-content",
"boxed",
"d-flex",
2,
"padding-top",
"0",
],
[1, "left"],
[3, "video", "mediaTitle"],
[3, "ngSwitch"],
["class", "playlist-new playlist-new-type1", 4, "ngSwitchCase"],
["class", "bg-cover", "id", "commentsArea", 4, "ngIf"],
[
"class",
"page-right",
"style",
"padding-top: 10px;",
4,
"ngIf",
],
["toastContainer", ""],
["id", "purchase-required", 1, "dn-dialog-background"],
["id", "purchase-success", 1, "dn-dialog-background"],
["id", "media-unavailable", 1, "dn-dialog-background"],
["id", "vip-only", 1, "dn-dialog-background"],
["id", "live-online-limit", 1, "dn-dialog-background"],
[1, "container", "v-page", "v-page-content", "d-flex"],
[1, "d-flex", "w-100", "justify-content-center"],
[
1,
"page-container",
"video-player",
2,
"margin",
"0",
3,
"ngClass",
],
[1, "dn-videoplayer-wrap"],
[
"topPrefix",
"0",
3,
"mediaTitle",
"isFloatPlayer",
"shouldSkipAds",
"needBought",
"hasBought",
"showNextButton",
"playlist",
"playlistType",
"filterGold",
"filterCallback",
"unlockCallback",
"logo",
"playNextCallback",
"serverInfo",
"isPlayRatio",
"previewFormat",
"languageList",
"language",
"bitrates",
"isLine",
"unlockGold",
"playingMedia",
"video",
"newMediaKey",
"isLive",
"user",
"isUserFilterAd",
"mediaList",
"danmuChatRoomControl",
"adsDanmus",
"playListConfig",
"onVideoReady",
"onErrorHandler",
"onChangeLanguage",
"onPlay",
"apiReady",
"onCloseSmallPlayer",
],
[
3,
"isLive",
"video",
"commentsCount",
"mediaTitle",
"danmuChatRoomControl",
"userBehaviorEvent",
],
[
"class",
"dabc d-block block-mt",
3,
"ggPosition",
"code",
"extra",
4,
"ngIf",
],
[1, "ps", "pggd"],
["class", "bl", 4, "ngIf"],
["class", "block-mb", 4, "ngIf"],
[1, "video-publisher-container"],
[
"class",
"position-relative",
3,
"publisher",
"uid",
"smallest",
4,
"ngIf",
],
[
1,
"dabc",
"d-block",
"block-mt",
3,
"ggPosition",
"code",
"extra",
],
[1, "bl"],
[1, "dabc", 3, "ggPosition", "code", "extra"],
[1, "block-mb"],
[3, "uniqueKey", "lowerHeight"],
[1, "position-relative", 3, "publisher", "uid", "smallest"],
[1, "playlist-new", "playlist-new-type1"],
[
3,
"items",
"isWide",
"newMediaKey",
"currentKey",
"pageSize",
"isLive",
],
[3, "items", "fromPlayer", "newMediaKey", "currentKey"],
["id", "commentsArea", 1, "bg-cover"],
["comments", ""],
[1, "mb-4"],
[
"id",
"comments-title",
2,
"display",
"inline",
"line-height",
"36px",
"margin-right",
"8px",
],
[1, "iconfont", "iconpinglun"],
[4, "ngIf"],
[
"id",
"commentBox",
1,
"d-block",
"mb-4",
3,
"videoId",
"commentStatus",
"commentSuccessEvent",
],
["commentBox", ""],
[3, "videoId", "onCommentsLoaded", 4, "ngIf"],
[3, "videoId", "onCommentsLoaded"],
[1, "page-right", 2, "padding-top", "10px"],
[1, "d-block", "mb-4"],
[
"class",
"loading-overlay d-flex align-items-center justify-content-center",
4,
"ngIf",
],
[
"class",
"text-center",
"style",
"padding-top: 30px;",
4,
"ngIf",
],
[
"class",
"text-center",
"style",
"margin-top: 60px;font-size: 21px;",
4,
"ngIf",
],
[1, "dn-dialog-buttons"],
["class", "dn-button dn-button-red", 3, "click", 4, "ngIf"],
["class", "buttons-gap", 4, "ngIf"],
[
1,
"dn-button",
"dn-button-gold",
2,
"color",
"#FEC1A1 !important",
3,
"click",
],
[3, "dialog"],
[
1,
"loading-overlay",
"d-flex",
"align-items-center",
"justify-content-center",
],
[1, "text-center", 2, "padding-top", "30px"],
[
1,
"text-center",
2,
"margin-top",
"60px",
"font-size",
"21px",
],
[1, "dn-button", "dn-button-red", 3, "click"],
[1, "buttons-gap"],
[3, "message"],
[1, "text-center", "center-in-content", 2, "height", "70%"],
[1, "mx-2"],
[1, "dn-button", "dn-button-gold", 3, "routerLink"],
[1, "dn-button", "dn-button-gold", 3, "click"],
[1, "text-center"],
[2, "padding", "30px"],
[1, "mb-2"],
[2, "margin", "0 auto", 3, "dialog"],
[1, "text-content-in-dialog"],
[1, "main-color", "text-content-in-dialog"],
[1, "dn-button", 3, "click"],
],
template: function (t, e) {
1 & t &&
(_.Ub(0, "div", 0),
_.Ub(1, "div", 1),
_.Ic(2, cn, 14, 45, "div", 2),
_.Tb(),
_.Ub(3, "div", 3, 4),
_.Ub(5, "div", 5),
_.Ub(6, "div", 6),
_.Pb(7, "app-video-info", 7),
_.Sb(8, 8),
_.Ic(9, rn, 2, 6, "div", 9),
_.Ic(10, ln, 2, 4, "div", 9),
_.Rb(),
_.Ic(11, dn, 10, 4, "div", 10),
_.Tb(),
_.Ic(12, hn, 3, 0, "div", 11),
_.Tb(),
_.Tb(),
_.Tb(),
_.Pb(13, "div", null, 12),
_.Pb(15, "app-footer"),
_.Ub(16, "dn-dialog", 13),
_.Ic(17, Pn, 9, 6, "ng-template"),
_.Tb(),
_.Ub(18, "dn-dialog", 14),
_.Ic(19, vn, 4, 2, "ng-template"),
_.Tb(),
_.Ub(20, "dn-dialog", 15),
_.Ic(21, Cn, 10, 3, "ng-template"),
_.Tb(),
_.Ub(22, "dn-dialog", 16),
_.Ic(23, On, 10, 2, "ng-template"),
_.Tb(),
_.Ub(24, "dn-dialog", 17),
_.Ic(25, Mn, 12, 1, "ng-template"),
_.Tb()),
2 & t &&
(_.Cb(2),
_.lc("ngIf", !!e.mediaKey),
_.Cb(5),
_.lc("video", e.video)("mediaTitle", e.mediaTitle),
_.Cb(1),
_.lc("ngSwitch", e.whichListType),
_.Cb(1),
_.lc("ngSwitchCase", "byDefault"),
_.Cb(1),
_.lc("ngSwitchCase", "byDate"),
_.Cb(1),
_.lc("ngIf", e.video),
_.Cb(1),
_.lc(
"ngIf",
!(null != e.video && e.video.cid.startsWith("0,1,111"))
));
},
directives: [
n.n,
Ut,
n.p,
n.q,
Lt.a,
kt.a,
n.l,
At.a,
Me,
xe.a,
Xe,
mi,
fi.a,
Pi.a,
vi.a,
Ci.a,
Hi,
Fi.a,
$i.a,
Gi,
Qi.a,
Yi,
a.e,
Xi.a,
],
styles: [
"@media (max-width:1678px){h1[_ngcontent-%COMP%]{font-size:24px}.video-meta[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{font-size:15px;line-height:24px}.page-container[_ngcontent-%COMP%]{width:840px;margin:0 auto;padding:0 16px 16px 0}.page-container.video-meta[_ngcontent-%COMP%]{padding:20px;width:689px;min-width:689px;height:460px}.page-container.video-player[_ngcontent-%COMP%]{width:840px;height:473px;background-color:#000}.playPageBottom[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{width:840px;margin-left:30px}}@media (max-width:1439px){.page-right[_ngcontent-%COMP%]{padding-right:8px;margin-left:14px}}@media (min-width:1440px) and (max-width:1678px){.page-right[_ngcontent-%COMP%]{padding-right:8px;margin-left:16px}}@media (min-width:1679px) and (max-width:1911px){.page-right[_ngcontent-%COMP%]{padding-right:8px;margin-left:18px}}@media (min-width:1912px){.page-right[_ngcontent-%COMP%]{padding-right:8px;margin-left:21px}}.playPageTop[_ngcontent-%COMP%]{min-height:965px;padding-bottom:0}.playPageBottom[_ngcontent-%COMP%]{min-height:1610px}@media (min-width:1679px) and (max-width:1911px){.playPageTop[_ngcontent-%COMP%]{min-height:852px!important;padding-bottom:0}}@media (max-width:1678px){.playPageTop[_ngcontent-%COMP%]{min-height:694px!important;padding-bottom:0}}@media (min-width:1679px) and (max-width:1911px){.page-container[_ngcontent-%COMP%]{width:1056px;margin:0 auto;padding:22px}.page-container.video-meta[_ngcontent-%COMP%]{height:500px}.page-container.video-player[_ngcontent-%COMP%]{width:1056px;height:594px;background-color:#000}.video-meta[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{font-size:15px;line-height:24px}.playPageBottom[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{width:1056px;margin-left:9px}}@media (min-width:1912px){.page-container[_ngcontent-%COMP%]{width:1223px;margin:0 auto;padding:22px}.page-container.video-meta[_ngcontent-%COMP%]{height:500px}.page-container.video-player[_ngcontent-%COMP%]{width:1223px;height:688px;background-color:#000}.video-meta[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{font-size:15px;line-height:24px}.playPageBottom[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{width:1223px;margin-left:3px}}",
".content[_ngcontent-%COMP%]{padding:24px}.player-header[_ngcontent-%COMP%]{padding:11px 10px;background-color:#000;color:#fff}.player-header[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#fff}.player-header[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:#ddd}.ps[_ngcontent-%COMP%]{width:520px;margin-left:21px}.ps[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%}.ps[_ngcontent-%COMP%] .block[_ngcontent-%COMP%]{background-color:#1c1d2f}.block-mb[_ngcontent-%COMP%]{margin-bottom:21px}.block-mt[_ngcontent-%COMP%]{margin-top:21px}.video-meta[_ngcontent-%COMP%]{height:633px;padding:35px 40px;background-color:#ededed;position:relative;color:#434343}.video-meta[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{font-size:16px;line-height:29px}.loading-overlay[_ngcontent-%COMP%]{position:absolute;top:0;left:0;bottom:0;right:0;background-color:#2b2c3a;z-index:999}.light[_nghost-%COMP%] .loading-overlay[_ngcontent-%COMP%], .light [_nghost-%COMP%] .loading-overlay[_ngcontent-%COMP%]{background-color:#fff}.media-btn[_ngcontent-%COMP%]{font-family:Microsoft YaHei}.list-title[_ngcontent-%COMP%]{width:80px}.v-page-content[_ngcontent-%COMP%] .page-container[_ngcontent-%COMP%]{padding-top:0!important}.video-player[_ngcontent-%COMP%]{padding:0!important}.screen-small[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:24px}.screen-small[_ngcontent-%COMP%] .video-meta[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{font-size:15px;line-height:24px}.star[_ngcontent-%COMP%]{cursor:pointer}.fixed-player[_ngcontent-%COMP%]{position:fixed;right:30px;top:80px;width:480px;height:320px;z-index:9999}.main[_ngcontent-%COMP%]{margin:0 auto;background-color:#090b21;min-height:100vh}.light[_nghost-%COMP%] .main[_ngcontent-%COMP%], .light [_nghost-%COMP%] .main[_ngcontent-%COMP%]{background-color:#fff}.light[_nghost-%COMP%] .playPageTop[_ngcontent-%COMP%], .light [_nghost-%COMP%] .playPageTop[_ngcontent-%COMP%]{background-color:#090b21}.light[_nghost-%COMP%] .playPageBottom[_ngcontent-%COMP%], .light [_nghost-%COMP%] .playPageBottom[_ngcontent-%COMP%]{background-color:#fff}.copyrightInfo[_ngcontent-%COMP%]{color:red}.d-block.hidden[_ngcontent-%COMP%]{display:none!important}.h5[_ngcontent-%COMP%]{padding:1em;font-weight:700}#comments-title[_ngcontent-%COMP%]{font-size:22px}#comments-title[_ngcontent-%COMP%] .iconfont[_ngcontent-%COMP%]{position:relative;top:.15em;font-size:48px;color:#00c0ff}.center-in-content[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}.buttons-gap[_ngcontent-%COMP%]{height:70px;position:absolute;top:0;border-right:2px solid #373843}.light[_nghost-%COMP%] .buttons-gap[_ngcontent-%COMP%], .light [_nghost-%COMP%] .buttons-gap[_ngcontent-%COMP%]{border-right-color:#ddd}.playlist-new[_ngcontent-%COMP%]{background-color:#090b21;z-index:2}.light[_nghost-%COMP%] .playlist-new[_ngcontent-%COMP%], .light [_nghost-%COMP%] .playlist-new[_ngcontent-%COMP%]{background-color:#fff}.bg-cover[_ngcontent-%COMP%]{background-color:#090b21;position:relative;z-index:2}.light[_nghost-%COMP%] .bg-cover[_ngcontent-%COMP%], .light [_nghost-%COMP%] .bg-cover[_ngcontent-%COMP%]{background-color:#fff}.playPageGap[_ngcontent-%COMP%]{height:12px;margin-top:-1px;background-color:#090b21;position:relative;z-index:1}.float-player[_ngcontent-%COMP%] dn-videoplayer[_ngcontent-%COMP%]{position:fixed;z-index:999;pointer-events:none;top:0;bottom:0;left:0;right:0;width:100vw!important;height:100vh!important}.video-publisher-container[_ngcontent-%COMP%]{margin-top:21px;height:122px}.video-publisher-container.xs[_ngcontent-%COMP%]{margin-top:19px!important;height:72px!important}.app-download-block[_ngcontent-%COMP%]{background:url(/assets/images/background.png);height:137px;margin-top:19px;background-size:cover;position:relative;padding:16px;overflow:hidden}.app-download-block[_ngcontent-%COMP%] .app-download-block-inner[_ngcontent-%COMP%]{position:relative}.app-download-block[_ngcontent-%COMP%] .app-download-block-content[_ngcontent-%COMP%]{margin-left:120px;height:104px;display:flex;align-items:center;flex-direction:column;justify-content:center}.app-download-block[_ngcontent-%COMP%] .image[_ngcontent-%COMP%]{width:104px;height:104px;position:absolute;left:0;top:0}.app-download-block[_ngcontent-%COMP%] .image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%}.app-download-block[_ngcontent-%COMP%] .app-download-block-content[_ngcontent-%COMP%]{text-align:center}.app-download-block[_ngcontent-%COMP%] .link-button[_ngcontent-%COMP%]{display:inline-block;-webkit-user-select:none;user-select:none;height:29px;margin:10px 0;width:172px}.dl-label[_ngcontent-%COMP%]{font-size:14px;border-radius:14px;background:linear-gradient(45deg,#5562a0 10%,#b687c3);cursor:pointer;position:relative;width:164px;height:29px;display:flex;justify-content:space-around;align-items:center;padding:0 2px 0 4px}.dl-label[_ngcontent-%COMP%], .dl-label[_ngcontent-%COMP%] .iconfont[_ngcontent-%COMP%]{color:#fff}.dl-label[_ngcontent-%COMP%] .iconfont.iconanzhuo[_ngcontent-%COMP%]{font-size:16px;color:#b2ff9d}.dl-label[_ngcontent-%COMP%] .iconfont.iconanzhuo.wy[_ngcontent-%COMP%]{font-size:18px;color:#61db32}.dl-label[_ngcontent-%COMP%] .iconfont.iconWindows[_ngcontent-%COMP%]{font-size:16px;color:#9ee7ff}.dl-label[_ngcontent-%COMP%] .iconfont.iconTVDUAN[_ngcontent-%COMP%]{font-size:16px;color:#a5ffdc}.dl-label[_ngcontent-%COMP%] .iconfont.iconzhengzaixiazai[_ngcontent-%COMP%]{font-size:18px}.dn-videoplayer-wrap[_ngcontent-%COMP%]{height:688px}.main-color[_ngcontent-%COMP%]{color:#00c0ff!important}.text-content-in-dialog[_ngcontent-%COMP%]{font-size:16px;color:#ffffffb3;margin:15px 0}.light[_nghost-%COMP%] .text-content-in-dialog[_ngcontent-%COMP%], .light [_nghost-%COMP%] .text-content-in-dialog[_ngcontent-%COMP%]{color:#888}.block[_ngcontent-%COMP%]{background-color:#1c1d2f}@media (min-width:1679px) and (max-width:1911px){.ps[_ngcontent-%COMP%]{width:450px;margin-left:18px}.block-mb[_ngcontent-%COMP%]{margin-bottom:18px}.block-mt[_ngcontent-%COMP%], .video-publisher-container[_ngcontent-%COMP%]{margin-top:18px}}@media (max-width:1678px){.ps[_ngcontent-%COMP%]{width:357px;margin-left:14px}.block-mb[_ngcontent-%COMP%]{margin-bottom:14px}.block-mt[_ngcontent-%COMP%], .video-publisher-container[_ngcontent-%COMP%]{margin-top:14px}}",
],
})),
t
);
})(),
En = (() => {
class t {
constructor(t, e, i) {
(this._route = t), (this._videoService = e), (this._utility = i);
}
ngOnInit() {
this._route.queryParams.subscribe((t) => {
t.id &&
(t.id.indexOf("_") > -1
? (this._utility.getWindow().location.href = `/play/${t.id.replace(
"_",
""
)}`)
: this._videoService
.getMedia(null, t.id, !1)
.subscribe((t) => {
t
? (this._utility.getWindow().location.href = `/play/${t.key}?id=${t.mediaKey}`)
: this._utility.getWindow().history.back();
}));
});
}
}
return (
(t.ɵfac = function (e) {
return new (e || t)(_.Ob(a.a), _.Ob(c.a), _.Ob(P.a));
}),
(t.ɵcmp = _.Ib({
type: t,
selectors: [["app-redirect"]],
features: [_.Bb([c.a, { provide: E.a, useClass: c.a }])],
decls: 0,
vars: 0,
template: function (t, e) {},
encapsulation: 2,
})),
t
);
})();
var yn = i("+bO1");
function Dn(t, e) {
if ((1 & t && _.Pb(0, "div", 21), 2 & t)) {
const t = _.ec(2);
_.lc("ggPosition", t.ggPosition.VideoPageContent)(
"code",
t.isAdult ? "APB" : "PB"
);
}
}
function Tn(t, e) {
if ((1 & t && _.Pb(0, "video-publisher", 28), 2 & t)) {
const t = _.ec(3);
_.lc("publisher", null == t.video ? null : t.video.publisher)(
"uid",
null == t.user ? null : t.user.id
)("fromVideo", !0);
}
}
function In(t, e) {
if (
(1 & t &&
(_.Ub(0, "div", 22),
_.Ub(1, "div", 23),
_.Pb(2, "div", 24),
_.Tb(),
_.Pb(3, "div", 25),
_.Ub(4, "div", 23),
_.Pb(5, "div", 24),
_.Tb(),
_.Ub(6, "div", 26),
_.Ic(7, Tn, 1, 3, "video-publisher", 27),
_.Tb(),
_.Tb()),
2 & t)
) {
const t = _.ec(2);
_.Cb(2),
_.lc("ggPosition", t.ggPosition.VideoPageRight)(
"code",
t.isAdult ? "VPRU" : "PRU"
),
_.Cb(3),
_.lc("ggPosition", t.ggPosition.VideoPageRight)(
"code",
t.isAdult ? "VPRD" : "PRD"
),
_.Cb(2),
_.lc("ngIf", null != t.video);
}
}
const wn = function (t) {
return { playPageTop: t };
},
Un = function (t) {
return { "flex-column": t };
},
Ln = function (t) {
return { "float-player": t };
};
function kn(t, e) {
if (1 & t) {
const t = _.Vb();
_.Ub(0, "div", 13),
_.Ub(1, "div", 14),
_.Ub(2, "div", 15),
_.Ub(3, "div", 16),
_.Ub(4, "dn-videoplayer", 17),
_.bc("onVideoReady", function (e) {
return _.Ac(t), _.ec().onPlayerReady(e);
})("onCloseSmallPlayer", function () {
return _.Ac(t), _.ec().closeSmallPlayer();
})("onClosePlayEndContent", function (e) {
return _.Ac(t), _.ec().closePlayEndContent(e);
})("userBehaviorEvent", function (e) {
return _.Ac(t), _.ec().onUserrBehavior(e);
}),
_.Tb(),
_.Tb(),
_.Ub(5, "app-video-user-data-bar", 18),
_.bc("userBehaviorEvent", function (e) {
return _.Ac(t), _.ec().onUserrBehavior(e);
})("showCommentsEvent", function () {
return _.Ac(t), _.ec().showPlaylist();
}),
_.Tb(),
_.Ic(6, Dn, 1, 2, "div", 19),
_.Tb(),
_.Ic(7, In, 8, 5, "div", 20),
_.Tb(),
_.Tb();
}
if (2 & t) {
const t = _.ec();
_.lc("ngClass", _.qc(25, wn, t.horizontalLayout)),
_.Cb(1),
_.Fb(
"d-flex w-100 ",
t.horizontalLayout
? "justify-content-start"
: "justify-content-center",
""
),
_.lc("ngClass", _.qc(27, Un, t.horizontalLayout)),
_.Cb(1),
_.lc("ngClass", _.qc(29, Ln, t.showSmallPlayer)),
_.Cb(2),
_.lc("isNewsPlayer", !0)("isFloatPlayer", t.showSmallPlayer)(
"showQuantitySelect",
!1
)("shouldSkipAds", !0)("logo", "auto")("serverInfo", t.serverInfo)(
"video",
t.video
)("needBought", t.getGID <= 0)(
"mediaList",
t.pendingPlayList.medias
)("isNews", !0)("showPlayEndContent", t.showPlayEndContent)(
"nextPlayList",
t.nextPlayList
)("publisher", null == t.video ? null : t.video.publisher)(
"user",
t.user
)("suspendAutoPlay", t.suspendAutoPlay),
_.Cb(1),
_.lc("video", t.video)("commentsCount", t.commentsCount),
_.Cb(1),
_.lc("ngIf", t.mediaKey),
_.Cb(1),
_.lc("ngIf", !t.horizontalLayout);
}
}
function An(t, e) {
if ((1 & t && (_.Ub(0, "span"), _.Kc(1), _.Tb()), 2 & t)) {
const t = _.ec(3);
_.Cb(1), _.Mc("(", t.commentsCount, ")");
}
}
function Kn(t, e) {
if (1 & t) {
const t = _.Vb();
_.Ub(0, "app-dn-comments", 41),
_.bc("onCommentsLoaded", function (e) {
return _.Ac(t), _.ec(3).setCommentCount(e);
}),
_.Tb();
}
if (2 & t) {
const t = _.ec(3);
_.lc("videoId", t.video.id)("hostPage", "watch");
}
}
function Bn(t, e) {
if (1 & t) {
const t = _.Vb();
_.Ub(0, "div", 32, 33),
_.Ub(2, "div", 34),
_.Ub(3, "h4", 35),
_.Pb(4, "i", 36),
_.Kc(5, " \u8bc4\u8bba\u533a"),
_.Tb(),
_.Ic(6, An, 2, 1, "span", 37),
_.Tb(),
_.Ub(7, "app-comment-box", 38, 39),
_.bc("commentSuccessEvent", function (e) {
return _.Ac(t), _.ec(2).commentCountHandler(e);
}),
_.Tb(),
_.Ic(9, Kn, 1, 2, "app-dn-comments", 40),
_.Tb();
}
if (2 & t) {
const t = _.ec(2);
_.Cb(6),
_.lc("ngIf", t.commentsCount),
_.Cb(1),
_.lc("videoId", t.video.id)("commentStatus", t.video.commentstatus),
_.Cb(2),
_.lc("ngIf", t.video && 0 === t.video.commentstatus);
}
}
function Rn(t, e) {
if (
(1 & t &&
(_.Ub(0, "div", 29),
_.Pb(1, "app-video-info", 30),
_.Ic(2, Bn, 10, 4, "div", 31),
_.Tb()),
2 & t)
) {
const t = _.ec();
_.Cb(1),
_.lc("video", t.video)(
"mediaTitle",
null == t.video ? null : t.video.title
)("type", "top"),
_.Cb(1),
_.lc("ngIf", t.video);
}
}
function Sn(t, e) {
if ((1 & t && (_.Ub(0, "span"), _.Kc(1), _.Tb()), 2 & t)) {
const t = _.ec(3);
_.Cb(1), _.Mc("(", t.commentsCount, ")");
}
}
function Wn(t, e) {
if (1 & t) {
const t = _.Vb();
_.Ub(0, "app-dn-comments", 44),
_.bc("onCommentsLoaded", function (e) {
return _.Ac(t), _.ec(3).setCommentCount(e);
}),
_.Tb();
}
if (2 & t) {
const t = _.ec(3);
_.lc("videoId", t.video.id);
}
}
function zn(t, e) {
if (1 & t) {
const t = _.Vb();
_.Ub(0, "div", 32, 33),
_.Ub(2, "div", 34),
_.Ub(3, "h4", 35),
_.Pb(4, "i", 36),
_.Kc(5, " \u8bc4\u8bba\u533a"),
_.Tb(),
_.Ic(6, Sn, 2, 1, "span", 37),
_.Tb(),
_.Ub(7, "app-comment-box", 38, 39),
_.bc("commentSuccessEvent", function (e) {
return _.Ac(t), _.ec(2).commentCountHandler(e);
}),
_.Tb(),
_.Ic(9, Wn, 1, 1, "app-dn-comments", 43),
_.Tb();
}
if (2 & t) {
const t = _.ec(2);
_.Cb(6),
_.lc("ngIf", t.commentsCount),
_.Cb(1),
_.lc("videoId", t.video.id)("commentStatus", t.video.commentstatus),
_.Cb(2),
_.lc("ngIf", t.video && 0 === t.video.commentstatus);
}
}
function qn(t, e) {
if (
(1 & t &&
(_.Ub(0, "div", 42),
_.Pb(1, "app-video-info", 30),
_.Ic(2, zn, 10, 4, "div", 31),
_.Tb()),
2 & t)
) {
const t = _.ec();
_.Cb(1),
_.lc("video", t.video)(
"mediaTitle",
null == t.video ? null : t.video.title
)("type", "top"),
_.Cb(1),
_.lc("ngIf", t.video);
}
}
function jn(t, e) {
if ((1 & t && _.Pb(0, "video-publisher", 28), 2 & t)) {
const t = _.ec(2);
_.lc("publisher", null == t.video ? null : t.video.publisher)(
"uid",
null == t.user ? null : t.user.id
)("fromVideo", !0);
}
}
function Vn(t, e) {
if (
(1 & t &&
(_.Ub(0, "div", 45),
_.Ic(1, jn, 1, 3, "video-publisher", 27),
_.Tb()),
2 & t)
) {
const t = _.ec();
_.Cb(1), _.lc("ngIf", null != t.video);
}
}
function Nn(t, e) {
if (1 & t) {
const t = _.Vb();
_.Ub(0, "div", 46),
_.Pb(1, "div", 47),
_.Ub(2, "h5", 48),
_.Kc(
3,
"\u6b64\u529f\u80fd\u4ec5\u9650 VIP \u7528\u6237\u4f7f\u7528"
),
_.Tb(),
_.Tb(),
_.Ub(4, "div", 49),
_.Ub(5, "div", 50),
_.bc("click", function () {
return _.Ac(t), _.ec().showRechargeBox();
}),
_.Kc(6, "\u5347\u7ea7VIP"),
_.Tb(),
_.Pb(7, "div", 51),
_.Pb(8, "app-dn-dialog-button", 52),
_.Tb(),
_.Pb(9, "app-dn-dialog-close-button", 53);
}
2 & t &&
(_.Cb(8),
_.lc("dialog", "vip-only"),
_.Cb(1),
_.lc("dialog", "vip-only"));
}
function Hn(t, e) {
if ((1 & t && _.Pb(0, "app-share", 55), 2 & t)) {
const t = _.ec(2);
_.lc("title", t.video.title)("url", t._router.url)("id", t.mediaKey)(
"image",
t.posterImage
)("isNews", !0);
}
}
function Fn(t, e) {
if (
(1 & t &&
(_.Ub(0, "div", 46),
_.Ic(1, Hn, 1, 5, "app-share", 54),
_.Tb(),
_.Pb(2, "app-dn-dialog-close-button", 53)),
2 & t)
) {
const t = _.ec();
_.Cb(1), _.lc("ngIf", t.video), _.Cb(1), _.lc("dialog", "share");
}
}
const $n = function (t) {
return { "d-flex justify-content-center container": t };
},
Gn = [
{
path: "watch",
component: (() => {
class t {
constructor(t, e, i, n, o, a, s, c, r, _, g, d, h, p, u) {
(this._videoService = t),
(this._activatedRoute = e),
(this._seoService = i),
(this._userService = n),
(this.store = o),
(this.danmuFacade = a),
(this._storage = s),
(this._router = c),
(this.videoPlayerSettingsService = r),
(this._utility = _),
(this._dnDialogService = g),
(this._rechargeBoxService = d),
(this._scroll = h),
(this.httpHelper = p),
(this._permission = u),
(this.pendingPlayList = {}),
(this.contentWidth = { width: 1370, margin: 0 }),
(this.currentUID = 0),
(this.startTimeCount = !1),
(this.nowTime = null),
(this.lastTime = null),
(this.qrHost = this._utility.GetHost(
"https://img.{Host}/qrcode/?url="
)),
(this.link = this._utility.GetHost(
"https://www.{Host}/app-download"
)),
(this.horizontalLayout = !0),
(this.showPlayEndContent = !1),
(this.nextPlayList = []),
(this.ggPosition = l.b),
(this.subscriptions = []),
(this.serverInfo = {}),
(this.video = null),
(this.isAdult = !1),
(this.playerSize = {}),
(this.mediaKey = null),
(this.shareUrl = ""),
(this.posterImage = ""),
(this.broker = ""),
(this.hlsSpeed = 0),
(this.showSmallPlayer = !1),
(this.smallPlayerValid = !0),
(this.showSmallPlayerOffset = 540),
(this.forbiddenFloatPlayer = !1),
(this.subscript = null),
(this.suspendAutoPlay = !1),
(this.suspendAutoPlayOffset = 300),
(this.enableDownload =
this._utility.getSiteConfig.enableAndroidDownload ||
this._utility.getSiteConfig.enableIOSDonwload),
(this.channels = []),
(this.scrollTimeout = null);
}
get getGID() {
var t, e;
return (
(null ===
(e =
null === (t = this.user) || void 0 === t
? void 0
: t.token) || void 0 === e
? void 0
: e.gid) || 0
);
}
onWindowScroll() {
this._utility.getWindow().pageYOffset >
this.showSmallPlayerOffset
? this.smallPlayerValid &&
!this.forbiddenFloatPlayer &&
(this.showSmallPlayer = !0)
: ((this.showSmallPlayer = !1),
(this.smallPlayerValid = !0)),
(this.suspendAutoPlay =
this._utility.getWindow().pageYOffset >=
this.suspendAutoPlayOffset);
}
ngOnInit() {
this.videoPlayerSettingsService.playerSettings$.subscribe(
(t) => {
this.forbiddenFloatPlayer =
"1" === t.forbiddenFloatingPlayer;
}
),
(this._utility.isNews = !0),
this.subscriptions.push(
this._userService.userState$.subscribe((t) => {
(this.user = t), this.onUserInfoChanged();
}),
this._activatedRoute.queryParams.subscribe((t) => {
t.v &&
((this.mediaKey = t.v),
this._videoService
.getMedia(this.mediaKey, !0)
.subscribe((t) => {
if (((this.showPlayEndContent = !1), t)) {
(this.video = t),
(this.video.languages = []),
(this.video.userData = {
comments: this.video.comments,
favorites: this.video.favoriteCount,
shared: this.video.shared,
like: this.video.good,
dislike: this.video.bad,
});
let a = (this.video.contxt || "").substring(
0,
255
);
(this.posterImage = this.video.image),
(this.video.userBehaviors = {}),
(this.video.userBehaviors.favorite =
this.video.isVideoFavrited),
(this.video.userBehaviors.like =
1 == this.video.likeStatus),
(this.video.userBehaviors.dislike =
2 == this.video.likeStatus),
this._seoService.setTitle(
this.video.title +
"-\u514d\u8d39\u5728\u7ebf\u89c2\u770b"
),
this._seoService.setDescription(
this.video.title +
(a ? ":" + a : "") +
"\u53ef\u4ee5\u5728\u7ebf\u514d\u8d39\u770b"
),
this._seoService.setImage(this.video.image),
(this.video.userData.viewCount =
this.video.view);
for (
var e = [], i = 0;
i < this.video.flvPathList.length;
++i
) {
var n = this.converHtml5ToMedia(
this.video.flvPathList[i]
);
(n.title = this.video.title), e.push(n);
}
var o = [];
this.video.pauseData &&
!this._permission.isValid(
O.b.FilterPauseAds
) &&
(o = this.video.pauseData.map((t) =>
this.converHtml5ToMedia2(t)
)),
this.assingPendding("medias", e),
this.playOrWait(),
this.store.dispatch({
type: p.d,
video: this.video,
}),
this._videoService
.pageViewRecord(this.video.playRecordURL)
.subscribe((t) => {}),
(this.serverInfo = this.video.videoServer),
this.onVideoPageReady();
}
}));
}),
this._activatedRoute.fragment.subscribe((t) => {
"comments" === t && this.scrollToComments();
}),
Object(s.a)(window, "scroll").subscribe(
Object(k.a)(this.onWindowScroll.bind(this)).bind(this)
)
);
}
closeSmallPlayer() {
(this.smallPlayerValid = !1), (this.showSmallPlayer = !1);
}
readState() {}
updateUserBehaviors() {}
showPlaylist() {}
onVideoPageReady() {
const t = this.video.uniqueKey;
this.danmuFacade.setDanmuKey(t),
this.danmuFacade.requireDanmuList({
key: t,
user: this.user,
}),
this.updateUserBehaviors();
}
onUserrBehavior(t) {
if ("string" == typeof t)
"favorite" === t &&
(this.video.userBehaviors.favorite = !0);
else
switch (t.name) {
case "likeStatus":
(this.video.userData.like = t.good),
(this.video.userData.dislike = t.bad),
(this.video.userBehaviors.like = 1 == t.likeStatus),
(this.video.userBehaviors.dislike =
2 == t.likeStatus);
}
}
getType(t) {
return t ? "application/vnd.apple.mpegurl" : "video/mp4";
}
converHtml5ToMedia(t) {
return {
title: "",
src: t.result,
length: 0,
type: this.getType(t.isHls),
href: decodeURIComponent(t.link),
isStream: 0 === t.type,
isAd: !!t.link,
isHls: t.isHls,
isImage:
t.result &&
(t.result.indexOf(".jpg") > -1 ||
t.result.indexOf(".png") > -1 ||
t.result.indexOf(".gif") > -1),
backup: t.backup,
rtmp: t.rtmp,
};
}
converHtml5ToMedia2(t) {
return {
title: "",
src: this.httpHelper.uriSignature(t.result, !1),
length: 0,
type: this.getType(t.isHls),
href: decodeURIComponent(t.link),
isStream: 0 === t.type,
isAd: !!t.link,
isHls: t.isHls,
isImage:
t.result &&
(t.result.indexOf(".jpg") > -1 ||
t.result.indexOf(".png") > -1 ||
t.result.indexOf(".gif") > -1),
backup: "",
rtmp: "",
isLive: t.isLive,
};
}
assingPendding(t, e) {
this.pendingPlayList[t] = e;
}
playOrWait() {
null != this.api &&
this.pendingPlayList.pauseList &&
(this.api.invokePauseList(this.pendingPlayList.pauseList),
(this.pendingPlayList.pauseList = null));
}
onPlayerReady(t) {
(this.api = t), this.playOrWait();
let e = null;
this.api.subscript("time", (t) => {
if (
this.broker &&
(!e || Math.abs(t.current - e.current) > 1e4)
) {
e = t;
let i = this.broker.replace(
"__placeholder__",
Math.floor(t.current / 1e3) +
"_" +
Math.floor(t.total / 1e3)
);
this.hlsSpeed && (i = `${i}&speed=${this.hlsSpeed}`),
this._videoService.sendPlayHistory(i);
}
t.left < 1e3 && !this.isAdult
? (this.showPlayEndContent = !0)
: ((this.showPlayEndContent = !1), this.api.play());
}),
this.api.subscript("ended", () => {
this.showPlayEndContent ||
this.isAdult ||
(this.showPlayEndContent = !0);
}),
this.api.subscript("play", () => {
this.isAdult || (this.showPlayEndContent = !1);
}),
this.api.subscript("fullscreen", (t) => {
t.isfullscreen ||
this._utility.getWindow().scrollTo(0, 0);
}),
this.api.subscript("playAds", (t) => {
t.href &&
this._videoService.sendWatched(
t.href
.replace("/c/c", "/c/d")
.replace("http:", "https:")
);
});
}
sendWatchTime(t) {
if (this.lastTime && this.lastTime === t)
(this.startTimeCount = !1),
clearInterval(this.timeCountInterval);
else {
this.lastTime = t;
let e = this.broker.replace(
"__placeholder__",
Math.floor(t.current / 1e3) +
"_" +
Math.floor(t.total / 1e3)
);
this.hlsSpeed && (e = `${e}&speed=${this.hlsSpeed}`),
this._videoService.sendPlayHistory(e);
}
}
ngOnDestroy() {
this._seoService.removeImage(),
clearInterval(this.timeCountInterval),
this.subscriptions.forEach((t) => t.unsubscribe()),
this.danmuFacade.setDanmuKey(""),
this.subscript && this.subscript();
}
onUserInfoChanged() {
this.currentUID = this.user.id;
}
trySetresponsivePlayerSize() {}
setCommentCount(t) {
this.commentsCount = t;
}
commentCountHandler(t) {
this.commentsCount += 1;
}
scrollToComments() {
clearTimeout(this.scrollTimeout),
this.video
? this._scroll.scroll({
document: this._utility.getDocument(),
duration: 100,
scrollTarget: "commentsArea",
})
: (this.scrollTimeout = setTimeout(() => {
this.scrollToComments();
}, 500));
}
showRechargeBox() {
this._dnDialogService.close("vip-only"),
this._rechargeBoxService.changeDisplayStatus(!0);
}
relatedItems(t) {
this.nextPlayList = t;
}
closePlayEndContent(t) {
this.showPlayEndContent = t;
}
}
return (
(t.ɵfac = function (e) {
return new (e || t)(
_.Ob(yn.a),
_.Ob(a.a),
_.Ob(M.a),
_.Ob(U.a),
_.Ob(h.a),
_.Ob(x.a),
_.Ob(C.a),
_.Ob(a.d),
_.Ob(w.a),
_.Ob(P.a),
_.Ob(d.a),
_.Ob(u.a),
_.Ob(L.a),
_.Ob(y.a),
_.Ob(O.a)
);
}),
(t.ɵcmp = _.Ib({
type: t,
selectors: [["app-watch"]],
features: [_.Bb([{ provide: E.a, useClass: yn.a }, yn.a])],
decls: 17,
vars: 10,
consts: [
[1, "main", 3, "ngClass"],
[1, "playPageTop"],
[
"class",
"v-page v-page-content d-flex",
3,
"ngClass",
4,
"ngIf",
],
[
"class",
"horizontal-only-left-container page-container video-player",
4,
"ngIf",
],
[1, "playPageBottom"],
[
1,
"v-page",
"v-page-content",
"boxed",
"d-flex",
3,
"ngStyle",
],
["class", "left", 4, "ngIf"],
[1, "page-right", "horizontal-only-right-container"],
["class", "video-publisher-container mt-0", 4, "ngIf"],
[
1,
"d-block",
"mb-4",
3,
"isNews",
"title",
"onRelatedItems",
],
["toastContainer", ""],
["id", "vip-only", 1, "dn-dialog-background"],
["id", "share", 1, "dn-dialog-background"],
[1, "v-page", "v-page-content", "d-flex", 3, "ngClass"],
[3, "ngClass"],
[
1,
"page-container",
"video-player",
2,
"margin",
"0",
3,
"ngClass",
],
[1, "dn-videoplayer-wrap"],
[
"topPrefix",
"0",
3,
"isNewsPlayer",
"isFloatPlayer",
"showQuantitySelect",
"shouldSkipAds",
"logo",
"serverInfo",
"video",
"needBought",
"mediaList",
"isNews",
"showPlayEndContent",
"nextPlayList",
"publisher",
"user",
"suspendAutoPlay",
"onVideoReady",
"onCloseSmallPlayer",
"onClosePlayEndContent",
"userBehaviorEvent",
],
[
3,
"video",
"commentsCount",
"userBehaviorEvent",
"showCommentsEvent",
],
[
"class",
"dabc d-block block-mt",
3,
"ggPosition",
"code",
4,
"ngIf",
],
["class", "ps pr", 4, "ngIf"],
[1, "dabc", "d-block", "block-mt", 3, "ggPosition", "code"],
[1, "ps", "pr"],
[1, "bl"],
[1, "dabc", 3, "ggPosition", "code"],
[1, "block-mb"],
[1, "video-publisher-container"],
[3, "publisher", "uid", "fromVideo", 4, "ngIf"],
[3, "publisher", "uid", "fromVideo"],
[
1,
"horizontal-only-left-container",
"page-container",
"video-player",
],
[3, "video", "mediaTitle", "type"],
["id", "commentsArea", 4, "ngIf"],
["id", "commentsArea"],
["comments", ""],
[1, "mb-4"],
[
"id",
"comments-title mr-1",
1,
"comments-title",
2,
"display",
"inline",
"line-height",
"36px",
"margin-right",
"8px",
],
[1, "iconfont", "iconpinglun"],
[4, "ngIf"],
[
"id",
"commentBox",
1,
"d-block",
"mb-4",
3,
"videoId",
"commentStatus",
"commentSuccessEvent",
],
["commentBox", ""],
[
"style",
"display: block; padding-bottom: 25px;",
3,
"videoId",
"hostPage",
"onCommentsLoaded",
4,
"ngIf",
],
[
2,
"display",
"block",
"padding-bottom",
"25px",
3,
"videoId",
"hostPage",
"onCommentsLoaded",
],
[1, "left"],
[
"style",
"display: block; padding-bottom: 25px;",
3,
"videoId",
"onCommentsLoaded",
4,
"ngIf",
],
[
2,
"display",
"block",
"padding-bottom",
"25px",
3,
"videoId",
"onCommentsLoaded",
],
[1, "video-publisher-container", "mt-0"],
[1, "text-center"],
[2, "padding", "30px"],
[1, "mb-2"],
[1, "dn-dialog-buttons"],
[1, "dn-button", "dn-button-gold", 3, "click"],
[1, "buttons-gap"],
[2, "margin", "0 auto", 3, "dialog"],
[3, "dialog"],
[3, "title", "url", "id", "image", "isNews", 4, "ngIf"],
[3, "title", "url", "id", "image", "isNews"],
],
template: function (t, e) {
1 & t &&
(_.Ub(0, "div", 0),
_.Ub(1, "div", 1),
_.Ic(2, kn, 8, 31, "div", 2),
_.Ic(3, Rn, 3, 4, "div", 3),
_.Tb(),
_.Ub(4, "div", 4),
_.Ub(5, "div", 5),
_.Ic(6, qn, 3, 4, "div", 6),
_.Ub(7, "div", 7),
_.Ic(8, Vn, 2, 1, "div", 8),
_.Ub(9, "app-sidebar-related-videos", 9),
_.bc("onRelatedItems", function (t) {
return e.relatedItems(t);
}),
_.Tb(),
_.Tb(),
_.Tb(),
_.Tb(),
_.Tb(),
_.Pb(10, "div", null, 10),
_.Pb(12, "app-footer"),
_.Ub(13, "dn-dialog", 11),
_.Ic(14, Nn, 10, 2, "ng-template"),
_.Tb(),
_.Ub(15, "dn-dialog", 12),
_.Ic(16, Fn, 3, 2, "ng-template"),
_.Tb()),
2 & t &&
(_.lc("ngClass", _.qc(8, $n, e.horizontalLayout)),
_.Cb(2),
_.lc("ngIf", e.mediaKey),
_.Cb(1),
_.lc("ngIf", e.horizontalLayout),
_.Cb(2),
_.lc(
"ngStyle",
e.horizontalLayout ? "" : "padding-top: 0;"
),
_.Cb(1),
_.lc("ngIf", !e.horizontalLayout),
_.Cb(2),
_.lc("ngIf", e.horizontalLayout),
_.Cb(1),
_.lc("isNews", !0)(
"title",
"\u5373\u5c06\u64ad\u653e"
));
},
directives: [
n.l,
n.n,
n.o,
Hi,
Lt.a,
kt.a,
At.a,
Me,
xe.a,
mi,
Ut,
vi.a,
Ci.a,
Xi.a,
Fi.a,
Rt.a,
],
styles: [
"@media (max-width:1678px){h1[_ngcontent-%COMP%]{font-size:24px}.video-meta[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{font-size:15px;line-height:24px}.page-container[_ngcontent-%COMP%]{width:840px;margin:0 auto;padding:0 16px 16px 0}.page-container.video-meta[_ngcontent-%COMP%]{padding:20px;width:689px;min-width:689px;height:460px}.page-container.video-player[_ngcontent-%COMP%]{width:840px;height:473px;background-color:#000}.playPageBottom[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{width:840px;margin-left:30px}}@media (max-width:1439px){.page-right[_ngcontent-%COMP%]{padding-right:8px;margin-left:14px}}@media (min-width:1440px) and (max-width:1678px){.page-right[_ngcontent-%COMP%]{padding-right:8px;margin-left:16px}}@media (min-width:1679px) and (max-width:1911px){.page-right[_ngcontent-%COMP%]{padding-right:8px;margin-left:18px}}@media (min-width:1912px){.page-right[_ngcontent-%COMP%]{padding-right:8px;margin-left:21px}}.playPageTop[_ngcontent-%COMP%]{min-height:965px;padding-bottom:0}.playPageBottom[_ngcontent-%COMP%]{min-height:1610px}@media (min-width:1679px) and (max-width:1911px){.playPageTop[_ngcontent-%COMP%]{min-height:852px!important;padding-bottom:0}}@media (max-width:1678px){.playPageTop[_ngcontent-%COMP%]{min-height:694px!important;padding-bottom:0}}@media (min-width:1679px) and (max-width:1911px){.page-container[_ngcontent-%COMP%]{width:1056px;margin:0 auto;padding:22px}.page-container.video-meta[_ngcontent-%COMP%]{height:500px}.page-container.video-player[_ngcontent-%COMP%]{width:1056px;height:594px;background-color:#000}.video-meta[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{font-size:15px;line-height:24px}.playPageBottom[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{width:1056px;margin-left:9px}}@media (min-width:1912px){.page-container[_ngcontent-%COMP%]{width:1223px;margin:0 auto;padding:22px}.page-container.video-meta[_ngcontent-%COMP%]{height:500px}.page-container.video-player[_ngcontent-%COMP%]{width:1223px;height:688px;background-color:#000}.video-meta[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{font-size:15px;line-height:24px}.playPageBottom[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{width:1223px;margin-left:3px}}",
"[_nghost-%COMP%]{display:block;background-color:#090b21}.content[_ngcontent-%COMP%]{padding:24px}.player-header[_ngcontent-%COMP%]{padding:11px 10px;background-color:#000;color:#fff}.player-header[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#fff}.player-header[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:#ddd}.ps[_ngcontent-%COMP%]{width:520px;margin-left:21px}.ps[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%}.block-mb[_ngcontent-%COMP%]{margin-bottom:21px}.block-mt[_ngcontent-%COMP%]{margin-top:21px}.video-meta[_ngcontent-%COMP%]{height:633px;padding:35px 40px;background-color:#ededed;position:relative;color:#434343}.video-meta[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{font-size:16px;line-height:29px}.loading-overlay[_ngcontent-%COMP%]{position:absolute;top:0;left:0;bottom:0;right:0;background-color:#6663;z-index:999}.media-btn[_ngcontent-%COMP%]{font-family:Microsoft YaHei}.list-title[_ngcontent-%COMP%]{width:80px}.float-player[_ngcontent-%COMP%] dn-videoplayer[_ngcontent-%COMP%]{position:fixed;z-index:999;pointer-events:none;top:0;bottom:0;left:0;right:0;width:100vw!important;height:100vh!important}.page-container[_ngcontent-%COMP%]{width:1068px;margin:0 auto;padding:22px 49px}.v-page-content[_ngcontent-%COMP%] .page-container[_ngcontent-%COMP%]{padding-top:0!important}.video-player[_ngcontent-%COMP%]{padding:0!important}.star[_ngcontent-%COMP%]{cursor:pointer}.fixed-player[_ngcontent-%COMP%]{position:fixed;right:30px;top:80px;width:480px;height:320px;z-index:9999}.main[_ngcontent-%COMP%]{margin:0 auto;background-color:#090b21;min-height:100vh}.light[_nghost-%COMP%] .playPageTop[_ngcontent-%COMP%], .light [_nghost-%COMP%] .playPageTop[_ngcontent-%COMP%]{background-color:#090b21}.copyrightInfo[_ngcontent-%COMP%]{color:red}.d-block.hidden[_ngcontent-%COMP%]{display:none!important}.h5[_ngcontent-%COMP%]{padding:1em;font-weight:700}#comments-title[_ngcontent-%COMP%]{font-size:22px}#comments-title[_ngcontent-%COMP%] .iconfont[_ngcontent-%COMP%]{position:relative;top:.15em;font-size:48px;background:-webkit-linear-gradient(#00c0ff,#00b8ff);-webkit-background-clip:text;-webkit-text-fill-color:#0000}.comments-title[_ngcontent-%COMP%]{font-size:22px}.comments-title[_ngcontent-%COMP%] .iconfont[_ngcontent-%COMP%]{position:relative;top:.15em;font-size:48px;color:#00c0ff}.playPageGap[_ngcontent-%COMP%]{height:21px;margin-top:-1px;background-color:#090b21;position:relative;z-index:1}.video-publisher-container[_ngcontent-%COMP%]{margin-top:21px;height:122px}.app-download-block[_ngcontent-%COMP%]{background:url(/assets/images/background.png);height:137px;margin-top:21px;background-size:cover;position:relative;padding:16px;overflow:hidden}.app-download-block[_ngcontent-%COMP%] .app-download-block-inner[_ngcontent-%COMP%]{position:relative}.app-download-block[_ngcontent-%COMP%] .app-download-block-content[_ngcontent-%COMP%]{margin-left:120px;height:104px;display:flex;align-items:center;flex-direction:column;justify-content:center}.app-download-block[_ngcontent-%COMP%] .image[_ngcontent-%COMP%]{width:104px;height:104px;position:absolute;left:0;top:0}.app-download-block[_ngcontent-%COMP%] .image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%}.app-download-block[_ngcontent-%COMP%] .app-download-block-content[_ngcontent-%COMP%]{text-align:center}.app-download-block[_ngcontent-%COMP%] .link-button[_ngcontent-%COMP%]{display:inline-block;-webkit-user-select:none;user-select:none;height:29px;margin:10px 0;width:172px}.dl-label[_ngcontent-%COMP%]{font-size:14px;border-radius:14px;background:linear-gradient(45deg,#5562a0 10%,#b687c3);cursor:pointer;position:relative;width:164px;height:29px;display:flex;justify-content:space-around;align-items:center;padding:0 2px 0 4px}.dl-label[_ngcontent-%COMP%], .dl-label[_ngcontent-%COMP%] .iconfont[_ngcontent-%COMP%]{color:#fff}.dl-label[_ngcontent-%COMP%] .iconfont.iconanzhuo[_ngcontent-%COMP%]{font-size:16px;color:#b2ff9d}.dl-label[_ngcontent-%COMP%] .iconfont.iconanzhuo.wy[_ngcontent-%COMP%]{font-size:18px;color:#61db32}.dl-label[_ngcontent-%COMP%] .iconfont.iconWindows[_ngcontent-%COMP%]{font-size:16px;color:#9ee7ff}.dl-label[_ngcontent-%COMP%] .iconfont.iconTVDUAN[_ngcontent-%COMP%]{font-size:16px;color:#a5ffdc}.dl-label[_ngcontent-%COMP%] .iconfont.iconzhengzaixiazai[_ngcontent-%COMP%]{font-size:18px}.dn-videoplayer-wrap[_ngcontent-%COMP%]{height:688px}.block[_ngcontent-%COMP%]{background-color:#1c1d2f}.horizontal-only-left-container[_ngcontent-%COMP%]{height:auto!important;background-color:unset!important}.horizontal-only-right-container[_ngcontent-%COMP%]{width:520px;padding-right:0!important;overflow:unset}@media (min-width:1679px) and (max-width:1911px){.ps[_ngcontent-%COMP%]{width:450px;margin-left:18px}.block-mb[_ngcontent-%COMP%]{margin-bottom:18px}.block-mt[_ngcontent-%COMP%], .video-publisher-container[_ngcontent-%COMP%]{margin-top:18px}.horizontal-only-right-container[_ngcontent-%COMP%]{width:450px}}@media (max-width:1678px){.ps[_ngcontent-%COMP%]{width:357px;margin-left:14px}.block-mb[_ngcontent-%COMP%]{margin-bottom:14px}.block-mt[_ngcontent-%COMP%], .video-publisher-container[_ngcontent-%COMP%]{margin-top:14px}.horizontal-only-right-container[_ngcontent-%COMP%]{width:357px}}",
],
})),
t
);
})(),
},
{ path: "play", component: En },
{ path: "play/:id", component: xn },
{ path: "**", component: xn },
];
let Qn = (() => {
class t {}
return (
(t.ɵfac = function (e) {
return new (e || t)();
}),
(t.ɵmod = _.Mb({ type: t })),
(t.ɵinj = _.Lb({
providers: [],
imports: [[a.h.forChild(Gn)], a.h],
})),
t
);
})();
var Yn = i("HQN/"),
Xn = i("hgWZ"),
Jn = i("v9og"),
Zn = i("deGY"),
to = i("X7Nv"),
eo = i("olhF"),
io = i("25l2"),
no = i("0azh"),
oo = i("cxvS"),
ao = i("8eqO"),
so = i("Mb2U"),
co = i("beoP"),
ro = i("ypMf"),
lo = i("18J0"),
_o = i("jmij"),
go = i("9jGm"),
ho = i("HDdC"),
po = i("vkgz"),
uo = i("tSvX"),
bo = function (t, e, i, n) {
var o,
a = arguments.length,
s =
a < 3
? e
: null === n
? (n = Object.getOwnPropertyDescriptor(e, i))
: n;
if (
"object" == typeof Reflect &&
"function" == typeof Reflect.decorate
)
s = Reflect.decorate(t, e, i, n);
else
for (var c = t.length - 1; c >= 0; c--)
(o = t[c]) &&
(s = (a < 3 ? o(s) : a > 3 ? o(e, i, s) : o(e, i)) || s);
return a > 3 && s && Object.defineProperty(e, i, s), s;
},
mo = function (t, e) {
if (
"object" == typeof Reflect &&
"function" == typeof Reflect.metadata
)
return Reflect.metadata(t, e);
};
let fo = (() => {
class t {
constructor(t, e, i, n, o) {
(this.store = t),
(this.actions$ = e),
(this.danmuFacade = i),
(this.danmuService = n),
(this._utility = o),
(this.danmuListRequiredAction$ = this.actions$.pipe(
Object(go.d)(Ue.a.DANMU_LIST_REQUIRED),
Object(po.a)((t) => {
this.danmuService
.getDanmu(t.payload.key, t.payload.user, t.payload.page)
.pipe(Object(I.a)((t) => t))
.subscribe((t) => {
t && this.danmuFacade.danmuListLoaded(t);
});
})
)),
(this.sendDanmu$ = this.actions$.pipe(
Object(go.d)(Ue.a.DANMU_SEND),
Object(po.a)((t) => {
this.danmuService
.sendDanmu(t.payload.uniqueKey, t.payload.user, t.payload)
.subscribe((t) => {
let e = {
guid: t[0].guid,
avatar: t[0].avatar,
country: t[0].country,
contxt: t[0].contxt,
color: t[0].color,
font: t[0].font,
isDeleted: 0,
lid: t[0].lid,
nickName: t[0].nickName,
position: t[0].position,
second: t[0].second,
uid: t[0].uid,
vid: t[0].vid,
addTime: t[0].addTime,
prefix: t[0].prefix,
isOfficalUP: t[0].isOfficalUP,
needBorder: !0,
};
this.store.dispatch(new Ue.k(e)),
this._utility.Notify(Ue.a.DANMU_SEND, e);
});
})
)),
(this.removeDanmu$ = this.actions$.pipe(
Object(go.d)(Ue.a.DANMU_REMOVE_DANMU),
Object(po.a)((t) => {
this.danmuService
.removeDanmu(t.payload.id, t.payload.user)
.subscribe((e) => {
"ok" === e[0] &&
this.danmuFacade.danmuRemoved(t.payload.id);
});
})
)),
(this.getUserSettings$ = this.actions$.pipe(
Object(go.d)(Ue.a.DANMU_GET_USER_SETTINGS),
Object(po.a)((t) => {
this.danmuService.getUserSettings().subscribe((t) => {
this.danmuFacade.getUserSettingsSuccess(t);
});
})
)),
(this.updateUserSettings$ = this.actions$.pipe(
Object(go.d)(Ue.a.DANMU_UPDATE_USER_SETTINGS),
Object(po.a)((t) => {
this.danmuService.updateUserSettings(t.payload).subscribe();
})
));
}
}
return (
(t.ɵfac = function (e) {
return new (e || t)(
_.Yb(Se.b),
_.Yb(go.a),
_.Yb(x.a),
_.Yb(uo.a),
_.Yb(P.a)
);
}),
(t.ɵprov = _.Kb({ token: t, factory: t.ɵfac })),
bo(
[Object(go.b)({ dispatch: !1 }), mo("design:type", ho.a)],
t.prototype,
"danmuListRequiredAction$",
void 0
),
bo(
[Object(go.b)({ dispatch: !1 }), mo("design:type", ho.a)],
t.prototype,
"sendDanmu$",
void 0
),
bo(
[Object(go.b)({ dispatch: !1 }), mo("design:type", ho.a)],
t.prototype,
"removeDanmu$",
void 0
),
bo(
[Object(go.b)({ dispatch: !1 }), mo("design:type", ho.a)],
t.prototype,
"getUserSettings$",
void 0
),
bo(
[Object(go.b)({ dispatch: !1 }), mo("design:type", ho.a)],
t.prototype,
"updateUserSettings$",
void 0
),
t
);
})();
var Po = i("HJVa"),
vo = i("wXeO"),
Co = i("vxfF");
let Oo = (() => {
class t {}
return (
(t.ɵfac = function (e) {
return new (e || t)();
}),
(t.ɵmod = _.Mb({ type: t })),
(t.ɵinj = _.Lb({
providers: [uo.a, x.a, vo.a],
imports: [
[
n.c,
Re.h,
Se.d.forFeature("danmu", Po.a),
go.c.forFeature([fo]),
Co.f,
ro.a,
o.a,
],
],
})),
t
);
})();
var Mo = i("DjSW"),
xo = i("5+WD"),
Eo = i("Ybe3"),
yo = i("UBk6");
let Do = (() => {
class t {}
return (
(t.ɵfac = function (e) {
return new (e || t)();
}),
(t.ɵmod = _.Mb({ type: t })),
(t.ɵinj = _.Lb({
providers: [ao.a, co.a, so.a, Mo.a, c.a, f.a, w.a, Ae.a],
imports: [
[
n.c,
o.a,
Qn,
Yn.b,
Xn.a,
Jn.a,
Zn.a,
to.a,
eo.a,
io.a,
no.a,
oo.a,
ro.a,
lo.a,
_o.a,
Re.h,
Re.o,
Oo,
xo.f,
Eo.a,
yo.a,
R,
],
],
})),
t
);
})();
},
cxvS: function (t, e, i) {
"use strict";
i.d(e, "a", function () {
return u;
});
var n = i("ofXK"),
o = i("3Pt+"),
a = i("Ybe3"),
s = i("BXbW"),
c = i("ruQk"),
r = i("iWjc"),
l = i("dlKe"),
_ = i("ypMf"),
g = i("wMT6"),
d = i("18J0"),
h = i("tyNb"),
p = i("fXoL");
let u = (() => {
class t {}
return (
(t.ɵfac = function (e) {
return new (e || t)();
}),
(t.ɵmod = p.Mb({ type: t })),
(t.ɵinj = p.Lb({
providers: [s.a, c.a, g.a],
imports: [[n.c, a.a, o.h, o.o, r.a, l.b, _.a, d.a, h.h]],
})),
t
);
})();
},
dHfA: function (t, e, i) {
"use strict";
i.d(e, "a", function () {
return c;
}),
i.d(e, "b", function () {
return r;
});
var n = i("3My9"),
o = i("AytR"),
a = i("fXoL"),
s = i("jhN1");
let c = (() => {
class t {
constructor(t, e) {
(this.sanitized = t), (this._utility = e);
}
transform(t, e = !0) {
var i = "";
if ("string" == typeof t)
(i = t
.replace(/width="\d+"/g, "")
.replace(/<h1>/g, "<h3>")
.replace(/<\/h1>/g, "</h3>")
.replace(
/src=['"](?:[^"'\/]*\/)*([^'"]+)['"]/g,
'src="https://static.' +
this._utility.GetHost() +
'/images/$1" class="imagehtml" width="100%"'
)
.replace('href="//', 'href="https://')
.replace(
/href=['"](?:[\:^"'\/]*\/)*([^'"]+)['"]/g,
"onclick=navigateLink('/$1')"
)),
2 == o.a.cinema &&
(i = i.replace(
'/images/vipcaption.jpg" class="imagehtml"',
'/images/vipcaption_2.jpg" class="imagehtml"'
));
else for (var n in t) i += this.transform(t[n], !1);
return e
? ((i = (i = i.replace(
'static.dnvod.tv/images/vipcaption.jpg" class="imagehtml"',
this._utility.getLocation().hostname +
'/assets/images/vipcaption.jpg" class="imagehtml"'
)).replace(
'static.dnwyb.tv/images/vipcaption_2.jpg" class="imagehtml"',
this._utility.getLocation().hostname +
'/assets/images/vipcaption_2.jpg" class="imagehtml"'
)),
this.sanitized.bypassSecurityTrustHtml(i))
: i;
}
}
return (
(t.ɵfac = function (e) {
return new (e || t)(a.Ob(s.b), a.Ob(n.a));
}),
(t.ɵpipe = a.Nb({ name: "htmlImage", type: t, pure: !0 })),
t
);
})(),
r = (() => {
class t {
constructor(t) {
this._utility = t;
}
transform(t) {
return (
t && (t = t.replace("dnvod.tv", this._utility.GetHost())), t
);
}
}
return (
(t.ɵfac = function (e) {
return new (e || t)(a.Ob(n.a));
}),
(t.ɵpipe = a.Nb({ name: "replaceHost", type: t, pure: !0 })),
t
);
})();
},
qXbc: function (module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.d(__webpack_exports__, "a", function () {
return ShareComponent;
});
var _angular_core__WEBPACK_IMPORTED_MODULE_0__ =
__webpack_require__("fXoL"),
_app_store__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("bTnO"),
_model_video_video_actions__WEBPACK_IMPORTED_MODULE_2__ =
__webpack_require__("6nLG"),
_environments_environment__WEBPACK_IMPORTED_MODULE_3__ =
__webpack_require__("AytR"),
_service_utility__WEBPACK_IMPORTED_MODULE_4__ =
__webpack_require__("3My9"),
_modules_dn_dialog_dn_dialog_service__WEBPACK_IMPORTED_MODULE_5__ =
__webpack_require__("0Xxy"),
_angular_router__WEBPACK_IMPORTED_MODULE_6__ =
__webpack_require__("tyNb"),
_angular_common__WEBPACK_IMPORTED_MODULE_7__ =
__webpack_require__("ofXK"),
_pipes_abs_url_pipe__WEBPACK_IMPORTED_MODULE_8__ =
__webpack_require__("2EkQ");
const _c0 = ["coverPic"],
_c1 = ["qrPic"],
_c2 = ["myCanvas"];
function ShareComponent_div_0_div_1_Template(t, e) {
if (
(1 & t &&
(_angular_core__WEBPACK_IMPORTED_MODULE_0__.Ub(0, "div", 14),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Ub(1, "div", 15),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Pb(2, "img", 16),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Tb(),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Ub(3, "div", 17),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Kc(
4,
" \u626b\u63cf\u4e8c\u7ef4\u7801\u6216\u8005\u70b9\u51fb\u56fe\u6807\u5206\u4eab\u8fd9\u4e2a\u9875\u9762 "
),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Tb(),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Tb()),
2 & t)
) {
const t = _angular_core__WEBPACK_IMPORTED_MODULE_0__.ec(2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Cb(2),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.lc(
"src",
t.qrCodeSrc,
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Dc
);
}
}
function ShareComponent_div_0_div_2_Template(t, e) {
1 & t &&
(_angular_core__WEBPACK_IMPORTED_MODULE_0__.Ub(0, "div", 18),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Ub(1, "div", 19),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Ub(2, "div"),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Ub(3, "div"),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Kc(
4,
"\u626b\u63cf\u4e8c\u7ef4\u7801\u5206\u4eab"
),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Tb(),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Tb(),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Tb(),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Tb());
}
function ShareComponent_div_0_Template(t, e) {
if (1 & t) {
const t = _angular_core__WEBPACK_IMPORTED_MODULE_0__.Vb();
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Ub(0, "div", 4),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Ic(
1,
ShareComponent_div_0_div_1_Template,
5,
1,
"div",
5
),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Ic(
2,
ShareComponent_div_0_div_2_Template,
5,
0,
"div",
6
),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Ub(3, "div", 7),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Ub(4, "a", 8),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.bc("click", function () {
return (
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Ac(t),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.ec().share(!1)
);
}),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Pb(5, "img", 9),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.fc(6, "absUrl"),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Tb(),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Ub(7, "a", 10),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.bc("click", function () {
return (
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Ac(t),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.ec().share(!1)
);
}),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Pb(8, "img", 9),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.fc(9, "absUrl"),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Tb(),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Ub(10, "a", 11),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.bc("click", function () {
return (
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Ac(t),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.ec().share(!1)
);
}),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Pb(11, "img", 9),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.fc(12, "absUrl"),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Tb(),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Ub(13, "a", 12),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.bc("click", function () {
return (
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Ac(t),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.ec().share(!1)
);
}),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Pb(14, "img", 9),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.fc(15, "absUrl"),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Tb(),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Ub(16, "a", 13),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.bc("click", function () {
return (
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Ac(t),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.ec().share(!1)
);
}),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Pb(17, "img", 9),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.fc(18, "absUrl"),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Tb(),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Tb(),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Tb();
}
if (2 & t) {
const t = _angular_core__WEBPACK_IMPORTED_MODULE_0__.ec();
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Cb(1),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.lc(
"ngIf",
!t.showQRCode
),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Cb(1),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.lc("ngIf", t.showQRCode),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Cb(2),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.lc(
"href",
t.weiboLink,
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Dc
),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Cb(1),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.mc(
"src",
_angular_core__WEBPACK_IMPORTED_MODULE_0__.gc(
6,
12,
"./assets/images/social/weibo.png"
),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Dc
),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Cb(2),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.lc(
"href",
t.qqLink,
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Dc
),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Cb(1),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.mc(
"src",
_angular_core__WEBPACK_IMPORTED_MODULE_0__.gc(
9,
14,
"./assets/images/social/qq.png"
),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Dc
),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Cb(2),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.lc(
"href",
t.qqZoneLink,
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Dc
),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Cb(1),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.mc(
"src",
_angular_core__WEBPACK_IMPORTED_MODULE_0__.gc(
12,
16,
"./assets/images/social/qq-zone.png"
),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Dc
),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Cb(2),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.lc(
"href",
t.twitterLink,
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Dc
),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Cb(1),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.mc(
"src",
_angular_core__WEBPACK_IMPORTED_MODULE_0__.gc(
15,
18,
"./assets/images/social/twitter.png"
),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Dc
),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Cb(2),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.lc(
"href",
t.fbLink,
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Dc
),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Cb(1),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.mc(
"src",
_angular_core__WEBPACK_IMPORTED_MODULE_0__.gc(
18,
20,
"./assets/images/social/facebook.png"
),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Dc
);
}
}
function ShareComponent_div_1_div_1_Template(t, e) {
if (1 & t) {
const t = _angular_core__WEBPACK_IMPORTED_MODULE_0__.Vb();
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Ub(0, "div", 22),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Ub(1, "div", 23),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Pb(2, "img", 16),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Tb(),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Ub(3, "div", 24),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Ub(4, "div", 25),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Kc(
5,
" \u8bc6\u522b\u4e8c\u7ef4\u7801\uff0c\u7acb\u523b\u89c2\u770b\uff01 "
),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Tb(),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Ub(6, "div", 26),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Ub(7, "a", 27),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.bc("click", function () {
return (
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Ac(t),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.ec(2).share(!1)
);
}),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Pb(8, "img", 28),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.fc(9, "absUrl"),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Tb(),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Ub(10, "a", 29),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.bc("click", function () {
return (
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Ac(t),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.ec(2).share(!1)
);
}),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Pb(11, "img", 28),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.fc(12, "absUrl"),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Tb(),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Ub(13, "a", 30),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.bc("click", function () {
return (
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Ac(t),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.ec(2).share(!1)
);
}),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Pb(14, "img", 28),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.fc(15, "absUrl"),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Tb(),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Ub(16, "a", 31),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.bc("click", function () {
return (
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Ac(t),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.ec(2).share(!1)
);
}),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Pb(17, "img", 28),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.fc(18, "absUrl"),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Tb(),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Ub(19, "a", 32),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.bc("click", function () {
return (
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Ac(t),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.ec(2).share(!1)
);
}),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Pb(20, "img", 28),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.fc(21, "absUrl"),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Tb(),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Ub(22, "a", 33),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.bc("click", function () {
return (
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Ac(t),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.ec(2).share(!1)
);
}),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Pb(23, "img", 28),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.fc(24, "absUrl"),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Tb(),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Ub(25, "div", 34),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.bc("click", function () {
return (
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Ac(t),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.ec(2).downloadShare()
);
}),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Pb(26, "img", 28),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.fc(27, "absUrl"),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Tb(),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Tb(),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Tb(),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Tb();
}
if (2 & t) {
const t = _angular_core__WEBPACK_IMPORTED_MODULE_0__.ec(2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Cb(2),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.lc(
"src",
t.qrCodeSrc,
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Dc
),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Cb(5),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.lc(
"href",
t.weiboLink,
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Dc
),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Cb(1),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.mc(
"src",
_angular_core__WEBPACK_IMPORTED_MODULE_0__.gc(
9,
14,
"./assets/images/share/weibo.png"
),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Dc
),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Cb(2),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.lc(
"href",
t.qqLink,
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Dc
),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Cb(1),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.mc(
"src",
_angular_core__WEBPACK_IMPORTED_MODULE_0__.gc(
12,
16,
"./assets/images/share/qq.png"
),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Dc
),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Cb(2),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.lc(
"href",
t.wechatLink,
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Dc
),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Cb(1),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.mc(
"src",
_angular_core__WEBPACK_IMPORTED_MODULE_0__.gc(
15,
18,
"./assets/images/share/wechat.png"
),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Dc
),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Cb(2),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.lc(
"href",
t.fbLink,
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Dc
),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Cb(1),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.mc(
"src",
_angular_core__WEBPACK_IMPORTED_MODULE_0__.gc(
18,
20,
"./assets/images/share/facebook.png"
),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Dc
),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Cb(2),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.lc(
"href",
t.twitterLink,
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Dc
),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Cb(1),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.mc(
"src",
_angular_core__WEBPACK_IMPORTED_MODULE_0__.gc(
21,
22,
"./assets/images/share/twitter.png"
),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Dc
),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Cb(2),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.lc(
"href",
t.telegramLink,
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Dc
),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Cb(1),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.mc(
"src",
_angular_core__WEBPACK_IMPORTED_MODULE_0__.gc(
24,
24,
"./assets/images/share/telegram.png"
),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Dc
),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Cb(3),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.mc(
"src",
_angular_core__WEBPACK_IMPORTED_MODULE_0__.gc(
27,
26,
"./assets/images/share/download.png"
),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Dc
);
}
}
function ShareComponent_div_1_Template(t, e) {
if (
(1 & t &&
(_angular_core__WEBPACK_IMPORTED_MODULE_0__.Ub(0, "div", 20),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Ic(
1,
ShareComponent_div_1_div_1_Template,
28,
28,
"div",
21
),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Tb()),
2 & t)
) {
const t = _angular_core__WEBPACK_IMPORTED_MODULE_0__.ec();
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Cb(1),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.lc(
"ngIf",
!t.showQRCode
);
}
}
function ShareComponent_div_2_Template(t, e) {
if (1 & t) {
const t = _angular_core__WEBPACK_IMPORTED_MODULE_0__.Vb();
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Ub(0, "div", 35),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.bc("click", function () {
return (
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Ac(t),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.ec().closeSharePic()
);
}),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Tb();
}
}
function ShareComponent_div_3_img_4_Template(t, e) {
if (
(1 & t &&
(_angular_core__WEBPACK_IMPORTED_MODULE_0__.Pb(0, "img", 51, 59),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.fc(2, "absUrl")),
2 & t)
) {
const t = _angular_core__WEBPACK_IMPORTED_MODULE_0__.ec(2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__.lc(
"src",
_angular_core__WEBPACK_IMPORTED_MODULE_0__.gc(
2,
1,
t.image + "?w=348&h=206&mode=crop&format=jpg"
),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Dc
);
}
}
function ShareComponent_div_3_img_5_Template(t, e) {
if (
(1 & t &&
(_angular_core__WEBPACK_IMPORTED_MODULE_0__.Pb(0, "img", 51, 59),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.fc(2, "absUrl")),
2 & t)
) {
const t = _angular_core__WEBPACK_IMPORTED_MODULE_0__.ec(2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__.lc(
"src",
_angular_core__WEBPACK_IMPORTED_MODULE_0__.gc(
2,
1,
t.image + "?w=348&h=499&mode=crop&format=jpg"
),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Dc
);
}
}
function ShareComponent_div_3_div_9_span_1_Template(t, e) {
if (
(1 & t &&
(_angular_core__WEBPACK_IMPORTED_MODULE_0__.Ub(0, "span", 62),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Kc(1),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Tb()),
2 & t)
) {
const t = e.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Cb(1),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Lc(t);
}
}
function ShareComponent_div_3_div_9_Template(t, e) {
if (
(1 & t &&
(_angular_core__WEBPACK_IMPORTED_MODULE_0__.Ub(0, "div", 60),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Ic(
1,
ShareComponent_div_3_div_9_span_1_Template,
2,
1,
"span",
61
),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Tb()),
2 & t)
) {
const t = _angular_core__WEBPACK_IMPORTED_MODULE_0__.ec(2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Cb(1),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.lc("ngForOf", t.tagList);
}
}
function ShareComponent_div_3_div_15_div_1_Template(t, e) {
if (
(1 & t &&
(_angular_core__WEBPACK_IMPORTED_MODULE_0__.Ub(0, "div", 66),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Kc(1),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Tb()),
2 & t)
) {
const t = _angular_core__WEBPACK_IMPORTED_MODULE_0__.ec(3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Cb(1),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Lc(t.score);
}
}
const _c3 = function (t) {
return { fixLH: t };
};
function ShareComponent_div_3_div_15_div_2_Template(t, e) {
if (
(1 & t &&
(_angular_core__WEBPACK_IMPORTED_MODULE_0__.Ub(0, "div", 67),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Kc(1),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Tb()),
2 & t)
) {
const t = _angular_core__WEBPACK_IMPORTED_MODULE_0__.ec(3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__.lc(
"ngClass",
_angular_core__WEBPACK_IMPORTED_MODULE_0__.qc(
2,
_c3,
"" === t.score
)
),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Cb(1),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Lc(t.scoreLabel);
}
}
function ShareComponent_div_3_div_15_Template(t, e) {
if (
(1 & t &&
(_angular_core__WEBPACK_IMPORTED_MODULE_0__.Ub(0, "div", 63),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Ic(
1,
ShareComponent_div_3_div_15_div_1_Template,
2,
1,
"div",
64
),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Ic(
2,
ShareComponent_div_3_div_15_div_2_Template,
2,
4,
"div",
65
),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Tb()),
2 & t)
) {
const t = _angular_core__WEBPACK_IMPORTED_MODULE_0__.ec(2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Cb(1),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.lc(
"ngIf",
"" !== t.score
),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Cb(1),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.lc(
"ngIf",
"" !== t.scoreLabel
);
}
}
const _c4 = function (t) {
return { drama: t };
},
_c5 = function (t) {
return { show: t };
};
function ShareComponent_div_3_Template(t, e) {
if (1 & t) {
const t = _angular_core__WEBPACK_IMPORTED_MODULE_0__.Vb();
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Ub(0, "div", 36),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Ub(1, "div", 37),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Ub(2, "div", 38),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Ub(3, "div", 39),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Ic(
4,
ShareComponent_div_3_img_4_Template,
3,
3,
"img",
40
),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Ic(
5,
ShareComponent_div_3_img_5_Template,
3,
3,
"img",
40
),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Tb(),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Ub(6, "div", 41),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Kc(7),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Tb(),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Ub(8, "div", 42),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Ic(
9,
ShareComponent_div_3_div_9_Template,
2,
1,
"div",
43
),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Ub(10, "div", 44),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Ub(11, "div", 45),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Pb(12, "i", 46),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Ub(13, "span", 47),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Kc(14),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Tb(),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Tb(),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Ic(
15,
ShareComponent_div_3_div_15_Template,
3,
2,
"div",
48
),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Tb(),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Tb(),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Ub(16, "div", 49),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Ub(17, "div", 50),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Pb(18, "img", 51, 52),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Tb(),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Ub(20, "div", 53),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Ub(21, "div", 54),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Kc(
22,
" \u8bc6\u522b\u4e8c\u7ef4\u7801\uff0c\u7acb\u523b\u89c2\u770b\uff01 "
),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Tb(),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Ub(23, "div", 55),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Kc(24),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Tb(),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Tb(),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Tb(),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Tb(),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Pb(25, "canvas", 56, 57),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Ub(27, "div", 58),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.bc("click", function () {
return (
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Ac(t),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.ec().saveSharePic()
);
}),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Kc(
28,
" \u4fdd\u5b58\u5206\u4eab\u56fe\u7247 "
),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Tb(),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Tb(),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Tb();
}
if (2 & t) {
const t = _angular_core__WEBPACK_IMPORTED_MODULE_0__.ec();
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Cb(2),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.lc(
"ngClass",
_angular_core__WEBPACK_IMPORTED_MODULE_0__.qc(12, _c4, !t.isNews)
),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Cb(1),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.lc(
"ngClass",
_angular_core__WEBPACK_IMPORTED_MODULE_0__.qc(14, _c4, !t.isNews)
),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Cb(1),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.lc("ngIf", t.isNews),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Cb(1),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.lc("ngIf", !t.isNews),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Cb(2),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Lc(t.title),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Cb(1),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.lc(
"ngClass",
_angular_core__WEBPACK_IMPORTED_MODULE_0__.qc(16, _c4, !t.isNews)
),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Cb(1),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.lc("ngIf", !t.isNews),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Cb(5),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Lc(t.hot),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Cb(1),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.lc("ngIf", !t.isNews),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Cb(3),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.lc(
"src",
t.qrCodeSrc,
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Dc
),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Cb(6),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Mc(
" ",
t.shareBreifText,
" "
),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Cb(1),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.lc(
"ngClass",
_angular_core__WEBPACK_IMPORTED_MODULE_0__.qc(
18,
_c5,
t.showCanvas
)
);
}
}
let ShareComponent = (() => {
class ShareComponent {
constructor(t, e, i, n) {
(this._router = t),
(this.store = e),
(this._utility = i),
(this._dnDialogService = n),
(this.subscriptions = []),
(this.showQRCode = !1),
(this.toPlay = !1),
(this.isNews = !1),
(this.siteName = this._utility.getSiteConfig.title),
(this.shareBreifText = ""),
(this.isHorizontal = !1),
(this.tagList = []),
(this.hot = ""),
(this.score = ""),
(this.scoreLabel = ""),
(this.showSharePic = !1),
(this.showCanvas = !1),
(this.sharedEvent =
new _angular_core__WEBPACK_IMPORTED_MODULE_0__.n()),
(this.domain =
document.location.protocol + "//" + document.location.hostname);
}
ngOnInit() {
(this.showQRCode = !1),
this.genLinks(),
(this.shareBreifText = this.isNews
? `\u66f4\u591a\u6709\u8da3\u7684\u5c0f\u89c6\u9891\u5c3d\u5728${this.siteName}\uff0c\u5feb\u6765\u548c\u6211\u4e00\u8d77\u770b\u5427\uff01`
: `\u6211\u6b63\u5728${this.siteName}\u770b\u300a${this.title}\u300b \u6d77\u91cf\u9ad8\u6e05\u8d44\u6e90\u514d\u8d39\u770b\uff0c\u5c3d\u5728${this.siteName}\uff0c\u5feb\u6765\u548c\u6211\u4e00\u8d77\u770b\u5427\uff01`),
this.subscriptions.push(
this._router.events.subscribe((t) => {
(this.showQRCode = !1), this.genLinks();
})
);
}
shareLink(t, e, i, n) {
return (
"https://www.anygate.vip/r?url=" +
encodeURI(t) +
"&click=1&uid=0&to=" +
n +
"&type=text&pic=" +
encodeURI(e) +
"&title=" +
encodeURI(i) +
`&${this.isNews ? "v" : "id"}=` +
this.id +
"&desc=&comment=&relateUid=&searchPic=0&sign=on"
);
}
genLinks() {
let t = this.toPlay
? "https://www." + this._utility.GetHost() + "/watch?v={id}"
: "https://www." + this._utility.GetHost() + "/play/{id}";
this.isNews &&
(t = "https://www." + this._utility.GetHost() + "/watch?v={id}");
const e = t
.replace(
"{page}",
2 ==
_environments_environment__WEBPACK_IMPORTED_MODULE_3__.a
.cinema
? "Adult"
: "Movie"
)
.replace("{id}", this.id);
(this.qrCodeSrc = encodeURI(
this._utility.GetHost("//img.{Host}/qrcode/index?url=") +
encodeURI(e)
)),
(this.fbLink = this.shareLink(
e,
this.image,
this.title,
"fbook"
)),
(this.twitterLink = this.shareLink(
e,
this.image,
this.title,
"twi"
)),
(this.qqZoneLink = this.shareLink(
e,
this.image,
this.title,
"qzone"
)),
(this.qqLink = this.shareLink(e, this.image, this.title, "sqq")),
(this.weiboLink = this.shareLink(
e,
this.image,
this.title,
"tsina"
)),
(this.wechatLink = this.shareLink(
e,
this.image,
this.title,
"wechat"
)),
(this.telegramLink = this.shareLink(
e,
this.image,
this.title,
"telegram"
));
}
share(t) {
t && (this.showQRCode = !0),
this.store.dispatch({
type: _model_video_video_actions__WEBPACK_IMPORTED_MODULE_2__.a,
}),
this.sharedEvent.emit();
}
readState() {}
closeSharePic() {
this.showSharePic = !1;
}
downloadShare() {
this.showSharePic = !0;
}
downlaodPhoto(t) {
const e = document.createElement("a");
(e.style.display = "none"),
(e.href = t),
(e.download = "share-pic-" + t.substring(t.length - 8)),
(e.target = "_blank"),
document.body.appendChild(e),
e.click(),
document.body.removeChild(e),
setTimeout(() => {
this.store.dispatch({
type: _model_video_video_actions__WEBPACK_IMPORTED_MODULE_2__.a,
}),
this.sharedEvent.emit(),
this._dnDialogService.open("message-dialog", {
message: "\u5df2\u5f00\u59cb\u4e0b\u8f7d\u3002",
});
}, 250);
}
saveSharePic() {
this.canvasNewPic();
}
canvasNewPic() {
let t = this.coverPic.nativeElement,
e = t.clientWidth,
i = t.clientHeight,
n = this.qrPic.nativeElement,
o = n.clientWidth,
a = n.clientHeight,
s = this.isNews ? 420 : 710,
c = this.myCanvas,
r = c.nativeElement.getContext("2d");
if (
((c.nativeElement.height = s),
(c.nativeElement.width = 400),
(r.fillStyle = "#1c1d2f"),
r.fillRect(0, 0, 400, s),
this.roundedImage(r, t, 26, 26, e, i, 4),
this.roundedImage(r, n, 26, this.isNews ? 315 : 613, o, a, 4),
this.filteringString(
r,
"\u8bc6\u522b\u4e8c\u7ef4\u7801\uff0c\u7acb\u523b\u89c2\u770b\uff01",
111,
this.isNews ? 335 : 633,
260,
"#c4c4c4",
12
),
this.canvasWraptitleText(
r,
this.shareBreifText,
111,
this.isNews ? 363 : 661,
260,
18,
2,
"#828282",
12
),
this.filteringString(
r,
this.title,
26,
this.isNews ? 266 : 559,
348,
"#ffffff",
16
),
this.iconFont(
r,
"&#xe674;",
"iconfont",
this.isNews ? 26 : 230,
this.isNews ? 299 : 592
),
this.filteringString(
r,
this.hot,
this.isNews ? 45 : 249,
this.isNews ? 298 : 591,
70,
"#ffffff",
14
),
!this.isNews)
) {
this.filteringString(
r,
this.score,
313,
593,
40,
"#ee9d03",
24,
!0
),
this.filteringString(
r,
this.scoreLabel,
"" !== this.score ? 354 : 318,
591,
56,
"#ee9d03",
14
);
const t = { mRight: 8, width: 42, height: 21 };
if (this.tagList.length > 0)
for (let e = 0; e < this.tagList.length; e++)
this.textInBlock(r, this.tagList[e], {
xLeft: 26 + (t.width + t.mRight) * e,
xRight: 26 + t.width + (t.width + t.mRight) * e,
yTop: 575,
yBottom: 575 + t.height,
textOffsetX: 21,
textOffsetY: 15,
});
}
this.showCanvas = !0;
let l = new Image();
l.setAttribute("crossOrigin", "Anonymous"),
(l.src = c.nativeElement.toDataURL("image/png"));
const _ = l.src;
_
? this.downlaodPhoto(_)
: setTimeout(() => {
this._dnDialogService.open("message-dialog", {
message: "\u627e\u4e0d\u5230\u56fe\u7247\u4e0b\u8f7d\u3002",
});
}, 250);
}
roundedImage(t, e, i, n, o, a, s) {
t.save(),
t.beginPath(),
t.moveTo(i + s, n),
t.lineTo(i + o - s, n),
t.quadraticCurveTo(i + o, n, i + o, n + s),
t.lineTo(i + o, n + a - s),
t.quadraticCurveTo(i + o, n + a, i + o - s, n + a),
t.lineTo(i + s, n + a),
t.quadraticCurveTo(i, n + a, i, n + a - s),
t.lineTo(i, n + s),
t.quadraticCurveTo(i, n, i + s, n),
t.closePath(),
t.clip(),
t.drawImage(e, i, n, o, a),
t.restore();
}
canvasWraptitleText(t, e, i, n, o, a, s, c = "#ffffff", r) {
if (
"string" != typeof e ||
"number" != typeof i ||
"number" != typeof n
)
return;
(t.fillStyle = c),
(t.font = `${r}px -apple-system, system-ui`),
(t.textAlign = "left");
let l = e.split(""),
_ = "",
g = 1;
for (let d = 0; d < l.length; d++) {
let e = _ + l[d],
c = t.measureText(e).width;
if ((console.log(), c > o && d > 0)) {
if (g >= s) {
let o = e.split("");
o.splice(-2);
let a = o.join("");
return (a += "\u2026"), void t.fillText(a, i, n);
}
t.fillText(_, i, n), (_ = l[d]), (n += a), (g += 1);
} else _ = e;
}
t.fillText(_, i, n);
}
filteringString(t, e, i, n, o, a = "#ffffff", s, c = !1) {
if ("" === e) return;
(t.fillStyle = a),
(t.font = `${c ? "bold" : ""} ${s}px -apple-system, system-ui`);
let r = t.measureText(e).width;
const l = t.measureText("\u2026").width;
if (r <= o || o <= l) t.fillText(e, i, n, o);
else {
for (var _ = e.length; r >= o - l && _-- > 0; )
(e = e.slice(0, _)), (r = t.measureText(e).width);
t.fillText(e + "\u2026", i, n, o);
}
}
textInBlock(t, e, i) {
i &&
(t.beginPath(),
t.moveTo(i.xLeft, i.yTop),
t.lineTo(i.xLeft, i.yBottom),
t.lineTo(i.xRight, i.yBottom),
t.lineTo(i.xRight, i.yTop),
t.closePath(),
(t.fillStyle = "#2b2c3a"),
t.fill(),
(t.fillStyle = "#8a8a8a"),
(t.font = "12px -apple-system, system-ui"),
(t.textAlign = "center"),
t.fillText(e, i.xLeft + i.textOffsetX, i.yTop + i.textOffsetY));
}
iconFont(ctx, Unicode = "&#xe674;", font = "iconfont", x, y) {
ctx.beginPath();
let fontSize = 18;
(ctx.fillStyle = "#fe6f71"),
(ctx.font = `${fontSize}px ${font}`),
-1 !== Unicode.indexOf("&amp;") &&
(Unicode = Unicode.replace("&amp;", "&")),
-1 !== Unicode.indexOf("&amp") &&
(Unicode = Unicode.replace("&amp", "&"));
var icon = eval(
'("' + `${Unicode}`.replace("&#x", "\\u").replace(";", "") + '")'
);
ctx.fillText(icon, x, y);
}
}
return (
(ShareComponent.ɵfac = function (t) {
return new (t || ShareComponent)(
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Ob(
_angular_router__WEBPACK_IMPORTED_MODULE_6__.d
),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Ob(
_app_store__WEBPACK_IMPORTED_MODULE_1__.a
),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Ob(
_service_utility__WEBPACK_IMPORTED_MODULE_4__.a
),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Ob(
_modules_dn_dialog_dn_dialog_service__WEBPACK_IMPORTED_MODULE_5__.a
)
);
}),
(ShareComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__.Ib({
type: ShareComponent,
selectors: [["app-share"]],
viewQuery: function (t, e) {
if (
(1 & t &&
(_angular_core__WEBPACK_IMPORTED_MODULE_0__.Qc(_c0, 1),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Qc(_c1, 1),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Qc(_c2, 1)),
2 & t)
) {
let t;
_angular_core__WEBPACK_IMPORTED_MODULE_0__.wc(
(t = _angular_core__WEBPACK_IMPORTED_MODULE_0__.cc())
) && (e.coverPic = t.first),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.wc(
(t = _angular_core__WEBPACK_IMPORTED_MODULE_0__.cc())
) && (e.qrPic = t.first),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.wc(
(t = _angular_core__WEBPACK_IMPORTED_MODULE_0__.cc())
) && (e.myCanvas = t.first);
}
},
inputs: {
url: "url",
title: "title",
id: "id",
image: "image",
toPlay: "toPlay",
isNews: "isNews",
isHorizontal: "isHorizontal",
tagList: "tagList",
hot: "hot",
score: "score",
scoreLabel: "scoreLabel",
},
outputs: { sharedEvent: "sharedEvent" },
decls: 4,
vars: 4,
consts: [
["class", "share", 4, "ngIf"],
["class", "share-horizontal", 4, "ngIf"],
["class", "shadow-cover", 3, "click", 4, "ngIf"],
["class", "sharePic-popUp", 4, "ngIf"],
[1, "share"],
["class", "share-wechat", 4, "ngIf"],
[
"class",
"share-wechat d-flex justify-content-center mb-3",
4,
"ngIf",
],
[1, "d-flex", "align-items-center", "justify-content-center"],
[
"title",
"\u5206\u4eab\u5230\u65b0\u6d6a\u5fae\u535a",
"target",
"_blank",
1,
"social-link",
3,
"href",
"click",
],
[1, "social", 3, "src"],
[
"title",
"\u5206\u4eab\u5230QQ\u597d\u53cb",
"target",
"_blank",
1,
"social-link",
3,
"href",
"click",
],
[
"title",
"\u5206\u4eab\u5230QQ\u7a7a\u95f4",
"target",
"_blank",
1,
"social-link",
3,
"href",
"click",
],
[
"title",
"\u5206\u4eab\u5230Twitter",
"target",
"_blank",
1,
"social-link",
3,
"href",
"click",
],
[
"title",
"\u5206\u4eabFacebook",
"target",
"_blank",
1,
"social-link",
3,
"href",
"click",
],
[1, "share-wechat"],
[1, "qr-code"],
[3, "src"],
[1, "prompt", "w-100"],
[1, "share-wechat", "d-flex", "justify-content-center", "mb-3"],
[1, "qr-code", "flex-1"],
[1, "share-horizontal"],
["class", "share-qr-code", 4, "ngIf"],
[1, "share-qr-code"],
[1, "qr-code-round-corner"],
[1, "share-to"],
[1, "share-slogan"],
[1, "share-buttons"],
[
"title",
"\u5206\u4eab\u5230\u5fae\u535a",
"target",
"_blank",
1,
"share-button",
3,
"href",
"click",
],
[1, "share-icon", 3, "src"],
[
"title",
"\u5206\u4eab\u5230QQ",
"target",
"_blank",
1,
"share-button",
3,
"href",
"click",
],
[
"title",
"\u5206\u4eab\u5230\u5fae\u4fe1",
"target",
"_blank",
1,
"share-button",
3,
"href",
"click",
],
[
"title",
"\u5206\u4eab\u5230Facebook",
"target",
"_blank",
1,
"share-button",
3,
"href",
"click",
],
[
"title",
"\u5206\u4eab\u5230Twitter",
"target",
"_blank",
1,
"share-button",
3,
"href",
"click",
],
[
"title",
"\u5206\u4eab\u5230Telegram",
"target",
"_blank",
1,
"share-button",
3,
"href",
"click",
],
[
"title",
"\u4e0b\u8f7d\u5206\u4eab",
1,
"share-button",
3,
"click",
],
[1, "shadow-cover", 3, "click"],
[1, "sharePic-popUp"],
[1, "share-pic", "notranslate"],
[1, "share-pic-container", 3, "ngClass"],
[1, "share-pic-cover", 3, "ngClass"],
["crossOrigin", "anonymous", 3, "src", 4, "ngIf"],
[1, "share-pic-title"],
[1, "share-pic-data", 3, "ngClass"],
[
"class",
"d-flex align-items-center",
"style",
"margin-right: 4px;",
4,
"ngIf",
],
[1, "d-inline-flex", "align-items-center"],
[1, "d-flex", "align-items-center"],
[
1,
"iconfont",
"iconrenqi",
"d-block",
2,
"font-size",
"18px",
"color",
"#fe6f71",
],
[1, "mr-0", "fs-14", 2, "width", "59px", "margin-left", "1px"],
["class", "rate", 4, "ngIf"],
[1, "share-pic-bottom"],
[1, "share-pic-qr"],
["crossOrigin", "anonymous", 3, "src"],
["qrPic", ""],
[1, "share-pic-text"],
[1, "share-small-slogan"],
[1, "share-breif"],
[1, "canvasImg", 3, "ngClass"],
["myCanvas", ""],
[1, "save-share-pic", 3, "click"],
["coverPic", ""],
[1, "d-flex", "align-items-center", 2, "margin-right", "4px"],
["class", "tag", 4, "ngFor", "ngForOf"],
[1, "tag"],
[1, "rate"],
["class", "value", 4, "ngIf"],
["class", "rate-label", 3, "ngClass", 4, "ngIf"],
[1, "value"],
[1, "rate-label", 3, "ngClass"],
],
template: function (t, e) {
1 & t &&
(_angular_core__WEBPACK_IMPORTED_MODULE_0__.Ic(
0,
ShareComponent_div_0_Template,
19,
22,
"div",
0
),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Ic(
1,
ShareComponent_div_1_Template,
2,
1,
"div",
1
),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Ic(
2,
ShareComponent_div_2_Template,
1,
0,
"div",
2
),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Ic(
3,
ShareComponent_div_3_Template,
29,
20,
"div",
3
)),
2 & t &&
(_angular_core__WEBPACK_IMPORTED_MODULE_0__.lc(
"ngIf",
!e.isHorizontal
),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Cb(1),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.lc(
"ngIf",
e.isHorizontal
),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Cb(1),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.lc(
"ngIf",
e.showSharePic
),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.Cb(1),
_angular_core__WEBPACK_IMPORTED_MODULE_0__.lc(
"ngIf",
e.showSharePic
));
},
directives: [
_angular_common__WEBPACK_IMPORTED_MODULE_7__.n,
_angular_common__WEBPACK_IMPORTED_MODULE_7__.l,
_angular_common__WEBPACK_IMPORTED_MODULE_7__.m,
],
pipes: [_pipes_abs_url_pipe__WEBPACK_IMPORTED_MODULE_8__.a],
styles: [
".share[_ngcontent-%COMP%]{padding:10px 0}.prompt[_ngcontent-%COMP%], .qr-code[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;text-align:center;width:100%;height:50px}.prompt[_ngcontent-%COMP%] img[_ngcontent-%COMP%], .qr-code[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:90px;width:90px;border:1px solid #ddd;padding:5px;display:block}.qr-code[_ngcontent-%COMP%]{height:105px}.social-link[_ngcontent-%COMP%]{width:20%}img.social[_ngcontent-%COMP%]{width:40px}.share-horizontal[_ngcontent-%COMP%]{height:100%;width:100%}.share-qr-code[_ngcontent-%COMP%]{display:flex}.qr-code-round-corner[_ngcontent-%COMP%]{width:75px;height:75px;overflow:hidden;border-radius:4px}.qr-code-round-corner[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:100%;width:100%}.share-to[_ngcontent-%COMP%]{margin-left:20px;display:flex;flex-direction:column;justify-content:space-between}.share-slogan[_ngcontent-%COMP%]{color:#fff6;font-size:14px;padding-left:3px}.share-buttons[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.share-buttons[_ngcontent-%COMP%] [_ngcontent-%COMP%]:first-child{margin-left:0!important}.share-buttons[_ngcontent-%COMP%] [_ngcontent-%COMP%]:last-child{margin-right:0!important}.share-button[_ngcontent-%COMP%]{overflow:hidden;margin:0 9px;cursor:pointer}.share-button[_ngcontent-%COMP%], .share-icon[_ngcontent-%COMP%]{width:40px;height:40px}.shadow-cover[_ngcontent-%COMP%]{background-color:#00000080;width:100%;height:100%;z-index:1000}.shadow-cover[_ngcontent-%COMP%], .sharePic-popUp[_ngcontent-%COMP%]{position:fixed;left:0;top:0;right:0;bottom:0}.sharePic-popUp[_ngcontent-%COMP%]{z-index:1002;margin:auto}.share-pic[_ngcontent-%COMP%], .sharePic-popUp[_ngcontent-%COMP%]{width:min-content;height:min-content}.share-pic[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative}.share-pic[_ngcontent-%COMP%] .share-pic-container[_ngcontent-%COMP%]{width:400px;height:420px;background-color:#1c1d2f;position:relative;padding:26px}.share-pic[_ngcontent-%COMP%] .share-pic-container.drama[_ngcontent-%COMP%]{height:710px}.share-pic[_ngcontent-%COMP%] .share-pic-container[_ngcontent-%COMP%] .share-pic-cover[_ngcontent-%COMP%]{width:348px;height:206px;border-radius:4px;overflow:hidden;margin:0 auto;background-color:#2b2c3a}.share-pic[_ngcontent-%COMP%] .share-pic-container[_ngcontent-%COMP%] .share-pic-cover.drama[_ngcontent-%COMP%]{height:499px}.share-pic[_ngcontent-%COMP%] .share-pic-container[_ngcontent-%COMP%] .share-pic-cover[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover}.share-pic-title[_ngcontent-%COMP%]{color:#fff;font-size:16px;width:348px;height:40px;line-height:40px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:8px auto 0}.share-pic-data[_ngcontent-%COMP%]{line-height:21px;height:25px;margin:0 0 10px;display:flex;align-items:center}.share-pic-data.drama[_ngcontent-%COMP%]{margin-bottom:15px}.tag[_ngcontent-%COMP%]{background-color:#2b2c3a;color:#fff6;width:42px;text-overflow:ellipsis;overflow:hidden;white-space:pre;font-size:12px;margin-right:8px;text-align:center}.rate[_ngcontent-%COMP%]{font-size:14px;align-items:baseline;margin-left:5px}.rate[_ngcontent-%COMP%], .rate[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{color:#ee9d03!important;display:inline-block}.rate[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{font-weight:700;font-size:24px}.rate[_ngcontent-%COMP%] .rate-label[_ngcontent-%COMP%]{color:#ee9d03!important;display:inline-block;line-height:15px;vertical-align:text-top;margin-left:5px!important}.rate[_ngcontent-%COMP%] .rate-label.fixLH[_ngcontent-%COMP%]{line-height:20px}.share-pic-bottom[_ngcontent-%COMP%]{display:flex}.share-pic-qr[_ngcontent-%COMP%]{width:75px;height:75px;overflow:hidden;border-radius:4px;margin-right:10px;background-color:#2b2c3a}.share-pic-qr[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%}.share-small-slogan[_ngcontent-%COMP%]{color:#ffffffb3;white-space:nowrap;margin-bottom:4px}.share-breif[_ngcontent-%COMP%], .share-small-slogan[_ngcontent-%COMP%]{font-size:12px;width:260px;overflow:hidden;text-overflow:ellipsis}.share-breif[_ngcontent-%COMP%]{color:#fff6;line-height:18px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.canvasImg[_ngcontent-%COMP%]{position:absolute;left:0;top:0;z-index:-100}.canvasImg.show[_ngcontent-%COMP%]{z-index:1}.save-share-pic[_ngcontent-%COMP%]{width:186px;height:40px;cursor:pointer;color:#fff;background-color:#00c0ff;font-size:18px;text-align:center;line-height:40px;margin-top:30px}@media (max-width:1678px){.canvasImg[_ngcontent-%COMP%], .share-pic-container[_ngcontent-%COMP%]{zoom:.8}}",
],
})),
ShareComponent
);
})();
},
},
]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment