@blerp/design 1.2.31 → 1.2.33
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 +362 -341
- package/dist/index.esm.js +362 -340
- package/dist/index.umd.js +364 -343
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -13,13 +13,14 @@ 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
15
|
var AddRoundedIcon = require('@mui/icons-material/AddRounded');
|
|
16
|
-
|
|
16
|
+
require('@mui/icons-material/ArrowDropDownRounded');
|
|
17
17
|
var DoNotDisturbRoundedIcon = require('@mui/icons-material/DoNotDisturbRounded');
|
|
18
18
|
var FavoriteIcon = require('@mui/icons-material/Favorite');
|
|
19
19
|
var FavoriteBorderIcon = require('@mui/icons-material/FavoriteBorder');
|
|
20
20
|
var PauseRoundedIcon = require('@mui/icons-material/PauseRounded');
|
|
21
21
|
var PlayArrowRoundedIcon = require('@mui/icons-material/PlayArrowRounded');
|
|
22
22
|
var WarningRoundedIcon = require('@mui/icons-material/WarningRounded');
|
|
23
|
+
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
23
24
|
var _asyncToGenerator = require('@babel/runtime/helpers/asyncToGenerator');
|
|
24
25
|
var _regeneratorRuntime = require('@babel/runtime/regenerator');
|
|
25
26
|
var BookmarkAddOutlinedIcon = require('@mui/icons-material/BookmarkAddOutlined');
|
|
@@ -27,7 +28,6 @@ var MoreHorizRoundedIcon = require('@mui/icons-material/MoreHorizRounded');
|
|
|
27
28
|
var reactPalette = require('react-palette');
|
|
28
29
|
var _typeof = require('@babel/runtime/helpers/typeof');
|
|
29
30
|
var KeyboardArrowRightRoundedIcon = require('@mui/icons-material/KeyboardArrowRightRounded');
|
|
30
|
-
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
31
31
|
var KeyboardArrowDownRoundedIcon = require('@mui/icons-material/KeyboardArrowDownRounded');
|
|
32
32
|
var CloseRoundedIcon = require('@mui/icons-material/CloseRounded');
|
|
33
33
|
var FileUploadRoundedIcon = require('@mui/icons-material/FileUploadRounded');
|
|
@@ -90,20 +90,19 @@ var _taggedTemplateLiteral__default = /*#__PURE__*/_interopDefaultLegacy(_tagged
|
|
|
90
90
|
var BookmarkOutlinedIcon__default = /*#__PURE__*/_interopDefaultLegacy(BookmarkOutlinedIcon);
|
|
91
91
|
var LockRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(LockRoundedIcon);
|
|
92
92
|
var AddRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(AddRoundedIcon);
|
|
93
|
-
var ArrowDropDownRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(ArrowDropDownRoundedIcon);
|
|
94
93
|
var DoNotDisturbRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(DoNotDisturbRoundedIcon);
|
|
95
94
|
var FavoriteIcon__default = /*#__PURE__*/_interopDefaultLegacy(FavoriteIcon);
|
|
96
95
|
var FavoriteBorderIcon__default = /*#__PURE__*/_interopDefaultLegacy(FavoriteBorderIcon);
|
|
97
96
|
var PauseRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(PauseRoundedIcon);
|
|
98
97
|
var PlayArrowRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(PlayArrowRoundedIcon);
|
|
99
98
|
var WarningRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(WarningRoundedIcon);
|
|
99
|
+
var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty);
|
|
100
100
|
var _asyncToGenerator__default = /*#__PURE__*/_interopDefaultLegacy(_asyncToGenerator);
|
|
101
101
|
var _regeneratorRuntime__default = /*#__PURE__*/_interopDefaultLegacy(_regeneratorRuntime);
|
|
102
102
|
var BookmarkAddOutlinedIcon__default = /*#__PURE__*/_interopDefaultLegacy(BookmarkAddOutlinedIcon);
|
|
103
103
|
var MoreHorizRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(MoreHorizRoundedIcon);
|
|
104
104
|
var _typeof__default = /*#__PURE__*/_interopDefaultLegacy(_typeof);
|
|
105
105
|
var KeyboardArrowRightRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(KeyboardArrowRightRoundedIcon);
|
|
106
|
-
var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty);
|
|
107
106
|
var KeyboardArrowDownRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(KeyboardArrowDownRoundedIcon);
|
|
108
107
|
var CloseRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(CloseRoundedIcon);
|
|
109
108
|
var FileUploadRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(FileUploadRoundedIcon);
|
|
@@ -1693,11 +1692,15 @@ var UserCard$1 = function UserCard(_ref) {
|
|
|
1693
1692
|
}, "created")))));
|
|
1694
1693
|
};
|
|
1695
1694
|
|
|
1695
|
+
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; }
|
|
1696
|
+
|
|
1697
|
+
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; }
|
|
1696
1698
|
var UsernameWithPopout$1 = function UsernameWithPopout(_ref) {
|
|
1697
1699
|
var user = _ref.user,
|
|
1698
1700
|
onUsernameClick = _ref.onUsernameClick,
|
|
1699
1701
|
onFollowerClick = _ref.onFollowerClick,
|
|
1700
|
-
onCreatedClick = _ref.onCreatedClick
|
|
1702
|
+
onCreatedClick = _ref.onCreatedClick,
|
|
1703
|
+
textStyle = _ref.textStyle;
|
|
1701
1704
|
|
|
1702
1705
|
var _useState = React.useState(null),
|
|
1703
1706
|
_useState2 = _slicedToArray__default['default'](_useState, 2),
|
|
@@ -1757,7 +1760,7 @@ var UsernameWithPopout$1 = function UsernameWithPopout(_ref) {
|
|
|
1757
1760
|
collapsed: true,
|
|
1758
1761
|
user: user
|
|
1759
1762
|
})), /*#__PURE__*/React__default['default'].createElement(Text, {
|
|
1760
|
-
sx: {
|
|
1763
|
+
sx: _objectSpread$6({
|
|
1761
1764
|
fontWeight: "300",
|
|
1762
1765
|
fontSize: "12px",
|
|
1763
1766
|
color: "grey7.main",
|
|
@@ -1769,7 +1772,7 @@ var UsernameWithPopout$1 = function UsernameWithPopout(_ref) {
|
|
|
1769
1772
|
"&:hover": {
|
|
1770
1773
|
textDecoration: "underline"
|
|
1771
1774
|
}
|
|
1772
|
-
}
|
|
1775
|
+
}, textStyle)
|
|
1773
1776
|
}, user === null || user === void 0 ? void 0 : user.username));
|
|
1774
1777
|
};
|
|
1775
1778
|
|
|
@@ -1777,270 +1780,284 @@ var _templateObject$g, _templateObject2$a;
|
|
|
1777
1780
|
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"])));
|
|
1778
1781
|
var Container$1 = styled__default['default'].div(_templateObject2$a || (_templateObject2$a = _taggedTemplateLiteral__default['default'](["\n background-color: ", ";\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) {
|
|
1779
1782
|
return props.theme.colors.grey7;
|
|
1780
|
-
});
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
}
|
|
1783
|
+
}); // const AddContentDropdown = ({
|
|
1784
|
+
// item,
|
|
1785
|
+
// active,
|
|
1786
|
+
// onOptionClicked,
|
|
1787
|
+
// selectedOption,
|
|
1788
|
+
// }) => {
|
|
1789
|
+
// const options = [
|
|
1790
|
+
// {
|
|
1791
|
+
// name: "Channel Points",
|
|
1792
|
+
// value: "CHANNEL_POINTS",
|
|
1793
|
+
// added: item?.channelPointsContext?._id,
|
|
1794
|
+
// },
|
|
1795
|
+
// { name: "Bits", value: "BITS", added: item?.whitelistContext?._id },
|
|
1796
|
+
// { name: "WalkOn", value: "WALK_ON", added: item?.walkOnContext?._id },
|
|
1797
|
+
// { name: "Discord", value: "DISCORD", added: item?.discordContext?._id },
|
|
1798
|
+
// {
|
|
1799
|
+
// name: "Sound Emotes",
|
|
1800
|
+
// value: "SOUND_EMOTES",
|
|
1801
|
+
// added: item?.soundEmotesContext?._id,
|
|
1802
|
+
// },
|
|
1803
|
+
// {
|
|
1804
|
+
// name: "Add To Group",
|
|
1805
|
+
// value: "ADD_TO_GROUP",
|
|
1806
|
+
// added: false,
|
|
1807
|
+
// },
|
|
1808
|
+
// {
|
|
1809
|
+
// name: "Suggest To...",
|
|
1810
|
+
// value: "SUGGEST",
|
|
1811
|
+
// added: false,
|
|
1812
|
+
// },
|
|
1813
|
+
// ];
|
|
1814
|
+
// const anchorRef = useRef(null);
|
|
1815
|
+
// const [anchor, setAnchor] = useState(null);
|
|
1816
|
+
// const open = Boolean(anchor);
|
|
1817
|
+
// return (
|
|
1818
|
+
// <>
|
|
1819
|
+
// <Button
|
|
1820
|
+
// ref={anchorRef}
|
|
1821
|
+
// color="whiteOverride"
|
|
1822
|
+
// variant="outlined"
|
|
1823
|
+
// onClick={(e) => {
|
|
1824
|
+
// if (active) setAnchor(anchorRef?.current);
|
|
1825
|
+
// }}
|
|
1826
|
+
// sx={{
|
|
1827
|
+
// width: "100%",
|
|
1828
|
+
// height: "30px",
|
|
1829
|
+
// transition: "0.3s",
|
|
1830
|
+
// cursor: active ? "pointer" : "default",
|
|
1831
|
+
// justifyContent: "space-between",
|
|
1832
|
+
// marginRight: "10px",
|
|
1833
|
+
// backgroundColor: "#2C323380",
|
|
1834
|
+
// opacity: active ? "1" : "0",
|
|
1835
|
+
// whiteSpace: "nowrap",
|
|
1836
|
+
// "&:hover": {
|
|
1837
|
+
// backgroundColor: "grey3.main",
|
|
1838
|
+
// },
|
|
1839
|
+
// }}
|
|
1840
|
+
// endIcon={
|
|
1841
|
+
// <ArrowDropDownRoundedIcon sx={{ pointerEvents: "none" }} />
|
|
1842
|
+
// }
|
|
1843
|
+
// >
|
|
1844
|
+
// {selectedOption?.name || options[0]?.name}
|
|
1845
|
+
// </Button>
|
|
1846
|
+
// <Popover
|
|
1847
|
+
// open={open}
|
|
1848
|
+
// anchorEl={anchor}
|
|
1849
|
+
// anchorOrigin={{
|
|
1850
|
+
// vertical: "top",
|
|
1851
|
+
// horizontal: "left",
|
|
1852
|
+
// }}
|
|
1853
|
+
// transformOrigin={{
|
|
1854
|
+
// vertical: "top",
|
|
1855
|
+
// horizontal: "left",
|
|
1856
|
+
// }}
|
|
1857
|
+
// onClose={() => {
|
|
1858
|
+
// setAnchor(null);
|
|
1859
|
+
// }}
|
|
1860
|
+
// PaperProps={{
|
|
1861
|
+
// sx: {
|
|
1862
|
+
// width: anchor?.getBoundingClientRect().width,
|
|
1863
|
+
// backgroundColor: "#2C323380",
|
|
1864
|
+
// borderRadius: "18px",
|
|
1865
|
+
// padding: "35px 0 0 0",
|
|
1866
|
+
// boxSizing: "border-box",
|
|
1867
|
+
// maxHeight: "160px",
|
|
1868
|
+
// overflowY: "hidden",
|
|
1869
|
+
// },
|
|
1870
|
+
// }}
|
|
1871
|
+
// >
|
|
1872
|
+
// <Stack sx={{ maxHeight: "120px", overflowY: "scroll" }}>
|
|
1873
|
+
// {options?.map((option) => (
|
|
1874
|
+
// <Stack
|
|
1875
|
+
// direction="row"
|
|
1876
|
+
// sx={{
|
|
1877
|
+
// boxSizing: "border-box",
|
|
1878
|
+
// justifyContent: "space-between",
|
|
1879
|
+
// alignItems: "center",
|
|
1880
|
+
// width: "100%",
|
|
1881
|
+
// height: "100%",
|
|
1882
|
+
// padding: "6px 5px 6px 10px",
|
|
1883
|
+
// cursor: "pointer",
|
|
1884
|
+
// transition: "0.3s",
|
|
1885
|
+
// "&:hover": {
|
|
1886
|
+
// backgroundColor: "#474D4F80",
|
|
1887
|
+
// },
|
|
1888
|
+
// "&:hover #added-to-content-icon": {
|
|
1889
|
+
// display: option?.added ? "none" : "block",
|
|
1890
|
+
// opacity: "1",
|
|
1891
|
+
// },
|
|
1892
|
+
// "&:hover #remove-from-content-icon": {
|
|
1893
|
+
// display: option?.added ? "block" : "none",
|
|
1894
|
+
// opacity: option?.added ? "1" : "0",
|
|
1895
|
+
// },
|
|
1896
|
+
// }}
|
|
1897
|
+
// onClick={() => {
|
|
1898
|
+
// if (onOptionClicked) onOptionClicked(option);
|
|
1899
|
+
// setAnchor(null);
|
|
1900
|
+
// }}
|
|
1901
|
+
// >
|
|
1902
|
+
// <Text
|
|
1903
|
+
// sx={{
|
|
1904
|
+
// fontSize: "14px",
|
|
1905
|
+
// fontWeight: "400",
|
|
1906
|
+
// }}
|
|
1907
|
+
// >
|
|
1908
|
+
// {option.name}
|
|
1909
|
+
// </Text>
|
|
1910
|
+
// <CheckRounded
|
|
1911
|
+
// id="added-to-content-icon"
|
|
1912
|
+
// sx={{
|
|
1913
|
+
// transition: "0.3s",
|
|
1914
|
+
// opacity: option.added ? "1" : "0",
|
|
1915
|
+
// }}
|
|
1916
|
+
// />
|
|
1917
|
+
// <CloseRounded
|
|
1918
|
+
// id="remove-from-content-icon"
|
|
1919
|
+
// sx={{
|
|
1920
|
+
// transition: "0.3s",
|
|
1921
|
+
// display: "none",
|
|
1922
|
+
// opacity: "0",
|
|
1923
|
+
// }}
|
|
1924
|
+
// />
|
|
1925
|
+
// </Stack>
|
|
1926
|
+
// ))}
|
|
1927
|
+
// </Stack>
|
|
1928
|
+
// </Popover>
|
|
1929
|
+
// </>
|
|
1930
|
+
// );
|
|
1931
|
+
// };
|
|
1932
|
+
// const AddContentButton = ({
|
|
1933
|
+
// item,
|
|
1934
|
+
// hovering,
|
|
1935
|
+
// hoveringAddTo,
|
|
1936
|
+
// setHoveringAddTo,
|
|
1937
|
+
// openPremiumModal,
|
|
1938
|
+
// onOptionClicked,
|
|
1939
|
+
// onPlusClick,
|
|
1940
|
+
// selectedOption,
|
|
1941
|
+
// isUnownedPremium,
|
|
1942
|
+
// }) => {
|
|
1943
|
+
// let added = false;
|
|
1944
|
+
// if (item?.whitelistContext?._id && selectedOption?.value === "BITS") {
|
|
1945
|
+
// added = true;
|
|
1946
|
+
// } else if (
|
|
1947
|
+
// item?.channelPointsContext?._id &&
|
|
1948
|
+
// selectedOption?.value === "CHANNEL_POINTS"
|
|
1949
|
+
// ) {
|
|
1950
|
+
// added = true;
|
|
1951
|
+
// } else if (
|
|
1952
|
+
// item?.walkOnContext?._id &&
|
|
1953
|
+
// selectedOption?.value === "WALK_ON"
|
|
1954
|
+
// ) {
|
|
1955
|
+
// added = true;
|
|
1956
|
+
// } else if (
|
|
1957
|
+
// item?.discordContext?._id &&
|
|
1958
|
+
// selectedOption?.value === "DISCORD"
|
|
1959
|
+
// ) {
|
|
1960
|
+
// added = true;
|
|
1961
|
+
// }
|
|
1962
|
+
// return (
|
|
1963
|
+
// <Stack
|
|
1964
|
+
// direction="row"
|
|
1965
|
+
// width={hoveringAddTo ? "100%" : "60%"}
|
|
1966
|
+
// sx={{
|
|
1967
|
+
// justifyContent: "end",
|
|
1968
|
+
// transition: "0.5s",
|
|
1969
|
+
// boxSizing: "border-box",
|
|
1970
|
+
// opacity: hovering ? "1" : "0",
|
|
1971
|
+
// }}
|
|
1972
|
+
// onMouseLeave={() => {
|
|
1973
|
+
// setHoveringAddTo(false);
|
|
1974
|
+
// }}
|
|
1975
|
+
// >
|
|
1976
|
+
// <AddContentDropdown
|
|
1977
|
+
// item={item}
|
|
1978
|
+
// active={hoveringAddTo}
|
|
1979
|
+
// onOptionClicked={onOptionClicked}
|
|
1980
|
+
// selectedOption={selectedOption}
|
|
1981
|
+
// />
|
|
1982
|
+
// {isUnownedPremium ? (
|
|
1983
|
+
// <IconButton
|
|
1984
|
+
// sx={{
|
|
1985
|
+
// width: "30px",
|
|
1986
|
+
// height: "30px",
|
|
1987
|
+
// backgroundColor: "white.override",
|
|
1988
|
+
// "&:hover .open-lock-icon": {
|
|
1989
|
+
// display: "flex !important",
|
|
1990
|
+
// opacity: "1 !important",
|
|
1991
|
+
// },
|
|
1992
|
+
// "&:hover .lock-icon": {
|
|
1993
|
+
// display: "none !important",
|
|
1994
|
+
// opacity: "0 !important",
|
|
1995
|
+
// },
|
|
1996
|
+
// "&:hover": {
|
|
1997
|
+
// backgroundColor: "grey7.main",
|
|
1998
|
+
// },
|
|
1999
|
+
// }}
|
|
2000
|
+
// onClick={(e) => {
|
|
2001
|
+
// e.stopPropagation();
|
|
2002
|
+
// openPremiumModal();
|
|
2003
|
+
// }}
|
|
2004
|
+
// >
|
|
2005
|
+
// <LockRoundedIcon
|
|
2006
|
+
// className="lock-icon"
|
|
2007
|
+
// sx={{
|
|
2008
|
+
// transition: "0.3s",
|
|
2009
|
+
// color: "notBlack.override",
|
|
2010
|
+
// display: "flex",
|
|
2011
|
+
// opacity: "1",
|
|
2012
|
+
// fontSize: "17px",
|
|
2013
|
+
// }}
|
|
2014
|
+
// />
|
|
2015
|
+
// <div
|
|
2016
|
+
// className="open-lock-icon"
|
|
2017
|
+
// style={{ display: "none", opacity: "0" }}
|
|
2018
|
+
// >
|
|
2019
|
+
// <OpenLockIcon
|
|
2020
|
+
// sx={{
|
|
2021
|
+
// transition: "0.3s",
|
|
2022
|
+
// color: "notBlack.override",
|
|
2023
|
+
// fontSize: "17px",
|
|
2024
|
+
// }}
|
|
2025
|
+
// />
|
|
2026
|
+
// </div>
|
|
2027
|
+
// </IconButton>
|
|
2028
|
+
// ) : (
|
|
2029
|
+
// <IconButton
|
|
2030
|
+
// sx={{
|
|
2031
|
+
// width: "30px",
|
|
2032
|
+
// height: "30px",
|
|
2033
|
+
// backgroundColor: "white.override",
|
|
2034
|
+
// "&:hover": {
|
|
2035
|
+
// backgroundColor: "grey7.main",
|
|
2036
|
+
// },
|
|
2037
|
+
// }}
|
|
2038
|
+
// onMouseEnter={(e) => {
|
|
2039
|
+
// e.stopPropagation();
|
|
2040
|
+
// setHoveringAddTo(true);
|
|
2041
|
+
// }}
|
|
2042
|
+
// onClick={() => onPlusClick(added)}
|
|
2043
|
+
// >
|
|
2044
|
+
// <AddRoundedIcon
|
|
2045
|
+
// sx={{
|
|
2046
|
+
// transition: "0.3s",
|
|
2047
|
+
// color: "notBlack.override",
|
|
2048
|
+
// transform: added && "rotate(45deg)",
|
|
2049
|
+
// }}
|
|
2050
|
+
// />
|
|
2051
|
+
// </IconButton>
|
|
2052
|
+
// )}
|
|
2053
|
+
// </Stack>
|
|
2054
|
+
// );
|
|
2055
|
+
// };
|
|
2039
2056
|
|
|
2040
|
-
var FavoriteIconWithCounter = function FavoriteIconWithCounter(
|
|
2041
|
-
var saved =
|
|
2042
|
-
count =
|
|
2043
|
-
onClick =
|
|
2057
|
+
var FavoriteIconWithCounter = function FavoriteIconWithCounter(_ref) {
|
|
2058
|
+
var saved = _ref.saved,
|
|
2059
|
+
count = _ref.count,
|
|
2060
|
+
onClick = _ref.onClick;
|
|
2044
2061
|
var formatter = Intl.NumberFormat("en", {
|
|
2045
2062
|
notation: "compact"
|
|
2046
2063
|
});
|
|
@@ -2076,36 +2093,36 @@ var FavoriteIconWithCounter = function FavoriteIconWithCounter(_ref3) {
|
|
|
2076
2093
|
}
|
|
2077
2094
|
}, savedCount));
|
|
2078
2095
|
};
|
|
2079
|
-
var AddedToIcons = function AddedToIcons(
|
|
2080
|
-
var _item$
|
|
2096
|
+
var AddedToIcons = function AddedToIcons(_ref2) {
|
|
2097
|
+
var _item$channelPointsCo, _item$whitelistContex, _item$walkOnContext;
|
|
2081
2098
|
|
|
2082
|
-
var item =
|
|
2083
|
-
hovering =
|
|
2084
|
-
|
|
2085
|
-
hide =
|
|
2099
|
+
var item = _ref2.item,
|
|
2100
|
+
hovering = _ref2.hovering,
|
|
2101
|
+
_ref2$hide = _ref2.hide,
|
|
2102
|
+
hide = _ref2$hide === void 0 ? false : _ref2$hide;
|
|
2086
2103
|
return /*#__PURE__*/React__default['default'].createElement(Stack, {
|
|
2087
2104
|
direction: "row",
|
|
2088
2105
|
sx: {
|
|
2089
2106
|
transition: "0.3s",
|
|
2090
2107
|
opacity: hide ? "0" : hovering ? "1" : "0"
|
|
2091
2108
|
}
|
|
2092
|
-
}, (item === null || item === void 0 ? void 0 : (_item$
|
|
2109
|
+
}, (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(ChannelPointsIcon, {
|
|
2093
2110
|
sx: {
|
|
2094
2111
|
fontSize: "15px"
|
|
2095
2112
|
}
|
|
2096
|
-
}), (item === null || item === void 0 ? void 0 : (_item$
|
|
2113
|
+
}), (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(TwitchBitIcon, {
|
|
2097
2114
|
sx: {
|
|
2098
2115
|
fontSize: "15px"
|
|
2099
2116
|
}
|
|
2100
|
-
}), (item === null || item === void 0 ? void 0 : (_item$
|
|
2117
|
+
}), (item === null || item === void 0 ? void 0 : (_item$walkOnContext = item.walkOnContext) === null || _item$walkOnContext === void 0 ? void 0 : _item$walkOnContext._id) && /*#__PURE__*/React__default['default'].createElement(WalkonIcon, {
|
|
2101
2118
|
sx: {
|
|
2102
2119
|
fontSize: "15px"
|
|
2103
2120
|
}
|
|
2104
2121
|
}));
|
|
2105
2122
|
};
|
|
2106
2123
|
|
|
2107
|
-
var RatingInfo = function RatingInfo(
|
|
2108
|
-
var rating =
|
|
2124
|
+
var RatingInfo = function RatingInfo(_ref3) {
|
|
2125
|
+
var rating = _ref3.rating;
|
|
2109
2126
|
|
|
2110
2127
|
switch (rating) {
|
|
2111
2128
|
case "G":
|
|
@@ -2278,22 +2295,22 @@ var RatingInfo = function RatingInfo(_ref5) {
|
|
|
2278
2295
|
// };
|
|
2279
2296
|
|
|
2280
2297
|
|
|
2281
|
-
var ReportedWarning = function ReportedWarning(
|
|
2282
|
-
var showWarning =
|
|
2283
|
-
blacklisted =
|
|
2284
|
-
saved =
|
|
2285
|
-
count =
|
|
2286
|
-
onClick =
|
|
2298
|
+
var ReportedWarning = function ReportedWarning(_ref4) {
|
|
2299
|
+
var showWarning = _ref4.showWarning,
|
|
2300
|
+
blacklisted = _ref4.blacklisted,
|
|
2301
|
+
saved = _ref4.saved,
|
|
2302
|
+
count = _ref4.count,
|
|
2303
|
+
onClick = _ref4.onClick;
|
|
2287
2304
|
|
|
2288
|
-
var
|
|
2289
|
-
|
|
2290
|
-
show =
|
|
2291
|
-
setShow =
|
|
2305
|
+
var _useState = React.useState(showWarning),
|
|
2306
|
+
_useState2 = _slicedToArray__default['default'](_useState, 2),
|
|
2307
|
+
show = _useState2[0],
|
|
2308
|
+
setShow = _useState2[1];
|
|
2292
2309
|
|
|
2293
|
-
var
|
|
2294
|
-
|
|
2295
|
-
hovering =
|
|
2296
|
-
setHovering =
|
|
2310
|
+
var _useState3 = React.useState(false),
|
|
2311
|
+
_useState4 = _slicedToArray__default['default'](_useState3, 2),
|
|
2312
|
+
hovering = _useState4[0],
|
|
2313
|
+
setHovering = _useState4[1];
|
|
2297
2314
|
|
|
2298
2315
|
var renderInfo = function renderInfo() {
|
|
2299
2316
|
if (blacklisted) {
|
|
@@ -2386,17 +2403,18 @@ var ReportedWarning = function ReportedWarning(_ref6) {
|
|
|
2386
2403
|
})), renderInfo());
|
|
2387
2404
|
};
|
|
2388
2405
|
|
|
2389
|
-
var BlerpTopRow = function BlerpTopRow(
|
|
2390
|
-
var bite =
|
|
2391
|
-
hovering =
|
|
2392
|
-
onPlusClick =
|
|
2393
|
-
_onOptionClicked =
|
|
2394
|
-
selectedOption =
|
|
2406
|
+
var BlerpTopRow = function BlerpTopRow(_ref5) {
|
|
2407
|
+
var bite = _ref5.bite,
|
|
2408
|
+
hovering = _ref5.hovering,
|
|
2409
|
+
onPlusClick = _ref5.onPlusClick,
|
|
2410
|
+
_onOptionClicked = _ref5.onOptionClicked,
|
|
2411
|
+
selectedOption = _ref5.selectedOption,
|
|
2412
|
+
renderAddContentButton = _ref5.renderAddContentButton;
|
|
2395
2413
|
|
|
2396
|
-
var
|
|
2397
|
-
|
|
2398
|
-
hoveringAddTo =
|
|
2399
|
-
setHoveringAddTo =
|
|
2414
|
+
var _useState5 = React.useState(false),
|
|
2415
|
+
_useState6 = _slicedToArray__default['default'](_useState5, 2),
|
|
2416
|
+
hoveringAddTo = _useState6[0],
|
|
2417
|
+
setHoveringAddTo = _useState6[1];
|
|
2400
2418
|
|
|
2401
2419
|
return /*#__PURE__*/React__default['default'].createElement(Stack, {
|
|
2402
2420
|
direction: "row",
|
|
@@ -2418,7 +2436,7 @@ var BlerpTopRow = function BlerpTopRow(_ref7) {
|
|
|
2418
2436
|
}), /*#__PURE__*/React__default['default'].createElement(AddedToIcons, {
|
|
2419
2437
|
item: bite,
|
|
2420
2438
|
hovering: hovering
|
|
2421
|
-
})),
|
|
2439
|
+
})), renderAddContentButton({
|
|
2422
2440
|
item: bite,
|
|
2423
2441
|
hovering: hovering,
|
|
2424
2442
|
hoveringAddTo: hoveringAddTo,
|
|
@@ -2431,46 +2449,50 @@ var BlerpTopRow = function BlerpTopRow(_ref7) {
|
|
|
2431
2449
|
}));
|
|
2432
2450
|
};
|
|
2433
2451
|
|
|
2434
|
-
var NewBlerp$1 = function NewBlerp(
|
|
2452
|
+
var NewBlerp$1 = function NewBlerp(_ref6) {
|
|
2435
2453
|
var _bite$blacklistContex, _bite$reportedContent, _bite$blacklistContex2, _bite$image, _bite$image$original;
|
|
2436
2454
|
|
|
2437
|
-
var Waveform =
|
|
2438
|
-
bite =
|
|
2439
|
-
playState =
|
|
2440
|
-
play =
|
|
2441
|
-
|
|
2442
|
-
onTitleClick =
|
|
2455
|
+
var Waveform = _ref6.Waveform,
|
|
2456
|
+
bite = _ref6.bite,
|
|
2457
|
+
playState = _ref6.playState,
|
|
2458
|
+
play = _ref6.play,
|
|
2459
|
+
_ref6$onTitleClick = _ref6.onTitleClick,
|
|
2460
|
+
onTitleClick = _ref6$onTitleClick === void 0 ? function () {
|
|
2443
2461
|
console.log("onTitleClick");
|
|
2444
|
-
} :
|
|
2445
|
-
|
|
2446
|
-
onUsernameClick =
|
|
2462
|
+
} : _ref6$onTitleClick,
|
|
2463
|
+
_ref6$onUsernameClick = _ref6.onUsernameClick,
|
|
2464
|
+
onUsernameClick = _ref6$onUsernameClick === void 0 ? function () {
|
|
2447
2465
|
console.log("onUsernameClick");
|
|
2448
|
-
} :
|
|
2449
|
-
|
|
2450
|
-
onFavoriteClick =
|
|
2466
|
+
} : _ref6$onUsernameClick,
|
|
2467
|
+
_ref6$onFavoriteClick = _ref6.onFavoriteClick,
|
|
2468
|
+
onFavoriteClick = _ref6$onFavoriteClick === void 0 ? function () {
|
|
2451
2469
|
console.log("onFavoriteClick");
|
|
2452
|
-
} :
|
|
2453
|
-
|
|
2454
|
-
onAddToPlace =
|
|
2470
|
+
} : _ref6$onFavoriteClick,
|
|
2471
|
+
_ref6$onAddToPlace = _ref6.onAddToPlace,
|
|
2472
|
+
onAddToPlace = _ref6$onAddToPlace === void 0 ? function () {
|
|
2455
2473
|
console.log("onAddToPlace");
|
|
2456
|
-
} :
|
|
2457
|
-
|
|
2458
|
-
onOptionClicked =
|
|
2474
|
+
} : _ref6$onAddToPlace,
|
|
2475
|
+
_ref6$onOptionClicked = _ref6.onOptionClicked,
|
|
2476
|
+
onOptionClicked = _ref6$onOptionClicked === void 0 ? function () {
|
|
2459
2477
|
console.log("onAddToPlace");
|
|
2460
|
-
} :
|
|
2461
|
-
selectedOption =
|
|
2462
|
-
|
|
2463
|
-
trending =
|
|
2478
|
+
} : _ref6$onOptionClicked,
|
|
2479
|
+
selectedOption = _ref6.selectedOption,
|
|
2480
|
+
_ref6$trending = _ref6.trending,
|
|
2481
|
+
trending = _ref6$trending === void 0 ? false : _ref6$trending,
|
|
2482
|
+
_ref6$renderAddConten = _ref6.renderAddContentButton,
|
|
2483
|
+
renderAddContentButton = _ref6$renderAddConten === void 0 ? function () {
|
|
2484
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null);
|
|
2485
|
+
} : _ref6$renderAddConten;
|
|
2486
|
+
|
|
2487
|
+
var _useState7 = React.useState(false),
|
|
2488
|
+
_useState8 = _slicedToArray__default['default'](_useState7, 2),
|
|
2489
|
+
hovering = _useState8[0],
|
|
2490
|
+
setHovering = _useState8[1];
|
|
2464
2491
|
|
|
2465
2492
|
var _useState9 = React.useState(false),
|
|
2466
2493
|
_useState10 = _slicedToArray__default['default'](_useState9, 2),
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
var _useState11 = React.useState(false),
|
|
2471
|
-
_useState12 = _slicedToArray__default['default'](_useState11, 2),
|
|
2472
|
-
addedToPlace = _useState12[0],
|
|
2473
|
-
setAddedToPlace = _useState12[1];
|
|
2494
|
+
addedToPlace = _useState10[0],
|
|
2495
|
+
setAddedToPlace = _useState10[1];
|
|
2474
2496
|
|
|
2475
2497
|
var renderPlayStateIcon = function renderPlayStateIcon() {
|
|
2476
2498
|
if (playState === "played") {
|
|
@@ -2559,9 +2581,7 @@ var NewBlerp$1 = function NewBlerp(_ref8) {
|
|
|
2559
2581
|
blacklisted: bite === null || bite === void 0 ? void 0 : (_bite$blacklistContex2 = bite.blacklistContext) === null || _bite$blacklistContex2 === void 0 ? void 0 : _bite$blacklistContex2._id,
|
|
2560
2582
|
saved: bite === null || bite === void 0 ? void 0 : bite.saved,
|
|
2561
2583
|
count: bite === null || bite === void 0 ? void 0 : bite.totalSaveCount,
|
|
2562
|
-
onClick:
|
|
2563
|
-
return console.log("clicked save");
|
|
2564
|
-
}
|
|
2584
|
+
onClick: onFavoriteClick
|
|
2565
2585
|
}), /*#__PURE__*/React__default['default'].createElement(Container$1, null, /*#__PURE__*/React__default['default'].createElement(Stack, {
|
|
2566
2586
|
sx: {
|
|
2567
2587
|
backgroundImage: "url(".concat(bite === null || bite === void 0 ? void 0 : (_bite$image = bite.image) === null || _bite$image === void 0 ? void 0 : (_bite$image$original = _bite$image.original) === null || _bite$image$original === void 0 ? void 0 : _bite$image$original.url, ")"),
|
|
@@ -2611,7 +2631,8 @@ var NewBlerp$1 = function NewBlerp(_ref8) {
|
|
|
2611
2631
|
onOptionClicked: onOptionClicked,
|
|
2612
2632
|
hovering: hovering,
|
|
2613
2633
|
onPlusClick: handleAddToPlace,
|
|
2614
|
-
selectedOption: selectedOption
|
|
2634
|
+
selectedOption: selectedOption,
|
|
2635
|
+
renderAddContentButton: renderAddContentButton
|
|
2615
2636
|
}), /*#__PURE__*/React__default['default'].createElement(Stack, {
|
|
2616
2637
|
sx: {
|
|
2617
2638
|
transition: "0.3s",
|
|
@@ -6172,7 +6193,7 @@ var SnackbarProvider = function SnackbarProvider(props) {
|
|
|
6172
6193
|
sx: {
|
|
6173
6194
|
width: "100%",
|
|
6174
6195
|
"& svg": {
|
|
6175
|
-
color: "
|
|
6196
|
+
color: "inherit"
|
|
6176
6197
|
}
|
|
6177
6198
|
}
|
|
6178
6199
|
}, snackbarValues.message)), props.children);
|