@rpg-engine/long-bow 0.8.187 → 0.8.189
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/MyCharacterListingsPanel.d.ts +4 -1
- package/dist/long-bow.cjs.development.js +242 -224
- 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 +242 -224
- package/dist/long-bow.esm.js.map +1 -1
- package/dist/stories/Features/marketplace/CharacterMarketplace.stories.d.ts +1 -0
- package/package.json +1 -1
- package/src/components/Marketplace/CharacterDetailModal.tsx +32 -24
- package/src/components/Marketplace/CharacterListingModal.tsx +1 -0
- package/src/components/Marketplace/CharacterMarketplacePanel.tsx +2 -0
- package/src/components/Marketplace/Marketplace.tsx +2 -0
- package/src/components/Marketplace/MyCharacterListingsPanel.tsx +142 -112
- package/src/stories/Features/marketplace/CharacterMarketplace.stories.tsx +45 -1
package/dist/long-bow.esm.js
CHANGED
|
@@ -47245,16 +47245,17 @@ var CharacterDetailModal = function CharacterDetailModal(_ref) {
|
|
|
47245
47245
|
spriteKey: snap.textureKey + "/down/standing/0.png",
|
|
47246
47246
|
imgScale: 4,
|
|
47247
47247
|
height: 96,
|
|
47248
|
-
width: 96
|
|
47248
|
+
width: 96,
|
|
47249
|
+
centered: true
|
|
47249
47250
|
})), React.createElement(HeroInfo, null, React.createElement(CharacterName$1, null, snap.name || 'Unknown'), React.createElement(CharacterClass, null, "Lv.", snap.level, " \xB7 ", snap["class"]), React.createElement(CharacterOrigin, null, snap.race, " \xB7 ", snap.faction), React.createElement(ModeBadge, {
|
|
47250
47251
|
"$hardcore": ((_snap$mode = snap.mode) == null ? void 0 : _snap$mode.toLowerCase()) === 'hardcore'
|
|
47251
|
-
}, snap.mode || 'Standard'))), React.createElement(Divider, null), topSkills.length > 0 && React.createElement(Section$3, null, React.createElement(SectionTitle$3, null, "Skills"), React.createElement(
|
|
47252
|
+
}, snap.mode || 'Standard'))), React.createElement(Divider, null), React.createElement(MetaColumns, null, topSkills.length > 0 && React.createElement(Section$3, null, React.createElement(SectionTitle$3, null, "Skills"), React.createElement(SkillsList, null, topSkills.map(function (_ref4) {
|
|
47252
47253
|
var name = _ref4[0],
|
|
47253
47254
|
value = _ref4[1];
|
|
47254
47255
|
return React.createElement(SkillRow, {
|
|
47255
47256
|
key: name
|
|
47256
47257
|
}, React.createElement(SkillName, null, name), React.createElement(SkillValue, null, value));
|
|
47257
|
-
}))), ((_snap$equipment = snap.equipment) == null ? void 0 : _snap$equipment.length) > 0 && React.createElement(
|
|
47258
|
+
}))), ((_snap$equipment = snap.equipment) == null ? void 0 : _snap$equipment.length) > 0 && React.createElement(Section$3, null, React.createElement(SectionTitle$3, null, "Equipment"), React.createElement(EquipmentList, null, snap.equipment.map(function (eq, i) {
|
|
47258
47259
|
return React.createElement(EquipmentRow, {
|
|
47259
47260
|
key: i
|
|
47260
47261
|
}, React.createElement(EquipSlot, null, eq.slot), React.createElement(EquipName, null, eq.itemName), React.createElement(RarityBadge, {
|
|
@@ -47264,7 +47265,8 @@ var CharacterDetailModal = function CharacterDetailModal(_ref) {
|
|
|
47264
47265
|
atlasIMG: atlasIMG,
|
|
47265
47266
|
atlasJSON: atlasJSON,
|
|
47266
47267
|
spriteKey: "others/definya-coin.png",
|
|
47267
|
-
imgScale: 1
|
|
47268
|
+
imgScale: 1,
|
|
47269
|
+
centered: true
|
|
47268
47270
|
})), React.createElement(PriceAmount, null, formatDCAmount(listing.price), " DC")), React.createElement(BuyBtn, {
|
|
47269
47271
|
icon: React.createElement(ShoppingBag, {
|
|
47270
47272
|
width: 18,
|
|
@@ -47287,7 +47289,7 @@ var ModalContainer$5 = /*#__PURE__*/styled.div.withConfig({
|
|
|
47287
47289
|
var ModalContent$5 = /*#__PURE__*/styled.div.withConfig({
|
|
47288
47290
|
displayName: "CharacterDetailModal__ModalContent",
|
|
47289
47291
|
componentId: "sc-1kdn1l6-2"
|
|
47290
|
-
})(["background:#1a1a2e;border:2px solid #f59e0b;border-radius:8px;padding:20px 24px;width:
|
|
47292
|
+
})(["background:#1a1a2e;border:2px solid #f59e0b;border-radius:8px;padding:20px 24px;width:580px;max-width:96%;max-height:85dvh;display:flex;flex-direction:column;gap:14px;overflow-y:auto;overflow-x:hidden;pointer-events:auto;animation:", " 0.15s ease-out;&::-webkit-scrollbar{width:6px;}&::-webkit-scrollbar-track{background:rgba(0,0,0,0.2);border-radius:4px;}&::-webkit-scrollbar-thumb{background:rgba(245,158,11,0.3);border-radius:4px;}"], scaleIn$2);
|
|
47291
47293
|
var Header$b = /*#__PURE__*/styled.div.withConfig({
|
|
47292
47294
|
displayName: "CharacterDetailModal__Header",
|
|
47293
47295
|
componentId: "sc-1kdn1l6-3"
|
|
@@ -47346,41 +47348,45 @@ var SectionTitle$3 = /*#__PURE__*/styled.span.withConfig({
|
|
|
47346
47348
|
displayName: "CharacterDetailModal__SectionTitle",
|
|
47347
47349
|
componentId: "sc-1kdn1l6-15"
|
|
47348
47350
|
})(["font-family:'Press Start 2P',cursive !important;font-size:0.45rem !important;color:#f59e0b !important;text-transform:uppercase;letter-spacing:1px;"]);
|
|
47349
|
-
var
|
|
47350
|
-
displayName: "
|
|
47351
|
+
var MetaColumns = /*#__PURE__*/styled.div.withConfig({
|
|
47352
|
+
displayName: "CharacterDetailModal__MetaColumns",
|
|
47351
47353
|
componentId: "sc-1kdn1l6-16"
|
|
47352
|
-
})(["display:grid;grid-template-columns:
|
|
47354
|
+
})(["display:grid;grid-template-columns:1fr 1fr;gap:16px;align-items:start;"]);
|
|
47355
|
+
var SkillsList = /*#__PURE__*/styled.div.withConfig({
|
|
47356
|
+
displayName: "CharacterDetailModal__SkillsList",
|
|
47357
|
+
componentId: "sc-1kdn1l6-17"
|
|
47358
|
+
})(["display:flex;flex-direction:column;gap:4px;"]);
|
|
47353
47359
|
var SkillRow = /*#__PURE__*/styled.div.withConfig({
|
|
47354
47360
|
displayName: "CharacterDetailModal__SkillRow",
|
|
47355
|
-
componentId: "sc-1kdn1l6-
|
|
47361
|
+
componentId: "sc-1kdn1l6-18"
|
|
47356
47362
|
})(["display:flex;justify-content:space-between;align-items:center;gap:8px;"]);
|
|
47357
47363
|
var SkillName = /*#__PURE__*/styled.span.withConfig({
|
|
47358
47364
|
displayName: "CharacterDetailModal__SkillName",
|
|
47359
|
-
componentId: "sc-1kdn1l6-
|
|
47365
|
+
componentId: "sc-1kdn1l6-19"
|
|
47360
47366
|
})(["font-family:'Press Start 2P',cursive !important;font-size:0.38rem !important;color:#9ca3af !important;text-transform:capitalize;"]);
|
|
47361
47367
|
var SkillValue = /*#__PURE__*/styled.span.withConfig({
|
|
47362
47368
|
displayName: "CharacterDetailModal__SkillValue",
|
|
47363
|
-
componentId: "sc-1kdn1l6-
|
|
47369
|
+
componentId: "sc-1kdn1l6-20"
|
|
47364
47370
|
})(["font-family:'Press Start 2P',cursive !important;font-size:0.38rem !important;color:#fef08a !important;"]);
|
|
47365
47371
|
var EquipmentList = /*#__PURE__*/styled.div.withConfig({
|
|
47366
47372
|
displayName: "CharacterDetailModal__EquipmentList",
|
|
47367
|
-
componentId: "sc-1kdn1l6-
|
|
47373
|
+
componentId: "sc-1kdn1l6-21"
|
|
47368
47374
|
})(["display:flex;flex-direction:column;gap:5px;"]);
|
|
47369
47375
|
var EquipmentRow = /*#__PURE__*/styled.div.withConfig({
|
|
47370
47376
|
displayName: "CharacterDetailModal__EquipmentRow",
|
|
47371
|
-
componentId: "sc-1kdn1l6-
|
|
47377
|
+
componentId: "sc-1kdn1l6-22"
|
|
47372
47378
|
})(["display:flex;align-items:center;gap:8px;padding:5px 8px;background:rgba(255,255,255,0.02);border:1px solid rgba(255,255,255,0.05);border-radius:4px;"]);
|
|
47373
47379
|
var EquipSlot = /*#__PURE__*/styled.span.withConfig({
|
|
47374
47380
|
displayName: "CharacterDetailModal__EquipSlot",
|
|
47375
|
-
componentId: "sc-1kdn1l6-
|
|
47381
|
+
componentId: "sc-1kdn1l6-23"
|
|
47376
47382
|
})(["font-family:'Press Start 2P',cursive !important;font-size:0.34rem !important;color:#6b7280 !important;text-transform:capitalize;min-width:52px;flex-shrink:0;"]);
|
|
47377
47383
|
var EquipName = /*#__PURE__*/styled.span.withConfig({
|
|
47378
47384
|
displayName: "CharacterDetailModal__EquipName",
|
|
47379
|
-
componentId: "sc-1kdn1l6-
|
|
47385
|
+
componentId: "sc-1kdn1l6-24"
|
|
47380
47386
|
})(["font-family:'Press Start 2P',cursive !important;font-size:0.38rem !important;color:#d1d5db !important;flex:1;"]);
|
|
47381
47387
|
var RarityBadge = /*#__PURE__*/styled.span.withConfig({
|
|
47382
47388
|
displayName: "CharacterDetailModal__RarityBadge",
|
|
47383
|
-
componentId: "sc-1kdn1l6-
|
|
47389
|
+
componentId: "sc-1kdn1l6-25"
|
|
47384
47390
|
})(["font-family:'Press Start 2P',cursive !important;font-size:0.32rem !important;color:", " !important;border:1px solid ", "44;border-radius:2px;padding:1px 4px;text-transform:uppercase;flex-shrink:0;"], function (_ref7) {
|
|
47385
47391
|
var $rarity = _ref7.$rarity;
|
|
47386
47392
|
return rarityColor$1($rarity);
|
|
@@ -47390,35 +47396,35 @@ var RarityBadge = /*#__PURE__*/styled.span.withConfig({
|
|
|
47390
47396
|
});
|
|
47391
47397
|
var Footer$1 = /*#__PURE__*/styled.div.withConfig({
|
|
47392
47398
|
displayName: "CharacterDetailModal__Footer",
|
|
47393
|
-
componentId: "sc-1kdn1l6-
|
|
47399
|
+
componentId: "sc-1kdn1l6-26"
|
|
47394
47400
|
})(["display:flex;flex-direction:column;gap:8px;flex-shrink:0;"]);
|
|
47395
47401
|
var SellerInfo = /*#__PURE__*/styled.span.withConfig({
|
|
47396
47402
|
displayName: "CharacterDetailModal__SellerInfo",
|
|
47397
|
-
componentId: "sc-1kdn1l6-
|
|
47403
|
+
componentId: "sc-1kdn1l6-27"
|
|
47398
47404
|
})(["font-family:'Press Start 2P',cursive !important;font-size:0.38rem !important;color:#6b7280 !important;text-transform:uppercase;letter-spacing:0.5px;"]);
|
|
47399
47405
|
var FooterActions = /*#__PURE__*/styled.div.withConfig({
|
|
47400
47406
|
displayName: "CharacterDetailModal__FooterActions",
|
|
47401
|
-
componentId: "sc-1kdn1l6-
|
|
47407
|
+
componentId: "sc-1kdn1l6-28"
|
|
47402
47408
|
})(["display:flex;align-items:center;justify-content:space-between;gap:12px;"]);
|
|
47403
47409
|
var PriceDisplay = /*#__PURE__*/styled.div.withConfig({
|
|
47404
47410
|
displayName: "CharacterDetailModal__PriceDisplay",
|
|
47405
|
-
componentId: "sc-1kdn1l6-
|
|
47411
|
+
componentId: "sc-1kdn1l6-29"
|
|
47406
47412
|
})(["display:flex;align-items:center;gap:6px;line-height:1;"]);
|
|
47407
47413
|
var DCCoinWrapper$2 = /*#__PURE__*/styled.span.withConfig({
|
|
47408
47414
|
displayName: "CharacterDetailModal__DCCoinWrapper",
|
|
47409
|
-
componentId: "sc-1kdn1l6-
|
|
47415
|
+
componentId: "sc-1kdn1l6-30"
|
|
47410
47416
|
})(["display:flex;align-items:center;justify-content:center;flex-shrink:0;line-height:0;"]);
|
|
47411
47417
|
var PriceAmount = /*#__PURE__*/styled.span.withConfig({
|
|
47412
47418
|
displayName: "CharacterDetailModal__PriceAmount",
|
|
47413
|
-
componentId: "sc-1kdn1l6-
|
|
47419
|
+
componentId: "sc-1kdn1l6-31"
|
|
47414
47420
|
})(["font-family:'Press Start 2P',cursive !important;font-size:0.7rem !important;color:#fef08a !important;"]);
|
|
47415
47421
|
var BuyBtn = /*#__PURE__*/styled(CTAButton).withConfig({
|
|
47416
47422
|
displayName: "CharacterDetailModal__BuyBtn",
|
|
47417
|
-
componentId: "sc-1kdn1l6-
|
|
47423
|
+
componentId: "sc-1kdn1l6-32"
|
|
47418
47424
|
})(["flex-shrink:0;padding:10px 18px;height:34px;span{font-size:0.6rem;}"]);
|
|
47419
47425
|
var PendingNotice = /*#__PURE__*/styled.span.withConfig({
|
|
47420
47426
|
displayName: "CharacterDetailModal__PendingNotice",
|
|
47421
|
-
componentId: "sc-1kdn1l6-
|
|
47427
|
+
componentId: "sc-1kdn1l6-33"
|
|
47422
47428
|
})(["font-family:'Press Start 2P',cursive !important;font-size:0.35rem !important;color:#ef4444 !important;text-transform:uppercase;letter-spacing:0.5px;"]);
|
|
47423
47429
|
|
|
47424
47430
|
var CharacterMarketplacePanel = function CharacterMarketplacePanel(_ref) {
|
|
@@ -47475,7 +47481,8 @@ var CharacterMarketplacePanel = function CharacterMarketplacePanel(_ref) {
|
|
|
47475
47481
|
spriteKey: snapshot.textureKey + "/down/standing/0.png",
|
|
47476
47482
|
imgScale: 3,
|
|
47477
47483
|
height: 64,
|
|
47478
|
-
width: 64
|
|
47484
|
+
width: 64,
|
|
47485
|
+
centered: true
|
|
47479
47486
|
});
|
|
47480
47487
|
};
|
|
47481
47488
|
return React.createElement(React.Fragment, null, React.createElement(CharacterDetailModal, {
|
|
@@ -47517,7 +47524,8 @@ var CharacterMarketplacePanel = function CharacterMarketplacePanel(_ref) {
|
|
|
47517
47524
|
atlasIMG: atlasIMG,
|
|
47518
47525
|
atlasJSON: atlasJSON,
|
|
47519
47526
|
spriteKey: "others/definya-coin.png",
|
|
47520
|
-
imgScale: 1
|
|
47527
|
+
imgScale: 1,
|
|
47528
|
+
centered: true
|
|
47521
47529
|
})), formatDCAmount(listing.price), " DC")), listing.isBeingBought && React.createElement(BeingBoughtBadge, null, "Pending"));
|
|
47522
47530
|
}))), totalCount > itemsPerPage && React.createElement(PagerFooter$1, null, React.createElement(Pagination, {
|
|
47523
47531
|
currentPage: currentPage,
|
|
@@ -47614,193 +47622,6 @@ var EmptyText = /*#__PURE__*/styled.span.withConfig({
|
|
|
47614
47622
|
componentId: "sc-1aiauep-17"
|
|
47615
47623
|
})(["font-family:'Press Start 2P',cursive !important;font-size:0.48rem !important;color:#71717a !important;text-transform:uppercase;letter-spacing:1px;"]);
|
|
47616
47624
|
|
|
47617
|
-
var MyCharacterListingsPanel = function MyCharacterListingsPanel(_ref) {
|
|
47618
|
-
var myCharacterListings = _ref.myCharacterListings,
|
|
47619
|
-
totalCount = _ref.totalCount,
|
|
47620
|
-
currentPage = _ref.currentPage,
|
|
47621
|
-
itemsPerPage = _ref.itemsPerPage,
|
|
47622
|
-
onPageChange = _ref.onPageChange,
|
|
47623
|
-
onCharacterDelist = _ref.onCharacterDelist,
|
|
47624
|
-
atlasJSON = _ref.atlasJSON,
|
|
47625
|
-
atlasIMG = _ref.atlasIMG,
|
|
47626
|
-
characterAtlasJSON = _ref.characterAtlasJSON,
|
|
47627
|
-
characterAtlasIMG = _ref.characterAtlasIMG,
|
|
47628
|
-
enableHotkeys = _ref.enableHotkeys;
|
|
47629
|
-
var _useState = useState(null),
|
|
47630
|
-
delistingListingId = _useState[0],
|
|
47631
|
-
setDelistingListingId = _useState[1];
|
|
47632
|
-
var itemsContainer = useRef(null);
|
|
47633
|
-
useEffect(function () {
|
|
47634
|
-
var _itemsContainer$curre;
|
|
47635
|
-
(_itemsContainer$curre = itemsContainer.current) == null ? void 0 : _itemsContainer$curre.scrollTo(0, 0);
|
|
47636
|
-
}, [currentPage]);
|
|
47637
|
-
var handleDelistClick = function handleDelistClick(listingId) {
|
|
47638
|
-
setDelistingListingId(listingId);
|
|
47639
|
-
};
|
|
47640
|
-
var handleDelistConfirm = function handleDelistConfirm() {
|
|
47641
|
-
if (delistingListingId) {
|
|
47642
|
-
onCharacterDelist(delistingListingId);
|
|
47643
|
-
setDelistingListingId(null);
|
|
47644
|
-
enableHotkeys == null ? void 0 : enableHotkeys();
|
|
47645
|
-
}
|
|
47646
|
-
};
|
|
47647
|
-
var getFormattedDate = function getFormattedDate(date) {
|
|
47648
|
-
return new Date(date).toLocaleDateString();
|
|
47649
|
-
};
|
|
47650
|
-
return React.createElement(React.Fragment, null, delistingListingId && React.createElement(ConfirmModal, {
|
|
47651
|
-
onClose: function onClose() {
|
|
47652
|
-
setDelistingListingId(null);
|
|
47653
|
-
enableHotkeys == null ? void 0 : enableHotkeys();
|
|
47654
|
-
},
|
|
47655
|
-
onConfirm: handleDelistConfirm,
|
|
47656
|
-
message: "Are you sure you want to delist this character?"
|
|
47657
|
-
}), React.createElement(ListingsContainer$1, {
|
|
47658
|
-
id: "MarketContainer",
|
|
47659
|
-
ref: itemsContainer
|
|
47660
|
-
}, myCharacterListings.length === 0 ? React.createElement(EmptyState$6, null, React.createElement(User, {
|
|
47661
|
-
width: 32,
|
|
47662
|
-
height: 32
|
|
47663
|
-
}), React.createElement(EmptyText$1, null, "You have no listed characters."), React.createElement(EmptySubtext, null, "Use the \"List Character\" tab to list a character for sale.")) : React.createElement(ListingsGrid$1, null, myCharacterListings.map(function (listing) {
|
|
47664
|
-
return React.createElement(CharacterListingCard$1, {
|
|
47665
|
-
key: listing._id
|
|
47666
|
-
}, React.createElement(CharacterSprite$1, null, React.createElement(SpriteFromAtlas, {
|
|
47667
|
-
atlasIMG: characterAtlasIMG,
|
|
47668
|
-
atlasJSON: characterAtlasJSON,
|
|
47669
|
-
spriteKey: listing.characterSnapshot.textureKey + "/down/standing/0.png",
|
|
47670
|
-
imgScale: 3,
|
|
47671
|
-
height: 64,
|
|
47672
|
-
width: 64
|
|
47673
|
-
})), React.createElement(CharacterInfo$1, null, React.createElement(CharacterName$3, null, listing.characterSnapshot.name || 'Unknown'), React.createElement(CharacterMeta$1, null, "Level ", listing.characterSnapshot.level), React.createElement(ListingPrice$1, null, React.createElement(DCCoinWrapper$4, null, React.createElement(SpriteFromAtlas, {
|
|
47674
|
-
atlasIMG: atlasIMG,
|
|
47675
|
-
atlasJSON: atlasJSON,
|
|
47676
|
-
spriteKey: "others/definya-coin.png",
|
|
47677
|
-
imgScale: 1
|
|
47678
|
-
})), formatDCAmount(listing.price), " DC"), React.createElement(ListingMeta, null, "Listed ", getFormattedDate(listing.createdAt)), listing.isBeingBought && React.createElement(ListingStatus, {
|
|
47679
|
-
"$status": "pending"
|
|
47680
|
-
}, "Sale Pending")), React.createElement(ActionButton, {
|
|
47681
|
-
icon: React.createElement(Delete, {
|
|
47682
|
-
width: 16,
|
|
47683
|
-
height: 16
|
|
47684
|
-
}),
|
|
47685
|
-
label: "Delist",
|
|
47686
|
-
onClick: function onClick() {
|
|
47687
|
-
return handleDelistClick(listing._id);
|
|
47688
|
-
},
|
|
47689
|
-
iconColor: "#ef4444",
|
|
47690
|
-
disabled: listing.isBeingBought
|
|
47691
|
-
}));
|
|
47692
|
-
}))), totalCount > itemsPerPage && React.createElement(PagerFooter$2, null, React.createElement(Pagination$1, null, Array.from({
|
|
47693
|
-
length: Math.ceil(totalCount / itemsPerPage)
|
|
47694
|
-
}, function (_, i) {
|
|
47695
|
-
return i + 1;
|
|
47696
|
-
}).map(function (page) {
|
|
47697
|
-
return React.createElement(PageButton, {
|
|
47698
|
-
key: page,
|
|
47699
|
-
"$active": currentPage === page,
|
|
47700
|
-
type: "button",
|
|
47701
|
-
onClick: function onClick() {
|
|
47702
|
-
return onPageChange(page);
|
|
47703
|
-
}
|
|
47704
|
-
}, page);
|
|
47705
|
-
}))));
|
|
47706
|
-
};
|
|
47707
|
-
var ListingsContainer$1 = /*#__PURE__*/styled.div.withConfig({
|
|
47708
|
-
displayName: "MyCharacterListingsPanel__ListingsContainer",
|
|
47709
|
-
componentId: "sc-su21a6-0"
|
|
47710
|
-
})(["overflow-y:scroll;overflow-x:hidden;height:390px;width:95%;margin:1rem auto 0 auto;background:rgba(0,0,0,0.2);border:1px solid rgba(255,255,255,0.05);border-radius:4px;@media (max-width:950px){height:250px;}"]);
|
|
47711
|
-
var ListingsGrid$1 = /*#__PURE__*/styled.div.withConfig({
|
|
47712
|
-
displayName: "MyCharacterListingsPanel__ListingsGrid",
|
|
47713
|
-
componentId: "sc-su21a6-1"
|
|
47714
|
-
})(["display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px;padding:12px;"]);
|
|
47715
|
-
var CharacterListingCard$1 = /*#__PURE__*/styled.div.withConfig({
|
|
47716
|
-
displayName: "MyCharacterListingsPanel__CharacterListingCard",
|
|
47717
|
-
componentId: "sc-su21a6-2"
|
|
47718
|
-
})(["display:flex;flex-direction:column;align-items:center;gap:8px;background:rgba(255,255,255,0.03);border:1px solid rgba(255,255,255,0.08);border-radius:8px;padding:12px;"]);
|
|
47719
|
-
var CharacterSprite$1 = /*#__PURE__*/styled.div.withConfig({
|
|
47720
|
-
displayName: "MyCharacterListingsPanel__CharacterSprite",
|
|
47721
|
-
componentId: "sc-su21a6-3"
|
|
47722
|
-
})(["display:flex;align-items:center;justify-content:center;image-rendering:pixelated;"]);
|
|
47723
|
-
var CharacterInfo$1 = /*#__PURE__*/styled.div.withConfig({
|
|
47724
|
-
displayName: "MyCharacterListingsPanel__CharacterInfo",
|
|
47725
|
-
componentId: "sc-su21a6-4"
|
|
47726
|
-
})(["display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center;"]);
|
|
47727
|
-
var CharacterName$3 = /*#__PURE__*/styled.span.withConfig({
|
|
47728
|
-
displayName: "MyCharacterListingsPanel__CharacterName",
|
|
47729
|
-
componentId: "sc-su21a6-5"
|
|
47730
|
-
})(["font-family:'Press Start 2P',cursive;font-size:0.55rem;color:#f3f4f6;text-transform:uppercase;letter-spacing:0.5px;"]);
|
|
47731
|
-
var CharacterMeta$1 = /*#__PURE__*/styled.span.withConfig({
|
|
47732
|
-
displayName: "MyCharacterListingsPanel__CharacterMeta",
|
|
47733
|
-
componentId: "sc-su21a6-6"
|
|
47734
|
-
})(["font-size:0.45rem;color:#888;text-transform:uppercase;letter-spacing:0.5px;"]);
|
|
47735
|
-
var ListingPrice$1 = /*#__PURE__*/styled.div.withConfig({
|
|
47736
|
-
displayName: "MyCharacterListingsPanel__ListingPrice",
|
|
47737
|
-
componentId: "sc-su21a6-7"
|
|
47738
|
-
})(["display:flex;align-items:center;gap:6px;font-family:'Press Start 2P',cursive;font-size:0.5rem;color:#fef08a;"]);
|
|
47739
|
-
var DCCoinWrapper$4 = /*#__PURE__*/styled.span.withConfig({
|
|
47740
|
-
displayName: "MyCharacterListingsPanel__DCCoinWrapper",
|
|
47741
|
-
componentId: "sc-su21a6-8"
|
|
47742
|
-
})(["display:flex;align-items:center;justify-content:center;flex-shrink:0;"]);
|
|
47743
|
-
var ListingMeta = /*#__PURE__*/styled.span.withConfig({
|
|
47744
|
-
displayName: "MyCharacterListingsPanel__ListingMeta",
|
|
47745
|
-
componentId: "sc-su21a6-9"
|
|
47746
|
-
})(["font-size:0.38rem;color:#52525b;text-transform:uppercase;letter-spacing:0.5px;"]);
|
|
47747
|
-
var ListingStatus = /*#__PURE__*/styled.span.withConfig({
|
|
47748
|
-
displayName: "MyCharacterListingsPanel__ListingStatus",
|
|
47749
|
-
componentId: "sc-su21a6-10"
|
|
47750
|
-
})(["font-size:0.38rem;padding:2px 6px;border-radius:4px;text-transform:uppercase;letter-spacing:0.5px;", ""], function (_ref2) {
|
|
47751
|
-
var $status = _ref2.$status;
|
|
47752
|
-
return $status === 'pending' ? "\n background: rgba(239, 68, 68, 0.2);\n border: 1px solid rgba(239, 68, 68, 0.4);\n color: #ef4444;\n " : "\n background: rgba(34, 197, 94, 0.2);\n border: 1px solid rgba(34, 197, 94, 0.4);\n color: #22c55e;\n ";
|
|
47753
|
-
});
|
|
47754
|
-
var ActionButton = /*#__PURE__*/styled(CTAButton).withConfig({
|
|
47755
|
-
displayName: "MyCharacterListingsPanel__ActionButton",
|
|
47756
|
-
componentId: "sc-su21a6-11"
|
|
47757
|
-
})(["padding:6px 12px;height:28px;opacity:", ";pointer-events:", ";span{font-size:0.5rem;}svg{font-size:1rem;}"], function (_ref3) {
|
|
47758
|
-
var disabled = _ref3.disabled;
|
|
47759
|
-
return disabled ? 0.5 : 1;
|
|
47760
|
-
}, function (_ref4) {
|
|
47761
|
-
var disabled = _ref4.disabled;
|
|
47762
|
-
return disabled ? 'none' : 'auto';
|
|
47763
|
-
});
|
|
47764
|
-
var PagerFooter$2 = /*#__PURE__*/styled.div.withConfig({
|
|
47765
|
-
displayName: "MyCharacterListingsPanel__PagerFooter",
|
|
47766
|
-
componentId: "sc-su21a6-12"
|
|
47767
|
-
})(["display:flex;justify-content:center;align-items:center;padding:8px 0 4px;min-height:36px;width:95%;margin:0 auto;"]);
|
|
47768
|
-
var Pagination$1 = /*#__PURE__*/styled.div.withConfig({
|
|
47769
|
-
displayName: "MyCharacterListingsPanel__Pagination",
|
|
47770
|
-
componentId: "sc-su21a6-13"
|
|
47771
|
-
})(["display:flex;gap:6px;"]);
|
|
47772
|
-
var PageButton = /*#__PURE__*/styled.button.withConfig({
|
|
47773
|
-
displayName: "MyCharacterListingsPanel__PageButton",
|
|
47774
|
-
componentId: "sc-su21a6-14"
|
|
47775
|
-
})(["padding:6px 10px;font-family:'Press Start 2P',cursive;font-size:0.5rem;border-radius:4px;border:1px solid ", ";background:", ";color:", ";cursor:pointer;transition:border-color 0.15s,background 0.15s,color 0.15s;&:hover{border-color:", ";color:", ";}"], function (_ref5) {
|
|
47776
|
-
var $active = _ref5.$active;
|
|
47777
|
-
return $active ? '#f59e0b' : 'rgba(255,255,255,0.12)';
|
|
47778
|
-
}, function (_ref6) {
|
|
47779
|
-
var $active = _ref6.$active;
|
|
47780
|
-
return $active ? 'rgba(245,158,11,0.15)' : 'rgba(0,0,0,0.3)';
|
|
47781
|
-
}, function (_ref7) {
|
|
47782
|
-
var $active = _ref7.$active;
|
|
47783
|
-
return $active ? '#f59e0b' : '#777';
|
|
47784
|
-
}, function (_ref8) {
|
|
47785
|
-
var $active = _ref8.$active;
|
|
47786
|
-
return $active ? '#f59e0b' : 'rgba(255,255,255,0.3)';
|
|
47787
|
-
}, function (_ref9) {
|
|
47788
|
-
var $active = _ref9.$active;
|
|
47789
|
-
return $active ? '#f59e0b' : '#bbb';
|
|
47790
|
-
});
|
|
47791
|
-
var EmptyState$6 = /*#__PURE__*/styled.div.withConfig({
|
|
47792
|
-
displayName: "MyCharacterListingsPanel__EmptyState",
|
|
47793
|
-
componentId: "sc-su21a6-15"
|
|
47794
|
-
})(["display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;height:100%;min-height:200px;"]);
|
|
47795
|
-
var EmptyText$1 = /*#__PURE__*/styled.span.withConfig({
|
|
47796
|
-
displayName: "MyCharacterListingsPanel__EmptyText",
|
|
47797
|
-
componentId: "sc-su21a6-16"
|
|
47798
|
-
})(["font-size:0.55rem;color:#71717a;text-transform:uppercase;letter-spacing:1px;"]);
|
|
47799
|
-
var EmptySubtext = /*#__PURE__*/styled.span.withConfig({
|
|
47800
|
-
displayName: "MyCharacterListingsPanel__EmptySubtext",
|
|
47801
|
-
componentId: "sc-su21a6-17"
|
|
47802
|
-
})(["font-size:0.45rem;color:#52525b;text-transform:none;letter-spacing:0.5px;text-align:center;max-width:280px;"]);
|
|
47803
|
-
|
|
47804
47625
|
var CharacterListingModal = function CharacterListingModal(_ref) {
|
|
47805
47626
|
var isOpen = _ref.isOpen,
|
|
47806
47627
|
onClose = _ref.onClose,
|
|
@@ -47868,7 +47689,7 @@ var CharacterListingModal = function CharacterListingModal(_ref) {
|
|
|
47868
47689
|
onPointerDown: handleClose,
|
|
47869
47690
|
"aria-label": "Close",
|
|
47870
47691
|
type: "button"
|
|
47871
|
-
}, React.createElement(FaTimes, null))), React.createElement(CharacterList$1, null, eligibleCharacters.length === 0 ? React.createElement(EmptyState$
|
|
47692
|
+
}, React.createElement(FaTimes, null))), React.createElement(CharacterList$1, null, eligibleCharacters.length === 0 ? React.createElement(EmptyState$6, null, "No eligible characters to list.") : eligibleCharacters.map(function (character) {
|
|
47872
47693
|
var isSelected = selectedId === character._id;
|
|
47873
47694
|
return React.createElement(CharacterRow, {
|
|
47874
47695
|
key: character._id,
|
|
@@ -47894,7 +47715,7 @@ var CharacterListingModal = function CharacterListingModal(_ref) {
|
|
|
47894
47715
|
imgScale: 2,
|
|
47895
47716
|
height: 40,
|
|
47896
47717
|
width: 40
|
|
47897
|
-
})), React.createElement(CharacterInfo$
|
|
47718
|
+
})), React.createElement(CharacterInfo$1, null, React.createElement(CharacterName$3, null, character.name || 'Unknown'), React.createElement(CharacterMeta$1, null, "Level ", getLevel(character))));
|
|
47898
47719
|
})), React.createElement(PriceSection$1, null, React.createElement(PriceLabel, null, "Set Price (DC)"), React.createElement(PriceRow$1, null, React.createElement(Input, {
|
|
47899
47720
|
onChange: function onChange(e) {
|
|
47900
47721
|
return setPrice(e.target.value);
|
|
@@ -47914,11 +47735,12 @@ var CharacterListingModal = function CharacterListingModal(_ref) {
|
|
|
47914
47735
|
label: "List",
|
|
47915
47736
|
disabled: !canList,
|
|
47916
47737
|
onClick: handleListClick
|
|
47917
|
-
})), price && Number(price) > 0 && React.createElement(PricePreview, null, React.createElement(DCCoinWrapper$
|
|
47738
|
+
})), price && Number(price) > 0 && React.createElement(PricePreview, null, React.createElement(DCCoinWrapper$4, null, React.createElement(SpriteFromAtlas, {
|
|
47918
47739
|
atlasIMG: atlasIMG,
|
|
47919
47740
|
atlasJSON: atlasJSON,
|
|
47920
47741
|
spriteKey: "others/definya-coin.png",
|
|
47921
|
-
imgScale: 1
|
|
47742
|
+
imgScale: 1,
|
|
47743
|
+
centered: true
|
|
47922
47744
|
})), React.createElement(PricePreviewAmount, null, Number(price).toLocaleString(), " DC")), React.createElement(DCRateStrip, null)))));
|
|
47923
47745
|
};
|
|
47924
47746
|
var scaleIn$3 = /*#__PURE__*/keyframes(["from{transform:scale(0.85);opacity:0;}to{transform:scale(1);opacity:1;}"]);
|
|
@@ -47980,15 +47802,15 @@ var SpriteWrapper$3 = /*#__PURE__*/styled.div.withConfig({
|
|
|
47980
47802
|
displayName: "CharacterListingModal__SpriteWrapper",
|
|
47981
47803
|
componentId: "sc-1uxkx35-9"
|
|
47982
47804
|
})(["display:flex;align-items:center;justify-content:center;image-rendering:pixelated;flex-shrink:0;width:40px;height:40px;"]);
|
|
47983
|
-
var CharacterInfo$
|
|
47805
|
+
var CharacterInfo$1 = /*#__PURE__*/styled.div.withConfig({
|
|
47984
47806
|
displayName: "CharacterListingModal__CharacterInfo",
|
|
47985
47807
|
componentId: "sc-1uxkx35-10"
|
|
47986
47808
|
})(["display:flex;flex-direction:column;gap:4px;flex:1;"]);
|
|
47987
|
-
var CharacterName$
|
|
47809
|
+
var CharacterName$3 = /*#__PURE__*/styled.span.withConfig({
|
|
47988
47810
|
displayName: "CharacterListingModal__CharacterName",
|
|
47989
47811
|
componentId: "sc-1uxkx35-11"
|
|
47990
47812
|
})(["font-family:'Press Start 2P',cursive !important;font-size:0.5rem !important;color:#f3f4f6 !important;"]);
|
|
47991
|
-
var CharacterMeta$
|
|
47813
|
+
var CharacterMeta$1 = /*#__PURE__*/styled.span.withConfig({
|
|
47992
47814
|
displayName: "CharacterListingModal__CharacterMeta",
|
|
47993
47815
|
componentId: "sc-1uxkx35-12"
|
|
47994
47816
|
})(["font-family:'Press Start 2P',cursive !important;font-size:0.4rem !important;color:#888 !important;text-transform:uppercase;letter-spacing:0.5px;"]);
|
|
@@ -47996,7 +47818,7 @@ var PricePreview = /*#__PURE__*/styled.div.withConfig({
|
|
|
47996
47818
|
displayName: "CharacterListingModal__PricePreview",
|
|
47997
47819
|
componentId: "sc-1uxkx35-13"
|
|
47998
47820
|
})(["display:flex;align-items:center;gap:6px;"]);
|
|
47999
|
-
var DCCoinWrapper$
|
|
47821
|
+
var DCCoinWrapper$4 = /*#__PURE__*/styled.span.withConfig({
|
|
48000
47822
|
displayName: "CharacterListingModal__DCCoinWrapper",
|
|
48001
47823
|
componentId: "sc-1uxkx35-14"
|
|
48002
47824
|
})(["display:flex;align-items:center;justify-content:center;flex-shrink:0;"]);
|
|
@@ -48020,11 +47842,205 @@ var ListBtn = /*#__PURE__*/styled(CTAButton).withConfig({
|
|
|
48020
47842
|
displayName: "CharacterListingModal__ListBtn",
|
|
48021
47843
|
componentId: "sc-1uxkx35-19"
|
|
48022
47844
|
})(["flex-shrink:0;padding:10px 16px;height:32px;span{font-size:0.6rem;}svg{font-size:1.1rem;}"]);
|
|
48023
|
-
var EmptyState$
|
|
47845
|
+
var EmptyState$6 = /*#__PURE__*/styled.div.withConfig({
|
|
48024
47846
|
displayName: "CharacterListingModal__EmptyState",
|
|
48025
47847
|
componentId: "sc-1uxkx35-20"
|
|
48026
47848
|
})(["display:flex;align-items:center;justify-content:center;padding:32px 16px;font-family:'Press Start 2P',cursive !important;font-size:0.5rem !important;color:#666 !important;text-transform:uppercase;letter-spacing:1px;"]);
|
|
48027
47849
|
|
|
47850
|
+
var MyCharacterListingsPanel = function MyCharacterListingsPanel(_ref) {
|
|
47851
|
+
var myCharacterListings = _ref.myCharacterListings,
|
|
47852
|
+
totalCount = _ref.totalCount,
|
|
47853
|
+
currentPage = _ref.currentPage,
|
|
47854
|
+
itemsPerPage = _ref.itemsPerPage,
|
|
47855
|
+
onPageChange = _ref.onPageChange,
|
|
47856
|
+
onCharacterDelist = _ref.onCharacterDelist,
|
|
47857
|
+
accountCharacters = _ref.accountCharacters,
|
|
47858
|
+
_onCharacterList = _ref.onCharacterList,
|
|
47859
|
+
atlasJSON = _ref.atlasJSON,
|
|
47860
|
+
atlasIMG = _ref.atlasIMG,
|
|
47861
|
+
characterAtlasJSON = _ref.characterAtlasJSON,
|
|
47862
|
+
characterAtlasIMG = _ref.characterAtlasIMG,
|
|
47863
|
+
enableHotkeys = _ref.enableHotkeys,
|
|
47864
|
+
disableHotkeys = _ref.disableHotkeys;
|
|
47865
|
+
var _useState = useState(null),
|
|
47866
|
+
delistingId = _useState[0],
|
|
47867
|
+
setDelistingId = _useState[1];
|
|
47868
|
+
var _useState2 = useState(false),
|
|
47869
|
+
isListingModalOpen = _useState2[0],
|
|
47870
|
+
setIsListingModalOpen = _useState2[1];
|
|
47871
|
+
var itemsContainer = useRef(null);
|
|
47872
|
+
useEffect(function () {
|
|
47873
|
+
var _itemsContainer$curre;
|
|
47874
|
+
(_itemsContainer$curre = itemsContainer.current) == null ? void 0 : _itemsContainer$curre.scrollTo(0, 0);
|
|
47875
|
+
}, [currentPage]);
|
|
47876
|
+
var handleDelistConfirm = function handleDelistConfirm() {
|
|
47877
|
+
if (delistingId) {
|
|
47878
|
+
onCharacterDelist(delistingId);
|
|
47879
|
+
setDelistingId(null);
|
|
47880
|
+
enableHotkeys == null ? void 0 : enableHotkeys();
|
|
47881
|
+
}
|
|
47882
|
+
};
|
|
47883
|
+
var eligibleCount = accountCharacters.filter(function (c) {
|
|
47884
|
+
return !c.isListedForSale && !c.tradedAt;
|
|
47885
|
+
}).length;
|
|
47886
|
+
return React.createElement(React.Fragment, null, delistingId && React.createElement(ConfirmModal, {
|
|
47887
|
+
onClose: function onClose() {
|
|
47888
|
+
setDelistingId(null);
|
|
47889
|
+
enableHotkeys == null ? void 0 : enableHotkeys();
|
|
47890
|
+
},
|
|
47891
|
+
onConfirm: handleDelistConfirm,
|
|
47892
|
+
message: "Are you sure you want to delist this character?"
|
|
47893
|
+
}), React.createElement(CharacterListingModal, {
|
|
47894
|
+
isOpen: isListingModalOpen,
|
|
47895
|
+
onClose: function onClose() {
|
|
47896
|
+
return setIsListingModalOpen(false);
|
|
47897
|
+
},
|
|
47898
|
+
accountCharacters: accountCharacters,
|
|
47899
|
+
atlasJSON: atlasJSON,
|
|
47900
|
+
atlasIMG: atlasIMG,
|
|
47901
|
+
characterAtlasJSON: characterAtlasJSON,
|
|
47902
|
+
characterAtlasIMG: characterAtlasIMG,
|
|
47903
|
+
onCharacterList: function onCharacterList(id, price) {
|
|
47904
|
+
_onCharacterList(id, price);
|
|
47905
|
+
setIsListingModalOpen(false);
|
|
47906
|
+
},
|
|
47907
|
+
enableHotkeys: enableHotkeys,
|
|
47908
|
+
disableHotkeys: disableHotkeys
|
|
47909
|
+
}), React.createElement(Toolbar, null, React.createElement(ListCharacterBtn, {
|
|
47910
|
+
icon: React.createElement(ShoppingBag, {
|
|
47911
|
+
width: 16,
|
|
47912
|
+
height: 16
|
|
47913
|
+
}),
|
|
47914
|
+
label: "List a Character" + (eligibleCount > 0 ? " (" + eligibleCount + " eligible)" : ''),
|
|
47915
|
+
onClick: function onClick() {
|
|
47916
|
+
return setIsListingModalOpen(true);
|
|
47917
|
+
},
|
|
47918
|
+
disabled: eligibleCount === 0
|
|
47919
|
+
})), React.createElement(ListingsContainer$1, {
|
|
47920
|
+
ref: itemsContainer
|
|
47921
|
+
}, myCharacterListings.length === 0 ? React.createElement(EmptyState$7, null, React.createElement(User, {
|
|
47922
|
+
width: 32,
|
|
47923
|
+
height: 32
|
|
47924
|
+
}), React.createElement(EmptyText$1, null, "No listed characters."), React.createElement(EmptySubtext, null, "Use the \"List Character\" tab to put a character up for sale.")) : React.createElement(ListingsGrid$1, null, myCharacterListings.map(function (listing) {
|
|
47925
|
+
return React.createElement(CharacterListingCard$1, {
|
|
47926
|
+
key: listing._id,
|
|
47927
|
+
"$isBeingBought": listing.isBeingBought
|
|
47928
|
+
}, React.createElement(CharacterSprite$1, null, React.createElement(SpriteFromAtlas, {
|
|
47929
|
+
atlasIMG: characterAtlasIMG,
|
|
47930
|
+
atlasJSON: characterAtlasJSON,
|
|
47931
|
+
spriteKey: listing.characterSnapshot.textureKey + "/down/standing/0.png",
|
|
47932
|
+
imgScale: 3,
|
|
47933
|
+
height: 64,
|
|
47934
|
+
width: 64,
|
|
47935
|
+
centered: true
|
|
47936
|
+
})), React.createElement(CharacterInfo$2, null, React.createElement(CharacterName$4, null, listing.characterSnapshot.name || 'Unknown'), React.createElement(CharacterMeta$2, null, "Lv.", listing.characterSnapshot.level, " \xB7 ", listing.characterSnapshot["class"]), React.createElement(ListingPrice$1, null, React.createElement(DCCoinWrapper$5, null, React.createElement(SpriteFromAtlas, {
|
|
47937
|
+
atlasIMG: atlasIMG,
|
|
47938
|
+
atlasJSON: atlasJSON,
|
|
47939
|
+
spriteKey: "others/definya-coin.png",
|
|
47940
|
+
imgScale: 1,
|
|
47941
|
+
centered: true
|
|
47942
|
+
})), formatDCAmount(listing.price), " DC"), React.createElement(ListingDate, null, "Listed ", new Date(listing.createdAt).toLocaleDateString())), React.createElement(DelistBtn, {
|
|
47943
|
+
icon: React.createElement(Delete, {
|
|
47944
|
+
width: 14,
|
|
47945
|
+
height: 14
|
|
47946
|
+
}),
|
|
47947
|
+
label: "Delist",
|
|
47948
|
+
onClick: function onClick() {
|
|
47949
|
+
return setDelistingId(listing._id);
|
|
47950
|
+
},
|
|
47951
|
+
disabled: listing.isBeingBought
|
|
47952
|
+
}), listing.isBeingBought && React.createElement(PendingBadge, null, "Pending"));
|
|
47953
|
+
}))), totalCount > itemsPerPage && React.createElement(PagerFooter$2, null, React.createElement(Pagination, {
|
|
47954
|
+
currentPage: currentPage,
|
|
47955
|
+
totalPages: Math.ceil(totalCount / itemsPerPage),
|
|
47956
|
+
onPageChange: onPageChange
|
|
47957
|
+
})));
|
|
47958
|
+
};
|
|
47959
|
+
var ListingsContainer$1 = /*#__PURE__*/styled.div.withConfig({
|
|
47960
|
+
displayName: "MyCharacterListingsPanel__ListingsContainer",
|
|
47961
|
+
componentId: "sc-su21a6-0"
|
|
47962
|
+
})(["overflow-y:scroll;overflow-x:hidden;height:390px;width:95%;margin:1rem auto 0 auto;background:rgba(0,0,0,0.2);border:1px solid rgba(255,255,255,0.05);border-radius:4px;@media (max-width:950px){height:250px;}"]);
|
|
47963
|
+
var ListingsGrid$1 = /*#__PURE__*/styled.div.withConfig({
|
|
47964
|
+
displayName: "MyCharacterListingsPanel__ListingsGrid",
|
|
47965
|
+
componentId: "sc-su21a6-1"
|
|
47966
|
+
})(["display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px;padding:12px;"]);
|
|
47967
|
+
var CharacterListingCard$1 = /*#__PURE__*/styled.div.withConfig({
|
|
47968
|
+
displayName: "MyCharacterListingsPanel__CharacterListingCard",
|
|
47969
|
+
componentId: "sc-su21a6-2"
|
|
47970
|
+
})(["display:flex;flex-direction:column;align-items:center;gap:8px;background:rgba(255,255,255,0.03);border:1px solid ", ";border-radius:8px;padding:12px;position:relative;opacity:", ";transition:border-color 0.15s,background 0.15s;&:hover{border-color:", ";background:", ";}"], function (_ref2) {
|
|
47971
|
+
var $isBeingBought = _ref2.$isBeingBought;
|
|
47972
|
+
return $isBeingBought ? 'rgba(239,68,68,0.3)' : 'rgba(255,255,255,0.08)';
|
|
47973
|
+
}, function (_ref3) {
|
|
47974
|
+
var $isBeingBought = _ref3.$isBeingBought;
|
|
47975
|
+
return $isBeingBought ? 0.7 : 1;
|
|
47976
|
+
}, function (_ref4) {
|
|
47977
|
+
var $isBeingBought = _ref4.$isBeingBought;
|
|
47978
|
+
return $isBeingBought ? 'rgba(239,68,68,0.5)' : 'rgba(245,158,11,0.3)';
|
|
47979
|
+
}, function (_ref5) {
|
|
47980
|
+
var $isBeingBought = _ref5.$isBeingBought;
|
|
47981
|
+
return $isBeingBought ? 'rgba(239,68,68,0.04)' : 'rgba(245,158,11,0.04)';
|
|
47982
|
+
});
|
|
47983
|
+
var CharacterSprite$1 = /*#__PURE__*/styled.div.withConfig({
|
|
47984
|
+
displayName: "MyCharacterListingsPanel__CharacterSprite",
|
|
47985
|
+
componentId: "sc-su21a6-3"
|
|
47986
|
+
})(["display:flex;align-items:center;justify-content:center;image-rendering:pixelated;width:64px;height:64px;flex-shrink:0;"]);
|
|
47987
|
+
var CharacterInfo$2 = /*#__PURE__*/styled.div.withConfig({
|
|
47988
|
+
displayName: "MyCharacterListingsPanel__CharacterInfo",
|
|
47989
|
+
componentId: "sc-su21a6-4"
|
|
47990
|
+
})(["display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center;width:100%;"]);
|
|
47991
|
+
var CharacterName$4 = /*#__PURE__*/styled.span.withConfig({
|
|
47992
|
+
displayName: "MyCharacterListingsPanel__CharacterName",
|
|
47993
|
+
componentId: "sc-su21a6-5"
|
|
47994
|
+
})(["font-family:'Press Start 2P',cursive !important;font-size:0.55rem !important;color:#f3f4f6 !important;text-transform:uppercase;letter-spacing:0.5px;"]);
|
|
47995
|
+
var CharacterMeta$2 = /*#__PURE__*/styled.span.withConfig({
|
|
47996
|
+
displayName: "MyCharacterListingsPanel__CharacterMeta",
|
|
47997
|
+
componentId: "sc-su21a6-6"
|
|
47998
|
+
})(["font-family:'Press Start 2P',cursive !important;font-size:0.45rem !important;color:#888 !important;text-transform:uppercase;letter-spacing:0.5px;"]);
|
|
47999
|
+
var ListingPrice$1 = /*#__PURE__*/styled.div.withConfig({
|
|
48000
|
+
displayName: "MyCharacterListingsPanel__ListingPrice",
|
|
48001
|
+
componentId: "sc-su21a6-7"
|
|
48002
|
+
})(["display:flex;align-items:center;justify-content:center;gap:4px;font-family:'Press Start 2P',cursive !important;font-size:0.5rem !important;color:#fef08a !important;line-height:1;"]);
|
|
48003
|
+
var DCCoinWrapper$5 = /*#__PURE__*/styled.span.withConfig({
|
|
48004
|
+
displayName: "MyCharacterListingsPanel__DCCoinWrapper",
|
|
48005
|
+
componentId: "sc-su21a6-8"
|
|
48006
|
+
})(["display:flex;align-items:center;justify-content:center;flex-shrink:0;line-height:0;"]);
|
|
48007
|
+
var ListingDate = /*#__PURE__*/styled.span.withConfig({
|
|
48008
|
+
displayName: "MyCharacterListingsPanel__ListingDate",
|
|
48009
|
+
componentId: "sc-su21a6-9"
|
|
48010
|
+
})(["font-family:'Press Start 2P',cursive !important;font-size:0.35rem !important;color:#52525b !important;text-transform:uppercase;letter-spacing:0.5px;"]);
|
|
48011
|
+
var DelistBtn = /*#__PURE__*/styled(CTAButton).withConfig({
|
|
48012
|
+
displayName: "MyCharacterListingsPanel__DelistBtn",
|
|
48013
|
+
componentId: "sc-su21a6-10"
|
|
48014
|
+
})(["width:100%;padding:6px 10px;height:28px;margin-top:2px;span{font-size:0.48rem;}svg{font-size:0.9rem;}"]);
|
|
48015
|
+
var PendingBadge = /*#__PURE__*/styled.span.withConfig({
|
|
48016
|
+
displayName: "MyCharacterListingsPanel__PendingBadge",
|
|
48017
|
+
componentId: "sc-su21a6-11"
|
|
48018
|
+
})(["position:absolute;top:6px;right:6px;background:rgba(239,68,68,0.2);border:1px solid rgba(239,68,68,0.4);border-radius:4px;padding:2px 6px;font-family:'Press Start 2P',cursive !important;font-size:0.35rem !important;color:#ef4444 !important;text-transform:uppercase;letter-spacing:0.5px;"]);
|
|
48019
|
+
var Toolbar = /*#__PURE__*/styled.div.withConfig({
|
|
48020
|
+
displayName: "MyCharacterListingsPanel__Toolbar",
|
|
48021
|
+
componentId: "sc-su21a6-12"
|
|
48022
|
+
})(["width:95%;margin:10px auto 0 auto;display:flex;justify-content:flex-end;"]);
|
|
48023
|
+
var ListCharacterBtn = /*#__PURE__*/styled(CTAButton).withConfig({
|
|
48024
|
+
displayName: "MyCharacterListingsPanel__ListCharacterBtn",
|
|
48025
|
+
componentId: "sc-su21a6-13"
|
|
48026
|
+
})(["padding:8px 16px;height:32px;span{font-size:0.5rem;}svg{font-size:1rem;}"]);
|
|
48027
|
+
var PagerFooter$2 = /*#__PURE__*/styled.div.withConfig({
|
|
48028
|
+
displayName: "MyCharacterListingsPanel__PagerFooter",
|
|
48029
|
+
componentId: "sc-su21a6-14"
|
|
48030
|
+
})(["display:flex;justify-content:center;align-items:center;padding:8px 0 4px;min-height:36px;width:95%;margin:0 auto;"]);
|
|
48031
|
+
var EmptyState$7 = /*#__PURE__*/styled.div.withConfig({
|
|
48032
|
+
displayName: "MyCharacterListingsPanel__EmptyState",
|
|
48033
|
+
componentId: "sc-su21a6-15"
|
|
48034
|
+
})(["display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;height:100%;min-height:200px;"]);
|
|
48035
|
+
var EmptyText$1 = /*#__PURE__*/styled.span.withConfig({
|
|
48036
|
+
displayName: "MyCharacterListingsPanel__EmptyText",
|
|
48037
|
+
componentId: "sc-su21a6-16"
|
|
48038
|
+
})(["font-family:'Press Start 2P',cursive !important;font-size:0.48rem !important;color:#71717a !important;text-transform:uppercase;letter-spacing:1px;"]);
|
|
48039
|
+
var EmptySubtext = /*#__PURE__*/styled.span.withConfig({
|
|
48040
|
+
displayName: "MyCharacterListingsPanel__EmptySubtext",
|
|
48041
|
+
componentId: "sc-su21a6-17"
|
|
48042
|
+
})(["font-family:'Press Start 2P',cursive !important;font-size:0.38rem !important;color:#52525b !important;text-align:center;max-width:260px;line-height:1.6;"]);
|
|
48043
|
+
|
|
48028
48044
|
var CharacterListingForm = function CharacterListingForm(_ref) {
|
|
48029
48045
|
var accountCharacters = _ref.accountCharacters,
|
|
48030
48046
|
onCharacterList = _ref.onCharacterList,
|
|
@@ -48292,6 +48308,8 @@ var Marketplace = function Marketplace(props) {
|
|
|
48292
48308
|
itemsPerPage: 10,
|
|
48293
48309
|
onPageChange: onMyCharacterListingsPageChange != null ? onMyCharacterListingsPageChange : function () {},
|
|
48294
48310
|
onCharacterDelist: onCharacterDelist != null ? onCharacterDelist : function () {},
|
|
48311
|
+
accountCharacters: accountCharacters != null ? accountCharacters : [],
|
|
48312
|
+
onCharacterList: onCharacterList != null ? onCharacterList : function () {},
|
|
48295
48313
|
atlasJSON: props.atlasJSON,
|
|
48296
48314
|
atlasIMG: props.atlasIMG,
|
|
48297
48315
|
characterAtlasJSON: characterAtlasJSON != null ? characterAtlasJSON : props.atlasJSON,
|
|
@@ -48421,7 +48439,7 @@ var CharacterMarketplaceRows = function CharacterMarketplaceRows(_ref) {
|
|
|
48421
48439
|
atlasJSON: atlasJSON,
|
|
48422
48440
|
spriteKey: "others/definya-coin.png",
|
|
48423
48441
|
imgScale: 1
|
|
48424
|
-
})), React.createElement(DCPrice$2, null, formatDCAmount(price))), isBeingBought && React.createElement(PendingBadge, null, "Sale Pending"))), React.createElement(ActionSection$2, null, React.createElement(CTAButton, {
|
|
48442
|
+
})), React.createElement(DCPrice$2, null, formatDCAmount(price))), isBeingBought && React.createElement(PendingBadge$1, null, "Sale Pending"))), React.createElement(ActionSection$2, null, React.createElement(CTAButton, {
|
|
48425
48443
|
icon: onCharacterBuy ? React.createElement(Coins, {
|
|
48426
48444
|
width: 18,
|
|
48427
48445
|
height: 18
|
|
@@ -48480,7 +48498,7 @@ var ActionSection$2 = /*#__PURE__*/styled.div.withConfig({
|
|
|
48480
48498
|
displayName: "CharacterMarketplaceRows__ActionSection",
|
|
48481
48499
|
componentId: "sc-1pxkdig-10"
|
|
48482
48500
|
})(["flex-shrink:0;margin-left:0.75rem;"]);
|
|
48483
|
-
var PendingBadge = /*#__PURE__*/styled.span.withConfig({
|
|
48501
|
+
var PendingBadge$1 = /*#__PURE__*/styled.span.withConfig({
|
|
48484
48502
|
displayName: "CharacterMarketplaceRows__PendingBadge",
|
|
48485
48503
|
componentId: "sc-1pxkdig-11"
|
|
48486
48504
|
})(["font-size:0.38rem;padding:2px 6px;border-radius:4px;text-transform:uppercase;letter-spacing:0.5px;background:rgba(239,68,68,0.2);border:1px solid rgba(239,68,68,0.4);color:#ef4444;margin-top:4px;"]);
|