@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
|
@@ -29364,6 +29364,45 @@ var EmptyState = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
29364
29364
|
componentId: "sc-19q95ue-15"
|
|
29365
29365
|
})(["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);
|
|
29366
29366
|
|
|
29367
|
+
var SearchBar = function SearchBar(_ref) {
|
|
29368
|
+
var value = _ref.value,
|
|
29369
|
+
_onChange = _ref.onChange,
|
|
29370
|
+
placeholder = _ref.placeholder,
|
|
29371
|
+
className = _ref.className,
|
|
29372
|
+
rightElement = _ref.rightElement;
|
|
29373
|
+
var hasRightElement = Boolean(rightElement);
|
|
29374
|
+
return React__default.createElement(Container$g, {
|
|
29375
|
+
className: className
|
|
29376
|
+
}, React__default.createElement(Input$1, {
|
|
29377
|
+
type: "text",
|
|
29378
|
+
value: value,
|
|
29379
|
+
onChange: function onChange(e) {
|
|
29380
|
+
return _onChange(e.target.value);
|
|
29381
|
+
},
|
|
29382
|
+
placeholder: placeholder,
|
|
29383
|
+
className: "rpgui-input",
|
|
29384
|
+
"$hasRightElement": hasRightElement
|
|
29385
|
+
}), React__default.createElement(IconContainer, null, React__default.createElement(SearchIcon, null), rightElement));
|
|
29386
|
+
};
|
|
29387
|
+
var Container$g = /*#__PURE__*/styled__default.div.withConfig({
|
|
29388
|
+
displayName: "SearchBar__Container",
|
|
29389
|
+
componentId: "sc-13n8z02-0"
|
|
29390
|
+
})(["position:relative;width:100%;"]);
|
|
29391
|
+
var Input$1 = /*#__PURE__*/styled__default.input.withConfig({
|
|
29392
|
+
displayName: "SearchBar__Input",
|
|
29393
|
+
componentId: "sc-13n8z02-1"
|
|
29394
|
+
})(["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) {
|
|
29395
|
+
return props.$hasRightElement ? '6rem' : '2.5rem';
|
|
29396
|
+
});
|
|
29397
|
+
var IconContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
29398
|
+
displayName: "SearchBar__IconContainer",
|
|
29399
|
+
componentId: "sc-13n8z02-2"
|
|
29400
|
+
})(["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;}"]);
|
|
29401
|
+
var SearchIcon = /*#__PURE__*/styled__default(fa.FaSearch).withConfig({
|
|
29402
|
+
displayName: "SearchBar__SearchIcon",
|
|
29403
|
+
componentId: "sc-13n8z02-3"
|
|
29404
|
+
})(["font-size:1rem;color:#f59e0b;filter:drop-shadow(0 0 2px rgba(245,158,11,0.3));"]);
|
|
29405
|
+
|
|
29367
29406
|
var formatTaskKey = function formatTaskKey(key) {
|
|
29368
29407
|
var formatted = key.replace(/[-_]/g, ' ');
|
|
29369
29408
|
formatted = formatted.replace(/([A-Z])/g, ' $1');
|
|
@@ -29448,6 +29487,7 @@ var DailyRewardsTooltip = function DailyRewardsTooltip(_ref) {
|
|
|
29448
29487
|
var _React$useState = React__default.useState(true),
|
|
29449
29488
|
isExpanded = _React$useState[0],
|
|
29450
29489
|
setIsExpanded = _React$useState[1];
|
|
29490
|
+
var isMobile = shared.isMobileOrTablet();
|
|
29451
29491
|
var sortedRewards = React__default.useMemo(function () {
|
|
29452
29492
|
var _REWARD_PRIORITY;
|
|
29453
29493
|
if (!rewards) return [];
|
|
@@ -29465,21 +29505,28 @@ var DailyRewardsTooltip = function DailyRewardsTooltip(_ref) {
|
|
|
29465
29505
|
};
|
|
29466
29506
|
return React__default.createElement(TooltipContainer$1, null, React__default.createElement(CollapsibleHeader, {
|
|
29467
29507
|
onClick: toggleExpand
|
|
29468
|
-
}, React__default.createElement(HeaderText, null, "Rewards?"), React__default.createElement(ExpandIcon, null, isExpanded ? '▼' : '▶')), isExpanded && React__default.createElement(CollapsibleContent, null, React__default.createElement(RewardsList,
|
|
29508
|
+
}, React__default.createElement(HeaderText, null, "Rewards?"), React__default.createElement(ExpandIcon, null, isExpanded ? '▼' : '▶')), isExpanded && React__default.createElement(CollapsibleContent, null, React__default.createElement(RewardsList, {
|
|
29509
|
+
isMobile: isMobile,
|
|
29510
|
+
rewardCount: sortedRewards.length
|
|
29511
|
+
}, sortedRewards.map(function (reward, index) {
|
|
29469
29512
|
var _reward$texturePath, _reward$key;
|
|
29470
29513
|
return React__default.createElement(RewardItem, {
|
|
29471
29514
|
key: index
|
|
29472
|
-
}, React__default.createElement(SpriteFromAtlas, {
|
|
29515
|
+
}, React__default.createElement(RewardIcon, null, React__default.createElement(SpriteFromAtlas, {
|
|
29473
29516
|
atlasJSON: itemsAtlasJSON,
|
|
29474
29517
|
atlasIMG: itemsAtlasIMG,
|
|
29475
29518
|
spriteKey: (_reward$texturePath = reward.texturePath) != null ? _reward$texturePath : 'check.png',
|
|
29476
|
-
width:
|
|
29477
|
-
height:
|
|
29478
|
-
imgScale: 1.
|
|
29479
|
-
}), React__default.createElement(
|
|
29519
|
+
width: isMobile ? 16 : 18,
|
|
29520
|
+
height: isMobile ? 16 : 18,
|
|
29521
|
+
imgScale: isMobile ? 1.5 : 1.5
|
|
29522
|
+
})), React__default.createElement(RewardContent, null, React__default.createElement(RewardLabel, {
|
|
29523
|
+
isMobile: isMobile
|
|
29524
|
+
}, React__default.createElement(Ellipsis, {
|
|
29480
29525
|
maxWidth: "100%",
|
|
29481
|
-
maxLines:
|
|
29482
|
-
}, formatTaskKey((_reward$key = reward.key) != null ? _reward$key : reward.type)
|
|
29526
|
+
maxLines: 1
|
|
29527
|
+
}, formatTaskKey((_reward$key = reward.key) != null ? _reward$key : reward.type))), React__default.createElement(RewardValue, {
|
|
29528
|
+
isMobile: isMobile
|
|
29529
|
+
}, "\xD7", reward.quantity)));
|
|
29483
29530
|
}))));
|
|
29484
29531
|
};
|
|
29485
29532
|
var TooltipContainer$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
@@ -29489,7 +29536,13 @@ var TooltipContainer$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
29489
29536
|
var RewardsList = /*#__PURE__*/styled__default.div.withConfig({
|
|
29490
29537
|
displayName: "DailyRewardsTooltip__RewardsList",
|
|
29491
29538
|
componentId: "sc-wxzcu4-1"
|
|
29492
|
-
})(["display:
|
|
29539
|
+
})(["display:grid;grid-template-columns:", ";gap:", ";column-gap:", ";width:100%;"], function (props) {
|
|
29540
|
+
return props.rewardCount > 2 && !props.isMobile ? 'repeat(2, 1fr)' : '1fr';
|
|
29541
|
+
}, function (props) {
|
|
29542
|
+
return props.isMobile ? '6px' : '8px';
|
|
29543
|
+
}, function (props) {
|
|
29544
|
+
return props.rewardCount > 2 && !props.isMobile ? '16px' : '8px';
|
|
29545
|
+
});
|
|
29493
29546
|
var CollapsibleHeader = /*#__PURE__*/styled__default.div.withConfig({
|
|
29494
29547
|
displayName: "DailyRewardsTooltip__CollapsibleHeader",
|
|
29495
29548
|
componentId: "sc-wxzcu4-2"
|
|
@@ -29497,37 +29550,45 @@ var CollapsibleHeader = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
29497
29550
|
var HeaderText = /*#__PURE__*/styled__default.span.withConfig({
|
|
29498
29551
|
displayName: "DailyRewardsTooltip__HeaderText",
|
|
29499
29552
|
componentId: "sc-wxzcu4-3"
|
|
29500
|
-
})(["color:", " !important;"], uiColors.yellow);
|
|
29553
|
+
})(["color:", " !important;font-size:0.75rem;font-weight:500;"], uiColors.yellow);
|
|
29501
29554
|
var ExpandIcon = /*#__PURE__*/styled__default.span.withConfig({
|
|
29502
29555
|
displayName: "DailyRewardsTooltip__ExpandIcon",
|
|
29503
29556
|
componentId: "sc-wxzcu4-4"
|
|
29504
|
-
})(["color:", ";font-size:0.
|
|
29557
|
+
})(["color:", ";font-size:0.7rem;margin-left:8px;"], uiColors.yellow);
|
|
29505
29558
|
var CollapsibleContent = /*#__PURE__*/styled__default.div.withConfig({
|
|
29506
29559
|
displayName: "DailyRewardsTooltip__CollapsibleContent",
|
|
29507
29560
|
componentId: "sc-wxzcu4-5"
|
|
29508
|
-
})(["display:block;padding-top:
|
|
29561
|
+
})(["display:block;padding-top:6px;width:100%;"]);
|
|
29509
29562
|
var RewardItem = /*#__PURE__*/styled__default.div.withConfig({
|
|
29510
29563
|
displayName: "DailyRewardsTooltip__RewardItem",
|
|
29511
29564
|
componentId: "sc-wxzcu4-6"
|
|
29512
|
-
})(["display:flex;align-items:center;gap:
|
|
29513
|
-
var
|
|
29514
|
-
displayName: "
|
|
29565
|
+
})(["display:flex;align-items:center;gap:4px;width:100%;padding:2px;min-height:22px;"]);
|
|
29566
|
+
var RewardIcon = /*#__PURE__*/styled__default.div.withConfig({
|
|
29567
|
+
displayName: "DailyRewardsTooltip__RewardIcon",
|
|
29515
29568
|
componentId: "sc-wxzcu4-7"
|
|
29516
|
-
})(["display:flex;flex-
|
|
29569
|
+
})(["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;"]);
|
|
29570
|
+
var RewardContent = /*#__PURE__*/styled__default.div.withConfig({
|
|
29571
|
+
displayName: "DailyRewardsTooltip__RewardContent",
|
|
29572
|
+
componentId: "sc-wxzcu4-8"
|
|
29573
|
+
})(["display:flex;justify-content:space-between;align-items:center;flex:1;min-width:0;"]);
|
|
29517
29574
|
var RewardLabel = /*#__PURE__*/styled__default.span.withConfig({
|
|
29518
29575
|
displayName: "DailyRewardsTooltip__RewardLabel",
|
|
29519
|
-
componentId: "sc-wxzcu4-
|
|
29520
|
-
})(["color:", ";font-size:
|
|
29576
|
+
componentId: "sc-wxzcu4-9"
|
|
29577
|
+
})(["color:", ";font-size:", ";line-height:1.2;display:flex;align-items:center;flex:1;min-width:0;"], uiColors.yellow, function (props) {
|
|
29578
|
+
return props.isMobile ? '0.65rem' : '0.7rem';
|
|
29579
|
+
});
|
|
29521
29580
|
var RewardValue = /*#__PURE__*/styled__default.span.withConfig({
|
|
29522
29581
|
displayName: "DailyRewardsTooltip__RewardValue",
|
|
29523
|
-
componentId: "sc-wxzcu4-
|
|
29524
|
-
})(["color:", ";font-size:
|
|
29582
|
+
componentId: "sc-wxzcu4-10"
|
|
29583
|
+
})(["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) {
|
|
29584
|
+
return props.isMobile ? '0.6rem' : '0.65rem';
|
|
29585
|
+
});
|
|
29525
29586
|
|
|
29526
29587
|
var ReadOnlyCheckItem = function ReadOnlyCheckItem(_ref) {
|
|
29527
29588
|
var labelLeft = _ref.labelLeft,
|
|
29528
29589
|
labelRight = _ref.labelRight,
|
|
29529
29590
|
checked = _ref.checked;
|
|
29530
|
-
return React__default.createElement(Container$
|
|
29591
|
+
return React__default.createElement(Container$h, null, labelLeft && React__default.createElement(Label, null, labelLeft), React__default.createElement("div", {
|
|
29531
29592
|
className: "rpgui-checkbox-container"
|
|
29532
29593
|
}, React__default.createElement(CheckBox, {
|
|
29533
29594
|
className: "rpgui-checkbox",
|
|
@@ -29538,7 +29599,7 @@ var ReadOnlyCheckItem = function ReadOnlyCheckItem(_ref) {
|
|
|
29538
29599
|
isRight: true
|
|
29539
29600
|
}, labelRight));
|
|
29540
29601
|
};
|
|
29541
|
-
var Container$
|
|
29602
|
+
var Container$h = /*#__PURE__*/styled__default.div.withConfig({
|
|
29542
29603
|
displayName: "ReadOnlyCheckItem__Container",
|
|
29543
29604
|
componentId: "sc-1peplf9-0"
|
|
29544
29605
|
})(["display:flex;align-items:center;width:100%;height:20px;"]);
|
|
@@ -29625,58 +29686,8 @@ var CheckItemWrapper = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
29625
29686
|
componentId: "sc-hm6sp1-3"
|
|
29626
29687
|
})(["display:flex;justify-content:center;width:100%;height:20px;input.rpgui-checkbox + label{margin:0 !important;padding-left:23px !important;}"]);
|
|
29627
29688
|
|
|
29628
|
-
var TaskProgress = function TaskProgress(_ref) {
|
|
29629
|
-
var task = _ref.task,
|
|
29630
|
-
itemsAtlasJSON = _ref.itemsAtlasJSON,
|
|
29631
|
-
itemsAtlasIMG = _ref.itemsAtlasIMG,
|
|
29632
|
-
iconAtlasJSON = _ref.iconAtlasJSON,
|
|
29633
|
-
iconAtlasIMG = _ref.iconAtlasIMG;
|
|
29634
|
-
var difficulty = task.difficulty;
|
|
29635
|
-
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, {
|
|
29636
|
-
difficulty: difficulty
|
|
29637
|
-
}, formatDifficulty(difficulty))), React__default.createElement(ProgressItem$1, null, React__default.createElement(ProgressLabel, null, "Status:"), React__default.createElement(StatusText, {
|
|
29638
|
-
color: getStatusInfo(task).color
|
|
29639
|
-
}, getStatusInfo(task).text)), React__default.createElement(TaskProgressDetails, {
|
|
29640
|
-
task: task
|
|
29641
|
-
}), task.rewards && task.rewards.length > 0 && React__default.createElement(ProgressItem$1, null, React__default.createElement(DailyRewardsTooltip, {
|
|
29642
|
-
rewards: task.rewards,
|
|
29643
|
-
itemsAtlasJSON: itemsAtlasJSON,
|
|
29644
|
-
itemsAtlasIMG: itemsAtlasIMG,
|
|
29645
|
-
iconAtlasJSON: iconAtlasJSON,
|
|
29646
|
-
iconAtlasIMG: iconAtlasIMG
|
|
29647
|
-
}))));
|
|
29648
|
-
};
|
|
29649
|
-
var ProgressContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
29650
|
-
displayName: "TaskProgress__ProgressContainer",
|
|
29651
|
-
componentId: "sc-1ejoyu-0"
|
|
29652
|
-
})(["width:100%;position:relative;"]);
|
|
29653
|
-
var ProgressList$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
29654
|
-
displayName: "TaskProgress__ProgressList",
|
|
29655
|
-
componentId: "sc-1ejoyu-1"
|
|
29656
|
-
})(["display:flex;flex-direction:column;gap:6px;"]);
|
|
29657
|
-
var ProgressItem$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
29658
|
-
displayName: "TaskProgress__ProgressItem",
|
|
29659
|
-
componentId: "sc-1ejoyu-2"
|
|
29660
|
-
})(["display:flex;justify-content:space-between;align-items:center;"]);
|
|
29661
|
-
var ProgressLabel = /*#__PURE__*/styled__default.span.withConfig({
|
|
29662
|
-
displayName: "TaskProgress__ProgressLabel",
|
|
29663
|
-
componentId: "sc-1ejoyu-3"
|
|
29664
|
-
})(["color:", " !important;"], uiColors.white);
|
|
29665
|
-
var TaskDifficulty = /*#__PURE__*/styled__default.span.withConfig({
|
|
29666
|
-
displayName: "TaskProgress__TaskDifficulty",
|
|
29667
|
-
componentId: "sc-1ejoyu-4"
|
|
29668
|
-
})(["color:", " !important;"], function (props) {
|
|
29669
|
-
return props.difficulty.toLowerCase() === 'challenge' ? uiColors.red : uiColors.lightGray;
|
|
29670
|
-
});
|
|
29671
|
-
var StatusText = /*#__PURE__*/styled__default.span.withConfig({
|
|
29672
|
-
displayName: "TaskProgress__StatusText",
|
|
29673
|
-
componentId: "sc-1ejoyu-5"
|
|
29674
|
-
})(["color:", " !important;font-weight:bold;"], function (props) {
|
|
29675
|
-
return props.color;
|
|
29676
|
-
});
|
|
29677
|
-
|
|
29678
29689
|
var DailyTaskItem = function DailyTaskItem(_ref) {
|
|
29679
|
-
var _task$name;
|
|
29690
|
+
var _task$difficulty, _task$name;
|
|
29680
29691
|
var task = _ref.task,
|
|
29681
29692
|
spriteKey = _ref.spriteKey,
|
|
29682
29693
|
onClaimReward = _ref.onClaimReward,
|
|
@@ -29684,72 +29695,183 @@ var DailyTaskItem = function DailyTaskItem(_ref) {
|
|
|
29684
29695
|
itemsAtlasIMG = _ref.itemsAtlasIMG,
|
|
29685
29696
|
iconAtlasJSON = _ref.iconAtlasJSON,
|
|
29686
29697
|
iconAtlasIMG = _ref.iconAtlasIMG,
|
|
29687
|
-
isRewardClaimed = _ref.isRewardClaimed
|
|
29698
|
+
isRewardClaimed = _ref.isRewardClaimed,
|
|
29699
|
+
isPinned = _ref.isPinned;
|
|
29688
29700
|
var isMobile = shared.isMobileOrTablet();
|
|
29689
29701
|
var isCompleted = task.status === shared.TaskStatus.Completed;
|
|
29702
|
+
var isInProgress = task.status === shared.TaskStatus.InProgress;
|
|
29703
|
+
var isNotStarted = task.status === shared.TaskStatus.NotStarted;
|
|
29690
29704
|
var isClaimed = task.claimed || isRewardClaimed;
|
|
29705
|
+
var isChallenge = ((_task$difficulty = task.difficulty) == null ? void 0 : _task$difficulty.toLowerCase()) === 'challenge';
|
|
29691
29706
|
var handleClaimReward = function handleClaimReward() {
|
|
29692
29707
|
onClaimReward(task.key, task.type);
|
|
29693
29708
|
};
|
|
29694
|
-
return React__default.createElement(TaskContainer,
|
|
29709
|
+
return React__default.createElement(TaskContainer, {
|
|
29710
|
+
isMobile: isMobile,
|
|
29711
|
+
isCompleted: isCompleted,
|
|
29712
|
+
isInProgress: isInProgress,
|
|
29713
|
+
isNotStarted: isNotStarted,
|
|
29714
|
+
isPinned: isPinned,
|
|
29715
|
+
isChallenge: isChallenge
|
|
29716
|
+
}, React__default.createElement(TaskHeader, {
|
|
29717
|
+
isMobile: isMobile
|
|
29718
|
+
}, React__default.createElement(TaskHeaderLeft, null, iconAtlasJSON && iconAtlasIMG && React__default.createElement(IconWrapper, null, React__default.createElement(SpriteFromAtlas, {
|
|
29695
29719
|
atlasJSON: iconAtlasJSON,
|
|
29696
29720
|
atlasIMG: iconAtlasIMG,
|
|
29697
29721
|
spriteKey: spriteKey,
|
|
29698
|
-
width: 12,
|
|
29699
|
-
height: 12,
|
|
29700
|
-
imgScale: 2
|
|
29701
|
-
})), React__default.createElement(
|
|
29722
|
+
width: isMobile ? 10 : 12,
|
|
29723
|
+
height: isMobile ? 10 : 12,
|
|
29724
|
+
imgScale: 2
|
|
29725
|
+
})), React__default.createElement(TaskTitleSection, null, React__default.createElement(TaskTitle, {
|
|
29726
|
+
isMobile: isMobile
|
|
29727
|
+
}, React__default.createElement(Ellipsis, {
|
|
29702
29728
|
maxWidth: "100%",
|
|
29703
|
-
maxLines:
|
|
29704
|
-
}, (_task$name = task.name) != null ? _task$name : formatTaskKey(task.key))), React__default.createElement(
|
|
29729
|
+
maxLines: 1
|
|
29730
|
+
}, (_task$name = task.name) != null ? _task$name : formatTaskKey(task.key))), React__default.createElement(TaskMeta, {
|
|
29731
|
+
isMobile: isMobile
|
|
29732
|
+
}, React__default.createElement(MetaItem, null, React__default.createElement(MetaLabel, null, "Difficulty:"), React__default.createElement(TaskDifficulty, {
|
|
29733
|
+
difficulty: task.difficulty
|
|
29734
|
+
}, formatDifficulty(task.difficulty))), React__default.createElement(MetaDivider, null, "\u2022"), React__default.createElement(MetaItem, null, React__default.createElement(MetaLabel, null, "Status:"), React__default.createElement(StatusText, {
|
|
29735
|
+
color: getStatusInfo(task).color
|
|
29736
|
+
}, getStatusInfo(task).text))))), React__default.createElement(TaskHeaderRight, null, isClaimed && React__default.createElement(ClaimedBadge, {
|
|
29737
|
+
isMobile: isMobile
|
|
29738
|
+
}, "\u2713"))), React__default.createElement(TaskBody, {
|
|
29739
|
+
isMobile: isMobile
|
|
29740
|
+
}, React__default.createElement(TaskDescription, {
|
|
29741
|
+
isMobile: isMobile
|
|
29742
|
+
}, React__default.createElement(Ellipsis, {
|
|
29705
29743
|
maxWidth: "100%",
|
|
29706
|
-
maxLines: isMobile ?
|
|
29707
|
-
}, task.description))
|
|
29708
|
-
task: task
|
|
29744
|
+
maxLines: isMobile ? 2 : 1
|
|
29745
|
+
}, task.description)), React__default.createElement(TaskProgressDetails, {
|
|
29746
|
+
task: task
|
|
29747
|
+
}), task.rewards && task.rewards.length > 0 && React__default.createElement(RewardsSection, null, React__default.createElement(DailyRewardsTooltip, {
|
|
29748
|
+
rewards: task.rewards,
|
|
29709
29749
|
itemsAtlasJSON: itemsAtlasJSON,
|
|
29710
|
-
itemsAtlasIMG: itemsAtlasIMG
|
|
29711
|
-
|
|
29750
|
+
itemsAtlasIMG: itemsAtlasIMG,
|
|
29751
|
+
iconAtlasJSON: iconAtlasJSON,
|
|
29752
|
+
iconAtlasIMG: iconAtlasIMG
|
|
29753
|
+
}))), isCompleted && !isClaimed && React__default.createElement(TaskFooter, {
|
|
29754
|
+
isMobile: isMobile
|
|
29755
|
+
}, React__default.createElement(Button, {
|
|
29712
29756
|
buttonType: exports.ButtonTypes.RPGUIButton,
|
|
29713
29757
|
onPointerDown: handleClaimReward
|
|
29714
|
-
},
|
|
29758
|
+
}, isMobile ? 'Collect Reward' : 'Collect Reward')));
|
|
29715
29759
|
};
|
|
29760
|
+
var pulseAnimation = /*#__PURE__*/styled.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);}"]);
|
|
29716
29761
|
var TaskContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
29717
29762
|
displayName: "DailyTaskItem__TaskContainer",
|
|
29718
29763
|
componentId: "sc-45bxmt-0"
|
|
29719
|
-
})(["background:
|
|
29764
|
+
})(["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) {
|
|
29765
|
+
return props.isChallenge ? 'rgb(209, 39, 42)' : props.isPinned ? 'rgba(255, 215, 0, 0.1)' : 'rgba(0, 0, 0, 0.6)';
|
|
29766
|
+
}, uiColors.darkGray, function (props) {
|
|
29767
|
+
return props.isMobile ? '4px' : '6px';
|
|
29768
|
+
}, function (props) {
|
|
29769
|
+
return props.isMobile ? '10px' : '14px';
|
|
29770
|
+
}, function (props) {
|
|
29771
|
+
return props.isMobile ? '8px' : '12px';
|
|
29772
|
+
}, function (props) {
|
|
29773
|
+
return props.isNotStarted && "\n filter: grayscale(0.7);\n ";
|
|
29774
|
+
}, function (props) {
|
|
29775
|
+
return props.isInProgress && styled.css(["animation:", " 2s ease-in-out infinite;"], pulseAnimation);
|
|
29776
|
+
}, function (props) {
|
|
29777
|
+
return props.isPinned ? 'rgba(255, 215, 0, 0.25)' : 'rgba(0, 0, 0, 0.7)';
|
|
29778
|
+
}, uiColors.yellow);
|
|
29720
29779
|
var TaskHeader = /*#__PURE__*/styled__default.div.withConfig({
|
|
29721
29780
|
displayName: "DailyTaskItem__TaskHeader",
|
|
29722
29781
|
componentId: "sc-45bxmt-1"
|
|
29723
|
-
})(["display:flex;width:100%;justify-content:
|
|
29724
|
-
|
|
29725
|
-
|
|
29782
|
+
})(["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) {
|
|
29783
|
+
return props.isMobile ? '8px' : '10px';
|
|
29784
|
+
});
|
|
29785
|
+
var TaskHeaderLeft = /*#__PURE__*/styled__default.div.withConfig({
|
|
29786
|
+
displayName: "DailyTaskItem__TaskHeaderLeft",
|
|
29726
29787
|
componentId: "sc-45bxmt-2"
|
|
29727
|
-
})(["
|
|
29728
|
-
var
|
|
29729
|
-
displayName: "
|
|
29788
|
+
})(["display:flex;align-items:flex-start;gap:8px;flex:1;"]);
|
|
29789
|
+
var TaskHeaderRight = /*#__PURE__*/styled__default.div.withConfig({
|
|
29790
|
+
displayName: "DailyTaskItem__TaskHeaderRight",
|
|
29730
29791
|
componentId: "sc-45bxmt-3"
|
|
29731
|
-
})(["display:flex;
|
|
29732
|
-
var
|
|
29733
|
-
displayName: "
|
|
29792
|
+
})(["display:flex;align-items:center;flex-shrink:0;"]);
|
|
29793
|
+
var TaskTitleSection = /*#__PURE__*/styled__default.div.withConfig({
|
|
29794
|
+
displayName: "DailyTaskItem__TaskTitleSection",
|
|
29734
29795
|
componentId: "sc-45bxmt-4"
|
|
29735
|
-
})(["
|
|
29736
|
-
var
|
|
29737
|
-
displayName: "
|
|
29796
|
+
})(["display:flex;flex-direction:column;gap:4px;flex:1;min-width:0;"]);
|
|
29797
|
+
var TaskMeta = /*#__PURE__*/styled__default.div.withConfig({
|
|
29798
|
+
displayName: "DailyTaskItem__TaskMeta",
|
|
29738
29799
|
componentId: "sc-45bxmt-5"
|
|
29739
|
-
})(["
|
|
29740
|
-
|
|
29741
|
-
|
|
29800
|
+
})(["display:flex;align-items:center;gap:", ";flex-wrap:wrap;"], function (props) {
|
|
29801
|
+
return props.isMobile ? '6px' : '8px';
|
|
29802
|
+
});
|
|
29803
|
+
var MetaItem = /*#__PURE__*/styled__default.div.withConfig({
|
|
29804
|
+
displayName: "DailyTaskItem__MetaItem",
|
|
29742
29805
|
componentId: "sc-45bxmt-6"
|
|
29743
|
-
})(["
|
|
29744
|
-
var
|
|
29745
|
-
displayName: "
|
|
29806
|
+
})(["display:flex;align-items:center;gap:4px;"]);
|
|
29807
|
+
var MetaLabel = /*#__PURE__*/styled__default.span.withConfig({
|
|
29808
|
+
displayName: "DailyTaskItem__MetaLabel",
|
|
29746
29809
|
componentId: "sc-45bxmt-7"
|
|
29747
|
-
})(["
|
|
29810
|
+
})(["color:", ";font-size:0.65rem;opacity:0.8;"], uiColors.lightGray);
|
|
29811
|
+
var MetaDivider = /*#__PURE__*/styled__default.span.withConfig({
|
|
29812
|
+
displayName: "DailyTaskItem__MetaDivider",
|
|
29813
|
+
componentId: "sc-45bxmt-8"
|
|
29814
|
+
})(["color:", ";font-size:0.7rem;"], uiColors.darkGray);
|
|
29815
|
+
var TaskDifficulty = /*#__PURE__*/styled__default.span.withConfig({
|
|
29816
|
+
displayName: "DailyTaskItem__TaskDifficulty",
|
|
29817
|
+
componentId: "sc-45bxmt-9"
|
|
29818
|
+
})(["color:", ";font-size:0.65rem;font-weight:500;"], function (props) {
|
|
29819
|
+
return props.difficulty.toLowerCase() === 'challenge' ? uiColors.red : uiColors.lightGray;
|
|
29820
|
+
});
|
|
29821
|
+
var StatusText = /*#__PURE__*/styled__default.span.withConfig({
|
|
29822
|
+
displayName: "DailyTaskItem__StatusText",
|
|
29823
|
+
componentId: "sc-45bxmt-10"
|
|
29824
|
+
})(["color:", " !important;font-size:0.65rem;font-weight:500;"], function (props) {
|
|
29825
|
+
return props.color;
|
|
29826
|
+
});
|
|
29827
|
+
var ClaimedBadge = /*#__PURE__*/styled__default.div.withConfig({
|
|
29828
|
+
displayName: "DailyTaskItem__ClaimedBadge",
|
|
29829
|
+
componentId: "sc-45bxmt-11"
|
|
29830
|
+
})(["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) {
|
|
29831
|
+
return props.isMobile ? '18px' : '20px';
|
|
29832
|
+
}, function (props) {
|
|
29833
|
+
return props.isMobile ? '18px' : '20px';
|
|
29834
|
+
}, function (props) {
|
|
29835
|
+
return props.isMobile ? '10px' : '12px';
|
|
29836
|
+
});
|
|
29837
|
+
var TaskBody = /*#__PURE__*/styled__default.div.withConfig({
|
|
29838
|
+
displayName: "DailyTaskItem__TaskBody",
|
|
29839
|
+
componentId: "sc-45bxmt-12"
|
|
29840
|
+
})(["display:flex;flex-direction:column;gap:8px;padding:", ";"], function (props) {
|
|
29841
|
+
return props.isMobile ? '4px 0' : '6px 0';
|
|
29842
|
+
});
|
|
29843
|
+
var RewardsSection = /*#__PURE__*/styled__default.div.withConfig({
|
|
29844
|
+
displayName: "DailyTaskItem__RewardsSection",
|
|
29845
|
+
componentId: "sc-45bxmt-13"
|
|
29846
|
+
})(["margin-top:4px;"]);
|
|
29847
|
+
var TaskFooter = /*#__PURE__*/styled__default.div.withConfig({
|
|
29848
|
+
displayName: "DailyTaskItem__TaskFooter",
|
|
29849
|
+
componentId: "sc-45bxmt-14"
|
|
29850
|
+
})(["display:flex;justify-content:center;padding-top:", ";border-top:1px solid ", ";"], function (props) {
|
|
29851
|
+
return props.isMobile ? '8px' : '10px';
|
|
29852
|
+
}, uiColors.darkGray);
|
|
29853
|
+
var IconWrapper = /*#__PURE__*/styled__default.div.withConfig({
|
|
29854
|
+
displayName: "DailyTaskItem__IconWrapper",
|
|
29855
|
+
componentId: "sc-45bxmt-15"
|
|
29856
|
+
})(["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;}"]);
|
|
29857
|
+
var TaskTitle = /*#__PURE__*/styled__default.h3.withConfig({
|
|
29858
|
+
displayName: "DailyTaskItem__TaskTitle",
|
|
29859
|
+
componentId: "sc-45bxmt-16"
|
|
29860
|
+
})(["&&{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) {
|
|
29861
|
+
return props.isMobile ? '0.85rem' : '0.9rem';
|
|
29862
|
+
});
|
|
29863
|
+
var TaskDescription = /*#__PURE__*/styled__default.div.withConfig({
|
|
29864
|
+
displayName: "DailyTaskItem__TaskDescription",
|
|
29865
|
+
componentId: "sc-45bxmt-17"
|
|
29866
|
+
})(["color:", ";font-size:", ";line-height:1.4;margin:0;opacity:0.9;word-wrap:break-word;overflow-wrap:break-word;"], uiColors.lightGray, function (props) {
|
|
29867
|
+
return props.isMobile ? '0.7rem' : '0.75rem';
|
|
29868
|
+
});
|
|
29748
29869
|
|
|
29749
29870
|
var GlobalDailyProgress = function GlobalDailyProgress(_ref) {
|
|
29750
29871
|
var tasks = _ref.tasks,
|
|
29751
29872
|
onClaimAllRewards = _ref.onClaimAllRewards,
|
|
29752
29873
|
globalRewardClaimed = _ref.globalRewardClaimed;
|
|
29874
|
+
var isMobile = shared.isMobileOrTablet();
|
|
29753
29875
|
var totalTasks = tasks.length;
|
|
29754
29876
|
var completedTasks = tasks.filter(function (task) {
|
|
29755
29877
|
return task.status === shared.TaskStatus.Completed;
|
|
@@ -29773,47 +29895,65 @@ var GlobalDailyProgress = function GlobalDailyProgress(_ref) {
|
|
|
29773
29895
|
tasks: taskIdentifiers
|
|
29774
29896
|
});
|
|
29775
29897
|
};
|
|
29776
|
-
return React__default.createElement(GlobalProgressContainer,
|
|
29898
|
+
return React__default.createElement(GlobalProgressContainer, {
|
|
29899
|
+
isMobile: isMobile
|
|
29900
|
+
}, React__default.createElement(HeaderContainer$1, null, React__default.createElement(GlobeIcon, null, "\uD83C\uDF0D"), React__default.createElement(ProgressText, {
|
|
29901
|
+
isMobile: isMobile
|
|
29902
|
+
}, isMobile ? completedTasks + "/" + totalTasks + " Complete" : "Global Tasks: " + completedTasks + "/" + totalTasks)), React__default.createElement(ProgressBar, null, React__default.createElement(ProgressFill, {
|
|
29777
29903
|
percentage: completedTasks / totalTasks * 100
|
|
29778
|
-
})), allCompleted && React__default.createElement(React__default.Fragment, null, shouldShowGlobalButton && React__default.createElement(CollectWrapper
|
|
29904
|
+
})), allCompleted && React__default.createElement(React__default.Fragment, null, shouldShowGlobalButton && React__default.createElement(CollectWrapper, null, React__default.createElement(Button, {
|
|
29779
29905
|
buttonType: exports.ButtonTypes.RPGUIButton,
|
|
29780
29906
|
onPointerDown: handleClaimAll
|
|
29781
|
-
},
|
|
29907
|
+
}, isMobile ? 'Global Rewards' : 'Collect Global Rewards')), shouldShowClaimedMessage && React__default.createElement(ClaimedText, {
|
|
29908
|
+
isMobile: isMobile
|
|
29909
|
+
}, "\u2713 Global Rewards Claimed")));
|
|
29782
29910
|
};
|
|
29783
29911
|
var GlobalProgressContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
29784
29912
|
displayName: "GlobalDailyProgress__GlobalProgressContainer",
|
|
29785
29913
|
componentId: "sc-d7q4xm-0"
|
|
29786
|
-
})(["background:rgba(0,0,0,0.
|
|
29914
|
+
})(["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) {
|
|
29915
|
+
return props.isMobile ? '4px' : '6px';
|
|
29916
|
+
}, function (props) {
|
|
29917
|
+
return props.isMobile ? '6px' : '8px';
|
|
29918
|
+
}, function (props) {
|
|
29919
|
+
return props.isMobile ? '6px' : '8px';
|
|
29920
|
+
}, function (props) {
|
|
29921
|
+
return props.isMobile ? '4px' : '6px';
|
|
29922
|
+
});
|
|
29787
29923
|
var HeaderContainer$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
29788
29924
|
displayName: "GlobalDailyProgress__HeaderContainer",
|
|
29789
29925
|
componentId: "sc-d7q4xm-1"
|
|
29790
|
-
})(["display:flex;align-items:center;gap:
|
|
29926
|
+
})(["display:flex;align-items:center;gap:6px;margin-bottom:2px;"]);
|
|
29791
29927
|
var GlobeIcon = /*#__PURE__*/styled__default.span.withConfig({
|
|
29792
29928
|
displayName: "GlobalDailyProgress__GlobeIcon",
|
|
29793
29929
|
componentId: "sc-d7q4xm-2"
|
|
29794
|
-
})(["font-size:
|
|
29930
|
+
})(["font-size:1rem !important;line-height:1;color:", ";display:flex;align-items:center;justify-content:center;"], uiColors.blue);
|
|
29795
29931
|
var ProgressText = /*#__PURE__*/styled__default.div.withConfig({
|
|
29796
29932
|
displayName: "GlobalDailyProgress__ProgressText",
|
|
29797
29933
|
componentId: "sc-d7q4xm-3"
|
|
29798
|
-
})(["color:", ";
|
|
29934
|
+
})(["color:", ";font-size:", ";font-weight:500;flex:1;line-height:1.2;"], uiColors.white, function (props) {
|
|
29935
|
+
return props.isMobile ? '0.75rem' : '0.8rem';
|
|
29936
|
+
});
|
|
29799
29937
|
var ProgressBar = /*#__PURE__*/styled__default.div.withConfig({
|
|
29800
29938
|
displayName: "GlobalDailyProgress__ProgressBar",
|
|
29801
29939
|
componentId: "sc-d7q4xm-4"
|
|
29802
|
-
})(["width:100%;height:
|
|
29940
|
+
})(["width:100%;height:4px;background:", ";border-radius:2px;overflow:hidden;"], uiColors.darkGray);
|
|
29803
29941
|
var ProgressFill = /*#__PURE__*/styled__default.div.withConfig({
|
|
29804
29942
|
displayName: "GlobalDailyProgress__ProgressFill",
|
|
29805
29943
|
componentId: "sc-d7q4xm-5"
|
|
29806
29944
|
})(["width:", "%;height:100%;background:", ";transition:width 0.3s ease;"], function (props) {
|
|
29807
29945
|
return props.percentage;
|
|
29808
29946
|
}, uiColors.green);
|
|
29809
|
-
var ClaimedText
|
|
29947
|
+
var ClaimedText = /*#__PURE__*/styled__default.span.withConfig({
|
|
29810
29948
|
displayName: "GlobalDailyProgress__ClaimedText",
|
|
29811
29949
|
componentId: "sc-d7q4xm-6"
|
|
29812
|
-
})(["color:", ";font-size:
|
|
29813
|
-
|
|
29950
|
+
})(["color:", ";font-size:", ";text-align:center;font-weight:bold;display:flex;align-items:center;justify-content:center;gap:4px;"], uiColors.green, function (props) {
|
|
29951
|
+
return props.isMobile ? '0.8rem' : '0.9rem';
|
|
29952
|
+
});
|
|
29953
|
+
var CollectWrapper = /*#__PURE__*/styled__default.div.withConfig({
|
|
29814
29954
|
displayName: "GlobalDailyProgress__CollectWrapper",
|
|
29815
29955
|
componentId: "sc-d7q4xm-7"
|
|
29816
|
-
})(["&&{width:100% !important;display:flex !important;justify-content:center !important;align-items:center !important;margin:
|
|
29956
|
+
})(["&&{width:100% !important;display:flex !important;justify-content:center !important;align-items:center !important;margin:4px 0 !important;}"]);
|
|
29817
29957
|
|
|
29818
29958
|
var DailyTasks = function DailyTasks(_ref) {
|
|
29819
29959
|
var tasks = _ref.tasks,
|
|
@@ -29830,13 +29970,23 @@ var DailyTasks = function DailyTasks(_ref) {
|
|
|
29830
29970
|
globalRewardClaimed = _ref$globalRewardClai === void 0 ? false : _ref$globalRewardClai;
|
|
29831
29971
|
var _React$useState = React__default.useState(tasks),
|
|
29832
29972
|
localTasks = _React$useState[0];
|
|
29833
|
-
var
|
|
29973
|
+
var isMobile = shared.isMobileOrTablet();
|
|
29834
29974
|
var _useState = React.useState([]),
|
|
29835
29975
|
claimedTasks = _useState[0],
|
|
29836
29976
|
setClaimedTasks = _useState[1];
|
|
29837
29977
|
var _useState2 = React.useState(false),
|
|
29838
29978
|
globalRewardClaimedLocal = _useState2[0],
|
|
29839
29979
|
setGlobalRewardClaimedLocal = _useState2[1];
|
|
29980
|
+
// Search and filter state
|
|
29981
|
+
var _useState3 = React.useState(''),
|
|
29982
|
+
searchQuery = _useState3[0],
|
|
29983
|
+
setSearchQuery = _useState3[1];
|
|
29984
|
+
var _useState4 = React.useState('all'),
|
|
29985
|
+
selectedStatus = _useState4[0],
|
|
29986
|
+
setSelectedStatus = _useState4[1];
|
|
29987
|
+
var _useLocalStorage = useLocalStorage('dailyTasks.pinned', []),
|
|
29988
|
+
pinnedTasks = _useLocalStorage[0],
|
|
29989
|
+
setPinnedTasks = _useLocalStorage[1];
|
|
29840
29990
|
var handleClaimReward = function handleClaimReward(taskKey, taskType) {
|
|
29841
29991
|
onClaimReward({
|
|
29842
29992
|
taskKey: taskKey,
|
|
@@ -29853,23 +30003,83 @@ var DailyTasks = function DailyTasks(_ref) {
|
|
|
29853
30003
|
var isTaskRewardClaimed = function isTaskRewardClaimed(taskKey) {
|
|
29854
30004
|
return claimedTasks.includes(taskKey);
|
|
29855
30005
|
};
|
|
29856
|
-
|
|
30006
|
+
var togglePinTask = function togglePinTask(taskKey) {
|
|
30007
|
+
setPinnedTasks(function (prev) {
|
|
30008
|
+
return prev.includes(taskKey) ? prev.filter(function (key) {
|
|
30009
|
+
return key !== taskKey;
|
|
30010
|
+
}) : [].concat(prev, [taskKey]);
|
|
30011
|
+
});
|
|
30012
|
+
};
|
|
30013
|
+
// Filter options using Store pattern
|
|
30014
|
+
var statusOptions = [{
|
|
30015
|
+
id: 0,
|
|
30016
|
+
value: 'all',
|
|
30017
|
+
option: 'All'
|
|
30018
|
+
}, {
|
|
30019
|
+
id: 1,
|
|
30020
|
+
value: 'pinned',
|
|
30021
|
+
option: 'Pinned'
|
|
30022
|
+
}, {
|
|
30023
|
+
id: 2,
|
|
30024
|
+
value: 'completed',
|
|
30025
|
+
option: 'Completed'
|
|
30026
|
+
}, {
|
|
30027
|
+
id: 3,
|
|
30028
|
+
value: 'inprogress',
|
|
30029
|
+
option: 'In Progress'
|
|
30030
|
+
}, {
|
|
30031
|
+
id: 4,
|
|
30032
|
+
value: 'notstarted',
|
|
30033
|
+
option: 'Not Started'
|
|
30034
|
+
}];
|
|
30035
|
+
// Filtered tasks using InformationCenter pattern
|
|
30036
|
+
var filteredTasks = React.useMemo(function () {
|
|
30037
|
+
var filtered = localTasks.filter(function (task) {
|
|
30038
|
+
var _task$name, _task$description;
|
|
30039
|
+
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());
|
|
30040
|
+
var matchesStatus = selectedStatus === 'all' || selectedStatus === 'pinned' && pinnedTasks.includes(task.key) || selectedStatus === 'completed' && task.status === shared.TaskStatus.Completed || selectedStatus === 'inprogress' && task.status === shared.TaskStatus.InProgress || selectedStatus === 'notstarted' && task.status === shared.TaskStatus.NotStarted;
|
|
30041
|
+
return matchesSearch && matchesStatus;
|
|
30042
|
+
});
|
|
30043
|
+
// Sort with pinned tasks first
|
|
30044
|
+
return filtered.sort(function (a, b) {
|
|
30045
|
+
var aIsPinned = pinnedTasks.includes(a.key);
|
|
30046
|
+
var bIsPinned = pinnedTasks.includes(b.key);
|
|
30047
|
+
if (aIsPinned && !bIsPinned) return -1;
|
|
30048
|
+
if (!aIsPinned && bIsPinned) return 1;
|
|
30049
|
+
return 0;
|
|
30050
|
+
});
|
|
30051
|
+
}, [localTasks, searchQuery, selectedStatus, pinnedTasks]);
|
|
29857
30052
|
return React__default.createElement(TasksContainer, {
|
|
29858
30053
|
type: exports.RPGUIContainerTypes.Framed,
|
|
29859
30054
|
onCloseButton: onClose,
|
|
29860
30055
|
cancelDrag: ".tasks-container",
|
|
29861
30056
|
scale: scale,
|
|
29862
|
-
width:
|
|
29863
|
-
height:
|
|
29864
|
-
|
|
29865
|
-
|
|
29866
|
-
|
|
30057
|
+
width: isMobile ? '100vw' : 'max(50vw, 900px)',
|
|
30058
|
+
height: isMobile ? '100vh' : 'min(85vh, 800px)',
|
|
30059
|
+
isMobile: isMobile
|
|
30060
|
+
}, React__default.createElement(TaskTitle$1, {
|
|
30061
|
+
isMobile: isMobile
|
|
30062
|
+
}, "Daily Tasks"), React__default.createElement(Container$i, {
|
|
30063
|
+
isMobile: isMobile
|
|
30064
|
+
}, React__default.createElement(GlobalProgressFixed, null, React__default.createElement(GlobalDailyProgress, {
|
|
29867
30065
|
tasks: localTasks,
|
|
29868
30066
|
onClaimAllRewards: handleClaimGlobalRewards,
|
|
29869
30067
|
globalRewardClaimed: globalRewardClaimed || globalRewardClaimedLocal
|
|
29870
|
-
}),
|
|
29871
|
-
|
|
29872
|
-
|
|
30068
|
+
})), React__default.createElement(SearchHeader, null, React__default.createElement(SearchBarContainer, null, React__default.createElement(SearchBar, {
|
|
30069
|
+
value: searchQuery,
|
|
30070
|
+
onChange: setSearchQuery,
|
|
30071
|
+
placeholder: "Search tasks..."
|
|
30072
|
+
})), React__default.createElement(DropdownContainer, null, React__default.createElement(Dropdown, {
|
|
30073
|
+
options: statusOptions,
|
|
30074
|
+
onChange: setSelectedStatus,
|
|
30075
|
+
width: "100%"
|
|
30076
|
+
}))), React__default.createElement(TasksList, {
|
|
30077
|
+
className: "tasks-container",
|
|
30078
|
+
isMobile: isMobile
|
|
30079
|
+
}, filteredTasks.length > 0 ? filteredTasks.map(function (task) {
|
|
30080
|
+
return React__default.createElement(TaskWrapper, {
|
|
30081
|
+
key: task.key
|
|
30082
|
+
}, React__default.createElement(DailyTaskItem, {
|
|
29873
30083
|
task: task,
|
|
29874
30084
|
spriteKey: getTaskIcon(task.type, task.difficulty),
|
|
29875
30085
|
onClaimReward: handleClaimReward,
|
|
@@ -29877,26 +30087,86 @@ var DailyTasks = function DailyTasks(_ref) {
|
|
|
29877
30087
|
itemsAtlasIMG: itemsAtlasIMG,
|
|
29878
30088
|
iconAtlasJSON: iconAtlasJSON,
|
|
29879
30089
|
iconAtlasIMG: iconAtlasIMG,
|
|
29880
|
-
isRewardClaimed: task.claimed || isTaskRewardClaimed(task.key)
|
|
29881
|
-
|
|
29882
|
-
|
|
30090
|
+
isRewardClaimed: task.claimed || isTaskRewardClaimed(task.key),
|
|
30091
|
+
isPinned: pinnedTasks.includes(task.key)
|
|
30092
|
+
}), React__default.createElement(PinButton$1, {
|
|
30093
|
+
onClick: function onClick() {
|
|
30094
|
+
return togglePinTask(task.key);
|
|
30095
|
+
},
|
|
30096
|
+
isPinned: pinnedTasks.includes(task.key)
|
|
30097
|
+
}, React__default.createElement(fa.FaThumbtack, {
|
|
30098
|
+
size: 10
|
|
30099
|
+
})));
|
|
30100
|
+
}) : React__default.createElement(EmptyState$1, null, React__default.createElement(fa.FaClipboardList, {
|
|
30101
|
+
size: 48
|
|
30102
|
+
}), React__default.createElement("p", null, searchQuery || selectedStatus !== 'all' ? 'No tasks match your criteria.' : 'No daily tasks available.')))));
|
|
29883
30103
|
};
|
|
29884
30104
|
var TasksContainer = /*#__PURE__*/styled__default(DraggableContainer).withConfig({
|
|
29885
30105
|
displayName: "DailyTasks__TasksContainer",
|
|
29886
30106
|
componentId: "sc-ittn77-0"
|
|
29887
|
-
})(["
|
|
29888
|
-
|
|
30107
|
+
})(["", " .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) {
|
|
30108
|
+
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 ";
|
|
30109
|
+
}, function (props) {
|
|
30110
|
+
return props.isMobile ? 'padding: 8px 0;' : '';
|
|
30111
|
+
}, function (props) {
|
|
30112
|
+
return props.isMobile ? "\n border-radius: 0 !important;\n height: 100vh !important;\n width: 100vw !important;\n " : '';
|
|
30113
|
+
});
|
|
30114
|
+
var Container$i = /*#__PURE__*/styled__default.div.withConfig({
|
|
29889
30115
|
displayName: "DailyTasks__Container",
|
|
29890
30116
|
componentId: "sc-ittn77-1"
|
|
29891
|
-
})(["width:100%;
|
|
30117
|
+
})(["width:100%;height:100%;margin:0;padding:0;overflow:hidden;box-sizing:border-box;background-color:transparent;display:flex;flex-direction:column;"]);
|
|
29892
30118
|
var TasksList = /*#__PURE__*/styled__default.div.withConfig({
|
|
29893
30119
|
displayName: "DailyTasks__TasksList",
|
|
29894
30120
|
componentId: "sc-ittn77-2"
|
|
29895
|
-
})(["display:flex;flex-direction:column;gap:
|
|
30121
|
+
})(["display:flex;flex-direction:column;gap:", ";padding:", ";overflow-y:auto;flex:1;background-color:transparent;", ""], function (props) {
|
|
30122
|
+
return props.isMobile ? '8px' : '12px';
|
|
30123
|
+
}, function (props) {
|
|
30124
|
+
return props.isMobile ? '8px' : '12px';
|
|
30125
|
+
}, function (props) {
|
|
30126
|
+
return props.isMobile ? "\n -webkit-overflow-scrolling: touch;\n scrollbar-width: thin;\n " : '';
|
|
30127
|
+
});
|
|
30128
|
+
var GlobalProgressFixed = /*#__PURE__*/styled__default.div.withConfig({
|
|
30129
|
+
displayName: "DailyTasks__GlobalProgressFixed",
|
|
30130
|
+
componentId: "sc-ittn77-3"
|
|
30131
|
+
})(["flex-shrink:0;padding:12px;background-color:transparent;"]);
|
|
30132
|
+
var SearchHeader = /*#__PURE__*/styled__default.div.withConfig({
|
|
30133
|
+
displayName: "DailyTasks__SearchHeader",
|
|
30134
|
+
componentId: "sc-ittn77-4"
|
|
30135
|
+
})(["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);
|
|
30136
|
+
var SearchBarContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
30137
|
+
displayName: "DailyTasks__SearchBarContainer",
|
|
30138
|
+
componentId: "sc-ittn77-5"
|
|
30139
|
+
})(["flex:3;"]);
|
|
30140
|
+
var DropdownContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
30141
|
+
displayName: "DailyTasks__DropdownContainer",
|
|
30142
|
+
componentId: "sc-ittn77-6"
|
|
30143
|
+
})(["flex:1;min-width:120px;"]);
|
|
30144
|
+
var TaskWrapper = /*#__PURE__*/styled__default.div.withConfig({
|
|
30145
|
+
displayName: "DailyTasks__TaskWrapper",
|
|
30146
|
+
componentId: "sc-ittn77-7"
|
|
30147
|
+
})(["position:relative;width:100%;"]);
|
|
30148
|
+
var PinButton$1 = /*#__PURE__*/styled__default.button.withConfig({
|
|
30149
|
+
displayName: "DailyTasks__PinButton",
|
|
30150
|
+
componentId: "sc-ittn77-8"
|
|
30151
|
+
})(["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) {
|
|
30152
|
+
return props.isPinned ? uiColors.yellow : uiColors.lightGray;
|
|
30153
|
+
}, function (props) {
|
|
30154
|
+
return props.isPinned ? uiColors.yellow : 'transparent';
|
|
30155
|
+
}, uiColors.yellow, uiColors.yellow, function (props) {
|
|
30156
|
+
return props.isPinned && "\n transform: rotate(45deg);\n ";
|
|
30157
|
+
});
|
|
30158
|
+
var EmptyState$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
30159
|
+
displayName: "DailyTasks__EmptyState",
|
|
30160
|
+
componentId: "sc-ittn77-9"
|
|
30161
|
+
})(["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);
|
|
29896
30162
|
var TaskTitle$1 = /*#__PURE__*/styled__default.h2.withConfig({
|
|
29897
30163
|
displayName: "DailyTasks__TaskTitle",
|
|
29898
|
-
componentId: "sc-ittn77-
|
|
29899
|
-
})(["color:", " !important;text-align:center;padding-right:30px !important;font-size:
|
|
30164
|
+
componentId: "sc-ittn77-10"
|
|
30165
|
+
})(["color:", " !important;text-align:center;padding-right:30px !important;font-size:", " !important;width:100%;margin:", " !important;font-weight:600;"], uiColors.yellow, function (props) {
|
|
30166
|
+
return props.isMobile ? '1rem' : '1.2rem';
|
|
30167
|
+
}, function (props) {
|
|
30168
|
+
return props.isMobile ? '4px 0' : '8px 0';
|
|
30169
|
+
});
|
|
29900
30170
|
|
|
29901
30171
|
// Memoize the styled components since they don't depend on props that change frequently
|
|
29902
30172
|
var DPadButton = /*#__PURE__*/React.memo( /*#__PURE__*/styled__default.div.withConfig({
|
|
@@ -30257,7 +30527,7 @@ var DraggedItem = function DraggedItem(_ref) {
|
|
|
30257
30527
|
var centeredX = x - OFFSET$1;
|
|
30258
30528
|
var centeredY = y - OFFSET$1;
|
|
30259
30529
|
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);
|
|
30260
|
-
return React__default.createElement(Container$
|
|
30530
|
+
return React__default.createElement(Container$j, null, React__default.createElement(SpriteContainer, {
|
|
30261
30531
|
x: centeredX,
|
|
30262
30532
|
y: centeredY
|
|
30263
30533
|
}, React__default.createElement(SpriteFromAtlas, {
|
|
@@ -30275,7 +30545,7 @@ var DraggedItem = function DraggedItem(_ref) {
|
|
|
30275
30545
|
}), stackInfo));
|
|
30276
30546
|
};
|
|
30277
30547
|
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";
|
|
30278
|
-
var Container$
|
|
30548
|
+
var Container$j = /*#__PURE__*/styled__default.div.withConfig({
|
|
30279
30549
|
displayName: "DraggedItem__Container",
|
|
30280
30550
|
componentId: "sc-mlzzcp-0"
|
|
30281
30551
|
})(["position:relative;"]);
|
|
@@ -30313,7 +30583,7 @@ var RelativeListMenu = function RelativeListMenu(_ref) {
|
|
|
30313
30583
|
document.removeEventListener('clickOutside', function (_e) {});
|
|
30314
30584
|
};
|
|
30315
30585
|
}, []);
|
|
30316
|
-
return React__default.createElement(ModalPortal, null, React__default.createElement(Container$
|
|
30586
|
+
return React__default.createElement(ModalPortal, null, React__default.createElement(Container$k, Object.assign({
|
|
30317
30587
|
fontSize: fontSize,
|
|
30318
30588
|
ref: ref
|
|
30319
30589
|
}, pos), React__default.createElement("ul", {
|
|
@@ -30330,7 +30600,7 @@ var RelativeListMenu = function RelativeListMenu(_ref) {
|
|
|
30330
30600
|
}, (params == null ? void 0 : params.text) || 'No text');
|
|
30331
30601
|
}))));
|
|
30332
30602
|
};
|
|
30333
|
-
var Container$
|
|
30603
|
+
var Container$k = /*#__PURE__*/styled__default.div.withConfig({
|
|
30334
30604
|
displayName: "RelativeListMenu__Container",
|
|
30335
30605
|
componentId: "sc-7hohf-0"
|
|
30336
30606
|
})(["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) {
|
|
@@ -30604,7 +30874,7 @@ var SearchFriend = function SearchFriend(_ref) {
|
|
|
30604
30874
|
title: "Requests (" + friendRequests.length + ")",
|
|
30605
30875
|
content: requestsTabContent
|
|
30606
30876
|
}];
|
|
30607
|
-
return React__default.createElement(Container$
|
|
30877
|
+
return React__default.createElement(Container$l, null, React__default.createElement(InternalTabs, {
|
|
30608
30878
|
tabs: tabs,
|
|
30609
30879
|
activeTextColor: "#000",
|
|
30610
30880
|
inactiveColor: "#777",
|
|
@@ -30646,7 +30916,7 @@ var FriendRequestSection = function FriendRequestSection(_ref3) {
|
|
|
30646
30916
|
}, "Reject")));
|
|
30647
30917
|
})));
|
|
30648
30918
|
};
|
|
30649
|
-
var Container$
|
|
30919
|
+
var Container$l = /*#__PURE__*/styled__default.div.withConfig({
|
|
30650
30920
|
displayName: "SearchFriend__Container",
|
|
30651
30921
|
componentId: "sc-1lt1ols-0"
|
|
30652
30922
|
})(["display:flex;flex-direction:column;gap:1rem;"]);
|
|
@@ -30849,7 +31119,7 @@ var NPCDialogText = function NPCDialogText(_ref) {
|
|
|
30849
31119
|
var _useState2 = React.useState(false),
|
|
30850
31120
|
showGoNextIndicator = _useState2[0],
|
|
30851
31121
|
setShowGoNextIndicator = _useState2[1];
|
|
30852
|
-
return React__default.createElement(Container$
|
|
31122
|
+
return React__default.createElement(Container$m, null, React__default.createElement(DynamicText, {
|
|
30853
31123
|
text: (textChunks == null ? void 0 : textChunks[chunkIndex]) || '',
|
|
30854
31124
|
onFinish: function onFinish() {
|
|
30855
31125
|
setShowGoNextIndicator(true);
|
|
@@ -30867,7 +31137,7 @@ var NPCDialogText = function NPCDialogText(_ref) {
|
|
|
30867
31137
|
}
|
|
30868
31138
|
}));
|
|
30869
31139
|
};
|
|
30870
|
-
var Container$
|
|
31140
|
+
var Container$m = /*#__PURE__*/styled__default.div.withConfig({
|
|
30871
31141
|
displayName: "NPCDialogText__Container",
|
|
30872
31142
|
componentId: "sc-1cxkdh9-0"
|
|
30873
31143
|
})([""]);
|
|
@@ -31019,7 +31289,7 @@ var QuestionDialog = function QuestionDialog(_ref) {
|
|
|
31019
31289
|
return null;
|
|
31020
31290
|
});
|
|
31021
31291
|
};
|
|
31022
|
-
return React__default.createElement(Container$
|
|
31292
|
+
return React__default.createElement(Container$n, null, React__default.createElement(QuestionContainer, null, React__default.createElement(DynamicText, {
|
|
31023
31293
|
text: currentQuestion.text,
|
|
31024
31294
|
onStart: function onStart() {
|
|
31025
31295
|
return setCanShowAnswers(false);
|
|
@@ -31029,7 +31299,7 @@ var QuestionDialog = function QuestionDialog(_ref) {
|
|
|
31029
31299
|
}
|
|
31030
31300
|
})), canShowAnswers && React__default.createElement(AnswersContainer, null, onRenderCurrentAnswers()));
|
|
31031
31301
|
};
|
|
31032
|
-
var Container$
|
|
31302
|
+
var Container$n = /*#__PURE__*/styled__default.div.withConfig({
|
|
31033
31303
|
displayName: "QuestionDialog__Container",
|
|
31034
31304
|
componentId: "sc-bxc5u0-0"
|
|
31035
31305
|
})(["display:flex;word-break:break-all;box-sizing:border-box;justify-content:flex-start;align-items:flex-start;flex-wrap:wrap;"]);
|
|
@@ -31089,7 +31359,7 @@ var NPCDialog = function NPCDialog(_ref) {
|
|
|
31089
31359
|
}
|
|
31090
31360
|
})), type === exports.NPCDialogType.TextAndThumbnail && React__default.createElement(ThumbnailContainer, null, React__default.createElement(NPCThumbnail, {
|
|
31091
31361
|
src: imagePath || img$7
|
|
31092
|
-
}))) : React__default.createElement(React__default.Fragment, null, React__default.createElement(Container$
|
|
31362
|
+
}))) : React__default.createElement(React__default.Fragment, null, React__default.createElement(Container$o, null, React__default.createElement(CloseIcon, {
|
|
31093
31363
|
onPointerDown: _onClose
|
|
31094
31364
|
}, "X"), React__default.createElement(TextContainer$1, {
|
|
31095
31365
|
flex: type === exports.NPCDialogType.TextAndThumbnail ? '70%' : '100%'
|
|
@@ -31105,7 +31375,7 @@ var NPCDialog = function NPCDialog(_ref) {
|
|
|
31105
31375
|
src: imagePath || img$7
|
|
31106
31376
|
})))));
|
|
31107
31377
|
};
|
|
31108
|
-
var Container$
|
|
31378
|
+
var Container$o = /*#__PURE__*/styled__default.div.withConfig({
|
|
31109
31379
|
displayName: "NPCDialog__Container",
|
|
31110
31380
|
componentId: "sc-1b4aw74-0"
|
|
31111
31381
|
})(["display:flex;width:100%;height:100%;box-sizing:border-box;justify-content:center;align-items:flex-start;position:relative;"]);
|
|
@@ -31165,7 +31435,7 @@ var NPCMultiDialog = function NPCMultiDialog(_ref) {
|
|
|
31165
31435
|
type: exports.RPGUIContainerTypes.FramedGold,
|
|
31166
31436
|
width: '50%',
|
|
31167
31437
|
height: '180px'
|
|
31168
|
-
}, React__default.createElement(React__default.Fragment, null, React__default.createElement(Container$
|
|
31438
|
+
}, React__default.createElement(React__default.Fragment, null, React__default.createElement(Container$p, null, ((_textAndTypeArray$sli = textAndTypeArray[slide]) == null ? void 0 : _textAndTypeArray$sli.imageSide) === 'right' && React__default.createElement(React__default.Fragment, null, React__default.createElement(TextContainer$2, {
|
|
31169
31439
|
flex: '70%'
|
|
31170
31440
|
}, React__default.createElement(NPCDialogText, {
|
|
31171
31441
|
onStartStep: function onStartStep() {
|
|
@@ -31207,7 +31477,7 @@ var NPCMultiDialog = function NPCMultiDialog(_ref) {
|
|
|
31207
31477
|
src: img$6
|
|
31208
31478
|
}))), ")"));
|
|
31209
31479
|
};
|
|
31210
|
-
var Container$
|
|
31480
|
+
var Container$p = /*#__PURE__*/styled__default.div.withConfig({
|
|
31211
31481
|
displayName: "NPCMultiDialog__Container",
|
|
31212
31482
|
componentId: "sc-rvu5wg-0"
|
|
31213
31483
|
})(["display:flex;width:100%;height:100%;box-sizing:border-box;justify-content:center;align-items:flex-start;position:relative;"]);
|
|
@@ -31639,7 +31909,7 @@ var Pagination = function Pagination(_ref) {
|
|
|
31639
31909
|
totalPages = _ref.totalPages,
|
|
31640
31910
|
onPageChange = _ref.onPageChange,
|
|
31641
31911
|
className = _ref.className;
|
|
31642
|
-
return React__default.createElement(Container$
|
|
31912
|
+
return React__default.createElement(Container$q, {
|
|
31643
31913
|
className: className
|
|
31644
31914
|
}, React__default.createElement(PaginationButton$1, {
|
|
31645
31915
|
onClick: function onClick() {
|
|
@@ -31657,7 +31927,7 @@ var Pagination = function Pagination(_ref) {
|
|
|
31657
31927
|
size: 12
|
|
31658
31928
|
})));
|
|
31659
31929
|
};
|
|
31660
|
-
var Container$
|
|
31930
|
+
var Container$q = /*#__PURE__*/styled__default.div.withConfig({
|
|
31661
31931
|
displayName: "Pagination__Container",
|
|
31662
31932
|
componentId: "sc-3k4m4u-0"
|
|
31663
31933
|
})(["display:flex;align-items:center;justify-content:center;gap:16px;padding:8px;"]);
|
|
@@ -31676,46 +31946,7 @@ var PageInfo$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
31676
31946
|
componentId: "sc-3k4m4u-2"
|
|
31677
31947
|
})(["color:", ";font-size:0.8rem;font-family:'Press Start 2P',cursive;"], uiColors.lightGray);
|
|
31678
31948
|
|
|
31679
|
-
var
|
|
31680
|
-
var value = _ref.value,
|
|
31681
|
-
_onChange = _ref.onChange,
|
|
31682
|
-
placeholder = _ref.placeholder,
|
|
31683
|
-
className = _ref.className,
|
|
31684
|
-
rightElement = _ref.rightElement;
|
|
31685
|
-
var hasRightElement = Boolean(rightElement);
|
|
31686
|
-
return React__default.createElement(Container$q, {
|
|
31687
|
-
className: className
|
|
31688
|
-
}, React__default.createElement(Input$1, {
|
|
31689
|
-
type: "text",
|
|
31690
|
-
value: value,
|
|
31691
|
-
onChange: function onChange(e) {
|
|
31692
|
-
return _onChange(e.target.value);
|
|
31693
|
-
},
|
|
31694
|
-
placeholder: placeholder,
|
|
31695
|
-
className: "rpgui-input",
|
|
31696
|
-
"$hasRightElement": hasRightElement
|
|
31697
|
-
}), React__default.createElement(IconContainer, null, React__default.createElement(SearchIcon, null), rightElement));
|
|
31698
|
-
};
|
|
31699
|
-
var Container$q = /*#__PURE__*/styled__default.div.withConfig({
|
|
31700
|
-
displayName: "SearchBar__Container",
|
|
31701
|
-
componentId: "sc-13n8z02-0"
|
|
31702
|
-
})(["position:relative;width:100%;"]);
|
|
31703
|
-
var Input$1 = /*#__PURE__*/styled__default.input.withConfig({
|
|
31704
|
-
displayName: "SearchBar__Input",
|
|
31705
|
-
componentId: "sc-13n8z02-1"
|
|
31706
|
-
})(["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) {
|
|
31707
|
-
return props.$hasRightElement ? '6rem' : '2.5rem';
|
|
31708
|
-
});
|
|
31709
|
-
var IconContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
31710
|
-
displayName: "SearchBar__IconContainer",
|
|
31711
|
-
componentId: "sc-13n8z02-2"
|
|
31712
|
-
})(["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;}"]);
|
|
31713
|
-
var SearchIcon = /*#__PURE__*/styled__default(fa.FaSearch).withConfig({
|
|
31714
|
-
displayName: "SearchBar__SearchIcon",
|
|
31715
|
-
componentId: "sc-13n8z02-3"
|
|
31716
|
-
})(["font-size:1rem;color:#f59e0b;filter:drop-shadow(0 0 2px rgba(245,158,11,0.3));"]);
|
|
31717
|
-
|
|
31718
|
-
var SearchHeader = function SearchHeader(_ref) {
|
|
31949
|
+
var SearchHeader$1 = function SearchHeader(_ref) {
|
|
31719
31950
|
var searchOptions = _ref.searchOptions,
|
|
31720
31951
|
filterOptions = _ref.filterOptions,
|
|
31721
31952
|
className = _ref.className;
|
|
@@ -31806,7 +32037,7 @@ var PaginatedContent = function PaginatedContent(_ref) {
|
|
|
31806
32037
|
totalPages = _usePagination.totalPages;
|
|
31807
32038
|
return React__default.createElement(Container$r, {
|
|
31808
32039
|
className: className
|
|
31809
|
-
}, (searchOptions || filterOptions) && React__default.createElement(SearchHeader, {
|
|
32040
|
+
}, (searchOptions || filterOptions) && React__default.createElement(SearchHeader$1, {
|
|
31810
32041
|
searchOptions: searchOptions,
|
|
31811
32042
|
filterOptions: filterOptions
|
|
31812
32043
|
}), items.length === 0 ? React__default.createElement(EmptyMessage, null, emptyMessage) : React__default.createElement(React__default.Fragment, null, React__default.createElement(Content, {
|
|
@@ -36590,7 +36821,7 @@ var SocialModal = function SocialModal(_ref) {
|
|
|
36590
36821
|
onClick: handleRedditClick
|
|
36591
36822
|
}, React__default.createElement(fa.FaReddit, null), " Reddit")), React__default.createElement(Divider, {
|
|
36592
36823
|
margin: "8px 0"
|
|
36593
|
-
}), React__default.createElement(DropdownContainer, null, React__default.createElement(Dropdown, {
|
|
36824
|
+
}), React__default.createElement(DropdownContainer$1, null, React__default.createElement(Dropdown, {
|
|
36594
36825
|
options: whatsAppGroups,
|
|
36595
36826
|
onChange: handleLanguageChange,
|
|
36596
36827
|
width: "100%",
|
|
@@ -36623,7 +36854,7 @@ var WhatsAppButton = /*#__PURE__*/styled__default(SocialButton$1).withConfig({
|
|
|
36623
36854
|
displayName: "SocialModal__WhatsAppButton",
|
|
36624
36855
|
componentId: "sc-tbjhp9-5"
|
|
36625
36856
|
})(["width:100%;background-color:#0f1f0f;border:1px solid #1a2f1a;padding:14px;&:hover{background-color:#162716;}margin-top:8px;"]);
|
|
36626
|
-
var DropdownContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
36857
|
+
var DropdownContainer$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
36627
36858
|
displayName: "SocialModal__DropdownContainer",
|
|
36628
36859
|
componentId: "sc-tbjhp9-6"
|
|
36629
36860
|
})(["background-color:rgba(0,0,0,0.2);padding:8px;border-radius:4px;border:1px solid rgba(0,0,0,0.3);"]);
|
|
@@ -57395,7 +57626,7 @@ var CTAButton = function CTAButton(_ref) {
|
|
|
57395
57626
|
"$fullWidth": fullWidth,
|
|
57396
57627
|
"$disabled": disabled,
|
|
57397
57628
|
"$color": textColor
|
|
57398
|
-
}, React__default.createElement(ButtonContent, null, React__default.createElement(IconWrapper, {
|
|
57629
|
+
}, React__default.createElement(ButtonContent, null, React__default.createElement(IconWrapper$1, {
|
|
57399
57630
|
"$color": iconColor,
|
|
57400
57631
|
"$disabled": disabled
|
|
57401
57632
|
}, icon), label && React__default.createElement(ButtonLabel, {
|
|
@@ -57429,7 +57660,7 @@ var ButtonContent = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
57429
57660
|
displayName: "CTAButton__ButtonContent",
|
|
57430
57661
|
componentId: "sc-1azvwn5-1"
|
|
57431
57662
|
})(["display:flex;align-items:center;gap:0.75rem;"]);
|
|
57432
|
-
var IconWrapper = /*#__PURE__*/styled__default.div.withConfig({
|
|
57663
|
+
var IconWrapper$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
57433
57664
|
displayName: "CTAButton__IconWrapper",
|
|
57434
57665
|
componentId: "sc-1azvwn5-2"
|
|
57435
57666
|
})(["svg{font-size:1.25rem;color:", ";filter:drop-shadow(0 0 2px rgba(245,158,11,0.5));opacity:", ";}"], function (props) {
|
|
@@ -58364,11 +58595,11 @@ var StoreItemsSection = function StoreItemsSection(_ref) {
|
|
|
58364
58595
|
userAccountType: userAccountType || shared.UserAccountTypes.Free
|
|
58365
58596
|
});
|
|
58366
58597
|
};
|
|
58367
|
-
return React__default.createElement(StoreContainer, null, React__default.createElement(SearchHeader$
|
|
58598
|
+
return React__default.createElement(StoreContainer, null, React__default.createElement(SearchHeader$2, null, React__default.createElement(SearchBarContainer$1, null, React__default.createElement(SearchBar, {
|
|
58368
58599
|
value: searchQuery,
|
|
58369
58600
|
onChange: setSearchQuery,
|
|
58370
58601
|
placeholder: "Search items..."
|
|
58371
|
-
})), React__default.createElement(DropdownContainer$
|
|
58602
|
+
})), React__default.createElement(DropdownContainer$2, null, React__default.createElement(Dropdown, {
|
|
58372
58603
|
options: categoryOptions,
|
|
58373
58604
|
onChange: function onChange(value) {
|
|
58374
58605
|
return setSelectedCategory(value);
|
|
@@ -58386,15 +58617,15 @@ var StoreContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
58386
58617
|
displayName: "StoreItemsSection__StoreContainer",
|
|
58387
58618
|
componentId: "sc-l6f466-0"
|
|
58388
58619
|
})(["display:flex;flex-direction:column;height:100%;gap:0.5rem;"]);
|
|
58389
|
-
var SearchHeader$
|
|
58620
|
+
var SearchHeader$2 = /*#__PURE__*/styled__default.div.withConfig({
|
|
58390
58621
|
displayName: "StoreItemsSection__SearchHeader",
|
|
58391
58622
|
componentId: "sc-l6f466-1"
|
|
58392
58623
|
})(["display:flex;gap:0.5rem;align-items:center;padding-top:0.25rem;"]);
|
|
58393
|
-
var SearchBarContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
58624
|
+
var SearchBarContainer$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
58394
58625
|
displayName: "StoreItemsSection__SearchBarContainer",
|
|
58395
58626
|
componentId: "sc-l6f466-2"
|
|
58396
58627
|
})(["flex:0.75;"]);
|
|
58397
|
-
var DropdownContainer$
|
|
58628
|
+
var DropdownContainer$2 = /*#__PURE__*/styled__default.div.withConfig({
|
|
58398
58629
|
displayName: "StoreItemsSection__DropdownContainer",
|
|
58399
58630
|
componentId: "sc-l6f466-3"
|
|
58400
58631
|
})(["flex:0.25;min-width:140px;"]);
|