@rpg-engine/long-bow 0.8.35 → 0.8.36

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,17 @@ 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) {
31138
+ })(["display:flex;flex-direction:column;gap:0.5rem;flex:1;padding:0.25rem;min-height:200px;max-height:", ";overflow-y:", ";box-sizing:border-box;@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%;overflow-x:hidden;@media (min-width:320px){grid-template-columns:repeat(auto-fit,minmax(120px,1fr));}@media (min-width:400px){grid-template-columns:repeat(auto-fit,minmax(135px,1fr));gap:0.75rem;}@media (min-width:480px){grid-template-columns:repeat(2,minmax(135px,1fr));gap:1rem;}@media (min-width:768px){grid-template-columns:repeat(3,minmax(135px,1fr));}@media (min-width:", "){grid-template-columns:repeat( ", ",minmax(135px,1fr) );}@media (min-width:", "){grid-template-columns:repeat( ", ",minmax(135px,1fr) );}.PaginatedContent-item{display:flex;align-items:flex-start;justify-content:center;height:", ";width:100%;box-sizing:border-box;min-height:135px;}}&.list{display:flex;flex-direction:column;gap:0.5rem;}"], function (props) {
31091
31139
  return props.$maxHeight;
31092
31140
  }, function (props) {
31093
31141
  return props.$maxHeight ? 'auto' : 'visible';
31094
- }, function (props) {
31142
+ }, UI_BREAKPOINT_MOBILE, function (props) {
31143
+ return Math.min(props.$gridColumns, 4);
31144
+ }, UI_BREAKPOINT_SMALL_LAPTOP, function (props) {
31095
31145
  return props.$gridColumns;
31096
31146
  }, function (props) {
31097
31147
  var _props$$itemHeight;
@@ -31100,7 +31150,7 @@ var Content = /*#__PURE__*/styled__default.div.withConfig({
31100
31150
  var PaginationContainer$1 = /*#__PURE__*/styled__default.div.withConfig({
31101
31151
  displayName: "PaginatedContent__PaginationContainer",
31102
31152
  componentId: "sc-lzp9hn-2"
31103
- })(["display:flex;justify-content:center;padding:1rem;"]);
31153
+ })(["display:flex;justify-content:center;padding:0.5rem;@media (min-width:480px){padding:1rem;}"]);
31104
31154
  var EmptyMessage = /*#__PURE__*/styled__default.div.withConfig({
31105
31155
  displayName: "PaginatedContent__EmptyMessage",
31106
31156
  componentId: "sc-lzp9hn-3"
@@ -31144,20 +31194,24 @@ var InformationCenterCell = function InformationCenterCell(_ref) {
31144
31194
  width: 32,
31145
31195
  height: 32,
31146
31196
  imgScale: 1
31147
- })), React__default.createElement(CellName, null, name));
31197
+ })), React__default.createElement(CellNameContainer, null, React__default.createElement(CellName, null, name)));
31148
31198
  };
31149
31199
  var CellContainer = /*#__PURE__*/styled__default.div.withConfig({
31150
31200
  displayName: "InformationCenterCell__CellContainer",
31151
31201
  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);}"]);
31202
+ })(["position:relative;background:rgba(0,0,0,0.2);padding:0.25rem;border-radius:4px;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;cursor:pointer;transition:background-color 0.2s ease;width:100%;height:100%;min-height:135px;box-sizing:border-box;gap:0.25rem;margin:0;@media (min-width:360px){padding:0.75rem;gap:0.75rem;margin:2px;width:calc(100% - 4px);}@media (min-width:", "){min-height:150px;}&:hover{background:rgba(0,0,0,0.3);}"], UI_BREAKPOINT_MOBILE);
31153
31203
  var SpriteContainer$1 = /*#__PURE__*/styled__default.div.withConfig({
31154
31204
  displayName: "InformationCenterCell__SpriteContainer",
31155
31205
  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;}"]);
31206
+ })(["margin-bottom:0;display:flex;justify-content:center;align-items:center;width:40px;height:40px;position:relative;background:rgba(0,0,0,0.3);border-radius:4px;flex-shrink:0;@media (min-width:360px){width:48px;height:48px;}@media (min-width:480px){width:64px;height:64px;}@media (min-width:", "){width:72px;height:72px;}.sprite-from-atlas-img{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%) scale(2);image-rendering:pixelated;}"], UI_BREAKPOINT_MOBILE);
31207
+ var CellNameContainer = /*#__PURE__*/styled__default.div.withConfig({
31208
+ displayName: "InformationCenterCell__CellNameContainer",
31209
+ componentId: "sc-w48fdf-2"
31210
+ })(["display:flex;flex-direction:column;align-items:center;justify-content:flex-start;flex:1;width:100%;padding-top:0.25rem;"]);
31157
31211
  var CellName = /*#__PURE__*/styled__default.h3.withConfig({
31158
31212
  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%;"]);
31213
+ componentId: "sc-w48fdf-3"
31214
+ })(["font-size:0.55rem;color:#fef08a;margin:0;text-align:center;font-family:'Press Start 2P',cursive;line-height:1.2;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.6rem;}@media (min-width:480px){font-size:0.7rem;}@media (min-width:", "){font-size:0.8rem;}"], UI_BREAKPOINT_MOBILE);
31161
31215
 
31162
31216
  var BaseInformationDetails = function BaseInformationDetails(_ref) {
31163
31217
  var name = _ref.name,
@@ -31498,18 +31552,64 @@ var AdvancedFilters = function AdvancedFilters(_ref) {
31498
31552
  case 'dropdown':
31499
31553
  return React__default.createElement(FilterSection, {
31500
31554
  key: section.key
31501
- }, React__default.createElement(Label$1, null, section.label), React__default.createElement(Dropdown, {
31555
+ }, React__default.createElement(Label$1, null, section.label), React__default.createElement(StyledDropdownWrapper, null, React__default.createElement(Dropdown, {
31502
31556
  options: section.options || [],
31503
31557
  onChange: section.onChange,
31504
31558
  width: "100%"
31505
- }));
31559
+ })));
31506
31560
  default:
31507
31561
  return null;
31508
31562
  }
31509
31563
  };
31564
+ // Calculate button position for the portal
31565
+ var _React$useState = React__default.useState({
31566
+ top: 0,
31567
+ left: 0,
31568
+ isMobile: false
31569
+ }),
31570
+ buttonPosition = _React$useState[0],
31571
+ setButtonPosition = _React$useState[1];
31572
+ var buttonRef = React.useRef(null);
31573
+ var panelRef = React.useRef(null);
31574
+ React.useEffect(function () {
31575
+ if (isOpen && buttonRef.current) {
31576
+ var rect = buttonRef.current.getBoundingClientRect();
31577
+ var isMobileView = window.innerWidth < 480;
31578
+ if (isMobileView) {
31579
+ // Center in the screen for mobile
31580
+ setButtonPosition({
31581
+ top: Math.max(50, window.innerHeight / 2 - 150),
31582
+ left: window.innerWidth / 2,
31583
+ isMobile: true
31584
+ });
31585
+ } else {
31586
+ // Position below the button for larger screens
31587
+ setButtonPosition({
31588
+ top: rect.bottom + window.scrollY,
31589
+ left: rect.left + rect.width / 2 + window.scrollX,
31590
+ isMobile: false
31591
+ });
31592
+ }
31593
+ }
31594
+ }, [isOpen]);
31595
+ // Handle click outside to close the panel
31596
+ React.useEffect(function () {
31597
+ var handleClickOutside = function handleClickOutside(event) {
31598
+ if (isOpen && panelRef.current && !panelRef.current.contains(event.target) && buttonRef.current && !buttonRef.current.contains(event.target)) {
31599
+ onToggle();
31600
+ }
31601
+ };
31602
+ if (isOpen) {
31603
+ document.addEventListener('mousedown', handleClickOutside);
31604
+ }
31605
+ return function () {
31606
+ document.removeEventListener('mousedown', handleClickOutside);
31607
+ };
31608
+ }, [isOpen, onToggle]);
31510
31609
  return React__default.createElement(Container$q, null, React__default.createElement(FilterButton, {
31511
31610
  onClick: onToggle,
31512
- "$hasActiveFilters": hasActiveFilters
31611
+ "$hasActiveFilters": hasActiveFilters,
31612
+ ref: buttonRef
31513
31613
  }, hasActiveFilters ? React__default.createElement(ai.AiFillFilter, {
31514
31614
  size: 20
31515
31615
  }) : React__default.createElement(ai.AiOutlineFilter, {
@@ -31522,9 +31622,21 @@ var AdvancedFilters = function AdvancedFilters(_ref) {
31522
31622
  return rangeValue[0] !== undefined || rangeValue[1] !== undefined;
31523
31623
  }
31524
31624
  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, {
31625
+ }).length)), isOpen && React__default.createElement(Portal, null, React__default.createElement(FiltersPanel, {
31626
+ ref: panelRef,
31627
+ style: {
31628
+ position: 'fixed',
31629
+ top: buttonPosition.top + "px",
31630
+ left: buttonPosition.left + "px",
31631
+ transform: 'translateX(-50%)',
31632
+ zIndex: 9999
31633
+ },
31634
+ "$isMobile": buttonPosition.isMobile
31635
+ }, React__default.createElement(FilterHeader, null, React__default.createElement(FilterTitle, null, "Advanced Filters"), buttonPosition.isMobile && React__default.createElement(CloseButton$6, {
31636
+ onClick: onToggle
31637
+ }, "\xD7")), sections.map(renderFilterSection), hasActiveFilters && React__default.createElement(ClearFiltersButton, {
31526
31638
  onClick: onClearAll
31527
- }, "Clear All Filters")));
31639
+ }, "Clear All Filters"))));
31528
31640
  };
31529
31641
  var Container$q = /*#__PURE__*/styled__default.div.withConfig({
31530
31642
  displayName: "AdvancedFilters__Container",
@@ -31553,7 +31665,9 @@ var FilterCount = /*#__PURE__*/styled__default.div.withConfig({
31553
31665
  var FiltersPanel = /*#__PURE__*/styled__default.div.withConfig({
31554
31666
  displayName: "AdvancedFilters__FiltersPanel",
31555
31667
  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);}"]);
31668
+ })(["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) {
31669
+ return props.$isMobile ? 'none' : 'block';
31670
+ });
31557
31671
  var FilterHeader = /*#__PURE__*/styled__default.div.withConfig({
31558
31672
  displayName: "AdvancedFilters__FilterHeader",
31559
31673
  componentId: "sc-1xj6ldr-4"
@@ -31561,7 +31675,7 @@ var FilterHeader = /*#__PURE__*/styled__default.div.withConfig({
31561
31675
  var FilterTitle = /*#__PURE__*/styled__default.div.withConfig({
31562
31676
  displayName: "AdvancedFilters__FilterTitle",
31563
31677
  componentId: "sc-1xj6ldr-5"
31564
- })(["font-weight:600;color:#ffd700;font-size:0.875rem;"]);
31678
+ })(["font-weight:600;color:#ffd700;font-size:0.75rem;"]);
31565
31679
  var FilterSection = /*#__PURE__*/styled__default.div.withConfig({
31566
31680
  displayName: "AdvancedFilters__FilterSection",
31567
31681
  componentId: "sc-1xj6ldr-6"
@@ -31569,15 +31683,23 @@ var FilterSection = /*#__PURE__*/styled__default.div.withConfig({
31569
31683
  var Label$1 = /*#__PURE__*/styled__default.div.withConfig({
31570
31684
  displayName: "AdvancedFilters__Label",
31571
31685
  componentId: "sc-1xj6ldr-7"
31572
- })(["color:#999;font-size:0.75rem;text-transform:uppercase;letter-spacing:0.05em;"]);
31686
+ })(["color:#999;font-size:0.65rem;text-transform:uppercase;letter-spacing:0.05em;"]);
31573
31687
  var RangeInputs = /*#__PURE__*/styled__default.div.withConfig({
31574
31688
  displayName: "AdvancedFilters__RangeInputs",
31575
31689
  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;}"]);
31690
+ })(["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
31691
  var ClearFiltersButton = /*#__PURE__*/styled__default.button.withConfig({
31578
31692
  displayName: "AdvancedFilters__ClearFiltersButton",
31579
31693
  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;}"]);
31694
+ })(["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;}"]);
31695
+ var CloseButton$6 = /*#__PURE__*/styled__default.button.withConfig({
31696
+ displayName: "AdvancedFilters__CloseButton",
31697
+ componentId: "sc-1xj6ldr-10"
31698
+ })(["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;}"]);
31699
+ var StyledDropdownWrapper = /*#__PURE__*/styled__default.div.withConfig({
31700
+ displayName: "AdvancedFilters__StyledDropdownWrapper",
31701
+ componentId: "sc-1xj6ldr-11"
31702
+ })([".rpgui-dropdown-imp{font-size:0.8rem;min-height:unset;padding-top:0.3rem;}"]);
31581
31703
 
31582
31704
  var ItemsAdvancedFilters = function ItemsAdvancedFilters(_ref) {
31583
31705
  var isOpen = _ref.isOpen,
@@ -31751,7 +31873,7 @@ var InformationCenterItemsSection = function InformationCenterItemsSection(_ref)
31751
31873
  dependencies: [selectedItemCategory, selectedTier],
31752
31874
  tabId: tabId,
31753
31875
  layout: "grid",
31754
- itemHeight: "180px"
31876
+ itemHeight: isMobile ? '150px' : '180px'
31755
31877
  }), !isMobile && tooltipState && tooltipState.item && React__default.createElement(Portal, null, React__default.createElement(TooltipWrapper, {
31756
31878
  width: TOOLTIP_WIDTH,
31757
31879
  style: {
@@ -32351,7 +32473,7 @@ var InformationCenterBestiarySection = function InformationCenterBestiarySection
32351
32473
  rightElement: SearchBarRightElement
32352
32474
  },
32353
32475
  dependencies: [selectedBestiaryCategory, levelRange, selectedSubtype, selectedAttackType],
32354
- itemHeight: "180px"
32476
+ itemHeight: isMobile ? '150px' : '180px'
32355
32477
  }), !isMobile && tooltipState && tooltipState.item && React__default.createElement(Portal, null, React__default.createElement(TooltipWrapper$1, {
32356
32478
  width: TOOLTIP_WIDTH,
32357
32479
  style: {
@@ -32401,6 +32523,7 @@ var InformationCenterTutorialsSection = function InformationCenterTutorialsSecti
32401
32523
  var videoGuides = _ref.videoGuides,
32402
32524
  initialSearchQuery = _ref.initialSearchQuery,
32403
32525
  tabId = _ref.tabId;
32526
+ var isMobile = shared.isMobileOrTablet();
32404
32527
  var _useState = React.useState(initialSearchQuery),
32405
32528
  searchQuery = _useState[0],
32406
32529
  setSearchQuery = _useState[1];
@@ -32451,7 +32574,7 @@ var InformationCenterTutorialsSection = function InformationCenterTutorialsSecti
32451
32574
  maxLines: 2
32452
32575
  }, guide.title)), React__default.createElement(GuideDescription, null, React__default.createElement(Ellipsis, {
32453
32576
  maxWidth: "100%",
32454
- maxLines: 5
32577
+ maxLines: isMobile ? 3 : 5
32455
32578
  }, guide.description)), React__default.createElement(GuideLabelsContainer, null, React__default.createElement(GuideCategory, null, guide.category), React__default.createElement(GuideLanguage, null, guide.language))));
32456
32579
  };
32457
32580
  var filteredGuides = React.useMemo(function () {
@@ -32489,9 +32612,9 @@ var InformationCenterTutorialsSection = function InformationCenterTutorialsSecti
32489
32612
  dependencies: [selectedCategory],
32490
32613
  tabId: tabId,
32491
32614
  layout: "grid",
32492
- gridColumns: GRID_COLUMNS,
32615
+ gridColumns: isMobile ? 1 : GRID_COLUMNS,
32493
32616
  itemsPerPage: ITEMS_PER_PAGE$2,
32494
- itemHeight: "320px"
32617
+ itemHeight: isMobile ? '280px' : '320px'
32495
32618
  });
32496
32619
  };
32497
32620
  var GuideItem = /*#__PURE__*/styled__default.div.withConfig({
@@ -32548,6 +32671,7 @@ var InformationCenter = function InformationCenter(_ref) {
32548
32671
  var _useState = React.useState('bestiary'),
32549
32672
  activeTab = _useState[0],
32550
32673
  setActiveTab = _useState[1];
32674
+ var isMobile = shared.isMobileOrTablet();
32551
32675
  if (loading) {
32552
32676
  return React__default.createElement(LoadingMessage, null, "Loading...");
32553
32677
  }
@@ -32590,7 +32714,9 @@ var InformationCenter = function InformationCenter(_ref) {
32590
32714
  }];
32591
32715
  return React__default.createElement(DraggableContainer, {
32592
32716
  title: "Information Center",
32593
- type: exports.RPGUIContainerTypes.Framed
32717
+ type: exports.RPGUIContainerTypes.Framed,
32718
+ width: isMobile ? '95%' : '80%',
32719
+ minWidth: "300px"
32594
32720
  }, React__default.createElement(Container$r, null, React__default.createElement(InternalTabs, {
32595
32721
  tabs: tabs,
32596
32722
  activeTextColor: "#000000",
@@ -32605,7 +32731,7 @@ var InformationCenter = function InformationCenter(_ref) {
32605
32731
  var Container$r = /*#__PURE__*/styled__default.div.withConfig({
32606
32732
  displayName: "InformationCenter__Container",
32607
32733
  componentId: "sc-1ttl62e-0"
32608
- })(["width:100%;max-width:800px;margin:0 auto;padding:1rem;"]);
32734
+ })(["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;}@media (min-width:", "){max-width:900px;padding:1rem;}@media (min-width:", "){max-width:1200px;}"], UI_BREAKPOINT_MOBILE, UI_BREAKPOINT_SMALL_LAPTOP);
32609
32735
  var LoadingMessage = /*#__PURE__*/styled__default.div.withConfig({
32610
32736
  displayName: "InformationCenter__LoadingMessage",
32611
32737
  componentId: "sc-1ttl62e-1"
@@ -32904,7 +33030,7 @@ var QuantitySelector = function QuantitySelector(_ref) {
32904
33030
  return React__default.createElement(StyledContainer, {
32905
33031
  type: exports.RPGUIContainerTypes.Framed,
32906
33032
  width: "25rem"
32907
- }, React__default.createElement(CloseButton$6, {
33033
+ }, React__default.createElement(CloseButton$7, {
32908
33034
  className: "container-close",
32909
33035
  onPointerDown: onClose
32910
33036
  }, "X"), React__default.createElement("h2", null, title), React__default.createElement(StyledForm, {
@@ -32949,7 +33075,7 @@ var StyledContainer = /*#__PURE__*/styled__default(RPGUIContainer).withConfig({
32949
33075
  displayName: "QuantitySelector__StyledContainer",
32950
33076
  componentId: "sc-z4ut57-0"
32951
33077
  })(["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({
33078
+ var CloseButton$7 = /*#__PURE__*/styled__default.div.withConfig({
32953
33079
  displayName: "QuantitySelector__CloseButton",
32954
33080
  componentId: "sc-z4ut57-1"
32955
33081
  })(["position:absolute;top:3px;right:0px;color:white;z-index:22;font-size:1.5rem;cursor:pointer;"]);
@@ -35578,7 +35704,7 @@ var SkillsContainer = function SkillsContainer(_ref) {
35578
35704
  cancelDrag: "#skillsDiv",
35579
35705
  scale: scale,
35580
35706
  width: "100%"
35581
- }, onCloseButton && React__default.createElement(CloseButton$7, {
35707
+ }, onCloseButton && React__default.createElement(CloseButton$8, {
35582
35708
  onPointerDown: onCloseButton
35583
35709
  }, "X"), React__default.createElement(SkillsContainerDiv, {
35584
35710
  id: "skillsDiv"
@@ -35613,7 +35739,7 @@ var SkillSplitDiv = /*#__PURE__*/styled__default.div.withConfig({
35613
35739
  displayName: "SkillsContainer__SkillSplitDiv",
35614
35740
  componentId: "sc-1g0c67q-2"
35615
35741
  })(["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({
35742
+ var CloseButton$8 = /*#__PURE__*/styled__default.div.withConfig({
35617
35743
  displayName: "SkillsContainer__CloseButton",
35618
35744
  componentId: "sc-1g0c67q-3"
35619
35745
  })(["position:absolute;top:2px;right:2px;color:white;z-index:22;font-size:1.1rem;"]);
@@ -36294,7 +36420,7 @@ var TimeWidget = function TimeWidget(_ref) {
36294
36420
  return React__default.createElement(Draggable, {
36295
36421
  scale: scale,
36296
36422
  cancel: ".time-widget-close,.time-widget-container,.time-widget-container *"
36297
- }, React__default.createElement(WidgetContainer, null, React__default.createElement(CloseButton$8, {
36423
+ }, React__default.createElement(WidgetContainer, null, React__default.createElement(CloseButton$9, {
36298
36424
  onPointerDown: onClose,
36299
36425
  className: "time-widget-close"
36300
36426
  }, "X"), React__default.createElement(DayNightContainer, {
@@ -36311,7 +36437,7 @@ var Time = /*#__PURE__*/styled__default.div.withConfig({
36311
36437
  displayName: "TimeWidget__Time",
36312
36438
  componentId: "sc-1ja236h-1"
36313
36439
  })(["top:0.75rem;right:0.5rem;position:absolute;font-size:", ";color:white;"], uiFonts.size.small);
36314
- var CloseButton$8 = /*#__PURE__*/styled__default.p.withConfig({
36440
+ var CloseButton$9 = /*#__PURE__*/styled__default.p.withConfig({
36315
36441
  displayName: "TimeWidget__CloseButton",
36316
36442
  componentId: "sc-1ja236h-2"
36317
36443
  })(["position:absolute;top:-0.5rem;margin:0;right:-0.2rem;font-size:", " !important;z-index:1;"], uiFonts.size.small);