@blerp/design 1.2.32 → 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,7 +13,7 @@ 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');
@@ -90,7 +90,6 @@ 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);
@@ -1781,270 +1780,284 @@ var _templateObject$g, _templateObject2$a;
1781
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"])));
1782
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) {
1783
1782
  return props.theme.colors.grey7;
1784
- });
1785
-
1786
- var AddContentDropdown = function AddContentDropdown(_ref) {
1787
- var _item$channelPointsCo, _item$whitelistContex, _item$walkOnContext, _item$discordContext, _item$soundEmotesCont, _options$;
1788
-
1789
- var item = _ref.item,
1790
- active = _ref.active,
1791
- onOptionClicked = _ref.onOptionClicked,
1792
- selectedOption = _ref.selectedOption;
1793
- var options = [{
1794
- name: "Channel Points",
1795
- value: "CHANNEL_POINTS",
1796
- added: item === null || item === void 0 ? void 0 : (_item$channelPointsCo = item.channelPointsContext) === null || _item$channelPointsCo === void 0 ? void 0 : _item$channelPointsCo._id
1797
- }, {
1798
- name: "Bits",
1799
- value: "BITS",
1800
- added: item === null || item === void 0 ? void 0 : (_item$whitelistContex = item.whitelistContext) === null || _item$whitelistContex === void 0 ? void 0 : _item$whitelistContex._id
1801
- }, {
1802
- name: "WalkOn",
1803
- value: "WALK_ON",
1804
- added: item === null || item === void 0 ? void 0 : (_item$walkOnContext = item.walkOnContext) === null || _item$walkOnContext === void 0 ? void 0 : _item$walkOnContext._id
1805
- }, {
1806
- name: "Discord",
1807
- value: "DISCORD",
1808
- added: item === null || item === void 0 ? void 0 : (_item$discordContext = item.discordContext) === null || _item$discordContext === void 0 ? void 0 : _item$discordContext._id
1809
- }, {
1810
- name: "Sound Emotes",
1811
- value: "SOUND_EMOTES",
1812
- added: item === null || item === void 0 ? void 0 : (_item$soundEmotesCont = item.soundEmotesContext) === null || _item$soundEmotesCont === void 0 ? void 0 : _item$soundEmotesCont._id
1813
- }, {
1814
- name: "Add To Group",
1815
- value: "ADD_TO_GROUP",
1816
- added: false
1817
- }, {
1818
- name: "Suggest To...",
1819
- value: "SUGGEST",
1820
- added: false
1821
- }];
1822
- var anchorRef = React.useRef(null);
1823
-
1824
- var _useState = React.useState(null),
1825
- _useState2 = _slicedToArray__default['default'](_useState, 2),
1826
- anchor = _useState2[0],
1827
- setAnchor = _useState2[1];
1828
-
1829
- var open = Boolean(anchor);
1830
- return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(Button, {
1831
- ref: anchorRef,
1832
- color: "whiteOverride",
1833
- variant: "outlined",
1834
- onClick: function onClick(e) {
1835
- if (active) setAnchor(anchorRef === null || anchorRef === void 0 ? void 0 : anchorRef.current);
1836
- },
1837
- sx: {
1838
- width: "100%",
1839
- height: "30px",
1840
- transition: "0.3s",
1841
- cursor: active ? "pointer" : "default",
1842
- justifyContent: "space-between",
1843
- marginRight: "10px",
1844
- backgroundColor: "#2C323380",
1845
- opacity: active ? "1" : "0",
1846
- whiteSpace: "nowrap",
1847
- "&:hover": {
1848
- backgroundColor: "grey3.main"
1849
- }
1850
- },
1851
- endIcon: /*#__PURE__*/React__default['default'].createElement(ArrowDropDownRoundedIcon__default['default'], {
1852
- sx: {
1853
- pointerEvents: "none"
1854
- }
1855
- })
1856
- }, (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, {
1857
- open: open,
1858
- anchorEl: anchor,
1859
- anchorOrigin: {
1860
- vertical: "top",
1861
- horizontal: "left"
1862
- },
1863
- transformOrigin: {
1864
- vertical: "top",
1865
- horizontal: "left"
1866
- },
1867
- onClose: function onClose() {
1868
- setAnchor(null);
1869
- },
1870
- PaperProps: {
1871
- sx: {
1872
- width: anchor === null || anchor === void 0 ? void 0 : anchor.getBoundingClientRect().width,
1873
- backgroundColor: "#2C323380",
1874
- borderRadius: "18px",
1875
- padding: "35px 0 0 0",
1876
- boxSizing: "border-box",
1877
- maxHeight: "160px",
1878
- overflowY: "hidden"
1879
- }
1880
- }
1881
- }, /*#__PURE__*/React__default['default'].createElement(Stack, {
1882
- sx: {
1883
- maxHeight: "120px",
1884
- overflowY: "scroll"
1885
- }
1886
- }, options === null || options === void 0 ? void 0 : options.map(function (option) {
1887
- return /*#__PURE__*/React__default['default'].createElement(Stack, {
1888
- direction: "row",
1889
- sx: {
1890
- boxSizing: "border-box",
1891
- justifyContent: "space-between",
1892
- alignItems: "center",
1893
- width: "100%",
1894
- height: "100%",
1895
- padding: "6px 5px 6px 10px",
1896
- cursor: "pointer",
1897
- transition: "0.3s",
1898
- "&:hover": {
1899
- backgroundColor: "#474D4F80"
1900
- },
1901
- "&:hover #added-to-content-icon": {
1902
- display: option !== null && option !== void 0 && option.added ? "none" : "block",
1903
- opacity: "1"
1904
- },
1905
- "&:hover #remove-from-content-icon": {
1906
- display: option !== null && option !== void 0 && option.added ? "block" : "none",
1907
- opacity: option !== null && option !== void 0 && option.added ? "1" : "0"
1908
- }
1909
- },
1910
- onClick: function onClick() {
1911
- if (onOptionClicked) onOptionClicked(option);
1912
- setAnchor(null);
1913
- }
1914
- }, /*#__PURE__*/React__default['default'].createElement(Text, {
1915
- sx: {
1916
- fontSize: "14px",
1917
- fontWeight: "400"
1918
- }
1919
- }, option.name), /*#__PURE__*/React__default['default'].createElement(iconsMaterial.CheckRounded, {
1920
- id: "added-to-content-icon",
1921
- sx: {
1922
- transition: "0.3s",
1923
- opacity: option.added ? "1" : "0"
1924
- }
1925
- }), /*#__PURE__*/React__default['default'].createElement(iconsMaterial.CloseRounded, {
1926
- id: "remove-from-content-icon",
1927
- sx: {
1928
- transition: "0.3s",
1929
- display: "none",
1930
- opacity: "0"
1931
- }
1932
- }));
1933
- }))));
1934
- };
1935
-
1936
- var AddContentButton = function AddContentButton(_ref2) {
1937
- var _item$whitelistContex2, _item$channelPointsCo2, _item$walkOnContext2, _item$discordContext2;
1938
-
1939
- var item = _ref2.item,
1940
- hovering = _ref2.hovering,
1941
- hoveringAddTo = _ref2.hoveringAddTo,
1942
- setHoveringAddTo = _ref2.setHoveringAddTo,
1943
- openPremiumModal = _ref2.openPremiumModal,
1944
- onOptionClicked = _ref2.onOptionClicked,
1945
- onPlusClick = _ref2.onPlusClick,
1946
- selectedOption = _ref2.selectedOption,
1947
- isUnownedPremium = _ref2.isUnownedPremium;
1948
- var added = false;
1949
-
1950
- 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") {
1951
- added = true;
1952
- } 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") {
1953
- added = true;
1954
- } 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") {
1955
- added = true;
1956
- } 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") {
1957
- added = true;
1958
- }
1959
-
1960
- return /*#__PURE__*/React__default['default'].createElement(Stack, {
1961
- direction: "row",
1962
- width: hoveringAddTo ? "100%" : "60%",
1963
- sx: {
1964
- justifyContent: "end",
1965
- transition: "0.5s",
1966
- boxSizing: "border-box",
1967
- opacity: hovering ? "1" : "0"
1968
- },
1969
- onMouseLeave: function onMouseLeave() {
1970
- setHoveringAddTo(false);
1971
- }
1972
- }, /*#__PURE__*/React__default['default'].createElement(AddContentDropdown, {
1973
- item: item,
1974
- active: hoveringAddTo,
1975
- onOptionClicked: onOptionClicked,
1976
- selectedOption: selectedOption
1977
- }), isUnownedPremium ? /*#__PURE__*/React__default['default'].createElement(IconButton, {
1978
- sx: {
1979
- width: "30px",
1980
- height: "30px",
1981
- backgroundColor: "white.override",
1982
- "&:hover .open-lock-icon": {
1983
- display: "flex !important",
1984
- opacity: "1 !important"
1985
- },
1986
- "&:hover .lock-icon": {
1987
- display: "none !important",
1988
- opacity: "0 !important"
1989
- },
1990
- "&:hover": {
1991
- backgroundColor: "grey7.main"
1992
- }
1993
- },
1994
- onClick: function onClick(e) {
1995
- e.stopPropagation();
1996
- openPremiumModal();
1997
- }
1998
- }, /*#__PURE__*/React__default['default'].createElement(LockRoundedIcon__default['default'], {
1999
- className: "lock-icon",
2000
- sx: {
2001
- transition: "0.3s",
2002
- color: "notBlack.override",
2003
- display: "flex",
2004
- opacity: "1",
2005
- fontSize: "17px"
2006
- }
2007
- }), /*#__PURE__*/React__default['default'].createElement("div", {
2008
- className: "open-lock-icon",
2009
- style: {
2010
- display: "none",
2011
- opacity: "0"
2012
- }
2013
- }, /*#__PURE__*/React__default['default'].createElement(OpenLockIcon, {
2014
- sx: {
2015
- transition: "0.3s",
2016
- color: "notBlack.override",
2017
- fontSize: "17px"
2018
- }
2019
- }))) : /*#__PURE__*/React__default['default'].createElement(IconButton, {
2020
- sx: {
2021
- width: "30px",
2022
- height: "30px",
2023
- backgroundColor: "white.override",
2024
- "&:hover": {
2025
- backgroundColor: "grey7.main"
2026
- }
2027
- },
2028
- onMouseEnter: function onMouseEnter(e) {
2029
- e.stopPropagation();
2030
- setHoveringAddTo(true);
2031
- },
2032
- onClick: function onClick() {
2033
- return onPlusClick(added);
2034
- }
2035
- }, /*#__PURE__*/React__default['default'].createElement(AddRoundedIcon__default['default'], {
2036
- sx: {
2037
- transition: "0.3s",
2038
- color: "notBlack.override",
2039
- transform: added && "rotate(45deg)"
2040
- }
2041
- })));
2042
- };
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
+ // };
2043
2056
 
2044
- var FavoriteIconWithCounter = function FavoriteIconWithCounter(_ref3) {
2045
- var saved = _ref3.saved,
2046
- count = _ref3.count,
2047
- onClick = _ref3.onClick;
2057
+ var FavoriteIconWithCounter = function FavoriteIconWithCounter(_ref) {
2058
+ var saved = _ref.saved,
2059
+ count = _ref.count,
2060
+ onClick = _ref.onClick;
2048
2061
  var formatter = Intl.NumberFormat("en", {
2049
2062
  notation: "compact"
2050
2063
  });
@@ -2080,36 +2093,36 @@ var FavoriteIconWithCounter = function FavoriteIconWithCounter(_ref3) {
2080
2093
  }
2081
2094
  }, savedCount));
2082
2095
  };
2083
- var AddedToIcons = function AddedToIcons(_ref4) {
2084
- var _item$channelPointsCo3, _item$whitelistContex3, _item$walkOnContext3;
2096
+ var AddedToIcons = function AddedToIcons(_ref2) {
2097
+ var _item$channelPointsCo, _item$whitelistContex, _item$walkOnContext;
2085
2098
 
2086
- var item = _ref4.item,
2087
- hovering = _ref4.hovering,
2088
- _ref4$hide = _ref4.hide,
2089
- 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;
2090
2103
  return /*#__PURE__*/React__default['default'].createElement(Stack, {
2091
2104
  direction: "row",
2092
2105
  sx: {
2093
2106
  transition: "0.3s",
2094
2107
  opacity: hide ? "0" : hovering ? "1" : "0"
2095
2108
  }
2096
- }, (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, {
2097
2110
  sx: {
2098
2111
  fontSize: "15px"
2099
2112
  }
2100
- }), (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, {
2101
2114
  sx: {
2102
2115
  fontSize: "15px"
2103
2116
  }
2104
- }), (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, {
2105
2118
  sx: {
2106
2119
  fontSize: "15px"
2107
2120
  }
2108
2121
  }));
2109
2122
  };
2110
2123
 
2111
- var RatingInfo = function RatingInfo(_ref5) {
2112
- var rating = _ref5.rating;
2124
+ var RatingInfo = function RatingInfo(_ref3) {
2125
+ var rating = _ref3.rating;
2113
2126
 
2114
2127
  switch (rating) {
2115
2128
  case "G":
@@ -2282,22 +2295,22 @@ var RatingInfo = function RatingInfo(_ref5) {
2282
2295
  // };
2283
2296
 
2284
2297
 
2285
- var ReportedWarning = function ReportedWarning(_ref6) {
2286
- var showWarning = _ref6.showWarning,
2287
- blacklisted = _ref6.blacklisted,
2288
- saved = _ref6.saved,
2289
- count = _ref6.count,
2290
- 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;
2291
2304
 
2292
- var _useState3 = React.useState(showWarning),
2293
- _useState4 = _slicedToArray__default['default'](_useState3, 2),
2294
- show = _useState4[0],
2295
- setShow = _useState4[1];
2305
+ var _useState = React.useState(showWarning),
2306
+ _useState2 = _slicedToArray__default['default'](_useState, 2),
2307
+ show = _useState2[0],
2308
+ setShow = _useState2[1];
2296
2309
 
2297
- var _useState5 = React.useState(false),
2298
- _useState6 = _slicedToArray__default['default'](_useState5, 2),
2299
- hovering = _useState6[0],
2300
- setHovering = _useState6[1];
2310
+ var _useState3 = React.useState(false),
2311
+ _useState4 = _slicedToArray__default['default'](_useState3, 2),
2312
+ hovering = _useState4[0],
2313
+ setHovering = _useState4[1];
2301
2314
 
2302
2315
  var renderInfo = function renderInfo() {
2303
2316
  if (blacklisted) {
@@ -2390,17 +2403,18 @@ var ReportedWarning = function ReportedWarning(_ref6) {
2390
2403
  })), renderInfo());
2391
2404
  };
2392
2405
 
2393
- var BlerpTopRow = function BlerpTopRow(_ref7) {
2394
- var bite = _ref7.bite,
2395
- hovering = _ref7.hovering,
2396
- onPlusClick = _ref7.onPlusClick,
2397
- _onOptionClicked = _ref7.onOptionClicked,
2398
- 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;
2399
2413
 
2400
- var _useState7 = React.useState(false),
2401
- _useState8 = _slicedToArray__default['default'](_useState7, 2),
2402
- hoveringAddTo = _useState8[0],
2403
- setHoveringAddTo = _useState8[1];
2414
+ var _useState5 = React.useState(false),
2415
+ _useState6 = _slicedToArray__default['default'](_useState5, 2),
2416
+ hoveringAddTo = _useState6[0],
2417
+ setHoveringAddTo = _useState6[1];
2404
2418
 
2405
2419
  return /*#__PURE__*/React__default['default'].createElement(Stack, {
2406
2420
  direction: "row",
@@ -2422,7 +2436,7 @@ var BlerpTopRow = function BlerpTopRow(_ref7) {
2422
2436
  }), /*#__PURE__*/React__default['default'].createElement(AddedToIcons, {
2423
2437
  item: bite,
2424
2438
  hovering: hovering
2425
- })), /*#__PURE__*/React__default['default'].createElement(AddContentButton, {
2439
+ })), renderAddContentButton({
2426
2440
  item: bite,
2427
2441
  hovering: hovering,
2428
2442
  hoveringAddTo: hoveringAddTo,
@@ -2435,46 +2449,50 @@ var BlerpTopRow = function BlerpTopRow(_ref7) {
2435
2449
  }));
2436
2450
  };
2437
2451
 
2438
- var NewBlerp$1 = function NewBlerp(_ref8) {
2452
+ var NewBlerp$1 = function NewBlerp(_ref6) {
2439
2453
  var _bite$blacklistContex, _bite$reportedContent, _bite$blacklistContex2, _bite$image, _bite$image$original;
2440
2454
 
2441
- var Waveform = _ref8.Waveform,
2442
- bite = _ref8.bite,
2443
- playState = _ref8.playState,
2444
- play = _ref8.play,
2445
- _ref8$onTitleClick = _ref8.onTitleClick,
2446
- 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 () {
2447
2461
  console.log("onTitleClick");
2448
- } : _ref8$onTitleClick,
2449
- _ref8$onUsernameClick = _ref8.onUsernameClick,
2450
- onUsernameClick = _ref8$onUsernameClick === void 0 ? function () {
2462
+ } : _ref6$onTitleClick,
2463
+ _ref6$onUsernameClick = _ref6.onUsernameClick,
2464
+ onUsernameClick = _ref6$onUsernameClick === void 0 ? function () {
2451
2465
  console.log("onUsernameClick");
2452
- } : _ref8$onUsernameClick,
2453
- _ref8$onFavoriteClick = _ref8.onFavoriteClick,
2454
- onFavoriteClick = _ref8$onFavoriteClick === void 0 ? function () {
2466
+ } : _ref6$onUsernameClick,
2467
+ _ref6$onFavoriteClick = _ref6.onFavoriteClick,
2468
+ onFavoriteClick = _ref6$onFavoriteClick === void 0 ? function () {
2455
2469
  console.log("onFavoriteClick");
2456
- } : _ref8$onFavoriteClick,
2457
- _ref8$onAddToPlace = _ref8.onAddToPlace,
2458
- onAddToPlace = _ref8$onAddToPlace === void 0 ? function () {
2470
+ } : _ref6$onFavoriteClick,
2471
+ _ref6$onAddToPlace = _ref6.onAddToPlace,
2472
+ onAddToPlace = _ref6$onAddToPlace === void 0 ? function () {
2459
2473
  console.log("onAddToPlace");
2460
- } : _ref8$onAddToPlace,
2461
- _ref8$onOptionClicked = _ref8.onOptionClicked,
2462
- onOptionClicked = _ref8$onOptionClicked === void 0 ? function () {
2474
+ } : _ref6$onAddToPlace,
2475
+ _ref6$onOptionClicked = _ref6.onOptionClicked,
2476
+ onOptionClicked = _ref6$onOptionClicked === void 0 ? function () {
2463
2477
  console.log("onAddToPlace");
2464
- } : _ref8$onOptionClicked,
2465
- selectedOption = _ref8.selectedOption,
2466
- _ref8$trending = _ref8.trending,
2467
- 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];
2468
2491
 
2469
2492
  var _useState9 = React.useState(false),
2470
2493
  _useState10 = _slicedToArray__default['default'](_useState9, 2),
2471
- hovering = _useState10[0],
2472
- setHovering = _useState10[1];
2473
-
2474
- var _useState11 = React.useState(false),
2475
- _useState12 = _slicedToArray__default['default'](_useState11, 2),
2476
- addedToPlace = _useState12[0],
2477
- setAddedToPlace = _useState12[1];
2494
+ addedToPlace = _useState10[0],
2495
+ setAddedToPlace = _useState10[1];
2478
2496
 
2479
2497
  var renderPlayStateIcon = function renderPlayStateIcon() {
2480
2498
  if (playState === "played") {
@@ -2613,7 +2631,8 @@ var NewBlerp$1 = function NewBlerp(_ref8) {
2613
2631
  onOptionClicked: onOptionClicked,
2614
2632
  hovering: hovering,
2615
2633
  onPlusClick: handleAddToPlace,
2616
- selectedOption: selectedOption
2634
+ selectedOption: selectedOption,
2635
+ renderAddContentButton: renderAddContentButton
2617
2636
  }), /*#__PURE__*/React__default['default'].createElement(Stack, {
2618
2637
  sx: {
2619
2638
  transition: "0.3s",
@@ -6174,7 +6193,7 @@ var SnackbarProvider = function SnackbarProvider(props) {
6174
6193
  sx: {
6175
6194
  width: "100%",
6176
6195
  "& svg": {
6177
- color: "white.override"
6196
+ color: "inherit"
6178
6197
  }
6179
6198
  }
6180
6199
  }, snackbarValues.message)), props.children);