@rpg-engine/long-bow 0.8.167 → 0.8.168

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.
@@ -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,
@@ -46770,6 +46855,9 @@ var ManagmentPanel = function ManagmentPanel(_ref) {
46770
46855
  var _useState3 = React.useState(null),
46771
46856
  removingItemId = _useState3[0],
46772
46857
  setRemovingItemId = _useState3[1];
46858
+ var _useState4 = React.useState(acceptedCurrency || shared.MarketplaceAcceptedCurrency.GoldOrDc),
46859
+ listingCurrency = _useState4[0],
46860
+ setListingCurrency = _useState4[1];
46773
46861
  var itemsContainer = React.useRef(null);
46774
46862
  React.useEffect(function () {
46775
46863
  var _itemsContainer$curre;
@@ -46779,7 +46867,7 @@ var ManagmentPanel = function ManagmentPanel(_ref) {
46779
46867
  onClose: setIsCreatingOffer.bind(null, false),
46780
46868
  onConfirm: function onConfirm() {
46781
46869
  if (selectedItemToSell && price && Number(price)) {
46782
- onAddItemToMarketplace(selectedItemToSell, Number(price), acceptedCurrency);
46870
+ onAddItemToMarketplace(selectedItemToSell, Number(price), listingCurrency);
46783
46871
  setPrice('');
46784
46872
  onSelectedItemToSellRemove(selectedItemToSell);
46785
46873
  setIsCreatingOffer(false);
@@ -46848,6 +46936,15 @@ var ManagmentPanel = function ManagmentPanel(_ref) {
46848
46936
  setIsCreatingOffer(true);
46849
46937
  }
46850
46938
  }
46939
+ })), React__default.createElement(CurrencyToggleRow, null, React__default.createElement(CurrencyToggleLabel, null, "Accept:"), LISTING_CURRENCY_OPTIONS.map(function (opt) {
46940
+ return React__default.createElement(CurrencyToggleButton, {
46941
+ key: opt.value,
46942
+ "$active": listingCurrency === opt.value,
46943
+ onPointerDown: function onPointerDown() {
46944
+ return setListingCurrency(opt.value);
46945
+ },
46946
+ type: "button"
46947
+ }, opt.label);
46851
46948
  }))))), React__default.createElement(InnerOptionsWrapper, null, React__default.createElement(SectionLabel$1, {
46852
46949
  style: {
46853
46950
  marginBottom: '8px'
@@ -46883,13 +46980,15 @@ var ManagmentPanel = function ManagmentPanel(_ref) {
46883
46980
  }, items == null ? void 0 : items.map(function (_ref2, index) {
46884
46981
  var item = _ref2.item,
46885
46982
  price = _ref2.price,
46886
- _id = _ref2._id;
46983
+ _id = _ref2._id,
46984
+ listingCurrency = _ref2.acceptedCurrency;
46887
46985
  return React__default.createElement(MarketplaceRows, {
46888
46986
  key: item.key + "_" + index,
46889
46987
  atlasIMG: atlasIMG,
46890
46988
  atlasJSON: atlasJSON,
46891
46989
  item: item,
46892
46990
  itemPrice: price,
46991
+ acceptedCurrency: listingCurrency,
46893
46992
  equipmentSet: equipmentSet,
46894
46993
  onMarketPlaceItemRemove: setRemovingItemId.bind(null, _id)
46895
46994
  });
@@ -46949,15 +47048,46 @@ var SmallCTAButton = /*#__PURE__*/styled__default(CTAButton).withConfig({
46949
47048
  displayName: "ManagmentPanel__SmallCTAButton",
46950
47049
  componentId: "sc-1yyi6jn-12"
46951
47050
  })(["padding:8px 12px;height:32px;span{font-size:0.65rem;}svg{font-size:1.1rem;}"]);
47051
+ var CurrencyToggleRow = /*#__PURE__*/styled__default.div.withConfig({
47052
+ displayName: "ManagmentPanel__CurrencyToggleRow",
47053
+ componentId: "sc-1yyi6jn-13"
47054
+ })(["display:flex;align-items:center;gap:6px;margin-top:8px;"]);
47055
+ var CurrencyToggleLabel = /*#__PURE__*/styled__default.span.withConfig({
47056
+ displayName: "ManagmentPanel__CurrencyToggleLabel",
47057
+ componentId: "sc-1yyi6jn-14"
47058
+ })(["font-size:0.5rem;color:#888;text-transform:uppercase;letter-spacing:0.5px;white-space:nowrap;"]);
47059
+ var CurrencyToggleButton = /*#__PURE__*/styled__default.button.withConfig({
47060
+ displayName: "ManagmentPanel__CurrencyToggleButton",
47061
+ componentId: "sc-1yyi6jn-15"
47062
+ })(["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) {
47063
+ var $active = _ref3.$active;
47064
+ return $active ? '#f59e0b' : 'rgba(255,255,255,0.15)';
47065
+ }, function (_ref4) {
47066
+ var $active = _ref4.$active;
47067
+ return $active ? 'rgba(245,158,11,0.15)' : 'rgba(0,0,0,0.3)';
47068
+ }, function (_ref5) {
47069
+ var $active = _ref5.$active;
47070
+ return $active ? '#f59e0b' : '#aaa';
47071
+ }, function (_ref6) {
47072
+ var $active = _ref6.$active;
47073
+ return $active ? '#f59e0b' : 'rgba(255,255,255,0.35)';
47074
+ }, function (_ref7) {
47075
+ var $active = _ref7.$active;
47076
+ return $active ? '#f59e0b' : '#ddd';
47077
+ });
46952
47078
 
46953
47079
  var CURRENCY_OPTIONS = [{
46954
47080
  value: shared.MarketplaceAcceptedCurrency.GoldOrDc,
46955
- label: 'Gold or DC',
46956
- description: 'Accept both Gold and Definya Coin as payment'
47081
+ label: 'Both',
47082
+ description: 'Gold & DC'
46957
47083
  }, {
46958
47084
  value: shared.MarketplaceAcceptedCurrency.Gold,
46959
- label: 'Gold only',
46960
- description: 'Only accept Gold as payment'
47085
+ label: 'Gold',
47086
+ description: 'Gold only'
47087
+ }, {
47088
+ value: shared.MarketplaceAcceptedCurrency.Dc,
47089
+ label: 'DC',
47090
+ description: 'DC only'
46961
47091
  }];
46962
47092
  var MarketplaceSettingsPanel = function MarketplaceSettingsPanel(_ref) {
46963
47093
  var acceptedCurrency = _ref.acceptedCurrency,
@@ -46971,8 +47101,8 @@ var MarketplaceSettingsPanel = function MarketplaceSettingsPanel(_ref) {
46971
47101
  }
46972
47102
  }, React__default.createElement(OptionLabel$1, {
46973
47103
  "$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.")));
47104
+ }, option.label), React__default.createElement(OptionDescription, null, option.description));
47105
+ })), React__default.createElement(Hint, null, "Default currency for new listings.")));
46976
47106
  };
46977
47107
  var Wrapper$1 = /*#__PURE__*/styled__default.div.withConfig({
46978
47108
  displayName: "MarketplaceSettingsPanel__Wrapper",
@@ -46989,11 +47119,11 @@ var SectionLabel$2 = /*#__PURE__*/styled__default.p.withConfig({
46989
47119
  var OptionsGrid = /*#__PURE__*/styled__default.div.withConfig({
46990
47120
  displayName: "MarketplaceSettingsPanel__OptionsGrid",
46991
47121
  componentId: "sc-1lvibyi-3"
46992
- })(["display:grid;grid-template-columns:1fr 1fr;gap:12px;"]);
47122
+ })(["display:grid;grid-template-columns:repeat(3,1fr);gap:12px;"]);
46993
47123
  var OptionCard = /*#__PURE__*/styled__default.button.withConfig({
46994
47124
  displayName: "MarketplaceSettingsPanel__OptionCard",
46995
47125
  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) {
47126
+ })(["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
47127
  var $active = _ref2.$active;
46998
47128
  return $active ? 'rgba(245, 158, 11, 0.12)' : 'rgba(0, 0, 0, 0.25)';
46999
47129
  }, function (_ref3) {
@@ -47009,21 +47139,17 @@ var OptionCard = /*#__PURE__*/styled__default.button.withConfig({
47009
47139
  var OptionLabel$1 = /*#__PURE__*/styled__default.span.withConfig({
47010
47140
  displayName: "MarketplaceSettingsPanel__OptionLabel",
47011
47141
  componentId: "sc-1lvibyi-5"
47012
- })(["font-family:'Press Start 2P',cursive;font-size:0.6rem;color:", ";letter-spacing:0.5px;"], function (_ref6) {
47142
+ })(["font-family:'Press Start 2P',cursive !important;font-size:0.55rem !important;color:", " !important;letter-spacing:0.5px;"], function (_ref6) {
47013
47143
  var $active = _ref6.$active;
47014
- return $active ? '#f59e0b' : '#cccccc';
47144
+ return $active ? '#f59e0b' : '#999';
47015
47145
  });
47016
47146
  var OptionDescription = /*#__PURE__*/styled__default.span.withConfig({
47017
47147
  displayName: "MarketplaceSettingsPanel__OptionDescription",
47018
47148
  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;"]);
47149
+ })(["font-size:0.45rem !important;color:#555 !important;line-height:1.4;"]);
47024
47150
  var Hint = /*#__PURE__*/styled__default.p.withConfig({
47025
47151
  displayName: "MarketplaceSettingsPanel__Hint",
47026
- componentId: "sc-1lvibyi-8"
47152
+ componentId: "sc-1lvibyi-7"
47027
47153
  })(["margin:14px 0 0 0;font-size:0.48rem;color:#666;line-height:1.6;"]);
47028
47154
 
47029
47155
  var Marketplace = function Marketplace(props) {