@rpg-engine/long-bow 0.3.80 → 0.3.81

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.
@@ -6,6 +6,7 @@ import { ErrorBoundary as ErrorBoundary$1 } from 'react-error-boundary';
6
6
  import { RxPaperPlane } from 'react-icons/rx';
7
7
  import Draggable from 'react-draggable';
8
8
  import { v4 } from 'uuid';
9
+ import ReactDOM from 'react-dom';
9
10
  import { camelCase } from 'lodash-es';
10
11
  import { observer } from 'mobx-react-lite';
11
12
  import 'rpgui/rpgui.min.css';
@@ -33360,6 +33361,18 @@ var DropdownOptions = /*#__PURE__*/styled.ul.withConfig({
33360
33361
  return props.opened ? 'block' : 'none';
33361
33362
  });
33362
33363
 
33364
+ var modalRoot = /*#__PURE__*/document.getElementById('modal-root');
33365
+ var ModalPortal = function ModalPortal(_ref) {
33366
+ var children = _ref.children;
33367
+ return ReactDOM.createPortal(React.createElement(Container$8, {
33368
+ className: "rpgui-content"
33369
+ }, children), modalRoot);
33370
+ };
33371
+ var Container$8 = /*#__PURE__*/styled.div.withConfig({
33372
+ displayName: "ModalPortal__Container",
33373
+ componentId: "sc-dgmp04-0"
33374
+ })(["position:static !important;"]);
33375
+
33363
33376
  var RelativeListMenu = function RelativeListMenu(_ref) {
33364
33377
  var options = _ref.options,
33365
33378
  onSelected = _ref.onSelected,
@@ -33381,7 +33394,7 @@ var RelativeListMenu = function RelativeListMenu(_ref) {
33381
33394
  document.removeEventListener('clickOutside', function (_e) {});
33382
33395
  };
33383
33396
  }, []);
33384
- return React.createElement(Container$8, {
33397
+ return React.createElement(Container$9, {
33385
33398
  fontSize: fontSize,
33386
33399
  ref: ref
33387
33400
  }, React.createElement("ul", {
@@ -33398,7 +33411,7 @@ var RelativeListMenu = function RelativeListMenu(_ref) {
33398
33411
  }, (params == null ? void 0 : params.text) || 'No text');
33399
33412
  })));
33400
33413
  };
33401
- var Container$8 = /*#__PURE__*/styled.div.withConfig({
33414
+ var Container$9 = /*#__PURE__*/styled.div.withConfig({
33402
33415
  displayName: "RelativeListMenu__Container",
33403
33416
  componentId: "sc-7hohf-0"
33404
33417
  })(["position:absolute;top:1rem;left:4rem;display:flex;flex-direction:column;width:max-content;justify-content:start;align-items:flex-start;li{font-size:", "em;}"], function (props) {
@@ -33420,24 +33433,17 @@ var MobileItemTooltip = function MobileItemTooltip(_ref) {
33420
33433
  options = _ref.options,
33421
33434
  onSelected = _ref.onSelected;
33422
33435
  var ref = useRef(null);
33423
- useEffect(function () {
33424
- var current = ref.current;
33425
- if (current) {
33426
- // Adjust the position to be on whole window
33427
- var rect = current.getBoundingClientRect();
33428
- var x = -rect.x * 100 / (scale * 100);
33429
- var y = -rect.y * 100 / (scale * 100);
33430
- current.style.transform = "translate(" + x + "px, " + y + "px)";
33431
- current.style.opacity = '0.92';
33432
- }
33433
- return;
33434
- }, []);
33435
- return React.createElement(Container$9, {
33436
+ var handleFadeOut = function handleFadeOut() {
33437
+ var _ref$current;
33438
+ (_ref$current = ref.current) == null ? void 0 : _ref$current.classList.add('fadeOut');
33439
+ };
33440
+ return React.createElement(ModalPortal, null, React.createElement(Container$a, {
33436
33441
  ref: ref,
33437
33442
  onTouchEnd: function onTouchEnd() {
33443
+ handleFadeOut();
33438
33444
  setTimeout(function () {
33439
33445
  closeTooltip();
33440
- }, 10);
33446
+ }, 100);
33441
33447
  },
33442
33448
  scale: scale
33443
33449
  }, React.createElement(ItemInfoDisplay, {
@@ -33450,24 +33456,19 @@ var MobileItemTooltip = function MobileItemTooltip(_ref) {
33450
33456
  return React.createElement(Option, {
33451
33457
  key: option.id,
33452
33458
  onTouchEnd: function onTouchEnd() {
33459
+ handleFadeOut();
33453
33460
  setTimeout(function () {
33454
33461
  onSelected == null ? void 0 : onSelected(option.id);
33455
33462
  closeTooltip();
33456
- }, 10);
33463
+ }, 100);
33457
33464
  }
33458
33465
  }, option.text);
33459
- })));
33466
+ }))));
33460
33467
  };
33461
- var Container$9 = /*#__PURE__*/styled.div.withConfig({
33468
+ var Container$a = /*#__PURE__*/styled.div.withConfig({
33462
33469
  displayName: "MobileItemTooltip__Container",
33463
33470
  componentId: "sc-ku4p1j-0"
33464
- })(["position:fixed;z-index:50;left:0;top:0;opacity:0;width:", ";height:", ";background-color:rgba(0 0 0 / 0.5);display:flex;justify-content:center;align-items:center;gap:0.5rem;@media (max-width:580px){flex-direction:column;}"], function (_ref2) {
33465
- var scale = _ref2.scale;
33466
- return "calc(100vw * 100 / " + scale * 100 + ")";
33467
- }, function (_ref3) {
33468
- var scale = _ref3.scale;
33469
- return "calc(100vh * 100 / " + scale * 100 + ")";
33470
- });
33471
+ })(["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;}"]);
33471
33472
  var OptionsContainer = /*#__PURE__*/styled.div.withConfig({
33472
33473
  displayName: "MobileItemTooltip__OptionsContainer",
33473
33474
  componentId: "sc-ku4p1j-1"
@@ -33475,7 +33476,7 @@ var OptionsContainer = /*#__PURE__*/styled.div.withConfig({
33475
33476
  var Option = /*#__PURE__*/styled.button.withConfig({
33476
33477
  displayName: "MobileItemTooltip__Option",
33477
33478
  componentId: "sc-ku4p1j-2"
33478
- })(["padding:1rem;background-color:#333;color:white;border:none;border-radius:3px;width:8rem;transition:background-color 0.2s;&:hover{background-color:#555;}@media (max-width:580px){padding:1rem 0.5rem;}"]);
33479
+ })(["padding:1rem;background-color:#333;color:white;border:none;border-radius:3px;width:8rem;transition:background-color 0.1s;&:hover{background-color:#555;}@media (max-width:580px){padding:1rem 0.5rem;}"]);
33479
33480
 
33480
33481
  var generateContextMenuListOptions = function generateContextMenuListOptions(actionsByTypeList) {
33481
33482
  var contextMenu = actionsByTypeList.map(function (action) {
@@ -33670,7 +33671,7 @@ var ItemSlot = /*#__PURE__*/observer(function (_ref) {
33670
33671
  maxWidth: "48px"
33671
33672
  }, React.createElement(ItemQty, {
33672
33673
  className: qtyClassName
33673
- }, " ", stackQty, " ")));
33674
+ }, Math.round(stackQty * 100) / 100, ' ')));
33674
33675
  }
33675
33676
  return undefined;
33676
33677
  };
@@ -33764,7 +33765,7 @@ var ItemSlot = /*#__PURE__*/observer(function (_ref) {
33764
33765
  onDragEnd(quantity);
33765
33766
  }
33766
33767
  };
33767
- return React.createElement(Container$a, {
33768
+ return React.createElement(Container$b, {
33768
33769
  item: item,
33769
33770
  className: "rpgui-icon empty-slot",
33770
33771
  onMouseUp: function onMouseUp() {
@@ -33915,7 +33916,7 @@ var rarityColor = function rarityColor(item) {
33915
33916
  return null;
33916
33917
  }
33917
33918
  };
33918
- var Container$a = /*#__PURE__*/styled.div.withConfig({
33919
+ var Container$b = /*#__PURE__*/styled.div.withConfig({
33919
33920
  displayName: "ItemSlot__Container",
33920
33921
  componentId: "sc-l2j5ef-0"
33921
33922
  })(["margin:0.1rem;.sprite-from-atlas-img--item{position:relative;top:1.5rem;left:1.5rem;border-color:", ";box-shadow:", " inset,", ";}position:relative;&::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) {
@@ -34026,13 +34027,13 @@ var ItemInfo = function ItemInfo(_ref) {
34026
34027
  }));
34027
34028
  });
34028
34029
  };
34029
- return React.createElement(Container$b, {
34030
+ return React.createElement(Container$c, {
34030
34031
  item: item
34031
34032
  }, React.createElement(Header, null, React.createElement("div", null, React.createElement(Title$1, null, item.name), item.rarity !== 'Common' && React.createElement(Rarity, {
34032
34033
  item: item
34033
- }, item.rarity), React.createElement(Type, null, item.subType)), React.createElement(AllowedSlots, null, renderAvaibleSlots())), renderStatistics(), item.isTwoHanded && React.createElement(Statistic, null, "Two handed"), React.createElement(Description, null, item.description), item.maxStackSize && item.maxStackSize !== 1 && React.createElement(StackInfo, null, "x", (_item$stackQty = item.stackQty) != null ? _item$stackQty : 1, "(", item.maxStackSize, ")"), renderMissingStatistic().length > 0 && React.createElement(MissingStatistics, null, React.createElement(Statistic, null, "Equipped Diff"), itemToCompare && renderMissingStatistic()));
34034
+ }, item.rarity), React.createElement(Type, null, item.subType)), React.createElement(AllowedSlots, null, renderAvaibleSlots())), renderStatistics(), item.isTwoHanded && React.createElement(Statistic, null, "Two handed"), React.createElement(Description, null, item.description), item.maxStackSize && item.maxStackSize !== 1 && React.createElement(StackInfo, null, "x", Math.round(((_item$stackQty = item.stackQty) != null ? _item$stackQty : 1) * 100) / 100, "(", item.maxStackSize, ")"), renderMissingStatistic().length > 0 && React.createElement(MissingStatistics, null, React.createElement(Statistic, null, "Equipped Diff"), itemToCompare && renderMissingStatistic()));
34034
34035
  };
34035
- var Container$b = /*#__PURE__*/styled.div.withConfig({
34036
+ var Container$c = /*#__PURE__*/styled.div.withConfig({
34036
34037
  displayName: "ItemInfo__Container",
34037
34038
  componentId: "sc-1xm4q8k-0"
34038
34039
  })(["color:white;background-color:#222;border-radius:5px;padding:0.5rem;font-size:", ";border:3px solid ", ";height:max-content;width:15rem;@media (max-width:580px){width:80vw;}"], uiFonts.size.small, function (_ref2) {
@@ -34145,22 +34146,18 @@ var ItemTooltip = function ItemTooltip(_ref) {
34145
34146
  var ref = useRef(null);
34146
34147
  useEffect(function () {
34147
34148
  var current = ref.current;
34148
- var initialOffset;
34149
34149
  if (current) {
34150
34150
  var handleMouseMove = function handleMouseMove(event) {
34151
34151
  var clientX = event.clientX,
34152
34152
  clientY = event.clientY;
34153
34153
  // Adjust the position of the tooltip based on the mouse position
34154
34154
  var rect = current.getBoundingClientRect();
34155
- if (!initialOffset) {
34156
- initialOffset = rect;
34157
- }
34158
34155
  var tooltipWidth = rect.width;
34159
34156
  var tooltipHeight = rect.height;
34160
34157
  var isOffScreenRight = clientX + tooltipWidth + offset > window.innerWidth;
34161
34158
  var isOffScreenBottom = clientY + tooltipHeight + offset > window.innerHeight;
34162
- var x = (isOffScreenRight ? clientX - tooltipWidth - offset : clientX + offset) - initialOffset.x;
34163
- var y = (isOffScreenBottom ? clientY - tooltipHeight - offset : clientY + offset) - initialOffset.y;
34159
+ var x = isOffScreenRight ? clientX - tooltipWidth - offset : clientX + offset;
34160
+ var y = isOffScreenBottom ? clientY - tooltipHeight - offset : clientY + offset;
34164
34161
  current.style.transform = "translate(" + x + "px, " + y + "px)";
34165
34162
  current.style.opacity = '1';
34166
34163
  };
@@ -34171,19 +34168,19 @@ var ItemTooltip = function ItemTooltip(_ref) {
34171
34168
  }
34172
34169
  return;
34173
34170
  }, []);
34174
- return React.createElement(Container$c, {
34171
+ return React.createElement(ModalPortal, null, React.createElement(Container$d, {
34175
34172
  ref: ref
34176
34173
  }, React.createElement(ItemInfoDisplay, {
34177
34174
  item: item,
34178
34175
  atlasIMG: atlasIMG,
34179
34176
  atlasJSON: atlasJSON,
34180
34177
  equipmentSet: equipmentSet
34181
- }));
34178
+ })));
34182
34179
  };
34183
- var Container$c = /*#__PURE__*/styled.div.withConfig({
34180
+ var Container$d = /*#__PURE__*/styled.div.withConfig({
34184
34181
  displayName: "ItemTooltip__Container",
34185
34182
  componentId: "sc-11d9r7x-0"
34186
- })(["position:fixed;z-index:50;pointer-events:none;left:0;top:0;opacity:0;"]);
34183
+ })(["position:absolute;z-index:100;pointer-events:none;left:0;top:0;opacity:0;transition:opacity 0.08s;"]);
34187
34184
 
34188
34185
  var ItemInfoWrapper = function ItemInfoWrapper(_ref) {
34189
34186
  var children = _ref.children,
@@ -34748,7 +34745,7 @@ var ShortcutsSetter = function ShortcutsSetter(_ref) {
34748
34745
  return word[0];
34749
34746
  }));
34750
34747
  };
34751
- return React.createElement(Container$d, null, React.createElement("p", null, "Shortcuts:"), React.createElement(List, {
34748
+ return React.createElement(Container$e, null, React.createElement("p", null, "Shortcuts:"), React.createElement(List, {
34752
34749
  id: "shortcuts_list"
34753
34750
  }, Array.from({
34754
34751
  length: 6
@@ -34764,7 +34761,7 @@ var ShortcutsSetter = function ShortcutsSetter(_ref) {
34764
34761
  }, getContent(i));
34765
34762
  })));
34766
34763
  };
34767
- var Container$d = /*#__PURE__*/styled.div.withConfig({
34764
+ var Container$e = /*#__PURE__*/styled.div.withConfig({
34768
34765
  displayName: "ShortcutsSetter__Container",
34769
34766
  componentId: "sc-xuouuf-0"
34770
34767
  })(["p{margin:0;margin-left:0.5rem;}"]);
@@ -34881,7 +34878,7 @@ var ItemContainer$1 = function ItemContainer(_ref) {
34881
34878
  atlasJSON: atlasJSON
34882
34879
  }), React.createElement(ItemsContainer, {
34883
34880
  className: "item-container-body"
34884
- }, onRenderSlots())), quantitySelect.isOpen && React.createElement(QuantitySelectorContainer, null, React.createElement(ItemQuantitySelector, {
34881
+ }, onRenderSlots())), quantitySelect.isOpen && React.createElement(ModalPortal, null, React.createElement(QuantitySelectorContainer, null, React.createElement(ItemQuantitySelector, {
34885
34882
  quantity: quantitySelect.maxQuantity,
34886
34883
  onConfirm: function onConfirm(quantity) {
34887
34884
  quantitySelect.callback(quantity);
@@ -34899,7 +34896,7 @@ var ItemContainer$1 = function ItemContainer(_ref) {
34899
34896
  callback: function callback() {}
34900
34897
  });
34901
34898
  }
34902
- })));
34899
+ }))));
34903
34900
  };
34904
34901
  var ItemsContainer = /*#__PURE__*/styled.div.withConfig({
34905
34902
  displayName: "ItemContainer__ItemsContainer",
@@ -35001,7 +34998,7 @@ var ListMenu = function ListMenu(_ref) {
35001
34998
  onSelected = _ref.onSelected,
35002
34999
  x = _ref.x,
35003
35000
  y = _ref.y;
35004
- return React.createElement(Container$e, {
35001
+ return React.createElement(Container$f, {
35005
35002
  x: x,
35006
35003
  y: y
35007
35004
  }, React.createElement("ul", {
@@ -35018,7 +35015,7 @@ var ListMenu = function ListMenu(_ref) {
35018
35015
  }, (params == null ? void 0 : params.text) || 'No text');
35019
35016
  })));
35020
35017
  };
35021
- var Container$e = /*#__PURE__*/styled.div.withConfig({
35018
+ var Container$f = /*#__PURE__*/styled.div.withConfig({
35022
35019
  displayName: "ListMenu__Container",
35023
35020
  componentId: "sc-i9097t-0"
35024
35021
  })(["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) {
@@ -35072,7 +35069,7 @@ var NPCMultiDialog = function NPCMultiDialog(_ref) {
35072
35069
  type: RPGUIContainerTypes.FramedGold,
35073
35070
  width: '50%',
35074
35071
  height: '180px'
35075
- }, React.createElement(React.Fragment, null, React.createElement(Container$f, null, ((_textAndTypeArray$sli = textAndTypeArray[slide]) == null ? void 0 : _textAndTypeArray$sli.imageSide) === 'right' && React.createElement(React.Fragment, null, React.createElement(TextContainer, {
35072
+ }, React.createElement(React.Fragment, null, React.createElement(Container$g, null, ((_textAndTypeArray$sli = textAndTypeArray[slide]) == null ? void 0 : _textAndTypeArray$sli.imageSide) === 'right' && React.createElement(React.Fragment, null, React.createElement(TextContainer, {
35076
35073
  flex: '70%'
35077
35074
  }, React.createElement(NPCDialogText, {
35078
35075
  onStartStep: function onStartStep() {
@@ -35114,7 +35111,7 @@ var NPCMultiDialog = function NPCMultiDialog(_ref) {
35114
35111
  src: img$7
35115
35112
  }))), ")"));
35116
35113
  };
35117
- var Container$f = /*#__PURE__*/styled.div.withConfig({
35114
+ var Container$g = /*#__PURE__*/styled.div.withConfig({
35118
35115
  displayName: "NPCMultiDialog__Container",
35119
35116
  componentId: "sc-rvu5wg-0"
35120
35117
  })(["display:flex;width:100%;height:100%;box-sizing:border-box;justify-content:center;align-items:flex-start;position:relative;"]);
@@ -35318,7 +35315,7 @@ var QuestionDialog = function QuestionDialog(_ref) {
35318
35315
  return null;
35319
35316
  });
35320
35317
  };
35321
- return React.createElement(Container$g, null, React.createElement(QuestionContainer, null, React.createElement(DynamicText, {
35318
+ return React.createElement(Container$h, null, React.createElement(QuestionContainer, null, React.createElement(DynamicText, {
35322
35319
  text: currentQuestion.text,
35323
35320
  onStart: function onStart() {
35324
35321
  return setCanShowAnswers(false);
@@ -35328,7 +35325,7 @@ var QuestionDialog = function QuestionDialog(_ref) {
35328
35325
  }
35329
35326
  })), canShowAnswers && React.createElement(AnswersContainer, null, onRenderCurrentAnswers()));
35330
35327
  };
35331
- var Container$g = /*#__PURE__*/styled.div.withConfig({
35328
+ var Container$h = /*#__PURE__*/styled.div.withConfig({
35332
35329
  displayName: "QuestionDialog__Container",
35333
35330
  componentId: "sc-bxc5u0-0"
35334
35331
  })(["display:flex;word-break:break-all;box-sizing:border-box;justify-content:flex-start;align-items:flex-start;flex-wrap:wrap;"]);
@@ -35374,7 +35371,7 @@ var ProgressBar = function ProgressBar(_ref) {
35374
35371
  }
35375
35372
  return value * 100 / max;
35376
35373
  };
35377
- return React.createElement(Container$h, {
35374
+ return React.createElement(Container$i, {
35378
35375
  className: "rpgui-progress",
35379
35376
  "data-value": calculatePercentageValue(max, value) / 100,
35380
35377
  "data-rpguitype": "progress",
@@ -35403,7 +35400,7 @@ var TextOverlay$1 = /*#__PURE__*/styled.div.withConfig({
35403
35400
  displayName: "ProgressBar__TextOverlay",
35404
35401
  componentId: "sc-qa6fzh-1"
35405
35402
  })(["width:100%;position:relative;"]);
35406
- var Container$h = /*#__PURE__*/styled.div.withConfig({
35403
+ var Container$i = /*#__PURE__*/styled.div.withConfig({
35407
35404
  displayName: "ProgressBar__Container",
35408
35405
  componentId: "sc-qa6fzh-2"
35409
35406
  })(["display:flex;flex-direction:column;min-width:", "px;width:", "%;justify-content:start;align-items:flex-start;", ""], function (props) {
@@ -35728,7 +35725,7 @@ var SimpleProgressBar = function SimpleProgressBar(_ref) {
35728
35725
  bgColor = _ref$bgColor === void 0 ? 'red' : _ref$bgColor,
35729
35726
  _ref$margin = _ref.margin,
35730
35727
  margin = _ref$margin === void 0 ? 20 : _ref$margin;
35731
- return React.createElement(Container$i, {
35728
+ return React.createElement(Container$j, {
35732
35729
  className: "simple-progress-bar"
35733
35730
  }, React.createElement(ProgressBarContainer, {
35734
35731
  margin: margin
@@ -35737,7 +35734,7 @@ var SimpleProgressBar = function SimpleProgressBar(_ref) {
35737
35734
  bgColor: bgColor
35738
35735
  }))));
35739
35736
  };
35740
- var Container$i = /*#__PURE__*/styled.div.withConfig({
35737
+ var Container$j = /*#__PURE__*/styled.div.withConfig({
35741
35738
  displayName: "SimpleProgressBar__Container",
35742
35739
  componentId: "sc-mbeil3-0"
35743
35740
  })(["display:flex;justify-content:center;align-items:center;width:100%;"]);
@@ -35968,7 +35965,7 @@ var Spell = function Spell(_ref) {
35968
35965
  isSettingShortcut = _ref.isSettingShortcut,
35969
35966
  minMagicLevelRequired = _ref.minMagicLevelRequired;
35970
35967
  var disabled = isSettingShortcut ? charMagicLevel < minMagicLevelRequired : manaCost > charMana || charMagicLevel < minMagicLevelRequired;
35971
- return React.createElement(Container$j, {
35968
+ return React.createElement(Container$k, {
35972
35969
  disabled: disabled,
35973
35970
  onPointerDown: onPointerDown == null ? void 0 : onPointerDown.bind(null, spellKey),
35974
35971
  isSettingShortcut: isSettingShortcut && !disabled,
@@ -35981,7 +35978,7 @@ var Spell = function Spell(_ref) {
35981
35978
  className: "mana"
35982
35979
  }, manaCost)));
35983
35980
  };
35984
- var Container$j = /*#__PURE__*/styled.button.withConfig({
35981
+ var Container$k = /*#__PURE__*/styled.button.withConfig({
35985
35982
  displayName: "Spell__Container",
35986
35983
  componentId: "sc-j96fa2-0"
35987
35984
  })(["display:block;background:none;border:2px solid transparent;border-radius:1rem;width:100%;display:flex;height:5rem;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) {
@@ -36068,7 +36065,7 @@ var Spellbook = function Spellbook(_ref) {
36068
36065
  height: "inherit",
36069
36066
  cancelDrag: "#spellbook-search, #shortcuts_list, .spell",
36070
36067
  scale: scale
36071
- }, React.createElement(Container$k, null, React.createElement(Title$7, null, "Learned Spells"), React.createElement(ShortcutsSetter, {
36068
+ }, React.createElement(Container$l, null, React.createElement(Title$7, null, "Learned Spells"), React.createElement(ShortcutsSetter, {
36072
36069
  setSettingShortcutIndex: setSettingShortcutIndex,
36073
36070
  settingShortcutIndex: settingShortcutIndex,
36074
36071
  shortcuts: shortcuts,
@@ -36100,7 +36097,7 @@ var Title$7 = /*#__PURE__*/styled.h1.withConfig({
36100
36097
  displayName: "Spellbook__Title",
36101
36098
  componentId: "sc-r02nfq-0"
36102
36099
  })(["font-size:", " !important;margin-bottom:0 !important;"], uiFonts.size.large);
36103
- var Container$k = /*#__PURE__*/styled.div.withConfig({
36100
+ var Container$l = /*#__PURE__*/styled.div.withConfig({
36104
36101
  displayName: "Spellbook__Container",
36105
36102
  componentId: "sc-r02nfq-1"
36106
36103
  })(["width:100%;height:100%;color:white;display:flex;flex-direction:column;"]);
@@ -36400,11 +36397,11 @@ var Truncate = function Truncate(_ref) {
36400
36397
  var _ref$maxLines = _ref.maxLines,
36401
36398
  maxLines = _ref$maxLines === void 0 ? 1 : _ref$maxLines,
36402
36399
  children = _ref.children;
36403
- return React.createElement(Container$l, {
36400
+ return React.createElement(Container$m, {
36404
36401
  maxLines: maxLines
36405
36402
  }, children);
36406
36403
  };
36407
- var Container$l = /*#__PURE__*/styled.div.withConfig({
36404
+ var Container$m = /*#__PURE__*/styled.div.withConfig({
36408
36405
  displayName: "Truncate__Container",
36409
36406
  componentId: "sc-6x00qb-0"
36410
36407
  })(["display:-webkit-box;max-width:100%;max-height:100%;-webkit-line-clamp:", ";-webkit-box-orient:vertical;overflow:hidden;"], function (props) {
@@ -36467,7 +36464,7 @@ var NPCDialogText = function NPCDialogText(_ref) {
36467
36464
  var _useState2 = useState(false),
36468
36465
  showGoNextIndicator = _useState2[0],
36469
36466
  setShowGoNextIndicator = _useState2[1];
36470
- return React.createElement(Container$m, null, React.createElement(DynamicText, {
36467
+ return React.createElement(Container$n, null, React.createElement(DynamicText, {
36471
36468
  text: (textChunks == null ? void 0 : textChunks[chunkIndex]) || '',
36472
36469
  onFinish: function onFinish() {
36473
36470
  setShowGoNextIndicator(true);
@@ -36485,7 +36482,7 @@ var NPCDialogText = function NPCDialogText(_ref) {
36485
36482
  }
36486
36483
  }));
36487
36484
  };
36488
- var Container$m = /*#__PURE__*/styled.div.withConfig({
36485
+ var Container$n = /*#__PURE__*/styled.div.withConfig({
36489
36486
  displayName: "NPCDialogText__Container",
36490
36487
  componentId: "sc-1cxkdh9-0"
36491
36488
  })([""]);
@@ -36527,7 +36524,7 @@ var NPCDialog = function NPCDialog(_ref) {
36527
36524
  }
36528
36525
  })), type === NPCDialogType.TextAndThumbnail && React.createElement(ThumbnailContainer$1, null, React.createElement(NPCThumbnail$1, {
36529
36526
  src: imagePath || img$6
36530
- }))) : React.createElement(React.Fragment, null, React.createElement(Container$n, null, React.createElement(TextContainer$2, {
36527
+ }))) : React.createElement(React.Fragment, null, React.createElement(Container$o, null, React.createElement(TextContainer$2, {
36531
36528
  flex: type === NPCDialogType.TextAndThumbnail ? '70%' : '100%'
36532
36529
  }, React.createElement(NPCDialogText, {
36533
36530
  type: type,
@@ -36541,7 +36538,7 @@ var NPCDialog = function NPCDialog(_ref) {
36541
36538
  src: imagePath || img$6
36542
36539
  })))));
36543
36540
  };
36544
- var Container$n = /*#__PURE__*/styled.div.withConfig({
36541
+ var Container$o = /*#__PURE__*/styled.div.withConfig({
36545
36542
  displayName: "NPCDialog__Container",
36546
36543
  componentId: "sc-1b4aw74-0"
36547
36544
  })(["display:flex;width:100%;height:100%;box-sizing:border-box;justify-content:center;align-items:flex-start;position:relative;"]);