@streamlayer/react-ui 1.28.2 → 1.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/app/app/Layout/styles.d.ts +1 -0
- package/lib/app/app/Layout/styles.js +33 -24
- package/lib/app/webos/Advertisement/AdvertisementUI.d.ts +0 -1
- package/lib/app/webos/Advertisement/AdvertisementUI.js +13 -15
- package/lib/app/webos/Advertisement/index.js +10 -11
- package/lib/app/webos/ExposedPauseAd/PauseAd.d.ts +2 -0
- package/lib/app/webos/ExposedPauseAd/PauseAd.js +92 -70
- package/lib/app/webos/ExposedPauseAd/styles.d.ts +1 -1
- package/lib/app/webos/ExposedPauseAd/styles.js +5 -5
- package/lib/app/webos/index.d.ts +4 -0
- package/lib/app/webos/index.js +38 -36
- package/lib/app/webos/story.js +47 -36
- package/lib/app/webos/ui/Sidebar/PromoAction.js +38 -34
- package/lib/app/webos/ui/Sidebar/index.d.ts +0 -1
- package/lib/app/webos/ui/Sidebar/index.js +70 -71
- package/lib/app/webos/ui/Sidebar/styles.d.ts +1 -0
- package/lib/app/webos/ui/Sidebar/styles.js +120 -115
- package/lib/app/webos/ui/insight/index.js +43 -77
- package/lib/assets/style.css +1 -1
- package/lib/{index-DXvAPWiE.js → index-l-eyvmpL.js} +296 -281
- package/lib/ui/advertisement/notification/index.js +24 -24
- package/lib/ui/advertisement/notification/lower-third/index.js +48 -40
- package/lib/ui/advertisement/overlay/externalAd/vast-player/useGAMPlayer.js +8 -7
- package/lib/ui/advertisement/overlay/externalAd/vast-player/useGAMStatic.d.ts +9 -0
- package/lib/ui/advertisement/overlay/externalAd/vast-player/useGAMStatic.js +44 -0
- package/lib/ui/advertisement/overlay/externalAd/vast-player/useVastAds.js +240 -6
- package/lib/ui/gamification/question/inapp/notification/AdNotification/index.js +62 -52
- package/lib/ui/video-player/index.d.ts +1 -0
- package/lib/ui/video-player/index.js +138 -125
- package/lib/ui/video-player/styles.d.ts +1 -0
- package/lib/ui/video-player/styles.js +32 -27
- package/lib/{useVastAds-CakWRNKN.js → vast-client.min-B0NUra1B.js} +358 -594
- package/package.json +17 -17
- package/lib/app/webos/ui/Layout/index.d.ts +0 -21
- package/lib/app/webos/ui/Layout/index.js +0 -78
- package/lib/app/webos/ui/Layout/styles.d.ts +0 -11
- package/lib/app/webos/ui/Layout/styles.js +0 -59
- package/lib/hooks/useKeyboardNavigation.d.ts +0 -15
- package/lib/hooks/useKeyboardNavigation.js +0 -74
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as w } from "react/jsx-runtime";
|
|
2
2
|
import { styled as f } from "@linaria/react";
|
|
3
3
|
import Q from "react";
|
|
4
4
|
import { VideoPlayer as ne } from "../../../../ui/video-player/index.js";
|
|
@@ -47,17 +47,17 @@ var ie = function() {
|
|
|
47
47
|
return n.PropTypes = n, n;
|
|
48
48
|
};
|
|
49
49
|
U.exports = ie();
|
|
50
|
-
var G = U.exports,
|
|
50
|
+
var G = U.exports, W = {
|
|
51
51
|
L: 1,
|
|
52
52
|
M: 0,
|
|
53
53
|
Q: 3,
|
|
54
54
|
H: 2
|
|
55
|
-
},
|
|
55
|
+
}, K = {
|
|
56
56
|
MODE_NUMBER: 1,
|
|
57
57
|
MODE_ALPHA_NUM: 2,
|
|
58
58
|
MODE_8BIT_BYTE: 4,
|
|
59
59
|
MODE_KANJI: 8
|
|
60
|
-
}, le =
|
|
60
|
+
}, le = K;
|
|
61
61
|
function X(e) {
|
|
62
62
|
this.mode = le.MODE_8BIT_BYTE, this.data = e;
|
|
63
63
|
}
|
|
@@ -70,7 +70,7 @@ X.prototype = {
|
|
|
70
70
|
e.put(this.data.charCodeAt(t), 8);
|
|
71
71
|
}
|
|
72
72
|
};
|
|
73
|
-
var ue = X, x =
|
|
73
|
+
var ue = X, x = W;
|
|
74
74
|
function T(e, t) {
|
|
75
75
|
this.totalCount = e, this.dataCount = t;
|
|
76
76
|
}
|
|
@@ -379,7 +379,7 @@ k.prototype = {
|
|
|
379
379
|
return new k(n, 0).mod(e);
|
|
380
380
|
}
|
|
381
381
|
};
|
|
382
|
-
var j = k, g =
|
|
382
|
+
var j = k, g = K, z = j, ve = Y, A = {
|
|
383
383
|
PATTERN000: 0,
|
|
384
384
|
PATTERN001: 1,
|
|
385
385
|
PATTERN010: 2,
|
|
@@ -454,21 +454,21 @@ var j = k, g = W, z = j, ve = Y, L = {
|
|
|
454
454
|
},
|
|
455
455
|
getMask: function(e, t, n) {
|
|
456
456
|
switch (e) {
|
|
457
|
-
case
|
|
457
|
+
case A.PATTERN000:
|
|
458
458
|
return (t + n) % 2 == 0;
|
|
459
|
-
case
|
|
459
|
+
case A.PATTERN001:
|
|
460
460
|
return t % 2 == 0;
|
|
461
|
-
case
|
|
461
|
+
case A.PATTERN010:
|
|
462
462
|
return n % 3 == 0;
|
|
463
|
-
case
|
|
463
|
+
case A.PATTERN011:
|
|
464
464
|
return (t + n) % 3 == 0;
|
|
465
|
-
case
|
|
465
|
+
case A.PATTERN100:
|
|
466
466
|
return (Math.floor(t / 2) + Math.floor(n / 3)) % 2 == 0;
|
|
467
|
-
case
|
|
467
|
+
case A.PATTERN101:
|
|
468
468
|
return t * n % 2 + t * n % 3 == 0;
|
|
469
|
-
case
|
|
469
|
+
case A.PATTERN110:
|
|
470
470
|
return (t * n % 2 + t * n % 3) % 2 == 0;
|
|
471
|
-
case
|
|
471
|
+
case A.PATTERN111:
|
|
472
472
|
return (t * n % 3 + (t + n) % 2) % 2 == 0;
|
|
473
473
|
default:
|
|
474
474
|
throw new Error("bad maskPattern:" + e);
|
|
@@ -548,7 +548,7 @@ var j = k, g = W, z = j, ve = Y, L = {
|
|
|
548
548
|
var C = Math.abs(100 * u / t / t - 50) / 5;
|
|
549
549
|
return n += C * 10, n;
|
|
550
550
|
}
|
|
551
|
-
}, pe = v, de = ue, J = fe, q = he,
|
|
551
|
+
}, pe = v, de = ue, J = fe, q = he, L = pe, ge = j;
|
|
552
552
|
function B(e, t) {
|
|
553
553
|
this.typeNumber = e, this.errorCorrectLevel = t, this.modules = null, this.moduleCount = 0, this.dataCache = null, this.dataList = [];
|
|
554
554
|
}
|
|
@@ -573,7 +573,7 @@ d.make = function() {
|
|
|
573
573
|
r += t[a].dataCount;
|
|
574
574
|
for (var a = 0; a < this.dataList.length; a++) {
|
|
575
575
|
var o = this.dataList[a];
|
|
576
|
-
n.put(o.mode, 4), n.put(o.getLength(),
|
|
576
|
+
n.put(o.mode, 4), n.put(o.getLength(), L.getLengthInBits(o.mode, e)), o.write(n);
|
|
577
577
|
}
|
|
578
578
|
if (n.getLengthInBits() <= r * 8)
|
|
579
579
|
break;
|
|
@@ -600,7 +600,7 @@ d.setupPositionProbePattern = function(e, t) {
|
|
|
600
600
|
d.getBestMaskPattern = function() {
|
|
601
601
|
for (var e = 0, t = 0, n = 0; n < 8; n++) {
|
|
602
602
|
this.makeImpl(!0, n);
|
|
603
|
-
var r =
|
|
603
|
+
var r = L.getLostPoint(this);
|
|
604
604
|
(n == 0 || e > r) && (e = r, t = n);
|
|
605
605
|
}
|
|
606
606
|
return t;
|
|
@@ -622,7 +622,7 @@ d.setupTimingPattern = function() {
|
|
|
622
622
|
this.modules[6][t] == null && (this.modules[6][t] = t % 2 == 0);
|
|
623
623
|
};
|
|
624
624
|
d.setupPositionAdjustPattern = function() {
|
|
625
|
-
for (var e =
|
|
625
|
+
for (var e = L.getPatternPosition(this.typeNumber), t = 0; t < e.length; t++)
|
|
626
626
|
for (var n = 0; n < e.length; n++) {
|
|
627
627
|
var r = e[t], a = e[n];
|
|
628
628
|
if (this.modules[r][a] == null)
|
|
@@ -632,7 +632,7 @@ d.setupPositionAdjustPattern = function() {
|
|
|
632
632
|
}
|
|
633
633
|
};
|
|
634
634
|
d.setupTypeNumber = function(e) {
|
|
635
|
-
for (var t =
|
|
635
|
+
for (var t = L.getBCHTypeNumber(this.typeNumber), n = 0; n < 18; n++) {
|
|
636
636
|
var r = !e && (t >> n & 1) == 1;
|
|
637
637
|
this.modules[Math.floor(n / 3)][n % 3 + this.moduleCount - 8 - 3] = r;
|
|
638
638
|
}
|
|
@@ -642,7 +642,7 @@ d.setupTypeNumber = function(e) {
|
|
|
642
642
|
}
|
|
643
643
|
};
|
|
644
644
|
d.setupTypeInfo = function(e, t) {
|
|
645
|
-
for (var n = this.errorCorrectLevel << 3 | t, r =
|
|
645
|
+
for (var n = this.errorCorrectLevel << 3 | t, r = L.getBCHTypeInfo(n), a = 0; a < 15; a++) {
|
|
646
646
|
var o = !e && (r >> a & 1) == 1;
|
|
647
647
|
a < 6 ? this.modules[a][8] = o : a < 8 ? this.modules[a + 1][8] = o : this.modules[this.moduleCount - 15 + a][8] = o;
|
|
648
648
|
}
|
|
@@ -659,7 +659,7 @@ d.mapData = function(e, t) {
|
|
|
659
659
|
if (this.modules[r][i - s] == null) {
|
|
660
660
|
var l = !1;
|
|
661
661
|
o < e.length && (l = (e[o] >>> a & 1) == 1);
|
|
662
|
-
var h =
|
|
662
|
+
var h = L.getMask(t, r, i - s);
|
|
663
663
|
h && (l = !l), this.modules[r][i - s] = l, a--, a == -1 && (o++, a = 7);
|
|
664
664
|
}
|
|
665
665
|
if (r += n, r < 0 || this.moduleCount <= r) {
|
|
@@ -673,7 +673,7 @@ B.PAD1 = 17;
|
|
|
673
673
|
B.createData = function(e, t, n) {
|
|
674
674
|
for (var r = J.getRSBlocks(e, t), a = new q(), o = 0; o < n.length; o++) {
|
|
675
675
|
var i = n[o];
|
|
676
|
-
a.put(i.mode, 4), a.put(i.getLength(),
|
|
676
|
+
a.put(i.mode, 4), a.put(i.getLength(), L.getLengthInBits(i.mode, e)), i.write(a);
|
|
677
677
|
}
|
|
678
678
|
for (var s = 0, o = 0; o < r.length; o++)
|
|
679
679
|
s += r[o].dataCount;
|
|
@@ -692,11 +692,11 @@ B.createBytes = function(e, t) {
|
|
|
692
692
|
for (var u = 0; u < o[s].length; u++)
|
|
693
693
|
o[s][u] = 255 & e.buffer[u + n];
|
|
694
694
|
n += l;
|
|
695
|
-
var C =
|
|
695
|
+
var C = L.getErrorCorrectPolynomial(h), I = new ge(o[s], C.getLength() - 1), P = I.mod(C);
|
|
696
696
|
i[s] = new Array(C.getLength() - 1);
|
|
697
697
|
for (var u = 0; u < i[s].length; u++) {
|
|
698
|
-
var y = u +
|
|
699
|
-
i[s][u] = y >= 0 ?
|
|
698
|
+
var y = u + P.getLength() - i[s].length;
|
|
699
|
+
i[s][u] = y >= 0 ? P.get(y) : 0;
|
|
700
700
|
}
|
|
701
701
|
}
|
|
702
702
|
for (var D = 0, u = 0; u < t.length; u++)
|
|
@@ -767,7 +767,7 @@ var Ee = Object.assign || function(e) {
|
|
|
767
767
|
Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
768
768
|
}
|
|
769
769
|
return e;
|
|
770
|
-
},
|
|
770
|
+
}, Ae = G, E = M(Ae), Le = W, _e = M(Le), Re = ce, we = M(Re), re = Q, Pe = M(re), ye = H, De = M(ye);
|
|
771
771
|
function M(e) {
|
|
772
772
|
return e && e.__esModule ? e : { default: e };
|
|
773
773
|
}
|
|
@@ -784,25 +784,25 @@ var Ie = {
|
|
|
784
784
|
size: E.default.number,
|
|
785
785
|
value: E.default.string.isRequired
|
|
786
786
|
}, S = (0, re.forwardRef)(function(e, t) {
|
|
787
|
-
var n = e.bgColor, r = n === void 0 ? "#FFFFFF" : n, a = e.fgColor, o = a === void 0 ? "#000000" : a, i = e.level, s = i === void 0 ? "L" : i, l = e.size, h = l === void 0 ? 256 : l, u = e.value, C = be(e, ["bgColor", "fgColor", "level", "size", "value"]), I = new
|
|
787
|
+
var n = e.bgColor, r = n === void 0 ? "#FFFFFF" : n, a = e.fgColor, o = a === void 0 ? "#000000" : a, i = e.level, s = i === void 0 ? "L" : i, l = e.size, h = l === void 0 ? 256 : l, u = e.value, C = be(e, ["bgColor", "fgColor", "level", "size", "value"]), I = new we.default(-1, _e.default[s]);
|
|
788
788
|
I.addData(u), I.make();
|
|
789
|
-
var
|
|
790
|
-
return
|
|
789
|
+
var P = I.modules;
|
|
790
|
+
return Pe.default.createElement(De.default, Ee({}, C, {
|
|
791
791
|
bgColor: r,
|
|
792
|
-
bgD:
|
|
792
|
+
bgD: P.map(function(y, D) {
|
|
793
793
|
return y.map(function(_, b) {
|
|
794
794
|
return _ ? "" : "M " + b + " " + D + " l 1 0 0 1 -1 0 Z";
|
|
795
795
|
}).join(" ");
|
|
796
796
|
}).join(" "),
|
|
797
797
|
fgColor: o,
|
|
798
|
-
fgD:
|
|
798
|
+
fgD: P.map(function(y, D) {
|
|
799
799
|
return y.map(function(_, b) {
|
|
800
800
|
return _ ? "M " + b + " " + D + " l 1 0 0 1 -1 0 Z" : "";
|
|
801
801
|
}).join(" ");
|
|
802
802
|
}).join(" "),
|
|
803
803
|
ref: t,
|
|
804
804
|
size: h,
|
|
805
|
-
viewBoxSize:
|
|
805
|
+
viewBoxSize: P.length
|
|
806
806
|
}));
|
|
807
807
|
});
|
|
808
808
|
N.QRCode = S;
|
|
@@ -810,94 +810,98 @@ S.displayName = "QRCode";
|
|
|
810
810
|
S.propTypes = Ie;
|
|
811
811
|
var Me = N.default = S;
|
|
812
812
|
const Ge = /* @__PURE__ */ f("div")({
|
|
813
|
+
name: "Wrap",
|
|
814
|
+
class: "wlxplqv",
|
|
815
|
+
propsAsIs: !1
|
|
816
|
+
}), We = /* @__PURE__ */ f("div")({
|
|
813
817
|
name: "Container",
|
|
814
|
-
class: "
|
|
818
|
+
class: "c18fzrta",
|
|
815
819
|
propsAsIs: !1
|
|
816
820
|
}), Ke = /* @__PURE__ */ f("div")({
|
|
817
821
|
name: "Header",
|
|
818
|
-
class: "
|
|
822
|
+
class: "hxfcca1",
|
|
819
823
|
propsAsIs: !1
|
|
820
|
-
}),
|
|
824
|
+
}), Xe = /* @__PURE__ */ f("div")({
|
|
821
825
|
name: "BrandBlock",
|
|
822
|
-
class: "
|
|
826
|
+
class: "bz4xk2s",
|
|
823
827
|
propsAsIs: !1
|
|
824
|
-
}),
|
|
828
|
+
}), Ze = /* @__PURE__ */ f("img")({
|
|
825
829
|
name: "LogoIcon",
|
|
826
|
-
class: "
|
|
827
|
-
propsAsIs: !1
|
|
828
|
-
}), Ze = /* @__PURE__ */ f("div")({
|
|
829
|
-
name: "BrandText",
|
|
830
|
-
class: "b1udizru",
|
|
830
|
+
class: "l1udizru",
|
|
831
831
|
propsAsIs: !1
|
|
832
832
|
}), Ye = /* @__PURE__ */ f("div")({
|
|
833
|
-
name: "
|
|
833
|
+
name: "BrandText",
|
|
834
834
|
class: "b1keaj5j",
|
|
835
835
|
propsAsIs: !1
|
|
836
|
-
}), je = /* @__PURE__ */ f("
|
|
837
|
-
name: "
|
|
836
|
+
}), je = /* @__PURE__ */ f("div")({
|
|
837
|
+
name: "BrandNameContainer",
|
|
838
838
|
class: "b17io0yd",
|
|
839
839
|
propsAsIs: !1
|
|
840
840
|
}), Je = /* @__PURE__ */ f("span")({
|
|
841
|
+
name: "BrandName",
|
|
842
|
+
class: "b4ldrvh",
|
|
843
|
+
propsAsIs: !1
|
|
844
|
+
}), qe = /* @__PURE__ */ f("span")({
|
|
841
845
|
name: "Sponsored",
|
|
842
|
-
class: "
|
|
846
|
+
class: "sxfmzcm",
|
|
843
847
|
propsAsIs: !1
|
|
844
|
-
}),
|
|
848
|
+
}), et = (e) => /* @__PURE__ */ w("svg", {
|
|
845
849
|
viewBox: "0 0 24 24",
|
|
846
850
|
fill: "white",
|
|
847
851
|
xmlns: "http://www.w3.org/2000/svg",
|
|
848
852
|
...e,
|
|
849
|
-
children: /* @__PURE__ */
|
|
853
|
+
children: /* @__PURE__ */ w("path", {
|
|
850
854
|
fillRule: "evenodd",
|
|
851
855
|
clipRule: "evenodd",
|
|
852
856
|
d: "M6.225 4.811a.75.75 0 0 1 1.06 0L12 9.525l4.715-4.714a.75.75 0 1 1 1.06 1.06L13.06 10.5l4.715 4.715a.75.75 0 0 1-1.06 1.06L12 11.56l-4.715 4.715a.75.75 0 0 1-1.06-1.06L10.94 10.5 6.225 5.785a.75.75 0 0 1 0-1.06z"
|
|
853
857
|
})
|
|
854
|
-
}),
|
|
858
|
+
}), tt = /* @__PURE__ */ f("button")({
|
|
855
859
|
name: "CloseButton",
|
|
856
|
-
class: "
|
|
860
|
+
class: "caubznb",
|
|
857
861
|
propsAsIs: !1
|
|
858
|
-
}), xe = () => ne,
|
|
862
|
+
}), xe = () => ne, rt = /* @__PURE__ */ f(xe())({
|
|
859
863
|
name: "FocusableVideo",
|
|
860
|
-
class: "
|
|
864
|
+
class: "f1n8ue7o",
|
|
861
865
|
propsAsIs: !0
|
|
862
|
-
}),
|
|
866
|
+
}), nt = /* @__PURE__ */ f("div")({
|
|
863
867
|
name: "VideoWrapper",
|
|
864
|
-
class: "
|
|
868
|
+
class: "vexkm55",
|
|
865
869
|
propsAsIs: !1
|
|
866
870
|
}), Oe = () => ({
|
|
867
871
|
isPlaying: e
|
|
868
|
-
}) => e ? "none" : "block",
|
|
872
|
+
}) => e ? "none" : "block", at = /* @__PURE__ */ f("button")({
|
|
869
873
|
name: "PlayPauseButton",
|
|
870
|
-
class: "
|
|
874
|
+
class: "pilh2qp",
|
|
871
875
|
propsAsIs: !1,
|
|
872
876
|
vars: {
|
|
873
|
-
"
|
|
877
|
+
"pilh2qp-0": [Oe()]
|
|
874
878
|
}
|
|
875
879
|
}), ke = () => ({
|
|
876
880
|
visible: e
|
|
877
|
-
}) => e ? "flex" : "none",
|
|
881
|
+
}) => e ? "flex" : "none", ot = /* @__PURE__ */ f("div")({
|
|
878
882
|
name: "CenterIndicator",
|
|
879
|
-
class: "
|
|
883
|
+
class: "c1x04fia",
|
|
880
884
|
propsAsIs: !1,
|
|
881
885
|
vars: {
|
|
882
|
-
"
|
|
886
|
+
"c1x04fia-0": [ke()]
|
|
883
887
|
}
|
|
884
|
-
}),
|
|
888
|
+
}), st = /* @__PURE__ */ f("div")({
|
|
885
889
|
name: "VideoBlock",
|
|
886
|
-
class: "
|
|
890
|
+
class: "v15di30w",
|
|
887
891
|
propsAsIs: !1
|
|
888
892
|
}), Ne = () => ({
|
|
889
893
|
backgroundColor: e
|
|
890
894
|
}) => e || "#0f6cd4", Se = () => ({
|
|
891
895
|
textColor: e
|
|
892
|
-
}) => e || "#fff",
|
|
896
|
+
}) => e || "#fff", it = /* @__PURE__ */ f("div")({
|
|
893
897
|
name: "SendToUserButton",
|
|
894
|
-
class: "
|
|
898
|
+
class: "sui9wi2",
|
|
895
899
|
propsAsIs: !1,
|
|
896
900
|
vars: {
|
|
897
|
-
"
|
|
898
|
-
"
|
|
901
|
+
"sui9wi2-0": [Ne()],
|
|
902
|
+
"sui9wi2-1": [Se()]
|
|
899
903
|
}
|
|
900
|
-
}),
|
|
904
|
+
}), lt = () => /* @__PURE__ */ w("svg", {
|
|
901
905
|
fill: "white",
|
|
902
906
|
style: {
|
|
903
907
|
fill: "white",
|
|
@@ -908,58 +912,58 @@ const Ge = /* @__PURE__ */ f("div")({
|
|
|
908
912
|
},
|
|
909
913
|
viewBox: "0 0 40 28",
|
|
910
914
|
xmlns: "http://www.w3.org/2000/svg",
|
|
911
|
-
children: /* @__PURE__ */
|
|
915
|
+
children: /* @__PURE__ */ w("path", {
|
|
912
916
|
d: "M5.57502 27.5H34.9099C37.803 27.5 39.5 25.8713 39.5 22.645V5.355C39.5 2.12878 37.7869 0.5 34.4251 0.5H5.09014C2.19706 0.5 0.5 2.12878 0.5 5.355V22.645C0.5 25.8713 2.21323 27.5 5.57502 27.5ZM5.47805 25.1039C3.87796 25.1039 2.97286 24.2425 2.97286 22.6294V5.33933C2.97286 3.74189 3.87796 2.89618 5.47805 2.89618H34.5058C36.1059 2.89618 37.0272 3.74189 37.0272 5.355V22.645C37.0272 24.2425 36.1059 25.1039 34.5058 25.1039H5.47805ZM19.9919 18.1189C21.0263 18.1189 22.0285 17.7431 22.9496 16.9287L38.1586 3.66359L36.4776 2.01915L21.5435 15.0651C21.0425 15.5035 20.5253 15.7071 19.9919 15.7071C19.4586 15.7071 18.9414 15.5035 18.4403 15.0651L3.50622 2.01915L1.82532 3.66359L17.0342 16.9287C17.9554 17.7431 18.9575 18.1189 19.9919 18.1189ZM3.74866 25.4954L15.224 14.3602L13.5431 12.7315L2.06776 23.851L3.74866 25.4954ZM36.2676 25.5111L37.9484 23.8666L26.4569 12.7315L24.7598 14.3602L36.2676 25.5111Z",
|
|
913
917
|
fill: "white"
|
|
914
918
|
})
|
|
915
|
-
}),
|
|
919
|
+
}), ut = /* @__PURE__ */ f("div")({
|
|
916
920
|
name: "SendToUserText",
|
|
917
|
-
class: "
|
|
921
|
+
class: "sddh3kx",
|
|
918
922
|
propsAsIs: !1
|
|
919
|
-
}),
|
|
923
|
+
}), ft = /* @__PURE__ */ f("div")({
|
|
920
924
|
name: "VideoStatus",
|
|
921
|
-
class: "
|
|
925
|
+
class: "v13i81d3",
|
|
922
926
|
propsAsIs: !1
|
|
923
|
-
}),
|
|
927
|
+
}), ht = /* @__PURE__ */ f("h2")({
|
|
924
928
|
name: "Title",
|
|
925
|
-
class: "
|
|
929
|
+
class: "t1vr1bii",
|
|
926
930
|
propsAsIs: !1
|
|
927
|
-
}),
|
|
931
|
+
}), vt = /* @__PURE__ */ f("p")({
|
|
928
932
|
name: "Description",
|
|
929
|
-
class: "
|
|
930
|
-
propsAsIs: !1
|
|
931
|
-
}), vt = /* @__PURE__ */ f("div")({
|
|
932
|
-
name: "QRBlock",
|
|
933
|
-
class: "q1st3522",
|
|
933
|
+
class: "d1st3522",
|
|
934
934
|
propsAsIs: !1
|
|
935
935
|
}), pt = /* @__PURE__ */ f("div")({
|
|
936
|
-
name: "
|
|
936
|
+
name: "QRBlock",
|
|
937
937
|
class: "qjnj4vf",
|
|
938
938
|
propsAsIs: !1
|
|
939
939
|
}), dt = /* @__PURE__ */ f("div")({
|
|
940
|
-
name: "
|
|
941
|
-
class: "
|
|
940
|
+
name: "QRDescBlock",
|
|
941
|
+
class: "q1bj8s6q",
|
|
942
942
|
propsAsIs: !1
|
|
943
943
|
}), gt = /* @__PURE__ */ f("div")({
|
|
944
|
+
name: "LearnMore",
|
|
945
|
+
class: "l1nyi744",
|
|
946
|
+
propsAsIs: !1
|
|
947
|
+
}), ct = /* @__PURE__ */ f("div")({
|
|
944
948
|
name: "QRHint",
|
|
945
|
-
class: "
|
|
949
|
+
class: "q1ri138g",
|
|
946
950
|
propsAsIs: !1
|
|
947
951
|
}), Qe = /* @__PURE__ */ f("div")({
|
|
948
952
|
name: "QRWrapper",
|
|
949
|
-
class: "
|
|
953
|
+
class: "q1asn3je",
|
|
950
954
|
propsAsIs: !1
|
|
951
955
|
}), He = () => Me, $e = /* @__PURE__ */ f(He())({
|
|
952
956
|
name: "StyledQRCode",
|
|
953
|
-
class: "
|
|
957
|
+
class: "sa9pwin",
|
|
954
958
|
propsAsIs: !0
|
|
955
|
-
}),
|
|
959
|
+
}), mt = Q.forwardRef(({
|
|
956
960
|
value: e,
|
|
957
961
|
size: t = 200,
|
|
958
962
|
fgColor: n = "#0f172a",
|
|
959
963
|
bgColor: r = "#ffffff",
|
|
960
964
|
level: a = "M",
|
|
961
965
|
tabIndex: o = 0
|
|
962
|
-
}, i) => /* @__PURE__ */
|
|
966
|
+
}, i) => /* @__PURE__ */ w("a", {
|
|
963
967
|
ref: i,
|
|
964
968
|
href: e,
|
|
965
969
|
target: "_blank",
|
|
@@ -969,8 +973,8 @@ const Ge = /* @__PURE__ */ f("div")({
|
|
|
969
973
|
borderRadius: 10
|
|
970
974
|
},
|
|
971
975
|
tabIndex: o,
|
|
972
|
-
children: /* @__PURE__ */
|
|
973
|
-
children: /* @__PURE__ */
|
|
976
|
+
children: /* @__PURE__ */ w(Qe, {
|
|
977
|
+
children: /* @__PURE__ */ w($e, {
|
|
974
978
|
value: e,
|
|
975
979
|
size: t,
|
|
976
980
|
fgColor: n,
|
|
@@ -981,30 +985,31 @@ const Ge = /* @__PURE__ */ f("div")({
|
|
|
981
985
|
})
|
|
982
986
|
}));
|
|
983
987
|
export {
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
988
|
+
Xe as BrandBlock,
|
|
989
|
+
Je as BrandName,
|
|
990
|
+
je as BrandNameContainer,
|
|
991
|
+
Ye as BrandText,
|
|
992
|
+
ot as CenterIndicator,
|
|
993
|
+
tt as CloseButton,
|
|
994
|
+
et as CloseIcon,
|
|
995
|
+
We as Container,
|
|
996
|
+
vt as Description,
|
|
997
|
+
lt as EnvelopeIcon,
|
|
998
|
+
rt as FocusableVideo,
|
|
995
999
|
Ke as Header,
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1000
|
+
gt as LearnMore,
|
|
1001
|
+
Ze as LogoIcon,
|
|
1002
|
+
at as PlayPauseButton,
|
|
1003
|
+
mt as QR,
|
|
1004
|
+
pt as QRBlock,
|
|
1005
|
+
dt as QRDescBlock,
|
|
1006
|
+
ct as QRHint,
|
|
1007
|
+
it as SendToUserButton,
|
|
1008
|
+
ut as SendToUserText,
|
|
1009
|
+
qe as Sponsored,
|
|
1010
|
+
ht as Title,
|
|
1011
|
+
st as VideoBlock,
|
|
1012
|
+
ft as VideoStatus,
|
|
1013
|
+
nt as VideoWrapper,
|
|
1014
|
+
Ge as Wrap
|
|
1010
1015
|
};
|
|
@@ -1,100 +1,66 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
muted: x
|
|
1
|
+
import { jsxs as l, jsx as d } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as j, useState as c } from "react";
|
|
3
|
+
import { PlayVideoMuted as F, AutoPlayVideo as P, QuestionImages as H } from "@streamlayer/sdk-web-types";
|
|
4
|
+
import { SvgIcon as v } from "../../../../ui/icons/index.js";
|
|
5
|
+
import { Container as O, VideoWrapper as Q, FocusableVideo as W, contentContainerClassName as C, VideoStatus as A, ImageContainer as k, Image as q, Content as s, Title as z, Description as G } from "./styles.js";
|
|
6
|
+
const _ = ({
|
|
7
|
+
instantView: o,
|
|
8
|
+
isDetail: u,
|
|
9
|
+
notification: r,
|
|
10
|
+
controlVideo: B,
|
|
11
|
+
muted: D
|
|
13
12
|
}) => {
|
|
14
|
-
var
|
|
15
|
-
const
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}, []), q = A(
|
|
21
|
-
(r) => {
|
|
22
|
-
const t = document.activeElement;
|
|
23
|
-
if (y().includes(t))
|
|
24
|
-
switch (r.tagName) {
|
|
25
|
-
case "BUTTON":
|
|
26
|
-
r.click();
|
|
27
|
-
break;
|
|
28
|
-
case "VIDEO":
|
|
29
|
-
E.current = setTimeout(() => {
|
|
30
|
-
const u = r;
|
|
31
|
-
m && s ? u.muted ? (M(!1), u.muted = !1) : (M(!0), u.muted = !0) : u.paused || u.ended ? (o(!1), N(!0), u.play().then(() => {
|
|
32
|
-
}).catch((K) => console.warn("⛔ start failed:", K))) : (o(!0), u.pause(), N(!0));
|
|
33
|
-
}, 0);
|
|
34
|
-
break;
|
|
35
|
-
}
|
|
36
|
-
},
|
|
37
|
-
[s, m, y]
|
|
38
|
-
);
|
|
39
|
-
return W(() => () => {
|
|
40
|
-
E.current && clearTimeout(E.current);
|
|
41
|
-
}, []), Q({
|
|
42
|
-
containerSelector: ".webos",
|
|
43
|
-
getElements: y,
|
|
44
|
-
onEscape: () => {
|
|
45
|
-
},
|
|
46
|
-
onEnter: q,
|
|
47
|
-
initialFocusPriority: s ? 0 : 1,
|
|
48
|
-
enabled: !0,
|
|
49
|
-
dependencies: [s, m]
|
|
50
|
-
}), /* @__PURE__ */ a(H, { children: [
|
|
51
|
-
((I = e == null ? void 0 : e.video) == null ? void 0 : I.url) && /* @__PURE__ */ a(J, { children: [
|
|
52
|
-
/* @__PURE__ */ c(
|
|
53
|
-
X,
|
|
13
|
+
var E, N;
|
|
14
|
+
const I = j(null), [b, e] = c(!1), [f, g] = c(void 0), m = (o == null ? void 0 : o.playVideoMuted) === F.ENABLED, T = u && (o == null ? void 0 : o.autoPlayVideo) === P.ENABLED, S = m && T, p = o == null ? void 0 : o.heading, y = o == null ? void 0 : o.body, h = p || y, [M, U] = c(!0), x = r == null ? void 0 : r.title, L = r == null ? void 0 : r.body;
|
|
15
|
+
return /* @__PURE__ */ l(O, { children: [
|
|
16
|
+
((E = o == null ? void 0 : o.video) == null ? void 0 : E.url) && /* @__PURE__ */ l(Q, { children: [
|
|
17
|
+
/* @__PURE__ */ d(
|
|
18
|
+
W,
|
|
54
19
|
{
|
|
55
|
-
className:
|
|
56
|
-
source:
|
|
57
|
-
poster:
|
|
58
|
-
controlVideo:
|
|
59
|
-
muted:
|
|
60
|
-
autoPlay:
|
|
61
|
-
|
|
62
|
-
ref: p,
|
|
20
|
+
className: C,
|
|
21
|
+
source: o.video.url,
|
|
22
|
+
poster: o.video.thumbnailUrl,
|
|
23
|
+
controlVideo: B,
|
|
24
|
+
muted: D,
|
|
25
|
+
autoPlay: u && o.autoPlayVideo === P.ENABLED,
|
|
26
|
+
ref: I,
|
|
63
27
|
onPause: () => {
|
|
64
|
-
|
|
28
|
+
e == null || e(!0), U(!1);
|
|
29
|
+
},
|
|
30
|
+
onMute: (R) => {
|
|
31
|
+
g(R);
|
|
65
32
|
},
|
|
66
33
|
onPlay: () => {
|
|
67
|
-
|
|
34
|
+
e == null || e(!1);
|
|
68
35
|
},
|
|
69
36
|
playMuted: m,
|
|
70
|
-
|
|
71
|
-
isMutedMediaVideo: f,
|
|
37
|
+
hasNotPausedVideo: M,
|
|
72
38
|
webos: !0
|
|
73
39
|
}
|
|
74
40
|
),
|
|
75
|
-
|
|
76
|
-
/* @__PURE__ */
|
|
41
|
+
b && !M && /* @__PURE__ */ l(A, { children: [
|
|
42
|
+
/* @__PURE__ */ d(v, { name: "icon-pause" }),
|
|
77
43
|
"PAUSED"
|
|
78
44
|
] }),
|
|
79
|
-
|
|
80
|
-
/* @__PURE__ */
|
|
45
|
+
f && S && /* @__PURE__ */ l(A, { children: [
|
|
46
|
+
/* @__PURE__ */ d(v, { name: "iconMute" }),
|
|
81
47
|
"MUTED"
|
|
82
48
|
] })
|
|
83
49
|
] }),
|
|
84
|
-
(
|
|
85
|
-
|
|
50
|
+
(o == null ? void 0 : o.image) && !((N = o == null ? void 0 : o.video) != null && N.url) && /* @__PURE__ */ d(
|
|
51
|
+
k,
|
|
86
52
|
{
|
|
87
|
-
className:
|
|
88
|
-
"data-rounded":
|
|
89
|
-
children: /* @__PURE__ */
|
|
53
|
+
className: C,
|
|
54
|
+
"data-rounded": o.imageMode === H.ROUNDED,
|
|
55
|
+
children: /* @__PURE__ */ d(q, { src: o == null ? void 0 : o.image })
|
|
90
56
|
}
|
|
91
57
|
),
|
|
92
|
-
/* @__PURE__ */
|
|
93
|
-
/* @__PURE__ */
|
|
94
|
-
/* @__PURE__ */
|
|
58
|
+
/* @__PURE__ */ l(s, { children: [
|
|
59
|
+
/* @__PURE__ */ d(z, { children: u && h ? p : x }),
|
|
60
|
+
/* @__PURE__ */ d(G, { children: u && h ? y : L })
|
|
95
61
|
] })
|
|
96
62
|
] });
|
|
97
63
|
};
|
|
98
64
|
export {
|
|
99
|
-
|
|
65
|
+
_ as InsightContentTV
|
|
100
66
|
};
|