@rpg-engine/long-bow 0.8.52 → 0.8.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/DailyTasks/DailyTasks.d.ts +3 -2
- package/dist/long-bow.cjs.development.js +111 -122
- 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 +112 -123
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/ConfirmModal.tsx +121 -51
- package/src/components/DailyTasks/DailyTasks.tsx +32 -15
- package/src/components/DailyTasks/GlobalDailyProgress.tsx +5 -2
- package/dist/hooks/useDailyTasksState.d.ts +0 -13
- package/src/hooks/useDailyTasksState.ts +0 -40
package/dist/long-bow.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useState, useEffect, Component, useRef, useCallback, useContext, createContext, useMemo, memo, Fragment } from 'react';
|
|
2
|
-
import styled, { css, keyframes } from 'styled-components';
|
|
2
|
+
import styled, { css, keyframes, createGlobalStyle } from 'styled-components';
|
|
3
3
|
import { BeatLoader } from 'react-spinners';
|
|
4
4
|
import { v4 } from 'uuid';
|
|
5
5
|
import { GRID_WIDTH, GRID_HEIGHT, ShortcutType, getItemTextureKeyPath, ItemContainerType, ItemType, DepotSocketEvents, ItemSocketEvents, ItemSocketEventsDisplayLabels, ActionsForInventory, ActionsForEquipmentSet, ActionsForLoot, ActionsForMapContainer, ItemQualityLevel, ItemRarities, ItemSubType, isMobile, TaskType, TaskStatus, RewardType, isMobileOrTablet, ItemSlotType, NPCSubtype, EntityAttackType, NPCAlignment, VideoGuideCategory, VideoGuideLanguage, CharacterClass, QuestStatus, getSPForLevel, getXPForLevel, PeriodOfDay, UserAccountTypes } from '@rpg-engine/shared';
|
|
@@ -29306,40 +29306,6 @@ var EmptyState = /*#__PURE__*/styled.div.withConfig({
|
|
|
29306
29306
|
componentId: "sc-19q95ue-15"
|
|
29307
29307
|
})(["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);
|
|
29308
29308
|
|
|
29309
|
-
function useDailyTasksState(_ref) {
|
|
29310
|
-
var onClaimReward = _ref.onClaimReward,
|
|
29311
|
-
onClaimGlobalReward = _ref.onClaimGlobalReward;
|
|
29312
|
-
var _useState = useState(false),
|
|
29313
|
-
globalRewardClaimed = _useState[0],
|
|
29314
|
-
setGlobalRewardClaimed = _useState[1];
|
|
29315
|
-
var _useState2 = useState([]),
|
|
29316
|
-
claimedTaskKeys = _useState2[0],
|
|
29317
|
-
setClaimedTaskKeys = _useState2[1];
|
|
29318
|
-
var handleClaimReward = function handleClaimReward(taskKey, type) {
|
|
29319
|
-
onClaimReward({
|
|
29320
|
-
type: type,
|
|
29321
|
-
taskKey: taskKey
|
|
29322
|
-
});
|
|
29323
|
-
setClaimedTaskKeys(function (prev) {
|
|
29324
|
-
return [].concat(prev, [taskKey]);
|
|
29325
|
-
});
|
|
29326
|
-
};
|
|
29327
|
-
var handleClaimGlobalRewards = function handleClaimGlobalRewards(tasks) {
|
|
29328
|
-
onClaimGlobalReward(tasks);
|
|
29329
|
-
setGlobalRewardClaimed(true);
|
|
29330
|
-
};
|
|
29331
|
-
var isTaskRewardClaimed = function isTaskRewardClaimed(taskKey) {
|
|
29332
|
-
return claimedTaskKeys.includes(taskKey);
|
|
29333
|
-
};
|
|
29334
|
-
return {
|
|
29335
|
-
globalRewardClaimed: globalRewardClaimed,
|
|
29336
|
-
claimedTaskKeys: claimedTaskKeys,
|
|
29337
|
-
isTaskRewardClaimed: isTaskRewardClaimed,
|
|
29338
|
-
handleClaimReward: handleClaimReward,
|
|
29339
|
-
handleClaimGlobalRewards: handleClaimGlobalRewards
|
|
29340
|
-
};
|
|
29341
|
-
}
|
|
29342
|
-
|
|
29343
29309
|
var formatTaskKey = function formatTaskKey(key) {
|
|
29344
29310
|
var formatted = key.replace(/[-_]/g, ' ');
|
|
29345
29311
|
formatted = formatted.replace(/([A-Z])/g, ' $1');
|
|
@@ -29737,6 +29703,7 @@ var GlobalDailyProgress = function GlobalDailyProgress(_ref) {
|
|
|
29737
29703
|
return task.claimed === true;
|
|
29738
29704
|
});
|
|
29739
29705
|
var shouldShowGlobalButton = allCompleted && allClaimed && !globalRewardClaimed;
|
|
29706
|
+
var shouldShowClaimedMessage = globalRewardClaimed;
|
|
29740
29707
|
var handleClaimAll = function handleClaimAll() {
|
|
29741
29708
|
var taskIdentifiers = tasks.map(function (task) {
|
|
29742
29709
|
return {
|
|
@@ -29750,10 +29717,10 @@ var GlobalDailyProgress = function GlobalDailyProgress(_ref) {
|
|
|
29750
29717
|
};
|
|
29751
29718
|
return React.createElement(GlobalProgressContainer, null, React.createElement(HeaderContainer$1, null, React.createElement(GlobeIcon, null, "\uD83C\uDF0D"), React.createElement(ProgressText, null, "Global Tasks Completed: ", completedTasks, "/", totalTasks)), React.createElement(ProgressBar, null, React.createElement(ProgressFill, {
|
|
29752
29719
|
percentage: completedTasks / totalTasks * 100
|
|
29753
|
-
})), allCompleted && React.createElement(React.Fragment, null, shouldShowGlobalButton
|
|
29720
|
+
})), allCompleted && React.createElement(React.Fragment, null, shouldShowGlobalButton && React.createElement(CollectWrapper$1, null, React.createElement(Button, {
|
|
29754
29721
|
buttonType: ButtonTypes.RPGUIButton,
|
|
29755
29722
|
onPointerDown: handleClaimAll
|
|
29756
|
-
}, "Collect Global Rewards"))
|
|
29723
|
+
}, "Collect Global Rewards")), shouldShowClaimedMessage && React.createElement(ClaimedText$1, null, "Global Rewards Claimed")));
|
|
29757
29724
|
};
|
|
29758
29725
|
var GlobalProgressContainer = /*#__PURE__*/styled.div.withConfig({
|
|
29759
29726
|
displayName: "GlobalDailyProgress__GlobalProgressContainer",
|
|
@@ -29800,18 +29767,34 @@ var DailyTasks = function DailyTasks(_ref) {
|
|
|
29800
29767
|
itemsAtlasJSON = _ref.itemsAtlasJSON,
|
|
29801
29768
|
itemsAtlasIMG = _ref.itemsAtlasIMG,
|
|
29802
29769
|
iconAtlasJSON = _ref.iconAtlasJSON,
|
|
29803
|
-
iconAtlasIMG = _ref.iconAtlasIMG
|
|
29770
|
+
iconAtlasIMG = _ref.iconAtlasIMG,
|
|
29771
|
+
_ref$globalRewardClai = _ref.globalRewardClaimed,
|
|
29772
|
+
globalRewardClaimed = _ref$globalRewardClai === void 0 ? false : _ref$globalRewardClai;
|
|
29804
29773
|
var _React$useState = React.useState(tasks),
|
|
29805
29774
|
localTasks = _React$useState[0];
|
|
29806
29775
|
var size = useResponsiveSize(scale);
|
|
29807
|
-
var
|
|
29808
|
-
|
|
29809
|
-
|
|
29810
|
-
|
|
29811
|
-
|
|
29812
|
-
|
|
29813
|
-
|
|
29814
|
-
|
|
29776
|
+
var _useState = useState([]),
|
|
29777
|
+
claimedTasks = _useState[0],
|
|
29778
|
+
setClaimedTasks = _useState[1];
|
|
29779
|
+
var _useState2 = useState(false),
|
|
29780
|
+
globalRewardClaimedLocal = _useState2[0],
|
|
29781
|
+
setGlobalRewardClaimedLocal = _useState2[1];
|
|
29782
|
+
var handleClaimReward = function handleClaimReward(taskKey, taskType) {
|
|
29783
|
+
onClaimReward({
|
|
29784
|
+
taskKey: taskKey,
|
|
29785
|
+
type: taskType
|
|
29786
|
+
});
|
|
29787
|
+
setClaimedTasks(function (prev) {
|
|
29788
|
+
return [].concat(prev, [taskKey]);
|
|
29789
|
+
});
|
|
29790
|
+
};
|
|
29791
|
+
var handleClaimGlobalRewards = function handleClaimGlobalRewards(tasks) {
|
|
29792
|
+
onClaimGlobalReward(tasks);
|
|
29793
|
+
setGlobalRewardClaimedLocal(true);
|
|
29794
|
+
};
|
|
29795
|
+
var isTaskRewardClaimed = function isTaskRewardClaimed(taskKey) {
|
|
29796
|
+
return claimedTasks.includes(taskKey);
|
|
29797
|
+
};
|
|
29815
29798
|
if (!size) return null;
|
|
29816
29799
|
return React.createElement(TasksContainer, {
|
|
29817
29800
|
type: RPGUIContainerTypes.Framed,
|
|
@@ -29825,7 +29808,7 @@ var DailyTasks = function DailyTasks(_ref) {
|
|
|
29825
29808
|
}, React.createElement(GlobalDailyProgress, {
|
|
29826
29809
|
tasks: localTasks,
|
|
29827
29810
|
onClaimAllRewards: handleClaimGlobalRewards,
|
|
29828
|
-
globalRewardClaimed: globalRewardClaimed
|
|
29811
|
+
globalRewardClaimed: globalRewardClaimed || globalRewardClaimedLocal
|
|
29829
29812
|
}), localTasks.map(function (task) {
|
|
29830
29813
|
return React.createElement(DailyTaskItem, {
|
|
29831
29814
|
key: task.key,
|
|
@@ -29836,7 +29819,7 @@ var DailyTasks = function DailyTasks(_ref) {
|
|
|
29836
29819
|
itemsAtlasIMG: itemsAtlasIMG,
|
|
29837
29820
|
iconAtlasJSON: iconAtlasJSON,
|
|
29838
29821
|
iconAtlasIMG: iconAtlasIMG,
|
|
29839
|
-
isRewardClaimed: isTaskRewardClaimed(task.key)
|
|
29822
|
+
isRewardClaimed: task.claimed || isTaskRewardClaimed(task.key)
|
|
29840
29823
|
});
|
|
29841
29824
|
}))));
|
|
29842
29825
|
};
|
|
@@ -34057,56 +34040,62 @@ var ItemsContainer = /*#__PURE__*/styled.div.withConfig({
|
|
|
34057
34040
|
return isFullScreen && '50%';
|
|
34058
34041
|
});
|
|
34059
34042
|
|
|
34043
|
+
// Global style to prevent body scrolling when modal is open
|
|
34044
|
+
var GlobalStyle = /*#__PURE__*/createGlobalStyle(["body{overflow:hidden;width:100%;height:100%;}"]);
|
|
34060
34045
|
var ConfirmModal = function ConfirmModal(_ref) {
|
|
34061
34046
|
var onConfirm = _ref.onConfirm,
|
|
34062
34047
|
onClose = _ref.onClose,
|
|
34063
34048
|
_ref$message = _ref.message,
|
|
34064
34049
|
message = _ref$message === void 0 ? 'Are you sure?' : _ref$message;
|
|
34065
|
-
var handleConfirm = function handleConfirm(
|
|
34066
|
-
e.preventDefault();
|
|
34067
|
-
e.stopPropagation();
|
|
34050
|
+
var handleConfirm = function handleConfirm() {
|
|
34068
34051
|
onConfirm();
|
|
34069
34052
|
};
|
|
34070
|
-
var handleClose = function handleClose(
|
|
34071
|
-
e.preventDefault();
|
|
34072
|
-
e.stopPropagation();
|
|
34053
|
+
var handleClose = function handleClose() {
|
|
34073
34054
|
onClose();
|
|
34074
34055
|
};
|
|
34075
|
-
|
|
34076
|
-
|
|
34077
|
-
}
|
|
34078
|
-
|
|
34079
|
-
|
|
34080
|
-
}, React.createElement(
|
|
34081
|
-
|
|
34082
|
-
|
|
34083
|
-
}
|
|
34084
|
-
}, typeof message === 'string' ? React.createElement("p", null, message) : message, React.createElement(ButtonsWrapper, null, React.createElement("div", {
|
|
34085
|
-
className: "cancel-button"
|
|
34086
|
-
}, React.createElement(Button, {
|
|
34056
|
+
var stopPropagation = function stopPropagation(e) {
|
|
34057
|
+
e.stopPropagation();
|
|
34058
|
+
};
|
|
34059
|
+
return React.createElement(ModalPortal, null, React.createElement(GlobalStyle, null), React.createElement(Overlay$2, {
|
|
34060
|
+
onPointerDown: handleClose
|
|
34061
|
+
}), React.createElement(ModalContainer, null, React.createElement(ModalContent, {
|
|
34062
|
+
onPointerDown: stopPropagation
|
|
34063
|
+
}, React.createElement(MessageContainer, null, typeof message === 'string' ? React.createElement(Message$1, null, message) : message), React.createElement(ButtonsContainer$2, null, React.createElement(CancelButtonWrapper, null, React.createElement(Button, {
|
|
34087
34064
|
buttonType: ButtonTypes.RPGUIButton,
|
|
34088
|
-
|
|
34065
|
+
onPointerDown: handleClose
|
|
34089
34066
|
}, "No")), React.createElement(Button, {
|
|
34090
34067
|
buttonType: ButtonTypes.RPGUIButton,
|
|
34091
|
-
|
|
34092
|
-
}, "Yes")))))
|
|
34068
|
+
onPointerDown: handleConfirm
|
|
34069
|
+
}, "Yes")))));
|
|
34093
34070
|
};
|
|
34094
|
-
var
|
|
34095
|
-
displayName: "
|
|
34071
|
+
var Overlay$2 = /*#__PURE__*/styled.div.withConfig({
|
|
34072
|
+
displayName: "ConfirmModal__Overlay",
|
|
34096
34073
|
componentId: "sc-11qkyu1-0"
|
|
34097
|
-
})(["position:
|
|
34098
|
-
var
|
|
34099
|
-
displayName: "
|
|
34074
|
+
})(["position:fixed;top:0;left:0;right:0;bottom:0;background-color:rgba(0,0,0,0.5);z-index:1000;animation:fadeIn 0.2s ease-out;@keyframes fadeIn{from{opacity:0;}to{opacity:1;}}"]);
|
|
34075
|
+
var ModalContainer = /*#__PURE__*/styled.div.withConfig({
|
|
34076
|
+
displayName: "ConfirmModal__ModalContainer",
|
|
34100
34077
|
componentId: "sc-11qkyu1-1"
|
|
34101
|
-
})(["position:
|
|
34102
|
-
var
|
|
34103
|
-
displayName: "
|
|
34078
|
+
})(["position:fixed;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;z-index:1001;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);touch-action:none;"]);
|
|
34079
|
+
var ModalContent = /*#__PURE__*/styled.div.withConfig({
|
|
34080
|
+
displayName: "ConfirmModal__ModalContent",
|
|
34104
34081
|
componentId: "sc-11qkyu1-2"
|
|
34105
|
-
})(["
|
|
34106
|
-
var
|
|
34107
|
-
displayName: "
|
|
34082
|
+
})(["background:url('/assets/ui/paper-dialog.png') no-repeat center center;background-size:100% 100%;padding:20px;min-width:300px;max-width:90%;margin:0 auto;animation:scaleIn 0.2s ease-out;transform-origin:center;box-shadow:0 4px 20px rgba(0,0,0,0.4);@keyframes scaleIn{from{transform:scale(0.8);opacity:0;}to{transform:scale(1);opacity:1;}}@media (max-width:768px){padding:25px;width:85%;}"]);
|
|
34083
|
+
var MessageContainer = /*#__PURE__*/styled.div.withConfig({
|
|
34084
|
+
displayName: "ConfirmModal__MessageContainer",
|
|
34108
34085
|
componentId: "sc-11qkyu1-3"
|
|
34109
|
-
})(["
|
|
34086
|
+
})(["margin-bottom:20px;text-align:center;"]);
|
|
34087
|
+
var Message$1 = /*#__PURE__*/styled.p.withConfig({
|
|
34088
|
+
displayName: "ConfirmModal__Message",
|
|
34089
|
+
componentId: "sc-11qkyu1-4"
|
|
34090
|
+
})(["margin:0;font-size:16px;color:#333;text-shadow:0 1px 0 rgba(255,255,255,0.5);@media (max-width:768px){font-size:18px;}"]);
|
|
34091
|
+
var ButtonsContainer$2 = /*#__PURE__*/styled.div.withConfig({
|
|
34092
|
+
displayName: "ConfirmModal__ButtonsContainer",
|
|
34093
|
+
componentId: "sc-11qkyu1-5"
|
|
34094
|
+
})(["display:flex;justify-content:center;gap:20px;@media (max-width:768px){gap:30px;transform:scale(1.1);margin-top:5px;}"]);
|
|
34095
|
+
var CancelButtonWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
34096
|
+
displayName: "ConfirmModal__CancelButtonWrapper",
|
|
34097
|
+
componentId: "sc-11qkyu1-6"
|
|
34098
|
+
})(["filter:grayscale(0.7);"]);
|
|
34110
34099
|
|
|
34111
34100
|
var ColorSelector = function ColorSelector(_ref) {
|
|
34112
34101
|
var selectedColor = _ref.selectedColor,
|
|
@@ -34150,7 +34139,7 @@ var ColorSelector = function ColorSelector(_ref) {
|
|
|
34150
34139
|
cancelDrag: ".react-colorful",
|
|
34151
34140
|
width: "25rem",
|
|
34152
34141
|
onCloseButton: onClose
|
|
34153
|
-
}, React.createElement(Container$
|
|
34142
|
+
}, React.createElement(Container$w, null, React.createElement(Header$3, null, "Select Color"), React.createElement(ColorPickerWrapper, null, React.createElement(HexColorPicker, {
|
|
34154
34143
|
color: currentColor,
|
|
34155
34144
|
onChange: function onChange(color) {
|
|
34156
34145
|
setCurrentColor(color);
|
|
@@ -34166,7 +34155,7 @@ var ColorSelector = function ColorSelector(_ref) {
|
|
|
34166
34155
|
onClose: handleClose
|
|
34167
34156
|
}));
|
|
34168
34157
|
};
|
|
34169
|
-
var Container$
|
|
34158
|
+
var Container$w = /*#__PURE__*/styled.div.withConfig({
|
|
34170
34159
|
displayName: "ItemPropertyColorSelector__Container",
|
|
34171
34160
|
componentId: "sc-me1r4z-0"
|
|
34172
34161
|
})(["text-align:center;background:inherit;display:flex;flex-direction:column;gap:1.5rem;align-items:center;width:100%;max-width:24rem;margin:0 auto;"]);
|
|
@@ -34522,7 +34511,7 @@ var ListMenu = function ListMenu(_ref) {
|
|
|
34522
34511
|
onSelected = _ref.onSelected,
|
|
34523
34512
|
x = _ref.x,
|
|
34524
34513
|
y = _ref.y;
|
|
34525
|
-
return React.createElement(Container$
|
|
34514
|
+
return React.createElement(Container$x, {
|
|
34526
34515
|
x: x,
|
|
34527
34516
|
y: y
|
|
34528
34517
|
}, React.createElement("ul", {
|
|
@@ -34539,7 +34528,7 @@ var ListMenu = function ListMenu(_ref) {
|
|
|
34539
34528
|
}, (params == null ? void 0 : params.text) || 'No text');
|
|
34540
34529
|
})));
|
|
34541
34530
|
};
|
|
34542
|
-
var Container$
|
|
34531
|
+
var Container$x = /*#__PURE__*/styled.div.withConfig({
|
|
34543
34532
|
displayName: "ListMenu__Container",
|
|
34544
34533
|
componentId: "sc-i9097t-0"
|
|
34545
34534
|
})(["display:flex;flex-direction:column;width:100%;justify-content:start;align-items:flex-start;position:absolute;top:", "px;left:", "px;li{font-size:", ";}"], function (props) {
|
|
@@ -34558,7 +34547,7 @@ var Pager = function Pager(_ref) {
|
|
|
34558
34547
|
itemsPerPage = _ref.itemsPerPage,
|
|
34559
34548
|
onPageChange = _ref.onPageChange;
|
|
34560
34549
|
var totalPages = Math.ceil(totalItems / itemsPerPage);
|
|
34561
|
-
return React.createElement(Container$
|
|
34550
|
+
return React.createElement(Container$y, null, React.createElement("p", null, "Total items: ", totalItems), React.createElement(PagerContainer, null, React.createElement("button", {
|
|
34562
34551
|
disabled: currentPage === 1,
|
|
34563
34552
|
onPointerDown: function onPointerDown() {
|
|
34564
34553
|
return onPageChange(Math.max(currentPage - 1, 1));
|
|
@@ -34572,7 +34561,7 @@ var Pager = function Pager(_ref) {
|
|
|
34572
34561
|
}
|
|
34573
34562
|
}, '>')));
|
|
34574
34563
|
};
|
|
34575
|
-
var Container$
|
|
34564
|
+
var Container$y = /*#__PURE__*/styled.div.withConfig({
|
|
34576
34565
|
displayName: "Pager__Container",
|
|
34577
34566
|
componentId: "sc-1ekmf50-0"
|
|
34578
34567
|
})(["display:flex;flex-direction:column;align-items:center;p{margin:0;font-size:", ";}"], uiFonts.size.xsmall);
|
|
@@ -35093,13 +35082,13 @@ var TabBody = function TabBody(_ref) {
|
|
|
35093
35082
|
children = _ref.children,
|
|
35094
35083
|
styles = _ref.styles,
|
|
35095
35084
|
centerContent = _ref.centerContent;
|
|
35096
|
-
return React.createElement(Container$
|
|
35085
|
+
return React.createElement(Container$z, {
|
|
35097
35086
|
styles: styles,
|
|
35098
35087
|
"data-tab-id": id,
|
|
35099
35088
|
centerContent: centerContent
|
|
35100
35089
|
}, children);
|
|
35101
35090
|
};
|
|
35102
|
-
var Container$
|
|
35091
|
+
var Container$z = /*#__PURE__*/styled.div.withConfig({
|
|
35103
35092
|
displayName: "TabBody__Container",
|
|
35104
35093
|
componentId: "sc-196oof2-0"
|
|
35105
35094
|
})(["width:", ";height:", ";overflow-y:auto;display:", ";justify-content:", ";align-items:", ";"], function (props) {
|
|
@@ -35241,7 +35230,7 @@ var PartyCreate = function PartyCreate(_ref) {
|
|
|
35241
35230
|
width: "500px",
|
|
35242
35231
|
height: "300px",
|
|
35243
35232
|
cancelDrag: ".partyRows"
|
|
35244
|
-
}, React.createElement(Wrapper$
|
|
35233
|
+
}, React.createElement(Wrapper$1, null, React.createElement("div", {
|
|
35245
35234
|
style: {
|
|
35246
35235
|
width: '100%'
|
|
35247
35236
|
}
|
|
@@ -35264,7 +35253,7 @@ var PartyCreate = function PartyCreate(_ref) {
|
|
|
35264
35253
|
}
|
|
35265
35254
|
}, "Cancel"))));
|
|
35266
35255
|
};
|
|
35267
|
-
var Wrapper$
|
|
35256
|
+
var Wrapper$1 = /*#__PURE__*/styled.div.withConfig({
|
|
35268
35257
|
displayName: "PartyCreate__Wrapper",
|
|
35269
35258
|
componentId: "sc-13brop0-0"
|
|
35270
35259
|
})(["display:flex;flex-direction:column;width:100%;"]);
|
|
@@ -35313,7 +35302,7 @@ var PartyDashboard = function PartyDashboard(_ref) {
|
|
|
35313
35302
|
width: "800px",
|
|
35314
35303
|
height: "400px",
|
|
35315
35304
|
cancelDrag: ".partyRows"
|
|
35316
|
-
}, React.createElement(Wrapper$
|
|
35305
|
+
}, React.createElement(Wrapper$2, null, React.createElement("div", {
|
|
35317
35306
|
style: {
|
|
35318
35307
|
width: '100%'
|
|
35319
35308
|
}
|
|
@@ -35336,7 +35325,7 @@ var PartyDashboard = function PartyDashboard(_ref) {
|
|
|
35336
35325
|
});
|
|
35337
35326
|
})));
|
|
35338
35327
|
};
|
|
35339
|
-
var Wrapper$
|
|
35328
|
+
var Wrapper$2 = /*#__PURE__*/styled.div.withConfig({
|
|
35340
35329
|
displayName: "PartyDashboard__Wrapper",
|
|
35341
35330
|
componentId: "sc-16cm41r-0"
|
|
35342
35331
|
})(["display:flex;flex-direction:column;width:100%;"]);
|
|
@@ -35377,7 +35366,7 @@ var PartyInvite = function PartyInvite(_ref) {
|
|
|
35377
35366
|
width: "600px",
|
|
35378
35367
|
height: "400px",
|
|
35379
35368
|
cancelDrag: ".playersRows"
|
|
35380
|
-
}, React.createElement(Wrapper$
|
|
35369
|
+
}, React.createElement(Wrapper$3, null, React.createElement("div", {
|
|
35381
35370
|
style: {
|
|
35382
35371
|
width: '100%'
|
|
35383
35372
|
}
|
|
@@ -35396,7 +35385,7 @@ var PartyInvite = function PartyInvite(_ref) {
|
|
|
35396
35385
|
});
|
|
35397
35386
|
})));
|
|
35398
35387
|
};
|
|
35399
|
-
var Wrapper$
|
|
35388
|
+
var Wrapper$3 = /*#__PURE__*/styled.div.withConfig({
|
|
35400
35389
|
displayName: "PartyInvite__Wrapper",
|
|
35401
35390
|
componentId: "sc-eu8ggt-0"
|
|
35402
35391
|
})(["display:flex;flex-direction:column;width:100%;"]);
|
|
@@ -35752,7 +35741,7 @@ var ProgressBar$1 = function ProgressBar(_ref) {
|
|
|
35752
35741
|
}
|
|
35753
35742
|
return value * 100 / max;
|
|
35754
35743
|
};
|
|
35755
|
-
return React.createElement(Container$
|
|
35744
|
+
return React.createElement(Container$A, {
|
|
35756
35745
|
className: "rpgui-progress",
|
|
35757
35746
|
"data-value": calculatePercentageValue(max, value) / 100,
|
|
35758
35747
|
"data-rpguitype": "progress",
|
|
@@ -35782,7 +35771,7 @@ var TextOverlay$1 = /*#__PURE__*/styled.div.withConfig({
|
|
|
35782
35771
|
displayName: "ProgressBar__TextOverlay",
|
|
35783
35772
|
componentId: "sc-qa6fzh-1"
|
|
35784
35773
|
})(["width:100%;position:relative;"]);
|
|
35785
|
-
var Container$
|
|
35774
|
+
var Container$A = /*#__PURE__*/styled.div.withConfig({
|
|
35786
35775
|
displayName: "ProgressBar__Container",
|
|
35787
35776
|
componentId: "sc-qa6fzh-2"
|
|
35788
35777
|
})(["display:flex;flex-direction:column;min-width:", "px;width:", "%;justify-content:start;align-items:flex-start;", " @media (max-width:950px){transform:scale(", ");}"], function (props) {
|
|
@@ -36023,9 +36012,9 @@ var InputRadio = function InputRadio(_ref) {
|
|
|
36023
36012
|
|
|
36024
36013
|
var RPGUIScrollbar = function RPGUIScrollbar(_ref) {
|
|
36025
36014
|
var children = _ref.children;
|
|
36026
|
-
return React.createElement(Container$
|
|
36015
|
+
return React.createElement(Container$B, null, children);
|
|
36027
36016
|
};
|
|
36028
|
-
var Container$
|
|
36017
|
+
var Container$B = /*#__PURE__*/styled.div.withConfig({
|
|
36029
36018
|
displayName: "RPGUIScrollbar__Container",
|
|
36030
36019
|
componentId: "sc-p3msmb-0"
|
|
36031
36020
|
})([".rpgui-content ::-webkit-scrollbar,.rpgui-content::-webkit-scrollbar{width:25px !important;}.rpgui-content ::-webkit-scrollbar-track,.rpgui-content::-webkit-scrollbar-track{background-size:25px 60px !important;}"]);
|
|
@@ -36181,7 +36170,7 @@ var SimpleProgressBar = function SimpleProgressBar(_ref) {
|
|
|
36181
36170
|
margin = _ref$margin === void 0 ? 20 : _ref$margin;
|
|
36182
36171
|
// Ensure the width is at least 1% if value is greater than 0
|
|
36183
36172
|
var width = value > 0 ? Math.max(1, Math.min(100, value)) : 0;
|
|
36184
|
-
return React.createElement(Container$
|
|
36173
|
+
return React.createElement(Container$C, {
|
|
36185
36174
|
className: "simple-progress-bar"
|
|
36186
36175
|
}, React.createElement(ProgressBarContainer, {
|
|
36187
36176
|
margin: margin
|
|
@@ -36190,7 +36179,7 @@ var SimpleProgressBar = function SimpleProgressBar(_ref) {
|
|
|
36190
36179
|
bgColor: bgColor
|
|
36191
36180
|
}))));
|
|
36192
36181
|
};
|
|
36193
|
-
var Container$
|
|
36182
|
+
var Container$C = /*#__PURE__*/styled.div.withConfig({
|
|
36194
36183
|
displayName: "SimpleProgressBar__Container",
|
|
36195
36184
|
componentId: "sc-mbeil3-0"
|
|
36196
36185
|
})(["display:flex;justify-content:center;align-items:center;width:100%;"]);
|
|
@@ -36523,10 +36512,10 @@ var SocialModal = function SocialModal(_ref) {
|
|
|
36523
36512
|
title: "Social Channels",
|
|
36524
36513
|
width: "500px",
|
|
36525
36514
|
onCloseButton: onClose
|
|
36526
|
-
}, React.createElement(Container$
|
|
36515
|
+
}, React.createElement(Container$D, null, React.createElement(HeaderImage, {
|
|
36527
36516
|
src: img$9,
|
|
36528
36517
|
alt: ""
|
|
36529
|
-
}), React.createElement(ButtonsContainer$
|
|
36518
|
+
}), React.createElement(ButtonsContainer$3, null, React.createElement(MainButtons, null, React.createElement(SocialButton$1, {
|
|
36530
36519
|
onClick: handleDiscordClick
|
|
36531
36520
|
}, React.createElement(FaDiscord, null), " Discord"), React.createElement(SocialButton$1, {
|
|
36532
36521
|
onClick: handleRedditClick
|
|
@@ -36541,7 +36530,7 @@ var SocialModal = function SocialModal(_ref) {
|
|
|
36541
36530
|
onClick: handleWhatsAppClick
|
|
36542
36531
|
}, React.createElement(FaWhatsapp, null), " Join WhatsApp")))));
|
|
36543
36532
|
};
|
|
36544
|
-
var Container$
|
|
36533
|
+
var Container$D = /*#__PURE__*/styled.div.withConfig({
|
|
36545
36534
|
displayName: "SocialModal__Container",
|
|
36546
36535
|
componentId: "sc-tbjhp9-0"
|
|
36547
36536
|
})(["width:100%;display:flex;flex-direction:column;gap:16px;background-color:#5c4132;position:relative;border-radius:8px;overflow:hidden;&:before,&:after{content:'';position:absolute;left:0;right:0;height:3px;}&:before{bottom:0;background:linear-gradient( to right,#5c4132 0%,#2b1810 2%,#2b1810 98%,#5c4132 100% );}"]);
|
|
@@ -36549,7 +36538,7 @@ var HeaderImage = /*#__PURE__*/styled.img.withConfig({
|
|
|
36549
36538
|
displayName: "SocialModal__HeaderImage",
|
|
36550
36539
|
componentId: "sc-tbjhp9-1"
|
|
36551
36540
|
})(["width:100%;height:160px;object-fit:cover;border-bottom:2px solid rgba(0,0,0,0.3);display:block;border-top-left-radius:8px;border-top-right-radius:8px;"]);
|
|
36552
|
-
var ButtonsContainer$
|
|
36541
|
+
var ButtonsContainer$3 = /*#__PURE__*/styled.div.withConfig({
|
|
36553
36542
|
displayName: "SocialModal__ButtonsContainer",
|
|
36554
36543
|
componentId: "sc-tbjhp9-2"
|
|
36555
36544
|
})(["padding:16px 24px 24px;display:flex;flex-direction:column;gap:16px;"]);
|
|
@@ -36587,7 +36576,7 @@ var SpellInfo$1 = function SpellInfo(_ref) {
|
|
|
36587
36576
|
castingType = spell.castingType,
|
|
36588
36577
|
cooldown = spell.cooldown,
|
|
36589
36578
|
maxDistanceGrid = spell.maxDistanceGrid;
|
|
36590
|
-
return React.createElement(Container$
|
|
36579
|
+
return React.createElement(Container$E, null, React.createElement(Header$5, null, React.createElement("div", null, React.createElement(Title$b, null, name), React.createElement(Type$1, null, magicWords))), React.createElement(Statistic$1, null, React.createElement("div", {
|
|
36591
36580
|
className: "label"
|
|
36592
36581
|
}, "Casting Type:"), React.createElement("div", {
|
|
36593
36582
|
className: "value"
|
|
@@ -36613,7 +36602,7 @@ var SpellInfo$1 = function SpellInfo(_ref) {
|
|
|
36613
36602
|
className: "value"
|
|
36614
36603
|
}, requiredItem))), React.createElement(Description$4, null, description));
|
|
36615
36604
|
};
|
|
36616
|
-
var Container$
|
|
36605
|
+
var Container$E = /*#__PURE__*/styled.div.withConfig({
|
|
36617
36606
|
displayName: "SpellInfo__Container",
|
|
36618
36607
|
componentId: "sc-4hbw3q-0"
|
|
36619
36608
|
})(["color:white;background-color:#222;border-radius:5px;padding:0.5rem;font-size:", ";border:3px solid ", ";height:max-content;width:30rem;@media (max-width:580px){width:80vw;}"], uiFonts.size.small, uiColors.lightGray);
|
|
@@ -36667,7 +36656,7 @@ var MobileSpellTooltip = function MobileSpellTooltip(_ref) {
|
|
|
36667
36656
|
var _ref$current;
|
|
36668
36657
|
(_ref$current = ref.current) == null ? void 0 : _ref$current.classList.add('fadeOut');
|
|
36669
36658
|
};
|
|
36670
|
-
return React.createElement(ModalPortal, null, React.createElement(Container$
|
|
36659
|
+
return React.createElement(ModalPortal, null, React.createElement(Container$F, {
|
|
36671
36660
|
ref: ref,
|
|
36672
36661
|
onTouchEnd: function onTouchEnd() {
|
|
36673
36662
|
handleFadeOut();
|
|
@@ -36692,7 +36681,7 @@ var MobileSpellTooltip = function MobileSpellTooltip(_ref) {
|
|
|
36692
36681
|
}, option.text);
|
|
36693
36682
|
}))));
|
|
36694
36683
|
};
|
|
36695
|
-
var Container$
|
|
36684
|
+
var Container$F = /*#__PURE__*/styled.div.withConfig({
|
|
36696
36685
|
displayName: "MobileSpellTooltip__Container",
|
|
36697
36686
|
componentId: "sc-6p7uvr-0"
|
|
36698
36687
|
})(["position:absolute;z-index:100;left:0;top:0;width:100vw;height:100vh;background-color:rgba(0 0 0 / 0.5);display:flex;justify-content:center;align-items:center;gap:0.5rem;transition:opacity 0.08s;animation:fadeIn 0.1s forwards;@keyframes fadeIn{0%{opacity:0;}100%{opacity:0.92;}}@keyframes fadeOut{0%{opacity:0.92;}100%{opacity:0;}}&.fadeOut{animation:fadeOut 0.1s forwards;}@media (max-width:580px){flex-direction:column;}"]);
|
|
@@ -36733,13 +36722,13 @@ var MagicTooltip = function MagicTooltip(_ref) {
|
|
|
36733
36722
|
}
|
|
36734
36723
|
return;
|
|
36735
36724
|
}, []);
|
|
36736
|
-
return React.createElement(ModalPortal, null, React.createElement(Container$
|
|
36725
|
+
return React.createElement(ModalPortal, null, React.createElement(Container$G, {
|
|
36737
36726
|
ref: ref
|
|
36738
36727
|
}, React.createElement(SpellInfoDisplay, {
|
|
36739
36728
|
spell: spell
|
|
36740
36729
|
})));
|
|
36741
36730
|
};
|
|
36742
|
-
var Container$
|
|
36731
|
+
var Container$G = /*#__PURE__*/styled.div.withConfig({
|
|
36743
36732
|
displayName: "SpellTooltip__Container",
|
|
36744
36733
|
componentId: "sc-1go0gwg-0"
|
|
36745
36734
|
})(["position:absolute;z-index:100;pointer-events:none;left:0;top:0;opacity:0;transition:opacity 0.08s;"]);
|
|
@@ -36812,11 +36801,11 @@ var Spell = function Spell(_ref) {
|
|
|
36812
36801
|
var IMAGE_SCALE = 2;
|
|
36813
36802
|
return React.createElement(SpellInfoWrapper, {
|
|
36814
36803
|
spell: spell
|
|
36815
|
-
}, React.createElement(Container$
|
|
36804
|
+
}, React.createElement(Container$H, {
|
|
36816
36805
|
onPointerUp: onPointerUp == null ? void 0 : onPointerUp.bind(null, spellKey),
|
|
36817
36806
|
isSettingShortcut: isSettingShortcut && !disabled,
|
|
36818
36807
|
className: "spell"
|
|
36819
|
-
}, disabled && React.createElement(Overlay$
|
|
36808
|
+
}, disabled && React.createElement(Overlay$3, null, charMagicLevel < minMagicLevelRequired ? 'Low magic level' : manaCost > charMana && 'No mana'), React.createElement(SpellImage, null, activeCooldown && activeCooldown > 0 ? React.createElement("span", {
|
|
36820
36809
|
className: "cooldown"
|
|
36821
36810
|
}, activeCooldown.toFixed(activeCooldown > 10 ? 0 : 1)) : null, React.createElement(SpriteFromAtlas, {
|
|
36822
36811
|
atlasIMG: atlasIMG,
|
|
@@ -36831,7 +36820,7 @@ var Spell = function Spell(_ref) {
|
|
|
36831
36820
|
className: "mana"
|
|
36832
36821
|
}, manaCost))));
|
|
36833
36822
|
};
|
|
36834
|
-
var Container$
|
|
36823
|
+
var Container$H = /*#__PURE__*/styled.button.withConfig({
|
|
36835
36824
|
displayName: "Spell__Container",
|
|
36836
36825
|
componentId: "sc-j96fa2-0"
|
|
36837
36826
|
})(["display:block;background:none;border:2px solid transparent;border-radius:1rem;width:100%;display:flex;gap:1rem;align-items:center;padding:0 1rem;text-align:left;position:relative;animation:", ";@keyframes border-color-change{0%{border-color:", ";}50%{border-color:transparent;}100%{border-color:", ";}}&:hover,&:focus{background-color:", ";}&:active{background:none;}"], function (_ref2) {
|
|
@@ -36862,7 +36851,7 @@ var Cost = /*#__PURE__*/styled.p.withConfig({
|
|
|
36862
36851
|
displayName: "Spell__Cost",
|
|
36863
36852
|
componentId: "sc-j96fa2-6"
|
|
36864
36853
|
})(["display:flex;align-items:center;flex-direction:column;gap:0.5rem;div{z-index:1;}.mana{position:relative;font-size:", ";font-weight:bold;z-index:1;&::after{position:absolute;content:'';top:0;left:0;background-color:", ";width:100%;height:100%;border-radius:50%;transform:scale(1.8);filter:blur(10px);z-index:-1;}}"], uiFonts.size.medium, uiColors.blue);
|
|
36865
|
-
var Overlay$
|
|
36854
|
+
var Overlay$3 = /*#__PURE__*/styled.p.withConfig({
|
|
36866
36855
|
displayName: "Spell__Overlay",
|
|
36867
36856
|
componentId: "sc-j96fa2-7"
|
|
36868
36857
|
})(["margin:0 !important;position:absolute;top:0;left:0;width:100%;height:100%;border-radius:1rem;display:flex;justify-content:center;align-items:center;color:", ";font-size:", " !important;font-weight:bold;z-index:10;background-color:rgba(0 0 0 / 0.2);"], uiColors.yellow, uiFonts.size.large);
|
|
@@ -36910,7 +36899,7 @@ var Spellbook = function Spellbook(_ref) {
|
|
|
36910
36899
|
height: "inherit",
|
|
36911
36900
|
cancelDrag: "#spellbook-search, #shortcuts_list, .spell",
|
|
36912
36901
|
scale: scale
|
|
36913
|
-
}, React.createElement(Container$
|
|
36902
|
+
}, React.createElement(Container$I, null, React.createElement(Title$d, null, "Learned Spells"), React.createElement(ShortcutsSetter, {
|
|
36914
36903
|
setSettingShortcutIndex: setSettingShortcutIndex,
|
|
36915
36904
|
settingShortcutIndex: settingShortcutIndex,
|
|
36916
36905
|
shortcuts: shortcuts,
|
|
@@ -36946,7 +36935,7 @@ var Title$d = /*#__PURE__*/styled.h1.withConfig({
|
|
|
36946
36935
|
displayName: "Spellbook__Title",
|
|
36947
36936
|
componentId: "sc-r02nfq-0"
|
|
36948
36937
|
})(["font-size:", " !important;margin-bottom:0 !important;"], uiFonts.size.large);
|
|
36949
|
-
var Container$
|
|
36938
|
+
var Container$I = /*#__PURE__*/styled.div.withConfig({
|
|
36950
36939
|
displayName: "Spellbook__Container",
|
|
36951
36940
|
componentId: "sc-r02nfq-1"
|
|
36952
36941
|
})(["width:100%;height:100%;color:white;display:flex;flex-direction:column;"]);
|
|
@@ -37428,7 +37417,7 @@ var TradingMenu = function TradingMenu(_ref) {
|
|
|
37428
37417
|
width: "500px",
|
|
37429
37418
|
cancelDrag: "#TraderContainer",
|
|
37430
37419
|
scale: scale
|
|
37431
|
-
}, React.createElement(Container$
|
|
37420
|
+
}, React.createElement(Container$J, null, React.createElement(Title$e, null, type.charAt(0).toUpperCase() + type.slice(1), " Menu"), React.createElement("hr", {
|
|
37432
37421
|
className: "golden"
|
|
37433
37422
|
}), React.createElement(ScrollWrapper, {
|
|
37434
37423
|
id: "TraderContainer"
|
|
@@ -37456,7 +37445,7 @@ var TradingMenu = function TradingMenu(_ref) {
|
|
|
37456
37445
|
onPointerDown: onClose
|
|
37457
37446
|
}, "Cancel"))));
|
|
37458
37447
|
};
|
|
37459
|
-
var Container$
|
|
37448
|
+
var Container$J = /*#__PURE__*/styled.div.withConfig({
|
|
37460
37449
|
displayName: "TradingMenu__Container",
|
|
37461
37450
|
componentId: "sc-1wjsz1l-0"
|
|
37462
37451
|
})(["width:100%;"]);
|
|
@@ -37490,11 +37479,11 @@ var Truncate = function Truncate(_ref) {
|
|
|
37490
37479
|
var _ref$maxLines = _ref.maxLines,
|
|
37491
37480
|
maxLines = _ref$maxLines === void 0 ? 1 : _ref$maxLines,
|
|
37492
37481
|
children = _ref.children;
|
|
37493
|
-
return React.createElement(Container$
|
|
37482
|
+
return React.createElement(Container$K, {
|
|
37494
37483
|
maxLines: maxLines
|
|
37495
37484
|
}, children);
|
|
37496
37485
|
};
|
|
37497
|
-
var Container$
|
|
37486
|
+
var Container$K = /*#__PURE__*/styled.div.withConfig({
|
|
37498
37487
|
displayName: "Truncate__Container",
|
|
37499
37488
|
componentId: "sc-6x00qb-0"
|
|
37500
37489
|
})(["display:-webkit-box;max-width:100%;max-height:100%;-webkit-line-clamp:", ";-webkit-box-orient:vertical;overflow:hidden;"], function (props) {
|
|
@@ -37602,7 +37591,7 @@ var TutorialStepper = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
37602
37591
|
};
|
|
37603
37592
|
});
|
|
37604
37593
|
}, [lessons, imageStyle]);
|
|
37605
|
-
return React.createElement(Container$
|
|
37594
|
+
return React.createElement(Container$L, null, React.createElement(Stepper, {
|
|
37606
37595
|
steps: generateLessons,
|
|
37607
37596
|
finalCTAButton: {
|
|
37608
37597
|
label: 'Close',
|
|
@@ -37619,7 +37608,7 @@ var LessonBody = /*#__PURE__*/styled.div.withConfig({
|
|
|
37619
37608
|
displayName: "TutorialStepper__LessonBody",
|
|
37620
37609
|
componentId: "sc-7tgzv2-1"
|
|
37621
37610
|
})([""]);
|
|
37622
|
-
var Container$
|
|
37611
|
+
var Container$L = /*#__PURE__*/styled.div.withConfig({
|
|
37623
37612
|
displayName: "TutorialStepper__Container",
|
|
37624
37613
|
componentId: "sc-7tgzv2-2"
|
|
37625
37614
|
})(["width:80%;max-width:600px;@media (max-width:600px){width:95%;}"]);
|