@rpg-engine/long-bow 0.8.33 → 0.8.35

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.
@@ -31879,6 +31879,12 @@ var InformationCenterNPCDetails = function InformationCenterNPCDetails(_ref) {
31879
31879
  var _useState2 = useState(1),
31880
31880
  currentLootPage = _useState2[0],
31881
31881
  setCurrentLootPage = _useState2[1];
31882
+ var _useState3 = useState(null),
31883
+ selectedItem = _useState3[0],
31884
+ setSelectedItem = _useState3[1];
31885
+ useEffect(function () {
31886
+ setCurrentLootPage(1);
31887
+ }, [lootSearchQuery]);
31882
31888
  var formatText = function formatText(text) {
31883
31889
  if (typeof text === 'number') {
31884
31890
  return text.toString();
@@ -31910,6 +31916,25 @@ var InformationCenterNPCDetails = function InformationCenterNPCDetails(_ref) {
31910
31916
  })) || [];
31911
31917
  var totalLootPages = Math.ceil(filteredLoots.length / ITEMS_PER_PAGE$1);
31912
31918
  var paginatedLoots = filteredLoots.slice((currentLootPage - 1) * ITEMS_PER_PAGE$1, currentLootPage * ITEMS_PER_PAGE$1);
31919
+ var handleItemClick = function handleItemClick(loot) {
31920
+ var item = {
31921
+ key: loot.itemBlueprintKey,
31922
+ name: formatItemName(loot.itemBlueprintKey),
31923
+ texturePath: loot.itemBlueprintKey,
31924
+ textureAtlas: 'items',
31925
+ type: ItemType.Weapon,
31926
+ subType: ItemSubType.Sword,
31927
+ tier: 1,
31928
+ rarity: ItemRarities.Common,
31929
+ weight: 0,
31930
+ maxStackSize: loot.quantityRange ? loot.quantityRange[1] : 1,
31931
+ canSell: true,
31932
+ description: 'A basic item.',
31933
+ basePrice: 100,
31934
+ allowedEquipSlotType: []
31935
+ };
31936
+ setSelectedItem(item);
31937
+ };
31913
31938
  return React.createElement(BaseInformationDetails, {
31914
31939
  name: npc.name,
31915
31940
  spriteKey: npc.key,
@@ -31924,11 +31949,17 @@ var InformationCenterNPCDetails = function InformationCenterNPCDetails(_ref) {
31924
31949
  defaultOpen: !isMobile
31925
31950
  }, React.createElement(LootSearchContainer, null, React.createElement(StyledSearchBar$1, {
31926
31951
  value: lootSearchQuery,
31927
- onChange: setLootSearchQuery,
31952
+ onChange: function onChange(query) {
31953
+ setLootSearchQuery(query);
31954
+ setCurrentLootPage(1);
31955
+ },
31928
31956
  placeholder: "Search loot..."
31929
31957
  })), React.createElement(LootGrid, null, paginatedLoots.map(function (loot, index) {
31930
31958
  return React.createElement(LootItem, {
31931
- key: index
31959
+ key: loot.itemBlueprintKey + "-" + index,
31960
+ onClick: function onClick() {
31961
+ return handleItemClick(loot);
31962
+ }
31932
31963
  }, React.createElement(SpriteFromAtlas, {
31933
31964
  atlasJSON: itemsAtlasJSON,
31934
31965
  atlasIMG: itemsAtlasIMG,
@@ -31962,7 +31993,15 @@ var InformationCenterNPCDetails = function InformationCenterNPCDetails(_ref) {
31962
31993
  height: 24,
31963
31994
  imgScale: 1
31964
31995
  })), React.createElement(SpellContent, null, React.createElement(SpellName, null, formatText(spell.spellKey)), React.createElement(SpellDetails, null, "Power: ", React.createElement(SpellValue, null, formatText(spell.power)), React.createElement(Separator, null, "\u2022"), "Chance: ", React.createElement(SpellValue, null, spell.probability, "%"))));
31965
- }))));
31996
+ }))), selectedItem && React.createElement(Portal, null, React.createElement(InformationCenterItemDetails, {
31997
+ item: selectedItem,
31998
+ itemsAtlasJSON: itemsAtlasJSON,
31999
+ itemsAtlasIMG: itemsAtlasIMG,
32000
+ droppedBy: [npc],
32001
+ onBack: function onBack() {
32002
+ return setSelectedItem(null);
32003
+ }
32004
+ })));
31966
32005
  };
31967
32006
  var InfoSection$1 = /*#__PURE__*/styled.div.withConfig({
31968
32007
  displayName: "InformationCenterNPCDetails__InfoSection",
@@ -32047,27 +32086,27 @@ var LootGrid = /*#__PURE__*/styled.div.withConfig({
32047
32086
  var LootItem = /*#__PURE__*/styled.div.withConfig({
32048
32087
  displayName: "InformationCenterNPCDetails__LootItem",
32049
32088
  componentId: "sc-fdu3xl-20"
32050
- })(["display:flex;align-items:center;gap:4px;background:rgba(255,255,255,0.05);padding:4px;border-radius:4px;min-width:0;"]);
32089
+ })(["display:flex;align-items:center;gap:4px;background:rgba(255,255,255,0.05);padding:4px;border-radius:4px;min-width:0;cursor:pointer;user-select:none;transition:background-color 0.2s ease;&:hover{background:rgba(255,255,255,0.1);}"]);
32051
32090
  var LootDetails = /*#__PURE__*/styled.div.withConfig({
32052
32091
  displayName: "InformationCenterNPCDetails__LootDetails",
32053
32092
  componentId: "sc-fdu3xl-21"
32054
- })(["flex:1;display:flex;flex-direction:column;gap:4px;"]);
32093
+ })(["flex:1;display:flex;flex-direction:column;gap:4px;user-select:none;"]);
32055
32094
  var LootName = /*#__PURE__*/styled.div.withConfig({
32056
32095
  displayName: "InformationCenterNPCDetails__LootName",
32057
32096
  componentId: "sc-fdu3xl-22"
32058
- })(["color:", ";font-size:0.5rem;"], uiColors.white);
32097
+ })(["color:", ";font-size:0.5rem;user-select:none;"], uiColors.white);
32059
32098
  var LootInfo = /*#__PURE__*/styled.div.withConfig({
32060
32099
  displayName: "InformationCenterNPCDetails__LootInfo",
32061
32100
  componentId: "sc-fdu3xl-23"
32062
- })(["display:flex;align-items:center;gap:8px;"]);
32101
+ })(["display:flex;align-items:center;gap:8px;user-select:none;"]);
32063
32102
  var LootChance = /*#__PURE__*/styled.span.withConfig({
32064
32103
  displayName: "InformationCenterNPCDetails__LootChance",
32065
32104
  componentId: "sc-fdu3xl-24"
32066
- })(["color:", ";font-size:0.45rem;"], uiColors.yellow);
32105
+ })(["color:", ";font-size:0.45rem;user-select:none;"], uiColors.yellow);
32067
32106
  var LootQuantity = /*#__PURE__*/styled.span.withConfig({
32068
32107
  displayName: "InformationCenterNPCDetails__LootQuantity",
32069
32108
  componentId: "sc-fdu3xl-25"
32070
- })(["color:", ";font-size:0.45rem;"], uiColors.lightGray);
32109
+ })(["color:", ";font-size:0.45rem;user-select:none;"], uiColors.lightGray);
32071
32110
  var PaginationContainer$2 = /*#__PURE__*/styled.div.withConfig({
32072
32111
  displayName: "InformationCenterNPCDetails__PaginationContainer",
32073
32112
  componentId: "sc-fdu3xl-26"
@@ -32351,55 +32390,6 @@ var SearchBarActions$1 = /*#__PURE__*/styled.div.withConfig({
32351
32390
  componentId: "sc-e3h0p2-1"
32352
32391
  })(["display:flex;align-items:center;gap:0.5rem;"]);
32353
32392
 
32354
- var InformationCenterFAQSection = function InformationCenterFAQSection(_ref) {
32355
- var faqItems = _ref.faqItems,
32356
- initialSearchQuery = _ref.initialSearchQuery,
32357
- tabId = _ref.tabId;
32358
- var _useState = useState(initialSearchQuery),
32359
- searchQuery = _useState[0],
32360
- setSearchQuery = _useState[1];
32361
- useEffect(function () {
32362
- setSearchQuery(initialSearchQuery);
32363
- }, [initialSearchQuery]);
32364
- var filteredFaqs = useMemo(function () {
32365
- if (!searchQuery) return faqItems;
32366
- return faqItems.filter(function (faq) {
32367
- return faq.question.toLowerCase().includes(searchQuery.toLowerCase()) || faq.answer.toLowerCase().includes(searchQuery.toLowerCase());
32368
- });
32369
- }, [searchQuery, faqItems]);
32370
- var renderItem = function renderItem(item) {
32371
- return React.createElement(StyledCollapsible$2, {
32372
- title: item.question
32373
- }, React.createElement(Answer$1, null, item.answer));
32374
- };
32375
- return React.createElement(Container$r, null, React.createElement(SearchHeader, {
32376
- searchOptions: {
32377
- value: searchQuery,
32378
- onChange: setSearchQuery,
32379
- placeholder: 'Search FAQs...'
32380
- }
32381
- }), React.createElement(PaginatedContent, {
32382
- items: filteredFaqs,
32383
- renderItem: renderItem,
32384
- emptyMessage: "No FAQ items found",
32385
- tabId: tabId,
32386
- layout: "list",
32387
- itemsPerPage: 10
32388
- }));
32389
- };
32390
- var Container$r = /*#__PURE__*/styled.div.withConfig({
32391
- displayName: "InformationCenterFaqSection__Container",
32392
- componentId: "sc-ofmaa9-0"
32393
- })(["display:flex;flex-direction:column;gap:1rem;width:100%;"]);
32394
- var StyledCollapsible$2 = /*#__PURE__*/styled(Collapsible).withConfig({
32395
- displayName: "InformationCenterFaqSection__StyledCollapsible",
32396
- componentId: "sc-ofmaa9-1"
32397
- })(["margin-bottom:0.5rem;&:last-child{margin-bottom:0;}"]);
32398
- var Answer$1 = /*#__PURE__*/styled.p.withConfig({
32399
- displayName: "InformationCenterFaqSection__Answer",
32400
- componentId: "sc-ofmaa9-2"
32401
- })(["font-size:0.9rem;color:#ffffff;margin:0;line-height:1.5;"]);
32402
-
32403
32393
  var ITEMS_PER_PAGE$2 = 3;
32404
32394
  var GRID_COLUMNS = 3;
32405
32395
  var InformationCenterTutorialsSection = function InformationCenterTutorialsSection(_ref) {
@@ -32539,8 +32529,6 @@ var InformationCenter = function InformationCenter(_ref) {
32539
32529
  entitiesAtlasIMG = _ref.entitiesAtlasIMG,
32540
32530
  iconsAtlasIMG = _ref.iconsAtlasIMG,
32541
32531
  iconsAtlasJSON = _ref.iconsAtlasJSON,
32542
- _ref$faqItems = _ref.faqItems,
32543
- faqItems = _ref$faqItems === void 0 ? [] : _ref$faqItems,
32544
32532
  _ref$bestiaryItems = _ref.bestiaryItems,
32545
32533
  bestiaryItems = _ref$bestiaryItems === void 0 ? [] : _ref$bestiaryItems,
32546
32534
  _ref$videoGuides = _ref.videoGuides,
@@ -32586,14 +32574,6 @@ var InformationCenter = function InformationCenter(_ref) {
32586
32574
  initialSearchQuery: initialSearchQuery,
32587
32575
  tabId: "items"
32588
32576
  })
32589
- }, {
32590
- id: 'faq',
32591
- title: 'FAQ',
32592
- content: React.createElement(InformationCenterFAQSection, {
32593
- faqItems: faqItems,
32594
- initialSearchQuery: initialSearchQuery,
32595
- tabId: "faq"
32596
- })
32597
32577
  }, {
32598
32578
  id: 'tutorials',
32599
32579
  title: 'Tutorials',
@@ -32606,7 +32586,7 @@ var InformationCenter = function InformationCenter(_ref) {
32606
32586
  return React.createElement(DraggableContainer, {
32607
32587
  title: "Information Center",
32608
32588
  type: RPGUIContainerTypes.Framed
32609
- }, React.createElement(Container$s, null, React.createElement(InternalTabs, {
32589
+ }, React.createElement(Container$r, null, React.createElement(InternalTabs, {
32610
32590
  tabs: tabs,
32611
32591
  activeTextColor: "#000000",
32612
32592
  activeTab: activeTab,
@@ -32617,7 +32597,7 @@ var InformationCenter = function InformationCenter(_ref) {
32617
32597
  hoverColor: "#fef3c7"
32618
32598
  })));
32619
32599
  };
32620
- var Container$s = /*#__PURE__*/styled.div.withConfig({
32600
+ var Container$r = /*#__PURE__*/styled.div.withConfig({
32621
32601
  displayName: "InformationCenter__Container",
32622
32602
  componentId: "sc-1ttl62e-0"
32623
32603
  })(["width:100%;max-width:800px;margin:0 auto;padding:1rem;"]);
@@ -32788,7 +32768,7 @@ var ShortcutsSetter = function ShortcutsSetter(_ref) {
32788
32768
  }
32789
32769
  return null;
32790
32770
  };
32791
- return React.createElement(Container$t, null, React.createElement("p", null, "Shortcuts:"), React.createElement(List, {
32771
+ return React.createElement(Container$s, null, React.createElement("p", null, "Shortcuts:"), React.createElement(List, {
32792
32772
  id: "shortcuts_list"
32793
32773
  }, Array.from({
32794
32774
  length: 12
@@ -32806,7 +32786,7 @@ var ShortcutsSetter = function ShortcutsSetter(_ref) {
32806
32786
  }, getContent(i));
32807
32787
  })));
32808
32788
  };
32809
- var Container$t = /*#__PURE__*/styled.div.withConfig({
32789
+ var Container$s = /*#__PURE__*/styled.div.withConfig({
32810
32790
  displayName: "ShortcutsSetter__Container",
32811
32791
  componentId: "sc-xuouuf-0"
32812
32792
  })(["p{margin:0;margin-left:0.5rem;font-size:10px;}width:100%;"]);
@@ -33251,7 +33231,7 @@ var ConfirmModal = function ConfirmModal(_ref) {
33251
33231
  e.stopPropagation();
33252
33232
  onClose();
33253
33233
  };
33254
- return React.createElement(ModalPortal, null, React.createElement(Background, null), React.createElement(Container$u, {
33234
+ return React.createElement(ModalPortal, null, React.createElement(Background, null), React.createElement(Container$t, {
33255
33235
  onClick: handleClose
33256
33236
  }, React.createElement(DraggableContainer, {
33257
33237
  width: "auto",
@@ -33274,7 +33254,7 @@ var Background = /*#__PURE__*/styled.div.withConfig({
33274
33254
  displayName: "ConfirmModal__Background",
33275
33255
  componentId: "sc-11qkyu1-0"
33276
33256
  })(["position:absolute;width:100%;height:100%;background-color:#000000;opacity:0.5;left:0;top:0;z-index:1000;"]);
33277
- var Container$u = /*#__PURE__*/styled.div.withConfig({
33257
+ var Container$t = /*#__PURE__*/styled.div.withConfig({
33278
33258
  displayName: "ConfirmModal__Container",
33279
33259
  componentId: "sc-11qkyu1-1"
33280
33260
  })(["position:absolute;width:100%;height:100%;left:0;top:0;display:flex;justify-content:center;align-items:center;z-index:1001;"]);
@@ -33329,7 +33309,7 @@ var ColorSelector = function ColorSelector(_ref) {
33329
33309
  cancelDrag: ".react-colorful",
33330
33310
  width: "25rem",
33331
33311
  onCloseButton: onClose
33332
- }, React.createElement(Container$v, null, React.createElement(Header$3, null, "Select Color"), React.createElement(ColorPickerWrapper, null, React.createElement(HexColorPicker, {
33312
+ }, React.createElement(Container$u, null, React.createElement(Header$3, null, "Select Color"), React.createElement(ColorPickerWrapper, null, React.createElement(HexColorPicker, {
33333
33313
  color: currentColor,
33334
33314
  onChange: function onChange(color) {
33335
33315
  setCurrentColor(color);
@@ -33345,7 +33325,7 @@ var ColorSelector = function ColorSelector(_ref) {
33345
33325
  onClose: handleClose
33346
33326
  }));
33347
33327
  };
33348
- var Container$v = /*#__PURE__*/styled.div.withConfig({
33328
+ var Container$u = /*#__PURE__*/styled.div.withConfig({
33349
33329
  displayName: "ItemPropertyColorSelector__Container",
33350
33330
  componentId: "sc-me1r4z-0"
33351
33331
  })(["text-align:center;background:inherit;display:flex;flex-direction:column;gap:1.5rem;align-items:center;width:100%;max-width:24rem;margin:0 auto;"]);
@@ -33701,7 +33681,7 @@ var ListMenu = function ListMenu(_ref) {
33701
33681
  onSelected = _ref.onSelected,
33702
33682
  x = _ref.x,
33703
33683
  y = _ref.y;
33704
- return React.createElement(Container$w, {
33684
+ return React.createElement(Container$v, {
33705
33685
  x: x,
33706
33686
  y: y
33707
33687
  }, React.createElement("ul", {
@@ -33718,7 +33698,7 @@ var ListMenu = function ListMenu(_ref) {
33718
33698
  }, (params == null ? void 0 : params.text) || 'No text');
33719
33699
  })));
33720
33700
  };
33721
- var Container$w = /*#__PURE__*/styled.div.withConfig({
33701
+ var Container$v = /*#__PURE__*/styled.div.withConfig({
33722
33702
  displayName: "ListMenu__Container",
33723
33703
  componentId: "sc-i9097t-0"
33724
33704
  })(["display:flex;flex-direction:column;width:100%;justify-content:start;align-items:flex-start;position:absolute;top:", "px;left:", "px;li{font-size:", ";}"], function (props) {
@@ -33737,7 +33717,7 @@ var Pager = function Pager(_ref) {
33737
33717
  itemsPerPage = _ref.itemsPerPage,
33738
33718
  onPageChange = _ref.onPageChange;
33739
33719
  var totalPages = Math.ceil(totalItems / itemsPerPage);
33740
- return React.createElement(Container$x, null, React.createElement("p", null, "Total items: ", totalItems), React.createElement(PagerContainer, null, React.createElement("button", {
33720
+ return React.createElement(Container$w, null, React.createElement("p", null, "Total items: ", totalItems), React.createElement(PagerContainer, null, React.createElement("button", {
33741
33721
  disabled: currentPage === 1,
33742
33722
  onPointerDown: function onPointerDown() {
33743
33723
  return onPageChange(Math.max(currentPage - 1, 1));
@@ -33751,7 +33731,7 @@ var Pager = function Pager(_ref) {
33751
33731
  }
33752
33732
  }, '>')));
33753
33733
  };
33754
- var Container$x = /*#__PURE__*/styled.div.withConfig({
33734
+ var Container$w = /*#__PURE__*/styled.div.withConfig({
33755
33735
  displayName: "Pager__Container",
33756
33736
  componentId: "sc-1ekmf50-0"
33757
33737
  })(["display:flex;flex-direction:column;align-items:center;p{margin:0;font-size:", ";}"], uiFonts.size.xsmall);
@@ -34272,13 +34252,13 @@ var TabBody = function TabBody(_ref) {
34272
34252
  children = _ref.children,
34273
34253
  styles = _ref.styles,
34274
34254
  centerContent = _ref.centerContent;
34275
- return React.createElement(Container$y, {
34255
+ return React.createElement(Container$x, {
34276
34256
  styles: styles,
34277
34257
  "data-tab-id": id,
34278
34258
  centerContent: centerContent
34279
34259
  }, children);
34280
34260
  };
34281
- var Container$y = /*#__PURE__*/styled.div.withConfig({
34261
+ var Container$x = /*#__PURE__*/styled.div.withConfig({
34282
34262
  displayName: "TabBody__Container",
34283
34263
  componentId: "sc-196oof2-0"
34284
34264
  })(["width:", ";height:", ";overflow-y:auto;display:", ";justify-content:", ";align-items:", ";"], function (props) {
@@ -34931,7 +34911,7 @@ var ProgressBar = function ProgressBar(_ref) {
34931
34911
  }
34932
34912
  return value * 100 / max;
34933
34913
  };
34934
- return React.createElement(Container$z, {
34914
+ return React.createElement(Container$y, {
34935
34915
  className: "rpgui-progress",
34936
34916
  "data-value": calculatePercentageValue(max, value) / 100,
34937
34917
  "data-rpguitype": "progress",
@@ -34961,7 +34941,7 @@ var TextOverlay$1 = /*#__PURE__*/styled.div.withConfig({
34961
34941
  displayName: "ProgressBar__TextOverlay",
34962
34942
  componentId: "sc-qa6fzh-1"
34963
34943
  })(["width:100%;position:relative;"]);
34964
- var Container$z = /*#__PURE__*/styled.div.withConfig({
34944
+ var Container$y = /*#__PURE__*/styled.div.withConfig({
34965
34945
  displayName: "ProgressBar__Container",
34966
34946
  componentId: "sc-qa6fzh-2"
34967
34947
  })(["display:flex;flex-direction:column;min-width:", "px;width:", "%;justify-content:start;align-items:flex-start;", " @media (max-width:950px){transform:scale(", ");}"], function (props) {
@@ -35202,9 +35182,9 @@ var InputRadio = function InputRadio(_ref) {
35202
35182
 
35203
35183
  var RPGUIScrollbar = function RPGUIScrollbar(_ref) {
35204
35184
  var children = _ref.children;
35205
- return React.createElement(Container$A, null, children);
35185
+ return React.createElement(Container$z, null, children);
35206
35186
  };
35207
- var Container$A = /*#__PURE__*/styled.div.withConfig({
35187
+ var Container$z = /*#__PURE__*/styled.div.withConfig({
35208
35188
  displayName: "RPGUIScrollbar__Container",
35209
35189
  componentId: "sc-p3msmb-0"
35210
35190
  })([".rpgui-content ::-webkit-scrollbar,.rpgui-content::-webkit-scrollbar{width:25px !important;}.rpgui-content ::-webkit-scrollbar-track,.rpgui-content::-webkit-scrollbar-track{background-size:25px 60px !important;}"]);
@@ -35360,7 +35340,7 @@ var SimpleProgressBar = function SimpleProgressBar(_ref) {
35360
35340
  margin = _ref$margin === void 0 ? 20 : _ref$margin;
35361
35341
  // Ensure the width is at least 1% if value is greater than 0
35362
35342
  var width = value > 0 ? Math.max(1, Math.min(100, value)) : 0;
35363
- return React.createElement(Container$B, {
35343
+ return React.createElement(Container$A, {
35364
35344
  className: "simple-progress-bar"
35365
35345
  }, React.createElement(ProgressBarContainer, {
35366
35346
  margin: margin
@@ -35369,7 +35349,7 @@ var SimpleProgressBar = function SimpleProgressBar(_ref) {
35369
35349
  bgColor: bgColor
35370
35350
  }))));
35371
35351
  };
35372
- var Container$B = /*#__PURE__*/styled.div.withConfig({
35352
+ var Container$A = /*#__PURE__*/styled.div.withConfig({
35373
35353
  displayName: "SimpleProgressBar__Container",
35374
35354
  componentId: "sc-mbeil3-0"
35375
35355
  })(["display:flex;justify-content:center;align-items:center;width:100%;"]);
@@ -35702,7 +35682,7 @@ var SocialModal = function SocialModal(_ref) {
35702
35682
  title: "Social Channels",
35703
35683
  width: "500px",
35704
35684
  onCloseButton: onClose
35705
- }, React.createElement(Container$C, null, React.createElement(HeaderImage, {
35685
+ }, React.createElement(Container$B, null, React.createElement(HeaderImage, {
35706
35686
  src: img$9,
35707
35687
  alt: ""
35708
35688
  }), React.createElement(ButtonsContainer$1, null, React.createElement(MainButtons, null, React.createElement(SocialButton$1, {
@@ -35720,7 +35700,7 @@ var SocialModal = function SocialModal(_ref) {
35720
35700
  onClick: handleWhatsAppClick
35721
35701
  }, React.createElement(FaWhatsapp, null), " Join WhatsApp")))));
35722
35702
  };
35723
- var Container$C = /*#__PURE__*/styled.div.withConfig({
35703
+ var Container$B = /*#__PURE__*/styled.div.withConfig({
35724
35704
  displayName: "SocialModal__Container",
35725
35705
  componentId: "sc-tbjhp9-0"
35726
35706
  })(["width:100%;display:flex;flex-direction:column;gap:16px;background-color:#5c4132;position:relative;border-radius:8px;overflow:hidden;&:before,&:after{content:'';position:absolute;left:0;right:0;height:3px;}&:before{bottom:0;background:linear-gradient( to right,#5c4132 0%,#2b1810 2%,#2b1810 98%,#5c4132 100% );}"]);
@@ -35766,7 +35746,7 @@ var SpellInfo$1 = function SpellInfo(_ref) {
35766
35746
  castingType = spell.castingType,
35767
35747
  cooldown = spell.cooldown,
35768
35748
  maxDistanceGrid = spell.maxDistanceGrid;
35769
- return React.createElement(Container$D, null, React.createElement(Header$5, null, React.createElement("div", null, React.createElement(Title$b, null, name), React.createElement(Type$1, null, magicWords))), React.createElement(Statistic$1, null, React.createElement("div", {
35749
+ return React.createElement(Container$C, null, React.createElement(Header$5, null, React.createElement("div", null, React.createElement(Title$b, null, name), React.createElement(Type$1, null, magicWords))), React.createElement(Statistic$1, null, React.createElement("div", {
35770
35750
  className: "label"
35771
35751
  }, "Casting Type:"), React.createElement("div", {
35772
35752
  className: "value"
@@ -35792,7 +35772,7 @@ var SpellInfo$1 = function SpellInfo(_ref) {
35792
35772
  className: "value"
35793
35773
  }, requiredItem))), React.createElement(Description$4, null, description));
35794
35774
  };
35795
- var Container$D = /*#__PURE__*/styled.div.withConfig({
35775
+ var Container$C = /*#__PURE__*/styled.div.withConfig({
35796
35776
  displayName: "SpellInfo__Container",
35797
35777
  componentId: "sc-4hbw3q-0"
35798
35778
  })(["color:white;background-color:#222;border-radius:5px;padding:0.5rem;font-size:", ";border:3px solid ", ";height:max-content;width:30rem;@media (max-width:580px){width:80vw;}"], uiFonts.size.small, uiColors.lightGray);
@@ -35846,7 +35826,7 @@ var MobileSpellTooltip = function MobileSpellTooltip(_ref) {
35846
35826
  var _ref$current;
35847
35827
  (_ref$current = ref.current) == null ? void 0 : _ref$current.classList.add('fadeOut');
35848
35828
  };
35849
- return React.createElement(ModalPortal, null, React.createElement(Container$E, {
35829
+ return React.createElement(ModalPortal, null, React.createElement(Container$D, {
35850
35830
  ref: ref,
35851
35831
  onTouchEnd: function onTouchEnd() {
35852
35832
  handleFadeOut();
@@ -35871,7 +35851,7 @@ var MobileSpellTooltip = function MobileSpellTooltip(_ref) {
35871
35851
  }, option.text);
35872
35852
  }))));
35873
35853
  };
35874
- var Container$E = /*#__PURE__*/styled.div.withConfig({
35854
+ var Container$D = /*#__PURE__*/styled.div.withConfig({
35875
35855
  displayName: "MobileSpellTooltip__Container",
35876
35856
  componentId: "sc-6p7uvr-0"
35877
35857
  })(["position:absolute;z-index:100;left:0;top:0;width:100vw;height:100vh;background-color:rgba(0 0 0 / 0.5);display:flex;justify-content:center;align-items:center;gap:0.5rem;transition:opacity 0.08s;animation:fadeIn 0.1s forwards;@keyframes fadeIn{0%{opacity:0;}100%{opacity:0.92;}}@keyframes fadeOut{0%{opacity:0.92;}100%{opacity:0;}}&.fadeOut{animation:fadeOut 0.1s forwards;}@media (max-width:580px){flex-direction:column;}"]);
@@ -35912,13 +35892,13 @@ var MagicTooltip = function MagicTooltip(_ref) {
35912
35892
  }
35913
35893
  return;
35914
35894
  }, []);
35915
- return React.createElement(ModalPortal, null, React.createElement(Container$F, {
35895
+ return React.createElement(ModalPortal, null, React.createElement(Container$E, {
35916
35896
  ref: ref
35917
35897
  }, React.createElement(SpellInfoDisplay, {
35918
35898
  spell: spell
35919
35899
  })));
35920
35900
  };
35921
- var Container$F = /*#__PURE__*/styled.div.withConfig({
35901
+ var Container$E = /*#__PURE__*/styled.div.withConfig({
35922
35902
  displayName: "SpellTooltip__Container",
35923
35903
  componentId: "sc-1go0gwg-0"
35924
35904
  })(["position:absolute;z-index:100;pointer-events:none;left:0;top:0;opacity:0;transition:opacity 0.08s;"]);
@@ -35991,7 +35971,7 @@ var Spell = function Spell(_ref) {
35991
35971
  var IMAGE_SCALE = 2;
35992
35972
  return React.createElement(SpellInfoWrapper, {
35993
35973
  spell: spell
35994
- }, React.createElement(Container$G, {
35974
+ }, React.createElement(Container$F, {
35995
35975
  onPointerUp: onPointerUp == null ? void 0 : onPointerUp.bind(null, spellKey),
35996
35976
  isSettingShortcut: isSettingShortcut && !disabled,
35997
35977
  className: "spell"
@@ -36010,7 +35990,7 @@ var Spell = function Spell(_ref) {
36010
35990
  className: "mana"
36011
35991
  }, manaCost))));
36012
35992
  };
36013
- var Container$G = /*#__PURE__*/styled.button.withConfig({
35993
+ var Container$F = /*#__PURE__*/styled.button.withConfig({
36014
35994
  displayName: "Spell__Container",
36015
35995
  componentId: "sc-j96fa2-0"
36016
35996
  })(["display:block;background:none;border:2px solid transparent;border-radius:1rem;width:100%;display:flex;gap:1rem;align-items:center;padding:0 1rem;text-align:left;position:relative;animation:", ";@keyframes border-color-change{0%{border-color:", ";}50%{border-color:transparent;}100%{border-color:", ";}}&:hover,&:focus{background-color:", ";}&:active{background:none;}"], function (_ref2) {
@@ -36089,7 +36069,7 @@ var Spellbook = function Spellbook(_ref) {
36089
36069
  height: "inherit",
36090
36070
  cancelDrag: "#spellbook-search, #shortcuts_list, .spell",
36091
36071
  scale: scale
36092
- }, React.createElement(Container$H, null, React.createElement(Title$d, null, "Learned Spells"), React.createElement(ShortcutsSetter, {
36072
+ }, React.createElement(Container$G, null, React.createElement(Title$d, null, "Learned Spells"), React.createElement(ShortcutsSetter, {
36093
36073
  setSettingShortcutIndex: setSettingShortcutIndex,
36094
36074
  settingShortcutIndex: settingShortcutIndex,
36095
36075
  shortcuts: shortcuts,
@@ -36125,7 +36105,7 @@ var Title$d = /*#__PURE__*/styled.h1.withConfig({
36125
36105
  displayName: "Spellbook__Title",
36126
36106
  componentId: "sc-r02nfq-0"
36127
36107
  })(["font-size:", " !important;margin-bottom:0 !important;"], uiFonts.size.large);
36128
- var Container$H = /*#__PURE__*/styled.div.withConfig({
36108
+ var Container$G = /*#__PURE__*/styled.div.withConfig({
36129
36109
  displayName: "Spellbook__Container",
36130
36110
  componentId: "sc-r02nfq-1"
36131
36111
  })(["width:100%;height:100%;color:white;display:flex;flex-direction:column;"]);
@@ -36607,7 +36587,7 @@ var TradingMenu = function TradingMenu(_ref) {
36607
36587
  width: "500px",
36608
36588
  cancelDrag: "#TraderContainer",
36609
36589
  scale: scale
36610
- }, React.createElement(Container$I, null, React.createElement(Title$e, null, type.charAt(0).toUpperCase() + type.slice(1), " Menu"), React.createElement("hr", {
36590
+ }, React.createElement(Container$H, null, React.createElement(Title$e, null, type.charAt(0).toUpperCase() + type.slice(1), " Menu"), React.createElement("hr", {
36611
36591
  className: "golden"
36612
36592
  }), React.createElement(ScrollWrapper, {
36613
36593
  id: "TraderContainer"
@@ -36635,7 +36615,7 @@ var TradingMenu = function TradingMenu(_ref) {
36635
36615
  onPointerDown: onClose
36636
36616
  }, "Cancel"))));
36637
36617
  };
36638
- var Container$I = /*#__PURE__*/styled.div.withConfig({
36618
+ var Container$H = /*#__PURE__*/styled.div.withConfig({
36639
36619
  displayName: "TradingMenu__Container",
36640
36620
  componentId: "sc-1wjsz1l-0"
36641
36621
  })(["width:100%;"]);
@@ -36669,11 +36649,11 @@ var Truncate = function Truncate(_ref) {
36669
36649
  var _ref$maxLines = _ref.maxLines,
36670
36650
  maxLines = _ref$maxLines === void 0 ? 1 : _ref$maxLines,
36671
36651
  children = _ref.children;
36672
- return React.createElement(Container$J, {
36652
+ return React.createElement(Container$I, {
36673
36653
  maxLines: maxLines
36674
36654
  }, children);
36675
36655
  };
36676
- var Container$J = /*#__PURE__*/styled.div.withConfig({
36656
+ var Container$I = /*#__PURE__*/styled.div.withConfig({
36677
36657
  displayName: "Truncate__Container",
36678
36658
  componentId: "sc-6x00qb-0"
36679
36659
  })(["display:-webkit-box;max-width:100%;max-height:100%;-webkit-line-clamp:", ";-webkit-box-orient:vertical;overflow:hidden;"], function (props) {
@@ -36781,7 +36761,7 @@ var TutorialStepper = /*#__PURE__*/React.memo(function (_ref) {
36781
36761
  };
36782
36762
  });
36783
36763
  }, [lessons, imageStyle]);
36784
- return React.createElement(Container$K, null, React.createElement(Stepper, {
36764
+ return React.createElement(Container$J, null, React.createElement(Stepper, {
36785
36765
  steps: generateLessons,
36786
36766
  finalCTAButton: {
36787
36767
  label: 'Close',
@@ -36798,7 +36778,7 @@ var LessonBody = /*#__PURE__*/styled.div.withConfig({
36798
36778
  displayName: "TutorialStepper__LessonBody",
36799
36779
  componentId: "sc-7tgzv2-1"
36800
36780
  })([""]);
36801
- var Container$K = /*#__PURE__*/styled.div.withConfig({
36781
+ var Container$J = /*#__PURE__*/styled.div.withConfig({
36802
36782
  displayName: "TutorialStepper__Container",
36803
36783
  componentId: "sc-7tgzv2-2"
36804
36784
  })(["width:80%;max-width:600px;@media (max-width:600px){width:95%;}"]);