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