@rpg-engine/long-bow 0.8.160 → 0.8.162

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.
@@ -21,12 +21,15 @@ import { ShoppingBag } from 'pixelarticons/react/ShoppingBag';
21
21
  import { ShoppingCart } from 'pixelarticons/react/ShoppingCart';
22
22
  import { Store as Store$1 } from 'pixelarticons/react/Store';
23
23
  import { Wallet } from 'pixelarticons/react/Wallet';
24
+ import { SortVertical } from 'pixelarticons/react/SortVertical';
24
25
  import { Search } from 'pixelarticons/react/Search';
25
26
  import { Delete } from 'pixelarticons/react/Delete';
26
27
  import 'rpgui/rpgui.css';
27
28
  import 'rpgui/rpgui.min.js';
28
- import { SortVertical } from 'pixelarticons/react/SortVertical';
29
29
  import { Coins } from 'pixelarticons/react/Coins';
30
+ import { Box } from 'pixelarticons/react/Box';
31
+ import { Crown } from 'pixelarticons/react/Crown';
32
+ import { Gift } from 'pixelarticons/react/Gift';
30
33
  import capitalize from 'lodash-es/capitalize';
31
34
 
32
35
  function _arrayLikeToArray(r, a) {
@@ -44501,9 +44504,13 @@ var Pager = function Pager(_ref) {
44501
44504
  var totalItems = _ref.totalItems,
44502
44505
  currentPage = _ref.currentPage,
44503
44506
  itemsPerPage = _ref.itemsPerPage,
44504
- onPageChange = _ref.onPageChange;
44507
+ onPageChange = _ref.onPageChange,
44508
+ _ref$compact = _ref.compact,
44509
+ compact = _ref$compact === void 0 ? false : _ref$compact;
44505
44510
  var totalPages = Math.ceil(totalItems / itemsPerPage);
44506
- return React.createElement(Container$A, null, React.createElement("p", null, "Total items: ", totalItems), React.createElement(PagerContainer, null, React.createElement("button", {
44511
+ return React.createElement(Container$A, null, !compact && React.createElement("p", null, "Total items: ", totalItems), React.createElement(PagerContainer, {
44512
+ "$compact": compact
44513
+ }, React.createElement("button", {
44507
44514
  disabled: currentPage === 1,
44508
44515
  onPointerDown: function onPointerDown() {
44509
44516
  return onPageChange(Math.max(currentPage - 1, 1));
@@ -44524,7 +44531,19 @@ var Container$A = /*#__PURE__*/styled.div.withConfig({
44524
44531
  var PagerContainer = /*#__PURE__*/styled.div.withConfig({
44525
44532
  displayName: "Pager__PagerContainer",
44526
44533
  componentId: "sc-1ekmf50-1"
44527
- })(["display:flex;justify-content:center;align-items:center;gap:5px;p{margin:0;}div{color:white;}button{width:40px;height:40px;background-color:", ";border:none;border-radius:5px;color:white;:hover{background-color:", ";}:disabled{opacity:0.5;}&.active{background-color:", ";font-weight:bold;color:black;}}"], uiColors.darkGray, uiColors.lightGray, uiColors.orange);
44534
+ })(["display:flex;justify-content:center;align-items:center;gap:5px;p{margin:0;}div{color:white;", "}button{width:", " !important;height:", " !important;font-size:", " !important;background-color:", ";border:none;border-radius:5px;color:white;:hover{background-color:", ";}:disabled{opacity:0.5;}&.active{background-color:", ";font-weight:bold;color:black;}}"], function (_ref2) {
44535
+ var $compact = _ref2.$compact;
44536
+ return $compact && "\n font-size: 0.55rem !important;\n padding: 2px 6px !important;\n min-width: unset !important;\n ";
44537
+ }, function (_ref3) {
44538
+ var $compact = _ref3.$compact;
44539
+ return $compact ? '24px' : '40px';
44540
+ }, function (_ref4) {
44541
+ var $compact = _ref4.$compact;
44542
+ return $compact ? '24px' : '40px';
44543
+ }, function (_ref5) {
44544
+ var $compact = _ref5.$compact;
44545
+ return $compact ? '0.55rem' : 'inherit';
44546
+ }, uiColors.darkGray, uiColors.lightGray, uiColors.orange);
44528
44547
 
44529
44548
  var Tabs = function Tabs(_ref) {
44530
44549
  var options = _ref.options,
@@ -44580,24 +44599,25 @@ var BlueprintTable = function BlueprintTable(_ref) {
44580
44599
  atlasJSON: atlasJSON,
44581
44600
  atlasIMG: atlasIMG,
44582
44601
  spriteKey: blueprint.texturePath || blueprint.key,
44583
- width: 32,
44584
- height: 32,
44585
- imgScale: 2,
44602
+ width: 24,
44603
+ height: 24,
44604
+ imgScale: 1.5,
44586
44605
  centered: true
44587
44606
  })), React.createElement(ColName, null, React.createElement(BlueprintName, null, blueprint.name), (blueprint.type || blueprint.subType) && React.createElement(BlueprintMeta, null, [blueprint.type, blueprint.subType].filter(Boolean).filter(function (v, i, arr) {
44588
44607
  return arr.indexOf(v) === i;
44589
44608
  }).join(' · '))), React.createElement(ColType, null, React.createElement(TypeText, null, blueprint.type), blueprint.subType && blueprint.subType !== blueprint.type && React.createElement(SubTypeText, null, blueprint.subType)), React.createElement(ColTier, null, "T", blueprint.tier));
44590
44609
  }));
44591
44610
  };
44592
- var tableRowBase = "\n display: grid;\n grid-template-columns: 40px 1fr 120px 50px;\n align-items: center;\n gap: 8px;\n padding: 6px 12px;\n";
44611
+ var tableRowBase = "\n display: grid;\n grid-template-columns: 28px 1fr 100px 40px;\n align-items: center;\n gap: 6px;\n padding: 3px 8px;\n";
44612
+ var mobileRowOverride = "\n @media (max-width: 600px) {\n padding: 1px 6px;\n gap: 4px;\n }\n";
44593
44613
  var ResultsHeader = /*#__PURE__*/styled.div.withConfig({
44594
44614
  displayName: "BlueprintTable__ResultsHeader",
44595
44615
  componentId: "sc-1ysxhx2-0"
44596
- })(["", " background:rgba(0,0,0,0.4);border-bottom:1px solid rgba(255,255,255,0.1);position:sticky;top:0;z-index:1;> *{font-size:0.45rem;color:#888;text-transform:uppercase;letter-spacing:1px;}"], tableRowBase);
44616
+ })(["", " ", " background:rgba(0,0,0,0.4);border-bottom:1px solid rgba(255,255,255,0.1);position:sticky;top:0;z-index:1;&& > *{font-size:0.48rem !important;color:#555 !important;text-transform:uppercase;letter-spacing:1px;}"], tableRowBase, mobileRowOverride);
44597
44617
  var ResultRow = /*#__PURE__*/styled.div.withConfig({
44598
44618
  displayName: "BlueprintTable__ResultRow",
44599
44619
  componentId: "sc-1ysxhx2-1"
44600
- })(["", " border-bottom:1px solid rgba(255,255,255,0.04);cursor:", ";transition:background 0.1s;&:hover{background:", ";}&:last-child{border-bottom:none;}"], tableRowBase, function (p) {
44620
+ })(["", " ", " border-bottom:1px solid rgba(255,255,255,0.04);cursor:", ";transition:background 0.1s;&:hover{background:", ";}&:last-child{border-bottom:none;}"], tableRowBase, mobileRowOverride, function (p) {
44601
44621
  return p.$selectable ? 'pointer' : 'default';
44602
44622
  }, function (p) {
44603
44623
  return p.$selectable ? 'rgba(245, 158, 11, 0.08)' : 'none';
@@ -44605,7 +44625,7 @@ var ResultRow = /*#__PURE__*/styled.div.withConfig({
44605
44625
  var SpriteWrapper$1 = /*#__PURE__*/styled.div.withConfig({
44606
44626
  displayName: "BlueprintTable__SpriteWrapper",
44607
44627
  componentId: "sc-1ysxhx2-2"
44608
- })(["display:flex;align-items:center;justify-content:center;width:40px;height:32px;"]);
44628
+ })(["display:flex;align-items:center;justify-content:center;width:28px;height:24px;"]);
44609
44629
  var ColName = /*#__PURE__*/styled.div.withConfig({
44610
44630
  displayName: "BlueprintTable__ColName",
44611
44631
  componentId: "sc-1ysxhx2-3"
@@ -44613,11 +44633,11 @@ var ColName = /*#__PURE__*/styled.div.withConfig({
44613
44633
  var BlueprintName = /*#__PURE__*/styled.span.withConfig({
44614
44634
  displayName: "BlueprintTable__BlueprintName",
44615
44635
  componentId: "sc-1ysxhx2-4"
44616
- })(["font-size:0.5rem;color:#ddd;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"]);
44636
+ })(["font-size:0.6rem !important;color:#e5e7eb !important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"]);
44617
44637
  var BlueprintMeta = /*#__PURE__*/styled.span.withConfig({
44618
44638
  displayName: "BlueprintTable__BlueprintMeta",
44619
44639
  componentId: "sc-1ysxhx2-5"
44620
- })(["font-size:0.4rem;color:#666;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"]);
44640
+ })(["font-size:0.5rem !important;color:#f59e0b !important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"]);
44621
44641
  var ColType = /*#__PURE__*/styled.div.withConfig({
44622
44642
  displayName: "BlueprintTable__ColType",
44623
44643
  componentId: "sc-1ysxhx2-6"
@@ -44625,15 +44645,15 @@ var ColType = /*#__PURE__*/styled.div.withConfig({
44625
44645
  var TypeText = /*#__PURE__*/styled.span.withConfig({
44626
44646
  displayName: "BlueprintTable__TypeText",
44627
44647
  componentId: "sc-1ysxhx2-7"
44628
- })(["font-size:0.45rem;color:#aaa;"]);
44648
+ })(["font-size:0.52rem !important;color:#9ca3af !important;"]);
44629
44649
  var SubTypeText = /*#__PURE__*/styled.span.withConfig({
44630
44650
  displayName: "BlueprintTable__SubTypeText",
44631
44651
  componentId: "sc-1ysxhx2-8"
44632
- })(["font-size:0.4rem;color:#666;"]);
44652
+ })(["font-size:0.46rem !important;color:#f59e0b !important;"]);
44633
44653
  var ColTier = /*#__PURE__*/styled.div.withConfig({
44634
44654
  displayName: "BlueprintTable__ColTier",
44635
44655
  componentId: "sc-1ysxhx2-9"
44636
- })(["font-size:0.5rem;color:#f59e0b;text-align:center;"]);
44656
+ })(["font-size:0.6rem !important;color:#f59e0b !important;text-align:center;"]);
44637
44657
 
44638
44658
  var BLUEPRINTS_PER_PAGE = 10;
44639
44659
  var scaleIn = /*#__PURE__*/keyframes(["from{transform:scale(0.85);opacity:0;}to{transform:scale(1);opacity:1;}"]);
@@ -44685,6 +44705,9 @@ var BlueprintSearchModal = function BlueprintSearchModal(_ref) {
44685
44705
  var _useState3 = useState(''),
44686
44706
  selectedSubType = _useState3[0],
44687
44707
  setSelectedSubType = _useState3[1];
44708
+ var _useState4 = useState(false),
44709
+ showFilters = _useState4[0],
44710
+ setShowFilters = _useState4[1];
44688
44711
  var searchNameRef = useRef(searchName);
44689
44712
  var selectedTypeRef = useRef(selectedType);
44690
44713
  var selectedSubTypeRef = useRef(selectedSubType);
@@ -44761,7 +44784,19 @@ var BlueprintSearchModal = function BlueprintSearchModal(_ref) {
44761
44784
  placeholder: "Search by name...",
44762
44785
  onFocus: disableHotkeys,
44763
44786
  onBlur: enableHotkeys
44764
- })), React.createElement(FiltersRow, null, React.createElement(StyledDropdown$3, {
44787
+ }), React.createElement(FilterButton$1, {
44788
+ type: "button",
44789
+ "$active": showFilters,
44790
+ onPointerDown: function onPointerDown() {
44791
+ return setShowFilters(function (v) {
44792
+ return !v;
44793
+ });
44794
+ },
44795
+ "aria-label": "Toggle filters"
44796
+ }, React.createElement(SortVertical, {
44797
+ width: 16,
44798
+ height: 16
44799
+ }))), showFilters && React.createElement(FiltersRow, null, React.createElement(StyledDropdown$3, {
44765
44800
  key: "type-" + selectedType,
44766
44801
  options: typeOptions,
44767
44802
  onChange: handleTypeChange,
@@ -44778,12 +44813,13 @@ var BlueprintSearchModal = function BlueprintSearchModal(_ref) {
44778
44813
  atlasJSON: atlasJSON,
44779
44814
  atlasIMG: atlasIMG,
44780
44815
  onSelect: onSelect
44781
- })), isLoading && React.createElement(LoadingOverlay, null, React.createElement(LoadingText, null, "Loading..."))), React.createElement(PagerContainer$1, null, React.createElement(Pager, {
44816
+ })), isLoading && React.createElement(LoadingOverlay, null, React.createElement(LoadingText, null, "Loading..."))), React.createElement(Pager, {
44817
+ compact: true,
44782
44818
  totalItems: totalCount,
44783
44819
  currentPage: currentPage,
44784
44820
  itemsPerPage: BLUEPRINTS_PER_PAGE,
44785
44821
  onPageChange: handlePageChange
44786
- })))));
44822
+ }))));
44787
44823
  };
44788
44824
  var Overlay$4 = /*#__PURE__*/styled.div.withConfig({
44789
44825
  displayName: "BlueprintSearchModal__Overlay",
@@ -44796,7 +44832,7 @@ var ModalContainer$2 = /*#__PURE__*/styled.div.withConfig({
44796
44832
  var ModalContent$2 = /*#__PURE__*/styled.div.withConfig({
44797
44833
  displayName: "BlueprintSearchModal__ModalContent",
44798
44834
  componentId: "sc-i7bssq-2"
44799
- })(["background:#1a1a2e;border:2px solid #f59e0b;border-radius:8px;padding:20px 24px;width:600px;max-width:90%;display:flex;flex-direction:column;gap:12px;pointer-events:auto;animation:", " 0.15s ease-out;"], scaleIn);
44835
+ })(["background:#1a1a2e;border:2px solid #f59e0b;border-radius:8px;padding:20px 24px;width:600px;max-width:90%;max-height:90dvh;display:flex;flex-direction:column;gap:12px;overflow:hidden;pointer-events:auto;animation:", " 0.15s ease-out;@media (max-width:950px){max-width:96%;max-height:95dvh;min-height:75dvh;padding:14px 16px;gap:8px;}"], scaleIn);
44800
44836
  var Header$8 = /*#__PURE__*/styled.div.withConfig({
44801
44837
  displayName: "BlueprintSearchModal__Header",
44802
44838
  componentId: "sc-i7bssq-3"
@@ -44817,40 +44853,49 @@ var StyledInput$2 = /*#__PURE__*/styled(Input).withConfig({
44817
44853
  displayName: "BlueprintSearchModal__StyledInput",
44818
44854
  componentId: "sc-i7bssq-7"
44819
44855
  })(["flex:1;"]);
44856
+ var FilterButton$1 = /*#__PURE__*/styled.button.withConfig({
44857
+ displayName: "BlueprintSearchModal__FilterButton",
44858
+ componentId: "sc-i7bssq-8"
44859
+ })(["flex-shrink:0;width:28px;height:28px;border-radius:6px;border:1px solid ", ";background:", ";color:", ";cursor:pointer;display:flex;align-items:center;justify-content:center;transition:color 0.15s,border-color 0.15s,background 0.15s;&:hover{color:#f59e0b;border-color:rgba(245,158,11,0.45);}"], function (_ref2) {
44860
+ var $active = _ref2.$active;
44861
+ return $active ? 'rgba(245, 158, 11, 0.55)' : 'rgba(255, 255, 255, 0.08)';
44862
+ }, function (_ref3) {
44863
+ var $active = _ref3.$active;
44864
+ return $active ? 'rgba(245, 158, 11, 0.14)' : 'rgba(255, 255, 255, 0.03)';
44865
+ }, function (_ref4) {
44866
+ var $active = _ref4.$active;
44867
+ return $active ? '#f59e0b' : '#ccc';
44868
+ });
44820
44869
  var FiltersRow = /*#__PURE__*/styled.div.withConfig({
44821
44870
  displayName: "BlueprintSearchModal__FiltersRow",
44822
- componentId: "sc-i7bssq-8"
44871
+ componentId: "sc-i7bssq-9"
44823
44872
  })(["display:grid;grid-template-columns:1fr 1fr;gap:8px;"]);
44824
44873
  var StyledDropdown$3 = /*#__PURE__*/styled(Dropdown).withConfig({
44825
44874
  displayName: "BlueprintSearchModal__StyledDropdown",
44826
- componentId: "sc-i7bssq-9"
44875
+ componentId: "sc-i7bssq-10"
44827
44876
  })(["margin:0px !important;width:100% !important;"]);
44828
44877
  var ResultsWrapper = /*#__PURE__*/styled.div.withConfig({
44829
44878
  displayName: "BlueprintSearchModal__ResultsWrapper",
44830
- componentId: "sc-i7bssq-10"
44831
- })(["position:relative;overflow-y:auto;height:320px;background:rgba(0,0,0,0.2);border:1px solid rgba(255,255,255,0.05);border-radius:4px;"]);
44879
+ componentId: "sc-i7bssq-11"
44880
+ })(["position:relative;overflow-y:auto;flex:1;min-height:80px;display:flex;flex-direction:column;background:rgba(0,0,0,0.2);border:1px solid rgba(255,255,255,0.05);border-radius:4px;"]);
44832
44881
  var ResultsContent = /*#__PURE__*/styled.div.withConfig({
44833
44882
  displayName: "BlueprintSearchModal__ResultsContent",
44834
- componentId: "sc-i7bssq-11"
44883
+ componentId: "sc-i7bssq-12"
44835
44884
  })(["opacity:", ";transition:opacity 0.15s ease;"], function (p) {
44836
44885
  return p.$dimmed ? 0.4 : 1;
44837
44886
  });
44838
44887
  var LoadingOverlay = /*#__PURE__*/styled.div.withConfig({
44839
44888
  displayName: "BlueprintSearchModal__LoadingOverlay",
44840
- componentId: "sc-i7bssq-12"
44889
+ componentId: "sc-i7bssq-13"
44841
44890
  })(["position:absolute;inset:0;display:flex;align-items:center;justify-content:center;pointer-events:none;"]);
44842
44891
  var LoadingText = /*#__PURE__*/styled.span.withConfig({
44843
44892
  displayName: "BlueprintSearchModal__LoadingText",
44844
- componentId: "sc-i7bssq-13"
44893
+ componentId: "sc-i7bssq-14"
44845
44894
  })(["font-size:0.55rem;color:#f59e0b;text-transform:uppercase;letter-spacing:1px;"]);
44846
44895
  var EmptyState$2 = /*#__PURE__*/styled.div.withConfig({
44847
44896
  displayName: "BlueprintSearchModal__EmptyState",
44848
- componentId: "sc-i7bssq-14"
44849
- })(["display:flex;align-items:center;justify-content:center;height:100%;font-size:0.55rem;color:#666;text-transform:uppercase;letter-spacing:1px;"]);
44850
- var PagerContainer$1 = /*#__PURE__*/styled.div.withConfig({
44851
- displayName: "BlueprintSearchModal__PagerContainer",
44852
44897
  componentId: "sc-i7bssq-15"
44853
- })(["display:flex;justify-content:center;align-items:center;"]);
44898
+ })(["display:flex;align-items:center;justify-content:center;flex:1;font-size:0.55rem;color:#666;text-transform:uppercase;letter-spacing:1px;"]);
44854
44899
 
44855
44900
  var SegmentedToggle = function SegmentedToggle(_ref) {
44856
44901
  var options = _ref.options,
@@ -45061,6 +45106,58 @@ var CancelButton$1 = /*#__PURE__*/styled.button.withConfig({
45061
45106
  componentId: "sc-6bghe9-17"
45062
45107
  })(["flex:1;background:rgba(255,255,255,0.05);border:1px solid rgba(255,255,255,0.1);color:#ccc;border-radius:4px;padding:8px 12px;font-size:0.5rem;font-family:'Press Start 2P',cursive;cursor:pointer;text-transform:uppercase;letter-spacing:0.5px;transition:background 0.1s,border-color 0.1s;pointer-events:auto;&:hover{background:rgba(255,255,255,0.08);border-color:rgba(255,255,255,0.15);}"]);
45063
45108
 
45109
+ var GroupedRowContainer = function GroupedRowContainer(_ref) {
45110
+ var mainRow = _ref.mainRow,
45111
+ subRows = _ref.subRows,
45112
+ _ref$badgeLabel = _ref.badgeLabel,
45113
+ badgeLabel = _ref$badgeLabel === void 0 ? 'offers' : _ref$badgeLabel;
45114
+ var _useState = useState(false),
45115
+ expanded = _useState[0],
45116
+ setExpanded = _useState[1];
45117
+ var hasMultiple = subRows.length > 0;
45118
+ var totalCount = subRows.length + 1;
45119
+ return React.createElement(GroupWrapper, null, React.createElement(GroupHeader, {
45120
+ "$clickable": hasMultiple,
45121
+ onClick: hasMultiple ? function () {
45122
+ return setExpanded(function (e) {
45123
+ return !e;
45124
+ });
45125
+ } : undefined
45126
+ }, mainRow, hasMultiple && React.createElement(GroupMeta, null, React.createElement(OfferBadge, null, totalCount, " ", badgeLabel), React.createElement(Chevron, {
45127
+ "$expanded": expanded
45128
+ }, "\u25B8"))), expanded && React.createElement(SubRows, null, subRows));
45129
+ };
45130
+ var GroupWrapper = /*#__PURE__*/styled.div.withConfig({
45131
+ displayName: "GroupedRowContainer__GroupWrapper",
45132
+ componentId: "sc-12q03tq-0"
45133
+ })(["margin-bottom:2px;"]);
45134
+ var GroupHeader = /*#__PURE__*/styled.div.withConfig({
45135
+ displayName: "GroupedRowContainer__GroupHeader",
45136
+ componentId: "sc-12q03tq-1"
45137
+ })(["position:relative;cursor:", ";"], function (_ref2) {
45138
+ var $clickable = _ref2.$clickable;
45139
+ return $clickable ? 'pointer' : 'default';
45140
+ });
45141
+ var GroupMeta = /*#__PURE__*/styled.div.withConfig({
45142
+ displayName: "GroupedRowContainer__GroupMeta",
45143
+ componentId: "sc-12q03tq-2"
45144
+ })(["position:absolute;right:180px;top:50%;transform:translateY(-50%);display:flex;align-items:center;gap:6px;pointer-events:none;"]);
45145
+ var OfferBadge = /*#__PURE__*/styled.span.withConfig({
45146
+ displayName: "GroupedRowContainer__OfferBadge",
45147
+ componentId: "sc-12q03tq-3"
45148
+ })(["font-family:'Press Start 2P',cursive;font-size:0.5rem;color:rgba(255,255,255,0.5);background:rgba(255,255,255,0.08);padding:2px 6px;border-radius:8px;white-space:nowrap;"]);
45149
+ var Chevron = /*#__PURE__*/styled.span.withConfig({
45150
+ displayName: "GroupedRowContainer__Chevron",
45151
+ componentId: "sc-12q03tq-4"
45152
+ })(["display:inline-block;font-size:0.7rem;color:rgba(255,255,255,0.4);transition:transform 0.2s ease;transform:rotate(", ");"], function (_ref3) {
45153
+ var $expanded = _ref3.$expanded;
45154
+ return $expanded ? '90deg' : '0deg';
45155
+ });
45156
+ var SubRows = /*#__PURE__*/styled.div.withConfig({
45157
+ displayName: "GroupedRowContainer__SubRows",
45158
+ componentId: "sc-12q03tq-5"
45159
+ })(["margin-left:12px;padding-left:8px;border-left:2px solid rgba(245,158,11,0.25);> div > div{background:rgba(0,0,0,0.4);}"]);
45160
+
45064
45161
  var LabelPill = function LabelPill(_ref) {
45065
45162
  var children = _ref.children,
45066
45163
  _ref$background = _ref.background,
@@ -45321,19 +45418,18 @@ var BuyOrderRow = function BuyOrderRow(_ref) {
45321
45418
  background: "rgba(34, 197, 94, 0.16)",
45322
45419
  borderColor: "rgba(34, 197, 94, 0.4)",
45323
45420
  color: "#bbf7d0"
45324
- }, requestTagLabel), buyOrder.itemRarity && React.createElement(LabelPill, {
45325
- background: rarityGlow != null ? rarityGlow : 'rgba(255,255,255,0.1)',
45326
- borderColor: "rgba(255,255,255,0.08)",
45327
- color: "#fff"
45328
- }, buyOrder.itemRarity), isOwn && React.createElement(LabelPill, {
45421
+ }, requestTagLabel), isOwn && React.createElement(LabelPill, {
45329
45422
  background: STATUS_COLORS[buyOrder.status],
45330
45423
  borderColor: "transparent",
45331
45424
  color: "#fff"
45332
- }, formatStatusLabel(buyOrder.status)), timeRemaining && React.createElement(LabelPill, {
45425
+ }, formatStatusLabel(buyOrder.status)), timeRemaining && React.createElement(SimpleTooltip, {
45426
+ content: "Expires in",
45427
+ direction: "top"
45428
+ }, React.createElement(LabelPill, {
45333
45429
  background: "rgba(255,255,255,0.08)",
45334
45430
  borderColor: "rgba(255,255,255,0.08)",
45335
45431
  color: "#fff"
45336
- }, timeRemaining)))), isOwn && buyOrder.status === MarketplaceBuyOrderStatus.Active && onCancel && React.createElement(ActionSection, null, React.createElement(CTAButton, {
45432
+ }, timeRemaining))))), isOwn && buyOrder.status === MarketplaceBuyOrderStatus.Active && onCancel && React.createElement(ActionSection, null, React.createElement(CTAButton, {
45337
45433
  icon: React.createElement(Delete, {
45338
45434
  width: 18,
45339
45435
  height: 18
@@ -45355,6 +45451,33 @@ var BuyOrderRow = function BuyOrderRow(_ref) {
45355
45451
  }
45356
45452
  })));
45357
45453
  };
45454
+ var GroupedBuyOrderRow = function GroupedBuyOrderRow(_ref2) {
45455
+ var bestOrder = _ref2.bestOrder,
45456
+ otherOrders = _ref2.otherOrders,
45457
+ atlasJSON = _ref2.atlasJSON,
45458
+ atlasIMG = _ref2.atlasIMG,
45459
+ isOwn = _ref2.isOwn,
45460
+ onCancel = _ref2.onCancel,
45461
+ onFulfill = _ref2.onFulfill,
45462
+ showRequestTag = _ref2.showRequestTag;
45463
+ var makeRow = function makeRow(order) {
45464
+ return React.createElement(BuyOrderRow, {
45465
+ key: order._id,
45466
+ buyOrder: order,
45467
+ atlasJSON: atlasJSON,
45468
+ atlasIMG: atlasIMG,
45469
+ isOwn: isOwn,
45470
+ onCancel: onCancel,
45471
+ onFulfill: onFulfill,
45472
+ showRequestTag: showRequestTag
45473
+ });
45474
+ };
45475
+ return React.createElement(GroupedRowContainer, {
45476
+ mainRow: makeRow(bestOrder),
45477
+ subRows: otherOrders.map(makeRow),
45478
+ badgeLabel: "requests"
45479
+ });
45480
+ };
45358
45481
  // ── Styled components matching MarketplaceRows layout ──
45359
45482
  var RowWrapper = /*#__PURE__*/styled.div.withConfig({
45360
45483
  displayName: "BuyOrderRows__RowWrapper",
@@ -45371,8 +45494,8 @@ var SpriteContainer$3 = /*#__PURE__*/styled.div.withConfig({
45371
45494
  var RarityGlow = /*#__PURE__*/styled.div.withConfig({
45372
45495
  displayName: "BuyOrderRows__RarityGlow",
45373
45496
  componentId: "sc-zz5s5j-3"
45374
- })(["width:32px;height:32px;", ""], function (_ref2) {
45375
- var $color = _ref2.$color;
45497
+ })(["width:32px;height:32px;", ""], function (_ref3) {
45498
+ var $color = _ref3.$color;
45376
45499
  return $color ? "\n border-color: " + $color + ";\n box-shadow: 0 0 5px 8px " + $color + " inset, 0 0 8px 6px " + $color + ";\n " : '';
45377
45500
  });
45378
45501
  var SpritePlaceholder = /*#__PURE__*/styled.div.withConfig({
@@ -45742,6 +45865,15 @@ var ConfirmRow = /*#__PURE__*/styled.div.withConfig({
45742
45865
  componentId: "sc-86ottl-13"
45743
45866
  })(["display:flex;justify-content:center;margin-top:4px;"]);
45744
45867
 
45868
+ var ItemRowWrapper = /*#__PURE__*/styled.div.withConfig({
45869
+ displayName: "ItemRowWrapper",
45870
+ componentId: "sc-5g2skk-0"
45871
+ })(["display:flex;align-items:center;justify-content:space-between;padding:0.6rem 1rem;margin-bottom:4px;background:", ";border:1px solid rgba(255,255,255,0.05);border-radius:6px;border-left:4px solid ", ";transition:all 0.2s ease-in-out;&:hover{background:rgba(245,158,11,0.08);border-color:rgba(245,158,11,0.2);border-left-color:#f59e0b;box-shadow:0 4px 12px rgba(0,0,0,0.2);transform:translateY(-1px);}"], function (p) {
45872
+ return p.$isHighlighted ? 'rgba(255, 215, 0, 0.08)' : 'rgba(0, 0, 0, 0.25)';
45873
+ }, function (p) {
45874
+ return p.$isHighlighted ? '#ffd700' : 'transparent';
45875
+ });
45876
+
45745
45877
  var MarketplaceRows = function MarketplaceRows(_ref) {
45746
45878
  var atlasJSON = _ref.atlasJSON,
45747
45879
  atlasIMG = _ref.atlasIMG,
@@ -45757,7 +45889,7 @@ var MarketplaceRows = function MarketplaceRows(_ref) {
45757
45889
  var renderGems = function renderGems(item) {
45758
45890
  return item.attachedGems && onRenderGems(item);
45759
45891
  };
45760
- return React.createElement(MarketplaceWrapper, null, React.createElement(ItemSection$1, null, React.createElement(SpriteContainer$4, null, React.createElement(ItemInfoWrapper, {
45892
+ return React.createElement(ItemRowWrapper, null, React.createElement(ItemSection$1, null, React.createElement(SpriteContainer$4, null, React.createElement(ItemInfoWrapper, {
45761
45893
  item: item,
45762
45894
  atlasIMG: atlasIMG,
45763
45895
  atlasJSON: atlasJSON,
@@ -45829,31 +45961,7 @@ var GroupedMarketplaceRow = function GroupedMarketplaceRow(_ref2) {
45829
45961
  characterId = _ref2.characterId,
45830
45962
  onBuy = _ref2.onBuy,
45831
45963
  onDCCoinClick = _ref2.onDCCoinClick;
45832
- var _useState = useState(false),
45833
- expanded = _useState[0],
45834
- setExpanded = _useState[1];
45835
- var totalOffers = otherListings.length + 1;
45836
- var hasMultiple = otherListings.length > 0;
45837
- return React.createElement(GroupWrapper, null, React.createElement(GroupHeader, {
45838
- onClick: hasMultiple ? function () {
45839
- return setExpanded(!expanded);
45840
- } : undefined,
45841
- clickable: hasMultiple
45842
- }, React.createElement(MarketplaceRows, {
45843
- atlasIMG: atlasIMG,
45844
- atlasJSON: atlasJSON,
45845
- item: bestListing.item,
45846
- itemPrice: bestListing.price,
45847
- dcEquivalentPrice: dcToGoldSwapRate > 0 ? getDCEquivalentPrice(bestListing.price) : undefined,
45848
- equipmentSet: equipmentSet,
45849
- onMarketPlaceItemBuy: function onMarketPlaceItemBuy() {
45850
- return onBuy(bestListing._id);
45851
- },
45852
- onDCCoinClick: onDCCoinClick,
45853
- disabled: bestListing.owner === characterId
45854
- }), hasMultiple && React.createElement(GroupMeta, null, React.createElement(OfferBadge, null, totalOffers, " offers"), React.createElement(Chevron, {
45855
- expanded: expanded
45856
- }, "\u25B8"))), expanded && React.createElement(SubRows, null, otherListings.map(function (listing) {
45964
+ var makeRow = function makeRow(listing) {
45857
45965
  return React.createElement(MarketplaceRows, {
45858
45966
  key: listing._id,
45859
45967
  atlasIMG: atlasIMG,
@@ -45868,115 +45976,86 @@ var GroupedMarketplaceRow = function GroupedMarketplaceRow(_ref2) {
45868
45976
  onDCCoinClick: onDCCoinClick,
45869
45977
  disabled: listing.owner === characterId
45870
45978
  });
45871
- })));
45979
+ };
45980
+ return React.createElement(GroupedRowContainer, {
45981
+ mainRow: makeRow(bestListing),
45982
+ subRows: otherListings.map(makeRow),
45983
+ badgeLabel: "offers"
45984
+ });
45872
45985
  };
45873
- var GroupWrapper = /*#__PURE__*/styled.div.withConfig({
45874
- displayName: "MarketplaceRows__GroupWrapper",
45875
- componentId: "sc-wmpr1o-0"
45876
- })(["margin-bottom:2px;"]);
45877
- var GroupHeader = /*#__PURE__*/styled.div.withConfig({
45878
- displayName: "MarketplaceRows__GroupHeader",
45879
- componentId: "sc-wmpr1o-1"
45880
- })(["position:relative;cursor:", ";"], function (_ref3) {
45881
- var clickable = _ref3.clickable;
45882
- return clickable ? 'pointer' : 'default';
45883
- });
45884
- var GroupMeta = /*#__PURE__*/styled.div.withConfig({
45885
- displayName: "MarketplaceRows__GroupMeta",
45886
- componentId: "sc-wmpr1o-2"
45887
- })(["position:absolute;right:180px;top:50%;transform:translateY(-50%);display:flex;align-items:center;gap:6px;pointer-events:none;"]);
45888
- var OfferBadge = /*#__PURE__*/styled.span.withConfig({
45889
- displayName: "MarketplaceRows__OfferBadge",
45890
- componentId: "sc-wmpr1o-3"
45891
- })(["font-family:'Press Start 2P',cursive;font-size:0.5rem;color:rgba(255,255,255,0.5);background:rgba(255,255,255,0.08);padding:2px 6px;border-radius:8px;white-space:nowrap;"]);
45892
- var Chevron = /*#__PURE__*/styled.span.withConfig({
45893
- displayName: "MarketplaceRows__Chevron",
45894
- componentId: "sc-wmpr1o-4"
45895
- })(["display:inline-block;font-size:0.7rem;color:rgba(255,255,255,0.4);transition:transform 0.2s ease;transform:rotate(", ");"], function (_ref4) {
45896
- var expanded = _ref4.expanded;
45897
- return expanded ? '90deg' : '0deg';
45898
- });
45899
- var SubRows = /*#__PURE__*/styled.div.withConfig({
45900
- displayName: "MarketplaceRows__SubRows",
45901
- componentId: "sc-wmpr1o-5"
45902
- })(["margin-left:12px;padding-left:8px;border-left:2px solid rgba(245,158,11,0.25);> div > div{background:rgba(0,0,0,0.4);}"]);
45903
- var MarketplaceWrapper = /*#__PURE__*/styled.div.withConfig({
45904
- displayName: "MarketplaceRows__MarketplaceWrapper",
45905
- componentId: "sc-wmpr1o-6"
45906
- })(["display:flex;align-items:center;justify-content:space-between;padding:0.6rem 1rem;margin-bottom:4px;background:rgba(0,0,0,0.25);border:1px solid rgba(255,255,255,0.05);border-radius:6px;border-left:4px solid transparent;transition:all 0.2s ease-in-out;&:hover{background:rgba(245,158,11,0.08);border-color:rgba(245,158,11,0.2);border-left-color:#f59e0b;box-shadow:0 4px 12px rgba(0,0,0,0.2);transform:translateY(-1px);}"]);
45907
45986
  var ItemSection$1 = /*#__PURE__*/styled.div.withConfig({
45908
45987
  displayName: "MarketplaceRows__ItemSection",
45909
- componentId: "sc-wmpr1o-7"
45988
+ componentId: "sc-wmpr1o-0"
45910
45989
  })(["display:flex;align-items:center;gap:0.75rem;flex:1;min-width:0;"]);
45911
45990
  var SpriteContainer$4 = /*#__PURE__*/styled.div.withConfig({
45912
45991
  displayName: "MarketplaceRows__SpriteContainer",
45913
- componentId: "sc-wmpr1o-8"
45992
+ componentId: "sc-wmpr1o-1"
45914
45993
  })(["position:relative;flex-shrink:0;min-width:44px;"]);
45915
45994
  var ItemDetails$1 = /*#__PURE__*/styled.div.withConfig({
45916
45995
  displayName: "MarketplaceRows__ItemDetails",
45917
- componentId: "sc-wmpr1o-9"
45996
+ componentId: "sc-wmpr1o-2"
45918
45997
  })(["display:flex;flex-direction:column;gap:0.2rem;min-width:0;margin-left:1rem;"]);
45919
45998
  var ItemName$2 = /*#__PURE__*/styled.div.withConfig({
45920
45999
  displayName: "MarketplaceRows__ItemName",
45921
- componentId: "sc-wmpr1o-10"
46000
+ componentId: "sc-wmpr1o-3"
45922
46001
  })(["font-family:'Press Start 2P',cursive;font-size:0.65rem;color:#ffffff;"]);
45923
46002
  var PriceRow = /*#__PURE__*/styled.div.withConfig({
45924
46003
  displayName: "MarketplaceRows__PriceRow",
45925
- componentId: "sc-wmpr1o-11"
46004
+ componentId: "sc-wmpr1o-4"
45926
46005
  })(["display:flex;flex-direction:row;align-items:center;gap:0.5rem;margin-top:0.2rem;"]);
45927
46006
  var GoldPriceRow$1 = /*#__PURE__*/styled.div.withConfig({
45928
46007
  displayName: "MarketplaceRows__GoldPriceRow",
45929
- componentId: "sc-wmpr1o-12"
46008
+ componentId: "sc-wmpr1o-5"
45930
46009
  })(["display:flex;align-items:center;gap:0.3rem;"]);
45931
46010
  var GoldIcon$1 = /*#__PURE__*/styled.span.withConfig({
45932
46011
  displayName: "MarketplaceRows__GoldIcon",
45933
- componentId: "sc-wmpr1o-13"
46012
+ componentId: "sc-wmpr1o-6"
45934
46013
  })(["display:flex;align-items:center;justify-content:center;position:relative;top:-0.6rem;left:-0.5rem;"]);
45935
46014
  var GoldPrice$1 = /*#__PURE__*/styled.span.withConfig({
45936
46015
  displayName: "MarketplaceRows__GoldPrice",
45937
- componentId: "sc-wmpr1o-14"
46016
+ componentId: "sc-wmpr1o-7"
45938
46017
  })(["font-family:'Press Start 2P',cursive;font-size:0.6rem !important;color:#fef08a;line-height:1;"]);
45939
46018
  var DCPriceRow = /*#__PURE__*/styled.div.withConfig({
45940
46019
  displayName: "MarketplaceRows__DCPriceRow",
45941
- componentId: "sc-wmpr1o-15"
45942
- })(["display:flex;align-items:center;gap:0.3rem;margin-left:0.5rem;cursor:", ";border-radius:4px;transition:opacity 0.15s;&:hover{opacity:", ";}"], function (_ref5) {
45943
- var $clickable = _ref5.$clickable;
46020
+ componentId: "sc-wmpr1o-8"
46021
+ })(["display:flex;align-items:center;gap:0.3rem;margin-left:0.5rem;cursor:", ";border-radius:4px;transition:opacity 0.15s;&:hover{opacity:", ";}"], function (_ref3) {
46022
+ var $clickable = _ref3.$clickable;
45944
46023
  return $clickable ? 'pointer' : 'default';
45945
- }, function (_ref6) {
45946
- var $clickable = _ref6.$clickable;
46024
+ }, function (_ref4) {
46025
+ var $clickable = _ref4.$clickable;
45947
46026
  return $clickable ? '0.75' : '1';
45948
46027
  });
45949
46028
  var DCCoinWrapper = /*#__PURE__*/styled.span.withConfig({
45950
46029
  displayName: "MarketplaceRows__DCCoinWrapper",
45951
- componentId: "sc-wmpr1o-16"
46030
+ componentId: "sc-wmpr1o-9"
45952
46031
  })(["display:flex;align-items:center;justify-content:center;position:relative;top:-0.6rem;left:-0.5rem;"]);
45953
46032
  var DCPrice = /*#__PURE__*/styled.span.withConfig({
45954
46033
  displayName: "MarketplaceRows__DCPrice",
45955
- componentId: "sc-wmpr1o-17"
46034
+ componentId: "sc-wmpr1o-10"
45956
46035
  })(["font-family:'Press Start 2P',cursive;font-size:0.6rem !important;color:rgba(254,240,138,0.65);white-space:nowrap;"]);
45957
46036
  var ActionSection$1 = /*#__PURE__*/styled.div.withConfig({
45958
46037
  displayName: "MarketplaceRows__ActionSection",
45959
- componentId: "sc-wmpr1o-18"
46038
+ componentId: "sc-wmpr1o-11"
45960
46039
  })(["flex-shrink:0;margin-left:0.75rem;"]);
45961
46040
  var QuantityContainer = /*#__PURE__*/styled.p.withConfig({
45962
46041
  displayName: "MarketplaceRows__QuantityContainer",
45963
- componentId: "sc-wmpr1o-19"
46042
+ componentId: "sc-wmpr1o-12"
45964
46043
  })(["position:absolute;display:block;top:15px;left:-8px;font-size:", " !important;"], uiFonts.size.xsmall);
45965
46044
  var GemContainer = /*#__PURE__*/styled.p.withConfig({
45966
46045
  displayName: "MarketplaceRows__GemContainer",
45967
- componentId: "sc-wmpr1o-20"
46046
+ componentId: "sc-wmpr1o-13"
45968
46047
  })(["position:absolute;display:block;top:-5px;left:-10px;font-size:", " !important;"], uiFonts.size.xsmall);
45969
46048
  var RarityContainer$1 = /*#__PURE__*/styled.div.withConfig({
45970
46049
  displayName: "MarketplaceRows__RarityContainer",
45971
- componentId: "sc-wmpr1o-21"
45972
- })(["border-color:", ";box-shadow:", " inset,", ";width:32px;height:32px;"], function (_ref7) {
45973
- var item = _ref7.item;
46050
+ componentId: "sc-wmpr1o-14"
46051
+ })(["border-color:", ";box-shadow:", " inset,", ";width:32px;height:32px;"], function (_ref5) {
46052
+ var item = _ref5.item;
45974
46053
  return rarityColor(item);
45975
- }, function (_ref8) {
45976
- var item = _ref8.item;
46054
+ }, function (_ref6) {
46055
+ var item = _ref6.item;
45977
46056
  return "0 0 5px 8px " + rarityColor(item);
45978
- }, function (_ref9) {
45979
- var item = _ref9.item;
46057
+ }, function (_ref7) {
46058
+ var item = _ref7.item;
45980
46059
  return "0 0 8px 6px " + rarityColor(item);
45981
46060
  });
45982
46061
 
@@ -46145,9 +46224,34 @@ var BuyPanel = function BuyPanel(_ref) {
46145
46224
  return true;
46146
46225
  });
46147
46226
  }, [name, openBuyOrders, price, selectedRarity]);
46227
+ var groupedBuyOrders = useMemo(function () {
46228
+ var groups = new Map();
46229
+ for (var _iterator2 = _createForOfIteratorHelperLoose(visibleBuyOrders), _step2; !(_step2 = _iterator2()).done;) {
46230
+ var order = _step2.value;
46231
+ var key = order.itemBlueprintKey;
46232
+ if (!groups.has(key)) groups.set(key, []);
46233
+ groups.get(key).push(order);
46234
+ }
46235
+ return Array.from(groups.values()).map(function (group) {
46236
+ var sorted = [].concat(group).sort(function (a, b) {
46237
+ return b.maxPrice - a.maxPrice;
46238
+ });
46239
+ return {
46240
+ bestOrder: sorted[0],
46241
+ otherOrders: sorted.slice(1)
46242
+ };
46243
+ }).sort(function (a, b) {
46244
+ var totalGold = function totalGold(g) {
46245
+ return [g.bestOrder].concat(g.otherOrders).reduce(function (sum, o) {
46246
+ return sum + o.maxPrice;
46247
+ }, 0);
46248
+ };
46249
+ return totalGold(b) - totalGold(a);
46250
+ });
46251
+ }, [visibleBuyOrders]);
46148
46252
  var showSellSection = browseMode === 'sell';
46149
46253
  var showBuySection = browseMode === 'buy';
46150
- var hasVisibleContent = showSellSection && groupedItems.length > 0 || showBuySection && visibleBuyOrders.length > 0;
46254
+ var hasVisibleContent = showSellSection && groupedItems.length > 0 || showBuySection && groupedBuyOrders.length > 0;
46151
46255
  return React.createElement(React.Fragment, null, buyingItemId && buyingItem && hasDCBalance && React.createElement(MarketplaceBuyModal, {
46152
46256
  goldPrice: buyingItem.price,
46153
46257
  dcEquivalentPrice: getDCEquivalentPrice(buyingItem.price),
@@ -46198,7 +46302,7 @@ var BuyPanel = function BuyPanel(_ref) {
46198
46302
  onBlur: enableHotkeys,
46199
46303
  onFocus: disableHotkeys,
46200
46304
  className: "search-input"
46201
- })), React.createElement(FilterButton$1, {
46305
+ })), React.createElement(FilterButton$2, {
46202
46306
  type: "button",
46203
46307
  "$active": showFilters,
46204
46308
  onClick: function onClick() {
@@ -46210,7 +46314,9 @@ var BuyPanel = function BuyPanel(_ref) {
46210
46314
  height: 18
46211
46315
  }))), showFilters && React.createElement(OptionsWrapper, {
46212
46316
  showFilters: showFilters
46213
- }, React.createElement(WrapperContainer$1, null, React.createElement(StyledDropdown$5, {
46317
+ }, React.createElement(WrapperContainer$1, {
46318
+ "$sell": showSellSection
46319
+ }, showSellSection && React.createElement(StyledDropdown$5, {
46214
46320
  options: itemTypeOptions,
46215
46321
  onChange: onChangeType,
46216
46322
  width: "100%"
@@ -46221,11 +46327,11 @@ var BuyPanel = function BuyPanel(_ref) {
46221
46327
  onChangeRarity(value);
46222
46328
  },
46223
46329
  width: "100%"
46224
- }), React.createElement(StyledDropdown$5, {
46330
+ }), showSellSection && React.createElement(StyledDropdown$5, {
46225
46331
  options: orderByOptions,
46226
46332
  onChange: onChangeOrder,
46227
46333
  width: "100%"
46228
- })), React.createElement(FilterInputsWrapper, null, React.createElement("div", null, React.createElement("p", null, "Main level"), React.createElement("div", {
46334
+ })), React.createElement(FilterInputsWrapper, null, showSellSection && React.createElement("div", null, React.createElement("p", null, "Main level"), React.createElement("div", {
46229
46335
  className: "input-group"
46230
46336
  }, React.createElement(Input, {
46231
46337
  onChange: function onChange(e) {
@@ -46249,7 +46355,7 @@ var BuyPanel = function BuyPanel(_ref) {
46249
46355
  min: 0,
46250
46356
  onBlur: enableHotkeys,
46251
46357
  onFocus: disableHotkeys
46252
- }))), React.createElement("div", null, React.createElement("p", null, "Secondary level"), React.createElement("div", {
46358
+ }))), showSellSection && React.createElement("div", null, React.createElement("p", null, "Secondary level"), React.createElement("div", {
46253
46359
  className: "input-group"
46254
46360
  }, React.createElement(Input, {
46255
46361
  onChange: function onChange(e) {
@@ -46316,14 +46422,16 @@ var BuyPanel = function BuyPanel(_ref) {
46316
46422
  onBuy: setBuyingItemId,
46317
46423
  onDCCoinClick: onDCCoinClick
46318
46424
  });
46319
- })), showBuySection && React.createElement(MarketSection, null, React.createElement(SectionHeader, null, React.createElement(SectionTitle$2, null, "Buy Requests"), React.createElement(SectionMeta, null, visibleBuyOrders.length, " visible")), visibleBuyOrders.length === 0 ? React.createElement(SectionEmpty, null, "No public buy requests found.") : visibleBuyOrders.map(function (order) {
46320
- return React.createElement(BuyOrderRow, {
46321
- key: order._id,
46322
- buyOrder: order,
46425
+ })), showBuySection && React.createElement(MarketSection, null, React.createElement(SectionHeader, null, React.createElement(SectionTitle$2, null, "Buy Requests"), React.createElement(SectionMeta, null, groupedBuyOrders.length, " groups")), groupedBuyOrders.length === 0 ? React.createElement(SectionEmpty, null, "No public buy requests found.") : groupedBuyOrders.map(function (_ref3) {
46426
+ var bestOrder = _ref3.bestOrder,
46427
+ otherOrders = _ref3.otherOrders;
46428
+ return React.createElement(GroupedBuyOrderRow, {
46429
+ key: bestOrder._id,
46430
+ bestOrder: bestOrder,
46431
+ otherOrders: otherOrders,
46323
46432
  atlasJSON: atlasJSON,
46324
46433
  atlasIMG: atlasIMG,
46325
- onFulfill: setFulfillingBuyOrderId,
46326
- showRequestTag: true
46434
+ onFulfill: setFulfillingBuyOrderId
46327
46435
  });
46328
46436
  })))), React.createElement(PagerFooter, null, showSellSection && totalItems > itemsPerPage && React.createElement(Pager, {
46329
46437
  totalItems: totalItems,
@@ -46345,17 +46453,17 @@ var SearchField = /*#__PURE__*/styled.div.withConfig({
46345
46453
  displayName: "BuyPanel__SearchField",
46346
46454
  componentId: "sc-1si8t7i-1"
46347
46455
  })(["min-width:0;input.search-input{height:10px;width:100%;}"]);
46348
- var FilterButton$1 = /*#__PURE__*/styled.button.withConfig({
46456
+ var FilterButton$2 = /*#__PURE__*/styled.button.withConfig({
46349
46457
  displayName: "BuyPanel__FilterButton",
46350
46458
  componentId: "sc-1si8t7i-2"
46351
- })(["width:36px;height:36px;border-radius:8px;border:1px solid ", ";background:", ";color:", ";cursor:pointer;display:flex;align-items:center;justify-content:center;transition:color 0.15s,border-color 0.15s,background 0.15s;&:hover{color:#f59e0b;border-color:rgba(245,158,11,0.45);}"], function (_ref3) {
46352
- var $active = _ref3.$active;
46353
- return $active ? 'rgba(245, 158, 11, 0.55)' : 'rgba(255, 255, 255, 0.08)';
46354
- }, function (_ref4) {
46459
+ })(["width:36px;height:36px;border-radius:8px;border:1px solid ", ";background:", ";color:", ";cursor:pointer;display:flex;align-items:center;justify-content:center;transition:color 0.15s,border-color 0.15s,background 0.15s;&:hover{color:#f59e0b;border-color:rgba(245,158,11,0.45);}"], function (_ref4) {
46355
46460
  var $active = _ref4.$active;
46356
- return $active ? 'rgba(245, 158, 11, 0.14)' : 'rgba(255, 255, 255, 0.03)';
46461
+ return $active ? 'rgba(245, 158, 11, 0.55)' : 'rgba(255, 255, 255, 0.08)';
46357
46462
  }, function (_ref5) {
46358
46463
  var $active = _ref5.$active;
46464
+ return $active ? 'rgba(245, 158, 11, 0.14)' : 'rgba(255, 255, 255, 0.03)';
46465
+ }, function (_ref6) {
46466
+ var $active = _ref6.$active;
46359
46467
  return $active ? '#f59e0b' : '#ccc';
46360
46468
  });
46361
46469
  var BrowseModeRow = /*#__PURE__*/styled.div.withConfig({
@@ -46365,18 +46473,21 @@ var BrowseModeRow = /*#__PURE__*/styled.div.withConfig({
46365
46473
  var OptionsWrapper = /*#__PURE__*/styled.div.withConfig({
46366
46474
  displayName: "BuyPanel__OptionsWrapper",
46367
46475
  componentId: "sc-1si8t7i-4"
46368
- })(["width:95%;margin:0 auto;background:rgba(0,0,0,0.15);border-radius:4px;border:1px solid rgba(255,255,255,0.05);padding:10px;display:flex;flex-direction:column;gap:", ";"], function (_ref6) {
46369
- var showFilters = _ref6.showFilters;
46476
+ })(["width:95%;margin:0 auto;background:rgba(0,0,0,0.15);border-radius:4px;border:1px solid rgba(255,255,255,0.05);padding:10px;display:flex;flex-direction:column;gap:", ";"], function (_ref7) {
46477
+ var showFilters = _ref7.showFilters;
46370
46478
  return showFilters ? '15px' : '0';
46371
46479
  });
46372
46480
  var FilterInputsWrapper = /*#__PURE__*/styled.div.withConfig({
46373
46481
  displayName: "BuyPanel__FilterInputsWrapper",
46374
46482
  componentId: "sc-1si8t7i-5"
46375
- })(["display:grid;grid-template-columns:repeat(3,1fr);gap:15px;color:white;> div{display:flex;flex-direction:column;gap:5px;}p{margin:0;font-size:0.65rem;color:#aaa;text-transform:uppercase;letter-spacing:1px;}.input-group{display:flex;align-items:center;gap:5px;input{width:100%;height:10px;}}.separator-icon{flex-shrink:0;color:rgba(255,255,255,0.3);}"]);
46483
+ })(["display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:15px;color:white;> div{display:flex;flex-direction:column;gap:5px;}p{margin:0;font-size:0.65rem;color:#aaa;text-transform:uppercase;letter-spacing:1px;}.input-group{display:flex;align-items:center;gap:5px;input{width:100%;height:10px;}}.separator-icon{flex-shrink:0;color:rgba(255,255,255,0.3);}"]);
46376
46484
  var WrapperContainer$1 = /*#__PURE__*/styled.div.withConfig({
46377
46485
  displayName: "BuyPanel__WrapperContainer",
46378
46486
  componentId: "sc-1si8t7i-6"
46379
- })(["display:grid;grid-template-columns:1fr 1fr 1fr;gap:15px;.rpgui-content .rpgui-dropdown-imp-header{padding:0px 10px 0 !important;}"]);
46487
+ })(["display:grid;grid-template-columns:", ";gap:15px;.rpgui-content .rpgui-dropdown-imp-header{padding:0px 10px 0 !important;}"], function (_ref8) {
46488
+ var $sell = _ref8.$sell;
46489
+ return $sell ? 'repeat(3, 1fr)' : 'minmax(0, 200px)';
46490
+ });
46380
46491
  var ItemComponentScrollWrapper$1 = /*#__PURE__*/styled.div.withConfig({
46381
46492
  displayName: "BuyPanel__ItemComponentScrollWrapper",
46382
46493
  componentId: "sc-1si8t7i-7"
@@ -46518,7 +46629,7 @@ var HistoryPanel = function HistoryPanel(_ref) {
46518
46629
  }))), React.createElement(GoldAmount, {
46519
46630
  "$type": tx.type
46520
46631
  }, getGoldSign(tx.type), tx.goldAmount, "g"))));
46521
- })), React.createElement(PagerContainer$2, null, React.createElement(Pager, {
46632
+ })), React.createElement(PagerContainer$1, null, React.createElement(Pager, {
46522
46633
  totalItems: totalCount,
46523
46634
  currentPage: currentPage,
46524
46635
  itemsPerPage: itemsPerPage,
@@ -46626,7 +46737,7 @@ var EmptyState$4 = /*#__PURE__*/styled.div.withConfig({
46626
46737
  displayName: "HistoryPanel__EmptyState",
46627
46738
  componentId: "sc-74mioa-20"
46628
46739
  })(["display:flex;align-items:center;justify-content:center;height:45px;font-size:0.5rem;color:#555;text-transform:uppercase;letter-spacing:1px;background:rgba(0,0,0,0.15);border-radius:4px;"]);
46629
- var PagerContainer$2 = /*#__PURE__*/styled.div.withConfig({
46740
+ var PagerContainer$1 = /*#__PURE__*/styled.div.withConfig({
46630
46741
  displayName: "HistoryPanel__PagerContainer",
46631
46742
  componentId: "sc-74mioa-21"
46632
46743
  })(["display:flex;justify-content:center;margin-top:4px;"]);
@@ -47097,9 +47208,9 @@ var Marketplace = function Marketplace(props) {
47097
47208
  }), activeTab === 'wallet' && showWalletTab && walletProps && React.createElement(DCWalletContent, Object.assign({}, walletProps)), activeTab === 'settings' && React.createElement(MarketplaceSettingsPanel, {
47098
47209
  acceptedCurrency: acceptedCurrency,
47099
47210
  onAcceptedCurrencyChange: handleCurrencyChange
47100
- }), showSharedPager && React.createElement(PagerContainer$3, null, React.createElement(Pager, Object.assign({}, props))));
47211
+ }), showSharedPager && React.createElement(PagerContainer$2, null, React.createElement(Pager, Object.assign({}, props))));
47101
47212
  };
47102
- var PagerContainer$3 = /*#__PURE__*/styled.div.withConfig({
47213
+ var PagerContainer$2 = /*#__PURE__*/styled.div.withConfig({
47103
47214
  displayName: "Marketplace__PagerContainer",
47104
47215
  componentId: "sc-h904b1-0"
47105
47216
  })(["display:flex;justify-content:center;align-items:center;width:95%;margin:6px auto 0 auto;padding:4px 10px;"]);
@@ -70106,9 +70217,9 @@ var StoreItemRow = function StoreItemRow(_ref) {
70106
70217
  resetQuantity();
70107
70218
  }
70108
70219
  };
70109
- return React.createElement(ItemWrapper$1, {
70220
+ return React.createElement(ItemRowWrapper, {
70110
70221
  "$isHighlighted": ((_item$store = item.store) == null ? void 0 : _item$store.isHighlighted) || false
70111
- }, React.createElement(ItemIconContainer$2, null, React.createElement(SpriteFromAtlas, {
70222
+ }, React.createElement(LeftSection, null, React.createElement(ItemIconContainer$2, null, React.createElement(SpriteFromAtlas, {
70112
70223
  atlasJSON: atlasJSON,
70113
70224
  atlasIMG: atlasIMG,
70114
70225
  spriteKey: item.texturePath,
@@ -70116,7 +70227,7 @@ var StoreItemRow = function StoreItemRow(_ref) {
70116
70227
  height: 32,
70117
70228
  imgScale: 2,
70118
70229
  centered: true
70119
- })), React.createElement(ItemDetails$5, null, React.createElement(ItemName$6, null, item.name), React.createElement(ItemPrice$1, null, "$", item.price, item.dcPrice ? " \xB7 " + item.dcPrice.toLocaleString() + " DC" : ''), React.createElement(ItemDescription, null, item.description)), React.createElement(Controls$1, null, showTextInput ? React.createElement(TextInput, {
70230
+ })), React.createElement(ItemDetails$5, null, React.createElement(ItemName$6, null, item.name), React.createElement(ItemPrice$1, null, "$", item.price, item.dcPrice ? " \xB7 " + item.dcPrice.toLocaleString() + " DC" : ''), React.createElement(ItemDescription, null, item.description))), React.createElement(Controls$1, null, showTextInput ? React.createElement(TextInput, {
70120
70231
  type: "text",
70121
70232
  value: textInputValue,
70122
70233
  placeholder: textInputPlaceholder,
@@ -70147,14 +70258,10 @@ var StoreItemRow = function StoreItemRow(_ref) {
70147
70258
  disabled: !hasRequiredAccount
70148
70259
  })));
70149
70260
  };
70150
- var ItemWrapper$1 = /*#__PURE__*/styled.div.withConfig({
70151
- displayName: "StoreItemRow__ItemWrapper",
70261
+ var LeftSection = /*#__PURE__*/styled.div.withConfig({
70262
+ displayName: "StoreItemRow__LeftSection",
70152
70263
  componentId: "sc-ptotuo-0"
70153
- })(["display:flex;align-items:center;gap:0.75rem;padding:0.5rem 1rem;border-bottom:1px solid rgba(255,255,255,0.1);background:", ";border-left:", ";&:last-child{border-bottom:none;}"], function (props) {
70154
- return props.$isHighlighted ? 'rgba(255, 215, 0, 0.1)' : 'transparent';
70155
- }, function (props) {
70156
- return props.$isHighlighted ? '3px solid #ffd700' : '3px solid transparent';
70157
- });
70264
+ })(["display:flex;align-items:center;gap:0.75rem;flex:1;min-width:0;"]);
70158
70265
  var ItemIconContainer$2 = /*#__PURE__*/styled.div.withConfig({
70159
70266
  displayName: "StoreItemRow__ItemIconContainer",
70160
70267
  componentId: "sc-ptotuo-1"
@@ -70247,6 +70354,7 @@ var StoreItemsSection = function StoreItemsSection(_ref) {
70247
70354
  var _useStoreFiltering = useStoreFiltering(items),
70248
70355
  searchQuery = _useStoreFiltering.searchQuery,
70249
70356
  setSearchQuery = _useStoreFiltering.setSearchQuery,
70357
+ selectedCategory = _useStoreFiltering.selectedCategory,
70250
70358
  setSelectedCategory = _useStoreFiltering.setSelectedCategory,
70251
70359
  categoryOptions = _useStoreFiltering.categoryOptions,
70252
70360
  filteredItems = _useStoreFiltering.filteredItems;
@@ -70288,13 +70396,18 @@ var StoreItemsSection = function StoreItemsSection(_ref) {
70288
70396
  value: searchQuery,
70289
70397
  onChange: setSearchQuery,
70290
70398
  placeholder: "Search items..."
70291
- })), React.createElement(DropdownContainer$2, null, React.createElement(Dropdown, {
70292
- options: categoryOptions,
70293
- onChange: function onChange(value) {
70294
- return setSelectedCategory(value);
70295
- },
70296
- width: "100%"
70297
- }))), React.createElement(ScrollableContent, {
70399
+ })), React.createElement(SegmentedToggle, {
70400
+ options: categoryOptions.map(function (opt) {
70401
+ return {
70402
+ id: opt.value,
70403
+ label: opt.option
70404
+ };
70405
+ }),
70406
+ activeId: selectedCategory,
70407
+ onChange: function onChange(id) {
70408
+ return setSelectedCategory(id);
70409
+ }
70410
+ })), React.createElement(ScrollableContent, {
70298
70411
  items: filteredItems,
70299
70412
  renderItem: renderStoreItem,
70300
70413
  emptyMessage: "No items match your filters.",
@@ -70314,10 +70427,6 @@ var SearchBarContainer$1 = /*#__PURE__*/styled.div.withConfig({
70314
70427
  displayName: "StoreItemsSection__SearchBarContainer",
70315
70428
  componentId: "sc-l6f466-2"
70316
70429
  })(["flex:0.75;"]);
70317
- var DropdownContainer$2 = /*#__PURE__*/styled.div.withConfig({
70318
- displayName: "StoreItemsSection__DropdownContainer",
70319
- componentId: "sc-l6f466-3"
70320
- })(["flex:0.25;min-width:140px;"]);
70321
70430
 
70322
70431
  var usePackFiltering = function usePackFiltering(packs) {
70323
70432
  var _useState = useState(''),
@@ -70374,7 +70483,7 @@ var StorePacksSection = function StorePacksSection(_ref) {
70374
70483
  onClick: function onClick() {
70375
70484
  return onSelectPack == null ? void 0 : onSelectPack(pack);
70376
70485
  }
70377
- }, React.createElement(PackIconContainer, null, renderPackIcon(pack)), React.createElement(PackDetails, null, React.createElement(PackName, null, pack.title), React.createElement(PackPrice, null, "$", pack.priceUSD), pack.description && React.createElement(PackDescription, null, pack.description)), React.createElement(Controls$2, null, React.createElement(CTAButton, {
70486
+ }, React.createElement(LeftSection$1, null, React.createElement(PackIconContainer, null, renderPackIcon(pack)), React.createElement(PackDetails, null, React.createElement(PackName, null, pack.title), React.createElement(PackPrice, null, "$", pack.priceUSD), pack.description && React.createElement(PackDescription, null, pack.description))), React.createElement(Controls$2, null, React.createElement(CTAButton, {
70378
70487
  icon: React.createElement(FaCartPlus, null),
70379
70488
  label: "Add",
70380
70489
  onClick: function onClick(e) {
@@ -70396,33 +70505,37 @@ var StorePacksSection = function StorePacksSection(_ref) {
70396
70505
  maxHeight: "420px"
70397
70506
  });
70398
70507
  };
70399
- var PackRow = /*#__PURE__*/styled.div.withConfig({
70508
+ var PackRow = /*#__PURE__*/styled(ItemRowWrapper).withConfig({
70400
70509
  displayName: "StorePacksSection__PackRow",
70401
70510
  componentId: "sc-ulazq3-0"
70402
- })(["display:flex;align-items:center;gap:0.75rem;padding:0.5rem 1rem;border-bottom:1px solid rgba(255,255,255,0.1);cursor:pointer;&:last-child{border-bottom:none;}&:hover{background:rgba(255,255,255,0.04);}"]);
70511
+ })(["cursor:pointer;"]);
70512
+ var LeftSection$1 = /*#__PURE__*/styled.div.withConfig({
70513
+ displayName: "StorePacksSection__LeftSection",
70514
+ componentId: "sc-ulazq3-1"
70515
+ })(["display:flex;align-items:center;gap:0.75rem;flex:1;min-width:0;"]);
70403
70516
  var PackIconContainer = /*#__PURE__*/styled.div.withConfig({
70404
70517
  displayName: "StorePacksSection__PackIconContainer",
70405
- componentId: "sc-ulazq3-1"
70518
+ componentId: "sc-ulazq3-2"
70406
70519
  })(["width:40px;height:40px;flex-shrink:0;display:flex;align-items:center;justify-content:center;img{width:100%;height:100%;object-fit:cover;}"]);
70407
70520
  var PackDetails = /*#__PURE__*/styled.div.withConfig({
70408
70521
  displayName: "StorePacksSection__PackDetails",
70409
- componentId: "sc-ulazq3-2"
70522
+ componentId: "sc-ulazq3-3"
70410
70523
  })(["flex:1;display:flex;flex-direction:column;gap:0.25rem;min-width:0;"]);
70411
70524
  var PackName = /*#__PURE__*/styled.div.withConfig({
70412
70525
  displayName: "StorePacksSection__PackName",
70413
- componentId: "sc-ulazq3-3"
70526
+ componentId: "sc-ulazq3-4"
70414
70527
  })(["font-family:'Press Start 2P',cursive;font-size:0.75rem;color:#ffffff;"]);
70415
70528
  var PackPrice = /*#__PURE__*/styled.div.withConfig({
70416
70529
  displayName: "StorePacksSection__PackPrice",
70417
- componentId: "sc-ulazq3-4"
70530
+ componentId: "sc-ulazq3-5"
70418
70531
  })(["font-family:'Press Start 2P',cursive;font-size:0.625rem;color:#fef08a;"]);
70419
70532
  var PackDescription = /*#__PURE__*/styled.div.withConfig({
70420
70533
  displayName: "StorePacksSection__PackDescription",
70421
- componentId: "sc-ulazq3-5"
70534
+ componentId: "sc-ulazq3-6"
70422
70535
  })(["font-family:'Press Start 2P',cursive;font-size:0.625rem;color:rgba(255,255,255,0.7);line-height:1.4;"]);
70423
70536
  var Controls$2 = /*#__PURE__*/styled.div.withConfig({
70424
70537
  displayName: "StorePacksSection__Controls",
70425
- componentId: "sc-ulazq3-6"
70538
+ componentId: "sc-ulazq3-7"
70426
70539
  })(["display:flex;align-items:center;flex-shrink:0;"]);
70427
70540
 
70428
70541
  var StoreItemDetails = function StoreItemDetails(_ref) {
@@ -70495,6 +70608,7 @@ var Actions = /*#__PURE__*/styled.div.withConfig({
70495
70608
  })(["margin-top:auto;padding-top:1rem;border-top:1px solid rgba(255,255,255,0.1);"]);
70496
70609
 
70497
70610
  var Store = function Store(_ref) {
70611
+ var _tabsMap$activeTab;
70498
70612
  var items = _ref.items,
70499
70613
  _ref$packs = _ref.packs,
70500
70614
  packs = _ref$packs === void 0 ? [] : _ref$packs,
@@ -70632,6 +70746,10 @@ var Store = function Store(_ref) {
70632
70746
  premium: {
70633
70747
  id: 'premium',
70634
70748
  title: 'Premium',
70749
+ icon: React.createElement(Crown, {
70750
+ width: 18,
70751
+ height: 18
70752
+ }),
70635
70753
  content: React.createElement(StorePacksSection, {
70636
70754
  packs: packs.filter(function (pack) {
70637
70755
  return pack.priceUSD >= 9.99;
@@ -70645,6 +70763,10 @@ var Store = function Store(_ref) {
70645
70763
  packs: {
70646
70764
  id: 'packs',
70647
70765
  title: packsTabLabel,
70766
+ icon: React.createElement(Gift, {
70767
+ width: 18,
70768
+ height: 18
70769
+ }),
70648
70770
  content: customPacksContent != null ? customPacksContent : React.createElement(StorePacksSection, {
70649
70771
  packs: hidePremiumTab ? packs : packs.filter(function (pack) {
70650
70772
  return pack.priceUSD < 9.99;
@@ -70658,6 +70780,10 @@ var Store = function Store(_ref) {
70658
70780
  items: {
70659
70781
  id: 'items',
70660
70782
  title: 'Items',
70783
+ icon: React.createElement(Box, {
70784
+ width: 18,
70785
+ height: 18
70786
+ }),
70661
70787
  content: React.createElement(StoreItemsSection, {
70662
70788
  items: filteredItems.items,
70663
70789
  onAddToCart: handleAddToCart,
@@ -70670,12 +70796,13 @@ var Store = function Store(_ref) {
70670
70796
  wallet: {
70671
70797
  id: 'wallet',
70672
70798
  title: 'Wallet',
70799
+ icon: React.createElement(Wallet, {
70800
+ width: 18,
70801
+ height: 18
70802
+ }),
70673
70803
  content: customWalletContent != null ? customWalletContent : null
70674
70804
  }
70675
70805
  };
70676
- var tabs = availableTabIds.map(function (id) {
70677
- return tabsMap[id];
70678
- });
70679
70806
  return React.createElement(DraggableContainer, {
70680
70807
  title: "Store",
70681
70808
  onCloseButton: onClose,
@@ -70738,18 +70865,19 @@ var Store = function Store(_ref) {
70738
70865
  icon: React.createElement(FaShoppingCart, null),
70739
70866
  label: getTotalItems() + " items ($" + getTotalPrice().toFixed(2) + ")",
70740
70867
  onClick: openCart
70741
- }))), React.createElement(MainContent$1, null, React.createElement(InternalTabs, {
70742
- tabs: tabs,
70743
- activeTextColor: "#000000",
70744
- activeColor: "#fef08a",
70745
- inactiveColor: "#6b7280",
70746
- borderColor: "#f59e0b",
70747
- hoverColor: "#fef3c7",
70748
- activeTab: activeTab,
70868
+ }))), React.createElement(MainContent$1, null, React.createElement(Tabs, {
70869
+ options: availableTabIds.map(function (id) {
70870
+ return {
70871
+ id: id,
70872
+ label: tabsMap[id].title,
70873
+ icon: tabsMap[id].icon
70874
+ };
70875
+ }),
70876
+ activeTabId: activeTab,
70749
70877
  onTabChange: function onTabChange(tabId) {
70750
70878
  return setActiveTab(tabId);
70751
70879
  }
70752
- })), cartItems.length > 0 && React.createElement(Footer$2, null, React.createElement(CartSummary, null, React.createElement(CartInfo, null, React.createElement("span", null, "Items in cart:"), React.createElement("span", null, getTotalItems())), React.createElement(CartInfo, null, React.createElement("span", null, "Total:"), React.createElement("span", null, "$", getTotalPrice().toFixed(2)))), React.createElement(CTAButton, {
70880
+ }), React.createElement(TabContent, null, (_tabsMap$activeTab = tabsMap[activeTab]) == null ? void 0 : _tabsMap$activeTab.content)), cartItems.length > 0 && React.createElement(Footer$2, null, React.createElement(CartSummary, null, React.createElement(CartInfo, null, React.createElement("span", null, "Items in cart:"), React.createElement("span", null, getTotalItems())), React.createElement(CartInfo, null, React.createElement("span", null, "Total:"), React.createElement("span", null, "$", getTotalPrice().toFixed(2)))), React.createElement(CTAButton, {
70753
70881
  icon: React.createElement(FaShoppingCart, null),
70754
70882
  label: "Proceed to Checkout ($" + getTotalPrice().toFixed(2) + ")",
70755
70883
  onClick: openCart,
@@ -70775,26 +70903,30 @@ var CartButton = /*#__PURE__*/styled.div.withConfig({
70775
70903
  var MainContent$1 = /*#__PURE__*/styled.div.withConfig({
70776
70904
  displayName: "Store__MainContent",
70777
70905
  componentId: "sc-64dj00-4"
70778
- })(["flex:1;display:flex;flex-direction:column;min-height:0;overflow:hidden;.rpgui-tabs-content{flex:1;overflow-y:auto;padding-right:0.5rem;}"]);
70906
+ })(["flex:1;display:flex;flex-direction:column;min-height:0;overflow:hidden;"]);
70907
+ var TabContent = /*#__PURE__*/styled.div.withConfig({
70908
+ displayName: "Store__TabContent",
70909
+ componentId: "sc-64dj00-5"
70910
+ })(["flex:1;overflow-y:auto;padding-right:0.5rem;"]);
70779
70911
  var Footer$2 = /*#__PURE__*/styled.div.withConfig({
70780
70912
  displayName: "Store__Footer",
70781
- componentId: "sc-64dj00-5"
70913
+ componentId: "sc-64dj00-6"
70782
70914
  })(["display:flex;flex-direction:column;gap:1rem;padding:1rem;border-top:2px solid #f59e0b;background:rgba(0,0,0,0.2);flex-shrink:0;"]);
70783
70915
  var CartSummary = /*#__PURE__*/styled.div.withConfig({
70784
70916
  displayName: "Store__CartSummary",
70785
- componentId: "sc-64dj00-6"
70917
+ componentId: "sc-64dj00-7"
70786
70918
  })(["display:flex;flex-direction:column;gap:0.5rem;"]);
70787
70919
  var CartInfo = /*#__PURE__*/styled.div.withConfig({
70788
70920
  displayName: "Store__CartInfo",
70789
- componentId: "sc-64dj00-7"
70921
+ componentId: "sc-64dj00-8"
70790
70922
  })(["display:flex;align-items:center;gap:0.75rem;font-family:'Press Start 2P',cursive;font-size:0.75rem;color:#ffffff;span:last-child{color:#fef08a;}"]);
70791
70923
  var LoadingMessage$1 = /*#__PURE__*/styled.div.withConfig({
70792
70924
  displayName: "Store__LoadingMessage",
70793
- componentId: "sc-64dj00-8"
70925
+ componentId: "sc-64dj00-9"
70794
70926
  })(["text-align:center;color:", ";padding:2rem;"], uiColors.white);
70795
70927
  var ErrorMessage$3 = /*#__PURE__*/styled.div.withConfig({
70796
70928
  displayName: "Store__ErrorMessage",
70797
- componentId: "sc-64dj00-9"
70929
+ componentId: "sc-64dj00-10"
70798
70930
  })(["text-align:center;color:", ";padding:2rem;"], uiColors.red);
70799
70931
 
70800
70932
  var PaymentMethodModal = function PaymentMethodModal(_ref) {
@@ -71086,7 +71218,7 @@ var TradingItemRow = function TradingItemRow(_ref) {
71086
71218
  }
71087
71219
  return null;
71088
71220
  };
71089
- return React.createElement(ItemWrapper$2, null, React.createElement(ItemIconContainer$3, null, React.createElement(SpriteContainer$6, null, React.createElement(ItemInfoWrapper, {
71221
+ return React.createElement(ItemWrapper$1, null, React.createElement(ItemIconContainer$3, null, React.createElement(SpriteContainer$6, null, React.createElement(ItemInfoWrapper, {
71090
71222
  atlasIMG: atlasIMG,
71091
71223
  atlasJSON: atlasJSON,
71092
71224
  equipmentSet: equipmentSet,
@@ -71146,7 +71278,7 @@ var StyledArrow = /*#__PURE__*/styled(SelectArrow).withConfig({
71146
71278
  displayName: "TradingItemRow__StyledArrow",
71147
71279
  componentId: "sc-mja0b5-0"
71148
71280
  })(["margin:0 1.5rem;"]);
71149
- var ItemWrapper$2 = /*#__PURE__*/styled.div.withConfig({
71281
+ var ItemWrapper$1 = /*#__PURE__*/styled.div.withConfig({
71150
71282
  displayName: "TradingItemRow__ItemWrapper",
71151
71283
  componentId: "sc-mja0b5-1"
71152
71284
  })(["width:100%;display:flex;justify-content:space-between;margin-bottom:0.5rem;padding:0.25rem;&:hover{background-color:", ";}"], uiColors.darkGray);
@@ -71468,5 +71600,5 @@ var LessonContainer = /*#__PURE__*/styled.div.withConfig({
71468
71600
  componentId: "sc-7tgzv2-6"
71469
71601
  })(["display:flex;flex-direction:column;justify-content:space-between;min-height:200px;p{font-size:0.7rem !important;}"]);
71470
71602
 
71471
- export { ActionButtons, AsyncDropdown, BLUEPRINTS_PER_PAGE, BUY_ORDERS_PER_PAGE, BlueprintSearchModal, Button, ButtonTypes, BuyOrderPanel, BuyOrderRow, CTAButton, CartView, CharacterSelection, CharacterSkinSelectionModal, Chat, ChatDeprecated, ChatRevamp, CheckButton, CheckItem, CircularController, CraftBook, DCWalletContent, DCWalletModal, DailyTasks, DraggableContainer, Dropdown, DropdownSelectorContainer, DynamicText, EquipmentSet, EquipmentSlotSpriteByType, ErrorBoundary, FriendList, GemSelector, GroupedMarketplaceRow, HISTORY_ITEMS_PER_PAGE, HistoryDialog, HistoryPanel, ImageCarousel, ImgSide, InformationCenter, Input, InputRadio, InternalTabs, ItemContainer$1 as ItemContainer, ItemPropertySimpleHandler, ItemQuantitySelectorModal, ItemSelector, ItemSlot, JoystickDPad, Leaderboard, ListMenu, LoginStreakPanel, Marketplace, MarketplaceBuyModal, MarketplaceRows, MarketplaceSettingsPanel, MetadataCollector, MultitabType, NPCDialog, NPCDialogType, NPCMultiDialog, PartyCreate, PartyDashboard, PartyInvite, PartyManager, PartyManagerRow, PartyRow, PaymentMethodModal, PlayersRow, ProgressBar$1 as ProgressBar, PropertySelect, QuantitySelectorModal, QuestInfo, QuestList, QuestionDialog, RPGUIContainer, RPGUIContainerTypes, RPGUIRoot, RangeSlider, RangeSliderType, SelectArrow, Shortcuts, SimpleImageCarousel, SkillProgressBar, SkillsContainer, SocialModal, Spellbook, SpriteFromAtlas, Stepper, Store, TRANSACTION_TYPE_FILTER_ALL, TabBody, Table, TableCell, TableHeader, TableRow, TabsContainer$1 as TabsContainer, TextArea, TimeWidget, Tooltip, TradingMenu, Truncate, TutorialStepper, UserActionLink, _RPGUI, formatQuestStatus, formatQuestText, getMockedPlayersRowsLeader, getMockedPlayersRowsNotLeader, getQuestStatusColor, mockedPartyManager, mockedPartyRows, mockedPlayersRows, mockedPlayersRows2, useEventListener, useStoreCart };
71603
+ export { ActionButtons, AsyncDropdown, BLUEPRINTS_PER_PAGE, BUY_ORDERS_PER_PAGE, BlueprintSearchModal, Button, ButtonTypes, BuyOrderPanel, BuyOrderRow, CTAButton, CartView, CharacterSelection, CharacterSkinSelectionModal, Chat, ChatDeprecated, ChatRevamp, CheckButton, CheckItem, CircularController, CraftBook, DCWalletContent, DCWalletModal, DailyTasks, DraggableContainer, Dropdown, DropdownSelectorContainer, DynamicText, EquipmentSet, EquipmentSlotSpriteByType, ErrorBoundary, FriendList, GemSelector, GroupedBuyOrderRow, GroupedMarketplaceRow, HISTORY_ITEMS_PER_PAGE, HistoryDialog, HistoryPanel, ImageCarousel, ImgSide, InformationCenter, Input, InputRadio, InternalTabs, ItemContainer$1 as ItemContainer, ItemPropertySimpleHandler, ItemQuantitySelectorModal, ItemSelector, ItemSlot, JoystickDPad, Leaderboard, ListMenu, LoginStreakPanel, Marketplace, MarketplaceBuyModal, MarketplaceRows, MarketplaceSettingsPanel, MetadataCollector, MultitabType, NPCDialog, NPCDialogType, NPCMultiDialog, PartyCreate, PartyDashboard, PartyInvite, PartyManager, PartyManagerRow, PartyRow, PaymentMethodModal, PlayersRow, ProgressBar$1 as ProgressBar, PropertySelect, QuantitySelectorModal, QuestInfo, QuestList, QuestionDialog, RPGUIContainer, RPGUIContainerTypes, RPGUIRoot, RangeSlider, RangeSliderType, SelectArrow, Shortcuts, SimpleImageCarousel, SkillProgressBar, SkillsContainer, SocialModal, Spellbook, SpriteFromAtlas, Stepper, Store, TRANSACTION_TYPE_FILTER_ALL, TabBody, Table, TableCell, TableHeader, TableRow, TabsContainer$1 as TabsContainer, TextArea, TimeWidget, Tooltip, TradingMenu, Truncate, TutorialStepper, UserActionLink, _RPGUI, formatQuestStatus, formatQuestText, getMockedPlayersRowsLeader, getMockedPlayersRowsNotLeader, getQuestStatusColor, mockedPartyManager, mockedPartyRows, mockedPlayersRows, mockedPlayersRows2, useEventListener, useStoreCart };
71472
71604
  //# sourceMappingURL=long-bow.esm.js.map