@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.cjs.js CHANGED
@@ -12,7 +12,6 @@ var _taggedTemplateLiteral = require('@babel/runtime/helpers/taggedTemplateLiter
12
12
  var iconsMaterial = require('@mui/icons-material');
13
13
  var BookmarkOutlinedIcon = require('@mui/icons-material/BookmarkOutlined');
14
14
  var LockRoundedIcon = require('@mui/icons-material/LockRounded');
15
- var _defineProperty = require('@babel/runtime/helpers/defineProperty');
16
15
  var DoNotDisturbRoundedIcon = require('@mui/icons-material/DoNotDisturbRounded');
17
16
  var FavoriteIcon = require('@mui/icons-material/Favorite');
18
17
  var FavoriteBorderIcon = require('@mui/icons-material/FavoriteBorder');
@@ -20,7 +19,12 @@ var PauseRoundedIcon = require('@mui/icons-material/PauseRounded');
20
19
  var PlayArrowRoundedIcon = require('@mui/icons-material/PlayArrowRounded');
21
20
  var WarningRoundedIcon = require('@mui/icons-material/WarningRounded');
22
21
  var VisibilityOffRoundedIcon = require('@mui/icons-material/VisibilityOffRounded');
23
- var VisibilityRoundedIcon = require('@mui/icons-material/VisibilityRounded');
22
+ require('@mui/icons-material/VisibilityRounded');
23
+ var LanguageRoundedIcon = require('@mui/icons-material/LanguageRounded');
24
+ require('@mui/icons-material/ThumbsUpDownRounded');
25
+ var ViewModuleRoundedIcon = require('@mui/icons-material/ViewModuleRounded');
26
+ var LayersRoundedIcon = require('@mui/icons-material/LayersRounded');
27
+ var _defineProperty = require('@babel/runtime/helpers/defineProperty');
24
28
  var _asyncToGenerator = require('@babel/runtime/helpers/asyncToGenerator');
25
29
  var _regeneratorRuntime = require('@babel/runtime/regenerator');
26
30
  var BookmarkAddOutlinedIcon = require('@mui/icons-material/BookmarkAddOutlined');
@@ -51,7 +55,6 @@ var PersonRemoveRoundedIcon = require('@mui/icons-material/PersonRemoveRounded')
51
55
  var _toConsumableArray = require('@babel/runtime/helpers/toConsumableArray');
52
56
  require('@mui/icons-material/FilterAltRounded');
53
57
  var MenuRoundedIcon = require('@mui/icons-material/MenuRounded');
54
- var ViewModuleRoundedIcon = require('@mui/icons-material/ViewModuleRounded');
55
58
  require('@mui/icons-material/SettingsRounded');
56
59
  var SortRoundedIcon = require('@mui/icons-material/SortRounded');
57
60
  var ChevronRightRoundedIcon = require('@mui/icons-material/ChevronRightRounded');
@@ -89,7 +92,6 @@ var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
89
92
  var _taggedTemplateLiteral__default = /*#__PURE__*/_interopDefaultLegacy(_taggedTemplateLiteral);
90
93
  var BookmarkOutlinedIcon__default = /*#__PURE__*/_interopDefaultLegacy(BookmarkOutlinedIcon);
91
94
  var LockRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(LockRoundedIcon);
92
- var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty);
93
95
  var DoNotDisturbRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(DoNotDisturbRoundedIcon);
94
96
  var FavoriteIcon__default = /*#__PURE__*/_interopDefaultLegacy(FavoriteIcon);
95
97
  var FavoriteBorderIcon__default = /*#__PURE__*/_interopDefaultLegacy(FavoriteBorderIcon);
@@ -97,7 +99,10 @@ var PauseRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(PauseRoundedI
97
99
  var PlayArrowRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(PlayArrowRoundedIcon);
98
100
  var WarningRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(WarningRoundedIcon);
99
101
  var VisibilityOffRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(VisibilityOffRoundedIcon);
100
- var VisibilityRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(VisibilityRoundedIcon);
102
+ var LanguageRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(LanguageRoundedIcon);
103
+ var ViewModuleRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(ViewModuleRoundedIcon);
104
+ var LayersRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(LayersRoundedIcon);
105
+ var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty);
101
106
  var _asyncToGenerator__default = /*#__PURE__*/_interopDefaultLegacy(_asyncToGenerator);
102
107
  var _regeneratorRuntime__default = /*#__PURE__*/_interopDefaultLegacy(_regeneratorRuntime);
103
108
  var BookmarkAddOutlinedIcon__default = /*#__PURE__*/_interopDefaultLegacy(BookmarkAddOutlinedIcon);
@@ -125,7 +130,6 @@ var YouTubeIcon__default = /*#__PURE__*/_interopDefaultLegacy(YouTubeIcon);
125
130
  var PersonRemoveRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(PersonRemoveRoundedIcon);
126
131
  var _toConsumableArray__default = /*#__PURE__*/_interopDefaultLegacy(_toConsumableArray);
127
132
  var MenuRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(MenuRoundedIcon);
128
- var ViewModuleRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(ViewModuleRoundedIcon);
129
133
  var SortRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(SortRoundedIcon);
130
134
  var ChevronRightRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(ChevronRightRoundedIcon);
131
135
  var PersonRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(PersonRoundedIcon);
@@ -1697,9 +1701,9 @@ var UserCard$1 = function UserCard(_ref) {
1697
1701
  }, "created")))));
1698
1702
  };
1699
1703
 
1700
- 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; }
1704
+ 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; }
1701
1705
 
1702
- 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__default['default'](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; }
1706
+ 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__default['default'](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; }
1703
1707
  var UsernameWithPopout$1 = function UsernameWithPopout(_ref) {
1704
1708
  var user = _ref.user,
1705
1709
  onUsernameClick = _ref.onUsernameClick,
@@ -1767,7 +1771,7 @@ var UsernameWithPopout$1 = function UsernameWithPopout(_ref) {
1767
1771
  collapsed: collapsed,
1768
1772
  user: user
1769
1773
  })), /*#__PURE__*/React__default['default'].createElement(Text, {
1770
- sx: _objectSpread$7({
1774
+ sx: _objectSpread$6({
1771
1775
  fontWeight: "300",
1772
1776
  fontSize: "12px",
1773
1777
  color: "grey7.main",
@@ -1784,10 +1788,6 @@ var UsernameWithPopout$1 = function UsernameWithPopout(_ref) {
1784
1788
  };
1785
1789
 
1786
1790
  var _templateObject$g, _templateObject2$a, _templateObject3$8;
1787
-
1788
- 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; }
1789
-
1790
- 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__default['default'](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; }
1791
1791
  var PremiumContainer = styled__default['default'].div(_templateObject$g || (_templateObject$g = _taggedTemplateLiteral__default['default'](["\n background: transparent;\n overflow: hidden;\n min-width: 210px;\n max-width: 260px;\n width: 100%;\n max-height: 322px;\n flex: 1;\n min-height: 272px;\n aspect-ratio: 260 / 322;\n gap: 10px;\n border-radius: 18px;\n box-sizing: border-box;\n padding: 2px;\n position: relative;\n transition: 0.3s;\n"])));
1792
1792
  var Container$1 = styled__default['default'].div(_templateObject2$a || (_templateObject2$a = _taggedTemplateLiteral__default['default'](["\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) {
1793
1793
  return props.theme.colors.grey7;
@@ -1839,7 +1839,7 @@ var FavoriteIconWithCounter = function FavoriteIconWithCounter(_ref) {
1839
1839
  }, savedCount));
1840
1840
  };
1841
1841
  var AddedToIcons = function AddedToIcons(_ref2) {
1842
- var _item$channelPointsCo, _item$whitelistContex, _item$walkOnContext, _item$soundEmotesCont;
1842
+ var _item$soundEmotesCont, _item$channelPointsCo, _item$channelPointsBu, _item$whitelistContex, _item$walkOnChannelCo, _item$organizationalG;
1843
1843
 
1844
1844
  var item = _ref2.item,
1845
1845
  hovering = _ref2.hovering,
@@ -1849,35 +1849,45 @@ var AddedToIcons = function AddedToIcons(_ref2) {
1849
1849
  direction: "row",
1850
1850
  sx: {
1851
1851
  transition: "0.3s",
1852
- opacity: hide ? "0" : hovering ? "1" : "0",
1853
- alignItems: "center"
1852
+ opacity: hide ? "0" : hovering ? "0" : "1",
1853
+ alignItems: "start",
1854
+ justifyContent: "end",
1855
+ flexWrap: "wrap",
1856
+ flex: 1
1857
+ }
1858
+ }, (item === null || item === void 0 ? void 0 : (_item$soundEmotesCont = item.soundEmotesContext) === null || _item$soundEmotesCont === void 0 ? void 0 : _item$soundEmotesCont.hasAdded) && /*#__PURE__*/React__default['default'].createElement(Tooltip, {
1859
+ title: "Added to Universal Extension"
1860
+ }, /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(LanguageRoundedIcon__default['default'], {
1861
+ sx: {
1862
+ fontSize: "20px",
1863
+ filter: "drop-shadow(0px 0.972222px 8.75px rgba(0, 0, 0, 0.73))"
1854
1864
  }
1855
- }, (item === null || item === void 0 ? void 0 : (_item$channelPointsCo = item.channelPointsContext) === null || _item$channelPointsCo === void 0 ? void 0 : _item$channelPointsCo._id) && /*#__PURE__*/React__default['default'].createElement(Tooltip, {
1865
+ }))), ((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['default'].createElement(Tooltip, {
1856
1866
  title: "Added to Channel Points"
1857
1867
  }, /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(ChannelPointsIcon, {
1858
1868
  sx: {
1859
- fontSize: "15px",
1869
+ fontSize: "20px",
1860
1870
  filter: "drop-shadow(0px 0.972222px 8.75px rgba(0, 0, 0, 0.73))"
1861
1871
  }
1862
1872
  }))), (item === null || item === void 0 ? void 0 : (_item$whitelistContex = item.whitelistContext) === null || _item$whitelistContex === void 0 ? void 0 : _item$whitelistContex._id) && /*#__PURE__*/React__default['default'].createElement(Tooltip, {
1863
1873
  title: "Added to Bits Library"
1864
1874
  }, /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(TwitchBitIcon, {
1865
1875
  sx: {
1866
- fontSize: "15px",
1876
+ fontSize: "20px",
1867
1877
  filter: "drop-shadow(0px 0.972222px 8.75px rgba(0, 0, 0, 0.73))"
1868
1878
  }
1869
- }))), (item === null || item === void 0 ? void 0 : (_item$walkOnContext = item.walkOnContext) === null || _item$walkOnContext === void 0 ? void 0 : _item$walkOnContext._id) && /*#__PURE__*/React__default['default'].createElement(Tooltip, {
1879
+ }))), (item === null || item === void 0 ? void 0 : (_item$walkOnChannelCo = item.walkOnChannelContext) === null || _item$walkOnChannelCo === void 0 ? void 0 : _item$walkOnChannelCo._id) && /*#__PURE__*/React__default['default'].createElement(Tooltip, {
1870
1880
  title: "Added to WalkOn"
1871
1881
  }, /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(WalkonIcon, {
1872
1882
  sx: {
1873
- fontSize: "15px",
1883
+ fontSize: "20px",
1874
1884
  filter: "drop-shadow(0px 0.972222px 8.75px rgba(0, 0, 0, 0.73))"
1875
1885
  }
1876
- }))), (item === null || item === void 0 ? void 0 : (_item$soundEmotesCont = item.soundEmotesContext) === null || _item$soundEmotesCont === void 0 ? void 0 : _item$soundEmotesCont.hasAdded) && /*#__PURE__*/React__default['default'].createElement(Tooltip, {
1877
- title: "Added to Sound Emotes"
1878
- }, /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(iconsMaterial.MusicNoteRounded, {
1886
+ }))), (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['default'].createElement(Tooltip, {
1887
+ title: "Added to Group"
1888
+ }, /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(LayersRoundedIcon__default['default'], {
1879
1889
  sx: {
1880
- fontSize: "15px",
1890
+ fontSize: "20px",
1881
1891
  filter: "drop-shadow(0px 0.972222px 8.75px rgba(0, 0, 0, 0.73))"
1882
1892
  }
1883
1893
  }))));
@@ -1899,28 +1909,18 @@ var RatingInfoItem = function RatingInfoItem(_ref3) {
1899
1909
  color: "notBlack.override",
1900
1910
  padding: "1px 2px",
1901
1911
  height: "auto",
1902
- width: "fit-content",
1903
- marginBottom: "12px"
1912
+ width: "fit-content"
1904
1913
  }
1905
1914
  }, displayText));
1906
1915
  };
1907
1916
 
1908
1917
  var RatingInfo = function RatingInfo(_ref4) {
1909
- var bite = _ref4.bite;
1918
+ var bite = _ref4.bite,
1919
+ hovering = _ref4.hovering;
1910
1920
  var ratingText = {
1911
1921
  tooltipText: "",
1912
1922
  text: ""
1913
1923
  };
1914
- var visStyle = {
1915
- fontSize: "23px",
1916
- fontWeight: "600",
1917
- backgroundColor: "#585858a3",
1918
- border: "4px solid transparent",
1919
- borderColor: "#585858a3",
1920
- borderRadius: "4px",
1921
- color: "whiteOverride.main",
1922
- marginBottom: "12px"
1923
- };
1924
1924
 
1925
1925
  if (bite !== null && bite !== void 0 && bite.newAudienceRating) {
1926
1926
  var _bite$newAudienceRati, _bite$newAudienceRati2;
@@ -1933,16 +1933,14 @@ var RatingInfo = function RatingInfo(_ref4) {
1933
1933
 
1934
1934
  return /*#__PURE__*/React__default['default'].createElement(Stack, {
1935
1935
  direction: "row",
1936
- alignItems: "center"
1937
- }, (bite === null || bite === void 0 ? void 0 : bite.visibility) === "PRIVATE" && /*#__PURE__*/React__default['default'].createElement(Tooltip, {
1938
- title: "Private"
1939
- }, /*#__PURE__*/React__default['default'].createElement(VisibilityOffRoundedIcon__default['default'], {
1940
- sx: _objectSpread$6({}, visStyle)
1941
- })), (bite === null || bite === void 0 ? void 0 : bite.visibility) === "UNLISTED" && /*#__PURE__*/React__default['default'].createElement(Tooltip, {
1942
- title: "Unlisted"
1943
- }, /*#__PURE__*/React__default['default'].createElement(VisibilityRoundedIcon__default['default'], {
1944
- sx: _objectSpread$6({}, visStyle)
1945
- })), bite === null || bite === void 0 ? void 0 : (_bite$newAudienceRati2 = bite.newAudienceRating) === null || _bite$newAudienceRati2 === void 0 ? void 0 : _bite$newAudienceRati2.map(function (rating) {
1936
+ alignItems: "start",
1937
+ sx: {
1938
+ transition: "0.2s",
1939
+ flex: 3,
1940
+ flexWrap: "wrap",
1941
+ marginTop: hovering ? "35px" : "0"
1942
+ }
1943
+ }, bite === null || bite === void 0 ? void 0 : (_bite$newAudienceRati2 = bite.newAudienceRating) === null || _bite$newAudienceRati2 === void 0 ? void 0 : _bite$newAudienceRati2.map(function (rating) {
1946
1944
  if (rating === "SAFE") {
1947
1945
  // nothing
1948
1946
  return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null);
@@ -1985,19 +1983,22 @@ var RatingInfo = function RatingInfo(_ref4) {
1985
1983
  ratingText.text = "UNRATED";
1986
1984
  }
1987
1985
 
1988
- if (!ratingText.tooltipText) return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null);
1986
+ if (!ratingText.tooltipText) return /*#__PURE__*/React__default['default'].createElement(Stack, {
1987
+ direction: "row",
1988
+ sx: {
1989
+ flex: 0
1990
+ }
1991
+ });
1989
1992
  return /*#__PURE__*/React__default['default'].createElement(Stack, {
1990
1993
  direction: "row",
1991
- alignItems: "center"
1992
- }, (bite === null || bite === void 0 ? void 0 : bite.visibility) === "PRIVATE" && /*#__PURE__*/React__default['default'].createElement(Tooltip, {
1993
- title: "Private"
1994
- }, /*#__PURE__*/React__default['default'].createElement(VisibilityOffRoundedIcon__default['default'], {
1995
- sx: _objectSpread$6({}, visStyle)
1996
- })), (bite === null || bite === void 0 ? void 0 : bite.visibility) === "UNLISTED" && /*#__PURE__*/React__default['default'].createElement(Tooltip, {
1997
- title: "Unlisted"
1998
- }, /*#__PURE__*/React__default['default'].createElement(VisibilityRoundedIcon__default['default'], {
1999
- sx: _objectSpread$6({}, visStyle)
2000
- })), /*#__PURE__*/React__default['default'].createElement(RatingInfoItem, {
1994
+ alignItems: "start",
1995
+ sx: {
1996
+ transition: "0.2s",
1997
+ flex: 3,
1998
+ flexWrap: "wrap",
1999
+ marginTop: hovering ? "35px" : "0"
2000
+ }
2001
+ }, /*#__PURE__*/React__default['default'].createElement(RatingInfoItem, {
2001
2002
  tooltipText: ratingText.tooltipText,
2002
2003
  displayText: ratingText.text
2003
2004
  }));
@@ -2129,21 +2130,24 @@ var BlerpTopRow = function BlerpTopRow(_ref6) {
2129
2130
  minHeight: "20px"
2130
2131
  }
2131
2132
  }, /*#__PURE__*/React__default['default'].createElement(Stack, {
2133
+ direction: "row",
2134
+ alignItems: "start",
2135
+ justifyContent: "space-between",
2132
2136
  sx: {
2133
2137
  position: "absolute",
2134
2138
  top: "0",
2135
2139
  left: "0",
2136
- zIndex: hoveringAddTo ? "0" : "10",
2137
- transition: "0.3s",
2138
- opacity: hoveringAddTo ? "0" : "1" // width: hoveringAddTo ? "0%" : "50%",
2139
- // display: hoveringAddTo && "none",
2140
-
2140
+ width: "100%",
2141
+ overflow: "hidden",
2142
+ transition: "0.2s",
2143
+ pointerEvents: "none"
2141
2144
  }
2142
2145
  }, /*#__PURE__*/React__default['default'].createElement(RatingInfo, {
2146
+ hovering: hovering,
2143
2147
  bite: bite
2144
2148
  }), /*#__PURE__*/React__default['default'].createElement(AddedToIcons, {
2145
2149
  item: bite,
2146
- hovering: hovering
2150
+ hovering: hovering || hoveringAddTo
2147
2151
  })), renderAddContentButton({
2148
2152
  item: bite,
2149
2153
  hovering: hovering,
@@ -2158,7 +2162,7 @@ var BlerpTopRow = function BlerpTopRow(_ref6) {
2158
2162
  };
2159
2163
 
2160
2164
  var NewBlerp$1 = function NewBlerp(_ref7) {
2161
- 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;
2165
+ 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;
2162
2166
 
2163
2167
  var Waveform = _ref7.Waveform,
2164
2168
  bite = _ref7.bite,
@@ -2206,7 +2210,7 @@ var NewBlerp$1 = function NewBlerp(_ref7) {
2206
2210
  setHoveringAddTo = _useState10[1];
2207
2211
 
2208
2212
  var titleRef = React.useRef(null);
2209
- 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);
2213
+ 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;
2210
2214
  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";
2211
2215
 
2212
2216
  var renderPlayStateIcon = function renderPlayStateIcon() {
@@ -89201,6 +89205,8 @@ var NewLoadingBlob = function NewLoadingBlob(props) {
89201
89205
  };
89202
89206
 
89203
89207
  var QuadernoTaxCalc = function QuadernoTaxCalc(_ref) {
89208
+ var _window;
89209
+
89204
89210
  var amount = _ref.amount,
89205
89211
  setSalesTax = _ref.setSalesTax,
89206
89212
  setTotal = _ref.setTotal,
@@ -89209,14 +89215,25 @@ var QuadernoTaxCalc = function QuadernoTaxCalc(_ref) {
89209
89215
  postalCode = _ref.postalCode,
89210
89216
  setPostalCode = _ref.setPostalCode;
89211
89217
  React.useEffect(function () {
89212
- var _window, _window$Quaderno;
89218
+ var scriptUrl = "https://js.quaderno.io/v4/";
89213
89219
 
89214
- (_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 () {
89215
- console.log("Quaderno.js successfully initialized");
89216
- }).catch(function (error) {
89217
- console.log(error.description, error.messages);
89218
- });
89220
+ if (!document.querySelector("script[src=\"".concat(scriptUrl, "\"]"))) {
89221
+ var script = document.createElement("script");
89222
+ script.src = scriptUrl;
89223
+ document.head.appendChild(script);
89224
+ }
89219
89225
  }, []);
89226
+ React.useEffect(function () {
89227
+ if (window.Quaderno) {
89228
+ var _window$Quaderno;
89229
+
89230
+ (_window$Quaderno = window.Quaderno) === null || _window$Quaderno === void 0 ? void 0 : _window$Quaderno.init("pk_live_JLZ6dgFdcXEVZySpVxb7").then(function () {
89231
+ console.log("Quaderno.js successfully initialized");
89232
+ }).catch(function (error) {
89233
+ console.log(error.description, error.messages);
89234
+ });
89235
+ }
89236
+ }, [(_window = window) === null || _window === void 0 ? void 0 : _window.Quaderno]);
89220
89237
 
89221
89238
  var reloadTaxes = /*#__PURE__*/function () {
89222
89239
  var _ref2 = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee(options) {
@@ -89235,7 +89252,6 @@ var QuadernoTaxCalc = function QuadernoTaxCalc(_ref) {
89235
89252
 
89236
89253
  case 4:
89237
89254
  taxObject = _context.sent;
89238
- console.log(taxObject);
89239
89255
  taxAmount = parseFloat(amount * (taxObject.rate / 100)).toFixed(2);
89240
89256
  totalAmount = (parseFloat(amount) + parseFloat(taxAmount)).toFixed(2);
89241
89257
  setSalesTax(taxAmount);
@@ -89246,7 +89262,7 @@ var QuadernoTaxCalc = function QuadernoTaxCalc(_ref) {
89246
89262
  // taxObject.name + " " + taxObject.rate + "%"; // ie.: VAT 20%
89247
89263
  // });
89248
89264
 
89249
- case 10:
89265
+ case 9:
89250
89266
  case "end":
89251
89267
  return _context.stop();
89252
89268
  }
@@ -89267,21 +89283,17 @@ var QuadernoTaxCalc = function QuadernoTaxCalc(_ref) {
89267
89283
  }, wait);
89268
89284
  }
89269
89285
 
89270
- return /*#__PURE__*/React__default['default'].createElement("form", {
89286
+ return /*#__PURE__*/React__default['default'].createElement(Stack, {
89271
89287
  id: "quaderno-payment-form",
89272
- style: {
89273
- width: "100%"
89274
- },
89275
- "data-publishable-key": "pk_live_JLZ6dgFdcXEVZySpVxb7"
89276
- }, /*#__PURE__*/React__default['default'].createElement(Stack, {
89288
+ "data-publishable-key": "pk_live_JLZ6dgFdcXEVZySpVxb7",
89277
89289
  direction: "row",
89278
89290
  justifyContent: "space-between",
89279
89291
  width: "90%",
89280
89292
  alignItems: "center",
89281
- margin: "0 auto 20px auto"
89293
+ margin: "10px auto"
89282
89294
  }, /*#__PURE__*/React__default['default'].createElement(Dropdown, {
89283
89295
  id: "country",
89284
- buttonTitle: country.name,
89296
+ buttonTitle: country === null || country === void 0 ? void 0 : country.name,
89285
89297
  buttonLabel: "Country",
89286
89298
  buttonStyle: {
89287
89299
  backgroundColor: "white.override",
@@ -90060,12 +90072,14 @@ var QuadernoTaxCalc = function QuadernoTaxCalc(_ref) {
90060
90072
  label: "Postal Code",
90061
90073
  size: "small",
90062
90074
  required: true,
90075
+ variant: "filled",
90076
+ color: "grey4",
90063
90077
  sx: {
90064
- backgroundColor: "white.override",
90065
90078
  width: "150px",
90066
- margin: "12px 16px",
90067
90079
  "& label": {
90068
- position: "absolute"
90080
+ color: "grey4.real",
90081
+ position: "absolute",
90082
+ "&:hover": {}
90069
90083
  }
90070
90084
  },
90071
90085
  onChange: function onChange(e) {
@@ -90077,7 +90091,7 @@ var QuadernoTaxCalc = function QuadernoTaxCalc(_ref) {
90077
90091
  }, 1500);
90078
90092
  setPostalCode(e.target.value);
90079
90093
  }
90080
- })));
90094
+ }));
90081
90095
  };
90082
90096
 
90083
90097
  var _templateObject;
@@ -90381,14 +90395,6 @@ var CheckoutModal = function CheckoutModal(_ref) {
90381
90395
  }();
90382
90396
 
90383
90397
  if (show) {
90384
- var scriptUrl = "https://js.quaderno.io/v4/";
90385
-
90386
- if (!document.querySelector("script[src=\"".concat(scriptUrl, "\"]"))) {
90387
- var script = document.createElement("script");
90388
- script.src = scriptUrl;
90389
- document.head.appendChild(script);
90390
- }
90391
-
90392
90398
  createBraintreeDropIn();
90393
90399
  }
90394
90400
  }, [show, googleMerchantId, venmoProfileId, clientToken, type, total]);