@rpg-engine/long-bow 0.8.53 → 0.8.55

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import React, { useState, useEffect, Component, useRef, useCallback, useContext, createContext, useMemo, memo, Fragment } from 'react';
2
- import styled, { css, keyframes } from 'styled-components';
2
+ import styled, { css, keyframes, createGlobalStyle } from 'styled-components';
3
3
  import { BeatLoader } from 'react-spinners';
4
4
  import { v4 } from 'uuid';
5
5
  import { GRID_WIDTH, GRID_HEIGHT, ShortcutType, getItemTextureKeyPath, ItemContainerType, ItemType, DepotSocketEvents, ItemSocketEvents, ItemSocketEventsDisplayLabels, ActionsForInventory, ActionsForEquipmentSet, ActionsForLoot, ActionsForMapContainer, ItemQualityLevel, ItemRarities, ItemSubType, isMobile, TaskType, TaskStatus, RewardType, isMobileOrTablet, ItemSlotType, NPCSubtype, EntityAttackType, NPCAlignment, VideoGuideCategory, VideoGuideLanguage, CharacterClass, QuestStatus, getSPForLevel, getXPForLevel, PeriodOfDay, UserAccountTypes } from '@rpg-engine/shared';
@@ -34040,56 +34040,62 @@ var ItemsContainer = /*#__PURE__*/styled.div.withConfig({
34040
34040
  return isFullScreen && '50%';
34041
34041
  });
34042
34042
 
34043
+ // Global style to prevent body scrolling when modal is open
34044
+ var GlobalStyle = /*#__PURE__*/createGlobalStyle(["body{overflow:hidden;width:100%;height:100%;}"]);
34043
34045
  var ConfirmModal = function ConfirmModal(_ref) {
34044
34046
  var onConfirm = _ref.onConfirm,
34045
34047
  onClose = _ref.onClose,
34046
34048
  _ref$message = _ref.message,
34047
34049
  message = _ref$message === void 0 ? 'Are you sure?' : _ref$message;
34048
- var handleConfirm = function handleConfirm(e) {
34049
- e.preventDefault();
34050
- e.stopPropagation();
34050
+ var handleConfirm = function handleConfirm() {
34051
34051
  onConfirm();
34052
34052
  };
34053
- var handleClose = function handleClose(e) {
34054
- e.preventDefault();
34055
- e.stopPropagation();
34053
+ var handleClose = function handleClose() {
34056
34054
  onClose();
34057
34055
  };
34058
- return React.createElement(ModalPortal, null, React.createElement(Background, null), React.createElement(Container$w, {
34059
- onClick: handleClose
34060
- }, React.createElement(DraggableContainer, {
34061
- width: "auto",
34062
- dragDisabled: true
34063
- }, React.createElement(Wrapper$1, {
34064
- onClick: function onClick(e) {
34065
- return e.stopPropagation();
34066
- }
34067
- }, typeof message === 'string' ? React.createElement("p", null, message) : message, React.createElement(ButtonsWrapper, null, React.createElement("div", {
34068
- className: "cancel-button"
34069
- }, React.createElement(Button, {
34056
+ var stopPropagation = function stopPropagation(e) {
34057
+ e.stopPropagation();
34058
+ };
34059
+ return React.createElement(ModalPortal, null, React.createElement(GlobalStyle, null), React.createElement(Overlay$2, {
34060
+ onPointerDown: handleClose
34061
+ }), React.createElement(ModalContainer, null, React.createElement(ModalContent, {
34062
+ onPointerDown: stopPropagation
34063
+ }, React.createElement(MessageContainer, null, typeof message === 'string' ? React.createElement(Message$1, null, message) : message), React.createElement(ButtonsContainer$2, null, React.createElement(CancelButtonWrapper, null, React.createElement(Button, {
34070
34064
  buttonType: ButtonTypes.RPGUIButton,
34071
- onClick: handleClose
34065
+ onPointerDown: handleClose
34072
34066
  }, "No")), React.createElement(Button, {
34073
34067
  buttonType: ButtonTypes.RPGUIButton,
34074
- onClick: handleConfirm
34075
- }, "Yes"))))));
34068
+ onPointerDown: handleConfirm
34069
+ }, "Yes")))));
34076
34070
  };
34077
- var Background = /*#__PURE__*/styled.div.withConfig({
34078
- displayName: "ConfirmModal__Background",
34071
+ var Overlay$2 = /*#__PURE__*/styled.div.withConfig({
34072
+ displayName: "ConfirmModal__Overlay",
34079
34073
  componentId: "sc-11qkyu1-0"
34080
- })(["position:absolute;width:100%;height:100%;background-color:#000000;opacity:0.5;left:0;top:0;z-index:1000;"]);
34081
- var Container$w = /*#__PURE__*/styled.div.withConfig({
34082
- displayName: "ConfirmModal__Container",
34074
+ })(["position:fixed;top:0;left:0;right:0;bottom:0;background-color:rgba(0,0,0,1);z-index:1000;animation:fadeIn 0.2s ease-out;@keyframes fadeIn{from{opacity:0;}to{opacity:1;}}"]);
34075
+ var ModalContainer = /*#__PURE__*/styled.div.withConfig({
34076
+ displayName: "ConfirmModal__ModalContainer",
34083
34077
  componentId: "sc-11qkyu1-1"
34084
- })(["position:absolute;width:100%;height:100%;left:0;top:0;display:flex;justify-content:center;align-items:center;z-index:1001;"]);
34085
- var Wrapper$1 = /*#__PURE__*/styled.div.withConfig({
34086
- displayName: "ConfirmModal__Wrapper",
34078
+ })(["position:fixed;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;z-index:1001;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);touch-action:none;"]);
34079
+ var ModalContent = /*#__PURE__*/styled.div.withConfig({
34080
+ displayName: "ConfirmModal__ModalContent",
34087
34081
  componentId: "sc-11qkyu1-2"
34088
- })(["p{margin:0;}"]);
34089
- var ButtonsWrapper = /*#__PURE__*/styled.div.withConfig({
34090
- displayName: "ConfirmModal__ButtonsWrapper",
34082
+ })(["background:url('/assets/ui/paper-dialog.png') no-repeat center center;background-size:100% 100%;padding:20px;min-width:300px;max-width:90%;margin:0 auto;animation:scaleIn 0.2s ease-out;transform-origin:center;box-shadow:0 4px 20px rgba(0,0,0,0.4);@keyframes scaleIn{from{transform:scale(0.8);opacity:0;}to{transform:scale(1);opacity:1;}}@media (max-width:768px){padding:25px;width:85%;}"]);
34083
+ var MessageContainer = /*#__PURE__*/styled.div.withConfig({
34084
+ displayName: "ConfirmModal__MessageContainer",
34091
34085
  componentId: "sc-11qkyu1-3"
34092
- })(["display:flex;justify-content:flex-end;gap:5px;margin-top:5px;.cancel-button{filter:grayscale(0.7);}"]);
34086
+ })(["margin-bottom:20px;text-align:center;"]);
34087
+ var Message$1 = /*#__PURE__*/styled.p.withConfig({
34088
+ displayName: "ConfirmModal__Message",
34089
+ componentId: "sc-11qkyu1-4"
34090
+ })(["margin:0;font-size:16px;color:#333;text-shadow:0 1px 0 rgba(255,255,255,0.5);@media (max-width:768px){font-size:18px;}"]);
34091
+ var ButtonsContainer$2 = /*#__PURE__*/styled.div.withConfig({
34092
+ displayName: "ConfirmModal__ButtonsContainer",
34093
+ componentId: "sc-11qkyu1-5"
34094
+ })(["display:flex;justify-content:center;gap:20px;@media (max-width:768px){gap:30px;transform:scale(1.1);margin-top:5px;}"]);
34095
+ var CancelButtonWrapper = /*#__PURE__*/styled.div.withConfig({
34096
+ displayName: "ConfirmModal__CancelButtonWrapper",
34097
+ componentId: "sc-11qkyu1-6"
34098
+ })(["filter:grayscale(0.7);"]);
34093
34099
 
34094
34100
  var ColorSelector = function ColorSelector(_ref) {
34095
34101
  var selectedColor = _ref.selectedColor,
@@ -34133,7 +34139,7 @@ var ColorSelector = function ColorSelector(_ref) {
34133
34139
  cancelDrag: ".react-colorful",
34134
34140
  width: "25rem",
34135
34141
  onCloseButton: onClose
34136
- }, React.createElement(Container$x, null, React.createElement(Header$3, null, "Select Color"), React.createElement(ColorPickerWrapper, null, React.createElement(HexColorPicker, {
34142
+ }, React.createElement(Container$w, null, React.createElement(Header$3, null, "Select Color"), React.createElement(ColorPickerWrapper, null, React.createElement(HexColorPicker, {
34137
34143
  color: currentColor,
34138
34144
  onChange: function onChange(color) {
34139
34145
  setCurrentColor(color);
@@ -34149,7 +34155,7 @@ var ColorSelector = function ColorSelector(_ref) {
34149
34155
  onClose: handleClose
34150
34156
  }));
34151
34157
  };
34152
- var Container$x = /*#__PURE__*/styled.div.withConfig({
34158
+ var Container$w = /*#__PURE__*/styled.div.withConfig({
34153
34159
  displayName: "ItemPropertyColorSelector__Container",
34154
34160
  componentId: "sc-me1r4z-0"
34155
34161
  })(["text-align:center;background:inherit;display:flex;flex-direction:column;gap:1.5rem;align-items:center;width:100%;max-width:24rem;margin:0 auto;"]);
@@ -34505,7 +34511,7 @@ var ListMenu = function ListMenu(_ref) {
34505
34511
  onSelected = _ref.onSelected,
34506
34512
  x = _ref.x,
34507
34513
  y = _ref.y;
34508
- return React.createElement(Container$y, {
34514
+ return React.createElement(Container$x, {
34509
34515
  x: x,
34510
34516
  y: y
34511
34517
  }, React.createElement("ul", {
@@ -34522,7 +34528,7 @@ var ListMenu = function ListMenu(_ref) {
34522
34528
  }, (params == null ? void 0 : params.text) || 'No text');
34523
34529
  })));
34524
34530
  };
34525
- var Container$y = /*#__PURE__*/styled.div.withConfig({
34531
+ var Container$x = /*#__PURE__*/styled.div.withConfig({
34526
34532
  displayName: "ListMenu__Container",
34527
34533
  componentId: "sc-i9097t-0"
34528
34534
  })(["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) {
@@ -34541,7 +34547,7 @@ var Pager = function Pager(_ref) {
34541
34547
  itemsPerPage = _ref.itemsPerPage,
34542
34548
  onPageChange = _ref.onPageChange;
34543
34549
  var totalPages = Math.ceil(totalItems / itemsPerPage);
34544
- return React.createElement(Container$z, null, React.createElement("p", null, "Total items: ", totalItems), React.createElement(PagerContainer, null, React.createElement("button", {
34550
+ return React.createElement(Container$y, null, React.createElement("p", null, "Total items: ", totalItems), React.createElement(PagerContainer, null, React.createElement("button", {
34545
34551
  disabled: currentPage === 1,
34546
34552
  onPointerDown: function onPointerDown() {
34547
34553
  return onPageChange(Math.max(currentPage - 1, 1));
@@ -34555,7 +34561,7 @@ var Pager = function Pager(_ref) {
34555
34561
  }
34556
34562
  }, '>')));
34557
34563
  };
34558
- var Container$z = /*#__PURE__*/styled.div.withConfig({
34564
+ var Container$y = /*#__PURE__*/styled.div.withConfig({
34559
34565
  displayName: "Pager__Container",
34560
34566
  componentId: "sc-1ekmf50-0"
34561
34567
  })(["display:flex;flex-direction:column;align-items:center;p{margin:0;font-size:", ";}"], uiFonts.size.xsmall);
@@ -35076,13 +35082,13 @@ var TabBody = function TabBody(_ref) {
35076
35082
  children = _ref.children,
35077
35083
  styles = _ref.styles,
35078
35084
  centerContent = _ref.centerContent;
35079
- return React.createElement(Container$A, {
35085
+ return React.createElement(Container$z, {
35080
35086
  styles: styles,
35081
35087
  "data-tab-id": id,
35082
35088
  centerContent: centerContent
35083
35089
  }, children);
35084
35090
  };
35085
- var Container$A = /*#__PURE__*/styled.div.withConfig({
35091
+ var Container$z = /*#__PURE__*/styled.div.withConfig({
35086
35092
  displayName: "TabBody__Container",
35087
35093
  componentId: "sc-196oof2-0"
35088
35094
  })(["width:", ";height:", ";overflow-y:auto;display:", ";justify-content:", ";align-items:", ";"], function (props) {
@@ -35224,7 +35230,7 @@ var PartyCreate = function PartyCreate(_ref) {
35224
35230
  width: "500px",
35225
35231
  height: "300px",
35226
35232
  cancelDrag: ".partyRows"
35227
- }, React.createElement(Wrapper$2, null, React.createElement("div", {
35233
+ }, React.createElement(Wrapper$1, null, React.createElement("div", {
35228
35234
  style: {
35229
35235
  width: '100%'
35230
35236
  }
@@ -35247,7 +35253,7 @@ var PartyCreate = function PartyCreate(_ref) {
35247
35253
  }
35248
35254
  }, "Cancel"))));
35249
35255
  };
35250
- var Wrapper$2 = /*#__PURE__*/styled.div.withConfig({
35256
+ var Wrapper$1 = /*#__PURE__*/styled.div.withConfig({
35251
35257
  displayName: "PartyCreate__Wrapper",
35252
35258
  componentId: "sc-13brop0-0"
35253
35259
  })(["display:flex;flex-direction:column;width:100%;"]);
@@ -35296,7 +35302,7 @@ var PartyDashboard = function PartyDashboard(_ref) {
35296
35302
  width: "800px",
35297
35303
  height: "400px",
35298
35304
  cancelDrag: ".partyRows"
35299
- }, React.createElement(Wrapper$3, null, React.createElement("div", {
35305
+ }, React.createElement(Wrapper$2, null, React.createElement("div", {
35300
35306
  style: {
35301
35307
  width: '100%'
35302
35308
  }
@@ -35319,7 +35325,7 @@ var PartyDashboard = function PartyDashboard(_ref) {
35319
35325
  });
35320
35326
  })));
35321
35327
  };
35322
- var Wrapper$3 = /*#__PURE__*/styled.div.withConfig({
35328
+ var Wrapper$2 = /*#__PURE__*/styled.div.withConfig({
35323
35329
  displayName: "PartyDashboard__Wrapper",
35324
35330
  componentId: "sc-16cm41r-0"
35325
35331
  })(["display:flex;flex-direction:column;width:100%;"]);
@@ -35360,7 +35366,7 @@ var PartyInvite = function PartyInvite(_ref) {
35360
35366
  width: "600px",
35361
35367
  height: "400px",
35362
35368
  cancelDrag: ".playersRows"
35363
- }, React.createElement(Wrapper$4, null, React.createElement("div", {
35369
+ }, React.createElement(Wrapper$3, null, React.createElement("div", {
35364
35370
  style: {
35365
35371
  width: '100%'
35366
35372
  }
@@ -35379,7 +35385,7 @@ var PartyInvite = function PartyInvite(_ref) {
35379
35385
  });
35380
35386
  })));
35381
35387
  };
35382
- var Wrapper$4 = /*#__PURE__*/styled.div.withConfig({
35388
+ var Wrapper$3 = /*#__PURE__*/styled.div.withConfig({
35383
35389
  displayName: "PartyInvite__Wrapper",
35384
35390
  componentId: "sc-eu8ggt-0"
35385
35391
  })(["display:flex;flex-direction:column;width:100%;"]);
@@ -35735,7 +35741,7 @@ var ProgressBar$1 = function ProgressBar(_ref) {
35735
35741
  }
35736
35742
  return value * 100 / max;
35737
35743
  };
35738
- return React.createElement(Container$B, {
35744
+ return React.createElement(Container$A, {
35739
35745
  className: "rpgui-progress",
35740
35746
  "data-value": calculatePercentageValue(max, value) / 100,
35741
35747
  "data-rpguitype": "progress",
@@ -35765,7 +35771,7 @@ var TextOverlay$1 = /*#__PURE__*/styled.div.withConfig({
35765
35771
  displayName: "ProgressBar__TextOverlay",
35766
35772
  componentId: "sc-qa6fzh-1"
35767
35773
  })(["width:100%;position:relative;"]);
35768
- var Container$B = /*#__PURE__*/styled.div.withConfig({
35774
+ var Container$A = /*#__PURE__*/styled.div.withConfig({
35769
35775
  displayName: "ProgressBar__Container",
35770
35776
  componentId: "sc-qa6fzh-2"
35771
35777
  })(["display:flex;flex-direction:column;min-width:", "px;width:", "%;justify-content:start;align-items:flex-start;", " @media (max-width:950px){transform:scale(", ");}"], function (props) {
@@ -36006,9 +36012,9 @@ var InputRadio = function InputRadio(_ref) {
36006
36012
 
36007
36013
  var RPGUIScrollbar = function RPGUIScrollbar(_ref) {
36008
36014
  var children = _ref.children;
36009
- return React.createElement(Container$C, null, children);
36015
+ return React.createElement(Container$B, null, children);
36010
36016
  };
36011
- var Container$C = /*#__PURE__*/styled.div.withConfig({
36017
+ var Container$B = /*#__PURE__*/styled.div.withConfig({
36012
36018
  displayName: "RPGUIScrollbar__Container",
36013
36019
  componentId: "sc-p3msmb-0"
36014
36020
  })([".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;}"]);
@@ -36164,7 +36170,7 @@ var SimpleProgressBar = function SimpleProgressBar(_ref) {
36164
36170
  margin = _ref$margin === void 0 ? 20 : _ref$margin;
36165
36171
  // Ensure the width is at least 1% if value is greater than 0
36166
36172
  var width = value > 0 ? Math.max(1, Math.min(100, value)) : 0;
36167
- return React.createElement(Container$D, {
36173
+ return React.createElement(Container$C, {
36168
36174
  className: "simple-progress-bar"
36169
36175
  }, React.createElement(ProgressBarContainer, {
36170
36176
  margin: margin
@@ -36173,7 +36179,7 @@ var SimpleProgressBar = function SimpleProgressBar(_ref) {
36173
36179
  bgColor: bgColor
36174
36180
  }))));
36175
36181
  };
36176
- var Container$D = /*#__PURE__*/styled.div.withConfig({
36182
+ var Container$C = /*#__PURE__*/styled.div.withConfig({
36177
36183
  displayName: "SimpleProgressBar__Container",
36178
36184
  componentId: "sc-mbeil3-0"
36179
36185
  })(["display:flex;justify-content:center;align-items:center;width:100%;"]);
@@ -36506,10 +36512,10 @@ var SocialModal = function SocialModal(_ref) {
36506
36512
  title: "Social Channels",
36507
36513
  width: "500px",
36508
36514
  onCloseButton: onClose
36509
- }, React.createElement(Container$E, null, React.createElement(HeaderImage, {
36515
+ }, React.createElement(Container$D, null, React.createElement(HeaderImage, {
36510
36516
  src: img$9,
36511
36517
  alt: ""
36512
- }), React.createElement(ButtonsContainer$2, null, React.createElement(MainButtons, null, React.createElement(SocialButton$1, {
36518
+ }), React.createElement(ButtonsContainer$3, null, React.createElement(MainButtons, null, React.createElement(SocialButton$1, {
36513
36519
  onClick: handleDiscordClick
36514
36520
  }, React.createElement(FaDiscord, null), " Discord"), React.createElement(SocialButton$1, {
36515
36521
  onClick: handleRedditClick
@@ -36524,7 +36530,7 @@ var SocialModal = function SocialModal(_ref) {
36524
36530
  onClick: handleWhatsAppClick
36525
36531
  }, React.createElement(FaWhatsapp, null), " Join WhatsApp")))));
36526
36532
  };
36527
- var Container$E = /*#__PURE__*/styled.div.withConfig({
36533
+ var Container$D = /*#__PURE__*/styled.div.withConfig({
36528
36534
  displayName: "SocialModal__Container",
36529
36535
  componentId: "sc-tbjhp9-0"
36530
36536
  })(["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% );}"]);
@@ -36532,7 +36538,7 @@ var HeaderImage = /*#__PURE__*/styled.img.withConfig({
36532
36538
  displayName: "SocialModal__HeaderImage",
36533
36539
  componentId: "sc-tbjhp9-1"
36534
36540
  })(["width:100%;height:160px;object-fit:cover;border-bottom:2px solid rgba(0,0,0,0.3);display:block;border-top-left-radius:8px;border-top-right-radius:8px;"]);
36535
- var ButtonsContainer$2 = /*#__PURE__*/styled.div.withConfig({
36541
+ var ButtonsContainer$3 = /*#__PURE__*/styled.div.withConfig({
36536
36542
  displayName: "SocialModal__ButtonsContainer",
36537
36543
  componentId: "sc-tbjhp9-2"
36538
36544
  })(["padding:16px 24px 24px;display:flex;flex-direction:column;gap:16px;"]);
@@ -36570,7 +36576,7 @@ var SpellInfo$1 = function SpellInfo(_ref) {
36570
36576
  castingType = spell.castingType,
36571
36577
  cooldown = spell.cooldown,
36572
36578
  maxDistanceGrid = spell.maxDistanceGrid;
36573
- return React.createElement(Container$F, 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", {
36579
+ return React.createElement(Container$E, 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", {
36574
36580
  className: "label"
36575
36581
  }, "Casting Type:"), React.createElement("div", {
36576
36582
  className: "value"
@@ -36596,7 +36602,7 @@ var SpellInfo$1 = function SpellInfo(_ref) {
36596
36602
  className: "value"
36597
36603
  }, requiredItem))), React.createElement(Description$4, null, description));
36598
36604
  };
36599
- var Container$F = /*#__PURE__*/styled.div.withConfig({
36605
+ var Container$E = /*#__PURE__*/styled.div.withConfig({
36600
36606
  displayName: "SpellInfo__Container",
36601
36607
  componentId: "sc-4hbw3q-0"
36602
36608
  })(["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);
@@ -36650,7 +36656,7 @@ var MobileSpellTooltip = function MobileSpellTooltip(_ref) {
36650
36656
  var _ref$current;
36651
36657
  (_ref$current = ref.current) == null ? void 0 : _ref$current.classList.add('fadeOut');
36652
36658
  };
36653
- return React.createElement(ModalPortal, null, React.createElement(Container$G, {
36659
+ return React.createElement(ModalPortal, null, React.createElement(Container$F, {
36654
36660
  ref: ref,
36655
36661
  onTouchEnd: function onTouchEnd() {
36656
36662
  handleFadeOut();
@@ -36675,7 +36681,7 @@ var MobileSpellTooltip = function MobileSpellTooltip(_ref) {
36675
36681
  }, option.text);
36676
36682
  }))));
36677
36683
  };
36678
- var Container$G = /*#__PURE__*/styled.div.withConfig({
36684
+ var Container$F = /*#__PURE__*/styled.div.withConfig({
36679
36685
  displayName: "MobileSpellTooltip__Container",
36680
36686
  componentId: "sc-6p7uvr-0"
36681
36687
  })(["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;}"]);
@@ -36716,13 +36722,13 @@ var MagicTooltip = function MagicTooltip(_ref) {
36716
36722
  }
36717
36723
  return;
36718
36724
  }, []);
36719
- return React.createElement(ModalPortal, null, React.createElement(Container$H, {
36725
+ return React.createElement(ModalPortal, null, React.createElement(Container$G, {
36720
36726
  ref: ref
36721
36727
  }, React.createElement(SpellInfoDisplay, {
36722
36728
  spell: spell
36723
36729
  })));
36724
36730
  };
36725
- var Container$H = /*#__PURE__*/styled.div.withConfig({
36731
+ var Container$G = /*#__PURE__*/styled.div.withConfig({
36726
36732
  displayName: "SpellTooltip__Container",
36727
36733
  componentId: "sc-1go0gwg-0"
36728
36734
  })(["position:absolute;z-index:100;pointer-events:none;left:0;top:0;opacity:0;transition:opacity 0.08s;"]);
@@ -36795,11 +36801,11 @@ var Spell = function Spell(_ref) {
36795
36801
  var IMAGE_SCALE = 2;
36796
36802
  return React.createElement(SpellInfoWrapper, {
36797
36803
  spell: spell
36798
- }, React.createElement(Container$I, {
36804
+ }, React.createElement(Container$H, {
36799
36805
  onPointerUp: onPointerUp == null ? void 0 : onPointerUp.bind(null, spellKey),
36800
36806
  isSettingShortcut: isSettingShortcut && !disabled,
36801
36807
  className: "spell"
36802
- }, disabled && React.createElement(Overlay$2, null, charMagicLevel < minMagicLevelRequired ? 'Low magic level' : manaCost > charMana && 'No mana'), React.createElement(SpellImage, null, activeCooldown && activeCooldown > 0 ? React.createElement("span", {
36808
+ }, disabled && React.createElement(Overlay$3, null, charMagicLevel < minMagicLevelRequired ? 'Low magic level' : manaCost > charMana && 'No mana'), React.createElement(SpellImage, null, activeCooldown && activeCooldown > 0 ? React.createElement("span", {
36803
36809
  className: "cooldown"
36804
36810
  }, activeCooldown.toFixed(activeCooldown > 10 ? 0 : 1)) : null, React.createElement(SpriteFromAtlas, {
36805
36811
  atlasIMG: atlasIMG,
@@ -36814,7 +36820,7 @@ var Spell = function Spell(_ref) {
36814
36820
  className: "mana"
36815
36821
  }, manaCost))));
36816
36822
  };
36817
- var Container$I = /*#__PURE__*/styled.button.withConfig({
36823
+ var Container$H = /*#__PURE__*/styled.button.withConfig({
36818
36824
  displayName: "Spell__Container",
36819
36825
  componentId: "sc-j96fa2-0"
36820
36826
  })(["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) {
@@ -36845,7 +36851,7 @@ var Cost = /*#__PURE__*/styled.p.withConfig({
36845
36851
  displayName: "Spell__Cost",
36846
36852
  componentId: "sc-j96fa2-6"
36847
36853
  })(["display:flex;align-items:center;flex-direction:column;gap:0.5rem;div{z-index:1;}.mana{position:relative;font-size:", ";font-weight:bold;z-index:1;&::after{position:absolute;content:'';top:0;left:0;background-color:", ";width:100%;height:100%;border-radius:50%;transform:scale(1.8);filter:blur(10px);z-index:-1;}}"], uiFonts.size.medium, uiColors.blue);
36848
- var Overlay$2 = /*#__PURE__*/styled.p.withConfig({
36854
+ var Overlay$3 = /*#__PURE__*/styled.p.withConfig({
36849
36855
  displayName: "Spell__Overlay",
36850
36856
  componentId: "sc-j96fa2-7"
36851
36857
  })(["margin:0 !important;position:absolute;top:0;left:0;width:100%;height:100%;border-radius:1rem;display:flex;justify-content:center;align-items:center;color:", ";font-size:", " !important;font-weight:bold;z-index:10;background-color:rgba(0 0 0 / 0.2);"], uiColors.yellow, uiFonts.size.large);
@@ -36893,7 +36899,7 @@ var Spellbook = function Spellbook(_ref) {
36893
36899
  height: "inherit",
36894
36900
  cancelDrag: "#spellbook-search, #shortcuts_list, .spell",
36895
36901
  scale: scale
36896
- }, React.createElement(Container$J, null, React.createElement(Title$d, null, "Learned Spells"), React.createElement(ShortcutsSetter, {
36902
+ }, React.createElement(Container$I, null, React.createElement(Title$d, null, "Learned Spells"), React.createElement(ShortcutsSetter, {
36897
36903
  setSettingShortcutIndex: setSettingShortcutIndex,
36898
36904
  settingShortcutIndex: settingShortcutIndex,
36899
36905
  shortcuts: shortcuts,
@@ -36929,7 +36935,7 @@ var Title$d = /*#__PURE__*/styled.h1.withConfig({
36929
36935
  displayName: "Spellbook__Title",
36930
36936
  componentId: "sc-r02nfq-0"
36931
36937
  })(["font-size:", " !important;margin-bottom:0 !important;"], uiFonts.size.large);
36932
- var Container$J = /*#__PURE__*/styled.div.withConfig({
36938
+ var Container$I = /*#__PURE__*/styled.div.withConfig({
36933
36939
  displayName: "Spellbook__Container",
36934
36940
  componentId: "sc-r02nfq-1"
36935
36941
  })(["width:100%;height:100%;color:white;display:flex;flex-direction:column;"]);
@@ -37411,7 +37417,7 @@ var TradingMenu = function TradingMenu(_ref) {
37411
37417
  width: "500px",
37412
37418
  cancelDrag: "#TraderContainer",
37413
37419
  scale: scale
37414
- }, React.createElement(Container$K, null, React.createElement(Title$e, null, type.charAt(0).toUpperCase() + type.slice(1), " Menu"), React.createElement("hr", {
37420
+ }, React.createElement(Container$J, null, React.createElement(Title$e, null, type.charAt(0).toUpperCase() + type.slice(1), " Menu"), React.createElement("hr", {
37415
37421
  className: "golden"
37416
37422
  }), React.createElement(ScrollWrapper, {
37417
37423
  id: "TraderContainer"
@@ -37439,7 +37445,7 @@ var TradingMenu = function TradingMenu(_ref) {
37439
37445
  onPointerDown: onClose
37440
37446
  }, "Cancel"))));
37441
37447
  };
37442
- var Container$K = /*#__PURE__*/styled.div.withConfig({
37448
+ var Container$J = /*#__PURE__*/styled.div.withConfig({
37443
37449
  displayName: "TradingMenu__Container",
37444
37450
  componentId: "sc-1wjsz1l-0"
37445
37451
  })(["width:100%;"]);
@@ -37473,11 +37479,11 @@ var Truncate = function Truncate(_ref) {
37473
37479
  var _ref$maxLines = _ref.maxLines,
37474
37480
  maxLines = _ref$maxLines === void 0 ? 1 : _ref$maxLines,
37475
37481
  children = _ref.children;
37476
- return React.createElement(Container$L, {
37482
+ return React.createElement(Container$K, {
37477
37483
  maxLines: maxLines
37478
37484
  }, children);
37479
37485
  };
37480
- var Container$L = /*#__PURE__*/styled.div.withConfig({
37486
+ var Container$K = /*#__PURE__*/styled.div.withConfig({
37481
37487
  displayName: "Truncate__Container",
37482
37488
  componentId: "sc-6x00qb-0"
37483
37489
  })(["display:-webkit-box;max-width:100%;max-height:100%;-webkit-line-clamp:", ";-webkit-box-orient:vertical;overflow:hidden;"], function (props) {
@@ -37585,7 +37591,7 @@ var TutorialStepper = /*#__PURE__*/React.memo(function (_ref) {
37585
37591
  };
37586
37592
  });
37587
37593
  }, [lessons, imageStyle]);
37588
- return React.createElement(Container$M, null, React.createElement(Stepper, {
37594
+ return React.createElement(Container$L, null, React.createElement(Stepper, {
37589
37595
  steps: generateLessons,
37590
37596
  finalCTAButton: {
37591
37597
  label: 'Close',
@@ -37602,7 +37608,7 @@ var LessonBody = /*#__PURE__*/styled.div.withConfig({
37602
37608
  displayName: "TutorialStepper__LessonBody",
37603
37609
  componentId: "sc-7tgzv2-1"
37604
37610
  })([""]);
37605
- var Container$M = /*#__PURE__*/styled.div.withConfig({
37611
+ var Container$L = /*#__PURE__*/styled.div.withConfig({
37606
37612
  displayName: "TutorialStepper__Container",
37607
37613
  componentId: "sc-7tgzv2-2"
37608
37614
  })(["width:80%;max-width:600px;@media (max-width:600px){width:95%;}"]);