@rpg-engine/long-bow 0.8.47 → 0.8.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -0
- package/dist/long-bow.cjs.development.js +610 -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 +610 -86
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/index.tsx +1 -0
|
@@ -29216,6 +29216,530 @@ 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
|
+
onClose = _ref.onClose,
|
|
29665
|
+
_ref$scale = _ref.scale,
|
|
29666
|
+
scale = _ref$scale === void 0 ? 1 : _ref$scale,
|
|
29667
|
+
itemsAtlasJSON = _ref.itemsAtlasJSON,
|
|
29668
|
+
itemsAtlasIMG = _ref.itemsAtlasIMG,
|
|
29669
|
+
iconAtlasJSON = _ref.iconAtlasJSON,
|
|
29670
|
+
iconAtlasIMG = _ref.iconAtlasIMG;
|
|
29671
|
+
var _React$useState = React__default.useState(tasks),
|
|
29672
|
+
localTasks = _React$useState[0],
|
|
29673
|
+
setLocalTasks = _React$useState[1];
|
|
29674
|
+
var size = useResponsiveSize(scale);
|
|
29675
|
+
var handleClaimReward = function handleClaimReward(taskKey, type) {
|
|
29676
|
+
setLocalTasks(function (prevTasks) {
|
|
29677
|
+
return prevTasks.map(function (task) {
|
|
29678
|
+
return task.key === taskKey ? _extends({}, task, {
|
|
29679
|
+
claimed: true
|
|
29680
|
+
}) : task;
|
|
29681
|
+
});
|
|
29682
|
+
});
|
|
29683
|
+
onClaimReward({
|
|
29684
|
+
type: type,
|
|
29685
|
+
taskKey: taskKey
|
|
29686
|
+
});
|
|
29687
|
+
};
|
|
29688
|
+
var handleClaimAllRewards = function handleClaimAllRewards() {
|
|
29689
|
+
localTasks.forEach(function (task) {
|
|
29690
|
+
if (task.status === shared.TaskStatus.Completed && !task.claimed) {
|
|
29691
|
+
var type = task.type,
|
|
29692
|
+
key = task.key;
|
|
29693
|
+
onClaimReward({
|
|
29694
|
+
type: type,
|
|
29695
|
+
taskKey: key
|
|
29696
|
+
});
|
|
29697
|
+
}
|
|
29698
|
+
});
|
|
29699
|
+
};
|
|
29700
|
+
if (!size) return null;
|
|
29701
|
+
return React__default.createElement(TasksContainer, {
|
|
29702
|
+
type: exports.RPGUIContainerTypes.Framed,
|
|
29703
|
+
onCloseButton: onClose,
|
|
29704
|
+
cancelDrag: ".tasks-container",
|
|
29705
|
+
scale: scale,
|
|
29706
|
+
width: size.width,
|
|
29707
|
+
height: size.height
|
|
29708
|
+
}, React__default.createElement(TaskTitle$1, null, "Daily Tasks"), React__default.createElement(Container$f, null, React__default.createElement(TasksList, {
|
|
29709
|
+
className: "tasks-container"
|
|
29710
|
+
}, React__default.createElement(GlobalDailyProgress, {
|
|
29711
|
+
tasks: localTasks,
|
|
29712
|
+
onClaimAllRewards: handleClaimAllRewards
|
|
29713
|
+
}), localTasks.map(function (task) {
|
|
29714
|
+
return React__default.createElement(DailyTaskItem, {
|
|
29715
|
+
key: task.key,
|
|
29716
|
+
task: task,
|
|
29717
|
+
spriteKey: getTaskIcon(task.type, task.difficulty),
|
|
29718
|
+
onClaimReward: handleClaimReward,
|
|
29719
|
+
itemsAtlasJSON: itemsAtlasJSON,
|
|
29720
|
+
itemsAtlasIMG: itemsAtlasIMG,
|
|
29721
|
+
iconAtlasJSON: iconAtlasJSON,
|
|
29722
|
+
iconAtlasIMG: iconAtlasIMG
|
|
29723
|
+
});
|
|
29724
|
+
}))));
|
|
29725
|
+
};
|
|
29726
|
+
var TasksContainer = /*#__PURE__*/styled__default(DraggableContainer).withConfig({
|
|
29727
|
+
displayName: "DailyTasks__TasksContainer",
|
|
29728
|
+
componentId: "sc-ittn77-0"
|
|
29729
|
+
})(["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;}"]);
|
|
29730
|
+
var Container$f = /*#__PURE__*/styled__default.div.withConfig({
|
|
29731
|
+
displayName: "DailyTasks__Container",
|
|
29732
|
+
componentId: "sc-ittn77-1"
|
|
29733
|
+
})(["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;}"]);
|
|
29734
|
+
var TasksList = /*#__PURE__*/styled__default.div.withConfig({
|
|
29735
|
+
displayName: "DailyTasks__TasksList",
|
|
29736
|
+
componentId: "sc-ittn77-2"
|
|
29737
|
+
})(["display:flex;flex-direction:column;gap:12px;padding:15px;max-height:70vh;"]);
|
|
29738
|
+
var TaskTitle$1 = /*#__PURE__*/styled__default.h2.withConfig({
|
|
29739
|
+
displayName: "DailyTasks__TaskTitle",
|
|
29740
|
+
componentId: "sc-ittn77-3"
|
|
29741
|
+
})(["color:", " !important;text-align:center;padding-right:30px !important;font-size:1.4rem !important;width:100%;"], uiColors.yellow);
|
|
29742
|
+
|
|
29219
29743
|
// Memoize the styled components since they don't depend on props that change frequently
|
|
29220
29744
|
var DPadButton = /*#__PURE__*/React.memo( /*#__PURE__*/styled__default.div.withConfig({
|
|
29221
29745
|
displayName: "JoystickDPad__DPadButton",
|
|
@@ -29575,7 +30099,7 @@ var DraggedItem = function DraggedItem(_ref) {
|
|
|
29575
30099
|
var centeredX = x - OFFSET$1;
|
|
29576
30100
|
var centeredY = y - OFFSET$1;
|
|
29577
30101
|
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$
|
|
30102
|
+
return React__default.createElement(Container$g, null, React__default.createElement(SpriteContainer, {
|
|
29579
30103
|
x: centeredX,
|
|
29580
30104
|
y: centeredY
|
|
29581
30105
|
}, React__default.createElement(SpriteFromAtlas, {
|
|
@@ -29593,7 +30117,7 @@ var DraggedItem = function DraggedItem(_ref) {
|
|
|
29593
30117
|
}), stackInfo));
|
|
29594
30118
|
};
|
|
29595
30119
|
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$
|
|
30120
|
+
var Container$g = /*#__PURE__*/styled__default.div.withConfig({
|
|
29597
30121
|
displayName: "DraggedItem__Container",
|
|
29598
30122
|
componentId: "sc-mlzzcp-0"
|
|
29599
30123
|
})(["position:relative;"]);
|
|
@@ -29631,7 +30155,7 @@ var RelativeListMenu = function RelativeListMenu(_ref) {
|
|
|
29631
30155
|
document.removeEventListener('clickOutside', function (_e) {});
|
|
29632
30156
|
};
|
|
29633
30157
|
}, []);
|
|
29634
|
-
return React__default.createElement(ModalPortal, null, React__default.createElement(Container$
|
|
30158
|
+
return React__default.createElement(ModalPortal, null, React__default.createElement(Container$h, Object.assign({
|
|
29635
30159
|
fontSize: fontSize,
|
|
29636
30160
|
ref: ref
|
|
29637
30161
|
}, pos), React__default.createElement("ul", {
|
|
@@ -29648,7 +30172,7 @@ var RelativeListMenu = function RelativeListMenu(_ref) {
|
|
|
29648
30172
|
}, (params == null ? void 0 : params.text) || 'No text');
|
|
29649
30173
|
}))));
|
|
29650
30174
|
};
|
|
29651
|
-
var Container$
|
|
30175
|
+
var Container$h = /*#__PURE__*/styled__default.div.withConfig({
|
|
29652
30176
|
displayName: "RelativeListMenu__Container",
|
|
29653
30177
|
componentId: "sc-7hohf-0"
|
|
29654
30178
|
})(["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 +30446,7 @@ var SearchFriend = function SearchFriend(_ref) {
|
|
|
29922
30446
|
title: "Requests (" + friendRequests.length + ")",
|
|
29923
30447
|
content: requestsTabContent
|
|
29924
30448
|
}];
|
|
29925
|
-
return React__default.createElement(Container$
|
|
30449
|
+
return React__default.createElement(Container$i, null, React__default.createElement(InternalTabs, {
|
|
29926
30450
|
tabs: tabs,
|
|
29927
30451
|
activeTextColor: "#000",
|
|
29928
30452
|
inactiveColor: "#777",
|
|
@@ -29964,7 +30488,7 @@ var FriendRequestSection = function FriendRequestSection(_ref3) {
|
|
|
29964
30488
|
}, "Reject")));
|
|
29965
30489
|
})));
|
|
29966
30490
|
};
|
|
29967
|
-
var Container$
|
|
30491
|
+
var Container$i = /*#__PURE__*/styled__default.div.withConfig({
|
|
29968
30492
|
displayName: "SearchFriend__Container",
|
|
29969
30493
|
componentId: "sc-1lt1ols-0"
|
|
29970
30494
|
})(["display:flex;flex-direction:column;gap:1rem;"]);
|
|
@@ -30167,7 +30691,7 @@ var NPCDialogText = function NPCDialogText(_ref) {
|
|
|
30167
30691
|
var _useState2 = React.useState(false),
|
|
30168
30692
|
showGoNextIndicator = _useState2[0],
|
|
30169
30693
|
setShowGoNextIndicator = _useState2[1];
|
|
30170
|
-
return React__default.createElement(Container$
|
|
30694
|
+
return React__default.createElement(Container$j, null, React__default.createElement(DynamicText, {
|
|
30171
30695
|
text: (textChunks == null ? void 0 : textChunks[chunkIndex]) || '',
|
|
30172
30696
|
onFinish: function onFinish() {
|
|
30173
30697
|
setShowGoNextIndicator(true);
|
|
@@ -30185,7 +30709,7 @@ var NPCDialogText = function NPCDialogText(_ref) {
|
|
|
30185
30709
|
}
|
|
30186
30710
|
}));
|
|
30187
30711
|
};
|
|
30188
|
-
var Container$
|
|
30712
|
+
var Container$j = /*#__PURE__*/styled__default.div.withConfig({
|
|
30189
30713
|
displayName: "NPCDialogText__Container",
|
|
30190
30714
|
componentId: "sc-1cxkdh9-0"
|
|
30191
30715
|
})([""]);
|
|
@@ -30337,7 +30861,7 @@ var QuestionDialog = function QuestionDialog(_ref) {
|
|
|
30337
30861
|
return null;
|
|
30338
30862
|
});
|
|
30339
30863
|
};
|
|
30340
|
-
return React__default.createElement(Container$
|
|
30864
|
+
return React__default.createElement(Container$k, null, React__default.createElement(QuestionContainer, null, React__default.createElement(DynamicText, {
|
|
30341
30865
|
text: currentQuestion.text,
|
|
30342
30866
|
onStart: function onStart() {
|
|
30343
30867
|
return setCanShowAnswers(false);
|
|
@@ -30347,7 +30871,7 @@ var QuestionDialog = function QuestionDialog(_ref) {
|
|
|
30347
30871
|
}
|
|
30348
30872
|
})), canShowAnswers && React__default.createElement(AnswersContainer, null, onRenderCurrentAnswers()));
|
|
30349
30873
|
};
|
|
30350
|
-
var Container$
|
|
30874
|
+
var Container$k = /*#__PURE__*/styled__default.div.withConfig({
|
|
30351
30875
|
displayName: "QuestionDialog__Container",
|
|
30352
30876
|
componentId: "sc-bxc5u0-0"
|
|
30353
30877
|
})(["display:flex;word-break:break-all;box-sizing:border-box;justify-content:flex-start;align-items:flex-start;flex-wrap:wrap;"]);
|
|
@@ -30407,7 +30931,7 @@ var NPCDialog = function NPCDialog(_ref) {
|
|
|
30407
30931
|
}
|
|
30408
30932
|
})), type === exports.NPCDialogType.TextAndThumbnail && React__default.createElement(ThumbnailContainer, null, React__default.createElement(NPCThumbnail, {
|
|
30409
30933
|
src: imagePath || img$7
|
|
30410
|
-
}))) : React__default.createElement(React__default.Fragment, null, React__default.createElement(Container$
|
|
30934
|
+
}))) : React__default.createElement(React__default.Fragment, null, React__default.createElement(Container$l, null, React__default.createElement(CloseIcon, {
|
|
30411
30935
|
onPointerDown: _onClose
|
|
30412
30936
|
}, "X"), React__default.createElement(TextContainer$1, {
|
|
30413
30937
|
flex: type === exports.NPCDialogType.TextAndThumbnail ? '70%' : '100%'
|
|
@@ -30423,7 +30947,7 @@ var NPCDialog = function NPCDialog(_ref) {
|
|
|
30423
30947
|
src: imagePath || img$7
|
|
30424
30948
|
})))));
|
|
30425
30949
|
};
|
|
30426
|
-
var Container$
|
|
30950
|
+
var Container$l = /*#__PURE__*/styled__default.div.withConfig({
|
|
30427
30951
|
displayName: "NPCDialog__Container",
|
|
30428
30952
|
componentId: "sc-1b4aw74-0"
|
|
30429
30953
|
})(["display:flex;width:100%;height:100%;box-sizing:border-box;justify-content:center;align-items:flex-start;position:relative;"]);
|
|
@@ -30483,7 +31007,7 @@ var NPCMultiDialog = function NPCMultiDialog(_ref) {
|
|
|
30483
31007
|
type: exports.RPGUIContainerTypes.FramedGold,
|
|
30484
31008
|
width: '50%',
|
|
30485
31009
|
height: '180px'
|
|
30486
|
-
}, React__default.createElement(React__default.Fragment, null, React__default.createElement(Container$
|
|
31010
|
+
}, 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
31011
|
flex: '70%'
|
|
30488
31012
|
}, React__default.createElement(NPCDialogText, {
|
|
30489
31013
|
onStartStep: function onStartStep() {
|
|
@@ -30525,7 +31049,7 @@ var NPCMultiDialog = function NPCMultiDialog(_ref) {
|
|
|
30525
31049
|
src: img$6
|
|
30526
31050
|
}))), ")"));
|
|
30527
31051
|
};
|
|
30528
|
-
var Container$
|
|
31052
|
+
var Container$m = /*#__PURE__*/styled__default.div.withConfig({
|
|
30529
31053
|
displayName: "NPCMultiDialog__Container",
|
|
30530
31054
|
componentId: "sc-rvu5wg-0"
|
|
30531
31055
|
})(["display:flex;width:100%;height:100%;box-sizing:border-box;justify-content:center;align-items:flex-start;position:relative;"]);
|
|
@@ -30957,7 +31481,7 @@ var Pagination = function Pagination(_ref) {
|
|
|
30957
31481
|
totalPages = _ref.totalPages,
|
|
30958
31482
|
onPageChange = _ref.onPageChange,
|
|
30959
31483
|
className = _ref.className;
|
|
30960
|
-
return React__default.createElement(Container$
|
|
31484
|
+
return React__default.createElement(Container$n, {
|
|
30961
31485
|
className: className
|
|
30962
31486
|
}, React__default.createElement(PaginationButton$1, {
|
|
30963
31487
|
onClick: function onClick() {
|
|
@@ -30975,7 +31499,7 @@ var Pagination = function Pagination(_ref) {
|
|
|
30975
31499
|
size: 12
|
|
30976
31500
|
})));
|
|
30977
31501
|
};
|
|
30978
|
-
var Container$
|
|
31502
|
+
var Container$n = /*#__PURE__*/styled__default.div.withConfig({
|
|
30979
31503
|
displayName: "Pagination__Container",
|
|
30980
31504
|
componentId: "sc-3k4m4u-0"
|
|
30981
31505
|
})(["display:flex;align-items:center;justify-content:center;gap:16px;padding:8px;"]);
|
|
@@ -31001,7 +31525,7 @@ var SearchBar = function SearchBar(_ref) {
|
|
|
31001
31525
|
className = _ref.className,
|
|
31002
31526
|
rightElement = _ref.rightElement;
|
|
31003
31527
|
var hasRightElement = Boolean(rightElement);
|
|
31004
|
-
return React__default.createElement(Container$
|
|
31528
|
+
return React__default.createElement(Container$o, {
|
|
31005
31529
|
className: className
|
|
31006
31530
|
}, React__default.createElement(Input$1, {
|
|
31007
31531
|
type: "text",
|
|
@@ -31014,7 +31538,7 @@ var SearchBar = function SearchBar(_ref) {
|
|
|
31014
31538
|
"$hasRightElement": hasRightElement
|
|
31015
31539
|
}), React__default.createElement(IconContainer, null, React__default.createElement(SearchIcon, null), rightElement));
|
|
31016
31540
|
};
|
|
31017
|
-
var Container$
|
|
31541
|
+
var Container$o = /*#__PURE__*/styled__default.div.withConfig({
|
|
31018
31542
|
displayName: "SearchBar__Container",
|
|
31019
31543
|
componentId: "sc-13n8z02-0"
|
|
31020
31544
|
})(["position:relative;width:100%;"]);
|
|
@@ -31040,7 +31564,7 @@ var SearchHeader = function SearchHeader(_ref) {
|
|
|
31040
31564
|
if (!searchOptions && !filterOptions) return null;
|
|
31041
31565
|
var isMobile = shared.isMobileOrTablet();
|
|
31042
31566
|
var isSmallScreen = isMobile && window.innerWidth < 480;
|
|
31043
|
-
return React__default.createElement(HeaderContainer$
|
|
31567
|
+
return React__default.createElement(HeaderContainer$2, {
|
|
31044
31568
|
className: className
|
|
31045
31569
|
}, React__default.createElement(HeaderContent, {
|
|
31046
31570
|
"$isSmallScreen": isSmallScreen
|
|
@@ -31057,7 +31581,7 @@ var SearchHeader = function SearchHeader(_ref) {
|
|
|
31057
31581
|
width: isSmallScreen ? '100%' : '200px'
|
|
31058
31582
|
}))));
|
|
31059
31583
|
};
|
|
31060
|
-
var HeaderContainer$
|
|
31584
|
+
var HeaderContainer$2 = /*#__PURE__*/styled__default.div.withConfig({
|
|
31061
31585
|
displayName: "SearchHeader__HeaderContainer",
|
|
31062
31586
|
componentId: "sc-1xd17jb-0"
|
|
31063
31587
|
})([""]);
|
|
@@ -31122,7 +31646,7 @@ var PaginatedContent = function PaginatedContent(_ref) {
|
|
|
31122
31646
|
setCurrentPage = _usePagination.setCurrentPage,
|
|
31123
31647
|
paginatedItems = _usePagination.paginatedItems,
|
|
31124
31648
|
totalPages = _usePagination.totalPages;
|
|
31125
|
-
return React__default.createElement(Container$
|
|
31649
|
+
return React__default.createElement(Container$p, {
|
|
31126
31650
|
className: className
|
|
31127
31651
|
}, (searchOptions || filterOptions) && React__default.createElement(SearchHeader, {
|
|
31128
31652
|
searchOptions: searchOptions,
|
|
@@ -31144,7 +31668,7 @@ var PaginatedContent = function PaginatedContent(_ref) {
|
|
|
31144
31668
|
onPageChange: setCurrentPage
|
|
31145
31669
|
}))));
|
|
31146
31670
|
};
|
|
31147
|
-
var Container$
|
|
31671
|
+
var Container$p = /*#__PURE__*/styled__default.div.withConfig({
|
|
31148
31672
|
displayName: "PaginatedContent__Container",
|
|
31149
31673
|
componentId: "sc-lzp9hn-0"
|
|
31150
31674
|
})(["display:flex;flex-direction:column;gap:0.5rem;min-height:400px;width:100%;"]);
|
|
@@ -31266,7 +31790,7 @@ var BaseInformationDetails = function BaseInformationDetails(_ref) {
|
|
|
31266
31790
|
atlasIMG = _ref.atlasIMG,
|
|
31267
31791
|
onBack = _ref.onBack,
|
|
31268
31792
|
children = _ref.children;
|
|
31269
|
-
return React__default.createElement(Container$
|
|
31793
|
+
return React__default.createElement(Container$q, null, React__default.createElement(Overlay, {
|
|
31270
31794
|
onClick: onBack
|
|
31271
31795
|
}), React__default.createElement(Modal, null, React__default.createElement(CloseButton$5, {
|
|
31272
31796
|
onClick: onBack
|
|
@@ -31279,7 +31803,7 @@ var BaseInformationDetails = function BaseInformationDetails(_ref) {
|
|
|
31279
31803
|
imgScale: 1
|
|
31280
31804
|
})), React__default.createElement(Title$3, null, name)), React__default.createElement(Content$1, null, children)));
|
|
31281
31805
|
};
|
|
31282
|
-
var Container$
|
|
31806
|
+
var Container$q = /*#__PURE__*/styled__default.div.withConfig({
|
|
31283
31807
|
displayName: "BaseInformationDetails__Container",
|
|
31284
31808
|
componentId: "sc-1vguuz8-0"
|
|
31285
31809
|
})(["position:fixed;inset:0;display:flex;justify-content:center;align-items:center;z-index:9999;"]);
|
|
@@ -31321,7 +31845,7 @@ var Collapsible = function Collapsible(_ref) {
|
|
|
31321
31845
|
var _useState = React.useState(defaultOpen),
|
|
31322
31846
|
isOpen = _useState[0],
|
|
31323
31847
|
setIsOpen = _useState[1];
|
|
31324
|
-
return React__default.createElement(Container$
|
|
31848
|
+
return React__default.createElement(Container$r, {
|
|
31325
31849
|
className: className
|
|
31326
31850
|
}, React__default.createElement(Header$2, {
|
|
31327
31851
|
onClick: function onClick() {
|
|
@@ -31329,7 +31853,7 @@ var Collapsible = function Collapsible(_ref) {
|
|
|
31329
31853
|
}
|
|
31330
31854
|
}, 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
31855
|
};
|
|
31332
|
-
var Container$
|
|
31856
|
+
var Container$r = /*#__PURE__*/styled__default.div.withConfig({
|
|
31333
31857
|
displayName: "Collapsible__Container",
|
|
31334
31858
|
componentId: "sc-s4h8ey-0"
|
|
31335
31859
|
})(["background:rgba(0,0,0,0.3);border-radius:4px;overflow:hidden;border:1px solid ", ";"], uiColors.darkGray);
|
|
@@ -31360,14 +31884,14 @@ var InformationCenterItemDetails = function InformationCenterItemDetails(_ref) {
|
|
|
31360
31884
|
var renderAllowedSlots = function renderAllowedSlots() {
|
|
31361
31885
|
var _item$allowedEquipSlo;
|
|
31362
31886
|
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(', ')));
|
|
31887
|
+
return React__default.createElement(InfoItem, null, React__default.createElement(Label$1, null, "Equip Slots:"), React__default.createElement(Value, null, item.allowedEquipSlotType.join(', ')));
|
|
31364
31888
|
};
|
|
31365
31889
|
var renderRequirements = function renderRequirements() {
|
|
31366
31890
|
if (!item.minRequirements) return null;
|
|
31367
31891
|
return React__default.createElement(StyledCollapsible, {
|
|
31368
31892
|
title: "Requirements",
|
|
31369
31893
|
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))));
|
|
31894
|
+
}, 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
31895
|
};
|
|
31372
31896
|
return React__default.createElement(BaseInformationDetails, {
|
|
31373
31897
|
name: item.name,
|
|
@@ -31375,7 +31899,7 @@ var InformationCenterItemDetails = function InformationCenterItemDetails(_ref) {
|
|
|
31375
31899
|
atlasJSON: itemsAtlasJSON,
|
|
31376
31900
|
atlasIMG: itemsAtlasIMG,
|
|
31377
31901
|
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, {
|
|
31902
|
+
}, 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
31903
|
title: "Description",
|
|
31380
31904
|
defaultOpen: !isMobile
|
|
31381
31905
|
}, React__default.createElement(Description$2, null, item.description || 'No description available.')), React__default.createElement(StyledCollapsible, {
|
|
@@ -31417,7 +31941,7 @@ var InfoItem = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
31417
31941
|
displayName: "InformationCenterItemDetails__InfoItem",
|
|
31418
31942
|
componentId: "sc-zwf6pb-1"
|
|
31419
31943
|
})(["display:flex;align-items:center;gap:8px;"]);
|
|
31420
|
-
var Label = /*#__PURE__*/styled__default.span.withConfig({
|
|
31944
|
+
var Label$1 = /*#__PURE__*/styled__default.span.withConfig({
|
|
31421
31945
|
displayName: "InformationCenterItemDetails__Label",
|
|
31422
31946
|
componentId: "sc-zwf6pb-2"
|
|
31423
31947
|
})(["color:", ";font-size:0.5rem;opacity:0.8;"], uiColors.yellow);
|
|
@@ -31502,7 +32026,7 @@ var EffectDescription = /*#__PURE__*/styled__default.p.withConfig({
|
|
|
31502
32026
|
componentId: "sc-zwf6pb-22"
|
|
31503
32027
|
})(["color:", ";font-size:0.45rem;margin:8px 0 0;padding:0 12px;font-style:italic;"], uiColors.lightGray);
|
|
31504
32028
|
|
|
31505
|
-
var TooltipContainer$
|
|
32029
|
+
var TooltipContainer$2 = /*#__PURE__*/styled__default.div.withConfig({
|
|
31506
32030
|
displayName: "BaseTooltip__TooltipContainer",
|
|
31507
32031
|
componentId: "sc-1auz5ec-0"
|
|
31508
32032
|
})(["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 +32055,7 @@ var StatItem$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
31531
32055
|
var BaseTooltip = function BaseTooltip(_ref) {
|
|
31532
32056
|
var children = _ref.children,
|
|
31533
32057
|
width = _ref.width;
|
|
31534
|
-
return React__default.createElement(TooltipContainer$
|
|
32058
|
+
return React__default.createElement(TooltipContainer$2, {
|
|
31535
32059
|
width: width
|
|
31536
32060
|
}, children);
|
|
31537
32061
|
};
|
|
@@ -31579,7 +32103,7 @@ var AdvancedFilters = function AdvancedFilters(_ref) {
|
|
|
31579
32103
|
var rangeValue = section.value;
|
|
31580
32104
|
return React__default.createElement(FilterSection, {
|
|
31581
32105
|
key: section.key
|
|
31582
|
-
}, React__default.createElement(Label$
|
|
32106
|
+
}, React__default.createElement(Label$2, null, section.label), React__default.createElement(RangeInputs, null, React__default.createElement(Input, {
|
|
31583
32107
|
type: "number",
|
|
31584
32108
|
min: 0,
|
|
31585
32109
|
placeholder: "Min",
|
|
@@ -31599,7 +32123,7 @@ var AdvancedFilters = function AdvancedFilters(_ref) {
|
|
|
31599
32123
|
case 'dropdown':
|
|
31600
32124
|
return React__default.createElement(FilterSection, {
|
|
31601
32125
|
key: section.key
|
|
31602
|
-
}, React__default.createElement(Label$
|
|
32126
|
+
}, React__default.createElement(Label$2, null, section.label), React__default.createElement(StyledDropdownWrapper, null, React__default.createElement(Dropdown, {
|
|
31603
32127
|
options: section.options || [],
|
|
31604
32128
|
onChange: section.onChange,
|
|
31605
32129
|
width: "100%"
|
|
@@ -31659,7 +32183,7 @@ var AdvancedFilters = function AdvancedFilters(_ref) {
|
|
|
31659
32183
|
onClose();
|
|
31660
32184
|
}
|
|
31661
32185
|
};
|
|
31662
|
-
return React__default.createElement(Container$
|
|
32186
|
+
return React__default.createElement(Container$s, null, React__default.createElement(FilterButton, {
|
|
31663
32187
|
onClick: onToggle,
|
|
31664
32188
|
"$hasActiveFilters": hasActiveFilters,
|
|
31665
32189
|
ref: buttonRef
|
|
@@ -31690,7 +32214,7 @@ var AdvancedFilters = function AdvancedFilters(_ref) {
|
|
|
31690
32214
|
onClick: onClearAll
|
|
31691
32215
|
}, "Clear All Filters"))));
|
|
31692
32216
|
};
|
|
31693
|
-
var Container$
|
|
32217
|
+
var Container$s = /*#__PURE__*/styled__default.div.withConfig({
|
|
31694
32218
|
displayName: "AdvancedFilters__Container",
|
|
31695
32219
|
componentId: "sc-1xj6ldr-0"
|
|
31696
32220
|
})(["position:relative;margin-left:0.5rem;"]);
|
|
@@ -31744,7 +32268,7 @@ var FilterSection = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
31744
32268
|
displayName: "AdvancedFilters__FilterSection",
|
|
31745
32269
|
componentId: "sc-1xj6ldr-7"
|
|
31746
32270
|
})(["display:flex;flex-direction:column;gap:0.5rem;"]);
|
|
31747
|
-
var Label$
|
|
32271
|
+
var Label$2 = /*#__PURE__*/styled__default.div.withConfig({
|
|
31748
32272
|
displayName: "AdvancedFilters__Label",
|
|
31749
32273
|
componentId: "sc-1xj6ldr-8"
|
|
31750
32274
|
})(["color:#999;font-size:0.65rem;text-transform:uppercase;letter-spacing:0.05em;"]);
|
|
@@ -32132,7 +32656,7 @@ var InformationCenterNPCDetails = function InformationCenterNPCDetails(_ref) {
|
|
|
32132
32656
|
atlasJSON: entitiesAtlasJSON,
|
|
32133
32657
|
atlasIMG: entitiesAtlasIMG,
|
|
32134
32658
|
onBack: onBack
|
|
32135
|
-
}, React__default.createElement(InfoSection$1, null, React__default.createElement(InfoItem$1, null, React__default.createElement(Label$
|
|
32659
|
+
}, 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
32660
|
title: "Stats",
|
|
32137
32661
|
defaultOpen: !isMobile
|
|
32138
32662
|
}, 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 +32726,7 @@ var InfoItem$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
32202
32726
|
displayName: "InformationCenterNPCDetails__InfoItem",
|
|
32203
32727
|
componentId: "sc-fdu3xl-1"
|
|
32204
32728
|
})(["display:flex;align-items:center;gap:8px;"]);
|
|
32205
|
-
var Label$
|
|
32729
|
+
var Label$3 = /*#__PURE__*/styled__default.span.withConfig({
|
|
32206
32730
|
displayName: "InformationCenterNPCDetails__Label",
|
|
32207
32731
|
componentId: "sc-fdu3xl-2"
|
|
32208
32732
|
})(["color:", ";font-size:0.5rem;opacity:0.8;"], uiColors.yellow);
|
|
@@ -32784,7 +33308,7 @@ var InformationCenter = function InformationCenter(_ref) {
|
|
|
32784
33308
|
minWidth: "300px",
|
|
32785
33309
|
cancelDrag: ".PaginatedContent-content",
|
|
32786
33310
|
onCloseButton: onClose
|
|
32787
|
-
}, React__default.createElement(Container$
|
|
33311
|
+
}, React__default.createElement(Container$t, null, React__default.createElement(InternalTabs, {
|
|
32788
33312
|
tabs: tabs,
|
|
32789
33313
|
activeTextColor: "#000000",
|
|
32790
33314
|
activeTab: activeTab,
|
|
@@ -32795,7 +33319,7 @@ var InformationCenter = function InformationCenter(_ref) {
|
|
|
32795
33319
|
hoverColor: "#fef3c7"
|
|
32796
33320
|
})));
|
|
32797
33321
|
};
|
|
32798
|
-
var Container$
|
|
33322
|
+
var Container$t = /*#__PURE__*/styled__default.div.withConfig({
|
|
32799
33323
|
displayName: "InformationCenter__Container",
|
|
32800
33324
|
componentId: "sc-1ttl62e-0"
|
|
32801
33325
|
})(["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 +33490,7 @@ var ShortcutsSetter = function ShortcutsSetter(_ref) {
|
|
|
32966
33490
|
}
|
|
32967
33491
|
return null;
|
|
32968
33492
|
};
|
|
32969
|
-
return React__default.createElement(Container$
|
|
33493
|
+
return React__default.createElement(Container$u, null, React__default.createElement("p", null, "Shortcuts:"), React__default.createElement(List, {
|
|
32970
33494
|
id: "shortcuts_list"
|
|
32971
33495
|
}, Array.from({
|
|
32972
33496
|
length: 12
|
|
@@ -32984,7 +33508,7 @@ var ShortcutsSetter = function ShortcutsSetter(_ref) {
|
|
|
32984
33508
|
}, getContent(i));
|
|
32985
33509
|
})));
|
|
32986
33510
|
};
|
|
32987
|
-
var Container$
|
|
33511
|
+
var Container$u = /*#__PURE__*/styled__default.div.withConfig({
|
|
32988
33512
|
displayName: "ShortcutsSetter__Container",
|
|
32989
33513
|
componentId: "sc-xuouuf-0"
|
|
32990
33514
|
})(["p{margin:0;margin-left:0.5rem;font-size:10px;}width:100%;"]);
|
|
@@ -33428,7 +33952,7 @@ var ConfirmModal = function ConfirmModal(_ref) {
|
|
|
33428
33952
|
e.stopPropagation();
|
|
33429
33953
|
onClose();
|
|
33430
33954
|
};
|
|
33431
|
-
return React__default.createElement(ModalPortal, null, React__default.createElement(Background, null), React__default.createElement(Container$
|
|
33955
|
+
return React__default.createElement(ModalPortal, null, React__default.createElement(Background, null), React__default.createElement(Container$v, {
|
|
33432
33956
|
onClick: handleClose
|
|
33433
33957
|
}, React__default.createElement(DraggableContainer, {
|
|
33434
33958
|
width: "auto",
|
|
@@ -33451,7 +33975,7 @@ var Background = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
33451
33975
|
displayName: "ConfirmModal__Background",
|
|
33452
33976
|
componentId: "sc-11qkyu1-0"
|
|
33453
33977
|
})(["position:absolute;width:100%;height:100%;background-color:#000000;opacity:0.5;left:0;top:0;z-index:1000;"]);
|
|
33454
|
-
var Container$
|
|
33978
|
+
var Container$v = /*#__PURE__*/styled__default.div.withConfig({
|
|
33455
33979
|
displayName: "ConfirmModal__Container",
|
|
33456
33980
|
componentId: "sc-11qkyu1-1"
|
|
33457
33981
|
})(["position:absolute;width:100%;height:100%;left:0;top:0;display:flex;justify-content:center;align-items:center;z-index:1001;"]);
|
|
@@ -33506,7 +34030,7 @@ var ColorSelector = function ColorSelector(_ref) {
|
|
|
33506
34030
|
cancelDrag: ".react-colorful",
|
|
33507
34031
|
width: "25rem",
|
|
33508
34032
|
onCloseButton: onClose
|
|
33509
|
-
}, React__default.createElement(Container$
|
|
34033
|
+
}, 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
34034
|
color: currentColor,
|
|
33511
34035
|
onChange: function onChange(color) {
|
|
33512
34036
|
setCurrentColor(color);
|
|
@@ -33522,7 +34046,7 @@ var ColorSelector = function ColorSelector(_ref) {
|
|
|
33522
34046
|
onClose: handleClose
|
|
33523
34047
|
}));
|
|
33524
34048
|
};
|
|
33525
|
-
var Container$
|
|
34049
|
+
var Container$w = /*#__PURE__*/styled__default.div.withConfig({
|
|
33526
34050
|
displayName: "ItemPropertyColorSelector__Container",
|
|
33527
34051
|
componentId: "sc-me1r4z-0"
|
|
33528
34052
|
})(["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 +34124,7 @@ var GemSelector = function GemSelector(_ref) {
|
|
|
33600
34124
|
}, 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
34125
|
return React__default.createElement(GemItem, {
|
|
33602
34126
|
key: gem.key + "-" + index
|
|
33603
|
-
}, React__default.createElement(CheckItemWrapper, null, React__default.createElement(CheckItem, {
|
|
34127
|
+
}, React__default.createElement(CheckItemWrapper$1, null, React__default.createElement(CheckItem, {
|
|
33604
34128
|
defaultValue: selectedGems.some(function (selected) {
|
|
33605
34129
|
return selected.key === gem.key;
|
|
33606
34130
|
}),
|
|
@@ -33660,7 +34184,7 @@ var ButtonWrapper = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
33660
34184
|
displayName: "GemSelector__ButtonWrapper",
|
|
33661
34185
|
componentId: "sc-gbt8g4-7"
|
|
33662
34186
|
})(["display:flex;justify-content:center;align-self:center;"]);
|
|
33663
|
-
var CheckItemWrapper = /*#__PURE__*/styled__default.div.withConfig({
|
|
34187
|
+
var CheckItemWrapper$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
33664
34188
|
displayName: "GemSelector__CheckItemWrapper",
|
|
33665
34189
|
componentId: "sc-gbt8g4-8"
|
|
33666
34190
|
})(["display:flex;justify-content:center;width:100%;height:20px;input.rpgui-checkbox + label{margin:0 !important;padding-left:23px !important;}"]);
|
|
@@ -33878,7 +34402,7 @@ var ListMenu = function ListMenu(_ref) {
|
|
|
33878
34402
|
onSelected = _ref.onSelected,
|
|
33879
34403
|
x = _ref.x,
|
|
33880
34404
|
y = _ref.y;
|
|
33881
|
-
return React__default.createElement(Container$
|
|
34405
|
+
return React__default.createElement(Container$x, {
|
|
33882
34406
|
x: x,
|
|
33883
34407
|
y: y
|
|
33884
34408
|
}, React__default.createElement("ul", {
|
|
@@ -33895,7 +34419,7 @@ var ListMenu = function ListMenu(_ref) {
|
|
|
33895
34419
|
}, (params == null ? void 0 : params.text) || 'No text');
|
|
33896
34420
|
})));
|
|
33897
34421
|
};
|
|
33898
|
-
var Container$
|
|
34422
|
+
var Container$x = /*#__PURE__*/styled__default.div.withConfig({
|
|
33899
34423
|
displayName: "ListMenu__Container",
|
|
33900
34424
|
componentId: "sc-i9097t-0"
|
|
33901
34425
|
})(["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 +34438,7 @@ var Pager = function Pager(_ref) {
|
|
|
33914
34438
|
itemsPerPage = _ref.itemsPerPage,
|
|
33915
34439
|
onPageChange = _ref.onPageChange;
|
|
33916
34440
|
var totalPages = Math.ceil(totalItems / itemsPerPage);
|
|
33917
|
-
return React__default.createElement(Container$
|
|
34441
|
+
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
34442
|
disabled: currentPage === 1,
|
|
33919
34443
|
onPointerDown: function onPointerDown() {
|
|
33920
34444
|
return onPageChange(Math.max(currentPage - 1, 1));
|
|
@@ -33928,7 +34452,7 @@ var Pager = function Pager(_ref) {
|
|
|
33928
34452
|
}
|
|
33929
34453
|
}, '>')));
|
|
33930
34454
|
};
|
|
33931
|
-
var Container$
|
|
34455
|
+
var Container$y = /*#__PURE__*/styled__default.div.withConfig({
|
|
33932
34456
|
displayName: "Pager__Container",
|
|
33933
34457
|
componentId: "sc-1ekmf50-0"
|
|
33934
34458
|
})(["display:flex;flex-direction:column;align-items:center;p{margin:0;font-size:", ";}"], uiFonts.size.xsmall);
|
|
@@ -34449,13 +34973,13 @@ var TabBody = function TabBody(_ref) {
|
|
|
34449
34973
|
children = _ref.children,
|
|
34450
34974
|
styles = _ref.styles,
|
|
34451
34975
|
centerContent = _ref.centerContent;
|
|
34452
|
-
return React__default.createElement(Container$
|
|
34976
|
+
return React__default.createElement(Container$z, {
|
|
34453
34977
|
styles: styles,
|
|
34454
34978
|
"data-tab-id": id,
|
|
34455
34979
|
centerContent: centerContent
|
|
34456
34980
|
}, children);
|
|
34457
34981
|
};
|
|
34458
|
-
var Container$
|
|
34982
|
+
var Container$z = /*#__PURE__*/styled__default.div.withConfig({
|
|
34459
34983
|
displayName: "TabBody__Container",
|
|
34460
34984
|
componentId: "sc-196oof2-0"
|
|
34461
34985
|
})(["width:", ";height:", ";overflow-y:auto;display:", ";justify-content:", ";align-items:", ";"], function (props) {
|
|
@@ -35087,7 +35611,7 @@ var getMockedPlayersRowsNotLeader = function getMockedPlayersRowsNotLeader(userI
|
|
|
35087
35611
|
};
|
|
35088
35612
|
};
|
|
35089
35613
|
|
|
35090
|
-
var ProgressBar = function ProgressBar(_ref) {
|
|
35614
|
+
var ProgressBar$1 = function ProgressBar(_ref) {
|
|
35091
35615
|
var max = _ref.max,
|
|
35092
35616
|
value = _ref.value,
|
|
35093
35617
|
color = _ref.color,
|
|
@@ -35107,7 +35631,7 @@ var ProgressBar = function ProgressBar(_ref) {
|
|
|
35107
35631
|
}
|
|
35108
35632
|
return value * 100 / max;
|
|
35109
35633
|
};
|
|
35110
|
-
return React__default.createElement(Container$
|
|
35634
|
+
return React__default.createElement(Container$A, {
|
|
35111
35635
|
className: "rpgui-progress",
|
|
35112
35636
|
"data-value": calculatePercentageValue(max, value) / 100,
|
|
35113
35637
|
"data-rpguitype": "progress",
|
|
@@ -35137,7 +35661,7 @@ var TextOverlay$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
35137
35661
|
displayName: "ProgressBar__TextOverlay",
|
|
35138
35662
|
componentId: "sc-qa6fzh-1"
|
|
35139
35663
|
})(["width:100%;position:relative;"]);
|
|
35140
|
-
var Container$
|
|
35664
|
+
var Container$A = /*#__PURE__*/styled__default.div.withConfig({
|
|
35141
35665
|
displayName: "ProgressBar__Container",
|
|
35142
35666
|
componentId: "sc-qa6fzh-2"
|
|
35143
35667
|
})(["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 +35802,17 @@ var QuestList = function QuestList(_ref) {
|
|
|
35278
35802
|
return React__default.createElement(QuestCard, {
|
|
35279
35803
|
key: i,
|
|
35280
35804
|
style: styles == null ? void 0 : styles.card
|
|
35281
|
-
}, React__default.createElement(QuestItem, null, React__default.createElement(Label$
|
|
35805
|
+
}, React__default.createElement(QuestItem, null, React__default.createElement(Label$4, {
|
|
35282
35806
|
style: styles == null ? void 0 : styles.label
|
|
35283
35807
|
}, "Title:"), React__default.createElement(Value$2, {
|
|
35284
35808
|
style: styles == null ? void 0 : styles.value
|
|
35285
|
-
}, formatQuestText(quest.title))), React__default.createElement(QuestItem, null, React__default.createElement(Label$
|
|
35809
|
+
}, formatQuestText(quest.title))), React__default.createElement(QuestItem, null, React__default.createElement(Label$4, {
|
|
35286
35810
|
style: styles == null ? void 0 : styles.label
|
|
35287
35811
|
}, "Status:"), React__default.createElement(Value$2, {
|
|
35288
35812
|
style: _extends({}, styles == null ? void 0 : styles.value, {
|
|
35289
35813
|
color: getQuestStatusColor(quest.status)
|
|
35290
35814
|
})
|
|
35291
|
-
}, (_formatQuestStatus = formatQuestStatus(quest.status)) != null ? _formatQuestStatus : 'Unknown')), React__default.createElement(QuestItem, null, React__default.createElement(Label$
|
|
35815
|
+
}, (_formatQuestStatus = formatQuestStatus(quest.status)) != null ? _formatQuestStatus : 'Unknown')), React__default.createElement(QuestItem, null, React__default.createElement(Label$4, {
|
|
35292
35816
|
style: styles == null ? void 0 : styles.label
|
|
35293
35817
|
}, "Description:"), React__default.createElement(Value$2, {
|
|
35294
35818
|
style: styles == null ? void 0 : styles.value
|
|
@@ -35307,7 +35831,7 @@ var QuestItem = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
35307
35831
|
displayName: "QuestList__QuestItem",
|
|
35308
35832
|
componentId: "sc-1c1y8sp-2"
|
|
35309
35833
|
})(["display:flex;margin-bottom:5px;flex-wrap:wrap;&:last-child{margin-bottom:0;}"]);
|
|
35310
|
-
var Label$
|
|
35834
|
+
var Label$4 = /*#__PURE__*/styled__default.span.withConfig({
|
|
35311
35835
|
displayName: "QuestList__Label",
|
|
35312
35836
|
componentId: "sc-1c1y8sp-3"
|
|
35313
35837
|
})(["font-weight:bold;color:", " !important;margin-right:10px;"], uiColors.yellow);
|
|
@@ -35378,9 +35902,9 @@ var InputRadio = function InputRadio(_ref) {
|
|
|
35378
35902
|
|
|
35379
35903
|
var RPGUIScrollbar = function RPGUIScrollbar(_ref) {
|
|
35380
35904
|
var children = _ref.children;
|
|
35381
|
-
return React__default.createElement(Container$
|
|
35905
|
+
return React__default.createElement(Container$B, null, children);
|
|
35382
35906
|
};
|
|
35383
|
-
var Container$
|
|
35907
|
+
var Container$B = /*#__PURE__*/styled__default.div.withConfig({
|
|
35384
35908
|
displayName: "RPGUIScrollbar__Container",
|
|
35385
35909
|
componentId: "sc-p3msmb-0"
|
|
35386
35910
|
})([".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 +36060,7 @@ var SimpleProgressBar = function SimpleProgressBar(_ref) {
|
|
|
35536
36060
|
margin = _ref$margin === void 0 ? 20 : _ref$margin;
|
|
35537
36061
|
// Ensure the width is at least 1% if value is greater than 0
|
|
35538
36062
|
var width = value > 0 ? Math.max(1, Math.min(100, value)) : 0;
|
|
35539
|
-
return React__default.createElement(Container$
|
|
36063
|
+
return React__default.createElement(Container$C, {
|
|
35540
36064
|
className: "simple-progress-bar"
|
|
35541
36065
|
}, React__default.createElement(ProgressBarContainer, {
|
|
35542
36066
|
margin: margin
|
|
@@ -35545,7 +36069,7 @@ var SimpleProgressBar = function SimpleProgressBar(_ref) {
|
|
|
35545
36069
|
bgColor: bgColor
|
|
35546
36070
|
}))));
|
|
35547
36071
|
};
|
|
35548
|
-
var Container$
|
|
36072
|
+
var Container$C = /*#__PURE__*/styled__default.div.withConfig({
|
|
35549
36073
|
displayName: "SimpleProgressBar__Container",
|
|
35550
36074
|
componentId: "sc-mbeil3-0"
|
|
35551
36075
|
})(["display:flex;justify-content:center;align-items:center;width:100%;"]);
|
|
@@ -35878,7 +36402,7 @@ var SocialModal = function SocialModal(_ref) {
|
|
|
35878
36402
|
title: "Social Channels",
|
|
35879
36403
|
width: "500px",
|
|
35880
36404
|
onCloseButton: onClose
|
|
35881
|
-
}, React__default.createElement(Container$
|
|
36405
|
+
}, React__default.createElement(Container$D, null, React__default.createElement(HeaderImage, {
|
|
35882
36406
|
src: img$9,
|
|
35883
36407
|
alt: ""
|
|
35884
36408
|
}), React__default.createElement(ButtonsContainer$1, null, React__default.createElement(MainButtons, null, React__default.createElement(SocialButton$1, {
|
|
@@ -35896,7 +36420,7 @@ var SocialModal = function SocialModal(_ref) {
|
|
|
35896
36420
|
onClick: handleWhatsAppClick
|
|
35897
36421
|
}, React__default.createElement(fa.FaWhatsapp, null), " Join WhatsApp")))));
|
|
35898
36422
|
};
|
|
35899
|
-
var Container$
|
|
36423
|
+
var Container$D = /*#__PURE__*/styled__default.div.withConfig({
|
|
35900
36424
|
displayName: "SocialModal__Container",
|
|
35901
36425
|
componentId: "sc-tbjhp9-0"
|
|
35902
36426
|
})(["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 +36466,7 @@ var SpellInfo$1 = function SpellInfo(_ref) {
|
|
|
35942
36466
|
castingType = spell.castingType,
|
|
35943
36467
|
cooldown = spell.cooldown,
|
|
35944
36468
|
maxDistanceGrid = spell.maxDistanceGrid;
|
|
35945
|
-
return React__default.createElement(Container$
|
|
36469
|
+
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
36470
|
className: "label"
|
|
35947
36471
|
}, "Casting Type:"), React__default.createElement("div", {
|
|
35948
36472
|
className: "value"
|
|
@@ -35968,7 +36492,7 @@ var SpellInfo$1 = function SpellInfo(_ref) {
|
|
|
35968
36492
|
className: "value"
|
|
35969
36493
|
}, requiredItem))), React__default.createElement(Description$4, null, description));
|
|
35970
36494
|
};
|
|
35971
|
-
var Container$
|
|
36495
|
+
var Container$E = /*#__PURE__*/styled__default.div.withConfig({
|
|
35972
36496
|
displayName: "SpellInfo__Container",
|
|
35973
36497
|
componentId: "sc-4hbw3q-0"
|
|
35974
36498
|
})(["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 +36546,7 @@ var MobileSpellTooltip = function MobileSpellTooltip(_ref) {
|
|
|
36022
36546
|
var _ref$current;
|
|
36023
36547
|
(_ref$current = ref.current) == null ? void 0 : _ref$current.classList.add('fadeOut');
|
|
36024
36548
|
};
|
|
36025
|
-
return React__default.createElement(ModalPortal, null, React__default.createElement(Container$
|
|
36549
|
+
return React__default.createElement(ModalPortal, null, React__default.createElement(Container$F, {
|
|
36026
36550
|
ref: ref,
|
|
36027
36551
|
onTouchEnd: function onTouchEnd() {
|
|
36028
36552
|
handleFadeOut();
|
|
@@ -36047,7 +36571,7 @@ var MobileSpellTooltip = function MobileSpellTooltip(_ref) {
|
|
|
36047
36571
|
}, option.text);
|
|
36048
36572
|
}))));
|
|
36049
36573
|
};
|
|
36050
|
-
var Container$
|
|
36574
|
+
var Container$F = /*#__PURE__*/styled__default.div.withConfig({
|
|
36051
36575
|
displayName: "MobileSpellTooltip__Container",
|
|
36052
36576
|
componentId: "sc-6p7uvr-0"
|
|
36053
36577
|
})(["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 +36612,13 @@ var MagicTooltip = function MagicTooltip(_ref) {
|
|
|
36088
36612
|
}
|
|
36089
36613
|
return;
|
|
36090
36614
|
}, []);
|
|
36091
|
-
return React__default.createElement(ModalPortal, null, React__default.createElement(Container$
|
|
36615
|
+
return React__default.createElement(ModalPortal, null, React__default.createElement(Container$G, {
|
|
36092
36616
|
ref: ref
|
|
36093
36617
|
}, React__default.createElement(SpellInfoDisplay, {
|
|
36094
36618
|
spell: spell
|
|
36095
36619
|
})));
|
|
36096
36620
|
};
|
|
36097
|
-
var Container$
|
|
36621
|
+
var Container$G = /*#__PURE__*/styled__default.div.withConfig({
|
|
36098
36622
|
displayName: "SpellTooltip__Container",
|
|
36099
36623
|
componentId: "sc-1go0gwg-0"
|
|
36100
36624
|
})(["position:absolute;z-index:100;pointer-events:none;left:0;top:0;opacity:0;transition:opacity 0.08s;"]);
|
|
@@ -36167,7 +36691,7 @@ var Spell = function Spell(_ref) {
|
|
|
36167
36691
|
var IMAGE_SCALE = 2;
|
|
36168
36692
|
return React__default.createElement(SpellInfoWrapper, {
|
|
36169
36693
|
spell: spell
|
|
36170
|
-
}, React__default.createElement(Container$
|
|
36694
|
+
}, React__default.createElement(Container$H, {
|
|
36171
36695
|
onPointerUp: onPointerUp == null ? void 0 : onPointerUp.bind(null, spellKey),
|
|
36172
36696
|
isSettingShortcut: isSettingShortcut && !disabled,
|
|
36173
36697
|
className: "spell"
|
|
@@ -36186,7 +36710,7 @@ var Spell = function Spell(_ref) {
|
|
|
36186
36710
|
className: "mana"
|
|
36187
36711
|
}, manaCost))));
|
|
36188
36712
|
};
|
|
36189
|
-
var Container$
|
|
36713
|
+
var Container$H = /*#__PURE__*/styled__default.button.withConfig({
|
|
36190
36714
|
displayName: "Spell__Container",
|
|
36191
36715
|
componentId: "sc-j96fa2-0"
|
|
36192
36716
|
})(["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 +36789,7 @@ var Spellbook = function Spellbook(_ref) {
|
|
|
36265
36789
|
height: "inherit",
|
|
36266
36790
|
cancelDrag: "#spellbook-search, #shortcuts_list, .spell",
|
|
36267
36791
|
scale: scale
|
|
36268
|
-
}, React__default.createElement(Container$
|
|
36792
|
+
}, React__default.createElement(Container$I, null, React__default.createElement(Title$d, null, "Learned Spells"), React__default.createElement(ShortcutsSetter, {
|
|
36269
36793
|
setSettingShortcutIndex: setSettingShortcutIndex,
|
|
36270
36794
|
settingShortcutIndex: settingShortcutIndex,
|
|
36271
36795
|
shortcuts: shortcuts,
|
|
@@ -36301,7 +36825,7 @@ var Title$d = /*#__PURE__*/styled__default.h1.withConfig({
|
|
|
36301
36825
|
displayName: "Spellbook__Title",
|
|
36302
36826
|
componentId: "sc-r02nfq-0"
|
|
36303
36827
|
})(["font-size:", " !important;margin-bottom:0 !important;"], uiFonts.size.large);
|
|
36304
|
-
var Container$
|
|
36828
|
+
var Container$I = /*#__PURE__*/styled__default.div.withConfig({
|
|
36305
36829
|
displayName: "Spellbook__Container",
|
|
36306
36830
|
componentId: "sc-r02nfq-1"
|
|
36307
36831
|
})(["width:100%;height:100%;color:white;display:flex;flex-direction:column;"]);
|
|
@@ -36783,7 +37307,7 @@ var TradingMenu = function TradingMenu(_ref) {
|
|
|
36783
37307
|
width: "500px",
|
|
36784
37308
|
cancelDrag: "#TraderContainer",
|
|
36785
37309
|
scale: scale
|
|
36786
|
-
}, React__default.createElement(Container$
|
|
37310
|
+
}, 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
37311
|
className: "golden"
|
|
36788
37312
|
}), React__default.createElement(ScrollWrapper, {
|
|
36789
37313
|
id: "TraderContainer"
|
|
@@ -36811,7 +37335,7 @@ var TradingMenu = function TradingMenu(_ref) {
|
|
|
36811
37335
|
onPointerDown: onClose
|
|
36812
37336
|
}, "Cancel"))));
|
|
36813
37337
|
};
|
|
36814
|
-
var Container$
|
|
37338
|
+
var Container$J = /*#__PURE__*/styled__default.div.withConfig({
|
|
36815
37339
|
displayName: "TradingMenu__Container",
|
|
36816
37340
|
componentId: "sc-1wjsz1l-0"
|
|
36817
37341
|
})(["width:100%;"]);
|
|
@@ -36845,11 +37369,11 @@ var Truncate = function Truncate(_ref) {
|
|
|
36845
37369
|
var _ref$maxLines = _ref.maxLines,
|
|
36846
37370
|
maxLines = _ref$maxLines === void 0 ? 1 : _ref$maxLines,
|
|
36847
37371
|
children = _ref.children;
|
|
36848
|
-
return React__default.createElement(Container$
|
|
37372
|
+
return React__default.createElement(Container$K, {
|
|
36849
37373
|
maxLines: maxLines
|
|
36850
37374
|
}, children);
|
|
36851
37375
|
};
|
|
36852
|
-
var Container$
|
|
37376
|
+
var Container$K = /*#__PURE__*/styled__default.div.withConfig({
|
|
36853
37377
|
displayName: "Truncate__Container",
|
|
36854
37378
|
componentId: "sc-6x00qb-0"
|
|
36855
37379
|
})(["display:-webkit-box;max-width:100%;max-height:100%;-webkit-line-clamp:", ";-webkit-box-orient:vertical;overflow:hidden;"], function (props) {
|
|
@@ -36957,7 +37481,7 @@ var TutorialStepper = /*#__PURE__*/React__default.memo(function (_ref) {
|
|
|
36957
37481
|
};
|
|
36958
37482
|
});
|
|
36959
37483
|
}, [lessons, imageStyle]);
|
|
36960
|
-
return React__default.createElement(Container$
|
|
37484
|
+
return React__default.createElement(Container$L, null, React__default.createElement(Stepper, {
|
|
36961
37485
|
steps: generateLessons,
|
|
36962
37486
|
finalCTAButton: {
|
|
36963
37487
|
label: 'Close',
|
|
@@ -36974,7 +37498,7 @@ var LessonBody = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
36974
37498
|
displayName: "TutorialStepper__LessonBody",
|
|
36975
37499
|
componentId: "sc-7tgzv2-1"
|
|
36976
37500
|
})([""]);
|
|
36977
|
-
var Container$
|
|
37501
|
+
var Container$L = /*#__PURE__*/styled__default.div.withConfig({
|
|
36978
37502
|
displayName: "TutorialStepper__Container",
|
|
36979
37503
|
componentId: "sc-7tgzv2-2"
|
|
36980
37504
|
})(["width:80%;max-width:600px;@media (max-width:600px){width:95%;}"]);
|
|
@@ -37006,6 +37530,7 @@ exports.CheckButton = CheckButton;
|
|
|
37006
37530
|
exports.CheckItem = CheckItem;
|
|
37007
37531
|
exports.CircularController = CircularController;
|
|
37008
37532
|
exports.CraftBook = CraftBook;
|
|
37533
|
+
exports.DailyTasks = DailyTasks;
|
|
37009
37534
|
exports.DraggableContainer = DraggableContainer;
|
|
37010
37535
|
exports.Dropdown = Dropdown;
|
|
37011
37536
|
exports.DropdownSelectorContainer = DropdownSelectorContainer;
|
|
@@ -37040,7 +37565,7 @@ exports.PartyManager = PartyManager;
|
|
|
37040
37565
|
exports.PartyManagerRow = PartyManagerRow;
|
|
37041
37566
|
exports.PartyRow = PartyRow;
|
|
37042
37567
|
exports.PlayersRow = PlayersRow;
|
|
37043
|
-
exports.ProgressBar = ProgressBar;
|
|
37568
|
+
exports.ProgressBar = ProgressBar$1;
|
|
37044
37569
|
exports.PropertySelect = PropertySelect;
|
|
37045
37570
|
exports.QuantitySelectorModal = QuantitySelectorModal;
|
|
37046
37571
|
exports.QuestInfo = QuestInfo;
|