@blerp/design 1.2.6 → 1.2.8
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 +145 -104
- package/dist/index.esm.js +149 -106
- package/dist/index.umd.js +145 -103
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SvgIcon, InputAdornment as InputAdornment$1, Box as Box$1, Container as Container$2, Grid as Grid$1, Stack as Stack$
|
|
1
|
+
import { SvgIcon, InputAdornment as InputAdornment$1, Box as Box$1, Container as Container$2, Grid as Grid$1, Stack as Stack$1, ImageList as ImageList$1, Autocomplete as Autocomplete$1, Button as Button$1, ButtonGroup as ButtonGroup$1, Checkbox as Checkbox$1, Fab, Radio, Rating as Rating$1, Select as Select$1, Slider as Slider$3, Switch as Switch$2, TextField, BottomNavigation as BottomNavigation$1, Breadcrumbs as Breadcrumbs$1, Drawer as Drawer$1, Link as Link$1, Menu as Menu$1, Pagination as Pagination$1, SpeedDial as SpeedDial$1, Stepper as Stepper$1, Tabs as Tabs$1, Tab as Tab$1, Accordion as Accordion$1, AppBar as AppBar$1, Card as Card$1, Paper as Paper$1, Alert as Alert$1, Backdrop as Backdrop$1, Dialog as Dialog$1, LinearProgress as LinearProgress$1, Skeleton as Skeleton$1, Snackbar as Snackbar$1, Avatar as Avatar$1, Badge as Badge$1, Chip as Chip$1, Divider as Divider$1, List as List$1, Table as Table$1, Tooltip as Tooltip$1, Toolbar as Toolbar$1, Typography, Modal as Modal$1, Popover as Popover$1, IconButton as IconButton$1, MenuItem as MenuItem$1 } from '@mui/material';
|
|
2
2
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import * as React from 'react';
|
|
@@ -9,8 +9,10 @@ import _taggedTemplateLiteral from '@babel/runtime/helpers/taggedTemplateLiteral
|
|
|
9
9
|
import { PauseCircleOutlineRounded, LockRounded, CheckRounded, CloseRounded, 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
|
-
import
|
|
13
|
-
import
|
|
12
|
+
import _asyncToGenerator from '@babel/runtime/helpers/asyncToGenerator';
|
|
13
|
+
import _regeneratorRuntime from '@babel/runtime/regenerator';
|
|
14
|
+
import '@blerp/wavesurfer';
|
|
15
|
+
import '@blerp/wavesurfer/dist/plugin/wavesurfer.cursor.min.js';
|
|
14
16
|
import AddRoundedIcon from '@mui/icons-material/AddRounded';
|
|
15
17
|
import ArrowDropDownRoundedIcon from '@mui/icons-material/ArrowDropDownRounded';
|
|
16
18
|
import FavoriteIcon from '@mui/icons-material/Favorite';
|
|
@@ -19,9 +21,6 @@ import PauseRoundedIcon from '@mui/icons-material/PauseRounded';
|
|
|
19
21
|
import PlayArrowRoundedIcon from '@mui/icons-material/PlayArrowRounded';
|
|
20
22
|
import WarningRoundedIcon from '@mui/icons-material/WarningRounded';
|
|
21
23
|
import '@mui/icons-material/DoNotDisturbRounded';
|
|
22
|
-
import { Stack as Stack$1, Text as Text$1, IconButton as IconButton$1, ChannelPointsIcon as ChannelPointsIcon$1, TwitchBitIcon as TwitchBitIcon$1, WalkonIcon as WalkonIcon$1, Tooltip as Tooltip$1, Button as Button$1, Popover as Popover$1 } from '.';
|
|
23
|
-
import _asyncToGenerator from '@babel/runtime/helpers/asyncToGenerator';
|
|
24
|
-
import _regeneratorRuntime from '@babel/runtime/regenerator';
|
|
25
24
|
import BookmarkAddOutlinedIcon from '@mui/icons-material/BookmarkAddOutlined';
|
|
26
25
|
import MoreHorizRoundedIcon from '@mui/icons-material/MoreHorizRounded';
|
|
27
26
|
import { usePalette } from 'react-palette';
|
|
@@ -1501,7 +1500,10 @@ Blerp$1.propTypes = {
|
|
|
1501
1500
|
var BlerpAudioContext = /*#__PURE__*/createContext({});
|
|
1502
1501
|
var BlerpAudioContextProvider$1 = function BlerpAudioContextProvider(_ref) {
|
|
1503
1502
|
var children = _ref.children;
|
|
1504
|
-
|
|
1503
|
+
|
|
1504
|
+
if (typeof window === "undefined") {
|
|
1505
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, children);
|
|
1506
|
+
}
|
|
1505
1507
|
|
|
1506
1508
|
var _useState = useState(null),
|
|
1507
1509
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -1549,7 +1551,7 @@ var BlerpAudioContextProvider$1 = function BlerpAudioContextProvider(_ref) {
|
|
|
1549
1551
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3(_ref3) {
|
|
1550
1552
|
var _bite$audio, _bite$audio$mp;
|
|
1551
1553
|
|
|
1552
|
-
var bite, _ref3$gain, gain, _ref3$startTime, startTime, _ref3$forcePlay, forcePlay, newGain, gainNode, source;
|
|
1554
|
+
var bite, _ref3$gain, gain, _ref3$startTime, startTime, _ref3$forcePlay, forcePlay, newGain, audioCtx, gainNode, source;
|
|
1553
1555
|
|
|
1554
1556
|
return _regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
1555
1557
|
while (1) {
|
|
@@ -1608,13 +1610,14 @@ var BlerpAudioContextProvider$1 = function BlerpAudioContextProvider(_ref) {
|
|
|
1608
1610
|
}
|
|
1609
1611
|
}, _callee2);
|
|
1610
1612
|
}));
|
|
1613
|
+
audioCtx = new (window.AudioContext || window.webkitAudioContext)();
|
|
1611
1614
|
gainNode = audioCtx.createGain(); // gainNode.gain.value = 2 // value between 0 and 2 https://developer.mozilla.org/en-US/docs/Web/API/Web_Audio_API/Using_Web_Audio_API
|
|
1612
1615
|
|
|
1613
1616
|
gainNode.gain.setValueAtTime(newGain, 0);
|
|
1614
1617
|
source = audioCtx.createMediaElementSource(audioRef.current);
|
|
1615
1618
|
source.connect(gainNode);
|
|
1616
1619
|
gainNode.connect(audioCtx.destination);
|
|
1617
|
-
_context3.next =
|
|
1620
|
+
_context3.next = 25;
|
|
1618
1621
|
return audioRef.current.play().then(function () {
|
|
1619
1622
|
console.log("playing", bite === null || bite === void 0 ? void 0 : bite.title);
|
|
1620
1623
|
setPlayState("playing");
|
|
@@ -1622,7 +1625,7 @@ var BlerpAudioContextProvider$1 = function BlerpAudioContextProvider(_ref) {
|
|
|
1622
1625
|
setPlayState("stopped");
|
|
1623
1626
|
});
|
|
1624
1627
|
|
|
1625
|
-
case
|
|
1628
|
+
case 25:
|
|
1626
1629
|
// const playPromise = audioRef.current.play();
|
|
1627
1630
|
// if (playPromise !== undefined) {
|
|
1628
1631
|
// playPromise
|
|
@@ -1639,7 +1642,7 @@ var BlerpAudioContextProvider$1 = function BlerpAudioContextProvider(_ref) {
|
|
|
1639
1642
|
// }
|
|
1640
1643
|
_setSelectedBlerp(bite);
|
|
1641
1644
|
|
|
1642
|
-
case
|
|
1645
|
+
case 26:
|
|
1643
1646
|
case "end":
|
|
1644
1647
|
return _context3.stop();
|
|
1645
1648
|
}
|
|
@@ -1698,8 +1701,7 @@ var BlerpAudioContextProvider$1 = function BlerpAudioContextProvider(_ref) {
|
|
|
1698
1701
|
return playState;
|
|
1699
1702
|
}
|
|
1700
1703
|
},
|
|
1701
|
-
setStartTime: setStartTime
|
|
1702
|
-
audioContext: audioCtx
|
|
1704
|
+
setStartTime: setStartTime
|
|
1703
1705
|
}
|
|
1704
1706
|
}, children);
|
|
1705
1707
|
};
|
|
@@ -1754,7 +1756,7 @@ var AddContentDropdown = function AddContentDropdown(_ref) {
|
|
|
1754
1756
|
setAnchor = _useState2[1];
|
|
1755
1757
|
|
|
1756
1758
|
var open = Boolean(anchor);
|
|
1757
|
-
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Button
|
|
1759
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Button, {
|
|
1758
1760
|
color: "whiteOverride",
|
|
1759
1761
|
variant: "outlined",
|
|
1760
1762
|
onClick: function onClick(e) {
|
|
@@ -1774,7 +1776,7 @@ var AddContentDropdown = function AddContentDropdown(_ref) {
|
|
|
1774
1776
|
}
|
|
1775
1777
|
},
|
|
1776
1778
|
endIcon: /*#__PURE__*/React__default.createElement(ArrowDropDownRoundedIcon, null)
|
|
1777
|
-
}, "Place"), /*#__PURE__*/React__default.createElement(Popover
|
|
1779
|
+
}, "Place"), /*#__PURE__*/React__default.createElement(Popover, {
|
|
1778
1780
|
open: open,
|
|
1779
1781
|
anchorEl: anchor,
|
|
1780
1782
|
anchorOrigin: {
|
|
@@ -1799,13 +1801,13 @@ var AddContentDropdown = function AddContentDropdown(_ref) {
|
|
|
1799
1801
|
overflowY: "hidden"
|
|
1800
1802
|
}
|
|
1801
1803
|
}
|
|
1802
|
-
}, /*#__PURE__*/React__default.createElement(Stack
|
|
1804
|
+
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
1803
1805
|
sx: {
|
|
1804
1806
|
maxHeight: "120px",
|
|
1805
1807
|
overflowY: "scroll"
|
|
1806
1808
|
}
|
|
1807
1809
|
}, options === null || options === void 0 ? void 0 : options.map(function (option) {
|
|
1808
|
-
return /*#__PURE__*/React__default.createElement(Stack
|
|
1810
|
+
return /*#__PURE__*/React__default.createElement(Stack, {
|
|
1809
1811
|
direction: "row",
|
|
1810
1812
|
sx: {
|
|
1811
1813
|
boxSizing: "border-box",
|
|
@@ -1832,7 +1834,7 @@ var AddContentDropdown = function AddContentDropdown(_ref) {
|
|
|
1832
1834
|
if (onOptionClicked) onOptionClicked(option);
|
|
1833
1835
|
setAnchor(null);
|
|
1834
1836
|
}
|
|
1835
|
-
}, /*#__PURE__*/React__default.createElement(Text
|
|
1837
|
+
}, /*#__PURE__*/React__default.createElement(Text, {
|
|
1836
1838
|
sx: {
|
|
1837
1839
|
fontSize: "14px",
|
|
1838
1840
|
fontWeight: "400"
|
|
@@ -1869,7 +1871,7 @@ var AddContentButton = function AddContentButton(_ref2) {
|
|
|
1869
1871
|
setActive(false);
|
|
1870
1872
|
}
|
|
1871
1873
|
}, [hovering]);
|
|
1872
|
-
return /*#__PURE__*/React__default.createElement(Stack
|
|
1874
|
+
return /*#__PURE__*/React__default.createElement(Stack, {
|
|
1873
1875
|
direction: "row",
|
|
1874
1876
|
width: "100%",
|
|
1875
1877
|
sx: {
|
|
@@ -1888,7 +1890,7 @@ var AddContentButton = function AddContentButton(_ref2) {
|
|
|
1888
1890
|
style: {
|
|
1889
1891
|
width: "100%"
|
|
1890
1892
|
}
|
|
1891
|
-
}), /*#__PURE__*/React__default.createElement(IconButton
|
|
1893
|
+
}), /*#__PURE__*/React__default.createElement(IconButton, {
|
|
1892
1894
|
sx: {
|
|
1893
1895
|
width: "30px",
|
|
1894
1896
|
height: "30px",
|
|
@@ -1914,7 +1916,7 @@ var FavoriteIconWithCounter = function FavoriteIconWithCounter(_ref3) {
|
|
|
1914
1916
|
var saved = _ref3.saved,
|
|
1915
1917
|
count = _ref3.count;
|
|
1916
1918
|
_ref3.onClick;
|
|
1917
|
-
return /*#__PURE__*/React__default.createElement(Stack
|
|
1919
|
+
return /*#__PURE__*/React__default.createElement(Stack, {
|
|
1918
1920
|
direction: "row",
|
|
1919
1921
|
alignItems: "center"
|
|
1920
1922
|
}, saved ? /*#__PURE__*/React__default.createElement(FavoriteIcon, {
|
|
@@ -1937,7 +1939,7 @@ var FavoriteIconWithCounter = function FavoriteIconWithCounter(_ref3) {
|
|
|
1937
1939
|
opacity: 0.5
|
|
1938
1940
|
}
|
|
1939
1941
|
}
|
|
1940
|
-
}), /*#__PURE__*/React__default.createElement(Text
|
|
1942
|
+
}), /*#__PURE__*/React__default.createElement(Text, {
|
|
1941
1943
|
sx: {
|
|
1942
1944
|
fontSize: "12px",
|
|
1943
1945
|
fontWeight: "400"
|
|
@@ -1947,21 +1949,21 @@ var FavoriteIconWithCounter = function FavoriteIconWithCounter(_ref3) {
|
|
|
1947
1949
|
|
|
1948
1950
|
var AddedToIcons = function AddedToIcons(_ref4) {
|
|
1949
1951
|
var hovering = _ref4.hovering;
|
|
1950
|
-
return /*#__PURE__*/React__default.createElement(Stack
|
|
1952
|
+
return /*#__PURE__*/React__default.createElement(Stack, {
|
|
1951
1953
|
direction: "row",
|
|
1952
1954
|
sx: {
|
|
1953
1955
|
transition: "0.3s",
|
|
1954
1956
|
opacity: hovering ? "1" : "0"
|
|
1955
1957
|
}
|
|
1956
|
-
}, /*#__PURE__*/React__default.createElement(ChannelPointsIcon
|
|
1958
|
+
}, /*#__PURE__*/React__default.createElement(ChannelPointsIcon, {
|
|
1957
1959
|
sx: {
|
|
1958
1960
|
fontSize: "15px"
|
|
1959
1961
|
}
|
|
1960
|
-
}), /*#__PURE__*/React__default.createElement(TwitchBitIcon
|
|
1962
|
+
}), /*#__PURE__*/React__default.createElement(TwitchBitIcon, {
|
|
1961
1963
|
sx: {
|
|
1962
1964
|
fontSize: "15px"
|
|
1963
1965
|
}
|
|
1964
|
-
}), /*#__PURE__*/React__default.createElement(WalkonIcon
|
|
1966
|
+
}), /*#__PURE__*/React__default.createElement(WalkonIcon, {
|
|
1965
1967
|
sx: {
|
|
1966
1968
|
fontSize: "15px"
|
|
1967
1969
|
}
|
|
@@ -1985,9 +1987,9 @@ var RatingInfo = function RatingInfo(_ref5) {
|
|
|
1985
1987
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null);
|
|
1986
1988
|
|
|
1987
1989
|
case "NC17":
|
|
1988
|
-
return /*#__PURE__*/React__default.createElement(Tooltip
|
|
1990
|
+
return /*#__PURE__*/React__default.createElement(Tooltip, {
|
|
1989
1991
|
title: "Not Safe For Work"
|
|
1990
|
-
}, /*#__PURE__*/React__default.createElement(Text
|
|
1992
|
+
}, /*#__PURE__*/React__default.createElement(Text, {
|
|
1991
1993
|
sx: {
|
|
1992
1994
|
fontSize: "9px",
|
|
1993
1995
|
fontWeight: "600",
|
|
@@ -2002,9 +2004,9 @@ var RatingInfo = function RatingInfo(_ref5) {
|
|
|
2002
2004
|
}, "NSFW"));
|
|
2003
2005
|
|
|
2004
2006
|
case "UR":
|
|
2005
|
-
return /*#__PURE__*/React__default.createElement(Tooltip
|
|
2007
|
+
return /*#__PURE__*/React__default.createElement(Tooltip, {
|
|
2006
2008
|
title: "Hasn't Been Reviewed"
|
|
2007
|
-
}, /*#__PURE__*/React__default.createElement(Text
|
|
2009
|
+
}, /*#__PURE__*/React__default.createElement(Text, {
|
|
2008
2010
|
sx: {
|
|
2009
2011
|
fontSize: "9px",
|
|
2010
2012
|
fontWeight: "600",
|
|
@@ -2047,57 +2049,98 @@ var BlerpWaveform = function BlerpWaveform(_ref6) {
|
|
|
2047
2049
|
setWavesurfer = _useState8[1];
|
|
2048
2050
|
|
|
2049
2051
|
useEffect(function () {
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2052
|
+
var create = /*#__PURE__*/function () {
|
|
2053
|
+
var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
2054
|
+
var _WaveSurfer, _CursorPlugin, mWavesurfer;
|
|
2055
|
+
|
|
2056
|
+
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
2057
|
+
while (1) {
|
|
2058
|
+
switch (_context.prev = _context.next) {
|
|
2059
|
+
case 0:
|
|
2060
|
+
console.log("creating", hovering, wavesurfer, hasRendered);
|
|
2061
|
+
|
|
2062
|
+
if (!(hovering && wavesurfer)) {
|
|
2063
|
+
_context.next = 5;
|
|
2064
|
+
break;
|
|
2065
|
+
}
|
|
2066
|
+
|
|
2067
|
+
wavesurfer.load(audio);
|
|
2068
|
+
_context.next = 17;
|
|
2069
|
+
break;
|
|
2070
|
+
|
|
2071
|
+
case 5:
|
|
2072
|
+
if (!(hovering && !wavesurfer && !hasRendered && document.querySelector("#blerp-waveform-".concat(id)) && document.querySelector("#blerp-waveform-".concat(id)).children.length === 0)) {
|
|
2073
|
+
_context.next = 17;
|
|
2074
|
+
break;
|
|
2075
|
+
}
|
|
2076
|
+
|
|
2077
|
+
_context.next = 8;
|
|
2078
|
+
return import('@blerp/wavesurfer');
|
|
2079
|
+
|
|
2080
|
+
case 8:
|
|
2081
|
+
_WaveSurfer = _context.sent.default;
|
|
2082
|
+
_context.next = 11;
|
|
2083
|
+
return import('@blerp/wavesurfer/src/plugin/cursor');
|
|
2084
|
+
|
|
2085
|
+
case 11:
|
|
2086
|
+
_CursorPlugin = _context.sent.default;
|
|
2087
|
+
mWavesurfer = _WaveSurfer.create({
|
|
2088
|
+
container: document.querySelector("#blerp-waveform-".concat(id)),
|
|
2089
|
+
barWidth: 2,
|
|
2090
|
+
barHeight: 1.5,
|
|
2091
|
+
// the height of the wave
|
|
2092
|
+
barGap: 2,
|
|
2093
|
+
// the optional spacing between bars of the wave, if not provided will be calculated in legacy format
|
|
2094
|
+
progressColor: "#ffffff",
|
|
2095
|
+
hoverColor: "#ffffff99",
|
|
2096
|
+
barRadius: 2,
|
|
2097
|
+
height: 30,
|
|
2098
|
+
hideScrollBar: true,
|
|
2099
|
+
plugins: [_CursorPlugin.create({
|
|
2100
|
+
showTime: false,
|
|
2101
|
+
opacity: 0,
|
|
2102
|
+
customShowTimeStyle: {
|
|
2103
|
+
"background-color": "#000",
|
|
2104
|
+
color: "#fff",
|
|
2105
|
+
padding: "2px",
|
|
2106
|
+
"font-size": "10px"
|
|
2107
|
+
}
|
|
2108
|
+
})]
|
|
2109
|
+
});
|
|
2110
|
+
mWavesurfer.on("error", function (e) {
|
|
2111
|
+
console.warn(e);
|
|
2112
|
+
});
|
|
2113
|
+
mWavesurfer === null || mWavesurfer === void 0 ? void 0 : mWavesurfer.on("seek", function (prog) {
|
|
2114
|
+
if (prog) {
|
|
2115
|
+
console.log("SEEEEEEK", prog, bite);
|
|
2116
|
+
mWavesurfer === null || mWavesurfer === void 0 ? void 0 : mWavesurfer.setMute(true);
|
|
2117
|
+
mWavesurfer === null || mWavesurfer === void 0 ? void 0 : mWavesurfer.play();
|
|
2118
|
+
play({
|
|
2119
|
+
bite: bite,
|
|
2120
|
+
startTime: mWavesurfer === null || mWavesurfer === void 0 ? void 0 : mWavesurfer.getCurrentTime(),
|
|
2121
|
+
forcePlay: true
|
|
2122
|
+
});
|
|
2123
|
+
}
|
|
2124
|
+
}); // Load audio from URL
|
|
2125
|
+
// mWavesurfer.load(audio);
|
|
2126
|
+
|
|
2127
|
+
setWavesurfer(mWavesurfer);
|
|
2128
|
+
setHasRendered(true);
|
|
2129
|
+
|
|
2130
|
+
case 17:
|
|
2131
|
+
case "end":
|
|
2132
|
+
return _context.stop();
|
|
2092
2133
|
}
|
|
2093
|
-
}
|
|
2094
|
-
|
|
2134
|
+
}
|
|
2135
|
+
}, _callee);
|
|
2136
|
+
}));
|
|
2095
2137
|
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2138
|
+
return function create() {
|
|
2139
|
+
return _ref7.apply(this, arguments);
|
|
2140
|
+
};
|
|
2141
|
+
}();
|
|
2142
|
+
|
|
2143
|
+
create();
|
|
2101
2144
|
}, [wavesurfer, bite, play, audio, hovering, hasRendered, id]);
|
|
2102
2145
|
useEffect(function () {
|
|
2103
2146
|
// if (wavesurfer && selectedBlerp?._id === bite?._id) {
|
|
@@ -2151,11 +2194,11 @@ var BlerpWaveform = function BlerpWaveform(_ref6) {
|
|
|
2151
2194
|
});
|
|
2152
2195
|
};
|
|
2153
2196
|
|
|
2154
|
-
var ReportedWarning = function ReportedWarning(
|
|
2155
|
-
var showWarning =
|
|
2156
|
-
saved =
|
|
2157
|
-
count =
|
|
2158
|
-
onClick =
|
|
2197
|
+
var ReportedWarning = function ReportedWarning(_ref9) {
|
|
2198
|
+
var showWarning = _ref9.showWarning,
|
|
2199
|
+
saved = _ref9.saved,
|
|
2200
|
+
count = _ref9.count,
|
|
2201
|
+
onClick = _ref9.onClick;
|
|
2159
2202
|
|
|
2160
2203
|
var _useState9 = useState(showWarning),
|
|
2161
2204
|
_useState10 = _slicedToArray(_useState9, 2),
|
|
@@ -2173,21 +2216,21 @@ var ReportedWarning = function ReportedWarning(_ref8) {
|
|
|
2173
2216
|
sx: {
|
|
2174
2217
|
marginBottom: "20px"
|
|
2175
2218
|
}
|
|
2176
|
-
}), /*#__PURE__*/React__default.createElement(Text
|
|
2219
|
+
}), /*#__PURE__*/React__default.createElement(Text, {
|
|
2177
2220
|
sx: {
|
|
2178
2221
|
fontSize: "18px",
|
|
2179
2222
|
fontWeight: "600",
|
|
2180
2223
|
color: "white.override",
|
|
2181
2224
|
marginBottom: "10px"
|
|
2182
2225
|
}
|
|
2183
|
-
}, "Hold Up"), /*#__PURE__*/React__default.createElement(Text
|
|
2226
|
+
}, "Hold Up"), /*#__PURE__*/React__default.createElement(Text, {
|
|
2184
2227
|
sx: {
|
|
2185
2228
|
fontSize: "14px",
|
|
2186
2229
|
fontWeight: "400",
|
|
2187
2230
|
color: "white.override",
|
|
2188
2231
|
textAlign: "center"
|
|
2189
2232
|
}
|
|
2190
|
-
}, "This Has Been ", /*#__PURE__*/React__default.createElement("br", null), " Reported ", " Times"), hovering && /*#__PURE__*/React__default.createElement(Button
|
|
2233
|
+
}, "This Has Been ", /*#__PURE__*/React__default.createElement("br", null), " Reported ", " Times"), hovering && /*#__PURE__*/React__default.createElement(Button, {
|
|
2191
2234
|
color: "whiteOverride",
|
|
2192
2235
|
variant: "outlined",
|
|
2193
2236
|
sx: {
|
|
@@ -2199,7 +2242,7 @@ var ReportedWarning = function ReportedWarning(_ref8) {
|
|
|
2199
2242
|
}, "View"));
|
|
2200
2243
|
};
|
|
2201
2244
|
|
|
2202
|
-
return /*#__PURE__*/React__default.createElement(Stack
|
|
2245
|
+
return /*#__PURE__*/React__default.createElement(Stack, {
|
|
2203
2246
|
sx: {
|
|
2204
2247
|
position: "absolute",
|
|
2205
2248
|
top: "0",
|
|
@@ -2223,7 +2266,7 @@ var ReportedWarning = function ReportedWarning(_ref8) {
|
|
|
2223
2266
|
onMouseLeave: function onMouseLeave() {
|
|
2224
2267
|
setHovering(false);
|
|
2225
2268
|
}
|
|
2226
|
-
}, /*#__PURE__*/React__default.createElement(Stack
|
|
2269
|
+
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
2227
2270
|
sx: {
|
|
2228
2271
|
position: "absolute",
|
|
2229
2272
|
top: "20px",
|
|
@@ -2236,11 +2279,11 @@ var ReportedWarning = function ReportedWarning(_ref8) {
|
|
|
2236
2279
|
})), renderInfo());
|
|
2237
2280
|
};
|
|
2238
2281
|
|
|
2239
|
-
var NewBlerp$1 = function NewBlerp(
|
|
2282
|
+
var NewBlerp$1 = function NewBlerp(_ref10) {
|
|
2240
2283
|
var _bite$image, _bite$image$original, _bite$ownerObject;
|
|
2241
2284
|
|
|
2242
|
-
var bite =
|
|
2243
|
-
|
|
2285
|
+
var bite = _ref10.bite;
|
|
2286
|
+
_ref10.playState;
|
|
2244
2287
|
|
|
2245
2288
|
var _useContext2 = useContext(BlerpAudioContext),
|
|
2246
2289
|
play = _useContext2.play,
|
|
@@ -2354,7 +2397,7 @@ var NewBlerp$1 = function NewBlerp(_ref9) {
|
|
|
2354
2397
|
onClick: function onClick() {
|
|
2355
2398
|
return console.log("clicked save");
|
|
2356
2399
|
}
|
|
2357
|
-
}), /*#__PURE__*/React__default.createElement(Container$1, null, /*#__PURE__*/React__default.createElement(Stack
|
|
2400
|
+
}), /*#__PURE__*/React__default.createElement(Container$1, null, /*#__PURE__*/React__default.createElement(Stack, {
|
|
2358
2401
|
id: "blerp-audio-button-".concat(bite === null || bite === void 0 ? void 0 : bite._id),
|
|
2359
2402
|
sx: {
|
|
2360
2403
|
backgroundImage: "url(".concat(bite === null || bite === void 0 ? void 0 : (_bite$image = bite.image) === null || _bite$image === void 0 ? void 0 : (_bite$image$original = _bite$image.original) === null || _bite$image$original === void 0 ? void 0 : _bite$image$original.url, ")"),
|
|
@@ -2378,7 +2421,7 @@ var NewBlerp$1 = function NewBlerp(_ref9) {
|
|
|
2378
2421
|
onMouseLeave: function onMouseLeave() {
|
|
2379
2422
|
setHovering(false);
|
|
2380
2423
|
}
|
|
2381
|
-
}, /*#__PURE__*/React__default.createElement(Stack
|
|
2424
|
+
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
2382
2425
|
className: "blerp-hover",
|
|
2383
2426
|
onClick: function onClick() {
|
|
2384
2427
|
console.log("play cliceckkes");
|
|
@@ -2399,14 +2442,14 @@ var NewBlerp$1 = function NewBlerp(_ref9) {
|
|
|
2399
2442
|
alignItems: "center",
|
|
2400
2443
|
justifyContent: "center"
|
|
2401
2444
|
}
|
|
2402
|
-
}), /*#__PURE__*/React__default.createElement(Stack
|
|
2445
|
+
}), /*#__PURE__*/React__default.createElement(Stack, {
|
|
2403
2446
|
direction: "row",
|
|
2404
2447
|
justifyContent: "space-between",
|
|
2405
2448
|
width: "100%",
|
|
2406
2449
|
sx: {
|
|
2407
2450
|
position: "relative"
|
|
2408
2451
|
}
|
|
2409
|
-
}, /*#__PURE__*/React__default.createElement(Stack
|
|
2452
|
+
}, /*#__PURE__*/React__default.createElement(Stack, null, /*#__PURE__*/React__default.createElement(RatingInfo, {
|
|
2410
2453
|
rating: bite === null || bite === void 0 ? void 0 : bite.strictAudienceRating
|
|
2411
2454
|
}), /*#__PURE__*/React__default.createElement(AddedToIcons, {
|
|
2412
2455
|
hovering: hovering
|
|
@@ -2415,7 +2458,7 @@ var NewBlerp$1 = function NewBlerp(_ref9) {
|
|
|
2415
2458
|
onClick: function onClick(option) {
|
|
2416
2459
|
return handleAddToPlace();
|
|
2417
2460
|
}
|
|
2418
|
-
}), /*#__PURE__*/React__default.createElement(Stack
|
|
2461
|
+
}), /*#__PURE__*/React__default.createElement(Stack, {
|
|
2419
2462
|
sx: {
|
|
2420
2463
|
transition: "0.3s",
|
|
2421
2464
|
opacity: hovering ? "1" : "0",
|
|
@@ -2425,7 +2468,7 @@ var NewBlerp$1 = function NewBlerp(_ref9) {
|
|
|
2425
2468
|
}, renderPlayStateIcon()), /*#__PURE__*/React__default.createElement(BlerpWaveform, {
|
|
2426
2469
|
bite: bite,
|
|
2427
2470
|
hovering: hovering
|
|
2428
|
-
})), /*#__PURE__*/React__default.createElement(Text
|
|
2471
|
+
})), /*#__PURE__*/React__default.createElement(Text, {
|
|
2429
2472
|
sx: {
|
|
2430
2473
|
fontSize: "16px",
|
|
2431
2474
|
fontWeight: "400",
|
|
@@ -2439,7 +2482,7 @@ var NewBlerp$1 = function NewBlerp(_ref9) {
|
|
|
2439
2482
|
height: "23px",
|
|
2440
2483
|
margin: "10px 0 5px 0"
|
|
2441
2484
|
}
|
|
2442
|
-
}, bite === null || bite === void 0 ? void 0 : bite.title), /*#__PURE__*/React__default.createElement(Stack
|
|
2485
|
+
}, bite === null || bite === void 0 ? void 0 : bite.title), /*#__PURE__*/React__default.createElement(Stack, {
|
|
2443
2486
|
direction: "row",
|
|
2444
2487
|
alignItems: "center",
|
|
2445
2488
|
sx: {
|
|
@@ -2502,7 +2545,7 @@ var NewBlerp$1 = function NewBlerp(_ref9) {
|
|
|
2502
2545
|
})))), /*#__PURE__*/React__default.createElement(FavoriteIconWithCounter, {
|
|
2503
2546
|
saved: bite === null || bite === void 0 ? void 0 : bite.saved,
|
|
2504
2547
|
count: saveCount
|
|
2505
|
-
}), /*#__PURE__*/React__default.createElement(Text
|
|
2548
|
+
}), /*#__PURE__*/React__default.createElement(Text, {
|
|
2506
2549
|
sx: {
|
|
2507
2550
|
fontWeight: "300",
|
|
2508
2551
|
fontSize: "12px",
|
|
@@ -2512,7 +2555,7 @@ var NewBlerp$1 = function NewBlerp(_ref9) {
|
|
|
2512
2555
|
overflow: "hidden",
|
|
2513
2556
|
margin: "0 10px"
|
|
2514
2557
|
}
|
|
2515
|
-
}, bite === null || bite === void 0 ? void 0 : (_bite$ownerObject = bite.ownerObject) === null || _bite$ownerObject === void 0 ? void 0 : _bite$ownerObject.username), /*#__PURE__*/React__default.createElement(Text
|
|
2558
|
+
}, bite === null || bite === void 0 ? void 0 : (_bite$ownerObject = bite.ownerObject) === null || _bite$ownerObject === void 0 ? void 0 : _bite$ownerObject.username), /*#__PURE__*/React__default.createElement(Text, {
|
|
2516
2559
|
sx: {
|
|
2517
2560
|
fontWeight: "300",
|
|
2518
2561
|
fontSize: "12px",
|
|
@@ -91207,10 +91250,10 @@ var Theme = BlerpTheme;
|
|
|
91207
91250
|
var Box = Box$1;
|
|
91208
91251
|
var Container = Container$2;
|
|
91209
91252
|
var Grid = Grid$1;
|
|
91210
|
-
var Stack = Stack$
|
|
91253
|
+
var Stack = Stack$1;
|
|
91211
91254
|
var ImageList = ImageList$1;
|
|
91212
91255
|
var Autocomplete = Autocomplete$1;
|
|
91213
|
-
var Button = Button$
|
|
91256
|
+
var Button = Button$1;
|
|
91214
91257
|
var ButtonGroup = ButtonGroup$1;
|
|
91215
91258
|
var Checkbox = Checkbox$1;
|
|
91216
91259
|
var FloatingActionButton = Fab;
|
|
@@ -91246,15 +91289,15 @@ var Chip = Chip$1;
|
|
|
91246
91289
|
var Divider = Divider$1;
|
|
91247
91290
|
var List = List$1;
|
|
91248
91291
|
var Table = Table$1;
|
|
91249
|
-
var Tooltip = Tooltip$
|
|
91292
|
+
var Tooltip = Tooltip$1;
|
|
91250
91293
|
var Toolbar = Toolbar$1;
|
|
91251
91294
|
var Text = Typography;
|
|
91252
91295
|
var Modal = Modal$1;
|
|
91253
|
-
var Popover = Popover$
|
|
91296
|
+
var Popover = Popover$1;
|
|
91254
91297
|
var Blerp = Blerp$1;
|
|
91255
91298
|
var NewBlerp = NewBlerp$1;
|
|
91256
91299
|
var BlerpAudioContextProvider = BlerpAudioContextProvider$1;
|
|
91257
|
-
var IconButton = IconButton$
|
|
91300
|
+
var IconButton = IconButton$1;
|
|
91258
91301
|
var Toggle = Toggle$1;
|
|
91259
91302
|
var Dropdown = Dropdown$1;
|
|
91260
91303
|
var NewDropdown = NewDropdown$1;
|