@blerp/design 1.2.53 → 1.2.55

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -6,10 +6,9 @@ import React__default, { useState, useEffect, useContext, useRef, createContext,
6
6
  import { ColorExtractor } from 'react-color-extractor';
7
7
  import styled, { ThemeContext, keyframes, ThemeProvider as ThemeProvider$1 } from 'styled-components';
8
8
  import _taggedTemplateLiteral from '@babel/runtime/helpers/taggedTemplateLiteral';
9
- import { PauseCircleOutlineRounded, LockRounded, VerifiedRounded, DiamondRounded, MusicNoteRounded, CheckRounded, BookmarkRounded, BookmarkAddOutlined, AccountCircleRounded, VisibilityOffRounded, CancelRounded } from '@mui/icons-material';
9
+ import { PauseCircleOutlineRounded, LockRounded, VerifiedRounded, DiamondRounded, CheckRounded, BookmarkRounded, BookmarkAddOutlined, AccountCircleRounded, VisibilityOffRounded, CancelRounded } from '@mui/icons-material';
10
10
  import BookmarkOutlinedIcon from '@mui/icons-material/BookmarkOutlined';
11
11
  import LockRoundedIcon from '@mui/icons-material/LockRounded';
12
- import _defineProperty from '@babel/runtime/helpers/defineProperty';
13
12
  import DoNotDisturbRoundedIcon from '@mui/icons-material/DoNotDisturbRounded';
14
13
  import FavoriteIcon from '@mui/icons-material/Favorite';
15
14
  import FavoriteBorderIcon from '@mui/icons-material/FavoriteBorder';
@@ -17,7 +16,12 @@ import PauseRoundedIcon from '@mui/icons-material/PauseRounded';
17
16
  import PlayArrowRoundedIcon from '@mui/icons-material/PlayArrowRounded';
18
17
  import WarningRoundedIcon from '@mui/icons-material/WarningRounded';
19
18
  import VisibilityOffRoundedIcon from '@mui/icons-material/VisibilityOffRounded';
20
- import VisibilityRoundedIcon from '@mui/icons-material/VisibilityRounded';
19
+ import '@mui/icons-material/VisibilityRounded';
20
+ import LanguageRoundedIcon from '@mui/icons-material/LanguageRounded';
21
+ import '@mui/icons-material/ThumbsUpDownRounded';
22
+ import ViewModuleRoundedIcon from '@mui/icons-material/ViewModuleRounded';
23
+ import LayersRoundedIcon from '@mui/icons-material/LayersRounded';
24
+ import _defineProperty from '@babel/runtime/helpers/defineProperty';
21
25
  import _asyncToGenerator from '@babel/runtime/helpers/asyncToGenerator';
22
26
  import _regeneratorRuntime from '@babel/runtime/regenerator';
23
27
  import BookmarkAddOutlinedIcon from '@mui/icons-material/BookmarkAddOutlined';
@@ -48,7 +52,6 @@ import PersonRemoveRoundedIcon from '@mui/icons-material/PersonRemoveRounded';
48
52
  import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
49
53
  import '@mui/icons-material/FilterAltRounded';
50
54
  import MenuRoundedIcon from '@mui/icons-material/MenuRounded';
51
- import ViewModuleRoundedIcon from '@mui/icons-material/ViewModuleRounded';
52
55
  import '@mui/icons-material/SettingsRounded';
53
56
  import SortRoundedIcon from '@mui/icons-material/SortRounded';
54
57
  import ChevronRightRoundedIcon from '@mui/icons-material/ChevronRightRounded';
@@ -1621,9 +1624,9 @@ var UserCard$1 = function UserCard(_ref) {
1621
1624
  }, "created")))));
1622
1625
  };
1623
1626
 
1624
- function ownKeys$7(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
1627
+ function ownKeys$6(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
1625
1628
 
1626
- function _objectSpread$7(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$7(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$7(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
1629
+ function _objectSpread$6(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$6(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$6(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
1627
1630
  var UsernameWithPopout$1 = function UsernameWithPopout(_ref) {
1628
1631
  var user = _ref.user,
1629
1632
  onUsernameClick = _ref.onUsernameClick,
@@ -1691,7 +1694,7 @@ var UsernameWithPopout$1 = function UsernameWithPopout(_ref) {
1691
1694
  collapsed: collapsed,
1692
1695
  user: user
1693
1696
  })), /*#__PURE__*/React__default.createElement(Text, {
1694
- sx: _objectSpread$7({
1697
+ sx: _objectSpread$6({
1695
1698
  fontWeight: "300",
1696
1699
  fontSize: "12px",
1697
1700
  color: "grey7.main",
@@ -1708,10 +1711,6 @@ var UsernameWithPopout$1 = function UsernameWithPopout(_ref) {
1708
1711
  };
1709
1712
 
1710
1713
  var _templateObject$g, _templateObject2$a, _templateObject3$8;
1711
-
1712
- function ownKeys$6(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
1713
-
1714
- function _objectSpread$6(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$6(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$6(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
1715
1714
  var PremiumContainer = styled.div(_templateObject$g || (_templateObject$g = _taggedTemplateLiteral(["\n background: transparent;\n overflow: hidden;\n min-width: 210px;\n max-width: 260px;\n width: 100%;\n max-height: 322px;\n flex: 1;\n min-height: 272px;\n aspect-ratio: 260 / 322;\n gap: 10px;\n border-radius: 18px;\n box-sizing: border-box;\n padding: 2px;\n position: relative;\n transition: 0.3s;\n"])));
1716
1715
  var Container$1 = styled.div(_templateObject2$a || (_templateObject2$a = _taggedTemplateLiteral(["\n background-color: ", ";\n background: ", ";\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n position: relative;\n height: 100%;\n padding: 10px;\n border-radius: 17px;\n box-sizing: border-box;\n"])), function (props) {
1717
1716
  return props.theme.colors.grey7;
@@ -1763,7 +1762,7 @@ var FavoriteIconWithCounter = function FavoriteIconWithCounter(_ref) {
1763
1762
  }, savedCount));
1764
1763
  };
1765
1764
  var AddedToIcons = function AddedToIcons(_ref2) {
1766
- var _item$channelPointsCo, _item$whitelistContex, _item$walkOnContext, _item$soundEmotesCont;
1765
+ var _item$soundEmotesCont, _item$channelPointsCo, _item$channelPointsBu, _item$whitelistContex, _item$walkOnChannelCo, _item$organizationalG;
1767
1766
 
1768
1767
  var item = _ref2.item,
1769
1768
  hovering = _ref2.hovering,
@@ -1773,35 +1772,45 @@ var AddedToIcons = function AddedToIcons(_ref2) {
1773
1772
  direction: "row",
1774
1773
  sx: {
1775
1774
  transition: "0.3s",
1776
- opacity: hide ? "0" : hovering ? "1" : "0",
1777
- alignItems: "center"
1775
+ opacity: hide ? "0" : hovering ? "0" : "1",
1776
+ alignItems: "start",
1777
+ justifyContent: "end",
1778
+ flexWrap: "wrap",
1779
+ flex: 1
1778
1780
  }
1779
- }, (item === null || item === void 0 ? void 0 : (_item$channelPointsCo = item.channelPointsContext) === null || _item$channelPointsCo === void 0 ? void 0 : _item$channelPointsCo._id) && /*#__PURE__*/React__default.createElement(Tooltip, {
1781
+ }, (item === null || item === void 0 ? void 0 : (_item$soundEmotesCont = item.soundEmotesContext) === null || _item$soundEmotesCont === void 0 ? void 0 : _item$soundEmotesCont.hasAdded) && /*#__PURE__*/React__default.createElement(Tooltip, {
1782
+ title: "Added to Universal Extension"
1783
+ }, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(LanguageRoundedIcon, {
1784
+ sx: {
1785
+ fontSize: "20px",
1786
+ filter: "drop-shadow(0px 0.972222px 8.75px rgba(0, 0, 0, 0.73))"
1787
+ }
1788
+ }))), ((item === null || item === void 0 ? void 0 : (_item$channelPointsCo = item.channelPointsContext) === null || _item$channelPointsCo === void 0 ? void 0 : _item$channelPointsCo._id) || (item === null || item === void 0 ? void 0 : (_item$channelPointsBu = item.channelPointsBucketsContext) === null || _item$channelPointsBu === void 0 ? void 0 : _item$channelPointsBu.length) > 0) && /*#__PURE__*/React__default.createElement(Tooltip, {
1780
1789
  title: "Added to Channel Points"
1781
1790
  }, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(ChannelPointsIcon, {
1782
1791
  sx: {
1783
- fontSize: "15px",
1792
+ fontSize: "20px",
1784
1793
  filter: "drop-shadow(0px 0.972222px 8.75px rgba(0, 0, 0, 0.73))"
1785
1794
  }
1786
1795
  }))), (item === null || item === void 0 ? void 0 : (_item$whitelistContex = item.whitelistContext) === null || _item$whitelistContex === void 0 ? void 0 : _item$whitelistContex._id) && /*#__PURE__*/React__default.createElement(Tooltip, {
1787
1796
  title: "Added to Bits Library"
1788
1797
  }, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(TwitchBitIcon, {
1789
1798
  sx: {
1790
- fontSize: "15px",
1799
+ fontSize: "20px",
1791
1800
  filter: "drop-shadow(0px 0.972222px 8.75px rgba(0, 0, 0, 0.73))"
1792
1801
  }
1793
- }))), (item === null || item === void 0 ? void 0 : (_item$walkOnContext = item.walkOnContext) === null || _item$walkOnContext === void 0 ? void 0 : _item$walkOnContext._id) && /*#__PURE__*/React__default.createElement(Tooltip, {
1802
+ }))), (item === null || item === void 0 ? void 0 : (_item$walkOnChannelCo = item.walkOnChannelContext) === null || _item$walkOnChannelCo === void 0 ? void 0 : _item$walkOnChannelCo._id) && /*#__PURE__*/React__default.createElement(Tooltip, {
1794
1803
  title: "Added to WalkOn"
1795
1804
  }, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(WalkonIcon, {
1796
1805
  sx: {
1797
- fontSize: "15px",
1806
+ fontSize: "20px",
1798
1807
  filter: "drop-shadow(0px 0.972222px 8.75px rgba(0, 0, 0, 0.73))"
1799
1808
  }
1800
- }))), (item === null || item === void 0 ? void 0 : (_item$soundEmotesCont = item.soundEmotesContext) === null || _item$soundEmotesCont === void 0 ? void 0 : _item$soundEmotesCont.hasAdded) && /*#__PURE__*/React__default.createElement(Tooltip, {
1801
- title: "Added to Sound Emotes"
1802
- }, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(MusicNoteRounded, {
1809
+ }))), (item === null || item === void 0 ? void 0 : (_item$organizationalG = item.organizationalGroupEdgesContext) === null || _item$organizationalG === void 0 ? void 0 : _item$organizationalG.length) > 0 && /*#__PURE__*/React__default.createElement(Tooltip, {
1810
+ title: "Added to Group"
1811
+ }, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(LayersRoundedIcon, {
1803
1812
  sx: {
1804
- fontSize: "15px",
1813
+ fontSize: "20px",
1805
1814
  filter: "drop-shadow(0px 0.972222px 8.75px rgba(0, 0, 0, 0.73))"
1806
1815
  }
1807
1816
  }))));
@@ -1823,28 +1832,18 @@ var RatingInfoItem = function RatingInfoItem(_ref3) {
1823
1832
  color: "notBlack.override",
1824
1833
  padding: "1px 2px",
1825
1834
  height: "auto",
1826
- width: "fit-content",
1827
- marginBottom: "12px"
1835
+ width: "fit-content"
1828
1836
  }
1829
1837
  }, displayText));
1830
1838
  };
1831
1839
 
1832
1840
  var RatingInfo = function RatingInfo(_ref4) {
1833
- var bite = _ref4.bite;
1841
+ var bite = _ref4.bite,
1842
+ hovering = _ref4.hovering;
1834
1843
  var ratingText = {
1835
1844
  tooltipText: "",
1836
1845
  text: ""
1837
1846
  };
1838
- var visStyle = {
1839
- fontSize: "23px",
1840
- fontWeight: "600",
1841
- backgroundColor: "#585858a3",
1842
- border: "4px solid transparent",
1843
- borderColor: "#585858a3",
1844
- borderRadius: "4px",
1845
- color: "whiteOverride.main",
1846
- marginBottom: "12px"
1847
- };
1848
1847
 
1849
1848
  if (bite !== null && bite !== void 0 && bite.newAudienceRating) {
1850
1849
  var _bite$newAudienceRati, _bite$newAudienceRati2;
@@ -1857,16 +1856,14 @@ var RatingInfo = function RatingInfo(_ref4) {
1857
1856
 
1858
1857
  return /*#__PURE__*/React__default.createElement(Stack, {
1859
1858
  direction: "row",
1860
- alignItems: "center"
1861
- }, (bite === null || bite === void 0 ? void 0 : bite.visibility) === "PRIVATE" && /*#__PURE__*/React__default.createElement(Tooltip, {
1862
- title: "Private"
1863
- }, /*#__PURE__*/React__default.createElement(VisibilityOffRoundedIcon, {
1864
- sx: _objectSpread$6({}, visStyle)
1865
- })), (bite === null || bite === void 0 ? void 0 : bite.visibility) === "UNLISTED" && /*#__PURE__*/React__default.createElement(Tooltip, {
1866
- title: "Unlisted"
1867
- }, /*#__PURE__*/React__default.createElement(VisibilityRoundedIcon, {
1868
- sx: _objectSpread$6({}, visStyle)
1869
- })), bite === null || bite === void 0 ? void 0 : (_bite$newAudienceRati2 = bite.newAudienceRating) === null || _bite$newAudienceRati2 === void 0 ? void 0 : _bite$newAudienceRati2.map(function (rating) {
1859
+ alignItems: "start",
1860
+ sx: {
1861
+ transition: "0.2s",
1862
+ flex: 3,
1863
+ flexWrap: "wrap",
1864
+ marginTop: hovering ? "35px" : "0"
1865
+ }
1866
+ }, bite === null || bite === void 0 ? void 0 : (_bite$newAudienceRati2 = bite.newAudienceRating) === null || _bite$newAudienceRati2 === void 0 ? void 0 : _bite$newAudienceRati2.map(function (rating) {
1870
1867
  if (rating === "SAFE") {
1871
1868
  // nothing
1872
1869
  return /*#__PURE__*/React__default.createElement(React__default.Fragment, null);
@@ -1909,19 +1906,22 @@ var RatingInfo = function RatingInfo(_ref4) {
1909
1906
  ratingText.text = "UNRATED";
1910
1907
  }
1911
1908
 
1912
- if (!ratingText.tooltipText) return /*#__PURE__*/React__default.createElement(React__default.Fragment, null);
1909
+ if (!ratingText.tooltipText) return /*#__PURE__*/React__default.createElement(Stack, {
1910
+ direction: "row",
1911
+ sx: {
1912
+ flex: 0
1913
+ }
1914
+ });
1913
1915
  return /*#__PURE__*/React__default.createElement(Stack, {
1914
1916
  direction: "row",
1915
- alignItems: "center"
1916
- }, (bite === null || bite === void 0 ? void 0 : bite.visibility) === "PRIVATE" && /*#__PURE__*/React__default.createElement(Tooltip, {
1917
- title: "Private"
1918
- }, /*#__PURE__*/React__default.createElement(VisibilityOffRoundedIcon, {
1919
- sx: _objectSpread$6({}, visStyle)
1920
- })), (bite === null || bite === void 0 ? void 0 : bite.visibility) === "UNLISTED" && /*#__PURE__*/React__default.createElement(Tooltip, {
1921
- title: "Unlisted"
1922
- }, /*#__PURE__*/React__default.createElement(VisibilityRoundedIcon, {
1923
- sx: _objectSpread$6({}, visStyle)
1924
- })), /*#__PURE__*/React__default.createElement(RatingInfoItem, {
1917
+ alignItems: "start",
1918
+ sx: {
1919
+ transition: "0.2s",
1920
+ flex: 3,
1921
+ flexWrap: "wrap",
1922
+ marginTop: hovering ? "35px" : "0"
1923
+ }
1924
+ }, /*#__PURE__*/React__default.createElement(RatingInfoItem, {
1925
1925
  tooltipText: ratingText.tooltipText,
1926
1926
  displayText: ratingText.text
1927
1927
  }));
@@ -2053,21 +2053,24 @@ var BlerpTopRow = function BlerpTopRow(_ref6) {
2053
2053
  minHeight: "20px"
2054
2054
  }
2055
2055
  }, /*#__PURE__*/React__default.createElement(Stack, {
2056
+ direction: "row",
2057
+ alignItems: "start",
2058
+ justifyContent: "space-between",
2056
2059
  sx: {
2057
2060
  position: "absolute",
2058
2061
  top: "0",
2059
2062
  left: "0",
2060
- zIndex: hoveringAddTo ? "0" : "10",
2061
- transition: "0.3s",
2062
- opacity: hoveringAddTo ? "0" : "1" // width: hoveringAddTo ? "0%" : "50%",
2063
- // display: hoveringAddTo && "none",
2064
-
2063
+ width: "100%",
2064
+ overflow: "hidden",
2065
+ transition: "0.2s",
2066
+ pointerEvents: "none"
2065
2067
  }
2066
2068
  }, /*#__PURE__*/React__default.createElement(RatingInfo, {
2069
+ hovering: hovering,
2067
2070
  bite: bite
2068
2071
  }), /*#__PURE__*/React__default.createElement(AddedToIcons, {
2069
2072
  item: bite,
2070
- hovering: hovering
2073
+ hovering: hovering || hoveringAddTo
2071
2074
  })), renderAddContentButton({
2072
2075
  item: bite,
2073
2076
  hovering: hovering,
@@ -2082,7 +2085,7 @@ var BlerpTopRow = function BlerpTopRow(_ref6) {
2082
2085
  };
2083
2086
 
2084
2087
  var NewBlerp$1 = function NewBlerp(_ref7) {
2085
- var _bite$whitelistContex, _bite$channelPointsCo, _bite$walkOnContext, _bite$soundEmotesCont, _bite$discordContext, _bite$blacklistContex, _bite$blacklistContex2, _bite$image, _bite$image$original, _titleRef$current, _titleRef$current$get;
2088
+ var _bite$whitelistContex, _bite$channelPointsCo, _bite$walkOnChannelCo, _bite$soundEmotesCont, _bite$discordContext, _bite$channelPointsBu, _bite$organizationalG, _bite$blacklistContex, _bite$blacklistContex2, _bite$image, _bite$image$original, _titleRef$current, _titleRef$current$get;
2086
2089
 
2087
2090
  var Waveform = _ref7.Waveform,
2088
2091
  bite = _ref7.bite,
@@ -2130,7 +2133,7 @@ var NewBlerp$1 = function NewBlerp(_ref7) {
2130
2133
  setHoveringAddTo = _useState10[1];
2131
2134
 
2132
2135
  var titleRef = useRef(null);
2133
- var addedToPlace = (bite === null || bite === void 0 ? void 0 : (_bite$whitelistContex = bite.whitelistContext) === null || _bite$whitelistContex === void 0 ? void 0 : _bite$whitelistContex._id) || (bite === null || bite === void 0 ? void 0 : (_bite$channelPointsCo = bite.channelPointsContext) === null || _bite$channelPointsCo === void 0 ? void 0 : _bite$channelPointsCo._id) || (bite === null || bite === void 0 ? void 0 : (_bite$walkOnContext = bite.walkOnContext) === null || _bite$walkOnContext === void 0 ? void 0 : _bite$walkOnContext._id) || (bite === null || bite === void 0 ? void 0 : (_bite$soundEmotesCont = bite.soundEmotesContext) === null || _bite$soundEmotesCont === void 0 ? void 0 : _bite$soundEmotesCont.hasAdded) || (bite === null || bite === void 0 ? void 0 : (_bite$discordContext = bite.discordContext) === null || _bite$discordContext === void 0 ? void 0 : _bite$discordContext._id);
2136
+ var addedToPlace = (bite === null || bite === void 0 ? void 0 : (_bite$whitelistContex = bite.whitelistContext) === null || _bite$whitelistContex === void 0 ? void 0 : _bite$whitelistContex._id) || (bite === null || bite === void 0 ? void 0 : (_bite$channelPointsCo = bite.channelPointsContext) === null || _bite$channelPointsCo === void 0 ? void 0 : _bite$channelPointsCo._id) || (bite === null || bite === void 0 ? void 0 : (_bite$walkOnChannelCo = bite.walkOnChannelContext) === null || _bite$walkOnChannelCo === void 0 ? void 0 : _bite$walkOnChannelCo._id) || (bite === null || bite === void 0 ? void 0 : (_bite$soundEmotesCont = bite.soundEmotesContext) === null || _bite$soundEmotesCont === void 0 ? void 0 : _bite$soundEmotesCont.hasAdded) || (bite === null || bite === void 0 ? void 0 : (_bite$discordContext = bite.discordContext) === null || _bite$discordContext === void 0 ? void 0 : _bite$discordContext._id) || (bite === null || bite === void 0 ? void 0 : (_bite$channelPointsBu = bite.channelPointsBucketsContext) === null || _bite$channelPointsBu === void 0 ? void 0 : _bite$channelPointsBu.length) > 0 || (bite === null || bite === void 0 ? void 0 : (_bite$organizationalG = bite.organizationalGroupEdgesContext) === null || _bite$organizationalG === void 0 ? void 0 : _bite$organizationalG.length) > 0;
2134
2137
  var showWarning = (bite === null || bite === void 0 ? void 0 : (_bite$blacklistContex = bite.blacklistContext) === null || _bite$blacklistContex === void 0 ? void 0 : _bite$blacklistContex._id) || (bite === null || bite === void 0 ? void 0 : bite.reportedContentStatus) === "URGENT" || (bite === null || bite === void 0 ? void 0 : bite.reportedContentStatus) === "SUPER_URGENT" || (bite === null || bite === void 0 ? void 0 : bite.reportedContentStatus) === "REVIEWED_BLACKLISTED" || (bite === null || bite === void 0 ? void 0 : bite.reportedContentStatus) === "APPEALING";
2135
2138
 
2136
2139
  var renderPlayStateIcon = function renderPlayStateIcon() {
@@ -89125,6 +89128,8 @@ var NewLoadingBlob = function NewLoadingBlob(props) {
89125
89128
  };
89126
89129
 
89127
89130
  var QuadernoTaxCalc = function QuadernoTaxCalc(_ref) {
89131
+ var _window;
89132
+
89128
89133
  var amount = _ref.amount,
89129
89134
  setSalesTax = _ref.setSalesTax,
89130
89135
  setTotal = _ref.setTotal,
@@ -89133,14 +89138,25 @@ var QuadernoTaxCalc = function QuadernoTaxCalc(_ref) {
89133
89138
  postalCode = _ref.postalCode,
89134
89139
  setPostalCode = _ref.setPostalCode;
89135
89140
  useEffect(function () {
89136
- var _window, _window$Quaderno;
89141
+ var scriptUrl = "https://js.quaderno.io/v4/";
89137
89142
 
89138
- (_window = window) === null || _window === void 0 ? void 0 : (_window$Quaderno = _window.Quaderno) === null || _window$Quaderno === void 0 ? void 0 : _window$Quaderno.init("pk_live_JLZ6dgFdcXEVZySpVxb7").then(function () {
89139
- console.log("Quaderno.js successfully initialized");
89140
- }).catch(function (error) {
89141
- console.log(error.description, error.messages);
89142
- });
89143
+ if (!document.querySelector("script[src=\"".concat(scriptUrl, "\"]"))) {
89144
+ var script = document.createElement("script");
89145
+ script.src = scriptUrl;
89146
+ document.head.appendChild(script);
89147
+ }
89143
89148
  }, []);
89149
+ useEffect(function () {
89150
+ if (window.Quaderno) {
89151
+ var _window$Quaderno;
89152
+
89153
+ (_window$Quaderno = window.Quaderno) === null || _window$Quaderno === void 0 ? void 0 : _window$Quaderno.init("pk_live_JLZ6dgFdcXEVZySpVxb7").then(function () {
89154
+ console.log("Quaderno.js successfully initialized");
89155
+ }).catch(function (error) {
89156
+ console.log(error.description, error.messages);
89157
+ });
89158
+ }
89159
+ }, [(_window = window) === null || _window === void 0 ? void 0 : _window.Quaderno]);
89144
89160
 
89145
89161
  var reloadTaxes = /*#__PURE__*/function () {
89146
89162
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(options) {
@@ -89159,7 +89175,6 @@ var QuadernoTaxCalc = function QuadernoTaxCalc(_ref) {
89159
89175
 
89160
89176
  case 4:
89161
89177
  taxObject = _context.sent;
89162
- console.log(taxObject);
89163
89178
  taxAmount = parseFloat(amount * (taxObject.rate / 100)).toFixed(2);
89164
89179
  totalAmount = (parseFloat(amount) + parseFloat(taxAmount)).toFixed(2);
89165
89180
  setSalesTax(taxAmount);
@@ -89170,7 +89185,7 @@ var QuadernoTaxCalc = function QuadernoTaxCalc(_ref) {
89170
89185
  // taxObject.name + " " + taxObject.rate + "%"; // ie.: VAT 20%
89171
89186
  // });
89172
89187
 
89173
- case 10:
89188
+ case 9:
89174
89189
  case "end":
89175
89190
  return _context.stop();
89176
89191
  }
@@ -89191,21 +89206,17 @@ var QuadernoTaxCalc = function QuadernoTaxCalc(_ref) {
89191
89206
  }, wait);
89192
89207
  }
89193
89208
 
89194
- return /*#__PURE__*/React__default.createElement("form", {
89209
+ return /*#__PURE__*/React__default.createElement(Stack, {
89195
89210
  id: "quaderno-payment-form",
89196
- style: {
89197
- width: "100%"
89198
- },
89199
- "data-publishable-key": "pk_live_JLZ6dgFdcXEVZySpVxb7"
89200
- }, /*#__PURE__*/React__default.createElement(Stack, {
89211
+ "data-publishable-key": "pk_live_JLZ6dgFdcXEVZySpVxb7",
89201
89212
  direction: "row",
89202
89213
  justifyContent: "space-between",
89203
89214
  width: "90%",
89204
89215
  alignItems: "center",
89205
- margin: "0 auto 20px auto"
89216
+ margin: "10px auto"
89206
89217
  }, /*#__PURE__*/React__default.createElement(Dropdown, {
89207
89218
  id: "country",
89208
- buttonTitle: country.name,
89219
+ buttonTitle: country === null || country === void 0 ? void 0 : country.name,
89209
89220
  buttonLabel: "Country",
89210
89221
  buttonStyle: {
89211
89222
  backgroundColor: "white.override",
@@ -89984,12 +89995,14 @@ var QuadernoTaxCalc = function QuadernoTaxCalc(_ref) {
89984
89995
  label: "Postal Code",
89985
89996
  size: "small",
89986
89997
  required: true,
89998
+ variant: "filled",
89999
+ color: "grey4",
89987
90000
  sx: {
89988
- backgroundColor: "white.override",
89989
90001
  width: "150px",
89990
- margin: "12px 16px",
89991
90002
  "& label": {
89992
- position: "absolute"
90003
+ color: "grey4.real",
90004
+ position: "absolute",
90005
+ "&:hover": {}
89993
90006
  }
89994
90007
  },
89995
90008
  onChange: function onChange(e) {
@@ -90001,7 +90014,7 @@ var QuadernoTaxCalc = function QuadernoTaxCalc(_ref) {
90001
90014
  }, 1500);
90002
90015
  setPostalCode(e.target.value);
90003
90016
  }
90004
- })));
90017
+ }));
90005
90018
  };
90006
90019
 
90007
90020
  var _templateObject;
@@ -90305,14 +90318,6 @@ var CheckoutModal = function CheckoutModal(_ref) {
90305
90318
  }();
90306
90319
 
90307
90320
  if (show) {
90308
- var scriptUrl = "https://js.quaderno.io/v4/";
90309
-
90310
- if (!document.querySelector("script[src=\"".concat(scriptUrl, "\"]"))) {
90311
- var script = document.createElement("script");
90312
- script.src = scriptUrl;
90313
- document.head.appendChild(script);
90314
- }
90315
-
90316
90321
  createBraintreeDropIn();
90317
90322
  }
90318
90323
  }, [show, googleMerchantId, venmoProfileId, clientToken, type, total]);