@rpg-engine/long-bow 0.8.47 → 0.8.49

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.
@@ -2,7 +2,7 @@ import React, { useState, useEffect, Component, useRef, useCallback, useContext,
2
2
  import styled, { css, keyframes } from 'styled-components';
3
3
  import { BeatLoader } from 'react-spinners';
4
4
  import { v4 } from 'uuid';
5
- import { GRID_WIDTH, GRID_HEIGHT, ShortcutType, getItemTextureKeyPath, ItemContainerType, ItemType, DepotSocketEvents, ItemSocketEvents, ItemSocketEventsDisplayLabels, ActionsForInventory, ActionsForEquipmentSet, ActionsForLoot, ActionsForMapContainer, ItemQualityLevel, ItemRarities, ItemSubType, isMobile, ItemSlotType, isMobileOrTablet, NPCSubtype, EntityAttackType, NPCAlignment, VideoGuideCategory, VideoGuideLanguage, CharacterClass, QuestStatus, getSPForLevel, getXPForLevel, PeriodOfDay, UserAccountTypes } from '@rpg-engine/shared';
5
+ import { GRID_WIDTH, GRID_HEIGHT, ShortcutType, getItemTextureKeyPath, ItemContainerType, ItemType, DepotSocketEvents, ItemSocketEvents, ItemSocketEventsDisplayLabels, ActionsForInventory, ActionsForEquipmentSet, ActionsForLoot, ActionsForMapContainer, ItemQualityLevel, ItemRarities, ItemSubType, isMobile, TaskType, TaskStatus, RewardType, isMobileOrTablet, ItemSlotType, NPCSubtype, EntityAttackType, NPCAlignment, VideoGuideCategory, VideoGuideLanguage, CharacterClass, QuestStatus, getSPForLevel, getXPForLevel, PeriodOfDay, UserAccountTypes } from '@rpg-engine/shared';
6
6
  import dayjs from 'dayjs';
7
7
  import { ErrorBoundary as ErrorBoundary$1 } from 'react-error-boundary';
8
8
  import { FaTimes, FaDiscord, FaWhatsapp, FaSearch, FaThumbtack, FaBoxOpen, FaChevronLeft, FaChevronRight, FaChevronUp, FaChevronDown, FaReddit } from 'react-icons/fa';
@@ -29209,6 +29209,532 @@ var EmptyState = /*#__PURE__*/styled.div.withConfig({
29209
29209
  componentId: "sc-19q95ue-15"
29210
29210
  })(["position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:", ";width:100%;padding:2rem;svg{font-size:3rem;margin-bottom:1rem;opacity:0.7;}p{font-family:'Press Start 2P',cursive;font-size:0.9rem;margin:0;}"], uiColors.lightGray);
29211
29211
 
29212
+ var formatTaskKey = function formatTaskKey(key) {
29213
+ var formatted = key.replace(/[-_]/g, ' ');
29214
+ formatted = formatted.replace(/([A-Z])/g, ' $1');
29215
+ formatted = formatted.trim();
29216
+ return formatted.split(' ').map(function (word) {
29217
+ return word.charAt(0).toUpperCase() + word.slice(1).toLowerCase();
29218
+ }).join(' ');
29219
+ };
29220
+ var getTaskIcon = function getTaskIcon(taskType, difficulty) {
29221
+ var MapIcon = 'map-2.png';
29222
+ var KillMobsIconRegular = 'white-skull.png';
29223
+ var KillMobsIconChallenge = 'red-skull.png';
29224
+ var CollectItemIcon = 'inventory-2.png';
29225
+ var CraftItemIcon = 'crafting.png';
29226
+ switch (taskType) {
29227
+ case TaskType.KillMobs:
29228
+ return difficulty === 'Challenge' ? KillMobsIconChallenge : KillMobsIconRegular;
29229
+ case TaskType.CollectItems:
29230
+ return CollectItemIcon;
29231
+ case TaskType.MapVisit:
29232
+ return MapIcon;
29233
+ case TaskType.CraftItems:
29234
+ return CraftItemIcon;
29235
+ default:
29236
+ return 'check.png';
29237
+ }
29238
+ };
29239
+ var getStatusInfo = function getStatusInfo(task) {
29240
+ if (task.status === TaskStatus.Completed) {
29241
+ return {
29242
+ text: 'Completed',
29243
+ color: uiColors.lightGreen
29244
+ };
29245
+ }
29246
+ if (task.claimed) {
29247
+ return {
29248
+ text: 'Claimed',
29249
+ color: uiColors.yellow
29250
+ };
29251
+ }
29252
+ var isTaskNotStarted = function () {
29253
+ switch (task.type) {
29254
+ case TaskType.KillMobs:
29255
+ return task.type === TaskType.KillMobs && Object.values(task.progress.kills || {}).every(function (kill) {
29256
+ return kill === 0;
29257
+ });
29258
+ case TaskType.CollectItems:
29259
+ return task.type === TaskType.CollectItems && Object.values(task.progress.collected || {}).every(function (quantity) {
29260
+ return quantity === 0;
29261
+ });
29262
+ case TaskType.CraftItems:
29263
+ return task.type === TaskType.CraftItems && Object.values(task.progress.crafted || {}).every(function (quantity) {
29264
+ return quantity === 0;
29265
+ });
29266
+ case TaskType.MapVisit:
29267
+ return task.type === TaskType.MapVisit && Object.values(task.progress.visitedMaps || {}).every(function (visited) {
29268
+ return !visited;
29269
+ });
29270
+ default:
29271
+ return false;
29272
+ }
29273
+ }();
29274
+ if (isTaskNotStarted) {
29275
+ return {
29276
+ text: 'Not Started',
29277
+ color: uiColors.lightGray
29278
+ };
29279
+ }
29280
+ return {
29281
+ text: 'In Progress',
29282
+ color: uiColors.blue
29283
+ };
29284
+ };
29285
+ var formatDifficulty = function formatDifficulty(difficulty) {
29286
+ return difficulty.charAt(0).toUpperCase() + difficulty.slice(1).toLowerCase();
29287
+ };
29288
+
29289
+ var DailyRewardsTooltip = function DailyRewardsTooltip(_ref) {
29290
+ var rewards = _ref.rewards,
29291
+ itemsAtlasJSON = _ref.itemsAtlasJSON,
29292
+ itemsAtlasIMG = _ref.itemsAtlasIMG;
29293
+ var _React$useState = React.useState(true),
29294
+ isExpanded = _React$useState[0],
29295
+ setIsExpanded = _React$useState[1];
29296
+ var sortedRewards = React.useMemo(function () {
29297
+ var _REWARD_PRIORITY;
29298
+ if (!rewards) return [];
29299
+ var REWARD_PRIORITY = (_REWARD_PRIORITY = {}, _REWARD_PRIORITY[RewardType.Item] = 1, _REWARD_PRIORITY[RewardType.Gold] = 2, _REWARD_PRIORITY[RewardType.Experience] = 3, _REWARD_PRIORITY);
29300
+ var getPriority = function getPriority(type) {
29301
+ var _REWARD_PRIORITY$type;
29302
+ return (_REWARD_PRIORITY$type = REWARD_PRIORITY[type]) != null ? _REWARD_PRIORITY$type : Number.MAX_SAFE_INTEGER;
29303
+ };
29304
+ return [].concat(rewards).sort(function (a, b) {
29305
+ return getPriority(a.type) - getPriority(b.type);
29306
+ });
29307
+ }, [rewards]);
29308
+ var toggleExpand = function toggleExpand() {
29309
+ setIsExpanded(!isExpanded);
29310
+ };
29311
+ return React.createElement(TooltipContainer$1, null, React.createElement(CollapsibleHeader, {
29312
+ onClick: toggleExpand
29313
+ }, 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;
29315
+ return React.createElement(RewardItem, {
29316
+ key: index
29317
+ }, React.createElement(SpriteFromAtlas, {
29318
+ atlasJSON: itemsAtlasJSON,
29319
+ 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',
29321
+ width: 24,
29322
+ height: 24,
29323
+ imgScale: 1.75
29324
+ }), React.createElement(ItemContent, null, React.createElement(RewardLabel, null, React.createElement(Ellipsis, {
29325
+ maxWidth: "100%",
29326
+ maxLines: 2
29327
+ }, formatTaskKey((_reward$key = reward.key) != null ? _reward$key : ''), ":"))), React.createElement(RewardValue, null, "x", reward.quantity));
29328
+ }))));
29329
+ };
29330
+ var TooltipContainer$1 = /*#__PURE__*/styled.div.withConfig({
29331
+ displayName: "DailyRewardsTooltip__TooltipContainer",
29332
+ componentId: "sc-wxzcu4-0"
29333
+ })(["position:relative;display:flex;flex-direction:column;width:100%;"]);
29334
+ var RewardsList = /*#__PURE__*/styled.div.withConfig({
29335
+ displayName: "DailyRewardsTooltip__RewardsList",
29336
+ componentId: "sc-wxzcu4-1"
29337
+ })(["display:flex;flex-direction:column;gap:8px;width:100%;"]);
29338
+ var CollapsibleHeader = /*#__PURE__*/styled.div.withConfig({
29339
+ displayName: "DailyRewardsTooltip__CollapsibleHeader",
29340
+ componentId: "sc-wxzcu4-2"
29341
+ })(["display:flex;justify-content:space-between;align-items:center;cursor:pointer;border-bottom:1px solid ", ";width:100%;"], uiColors.darkGray);
29342
+ var HeaderText = /*#__PURE__*/styled.span.withConfig({
29343
+ displayName: "DailyRewardsTooltip__HeaderText",
29344
+ componentId: "sc-wxzcu4-3"
29345
+ })(["color:", " !important;"], uiColors.yellow);
29346
+ var ExpandIcon = /*#__PURE__*/styled.span.withConfig({
29347
+ displayName: "DailyRewardsTooltip__ExpandIcon",
29348
+ componentId: "sc-wxzcu4-4"
29349
+ })(["color:", ";font-size:0.8rem;margin-left:8px;"], uiColors.yellow);
29350
+ var CollapsibleContent = /*#__PURE__*/styled.div.withConfig({
29351
+ displayName: "DailyRewardsTooltip__CollapsibleContent",
29352
+ componentId: "sc-wxzcu4-5"
29353
+ })(["display:block;padding-top:8px;width:100%;"]);
29354
+ var RewardItem = /*#__PURE__*/styled.div.withConfig({
29355
+ displayName: "DailyRewardsTooltip__RewardItem",
29356
+ componentId: "sc-wxzcu4-6"
29357
+ })(["display:flex;align-items:center;gap:12px;width:100%;min-width:200px;"]);
29358
+ var ItemContent = /*#__PURE__*/styled.div.withConfig({
29359
+ displayName: "DailyRewardsTooltip__ItemContent",
29360
+ componentId: "sc-wxzcu4-7"
29361
+ })(["display:flex;flex-direction:column;justify-content:center;"]);
29362
+ var RewardLabel = /*#__PURE__*/styled.span.withConfig({
29363
+ displayName: "DailyRewardsTooltip__RewardLabel",
29364
+ componentId: "sc-wxzcu4-8"
29365
+ })(["color:", ";font-size:0.9rem;line-height:1.2;display:inline-flex;align-items:center;"], uiColors.yellow);
29366
+ var RewardValue = /*#__PURE__*/styled.span.withConfig({
29367
+ displayName: "DailyRewardsTooltip__RewardValue",
29368
+ componentId: "sc-wxzcu4-9"
29369
+ })(["color:", ";font-size:0.9rem;margin-left:auto;line-height:1.2;display:inline-flex;align-items:center;min-width:50px;text-align:right;"], uiColors.yellow);
29370
+
29371
+ var ReadOnlyCheckItem = function ReadOnlyCheckItem(_ref) {
29372
+ var labelLeft = _ref.labelLeft,
29373
+ labelRight = _ref.labelRight,
29374
+ checked = _ref.checked;
29375
+ return React.createElement(Container$e, null, labelLeft && React.createElement(Label, null, labelLeft), React.createElement("div", {
29376
+ className: "rpgui-checkbox-container"
29377
+ }, React.createElement(CheckBox, {
29378
+ className: "rpgui-checkbox",
29379
+ type: "checkbox",
29380
+ checked: checked,
29381
+ readOnly: true
29382
+ }), React.createElement("label", null)), labelRight && React.createElement(Label, {
29383
+ isRight: true
29384
+ }, labelRight));
29385
+ };
29386
+ var Container$e = /*#__PURE__*/styled.div.withConfig({
29387
+ displayName: "ReadOnlyCheckItem__Container",
29388
+ componentId: "sc-1peplf9-0"
29389
+ })(["display:flex;align-items:center;width:100%;height:20px;"]);
29390
+ var Label = /*#__PURE__*/styled.span.withConfig({
29391
+ displayName: "ReadOnlyCheckItem__Label",
29392
+ componentId: "sc-1peplf9-1"
29393
+ })(["", ""], function (_ref2) {
29394
+ var isRight = _ref2.isRight;
29395
+ return isRight ? 'margin-left: auto;' : 'margin-right: auto;';
29396
+ });
29397
+ var CheckBox = /*#__PURE__*/styled.input.attrs({
29398
+ type: 'checkbox'
29399
+ }).withConfig({
29400
+ displayName: "ReadOnlyCheckItem__CheckBox",
29401
+ componentId: "sc-1peplf9-2"
29402
+ })([""]);
29403
+
29404
+ var TaskProgressDetails = function TaskProgressDetails(_ref) {
29405
+ var _progressRenderers;
29406
+ var task = _ref.task;
29407
+ var progress = task.progress,
29408
+ type = task.type;
29409
+ var progressRenderers = (_progressRenderers = {}, _progressRenderers[TaskType.KillMobs] = function () {
29410
+ return progress.kills && Object.entries(progress.kills).map(function (_ref2, index) {
29411
+ var _task$requirements$ta;
29412
+ var key = _ref2[0],
29413
+ value = _ref2[1];
29414
+ return React.createElement(ProgressItem, {
29415
+ key: index
29416
+ }, React.createElement("span", null, formatTaskKey(key), ":"), React.createElement(ProgressCount, null, value, "/", ((_task$requirements$ta = task.requirements.targets.find(function (t) {
29417
+ return t.key === key;
29418
+ })) == null ? void 0 : _task$requirements$ta.quantity) || 0));
29419
+ });
29420
+ }, _progressRenderers[TaskType.CollectItems] = function () {
29421
+ return Object.entries(progress.collected || {}).map(function (_ref3, index) {
29422
+ var _task$requirements$ta2;
29423
+ var key = _ref3[0],
29424
+ value = _ref3[1];
29425
+ return React.createElement(ProgressItem, {
29426
+ key: index
29427
+ }, React.createElement("span", null, key, ":"), React.createElement(ProgressCount, null, value, "/", ((_task$requirements$ta2 = task.requirements.targets.find(function (t) {
29428
+ return t.key === key;
29429
+ })) == null ? void 0 : _task$requirements$ta2.quantity) || 0));
29430
+ });
29431
+ }, _progressRenderers[TaskType.CraftItems] = function () {
29432
+ return Object.entries(progress.crafted || {}).map(function (_ref4, index) {
29433
+ var _task$requirements$ta3;
29434
+ var key = _ref4[0],
29435
+ value = _ref4[1];
29436
+ return React.createElement(ProgressItem, {
29437
+ key: index
29438
+ }, React.createElement("span", null, formatTaskKey(key), ":"), React.createElement(ProgressCount, null, value, "/", ((_task$requirements$ta3 = task.requirements.targets.find(function (t) {
29439
+ return t.key === key;
29440
+ })) == null ? void 0 : _task$requirements$ta3.quantity) || 0));
29441
+ });
29442
+ }, _progressRenderers[TaskType.MapVisit] = function () {
29443
+ return Object.entries(progress.visitedMaps || {}).map(function (_ref5, index) {
29444
+ var mapName = _ref5[0],
29445
+ visited = _ref5[1];
29446
+ return React.createElement(ProgressItem, {
29447
+ key: index
29448
+ }, React.createElement(CheckItemWrapper, null, React.createElement(ReadOnlyCheckItem, {
29449
+ labelLeft: formatTaskKey(mapName),
29450
+ checked: visited
29451
+ })));
29452
+ });
29453
+ }, _progressRenderers);
29454
+ return React.createElement(ProgressList, null, progressRenderers[type] ? progressRenderers[type]() : null);
29455
+ };
29456
+ var ProgressList = /*#__PURE__*/styled.div.withConfig({
29457
+ displayName: "TaskProgressDetails__ProgressList",
29458
+ componentId: "sc-hm6sp1-0"
29459
+ })(["display:flex;flex-direction:column;gap:8px;"]);
29460
+ var ProgressItem = /*#__PURE__*/styled.div.withConfig({
29461
+ displayName: "TaskProgressDetails__ProgressItem",
29462
+ componentId: "sc-hm6sp1-1"
29463
+ })(["display:flex;justify-content:space-between;align-items:center;"]);
29464
+ var ProgressCount = /*#__PURE__*/styled.span.withConfig({
29465
+ displayName: "TaskProgressDetails__ProgressCount",
29466
+ componentId: "sc-hm6sp1-2"
29467
+ })(["color:", " !important;"], uiColors.white);
29468
+ var CheckItemWrapper = /*#__PURE__*/styled.div.withConfig({
29469
+ displayName: "TaskProgressDetails__CheckItemWrapper",
29470
+ componentId: "sc-hm6sp1-3"
29471
+ })(["display:flex;justify-content:center;width:100%;height:20px;input.rpgui-checkbox + label{margin:0 !important;padding-left:23px !important;}"]);
29472
+
29473
+ var TaskProgress = function TaskProgress(_ref) {
29474
+ var task = _ref.task,
29475
+ itemsAtlasJSON = _ref.itemsAtlasJSON,
29476
+ itemsAtlasIMG = _ref.itemsAtlasIMG,
29477
+ iconAtlasJSON = _ref.iconAtlasJSON,
29478
+ iconAtlasIMG = _ref.iconAtlasIMG;
29479
+ var difficulty = task.difficulty;
29480
+ return React.createElement(ProgressContainer, null, React.createElement(ProgressList$1, null, React.createElement(ProgressItem$1, null, React.createElement(ProgressLabel, null, "Difficulty:"), React.createElement(TaskDifficulty, {
29481
+ difficulty: difficulty
29482
+ }, formatDifficulty(difficulty))), React.createElement(ProgressItem$1, null, React.createElement(ProgressLabel, null, "Status:"), React.createElement(StatusText, {
29483
+ color: getStatusInfo(task).color
29484
+ }, getStatusInfo(task).text)), React.createElement(TaskProgressDetails, {
29485
+ task: task
29486
+ }), task.rewards && task.rewards.length > 0 && React.createElement(ProgressItem$1, null, React.createElement(DailyRewardsTooltip, {
29487
+ rewards: task.rewards,
29488
+ itemsAtlasJSON: itemsAtlasJSON,
29489
+ itemsAtlasIMG: itemsAtlasIMG,
29490
+ iconAtlasJSON: iconAtlasJSON,
29491
+ iconAtlasIMG: iconAtlasIMG
29492
+ }))));
29493
+ };
29494
+ var ProgressContainer = /*#__PURE__*/styled.div.withConfig({
29495
+ displayName: "TaskProgress__ProgressContainer",
29496
+ componentId: "sc-1ejoyu-0"
29497
+ })(["width:100%;position:relative;"]);
29498
+ var ProgressList$1 = /*#__PURE__*/styled.div.withConfig({
29499
+ displayName: "TaskProgress__ProgressList",
29500
+ componentId: "sc-1ejoyu-1"
29501
+ })(["display:flex;flex-direction:column;gap:6px;"]);
29502
+ var ProgressItem$1 = /*#__PURE__*/styled.div.withConfig({
29503
+ displayName: "TaskProgress__ProgressItem",
29504
+ componentId: "sc-1ejoyu-2"
29505
+ })(["display:flex;justify-content:space-between;align-items:center;"]);
29506
+ var ProgressLabel = /*#__PURE__*/styled.span.withConfig({
29507
+ displayName: "TaskProgress__ProgressLabel",
29508
+ componentId: "sc-1ejoyu-3"
29509
+ })(["color:", " !important;"], uiColors.white);
29510
+ var TaskDifficulty = /*#__PURE__*/styled.span.withConfig({
29511
+ displayName: "TaskProgress__TaskDifficulty",
29512
+ componentId: "sc-1ejoyu-4"
29513
+ })(["color:", " !important;"], function (props) {
29514
+ return props.difficulty.toLowerCase() === 'challenge' ? uiColors.red : uiColors.lightGray;
29515
+ });
29516
+ var StatusText = /*#__PURE__*/styled.span.withConfig({
29517
+ displayName: "TaskProgress__StatusText",
29518
+ componentId: "sc-1ejoyu-5"
29519
+ })(["color:", " !important;font-weight:bold;"], function (props) {
29520
+ return props.color;
29521
+ });
29522
+
29523
+ var DailyTaskItem = function DailyTaskItem(_ref) {
29524
+ var _task$name;
29525
+ var task = _ref.task,
29526
+ spriteKey = _ref.spriteKey,
29527
+ onClaimReward = _ref.onClaimReward,
29528
+ itemsAtlasJSON = _ref.itemsAtlasJSON,
29529
+ itemsAtlasIMG = _ref.itemsAtlasIMG,
29530
+ iconAtlasJSON = _ref.iconAtlasJSON,
29531
+ iconAtlasIMG = _ref.iconAtlasIMG;
29532
+ var isMobile = isMobileOrTablet();
29533
+ var isCompleted = task.status === TaskStatus.Completed;
29534
+ var isClaimed = task.claimed;
29535
+ var handleClaimReward = function handleClaimReward() {
29536
+ onClaimReward(task.key, task.type);
29537
+ };
29538
+ return React.createElement(TaskContainer, null, React.createElement(TaskHeader, null, iconAtlasJSON && iconAtlasIMG && React.createElement(NonInteractiveWrapper, null, React.createElement(SpriteFromAtlas, {
29539
+ atlasJSON: iconAtlasJSON,
29540
+ atlasIMG: iconAtlasIMG,
29541
+ spriteKey: spriteKey,
29542
+ width: 12,
29543
+ height: 12,
29544
+ imgScale: 2.75
29545
+ })), React.createElement(TaskContent, null, React.createElement(TaskTitle, null, React.createElement(Ellipsis, {
29546
+ maxWidth: "100%",
29547
+ maxLines: isMobile ? 3 : 2
29548
+ }, (_task$name = task.name) != null ? _task$name : formatTaskKey(task.key))), React.createElement(TaskDescription, null, React.createElement(Ellipsis, {
29549
+ maxWidth: "100%",
29550
+ maxLines: isMobile ? 5 : 3
29551
+ }, task.description)))), React.createElement(TaskProgress, {
29552
+ task: task,
29553
+ itemsAtlasJSON: itemsAtlasJSON,
29554
+ itemsAtlasIMG: itemsAtlasIMG
29555
+ }), isCompleted && !isClaimed && React.createElement(CollectWrapper, null, React.createElement(Button, {
29556
+ buttonType: ButtonTypes.RPGUIButton,
29557
+ onPointerDown: handleClaimReward
29558
+ }, "Collect Reward")), isClaimed && React.createElement(ClaimedText, null, "Reward Claimed"));
29559
+ };
29560
+ var TaskContainer = /*#__PURE__*/styled.div.withConfig({
29561
+ displayName: "DailyTaskItem__TaskContainer",
29562
+ componentId: "sc-45bxmt-0"
29563
+ })(["background:rgba(0,0,0,0.5) !important;border:2px solid ", " !important;border-radius:8px;padding:12px;display:flex;flex-direction:column;gap:8px;box-shadow:0 2px 4px rgba(0,0,0,0.3);"], uiColors.darkGray);
29564
+ var TaskHeader = /*#__PURE__*/styled.div.withConfig({
29565
+ displayName: "DailyTaskItem__TaskHeader",
29566
+ componentId: "sc-45bxmt-1"
29567
+ })(["display:flex;width:100%;justify-content:center;border-bottom:1.3px solid ", ";"], uiColors.darkGray);
29568
+ var NonInteractiveWrapper = /*#__PURE__*/styled.div.withConfig({
29569
+ displayName: "DailyTaskItem__NonInteractiveWrapper",
29570
+ componentId: "sc-45bxmt-2"
29571
+ })(["pointer-events:none;user-select:none;margin-top:5px;"]);
29572
+ var TaskContent = /*#__PURE__*/styled.div.withConfig({
29573
+ displayName: "DailyTaskItem__TaskContent",
29574
+ componentId: "sc-45bxmt-3"
29575
+ })(["display:flex;flex-direction:column;flex:1;"]);
29576
+ var TaskTitle = /*#__PURE__*/styled.h3.withConfig({
29577
+ displayName: "DailyTaskItem__TaskTitle",
29578
+ componentId: "sc-45bxmt-4"
29579
+ })(["&&{color:", ";padding-left:10px;text-align:center;text-shadow:1px 1px 2px rgba(0,0,0,0.7);flex:1;display:block;span{color:inherit;}}"], uiColors.yellow);
29580
+ var TaskDescription = /*#__PURE__*/styled.h3.withConfig({
29581
+ displayName: "DailyTaskItem__TaskDescription",
29582
+ componentId: "sc-45bxmt-5"
29583
+ })(["font-size:0.6rem !important;text-decoration:none !important;a"]);
29584
+ var ClaimedText = /*#__PURE__*/styled.span.withConfig({
29585
+ displayName: "DailyTaskItem__ClaimedText",
29586
+ componentId: "sc-45bxmt-6"
29587
+ })(["color:", ";font-size:0.9rem;text-align:center;font-weight:bold;"], uiColors.green);
29588
+ var CollectWrapper = /*#__PURE__*/styled.div.withConfig({
29589
+ displayName: "DailyTaskItem__CollectWrapper",
29590
+ componentId: "sc-45bxmt-7"
29591
+ })(["&&{width:100% !important;display:flex !important;justify-content:center !important;align-items:center !important;margin:5px 0 !important;}"]);
29592
+
29593
+ var GlobalDailyProgress = function GlobalDailyProgress(_ref) {
29594
+ var tasks = _ref.tasks,
29595
+ onClaimAllRewards = _ref.onClaimAllRewards;
29596
+ var totalTasks = tasks.length;
29597
+ var completedTasks = tasks.filter(function (task) {
29598
+ return task.status === TaskStatus.Completed;
29599
+ }).length;
29600
+ var claimedTasks = tasks.filter(function (task) {
29601
+ return task.claimed === true;
29602
+ }).length;
29603
+ var allCompleted = completedTasks === totalTasks;
29604
+ var allClaimed = claimedTasks === totalTasks;
29605
+ var _React$useState = React.useState(false),
29606
+ isClaimed = _React$useState[0],
29607
+ setIsClaimed = _React$useState[1];
29608
+ var handleClaimAll = function handleClaimAll(tasks) {
29609
+ onClaimAllRewards(tasks);
29610
+ setIsClaimed(true);
29611
+ };
29612
+ 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
+ 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, {
29615
+ buttonType: ButtonTypes.RPGUIButton,
29616
+ onPointerDown: handleClaimAll
29617
+ }, "Collect Global Rewards"))));
29618
+ };
29619
+ var GlobalProgressContainer = /*#__PURE__*/styled.div.withConfig({
29620
+ displayName: "GlobalDailyProgress__GlobalProgressContainer",
29621
+ componentId: "sc-d7q4xm-0"
29622
+ })(["background:rgba(0,0,0,0.5) !important;border:2px solid ", " !important;border-radius:8px;padding:12px;display:flex;flex-direction:column;gap:12px;box-shadow:0 2px 4px rgba(0,0,0,0.3);"], uiColors.darkGray);
29623
+ var HeaderContainer$1 = /*#__PURE__*/styled.div.withConfig({
29624
+ displayName: "GlobalDailyProgress__HeaderContainer",
29625
+ componentId: "sc-d7q4xm-1"
29626
+ })(["display:flex;align-items:center;gap:8px;margin-bottom:8px;"]);
29627
+ var GlobeIcon = /*#__PURE__*/styled.span.withConfig({
29628
+ displayName: "GlobalDailyProgress__GlobeIcon",
29629
+ componentId: "sc-d7q4xm-2"
29630
+ })(["font-size:1.5rem !important;line-height:1;color:", ";display:flex;align-items:center;justify-content:center;"], uiColors.blue);
29631
+ var ProgressText = /*#__PURE__*/styled.div.withConfig({
29632
+ displayName: "GlobalDailyProgress__ProgressText",
29633
+ componentId: "sc-d7q4xm-3"
29634
+ })(["color:", ";text-align:center !important;margin-top:8px;line-height:1.2;"], uiColors.white);
29635
+ var ProgressBar = /*#__PURE__*/styled.div.withConfig({
29636
+ displayName: "GlobalDailyProgress__ProgressBar",
29637
+ componentId: "sc-d7q4xm-4"
29638
+ })(["width:100%;height:8px;background:", ";border-radius:4px;overflow:hidden;"], uiColors.darkGray);
29639
+ var ProgressFill = /*#__PURE__*/styled.div.withConfig({
29640
+ displayName: "GlobalDailyProgress__ProgressFill",
29641
+ componentId: "sc-d7q4xm-5"
29642
+ })(["width:", "%;height:100%;background:", ";transition:width 0.3s ease;"], function (props) {
29643
+ return props.percentage;
29644
+ }, uiColors.green);
29645
+ var ClaimedText$1 = /*#__PURE__*/styled.span.withConfig({
29646
+ displayName: "GlobalDailyProgress__ClaimedText",
29647
+ componentId: "sc-d7q4xm-6"
29648
+ })(["color:", ";font-size:0.9rem;text-align:center;margin-top:8px;font-weight:bold;"], uiColors.green);
29649
+ var CollectWrapper$1 = /*#__PURE__*/styled.div.withConfig({
29650
+ displayName: "GlobalDailyProgress__CollectWrapper",
29651
+ componentId: "sc-d7q4xm-7"
29652
+ })(["&&{width:100% !important;display:flex !important;justify-content:center !important;align-items:center !important;margin:5px 0 !important;}"]);
29653
+
29654
+ var DailyTasks = function DailyTasks(_ref) {
29655
+ var tasks = _ref.tasks,
29656
+ onClaimReward = _ref.onClaimReward,
29657
+ onClaimGlobalReward = _ref.onClaimGlobalReward,
29658
+ onClose = _ref.onClose,
29659
+ _ref$scale = _ref.scale,
29660
+ scale = _ref$scale === void 0 ? 1 : _ref$scale,
29661
+ itemsAtlasJSON = _ref.itemsAtlasJSON,
29662
+ itemsAtlasIMG = _ref.itemsAtlasIMG,
29663
+ iconAtlasJSON = _ref.iconAtlasJSON,
29664
+ iconAtlasIMG = _ref.iconAtlasIMG;
29665
+ var _React$useState = React.useState(tasks),
29666
+ localTasks = _React$useState[0],
29667
+ setLocalTasks = _React$useState[1];
29668
+ var size = useResponsiveSize(scale);
29669
+ 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
+ onClaimReward({
29678
+ type: type,
29679
+ taskKey: taskKey
29680
+ });
29681
+ };
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
+ });
29694
+ };
29695
+ if (!size) return null;
29696
+ return React.createElement(TasksContainer, {
29697
+ type: RPGUIContainerTypes.Framed,
29698
+ onCloseButton: onClose,
29699
+ cancelDrag: ".tasks-container",
29700
+ scale: scale,
29701
+ width: size.width,
29702
+ height: size.height
29703
+ }, React.createElement(TaskTitle$1, null, "Daily Tasks"), React.createElement(Container$f, null, React.createElement(TasksList, {
29704
+ className: "tasks-container"
29705
+ }, React.createElement(GlobalDailyProgress, {
29706
+ tasks: localTasks,
29707
+ onClaimAllRewards: handleClaimAllRewards
29708
+ }), localTasks.map(function (task) {
29709
+ return React.createElement(DailyTaskItem, {
29710
+ key: task.key,
29711
+ task: task,
29712
+ spriteKey: getTaskIcon(task.type, task.difficulty),
29713
+ onClaimReward: handleClaimReward,
29714
+ itemsAtlasJSON: itemsAtlasJSON,
29715
+ itemsAtlasIMG: itemsAtlasIMG,
29716
+ iconAtlasJSON: iconAtlasJSON,
29717
+ iconAtlasIMG: iconAtlasIMG
29718
+ });
29719
+ }))));
29720
+ };
29721
+ var TasksContainer = /*#__PURE__*/styled(DraggableContainer).withConfig({
29722
+ displayName: "DailyTasks__TasksContainer",
29723
+ componentId: "sc-ittn77-0"
29724
+ })(["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({
29726
+ displayName: "DailyTasks__Container",
29727
+ componentId: "sc-ittn77-1"
29728
+ })(["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;}"]);
29729
+ var TasksList = /*#__PURE__*/styled.div.withConfig({
29730
+ displayName: "DailyTasks__TasksList",
29731
+ componentId: "sc-ittn77-2"
29732
+ })(["display:flex;flex-direction:column;gap:12px;padding:15px;max-height:70vh;"]);
29733
+ var TaskTitle$1 = /*#__PURE__*/styled.h2.withConfig({
29734
+ displayName: "DailyTasks__TaskTitle",
29735
+ componentId: "sc-ittn77-3"
29736
+ })(["color:", " !important;text-align:center;padding-right:30px !important;font-size:1.4rem !important;width:100%;"], uiColors.yellow);
29737
+
29212
29738
  // Memoize the styled components since they don't depend on props that change frequently
29213
29739
  var DPadButton = /*#__PURE__*/memo( /*#__PURE__*/styled.div.withConfig({
29214
29740
  displayName: "JoystickDPad__DPadButton",
@@ -29568,7 +30094,7 @@ var DraggedItem = function DraggedItem(_ref) {
29568
30094
  var centeredX = x - OFFSET$1;
29569
30095
  var centeredY = y - OFFSET$1;
29570
30096
  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);
29571
- return React.createElement(Container$e, null, React.createElement(SpriteContainer, {
30097
+ return React.createElement(Container$g, null, React.createElement(SpriteContainer, {
29572
30098
  x: centeredX,
29573
30099
  y: centeredY
29574
30100
  }, React.createElement(SpriteFromAtlas, {
@@ -29586,7 +30112,7 @@ var DraggedItem = function DraggedItem(_ref) {
29586
30112
  }), stackInfo));
29587
30113
  };
29588
30114
  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";
29589
- var Container$e = /*#__PURE__*/styled.div.withConfig({
30115
+ var Container$g = /*#__PURE__*/styled.div.withConfig({
29590
30116
  displayName: "DraggedItem__Container",
29591
30117
  componentId: "sc-mlzzcp-0"
29592
30118
  })(["position:relative;"]);
@@ -29624,7 +30150,7 @@ var RelativeListMenu = function RelativeListMenu(_ref) {
29624
30150
  document.removeEventListener('clickOutside', function (_e) {});
29625
30151
  };
29626
30152
  }, []);
29627
- return React.createElement(ModalPortal, null, React.createElement(Container$f, Object.assign({
30153
+ return React.createElement(ModalPortal, null, React.createElement(Container$h, Object.assign({
29628
30154
  fontSize: fontSize,
29629
30155
  ref: ref
29630
30156
  }, pos), React.createElement("ul", {
@@ -29641,7 +30167,7 @@ var RelativeListMenu = function RelativeListMenu(_ref) {
29641
30167
  }, (params == null ? void 0 : params.text) || 'No text');
29642
30168
  }))));
29643
30169
  };
29644
- var Container$f = /*#__PURE__*/styled.div.withConfig({
30170
+ var Container$h = /*#__PURE__*/styled.div.withConfig({
29645
30171
  displayName: "RelativeListMenu__Container",
29646
30172
  componentId: "sc-7hohf-0"
29647
30173
  })(["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) {
@@ -29915,7 +30441,7 @@ var SearchFriend = function SearchFriend(_ref) {
29915
30441
  title: "Requests (" + friendRequests.length + ")",
29916
30442
  content: requestsTabContent
29917
30443
  }];
29918
- return React.createElement(Container$g, null, React.createElement(InternalTabs, {
30444
+ return React.createElement(Container$i, null, React.createElement(InternalTabs, {
29919
30445
  tabs: tabs,
29920
30446
  activeTextColor: "#000",
29921
30447
  inactiveColor: "#777",
@@ -29957,7 +30483,7 @@ var FriendRequestSection = function FriendRequestSection(_ref3) {
29957
30483
  }, "Reject")));
29958
30484
  })));
29959
30485
  };
29960
- var Container$g = /*#__PURE__*/styled.div.withConfig({
30486
+ var Container$i = /*#__PURE__*/styled.div.withConfig({
29961
30487
  displayName: "SearchFriend__Container",
29962
30488
  componentId: "sc-1lt1ols-0"
29963
30489
  })(["display:flex;flex-direction:column;gap:1rem;"]);
@@ -30160,7 +30686,7 @@ var NPCDialogText = function NPCDialogText(_ref) {
30160
30686
  var _useState2 = useState(false),
30161
30687
  showGoNextIndicator = _useState2[0],
30162
30688
  setShowGoNextIndicator = _useState2[1];
30163
- return React.createElement(Container$h, null, React.createElement(DynamicText, {
30689
+ return React.createElement(Container$j, null, React.createElement(DynamicText, {
30164
30690
  text: (textChunks == null ? void 0 : textChunks[chunkIndex]) || '',
30165
30691
  onFinish: function onFinish() {
30166
30692
  setShowGoNextIndicator(true);
@@ -30178,7 +30704,7 @@ var NPCDialogText = function NPCDialogText(_ref) {
30178
30704
  }
30179
30705
  }));
30180
30706
  };
30181
- var Container$h = /*#__PURE__*/styled.div.withConfig({
30707
+ var Container$j = /*#__PURE__*/styled.div.withConfig({
30182
30708
  displayName: "NPCDialogText__Container",
30183
30709
  componentId: "sc-1cxkdh9-0"
30184
30710
  })([""]);
@@ -30330,7 +30856,7 @@ var QuestionDialog = function QuestionDialog(_ref) {
30330
30856
  return null;
30331
30857
  });
30332
30858
  };
30333
- return React.createElement(Container$i, null, React.createElement(QuestionContainer, null, React.createElement(DynamicText, {
30859
+ return React.createElement(Container$k, null, React.createElement(QuestionContainer, null, React.createElement(DynamicText, {
30334
30860
  text: currentQuestion.text,
30335
30861
  onStart: function onStart() {
30336
30862
  return setCanShowAnswers(false);
@@ -30340,7 +30866,7 @@ var QuestionDialog = function QuestionDialog(_ref) {
30340
30866
  }
30341
30867
  })), canShowAnswers && React.createElement(AnswersContainer, null, onRenderCurrentAnswers()));
30342
30868
  };
30343
- var Container$i = /*#__PURE__*/styled.div.withConfig({
30869
+ var Container$k = /*#__PURE__*/styled.div.withConfig({
30344
30870
  displayName: "QuestionDialog__Container",
30345
30871
  componentId: "sc-bxc5u0-0"
30346
30872
  })(["display:flex;word-break:break-all;box-sizing:border-box;justify-content:flex-start;align-items:flex-start;flex-wrap:wrap;"]);
@@ -30401,7 +30927,7 @@ var NPCDialog = function NPCDialog(_ref) {
30401
30927
  }
30402
30928
  })), type === NPCDialogType.TextAndThumbnail && React.createElement(ThumbnailContainer, null, React.createElement(NPCThumbnail, {
30403
30929
  src: imagePath || img$7
30404
- }))) : React.createElement(React.Fragment, null, React.createElement(Container$j, null, React.createElement(CloseIcon, {
30930
+ }))) : React.createElement(React.Fragment, null, React.createElement(Container$l, null, React.createElement(CloseIcon, {
30405
30931
  onPointerDown: _onClose
30406
30932
  }, "X"), React.createElement(TextContainer$1, {
30407
30933
  flex: type === NPCDialogType.TextAndThumbnail ? '70%' : '100%'
@@ -30417,7 +30943,7 @@ var NPCDialog = function NPCDialog(_ref) {
30417
30943
  src: imagePath || img$7
30418
30944
  })))));
30419
30945
  };
30420
- var Container$j = /*#__PURE__*/styled.div.withConfig({
30946
+ var Container$l = /*#__PURE__*/styled.div.withConfig({
30421
30947
  displayName: "NPCDialog__Container",
30422
30948
  componentId: "sc-1b4aw74-0"
30423
30949
  })(["display:flex;width:100%;height:100%;box-sizing:border-box;justify-content:center;align-items:flex-start;position:relative;"]);
@@ -30478,7 +31004,7 @@ var NPCMultiDialog = function NPCMultiDialog(_ref) {
30478
31004
  type: RPGUIContainerTypes.FramedGold,
30479
31005
  width: '50%',
30480
31006
  height: '180px'
30481
- }, React.createElement(React.Fragment, null, React.createElement(Container$k, null, ((_textAndTypeArray$sli = textAndTypeArray[slide]) == null ? void 0 : _textAndTypeArray$sli.imageSide) === 'right' && React.createElement(React.Fragment, null, React.createElement(TextContainer$2, {
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, {
30482
31008
  flex: '70%'
30483
31009
  }, React.createElement(NPCDialogText, {
30484
31010
  onStartStep: function onStartStep() {
@@ -30520,7 +31046,7 @@ var NPCMultiDialog = function NPCMultiDialog(_ref) {
30520
31046
  src: img$6
30521
31047
  }))), ")"));
30522
31048
  };
30523
- var Container$k = /*#__PURE__*/styled.div.withConfig({
31049
+ var Container$m = /*#__PURE__*/styled.div.withConfig({
30524
31050
  displayName: "NPCMultiDialog__Container",
30525
31051
  componentId: "sc-rvu5wg-0"
30526
31052
  })(["display:flex;width:100%;height:100%;box-sizing:border-box;justify-content:center;align-items:flex-start;position:relative;"]);
@@ -30952,7 +31478,7 @@ var Pagination = function Pagination(_ref) {
30952
31478
  totalPages = _ref.totalPages,
30953
31479
  onPageChange = _ref.onPageChange,
30954
31480
  className = _ref.className;
30955
- return React.createElement(Container$l, {
31481
+ return React.createElement(Container$n, {
30956
31482
  className: className
30957
31483
  }, React.createElement(PaginationButton$1, {
30958
31484
  onClick: function onClick() {
@@ -30970,7 +31496,7 @@ var Pagination = function Pagination(_ref) {
30970
31496
  size: 12
30971
31497
  })));
30972
31498
  };
30973
- var Container$l = /*#__PURE__*/styled.div.withConfig({
31499
+ var Container$n = /*#__PURE__*/styled.div.withConfig({
30974
31500
  displayName: "Pagination__Container",
30975
31501
  componentId: "sc-3k4m4u-0"
30976
31502
  })(["display:flex;align-items:center;justify-content:center;gap:16px;padding:8px;"]);
@@ -30996,7 +31522,7 @@ var SearchBar = function SearchBar(_ref) {
30996
31522
  className = _ref.className,
30997
31523
  rightElement = _ref.rightElement;
30998
31524
  var hasRightElement = Boolean(rightElement);
30999
- return React.createElement(Container$m, {
31525
+ return React.createElement(Container$o, {
31000
31526
  className: className
31001
31527
  }, React.createElement(Input$1, {
31002
31528
  type: "text",
@@ -31009,7 +31535,7 @@ var SearchBar = function SearchBar(_ref) {
31009
31535
  "$hasRightElement": hasRightElement
31010
31536
  }), React.createElement(IconContainer, null, React.createElement(SearchIcon, null), rightElement));
31011
31537
  };
31012
- var Container$m = /*#__PURE__*/styled.div.withConfig({
31538
+ var Container$o = /*#__PURE__*/styled.div.withConfig({
31013
31539
  displayName: "SearchBar__Container",
31014
31540
  componentId: "sc-13n8z02-0"
31015
31541
  })(["position:relative;width:100%;"]);
@@ -31035,7 +31561,7 @@ var SearchHeader = function SearchHeader(_ref) {
31035
31561
  if (!searchOptions && !filterOptions) return null;
31036
31562
  var isMobile = isMobileOrTablet();
31037
31563
  var isSmallScreen = isMobile && window.innerWidth < 480;
31038
- return React.createElement(HeaderContainer$1, {
31564
+ return React.createElement(HeaderContainer$2, {
31039
31565
  className: className
31040
31566
  }, React.createElement(HeaderContent, {
31041
31567
  "$isSmallScreen": isSmallScreen
@@ -31052,7 +31578,7 @@ var SearchHeader = function SearchHeader(_ref) {
31052
31578
  width: isSmallScreen ? '100%' : '200px'
31053
31579
  }))));
31054
31580
  };
31055
- var HeaderContainer$1 = /*#__PURE__*/styled.div.withConfig({
31581
+ var HeaderContainer$2 = /*#__PURE__*/styled.div.withConfig({
31056
31582
  displayName: "SearchHeader__HeaderContainer",
31057
31583
  componentId: "sc-1xd17jb-0"
31058
31584
  })([""]);
@@ -31117,7 +31643,7 @@ var PaginatedContent = function PaginatedContent(_ref) {
31117
31643
  setCurrentPage = _usePagination.setCurrentPage,
31118
31644
  paginatedItems = _usePagination.paginatedItems,
31119
31645
  totalPages = _usePagination.totalPages;
31120
- return React.createElement(Container$n, {
31646
+ return React.createElement(Container$p, {
31121
31647
  className: className
31122
31648
  }, (searchOptions || filterOptions) && React.createElement(SearchHeader, {
31123
31649
  searchOptions: searchOptions,
@@ -31139,7 +31665,7 @@ var PaginatedContent = function PaginatedContent(_ref) {
31139
31665
  onPageChange: setCurrentPage
31140
31666
  }))));
31141
31667
  };
31142
- var Container$n = /*#__PURE__*/styled.div.withConfig({
31668
+ var Container$p = /*#__PURE__*/styled.div.withConfig({
31143
31669
  displayName: "PaginatedContent__Container",
31144
31670
  componentId: "sc-lzp9hn-0"
31145
31671
  })(["display:flex;flex-direction:column;gap:0.5rem;min-height:400px;width:100%;"]);
@@ -31261,7 +31787,7 @@ var BaseInformationDetails = function BaseInformationDetails(_ref) {
31261
31787
  atlasIMG = _ref.atlasIMG,
31262
31788
  onBack = _ref.onBack,
31263
31789
  children = _ref.children;
31264
- return React.createElement(Container$o, null, React.createElement(Overlay, {
31790
+ return React.createElement(Container$q, null, React.createElement(Overlay, {
31265
31791
  onClick: onBack
31266
31792
  }), React.createElement(Modal, null, React.createElement(CloseButton$5, {
31267
31793
  onClick: onBack
@@ -31274,7 +31800,7 @@ var BaseInformationDetails = function BaseInformationDetails(_ref) {
31274
31800
  imgScale: 1
31275
31801
  })), React.createElement(Title$3, null, name)), React.createElement(Content$1, null, children)));
31276
31802
  };
31277
- var Container$o = /*#__PURE__*/styled.div.withConfig({
31803
+ var Container$q = /*#__PURE__*/styled.div.withConfig({
31278
31804
  displayName: "BaseInformationDetails__Container",
31279
31805
  componentId: "sc-1vguuz8-0"
31280
31806
  })(["position:fixed;inset:0;display:flex;justify-content:center;align-items:center;z-index:9999;"]);
@@ -31316,7 +31842,7 @@ var Collapsible = function Collapsible(_ref) {
31316
31842
  var _useState = useState(defaultOpen),
31317
31843
  isOpen = _useState[0],
31318
31844
  setIsOpen = _useState[1];
31319
- return React.createElement(Container$p, {
31845
+ return React.createElement(Container$r, {
31320
31846
  className: className
31321
31847
  }, React.createElement(Header$2, {
31322
31848
  onClick: function onClick() {
@@ -31324,7 +31850,7 @@ var Collapsible = function Collapsible(_ref) {
31324
31850
  }
31325
31851
  }, 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));
31326
31852
  };
31327
- var Container$p = /*#__PURE__*/styled.div.withConfig({
31853
+ var Container$r = /*#__PURE__*/styled.div.withConfig({
31328
31854
  displayName: "Collapsible__Container",
31329
31855
  componentId: "sc-s4h8ey-0"
31330
31856
  })(["background:rgba(0,0,0,0.3);border-radius:4px;overflow:hidden;border:1px solid ", ";"], uiColors.darkGray);
@@ -31355,14 +31881,14 @@ var InformationCenterItemDetails = function InformationCenterItemDetails(_ref) {
31355
31881
  var renderAllowedSlots = function renderAllowedSlots() {
31356
31882
  var _item$allowedEquipSlo;
31357
31883
  if (!((_item$allowedEquipSlo = item.allowedEquipSlotType) != null && _item$allowedEquipSlo.length)) return null;
31358
- return React.createElement(InfoItem, null, React.createElement(Label, null, "Equip Slots:"), React.createElement(Value, null, item.allowedEquipSlotType.join(', ')));
31884
+ return React.createElement(InfoItem, null, React.createElement(Label$1, null, "Equip Slots:"), React.createElement(Value, null, item.allowedEquipSlotType.join(', ')));
31359
31885
  };
31360
31886
  var renderRequirements = function renderRequirements() {
31361
31887
  if (!item.minRequirements) return null;
31362
31888
  return React.createElement(StyledCollapsible, {
31363
31889
  title: "Requirements",
31364
31890
  defaultOpen: !isMobile
31365
- }, React.createElement(RequirementsGrid, null, item.minRequirements.level && React.createElement(RequirementItem, null, React.createElement(Label, null, "Level:"), React.createElement(Value, null, item.minRequirements.level)), item.minRequirements.skill && React.createElement(RequirementItem, null, React.createElement(Label, null, item.minRequirements.skill.name, ":"), React.createElement(Value, null, item.minRequirements.skill.level))));
31891
+ }, React.createElement(RequirementsGrid, null, item.minRequirements.level && React.createElement(RequirementItem, null, React.createElement(Label$1, null, "Level:"), React.createElement(Value, null, item.minRequirements.level)), item.minRequirements.skill && React.createElement(RequirementItem, null, React.createElement(Label$1, null, item.minRequirements.skill.name, ":"), React.createElement(Value, null, item.minRequirements.skill.level))));
31366
31892
  };
31367
31893
  return React.createElement(BaseInformationDetails, {
31368
31894
  name: item.name,
@@ -31370,7 +31896,7 @@ var InformationCenterItemDetails = function InformationCenterItemDetails(_ref) {
31370
31896
  atlasJSON: itemsAtlasJSON,
31371
31897
  atlasIMG: itemsAtlasIMG,
31372
31898
  onBack: onBack
31373
- }, React.createElement(InfoSection, null, React.createElement(InfoItem, null, React.createElement(Label, null, "Type:"), React.createElement(Value, null, item.type)), React.createElement(InfoItem, null, React.createElement(Label, null, "Subtype:"), React.createElement(Value, null, item.subType)), React.createElement(InfoItem, null, React.createElement(Label, null, "Tier:"), React.createElement(Value, null, item.tier)), React.createElement(InfoItem, null, React.createElement(Label, null, "Rarity:"), React.createElement(Value, null, item.rarity)), renderAllowedSlots()), React.createElement(StyledCollapsible, {
31899
+ }, React.createElement(InfoSection, null, React.createElement(InfoItem, null, React.createElement(Label$1, null, "Type:"), React.createElement(Value, null, item.type)), React.createElement(InfoItem, null, React.createElement(Label$1, null, "Subtype:"), React.createElement(Value, null, item.subType)), React.createElement(InfoItem, null, React.createElement(Label$1, null, "Tier:"), React.createElement(Value, null, item.tier)), React.createElement(InfoItem, null, React.createElement(Label$1, null, "Rarity:"), React.createElement(Value, null, item.rarity)), renderAllowedSlots()), React.createElement(StyledCollapsible, {
31374
31900
  title: "Description",
31375
31901
  defaultOpen: !isMobile
31376
31902
  }, React.createElement(Description$2, null, item.description || 'No description available.')), React.createElement(StyledCollapsible, {
@@ -31412,7 +31938,7 @@ var InfoItem = /*#__PURE__*/styled.div.withConfig({
31412
31938
  displayName: "InformationCenterItemDetails__InfoItem",
31413
31939
  componentId: "sc-zwf6pb-1"
31414
31940
  })(["display:flex;align-items:center;gap:8px;"]);
31415
- var Label = /*#__PURE__*/styled.span.withConfig({
31941
+ var Label$1 = /*#__PURE__*/styled.span.withConfig({
31416
31942
  displayName: "InformationCenterItemDetails__Label",
31417
31943
  componentId: "sc-zwf6pb-2"
31418
31944
  })(["color:", ";font-size:0.5rem;opacity:0.8;"], uiColors.yellow);
@@ -31497,7 +32023,7 @@ var EffectDescription = /*#__PURE__*/styled.p.withConfig({
31497
32023
  componentId: "sc-zwf6pb-22"
31498
32024
  })(["color:", ";font-size:0.45rem;margin:8px 0 0;padding:0 12px;font-style:italic;"], uiColors.lightGray);
31499
32025
 
31500
- var TooltipContainer$1 = /*#__PURE__*/styled.div.withConfig({
32026
+ var TooltipContainer$2 = /*#__PURE__*/styled.div.withConfig({
31501
32027
  displayName: "BaseTooltip__TooltipContainer",
31502
32028
  componentId: "sc-1auz5ec-0"
31503
32029
  })(["background-color:rgba(0,0,0,0.95);border-radius:4px;padding:8px;font-family:'Press Start 2P',cursive;font-size:0.6rem;width:", ";border:1px solid ", ";box-shadow:0 2px 4px rgba(0,0,0,0.2);"], function (props) {
@@ -31526,7 +32052,7 @@ var StatItem$1 = /*#__PURE__*/styled.div.withConfig({
31526
32052
  var BaseTooltip = function BaseTooltip(_ref) {
31527
32053
  var children = _ref.children,
31528
32054
  width = _ref.width;
31529
- return React.createElement(TooltipContainer$1, {
32055
+ return React.createElement(TooltipContainer$2, {
31530
32056
  width: width
31531
32057
  }, children);
31532
32058
  };
@@ -31574,7 +32100,7 @@ var AdvancedFilters = function AdvancedFilters(_ref) {
31574
32100
  var rangeValue = section.value;
31575
32101
  return React.createElement(FilterSection, {
31576
32102
  key: section.key
31577
- }, React.createElement(Label$1, null, section.label), React.createElement(RangeInputs, null, React.createElement(Input, {
32103
+ }, React.createElement(Label$2, null, section.label), React.createElement(RangeInputs, null, React.createElement(Input, {
31578
32104
  type: "number",
31579
32105
  min: 0,
31580
32106
  placeholder: "Min",
@@ -31594,7 +32120,7 @@ var AdvancedFilters = function AdvancedFilters(_ref) {
31594
32120
  case 'dropdown':
31595
32121
  return React.createElement(FilterSection, {
31596
32122
  key: section.key
31597
- }, React.createElement(Label$1, null, section.label), React.createElement(StyledDropdownWrapper, null, React.createElement(Dropdown, {
32123
+ }, React.createElement(Label$2, null, section.label), React.createElement(StyledDropdownWrapper, null, React.createElement(Dropdown, {
31598
32124
  options: section.options || [],
31599
32125
  onChange: section.onChange,
31600
32126
  width: "100%"
@@ -31654,7 +32180,7 @@ var AdvancedFilters = function AdvancedFilters(_ref) {
31654
32180
  onClose();
31655
32181
  }
31656
32182
  };
31657
- return React.createElement(Container$q, null, React.createElement(FilterButton, {
32183
+ return React.createElement(Container$s, null, React.createElement(FilterButton, {
31658
32184
  onClick: onToggle,
31659
32185
  "$hasActiveFilters": hasActiveFilters,
31660
32186
  ref: buttonRef
@@ -31685,7 +32211,7 @@ var AdvancedFilters = function AdvancedFilters(_ref) {
31685
32211
  onClick: onClearAll
31686
32212
  }, "Clear All Filters"))));
31687
32213
  };
31688
- var Container$q = /*#__PURE__*/styled.div.withConfig({
32214
+ var Container$s = /*#__PURE__*/styled.div.withConfig({
31689
32215
  displayName: "AdvancedFilters__Container",
31690
32216
  componentId: "sc-1xj6ldr-0"
31691
32217
  })(["position:relative;margin-left:0.5rem;"]);
@@ -31739,7 +32265,7 @@ var FilterSection = /*#__PURE__*/styled.div.withConfig({
31739
32265
  displayName: "AdvancedFilters__FilterSection",
31740
32266
  componentId: "sc-1xj6ldr-7"
31741
32267
  })(["display:flex;flex-direction:column;gap:0.5rem;"]);
31742
- var Label$1 = /*#__PURE__*/styled.div.withConfig({
32268
+ var Label$2 = /*#__PURE__*/styled.div.withConfig({
31743
32269
  displayName: "AdvancedFilters__Label",
31744
32270
  componentId: "sc-1xj6ldr-8"
31745
32271
  })(["color:#999;font-size:0.65rem;text-transform:uppercase;letter-spacing:0.05em;"]);
@@ -32127,7 +32653,7 @@ var InformationCenterNPCDetails = function InformationCenterNPCDetails(_ref) {
32127
32653
  atlasJSON: entitiesAtlasJSON,
32128
32654
  atlasIMG: entitiesAtlasIMG,
32129
32655
  onBack: onBack
32130
- }, React.createElement(InfoSection$1, null, React.createElement(InfoItem$1, null, React.createElement(Label$2, null, "Type:"), React.createElement(Value$1, null, formatText(npc.subType))), React.createElement(InfoItem$1, null, React.createElement(Label$2, null, "Alignment:"), React.createElement(Value$1, null, formatText(npc.alignment))), React.createElement(InfoItem$1, null, React.createElement(Label$2, null, "Attack Type:"), React.createElement(Value$1, null, formatText(npc.attackType))), React.createElement(InfoItem$1, null, React.createElement(Label$2, null, "Range:"), React.createElement(Value$1, null, formatText(npc.maxRangeAttack))), React.createElement(InfoItem$1, null, React.createElement(Label$2, null, "Speed:"), React.createElement(Value$1, null, formatText(npc.speed)))), React.createElement(StyledCollapsible$1, {
32656
+ }, React.createElement(InfoSection$1, null, React.createElement(InfoItem$1, null, React.createElement(Label$3, null, "Type:"), React.createElement(Value$1, null, formatText(npc.subType))), React.createElement(InfoItem$1, null, React.createElement(Label$3, null, "Alignment:"), React.createElement(Value$1, null, formatText(npc.alignment))), React.createElement(InfoItem$1, null, React.createElement(Label$3, null, "Attack Type:"), React.createElement(Value$1, null, formatText(npc.attackType))), React.createElement(InfoItem$1, null, React.createElement(Label$3, null, "Range:"), React.createElement(Value$1, null, formatText(npc.maxRangeAttack))), React.createElement(InfoItem$1, null, React.createElement(Label$3, null, "Speed:"), React.createElement(Value$1, null, formatText(npc.speed)))), React.createElement(StyledCollapsible$1, {
32131
32657
  title: "Stats",
32132
32658
  defaultOpen: !isMobile
32133
32659
  }, React.createElement(StatGrid$1, null, React.createElement(StatItem$2, null, "HP: ", npc.baseHealth), React.createElement(StatItem$2, null, "Level: ", npc.skills.level), ((_npc$skills$strength = npc.skills.strength) == null ? void 0 : _npc$skills$strength.level) && React.createElement(StatItem$2, null, "Strength: ", npc.skills.strength.level), ((_npc$skills$dexterity = npc.skills.dexterity) == null ? void 0 : _npc$skills$dexterity.level) && React.createElement(StatItem$2, null, "Dexterity: ", npc.skills.dexterity.level), ((_npc$skills$resistanc = npc.skills.resistance) == null ? void 0 : _npc$skills$resistanc.level) && React.createElement(StatItem$2, null, "Resistance: ", npc.skills.resistance.level))), npc.loots && npc.loots.length > 0 && React.createElement(StyledCollapsible$1, {
@@ -32197,7 +32723,7 @@ var InfoItem$1 = /*#__PURE__*/styled.div.withConfig({
32197
32723
  displayName: "InformationCenterNPCDetails__InfoItem",
32198
32724
  componentId: "sc-fdu3xl-1"
32199
32725
  })(["display:flex;align-items:center;gap:8px;"]);
32200
- var Label$2 = /*#__PURE__*/styled.span.withConfig({
32726
+ var Label$3 = /*#__PURE__*/styled.span.withConfig({
32201
32727
  displayName: "InformationCenterNPCDetails__Label",
32202
32728
  componentId: "sc-fdu3xl-2"
32203
32729
  })(["color:", ";font-size:0.5rem;opacity:0.8;"], uiColors.yellow);
@@ -32779,7 +33305,7 @@ var InformationCenter = function InformationCenter(_ref) {
32779
33305
  minWidth: "300px",
32780
33306
  cancelDrag: ".PaginatedContent-content",
32781
33307
  onCloseButton: onClose
32782
- }, React.createElement(Container$r, null, React.createElement(InternalTabs, {
33308
+ }, React.createElement(Container$t, null, React.createElement(InternalTabs, {
32783
33309
  tabs: tabs,
32784
33310
  activeTextColor: "#000000",
32785
33311
  activeTab: activeTab,
@@ -32790,7 +33316,7 @@ var InformationCenter = function InformationCenter(_ref) {
32790
33316
  hoverColor: "#fef3c7"
32791
33317
  })));
32792
33318
  };
32793
- var Container$r = /*#__PURE__*/styled.div.withConfig({
33319
+ var Container$t = /*#__PURE__*/styled.div.withConfig({
32794
33320
  displayName: "InformationCenter__Container",
32795
33321
  componentId: "sc-1ttl62e-0"
32796
33322
  })(["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;}"]);
@@ -32961,7 +33487,7 @@ var ShortcutsSetter = function ShortcutsSetter(_ref) {
32961
33487
  }
32962
33488
  return null;
32963
33489
  };
32964
- return React.createElement(Container$s, null, React.createElement("p", null, "Shortcuts:"), React.createElement(List, {
33490
+ return React.createElement(Container$u, null, React.createElement("p", null, "Shortcuts:"), React.createElement(List, {
32965
33491
  id: "shortcuts_list"
32966
33492
  }, Array.from({
32967
33493
  length: 12
@@ -32979,7 +33505,7 @@ var ShortcutsSetter = function ShortcutsSetter(_ref) {
32979
33505
  }, getContent(i));
32980
33506
  })));
32981
33507
  };
32982
- var Container$s = /*#__PURE__*/styled.div.withConfig({
33508
+ var Container$u = /*#__PURE__*/styled.div.withConfig({
32983
33509
  displayName: "ShortcutsSetter__Container",
32984
33510
  componentId: "sc-xuouuf-0"
32985
33511
  })(["p{margin:0;margin-left:0.5rem;font-size:10px;}width:100%;"]);
@@ -33424,7 +33950,7 @@ var ConfirmModal = function ConfirmModal(_ref) {
33424
33950
  e.stopPropagation();
33425
33951
  onClose();
33426
33952
  };
33427
- return React.createElement(ModalPortal, null, React.createElement(Background, null), React.createElement(Container$t, {
33953
+ return React.createElement(ModalPortal, null, React.createElement(Background, null), React.createElement(Container$v, {
33428
33954
  onClick: handleClose
33429
33955
  }, React.createElement(DraggableContainer, {
33430
33956
  width: "auto",
@@ -33447,7 +33973,7 @@ var Background = /*#__PURE__*/styled.div.withConfig({
33447
33973
  displayName: "ConfirmModal__Background",
33448
33974
  componentId: "sc-11qkyu1-0"
33449
33975
  })(["position:absolute;width:100%;height:100%;background-color:#000000;opacity:0.5;left:0;top:0;z-index:1000;"]);
33450
- var Container$t = /*#__PURE__*/styled.div.withConfig({
33976
+ var Container$v = /*#__PURE__*/styled.div.withConfig({
33451
33977
  displayName: "ConfirmModal__Container",
33452
33978
  componentId: "sc-11qkyu1-1"
33453
33979
  })(["position:absolute;width:100%;height:100%;left:0;top:0;display:flex;justify-content:center;align-items:center;z-index:1001;"]);
@@ -33502,7 +34028,7 @@ var ColorSelector = function ColorSelector(_ref) {
33502
34028
  cancelDrag: ".react-colorful",
33503
34029
  width: "25rem",
33504
34030
  onCloseButton: onClose
33505
- }, React.createElement(Container$u, null, React.createElement(Header$3, null, "Select Color"), React.createElement(ColorPickerWrapper, null, React.createElement(HexColorPicker, {
34031
+ }, React.createElement(Container$w, null, React.createElement(Header$3, null, "Select Color"), React.createElement(ColorPickerWrapper, null, React.createElement(HexColorPicker, {
33506
34032
  color: currentColor,
33507
34033
  onChange: function onChange(color) {
33508
34034
  setCurrentColor(color);
@@ -33518,7 +34044,7 @@ var ColorSelector = function ColorSelector(_ref) {
33518
34044
  onClose: handleClose
33519
34045
  }));
33520
34046
  };
33521
- var Container$u = /*#__PURE__*/styled.div.withConfig({
34047
+ var Container$w = /*#__PURE__*/styled.div.withConfig({
33522
34048
  displayName: "ItemPropertyColorSelector__Container",
33523
34049
  componentId: "sc-me1r4z-0"
33524
34050
  })(["text-align:center;background:inherit;display:flex;flex-direction:column;gap:1.5rem;align-items:center;width:100%;max-width:24rem;margin:0 auto;"]);
@@ -33596,7 +34122,7 @@ var GemSelector = function GemSelector(_ref) {
33596
34122
  }, React.createElement(ContentWrapper$1, null, React.createElement(Header$4, null, React.createElement(Title$5, null, "GEM SELECTION"), React.createElement(Subtitle, null, "Select gems to detach")), React.createElement(GemGrid, null, (_item$attachedGems = item.attachedGems) == null ? void 0 : _item$attachedGems.map(function (gem, index) {
33597
34123
  return React.createElement(GemItem, {
33598
34124
  key: gem.key + "-" + index
33599
- }, React.createElement(CheckItemWrapper, null, React.createElement(CheckItem, {
34125
+ }, React.createElement(CheckItemWrapper$1, null, React.createElement(CheckItem, {
33600
34126
  defaultValue: selectedGems.some(function (selected) {
33601
34127
  return selected.key === gem.key;
33602
34128
  }),
@@ -33656,7 +34182,7 @@ var ButtonWrapper = /*#__PURE__*/styled.div.withConfig({
33656
34182
  displayName: "GemSelector__ButtonWrapper",
33657
34183
  componentId: "sc-gbt8g4-7"
33658
34184
  })(["display:flex;justify-content:center;align-self:center;"]);
33659
- var CheckItemWrapper = /*#__PURE__*/styled.div.withConfig({
34185
+ var CheckItemWrapper$1 = /*#__PURE__*/styled.div.withConfig({
33660
34186
  displayName: "GemSelector__CheckItemWrapper",
33661
34187
  componentId: "sc-gbt8g4-8"
33662
34188
  })(["display:flex;justify-content:center;width:100%;height:20px;input.rpgui-checkbox + label{margin:0 !important;padding-left:23px !important;}"]);
@@ -33874,7 +34400,7 @@ var ListMenu = function ListMenu(_ref) {
33874
34400
  onSelected = _ref.onSelected,
33875
34401
  x = _ref.x,
33876
34402
  y = _ref.y;
33877
- return React.createElement(Container$v, {
34403
+ return React.createElement(Container$x, {
33878
34404
  x: x,
33879
34405
  y: y
33880
34406
  }, React.createElement("ul", {
@@ -33891,7 +34417,7 @@ var ListMenu = function ListMenu(_ref) {
33891
34417
  }, (params == null ? void 0 : params.text) || 'No text');
33892
34418
  })));
33893
34419
  };
33894
- var Container$v = /*#__PURE__*/styled.div.withConfig({
34420
+ var Container$x = /*#__PURE__*/styled.div.withConfig({
33895
34421
  displayName: "ListMenu__Container",
33896
34422
  componentId: "sc-i9097t-0"
33897
34423
  })(["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) {
@@ -33910,7 +34436,7 @@ var Pager = function Pager(_ref) {
33910
34436
  itemsPerPage = _ref.itemsPerPage,
33911
34437
  onPageChange = _ref.onPageChange;
33912
34438
  var totalPages = Math.ceil(totalItems / itemsPerPage);
33913
- return React.createElement(Container$w, null, React.createElement("p", null, "Total items: ", totalItems), React.createElement(PagerContainer, null, React.createElement("button", {
34439
+ return React.createElement(Container$y, null, React.createElement("p", null, "Total items: ", totalItems), React.createElement(PagerContainer, null, React.createElement("button", {
33914
34440
  disabled: currentPage === 1,
33915
34441
  onPointerDown: function onPointerDown() {
33916
34442
  return onPageChange(Math.max(currentPage - 1, 1));
@@ -33924,7 +34450,7 @@ var Pager = function Pager(_ref) {
33924
34450
  }
33925
34451
  }, '>')));
33926
34452
  };
33927
- var Container$w = /*#__PURE__*/styled.div.withConfig({
34453
+ var Container$y = /*#__PURE__*/styled.div.withConfig({
33928
34454
  displayName: "Pager__Container",
33929
34455
  componentId: "sc-1ekmf50-0"
33930
34456
  })(["display:flex;flex-direction:column;align-items:center;p{margin:0;font-size:", ";}"], uiFonts.size.xsmall);
@@ -34445,13 +34971,13 @@ var TabBody = function TabBody(_ref) {
34445
34971
  children = _ref.children,
34446
34972
  styles = _ref.styles,
34447
34973
  centerContent = _ref.centerContent;
34448
- return React.createElement(Container$x, {
34974
+ return React.createElement(Container$z, {
34449
34975
  styles: styles,
34450
34976
  "data-tab-id": id,
34451
34977
  centerContent: centerContent
34452
34978
  }, children);
34453
34979
  };
34454
- var Container$x = /*#__PURE__*/styled.div.withConfig({
34980
+ var Container$z = /*#__PURE__*/styled.div.withConfig({
34455
34981
  displayName: "TabBody__Container",
34456
34982
  componentId: "sc-196oof2-0"
34457
34983
  })(["width:", ";height:", ";overflow-y:auto;display:", ";justify-content:", ";align-items:", ";"], function (props) {
@@ -35084,7 +35610,7 @@ var getMockedPlayersRowsNotLeader = function getMockedPlayersRowsNotLeader(userI
35084
35610
  };
35085
35611
  };
35086
35612
 
35087
- var ProgressBar = function ProgressBar(_ref) {
35613
+ var ProgressBar$1 = function ProgressBar(_ref) {
35088
35614
  var max = _ref.max,
35089
35615
  value = _ref.value,
35090
35616
  color = _ref.color,
@@ -35104,7 +35630,7 @@ var ProgressBar = function ProgressBar(_ref) {
35104
35630
  }
35105
35631
  return value * 100 / max;
35106
35632
  };
35107
- return React.createElement(Container$y, {
35633
+ return React.createElement(Container$A, {
35108
35634
  className: "rpgui-progress",
35109
35635
  "data-value": calculatePercentageValue(max, value) / 100,
35110
35636
  "data-rpguitype": "progress",
@@ -35134,7 +35660,7 @@ var TextOverlay$1 = /*#__PURE__*/styled.div.withConfig({
35134
35660
  displayName: "ProgressBar__TextOverlay",
35135
35661
  componentId: "sc-qa6fzh-1"
35136
35662
  })(["width:100%;position:relative;"]);
35137
- var Container$y = /*#__PURE__*/styled.div.withConfig({
35663
+ var Container$A = /*#__PURE__*/styled.div.withConfig({
35138
35664
  displayName: "ProgressBar__Container",
35139
35665
  componentId: "sc-qa6fzh-2"
35140
35666
  })(["display:flex;flex-direction:column;min-width:", "px;width:", "%;justify-content:start;align-items:flex-start;", " @media (max-width:950px){transform:scale(", ");}"], function (props) {
@@ -35275,17 +35801,17 @@ var QuestList = function QuestList(_ref) {
35275
35801
  return React.createElement(QuestCard, {
35276
35802
  key: i,
35277
35803
  style: styles == null ? void 0 : styles.card
35278
- }, React.createElement(QuestItem, null, React.createElement(Label$3, {
35804
+ }, React.createElement(QuestItem, null, React.createElement(Label$4, {
35279
35805
  style: styles == null ? void 0 : styles.label
35280
35806
  }, "Title:"), React.createElement(Value$2, {
35281
35807
  style: styles == null ? void 0 : styles.value
35282
- }, formatQuestText(quest.title))), React.createElement(QuestItem, null, React.createElement(Label$3, {
35808
+ }, formatQuestText(quest.title))), React.createElement(QuestItem, null, React.createElement(Label$4, {
35283
35809
  style: styles == null ? void 0 : styles.label
35284
35810
  }, "Status:"), React.createElement(Value$2, {
35285
35811
  style: _extends({}, styles == null ? void 0 : styles.value, {
35286
35812
  color: getQuestStatusColor(quest.status)
35287
35813
  })
35288
- }, (_formatQuestStatus = formatQuestStatus(quest.status)) != null ? _formatQuestStatus : 'Unknown')), React.createElement(QuestItem, null, React.createElement(Label$3, {
35814
+ }, (_formatQuestStatus = formatQuestStatus(quest.status)) != null ? _formatQuestStatus : 'Unknown')), React.createElement(QuestItem, null, React.createElement(Label$4, {
35289
35815
  style: styles == null ? void 0 : styles.label
35290
35816
  }, "Description:"), React.createElement(Value$2, {
35291
35817
  style: styles == null ? void 0 : styles.value
@@ -35304,7 +35830,7 @@ var QuestItem = /*#__PURE__*/styled.div.withConfig({
35304
35830
  displayName: "QuestList__QuestItem",
35305
35831
  componentId: "sc-1c1y8sp-2"
35306
35832
  })(["display:flex;margin-bottom:5px;flex-wrap:wrap;&:last-child{margin-bottom:0;}"]);
35307
- var Label$3 = /*#__PURE__*/styled.span.withConfig({
35833
+ var Label$4 = /*#__PURE__*/styled.span.withConfig({
35308
35834
  displayName: "QuestList__Label",
35309
35835
  componentId: "sc-1c1y8sp-3"
35310
35836
  })(["font-weight:bold;color:", " !important;margin-right:10px;"], uiColors.yellow);
@@ -35375,9 +35901,9 @@ var InputRadio = function InputRadio(_ref) {
35375
35901
 
35376
35902
  var RPGUIScrollbar = function RPGUIScrollbar(_ref) {
35377
35903
  var children = _ref.children;
35378
- return React.createElement(Container$z, null, children);
35904
+ return React.createElement(Container$B, null, children);
35379
35905
  };
35380
- var Container$z = /*#__PURE__*/styled.div.withConfig({
35906
+ var Container$B = /*#__PURE__*/styled.div.withConfig({
35381
35907
  displayName: "RPGUIScrollbar__Container",
35382
35908
  componentId: "sc-p3msmb-0"
35383
35909
  })([".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;}"]);
@@ -35533,7 +36059,7 @@ var SimpleProgressBar = function SimpleProgressBar(_ref) {
35533
36059
  margin = _ref$margin === void 0 ? 20 : _ref$margin;
35534
36060
  // Ensure the width is at least 1% if value is greater than 0
35535
36061
  var width = value > 0 ? Math.max(1, Math.min(100, value)) : 0;
35536
- return React.createElement(Container$A, {
36062
+ return React.createElement(Container$C, {
35537
36063
  className: "simple-progress-bar"
35538
36064
  }, React.createElement(ProgressBarContainer, {
35539
36065
  margin: margin
@@ -35542,7 +36068,7 @@ var SimpleProgressBar = function SimpleProgressBar(_ref) {
35542
36068
  bgColor: bgColor
35543
36069
  }))));
35544
36070
  };
35545
- var Container$A = /*#__PURE__*/styled.div.withConfig({
36071
+ var Container$C = /*#__PURE__*/styled.div.withConfig({
35546
36072
  displayName: "SimpleProgressBar__Container",
35547
36073
  componentId: "sc-mbeil3-0"
35548
36074
  })(["display:flex;justify-content:center;align-items:center;width:100%;"]);
@@ -35875,7 +36401,7 @@ var SocialModal = function SocialModal(_ref) {
35875
36401
  title: "Social Channels",
35876
36402
  width: "500px",
35877
36403
  onCloseButton: onClose
35878
- }, React.createElement(Container$B, null, React.createElement(HeaderImage, {
36404
+ }, React.createElement(Container$D, null, React.createElement(HeaderImage, {
35879
36405
  src: img$9,
35880
36406
  alt: ""
35881
36407
  }), React.createElement(ButtonsContainer$1, null, React.createElement(MainButtons, null, React.createElement(SocialButton$1, {
@@ -35893,7 +36419,7 @@ var SocialModal = function SocialModal(_ref) {
35893
36419
  onClick: handleWhatsAppClick
35894
36420
  }, React.createElement(FaWhatsapp, null), " Join WhatsApp")))));
35895
36421
  };
35896
- var Container$B = /*#__PURE__*/styled.div.withConfig({
36422
+ var Container$D = /*#__PURE__*/styled.div.withConfig({
35897
36423
  displayName: "SocialModal__Container",
35898
36424
  componentId: "sc-tbjhp9-0"
35899
36425
  })(["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% );}"]);
@@ -35939,7 +36465,7 @@ var SpellInfo$1 = function SpellInfo(_ref) {
35939
36465
  castingType = spell.castingType,
35940
36466
  cooldown = spell.cooldown,
35941
36467
  maxDistanceGrid = spell.maxDistanceGrid;
35942
- return React.createElement(Container$C, null, React.createElement(Header$5, null, React.createElement("div", null, React.createElement(Title$b, null, name), React.createElement(Type$1, null, magicWords))), React.createElement(Statistic$1, null, React.createElement("div", {
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", {
35943
36469
  className: "label"
35944
36470
  }, "Casting Type:"), React.createElement("div", {
35945
36471
  className: "value"
@@ -35965,7 +36491,7 @@ var SpellInfo$1 = function SpellInfo(_ref) {
35965
36491
  className: "value"
35966
36492
  }, requiredItem))), React.createElement(Description$4, null, description));
35967
36493
  };
35968
- var Container$C = /*#__PURE__*/styled.div.withConfig({
36494
+ var Container$E = /*#__PURE__*/styled.div.withConfig({
35969
36495
  displayName: "SpellInfo__Container",
35970
36496
  componentId: "sc-4hbw3q-0"
35971
36497
  })(["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);
@@ -36019,7 +36545,7 @@ var MobileSpellTooltip = function MobileSpellTooltip(_ref) {
36019
36545
  var _ref$current;
36020
36546
  (_ref$current = ref.current) == null ? void 0 : _ref$current.classList.add('fadeOut');
36021
36547
  };
36022
- return React.createElement(ModalPortal, null, React.createElement(Container$D, {
36548
+ return React.createElement(ModalPortal, null, React.createElement(Container$F, {
36023
36549
  ref: ref,
36024
36550
  onTouchEnd: function onTouchEnd() {
36025
36551
  handleFadeOut();
@@ -36044,7 +36570,7 @@ var MobileSpellTooltip = function MobileSpellTooltip(_ref) {
36044
36570
  }, option.text);
36045
36571
  }))));
36046
36572
  };
36047
- var Container$D = /*#__PURE__*/styled.div.withConfig({
36573
+ var Container$F = /*#__PURE__*/styled.div.withConfig({
36048
36574
  displayName: "MobileSpellTooltip__Container",
36049
36575
  componentId: "sc-6p7uvr-0"
36050
36576
  })(["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;}"]);
@@ -36085,13 +36611,13 @@ var MagicTooltip = function MagicTooltip(_ref) {
36085
36611
  }
36086
36612
  return;
36087
36613
  }, []);
36088
- return React.createElement(ModalPortal, null, React.createElement(Container$E, {
36614
+ return React.createElement(ModalPortal, null, React.createElement(Container$G, {
36089
36615
  ref: ref
36090
36616
  }, React.createElement(SpellInfoDisplay, {
36091
36617
  spell: spell
36092
36618
  })));
36093
36619
  };
36094
- var Container$E = /*#__PURE__*/styled.div.withConfig({
36620
+ var Container$G = /*#__PURE__*/styled.div.withConfig({
36095
36621
  displayName: "SpellTooltip__Container",
36096
36622
  componentId: "sc-1go0gwg-0"
36097
36623
  })(["position:absolute;z-index:100;pointer-events:none;left:0;top:0;opacity:0;transition:opacity 0.08s;"]);
@@ -36164,7 +36690,7 @@ var Spell = function Spell(_ref) {
36164
36690
  var IMAGE_SCALE = 2;
36165
36691
  return React.createElement(SpellInfoWrapper, {
36166
36692
  spell: spell
36167
- }, React.createElement(Container$F, {
36693
+ }, React.createElement(Container$H, {
36168
36694
  onPointerUp: onPointerUp == null ? void 0 : onPointerUp.bind(null, spellKey),
36169
36695
  isSettingShortcut: isSettingShortcut && !disabled,
36170
36696
  className: "spell"
@@ -36183,7 +36709,7 @@ var Spell = function Spell(_ref) {
36183
36709
  className: "mana"
36184
36710
  }, manaCost))));
36185
36711
  };
36186
- var Container$F = /*#__PURE__*/styled.button.withConfig({
36712
+ var Container$H = /*#__PURE__*/styled.button.withConfig({
36187
36713
  displayName: "Spell__Container",
36188
36714
  componentId: "sc-j96fa2-0"
36189
36715
  })(["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) {
@@ -36262,7 +36788,7 @@ var Spellbook = function Spellbook(_ref) {
36262
36788
  height: "inherit",
36263
36789
  cancelDrag: "#spellbook-search, #shortcuts_list, .spell",
36264
36790
  scale: scale
36265
- }, React.createElement(Container$G, null, React.createElement(Title$d, null, "Learned Spells"), React.createElement(ShortcutsSetter, {
36791
+ }, React.createElement(Container$I, null, React.createElement(Title$d, null, "Learned Spells"), React.createElement(ShortcutsSetter, {
36266
36792
  setSettingShortcutIndex: setSettingShortcutIndex,
36267
36793
  settingShortcutIndex: settingShortcutIndex,
36268
36794
  shortcuts: shortcuts,
@@ -36298,7 +36824,7 @@ var Title$d = /*#__PURE__*/styled.h1.withConfig({
36298
36824
  displayName: "Spellbook__Title",
36299
36825
  componentId: "sc-r02nfq-0"
36300
36826
  })(["font-size:", " !important;margin-bottom:0 !important;"], uiFonts.size.large);
36301
- var Container$G = /*#__PURE__*/styled.div.withConfig({
36827
+ var Container$I = /*#__PURE__*/styled.div.withConfig({
36302
36828
  displayName: "Spellbook__Container",
36303
36829
  componentId: "sc-r02nfq-1"
36304
36830
  })(["width:100%;height:100%;color:white;display:flex;flex-direction:column;"]);
@@ -36780,7 +37306,7 @@ var TradingMenu = function TradingMenu(_ref) {
36780
37306
  width: "500px",
36781
37307
  cancelDrag: "#TraderContainer",
36782
37308
  scale: scale
36783
- }, React.createElement(Container$H, null, React.createElement(Title$e, null, type.charAt(0).toUpperCase() + type.slice(1), " Menu"), React.createElement("hr", {
37309
+ }, React.createElement(Container$J, null, React.createElement(Title$e, null, type.charAt(0).toUpperCase() + type.slice(1), " Menu"), React.createElement("hr", {
36784
37310
  className: "golden"
36785
37311
  }), React.createElement(ScrollWrapper, {
36786
37312
  id: "TraderContainer"
@@ -36808,7 +37334,7 @@ var TradingMenu = function TradingMenu(_ref) {
36808
37334
  onPointerDown: onClose
36809
37335
  }, "Cancel"))));
36810
37336
  };
36811
- var Container$H = /*#__PURE__*/styled.div.withConfig({
37337
+ var Container$J = /*#__PURE__*/styled.div.withConfig({
36812
37338
  displayName: "TradingMenu__Container",
36813
37339
  componentId: "sc-1wjsz1l-0"
36814
37340
  })(["width:100%;"]);
@@ -36842,11 +37368,11 @@ var Truncate = function Truncate(_ref) {
36842
37368
  var _ref$maxLines = _ref.maxLines,
36843
37369
  maxLines = _ref$maxLines === void 0 ? 1 : _ref$maxLines,
36844
37370
  children = _ref.children;
36845
- return React.createElement(Container$I, {
37371
+ return React.createElement(Container$K, {
36846
37372
  maxLines: maxLines
36847
37373
  }, children);
36848
37374
  };
36849
- var Container$I = /*#__PURE__*/styled.div.withConfig({
37375
+ var Container$K = /*#__PURE__*/styled.div.withConfig({
36850
37376
  displayName: "Truncate__Container",
36851
37377
  componentId: "sc-6x00qb-0"
36852
37378
  })(["display:-webkit-box;max-width:100%;max-height:100%;-webkit-line-clamp:", ";-webkit-box-orient:vertical;overflow:hidden;"], function (props) {
@@ -36954,7 +37480,7 @@ var TutorialStepper = /*#__PURE__*/React.memo(function (_ref) {
36954
37480
  };
36955
37481
  });
36956
37482
  }, [lessons, imageStyle]);
36957
- return React.createElement(Container$J, null, React.createElement(Stepper, {
37483
+ return React.createElement(Container$L, null, React.createElement(Stepper, {
36958
37484
  steps: generateLessons,
36959
37485
  finalCTAButton: {
36960
37486
  label: 'Close',
@@ -36971,7 +37497,7 @@ var LessonBody = /*#__PURE__*/styled.div.withConfig({
36971
37497
  displayName: "TutorialStepper__LessonBody",
36972
37498
  componentId: "sc-7tgzv2-1"
36973
37499
  })([""]);
36974
- var Container$J = /*#__PURE__*/styled.div.withConfig({
37500
+ var Container$L = /*#__PURE__*/styled.div.withConfig({
36975
37501
  displayName: "TutorialStepper__Container",
36976
37502
  componentId: "sc-7tgzv2-2"
36977
37503
  })(["width:80%;max-width:600px;@media (max-width:600px){width:95%;}"]);
@@ -36992,5 +37518,5 @@ var LessonContainer = /*#__PURE__*/styled.div.withConfig({
36992
37518
  componentId: "sc-7tgzv2-6"
36993
37519
  })(["display:flex;flex-direction:column;justify-content:space-between;min-height:200px;p{font-size:0.7rem !important;}"]);
36994
37520
 
36995
- export { ActionButtons, AsyncDropdown, Button, ButtonTypes, CharacterSelection, Chat, ChatDeprecated, ChatRevamp, CheckButton, CheckItem, CircularController, CraftBook, 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, 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 };
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 };
36996
37522
  //# sourceMappingURL=long-bow.esm.js.map