@rpg-engine/long-bow 0.8.49 → 0.8.51

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.
@@ -26111,6 +26111,103 @@ var Container$4 = /*#__PURE__*/styled.div.withConfig({
26111
26111
  componentId: "sc-b34498-0"
26112
26112
  })(["display:flex;flex-direction:column;align-items:center;image-rendering:pixelated;"]);
26113
26113
 
26114
+ var CharacterSkinSelectionModal = function CharacterSkinSelectionModal(_ref) {
26115
+ var isOpen = _ref.isOpen,
26116
+ onClose = _ref.onClose,
26117
+ onConfirm = _ref.onConfirm,
26118
+ availableCharacters = _ref.availableCharacters,
26119
+ atlasJSON = _ref.atlasJSON,
26120
+ atlasIMG = _ref.atlasIMG,
26121
+ _ref$initialSelectedS = _ref.initialSelectedSkin,
26122
+ initialSelectedSkin = _ref$initialSelectedS === void 0 ? '' : _ref$initialSelectedS;
26123
+ // Convert availableCharacters to the format used by PropertySelect
26124
+ var propertySelectValues = availableCharacters.map(function (item) {
26125
+ return {
26126
+ id: item.textureKey,
26127
+ name: item.name
26128
+ };
26129
+ });
26130
+ // State to store the selected skin and the sprite key
26131
+ var _useState = useState(),
26132
+ selectedValue = _useState[0],
26133
+ setSelectedValue = _useState[1];
26134
+ var _useState2 = useState(''),
26135
+ selectedSpriteKey = _useState2[0],
26136
+ setSelectedSpriteKey = _useState2[1];
26137
+ // Update sprite when the selected value changes
26138
+ var updateSelectedSpriteKey = function updateSelectedSpriteKey() {
26139
+ var textureKey = selectedValue ? selectedValue.id : '';
26140
+ var spriteKey = textureKey ? textureKey + '/down/standing/0.png' : '';
26141
+ if (spriteKey === selectedSpriteKey) {
26142
+ return;
26143
+ }
26144
+ setSelectedSpriteKey(spriteKey);
26145
+ };
26146
+ // Update sprite when selectedValue changes
26147
+ useEffect(function () {
26148
+ updateSelectedSpriteKey();
26149
+ }, [selectedValue]);
26150
+ // Initialize selectedValue
26151
+ useEffect(function () {
26152
+ if (initialSelectedSkin) {
26153
+ var initialProperty = propertySelectValues.find(function (prop) {
26154
+ return prop.id === initialSelectedSkin;
26155
+ });
26156
+ setSelectedValue(initialProperty || propertySelectValues[0]);
26157
+ } else if (propertySelectValues.length > 0) {
26158
+ setSelectedValue(propertySelectValues[0]);
26159
+ }
26160
+ }, [initialSelectedSkin, availableCharacters]);
26161
+ // Functions to handle confirmation and cancellation
26162
+ var handleConfirm = function handleConfirm() {
26163
+ if (selectedValue) {
26164
+ onConfirm(selectedValue.id);
26165
+ onClose();
26166
+ }
26167
+ };
26168
+ var handleCancel = function handleCancel() {
26169
+ onClose();
26170
+ };
26171
+ if (!isOpen) return null;
26172
+ return React.createElement(Container$5, null, selectedSpriteKey && atlasIMG && atlasJSON && React.createElement(ErrorBoundary, null, React.createElement(SpriteFromAtlas, {
26173
+ spriteKey: selectedSpriteKey,
26174
+ atlasIMG: atlasIMG,
26175
+ atlasJSON: atlasJSON,
26176
+ imgScale: 4,
26177
+ height: 80,
26178
+ width: 64,
26179
+ containerStyle: {
26180
+ display: 'flex',
26181
+ alignItems: 'center',
26182
+ paddingBottom: '15px'
26183
+ },
26184
+ imgStyle: {
26185
+ left: '22px'
26186
+ }
26187
+ })), React.createElement(PropertySelect, {
26188
+ availableProperties: propertySelectValues,
26189
+ onChange: function onChange(value) {
26190
+ setSelectedValue(value);
26191
+ }
26192
+ }), React.createElement(ButtonsContainer, null, React.createElement(Button, {
26193
+ buttonType: ButtonTypes.RPGUIButton,
26194
+ onClick: handleCancel
26195
+ }, "Cancel"), React.createElement(Button, {
26196
+ buttonType: ButtonTypes.RPGUIButton,
26197
+ onClick: handleConfirm,
26198
+ disabled: !selectedValue
26199
+ }, "Confirm")));
26200
+ };
26201
+ // Styled components
26202
+ var Container$5 = /*#__PURE__*/styled.div.withConfig({
26203
+ displayName: "CharacterSkinSelectionModal__Container",
26204
+ componentId: "sc-qsroao-0"
26205
+ })(["display:flex;flex-direction:column;align-items:center;image-rendering:pixelated;"]);
26206
+ var ButtonsContainer = /*#__PURE__*/styled.div.withConfig({
26207
+ displayName: "CharacterSkinSelectionModal__ButtonsContainer",
26208
+ componentId: "sc-qsroao-1"
26209
+ })(["display:flex;justify-content:center;gap:0.8rem;width:100%;margin:3rem 0 0.75rem;button{min-width:95px;font-size:0.9rem;}"]);
26210
+
26114
26211
  var Chat = function Chat(_ref) {
26115
26212
  var chatMessages = _ref.chatMessages,
26116
26213
  onSendChatMessage = _ref.onSendChatMessage,
@@ -26256,13 +26353,13 @@ var RPGUIContainer = function RPGUIContainer(_ref) {
26256
26353
  width = _ref$width === void 0 ? '50%' : _ref$width,
26257
26354
  height = _ref.height,
26258
26355
  className = _ref.className;
26259
- return React.createElement(Container$5, {
26356
+ return React.createElement(Container$6, {
26260
26357
  width: width,
26261
26358
  height: height || 'auto',
26262
26359
  className: "rpgui-container " + type + " " + className
26263
26360
  }, children);
26264
26361
  };
26265
- var Container$5 = /*#__PURE__*/styled.div.withConfig({
26362
+ var Container$6 = /*#__PURE__*/styled.div.withConfig({
26266
26363
  displayName: "RPGUIContainer__Container",
26267
26364
  componentId: "sc-a7heha-0"
26268
26365
  })(["height:", ";width:", ";display:flex;flex-wrap:wrap;image-rendering:pixelated;"], function (props) {
@@ -26334,7 +26431,7 @@ var ChatDeprecated = function ChatDeprecated(_ref) {
26334
26431
  }, onRenderMessageLines(emitter, createdAt, message));
26335
26432
  }) : React.createElement(MessageText, null, "No messages available.");
26336
26433
  };
26337
- return React.createElement(Container$6, null, React.createElement(CustomContainer, {
26434
+ return React.createElement(Container$7, null, React.createElement(CustomContainer, {
26338
26435
  type: RPGUIContainerTypes.FramedGrey,
26339
26436
  width: width,
26340
26437
  height: height,
@@ -26372,7 +26469,7 @@ var ChatDeprecated = function ChatDeprecated(_ref) {
26372
26469
  id: "chat-send-button"
26373
26470
  }, "Send"))))));
26374
26471
  };
26375
- var Container$6 = /*#__PURE__*/styled.div.withConfig({
26472
+ var Container$7 = /*#__PURE__*/styled.div.withConfig({
26376
26473
  displayName: "ChatDeprecated__Container",
26377
26474
  componentId: "sc-fuuod3-0"
26378
26475
  })(["position:relative;"]);
@@ -27161,7 +27258,7 @@ var CircularController = function CircularController(_ref) {
27161
27258
  return word[0];
27162
27259
  })));
27163
27260
  };
27164
- return React.createElement(ButtonsContainer, null, React.createElement(ShortcutsContainer, null, Array.from({
27261
+ return React.createElement(ButtonsContainer$1, null, React.createElement(ShortcutsContainer, null, Array.from({
27165
27262
  length: 12
27166
27263
  }).map(function (_, i) {
27167
27264
  return renderShortcut(i);
@@ -27183,7 +27280,7 @@ var CancelButton = /*#__PURE__*/styled(Button$1).withConfig({
27183
27280
  displayName: "CircularController__CancelButton",
27184
27281
  componentId: "sc-1fewf3h-1"
27185
27282
  })(["width:3rem;height:3rem;font-size:0.8rem;position:relative;left:2.6rem;span{margin-top:4px;margin-left:2px;pointer-events:none;}"]);
27186
- var ButtonsContainer = /*#__PURE__*/styled.div.withConfig({
27283
+ var ButtonsContainer$1 = /*#__PURE__*/styled.div.withConfig({
27187
27284
  displayName: "CircularController__ButtonsContainer",
27188
27285
  componentId: "sc-1fewf3h-2"
27189
27286
  })(["display:flex;align-items:center;justify-content:center;gap:0.5rem;scale:0.9;"]);
@@ -27339,7 +27436,7 @@ var DraggableContainer = function DraggableContainer(_ref) {
27339
27436
  },
27340
27437
  defaultPosition: initialPosition,
27341
27438
  scale: scale
27342
- }, React.createElement(Container$7, {
27439
+ }, React.createElement(Container$8, {
27343
27440
  ref: draggableRef,
27344
27441
  width: width,
27345
27442
  height: height || 'auto',
@@ -27358,7 +27455,7 @@ var DraggableContainer = function DraggableContainer(_ref) {
27358
27455
  onPointerDown: onCloseButton
27359
27456
  }, "X"), children));
27360
27457
  };
27361
- var Container$7 = /*#__PURE__*/styled.div.withConfig({
27458
+ var Container$8 = /*#__PURE__*/styled.div.withConfig({
27362
27459
  displayName: "DraggableContainer__Container",
27363
27460
  componentId: "sc-184mpyl-0"
27364
27461
  })(["height:", ";width:", ";min-width:", ";min-height:", ";display:flex;flex-wrap:wrap;image-rendering:pixelated;overflow-y:hidden;", " ", " &.rpgui-container{padding-top:1.5rem;}"], function (props) {
@@ -27438,7 +27535,7 @@ var Dropdown = function Dropdown(_ref) {
27438
27535
  onChange(selectedValue);
27439
27536
  }
27440
27537
  }, [selectedValue]);
27441
- return React.createElement(Container$8, {
27538
+ return React.createElement(Container$9, {
27442
27539
  onMouseLeave: function onMouseLeave() {
27443
27540
  return setOpened(false);
27444
27541
  },
@@ -27467,7 +27564,7 @@ var Dropdown = function Dropdown(_ref) {
27467
27564
  }, option.option);
27468
27565
  })));
27469
27566
  };
27470
- var Container$8 = /*#__PURE__*/styled.div.withConfig({
27567
+ var Container$9 = /*#__PURE__*/styled.div.withConfig({
27471
27568
  displayName: "Dropdown__Container",
27472
27569
  componentId: "sc-8arn65-0"
27473
27570
  })(["position:relative;width:", ";max-height:", "px;"], function (props) {
@@ -27493,11 +27590,11 @@ var DropdownOptions$1 = /*#__PURE__*/styled.ul.withConfig({
27493
27590
  var modalRoot = /*#__PURE__*/document.getElementById('modal-root');
27494
27591
  var ModalPortal = function ModalPortal(_ref) {
27495
27592
  var children = _ref.children;
27496
- return ReactDOM.createPortal(React.createElement(Container$9, {
27593
+ return ReactDOM.createPortal(React.createElement(Container$a, {
27497
27594
  className: "rpgui-content"
27498
27595
  }, children), modalRoot);
27499
27596
  };
27500
- var Container$9 = /*#__PURE__*/styled.div.withConfig({
27597
+ var Container$a = /*#__PURE__*/styled.div.withConfig({
27501
27598
  displayName: "ModalPortal__Container",
27502
27599
  componentId: "sc-dgmp04-0"
27503
27600
  })(["position:static !important;"]);
@@ -28217,7 +28314,7 @@ var ItemSlot = /*#__PURE__*/observer(function (_ref) {
28217
28314
  });
28218
28315
  }
28219
28316
  };
28220
- return React.createElement(Container$a, {
28317
+ return React.createElement(Container$b, {
28221
28318
  isDraggingItem: !!draggingState.item,
28222
28319
  item: item,
28223
28320
  className: "rpgui-icon empty-slot",
@@ -28281,7 +28378,7 @@ var ItemSlot = /*#__PURE__*/observer(function (_ref) {
28281
28378
  containerType: containerType
28282
28379
  }))));
28283
28380
  });
28284
- var Container$a = /*#__PURE__*/styled.div.withConfig({
28381
+ var Container$b = /*#__PURE__*/styled.div.withConfig({
28285
28382
  displayName: "ItemSlot__Container",
28286
28383
  componentId: "sc-l2j5ef-0"
28287
28384
  })(["margin:0.1rem;.react-draggable-dragging{opacity:", ";}position:relative;.sprite-from-atlas-img--item{position:relative;top:1.5rem;left:1.5rem;border-color:", ";box-shadow:", " inset,", ";}.quality-star{position:absolute;top:0.5rem;left:0.5rem;font-size:1.2rem;z-index:2;text-shadow:0 0 3px black;pointer-events:none;color:", ";}&::before{content:'';position:absolute;top:0;left:0;width:100%;height:100%;z-index:1;border-radius:12px;pointer-events:none;animation:", ";@keyframes bg-color-change{0%{background-color:rgba(255 255 255 / 0.5);}50%{background-color:transparent;}100%{background-color:rgba(255 255 255 / 0.5);}}}"], function (_ref2) {
@@ -28400,7 +28497,7 @@ var ItemInfo = function ItemInfo(_ref) {
28400
28497
  });
28401
28498
  };
28402
28499
  var skillName = (_item$minRequirements = item.minRequirements) == null ? void 0 : (_item$minRequirements2 = _item$minRequirements.skill) == null ? void 0 : _item$minRequirements2.name;
28403
- return React.createElement(Container$b, {
28500
+ return React.createElement(Container$c, {
28404
28501
  item: item
28405
28502
  }, React.createElement(Header, null, React.createElement("div", null, React.createElement(Title$1, null, item.name), item.rarity !== 'Common' && React.createElement(Rarity, {
28406
28503
  item: item
@@ -28414,7 +28511,7 @@ var ItemInfo = function ItemInfo(_ref) {
28414
28511
  "$isSpecial": true
28415
28512
  }, "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()));
28416
28513
  };
28417
- var Container$b = /*#__PURE__*/styled.div.withConfig({
28514
+ var Container$c = /*#__PURE__*/styled.div.withConfig({
28418
28515
  displayName: "ItemInfo__Container",
28419
28516
  componentId: "sc-1xm4q8k-0"
28420
28517
  })(["color:white;background-color:#222;border-radius:5px;padding:0.5rem;font-size:", ";border:3px solid ", ";box-shadow:", ";height:max-content;width:18rem;position:relative;@media (max-width:640px){width:80vw;}"], uiFonts.size.small, function (_ref2) {
@@ -28563,7 +28660,7 @@ var ItemTooltip = function ItemTooltip(_ref) {
28563
28660
  }
28564
28661
  return;
28565
28662
  }, []);
28566
- return React.createElement(ModalPortal, null, React.createElement(Container$c, {
28663
+ return React.createElement(ModalPortal, null, React.createElement(Container$d, {
28567
28664
  ref: ref
28568
28665
  }, React.createElement(ItemInfoDisplay, {
28569
28666
  item: item,
@@ -28572,7 +28669,7 @@ var ItemTooltip = function ItemTooltip(_ref) {
28572
28669
  equipmentSet: equipmentSet
28573
28670
  })));
28574
28671
  };
28575
- var Container$c = /*#__PURE__*/styled.div.withConfig({
28672
+ var Container$d = /*#__PURE__*/styled.div.withConfig({
28576
28673
  displayName: "ItemTooltip__Container",
28577
28674
  componentId: "sc-11d9r7x-0"
28578
28675
  })(["position:absolute;z-index:100;pointer-events:none;left:0;top:0;opacity:0;transition:opacity 0.08s;"]);
@@ -28592,7 +28689,7 @@ var MobileItemTooltip = function MobileItemTooltip(_ref) {
28592
28689
  var _ref$current;
28593
28690
  (_ref$current = ref.current) == null ? void 0 : _ref$current.classList.add('fadeOut');
28594
28691
  };
28595
- return React.createElement(ModalPortal, null, React.createElement(Container$d, {
28692
+ return React.createElement(ModalPortal, null, React.createElement(Container$e, {
28596
28693
  ref: ref,
28597
28694
  onTouchEnd: function onTouchEnd() {
28598
28695
  handleFadeOut();
@@ -28620,7 +28717,7 @@ var MobileItemTooltip = function MobileItemTooltip(_ref) {
28620
28717
  }, option.text);
28621
28718
  }))));
28622
28719
  };
28623
- var Container$d = /*#__PURE__*/styled.div.withConfig({
28720
+ var Container$e = /*#__PURE__*/styled.div.withConfig({
28624
28721
  displayName: "MobileItemTooltip__Container",
28625
28722
  componentId: "sc-ku4p1j-0"
28626
28723
  })(["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;}"]);
@@ -29311,20 +29408,20 @@ var DailyRewardsTooltip = function DailyRewardsTooltip(_ref) {
29311
29408
  return React.createElement(TooltipContainer$1, null, React.createElement(CollapsibleHeader, {
29312
29409
  onClick: toggleExpand
29313
29410
  }, React.createElement(HeaderText, null, "Rewards?"), React.createElement(ExpandIcon, null, isExpanded ? '▼' : '▶')), isExpanded && React.createElement(CollapsibleContent, null, React.createElement(RewardsList, null, sortedRewards.map(function (reward, index) {
29314
- var _reward$key;
29411
+ var _reward$texturePath, _reward$key;
29315
29412
  return React.createElement(RewardItem, {
29316
29413
  key: index
29317
29414
  }, React.createElement(SpriteFromAtlas, {
29318
29415
  atlasJSON: itemsAtlasJSON,
29319
29416
  atlasIMG: itemsAtlasIMG,
29320
- spriteKey: reward.type === RewardType.Gold ? 'others/gold-coin-qty-6.png' : reward.type === RewardType.Experience ? 'others/royal-chalice.png' : reward.texturePath || 'others/no-image.png',
29417
+ spriteKey: (_reward$texturePath = reward.texturePath) != null ? _reward$texturePath : 'check.png',
29321
29418
  width: 24,
29322
29419
  height: 24,
29323
29420
  imgScale: 1.75
29324
29421
  }), React.createElement(ItemContent, null, React.createElement(RewardLabel, null, React.createElement(Ellipsis, {
29325
29422
  maxWidth: "100%",
29326
29423
  maxLines: 2
29327
- }, formatTaskKey((_reward$key = reward.key) != null ? _reward$key : ''), ":"))), React.createElement(RewardValue, null, "x", reward.quantity));
29424
+ }, formatTaskKey((_reward$key = reward.key) != null ? _reward$key : reward.type), ":"))), React.createElement(RewardValue, null, "x", reward.quantity));
29328
29425
  }))));
29329
29426
  };
29330
29427
  var TooltipContainer$1 = /*#__PURE__*/styled.div.withConfig({
@@ -29362,7 +29459,7 @@ var ItemContent = /*#__PURE__*/styled.div.withConfig({
29362
29459
  var RewardLabel = /*#__PURE__*/styled.span.withConfig({
29363
29460
  displayName: "DailyRewardsTooltip__RewardLabel",
29364
29461
  componentId: "sc-wxzcu4-8"
29365
- })(["color:", ";font-size:0.9rem;line-height:1.2;display:inline-flex;align-items:center;"], uiColors.yellow);
29462
+ })(["color:", ";font-size:0.9rem;line-height:1.2;padding-top:15px;display:inline-flex;align-items:center;"], uiColors.yellow);
29366
29463
  var RewardValue = /*#__PURE__*/styled.span.withConfig({
29367
29464
  displayName: "DailyRewardsTooltip__RewardValue",
29368
29465
  componentId: "sc-wxzcu4-9"
@@ -29372,7 +29469,7 @@ var ReadOnlyCheckItem = function ReadOnlyCheckItem(_ref) {
29372
29469
  var labelLeft = _ref.labelLeft,
29373
29470
  labelRight = _ref.labelRight,
29374
29471
  checked = _ref.checked;
29375
- return React.createElement(Container$e, null, labelLeft && React.createElement(Label, null, labelLeft), React.createElement("div", {
29472
+ return React.createElement(Container$f, null, labelLeft && React.createElement(Label, null, labelLeft), React.createElement("div", {
29376
29473
  className: "rpgui-checkbox-container"
29377
29474
  }, React.createElement(CheckBox, {
29378
29475
  className: "rpgui-checkbox",
@@ -29383,7 +29480,7 @@ var ReadOnlyCheckItem = function ReadOnlyCheckItem(_ref) {
29383
29480
  isRight: true
29384
29481
  }, labelRight));
29385
29482
  };
29386
- var Container$e = /*#__PURE__*/styled.div.withConfig({
29483
+ var Container$f = /*#__PURE__*/styled.div.withConfig({
29387
29484
  displayName: "ReadOnlyCheckItem__Container",
29388
29485
  componentId: "sc-1peplf9-0"
29389
29486
  })(["display:flex;align-items:center;width:100%;height:20px;"]);
@@ -29424,7 +29521,7 @@ var TaskProgressDetails = function TaskProgressDetails(_ref) {
29424
29521
  value = _ref3[1];
29425
29522
  return React.createElement(ProgressItem, {
29426
29523
  key: index
29427
- }, React.createElement("span", null, key, ":"), React.createElement(ProgressCount, null, value, "/", ((_task$requirements$ta2 = task.requirements.targets.find(function (t) {
29524
+ }, React.createElement("span", null, formatTaskKey(key), ":"), React.createElement(ProgressCount, null, value, "/", ((_task$requirements$ta2 = task.requirements.targets.find(function (t) {
29428
29525
  return t.key === key;
29429
29526
  })) == null ? void 0 : _task$requirements$ta2.quantity) || 0));
29430
29527
  });
@@ -29611,7 +29708,7 @@ var GlobalDailyProgress = function GlobalDailyProgress(_ref) {
29611
29708
  };
29612
29709
  return React.createElement(GlobalProgressContainer, null, React.createElement(HeaderContainer$1, null, React.createElement(GlobeIcon, null, "\uD83C\uDF0D"), React.createElement(ProgressText, null, "Global Tasks Completed: ", completedTasks, "/", totalTasks)), React.createElement(ProgressBar, null, React.createElement(ProgressFill, {
29613
29710
  percentage: completedTasks / totalTasks * 100
29614
- })), totalTasks > 0 && allCompleted && allClaimed && React.createElement(React.Fragment, null, isClaimed ? React.createElement(ClaimedText$1, null, "Global Rewards Claimed") : React.createElement(CollectWrapper$1, null, React.createElement(Button, {
29711
+ })), totalTasks > 0 && allCompleted && React.createElement(React.Fragment, null, allClaimed || isClaimed ? React.createElement(ClaimedText$1, null, "Global Rewards Claimed") : React.createElement(CollectWrapper$1, null, React.createElement(Button, {
29615
29712
  buttonType: ButtonTypes.RPGUIButton,
29616
29713
  onPointerDown: handleClaimAll
29617
29714
  }, "Collect Global Rewards"))));
@@ -29663,34 +29760,16 @@ var DailyTasks = function DailyTasks(_ref) {
29663
29760
  iconAtlasJSON = _ref.iconAtlasJSON,
29664
29761
  iconAtlasIMG = _ref.iconAtlasIMG;
29665
29762
  var _React$useState = React.useState(tasks),
29666
- localTasks = _React$useState[0],
29667
- setLocalTasks = _React$useState[1];
29763
+ localTasks = _React$useState[0];
29668
29764
  var size = useResponsiveSize(scale);
29669
29765
  var handleClaimReward = function handleClaimReward(taskKey, type) {
29670
- setLocalTasks(function (prevTasks) {
29671
- return prevTasks.map(function (task) {
29672
- return task.key === taskKey ? _extends({}, task, {
29673
- claimed: true
29674
- }) : task;
29675
- });
29676
- });
29677
29766
  onClaimReward({
29678
29767
  type: type,
29679
29768
  taskKey: taskKey
29680
29769
  });
29681
29770
  };
29682
- var handleClaimAllRewards = function handleClaimAllRewards() {
29683
- var tasksToReward = localTasks.filter(function (task) {
29684
- return task.status === TaskStatus.Completed && !task.claimed;
29685
- }).map(function (task) {
29686
- return {
29687
- type: task.type,
29688
- taskKey: task.key
29689
- };
29690
- });
29691
- onClaimGlobalReward({
29692
- tasks: tasksToReward
29693
- });
29771
+ var handleClaimGlobalRewards = function handleClaimGlobalRewards(tasks) {
29772
+ onClaimGlobalReward(tasks);
29694
29773
  };
29695
29774
  if (!size) return null;
29696
29775
  return React.createElement(TasksContainer, {
@@ -29700,11 +29779,11 @@ var DailyTasks = function DailyTasks(_ref) {
29700
29779
  scale: scale,
29701
29780
  width: size.width,
29702
29781
  height: size.height
29703
- }, React.createElement(TaskTitle$1, null, "Daily Tasks"), React.createElement(Container$f, null, React.createElement(TasksList, {
29782
+ }, React.createElement(TaskTitle$1, null, "Daily Tasks"), React.createElement(Container$g, null, React.createElement(TasksList, {
29704
29783
  className: "tasks-container"
29705
29784
  }, React.createElement(GlobalDailyProgress, {
29706
29785
  tasks: localTasks,
29707
- onClaimAllRewards: handleClaimAllRewards
29786
+ onClaimAllRewards: handleClaimGlobalRewards
29708
29787
  }), localTasks.map(function (task) {
29709
29788
  return React.createElement(DailyTaskItem, {
29710
29789
  key: task.key,
@@ -29722,7 +29801,7 @@ var TasksContainer = /*#__PURE__*/styled(DraggableContainer).withConfig({
29722
29801
  displayName: "DailyTasks__TasksContainer",
29723
29802
  componentId: "sc-ittn77-0"
29724
29803
  })(["min-width:450px;max-width:550px;margin:0 auto;.rpgui-container-title{width:100%;display:flex;justify-content:center;align-items:center;text-align:center;}.rpgui-container{padding:0 !important;overflow:hidden !important;background-color:rgba(30,30,30,0.9) !important;}"]);
29725
- var Container$f = /*#__PURE__*/styled.div.withConfig({
29804
+ var Container$g = /*#__PURE__*/styled.div.withConfig({
29726
29805
  displayName: "DailyTasks__Container",
29727
29806
  componentId: "sc-ittn77-1"
29728
29807
  })(["width:100%;max-width:100%;margin:0 auto;padding:0.125rem;overflow-y:auto;box-sizing:border-box;@media (min-width:320px){padding:0.25rem;}@media (min-width:360px){padding:0.5rem;}@media (min-width:480px){padding:0.75rem;}"]);
@@ -30094,7 +30173,7 @@ var DraggedItem = function DraggedItem(_ref) {
30094
30173
  var centeredX = x - OFFSET$1;
30095
30174
  var centeredY = y - OFFSET$1;
30096
30175
  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);
30097
- return React.createElement(Container$g, null, React.createElement(SpriteContainer, {
30176
+ return React.createElement(Container$h, null, React.createElement(SpriteContainer, {
30098
30177
  x: centeredX,
30099
30178
  y: centeredY
30100
30179
  }, React.createElement(SpriteFromAtlas, {
@@ -30112,7 +30191,7 @@ var DraggedItem = function DraggedItem(_ref) {
30112
30191
  }), stackInfo));
30113
30192
  };
30114
30193
  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";
30115
- var Container$g = /*#__PURE__*/styled.div.withConfig({
30194
+ var Container$h = /*#__PURE__*/styled.div.withConfig({
30116
30195
  displayName: "DraggedItem__Container",
30117
30196
  componentId: "sc-mlzzcp-0"
30118
30197
  })(["position:relative;"]);
@@ -30150,7 +30229,7 @@ var RelativeListMenu = function RelativeListMenu(_ref) {
30150
30229
  document.removeEventListener('clickOutside', function (_e) {});
30151
30230
  };
30152
30231
  }, []);
30153
- return React.createElement(ModalPortal, null, React.createElement(Container$h, Object.assign({
30232
+ return React.createElement(ModalPortal, null, React.createElement(Container$i, Object.assign({
30154
30233
  fontSize: fontSize,
30155
30234
  ref: ref
30156
30235
  }, pos), React.createElement("ul", {
@@ -30167,7 +30246,7 @@ var RelativeListMenu = function RelativeListMenu(_ref) {
30167
30246
  }, (params == null ? void 0 : params.text) || 'No text');
30168
30247
  }))));
30169
30248
  };
30170
- var Container$h = /*#__PURE__*/styled.div.withConfig({
30249
+ var Container$i = /*#__PURE__*/styled.div.withConfig({
30171
30250
  displayName: "RelativeListMenu__Container",
30172
30251
  componentId: "sc-7hohf-0"
30173
30252
  })(["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) {
@@ -30441,7 +30520,7 @@ var SearchFriend = function SearchFriend(_ref) {
30441
30520
  title: "Requests (" + friendRequests.length + ")",
30442
30521
  content: requestsTabContent
30443
30522
  }];
30444
- return React.createElement(Container$i, null, React.createElement(InternalTabs, {
30523
+ return React.createElement(Container$j, null, React.createElement(InternalTabs, {
30445
30524
  tabs: tabs,
30446
30525
  activeTextColor: "#000",
30447
30526
  inactiveColor: "#777",
@@ -30483,7 +30562,7 @@ var FriendRequestSection = function FriendRequestSection(_ref3) {
30483
30562
  }, "Reject")));
30484
30563
  })));
30485
30564
  };
30486
- var Container$i = /*#__PURE__*/styled.div.withConfig({
30565
+ var Container$j = /*#__PURE__*/styled.div.withConfig({
30487
30566
  displayName: "SearchFriend__Container",
30488
30567
  componentId: "sc-1lt1ols-0"
30489
30568
  })(["display:flex;flex-direction:column;gap:1rem;"]);
@@ -30686,7 +30765,7 @@ var NPCDialogText = function NPCDialogText(_ref) {
30686
30765
  var _useState2 = useState(false),
30687
30766
  showGoNextIndicator = _useState2[0],
30688
30767
  setShowGoNextIndicator = _useState2[1];
30689
- return React.createElement(Container$j, null, React.createElement(DynamicText, {
30768
+ return React.createElement(Container$k, null, React.createElement(DynamicText, {
30690
30769
  text: (textChunks == null ? void 0 : textChunks[chunkIndex]) || '',
30691
30770
  onFinish: function onFinish() {
30692
30771
  setShowGoNextIndicator(true);
@@ -30704,7 +30783,7 @@ var NPCDialogText = function NPCDialogText(_ref) {
30704
30783
  }
30705
30784
  }));
30706
30785
  };
30707
- var Container$j = /*#__PURE__*/styled.div.withConfig({
30786
+ var Container$k = /*#__PURE__*/styled.div.withConfig({
30708
30787
  displayName: "NPCDialogText__Container",
30709
30788
  componentId: "sc-1cxkdh9-0"
30710
30789
  })([""]);
@@ -30856,7 +30935,7 @@ var QuestionDialog = function QuestionDialog(_ref) {
30856
30935
  return null;
30857
30936
  });
30858
30937
  };
30859
- return React.createElement(Container$k, null, React.createElement(QuestionContainer, null, React.createElement(DynamicText, {
30938
+ return React.createElement(Container$l, null, React.createElement(QuestionContainer, null, React.createElement(DynamicText, {
30860
30939
  text: currentQuestion.text,
30861
30940
  onStart: function onStart() {
30862
30941
  return setCanShowAnswers(false);
@@ -30866,7 +30945,7 @@ var QuestionDialog = function QuestionDialog(_ref) {
30866
30945
  }
30867
30946
  })), canShowAnswers && React.createElement(AnswersContainer, null, onRenderCurrentAnswers()));
30868
30947
  };
30869
- var Container$k = /*#__PURE__*/styled.div.withConfig({
30948
+ var Container$l = /*#__PURE__*/styled.div.withConfig({
30870
30949
  displayName: "QuestionDialog__Container",
30871
30950
  componentId: "sc-bxc5u0-0"
30872
30951
  })(["display:flex;word-break:break-all;box-sizing:border-box;justify-content:flex-start;align-items:flex-start;flex-wrap:wrap;"]);
@@ -30927,7 +31006,7 @@ var NPCDialog = function NPCDialog(_ref) {
30927
31006
  }
30928
31007
  })), type === NPCDialogType.TextAndThumbnail && React.createElement(ThumbnailContainer, null, React.createElement(NPCThumbnail, {
30929
31008
  src: imagePath || img$7
30930
- }))) : React.createElement(React.Fragment, null, React.createElement(Container$l, null, React.createElement(CloseIcon, {
31009
+ }))) : React.createElement(React.Fragment, null, React.createElement(Container$m, null, React.createElement(CloseIcon, {
30931
31010
  onPointerDown: _onClose
30932
31011
  }, "X"), React.createElement(TextContainer$1, {
30933
31012
  flex: type === NPCDialogType.TextAndThumbnail ? '70%' : '100%'
@@ -30943,7 +31022,7 @@ var NPCDialog = function NPCDialog(_ref) {
30943
31022
  src: imagePath || img$7
30944
31023
  })))));
30945
31024
  };
30946
- var Container$l = /*#__PURE__*/styled.div.withConfig({
31025
+ var Container$m = /*#__PURE__*/styled.div.withConfig({
30947
31026
  displayName: "NPCDialog__Container",
30948
31027
  componentId: "sc-1b4aw74-0"
30949
31028
  })(["display:flex;width:100%;height:100%;box-sizing:border-box;justify-content:center;align-items:flex-start;position:relative;"]);
@@ -31004,7 +31083,7 @@ var NPCMultiDialog = function NPCMultiDialog(_ref) {
31004
31083
  type: RPGUIContainerTypes.FramedGold,
31005
31084
  width: '50%',
31006
31085
  height: '180px'
31007
- }, React.createElement(React.Fragment, null, React.createElement(Container$m, null, ((_textAndTypeArray$sli = textAndTypeArray[slide]) == null ? void 0 : _textAndTypeArray$sli.imageSide) === 'right' && React.createElement(React.Fragment, null, React.createElement(TextContainer$2, {
31086
+ }, React.createElement(React.Fragment, null, React.createElement(Container$n, null, ((_textAndTypeArray$sli = textAndTypeArray[slide]) == null ? void 0 : _textAndTypeArray$sli.imageSide) === 'right' && React.createElement(React.Fragment, null, React.createElement(TextContainer$2, {
31008
31087
  flex: '70%'
31009
31088
  }, React.createElement(NPCDialogText, {
31010
31089
  onStartStep: function onStartStep() {
@@ -31046,7 +31125,7 @@ var NPCMultiDialog = function NPCMultiDialog(_ref) {
31046
31125
  src: img$6
31047
31126
  }))), ")"));
31048
31127
  };
31049
- var Container$m = /*#__PURE__*/styled.div.withConfig({
31128
+ var Container$n = /*#__PURE__*/styled.div.withConfig({
31050
31129
  displayName: "NPCMultiDialog__Container",
31051
31130
  componentId: "sc-rvu5wg-0"
31052
31131
  })(["display:flex;width:100%;height:100%;box-sizing:border-box;justify-content:center;align-items:flex-start;position:relative;"]);
@@ -31478,7 +31557,7 @@ var Pagination = function Pagination(_ref) {
31478
31557
  totalPages = _ref.totalPages,
31479
31558
  onPageChange = _ref.onPageChange,
31480
31559
  className = _ref.className;
31481
- return React.createElement(Container$n, {
31560
+ return React.createElement(Container$o, {
31482
31561
  className: className
31483
31562
  }, React.createElement(PaginationButton$1, {
31484
31563
  onClick: function onClick() {
@@ -31496,7 +31575,7 @@ var Pagination = function Pagination(_ref) {
31496
31575
  size: 12
31497
31576
  })));
31498
31577
  };
31499
- var Container$n = /*#__PURE__*/styled.div.withConfig({
31578
+ var Container$o = /*#__PURE__*/styled.div.withConfig({
31500
31579
  displayName: "Pagination__Container",
31501
31580
  componentId: "sc-3k4m4u-0"
31502
31581
  })(["display:flex;align-items:center;justify-content:center;gap:16px;padding:8px;"]);
@@ -31522,7 +31601,7 @@ var SearchBar = function SearchBar(_ref) {
31522
31601
  className = _ref.className,
31523
31602
  rightElement = _ref.rightElement;
31524
31603
  var hasRightElement = Boolean(rightElement);
31525
- return React.createElement(Container$o, {
31604
+ return React.createElement(Container$p, {
31526
31605
  className: className
31527
31606
  }, React.createElement(Input$1, {
31528
31607
  type: "text",
@@ -31535,7 +31614,7 @@ var SearchBar = function SearchBar(_ref) {
31535
31614
  "$hasRightElement": hasRightElement
31536
31615
  }), React.createElement(IconContainer, null, React.createElement(SearchIcon, null), rightElement));
31537
31616
  };
31538
- var Container$o = /*#__PURE__*/styled.div.withConfig({
31617
+ var Container$p = /*#__PURE__*/styled.div.withConfig({
31539
31618
  displayName: "SearchBar__Container",
31540
31619
  componentId: "sc-13n8z02-0"
31541
31620
  })(["position:relative;width:100%;"]);
@@ -31643,7 +31722,7 @@ var PaginatedContent = function PaginatedContent(_ref) {
31643
31722
  setCurrentPage = _usePagination.setCurrentPage,
31644
31723
  paginatedItems = _usePagination.paginatedItems,
31645
31724
  totalPages = _usePagination.totalPages;
31646
- return React.createElement(Container$p, {
31725
+ return React.createElement(Container$q, {
31647
31726
  className: className
31648
31727
  }, (searchOptions || filterOptions) && React.createElement(SearchHeader, {
31649
31728
  searchOptions: searchOptions,
@@ -31665,7 +31744,7 @@ var PaginatedContent = function PaginatedContent(_ref) {
31665
31744
  onPageChange: setCurrentPage
31666
31745
  }))));
31667
31746
  };
31668
- var Container$p = /*#__PURE__*/styled.div.withConfig({
31747
+ var Container$q = /*#__PURE__*/styled.div.withConfig({
31669
31748
  displayName: "PaginatedContent__Container",
31670
31749
  componentId: "sc-lzp9hn-0"
31671
31750
  })(["display:flex;flex-direction:column;gap:0.5rem;min-height:400px;width:100%;"]);
@@ -31787,7 +31866,7 @@ var BaseInformationDetails = function BaseInformationDetails(_ref) {
31787
31866
  atlasIMG = _ref.atlasIMG,
31788
31867
  onBack = _ref.onBack,
31789
31868
  children = _ref.children;
31790
- return React.createElement(Container$q, null, React.createElement(Overlay, {
31869
+ return React.createElement(Container$r, null, React.createElement(Overlay, {
31791
31870
  onClick: onBack
31792
31871
  }), React.createElement(Modal, null, React.createElement(CloseButton$5, {
31793
31872
  onClick: onBack
@@ -31800,7 +31879,7 @@ var BaseInformationDetails = function BaseInformationDetails(_ref) {
31800
31879
  imgScale: 1
31801
31880
  })), React.createElement(Title$3, null, name)), React.createElement(Content$1, null, children)));
31802
31881
  };
31803
- var Container$q = /*#__PURE__*/styled.div.withConfig({
31882
+ var Container$r = /*#__PURE__*/styled.div.withConfig({
31804
31883
  displayName: "BaseInformationDetails__Container",
31805
31884
  componentId: "sc-1vguuz8-0"
31806
31885
  })(["position:fixed;inset:0;display:flex;justify-content:center;align-items:center;z-index:9999;"]);
@@ -31842,7 +31921,7 @@ var Collapsible = function Collapsible(_ref) {
31842
31921
  var _useState = useState(defaultOpen),
31843
31922
  isOpen = _useState[0],
31844
31923
  setIsOpen = _useState[1];
31845
- return React.createElement(Container$r, {
31924
+ return React.createElement(Container$s, {
31846
31925
  className: className
31847
31926
  }, React.createElement(Header$2, {
31848
31927
  onClick: function onClick() {
@@ -31850,7 +31929,7 @@ var Collapsible = function Collapsible(_ref) {
31850
31929
  }
31851
31930
  }, React.createElement(Title$4, null, title), React.createElement(Icon$1, null, isOpen ? React.createElement(FaChevronUp, null) : React.createElement(FaChevronDown, null))), isOpen && React.createElement(Content$2, null, children));
31852
31931
  };
31853
- var Container$r = /*#__PURE__*/styled.div.withConfig({
31932
+ var Container$s = /*#__PURE__*/styled.div.withConfig({
31854
31933
  displayName: "Collapsible__Container",
31855
31934
  componentId: "sc-s4h8ey-0"
31856
31935
  })(["background:rgba(0,0,0,0.3);border-radius:4px;overflow:hidden;border:1px solid ", ";"], uiColors.darkGray);
@@ -32180,7 +32259,7 @@ var AdvancedFilters = function AdvancedFilters(_ref) {
32180
32259
  onClose();
32181
32260
  }
32182
32261
  };
32183
- return React.createElement(Container$s, null, React.createElement(FilterButton, {
32262
+ return React.createElement(Container$t, null, React.createElement(FilterButton, {
32184
32263
  onClick: onToggle,
32185
32264
  "$hasActiveFilters": hasActiveFilters,
32186
32265
  ref: buttonRef
@@ -32211,7 +32290,7 @@ var AdvancedFilters = function AdvancedFilters(_ref) {
32211
32290
  onClick: onClearAll
32212
32291
  }, "Clear All Filters"))));
32213
32292
  };
32214
- var Container$s = /*#__PURE__*/styled.div.withConfig({
32293
+ var Container$t = /*#__PURE__*/styled.div.withConfig({
32215
32294
  displayName: "AdvancedFilters__Container",
32216
32295
  componentId: "sc-1xj6ldr-0"
32217
32296
  })(["position:relative;margin-left:0.5rem;"]);
@@ -33305,7 +33384,7 @@ var InformationCenter = function InformationCenter(_ref) {
33305
33384
  minWidth: "300px",
33306
33385
  cancelDrag: ".PaginatedContent-content",
33307
33386
  onCloseButton: onClose
33308
- }, React.createElement(Container$t, null, React.createElement(InternalTabs, {
33387
+ }, React.createElement(Container$u, null, React.createElement(InternalTabs, {
33309
33388
  tabs: tabs,
33310
33389
  activeTextColor: "#000000",
33311
33390
  activeTab: activeTab,
@@ -33316,7 +33395,7 @@ var InformationCenter = function InformationCenter(_ref) {
33316
33395
  hoverColor: "#fef3c7"
33317
33396
  })));
33318
33397
  };
33319
- var Container$t = /*#__PURE__*/styled.div.withConfig({
33398
+ var Container$u = /*#__PURE__*/styled.div.withConfig({
33320
33399
  displayName: "InformationCenter__Container",
33321
33400
  componentId: "sc-1ttl62e-0"
33322
33401
  })(["width:100%;max-width:100%;margin:0 auto;padding:0.125rem;overflow:hidden;box-sizing:border-box;@media (min-width:320px){padding:0.25rem;}@media (min-width:360px){padding:0.5rem;}@media (min-width:480px){padding:0.75rem;}"]);
@@ -33487,7 +33566,7 @@ var ShortcutsSetter = function ShortcutsSetter(_ref) {
33487
33566
  }
33488
33567
  return null;
33489
33568
  };
33490
- return React.createElement(Container$u, null, React.createElement("p", null, "Shortcuts:"), React.createElement(List, {
33569
+ return React.createElement(Container$v, null, React.createElement("p", null, "Shortcuts:"), React.createElement(List, {
33491
33570
  id: "shortcuts_list"
33492
33571
  }, Array.from({
33493
33572
  length: 12
@@ -33505,7 +33584,7 @@ var ShortcutsSetter = function ShortcutsSetter(_ref) {
33505
33584
  }, getContent(i));
33506
33585
  })));
33507
33586
  };
33508
- var Container$u = /*#__PURE__*/styled.div.withConfig({
33587
+ var Container$v = /*#__PURE__*/styled.div.withConfig({
33509
33588
  displayName: "ShortcutsSetter__Container",
33510
33589
  componentId: "sc-xuouuf-0"
33511
33590
  })(["p{margin:0;margin-left:0.5rem;font-size:10px;}width:100%;"]);
@@ -33950,7 +34029,7 @@ var ConfirmModal = function ConfirmModal(_ref) {
33950
34029
  e.stopPropagation();
33951
34030
  onClose();
33952
34031
  };
33953
- return React.createElement(ModalPortal, null, React.createElement(Background, null), React.createElement(Container$v, {
34032
+ return React.createElement(ModalPortal, null, React.createElement(Background, null), React.createElement(Container$w, {
33954
34033
  onClick: handleClose
33955
34034
  }, React.createElement(DraggableContainer, {
33956
34035
  width: "auto",
@@ -33973,7 +34052,7 @@ var Background = /*#__PURE__*/styled.div.withConfig({
33973
34052
  displayName: "ConfirmModal__Background",
33974
34053
  componentId: "sc-11qkyu1-0"
33975
34054
  })(["position:absolute;width:100%;height:100%;background-color:#000000;opacity:0.5;left:0;top:0;z-index:1000;"]);
33976
- var Container$v = /*#__PURE__*/styled.div.withConfig({
34055
+ var Container$w = /*#__PURE__*/styled.div.withConfig({
33977
34056
  displayName: "ConfirmModal__Container",
33978
34057
  componentId: "sc-11qkyu1-1"
33979
34058
  })(["position:absolute;width:100%;height:100%;left:0;top:0;display:flex;justify-content:center;align-items:center;z-index:1001;"]);
@@ -34028,7 +34107,7 @@ var ColorSelector = function ColorSelector(_ref) {
34028
34107
  cancelDrag: ".react-colorful",
34029
34108
  width: "25rem",
34030
34109
  onCloseButton: onClose
34031
- }, React.createElement(Container$w, null, React.createElement(Header$3, null, "Select Color"), React.createElement(ColorPickerWrapper, null, React.createElement(HexColorPicker, {
34110
+ }, React.createElement(Container$x, null, React.createElement(Header$3, null, "Select Color"), React.createElement(ColorPickerWrapper, null, React.createElement(HexColorPicker, {
34032
34111
  color: currentColor,
34033
34112
  onChange: function onChange(color) {
34034
34113
  setCurrentColor(color);
@@ -34044,7 +34123,7 @@ var ColorSelector = function ColorSelector(_ref) {
34044
34123
  onClose: handleClose
34045
34124
  }));
34046
34125
  };
34047
- var Container$w = /*#__PURE__*/styled.div.withConfig({
34126
+ var Container$x = /*#__PURE__*/styled.div.withConfig({
34048
34127
  displayName: "ItemPropertyColorSelector__Container",
34049
34128
  componentId: "sc-me1r4z-0"
34050
34129
  })(["text-align:center;background:inherit;display:flex;flex-direction:column;gap:1.5rem;align-items:center;width:100%;max-width:24rem;margin:0 auto;"]);
@@ -34400,7 +34479,7 @@ var ListMenu = function ListMenu(_ref) {
34400
34479
  onSelected = _ref.onSelected,
34401
34480
  x = _ref.x,
34402
34481
  y = _ref.y;
34403
- return React.createElement(Container$x, {
34482
+ return React.createElement(Container$y, {
34404
34483
  x: x,
34405
34484
  y: y
34406
34485
  }, React.createElement("ul", {
@@ -34417,7 +34496,7 @@ var ListMenu = function ListMenu(_ref) {
34417
34496
  }, (params == null ? void 0 : params.text) || 'No text');
34418
34497
  })));
34419
34498
  };
34420
- var Container$x = /*#__PURE__*/styled.div.withConfig({
34499
+ var Container$y = /*#__PURE__*/styled.div.withConfig({
34421
34500
  displayName: "ListMenu__Container",
34422
34501
  componentId: "sc-i9097t-0"
34423
34502
  })(["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) {
@@ -34436,7 +34515,7 @@ var Pager = function Pager(_ref) {
34436
34515
  itemsPerPage = _ref.itemsPerPage,
34437
34516
  onPageChange = _ref.onPageChange;
34438
34517
  var totalPages = Math.ceil(totalItems / itemsPerPage);
34439
- return React.createElement(Container$y, null, React.createElement("p", null, "Total items: ", totalItems), React.createElement(PagerContainer, null, React.createElement("button", {
34518
+ return React.createElement(Container$z, null, React.createElement("p", null, "Total items: ", totalItems), React.createElement(PagerContainer, null, React.createElement("button", {
34440
34519
  disabled: currentPage === 1,
34441
34520
  onPointerDown: function onPointerDown() {
34442
34521
  return onPageChange(Math.max(currentPage - 1, 1));
@@ -34450,7 +34529,7 @@ var Pager = function Pager(_ref) {
34450
34529
  }
34451
34530
  }, '>')));
34452
34531
  };
34453
- var Container$y = /*#__PURE__*/styled.div.withConfig({
34532
+ var Container$z = /*#__PURE__*/styled.div.withConfig({
34454
34533
  displayName: "Pager__Container",
34455
34534
  componentId: "sc-1ekmf50-0"
34456
34535
  })(["display:flex;flex-direction:column;align-items:center;p{margin:0;font-size:", ";}"], uiFonts.size.xsmall);
@@ -34971,13 +35050,13 @@ var TabBody = function TabBody(_ref) {
34971
35050
  children = _ref.children,
34972
35051
  styles = _ref.styles,
34973
35052
  centerContent = _ref.centerContent;
34974
- return React.createElement(Container$z, {
35053
+ return React.createElement(Container$A, {
34975
35054
  styles: styles,
34976
35055
  "data-tab-id": id,
34977
35056
  centerContent: centerContent
34978
35057
  }, children);
34979
35058
  };
34980
- var Container$z = /*#__PURE__*/styled.div.withConfig({
35059
+ var Container$A = /*#__PURE__*/styled.div.withConfig({
34981
35060
  displayName: "TabBody__Container",
34982
35061
  componentId: "sc-196oof2-0"
34983
35062
  })(["width:", ";height:", ";overflow-y:auto;display:", ";justify-content:", ";align-items:", ";"], function (props) {
@@ -35630,7 +35709,7 @@ var ProgressBar$1 = function ProgressBar(_ref) {
35630
35709
  }
35631
35710
  return value * 100 / max;
35632
35711
  };
35633
- return React.createElement(Container$A, {
35712
+ return React.createElement(Container$B, {
35634
35713
  className: "rpgui-progress",
35635
35714
  "data-value": calculatePercentageValue(max, value) / 100,
35636
35715
  "data-rpguitype": "progress",
@@ -35660,7 +35739,7 @@ var TextOverlay$1 = /*#__PURE__*/styled.div.withConfig({
35660
35739
  displayName: "ProgressBar__TextOverlay",
35661
35740
  componentId: "sc-qa6fzh-1"
35662
35741
  })(["width:100%;position:relative;"]);
35663
- var Container$A = /*#__PURE__*/styled.div.withConfig({
35742
+ var Container$B = /*#__PURE__*/styled.div.withConfig({
35664
35743
  displayName: "ProgressBar__Container",
35665
35744
  componentId: "sc-qa6fzh-2"
35666
35745
  })(["display:flex;flex-direction:column;min-width:", "px;width:", "%;justify-content:start;align-items:flex-start;", " @media (max-width:950px){transform:scale(", ");}"], function (props) {
@@ -35901,9 +35980,9 @@ var InputRadio = function InputRadio(_ref) {
35901
35980
 
35902
35981
  var RPGUIScrollbar = function RPGUIScrollbar(_ref) {
35903
35982
  var children = _ref.children;
35904
- return React.createElement(Container$B, null, children);
35983
+ return React.createElement(Container$C, null, children);
35905
35984
  };
35906
- var Container$B = /*#__PURE__*/styled.div.withConfig({
35985
+ var Container$C = /*#__PURE__*/styled.div.withConfig({
35907
35986
  displayName: "RPGUIScrollbar__Container",
35908
35987
  componentId: "sc-p3msmb-0"
35909
35988
  })([".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;}"]);
@@ -36059,7 +36138,7 @@ var SimpleProgressBar = function SimpleProgressBar(_ref) {
36059
36138
  margin = _ref$margin === void 0 ? 20 : _ref$margin;
36060
36139
  // Ensure the width is at least 1% if value is greater than 0
36061
36140
  var width = value > 0 ? Math.max(1, Math.min(100, value)) : 0;
36062
- return React.createElement(Container$C, {
36141
+ return React.createElement(Container$D, {
36063
36142
  className: "simple-progress-bar"
36064
36143
  }, React.createElement(ProgressBarContainer, {
36065
36144
  margin: margin
@@ -36068,7 +36147,7 @@ var SimpleProgressBar = function SimpleProgressBar(_ref) {
36068
36147
  bgColor: bgColor
36069
36148
  }))));
36070
36149
  };
36071
- var Container$C = /*#__PURE__*/styled.div.withConfig({
36150
+ var Container$D = /*#__PURE__*/styled.div.withConfig({
36072
36151
  displayName: "SimpleProgressBar__Container",
36073
36152
  componentId: "sc-mbeil3-0"
36074
36153
  })(["display:flex;justify-content:center;align-items:center;width:100%;"]);
@@ -36401,10 +36480,10 @@ var SocialModal = function SocialModal(_ref) {
36401
36480
  title: "Social Channels",
36402
36481
  width: "500px",
36403
36482
  onCloseButton: onClose
36404
- }, React.createElement(Container$D, null, React.createElement(HeaderImage, {
36483
+ }, React.createElement(Container$E, null, React.createElement(HeaderImage, {
36405
36484
  src: img$9,
36406
36485
  alt: ""
36407
- }), React.createElement(ButtonsContainer$1, null, React.createElement(MainButtons, null, React.createElement(SocialButton$1, {
36486
+ }), React.createElement(ButtonsContainer$2, null, React.createElement(MainButtons, null, React.createElement(SocialButton$1, {
36408
36487
  onClick: handleDiscordClick
36409
36488
  }, React.createElement(FaDiscord, null), " Discord"), React.createElement(SocialButton$1, {
36410
36489
  onClick: handleRedditClick
@@ -36419,7 +36498,7 @@ var SocialModal = function SocialModal(_ref) {
36419
36498
  onClick: handleWhatsAppClick
36420
36499
  }, React.createElement(FaWhatsapp, null), " Join WhatsApp")))));
36421
36500
  };
36422
- var Container$D = /*#__PURE__*/styled.div.withConfig({
36501
+ var Container$E = /*#__PURE__*/styled.div.withConfig({
36423
36502
  displayName: "SocialModal__Container",
36424
36503
  componentId: "sc-tbjhp9-0"
36425
36504
  })(["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% );}"]);
@@ -36427,7 +36506,7 @@ var HeaderImage = /*#__PURE__*/styled.img.withConfig({
36427
36506
  displayName: "SocialModal__HeaderImage",
36428
36507
  componentId: "sc-tbjhp9-1"
36429
36508
  })(["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;"]);
36430
- var ButtonsContainer$1 = /*#__PURE__*/styled.div.withConfig({
36509
+ var ButtonsContainer$2 = /*#__PURE__*/styled.div.withConfig({
36431
36510
  displayName: "SocialModal__ButtonsContainer",
36432
36511
  componentId: "sc-tbjhp9-2"
36433
36512
  })(["padding:16px 24px 24px;display:flex;flex-direction:column;gap:16px;"]);
@@ -36465,7 +36544,7 @@ var SpellInfo$1 = function SpellInfo(_ref) {
36465
36544
  castingType = spell.castingType,
36466
36545
  cooldown = spell.cooldown,
36467
36546
  maxDistanceGrid = spell.maxDistanceGrid;
36468
- 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", {
36547
+ 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", {
36469
36548
  className: "label"
36470
36549
  }, "Casting Type:"), React.createElement("div", {
36471
36550
  className: "value"
@@ -36491,7 +36570,7 @@ var SpellInfo$1 = function SpellInfo(_ref) {
36491
36570
  className: "value"
36492
36571
  }, requiredItem))), React.createElement(Description$4, null, description));
36493
36572
  };
36494
- var Container$E = /*#__PURE__*/styled.div.withConfig({
36573
+ var Container$F = /*#__PURE__*/styled.div.withConfig({
36495
36574
  displayName: "SpellInfo__Container",
36496
36575
  componentId: "sc-4hbw3q-0"
36497
36576
  })(["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);
@@ -36545,7 +36624,7 @@ var MobileSpellTooltip = function MobileSpellTooltip(_ref) {
36545
36624
  var _ref$current;
36546
36625
  (_ref$current = ref.current) == null ? void 0 : _ref$current.classList.add('fadeOut');
36547
36626
  };
36548
- return React.createElement(ModalPortal, null, React.createElement(Container$F, {
36627
+ return React.createElement(ModalPortal, null, React.createElement(Container$G, {
36549
36628
  ref: ref,
36550
36629
  onTouchEnd: function onTouchEnd() {
36551
36630
  handleFadeOut();
@@ -36570,7 +36649,7 @@ var MobileSpellTooltip = function MobileSpellTooltip(_ref) {
36570
36649
  }, option.text);
36571
36650
  }))));
36572
36651
  };
36573
- var Container$F = /*#__PURE__*/styled.div.withConfig({
36652
+ var Container$G = /*#__PURE__*/styled.div.withConfig({
36574
36653
  displayName: "MobileSpellTooltip__Container",
36575
36654
  componentId: "sc-6p7uvr-0"
36576
36655
  })(["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;}"]);
@@ -36611,13 +36690,13 @@ var MagicTooltip = function MagicTooltip(_ref) {
36611
36690
  }
36612
36691
  return;
36613
36692
  }, []);
36614
- return React.createElement(ModalPortal, null, React.createElement(Container$G, {
36693
+ return React.createElement(ModalPortal, null, React.createElement(Container$H, {
36615
36694
  ref: ref
36616
36695
  }, React.createElement(SpellInfoDisplay, {
36617
36696
  spell: spell
36618
36697
  })));
36619
36698
  };
36620
- var Container$G = /*#__PURE__*/styled.div.withConfig({
36699
+ var Container$H = /*#__PURE__*/styled.div.withConfig({
36621
36700
  displayName: "SpellTooltip__Container",
36622
36701
  componentId: "sc-1go0gwg-0"
36623
36702
  })(["position:absolute;z-index:100;pointer-events:none;left:0;top:0;opacity:0;transition:opacity 0.08s;"]);
@@ -36690,7 +36769,7 @@ var Spell = function Spell(_ref) {
36690
36769
  var IMAGE_SCALE = 2;
36691
36770
  return React.createElement(SpellInfoWrapper, {
36692
36771
  spell: spell
36693
- }, React.createElement(Container$H, {
36772
+ }, React.createElement(Container$I, {
36694
36773
  onPointerUp: onPointerUp == null ? void 0 : onPointerUp.bind(null, spellKey),
36695
36774
  isSettingShortcut: isSettingShortcut && !disabled,
36696
36775
  className: "spell"
@@ -36709,7 +36788,7 @@ var Spell = function Spell(_ref) {
36709
36788
  className: "mana"
36710
36789
  }, manaCost))));
36711
36790
  };
36712
- var Container$H = /*#__PURE__*/styled.button.withConfig({
36791
+ var Container$I = /*#__PURE__*/styled.button.withConfig({
36713
36792
  displayName: "Spell__Container",
36714
36793
  componentId: "sc-j96fa2-0"
36715
36794
  })(["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) {
@@ -36788,7 +36867,7 @@ var Spellbook = function Spellbook(_ref) {
36788
36867
  height: "inherit",
36789
36868
  cancelDrag: "#spellbook-search, #shortcuts_list, .spell",
36790
36869
  scale: scale
36791
- }, React.createElement(Container$I, null, React.createElement(Title$d, null, "Learned Spells"), React.createElement(ShortcutsSetter, {
36870
+ }, React.createElement(Container$J, null, React.createElement(Title$d, null, "Learned Spells"), React.createElement(ShortcutsSetter, {
36792
36871
  setSettingShortcutIndex: setSettingShortcutIndex,
36793
36872
  settingShortcutIndex: settingShortcutIndex,
36794
36873
  shortcuts: shortcuts,
@@ -36824,7 +36903,7 @@ var Title$d = /*#__PURE__*/styled.h1.withConfig({
36824
36903
  displayName: "Spellbook__Title",
36825
36904
  componentId: "sc-r02nfq-0"
36826
36905
  })(["font-size:", " !important;margin-bottom:0 !important;"], uiFonts.size.large);
36827
- var Container$I = /*#__PURE__*/styled.div.withConfig({
36906
+ var Container$J = /*#__PURE__*/styled.div.withConfig({
36828
36907
  displayName: "Spellbook__Container",
36829
36908
  componentId: "sc-r02nfq-1"
36830
36909
  })(["width:100%;height:100%;color:white;display:flex;flex-direction:column;"]);
@@ -37306,7 +37385,7 @@ var TradingMenu = function TradingMenu(_ref) {
37306
37385
  width: "500px",
37307
37386
  cancelDrag: "#TraderContainer",
37308
37387
  scale: scale
37309
- }, React.createElement(Container$J, null, React.createElement(Title$e, null, type.charAt(0).toUpperCase() + type.slice(1), " Menu"), React.createElement("hr", {
37388
+ }, React.createElement(Container$K, null, React.createElement(Title$e, null, type.charAt(0).toUpperCase() + type.slice(1), " Menu"), React.createElement("hr", {
37310
37389
  className: "golden"
37311
37390
  }), React.createElement(ScrollWrapper, {
37312
37391
  id: "TraderContainer"
@@ -37334,7 +37413,7 @@ var TradingMenu = function TradingMenu(_ref) {
37334
37413
  onPointerDown: onClose
37335
37414
  }, "Cancel"))));
37336
37415
  };
37337
- var Container$J = /*#__PURE__*/styled.div.withConfig({
37416
+ var Container$K = /*#__PURE__*/styled.div.withConfig({
37338
37417
  displayName: "TradingMenu__Container",
37339
37418
  componentId: "sc-1wjsz1l-0"
37340
37419
  })(["width:100%;"]);
@@ -37368,11 +37447,11 @@ var Truncate = function Truncate(_ref) {
37368
37447
  var _ref$maxLines = _ref.maxLines,
37369
37448
  maxLines = _ref$maxLines === void 0 ? 1 : _ref$maxLines,
37370
37449
  children = _ref.children;
37371
- return React.createElement(Container$K, {
37450
+ return React.createElement(Container$L, {
37372
37451
  maxLines: maxLines
37373
37452
  }, children);
37374
37453
  };
37375
- var Container$K = /*#__PURE__*/styled.div.withConfig({
37454
+ var Container$L = /*#__PURE__*/styled.div.withConfig({
37376
37455
  displayName: "Truncate__Container",
37377
37456
  componentId: "sc-6x00qb-0"
37378
37457
  })(["display:-webkit-box;max-width:100%;max-height:100%;-webkit-line-clamp:", ";-webkit-box-orient:vertical;overflow:hidden;"], function (props) {
@@ -37480,7 +37559,7 @@ var TutorialStepper = /*#__PURE__*/React.memo(function (_ref) {
37480
37559
  };
37481
37560
  });
37482
37561
  }, [lessons, imageStyle]);
37483
- return React.createElement(Container$L, null, React.createElement(Stepper, {
37562
+ return React.createElement(Container$M, null, React.createElement(Stepper, {
37484
37563
  steps: generateLessons,
37485
37564
  finalCTAButton: {
37486
37565
  label: 'Close',
@@ -37497,7 +37576,7 @@ var LessonBody = /*#__PURE__*/styled.div.withConfig({
37497
37576
  displayName: "TutorialStepper__LessonBody",
37498
37577
  componentId: "sc-7tgzv2-1"
37499
37578
  })([""]);
37500
- var Container$L = /*#__PURE__*/styled.div.withConfig({
37579
+ var Container$M = /*#__PURE__*/styled.div.withConfig({
37501
37580
  displayName: "TutorialStepper__Container",
37502
37581
  componentId: "sc-7tgzv2-2"
37503
37582
  })(["width:80%;max-width:600px;@media (max-width:600px){width:95%;}"]);
@@ -37518,5 +37597,5 @@ var LessonContainer = /*#__PURE__*/styled.div.withConfig({
37518
37597
  componentId: "sc-7tgzv2-6"
37519
37598
  })(["display:flex;flex-direction:column;justify-content:space-between;min-height:200px;p{font-size:0.7rem !important;}"]);
37520
37599
 
37521
- export { ActionButtons, AsyncDropdown, Button, ButtonTypes, CharacterSelection, Chat, ChatDeprecated, ChatRevamp, CheckButton, CheckItem, CircularController, CraftBook, DailyTasks, DraggableContainer, Dropdown, DropdownSelectorContainer, DynamicText, EquipmentSet, EquipmentSlotSpriteByType, ErrorBoundary, FriendList, GemSelector, HistoryDialog, ImageCarousel, ImgSide, InformationCenter, Input, InputRadio, InternalTabs, ItemContainer$1 as ItemContainer, ItemPropertySimpleHandler, ItemQuantitySelectorModal, ItemSelector, ItemSlot, JoystickDPad, Leaderboard, ListMenu, Marketplace, MarketplaceRows, MultitabType, NPCDialog, NPCDialogType, NPCMultiDialog, PartyCreate, PartyDashboard, PartyInvite, PartyManager, PartyManagerRow, PartyRow, PlayersRow, ProgressBar$1 as ProgressBar, PropertySelect, QuantitySelectorModal, QuestInfo, QuestList, QuestionDialog, RPGUIContainer, RPGUIContainerTypes, RPGUIRoot, RangeSlider, RangeSliderType, SelectArrow, Shortcuts, SimpleImageCarousel, SkillProgressBar, SkillsContainer, SocialModal, Spellbook, SpriteFromAtlas, Stepper, TabBody, Table, TableCell, TableHeader, TableRow, TabsContainer, TextArea, TimeWidget, Tooltip, TradingMenu, Truncate, TutorialStepper, UserActionLink, _RPGUI, formatQuestStatus, formatQuestText, getMockedPlayersRowsLeader, getMockedPlayersRowsNotLeader, getQuestStatusColor, mockedPartyManager, mockedPartyRows, mockedPlayersRows, mockedPlayersRows2, useEventListener };
37600
+ export { ActionButtons, AsyncDropdown, Button, ButtonTypes, CharacterSelection, CharacterSkinSelectionModal, Chat, ChatDeprecated, ChatRevamp, CheckButton, CheckItem, CircularController, CraftBook, DailyTasks, DraggableContainer, Dropdown, DropdownSelectorContainer, DynamicText, EquipmentSet, EquipmentSlotSpriteByType, ErrorBoundary, FriendList, GemSelector, HistoryDialog, ImageCarousel, ImgSide, InformationCenter, Input, InputRadio, InternalTabs, ItemContainer$1 as ItemContainer, ItemPropertySimpleHandler, ItemQuantitySelectorModal, ItemSelector, ItemSlot, JoystickDPad, Leaderboard, ListMenu, Marketplace, MarketplaceRows, MultitabType, NPCDialog, NPCDialogType, NPCMultiDialog, PartyCreate, PartyDashboard, PartyInvite, PartyManager, PartyManagerRow, PartyRow, PlayersRow, ProgressBar$1 as ProgressBar, PropertySelect, QuantitySelectorModal, QuestInfo, QuestList, QuestionDialog, RPGUIContainer, RPGUIContainerTypes, RPGUIRoot, RangeSlider, RangeSliderType, SelectArrow, Shortcuts, SimpleImageCarousel, SkillProgressBar, SkillsContainer, SocialModal, Spellbook, SpriteFromAtlas, Stepper, TabBody, Table, TableCell, TableHeader, TableRow, TabsContainer, TextArea, TimeWidget, Tooltip, TradingMenu, Truncate, TutorialStepper, UserActionLink, _RPGUI, formatQuestStatus, formatQuestText, getMockedPlayersRowsLeader, getMockedPlayersRowsNotLeader, getQuestStatusColor, mockedPartyManager, mockedPartyRows, mockedPlayersRows, mockedPlayersRows2, useEventListener };
37522
37601
  //# sourceMappingURL=long-bow.esm.js.map