@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.umd.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
2
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@mui/material'), require('@babel/runtime/helpers/slicedToArray'), require('prop-types'), require('react'), require('react-color-extractor'), require('styled-components'), require('@babel/runtime/helpers/taggedTemplateLiteral'), require('@mui/icons-material'), require('@mui/icons-material/BookmarkOutlined'), require('@mui/icons-material/LockRounded'), require('@mui/icons-material/AddRounded'), require('@mui/icons-material/ArrowDropDownRounded'), require('@mui/icons-material/DoNotDisturbRounded'), require('@mui/icons-material/Favorite'), require('@mui/icons-material/FavoriteBorder'), require('@mui/icons-material/PauseRounded'), require('@mui/icons-material/PlayArrowRounded'), require('@mui/icons-material/WarningRounded'), require('@babel/runtime/helpers/defineProperty'), require('@babel/runtime/helpers/asyncToGenerator'), require('@babel/runtime/regenerator'), require('@mui/icons-material/BookmarkAddOutlined'), require('@mui/icons-material/MoreHorizRounded'), require('react-palette'), require('@babel/runtime/helpers/typeof'), require('@mui/icons-material/KeyboardArrowRightRounded'), require('@mui/icons-material/KeyboardArrowDownRounded'), require('@mui/icons-material/CloseRounded'), require('@mui/icons-material/FileUploadRounded'), require('@babel/runtime/helpers/extends'), require('react-avatar-editor'), require('react-dropzone'), require('@mui/icons-material/InsertPhotoRounded'), require('@mui/material/styles'), require('@mui/material/Slide'), require('@mui/material/Fade'), require('react-lottie'), require('@mui/icons-material/Facebook'), require('@mui/icons-material/Instagram'), require('@mui/icons-material/ModeEditRounded'), require('@mui/icons-material/PersonAddRounded'), require('@mui/icons-material/Pinterest'), require('@mui/icons-material/Twitter'), require('@mui/icons-material/YouTube'), require('@mui/icons-material/PersonRemoveRounded'), require('@babel/runtime/helpers/toConsumableArray'), require('@mui/icons-material/FilterAltRounded'), require('@mui/icons-material/MenuRounded'), require('@mui/icons-material/ViewModuleRounded'), require('@mui/icons-material/SettingsRounded'), require('@mui/icons-material/SortRounded'), require('@mui/icons-material/ChevronRightRounded'), require('@mui/icons-material/PersonRounded'), require('@mui/icons-material/SearchRounded'), require('@mui/icons-material/BookmarkRemoveOutlined'), require('@mui/icons-material/VisibilityOffRounded')) :
|
|
3
3
|
typeof define === 'function' && define.amd ? define(['exports', '@mui/material', '@babel/runtime/helpers/slicedToArray', 'prop-types', 'react', 'react-color-extractor', 'styled-components', '@babel/runtime/helpers/taggedTemplateLiteral', '@mui/icons-material', '@mui/icons-material/BookmarkOutlined', '@mui/icons-material/LockRounded', '@mui/icons-material/AddRounded', '@mui/icons-material/ArrowDropDownRounded', '@mui/icons-material/DoNotDisturbRounded', '@mui/icons-material/Favorite', '@mui/icons-material/FavoriteBorder', '@mui/icons-material/PauseRounded', '@mui/icons-material/PlayArrowRounded', '@mui/icons-material/WarningRounded', '@babel/runtime/helpers/defineProperty', '@babel/runtime/helpers/asyncToGenerator', '@babel/runtime/regenerator', '@mui/icons-material/BookmarkAddOutlined', '@mui/icons-material/MoreHorizRounded', 'react-palette', '@babel/runtime/helpers/typeof', '@mui/icons-material/KeyboardArrowRightRounded', '@mui/icons-material/KeyboardArrowDownRounded', '@mui/icons-material/CloseRounded', '@mui/icons-material/FileUploadRounded', '@babel/runtime/helpers/extends', 'react-avatar-editor', 'react-dropzone', '@mui/icons-material/InsertPhotoRounded', '@mui/material/styles', '@mui/material/Slide', '@mui/material/Fade', 'react-lottie', '@mui/icons-material/Facebook', '@mui/icons-material/Instagram', '@mui/icons-material/ModeEditRounded', '@mui/icons-material/PersonAddRounded', '@mui/icons-material/Pinterest', '@mui/icons-material/Twitter', '@mui/icons-material/YouTube', '@mui/icons-material/PersonRemoveRounded', '@babel/runtime/helpers/toConsumableArray', '@mui/icons-material/FilterAltRounded', '@mui/icons-material/MenuRounded', '@mui/icons-material/ViewModuleRounded', '@mui/icons-material/SettingsRounded', '@mui/icons-material/SortRounded', '@mui/icons-material/ChevronRightRounded', '@mui/icons-material/PersonRounded', '@mui/icons-material/SearchRounded', '@mui/icons-material/BookmarkRemoveOutlined', '@mui/icons-material/VisibilityOffRounded'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global['react-awesome-buttons'] = {}, global.material, global._slicedToArray, global.PropTypes, global.React, global.reactColorExtractor, global.styled, global._taggedTemplateLiteral, global.iconsMaterial, global.BookmarkOutlinedIcon, global.LockRoundedIcon, global.AddRoundedIcon,
|
|
5
|
-
}(this, (function (exports, material, _slicedToArray, PropTypes, React, reactColorExtractor, styled, _taggedTemplateLiteral, iconsMaterial, BookmarkOutlinedIcon, LockRoundedIcon, AddRoundedIcon,
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global['react-awesome-buttons'] = {}, global.material, global._slicedToArray, global.PropTypes, global.React, global.reactColorExtractor, global.styled, global._taggedTemplateLiteral, global.iconsMaterial, global.BookmarkOutlinedIcon, global.LockRoundedIcon, global.AddRoundedIcon, null, global.DoNotDisturbRoundedIcon, global.FavoriteIcon, global.FavoriteBorderIcon, global.PauseRoundedIcon, global.PlayArrowRoundedIcon, global.WarningRoundedIcon, global._defineProperty, global._asyncToGenerator, global._regeneratorRuntime, global.BookmarkAddOutlinedIcon, global.MoreHorizRoundedIcon, global.reactPalette, global._typeof, global.KeyboardArrowRightRoundedIcon, global.KeyboardArrowDownRoundedIcon, global.CloseRoundedIcon, global.FileUploadRoundedIcon, global._extends, global.AvatarEditor, global.Dropzone, global.InsertPhotoRoundedIcon, global.styles, global.Slide, global.Fade, global.Lottie, global.FacebookIcon, global.InstagramIcon, global.ModeEditRoundedIcon, global.PersonAddRoundedIcon, global.PinterestIcon, global.TwitterIcon, global.YouTubeIcon, global.PersonRemoveRoundedIcon, global._toConsumableArray, null, global.MenuRoundedIcon, global.ViewModuleRoundedIcon, null, global.SortRoundedIcon, global.ChevronRightRoundedIcon, global.PersonRoundedIcon, global.SearchRoundedIcon, global.BookmarkRemoveOutlinedIcon, global.VisibilityOffRoundedIcon));
|
|
5
|
+
}(this, (function (exports, material, _slicedToArray, PropTypes, React, reactColorExtractor, styled, _taggedTemplateLiteral, iconsMaterial, BookmarkOutlinedIcon, LockRoundedIcon, AddRoundedIcon, ArrowDropDownRounded, DoNotDisturbRoundedIcon, FavoriteIcon, FavoriteBorderIcon, PauseRoundedIcon, PlayArrowRoundedIcon, WarningRoundedIcon, _defineProperty, _asyncToGenerator, _regeneratorRuntime, BookmarkAddOutlinedIcon, MoreHorizRoundedIcon, reactPalette, _typeof, KeyboardArrowRightRoundedIcon, KeyboardArrowDownRoundedIcon, CloseRoundedIcon, FileUploadRoundedIcon, _extends, AvatarEditor, Dropzone, InsertPhotoRoundedIcon, styles, Slide, Fade, Lottie, FacebookIcon, InstagramIcon, ModeEditRoundedIcon, PersonAddRoundedIcon, PinterestIcon, TwitterIcon, YouTubeIcon, PersonRemoveRoundedIcon, _toConsumableArray, FilterAltRounded, MenuRoundedIcon, ViewModuleRoundedIcon, SettingsRounded, SortRoundedIcon, ChevronRightRoundedIcon, PersonRoundedIcon, SearchRoundedIcon, BookmarkRemoveOutlinedIcon, VisibilityOffRoundedIcon) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
8
|
|
|
@@ -35,7 +35,6 @@
|
|
|
35
35
|
var BookmarkOutlinedIcon__default = /*#__PURE__*/_interopDefaultLegacy(BookmarkOutlinedIcon);
|
|
36
36
|
var LockRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(LockRoundedIcon);
|
|
37
37
|
var AddRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(AddRoundedIcon);
|
|
38
|
-
var ArrowDropDownRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(ArrowDropDownRoundedIcon);
|
|
39
38
|
var DoNotDisturbRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(DoNotDisturbRoundedIcon);
|
|
40
39
|
var FavoriteIcon__default = /*#__PURE__*/_interopDefaultLegacy(FavoriteIcon);
|
|
41
40
|
var FavoriteBorderIcon__default = /*#__PURE__*/_interopDefaultLegacy(FavoriteBorderIcon);
|
|
@@ -1726,270 +1725,284 @@
|
|
|
1726
1725
|
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"])));
|
|
1727
1726
|
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) {
|
|
1728
1727
|
return props.theme.colors.grey7;
|
|
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
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
}
|
|
1728
|
+
}); // const AddContentDropdown = ({
|
|
1729
|
+
// item,
|
|
1730
|
+
// active,
|
|
1731
|
+
// onOptionClicked,
|
|
1732
|
+
// selectedOption,
|
|
1733
|
+
// }) => {
|
|
1734
|
+
// const options = [
|
|
1735
|
+
// {
|
|
1736
|
+
// name: "Channel Points",
|
|
1737
|
+
// value: "CHANNEL_POINTS",
|
|
1738
|
+
// added: item?.channelPointsContext?._id,
|
|
1739
|
+
// },
|
|
1740
|
+
// { name: "Bits", value: "BITS", added: item?.whitelistContext?._id },
|
|
1741
|
+
// { name: "WalkOn", value: "WALK_ON", added: item?.walkOnContext?._id },
|
|
1742
|
+
// { name: "Discord", value: "DISCORD", added: item?.discordContext?._id },
|
|
1743
|
+
// {
|
|
1744
|
+
// name: "Sound Emotes",
|
|
1745
|
+
// value: "SOUND_EMOTES",
|
|
1746
|
+
// added: item?.soundEmotesContext?._id,
|
|
1747
|
+
// },
|
|
1748
|
+
// {
|
|
1749
|
+
// name: "Add To Group",
|
|
1750
|
+
// value: "ADD_TO_GROUP",
|
|
1751
|
+
// added: false,
|
|
1752
|
+
// },
|
|
1753
|
+
// {
|
|
1754
|
+
// name: "Suggest To...",
|
|
1755
|
+
// value: "SUGGEST",
|
|
1756
|
+
// added: false,
|
|
1757
|
+
// },
|
|
1758
|
+
// ];
|
|
1759
|
+
// const anchorRef = useRef(null);
|
|
1760
|
+
// const [anchor, setAnchor] = useState(null);
|
|
1761
|
+
// const open = Boolean(anchor);
|
|
1762
|
+
// return (
|
|
1763
|
+
// <>
|
|
1764
|
+
// <Button
|
|
1765
|
+
// ref={anchorRef}
|
|
1766
|
+
// color="whiteOverride"
|
|
1767
|
+
// variant="outlined"
|
|
1768
|
+
// onClick={(e) => {
|
|
1769
|
+
// if (active) setAnchor(anchorRef?.current);
|
|
1770
|
+
// }}
|
|
1771
|
+
// sx={{
|
|
1772
|
+
// width: "100%",
|
|
1773
|
+
// height: "30px",
|
|
1774
|
+
// transition: "0.3s",
|
|
1775
|
+
// cursor: active ? "pointer" : "default",
|
|
1776
|
+
// justifyContent: "space-between",
|
|
1777
|
+
// marginRight: "10px",
|
|
1778
|
+
// backgroundColor: "#2C323380",
|
|
1779
|
+
// opacity: active ? "1" : "0",
|
|
1780
|
+
// whiteSpace: "nowrap",
|
|
1781
|
+
// "&:hover": {
|
|
1782
|
+
// backgroundColor: "grey3.main",
|
|
1783
|
+
// },
|
|
1784
|
+
// }}
|
|
1785
|
+
// endIcon={
|
|
1786
|
+
// <ArrowDropDownRoundedIcon sx={{ pointerEvents: "none" }} />
|
|
1787
|
+
// }
|
|
1788
|
+
// >
|
|
1789
|
+
// {selectedOption?.name || options[0]?.name}
|
|
1790
|
+
// </Button>
|
|
1791
|
+
// <Popover
|
|
1792
|
+
// open={open}
|
|
1793
|
+
// anchorEl={anchor}
|
|
1794
|
+
// anchorOrigin={{
|
|
1795
|
+
// vertical: "top",
|
|
1796
|
+
// horizontal: "left",
|
|
1797
|
+
// }}
|
|
1798
|
+
// transformOrigin={{
|
|
1799
|
+
// vertical: "top",
|
|
1800
|
+
// horizontal: "left",
|
|
1801
|
+
// }}
|
|
1802
|
+
// onClose={() => {
|
|
1803
|
+
// setAnchor(null);
|
|
1804
|
+
// }}
|
|
1805
|
+
// PaperProps={{
|
|
1806
|
+
// sx: {
|
|
1807
|
+
// width: anchor?.getBoundingClientRect().width,
|
|
1808
|
+
// backgroundColor: "#2C323380",
|
|
1809
|
+
// borderRadius: "18px",
|
|
1810
|
+
// padding: "35px 0 0 0",
|
|
1811
|
+
// boxSizing: "border-box",
|
|
1812
|
+
// maxHeight: "160px",
|
|
1813
|
+
// overflowY: "hidden",
|
|
1814
|
+
// },
|
|
1815
|
+
// }}
|
|
1816
|
+
// >
|
|
1817
|
+
// <Stack sx={{ maxHeight: "120px", overflowY: "scroll" }}>
|
|
1818
|
+
// {options?.map((option) => (
|
|
1819
|
+
// <Stack
|
|
1820
|
+
// direction="row"
|
|
1821
|
+
// sx={{
|
|
1822
|
+
// boxSizing: "border-box",
|
|
1823
|
+
// justifyContent: "space-between",
|
|
1824
|
+
// alignItems: "center",
|
|
1825
|
+
// width: "100%",
|
|
1826
|
+
// height: "100%",
|
|
1827
|
+
// padding: "6px 5px 6px 10px",
|
|
1828
|
+
// cursor: "pointer",
|
|
1829
|
+
// transition: "0.3s",
|
|
1830
|
+
// "&:hover": {
|
|
1831
|
+
// backgroundColor: "#474D4F80",
|
|
1832
|
+
// },
|
|
1833
|
+
// "&:hover #added-to-content-icon": {
|
|
1834
|
+
// display: option?.added ? "none" : "block",
|
|
1835
|
+
// opacity: "1",
|
|
1836
|
+
// },
|
|
1837
|
+
// "&:hover #remove-from-content-icon": {
|
|
1838
|
+
// display: option?.added ? "block" : "none",
|
|
1839
|
+
// opacity: option?.added ? "1" : "0",
|
|
1840
|
+
// },
|
|
1841
|
+
// }}
|
|
1842
|
+
// onClick={() => {
|
|
1843
|
+
// if (onOptionClicked) onOptionClicked(option);
|
|
1844
|
+
// setAnchor(null);
|
|
1845
|
+
// }}
|
|
1846
|
+
// >
|
|
1847
|
+
// <Text
|
|
1848
|
+
// sx={{
|
|
1849
|
+
// fontSize: "14px",
|
|
1850
|
+
// fontWeight: "400",
|
|
1851
|
+
// }}
|
|
1852
|
+
// >
|
|
1853
|
+
// {option.name}
|
|
1854
|
+
// </Text>
|
|
1855
|
+
// <CheckRounded
|
|
1856
|
+
// id="added-to-content-icon"
|
|
1857
|
+
// sx={{
|
|
1858
|
+
// transition: "0.3s",
|
|
1859
|
+
// opacity: option.added ? "1" : "0",
|
|
1860
|
+
// }}
|
|
1861
|
+
// />
|
|
1862
|
+
// <CloseRounded
|
|
1863
|
+
// id="remove-from-content-icon"
|
|
1864
|
+
// sx={{
|
|
1865
|
+
// transition: "0.3s",
|
|
1866
|
+
// display: "none",
|
|
1867
|
+
// opacity: "0",
|
|
1868
|
+
// }}
|
|
1869
|
+
// />
|
|
1870
|
+
// </Stack>
|
|
1871
|
+
// ))}
|
|
1872
|
+
// </Stack>
|
|
1873
|
+
// </Popover>
|
|
1874
|
+
// </>
|
|
1875
|
+
// );
|
|
1876
|
+
// };
|
|
1877
|
+
// const AddContentButton = ({
|
|
1878
|
+
// item,
|
|
1879
|
+
// hovering,
|
|
1880
|
+
// hoveringAddTo,
|
|
1881
|
+
// setHoveringAddTo,
|
|
1882
|
+
// openPremiumModal,
|
|
1883
|
+
// onOptionClicked,
|
|
1884
|
+
// onPlusClick,
|
|
1885
|
+
// selectedOption,
|
|
1886
|
+
// isUnownedPremium,
|
|
1887
|
+
// }) => {
|
|
1888
|
+
// let added = false;
|
|
1889
|
+
// if (item?.whitelistContext?._id && selectedOption?.value === "BITS") {
|
|
1890
|
+
// added = true;
|
|
1891
|
+
// } else if (
|
|
1892
|
+
// item?.channelPointsContext?._id &&
|
|
1893
|
+
// selectedOption?.value === "CHANNEL_POINTS"
|
|
1894
|
+
// ) {
|
|
1895
|
+
// added = true;
|
|
1896
|
+
// } else if (
|
|
1897
|
+
// item?.walkOnContext?._id &&
|
|
1898
|
+
// selectedOption?.value === "WALK_ON"
|
|
1899
|
+
// ) {
|
|
1900
|
+
// added = true;
|
|
1901
|
+
// } else if (
|
|
1902
|
+
// item?.discordContext?._id &&
|
|
1903
|
+
// selectedOption?.value === "DISCORD"
|
|
1904
|
+
// ) {
|
|
1905
|
+
// added = true;
|
|
1906
|
+
// }
|
|
1907
|
+
// return (
|
|
1908
|
+
// <Stack
|
|
1909
|
+
// direction="row"
|
|
1910
|
+
// width={hoveringAddTo ? "100%" : "60%"}
|
|
1911
|
+
// sx={{
|
|
1912
|
+
// justifyContent: "end",
|
|
1913
|
+
// transition: "0.5s",
|
|
1914
|
+
// boxSizing: "border-box",
|
|
1915
|
+
// opacity: hovering ? "1" : "0",
|
|
1916
|
+
// }}
|
|
1917
|
+
// onMouseLeave={() => {
|
|
1918
|
+
// setHoveringAddTo(false);
|
|
1919
|
+
// }}
|
|
1920
|
+
// >
|
|
1921
|
+
// <AddContentDropdown
|
|
1922
|
+
// item={item}
|
|
1923
|
+
// active={hoveringAddTo}
|
|
1924
|
+
// onOptionClicked={onOptionClicked}
|
|
1925
|
+
// selectedOption={selectedOption}
|
|
1926
|
+
// />
|
|
1927
|
+
// {isUnownedPremium ? (
|
|
1928
|
+
// <IconButton
|
|
1929
|
+
// sx={{
|
|
1930
|
+
// width: "30px",
|
|
1931
|
+
// height: "30px",
|
|
1932
|
+
// backgroundColor: "white.override",
|
|
1933
|
+
// "&:hover .open-lock-icon": {
|
|
1934
|
+
// display: "flex !important",
|
|
1935
|
+
// opacity: "1 !important",
|
|
1936
|
+
// },
|
|
1937
|
+
// "&:hover .lock-icon": {
|
|
1938
|
+
// display: "none !important",
|
|
1939
|
+
// opacity: "0 !important",
|
|
1940
|
+
// },
|
|
1941
|
+
// "&:hover": {
|
|
1942
|
+
// backgroundColor: "grey7.main",
|
|
1943
|
+
// },
|
|
1944
|
+
// }}
|
|
1945
|
+
// onClick={(e) => {
|
|
1946
|
+
// e.stopPropagation();
|
|
1947
|
+
// openPremiumModal();
|
|
1948
|
+
// }}
|
|
1949
|
+
// >
|
|
1950
|
+
// <LockRoundedIcon
|
|
1951
|
+
// className="lock-icon"
|
|
1952
|
+
// sx={{
|
|
1953
|
+
// transition: "0.3s",
|
|
1954
|
+
// color: "notBlack.override",
|
|
1955
|
+
// display: "flex",
|
|
1956
|
+
// opacity: "1",
|
|
1957
|
+
// fontSize: "17px",
|
|
1958
|
+
// }}
|
|
1959
|
+
// />
|
|
1960
|
+
// <div
|
|
1961
|
+
// className="open-lock-icon"
|
|
1962
|
+
// style={{ display: "none", opacity: "0" }}
|
|
1963
|
+
// >
|
|
1964
|
+
// <OpenLockIcon
|
|
1965
|
+
// sx={{
|
|
1966
|
+
// transition: "0.3s",
|
|
1967
|
+
// color: "notBlack.override",
|
|
1968
|
+
// fontSize: "17px",
|
|
1969
|
+
// }}
|
|
1970
|
+
// />
|
|
1971
|
+
// </div>
|
|
1972
|
+
// </IconButton>
|
|
1973
|
+
// ) : (
|
|
1974
|
+
// <IconButton
|
|
1975
|
+
// sx={{
|
|
1976
|
+
// width: "30px",
|
|
1977
|
+
// height: "30px",
|
|
1978
|
+
// backgroundColor: "white.override",
|
|
1979
|
+
// "&:hover": {
|
|
1980
|
+
// backgroundColor: "grey7.main",
|
|
1981
|
+
// },
|
|
1982
|
+
// }}
|
|
1983
|
+
// onMouseEnter={(e) => {
|
|
1984
|
+
// e.stopPropagation();
|
|
1985
|
+
// setHoveringAddTo(true);
|
|
1986
|
+
// }}
|
|
1987
|
+
// onClick={() => onPlusClick(added)}
|
|
1988
|
+
// >
|
|
1989
|
+
// <AddRoundedIcon
|
|
1990
|
+
// sx={{
|
|
1991
|
+
// transition: "0.3s",
|
|
1992
|
+
// color: "notBlack.override",
|
|
1993
|
+
// transform: added && "rotate(45deg)",
|
|
1994
|
+
// }}
|
|
1995
|
+
// />
|
|
1996
|
+
// </IconButton>
|
|
1997
|
+
// )}
|
|
1998
|
+
// </Stack>
|
|
1999
|
+
// );
|
|
2000
|
+
// };
|
|
1988
2001
|
|
|
1989
|
-
var FavoriteIconWithCounter = function FavoriteIconWithCounter(
|
|
1990
|
-
var saved =
|
|
1991
|
-
count =
|
|
1992
|
-
onClick =
|
|
2002
|
+
var FavoriteIconWithCounter = function FavoriteIconWithCounter(_ref) {
|
|
2003
|
+
var saved = _ref.saved,
|
|
2004
|
+
count = _ref.count,
|
|
2005
|
+
onClick = _ref.onClick;
|
|
1993
2006
|
var formatter = Intl.NumberFormat("en", {
|
|
1994
2007
|
notation: "compact"
|
|
1995
2008
|
});
|
|
@@ -2025,36 +2038,36 @@
|
|
|
2025
2038
|
}
|
|
2026
2039
|
}, savedCount));
|
|
2027
2040
|
};
|
|
2028
|
-
var AddedToIcons = function AddedToIcons(
|
|
2029
|
-
var _item$
|
|
2041
|
+
var AddedToIcons = function AddedToIcons(_ref2) {
|
|
2042
|
+
var _item$channelPointsCo, _item$whitelistContex, _item$walkOnContext;
|
|
2030
2043
|
|
|
2031
|
-
var item =
|
|
2032
|
-
hovering =
|
|
2033
|
-
|
|
2034
|
-
hide =
|
|
2044
|
+
var item = _ref2.item,
|
|
2045
|
+
hovering = _ref2.hovering,
|
|
2046
|
+
_ref2$hide = _ref2.hide,
|
|
2047
|
+
hide = _ref2$hide === void 0 ? false : _ref2$hide;
|
|
2035
2048
|
return /*#__PURE__*/React__default['default'].createElement(Stack, {
|
|
2036
2049
|
direction: "row",
|
|
2037
2050
|
sx: {
|
|
2038
2051
|
transition: "0.3s",
|
|
2039
2052
|
opacity: hide ? "0" : hovering ? "1" : "0"
|
|
2040
2053
|
}
|
|
2041
|
-
}, (item === null || item === void 0 ? void 0 : (_item$
|
|
2054
|
+
}, (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, {
|
|
2042
2055
|
sx: {
|
|
2043
2056
|
fontSize: "15px"
|
|
2044
2057
|
}
|
|
2045
|
-
}), (item === null || item === void 0 ? void 0 : (_item$
|
|
2058
|
+
}), (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, {
|
|
2046
2059
|
sx: {
|
|
2047
2060
|
fontSize: "15px"
|
|
2048
2061
|
}
|
|
2049
|
-
}), (item === null || item === void 0 ? void 0 : (_item$
|
|
2062
|
+
}), (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, {
|
|
2050
2063
|
sx: {
|
|
2051
2064
|
fontSize: "15px"
|
|
2052
2065
|
}
|
|
2053
2066
|
}));
|
|
2054
2067
|
};
|
|
2055
2068
|
|
|
2056
|
-
var RatingInfo = function RatingInfo(
|
|
2057
|
-
var rating =
|
|
2069
|
+
var RatingInfo = function RatingInfo(_ref3) {
|
|
2070
|
+
var rating = _ref3.rating;
|
|
2058
2071
|
|
|
2059
2072
|
switch (rating) {
|
|
2060
2073
|
case "G":
|
|
@@ -2227,22 +2240,22 @@
|
|
|
2227
2240
|
// };
|
|
2228
2241
|
|
|
2229
2242
|
|
|
2230
|
-
var ReportedWarning = function ReportedWarning(
|
|
2231
|
-
var showWarning =
|
|
2232
|
-
blacklisted =
|
|
2233
|
-
saved =
|
|
2234
|
-
count =
|
|
2235
|
-
onClick =
|
|
2243
|
+
var ReportedWarning = function ReportedWarning(_ref4) {
|
|
2244
|
+
var showWarning = _ref4.showWarning,
|
|
2245
|
+
blacklisted = _ref4.blacklisted,
|
|
2246
|
+
saved = _ref4.saved,
|
|
2247
|
+
count = _ref4.count,
|
|
2248
|
+
onClick = _ref4.onClick;
|
|
2236
2249
|
|
|
2237
|
-
var
|
|
2238
|
-
|
|
2239
|
-
show =
|
|
2240
|
-
setShow =
|
|
2250
|
+
var _useState = React.useState(showWarning),
|
|
2251
|
+
_useState2 = _slicedToArray__default['default'](_useState, 2),
|
|
2252
|
+
show = _useState2[0],
|
|
2253
|
+
setShow = _useState2[1];
|
|
2241
2254
|
|
|
2242
|
-
var
|
|
2243
|
-
|
|
2244
|
-
hovering =
|
|
2245
|
-
setHovering =
|
|
2255
|
+
var _useState3 = React.useState(false),
|
|
2256
|
+
_useState4 = _slicedToArray__default['default'](_useState3, 2),
|
|
2257
|
+
hovering = _useState4[0],
|
|
2258
|
+
setHovering = _useState4[1];
|
|
2246
2259
|
|
|
2247
2260
|
var renderInfo = function renderInfo() {
|
|
2248
2261
|
if (blacklisted) {
|
|
@@ -2335,17 +2348,18 @@
|
|
|
2335
2348
|
})), renderInfo());
|
|
2336
2349
|
};
|
|
2337
2350
|
|
|
2338
|
-
var BlerpTopRow = function BlerpTopRow(
|
|
2339
|
-
var bite =
|
|
2340
|
-
hovering =
|
|
2341
|
-
onPlusClick =
|
|
2342
|
-
_onOptionClicked =
|
|
2343
|
-
selectedOption =
|
|
2351
|
+
var BlerpTopRow = function BlerpTopRow(_ref5) {
|
|
2352
|
+
var bite = _ref5.bite,
|
|
2353
|
+
hovering = _ref5.hovering,
|
|
2354
|
+
onPlusClick = _ref5.onPlusClick,
|
|
2355
|
+
_onOptionClicked = _ref5.onOptionClicked,
|
|
2356
|
+
selectedOption = _ref5.selectedOption,
|
|
2357
|
+
renderAddContentButton = _ref5.renderAddContentButton;
|
|
2344
2358
|
|
|
2345
|
-
var
|
|
2346
|
-
|
|
2347
|
-
hoveringAddTo =
|
|
2348
|
-
setHoveringAddTo =
|
|
2359
|
+
var _useState5 = React.useState(false),
|
|
2360
|
+
_useState6 = _slicedToArray__default['default'](_useState5, 2),
|
|
2361
|
+
hoveringAddTo = _useState6[0],
|
|
2362
|
+
setHoveringAddTo = _useState6[1];
|
|
2349
2363
|
|
|
2350
2364
|
return /*#__PURE__*/React__default['default'].createElement(Stack, {
|
|
2351
2365
|
direction: "row",
|
|
@@ -2367,7 +2381,7 @@
|
|
|
2367
2381
|
}), /*#__PURE__*/React__default['default'].createElement(AddedToIcons, {
|
|
2368
2382
|
item: bite,
|
|
2369
2383
|
hovering: hovering
|
|
2370
|
-
})),
|
|
2384
|
+
})), renderAddContentButton({
|
|
2371
2385
|
item: bite,
|
|
2372
2386
|
hovering: hovering,
|
|
2373
2387
|
hoveringAddTo: hoveringAddTo,
|
|
@@ -2380,46 +2394,50 @@
|
|
|
2380
2394
|
}));
|
|
2381
2395
|
};
|
|
2382
2396
|
|
|
2383
|
-
var NewBlerp$1 = function NewBlerp(
|
|
2397
|
+
var NewBlerp$1 = function NewBlerp(_ref6) {
|
|
2384
2398
|
var _bite$blacklistContex, _bite$reportedContent, _bite$blacklistContex2, _bite$image, _bite$image$original;
|
|
2385
2399
|
|
|
2386
|
-
var Waveform =
|
|
2387
|
-
bite =
|
|
2388
|
-
playState =
|
|
2389
|
-
play =
|
|
2390
|
-
|
|
2391
|
-
onTitleClick =
|
|
2400
|
+
var Waveform = _ref6.Waveform,
|
|
2401
|
+
bite = _ref6.bite,
|
|
2402
|
+
playState = _ref6.playState,
|
|
2403
|
+
play = _ref6.play,
|
|
2404
|
+
_ref6$onTitleClick = _ref6.onTitleClick,
|
|
2405
|
+
onTitleClick = _ref6$onTitleClick === void 0 ? function () {
|
|
2392
2406
|
console.log("onTitleClick");
|
|
2393
|
-
} :
|
|
2394
|
-
|
|
2395
|
-
onUsernameClick =
|
|
2407
|
+
} : _ref6$onTitleClick,
|
|
2408
|
+
_ref6$onUsernameClick = _ref6.onUsernameClick,
|
|
2409
|
+
onUsernameClick = _ref6$onUsernameClick === void 0 ? function () {
|
|
2396
2410
|
console.log("onUsernameClick");
|
|
2397
|
-
} :
|
|
2398
|
-
|
|
2399
|
-
onFavoriteClick =
|
|
2411
|
+
} : _ref6$onUsernameClick,
|
|
2412
|
+
_ref6$onFavoriteClick = _ref6.onFavoriteClick,
|
|
2413
|
+
onFavoriteClick = _ref6$onFavoriteClick === void 0 ? function () {
|
|
2400
2414
|
console.log("onFavoriteClick");
|
|
2401
|
-
} :
|
|
2402
|
-
|
|
2403
|
-
onAddToPlace =
|
|
2415
|
+
} : _ref6$onFavoriteClick,
|
|
2416
|
+
_ref6$onAddToPlace = _ref6.onAddToPlace,
|
|
2417
|
+
onAddToPlace = _ref6$onAddToPlace === void 0 ? function () {
|
|
2404
2418
|
console.log("onAddToPlace");
|
|
2405
|
-
} :
|
|
2406
|
-
|
|
2407
|
-
onOptionClicked =
|
|
2419
|
+
} : _ref6$onAddToPlace,
|
|
2420
|
+
_ref6$onOptionClicked = _ref6.onOptionClicked,
|
|
2421
|
+
onOptionClicked = _ref6$onOptionClicked === void 0 ? function () {
|
|
2408
2422
|
console.log("onAddToPlace");
|
|
2409
|
-
} :
|
|
2410
|
-
selectedOption =
|
|
2411
|
-
|
|
2412
|
-
trending =
|
|
2423
|
+
} : _ref6$onOptionClicked,
|
|
2424
|
+
selectedOption = _ref6.selectedOption,
|
|
2425
|
+
_ref6$trending = _ref6.trending,
|
|
2426
|
+
trending = _ref6$trending === void 0 ? false : _ref6$trending,
|
|
2427
|
+
_ref6$renderAddConten = _ref6.renderAddContentButton,
|
|
2428
|
+
renderAddContentButton = _ref6$renderAddConten === void 0 ? function () {
|
|
2429
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null);
|
|
2430
|
+
} : _ref6$renderAddConten;
|
|
2431
|
+
|
|
2432
|
+
var _useState7 = React.useState(false),
|
|
2433
|
+
_useState8 = _slicedToArray__default['default'](_useState7, 2),
|
|
2434
|
+
hovering = _useState8[0],
|
|
2435
|
+
setHovering = _useState8[1];
|
|
2413
2436
|
|
|
2414
2437
|
var _useState9 = React.useState(false),
|
|
2415
2438
|
_useState10 = _slicedToArray__default['default'](_useState9, 2),
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
var _useState11 = React.useState(false),
|
|
2420
|
-
_useState12 = _slicedToArray__default['default'](_useState11, 2),
|
|
2421
|
-
addedToPlace = _useState12[0],
|
|
2422
|
-
setAddedToPlace = _useState12[1];
|
|
2439
|
+
addedToPlace = _useState10[0],
|
|
2440
|
+
setAddedToPlace = _useState10[1];
|
|
2423
2441
|
|
|
2424
2442
|
var renderPlayStateIcon = function renderPlayStateIcon() {
|
|
2425
2443
|
if (playState === "played") {
|
|
@@ -2558,7 +2576,8 @@
|
|
|
2558
2576
|
onOptionClicked: onOptionClicked,
|
|
2559
2577
|
hovering: hovering,
|
|
2560
2578
|
onPlusClick: handleAddToPlace,
|
|
2561
|
-
selectedOption: selectedOption
|
|
2579
|
+
selectedOption: selectedOption,
|
|
2580
|
+
renderAddContentButton: renderAddContentButton
|
|
2562
2581
|
}), /*#__PURE__*/React__default['default'].createElement(Stack, {
|
|
2563
2582
|
sx: {
|
|
2564
2583
|
transition: "0.3s",
|
|
@@ -6119,7 +6138,7 @@
|
|
|
6119
6138
|
sx: {
|
|
6120
6139
|
width: "100%",
|
|
6121
6140
|
"& svg": {
|
|
6122
|
-
color: "
|
|
6141
|
+
color: "inherit"
|
|
6123
6142
|
}
|
|
6124
6143
|
}
|
|
6125
6144
|
}, snackbarValues.message)), props.children);
|