@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 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
- var ArrowDropDownRoundedIcon = require('@mui/icons-material/ArrowDropDownRounded');
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
- var AddContentDropdown = function AddContentDropdown(_ref) {
1783
- var _item$channelPointsCo, _item$whitelistContex, _item$walkOnContext, _item$discordContext, _item$soundEmotesCont, _options$;
1784
-
1785
- var item = _ref.item,
1786
- active = _ref.active,
1787
- onOptionClicked = _ref.onOptionClicked,
1788
- selectedOption = _ref.selectedOption;
1789
- var options = [{
1790
- name: "Channel Points",
1791
- value: "CHANNEL_POINTS",
1792
- added: item === null || item === void 0 ? void 0 : (_item$channelPointsCo = item.channelPointsContext) === null || _item$channelPointsCo === void 0 ? void 0 : _item$channelPointsCo._id
1793
- }, {
1794
- name: "Bits",
1795
- value: "BITS",
1796
- added: item === null || item === void 0 ? void 0 : (_item$whitelistContex = item.whitelistContext) === null || _item$whitelistContex === void 0 ? void 0 : _item$whitelistContex._id
1797
- }, {
1798
- name: "WalkOn",
1799
- value: "WALK_ON",
1800
- added: item === null || item === void 0 ? void 0 : (_item$walkOnContext = item.walkOnContext) === null || _item$walkOnContext === void 0 ? void 0 : _item$walkOnContext._id
1801
- }, {
1802
- name: "Discord",
1803
- value: "DISCORD",
1804
- added: item === null || item === void 0 ? void 0 : (_item$discordContext = item.discordContext) === null || _item$discordContext === void 0 ? void 0 : _item$discordContext._id
1805
- }, {
1806
- name: "Sound Emotes",
1807
- value: "SOUND_EMOTES",
1808
- added: item === null || item === void 0 ? void 0 : (_item$soundEmotesCont = item.soundEmotesContext) === null || _item$soundEmotesCont === void 0 ? void 0 : _item$soundEmotesCont._id
1809
- }, {
1810
- name: "Add To Group",
1811
- value: "ADD_TO_GROUP",
1812
- added: false
1813
- }, {
1814
- name: "Suggest To...",
1815
- value: "SUGGEST",
1816
- added: false
1817
- }];
1818
- var anchorRef = React.useRef(null);
1819
-
1820
- var _useState = React.useState(null),
1821
- _useState2 = _slicedToArray__default['default'](_useState, 2),
1822
- anchor = _useState2[0],
1823
- setAnchor = _useState2[1];
1824
-
1825
- var open = Boolean(anchor);
1826
- return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(Button, {
1827
- ref: anchorRef,
1828
- color: "whiteOverride",
1829
- variant: "outlined",
1830
- onClick: function onClick(e) {
1831
- if (active) setAnchor(anchorRef === null || anchorRef === void 0 ? void 0 : anchorRef.current);
1832
- },
1833
- sx: {
1834
- width: "100%",
1835
- height: "30px",
1836
- transition: "0.3s",
1837
- cursor: active ? "pointer" : "default",
1838
- justifyContent: "space-between",
1839
- marginRight: "10px",
1840
- backgroundColor: "#2C323380",
1841
- opacity: active ? "1" : "0",
1842
- whiteSpace: "nowrap",
1843
- "&:hover": {
1844
- backgroundColor: "grey3.main"
1845
- }
1846
- },
1847
- endIcon: /*#__PURE__*/React__default['default'].createElement(ArrowDropDownRoundedIcon__default['default'], {
1848
- sx: {
1849
- pointerEvents: "none"
1850
- }
1851
- })
1852
- }, (selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.name) || ((_options$ = options[0]) === null || _options$ === void 0 ? void 0 : _options$.name)), /*#__PURE__*/React__default['default'].createElement(Popover, {
1853
- open: open,
1854
- anchorEl: anchor,
1855
- anchorOrigin: {
1856
- vertical: "top",
1857
- horizontal: "left"
1858
- },
1859
- transformOrigin: {
1860
- vertical: "top",
1861
- horizontal: "left"
1862
- },
1863
- onClose: function onClose() {
1864
- setAnchor(null);
1865
- },
1866
- PaperProps: {
1867
- sx: {
1868
- width: anchor === null || anchor === void 0 ? void 0 : anchor.getBoundingClientRect().width,
1869
- backgroundColor: "#2C323380",
1870
- borderRadius: "18px",
1871
- padding: "35px 0 0 0",
1872
- boxSizing: "border-box",
1873
- maxHeight: "160px",
1874
- overflowY: "hidden"
1875
- }
1876
- }
1877
- }, /*#__PURE__*/React__default['default'].createElement(Stack, {
1878
- sx: {
1879
- maxHeight: "120px",
1880
- overflowY: "scroll"
1881
- }
1882
- }, options === null || options === void 0 ? void 0 : options.map(function (option) {
1883
- return /*#__PURE__*/React__default['default'].createElement(Stack, {
1884
- direction: "row",
1885
- sx: {
1886
- boxSizing: "border-box",
1887
- justifyContent: "space-between",
1888
- alignItems: "center",
1889
- width: "100%",
1890
- height: "100%",
1891
- padding: "6px 5px 6px 10px",
1892
- cursor: "pointer",
1893
- transition: "0.3s",
1894
- "&:hover": {
1895
- backgroundColor: "#474D4F80"
1896
- },
1897
- "&:hover #added-to-content-icon": {
1898
- display: option !== null && option !== void 0 && option.added ? "none" : "block",
1899
- opacity: "1"
1900
- },
1901
- "&:hover #remove-from-content-icon": {
1902
- display: option !== null && option !== void 0 && option.added ? "block" : "none",
1903
- opacity: option !== null && option !== void 0 && option.added ? "1" : "0"
1904
- }
1905
- },
1906
- onClick: function onClick() {
1907
- if (onOptionClicked) onOptionClicked(option);
1908
- setAnchor(null);
1909
- }
1910
- }, /*#__PURE__*/React__default['default'].createElement(Text, {
1911
- sx: {
1912
- fontSize: "14px",
1913
- fontWeight: "400"
1914
- }
1915
- }, option.name), /*#__PURE__*/React__default['default'].createElement(iconsMaterial.CheckRounded, {
1916
- id: "added-to-content-icon",
1917
- sx: {
1918
- transition: "0.3s",
1919
- opacity: option.added ? "1" : "0"
1920
- }
1921
- }), /*#__PURE__*/React__default['default'].createElement(iconsMaterial.CloseRounded, {
1922
- id: "remove-from-content-icon",
1923
- sx: {
1924
- transition: "0.3s",
1925
- display: "none",
1926
- opacity: "0"
1927
- }
1928
- }));
1929
- }))));
1930
- };
1931
-
1932
- var AddContentButton = function AddContentButton(_ref2) {
1933
- var _item$whitelistContex2, _item$channelPointsCo2, _item$walkOnContext2, _item$discordContext2;
1934
-
1935
- var item = _ref2.item,
1936
- hovering = _ref2.hovering,
1937
- hoveringAddTo = _ref2.hoveringAddTo,
1938
- setHoveringAddTo = _ref2.setHoveringAddTo,
1939
- openPremiumModal = _ref2.openPremiumModal,
1940
- onOptionClicked = _ref2.onOptionClicked,
1941
- onPlusClick = _ref2.onPlusClick,
1942
- selectedOption = _ref2.selectedOption,
1943
- isUnownedPremium = _ref2.isUnownedPremium;
1944
- var added = false;
1945
-
1946
- if (item !== null && item !== void 0 && (_item$whitelistContex2 = item.whitelistContext) !== null && _item$whitelistContex2 !== void 0 && _item$whitelistContex2._id && (selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.value) === "BITS") {
1947
- added = true;
1948
- } else if (item !== null && item !== void 0 && (_item$channelPointsCo2 = item.channelPointsContext) !== null && _item$channelPointsCo2 !== void 0 && _item$channelPointsCo2._id && (selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.value) === "CHANNEL_POINTS") {
1949
- added = true;
1950
- } else if (item !== null && item !== void 0 && (_item$walkOnContext2 = item.walkOnContext) !== null && _item$walkOnContext2 !== void 0 && _item$walkOnContext2._id && (selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.value) === "WALK_ON") {
1951
- added = true;
1952
- } else if (item !== null && item !== void 0 && (_item$discordContext2 = item.discordContext) !== null && _item$discordContext2 !== void 0 && _item$discordContext2._id && (selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.value) === "DISCORD") {
1953
- added = true;
1954
- }
1955
-
1956
- return /*#__PURE__*/React__default['default'].createElement(Stack, {
1957
- direction: "row",
1958
- width: hoveringAddTo ? "100%" : "60%",
1959
- sx: {
1960
- justifyContent: "end",
1961
- transition: "0.5s",
1962
- boxSizing: "border-box",
1963
- opacity: hovering ? "1" : "0"
1964
- },
1965
- onMouseLeave: function onMouseLeave() {
1966
- setHoveringAddTo(false);
1967
- }
1968
- }, /*#__PURE__*/React__default['default'].createElement(AddContentDropdown, {
1969
- item: item,
1970
- active: hoveringAddTo,
1971
- onOptionClicked: onOptionClicked,
1972
- selectedOption: selectedOption
1973
- }), isUnownedPremium ? /*#__PURE__*/React__default['default'].createElement(IconButton, {
1974
- sx: {
1975
- width: "30px",
1976
- height: "30px",
1977
- backgroundColor: "white.override",
1978
- "&:hover .open-lock-icon": {
1979
- display: "flex !important",
1980
- opacity: "1 !important"
1981
- },
1982
- "&:hover .lock-icon": {
1983
- display: "none !important",
1984
- opacity: "0 !important"
1985
- },
1986
- "&:hover": {
1987
- backgroundColor: "grey7.main"
1988
- }
1989
- },
1990
- onClick: function onClick(e) {
1991
- e.stopPropagation();
1992
- openPremiumModal();
1993
- }
1994
- }, /*#__PURE__*/React__default['default'].createElement(LockRoundedIcon__default['default'], {
1995
- className: "lock-icon",
1996
- sx: {
1997
- transition: "0.3s",
1998
- color: "notBlack.override",
1999
- display: "flex",
2000
- opacity: "1",
2001
- fontSize: "17px"
2002
- }
2003
- }), /*#__PURE__*/React__default['default'].createElement("div", {
2004
- className: "open-lock-icon",
2005
- style: {
2006
- display: "none",
2007
- opacity: "0"
2008
- }
2009
- }, /*#__PURE__*/React__default['default'].createElement(OpenLockIcon, {
2010
- sx: {
2011
- transition: "0.3s",
2012
- color: "notBlack.override",
2013
- fontSize: "17px"
2014
- }
2015
- }))) : /*#__PURE__*/React__default['default'].createElement(IconButton, {
2016
- sx: {
2017
- width: "30px",
2018
- height: "30px",
2019
- backgroundColor: "white.override",
2020
- "&:hover": {
2021
- backgroundColor: "grey7.main"
2022
- }
2023
- },
2024
- onMouseEnter: function onMouseEnter(e) {
2025
- e.stopPropagation();
2026
- setHoveringAddTo(true);
2027
- },
2028
- onClick: function onClick() {
2029
- return onPlusClick(added);
2030
- }
2031
- }, /*#__PURE__*/React__default['default'].createElement(AddRoundedIcon__default['default'], {
2032
- sx: {
2033
- transition: "0.3s",
2034
- color: "notBlack.override",
2035
- transform: added && "rotate(45deg)"
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(_ref3) {
2041
- var saved = _ref3.saved,
2042
- count = _ref3.count,
2043
- onClick = _ref3.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(_ref4) {
2080
- var _item$channelPointsCo3, _item$whitelistContex3, _item$walkOnContext3;
2096
+ var AddedToIcons = function AddedToIcons(_ref2) {
2097
+ var _item$channelPointsCo, _item$whitelistContex, _item$walkOnContext;
2081
2098
 
2082
- var item = _ref4.item,
2083
- hovering = _ref4.hovering,
2084
- _ref4$hide = _ref4.hide,
2085
- hide = _ref4$hide === void 0 ? false : _ref4$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$channelPointsCo3 = item.channelPointsContext) === null || _item$channelPointsCo3 === void 0 ? void 0 : _item$channelPointsCo3._id) && /*#__PURE__*/React__default['default'].createElement(ChannelPointsIcon, {
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$whitelistContex3 = item.whitelistContext) === null || _item$whitelistContex3 === void 0 ? void 0 : _item$whitelistContex3._id) && /*#__PURE__*/React__default['default'].createElement(TwitchBitIcon, {
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$walkOnContext3 = item.walkOnContext) === null || _item$walkOnContext3 === void 0 ? void 0 : _item$walkOnContext3._id) && /*#__PURE__*/React__default['default'].createElement(WalkonIcon, {
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(_ref5) {
2108
- var rating = _ref5.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(_ref6) {
2282
- var showWarning = _ref6.showWarning,
2283
- blacklisted = _ref6.blacklisted,
2284
- saved = _ref6.saved,
2285
- count = _ref6.count,
2286
- onClick = _ref6.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 _useState3 = React.useState(showWarning),
2289
- _useState4 = _slicedToArray__default['default'](_useState3, 2),
2290
- show = _useState4[0],
2291
- setShow = _useState4[1];
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 _useState5 = React.useState(false),
2294
- _useState6 = _slicedToArray__default['default'](_useState5, 2),
2295
- hovering = _useState6[0],
2296
- setHovering = _useState6[1];
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(_ref7) {
2390
- var bite = _ref7.bite,
2391
- hovering = _ref7.hovering,
2392
- onPlusClick = _ref7.onPlusClick,
2393
- _onOptionClicked = _ref7.onOptionClicked,
2394
- selectedOption = _ref7.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 _useState7 = React.useState(false),
2397
- _useState8 = _slicedToArray__default['default'](_useState7, 2),
2398
- hoveringAddTo = _useState8[0],
2399
- setHoveringAddTo = _useState8[1];
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
- })), /*#__PURE__*/React__default['default'].createElement(AddContentButton, {
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(_ref8) {
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 = _ref8.Waveform,
2438
- bite = _ref8.bite,
2439
- playState = _ref8.playState,
2440
- play = _ref8.play,
2441
- _ref8$onTitleClick = _ref8.onTitleClick,
2442
- onTitleClick = _ref8$onTitleClick === void 0 ? function () {
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
- } : _ref8$onTitleClick,
2445
- _ref8$onUsernameClick = _ref8.onUsernameClick,
2446
- onUsernameClick = _ref8$onUsernameClick === void 0 ? function () {
2462
+ } : _ref6$onTitleClick,
2463
+ _ref6$onUsernameClick = _ref6.onUsernameClick,
2464
+ onUsernameClick = _ref6$onUsernameClick === void 0 ? function () {
2447
2465
  console.log("onUsernameClick");
2448
- } : _ref8$onUsernameClick,
2449
- _ref8$onFavoriteClick = _ref8.onFavoriteClick,
2450
- onFavoriteClick = _ref8$onFavoriteClick === void 0 ? function () {
2466
+ } : _ref6$onUsernameClick,
2467
+ _ref6$onFavoriteClick = _ref6.onFavoriteClick,
2468
+ onFavoriteClick = _ref6$onFavoriteClick === void 0 ? function () {
2451
2469
  console.log("onFavoriteClick");
2452
- } : _ref8$onFavoriteClick,
2453
- _ref8$onAddToPlace = _ref8.onAddToPlace,
2454
- onAddToPlace = _ref8$onAddToPlace === void 0 ? function () {
2470
+ } : _ref6$onFavoriteClick,
2471
+ _ref6$onAddToPlace = _ref6.onAddToPlace,
2472
+ onAddToPlace = _ref6$onAddToPlace === void 0 ? function () {
2455
2473
  console.log("onAddToPlace");
2456
- } : _ref8$onAddToPlace,
2457
- _ref8$onOptionClicked = _ref8.onOptionClicked,
2458
- onOptionClicked = _ref8$onOptionClicked === void 0 ? function () {
2474
+ } : _ref6$onAddToPlace,
2475
+ _ref6$onOptionClicked = _ref6.onOptionClicked,
2476
+ onOptionClicked = _ref6$onOptionClicked === void 0 ? function () {
2459
2477
  console.log("onAddToPlace");
2460
- } : _ref8$onOptionClicked,
2461
- selectedOption = _ref8.selectedOption,
2462
- _ref8$trending = _ref8.trending,
2463
- trending = _ref8$trending === void 0 ? false : _ref8$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
- hovering = _useState10[0],
2468
- setHovering = _useState10[1];
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: function 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: "white.override"
6196
+ color: "inherit"
6176
6197
  }
6177
6198
  }
6178
6199
  }, snackbarValues.message)), props.children);