@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 +352 -333
- package/dist/index.esm.js +353 -333
- package/dist/index.umd.js +353 -334
- package/package.json +1 -1
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,
|
|
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
|
|
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
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
}
|
|
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(
|
|
1969
|
-
var saved =
|
|
1970
|
-
count =
|
|
1971
|
-
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(
|
|
2008
|
-
var _item$
|
|
2021
|
+
var AddedToIcons = function AddedToIcons(_ref2) {
|
|
2022
|
+
var _item$channelPointsCo, _item$whitelistContex, _item$walkOnContext;
|
|
2009
2023
|
|
|
2010
|
-
var item =
|
|
2011
|
-
hovering =
|
|
2012
|
-
|
|
2013
|
-
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$
|
|
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$
|
|
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$
|
|
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(
|
|
2036
|
-
var 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(
|
|
2210
|
-
var showWarning =
|
|
2211
|
-
blacklisted =
|
|
2212
|
-
saved =
|
|
2213
|
-
count =
|
|
2214
|
-
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
|
|
2217
|
-
|
|
2218
|
-
show =
|
|
2219
|
-
setShow =
|
|
2230
|
+
var _useState = useState(showWarning),
|
|
2231
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
2232
|
+
show = _useState2[0],
|
|
2233
|
+
setShow = _useState2[1];
|
|
2220
2234
|
|
|
2221
|
-
var
|
|
2222
|
-
|
|
2223
|
-
hovering =
|
|
2224
|
-
setHovering =
|
|
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(
|
|
2318
|
-
var bite =
|
|
2319
|
-
hovering =
|
|
2320
|
-
onPlusClick =
|
|
2321
|
-
_onOptionClicked =
|
|
2322
|
-
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
|
|
2325
|
-
|
|
2326
|
-
hoveringAddTo =
|
|
2327
|
-
setHoveringAddTo =
|
|
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
|
-
})),
|
|
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(
|
|
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 =
|
|
2366
|
-
bite =
|
|
2367
|
-
playState =
|
|
2368
|
-
play =
|
|
2369
|
-
|
|
2370
|
-
onTitleClick =
|
|
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
|
-
} :
|
|
2373
|
-
|
|
2374
|
-
onUsernameClick =
|
|
2387
|
+
} : _ref6$onTitleClick,
|
|
2388
|
+
_ref6$onUsernameClick = _ref6.onUsernameClick,
|
|
2389
|
+
onUsernameClick = _ref6$onUsernameClick === void 0 ? function () {
|
|
2375
2390
|
console.log("onUsernameClick");
|
|
2376
|
-
} :
|
|
2377
|
-
|
|
2378
|
-
onFavoriteClick =
|
|
2391
|
+
} : _ref6$onUsernameClick,
|
|
2392
|
+
_ref6$onFavoriteClick = _ref6.onFavoriteClick,
|
|
2393
|
+
onFavoriteClick = _ref6$onFavoriteClick === void 0 ? function () {
|
|
2379
2394
|
console.log("onFavoriteClick");
|
|
2380
|
-
} :
|
|
2381
|
-
|
|
2382
|
-
onAddToPlace =
|
|
2395
|
+
} : _ref6$onFavoriteClick,
|
|
2396
|
+
_ref6$onAddToPlace = _ref6.onAddToPlace,
|
|
2397
|
+
onAddToPlace = _ref6$onAddToPlace === void 0 ? function () {
|
|
2383
2398
|
console.log("onAddToPlace");
|
|
2384
|
-
} :
|
|
2385
|
-
|
|
2386
|
-
onOptionClicked =
|
|
2399
|
+
} : _ref6$onAddToPlace,
|
|
2400
|
+
_ref6$onOptionClicked = _ref6.onOptionClicked,
|
|
2401
|
+
onOptionClicked = _ref6$onOptionClicked === void 0 ? function () {
|
|
2387
2402
|
console.log("onAddToPlace");
|
|
2388
|
-
} :
|
|
2389
|
-
selectedOption =
|
|
2390
|
-
|
|
2391
|
-
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
|
-
|
|
2396
|
-
|
|
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: "
|
|
6121
|
+
color: "inherit"
|
|
6102
6122
|
}
|
|
6103
6123
|
}
|
|
6104
6124
|
}, snackbarValues.message)), props.children);
|