@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.esm.js CHANGED
@@ -6,11 +6,11 @@ import React__default, { useState, useEffect, useContext, useRef, createContext,
6
6
  import { ColorExtractor } from 'react-color-extractor';
7
7
  import styled, { ThemeContext, keyframes, ThemeProvider as ThemeProvider$1 } from 'styled-components';
8
8
  import _taggedTemplateLiteral from '@babel/runtime/helpers/taggedTemplateLiteral';
9
- import { PauseCircleOutlineRounded, LockRounded, VerifiedRounded, CheckRounded, CloseRounded, BookmarkRounded, BookmarkAddOutlined, AccountCircleRounded, VisibilityOffRounded, CancelRounded } from '@mui/icons-material';
9
+ import { PauseCircleOutlineRounded, LockRounded, VerifiedRounded, CheckRounded, BookmarkRounded, BookmarkAddOutlined, AccountCircleRounded, VisibilityOffRounded, CancelRounded } from '@mui/icons-material';
10
10
  import BookmarkOutlinedIcon from '@mui/icons-material/BookmarkOutlined';
11
11
  import LockRoundedIcon from '@mui/icons-material/LockRounded';
12
12
  import AddRoundedIcon from '@mui/icons-material/AddRounded';
13
- import ArrowDropDownRoundedIcon from '@mui/icons-material/ArrowDropDownRounded';
13
+ import '@mui/icons-material/ArrowDropDownRounded';
14
14
  import DoNotDisturbRoundedIcon from '@mui/icons-material/DoNotDisturbRounded';
15
15
  import FavoriteIcon from '@mui/icons-material/Favorite';
16
16
  import FavoriteBorderIcon from '@mui/icons-material/FavoriteBorder';
@@ -1705,270 +1705,284 @@ var _templateObject$g, _templateObject2$a;
1705
1705
  var PremiumContainer = styled.div(_templateObject$g || (_templateObject$g = _taggedTemplateLiteral(["\n background: transparent;\n overflow: hidden;\n min-width: 210px;\n max-width: 260px;\n width: 100%;\n max-height: 322px;\n flex: 1;\n min-height: 272px;\n aspect-ratio: 260 / 322;\n gap: 10px;\n border-radius: 18px;\n box-sizing: border-box;\n padding: 2px;\n position: relative;\n transition: 0.3s;\n"])));
1706
1706
  var Container$1 = styled.div(_templateObject2$a || (_templateObject2$a = _taggedTemplateLiteral(["\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) {
1707
1707
  return props.theme.colors.grey7;
1708
- });
1709
-
1710
- var AddContentDropdown = function AddContentDropdown(_ref) {
1711
- var _item$channelPointsCo, _item$whitelistContex, _item$walkOnContext, _item$discordContext, _item$soundEmotesCont, _options$;
1712
-
1713
- var item = _ref.item,
1714
- active = _ref.active,
1715
- onOptionClicked = _ref.onOptionClicked,
1716
- selectedOption = _ref.selectedOption;
1717
- var options = [{
1718
- name: "Channel Points",
1719
- value: "CHANNEL_POINTS",
1720
- added: item === null || item === void 0 ? void 0 : (_item$channelPointsCo = item.channelPointsContext) === null || _item$channelPointsCo === void 0 ? void 0 : _item$channelPointsCo._id
1721
- }, {
1722
- name: "Bits",
1723
- value: "BITS",
1724
- added: item === null || item === void 0 ? void 0 : (_item$whitelistContex = item.whitelistContext) === null || _item$whitelistContex === void 0 ? void 0 : _item$whitelistContex._id
1725
- }, {
1726
- name: "WalkOn",
1727
- value: "WALK_ON",
1728
- added: item === null || item === void 0 ? void 0 : (_item$walkOnContext = item.walkOnContext) === null || _item$walkOnContext === void 0 ? void 0 : _item$walkOnContext._id
1729
- }, {
1730
- name: "Discord",
1731
- value: "DISCORD",
1732
- added: item === null || item === void 0 ? void 0 : (_item$discordContext = item.discordContext) === null || _item$discordContext === void 0 ? void 0 : _item$discordContext._id
1733
- }, {
1734
- name: "Sound Emotes",
1735
- value: "SOUND_EMOTES",
1736
- added: item === null || item === void 0 ? void 0 : (_item$soundEmotesCont = item.soundEmotesContext) === null || _item$soundEmotesCont === void 0 ? void 0 : _item$soundEmotesCont._id
1737
- }, {
1738
- name: "Add To Group",
1739
- value: "ADD_TO_GROUP",
1740
- added: false
1741
- }, {
1742
- name: "Suggest To...",
1743
- value: "SUGGEST",
1744
- added: false
1745
- }];
1746
- var anchorRef = useRef(null);
1747
-
1748
- var _useState = useState(null),
1749
- _useState2 = _slicedToArray(_useState, 2),
1750
- anchor = _useState2[0],
1751
- setAnchor = _useState2[1];
1752
-
1753
- var open = Boolean(anchor);
1754
- return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Button, {
1755
- ref: anchorRef,
1756
- color: "whiteOverride",
1757
- variant: "outlined",
1758
- onClick: function onClick(e) {
1759
- if (active) setAnchor(anchorRef === null || anchorRef === void 0 ? void 0 : anchorRef.current);
1760
- },
1761
- sx: {
1762
- width: "100%",
1763
- height: "30px",
1764
- transition: "0.3s",
1765
- cursor: active ? "pointer" : "default",
1766
- justifyContent: "space-between",
1767
- marginRight: "10px",
1768
- backgroundColor: "#2C323380",
1769
- opacity: active ? "1" : "0",
1770
- whiteSpace: "nowrap",
1771
- "&:hover": {
1772
- backgroundColor: "grey3.main"
1773
- }
1774
- },
1775
- endIcon: /*#__PURE__*/React__default.createElement(ArrowDropDownRoundedIcon, {
1776
- sx: {
1777
- pointerEvents: "none"
1778
- }
1779
- })
1780
- }, (selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.name) || ((_options$ = options[0]) === null || _options$ === void 0 ? void 0 : _options$.name)), /*#__PURE__*/React__default.createElement(Popover, {
1781
- open: open,
1782
- anchorEl: anchor,
1783
- anchorOrigin: {
1784
- vertical: "top",
1785
- horizontal: "left"
1786
- },
1787
- transformOrigin: {
1788
- vertical: "top",
1789
- horizontal: "left"
1790
- },
1791
- onClose: function onClose() {
1792
- setAnchor(null);
1793
- },
1794
- PaperProps: {
1795
- sx: {
1796
- width: anchor === null || anchor === void 0 ? void 0 : anchor.getBoundingClientRect().width,
1797
- backgroundColor: "#2C323380",
1798
- borderRadius: "18px",
1799
- padding: "35px 0 0 0",
1800
- boxSizing: "border-box",
1801
- maxHeight: "160px",
1802
- overflowY: "hidden"
1803
- }
1804
- }
1805
- }, /*#__PURE__*/React__default.createElement(Stack, {
1806
- sx: {
1807
- maxHeight: "120px",
1808
- overflowY: "scroll"
1809
- }
1810
- }, options === null || options === void 0 ? void 0 : options.map(function (option) {
1811
- return /*#__PURE__*/React__default.createElement(Stack, {
1812
- direction: "row",
1813
- sx: {
1814
- boxSizing: "border-box",
1815
- justifyContent: "space-between",
1816
- alignItems: "center",
1817
- width: "100%",
1818
- height: "100%",
1819
- padding: "6px 5px 6px 10px",
1820
- cursor: "pointer",
1821
- transition: "0.3s",
1822
- "&:hover": {
1823
- backgroundColor: "#474D4F80"
1824
- },
1825
- "&:hover #added-to-content-icon": {
1826
- display: option !== null && option !== void 0 && option.added ? "none" : "block",
1827
- opacity: "1"
1828
- },
1829
- "&:hover #remove-from-content-icon": {
1830
- display: option !== null && option !== void 0 && option.added ? "block" : "none",
1831
- opacity: option !== null && option !== void 0 && option.added ? "1" : "0"
1832
- }
1833
- },
1834
- onClick: function onClick() {
1835
- if (onOptionClicked) onOptionClicked(option);
1836
- setAnchor(null);
1837
- }
1838
- }, /*#__PURE__*/React__default.createElement(Text, {
1839
- sx: {
1840
- fontSize: "14px",
1841
- fontWeight: "400"
1842
- }
1843
- }, option.name), /*#__PURE__*/React__default.createElement(CheckRounded, {
1844
- id: "added-to-content-icon",
1845
- sx: {
1846
- transition: "0.3s",
1847
- opacity: option.added ? "1" : "0"
1848
- }
1849
- }), /*#__PURE__*/React__default.createElement(CloseRounded, {
1850
- id: "remove-from-content-icon",
1851
- sx: {
1852
- transition: "0.3s",
1853
- display: "none",
1854
- opacity: "0"
1855
- }
1856
- }));
1857
- }))));
1858
- };
1859
-
1860
- var AddContentButton = function AddContentButton(_ref2) {
1861
- var _item$whitelistContex2, _item$channelPointsCo2, _item$walkOnContext2, _item$discordContext2;
1862
-
1863
- var item = _ref2.item,
1864
- hovering = _ref2.hovering,
1865
- hoveringAddTo = _ref2.hoveringAddTo,
1866
- setHoveringAddTo = _ref2.setHoveringAddTo,
1867
- openPremiumModal = _ref2.openPremiumModal,
1868
- onOptionClicked = _ref2.onOptionClicked,
1869
- onPlusClick = _ref2.onPlusClick,
1870
- selectedOption = _ref2.selectedOption,
1871
- isUnownedPremium = _ref2.isUnownedPremium;
1872
- var added = false;
1873
-
1874
- 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") {
1875
- added = true;
1876
- } 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") {
1877
- added = true;
1878
- } 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") {
1879
- added = true;
1880
- } 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") {
1881
- added = true;
1882
- }
1883
-
1884
- return /*#__PURE__*/React__default.createElement(Stack, {
1885
- direction: "row",
1886
- width: hoveringAddTo ? "100%" : "60%",
1887
- sx: {
1888
- justifyContent: "end",
1889
- transition: "0.5s",
1890
- boxSizing: "border-box",
1891
- opacity: hovering ? "1" : "0"
1892
- },
1893
- onMouseLeave: function onMouseLeave() {
1894
- setHoveringAddTo(false);
1895
- }
1896
- }, /*#__PURE__*/React__default.createElement(AddContentDropdown, {
1897
- item: item,
1898
- active: hoveringAddTo,
1899
- onOptionClicked: onOptionClicked,
1900
- selectedOption: selectedOption
1901
- }), isUnownedPremium ? /*#__PURE__*/React__default.createElement(IconButton, {
1902
- sx: {
1903
- width: "30px",
1904
- height: "30px",
1905
- backgroundColor: "white.override",
1906
- "&:hover .open-lock-icon": {
1907
- display: "flex !important",
1908
- opacity: "1 !important"
1909
- },
1910
- "&:hover .lock-icon": {
1911
- display: "none !important",
1912
- opacity: "0 !important"
1913
- },
1914
- "&:hover": {
1915
- backgroundColor: "grey7.main"
1916
- }
1917
- },
1918
- onClick: function onClick(e) {
1919
- e.stopPropagation();
1920
- openPremiumModal();
1921
- }
1922
- }, /*#__PURE__*/React__default.createElement(LockRoundedIcon, {
1923
- className: "lock-icon",
1924
- sx: {
1925
- transition: "0.3s",
1926
- color: "notBlack.override",
1927
- display: "flex",
1928
- opacity: "1",
1929
- fontSize: "17px"
1930
- }
1931
- }), /*#__PURE__*/React__default.createElement("div", {
1932
- className: "open-lock-icon",
1933
- style: {
1934
- display: "none",
1935
- opacity: "0"
1936
- }
1937
- }, /*#__PURE__*/React__default.createElement(OpenLockIcon, {
1938
- sx: {
1939
- transition: "0.3s",
1940
- color: "notBlack.override",
1941
- fontSize: "17px"
1942
- }
1943
- }))) : /*#__PURE__*/React__default.createElement(IconButton, {
1944
- sx: {
1945
- width: "30px",
1946
- height: "30px",
1947
- backgroundColor: "white.override",
1948
- "&:hover": {
1949
- backgroundColor: "grey7.main"
1950
- }
1951
- },
1952
- onMouseEnter: function onMouseEnter(e) {
1953
- e.stopPropagation();
1954
- setHoveringAddTo(true);
1955
- },
1956
- onClick: function onClick() {
1957
- return onPlusClick(added);
1958
- }
1959
- }, /*#__PURE__*/React__default.createElement(AddRoundedIcon, {
1960
- sx: {
1961
- transition: "0.3s",
1962
- color: "notBlack.override",
1963
- transform: added && "rotate(45deg)"
1964
- }
1965
- })));
1966
- };
1708
+ }); // const AddContentDropdown = ({
1709
+ // item,
1710
+ // active,
1711
+ // onOptionClicked,
1712
+ // selectedOption,
1713
+ // }) => {
1714
+ // const options = [
1715
+ // {
1716
+ // name: "Channel Points",
1717
+ // value: "CHANNEL_POINTS",
1718
+ // added: item?.channelPointsContext?._id,
1719
+ // },
1720
+ // { name: "Bits", value: "BITS", added: item?.whitelistContext?._id },
1721
+ // { name: "WalkOn", value: "WALK_ON", added: item?.walkOnContext?._id },
1722
+ // { name: "Discord", value: "DISCORD", added: item?.discordContext?._id },
1723
+ // {
1724
+ // name: "Sound Emotes",
1725
+ // value: "SOUND_EMOTES",
1726
+ // added: item?.soundEmotesContext?._id,
1727
+ // },
1728
+ // {
1729
+ // name: "Add To Group",
1730
+ // value: "ADD_TO_GROUP",
1731
+ // added: false,
1732
+ // },
1733
+ // {
1734
+ // name: "Suggest To...",
1735
+ // value: "SUGGEST",
1736
+ // added: false,
1737
+ // },
1738
+ // ];
1739
+ // const anchorRef = useRef(null);
1740
+ // const [anchor, setAnchor] = useState(null);
1741
+ // const open = Boolean(anchor);
1742
+ // return (
1743
+ // <>
1744
+ // <Button
1745
+ // ref={anchorRef}
1746
+ // color="whiteOverride"
1747
+ // variant="outlined"
1748
+ // onClick={(e) => {
1749
+ // if (active) setAnchor(anchorRef?.current);
1750
+ // }}
1751
+ // sx={{
1752
+ // width: "100%",
1753
+ // height: "30px",
1754
+ // transition: "0.3s",
1755
+ // cursor: active ? "pointer" : "default",
1756
+ // justifyContent: "space-between",
1757
+ // marginRight: "10px",
1758
+ // backgroundColor: "#2C323380",
1759
+ // opacity: active ? "1" : "0",
1760
+ // whiteSpace: "nowrap",
1761
+ // "&:hover": {
1762
+ // backgroundColor: "grey3.main",
1763
+ // },
1764
+ // }}
1765
+ // endIcon={
1766
+ // <ArrowDropDownRoundedIcon sx={{ pointerEvents: "none" }} />
1767
+ // }
1768
+ // >
1769
+ // {selectedOption?.name || options[0]?.name}
1770
+ // </Button>
1771
+ // <Popover
1772
+ // open={open}
1773
+ // anchorEl={anchor}
1774
+ // anchorOrigin={{
1775
+ // vertical: "top",
1776
+ // horizontal: "left",
1777
+ // }}
1778
+ // transformOrigin={{
1779
+ // vertical: "top",
1780
+ // horizontal: "left",
1781
+ // }}
1782
+ // onClose={() => {
1783
+ // setAnchor(null);
1784
+ // }}
1785
+ // PaperProps={{
1786
+ // sx: {
1787
+ // width: anchor?.getBoundingClientRect().width,
1788
+ // backgroundColor: "#2C323380",
1789
+ // borderRadius: "18px",
1790
+ // padding: "35px 0 0 0",
1791
+ // boxSizing: "border-box",
1792
+ // maxHeight: "160px",
1793
+ // overflowY: "hidden",
1794
+ // },
1795
+ // }}
1796
+ // >
1797
+ // <Stack sx={{ maxHeight: "120px", overflowY: "scroll" }}>
1798
+ // {options?.map((option) => (
1799
+ // <Stack
1800
+ // direction="row"
1801
+ // sx={{
1802
+ // boxSizing: "border-box",
1803
+ // justifyContent: "space-between",
1804
+ // alignItems: "center",
1805
+ // width: "100%",
1806
+ // height: "100%",
1807
+ // padding: "6px 5px 6px 10px",
1808
+ // cursor: "pointer",
1809
+ // transition: "0.3s",
1810
+ // "&:hover": {
1811
+ // backgroundColor: "#474D4F80",
1812
+ // },
1813
+ // "&:hover #added-to-content-icon": {
1814
+ // display: option?.added ? "none" : "block",
1815
+ // opacity: "1",
1816
+ // },
1817
+ // "&:hover #remove-from-content-icon": {
1818
+ // display: option?.added ? "block" : "none",
1819
+ // opacity: option?.added ? "1" : "0",
1820
+ // },
1821
+ // }}
1822
+ // onClick={() => {
1823
+ // if (onOptionClicked) onOptionClicked(option);
1824
+ // setAnchor(null);
1825
+ // }}
1826
+ // >
1827
+ // <Text
1828
+ // sx={{
1829
+ // fontSize: "14px",
1830
+ // fontWeight: "400",
1831
+ // }}
1832
+ // >
1833
+ // {option.name}
1834
+ // </Text>
1835
+ // <CheckRounded
1836
+ // id="added-to-content-icon"
1837
+ // sx={{
1838
+ // transition: "0.3s",
1839
+ // opacity: option.added ? "1" : "0",
1840
+ // }}
1841
+ // />
1842
+ // <CloseRounded
1843
+ // id="remove-from-content-icon"
1844
+ // sx={{
1845
+ // transition: "0.3s",
1846
+ // display: "none",
1847
+ // opacity: "0",
1848
+ // }}
1849
+ // />
1850
+ // </Stack>
1851
+ // ))}
1852
+ // </Stack>
1853
+ // </Popover>
1854
+ // </>
1855
+ // );
1856
+ // };
1857
+ // const AddContentButton = ({
1858
+ // item,
1859
+ // hovering,
1860
+ // hoveringAddTo,
1861
+ // setHoveringAddTo,
1862
+ // openPremiumModal,
1863
+ // onOptionClicked,
1864
+ // onPlusClick,
1865
+ // selectedOption,
1866
+ // isUnownedPremium,
1867
+ // }) => {
1868
+ // let added = false;
1869
+ // if (item?.whitelistContext?._id && selectedOption?.value === "BITS") {
1870
+ // added = true;
1871
+ // } else if (
1872
+ // item?.channelPointsContext?._id &&
1873
+ // selectedOption?.value === "CHANNEL_POINTS"
1874
+ // ) {
1875
+ // added = true;
1876
+ // } else if (
1877
+ // item?.walkOnContext?._id &&
1878
+ // selectedOption?.value === "WALK_ON"
1879
+ // ) {
1880
+ // added = true;
1881
+ // } else if (
1882
+ // item?.discordContext?._id &&
1883
+ // selectedOption?.value === "DISCORD"
1884
+ // ) {
1885
+ // added = true;
1886
+ // }
1887
+ // return (
1888
+ // <Stack
1889
+ // direction="row"
1890
+ // width={hoveringAddTo ? "100%" : "60%"}
1891
+ // sx={{
1892
+ // justifyContent: "end",
1893
+ // transition: "0.5s",
1894
+ // boxSizing: "border-box",
1895
+ // opacity: hovering ? "1" : "0",
1896
+ // }}
1897
+ // onMouseLeave={() => {
1898
+ // setHoveringAddTo(false);
1899
+ // }}
1900
+ // >
1901
+ // <AddContentDropdown
1902
+ // item={item}
1903
+ // active={hoveringAddTo}
1904
+ // onOptionClicked={onOptionClicked}
1905
+ // selectedOption={selectedOption}
1906
+ // />
1907
+ // {isUnownedPremium ? (
1908
+ // <IconButton
1909
+ // sx={{
1910
+ // width: "30px",
1911
+ // height: "30px",
1912
+ // backgroundColor: "white.override",
1913
+ // "&:hover .open-lock-icon": {
1914
+ // display: "flex !important",
1915
+ // opacity: "1 !important",
1916
+ // },
1917
+ // "&:hover .lock-icon": {
1918
+ // display: "none !important",
1919
+ // opacity: "0 !important",
1920
+ // },
1921
+ // "&:hover": {
1922
+ // backgroundColor: "grey7.main",
1923
+ // },
1924
+ // }}
1925
+ // onClick={(e) => {
1926
+ // e.stopPropagation();
1927
+ // openPremiumModal();
1928
+ // }}
1929
+ // >
1930
+ // <LockRoundedIcon
1931
+ // className="lock-icon"
1932
+ // sx={{
1933
+ // transition: "0.3s",
1934
+ // color: "notBlack.override",
1935
+ // display: "flex",
1936
+ // opacity: "1",
1937
+ // fontSize: "17px",
1938
+ // }}
1939
+ // />
1940
+ // <div
1941
+ // className="open-lock-icon"
1942
+ // style={{ display: "none", opacity: "0" }}
1943
+ // >
1944
+ // <OpenLockIcon
1945
+ // sx={{
1946
+ // transition: "0.3s",
1947
+ // color: "notBlack.override",
1948
+ // fontSize: "17px",
1949
+ // }}
1950
+ // />
1951
+ // </div>
1952
+ // </IconButton>
1953
+ // ) : (
1954
+ // <IconButton
1955
+ // sx={{
1956
+ // width: "30px",
1957
+ // height: "30px",
1958
+ // backgroundColor: "white.override",
1959
+ // "&:hover": {
1960
+ // backgroundColor: "grey7.main",
1961
+ // },
1962
+ // }}
1963
+ // onMouseEnter={(e) => {
1964
+ // e.stopPropagation();
1965
+ // setHoveringAddTo(true);
1966
+ // }}
1967
+ // onClick={() => onPlusClick(added)}
1968
+ // >
1969
+ // <AddRoundedIcon
1970
+ // sx={{
1971
+ // transition: "0.3s",
1972
+ // color: "notBlack.override",
1973
+ // transform: added && "rotate(45deg)",
1974
+ // }}
1975
+ // />
1976
+ // </IconButton>
1977
+ // )}
1978
+ // </Stack>
1979
+ // );
1980
+ // };
1967
1981
 
1968
- var FavoriteIconWithCounter = function FavoriteIconWithCounter(_ref3) {
1969
- var saved = _ref3.saved,
1970
- count = _ref3.count,
1971
- onClick = _ref3.onClick;
1982
+ var FavoriteIconWithCounter = function FavoriteIconWithCounter(_ref) {
1983
+ var saved = _ref.saved,
1984
+ count = _ref.count,
1985
+ onClick = _ref.onClick;
1972
1986
  var formatter = Intl.NumberFormat("en", {
1973
1987
  notation: "compact"
1974
1988
  });
@@ -2004,36 +2018,36 @@ var FavoriteIconWithCounter = function FavoriteIconWithCounter(_ref3) {
2004
2018
  }
2005
2019
  }, savedCount));
2006
2020
  };
2007
- var AddedToIcons = function AddedToIcons(_ref4) {
2008
- var _item$channelPointsCo3, _item$whitelistContex3, _item$walkOnContext3;
2021
+ var AddedToIcons = function AddedToIcons(_ref2) {
2022
+ var _item$channelPointsCo, _item$whitelistContex, _item$walkOnContext;
2009
2023
 
2010
- var item = _ref4.item,
2011
- hovering = _ref4.hovering,
2012
- _ref4$hide = _ref4.hide,
2013
- hide = _ref4$hide === void 0 ? false : _ref4$hide;
2024
+ var item = _ref2.item,
2025
+ hovering = _ref2.hovering,
2026
+ _ref2$hide = _ref2.hide,
2027
+ hide = _ref2$hide === void 0 ? false : _ref2$hide;
2014
2028
  return /*#__PURE__*/React__default.createElement(Stack, {
2015
2029
  direction: "row",
2016
2030
  sx: {
2017
2031
  transition: "0.3s",
2018
2032
  opacity: hide ? "0" : hovering ? "1" : "0"
2019
2033
  }
2020
- }, (item === null || item === void 0 ? void 0 : (_item$channelPointsCo3 = item.channelPointsContext) === null || _item$channelPointsCo3 === void 0 ? void 0 : _item$channelPointsCo3._id) && /*#__PURE__*/React__default.createElement(ChannelPointsIcon, {
2034
+ }, (item === null || item === void 0 ? void 0 : (_item$channelPointsCo = item.channelPointsContext) === null || _item$channelPointsCo === void 0 ? void 0 : _item$channelPointsCo._id) && /*#__PURE__*/React__default.createElement(ChannelPointsIcon, {
2021
2035
  sx: {
2022
2036
  fontSize: "15px"
2023
2037
  }
2024
- }), (item === null || item === void 0 ? void 0 : (_item$whitelistContex3 = item.whitelistContext) === null || _item$whitelistContex3 === void 0 ? void 0 : _item$whitelistContex3._id) && /*#__PURE__*/React__default.createElement(TwitchBitIcon, {
2038
+ }), (item === null || item === void 0 ? void 0 : (_item$whitelistContex = item.whitelistContext) === null || _item$whitelistContex === void 0 ? void 0 : _item$whitelistContex._id) && /*#__PURE__*/React__default.createElement(TwitchBitIcon, {
2025
2039
  sx: {
2026
2040
  fontSize: "15px"
2027
2041
  }
2028
- }), (item === null || item === void 0 ? void 0 : (_item$walkOnContext3 = item.walkOnContext) === null || _item$walkOnContext3 === void 0 ? void 0 : _item$walkOnContext3._id) && /*#__PURE__*/React__default.createElement(WalkonIcon, {
2042
+ }), (item === null || item === void 0 ? void 0 : (_item$walkOnContext = item.walkOnContext) === null || _item$walkOnContext === void 0 ? void 0 : _item$walkOnContext._id) && /*#__PURE__*/React__default.createElement(WalkonIcon, {
2029
2043
  sx: {
2030
2044
  fontSize: "15px"
2031
2045
  }
2032
2046
  }));
2033
2047
  };
2034
2048
 
2035
- var RatingInfo = function RatingInfo(_ref5) {
2036
- var rating = _ref5.rating;
2049
+ var RatingInfo = function RatingInfo(_ref3) {
2050
+ var rating = _ref3.rating;
2037
2051
 
2038
2052
  switch (rating) {
2039
2053
  case "G":
@@ -2206,22 +2220,22 @@ var RatingInfo = function RatingInfo(_ref5) {
2206
2220
  // };
2207
2221
 
2208
2222
 
2209
- var ReportedWarning = function ReportedWarning(_ref6) {
2210
- var showWarning = _ref6.showWarning,
2211
- blacklisted = _ref6.blacklisted,
2212
- saved = _ref6.saved,
2213
- count = _ref6.count,
2214
- onClick = _ref6.onClick;
2223
+ var ReportedWarning = function ReportedWarning(_ref4) {
2224
+ var showWarning = _ref4.showWarning,
2225
+ blacklisted = _ref4.blacklisted,
2226
+ saved = _ref4.saved,
2227
+ count = _ref4.count,
2228
+ onClick = _ref4.onClick;
2215
2229
 
2216
- var _useState3 = useState(showWarning),
2217
- _useState4 = _slicedToArray(_useState3, 2),
2218
- show = _useState4[0],
2219
- setShow = _useState4[1];
2230
+ var _useState = useState(showWarning),
2231
+ _useState2 = _slicedToArray(_useState, 2),
2232
+ show = _useState2[0],
2233
+ setShow = _useState2[1];
2220
2234
 
2221
- var _useState5 = useState(false),
2222
- _useState6 = _slicedToArray(_useState5, 2),
2223
- hovering = _useState6[0],
2224
- setHovering = _useState6[1];
2235
+ var _useState3 = useState(false),
2236
+ _useState4 = _slicedToArray(_useState3, 2),
2237
+ hovering = _useState4[0],
2238
+ setHovering = _useState4[1];
2225
2239
 
2226
2240
  var renderInfo = function renderInfo() {
2227
2241
  if (blacklisted) {
@@ -2314,17 +2328,18 @@ var ReportedWarning = function ReportedWarning(_ref6) {
2314
2328
  })), renderInfo());
2315
2329
  };
2316
2330
 
2317
- var BlerpTopRow = function BlerpTopRow(_ref7) {
2318
- var bite = _ref7.bite,
2319
- hovering = _ref7.hovering,
2320
- onPlusClick = _ref7.onPlusClick,
2321
- _onOptionClicked = _ref7.onOptionClicked,
2322
- selectedOption = _ref7.selectedOption;
2331
+ var BlerpTopRow = function BlerpTopRow(_ref5) {
2332
+ var bite = _ref5.bite,
2333
+ hovering = _ref5.hovering,
2334
+ onPlusClick = _ref5.onPlusClick,
2335
+ _onOptionClicked = _ref5.onOptionClicked,
2336
+ selectedOption = _ref5.selectedOption,
2337
+ renderAddContentButton = _ref5.renderAddContentButton;
2323
2338
 
2324
- var _useState7 = useState(false),
2325
- _useState8 = _slicedToArray(_useState7, 2),
2326
- hoveringAddTo = _useState8[0],
2327
- setHoveringAddTo = _useState8[1];
2339
+ var _useState5 = useState(false),
2340
+ _useState6 = _slicedToArray(_useState5, 2),
2341
+ hoveringAddTo = _useState6[0],
2342
+ setHoveringAddTo = _useState6[1];
2328
2343
 
2329
2344
  return /*#__PURE__*/React__default.createElement(Stack, {
2330
2345
  direction: "row",
@@ -2346,7 +2361,7 @@ var BlerpTopRow = function BlerpTopRow(_ref7) {
2346
2361
  }), /*#__PURE__*/React__default.createElement(AddedToIcons, {
2347
2362
  item: bite,
2348
2363
  hovering: hovering
2349
- })), /*#__PURE__*/React__default.createElement(AddContentButton, {
2364
+ })), renderAddContentButton({
2350
2365
  item: bite,
2351
2366
  hovering: hovering,
2352
2367
  hoveringAddTo: hoveringAddTo,
@@ -2359,46 +2374,50 @@ var BlerpTopRow = function BlerpTopRow(_ref7) {
2359
2374
  }));
2360
2375
  };
2361
2376
 
2362
- var NewBlerp$1 = function NewBlerp(_ref8) {
2377
+ var NewBlerp$1 = function NewBlerp(_ref6) {
2363
2378
  var _bite$blacklistContex, _bite$reportedContent, _bite$blacklistContex2, _bite$image, _bite$image$original;
2364
2379
 
2365
- var Waveform = _ref8.Waveform,
2366
- bite = _ref8.bite,
2367
- playState = _ref8.playState,
2368
- play = _ref8.play,
2369
- _ref8$onTitleClick = _ref8.onTitleClick,
2370
- onTitleClick = _ref8$onTitleClick === void 0 ? function () {
2380
+ var Waveform = _ref6.Waveform,
2381
+ bite = _ref6.bite,
2382
+ playState = _ref6.playState,
2383
+ play = _ref6.play,
2384
+ _ref6$onTitleClick = _ref6.onTitleClick,
2385
+ onTitleClick = _ref6$onTitleClick === void 0 ? function () {
2371
2386
  console.log("onTitleClick");
2372
- } : _ref8$onTitleClick,
2373
- _ref8$onUsernameClick = _ref8.onUsernameClick,
2374
- onUsernameClick = _ref8$onUsernameClick === void 0 ? function () {
2387
+ } : _ref6$onTitleClick,
2388
+ _ref6$onUsernameClick = _ref6.onUsernameClick,
2389
+ onUsernameClick = _ref6$onUsernameClick === void 0 ? function () {
2375
2390
  console.log("onUsernameClick");
2376
- } : _ref8$onUsernameClick,
2377
- _ref8$onFavoriteClick = _ref8.onFavoriteClick,
2378
- onFavoriteClick = _ref8$onFavoriteClick === void 0 ? function () {
2391
+ } : _ref6$onUsernameClick,
2392
+ _ref6$onFavoriteClick = _ref6.onFavoriteClick,
2393
+ onFavoriteClick = _ref6$onFavoriteClick === void 0 ? function () {
2379
2394
  console.log("onFavoriteClick");
2380
- } : _ref8$onFavoriteClick,
2381
- _ref8$onAddToPlace = _ref8.onAddToPlace,
2382
- onAddToPlace = _ref8$onAddToPlace === void 0 ? function () {
2395
+ } : _ref6$onFavoriteClick,
2396
+ _ref6$onAddToPlace = _ref6.onAddToPlace,
2397
+ onAddToPlace = _ref6$onAddToPlace === void 0 ? function () {
2383
2398
  console.log("onAddToPlace");
2384
- } : _ref8$onAddToPlace,
2385
- _ref8$onOptionClicked = _ref8.onOptionClicked,
2386
- onOptionClicked = _ref8$onOptionClicked === void 0 ? function () {
2399
+ } : _ref6$onAddToPlace,
2400
+ _ref6$onOptionClicked = _ref6.onOptionClicked,
2401
+ onOptionClicked = _ref6$onOptionClicked === void 0 ? function () {
2387
2402
  console.log("onAddToPlace");
2388
- } : _ref8$onOptionClicked,
2389
- selectedOption = _ref8.selectedOption,
2390
- _ref8$trending = _ref8.trending,
2391
- trending = _ref8$trending === void 0 ? false : _ref8$trending;
2403
+ } : _ref6$onOptionClicked,
2404
+ selectedOption = _ref6.selectedOption,
2405
+ _ref6$trending = _ref6.trending,
2406
+ trending = _ref6$trending === void 0 ? false : _ref6$trending,
2407
+ _ref6$renderAddConten = _ref6.renderAddContentButton,
2408
+ renderAddContentButton = _ref6$renderAddConten === void 0 ? function () {
2409
+ return /*#__PURE__*/React__default.createElement(React__default.Fragment, null);
2410
+ } : _ref6$renderAddConten;
2411
+
2412
+ var _useState7 = useState(false),
2413
+ _useState8 = _slicedToArray(_useState7, 2),
2414
+ hovering = _useState8[0],
2415
+ setHovering = _useState8[1];
2392
2416
 
2393
2417
  var _useState9 = useState(false),
2394
2418
  _useState10 = _slicedToArray(_useState9, 2),
2395
- hovering = _useState10[0],
2396
- setHovering = _useState10[1];
2397
-
2398
- var _useState11 = useState(false),
2399
- _useState12 = _slicedToArray(_useState11, 2),
2400
- addedToPlace = _useState12[0],
2401
- setAddedToPlace = _useState12[1];
2419
+ addedToPlace = _useState10[0],
2420
+ setAddedToPlace = _useState10[1];
2402
2421
 
2403
2422
  var renderPlayStateIcon = function renderPlayStateIcon() {
2404
2423
  if (playState === "played") {
@@ -2537,7 +2556,8 @@ var NewBlerp$1 = function NewBlerp(_ref8) {
2537
2556
  onOptionClicked: onOptionClicked,
2538
2557
  hovering: hovering,
2539
2558
  onPlusClick: handleAddToPlace,
2540
- selectedOption: selectedOption
2559
+ selectedOption: selectedOption,
2560
+ renderAddContentButton: renderAddContentButton
2541
2561
  }), /*#__PURE__*/React__default.createElement(Stack, {
2542
2562
  sx: {
2543
2563
  transition: "0.3s",
@@ -6098,7 +6118,7 @@ var SnackbarProvider = function SnackbarProvider(props) {
6098
6118
  sx: {
6099
6119
  width: "100%",
6100
6120
  "& svg": {
6101
- color: "white.override"
6121
+ color: "inherit"
6102
6122
  }
6103
6123
  }
6104
6124
  }, snackbarValues.message)), props.children);