@rpg-engine/long-bow 0.8.47 → 0.8.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/DailyTasks/DailyTasks.d.ts +2 -1
- package/dist/index.d.ts +1 -0
- package/dist/long-bow.cjs.development.js +612 -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 +612 -86
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/DailyTasks/DailyTasks.tsx +11 -6
- package/src/index.tsx +1 -0
|
@@ -29216,6 +29216,532 @@ var EmptyState = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
29216
29216
|
componentId: "sc-19q95ue-15"
|
|
29217
29217
|
})(["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);
|
|
29218
29218
|
|
|
29219
|
+
var formatTaskKey = function formatTaskKey(key) {
|
|
29220
|
+
var formatted = key.replace(/[-_]/g, ' ');
|
|
29221
|
+
formatted = formatted.replace(/([A-Z])/g, ' $1');
|
|
29222
|
+
formatted = formatted.trim();
|
|
29223
|
+
return formatted.split(' ').map(function (word) {
|
|
29224
|
+
return word.charAt(0).toUpperCase() + word.slice(1).toLowerCase();
|
|
29225
|
+
}).join(' ');
|
|
29226
|
+
};
|
|
29227
|
+
var getTaskIcon = function getTaskIcon(taskType, difficulty) {
|
|
29228
|
+
var MapIcon = 'map-2.png';
|
|
29229
|
+
var KillMobsIconRegular = 'white-skull.png';
|
|
29230
|
+
var KillMobsIconChallenge = 'red-skull.png';
|
|
29231
|
+
var CollectItemIcon = 'inventory-2.png';
|
|
29232
|
+
var CraftItemIcon = 'crafting.png';
|
|
29233
|
+
switch (taskType) {
|
|
29234
|
+
case shared.TaskType.KillMobs:
|
|
29235
|
+
return difficulty === 'Challenge' ? KillMobsIconChallenge : KillMobsIconRegular;
|
|
29236
|
+
case shared.TaskType.CollectItems:
|
|
29237
|
+
return CollectItemIcon;
|
|
29238
|
+
case shared.TaskType.MapVisit:
|
|
29239
|
+
return MapIcon;
|
|
29240
|
+
case shared.TaskType.CraftItems:
|
|
29241
|
+
return CraftItemIcon;
|
|
29242
|
+
default:
|
|
29243
|
+
return 'check.png';
|
|
29244
|
+
}
|
|
29245
|
+
};
|
|
29246
|
+
var getStatusInfo = function getStatusInfo(task) {
|
|
29247
|
+
if (task.status === shared.TaskStatus.Completed) {
|
|
29248
|
+
return {
|
|
29249
|
+
text: 'Completed',
|
|
29250
|
+
color: uiColors.lightGreen
|
|
29251
|
+
};
|
|
29252
|
+
}
|
|
29253
|
+
if (task.claimed) {
|
|
29254
|
+
return {
|
|
29255
|
+
text: 'Claimed',
|
|
29256
|
+
color: uiColors.yellow
|
|
29257
|
+
};
|
|
29258
|
+
}
|
|
29259
|
+
var isTaskNotStarted = function () {
|
|
29260
|
+
switch (task.type) {
|
|
29261
|
+
case shared.TaskType.KillMobs:
|
|
29262
|
+
return task.type === shared.TaskType.KillMobs && Object.values(task.progress.kills || {}).every(function (kill) {
|
|
29263
|
+
return kill === 0;
|
|
29264
|
+
});
|
|
29265
|
+
case shared.TaskType.CollectItems:
|
|
29266
|
+
return task.type === shared.TaskType.CollectItems && Object.values(task.progress.collected || {}).every(function (quantity) {
|
|
29267
|
+
return quantity === 0;
|
|
29268
|
+
});
|
|
29269
|
+
case shared.TaskType.CraftItems:
|
|
29270
|
+
return task.type === shared.TaskType.CraftItems && Object.values(task.progress.crafted || {}).every(function (quantity) {
|
|
29271
|
+
return quantity === 0;
|
|
29272
|
+
});
|
|
29273
|
+
case shared.TaskType.MapVisit:
|
|
29274
|
+
return task.type === shared.TaskType.MapVisit && Object.values(task.progress.visitedMaps || {}).every(function (visited) {
|
|
29275
|
+
return !visited;
|
|
29276
|
+
});
|
|
29277
|
+
default:
|
|
29278
|
+
return false;
|
|
29279
|
+
}
|
|
29280
|
+
}();
|
|
29281
|
+
if (isTaskNotStarted) {
|
|
29282
|
+
return {
|
|
29283
|
+
text: 'Not Started',
|
|
29284
|
+
color: uiColors.lightGray
|
|
29285
|
+
};
|
|
29286
|
+
}
|
|
29287
|
+
return {
|
|
29288
|
+
text: 'In Progress',
|
|
29289
|
+
color: uiColors.blue
|
|
29290
|
+
};
|
|
29291
|
+
};
|
|
29292
|
+
var formatDifficulty = function formatDifficulty(difficulty) {
|
|
29293
|
+
return difficulty.charAt(0).toUpperCase() + difficulty.slice(1).toLowerCase();
|
|
29294
|
+
};
|
|
29295
|
+
|
|
29296
|
+
var DailyRewardsTooltip = function DailyRewardsTooltip(_ref) {
|
|
29297
|
+
var rewards = _ref.rewards,
|
|
29298
|
+
itemsAtlasJSON = _ref.itemsAtlasJSON,
|
|
29299
|
+
itemsAtlasIMG = _ref.itemsAtlasIMG;
|
|
29300
|
+
var _React$useState = React__default.useState(true),
|
|
29301
|
+
isExpanded = _React$useState[0],
|
|
29302
|
+
setIsExpanded = _React$useState[1];
|
|
29303
|
+
var sortedRewards = React__default.useMemo(function () {
|
|
29304
|
+
var _REWARD_PRIORITY;
|
|
29305
|
+
if (!rewards) return [];
|
|
29306
|
+
var REWARD_PRIORITY = (_REWARD_PRIORITY = {}, _REWARD_PRIORITY[shared.RewardType.Item] = 1, _REWARD_PRIORITY[shared.RewardType.Gold] = 2, _REWARD_PRIORITY[shared.RewardType.Experience] = 3, _REWARD_PRIORITY);
|
|
29307
|
+
var getPriority = function getPriority(type) {
|
|
29308
|
+
var _REWARD_PRIORITY$type;
|
|
29309
|
+
return (_REWARD_PRIORITY$type = REWARD_PRIORITY[type]) != null ? _REWARD_PRIORITY$type : Number.MAX_SAFE_INTEGER;
|
|
29310
|
+
};
|
|
29311
|
+
return [].concat(rewards).sort(function (a, b) {
|
|
29312
|
+
return getPriority(a.type) - getPriority(b.type);
|
|
29313
|
+
});
|
|
29314
|
+
}, [rewards]);
|
|
29315
|
+
var toggleExpand = function toggleExpand() {
|
|
29316
|
+
setIsExpanded(!isExpanded);
|
|
29317
|
+
};
|
|
29318
|
+
return React__default.createElement(TooltipContainer$1, null, React__default.createElement(CollapsibleHeader, {
|
|
29319
|
+
onClick: toggleExpand
|
|
29320
|
+
}, React__default.createElement(HeaderText, null, "Rewards?"), React__default.createElement(ExpandIcon, null, isExpanded ? '▼' : '▶')), isExpanded && React__default.createElement(CollapsibleContent, null, React__default.createElement(RewardsList, null, sortedRewards.map(function (reward, index) {
|
|
29321
|
+
var _reward$key;
|
|
29322
|
+
return React__default.createElement(RewardItem, {
|
|
29323
|
+
key: index
|
|
29324
|
+
}, React__default.createElement(SpriteFromAtlas, {
|
|
29325
|
+
atlasJSON: itemsAtlasJSON,
|
|
29326
|
+
atlasIMG: itemsAtlasIMG,
|
|
29327
|
+
spriteKey: reward.type === shared.RewardType.Gold ? 'others/gold-coin-qty-6.png' : reward.type === shared.RewardType.Experience ? 'others/royal-chalice.png' : reward.texturePath || 'others/no-image.png',
|
|
29328
|
+
width: 24,
|
|
29329
|
+
height: 24,
|
|
29330
|
+
imgScale: 1.75
|
|
29331
|
+
}), React__default.createElement(ItemContent, null, React__default.createElement(RewardLabel, null, React__default.createElement(Ellipsis, {
|
|
29332
|
+
maxWidth: "100%",
|
|
29333
|
+
maxLines: 2
|
|
29334
|
+
}, formatTaskKey((_reward$key = reward.key) != null ? _reward$key : ''), ":"))), React__default.createElement(RewardValue, null, "x", reward.quantity));
|
|
29335
|
+
}))));
|
|
29336
|
+
};
|
|
29337
|
+
var TooltipContainer$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
29338
|
+
displayName: "DailyRewardsTooltip__TooltipContainer",
|
|
29339
|
+
componentId: "sc-wxzcu4-0"
|
|
29340
|
+
})(["position:relative;display:flex;flex-direction:column;width:100%;"]);
|
|
29341
|
+
var RewardsList = /*#__PURE__*/styled__default.div.withConfig({
|
|
29342
|
+
displayName: "DailyRewardsTooltip__RewardsList",
|
|
29343
|
+
componentId: "sc-wxzcu4-1"
|
|
29344
|
+
})(["display:flex;flex-direction:column;gap:8px;width:100%;"]);
|
|
29345
|
+
var CollapsibleHeader = /*#__PURE__*/styled__default.div.withConfig({
|
|
29346
|
+
displayName: "DailyRewardsTooltip__CollapsibleHeader",
|
|
29347
|
+
componentId: "sc-wxzcu4-2"
|
|
29348
|
+
})(["display:flex;justify-content:space-between;align-items:center;cursor:pointer;border-bottom:1px solid ", ";width:100%;"], uiColors.darkGray);
|
|
29349
|
+
var HeaderText = /*#__PURE__*/styled__default.span.withConfig({
|
|
29350
|
+
displayName: "DailyRewardsTooltip__HeaderText",
|
|
29351
|
+
componentId: "sc-wxzcu4-3"
|
|
29352
|
+
})(["color:", " !important;"], uiColors.yellow);
|
|
29353
|
+
var ExpandIcon = /*#__PURE__*/styled__default.span.withConfig({
|
|
29354
|
+
displayName: "DailyRewardsTooltip__ExpandIcon",
|
|
29355
|
+
componentId: "sc-wxzcu4-4"
|
|
29356
|
+
})(["color:", ";font-size:0.8rem;margin-left:8px;"], uiColors.yellow);
|
|
29357
|
+
var CollapsibleContent = /*#__PURE__*/styled__default.div.withConfig({
|
|
29358
|
+
displayName: "DailyRewardsTooltip__CollapsibleContent",
|
|
29359
|
+
componentId: "sc-wxzcu4-5"
|
|
29360
|
+
})(["display:block;padding-top:8px;width:100%;"]);
|
|
29361
|
+
var RewardItem = /*#__PURE__*/styled__default.div.withConfig({
|
|
29362
|
+
displayName: "DailyRewardsTooltip__RewardItem",
|
|
29363
|
+
componentId: "sc-wxzcu4-6"
|
|
29364
|
+
})(["display:flex;align-items:center;gap:12px;width:100%;min-width:200px;"]);
|
|
29365
|
+
var ItemContent = /*#__PURE__*/styled__default.div.withConfig({
|
|
29366
|
+
displayName: "DailyRewardsTooltip__ItemContent",
|
|
29367
|
+
componentId: "sc-wxzcu4-7"
|
|
29368
|
+
})(["display:flex;flex-direction:column;justify-content:center;"]);
|
|
29369
|
+
var RewardLabel = /*#__PURE__*/styled__default.span.withConfig({
|
|
29370
|
+
displayName: "DailyRewardsTooltip__RewardLabel",
|
|
29371
|
+
componentId: "sc-wxzcu4-8"
|
|
29372
|
+
})(["color:", ";font-size:0.9rem;line-height:1.2;display:inline-flex;align-items:center;"], uiColors.yellow);
|
|
29373
|
+
var RewardValue = /*#__PURE__*/styled__default.span.withConfig({
|
|
29374
|
+
displayName: "DailyRewardsTooltip__RewardValue",
|
|
29375
|
+
componentId: "sc-wxzcu4-9"
|
|
29376
|
+
})(["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);
|
|
29377
|
+
|
|
29378
|
+
var ReadOnlyCheckItem = function ReadOnlyCheckItem(_ref) {
|
|
29379
|
+
var labelLeft = _ref.labelLeft,
|
|
29380
|
+
labelRight = _ref.labelRight,
|
|
29381
|
+
checked = _ref.checked;
|
|
29382
|
+
return React__default.createElement(Container$e, null, labelLeft && React__default.createElement(Label, null, labelLeft), React__default.createElement("div", {
|
|
29383
|
+
className: "rpgui-checkbox-container"
|
|
29384
|
+
}, React__default.createElement(CheckBox, {
|
|
29385
|
+
className: "rpgui-checkbox",
|
|
29386
|
+
type: "checkbox",
|
|
29387
|
+
checked: checked,
|
|
29388
|
+
readOnly: true
|
|
29389
|
+
}), React__default.createElement("label", null)), labelRight && React__default.createElement(Label, {
|
|
29390
|
+
isRight: true
|
|
29391
|
+
}, labelRight));
|
|
29392
|
+
};
|
|
29393
|
+
var Container$e = /*#__PURE__*/styled__default.div.withConfig({
|
|
29394
|
+
displayName: "ReadOnlyCheckItem__Container",
|
|
29395
|
+
componentId: "sc-1peplf9-0"
|
|
29396
|
+
})(["display:flex;align-items:center;width:100%;height:20px;"]);
|
|
29397
|
+
var Label = /*#__PURE__*/styled__default.span.withConfig({
|
|
29398
|
+
displayName: "ReadOnlyCheckItem__Label",
|
|
29399
|
+
componentId: "sc-1peplf9-1"
|
|
29400
|
+
})(["", ""], function (_ref2) {
|
|
29401
|
+
var isRight = _ref2.isRight;
|
|
29402
|
+
return isRight ? 'margin-left: auto;' : 'margin-right: auto;';
|
|
29403
|
+
});
|
|
29404
|
+
var CheckBox = /*#__PURE__*/styled__default.input.attrs({
|
|
29405
|
+
type: 'checkbox'
|
|
29406
|
+
}).withConfig({
|
|
29407
|
+
displayName: "ReadOnlyCheckItem__CheckBox",
|
|
29408
|
+
componentId: "sc-1peplf9-2"
|
|
29409
|
+
})([""]);
|
|
29410
|
+
|
|
29411
|
+
var TaskProgressDetails = function TaskProgressDetails(_ref) {
|
|
29412
|
+
var _progressRenderers;
|
|
29413
|
+
var task = _ref.task;
|
|
29414
|
+
var progress = task.progress,
|
|
29415
|
+
type = task.type;
|
|
29416
|
+
var progressRenderers = (_progressRenderers = {}, _progressRenderers[shared.TaskType.KillMobs] = function () {
|
|
29417
|
+
return progress.kills && Object.entries(progress.kills).map(function (_ref2, index) {
|
|
29418
|
+
var _task$requirements$ta;
|
|
29419
|
+
var key = _ref2[0],
|
|
29420
|
+
value = _ref2[1];
|
|
29421
|
+
return React__default.createElement(ProgressItem, {
|
|
29422
|
+
key: index
|
|
29423
|
+
}, React__default.createElement("span", null, formatTaskKey(key), ":"), React__default.createElement(ProgressCount, null, value, "/", ((_task$requirements$ta = task.requirements.targets.find(function (t) {
|
|
29424
|
+
return t.key === key;
|
|
29425
|
+
})) == null ? void 0 : _task$requirements$ta.quantity) || 0));
|
|
29426
|
+
});
|
|
29427
|
+
}, _progressRenderers[shared.TaskType.CollectItems] = function () {
|
|
29428
|
+
return Object.entries(progress.collected || {}).map(function (_ref3, index) {
|
|
29429
|
+
var _task$requirements$ta2;
|
|
29430
|
+
var key = _ref3[0],
|
|
29431
|
+
value = _ref3[1];
|
|
29432
|
+
return React__default.createElement(ProgressItem, {
|
|
29433
|
+
key: index
|
|
29434
|
+
}, React__default.createElement("span", null, key, ":"), React__default.createElement(ProgressCount, null, value, "/", ((_task$requirements$ta2 = task.requirements.targets.find(function (t) {
|
|
29435
|
+
return t.key === key;
|
|
29436
|
+
})) == null ? void 0 : _task$requirements$ta2.quantity) || 0));
|
|
29437
|
+
});
|
|
29438
|
+
}, _progressRenderers[shared.TaskType.CraftItems] = function () {
|
|
29439
|
+
return Object.entries(progress.crafted || {}).map(function (_ref4, index) {
|
|
29440
|
+
var _task$requirements$ta3;
|
|
29441
|
+
var key = _ref4[0],
|
|
29442
|
+
value = _ref4[1];
|
|
29443
|
+
return React__default.createElement(ProgressItem, {
|
|
29444
|
+
key: index
|
|
29445
|
+
}, React__default.createElement("span", null, formatTaskKey(key), ":"), React__default.createElement(ProgressCount, null, value, "/", ((_task$requirements$ta3 = task.requirements.targets.find(function (t) {
|
|
29446
|
+
return t.key === key;
|
|
29447
|
+
})) == null ? void 0 : _task$requirements$ta3.quantity) || 0));
|
|
29448
|
+
});
|
|
29449
|
+
}, _progressRenderers[shared.TaskType.MapVisit] = function () {
|
|
29450
|
+
return Object.entries(progress.visitedMaps || {}).map(function (_ref5, index) {
|
|
29451
|
+
var mapName = _ref5[0],
|
|
29452
|
+
visited = _ref5[1];
|
|
29453
|
+
return React__default.createElement(ProgressItem, {
|
|
29454
|
+
key: index
|
|
29455
|
+
}, React__default.createElement(CheckItemWrapper, null, React__default.createElement(ReadOnlyCheckItem, {
|
|
29456
|
+
labelLeft: formatTaskKey(mapName),
|
|
29457
|
+
checked: visited
|
|
29458
|
+
})));
|
|
29459
|
+
});
|
|
29460
|
+
}, _progressRenderers);
|
|
29461
|
+
return React__default.createElement(ProgressList, null, progressRenderers[type] ? progressRenderers[type]() : null);
|
|
29462
|
+
};
|
|
29463
|
+
var ProgressList = /*#__PURE__*/styled__default.div.withConfig({
|
|
29464
|
+
displayName: "TaskProgressDetails__ProgressList",
|
|
29465
|
+
componentId: "sc-hm6sp1-0"
|
|
29466
|
+
})(["display:flex;flex-direction:column;gap:8px;"]);
|
|
29467
|
+
var ProgressItem = /*#__PURE__*/styled__default.div.withConfig({
|
|
29468
|
+
displayName: "TaskProgressDetails__ProgressItem",
|
|
29469
|
+
componentId: "sc-hm6sp1-1"
|
|
29470
|
+
})(["display:flex;justify-content:space-between;align-items:center;"]);
|
|
29471
|
+
var ProgressCount = /*#__PURE__*/styled__default.span.withConfig({
|
|
29472
|
+
displayName: "TaskProgressDetails__ProgressCount",
|
|
29473
|
+
componentId: "sc-hm6sp1-2"
|
|
29474
|
+
})(["color:", " !important;"], uiColors.white);
|
|
29475
|
+
var CheckItemWrapper = /*#__PURE__*/styled__default.div.withConfig({
|
|
29476
|
+
displayName: "TaskProgressDetails__CheckItemWrapper",
|
|
29477
|
+
componentId: "sc-hm6sp1-3"
|
|
29478
|
+
})(["display:flex;justify-content:center;width:100%;height:20px;input.rpgui-checkbox + label{margin:0 !important;padding-left:23px !important;}"]);
|
|
29479
|
+
|
|
29480
|
+
var TaskProgress = function TaskProgress(_ref) {
|
|
29481
|
+
var task = _ref.task,
|
|
29482
|
+
itemsAtlasJSON = _ref.itemsAtlasJSON,
|
|
29483
|
+
itemsAtlasIMG = _ref.itemsAtlasIMG,
|
|
29484
|
+
iconAtlasJSON = _ref.iconAtlasJSON,
|
|
29485
|
+
iconAtlasIMG = _ref.iconAtlasIMG;
|
|
29486
|
+
var difficulty = task.difficulty;
|
|
29487
|
+
return React__default.createElement(ProgressContainer, null, React__default.createElement(ProgressList$1, null, React__default.createElement(ProgressItem$1, null, React__default.createElement(ProgressLabel, null, "Difficulty:"), React__default.createElement(TaskDifficulty, {
|
|
29488
|
+
difficulty: difficulty
|
|
29489
|
+
}, formatDifficulty(difficulty))), React__default.createElement(ProgressItem$1, null, React__default.createElement(ProgressLabel, null, "Status:"), React__default.createElement(StatusText, {
|
|
29490
|
+
color: getStatusInfo(task).color
|
|
29491
|
+
}, getStatusInfo(task).text)), React__default.createElement(TaskProgressDetails, {
|
|
29492
|
+
task: task
|
|
29493
|
+
}), task.rewards && task.rewards.length > 0 && React__default.createElement(ProgressItem$1, null, React__default.createElement(DailyRewardsTooltip, {
|
|
29494
|
+
rewards: task.rewards,
|
|
29495
|
+
itemsAtlasJSON: itemsAtlasJSON,
|
|
29496
|
+
itemsAtlasIMG: itemsAtlasIMG,
|
|
29497
|
+
iconAtlasJSON: iconAtlasJSON,
|
|
29498
|
+
iconAtlasIMG: iconAtlasIMG
|
|
29499
|
+
}))));
|
|
29500
|
+
};
|
|
29501
|
+
var ProgressContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
29502
|
+
displayName: "TaskProgress__ProgressContainer",
|
|
29503
|
+
componentId: "sc-1ejoyu-0"
|
|
29504
|
+
})(["width:100%;position:relative;"]);
|
|
29505
|
+
var ProgressList$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
29506
|
+
displayName: "TaskProgress__ProgressList",
|
|
29507
|
+
componentId: "sc-1ejoyu-1"
|
|
29508
|
+
})(["display:flex;flex-direction:column;gap:6px;"]);
|
|
29509
|
+
var ProgressItem$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
29510
|
+
displayName: "TaskProgress__ProgressItem",
|
|
29511
|
+
componentId: "sc-1ejoyu-2"
|
|
29512
|
+
})(["display:flex;justify-content:space-between;align-items:center;"]);
|
|
29513
|
+
var ProgressLabel = /*#__PURE__*/styled__default.span.withConfig({
|
|
29514
|
+
displayName: "TaskProgress__ProgressLabel",
|
|
29515
|
+
componentId: "sc-1ejoyu-3"
|
|
29516
|
+
})(["color:", " !important;"], uiColors.white);
|
|
29517
|
+
var TaskDifficulty = /*#__PURE__*/styled__default.span.withConfig({
|
|
29518
|
+
displayName: "TaskProgress__TaskDifficulty",
|
|
29519
|
+
componentId: "sc-1ejoyu-4"
|
|
29520
|
+
})(["color:", " !important;"], function (props) {
|
|
29521
|
+
return props.difficulty.toLowerCase() === 'challenge' ? uiColors.red : uiColors.lightGray;
|
|
29522
|
+
});
|
|
29523
|
+
var StatusText = /*#__PURE__*/styled__default.span.withConfig({
|
|
29524
|
+
displayName: "TaskProgress__StatusText",
|
|
29525
|
+
componentId: "sc-1ejoyu-5"
|
|
29526
|
+
})(["color:", " !important;font-weight:bold;"], function (props) {
|
|
29527
|
+
return props.color;
|
|
29528
|
+
});
|
|
29529
|
+
|
|
29530
|
+
var DailyTaskItem = function DailyTaskItem(_ref) {
|
|
29531
|
+
var _task$name;
|
|
29532
|
+
var task = _ref.task,
|
|
29533
|
+
spriteKey = _ref.spriteKey,
|
|
29534
|
+
onClaimReward = _ref.onClaimReward,
|
|
29535
|
+
itemsAtlasJSON = _ref.itemsAtlasJSON,
|
|
29536
|
+
itemsAtlasIMG = _ref.itemsAtlasIMG,
|
|
29537
|
+
iconAtlasJSON = _ref.iconAtlasJSON,
|
|
29538
|
+
iconAtlasIMG = _ref.iconAtlasIMG;
|
|
29539
|
+
var isMobile = shared.isMobileOrTablet();
|
|
29540
|
+
var isCompleted = task.status === shared.TaskStatus.Completed;
|
|
29541
|
+
var isClaimed = task.claimed;
|
|
29542
|
+
var handleClaimReward = function handleClaimReward() {
|
|
29543
|
+
onClaimReward(task.key, task.type);
|
|
29544
|
+
};
|
|
29545
|
+
return React__default.createElement(TaskContainer, null, React__default.createElement(TaskHeader, null, iconAtlasJSON && iconAtlasIMG && React__default.createElement(NonInteractiveWrapper, null, React__default.createElement(SpriteFromAtlas, {
|
|
29546
|
+
atlasJSON: iconAtlasJSON,
|
|
29547
|
+
atlasIMG: iconAtlasIMG,
|
|
29548
|
+
spriteKey: spriteKey,
|
|
29549
|
+
width: 12,
|
|
29550
|
+
height: 12,
|
|
29551
|
+
imgScale: 2.75
|
|
29552
|
+
})), React__default.createElement(TaskContent, null, React__default.createElement(TaskTitle, null, React__default.createElement(Ellipsis, {
|
|
29553
|
+
maxWidth: "100%",
|
|
29554
|
+
maxLines: isMobile ? 3 : 2
|
|
29555
|
+
}, (_task$name = task.name) != null ? _task$name : formatTaskKey(task.key))), React__default.createElement(TaskDescription, null, React__default.createElement(Ellipsis, {
|
|
29556
|
+
maxWidth: "100%",
|
|
29557
|
+
maxLines: isMobile ? 5 : 3
|
|
29558
|
+
}, task.description)))), React__default.createElement(TaskProgress, {
|
|
29559
|
+
task: task,
|
|
29560
|
+
itemsAtlasJSON: itemsAtlasJSON,
|
|
29561
|
+
itemsAtlasIMG: itemsAtlasIMG
|
|
29562
|
+
}), isCompleted && !isClaimed && React__default.createElement(CollectWrapper, null, React__default.createElement(Button, {
|
|
29563
|
+
buttonType: exports.ButtonTypes.RPGUIButton,
|
|
29564
|
+
onPointerDown: handleClaimReward
|
|
29565
|
+
}, "Collect Reward")), isClaimed && React__default.createElement(ClaimedText, null, "Reward Claimed"));
|
|
29566
|
+
};
|
|
29567
|
+
var TaskContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
29568
|
+
displayName: "DailyTaskItem__TaskContainer",
|
|
29569
|
+
componentId: "sc-45bxmt-0"
|
|
29570
|
+
})(["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);
|
|
29571
|
+
var TaskHeader = /*#__PURE__*/styled__default.div.withConfig({
|
|
29572
|
+
displayName: "DailyTaskItem__TaskHeader",
|
|
29573
|
+
componentId: "sc-45bxmt-1"
|
|
29574
|
+
})(["display:flex;width:100%;justify-content:center;border-bottom:1.3px solid ", ";"], uiColors.darkGray);
|
|
29575
|
+
var NonInteractiveWrapper = /*#__PURE__*/styled__default.div.withConfig({
|
|
29576
|
+
displayName: "DailyTaskItem__NonInteractiveWrapper",
|
|
29577
|
+
componentId: "sc-45bxmt-2"
|
|
29578
|
+
})(["pointer-events:none;user-select:none;margin-top:5px;"]);
|
|
29579
|
+
var TaskContent = /*#__PURE__*/styled__default.div.withConfig({
|
|
29580
|
+
displayName: "DailyTaskItem__TaskContent",
|
|
29581
|
+
componentId: "sc-45bxmt-3"
|
|
29582
|
+
})(["display:flex;flex-direction:column;flex:1;"]);
|
|
29583
|
+
var TaskTitle = /*#__PURE__*/styled__default.h3.withConfig({
|
|
29584
|
+
displayName: "DailyTaskItem__TaskTitle",
|
|
29585
|
+
componentId: "sc-45bxmt-4"
|
|
29586
|
+
})(["&&{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);
|
|
29587
|
+
var TaskDescription = /*#__PURE__*/styled__default.h3.withConfig({
|
|
29588
|
+
displayName: "DailyTaskItem__TaskDescription",
|
|
29589
|
+
componentId: "sc-45bxmt-5"
|
|
29590
|
+
})(["font-size:0.6rem !important;text-decoration:none !important;a"]);
|
|
29591
|
+
var ClaimedText = /*#__PURE__*/styled__default.span.withConfig({
|
|
29592
|
+
displayName: "DailyTaskItem__ClaimedText",
|
|
29593
|
+
componentId: "sc-45bxmt-6"
|
|
29594
|
+
})(["color:", ";font-size:0.9rem;text-align:center;font-weight:bold;"], uiColors.green);
|
|
29595
|
+
var CollectWrapper = /*#__PURE__*/styled__default.div.withConfig({
|
|
29596
|
+
displayName: "DailyTaskItem__CollectWrapper",
|
|
29597
|
+
componentId: "sc-45bxmt-7"
|
|
29598
|
+
})(["&&{width:100% !important;display:flex !important;justify-content:center !important;align-items:center !important;margin:5px 0 !important;}"]);
|
|
29599
|
+
|
|
29600
|
+
var GlobalDailyProgress = function GlobalDailyProgress(_ref) {
|
|
29601
|
+
var tasks = _ref.tasks,
|
|
29602
|
+
onClaimAllRewards = _ref.onClaimAllRewards;
|
|
29603
|
+
var totalTasks = tasks.length;
|
|
29604
|
+
var completedTasks = tasks.filter(function (task) {
|
|
29605
|
+
return task.status === shared.TaskStatus.Completed;
|
|
29606
|
+
}).length;
|
|
29607
|
+
var claimedTasks = tasks.filter(function (task) {
|
|
29608
|
+
return task.claimed === true;
|
|
29609
|
+
}).length;
|
|
29610
|
+
var allCompleted = completedTasks === totalTasks;
|
|
29611
|
+
var allClaimed = claimedTasks === totalTasks;
|
|
29612
|
+
var _React$useState = React__default.useState(false),
|
|
29613
|
+
isClaimed = _React$useState[0],
|
|
29614
|
+
setIsClaimed = _React$useState[1];
|
|
29615
|
+
var handleClaimAll = function handleClaimAll(tasks) {
|
|
29616
|
+
onClaimAllRewards(tasks);
|
|
29617
|
+
setIsClaimed(true);
|
|
29618
|
+
};
|
|
29619
|
+
return React__default.createElement(GlobalProgressContainer, null, React__default.createElement(HeaderContainer$1, null, React__default.createElement(GlobeIcon, null, "\uD83C\uDF0D"), React__default.createElement(ProgressText, null, "Global Tasks Completed: ", completedTasks, "/", totalTasks)), React__default.createElement(ProgressBar, null, React__default.createElement(ProgressFill, {
|
|
29620
|
+
percentage: completedTasks / totalTasks * 100
|
|
29621
|
+
})), totalTasks > 0 && allCompleted && allClaimed && React__default.createElement(React__default.Fragment, null, isClaimed ? React__default.createElement(ClaimedText$1, null, "Global Rewards Claimed") : React__default.createElement(CollectWrapper$1, null, React__default.createElement(Button, {
|
|
29622
|
+
buttonType: exports.ButtonTypes.RPGUIButton,
|
|
29623
|
+
onPointerDown: handleClaimAll
|
|
29624
|
+
}, "Collect Global Rewards"))));
|
|
29625
|
+
};
|
|
29626
|
+
var GlobalProgressContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
29627
|
+
displayName: "GlobalDailyProgress__GlobalProgressContainer",
|
|
29628
|
+
componentId: "sc-d7q4xm-0"
|
|
29629
|
+
})(["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);
|
|
29630
|
+
var HeaderContainer$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
29631
|
+
displayName: "GlobalDailyProgress__HeaderContainer",
|
|
29632
|
+
componentId: "sc-d7q4xm-1"
|
|
29633
|
+
})(["display:flex;align-items:center;gap:8px;margin-bottom:8px;"]);
|
|
29634
|
+
var GlobeIcon = /*#__PURE__*/styled__default.span.withConfig({
|
|
29635
|
+
displayName: "GlobalDailyProgress__GlobeIcon",
|
|
29636
|
+
componentId: "sc-d7q4xm-2"
|
|
29637
|
+
})(["font-size:1.5rem !important;line-height:1;color:", ";display:flex;align-items:center;justify-content:center;"], uiColors.blue);
|
|
29638
|
+
var ProgressText = /*#__PURE__*/styled__default.div.withConfig({
|
|
29639
|
+
displayName: "GlobalDailyProgress__ProgressText",
|
|
29640
|
+
componentId: "sc-d7q4xm-3"
|
|
29641
|
+
})(["color:", ";text-align:center !important;margin-top:8px;line-height:1.2;"], uiColors.white);
|
|
29642
|
+
var ProgressBar = /*#__PURE__*/styled__default.div.withConfig({
|
|
29643
|
+
displayName: "GlobalDailyProgress__ProgressBar",
|
|
29644
|
+
componentId: "sc-d7q4xm-4"
|
|
29645
|
+
})(["width:100%;height:8px;background:", ";border-radius:4px;overflow:hidden;"], uiColors.darkGray);
|
|
29646
|
+
var ProgressFill = /*#__PURE__*/styled__default.div.withConfig({
|
|
29647
|
+
displayName: "GlobalDailyProgress__ProgressFill",
|
|
29648
|
+
componentId: "sc-d7q4xm-5"
|
|
29649
|
+
})(["width:", "%;height:100%;background:", ";transition:width 0.3s ease;"], function (props) {
|
|
29650
|
+
return props.percentage;
|
|
29651
|
+
}, uiColors.green);
|
|
29652
|
+
var ClaimedText$1 = /*#__PURE__*/styled__default.span.withConfig({
|
|
29653
|
+
displayName: "GlobalDailyProgress__ClaimedText",
|
|
29654
|
+
componentId: "sc-d7q4xm-6"
|
|
29655
|
+
})(["color:", ";font-size:0.9rem;text-align:center;margin-top:8px;font-weight:bold;"], uiColors.green);
|
|
29656
|
+
var CollectWrapper$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
29657
|
+
displayName: "GlobalDailyProgress__CollectWrapper",
|
|
29658
|
+
componentId: "sc-d7q4xm-7"
|
|
29659
|
+
})(["&&{width:100% !important;display:flex !important;justify-content:center !important;align-items:center !important;margin:5px 0 !important;}"]);
|
|
29660
|
+
|
|
29661
|
+
var DailyTasks = function DailyTasks(_ref) {
|
|
29662
|
+
var tasks = _ref.tasks,
|
|
29663
|
+
onClaimReward = _ref.onClaimReward,
|
|
29664
|
+
onClaimGlobalReward = _ref.onClaimGlobalReward,
|
|
29665
|
+
onClose = _ref.onClose,
|
|
29666
|
+
_ref$scale = _ref.scale,
|
|
29667
|
+
scale = _ref$scale === void 0 ? 1 : _ref$scale,
|
|
29668
|
+
itemsAtlasJSON = _ref.itemsAtlasJSON,
|
|
29669
|
+
itemsAtlasIMG = _ref.itemsAtlasIMG,
|
|
29670
|
+
iconAtlasJSON = _ref.iconAtlasJSON,
|
|
29671
|
+
iconAtlasIMG = _ref.iconAtlasIMG;
|
|
29672
|
+
var _React$useState = React__default.useState(tasks),
|
|
29673
|
+
localTasks = _React$useState[0],
|
|
29674
|
+
setLocalTasks = _React$useState[1];
|
|
29675
|
+
var size = useResponsiveSize(scale);
|
|
29676
|
+
var handleClaimReward = function handleClaimReward(taskKey, type) {
|
|
29677
|
+
setLocalTasks(function (prevTasks) {
|
|
29678
|
+
return prevTasks.map(function (task) {
|
|
29679
|
+
return task.key === taskKey ? _extends({}, task, {
|
|
29680
|
+
claimed: true
|
|
29681
|
+
}) : task;
|
|
29682
|
+
});
|
|
29683
|
+
});
|
|
29684
|
+
onClaimReward({
|
|
29685
|
+
type: type,
|
|
29686
|
+
taskKey: taskKey
|
|
29687
|
+
});
|
|
29688
|
+
};
|
|
29689
|
+
var handleClaimAllRewards = function handleClaimAllRewards() {
|
|
29690
|
+
var tasksToReward = localTasks.filter(function (task) {
|
|
29691
|
+
return task.status === shared.TaskStatus.Completed && !task.claimed;
|
|
29692
|
+
}).map(function (task) {
|
|
29693
|
+
return {
|
|
29694
|
+
type: task.type,
|
|
29695
|
+
taskKey: task.key
|
|
29696
|
+
};
|
|
29697
|
+
});
|
|
29698
|
+
onClaimGlobalReward({
|
|
29699
|
+
tasks: tasksToReward
|
|
29700
|
+
});
|
|
29701
|
+
};
|
|
29702
|
+
if (!size) return null;
|
|
29703
|
+
return React__default.createElement(TasksContainer, {
|
|
29704
|
+
type: exports.RPGUIContainerTypes.Framed,
|
|
29705
|
+
onCloseButton: onClose,
|
|
29706
|
+
cancelDrag: ".tasks-container",
|
|
29707
|
+
scale: scale,
|
|
29708
|
+
width: size.width,
|
|
29709
|
+
height: size.height
|
|
29710
|
+
}, React__default.createElement(TaskTitle$1, null, "Daily Tasks"), React__default.createElement(Container$f, null, React__default.createElement(TasksList, {
|
|
29711
|
+
className: "tasks-container"
|
|
29712
|
+
}, React__default.createElement(GlobalDailyProgress, {
|
|
29713
|
+
tasks: localTasks,
|
|
29714
|
+
onClaimAllRewards: handleClaimAllRewards
|
|
29715
|
+
}), localTasks.map(function (task) {
|
|
29716
|
+
return React__default.createElement(DailyTaskItem, {
|
|
29717
|
+
key: task.key,
|
|
29718
|
+
task: task,
|
|
29719
|
+
spriteKey: getTaskIcon(task.type, task.difficulty),
|
|
29720
|
+
onClaimReward: handleClaimReward,
|
|
29721
|
+
itemsAtlasJSON: itemsAtlasJSON,
|
|
29722
|
+
itemsAtlasIMG: itemsAtlasIMG,
|
|
29723
|
+
iconAtlasJSON: iconAtlasJSON,
|
|
29724
|
+
iconAtlasIMG: iconAtlasIMG
|
|
29725
|
+
});
|
|
29726
|
+
}))));
|
|
29727
|
+
};
|
|
29728
|
+
var TasksContainer = /*#__PURE__*/styled__default(DraggableContainer).withConfig({
|
|
29729
|
+
displayName: "DailyTasks__TasksContainer",
|
|
29730
|
+
componentId: "sc-ittn77-0"
|
|
29731
|
+
})(["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;}"]);
|
|
29732
|
+
var Container$f = /*#__PURE__*/styled__default.div.withConfig({
|
|
29733
|
+
displayName: "DailyTasks__Container",
|
|
29734
|
+
componentId: "sc-ittn77-1"
|
|
29735
|
+
})(["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;}"]);
|
|
29736
|
+
var TasksList = /*#__PURE__*/styled__default.div.withConfig({
|
|
29737
|
+
displayName: "DailyTasks__TasksList",
|
|
29738
|
+
componentId: "sc-ittn77-2"
|
|
29739
|
+
})(["display:flex;flex-direction:column;gap:12px;padding:15px;max-height:70vh;"]);
|
|
29740
|
+
var TaskTitle$1 = /*#__PURE__*/styled__default.h2.withConfig({
|
|
29741
|
+
displayName: "DailyTasks__TaskTitle",
|
|
29742
|
+
componentId: "sc-ittn77-3"
|
|
29743
|
+
})(["color:", " !important;text-align:center;padding-right:30px !important;font-size:1.4rem !important;width:100%;"], uiColors.yellow);
|
|
29744
|
+
|
|
29219
29745
|
// Memoize the styled components since they don't depend on props that change frequently
|
|
29220
29746
|
var DPadButton = /*#__PURE__*/React.memo( /*#__PURE__*/styled__default.div.withConfig({
|
|
29221
29747
|
displayName: "JoystickDPad__DPadButton",
|
|
@@ -29575,7 +30101,7 @@ var DraggedItem = function DraggedItem(_ref) {
|
|
|
29575
30101
|
var centeredX = x - OFFSET$1;
|
|
29576
30102
|
var centeredY = y - OFFSET$1;
|
|
29577
30103
|
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);
|
|
29578
|
-
return React__default.createElement(Container$
|
|
30104
|
+
return React__default.createElement(Container$g, null, React__default.createElement(SpriteContainer, {
|
|
29579
30105
|
x: centeredX,
|
|
29580
30106
|
y: centeredY
|
|
29581
30107
|
}, React__default.createElement(SpriteFromAtlas, {
|
|
@@ -29593,7 +30119,7 @@ var DraggedItem = function DraggedItem(_ref) {
|
|
|
29593
30119
|
}), stackInfo));
|
|
29594
30120
|
};
|
|
29595
30121
|
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";
|
|
29596
|
-
var Container$
|
|
30122
|
+
var Container$g = /*#__PURE__*/styled__default.div.withConfig({
|
|
29597
30123
|
displayName: "DraggedItem__Container",
|
|
29598
30124
|
componentId: "sc-mlzzcp-0"
|
|
29599
30125
|
})(["position:relative;"]);
|
|
@@ -29631,7 +30157,7 @@ var RelativeListMenu = function RelativeListMenu(_ref) {
|
|
|
29631
30157
|
document.removeEventListener('clickOutside', function (_e) {});
|
|
29632
30158
|
};
|
|
29633
30159
|
}, []);
|
|
29634
|
-
return React__default.createElement(ModalPortal, null, React__default.createElement(Container$
|
|
30160
|
+
return React__default.createElement(ModalPortal, null, React__default.createElement(Container$h, Object.assign({
|
|
29635
30161
|
fontSize: fontSize,
|
|
29636
30162
|
ref: ref
|
|
29637
30163
|
}, pos), React__default.createElement("ul", {
|
|
@@ -29648,7 +30174,7 @@ var RelativeListMenu = function RelativeListMenu(_ref) {
|
|
|
29648
30174
|
}, (params == null ? void 0 : params.text) || 'No text');
|
|
29649
30175
|
}))));
|
|
29650
30176
|
};
|
|
29651
|
-
var Container$
|
|
30177
|
+
var Container$h = /*#__PURE__*/styled__default.div.withConfig({
|
|
29652
30178
|
displayName: "RelativeListMenu__Container",
|
|
29653
30179
|
componentId: "sc-7hohf-0"
|
|
29654
30180
|
})(["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) {
|
|
@@ -29922,7 +30448,7 @@ var SearchFriend = function SearchFriend(_ref) {
|
|
|
29922
30448
|
title: "Requests (" + friendRequests.length + ")",
|
|
29923
30449
|
content: requestsTabContent
|
|
29924
30450
|
}];
|
|
29925
|
-
return React__default.createElement(Container$
|
|
30451
|
+
return React__default.createElement(Container$i, null, React__default.createElement(InternalTabs, {
|
|
29926
30452
|
tabs: tabs,
|
|
29927
30453
|
activeTextColor: "#000",
|
|
29928
30454
|
inactiveColor: "#777",
|
|
@@ -29964,7 +30490,7 @@ var FriendRequestSection = function FriendRequestSection(_ref3) {
|
|
|
29964
30490
|
}, "Reject")));
|
|
29965
30491
|
})));
|
|
29966
30492
|
};
|
|
29967
|
-
var Container$
|
|
30493
|
+
var Container$i = /*#__PURE__*/styled__default.div.withConfig({
|
|
29968
30494
|
displayName: "SearchFriend__Container",
|
|
29969
30495
|
componentId: "sc-1lt1ols-0"
|
|
29970
30496
|
})(["display:flex;flex-direction:column;gap:1rem;"]);
|
|
@@ -30167,7 +30693,7 @@ var NPCDialogText = function NPCDialogText(_ref) {
|
|
|
30167
30693
|
var _useState2 = React.useState(false),
|
|
30168
30694
|
showGoNextIndicator = _useState2[0],
|
|
30169
30695
|
setShowGoNextIndicator = _useState2[1];
|
|
30170
|
-
return React__default.createElement(Container$
|
|
30696
|
+
return React__default.createElement(Container$j, null, React__default.createElement(DynamicText, {
|
|
30171
30697
|
text: (textChunks == null ? void 0 : textChunks[chunkIndex]) || '',
|
|
30172
30698
|
onFinish: function onFinish() {
|
|
30173
30699
|
setShowGoNextIndicator(true);
|
|
@@ -30185,7 +30711,7 @@ var NPCDialogText = function NPCDialogText(_ref) {
|
|
|
30185
30711
|
}
|
|
30186
30712
|
}));
|
|
30187
30713
|
};
|
|
30188
|
-
var Container$
|
|
30714
|
+
var Container$j = /*#__PURE__*/styled__default.div.withConfig({
|
|
30189
30715
|
displayName: "NPCDialogText__Container",
|
|
30190
30716
|
componentId: "sc-1cxkdh9-0"
|
|
30191
30717
|
})([""]);
|
|
@@ -30337,7 +30863,7 @@ var QuestionDialog = function QuestionDialog(_ref) {
|
|
|
30337
30863
|
return null;
|
|
30338
30864
|
});
|
|
30339
30865
|
};
|
|
30340
|
-
return React__default.createElement(Container$
|
|
30866
|
+
return React__default.createElement(Container$k, null, React__default.createElement(QuestionContainer, null, React__default.createElement(DynamicText, {
|
|
30341
30867
|
text: currentQuestion.text,
|
|
30342
30868
|
onStart: function onStart() {
|
|
30343
30869
|
return setCanShowAnswers(false);
|
|
@@ -30347,7 +30873,7 @@ var QuestionDialog = function QuestionDialog(_ref) {
|
|
|
30347
30873
|
}
|
|
30348
30874
|
})), canShowAnswers && React__default.createElement(AnswersContainer, null, onRenderCurrentAnswers()));
|
|
30349
30875
|
};
|
|
30350
|
-
var Container$
|
|
30876
|
+
var Container$k = /*#__PURE__*/styled__default.div.withConfig({
|
|
30351
30877
|
displayName: "QuestionDialog__Container",
|
|
30352
30878
|
componentId: "sc-bxc5u0-0"
|
|
30353
30879
|
})(["display:flex;word-break:break-all;box-sizing:border-box;justify-content:flex-start;align-items:flex-start;flex-wrap:wrap;"]);
|
|
@@ -30407,7 +30933,7 @@ var NPCDialog = function NPCDialog(_ref) {
|
|
|
30407
30933
|
}
|
|
30408
30934
|
})), type === exports.NPCDialogType.TextAndThumbnail && React__default.createElement(ThumbnailContainer, null, React__default.createElement(NPCThumbnail, {
|
|
30409
30935
|
src: imagePath || img$7
|
|
30410
|
-
}))) : React__default.createElement(React__default.Fragment, null, React__default.createElement(Container$
|
|
30936
|
+
}))) : React__default.createElement(React__default.Fragment, null, React__default.createElement(Container$l, null, React__default.createElement(CloseIcon, {
|
|
30411
30937
|
onPointerDown: _onClose
|
|
30412
30938
|
}, "X"), React__default.createElement(TextContainer$1, {
|
|
30413
30939
|
flex: type === exports.NPCDialogType.TextAndThumbnail ? '70%' : '100%'
|
|
@@ -30423,7 +30949,7 @@ var NPCDialog = function NPCDialog(_ref) {
|
|
|
30423
30949
|
src: imagePath || img$7
|
|
30424
30950
|
})))));
|
|
30425
30951
|
};
|
|
30426
|
-
var Container$
|
|
30952
|
+
var Container$l = /*#__PURE__*/styled__default.div.withConfig({
|
|
30427
30953
|
displayName: "NPCDialog__Container",
|
|
30428
30954
|
componentId: "sc-1b4aw74-0"
|
|
30429
30955
|
})(["display:flex;width:100%;height:100%;box-sizing:border-box;justify-content:center;align-items:flex-start;position:relative;"]);
|
|
@@ -30483,7 +31009,7 @@ var NPCMultiDialog = function NPCMultiDialog(_ref) {
|
|
|
30483
31009
|
type: exports.RPGUIContainerTypes.FramedGold,
|
|
30484
31010
|
width: '50%',
|
|
30485
31011
|
height: '180px'
|
|
30486
|
-
}, React__default.createElement(React__default.Fragment, null, React__default.createElement(Container$
|
|
31012
|
+
}, React__default.createElement(React__default.Fragment, null, React__default.createElement(Container$m, null, ((_textAndTypeArray$sli = textAndTypeArray[slide]) == null ? void 0 : _textAndTypeArray$sli.imageSide) === 'right' && React__default.createElement(React__default.Fragment, null, React__default.createElement(TextContainer$2, {
|
|
30487
31013
|
flex: '70%'
|
|
30488
31014
|
}, React__default.createElement(NPCDialogText, {
|
|
30489
31015
|
onStartStep: function onStartStep() {
|
|
@@ -30525,7 +31051,7 @@ var NPCMultiDialog = function NPCMultiDialog(_ref) {
|
|
|
30525
31051
|
src: img$6
|
|
30526
31052
|
}))), ")"));
|
|
30527
31053
|
};
|
|
30528
|
-
var Container$
|
|
31054
|
+
var Container$m = /*#__PURE__*/styled__default.div.withConfig({
|
|
30529
31055
|
displayName: "NPCMultiDialog__Container",
|
|
30530
31056
|
componentId: "sc-rvu5wg-0"
|
|
30531
31057
|
})(["display:flex;width:100%;height:100%;box-sizing:border-box;justify-content:center;align-items:flex-start;position:relative;"]);
|
|
@@ -30957,7 +31483,7 @@ var Pagination = function Pagination(_ref) {
|
|
|
30957
31483
|
totalPages = _ref.totalPages,
|
|
30958
31484
|
onPageChange = _ref.onPageChange,
|
|
30959
31485
|
className = _ref.className;
|
|
30960
|
-
return React__default.createElement(Container$
|
|
31486
|
+
return React__default.createElement(Container$n, {
|
|
30961
31487
|
className: className
|
|
30962
31488
|
}, React__default.createElement(PaginationButton$1, {
|
|
30963
31489
|
onClick: function onClick() {
|
|
@@ -30975,7 +31501,7 @@ var Pagination = function Pagination(_ref) {
|
|
|
30975
31501
|
size: 12
|
|
30976
31502
|
})));
|
|
30977
31503
|
};
|
|
30978
|
-
var Container$
|
|
31504
|
+
var Container$n = /*#__PURE__*/styled__default.div.withConfig({
|
|
30979
31505
|
displayName: "Pagination__Container",
|
|
30980
31506
|
componentId: "sc-3k4m4u-0"
|
|
30981
31507
|
})(["display:flex;align-items:center;justify-content:center;gap:16px;padding:8px;"]);
|
|
@@ -31001,7 +31527,7 @@ var SearchBar = function SearchBar(_ref) {
|
|
|
31001
31527
|
className = _ref.className,
|
|
31002
31528
|
rightElement = _ref.rightElement;
|
|
31003
31529
|
var hasRightElement = Boolean(rightElement);
|
|
31004
|
-
return React__default.createElement(Container$
|
|
31530
|
+
return React__default.createElement(Container$o, {
|
|
31005
31531
|
className: className
|
|
31006
31532
|
}, React__default.createElement(Input$1, {
|
|
31007
31533
|
type: "text",
|
|
@@ -31014,7 +31540,7 @@ var SearchBar = function SearchBar(_ref) {
|
|
|
31014
31540
|
"$hasRightElement": hasRightElement
|
|
31015
31541
|
}), React__default.createElement(IconContainer, null, React__default.createElement(SearchIcon, null), rightElement));
|
|
31016
31542
|
};
|
|
31017
|
-
var Container$
|
|
31543
|
+
var Container$o = /*#__PURE__*/styled__default.div.withConfig({
|
|
31018
31544
|
displayName: "SearchBar__Container",
|
|
31019
31545
|
componentId: "sc-13n8z02-0"
|
|
31020
31546
|
})(["position:relative;width:100%;"]);
|
|
@@ -31040,7 +31566,7 @@ var SearchHeader = function SearchHeader(_ref) {
|
|
|
31040
31566
|
if (!searchOptions && !filterOptions) return null;
|
|
31041
31567
|
var isMobile = shared.isMobileOrTablet();
|
|
31042
31568
|
var isSmallScreen = isMobile && window.innerWidth < 480;
|
|
31043
|
-
return React__default.createElement(HeaderContainer$
|
|
31569
|
+
return React__default.createElement(HeaderContainer$2, {
|
|
31044
31570
|
className: className
|
|
31045
31571
|
}, React__default.createElement(HeaderContent, {
|
|
31046
31572
|
"$isSmallScreen": isSmallScreen
|
|
@@ -31057,7 +31583,7 @@ var SearchHeader = function SearchHeader(_ref) {
|
|
|
31057
31583
|
width: isSmallScreen ? '100%' : '200px'
|
|
31058
31584
|
}))));
|
|
31059
31585
|
};
|
|
31060
|
-
var HeaderContainer$
|
|
31586
|
+
var HeaderContainer$2 = /*#__PURE__*/styled__default.div.withConfig({
|
|
31061
31587
|
displayName: "SearchHeader__HeaderContainer",
|
|
31062
31588
|
componentId: "sc-1xd17jb-0"
|
|
31063
31589
|
})([""]);
|
|
@@ -31122,7 +31648,7 @@ var PaginatedContent = function PaginatedContent(_ref) {
|
|
|
31122
31648
|
setCurrentPage = _usePagination.setCurrentPage,
|
|
31123
31649
|
paginatedItems = _usePagination.paginatedItems,
|
|
31124
31650
|
totalPages = _usePagination.totalPages;
|
|
31125
|
-
return React__default.createElement(Container$
|
|
31651
|
+
return React__default.createElement(Container$p, {
|
|
31126
31652
|
className: className
|
|
31127
31653
|
}, (searchOptions || filterOptions) && React__default.createElement(SearchHeader, {
|
|
31128
31654
|
searchOptions: searchOptions,
|
|
@@ -31144,7 +31670,7 @@ var PaginatedContent = function PaginatedContent(_ref) {
|
|
|
31144
31670
|
onPageChange: setCurrentPage
|
|
31145
31671
|
}))));
|
|
31146
31672
|
};
|
|
31147
|
-
var Container$
|
|
31673
|
+
var Container$p = /*#__PURE__*/styled__default.div.withConfig({
|
|
31148
31674
|
displayName: "PaginatedContent__Container",
|
|
31149
31675
|
componentId: "sc-lzp9hn-0"
|
|
31150
31676
|
})(["display:flex;flex-direction:column;gap:0.5rem;min-height:400px;width:100%;"]);
|
|
@@ -31266,7 +31792,7 @@ var BaseInformationDetails = function BaseInformationDetails(_ref) {
|
|
|
31266
31792
|
atlasIMG = _ref.atlasIMG,
|
|
31267
31793
|
onBack = _ref.onBack,
|
|
31268
31794
|
children = _ref.children;
|
|
31269
|
-
return React__default.createElement(Container$
|
|
31795
|
+
return React__default.createElement(Container$q, null, React__default.createElement(Overlay, {
|
|
31270
31796
|
onClick: onBack
|
|
31271
31797
|
}), React__default.createElement(Modal, null, React__default.createElement(CloseButton$5, {
|
|
31272
31798
|
onClick: onBack
|
|
@@ -31279,7 +31805,7 @@ var BaseInformationDetails = function BaseInformationDetails(_ref) {
|
|
|
31279
31805
|
imgScale: 1
|
|
31280
31806
|
})), React__default.createElement(Title$3, null, name)), React__default.createElement(Content$1, null, children)));
|
|
31281
31807
|
};
|
|
31282
|
-
var Container$
|
|
31808
|
+
var Container$q = /*#__PURE__*/styled__default.div.withConfig({
|
|
31283
31809
|
displayName: "BaseInformationDetails__Container",
|
|
31284
31810
|
componentId: "sc-1vguuz8-0"
|
|
31285
31811
|
})(["position:fixed;inset:0;display:flex;justify-content:center;align-items:center;z-index:9999;"]);
|
|
@@ -31321,7 +31847,7 @@ var Collapsible = function Collapsible(_ref) {
|
|
|
31321
31847
|
var _useState = React.useState(defaultOpen),
|
|
31322
31848
|
isOpen = _useState[0],
|
|
31323
31849
|
setIsOpen = _useState[1];
|
|
31324
|
-
return React__default.createElement(Container$
|
|
31850
|
+
return React__default.createElement(Container$r, {
|
|
31325
31851
|
className: className
|
|
31326
31852
|
}, React__default.createElement(Header$2, {
|
|
31327
31853
|
onClick: function onClick() {
|
|
@@ -31329,7 +31855,7 @@ var Collapsible = function Collapsible(_ref) {
|
|
|
31329
31855
|
}
|
|
31330
31856
|
}, React__default.createElement(Title$4, null, title), React__default.createElement(Icon$1, null, isOpen ? React__default.createElement(fa.FaChevronUp, null) : React__default.createElement(fa.FaChevronDown, null))), isOpen && React__default.createElement(Content$2, null, children));
|
|
31331
31857
|
};
|
|
31332
|
-
var Container$
|
|
31858
|
+
var Container$r = /*#__PURE__*/styled__default.div.withConfig({
|
|
31333
31859
|
displayName: "Collapsible__Container",
|
|
31334
31860
|
componentId: "sc-s4h8ey-0"
|
|
31335
31861
|
})(["background:rgba(0,0,0,0.3);border-radius:4px;overflow:hidden;border:1px solid ", ";"], uiColors.darkGray);
|
|
@@ -31360,14 +31886,14 @@ var InformationCenterItemDetails = function InformationCenterItemDetails(_ref) {
|
|
|
31360
31886
|
var renderAllowedSlots = function renderAllowedSlots() {
|
|
31361
31887
|
var _item$allowedEquipSlo;
|
|
31362
31888
|
if (!((_item$allowedEquipSlo = item.allowedEquipSlotType) != null && _item$allowedEquipSlo.length)) return null;
|
|
31363
|
-
return React__default.createElement(InfoItem, null, React__default.createElement(Label, null, "Equip Slots:"), React__default.createElement(Value, null, item.allowedEquipSlotType.join(', ')));
|
|
31889
|
+
return React__default.createElement(InfoItem, null, React__default.createElement(Label$1, null, "Equip Slots:"), React__default.createElement(Value, null, item.allowedEquipSlotType.join(', ')));
|
|
31364
31890
|
};
|
|
31365
31891
|
var renderRequirements = function renderRequirements() {
|
|
31366
31892
|
if (!item.minRequirements) return null;
|
|
31367
31893
|
return React__default.createElement(StyledCollapsible, {
|
|
31368
31894
|
title: "Requirements",
|
|
31369
31895
|
defaultOpen: !isMobile
|
|
31370
|
-
}, React__default.createElement(RequirementsGrid, null, item.minRequirements.level && React__default.createElement(RequirementItem, null, React__default.createElement(Label, null, "Level:"), React__default.createElement(Value, null, item.minRequirements.level)), item.minRequirements.skill && React__default.createElement(RequirementItem, null, React__default.createElement(Label, null, item.minRequirements.skill.name, ":"), React__default.createElement(Value, null, item.minRequirements.skill.level))));
|
|
31896
|
+
}, React__default.createElement(RequirementsGrid, null, item.minRequirements.level && React__default.createElement(RequirementItem, null, React__default.createElement(Label$1, null, "Level:"), React__default.createElement(Value, null, item.minRequirements.level)), item.minRequirements.skill && React__default.createElement(RequirementItem, null, React__default.createElement(Label$1, null, item.minRequirements.skill.name, ":"), React__default.createElement(Value, null, item.minRequirements.skill.level))));
|
|
31371
31897
|
};
|
|
31372
31898
|
return React__default.createElement(BaseInformationDetails, {
|
|
31373
31899
|
name: item.name,
|
|
@@ -31375,7 +31901,7 @@ var InformationCenterItemDetails = function InformationCenterItemDetails(_ref) {
|
|
|
31375
31901
|
atlasJSON: itemsAtlasJSON,
|
|
31376
31902
|
atlasIMG: itemsAtlasIMG,
|
|
31377
31903
|
onBack: onBack
|
|
31378
|
-
}, React__default.createElement(InfoSection, null, React__default.createElement(InfoItem, null, React__default.createElement(Label, null, "Type:"), React__default.createElement(Value, null, item.type)), React__default.createElement(InfoItem, null, React__default.createElement(Label, null, "Subtype:"), React__default.createElement(Value, null, item.subType)), React__default.createElement(InfoItem, null, React__default.createElement(Label, null, "Tier:"), React__default.createElement(Value, null, item.tier)), React__default.createElement(InfoItem, null, React__default.createElement(Label, null, "Rarity:"), React__default.createElement(Value, null, item.rarity)), renderAllowedSlots()), React__default.createElement(StyledCollapsible, {
|
|
31904
|
+
}, React__default.createElement(InfoSection, null, React__default.createElement(InfoItem, null, React__default.createElement(Label$1, null, "Type:"), React__default.createElement(Value, null, item.type)), React__default.createElement(InfoItem, null, React__default.createElement(Label$1, null, "Subtype:"), React__default.createElement(Value, null, item.subType)), React__default.createElement(InfoItem, null, React__default.createElement(Label$1, null, "Tier:"), React__default.createElement(Value, null, item.tier)), React__default.createElement(InfoItem, null, React__default.createElement(Label$1, null, "Rarity:"), React__default.createElement(Value, null, item.rarity)), renderAllowedSlots()), React__default.createElement(StyledCollapsible, {
|
|
31379
31905
|
title: "Description",
|
|
31380
31906
|
defaultOpen: !isMobile
|
|
31381
31907
|
}, React__default.createElement(Description$2, null, item.description || 'No description available.')), React__default.createElement(StyledCollapsible, {
|
|
@@ -31417,7 +31943,7 @@ var InfoItem = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
31417
31943
|
displayName: "InformationCenterItemDetails__InfoItem",
|
|
31418
31944
|
componentId: "sc-zwf6pb-1"
|
|
31419
31945
|
})(["display:flex;align-items:center;gap:8px;"]);
|
|
31420
|
-
var Label = /*#__PURE__*/styled__default.span.withConfig({
|
|
31946
|
+
var Label$1 = /*#__PURE__*/styled__default.span.withConfig({
|
|
31421
31947
|
displayName: "InformationCenterItemDetails__Label",
|
|
31422
31948
|
componentId: "sc-zwf6pb-2"
|
|
31423
31949
|
})(["color:", ";font-size:0.5rem;opacity:0.8;"], uiColors.yellow);
|
|
@@ -31502,7 +32028,7 @@ var EffectDescription = /*#__PURE__*/styled__default.p.withConfig({
|
|
|
31502
32028
|
componentId: "sc-zwf6pb-22"
|
|
31503
32029
|
})(["color:", ";font-size:0.45rem;margin:8px 0 0;padding:0 12px;font-style:italic;"], uiColors.lightGray);
|
|
31504
32030
|
|
|
31505
|
-
var TooltipContainer$
|
|
32031
|
+
var TooltipContainer$2 = /*#__PURE__*/styled__default.div.withConfig({
|
|
31506
32032
|
displayName: "BaseTooltip__TooltipContainer",
|
|
31507
32033
|
componentId: "sc-1auz5ec-0"
|
|
31508
32034
|
})(["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) {
|
|
@@ -31531,7 +32057,7 @@ var StatItem$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
31531
32057
|
var BaseTooltip = function BaseTooltip(_ref) {
|
|
31532
32058
|
var children = _ref.children,
|
|
31533
32059
|
width = _ref.width;
|
|
31534
|
-
return React__default.createElement(TooltipContainer$
|
|
32060
|
+
return React__default.createElement(TooltipContainer$2, {
|
|
31535
32061
|
width: width
|
|
31536
32062
|
}, children);
|
|
31537
32063
|
};
|
|
@@ -31579,7 +32105,7 @@ var AdvancedFilters = function AdvancedFilters(_ref) {
|
|
|
31579
32105
|
var rangeValue = section.value;
|
|
31580
32106
|
return React__default.createElement(FilterSection, {
|
|
31581
32107
|
key: section.key
|
|
31582
|
-
}, React__default.createElement(Label$
|
|
32108
|
+
}, React__default.createElement(Label$2, null, section.label), React__default.createElement(RangeInputs, null, React__default.createElement(Input, {
|
|
31583
32109
|
type: "number",
|
|
31584
32110
|
min: 0,
|
|
31585
32111
|
placeholder: "Min",
|
|
@@ -31599,7 +32125,7 @@ var AdvancedFilters = function AdvancedFilters(_ref) {
|
|
|
31599
32125
|
case 'dropdown':
|
|
31600
32126
|
return React__default.createElement(FilterSection, {
|
|
31601
32127
|
key: section.key
|
|
31602
|
-
}, React__default.createElement(Label$
|
|
32128
|
+
}, React__default.createElement(Label$2, null, section.label), React__default.createElement(StyledDropdownWrapper, null, React__default.createElement(Dropdown, {
|
|
31603
32129
|
options: section.options || [],
|
|
31604
32130
|
onChange: section.onChange,
|
|
31605
32131
|
width: "100%"
|
|
@@ -31659,7 +32185,7 @@ var AdvancedFilters = function AdvancedFilters(_ref) {
|
|
|
31659
32185
|
onClose();
|
|
31660
32186
|
}
|
|
31661
32187
|
};
|
|
31662
|
-
return React__default.createElement(Container$
|
|
32188
|
+
return React__default.createElement(Container$s, null, React__default.createElement(FilterButton, {
|
|
31663
32189
|
onClick: onToggle,
|
|
31664
32190
|
"$hasActiveFilters": hasActiveFilters,
|
|
31665
32191
|
ref: buttonRef
|
|
@@ -31690,7 +32216,7 @@ var AdvancedFilters = function AdvancedFilters(_ref) {
|
|
|
31690
32216
|
onClick: onClearAll
|
|
31691
32217
|
}, "Clear All Filters"))));
|
|
31692
32218
|
};
|
|
31693
|
-
var Container$
|
|
32219
|
+
var Container$s = /*#__PURE__*/styled__default.div.withConfig({
|
|
31694
32220
|
displayName: "AdvancedFilters__Container",
|
|
31695
32221
|
componentId: "sc-1xj6ldr-0"
|
|
31696
32222
|
})(["position:relative;margin-left:0.5rem;"]);
|
|
@@ -31744,7 +32270,7 @@ var FilterSection = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
31744
32270
|
displayName: "AdvancedFilters__FilterSection",
|
|
31745
32271
|
componentId: "sc-1xj6ldr-7"
|
|
31746
32272
|
})(["display:flex;flex-direction:column;gap:0.5rem;"]);
|
|
31747
|
-
var Label$
|
|
32273
|
+
var Label$2 = /*#__PURE__*/styled__default.div.withConfig({
|
|
31748
32274
|
displayName: "AdvancedFilters__Label",
|
|
31749
32275
|
componentId: "sc-1xj6ldr-8"
|
|
31750
32276
|
})(["color:#999;font-size:0.65rem;text-transform:uppercase;letter-spacing:0.05em;"]);
|
|
@@ -32132,7 +32658,7 @@ var InformationCenterNPCDetails = function InformationCenterNPCDetails(_ref) {
|
|
|
32132
32658
|
atlasJSON: entitiesAtlasJSON,
|
|
32133
32659
|
atlasIMG: entitiesAtlasIMG,
|
|
32134
32660
|
onBack: onBack
|
|
32135
|
-
}, React__default.createElement(InfoSection$1, null, React__default.createElement(InfoItem$1, null, React__default.createElement(Label$
|
|
32661
|
+
}, React__default.createElement(InfoSection$1, null, React__default.createElement(InfoItem$1, null, React__default.createElement(Label$3, null, "Type:"), React__default.createElement(Value$1, null, formatText(npc.subType))), React__default.createElement(InfoItem$1, null, React__default.createElement(Label$3, null, "Alignment:"), React__default.createElement(Value$1, null, formatText(npc.alignment))), React__default.createElement(InfoItem$1, null, React__default.createElement(Label$3, null, "Attack Type:"), React__default.createElement(Value$1, null, formatText(npc.attackType))), React__default.createElement(InfoItem$1, null, React__default.createElement(Label$3, null, "Range:"), React__default.createElement(Value$1, null, formatText(npc.maxRangeAttack))), React__default.createElement(InfoItem$1, null, React__default.createElement(Label$3, null, "Speed:"), React__default.createElement(Value$1, null, formatText(npc.speed)))), React__default.createElement(StyledCollapsible$1, {
|
|
32136
32662
|
title: "Stats",
|
|
32137
32663
|
defaultOpen: !isMobile
|
|
32138
32664
|
}, React__default.createElement(StatGrid$1, null, React__default.createElement(StatItem$2, null, "HP: ", npc.baseHealth), React__default.createElement(StatItem$2, null, "Level: ", npc.skills.level), ((_npc$skills$strength = npc.skills.strength) == null ? void 0 : _npc$skills$strength.level) && React__default.createElement(StatItem$2, null, "Strength: ", npc.skills.strength.level), ((_npc$skills$dexterity = npc.skills.dexterity) == null ? void 0 : _npc$skills$dexterity.level) && React__default.createElement(StatItem$2, null, "Dexterity: ", npc.skills.dexterity.level), ((_npc$skills$resistanc = npc.skills.resistance) == null ? void 0 : _npc$skills$resistanc.level) && React__default.createElement(StatItem$2, null, "Resistance: ", npc.skills.resistance.level))), npc.loots && npc.loots.length > 0 && React__default.createElement(StyledCollapsible$1, {
|
|
@@ -32202,7 +32728,7 @@ var InfoItem$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
32202
32728
|
displayName: "InformationCenterNPCDetails__InfoItem",
|
|
32203
32729
|
componentId: "sc-fdu3xl-1"
|
|
32204
32730
|
})(["display:flex;align-items:center;gap:8px;"]);
|
|
32205
|
-
var Label$
|
|
32731
|
+
var Label$3 = /*#__PURE__*/styled__default.span.withConfig({
|
|
32206
32732
|
displayName: "InformationCenterNPCDetails__Label",
|
|
32207
32733
|
componentId: "sc-fdu3xl-2"
|
|
32208
32734
|
})(["color:", ";font-size:0.5rem;opacity:0.8;"], uiColors.yellow);
|
|
@@ -32784,7 +33310,7 @@ var InformationCenter = function InformationCenter(_ref) {
|
|
|
32784
33310
|
minWidth: "300px",
|
|
32785
33311
|
cancelDrag: ".PaginatedContent-content",
|
|
32786
33312
|
onCloseButton: onClose
|
|
32787
|
-
}, React__default.createElement(Container$
|
|
33313
|
+
}, React__default.createElement(Container$t, null, React__default.createElement(InternalTabs, {
|
|
32788
33314
|
tabs: tabs,
|
|
32789
33315
|
activeTextColor: "#000000",
|
|
32790
33316
|
activeTab: activeTab,
|
|
@@ -32795,7 +33321,7 @@ var InformationCenter = function InformationCenter(_ref) {
|
|
|
32795
33321
|
hoverColor: "#fef3c7"
|
|
32796
33322
|
})));
|
|
32797
33323
|
};
|
|
32798
|
-
var Container$
|
|
33324
|
+
var Container$t = /*#__PURE__*/styled__default.div.withConfig({
|
|
32799
33325
|
displayName: "InformationCenter__Container",
|
|
32800
33326
|
componentId: "sc-1ttl62e-0"
|
|
32801
33327
|
})(["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;}"]);
|
|
@@ -32966,7 +33492,7 @@ var ShortcutsSetter = function ShortcutsSetter(_ref) {
|
|
|
32966
33492
|
}
|
|
32967
33493
|
return null;
|
|
32968
33494
|
};
|
|
32969
|
-
return React__default.createElement(Container$
|
|
33495
|
+
return React__default.createElement(Container$u, null, React__default.createElement("p", null, "Shortcuts:"), React__default.createElement(List, {
|
|
32970
33496
|
id: "shortcuts_list"
|
|
32971
33497
|
}, Array.from({
|
|
32972
33498
|
length: 12
|
|
@@ -32984,7 +33510,7 @@ var ShortcutsSetter = function ShortcutsSetter(_ref) {
|
|
|
32984
33510
|
}, getContent(i));
|
|
32985
33511
|
})));
|
|
32986
33512
|
};
|
|
32987
|
-
var Container$
|
|
33513
|
+
var Container$u = /*#__PURE__*/styled__default.div.withConfig({
|
|
32988
33514
|
displayName: "ShortcutsSetter__Container",
|
|
32989
33515
|
componentId: "sc-xuouuf-0"
|
|
32990
33516
|
})(["p{margin:0;margin-left:0.5rem;font-size:10px;}width:100%;"]);
|
|
@@ -33428,7 +33954,7 @@ var ConfirmModal = function ConfirmModal(_ref) {
|
|
|
33428
33954
|
e.stopPropagation();
|
|
33429
33955
|
onClose();
|
|
33430
33956
|
};
|
|
33431
|
-
return React__default.createElement(ModalPortal, null, React__default.createElement(Background, null), React__default.createElement(Container$
|
|
33957
|
+
return React__default.createElement(ModalPortal, null, React__default.createElement(Background, null), React__default.createElement(Container$v, {
|
|
33432
33958
|
onClick: handleClose
|
|
33433
33959
|
}, React__default.createElement(DraggableContainer, {
|
|
33434
33960
|
width: "auto",
|
|
@@ -33451,7 +33977,7 @@ var Background = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
33451
33977
|
displayName: "ConfirmModal__Background",
|
|
33452
33978
|
componentId: "sc-11qkyu1-0"
|
|
33453
33979
|
})(["position:absolute;width:100%;height:100%;background-color:#000000;opacity:0.5;left:0;top:0;z-index:1000;"]);
|
|
33454
|
-
var Container$
|
|
33980
|
+
var Container$v = /*#__PURE__*/styled__default.div.withConfig({
|
|
33455
33981
|
displayName: "ConfirmModal__Container",
|
|
33456
33982
|
componentId: "sc-11qkyu1-1"
|
|
33457
33983
|
})(["position:absolute;width:100%;height:100%;left:0;top:0;display:flex;justify-content:center;align-items:center;z-index:1001;"]);
|
|
@@ -33506,7 +34032,7 @@ var ColorSelector = function ColorSelector(_ref) {
|
|
|
33506
34032
|
cancelDrag: ".react-colorful",
|
|
33507
34033
|
width: "25rem",
|
|
33508
34034
|
onCloseButton: onClose
|
|
33509
|
-
}, React__default.createElement(Container$
|
|
34035
|
+
}, React__default.createElement(Container$w, null, React__default.createElement(Header$3, null, "Select Color"), React__default.createElement(ColorPickerWrapper, null, React__default.createElement(reactColorful.HexColorPicker, {
|
|
33510
34036
|
color: currentColor,
|
|
33511
34037
|
onChange: function onChange(color) {
|
|
33512
34038
|
setCurrentColor(color);
|
|
@@ -33522,7 +34048,7 @@ var ColorSelector = function ColorSelector(_ref) {
|
|
|
33522
34048
|
onClose: handleClose
|
|
33523
34049
|
}));
|
|
33524
34050
|
};
|
|
33525
|
-
var Container$
|
|
34051
|
+
var Container$w = /*#__PURE__*/styled__default.div.withConfig({
|
|
33526
34052
|
displayName: "ItemPropertyColorSelector__Container",
|
|
33527
34053
|
componentId: "sc-me1r4z-0"
|
|
33528
34054
|
})(["text-align:center;background:inherit;display:flex;flex-direction:column;gap:1.5rem;align-items:center;width:100%;max-width:24rem;margin:0 auto;"]);
|
|
@@ -33600,7 +34126,7 @@ var GemSelector = function GemSelector(_ref) {
|
|
|
33600
34126
|
}, React__default.createElement(ContentWrapper$1, null, React__default.createElement(Header$4, null, React__default.createElement(Title$5, null, "GEM SELECTION"), React__default.createElement(Subtitle, null, "Select gems to detach")), React__default.createElement(GemGrid, null, (_item$attachedGems = item.attachedGems) == null ? void 0 : _item$attachedGems.map(function (gem, index) {
|
|
33601
34127
|
return React__default.createElement(GemItem, {
|
|
33602
34128
|
key: gem.key + "-" + index
|
|
33603
|
-
}, React__default.createElement(CheckItemWrapper, null, React__default.createElement(CheckItem, {
|
|
34129
|
+
}, React__default.createElement(CheckItemWrapper$1, null, React__default.createElement(CheckItem, {
|
|
33604
34130
|
defaultValue: selectedGems.some(function (selected) {
|
|
33605
34131
|
return selected.key === gem.key;
|
|
33606
34132
|
}),
|
|
@@ -33660,7 +34186,7 @@ var ButtonWrapper = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
33660
34186
|
displayName: "GemSelector__ButtonWrapper",
|
|
33661
34187
|
componentId: "sc-gbt8g4-7"
|
|
33662
34188
|
})(["display:flex;justify-content:center;align-self:center;"]);
|
|
33663
|
-
var CheckItemWrapper = /*#__PURE__*/styled__default.div.withConfig({
|
|
34189
|
+
var CheckItemWrapper$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
33664
34190
|
displayName: "GemSelector__CheckItemWrapper",
|
|
33665
34191
|
componentId: "sc-gbt8g4-8"
|
|
33666
34192
|
})(["display:flex;justify-content:center;width:100%;height:20px;input.rpgui-checkbox + label{margin:0 !important;padding-left:23px !important;}"]);
|
|
@@ -33878,7 +34404,7 @@ var ListMenu = function ListMenu(_ref) {
|
|
|
33878
34404
|
onSelected = _ref.onSelected,
|
|
33879
34405
|
x = _ref.x,
|
|
33880
34406
|
y = _ref.y;
|
|
33881
|
-
return React__default.createElement(Container$
|
|
34407
|
+
return React__default.createElement(Container$x, {
|
|
33882
34408
|
x: x,
|
|
33883
34409
|
y: y
|
|
33884
34410
|
}, React__default.createElement("ul", {
|
|
@@ -33895,7 +34421,7 @@ var ListMenu = function ListMenu(_ref) {
|
|
|
33895
34421
|
}, (params == null ? void 0 : params.text) || 'No text');
|
|
33896
34422
|
})));
|
|
33897
34423
|
};
|
|
33898
|
-
var Container$
|
|
34424
|
+
var Container$x = /*#__PURE__*/styled__default.div.withConfig({
|
|
33899
34425
|
displayName: "ListMenu__Container",
|
|
33900
34426
|
componentId: "sc-i9097t-0"
|
|
33901
34427
|
})(["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) {
|
|
@@ -33914,7 +34440,7 @@ var Pager = function Pager(_ref) {
|
|
|
33914
34440
|
itemsPerPage = _ref.itemsPerPage,
|
|
33915
34441
|
onPageChange = _ref.onPageChange;
|
|
33916
34442
|
var totalPages = Math.ceil(totalItems / itemsPerPage);
|
|
33917
|
-
return React__default.createElement(Container$
|
|
34443
|
+
return React__default.createElement(Container$y, null, React__default.createElement("p", null, "Total items: ", totalItems), React__default.createElement(PagerContainer, null, React__default.createElement("button", {
|
|
33918
34444
|
disabled: currentPage === 1,
|
|
33919
34445
|
onPointerDown: function onPointerDown() {
|
|
33920
34446
|
return onPageChange(Math.max(currentPage - 1, 1));
|
|
@@ -33928,7 +34454,7 @@ var Pager = function Pager(_ref) {
|
|
|
33928
34454
|
}
|
|
33929
34455
|
}, '>')));
|
|
33930
34456
|
};
|
|
33931
|
-
var Container$
|
|
34457
|
+
var Container$y = /*#__PURE__*/styled__default.div.withConfig({
|
|
33932
34458
|
displayName: "Pager__Container",
|
|
33933
34459
|
componentId: "sc-1ekmf50-0"
|
|
33934
34460
|
})(["display:flex;flex-direction:column;align-items:center;p{margin:0;font-size:", ";}"], uiFonts.size.xsmall);
|
|
@@ -34449,13 +34975,13 @@ var TabBody = function TabBody(_ref) {
|
|
|
34449
34975
|
children = _ref.children,
|
|
34450
34976
|
styles = _ref.styles,
|
|
34451
34977
|
centerContent = _ref.centerContent;
|
|
34452
|
-
return React__default.createElement(Container$
|
|
34978
|
+
return React__default.createElement(Container$z, {
|
|
34453
34979
|
styles: styles,
|
|
34454
34980
|
"data-tab-id": id,
|
|
34455
34981
|
centerContent: centerContent
|
|
34456
34982
|
}, children);
|
|
34457
34983
|
};
|
|
34458
|
-
var Container$
|
|
34984
|
+
var Container$z = /*#__PURE__*/styled__default.div.withConfig({
|
|
34459
34985
|
displayName: "TabBody__Container",
|
|
34460
34986
|
componentId: "sc-196oof2-0"
|
|
34461
34987
|
})(["width:", ";height:", ";overflow-y:auto;display:", ";justify-content:", ";align-items:", ";"], function (props) {
|
|
@@ -35087,7 +35613,7 @@ var getMockedPlayersRowsNotLeader = function getMockedPlayersRowsNotLeader(userI
|
|
|
35087
35613
|
};
|
|
35088
35614
|
};
|
|
35089
35615
|
|
|
35090
|
-
var ProgressBar = function ProgressBar(_ref) {
|
|
35616
|
+
var ProgressBar$1 = function ProgressBar(_ref) {
|
|
35091
35617
|
var max = _ref.max,
|
|
35092
35618
|
value = _ref.value,
|
|
35093
35619
|
color = _ref.color,
|
|
@@ -35107,7 +35633,7 @@ var ProgressBar = function ProgressBar(_ref) {
|
|
|
35107
35633
|
}
|
|
35108
35634
|
return value * 100 / max;
|
|
35109
35635
|
};
|
|
35110
|
-
return React__default.createElement(Container$
|
|
35636
|
+
return React__default.createElement(Container$A, {
|
|
35111
35637
|
className: "rpgui-progress",
|
|
35112
35638
|
"data-value": calculatePercentageValue(max, value) / 100,
|
|
35113
35639
|
"data-rpguitype": "progress",
|
|
@@ -35137,7 +35663,7 @@ var TextOverlay$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
35137
35663
|
displayName: "ProgressBar__TextOverlay",
|
|
35138
35664
|
componentId: "sc-qa6fzh-1"
|
|
35139
35665
|
})(["width:100%;position:relative;"]);
|
|
35140
|
-
var Container$
|
|
35666
|
+
var Container$A = /*#__PURE__*/styled__default.div.withConfig({
|
|
35141
35667
|
displayName: "ProgressBar__Container",
|
|
35142
35668
|
componentId: "sc-qa6fzh-2"
|
|
35143
35669
|
})(["display:flex;flex-direction:column;min-width:", "px;width:", "%;justify-content:start;align-items:flex-start;", " @media (max-width:950px){transform:scale(", ");}"], function (props) {
|
|
@@ -35278,17 +35804,17 @@ var QuestList = function QuestList(_ref) {
|
|
|
35278
35804
|
return React__default.createElement(QuestCard, {
|
|
35279
35805
|
key: i,
|
|
35280
35806
|
style: styles == null ? void 0 : styles.card
|
|
35281
|
-
}, React__default.createElement(QuestItem, null, React__default.createElement(Label$
|
|
35807
|
+
}, React__default.createElement(QuestItem, null, React__default.createElement(Label$4, {
|
|
35282
35808
|
style: styles == null ? void 0 : styles.label
|
|
35283
35809
|
}, "Title:"), React__default.createElement(Value$2, {
|
|
35284
35810
|
style: styles == null ? void 0 : styles.value
|
|
35285
|
-
}, formatQuestText(quest.title))), React__default.createElement(QuestItem, null, React__default.createElement(Label$
|
|
35811
|
+
}, formatQuestText(quest.title))), React__default.createElement(QuestItem, null, React__default.createElement(Label$4, {
|
|
35286
35812
|
style: styles == null ? void 0 : styles.label
|
|
35287
35813
|
}, "Status:"), React__default.createElement(Value$2, {
|
|
35288
35814
|
style: _extends({}, styles == null ? void 0 : styles.value, {
|
|
35289
35815
|
color: getQuestStatusColor(quest.status)
|
|
35290
35816
|
})
|
|
35291
|
-
}, (_formatQuestStatus = formatQuestStatus(quest.status)) != null ? _formatQuestStatus : 'Unknown')), React__default.createElement(QuestItem, null, React__default.createElement(Label$
|
|
35817
|
+
}, (_formatQuestStatus = formatQuestStatus(quest.status)) != null ? _formatQuestStatus : 'Unknown')), React__default.createElement(QuestItem, null, React__default.createElement(Label$4, {
|
|
35292
35818
|
style: styles == null ? void 0 : styles.label
|
|
35293
35819
|
}, "Description:"), React__default.createElement(Value$2, {
|
|
35294
35820
|
style: styles == null ? void 0 : styles.value
|
|
@@ -35307,7 +35833,7 @@ var QuestItem = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
35307
35833
|
displayName: "QuestList__QuestItem",
|
|
35308
35834
|
componentId: "sc-1c1y8sp-2"
|
|
35309
35835
|
})(["display:flex;margin-bottom:5px;flex-wrap:wrap;&:last-child{margin-bottom:0;}"]);
|
|
35310
|
-
var Label$
|
|
35836
|
+
var Label$4 = /*#__PURE__*/styled__default.span.withConfig({
|
|
35311
35837
|
displayName: "QuestList__Label",
|
|
35312
35838
|
componentId: "sc-1c1y8sp-3"
|
|
35313
35839
|
})(["font-weight:bold;color:", " !important;margin-right:10px;"], uiColors.yellow);
|
|
@@ -35378,9 +35904,9 @@ var InputRadio = function InputRadio(_ref) {
|
|
|
35378
35904
|
|
|
35379
35905
|
var RPGUIScrollbar = function RPGUIScrollbar(_ref) {
|
|
35380
35906
|
var children = _ref.children;
|
|
35381
|
-
return React__default.createElement(Container$
|
|
35907
|
+
return React__default.createElement(Container$B, null, children);
|
|
35382
35908
|
};
|
|
35383
|
-
var Container$
|
|
35909
|
+
var Container$B = /*#__PURE__*/styled__default.div.withConfig({
|
|
35384
35910
|
displayName: "RPGUIScrollbar__Container",
|
|
35385
35911
|
componentId: "sc-p3msmb-0"
|
|
35386
35912
|
})([".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;}"]);
|
|
@@ -35536,7 +36062,7 @@ var SimpleProgressBar = function SimpleProgressBar(_ref) {
|
|
|
35536
36062
|
margin = _ref$margin === void 0 ? 20 : _ref$margin;
|
|
35537
36063
|
// Ensure the width is at least 1% if value is greater than 0
|
|
35538
36064
|
var width = value > 0 ? Math.max(1, Math.min(100, value)) : 0;
|
|
35539
|
-
return React__default.createElement(Container$
|
|
36065
|
+
return React__default.createElement(Container$C, {
|
|
35540
36066
|
className: "simple-progress-bar"
|
|
35541
36067
|
}, React__default.createElement(ProgressBarContainer, {
|
|
35542
36068
|
margin: margin
|
|
@@ -35545,7 +36071,7 @@ var SimpleProgressBar = function SimpleProgressBar(_ref) {
|
|
|
35545
36071
|
bgColor: bgColor
|
|
35546
36072
|
}))));
|
|
35547
36073
|
};
|
|
35548
|
-
var Container$
|
|
36074
|
+
var Container$C = /*#__PURE__*/styled__default.div.withConfig({
|
|
35549
36075
|
displayName: "SimpleProgressBar__Container",
|
|
35550
36076
|
componentId: "sc-mbeil3-0"
|
|
35551
36077
|
})(["display:flex;justify-content:center;align-items:center;width:100%;"]);
|
|
@@ -35878,7 +36404,7 @@ var SocialModal = function SocialModal(_ref) {
|
|
|
35878
36404
|
title: "Social Channels",
|
|
35879
36405
|
width: "500px",
|
|
35880
36406
|
onCloseButton: onClose
|
|
35881
|
-
}, React__default.createElement(Container$
|
|
36407
|
+
}, React__default.createElement(Container$D, null, React__default.createElement(HeaderImage, {
|
|
35882
36408
|
src: img$9,
|
|
35883
36409
|
alt: ""
|
|
35884
36410
|
}), React__default.createElement(ButtonsContainer$1, null, React__default.createElement(MainButtons, null, React__default.createElement(SocialButton$1, {
|
|
@@ -35896,7 +36422,7 @@ var SocialModal = function SocialModal(_ref) {
|
|
|
35896
36422
|
onClick: handleWhatsAppClick
|
|
35897
36423
|
}, React__default.createElement(fa.FaWhatsapp, null), " Join WhatsApp")))));
|
|
35898
36424
|
};
|
|
35899
|
-
var Container$
|
|
36425
|
+
var Container$D = /*#__PURE__*/styled__default.div.withConfig({
|
|
35900
36426
|
displayName: "SocialModal__Container",
|
|
35901
36427
|
componentId: "sc-tbjhp9-0"
|
|
35902
36428
|
})(["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% );}"]);
|
|
@@ -35942,7 +36468,7 @@ var SpellInfo$1 = function SpellInfo(_ref) {
|
|
|
35942
36468
|
castingType = spell.castingType,
|
|
35943
36469
|
cooldown = spell.cooldown,
|
|
35944
36470
|
maxDistanceGrid = spell.maxDistanceGrid;
|
|
35945
|
-
return React__default.createElement(Container$
|
|
36471
|
+
return React__default.createElement(Container$E, null, React__default.createElement(Header$5, null, React__default.createElement("div", null, React__default.createElement(Title$b, null, name), React__default.createElement(Type$1, null, magicWords))), React__default.createElement(Statistic$1, null, React__default.createElement("div", {
|
|
35946
36472
|
className: "label"
|
|
35947
36473
|
}, "Casting Type:"), React__default.createElement("div", {
|
|
35948
36474
|
className: "value"
|
|
@@ -35968,7 +36494,7 @@ var SpellInfo$1 = function SpellInfo(_ref) {
|
|
|
35968
36494
|
className: "value"
|
|
35969
36495
|
}, requiredItem))), React__default.createElement(Description$4, null, description));
|
|
35970
36496
|
};
|
|
35971
|
-
var Container$
|
|
36497
|
+
var Container$E = /*#__PURE__*/styled__default.div.withConfig({
|
|
35972
36498
|
displayName: "SpellInfo__Container",
|
|
35973
36499
|
componentId: "sc-4hbw3q-0"
|
|
35974
36500
|
})(["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);
|
|
@@ -36022,7 +36548,7 @@ var MobileSpellTooltip = function MobileSpellTooltip(_ref) {
|
|
|
36022
36548
|
var _ref$current;
|
|
36023
36549
|
(_ref$current = ref.current) == null ? void 0 : _ref$current.classList.add('fadeOut');
|
|
36024
36550
|
};
|
|
36025
|
-
return React__default.createElement(ModalPortal, null, React__default.createElement(Container$
|
|
36551
|
+
return React__default.createElement(ModalPortal, null, React__default.createElement(Container$F, {
|
|
36026
36552
|
ref: ref,
|
|
36027
36553
|
onTouchEnd: function onTouchEnd() {
|
|
36028
36554
|
handleFadeOut();
|
|
@@ -36047,7 +36573,7 @@ var MobileSpellTooltip = function MobileSpellTooltip(_ref) {
|
|
|
36047
36573
|
}, option.text);
|
|
36048
36574
|
}))));
|
|
36049
36575
|
};
|
|
36050
|
-
var Container$
|
|
36576
|
+
var Container$F = /*#__PURE__*/styled__default.div.withConfig({
|
|
36051
36577
|
displayName: "MobileSpellTooltip__Container",
|
|
36052
36578
|
componentId: "sc-6p7uvr-0"
|
|
36053
36579
|
})(["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;}"]);
|
|
@@ -36088,13 +36614,13 @@ var MagicTooltip = function MagicTooltip(_ref) {
|
|
|
36088
36614
|
}
|
|
36089
36615
|
return;
|
|
36090
36616
|
}, []);
|
|
36091
|
-
return React__default.createElement(ModalPortal, null, React__default.createElement(Container$
|
|
36617
|
+
return React__default.createElement(ModalPortal, null, React__default.createElement(Container$G, {
|
|
36092
36618
|
ref: ref
|
|
36093
36619
|
}, React__default.createElement(SpellInfoDisplay, {
|
|
36094
36620
|
spell: spell
|
|
36095
36621
|
})));
|
|
36096
36622
|
};
|
|
36097
|
-
var Container$
|
|
36623
|
+
var Container$G = /*#__PURE__*/styled__default.div.withConfig({
|
|
36098
36624
|
displayName: "SpellTooltip__Container",
|
|
36099
36625
|
componentId: "sc-1go0gwg-0"
|
|
36100
36626
|
})(["position:absolute;z-index:100;pointer-events:none;left:0;top:0;opacity:0;transition:opacity 0.08s;"]);
|
|
@@ -36167,7 +36693,7 @@ var Spell = function Spell(_ref) {
|
|
|
36167
36693
|
var IMAGE_SCALE = 2;
|
|
36168
36694
|
return React__default.createElement(SpellInfoWrapper, {
|
|
36169
36695
|
spell: spell
|
|
36170
|
-
}, React__default.createElement(Container$
|
|
36696
|
+
}, React__default.createElement(Container$H, {
|
|
36171
36697
|
onPointerUp: onPointerUp == null ? void 0 : onPointerUp.bind(null, spellKey),
|
|
36172
36698
|
isSettingShortcut: isSettingShortcut && !disabled,
|
|
36173
36699
|
className: "spell"
|
|
@@ -36186,7 +36712,7 @@ var Spell = function Spell(_ref) {
|
|
|
36186
36712
|
className: "mana"
|
|
36187
36713
|
}, manaCost))));
|
|
36188
36714
|
};
|
|
36189
|
-
var Container$
|
|
36715
|
+
var Container$H = /*#__PURE__*/styled__default.button.withConfig({
|
|
36190
36716
|
displayName: "Spell__Container",
|
|
36191
36717
|
componentId: "sc-j96fa2-0"
|
|
36192
36718
|
})(["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) {
|
|
@@ -36265,7 +36791,7 @@ var Spellbook = function Spellbook(_ref) {
|
|
|
36265
36791
|
height: "inherit",
|
|
36266
36792
|
cancelDrag: "#spellbook-search, #shortcuts_list, .spell",
|
|
36267
36793
|
scale: scale
|
|
36268
|
-
}, React__default.createElement(Container$
|
|
36794
|
+
}, React__default.createElement(Container$I, null, React__default.createElement(Title$d, null, "Learned Spells"), React__default.createElement(ShortcutsSetter, {
|
|
36269
36795
|
setSettingShortcutIndex: setSettingShortcutIndex,
|
|
36270
36796
|
settingShortcutIndex: settingShortcutIndex,
|
|
36271
36797
|
shortcuts: shortcuts,
|
|
@@ -36301,7 +36827,7 @@ var Title$d = /*#__PURE__*/styled__default.h1.withConfig({
|
|
|
36301
36827
|
displayName: "Spellbook__Title",
|
|
36302
36828
|
componentId: "sc-r02nfq-0"
|
|
36303
36829
|
})(["font-size:", " !important;margin-bottom:0 !important;"], uiFonts.size.large);
|
|
36304
|
-
var Container$
|
|
36830
|
+
var Container$I = /*#__PURE__*/styled__default.div.withConfig({
|
|
36305
36831
|
displayName: "Spellbook__Container",
|
|
36306
36832
|
componentId: "sc-r02nfq-1"
|
|
36307
36833
|
})(["width:100%;height:100%;color:white;display:flex;flex-direction:column;"]);
|
|
@@ -36783,7 +37309,7 @@ var TradingMenu = function TradingMenu(_ref) {
|
|
|
36783
37309
|
width: "500px",
|
|
36784
37310
|
cancelDrag: "#TraderContainer",
|
|
36785
37311
|
scale: scale
|
|
36786
|
-
}, React__default.createElement(Container$
|
|
37312
|
+
}, React__default.createElement(Container$J, null, React__default.createElement(Title$e, null, type.charAt(0).toUpperCase() + type.slice(1), " Menu"), React__default.createElement("hr", {
|
|
36787
37313
|
className: "golden"
|
|
36788
37314
|
}), React__default.createElement(ScrollWrapper, {
|
|
36789
37315
|
id: "TraderContainer"
|
|
@@ -36811,7 +37337,7 @@ var TradingMenu = function TradingMenu(_ref) {
|
|
|
36811
37337
|
onPointerDown: onClose
|
|
36812
37338
|
}, "Cancel"))));
|
|
36813
37339
|
};
|
|
36814
|
-
var Container$
|
|
37340
|
+
var Container$J = /*#__PURE__*/styled__default.div.withConfig({
|
|
36815
37341
|
displayName: "TradingMenu__Container",
|
|
36816
37342
|
componentId: "sc-1wjsz1l-0"
|
|
36817
37343
|
})(["width:100%;"]);
|
|
@@ -36845,11 +37371,11 @@ var Truncate = function Truncate(_ref) {
|
|
|
36845
37371
|
var _ref$maxLines = _ref.maxLines,
|
|
36846
37372
|
maxLines = _ref$maxLines === void 0 ? 1 : _ref$maxLines,
|
|
36847
37373
|
children = _ref.children;
|
|
36848
|
-
return React__default.createElement(Container$
|
|
37374
|
+
return React__default.createElement(Container$K, {
|
|
36849
37375
|
maxLines: maxLines
|
|
36850
37376
|
}, children);
|
|
36851
37377
|
};
|
|
36852
|
-
var Container$
|
|
37378
|
+
var Container$K = /*#__PURE__*/styled__default.div.withConfig({
|
|
36853
37379
|
displayName: "Truncate__Container",
|
|
36854
37380
|
componentId: "sc-6x00qb-0"
|
|
36855
37381
|
})(["display:-webkit-box;max-width:100%;max-height:100%;-webkit-line-clamp:", ";-webkit-box-orient:vertical;overflow:hidden;"], function (props) {
|
|
@@ -36957,7 +37483,7 @@ var TutorialStepper = /*#__PURE__*/React__default.memo(function (_ref) {
|
|
|
36957
37483
|
};
|
|
36958
37484
|
});
|
|
36959
37485
|
}, [lessons, imageStyle]);
|
|
36960
|
-
return React__default.createElement(Container$
|
|
37486
|
+
return React__default.createElement(Container$L, null, React__default.createElement(Stepper, {
|
|
36961
37487
|
steps: generateLessons,
|
|
36962
37488
|
finalCTAButton: {
|
|
36963
37489
|
label: 'Close',
|
|
@@ -36974,7 +37500,7 @@ var LessonBody = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
36974
37500
|
displayName: "TutorialStepper__LessonBody",
|
|
36975
37501
|
componentId: "sc-7tgzv2-1"
|
|
36976
37502
|
})([""]);
|
|
36977
|
-
var Container$
|
|
37503
|
+
var Container$L = /*#__PURE__*/styled__default.div.withConfig({
|
|
36978
37504
|
displayName: "TutorialStepper__Container",
|
|
36979
37505
|
componentId: "sc-7tgzv2-2"
|
|
36980
37506
|
})(["width:80%;max-width:600px;@media (max-width:600px){width:95%;}"]);
|
|
@@ -37006,6 +37532,7 @@ exports.CheckButton = CheckButton;
|
|
|
37006
37532
|
exports.CheckItem = CheckItem;
|
|
37007
37533
|
exports.CircularController = CircularController;
|
|
37008
37534
|
exports.CraftBook = CraftBook;
|
|
37535
|
+
exports.DailyTasks = DailyTasks;
|
|
37009
37536
|
exports.DraggableContainer = DraggableContainer;
|
|
37010
37537
|
exports.Dropdown = Dropdown;
|
|
37011
37538
|
exports.DropdownSelectorContainer = DropdownSelectorContainer;
|
|
@@ -37040,7 +37567,7 @@ exports.PartyManager = PartyManager;
|
|
|
37040
37567
|
exports.PartyManagerRow = PartyManagerRow;
|
|
37041
37568
|
exports.PartyRow = PartyRow;
|
|
37042
37569
|
exports.PlayersRow = PlayersRow;
|
|
37043
|
-
exports.ProgressBar = ProgressBar;
|
|
37570
|
+
exports.ProgressBar = ProgressBar$1;
|
|
37044
37571
|
exports.PropertySelect = PropertySelect;
|
|
37045
37572
|
exports.QuantitySelectorModal = QuantitySelectorModal;
|
|
37046
37573
|
exports.QuestInfo = QuestInfo;
|