@rpg-engine/long-bow 0.8.122 → 0.8.124
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/long-bow.cjs.development.js +237 -247
- 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 +237 -247
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Friends/FriendList.tsx +261 -70
|
@@ -30810,6 +30810,78 @@ var EquipmentColumn = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
30810
30810
|
componentId: "sc-1wuddg2-1"
|
|
30811
30811
|
})(["display:flex;justify-content:center;flex-wrap:wrap;flex-direction:column;touch-action:none;"]);
|
|
30812
30812
|
|
|
30813
|
+
var UI_BREAKPOINT_MOBILE = '950px';
|
|
30814
|
+
var UI_BREAKPOINT_SMALL_LAPTOP = '1400px';
|
|
30815
|
+
|
|
30816
|
+
var InternalTabs = function InternalTabs(_ref) {
|
|
30817
|
+
var _tabs$, _tabs$find;
|
|
30818
|
+
var tabs = _ref.tabs,
|
|
30819
|
+
_ref$activeColor = _ref.activeColor,
|
|
30820
|
+
activeColor = _ref$activeColor === void 0 ? '#fef08a' : _ref$activeColor,
|
|
30821
|
+
_ref$activeTextColor = _ref.activeTextColor,
|
|
30822
|
+
activeTextColor = _ref$activeTextColor === void 0 ? '#000000' : _ref$activeTextColor,
|
|
30823
|
+
_ref$inactiveColor = _ref.inactiveColor,
|
|
30824
|
+
inactiveColor = _ref$inactiveColor === void 0 ? '#6b7280' : _ref$inactiveColor,
|
|
30825
|
+
_ref$borderColor = _ref.borderColor,
|
|
30826
|
+
borderColor = _ref$borderColor === void 0 ? '#f59e0b' : _ref$borderColor,
|
|
30827
|
+
_ref$hoverColor = _ref.hoverColor,
|
|
30828
|
+
hoverColor = _ref$hoverColor === void 0 ? '#fef3c7' : _ref$hoverColor,
|
|
30829
|
+
onTabChange = _ref.onTabChange,
|
|
30830
|
+
externalActiveTab = _ref.activeTab;
|
|
30831
|
+
var _useState = React.useState((_tabs$ = tabs[0]) == null ? void 0 : _tabs$.id),
|
|
30832
|
+
internalActiveTab = _useState[0],
|
|
30833
|
+
setInternalActiveTab = _useState[1];
|
|
30834
|
+
var activeTabId = externalActiveTab != null ? externalActiveTab : internalActiveTab;
|
|
30835
|
+
var handleTabClick = function handleTabClick(tabId) {
|
|
30836
|
+
setInternalActiveTab(tabId);
|
|
30837
|
+
onTabChange == null ? void 0 : onTabChange(tabId);
|
|
30838
|
+
};
|
|
30839
|
+
return React__default.createElement(TableWrapper, null, React__default.createElement(TabHeader, {
|
|
30840
|
+
borderColor: borderColor
|
|
30841
|
+
}, tabs.map(function (tab) {
|
|
30842
|
+
return React__default.createElement(TabButton, {
|
|
30843
|
+
key: tab.id,
|
|
30844
|
+
active: activeTabId === tab.id,
|
|
30845
|
+
activeColor: activeColor,
|
|
30846
|
+
activeTextColor: activeTextColor,
|
|
30847
|
+
inactiveColor: inactiveColor,
|
|
30848
|
+
borderColor: borderColor,
|
|
30849
|
+
hoverColor: hoverColor,
|
|
30850
|
+
onClick: function onClick() {
|
|
30851
|
+
return handleTabClick(tab.id);
|
|
30852
|
+
}
|
|
30853
|
+
}, tab.title);
|
|
30854
|
+
})), React__default.createElement(ContentWrapper, null, (_tabs$find = tabs.find(function (tab) {
|
|
30855
|
+
return tab.id === activeTabId;
|
|
30856
|
+
})) == null ? void 0 : _tabs$find.content));
|
|
30857
|
+
};
|
|
30858
|
+
var TableWrapper = /*#__PURE__*/styled__default.div.withConfig({
|
|
30859
|
+
displayName: "InternalTabs__TableWrapper",
|
|
30860
|
+
componentId: "sc-ldufv0-0"
|
|
30861
|
+
})(["width:100%;"]);
|
|
30862
|
+
var TabHeader = /*#__PURE__*/styled__default.div.withConfig({
|
|
30863
|
+
displayName: "InternalTabs__TabHeader",
|
|
30864
|
+
componentId: "sc-ldufv0-1"
|
|
30865
|
+
})(["display:flex;border-bottom:1px solid ", ";"], function (props) {
|
|
30866
|
+
return props.borderColor;
|
|
30867
|
+
});
|
|
30868
|
+
var TabButton = /*#__PURE__*/styled__default.button.withConfig({
|
|
30869
|
+
displayName: "InternalTabs__TabButton",
|
|
30870
|
+
componentId: "sc-ldufv0-2"
|
|
30871
|
+
})(["flex:1;padding:0.25rem 0.5rem;font-size:0.75rem;font-weight:500;border-right:1px solid ", ";background-color:", ";color:", ";white-space:nowrap;overflow:hidden;text-overflow:ellipsis;@media (min-width:480px){padding:0.375rem 0.75rem;font-size:0.8125rem;}@media (min-width:", "){padding:0.5rem 1rem;font-size:0.875rem;}&:last-child{border-right:none;}&:hover{background-color:", ";}"], function (props) {
|
|
30872
|
+
return props.borderColor;
|
|
30873
|
+
}, function (props) {
|
|
30874
|
+
return props.active ? props.activeColor : 'transparent';
|
|
30875
|
+
}, function (props) {
|
|
30876
|
+
return props.active ? props.activeTextColor : props.inactiveColor;
|
|
30877
|
+
}, UI_BREAKPOINT_MOBILE, function (props) {
|
|
30878
|
+
return props.active ? props.activeColor : props.hoverColor;
|
|
30879
|
+
});
|
|
30880
|
+
var ContentWrapper = /*#__PURE__*/styled__default.div.withConfig({
|
|
30881
|
+
displayName: "InternalTabs__ContentWrapper",
|
|
30882
|
+
componentId: "sc-ldufv0-3"
|
|
30883
|
+
})(["width:100%;"]);
|
|
30884
|
+
|
|
30813
30885
|
var Table = /*#__PURE__*/styled__default.table.withConfig({
|
|
30814
30886
|
displayName: "Table",
|
|
30815
30887
|
componentId: "sc-1c24pcj-0"
|
|
@@ -30838,18 +30910,33 @@ var UserActionLink = /*#__PURE__*/styled__default.span.withConfig({
|
|
|
30838
30910
|
return color;
|
|
30839
30911
|
});
|
|
30840
30912
|
|
|
30841
|
-
var
|
|
30842
|
-
var
|
|
30913
|
+
var FriendList = function FriendList(_ref) {
|
|
30914
|
+
var friends = _ref.friends,
|
|
30843
30915
|
friendRequests = _ref.friendRequests,
|
|
30844
|
-
|
|
30916
|
+
searchedCharacters = _ref.searchedCharacters,
|
|
30845
30917
|
onFocus = _ref.onFocus,
|
|
30918
|
+
onBlur = _ref.onBlur,
|
|
30846
30919
|
onSearch = _ref.onSearch,
|
|
30847
|
-
onSendFriendRequest = _ref.onSendFriendRequest,
|
|
30848
30920
|
onAcceptRequest = _ref.onAcceptRequest,
|
|
30849
|
-
|
|
30921
|
+
onSendFriendRequest = _ref.onSendFriendRequest,
|
|
30922
|
+
onRemoveFriend = _ref.onRemoveFriend,
|
|
30923
|
+
onOpenPrivateMessage = _ref.onOpenPrivateMessage,
|
|
30924
|
+
onRejectRequest = _ref.onRejectRequest,
|
|
30925
|
+
onAddFriend = _ref.onAddFriend,
|
|
30926
|
+
onBackFriendList = _ref.onBackFriendList;
|
|
30850
30927
|
var _useState = React.useState(''),
|
|
30851
30928
|
characterName = _useState[0],
|
|
30852
30929
|
setCharacterName = _useState[1];
|
|
30930
|
+
var _useState2 = React.useState('friends'),
|
|
30931
|
+
activeTab = _useState2[0],
|
|
30932
|
+
setActiveTab = _useState2[1];
|
|
30933
|
+
React.useEffect(function () {
|
|
30934
|
+
if (activeTab === 'search') {
|
|
30935
|
+
onAddFriend == null ? void 0 : onAddFriend();
|
|
30936
|
+
} else {
|
|
30937
|
+
onBackFriendList == null ? void 0 : onBackFriendList();
|
|
30938
|
+
}
|
|
30939
|
+
}, [activeTab]);
|
|
30853
30940
|
var debouncedSearch = React.useCallback(lodash.debounce(function (name) {
|
|
30854
30941
|
onSearch(name);
|
|
30855
30942
|
}, 300), []);
|
|
@@ -30864,6 +30951,27 @@ var SearchFriend = function SearchFriend(_ref) {
|
|
|
30864
30951
|
onSearch(characterName);
|
|
30865
30952
|
}
|
|
30866
30953
|
};
|
|
30954
|
+
var friendsTabContent = friends.length > 0 ? React__default.createElement(ScrollableArea, null, React__default.createElement(Table, null, React__default.createElement("thead", null, React__default.createElement(TableRow, null, React__default.createElement(TableHeader, null, "Online"), React__default.createElement(TableHeader, null, "Name"), React__default.createElement(TableHeader, null, "Actions"))), React__default.createElement("tbody", null, friends.map(function (friend) {
|
|
30955
|
+
return React__default.createElement(TableRow, {
|
|
30956
|
+
key: friend._id
|
|
30957
|
+
}, React__default.createElement(TableCell, null, React__default.createElement(IsOnlineBadge, {
|
|
30958
|
+
"$isOnline": friend.isOnline
|
|
30959
|
+
})), React__default.createElement(TableCell, null, friend.name), React__default.createElement(TableCell, null, React__default.createElement(ActionButtons, null, React__default.createElement(UserActionLink, {
|
|
30960
|
+
color: uiColors.white,
|
|
30961
|
+
onClick: function onClick() {
|
|
30962
|
+
return onOpenPrivateMessage(friend);
|
|
30963
|
+
}
|
|
30964
|
+
}, "Chat"), React__default.createElement(UserActionLink, {
|
|
30965
|
+
color: uiColors.red,
|
|
30966
|
+
onClick: function onClick() {
|
|
30967
|
+
return onRemoveFriend(friend);
|
|
30968
|
+
}
|
|
30969
|
+
}, "Remove"))));
|
|
30970
|
+
})))) : React__default.createElement(EmptyStateContainer, null, React__default.createElement(EmptyStateText, null, "You don't have any friends yet"), React__default.createElement(AddFriendCTA, {
|
|
30971
|
+
onClick: function onClick() {
|
|
30972
|
+
return setActiveTab('search');
|
|
30973
|
+
}
|
|
30974
|
+
}, "Add your first friend"));
|
|
30867
30975
|
var searchTabContent = React__default.createElement(ListContainer$1, null, React__default.createElement(SearchForm, {
|
|
30868
30976
|
onSubmit: handleSubmit
|
|
30869
30977
|
}, React__default.createElement(SearchInput, {
|
|
@@ -30876,7 +30984,6 @@ var SearchFriend = function SearchFriend(_ref) {
|
|
|
30876
30984
|
onFocus: onFocus,
|
|
30877
30985
|
onBlur: onBlur,
|
|
30878
30986
|
onPointerDown: onFocus,
|
|
30879
|
-
autoFocus: true,
|
|
30880
30987
|
placeholder: "Search for a character..."
|
|
30881
30988
|
})), React__default.createElement(CharacterList, {
|
|
30882
30989
|
characters: searchedCharacters,
|
|
@@ -30889,6 +30996,10 @@ var SearchFriend = function SearchFriend(_ref) {
|
|
|
30889
30996
|
onReject: onRejectRequest
|
|
30890
30997
|
}));
|
|
30891
30998
|
var tabs = [{
|
|
30999
|
+
id: 'friends',
|
|
31000
|
+
title: "Friends (" + friends.length + ")",
|
|
31001
|
+
content: friendsTabContent
|
|
31002
|
+
}, {
|
|
30892
31003
|
id: 'search',
|
|
30893
31004
|
title: 'Search',
|
|
30894
31005
|
content: searchTabContent
|
|
@@ -30897,8 +31008,10 @@ var SearchFriend = function SearchFriend(_ref) {
|
|
|
30897
31008
|
title: "Requests (" + friendRequests.length + ")",
|
|
30898
31009
|
content: requestsTabContent
|
|
30899
31010
|
}];
|
|
30900
|
-
return React__default.createElement(
|
|
31011
|
+
return React__default.createElement(ListWrapper, null, React__default.createElement(InternalTabs, {
|
|
30901
31012
|
tabs: tabs,
|
|
31013
|
+
activeTab: activeTab,
|
|
31014
|
+
onTabChange: setActiveTab,
|
|
30902
31015
|
activeTextColor: "#000",
|
|
30903
31016
|
inactiveColor: "#777",
|
|
30904
31017
|
borderColor: "#f59e0b"
|
|
@@ -30923,7 +31036,7 @@ var FriendRequestSection = function FriendRequestSection(_ref3) {
|
|
|
30923
31036
|
var friendRequests = _ref3.friendRequests,
|
|
30924
31037
|
onAccept = _ref3.onAccept,
|
|
30925
31038
|
onReject = _ref3.onReject;
|
|
30926
|
-
return React__default.createElement(React__default.Fragment, null, friendRequests.length > 0
|
|
31039
|
+
return React__default.createElement(React__default.Fragment, null, friendRequests.length > 0 ? React__default.createElement(ListContainer$1, null, friendRequests.map(function (character) {
|
|
30927
31040
|
return React__default.createElement(ListItem, {
|
|
30928
31041
|
key: character._id
|
|
30929
31042
|
}, React__default.createElement(CharacterName, null, character.name), React__default.createElement(AcceptRejectActions, null, React__default.createElement(UserActionLink, {
|
|
@@ -30937,94 +31050,7 @@ var FriendRequestSection = function FriendRequestSection(_ref3) {
|
|
|
30937
31050
|
return onReject(character);
|
|
30938
31051
|
}
|
|
30939
31052
|
}, "Reject")));
|
|
30940
|
-
})));
|
|
30941
|
-
};
|
|
30942
|
-
var Container$l = /*#__PURE__*/styled__default.div.withConfig({
|
|
30943
|
-
displayName: "SearchFriend__Container",
|
|
30944
|
-
componentId: "sc-1lt1ols-0"
|
|
30945
|
-
})(["display:flex;flex-direction:column;gap:1rem;"]);
|
|
30946
|
-
var SearchForm = /*#__PURE__*/styled__default.form.withConfig({
|
|
30947
|
-
displayName: "SearchFriend__SearchForm",
|
|
30948
|
-
componentId: "sc-1lt1ols-1"
|
|
30949
|
-
})(["display:flex;align-items:center;width:100%;margin-top:1rem;"]);
|
|
30950
|
-
var SearchInput = /*#__PURE__*/styled__default.input.withConfig({
|
|
30951
|
-
displayName: "SearchFriend__SearchInput",
|
|
30952
|
-
componentId: "sc-1lt1ols-2"
|
|
30953
|
-
})(["width:100%;background-color:rgba(0,0,0,0.25);border:none;padding:0.5rem;font-size:", ";"], uiFonts.size.small);
|
|
30954
|
-
var ListContainer$1 = /*#__PURE__*/styled__default.ul.withConfig({
|
|
30955
|
-
displayName: "SearchFriend__ListContainer",
|
|
30956
|
-
componentId: "sc-1lt1ols-3"
|
|
30957
|
-
})(["list-style:none;padding:0;margin:0;width:100%;max-height:50vh;overflow-y:auto;@media (max-width:768px){max-height:90vh;}"]);
|
|
30958
|
-
var ListItem = /*#__PURE__*/styled__default.li.withConfig({
|
|
30959
|
-
displayName: "SearchFriend__ListItem",
|
|
30960
|
-
componentId: "sc-1lt1ols-4"
|
|
30961
|
-
})(["display:flex;align-items:center;justify-content:space-between;padding:0.5rem;border-bottom:1px solid rgba(255,255,255,0.1);"]);
|
|
30962
|
-
var CharacterName = /*#__PURE__*/styled__default.p.withConfig({
|
|
30963
|
-
displayName: "SearchFriend__CharacterName",
|
|
30964
|
-
componentId: "sc-1lt1ols-5"
|
|
30965
|
-
})(["font-size:", ";margin:0;"], uiFonts.size.small);
|
|
30966
|
-
var AcceptRejectActions = /*#__PURE__*/styled__default.div.withConfig({
|
|
30967
|
-
displayName: "SearchFriend__AcceptRejectActions",
|
|
30968
|
-
componentId: "sc-1lt1ols-6"
|
|
30969
|
-
})(["display:flex;gap:0.5rem;"]);
|
|
30970
|
-
|
|
30971
|
-
var FriendList = function FriendList(_ref) {
|
|
30972
|
-
var friends = _ref.friends,
|
|
30973
|
-
friendRequests = _ref.friendRequests,
|
|
30974
|
-
searchedCharacters = _ref.searchedCharacters,
|
|
30975
|
-
onFocus = _ref.onFocus,
|
|
30976
|
-
onBlur = _ref.onBlur,
|
|
30977
|
-
onSearch = _ref.onSearch,
|
|
30978
|
-
onAcceptRequest = _ref.onAcceptRequest,
|
|
30979
|
-
onSendFriendRequest = _ref.onSendFriendRequest,
|
|
30980
|
-
onRemoveFriend = _ref.onRemoveFriend,
|
|
30981
|
-
onOpenPrivateMessage = _ref.onOpenPrivateMessage,
|
|
30982
|
-
onRejectRequest = _ref.onRejectRequest,
|
|
30983
|
-
onAddFriend = _ref.onAddFriend,
|
|
30984
|
-
onBackFriendList = _ref.onBackFriendList;
|
|
30985
|
-
var _useState = React.useState(false),
|
|
30986
|
-
isAddFriendUI = _useState[0],
|
|
30987
|
-
setIsAddFriendUI = _useState[1];
|
|
30988
|
-
React.useEffect(function () {
|
|
30989
|
-
if (isAddFriendUI) {
|
|
30990
|
-
onAddFriend == null ? void 0 : onAddFriend();
|
|
30991
|
-
} else {
|
|
30992
|
-
onBackFriendList == null ? void 0 : onBackFriendList();
|
|
30993
|
-
}
|
|
30994
|
-
}, [isAddFriendUI]);
|
|
30995
|
-
return React__default.createElement(ListWrapper, null, isAddFriendUI ? React__default.createElement(SearchFriend, {
|
|
30996
|
-
searchedCharacters: searchedCharacters,
|
|
30997
|
-
onSendFriendRequest: onSendFriendRequest,
|
|
30998
|
-
onAcceptRequest: onAcceptRequest,
|
|
30999
|
-
onRejectRequest: onRejectRequest,
|
|
31000
|
-
friendRequests: friendRequests,
|
|
31001
|
-
onSearch: onSearch,
|
|
31002
|
-
onBlur: onBlur,
|
|
31003
|
-
onFocus: onFocus
|
|
31004
|
-
}) : React__default.createElement(React__default.Fragment, null, React__default.createElement(ScrollableArea, null, React__default.createElement(Table, null, React__default.createElement("thead", null, React__default.createElement(TableRow, null, React__default.createElement(TableHeader, null, "Online"), React__default.createElement(TableHeader, null, "Name"), React__default.createElement(TableHeader, null, "Actions"))), React__default.createElement("tbody", null, friends.map(function (friend) {
|
|
31005
|
-
return React__default.createElement(TableRow, {
|
|
31006
|
-
key: friend._id
|
|
31007
|
-
}, React__default.createElement(TableCell, null, React__default.createElement(IsOnlineBadge, {
|
|
31008
|
-
"$isOnline": friend.isOnline
|
|
31009
|
-
})), React__default.createElement(TableCell, null, friend.name), React__default.createElement(TableCell, null, React__default.createElement(ActionButtons, null, React__default.createElement(UserActionLink, {
|
|
31010
|
-
color: uiColors.white,
|
|
31011
|
-
onClick: function onClick() {
|
|
31012
|
-
return onOpenPrivateMessage(friend);
|
|
31013
|
-
}
|
|
31014
|
-
}, "Chat"), React__default.createElement(UserActionLink, {
|
|
31015
|
-
color: uiColors.red,
|
|
31016
|
-
onClick: function onClick() {
|
|
31017
|
-
return onRemoveFriend(friend);
|
|
31018
|
-
}
|
|
31019
|
-
}, "Remove"))));
|
|
31020
|
-
}))))), React__default.createElement(ButtonContainer$1, null, React__default.createElement(Button, {
|
|
31021
|
-
buttonType: exports.ButtonTypes.RPGUIButton,
|
|
31022
|
-
onClick: function onClick() {
|
|
31023
|
-
return setIsAddFriendUI(function (prev) {
|
|
31024
|
-
return !prev;
|
|
31025
|
-
});
|
|
31026
|
-
}
|
|
31027
|
-
}, isAddFriendUI ? 'Back' : 'Add New Friend')));
|
|
31053
|
+
})) : React__default.createElement(EmptyMessage, null, "No pending friend requests"));
|
|
31028
31054
|
};
|
|
31029
31055
|
// Styled components for FriendList UI
|
|
31030
31056
|
var ListWrapper = /*#__PURE__*/styled__default.div.withConfig({
|
|
@@ -31038,14 +31064,50 @@ var ScrollableArea = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
31038
31064
|
var IsOnlineBadge = /*#__PURE__*/styled__default.div.withConfig({
|
|
31039
31065
|
displayName: "FriendList__IsOnlineBadge",
|
|
31040
31066
|
componentId: "sc-3jf9vt-2"
|
|
31041
|
-
})(["width:10px;height:10px;border-radius:50%;background-color:", ";margin-right:1rem;"], function (
|
|
31042
|
-
var $isOnline =
|
|
31067
|
+
})(["width:10px;height:10px;border-radius:50%;background-color:", ";margin-right:1rem;"], function (_ref4) {
|
|
31068
|
+
var $isOnline = _ref4.$isOnline;
|
|
31043
31069
|
return $isOnline ? uiColors.lightGreen : uiColors.red;
|
|
31044
31070
|
});
|
|
31045
|
-
var
|
|
31046
|
-
displayName: "
|
|
31071
|
+
var SearchForm = /*#__PURE__*/styled__default.form.withConfig({
|
|
31072
|
+
displayName: "FriendList__SearchForm",
|
|
31047
31073
|
componentId: "sc-3jf9vt-3"
|
|
31048
|
-
})(["display:flex;
|
|
31074
|
+
})(["display:flex;align-items:center;width:100%;margin-top:1rem;"]);
|
|
31075
|
+
var SearchInput = /*#__PURE__*/styled__default.input.withConfig({
|
|
31076
|
+
displayName: "FriendList__SearchInput",
|
|
31077
|
+
componentId: "sc-3jf9vt-4"
|
|
31078
|
+
})(["width:100%;background-color:rgba(0,0,0,0.25);border:none;padding:0.5rem;font-size:", ";"], uiFonts.size.small);
|
|
31079
|
+
var ListContainer$1 = /*#__PURE__*/styled__default.ul.withConfig({
|
|
31080
|
+
displayName: "FriendList__ListContainer",
|
|
31081
|
+
componentId: "sc-3jf9vt-5"
|
|
31082
|
+
})(["list-style:none;padding:0;margin:0;width:100%;max-height:50vh;overflow-y:auto;@media (max-width:768px){max-height:90vh;}"]);
|
|
31083
|
+
var ListItem = /*#__PURE__*/styled__default.li.withConfig({
|
|
31084
|
+
displayName: "FriendList__ListItem",
|
|
31085
|
+
componentId: "sc-3jf9vt-6"
|
|
31086
|
+
})(["display:flex;align-items:center;justify-content:space-between;padding:0.5rem;border-bottom:1px solid rgba(255,255,255,0.1);"]);
|
|
31087
|
+
var CharacterName = /*#__PURE__*/styled__default.p.withConfig({
|
|
31088
|
+
displayName: "FriendList__CharacterName",
|
|
31089
|
+
componentId: "sc-3jf9vt-7"
|
|
31090
|
+
})(["font-size:", ";margin:0;"], uiFonts.size.small);
|
|
31091
|
+
var AcceptRejectActions = /*#__PURE__*/styled__default.div.withConfig({
|
|
31092
|
+
displayName: "FriendList__AcceptRejectActions",
|
|
31093
|
+
componentId: "sc-3jf9vt-8"
|
|
31094
|
+
})(["display:flex;gap:0.5rem;"]);
|
|
31095
|
+
var EmptyMessage = /*#__PURE__*/styled__default.p.withConfig({
|
|
31096
|
+
displayName: "FriendList__EmptyMessage",
|
|
31097
|
+
componentId: "sc-3jf9vt-9"
|
|
31098
|
+
})(["text-align:center;color:#888;padding:1rem;font-size:", ";"], uiFonts.size.small);
|
|
31099
|
+
var EmptyStateContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
31100
|
+
displayName: "FriendList__EmptyStateContainer",
|
|
31101
|
+
componentId: "sc-3jf9vt-10"
|
|
31102
|
+
})(["display:flex;flex-direction:column;align-items:center;justify-content:center;padding:2rem;gap:1rem;"]);
|
|
31103
|
+
var EmptyStateText = /*#__PURE__*/styled__default.p.withConfig({
|
|
31104
|
+
displayName: "FriendList__EmptyStateText",
|
|
31105
|
+
componentId: "sc-3jf9vt-11"
|
|
31106
|
+
})(["text-align:center;color:#888;font-size:", ";margin:0;"], uiFonts.size.small);
|
|
31107
|
+
var AddFriendCTA = /*#__PURE__*/styled__default.button.withConfig({
|
|
31108
|
+
displayName: "FriendList__AddFriendCTA",
|
|
31109
|
+
componentId: "sc-3jf9vt-12"
|
|
31110
|
+
})(["background-color:", ";color:#000;border:none;padding:0.5rem 1rem;font-size:", ";cursor:pointer;border-radius:4px;transition:opacity 0.2s;&:hover{opacity:0.8;}"], uiColors.lightGreen, uiFonts.size.small);
|
|
31049
31111
|
|
|
31050
31112
|
var IS_MOBILE_OR_TABLET = /*#__PURE__*/shared.isMobileOrTablet();
|
|
31051
31113
|
|
|
@@ -31142,7 +31204,7 @@ var NPCDialogText = function NPCDialogText(_ref) {
|
|
|
31142
31204
|
var _useState2 = React.useState(false),
|
|
31143
31205
|
showGoNextIndicator = _useState2[0],
|
|
31144
31206
|
setShowGoNextIndicator = _useState2[1];
|
|
31145
|
-
return React__default.createElement(Container$
|
|
31207
|
+
return React__default.createElement(Container$l, null, React__default.createElement(DynamicText, {
|
|
31146
31208
|
text: (textChunks == null ? void 0 : textChunks[chunkIndex]) || '',
|
|
31147
31209
|
onFinish: function onFinish() {
|
|
31148
31210
|
setShowGoNextIndicator(true);
|
|
@@ -31160,7 +31222,7 @@ var NPCDialogText = function NPCDialogText(_ref) {
|
|
|
31160
31222
|
}
|
|
31161
31223
|
}));
|
|
31162
31224
|
};
|
|
31163
|
-
var Container$
|
|
31225
|
+
var Container$l = /*#__PURE__*/styled__default.div.withConfig({
|
|
31164
31226
|
displayName: "NPCDialogText__Container",
|
|
31165
31227
|
componentId: "sc-1cxkdh9-0"
|
|
31166
31228
|
})([""]);
|
|
@@ -31312,7 +31374,7 @@ var QuestionDialog = function QuestionDialog(_ref) {
|
|
|
31312
31374
|
return null;
|
|
31313
31375
|
});
|
|
31314
31376
|
};
|
|
31315
|
-
return React__default.createElement(Container$
|
|
31377
|
+
return React__default.createElement(Container$m, null, React__default.createElement(QuestionContainer, null, React__default.createElement(DynamicText, {
|
|
31316
31378
|
text: currentQuestion.text,
|
|
31317
31379
|
onStart: function onStart() {
|
|
31318
31380
|
return setCanShowAnswers(false);
|
|
@@ -31322,7 +31384,7 @@ var QuestionDialog = function QuestionDialog(_ref) {
|
|
|
31322
31384
|
}
|
|
31323
31385
|
})), canShowAnswers && React__default.createElement(AnswersContainer, null, onRenderCurrentAnswers()));
|
|
31324
31386
|
};
|
|
31325
|
-
var Container$
|
|
31387
|
+
var Container$m = /*#__PURE__*/styled__default.div.withConfig({
|
|
31326
31388
|
displayName: "QuestionDialog__Container",
|
|
31327
31389
|
componentId: "sc-bxc5u0-0"
|
|
31328
31390
|
})(["display:flex;word-break:break-all;box-sizing:border-box;justify-content:flex-start;align-items:flex-start;flex-wrap:wrap;"]);
|
|
@@ -31382,7 +31444,7 @@ var NPCDialog = function NPCDialog(_ref) {
|
|
|
31382
31444
|
}
|
|
31383
31445
|
})), type === exports.NPCDialogType.TextAndThumbnail && React__default.createElement(ThumbnailContainer, null, React__default.createElement(NPCThumbnail, {
|
|
31384
31446
|
src: imagePath || img$7
|
|
31385
|
-
}))) : React__default.createElement(React__default.Fragment, null, React__default.createElement(Container$
|
|
31447
|
+
}))) : React__default.createElement(React__default.Fragment, null, React__default.createElement(Container$n, null, React__default.createElement(CloseIcon, {
|
|
31386
31448
|
onPointerDown: _onClose
|
|
31387
31449
|
}, "X"), React__default.createElement(TextContainer$1, {
|
|
31388
31450
|
flex: type === exports.NPCDialogType.TextAndThumbnail ? '70%' : '100%'
|
|
@@ -31398,7 +31460,7 @@ var NPCDialog = function NPCDialog(_ref) {
|
|
|
31398
31460
|
src: imagePath || img$7
|
|
31399
31461
|
})))));
|
|
31400
31462
|
};
|
|
31401
|
-
var Container$
|
|
31463
|
+
var Container$n = /*#__PURE__*/styled__default.div.withConfig({
|
|
31402
31464
|
displayName: "NPCDialog__Container",
|
|
31403
31465
|
componentId: "sc-1b4aw74-0"
|
|
31404
31466
|
})(["display:flex;width:100%;height:100%;box-sizing:border-box;justify-content:center;align-items:flex-start;position:relative;"]);
|
|
@@ -31458,7 +31520,7 @@ var NPCMultiDialog = function NPCMultiDialog(_ref) {
|
|
|
31458
31520
|
type: exports.RPGUIContainerTypes.FramedGold,
|
|
31459
31521
|
width: '50%',
|
|
31460
31522
|
height: '180px'
|
|
31461
|
-
}, React__default.createElement(React__default.Fragment, null, React__default.createElement(Container$
|
|
31523
|
+
}, React__default.createElement(React__default.Fragment, null, React__default.createElement(Container$o, null, ((_textAndTypeArray$sli = textAndTypeArray[slide]) == null ? void 0 : _textAndTypeArray$sli.imageSide) === 'right' && React__default.createElement(React__default.Fragment, null, React__default.createElement(TextContainer$2, {
|
|
31462
31524
|
flex: '70%'
|
|
31463
31525
|
}, React__default.createElement(NPCDialogText, {
|
|
31464
31526
|
onStartStep: function onStartStep() {
|
|
@@ -31500,7 +31562,7 @@ var NPCMultiDialog = function NPCMultiDialog(_ref) {
|
|
|
31500
31562
|
src: img$6
|
|
31501
31563
|
}))), ")"));
|
|
31502
31564
|
};
|
|
31503
|
-
var Container$
|
|
31565
|
+
var Container$o = /*#__PURE__*/styled__default.div.withConfig({
|
|
31504
31566
|
displayName: "NPCMultiDialog__Container",
|
|
31505
31567
|
componentId: "sc-rvu5wg-0"
|
|
31506
31568
|
})(["display:flex;width:100%;height:100%;box-sizing:border-box;justify-content:center;align-items:flex-start;position:relative;"]);
|
|
@@ -31771,78 +31833,6 @@ var FadeInCarouselImg = /*#__PURE__*/styled__default(CarouselImg).withConfig({
|
|
|
31771
31833
|
componentId: "sc-gdvbly-5"
|
|
31772
31834
|
})(["animation:", " 0.5s;"], fadeIn);
|
|
31773
31835
|
|
|
31774
|
-
var UI_BREAKPOINT_MOBILE = '950px';
|
|
31775
|
-
var UI_BREAKPOINT_SMALL_LAPTOP = '1400px';
|
|
31776
|
-
|
|
31777
|
-
var InternalTabs = function InternalTabs(_ref) {
|
|
31778
|
-
var _tabs$, _tabs$find;
|
|
31779
|
-
var tabs = _ref.tabs,
|
|
31780
|
-
_ref$activeColor = _ref.activeColor,
|
|
31781
|
-
activeColor = _ref$activeColor === void 0 ? '#fef08a' : _ref$activeColor,
|
|
31782
|
-
_ref$activeTextColor = _ref.activeTextColor,
|
|
31783
|
-
activeTextColor = _ref$activeTextColor === void 0 ? '#000000' : _ref$activeTextColor,
|
|
31784
|
-
_ref$inactiveColor = _ref.inactiveColor,
|
|
31785
|
-
inactiveColor = _ref$inactiveColor === void 0 ? '#6b7280' : _ref$inactiveColor,
|
|
31786
|
-
_ref$borderColor = _ref.borderColor,
|
|
31787
|
-
borderColor = _ref$borderColor === void 0 ? '#f59e0b' : _ref$borderColor,
|
|
31788
|
-
_ref$hoverColor = _ref.hoverColor,
|
|
31789
|
-
hoverColor = _ref$hoverColor === void 0 ? '#fef3c7' : _ref$hoverColor,
|
|
31790
|
-
onTabChange = _ref.onTabChange,
|
|
31791
|
-
externalActiveTab = _ref.activeTab;
|
|
31792
|
-
var _useState = React.useState((_tabs$ = tabs[0]) == null ? void 0 : _tabs$.id),
|
|
31793
|
-
internalActiveTab = _useState[0],
|
|
31794
|
-
setInternalActiveTab = _useState[1];
|
|
31795
|
-
var activeTabId = externalActiveTab != null ? externalActiveTab : internalActiveTab;
|
|
31796
|
-
var handleTabClick = function handleTabClick(tabId) {
|
|
31797
|
-
setInternalActiveTab(tabId);
|
|
31798
|
-
onTabChange == null ? void 0 : onTabChange(tabId);
|
|
31799
|
-
};
|
|
31800
|
-
return React__default.createElement(TableWrapper, null, React__default.createElement(TabHeader, {
|
|
31801
|
-
borderColor: borderColor
|
|
31802
|
-
}, tabs.map(function (tab) {
|
|
31803
|
-
return React__default.createElement(TabButton, {
|
|
31804
|
-
key: tab.id,
|
|
31805
|
-
active: activeTabId === tab.id,
|
|
31806
|
-
activeColor: activeColor,
|
|
31807
|
-
activeTextColor: activeTextColor,
|
|
31808
|
-
inactiveColor: inactiveColor,
|
|
31809
|
-
borderColor: borderColor,
|
|
31810
|
-
hoverColor: hoverColor,
|
|
31811
|
-
onClick: function onClick() {
|
|
31812
|
-
return handleTabClick(tab.id);
|
|
31813
|
-
}
|
|
31814
|
-
}, tab.title);
|
|
31815
|
-
})), React__default.createElement(ContentWrapper, null, (_tabs$find = tabs.find(function (tab) {
|
|
31816
|
-
return tab.id === activeTabId;
|
|
31817
|
-
})) == null ? void 0 : _tabs$find.content));
|
|
31818
|
-
};
|
|
31819
|
-
var TableWrapper = /*#__PURE__*/styled__default.div.withConfig({
|
|
31820
|
-
displayName: "InternalTabs__TableWrapper",
|
|
31821
|
-
componentId: "sc-ldufv0-0"
|
|
31822
|
-
})(["width:100%;"]);
|
|
31823
|
-
var TabHeader = /*#__PURE__*/styled__default.div.withConfig({
|
|
31824
|
-
displayName: "InternalTabs__TabHeader",
|
|
31825
|
-
componentId: "sc-ldufv0-1"
|
|
31826
|
-
})(["display:flex;border-bottom:1px solid ", ";"], function (props) {
|
|
31827
|
-
return props.borderColor;
|
|
31828
|
-
});
|
|
31829
|
-
var TabButton = /*#__PURE__*/styled__default.button.withConfig({
|
|
31830
|
-
displayName: "InternalTabs__TabButton",
|
|
31831
|
-
componentId: "sc-ldufv0-2"
|
|
31832
|
-
})(["flex:1;padding:0.25rem 0.5rem;font-size:0.75rem;font-weight:500;border-right:1px solid ", ";background-color:", ";color:", ";white-space:nowrap;overflow:hidden;text-overflow:ellipsis;@media (min-width:480px){padding:0.375rem 0.75rem;font-size:0.8125rem;}@media (min-width:", "){padding:0.5rem 1rem;font-size:0.875rem;}&:last-child{border-right:none;}&:hover{background-color:", ";}"], function (props) {
|
|
31833
|
-
return props.borderColor;
|
|
31834
|
-
}, function (props) {
|
|
31835
|
-
return props.active ? props.activeColor : 'transparent';
|
|
31836
|
-
}, function (props) {
|
|
31837
|
-
return props.active ? props.activeTextColor : props.inactiveColor;
|
|
31838
|
-
}, UI_BREAKPOINT_MOBILE, function (props) {
|
|
31839
|
-
return props.active ? props.activeColor : props.hoverColor;
|
|
31840
|
-
});
|
|
31841
|
-
var ContentWrapper = /*#__PURE__*/styled__default.div.withConfig({
|
|
31842
|
-
displayName: "InternalTabs__ContentWrapper",
|
|
31843
|
-
componentId: "sc-ldufv0-3"
|
|
31844
|
-
})(["width:100%;"]);
|
|
31845
|
-
|
|
31846
31836
|
var TOOLTIP_OFFSET = 10;
|
|
31847
31837
|
var MIN_VISIBLE_HEIGHT = 100;
|
|
31848
31838
|
var useTooltipPosition = function useTooltipPosition() {
|
|
@@ -31939,7 +31929,7 @@ var Pagination = function Pagination(_ref) {
|
|
|
31939
31929
|
totalPages = _ref.totalPages,
|
|
31940
31930
|
onPageChange = _ref.onPageChange,
|
|
31941
31931
|
className = _ref.className;
|
|
31942
|
-
return React__default.createElement(Container$
|
|
31932
|
+
return React__default.createElement(Container$p, {
|
|
31943
31933
|
className: className
|
|
31944
31934
|
}, React__default.createElement(PaginationButton$1, {
|
|
31945
31935
|
onClick: function onClick() {
|
|
@@ -31957,7 +31947,7 @@ var Pagination = function Pagination(_ref) {
|
|
|
31957
31947
|
size: 12
|
|
31958
31948
|
})));
|
|
31959
31949
|
};
|
|
31960
|
-
var Container$
|
|
31950
|
+
var Container$p = /*#__PURE__*/styled__default.div.withConfig({
|
|
31961
31951
|
displayName: "Pagination__Container",
|
|
31962
31952
|
componentId: "sc-3k4m4u-0"
|
|
31963
31953
|
})(["display:flex;align-items:center;justify-content:center;gap:16px;padding:8px;"]);
|
|
@@ -32065,12 +32055,12 @@ var PaginatedContent = function PaginatedContent(_ref) {
|
|
|
32065
32055
|
setCurrentPage = _usePagination.setCurrentPage,
|
|
32066
32056
|
paginatedItems = _usePagination.paginatedItems,
|
|
32067
32057
|
totalPages = _usePagination.totalPages;
|
|
32068
|
-
return React__default.createElement(Container$
|
|
32058
|
+
return React__default.createElement(Container$q, {
|
|
32069
32059
|
className: className
|
|
32070
32060
|
}, (searchOptions || filterOptions) && React__default.createElement(SearchHeader$1, {
|
|
32071
32061
|
searchOptions: searchOptions,
|
|
32072
32062
|
filterOptions: filterOptions
|
|
32073
|
-
}), items.length === 0 ? React__default.createElement(EmptyMessage, null, emptyMessage) : React__default.createElement(React__default.Fragment, null, React__default.createElement(Content, {
|
|
32063
|
+
}), items.length === 0 ? React__default.createElement(EmptyMessage$1, null, emptyMessage) : React__default.createElement(React__default.Fragment, null, React__default.createElement(Content, {
|
|
32074
32064
|
className: "PaginatedContent-content " + layout,
|
|
32075
32065
|
"$gridColumns": gridColumns,
|
|
32076
32066
|
"$itemHeight": itemHeight
|
|
@@ -32087,7 +32077,7 @@ var PaginatedContent = function PaginatedContent(_ref) {
|
|
|
32087
32077
|
onPageChange: setCurrentPage
|
|
32088
32078
|
}))));
|
|
32089
32079
|
};
|
|
32090
|
-
var Container$
|
|
32080
|
+
var Container$q = /*#__PURE__*/styled__default.div.withConfig({
|
|
32091
32081
|
displayName: "PaginatedContent__Container",
|
|
32092
32082
|
componentId: "sc-lzp9hn-0"
|
|
32093
32083
|
})(["display:flex;flex-direction:column;gap:0.5rem;min-height:400px;width:100%;"]);
|
|
@@ -32106,7 +32096,7 @@ var PaginationContainer$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
32106
32096
|
displayName: "PaginatedContent__PaginationContainer",
|
|
32107
32097
|
componentId: "sc-lzp9hn-2"
|
|
32108
32098
|
})(["display:flex;justify-content:center;padding:0.5rem;@media (min-width:480px){padding:1rem;}"]);
|
|
32109
|
-
var EmptyMessage = /*#__PURE__*/styled__default.div.withConfig({
|
|
32099
|
+
var EmptyMessage$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
32110
32100
|
displayName: "PaginatedContent__EmptyMessage",
|
|
32111
32101
|
componentId: "sc-lzp9hn-3"
|
|
32112
32102
|
})(["text-align:center;color:#9ca3af;padding:2rem;flex:1;display:flex;align-items:center;justify-content:center;"]);
|
|
@@ -32209,7 +32199,7 @@ var BaseInformationDetails = function BaseInformationDetails(_ref) {
|
|
|
32209
32199
|
atlasIMG = _ref.atlasIMG,
|
|
32210
32200
|
onBack = _ref.onBack,
|
|
32211
32201
|
children = _ref.children;
|
|
32212
|
-
return React__default.createElement(Container$
|
|
32202
|
+
return React__default.createElement(Container$r, null, React__default.createElement(Overlay, {
|
|
32213
32203
|
onClick: onBack
|
|
32214
32204
|
}), React__default.createElement(Modal, null, React__default.createElement(CloseButton$5, {
|
|
32215
32205
|
onClick: onBack
|
|
@@ -32222,7 +32212,7 @@ var BaseInformationDetails = function BaseInformationDetails(_ref) {
|
|
|
32222
32212
|
imgScale: 1
|
|
32223
32213
|
})), React__default.createElement(Title$3, null, name)), React__default.createElement(Content$1, null, children)));
|
|
32224
32214
|
};
|
|
32225
|
-
var Container$
|
|
32215
|
+
var Container$r = /*#__PURE__*/styled__default.div.withConfig({
|
|
32226
32216
|
displayName: "BaseInformationDetails__Container",
|
|
32227
32217
|
componentId: "sc-1vguuz8-0"
|
|
32228
32218
|
})(["position:fixed;inset:0;display:flex;justify-content:center;align-items:center;z-index:9999;"]);
|
|
@@ -32264,7 +32254,7 @@ var Collapsible = function Collapsible(_ref) {
|
|
|
32264
32254
|
var _useState = React.useState(defaultOpen),
|
|
32265
32255
|
isOpen = _useState[0],
|
|
32266
32256
|
setIsOpen = _useState[1];
|
|
32267
|
-
return React__default.createElement(Container$
|
|
32257
|
+
return React__default.createElement(Container$s, {
|
|
32268
32258
|
className: className
|
|
32269
32259
|
}, React__default.createElement(Header$3, {
|
|
32270
32260
|
onClick: function onClick() {
|
|
@@ -32272,7 +32262,7 @@ var Collapsible = function Collapsible(_ref) {
|
|
|
32272
32262
|
}
|
|
32273
32263
|
}, React__default.createElement(Title$4, null, title), React__default.createElement(Icon$1, null, isOpen ? React__default.createElement(fa.FaChevronUp, null) : React__default.createElement(fa.FaChevronDown, null))), isOpen && React__default.createElement(Content$2, null, children));
|
|
32274
32264
|
};
|
|
32275
|
-
var Container$
|
|
32265
|
+
var Container$s = /*#__PURE__*/styled__default.div.withConfig({
|
|
32276
32266
|
displayName: "Collapsible__Container",
|
|
32277
32267
|
componentId: "sc-s4h8ey-0"
|
|
32278
32268
|
})(["background:rgba(0,0,0,0.3);border-radius:4px;overflow:hidden;border:1px solid ", ";"], uiColors.darkGray);
|
|
@@ -32602,7 +32592,7 @@ var AdvancedFilters = function AdvancedFilters(_ref) {
|
|
|
32602
32592
|
onClose();
|
|
32603
32593
|
}
|
|
32604
32594
|
};
|
|
32605
|
-
return React__default.createElement(Container$
|
|
32595
|
+
return React__default.createElement(Container$t, null, React__default.createElement(FilterButton, {
|
|
32606
32596
|
onClick: onToggle,
|
|
32607
32597
|
"$hasActiveFilters": hasActiveFilters,
|
|
32608
32598
|
ref: buttonRef
|
|
@@ -32633,7 +32623,7 @@ var AdvancedFilters = function AdvancedFilters(_ref) {
|
|
|
32633
32623
|
onClick: onClearAll
|
|
32634
32624
|
}, "Clear All Filters"))));
|
|
32635
32625
|
};
|
|
32636
|
-
var Container$
|
|
32626
|
+
var Container$t = /*#__PURE__*/styled__default.div.withConfig({
|
|
32637
32627
|
displayName: "AdvancedFilters__Container",
|
|
32638
32628
|
componentId: "sc-1xj6ldr-0"
|
|
32639
32629
|
})(["position:relative;margin-left:0.5rem;"]);
|
|
@@ -33727,7 +33717,7 @@ var InformationCenter = function InformationCenter(_ref) {
|
|
|
33727
33717
|
minWidth: "300px",
|
|
33728
33718
|
cancelDrag: ".PaginatedContent-content",
|
|
33729
33719
|
onCloseButton: onClose
|
|
33730
|
-
}, React__default.createElement(Container$
|
|
33720
|
+
}, React__default.createElement(Container$u, null, React__default.createElement(InternalTabs, {
|
|
33731
33721
|
tabs: tabs,
|
|
33732
33722
|
activeTextColor: "#000000",
|
|
33733
33723
|
activeTab: activeTab,
|
|
@@ -33738,7 +33728,7 @@ var InformationCenter = function InformationCenter(_ref) {
|
|
|
33738
33728
|
hoverColor: "#fef3c7"
|
|
33739
33729
|
})));
|
|
33740
33730
|
};
|
|
33741
|
-
var Container$
|
|
33731
|
+
var Container$u = /*#__PURE__*/styled__default.div.withConfig({
|
|
33742
33732
|
displayName: "InformationCenter__Container",
|
|
33743
33733
|
componentId: "sc-1ttl62e-0"
|
|
33744
33734
|
})(["width:100%;max-width:100%;margin:0 auto;padding:0.125rem;overflow:hidden;box-sizing:border-box;@media (min-width:320px){padding:0.25rem;}@media (min-width:360px){padding:0.5rem;}@media (min-width:480px){padding:0.75rem;}"]);
|
|
@@ -33909,7 +33899,7 @@ var ShortcutsSetter = function ShortcutsSetter(_ref) {
|
|
|
33909
33899
|
}
|
|
33910
33900
|
return null;
|
|
33911
33901
|
};
|
|
33912
|
-
return React__default.createElement(Container$
|
|
33902
|
+
return React__default.createElement(Container$v, null, React__default.createElement("p", null, "Shortcuts:"), React__default.createElement(List, {
|
|
33913
33903
|
id: "shortcuts_list"
|
|
33914
33904
|
}, Array.from({
|
|
33915
33905
|
length: 12
|
|
@@ -33927,7 +33917,7 @@ var ShortcutsSetter = function ShortcutsSetter(_ref) {
|
|
|
33927
33917
|
}, getContent(i));
|
|
33928
33918
|
})));
|
|
33929
33919
|
};
|
|
33930
|
-
var Container$
|
|
33920
|
+
var Container$v = /*#__PURE__*/styled__default.div.withConfig({
|
|
33931
33921
|
displayName: "ShortcutsSetter__Container",
|
|
33932
33922
|
componentId: "sc-xuouuf-0"
|
|
33933
33923
|
})(["p{margin:0;margin-left:0.5rem;font-size:10px;}width:100%;"]);
|
|
@@ -34470,13 +34460,13 @@ var ColorSelector = function ColorSelector(_ref) {
|
|
|
34470
34460
|
cancelDrag: ".react-colorful",
|
|
34471
34461
|
width: "25rem",
|
|
34472
34462
|
onCloseButton: onClose
|
|
34473
|
-
}, React__default.createElement(Container$
|
|
34463
|
+
}, React__default.createElement(Container$w, null, React__default.createElement(Header$4, null, "Select Color"), React__default.createElement(ColorPickerWrapper, null, React__default.createElement(reactColorful.HexColorPicker, {
|
|
34474
34464
|
color: currentColor,
|
|
34475
34465
|
onChange: function onChange(color) {
|
|
34476
34466
|
setCurrentColor(color);
|
|
34477
34467
|
_onChange(color);
|
|
34478
34468
|
}
|
|
34479
|
-
})), React__default.createElement(ButtonContainer$
|
|
34469
|
+
})), React__default.createElement(ButtonContainer$1, null, React__default.createElement(Button, {
|
|
34480
34470
|
buttonType: exports.ButtonTypes.RPGUIButton,
|
|
34481
34471
|
type: "button",
|
|
34482
34472
|
onClick: handleConfirm
|
|
@@ -34486,7 +34476,7 @@ var ColorSelector = function ColorSelector(_ref) {
|
|
|
34486
34476
|
onClose: handleClose
|
|
34487
34477
|
}));
|
|
34488
34478
|
};
|
|
34489
|
-
var Container$
|
|
34479
|
+
var Container$w = /*#__PURE__*/styled__default.div.withConfig({
|
|
34490
34480
|
displayName: "ItemPropertyColorSelector__Container",
|
|
34491
34481
|
componentId: "sc-me1r4z-0"
|
|
34492
34482
|
})(["text-align:center;background:inherit;display:flex;flex-direction:column;gap:1.5rem;align-items:center;width:100%;max-width:24rem;margin:0 auto;"]);
|
|
@@ -34498,7 +34488,7 @@ var ColorPickerWrapper = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
34498
34488
|
displayName: "ItemPropertyColorSelector__ColorPickerWrapper",
|
|
34499
34489
|
componentId: "sc-me1r4z-2"
|
|
34500
34490
|
})(["display:flex;justify-content:center;width:100%;.react-colorful{width:100%;max-width:200px;}"]);
|
|
34501
|
-
var ButtonContainer$
|
|
34491
|
+
var ButtonContainer$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
34502
34492
|
displayName: "ItemPropertyColorSelector__ButtonContainer",
|
|
34503
34493
|
componentId: "sc-me1r4z-3"
|
|
34504
34494
|
})(["display:flex;justify-content:center;width:100%;"]);
|
|
@@ -34842,7 +34832,7 @@ var ListMenu = function ListMenu(_ref) {
|
|
|
34842
34832
|
onSelected = _ref.onSelected,
|
|
34843
34833
|
x = _ref.x,
|
|
34844
34834
|
y = _ref.y;
|
|
34845
|
-
return React__default.createElement(Container$
|
|
34835
|
+
return React__default.createElement(Container$x, {
|
|
34846
34836
|
x: x,
|
|
34847
34837
|
y: y
|
|
34848
34838
|
}, React__default.createElement("ul", {
|
|
@@ -34859,7 +34849,7 @@ var ListMenu = function ListMenu(_ref) {
|
|
|
34859
34849
|
}, (params == null ? void 0 : params.text) || 'No text');
|
|
34860
34850
|
})));
|
|
34861
34851
|
};
|
|
34862
|
-
var Container$
|
|
34852
|
+
var Container$x = /*#__PURE__*/styled__default.div.withConfig({
|
|
34863
34853
|
displayName: "ListMenu__Container",
|
|
34864
34854
|
componentId: "sc-i9097t-0"
|
|
34865
34855
|
})(["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) {
|
|
@@ -34878,7 +34868,7 @@ var Pager = function Pager(_ref) {
|
|
|
34878
34868
|
itemsPerPage = _ref.itemsPerPage,
|
|
34879
34869
|
onPageChange = _ref.onPageChange;
|
|
34880
34870
|
var totalPages = Math.ceil(totalItems / itemsPerPage);
|
|
34881
|
-
return React__default.createElement(Container$
|
|
34871
|
+
return React__default.createElement(Container$y, null, React__default.createElement("p", null, "Total items: ", totalItems), React__default.createElement(PagerContainer, null, React__default.createElement("button", {
|
|
34882
34872
|
disabled: currentPage === 1,
|
|
34883
34873
|
onPointerDown: function onPointerDown() {
|
|
34884
34874
|
return onPageChange(Math.max(currentPage - 1, 1));
|
|
@@ -34892,7 +34882,7 @@ var Pager = function Pager(_ref) {
|
|
|
34892
34882
|
}
|
|
34893
34883
|
}, '>')));
|
|
34894
34884
|
};
|
|
34895
|
-
var Container$
|
|
34885
|
+
var Container$y = /*#__PURE__*/styled__default.div.withConfig({
|
|
34896
34886
|
displayName: "Pager__Container",
|
|
34897
34887
|
componentId: "sc-1ekmf50-0"
|
|
34898
34888
|
})(["display:flex;flex-direction:column;align-items:center;p{margin:0;font-size:", ";}"], uiFonts.size.xsmall);
|
|
@@ -34946,7 +34936,7 @@ var MarketplaceRows = function MarketplaceRows(_ref) {
|
|
|
34946
34936
|
maxLines: 1,
|
|
34947
34937
|
maxWidth: "200px",
|
|
34948
34938
|
fontSize: "10px"
|
|
34949
|
-
}, "$", itemPrice)))), React__default.createElement(ButtonContainer$
|
|
34939
|
+
}, "$", itemPrice)))), React__default.createElement(ButtonContainer$2, null, React__default.createElement(Button, {
|
|
34950
34940
|
buttonType: exports.ButtonTypes.RPGUIButton,
|
|
34951
34941
|
disabled: disabled,
|
|
34952
34942
|
onPointerDown: function onPointerDown() {
|
|
@@ -34988,7 +34978,7 @@ var PriceValue = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
34988
34978
|
displayName: "MarketplaceRows__PriceValue",
|
|
34989
34979
|
componentId: "sc-wmpr1o-7"
|
|
34990
34980
|
})(["margin-left:40px;"]);
|
|
34991
|
-
var ButtonContainer$
|
|
34981
|
+
var ButtonContainer$2 = /*#__PURE__*/styled__default.div.withConfig({
|
|
34992
34982
|
displayName: "MarketplaceRows__ButtonContainer",
|
|
34993
34983
|
componentId: "sc-wmpr1o-8"
|
|
34994
34984
|
})(["margin:auto;"]);
|
|
@@ -35413,13 +35403,13 @@ var TabBody = function TabBody(_ref) {
|
|
|
35413
35403
|
children = _ref.children,
|
|
35414
35404
|
styles = _ref.styles,
|
|
35415
35405
|
centerContent = _ref.centerContent;
|
|
35416
|
-
return React__default.createElement(Container$
|
|
35406
|
+
return React__default.createElement(Container$z, {
|
|
35417
35407
|
styles: styles,
|
|
35418
35408
|
"data-tab-id": id,
|
|
35419
35409
|
centerContent: centerContent
|
|
35420
35410
|
}, children);
|
|
35421
35411
|
};
|
|
35422
|
-
var Container$
|
|
35412
|
+
var Container$z = /*#__PURE__*/styled__default.div.withConfig({
|
|
35423
35413
|
displayName: "TabBody__Container",
|
|
35424
35414
|
componentId: "sc-196oof2-0"
|
|
35425
35415
|
})(["width:", ";height:", ";overflow-y:auto;display:", ";justify-content:", ";align-items:", ";"], function (props) {
|
|
@@ -35756,7 +35746,7 @@ var PartyManagerRow = function PartyManagerRow(_ref) {
|
|
|
35756
35746
|
}, charName, " ", isCurrentUser ? '(You)' : '', " ", isLeader ? '(Leader)' : '')), React__default.createElement(TextContainer$5, null, React__default.createElement(Ellipsis, {
|
|
35757
35747
|
maxLines: 1,
|
|
35758
35748
|
maxWidth: "300px"
|
|
35759
|
-
}, charClass)), React__default.createElement(ButtonContainer$
|
|
35749
|
+
}, charClass)), React__default.createElement(ButtonContainer$3, null, canRemove && React__default.createElement(HighlightedText, {
|
|
35760
35750
|
onPointerDown: function onPointerDown() {
|
|
35761
35751
|
return onRemovePlayer(id);
|
|
35762
35752
|
}
|
|
@@ -35774,7 +35764,7 @@ var TextContainer$5 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
35774
35764
|
displayName: "PartyManagerRows__TextContainer",
|
|
35775
35765
|
componentId: "sc-uqajew-1"
|
|
35776
35766
|
})(["color:", ";overflow:hidden;white-space:nowrap;text-overflow:ellipsis;"], uiColors.white);
|
|
35777
|
-
var ButtonContainer$
|
|
35767
|
+
var ButtonContainer$3 = /*#__PURE__*/styled__default.div.withConfig({
|
|
35778
35768
|
displayName: "PartyManagerRows__ButtonContainer",
|
|
35779
35769
|
componentId: "sc-uqajew-2"
|
|
35780
35770
|
})(["display:flex;align-items:center;gap:1rem;justify-content:flex-start;"]);
|
|
@@ -36073,7 +36063,7 @@ var ProgressBar$1 = function ProgressBar(_ref) {
|
|
|
36073
36063
|
// Round only for display, not for calculation
|
|
36074
36064
|
var displayValue = Math.round(value);
|
|
36075
36065
|
var displayMax = Math.round(max);
|
|
36076
|
-
return React__default.createElement(Container$
|
|
36066
|
+
return React__default.createElement(Container$A, {
|
|
36077
36067
|
className: "rpgui-progress",
|
|
36078
36068
|
"data-value": calculatePercentageValue(max, value) / 100,
|
|
36079
36069
|
"data-rpguitype": "progress",
|
|
@@ -36105,7 +36095,7 @@ var TextOverlay$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
36105
36095
|
displayName: "ProgressBar__TextOverlay",
|
|
36106
36096
|
componentId: "sc-qa6fzh-1"
|
|
36107
36097
|
})(["width:100%;position:relative;"]);
|
|
36108
|
-
var Container$
|
|
36098
|
+
var Container$A = /*#__PURE__*/styled__default.div.withConfig({
|
|
36109
36099
|
displayName: "ProgressBar__Container",
|
|
36110
36100
|
componentId: "sc-qa6fzh-2"
|
|
36111
36101
|
})(["display:flex;flex-direction:column;min-width:", "px;width:", "%;justify-content:start;align-items:flex-start;", " @media (max-width:950px){transform:scale(", ");}"], function (props) {
|
|
@@ -36346,9 +36336,9 @@ var InputRadio = function InputRadio(_ref) {
|
|
|
36346
36336
|
|
|
36347
36337
|
var RPGUIScrollbar = function RPGUIScrollbar(_ref) {
|
|
36348
36338
|
var children = _ref.children;
|
|
36349
|
-
return React__default.createElement(Container$
|
|
36339
|
+
return React__default.createElement(Container$B, null, children);
|
|
36350
36340
|
};
|
|
36351
|
-
var Container$
|
|
36341
|
+
var Container$B = /*#__PURE__*/styled__default.div.withConfig({
|
|
36352
36342
|
displayName: "RPGUIScrollbar__Container",
|
|
36353
36343
|
componentId: "sc-p3msmb-0"
|
|
36354
36344
|
})([".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;}"]);
|
|
@@ -36505,7 +36495,7 @@ var SimpleProgressBar = function SimpleProgressBar(_ref) {
|
|
|
36505
36495
|
margin = _ref$margin === void 0 ? 20 : _ref$margin;
|
|
36506
36496
|
// Ensure the width is at least 1% if value is greater than 0, capped at 99.99%
|
|
36507
36497
|
var width = value > 0 ? Math.max(1, Math.min(99.99, value)) : 0;
|
|
36508
|
-
return React__default.createElement(Container$
|
|
36498
|
+
return React__default.createElement(Container$C, {
|
|
36509
36499
|
className: "simple-progress-bar"
|
|
36510
36500
|
}, React__default.createElement(ProgressBarContainer, {
|
|
36511
36501
|
margin: margin
|
|
@@ -36514,7 +36504,7 @@ var SimpleProgressBar = function SimpleProgressBar(_ref) {
|
|
|
36514
36504
|
bgColor: bgColor
|
|
36515
36505
|
}))));
|
|
36516
36506
|
};
|
|
36517
|
-
var Container$
|
|
36507
|
+
var Container$C = /*#__PURE__*/styled__default.div.withConfig({
|
|
36518
36508
|
displayName: "SimpleProgressBar__Container",
|
|
36519
36509
|
componentId: "sc-mbeil3-0"
|
|
36520
36510
|
})(["display:flex;justify-content:center;align-items:center;width:100%;"]);
|
|
@@ -36902,7 +36892,7 @@ var SocialModal = function SocialModal(_ref) {
|
|
|
36902
36892
|
title: "Social Channels",
|
|
36903
36893
|
width: "500px",
|
|
36904
36894
|
onCloseButton: onClose
|
|
36905
|
-
}, React__default.createElement(Container$
|
|
36895
|
+
}, React__default.createElement(Container$D, null, React__default.createElement(HeaderImage, {
|
|
36906
36896
|
src: img$9,
|
|
36907
36897
|
alt: ""
|
|
36908
36898
|
}), React__default.createElement(ButtonsContainer$3, null, React__default.createElement(MainButtons, null, React__default.createElement(SocialButton$1, {
|
|
@@ -36920,7 +36910,7 @@ var SocialModal = function SocialModal(_ref) {
|
|
|
36920
36910
|
onClick: handleWhatsAppClick
|
|
36921
36911
|
}, React__default.createElement(fa.FaWhatsapp, null), " Join WhatsApp")))));
|
|
36922
36912
|
};
|
|
36923
|
-
var Container$
|
|
36913
|
+
var Container$D = /*#__PURE__*/styled__default.div.withConfig({
|
|
36924
36914
|
displayName: "SocialModal__Container",
|
|
36925
36915
|
componentId: "sc-tbjhp9-0"
|
|
36926
36916
|
})(["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% );}"]);
|
|
@@ -36966,7 +36956,7 @@ var SpellInfo$1 = function SpellInfo(_ref) {
|
|
|
36966
36956
|
castingType = spell.castingType,
|
|
36967
36957
|
cooldown = spell.cooldown,
|
|
36968
36958
|
maxDistanceGrid = spell.maxDistanceGrid;
|
|
36969
|
-
return React__default.createElement(Container$
|
|
36959
|
+
return React__default.createElement(Container$E, null, React__default.createElement(Header$6, null, React__default.createElement("div", null, React__default.createElement(Title$b, null, name), React__default.createElement(Type$1, null, magicWords))), React__default.createElement(Statistic$1, null, React__default.createElement("div", {
|
|
36970
36960
|
className: "label"
|
|
36971
36961
|
}, "Casting Type:"), React__default.createElement("div", {
|
|
36972
36962
|
className: "value"
|
|
@@ -36992,7 +36982,7 @@ var SpellInfo$1 = function SpellInfo(_ref) {
|
|
|
36992
36982
|
className: "value"
|
|
36993
36983
|
}, requiredItem))), React__default.createElement(Description$4, null, description));
|
|
36994
36984
|
};
|
|
36995
|
-
var Container$
|
|
36985
|
+
var Container$E = /*#__PURE__*/styled__default.div.withConfig({
|
|
36996
36986
|
displayName: "SpellInfo__Container",
|
|
36997
36987
|
componentId: "sc-4hbw3q-0"
|
|
36998
36988
|
})(["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);
|
|
@@ -37046,7 +37036,7 @@ var MobileSpellTooltip = function MobileSpellTooltip(_ref) {
|
|
|
37046
37036
|
var _ref$current;
|
|
37047
37037
|
(_ref$current = ref.current) == null ? void 0 : _ref$current.classList.add('fadeOut');
|
|
37048
37038
|
};
|
|
37049
|
-
return React__default.createElement(ModalPortal, null, React__default.createElement(Container$
|
|
37039
|
+
return React__default.createElement(ModalPortal, null, React__default.createElement(Container$F, {
|
|
37050
37040
|
ref: ref,
|
|
37051
37041
|
onTouchEnd: function onTouchEnd() {
|
|
37052
37042
|
handleFadeOut();
|
|
@@ -37071,7 +37061,7 @@ var MobileSpellTooltip = function MobileSpellTooltip(_ref) {
|
|
|
37071
37061
|
}, option.text);
|
|
37072
37062
|
}))));
|
|
37073
37063
|
};
|
|
37074
|
-
var Container$
|
|
37064
|
+
var Container$F = /*#__PURE__*/styled__default.div.withConfig({
|
|
37075
37065
|
displayName: "MobileSpellTooltip__Container",
|
|
37076
37066
|
componentId: "sc-6p7uvr-0"
|
|
37077
37067
|
})(["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;}"]);
|
|
@@ -37112,13 +37102,13 @@ var MagicTooltip = function MagicTooltip(_ref) {
|
|
|
37112
37102
|
}
|
|
37113
37103
|
return;
|
|
37114
37104
|
}, []);
|
|
37115
|
-
return React__default.createElement(ModalPortal, null, React__default.createElement(Container$
|
|
37105
|
+
return React__default.createElement(ModalPortal, null, React__default.createElement(Container$G, {
|
|
37116
37106
|
ref: ref
|
|
37117
37107
|
}, React__default.createElement(SpellInfoDisplay, {
|
|
37118
37108
|
spell: spell
|
|
37119
37109
|
})));
|
|
37120
37110
|
};
|
|
37121
|
-
var Container$
|
|
37111
|
+
var Container$G = /*#__PURE__*/styled__default.div.withConfig({
|
|
37122
37112
|
displayName: "SpellTooltip__Container",
|
|
37123
37113
|
componentId: "sc-1go0gwg-0"
|
|
37124
37114
|
})(["position:absolute;z-index:100;pointer-events:none;left:0;top:0;opacity:0;transition:opacity 0.08s;"]);
|
|
@@ -37220,7 +37210,7 @@ var Spell = function Spell(_ref) {
|
|
|
37220
37210
|
var IMAGE_SCALE = 2;
|
|
37221
37211
|
return React__default.createElement(SpellInfoWrapper, {
|
|
37222
37212
|
spell: spell
|
|
37223
|
-
}, React__default.createElement(Container$
|
|
37213
|
+
}, React__default.createElement(Container$H, {
|
|
37224
37214
|
onPointerUp: onPointerUp == null ? void 0 : onPointerUp.bind(null, spellKey),
|
|
37225
37215
|
isSettingShortcut: isSettingShortcut && !disabled,
|
|
37226
37216
|
className: "spell"
|
|
@@ -37239,7 +37229,7 @@ var Spell = function Spell(_ref) {
|
|
|
37239
37229
|
className: "mana"
|
|
37240
37230
|
}, manaCost))));
|
|
37241
37231
|
};
|
|
37242
|
-
var Container$
|
|
37232
|
+
var Container$H = /*#__PURE__*/styled__default.button.withConfig({
|
|
37243
37233
|
displayName: "Spell__Container",
|
|
37244
37234
|
componentId: "sc-j96fa2-0"
|
|
37245
37235
|
})(["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) {
|
|
@@ -37319,7 +37309,7 @@ var Spellbook = function Spellbook(_ref) {
|
|
|
37319
37309
|
height: "inherit",
|
|
37320
37310
|
cancelDrag: "#spellbook-search, #shortcuts_list, .spell",
|
|
37321
37311
|
scale: scale
|
|
37322
|
-
}, React__default.createElement(Container$
|
|
37312
|
+
}, React__default.createElement(Container$I, null, React__default.createElement(Title$d, null, "Learned Spells"), React__default.createElement(ShortcutsSetter, {
|
|
37323
37313
|
setSettingShortcutIndex: setSettingShortcutIndex,
|
|
37324
37314
|
settingShortcutIndex: settingShortcutIndex,
|
|
37325
37315
|
shortcuts: shortcuts,
|
|
@@ -37356,7 +37346,7 @@ var Title$d = /*#__PURE__*/styled__default.h1.withConfig({
|
|
|
37356
37346
|
displayName: "Spellbook__Title",
|
|
37357
37347
|
componentId: "sc-r02nfq-0"
|
|
37358
37348
|
})(["font-size:", " !important;margin-bottom:0 !important;"], uiFonts.size.large);
|
|
37359
|
-
var Container$
|
|
37349
|
+
var Container$I = /*#__PURE__*/styled__default.div.withConfig({
|
|
37360
37350
|
displayName: "Spellbook__Container",
|
|
37361
37351
|
componentId: "sc-r02nfq-1"
|
|
37362
37352
|
})(["width:100%;height:100%;color:white;display:flex;flex-direction:column;"]);
|
|
@@ -57741,7 +57731,7 @@ var CTAButton = function CTAButton(_ref) {
|
|
|
57741
57731
|
iconColor = _ref$iconColor === void 0 ? '#f59e0b' : _ref$iconColor,
|
|
57742
57732
|
_ref$disabled = _ref.disabled,
|
|
57743
57733
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled;
|
|
57744
|
-
return React__default.createElement(ButtonContainer$
|
|
57734
|
+
return React__default.createElement(ButtonContainer$4, {
|
|
57745
57735
|
className: className,
|
|
57746
57736
|
onPointerDown: disabled ? undefined : onClick,
|
|
57747
57737
|
"$fullWidth": fullWidth,
|
|
@@ -57755,7 +57745,7 @@ var CTAButton = function CTAButton(_ref) {
|
|
|
57755
57745
|
"$disabled": disabled
|
|
57756
57746
|
}, label)));
|
|
57757
57747
|
};
|
|
57758
|
-
var ButtonContainer$
|
|
57748
|
+
var ButtonContainer$4 = /*#__PURE__*/styled__default.div.withConfig({
|
|
57759
57749
|
displayName: "CTAButton__ButtonContainer",
|
|
57760
57750
|
componentId: "sc-1azvwn5-0"
|
|
57761
57751
|
})(["display:inline-flex;align-items:center;padding:0.75rem 1.25rem;background:rgba(0,0,0,0.3);border:2px solid #f59e0b;box-shadow:0 0 10px rgba(245,158,11,0.3);border-radius:4px;cursor:", ";transition:all 0.2s;position:relative;opacity:", ";color:", ";", " &:hover{background:", ";box-shadow:", ";transform:", ";}&:active{transform:", ";box-shadow:", ";}&:before{content:'';position:absolute;inset:-1px;border-radius:5px;padding:1px;background:linear-gradient(45deg,#f59e0b,#fbbf24,#f59e0b);mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask-composite:exclude;-webkit-mask-composite:destination-out;}"], function (props) {
|
|
@@ -57864,7 +57854,7 @@ var CartView = function CartView(_ref2) {
|
|
|
57864
57854
|
return _ref3.apply(this, arguments);
|
|
57865
57855
|
};
|
|
57866
57856
|
}();
|
|
57867
|
-
return React__default.createElement(Container$
|
|
57857
|
+
return React__default.createElement(Container$J, null, React__default.createElement(Header$7, null, React__default.createElement(Title$e, null, "Shopping Cart"), React__default.createElement(CloseButton$9, {
|
|
57868
57858
|
onPointerDown: onClose
|
|
57869
57859
|
}, React__default.createElement(fa.FaTimes, null))), React__default.createElement(CartItems, null, cartItems.length === 0 ? React__default.createElement(EmptyCart, null, "Your cart is empty") : cartItems.map(function (cartItem) {
|
|
57870
57860
|
var _cartItem$metadata, _cartItem$metadata2;
|
|
@@ -57900,7 +57890,7 @@ var CartView = function CartView(_ref2) {
|
|
|
57900
57890
|
disabled: cartItems.length === 0 || isLoading
|
|
57901
57891
|
})));
|
|
57902
57892
|
};
|
|
57903
|
-
var Container$
|
|
57893
|
+
var Container$J = /*#__PURE__*/styled__default.div.withConfig({
|
|
57904
57894
|
displayName: "CartView__Container",
|
|
57905
57895
|
componentId: "sc-ydtyl1-0"
|
|
57906
57896
|
})(["display:flex;flex-direction:column;width:100%;height:100%;gap:1.5rem;padding:1.5rem;"]);
|
|
@@ -58254,9 +58244,9 @@ var ScrollableContent = function ScrollableContent(_ref) {
|
|
|
58254
58244
|
_ref$maxHeight = _ref.maxHeight,
|
|
58255
58245
|
maxHeight = _ref$maxHeight === void 0 ? '500px' : _ref$maxHeight;
|
|
58256
58246
|
if (items.length === 0) {
|
|
58257
|
-
return React__default.createElement(EmptyMessage$
|
|
58247
|
+
return React__default.createElement(EmptyMessage$2, null, emptyMessage);
|
|
58258
58248
|
}
|
|
58259
|
-
return React__default.createElement(Container$
|
|
58249
|
+
return React__default.createElement(Container$K, {
|
|
58260
58250
|
className: className
|
|
58261
58251
|
}, (searchOptions || filterOptions) && React__default.createElement(HeaderContainer$3, null, React__default.createElement(HeaderContent$1, null, searchOptions && React__default.createElement(SearchContainer$3, null, React__default.createElement(StyledSearchBar$2, {
|
|
58262
58252
|
value: searchOptions.value,
|
|
@@ -58277,7 +58267,7 @@ var ScrollableContent = function ScrollableContent(_ref) {
|
|
|
58277
58267
|
}, renderItem(item));
|
|
58278
58268
|
})));
|
|
58279
58269
|
};
|
|
58280
|
-
var Container$
|
|
58270
|
+
var Container$K = /*#__PURE__*/styled__default.div.withConfig({
|
|
58281
58271
|
displayName: "ScrollableContent__Container",
|
|
58282
58272
|
componentId: "sc-xhh2um-0"
|
|
58283
58273
|
})(["display:flex;flex-direction:column;gap:1rem;width:100%;"]);
|
|
@@ -58313,7 +58303,7 @@ var Content$4 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
58313
58303
|
}, function (props) {
|
|
58314
58304
|
return props.$gridColumns;
|
|
58315
58305
|
});
|
|
58316
|
-
var EmptyMessage$
|
|
58306
|
+
var EmptyMessage$2 = /*#__PURE__*/styled__default.div.withConfig({
|
|
58317
58307
|
displayName: "ScrollableContent__EmptyMessage",
|
|
58318
58308
|
componentId: "sc-xhh2um-8"
|
|
58319
58309
|
})(["text-align:center;color:#9ca3af;padding:2rem;flex:1;display:flex;align-items:center;justify-content:center;"]);
|
|
@@ -58893,7 +58883,7 @@ var StoreItemDetails = function StoreItemDetails(_ref) {
|
|
|
58893
58883
|
if (typeof imageUrl === 'string') return imageUrl;
|
|
58894
58884
|
return imageUrl["default"] || imageUrl.src;
|
|
58895
58885
|
};
|
|
58896
|
-
return React__default.createElement(Container$
|
|
58886
|
+
return React__default.createElement(Container$L, null, React__default.createElement(Header$9, null, React__default.createElement(BackButton, {
|
|
58897
58887
|
onClick: onBack
|
|
58898
58888
|
}, React__default.createElement(fa.FaArrowLeft, null), React__default.createElement("span", null, "Back"))), React__default.createElement(Content$5, null, React__default.createElement(DetailsGrid, null, React__default.createElement(ItemIcon, null, React__default.createElement("img", {
|
|
58899
58889
|
src: getImageSrc(),
|
|
@@ -58907,7 +58897,7 @@ var StoreItemDetails = function StoreItemDetails(_ref) {
|
|
|
58907
58897
|
fullWidth: true
|
|
58908
58898
|
}))));
|
|
58909
58899
|
};
|
|
58910
|
-
var Container$
|
|
58900
|
+
var Container$L = /*#__PURE__*/styled__default.div.withConfig({
|
|
58911
58901
|
displayName: "StoreItemDetails__Container",
|
|
58912
58902
|
componentId: "sc-k3ho5z-0"
|
|
58913
58903
|
})(["display:flex;flex-direction:column;gap:1.5rem;padding:1.5rem;height:100%;"]);
|
|
@@ -59170,7 +59160,7 @@ var Store = function Store(_ref) {
|
|
|
59170
59160
|
onAddToCart: function onAddToCart() {
|
|
59171
59161
|
return handleAddPackToCart(selectedPack);
|
|
59172
59162
|
}
|
|
59173
|
-
}) : React__default.createElement(Container$
|
|
59163
|
+
}) : React__default.createElement(Container$M, null, React__default.createElement(TopBar$1, null, React__default.createElement(HistoryButton, null, onShowHistory && React__default.createElement(CTAButton, {
|
|
59174
59164
|
icon: React__default.createElement(fa.FaHistory, null),
|
|
59175
59165
|
label: "History",
|
|
59176
59166
|
onClick: onShowHistory
|
|
@@ -59196,7 +59186,7 @@ var Store = function Store(_ref) {
|
|
|
59196
59186
|
fullWidth: true
|
|
59197
59187
|
}))));
|
|
59198
59188
|
};
|
|
59199
|
-
var Container$
|
|
59189
|
+
var Container$M = /*#__PURE__*/styled__default.div.withConfig({
|
|
59200
59190
|
displayName: "Store__Container",
|
|
59201
59191
|
componentId: "sc-64dj00-0"
|
|
59202
59192
|
})(["display:flex;flex-direction:column;width:100%;height:100%;gap:1rem;position:relative;"]);
|
|
@@ -59567,7 +59557,7 @@ var TradingMenu = function TradingMenu(_ref) {
|
|
|
59567
59557
|
width: "500px",
|
|
59568
59558
|
cancelDrag: "#TraderContainer",
|
|
59569
59559
|
scale: scale
|
|
59570
|
-
}, React__default.createElement(Container$
|
|
59560
|
+
}, React__default.createElement(Container$N, null, React__default.createElement(Title$f, null, type.charAt(0).toUpperCase() + type.slice(1), " Menu"), React__default.createElement("hr", {
|
|
59571
59561
|
className: "golden"
|
|
59572
59562
|
}), React__default.createElement(ScrollWrapper, {
|
|
59573
59563
|
id: "TraderContainer"
|
|
@@ -59595,7 +59585,7 @@ var TradingMenu = function TradingMenu(_ref) {
|
|
|
59595
59585
|
onPointerDown: onClose
|
|
59596
59586
|
}, "Cancel"))));
|
|
59597
59587
|
};
|
|
59598
|
-
var Container$
|
|
59588
|
+
var Container$N = /*#__PURE__*/styled__default.div.withConfig({
|
|
59599
59589
|
displayName: "TradingMenu__Container",
|
|
59600
59590
|
componentId: "sc-1wjsz1l-0"
|
|
59601
59591
|
})(["width:100%;"]);
|
|
@@ -59629,11 +59619,11 @@ var Truncate = function Truncate(_ref) {
|
|
|
59629
59619
|
var _ref$maxLines = _ref.maxLines,
|
|
59630
59620
|
maxLines = _ref$maxLines === void 0 ? 1 : _ref$maxLines,
|
|
59631
59621
|
children = _ref.children;
|
|
59632
|
-
return React__default.createElement(Container$
|
|
59622
|
+
return React__default.createElement(Container$O, {
|
|
59633
59623
|
maxLines: maxLines
|
|
59634
59624
|
}, children);
|
|
59635
59625
|
};
|
|
59636
|
-
var Container$
|
|
59626
|
+
var Container$O = /*#__PURE__*/styled__default.div.withConfig({
|
|
59637
59627
|
displayName: "Truncate__Container",
|
|
59638
59628
|
componentId: "sc-6x00qb-0"
|
|
59639
59629
|
})(["display:-webkit-box;max-width:100%;max-height:100%;-webkit-line-clamp:", ";-webkit-box-orient:vertical;overflow:hidden;"], function (props) {
|
|
@@ -59741,7 +59731,7 @@ var TutorialStepper = /*#__PURE__*/React__default.memo(function (_ref) {
|
|
|
59741
59731
|
};
|
|
59742
59732
|
});
|
|
59743
59733
|
}, [lessons, imageStyle]);
|
|
59744
|
-
return React__default.createElement(Container$
|
|
59734
|
+
return React__default.createElement(Container$P, null, React__default.createElement(Stepper, {
|
|
59745
59735
|
steps: generateLessons,
|
|
59746
59736
|
finalCTAButton: {
|
|
59747
59737
|
label: 'Close',
|
|
@@ -59758,7 +59748,7 @@ var LessonBody = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
59758
59748
|
displayName: "TutorialStepper__LessonBody",
|
|
59759
59749
|
componentId: "sc-7tgzv2-1"
|
|
59760
59750
|
})([""]);
|
|
59761
|
-
var Container$
|
|
59751
|
+
var Container$P = /*#__PURE__*/styled__default.div.withConfig({
|
|
59762
59752
|
displayName: "TutorialStepper__Container",
|
|
59763
59753
|
componentId: "sc-7tgzv2-2"
|
|
59764
59754
|
})(["width:80%;max-width:600px;@media (max-width:600px){width:95%;}"]);
|