@rpg-engine/long-bow 0.8.156 → 0.8.158

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.
@@ -28,6 +28,7 @@ var Settings2 = require('pixelarticons/react/Settings2');
28
28
  var ShoppingBag = require('pixelarticons/react/ShoppingBag');
29
29
  var ShoppingCart = require('pixelarticons/react/ShoppingCart');
30
30
  var Store$1 = require('pixelarticons/react/Store');
31
+ var Wallet = require('pixelarticons/react/Wallet');
31
32
  var Search = require('pixelarticons/react/Search');
32
33
  var Delete = require('pixelarticons/react/Delete');
33
34
  require('rpgui/rpgui.css');
@@ -39186,32 +39187,41 @@ var TRANSACTION_TYPE_COLORS = {
39186
39187
  AdminAdjustment: '#9ca3af'
39187
39188
  };
39188
39189
  var TRANSACTION_TYPE_OPTIONS = [{
39190
+ id: 1,
39189
39191
  value: '',
39190
- label: 'All Types'
39192
+ option: 'All Types'
39191
39193
  }, {
39194
+ id: 2,
39192
39195
  value: 'Purchase',
39193
- label: 'Purchase'
39196
+ option: 'Purchase'
39194
39197
  }, {
39198
+ id: 3,
39195
39199
  value: 'Transfer',
39196
- label: 'Transfer'
39200
+ option: 'Transfer'
39197
39201
  }, {
39202
+ id: 4,
39198
39203
  value: 'MarketplaceSale',
39199
- label: 'Marketplace Sale'
39204
+ option: 'Marketplace Sale'
39200
39205
  }, {
39206
+ id: 5,
39201
39207
  value: 'MarketplacePurchase',
39202
- label: 'Marketplace Buy'
39208
+ option: 'Marketplace Buy'
39203
39209
  }, {
39210
+ id: 6,
39204
39211
  value: 'StorePurchase',
39205
- label: 'Store Purchase'
39212
+ option: 'Store Purchase'
39206
39213
  }, {
39214
+ id: 7,
39207
39215
  value: 'Fee',
39208
- label: 'Fee'
39216
+ option: 'Fee'
39209
39217
  }, {
39218
+ id: 8,
39210
39219
  value: 'Refund',
39211
- label: 'Refund'
39220
+ option: 'Refund'
39212
39221
  }, {
39222
+ id: 9,
39213
39223
  value: 'AdminAdjustment',
39214
- label: 'Admin Adjustment'
39224
+ option: 'Admin Adjustment'
39215
39225
  }];
39216
39226
  var DCHistoryPanel = function DCHistoryPanel(_ref) {
39217
39227
  var transactions = _ref.transactions,
@@ -39227,8 +39237,7 @@ var DCHistoryPanel = function DCHistoryPanel(_ref) {
39227
39237
  onRequestHistory(1);
39228
39238
  // eslint-disable-next-line react-hooks/exhaustive-deps
39229
39239
  }, []);
39230
- var handleTypeChange = function handleTypeChange(e) {
39231
- var value = e.target.value;
39240
+ var handleTypeChange = function handleTypeChange(value) {
39232
39241
  setSelectedType(value);
39233
39242
  onRequestHistory(1, value || undefined);
39234
39243
  };
@@ -39239,15 +39248,12 @@ var DCHistoryPanel = function DCHistoryPanel(_ref) {
39239
39248
  var d = new Date(dateStr);
39240
39249
  return d.getMonth() + 1 + "/" + d.getDate() + "/" + String(d.getFullYear()).slice(-2);
39241
39250
  };
39242
- return React__default.createElement(PanelContainer, null, React__default.createElement(FilterRow, null, React__default.createElement(FilterLabel, null, "Filter:"), React__default.createElement(TypeSelect, {
39243
- value: selectedType,
39244
- onChange: handleTypeChange
39245
- }, TRANSACTION_TYPE_OPTIONS.map(function (opt) {
39246
- return React__default.createElement("option", {
39247
- key: opt.value,
39248
- value: opt.value
39249
- }, opt.label);
39250
- }))), loading && React__default.createElement(LoadingRow, null, React__default.createElement(Spinner, null), React__default.createElement("span", null, "Loading...")), !loading && transactions.length === 0 && React__default.createElement(EmptyMessage, null, "No transactions found."), !loading && transactions.length > 0 && React__default.createElement(TransactionList, null, transactions.map(function (tx) {
39251
+ return React__default.createElement(PanelContainer, null, React__default.createElement(FilterRow, null, React__default.createElement(FilterLabel, null, "FILTER BY TYPE"), React__default.createElement(StyledDropdown, {
39252
+ key: selectedType,
39253
+ options: TRANSACTION_TYPE_OPTIONS,
39254
+ onChange: handleTypeChange,
39255
+ width: "100%"
39256
+ })), loading && React__default.createElement(LoadingRow, null, React__default.createElement(Spinner, null), React__default.createElement("span", null, "Loading...")), !loading && transactions.length === 0 && React__default.createElement(EmptyMessage, null, "No transactions found."), !loading && transactions.length > 0 && React__default.createElement(TransactionList, null, transactions.map(function (tx) {
39251
39257
  var _TRANSACTION_TYPE_LAB, _TRANSACTION_TYPE_COL, _tx$note;
39252
39258
  var isCredit = tx.amount > 0;
39253
39259
  var label = (_TRANSACTION_TYPE_LAB = TRANSACTION_TYPE_LABELS[tx.type]) != null ? _TRANSACTION_TYPE_LAB : tx.type;
@@ -39280,15 +39286,15 @@ var PanelContainer = /*#__PURE__*/styled__default.div.withConfig({
39280
39286
  var FilterRow = /*#__PURE__*/styled__default.div.withConfig({
39281
39287
  displayName: "DCHistoryPanel__FilterRow",
39282
39288
  componentId: "sc-debjdj-1"
39283
- })(["display:flex;align-items:center;gap:8px;margin-bottom:2px;"]);
39284
- var FilterLabel = /*#__PURE__*/styled__default.span.withConfig({
39289
+ })(["display:flex;align-items:center;gap:12px;background:rgba(0,0,0,0.15);border-radius:4px;border:1px solid rgba(255,255,255,0.05);padding:8px 12px;"]);
39290
+ var FilterLabel = /*#__PURE__*/styled__default.p.withConfig({
39285
39291
  displayName: "DCHistoryPanel__FilterLabel",
39286
39292
  componentId: "sc-debjdj-2"
39287
- })(["font-size:7px;color:#f59e0b;font-family:'Press Start 2P',cursive;white-space:nowrap;"]);
39288
- var TypeSelect = /*#__PURE__*/styled__default.select.withConfig({
39289
- displayName: "DCHistoryPanel__TypeSelect",
39293
+ })(["margin:0 !important;font-size:0.7rem !important;color:#ccc !important;font-family:'Press Start 2P',cursive !important;text-transform:uppercase;letter-spacing:1px;white-space:nowrap;"]);
39294
+ var StyledDropdown = /*#__PURE__*/styled__default(Dropdown).withConfig({
39295
+ displayName: "DCHistoryPanel__StyledDropdown",
39290
39296
  componentId: "sc-debjdj-3"
39291
- })(["background:rgba(0,0,0,0.7);border:1px solid rgba(245,158,11,0.4);border-radius:3px;color:#f59e0b;font-size:7px;font-family:'Press Start 2P',cursive;padding:3px 5px;cursor:pointer;outline:none;flex:1;option{background:#1a1a2e;color:#f59e0b;}&:hover{border-color:#f59e0b;}&:focus{border-color:#f59e0b;box-shadow:0 0 0 1px rgba(245,158,11,0.3);}"]);
39297
+ })(["margin:0px !important;"]);
39292
39298
  var TransactionList = /*#__PURE__*/styled__default.div.withConfig({
39293
39299
  displayName: "DCHistoryPanel__TransactionList",
39294
39300
  componentId: "sc-debjdj-4"
@@ -39308,23 +39314,23 @@ var TxRight = /*#__PURE__*/styled__default.div.withConfig({
39308
39314
  var TxType = /*#__PURE__*/styled__default.span.withConfig({
39309
39315
  displayName: "DCHistoryPanel__TxType",
39310
39316
  componentId: "sc-debjdj-8"
39311
- })(["font-size:7px;font-family:'Press Start 2P',cursive;"]);
39317
+ })(["font-size:8px !important;font-family:'Press Start 2P',cursive !important;"]);
39312
39318
  var TxAmount = /*#__PURE__*/styled__default.span.withConfig({
39313
39319
  displayName: "DCHistoryPanel__TxAmount",
39314
39320
  componentId: "sc-debjdj-9"
39315
- })(["font-size:8px;font-family:'Press Start 2P',cursive;white-space:nowrap;"]);
39321
+ })(["font-size:9px !important;font-family:'Press Start 2P',cursive !important;white-space:nowrap;"]);
39316
39322
  var TxNote = /*#__PURE__*/styled__default.span.withConfig({
39317
39323
  displayName: "DCHistoryPanel__TxNote",
39318
39324
  componentId: "sc-debjdj-10"
39319
- })(["font-size:6px;color:", ";font-family:'Press Start 2P',cursive;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"], uiColors.lightGray);
39325
+ })(["font-size:7px !important;color:", " !important;font-family:'Press Start 2P',cursive !important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"], uiColors.lightGray);
39320
39326
  var TxDate = /*#__PURE__*/styled__default.span.withConfig({
39321
39327
  displayName: "DCHistoryPanel__TxDate",
39322
39328
  componentId: "sc-debjdj-11"
39323
- })(["font-size:6px;color:rgba(255,255,255,0.4);font-family:'Press Start 2P',cursive;white-space:nowrap;"]);
39329
+ })(["font-size:7px !important;color:rgba(255,255,255,0.4) !important;font-family:'Press Start 2P',cursive !important;white-space:nowrap;"]);
39324
39330
  var LoadingRow = /*#__PURE__*/styled__default.div.withConfig({
39325
39331
  displayName: "DCHistoryPanel__LoadingRow",
39326
39332
  componentId: "sc-debjdj-12"
39327
- })(["display:flex;align-items:center;gap:8px;justify-content:center;padding:16px;color:", ";font-size:9px;font-family:'Press Start 2P',cursive;"], uiColors.white);
39333
+ })(["display:flex;align-items:center;gap:8px;justify-content:center;padding:16px;color:", " !important;font-size:9px !important;font-family:'Press Start 2P',cursive !important;"], uiColors.white);
39328
39334
  var Spinner = /*#__PURE__*/styled__default.div.withConfig({
39329
39335
  displayName: "DCHistoryPanel__Spinner",
39330
39336
  componentId: "sc-debjdj-13"
@@ -39332,7 +39338,7 @@ var Spinner = /*#__PURE__*/styled__default.div.withConfig({
39332
39338
  var EmptyMessage = /*#__PURE__*/styled__default.div.withConfig({
39333
39339
  displayName: "DCHistoryPanel__EmptyMessage",
39334
39340
  componentId: "sc-debjdj-14"
39335
- })(["font-size:8px;color:", ";font-family:'Press Start 2P',cursive;text-align:center;padding:20px;"], uiColors.lightGray);
39341
+ })(["font-size:8px !important;color:", " !important;font-family:'Press Start 2P',cursive !important;text-align:center;padding:20px;"], uiColors.lightGray);
39336
39342
 
39337
39343
  // Global style to prevent body scrolling when modal is open
39338
39344
  var GlobalStyle = /*#__PURE__*/styled.createGlobalStyle(["body{overflow:hidden;width:100%;height:100%;}"]);
@@ -39646,11 +39652,11 @@ var PanelContainer$1 = /*#__PURE__*/styled__default.div.withConfig({
39646
39652
  var FieldLabel = /*#__PURE__*/styled__default.label.withConfig({
39647
39653
  displayName: "DCTransferPanel__FieldLabel",
39648
39654
  componentId: "sc-k1vvb1-1"
39649
- })(["font-size:9px;color:#f59e0b;font-family:'Press Start 2P',cursive;margin-top:8px;"]);
39655
+ })(["font-size:9px !important;color:#f59e0b !important;font-family:'Press Start 2P',cursive !important;margin-top:8px;"]);
39650
39656
  var StyledInput = /*#__PURE__*/styled__default(Input).withConfig({
39651
39657
  displayName: "DCTransferPanel__StyledInput",
39652
39658
  componentId: "sc-k1vvb1-2"
39653
- })(["background:rgba(0,0,0,0.6);border:1px solid #f59e0b;color:", ";padding:6px 8px;font-size:12px;font-family:'Press Start 2P',cursive;width:100%;box-sizing:border-box;&:disabled{opacity:0.5;}&:focus{outline:none;border-color:", ";}"], uiColors.white, uiColors.white);
39659
+ })(["background:rgba(0,0,0,0.6) !important;border:1px solid #f59e0b !important;color:", " !important;padding:6px 8px !important;font-size:11px !important;font-family:'Press Start 2P',cursive !important;width:100% !important;box-sizing:border-box !important;&:disabled{opacity:0.5;}&:focus{outline:none;border-color:", " !important;}"], uiColors.white, uiColors.white);
39654
39660
  var ButtonRow = /*#__PURE__*/styled__default.div.withConfig({
39655
39661
  displayName: "DCTransferPanel__ButtonRow",
39656
39662
  componentId: "sc-k1vvb1-3"
@@ -39662,7 +39668,7 @@ var Spinner$1 = /*#__PURE__*/styled__default.div.withConfig({
39662
39668
  var ResultMessage = /*#__PURE__*/styled__default.div.withConfig({
39663
39669
  displayName: "DCTransferPanel__ResultMessage",
39664
39670
  componentId: "sc-k1vvb1-5"
39665
- })(["margin-top:8px;padding:8px;font-size:9px;font-family:'Press Start 2P',cursive;color:", ";border:1px solid ", ";background:rgba(0,0,0,0.4);text-align:center;"], function (_ref2) {
39671
+ })(["margin-top:8px;padding:8px;font-size:9px !important;font-family:'Press Start 2P',cursive !important;color:", " !important;border:1px solid ", ";background:rgba(0,0,0,0.4);text-align:center;"], function (_ref2) {
39666
39672
  var $success = _ref2.$success;
39667
39673
  return $success ? uiColors.green : uiColors.red;
39668
39674
  }, function (_ref3) {
@@ -39672,7 +39678,7 @@ var ResultMessage = /*#__PURE__*/styled__default.div.withConfig({
39672
39678
  var ErrorMessage = /*#__PURE__*/styled__default.div.withConfig({
39673
39679
  displayName: "DCTransferPanel__ErrorMessage",
39674
39680
  componentId: "sc-k1vvb1-6"
39675
- })(["font-size:9px;color:", ";font-family:'Press Start 2P',cursive;"], uiColors.red);
39681
+ })(["font-size:9px !important;color:", " !important;font-family:'Press Start 2P',cursive !important;"], uiColors.red);
39676
39682
  var AutocompleteWrapper = /*#__PURE__*/styled__default.div.withConfig({
39677
39683
  displayName: "DCTransferPanel__AutocompleteWrapper",
39678
39684
  componentId: "sc-k1vvb1-7"
@@ -39686,10 +39692,11 @@ var DropdownItem = /*#__PURE__*/styled__default.li.withConfig({
39686
39692
  componentId: "sc-k1vvb1-9"
39687
39693
  })(["padding:6px 8px;font-size:11px;font-family:'Press Start 2P',cursive;color:", ";cursor:pointer;&:hover{background:rgba(245,158,11,0.3);}"], uiColors.white);
39688
39694
 
39689
- var DCWalletModal = function DCWalletModal(_ref) {
39695
+ var DC_TO_GOLD = 5500;
39696
+ var DC_TO_USD = 100;
39697
+ var DCWalletContent = function DCWalletContent(_ref) {
39690
39698
  var _historyData$transact, _historyData$totalPag, _historyData$currentP;
39691
39699
  var dcBalance = _ref.dcBalance,
39692
- onClose = _ref.onClose,
39693
39700
  historyData = _ref.historyData,
39694
39701
  historyLoading = _ref.historyLoading,
39695
39702
  onRequestHistory = _ref.onRequestHistory,
@@ -39703,20 +39710,9 @@ var DCWalletModal = function DCWalletModal(_ref) {
39703
39710
  onBuyDC = _ref.onBuyDC,
39704
39711
  onSearchCharacter = _ref.onSearchCharacter,
39705
39712
  searchResults = _ref.searchResults;
39706
- var _useState = React.useState('balance'),
39707
- activeTab = _useState[0],
39708
- setActiveTab = _useState[1];
39709
- var stopPropagation = React.useCallback(function (e) {
39710
- e.stopPropagation();
39711
- }, []);
39713
+ var usdValue = (dcBalance / DC_TO_USD).toFixed(2);
39714
+ var goldValue = (dcBalance * DC_TO_GOLD).toLocaleString();
39712
39715
  var tabs = [{
39713
- id: 'balance',
39714
- title: 'Balance',
39715
- content: React__default.createElement(BalanceContent, null, React__default.createElement(BalanceLabel, null, "Your DC Balance"), React__default.createElement(BalanceAmount, null, dcBalance.toLocaleString(), " DC"), onBuyDC && React__default.createElement(BuyButton, {
39716
- onPointerDown: onBuyDC,
39717
- title: "Buy Definya Coins"
39718
- }, React__default.createElement(fa.FaShoppingCart, null), React__default.createElement(BuyButtonLabel, null, "Buy More DC")))
39719
- }, {
39720
39716
  id: 'transfer',
39721
39717
  title: 'Transfer',
39722
39718
  content: React__default.createElement(DCTransferPanel, {
@@ -39742,6 +39738,99 @@ var DCWalletModal = function DCWalletModal(_ref) {
39742
39738
  onRequestHistory: onRequestHistory
39743
39739
  })
39744
39740
  }];
39741
+ return React__default.createElement(WalletContainer, null, React__default.createElement(BalanceHeader, null, React__default.createElement(BalanceTop, null, React__default.createElement(BalanceBlock, null, React__default.createElement(BalanceLabel, null, "DC BALANCE"), React__default.createElement(BalanceAmount, null, dcBalance.toLocaleString(), " ", React__default.createElement(BalanceDC, null, "DC")), React__default.createElement(BalanceEquiv, null, "\u2248 $", usdValue, " USD \xA0\xB7\xA0 ", goldValue, " Gold")), onBuyDC && React__default.createElement(BuyButton, {
39742
+ onPointerDown: onBuyDC,
39743
+ role: "button",
39744
+ tabIndex: 0,
39745
+ title: "Buy Definya Coins"
39746
+ }, React__default.createElement(fa.FaShoppingCart, null), React__default.createElement(BuyButtonLabel, null, "Buy DC"))), React__default.createElement(RateStrip, null, React__default.createElement(RateItem, null, React__default.createElement(RateNum, null, "1 DC"), React__default.createElement(RateSep, null, "="), React__default.createElement(RateVal, null, "5,500 Gold")), React__default.createElement(RateDivider, null), React__default.createElement(RateItem, null, React__default.createElement(RateNum, null, "100 DC"), React__default.createElement(RateSep, null, "="), React__default.createElement(RateVal, null, "1 USD")), React__default.createElement(RateDivider, null), React__default.createElement(RateItem, null, React__default.createElement(RateNum, null, "1 USD"), React__default.createElement(RateSep, null, "="), React__default.createElement(RateVal, null, "550K Gold")))), React__default.createElement(TabsWrapper, null, React__default.createElement(InternalTabs, {
39747
+ tabs: tabs,
39748
+ onTabChange: function onTabChange(tabId) {
39749
+ if (tabId === 'history') onRequestHistory(1);
39750
+ },
39751
+ activeTextColor: "#000000",
39752
+ activeColor: "#fef08a",
39753
+ inactiveColor: "#6b7280",
39754
+ borderColor: "#f59e0b",
39755
+ hoverColor: "#fef3c7"
39756
+ })));
39757
+ };
39758
+ var WalletContainer = /*#__PURE__*/styled__default.div.withConfig({
39759
+ displayName: "DCWalletContent__WalletContainer",
39760
+ componentId: "sc-1hrivmk-0"
39761
+ })(["display:flex;flex-direction:column;width:100%;min-height:300px;"]);
39762
+ var BalanceHeader = /*#__PURE__*/styled__default.div.withConfig({
39763
+ displayName: "DCWalletContent__BalanceHeader",
39764
+ componentId: "sc-1hrivmk-1"
39765
+ })(["background:rgba(0,0,0,0.35);border:1px solid rgba(245,158,11,0.25);border-radius:6px;padding:14px 16px 10px;margin:0 2.5% 10px;display:flex;flex-direction:column;gap:10px;"]);
39766
+ var BalanceTop = /*#__PURE__*/styled__default.div.withConfig({
39767
+ displayName: "DCWalletContent__BalanceTop",
39768
+ componentId: "sc-1hrivmk-2"
39769
+ })(["display:flex;align-items:center;justify-content:space-between;gap:12px;"]);
39770
+ var BalanceBlock = /*#__PURE__*/styled__default.div.withConfig({
39771
+ displayName: "DCWalletContent__BalanceBlock",
39772
+ componentId: "sc-1hrivmk-3"
39773
+ })(["display:flex;flex-direction:column;gap:5px;"]);
39774
+ var BalanceLabel = /*#__PURE__*/styled__default.span.withConfig({
39775
+ displayName: "DCWalletContent__BalanceLabel",
39776
+ componentId: "sc-1hrivmk-4"
39777
+ })(["font-family:'Press Start 2P',cursive !important;font-size:9px !important;color:rgba(245,158,11,0.7) !important;letter-spacing:1px;"]);
39778
+ var BalanceAmount = /*#__PURE__*/styled__default.div.withConfig({
39779
+ displayName: "DCWalletContent__BalanceAmount",
39780
+ componentId: "sc-1hrivmk-5"
39781
+ })(["font-family:'Press Start 2P',cursive !important;font-size:24px !important;color:#fef08a !important;text-shadow:2px 2px 0 #000 !important;letter-spacing:2px;line-height:1 !important;"]);
39782
+ var BalanceDC = /*#__PURE__*/styled__default.span.withConfig({
39783
+ displayName: "DCWalletContent__BalanceDC",
39784
+ componentId: "sc-1hrivmk-6"
39785
+ })(["font-size:14px !important;color:rgba(254,240,138,0.6) !important;"]);
39786
+ var BalanceEquiv = /*#__PURE__*/styled__default.div.withConfig({
39787
+ displayName: "DCWalletContent__BalanceEquiv",
39788
+ componentId: "sc-1hrivmk-7"
39789
+ })(["font-family:'Press Start 2P',cursive !important;font-size:8px !important;color:rgba(255,255,255,0.45) !important;letter-spacing:0.5px;"]);
39790
+ var BuyButton = /*#__PURE__*/styled__default.div.withConfig({
39791
+ displayName: "DCWalletContent__BuyButton",
39792
+ componentId: "sc-1hrivmk-8"
39793
+ })(["display:flex;flex-direction:row;align-items:center;gap:6px;padding:10px 16px;background:#f59e0b;border-radius:4px;color:#000 !important;cursor:pointer;flex-shrink:0;font-size:14px;white-space:nowrap;user-select:none;text-shadow:none !important;&:hover{background:#fbbf24;}&:active{background:#d97706;}"]);
39794
+ var BuyButtonLabel = /*#__PURE__*/styled__default.span.withConfig({
39795
+ displayName: "DCWalletContent__BuyButtonLabel",
39796
+ componentId: "sc-1hrivmk-9"
39797
+ })(["font-family:'Press Start 2P',cursive !important;font-size:8px !important;color:#000 !important;white-space:nowrap !important;text-shadow:none !important;"]);
39798
+ var RateStrip = /*#__PURE__*/styled__default.div.withConfig({
39799
+ displayName: "DCWalletContent__RateStrip",
39800
+ componentId: "sc-1hrivmk-10"
39801
+ })(["display:flex;align-items:center;border-top:1px solid rgba(245,158,11,0.1);padding-top:8px;"]);
39802
+ var RateItem = /*#__PURE__*/styled__default.div.withConfig({
39803
+ displayName: "DCWalletContent__RateItem",
39804
+ componentId: "sc-1hrivmk-11"
39805
+ })(["display:flex;align-items:center;gap:5px;flex:1;justify-content:center;"]);
39806
+ var RateDivider = /*#__PURE__*/styled__default.div.withConfig({
39807
+ displayName: "DCWalletContent__RateDivider",
39808
+ componentId: "sc-1hrivmk-12"
39809
+ })(["width:1px;height:12px;background:rgba(245,158,11,0.2);"]);
39810
+ var RateNum = /*#__PURE__*/styled__default.span.withConfig({
39811
+ displayName: "DCWalletContent__RateNum",
39812
+ componentId: "sc-1hrivmk-13"
39813
+ })(["font-family:'Press Start 2P',cursive !important;font-size:6px !important;color:rgba(255,255,255,0.5) !important;"]);
39814
+ var RateSep = /*#__PURE__*/styled__default.span.withConfig({
39815
+ displayName: "DCWalletContent__RateSep",
39816
+ componentId: "sc-1hrivmk-14"
39817
+ })(["font-family:'Press Start 2P',cursive !important;font-size:6px !important;color:rgba(255,255,255,0.2) !important;"]);
39818
+ var RateVal = /*#__PURE__*/styled__default.span.withConfig({
39819
+ displayName: "DCWalletContent__RateVal",
39820
+ componentId: "sc-1hrivmk-15"
39821
+ })(["font-family:'Press Start 2P',cursive !important;font-size:6px !important;color:rgba(254,240,138,0.6) !important;"]);
39822
+ var TabsWrapper = /*#__PURE__*/styled__default.div.withConfig({
39823
+ displayName: "DCWalletContent__TabsWrapper",
39824
+ componentId: "sc-1hrivmk-16"
39825
+ })(["padding:0 2.5%;"]);
39826
+
39827
+ var _excluded$3 = ["onClose"];
39828
+ var DCWalletModal = function DCWalletModal(_ref) {
39829
+ var onClose = _ref.onClose,
39830
+ contentProps = _objectWithoutPropertiesLoose(_ref, _excluded$3);
39831
+ var stopPropagation = React.useCallback(function (e) {
39832
+ e.stopPropagation();
39833
+ }, []);
39745
39834
  return React__default.createElement(ModalPortal, null, React__default.createElement(Overlay$1, {
39746
39835
  onPointerDown: onClose
39747
39836
  }), React__default.createElement(ModalContainer$1, null, React__default.createElement(ModalContent$1, {
@@ -39751,21 +39840,7 @@ var DCWalletModal = function DCWalletModal(_ref) {
39751
39840
  }, React__default.createElement(Header$3, null, React__default.createElement(Title$4, null, "DC Wallet"), React__default.createElement(CloseButton$5, {
39752
39841
  onPointerDown: onClose,
39753
39842
  "aria-label": "Close"
39754
- }, React__default.createElement(fa.FaTimes, null))), React__default.createElement(WalletContainer, null, React__default.createElement(InternalTabs, {
39755
- tabs: tabs,
39756
- activeTab: activeTab,
39757
- onTabChange: function onTabChange(tabId) {
39758
- setActiveTab(tabId);
39759
- if (tabId === 'history') {
39760
- onRequestHistory(1);
39761
- }
39762
- },
39763
- activeTextColor: "#000000",
39764
- activeColor: "#fef08a",
39765
- inactiveColor: "#6b7280",
39766
- borderColor: "#f59e0b",
39767
- hoverColor: "#fef3c7"
39768
- })))));
39843
+ }, React__default.createElement(fa.FaTimes, null))), React__default.createElement(DCWalletContent, Object.assign({}, contentProps)))));
39769
39844
  };
39770
39845
  var Overlay$1 = /*#__PURE__*/styled__default.div.withConfig({
39771
39846
  displayName: "DCWalletModal__Overlay",
@@ -39791,30 +39866,6 @@ var CloseButton$5 = /*#__PURE__*/styled__default.button.withConfig({
39791
39866
  displayName: "DCWalletModal__CloseButton",
39792
39867
  componentId: "sc-12xy88y-5"
39793
39868
  })(["background:none;border:none;color:rgba(255,255,255,0.6);cursor:pointer;font-size:1rem;padding:4px;display:flex;align-items:center;&:hover{color:#ffffff;}"]);
39794
- var WalletContainer = /*#__PURE__*/styled__default.div.withConfig({
39795
- displayName: "DCWalletModal__WalletContainer",
39796
- componentId: "sc-12xy88y-6"
39797
- })(["display:flex;flex-direction:column;width:100%;min-height:300px;gap:0.5rem;"]);
39798
- var BalanceContent = /*#__PURE__*/styled__default.div.withConfig({
39799
- displayName: "DCWalletModal__BalanceContent",
39800
- componentId: "sc-12xy88y-7"
39801
- })(["display:flex;flex-direction:column;align-items:center;gap:12px;padding:32px 16px;"]);
39802
- var BalanceLabel = /*#__PURE__*/styled__default.span.withConfig({
39803
- displayName: "DCWalletModal__BalanceLabel",
39804
- componentId: "sc-12xy88y-8"
39805
- })(["font-family:'Press Start 2P',cursive;font-size:10px;color:", ";"], uiColors.lightGray);
39806
- var BalanceAmount = /*#__PURE__*/styled__default.div.withConfig({
39807
- displayName: "DCWalletModal__BalanceAmount",
39808
- componentId: "sc-12xy88y-9"
39809
- })(["font-family:'Press Start 2P',cursive;font-size:28px;color:#fef08a;text-shadow:2px 2px 0 #000;letter-spacing:2px;"]);
39810
- var BuyButton = /*#__PURE__*/styled__default.button.withConfig({
39811
- displayName: "DCWalletModal__BuyButton",
39812
- componentId: "sc-12xy88y-10"
39813
- })(["display:flex;align-items:center;gap:8px;margin-top:8px;padding:10px 20px;background:#f59e0b;border:none;border-radius:6px;color:#000;cursor:pointer;font-size:1rem;&:hover{background:#fbbf24;}&:active{background:#d97706;}"]);
39814
- var BuyButtonLabel = /*#__PURE__*/styled__default.span.withConfig({
39815
- displayName: "DCWalletModal__BuyButtonLabel",
39816
- componentId: "sc-12xy88y-11"
39817
- })(["font-family:'Press Start 2P',cursive;font-size:8px;"]);
39818
39869
 
39819
39870
  var SimpleProgressBar = function SimpleProgressBar(_ref) {
39820
39871
  var value = _ref.value,
@@ -41643,7 +41694,7 @@ var SearchHeader$1 = function SearchHeader(_ref) {
41643
41694
  rightElement: searchOptions.rightElement
41644
41695
  })), filterOptions && React__default.createElement(FilterContainer, {
41645
41696
  "$isSmallScreen": isSmallScreen
41646
- }, React__default.createElement(StyledDropdown, {
41697
+ }, React__default.createElement(StyledDropdown$1, {
41647
41698
  options: filterOptions.options,
41648
41699
  onChange: filterOptions.onOptionChange,
41649
41700
  width: isSmallScreen ? '100%' : '200px'
@@ -41681,7 +41732,7 @@ var StyledSearchBar = /*#__PURE__*/styled__default(SearchBar).withConfig({
41681
41732
  displayName: "SearchHeader__StyledSearchBar",
41682
41733
  componentId: "sc-1xd17jb-4"
41683
41734
  })(["width:100%;"]);
41684
- var StyledDropdown = /*#__PURE__*/styled__default(Dropdown).withConfig({
41735
+ var StyledDropdown$1 = /*#__PURE__*/styled__default(Dropdown).withConfig({
41685
41736
  displayName: "SearchHeader__StyledDropdown",
41686
41737
  componentId: "sc-1xd17jb-5"
41687
41738
  })(["min-width:150px;"]);
@@ -44377,15 +44428,15 @@ var Leaderboard = function Leaderboard(props) {
44377
44428
  option: itemType
44378
44429
  };
44379
44430
  });
44380
- return React__default.createElement(React__default.Fragment, null, React__default.createElement(WrapperContainer, null, React__default.createElement(StyledDropdown$1, {
44431
+ return React__default.createElement(React__default.Fragment, null, React__default.createElement(WrapperContainer, null, React__default.createElement(StyledDropdown$2, {
44381
44432
  options: rankTypeOptions,
44382
44433
  onChange: onChangeRankType,
44383
44434
  width: "80%"
44384
- }), rankType === 'Class' ? React__default.createElement(StyledDropdown$1, {
44435
+ }), rankType === 'Class' ? React__default.createElement(StyledDropdown$2, {
44385
44436
  options: classTypeOptions,
44386
44437
  onChange: onChangeClassType,
44387
44438
  width: "100%"
44388
- }) : null, rankType === 'Skill' ? React__default.createElement(StyledDropdown$1, {
44439
+ }) : null, rankType === 'Skill' ? React__default.createElement(StyledDropdown$2, {
44389
44440
  options: skillTypeOptions,
44390
44441
  onChange: onChangeSkillType,
44391
44442
  width: "100%"
@@ -44401,7 +44452,7 @@ var WrapperContainer = /*#__PURE__*/styled__default.div.withConfig({
44401
44452
  displayName: "Leaderboard__WrapperContainer",
44402
44453
  componentId: "sc-1wdsq7i-0"
44403
44454
  })(["display:grid;grid-template-columns:50% 50%;justify-content:space-between;width:calc(100% - 40px);margin-left:10px;.rpgui-content .rpgui-dropdown-imp-header{padding:0px 10px 0 !important;}"]);
44404
- var StyledDropdown$1 = /*#__PURE__*/styled__default(Dropdown).withConfig({
44455
+ var StyledDropdown$2 = /*#__PURE__*/styled__default(Dropdown).withConfig({
44405
44456
  displayName: "Leaderboard__StyledDropdown",
44406
44457
  componentId: "sc-1wdsq7i-1"
44407
44458
  })(["margin:3px !important;width:170px !important;"]);
@@ -44498,11 +44549,11 @@ var Tabs = function Tabs(_ref) {
44498
44549
  var TabsContainer = /*#__PURE__*/styled__default.div.withConfig({
44499
44550
  displayName: "Tabs__TabsContainer",
44500
44551
  componentId: "sc-n35er2-0"
44501
- })(["display:flex;gap:15px;width:95%;margin:0 auto 15px auto;border-bottom:2px solid rgba(255,255,255,0.1);padding-bottom:10px;"]);
44552
+ })(["display:flex;gap:10px;width:95%;margin:0 auto 15px auto;border-bottom:2px solid rgba(255,255,255,0.1);padding-bottom:10px;"]);
44502
44553
  var TabButton$1 = /*#__PURE__*/styled__default.button.withConfig({
44503
44554
  displayName: "Tabs__TabButton",
44504
44555
  componentId: "sc-n35er2-1"
44505
- })(["display:flex;align-items:center;gap:8px;background:transparent;border:none;border-bottom:", ";color:", ";font-family:'Press Start 2P',cursive;font-size:0.70rem;letter-spacing:1px;cursor:pointer;padding:5px 10px 10px 10px;transition:color 0.2s,border-bottom 0.2s;&:hover{color:#ffffff;}"], function (_ref2) {
44556
+ })(["display:flex;align-items:center;gap:5px;background:transparent;border:none;border-bottom:", ";color:", ";font-family:'Press Start 2P',cursive;font-size:0.60rem;letter-spacing:0.5px;cursor:pointer;padding:5px 7px 10px 7px;transition:color 0.2s,border-bottom 0.2s;white-space:nowrap;&:hover{color:#ffffff;}"], function (_ref2) {
44506
44557
  var $active = _ref2.$active;
44507
44558
  return $active ? '3px solid #f59e0b' : '3px solid transparent';
44508
44559
  }, function (_ref3) {
@@ -44713,12 +44764,12 @@ var BlueprintSearchModal = function BlueprintSearchModal(_ref) {
44713
44764
  placeholder: "Search by name...",
44714
44765
  onFocus: disableHotkeys,
44715
44766
  onBlur: enableHotkeys
44716
- })), React__default.createElement(FiltersRow, null, React__default.createElement(StyledDropdown$2, {
44767
+ })), React__default.createElement(FiltersRow, null, React__default.createElement(StyledDropdown$3, {
44717
44768
  key: "type-" + selectedType,
44718
44769
  options: typeOptions,
44719
44770
  onChange: handleTypeChange,
44720
44771
  width: "100%"
44721
- }), React__default.createElement(StyledDropdown$2, {
44772
+ }), React__default.createElement(StyledDropdown$3, {
44722
44773
  key: "subtype-" + selectedSubType,
44723
44774
  options: subTypeOptions,
44724
44775
  onChange: handleSubTypeChange,
@@ -44773,7 +44824,7 @@ var FiltersRow = /*#__PURE__*/styled__default.div.withConfig({
44773
44824
  displayName: "BlueprintSearchModal__FiltersRow",
44774
44825
  componentId: "sc-i7bssq-8"
44775
44826
  })(["display:grid;grid-template-columns:1fr 1fr;gap:8px;"]);
44776
- var StyledDropdown$2 = /*#__PURE__*/styled__default(Dropdown).withConfig({
44827
+ var StyledDropdown$3 = /*#__PURE__*/styled__default(Dropdown).withConfig({
44777
44828
  displayName: "BlueprintSearchModal__StyledDropdown",
44778
44829
  componentId: "sc-i7bssq-9"
44779
44830
  })(["margin:0px !important;width:100% !important;"]);
@@ -44923,7 +44974,7 @@ var BuyOrderDetailsModal = function BuyOrderDetailsModal(_ref) {
44923
44974
  min: 1,
44924
44975
  onFocus: disableHotkeys,
44925
44976
  onBlur: enableHotkeys
44926
- })), React__default.createElement(FieldRow, null, React__default.createElement(Label$4, null, "Rarity"), React__default.createElement(StyledDropdown$3, {
44977
+ })), React__default.createElement(FieldRow, null, React__default.createElement(Label$4, null, "Rarity"), React__default.createElement(StyledDropdown$4, {
44927
44978
  key: rarity,
44928
44979
  options: rarityOptions,
44929
44980
  onChange: onRarityChange,
@@ -45000,7 +45051,7 @@ var StyledInput$3 = /*#__PURE__*/styled__default(Input).withConfig({
45000
45051
  displayName: "BuyOrderDetailsModal__StyledInput",
45001
45052
  componentId: "sc-6bghe9-14"
45002
45053
  })(["width:100%;"]);
45003
- var StyledDropdown$3 = /*#__PURE__*/styled__default(Dropdown).withConfig({
45054
+ var StyledDropdown$4 = /*#__PURE__*/styled__default(Dropdown).withConfig({
45004
45055
  displayName: "BuyOrderDetailsModal__StyledDropdown",
45005
45056
  componentId: "sc-6bghe9-15"
45006
45057
  })(["margin:0px !important;width:100% !important;"]);
@@ -46162,18 +46213,18 @@ var BuyPanel = function BuyPanel(_ref) {
46162
46213
  height: 18
46163
46214
  }))), showFilters && React__default.createElement(OptionsWrapper, {
46164
46215
  showFilters: showFilters
46165
- }, React__default.createElement(WrapperContainer$1, null, React__default.createElement(StyledDropdown$4, {
46216
+ }, React__default.createElement(WrapperContainer$1, null, React__default.createElement(StyledDropdown$5, {
46166
46217
  options: itemTypeOptions,
46167
46218
  onChange: onChangeType,
46168
46219
  width: "100%"
46169
- }), React__default.createElement(StyledDropdown$4, {
46220
+ }), React__default.createElement(StyledDropdown$5, {
46170
46221
  options: itemRarityOptions,
46171
46222
  onChange: function onChange(value) {
46172
46223
  setSelectedRarity(value);
46173
46224
  onChangeRarity(value);
46174
46225
  },
46175
46226
  width: "100%"
46176
- }), React__default.createElement(StyledDropdown$4, {
46227
+ }), React__default.createElement(StyledDropdown$5, {
46177
46228
  options: orderByOptions,
46178
46229
  onChange: onChangeOrder,
46179
46230
  width: "100%"
@@ -46357,7 +46408,7 @@ var PagerFooter = /*#__PURE__*/styled__default.div.withConfig({
46357
46408
  displayName: "BuyPanel__PagerFooter",
46358
46409
  componentId: "sc-1si8t7i-13"
46359
46410
  })(["display:flex;justify-content:center;align-items:center;padding:8px 0 4px;min-height:36px;width:95%;margin:0 auto;"]);
46360
- var StyledDropdown$4 = /*#__PURE__*/styled__default(Dropdown).withConfig({
46411
+ var StyledDropdown$5 = /*#__PURE__*/styled__default(Dropdown).withConfig({
46361
46412
  displayName: "BuyPanel__StyledDropdown",
46362
46413
  componentId: "sc-1si8t7i-14"
46363
46414
  })(["margin:0px !important;width:100% !important;"]);
@@ -46427,7 +46478,7 @@ var HistoryPanel = function HistoryPanel(_ref) {
46427
46478
  var getDCEquivalentPrice = function getDCEquivalentPrice(goldPrice) {
46428
46479
  return dcToGoldSwapRate > 0 ? shared.goldToDC(goldPrice) : 0;
46429
46480
  };
46430
- return React__default.createElement(PanelWrapper$1, null, React__default.createElement(FilterRow$2, null, React__default.createElement(FilterLabel$1, null, "FILTER BY TYPE"), React__default.createElement(StyledDropdown$5, {
46481
+ return React__default.createElement(PanelWrapper$1, null, React__default.createElement(FilterRow$2, null, React__default.createElement(FilterLabel$1, null, "FILTER BY TYPE"), React__default.createElement(StyledDropdown$6, {
46431
46482
  key: selectedType,
46432
46483
  options: transactionTypeOptions,
46433
46484
  onChange: onTypeChange,
@@ -46490,7 +46541,7 @@ var FilterLabel$1 = /*#__PURE__*/styled__default.p.withConfig({
46490
46541
  displayName: "HistoryPanel__FilterLabel",
46491
46542
  componentId: "sc-74mioa-2"
46492
46543
  })(["margin:0;font-size:0.7rem;color:#ccc;text-transform:uppercase;letter-spacing:1px;white-space:nowrap;"]);
46493
- var StyledDropdown$5 = /*#__PURE__*/styled__default(Dropdown).withConfig({
46544
+ var StyledDropdown$6 = /*#__PURE__*/styled__default(Dropdown).withConfig({
46494
46545
  displayName: "HistoryPanel__StyledDropdown",
46495
46546
  componentId: "sc-74mioa-3"
46496
46547
  })(["margin:0px !important;"]);
@@ -46912,7 +46963,8 @@ var Marketplace = function Marketplace(props) {
46912
46963
  _props$historySelecte = props.historySelectedType,
46913
46964
  historySelectedType = _props$historySelecte === void 0 ? 'All' : _props$historySelecte,
46914
46965
  onHistoryTypeChange = props.onHistoryTypeChange,
46915
- onHistoryPageChange = props.onHistoryPageChange;
46966
+ onHistoryPageChange = props.onHistoryPageChange,
46967
+ walletProps = props.walletProps;
46916
46968
  var _useState = React.useState('marketplace'),
46917
46969
  activeTab = _useState[0],
46918
46970
  setActiveTab = _useState[1];
@@ -46975,14 +47027,21 @@ var Marketplace = function Marketplace(props) {
46975
47027
  width: 18,
46976
47028
  height: 18
46977
47029
  })
46978
- }, {
47030
+ }].concat(walletProps ? [{
47031
+ id: 'wallet',
47032
+ label: 'Wallet',
47033
+ icon: React__default.createElement(Wallet.Wallet, {
47034
+ width: 18,
47035
+ height: 18
47036
+ })
47037
+ }] : [], [{
46979
47038
  id: 'settings',
46980
47039
  label: 'Settings',
46981
47040
  icon: React__default.createElement(Settings2.Settings2, {
46982
47041
  width: 18,
46983
47042
  height: 18
46984
47043
  })
46985
- }],
47044
+ }]),
46986
47045
  activeTabId: activeTab,
46987
47046
  onTabChange: handleTabChange
46988
47047
  }), activeTab === 'marketplace' && React__default.createElement(BuyPanel, Object.assign({}, props)), activeTab === 'sell' && React__default.createElement(ManagmentPanel, Object.assign({}, props, {
@@ -47036,7 +47095,7 @@ var Marketplace = function Marketplace(props) {
47036
47095
  atlasJSON: props.atlasJSON,
47037
47096
  atlasIMG: props.atlasIMG,
47038
47097
  dcToGoldSwapRate: props.dcToGoldSwapRate
47039
- }), activeTab === 'settings' && React__default.createElement(MarketplaceSettingsPanel, {
47098
+ }), activeTab === 'wallet' && walletProps && React__default.createElement(DCWalletContent, Object.assign({}, walletProps)), activeTab === 'settings' && React__default.createElement(MarketplaceSettingsPanel, {
47040
47099
  acceptedCurrency: acceptedCurrency,
47041
47100
  onAcceptedCurrencyChange: handleCurrencyChange
47042
47101
  }), showSharedPager && React__default.createElement(PagerContainer$3, null, React__default.createElement(Pager, Object.assign({}, props))));
@@ -47366,10 +47425,10 @@ var RowsWrapper$1 = /*#__PURE__*/styled__default.div.withConfig({
47366
47425
  componentId: "sc-eu8ggt-2"
47367
47426
  })(["overflow-y:scroll;-webkit-overflow-scrolling:touch;width:100%;height:200px;"]);
47368
47427
 
47369
- var _excluded$3 = ["children"];
47428
+ var _excluded$4 = ["children"];
47370
47429
  var HighlightedText = function HighlightedText(_ref) {
47371
47430
  var children = _ref.children,
47372
- rest = _objectWithoutPropertiesLoose(_ref, _excluded$3);
47431
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded$4);
47373
47432
  return React__default.createElement(Text, Object.assign({}, rest), children);
47374
47433
  };
47375
47434
  var Text = /*#__PURE__*/styled__default.p.withConfig({
@@ -69771,7 +69830,7 @@ var ScrollableContent = function ScrollableContent(_ref) {
69771
69830
  value: searchOptions.value,
69772
69831
  onChange: searchOptions.onChange,
69773
69832
  placeholder: searchOptions.placeholder || 'Search...'
69774
- })), filterOptions && React__default.createElement(FilterContainer$1, null, React__default.createElement(StyledDropdown$6, {
69833
+ })), filterOptions && React__default.createElement(FilterContainer$1, null, React__default.createElement(StyledDropdown$7, {
69775
69834
  options: filterOptions.options,
69776
69835
  onChange: filterOptions.onOptionChange,
69777
69836
  width: "200px"
@@ -69810,7 +69869,7 @@ var StyledSearchBar$2 = /*#__PURE__*/styled__default(SearchBar).withConfig({
69810
69869
  displayName: "ScrollableContent__StyledSearchBar",
69811
69870
  componentId: "sc-xhh2um-5"
69812
69871
  })(["width:100%;"]);
69813
- var StyledDropdown$6 = /*#__PURE__*/styled__default(Dropdown).withConfig({
69872
+ var StyledDropdown$7 = /*#__PURE__*/styled__default(Dropdown).withConfig({
69814
69873
  displayName: "ScrollableContent__StyledDropdown",
69815
69874
  componentId: "sc-xhh2um-6"
69816
69875
  })(["min-width:150px;"]);
@@ -71434,6 +71493,7 @@ exports.CheckButton = CheckButton;
71434
71493
  exports.CheckItem = CheckItem;
71435
71494
  exports.CircularController = CircularController;
71436
71495
  exports.CraftBook = CraftBook;
71496
+ exports.DCWalletContent = DCWalletContent;
71437
71497
  exports.DCWalletModal = DCWalletModal;
71438
71498
  exports.DailyTasks = DailyTasks;
71439
71499
  exports.DraggableContainer = DraggableContainer;