@rpg-engine/long-bow 0.5.65 → 0.5.67

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,8 +6,10 @@ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'defau
6
6
 
7
7
  var React = require('react');
8
8
  var React__default = _interopDefault(React);
9
+ var reactSpinners = require('react-spinners');
9
10
  var styled = require('styled-components');
10
11
  var styled__default = _interopDefault(styled);
12
+ var uuid = require('uuid');
11
13
  var shared = require('@rpg-engine/shared');
12
14
  var dayjs = _interopDefault(require('dayjs'));
13
15
  var reactErrorBoundary = require('react-error-boundary');
@@ -16,12 +18,125 @@ var Draggable = _interopDefault(require('react-draggable'));
16
18
  var ReactDOM = _interopDefault(require('react-dom'));
17
19
  var lodash = require('lodash');
18
20
  var mobxReactLite = require('mobx-react-lite');
19
- var uuid = require('uuid');
20
21
  var ai = require('react-icons/ai');
21
22
  require('rpgui/rpgui.css');
22
23
  require('rpgui/rpgui.min.js');
23
24
  var capitalize = _interopDefault(require('lodash/capitalize'));
24
25
 
26
+ var uiColors = {
27
+ lightGray: '#888',
28
+ gray: '#4E4A4E',
29
+ darkGray: '#3e3e3e',
30
+ darkYellow: '#FFC857',
31
+ yellow: '#FFFF00',
32
+ orange: '#D27D2C',
33
+ cardinal: '#C5283D',
34
+ red: '#D04648',
35
+ darkRed: '#442434',
36
+ raisinBlack: '#191923',
37
+ navyBlue: '#0E79B2',
38
+ purple: '#6833A3',
39
+ darkPurple: '#522761',
40
+ blue: '#597DCE',
41
+ darkBlue: '#30346D',
42
+ brown: '#854C30',
43
+ lightGreen: '#66cd1c',
44
+ brownGreen: '#346524',
45
+ white: '#fff'
46
+ };
47
+
48
+ var AsyncDropdown = function AsyncDropdown(_ref) {
49
+ var _options$, _options$find, _options$2;
50
+ var options = _ref.options,
51
+ width = _ref.width,
52
+ onChange = _ref.onChange,
53
+ defaultValue = _ref.defaultValue;
54
+ var dropdownId = uuid.v4();
55
+ var _useState = React.useState(defaultValue || (options == null ? void 0 : (_options$ = options[0]) == null ? void 0 : _options$.value)),
56
+ selectedValue = _useState[0],
57
+ setSelectedValue = _useState[1];
58
+ var _useState2 = React.useState((options == null ? void 0 : (_options$find = options.find(function (option) {
59
+ return option.value === defaultValue;
60
+ })) == null ? void 0 : _options$find.option) || (options == null ? void 0 : (_options$2 = options[0]) == null ? void 0 : _options$2.option)),
61
+ selectedOption = _useState2[0],
62
+ setSelectedOption = _useState2[1];
63
+ var _useState3 = React.useState(false),
64
+ opened = _useState3[0],
65
+ setOpened = _useState3[1];
66
+ React.useEffect(function () {
67
+ if (defaultValue) {
68
+ var _options$find2;
69
+ setSelectedValue(defaultValue);
70
+ setSelectedOption( //@ts-ignore
71
+ options == null ? void 0 : (_options$find2 = options.find(function (option) {
72
+ return option.value === defaultValue;
73
+ })) == null ? void 0 : _options$find2.option);
74
+ } else if ((options == null ? void 0 : options.length) > 0) {
75
+ setSelectedValue(options[0].value);
76
+ setSelectedOption(options[0].option);
77
+ }
78
+ }, [options, defaultValue]);
79
+ var handleSelection = function handleSelection(value, option) {
80
+ if (value !== selectedValue) {
81
+ setSelectedValue(value);
82
+ setSelectedOption(option);
83
+ onChange(value);
84
+ }
85
+ };
86
+ return React__default.createElement(Container, {
87
+ onMouseLeave: function onMouseLeave() {
88
+ return setOpened(false);
89
+ },
90
+ width: width
91
+ }, React__default.createElement(DropdownSelect, {
92
+ id: "dropdown-" + dropdownId,
93
+ className: "rpgui-dropdown-imp rpgui-dropdown-imp-header",
94
+ onPointerUp: function onPointerUp() {
95
+ return setOpened(function (prev) {
96
+ return !prev;
97
+ });
98
+ }
99
+ }, React__default.createElement(DropdownDisplay, null, React__default.createElement(DropdownLabel, null, "\u25BC"), " ", selectedOption, !options.length && React__default.createElement(reactSpinners.BeatLoader, {
100
+ size: 4,
101
+ color: uiColors.white
102
+ }))), React__default.createElement(DropdownOptions, {
103
+ className: "rpgui-dropdown-imp",
104
+ opened: opened
105
+ }, options == null ? void 0 : options.map(function (option) {
106
+ return React__default.createElement("li", {
107
+ key: option.id,
108
+ onPointerUp: function onPointerUp() {
109
+ handleSelection(option.value, option.option);
110
+ setOpened(false);
111
+ }
112
+ }, option.option);
113
+ })));
114
+ };
115
+ var DropdownDisplay = /*#__PURE__*/styled__default.span.withConfig({
116
+ displayName: "AsyncDropdown__DropdownDisplay",
117
+ componentId: "sc-lk409c-0"
118
+ })(["display:flex;flex-wrap:wrap;justify-content:start;align-items:center;"]);
119
+ var DropdownLabel = /*#__PURE__*/styled__default.label.withConfig({
120
+ displayName: "AsyncDropdown__DropdownLabel",
121
+ componentId: "sc-lk409c-1"
122
+ })(["margin-right:0.5rem;"]);
123
+ var Container = /*#__PURE__*/styled__default.div.withConfig({
124
+ displayName: "AsyncDropdown__Container",
125
+ componentId: "sc-lk409c-2"
126
+ })(["position:relative;width:", ";"], function (props) {
127
+ return props.width || '100%';
128
+ });
129
+ var DropdownSelect = /*#__PURE__*/styled__default.p.withConfig({
130
+ displayName: "AsyncDropdown__DropdownSelect",
131
+ componentId: "sc-lk409c-3"
132
+ })(["width:100%;box-sizing:border-box;label{display:inline-block;transform:translateY(-2px);}"]);
133
+ var DropdownOptions = /*#__PURE__*/styled__default.ul.withConfig({
134
+ displayName: "AsyncDropdown__DropdownOptions",
135
+ componentId: "sc-lk409c-4"
136
+ })(["position:absolute;width:100%;max-height:300px;overflow-y:auto;display:", ";box-sizing:border-box;@media (max-width:768px){padding:8px 0;}"], function (props) {
137
+ return props.opened ? 'block' : 'none';
138
+ });
139
+
25
140
  function _extends() {
26
141
  _extends = Object.assign ? Object.assign.bind() : function (target) {
27
142
  for (var i = 1; i < arguments.length; i++) {
@@ -129,7 +244,7 @@ var SpriteFromAtlas = function SpriteFromAtlas(_ref) {
129
244
  console.error("SpriteFromAtlas: Could not find sprite with key " + spriteKey + " in atlasJSON.");
130
245
  return null;
131
246
  }
132
- return React__default.createElement(Container, {
247
+ return React__default.createElement(Container$1, {
133
248
  width: width,
134
249
  height: height,
135
250
  hasHover: grayScale,
@@ -147,7 +262,7 @@ var SpriteFromAtlas = function SpriteFromAtlas(_ref) {
147
262
  borderRadius: borderRadius
148
263
  }));
149
264
  };
150
- var Container = /*#__PURE__*/styled__default.div.withConfig({
265
+ var Container$1 = /*#__PURE__*/styled__default.div.withConfig({
151
266
  displayName: "SpriteFromAtlas__Container",
152
267
  componentId: "sc-1lpani8-0"
153
268
  })(["width:", "px;height:", "px;", ""], function (props) {
@@ -12363,7 +12478,7 @@ var Ellipsis = function Ellipsis(_ref) {
12363
12478
  maxWidth = _ref.maxWidth,
12364
12479
  fontSize = _ref.fontSize,
12365
12480
  center = _ref.center;
12366
- return React__default.createElement(Container$1, {
12481
+ return React__default.createElement(Container$2, {
12367
12482
  maxWidth: maxWidth,
12368
12483
  fontSize: fontSize,
12369
12484
  center: center
@@ -12371,7 +12486,7 @@ var Ellipsis = function Ellipsis(_ref) {
12371
12486
  className: "ellipsis-" + maxLines + "-lines"
12372
12487
  }, children));
12373
12488
  };
12374
- var Container$1 = /*#__PURE__*/styled__default.span.withConfig({
12489
+ var Container$2 = /*#__PURE__*/styled__default.span.withConfig({
12375
12490
  displayName: "Ellipsis__Container",
12376
12491
  componentId: "sc-ysrlju-0"
12377
12492
  })(["display:block;margin:0;.ellipsis-1-lines{display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:", ";font-size:", ";", "}.ellipsis-2-lines{display:block;display:-webkit-box;max-width:", "px;height:25px;margin:0 auto;line-height:1;-webkit-line-clamp:2;-webkit-box-orient:vertical;text-overflow:ellipsis;overflow:hidden;font-size:", ";}.ellipsis-3-lines{display:block;display:-webkit-box;max-width:", "px;height:43px;margin:0 auto;line-height:1;-webkit-line-clamp:3;-webkit-box-orient:vertical;text-overflow:ellipsis;overflow:hidden;font-size:", ";}"], function (props) {
@@ -12420,7 +12535,7 @@ var PropertySelect = function PropertySelect(_ref) {
12420
12535
  }
12421
12536
  return '';
12422
12537
  };
12423
- return React__default.createElement(Container$2, null, React__default.createElement(TextOverlay, null, React__default.createElement("p", null, React__default.createElement(Item, null, React__default.createElement(Ellipsis, {
12538
+ return React__default.createElement(Container$3, null, React__default.createElement(TextOverlay, null, React__default.createElement("p", null, React__default.createElement(Item, null, React__default.createElement(Ellipsis, {
12424
12539
  maxLines: 1,
12425
12540
  maxWidth: "60%",
12426
12541
  center: true
@@ -12442,7 +12557,7 @@ var TextOverlay = /*#__PURE__*/styled__default.div.withConfig({
12442
12557
  displayName: "PropertySelect__TextOverlay",
12443
12558
  componentId: "sc-12uqx6s-1"
12444
12559
  })(["width:100%;position:relative;"]);
12445
- var Container$2 = /*#__PURE__*/styled__default.div.withConfig({
12560
+ var Container$3 = /*#__PURE__*/styled__default.div.withConfig({
12446
12561
  displayName: "PropertySelect__Container",
12447
12562
  componentId: "sc-12uqx6s-2"
12448
12563
  })(["position:relative;display:flex;flex-direction:column;justify-content:start;align-items:flex-start;min-width:100px;width:40%;"]);
@@ -12479,7 +12594,7 @@ var CharacterSelection = function CharacterSelection(_ref) {
12479
12594
  React.useEffect(function () {
12480
12595
  setSelectedValue(propertySelectValues[0]);
12481
12596
  }, [availableCharacters]);
12482
- return React__default.createElement(Container$3, null, selectedSpriteKey && atlasIMG && atlasJSON && React__default.createElement(ErrorBoundary, null, React__default.createElement(SpriteFromAtlas, {
12597
+ return React__default.createElement(Container$4, null, selectedSpriteKey && atlasIMG && atlasJSON && React__default.createElement(ErrorBoundary, null, React__default.createElement(SpriteFromAtlas, {
12483
12598
  spriteKey: selectedSpriteKey,
12484
12599
  atlasIMG: atlasIMG,
12485
12600
  atlasJSON: atlasJSON,
@@ -12501,7 +12616,7 @@ var CharacterSelection = function CharacterSelection(_ref) {
12501
12616
  }
12502
12617
  }));
12503
12618
  };
12504
- var Container$3 = /*#__PURE__*/styled__default.div.withConfig({
12619
+ var Container$4 = /*#__PURE__*/styled__default.div.withConfig({
12505
12620
  displayName: "CharacterSelection__Container",
12506
12621
  componentId: "sc-b34498-0"
12507
12622
  })(["display:flex;flex-direction:column;align-items:center;image-rendering:pixelated;"]);
@@ -12642,28 +12757,6 @@ var Button$1 = /*#__PURE__*/styled__default.button.withConfig({
12642
12757
  return buttonBackgroundColor;
12643
12758
  });
12644
12759
 
12645
- var uiColors = {
12646
- lightGray: '#888',
12647
- gray: '#4E4A4E',
12648
- darkGray: '#3e3e3e',
12649
- darkYellow: '#FFC857',
12650
- yellow: '#FFFF00',
12651
- orange: '#D27D2C',
12652
- cardinal: '#C5283D',
12653
- red: '#D04648',
12654
- darkRed: '#442434',
12655
- raisinBlack: '#191923',
12656
- navyBlue: '#0E79B2',
12657
- purple: '#6833A3',
12658
- darkPurple: '#522761',
12659
- blue: '#597DCE',
12660
- darkBlue: '#30346D',
12661
- brown: '#854C30',
12662
- lightGreen: '#66cd1c',
12663
- brownGreen: '#346524',
12664
- white: '#fff'
12665
- };
12666
-
12667
12760
  var SearchCharacter = function SearchCharacter(_ref) {
12668
12761
  var onChangeCharacterName = _ref.onChangeCharacterName,
12669
12762
  onBlur = _ref.onBlur,
@@ -12979,13 +13072,13 @@ var RPGUIContainer = function RPGUIContainer(_ref) {
12979
13072
  width = _ref$width === void 0 ? '50%' : _ref$width,
12980
13073
  height = _ref.height,
12981
13074
  className = _ref.className;
12982
- return React__default.createElement(Container$4, {
13075
+ return React__default.createElement(Container$5, {
12983
13076
  width: width,
12984
13077
  height: height || 'auto',
12985
13078
  className: "rpgui-container " + type + " " + className
12986
13079
  }, children);
12987
13080
  };
12988
- var Container$4 = /*#__PURE__*/styled__default.div.withConfig({
13081
+ var Container$5 = /*#__PURE__*/styled__default.div.withConfig({
12989
13082
  displayName: "RPGUIContainer__Container",
12990
13083
  componentId: "sc-a7heha-0"
12991
13084
  })(["height:", ";width:", ";display:flex;flex-wrap:wrap;image-rendering:pixelated;"], function (props) {
@@ -13044,7 +13137,7 @@ var ChatDeprecated = function ChatDeprecated(_ref) {
13044
13137
  }, onRenderMessageLines(emitter, createdAt, message));
13045
13138
  }) : React__default.createElement(MessageText, null, "No messages available.");
13046
13139
  };
13047
- return React__default.createElement(Container$5, null, React__default.createElement(CustomContainer, {
13140
+ return React__default.createElement(Container$6, null, React__default.createElement(CustomContainer, {
13048
13141
  type: exports.RPGUIContainerTypes.FramedGrey,
13049
13142
  width: width,
13050
13143
  height: height,
@@ -13082,7 +13175,7 @@ var ChatDeprecated = function ChatDeprecated(_ref) {
13082
13175
  id: "chat-send-button"
13083
13176
  }, "Send"))))));
13084
13177
  };
13085
- var Container$5 = /*#__PURE__*/styled__default.div.withConfig({
13178
+ var Container$6 = /*#__PURE__*/styled__default.div.withConfig({
13086
13179
  displayName: "ChatDeprecated__Container",
13087
13180
  componentId: "sc-fuuod3-0"
13088
13181
  })(["position:relative;"]);
@@ -13418,7 +13511,7 @@ var DraggableContainer = function DraggableContainer(_ref) {
13418
13511
  },
13419
13512
  defaultPosition: initialPosition,
13420
13513
  scale: scale
13421
- }, React__default.createElement(Container$6, {
13514
+ }, React__default.createElement(Container$7, {
13422
13515
  ref: draggableRef,
13423
13516
  width: width,
13424
13517
  height: height || 'auto',
@@ -13433,7 +13526,7 @@ var DraggableContainer = function DraggableContainer(_ref) {
13433
13526
  onPointerDown: onCloseButton
13434
13527
  }, "X"), children));
13435
13528
  };
13436
- var Container$6 = /*#__PURE__*/styled__default.div.withConfig({
13529
+ var Container$7 = /*#__PURE__*/styled__default.div.withConfig({
13437
13530
  displayName: "DraggableContainer__Container",
13438
13531
  componentId: "sc-184mpyl-0"
13439
13532
  })(["height:", ";width:", ";display:flex;flex-wrap:wrap;image-rendering:pixelated;&.rpgui-container{padding-top:1.5rem;}"], function (props) {
@@ -13504,11 +13597,11 @@ var countItemFromInventory = function countItemFromInventory(itemKey, inventory)
13504
13597
  var modalRoot = /*#__PURE__*/document.getElementById('modal-root');
13505
13598
  var ModalPortal = function ModalPortal(_ref) {
13506
13599
  var children = _ref.children;
13507
- return ReactDOM.createPortal(React__default.createElement(Container$7, {
13600
+ return ReactDOM.createPortal(React__default.createElement(Container$8, {
13508
13601
  className: "rpgui-content"
13509
13602
  }, children), modalRoot);
13510
13603
  };
13511
- var Container$7 = /*#__PURE__*/styled__default.div.withConfig({
13604
+ var Container$8 = /*#__PURE__*/styled__default.div.withConfig({
13512
13605
  displayName: "ModalPortal__Container",
13513
13606
  componentId: "sc-dgmp04-0"
13514
13607
  })(["position:static !important;"]);
@@ -13643,7 +13736,7 @@ var RelativeListMenu = function RelativeListMenu(_ref) {
13643
13736
  document.removeEventListener('clickOutside', function (_e) {});
13644
13737
  };
13645
13738
  }, []);
13646
- return React__default.createElement(ModalPortal, null, React__default.createElement(Container$8, Object.assign({
13739
+ return React__default.createElement(ModalPortal, null, React__default.createElement(Container$9, Object.assign({
13647
13740
  fontSize: fontSize,
13648
13741
  ref: ref
13649
13742
  }, pos), React__default.createElement("ul", {
@@ -13660,7 +13753,7 @@ var RelativeListMenu = function RelativeListMenu(_ref) {
13660
13753
  }, (params == null ? void 0 : params.text) || 'No text');
13661
13754
  }))));
13662
13755
  };
13663
- var Container$8 = /*#__PURE__*/styled__default.div.withConfig({
13756
+ var Container$9 = /*#__PURE__*/styled__default.div.withConfig({
13664
13757
  displayName: "RelativeListMenu__Container",
13665
13758
  componentId: "sc-7hohf-0"
13666
13759
  })(["position:absolute;top:", "px;left:", "px;display:flex;flex-direction:column;width:max-content;justify-content:start;align-items:flex-start;li{font-size:", "em;}"], function (props) {
@@ -13690,7 +13783,7 @@ var MobileItemTooltip = function MobileItemTooltip(_ref) {
13690
13783
  var _ref$current;
13691
13784
  (_ref$current = ref.current) == null ? void 0 : _ref$current.classList.add('fadeOut');
13692
13785
  };
13693
- return React__default.createElement(ModalPortal, null, React__default.createElement(Container$9, {
13786
+ return React__default.createElement(ModalPortal, null, React__default.createElement(Container$a, {
13694
13787
  ref: ref,
13695
13788
  onTouchEnd: function onTouchEnd() {
13696
13789
  handleFadeOut();
@@ -13718,7 +13811,7 @@ var MobileItemTooltip = function MobileItemTooltip(_ref) {
13718
13811
  }, option.text);
13719
13812
  }))));
13720
13813
  };
13721
- var Container$9 = /*#__PURE__*/styled__default.div.withConfig({
13814
+ var Container$a = /*#__PURE__*/styled__default.div.withConfig({
13722
13815
  displayName: "MobileItemTooltip__Container",
13723
13816
  componentId: "sc-ku4p1j-0"
13724
13817
  })(["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:640px){flex-direction:column;}"]);
@@ -14118,7 +14211,7 @@ var ItemSlot = /*#__PURE__*/mobxReactLite.observer(function (_ref) {
14118
14211
  setDraggingItem(item);
14119
14212
  }
14120
14213
  };
14121
- return React__default.createElement(Container$a, {
14214
+ return React__default.createElement(Container$b, {
14122
14215
  isDraggingItem: !!draggingItem,
14123
14216
  item: item,
14124
14217
  className: "rpgui-icon empty-slot",
@@ -14196,7 +14289,7 @@ var ItemSlot = /*#__PURE__*/mobxReactLite.observer(function (_ref) {
14196
14289
  setIsTooltipVisible: setTooltipVisible
14197
14290
  }));
14198
14291
  });
14199
- var Container$a = /*#__PURE__*/styled__default.div.withConfig({
14292
+ var Container$b = /*#__PURE__*/styled__default.div.withConfig({
14200
14293
  displayName: "ItemSlot__Container",
14201
14294
  componentId: "sc-l2j5ef-0"
14202
14295
  })(["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) {
@@ -14312,7 +14405,7 @@ var ItemInfo = function ItemInfo(_ref) {
14312
14405
  });
14313
14406
  };
14314
14407
  var skillName = (_item$minRequirements = item.minRequirements) == null ? void 0 : (_item$minRequirements2 = _item$minRequirements.skill) == null ? void 0 : _item$minRequirements2.name;
14315
- return React__default.createElement(Container$b, {
14408
+ return React__default.createElement(Container$c, {
14316
14409
  item: item
14317
14410
  }, React__default.createElement(Header, null, React__default.createElement("div", null, React__default.createElement(Title$1, null, item.name), item.rarity !== 'Common' && React__default.createElement(Rarity, {
14318
14411
  item: item
@@ -14326,7 +14419,7 @@ var ItemInfo = function ItemInfo(_ref) {
14326
14419
  "$isSpecial": true
14327
14420
  }, "Two handed"), React__default.createElement(Description, null, item.description), item.maxStackSize && item.maxStackSize !== 1 && React__default.createElement(StackInfo, null, "x", Math.round(((_item$stackQty = item.stackQty) != null ? _item$stackQty : 1) * 100) / 100, "(", item.maxStackSize, ")"), renderMissingStatistic().length > 0 && React__default.createElement(MissingStatistics, null, React__default.createElement(Statistic, null, "Equipped Diff"), itemToCompare && renderMissingStatistic()));
14328
14421
  };
14329
- var Container$b = /*#__PURE__*/styled__default.div.withConfig({
14422
+ var Container$c = /*#__PURE__*/styled__default.div.withConfig({
14330
14423
  displayName: "ItemInfo__Container",
14331
14424
  componentId: "sc-1xm4q8k-0"
14332
14425
  })(["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) {
@@ -14472,7 +14565,7 @@ var ItemTooltip = function ItemTooltip(_ref) {
14472
14565
  }
14473
14566
  return;
14474
14567
  }, []);
14475
- return React__default.createElement(ModalPortal, null, React__default.createElement(Container$c, {
14568
+ return React__default.createElement(ModalPortal, null, React__default.createElement(Container$d, {
14476
14569
  ref: ref
14477
14570
  }, React__default.createElement(ItemInfoDisplay, {
14478
14571
  item: item,
@@ -14481,7 +14574,7 @@ var ItemTooltip = function ItemTooltip(_ref) {
14481
14574
  equipmentSet: equipmentSet
14482
14575
  })));
14483
14576
  };
14484
- var Container$c = /*#__PURE__*/styled__default.div.withConfig({
14577
+ var Container$d = /*#__PURE__*/styled__default.div.withConfig({
14485
14578
  displayName: "ItemTooltip__Container",
14486
14579
  componentId: "sc-11d9r7x-0"
14487
14580
  })(["position:absolute;z-index:100;pointer-events:none;left:0;top:0;opacity:0;transition:opacity 0.08s;"]);
@@ -14799,12 +14892,9 @@ var ItemTypes = /*#__PURE__*/styled__default.div.withConfig({
14799
14892
  var Dropdown = function Dropdown(_ref) {
14800
14893
  var options = _ref.options,
14801
14894
  width = _ref.width,
14802
- onChange = _ref.onChange,
14803
- defaultValue = _ref.defaultValue,
14804
- _ref$triggerChangeOnM = _ref.triggerChangeOnMount,
14805
- triggerChangeOnMount = _ref$triggerChangeOnM === void 0 ? true : _ref$triggerChangeOnM;
14895
+ onChange = _ref.onChange;
14806
14896
  var dropdownId = uuid.v4();
14807
- var _useState = React.useState(defaultValue || ''),
14897
+ var _useState = React.useState(''),
14808
14898
  selectedValue = _useState[0],
14809
14899
  setSelectedValue = _useState[1];
14810
14900
  var _useState2 = React.useState(''),
@@ -14833,27 +14923,16 @@ var Dropdown = function Dropdown(_ref) {
14833
14923
  }
14834
14924
  }, [options]);
14835
14925
  React.useEffect(function () {
14836
- if (defaultValue) {
14837
- var option = options.find(function (o) {
14838
- return o.value === defaultValue;
14839
- });
14840
- if (option) {
14841
- setSelectedValue(option.value);
14842
- setSelectedOption(option.option);
14843
- }
14844
- }
14845
- }, [defaultValue]);
14846
- React.useEffect(function () {
14847
- if (selectedValue && triggerChangeOnMount) {
14926
+ if (selectedValue) {
14848
14927
  onChange(selectedValue);
14849
14928
  }
14850
14929
  }, [selectedValue]);
14851
- return React__default.createElement(Container$d, {
14930
+ return React__default.createElement(Container$e, {
14852
14931
  onMouseLeave: function onMouseLeave() {
14853
14932
  return setOpened(false);
14854
14933
  },
14855
14934
  width: width
14856
- }, React__default.createElement(DropdownSelect, {
14935
+ }, React__default.createElement(DropdownSelect$1, {
14857
14936
  id: "dropdown-" + dropdownId,
14858
14937
  className: "rpgui-dropdown-imp rpgui-dropdown-imp-header",
14859
14938
  onPointerUp: function onPointerUp() {
@@ -14861,7 +14940,7 @@ var Dropdown = function Dropdown(_ref) {
14861
14940
  return !prev;
14862
14941
  });
14863
14942
  }
14864
- }, React__default.createElement("label", null, "\u25BC"), " ", selectedOption), React__default.createElement(DropdownOptions, {
14943
+ }, React__default.createElement("label", null, "\u25BC"), " ", selectedOption), React__default.createElement(DropdownOptions$1, {
14865
14944
  className: "rpgui-dropdown-imp",
14866
14945
  opened: opened
14867
14946
  }, options.map(function (option) {
@@ -14875,17 +14954,17 @@ var Dropdown = function Dropdown(_ref) {
14875
14954
  }, option.option);
14876
14955
  })));
14877
14956
  };
14878
- var Container$d = /*#__PURE__*/styled__default.div.withConfig({
14957
+ var Container$e = /*#__PURE__*/styled__default.div.withConfig({
14879
14958
  displayName: "Dropdown__Container",
14880
14959
  componentId: "sc-8arn65-0"
14881
14960
  })(["position:relative;width:", ";"], function (props) {
14882
14961
  return props.width || '100%';
14883
14962
  });
14884
- var DropdownSelect = /*#__PURE__*/styled__default.p.withConfig({
14963
+ var DropdownSelect$1 = /*#__PURE__*/styled__default.p.withConfig({
14885
14964
  displayName: "Dropdown__DropdownSelect",
14886
14965
  componentId: "sc-8arn65-1"
14887
14966
  })(["width:100%;box-sizing:border-box;label{display:inline-block;transform:translateY(-2px);}"]);
14888
- var DropdownOptions = /*#__PURE__*/styled__default.ul.withConfig({
14967
+ var DropdownOptions$1 = /*#__PURE__*/styled__default.ul.withConfig({
14889
14968
  displayName: "Dropdown__DropdownOptions",
14890
14969
  componentId: "sc-8arn65-2"
14891
14970
  })(["position:absolute;width:100%;max-height:300px;overflow-y:auto;display:", ";box-sizing:border-box;@media (max-width:768px){padding:8px 0;}"], function (props) {
@@ -14987,7 +15066,7 @@ var DraggedItem = function DraggedItem(_ref) {
14987
15066
  var centeredX = x - OFFSET;
14988
15067
  var centeredY = y - OFFSET;
14989
15068
  var stackInfo = onRenderStackInfo((_item$_id = item == null ? void 0 : item._id) != null ? _item$_id : '', (_item$stackQty = item == null ? void 0 : item.stackQty) != null ? _item$stackQty : 0);
14990
- return React__default.createElement(Container$e, null, React__default.createElement(SpriteContainer, {
15069
+ return React__default.createElement(Container$f, null, React__default.createElement(SpriteContainer, {
14991
15070
  x: centeredX,
14992
15071
  y: centeredY
14993
15072
  }, React__default.createElement(SpriteFromAtlas, {
@@ -15005,7 +15084,7 @@ var DraggedItem = function DraggedItem(_ref) {
15005
15084
  }), stackInfo));
15006
15085
  };
15007
15086
  var pulse = "\n @keyframes pulse {\n 0%, 100% {\n transform: scale(1) rotate(-3deg);\n }\n 50% {\n transform: scale(0.95) rotate(-3deg);\n }\n }\n";
15008
- var Container$e = /*#__PURE__*/styled__default.div.withConfig({
15087
+ var Container$f = /*#__PURE__*/styled__default.div.withConfig({
15009
15088
  displayName: "DraggedItem__Container",
15010
15089
  componentId: "sc-mlzzcp-0"
15011
15090
  })(["position:relative;"]);
@@ -15398,7 +15477,7 @@ var NPCDialogText = function NPCDialogText(_ref) {
15398
15477
  var _useState2 = React.useState(false),
15399
15478
  showGoNextIndicator = _useState2[0],
15400
15479
  setShowGoNextIndicator = _useState2[1];
15401
- return React__default.createElement(Container$f, null, React__default.createElement(DynamicText, {
15480
+ return React__default.createElement(Container$g, null, React__default.createElement(DynamicText, {
15402
15481
  text: (textChunks == null ? void 0 : textChunks[chunkIndex]) || '',
15403
15482
  onFinish: function onFinish() {
15404
15483
  setShowGoNextIndicator(true);
@@ -15416,7 +15495,7 @@ var NPCDialogText = function NPCDialogText(_ref) {
15416
15495
  }
15417
15496
  }));
15418
15497
  };
15419
- var Container$f = /*#__PURE__*/styled__default.div.withConfig({
15498
+ var Container$g = /*#__PURE__*/styled__default.div.withConfig({
15420
15499
  displayName: "NPCDialogText__Container",
15421
15500
  componentId: "sc-1cxkdh9-0"
15422
15501
  })([""]);
@@ -15568,7 +15647,7 @@ var QuestionDialog = function QuestionDialog(_ref) {
15568
15647
  return null;
15569
15648
  });
15570
15649
  };
15571
- return React__default.createElement(Container$g, null, React__default.createElement(QuestionContainer, null, React__default.createElement(DynamicText, {
15650
+ return React__default.createElement(Container$h, null, React__default.createElement(QuestionContainer, null, React__default.createElement(DynamicText, {
15572
15651
  text: currentQuestion.text,
15573
15652
  onStart: function onStart() {
15574
15653
  return setCanShowAnswers(false);
@@ -15578,7 +15657,7 @@ var QuestionDialog = function QuestionDialog(_ref) {
15578
15657
  }
15579
15658
  })), canShowAnswers && React__default.createElement(AnswersContainer, null, onRenderCurrentAnswers()));
15580
15659
  };
15581
- var Container$g = /*#__PURE__*/styled__default.div.withConfig({
15660
+ var Container$h = /*#__PURE__*/styled__default.div.withConfig({
15582
15661
  displayName: "QuestionDialog__Container",
15583
15662
  componentId: "sc-bxc5u0-0"
15584
15663
  })(["display:flex;word-break:break-all;box-sizing:border-box;justify-content:flex-start;align-items:flex-start;flex-wrap:wrap;"]);
@@ -15638,7 +15717,7 @@ var NPCDialog = function NPCDialog(_ref) {
15638
15717
  }
15639
15718
  })), type === exports.NPCDialogType.TextAndThumbnail && React__default.createElement(ThumbnailContainer, null, React__default.createElement(NPCThumbnail, {
15640
15719
  src: imagePath || img$7
15641
- }))) : React__default.createElement(React__default.Fragment, null, React__default.createElement(Container$h, null, React__default.createElement(TextContainer$1, {
15720
+ }))) : React__default.createElement(React__default.Fragment, null, React__default.createElement(Container$i, null, React__default.createElement(TextContainer$1, {
15642
15721
  flex: type === exports.NPCDialogType.TextAndThumbnail ? '70%' : '100%'
15643
15722
  }, React__default.createElement(NPCDialogText, {
15644
15723
  type: type,
@@ -15652,7 +15731,7 @@ var NPCDialog = function NPCDialog(_ref) {
15652
15731
  src: imagePath || img$7
15653
15732
  })))));
15654
15733
  };
15655
- var Container$h = /*#__PURE__*/styled__default.div.withConfig({
15734
+ var Container$i = /*#__PURE__*/styled__default.div.withConfig({
15656
15735
  displayName: "NPCDialog__Container",
15657
15736
  componentId: "sc-1b4aw74-0"
15658
15737
  })(["display:flex;width:100%;height:100%;box-sizing:border-box;justify-content:center;align-items:flex-start;position:relative;"]);
@@ -15708,7 +15787,7 @@ var NPCMultiDialog = function NPCMultiDialog(_ref) {
15708
15787
  type: exports.RPGUIContainerTypes.FramedGold,
15709
15788
  width: '50%',
15710
15789
  height: '180px'
15711
- }, React__default.createElement(React__default.Fragment, null, React__default.createElement(Container$i, null, ((_textAndTypeArray$sli = textAndTypeArray[slide]) == null ? void 0 : _textAndTypeArray$sli.imageSide) === 'right' && React__default.createElement(React__default.Fragment, null, React__default.createElement(TextContainer$2, {
15790
+ }, React__default.createElement(React__default.Fragment, null, React__default.createElement(Container$j, null, ((_textAndTypeArray$sli = textAndTypeArray[slide]) == null ? void 0 : _textAndTypeArray$sli.imageSide) === 'right' && React__default.createElement(React__default.Fragment, null, React__default.createElement(TextContainer$2, {
15712
15791
  flex: '70%'
15713
15792
  }, React__default.createElement(NPCDialogText, {
15714
15793
  onStartStep: function onStartStep() {
@@ -15750,7 +15829,7 @@ var NPCMultiDialog = function NPCMultiDialog(_ref) {
15750
15829
  src: img$6
15751
15830
  }))), ")"));
15752
15831
  };
15753
- var Container$i = /*#__PURE__*/styled__default.div.withConfig({
15832
+ var Container$j = /*#__PURE__*/styled__default.div.withConfig({
15754
15833
  displayName: "NPCMultiDialog__Container",
15755
15834
  componentId: "sc-rvu5wg-0"
15756
15835
  })(["display:flex;width:100%;height:100%;box-sizing:border-box;justify-content:center;align-items:flex-start;position:relative;"]);
@@ -15936,8 +16015,7 @@ var CloseButton$3 = /*#__PURE__*/styled__default.div.withConfig({
15936
16015
  })(["position:absolute;top:3px;right:0px;color:white;z-index:22;font-size:1.5rem;@media (max-width:950px){font-size:1.7rem;padding:12px;}"]);
15937
16016
 
15938
16017
  var SimpleImageCarousel = function SimpleImageCarousel(_ref) {
15939
- var basePath = _ref.basePath,
15940
- imagesSrc = _ref.imagesSrc,
16018
+ var images = _ref.images,
15941
16019
  styles = _ref.styles,
15942
16020
  _ref$autoCycle = _ref.autoCycle,
15943
16021
  autoCycle = _ref$autoCycle === void 0 ? false : _ref$autoCycle,
@@ -15948,42 +16026,43 @@ var SimpleImageCarousel = function SimpleImageCarousel(_ref) {
15948
16026
  var _useState = React.useState(0),
15949
16027
  currentImage = _useState[0],
15950
16028
  setCurrentImage = _useState[1];
15951
- var isInteracted = React.useRef(false);
16029
+ var _useState2 = React.useState(null),
16030
+ autoCycleId = _useState2[0],
16031
+ setAutoCycleId = _useState2[1];
16032
+ var handleLeftClick = function handleLeftClick() {
16033
+ setCurrentImage(function (prevImage) {
16034
+ return (prevImage - 1 + images.length) % images.length;
16035
+ });
16036
+ if (stopAutoCyclingOnInteraction && autoCycleId) {
16037
+ clearInterval(autoCycleId);
16038
+ setAutoCycleId(null);
16039
+ }
16040
+ };
16041
+ var handleRightClick = function handleRightClick() {
16042
+ setCurrentImage(function (prevImage) {
16043
+ return (prevImage + 1) % images.length;
16044
+ });
16045
+ if (stopAutoCyclingOnInteraction && autoCycleId) {
16046
+ clearInterval(autoCycleId);
16047
+ setAutoCycleId(null);
16048
+ }
16049
+ };
15952
16050
  React.useEffect(function () {
15953
- var timer = null;
15954
- if (autoCycle && !isInteracted.current) {
15955
- timer = setInterval(function () {
15956
- if (stopAutoCyclingOnInteraction && isInteracted.current) {
15957
- clearInterval(timer);
15958
- return;
15959
- }
15960
- handleRightClick(true);
16051
+ if (autoCycle) {
16052
+ var id = setInterval(function () {
16053
+ setCurrentImage(function (prevImage) {
16054
+ return (prevImage + 1) % images.length;
16055
+ });
15961
16056
  }, autoCycleDelay);
16057
+ setAutoCycleId(id);
15962
16058
  }
15963
16059
  return function () {
15964
- if (timer) {
15965
- clearInterval(timer);
16060
+ if (autoCycleId) {
16061
+ clearInterval(autoCycleId);
15966
16062
  }
15967
16063
  };
15968
- }, [autoCycle, autoCycleDelay]);
15969
- var handleLeftClick = function handleLeftClick() {
15970
- isInteracted.current = true;
15971
- setCurrentImage(function (oldImage) {
15972
- return oldImage === 0 ? imagesSrc.length - 1 : oldImage - 1;
15973
- });
15974
- };
15975
- var handleRightClick = function handleRightClick(isAutomatedClick) {
15976
- if (isAutomatedClick === void 0) {
15977
- isAutomatedClick = false;
15978
- }
15979
- if (!isAutomatedClick) {
15980
- isInteracted.current = true;
15981
- }
15982
- setCurrentImage(function (oldImage) {
15983
- return oldImage === imagesSrc.length - 1 ? 0 : oldImage + 1;
15984
- });
15985
- };
15986
- var hasMoreThanOneImage = imagesSrc.length > 1;
16064
+ }, [autoCycle, autoCycleDelay, images.length]);
16065
+ var hasMoreThanOneImage = images.length > 1;
15987
16066
  return React__default.createElement(ImageContainer, {
15988
16067
  style: styles
15989
16068
  }, hasMoreThanOneImage && React__default.createElement(CustomLeftArrow, {
@@ -15994,8 +16073,8 @@ var SimpleImageCarousel = function SimpleImageCarousel(_ref) {
15994
16073
  onPointerDown: handleRightClick
15995
16074
  }), React__default.createElement(Carousel, null, React__default.createElement(FadeInCarouselImg, {
15996
16075
  key: currentImage,
15997
- src: basePath + "/" + imagesSrc[currentImage],
15998
- alt: imagesSrc[currentImage]
16076
+ src: images[currentImage],
16077
+ alt: "Image " + currentImage
15999
16078
  })));
16000
16079
  };
16001
16080
  var ImageContainer = /*#__PURE__*/styled__default.div.withConfig({
@@ -16178,7 +16257,7 @@ var ShortcutsSetter = function ShortcutsSetter(_ref) {
16178
16257
  }
16179
16258
  return null;
16180
16259
  };
16181
- return React__default.createElement(Container$j, null, React__default.createElement("p", null, "Shortcuts:"), React__default.createElement(List, {
16260
+ return React__default.createElement(Container$k, null, React__default.createElement("p", null, "Shortcuts:"), React__default.createElement(List, {
16182
16261
  id: "shortcuts_list"
16183
16262
  }, Array.from({
16184
16263
  length: 12
@@ -16196,7 +16275,7 @@ var ShortcutsSetter = function ShortcutsSetter(_ref) {
16196
16275
  }, getContent(i));
16197
16276
  })));
16198
16277
  };
16199
- var Container$j = /*#__PURE__*/styled__default.div.withConfig({
16278
+ var Container$k = /*#__PURE__*/styled__default.div.withConfig({
16200
16279
  displayName: "ShortcutsSetter__Container",
16201
16280
  componentId: "sc-xuouuf-0"
16202
16281
  })(["p{margin:0;margin-left:0.5rem;font-size:10px;}width:100%;"]);
@@ -16688,7 +16767,7 @@ var ListMenu = function ListMenu(_ref) {
16688
16767
  onSelected = _ref.onSelected,
16689
16768
  x = _ref.x,
16690
16769
  y = _ref.y;
16691
- return React__default.createElement(Container$k, {
16770
+ return React__default.createElement(Container$l, {
16692
16771
  x: x,
16693
16772
  y: y
16694
16773
  }, React__default.createElement("ul", {
@@ -16705,7 +16784,7 @@ var ListMenu = function ListMenu(_ref) {
16705
16784
  }, (params == null ? void 0 : params.text) || 'No text');
16706
16785
  })));
16707
16786
  };
16708
- var Container$k = /*#__PURE__*/styled__default.div.withConfig({
16787
+ var Container$l = /*#__PURE__*/styled__default.div.withConfig({
16709
16788
  displayName: "ListMenu__Container",
16710
16789
  componentId: "sc-i9097t-0"
16711
16790
  })(["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) {
@@ -16724,7 +16803,7 @@ var Pager = function Pager(_ref) {
16724
16803
  itemsPerPage = _ref.itemsPerPage,
16725
16804
  onPageChange = _ref.onPageChange;
16726
16805
  var totalPages = Math.ceil(totalItems / itemsPerPage);
16727
- return React__default.createElement(Container$l, null, React__default.createElement("p", null, "Total items: ", totalItems), React__default.createElement(PagerContainer, null, React__default.createElement("button", {
16806
+ return React__default.createElement(Container$m, null, React__default.createElement("p", null, "Total items: ", totalItems), React__default.createElement(PagerContainer, null, React__default.createElement("button", {
16728
16807
  disabled: currentPage === 1,
16729
16808
  onPointerDown: function onPointerDown() {
16730
16809
  return onPageChange(Math.max(currentPage - 1, 1));
@@ -16738,7 +16817,7 @@ var Pager = function Pager(_ref) {
16738
16817
  }
16739
16818
  }, '>')));
16740
16819
  };
16741
- var Container$l = /*#__PURE__*/styled__default.div.withConfig({
16820
+ var Container$m = /*#__PURE__*/styled__default.div.withConfig({
16742
16821
  displayName: "Pager__Container",
16743
16822
  componentId: "sc-1ekmf50-0"
16744
16823
  })(["display:flex;flex-direction:column;align-items:center;p{margin:0;font-size:", ";}"], uiFonts.size.xsmall);
@@ -16751,7 +16830,7 @@ var ConfirmModal = function ConfirmModal(_ref) {
16751
16830
  var onConfirm = _ref.onConfirm,
16752
16831
  onClose = _ref.onClose,
16753
16832
  message = _ref.message;
16754
- return React__default.createElement(ModalPortal, null, React__default.createElement(Background, null), React__default.createElement(Container$m, {
16833
+ return React__default.createElement(ModalPortal, null, React__default.createElement(Background, null), React__default.createElement(Container$n, {
16755
16834
  onPointerDown: onClose
16756
16835
  }, React__default.createElement(DraggableContainer, {
16757
16836
  width: "auto",
@@ -16774,7 +16853,7 @@ var Background = /*#__PURE__*/styled__default.div.withConfig({
16774
16853
  displayName: "ConfirmModal__Background",
16775
16854
  componentId: "sc-11qkyu1-0"
16776
16855
  })(["position:absolute;width:100%;height:100%;background-color:#000000;opacity:0.5;left:0;top:0;z-index:1000;"]);
16777
- var Container$m = /*#__PURE__*/styled__default.div.withConfig({
16856
+ var Container$n = /*#__PURE__*/styled__default.div.withConfig({
16778
16857
  displayName: "ConfirmModal__Container",
16779
16858
  componentId: "sc-11qkyu1-1"
16780
16859
  })(["position:absolute;width:100%;height:100%;left:0;top:0;display:flex;justify-content:center;align-items:center;z-index:1001;"]);
@@ -17739,7 +17818,7 @@ var ProgressBar = function ProgressBar(_ref) {
17739
17818
  }
17740
17819
  return value * 100 / max;
17741
17820
  };
17742
- return React__default.createElement(Container$n, {
17821
+ return React__default.createElement(Container$o, {
17743
17822
  className: "rpgui-progress",
17744
17823
  "data-value": calculatePercentageValue(max, value) / 100,
17745
17824
  "data-rpguitype": "progress",
@@ -17769,7 +17848,7 @@ var TextOverlay$1 = /*#__PURE__*/styled__default.div.withConfig({
17769
17848
  displayName: "ProgressBar__TextOverlay",
17770
17849
  componentId: "sc-qa6fzh-1"
17771
17850
  })(["width:100%;position:relative;"]);
17772
- var Container$n = /*#__PURE__*/styled__default.div.withConfig({
17851
+ var Container$o = /*#__PURE__*/styled__default.div.withConfig({
17773
17852
  displayName: "ProgressBar__Container",
17774
17853
  componentId: "sc-qa6fzh-2"
17775
17854
  })(["display:flex;flex-direction:column;min-width:", "px;width:", "%;justify-content:start;align-items:flex-start;", " @media (max-width:950px){transform:scale(", ");}"], function (props) {
@@ -17951,9 +18030,9 @@ var NoQuestContainer = /*#__PURE__*/styled__default.div.withConfig({
17951
18030
 
17952
18031
  var RPGUIScrollbar = function RPGUIScrollbar(_ref) {
17953
18032
  var children = _ref.children;
17954
- return React__default.createElement(Container$o, null, children);
18033
+ return React__default.createElement(Container$p, null, children);
17955
18034
  };
17956
- var Container$o = /*#__PURE__*/styled__default.div.withConfig({
18035
+ var Container$p = /*#__PURE__*/styled__default.div.withConfig({
17957
18036
  displayName: "RPGUIScrollbar__Container",
17958
18037
  componentId: "sc-p3msmb-0"
17959
18038
  })([".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;}"]);
@@ -18131,7 +18210,7 @@ var SimpleProgressBar = function SimpleProgressBar(_ref) {
18131
18210
  bgColor = _ref$bgColor === void 0 ? 'red' : _ref$bgColor,
18132
18211
  _ref$margin = _ref.margin,
18133
18212
  margin = _ref$margin === void 0 ? 20 : _ref$margin;
18134
- return React__default.createElement(Container$p, {
18213
+ return React__default.createElement(Container$q, {
18135
18214
  className: "simple-progress-bar"
18136
18215
  }, React__default.createElement(ProgressBarContainer, {
18137
18216
  margin: margin
@@ -18140,7 +18219,7 @@ var SimpleProgressBar = function SimpleProgressBar(_ref) {
18140
18219
  bgColor: bgColor
18141
18220
  }))));
18142
18221
  };
18143
- var Container$p = /*#__PURE__*/styled__default.div.withConfig({
18222
+ var Container$q = /*#__PURE__*/styled__default.div.withConfig({
18144
18223
  displayName: "SimpleProgressBar__Container",
18145
18224
  componentId: "sc-mbeil3-0"
18146
18225
  })(["display:flex;justify-content:center;align-items:center;width:100%;"]);
@@ -18434,7 +18513,7 @@ var SpellInfo = function SpellInfo(_ref) {
18434
18513
  castingType = spell.castingType,
18435
18514
  cooldown = spell.cooldown,
18436
18515
  maxDistanceGrid = spell.maxDistanceGrid;
18437
- return React__default.createElement(Container$q, null, React__default.createElement(Header$1, null, React__default.createElement("div", null, React__default.createElement(Title$9, null, name), React__default.createElement(Type$1, null, magicWords))), React__default.createElement(Statistic$1, null, React__default.createElement("div", {
18516
+ return React__default.createElement(Container$r, null, React__default.createElement(Header$1, null, React__default.createElement("div", null, React__default.createElement(Title$9, null, name), React__default.createElement(Type$1, null, magicWords))), React__default.createElement(Statistic$1, null, React__default.createElement("div", {
18438
18517
  className: "label"
18439
18518
  }, "Casting Type:"), React__default.createElement("div", {
18440
18519
  className: "value"
@@ -18460,7 +18539,7 @@ var SpellInfo = function SpellInfo(_ref) {
18460
18539
  className: "value"
18461
18540
  }, requiredItem))), React__default.createElement(Description$2, null, description));
18462
18541
  };
18463
- var Container$q = /*#__PURE__*/styled__default.div.withConfig({
18542
+ var Container$r = /*#__PURE__*/styled__default.div.withConfig({
18464
18543
  displayName: "SpellInfo__Container",
18465
18544
  componentId: "sc-4hbw3q-0"
18466
18545
  })(["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);
@@ -18514,7 +18593,7 @@ var MobileSpellTooltip = function MobileSpellTooltip(_ref) {
18514
18593
  var _ref$current;
18515
18594
  (_ref$current = ref.current) == null ? void 0 : _ref$current.classList.add('fadeOut');
18516
18595
  };
18517
- return React__default.createElement(ModalPortal, null, React__default.createElement(Container$r, {
18596
+ return React__default.createElement(ModalPortal, null, React__default.createElement(Container$s, {
18518
18597
  ref: ref,
18519
18598
  onTouchEnd: function onTouchEnd() {
18520
18599
  handleFadeOut();
@@ -18539,7 +18618,7 @@ var MobileSpellTooltip = function MobileSpellTooltip(_ref) {
18539
18618
  }, option.text);
18540
18619
  }))));
18541
18620
  };
18542
- var Container$r = /*#__PURE__*/styled__default.div.withConfig({
18621
+ var Container$s = /*#__PURE__*/styled__default.div.withConfig({
18543
18622
  displayName: "MobileSpellTooltip__Container",
18544
18623
  componentId: "sc-6p7uvr-0"
18545
18624
  })(["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;}"]);
@@ -18580,13 +18659,13 @@ var MagicTooltip = function MagicTooltip(_ref) {
18580
18659
  }
18581
18660
  return;
18582
18661
  }, []);
18583
- return React__default.createElement(ModalPortal, null, React__default.createElement(Container$s, {
18662
+ return React__default.createElement(ModalPortal, null, React__default.createElement(Container$t, {
18584
18663
  ref: ref
18585
18664
  }, React__default.createElement(SpellInfoDisplay, {
18586
18665
  spell: spell
18587
18666
  })));
18588
18667
  };
18589
- var Container$s = /*#__PURE__*/styled__default.div.withConfig({
18668
+ var Container$t = /*#__PURE__*/styled__default.div.withConfig({
18590
18669
  displayName: "SpellTooltip__Container",
18591
18670
  componentId: "sc-1go0gwg-0"
18592
18671
  })(["position:absolute;z-index:100;pointer-events:none;left:0;top:0;opacity:0;transition:opacity 0.08s;"]);
@@ -18646,7 +18725,7 @@ var Spell = function Spell(_ref) {
18646
18725
  var IMAGE_SCALE = 2;
18647
18726
  return React__default.createElement(SpellInfoWrapper, {
18648
18727
  spell: spell
18649
- }, React__default.createElement(Container$t, {
18728
+ }, React__default.createElement(Container$u, {
18650
18729
  onPointerUp: onPointerUp == null ? void 0 : onPointerUp.bind(null, spellKey),
18651
18730
  isSettingShortcut: isSettingShortcut && !disabled,
18652
18731
  className: "spell"
@@ -18665,7 +18744,7 @@ var Spell = function Spell(_ref) {
18665
18744
  className: "mana"
18666
18745
  }, manaCost))));
18667
18746
  };
18668
- var Container$t = /*#__PURE__*/styled__default.button.withConfig({
18747
+ var Container$u = /*#__PURE__*/styled__default.button.withConfig({
18669
18748
  displayName: "Spell__Container",
18670
18749
  componentId: "sc-j96fa2-0"
18671
18750
  })(["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) {
@@ -18744,7 +18823,7 @@ var Spellbook = function Spellbook(_ref) {
18744
18823
  height: "inherit",
18745
18824
  cancelDrag: "#spellbook-search, #shortcuts_list, .spell",
18746
18825
  scale: scale
18747
- }, React__default.createElement(Container$u, null, React__default.createElement(Title$b, null, "Learned Spells"), React__default.createElement(ShortcutsSetter, {
18826
+ }, React__default.createElement(Container$v, null, React__default.createElement(Title$b, null, "Learned Spells"), React__default.createElement(ShortcutsSetter, {
18748
18827
  setSettingShortcutIndex: setSettingShortcutIndex,
18749
18828
  settingShortcutIndex: settingShortcutIndex,
18750
18829
  shortcuts: shortcuts,
@@ -18780,7 +18859,7 @@ var Title$b = /*#__PURE__*/styled__default.h1.withConfig({
18780
18859
  displayName: "Spellbook__Title",
18781
18860
  componentId: "sc-r02nfq-0"
18782
18861
  })(["font-size:", " !important;margin-bottom:0 !important;"], uiFonts.size.large);
18783
- var Container$u = /*#__PURE__*/styled__default.div.withConfig({
18862
+ var Container$v = /*#__PURE__*/styled__default.div.withConfig({
18784
18863
  displayName: "Spellbook__Container",
18785
18864
  componentId: "sc-r02nfq-1"
18786
18865
  })(["width:100%;height:100%;color:white;display:flex;flex-direction:column;"]);
@@ -19126,11 +19205,11 @@ var Truncate = function Truncate(_ref) {
19126
19205
  var _ref$maxLines = _ref.maxLines,
19127
19206
  maxLines = _ref$maxLines === void 0 ? 1 : _ref$maxLines,
19128
19207
  children = _ref.children;
19129
- return React__default.createElement(Container$v, {
19208
+ return React__default.createElement(Container$w, {
19130
19209
  maxLines: maxLines
19131
19210
  }, children);
19132
19211
  };
19133
- var Container$v = /*#__PURE__*/styled__default.div.withConfig({
19212
+ var Container$w = /*#__PURE__*/styled__default.div.withConfig({
19134
19213
  displayName: "Truncate__Container",
19135
19214
  componentId: "sc-6x00qb-0"
19136
19215
  })(["display:-webkit-box;max-width:100%;max-height:100%;-webkit-line-clamp:", ";-webkit-box-orient:vertical;overflow:hidden;"], function (props) {
@@ -19223,6 +19302,7 @@ var ButtonWrapper$3 = /*#__PURE__*/styled__default.div.withConfig({
19223
19302
  componentId: "sc-gptoxp-5"
19224
19303
  })(["display:flex;justify-content:space-around;padding-top:20px;width:100%;"]);
19225
19304
 
19305
+ exports.AsyncDropdown = AsyncDropdown;
19226
19306
  exports.Button = Button;
19227
19307
  exports.CharacterSelection = CharacterSelection;
19228
19308
  exports.Chat = Chat;