@rpg-engine/long-bow 0.8.167 → 0.8.169

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.
@@ -16,5 +16,6 @@ export interface IManagmentPanelProps {
16
16
  disableHotkeys?: () => void;
17
17
  onMoneyWithdraw: () => void;
18
18
  currentPage: number;
19
+ dcToGoldSwapRate?: number;
19
20
  }
20
21
  export declare const ManagmentPanel: React.FC<IManagmentPanelProps>;
@@ -1,4 +1,4 @@
1
- import { IEquipmentSet, IItem, IMarketplaceItem } from '@rpg-engine/shared';
1
+ import { IEquipmentSet, IItem, IMarketplaceItem, MarketplaceAcceptedCurrency } from '@rpg-engine/shared';
2
2
  import React from 'react';
3
3
  export interface IMarketPlaceRowsPropos {
4
4
  atlasJSON: any;
@@ -6,6 +6,7 @@ export interface IMarketPlaceRowsPropos {
6
6
  item: IItem;
7
7
  itemPrice: number;
8
8
  dcEquivalentPrice?: number;
9
+ acceptedCurrency?: MarketplaceAcceptedCurrency;
9
10
  equipmentSet?: IEquipmentSet | null;
10
11
  scale?: number;
11
12
  onMarketPlaceItemBuy?: () => void;
@@ -45883,6 +45883,7 @@ var MarketplaceRows = function MarketplaceRows(_ref) {
45883
45883
  item = _ref.item,
45884
45884
  itemPrice = _ref.itemPrice,
45885
45885
  dcEquivalentPrice = _ref.dcEquivalentPrice,
45886
+ acceptedCurrency = _ref.acceptedCurrency,
45886
45887
  equipmentSet = _ref.equipmentSet,
45887
45888
  scale = _ref.scale,
45888
45889
  onMarketPlaceItemBuy = _ref.onMarketPlaceItemBuy,
@@ -45915,7 +45916,11 @@ var MarketplaceRows = function MarketplaceRows(_ref) {
45915
45916
  maxLines: 1,
45916
45917
  maxWidth: "200px",
45917
45918
  fontSize: "10px"
45918
- }, item.name)), React__default.createElement(PriceRow, null, React__default.createElement(GoldPriceRow$1, null, React__default.createElement(GoldIcon$1, null, React__default.createElement(SimpleTooltip, {
45919
+ }, item.name), acceptedCurrency === shared.MarketplaceAcceptedCurrency.Dc && React__default.createElement(CurrencyBadge, {
45920
+ "$color": "#a78bfa"
45921
+ }, "DC only"), acceptedCurrency === shared.MarketplaceAcceptedCurrency.Gold && React__default.createElement(CurrencyBadge, {
45922
+ "$color": "#fef08a"
45923
+ }, "Gold only")), React__default.createElement(PriceRow, null, acceptedCurrency !== shared.MarketplaceAcceptedCurrency.Dc && React__default.createElement(GoldPriceRow$1, null, React__default.createElement(GoldIcon$1, null, React__default.createElement(SimpleTooltip, {
45919
45924
  content: "Gold Coin",
45920
45925
  direction: "top"
45921
45926
  }, React__default.createElement(SpriteFromAtlas, {
@@ -45965,18 +45970,22 @@ var GroupedMarketplaceRow = function GroupedMarketplaceRow(_ref2) {
45965
45970
  onBuy = _ref2.onBuy,
45966
45971
  onDCCoinClick = _ref2.onDCCoinClick;
45967
45972
  var makeRow = function makeRow(listing) {
45973
+ var listingCurrency = listing.acceptedCurrency || shared.MarketplaceAcceptedCurrency.GoldOrDc;
45974
+ var isDcOnly = listingCurrency === shared.MarketplaceAcceptedCurrency.Dc;
45975
+ var showDcPrice = isDcOnly || dcToGoldSwapRate > 0 && listingCurrency !== shared.MarketplaceAcceptedCurrency.Gold;
45968
45976
  return React__default.createElement(MarketplaceRows, {
45969
45977
  key: listing._id,
45970
45978
  atlasIMG: atlasIMG,
45971
45979
  atlasJSON: atlasJSON,
45972
45980
  item: listing.item,
45973
45981
  itemPrice: listing.price,
45974
- dcEquivalentPrice: dcToGoldSwapRate > 0 ? getDCEquivalentPrice(listing.price) : undefined,
45982
+ dcEquivalentPrice: showDcPrice ? getDCEquivalentPrice(listing.price) : undefined,
45983
+ acceptedCurrency: listingCurrency,
45975
45984
  equipmentSet: equipmentSet,
45976
45985
  onMarketPlaceItemBuy: function onMarketPlaceItemBuy() {
45977
45986
  return onBuy(listing._id);
45978
45987
  },
45979
- onDCCoinClick: onDCCoinClick,
45988
+ onDCCoinClick: isDcOnly ? undefined : onDCCoinClick,
45980
45989
  disabled: listing.owner === characterId
45981
45990
  });
45982
45991
  };
@@ -46048,17 +46057,27 @@ var GemContainer = /*#__PURE__*/styled__default.p.withConfig({
46048
46057
  displayName: "MarketplaceRows__GemContainer",
46049
46058
  componentId: "sc-wmpr1o-13"
46050
46059
  })(["position:absolute;display:block;top:-5px;left:-10px;font-size:", " !important;"], uiFonts.size.xsmall);
46060
+ var CurrencyBadge = /*#__PURE__*/styled__default.span.withConfig({
46061
+ displayName: "MarketplaceRows__CurrencyBadge",
46062
+ componentId: "sc-wmpr1o-14"
46063
+ })(["display:inline-block;margin-left:6px;padding:1px 4px;font-family:'Press Start 2P',cursive;font-size:0.38rem;color:", ";border:1px solid ", ";border-radius:3px;opacity:0.85;vertical-align:middle;text-transform:uppercase;letter-spacing:0.5px;"], function (_ref5) {
46064
+ var $color = _ref5.$color;
46065
+ return $color;
46066
+ }, function (_ref6) {
46067
+ var $color = _ref6.$color;
46068
+ return $color;
46069
+ });
46051
46070
  var RarityContainer$1 = /*#__PURE__*/styled__default.div.withConfig({
46052
46071
  displayName: "MarketplaceRows__RarityContainer",
46053
- componentId: "sc-wmpr1o-14"
46054
- })(["border-color:", ";box-shadow:", " inset,", ";width:32px;height:32px;"], function (_ref5) {
46055
- var item = _ref5.item;
46072
+ componentId: "sc-wmpr1o-15"
46073
+ })(["border-color:", ";box-shadow:", " inset,", ";width:32px;height:32px;"], function (_ref7) {
46074
+ var item = _ref7.item;
46056
46075
  return rarityColor(item);
46057
- }, function (_ref6) {
46058
- var item = _ref6.item;
46076
+ }, function (_ref8) {
46077
+ var item = _ref8.item;
46059
46078
  return "0 0 5px 8px " + rarityColor(item);
46060
- }, function (_ref7) {
46061
- var item = _ref7.item;
46079
+ }, function (_ref9) {
46080
+ var item = _ref9.item;
46062
46081
  return "0 0 8px 6px " + rarityColor(item);
46063
46082
  });
46064
46083
 
@@ -46174,6 +46193,9 @@ var BuyPanel = function BuyPanel(_ref) {
46174
46193
  var _useState9 = React.useState(null),
46175
46194
  fulfillingBuyOrderId = _useState9[0],
46176
46195
  setFulfillingBuyOrderId = _useState9[1];
46196
+ var _useState10 = React.useState(null),
46197
+ currencyFilter = _useState10[0],
46198
+ setCurrencyFilter = _useState10[1];
46177
46199
  var itemsContainer = React.useRef(null);
46178
46200
  React.useEffect(function () {
46179
46201
  var _itemsContainer$curre;
@@ -46186,9 +46208,19 @@ var BuyPanel = function BuyPanel(_ref) {
46186
46208
  var getDCEquivalentPrice = function getDCEquivalentPrice(goldPrice) {
46187
46209
  return dcToGoldSwapRate > 0 ? shared.goldToDC(goldPrice) : 0;
46188
46210
  };
46211
+ var handleBuyClick = function handleBuyClick(listingId) {
46212
+ // All currencies go through the confirmation modal
46213
+ setBuyingItemId(listingId);
46214
+ };
46189
46215
  var groupedItems = React.useMemo(function () {
46216
+ var filtered = currencyFilter === null ? items : items.filter(function (i) {
46217
+ var c = i.acceptedCurrency || shared.MarketplaceAcceptedCurrency.GoldOrDc;
46218
+ if (currencyFilter === 'gold') return c === shared.MarketplaceAcceptedCurrency.Gold || c === shared.MarketplaceAcceptedCurrency.GoldOrDc;
46219
+ if (currencyFilter === 'dc') return c === shared.MarketplaceAcceptedCurrency.Dc || c === shared.MarketplaceAcceptedCurrency.GoldOrDc;
46220
+ return true;
46221
+ });
46190
46222
  var groups = new Map();
46191
- for (var _iterator = _createForOfIteratorHelperLoose(items), _step; !(_step = _iterator()).done;) {
46223
+ for (var _iterator = _createForOfIteratorHelperLoose(filtered), _step; !(_step = _iterator()).done;) {
46192
46224
  var entry = _step.value;
46193
46225
  var key = entry.item.key;
46194
46226
  if (!groups.has(key)) {
@@ -46205,7 +46237,7 @@ var BuyPanel = function BuyPanel(_ref) {
46205
46237
  otherListings: sorted.slice(1)
46206
46238
  };
46207
46239
  });
46208
- }, [items]);
46240
+ }, [items, currencyFilter]);
46209
46241
  var visibleBuyOrders = React.useMemo(function () {
46210
46242
  var normalizedName = name.trim().toLowerCase();
46211
46243
  return openBuyOrders.filter(function (order) {
@@ -46255,27 +46287,32 @@ var BuyPanel = function BuyPanel(_ref) {
46255
46287
  var showSellSection = browseMode === 'sell';
46256
46288
  var showBuySection = browseMode === 'buy';
46257
46289
  var hasVisibleContent = showSellSection && groupedItems.length > 0 || showBuySection && groupedBuyOrders.length > 0;
46258
- return React__default.createElement(React__default.Fragment, null, buyingItemId && buyingItem && hasDCBalance && React__default.createElement(MarketplaceBuyModal, {
46259
- goldPrice: buyingItem.price,
46260
- dcEquivalentPrice: getDCEquivalentPrice(buyingItem.price),
46261
- dcBalance: dcBalance,
46262
- onClose: function onClose() {
46263
- return setBuyingItemId(null);
46264
- },
46265
- onConfirm: function onConfirm(paymentMethod) {
46266
- onMarketPlaceItemBuy == null ? void 0 : onMarketPlaceItemBuy(buyingItemId, paymentMethod);
46267
- setBuyingItemId(null);
46268
- enableHotkeys == null ? void 0 : enableHotkeys();
46269
- }
46270
- }), buyingItemId && !hasDCBalance && React__default.createElement(ConfirmModal, {
46271
- onClose: setBuyingItemId.bind(null, null),
46272
- onConfirm: function onConfirm() {
46273
- onMarketPlaceItemBuy == null ? void 0 : onMarketPlaceItemBuy(buyingItemId);
46274
- setBuyingItemId(null);
46275
- enableHotkeys == null ? void 0 : enableHotkeys();
46276
- },
46277
- message: "Are you sure you want to buy this item?"
46278
- }), fulfillingBuyOrderId && React__default.createElement(ConfirmModal, {
46290
+ return React__default.createElement(React__default.Fragment, null, buyingItemId && buyingItem && function () {
46291
+ var listingCurrency = buyingItem.acceptedCurrency || shared.MarketplaceAcceptedCurrency.GoldOrDc;
46292
+ var isDcOnly = listingCurrency === shared.MarketplaceAcceptedCurrency.Dc;
46293
+ var showPaymentChoiceModal = listingCurrency === shared.MarketplaceAcceptedCurrency.GoldOrDc && hasDCBalance;
46294
+ return showPaymentChoiceModal ? React__default.createElement(MarketplaceBuyModal, {
46295
+ goldPrice: buyingItem.price,
46296
+ dcEquivalentPrice: getDCEquivalentPrice(buyingItem.price),
46297
+ dcBalance: dcBalance,
46298
+ onClose: function onClose() {
46299
+ return setBuyingItemId(null);
46300
+ },
46301
+ onConfirm: function onConfirm(paymentMethod) {
46302
+ onMarketPlaceItemBuy == null ? void 0 : onMarketPlaceItemBuy(buyingItemId, paymentMethod);
46303
+ setBuyingItemId(null);
46304
+ enableHotkeys == null ? void 0 : enableHotkeys();
46305
+ }
46306
+ }) : React__default.createElement(ConfirmModal, {
46307
+ onClose: setBuyingItemId.bind(null, null),
46308
+ onConfirm: function onConfirm() {
46309
+ onMarketPlaceItemBuy == null ? void 0 : onMarketPlaceItemBuy(buyingItemId, isDcOnly ? 'dc' : undefined);
46310
+ setBuyingItemId(null);
46311
+ enableHotkeys == null ? void 0 : enableHotkeys();
46312
+ },
46313
+ message: isDcOnly ? "Are you sure you want to buy this item with DC?" : "Are you sure you want to buy this item?"
46314
+ });
46315
+ }(), fulfillingBuyOrderId && React__default.createElement(ConfirmModal, {
46279
46316
  onClose: setFulfillingBuyOrderId.bind(null, null),
46280
46317
  onConfirm: function onConfirm() {
46281
46318
  onFulfillBuyOrder == null ? void 0 : onFulfillBuyOrder(fulfillingBuyOrderId);
@@ -46315,7 +46352,18 @@ var BuyPanel = function BuyPanel(_ref) {
46315
46352
  }, React__default.createElement(SortVertical.SortVertical, {
46316
46353
  width: 18,
46317
46354
  height: 18
46318
- }))), showFilters && React__default.createElement(OptionsWrapper, {
46355
+ }))), showSellSection && React__default.createElement(CurrencyFilterRow, null, React__default.createElement(CurrencyFilterLabel, null, "Currency:"), ['gold', 'dc'].map(function (c) {
46356
+ return React__default.createElement(CurrencyFilterButton, {
46357
+ key: c,
46358
+ "$active": currencyFilter === c,
46359
+ onPointerDown: function onPointerDown() {
46360
+ return setCurrencyFilter(function (prev) {
46361
+ return prev === c ? null : c;
46362
+ });
46363
+ },
46364
+ type: "button"
46365
+ }, c === 'gold' ? 'Gold' : 'DC');
46366
+ })), showFilters && React__default.createElement(OptionsWrapper, {
46319
46367
  showFilters: showFilters
46320
46368
  }, React__default.createElement(WrapperContainer$1, {
46321
46369
  "$sell": showSellSection
@@ -46422,7 +46470,7 @@ var BuyPanel = function BuyPanel(_ref) {
46422
46470
  dcToGoldSwapRate: dcToGoldSwapRate,
46423
46471
  getDCEquivalentPrice: getDCEquivalentPrice,
46424
46472
  characterId: characterId,
46425
- onBuy: setBuyingItemId,
46473
+ onBuy: handleBuyClick,
46426
46474
  onDCCoinClick: onDCCoinClick
46427
46475
  });
46428
46476
  })), showBuySection && React__default.createElement(MarketSection, null, React__default.createElement(SectionHeader, null, React__default.createElement(SectionTitle$2, null, "Buy Requests"), React__default.createElement(SectionMeta, null, groupedBuyOrders.length, " groups")), groupedBuyOrders.length === 0 ? React__default.createElement(SectionEmpty, null, "No public buy requests found.") : groupedBuyOrders.map(function (_ref3) {
@@ -46536,6 +46584,33 @@ var LoadingText$1 = /*#__PURE__*/styled__default.span.withConfig({
46536
46584
  displayName: "BuyPanel__LoadingText",
46537
46585
  componentId: "sc-1si8t7i-17"
46538
46586
  })(["font-size:0.48rem;color:#8a8a8a;text-transform:uppercase;letter-spacing:1px;"]);
46587
+ var CurrencyFilterRow = /*#__PURE__*/styled__default.div.withConfig({
46588
+ displayName: "BuyPanel__CurrencyFilterRow",
46589
+ componentId: "sc-1si8t7i-18"
46590
+ })(["display:flex;align-items:center;gap:6px;width:95%;margin:0 auto 8px auto;"]);
46591
+ var CurrencyFilterLabel = /*#__PURE__*/styled__default.span.withConfig({
46592
+ displayName: "BuyPanel__CurrencyFilterLabel",
46593
+ componentId: "sc-1si8t7i-19"
46594
+ })(["font-size:0.45rem !important;color:#666 !important;text-transform:uppercase;letter-spacing:0.5px;white-space:nowrap;"]);
46595
+ var CurrencyFilterButton = /*#__PURE__*/styled__default.button.withConfig({
46596
+ displayName: "BuyPanel__CurrencyFilterButton",
46597
+ componentId: "sc-1si8t7i-20"
46598
+ })(["padding:3px 8px;font-family:'Press Start 2P',cursive !important;font-size:0.4rem !important;border-radius:4px;border:1px solid ", " !important;background:", " !important;color:", " !important;cursor:pointer;transition:border-color 0.15s,background 0.15s,color 0.15s;&:hover{border-color:", " !important;color:", " !important;}"], function (_ref9) {
46599
+ var $active = _ref9.$active;
46600
+ return $active ? '#f59e0b' : 'rgba(255,255,255,0.12)';
46601
+ }, function (_ref10) {
46602
+ var $active = _ref10.$active;
46603
+ return $active ? 'rgba(245,158,11,0.15)' : 'rgba(0,0,0,0.3)';
46604
+ }, function (_ref11) {
46605
+ var $active = _ref11.$active;
46606
+ return $active ? '#f59e0b' : '#777';
46607
+ }, function (_ref12) {
46608
+ var $active = _ref12.$active;
46609
+ return $active ? '#f59e0b' : 'rgba(255,255,255,0.3)';
46610
+ }, function (_ref13) {
46611
+ var $active = _ref13.$active;
46612
+ return $active ? '#f59e0b' : '#bbb';
46613
+ });
46539
46614
 
46540
46615
  var _TRANSACTION_TYPE_COL;
46541
46616
  var HISTORY_ITEMS_PER_PAGE = 10;
@@ -46745,6 +46820,16 @@ var PagerContainer$1 = /*#__PURE__*/styled__default.div.withConfig({
46745
46820
  componentId: "sc-74mioa-21"
46746
46821
  })(["display:flex;justify-content:center;margin-top:4px;"]);
46747
46822
 
46823
+ var LISTING_CURRENCY_OPTIONS = [{
46824
+ value: shared.MarketplaceAcceptedCurrency.GoldOrDc,
46825
+ label: 'Both'
46826
+ }, {
46827
+ value: shared.MarketplaceAcceptedCurrency.Gold,
46828
+ label: 'Gold'
46829
+ }, {
46830
+ value: shared.MarketplaceAcceptedCurrency.Dc,
46831
+ label: 'DC'
46832
+ }];
46748
46833
  var ManagmentPanel = function ManagmentPanel(_ref) {
46749
46834
  var items = _ref.items,
46750
46835
  atlasIMG = _ref.atlasIMG,
@@ -46760,7 +46845,9 @@ var ManagmentPanel = function ManagmentPanel(_ref) {
46760
46845
  enableHotkeys = _ref.enableHotkeys,
46761
46846
  disableHotkeys = _ref.disableHotkeys,
46762
46847
  onMoneyWithdraw = _ref.onMoneyWithdraw,
46763
- currentPage = _ref.currentPage;
46848
+ currentPage = _ref.currentPage,
46849
+ _ref$dcToGoldSwapRate = _ref.dcToGoldSwapRate,
46850
+ dcToGoldSwapRate = _ref$dcToGoldSwapRate === void 0 ? 0 : _ref$dcToGoldSwapRate;
46764
46851
  var _useState = React.useState(''),
46765
46852
  price = _useState[0],
46766
46853
  setPrice = _useState[1];
@@ -46770,6 +46857,9 @@ var ManagmentPanel = function ManagmentPanel(_ref) {
46770
46857
  var _useState3 = React.useState(null),
46771
46858
  removingItemId = _useState3[0],
46772
46859
  setRemovingItemId = _useState3[1];
46860
+ var _useState4 = React.useState(acceptedCurrency || shared.MarketplaceAcceptedCurrency.GoldOrDc),
46861
+ listingCurrency = _useState4[0],
46862
+ setListingCurrency = _useState4[1];
46773
46863
  var itemsContainer = React.useRef(null);
46774
46864
  React.useEffect(function () {
46775
46865
  var _itemsContainer$curre;
@@ -46779,7 +46869,7 @@ var ManagmentPanel = function ManagmentPanel(_ref) {
46779
46869
  onClose: setIsCreatingOffer.bind(null, false),
46780
46870
  onConfirm: function onConfirm() {
46781
46871
  if (selectedItemToSell && price && Number(price)) {
46782
- onAddItemToMarketplace(selectedItemToSell, Number(price), acceptedCurrency);
46872
+ onAddItemToMarketplace(selectedItemToSell, Number(price), listingCurrency);
46783
46873
  setPrice('');
46784
46874
  onSelectedItemToSellRemove(selectedItemToSell);
46785
46875
  setIsCreatingOffer(false);
@@ -46848,6 +46938,15 @@ var ManagmentPanel = function ManagmentPanel(_ref) {
46848
46938
  setIsCreatingOffer(true);
46849
46939
  }
46850
46940
  }
46941
+ })), React__default.createElement(CurrencyToggleRow, null, React__default.createElement(CurrencyToggleLabel, null, "Accept:"), LISTING_CURRENCY_OPTIONS.map(function (opt) {
46942
+ return React__default.createElement(CurrencyToggleButton, {
46943
+ key: opt.value,
46944
+ "$active": listingCurrency === opt.value,
46945
+ onPointerDown: function onPointerDown() {
46946
+ return setListingCurrency(opt.value);
46947
+ },
46948
+ type: "button"
46949
+ }, opt.label);
46851
46950
  }))))), React__default.createElement(InnerOptionsWrapper, null, React__default.createElement(SectionLabel$1, {
46852
46951
  style: {
46853
46952
  marginBottom: '8px'
@@ -46883,13 +46982,19 @@ var ManagmentPanel = function ManagmentPanel(_ref) {
46883
46982
  }, items == null ? void 0 : items.map(function (_ref2, index) {
46884
46983
  var item = _ref2.item,
46885
46984
  price = _ref2.price,
46886
- _id = _ref2._id;
46985
+ _id = _ref2._id,
46986
+ itemCurrency = _ref2.acceptedCurrency;
46987
+ var currency = itemCurrency || shared.MarketplaceAcceptedCurrency.GoldOrDc;
46988
+ var isDcOnly = currency === shared.MarketplaceAcceptedCurrency.Dc;
46989
+ var showDcPrice = isDcOnly || dcToGoldSwapRate > 0 && currency !== shared.MarketplaceAcceptedCurrency.Gold;
46887
46990
  return React__default.createElement(MarketplaceRows, {
46888
46991
  key: item.key + "_" + index,
46889
46992
  atlasIMG: atlasIMG,
46890
46993
  atlasJSON: atlasJSON,
46891
46994
  item: item,
46892
46995
  itemPrice: price,
46996
+ dcEquivalentPrice: showDcPrice ? shared.goldToDC(price) : undefined,
46997
+ acceptedCurrency: currency,
46893
46998
  equipmentSet: equipmentSet,
46894
46999
  onMarketPlaceItemRemove: setRemovingItemId.bind(null, _id)
46895
47000
  });
@@ -46949,15 +47054,46 @@ var SmallCTAButton = /*#__PURE__*/styled__default(CTAButton).withConfig({
46949
47054
  displayName: "ManagmentPanel__SmallCTAButton",
46950
47055
  componentId: "sc-1yyi6jn-12"
46951
47056
  })(["padding:8px 12px;height:32px;span{font-size:0.65rem;}svg{font-size:1.1rem;}"]);
47057
+ var CurrencyToggleRow = /*#__PURE__*/styled__default.div.withConfig({
47058
+ displayName: "ManagmentPanel__CurrencyToggleRow",
47059
+ componentId: "sc-1yyi6jn-13"
47060
+ })(["display:flex;align-items:center;gap:6px;margin-top:8px;"]);
47061
+ var CurrencyToggleLabel = /*#__PURE__*/styled__default.span.withConfig({
47062
+ displayName: "ManagmentPanel__CurrencyToggleLabel",
47063
+ componentId: "sc-1yyi6jn-14"
47064
+ })(["font-size:0.5rem;color:#888;text-transform:uppercase;letter-spacing:0.5px;white-space:nowrap;"]);
47065
+ var CurrencyToggleButton = /*#__PURE__*/styled__default.button.withConfig({
47066
+ displayName: "ManagmentPanel__CurrencyToggleButton",
47067
+ componentId: "sc-1yyi6jn-15"
47068
+ })(["padding:3px 8px;font-family:'Press Start 2P',cursive !important;font-size:0.45rem !important;border-radius:4px;border:1px solid ", " !important;background:", " !important;color:", " !important;cursor:pointer;transition:border-color 0.15s,background 0.15s,color 0.15s;&:hover{border-color:", " !important;color:", " !important;}"], function (_ref3) {
47069
+ var $active = _ref3.$active;
47070
+ return $active ? '#f59e0b' : 'rgba(255,255,255,0.15)';
47071
+ }, function (_ref4) {
47072
+ var $active = _ref4.$active;
47073
+ return $active ? 'rgba(245,158,11,0.15)' : 'rgba(0,0,0,0.3)';
47074
+ }, function (_ref5) {
47075
+ var $active = _ref5.$active;
47076
+ return $active ? '#f59e0b' : '#aaa';
47077
+ }, function (_ref6) {
47078
+ var $active = _ref6.$active;
47079
+ return $active ? '#f59e0b' : 'rgba(255,255,255,0.35)';
47080
+ }, function (_ref7) {
47081
+ var $active = _ref7.$active;
47082
+ return $active ? '#f59e0b' : '#ddd';
47083
+ });
46952
47084
 
46953
47085
  var CURRENCY_OPTIONS = [{
46954
47086
  value: shared.MarketplaceAcceptedCurrency.GoldOrDc,
46955
- label: 'Gold or DC',
46956
- description: 'Accept both Gold and Definya Coin as payment'
47087
+ label: 'Both',
47088
+ description: 'Gold & DC'
46957
47089
  }, {
46958
47090
  value: shared.MarketplaceAcceptedCurrency.Gold,
46959
- label: 'Gold only',
46960
- description: 'Only accept Gold as payment'
47091
+ label: 'Gold',
47092
+ description: 'Gold only'
47093
+ }, {
47094
+ value: shared.MarketplaceAcceptedCurrency.Dc,
47095
+ label: 'DC',
47096
+ description: 'DC only'
46961
47097
  }];
46962
47098
  var MarketplaceSettingsPanel = function MarketplaceSettingsPanel(_ref) {
46963
47099
  var acceptedCurrency = _ref.acceptedCurrency,
@@ -46971,8 +47107,8 @@ var MarketplaceSettingsPanel = function MarketplaceSettingsPanel(_ref) {
46971
47107
  }
46972
47108
  }, React__default.createElement(OptionLabel$1, {
46973
47109
  "$active": acceptedCurrency === option.value
46974
- }, option.label), React__default.createElement(OptionDescription, null, option.description), acceptedCurrency === option.value && React__default.createElement(ActiveBadge, null, "Active"));
46975
- })), React__default.createElement(Hint, null, "Buyers will only be able to pay using the currency you accept.")));
47110
+ }, option.label), React__default.createElement(OptionDescription, null, option.description));
47111
+ })), React__default.createElement(Hint, null, "Default currency for new listings.")));
46976
47112
  };
46977
47113
  var Wrapper$1 = /*#__PURE__*/styled__default.div.withConfig({
46978
47114
  displayName: "MarketplaceSettingsPanel__Wrapper",
@@ -46989,11 +47125,11 @@ var SectionLabel$2 = /*#__PURE__*/styled__default.p.withConfig({
46989
47125
  var OptionsGrid = /*#__PURE__*/styled__default.div.withConfig({
46990
47126
  displayName: "MarketplaceSettingsPanel__OptionsGrid",
46991
47127
  componentId: "sc-1lvibyi-3"
46992
- })(["display:grid;grid-template-columns:1fr 1fr;gap:12px;"]);
47128
+ })(["display:grid;grid-template-columns:repeat(3,1fr);gap:12px;"]);
46993
47129
  var OptionCard = /*#__PURE__*/styled__default.button.withConfig({
46994
47130
  displayName: "MarketplaceSettingsPanel__OptionCard",
46995
47131
  componentId: "sc-1lvibyi-4"
46996
- })(["position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:14px 16px;background:", ";border:2px solid ", ";border-radius:6px;cursor:pointer;text-align:left;transition:border-color 0.15s,background 0.15s;&:hover{border-color:", ";background:", ";}"], function (_ref2) {
47132
+ })(["position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:10px 8px;background:", " !important;border:2px solid ", " !important;border-radius:6px;cursor:pointer;text-align:center;transition:border-color 0.15s,background 0.15s;&:hover{border-color:", " !important;background:", " !important;}"], function (_ref2) {
46997
47133
  var $active = _ref2.$active;
46998
47134
  return $active ? 'rgba(245, 158, 11, 0.12)' : 'rgba(0, 0, 0, 0.25)';
46999
47135
  }, function (_ref3) {
@@ -47009,21 +47145,17 @@ var OptionCard = /*#__PURE__*/styled__default.button.withConfig({
47009
47145
  var OptionLabel$1 = /*#__PURE__*/styled__default.span.withConfig({
47010
47146
  displayName: "MarketplaceSettingsPanel__OptionLabel",
47011
47147
  componentId: "sc-1lvibyi-5"
47012
- })(["font-family:'Press Start 2P',cursive;font-size:0.6rem;color:", ";letter-spacing:0.5px;"], function (_ref6) {
47148
+ })(["font-family:'Press Start 2P',cursive !important;font-size:0.55rem !important;color:", " !important;letter-spacing:0.5px;"], function (_ref6) {
47013
47149
  var $active = _ref6.$active;
47014
- return $active ? '#f59e0b' : '#cccccc';
47150
+ return $active ? '#f59e0b' : '#999';
47015
47151
  });
47016
47152
  var OptionDescription = /*#__PURE__*/styled__default.span.withConfig({
47017
47153
  displayName: "MarketplaceSettingsPanel__OptionDescription",
47018
47154
  componentId: "sc-1lvibyi-6"
47019
- })(["font-size:0.5rem;color:#888;line-height:1.5;"]);
47020
- var ActiveBadge = /*#__PURE__*/styled__default.span.withConfig({
47021
- displayName: "MarketplaceSettingsPanel__ActiveBadge",
47022
- componentId: "sc-1lvibyi-7"
47023
- })(["position:absolute;top:8px;right:10px;font-size:0.45rem;color:#f59e0b;text-transform:uppercase;letter-spacing:0.5px;opacity:0.8;"]);
47155
+ })(["font-size:0.45rem !important;color:#555 !important;line-height:1.4;"]);
47024
47156
  var Hint = /*#__PURE__*/styled__default.p.withConfig({
47025
47157
  displayName: "MarketplaceSettingsPanel__Hint",
47026
- componentId: "sc-1lvibyi-8"
47158
+ componentId: "sc-1lvibyi-7"
47027
47159
  })(["margin:14px 0 0 0;font-size:0.48rem;color:#666;line-height:1.6;"]);
47028
47160
 
47029
47161
  var Marketplace = function Marketplace(props) {