@blerp/design 1.0.62 → 1.0.63
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 +692 -657
- package/dist/index.esm.js +692 -657
- package/dist/index.umd.js +692 -657
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -1402,7 +1402,7 @@ Blerp$1.propTypes = {
|
|
|
1402
1402
|
handleClickTitle: PropTypes__default['default'].func.isRequired
|
|
1403
1403
|
};
|
|
1404
1404
|
|
|
1405
|
-
var _templateObject$e, _templateObject2$9, _templateObject3$8, _templateObject4$6, _templateObject5$4, _templateObject6$4;
|
|
1405
|
+
var _templateObject$e, _templateObject2$9, _templateObject3$8, _templateObject4$6, _templateObject5$4, _templateObject6$4, _templateObject7$2, _templateObject8$1;
|
|
1406
1406
|
// _id: "5b237fbafca7167a35619410",
|
|
1407
1407
|
// title: "Crying",
|
|
1408
1408
|
// image: {
|
|
@@ -1421,7 +1421,7 @@ var _templateObject$e, _templateObject2$9, _templateObject3$8, _templateObject4$
|
|
|
1421
1421
|
// },
|
|
1422
1422
|
// };
|
|
1423
1423
|
|
|
1424
|
-
var BlerpImage$1 = styled__default['default'].div(_templateObject$e || (_templateObject$e = _taggedTemplateLiteral__default['default'](["\n height: 150px;\n width: 150px;\n background-image: url(", ");\n background-size: cover;\n
|
|
1424
|
+
var BlerpImage$1 = styled__default['default'].div(_templateObject$e || (_templateObject$e = _taggedTemplateLiteral__default['default'](["\n height: 150px;\n width: 150px;\n background-image: url(", ");\n background-size: cover;\n border-radius: 50%;\n position: relative;\n transition: 0.2s;\n\n &:hover {\n transform: scale(1.1);\n }\n"])), function (props) {
|
|
1425
1425
|
return props.url;
|
|
1426
1426
|
});
|
|
1427
1427
|
var zoomIn$1 = styled.keyframes(_templateObject2$9 || (_templateObject2$9 = _taggedTemplateLiteral__default['default'](["\n 0% {\n transform: scale(0);\n }\n\n 100%{\n transform: scale(1);\n }\n"])));
|
|
@@ -1430,16 +1430,30 @@ styled__default['default'].div(_templateObject3$8 || (_templateObject3$8 = _tagg
|
|
|
1430
1430
|
}, function (props) {
|
|
1431
1431
|
return props.theme.colors.notBlack;
|
|
1432
1432
|
}, zoomIn$1);
|
|
1433
|
-
var SaveContainer$1 = styled__default['default'].div(_templateObject4$6 || (_templateObject4$6 = _taggedTemplateLiteral__default['default'](["\n position: absolute
|
|
1433
|
+
var SaveContainer$1 = styled__default['default'].div(_templateObject4$6 || (_templateObject4$6 = _taggedTemplateLiteral__default['default'](["\n /* position: absolute; */\n top: 0;\n right: 0;\n width: 25px;\n height: 25px;\n opacity: 1;\n border-radius: 50%;\n display: flex;\n justify-content: center;\n align-items: center;\n padding: 5px;\n transition: 0.3s;\n background-color: ", ";\n\n &:hover {\n background-color: ", ";\n cursor: pointer;\n }\n\n &:hover svg {\n color: ", ";\n }\n"])), function (props) {
|
|
1434
|
+
return "".concat(props.theme.colors.notBlack, "8a");
|
|
1435
|
+
}, function (props) {
|
|
1436
|
+
return props.theme.colors.seafoam;
|
|
1437
|
+
}, function (props) {
|
|
1434
1438
|
return props.theme.colors.white;
|
|
1435
1439
|
});
|
|
1436
|
-
var BlerpImageScrim$1 = styled__default['default'].div(_templateObject5$4 || (_templateObject5$4 = _taggedTemplateLiteral__default['default'](["\n height: 150px;\n width: 150px;\n background-color: ", "10;\n /* position: absolute; */\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: 50%;\n
|
|
1440
|
+
var BlerpImageScrim$1 = styled__default['default'].div(_templateObject5$4 || (_templateObject5$4 = _taggedTemplateLiteral__default['default'](["\n height: 150px;\n width: 150px;\n background-color: ", "10;\n /* position: absolute; */\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: 50%;\n transition: 0.4s;\n\n &:hover {\n background-color: ", "98;\n }\n"])), function (props) {
|
|
1437
1441
|
return props.theme.colors.notBlackOverride;
|
|
1438
1442
|
}, function (props) {
|
|
1439
1443
|
return props.theme.colors.notBlackOverride;
|
|
1440
|
-
}
|
|
1441
|
-
styled__default['default'].div(_templateObject6$4 || (_templateObject6$4 = _taggedTemplateLiteral__default['default'](["\n display: -
|
|
1442
|
-
|
|
1444
|
+
});
|
|
1445
|
+
var PremiumPill = styled__default['default'].div(_templateObject6$4 || (_templateObject6$4 = _taggedTemplateLiteral__default['default'](["\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n border-radius: 20px;\n height: 25px;\n width: 75px;\n padding: 0 4px;\n margin: 0 0 0 8px;\n cursor: pointer;\n\n background-color: ", ";\n\n &:hover {\n background-color: ", ";\n cursor: pointer;\n }\n"])), function (props) {
|
|
1446
|
+
return props.isLocked ? "".concat(props.theme.colors.notBlack, "8a") : "".concat(props.theme.colors.notBlack, "9a");
|
|
1447
|
+
}, function (props) {
|
|
1448
|
+
return props.theme.colors.seafoam;
|
|
1449
|
+
});
|
|
1450
|
+
styled__default['default'].div(_templateObject7$2 || (_templateObject7$2 = _taggedTemplateLiteral__default['default'](["\n border-radius: 50%;\n width: 30px;\n height: 30px;\n display: flex;\n justify-content: center;\n align-items: center;\n padding: 8px;\n transition: 0.2s;\n margin-right: 0;\n cursor: pointer;\n background-color: ", ";\n\n &:hover {\n background-color: ", ";\n }\n"])), function (props) {
|
|
1451
|
+
return props.active ? props.theme.colors.ibisRed : props.theme.colors.grey5;
|
|
1452
|
+
}, function (props) {
|
|
1453
|
+
return props.theme.colors.ibisRed;
|
|
1454
|
+
});
|
|
1455
|
+
styled__default['default'].div(_templateObject8$1 || (_templateObject8$1 = _taggedTemplateLiteral__default['default'](["\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n overflow: hidden;\n margin: 5px 0;\n"])));
|
|
1456
|
+
var BlerpListViewPremium$1 = function BlerpListViewPremium(_ref) {
|
|
1443
1457
|
var _bite$image, _bite$image$original, _bite$image2, _bite$image2$original;
|
|
1444
1458
|
|
|
1445
1459
|
var bite = _ref.bite,
|
|
@@ -1451,13 +1465,17 @@ var BlerpListView$1 = function BlerpListView(_ref) {
|
|
|
1451
1465
|
secondaryActionButton = _ref.secondaryActionButton,
|
|
1452
1466
|
handleClickBackground = _ref.handleClickBackground,
|
|
1453
1467
|
handleClickPlay = _ref.handleClickPlay,
|
|
1454
|
-
handleClickSave = _ref.handleClickSave
|
|
1455
|
-
|
|
1456
|
-
handleClickUnsave = _ref.handleClickUnsave,
|
|
1468
|
+
handleClickSave = _ref.handleClickSave;
|
|
1469
|
+
_ref.handleClickThreeDot;
|
|
1470
|
+
var handleClickUnsave = _ref.handleClickUnsave,
|
|
1457
1471
|
handleClickTitle = _ref.handleClickTitle,
|
|
1458
1472
|
isLinkTitle = _ref.isLinkTitle,
|
|
1473
|
+
isLocked = _ref.isLocked,
|
|
1459
1474
|
fluid = _ref.fluid;
|
|
1460
1475
|
_ref.props;
|
|
1476
|
+
_ref.isPremium;
|
|
1477
|
+
var handleClickLock = _ref.handleClickLock,
|
|
1478
|
+
handleClickPremium = _ref.handleClickPremium;
|
|
1461
1479
|
|
|
1462
1480
|
var _useState = React.useState(false),
|
|
1463
1481
|
_useState2 = _slicedToArray__default['default'](_useState, 2);
|
|
@@ -1466,12 +1484,24 @@ var BlerpListView$1 = function BlerpListView(_ref) {
|
|
|
1466
1484
|
|
|
1467
1485
|
var _usePalette = reactPalette.usePalette(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);
|
|
1468
1486
|
_usePalette.loading;
|
|
1469
|
-
_usePalette.data;
|
|
1487
|
+
var data = _usePalette.data;
|
|
1470
1488
|
_usePalette.error;
|
|
1471
1489
|
|
|
1472
1490
|
var theme = React.useContext(styled.ThemeContext);
|
|
1473
1491
|
var size = useWindowSize();
|
|
1474
1492
|
|
|
1493
|
+
var _useState3 = React.useState(false),
|
|
1494
|
+
_useState4 = _slicedToArray__default['default'](_useState3, 2),
|
|
1495
|
+
isBlerpHovered = _useState4[0],
|
|
1496
|
+
setIsBlerpHovered = _useState4[1];
|
|
1497
|
+
|
|
1498
|
+
var _useState5 = React.useState(false),
|
|
1499
|
+
_useState6 = _slicedToArray__default['default'](_useState5, 2),
|
|
1500
|
+
actionButtonHovered = _useState6[0],
|
|
1501
|
+
setActionButtonHovered = _useState6[1];
|
|
1502
|
+
|
|
1503
|
+
console.log(data);
|
|
1504
|
+
|
|
1475
1505
|
var sizeParams;
|
|
1476
1506
|
var smallSize = {
|
|
1477
1507
|
width: 300,
|
|
@@ -1534,21 +1564,41 @@ var BlerpListView$1 = function BlerpListView(_ref) {
|
|
|
1534
1564
|
}
|
|
1535
1565
|
|
|
1536
1566
|
return /*#__PURE__*/React__default['default'].createElement(Box, {
|
|
1567
|
+
onMouseEnter: function onMouseEnter(e) {
|
|
1568
|
+
return setIsBlerpHovered(true);
|
|
1569
|
+
},
|
|
1570
|
+
onMouseLeave: function onMouseLeave(e) {
|
|
1571
|
+
return setIsBlerpHovered(false);
|
|
1572
|
+
},
|
|
1537
1573
|
sx: {
|
|
1538
1574
|
width: sizeParams.width,
|
|
1575
|
+
position: "relative",
|
|
1539
1576
|
minWidth: fluid && "300px",
|
|
1540
1577
|
borderRadius: "8px",
|
|
1541
1578
|
border: "2px transparent",
|
|
1542
|
-
|
|
1579
|
+
backgroundImage: "white",
|
|
1543
1580
|
backgroundOrigin: "border-box",
|
|
1544
1581
|
backgroundClip: "content-box, border-box",
|
|
1545
1582
|
boxShadow: "2px 2px 4px 0px #999999a1;",
|
|
1546
|
-
|
|
1583
|
+
// overflow: "hidden",
|
|
1547
1584
|
"&:hover": {
|
|
1548
|
-
|
|
1585
|
+
transition: "0.3s",
|
|
1586
|
+
bgcolor: "grey2.main"
|
|
1549
1587
|
}
|
|
1550
1588
|
}
|
|
1551
|
-
}, /*#__PURE__*/React__default['default'].createElement(
|
|
1589
|
+
}, /*#__PURE__*/React__default['default'].createElement(Stack, {
|
|
1590
|
+
sx: {
|
|
1591
|
+
position: "absolute",
|
|
1592
|
+
top: "0",
|
|
1593
|
+
bottom: "0",
|
|
1594
|
+
left: "0",
|
|
1595
|
+
right: "0",
|
|
1596
|
+
borderRadius: "8px",
|
|
1597
|
+
background: data ? "linear-gradient(90deg, ".concat(data.vibrant, ", ").concat(theme.colors.grey5Override, ")") : "notBlack.main",
|
|
1598
|
+
transition: "opacity .15s ease-in-out",
|
|
1599
|
+
opacity: isLocked ? isBlerpHovered ? ".8" : ".5" : isBlerpHovered ? "1" : ".8"
|
|
1600
|
+
}
|
|
1601
|
+
}), /*#__PURE__*/React__default['default'].createElement(Box, {
|
|
1552
1602
|
onClick: function onClick(e) {
|
|
1553
1603
|
e.stopPropagation();
|
|
1554
1604
|
handleClickBackground();
|
|
@@ -1574,13 +1624,13 @@ var BlerpListView$1 = function BlerpListView(_ref) {
|
|
|
1574
1624
|
width: "70%",
|
|
1575
1625
|
alignItems: "center",
|
|
1576
1626
|
sx: {
|
|
1577
|
-
cursor: "pointer"
|
|
1627
|
+
cursor: "pointer",
|
|
1628
|
+
minWidth: "30%"
|
|
1578
1629
|
}
|
|
1579
1630
|
}, /*#__PURE__*/React__default['default'].createElement(BlerpImage$1, {
|
|
1580
1631
|
style: {
|
|
1581
1632
|
width: sizeParams.imageSize,
|
|
1582
|
-
height: sizeParams.imageSize
|
|
1583
|
-
boxShadow: "0px 0px 0px 0px #999999a1;"
|
|
1633
|
+
height: sizeParams.imageSize
|
|
1584
1634
|
},
|
|
1585
1635
|
url: bite === null || bite === void 0 ? void 0 : (_bite$image2 = bite.image) === null || _bite$image2 === void 0 ? void 0 : (_bite$image2$original = _bite$image2.original) === null || _bite$image2$original === void 0 ? void 0 : _bite$image2$original.url
|
|
1586
1636
|
}, /*#__PURE__*/React__default['default'].createElement(BlerpImageScrim$1, {
|
|
@@ -1606,13 +1656,7 @@ var BlerpListView$1 = function BlerpListView(_ref) {
|
|
|
1606
1656
|
height: "30px",
|
|
1607
1657
|
color: "white.override"
|
|
1608
1658
|
}
|
|
1609
|
-
}))), isLinkTitle ? /*#__PURE__*/React__default['default'].createElement(
|
|
1610
|
-
href: "/soundbites/".concat(bite._id),
|
|
1611
|
-
style: {
|
|
1612
|
-
textDecoration: "none",
|
|
1613
|
-
width: "100%"
|
|
1614
|
-
}
|
|
1615
|
-
}, /*#__PURE__*/React__default['default'].createElement(Text, {
|
|
1659
|
+
}))), isLinkTitle ? /*#__PURE__*/React__default['default'].createElement(Text, {
|
|
1616
1660
|
textAlign: "left",
|
|
1617
1661
|
fontSize: sizeParams.fontSize,
|
|
1618
1662
|
noWrap: true,
|
|
@@ -1630,12 +1674,19 @@ var BlerpListView$1 = function BlerpListView(_ref) {
|
|
|
1630
1674
|
handleClickTitle();
|
|
1631
1675
|
}
|
|
1632
1676
|
}
|
|
1677
|
+
}, /*#__PURE__*/React__default['default'].createElement("a", {
|
|
1678
|
+
href: "/soundbites/".concat(bite._id),
|
|
1679
|
+
style: {
|
|
1680
|
+
textDecoration: "none",
|
|
1681
|
+
color: "white"
|
|
1682
|
+
}
|
|
1633
1683
|
}, bite.title)) : /*#__PURE__*/React__default['default'].createElement(Text, {
|
|
1634
1684
|
textAlign: "left",
|
|
1635
1685
|
fontSize: sizeParams.fontSize,
|
|
1636
1686
|
noWrap: true,
|
|
1637
1687
|
width: "80%",
|
|
1638
1688
|
marginLeft: "10px",
|
|
1689
|
+
color: "white.override",
|
|
1639
1690
|
sx: {
|
|
1640
1691
|
":hover": {
|
|
1641
1692
|
textDecoration: handleClickTitle ? "underline" : "none"
|
|
@@ -1648,64 +1699,120 @@ var BlerpListView$1 = function BlerpListView(_ref) {
|
|
|
1648
1699
|
}
|
|
1649
1700
|
}
|
|
1650
1701
|
}, bite.title)), /*#__PURE__*/React__default['default'].createElement(Stack, {
|
|
1651
|
-
direction: "row"
|
|
1652
|
-
|
|
1702
|
+
direction: "row",
|
|
1703
|
+
alignItems: "center"
|
|
1704
|
+
}, primaryActionButton ? primaryActionButton : isLocked ? /*#__PURE__*/React__default['default'].createElement(SaveContainer$1, {
|
|
1705
|
+
isLocked: isLocked,
|
|
1706
|
+
isBlerpHovered: isBlerpHovered,
|
|
1653
1707
|
onClick: function onClick(e) {
|
|
1654
1708
|
e.stopPropagation();
|
|
1655
|
-
|
|
1656
|
-
|
|
1709
|
+
|
|
1710
|
+
if (handleClickLock) {
|
|
1711
|
+
handleClickLock();
|
|
1712
|
+
}
|
|
1657
1713
|
},
|
|
1714
|
+
onMouseEnter: function onMouseEnter() {
|
|
1715
|
+
return setActionButtonHovered(true);
|
|
1716
|
+
},
|
|
1717
|
+
onMouseLeave: function onMouseLeave() {
|
|
1718
|
+
return setActionButtonHovered(false);
|
|
1719
|
+
}
|
|
1720
|
+
}, /*#__PURE__*/React__default['default'].createElement(Stack, {
|
|
1658
1721
|
sx: {
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
":hover": {
|
|
1664
|
-
backgroundColor: "grey3.main"
|
|
1722
|
+
position: "relative",
|
|
1723
|
+
top: "1px",
|
|
1724
|
+
"& svg": {
|
|
1725
|
+
color: "white.main"
|
|
1665
1726
|
}
|
|
1666
1727
|
}
|
|
1667
|
-
}, /*#__PURE__*/React__default['default'].createElement(
|
|
1728
|
+
}, /*#__PURE__*/React__default['default'].createElement(Tooltip, {
|
|
1729
|
+
title: "Unlock Premium"
|
|
1730
|
+
}, actionButtonHovered ? /*#__PURE__*/React__default['default'].createElement(OpenLockIcon, {
|
|
1668
1731
|
sx: {
|
|
1669
|
-
|
|
1732
|
+
fontSize: "22px",
|
|
1733
|
+
position: "relative",
|
|
1734
|
+
bottom: "2px",
|
|
1735
|
+
left: "0px"
|
|
1670
1736
|
}
|
|
1671
|
-
})
|
|
1737
|
+
}) : /*#__PURE__*/React__default['default'].createElement(LockRoundedIcon__default['default'], {
|
|
1738
|
+
sx: {
|
|
1739
|
+
fontSize: "16px",
|
|
1740
|
+
position: "relative",
|
|
1741
|
+
bottom: "1px"
|
|
1742
|
+
}
|
|
1743
|
+
})))) : /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null), !!handleClickPremium && /*#__PURE__*/React__default['default'].createElement(PremiumPill, {
|
|
1744
|
+
isLocked: isLocked,
|
|
1745
|
+
isBlerpHovered: isBlerpHovered,
|
|
1672
1746
|
onClick: function onClick(e) {
|
|
1673
1747
|
e.stopPropagation();
|
|
1674
|
-
|
|
1748
|
+
handleClickPremium();
|
|
1749
|
+
}
|
|
1750
|
+
}, /*#__PURE__*/React__default['default'].createElement(DiamondIcon, {
|
|
1751
|
+
sx: {
|
|
1752
|
+
width: "16px",
|
|
1753
|
+
marginRight: "4px",
|
|
1754
|
+
color: "white.main"
|
|
1755
|
+
}
|
|
1756
|
+
}), /*#__PURE__*/React__default['default'].createElement(Text, {
|
|
1757
|
+
sx: {
|
|
1758
|
+
marginRight: "4px",
|
|
1759
|
+
color: "white.main",
|
|
1760
|
+
fontSize: "12px"
|
|
1761
|
+
}
|
|
1762
|
+
}, "Premium")), secondaryActionButton || bite !== null && bite !== void 0 && bite.saved ? /*#__PURE__*/React__default['default'].createElement(IconButton, {
|
|
1763
|
+
onClick: function onClick(e) {
|
|
1764
|
+
e.stopPropagation();
|
|
1765
|
+
|
|
1766
|
+
if (handleClickUnsave) {
|
|
1767
|
+
handleClickUnsave();
|
|
1768
|
+
}
|
|
1769
|
+
|
|
1675
1770
|
setOpenSave(true);
|
|
1676
1771
|
},
|
|
1677
1772
|
sx: {
|
|
1678
1773
|
backgroundColor: "white.override",
|
|
1679
1774
|
color: "starling.main",
|
|
1680
1775
|
padding: "5px",
|
|
1681
|
-
|
|
1776
|
+
margin: "0 8px",
|
|
1682
1777
|
":hover": {
|
|
1683
|
-
backgroundColor: "
|
|
1778
|
+
backgroundColor: "seafoam.main"
|
|
1779
|
+
},
|
|
1780
|
+
":hover svg": {
|
|
1781
|
+
color: "white.main"
|
|
1684
1782
|
}
|
|
1685
1783
|
}
|
|
1686
|
-
}, /*#__PURE__*/React__default['default'].createElement(
|
|
1784
|
+
}, /*#__PURE__*/React__default['default'].createElement(BookmarkOutlinedIcon__default['default'], {
|
|
1687
1785
|
sx: {
|
|
1688
|
-
color: "
|
|
1786
|
+
color: "starling.main"
|
|
1689
1787
|
}
|
|
1690
|
-
}))
|
|
1788
|
+
})) : /*#__PURE__*/React__default['default'].createElement(IconButton, {
|
|
1691
1789
|
onClick: function onClick(e) {
|
|
1692
|
-
|
|
1790
|
+
e.stopPropagation();
|
|
1791
|
+
|
|
1792
|
+
if (handleClickSave) {
|
|
1793
|
+
handleClickSave();
|
|
1794
|
+
}
|
|
1795
|
+
|
|
1796
|
+
setOpenSave(true);
|
|
1693
1797
|
},
|
|
1694
1798
|
sx: {
|
|
1695
1799
|
backgroundColor: "white.override",
|
|
1696
1800
|
padding: "5px",
|
|
1697
1801
|
marginRight: "10px",
|
|
1698
1802
|
":hover": {
|
|
1699
|
-
backgroundColor: "
|
|
1803
|
+
backgroundColor: "seafoam.main"
|
|
1804
|
+
},
|
|
1805
|
+
":hover svg": {
|
|
1806
|
+
color: "white.main"
|
|
1700
1807
|
}
|
|
1701
1808
|
}
|
|
1702
|
-
}, /*#__PURE__*/React__default['default'].createElement(
|
|
1809
|
+
}, /*#__PURE__*/React__default['default'].createElement(BookmarkAddOutlinedIcon__default['default'], {
|
|
1703
1810
|
sx: {
|
|
1704
|
-
color: "
|
|
1811
|
+
color: "starling.main"
|
|
1705
1812
|
}
|
|
1706
1813
|
})))), extraInfoComponent && extraInfoComponent);
|
|
1707
1814
|
};
|
|
1708
|
-
|
|
1815
|
+
BlerpListViewPremium$1.propTypes = {
|
|
1709
1816
|
bite: PropTypes__default['default'].object.isRequired,
|
|
1710
1817
|
collections: PropTypes__default['default'].array.isRequired,
|
|
1711
1818
|
variantSize: PropTypes__default['default'].string.isRequired,
|
|
@@ -1723,97 +1830,106 @@ BlerpListView$1.propTypes = {
|
|
|
1723
1830
|
handleClickUnsave: PropTypes__default['default'].func.isRequired
|
|
1724
1831
|
};
|
|
1725
1832
|
|
|
1726
|
-
var _templateObject$d, _templateObject2$8, _templateObject3$7, _templateObject4$5, _templateObject5$3, _templateObject6$3
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1833
|
+
var _templateObject$d, _templateObject2$8, _templateObject3$7, _templateObject4$5, _templateObject5$3, _templateObject6$3;
|
|
1834
|
+
// _id: "5b237fbafca7167a35619410",
|
|
1835
|
+
// title: "Crying",
|
|
1836
|
+
// image: {
|
|
1837
|
+
// filename: "72a3a8e4-1c5e-4fb7-a2fb-6185253f8b81",
|
|
1838
|
+
// original: {
|
|
1839
|
+
// url:
|
|
1840
|
+
// "https://blerp-content-images-1144.storage.googleapis.com/original/72a3a8e4-1c5e-4fb7-a2fb-6185253f8b81?X-Goog-Algorithm=GOOG4-RSA-SHA256&X-Goog-Credential=gke-prod%40blerp-cf7ae.iam.gserviceaccount.com%2F20210607%2Fauto%2Fstorage%2Fgoog4_request&X-Goog-Date=20210607T172722Z&X-Goog-Expires=518400&X-Goog-SignedHeaders=host&X-Goog-Signature=03746d6018c257bf5b34e773fb39d0dd502ee337dcb654c2b0d2dcf1c0bacc704cfae0daf0028a00339e15529a0fbcf613a83760422433f25577db978f704806100ed6c71f7176aaa23fc08c3d99692eec6fda7cdac3eb95ae6e26c65a8495f17e4da4895730c57c9e5f66509ae90f7c00c4da944caab44396f53de1bf0bc7710159f92430f571b47b893bea452da14a1667b373faa8d195f31cd23ea72b3db17d0557e0fded6411fc1564207aede8b6aa768c9fc63323a4af42c496f2a9b3a8290c68e96bf0f39aa097f2c6a0a3b47312b7f3040dc9b77736f6ea55b5fac41140ec6c7e837b827b5210d43a4b6299b55f65dc16da26c1f39f644919ac68ac6c",
|
|
1841
|
+
// },
|
|
1842
|
+
// },
|
|
1843
|
+
// audio: {
|
|
1844
|
+
// filename: "4d6796be-a58c-4c12-9949-fd832cbf646d",
|
|
1845
|
+
// original: {
|
|
1846
|
+
// url:
|
|
1847
|
+
// "https://blerp-content-audio-1144.storage.googleapis.com/mp3/4d6796be-a58c-4c12-9949-fd832cbf646d?X-Goog-Algorithm=GOOG4-RSA-SHA256&X-Goog-Credential=gke-prod%40blerp-cf7ae.iam.gserviceaccount.com%2F20210607%2Fauto%2Fstorage%2Fgoog4_request&X-Goog-Date=20210607T172722Z&X-Goog-Expires=518400&X-Goog-SignedHeaders=host&X-Goog-Signature=40f5a61ce407158c9e324a8fb09c459dde051d29ec0f528dc1a6f3ed7e02638a4deaabb980289daa6b0498069718389d8b1a95b10e7097df3f8be2cee452274fdb876f5e553c868de683dc222bcaa19144e6879fbcc84145aa9d6837efea1b8cc06efde3d459f3f721d9a2a7e9d775a36e916809b1e1be999fc7331590affdc7149c7b24da4c48b3096119d7e6f225c4026a82bc16751a8fb1e8129c9ed835db30858306010769db97478305a9224d498b001589baad3e23ad94c1ea7c6d4721f27bcbc24fa75968e8bafcdaf250ff58e16e9b0a47f68cca496d93014a2e792262de6876a8ccc9776da8ffa21c194b9c7228e8748075207335fa91aace2250c0",
|
|
1848
|
+
// },
|
|
1849
|
+
// },
|
|
1850
|
+
// };
|
|
1851
|
+
|
|
1852
|
+
var BlerpImage = styled__default['default'].div(_templateObject$d || (_templateObject$d = _taggedTemplateLiteral__default['default'](["\n height: 150px;\n width: 150px;\n background-image: url(", ");\n background-size: cover;\n /* border-radius: 8px; */\n border-radius: 50%;\n position: relative;\n transition: 0.2s;\n\n &:hover {\n transform: scale(1.1);\n }\n"])), function (props) {
|
|
1853
|
+
return props.url;
|
|
1738
1854
|
});
|
|
1739
|
-
var
|
|
1740
|
-
|
|
1855
|
+
var zoomIn = styled.keyframes(_templateObject2$8 || (_templateObject2$8 = _taggedTemplateLiteral__default['default'](["\n 0% {\n transform: scale(0);\n }\n\n 100%{\n transform: scale(1);\n }\n"])));
|
|
1856
|
+
styled__default['default'].div(_templateObject3$7 || (_templateObject3$7 = _taggedTemplateLiteral__default['default'](["\n height: 100%;\n width: 100%;\n position: absolute;\n border-radius: 8px;\n transform: scale(0);\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: space-around;\n background-color: ", "D3;\n border: 2px solid ", "D3;\n backdrop-filter: blur(4px);\n animation: ", " 0.2s forwards;\n"])), function (props) {
|
|
1857
|
+
return props.theme.colors.notBlack;
|
|
1858
|
+
}, function (props) {
|
|
1859
|
+
return props.theme.colors.notBlack;
|
|
1860
|
+
}, zoomIn);
|
|
1861
|
+
var SaveContainer = styled__default['default'].div(_templateObject4$5 || (_templateObject4$5 = _taggedTemplateLiteral__default['default'](["\n position: absolute;\n top: 0;\n right: 0;\n width: 25px;\n height: 25px;\n opacity: 0;\n border-radius: 50%;\n display: flex;\n justify-content: center;\n align-items: center;\n padding: 5px;\n transition: 0.3s;\n background-color: ", ";\n"])), function (props) {
|
|
1741
1862
|
return props.theme.colors.white;
|
|
1742
1863
|
});
|
|
1743
|
-
var
|
|
1744
|
-
return props.theme.colors.grey5;
|
|
1745
|
-
});
|
|
1746
|
-
var BackBox = styled__default['default'].div(_templateObject5$3 || (_templateObject5$3 = _taggedTemplateLiteral__default['default'](["\n background-color: blue;\n background-color: ", ";\n position: absolute;\n width: 100%;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n height: 100%;\n border-radius: 8px;\n border-right-width: 0px;\n border-left-width: 0px;\n transition: 0.2s;\n overflow: hidden;\n"])), function (props) {
|
|
1747
|
-
return props.theme.colors.grey7;
|
|
1748
|
-
});
|
|
1749
|
-
var PhotoBackground = styled__default['default'].div(_templateObject6$3 || (_templateObject6$3 = _taggedTemplateLiteral__default['default'](["\n position: absolute;\n width: 100%;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n background-image: url(", ");\n background-size: cover;\n border-radius: 8px;\n overflow: hidden;\n background-position: center;\n"])), function (props) {
|
|
1750
|
-
return props.url;
|
|
1751
|
-
});
|
|
1752
|
-
var BlurBackground = styled__default['default'].div(_templateObject7$2 || (_templateObject7$2 = _taggedTemplateLiteral__default['default'](["\n position: absolute;\n width: 100%;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n border-radius: 8px;\n backdrop-filter: blur(4px);\n"])));
|
|
1753
|
-
var GradientBackground = styled__default['default'].div(_templateObject8$1 || (_templateObject8$1 = _taggedTemplateLiteral__default['default'](["\n width: 100%;\n opacity: 0.7;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n border-radius: 8px;\n width: 100%;\n height: 100%;\n"])));
|
|
1754
|
-
var InteractionBox = styled__default['default'].div(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral__default['default'](["\n display: flex;\n justify-content: space-between;\n align-items: center;\n width: calc(100% - 4px);\n height: 100%;\n border-radius: 8px;\n border-right-width: 0px;\n border-left-width: 0px;\n margin: 0 auto;\n transition: 0.2s;\n position: relative;\n"]))); // Box on the left of the Collection that is clicked to save/unsave
|
|
1755
|
-
|
|
1756
|
-
var SaveBox = styled__default['default'].div(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral__default['default'](["\n position: relative;\n border-radius: 4px;\n transition: 0.2s;\n box-shadow: 0px 0px 0px 0px #999999a1;\n cursor: pointer;\n\n &:hover {\n transform: scale(1.05);\n }\n"])));
|
|
1757
|
-
var SaveBoxTop = styled__default['default'].div(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral__default['default'](["\n z-index: 5;\n width: 100%;\n position: relative;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: 4px;\n transition: 0.4s;\n\n &:hover {\n background-color: ", "98;\n }\n"])), function (props) {
|
|
1864
|
+
var BlerpImageScrim = styled__default['default'].div(_templateObject5$3 || (_templateObject5$3 = _taggedTemplateLiteral__default['default'](["\n height: 150px;\n width: 150px;\n background-color: ", "10;\n /* position: absolute; */\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: 50%;\n /* border-radius: 8px; */\n transition: 0.4s;\n\n &:hover {\n background-color: ", "98;\n }\n\n &:hover ", " {\n opacity: 1;\n }\n"])), function (props) {
|
|
1758
1865
|
return props.theme.colors.notBlackOverride;
|
|
1759
|
-
})
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
var
|
|
1765
|
-
var _collection$image, _collection$image$ori, _collection$image2, _collection$image2$or;
|
|
1766
|
-
|
|
1767
|
-
var collection = _ref4.collection,
|
|
1768
|
-
variantSize = _ref4.variantSize,
|
|
1769
|
-
extraInfoComponent = _ref4.extraInfoComponent,
|
|
1770
|
-
primaryActionButton = _ref4.primaryActionButton,
|
|
1771
|
-
secondaryActionButton = _ref4.secondaryActionButton,
|
|
1772
|
-
handleClickBackground = _ref4.handleClickBackground,
|
|
1773
|
-
handleClickTitle = _ref4.handleClickTitle,
|
|
1774
|
-
isLinkTitle = _ref4.isLinkTitle,
|
|
1775
|
-
fluid = _ref4.fluid;
|
|
1776
|
-
|
|
1777
|
-
var _useState = React.useState(false),
|
|
1778
|
-
_useState2 = _slicedToArray__default['default'](_useState, 2);
|
|
1779
|
-
_useState2[0];
|
|
1780
|
-
_useState2[1]; // Will use this exclusively for picking colors from image...no ColorExtractor
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
var _usePalette = reactPalette.usePalette(collection === null || collection === void 0 ? void 0 : (_collection$image = collection.image) === null || _collection$image === void 0 ? void 0 : (_collection$image$ori = _collection$image.original) === null || _collection$image$ori === void 0 ? void 0 : _collection$image$ori.url);
|
|
1784
|
-
_usePalette.loading;
|
|
1785
|
-
var data = _usePalette.data;
|
|
1786
|
-
_usePalette.error;
|
|
1866
|
+
}, function (props) {
|
|
1867
|
+
return props.theme.colors.notBlackOverride;
|
|
1868
|
+
}, SaveContainer);
|
|
1869
|
+
styled__default['default'].div(_templateObject6$3 || (_templateObject6$3 = _taggedTemplateLiteral__default['default'](["\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n overflow: hidden;\n margin: 5px 0;\n"])));
|
|
1870
|
+
var BlerpListView$1 = function BlerpListView(_ref) {
|
|
1871
|
+
var _bite$image, _bite$image$original, _bite$image2, _bite$image2$original;
|
|
1787
1872
|
|
|
1788
|
-
var
|
|
1873
|
+
var bite = _ref.bite,
|
|
1874
|
+
variantSize = _ref.variantSize,
|
|
1875
|
+
isSelected = _ref.isSelected,
|
|
1876
|
+
playingState = _ref.playingState,
|
|
1877
|
+
extraInfoComponent = _ref.extraInfoComponent,
|
|
1878
|
+
primaryActionButton = _ref.primaryActionButton,
|
|
1879
|
+
secondaryActionButton = _ref.secondaryActionButton,
|
|
1880
|
+
handleClickBackground = _ref.handleClickBackground,
|
|
1881
|
+
handleClickPlay = _ref.handleClickPlay,
|
|
1882
|
+
handleClickSave = _ref.handleClickSave,
|
|
1883
|
+
handleClickThreeDot = _ref.handleClickThreeDot,
|
|
1884
|
+
handleClickUnsave = _ref.handleClickUnsave,
|
|
1885
|
+
handleClickTitle = _ref.handleClickTitle,
|
|
1886
|
+
isLinkTitle = _ref.isLinkTitle,
|
|
1887
|
+
fluid = _ref.fluid,
|
|
1888
|
+
props = _ref.props,
|
|
1889
|
+
isLocked = _ref.isLocked,
|
|
1890
|
+
isPremium = _ref.isPremium,
|
|
1891
|
+
handleClickLock = _ref.handleClickLock,
|
|
1892
|
+
handleClickPremium = _ref.handleClickPremium;
|
|
1893
|
+
|
|
1894
|
+
var _useState = React.useState(false),
|
|
1895
|
+
_useState2 = _slicedToArray__default['default'](_useState, 2);
|
|
1896
|
+
_useState2[0];
|
|
1897
|
+
var setOpenSave = _useState2[1];
|
|
1898
|
+
|
|
1899
|
+
var _usePalette = reactPalette.usePalette(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);
|
|
1900
|
+
_usePalette.loading;
|
|
1901
|
+
_usePalette.data;
|
|
1902
|
+
_usePalette.error;
|
|
1903
|
+
|
|
1904
|
+
var theme = React.useContext(styled.ThemeContext);
|
|
1789
1905
|
var size = useWindowSize();
|
|
1790
|
-
|
|
1906
|
+
|
|
1791
1907
|
var sizeParams;
|
|
1792
1908
|
var smallSize = {
|
|
1793
|
-
width:
|
|
1909
|
+
width: 300,
|
|
1794
1910
|
height: 40,
|
|
1795
1911
|
fontSize: "16px",
|
|
1796
|
-
|
|
1912
|
+
imageSize: "40px",
|
|
1797
1913
|
reactionSpacing: 1,
|
|
1798
1914
|
reactionPadding: "3px",
|
|
1799
1915
|
reactionSize: "20px",
|
|
1800
1916
|
buttonSize: "small"
|
|
1801
1917
|
};
|
|
1802
1918
|
var mediumSize = {
|
|
1803
|
-
width:
|
|
1919
|
+
width: 375,
|
|
1804
1920
|
height: 48,
|
|
1805
1921
|
fontSize: "18px",
|
|
1806
|
-
|
|
1922
|
+
imageSize: "48px",
|
|
1807
1923
|
reactionSpacing: 1,
|
|
1808
1924
|
reactionPadding: "3px",
|
|
1809
1925
|
reactionSize: "23px",
|
|
1810
1926
|
buttonSize: "medium"
|
|
1811
1927
|
};
|
|
1812
1928
|
var largeSize = {
|
|
1813
|
-
width:
|
|
1929
|
+
width: 440,
|
|
1814
1930
|
height: 56,
|
|
1815
1931
|
fontSize: "20px",
|
|
1816
|
-
|
|
1932
|
+
imageSize: "56px",
|
|
1817
1933
|
reactionSpacing: 1,
|
|
1818
1934
|
reactionPadding: "5px",
|
|
1819
1935
|
reactionSize: "30px",
|
|
@@ -1826,7 +1942,7 @@ var CollectionListViewPremium$1 = function CollectionListViewPremium(_ref4) {
|
|
|
1826
1942
|
width: "100%",
|
|
1827
1943
|
height: 48,
|
|
1828
1944
|
fontSize: "18px",
|
|
1829
|
-
|
|
1945
|
+
imageSize: "48px",
|
|
1830
1946
|
reactionSpacing: 1,
|
|
1831
1947
|
reactionPadding: "3px",
|
|
1832
1948
|
reactionSize: "23px",
|
|
@@ -1843,237 +1959,211 @@ var CollectionListViewPremium$1 = function CollectionListViewPremium(_ref4) {
|
|
|
1843
1959
|
if (variantSize === "small") {
|
|
1844
1960
|
sizeParams = smallSize;
|
|
1845
1961
|
} else if (variantSize === "medium") {
|
|
1846
|
-
console.log(variantSize);
|
|
1847
1962
|
sizeParams = mediumSize;
|
|
1848
1963
|
} else if (variantSize === "large") {
|
|
1849
1964
|
sizeParams = largeSize;
|
|
1850
1965
|
}
|
|
1851
1966
|
}
|
|
1852
1967
|
|
|
1853
|
-
|
|
1854
|
-
/*#__PURE__*/
|
|
1855
|
-
|
|
1968
|
+
if (isPremium) {
|
|
1969
|
+
return /*#__PURE__*/React__default['default'].createElement(BlerpListViewPremium$1, {
|
|
1970
|
+
bite: bite,
|
|
1971
|
+
variantSize: variantSize,
|
|
1972
|
+
isSelected: isSelected,
|
|
1973
|
+
playingState: playingState,
|
|
1974
|
+
extraInfoComponent: extraInfoComponent,
|
|
1975
|
+
primaryActionButton: primaryActionButton,
|
|
1976
|
+
secondaryActionButton: secondaryActionButton,
|
|
1977
|
+
handleClickBackground: handleClickBackground,
|
|
1978
|
+
handleClickPlay: handleClickPlay,
|
|
1979
|
+
handleClickSave: handleClickSave,
|
|
1980
|
+
handleClickThreeDot: handleClickThreeDot,
|
|
1981
|
+
handleClickUnsave: handleClickUnsave,
|
|
1982
|
+
handleClickTitle: handleClickTitle,
|
|
1983
|
+
isLinkTitle: isLinkTitle,
|
|
1984
|
+
fluid: fluid,
|
|
1985
|
+
props: props,
|
|
1986
|
+
isLocked: isLocked,
|
|
1987
|
+
isPremium: isPremium,
|
|
1988
|
+
handleClickLock: handleClickLock,
|
|
1989
|
+
handleClickPremium: handleClickPremium
|
|
1990
|
+
});
|
|
1991
|
+
}
|
|
1856
1992
|
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
fluid: fluid
|
|
1871
|
-
}, !(collection !== null && collection !== void 0 && collection.owned) && /*#__PURE__*/React__default['default'].createElement(YellowHoverBorder$1, {
|
|
1872
|
-
id: "yellow-border"
|
|
1873
|
-
}), /*#__PURE__*/React__default['default'].createElement(TopBox, {
|
|
1874
|
-
onClick: function onClick(e) {
|
|
1875
|
-
e.stopPropagation();
|
|
1876
|
-
handleClickBackground();
|
|
1877
|
-
},
|
|
1878
|
-
style: {
|
|
1879
|
-
borderBottomColor: extraInfoComponent && theme.colors.grey3,
|
|
1880
|
-
width: !(collection !== null && collection !== void 0 && collection.owned) ? "100%" : "90%"
|
|
1881
|
-
}
|
|
1882
|
-
}, /*#__PURE__*/React__default['default'].createElement(PhotoBackground, {
|
|
1883
|
-
url: collection === null || collection === void 0 ? void 0 : (_collection$image2 = collection.image) === null || _collection$image2 === void 0 ? void 0 : (_collection$image2$or = _collection$image2.original) === null || _collection$image2$or === void 0 ? void 0 : _collection$image2$or.url
|
|
1884
|
-
}), /*#__PURE__*/React__default['default'].createElement(BlurBackground, null), /*#__PURE__*/React__default['default'].createElement(GradientBackground, {
|
|
1885
|
-
style: {
|
|
1886
|
-
background: "linear-gradient(135deg,".concat(data.vibrant || "rgb(204,204,204)", ", #444444)")
|
|
1887
|
-
}
|
|
1888
|
-
}), /*#__PURE__*/React__default['default'].createElement(InteractionBox, {
|
|
1889
|
-
style: {
|
|
1890
|
-
borderBottomColor: extraInfoComponent && theme.colors.grey3
|
|
1993
|
+
return /*#__PURE__*/React__default['default'].createElement(Box, {
|
|
1994
|
+
sx: {
|
|
1995
|
+
width: sizeParams.width,
|
|
1996
|
+
minWidth: fluid && "300px",
|
|
1997
|
+
borderRadius: "8px",
|
|
1998
|
+
border: "2px transparent",
|
|
1999
|
+
bgcolor: "grey2.main",
|
|
2000
|
+
backgroundOrigin: "border-box",
|
|
2001
|
+
backgroundClip: "content-box, border-box",
|
|
2002
|
+
boxShadow: "2px 2px 4px 0px #999999a1;",
|
|
2003
|
+
transition: "0.3s",
|
|
2004
|
+
"&:hover": {
|
|
2005
|
+
bgcolor: "grey3.main"
|
|
1891
2006
|
}
|
|
1892
|
-
}
|
|
1893
|
-
|
|
1894
|
-
|
|
2007
|
+
}
|
|
2008
|
+
}, /*#__PURE__*/React__default['default'].createElement(Box, {
|
|
2009
|
+
onClick: function onClick(e) {
|
|
2010
|
+
e.stopPropagation();
|
|
2011
|
+
handleClickBackground();
|
|
2012
|
+
},
|
|
2013
|
+
sx: {
|
|
2014
|
+
width: "calc(100% - 4px)",
|
|
2015
|
+
height: sizeParams.height,
|
|
2016
|
+
display: "flex",
|
|
2017
|
+
flexDirection: "row",
|
|
1895
2018
|
alignItems: "center",
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
2019
|
+
justifyContent: "space-between",
|
|
2020
|
+
borderRadius: "8px",
|
|
2021
|
+
border: "2px solid transparent",
|
|
2022
|
+
borderRightWidth: "0px",
|
|
2023
|
+
borderLeftWidth: "0px",
|
|
2024
|
+
margin: "0 auto",
|
|
2025
|
+
borderBottomColor: extraInfoComponent && theme.colors.grey3,
|
|
2026
|
+
transition: "0.3s",
|
|
2027
|
+
position: "relative"
|
|
2028
|
+
}
|
|
2029
|
+
}, /*#__PURE__*/React__default['default'].createElement(Stack, {
|
|
2030
|
+
direction: "row",
|
|
2031
|
+
width: "70%",
|
|
2032
|
+
alignItems: "center",
|
|
2033
|
+
sx: {
|
|
2034
|
+
cursor: "pointer"
|
|
2035
|
+
}
|
|
2036
|
+
}, /*#__PURE__*/React__default['default'].createElement(BlerpImage, {
|
|
2037
|
+
style: {
|
|
2038
|
+
width: sizeParams.imageSize,
|
|
2039
|
+
height: sizeParams.imageSize,
|
|
2040
|
+
boxShadow: "0px 0px 0px 0px #999999a1;"
|
|
2041
|
+
},
|
|
2042
|
+
url: bite === null || bite === void 0 ? void 0 : (_bite$image2 = bite.image) === null || _bite$image2 === void 0 ? void 0 : (_bite$image2$original = _bite$image2.original) === null || _bite$image2$original === void 0 ? void 0 : _bite$image2$original.url
|
|
2043
|
+
}, /*#__PURE__*/React__default['default'].createElement(BlerpImageScrim, {
|
|
2044
|
+
style: {
|
|
2045
|
+
width: sizeParams.imageSize,
|
|
2046
|
+
height: sizeParams.imageSize
|
|
2047
|
+
},
|
|
2048
|
+
onClick: function onClick(e) {
|
|
2049
|
+
if (handleClickPlay) {
|
|
2050
|
+
e.stopPropagation();
|
|
2051
|
+
handleClickPlay();
|
|
1900
2052
|
}
|
|
1901
|
-
}
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
2053
|
+
}
|
|
2054
|
+
}, playingState === "playing" ? /*#__PURE__*/React__default['default'].createElement(iconsMaterial.PauseCircleOutlineRounded, {
|
|
2055
|
+
sx: {
|
|
2056
|
+
width: "30px",
|
|
2057
|
+
height: "30px",
|
|
2058
|
+
color: "white.override"
|
|
2059
|
+
}
|
|
2060
|
+
}) : /*#__PURE__*/React__default['default'].createElement(PlayOutlineIcon, {
|
|
2061
|
+
sx: {
|
|
2062
|
+
width: "30px",
|
|
2063
|
+
height: "30px",
|
|
2064
|
+
color: "white.override"
|
|
2065
|
+
}
|
|
2066
|
+
}))), isLinkTitle ? /*#__PURE__*/React__default['default'].createElement("a", {
|
|
2067
|
+
href: "/soundbites/".concat(bite._id),
|
|
2068
|
+
style: {
|
|
2069
|
+
textDecoration: "none",
|
|
2070
|
+
width: "100%"
|
|
2071
|
+
}
|
|
2072
|
+
}, /*#__PURE__*/React__default['default'].createElement(Text, {
|
|
2073
|
+
textAlign: "left",
|
|
2074
|
+
fontSize: sizeParams.fontSize,
|
|
2075
|
+
noWrap: true,
|
|
2076
|
+
width: "80%",
|
|
2077
|
+
marginLeft: "10px",
|
|
2078
|
+
color: "white.override",
|
|
2079
|
+
sx: {
|
|
2080
|
+
":hover": {
|
|
2081
|
+
textDecoration: handleClickTitle ? "underline" : "none"
|
|
1908
2082
|
}
|
|
1909
|
-
},
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
2083
|
+
},
|
|
2084
|
+
onClick: function onClick(e) {
|
|
2085
|
+
if (handleClickTitle) {
|
|
2086
|
+
e.stopPropagation();
|
|
2087
|
+
handleClickTitle();
|
|
1914
2088
|
}
|
|
1915
|
-
}
|
|
1916
|
-
|
|
1917
|
-
|
|
2089
|
+
}
|
|
2090
|
+
}, bite.title)) : /*#__PURE__*/React__default['default'].createElement(Text, {
|
|
2091
|
+
textAlign: "left",
|
|
2092
|
+
fontSize: sizeParams.fontSize,
|
|
2093
|
+
noWrap: true,
|
|
2094
|
+
width: "80%",
|
|
2095
|
+
marginLeft: "10px",
|
|
2096
|
+
sx: {
|
|
2097
|
+
":hover": {
|
|
2098
|
+
textDecoration: handleClickTitle ? "underline" : "none"
|
|
1918
2099
|
}
|
|
1919
|
-
}
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
position: "relative",
|
|
1925
|
-
bottom: "1px"
|
|
2100
|
+
},
|
|
2101
|
+
onClick: function onClick(e) {
|
|
2102
|
+
if (handleClickTitle) {
|
|
2103
|
+
e.stopPropagation();
|
|
2104
|
+
handleClickTitle();
|
|
1926
2105
|
}
|
|
1927
|
-
}
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
2106
|
+
}
|
|
2107
|
+
}, bite.title)), /*#__PURE__*/React__default['default'].createElement(Stack, {
|
|
2108
|
+
direction: "row"
|
|
2109
|
+
}, primaryActionButton ? primaryActionButton : bite !== null && bite !== void 0 && bite.saved ? /*#__PURE__*/React__default['default'].createElement(IconButton, {
|
|
2110
|
+
onClick: function onClick(e) {
|
|
2111
|
+
e.stopPropagation();
|
|
2112
|
+
handleClickUnsave();
|
|
2113
|
+
setOpenSave(true);
|
|
2114
|
+
},
|
|
2115
|
+
sx: {
|
|
2116
|
+
backgroundColor: "white.override",
|
|
2117
|
+
color: "starling.main",
|
|
2118
|
+
padding: "5px",
|
|
2119
|
+
marginRight: "10px",
|
|
2120
|
+
":hover": {
|
|
2121
|
+
backgroundColor: "grey3.main"
|
|
1934
2122
|
}
|
|
1935
|
-
}
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
}
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
}, /*#__PURE__*/React__default['default'].createElement(Text, {
|
|
1954
|
-
textAlign: "left",
|
|
1955
|
-
fontSize: sizeParams.fontSize,
|
|
1956
|
-
noWrap: true,
|
|
1957
|
-
color: collection !== null && collection !== void 0 && collection.image ? "white.override" : "notBlack",
|
|
1958
|
-
sx: {
|
|
1959
|
-
":hover": {
|
|
1960
|
-
textDecoration: handleClickTitle ? "underline" : "none"
|
|
1961
|
-
},
|
|
1962
|
-
"@media (max-width: 600px)": {
|
|
1963
|
-
maxWidth: "133px"
|
|
1964
|
-
}
|
|
1965
|
-
},
|
|
1966
|
-
onClick: function onClick(e) {
|
|
1967
|
-
if (handleClickTitle) {
|
|
1968
|
-
e.stopPropagation();
|
|
1969
|
-
handleClickTitle();
|
|
1970
|
-
}
|
|
1971
|
-
}
|
|
1972
|
-
}, collection.title)) : /*#__PURE__*/React__default['default'].createElement(Text, {
|
|
1973
|
-
textAlign: "left",
|
|
1974
|
-
fontSize: sizeParams.fontSize,
|
|
1975
|
-
noWrap: true,
|
|
1976
|
-
color: collection !== null && collection !== void 0 && collection.image ? "white.override" : "notBlack",
|
|
1977
|
-
sx: {
|
|
1978
|
-
position: "relative",
|
|
1979
|
-
left: "12px",
|
|
1980
|
-
":hover": {
|
|
1981
|
-
textDecoration: handleClickTitle ? "underline" : "none"
|
|
1982
|
-
},
|
|
1983
|
-
"@media (max-width: 600px)": {
|
|
1984
|
-
maxWidth: "133px"
|
|
1985
|
-
}
|
|
1986
|
-
},
|
|
1987
|
-
onClick: function onClick(e) {
|
|
1988
|
-
console.log("handle non-linkTitle click here");
|
|
1989
|
-
}
|
|
1990
|
-
}, collection.title)), /*#__PURE__*/React__default['default'].createElement(Stack, {
|
|
1991
|
-
direction: "row",
|
|
1992
|
-
justifyContent: "flex-end",
|
|
1993
|
-
alignItems: "center",
|
|
1994
|
-
sx: {
|
|
1995
|
-
height: "70%"
|
|
1996
|
-
}
|
|
1997
|
-
}, primaryActionButton ? primaryActionButton : /*#__PURE__*/React__default['default'].createElement(Stack, {
|
|
1998
|
-
direction: "row",
|
|
1999
|
-
justifyContent: "space-around",
|
|
2000
|
-
alignItems: "center",
|
|
2001
|
-
sx: {
|
|
2002
|
-
height: "100%",
|
|
2003
|
-
width: "102px",
|
|
2004
|
-
position: "relative"
|
|
2005
|
-
}
|
|
2006
|
-
}, /*#__PURE__*/React__default['default'].createElement(Stack, {
|
|
2007
|
-
sx: {
|
|
2008
|
-
borderRadius: "20px",
|
|
2009
|
-
position: "absolute",
|
|
2010
|
-
top: "0",
|
|
2011
|
-
bottom: "0",
|
|
2012
|
-
left: "0",
|
|
2013
|
-
right: "0",
|
|
2014
|
-
backgroundColor: "notBlack.main",
|
|
2015
|
-
opacity: ".5"
|
|
2016
|
-
}
|
|
2017
|
-
}), /*#__PURE__*/React__default['default'].createElement(DiamondIcon, {
|
|
2018
|
-
sx: {
|
|
2019
|
-
opacity: "1",
|
|
2020
|
-
zIndex: "2",
|
|
2021
|
-
color: "white.override",
|
|
2022
|
-
height: "18px"
|
|
2023
|
-
}
|
|
2024
|
-
}), /*#__PURE__*/React__default['default'].createElement(Text, {
|
|
2025
|
-
sx: {
|
|
2026
|
-
zIndex: "2",
|
|
2027
|
-
color: "white.override",
|
|
2028
|
-
fontWeight: "lighter",
|
|
2029
|
-
fontSize: "14px",
|
|
2030
|
-
cursor: "default",
|
|
2031
|
-
position: "relative",
|
|
2032
|
-
right: !(collection !== null && collection !== void 0 && collection.owned) ? "-2px" : "6px"
|
|
2033
|
-
}
|
|
2034
|
-
}, "Premium"), !(collection !== null && collection !== void 0 && collection.owned) && /*#__PURE__*/React__default['default'].createElement(LockRoundedIcon__default['default'], {
|
|
2035
|
-
sx: {
|
|
2036
|
-
zIndex: "2",
|
|
2037
|
-
color: "white.override",
|
|
2038
|
-
height: "14px"
|
|
2039
|
-
}
|
|
2040
|
-
})), secondaryActionButton || /*#__PURE__*/React__default['default'].createElement(IconButton, {
|
|
2041
|
-
id: "second-button",
|
|
2042
|
-
onClick: function onClick(e) {
|
|
2043
|
-
console.log("handle secondary button click here");
|
|
2044
|
-
},
|
|
2045
|
-
sx: {
|
|
2046
|
-
padding: "5px",
|
|
2047
|
-
transition: "opacity .4s ease-in-out, margin-left .4s ease-in-out, margin-right .4s ease-in-out",
|
|
2048
|
-
"&:hover": {
|
|
2049
|
-
backgroundColor: "grey6.main"
|
|
2050
|
-
}
|
|
2051
|
-
}
|
|
2052
|
-
}, /*#__PURE__*/React__default['default'].createElement(Stack, {
|
|
2053
|
-
sx: {
|
|
2054
|
-
borderRadius: "20px",
|
|
2055
|
-
position: "absolute",
|
|
2056
|
-
top: "0",
|
|
2057
|
-
bottom: "0",
|
|
2058
|
-
left: "0",
|
|
2059
|
-
right: "0",
|
|
2060
|
-
backgroundColor: "notBlack.main",
|
|
2061
|
-
opacity: ".5"
|
|
2123
|
+
}
|
|
2124
|
+
}, /*#__PURE__*/React__default['default'].createElement(BookmarkOutlinedIcon__default['default'], {
|
|
2125
|
+
sx: {
|
|
2126
|
+
color: "notBlack.override"
|
|
2127
|
+
}
|
|
2128
|
+
})) : /*#__PURE__*/React__default['default'].createElement(IconButton, {
|
|
2129
|
+
onClick: function onClick(e) {
|
|
2130
|
+
e.stopPropagation();
|
|
2131
|
+
handleClickSave();
|
|
2132
|
+
setOpenSave(true);
|
|
2133
|
+
},
|
|
2134
|
+
sx: {
|
|
2135
|
+
backgroundColor: "white.override",
|
|
2136
|
+
color: "starling.main",
|
|
2137
|
+
padding: "5px",
|
|
2138
|
+
marginRight: "10px",
|
|
2139
|
+
":hover": {
|
|
2140
|
+
backgroundColor: "grey3.main"
|
|
2062
2141
|
}
|
|
2063
|
-
}
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2142
|
+
}
|
|
2143
|
+
}, /*#__PURE__*/React__default['default'].createElement(BookmarkAddOutlinedIcon__default['default'], {
|
|
2144
|
+
sx: {
|
|
2145
|
+
color: "notBlack.override"
|
|
2146
|
+
}
|
|
2147
|
+
})), secondaryActionButton || /*#__PURE__*/React__default['default'].createElement(IconButton, {
|
|
2148
|
+
onClick: function onClick(e) {
|
|
2149
|
+
handleClickThreeDot(e);
|
|
2150
|
+
},
|
|
2151
|
+
sx: {
|
|
2152
|
+
backgroundColor: "white.override",
|
|
2153
|
+
padding: "5px",
|
|
2154
|
+
marginRight: "10px",
|
|
2155
|
+
":hover": {
|
|
2156
|
+
backgroundColor: "grey3.main"
|
|
2067
2157
|
}
|
|
2068
|
-
}
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
}
|
|
2073
|
-
);
|
|
2158
|
+
}
|
|
2159
|
+
}, /*#__PURE__*/React__default['default'].createElement(MoreHorizRoundedIcon__default['default'], {
|
|
2160
|
+
sx: {
|
|
2161
|
+
color: "notBlack.override"
|
|
2162
|
+
}
|
|
2163
|
+
})))), extraInfoComponent && extraInfoComponent);
|
|
2074
2164
|
};
|
|
2075
|
-
|
|
2076
|
-
|
|
2165
|
+
BlerpListView$1.propTypes = {
|
|
2166
|
+
bite: PropTypes__default['default'].object.isRequired,
|
|
2077
2167
|
collections: PropTypes__default['default'].array.isRequired,
|
|
2078
2168
|
variantSize: PropTypes__default['default'].string.isRequired,
|
|
2079
2169
|
userSignedIn: PropTypes__default['default'].object.isRequired,
|
|
@@ -2083,142 +2173,104 @@ CollectionListViewPremium$1.propTypes = {
|
|
|
2083
2173
|
getUserReactions: PropTypes__default['default'].func.isRequired,
|
|
2084
2174
|
createCollection: PropTypes__default['default'].func.isRequired,
|
|
2085
2175
|
handleClickBackground: PropTypes__default['default'].func.isRequired,
|
|
2176
|
+
handleClickPlay: PropTypes__default['default'].func.isRequired,
|
|
2177
|
+
handleClickThreeDot: PropTypes__default['default'].func.isRequired,
|
|
2086
2178
|
handleClickSave: PropTypes__default['default'].func.isRequired,
|
|
2087
2179
|
handleClickReaction: PropTypes__default['default'].func.isRequired,
|
|
2088
2180
|
handleClickUnsave: PropTypes__default['default'].func.isRequired
|
|
2089
2181
|
};
|
|
2090
2182
|
|
|
2091
|
-
var _templateObject$c, _templateObject2$7, _templateObject3$6, _templateObject4$4, _templateObject5$2, _templateObject6$2, _templateObject7$1, _templateObject8;
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
// audio: {
|
|
2102
|
-
// filename: "4d6796be-a58c-4c12-9949-fd832cbf646d",
|
|
2103
|
-
// original: {
|
|
2104
|
-
// url:
|
|
2105
|
-
// "https://blerp-content-audio-1144.storage.googleapis.com/mp3/4d6796be-a58c-4c12-9949-fd832cbf646d?X-Goog-Algorithm=GOOG4-RSA-SHA256&X-Goog-Credential=gke-prod%40blerp-cf7ae.iam.gserviceaccount.com%2F20210607%2Fauto%2Fstorage%2Fgoog4_request&X-Goog-Date=20210607T172722Z&X-Goog-Expires=518400&X-Goog-SignedHeaders=host&X-Goog-Signature=40f5a61ce407158c9e324a8fb09c459dde051d29ec0f528dc1a6f3ed7e02638a4deaabb980289daa6b0498069718389d8b1a95b10e7097df3f8be2cee452274fdb876f5e553c868de683dc222bcaa19144e6879fbcc84145aa9d6837efea1b8cc06efde3d459f3f721d9a2a7e9d775a36e916809b1e1be999fc7331590affdc7149c7b24da4c48b3096119d7e6f225c4026a82bc16751a8fb1e8129c9ed835db30858306010769db97478305a9224d498b001589baad3e23ad94c1ea7c6d4721f27bcbc24fa75968e8bafcdaf250ff58e16e9b0a47f68cca496d93014a2e792262de6876a8ccc9776da8ffa21c194b9c7228e8748075207335fa91aace2250c0",
|
|
2106
|
-
// },
|
|
2107
|
-
// },
|
|
2108
|
-
// };
|
|
2109
|
-
|
|
2110
|
-
var BlerpImage = styled__default['default'].div(_templateObject$c || (_templateObject$c = _taggedTemplateLiteral__default['default'](["\n height: 150px;\n width: 150px;\n background-image: url(", ");\n background-size: cover;\n border-radius: 50%;\n position: relative;\n transition: 0.2s;\n\n &:hover {\n transform: scale(1.1);\n }\n"])), function (props) {
|
|
2111
|
-
return props.url;
|
|
2112
|
-
});
|
|
2113
|
-
var zoomIn = styled.keyframes(_templateObject2$7 || (_templateObject2$7 = _taggedTemplateLiteral__default['default'](["\n 0% {\n transform: scale(0);\n }\n\n 100%{\n transform: scale(1);\n }\n"])));
|
|
2114
|
-
styled__default['default'].div(_templateObject3$6 || (_templateObject3$6 = _taggedTemplateLiteral__default['default'](["\n height: 100%;\n width: 100%;\n position: absolute;\n border-radius: 8px;\n transform: scale(0);\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: space-around;\n background-color: ", "D3;\n border: 2px solid ", "D3;\n backdrop-filter: blur(4px);\n animation: ", " 0.2s forwards;\n"])), function (props) {
|
|
2115
|
-
return props.theme.colors.notBlack;
|
|
2116
|
-
}, function (props) {
|
|
2117
|
-
return props.theme.colors.notBlack;
|
|
2118
|
-
}, zoomIn);
|
|
2119
|
-
var SaveContainer = styled__default['default'].div(_templateObject4$4 || (_templateObject4$4 = _taggedTemplateLiteral__default['default'](["\n /* position: absolute; */\n top: 0;\n right: 0;\n width: 25px;\n height: 25px;\n opacity: 1;\n border-radius: 50%;\n display: flex;\n justify-content: center;\n align-items: center;\n padding: 5px;\n transition: 0.3s;\n background-color: ", ";\n\n &:hover {\n background-color: ", ";\n cursor: pointer;\n }\n\n &:hover svg {\n color: ", ";\n }\n"])), function (props) {
|
|
2120
|
-
return "".concat(props.theme.colors.notBlack, "8a");
|
|
2121
|
-
}, function (props) {
|
|
2122
|
-
return props.theme.colors.seafoam;
|
|
2183
|
+
var _templateObject$c, _templateObject2$7, _templateObject3$6, _templateObject4$4, _templateObject5$2, _templateObject6$2, _templateObject7$1, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13;
|
|
2184
|
+
var MasterContainer = styled__default['default'].div(_templateObject$c || (_templateObject$c = _taggedTemplateLiteral__default['default'](["\n display: flex;\n /* The extra 4 pixels accounts for the width of the border in the transparent BlerpListView border */\n height: ", ";\n width: ", ";\n min-width: ", ";\n border-radius: 8px;\n background-origin: border-box;\n background-clip: content-box, border-box;\n box-shadow: 2px 2px 4px 0px #999999a1;\n position: relative;\n\n #second-button {\n opacity: 0;\n margin-left: 0px;\n margin-right: 15px;\n }\n\n :hover #yellow-border {\n opacity: 1;\n }\n :hover #second-button {\n opacity: 1;\n margin-left: 5px;\n margin-right: 10px;\n }\n :hover #mid-box {\n width: 96%;\n }\n :hover #back-box {\n width: ", ";\n }\n"])), function (_ref) {
|
|
2185
|
+
var sizeParams = _ref.sizeParams;
|
|
2186
|
+
return (sizeParams.height += 2) + "px";
|
|
2187
|
+
}, function (_ref2) {
|
|
2188
|
+
var sizeParams = _ref2.sizeParams;
|
|
2189
|
+
return sizeParams.width;
|
|
2190
|
+
}, function (_ref3) {
|
|
2191
|
+
var fluid = _ref3.fluid;
|
|
2192
|
+
return fluid ? "300px" : "0";
|
|
2123
2193
|
}, function (props) {
|
|
2194
|
+
return props.owned ? "102%" : "100%";
|
|
2195
|
+
});
|
|
2196
|
+
var YellowHoverBorder$1 = styled__default['default'].div(_templateObject2$7 || (_templateObject2$7 = _taggedTemplateLiteral__default['default'](["\n position: absolute;\n height: 113%;\n width: 102%;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n border: 3px solid rgb(255, 225, 76);\n border-radius: 14px;\n transition: opacity 0.2s ease-in-out;\n opacity: 0;\n"])));
|
|
2197
|
+
var TopBox = styled__default['default'].div(_templateObject3$6 || (_templateObject3$6 = _taggedTemplateLiteral__default['default'](["\n z-index: 3;\n border: 2px transparent;\n display: flex;\n justify-content: center;\n align-items: center;\n background-color: ", ";\n height: 100%;\n border-radius: 8px;\n border-right-width: 0px;\n border-left-width: 0px;\n transition: 0.2s;\n position: relative;\n overflow: hidden;\n"])), function (props) {
|
|
2124
2198
|
return props.theme.colors.white;
|
|
2125
2199
|
});
|
|
2126
|
-
var
|
|
2127
|
-
return props.theme.colors.
|
|
2128
|
-
}, function (props) {
|
|
2129
|
-
return props.theme.colors.notBlackOverride;
|
|
2200
|
+
var MidBox = styled__default['default'].div(_templateObject4$4 || (_templateObject4$4 = _taggedTemplateLiteral__default['default'](["\n z-index: 2;\n position: absolute;\n background-color: ", ";\n width: 95%;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n height: 100%;\n border-radius: 8px;\n border-right-width: 0px;\n border-left-width: 0px;\n transition: 0.2s;\n overflow: hidden;\n"])), function (props) {
|
|
2201
|
+
return props.theme.colors.grey5;
|
|
2130
2202
|
});
|
|
2131
|
-
var
|
|
2132
|
-
return props.
|
|
2133
|
-
}, function (props) {
|
|
2134
|
-
return props.theme.colors.seafoam;
|
|
2203
|
+
var BackBox = styled__default['default'].div(_templateObject5$2 || (_templateObject5$2 = _taggedTemplateLiteral__default['default'](["\n background-color: blue;\n background-color: ", ";\n position: absolute;\n width: 100%;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n height: 100%;\n border-radius: 8px;\n border-right-width: 0px;\n border-left-width: 0px;\n transition: 0.2s;\n overflow: hidden;\n"])), function (props) {
|
|
2204
|
+
return props.theme.colors.grey7;
|
|
2135
2205
|
});
|
|
2136
|
-
styled__default['default'].div(
|
|
2137
|
-
return props.
|
|
2138
|
-
}, function (props) {
|
|
2139
|
-
return props.theme.colors.ibisRed;
|
|
2206
|
+
var PhotoBackground = styled__default['default'].div(_templateObject6$2 || (_templateObject6$2 = _taggedTemplateLiteral__default['default'](["\n position: absolute;\n width: 100%;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n background-image: url(", ");\n background-size: cover;\n border-radius: 8px;\n overflow: hidden;\n background-position: center;\n"])), function (props) {
|
|
2207
|
+
return props.url;
|
|
2140
2208
|
});
|
|
2141
|
-
styled__default['default'].div(
|
|
2142
|
-
var
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
var bite = _ref.bite,
|
|
2146
|
-
variantSize = _ref.variantSize;
|
|
2147
|
-
_ref.isSelected;
|
|
2148
|
-
var playingState = _ref.playingState,
|
|
2149
|
-
extraInfoComponent = _ref.extraInfoComponent,
|
|
2150
|
-
primaryActionButton = _ref.primaryActionButton,
|
|
2151
|
-
secondaryActionButton = _ref.secondaryActionButton,
|
|
2152
|
-
handleClickBackground = _ref.handleClickBackground,
|
|
2153
|
-
handleClickPlay = _ref.handleClickPlay,
|
|
2154
|
-
handleClickSave = _ref.handleClickSave;
|
|
2155
|
-
_ref.handleClickThreeDot;
|
|
2156
|
-
var handleClickUnsave = _ref.handleClickUnsave,
|
|
2157
|
-
handleClickTitle = _ref.handleClickTitle,
|
|
2158
|
-
isLinkTitle = _ref.isLinkTitle,
|
|
2159
|
-
isLocked = _ref.isLocked,
|
|
2160
|
-
fluid = _ref.fluid;
|
|
2161
|
-
_ref.props;
|
|
2162
|
-
|
|
2163
|
-
var _useState = React.useState(false),
|
|
2164
|
-
_useState2 = _slicedToArray__default['default'](_useState, 2);
|
|
2165
|
-
_useState2[0];
|
|
2166
|
-
var setOpenSave = _useState2[1];
|
|
2209
|
+
var BlurBackground = styled__default['default'].div(_templateObject7$1 || (_templateObject7$1 = _taggedTemplateLiteral__default['default'](["\n position: absolute;\n width: 100%;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n border-radius: 8px;\n backdrop-filter: blur(4px);\n"])));
|
|
2210
|
+
var GradientBackground = styled__default['default'].div(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral__default['default'](["\n width: 100%;\n opacity: 0.7;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n border-radius: 8px;\n width: 100%;\n height: 100%;\n"])));
|
|
2211
|
+
var InteractionBox = styled__default['default'].div(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral__default['default'](["\n display: flex;\n justify-content: space-between;\n align-items: center;\n width: calc(100% - 4px);\n height: 100%;\n border-radius: 8px;\n border-right-width: 0px;\n border-left-width: 0px;\n margin: 0 auto;\n transition: 0.2s;\n position: relative;\n"]))); // Box on the left of the Collection that is clicked to save/unsave
|
|
2167
2212
|
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
isBlerpHovered = _useState4[0],
|
|
2179
|
-
setIsBlerpHovered = _useState4[1];
|
|
2213
|
+
var SaveBox = styled__default['default'].div(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral__default['default'](["\n position: relative;\n border-radius: 4px;\n transition: 0.2s;\n box-shadow: 0px 0px 0px 0px #999999a1;\n cursor: pointer;\n\n &:hover {\n transform: scale(1.05);\n }\n"])));
|
|
2214
|
+
var SaveBoxTop = styled__default['default'].div(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral__default['default'](["\n z-index: 5;\n width: 100%;\n position: relative;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: 4px;\n transition: 0.4s;\n\n &:hover {\n background-color: ", "98;\n }\n"])), function (props) {
|
|
2215
|
+
return props.theme.colors.notBlackOverride;
|
|
2216
|
+
});
|
|
2217
|
+
var SaveBoxTopDarken = styled__default['default'].div(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral__default['default'](["\n opacity: 1;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n border-radius: 4px;\n"])));
|
|
2218
|
+
var SaveBoxShadowSquare = styled__default['default'].div(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral__default['default'](["\n position: absolute;\n height: 100%;\n width: 100%;\n border-radius: 4px;\n ", ";\n"])), function (props) {
|
|
2219
|
+
return props.depth === "1" ? "\n transform: skewX(-5deg); \n left: 2px; \n height: 94%; \n bottom: 0" : props.depth === "2" ? "\n transform: skewX(-12deg); \n left: 5px; \n height: 83%; \n width:97%;\n bottom: 0" : "";
|
|
2220
|
+
});
|
|
2221
|
+
var CollectionListViewPremium$1 = function CollectionListViewPremium(_ref4) {
|
|
2222
|
+
var _collection$image, _collection$image$ori, _collection$image2, _collection$image2$or;
|
|
2180
2223
|
|
|
2181
|
-
var
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2224
|
+
var collection = _ref4.collection,
|
|
2225
|
+
variantSize = _ref4.variantSize,
|
|
2226
|
+
extraInfoComponent = _ref4.extraInfoComponent,
|
|
2227
|
+
primaryActionButton = _ref4.primaryActionButton,
|
|
2228
|
+
secondaryActionButton = _ref4.secondaryActionButton,
|
|
2229
|
+
handleClickBackground = _ref4.handleClickBackground,
|
|
2230
|
+
handleClickTitle = _ref4.handleClickTitle,
|
|
2231
|
+
isLinkTitle = _ref4.isLinkTitle,
|
|
2232
|
+
fluid = _ref4.fluid;
|
|
2185
2233
|
|
|
2186
|
-
|
|
2234
|
+
var _useState = React.useState(false),
|
|
2235
|
+
_useState2 = _slicedToArray__default['default'](_useState, 2);
|
|
2236
|
+
_useState2[0];
|
|
2237
|
+
_useState2[1]; // Will use this exclusively for picking colors from image...no ColorExtractor
|
|
2187
2238
|
|
|
2188
|
-
var handleClickLock = function handleClickLock(bite) {
|
|
2189
|
-
console.log("route to purchase modal with id: ".concat(bite));
|
|
2190
|
-
};
|
|
2191
2239
|
|
|
2192
|
-
var
|
|
2193
|
-
|
|
2194
|
-
|
|
2240
|
+
var _usePalette = reactPalette.usePalette(collection === null || collection === void 0 ? void 0 : (_collection$image = collection.image) === null || _collection$image === void 0 ? void 0 : (_collection$image$ori = _collection$image.original) === null || _collection$image$ori === void 0 ? void 0 : _collection$image$ori.url);
|
|
2241
|
+
_usePalette.loading;
|
|
2242
|
+
var data = _usePalette.data;
|
|
2243
|
+
_usePalette.error;
|
|
2195
2244
|
|
|
2245
|
+
var theme = React.useContext(styled.ThemeContext);
|
|
2246
|
+
var size = useWindowSize();
|
|
2247
|
+
console.log("Collleeeeection", collection);
|
|
2196
2248
|
var sizeParams;
|
|
2197
2249
|
var smallSize = {
|
|
2198
|
-
width:
|
|
2250
|
+
width: "300px",
|
|
2199
2251
|
height: 40,
|
|
2200
2252
|
fontSize: "16px",
|
|
2201
|
-
|
|
2253
|
+
saveBoxSize: "36px",
|
|
2202
2254
|
reactionSpacing: 1,
|
|
2203
2255
|
reactionPadding: "3px",
|
|
2204
2256
|
reactionSize: "20px",
|
|
2205
2257
|
buttonSize: "small"
|
|
2206
2258
|
};
|
|
2207
2259
|
var mediumSize = {
|
|
2208
|
-
width:
|
|
2260
|
+
width: "375px",
|
|
2209
2261
|
height: 48,
|
|
2210
2262
|
fontSize: "18px",
|
|
2211
|
-
|
|
2263
|
+
saveBoxSize: "44px",
|
|
2212
2264
|
reactionSpacing: 1,
|
|
2213
2265
|
reactionPadding: "3px",
|
|
2214
2266
|
reactionSize: "23px",
|
|
2215
2267
|
buttonSize: "medium"
|
|
2216
2268
|
};
|
|
2217
2269
|
var largeSize = {
|
|
2218
|
-
width:
|
|
2270
|
+
width: "440px",
|
|
2219
2271
|
height: 56,
|
|
2220
2272
|
fontSize: "20px",
|
|
2221
|
-
|
|
2273
|
+
saveBoxSize: "52px",
|
|
2222
2274
|
reactionSpacing: 1,
|
|
2223
2275
|
reactionPadding: "5px",
|
|
2224
2276
|
reactionSize: "30px",
|
|
@@ -2231,7 +2283,7 @@ var BlerpListViewPremium$1 = function BlerpListViewPremium(_ref) {
|
|
|
2231
2283
|
width: "100%",
|
|
2232
2284
|
height: 48,
|
|
2233
2285
|
fontSize: "18px",
|
|
2234
|
-
|
|
2286
|
+
saveBoxSize: "44px",
|
|
2235
2287
|
reactionSpacing: 1,
|
|
2236
2288
|
reactionPadding: "3px",
|
|
2237
2289
|
reactionSize: "23px",
|
|
@@ -2248,252 +2300,237 @@ var BlerpListViewPremium$1 = function BlerpListViewPremium(_ref) {
|
|
|
2248
2300
|
if (variantSize === "small") {
|
|
2249
2301
|
sizeParams = smallSize;
|
|
2250
2302
|
} else if (variantSize === "medium") {
|
|
2303
|
+
console.log(variantSize);
|
|
2251
2304
|
sizeParams = mediumSize;
|
|
2252
2305
|
} else if (variantSize === "large") {
|
|
2253
2306
|
sizeParams = largeSize;
|
|
2254
2307
|
}
|
|
2255
2308
|
}
|
|
2256
2309
|
|
|
2257
|
-
return
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2310
|
+
return (
|
|
2311
|
+
/*#__PURE__*/
|
|
2312
|
+
// This is the master container. All children's size should be in relation to this box. This box's should not be dependent on its children, but should be dependent on either screen size or the variantSize prop ONLY.
|
|
2313
|
+
|
|
2314
|
+
/* BIG PICTURE OF COMPONENT:
|
|
2315
|
+
Master Container
|
|
2316
|
+
- TopBox (solid white background)
|
|
2317
|
+
- PhotoBackground (if collection has photo)
|
|
2318
|
+
- BlurBackground (always applied)
|
|
2319
|
+
- Gradient Background (default is photo color --> black, fall back is white --> black)
|
|
2320
|
+
- Interaction Box (holds clickable elements)
|
|
2321
|
+
- MidBox (first "shadow")
|
|
2322
|
+
- BackBox (second "shadow")
|
|
2323
|
+
*/
|
|
2324
|
+
React__default['default'].createElement(MasterContainer, {
|
|
2325
|
+
owned: collection === null || collection === void 0 ? void 0 : collection.owned,
|
|
2326
|
+
sizeParams: sizeParams,
|
|
2327
|
+
fluid: fluid
|
|
2328
|
+
}, !(collection !== null && collection !== void 0 && collection.owned) && /*#__PURE__*/React__default['default'].createElement(YellowHoverBorder$1, {
|
|
2329
|
+
id: "yellow-border"
|
|
2330
|
+
}), /*#__PURE__*/React__default['default'].createElement(TopBox, {
|
|
2331
|
+
onClick: function onClick(e) {
|
|
2332
|
+
e.stopPropagation();
|
|
2333
|
+
handleClickBackground();
|
|
2334
|
+
},
|
|
2335
|
+
style: {
|
|
2336
|
+
borderBottomColor: extraInfoComponent && theme.colors.grey3,
|
|
2337
|
+
width: !(collection !== null && collection !== void 0 && collection.owned) ? "100%" : "90%"
|
|
2278
2338
|
}
|
|
2279
|
-
}
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
}), /*#__PURE__*/React__default['default'].createElement(Box, {
|
|
2293
|
-
onClick: function onClick(e) {
|
|
2294
|
-
e.stopPropagation();
|
|
2295
|
-
handleClickBackground();
|
|
2296
|
-
},
|
|
2297
|
-
sx: {
|
|
2298
|
-
width: "calc(100% - 4px)",
|
|
2299
|
-
height: sizeParams.height,
|
|
2300
|
-
display: "flex",
|
|
2301
|
-
flexDirection: "row",
|
|
2339
|
+
}, /*#__PURE__*/React__default['default'].createElement(PhotoBackground, {
|
|
2340
|
+
url: collection === null || collection === void 0 ? void 0 : (_collection$image2 = collection.image) === null || _collection$image2 === void 0 ? void 0 : (_collection$image2$or = _collection$image2.original) === null || _collection$image2$or === void 0 ? void 0 : _collection$image2$or.url
|
|
2341
|
+
}), /*#__PURE__*/React__default['default'].createElement(BlurBackground, null), /*#__PURE__*/React__default['default'].createElement(GradientBackground, {
|
|
2342
|
+
style: {
|
|
2343
|
+
background: "linear-gradient(135deg,".concat(data.vibrant || "rgb(204,204,204)", ", #444444)")
|
|
2344
|
+
}
|
|
2345
|
+
}), /*#__PURE__*/React__default['default'].createElement(InteractionBox, {
|
|
2346
|
+
style: {
|
|
2347
|
+
borderBottomColor: extraInfoComponent && theme.colors.grey3
|
|
2348
|
+
}
|
|
2349
|
+
}, /*#__PURE__*/React__default['default'].createElement(Stack, {
|
|
2350
|
+
direction: "row",
|
|
2351
|
+
justifyContent: "flex-start",
|
|
2302
2352
|
alignItems: "center",
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
borderLeftWidth: "0px",
|
|
2308
|
-
margin: "0 auto",
|
|
2309
|
-
borderBottomColor: extraInfoComponent && theme.colors.grey3,
|
|
2310
|
-
transition: "0.3s",
|
|
2311
|
-
position: "relative"
|
|
2312
|
-
}
|
|
2313
|
-
}, /*#__PURE__*/React__default['default'].createElement(Stack, {
|
|
2314
|
-
direction: "row",
|
|
2315
|
-
width: "70%",
|
|
2316
|
-
alignItems: "center",
|
|
2317
|
-
sx: {
|
|
2318
|
-
cursor: "pointer",
|
|
2319
|
-
minWidth: "30%"
|
|
2320
|
-
}
|
|
2321
|
-
}, /*#__PURE__*/React__default['default'].createElement(BlerpImage, {
|
|
2322
|
-
style: {
|
|
2323
|
-
width: sizeParams.imageSize,
|
|
2324
|
-
height: sizeParams.imageSize
|
|
2325
|
-
},
|
|
2326
|
-
url: bite === null || bite === void 0 ? void 0 : (_bite$image2 = bite.image) === null || _bite$image2 === void 0 ? void 0 : (_bite$image2$original = _bite$image2.original) === null || _bite$image2$original === void 0 ? void 0 : _bite$image2$original.url
|
|
2327
|
-
}, /*#__PURE__*/React__default['default'].createElement(BlerpImageScrim, {
|
|
2328
|
-
style: {
|
|
2329
|
-
width: sizeParams.imageSize,
|
|
2330
|
-
height: sizeParams.imageSize
|
|
2331
|
-
},
|
|
2332
|
-
onClick: function onClick(e) {
|
|
2333
|
-
if (handleClickPlay) {
|
|
2334
|
-
e.stopPropagation();
|
|
2335
|
-
handleClickPlay();
|
|
2353
|
+
sx: {
|
|
2354
|
+
position: "relative",
|
|
2355
|
+
width: "calc(100% - 180px)",
|
|
2356
|
+
left: "2px"
|
|
2336
2357
|
}
|
|
2337
|
-
}
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
}) : /*#__PURE__*/React__default['default'].createElement(PlayOutlineIcon, {
|
|
2345
|
-
sx: {
|
|
2346
|
-
width: "30px",
|
|
2347
|
-
height: "30px",
|
|
2348
|
-
color: "white.override"
|
|
2349
|
-
}
|
|
2350
|
-
}))), isLinkTitle ? /*#__PURE__*/React__default['default'].createElement(Text, {
|
|
2351
|
-
textAlign: "left",
|
|
2352
|
-
fontSize: sizeParams.fontSize,
|
|
2353
|
-
noWrap: true,
|
|
2354
|
-
width: "80%",
|
|
2355
|
-
marginLeft: "10px",
|
|
2356
|
-
color: "white.override",
|
|
2357
|
-
sx: {
|
|
2358
|
-
":hover": {
|
|
2359
|
-
textDecoration: handleClickTitle ? "underline" : "none"
|
|
2358
|
+
}, /*#__PURE__*/React__default['default'].createElement(SaveBox, {
|
|
2359
|
+
style: {
|
|
2360
|
+
width: sizeParams.saveBoxSize,
|
|
2361
|
+
height: sizeParams.saveBoxSize
|
|
2362
|
+
},
|
|
2363
|
+
onClick: function onClick(e) {
|
|
2364
|
+
console.log("handle save/unsave here");
|
|
2360
2365
|
}
|
|
2361
|
-
},
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
+
}, /*#__PURE__*/React__default['default'].createElement(SaveBoxTop, {
|
|
2367
|
+
style: {
|
|
2368
|
+
width: sizeParams.saveBoxSize,
|
|
2369
|
+
height: sizeParams.saveBoxSize,
|
|
2370
|
+
background: data.darkVibrant || "#999999"
|
|
2366
2371
|
}
|
|
2367
|
-
}
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
style: {
|
|
2371
|
-
textDecoration: "none",
|
|
2372
|
-
color: "white"
|
|
2373
|
-
}
|
|
2374
|
-
}, bite.title)) : /*#__PURE__*/React__default['default'].createElement(Text, {
|
|
2375
|
-
textAlign: "left",
|
|
2376
|
-
fontSize: sizeParams.fontSize,
|
|
2377
|
-
noWrap: true,
|
|
2378
|
-
width: "80%",
|
|
2379
|
-
marginLeft: "10px",
|
|
2380
|
-
color: "white.override",
|
|
2381
|
-
sx: {
|
|
2382
|
-
":hover": {
|
|
2383
|
-
textDecoration: handleClickTitle ? "underline" : "none"
|
|
2372
|
+
}, /*#__PURE__*/React__default['default'].createElement(SaveBoxTopDarken, {
|
|
2373
|
+
style: {
|
|
2374
|
+
background: "linear-gradient(".concat("rgba(0,0,0,0)", ", #000000)")
|
|
2384
2375
|
}
|
|
2385
|
-
},
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2376
|
+
}), collection !== null && collection !== void 0 && collection.saved ? /*#__PURE__*/React__default['default'].createElement(BookmarkOutlinedIcon__default['default'], {
|
|
2377
|
+
sx: {
|
|
2378
|
+
width: "30px",
|
|
2379
|
+
height: "30px",
|
|
2380
|
+
color: "white.override",
|
|
2381
|
+
position: "relative",
|
|
2382
|
+
bottom: "1px"
|
|
2390
2383
|
}
|
|
2391
|
-
}
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
onClick: function onClick(e) {
|
|
2399
|
-
e.stopPropagation();
|
|
2400
|
-
handleClickLock();
|
|
2401
|
-
},
|
|
2402
|
-
onMouseEnter: function onMouseEnter() {
|
|
2403
|
-
return setActionButtonHovered(true);
|
|
2404
|
-
},
|
|
2405
|
-
onMouseLeave: function onMouseLeave() {
|
|
2406
|
-
return setActionButtonHovered(false);
|
|
2407
|
-
}
|
|
2408
|
-
}, /*#__PURE__*/React__default['default'].createElement(Stack, {
|
|
2409
|
-
sx: {
|
|
2410
|
-
position: "relative",
|
|
2411
|
-
top: "1px",
|
|
2412
|
-
"& svg": {
|
|
2413
|
-
color: "white.main"
|
|
2384
|
+
}) : /*#__PURE__*/React__default['default'].createElement(BookmarkAddOutlinedIcon__default['default'], {
|
|
2385
|
+
sx: {
|
|
2386
|
+
width: "30px",
|
|
2387
|
+
height: "30px",
|
|
2388
|
+
color: "white.override",
|
|
2389
|
+
position: "relative",
|
|
2390
|
+
bottom: "1px"
|
|
2414
2391
|
}
|
|
2415
|
-
}
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
sx: {
|
|
2446
|
-
marginRight: "4px",
|
|
2447
|
-
color: "white.main",
|
|
2448
|
-
fontSize: "12px"
|
|
2449
|
-
}
|
|
2450
|
-
}, "Premium")), secondaryActionButton || bite !== null && bite !== void 0 && bite.saved ? /*#__PURE__*/React__default['default'].createElement(IconButton, {
|
|
2451
|
-
onClick: function onClick(e) {
|
|
2452
|
-
e.stopPropagation();
|
|
2453
|
-
handleClickUnsave();
|
|
2454
|
-
setOpenSave(true);
|
|
2455
|
-
},
|
|
2456
|
-
sx: {
|
|
2457
|
-
backgroundColor: "white.override",
|
|
2458
|
-
color: "starling.main",
|
|
2459
|
-
padding: "5px",
|
|
2460
|
-
marginRight: "10px",
|
|
2461
|
-
":hover": {
|
|
2462
|
-
backgroundColor: "seafoam.main"
|
|
2392
|
+
})), !(collection !== null && collection !== void 0 && collection.owned) && /*#__PURE__*/React__default['default'].createElement(SaveBoxShadowSquare, {
|
|
2393
|
+
depth: "2",
|
|
2394
|
+
style: {
|
|
2395
|
+
background: "linear-gradient(".concat(data.darkVibrant || "rgba(180,180,180,1)", ", rgba(0,0,0,1))")
|
|
2396
|
+
}
|
|
2397
|
+
}), !(collection !== null && collection !== void 0 && collection.owned) && /*#__PURE__*/React__default['default'].createElement(SaveBoxShadowSquare, {
|
|
2398
|
+
depth: "1",
|
|
2399
|
+
style: {
|
|
2400
|
+
background: "linear-gradient(".concat(data.darkVibrant || "rgba(230,230,230,1)", ", rgba(0,0,0,0))")
|
|
2401
|
+
}
|
|
2402
|
+
})), isLinkTitle ? /*#__PURE__*/React__default['default'].createElement("a", {
|
|
2403
|
+
href: "/sound-collection/".concat(collection._id),
|
|
2404
|
+
style: {
|
|
2405
|
+
textDecoration: "none",
|
|
2406
|
+
width: "calc(95% - ".concat(sizeParams.saveBoxSize, ")"),
|
|
2407
|
+
position: "relative",
|
|
2408
|
+
left: "12px"
|
|
2409
|
+
}
|
|
2410
|
+
}, /*#__PURE__*/React__default['default'].createElement(Text, {
|
|
2411
|
+
textAlign: "left",
|
|
2412
|
+
fontSize: sizeParams.fontSize,
|
|
2413
|
+
noWrap: true,
|
|
2414
|
+
color: collection !== null && collection !== void 0 && collection.image ? "white.override" : "notBlack",
|
|
2415
|
+
sx: {
|
|
2416
|
+
":hover": {
|
|
2417
|
+
textDecoration: handleClickTitle ? "underline" : "none"
|
|
2418
|
+
},
|
|
2419
|
+
"@media (max-width: 600px)": {
|
|
2420
|
+
maxWidth: "133px"
|
|
2421
|
+
}
|
|
2463
2422
|
},
|
|
2464
|
-
|
|
2465
|
-
|
|
2423
|
+
onClick: function onClick(e) {
|
|
2424
|
+
if (handleClickTitle) {
|
|
2425
|
+
e.stopPropagation();
|
|
2426
|
+
handleClickTitle();
|
|
2427
|
+
}
|
|
2466
2428
|
}
|
|
2467
|
-
}
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
marginRight: "10px",
|
|
2482
|
-
":hover": {
|
|
2483
|
-
backgroundColor: "seafoam.main"
|
|
2429
|
+
}, collection.title)) : /*#__PURE__*/React__default['default'].createElement(Text, {
|
|
2430
|
+
textAlign: "left",
|
|
2431
|
+
fontSize: sizeParams.fontSize,
|
|
2432
|
+
noWrap: true,
|
|
2433
|
+
color: collection !== null && collection !== void 0 && collection.image ? "white.override" : "notBlack",
|
|
2434
|
+
sx: {
|
|
2435
|
+
position: "relative",
|
|
2436
|
+
left: "12px",
|
|
2437
|
+
":hover": {
|
|
2438
|
+
textDecoration: handleClickTitle ? "underline" : "none"
|
|
2439
|
+
},
|
|
2440
|
+
"@media (max-width: 600px)": {
|
|
2441
|
+
maxWidth: "133px"
|
|
2442
|
+
}
|
|
2484
2443
|
},
|
|
2485
|
-
|
|
2486
|
-
|
|
2444
|
+
onClick: function onClick(e) {
|
|
2445
|
+
console.log("handle non-linkTitle click here");
|
|
2487
2446
|
}
|
|
2488
|
-
}
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2447
|
+
}, collection.title)), /*#__PURE__*/React__default['default'].createElement(Stack, {
|
|
2448
|
+
direction: "row",
|
|
2449
|
+
justifyContent: "flex-end",
|
|
2450
|
+
alignItems: "center",
|
|
2451
|
+
sx: {
|
|
2452
|
+
height: "70%"
|
|
2453
|
+
}
|
|
2454
|
+
}, primaryActionButton ? primaryActionButton : /*#__PURE__*/React__default['default'].createElement(Stack, {
|
|
2455
|
+
direction: "row",
|
|
2456
|
+
justifyContent: "space-around",
|
|
2457
|
+
alignItems: "center",
|
|
2458
|
+
sx: {
|
|
2459
|
+
height: "100%",
|
|
2460
|
+
width: "102px",
|
|
2461
|
+
position: "relative"
|
|
2462
|
+
}
|
|
2463
|
+
}, /*#__PURE__*/React__default['default'].createElement(Stack, {
|
|
2464
|
+
sx: {
|
|
2465
|
+
borderRadius: "20px",
|
|
2466
|
+
position: "absolute",
|
|
2467
|
+
top: "0",
|
|
2468
|
+
bottom: "0",
|
|
2469
|
+
left: "0",
|
|
2470
|
+
right: "0",
|
|
2471
|
+
backgroundColor: "notBlack.main",
|
|
2472
|
+
opacity: ".5"
|
|
2473
|
+
}
|
|
2474
|
+
}), /*#__PURE__*/React__default['default'].createElement(DiamondIcon, {
|
|
2475
|
+
sx: {
|
|
2476
|
+
opacity: "1",
|
|
2477
|
+
zIndex: "2",
|
|
2478
|
+
color: "white.override",
|
|
2479
|
+
height: "18px"
|
|
2480
|
+
}
|
|
2481
|
+
}), /*#__PURE__*/React__default['default'].createElement(Text, {
|
|
2482
|
+
sx: {
|
|
2483
|
+
zIndex: "2",
|
|
2484
|
+
color: "white.override",
|
|
2485
|
+
fontWeight: "lighter",
|
|
2486
|
+
fontSize: "14px",
|
|
2487
|
+
cursor: "default",
|
|
2488
|
+
position: "relative",
|
|
2489
|
+
right: !(collection !== null && collection !== void 0 && collection.owned) ? "-2px" : "6px"
|
|
2490
|
+
}
|
|
2491
|
+
}, "Premium"), !(collection !== null && collection !== void 0 && collection.owned) && /*#__PURE__*/React__default['default'].createElement(LockRoundedIcon__default['default'], {
|
|
2492
|
+
sx: {
|
|
2493
|
+
zIndex: "2",
|
|
2494
|
+
color: "white.override",
|
|
2495
|
+
height: "14px"
|
|
2496
|
+
}
|
|
2497
|
+
})), secondaryActionButton || /*#__PURE__*/React__default['default'].createElement(IconButton, {
|
|
2498
|
+
id: "second-button",
|
|
2499
|
+
onClick: function onClick(e) {
|
|
2500
|
+
console.log("handle secondary button click here");
|
|
2501
|
+
},
|
|
2502
|
+
sx: {
|
|
2503
|
+
padding: "5px",
|
|
2504
|
+
transition: "opacity .4s ease-in-out, margin-left .4s ease-in-out, margin-right .4s ease-in-out",
|
|
2505
|
+
"&:hover": {
|
|
2506
|
+
backgroundColor: "grey6.main"
|
|
2507
|
+
}
|
|
2508
|
+
}
|
|
2509
|
+
}, /*#__PURE__*/React__default['default'].createElement(Stack, {
|
|
2510
|
+
sx: {
|
|
2511
|
+
borderRadius: "20px",
|
|
2512
|
+
position: "absolute",
|
|
2513
|
+
top: "0",
|
|
2514
|
+
bottom: "0",
|
|
2515
|
+
left: "0",
|
|
2516
|
+
right: "0",
|
|
2517
|
+
backgroundColor: "notBlack.main",
|
|
2518
|
+
opacity: ".5"
|
|
2519
|
+
}
|
|
2520
|
+
}), /*#__PURE__*/React__default['default'].createElement(KeyboardArrowRightRoundedIcon__default['default'], {
|
|
2521
|
+
sx: {
|
|
2522
|
+
zIndex: "2",
|
|
2523
|
+
color: "white.override"
|
|
2524
|
+
}
|
|
2525
|
+
}))))), (collection === null || collection === void 0 ? void 0 : collection.owned) && /*#__PURE__*/React__default['default'].createElement(MidBox, {
|
|
2526
|
+
id: "mid-box"
|
|
2527
|
+
}), (collection === null || collection === void 0 ? void 0 : collection.owned) && /*#__PURE__*/React__default['default'].createElement(BackBox, {
|
|
2528
|
+
id: "back-box"
|
|
2529
|
+
}), extraInfoComponent && extraInfoComponent)
|
|
2530
|
+
);
|
|
2494
2531
|
};
|
|
2495
|
-
|
|
2496
|
-
|
|
2532
|
+
CollectionListViewPremium$1.propTypes = {
|
|
2533
|
+
collection: PropTypes__default['default'].object.isRequired,
|
|
2497
2534
|
collections: PropTypes__default['default'].array.isRequired,
|
|
2498
2535
|
variantSize: PropTypes__default['default'].string.isRequired,
|
|
2499
2536
|
userSignedIn: PropTypes__default['default'].object.isRequired,
|
|
@@ -2503,8 +2540,6 @@ BlerpListViewPremium$1.propTypes = {
|
|
|
2503
2540
|
getUserReactions: PropTypes__default['default'].func.isRequired,
|
|
2504
2541
|
createCollection: PropTypes__default['default'].func.isRequired,
|
|
2505
2542
|
handleClickBackground: PropTypes__default['default'].func.isRequired,
|
|
2506
|
-
handleClickPlay: PropTypes__default['default'].func.isRequired,
|
|
2507
|
-
handleClickThreeDot: PropTypes__default['default'].func.isRequired,
|
|
2508
2543
|
handleClickSave: PropTypes__default['default'].func.isRequired,
|
|
2509
2544
|
handleClickReaction: PropTypes__default['default'].func.isRequired,
|
|
2510
2545
|
handleClickUnsave: PropTypes__default['default'].func.isRequired
|