@rpg-engine/long-bow 0.8.73 → 0.8.75
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/DailyTaskItem.d.ts +1 -0
- package/dist/long-bow.cjs.development.js +435 -204
- 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 +437 -206
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/DailyTasks/DailyRewardsTooltip.tsx +69 -38
- package/src/components/DailyTasks/DailyTaskItem.tsx +271 -78
- package/src/components/DailyTasks/DailyTasks.tsx +233 -45
- package/src/components/DailyTasks/GlobalDailyProgress.tsx +31 -24
- package/src/components/DailyTasks/TaskProgress.tsx +31 -20
package/dist/long-bow.esm.js
CHANGED
|
@@ -2,10 +2,10 @@ import React, { useState, useEffect, Component, useRef, useCallback, useContext,
|
|
|
2
2
|
import styled, { css, keyframes, createGlobalStyle } from 'styled-components';
|
|
3
3
|
import { BeatLoader } from 'react-spinners';
|
|
4
4
|
import { v4 } from 'uuid';
|
|
5
|
-
import { GRID_WIDTH, GRID_HEIGHT, ShortcutType, getItemTextureKeyPath, ItemContainerType, ItemType, DepotSocketEvents, ItemSocketEvents, ItemSocketEventsDisplayLabels, ActionsForInventory, ActionsForEquipmentSet, ActionsForLoot, ActionsForMapContainer, ItemQualityLevel, ItemRarities, ItemSubType, isMobile, TaskType, TaskStatus,
|
|
5
|
+
import { GRID_WIDTH, GRID_HEIGHT, ShortcutType, getItemTextureKeyPath, ItemContainerType, ItemType, DepotSocketEvents, ItemSocketEvents, ItemSocketEventsDisplayLabels, ActionsForInventory, ActionsForEquipmentSet, ActionsForLoot, ActionsForMapContainer, ItemQualityLevel, ItemRarities, ItemSubType, isMobile, TaskType, TaskStatus, isMobileOrTablet, RewardType, ItemSlotType, NPCSubtype, EntityAttackType, NPCAlignment, VideoGuideCategory, VideoGuideLanguage, CharacterClass, QuestStatus, getSPForLevel, getXPForLevel, MetadataType, PurchaseType, UserAccountTypes, PaymentCurrency, PeriodOfDay } from '@rpg-engine/shared';
|
|
6
6
|
import dayjs from 'dayjs';
|
|
7
7
|
import { ErrorBoundary as ErrorBoundary$1 } from 'react-error-boundary';
|
|
8
|
-
import { FaTimes, FaDiscord, FaWhatsapp, FaSearch, FaThumbtack, FaBoxOpen, FaChevronLeft, FaChevronRight, FaChevronUp, FaChevronDown, FaReddit, FaTrash, FaShoppingBag, FaInfoCircle, FaCartPlus, FaArrowLeft, FaHistory, FaShoppingCart } from 'react-icons/fa';
|
|
8
|
+
import { FaTimes, FaDiscord, FaWhatsapp, FaSearch, FaThumbtack, FaBoxOpen, FaChevronLeft, FaChevronRight, FaClipboardList, FaChevronUp, FaChevronDown, FaReddit, FaTrash, FaShoppingBag, FaInfoCircle, FaCartPlus, FaArrowLeft, FaHistory, FaShoppingCart } from 'react-icons/fa';
|
|
9
9
|
import { RxMagnifyingGlass, RxCross2 } from 'react-icons/rx';
|
|
10
10
|
import { IoMdContract, IoMdExpand } from 'react-icons/io';
|
|
11
11
|
import Draggable from 'react-draggable';
|
|
@@ -29357,6 +29357,45 @@ var EmptyState = /*#__PURE__*/styled.div.withConfig({
|
|
|
29357
29357
|
componentId: "sc-19q95ue-15"
|
|
29358
29358
|
})(["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);
|
|
29359
29359
|
|
|
29360
|
+
var SearchBar = function SearchBar(_ref) {
|
|
29361
|
+
var value = _ref.value,
|
|
29362
|
+
_onChange = _ref.onChange,
|
|
29363
|
+
placeholder = _ref.placeholder,
|
|
29364
|
+
className = _ref.className,
|
|
29365
|
+
rightElement = _ref.rightElement;
|
|
29366
|
+
var hasRightElement = Boolean(rightElement);
|
|
29367
|
+
return React.createElement(Container$g, {
|
|
29368
|
+
className: className
|
|
29369
|
+
}, React.createElement(Input$1, {
|
|
29370
|
+
type: "text",
|
|
29371
|
+
value: value,
|
|
29372
|
+
onChange: function onChange(e) {
|
|
29373
|
+
return _onChange(e.target.value);
|
|
29374
|
+
},
|
|
29375
|
+
placeholder: placeholder,
|
|
29376
|
+
className: "rpgui-input",
|
|
29377
|
+
"$hasRightElement": hasRightElement
|
|
29378
|
+
}), React.createElement(IconContainer, null, React.createElement(SearchIcon, null), rightElement));
|
|
29379
|
+
};
|
|
29380
|
+
var Container$g = /*#__PURE__*/styled.div.withConfig({
|
|
29381
|
+
displayName: "SearchBar__Container",
|
|
29382
|
+
componentId: "sc-13n8z02-0"
|
|
29383
|
+
})(["position:relative;width:100%;"]);
|
|
29384
|
+
var Input$1 = /*#__PURE__*/styled.input.withConfig({
|
|
29385
|
+
displayName: "SearchBar__Input",
|
|
29386
|
+
componentId: "sc-13n8z02-1"
|
|
29387
|
+
})(["width:100%;padding-right:", " !important;background:rgba(0,0,0,0.2) !important;border:2px solid #f59e0b !important;box-shadow:0 0 10px rgba(245,158,11,0.3);color:#ffffff !important;font-family:'Press Start 2P',cursive !important;font-size:0.875rem !important;&::placeholder{color:rgba(255,255,255,0.5) !important;}"], function (props) {
|
|
29388
|
+
return props.$hasRightElement ? '6rem' : '2.5rem';
|
|
29389
|
+
});
|
|
29390
|
+
var IconContainer = /*#__PURE__*/styled.div.withConfig({
|
|
29391
|
+
displayName: "SearchBar__IconContainer",
|
|
29392
|
+
componentId: "sc-13n8z02-2"
|
|
29393
|
+
})(["position:absolute;right:0.75rem;top:50%;transform:translateY(-50%);display:flex;align-items:center;gap:0.5rem;pointer-events:none;z-index:1;> *{pointer-events:auto;}"]);
|
|
29394
|
+
var SearchIcon = /*#__PURE__*/styled(FaSearch).withConfig({
|
|
29395
|
+
displayName: "SearchBar__SearchIcon",
|
|
29396
|
+
componentId: "sc-13n8z02-3"
|
|
29397
|
+
})(["font-size:1rem;color:#f59e0b;filter:drop-shadow(0 0 2px rgba(245,158,11,0.3));"]);
|
|
29398
|
+
|
|
29360
29399
|
var formatTaskKey = function formatTaskKey(key) {
|
|
29361
29400
|
var formatted = key.replace(/[-_]/g, ' ');
|
|
29362
29401
|
formatted = formatted.replace(/([A-Z])/g, ' $1');
|
|
@@ -29441,6 +29480,7 @@ var DailyRewardsTooltip = function DailyRewardsTooltip(_ref) {
|
|
|
29441
29480
|
var _React$useState = React.useState(true),
|
|
29442
29481
|
isExpanded = _React$useState[0],
|
|
29443
29482
|
setIsExpanded = _React$useState[1];
|
|
29483
|
+
var isMobile = isMobileOrTablet();
|
|
29444
29484
|
var sortedRewards = React.useMemo(function () {
|
|
29445
29485
|
var _REWARD_PRIORITY;
|
|
29446
29486
|
if (!rewards) return [];
|
|
@@ -29458,21 +29498,28 @@ var DailyRewardsTooltip = function DailyRewardsTooltip(_ref) {
|
|
|
29458
29498
|
};
|
|
29459
29499
|
return React.createElement(TooltipContainer$1, null, React.createElement(CollapsibleHeader, {
|
|
29460
29500
|
onClick: toggleExpand
|
|
29461
|
-
}, React.createElement(HeaderText, null, "Rewards?"), React.createElement(ExpandIcon, null, isExpanded ? '▼' : '▶')), isExpanded && React.createElement(CollapsibleContent, null, React.createElement(RewardsList,
|
|
29501
|
+
}, React.createElement(HeaderText, null, "Rewards?"), React.createElement(ExpandIcon, null, isExpanded ? '▼' : '▶')), isExpanded && React.createElement(CollapsibleContent, null, React.createElement(RewardsList, {
|
|
29502
|
+
isMobile: isMobile,
|
|
29503
|
+
rewardCount: sortedRewards.length
|
|
29504
|
+
}, sortedRewards.map(function (reward, index) {
|
|
29462
29505
|
var _reward$texturePath, _reward$key;
|
|
29463
29506
|
return React.createElement(RewardItem, {
|
|
29464
29507
|
key: index
|
|
29465
|
-
}, React.createElement(SpriteFromAtlas, {
|
|
29508
|
+
}, React.createElement(RewardIcon, null, React.createElement(SpriteFromAtlas, {
|
|
29466
29509
|
atlasJSON: itemsAtlasJSON,
|
|
29467
29510
|
atlasIMG: itemsAtlasIMG,
|
|
29468
29511
|
spriteKey: (_reward$texturePath = reward.texturePath) != null ? _reward$texturePath : 'check.png',
|
|
29469
|
-
width:
|
|
29470
|
-
height:
|
|
29471
|
-
imgScale: 1.
|
|
29472
|
-
}), React.createElement(
|
|
29512
|
+
width: isMobile ? 16 : 18,
|
|
29513
|
+
height: isMobile ? 16 : 18,
|
|
29514
|
+
imgScale: isMobile ? 1.5 : 1.5
|
|
29515
|
+
})), React.createElement(RewardContent, null, React.createElement(RewardLabel, {
|
|
29516
|
+
isMobile: isMobile
|
|
29517
|
+
}, React.createElement(Ellipsis, {
|
|
29473
29518
|
maxWidth: "100%",
|
|
29474
|
-
maxLines:
|
|
29475
|
-
}, formatTaskKey((_reward$key = reward.key) != null ? _reward$key : reward.type)
|
|
29519
|
+
maxLines: 1
|
|
29520
|
+
}, formatTaskKey((_reward$key = reward.key) != null ? _reward$key : reward.type))), React.createElement(RewardValue, {
|
|
29521
|
+
isMobile: isMobile
|
|
29522
|
+
}, "\xD7", reward.quantity)));
|
|
29476
29523
|
}))));
|
|
29477
29524
|
};
|
|
29478
29525
|
var TooltipContainer$1 = /*#__PURE__*/styled.div.withConfig({
|
|
@@ -29482,7 +29529,13 @@ var TooltipContainer$1 = /*#__PURE__*/styled.div.withConfig({
|
|
|
29482
29529
|
var RewardsList = /*#__PURE__*/styled.div.withConfig({
|
|
29483
29530
|
displayName: "DailyRewardsTooltip__RewardsList",
|
|
29484
29531
|
componentId: "sc-wxzcu4-1"
|
|
29485
|
-
})(["display:
|
|
29532
|
+
})(["display:grid;grid-template-columns:", ";gap:", ";column-gap:", ";width:100%;"], function (props) {
|
|
29533
|
+
return props.rewardCount > 2 && !props.isMobile ? 'repeat(2, 1fr)' : '1fr';
|
|
29534
|
+
}, function (props) {
|
|
29535
|
+
return props.isMobile ? '6px' : '8px';
|
|
29536
|
+
}, function (props) {
|
|
29537
|
+
return props.rewardCount > 2 && !props.isMobile ? '16px' : '8px';
|
|
29538
|
+
});
|
|
29486
29539
|
var CollapsibleHeader = /*#__PURE__*/styled.div.withConfig({
|
|
29487
29540
|
displayName: "DailyRewardsTooltip__CollapsibleHeader",
|
|
29488
29541
|
componentId: "sc-wxzcu4-2"
|
|
@@ -29490,37 +29543,45 @@ var CollapsibleHeader = /*#__PURE__*/styled.div.withConfig({
|
|
|
29490
29543
|
var HeaderText = /*#__PURE__*/styled.span.withConfig({
|
|
29491
29544
|
displayName: "DailyRewardsTooltip__HeaderText",
|
|
29492
29545
|
componentId: "sc-wxzcu4-3"
|
|
29493
|
-
})(["color:", " !important;"], uiColors.yellow);
|
|
29546
|
+
})(["color:", " !important;font-size:0.75rem;font-weight:500;"], uiColors.yellow);
|
|
29494
29547
|
var ExpandIcon = /*#__PURE__*/styled.span.withConfig({
|
|
29495
29548
|
displayName: "DailyRewardsTooltip__ExpandIcon",
|
|
29496
29549
|
componentId: "sc-wxzcu4-4"
|
|
29497
|
-
})(["color:", ";font-size:0.
|
|
29550
|
+
})(["color:", ";font-size:0.7rem;margin-left:8px;"], uiColors.yellow);
|
|
29498
29551
|
var CollapsibleContent = /*#__PURE__*/styled.div.withConfig({
|
|
29499
29552
|
displayName: "DailyRewardsTooltip__CollapsibleContent",
|
|
29500
29553
|
componentId: "sc-wxzcu4-5"
|
|
29501
|
-
})(["display:block;padding-top:
|
|
29554
|
+
})(["display:block;padding-top:6px;width:100%;"]);
|
|
29502
29555
|
var RewardItem = /*#__PURE__*/styled.div.withConfig({
|
|
29503
29556
|
displayName: "DailyRewardsTooltip__RewardItem",
|
|
29504
29557
|
componentId: "sc-wxzcu4-6"
|
|
29505
|
-
})(["display:flex;align-items:center;gap:
|
|
29506
|
-
var
|
|
29507
|
-
displayName: "
|
|
29558
|
+
})(["display:flex;align-items:center;gap:4px;width:100%;padding:2px;min-height:22px;"]);
|
|
29559
|
+
var RewardIcon = /*#__PURE__*/styled.div.withConfig({
|
|
29560
|
+
displayName: "DailyRewardsTooltip__RewardIcon",
|
|
29508
29561
|
componentId: "sc-wxzcu4-7"
|
|
29509
|
-
})(["display:flex;flex-
|
|
29562
|
+
})(["flex-shrink:0;width:20px;height:20px;display:flex;align-items:flex-start;justify-content:flex-start;font-style:normal;margin-right:4px;*{font-style:normal !important;}position:relative;left:-0.5rem;top:-0.4rem;"]);
|
|
29563
|
+
var RewardContent = /*#__PURE__*/styled.div.withConfig({
|
|
29564
|
+
displayName: "DailyRewardsTooltip__RewardContent",
|
|
29565
|
+
componentId: "sc-wxzcu4-8"
|
|
29566
|
+
})(["display:flex;justify-content:space-between;align-items:center;flex:1;min-width:0;"]);
|
|
29510
29567
|
var RewardLabel = /*#__PURE__*/styled.span.withConfig({
|
|
29511
29568
|
displayName: "DailyRewardsTooltip__RewardLabel",
|
|
29512
|
-
componentId: "sc-wxzcu4-
|
|
29513
|
-
})(["color:", ";font-size:
|
|
29569
|
+
componentId: "sc-wxzcu4-9"
|
|
29570
|
+
})(["color:", ";font-size:", ";line-height:1.2;display:flex;align-items:center;flex:1;min-width:0;"], uiColors.yellow, function (props) {
|
|
29571
|
+
return props.isMobile ? '0.65rem' : '0.7rem';
|
|
29572
|
+
});
|
|
29514
29573
|
var RewardValue = /*#__PURE__*/styled.span.withConfig({
|
|
29515
29574
|
displayName: "DailyRewardsTooltip__RewardValue",
|
|
29516
|
-
componentId: "sc-wxzcu4-
|
|
29517
|
-
})(["color:", ";font-size:
|
|
29575
|
+
componentId: "sc-wxzcu4-10"
|
|
29576
|
+
})(["color:", ";font-size:", ";line-height:1.2;display:flex;align-items:center;font-weight:600;flex-shrink:0;margin-left:8px;"], uiColors.green, function (props) {
|
|
29577
|
+
return props.isMobile ? '0.6rem' : '0.65rem';
|
|
29578
|
+
});
|
|
29518
29579
|
|
|
29519
29580
|
var ReadOnlyCheckItem = function ReadOnlyCheckItem(_ref) {
|
|
29520
29581
|
var labelLeft = _ref.labelLeft,
|
|
29521
29582
|
labelRight = _ref.labelRight,
|
|
29522
29583
|
checked = _ref.checked;
|
|
29523
|
-
return React.createElement(Container$
|
|
29584
|
+
return React.createElement(Container$h, null, labelLeft && React.createElement(Label, null, labelLeft), React.createElement("div", {
|
|
29524
29585
|
className: "rpgui-checkbox-container"
|
|
29525
29586
|
}, React.createElement(CheckBox, {
|
|
29526
29587
|
className: "rpgui-checkbox",
|
|
@@ -29531,7 +29592,7 @@ var ReadOnlyCheckItem = function ReadOnlyCheckItem(_ref) {
|
|
|
29531
29592
|
isRight: true
|
|
29532
29593
|
}, labelRight));
|
|
29533
29594
|
};
|
|
29534
|
-
var Container$
|
|
29595
|
+
var Container$h = /*#__PURE__*/styled.div.withConfig({
|
|
29535
29596
|
displayName: "ReadOnlyCheckItem__Container",
|
|
29536
29597
|
componentId: "sc-1peplf9-0"
|
|
29537
29598
|
})(["display:flex;align-items:center;width:100%;height:20px;"]);
|
|
@@ -29618,58 +29679,8 @@ var CheckItemWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
|
29618
29679
|
componentId: "sc-hm6sp1-3"
|
|
29619
29680
|
})(["display:flex;justify-content:center;width:100%;height:20px;input.rpgui-checkbox + label{margin:0 !important;padding-left:23px !important;}"]);
|
|
29620
29681
|
|
|
29621
|
-
var TaskProgress = function TaskProgress(_ref) {
|
|
29622
|
-
var task = _ref.task,
|
|
29623
|
-
itemsAtlasJSON = _ref.itemsAtlasJSON,
|
|
29624
|
-
itemsAtlasIMG = _ref.itemsAtlasIMG,
|
|
29625
|
-
iconAtlasJSON = _ref.iconAtlasJSON,
|
|
29626
|
-
iconAtlasIMG = _ref.iconAtlasIMG;
|
|
29627
|
-
var difficulty = task.difficulty;
|
|
29628
|
-
return React.createElement(ProgressContainer, null, React.createElement(ProgressList$1, null, React.createElement(ProgressItem$1, null, React.createElement(ProgressLabel, null, "Difficulty:"), React.createElement(TaskDifficulty, {
|
|
29629
|
-
difficulty: difficulty
|
|
29630
|
-
}, formatDifficulty(difficulty))), React.createElement(ProgressItem$1, null, React.createElement(ProgressLabel, null, "Status:"), React.createElement(StatusText, {
|
|
29631
|
-
color: getStatusInfo(task).color
|
|
29632
|
-
}, getStatusInfo(task).text)), React.createElement(TaskProgressDetails, {
|
|
29633
|
-
task: task
|
|
29634
|
-
}), task.rewards && task.rewards.length > 0 && React.createElement(ProgressItem$1, null, React.createElement(DailyRewardsTooltip, {
|
|
29635
|
-
rewards: task.rewards,
|
|
29636
|
-
itemsAtlasJSON: itemsAtlasJSON,
|
|
29637
|
-
itemsAtlasIMG: itemsAtlasIMG,
|
|
29638
|
-
iconAtlasJSON: iconAtlasJSON,
|
|
29639
|
-
iconAtlasIMG: iconAtlasIMG
|
|
29640
|
-
}))));
|
|
29641
|
-
};
|
|
29642
|
-
var ProgressContainer = /*#__PURE__*/styled.div.withConfig({
|
|
29643
|
-
displayName: "TaskProgress__ProgressContainer",
|
|
29644
|
-
componentId: "sc-1ejoyu-0"
|
|
29645
|
-
})(["width:100%;position:relative;"]);
|
|
29646
|
-
var ProgressList$1 = /*#__PURE__*/styled.div.withConfig({
|
|
29647
|
-
displayName: "TaskProgress__ProgressList",
|
|
29648
|
-
componentId: "sc-1ejoyu-1"
|
|
29649
|
-
})(["display:flex;flex-direction:column;gap:6px;"]);
|
|
29650
|
-
var ProgressItem$1 = /*#__PURE__*/styled.div.withConfig({
|
|
29651
|
-
displayName: "TaskProgress__ProgressItem",
|
|
29652
|
-
componentId: "sc-1ejoyu-2"
|
|
29653
|
-
})(["display:flex;justify-content:space-between;align-items:center;"]);
|
|
29654
|
-
var ProgressLabel = /*#__PURE__*/styled.span.withConfig({
|
|
29655
|
-
displayName: "TaskProgress__ProgressLabel",
|
|
29656
|
-
componentId: "sc-1ejoyu-3"
|
|
29657
|
-
})(["color:", " !important;"], uiColors.white);
|
|
29658
|
-
var TaskDifficulty = /*#__PURE__*/styled.span.withConfig({
|
|
29659
|
-
displayName: "TaskProgress__TaskDifficulty",
|
|
29660
|
-
componentId: "sc-1ejoyu-4"
|
|
29661
|
-
})(["color:", " !important;"], function (props) {
|
|
29662
|
-
return props.difficulty.toLowerCase() === 'challenge' ? uiColors.red : uiColors.lightGray;
|
|
29663
|
-
});
|
|
29664
|
-
var StatusText = /*#__PURE__*/styled.span.withConfig({
|
|
29665
|
-
displayName: "TaskProgress__StatusText",
|
|
29666
|
-
componentId: "sc-1ejoyu-5"
|
|
29667
|
-
})(["color:", " !important;font-weight:bold;"], function (props) {
|
|
29668
|
-
return props.color;
|
|
29669
|
-
});
|
|
29670
|
-
|
|
29671
29682
|
var DailyTaskItem = function DailyTaskItem(_ref) {
|
|
29672
|
-
var _task$name;
|
|
29683
|
+
var _task$difficulty, _task$name;
|
|
29673
29684
|
var task = _ref.task,
|
|
29674
29685
|
spriteKey = _ref.spriteKey,
|
|
29675
29686
|
onClaimReward = _ref.onClaimReward,
|
|
@@ -29677,72 +29688,183 @@ var DailyTaskItem = function DailyTaskItem(_ref) {
|
|
|
29677
29688
|
itemsAtlasIMG = _ref.itemsAtlasIMG,
|
|
29678
29689
|
iconAtlasJSON = _ref.iconAtlasJSON,
|
|
29679
29690
|
iconAtlasIMG = _ref.iconAtlasIMG,
|
|
29680
|
-
isRewardClaimed = _ref.isRewardClaimed
|
|
29691
|
+
isRewardClaimed = _ref.isRewardClaimed,
|
|
29692
|
+
isPinned = _ref.isPinned;
|
|
29681
29693
|
var isMobile = isMobileOrTablet();
|
|
29682
29694
|
var isCompleted = task.status === TaskStatus.Completed;
|
|
29695
|
+
var isInProgress = task.status === TaskStatus.InProgress;
|
|
29696
|
+
var isNotStarted = task.status === TaskStatus.NotStarted;
|
|
29683
29697
|
var isClaimed = task.claimed || isRewardClaimed;
|
|
29698
|
+
var isChallenge = ((_task$difficulty = task.difficulty) == null ? void 0 : _task$difficulty.toLowerCase()) === 'challenge';
|
|
29684
29699
|
var handleClaimReward = function handleClaimReward() {
|
|
29685
29700
|
onClaimReward(task.key, task.type);
|
|
29686
29701
|
};
|
|
29687
|
-
return React.createElement(TaskContainer,
|
|
29702
|
+
return React.createElement(TaskContainer, {
|
|
29703
|
+
isMobile: isMobile,
|
|
29704
|
+
isCompleted: isCompleted,
|
|
29705
|
+
isInProgress: isInProgress,
|
|
29706
|
+
isNotStarted: isNotStarted,
|
|
29707
|
+
isPinned: isPinned,
|
|
29708
|
+
isChallenge: isChallenge
|
|
29709
|
+
}, React.createElement(TaskHeader, {
|
|
29710
|
+
isMobile: isMobile
|
|
29711
|
+
}, React.createElement(TaskHeaderLeft, null, iconAtlasJSON && iconAtlasIMG && React.createElement(IconWrapper, null, React.createElement(SpriteFromAtlas, {
|
|
29688
29712
|
atlasJSON: iconAtlasJSON,
|
|
29689
29713
|
atlasIMG: iconAtlasIMG,
|
|
29690
29714
|
spriteKey: spriteKey,
|
|
29691
|
-
width: 12,
|
|
29692
|
-
height: 12,
|
|
29693
|
-
imgScale: 2
|
|
29694
|
-
})), React.createElement(
|
|
29715
|
+
width: isMobile ? 10 : 12,
|
|
29716
|
+
height: isMobile ? 10 : 12,
|
|
29717
|
+
imgScale: 2
|
|
29718
|
+
})), React.createElement(TaskTitleSection, null, React.createElement(TaskTitle, {
|
|
29719
|
+
isMobile: isMobile
|
|
29720
|
+
}, React.createElement(Ellipsis, {
|
|
29695
29721
|
maxWidth: "100%",
|
|
29696
|
-
maxLines:
|
|
29697
|
-
}, (_task$name = task.name) != null ? _task$name : formatTaskKey(task.key))), React.createElement(
|
|
29722
|
+
maxLines: 1
|
|
29723
|
+
}, (_task$name = task.name) != null ? _task$name : formatTaskKey(task.key))), React.createElement(TaskMeta, {
|
|
29724
|
+
isMobile: isMobile
|
|
29725
|
+
}, React.createElement(MetaItem, null, React.createElement(MetaLabel, null, "Difficulty:"), React.createElement(TaskDifficulty, {
|
|
29726
|
+
difficulty: task.difficulty
|
|
29727
|
+
}, formatDifficulty(task.difficulty))), React.createElement(MetaDivider, null, "\u2022"), React.createElement(MetaItem, null, React.createElement(MetaLabel, null, "Status:"), React.createElement(StatusText, {
|
|
29728
|
+
color: getStatusInfo(task).color
|
|
29729
|
+
}, getStatusInfo(task).text))))), React.createElement(TaskHeaderRight, null, isClaimed && React.createElement(ClaimedBadge, {
|
|
29730
|
+
isMobile: isMobile
|
|
29731
|
+
}, "\u2713"))), React.createElement(TaskBody, {
|
|
29732
|
+
isMobile: isMobile
|
|
29733
|
+
}, React.createElement(TaskDescription, {
|
|
29734
|
+
isMobile: isMobile
|
|
29735
|
+
}, React.createElement(Ellipsis, {
|
|
29698
29736
|
maxWidth: "100%",
|
|
29699
|
-
maxLines: isMobile ?
|
|
29700
|
-
}, task.description))
|
|
29701
|
-
task: task
|
|
29737
|
+
maxLines: isMobile ? 2 : 1
|
|
29738
|
+
}, task.description)), React.createElement(TaskProgressDetails, {
|
|
29739
|
+
task: task
|
|
29740
|
+
}), task.rewards && task.rewards.length > 0 && React.createElement(RewardsSection, null, React.createElement(DailyRewardsTooltip, {
|
|
29741
|
+
rewards: task.rewards,
|
|
29702
29742
|
itemsAtlasJSON: itemsAtlasJSON,
|
|
29703
|
-
itemsAtlasIMG: itemsAtlasIMG
|
|
29704
|
-
|
|
29743
|
+
itemsAtlasIMG: itemsAtlasIMG,
|
|
29744
|
+
iconAtlasJSON: iconAtlasJSON,
|
|
29745
|
+
iconAtlasIMG: iconAtlasIMG
|
|
29746
|
+
}))), isCompleted && !isClaimed && React.createElement(TaskFooter, {
|
|
29747
|
+
isMobile: isMobile
|
|
29748
|
+
}, React.createElement(Button, {
|
|
29705
29749
|
buttonType: ButtonTypes.RPGUIButton,
|
|
29706
29750
|
onPointerDown: handleClaimReward
|
|
29707
|
-
},
|
|
29751
|
+
}, isMobile ? 'Collect Reward' : 'Collect Reward')));
|
|
29708
29752
|
};
|
|
29753
|
+
var pulseAnimation = /*#__PURE__*/keyframes(["0%{box-shadow:0 1px 2px rgba(0,0,0,0.4);}50%{box-shadow:0 2px 8px rgba(255,215,0,0.3);}100%{box-shadow:0 1px 2px rgba(0,0,0,0.4);}"]);
|
|
29709
29754
|
var TaskContainer = /*#__PURE__*/styled.div.withConfig({
|
|
29710
29755
|
displayName: "DailyTaskItem__TaskContainer",
|
|
29711
29756
|
componentId: "sc-45bxmt-0"
|
|
29712
|
-
})(["background:
|
|
29757
|
+
})(["background:", " !important;border:1px solid ", " !important;border-radius:", ";padding:", ";display:flex;flex-direction:column;gap:", ";box-shadow:0 1px 2px rgba(0,0,0,0.4);transition:all 0.2s ease;font-style:normal;width:100%;max-width:100%;box-sizing:border-box;opacity:1;", " ", " *{font-style:normal !important;}&:hover{background:", " !important;border-color:", ";opacity:1;}"], function (props) {
|
|
29758
|
+
return props.isChallenge ? 'rgb(209, 39, 42)' : props.isPinned ? 'rgba(255, 215, 0, 0.1)' : 'rgba(0, 0, 0, 0.6)';
|
|
29759
|
+
}, uiColors.darkGray, function (props) {
|
|
29760
|
+
return props.isMobile ? '4px' : '6px';
|
|
29761
|
+
}, function (props) {
|
|
29762
|
+
return props.isMobile ? '10px' : '14px';
|
|
29763
|
+
}, function (props) {
|
|
29764
|
+
return props.isMobile ? '8px' : '12px';
|
|
29765
|
+
}, function (props) {
|
|
29766
|
+
return props.isNotStarted && "\n filter: grayscale(0.7);\n ";
|
|
29767
|
+
}, function (props) {
|
|
29768
|
+
return props.isInProgress && css(["animation:", " 2s ease-in-out infinite;"], pulseAnimation);
|
|
29769
|
+
}, function (props) {
|
|
29770
|
+
return props.isPinned ? 'rgba(255, 215, 0, 0.25)' : 'rgba(0, 0, 0, 0.7)';
|
|
29771
|
+
}, uiColors.yellow);
|
|
29713
29772
|
var TaskHeader = /*#__PURE__*/styled.div.withConfig({
|
|
29714
29773
|
displayName: "DailyTaskItem__TaskHeader",
|
|
29715
29774
|
componentId: "sc-45bxmt-1"
|
|
29716
|
-
})(["display:flex;width:100%;justify-content:
|
|
29717
|
-
|
|
29718
|
-
|
|
29775
|
+
})(["display:flex;width:100%;justify-content:space-between;align-items:flex-start;border-bottom:1px solid ", ";padding-bottom:", ";min-height:36px;"], uiColors.darkGray, function (props) {
|
|
29776
|
+
return props.isMobile ? '8px' : '10px';
|
|
29777
|
+
});
|
|
29778
|
+
var TaskHeaderLeft = /*#__PURE__*/styled.div.withConfig({
|
|
29779
|
+
displayName: "DailyTaskItem__TaskHeaderLeft",
|
|
29719
29780
|
componentId: "sc-45bxmt-2"
|
|
29720
|
-
})(["
|
|
29721
|
-
var
|
|
29722
|
-
displayName: "
|
|
29781
|
+
})(["display:flex;align-items:flex-start;gap:8px;flex:1;"]);
|
|
29782
|
+
var TaskHeaderRight = /*#__PURE__*/styled.div.withConfig({
|
|
29783
|
+
displayName: "DailyTaskItem__TaskHeaderRight",
|
|
29723
29784
|
componentId: "sc-45bxmt-3"
|
|
29724
|
-
})(["display:flex;
|
|
29725
|
-
var
|
|
29726
|
-
displayName: "
|
|
29785
|
+
})(["display:flex;align-items:center;flex-shrink:0;"]);
|
|
29786
|
+
var TaskTitleSection = /*#__PURE__*/styled.div.withConfig({
|
|
29787
|
+
displayName: "DailyTaskItem__TaskTitleSection",
|
|
29727
29788
|
componentId: "sc-45bxmt-4"
|
|
29728
|
-
})(["
|
|
29729
|
-
var
|
|
29730
|
-
displayName: "
|
|
29789
|
+
})(["display:flex;flex-direction:column;gap:4px;flex:1;min-width:0;"]);
|
|
29790
|
+
var TaskMeta = /*#__PURE__*/styled.div.withConfig({
|
|
29791
|
+
displayName: "DailyTaskItem__TaskMeta",
|
|
29731
29792
|
componentId: "sc-45bxmt-5"
|
|
29732
|
-
})(["
|
|
29733
|
-
|
|
29734
|
-
|
|
29793
|
+
})(["display:flex;align-items:center;gap:", ";flex-wrap:wrap;"], function (props) {
|
|
29794
|
+
return props.isMobile ? '6px' : '8px';
|
|
29795
|
+
});
|
|
29796
|
+
var MetaItem = /*#__PURE__*/styled.div.withConfig({
|
|
29797
|
+
displayName: "DailyTaskItem__MetaItem",
|
|
29735
29798
|
componentId: "sc-45bxmt-6"
|
|
29736
|
-
})(["
|
|
29737
|
-
var
|
|
29738
|
-
displayName: "
|
|
29799
|
+
})(["display:flex;align-items:center;gap:4px;"]);
|
|
29800
|
+
var MetaLabel = /*#__PURE__*/styled.span.withConfig({
|
|
29801
|
+
displayName: "DailyTaskItem__MetaLabel",
|
|
29739
29802
|
componentId: "sc-45bxmt-7"
|
|
29740
|
-
})(["
|
|
29803
|
+
})(["color:", ";font-size:0.65rem;opacity:0.8;"], uiColors.lightGray);
|
|
29804
|
+
var MetaDivider = /*#__PURE__*/styled.span.withConfig({
|
|
29805
|
+
displayName: "DailyTaskItem__MetaDivider",
|
|
29806
|
+
componentId: "sc-45bxmt-8"
|
|
29807
|
+
})(["color:", ";font-size:0.7rem;"], uiColors.darkGray);
|
|
29808
|
+
var TaskDifficulty = /*#__PURE__*/styled.span.withConfig({
|
|
29809
|
+
displayName: "DailyTaskItem__TaskDifficulty",
|
|
29810
|
+
componentId: "sc-45bxmt-9"
|
|
29811
|
+
})(["color:", ";font-size:0.65rem;font-weight:500;"], function (props) {
|
|
29812
|
+
return props.difficulty.toLowerCase() === 'challenge' ? uiColors.red : uiColors.lightGray;
|
|
29813
|
+
});
|
|
29814
|
+
var StatusText = /*#__PURE__*/styled.span.withConfig({
|
|
29815
|
+
displayName: "DailyTaskItem__StatusText",
|
|
29816
|
+
componentId: "sc-45bxmt-10"
|
|
29817
|
+
})(["color:", " !important;font-size:0.65rem;font-weight:500;"], function (props) {
|
|
29818
|
+
return props.color;
|
|
29819
|
+
});
|
|
29820
|
+
var ClaimedBadge = /*#__PURE__*/styled.div.withConfig({
|
|
29821
|
+
displayName: "DailyTaskItem__ClaimedBadge",
|
|
29822
|
+
componentId: "sc-45bxmt-11"
|
|
29823
|
+
})(["background:", ";color:white;border-radius:50%;width:", ";height:", ";display:flex;align-items:center;justify-content:center;font-size:", ";font-weight:bold;margin-left:8px;"], uiColors.green, function (props) {
|
|
29824
|
+
return props.isMobile ? '18px' : '20px';
|
|
29825
|
+
}, function (props) {
|
|
29826
|
+
return props.isMobile ? '18px' : '20px';
|
|
29827
|
+
}, function (props) {
|
|
29828
|
+
return props.isMobile ? '10px' : '12px';
|
|
29829
|
+
});
|
|
29830
|
+
var TaskBody = /*#__PURE__*/styled.div.withConfig({
|
|
29831
|
+
displayName: "DailyTaskItem__TaskBody",
|
|
29832
|
+
componentId: "sc-45bxmt-12"
|
|
29833
|
+
})(["display:flex;flex-direction:column;gap:8px;padding:", ";"], function (props) {
|
|
29834
|
+
return props.isMobile ? '4px 0' : '6px 0';
|
|
29835
|
+
});
|
|
29836
|
+
var RewardsSection = /*#__PURE__*/styled.div.withConfig({
|
|
29837
|
+
displayName: "DailyTaskItem__RewardsSection",
|
|
29838
|
+
componentId: "sc-45bxmt-13"
|
|
29839
|
+
})(["margin-top:4px;"]);
|
|
29840
|
+
var TaskFooter = /*#__PURE__*/styled.div.withConfig({
|
|
29841
|
+
displayName: "DailyTaskItem__TaskFooter",
|
|
29842
|
+
componentId: "sc-45bxmt-14"
|
|
29843
|
+
})(["display:flex;justify-content:center;padding-top:", ";border-top:1px solid ", ";"], function (props) {
|
|
29844
|
+
return props.isMobile ? '8px' : '10px';
|
|
29845
|
+
}, uiColors.darkGray);
|
|
29846
|
+
var IconWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
29847
|
+
displayName: "DailyTaskItem__IconWrapper",
|
|
29848
|
+
componentId: "sc-45bxmt-15"
|
|
29849
|
+
})(["pointer-events:none;user-select:none;flex-shrink:0;width:28px;height:28px;display:flex;align-items:flex-start;justify-content:flex-start;margin-top:2px;margin-left:2px;font-style:normal;*{font-style:normal !important;}"]);
|
|
29850
|
+
var TaskTitle = /*#__PURE__*/styled.h3.withConfig({
|
|
29851
|
+
displayName: "DailyTaskItem__TaskTitle",
|
|
29852
|
+
componentId: "sc-45bxmt-16"
|
|
29853
|
+
})(["&&{color:", ";margin:0;padding:0;text-align:left;font-size:", ";line-height:1.2;text-shadow:1px 1px 2px rgba(0,0,0,0.7);font-weight:600;word-wrap:break-word;overflow-wrap:break-word;span{color:inherit;}}"], uiColors.yellow, function (props) {
|
|
29854
|
+
return props.isMobile ? '0.85rem' : '0.9rem';
|
|
29855
|
+
});
|
|
29856
|
+
var TaskDescription = /*#__PURE__*/styled.div.withConfig({
|
|
29857
|
+
displayName: "DailyTaskItem__TaskDescription",
|
|
29858
|
+
componentId: "sc-45bxmt-17"
|
|
29859
|
+
})(["color:", ";font-size:", ";line-height:1.4;margin:0;opacity:0.9;word-wrap:break-word;overflow-wrap:break-word;"], uiColors.lightGray, function (props) {
|
|
29860
|
+
return props.isMobile ? '0.7rem' : '0.75rem';
|
|
29861
|
+
});
|
|
29741
29862
|
|
|
29742
29863
|
var GlobalDailyProgress = function GlobalDailyProgress(_ref) {
|
|
29743
29864
|
var tasks = _ref.tasks,
|
|
29744
29865
|
onClaimAllRewards = _ref.onClaimAllRewards,
|
|
29745
29866
|
globalRewardClaimed = _ref.globalRewardClaimed;
|
|
29867
|
+
var isMobile = isMobileOrTablet();
|
|
29746
29868
|
var totalTasks = tasks.length;
|
|
29747
29869
|
var completedTasks = tasks.filter(function (task) {
|
|
29748
29870
|
return task.status === TaskStatus.Completed;
|
|
@@ -29766,47 +29888,65 @@ var GlobalDailyProgress = function GlobalDailyProgress(_ref) {
|
|
|
29766
29888
|
tasks: taskIdentifiers
|
|
29767
29889
|
});
|
|
29768
29890
|
};
|
|
29769
|
-
return React.createElement(GlobalProgressContainer,
|
|
29891
|
+
return React.createElement(GlobalProgressContainer, {
|
|
29892
|
+
isMobile: isMobile
|
|
29893
|
+
}, React.createElement(HeaderContainer$1, null, React.createElement(GlobeIcon, null, "\uD83C\uDF0D"), React.createElement(ProgressText, {
|
|
29894
|
+
isMobile: isMobile
|
|
29895
|
+
}, isMobile ? completedTasks + "/" + totalTasks + " Complete" : "Global Tasks: " + completedTasks + "/" + totalTasks)), React.createElement(ProgressBar, null, React.createElement(ProgressFill, {
|
|
29770
29896
|
percentage: completedTasks / totalTasks * 100
|
|
29771
|
-
})), allCompleted && React.createElement(React.Fragment, null, shouldShowGlobalButton && React.createElement(CollectWrapper
|
|
29897
|
+
})), allCompleted && React.createElement(React.Fragment, null, shouldShowGlobalButton && React.createElement(CollectWrapper, null, React.createElement(Button, {
|
|
29772
29898
|
buttonType: ButtonTypes.RPGUIButton,
|
|
29773
29899
|
onPointerDown: handleClaimAll
|
|
29774
|
-
},
|
|
29900
|
+
}, isMobile ? 'Global Rewards' : 'Collect Global Rewards')), shouldShowClaimedMessage && React.createElement(ClaimedText, {
|
|
29901
|
+
isMobile: isMobile
|
|
29902
|
+
}, "\u2713 Global Rewards Claimed")));
|
|
29775
29903
|
};
|
|
29776
29904
|
var GlobalProgressContainer = /*#__PURE__*/styled.div.withConfig({
|
|
29777
29905
|
displayName: "GlobalDailyProgress__GlobalProgressContainer",
|
|
29778
29906
|
componentId: "sc-d7q4xm-0"
|
|
29779
|
-
})(["background:rgba(0,0,0,0.
|
|
29907
|
+
})(["background:rgba(0,0,0,0.6) !important;border:1px solid ", " !important;border-radius:", ";padding:", ";display:flex;flex-direction:column;gap:", ";box-shadow:0 1px 2px rgba(0,0,0,0.4);margin-bottom:", ";"], uiColors.blue, function (props) {
|
|
29908
|
+
return props.isMobile ? '4px' : '6px';
|
|
29909
|
+
}, function (props) {
|
|
29910
|
+
return props.isMobile ? '6px' : '8px';
|
|
29911
|
+
}, function (props) {
|
|
29912
|
+
return props.isMobile ? '6px' : '8px';
|
|
29913
|
+
}, function (props) {
|
|
29914
|
+
return props.isMobile ? '4px' : '6px';
|
|
29915
|
+
});
|
|
29780
29916
|
var HeaderContainer$1 = /*#__PURE__*/styled.div.withConfig({
|
|
29781
29917
|
displayName: "GlobalDailyProgress__HeaderContainer",
|
|
29782
29918
|
componentId: "sc-d7q4xm-1"
|
|
29783
|
-
})(["display:flex;align-items:center;gap:
|
|
29919
|
+
})(["display:flex;align-items:center;gap:6px;margin-bottom:2px;"]);
|
|
29784
29920
|
var GlobeIcon = /*#__PURE__*/styled.span.withConfig({
|
|
29785
29921
|
displayName: "GlobalDailyProgress__GlobeIcon",
|
|
29786
29922
|
componentId: "sc-d7q4xm-2"
|
|
29787
|
-
})(["font-size:
|
|
29923
|
+
})(["font-size:1rem !important;line-height:1;color:", ";display:flex;align-items:center;justify-content:center;"], uiColors.blue);
|
|
29788
29924
|
var ProgressText = /*#__PURE__*/styled.div.withConfig({
|
|
29789
29925
|
displayName: "GlobalDailyProgress__ProgressText",
|
|
29790
29926
|
componentId: "sc-d7q4xm-3"
|
|
29791
|
-
})(["color:", ";
|
|
29927
|
+
})(["color:", ";font-size:", ";font-weight:500;flex:1;line-height:1.2;"], uiColors.white, function (props) {
|
|
29928
|
+
return props.isMobile ? '0.75rem' : '0.8rem';
|
|
29929
|
+
});
|
|
29792
29930
|
var ProgressBar = /*#__PURE__*/styled.div.withConfig({
|
|
29793
29931
|
displayName: "GlobalDailyProgress__ProgressBar",
|
|
29794
29932
|
componentId: "sc-d7q4xm-4"
|
|
29795
|
-
})(["width:100%;height:
|
|
29933
|
+
})(["width:100%;height:4px;background:", ";border-radius:2px;overflow:hidden;"], uiColors.darkGray);
|
|
29796
29934
|
var ProgressFill = /*#__PURE__*/styled.div.withConfig({
|
|
29797
29935
|
displayName: "GlobalDailyProgress__ProgressFill",
|
|
29798
29936
|
componentId: "sc-d7q4xm-5"
|
|
29799
29937
|
})(["width:", "%;height:100%;background:", ";transition:width 0.3s ease;"], function (props) {
|
|
29800
29938
|
return props.percentage;
|
|
29801
29939
|
}, uiColors.green);
|
|
29802
|
-
var ClaimedText
|
|
29940
|
+
var ClaimedText = /*#__PURE__*/styled.span.withConfig({
|
|
29803
29941
|
displayName: "GlobalDailyProgress__ClaimedText",
|
|
29804
29942
|
componentId: "sc-d7q4xm-6"
|
|
29805
|
-
})(["color:", ";font-size:
|
|
29806
|
-
|
|
29943
|
+
})(["color:", ";font-size:", ";text-align:center;font-weight:bold;display:flex;align-items:center;justify-content:center;gap:4px;"], uiColors.green, function (props) {
|
|
29944
|
+
return props.isMobile ? '0.8rem' : '0.9rem';
|
|
29945
|
+
});
|
|
29946
|
+
var CollectWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
29807
29947
|
displayName: "GlobalDailyProgress__CollectWrapper",
|
|
29808
29948
|
componentId: "sc-d7q4xm-7"
|
|
29809
|
-
})(["&&{width:100% !important;display:flex !important;justify-content:center !important;align-items:center !important;margin:
|
|
29949
|
+
})(["&&{width:100% !important;display:flex !important;justify-content:center !important;align-items:center !important;margin:4px 0 !important;}"]);
|
|
29810
29950
|
|
|
29811
29951
|
var DailyTasks = function DailyTasks(_ref) {
|
|
29812
29952
|
var tasks = _ref.tasks,
|
|
@@ -29823,13 +29963,23 @@ var DailyTasks = function DailyTasks(_ref) {
|
|
|
29823
29963
|
globalRewardClaimed = _ref$globalRewardClai === void 0 ? false : _ref$globalRewardClai;
|
|
29824
29964
|
var _React$useState = React.useState(tasks),
|
|
29825
29965
|
localTasks = _React$useState[0];
|
|
29826
|
-
var
|
|
29966
|
+
var isMobile = isMobileOrTablet();
|
|
29827
29967
|
var _useState = useState([]),
|
|
29828
29968
|
claimedTasks = _useState[0],
|
|
29829
29969
|
setClaimedTasks = _useState[1];
|
|
29830
29970
|
var _useState2 = useState(false),
|
|
29831
29971
|
globalRewardClaimedLocal = _useState2[0],
|
|
29832
29972
|
setGlobalRewardClaimedLocal = _useState2[1];
|
|
29973
|
+
// Search and filter state
|
|
29974
|
+
var _useState3 = useState(''),
|
|
29975
|
+
searchQuery = _useState3[0],
|
|
29976
|
+
setSearchQuery = _useState3[1];
|
|
29977
|
+
var _useState4 = useState('all'),
|
|
29978
|
+
selectedStatus = _useState4[0],
|
|
29979
|
+
setSelectedStatus = _useState4[1];
|
|
29980
|
+
var _useLocalStorage = useLocalStorage('dailyTasks.pinned', []),
|
|
29981
|
+
pinnedTasks = _useLocalStorage[0],
|
|
29982
|
+
setPinnedTasks = _useLocalStorage[1];
|
|
29833
29983
|
var handleClaimReward = function handleClaimReward(taskKey, taskType) {
|
|
29834
29984
|
onClaimReward({
|
|
29835
29985
|
taskKey: taskKey,
|
|
@@ -29846,23 +29996,83 @@ var DailyTasks = function DailyTasks(_ref) {
|
|
|
29846
29996
|
var isTaskRewardClaimed = function isTaskRewardClaimed(taskKey) {
|
|
29847
29997
|
return claimedTasks.includes(taskKey);
|
|
29848
29998
|
};
|
|
29849
|
-
|
|
29999
|
+
var togglePinTask = function togglePinTask(taskKey) {
|
|
30000
|
+
setPinnedTasks(function (prev) {
|
|
30001
|
+
return prev.includes(taskKey) ? prev.filter(function (key) {
|
|
30002
|
+
return key !== taskKey;
|
|
30003
|
+
}) : [].concat(prev, [taskKey]);
|
|
30004
|
+
});
|
|
30005
|
+
};
|
|
30006
|
+
// Filter options using Store pattern
|
|
30007
|
+
var statusOptions = [{
|
|
30008
|
+
id: 0,
|
|
30009
|
+
value: 'all',
|
|
30010
|
+
option: 'All'
|
|
30011
|
+
}, {
|
|
30012
|
+
id: 1,
|
|
30013
|
+
value: 'pinned',
|
|
30014
|
+
option: 'Pinned'
|
|
30015
|
+
}, {
|
|
30016
|
+
id: 2,
|
|
30017
|
+
value: 'completed',
|
|
30018
|
+
option: 'Completed'
|
|
30019
|
+
}, {
|
|
30020
|
+
id: 3,
|
|
30021
|
+
value: 'inprogress',
|
|
30022
|
+
option: 'In Progress'
|
|
30023
|
+
}, {
|
|
30024
|
+
id: 4,
|
|
30025
|
+
value: 'notstarted',
|
|
30026
|
+
option: 'Not Started'
|
|
30027
|
+
}];
|
|
30028
|
+
// Filtered tasks using InformationCenter pattern
|
|
30029
|
+
var filteredTasks = useMemo(function () {
|
|
30030
|
+
var filtered = localTasks.filter(function (task) {
|
|
30031
|
+
var _task$name, _task$description;
|
|
30032
|
+
var matchesSearch = ((_task$name = task.name) == null ? void 0 : _task$name.toLowerCase().includes(searchQuery.toLowerCase())) || ((_task$description = task.description) == null ? void 0 : _task$description.toLowerCase().includes(searchQuery.toLowerCase())) || task.key.toLowerCase().includes(searchQuery.toLowerCase());
|
|
30033
|
+
var matchesStatus = selectedStatus === 'all' || selectedStatus === 'pinned' && pinnedTasks.includes(task.key) || selectedStatus === 'completed' && task.status === TaskStatus.Completed || selectedStatus === 'inprogress' && task.status === TaskStatus.InProgress || selectedStatus === 'notstarted' && task.status === TaskStatus.NotStarted;
|
|
30034
|
+
return matchesSearch && matchesStatus;
|
|
30035
|
+
});
|
|
30036
|
+
// Sort with pinned tasks first
|
|
30037
|
+
return filtered.sort(function (a, b) {
|
|
30038
|
+
var aIsPinned = pinnedTasks.includes(a.key);
|
|
30039
|
+
var bIsPinned = pinnedTasks.includes(b.key);
|
|
30040
|
+
if (aIsPinned && !bIsPinned) return -1;
|
|
30041
|
+
if (!aIsPinned && bIsPinned) return 1;
|
|
30042
|
+
return 0;
|
|
30043
|
+
});
|
|
30044
|
+
}, [localTasks, searchQuery, selectedStatus, pinnedTasks]);
|
|
29850
30045
|
return React.createElement(TasksContainer, {
|
|
29851
30046
|
type: RPGUIContainerTypes.Framed,
|
|
29852
30047
|
onCloseButton: onClose,
|
|
29853
30048
|
cancelDrag: ".tasks-container",
|
|
29854
30049
|
scale: scale,
|
|
29855
|
-
width:
|
|
29856
|
-
height:
|
|
29857
|
-
|
|
29858
|
-
|
|
29859
|
-
|
|
30050
|
+
width: isMobile ? '100vw' : 'max(50vw, 900px)',
|
|
30051
|
+
height: isMobile ? '100vh' : 'min(85vh, 800px)',
|
|
30052
|
+
isMobile: isMobile
|
|
30053
|
+
}, React.createElement(TaskTitle$1, {
|
|
30054
|
+
isMobile: isMobile
|
|
30055
|
+
}, "Daily Tasks"), React.createElement(Container$i, {
|
|
30056
|
+
isMobile: isMobile
|
|
30057
|
+
}, React.createElement(GlobalProgressFixed, null, React.createElement(GlobalDailyProgress, {
|
|
29860
30058
|
tasks: localTasks,
|
|
29861
30059
|
onClaimAllRewards: handleClaimGlobalRewards,
|
|
29862
30060
|
globalRewardClaimed: globalRewardClaimed || globalRewardClaimedLocal
|
|
29863
|
-
}),
|
|
29864
|
-
|
|
29865
|
-
|
|
30061
|
+
})), React.createElement(SearchHeader, null, React.createElement(SearchBarContainer, null, React.createElement(SearchBar, {
|
|
30062
|
+
value: searchQuery,
|
|
30063
|
+
onChange: setSearchQuery,
|
|
30064
|
+
placeholder: "Search tasks..."
|
|
30065
|
+
})), React.createElement(DropdownContainer, null, React.createElement(Dropdown, {
|
|
30066
|
+
options: statusOptions,
|
|
30067
|
+
onChange: setSelectedStatus,
|
|
30068
|
+
width: "100%"
|
|
30069
|
+
}))), React.createElement(TasksList, {
|
|
30070
|
+
className: "tasks-container",
|
|
30071
|
+
isMobile: isMobile
|
|
30072
|
+
}, filteredTasks.length > 0 ? filteredTasks.map(function (task) {
|
|
30073
|
+
return React.createElement(TaskWrapper, {
|
|
30074
|
+
key: task.key
|
|
30075
|
+
}, React.createElement(DailyTaskItem, {
|
|
29866
30076
|
task: task,
|
|
29867
30077
|
spriteKey: getTaskIcon(task.type, task.difficulty),
|
|
29868
30078
|
onClaimReward: handleClaimReward,
|
|
@@ -29870,26 +30080,86 @@ var DailyTasks = function DailyTasks(_ref) {
|
|
|
29870
30080
|
itemsAtlasIMG: itemsAtlasIMG,
|
|
29871
30081
|
iconAtlasJSON: iconAtlasJSON,
|
|
29872
30082
|
iconAtlasIMG: iconAtlasIMG,
|
|
29873
|
-
isRewardClaimed: task.claimed || isTaskRewardClaimed(task.key)
|
|
29874
|
-
|
|
29875
|
-
|
|
30083
|
+
isRewardClaimed: task.claimed || isTaskRewardClaimed(task.key),
|
|
30084
|
+
isPinned: pinnedTasks.includes(task.key)
|
|
30085
|
+
}), React.createElement(PinButton$1, {
|
|
30086
|
+
onClick: function onClick() {
|
|
30087
|
+
return togglePinTask(task.key);
|
|
30088
|
+
},
|
|
30089
|
+
isPinned: pinnedTasks.includes(task.key)
|
|
30090
|
+
}, React.createElement(FaThumbtack, {
|
|
30091
|
+
size: 10
|
|
30092
|
+
})));
|
|
30093
|
+
}) : React.createElement(EmptyState$1, null, React.createElement(FaClipboardList, {
|
|
30094
|
+
size: 48
|
|
30095
|
+
}), React.createElement("p", null, searchQuery || selectedStatus !== 'all' ? 'No tasks match your criteria.' : 'No daily tasks available.')))));
|
|
29876
30096
|
};
|
|
29877
30097
|
var TasksContainer = /*#__PURE__*/styled(DraggableContainer).withConfig({
|
|
29878
30098
|
displayName: "DailyTasks__TasksContainer",
|
|
29879
30099
|
componentId: "sc-ittn77-0"
|
|
29880
|
-
})(["
|
|
29881
|
-
|
|
30100
|
+
})(["", " .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.98) !important;", "}"], function (props) {
|
|
30101
|
+
return props.isMobile ? "\n position: fixed !important;\n top: 0 !important;\n left: 0 !important;\n right: 0 !important;\n bottom: 0 !important;\n width: 100vw !important;\n height: 100vh !important;\n margin: 0 !important;\n z-index: 1000 !important;\n " : "\n margin: 0 auto;\n min-width: 50vw;\n ";
|
|
30102
|
+
}, function (props) {
|
|
30103
|
+
return props.isMobile ? 'padding: 8px 0;' : '';
|
|
30104
|
+
}, function (props) {
|
|
30105
|
+
return props.isMobile ? "\n border-radius: 0 !important;\n height: 100vh !important;\n width: 100vw !important;\n " : '';
|
|
30106
|
+
});
|
|
30107
|
+
var Container$i = /*#__PURE__*/styled.div.withConfig({
|
|
29882
30108
|
displayName: "DailyTasks__Container",
|
|
29883
30109
|
componentId: "sc-ittn77-1"
|
|
29884
|
-
})(["width:100%;
|
|
30110
|
+
})(["width:100%;height:100%;margin:0;padding:0;overflow:hidden;box-sizing:border-box;background-color:transparent;display:flex;flex-direction:column;"]);
|
|
29885
30111
|
var TasksList = /*#__PURE__*/styled.div.withConfig({
|
|
29886
30112
|
displayName: "DailyTasks__TasksList",
|
|
29887
30113
|
componentId: "sc-ittn77-2"
|
|
29888
|
-
})(["display:flex;flex-direction:column;gap:
|
|
30114
|
+
})(["display:flex;flex-direction:column;gap:", ";padding:", ";overflow-y:auto;flex:1;background-color:transparent;", ""], function (props) {
|
|
30115
|
+
return props.isMobile ? '8px' : '12px';
|
|
30116
|
+
}, function (props) {
|
|
30117
|
+
return props.isMobile ? '8px' : '12px';
|
|
30118
|
+
}, function (props) {
|
|
30119
|
+
return props.isMobile ? "\n -webkit-overflow-scrolling: touch;\n scrollbar-width: thin;\n " : '';
|
|
30120
|
+
});
|
|
30121
|
+
var GlobalProgressFixed = /*#__PURE__*/styled.div.withConfig({
|
|
30122
|
+
displayName: "DailyTasks__GlobalProgressFixed",
|
|
30123
|
+
componentId: "sc-ittn77-3"
|
|
30124
|
+
})(["flex-shrink:0;padding:12px;background-color:transparent;"]);
|
|
30125
|
+
var SearchHeader = /*#__PURE__*/styled.div.withConfig({
|
|
30126
|
+
displayName: "DailyTasks__SearchHeader",
|
|
30127
|
+
componentId: "sc-ittn77-4"
|
|
30128
|
+
})(["display:flex;gap:12px;justify-content:center;align-items:center;margin-left:12px;margin-right:12px;padding:0.25rem;border-bottom:1px solid ", ";background:rgba(0,0,0,0.3);"], uiColors.darkGray);
|
|
30129
|
+
var SearchBarContainer = /*#__PURE__*/styled.div.withConfig({
|
|
30130
|
+
displayName: "DailyTasks__SearchBarContainer",
|
|
30131
|
+
componentId: "sc-ittn77-5"
|
|
30132
|
+
})(["flex:3;"]);
|
|
30133
|
+
var DropdownContainer = /*#__PURE__*/styled.div.withConfig({
|
|
30134
|
+
displayName: "DailyTasks__DropdownContainer",
|
|
30135
|
+
componentId: "sc-ittn77-6"
|
|
30136
|
+
})(["flex:1;min-width:120px;"]);
|
|
30137
|
+
var TaskWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
30138
|
+
displayName: "DailyTasks__TaskWrapper",
|
|
30139
|
+
componentId: "sc-ittn77-7"
|
|
30140
|
+
})(["position:relative;width:100%;"]);
|
|
30141
|
+
var PinButton$1 = /*#__PURE__*/styled.button.withConfig({
|
|
30142
|
+
displayName: "DailyTasks__PinButton",
|
|
30143
|
+
componentId: "sc-ittn77-8"
|
|
30144
|
+
})(["position:absolute;top:8px;right:32px;background:rgba(0,0,0,0.7);color:", ";border:1px solid ", ";cursor:pointer;padding:4px;display:flex;align-items:center;justify-content:center;border-radius:3px;transition:all 0.2s ease;z-index:10;width:20px;height:20px;&:hover{color:", ";background:rgba(0,0,0,0.9);border-color:", ";}", ""], function (props) {
|
|
30145
|
+
return props.isPinned ? uiColors.yellow : uiColors.lightGray;
|
|
30146
|
+
}, function (props) {
|
|
30147
|
+
return props.isPinned ? uiColors.yellow : 'transparent';
|
|
30148
|
+
}, uiColors.yellow, uiColors.yellow, function (props) {
|
|
30149
|
+
return props.isPinned && "\n transform: rotate(45deg);\n ";
|
|
30150
|
+
});
|
|
30151
|
+
var EmptyState$1 = /*#__PURE__*/styled.div.withConfig({
|
|
30152
|
+
displayName: "DailyTasks__EmptyState",
|
|
30153
|
+
componentId: "sc-ittn77-9"
|
|
30154
|
+
})(["display:flex;flex-direction:column;align-items:center;justify-content:center;padding:60px 20px;text-align:center;color:", ";opacity:0.7;gap:16px;p{margin:0;font-size:0.9rem;line-height:1.4;}"], uiColors.lightGray);
|
|
29889
30155
|
var TaskTitle$1 = /*#__PURE__*/styled.h2.withConfig({
|
|
29890
30156
|
displayName: "DailyTasks__TaskTitle",
|
|
29891
|
-
componentId: "sc-ittn77-
|
|
29892
|
-
})(["color:", " !important;text-align:center;padding-right:30px !important;font-size:
|
|
30157
|
+
componentId: "sc-ittn77-10"
|
|
30158
|
+
})(["color:", " !important;text-align:center;padding-right:30px !important;font-size:", " !important;width:100%;margin:", " !important;font-weight:600;"], uiColors.yellow, function (props) {
|
|
30159
|
+
return props.isMobile ? '1rem' : '1.2rem';
|
|
30160
|
+
}, function (props) {
|
|
30161
|
+
return props.isMobile ? '4px 0' : '8px 0';
|
|
30162
|
+
});
|
|
29893
30163
|
|
|
29894
30164
|
// Memoize the styled components since they don't depend on props that change frequently
|
|
29895
30165
|
var DPadButton = /*#__PURE__*/memo( /*#__PURE__*/styled.div.withConfig({
|
|
@@ -30250,7 +30520,7 @@ var DraggedItem = function DraggedItem(_ref) {
|
|
|
30250
30520
|
var centeredX = x - OFFSET$1;
|
|
30251
30521
|
var centeredY = y - OFFSET$1;
|
|
30252
30522
|
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);
|
|
30253
|
-
return React.createElement(Container$
|
|
30523
|
+
return React.createElement(Container$j, null, React.createElement(SpriteContainer, {
|
|
30254
30524
|
x: centeredX,
|
|
30255
30525
|
y: centeredY
|
|
30256
30526
|
}, React.createElement(SpriteFromAtlas, {
|
|
@@ -30268,7 +30538,7 @@ var DraggedItem = function DraggedItem(_ref) {
|
|
|
30268
30538
|
}), stackInfo));
|
|
30269
30539
|
};
|
|
30270
30540
|
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";
|
|
30271
|
-
var Container$
|
|
30541
|
+
var Container$j = /*#__PURE__*/styled.div.withConfig({
|
|
30272
30542
|
displayName: "DraggedItem__Container",
|
|
30273
30543
|
componentId: "sc-mlzzcp-0"
|
|
30274
30544
|
})(["position:relative;"]);
|
|
@@ -30306,7 +30576,7 @@ var RelativeListMenu = function RelativeListMenu(_ref) {
|
|
|
30306
30576
|
document.removeEventListener('clickOutside', function (_e) {});
|
|
30307
30577
|
};
|
|
30308
30578
|
}, []);
|
|
30309
|
-
return React.createElement(ModalPortal, null, React.createElement(Container$
|
|
30579
|
+
return React.createElement(ModalPortal, null, React.createElement(Container$k, Object.assign({
|
|
30310
30580
|
fontSize: fontSize,
|
|
30311
30581
|
ref: ref
|
|
30312
30582
|
}, pos), React.createElement("ul", {
|
|
@@ -30323,7 +30593,7 @@ var RelativeListMenu = function RelativeListMenu(_ref) {
|
|
|
30323
30593
|
}, (params == null ? void 0 : params.text) || 'No text');
|
|
30324
30594
|
}))));
|
|
30325
30595
|
};
|
|
30326
|
-
var Container$
|
|
30596
|
+
var Container$k = /*#__PURE__*/styled.div.withConfig({
|
|
30327
30597
|
displayName: "RelativeListMenu__Container",
|
|
30328
30598
|
componentId: "sc-7hohf-0"
|
|
30329
30599
|
})(["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) {
|
|
@@ -30597,7 +30867,7 @@ var SearchFriend = function SearchFriend(_ref) {
|
|
|
30597
30867
|
title: "Requests (" + friendRequests.length + ")",
|
|
30598
30868
|
content: requestsTabContent
|
|
30599
30869
|
}];
|
|
30600
|
-
return React.createElement(Container$
|
|
30870
|
+
return React.createElement(Container$l, null, React.createElement(InternalTabs, {
|
|
30601
30871
|
tabs: tabs,
|
|
30602
30872
|
activeTextColor: "#000",
|
|
30603
30873
|
inactiveColor: "#777",
|
|
@@ -30639,7 +30909,7 @@ var FriendRequestSection = function FriendRequestSection(_ref3) {
|
|
|
30639
30909
|
}, "Reject")));
|
|
30640
30910
|
})));
|
|
30641
30911
|
};
|
|
30642
|
-
var Container$
|
|
30912
|
+
var Container$l = /*#__PURE__*/styled.div.withConfig({
|
|
30643
30913
|
displayName: "SearchFriend__Container",
|
|
30644
30914
|
componentId: "sc-1lt1ols-0"
|
|
30645
30915
|
})(["display:flex;flex-direction:column;gap:1rem;"]);
|
|
@@ -30842,7 +31112,7 @@ var NPCDialogText = function NPCDialogText(_ref) {
|
|
|
30842
31112
|
var _useState2 = useState(false),
|
|
30843
31113
|
showGoNextIndicator = _useState2[0],
|
|
30844
31114
|
setShowGoNextIndicator = _useState2[1];
|
|
30845
|
-
return React.createElement(Container$
|
|
31115
|
+
return React.createElement(Container$m, null, React.createElement(DynamicText, {
|
|
30846
31116
|
text: (textChunks == null ? void 0 : textChunks[chunkIndex]) || '',
|
|
30847
31117
|
onFinish: function onFinish() {
|
|
30848
31118
|
setShowGoNextIndicator(true);
|
|
@@ -30860,7 +31130,7 @@ var NPCDialogText = function NPCDialogText(_ref) {
|
|
|
30860
31130
|
}
|
|
30861
31131
|
}));
|
|
30862
31132
|
};
|
|
30863
|
-
var Container$
|
|
31133
|
+
var Container$m = /*#__PURE__*/styled.div.withConfig({
|
|
30864
31134
|
displayName: "NPCDialogText__Container",
|
|
30865
31135
|
componentId: "sc-1cxkdh9-0"
|
|
30866
31136
|
})([""]);
|
|
@@ -31012,7 +31282,7 @@ var QuestionDialog = function QuestionDialog(_ref) {
|
|
|
31012
31282
|
return null;
|
|
31013
31283
|
});
|
|
31014
31284
|
};
|
|
31015
|
-
return React.createElement(Container$
|
|
31285
|
+
return React.createElement(Container$n, null, React.createElement(QuestionContainer, null, React.createElement(DynamicText, {
|
|
31016
31286
|
text: currentQuestion.text,
|
|
31017
31287
|
onStart: function onStart() {
|
|
31018
31288
|
return setCanShowAnswers(false);
|
|
@@ -31022,7 +31292,7 @@ var QuestionDialog = function QuestionDialog(_ref) {
|
|
|
31022
31292
|
}
|
|
31023
31293
|
})), canShowAnswers && React.createElement(AnswersContainer, null, onRenderCurrentAnswers()));
|
|
31024
31294
|
};
|
|
31025
|
-
var Container$
|
|
31295
|
+
var Container$n = /*#__PURE__*/styled.div.withConfig({
|
|
31026
31296
|
displayName: "QuestionDialog__Container",
|
|
31027
31297
|
componentId: "sc-bxc5u0-0"
|
|
31028
31298
|
})(["display:flex;word-break:break-all;box-sizing:border-box;justify-content:flex-start;align-items:flex-start;flex-wrap:wrap;"]);
|
|
@@ -31083,7 +31353,7 @@ var NPCDialog = function NPCDialog(_ref) {
|
|
|
31083
31353
|
}
|
|
31084
31354
|
})), type === NPCDialogType.TextAndThumbnail && React.createElement(ThumbnailContainer, null, React.createElement(NPCThumbnail, {
|
|
31085
31355
|
src: imagePath || img$7
|
|
31086
|
-
}))) : React.createElement(React.Fragment, null, React.createElement(Container$
|
|
31356
|
+
}))) : React.createElement(React.Fragment, null, React.createElement(Container$o, null, React.createElement(CloseIcon, {
|
|
31087
31357
|
onPointerDown: _onClose
|
|
31088
31358
|
}, "X"), React.createElement(TextContainer$1, {
|
|
31089
31359
|
flex: type === NPCDialogType.TextAndThumbnail ? '70%' : '100%'
|
|
@@ -31099,7 +31369,7 @@ var NPCDialog = function NPCDialog(_ref) {
|
|
|
31099
31369
|
src: imagePath || img$7
|
|
31100
31370
|
})))));
|
|
31101
31371
|
};
|
|
31102
|
-
var Container$
|
|
31372
|
+
var Container$o = /*#__PURE__*/styled.div.withConfig({
|
|
31103
31373
|
displayName: "NPCDialog__Container",
|
|
31104
31374
|
componentId: "sc-1b4aw74-0"
|
|
31105
31375
|
})(["display:flex;width:100%;height:100%;box-sizing:border-box;justify-content:center;align-items:flex-start;position:relative;"]);
|
|
@@ -31160,7 +31430,7 @@ var NPCMultiDialog = function NPCMultiDialog(_ref) {
|
|
|
31160
31430
|
type: RPGUIContainerTypes.FramedGold,
|
|
31161
31431
|
width: '50%',
|
|
31162
31432
|
height: '180px'
|
|
31163
|
-
}, React.createElement(React.Fragment, null, React.createElement(Container$
|
|
31433
|
+
}, React.createElement(React.Fragment, null, React.createElement(Container$p, null, ((_textAndTypeArray$sli = textAndTypeArray[slide]) == null ? void 0 : _textAndTypeArray$sli.imageSide) === 'right' && React.createElement(React.Fragment, null, React.createElement(TextContainer$2, {
|
|
31164
31434
|
flex: '70%'
|
|
31165
31435
|
}, React.createElement(NPCDialogText, {
|
|
31166
31436
|
onStartStep: function onStartStep() {
|
|
@@ -31202,7 +31472,7 @@ var NPCMultiDialog = function NPCMultiDialog(_ref) {
|
|
|
31202
31472
|
src: img$6
|
|
31203
31473
|
}))), ")"));
|
|
31204
31474
|
};
|
|
31205
|
-
var Container$
|
|
31475
|
+
var Container$p = /*#__PURE__*/styled.div.withConfig({
|
|
31206
31476
|
displayName: "NPCMultiDialog__Container",
|
|
31207
31477
|
componentId: "sc-rvu5wg-0"
|
|
31208
31478
|
})(["display:flex;width:100%;height:100%;box-sizing:border-box;justify-content:center;align-items:flex-start;position:relative;"]);
|
|
@@ -31634,7 +31904,7 @@ var Pagination = function Pagination(_ref) {
|
|
|
31634
31904
|
totalPages = _ref.totalPages,
|
|
31635
31905
|
onPageChange = _ref.onPageChange,
|
|
31636
31906
|
className = _ref.className;
|
|
31637
|
-
return React.createElement(Container$
|
|
31907
|
+
return React.createElement(Container$q, {
|
|
31638
31908
|
className: className
|
|
31639
31909
|
}, React.createElement(PaginationButton$1, {
|
|
31640
31910
|
onClick: function onClick() {
|
|
@@ -31652,7 +31922,7 @@ var Pagination = function Pagination(_ref) {
|
|
|
31652
31922
|
size: 12
|
|
31653
31923
|
})));
|
|
31654
31924
|
};
|
|
31655
|
-
var Container$
|
|
31925
|
+
var Container$q = /*#__PURE__*/styled.div.withConfig({
|
|
31656
31926
|
displayName: "Pagination__Container",
|
|
31657
31927
|
componentId: "sc-3k4m4u-0"
|
|
31658
31928
|
})(["display:flex;align-items:center;justify-content:center;gap:16px;padding:8px;"]);
|
|
@@ -31671,46 +31941,7 @@ var PageInfo$1 = /*#__PURE__*/styled.div.withConfig({
|
|
|
31671
31941
|
componentId: "sc-3k4m4u-2"
|
|
31672
31942
|
})(["color:", ";font-size:0.8rem;font-family:'Press Start 2P',cursive;"], uiColors.lightGray);
|
|
31673
31943
|
|
|
31674
|
-
var
|
|
31675
|
-
var value = _ref.value,
|
|
31676
|
-
_onChange = _ref.onChange,
|
|
31677
|
-
placeholder = _ref.placeholder,
|
|
31678
|
-
className = _ref.className,
|
|
31679
|
-
rightElement = _ref.rightElement;
|
|
31680
|
-
var hasRightElement = Boolean(rightElement);
|
|
31681
|
-
return React.createElement(Container$q, {
|
|
31682
|
-
className: className
|
|
31683
|
-
}, React.createElement(Input$1, {
|
|
31684
|
-
type: "text",
|
|
31685
|
-
value: value,
|
|
31686
|
-
onChange: function onChange(e) {
|
|
31687
|
-
return _onChange(e.target.value);
|
|
31688
|
-
},
|
|
31689
|
-
placeholder: placeholder,
|
|
31690
|
-
className: "rpgui-input",
|
|
31691
|
-
"$hasRightElement": hasRightElement
|
|
31692
|
-
}), React.createElement(IconContainer, null, React.createElement(SearchIcon, null), rightElement));
|
|
31693
|
-
};
|
|
31694
|
-
var Container$q = /*#__PURE__*/styled.div.withConfig({
|
|
31695
|
-
displayName: "SearchBar__Container",
|
|
31696
|
-
componentId: "sc-13n8z02-0"
|
|
31697
|
-
})(["position:relative;width:100%;"]);
|
|
31698
|
-
var Input$1 = /*#__PURE__*/styled.input.withConfig({
|
|
31699
|
-
displayName: "SearchBar__Input",
|
|
31700
|
-
componentId: "sc-13n8z02-1"
|
|
31701
|
-
})(["width:100%;padding-right:", " !important;background:rgba(0,0,0,0.2) !important;border:2px solid #f59e0b !important;box-shadow:0 0 10px rgba(245,158,11,0.3);color:#ffffff !important;font-family:'Press Start 2P',cursive !important;font-size:0.875rem !important;&::placeholder{color:rgba(255,255,255,0.5) !important;}"], function (props) {
|
|
31702
|
-
return props.$hasRightElement ? '6rem' : '2.5rem';
|
|
31703
|
-
});
|
|
31704
|
-
var IconContainer = /*#__PURE__*/styled.div.withConfig({
|
|
31705
|
-
displayName: "SearchBar__IconContainer",
|
|
31706
|
-
componentId: "sc-13n8z02-2"
|
|
31707
|
-
})(["position:absolute;right:0.75rem;top:50%;transform:translateY(-50%);display:flex;align-items:center;gap:0.5rem;pointer-events:none;z-index:1;> *{pointer-events:auto;}"]);
|
|
31708
|
-
var SearchIcon = /*#__PURE__*/styled(FaSearch).withConfig({
|
|
31709
|
-
displayName: "SearchBar__SearchIcon",
|
|
31710
|
-
componentId: "sc-13n8z02-3"
|
|
31711
|
-
})(["font-size:1rem;color:#f59e0b;filter:drop-shadow(0 0 2px rgba(245,158,11,0.3));"]);
|
|
31712
|
-
|
|
31713
|
-
var SearchHeader = function SearchHeader(_ref) {
|
|
31944
|
+
var SearchHeader$1 = function SearchHeader(_ref) {
|
|
31714
31945
|
var searchOptions = _ref.searchOptions,
|
|
31715
31946
|
filterOptions = _ref.filterOptions,
|
|
31716
31947
|
className = _ref.className;
|
|
@@ -31801,7 +32032,7 @@ var PaginatedContent = function PaginatedContent(_ref) {
|
|
|
31801
32032
|
totalPages = _usePagination.totalPages;
|
|
31802
32033
|
return React.createElement(Container$r, {
|
|
31803
32034
|
className: className
|
|
31804
|
-
}, (searchOptions || filterOptions) && React.createElement(SearchHeader, {
|
|
32035
|
+
}, (searchOptions || filterOptions) && React.createElement(SearchHeader$1, {
|
|
31805
32036
|
searchOptions: searchOptions,
|
|
31806
32037
|
filterOptions: filterOptions
|
|
31807
32038
|
}), items.length === 0 ? React.createElement(EmptyMessage, null, emptyMessage) : React.createElement(React.Fragment, null, React.createElement(Content, {
|
|
@@ -36587,7 +36818,7 @@ var SocialModal = function SocialModal(_ref) {
|
|
|
36587
36818
|
onClick: handleRedditClick
|
|
36588
36819
|
}, React.createElement(FaReddit, null), " Reddit")), React.createElement(Divider, {
|
|
36589
36820
|
margin: "8px 0"
|
|
36590
|
-
}), React.createElement(DropdownContainer, null, React.createElement(Dropdown, {
|
|
36821
|
+
}), React.createElement(DropdownContainer$1, null, React.createElement(Dropdown, {
|
|
36591
36822
|
options: whatsAppGroups,
|
|
36592
36823
|
onChange: handleLanguageChange,
|
|
36593
36824
|
width: "100%",
|
|
@@ -36620,7 +36851,7 @@ var WhatsAppButton = /*#__PURE__*/styled(SocialButton$1).withConfig({
|
|
|
36620
36851
|
displayName: "SocialModal__WhatsAppButton",
|
|
36621
36852
|
componentId: "sc-tbjhp9-5"
|
|
36622
36853
|
})(["width:100%;background-color:#0f1f0f;border:1px solid #1a2f1a;padding:14px;&:hover{background-color:#162716;}margin-top:8px;"]);
|
|
36623
|
-
var DropdownContainer = /*#__PURE__*/styled.div.withConfig({
|
|
36854
|
+
var DropdownContainer$1 = /*#__PURE__*/styled.div.withConfig({
|
|
36624
36855
|
displayName: "SocialModal__DropdownContainer",
|
|
36625
36856
|
componentId: "sc-tbjhp9-6"
|
|
36626
36857
|
})(["background-color:rgba(0,0,0,0.2);padding:8px;border-radius:4px;border:1px solid rgba(0,0,0,0.3);"]);
|
|
@@ -57392,7 +57623,7 @@ var CTAButton = function CTAButton(_ref) {
|
|
|
57392
57623
|
"$fullWidth": fullWidth,
|
|
57393
57624
|
"$disabled": disabled,
|
|
57394
57625
|
"$color": textColor
|
|
57395
|
-
}, React.createElement(ButtonContent, null, React.createElement(IconWrapper, {
|
|
57626
|
+
}, React.createElement(ButtonContent, null, React.createElement(IconWrapper$1, {
|
|
57396
57627
|
"$color": iconColor,
|
|
57397
57628
|
"$disabled": disabled
|
|
57398
57629
|
}, icon), label && React.createElement(ButtonLabel, {
|
|
@@ -57426,7 +57657,7 @@ var ButtonContent = /*#__PURE__*/styled.div.withConfig({
|
|
|
57426
57657
|
displayName: "CTAButton__ButtonContent",
|
|
57427
57658
|
componentId: "sc-1azvwn5-1"
|
|
57428
57659
|
})(["display:flex;align-items:center;gap:0.75rem;"]);
|
|
57429
|
-
var IconWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
57660
|
+
var IconWrapper$1 = /*#__PURE__*/styled.div.withConfig({
|
|
57430
57661
|
displayName: "CTAButton__IconWrapper",
|
|
57431
57662
|
componentId: "sc-1azvwn5-2"
|
|
57432
57663
|
})(["svg{font-size:1.25rem;color:", ";filter:drop-shadow(0 0 2px rgba(245,158,11,0.5));opacity:", ";}"], function (props) {
|
|
@@ -58361,11 +58592,11 @@ var StoreItemsSection = function StoreItemsSection(_ref) {
|
|
|
58361
58592
|
userAccountType: userAccountType || UserAccountTypes.Free
|
|
58362
58593
|
});
|
|
58363
58594
|
};
|
|
58364
|
-
return React.createElement(StoreContainer, null, React.createElement(SearchHeader$
|
|
58595
|
+
return React.createElement(StoreContainer, null, React.createElement(SearchHeader$2, null, React.createElement(SearchBarContainer$1, null, React.createElement(SearchBar, {
|
|
58365
58596
|
value: searchQuery,
|
|
58366
58597
|
onChange: setSearchQuery,
|
|
58367
58598
|
placeholder: "Search items..."
|
|
58368
|
-
})), React.createElement(DropdownContainer$
|
|
58599
|
+
})), React.createElement(DropdownContainer$2, null, React.createElement(Dropdown, {
|
|
58369
58600
|
options: categoryOptions,
|
|
58370
58601
|
onChange: function onChange(value) {
|
|
58371
58602
|
return setSelectedCategory(value);
|
|
@@ -58383,15 +58614,15 @@ var StoreContainer = /*#__PURE__*/styled.div.withConfig({
|
|
|
58383
58614
|
displayName: "StoreItemsSection__StoreContainer",
|
|
58384
58615
|
componentId: "sc-l6f466-0"
|
|
58385
58616
|
})(["display:flex;flex-direction:column;height:100%;gap:0.5rem;"]);
|
|
58386
|
-
var SearchHeader$
|
|
58617
|
+
var SearchHeader$2 = /*#__PURE__*/styled.div.withConfig({
|
|
58387
58618
|
displayName: "StoreItemsSection__SearchHeader",
|
|
58388
58619
|
componentId: "sc-l6f466-1"
|
|
58389
58620
|
})(["display:flex;gap:0.5rem;align-items:center;padding-top:0.25rem;"]);
|
|
58390
|
-
var SearchBarContainer = /*#__PURE__*/styled.div.withConfig({
|
|
58621
|
+
var SearchBarContainer$1 = /*#__PURE__*/styled.div.withConfig({
|
|
58391
58622
|
displayName: "StoreItemsSection__SearchBarContainer",
|
|
58392
58623
|
componentId: "sc-l6f466-2"
|
|
58393
58624
|
})(["flex:0.75;"]);
|
|
58394
|
-
var DropdownContainer$
|
|
58625
|
+
var DropdownContainer$2 = /*#__PURE__*/styled.div.withConfig({
|
|
58395
58626
|
displayName: "StoreItemsSection__DropdownContainer",
|
|
58396
58627
|
componentId: "sc-l6f466-3"
|
|
58397
58628
|
})(["flex:0.25;min-width:140px;"]);
|