@rpg-engine/long-bow 0.8.159 → 0.8.161
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/Marketplace/Marketplace.d.ts +1 -0
- package/dist/components/Pager.d.ts +1 -0
- package/dist/long-bow.cjs.development.js +89 -43
- 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 +90 -44
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/components/DCWallet/DCWalletContent.tsx +1 -2
- package/src/components/Marketplace/BlueprintSearchModal.tsx +70 -31
- package/src/components/Marketplace/BlueprintTable.tsx +30 -21
- package/src/components/Marketplace/Marketplace.tsx +4 -2
- package/src/components/Pager.tsx +13 -5
package/dist/long-bow.esm.js
CHANGED
|
@@ -2,7 +2,7 @@ import React, { useState, useEffect, Component, useRef, useCallback, useMemo, me
|
|
|
2
2
|
import styled, { css, keyframes, createGlobalStyle } from 'styled-components';
|
|
3
3
|
import { BeatLoader } from 'react-spinners';
|
|
4
4
|
import { v4 } from 'uuid';
|
|
5
|
-
import { GRID_WIDTH, GRID_HEIGHT, ShortcutType, getItemTextureKeyPath, ItemContainerType, ItemType, DepotSocketEvents, ItemSocketEvents, ItemSocketEventsDisplayLabels, ActionsForInventory, ActionsForEquipmentSet, ActionsForLoot, ActionsForMapContainer, ItemQualityLevel, ItemRarities, ItemSubType, isMobile, TaskType, TaskStatus, isMobileOrTablet, RewardType,
|
|
5
|
+
import { GRID_WIDTH, GRID_HEIGHT, ShortcutType, getItemTextureKeyPath, ItemContainerType, ItemType, DepotSocketEvents, ItemSocketEvents, ItemSocketEventsDisplayLabels, ActionsForInventory, ActionsForEquipmentSet, ActionsForLoot, ActionsForMapContainer, ItemQualityLevel, ItemRarities, ItemSubType, isMobile, TaskType, TaskStatus, isMobileOrTablet, RewardType, ItemSlotType, NPCSubtype, EntityAttackType, NPCAlignment, VideoGuideCategory, VideoGuideLanguage, MarketplaceBuyOrderStatus, formatDCAmount, goldToDC, MarketplaceTransactionType, MarketplaceAcceptedCurrency, CharacterClass, QuestStatus, getLevelFromXP, getSkillConstants, getLevelFromSPTiered, getXPForLevel, getSPForLevelTiered, MetadataType, PurchaseType, UserAccountTypes, PaymentCurrency, PeriodOfDay } from '@rpg-engine/shared';
|
|
6
6
|
export { MarketplaceAcceptedCurrency } from '@rpg-engine/shared';
|
|
7
7
|
import dayjs from 'dayjs';
|
|
8
8
|
import { ErrorBoundary as ErrorBoundary$1 } from 'react-error-boundary';
|
|
@@ -21,11 +21,11 @@ import { ShoppingBag } from 'pixelarticons/react/ShoppingBag';
|
|
|
21
21
|
import { ShoppingCart } from 'pixelarticons/react/ShoppingCart';
|
|
22
22
|
import { Store as Store$1 } from 'pixelarticons/react/Store';
|
|
23
23
|
import { Wallet } from 'pixelarticons/react/Wallet';
|
|
24
|
+
import { SortVertical } from 'pixelarticons/react/SortVertical';
|
|
24
25
|
import { Search } from 'pixelarticons/react/Search';
|
|
25
26
|
import { Delete } from 'pixelarticons/react/Delete';
|
|
26
27
|
import 'rpgui/rpgui.css';
|
|
27
28
|
import 'rpgui/rpgui.min.js';
|
|
28
|
-
import { SortVertical } from 'pixelarticons/react/SortVertical';
|
|
29
29
|
import { Coins } from 'pixelarticons/react/Coins';
|
|
30
30
|
import capitalize from 'lodash-es/capitalize';
|
|
31
31
|
|
|
@@ -39732,7 +39732,7 @@ var DCWalletContent = function DCWalletContent(_ref) {
|
|
|
39732
39732
|
onRequestHistory: onRequestHistory
|
|
39733
39733
|
})
|
|
39734
39734
|
}];
|
|
39735
|
-
return React.createElement(WalletContainer, null, React.createElement(BalanceHeader, null, React.createElement(BalanceTop, null, React.createElement(BalanceBlock, null, React.createElement(BalanceLabel, null, "DC BALANCE"), React.createElement(BalanceAmount, null,
|
|
39735
|
+
return React.createElement(WalletContainer, null, React.createElement(BalanceHeader, null, React.createElement(BalanceTop, null, React.createElement(BalanceBlock, null, React.createElement(BalanceLabel, null, "DC BALANCE"), React.createElement(BalanceAmount, null, dcBalance.toLocaleString(), " ", React.createElement(BalanceDC, null, "DC")), React.createElement(BalanceEquiv, null, "\u2248 $", usdValue, " USD \xA0\xB7\xA0 ", goldValue, " Gold")), onBuyDC && React.createElement(BuyButton, {
|
|
39736
39736
|
onPointerDown: onBuyDC,
|
|
39737
39737
|
role: "button",
|
|
39738
39738
|
tabIndex: 0,
|
|
@@ -44501,9 +44501,13 @@ var Pager = function Pager(_ref) {
|
|
|
44501
44501
|
var totalItems = _ref.totalItems,
|
|
44502
44502
|
currentPage = _ref.currentPage,
|
|
44503
44503
|
itemsPerPage = _ref.itemsPerPage,
|
|
44504
|
-
onPageChange = _ref.onPageChange
|
|
44504
|
+
onPageChange = _ref.onPageChange,
|
|
44505
|
+
_ref$compact = _ref.compact,
|
|
44506
|
+
compact = _ref$compact === void 0 ? false : _ref$compact;
|
|
44505
44507
|
var totalPages = Math.ceil(totalItems / itemsPerPage);
|
|
44506
|
-
return React.createElement(Container$A, null, React.createElement("p", null, "Total items: ", totalItems), React.createElement(PagerContainer,
|
|
44508
|
+
return React.createElement(Container$A, null, !compact && React.createElement("p", null, "Total items: ", totalItems), React.createElement(PagerContainer, {
|
|
44509
|
+
"$compact": compact
|
|
44510
|
+
}, React.createElement("button", {
|
|
44507
44511
|
disabled: currentPage === 1,
|
|
44508
44512
|
onPointerDown: function onPointerDown() {
|
|
44509
44513
|
return onPageChange(Math.max(currentPage - 1, 1));
|
|
@@ -44524,7 +44528,19 @@ var Container$A = /*#__PURE__*/styled.div.withConfig({
|
|
|
44524
44528
|
var PagerContainer = /*#__PURE__*/styled.div.withConfig({
|
|
44525
44529
|
displayName: "Pager__PagerContainer",
|
|
44526
44530
|
componentId: "sc-1ekmf50-1"
|
|
44527
|
-
})(["display:flex;justify-content:center;align-items:center;gap:5px;p{margin:0;}div{color:white;}button{width:
|
|
44531
|
+
})(["display:flex;justify-content:center;align-items:center;gap:5px;p{margin:0;}div{color:white;", "}button{width:", " !important;height:", " !important;font-size:", " !important;background-color:", ";border:none;border-radius:5px;color:white;:hover{background-color:", ";}:disabled{opacity:0.5;}&.active{background-color:", ";font-weight:bold;color:black;}}"], function (_ref2) {
|
|
44532
|
+
var $compact = _ref2.$compact;
|
|
44533
|
+
return $compact && "\n font-size: 0.55rem !important;\n padding: 2px 6px !important;\n min-width: unset !important;\n ";
|
|
44534
|
+
}, function (_ref3) {
|
|
44535
|
+
var $compact = _ref3.$compact;
|
|
44536
|
+
return $compact ? '24px' : '40px';
|
|
44537
|
+
}, function (_ref4) {
|
|
44538
|
+
var $compact = _ref4.$compact;
|
|
44539
|
+
return $compact ? '24px' : '40px';
|
|
44540
|
+
}, function (_ref5) {
|
|
44541
|
+
var $compact = _ref5.$compact;
|
|
44542
|
+
return $compact ? '0.55rem' : 'inherit';
|
|
44543
|
+
}, uiColors.darkGray, uiColors.lightGray, uiColors.orange);
|
|
44528
44544
|
|
|
44529
44545
|
var Tabs = function Tabs(_ref) {
|
|
44530
44546
|
var options = _ref.options,
|
|
@@ -44580,24 +44596,25 @@ var BlueprintTable = function BlueprintTable(_ref) {
|
|
|
44580
44596
|
atlasJSON: atlasJSON,
|
|
44581
44597
|
atlasIMG: atlasIMG,
|
|
44582
44598
|
spriteKey: blueprint.texturePath || blueprint.key,
|
|
44583
|
-
width:
|
|
44584
|
-
height:
|
|
44585
|
-
imgScale:
|
|
44599
|
+
width: 24,
|
|
44600
|
+
height: 24,
|
|
44601
|
+
imgScale: 1.5,
|
|
44586
44602
|
centered: true
|
|
44587
44603
|
})), React.createElement(ColName, null, React.createElement(BlueprintName, null, blueprint.name), (blueprint.type || blueprint.subType) && React.createElement(BlueprintMeta, null, [blueprint.type, blueprint.subType].filter(Boolean).filter(function (v, i, arr) {
|
|
44588
44604
|
return arr.indexOf(v) === i;
|
|
44589
44605
|
}).join(' · '))), React.createElement(ColType, null, React.createElement(TypeText, null, blueprint.type), blueprint.subType && blueprint.subType !== blueprint.type && React.createElement(SubTypeText, null, blueprint.subType)), React.createElement(ColTier, null, "T", blueprint.tier));
|
|
44590
44606
|
}));
|
|
44591
44607
|
};
|
|
44592
|
-
var tableRowBase = "\n display: grid;\n grid-template-columns:
|
|
44608
|
+
var tableRowBase = "\n display: grid;\n grid-template-columns: 28px 1fr 100px 40px;\n align-items: center;\n gap: 6px;\n padding: 3px 8px;\n";
|
|
44609
|
+
var mobileRowOverride = "\n @media (max-width: 600px) {\n padding: 1px 6px;\n gap: 4px;\n }\n";
|
|
44593
44610
|
var ResultsHeader = /*#__PURE__*/styled.div.withConfig({
|
|
44594
44611
|
displayName: "BlueprintTable__ResultsHeader",
|
|
44595
44612
|
componentId: "sc-1ysxhx2-0"
|
|
44596
|
-
})(["", " background:rgba(0,0,0,0.4);border-bottom:1px solid rgba(255,255,255,0.1);position:sticky;top:0;z-index:1
|
|
44613
|
+
})(["", " ", " background:rgba(0,0,0,0.4);border-bottom:1px solid rgba(255,255,255,0.1);position:sticky;top:0;z-index:1;&& > *{font-size:0.48rem !important;color:#555 !important;text-transform:uppercase;letter-spacing:1px;}"], tableRowBase, mobileRowOverride);
|
|
44597
44614
|
var ResultRow = /*#__PURE__*/styled.div.withConfig({
|
|
44598
44615
|
displayName: "BlueprintTable__ResultRow",
|
|
44599
44616
|
componentId: "sc-1ysxhx2-1"
|
|
44600
|
-
})(["", " border-bottom:1px solid rgba(255,255,255,0.04);cursor:", ";transition:background 0.1s;&:hover{background:", ";}&:last-child{border-bottom:none;}"], tableRowBase, function (p) {
|
|
44617
|
+
})(["", " ", " border-bottom:1px solid rgba(255,255,255,0.04);cursor:", ";transition:background 0.1s;&:hover{background:", ";}&:last-child{border-bottom:none;}"], tableRowBase, mobileRowOverride, function (p) {
|
|
44601
44618
|
return p.$selectable ? 'pointer' : 'default';
|
|
44602
44619
|
}, function (p) {
|
|
44603
44620
|
return p.$selectable ? 'rgba(245, 158, 11, 0.08)' : 'none';
|
|
@@ -44605,7 +44622,7 @@ var ResultRow = /*#__PURE__*/styled.div.withConfig({
|
|
|
44605
44622
|
var SpriteWrapper$1 = /*#__PURE__*/styled.div.withConfig({
|
|
44606
44623
|
displayName: "BlueprintTable__SpriteWrapper",
|
|
44607
44624
|
componentId: "sc-1ysxhx2-2"
|
|
44608
|
-
})(["display:flex;align-items:center;justify-content:center;width:
|
|
44625
|
+
})(["display:flex;align-items:center;justify-content:center;width:28px;height:24px;"]);
|
|
44609
44626
|
var ColName = /*#__PURE__*/styled.div.withConfig({
|
|
44610
44627
|
displayName: "BlueprintTable__ColName",
|
|
44611
44628
|
componentId: "sc-1ysxhx2-3"
|
|
@@ -44613,11 +44630,11 @@ var ColName = /*#__PURE__*/styled.div.withConfig({
|
|
|
44613
44630
|
var BlueprintName = /*#__PURE__*/styled.span.withConfig({
|
|
44614
44631
|
displayName: "BlueprintTable__BlueprintName",
|
|
44615
44632
|
componentId: "sc-1ysxhx2-4"
|
|
44616
|
-
})(["font-size:0.
|
|
44633
|
+
})(["font-size:0.6rem !important;color:#e5e7eb !important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"]);
|
|
44617
44634
|
var BlueprintMeta = /*#__PURE__*/styled.span.withConfig({
|
|
44618
44635
|
displayName: "BlueprintTable__BlueprintMeta",
|
|
44619
44636
|
componentId: "sc-1ysxhx2-5"
|
|
44620
|
-
})(["font-size:0.
|
|
44637
|
+
})(["font-size:0.5rem !important;color:#f59e0b !important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"]);
|
|
44621
44638
|
var ColType = /*#__PURE__*/styled.div.withConfig({
|
|
44622
44639
|
displayName: "BlueprintTable__ColType",
|
|
44623
44640
|
componentId: "sc-1ysxhx2-6"
|
|
@@ -44625,15 +44642,15 @@ var ColType = /*#__PURE__*/styled.div.withConfig({
|
|
|
44625
44642
|
var TypeText = /*#__PURE__*/styled.span.withConfig({
|
|
44626
44643
|
displayName: "BlueprintTable__TypeText",
|
|
44627
44644
|
componentId: "sc-1ysxhx2-7"
|
|
44628
|
-
})(["font-size:0.
|
|
44645
|
+
})(["font-size:0.52rem !important;color:#9ca3af !important;"]);
|
|
44629
44646
|
var SubTypeText = /*#__PURE__*/styled.span.withConfig({
|
|
44630
44647
|
displayName: "BlueprintTable__SubTypeText",
|
|
44631
44648
|
componentId: "sc-1ysxhx2-8"
|
|
44632
|
-
})(["font-size:0.
|
|
44649
|
+
})(["font-size:0.46rem !important;color:#f59e0b !important;"]);
|
|
44633
44650
|
var ColTier = /*#__PURE__*/styled.div.withConfig({
|
|
44634
44651
|
displayName: "BlueprintTable__ColTier",
|
|
44635
44652
|
componentId: "sc-1ysxhx2-9"
|
|
44636
|
-
})(["font-size:0.
|
|
44653
|
+
})(["font-size:0.6rem !important;color:#f59e0b !important;text-align:center;"]);
|
|
44637
44654
|
|
|
44638
44655
|
var BLUEPRINTS_PER_PAGE = 10;
|
|
44639
44656
|
var scaleIn = /*#__PURE__*/keyframes(["from{transform:scale(0.85);opacity:0;}to{transform:scale(1);opacity:1;}"]);
|
|
@@ -44641,7 +44658,9 @@ var typeOptions = /*#__PURE__*/[{
|
|
|
44641
44658
|
id: 1,
|
|
44642
44659
|
value: '',
|
|
44643
44660
|
option: 'All Types'
|
|
44644
|
-
}].concat( /*#__PURE__*/Object.keys(
|
|
44661
|
+
}].concat( /*#__PURE__*/Object.keys(ItemSubType).filter(function (t) {
|
|
44662
|
+
return t !== 'DeadBody';
|
|
44663
|
+
}).map(function (t, index) {
|
|
44645
44664
|
return {
|
|
44646
44665
|
id: index + 2,
|
|
44647
44666
|
value: t,
|
|
@@ -44683,6 +44702,9 @@ var BlueprintSearchModal = function BlueprintSearchModal(_ref) {
|
|
|
44683
44702
|
var _useState3 = useState(''),
|
|
44684
44703
|
selectedSubType = _useState3[0],
|
|
44685
44704
|
setSelectedSubType = _useState3[1];
|
|
44705
|
+
var _useState4 = useState(false),
|
|
44706
|
+
showFilters = _useState4[0],
|
|
44707
|
+
setShowFilters = _useState4[1];
|
|
44686
44708
|
var searchNameRef = useRef(searchName);
|
|
44687
44709
|
var selectedTypeRef = useRef(selectedType);
|
|
44688
44710
|
var selectedSubTypeRef = useRef(selectedSubType);
|
|
@@ -44759,7 +44781,19 @@ var BlueprintSearchModal = function BlueprintSearchModal(_ref) {
|
|
|
44759
44781
|
placeholder: "Search by name...",
|
|
44760
44782
|
onFocus: disableHotkeys,
|
|
44761
44783
|
onBlur: enableHotkeys
|
|
44762
|
-
})
|
|
44784
|
+
}), React.createElement(FilterButton$1, {
|
|
44785
|
+
type: "button",
|
|
44786
|
+
"$active": showFilters,
|
|
44787
|
+
onPointerDown: function onPointerDown() {
|
|
44788
|
+
return setShowFilters(function (v) {
|
|
44789
|
+
return !v;
|
|
44790
|
+
});
|
|
44791
|
+
},
|
|
44792
|
+
"aria-label": "Toggle filters"
|
|
44793
|
+
}, React.createElement(SortVertical, {
|
|
44794
|
+
width: 16,
|
|
44795
|
+
height: 16
|
|
44796
|
+
}))), showFilters && React.createElement(FiltersRow, null, React.createElement(StyledDropdown$3, {
|
|
44763
44797
|
key: "type-" + selectedType,
|
|
44764
44798
|
options: typeOptions,
|
|
44765
44799
|
onChange: handleTypeChange,
|
|
@@ -44776,12 +44810,13 @@ var BlueprintSearchModal = function BlueprintSearchModal(_ref) {
|
|
|
44776
44810
|
atlasJSON: atlasJSON,
|
|
44777
44811
|
atlasIMG: atlasIMG,
|
|
44778
44812
|
onSelect: onSelect
|
|
44779
|
-
})), isLoading && React.createElement(LoadingOverlay, null, React.createElement(LoadingText, null, "Loading..."))), React.createElement(
|
|
44813
|
+
})), isLoading && React.createElement(LoadingOverlay, null, React.createElement(LoadingText, null, "Loading..."))), React.createElement(Pager, {
|
|
44814
|
+
compact: true,
|
|
44780
44815
|
totalItems: totalCount,
|
|
44781
44816
|
currentPage: currentPage,
|
|
44782
44817
|
itemsPerPage: BLUEPRINTS_PER_PAGE,
|
|
44783
44818
|
onPageChange: handlePageChange
|
|
44784
|
-
}))))
|
|
44819
|
+
}))));
|
|
44785
44820
|
};
|
|
44786
44821
|
var Overlay$4 = /*#__PURE__*/styled.div.withConfig({
|
|
44787
44822
|
displayName: "BlueprintSearchModal__Overlay",
|
|
@@ -44794,7 +44829,7 @@ var ModalContainer$2 = /*#__PURE__*/styled.div.withConfig({
|
|
|
44794
44829
|
var ModalContent$2 = /*#__PURE__*/styled.div.withConfig({
|
|
44795
44830
|
displayName: "BlueprintSearchModal__ModalContent",
|
|
44796
44831
|
componentId: "sc-i7bssq-2"
|
|
44797
|
-
})(["background:#1a1a2e;border:2px solid #f59e0b;border-radius:8px;padding:20px 24px;width:600px;max-width:90%;display:flex;flex-direction:column;gap:12px;pointer-events:auto;animation:", " 0.15s ease-out;"], scaleIn);
|
|
44832
|
+
})(["background:#1a1a2e;border:2px solid #f59e0b;border-radius:8px;padding:20px 24px;width:600px;max-width:90%;max-height:90dvh;display:flex;flex-direction:column;gap:12px;overflow:hidden;pointer-events:auto;animation:", " 0.15s ease-out;@media (max-width:950px){max-width:96%;max-height:95dvh;min-height:75dvh;padding:14px 16px;gap:8px;}"], scaleIn);
|
|
44798
44833
|
var Header$8 = /*#__PURE__*/styled.div.withConfig({
|
|
44799
44834
|
displayName: "BlueprintSearchModal__Header",
|
|
44800
44835
|
componentId: "sc-i7bssq-3"
|
|
@@ -44815,40 +44850,49 @@ var StyledInput$2 = /*#__PURE__*/styled(Input).withConfig({
|
|
|
44815
44850
|
displayName: "BlueprintSearchModal__StyledInput",
|
|
44816
44851
|
componentId: "sc-i7bssq-7"
|
|
44817
44852
|
})(["flex:1;"]);
|
|
44853
|
+
var FilterButton$1 = /*#__PURE__*/styled.button.withConfig({
|
|
44854
|
+
displayName: "BlueprintSearchModal__FilterButton",
|
|
44855
|
+
componentId: "sc-i7bssq-8"
|
|
44856
|
+
})(["flex-shrink:0;width:28px;height:28px;border-radius:6px;border:1px solid ", ";background:", ";color:", ";cursor:pointer;display:flex;align-items:center;justify-content:center;transition:color 0.15s,border-color 0.15s,background 0.15s;&:hover{color:#f59e0b;border-color:rgba(245,158,11,0.45);}"], function (_ref2) {
|
|
44857
|
+
var $active = _ref2.$active;
|
|
44858
|
+
return $active ? 'rgba(245, 158, 11, 0.55)' : 'rgba(255, 255, 255, 0.08)';
|
|
44859
|
+
}, function (_ref3) {
|
|
44860
|
+
var $active = _ref3.$active;
|
|
44861
|
+
return $active ? 'rgba(245, 158, 11, 0.14)' : 'rgba(255, 255, 255, 0.03)';
|
|
44862
|
+
}, function (_ref4) {
|
|
44863
|
+
var $active = _ref4.$active;
|
|
44864
|
+
return $active ? '#f59e0b' : '#ccc';
|
|
44865
|
+
});
|
|
44818
44866
|
var FiltersRow = /*#__PURE__*/styled.div.withConfig({
|
|
44819
44867
|
displayName: "BlueprintSearchModal__FiltersRow",
|
|
44820
|
-
componentId: "sc-i7bssq-
|
|
44868
|
+
componentId: "sc-i7bssq-9"
|
|
44821
44869
|
})(["display:grid;grid-template-columns:1fr 1fr;gap:8px;"]);
|
|
44822
44870
|
var StyledDropdown$3 = /*#__PURE__*/styled(Dropdown).withConfig({
|
|
44823
44871
|
displayName: "BlueprintSearchModal__StyledDropdown",
|
|
44824
|
-
componentId: "sc-i7bssq-
|
|
44872
|
+
componentId: "sc-i7bssq-10"
|
|
44825
44873
|
})(["margin:0px !important;width:100% !important;"]);
|
|
44826
44874
|
var ResultsWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
44827
44875
|
displayName: "BlueprintSearchModal__ResultsWrapper",
|
|
44828
|
-
componentId: "sc-i7bssq-
|
|
44829
|
-
})(["position:relative;overflow-y:auto;height:
|
|
44876
|
+
componentId: "sc-i7bssq-11"
|
|
44877
|
+
})(["position:relative;overflow-y:auto;flex:1;min-height:80px;display:flex;flex-direction:column;background:rgba(0,0,0,0.2);border:1px solid rgba(255,255,255,0.05);border-radius:4px;"]);
|
|
44830
44878
|
var ResultsContent = /*#__PURE__*/styled.div.withConfig({
|
|
44831
44879
|
displayName: "BlueprintSearchModal__ResultsContent",
|
|
44832
|
-
componentId: "sc-i7bssq-
|
|
44880
|
+
componentId: "sc-i7bssq-12"
|
|
44833
44881
|
})(["opacity:", ";transition:opacity 0.15s ease;"], function (p) {
|
|
44834
44882
|
return p.$dimmed ? 0.4 : 1;
|
|
44835
44883
|
});
|
|
44836
44884
|
var LoadingOverlay = /*#__PURE__*/styled.div.withConfig({
|
|
44837
44885
|
displayName: "BlueprintSearchModal__LoadingOverlay",
|
|
44838
|
-
componentId: "sc-i7bssq-
|
|
44886
|
+
componentId: "sc-i7bssq-13"
|
|
44839
44887
|
})(["position:absolute;inset:0;display:flex;align-items:center;justify-content:center;pointer-events:none;"]);
|
|
44840
44888
|
var LoadingText = /*#__PURE__*/styled.span.withConfig({
|
|
44841
44889
|
displayName: "BlueprintSearchModal__LoadingText",
|
|
44842
|
-
componentId: "sc-i7bssq-
|
|
44890
|
+
componentId: "sc-i7bssq-14"
|
|
44843
44891
|
})(["font-size:0.55rem;color:#f59e0b;text-transform:uppercase;letter-spacing:1px;"]);
|
|
44844
44892
|
var EmptyState$2 = /*#__PURE__*/styled.div.withConfig({
|
|
44845
44893
|
displayName: "BlueprintSearchModal__EmptyState",
|
|
44846
|
-
componentId: "sc-i7bssq-14"
|
|
44847
|
-
})(["display:flex;align-items:center;justify-content:center;height:100%;font-size:0.55rem;color:#666;text-transform:uppercase;letter-spacing:1px;"]);
|
|
44848
|
-
var PagerContainer$1 = /*#__PURE__*/styled.div.withConfig({
|
|
44849
|
-
displayName: "BlueprintSearchModal__PagerContainer",
|
|
44850
44894
|
componentId: "sc-i7bssq-15"
|
|
44851
|
-
})(["display:flex;justify-content:center;
|
|
44895
|
+
})(["display:flex;align-items:center;justify-content:center;flex:1;font-size:0.55rem;color:#666;text-transform:uppercase;letter-spacing:1px;"]);
|
|
44852
44896
|
|
|
44853
44897
|
var SegmentedToggle = function SegmentedToggle(_ref) {
|
|
44854
44898
|
var options = _ref.options,
|
|
@@ -46196,7 +46240,7 @@ var BuyPanel = function BuyPanel(_ref) {
|
|
|
46196
46240
|
onBlur: enableHotkeys,
|
|
46197
46241
|
onFocus: disableHotkeys,
|
|
46198
46242
|
className: "search-input"
|
|
46199
|
-
})), React.createElement(FilterButton$
|
|
46243
|
+
})), React.createElement(FilterButton$2, {
|
|
46200
46244
|
type: "button",
|
|
46201
46245
|
"$active": showFilters,
|
|
46202
46246
|
onClick: function onClick() {
|
|
@@ -46343,7 +46387,7 @@ var SearchField = /*#__PURE__*/styled.div.withConfig({
|
|
|
46343
46387
|
displayName: "BuyPanel__SearchField",
|
|
46344
46388
|
componentId: "sc-1si8t7i-1"
|
|
46345
46389
|
})(["min-width:0;input.search-input{height:10px;width:100%;}"]);
|
|
46346
|
-
var FilterButton$
|
|
46390
|
+
var FilterButton$2 = /*#__PURE__*/styled.button.withConfig({
|
|
46347
46391
|
displayName: "BuyPanel__FilterButton",
|
|
46348
46392
|
componentId: "sc-1si8t7i-2"
|
|
46349
46393
|
})(["width:36px;height:36px;border-radius:8px;border:1px solid ", ";background:", ";color:", ";cursor:pointer;display:flex;align-items:center;justify-content:center;transition:color 0.15s,border-color 0.15s,background 0.15s;&:hover{color:#f59e0b;border-color:rgba(245,158,11,0.45);}"], function (_ref3) {
|
|
@@ -46516,7 +46560,7 @@ var HistoryPanel = function HistoryPanel(_ref) {
|
|
|
46516
46560
|
}))), React.createElement(GoldAmount, {
|
|
46517
46561
|
"$type": tx.type
|
|
46518
46562
|
}, getGoldSign(tx.type), tx.goldAmount, "g"))));
|
|
46519
|
-
})), React.createElement(PagerContainer$
|
|
46563
|
+
})), React.createElement(PagerContainer$1, null, React.createElement(Pager, {
|
|
46520
46564
|
totalItems: totalCount,
|
|
46521
46565
|
currentPage: currentPage,
|
|
46522
46566
|
itemsPerPage: itemsPerPage,
|
|
@@ -46624,7 +46668,7 @@ var EmptyState$4 = /*#__PURE__*/styled.div.withConfig({
|
|
|
46624
46668
|
displayName: "HistoryPanel__EmptyState",
|
|
46625
46669
|
componentId: "sc-74mioa-20"
|
|
46626
46670
|
})(["display:flex;align-items:center;justify-content:center;height:45px;font-size:0.5rem;color:#555;text-transform:uppercase;letter-spacing:1px;background:rgba(0,0,0,0.15);border-radius:4px;"]);
|
|
46627
|
-
var PagerContainer$
|
|
46671
|
+
var PagerContainer$1 = /*#__PURE__*/styled.div.withConfig({
|
|
46628
46672
|
displayName: "HistoryPanel__PagerContainer",
|
|
46629
46673
|
componentId: "sc-74mioa-21"
|
|
46630
46674
|
})(["display:flex;justify-content:center;margin-top:4px;"]);
|
|
@@ -46959,7 +47003,9 @@ var Marketplace = function Marketplace(props) {
|
|
|
46959
47003
|
historySelectedType = _props$historySelecte === void 0 ? 'All' : _props$historySelecte,
|
|
46960
47004
|
onHistoryTypeChange = props.onHistoryTypeChange,
|
|
46961
47005
|
onHistoryPageChange = props.onHistoryPageChange,
|
|
46962
|
-
walletProps = props.walletProps
|
|
47006
|
+
walletProps = props.walletProps,
|
|
47007
|
+
_props$showWalletTab = props.showWalletTab,
|
|
47008
|
+
showWalletTab = _props$showWalletTab === void 0 ? true : _props$showWalletTab;
|
|
46963
47009
|
var _useState = useState('marketplace'),
|
|
46964
47010
|
activeTab = _useState[0],
|
|
46965
47011
|
setActiveTab = _useState[1];
|
|
@@ -47022,7 +47068,7 @@ var Marketplace = function Marketplace(props) {
|
|
|
47022
47068
|
width: 18,
|
|
47023
47069
|
height: 18
|
|
47024
47070
|
})
|
|
47025
|
-
}].concat(walletProps ? [{
|
|
47071
|
+
}].concat(showWalletTab && walletProps ? [{
|
|
47026
47072
|
id: 'wallet',
|
|
47027
47073
|
label: 'Wallet',
|
|
47028
47074
|
icon: React.createElement(Wallet, {
|
|
@@ -47090,12 +47136,12 @@ var Marketplace = function Marketplace(props) {
|
|
|
47090
47136
|
atlasJSON: props.atlasJSON,
|
|
47091
47137
|
atlasIMG: props.atlasIMG,
|
|
47092
47138
|
dcToGoldSwapRate: props.dcToGoldSwapRate
|
|
47093
|
-
}), activeTab === 'wallet' && walletProps && React.createElement(DCWalletContent, Object.assign({}, walletProps)), activeTab === 'settings' && React.createElement(MarketplaceSettingsPanel, {
|
|
47139
|
+
}), activeTab === 'wallet' && showWalletTab && walletProps && React.createElement(DCWalletContent, Object.assign({}, walletProps)), activeTab === 'settings' && React.createElement(MarketplaceSettingsPanel, {
|
|
47094
47140
|
acceptedCurrency: acceptedCurrency,
|
|
47095
47141
|
onAcceptedCurrencyChange: handleCurrencyChange
|
|
47096
|
-
}), showSharedPager && React.createElement(PagerContainer$
|
|
47142
|
+
}), showSharedPager && React.createElement(PagerContainer$2, null, React.createElement(Pager, Object.assign({}, props))));
|
|
47097
47143
|
};
|
|
47098
|
-
var PagerContainer$
|
|
47144
|
+
var PagerContainer$2 = /*#__PURE__*/styled.div.withConfig({
|
|
47099
47145
|
displayName: "Marketplace__PagerContainer",
|
|
47100
47146
|
componentId: "sc-h904b1-0"
|
|
47101
47147
|
})(["display:flex;justify-content:center;align-items:center;width:95%;margin:6px auto 0 auto;padding:4px 10px;"]);
|