@blerp/design 1.2.54 → 1.2.55
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +71 -67
- package/dist/index.esm.js +68 -65
- package/dist/index.umd.js +69 -68
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -12,7 +12,6 @@ var _taggedTemplateLiteral = require('@babel/runtime/helpers/taggedTemplateLiter
|
|
|
12
12
|
var iconsMaterial = require('@mui/icons-material');
|
|
13
13
|
var BookmarkOutlinedIcon = require('@mui/icons-material/BookmarkOutlined');
|
|
14
14
|
var LockRoundedIcon = require('@mui/icons-material/LockRounded');
|
|
15
|
-
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
16
15
|
var DoNotDisturbRoundedIcon = require('@mui/icons-material/DoNotDisturbRounded');
|
|
17
16
|
var FavoriteIcon = require('@mui/icons-material/Favorite');
|
|
18
17
|
var FavoriteBorderIcon = require('@mui/icons-material/FavoriteBorder');
|
|
@@ -20,7 +19,12 @@ var PauseRoundedIcon = require('@mui/icons-material/PauseRounded');
|
|
|
20
19
|
var PlayArrowRoundedIcon = require('@mui/icons-material/PlayArrowRounded');
|
|
21
20
|
var WarningRoundedIcon = require('@mui/icons-material/WarningRounded');
|
|
22
21
|
var VisibilityOffRoundedIcon = require('@mui/icons-material/VisibilityOffRounded');
|
|
23
|
-
|
|
22
|
+
require('@mui/icons-material/VisibilityRounded');
|
|
23
|
+
var LanguageRoundedIcon = require('@mui/icons-material/LanguageRounded');
|
|
24
|
+
require('@mui/icons-material/ThumbsUpDownRounded');
|
|
25
|
+
var ViewModuleRoundedIcon = require('@mui/icons-material/ViewModuleRounded');
|
|
26
|
+
var LayersRoundedIcon = require('@mui/icons-material/LayersRounded');
|
|
27
|
+
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
24
28
|
var _asyncToGenerator = require('@babel/runtime/helpers/asyncToGenerator');
|
|
25
29
|
var _regeneratorRuntime = require('@babel/runtime/regenerator');
|
|
26
30
|
var BookmarkAddOutlinedIcon = require('@mui/icons-material/BookmarkAddOutlined');
|
|
@@ -51,7 +55,6 @@ var PersonRemoveRoundedIcon = require('@mui/icons-material/PersonRemoveRounded')
|
|
|
51
55
|
var _toConsumableArray = require('@babel/runtime/helpers/toConsumableArray');
|
|
52
56
|
require('@mui/icons-material/FilterAltRounded');
|
|
53
57
|
var MenuRoundedIcon = require('@mui/icons-material/MenuRounded');
|
|
54
|
-
var ViewModuleRoundedIcon = require('@mui/icons-material/ViewModuleRounded');
|
|
55
58
|
require('@mui/icons-material/SettingsRounded');
|
|
56
59
|
var SortRoundedIcon = require('@mui/icons-material/SortRounded');
|
|
57
60
|
var ChevronRightRoundedIcon = require('@mui/icons-material/ChevronRightRounded');
|
|
@@ -89,7 +92,6 @@ var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
|
89
92
|
var _taggedTemplateLiteral__default = /*#__PURE__*/_interopDefaultLegacy(_taggedTemplateLiteral);
|
|
90
93
|
var BookmarkOutlinedIcon__default = /*#__PURE__*/_interopDefaultLegacy(BookmarkOutlinedIcon);
|
|
91
94
|
var LockRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(LockRoundedIcon);
|
|
92
|
-
var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty);
|
|
93
95
|
var DoNotDisturbRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(DoNotDisturbRoundedIcon);
|
|
94
96
|
var FavoriteIcon__default = /*#__PURE__*/_interopDefaultLegacy(FavoriteIcon);
|
|
95
97
|
var FavoriteBorderIcon__default = /*#__PURE__*/_interopDefaultLegacy(FavoriteBorderIcon);
|
|
@@ -97,7 +99,10 @@ var PauseRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(PauseRoundedI
|
|
|
97
99
|
var PlayArrowRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(PlayArrowRoundedIcon);
|
|
98
100
|
var WarningRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(WarningRoundedIcon);
|
|
99
101
|
var VisibilityOffRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(VisibilityOffRoundedIcon);
|
|
100
|
-
var
|
|
102
|
+
var LanguageRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(LanguageRoundedIcon);
|
|
103
|
+
var ViewModuleRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(ViewModuleRoundedIcon);
|
|
104
|
+
var LayersRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(LayersRoundedIcon);
|
|
105
|
+
var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty);
|
|
101
106
|
var _asyncToGenerator__default = /*#__PURE__*/_interopDefaultLegacy(_asyncToGenerator);
|
|
102
107
|
var _regeneratorRuntime__default = /*#__PURE__*/_interopDefaultLegacy(_regeneratorRuntime);
|
|
103
108
|
var BookmarkAddOutlinedIcon__default = /*#__PURE__*/_interopDefaultLegacy(BookmarkAddOutlinedIcon);
|
|
@@ -125,7 +130,6 @@ var YouTubeIcon__default = /*#__PURE__*/_interopDefaultLegacy(YouTubeIcon);
|
|
|
125
130
|
var PersonRemoveRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(PersonRemoveRoundedIcon);
|
|
126
131
|
var _toConsumableArray__default = /*#__PURE__*/_interopDefaultLegacy(_toConsumableArray);
|
|
127
132
|
var MenuRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(MenuRoundedIcon);
|
|
128
|
-
var ViewModuleRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(ViewModuleRoundedIcon);
|
|
129
133
|
var SortRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(SortRoundedIcon);
|
|
130
134
|
var ChevronRightRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(ChevronRightRoundedIcon);
|
|
131
135
|
var PersonRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(PersonRoundedIcon);
|
|
@@ -1697,9 +1701,9 @@ var UserCard$1 = function UserCard(_ref) {
|
|
|
1697
1701
|
}, "created")))));
|
|
1698
1702
|
};
|
|
1699
1703
|
|
|
1700
|
-
function ownKeys$
|
|
1704
|
+
function ownKeys$6(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
1701
1705
|
|
|
1702
|
-
function _objectSpread$
|
|
1706
|
+
function _objectSpread$6(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$6(Object(source), true).forEach(function (key) { _defineProperty__default['default'](target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$6(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
1703
1707
|
var UsernameWithPopout$1 = function UsernameWithPopout(_ref) {
|
|
1704
1708
|
var user = _ref.user,
|
|
1705
1709
|
onUsernameClick = _ref.onUsernameClick,
|
|
@@ -1767,7 +1771,7 @@ var UsernameWithPopout$1 = function UsernameWithPopout(_ref) {
|
|
|
1767
1771
|
collapsed: collapsed,
|
|
1768
1772
|
user: user
|
|
1769
1773
|
})), /*#__PURE__*/React__default['default'].createElement(Text, {
|
|
1770
|
-
sx: _objectSpread$
|
|
1774
|
+
sx: _objectSpread$6({
|
|
1771
1775
|
fontWeight: "300",
|
|
1772
1776
|
fontSize: "12px",
|
|
1773
1777
|
color: "grey7.main",
|
|
@@ -1784,10 +1788,6 @@ var UsernameWithPopout$1 = function UsernameWithPopout(_ref) {
|
|
|
1784
1788
|
};
|
|
1785
1789
|
|
|
1786
1790
|
var _templateObject$g, _templateObject2$a, _templateObject3$8;
|
|
1787
|
-
|
|
1788
|
-
function ownKeys$6(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
1789
|
-
|
|
1790
|
-
function _objectSpread$6(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$6(Object(source), true).forEach(function (key) { _defineProperty__default['default'](target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$6(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
1791
1791
|
var PremiumContainer = styled__default['default'].div(_templateObject$g || (_templateObject$g = _taggedTemplateLiteral__default['default'](["\n background: transparent;\n overflow: hidden;\n min-width: 210px;\n max-width: 260px;\n width: 100%;\n max-height: 322px;\n flex: 1;\n min-height: 272px;\n aspect-ratio: 260 / 322;\n gap: 10px;\n border-radius: 18px;\n box-sizing: border-box;\n padding: 2px;\n position: relative;\n transition: 0.3s;\n"])));
|
|
1792
1792
|
var Container$1 = styled__default['default'].div(_templateObject2$a || (_templateObject2$a = _taggedTemplateLiteral__default['default'](["\n background-color: ", ";\n background: ", ";\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n position: relative;\n height: 100%;\n padding: 10px;\n border-radius: 17px;\n box-sizing: border-box;\n"])), function (props) {
|
|
1793
1793
|
return props.theme.colors.grey7;
|
|
@@ -1839,7 +1839,7 @@ var FavoriteIconWithCounter = function FavoriteIconWithCounter(_ref) {
|
|
|
1839
1839
|
}, savedCount));
|
|
1840
1840
|
};
|
|
1841
1841
|
var AddedToIcons = function AddedToIcons(_ref2) {
|
|
1842
|
-
var _item$channelPointsCo, _item$whitelistContex, _item$
|
|
1842
|
+
var _item$soundEmotesCont, _item$channelPointsCo, _item$channelPointsBu, _item$whitelistContex, _item$walkOnChannelCo, _item$organizationalG;
|
|
1843
1843
|
|
|
1844
1844
|
var item = _ref2.item,
|
|
1845
1845
|
hovering = _ref2.hovering,
|
|
@@ -1849,35 +1849,45 @@ var AddedToIcons = function AddedToIcons(_ref2) {
|
|
|
1849
1849
|
direction: "row",
|
|
1850
1850
|
sx: {
|
|
1851
1851
|
transition: "0.3s",
|
|
1852
|
-
opacity: hide ? "0" : hovering ? "
|
|
1853
|
-
alignItems: "
|
|
1852
|
+
opacity: hide ? "0" : hovering ? "0" : "1",
|
|
1853
|
+
alignItems: "start",
|
|
1854
|
+
justifyContent: "end",
|
|
1855
|
+
flexWrap: "wrap",
|
|
1856
|
+
flex: 1
|
|
1857
|
+
}
|
|
1858
|
+
}, (item === null || item === void 0 ? void 0 : (_item$soundEmotesCont = item.soundEmotesContext) === null || _item$soundEmotesCont === void 0 ? void 0 : _item$soundEmotesCont.hasAdded) && /*#__PURE__*/React__default['default'].createElement(Tooltip, {
|
|
1859
|
+
title: "Added to Universal Extension"
|
|
1860
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(LanguageRoundedIcon__default['default'], {
|
|
1861
|
+
sx: {
|
|
1862
|
+
fontSize: "20px",
|
|
1863
|
+
filter: "drop-shadow(0px 0.972222px 8.75px rgba(0, 0, 0, 0.73))"
|
|
1854
1864
|
}
|
|
1855
|
-
}, (item === null || item === void 0 ? void 0 : (_item$channelPointsCo = item.channelPointsContext) === null || _item$channelPointsCo === void 0 ? void 0 : _item$channelPointsCo._id) && /*#__PURE__*/React__default['default'].createElement(Tooltip, {
|
|
1865
|
+
}))), ((item === null || item === void 0 ? void 0 : (_item$channelPointsCo = item.channelPointsContext) === null || _item$channelPointsCo === void 0 ? void 0 : _item$channelPointsCo._id) || (item === null || item === void 0 ? void 0 : (_item$channelPointsBu = item.channelPointsBucketsContext) === null || _item$channelPointsBu === void 0 ? void 0 : _item$channelPointsBu.length) > 0) && /*#__PURE__*/React__default['default'].createElement(Tooltip, {
|
|
1856
1866
|
title: "Added to Channel Points"
|
|
1857
1867
|
}, /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(ChannelPointsIcon, {
|
|
1858
1868
|
sx: {
|
|
1859
|
-
fontSize: "
|
|
1869
|
+
fontSize: "20px",
|
|
1860
1870
|
filter: "drop-shadow(0px 0.972222px 8.75px rgba(0, 0, 0, 0.73))"
|
|
1861
1871
|
}
|
|
1862
1872
|
}))), (item === null || item === void 0 ? void 0 : (_item$whitelistContex = item.whitelistContext) === null || _item$whitelistContex === void 0 ? void 0 : _item$whitelistContex._id) && /*#__PURE__*/React__default['default'].createElement(Tooltip, {
|
|
1863
1873
|
title: "Added to Bits Library"
|
|
1864
1874
|
}, /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(TwitchBitIcon, {
|
|
1865
1875
|
sx: {
|
|
1866
|
-
fontSize: "
|
|
1876
|
+
fontSize: "20px",
|
|
1867
1877
|
filter: "drop-shadow(0px 0.972222px 8.75px rgba(0, 0, 0, 0.73))"
|
|
1868
1878
|
}
|
|
1869
|
-
}))), (item === null || item === void 0 ? void 0 : (_item$
|
|
1879
|
+
}))), (item === null || item === void 0 ? void 0 : (_item$walkOnChannelCo = item.walkOnChannelContext) === null || _item$walkOnChannelCo === void 0 ? void 0 : _item$walkOnChannelCo._id) && /*#__PURE__*/React__default['default'].createElement(Tooltip, {
|
|
1870
1880
|
title: "Added to WalkOn"
|
|
1871
1881
|
}, /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(WalkonIcon, {
|
|
1872
1882
|
sx: {
|
|
1873
|
-
fontSize: "
|
|
1883
|
+
fontSize: "20px",
|
|
1874
1884
|
filter: "drop-shadow(0px 0.972222px 8.75px rgba(0, 0, 0, 0.73))"
|
|
1875
1885
|
}
|
|
1876
|
-
}))), (item === null || item === void 0 ? void 0 : (_item$
|
|
1877
|
-
title: "Added to
|
|
1878
|
-
}, /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(
|
|
1886
|
+
}))), (item === null || item === void 0 ? void 0 : (_item$organizationalG = item.organizationalGroupEdgesContext) === null || _item$organizationalG === void 0 ? void 0 : _item$organizationalG.length) > 0 && /*#__PURE__*/React__default['default'].createElement(Tooltip, {
|
|
1887
|
+
title: "Added to Group"
|
|
1888
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(LayersRoundedIcon__default['default'], {
|
|
1879
1889
|
sx: {
|
|
1880
|
-
fontSize: "
|
|
1890
|
+
fontSize: "20px",
|
|
1881
1891
|
filter: "drop-shadow(0px 0.972222px 8.75px rgba(0, 0, 0, 0.73))"
|
|
1882
1892
|
}
|
|
1883
1893
|
}))));
|
|
@@ -1899,28 +1909,18 @@ var RatingInfoItem = function RatingInfoItem(_ref3) {
|
|
|
1899
1909
|
color: "notBlack.override",
|
|
1900
1910
|
padding: "1px 2px",
|
|
1901
1911
|
height: "auto",
|
|
1902
|
-
width: "fit-content"
|
|
1903
|
-
marginBottom: "12px"
|
|
1912
|
+
width: "fit-content"
|
|
1904
1913
|
}
|
|
1905
1914
|
}, displayText));
|
|
1906
1915
|
};
|
|
1907
1916
|
|
|
1908
1917
|
var RatingInfo = function RatingInfo(_ref4) {
|
|
1909
|
-
var bite = _ref4.bite
|
|
1918
|
+
var bite = _ref4.bite,
|
|
1919
|
+
hovering = _ref4.hovering;
|
|
1910
1920
|
var ratingText = {
|
|
1911
1921
|
tooltipText: "",
|
|
1912
1922
|
text: ""
|
|
1913
1923
|
};
|
|
1914
|
-
var visStyle = {
|
|
1915
|
-
fontSize: "23px",
|
|
1916
|
-
fontWeight: "600",
|
|
1917
|
-
backgroundColor: "#585858a3",
|
|
1918
|
-
border: "4px solid transparent",
|
|
1919
|
-
borderColor: "#585858a3",
|
|
1920
|
-
borderRadius: "4px",
|
|
1921
|
-
color: "whiteOverride.main",
|
|
1922
|
-
marginBottom: "12px"
|
|
1923
|
-
};
|
|
1924
1924
|
|
|
1925
1925
|
if (bite !== null && bite !== void 0 && bite.newAudienceRating) {
|
|
1926
1926
|
var _bite$newAudienceRati, _bite$newAudienceRati2;
|
|
@@ -1933,16 +1933,14 @@ var RatingInfo = function RatingInfo(_ref4) {
|
|
|
1933
1933
|
|
|
1934
1934
|
return /*#__PURE__*/React__default['default'].createElement(Stack, {
|
|
1935
1935
|
direction: "row",
|
|
1936
|
-
alignItems: "
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
},
|
|
1944
|
-
sx: _objectSpread$6({}, visStyle)
|
|
1945
|
-
})), bite === null || bite === void 0 ? void 0 : (_bite$newAudienceRati2 = bite.newAudienceRating) === null || _bite$newAudienceRati2 === void 0 ? void 0 : _bite$newAudienceRati2.map(function (rating) {
|
|
1936
|
+
alignItems: "start",
|
|
1937
|
+
sx: {
|
|
1938
|
+
transition: "0.2s",
|
|
1939
|
+
flex: 3,
|
|
1940
|
+
flexWrap: "wrap",
|
|
1941
|
+
marginTop: hovering ? "35px" : "0"
|
|
1942
|
+
}
|
|
1943
|
+
}, bite === null || bite === void 0 ? void 0 : (_bite$newAudienceRati2 = bite.newAudienceRating) === null || _bite$newAudienceRati2 === void 0 ? void 0 : _bite$newAudienceRati2.map(function (rating) {
|
|
1946
1944
|
if (rating === "SAFE") {
|
|
1947
1945
|
// nothing
|
|
1948
1946
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null);
|
|
@@ -1985,19 +1983,22 @@ var RatingInfo = function RatingInfo(_ref4) {
|
|
|
1985
1983
|
ratingText.text = "UNRATED";
|
|
1986
1984
|
}
|
|
1987
1985
|
|
|
1988
|
-
if (!ratingText.tooltipText) return /*#__PURE__*/React__default['default'].createElement(
|
|
1986
|
+
if (!ratingText.tooltipText) return /*#__PURE__*/React__default['default'].createElement(Stack, {
|
|
1987
|
+
direction: "row",
|
|
1988
|
+
sx: {
|
|
1989
|
+
flex: 0
|
|
1990
|
+
}
|
|
1991
|
+
});
|
|
1989
1992
|
return /*#__PURE__*/React__default['default'].createElement(Stack, {
|
|
1990
1993
|
direction: "row",
|
|
1991
|
-
alignItems: "
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
}, /*#__PURE__*/React__default['default'].createElement(
|
|
1999
|
-
sx: _objectSpread$6({}, visStyle)
|
|
2000
|
-
})), /*#__PURE__*/React__default['default'].createElement(RatingInfoItem, {
|
|
1994
|
+
alignItems: "start",
|
|
1995
|
+
sx: {
|
|
1996
|
+
transition: "0.2s",
|
|
1997
|
+
flex: 3,
|
|
1998
|
+
flexWrap: "wrap",
|
|
1999
|
+
marginTop: hovering ? "35px" : "0"
|
|
2000
|
+
}
|
|
2001
|
+
}, /*#__PURE__*/React__default['default'].createElement(RatingInfoItem, {
|
|
2001
2002
|
tooltipText: ratingText.tooltipText,
|
|
2002
2003
|
displayText: ratingText.text
|
|
2003
2004
|
}));
|
|
@@ -2129,21 +2130,24 @@ var BlerpTopRow = function BlerpTopRow(_ref6) {
|
|
|
2129
2130
|
minHeight: "20px"
|
|
2130
2131
|
}
|
|
2131
2132
|
}, /*#__PURE__*/React__default['default'].createElement(Stack, {
|
|
2133
|
+
direction: "row",
|
|
2134
|
+
alignItems: "start",
|
|
2135
|
+
justifyContent: "space-between",
|
|
2132
2136
|
sx: {
|
|
2133
2137
|
position: "absolute",
|
|
2134
2138
|
top: "0",
|
|
2135
2139
|
left: "0",
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2140
|
+
width: "100%",
|
|
2141
|
+
overflow: "hidden",
|
|
2142
|
+
transition: "0.2s",
|
|
2143
|
+
pointerEvents: "none"
|
|
2141
2144
|
}
|
|
2142
2145
|
}, /*#__PURE__*/React__default['default'].createElement(RatingInfo, {
|
|
2146
|
+
hovering: hovering,
|
|
2143
2147
|
bite: bite
|
|
2144
2148
|
}), /*#__PURE__*/React__default['default'].createElement(AddedToIcons, {
|
|
2145
2149
|
item: bite,
|
|
2146
|
-
hovering: hovering
|
|
2150
|
+
hovering: hovering || hoveringAddTo
|
|
2147
2151
|
})), renderAddContentButton({
|
|
2148
2152
|
item: bite,
|
|
2149
2153
|
hovering: hovering,
|
|
@@ -2158,7 +2162,7 @@ var BlerpTopRow = function BlerpTopRow(_ref6) {
|
|
|
2158
2162
|
};
|
|
2159
2163
|
|
|
2160
2164
|
var NewBlerp$1 = function NewBlerp(_ref7) {
|
|
2161
|
-
var _bite$whitelistContex, _bite$channelPointsCo, _bite$
|
|
2165
|
+
var _bite$whitelistContex, _bite$channelPointsCo, _bite$walkOnChannelCo, _bite$soundEmotesCont, _bite$discordContext, _bite$channelPointsBu, _bite$organizationalG, _bite$blacklistContex, _bite$blacklistContex2, _bite$image, _bite$image$original, _titleRef$current, _titleRef$current$get;
|
|
2162
2166
|
|
|
2163
2167
|
var Waveform = _ref7.Waveform,
|
|
2164
2168
|
bite = _ref7.bite,
|
|
@@ -2206,7 +2210,7 @@ var NewBlerp$1 = function NewBlerp(_ref7) {
|
|
|
2206
2210
|
setHoveringAddTo = _useState10[1];
|
|
2207
2211
|
|
|
2208
2212
|
var titleRef = React.useRef(null);
|
|
2209
|
-
var addedToPlace = (bite === null || bite === void 0 ? void 0 : (_bite$whitelistContex = bite.whitelistContext) === null || _bite$whitelistContex === void 0 ? void 0 : _bite$whitelistContex._id) || (bite === null || bite === void 0 ? void 0 : (_bite$channelPointsCo = bite.channelPointsContext) === null || _bite$channelPointsCo === void 0 ? void 0 : _bite$channelPointsCo._id) || (bite === null || bite === void 0 ? void 0 : (_bite$
|
|
2213
|
+
var addedToPlace = (bite === null || bite === void 0 ? void 0 : (_bite$whitelistContex = bite.whitelistContext) === null || _bite$whitelistContex === void 0 ? void 0 : _bite$whitelistContex._id) || (bite === null || bite === void 0 ? void 0 : (_bite$channelPointsCo = bite.channelPointsContext) === null || _bite$channelPointsCo === void 0 ? void 0 : _bite$channelPointsCo._id) || (bite === null || bite === void 0 ? void 0 : (_bite$walkOnChannelCo = bite.walkOnChannelContext) === null || _bite$walkOnChannelCo === void 0 ? void 0 : _bite$walkOnChannelCo._id) || (bite === null || bite === void 0 ? void 0 : (_bite$soundEmotesCont = bite.soundEmotesContext) === null || _bite$soundEmotesCont === void 0 ? void 0 : _bite$soundEmotesCont.hasAdded) || (bite === null || bite === void 0 ? void 0 : (_bite$discordContext = bite.discordContext) === null || _bite$discordContext === void 0 ? void 0 : _bite$discordContext._id) || (bite === null || bite === void 0 ? void 0 : (_bite$channelPointsBu = bite.channelPointsBucketsContext) === null || _bite$channelPointsBu === void 0 ? void 0 : _bite$channelPointsBu.length) > 0 || (bite === null || bite === void 0 ? void 0 : (_bite$organizationalG = bite.organizationalGroupEdgesContext) === null || _bite$organizationalG === void 0 ? void 0 : _bite$organizationalG.length) > 0;
|
|
2210
2214
|
var showWarning = (bite === null || bite === void 0 ? void 0 : (_bite$blacklistContex = bite.blacklistContext) === null || _bite$blacklistContex === void 0 ? void 0 : _bite$blacklistContex._id) || (bite === null || bite === void 0 ? void 0 : bite.reportedContentStatus) === "URGENT" || (bite === null || bite === void 0 ? void 0 : bite.reportedContentStatus) === "SUPER_URGENT" || (bite === null || bite === void 0 ? void 0 : bite.reportedContentStatus) === "REVIEWED_BLACKLISTED" || (bite === null || bite === void 0 ? void 0 : bite.reportedContentStatus) === "APPEALING";
|
|
2211
2215
|
|
|
2212
2216
|
var renderPlayStateIcon = function renderPlayStateIcon() {
|
package/dist/index.esm.js
CHANGED
|
@@ -6,10 +6,9 @@ import React__default, { useState, useEffect, useContext, useRef, createContext,
|
|
|
6
6
|
import { ColorExtractor } from 'react-color-extractor';
|
|
7
7
|
import styled, { ThemeContext, keyframes, ThemeProvider as ThemeProvider$1 } from 'styled-components';
|
|
8
8
|
import _taggedTemplateLiteral from '@babel/runtime/helpers/taggedTemplateLiteral';
|
|
9
|
-
import { PauseCircleOutlineRounded, LockRounded, VerifiedRounded, DiamondRounded,
|
|
9
|
+
import { PauseCircleOutlineRounded, LockRounded, VerifiedRounded, DiamondRounded, CheckRounded, BookmarkRounded, BookmarkAddOutlined, AccountCircleRounded, VisibilityOffRounded, CancelRounded } from '@mui/icons-material';
|
|
10
10
|
import BookmarkOutlinedIcon from '@mui/icons-material/BookmarkOutlined';
|
|
11
11
|
import LockRoundedIcon from '@mui/icons-material/LockRounded';
|
|
12
|
-
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
13
12
|
import DoNotDisturbRoundedIcon from '@mui/icons-material/DoNotDisturbRounded';
|
|
14
13
|
import FavoriteIcon from '@mui/icons-material/Favorite';
|
|
15
14
|
import FavoriteBorderIcon from '@mui/icons-material/FavoriteBorder';
|
|
@@ -17,7 +16,12 @@ import PauseRoundedIcon from '@mui/icons-material/PauseRounded';
|
|
|
17
16
|
import PlayArrowRoundedIcon from '@mui/icons-material/PlayArrowRounded';
|
|
18
17
|
import WarningRoundedIcon from '@mui/icons-material/WarningRounded';
|
|
19
18
|
import VisibilityOffRoundedIcon from '@mui/icons-material/VisibilityOffRounded';
|
|
20
|
-
import
|
|
19
|
+
import '@mui/icons-material/VisibilityRounded';
|
|
20
|
+
import LanguageRoundedIcon from '@mui/icons-material/LanguageRounded';
|
|
21
|
+
import '@mui/icons-material/ThumbsUpDownRounded';
|
|
22
|
+
import ViewModuleRoundedIcon from '@mui/icons-material/ViewModuleRounded';
|
|
23
|
+
import LayersRoundedIcon from '@mui/icons-material/LayersRounded';
|
|
24
|
+
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
21
25
|
import _asyncToGenerator from '@babel/runtime/helpers/asyncToGenerator';
|
|
22
26
|
import _regeneratorRuntime from '@babel/runtime/regenerator';
|
|
23
27
|
import BookmarkAddOutlinedIcon from '@mui/icons-material/BookmarkAddOutlined';
|
|
@@ -48,7 +52,6 @@ import PersonRemoveRoundedIcon from '@mui/icons-material/PersonRemoveRounded';
|
|
|
48
52
|
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
49
53
|
import '@mui/icons-material/FilterAltRounded';
|
|
50
54
|
import MenuRoundedIcon from '@mui/icons-material/MenuRounded';
|
|
51
|
-
import ViewModuleRoundedIcon from '@mui/icons-material/ViewModuleRounded';
|
|
52
55
|
import '@mui/icons-material/SettingsRounded';
|
|
53
56
|
import SortRoundedIcon from '@mui/icons-material/SortRounded';
|
|
54
57
|
import ChevronRightRoundedIcon from '@mui/icons-material/ChevronRightRounded';
|
|
@@ -1621,9 +1624,9 @@ var UserCard$1 = function UserCard(_ref) {
|
|
|
1621
1624
|
}, "created")))));
|
|
1622
1625
|
};
|
|
1623
1626
|
|
|
1624
|
-
function ownKeys$
|
|
1627
|
+
function ownKeys$6(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
1625
1628
|
|
|
1626
|
-
function _objectSpread$
|
|
1629
|
+
function _objectSpread$6(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$6(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$6(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
1627
1630
|
var UsernameWithPopout$1 = function UsernameWithPopout(_ref) {
|
|
1628
1631
|
var user = _ref.user,
|
|
1629
1632
|
onUsernameClick = _ref.onUsernameClick,
|
|
@@ -1691,7 +1694,7 @@ var UsernameWithPopout$1 = function UsernameWithPopout(_ref) {
|
|
|
1691
1694
|
collapsed: collapsed,
|
|
1692
1695
|
user: user
|
|
1693
1696
|
})), /*#__PURE__*/React__default.createElement(Text, {
|
|
1694
|
-
sx: _objectSpread$
|
|
1697
|
+
sx: _objectSpread$6({
|
|
1695
1698
|
fontWeight: "300",
|
|
1696
1699
|
fontSize: "12px",
|
|
1697
1700
|
color: "grey7.main",
|
|
@@ -1708,10 +1711,6 @@ var UsernameWithPopout$1 = function UsernameWithPopout(_ref) {
|
|
|
1708
1711
|
};
|
|
1709
1712
|
|
|
1710
1713
|
var _templateObject$g, _templateObject2$a, _templateObject3$8;
|
|
1711
|
-
|
|
1712
|
-
function ownKeys$6(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
1713
|
-
|
|
1714
|
-
function _objectSpread$6(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$6(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$6(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
1715
1714
|
var PremiumContainer = styled.div(_templateObject$g || (_templateObject$g = _taggedTemplateLiteral(["\n background: transparent;\n overflow: hidden;\n min-width: 210px;\n max-width: 260px;\n width: 100%;\n max-height: 322px;\n flex: 1;\n min-height: 272px;\n aspect-ratio: 260 / 322;\n gap: 10px;\n border-radius: 18px;\n box-sizing: border-box;\n padding: 2px;\n position: relative;\n transition: 0.3s;\n"])));
|
|
1716
1715
|
var Container$1 = styled.div(_templateObject2$a || (_templateObject2$a = _taggedTemplateLiteral(["\n background-color: ", ";\n background: ", ";\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n position: relative;\n height: 100%;\n padding: 10px;\n border-radius: 17px;\n box-sizing: border-box;\n"])), function (props) {
|
|
1717
1716
|
return props.theme.colors.grey7;
|
|
@@ -1763,7 +1762,7 @@ var FavoriteIconWithCounter = function FavoriteIconWithCounter(_ref) {
|
|
|
1763
1762
|
}, savedCount));
|
|
1764
1763
|
};
|
|
1765
1764
|
var AddedToIcons = function AddedToIcons(_ref2) {
|
|
1766
|
-
var _item$channelPointsCo, _item$whitelistContex, _item$
|
|
1765
|
+
var _item$soundEmotesCont, _item$channelPointsCo, _item$channelPointsBu, _item$whitelistContex, _item$walkOnChannelCo, _item$organizationalG;
|
|
1767
1766
|
|
|
1768
1767
|
var item = _ref2.item,
|
|
1769
1768
|
hovering = _ref2.hovering,
|
|
@@ -1773,35 +1772,45 @@ var AddedToIcons = function AddedToIcons(_ref2) {
|
|
|
1773
1772
|
direction: "row",
|
|
1774
1773
|
sx: {
|
|
1775
1774
|
transition: "0.3s",
|
|
1776
|
-
opacity: hide ? "0" : hovering ? "
|
|
1777
|
-
alignItems: "
|
|
1775
|
+
opacity: hide ? "0" : hovering ? "0" : "1",
|
|
1776
|
+
alignItems: "start",
|
|
1777
|
+
justifyContent: "end",
|
|
1778
|
+
flexWrap: "wrap",
|
|
1779
|
+
flex: 1
|
|
1778
1780
|
}
|
|
1779
|
-
}, (item === null || item === void 0 ? void 0 : (_item$
|
|
1781
|
+
}, (item === null || item === void 0 ? void 0 : (_item$soundEmotesCont = item.soundEmotesContext) === null || _item$soundEmotesCont === void 0 ? void 0 : _item$soundEmotesCont.hasAdded) && /*#__PURE__*/React__default.createElement(Tooltip, {
|
|
1782
|
+
title: "Added to Universal Extension"
|
|
1783
|
+
}, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(LanguageRoundedIcon, {
|
|
1784
|
+
sx: {
|
|
1785
|
+
fontSize: "20px",
|
|
1786
|
+
filter: "drop-shadow(0px 0.972222px 8.75px rgba(0, 0, 0, 0.73))"
|
|
1787
|
+
}
|
|
1788
|
+
}))), ((item === null || item === void 0 ? void 0 : (_item$channelPointsCo = item.channelPointsContext) === null || _item$channelPointsCo === void 0 ? void 0 : _item$channelPointsCo._id) || (item === null || item === void 0 ? void 0 : (_item$channelPointsBu = item.channelPointsBucketsContext) === null || _item$channelPointsBu === void 0 ? void 0 : _item$channelPointsBu.length) > 0) && /*#__PURE__*/React__default.createElement(Tooltip, {
|
|
1780
1789
|
title: "Added to Channel Points"
|
|
1781
1790
|
}, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(ChannelPointsIcon, {
|
|
1782
1791
|
sx: {
|
|
1783
|
-
fontSize: "
|
|
1792
|
+
fontSize: "20px",
|
|
1784
1793
|
filter: "drop-shadow(0px 0.972222px 8.75px rgba(0, 0, 0, 0.73))"
|
|
1785
1794
|
}
|
|
1786
1795
|
}))), (item === null || item === void 0 ? void 0 : (_item$whitelistContex = item.whitelistContext) === null || _item$whitelistContex === void 0 ? void 0 : _item$whitelistContex._id) && /*#__PURE__*/React__default.createElement(Tooltip, {
|
|
1787
1796
|
title: "Added to Bits Library"
|
|
1788
1797
|
}, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(TwitchBitIcon, {
|
|
1789
1798
|
sx: {
|
|
1790
|
-
fontSize: "
|
|
1799
|
+
fontSize: "20px",
|
|
1791
1800
|
filter: "drop-shadow(0px 0.972222px 8.75px rgba(0, 0, 0, 0.73))"
|
|
1792
1801
|
}
|
|
1793
|
-
}))), (item === null || item === void 0 ? void 0 : (_item$
|
|
1802
|
+
}))), (item === null || item === void 0 ? void 0 : (_item$walkOnChannelCo = item.walkOnChannelContext) === null || _item$walkOnChannelCo === void 0 ? void 0 : _item$walkOnChannelCo._id) && /*#__PURE__*/React__default.createElement(Tooltip, {
|
|
1794
1803
|
title: "Added to WalkOn"
|
|
1795
1804
|
}, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(WalkonIcon, {
|
|
1796
1805
|
sx: {
|
|
1797
|
-
fontSize: "
|
|
1806
|
+
fontSize: "20px",
|
|
1798
1807
|
filter: "drop-shadow(0px 0.972222px 8.75px rgba(0, 0, 0, 0.73))"
|
|
1799
1808
|
}
|
|
1800
|
-
}))), (item === null || item === void 0 ? void 0 : (_item$
|
|
1801
|
-
title: "Added to
|
|
1802
|
-
}, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(
|
|
1809
|
+
}))), (item === null || item === void 0 ? void 0 : (_item$organizationalG = item.organizationalGroupEdgesContext) === null || _item$organizationalG === void 0 ? void 0 : _item$organizationalG.length) > 0 && /*#__PURE__*/React__default.createElement(Tooltip, {
|
|
1810
|
+
title: "Added to Group"
|
|
1811
|
+
}, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(LayersRoundedIcon, {
|
|
1803
1812
|
sx: {
|
|
1804
|
-
fontSize: "
|
|
1813
|
+
fontSize: "20px",
|
|
1805
1814
|
filter: "drop-shadow(0px 0.972222px 8.75px rgba(0, 0, 0, 0.73))"
|
|
1806
1815
|
}
|
|
1807
1816
|
}))));
|
|
@@ -1823,28 +1832,18 @@ var RatingInfoItem = function RatingInfoItem(_ref3) {
|
|
|
1823
1832
|
color: "notBlack.override",
|
|
1824
1833
|
padding: "1px 2px",
|
|
1825
1834
|
height: "auto",
|
|
1826
|
-
width: "fit-content"
|
|
1827
|
-
marginBottom: "12px"
|
|
1835
|
+
width: "fit-content"
|
|
1828
1836
|
}
|
|
1829
1837
|
}, displayText));
|
|
1830
1838
|
};
|
|
1831
1839
|
|
|
1832
1840
|
var RatingInfo = function RatingInfo(_ref4) {
|
|
1833
|
-
var bite = _ref4.bite
|
|
1841
|
+
var bite = _ref4.bite,
|
|
1842
|
+
hovering = _ref4.hovering;
|
|
1834
1843
|
var ratingText = {
|
|
1835
1844
|
tooltipText: "",
|
|
1836
1845
|
text: ""
|
|
1837
1846
|
};
|
|
1838
|
-
var visStyle = {
|
|
1839
|
-
fontSize: "23px",
|
|
1840
|
-
fontWeight: "600",
|
|
1841
|
-
backgroundColor: "#585858a3",
|
|
1842
|
-
border: "4px solid transparent",
|
|
1843
|
-
borderColor: "#585858a3",
|
|
1844
|
-
borderRadius: "4px",
|
|
1845
|
-
color: "whiteOverride.main",
|
|
1846
|
-
marginBottom: "12px"
|
|
1847
|
-
};
|
|
1848
1847
|
|
|
1849
1848
|
if (bite !== null && bite !== void 0 && bite.newAudienceRating) {
|
|
1850
1849
|
var _bite$newAudienceRati, _bite$newAudienceRati2;
|
|
@@ -1857,16 +1856,14 @@ var RatingInfo = function RatingInfo(_ref4) {
|
|
|
1857
1856
|
|
|
1858
1857
|
return /*#__PURE__*/React__default.createElement(Stack, {
|
|
1859
1858
|
direction: "row",
|
|
1860
|
-
alignItems: "
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
},
|
|
1868
|
-
sx: _objectSpread$6({}, visStyle)
|
|
1869
|
-
})), bite === null || bite === void 0 ? void 0 : (_bite$newAudienceRati2 = bite.newAudienceRating) === null || _bite$newAudienceRati2 === void 0 ? void 0 : _bite$newAudienceRati2.map(function (rating) {
|
|
1859
|
+
alignItems: "start",
|
|
1860
|
+
sx: {
|
|
1861
|
+
transition: "0.2s",
|
|
1862
|
+
flex: 3,
|
|
1863
|
+
flexWrap: "wrap",
|
|
1864
|
+
marginTop: hovering ? "35px" : "0"
|
|
1865
|
+
}
|
|
1866
|
+
}, bite === null || bite === void 0 ? void 0 : (_bite$newAudienceRati2 = bite.newAudienceRating) === null || _bite$newAudienceRati2 === void 0 ? void 0 : _bite$newAudienceRati2.map(function (rating) {
|
|
1870
1867
|
if (rating === "SAFE") {
|
|
1871
1868
|
// nothing
|
|
1872
1869
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null);
|
|
@@ -1909,19 +1906,22 @@ var RatingInfo = function RatingInfo(_ref4) {
|
|
|
1909
1906
|
ratingText.text = "UNRATED";
|
|
1910
1907
|
}
|
|
1911
1908
|
|
|
1912
|
-
if (!ratingText.tooltipText) return /*#__PURE__*/React__default.createElement(
|
|
1909
|
+
if (!ratingText.tooltipText) return /*#__PURE__*/React__default.createElement(Stack, {
|
|
1910
|
+
direction: "row",
|
|
1911
|
+
sx: {
|
|
1912
|
+
flex: 0
|
|
1913
|
+
}
|
|
1914
|
+
});
|
|
1913
1915
|
return /*#__PURE__*/React__default.createElement(Stack, {
|
|
1914
1916
|
direction: "row",
|
|
1915
|
-
alignItems: "
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
1923
|
-
sx: _objectSpread$6({}, visStyle)
|
|
1924
|
-
})), /*#__PURE__*/React__default.createElement(RatingInfoItem, {
|
|
1917
|
+
alignItems: "start",
|
|
1918
|
+
sx: {
|
|
1919
|
+
transition: "0.2s",
|
|
1920
|
+
flex: 3,
|
|
1921
|
+
flexWrap: "wrap",
|
|
1922
|
+
marginTop: hovering ? "35px" : "0"
|
|
1923
|
+
}
|
|
1924
|
+
}, /*#__PURE__*/React__default.createElement(RatingInfoItem, {
|
|
1925
1925
|
tooltipText: ratingText.tooltipText,
|
|
1926
1926
|
displayText: ratingText.text
|
|
1927
1927
|
}));
|
|
@@ -2053,21 +2053,24 @@ var BlerpTopRow = function BlerpTopRow(_ref6) {
|
|
|
2053
2053
|
minHeight: "20px"
|
|
2054
2054
|
}
|
|
2055
2055
|
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
2056
|
+
direction: "row",
|
|
2057
|
+
alignItems: "start",
|
|
2058
|
+
justifyContent: "space-between",
|
|
2056
2059
|
sx: {
|
|
2057
2060
|
position: "absolute",
|
|
2058
2061
|
top: "0",
|
|
2059
2062
|
left: "0",
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2063
|
+
width: "100%",
|
|
2064
|
+
overflow: "hidden",
|
|
2065
|
+
transition: "0.2s",
|
|
2066
|
+
pointerEvents: "none"
|
|
2065
2067
|
}
|
|
2066
2068
|
}, /*#__PURE__*/React__default.createElement(RatingInfo, {
|
|
2069
|
+
hovering: hovering,
|
|
2067
2070
|
bite: bite
|
|
2068
2071
|
}), /*#__PURE__*/React__default.createElement(AddedToIcons, {
|
|
2069
2072
|
item: bite,
|
|
2070
|
-
hovering: hovering
|
|
2073
|
+
hovering: hovering || hoveringAddTo
|
|
2071
2074
|
})), renderAddContentButton({
|
|
2072
2075
|
item: bite,
|
|
2073
2076
|
hovering: hovering,
|
|
@@ -2082,7 +2085,7 @@ var BlerpTopRow = function BlerpTopRow(_ref6) {
|
|
|
2082
2085
|
};
|
|
2083
2086
|
|
|
2084
2087
|
var NewBlerp$1 = function NewBlerp(_ref7) {
|
|
2085
|
-
var _bite$whitelistContex, _bite$channelPointsCo, _bite$
|
|
2088
|
+
var _bite$whitelistContex, _bite$channelPointsCo, _bite$walkOnChannelCo, _bite$soundEmotesCont, _bite$discordContext, _bite$channelPointsBu, _bite$organizationalG, _bite$blacklistContex, _bite$blacklistContex2, _bite$image, _bite$image$original, _titleRef$current, _titleRef$current$get;
|
|
2086
2089
|
|
|
2087
2090
|
var Waveform = _ref7.Waveform,
|
|
2088
2091
|
bite = _ref7.bite,
|
|
@@ -2130,7 +2133,7 @@ var NewBlerp$1 = function NewBlerp(_ref7) {
|
|
|
2130
2133
|
setHoveringAddTo = _useState10[1];
|
|
2131
2134
|
|
|
2132
2135
|
var titleRef = useRef(null);
|
|
2133
|
-
var addedToPlace = (bite === null || bite === void 0 ? void 0 : (_bite$whitelistContex = bite.whitelistContext) === null || _bite$whitelistContex === void 0 ? void 0 : _bite$whitelistContex._id) || (bite === null || bite === void 0 ? void 0 : (_bite$channelPointsCo = bite.channelPointsContext) === null || _bite$channelPointsCo === void 0 ? void 0 : _bite$channelPointsCo._id) || (bite === null || bite === void 0 ? void 0 : (_bite$
|
|
2136
|
+
var addedToPlace = (bite === null || bite === void 0 ? void 0 : (_bite$whitelistContex = bite.whitelistContext) === null || _bite$whitelistContex === void 0 ? void 0 : _bite$whitelistContex._id) || (bite === null || bite === void 0 ? void 0 : (_bite$channelPointsCo = bite.channelPointsContext) === null || _bite$channelPointsCo === void 0 ? void 0 : _bite$channelPointsCo._id) || (bite === null || bite === void 0 ? void 0 : (_bite$walkOnChannelCo = bite.walkOnChannelContext) === null || _bite$walkOnChannelCo === void 0 ? void 0 : _bite$walkOnChannelCo._id) || (bite === null || bite === void 0 ? void 0 : (_bite$soundEmotesCont = bite.soundEmotesContext) === null || _bite$soundEmotesCont === void 0 ? void 0 : _bite$soundEmotesCont.hasAdded) || (bite === null || bite === void 0 ? void 0 : (_bite$discordContext = bite.discordContext) === null || _bite$discordContext === void 0 ? void 0 : _bite$discordContext._id) || (bite === null || bite === void 0 ? void 0 : (_bite$channelPointsBu = bite.channelPointsBucketsContext) === null || _bite$channelPointsBu === void 0 ? void 0 : _bite$channelPointsBu.length) > 0 || (bite === null || bite === void 0 ? void 0 : (_bite$organizationalG = bite.organizationalGroupEdgesContext) === null || _bite$organizationalG === void 0 ? void 0 : _bite$organizationalG.length) > 0;
|
|
2134
2137
|
var showWarning = (bite === null || bite === void 0 ? void 0 : (_bite$blacklistContex = bite.blacklistContext) === null || _bite$blacklistContex === void 0 ? void 0 : _bite$blacklistContex._id) || (bite === null || bite === void 0 ? void 0 : bite.reportedContentStatus) === "URGENT" || (bite === null || bite === void 0 ? void 0 : bite.reportedContentStatus) === "SUPER_URGENT" || (bite === null || bite === void 0 ? void 0 : bite.reportedContentStatus) === "REVIEWED_BLACKLISTED" || (bite === null || bite === void 0 ? void 0 : bite.reportedContentStatus) === "APPEALING";
|
|
2135
2138
|
|
|
2136
2139
|
var renderPlayStateIcon = function renderPlayStateIcon() {
|
package/dist/index.umd.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@mui/material'), require('@babel/runtime/helpers/slicedToArray'), require('prop-types'), require('react'), require('react-color-extractor'), require('styled-components'), require('@babel/runtime/helpers/taggedTemplateLiteral'), require('@mui/icons-material'), require('@mui/icons-material/BookmarkOutlined'), require('@mui/icons-material/LockRounded'), require('@
|
|
3
|
-
typeof define === 'function' && define.amd ? define(['exports', '@mui/material', '@babel/runtime/helpers/slicedToArray', 'prop-types', 'react', 'react-color-extractor', 'styled-components', '@babel/runtime/helpers/taggedTemplateLiteral', '@mui/icons-material', '@mui/icons-material/BookmarkOutlined', '@mui/icons-material/LockRounded', '@
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global['react-awesome-buttons'] = {}, global.material, global._slicedToArray, global.PropTypes, global.React, global.reactColorExtractor, global.styled, global._taggedTemplateLiteral, global.iconsMaterial, global.BookmarkOutlinedIcon, global.LockRoundedIcon, global.
|
|
5
|
-
}(this, (function (exports, material, _slicedToArray, PropTypes, React, reactColorExtractor, styled, _taggedTemplateLiteral, iconsMaterial, BookmarkOutlinedIcon, LockRoundedIcon,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@mui/material'), require('@babel/runtime/helpers/slicedToArray'), require('prop-types'), require('react'), require('react-color-extractor'), require('styled-components'), require('@babel/runtime/helpers/taggedTemplateLiteral'), require('@mui/icons-material'), require('@mui/icons-material/BookmarkOutlined'), require('@mui/icons-material/LockRounded'), require('@mui/icons-material/DoNotDisturbRounded'), require('@mui/icons-material/Favorite'), require('@mui/icons-material/FavoriteBorder'), require('@mui/icons-material/PauseRounded'), require('@mui/icons-material/PlayArrowRounded'), require('@mui/icons-material/WarningRounded'), require('@mui/icons-material/VisibilityOffRounded'), require('@mui/icons-material/VisibilityRounded'), require('@mui/icons-material/LanguageRounded'), require('@mui/icons-material/ThumbsUpDownRounded'), require('@mui/icons-material/ViewModuleRounded'), require('@mui/icons-material/LayersRounded'), require('@babel/runtime/helpers/defineProperty'), require('@babel/runtime/helpers/asyncToGenerator'), require('@babel/runtime/regenerator'), require('@mui/icons-material/BookmarkAddOutlined'), require('@mui/icons-material/MoreHorizRounded'), require('react-palette'), require('@babel/runtime/helpers/typeof'), require('@mui/icons-material/KeyboardArrowRightRounded'), require('@mui/icons-material/KeyboardArrowDownRounded'), require('@mui/icons-material/CloseRounded'), require('@mui/icons-material/FileUploadRounded'), require('@babel/runtime/helpers/extends'), require('react-avatar-editor'), require('react-dropzone'), require('@mui/icons-material/InsertPhotoRounded'), require('@mui/material/styles'), require('@mui/material/Slide'), require('@mui/material/Fade'), require('react-lottie'), require('@mui/icons-material/AddRounded'), require('@mui/icons-material/Facebook'), require('@mui/icons-material/Instagram'), require('@mui/icons-material/ModeEditRounded'), require('@mui/icons-material/PersonAddRounded'), require('@mui/icons-material/Pinterest'), require('@mui/icons-material/Twitter'), require('@mui/icons-material/YouTube'), require('@mui/icons-material/PersonRemoveRounded'), require('@babel/runtime/helpers/toConsumableArray'), require('@mui/icons-material/FilterAltRounded'), require('@mui/icons-material/MenuRounded'), require('@mui/icons-material/SettingsRounded'), require('@mui/icons-material/SortRounded'), require('@mui/icons-material/ChevronRightRounded'), require('@mui/icons-material/PersonRounded'), require('@mui/icons-material/SearchRounded'), require('@mui/icons-material/BookmarkRemoveOutlined')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define(['exports', '@mui/material', '@babel/runtime/helpers/slicedToArray', 'prop-types', 'react', 'react-color-extractor', 'styled-components', '@babel/runtime/helpers/taggedTemplateLiteral', '@mui/icons-material', '@mui/icons-material/BookmarkOutlined', '@mui/icons-material/LockRounded', '@mui/icons-material/DoNotDisturbRounded', '@mui/icons-material/Favorite', '@mui/icons-material/FavoriteBorder', '@mui/icons-material/PauseRounded', '@mui/icons-material/PlayArrowRounded', '@mui/icons-material/WarningRounded', '@mui/icons-material/VisibilityOffRounded', '@mui/icons-material/VisibilityRounded', '@mui/icons-material/LanguageRounded', '@mui/icons-material/ThumbsUpDownRounded', '@mui/icons-material/ViewModuleRounded', '@mui/icons-material/LayersRounded', '@babel/runtime/helpers/defineProperty', '@babel/runtime/helpers/asyncToGenerator', '@babel/runtime/regenerator', '@mui/icons-material/BookmarkAddOutlined', '@mui/icons-material/MoreHorizRounded', 'react-palette', '@babel/runtime/helpers/typeof', '@mui/icons-material/KeyboardArrowRightRounded', '@mui/icons-material/KeyboardArrowDownRounded', '@mui/icons-material/CloseRounded', '@mui/icons-material/FileUploadRounded', '@babel/runtime/helpers/extends', 'react-avatar-editor', 'react-dropzone', '@mui/icons-material/InsertPhotoRounded', '@mui/material/styles', '@mui/material/Slide', '@mui/material/Fade', 'react-lottie', '@mui/icons-material/AddRounded', '@mui/icons-material/Facebook', '@mui/icons-material/Instagram', '@mui/icons-material/ModeEditRounded', '@mui/icons-material/PersonAddRounded', '@mui/icons-material/Pinterest', '@mui/icons-material/Twitter', '@mui/icons-material/YouTube', '@mui/icons-material/PersonRemoveRounded', '@babel/runtime/helpers/toConsumableArray', '@mui/icons-material/FilterAltRounded', '@mui/icons-material/MenuRounded', '@mui/icons-material/SettingsRounded', '@mui/icons-material/SortRounded', '@mui/icons-material/ChevronRightRounded', '@mui/icons-material/PersonRounded', '@mui/icons-material/SearchRounded', '@mui/icons-material/BookmarkRemoveOutlined'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global['react-awesome-buttons'] = {}, global.material, global._slicedToArray, global.PropTypes, global.React, global.reactColorExtractor, global.styled, global._taggedTemplateLiteral, global.iconsMaterial, global.BookmarkOutlinedIcon, global.LockRoundedIcon, global.DoNotDisturbRoundedIcon, global.FavoriteIcon, global.FavoriteBorderIcon, global.PauseRoundedIcon, global.PlayArrowRoundedIcon, global.WarningRoundedIcon, global.VisibilityOffRoundedIcon, null, global.LanguageRoundedIcon, null, global.ViewModuleRoundedIcon, global.LayersRoundedIcon, global._defineProperty, global._asyncToGenerator, global._regeneratorRuntime, global.BookmarkAddOutlinedIcon, global.MoreHorizRoundedIcon, global.reactPalette, global._typeof, global.KeyboardArrowRightRoundedIcon, global.KeyboardArrowDownRoundedIcon, global.CloseRoundedIcon, global.FileUploadRoundedIcon, global._extends, global.AvatarEditor, global.Dropzone, global.InsertPhotoRoundedIcon, global.styles, global.Slide, global.Fade, global.Lottie, global.AddRoundedIcon, global.FacebookIcon, global.InstagramIcon, global.ModeEditRoundedIcon, global.PersonAddRoundedIcon, global.PinterestIcon, global.TwitterIcon, global.YouTubeIcon, global.PersonRemoveRoundedIcon, global._toConsumableArray, null, global.MenuRoundedIcon, null, global.SortRoundedIcon, global.ChevronRightRoundedIcon, global.PersonRoundedIcon, global.SearchRoundedIcon, global.BookmarkRemoveOutlinedIcon));
|
|
5
|
+
}(this, (function (exports, material, _slicedToArray, PropTypes, React, reactColorExtractor, styled, _taggedTemplateLiteral, iconsMaterial, BookmarkOutlinedIcon, LockRoundedIcon, DoNotDisturbRoundedIcon, FavoriteIcon, FavoriteBorderIcon, PauseRoundedIcon, PlayArrowRoundedIcon, WarningRoundedIcon, VisibilityOffRoundedIcon, VisibilityRounded, LanguageRoundedIcon, ThumbsUpDownRounded, ViewModuleRoundedIcon, LayersRoundedIcon, _defineProperty, _asyncToGenerator, _regeneratorRuntime, BookmarkAddOutlinedIcon, MoreHorizRoundedIcon, reactPalette, _typeof, KeyboardArrowRightRoundedIcon, KeyboardArrowDownRoundedIcon, CloseRoundedIcon, FileUploadRoundedIcon, _extends, AvatarEditor, Dropzone, InsertPhotoRoundedIcon, styles, Slide, Fade, Lottie, AddRoundedIcon, FacebookIcon, InstagramIcon, ModeEditRoundedIcon, PersonAddRoundedIcon, PinterestIcon, TwitterIcon, YouTubeIcon, PersonRemoveRoundedIcon, _toConsumableArray, FilterAltRounded, MenuRoundedIcon, SettingsRounded, SortRoundedIcon, ChevronRightRoundedIcon, PersonRoundedIcon, SearchRoundedIcon, BookmarkRemoveOutlinedIcon) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
8
|
|
|
@@ -34,7 +34,6 @@
|
|
|
34
34
|
var _taggedTemplateLiteral__default = /*#__PURE__*/_interopDefaultLegacy(_taggedTemplateLiteral);
|
|
35
35
|
var BookmarkOutlinedIcon__default = /*#__PURE__*/_interopDefaultLegacy(BookmarkOutlinedIcon);
|
|
36
36
|
var LockRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(LockRoundedIcon);
|
|
37
|
-
var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty);
|
|
38
37
|
var DoNotDisturbRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(DoNotDisturbRoundedIcon);
|
|
39
38
|
var FavoriteIcon__default = /*#__PURE__*/_interopDefaultLegacy(FavoriteIcon);
|
|
40
39
|
var FavoriteBorderIcon__default = /*#__PURE__*/_interopDefaultLegacy(FavoriteBorderIcon);
|
|
@@ -42,7 +41,10 @@
|
|
|
42
41
|
var PlayArrowRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(PlayArrowRoundedIcon);
|
|
43
42
|
var WarningRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(WarningRoundedIcon);
|
|
44
43
|
var VisibilityOffRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(VisibilityOffRoundedIcon);
|
|
45
|
-
var
|
|
44
|
+
var LanguageRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(LanguageRoundedIcon);
|
|
45
|
+
var ViewModuleRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(ViewModuleRoundedIcon);
|
|
46
|
+
var LayersRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(LayersRoundedIcon);
|
|
47
|
+
var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty);
|
|
46
48
|
var _asyncToGenerator__default = /*#__PURE__*/_interopDefaultLegacy(_asyncToGenerator);
|
|
47
49
|
var _regeneratorRuntime__default = /*#__PURE__*/_interopDefaultLegacy(_regeneratorRuntime);
|
|
48
50
|
var BookmarkAddOutlinedIcon__default = /*#__PURE__*/_interopDefaultLegacy(BookmarkAddOutlinedIcon);
|
|
@@ -70,7 +72,6 @@
|
|
|
70
72
|
var PersonRemoveRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(PersonRemoveRoundedIcon);
|
|
71
73
|
var _toConsumableArray__default = /*#__PURE__*/_interopDefaultLegacy(_toConsumableArray);
|
|
72
74
|
var MenuRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(MenuRoundedIcon);
|
|
73
|
-
var ViewModuleRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(ViewModuleRoundedIcon);
|
|
74
75
|
var SortRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(SortRoundedIcon);
|
|
75
76
|
var ChevronRightRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(ChevronRightRoundedIcon);
|
|
76
77
|
var PersonRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(PersonRoundedIcon);
|
|
@@ -1642,9 +1643,9 @@
|
|
|
1642
1643
|
}, "created")))));
|
|
1643
1644
|
};
|
|
1644
1645
|
|
|
1645
|
-
function ownKeys$
|
|
1646
|
+
function ownKeys$6(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
1646
1647
|
|
|
1647
|
-
function _objectSpread$
|
|
1648
|
+
function _objectSpread$6(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$6(Object(source), true).forEach(function (key) { _defineProperty__default['default'](target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$6(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
1648
1649
|
var UsernameWithPopout$1 = function UsernameWithPopout(_ref) {
|
|
1649
1650
|
var user = _ref.user,
|
|
1650
1651
|
onUsernameClick = _ref.onUsernameClick,
|
|
@@ -1712,7 +1713,7 @@
|
|
|
1712
1713
|
collapsed: collapsed,
|
|
1713
1714
|
user: user
|
|
1714
1715
|
})), /*#__PURE__*/React__default['default'].createElement(Text, {
|
|
1715
|
-
sx: _objectSpread$
|
|
1716
|
+
sx: _objectSpread$6({
|
|
1716
1717
|
fontWeight: "300",
|
|
1717
1718
|
fontSize: "12px",
|
|
1718
1719
|
color: "grey7.main",
|
|
@@ -1729,10 +1730,6 @@
|
|
|
1729
1730
|
};
|
|
1730
1731
|
|
|
1731
1732
|
var _templateObject$g, _templateObject2$a, _templateObject3$8;
|
|
1732
|
-
|
|
1733
|
-
function ownKeys$6(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
1734
|
-
|
|
1735
|
-
function _objectSpread$6(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$6(Object(source), true).forEach(function (key) { _defineProperty__default['default'](target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$6(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
1736
1733
|
var PremiumContainer = styled__default['default'].div(_templateObject$g || (_templateObject$g = _taggedTemplateLiteral__default['default'](["\n background: transparent;\n overflow: hidden;\n min-width: 210px;\n max-width: 260px;\n width: 100%;\n max-height: 322px;\n flex: 1;\n min-height: 272px;\n aspect-ratio: 260 / 322;\n gap: 10px;\n border-radius: 18px;\n box-sizing: border-box;\n padding: 2px;\n position: relative;\n transition: 0.3s;\n"])));
|
|
1737
1734
|
var Container$1 = styled__default['default'].div(_templateObject2$a || (_templateObject2$a = _taggedTemplateLiteral__default['default'](["\n background-color: ", ";\n background: ", ";\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n position: relative;\n height: 100%;\n padding: 10px;\n border-radius: 17px;\n box-sizing: border-box;\n"])), function (props) {
|
|
1738
1735
|
return props.theme.colors.grey7;
|
|
@@ -1784,7 +1781,7 @@
|
|
|
1784
1781
|
}, savedCount));
|
|
1785
1782
|
};
|
|
1786
1783
|
var AddedToIcons = function AddedToIcons(_ref2) {
|
|
1787
|
-
var _item$channelPointsCo, _item$whitelistContex, _item$
|
|
1784
|
+
var _item$soundEmotesCont, _item$channelPointsCo, _item$channelPointsBu, _item$whitelistContex, _item$walkOnChannelCo, _item$organizationalG;
|
|
1788
1785
|
|
|
1789
1786
|
var item = _ref2.item,
|
|
1790
1787
|
hovering = _ref2.hovering,
|
|
@@ -1794,35 +1791,45 @@
|
|
|
1794
1791
|
direction: "row",
|
|
1795
1792
|
sx: {
|
|
1796
1793
|
transition: "0.3s",
|
|
1797
|
-
opacity: hide ? "0" : hovering ? "
|
|
1798
|
-
alignItems: "
|
|
1794
|
+
opacity: hide ? "0" : hovering ? "0" : "1",
|
|
1795
|
+
alignItems: "start",
|
|
1796
|
+
justifyContent: "end",
|
|
1797
|
+
flexWrap: "wrap",
|
|
1798
|
+
flex: 1
|
|
1799
1799
|
}
|
|
1800
|
-
}, (item === null || item === void 0 ? void 0 : (_item$
|
|
1800
|
+
}, (item === null || item === void 0 ? void 0 : (_item$soundEmotesCont = item.soundEmotesContext) === null || _item$soundEmotesCont === void 0 ? void 0 : _item$soundEmotesCont.hasAdded) && /*#__PURE__*/React__default['default'].createElement(Tooltip, {
|
|
1801
|
+
title: "Added to Universal Extension"
|
|
1802
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(LanguageRoundedIcon__default['default'], {
|
|
1803
|
+
sx: {
|
|
1804
|
+
fontSize: "20px",
|
|
1805
|
+
filter: "drop-shadow(0px 0.972222px 8.75px rgba(0, 0, 0, 0.73))"
|
|
1806
|
+
}
|
|
1807
|
+
}))), ((item === null || item === void 0 ? void 0 : (_item$channelPointsCo = item.channelPointsContext) === null || _item$channelPointsCo === void 0 ? void 0 : _item$channelPointsCo._id) || (item === null || item === void 0 ? void 0 : (_item$channelPointsBu = item.channelPointsBucketsContext) === null || _item$channelPointsBu === void 0 ? void 0 : _item$channelPointsBu.length) > 0) && /*#__PURE__*/React__default['default'].createElement(Tooltip, {
|
|
1801
1808
|
title: "Added to Channel Points"
|
|
1802
1809
|
}, /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(ChannelPointsIcon, {
|
|
1803
1810
|
sx: {
|
|
1804
|
-
fontSize: "
|
|
1811
|
+
fontSize: "20px",
|
|
1805
1812
|
filter: "drop-shadow(0px 0.972222px 8.75px rgba(0, 0, 0, 0.73))"
|
|
1806
1813
|
}
|
|
1807
1814
|
}))), (item === null || item === void 0 ? void 0 : (_item$whitelistContex = item.whitelistContext) === null || _item$whitelistContex === void 0 ? void 0 : _item$whitelistContex._id) && /*#__PURE__*/React__default['default'].createElement(Tooltip, {
|
|
1808
1815
|
title: "Added to Bits Library"
|
|
1809
1816
|
}, /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(TwitchBitIcon, {
|
|
1810
1817
|
sx: {
|
|
1811
|
-
fontSize: "
|
|
1818
|
+
fontSize: "20px",
|
|
1812
1819
|
filter: "drop-shadow(0px 0.972222px 8.75px rgba(0, 0, 0, 0.73))"
|
|
1813
1820
|
}
|
|
1814
|
-
}))), (item === null || item === void 0 ? void 0 : (_item$
|
|
1821
|
+
}))), (item === null || item === void 0 ? void 0 : (_item$walkOnChannelCo = item.walkOnChannelContext) === null || _item$walkOnChannelCo === void 0 ? void 0 : _item$walkOnChannelCo._id) && /*#__PURE__*/React__default['default'].createElement(Tooltip, {
|
|
1815
1822
|
title: "Added to WalkOn"
|
|
1816
1823
|
}, /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(WalkonIcon, {
|
|
1817
1824
|
sx: {
|
|
1818
|
-
fontSize: "
|
|
1825
|
+
fontSize: "20px",
|
|
1819
1826
|
filter: "drop-shadow(0px 0.972222px 8.75px rgba(0, 0, 0, 0.73))"
|
|
1820
1827
|
}
|
|
1821
|
-
}))), (item === null || item === void 0 ? void 0 : (_item$
|
|
1822
|
-
title: "Added to
|
|
1823
|
-
}, /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(
|
|
1828
|
+
}))), (item === null || item === void 0 ? void 0 : (_item$organizationalG = item.organizationalGroupEdgesContext) === null || _item$organizationalG === void 0 ? void 0 : _item$organizationalG.length) > 0 && /*#__PURE__*/React__default['default'].createElement(Tooltip, {
|
|
1829
|
+
title: "Added to Group"
|
|
1830
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(LayersRoundedIcon__default['default'], {
|
|
1824
1831
|
sx: {
|
|
1825
|
-
fontSize: "
|
|
1832
|
+
fontSize: "20px",
|
|
1826
1833
|
filter: "drop-shadow(0px 0.972222px 8.75px rgba(0, 0, 0, 0.73))"
|
|
1827
1834
|
}
|
|
1828
1835
|
}))));
|
|
@@ -1844,28 +1851,18 @@
|
|
|
1844
1851
|
color: "notBlack.override",
|
|
1845
1852
|
padding: "1px 2px",
|
|
1846
1853
|
height: "auto",
|
|
1847
|
-
width: "fit-content"
|
|
1848
|
-
marginBottom: "12px"
|
|
1854
|
+
width: "fit-content"
|
|
1849
1855
|
}
|
|
1850
1856
|
}, displayText));
|
|
1851
1857
|
};
|
|
1852
1858
|
|
|
1853
1859
|
var RatingInfo = function RatingInfo(_ref4) {
|
|
1854
|
-
var bite = _ref4.bite
|
|
1860
|
+
var bite = _ref4.bite,
|
|
1861
|
+
hovering = _ref4.hovering;
|
|
1855
1862
|
var ratingText = {
|
|
1856
1863
|
tooltipText: "",
|
|
1857
1864
|
text: ""
|
|
1858
1865
|
};
|
|
1859
|
-
var visStyle = {
|
|
1860
|
-
fontSize: "23px",
|
|
1861
|
-
fontWeight: "600",
|
|
1862
|
-
backgroundColor: "#585858a3",
|
|
1863
|
-
border: "4px solid transparent",
|
|
1864
|
-
borderColor: "#585858a3",
|
|
1865
|
-
borderRadius: "4px",
|
|
1866
|
-
color: "whiteOverride.main",
|
|
1867
|
-
marginBottom: "12px"
|
|
1868
|
-
};
|
|
1869
1866
|
|
|
1870
1867
|
if (bite !== null && bite !== void 0 && bite.newAudienceRating) {
|
|
1871
1868
|
var _bite$newAudienceRati, _bite$newAudienceRati2;
|
|
@@ -1878,16 +1875,14 @@
|
|
|
1878
1875
|
|
|
1879
1876
|
return /*#__PURE__*/React__default['default'].createElement(Stack, {
|
|
1880
1877
|
direction: "row",
|
|
1881
|
-
alignItems: "
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
},
|
|
1889
|
-
sx: _objectSpread$6({}, visStyle)
|
|
1890
|
-
})), bite === null || bite === void 0 ? void 0 : (_bite$newAudienceRati2 = bite.newAudienceRating) === null || _bite$newAudienceRati2 === void 0 ? void 0 : _bite$newAudienceRati2.map(function (rating) {
|
|
1878
|
+
alignItems: "start",
|
|
1879
|
+
sx: {
|
|
1880
|
+
transition: "0.2s",
|
|
1881
|
+
flex: 3,
|
|
1882
|
+
flexWrap: "wrap",
|
|
1883
|
+
marginTop: hovering ? "35px" : "0"
|
|
1884
|
+
}
|
|
1885
|
+
}, bite === null || bite === void 0 ? void 0 : (_bite$newAudienceRati2 = bite.newAudienceRating) === null || _bite$newAudienceRati2 === void 0 ? void 0 : _bite$newAudienceRati2.map(function (rating) {
|
|
1891
1886
|
if (rating === "SAFE") {
|
|
1892
1887
|
// nothing
|
|
1893
1888
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null);
|
|
@@ -1930,19 +1925,22 @@
|
|
|
1930
1925
|
ratingText.text = "UNRATED";
|
|
1931
1926
|
}
|
|
1932
1927
|
|
|
1933
|
-
if (!ratingText.tooltipText) return /*#__PURE__*/React__default['default'].createElement(
|
|
1928
|
+
if (!ratingText.tooltipText) return /*#__PURE__*/React__default['default'].createElement(Stack, {
|
|
1929
|
+
direction: "row",
|
|
1930
|
+
sx: {
|
|
1931
|
+
flex: 0
|
|
1932
|
+
}
|
|
1933
|
+
});
|
|
1934
1934
|
return /*#__PURE__*/React__default['default'].createElement(Stack, {
|
|
1935
1935
|
direction: "row",
|
|
1936
|
-
alignItems: "
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
}, /*#__PURE__*/React__default['default'].createElement(
|
|
1944
|
-
sx: _objectSpread$6({}, visStyle)
|
|
1945
|
-
})), /*#__PURE__*/React__default['default'].createElement(RatingInfoItem, {
|
|
1936
|
+
alignItems: "start",
|
|
1937
|
+
sx: {
|
|
1938
|
+
transition: "0.2s",
|
|
1939
|
+
flex: 3,
|
|
1940
|
+
flexWrap: "wrap",
|
|
1941
|
+
marginTop: hovering ? "35px" : "0"
|
|
1942
|
+
}
|
|
1943
|
+
}, /*#__PURE__*/React__default['default'].createElement(RatingInfoItem, {
|
|
1946
1944
|
tooltipText: ratingText.tooltipText,
|
|
1947
1945
|
displayText: ratingText.text
|
|
1948
1946
|
}));
|
|
@@ -2074,21 +2072,24 @@
|
|
|
2074
2072
|
minHeight: "20px"
|
|
2075
2073
|
}
|
|
2076
2074
|
}, /*#__PURE__*/React__default['default'].createElement(Stack, {
|
|
2075
|
+
direction: "row",
|
|
2076
|
+
alignItems: "start",
|
|
2077
|
+
justifyContent: "space-between",
|
|
2077
2078
|
sx: {
|
|
2078
2079
|
position: "absolute",
|
|
2079
2080
|
top: "0",
|
|
2080
2081
|
left: "0",
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2082
|
+
width: "100%",
|
|
2083
|
+
overflow: "hidden",
|
|
2084
|
+
transition: "0.2s",
|
|
2085
|
+
pointerEvents: "none"
|
|
2086
2086
|
}
|
|
2087
2087
|
}, /*#__PURE__*/React__default['default'].createElement(RatingInfo, {
|
|
2088
|
+
hovering: hovering,
|
|
2088
2089
|
bite: bite
|
|
2089
2090
|
}), /*#__PURE__*/React__default['default'].createElement(AddedToIcons, {
|
|
2090
2091
|
item: bite,
|
|
2091
|
-
hovering: hovering
|
|
2092
|
+
hovering: hovering || hoveringAddTo
|
|
2092
2093
|
})), renderAddContentButton({
|
|
2093
2094
|
item: bite,
|
|
2094
2095
|
hovering: hovering,
|
|
@@ -2103,7 +2104,7 @@
|
|
|
2103
2104
|
};
|
|
2104
2105
|
|
|
2105
2106
|
var NewBlerp$1 = function NewBlerp(_ref7) {
|
|
2106
|
-
var _bite$whitelistContex, _bite$channelPointsCo, _bite$
|
|
2107
|
+
var _bite$whitelistContex, _bite$channelPointsCo, _bite$walkOnChannelCo, _bite$soundEmotesCont, _bite$discordContext, _bite$channelPointsBu, _bite$organizationalG, _bite$blacklistContex, _bite$blacklistContex2, _bite$image, _bite$image$original, _titleRef$current, _titleRef$current$get;
|
|
2107
2108
|
|
|
2108
2109
|
var Waveform = _ref7.Waveform,
|
|
2109
2110
|
bite = _ref7.bite,
|
|
@@ -2151,7 +2152,7 @@
|
|
|
2151
2152
|
setHoveringAddTo = _useState10[1];
|
|
2152
2153
|
|
|
2153
2154
|
var titleRef = React.useRef(null);
|
|
2154
|
-
var addedToPlace = (bite === null || bite === void 0 ? void 0 : (_bite$whitelistContex = bite.whitelistContext) === null || _bite$whitelistContex === void 0 ? void 0 : _bite$whitelistContex._id) || (bite === null || bite === void 0 ? void 0 : (_bite$channelPointsCo = bite.channelPointsContext) === null || _bite$channelPointsCo === void 0 ? void 0 : _bite$channelPointsCo._id) || (bite === null || bite === void 0 ? void 0 : (_bite$
|
|
2155
|
+
var addedToPlace = (bite === null || bite === void 0 ? void 0 : (_bite$whitelistContex = bite.whitelistContext) === null || _bite$whitelistContex === void 0 ? void 0 : _bite$whitelistContex._id) || (bite === null || bite === void 0 ? void 0 : (_bite$channelPointsCo = bite.channelPointsContext) === null || _bite$channelPointsCo === void 0 ? void 0 : _bite$channelPointsCo._id) || (bite === null || bite === void 0 ? void 0 : (_bite$walkOnChannelCo = bite.walkOnChannelContext) === null || _bite$walkOnChannelCo === void 0 ? void 0 : _bite$walkOnChannelCo._id) || (bite === null || bite === void 0 ? void 0 : (_bite$soundEmotesCont = bite.soundEmotesContext) === null || _bite$soundEmotesCont === void 0 ? void 0 : _bite$soundEmotesCont.hasAdded) || (bite === null || bite === void 0 ? void 0 : (_bite$discordContext = bite.discordContext) === null || _bite$discordContext === void 0 ? void 0 : _bite$discordContext._id) || (bite === null || bite === void 0 ? void 0 : (_bite$channelPointsBu = bite.channelPointsBucketsContext) === null || _bite$channelPointsBu === void 0 ? void 0 : _bite$channelPointsBu.length) > 0 || (bite === null || bite === void 0 ? void 0 : (_bite$organizationalG = bite.organizationalGroupEdgesContext) === null || _bite$organizationalG === void 0 ? void 0 : _bite$organizationalG.length) > 0;
|
|
2155
2156
|
var showWarning = (bite === null || bite === void 0 ? void 0 : (_bite$blacklistContex = bite.blacklistContext) === null || _bite$blacklistContex === void 0 ? void 0 : _bite$blacklistContex._id) || (bite === null || bite === void 0 ? void 0 : bite.reportedContentStatus) === "URGENT" || (bite === null || bite === void 0 ? void 0 : bite.reportedContentStatus) === "SUPER_URGENT" || (bite === null || bite === void 0 ? void 0 : bite.reportedContentStatus) === "REVIEWED_BLACKLISTED" || (bite === null || bite === void 0 ? void 0 : bite.reportedContentStatus) === "APPEALING";
|
|
2156
2157
|
|
|
2157
2158
|
var renderPlayStateIcon = function renderPlayStateIcon() {
|