@rpg-engine/long-bow 0.7.83 → 0.7.84

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.
@@ -0,0 +1,7 @@
1
+ import { UserAccountTypes } from '@rpg-engine/shared';
2
+ import React from 'react';
3
+ interface IPremiumLabelProps {
4
+ accountType: UserAccountTypes;
5
+ }
6
+ declare const PremiumLabel: React.FC<IPremiumLabelProps>;
7
+ export default PremiumLabel;
@@ -0,0 +1,16 @@
1
+ import { ITradeRequestItem, ITradeResponseItem, TradeTransactionType } from '@rpg-engine/shared';
2
+ interface ITradingGoldHook {
3
+ characterAvailableGold: number;
4
+ type: TradeTransactionType;
5
+ traderItems: ITradeResponseItem[];
6
+ }
7
+ export declare const useTradingGold: ({ characterAvailableGold, type, traderItems, }: ITradingGoldHook) => {
8
+ sum: number;
9
+ qtyMap: Map<string, number>;
10
+ isBuy: () => boolean;
11
+ hasGoldForSale: () => boolean;
12
+ getFinalGold: () => number;
13
+ getTradeItems: () => ITradeRequestItem[];
14
+ updateQuantity: (item: ITradeResponseItem, selectedQty: number) => void;
15
+ };
16
+ export {};
@@ -33591,6 +33591,52 @@ var DayNightContainer = /*#__PURE__*/styled__default.div.withConfig({
33591
33591
  componentId: "sc-1ja236h-3"
33592
33592
  })(["margin-top:-0.3rem;margin-left:-0.3rem;"]);
33593
33593
 
33594
+ var PremiumLabel = function PremiumLabel(_ref) {
33595
+ var accountType = _ref.accountType;
33596
+ if (accountType === shared.UserAccountTypes.Free) return null;
33597
+ var getBackgroundColor = function getBackgroundColor() {
33598
+ switch (accountType) {
33599
+ case shared.UserAccountTypes.PremiumBronze:
33600
+ return '#CD7F32';
33601
+ case shared.UserAccountTypes.PremiumSilver:
33602
+ return '#C0C0C0';
33603
+ case shared.UserAccountTypes.PremiumGold:
33604
+ return '#FFD700';
33605
+ case shared.UserAccountTypes.PremiumUltimate:
33606
+ return '#002E99';
33607
+ default:
33608
+ return 'transparent';
33609
+ }
33610
+ };
33611
+ var getShortLabel = function getShortLabel() {
33612
+ switch (accountType) {
33613
+ case shared.UserAccountTypes.PremiumBronze:
33614
+ return 'Bronze PA';
33615
+ case shared.UserAccountTypes.PremiumSilver:
33616
+ return 'Silver PA';
33617
+ case shared.UserAccountTypes.PremiumGold:
33618
+ return 'Gold PA';
33619
+ case shared.UserAccountTypes.PremiumUltimate:
33620
+ return 'Ultimate PA';
33621
+ default:
33622
+ return '';
33623
+ }
33624
+ };
33625
+ return React__default.createElement(StyledLabel, {
33626
+ backgroundColor: getBackgroundColor()
33627
+ }, getShortLabel());
33628
+ };
33629
+ var StyledLabel = /*#__PURE__*/styled__default.span.withConfig({
33630
+ displayName: "PremiumLabel__StyledLabel",
33631
+ componentId: "sc-5bsloi-0"
33632
+ })(["background-color:", ";color:", ";font-weight:bold;padding:0 0.4rem;border-radius:3px;margin-right:3px;margin-bottom:2px;display:inline-block;font-size:0.5rem !important;"], function (_ref2) {
33633
+ var backgroundColor = _ref2.backgroundColor;
33634
+ return backgroundColor;
33635
+ }, function (_ref3) {
33636
+ var backgroundColor = _ref3.backgroundColor;
33637
+ return backgroundColor === '#002E99' ? 'white' : 'black';
33638
+ });
33639
+
33594
33640
  var outerQty = 10;
33595
33641
  var TradingItemRow = function TradingItemRow(_ref) {
33596
33642
  var atlasIMG = _ref.atlasIMG,
@@ -33637,32 +33683,10 @@ var TradingItemRow = function TradingItemRow(_ref) {
33637
33683
  var renderAccountTypeIndicator = function renderAccountTypeIndicator() {
33638
33684
  if (isBuy && traderItem.canBePurchasedOnlyByPremiumPlans) {
33639
33685
  return traderItem.canBePurchasedOnlyByPremiumPlans.map(function (accountType) {
33640
- if (accountType !== shared.UserAccountTypes.Free) {
33641
- var backgroundColor;
33642
- var textColor = 'black';
33643
- switch (accountType) {
33644
- case shared.UserAccountTypes.PremiumBronze:
33645
- backgroundColor = '#CD7F32';
33646
- break;
33647
- case shared.UserAccountTypes.PremiumSilver:
33648
- backgroundColor = '#C0C0C0';
33649
- break;
33650
- case shared.UserAccountTypes.PremiumGold:
33651
- backgroundColor = '#FFD700';
33652
- break;
33653
- case shared.UserAccountTypes.PremiumUltimate:
33654
- backgroundColor = '#002E99';
33655
- break;
33656
- default:
33657
- return null;
33658
- }
33659
- return React__default.createElement(PremiumLabel, {
33660
- backgroundColor: backgroundColor,
33661
- textColor: textColor,
33662
- key: accountType
33663
- }, capitalize(accountType) + ' PA');
33664
- }
33665
- return null;
33686
+ return React__default.createElement(PremiumLabel, {
33687
+ key: accountType,
33688
+ accountType: accountType
33689
+ });
33666
33690
  });
33667
33691
  }
33668
33692
  return null;
@@ -33682,220 +33706,228 @@ var TradingItemRow = function TradingItemRow(_ref) {
33682
33706
  texturePath: traderItem.texturePath,
33683
33707
  isStackable: traderItem.isStackable
33684
33708
  }, atlasJSON),
33685
- imgScale: 2.5
33709
+ imgScale: 2
33686
33710
  })))), React__default.createElement(ItemNameContainer, null, React__default.createElement(NameValue, null, React__default.createElement("p", null, React__default.createElement(Ellipsis, {
33687
33711
  maxLines: 1,
33688
- maxWidth: "250px"
33712
+ maxWidth: "180px"
33689
33713
  }, capitalize(traderItem.name))), React__default.createElement("p", null, "$", traderItem.price), React__default.createElement("p", null, renderAccountTypeIndicator()))), React__default.createElement(QuantityContainer$1, null, React__default.createElement(SelectArrow, {
33690
- size: 32,
33714
+ size: 24,
33691
33715
  className: "arrow-selector",
33692
33716
  direction: "left",
33693
- onPointerDown: onLeftClick.bind(null, outerQty),
33694
- scale: 0.8
33717
+ onPointerDown: function onPointerDown() {
33718
+ return onLeftClick(outerQty);
33719
+ },
33720
+ scale: 0.7
33695
33721
  }), React__default.createElement(StyledArrow, {
33696
- size: 32,
33722
+ size: 24,
33697
33723
  className: "arrow-selector",
33698
33724
  direction: "left",
33699
- onPointerDown: onLeftClick
33725
+ onPointerDown: function onPointerDown() {
33726
+ return onLeftClick();
33727
+ }
33700
33728
  }), React__default.createElement(QuantityInput, {
33701
33729
  type: "text",
33702
33730
  value: inputQty,
33703
33731
  onChange: handleQuantityChange,
33704
33732
  onBlur: handleBlur
33705
33733
  }), React__default.createElement(StyledArrow, {
33706
- size: 32,
33734
+ size: 24,
33707
33735
  className: "arrow-selector",
33708
33736
  direction: "right",
33709
- onPointerDown: onRightClick
33737
+ onPointerDown: function onPointerDown() {
33738
+ return onRightClick();
33739
+ }
33710
33740
  }), React__default.createElement(SelectArrow, {
33711
- size: 32,
33741
+ size: 24,
33712
33742
  className: "arrow-selector",
33713
33743
  direction: "right",
33714
- onPointerDown: onRightClick.bind(null, outerQty),
33715
- scale: 0.8
33744
+ onPointerDown: function onPointerDown() {
33745
+ return onRightClick(outerQty);
33746
+ },
33747
+ scale: 0.7
33716
33748
  })));
33717
33749
  };
33718
- var PremiumLabel = /*#__PURE__*/styled__default.span.withConfig({
33719
- displayName: "TradingItemRow__PremiumLabel",
33720
- componentId: "sc-mja0b5-0"
33721
- })(["background-color:", ";color:", ";font-weight:bold;padding:2px 5px;border-radius:5px;margin-right:5px;margin-bottom:5px;display:inline-block;"], function (_ref2) {
33722
- var backgroundColor = _ref2.backgroundColor;
33723
- return backgroundColor;
33724
- }, function (_ref3) {
33725
- var textColor = _ref3.textColor;
33726
- return textColor;
33727
- });
33728
33750
  var StyledArrow = /*#__PURE__*/styled__default(SelectArrow).withConfig({
33729
33751
  displayName: "TradingItemRow__StyledArrow",
33730
- componentId: "sc-mja0b5-1"
33731
- })(["margin:40px;"]);
33752
+ componentId: "sc-mja0b5-0"
33753
+ })(["margin:0 1.5rem;"]);
33732
33754
  var ItemWrapper = /*#__PURE__*/styled__default.div.withConfig({
33733
33755
  displayName: "TradingItemRow__ItemWrapper",
33734
- componentId: "sc-mja0b5-2"
33735
- })(["width:100%;margin:auto;display:flex;justify-content:space-between;margin-bottom:1rem;&:hover{background-color:", ";}padding:0.5rem;"], uiColors.darkGray);
33756
+ componentId: "sc-mja0b5-1"
33757
+ })(["width:100%;display:flex;justify-content:space-between;margin-bottom:0.5rem;padding:0.25rem;&:hover{background-color:", ";}"], uiColors.darkGray);
33736
33758
  var ItemNameContainer = /*#__PURE__*/styled__default.div.withConfig({
33737
33759
  displayName: "TradingItemRow__ItemNameContainer",
33738
- componentId: "sc-mja0b5-3"
33739
- })(["flex:60%;"]);
33760
+ componentId: "sc-mja0b5-2"
33761
+ })(["flex:60%;display:flex;align-items:center;"]);
33740
33762
  var ItemIconContainer$1 = /*#__PURE__*/styled__default.div.withConfig({
33741
33763
  displayName: "TradingItemRow__ItemIconContainer",
33742
- componentId: "sc-mja0b5-4"
33743
- })(["display:flex;justify-content:flex-start;align-items:center;flex:0 0 58px;"]);
33764
+ componentId: "sc-mja0b5-3"
33765
+ })(["display:flex;justify-content:flex-start;align-items:center;flex:0 0 40px;"]);
33744
33766
  var SpriteContainer$3 = /*#__PURE__*/styled__default.div.withConfig({
33745
33767
  displayName: "TradingItemRow__SpriteContainer",
33746
- componentId: "sc-mja0b5-5"
33747
- })(["position:relative;top:-0.5rem;left:0.5rem;"]);
33768
+ componentId: "sc-mja0b5-4"
33769
+ })(["position:relative;top:-0.5rem;left:0;"]);
33748
33770
  var NameValue = /*#__PURE__*/styled__default.div.withConfig({
33749
33771
  displayName: "TradingItemRow__NameValue",
33750
- componentId: "sc-mja0b5-6"
33751
- })(["p{font-size:0.75rem;margin:0;}"]);
33772
+ componentId: "sc-mja0b5-5"
33773
+ })(["p{font-size:0.6rem;margin:0;line-height:1.2;}"]);
33752
33774
  var QuantityContainer$1 = /*#__PURE__*/styled__default.div.withConfig({
33753
33775
  displayName: "TradingItemRow__QuantityContainer",
33754
- componentId: "sc-mja0b5-7"
33755
- })(["position:relative;display:flex;min-width:100px;width:40%;justify-content:center;align-items:center;flex:40%;"]);
33776
+ componentId: "sc-mja0b5-6"
33777
+ })(["display:flex;min-width:90px;width:40%;justify-content:flex-end;align-items:center;flex:30%;gap:2px;position:relative;"]);
33756
33778
  var QuantityInput = /*#__PURE__*/styled__default.input.withConfig({
33757
33779
  displayName: "TradingItemRow__QuantityInput",
33758
- componentId: "sc-mja0b5-8"
33759
- })(["width:40px;text-align:center;background-color:", ";color:white;border:1px solid ", ";padding:2px;font-size:", ";border:none;position:relative;left:-3px;"], uiColors.darkGray, uiColors.lightGray, uiFonts.size.small);
33780
+ componentId: "sc-mja0b5-7"
33781
+ })(["width:30px;text-align:center;background-color:", ";color:white;border:none;padding:1px;font-size:", ";position:relative;right:4px;"], uiColors.darkGray, uiFonts.size.small);
33760
33782
 
33761
- var TradingMenu = function TradingMenu(_ref) {
33762
- var traderItems = _ref.traderItems,
33763
- onClose = _ref.onClose,
33783
+ var useTradingGold = function useTradingGold(_ref) {
33784
+ var characterAvailableGold = _ref.characterAvailableGold,
33764
33785
  type = _ref.type,
33765
- atlasJSON = _ref.atlasJSON,
33766
- atlasIMG = _ref.atlasIMG,
33767
- characterAvailableGold = _ref.characterAvailableGold,
33768
- onConfirm = _ref.onConfirm,
33769
- equipmentSet = _ref.equipmentSet,
33770
- scale = _ref.scale;
33786
+ traderItems = _ref.traderItems;
33771
33787
  var _useState = React.useState(0),
33772
33788
  sum = _useState[0],
33773
33789
  setSum = _useState[1];
33774
33790
  var _useState2 = React.useState(new Map()),
33775
33791
  qtyMap = _useState2[0],
33776
33792
  setQtyMap = _useState2[1];
33777
- var onQuantityChange = function onQuantityChange(item, selectedQty) {
33778
- setQtyMap(new Map(qtyMap.set(item.key, selectedQty)));
33779
- var newSum = 0;
33780
- traderItems.forEach(function (item) {
33781
- var qty = qtyMap.get(item.key);
33782
- if (qty) newSum += qty * item.price;
33783
- setSum(newSum);
33784
- });
33785
- };
33786
33793
  var isBuy = function isBuy() {
33787
- return type == 'buy';
33794
+ return type === 'buy';
33788
33795
  };
33789
33796
  var hasGoldForSale = function hasGoldForSale() {
33790
- if (isBuy()) {
33791
- return !(sum > characterAvailableGold);
33792
- }
33793
- return true;
33797
+ return isBuy() ? !(sum > characterAvailableGold) : true;
33794
33798
  };
33795
33799
  var getFinalGold = function getFinalGold() {
33796
- if (isBuy()) {
33797
- return characterAvailableGold - sum;
33798
- } else {
33799
- return characterAvailableGold + sum;
33800
- }
33801
- };
33802
- var Capitalize = function Capitalize(word) {
33803
- return word[0].toUpperCase() + word.substring(1);
33800
+ return isBuy() ? characterAvailableGold - sum : characterAvailableGold + sum;
33804
33801
  };
33805
- var onConfirmClick = function onConfirmClick() {
33802
+ var getTradeItems = function getTradeItems() {
33806
33803
  var items = [];
33807
33804
  traderItems.forEach(function (item) {
33808
33805
  var qty = qtyMap.get(item.key);
33809
33806
  if (qty) {
33810
- items.push(Object.assign({}, item, {
33807
+ items.push(_extends({}, item, {
33811
33808
  qty: qty
33812
33809
  }));
33813
33810
  }
33814
33811
  });
33815
- onConfirm(items);
33812
+ return items;
33816
33813
  };
33814
+ var updateQuantity = function updateQuantity(item, selectedQty) {
33815
+ setQtyMap(new Map(qtyMap.set(item.key, selectedQty)));
33816
+ var newSum = 0;
33817
+ qtyMap.forEach(function (qty, key) {
33818
+ var item = traderItems.find(function (i) {
33819
+ return i.key === key;
33820
+ });
33821
+ if (item) newSum += qty * item.price;
33822
+ });
33823
+ setSum(newSum);
33824
+ };
33825
+ return {
33826
+ sum: sum,
33827
+ qtyMap: qtyMap,
33828
+ isBuy: isBuy,
33829
+ hasGoldForSale: hasGoldForSale,
33830
+ getFinalGold: getFinalGold,
33831
+ getTradeItems: getTradeItems,
33832
+ updateQuantity: updateQuantity
33833
+ };
33834
+ };
33835
+
33836
+ var TradingMenu = function TradingMenu(_ref) {
33837
+ var traderItems = _ref.traderItems,
33838
+ onClose = _ref.onClose,
33839
+ type = _ref.type,
33840
+ atlasJSON = _ref.atlasJSON,
33841
+ atlasIMG = _ref.atlasIMG,
33842
+ characterAvailableGold = _ref.characterAvailableGold,
33843
+ onConfirm = _ref.onConfirm,
33844
+ equipmentSet = _ref.equipmentSet,
33845
+ scale = _ref.scale;
33846
+ var _useTradingGold = useTradingGold({
33847
+ characterAvailableGold: characterAvailableGold,
33848
+ type: type,
33849
+ traderItems: traderItems
33850
+ }),
33851
+ sum = _useTradingGold.sum,
33852
+ qtyMap = _useTradingGold.qtyMap,
33853
+ isBuy = _useTradingGold.isBuy,
33854
+ hasGoldForSale = _useTradingGold.hasGoldForSale,
33855
+ getFinalGold = _useTradingGold.getFinalGold,
33856
+ getTradeItems = _useTradingGold.getTradeItems,
33857
+ updateQuantity = _useTradingGold.updateQuantity;
33817
33858
  return React__default.createElement(DraggableContainer, {
33818
33859
  type: exports.RPGUIContainerTypes.Framed,
33819
- onCloseButton: function onCloseButton() {
33820
- if (onClose) onClose();
33821
- },
33822
- width: "600px",
33860
+ onCloseButton: onClose,
33861
+ width: "500px",
33823
33862
  cancelDrag: "#TraderContainer",
33824
33863
  scale: scale
33825
- }, React__default.createElement(React__default.Fragment, null, React__default.createElement("div", {
33826
- style: {
33827
- width: '100%'
33828
- }
33829
- }, React__default.createElement(Title$b, null, Capitalize(type), " Menu"), React__default.createElement("hr", {
33864
+ }, React__default.createElement(Container$y, null, React__default.createElement(Title$b, null, type.charAt(0).toUpperCase() + type.slice(1), " Menu"), React__default.createElement("hr", {
33830
33865
  className: "golden"
33831
- })), React__default.createElement(TradingComponentScrollWrapper, {
33866
+ }), React__default.createElement(ScrollWrapper, {
33832
33867
  id: "TraderContainer"
33833
33868
  }, traderItems.map(function (tradeItem, index) {
33834
33869
  var _qtyMap$get;
33835
- return React__default.createElement(ItemWrapper$1, {
33836
- key: tradeItem.key + "_" + index
33837
- }, React__default.createElement(TradingItemRow, {
33870
+ return React__default.createElement(TradingItemRow, {
33871
+ key: tradeItem.key + "_" + index,
33838
33872
  atlasIMG: atlasIMG,
33839
33873
  atlasJSON: atlasJSON,
33840
- onQuantityChange: onQuantityChange,
33874
+ onQuantityChange: updateQuantity,
33841
33875
  traderItem: tradeItem,
33842
33876
  selectedQty: (_qtyMap$get = qtyMap.get(tradeItem.key)) != null ? _qtyMap$get : 0,
33843
33877
  equipmentSet: equipmentSet,
33844
33878
  scale: scale,
33845
33879
  isBuy: isBuy()
33846
- }));
33847
- })), React__default.createElement(GoldWrapper, null, React__default.createElement("p", null, "Available Gold:"), React__default.createElement("p", null, "$", characterAvailableGold.toFixed(2))), React__default.createElement(TotalWrapper, null, React__default.createElement("p", null, "Total:"), React__default.createElement("p", null, "$", sum)), !hasGoldForSale() ? React__default.createElement(AlertWrapper, null, React__default.createElement("p", null, " Sorry, not enough money.")) : React__default.createElement(GoldWrapper, null, React__default.createElement("p", null, "Final Gold:"), React__default.createElement("p", null, "$", getFinalGold().toFixed(2))), React__default.createElement(ButtonWrapper$3, null, React__default.createElement(Button, {
33880
+ });
33881
+ })), React__default.createElement(InfoSection, null, React__default.createElement(GoldInfo, null, React__default.createElement("p", null, "Available Gold:"), React__default.createElement("p", null, "$", characterAvailableGold.toFixed(2))), React__default.createElement(GoldInfo, null, React__default.createElement("p", null, "Total:"), React__default.createElement("p", null, "$", sum)), !hasGoldForSale() ? React__default.createElement(AlertText, null, "Sorry, not enough money.") : React__default.createElement(GoldInfo, null, React__default.createElement("p", null, "Final Gold:"), React__default.createElement("p", null, "$", getFinalGold().toFixed(2)))), React__default.createElement(ButtonWrapper$3, null, React__default.createElement(Button, {
33848
33882
  buttonType: exports.ButtonTypes.RPGUIButton,
33849
33883
  disabled: !hasGoldForSale(),
33850
33884
  onPointerDown: function onPointerDown() {
33851
- return onConfirmClick();
33885
+ return onConfirm(getTradeItems());
33852
33886
  }
33853
33887
  }, "Confirm"), React__default.createElement(Button, {
33854
33888
  buttonType: exports.ButtonTypes.RPGUIButton,
33855
- onPointerDown: function onPointerDown() {
33856
- return onClose();
33857
- }
33889
+ onPointerDown: onClose
33858
33890
  }, "Cancel"))));
33859
33891
  };
33892
+ var Container$y = /*#__PURE__*/styled__default.div.withConfig({
33893
+ displayName: "TradingMenu__Container",
33894
+ componentId: "sc-1wjsz1l-0"
33895
+ })(["width:100%;"]);
33860
33896
  var Title$b = /*#__PURE__*/styled__default.h1.withConfig({
33861
33897
  displayName: "TradingMenu__Title",
33862
- componentId: "sc-1wjsz1l-0"
33863
- })(["z-index:22;font-size:0.6rem;color:yellow !important;"]);
33864
- var TradingComponentScrollWrapper = /*#__PURE__*/styled__default.div.withConfig({
33865
- displayName: "TradingMenu__TradingComponentScrollWrapper",
33866
33898
  componentId: "sc-1wjsz1l-1"
33867
- })(["overflow-y:scroll;height:390px;width:100%;margin-top:1rem;"]);
33868
- var ItemWrapper$1 = /*#__PURE__*/styled__default.div.withConfig({
33869
- displayName: "TradingMenu__ItemWrapper",
33899
+ })(["font-size:0.7rem !important;color:yellow !important;text-align:center;"]);
33900
+ var ScrollWrapper = /*#__PURE__*/styled__default.div.withConfig({
33901
+ displayName: "TradingMenu__ScrollWrapper",
33870
33902
  componentId: "sc-1wjsz1l-2"
33871
- })(["margin:auto;display:flex;justify-content:space-between;"]);
33872
- var TotalWrapper = /*#__PURE__*/styled__default.div.withConfig({
33873
- displayName: "TradingMenu__TotalWrapper",
33903
+ })(["overflow-y:scroll;height:250px;width:100%;margin-top:0.3rem;overflow-x:hidden;padding:0 0.3rem;"]);
33904
+ var InfoSection = /*#__PURE__*/styled__default.div.withConfig({
33905
+ displayName: "TradingMenu__InfoSection",
33874
33906
  componentId: "sc-1wjsz1l-3"
33875
- })(["margin-top:1rem;display:flex;justify-content:space-between;height:20px;p{color:white !important;}width:100%;margin-left:0.8rem;"]);
33876
- var GoldWrapper = /*#__PURE__*/styled__default.div.withConfig({
33877
- displayName: "TradingMenu__GoldWrapper",
33907
+ })(["margin-top:0.3rem;padding:0 0.5rem;"]);
33908
+ var GoldInfo = /*#__PURE__*/styled__default.div.withConfig({
33909
+ displayName: "TradingMenu__GoldInfo",
33878
33910
  componentId: "sc-1wjsz1l-4"
33879
- })(["margin-top:1rem;display:flex;justify-content:space-between;height:20px;p{color:yellow !important;}width:100%;margin-left:0.8rem;"]);
33880
- var AlertWrapper = /*#__PURE__*/styled__default.div.withConfig({
33881
- displayName: "TradingMenu__AlertWrapper",
33911
+ })(["display:flex;justify-content:space-between;height:16px;width:100%;margin:0.5rem 0;p{color:yellow !important;margin:0;font-size:0.6rem;}"]);
33912
+ var AlertText = /*#__PURE__*/styled__default.p.withConfig({
33913
+ displayName: "TradingMenu__AlertText",
33882
33914
  componentId: "sc-1wjsz1l-5"
33883
- })(["margin-top:1rem;display:flex;width:100%;justify-content:center;height:20px;p{color:red !important;}"]);
33915
+ })(["color:red !important;text-align:center;margin:0.3rem 0;font-size:0.5rem;"]);
33884
33916
  var ButtonWrapper$3 = /*#__PURE__*/styled__default.div.withConfig({
33885
33917
  displayName: "TradingMenu__ButtonWrapper",
33886
33918
  componentId: "sc-1wjsz1l-6"
33887
- })(["display:flex;justify-content:space-around;padding-top:20px;width:100%;margin-top:1rem;button{padding:0px 50px;}"]);
33919
+ })(["display:flex;justify-content:space-around;width:100%;margin-top:0.5rem;"]);
33888
33920
 
33889
33921
  /* eslint-disable react/require-default-props */
33890
33922
  var Truncate = function Truncate(_ref) {
33891
33923
  var _ref$maxLines = _ref.maxLines,
33892
33924
  maxLines = _ref$maxLines === void 0 ? 1 : _ref$maxLines,
33893
33925
  children = _ref.children;
33894
- return React__default.createElement(Container$y, {
33926
+ return React__default.createElement(Container$z, {
33895
33927
  maxLines: maxLines
33896
33928
  }, children);
33897
33929
  };
33898
- var Container$y = /*#__PURE__*/styled__default.div.withConfig({
33930
+ var Container$z = /*#__PURE__*/styled__default.div.withConfig({
33899
33931
  displayName: "Truncate__Container",
33900
33932
  componentId: "sc-6x00qb-0"
33901
33933
  })(["display:-webkit-box;max-width:100%;max-height:100%;-webkit-line-clamp:", ";-webkit-box-orient:vertical;overflow:hidden;"], function (props) {
@@ -34003,7 +34035,7 @@ var TutorialStepper = /*#__PURE__*/React__default.memo(function (_ref) {
34003
34035
  };
34004
34036
  });
34005
34037
  }, [lessons, imageStyle]);
34006
- return React__default.createElement(Container$z, null, React__default.createElement(Stepper, {
34038
+ return React__default.createElement(Container$A, null, React__default.createElement(Stepper, {
34007
34039
  steps: generateLessons,
34008
34040
  finalCTAButton: {
34009
34041
  label: 'Close',
@@ -34020,7 +34052,7 @@ var LessonBody = /*#__PURE__*/styled__default.div.withConfig({
34020
34052
  displayName: "TutorialStepper__LessonBody",
34021
34053
  componentId: "sc-7tgzv2-1"
34022
34054
  })([""]);
34023
- var Container$z = /*#__PURE__*/styled__default.div.withConfig({
34055
+ var Container$A = /*#__PURE__*/styled__default.div.withConfig({
34024
34056
  displayName: "TutorialStepper__Container",
34025
34057
  componentId: "sc-7tgzv2-2"
34026
34058
  })(["width:80%;max-width:600px;@media (max-width:600px){width:95%;}"]);