@rpg-engine/long-bow 0.8.35 → 0.8.37

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.
@@ -27525,175 +27525,6 @@ function useTouchTarget() {
27525
27525
  return getTouchTarget;
27526
27526
  }
27527
27527
 
27528
- var rarityColor = function rarityColor(item) {
27529
- switch (item == null ? void 0 : item.rarity) {
27530
- case shared.ItemRarities.Uncommon:
27531
- return 'rgba(13, 193, 13, 0.6)';
27532
- case shared.ItemRarities.Rare:
27533
- return 'rgba(8, 104, 187, 0.6)';
27534
- case shared.ItemRarities.Epic:
27535
- return 'rgba(191, 0, 255, 0.6)';
27536
- case shared.ItemRarities.Legendary:
27537
- return 'rgba(255, 191, 0,0.6)';
27538
- default:
27539
- return null;
27540
- }
27541
- };
27542
-
27543
- var gemColors = {
27544
- 'emerald-gem': '#50C878',
27545
- 'topaz-radiance': '#FFC87C',
27546
- 'sapphire-gem': '#0F52BA',
27547
- 'ruby-gem': '#E0115F',
27548
- 'misty-quartz-gem': '#D9D9F3',
27549
- 'coral-reef-gem': '#FF7F50',
27550
- 'jasper-gem': '#D73B3E',
27551
- 'earthstone-gem': '#8B4513',
27552
- 'obsidian-gem': '#0B0C0E',
27553
- 'amethyst-gem': '#9966CC'
27554
- };
27555
- var defaultColor = '#FFFFFF'; // Default color (white)
27556
- var onRenderGems = function onRenderGems(item) {
27557
- var _item$attachedGems;
27558
- var gemQty = ((_item$attachedGems = item.attachedGems) == null ? void 0 : _item$attachedGems.length) || 0;
27559
- if (gemQty > 0) {
27560
- return React__default.createElement(ItemSlotQty, {
27561
- item: item
27562
- });
27563
- }
27564
- return undefined;
27565
- };
27566
- var ItemSlotQty = function ItemSlotQty(_ref) {
27567
- var _item$attachedGems2;
27568
- var item = _ref.item;
27569
- var itemId = item._id;
27570
- return React__default.createElement(ItemQtyContainer, {
27571
- key: "qty-" + itemId,
27572
- className: "item-slot-qty"
27573
- }, (_item$attachedGems2 = item.attachedGems) == null ? void 0 : _item$attachedGems2.map(function (gem, index) {
27574
- return React__default.createElement(Gem, {
27575
- key: itemId + "-gem-" + index,
27576
- color: gemColors[gem.key] || defaultColor
27577
- });
27578
- }));
27579
- };
27580
- var ItemQtyContainer = /*#__PURE__*/styled__default.div.withConfig({
27581
- displayName: "ItemGem__ItemQtyContainer",
27582
- componentId: "sc-1ekseaq-0"
27583
- })(["position:relative;width:85%;height:16px;top:28px;left:0px;pointer-events:none;transform:scale(0.8);display:flex;align-items:center;justify-content:flex-start;opacity:0.8;"]);
27584
- var Gem = /*#__PURE__*/styled__default.div.withConfig({
27585
- displayName: "ItemGem__Gem",
27586
- componentId: "sc-1ekseaq-1"
27587
- })(["width:8px;height:8px;background:", ";border:1px solid black;transform:rotate(45deg);margin:0 2px;box-shadow:0 0 5px ", ";transition:transform 0.2s,box-shadow 0.2s;&:hover{transform:rotate(45deg) scale(1.2);box-shadow:0 0 10px ", ";}"], function (_ref2) {
27588
- var color = _ref2.color;
27589
- return "radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.8), transparent 30%), \n linear-gradient(45deg, " + color + ", " + color + " 50%, rgba(255, 255, 255, 0.2))";
27590
- }, function (_ref3) {
27591
- var color = _ref3.color;
27592
- return color;
27593
- }, function (_ref4) {
27594
- var color = _ref4.color;
27595
- return color;
27596
- });
27597
-
27598
- var onRenderStackInfo = function onRenderStackInfo(itemId, stackQty) {
27599
- var isFractionalStackQty = stackQty % 1 !== 0;
27600
- var isLargerThan999 = stackQty > 999;
27601
- var qtyClassName = 'regular';
27602
- if (isLargerThan999) qtyClassName = 'small';
27603
- if (isFractionalStackQty) qtyClassName = 'xsmall';
27604
- if (stackQty > 1) {
27605
- return React__default.createElement(ItemSlotQty$1, {
27606
- itemId: itemId,
27607
- stackQty: stackQty,
27608
- qtyClassName: qtyClassName
27609
- });
27610
- }
27611
- return undefined;
27612
- };
27613
- var ItemSlotQty$1 = function ItemSlotQty(_ref) {
27614
- var itemId = _ref.itemId,
27615
- stackQty = _ref.stackQty,
27616
- qtyClassName = _ref.qtyClassName;
27617
- return React__default.createElement(ItemQtyContainer$1, {
27618
- key: "qty-" + itemId,
27619
- className: "item-slot-qty"
27620
- }, React__default.createElement(Ellipsis, {
27621
- maxLines: 1,
27622
- maxWidth: "48px"
27623
- }, React__default.createElement(ItemQty, {
27624
- className: qtyClassName
27625
- }, Math.round(stackQty * 100) / 100, ' ')));
27626
- };
27627
- var ItemQtyContainer$1 = /*#__PURE__*/styled__default.div.withConfig({
27628
- displayName: "ItemSlotQty__ItemQtyContainer",
27629
- componentId: "sc-keb1s5-0"
27630
- })(["position:relative;width:85%;height:16px;top:25px;left:2px;pointer-events:none;display:flex;justify-content:flex-end;"]);
27631
- var ItemQty = /*#__PURE__*/styled__default.span.withConfig({
27632
- displayName: "ItemSlotQty__ItemQty",
27633
- componentId: "sc-keb1s5-1"
27634
- })(["&.regular{font-size:", ";}&.small{font-size:", ";}&.xsmall{font-size:", ";}"], uiFonts.size.small, uiFonts.size.xsmall, uiFonts.size.xxsmall);
27635
-
27636
- var ItemSlotRenderer = function ItemSlotRenderer(_ref) {
27637
- var containerType = _ref.containerType,
27638
- atlasJSON = _ref.atlasJSON,
27639
- atlasIMG = _ref.atlasIMG,
27640
- slotSpriteMask = _ref.slotSpriteMask,
27641
- item = _ref.item;
27642
- var renderStackInfo = function renderStackInfo(item) {
27643
- return item.stackQty && item.stackQty > 1 && onRenderStackInfo(item._id, item.stackQty);
27644
- };
27645
- var renderGems = function renderGems(item) {
27646
- return item.attachedGems && onRenderGems(item);
27647
- };
27648
- var renderItem = function renderItem(item) {
27649
- if (!(item != null && item.texturePath)) {
27650
- return null;
27651
- }
27652
- return React__default.createElement(ErrorBoundary, {
27653
- key: item._id
27654
- }, React__default.createElement(SpriteFromAtlas, {
27655
- atlasIMG: atlasIMG,
27656
- atlasJSON: atlasJSON,
27657
- spriteKey: shared.getItemTextureKeyPath({
27658
- key: item.texturePath,
27659
- texturePath: item.texturePath,
27660
- stackQty: item.stackQty || 1,
27661
- isStackable: item.isStackable
27662
- }, atlasJSON),
27663
- imgScale: 3,
27664
- imgClassname: "sprite-from-atlas-img--item",
27665
- tintColor: item.tintColor
27666
- }), renderStackInfo(item), renderGems(item));
27667
- };
27668
- var renderEquipment = function renderEquipment(itemToRender) {
27669
- var _itemToRender$allowed;
27670
- if (!(itemToRender != null && itemToRender.texturePath) || !((_itemToRender$allowed = itemToRender.allowedEquipSlotType) != null && _itemToRender$allowed.includes(slotSpriteMask))) {
27671
- return React__default.createElement(ErrorBoundary, {
27672
- key: uuid.v4()
27673
- }, React__default.createElement(SpriteFromAtlas, {
27674
- key: uuid.v4(),
27675
- atlasIMG: atlasIMG,
27676
- atlasJSON: atlasJSON,
27677
- spriteKey: EquipmentSlotSpriteByType[slotSpriteMask],
27678
- imgScale: 3,
27679
- grayScale: true,
27680
- opacity: 0.4,
27681
- imgClassname: "sprite-from-atlas-img--item"
27682
- }));
27683
- }
27684
- return renderItem(itemToRender);
27685
- };
27686
- var onRenderSlot = function onRenderSlot(itemToRender) {
27687
- switch (containerType) {
27688
- case shared.ItemContainerType.Equipment:
27689
- return renderEquipment(itemToRender);
27690
- default:
27691
- return renderItem(itemToRender);
27692
- }
27693
- };
27694
- return React__default.createElement(React__default.Fragment, null, onRenderSlot(item));
27695
- };
27696
-
27697
27528
  var generateContextMenuListOptions = function generateContextMenuListOptions(actionsByTypeList) {
27698
27529
  var contextMenu = actionsByTypeList.map(function (action) {
27699
27530
  return {
@@ -27955,6 +27786,194 @@ var ItemSlotDraggingProvider = function ItemSlotDraggingProvider(_ref) {
27955
27786
  }, children);
27956
27787
  };
27957
27788
 
27789
+ var qualityColorHex = function qualityColorHex(item) {
27790
+ switch (item == null ? void 0 : item.quality) {
27791
+ case shared.ItemQualityLevel.HighQuality:
27792
+ return '#00bfff';
27793
+ case shared.ItemQualityLevel.Exceptional:
27794
+ return '#ff8c00';
27795
+ case shared.ItemQualityLevel.Mastercrafted:
27796
+ return '#ff00ff';
27797
+ case shared.ItemQualityLevel.Ancient:
27798
+ return '#ffd700';
27799
+ case shared.ItemQualityLevel.Mythic:
27800
+ return '#ff0080';
27801
+ default:
27802
+ return 'transparent';
27803
+ }
27804
+ };
27805
+
27806
+ var rarityColor = function rarityColor(item) {
27807
+ switch (item == null ? void 0 : item.rarity) {
27808
+ case shared.ItemRarities.Uncommon:
27809
+ return 'rgba(13, 193, 13, 0.6)';
27810
+ case shared.ItemRarities.Rare:
27811
+ return 'rgba(8, 104, 187, 0.6)';
27812
+ case shared.ItemRarities.Epic:
27813
+ return 'rgba(191, 0, 255, 0.6)';
27814
+ case shared.ItemRarities.Legendary:
27815
+ return 'rgba(255, 191, 0,0.6)';
27816
+ default:
27817
+ return null;
27818
+ }
27819
+ };
27820
+
27821
+ var gemColors = {
27822
+ 'emerald-gem': '#50C878',
27823
+ 'topaz-radiance': '#FFC87C',
27824
+ 'sapphire-gem': '#0F52BA',
27825
+ 'ruby-gem': '#E0115F',
27826
+ 'misty-quartz-gem': '#D9D9F3',
27827
+ 'coral-reef-gem': '#FF7F50',
27828
+ 'jasper-gem': '#D73B3E',
27829
+ 'earthstone-gem': '#8B4513',
27830
+ 'obsidian-gem': '#0B0C0E',
27831
+ 'amethyst-gem': '#9966CC'
27832
+ };
27833
+ var defaultColor = '#FFFFFF'; // Default color (white)
27834
+ var onRenderGems = function onRenderGems(item) {
27835
+ var _item$attachedGems;
27836
+ var gemQty = ((_item$attachedGems = item.attachedGems) == null ? void 0 : _item$attachedGems.length) || 0;
27837
+ if (gemQty > 0) {
27838
+ return React__default.createElement(ItemSlotQty, {
27839
+ item: item
27840
+ });
27841
+ }
27842
+ return undefined;
27843
+ };
27844
+ var ItemSlotQty = function ItemSlotQty(_ref) {
27845
+ var _item$attachedGems2;
27846
+ var item = _ref.item;
27847
+ var itemId = item._id;
27848
+ return React__default.createElement(ItemQtyContainer, {
27849
+ key: "qty-" + itemId,
27850
+ className: "item-slot-qty"
27851
+ }, (_item$attachedGems2 = item.attachedGems) == null ? void 0 : _item$attachedGems2.map(function (gem, index) {
27852
+ return React__default.createElement(Gem, {
27853
+ key: itemId + "-gem-" + index,
27854
+ color: gemColors[gem.key] || defaultColor
27855
+ });
27856
+ }));
27857
+ };
27858
+ var ItemQtyContainer = /*#__PURE__*/styled__default.div.withConfig({
27859
+ displayName: "ItemGem__ItemQtyContainer",
27860
+ componentId: "sc-1ekseaq-0"
27861
+ })(["position:relative;width:85%;height:16px;top:28px;left:0px;pointer-events:none;transform:scale(0.8);display:flex;align-items:center;justify-content:flex-start;opacity:0.8;"]);
27862
+ var Gem = /*#__PURE__*/styled__default.div.withConfig({
27863
+ displayName: "ItemGem__Gem",
27864
+ componentId: "sc-1ekseaq-1"
27865
+ })(["width:8px;height:8px;background:", ";border:1px solid black;transform:rotate(45deg);margin:0 2px;box-shadow:0 0 5px ", ";transition:transform 0.2s,box-shadow 0.2s;&:hover{transform:rotate(45deg) scale(1.2);box-shadow:0 0 10px ", ";}"], function (_ref2) {
27866
+ var color = _ref2.color;
27867
+ return "radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.8), transparent 30%), \n linear-gradient(45deg, " + color + ", " + color + " 50%, rgba(255, 255, 255, 0.2))";
27868
+ }, function (_ref3) {
27869
+ var color = _ref3.color;
27870
+ return color;
27871
+ }, function (_ref4) {
27872
+ var color = _ref4.color;
27873
+ return color;
27874
+ });
27875
+
27876
+ var onRenderStackInfo = function onRenderStackInfo(itemId, stackQty) {
27877
+ var isFractionalStackQty = stackQty % 1 !== 0;
27878
+ var isLargerThan999 = stackQty > 999;
27879
+ var qtyClassName = 'regular';
27880
+ if (isLargerThan999) qtyClassName = 'small';
27881
+ if (isFractionalStackQty) qtyClassName = 'xsmall';
27882
+ if (stackQty > 1) {
27883
+ return React__default.createElement(ItemSlotQty$1, {
27884
+ itemId: itemId,
27885
+ stackQty: stackQty,
27886
+ qtyClassName: qtyClassName
27887
+ });
27888
+ }
27889
+ return undefined;
27890
+ };
27891
+ var ItemSlotQty$1 = function ItemSlotQty(_ref) {
27892
+ var itemId = _ref.itemId,
27893
+ stackQty = _ref.stackQty,
27894
+ qtyClassName = _ref.qtyClassName;
27895
+ return React__default.createElement(ItemQtyContainer$1, {
27896
+ key: "qty-" + itemId,
27897
+ className: "item-slot-qty"
27898
+ }, React__default.createElement(Ellipsis, {
27899
+ maxLines: 1,
27900
+ maxWidth: "48px"
27901
+ }, React__default.createElement(ItemQty, {
27902
+ className: qtyClassName
27903
+ }, Math.round(stackQty * 100) / 100, ' ')));
27904
+ };
27905
+ var ItemQtyContainer$1 = /*#__PURE__*/styled__default.div.withConfig({
27906
+ displayName: "ItemSlotQty__ItemQtyContainer",
27907
+ componentId: "sc-keb1s5-0"
27908
+ })(["position:relative;width:85%;height:16px;top:25px;left:2px;pointer-events:none;display:flex;justify-content:flex-end;"]);
27909
+ var ItemQty = /*#__PURE__*/styled__default.span.withConfig({
27910
+ displayName: "ItemSlotQty__ItemQty",
27911
+ componentId: "sc-keb1s5-1"
27912
+ })(["&.regular{font-size:", ";}&.small{font-size:", ";}&.xsmall{font-size:", ";}"], uiFonts.size.small, uiFonts.size.xsmall, uiFonts.size.xxsmall);
27913
+
27914
+ var ItemSlotRenderer = function ItemSlotRenderer(_ref) {
27915
+ var containerType = _ref.containerType,
27916
+ atlasJSON = _ref.atlasJSON,
27917
+ atlasIMG = _ref.atlasIMG,
27918
+ slotSpriteMask = _ref.slotSpriteMask,
27919
+ item = _ref.item;
27920
+ var renderStackInfo = function renderStackInfo(item) {
27921
+ return item.stackQty && item.stackQty > 1 && onRenderStackInfo(item._id, item.stackQty);
27922
+ };
27923
+ var renderGems = function renderGems(item) {
27924
+ return item.attachedGems && onRenderGems(item);
27925
+ };
27926
+ var renderItem = function renderItem(item) {
27927
+ if (!(item != null && item.texturePath)) {
27928
+ return null;
27929
+ }
27930
+ return React__default.createElement(ErrorBoundary, {
27931
+ key: item._id
27932
+ }, item.quality && item.quality !== shared.ItemQualityLevel.Normal && React__default.createElement("div", {
27933
+ className: "quality-star"
27934
+ }, "\u2605"), React__default.createElement(SpriteFromAtlas, {
27935
+ atlasIMG: atlasIMG,
27936
+ atlasJSON: atlasJSON,
27937
+ spriteKey: shared.getItemTextureKeyPath({
27938
+ key: item.texturePath,
27939
+ texturePath: item.texturePath,
27940
+ stackQty: item.stackQty || 1,
27941
+ isStackable: item.isStackable
27942
+ }, atlasJSON),
27943
+ imgScale: 3,
27944
+ imgClassname: "sprite-from-atlas-img--item",
27945
+ tintColor: item.tintColor
27946
+ }), renderStackInfo(item), renderGems(item));
27947
+ };
27948
+ var renderEquipment = function renderEquipment(itemToRender) {
27949
+ var _itemToRender$allowed;
27950
+ if (!(itemToRender != null && itemToRender.texturePath) || !((_itemToRender$allowed = itemToRender.allowedEquipSlotType) != null && _itemToRender$allowed.includes(slotSpriteMask))) {
27951
+ return React__default.createElement(ErrorBoundary, {
27952
+ key: uuid.v4()
27953
+ }, React__default.createElement(SpriteFromAtlas, {
27954
+ key: uuid.v4(),
27955
+ atlasIMG: atlasIMG,
27956
+ atlasJSON: atlasJSON,
27957
+ spriteKey: EquipmentSlotSpriteByType[slotSpriteMask],
27958
+ imgScale: 3,
27959
+ grayScale: true,
27960
+ opacity: 0.4,
27961
+ imgClassname: "sprite-from-atlas-img--item"
27962
+ }));
27963
+ }
27964
+ return renderItem(itemToRender);
27965
+ };
27966
+ var onRenderSlot = function onRenderSlot(itemToRender) {
27967
+ switch (containerType) {
27968
+ case shared.ItemContainerType.Equipment:
27969
+ return renderEquipment(itemToRender);
27970
+ default:
27971
+ return renderItem(itemToRender);
27972
+ }
27973
+ };
27974
+ return onRenderSlot(item);
27975
+ };
27976
+
27958
27977
  var EquipmentSlotSpriteByType = {
27959
27978
  Neck: 'accessories/corruption-necklace.png',
27960
27979
  LeftHand: 'swords/broad-sword.png',
@@ -28271,7 +28290,7 @@ var ItemSlot = /*#__PURE__*/mobxReactLite.observer(function (_ref) {
28271
28290
  var Container$a = /*#__PURE__*/styled__default.div.withConfig({
28272
28291
  displayName: "ItemSlot__Container",
28273
28292
  componentId: "sc-l2j5ef-0"
28274
- })(["margin:0.1rem;.react-draggable-dragging{opacity:", ";}position:relative;.sprite-from-atlas-img--item{position:relative;top:1.5rem;left:1.5rem;border-color:", ";box-shadow:", " inset,", ";}&::before{content:'';position:absolute;top:0;left:0;width:100%;height:100%;z-index:1;border-radius:12px;pointer-events:none;animation:", ";@keyframes bg-color-change{0%{background-color:rgba(255 255 255 / 0.5);}50%{background-color:transparent;}100%{background-color:rgba(255 255 255 / 0.5);}}}"], function (_ref2) {
28293
+ })(["margin:0.1rem;.react-draggable-dragging{opacity:", ";}position:relative;.sprite-from-atlas-img--item{position:relative;top:1.5rem;left:1.5rem;border-color:", ";box-shadow:", " inset,", ";}.quality-star{position:absolute;top:0.5rem;left:0.5rem;font-size:1.2rem;z-index:2;text-shadow:0 0 3px black;pointer-events:none;color:", ";}&::before{content:'';position:absolute;top:0;left:0;width:100%;height:100%;z-index:1;border-radius:12px;pointer-events:none;animation:", ";@keyframes bg-color-change{0%{background-color:rgba(255 255 255 / 0.5);}50%{background-color:transparent;}100%{background-color:rgba(255 255 255 / 0.5);}}}"], function (_ref2) {
28275
28294
  var isDraggingItem = _ref2.isDraggingItem;
28276
28295
  return isDraggingItem ? 0 : 1;
28277
28296
  }, function (_ref3) {
@@ -28284,7 +28303,10 @@ var Container$a = /*#__PURE__*/styled__default.div.withConfig({
28284
28303
  var item = _ref5.item;
28285
28304
  return "0 0 4px 3px " + rarityColor(item);
28286
28305
  }, function (_ref6) {
28287
- var isSelectingShortcut = _ref6.isSelectingShortcut;
28306
+ var item = _ref6.item;
28307
+ return qualityColorHex(item);
28308
+ }, function (_ref7) {
28309
+ var isSelectingShortcut = _ref7.isSelectingShortcut;
28288
28310
  return isSelectingShortcut ? 'bg-color-change 1s infinite' : 'none';
28289
28311
  });
28290
28312
  var ItemContainer = /*#__PURE__*/styled__default.div.withConfig({
@@ -28401,10 +28423,16 @@ var ItemInfo = function ItemInfo(_ref) {
28401
28423
  var Container$b = /*#__PURE__*/styled__default.div.withConfig({
28402
28424
  displayName: "ItemInfo__Container",
28403
28425
  componentId: "sc-1xm4q8k-0"
28404
- })(["color:white;background-color:#222;border-radius:5px;padding:0.5rem;font-size:", ";border:3px solid ", ";height:max-content;width:18rem;@media (max-width:640px){width:80vw;}"], uiFonts.size.small, function (_ref2) {
28426
+ })(["color:white;background-color:#222;border-radius:5px;padding:0.5rem;font-size:", ";border:3px solid ", ";box-shadow:", ";height:max-content;width:18rem;position:relative;", " @media (max-width:640px){width:80vw;}"], uiFonts.size.small, function (_ref2) {
28405
28427
  var _rarityColor;
28406
28428
  var item = _ref2.item;
28407
28429
  return (_rarityColor = rarityColor(item)) != null ? _rarityColor : uiColors.lightGray;
28430
+ }, function (_ref3) {
28431
+ var item = _ref3.item;
28432
+ return "0 0 5px 2px " + rarityColor(item);
28433
+ }, function (_ref4) {
28434
+ var item = _ref4.item;
28435
+ return (item == null ? void 0 : item.quality) && item.quality !== shared.ItemQualityLevel.Normal && "\n &::before {\n content: '\u2605';\n position: absolute;\n top: 0.2rem;\n left: 0.5rem;\n font-size: 1.2rem;\n color: " + qualityColorHex(item) + ";\n text-shadow: 0 0 3px black;\n }\n ";
28408
28436
  });
28409
28437
  var Title$1 = /*#__PURE__*/styled__default.div.withConfig({
28410
28438
  displayName: "ItemInfo__Title",
@@ -28413,8 +28441,8 @@ var Title$1 = /*#__PURE__*/styled__default.div.withConfig({
28413
28441
  var Rarity = /*#__PURE__*/styled__default.div.withConfig({
28414
28442
  displayName: "ItemInfo__Rarity",
28415
28443
  componentId: "sc-1xm4q8k-2"
28416
- })(["font-size:", ";font-weight:normal;margin-top:0.2rem;color:", ";filter:brightness(1.5);"], uiFonts.size.small, function (_ref3) {
28417
- var item = _ref3.item;
28444
+ })(["font-size:", ";font-weight:normal;margin-top:0.2rem;color:", ";filter:brightness(1.5);"], uiFonts.size.small, function (_ref5) {
28445
+ var item = _ref5.item;
28418
28446
  return rarityColor(item);
28419
28447
  });
28420
28448
  var Type = /*#__PURE__*/styled__default.div.withConfig({
@@ -28428,8 +28456,8 @@ var LevelRequirement = /*#__PURE__*/styled__default.div.withConfig({
28428
28456
  var Statistic = /*#__PURE__*/styled__default.div.withConfig({
28429
28457
  displayName: "ItemInfo__Statistic",
28430
28458
  componentId: "sc-1xm4q8k-5"
28431
- })(["margin-bottom:0.4rem;width:100%;color:", ";.label{display:inline-block;margin-right:0.5rem;color:inherit;}.value{display:inline-block;color:inherit;}&.better,.better{color:", ";}&.worse,.worse{color:", ";}"], function (_ref4) {
28432
- var $isSpecial = _ref4.$isSpecial;
28459
+ })(["margin-bottom:0.4rem;width:100%;color:", ";.label{display:inline-block;margin-right:0.5rem;color:inherit;}.value{display:inline-block;color:inherit;}&.better,.better{color:", ";}&.worse,.worse{color:", ";}"], function (_ref6) {
28460
+ var $isSpecial = _ref6.$isSpecial;
28433
28461
  return $isSpecial ? uiColors.darkYellow : 'inherit';
28434
28462
  }, uiColors.lightGreen, uiColors.cardinal);
28435
28463
  var Description = /*#__PURE__*/styled__default.div.withConfig({
@@ -30770,6 +30798,9 @@ var FadeInCarouselImg = /*#__PURE__*/styled__default(CarouselImg).withConfig({
30770
30798
  componentId: "sc-gdvbly-5"
30771
30799
  })(["animation:", " 0.5s;"], fadeIn);
30772
30800
 
30801
+ var UI_BREAKPOINT_MOBILE = '950px';
30802
+ var UI_BREAKPOINT_SMALL_LAPTOP = '1400px';
30803
+
30773
30804
  var InternalTabs = function InternalTabs(_ref) {
30774
30805
  var _tabs$find;
30775
30806
  var tabs = _ref.tabs,
@@ -30818,39 +30849,56 @@ var TabHeader = /*#__PURE__*/styled__default.div.withConfig({
30818
30849
  var TabButton = /*#__PURE__*/styled__default.button.withConfig({
30819
30850
  displayName: "InternalTabs__TabButton",
30820
30851
  componentId: "sc-ldufv0-2"
30821
- })(["flex:1;padding:0.5rem 1rem;font-size:0.875rem;font-weight:500;border-right:1px solid ", ";background-color:", ";color:", ";&:last-child{border-right:none;}&:hover{background-color:", ";}"], function (props) {
30852
+ })(["flex:1;padding:0.25rem 0.5rem;font-size:0.75rem;font-weight:500;border-right:1px solid ", ";background-color:", ";color:", ";white-space:nowrap;overflow:hidden;text-overflow:ellipsis;@media (min-width:480px){padding:0.375rem 0.75rem;font-size:0.8125rem;}@media (min-width:", "){padding:0.5rem 1rem;font-size:0.875rem;}&:last-child{border-right:none;}&:hover{background-color:", ";}"], function (props) {
30822
30853
  return props.borderColor;
30823
30854
  }, function (props) {
30824
30855
  return props.active ? props.activeColor : 'transparent';
30825
30856
  }, function (props) {
30826
30857
  return props.active ? props.activeTextColor : props.inactiveColor;
30827
- }, function (props) {
30858
+ }, UI_BREAKPOINT_MOBILE, function (props) {
30828
30859
  return props.active ? props.activeColor : props.hoverColor;
30829
30860
  });
30830
30861
  var ContentWrapper = /*#__PURE__*/styled__default.div.withConfig({
30831
30862
  displayName: "InternalTabs__ContentWrapper",
30832
30863
  componentId: "sc-ldufv0-3"
30833
- })([""]);
30864
+ })(["width:100%;"]);
30834
30865
 
30835
- var TOOLTIP_WIDTH = 300;
30836
30866
  var TOOLTIP_OFFSET = 10;
30837
30867
  var MIN_VISIBLE_HEIGHT = 100;
30838
30868
  var useTooltipPosition = function useTooltipPosition() {
30869
+ // Dynamically calculate tooltip width based on screen size
30870
+ var getTooltipWidth = function getTooltipWidth() {
30871
+ var viewportWidth = window.innerWidth;
30872
+ if (viewportWidth < 360) {
30873
+ return Math.min(280, viewportWidth - 20);
30874
+ }
30875
+ if (viewportWidth < 480) {
30876
+ return 300;
30877
+ }
30878
+ return 320;
30879
+ };
30880
+ var TOOLTIP_WIDTH = getTooltipWidth();
30839
30881
  var _useState = React.useState(null),
30840
30882
  tooltipState = _useState[0],
30841
30883
  setTooltipState = _useState[1];
30842
30884
  var calculateTooltipPosition = function calculateTooltipPosition(rect) {
30843
30885
  var viewportWidth = window.innerWidth;
30844
30886
  var viewportHeight = window.innerHeight;
30887
+ var tooltipWidth = getTooltipWidth();
30845
30888
  // Try to position to the right first
30846
30889
  var x = rect.right + TOOLTIP_OFFSET;
30847
30890
  // If it would overflow right, try positioning to the left
30848
- if (x + TOOLTIP_WIDTH > viewportWidth - TOOLTIP_OFFSET) {
30849
- x = rect.left - TOOLTIP_WIDTH - TOOLTIP_OFFSET;
30891
+ if (x + tooltipWidth > viewportWidth - TOOLTIP_OFFSET) {
30892
+ x = rect.left - tooltipWidth - TOOLTIP_OFFSET;
30850
30893
  }
30851
- // If left positioning would go off screen, position relative to viewport
30894
+ // If left positioning would go off screen, center it or position relative to viewport
30852
30895
  if (x < TOOLTIP_OFFSET) {
30853
- x = TOOLTIP_OFFSET;
30896
+ if (viewportWidth < 400) {
30897
+ // For very small screens, center the tooltip
30898
+ x = Math.max(TOOLTIP_OFFSET, (viewportWidth - tooltipWidth) / 2);
30899
+ } else {
30900
+ x = TOOLTIP_OFFSET;
30901
+ }
30854
30902
  }
30855
30903
  // Position vertically aligned with the top of the element
30856
30904
  var y = rect.top;
@@ -31083,15 +31131,13 @@ var PaginatedContent = function PaginatedContent(_ref) {
31083
31131
  var Container$n = /*#__PURE__*/styled__default.div.withConfig({
31084
31132
  displayName: "PaginatedContent__Container",
31085
31133
  componentId: "sc-lzp9hn-0"
31086
- })(["display:flex;flex-direction:column;gap:1rem;min-height:400px;width:100%;"]);
31134
+ })(["display:flex;flex-direction:column;gap:0.5rem;min-height:400px;width:100%;"]);
31087
31135
  var Content = /*#__PURE__*/styled__default.div.withConfig({
31088
31136
  displayName: "PaginatedContent__Content",
31089
31137
  componentId: "sc-lzp9hn-1"
31090
- })(["display:flex;flex-direction:column;gap:0.5rem;flex:1;padding:1rem;min-height:200px;max-height:", ";overflow-y:", ";&.grid{display:grid;grid-template-columns:repeat( ", ",minmax(0,1fr) );gap:1rem;align-items:start;.PaginatedContent-item{display:flex;align-items:flex-start;height:", ";}}&.list{display:flex;flex-direction:column;gap:0.5rem;}"], function (props) {
31091
- return props.$maxHeight;
31092
- }, function (props) {
31093
- return props.$maxHeight ? 'auto' : 'visible';
31094
- }, function (props) {
31138
+ })(["display:flex;flex-direction:column;gap:0.5rem;flex:1;padding:0.25rem;min-height:200px;max-height:60vh;height:100%;overflow-y:auto;overflow-x:hidden;box-sizing:border-box;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,0.3) rgba(0,0,0,0.2);@media (min-width:360px){padding:0.5rem;}@media (min-width:480px){padding:1rem;}&.grid{display:grid;grid-template-columns:1fr;gap:0.5rem;align-items:start;justify-content:center;width:100%;@media (min-width:320px){grid-template-columns:repeat(2,minmax(100px,1fr));}@media (min-width:400px){grid-template-columns:repeat(2,minmax(120px,1fr));gap:0.75rem;}@media (min-width:480px){grid-template-columns:repeat(3,minmax(120px,1fr));gap:1rem;}@media (min-width:768px){grid-template-columns:repeat(4,minmax(120px,1fr));}@media (min-width:", "){grid-template-columns:repeat( ", ",minmax(120px,1fr) );}@media (min-width:", "){grid-template-columns:repeat( ", ",minmax(120px,1fr) );}.PaginatedContent-item{display:flex;align-items:flex-start;justify-content:center;height:", ";width:100%;box-sizing:border-box;min-height:120px;}}&.list{display:flex;flex-direction:column;gap:0.5rem;}"], UI_BREAKPOINT_MOBILE, function (props) {
31139
+ return Math.min(props.$gridColumns, 4);
31140
+ }, UI_BREAKPOINT_SMALL_LAPTOP, function (props) {
31095
31141
  return props.$gridColumns;
31096
31142
  }, function (props) {
31097
31143
  var _props$$itemHeight;
@@ -31100,7 +31146,7 @@ var Content = /*#__PURE__*/styled__default.div.withConfig({
31100
31146
  var PaginationContainer$1 = /*#__PURE__*/styled__default.div.withConfig({
31101
31147
  displayName: "PaginatedContent__PaginationContainer",
31102
31148
  componentId: "sc-lzp9hn-2"
31103
- })(["display:flex;justify-content:center;padding:1rem;"]);
31149
+ })(["display:flex;justify-content:center;padding:0.5rem;@media (min-width:480px){padding:1rem;}"]);
31104
31150
  var EmptyMessage = /*#__PURE__*/styled__default.div.withConfig({
31105
31151
  displayName: "PaginatedContent__EmptyMessage",
31106
31152
  componentId: "sc-lzp9hn-3"
@@ -31131,12 +31177,46 @@ var InformationCenterCell = function InformationCenterCell(_ref) {
31131
31177
  onMouseLeave = _ref.onMouseLeave,
31132
31178
  onMouseMove = _ref.onMouseMove,
31133
31179
  onTouchStart = _ref.onTouchStart;
31180
+ var _useState = React.useState(null),
31181
+ touchStartY = _useState[0],
31182
+ setTouchStartY = _useState[1];
31183
+ var _useState2 = React.useState(null),
31184
+ touchStartX = _useState2[0],
31185
+ setTouchStartX = _useState2[1];
31186
+ var _useState3 = React.useState(false),
31187
+ isTouchScrolling = _useState3[0],
31188
+ setIsTouchScrolling = _useState3[1];
31189
+ var handleTouchStart = function handleTouchStart(e) {
31190
+ setTouchStartY(e.touches[0].clientY);
31191
+ setTouchStartX(e.touches[0].clientX);
31192
+ setIsTouchScrolling(false);
31193
+ };
31194
+ var handleTouchMove = function handleTouchMove(e) {
31195
+ if (touchStartY !== null && touchStartX !== null) {
31196
+ var touchDiffY = Math.abs(e.touches[0].clientY - touchStartY);
31197
+ var touchDiffX = Math.abs(e.touches[0].clientX - touchStartX);
31198
+ // If user moved finger more than 15px in any direction, consider it scrolling
31199
+ if (touchDiffY > 15 || touchDiffX > 15) {
31200
+ setIsTouchScrolling(true);
31201
+ e.stopPropagation(); // Prevent parent elements from handling this touch
31202
+ }
31203
+ }
31204
+ };
31205
+ var handleTouchEnd = function handleTouchEnd(e) {
31206
+ if (!isTouchScrolling && onTouchStart) {
31207
+ onTouchStart(e);
31208
+ }
31209
+ setTouchStartY(null);
31210
+ setTouchStartX(null);
31211
+ };
31134
31212
  return React__default.createElement(CellContainer, {
31135
31213
  onClick: onClick,
31136
31214
  onMouseEnter: onMouseEnter,
31137
31215
  onMouseLeave: onMouseLeave,
31138
31216
  onMouseMove: onMouseMove,
31139
- onTouchStart: onTouchStart
31217
+ onTouchStart: handleTouchStart,
31218
+ onTouchMove: handleTouchMove,
31219
+ onTouchEnd: handleTouchEnd
31140
31220
  }, React__default.createElement(SpriteContainer$1, null, React__default.createElement(SpriteFromAtlas, {
31141
31221
  atlasJSON: atlasJSON,
31142
31222
  atlasIMG: atlasIMG,
@@ -31144,20 +31224,24 @@ var InformationCenterCell = function InformationCenterCell(_ref) {
31144
31224
  width: 32,
31145
31225
  height: 32,
31146
31226
  imgScale: 1
31147
- })), React__default.createElement(CellName, null, name));
31227
+ })), React__default.createElement(CellNameContainer, null, React__default.createElement(CellName, null, name)));
31148
31228
  };
31149
31229
  var CellContainer = /*#__PURE__*/styled__default.div.withConfig({
31150
31230
  displayName: "InformationCenterCell__CellContainer",
31151
31231
  componentId: "sc-w48fdf-0"
31152
- })(["position:relative;background:rgba(0,0,0,0.2);padding:0.75rem;border-radius:4px;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;transition:background-color 0.2s ease;width:100%;height:100%;min-width:120px;min-height:120px;box-sizing:border-box;&:hover{background:rgba(0,0,0,0.3);}"]);
31232
+ })(["position:relative;background:rgba(0,0,0,0.2);padding:0.2rem;border-radius:4px;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;transition:background-color 0.2s ease;width:100%;height:100%;min-height:90px;box-sizing:border-box;gap:0.2rem;margin:0;@media (min-width:360px){padding:0.3rem;gap:0.3rem;margin:1px;width:calc(100% - 2px);min-height:100px;}@media (min-width:", "){min-height:110px;}&:hover{background:rgba(0,0,0,0.3);}"], UI_BREAKPOINT_MOBILE);
31153
31233
  var SpriteContainer$1 = /*#__PURE__*/styled__default.div.withConfig({
31154
31234
  displayName: "InformationCenterCell__SpriteContainer",
31155
31235
  componentId: "sc-w48fdf-1"
31156
- })(["margin-bottom:0.5rem;display:flex;justify-content:center;align-items:center;width:64px;height:64px;position:relative;background:rgba(0,0,0,0.3);border-radius:4px;flex-shrink:0;.sprite-from-atlas-img{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%) scale(2);image-rendering:pixelated;}"]);
31236
+ })(["display:flex;justify-content:center;align-items:center;width:32px;height:32px;position:relative;background:rgba(0,0,0,0.3);border-radius:4px;flex-shrink:0;overflow:hidden;padding:1rem;margin-top:1rem;@media (min-width:360px){width:36px;height:36px;}@media (min-width:480px){width:42px;height:42px;}@media (min-width:", "){width:48px;height:48px;}.sprite-from-atlas-img{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%) scale(2);image-rendering:pixelated;}"], UI_BREAKPOINT_MOBILE);
31237
+ var CellNameContainer = /*#__PURE__*/styled__default.div.withConfig({
31238
+ displayName: "InformationCenterCell__CellNameContainer",
31239
+ componentId: "sc-w48fdf-2"
31240
+ })(["display:flex;flex-direction:column;align-items:center;justify-content:center;flex:1;width:100%;padding-top:0.1rem;"]);
31157
31241
  var CellName = /*#__PURE__*/styled__default.h3.withConfig({
31158
31242
  displayName: "InformationCenterCell__CellName",
31159
- componentId: "sc-w48fdf-2"
31160
- })(["font-size:0.7rem;color:#fef08a;margin:0;text-align:center;font-family:'Press Start 2P',cursive;line-height:1.2;word-break:break-word;max-width:100%;"]);
31243
+ componentId: "sc-w48fdf-3"
31244
+ })(["font-size:0.5rem;color:#fef08a;margin:0;text-align:center;font-family:'Press Start 2P',cursive;line-height:1.1;word-break:break-word;max-width:100%;overflow-wrap:break-word;hyphens:auto;width:100%;padding:0 0.125rem;box-sizing:border-box;@media (min-width:320px){padding:0 0.25rem;}@media (min-width:360px){font-size:0.55rem;}@media (min-width:480px){font-size:0.6rem;}@media (min-width:", "){font-size:0.65rem;}"], UI_BREAKPOINT_MOBILE);
31161
31245
 
31162
31246
  var BaseInformationDetails = function BaseInformationDetails(_ref) {
31163
31247
  var name = _ref.name,
@@ -31498,18 +31582,64 @@ var AdvancedFilters = function AdvancedFilters(_ref) {
31498
31582
  case 'dropdown':
31499
31583
  return React__default.createElement(FilterSection, {
31500
31584
  key: section.key
31501
- }, React__default.createElement(Label$1, null, section.label), React__default.createElement(Dropdown, {
31585
+ }, React__default.createElement(Label$1, null, section.label), React__default.createElement(StyledDropdownWrapper, null, React__default.createElement(Dropdown, {
31502
31586
  options: section.options || [],
31503
31587
  onChange: section.onChange,
31504
31588
  width: "100%"
31505
- }));
31589
+ })));
31506
31590
  default:
31507
31591
  return null;
31508
31592
  }
31509
31593
  };
31594
+ // Calculate button position for the portal
31595
+ var _React$useState = React__default.useState({
31596
+ top: 0,
31597
+ left: 0,
31598
+ isMobile: false
31599
+ }),
31600
+ buttonPosition = _React$useState[0],
31601
+ setButtonPosition = _React$useState[1];
31602
+ var buttonRef = React.useRef(null);
31603
+ var panelRef = React.useRef(null);
31604
+ React.useEffect(function () {
31605
+ if (isOpen && buttonRef.current) {
31606
+ var rect = buttonRef.current.getBoundingClientRect();
31607
+ var isMobileView = window.innerWidth < 480;
31608
+ if (isMobileView) {
31609
+ // For mobile, position in center of screen
31610
+ setButtonPosition({
31611
+ top: window.innerHeight / 2,
31612
+ left: window.innerWidth / 2,
31613
+ isMobile: true
31614
+ });
31615
+ } else {
31616
+ // Position below the button for larger screens
31617
+ setButtonPosition({
31618
+ top: rect.bottom + window.scrollY,
31619
+ left: rect.left + rect.width / 2 + window.scrollX,
31620
+ isMobile: false
31621
+ });
31622
+ }
31623
+ }
31624
+ }, [isOpen]);
31625
+ // Handle click outside to close the panel
31626
+ React.useEffect(function () {
31627
+ var handleClickOutside = function handleClickOutside(event) {
31628
+ if (isOpen && panelRef.current && !panelRef.current.contains(event.target) && buttonRef.current && !buttonRef.current.contains(event.target)) {
31629
+ onToggle();
31630
+ }
31631
+ };
31632
+ if (isOpen) {
31633
+ document.addEventListener('mousedown', handleClickOutside);
31634
+ }
31635
+ return function () {
31636
+ document.removeEventListener('mousedown', handleClickOutside);
31637
+ };
31638
+ }, [isOpen, onToggle]);
31510
31639
  return React__default.createElement(Container$q, null, React__default.createElement(FilterButton, {
31511
31640
  onClick: onToggle,
31512
- "$hasActiveFilters": hasActiveFilters
31641
+ "$hasActiveFilters": hasActiveFilters,
31642
+ ref: buttonRef
31513
31643
  }, hasActiveFilters ? React__default.createElement(ai.AiFillFilter, {
31514
31644
  size: 20
31515
31645
  }) : React__default.createElement(ai.AiOutlineFilter, {
@@ -31522,9 +31652,21 @@ var AdvancedFilters = function AdvancedFilters(_ref) {
31522
31652
  return rangeValue[0] !== undefined || rangeValue[1] !== undefined;
31523
31653
  }
31524
31654
  return section.value !== 'all';
31525
- }).length)), isOpen && React__default.createElement(FiltersPanel, null, React__default.createElement(FilterHeader, null, React__default.createElement(FilterTitle, null, "Advanced Filters")), sections.map(renderFilterSection), hasActiveFilters && React__default.createElement(ClearFiltersButton, {
31655
+ }).length)), isOpen && React__default.createElement(Portal, null, React__default.createElement(FiltersPanel, {
31656
+ ref: panelRef,
31657
+ style: {
31658
+ position: 'fixed',
31659
+ top: buttonPosition.isMobile ? '50vh' : buttonPosition.top + "px",
31660
+ left: buttonPosition.isMobile ? '50vw' : buttonPosition.left + "px",
31661
+ transform: buttonPosition.isMobile ? 'translate(-50%, -50%)' : 'translateX(-50%)',
31662
+ zIndex: 9999
31663
+ },
31664
+ "$isMobile": buttonPosition.isMobile
31665
+ }, React__default.createElement(FilterHeader, null, React__default.createElement(FilterTitle, null, "Advanced Filters"), React__default.createElement(CloseButton$6, {
31666
+ onClick: onToggle
31667
+ }, "\xD7")), sections.map(renderFilterSection), hasActiveFilters && React__default.createElement(ClearFiltersButton, {
31526
31668
  onClick: onClearAll
31527
- }, "Clear All Filters")));
31669
+ }, "Clear All Filters"))));
31528
31670
  };
31529
31671
  var Container$q = /*#__PURE__*/styled__default.div.withConfig({
31530
31672
  displayName: "AdvancedFilters__Container",
@@ -31553,7 +31695,9 @@ var FilterCount = /*#__PURE__*/styled__default.div.withConfig({
31553
31695
  var FiltersPanel = /*#__PURE__*/styled__default.div.withConfig({
31554
31696
  displayName: "AdvancedFilters__FiltersPanel",
31555
31697
  componentId: "sc-1xj6ldr-3"
31556
- })(["position:absolute;top:calc(100% + 0.75rem);right:-8px;background:#1a1a1a;border:1px solid #333;border-radius:6px;padding:1rem;z-index:1000;min-width:280px;display:flex;flex-direction:column;gap:1rem;box-shadow:0 4px 12px rgba(0,0,0,0.3);&:before{content:'';position:absolute;top:-6px;right:16px;width:12px;height:12px;background:#1a1a1a;border-left:1px solid #333;border-top:1px solid #333;transform:rotate(45deg);}"]);
31698
+ })(["background:#1a1a1a;border:1px solid #333;border-radius:6px;padding:1rem;width:280px;max-width:calc(100vw - 20px);display:flex;flex-direction:column;gap:1rem;box-shadow:0 4px 12px rgba(0,0,0,0.3);font-family:'Press Start 2P',cursive;@media (max-width:320px){width:250px;padding:0.75rem;gap:0.75rem;}&:before{content:'';position:absolute;top:-6px;left:50%;transform:translateX(-50%) rotate(45deg);width:12px;height:12px;background:#1a1a1a;border-left:1px solid #333;border-top:1px solid #333;display:", ";}"], function (props) {
31699
+ return props.$isMobile ? 'none' : 'block';
31700
+ });
31557
31701
  var FilterHeader = /*#__PURE__*/styled__default.div.withConfig({
31558
31702
  displayName: "AdvancedFilters__FilterHeader",
31559
31703
  componentId: "sc-1xj6ldr-4"
@@ -31561,7 +31705,7 @@ var FilterHeader = /*#__PURE__*/styled__default.div.withConfig({
31561
31705
  var FilterTitle = /*#__PURE__*/styled__default.div.withConfig({
31562
31706
  displayName: "AdvancedFilters__FilterTitle",
31563
31707
  componentId: "sc-1xj6ldr-5"
31564
- })(["font-weight:600;color:#ffd700;font-size:0.875rem;"]);
31708
+ })(["font-weight:600;color:#ffd700;font-size:0.75rem;"]);
31565
31709
  var FilterSection = /*#__PURE__*/styled__default.div.withConfig({
31566
31710
  displayName: "AdvancedFilters__FilterSection",
31567
31711
  componentId: "sc-1xj6ldr-6"
@@ -31569,15 +31713,23 @@ var FilterSection = /*#__PURE__*/styled__default.div.withConfig({
31569
31713
  var Label$1 = /*#__PURE__*/styled__default.div.withConfig({
31570
31714
  displayName: "AdvancedFilters__Label",
31571
31715
  componentId: "sc-1xj6ldr-7"
31572
- })(["color:#999;font-size:0.75rem;text-transform:uppercase;letter-spacing:0.05em;"]);
31716
+ })(["color:#999;font-size:0.65rem;text-transform:uppercase;letter-spacing:0.05em;"]);
31573
31717
  var RangeInputs = /*#__PURE__*/styled__default.div.withConfig({
31574
31718
  displayName: "AdvancedFilters__RangeInputs",
31575
31719
  componentId: "sc-1xj6ldr-8"
31576
- })(["display:flex;align-items:center;gap:0.5rem;input{width:80px;background:#262626 !important;border:1px solid #333 !important;color:#fff !important;}svg{color:#666;font-size:0.875rem;}"]);
31720
+ })(["display:flex;align-items:center;gap:0.5rem;input{width:80px;background:#262626 !important;border:1px solid #444 !important;border-radius:4px !important;color:#ddd !important;font-size:0.65rem !important;padding:0.5rem !important;height:auto !important;box-shadow:inset 0 1px 3px rgba(0,0,0,0.2) !important;&::placeholder{color:#666 !important;}&:focus{border-color:#f59e0b !important;outline:none !important;}}svg{color:#666;font-size:0.875rem;}"]);
31577
31721
  var ClearFiltersButton = /*#__PURE__*/styled__default.button.withConfig({
31578
31722
  displayName: "AdvancedFilters__ClearFiltersButton",
31579
31723
  componentId: "sc-1xj6ldr-9"
31580
- })(["width:100%;background:transparent;color:#666;border:none;padding:0.75rem 0;margin-top:0.5rem;cursor:pointer;font-size:0.75rem;transition:all 0.2s;border-top:1px solid #333;text-transform:uppercase;letter-spacing:0.05em;&:hover{color:#ffd700;}"]);
31724
+ })(["width:100%;background:transparent;color:#666;border:none;padding:0.75rem 0;margin-top:0.5rem;cursor:pointer;font-size:0.65rem;transition:all 0.2s;border-top:1px solid #333;text-transform:uppercase;letter-spacing:0.05em;font-family:'Press Start 2P',cursive;&:hover{color:#ffd700;}"]);
31725
+ var CloseButton$6 = /*#__PURE__*/styled__default.button.withConfig({
31726
+ displayName: "AdvancedFilters__CloseButton",
31727
+ componentId: "sc-1xj6ldr-10"
31728
+ })(["background:transparent;border:none;color:#999;font-size:1.5rem;line-height:1;cursor:pointer;padding:0;margin:0;display:flex;align-items:center;justify-content:center;width:24px;height:24px;&:hover{color:#ffd700;}"]);
31729
+ var StyledDropdownWrapper = /*#__PURE__*/styled__default.div.withConfig({
31730
+ displayName: "AdvancedFilters__StyledDropdownWrapper",
31731
+ componentId: "sc-1xj6ldr-11"
31732
+ })([".rpgui-dropdown-imp{font-size:0.8rem;min-height:unset;padding-top:0.3rem;}"]);
31581
31733
 
31582
31734
  var ItemsAdvancedFilters = function ItemsAdvancedFilters(_ref) {
31583
31735
  var isOpen = _ref.isOpen,
@@ -31751,7 +31903,7 @@ var InformationCenterItemsSection = function InformationCenterItemsSection(_ref)
31751
31903
  dependencies: [selectedItemCategory, selectedTier],
31752
31904
  tabId: tabId,
31753
31905
  layout: "grid",
31754
- itemHeight: "180px"
31906
+ itemHeight: isMobile ? '150px' : '180px'
31755
31907
  }), !isMobile && tooltipState && tooltipState.item && React__default.createElement(Portal, null, React__default.createElement(TooltipWrapper, {
31756
31908
  width: TOOLTIP_WIDTH,
31757
31909
  style: {
@@ -32351,7 +32503,7 @@ var InformationCenterBestiarySection = function InformationCenterBestiarySection
32351
32503
  rightElement: SearchBarRightElement
32352
32504
  },
32353
32505
  dependencies: [selectedBestiaryCategory, levelRange, selectedSubtype, selectedAttackType],
32354
- itemHeight: "180px"
32506
+ itemHeight: isMobile ? '150px' : '180px'
32355
32507
  }), !isMobile && tooltipState && tooltipState.item && React__default.createElement(Portal, null, React__default.createElement(TooltipWrapper$1, {
32356
32508
  width: TOOLTIP_WIDTH,
32357
32509
  style: {
@@ -32401,6 +32553,7 @@ var InformationCenterTutorialsSection = function InformationCenterTutorialsSecti
32401
32553
  var videoGuides = _ref.videoGuides,
32402
32554
  initialSearchQuery = _ref.initialSearchQuery,
32403
32555
  tabId = _ref.tabId;
32556
+ var isMobile = shared.isMobileOrTablet();
32404
32557
  var _useState = React.useState(initialSearchQuery),
32405
32558
  searchQuery = _useState[0],
32406
32559
  setSearchQuery = _useState[1];
@@ -32451,7 +32604,7 @@ var InformationCenterTutorialsSection = function InformationCenterTutorialsSecti
32451
32604
  maxLines: 2
32452
32605
  }, guide.title)), React__default.createElement(GuideDescription, null, React__default.createElement(Ellipsis, {
32453
32606
  maxWidth: "100%",
32454
- maxLines: 5
32607
+ maxLines: isMobile ? 3 : 5
32455
32608
  }, guide.description)), React__default.createElement(GuideLabelsContainer, null, React__default.createElement(GuideCategory, null, guide.category), React__default.createElement(GuideLanguage, null, guide.language))));
32456
32609
  };
32457
32610
  var filteredGuides = React.useMemo(function () {
@@ -32489,9 +32642,9 @@ var InformationCenterTutorialsSection = function InformationCenterTutorialsSecti
32489
32642
  dependencies: [selectedCategory],
32490
32643
  tabId: tabId,
32491
32644
  layout: "grid",
32492
- gridColumns: GRID_COLUMNS,
32645
+ gridColumns: isMobile ? 1 : GRID_COLUMNS,
32493
32646
  itemsPerPage: ITEMS_PER_PAGE$2,
32494
- itemHeight: "320px"
32647
+ itemHeight: isMobile ? '280px' : '320px'
32495
32648
  });
32496
32649
  };
32497
32650
  var GuideItem = /*#__PURE__*/styled__default.div.withConfig({
@@ -32548,6 +32701,7 @@ var InformationCenter = function InformationCenter(_ref) {
32548
32701
  var _useState = React.useState('bestiary'),
32549
32702
  activeTab = _useState[0],
32550
32703
  setActiveTab = _useState[1];
32704
+ var isMobile = shared.isMobileOrTablet();
32551
32705
  if (loading) {
32552
32706
  return React__default.createElement(LoadingMessage, null, "Loading...");
32553
32707
  }
@@ -32590,7 +32744,9 @@ var InformationCenter = function InformationCenter(_ref) {
32590
32744
  }];
32591
32745
  return React__default.createElement(DraggableContainer, {
32592
32746
  title: "Information Center",
32593
- type: exports.RPGUIContainerTypes.Framed
32747
+ type: exports.RPGUIContainerTypes.Framed,
32748
+ width: isMobile ? '95%' : '80%',
32749
+ minWidth: "300px"
32594
32750
  }, React__default.createElement(Container$r, null, React__default.createElement(InternalTabs, {
32595
32751
  tabs: tabs,
32596
32752
  activeTextColor: "#000000",
@@ -32605,7 +32761,7 @@ var InformationCenter = function InformationCenter(_ref) {
32605
32761
  var Container$r = /*#__PURE__*/styled__default.div.withConfig({
32606
32762
  displayName: "InformationCenter__Container",
32607
32763
  componentId: "sc-1ttl62e-0"
32608
- })(["width:100%;max-width:800px;margin:0 auto;padding:1rem;"]);
32764
+ })(["width:100%;max-width:100%;margin:0 auto;padding:0.125rem;overflow:hidden;box-sizing:border-box;@media (min-width:320px){padding:0.25rem;}@media (min-width:360px){padding:0.5rem;}@media (min-width:480px){padding:0.75rem;}"]);
32609
32765
  var LoadingMessage = /*#__PURE__*/styled__default.div.withConfig({
32610
32766
  displayName: "InformationCenter__LoadingMessage",
32611
32767
  componentId: "sc-1ttl62e-1"
@@ -32904,7 +33060,7 @@ var QuantitySelector = function QuantitySelector(_ref) {
32904
33060
  return React__default.createElement(StyledContainer, {
32905
33061
  type: exports.RPGUIContainerTypes.Framed,
32906
33062
  width: "25rem"
32907
- }, React__default.createElement(CloseButton$6, {
33063
+ }, React__default.createElement(CloseButton$7, {
32908
33064
  className: "container-close",
32909
33065
  onPointerDown: onClose
32910
33066
  }, "X"), React__default.createElement("h2", null, title), React__default.createElement(StyledForm, {
@@ -32949,7 +33105,7 @@ var StyledContainer = /*#__PURE__*/styled__default(RPGUIContainer).withConfig({
32949
33105
  displayName: "QuantitySelector__StyledContainer",
32950
33106
  componentId: "sc-z4ut57-0"
32951
33107
  })(["position:relative;display:flex;flex-direction:column;align-items:center;padding:1rem;h2{margin:0;margin-bottom:1rem;font-size:1rem;}"]);
32952
- var CloseButton$6 = /*#__PURE__*/styled__default.div.withConfig({
33108
+ var CloseButton$7 = /*#__PURE__*/styled__default.div.withConfig({
32953
33109
  displayName: "QuantitySelector__CloseButton",
32954
33110
  componentId: "sc-z4ut57-1"
32955
33111
  })(["position:absolute;top:3px;right:0px;color:white;z-index:22;font-size:1.5rem;cursor:pointer;"]);
@@ -35578,7 +35734,7 @@ var SkillsContainer = function SkillsContainer(_ref) {
35578
35734
  cancelDrag: "#skillsDiv",
35579
35735
  scale: scale,
35580
35736
  width: "100%"
35581
- }, onCloseButton && React__default.createElement(CloseButton$7, {
35737
+ }, onCloseButton && React__default.createElement(CloseButton$8, {
35582
35738
  onPointerDown: onCloseButton
35583
35739
  }, "X"), React__default.createElement(SkillsContainerDiv, {
35584
35740
  id: "skillsDiv"
@@ -35613,7 +35769,7 @@ var SkillSplitDiv = /*#__PURE__*/styled__default.div.withConfig({
35613
35769
  displayName: "SkillsContainer__SkillSplitDiv",
35614
35770
  componentId: "sc-1g0c67q-2"
35615
35771
  })(["width:100%;font-size:11px;hr{margin:0;margin-bottom:1rem;padding:0px;}p{margin-bottom:0px;}"]);
35616
- var CloseButton$7 = /*#__PURE__*/styled__default.div.withConfig({
35772
+ var CloseButton$8 = /*#__PURE__*/styled__default.div.withConfig({
35617
35773
  displayName: "SkillsContainer__CloseButton",
35618
35774
  componentId: "sc-1g0c67q-3"
35619
35775
  })(["position:absolute;top:2px;right:2px;color:white;z-index:22;font-size:1.1rem;"]);
@@ -36294,7 +36450,7 @@ var TimeWidget = function TimeWidget(_ref) {
36294
36450
  return React__default.createElement(Draggable, {
36295
36451
  scale: scale,
36296
36452
  cancel: ".time-widget-close,.time-widget-container,.time-widget-container *"
36297
- }, React__default.createElement(WidgetContainer, null, React__default.createElement(CloseButton$8, {
36453
+ }, React__default.createElement(WidgetContainer, null, React__default.createElement(CloseButton$9, {
36298
36454
  onPointerDown: onClose,
36299
36455
  className: "time-widget-close"
36300
36456
  }, "X"), React__default.createElement(DayNightContainer, {
@@ -36311,7 +36467,7 @@ var Time = /*#__PURE__*/styled__default.div.withConfig({
36311
36467
  displayName: "TimeWidget__Time",
36312
36468
  componentId: "sc-1ja236h-1"
36313
36469
  })(["top:0.75rem;right:0.5rem;position:absolute;font-size:", ";color:white;"], uiFonts.size.small);
36314
- var CloseButton$8 = /*#__PURE__*/styled__default.p.withConfig({
36470
+ var CloseButton$9 = /*#__PURE__*/styled__default.p.withConfig({
36315
36471
  displayName: "TimeWidget__CloseButton",
36316
36472
  componentId: "sc-1ja236h-2"
36317
36473
  })(["position:absolute;top:-0.5rem;margin:0;right:-0.2rem;font-size:", " !important;z-index:1;"], uiFonts.size.small);