@rpg-engine/long-bow 0.8.47 → 0.8.48

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,530 @@ 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
+ onClose = _ref.onClose,
29658
+ _ref$scale = _ref.scale,
29659
+ scale = _ref$scale === void 0 ? 1 : _ref$scale,
29660
+ itemsAtlasJSON = _ref.itemsAtlasJSON,
29661
+ itemsAtlasIMG = _ref.itemsAtlasIMG,
29662
+ iconAtlasJSON = _ref.iconAtlasJSON,
29663
+ iconAtlasIMG = _ref.iconAtlasIMG;
29664
+ var _React$useState = React.useState(tasks),
29665
+ localTasks = _React$useState[0],
29666
+ setLocalTasks = _React$useState[1];
29667
+ var size = useResponsiveSize(scale);
29668
+ var handleClaimReward = function handleClaimReward(taskKey, type) {
29669
+ setLocalTasks(function (prevTasks) {
29670
+ return prevTasks.map(function (task) {
29671
+ return task.key === taskKey ? _extends({}, task, {
29672
+ claimed: true
29673
+ }) : task;
29674
+ });
29675
+ });
29676
+ onClaimReward({
29677
+ type: type,
29678
+ taskKey: taskKey
29679
+ });
29680
+ };
29681
+ var handleClaimAllRewards = function handleClaimAllRewards() {
29682
+ localTasks.forEach(function (task) {
29683
+ if (task.status === TaskStatus.Completed && !task.claimed) {
29684
+ var type = task.type,
29685
+ key = task.key;
29686
+ onClaimReward({
29687
+ type: type,
29688
+ taskKey: key
29689
+ });
29690
+ }
29691
+ });
29692
+ };
29693
+ if (!size) return null;
29694
+ return React.createElement(TasksContainer, {
29695
+ type: RPGUIContainerTypes.Framed,
29696
+ onCloseButton: onClose,
29697
+ cancelDrag: ".tasks-container",
29698
+ scale: scale,
29699
+ width: size.width,
29700
+ height: size.height
29701
+ }, React.createElement(TaskTitle$1, null, "Daily Tasks"), React.createElement(Container$f, null, React.createElement(TasksList, {
29702
+ className: "tasks-container"
29703
+ }, React.createElement(GlobalDailyProgress, {
29704
+ tasks: localTasks,
29705
+ onClaimAllRewards: handleClaimAllRewards
29706
+ }), localTasks.map(function (task) {
29707
+ return React.createElement(DailyTaskItem, {
29708
+ key: task.key,
29709
+ task: task,
29710
+ spriteKey: getTaskIcon(task.type, task.difficulty),
29711
+ onClaimReward: handleClaimReward,
29712
+ itemsAtlasJSON: itemsAtlasJSON,
29713
+ itemsAtlasIMG: itemsAtlasIMG,
29714
+ iconAtlasJSON: iconAtlasJSON,
29715
+ iconAtlasIMG: iconAtlasIMG
29716
+ });
29717
+ }))));
29718
+ };
29719
+ var TasksContainer = /*#__PURE__*/styled(DraggableContainer).withConfig({
29720
+ displayName: "DailyTasks__TasksContainer",
29721
+ componentId: "sc-ittn77-0"
29722
+ })(["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;}"]);
29723
+ var Container$f = /*#__PURE__*/styled.div.withConfig({
29724
+ displayName: "DailyTasks__Container",
29725
+ componentId: "sc-ittn77-1"
29726
+ })(["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;}"]);
29727
+ var TasksList = /*#__PURE__*/styled.div.withConfig({
29728
+ displayName: "DailyTasks__TasksList",
29729
+ componentId: "sc-ittn77-2"
29730
+ })(["display:flex;flex-direction:column;gap:12px;padding:15px;max-height:70vh;"]);
29731
+ var TaskTitle$1 = /*#__PURE__*/styled.h2.withConfig({
29732
+ displayName: "DailyTasks__TaskTitle",
29733
+ componentId: "sc-ittn77-3"
29734
+ })(["color:", " !important;text-align:center;padding-right:30px !important;font-size:1.4rem !important;width:100%;"], uiColors.yellow);
29735
+
29212
29736
  // Memoize the styled components since they don't depend on props that change frequently
29213
29737
  var DPadButton = /*#__PURE__*/memo( /*#__PURE__*/styled.div.withConfig({
29214
29738
  displayName: "JoystickDPad__DPadButton",
@@ -29568,7 +30092,7 @@ var DraggedItem = function DraggedItem(_ref) {
29568
30092
  var centeredX = x - OFFSET$1;
29569
30093
  var centeredY = y - OFFSET$1;
29570
30094
  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, {
30095
+ return React.createElement(Container$g, null, React.createElement(SpriteContainer, {
29572
30096
  x: centeredX,
29573
30097
  y: centeredY
29574
30098
  }, React.createElement(SpriteFromAtlas, {
@@ -29586,7 +30110,7 @@ var DraggedItem = function DraggedItem(_ref) {
29586
30110
  }), stackInfo));
29587
30111
  };
29588
30112
  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({
30113
+ var Container$g = /*#__PURE__*/styled.div.withConfig({
29590
30114
  displayName: "DraggedItem__Container",
29591
30115
  componentId: "sc-mlzzcp-0"
29592
30116
  })(["position:relative;"]);
@@ -29624,7 +30148,7 @@ var RelativeListMenu = function RelativeListMenu(_ref) {
29624
30148
  document.removeEventListener('clickOutside', function (_e) {});
29625
30149
  };
29626
30150
  }, []);
29627
- return React.createElement(ModalPortal, null, React.createElement(Container$f, Object.assign({
30151
+ return React.createElement(ModalPortal, null, React.createElement(Container$h, Object.assign({
29628
30152
  fontSize: fontSize,
29629
30153
  ref: ref
29630
30154
  }, pos), React.createElement("ul", {
@@ -29641,7 +30165,7 @@ var RelativeListMenu = function RelativeListMenu(_ref) {
29641
30165
  }, (params == null ? void 0 : params.text) || 'No text');
29642
30166
  }))));
29643
30167
  };
29644
- var Container$f = /*#__PURE__*/styled.div.withConfig({
30168
+ var Container$h = /*#__PURE__*/styled.div.withConfig({
29645
30169
  displayName: "RelativeListMenu__Container",
29646
30170
  componentId: "sc-7hohf-0"
29647
30171
  })(["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 +30439,7 @@ var SearchFriend = function SearchFriend(_ref) {
29915
30439
  title: "Requests (" + friendRequests.length + ")",
29916
30440
  content: requestsTabContent
29917
30441
  }];
29918
- return React.createElement(Container$g, null, React.createElement(InternalTabs, {
30442
+ return React.createElement(Container$i, null, React.createElement(InternalTabs, {
29919
30443
  tabs: tabs,
29920
30444
  activeTextColor: "#000",
29921
30445
  inactiveColor: "#777",
@@ -29957,7 +30481,7 @@ var FriendRequestSection = function FriendRequestSection(_ref3) {
29957
30481
  }, "Reject")));
29958
30482
  })));
29959
30483
  };
29960
- var Container$g = /*#__PURE__*/styled.div.withConfig({
30484
+ var Container$i = /*#__PURE__*/styled.div.withConfig({
29961
30485
  displayName: "SearchFriend__Container",
29962
30486
  componentId: "sc-1lt1ols-0"
29963
30487
  })(["display:flex;flex-direction:column;gap:1rem;"]);
@@ -30160,7 +30684,7 @@ var NPCDialogText = function NPCDialogText(_ref) {
30160
30684
  var _useState2 = useState(false),
30161
30685
  showGoNextIndicator = _useState2[0],
30162
30686
  setShowGoNextIndicator = _useState2[1];
30163
- return React.createElement(Container$h, null, React.createElement(DynamicText, {
30687
+ return React.createElement(Container$j, null, React.createElement(DynamicText, {
30164
30688
  text: (textChunks == null ? void 0 : textChunks[chunkIndex]) || '',
30165
30689
  onFinish: function onFinish() {
30166
30690
  setShowGoNextIndicator(true);
@@ -30178,7 +30702,7 @@ var NPCDialogText = function NPCDialogText(_ref) {
30178
30702
  }
30179
30703
  }));
30180
30704
  };
30181
- var Container$h = /*#__PURE__*/styled.div.withConfig({
30705
+ var Container$j = /*#__PURE__*/styled.div.withConfig({
30182
30706
  displayName: "NPCDialogText__Container",
30183
30707
  componentId: "sc-1cxkdh9-0"
30184
30708
  })([""]);
@@ -30330,7 +30854,7 @@ var QuestionDialog = function QuestionDialog(_ref) {
30330
30854
  return null;
30331
30855
  });
30332
30856
  };
30333
- return React.createElement(Container$i, null, React.createElement(QuestionContainer, null, React.createElement(DynamicText, {
30857
+ return React.createElement(Container$k, null, React.createElement(QuestionContainer, null, React.createElement(DynamicText, {
30334
30858
  text: currentQuestion.text,
30335
30859
  onStart: function onStart() {
30336
30860
  return setCanShowAnswers(false);
@@ -30340,7 +30864,7 @@ var QuestionDialog = function QuestionDialog(_ref) {
30340
30864
  }
30341
30865
  })), canShowAnswers && React.createElement(AnswersContainer, null, onRenderCurrentAnswers()));
30342
30866
  };
30343
- var Container$i = /*#__PURE__*/styled.div.withConfig({
30867
+ var Container$k = /*#__PURE__*/styled.div.withConfig({
30344
30868
  displayName: "QuestionDialog__Container",
30345
30869
  componentId: "sc-bxc5u0-0"
30346
30870
  })(["display:flex;word-break:break-all;box-sizing:border-box;justify-content:flex-start;align-items:flex-start;flex-wrap:wrap;"]);
@@ -30401,7 +30925,7 @@ var NPCDialog = function NPCDialog(_ref) {
30401
30925
  }
30402
30926
  })), type === NPCDialogType.TextAndThumbnail && React.createElement(ThumbnailContainer, null, React.createElement(NPCThumbnail, {
30403
30927
  src: imagePath || img$7
30404
- }))) : React.createElement(React.Fragment, null, React.createElement(Container$j, null, React.createElement(CloseIcon, {
30928
+ }))) : React.createElement(React.Fragment, null, React.createElement(Container$l, null, React.createElement(CloseIcon, {
30405
30929
  onPointerDown: _onClose
30406
30930
  }, "X"), React.createElement(TextContainer$1, {
30407
30931
  flex: type === NPCDialogType.TextAndThumbnail ? '70%' : '100%'
@@ -30417,7 +30941,7 @@ var NPCDialog = function NPCDialog(_ref) {
30417
30941
  src: imagePath || img$7
30418
30942
  })))));
30419
30943
  };
30420
- var Container$j = /*#__PURE__*/styled.div.withConfig({
30944
+ var Container$l = /*#__PURE__*/styled.div.withConfig({
30421
30945
  displayName: "NPCDialog__Container",
30422
30946
  componentId: "sc-1b4aw74-0"
30423
30947
  })(["display:flex;width:100%;height:100%;box-sizing:border-box;justify-content:center;align-items:flex-start;position:relative;"]);
@@ -30478,7 +31002,7 @@ var NPCMultiDialog = function NPCMultiDialog(_ref) {
30478
31002
  type: RPGUIContainerTypes.FramedGold,
30479
31003
  width: '50%',
30480
31004
  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, {
31005
+ }, 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
31006
  flex: '70%'
30483
31007
  }, React.createElement(NPCDialogText, {
30484
31008
  onStartStep: function onStartStep() {
@@ -30520,7 +31044,7 @@ var NPCMultiDialog = function NPCMultiDialog(_ref) {
30520
31044
  src: img$6
30521
31045
  }))), ")"));
30522
31046
  };
30523
- var Container$k = /*#__PURE__*/styled.div.withConfig({
31047
+ var Container$m = /*#__PURE__*/styled.div.withConfig({
30524
31048
  displayName: "NPCMultiDialog__Container",
30525
31049
  componentId: "sc-rvu5wg-0"
30526
31050
  })(["display:flex;width:100%;height:100%;box-sizing:border-box;justify-content:center;align-items:flex-start;position:relative;"]);
@@ -30952,7 +31476,7 @@ var Pagination = function Pagination(_ref) {
30952
31476
  totalPages = _ref.totalPages,
30953
31477
  onPageChange = _ref.onPageChange,
30954
31478
  className = _ref.className;
30955
- return React.createElement(Container$l, {
31479
+ return React.createElement(Container$n, {
30956
31480
  className: className
30957
31481
  }, React.createElement(PaginationButton$1, {
30958
31482
  onClick: function onClick() {
@@ -30970,7 +31494,7 @@ var Pagination = function Pagination(_ref) {
30970
31494
  size: 12
30971
31495
  })));
30972
31496
  };
30973
- var Container$l = /*#__PURE__*/styled.div.withConfig({
31497
+ var Container$n = /*#__PURE__*/styled.div.withConfig({
30974
31498
  displayName: "Pagination__Container",
30975
31499
  componentId: "sc-3k4m4u-0"
30976
31500
  })(["display:flex;align-items:center;justify-content:center;gap:16px;padding:8px;"]);
@@ -30996,7 +31520,7 @@ var SearchBar = function SearchBar(_ref) {
30996
31520
  className = _ref.className,
30997
31521
  rightElement = _ref.rightElement;
30998
31522
  var hasRightElement = Boolean(rightElement);
30999
- return React.createElement(Container$m, {
31523
+ return React.createElement(Container$o, {
31000
31524
  className: className
31001
31525
  }, React.createElement(Input$1, {
31002
31526
  type: "text",
@@ -31009,7 +31533,7 @@ var SearchBar = function SearchBar(_ref) {
31009
31533
  "$hasRightElement": hasRightElement
31010
31534
  }), React.createElement(IconContainer, null, React.createElement(SearchIcon, null), rightElement));
31011
31535
  };
31012
- var Container$m = /*#__PURE__*/styled.div.withConfig({
31536
+ var Container$o = /*#__PURE__*/styled.div.withConfig({
31013
31537
  displayName: "SearchBar__Container",
31014
31538
  componentId: "sc-13n8z02-0"
31015
31539
  })(["position:relative;width:100%;"]);
@@ -31035,7 +31559,7 @@ var SearchHeader = function SearchHeader(_ref) {
31035
31559
  if (!searchOptions && !filterOptions) return null;
31036
31560
  var isMobile = isMobileOrTablet();
31037
31561
  var isSmallScreen = isMobile && window.innerWidth < 480;
31038
- return React.createElement(HeaderContainer$1, {
31562
+ return React.createElement(HeaderContainer$2, {
31039
31563
  className: className
31040
31564
  }, React.createElement(HeaderContent, {
31041
31565
  "$isSmallScreen": isSmallScreen
@@ -31052,7 +31576,7 @@ var SearchHeader = function SearchHeader(_ref) {
31052
31576
  width: isSmallScreen ? '100%' : '200px'
31053
31577
  }))));
31054
31578
  };
31055
- var HeaderContainer$1 = /*#__PURE__*/styled.div.withConfig({
31579
+ var HeaderContainer$2 = /*#__PURE__*/styled.div.withConfig({
31056
31580
  displayName: "SearchHeader__HeaderContainer",
31057
31581
  componentId: "sc-1xd17jb-0"
31058
31582
  })([""]);
@@ -31117,7 +31641,7 @@ var PaginatedContent = function PaginatedContent(_ref) {
31117
31641
  setCurrentPage = _usePagination.setCurrentPage,
31118
31642
  paginatedItems = _usePagination.paginatedItems,
31119
31643
  totalPages = _usePagination.totalPages;
31120
- return React.createElement(Container$n, {
31644
+ return React.createElement(Container$p, {
31121
31645
  className: className
31122
31646
  }, (searchOptions || filterOptions) && React.createElement(SearchHeader, {
31123
31647
  searchOptions: searchOptions,
@@ -31139,7 +31663,7 @@ var PaginatedContent = function PaginatedContent(_ref) {
31139
31663
  onPageChange: setCurrentPage
31140
31664
  }))));
31141
31665
  };
31142
- var Container$n = /*#__PURE__*/styled.div.withConfig({
31666
+ var Container$p = /*#__PURE__*/styled.div.withConfig({
31143
31667
  displayName: "PaginatedContent__Container",
31144
31668
  componentId: "sc-lzp9hn-0"
31145
31669
  })(["display:flex;flex-direction:column;gap:0.5rem;min-height:400px;width:100%;"]);
@@ -31261,7 +31785,7 @@ var BaseInformationDetails = function BaseInformationDetails(_ref) {
31261
31785
  atlasIMG = _ref.atlasIMG,
31262
31786
  onBack = _ref.onBack,
31263
31787
  children = _ref.children;
31264
- return React.createElement(Container$o, null, React.createElement(Overlay, {
31788
+ return React.createElement(Container$q, null, React.createElement(Overlay, {
31265
31789
  onClick: onBack
31266
31790
  }), React.createElement(Modal, null, React.createElement(CloseButton$5, {
31267
31791
  onClick: onBack
@@ -31274,7 +31798,7 @@ var BaseInformationDetails = function BaseInformationDetails(_ref) {
31274
31798
  imgScale: 1
31275
31799
  })), React.createElement(Title$3, null, name)), React.createElement(Content$1, null, children)));
31276
31800
  };
31277
- var Container$o = /*#__PURE__*/styled.div.withConfig({
31801
+ var Container$q = /*#__PURE__*/styled.div.withConfig({
31278
31802
  displayName: "BaseInformationDetails__Container",
31279
31803
  componentId: "sc-1vguuz8-0"
31280
31804
  })(["position:fixed;inset:0;display:flex;justify-content:center;align-items:center;z-index:9999;"]);
@@ -31316,7 +31840,7 @@ var Collapsible = function Collapsible(_ref) {
31316
31840
  var _useState = useState(defaultOpen),
31317
31841
  isOpen = _useState[0],
31318
31842
  setIsOpen = _useState[1];
31319
- return React.createElement(Container$p, {
31843
+ return React.createElement(Container$r, {
31320
31844
  className: className
31321
31845
  }, React.createElement(Header$2, {
31322
31846
  onClick: function onClick() {
@@ -31324,7 +31848,7 @@ var Collapsible = function Collapsible(_ref) {
31324
31848
  }
31325
31849
  }, 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
31850
  };
31327
- var Container$p = /*#__PURE__*/styled.div.withConfig({
31851
+ var Container$r = /*#__PURE__*/styled.div.withConfig({
31328
31852
  displayName: "Collapsible__Container",
31329
31853
  componentId: "sc-s4h8ey-0"
31330
31854
  })(["background:rgba(0,0,0,0.3);border-radius:4px;overflow:hidden;border:1px solid ", ";"], uiColors.darkGray);
@@ -31355,14 +31879,14 @@ var InformationCenterItemDetails = function InformationCenterItemDetails(_ref) {
31355
31879
  var renderAllowedSlots = function renderAllowedSlots() {
31356
31880
  var _item$allowedEquipSlo;
31357
31881
  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(', ')));
31882
+ return React.createElement(InfoItem, null, React.createElement(Label$1, null, "Equip Slots:"), React.createElement(Value, null, item.allowedEquipSlotType.join(', ')));
31359
31883
  };
31360
31884
  var renderRequirements = function renderRequirements() {
31361
31885
  if (!item.minRequirements) return null;
31362
31886
  return React.createElement(StyledCollapsible, {
31363
31887
  title: "Requirements",
31364
31888
  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))));
31889
+ }, 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
31890
  };
31367
31891
  return React.createElement(BaseInformationDetails, {
31368
31892
  name: item.name,
@@ -31370,7 +31894,7 @@ var InformationCenterItemDetails = function InformationCenterItemDetails(_ref) {
31370
31894
  atlasJSON: itemsAtlasJSON,
31371
31895
  atlasIMG: itemsAtlasIMG,
31372
31896
  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, {
31897
+ }, 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
31898
  title: "Description",
31375
31899
  defaultOpen: !isMobile
31376
31900
  }, React.createElement(Description$2, null, item.description || 'No description available.')), React.createElement(StyledCollapsible, {
@@ -31412,7 +31936,7 @@ var InfoItem = /*#__PURE__*/styled.div.withConfig({
31412
31936
  displayName: "InformationCenterItemDetails__InfoItem",
31413
31937
  componentId: "sc-zwf6pb-1"
31414
31938
  })(["display:flex;align-items:center;gap:8px;"]);
31415
- var Label = /*#__PURE__*/styled.span.withConfig({
31939
+ var Label$1 = /*#__PURE__*/styled.span.withConfig({
31416
31940
  displayName: "InformationCenterItemDetails__Label",
31417
31941
  componentId: "sc-zwf6pb-2"
31418
31942
  })(["color:", ";font-size:0.5rem;opacity:0.8;"], uiColors.yellow);
@@ -31497,7 +32021,7 @@ var EffectDescription = /*#__PURE__*/styled.p.withConfig({
31497
32021
  componentId: "sc-zwf6pb-22"
31498
32022
  })(["color:", ";font-size:0.45rem;margin:8px 0 0;padding:0 12px;font-style:italic;"], uiColors.lightGray);
31499
32023
 
31500
- var TooltipContainer$1 = /*#__PURE__*/styled.div.withConfig({
32024
+ var TooltipContainer$2 = /*#__PURE__*/styled.div.withConfig({
31501
32025
  displayName: "BaseTooltip__TooltipContainer",
31502
32026
  componentId: "sc-1auz5ec-0"
31503
32027
  })(["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 +32050,7 @@ var StatItem$1 = /*#__PURE__*/styled.div.withConfig({
31526
32050
  var BaseTooltip = function BaseTooltip(_ref) {
31527
32051
  var children = _ref.children,
31528
32052
  width = _ref.width;
31529
- return React.createElement(TooltipContainer$1, {
32053
+ return React.createElement(TooltipContainer$2, {
31530
32054
  width: width
31531
32055
  }, children);
31532
32056
  };
@@ -31574,7 +32098,7 @@ var AdvancedFilters = function AdvancedFilters(_ref) {
31574
32098
  var rangeValue = section.value;
31575
32099
  return React.createElement(FilterSection, {
31576
32100
  key: section.key
31577
- }, React.createElement(Label$1, null, section.label), React.createElement(RangeInputs, null, React.createElement(Input, {
32101
+ }, React.createElement(Label$2, null, section.label), React.createElement(RangeInputs, null, React.createElement(Input, {
31578
32102
  type: "number",
31579
32103
  min: 0,
31580
32104
  placeholder: "Min",
@@ -31594,7 +32118,7 @@ var AdvancedFilters = function AdvancedFilters(_ref) {
31594
32118
  case 'dropdown':
31595
32119
  return React.createElement(FilterSection, {
31596
32120
  key: section.key
31597
- }, React.createElement(Label$1, null, section.label), React.createElement(StyledDropdownWrapper, null, React.createElement(Dropdown, {
32121
+ }, React.createElement(Label$2, null, section.label), React.createElement(StyledDropdownWrapper, null, React.createElement(Dropdown, {
31598
32122
  options: section.options || [],
31599
32123
  onChange: section.onChange,
31600
32124
  width: "100%"
@@ -31654,7 +32178,7 @@ var AdvancedFilters = function AdvancedFilters(_ref) {
31654
32178
  onClose();
31655
32179
  }
31656
32180
  };
31657
- return React.createElement(Container$q, null, React.createElement(FilterButton, {
32181
+ return React.createElement(Container$s, null, React.createElement(FilterButton, {
31658
32182
  onClick: onToggle,
31659
32183
  "$hasActiveFilters": hasActiveFilters,
31660
32184
  ref: buttonRef
@@ -31685,7 +32209,7 @@ var AdvancedFilters = function AdvancedFilters(_ref) {
31685
32209
  onClick: onClearAll
31686
32210
  }, "Clear All Filters"))));
31687
32211
  };
31688
- var Container$q = /*#__PURE__*/styled.div.withConfig({
32212
+ var Container$s = /*#__PURE__*/styled.div.withConfig({
31689
32213
  displayName: "AdvancedFilters__Container",
31690
32214
  componentId: "sc-1xj6ldr-0"
31691
32215
  })(["position:relative;margin-left:0.5rem;"]);
@@ -31739,7 +32263,7 @@ var FilterSection = /*#__PURE__*/styled.div.withConfig({
31739
32263
  displayName: "AdvancedFilters__FilterSection",
31740
32264
  componentId: "sc-1xj6ldr-7"
31741
32265
  })(["display:flex;flex-direction:column;gap:0.5rem;"]);
31742
- var Label$1 = /*#__PURE__*/styled.div.withConfig({
32266
+ var Label$2 = /*#__PURE__*/styled.div.withConfig({
31743
32267
  displayName: "AdvancedFilters__Label",
31744
32268
  componentId: "sc-1xj6ldr-8"
31745
32269
  })(["color:#999;font-size:0.65rem;text-transform:uppercase;letter-spacing:0.05em;"]);
@@ -32127,7 +32651,7 @@ var InformationCenterNPCDetails = function InformationCenterNPCDetails(_ref) {
32127
32651
  atlasJSON: entitiesAtlasJSON,
32128
32652
  atlasIMG: entitiesAtlasIMG,
32129
32653
  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, {
32654
+ }, 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
32655
  title: "Stats",
32132
32656
  defaultOpen: !isMobile
32133
32657
  }, 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 +32721,7 @@ var InfoItem$1 = /*#__PURE__*/styled.div.withConfig({
32197
32721
  displayName: "InformationCenterNPCDetails__InfoItem",
32198
32722
  componentId: "sc-fdu3xl-1"
32199
32723
  })(["display:flex;align-items:center;gap:8px;"]);
32200
- var Label$2 = /*#__PURE__*/styled.span.withConfig({
32724
+ var Label$3 = /*#__PURE__*/styled.span.withConfig({
32201
32725
  displayName: "InformationCenterNPCDetails__Label",
32202
32726
  componentId: "sc-fdu3xl-2"
32203
32727
  })(["color:", ";font-size:0.5rem;opacity:0.8;"], uiColors.yellow);
@@ -32779,7 +33303,7 @@ var InformationCenter = function InformationCenter(_ref) {
32779
33303
  minWidth: "300px",
32780
33304
  cancelDrag: ".PaginatedContent-content",
32781
33305
  onCloseButton: onClose
32782
- }, React.createElement(Container$r, null, React.createElement(InternalTabs, {
33306
+ }, React.createElement(Container$t, null, React.createElement(InternalTabs, {
32783
33307
  tabs: tabs,
32784
33308
  activeTextColor: "#000000",
32785
33309
  activeTab: activeTab,
@@ -32790,7 +33314,7 @@ var InformationCenter = function InformationCenter(_ref) {
32790
33314
  hoverColor: "#fef3c7"
32791
33315
  })));
32792
33316
  };
32793
- var Container$r = /*#__PURE__*/styled.div.withConfig({
33317
+ var Container$t = /*#__PURE__*/styled.div.withConfig({
32794
33318
  displayName: "InformationCenter__Container",
32795
33319
  componentId: "sc-1ttl62e-0"
32796
33320
  })(["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 +33485,7 @@ var ShortcutsSetter = function ShortcutsSetter(_ref) {
32961
33485
  }
32962
33486
  return null;
32963
33487
  };
32964
- return React.createElement(Container$s, null, React.createElement("p", null, "Shortcuts:"), React.createElement(List, {
33488
+ return React.createElement(Container$u, null, React.createElement("p", null, "Shortcuts:"), React.createElement(List, {
32965
33489
  id: "shortcuts_list"
32966
33490
  }, Array.from({
32967
33491
  length: 12
@@ -32979,7 +33503,7 @@ var ShortcutsSetter = function ShortcutsSetter(_ref) {
32979
33503
  }, getContent(i));
32980
33504
  })));
32981
33505
  };
32982
- var Container$s = /*#__PURE__*/styled.div.withConfig({
33506
+ var Container$u = /*#__PURE__*/styled.div.withConfig({
32983
33507
  displayName: "ShortcutsSetter__Container",
32984
33508
  componentId: "sc-xuouuf-0"
32985
33509
  })(["p{margin:0;margin-left:0.5rem;font-size:10px;}width:100%;"]);
@@ -33424,7 +33948,7 @@ var ConfirmModal = function ConfirmModal(_ref) {
33424
33948
  e.stopPropagation();
33425
33949
  onClose();
33426
33950
  };
33427
- return React.createElement(ModalPortal, null, React.createElement(Background, null), React.createElement(Container$t, {
33951
+ return React.createElement(ModalPortal, null, React.createElement(Background, null), React.createElement(Container$v, {
33428
33952
  onClick: handleClose
33429
33953
  }, React.createElement(DraggableContainer, {
33430
33954
  width: "auto",
@@ -33447,7 +33971,7 @@ var Background = /*#__PURE__*/styled.div.withConfig({
33447
33971
  displayName: "ConfirmModal__Background",
33448
33972
  componentId: "sc-11qkyu1-0"
33449
33973
  })(["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({
33974
+ var Container$v = /*#__PURE__*/styled.div.withConfig({
33451
33975
  displayName: "ConfirmModal__Container",
33452
33976
  componentId: "sc-11qkyu1-1"
33453
33977
  })(["position:absolute;width:100%;height:100%;left:0;top:0;display:flex;justify-content:center;align-items:center;z-index:1001;"]);
@@ -33502,7 +34026,7 @@ var ColorSelector = function ColorSelector(_ref) {
33502
34026
  cancelDrag: ".react-colorful",
33503
34027
  width: "25rem",
33504
34028
  onCloseButton: onClose
33505
- }, React.createElement(Container$u, null, React.createElement(Header$3, null, "Select Color"), React.createElement(ColorPickerWrapper, null, React.createElement(HexColorPicker, {
34029
+ }, React.createElement(Container$w, null, React.createElement(Header$3, null, "Select Color"), React.createElement(ColorPickerWrapper, null, React.createElement(HexColorPicker, {
33506
34030
  color: currentColor,
33507
34031
  onChange: function onChange(color) {
33508
34032
  setCurrentColor(color);
@@ -33518,7 +34042,7 @@ var ColorSelector = function ColorSelector(_ref) {
33518
34042
  onClose: handleClose
33519
34043
  }));
33520
34044
  };
33521
- var Container$u = /*#__PURE__*/styled.div.withConfig({
34045
+ var Container$w = /*#__PURE__*/styled.div.withConfig({
33522
34046
  displayName: "ItemPropertyColorSelector__Container",
33523
34047
  componentId: "sc-me1r4z-0"
33524
34048
  })(["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 +34120,7 @@ var GemSelector = function GemSelector(_ref) {
33596
34120
  }, 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
34121
  return React.createElement(GemItem, {
33598
34122
  key: gem.key + "-" + index
33599
- }, React.createElement(CheckItemWrapper, null, React.createElement(CheckItem, {
34123
+ }, React.createElement(CheckItemWrapper$1, null, React.createElement(CheckItem, {
33600
34124
  defaultValue: selectedGems.some(function (selected) {
33601
34125
  return selected.key === gem.key;
33602
34126
  }),
@@ -33656,7 +34180,7 @@ var ButtonWrapper = /*#__PURE__*/styled.div.withConfig({
33656
34180
  displayName: "GemSelector__ButtonWrapper",
33657
34181
  componentId: "sc-gbt8g4-7"
33658
34182
  })(["display:flex;justify-content:center;align-self:center;"]);
33659
- var CheckItemWrapper = /*#__PURE__*/styled.div.withConfig({
34183
+ var CheckItemWrapper$1 = /*#__PURE__*/styled.div.withConfig({
33660
34184
  displayName: "GemSelector__CheckItemWrapper",
33661
34185
  componentId: "sc-gbt8g4-8"
33662
34186
  })(["display:flex;justify-content:center;width:100%;height:20px;input.rpgui-checkbox + label{margin:0 !important;padding-left:23px !important;}"]);
@@ -33874,7 +34398,7 @@ var ListMenu = function ListMenu(_ref) {
33874
34398
  onSelected = _ref.onSelected,
33875
34399
  x = _ref.x,
33876
34400
  y = _ref.y;
33877
- return React.createElement(Container$v, {
34401
+ return React.createElement(Container$x, {
33878
34402
  x: x,
33879
34403
  y: y
33880
34404
  }, React.createElement("ul", {
@@ -33891,7 +34415,7 @@ var ListMenu = function ListMenu(_ref) {
33891
34415
  }, (params == null ? void 0 : params.text) || 'No text');
33892
34416
  })));
33893
34417
  };
33894
- var Container$v = /*#__PURE__*/styled.div.withConfig({
34418
+ var Container$x = /*#__PURE__*/styled.div.withConfig({
33895
34419
  displayName: "ListMenu__Container",
33896
34420
  componentId: "sc-i9097t-0"
33897
34421
  })(["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 +34434,7 @@ var Pager = function Pager(_ref) {
33910
34434
  itemsPerPage = _ref.itemsPerPage,
33911
34435
  onPageChange = _ref.onPageChange;
33912
34436
  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", {
34437
+ return React.createElement(Container$y, null, React.createElement("p", null, "Total items: ", totalItems), React.createElement(PagerContainer, null, React.createElement("button", {
33914
34438
  disabled: currentPage === 1,
33915
34439
  onPointerDown: function onPointerDown() {
33916
34440
  return onPageChange(Math.max(currentPage - 1, 1));
@@ -33924,7 +34448,7 @@ var Pager = function Pager(_ref) {
33924
34448
  }
33925
34449
  }, '>')));
33926
34450
  };
33927
- var Container$w = /*#__PURE__*/styled.div.withConfig({
34451
+ var Container$y = /*#__PURE__*/styled.div.withConfig({
33928
34452
  displayName: "Pager__Container",
33929
34453
  componentId: "sc-1ekmf50-0"
33930
34454
  })(["display:flex;flex-direction:column;align-items:center;p{margin:0;font-size:", ";}"], uiFonts.size.xsmall);
@@ -34445,13 +34969,13 @@ var TabBody = function TabBody(_ref) {
34445
34969
  children = _ref.children,
34446
34970
  styles = _ref.styles,
34447
34971
  centerContent = _ref.centerContent;
34448
- return React.createElement(Container$x, {
34972
+ return React.createElement(Container$z, {
34449
34973
  styles: styles,
34450
34974
  "data-tab-id": id,
34451
34975
  centerContent: centerContent
34452
34976
  }, children);
34453
34977
  };
34454
- var Container$x = /*#__PURE__*/styled.div.withConfig({
34978
+ var Container$z = /*#__PURE__*/styled.div.withConfig({
34455
34979
  displayName: "TabBody__Container",
34456
34980
  componentId: "sc-196oof2-0"
34457
34981
  })(["width:", ";height:", ";overflow-y:auto;display:", ";justify-content:", ";align-items:", ";"], function (props) {
@@ -35084,7 +35608,7 @@ var getMockedPlayersRowsNotLeader = function getMockedPlayersRowsNotLeader(userI
35084
35608
  };
35085
35609
  };
35086
35610
 
35087
- var ProgressBar = function ProgressBar(_ref) {
35611
+ var ProgressBar$1 = function ProgressBar(_ref) {
35088
35612
  var max = _ref.max,
35089
35613
  value = _ref.value,
35090
35614
  color = _ref.color,
@@ -35104,7 +35628,7 @@ var ProgressBar = function ProgressBar(_ref) {
35104
35628
  }
35105
35629
  return value * 100 / max;
35106
35630
  };
35107
- return React.createElement(Container$y, {
35631
+ return React.createElement(Container$A, {
35108
35632
  className: "rpgui-progress",
35109
35633
  "data-value": calculatePercentageValue(max, value) / 100,
35110
35634
  "data-rpguitype": "progress",
@@ -35134,7 +35658,7 @@ var TextOverlay$1 = /*#__PURE__*/styled.div.withConfig({
35134
35658
  displayName: "ProgressBar__TextOverlay",
35135
35659
  componentId: "sc-qa6fzh-1"
35136
35660
  })(["width:100%;position:relative;"]);
35137
- var Container$y = /*#__PURE__*/styled.div.withConfig({
35661
+ var Container$A = /*#__PURE__*/styled.div.withConfig({
35138
35662
  displayName: "ProgressBar__Container",
35139
35663
  componentId: "sc-qa6fzh-2"
35140
35664
  })(["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 +35799,17 @@ var QuestList = function QuestList(_ref) {
35275
35799
  return React.createElement(QuestCard, {
35276
35800
  key: i,
35277
35801
  style: styles == null ? void 0 : styles.card
35278
- }, React.createElement(QuestItem, null, React.createElement(Label$3, {
35802
+ }, React.createElement(QuestItem, null, React.createElement(Label$4, {
35279
35803
  style: styles == null ? void 0 : styles.label
35280
35804
  }, "Title:"), React.createElement(Value$2, {
35281
35805
  style: styles == null ? void 0 : styles.value
35282
- }, formatQuestText(quest.title))), React.createElement(QuestItem, null, React.createElement(Label$3, {
35806
+ }, formatQuestText(quest.title))), React.createElement(QuestItem, null, React.createElement(Label$4, {
35283
35807
  style: styles == null ? void 0 : styles.label
35284
35808
  }, "Status:"), React.createElement(Value$2, {
35285
35809
  style: _extends({}, styles == null ? void 0 : styles.value, {
35286
35810
  color: getQuestStatusColor(quest.status)
35287
35811
  })
35288
- }, (_formatQuestStatus = formatQuestStatus(quest.status)) != null ? _formatQuestStatus : 'Unknown')), React.createElement(QuestItem, null, React.createElement(Label$3, {
35812
+ }, (_formatQuestStatus = formatQuestStatus(quest.status)) != null ? _formatQuestStatus : 'Unknown')), React.createElement(QuestItem, null, React.createElement(Label$4, {
35289
35813
  style: styles == null ? void 0 : styles.label
35290
35814
  }, "Description:"), React.createElement(Value$2, {
35291
35815
  style: styles == null ? void 0 : styles.value
@@ -35304,7 +35828,7 @@ var QuestItem = /*#__PURE__*/styled.div.withConfig({
35304
35828
  displayName: "QuestList__QuestItem",
35305
35829
  componentId: "sc-1c1y8sp-2"
35306
35830
  })(["display:flex;margin-bottom:5px;flex-wrap:wrap;&:last-child{margin-bottom:0;}"]);
35307
- var Label$3 = /*#__PURE__*/styled.span.withConfig({
35831
+ var Label$4 = /*#__PURE__*/styled.span.withConfig({
35308
35832
  displayName: "QuestList__Label",
35309
35833
  componentId: "sc-1c1y8sp-3"
35310
35834
  })(["font-weight:bold;color:", " !important;margin-right:10px;"], uiColors.yellow);
@@ -35375,9 +35899,9 @@ var InputRadio = function InputRadio(_ref) {
35375
35899
 
35376
35900
  var RPGUIScrollbar = function RPGUIScrollbar(_ref) {
35377
35901
  var children = _ref.children;
35378
- return React.createElement(Container$z, null, children);
35902
+ return React.createElement(Container$B, null, children);
35379
35903
  };
35380
- var Container$z = /*#__PURE__*/styled.div.withConfig({
35904
+ var Container$B = /*#__PURE__*/styled.div.withConfig({
35381
35905
  displayName: "RPGUIScrollbar__Container",
35382
35906
  componentId: "sc-p3msmb-0"
35383
35907
  })([".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 +36057,7 @@ var SimpleProgressBar = function SimpleProgressBar(_ref) {
35533
36057
  margin = _ref$margin === void 0 ? 20 : _ref$margin;
35534
36058
  // Ensure the width is at least 1% if value is greater than 0
35535
36059
  var width = value > 0 ? Math.max(1, Math.min(100, value)) : 0;
35536
- return React.createElement(Container$A, {
36060
+ return React.createElement(Container$C, {
35537
36061
  className: "simple-progress-bar"
35538
36062
  }, React.createElement(ProgressBarContainer, {
35539
36063
  margin: margin
@@ -35542,7 +36066,7 @@ var SimpleProgressBar = function SimpleProgressBar(_ref) {
35542
36066
  bgColor: bgColor
35543
36067
  }))));
35544
36068
  };
35545
- var Container$A = /*#__PURE__*/styled.div.withConfig({
36069
+ var Container$C = /*#__PURE__*/styled.div.withConfig({
35546
36070
  displayName: "SimpleProgressBar__Container",
35547
36071
  componentId: "sc-mbeil3-0"
35548
36072
  })(["display:flex;justify-content:center;align-items:center;width:100%;"]);
@@ -35875,7 +36399,7 @@ var SocialModal = function SocialModal(_ref) {
35875
36399
  title: "Social Channels",
35876
36400
  width: "500px",
35877
36401
  onCloseButton: onClose
35878
- }, React.createElement(Container$B, null, React.createElement(HeaderImage, {
36402
+ }, React.createElement(Container$D, null, React.createElement(HeaderImage, {
35879
36403
  src: img$9,
35880
36404
  alt: ""
35881
36405
  }), React.createElement(ButtonsContainer$1, null, React.createElement(MainButtons, null, React.createElement(SocialButton$1, {
@@ -35893,7 +36417,7 @@ var SocialModal = function SocialModal(_ref) {
35893
36417
  onClick: handleWhatsAppClick
35894
36418
  }, React.createElement(FaWhatsapp, null), " Join WhatsApp")))));
35895
36419
  };
35896
- var Container$B = /*#__PURE__*/styled.div.withConfig({
36420
+ var Container$D = /*#__PURE__*/styled.div.withConfig({
35897
36421
  displayName: "SocialModal__Container",
35898
36422
  componentId: "sc-tbjhp9-0"
35899
36423
  })(["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 +36463,7 @@ var SpellInfo$1 = function SpellInfo(_ref) {
35939
36463
  castingType = spell.castingType,
35940
36464
  cooldown = spell.cooldown,
35941
36465
  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", {
36466
+ 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
36467
  className: "label"
35944
36468
  }, "Casting Type:"), React.createElement("div", {
35945
36469
  className: "value"
@@ -35965,7 +36489,7 @@ var SpellInfo$1 = function SpellInfo(_ref) {
35965
36489
  className: "value"
35966
36490
  }, requiredItem))), React.createElement(Description$4, null, description));
35967
36491
  };
35968
- var Container$C = /*#__PURE__*/styled.div.withConfig({
36492
+ var Container$E = /*#__PURE__*/styled.div.withConfig({
35969
36493
  displayName: "SpellInfo__Container",
35970
36494
  componentId: "sc-4hbw3q-0"
35971
36495
  })(["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 +36543,7 @@ var MobileSpellTooltip = function MobileSpellTooltip(_ref) {
36019
36543
  var _ref$current;
36020
36544
  (_ref$current = ref.current) == null ? void 0 : _ref$current.classList.add('fadeOut');
36021
36545
  };
36022
- return React.createElement(ModalPortal, null, React.createElement(Container$D, {
36546
+ return React.createElement(ModalPortal, null, React.createElement(Container$F, {
36023
36547
  ref: ref,
36024
36548
  onTouchEnd: function onTouchEnd() {
36025
36549
  handleFadeOut();
@@ -36044,7 +36568,7 @@ var MobileSpellTooltip = function MobileSpellTooltip(_ref) {
36044
36568
  }, option.text);
36045
36569
  }))));
36046
36570
  };
36047
- var Container$D = /*#__PURE__*/styled.div.withConfig({
36571
+ var Container$F = /*#__PURE__*/styled.div.withConfig({
36048
36572
  displayName: "MobileSpellTooltip__Container",
36049
36573
  componentId: "sc-6p7uvr-0"
36050
36574
  })(["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 +36609,13 @@ var MagicTooltip = function MagicTooltip(_ref) {
36085
36609
  }
36086
36610
  return;
36087
36611
  }, []);
36088
- return React.createElement(ModalPortal, null, React.createElement(Container$E, {
36612
+ return React.createElement(ModalPortal, null, React.createElement(Container$G, {
36089
36613
  ref: ref
36090
36614
  }, React.createElement(SpellInfoDisplay, {
36091
36615
  spell: spell
36092
36616
  })));
36093
36617
  };
36094
- var Container$E = /*#__PURE__*/styled.div.withConfig({
36618
+ var Container$G = /*#__PURE__*/styled.div.withConfig({
36095
36619
  displayName: "SpellTooltip__Container",
36096
36620
  componentId: "sc-1go0gwg-0"
36097
36621
  })(["position:absolute;z-index:100;pointer-events:none;left:0;top:0;opacity:0;transition:opacity 0.08s;"]);
@@ -36164,7 +36688,7 @@ var Spell = function Spell(_ref) {
36164
36688
  var IMAGE_SCALE = 2;
36165
36689
  return React.createElement(SpellInfoWrapper, {
36166
36690
  spell: spell
36167
- }, React.createElement(Container$F, {
36691
+ }, React.createElement(Container$H, {
36168
36692
  onPointerUp: onPointerUp == null ? void 0 : onPointerUp.bind(null, spellKey),
36169
36693
  isSettingShortcut: isSettingShortcut && !disabled,
36170
36694
  className: "spell"
@@ -36183,7 +36707,7 @@ var Spell = function Spell(_ref) {
36183
36707
  className: "mana"
36184
36708
  }, manaCost))));
36185
36709
  };
36186
- var Container$F = /*#__PURE__*/styled.button.withConfig({
36710
+ var Container$H = /*#__PURE__*/styled.button.withConfig({
36187
36711
  displayName: "Spell__Container",
36188
36712
  componentId: "sc-j96fa2-0"
36189
36713
  })(["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 +36786,7 @@ var Spellbook = function Spellbook(_ref) {
36262
36786
  height: "inherit",
36263
36787
  cancelDrag: "#spellbook-search, #shortcuts_list, .spell",
36264
36788
  scale: scale
36265
- }, React.createElement(Container$G, null, React.createElement(Title$d, null, "Learned Spells"), React.createElement(ShortcutsSetter, {
36789
+ }, React.createElement(Container$I, null, React.createElement(Title$d, null, "Learned Spells"), React.createElement(ShortcutsSetter, {
36266
36790
  setSettingShortcutIndex: setSettingShortcutIndex,
36267
36791
  settingShortcutIndex: settingShortcutIndex,
36268
36792
  shortcuts: shortcuts,
@@ -36298,7 +36822,7 @@ var Title$d = /*#__PURE__*/styled.h1.withConfig({
36298
36822
  displayName: "Spellbook__Title",
36299
36823
  componentId: "sc-r02nfq-0"
36300
36824
  })(["font-size:", " !important;margin-bottom:0 !important;"], uiFonts.size.large);
36301
- var Container$G = /*#__PURE__*/styled.div.withConfig({
36825
+ var Container$I = /*#__PURE__*/styled.div.withConfig({
36302
36826
  displayName: "Spellbook__Container",
36303
36827
  componentId: "sc-r02nfq-1"
36304
36828
  })(["width:100%;height:100%;color:white;display:flex;flex-direction:column;"]);
@@ -36780,7 +37304,7 @@ var TradingMenu = function TradingMenu(_ref) {
36780
37304
  width: "500px",
36781
37305
  cancelDrag: "#TraderContainer",
36782
37306
  scale: scale
36783
- }, React.createElement(Container$H, null, React.createElement(Title$e, null, type.charAt(0).toUpperCase() + type.slice(1), " Menu"), React.createElement("hr", {
37307
+ }, React.createElement(Container$J, null, React.createElement(Title$e, null, type.charAt(0).toUpperCase() + type.slice(1), " Menu"), React.createElement("hr", {
36784
37308
  className: "golden"
36785
37309
  }), React.createElement(ScrollWrapper, {
36786
37310
  id: "TraderContainer"
@@ -36808,7 +37332,7 @@ var TradingMenu = function TradingMenu(_ref) {
36808
37332
  onPointerDown: onClose
36809
37333
  }, "Cancel"))));
36810
37334
  };
36811
- var Container$H = /*#__PURE__*/styled.div.withConfig({
37335
+ var Container$J = /*#__PURE__*/styled.div.withConfig({
36812
37336
  displayName: "TradingMenu__Container",
36813
37337
  componentId: "sc-1wjsz1l-0"
36814
37338
  })(["width:100%;"]);
@@ -36842,11 +37366,11 @@ var Truncate = function Truncate(_ref) {
36842
37366
  var _ref$maxLines = _ref.maxLines,
36843
37367
  maxLines = _ref$maxLines === void 0 ? 1 : _ref$maxLines,
36844
37368
  children = _ref.children;
36845
- return React.createElement(Container$I, {
37369
+ return React.createElement(Container$K, {
36846
37370
  maxLines: maxLines
36847
37371
  }, children);
36848
37372
  };
36849
- var Container$I = /*#__PURE__*/styled.div.withConfig({
37373
+ var Container$K = /*#__PURE__*/styled.div.withConfig({
36850
37374
  displayName: "Truncate__Container",
36851
37375
  componentId: "sc-6x00qb-0"
36852
37376
  })(["display:-webkit-box;max-width:100%;max-height:100%;-webkit-line-clamp:", ";-webkit-box-orient:vertical;overflow:hidden;"], function (props) {
@@ -36954,7 +37478,7 @@ var TutorialStepper = /*#__PURE__*/React.memo(function (_ref) {
36954
37478
  };
36955
37479
  });
36956
37480
  }, [lessons, imageStyle]);
36957
- return React.createElement(Container$J, null, React.createElement(Stepper, {
37481
+ return React.createElement(Container$L, null, React.createElement(Stepper, {
36958
37482
  steps: generateLessons,
36959
37483
  finalCTAButton: {
36960
37484
  label: 'Close',
@@ -36971,7 +37495,7 @@ var LessonBody = /*#__PURE__*/styled.div.withConfig({
36971
37495
  displayName: "TutorialStepper__LessonBody",
36972
37496
  componentId: "sc-7tgzv2-1"
36973
37497
  })([""]);
36974
- var Container$J = /*#__PURE__*/styled.div.withConfig({
37498
+ var Container$L = /*#__PURE__*/styled.div.withConfig({
36975
37499
  displayName: "TutorialStepper__Container",
36976
37500
  componentId: "sc-7tgzv2-2"
36977
37501
  })(["width:80%;max-width:600px;@media (max-width:600px){width:95%;}"]);
@@ -36992,5 +37516,5 @@ var LessonContainer = /*#__PURE__*/styled.div.withConfig({
36992
37516
  componentId: "sc-7tgzv2-6"
36993
37517
  })(["display:flex;flex-direction:column;justify-content:space-between;min-height:200px;p{font-size:0.7rem !important;}"]);
36994
37518
 
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 };
37519
+ 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
37520
  //# sourceMappingURL=long-bow.esm.js.map