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