@rpg-engine/long-bow 0.8.155 → 0.8.157
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/components/DCWallet/DCWalletContent.d.ts +27 -0
- package/dist/components/DCWallet/DCWalletModal.d.ts +2 -24
- package/dist/components/Marketplace/BuyPanel.d.ts +1 -0
- package/dist/components/Marketplace/Marketplace.d.ts +3 -0
- package/dist/components/Marketplace/MarketplaceRows.d.ts +2 -0
- package/dist/index.d.ts +1 -0
- package/dist/long-bow.cjs.development.js +159 -122
- package/dist/long-bow.cjs.development.js.map +1 -1
- package/dist/long-bow.cjs.production.min.js +1 -1
- package/dist/long-bow.cjs.production.min.js.map +1 -1
- package/dist/long-bow.esm.js +159 -123
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/DCWallet/DCHistoryPanel.tsx +32 -49
- package/src/components/DCWallet/DCWalletContent.tsx +183 -0
- package/src/components/DCWallet/DCWalletModal.tsx +6 -166
- package/src/components/Marketplace/BuyPanel.tsx +32 -27
- package/src/components/Marketplace/Marketplace.tsx +22 -1
- package/src/components/Marketplace/MarketplaceRows.tsx +16 -3
- package/src/components/shared/Tabs/Tabs.tsx +7 -6
- package/src/index.tsx +1 -0
- package/src/stories/Features/trading/Marketplace.stories.tsx +32 -1
|
@@ -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
|
-
|
|
39192
|
+
option: 'All Types'
|
|
39191
39193
|
}, {
|
|
39194
|
+
id: 2,
|
|
39192
39195
|
value: 'Purchase',
|
|
39193
|
-
|
|
39196
|
+
option: 'Purchase'
|
|
39194
39197
|
}, {
|
|
39198
|
+
id: 3,
|
|
39195
39199
|
value: 'Transfer',
|
|
39196
|
-
|
|
39200
|
+
option: 'Transfer'
|
|
39197
39201
|
}, {
|
|
39202
|
+
id: 4,
|
|
39198
39203
|
value: 'MarketplaceSale',
|
|
39199
|
-
|
|
39204
|
+
option: 'Marketplace Sale'
|
|
39200
39205
|
}, {
|
|
39206
|
+
id: 5,
|
|
39201
39207
|
value: 'MarketplacePurchase',
|
|
39202
|
-
|
|
39208
|
+
option: 'Marketplace Buy'
|
|
39203
39209
|
}, {
|
|
39210
|
+
id: 6,
|
|
39204
39211
|
value: 'StorePurchase',
|
|
39205
|
-
|
|
39212
|
+
option: 'Store Purchase'
|
|
39206
39213
|
}, {
|
|
39214
|
+
id: 7,
|
|
39207
39215
|
value: 'Fee',
|
|
39208
|
-
|
|
39216
|
+
option: 'Fee'
|
|
39209
39217
|
}, {
|
|
39218
|
+
id: 8,
|
|
39210
39219
|
value: 'Refund',
|
|
39211
|
-
|
|
39220
|
+
option: 'Refund'
|
|
39212
39221
|
}, {
|
|
39222
|
+
id: 9,
|
|
39213
39223
|
value: 'AdminAdjustment',
|
|
39214
|
-
|
|
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(
|
|
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, "
|
|
39243
|
-
|
|
39244
|
-
|
|
39245
|
-
|
|
39246
|
-
|
|
39247
|
-
|
|
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:
|
|
39284
|
-
var FilterLabel = /*#__PURE__*/styled__default.
|
|
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:
|
|
39288
|
-
var
|
|
39289
|
-
displayName: "
|
|
39293
|
+
})(["margin:0;font-size:0.7rem;color:#ccc;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
|
-
})(["
|
|
39297
|
+
})(["margin:0px !important;"]);
|
|
39292
39298
|
var TransactionList = /*#__PURE__*/styled__default.div.withConfig({
|
|
39293
39299
|
displayName: "DCHistoryPanel__TransactionList",
|
|
39294
39300
|
componentId: "sc-debjdj-4"
|
|
@@ -39686,10 +39692,9 @@ 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
|
|
39695
|
+
var DCWalletContent = function DCWalletContent(_ref) {
|
|
39690
39696
|
var _historyData$transact, _historyData$totalPag, _historyData$currentP;
|
|
39691
39697
|
var dcBalance = _ref.dcBalance,
|
|
39692
|
-
onClose = _ref.onClose,
|
|
39693
39698
|
historyData = _ref.historyData,
|
|
39694
39699
|
historyLoading = _ref.historyLoading,
|
|
39695
39700
|
onRequestHistory = _ref.onRequestHistory,
|
|
@@ -39706,13 +39711,10 @@ var DCWalletModal = function DCWalletModal(_ref) {
|
|
|
39706
39711
|
var _useState = React.useState('balance'),
|
|
39707
39712
|
activeTab = _useState[0],
|
|
39708
39713
|
setActiveTab = _useState[1];
|
|
39709
|
-
var stopPropagation = React.useCallback(function (e) {
|
|
39710
|
-
e.stopPropagation();
|
|
39711
|
-
}, []);
|
|
39712
39714
|
var tabs = [{
|
|
39713
39715
|
id: 'balance',
|
|
39714
39716
|
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, {
|
|
39717
|
+
content: React__default.createElement(BalanceContent, null, React__default.createElement(BalanceLabel, null, "Your DC Balance"), React__default.createElement(BalanceAmount, null, dcBalance.toLocaleString(), " DC"), React__default.createElement(DCHint, null, "Spend on the Store, buy items on the Marketplace, or transfer to any player."), onBuyDC && React__default.createElement(BuyButton, {
|
|
39716
39718
|
onPointerDown: onBuyDC,
|
|
39717
39719
|
title: "Buy Definya Coins"
|
|
39718
39720
|
}, React__default.createElement(fa.FaShoppingCart, null), React__default.createElement(BuyButtonLabel, null, "Buy More DC")))
|
|
@@ -39742,16 +39744,7 @@ var DCWalletModal = function DCWalletModal(_ref) {
|
|
|
39742
39744
|
onRequestHistory: onRequestHistory
|
|
39743
39745
|
})
|
|
39744
39746
|
}];
|
|
39745
|
-
return React__default.createElement(
|
|
39746
|
-
onPointerDown: onClose
|
|
39747
|
-
}), React__default.createElement(ModalContainer$1, null, React__default.createElement(ModalContent$1, {
|
|
39748
|
-
onClick: stopPropagation,
|
|
39749
|
-
onTouchStart: stopPropagation,
|
|
39750
|
-
onPointerDown: stopPropagation
|
|
39751
|
-
}, React__default.createElement(Header$3, null, React__default.createElement(Title$4, null, "DC Wallet"), React__default.createElement(CloseButton$5, {
|
|
39752
|
-
onPointerDown: onClose,
|
|
39753
|
-
"aria-label": "Close"
|
|
39754
|
-
}, React__default.createElement(fa.FaTimes, null))), React__default.createElement(WalletContainer, null, React__default.createElement(InternalTabs, {
|
|
39747
|
+
return React__default.createElement(WalletContainer, null, React__default.createElement(InternalTabs, {
|
|
39755
39748
|
tabs: tabs,
|
|
39756
39749
|
activeTab: activeTab,
|
|
39757
39750
|
onTabChange: function onTabChange(tabId) {
|
|
@@ -39765,7 +39758,54 @@ var DCWalletModal = function DCWalletModal(_ref) {
|
|
|
39765
39758
|
inactiveColor: "#6b7280",
|
|
39766
39759
|
borderColor: "#f59e0b",
|
|
39767
39760
|
hoverColor: "#fef3c7"
|
|
39768
|
-
}))
|
|
39761
|
+
}));
|
|
39762
|
+
};
|
|
39763
|
+
var WalletContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
39764
|
+
displayName: "DCWalletContent__WalletContainer",
|
|
39765
|
+
componentId: "sc-1hrivmk-0"
|
|
39766
|
+
})(["display:flex;flex-direction:column;width:100%;min-height:300px;gap:0.5rem;"]);
|
|
39767
|
+
var BalanceContent = /*#__PURE__*/styled__default.div.withConfig({
|
|
39768
|
+
displayName: "DCWalletContent__BalanceContent",
|
|
39769
|
+
componentId: "sc-1hrivmk-1"
|
|
39770
|
+
})(["display:flex;flex-direction:column;align-items:center;gap:12px;padding:32px 16px;"]);
|
|
39771
|
+
var BalanceLabel = /*#__PURE__*/styled__default.span.withConfig({
|
|
39772
|
+
displayName: "DCWalletContent__BalanceLabel",
|
|
39773
|
+
componentId: "sc-1hrivmk-2"
|
|
39774
|
+
})(["font-family:'Press Start 2P',cursive;font-size:10px;color:", ";"], uiColors.lightGray);
|
|
39775
|
+
var BalanceAmount = /*#__PURE__*/styled__default.div.withConfig({
|
|
39776
|
+
displayName: "DCWalletContent__BalanceAmount",
|
|
39777
|
+
componentId: "sc-1hrivmk-3"
|
|
39778
|
+
})(["font-family:'Press Start 2P',cursive;font-size:28px;color:#fef08a;text-shadow:2px 2px 0 #000;letter-spacing:2px;"]);
|
|
39779
|
+
var DCHint = /*#__PURE__*/styled__default.p.withConfig({
|
|
39780
|
+
displayName: "DCWalletContent__DCHint",
|
|
39781
|
+
componentId: "sc-1hrivmk-4"
|
|
39782
|
+
})(["margin:0 !important;font-family:'Press Start 2P',cursive !important;font-size:8px !important;color:rgba(255,255,255,0.4) !important;text-align:center !important;line-height:1.8 !important;max-width:280px;"]);
|
|
39783
|
+
var BuyButton = /*#__PURE__*/styled__default.button.withConfig({
|
|
39784
|
+
displayName: "DCWalletContent__BuyButton",
|
|
39785
|
+
componentId: "sc-1hrivmk-5"
|
|
39786
|
+
})(["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;}"]);
|
|
39787
|
+
var BuyButtonLabel = /*#__PURE__*/styled__default.span.withConfig({
|
|
39788
|
+
displayName: "DCWalletContent__BuyButtonLabel",
|
|
39789
|
+
componentId: "sc-1hrivmk-6"
|
|
39790
|
+
})(["font-family:'Press Start 2P',cursive;font-size:8px;"]);
|
|
39791
|
+
|
|
39792
|
+
var _excluded$3 = ["onClose"];
|
|
39793
|
+
var DCWalletModal = function DCWalletModal(_ref) {
|
|
39794
|
+
var onClose = _ref.onClose,
|
|
39795
|
+
contentProps = _objectWithoutPropertiesLoose(_ref, _excluded$3);
|
|
39796
|
+
var stopPropagation = React.useCallback(function (e) {
|
|
39797
|
+
e.stopPropagation();
|
|
39798
|
+
}, []);
|
|
39799
|
+
return React__default.createElement(ModalPortal, null, React__default.createElement(Overlay$1, {
|
|
39800
|
+
onPointerDown: onClose
|
|
39801
|
+
}), React__default.createElement(ModalContainer$1, null, React__default.createElement(ModalContent$1, {
|
|
39802
|
+
onClick: stopPropagation,
|
|
39803
|
+
onTouchStart: stopPropagation,
|
|
39804
|
+
onPointerDown: stopPropagation
|
|
39805
|
+
}, React__default.createElement(Header$3, null, React__default.createElement(Title$4, null, "DC Wallet"), React__default.createElement(CloseButton$5, {
|
|
39806
|
+
onPointerDown: onClose,
|
|
39807
|
+
"aria-label": "Close"
|
|
39808
|
+
}, React__default.createElement(fa.FaTimes, null))), React__default.createElement(DCWalletContent, Object.assign({}, contentProps)))));
|
|
39769
39809
|
};
|
|
39770
39810
|
var Overlay$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
39771
39811
|
displayName: "DCWalletModal__Overlay",
|
|
@@ -39791,30 +39831,6 @@ var CloseButton$5 = /*#__PURE__*/styled__default.button.withConfig({
|
|
|
39791
39831
|
displayName: "DCWalletModal__CloseButton",
|
|
39792
39832
|
componentId: "sc-12xy88y-5"
|
|
39793
39833
|
})(["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
39834
|
|
|
39819
39835
|
var SimpleProgressBar = function SimpleProgressBar(_ref) {
|
|
39820
39836
|
var value = _ref.value,
|
|
@@ -41643,7 +41659,7 @@ var SearchHeader$1 = function SearchHeader(_ref) {
|
|
|
41643
41659
|
rightElement: searchOptions.rightElement
|
|
41644
41660
|
})), filterOptions && React__default.createElement(FilterContainer, {
|
|
41645
41661
|
"$isSmallScreen": isSmallScreen
|
|
41646
|
-
}, React__default.createElement(StyledDropdown, {
|
|
41662
|
+
}, React__default.createElement(StyledDropdown$1, {
|
|
41647
41663
|
options: filterOptions.options,
|
|
41648
41664
|
onChange: filterOptions.onOptionChange,
|
|
41649
41665
|
width: isSmallScreen ? '100%' : '200px'
|
|
@@ -41681,7 +41697,7 @@ var StyledSearchBar = /*#__PURE__*/styled__default(SearchBar).withConfig({
|
|
|
41681
41697
|
displayName: "SearchHeader__StyledSearchBar",
|
|
41682
41698
|
componentId: "sc-1xd17jb-4"
|
|
41683
41699
|
})(["width:100%;"]);
|
|
41684
|
-
var StyledDropdown = /*#__PURE__*/styled__default(Dropdown).withConfig({
|
|
41700
|
+
var StyledDropdown$1 = /*#__PURE__*/styled__default(Dropdown).withConfig({
|
|
41685
41701
|
displayName: "SearchHeader__StyledDropdown",
|
|
41686
41702
|
componentId: "sc-1xd17jb-5"
|
|
41687
41703
|
})(["min-width:150px;"]);
|
|
@@ -44377,15 +44393,15 @@ var Leaderboard = function Leaderboard(props) {
|
|
|
44377
44393
|
option: itemType
|
|
44378
44394
|
};
|
|
44379
44395
|
});
|
|
44380
|
-
return React__default.createElement(React__default.Fragment, null, React__default.createElement(WrapperContainer, null, React__default.createElement(StyledDropdown$
|
|
44396
|
+
return React__default.createElement(React__default.Fragment, null, React__default.createElement(WrapperContainer, null, React__default.createElement(StyledDropdown$2, {
|
|
44381
44397
|
options: rankTypeOptions,
|
|
44382
44398
|
onChange: onChangeRankType,
|
|
44383
44399
|
width: "80%"
|
|
44384
|
-
}), rankType === 'Class' ? React__default.createElement(StyledDropdown$
|
|
44400
|
+
}), rankType === 'Class' ? React__default.createElement(StyledDropdown$2, {
|
|
44385
44401
|
options: classTypeOptions,
|
|
44386
44402
|
onChange: onChangeClassType,
|
|
44387
44403
|
width: "100%"
|
|
44388
|
-
}) : null, rankType === 'Skill' ? React__default.createElement(StyledDropdown$
|
|
44404
|
+
}) : null, rankType === 'Skill' ? React__default.createElement(StyledDropdown$2, {
|
|
44389
44405
|
options: skillTypeOptions,
|
|
44390
44406
|
onChange: onChangeSkillType,
|
|
44391
44407
|
width: "100%"
|
|
@@ -44401,7 +44417,7 @@ var WrapperContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
44401
44417
|
displayName: "Leaderboard__WrapperContainer",
|
|
44402
44418
|
componentId: "sc-1wdsq7i-0"
|
|
44403
44419
|
})(["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$
|
|
44420
|
+
var StyledDropdown$2 = /*#__PURE__*/styled__default(Dropdown).withConfig({
|
|
44405
44421
|
displayName: "Leaderboard__StyledDropdown",
|
|
44406
44422
|
componentId: "sc-1wdsq7i-1"
|
|
44407
44423
|
})(["margin:3px !important;width:170px !important;"]);
|
|
@@ -44498,11 +44514,11 @@ var Tabs = function Tabs(_ref) {
|
|
|
44498
44514
|
var TabsContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
44499
44515
|
displayName: "Tabs__TabsContainer",
|
|
44500
44516
|
componentId: "sc-n35er2-0"
|
|
44501
|
-
})(["display:flex;gap:
|
|
44517
|
+
})(["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
44518
|
var TabButton$1 = /*#__PURE__*/styled__default.button.withConfig({
|
|
44503
44519
|
displayName: "Tabs__TabButton",
|
|
44504
44520
|
componentId: "sc-n35er2-1"
|
|
44505
|
-
})(["display:flex;align-items:center;gap:
|
|
44521
|
+
})(["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
44522
|
var $active = _ref2.$active;
|
|
44507
44523
|
return $active ? '3px solid #f59e0b' : '3px solid transparent';
|
|
44508
44524
|
}, function (_ref3) {
|
|
@@ -44713,12 +44729,12 @@ var BlueprintSearchModal = function BlueprintSearchModal(_ref) {
|
|
|
44713
44729
|
placeholder: "Search by name...",
|
|
44714
44730
|
onFocus: disableHotkeys,
|
|
44715
44731
|
onBlur: enableHotkeys
|
|
44716
|
-
})), React__default.createElement(FiltersRow, null, React__default.createElement(StyledDropdown$
|
|
44732
|
+
})), React__default.createElement(FiltersRow, null, React__default.createElement(StyledDropdown$3, {
|
|
44717
44733
|
key: "type-" + selectedType,
|
|
44718
44734
|
options: typeOptions,
|
|
44719
44735
|
onChange: handleTypeChange,
|
|
44720
44736
|
width: "100%"
|
|
44721
|
-
}), React__default.createElement(StyledDropdown$
|
|
44737
|
+
}), React__default.createElement(StyledDropdown$3, {
|
|
44722
44738
|
key: "subtype-" + selectedSubType,
|
|
44723
44739
|
options: subTypeOptions,
|
|
44724
44740
|
onChange: handleSubTypeChange,
|
|
@@ -44773,7 +44789,7 @@ var FiltersRow = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
44773
44789
|
displayName: "BlueprintSearchModal__FiltersRow",
|
|
44774
44790
|
componentId: "sc-i7bssq-8"
|
|
44775
44791
|
})(["display:grid;grid-template-columns:1fr 1fr;gap:8px;"]);
|
|
44776
|
-
var StyledDropdown$
|
|
44792
|
+
var StyledDropdown$3 = /*#__PURE__*/styled__default(Dropdown).withConfig({
|
|
44777
44793
|
displayName: "BlueprintSearchModal__StyledDropdown",
|
|
44778
44794
|
componentId: "sc-i7bssq-9"
|
|
44779
44795
|
})(["margin:0px !important;width:100% !important;"]);
|
|
@@ -44923,7 +44939,7 @@ var BuyOrderDetailsModal = function BuyOrderDetailsModal(_ref) {
|
|
|
44923
44939
|
min: 1,
|
|
44924
44940
|
onFocus: disableHotkeys,
|
|
44925
44941
|
onBlur: enableHotkeys
|
|
44926
|
-
})), React__default.createElement(FieldRow, null, React__default.createElement(Label$4, null, "Rarity"), React__default.createElement(StyledDropdown$
|
|
44942
|
+
})), React__default.createElement(FieldRow, null, React__default.createElement(Label$4, null, "Rarity"), React__default.createElement(StyledDropdown$4, {
|
|
44927
44943
|
key: rarity,
|
|
44928
44944
|
options: rarityOptions,
|
|
44929
44945
|
onChange: onRarityChange,
|
|
@@ -45000,7 +45016,7 @@ var StyledInput$3 = /*#__PURE__*/styled__default(Input).withConfig({
|
|
|
45000
45016
|
displayName: "BuyOrderDetailsModal__StyledInput",
|
|
45001
45017
|
componentId: "sc-6bghe9-14"
|
|
45002
45018
|
})(["width:100%;"]);
|
|
45003
|
-
var StyledDropdown$
|
|
45019
|
+
var StyledDropdown$4 = /*#__PURE__*/styled__default(Dropdown).withConfig({
|
|
45004
45020
|
displayName: "BuyOrderDetailsModal__StyledDropdown",
|
|
45005
45021
|
componentId: "sc-6bghe9-15"
|
|
45006
45022
|
})(["margin:0px !important;width:100% !important;"]);
|
|
@@ -45704,6 +45720,7 @@ var MarketplaceRows = function MarketplaceRows(_ref) {
|
|
|
45704
45720
|
scale = _ref.scale,
|
|
45705
45721
|
onMarketPlaceItemBuy = _ref.onMarketPlaceItemBuy,
|
|
45706
45722
|
onMarketPlaceItemRemove = _ref.onMarketPlaceItemRemove,
|
|
45723
|
+
onDCCoinClick = _ref.onDCCoinClick,
|
|
45707
45724
|
disabled = _ref.disabled;
|
|
45708
45725
|
var renderGems = function renderGems(item) {
|
|
45709
45726
|
return item.attachedGems && onRenderGems(item);
|
|
@@ -45739,8 +45756,11 @@ var MarketplaceRows = function MarketplaceRows(_ref) {
|
|
|
45739
45756
|
atlasJSON: atlasJSON,
|
|
45740
45757
|
spriteKey: "others/gold-coin-qty-5.png",
|
|
45741
45758
|
imgScale: 1
|
|
45742
|
-
}))), React__default.createElement(GoldPrice$1, null, itemPrice)), dcEquivalentPrice !== undefined && React__default.createElement(DCPriceRow,
|
|
45743
|
-
|
|
45759
|
+
}))), React__default.createElement(GoldPrice$1, null, itemPrice)), dcEquivalentPrice !== undefined && React__default.createElement(DCPriceRow, {
|
|
45760
|
+
"$clickable": !!onDCCoinClick,
|
|
45761
|
+
onPointerDown: onDCCoinClick
|
|
45762
|
+
}, React__default.createElement(DCCoinWrapper, null, React__default.createElement(SimpleTooltip, {
|
|
45763
|
+
content: onDCCoinClick ? 'Buy Definya Coin' : 'Definya Coin',
|
|
45744
45764
|
direction: "top"
|
|
45745
45765
|
}, React__default.createElement(SpriteFromAtlas, {
|
|
45746
45766
|
atlasIMG: atlasIMG,
|
|
@@ -45775,7 +45795,8 @@ var GroupedMarketplaceRow = function GroupedMarketplaceRow(_ref2) {
|
|
|
45775
45795
|
dcToGoldSwapRate = _ref2$dcToGoldSwapRat === void 0 ? 0 : _ref2$dcToGoldSwapRat,
|
|
45776
45796
|
getDCEquivalentPrice = _ref2.getDCEquivalentPrice,
|
|
45777
45797
|
characterId = _ref2.characterId,
|
|
45778
|
-
onBuy = _ref2.onBuy
|
|
45798
|
+
onBuy = _ref2.onBuy,
|
|
45799
|
+
onDCCoinClick = _ref2.onDCCoinClick;
|
|
45779
45800
|
var _useState = React.useState(false),
|
|
45780
45801
|
expanded = _useState[0],
|
|
45781
45802
|
setExpanded = _useState[1];
|
|
@@ -45796,6 +45817,7 @@ var GroupedMarketplaceRow = function GroupedMarketplaceRow(_ref2) {
|
|
|
45796
45817
|
onMarketPlaceItemBuy: function onMarketPlaceItemBuy() {
|
|
45797
45818
|
return onBuy(bestListing._id);
|
|
45798
45819
|
},
|
|
45820
|
+
onDCCoinClick: onDCCoinClick,
|
|
45799
45821
|
disabled: bestListing.owner === characterId
|
|
45800
45822
|
}), hasMultiple && React__default.createElement(GroupMeta, null, React__default.createElement(OfferBadge, null, totalOffers, " offers"), React__default.createElement(Chevron, {
|
|
45801
45823
|
expanded: expanded
|
|
@@ -45811,6 +45833,7 @@ var GroupedMarketplaceRow = function GroupedMarketplaceRow(_ref2) {
|
|
|
45811
45833
|
onMarketPlaceItemBuy: function onMarketPlaceItemBuy() {
|
|
45812
45834
|
return onBuy(listing._id);
|
|
45813
45835
|
},
|
|
45836
|
+
onDCCoinClick: onDCCoinClick,
|
|
45814
45837
|
disabled: listing.owner === characterId
|
|
45815
45838
|
});
|
|
45816
45839
|
})));
|
|
@@ -45884,7 +45907,13 @@ var GoldPrice$1 = /*#__PURE__*/styled__default.span.withConfig({
|
|
|
45884
45907
|
var DCPriceRow = /*#__PURE__*/styled__default.div.withConfig({
|
|
45885
45908
|
displayName: "MarketplaceRows__DCPriceRow",
|
|
45886
45909
|
componentId: "sc-wmpr1o-15"
|
|
45887
|
-
})(["display:flex;align-items:center;gap:0.3rem;margin-left:0.5rem;"])
|
|
45910
|
+
})(["display:flex;align-items:center;gap:0.3rem;margin-left:0.5rem;cursor:", ";border-radius:4px;transition:opacity 0.15s;&:hover{opacity:", ";}"], function (_ref5) {
|
|
45911
|
+
var $clickable = _ref5.$clickable;
|
|
45912
|
+
return $clickable ? 'pointer' : 'default';
|
|
45913
|
+
}, function (_ref6) {
|
|
45914
|
+
var $clickable = _ref6.$clickable;
|
|
45915
|
+
return $clickable ? '0.75' : '1';
|
|
45916
|
+
});
|
|
45888
45917
|
var DCCoinWrapper = /*#__PURE__*/styled__default.span.withConfig({
|
|
45889
45918
|
displayName: "MarketplaceRows__DCCoinWrapper",
|
|
45890
45919
|
componentId: "sc-wmpr1o-16"
|
|
@@ -45908,14 +45937,14 @@ var GemContainer = /*#__PURE__*/styled__default.p.withConfig({
|
|
|
45908
45937
|
var RarityContainer$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
45909
45938
|
displayName: "MarketplaceRows__RarityContainer",
|
|
45910
45939
|
componentId: "sc-wmpr1o-21"
|
|
45911
|
-
})(["border-color:", ";box-shadow:", " inset,", ";width:32px;height:32px;"], function (
|
|
45912
|
-
var item =
|
|
45940
|
+
})(["border-color:", ";box-shadow:", " inset,", ";width:32px;height:32px;"], function (_ref7) {
|
|
45941
|
+
var item = _ref7.item;
|
|
45913
45942
|
return rarityColor(item);
|
|
45914
|
-
}, function (
|
|
45915
|
-
var item =
|
|
45943
|
+
}, function (_ref8) {
|
|
45944
|
+
var item = _ref8.item;
|
|
45916
45945
|
return "0 0 5px 8px " + rarityColor(item);
|
|
45917
|
-
}, function (
|
|
45918
|
-
var item =
|
|
45946
|
+
}, function (_ref9) {
|
|
45947
|
+
var item = _ref9.item;
|
|
45919
45948
|
return "0 0 8px 6px " + rarityColor(item);
|
|
45920
45949
|
});
|
|
45921
45950
|
|
|
@@ -45983,6 +46012,7 @@ var BuyPanel = function BuyPanel(_ref) {
|
|
|
45983
46012
|
equipmentSet = _ref.equipmentSet,
|
|
45984
46013
|
onMarketPlaceItemBuy = _ref.onMarketPlaceItemBuy,
|
|
45985
46014
|
onFulfillBuyOrder = _ref.onFulfillBuyOrder,
|
|
46015
|
+
onDCCoinClick = _ref.onDCCoinClick,
|
|
45986
46016
|
characterId = _ref.characterId,
|
|
45987
46017
|
enableHotkeys = _ref.enableHotkeys,
|
|
45988
46018
|
disableHotkeys = _ref.disableHotkeys,
|
|
@@ -46009,7 +46039,7 @@ var BuyPanel = function BuyPanel(_ref) {
|
|
|
46009
46039
|
var _useState2 = React.useState(false),
|
|
46010
46040
|
showFilters = _useState2[0],
|
|
46011
46041
|
setShowFilters = _useState2[1];
|
|
46012
|
-
var _useState3 = React.useState('
|
|
46042
|
+
var _useState3 = React.useState('sell'),
|
|
46013
46043
|
browseMode = _useState3[0],
|
|
46014
46044
|
setBrowseMode = _useState3[1];
|
|
46015
46045
|
var _useState4 = React.useState(''),
|
|
@@ -46083,8 +46113,8 @@ var BuyPanel = function BuyPanel(_ref) {
|
|
|
46083
46113
|
return true;
|
|
46084
46114
|
});
|
|
46085
46115
|
}, [name, openBuyOrders, price, selectedRarity]);
|
|
46086
|
-
var showSellSection = browseMode === '
|
|
46087
|
-
var showBuySection = browseMode === '
|
|
46116
|
+
var showSellSection = browseMode === 'sell';
|
|
46117
|
+
var showBuySection = browseMode === 'buy';
|
|
46088
46118
|
var hasVisibleContent = showSellSection && groupedItems.length > 0 || showBuySection && visibleBuyOrders.length > 0;
|
|
46089
46119
|
return React__default.createElement(React__default.Fragment, null, buyingItemId && buyingItem && hasDCBalance && React__default.createElement(MarketplaceBuyModal, {
|
|
46090
46120
|
goldPrice: buyingItem.price,
|
|
@@ -46120,9 +46150,6 @@ var BuyPanel = function BuyPanel(_ref) {
|
|
|
46120
46150
|
return setBrowseMode(value);
|
|
46121
46151
|
},
|
|
46122
46152
|
options: [{
|
|
46123
|
-
id: 'all',
|
|
46124
|
-
label: 'All'
|
|
46125
|
-
}, {
|
|
46126
46153
|
id: 'sell',
|
|
46127
46154
|
label: 'Sell Offers'
|
|
46128
46155
|
}, {
|
|
@@ -46151,18 +46178,18 @@ var BuyPanel = function BuyPanel(_ref) {
|
|
|
46151
46178
|
height: 18
|
|
46152
46179
|
}))), showFilters && React__default.createElement(OptionsWrapper, {
|
|
46153
46180
|
showFilters: showFilters
|
|
46154
|
-
}, React__default.createElement(WrapperContainer$1, null, React__default.createElement(StyledDropdown$
|
|
46181
|
+
}, React__default.createElement(WrapperContainer$1, null, React__default.createElement(StyledDropdown$5, {
|
|
46155
46182
|
options: itemTypeOptions,
|
|
46156
46183
|
onChange: onChangeType,
|
|
46157
46184
|
width: "100%"
|
|
46158
|
-
}), React__default.createElement(StyledDropdown$
|
|
46185
|
+
}), React__default.createElement(StyledDropdown$5, {
|
|
46159
46186
|
options: itemRarityOptions,
|
|
46160
46187
|
onChange: function onChange(value) {
|
|
46161
46188
|
setSelectedRarity(value);
|
|
46162
46189
|
onChangeRarity(value);
|
|
46163
46190
|
},
|
|
46164
46191
|
width: "100%"
|
|
46165
|
-
}), React__default.createElement(StyledDropdown$
|
|
46192
|
+
}), React__default.createElement(StyledDropdown$5, {
|
|
46166
46193
|
options: orderByOptions,
|
|
46167
46194
|
onChange: onChangeOrder,
|
|
46168
46195
|
width: "100%"
|
|
@@ -46254,14 +46281,10 @@ var BuyPanel = function BuyPanel(_ref) {
|
|
|
46254
46281
|
dcToGoldSwapRate: dcToGoldSwapRate,
|
|
46255
46282
|
getDCEquivalentPrice: getDCEquivalentPrice,
|
|
46256
46283
|
characterId: characterId,
|
|
46257
|
-
onBuy: setBuyingItemId
|
|
46284
|
+
onBuy: setBuyingItemId,
|
|
46285
|
+
onDCCoinClick: onDCCoinClick
|
|
46258
46286
|
});
|
|
46259
|
-
}),
|
|
46260
|
-
totalItems: totalItems,
|
|
46261
|
-
currentPage: currentPage,
|
|
46262
|
-
itemsPerPage: itemsPerPage,
|
|
46263
|
-
onPageChange: onPageChange
|
|
46264
|
-
}))), showBuySection && React__default.createElement(MarketSection, null, React__default.createElement(SectionHeader, null, React__default.createElement(SectionTitle$2, null, "Buy Requests"), React__default.createElement(SectionMeta, null, visibleBuyOrders.length, " visible")), visibleBuyOrders.length === 0 ? React__default.createElement(SectionEmpty, null, "No public buy requests found.") : visibleBuyOrders.map(function (order) {
|
|
46287
|
+
})), showBuySection && React__default.createElement(MarketSection, null, React__default.createElement(SectionHeader, null, React__default.createElement(SectionTitle$2, null, "Buy Requests"), React__default.createElement(SectionMeta, null, visibleBuyOrders.length, " visible")), visibleBuyOrders.length === 0 ? React__default.createElement(SectionEmpty, null, "No public buy requests found.") : visibleBuyOrders.map(function (order) {
|
|
46265
46288
|
return React__default.createElement(BuyOrderRow, {
|
|
46266
46289
|
key: order._id,
|
|
46267
46290
|
buyOrder: order,
|
|
@@ -46270,12 +46293,17 @@ var BuyPanel = function BuyPanel(_ref) {
|
|
|
46270
46293
|
onFulfill: setFulfillingBuyOrderId,
|
|
46271
46294
|
showRequestTag: true
|
|
46272
46295
|
});
|
|
46273
|
-
}),
|
|
46296
|
+
})))), React__default.createElement(PagerFooter, null, showSellSection && totalItems > itemsPerPage && React__default.createElement(Pager, {
|
|
46297
|
+
totalItems: totalItems,
|
|
46298
|
+
currentPage: currentPage,
|
|
46299
|
+
itemsPerPage: itemsPerPage,
|
|
46300
|
+
onPageChange: onPageChange
|
|
46301
|
+
}), showBuySection && openBuyOrdersTotal > BUY_REQUESTS_PER_PAGE && React__default.createElement(Pager, {
|
|
46274
46302
|
totalItems: openBuyOrdersTotal,
|
|
46275
46303
|
currentPage: openBuyOrdersPage,
|
|
46276
46304
|
itemsPerPage: BUY_REQUESTS_PER_PAGE,
|
|
46277
46305
|
onPageChange: onOpenBuyOrdersPageChange != null ? onOpenBuyOrdersPageChange : function () {}
|
|
46278
|
-
})))
|
|
46306
|
+
})));
|
|
46279
46307
|
};
|
|
46280
46308
|
var ToolbarRow = /*#__PURE__*/styled__default.div.withConfig({
|
|
46281
46309
|
displayName: "BuyPanel__ToolbarRow",
|
|
@@ -46341,11 +46369,11 @@ var SectionEmpty = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
46341
46369
|
displayName: "BuyPanel__SectionEmpty",
|
|
46342
46370
|
componentId: "sc-1si8t7i-12"
|
|
46343
46371
|
})(["min-height:56px;display:flex;align-items:center;justify-content:center;color:#71717a;font-size:0.48rem;text-transform:uppercase;letter-spacing:1px;background:rgba(255,255,255,0.03);border:1px dashed rgba(255,255,255,0.08);border-radius:6px;"]);
|
|
46344
|
-
var
|
|
46345
|
-
displayName: "
|
|
46372
|
+
var PagerFooter = /*#__PURE__*/styled__default.div.withConfig({
|
|
46373
|
+
displayName: "BuyPanel__PagerFooter",
|
|
46346
46374
|
componentId: "sc-1si8t7i-13"
|
|
46347
|
-
})(["display:flex;justify-content:center;
|
|
46348
|
-
var StyledDropdown$
|
|
46375
|
+
})(["display:flex;justify-content:center;align-items:center;padding:8px 0 4px;min-height:36px;width:95%;margin:0 auto;"]);
|
|
46376
|
+
var StyledDropdown$5 = /*#__PURE__*/styled__default(Dropdown).withConfig({
|
|
46349
46377
|
displayName: "BuyPanel__StyledDropdown",
|
|
46350
46378
|
componentId: "sc-1si8t7i-14"
|
|
46351
46379
|
})(["margin:0px !important;width:100% !important;"]);
|
|
@@ -46415,7 +46443,7 @@ var HistoryPanel = function HistoryPanel(_ref) {
|
|
|
46415
46443
|
var getDCEquivalentPrice = function getDCEquivalentPrice(goldPrice) {
|
|
46416
46444
|
return dcToGoldSwapRate > 0 ? shared.goldToDC(goldPrice) : 0;
|
|
46417
46445
|
};
|
|
46418
|
-
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$
|
|
46446
|
+
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, {
|
|
46419
46447
|
key: selectedType,
|
|
46420
46448
|
options: transactionTypeOptions,
|
|
46421
46449
|
onChange: onTypeChange,
|
|
@@ -46478,7 +46506,7 @@ var FilterLabel$1 = /*#__PURE__*/styled__default.p.withConfig({
|
|
|
46478
46506
|
displayName: "HistoryPanel__FilterLabel",
|
|
46479
46507
|
componentId: "sc-74mioa-2"
|
|
46480
46508
|
})(["margin:0;font-size:0.7rem;color:#ccc;text-transform:uppercase;letter-spacing:1px;white-space:nowrap;"]);
|
|
46481
|
-
var StyledDropdown$
|
|
46509
|
+
var StyledDropdown$6 = /*#__PURE__*/styled__default(Dropdown).withConfig({
|
|
46482
46510
|
displayName: "HistoryPanel__StyledDropdown",
|
|
46483
46511
|
componentId: "sc-74mioa-3"
|
|
46484
46512
|
})(["margin:0px !important;"]);
|
|
@@ -46900,7 +46928,8 @@ var Marketplace = function Marketplace(props) {
|
|
|
46900
46928
|
_props$historySelecte = props.historySelectedType,
|
|
46901
46929
|
historySelectedType = _props$historySelecte === void 0 ? 'All' : _props$historySelecte,
|
|
46902
46930
|
onHistoryTypeChange = props.onHistoryTypeChange,
|
|
46903
|
-
onHistoryPageChange = props.onHistoryPageChange
|
|
46931
|
+
onHistoryPageChange = props.onHistoryPageChange,
|
|
46932
|
+
walletProps = props.walletProps;
|
|
46904
46933
|
var _useState = React.useState('marketplace'),
|
|
46905
46934
|
activeTab = _useState[0],
|
|
46906
46935
|
setActiveTab = _useState[1];
|
|
@@ -46963,14 +46992,21 @@ var Marketplace = function Marketplace(props) {
|
|
|
46963
46992
|
width: 18,
|
|
46964
46993
|
height: 18
|
|
46965
46994
|
})
|
|
46966
|
-
}
|
|
46995
|
+
}].concat(walletProps ? [{
|
|
46996
|
+
id: 'wallet',
|
|
46997
|
+
label: 'Wallet',
|
|
46998
|
+
icon: React__default.createElement(Wallet.Wallet, {
|
|
46999
|
+
width: 18,
|
|
47000
|
+
height: 18
|
|
47001
|
+
})
|
|
47002
|
+
}] : [], [{
|
|
46967
47003
|
id: 'settings',
|
|
46968
47004
|
label: 'Settings',
|
|
46969
47005
|
icon: React__default.createElement(Settings2.Settings2, {
|
|
46970
47006
|
width: 18,
|
|
46971
47007
|
height: 18
|
|
46972
47008
|
})
|
|
46973
|
-
}],
|
|
47009
|
+
}]),
|
|
46974
47010
|
activeTabId: activeTab,
|
|
46975
47011
|
onTabChange: handleTabChange
|
|
46976
47012
|
}), activeTab === 'marketplace' && React__default.createElement(BuyPanel, Object.assign({}, props)), activeTab === 'sell' && React__default.createElement(ManagmentPanel, Object.assign({}, props, {
|
|
@@ -47024,7 +47060,7 @@ var Marketplace = function Marketplace(props) {
|
|
|
47024
47060
|
atlasJSON: props.atlasJSON,
|
|
47025
47061
|
atlasIMG: props.atlasIMG,
|
|
47026
47062
|
dcToGoldSwapRate: props.dcToGoldSwapRate
|
|
47027
|
-
}), activeTab === 'settings' && React__default.createElement(MarketplaceSettingsPanel, {
|
|
47063
|
+
}), activeTab === 'wallet' && walletProps && React__default.createElement(DCWalletContent, Object.assign({}, walletProps)), activeTab === 'settings' && React__default.createElement(MarketplaceSettingsPanel, {
|
|
47028
47064
|
acceptedCurrency: acceptedCurrency,
|
|
47029
47065
|
onAcceptedCurrencyChange: handleCurrencyChange
|
|
47030
47066
|
}), showSharedPager && React__default.createElement(PagerContainer$3, null, React__default.createElement(Pager, Object.assign({}, props))));
|
|
@@ -47354,10 +47390,10 @@ var RowsWrapper$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
47354
47390
|
componentId: "sc-eu8ggt-2"
|
|
47355
47391
|
})(["overflow-y:scroll;-webkit-overflow-scrolling:touch;width:100%;height:200px;"]);
|
|
47356
47392
|
|
|
47357
|
-
var _excluded$
|
|
47393
|
+
var _excluded$4 = ["children"];
|
|
47358
47394
|
var HighlightedText = function HighlightedText(_ref) {
|
|
47359
47395
|
var children = _ref.children,
|
|
47360
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
47396
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$4);
|
|
47361
47397
|
return React__default.createElement(Text, Object.assign({}, rest), children);
|
|
47362
47398
|
};
|
|
47363
47399
|
var Text = /*#__PURE__*/styled__default.p.withConfig({
|
|
@@ -69759,7 +69795,7 @@ var ScrollableContent = function ScrollableContent(_ref) {
|
|
|
69759
69795
|
value: searchOptions.value,
|
|
69760
69796
|
onChange: searchOptions.onChange,
|
|
69761
69797
|
placeholder: searchOptions.placeholder || 'Search...'
|
|
69762
|
-
})), filterOptions && React__default.createElement(FilterContainer$1, null, React__default.createElement(StyledDropdown$
|
|
69798
|
+
})), filterOptions && React__default.createElement(FilterContainer$1, null, React__default.createElement(StyledDropdown$7, {
|
|
69763
69799
|
options: filterOptions.options,
|
|
69764
69800
|
onChange: filterOptions.onOptionChange,
|
|
69765
69801
|
width: "200px"
|
|
@@ -69798,7 +69834,7 @@ var StyledSearchBar$2 = /*#__PURE__*/styled__default(SearchBar).withConfig({
|
|
|
69798
69834
|
displayName: "ScrollableContent__StyledSearchBar",
|
|
69799
69835
|
componentId: "sc-xhh2um-5"
|
|
69800
69836
|
})(["width:100%;"]);
|
|
69801
|
-
var StyledDropdown$
|
|
69837
|
+
var StyledDropdown$7 = /*#__PURE__*/styled__default(Dropdown).withConfig({
|
|
69802
69838
|
displayName: "ScrollableContent__StyledDropdown",
|
|
69803
69839
|
componentId: "sc-xhh2um-6"
|
|
69804
69840
|
})(["min-width:150px;"]);
|
|
@@ -71422,6 +71458,7 @@ exports.CheckButton = CheckButton;
|
|
|
71422
71458
|
exports.CheckItem = CheckItem;
|
|
71423
71459
|
exports.CircularController = CircularController;
|
|
71424
71460
|
exports.CraftBook = CraftBook;
|
|
71461
|
+
exports.DCWalletContent = DCWalletContent;
|
|
71425
71462
|
exports.DCWalletModal = DCWalletModal;
|
|
71426
71463
|
exports.DailyTasks = DailyTasks;
|
|
71427
71464
|
exports.DraggableContainer = DraggableContainer;
|