@rpg-engine/long-bow 0.8.121 → 0.8.123
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 +221 -240
- 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 +221 -240
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Friends/FriendList.tsx +222 -70
- package/src/components/InternalTabs/InternalTabs.tsx +9 -3
|
@@ -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,23 @@ var SearchFriend = function SearchFriend(_ref) {
|
|
|
30864
30951
|
onSearch(characterName);
|
|
30865
30952
|
}
|
|
30866
30953
|
};
|
|
30954
|
+
var friendsTabContent = 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
|
+
}))));
|
|
30867
30971
|
var searchTabContent = React__default.createElement(ListContainer$1, null, React__default.createElement(SearchForm, {
|
|
30868
30972
|
onSubmit: handleSubmit
|
|
30869
30973
|
}, React__default.createElement(SearchInput, {
|
|
@@ -30876,7 +30980,6 @@ var SearchFriend = function SearchFriend(_ref) {
|
|
|
30876
30980
|
onFocus: onFocus,
|
|
30877
30981
|
onBlur: onBlur,
|
|
30878
30982
|
onPointerDown: onFocus,
|
|
30879
|
-
autoFocus: true,
|
|
30880
30983
|
placeholder: "Search for a character..."
|
|
30881
30984
|
})), React__default.createElement(CharacterList, {
|
|
30882
30985
|
characters: searchedCharacters,
|
|
@@ -30889,6 +30992,10 @@ var SearchFriend = function SearchFriend(_ref) {
|
|
|
30889
30992
|
onReject: onRejectRequest
|
|
30890
30993
|
}));
|
|
30891
30994
|
var tabs = [{
|
|
30995
|
+
id: 'friends',
|
|
30996
|
+
title: "Friends (" + friends.length + ")",
|
|
30997
|
+
content: friendsTabContent
|
|
30998
|
+
}, {
|
|
30892
30999
|
id: 'search',
|
|
30893
31000
|
title: 'Search',
|
|
30894
31001
|
content: searchTabContent
|
|
@@ -30897,8 +31004,10 @@ var SearchFriend = function SearchFriend(_ref) {
|
|
|
30897
31004
|
title: "Requests (" + friendRequests.length + ")",
|
|
30898
31005
|
content: requestsTabContent
|
|
30899
31006
|
}];
|
|
30900
|
-
return React__default.createElement(
|
|
31007
|
+
return React__default.createElement(ListWrapper, null, React__default.createElement(InternalTabs, {
|
|
30901
31008
|
tabs: tabs,
|
|
31009
|
+
activeTab: activeTab,
|
|
31010
|
+
onTabChange: setActiveTab,
|
|
30902
31011
|
activeTextColor: "#000",
|
|
30903
31012
|
inactiveColor: "#777",
|
|
30904
31013
|
borderColor: "#f59e0b"
|
|
@@ -30923,7 +31032,7 @@ var FriendRequestSection = function FriendRequestSection(_ref3) {
|
|
|
30923
31032
|
var friendRequests = _ref3.friendRequests,
|
|
30924
31033
|
onAccept = _ref3.onAccept,
|
|
30925
31034
|
onReject = _ref3.onReject;
|
|
30926
|
-
return React__default.createElement(React__default.Fragment, null, friendRequests.length > 0
|
|
31035
|
+
return React__default.createElement(React__default.Fragment, null, friendRequests.length > 0 ? React__default.createElement(ListContainer$1, null, friendRequests.map(function (character) {
|
|
30927
31036
|
return React__default.createElement(ListItem, {
|
|
30928
31037
|
key: character._id
|
|
30929
31038
|
}, React__default.createElement(CharacterName, null, character.name), React__default.createElement(AcceptRejectActions, null, React__default.createElement(UserActionLink, {
|
|
@@ -30937,94 +31046,7 @@ var FriendRequestSection = function FriendRequestSection(_ref3) {
|
|
|
30937
31046
|
return onReject(character);
|
|
30938
31047
|
}
|
|
30939
31048
|
}, "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')));
|
|
31049
|
+
})) : React__default.createElement(EmptyMessage, null, "No pending friend requests"));
|
|
31028
31050
|
};
|
|
31029
31051
|
// Styled components for FriendList UI
|
|
31030
31052
|
var ListWrapper = /*#__PURE__*/styled__default.div.withConfig({
|
|
@@ -31038,14 +31060,38 @@ var ScrollableArea = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
31038
31060
|
var IsOnlineBadge = /*#__PURE__*/styled__default.div.withConfig({
|
|
31039
31061
|
displayName: "FriendList__IsOnlineBadge",
|
|
31040
31062
|
componentId: "sc-3jf9vt-2"
|
|
31041
|
-
})(["width:10px;height:10px;border-radius:50%;background-color:", ";margin-right:1rem;"], function (
|
|
31042
|
-
var $isOnline =
|
|
31063
|
+
})(["width:10px;height:10px;border-radius:50%;background-color:", ";margin-right:1rem;"], function (_ref4) {
|
|
31064
|
+
var $isOnline = _ref4.$isOnline;
|
|
31043
31065
|
return $isOnline ? uiColors.lightGreen : uiColors.red;
|
|
31044
31066
|
});
|
|
31045
|
-
var
|
|
31046
|
-
displayName: "
|
|
31067
|
+
var SearchForm = /*#__PURE__*/styled__default.form.withConfig({
|
|
31068
|
+
displayName: "FriendList__SearchForm",
|
|
31047
31069
|
componentId: "sc-3jf9vt-3"
|
|
31048
|
-
})(["display:flex;
|
|
31070
|
+
})(["display:flex;align-items:center;width:100%;margin-top:1rem;"]);
|
|
31071
|
+
var SearchInput = /*#__PURE__*/styled__default.input.withConfig({
|
|
31072
|
+
displayName: "FriendList__SearchInput",
|
|
31073
|
+
componentId: "sc-3jf9vt-4"
|
|
31074
|
+
})(["width:100%;background-color:rgba(0,0,0,0.25);border:none;padding:0.5rem;font-size:", ";"], uiFonts.size.small);
|
|
31075
|
+
var ListContainer$1 = /*#__PURE__*/styled__default.ul.withConfig({
|
|
31076
|
+
displayName: "FriendList__ListContainer",
|
|
31077
|
+
componentId: "sc-3jf9vt-5"
|
|
31078
|
+
})(["list-style:none;padding:0;margin:0;width:100%;max-height:50vh;overflow-y:auto;@media (max-width:768px){max-height:90vh;}"]);
|
|
31079
|
+
var ListItem = /*#__PURE__*/styled__default.li.withConfig({
|
|
31080
|
+
displayName: "FriendList__ListItem",
|
|
31081
|
+
componentId: "sc-3jf9vt-6"
|
|
31082
|
+
})(["display:flex;align-items:center;justify-content:space-between;padding:0.5rem;border-bottom:1px solid rgba(255,255,255,0.1);"]);
|
|
31083
|
+
var CharacterName = /*#__PURE__*/styled__default.p.withConfig({
|
|
31084
|
+
displayName: "FriendList__CharacterName",
|
|
31085
|
+
componentId: "sc-3jf9vt-7"
|
|
31086
|
+
})(["font-size:", ";margin:0;"], uiFonts.size.small);
|
|
31087
|
+
var AcceptRejectActions = /*#__PURE__*/styled__default.div.withConfig({
|
|
31088
|
+
displayName: "FriendList__AcceptRejectActions",
|
|
31089
|
+
componentId: "sc-3jf9vt-8"
|
|
31090
|
+
})(["display:flex;gap:0.5rem;"]);
|
|
31091
|
+
var EmptyMessage = /*#__PURE__*/styled__default.p.withConfig({
|
|
31092
|
+
displayName: "FriendList__EmptyMessage",
|
|
31093
|
+
componentId: "sc-3jf9vt-9"
|
|
31094
|
+
})(["text-align:center;color:#888;padding:1rem;font-size:", ";"], uiFonts.size.small);
|
|
31049
31095
|
|
|
31050
31096
|
var IS_MOBILE_OR_TABLET = /*#__PURE__*/shared.isMobileOrTablet();
|
|
31051
31097
|
|
|
@@ -31142,7 +31188,7 @@ var NPCDialogText = function NPCDialogText(_ref) {
|
|
|
31142
31188
|
var _useState2 = React.useState(false),
|
|
31143
31189
|
showGoNextIndicator = _useState2[0],
|
|
31144
31190
|
setShowGoNextIndicator = _useState2[1];
|
|
31145
|
-
return React__default.createElement(Container$
|
|
31191
|
+
return React__default.createElement(Container$l, null, React__default.createElement(DynamicText, {
|
|
31146
31192
|
text: (textChunks == null ? void 0 : textChunks[chunkIndex]) || '',
|
|
31147
31193
|
onFinish: function onFinish() {
|
|
31148
31194
|
setShowGoNextIndicator(true);
|
|
@@ -31160,7 +31206,7 @@ var NPCDialogText = function NPCDialogText(_ref) {
|
|
|
31160
31206
|
}
|
|
31161
31207
|
}));
|
|
31162
31208
|
};
|
|
31163
|
-
var Container$
|
|
31209
|
+
var Container$l = /*#__PURE__*/styled__default.div.withConfig({
|
|
31164
31210
|
displayName: "NPCDialogText__Container",
|
|
31165
31211
|
componentId: "sc-1cxkdh9-0"
|
|
31166
31212
|
})([""]);
|
|
@@ -31312,7 +31358,7 @@ var QuestionDialog = function QuestionDialog(_ref) {
|
|
|
31312
31358
|
return null;
|
|
31313
31359
|
});
|
|
31314
31360
|
};
|
|
31315
|
-
return React__default.createElement(Container$
|
|
31361
|
+
return React__default.createElement(Container$m, null, React__default.createElement(QuestionContainer, null, React__default.createElement(DynamicText, {
|
|
31316
31362
|
text: currentQuestion.text,
|
|
31317
31363
|
onStart: function onStart() {
|
|
31318
31364
|
return setCanShowAnswers(false);
|
|
@@ -31322,7 +31368,7 @@ var QuestionDialog = function QuestionDialog(_ref) {
|
|
|
31322
31368
|
}
|
|
31323
31369
|
})), canShowAnswers && React__default.createElement(AnswersContainer, null, onRenderCurrentAnswers()));
|
|
31324
31370
|
};
|
|
31325
|
-
var Container$
|
|
31371
|
+
var Container$m = /*#__PURE__*/styled__default.div.withConfig({
|
|
31326
31372
|
displayName: "QuestionDialog__Container",
|
|
31327
31373
|
componentId: "sc-bxc5u0-0"
|
|
31328
31374
|
})(["display:flex;word-break:break-all;box-sizing:border-box;justify-content:flex-start;align-items:flex-start;flex-wrap:wrap;"]);
|
|
@@ -31382,7 +31428,7 @@ var NPCDialog = function NPCDialog(_ref) {
|
|
|
31382
31428
|
}
|
|
31383
31429
|
})), type === exports.NPCDialogType.TextAndThumbnail && React__default.createElement(ThumbnailContainer, null, React__default.createElement(NPCThumbnail, {
|
|
31384
31430
|
src: imagePath || img$7
|
|
31385
|
-
}))) : React__default.createElement(React__default.Fragment, null, React__default.createElement(Container$
|
|
31431
|
+
}))) : React__default.createElement(React__default.Fragment, null, React__default.createElement(Container$n, null, React__default.createElement(CloseIcon, {
|
|
31386
31432
|
onPointerDown: _onClose
|
|
31387
31433
|
}, "X"), React__default.createElement(TextContainer$1, {
|
|
31388
31434
|
flex: type === exports.NPCDialogType.TextAndThumbnail ? '70%' : '100%'
|
|
@@ -31398,7 +31444,7 @@ var NPCDialog = function NPCDialog(_ref) {
|
|
|
31398
31444
|
src: imagePath || img$7
|
|
31399
31445
|
})))));
|
|
31400
31446
|
};
|
|
31401
|
-
var Container$
|
|
31447
|
+
var Container$n = /*#__PURE__*/styled__default.div.withConfig({
|
|
31402
31448
|
displayName: "NPCDialog__Container",
|
|
31403
31449
|
componentId: "sc-1b4aw74-0"
|
|
31404
31450
|
})(["display:flex;width:100%;height:100%;box-sizing:border-box;justify-content:center;align-items:flex-start;position:relative;"]);
|
|
@@ -31458,7 +31504,7 @@ var NPCMultiDialog = function NPCMultiDialog(_ref) {
|
|
|
31458
31504
|
type: exports.RPGUIContainerTypes.FramedGold,
|
|
31459
31505
|
width: '50%',
|
|
31460
31506
|
height: '180px'
|
|
31461
|
-
}, React__default.createElement(React__default.Fragment, null, React__default.createElement(Container$
|
|
31507
|
+
}, 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
31508
|
flex: '70%'
|
|
31463
31509
|
}, React__default.createElement(NPCDialogText, {
|
|
31464
31510
|
onStartStep: function onStartStep() {
|
|
@@ -31500,7 +31546,7 @@ var NPCMultiDialog = function NPCMultiDialog(_ref) {
|
|
|
31500
31546
|
src: img$6
|
|
31501
31547
|
}))), ")"));
|
|
31502
31548
|
};
|
|
31503
|
-
var Container$
|
|
31549
|
+
var Container$o = /*#__PURE__*/styled__default.div.withConfig({
|
|
31504
31550
|
displayName: "NPCMultiDialog__Container",
|
|
31505
31551
|
componentId: "sc-rvu5wg-0"
|
|
31506
31552
|
})(["display:flex;width:100%;height:100%;box-sizing:border-box;justify-content:center;align-items:flex-start;position:relative;"]);
|
|
@@ -31771,71 +31817,6 @@ var FadeInCarouselImg = /*#__PURE__*/styled__default(CarouselImg).withConfig({
|
|
|
31771
31817
|
componentId: "sc-gdvbly-5"
|
|
31772
31818
|
})(["animation:", " 0.5s;"], fadeIn);
|
|
31773
31819
|
|
|
31774
|
-
var UI_BREAKPOINT_MOBILE = '950px';
|
|
31775
|
-
var UI_BREAKPOINT_SMALL_LAPTOP = '1400px';
|
|
31776
|
-
|
|
31777
|
-
var InternalTabs = function InternalTabs(_ref) {
|
|
31778
|
-
var _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 activeTabId = externalActiveTab != null ? externalActiveTab : tabs[0].id;
|
|
31793
|
-
return React__default.createElement(TableWrapper, null, React__default.createElement(TabHeader, {
|
|
31794
|
-
borderColor: borderColor
|
|
31795
|
-
}, tabs.map(function (tab) {
|
|
31796
|
-
return React__default.createElement(TabButton, {
|
|
31797
|
-
key: tab.id,
|
|
31798
|
-
active: activeTabId === tab.id,
|
|
31799
|
-
activeColor: activeColor,
|
|
31800
|
-
activeTextColor: activeTextColor,
|
|
31801
|
-
inactiveColor: inactiveColor,
|
|
31802
|
-
borderColor: borderColor,
|
|
31803
|
-
hoverColor: hoverColor,
|
|
31804
|
-
onClick: function onClick() {
|
|
31805
|
-
return onTabChange == null ? void 0 : onTabChange(tab.id);
|
|
31806
|
-
}
|
|
31807
|
-
}, tab.title);
|
|
31808
|
-
})), React__default.createElement(ContentWrapper, null, (_tabs$find = tabs.find(function (tab) {
|
|
31809
|
-
return tab.id === activeTabId;
|
|
31810
|
-
})) == null ? void 0 : _tabs$find.content));
|
|
31811
|
-
};
|
|
31812
|
-
var TableWrapper = /*#__PURE__*/styled__default.div.withConfig({
|
|
31813
|
-
displayName: "InternalTabs__TableWrapper",
|
|
31814
|
-
componentId: "sc-ldufv0-0"
|
|
31815
|
-
})(["width:100%;"]);
|
|
31816
|
-
var TabHeader = /*#__PURE__*/styled__default.div.withConfig({
|
|
31817
|
-
displayName: "InternalTabs__TabHeader",
|
|
31818
|
-
componentId: "sc-ldufv0-1"
|
|
31819
|
-
})(["display:flex;border-bottom:1px solid ", ";"], function (props) {
|
|
31820
|
-
return props.borderColor;
|
|
31821
|
-
});
|
|
31822
|
-
var TabButton = /*#__PURE__*/styled__default.button.withConfig({
|
|
31823
|
-
displayName: "InternalTabs__TabButton",
|
|
31824
|
-
componentId: "sc-ldufv0-2"
|
|
31825
|
-
})(["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) {
|
|
31826
|
-
return props.borderColor;
|
|
31827
|
-
}, function (props) {
|
|
31828
|
-
return props.active ? props.activeColor : 'transparent';
|
|
31829
|
-
}, function (props) {
|
|
31830
|
-
return props.active ? props.activeTextColor : props.inactiveColor;
|
|
31831
|
-
}, UI_BREAKPOINT_MOBILE, function (props) {
|
|
31832
|
-
return props.active ? props.activeColor : props.hoverColor;
|
|
31833
|
-
});
|
|
31834
|
-
var ContentWrapper = /*#__PURE__*/styled__default.div.withConfig({
|
|
31835
|
-
displayName: "InternalTabs__ContentWrapper",
|
|
31836
|
-
componentId: "sc-ldufv0-3"
|
|
31837
|
-
})(["width:100%;"]);
|
|
31838
|
-
|
|
31839
31820
|
var TOOLTIP_OFFSET = 10;
|
|
31840
31821
|
var MIN_VISIBLE_HEIGHT = 100;
|
|
31841
31822
|
var useTooltipPosition = function useTooltipPosition() {
|
|
@@ -31932,7 +31913,7 @@ var Pagination = function Pagination(_ref) {
|
|
|
31932
31913
|
totalPages = _ref.totalPages,
|
|
31933
31914
|
onPageChange = _ref.onPageChange,
|
|
31934
31915
|
className = _ref.className;
|
|
31935
|
-
return React__default.createElement(Container$
|
|
31916
|
+
return React__default.createElement(Container$p, {
|
|
31936
31917
|
className: className
|
|
31937
31918
|
}, React__default.createElement(PaginationButton$1, {
|
|
31938
31919
|
onClick: function onClick() {
|
|
@@ -31950,7 +31931,7 @@ var Pagination = function Pagination(_ref) {
|
|
|
31950
31931
|
size: 12
|
|
31951
31932
|
})));
|
|
31952
31933
|
};
|
|
31953
|
-
var Container$
|
|
31934
|
+
var Container$p = /*#__PURE__*/styled__default.div.withConfig({
|
|
31954
31935
|
displayName: "Pagination__Container",
|
|
31955
31936
|
componentId: "sc-3k4m4u-0"
|
|
31956
31937
|
})(["display:flex;align-items:center;justify-content:center;gap:16px;padding:8px;"]);
|
|
@@ -32058,12 +32039,12 @@ var PaginatedContent = function PaginatedContent(_ref) {
|
|
|
32058
32039
|
setCurrentPage = _usePagination.setCurrentPage,
|
|
32059
32040
|
paginatedItems = _usePagination.paginatedItems,
|
|
32060
32041
|
totalPages = _usePagination.totalPages;
|
|
32061
|
-
return React__default.createElement(Container$
|
|
32042
|
+
return React__default.createElement(Container$q, {
|
|
32062
32043
|
className: className
|
|
32063
32044
|
}, (searchOptions || filterOptions) && React__default.createElement(SearchHeader$1, {
|
|
32064
32045
|
searchOptions: searchOptions,
|
|
32065
32046
|
filterOptions: filterOptions
|
|
32066
|
-
}), items.length === 0 ? React__default.createElement(EmptyMessage, null, emptyMessage) : React__default.createElement(React__default.Fragment, null, React__default.createElement(Content, {
|
|
32047
|
+
}), items.length === 0 ? React__default.createElement(EmptyMessage$1, null, emptyMessage) : React__default.createElement(React__default.Fragment, null, React__default.createElement(Content, {
|
|
32067
32048
|
className: "PaginatedContent-content " + layout,
|
|
32068
32049
|
"$gridColumns": gridColumns,
|
|
32069
32050
|
"$itemHeight": itemHeight
|
|
@@ -32080,7 +32061,7 @@ var PaginatedContent = function PaginatedContent(_ref) {
|
|
|
32080
32061
|
onPageChange: setCurrentPage
|
|
32081
32062
|
}))));
|
|
32082
32063
|
};
|
|
32083
|
-
var Container$
|
|
32064
|
+
var Container$q = /*#__PURE__*/styled__default.div.withConfig({
|
|
32084
32065
|
displayName: "PaginatedContent__Container",
|
|
32085
32066
|
componentId: "sc-lzp9hn-0"
|
|
32086
32067
|
})(["display:flex;flex-direction:column;gap:0.5rem;min-height:400px;width:100%;"]);
|
|
@@ -32099,7 +32080,7 @@ var PaginationContainer$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
32099
32080
|
displayName: "PaginatedContent__PaginationContainer",
|
|
32100
32081
|
componentId: "sc-lzp9hn-2"
|
|
32101
32082
|
})(["display:flex;justify-content:center;padding:0.5rem;@media (min-width:480px){padding:1rem;}"]);
|
|
32102
|
-
var EmptyMessage = /*#__PURE__*/styled__default.div.withConfig({
|
|
32083
|
+
var EmptyMessage$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
32103
32084
|
displayName: "PaginatedContent__EmptyMessage",
|
|
32104
32085
|
componentId: "sc-lzp9hn-3"
|
|
32105
32086
|
})(["text-align:center;color:#9ca3af;padding:2rem;flex:1;display:flex;align-items:center;justify-content:center;"]);
|
|
@@ -32202,7 +32183,7 @@ var BaseInformationDetails = function BaseInformationDetails(_ref) {
|
|
|
32202
32183
|
atlasIMG = _ref.atlasIMG,
|
|
32203
32184
|
onBack = _ref.onBack,
|
|
32204
32185
|
children = _ref.children;
|
|
32205
|
-
return React__default.createElement(Container$
|
|
32186
|
+
return React__default.createElement(Container$r, null, React__default.createElement(Overlay, {
|
|
32206
32187
|
onClick: onBack
|
|
32207
32188
|
}), React__default.createElement(Modal, null, React__default.createElement(CloseButton$5, {
|
|
32208
32189
|
onClick: onBack
|
|
@@ -32215,7 +32196,7 @@ var BaseInformationDetails = function BaseInformationDetails(_ref) {
|
|
|
32215
32196
|
imgScale: 1
|
|
32216
32197
|
})), React__default.createElement(Title$3, null, name)), React__default.createElement(Content$1, null, children)));
|
|
32217
32198
|
};
|
|
32218
|
-
var Container$
|
|
32199
|
+
var Container$r = /*#__PURE__*/styled__default.div.withConfig({
|
|
32219
32200
|
displayName: "BaseInformationDetails__Container",
|
|
32220
32201
|
componentId: "sc-1vguuz8-0"
|
|
32221
32202
|
})(["position:fixed;inset:0;display:flex;justify-content:center;align-items:center;z-index:9999;"]);
|
|
@@ -32257,7 +32238,7 @@ var Collapsible = function Collapsible(_ref) {
|
|
|
32257
32238
|
var _useState = React.useState(defaultOpen),
|
|
32258
32239
|
isOpen = _useState[0],
|
|
32259
32240
|
setIsOpen = _useState[1];
|
|
32260
|
-
return React__default.createElement(Container$
|
|
32241
|
+
return React__default.createElement(Container$s, {
|
|
32261
32242
|
className: className
|
|
32262
32243
|
}, React__default.createElement(Header$3, {
|
|
32263
32244
|
onClick: function onClick() {
|
|
@@ -32265,7 +32246,7 @@ var Collapsible = function Collapsible(_ref) {
|
|
|
32265
32246
|
}
|
|
32266
32247
|
}, 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));
|
|
32267
32248
|
};
|
|
32268
|
-
var Container$
|
|
32249
|
+
var Container$s = /*#__PURE__*/styled__default.div.withConfig({
|
|
32269
32250
|
displayName: "Collapsible__Container",
|
|
32270
32251
|
componentId: "sc-s4h8ey-0"
|
|
32271
32252
|
})(["background:rgba(0,0,0,0.3);border-radius:4px;overflow:hidden;border:1px solid ", ";"], uiColors.darkGray);
|
|
@@ -32595,7 +32576,7 @@ var AdvancedFilters = function AdvancedFilters(_ref) {
|
|
|
32595
32576
|
onClose();
|
|
32596
32577
|
}
|
|
32597
32578
|
};
|
|
32598
|
-
return React__default.createElement(Container$
|
|
32579
|
+
return React__default.createElement(Container$t, null, React__default.createElement(FilterButton, {
|
|
32599
32580
|
onClick: onToggle,
|
|
32600
32581
|
"$hasActiveFilters": hasActiveFilters,
|
|
32601
32582
|
ref: buttonRef
|
|
@@ -32626,7 +32607,7 @@ var AdvancedFilters = function AdvancedFilters(_ref) {
|
|
|
32626
32607
|
onClick: onClearAll
|
|
32627
32608
|
}, "Clear All Filters"))));
|
|
32628
32609
|
};
|
|
32629
|
-
var Container$
|
|
32610
|
+
var Container$t = /*#__PURE__*/styled__default.div.withConfig({
|
|
32630
32611
|
displayName: "AdvancedFilters__Container",
|
|
32631
32612
|
componentId: "sc-1xj6ldr-0"
|
|
32632
32613
|
})(["position:relative;margin-left:0.5rem;"]);
|
|
@@ -33720,7 +33701,7 @@ var InformationCenter = function InformationCenter(_ref) {
|
|
|
33720
33701
|
minWidth: "300px",
|
|
33721
33702
|
cancelDrag: ".PaginatedContent-content",
|
|
33722
33703
|
onCloseButton: onClose
|
|
33723
|
-
}, React__default.createElement(Container$
|
|
33704
|
+
}, React__default.createElement(Container$u, null, React__default.createElement(InternalTabs, {
|
|
33724
33705
|
tabs: tabs,
|
|
33725
33706
|
activeTextColor: "#000000",
|
|
33726
33707
|
activeTab: activeTab,
|
|
@@ -33731,7 +33712,7 @@ var InformationCenter = function InformationCenter(_ref) {
|
|
|
33731
33712
|
hoverColor: "#fef3c7"
|
|
33732
33713
|
})));
|
|
33733
33714
|
};
|
|
33734
|
-
var Container$
|
|
33715
|
+
var Container$u = /*#__PURE__*/styled__default.div.withConfig({
|
|
33735
33716
|
displayName: "InformationCenter__Container",
|
|
33736
33717
|
componentId: "sc-1ttl62e-0"
|
|
33737
33718
|
})(["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;}"]);
|
|
@@ -33902,7 +33883,7 @@ var ShortcutsSetter = function ShortcutsSetter(_ref) {
|
|
|
33902
33883
|
}
|
|
33903
33884
|
return null;
|
|
33904
33885
|
};
|
|
33905
|
-
return React__default.createElement(Container$
|
|
33886
|
+
return React__default.createElement(Container$v, null, React__default.createElement("p", null, "Shortcuts:"), React__default.createElement(List, {
|
|
33906
33887
|
id: "shortcuts_list"
|
|
33907
33888
|
}, Array.from({
|
|
33908
33889
|
length: 12
|
|
@@ -33920,7 +33901,7 @@ var ShortcutsSetter = function ShortcutsSetter(_ref) {
|
|
|
33920
33901
|
}, getContent(i));
|
|
33921
33902
|
})));
|
|
33922
33903
|
};
|
|
33923
|
-
var Container$
|
|
33904
|
+
var Container$v = /*#__PURE__*/styled__default.div.withConfig({
|
|
33924
33905
|
displayName: "ShortcutsSetter__Container",
|
|
33925
33906
|
componentId: "sc-xuouuf-0"
|
|
33926
33907
|
})(["p{margin:0;margin-left:0.5rem;font-size:10px;}width:100%;"]);
|
|
@@ -34463,13 +34444,13 @@ var ColorSelector = function ColorSelector(_ref) {
|
|
|
34463
34444
|
cancelDrag: ".react-colorful",
|
|
34464
34445
|
width: "25rem",
|
|
34465
34446
|
onCloseButton: onClose
|
|
34466
|
-
}, React__default.createElement(Container$
|
|
34447
|
+
}, React__default.createElement(Container$w, null, React__default.createElement(Header$4, null, "Select Color"), React__default.createElement(ColorPickerWrapper, null, React__default.createElement(reactColorful.HexColorPicker, {
|
|
34467
34448
|
color: currentColor,
|
|
34468
34449
|
onChange: function onChange(color) {
|
|
34469
34450
|
setCurrentColor(color);
|
|
34470
34451
|
_onChange(color);
|
|
34471
34452
|
}
|
|
34472
|
-
})), React__default.createElement(ButtonContainer$
|
|
34453
|
+
})), React__default.createElement(ButtonContainer$1, null, React__default.createElement(Button, {
|
|
34473
34454
|
buttonType: exports.ButtonTypes.RPGUIButton,
|
|
34474
34455
|
type: "button",
|
|
34475
34456
|
onClick: handleConfirm
|
|
@@ -34479,7 +34460,7 @@ var ColorSelector = function ColorSelector(_ref) {
|
|
|
34479
34460
|
onClose: handleClose
|
|
34480
34461
|
}));
|
|
34481
34462
|
};
|
|
34482
|
-
var Container$
|
|
34463
|
+
var Container$w = /*#__PURE__*/styled__default.div.withConfig({
|
|
34483
34464
|
displayName: "ItemPropertyColorSelector__Container",
|
|
34484
34465
|
componentId: "sc-me1r4z-0"
|
|
34485
34466
|
})(["text-align:center;background:inherit;display:flex;flex-direction:column;gap:1.5rem;align-items:center;width:100%;max-width:24rem;margin:0 auto;"]);
|
|
@@ -34491,7 +34472,7 @@ var ColorPickerWrapper = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
34491
34472
|
displayName: "ItemPropertyColorSelector__ColorPickerWrapper",
|
|
34492
34473
|
componentId: "sc-me1r4z-2"
|
|
34493
34474
|
})(["display:flex;justify-content:center;width:100%;.react-colorful{width:100%;max-width:200px;}"]);
|
|
34494
|
-
var ButtonContainer$
|
|
34475
|
+
var ButtonContainer$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
34495
34476
|
displayName: "ItemPropertyColorSelector__ButtonContainer",
|
|
34496
34477
|
componentId: "sc-me1r4z-3"
|
|
34497
34478
|
})(["display:flex;justify-content:center;width:100%;"]);
|
|
@@ -34835,7 +34816,7 @@ var ListMenu = function ListMenu(_ref) {
|
|
|
34835
34816
|
onSelected = _ref.onSelected,
|
|
34836
34817
|
x = _ref.x,
|
|
34837
34818
|
y = _ref.y;
|
|
34838
|
-
return React__default.createElement(Container$
|
|
34819
|
+
return React__default.createElement(Container$x, {
|
|
34839
34820
|
x: x,
|
|
34840
34821
|
y: y
|
|
34841
34822
|
}, React__default.createElement("ul", {
|
|
@@ -34852,7 +34833,7 @@ var ListMenu = function ListMenu(_ref) {
|
|
|
34852
34833
|
}, (params == null ? void 0 : params.text) || 'No text');
|
|
34853
34834
|
})));
|
|
34854
34835
|
};
|
|
34855
|
-
var Container$
|
|
34836
|
+
var Container$x = /*#__PURE__*/styled__default.div.withConfig({
|
|
34856
34837
|
displayName: "ListMenu__Container",
|
|
34857
34838
|
componentId: "sc-i9097t-0"
|
|
34858
34839
|
})(["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) {
|
|
@@ -34871,7 +34852,7 @@ var Pager = function Pager(_ref) {
|
|
|
34871
34852
|
itemsPerPage = _ref.itemsPerPage,
|
|
34872
34853
|
onPageChange = _ref.onPageChange;
|
|
34873
34854
|
var totalPages = Math.ceil(totalItems / itemsPerPage);
|
|
34874
|
-
return React__default.createElement(Container$
|
|
34855
|
+
return React__default.createElement(Container$y, null, React__default.createElement("p", null, "Total items: ", totalItems), React__default.createElement(PagerContainer, null, React__default.createElement("button", {
|
|
34875
34856
|
disabled: currentPage === 1,
|
|
34876
34857
|
onPointerDown: function onPointerDown() {
|
|
34877
34858
|
return onPageChange(Math.max(currentPage - 1, 1));
|
|
@@ -34885,7 +34866,7 @@ var Pager = function Pager(_ref) {
|
|
|
34885
34866
|
}
|
|
34886
34867
|
}, '>')));
|
|
34887
34868
|
};
|
|
34888
|
-
var Container$
|
|
34869
|
+
var Container$y = /*#__PURE__*/styled__default.div.withConfig({
|
|
34889
34870
|
displayName: "Pager__Container",
|
|
34890
34871
|
componentId: "sc-1ekmf50-0"
|
|
34891
34872
|
})(["display:flex;flex-direction:column;align-items:center;p{margin:0;font-size:", ";}"], uiFonts.size.xsmall);
|
|
@@ -34939,7 +34920,7 @@ var MarketplaceRows = function MarketplaceRows(_ref) {
|
|
|
34939
34920
|
maxLines: 1,
|
|
34940
34921
|
maxWidth: "200px",
|
|
34941
34922
|
fontSize: "10px"
|
|
34942
|
-
}, "$", itemPrice)))), React__default.createElement(ButtonContainer$
|
|
34923
|
+
}, "$", itemPrice)))), React__default.createElement(ButtonContainer$2, null, React__default.createElement(Button, {
|
|
34943
34924
|
buttonType: exports.ButtonTypes.RPGUIButton,
|
|
34944
34925
|
disabled: disabled,
|
|
34945
34926
|
onPointerDown: function onPointerDown() {
|
|
@@ -34981,7 +34962,7 @@ var PriceValue = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
34981
34962
|
displayName: "MarketplaceRows__PriceValue",
|
|
34982
34963
|
componentId: "sc-wmpr1o-7"
|
|
34983
34964
|
})(["margin-left:40px;"]);
|
|
34984
|
-
var ButtonContainer$
|
|
34965
|
+
var ButtonContainer$2 = /*#__PURE__*/styled__default.div.withConfig({
|
|
34985
34966
|
displayName: "MarketplaceRows__ButtonContainer",
|
|
34986
34967
|
componentId: "sc-wmpr1o-8"
|
|
34987
34968
|
})(["margin:auto;"]);
|
|
@@ -35406,13 +35387,13 @@ var TabBody = function TabBody(_ref) {
|
|
|
35406
35387
|
children = _ref.children,
|
|
35407
35388
|
styles = _ref.styles,
|
|
35408
35389
|
centerContent = _ref.centerContent;
|
|
35409
|
-
return React__default.createElement(Container$
|
|
35390
|
+
return React__default.createElement(Container$z, {
|
|
35410
35391
|
styles: styles,
|
|
35411
35392
|
"data-tab-id": id,
|
|
35412
35393
|
centerContent: centerContent
|
|
35413
35394
|
}, children);
|
|
35414
35395
|
};
|
|
35415
|
-
var Container$
|
|
35396
|
+
var Container$z = /*#__PURE__*/styled__default.div.withConfig({
|
|
35416
35397
|
displayName: "TabBody__Container",
|
|
35417
35398
|
componentId: "sc-196oof2-0"
|
|
35418
35399
|
})(["width:", ";height:", ";overflow-y:auto;display:", ";justify-content:", ";align-items:", ";"], function (props) {
|
|
@@ -35749,7 +35730,7 @@ var PartyManagerRow = function PartyManagerRow(_ref) {
|
|
|
35749
35730
|
}, charName, " ", isCurrentUser ? '(You)' : '', " ", isLeader ? '(Leader)' : '')), React__default.createElement(TextContainer$5, null, React__default.createElement(Ellipsis, {
|
|
35750
35731
|
maxLines: 1,
|
|
35751
35732
|
maxWidth: "300px"
|
|
35752
|
-
}, charClass)), React__default.createElement(ButtonContainer$
|
|
35733
|
+
}, charClass)), React__default.createElement(ButtonContainer$3, null, canRemove && React__default.createElement(HighlightedText, {
|
|
35753
35734
|
onPointerDown: function onPointerDown() {
|
|
35754
35735
|
return onRemovePlayer(id);
|
|
35755
35736
|
}
|
|
@@ -35767,7 +35748,7 @@ var TextContainer$5 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
35767
35748
|
displayName: "PartyManagerRows__TextContainer",
|
|
35768
35749
|
componentId: "sc-uqajew-1"
|
|
35769
35750
|
})(["color:", ";overflow:hidden;white-space:nowrap;text-overflow:ellipsis;"], uiColors.white);
|
|
35770
|
-
var ButtonContainer$
|
|
35751
|
+
var ButtonContainer$3 = /*#__PURE__*/styled__default.div.withConfig({
|
|
35771
35752
|
displayName: "PartyManagerRows__ButtonContainer",
|
|
35772
35753
|
componentId: "sc-uqajew-2"
|
|
35773
35754
|
})(["display:flex;align-items:center;gap:1rem;justify-content:flex-start;"]);
|
|
@@ -36066,7 +36047,7 @@ var ProgressBar$1 = function ProgressBar(_ref) {
|
|
|
36066
36047
|
// Round only for display, not for calculation
|
|
36067
36048
|
var displayValue = Math.round(value);
|
|
36068
36049
|
var displayMax = Math.round(max);
|
|
36069
|
-
return React__default.createElement(Container$
|
|
36050
|
+
return React__default.createElement(Container$A, {
|
|
36070
36051
|
className: "rpgui-progress",
|
|
36071
36052
|
"data-value": calculatePercentageValue(max, value) / 100,
|
|
36072
36053
|
"data-rpguitype": "progress",
|
|
@@ -36098,7 +36079,7 @@ var TextOverlay$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
36098
36079
|
displayName: "ProgressBar__TextOverlay",
|
|
36099
36080
|
componentId: "sc-qa6fzh-1"
|
|
36100
36081
|
})(["width:100%;position:relative;"]);
|
|
36101
|
-
var Container$
|
|
36082
|
+
var Container$A = /*#__PURE__*/styled__default.div.withConfig({
|
|
36102
36083
|
displayName: "ProgressBar__Container",
|
|
36103
36084
|
componentId: "sc-qa6fzh-2"
|
|
36104
36085
|
})(["display:flex;flex-direction:column;min-width:", "px;width:", "%;justify-content:start;align-items:flex-start;", " @media (max-width:950px){transform:scale(", ");}"], function (props) {
|
|
@@ -36339,9 +36320,9 @@ var InputRadio = function InputRadio(_ref) {
|
|
|
36339
36320
|
|
|
36340
36321
|
var RPGUIScrollbar = function RPGUIScrollbar(_ref) {
|
|
36341
36322
|
var children = _ref.children;
|
|
36342
|
-
return React__default.createElement(Container$
|
|
36323
|
+
return React__default.createElement(Container$B, null, children);
|
|
36343
36324
|
};
|
|
36344
|
-
var Container$
|
|
36325
|
+
var Container$B = /*#__PURE__*/styled__default.div.withConfig({
|
|
36345
36326
|
displayName: "RPGUIScrollbar__Container",
|
|
36346
36327
|
componentId: "sc-p3msmb-0"
|
|
36347
36328
|
})([".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;}"]);
|
|
@@ -36498,7 +36479,7 @@ var SimpleProgressBar = function SimpleProgressBar(_ref) {
|
|
|
36498
36479
|
margin = _ref$margin === void 0 ? 20 : _ref$margin;
|
|
36499
36480
|
// Ensure the width is at least 1% if value is greater than 0, capped at 99.99%
|
|
36500
36481
|
var width = value > 0 ? Math.max(1, Math.min(99.99, value)) : 0;
|
|
36501
|
-
return React__default.createElement(Container$
|
|
36482
|
+
return React__default.createElement(Container$C, {
|
|
36502
36483
|
className: "simple-progress-bar"
|
|
36503
36484
|
}, React__default.createElement(ProgressBarContainer, {
|
|
36504
36485
|
margin: margin
|
|
@@ -36507,7 +36488,7 @@ var SimpleProgressBar = function SimpleProgressBar(_ref) {
|
|
|
36507
36488
|
bgColor: bgColor
|
|
36508
36489
|
}))));
|
|
36509
36490
|
};
|
|
36510
|
-
var Container$
|
|
36491
|
+
var Container$C = /*#__PURE__*/styled__default.div.withConfig({
|
|
36511
36492
|
displayName: "SimpleProgressBar__Container",
|
|
36512
36493
|
componentId: "sc-mbeil3-0"
|
|
36513
36494
|
})(["display:flex;justify-content:center;align-items:center;width:100%;"]);
|
|
@@ -36895,7 +36876,7 @@ var SocialModal = function SocialModal(_ref) {
|
|
|
36895
36876
|
title: "Social Channels",
|
|
36896
36877
|
width: "500px",
|
|
36897
36878
|
onCloseButton: onClose
|
|
36898
|
-
}, React__default.createElement(Container$
|
|
36879
|
+
}, React__default.createElement(Container$D, null, React__default.createElement(HeaderImage, {
|
|
36899
36880
|
src: img$9,
|
|
36900
36881
|
alt: ""
|
|
36901
36882
|
}), React__default.createElement(ButtonsContainer$3, null, React__default.createElement(MainButtons, null, React__default.createElement(SocialButton$1, {
|
|
@@ -36913,7 +36894,7 @@ var SocialModal = function SocialModal(_ref) {
|
|
|
36913
36894
|
onClick: handleWhatsAppClick
|
|
36914
36895
|
}, React__default.createElement(fa.FaWhatsapp, null), " Join WhatsApp")))));
|
|
36915
36896
|
};
|
|
36916
|
-
var Container$
|
|
36897
|
+
var Container$D = /*#__PURE__*/styled__default.div.withConfig({
|
|
36917
36898
|
displayName: "SocialModal__Container",
|
|
36918
36899
|
componentId: "sc-tbjhp9-0"
|
|
36919
36900
|
})(["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% );}"]);
|
|
@@ -36959,7 +36940,7 @@ var SpellInfo$1 = function SpellInfo(_ref) {
|
|
|
36959
36940
|
castingType = spell.castingType,
|
|
36960
36941
|
cooldown = spell.cooldown,
|
|
36961
36942
|
maxDistanceGrid = spell.maxDistanceGrid;
|
|
36962
|
-
return React__default.createElement(Container$
|
|
36943
|
+
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", {
|
|
36963
36944
|
className: "label"
|
|
36964
36945
|
}, "Casting Type:"), React__default.createElement("div", {
|
|
36965
36946
|
className: "value"
|
|
@@ -36985,7 +36966,7 @@ var SpellInfo$1 = function SpellInfo(_ref) {
|
|
|
36985
36966
|
className: "value"
|
|
36986
36967
|
}, requiredItem))), React__default.createElement(Description$4, null, description));
|
|
36987
36968
|
};
|
|
36988
|
-
var Container$
|
|
36969
|
+
var Container$E = /*#__PURE__*/styled__default.div.withConfig({
|
|
36989
36970
|
displayName: "SpellInfo__Container",
|
|
36990
36971
|
componentId: "sc-4hbw3q-0"
|
|
36991
36972
|
})(["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);
|
|
@@ -37039,7 +37020,7 @@ var MobileSpellTooltip = function MobileSpellTooltip(_ref) {
|
|
|
37039
37020
|
var _ref$current;
|
|
37040
37021
|
(_ref$current = ref.current) == null ? void 0 : _ref$current.classList.add('fadeOut');
|
|
37041
37022
|
};
|
|
37042
|
-
return React__default.createElement(ModalPortal, null, React__default.createElement(Container$
|
|
37023
|
+
return React__default.createElement(ModalPortal, null, React__default.createElement(Container$F, {
|
|
37043
37024
|
ref: ref,
|
|
37044
37025
|
onTouchEnd: function onTouchEnd() {
|
|
37045
37026
|
handleFadeOut();
|
|
@@ -37064,7 +37045,7 @@ var MobileSpellTooltip = function MobileSpellTooltip(_ref) {
|
|
|
37064
37045
|
}, option.text);
|
|
37065
37046
|
}))));
|
|
37066
37047
|
};
|
|
37067
|
-
var Container$
|
|
37048
|
+
var Container$F = /*#__PURE__*/styled__default.div.withConfig({
|
|
37068
37049
|
displayName: "MobileSpellTooltip__Container",
|
|
37069
37050
|
componentId: "sc-6p7uvr-0"
|
|
37070
37051
|
})(["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;}"]);
|
|
@@ -37105,13 +37086,13 @@ var MagicTooltip = function MagicTooltip(_ref) {
|
|
|
37105
37086
|
}
|
|
37106
37087
|
return;
|
|
37107
37088
|
}, []);
|
|
37108
|
-
return React__default.createElement(ModalPortal, null, React__default.createElement(Container$
|
|
37089
|
+
return React__default.createElement(ModalPortal, null, React__default.createElement(Container$G, {
|
|
37109
37090
|
ref: ref
|
|
37110
37091
|
}, React__default.createElement(SpellInfoDisplay, {
|
|
37111
37092
|
spell: spell
|
|
37112
37093
|
})));
|
|
37113
37094
|
};
|
|
37114
|
-
var Container$
|
|
37095
|
+
var Container$G = /*#__PURE__*/styled__default.div.withConfig({
|
|
37115
37096
|
displayName: "SpellTooltip__Container",
|
|
37116
37097
|
componentId: "sc-1go0gwg-0"
|
|
37117
37098
|
})(["position:absolute;z-index:100;pointer-events:none;left:0;top:0;opacity:0;transition:opacity 0.08s;"]);
|
|
@@ -37213,7 +37194,7 @@ var Spell = function Spell(_ref) {
|
|
|
37213
37194
|
var IMAGE_SCALE = 2;
|
|
37214
37195
|
return React__default.createElement(SpellInfoWrapper, {
|
|
37215
37196
|
spell: spell
|
|
37216
|
-
}, React__default.createElement(Container$
|
|
37197
|
+
}, React__default.createElement(Container$H, {
|
|
37217
37198
|
onPointerUp: onPointerUp == null ? void 0 : onPointerUp.bind(null, spellKey),
|
|
37218
37199
|
isSettingShortcut: isSettingShortcut && !disabled,
|
|
37219
37200
|
className: "spell"
|
|
@@ -37232,7 +37213,7 @@ var Spell = function Spell(_ref) {
|
|
|
37232
37213
|
className: "mana"
|
|
37233
37214
|
}, manaCost))));
|
|
37234
37215
|
};
|
|
37235
|
-
var Container$
|
|
37216
|
+
var Container$H = /*#__PURE__*/styled__default.button.withConfig({
|
|
37236
37217
|
displayName: "Spell__Container",
|
|
37237
37218
|
componentId: "sc-j96fa2-0"
|
|
37238
37219
|
})(["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) {
|
|
@@ -37312,7 +37293,7 @@ var Spellbook = function Spellbook(_ref) {
|
|
|
37312
37293
|
height: "inherit",
|
|
37313
37294
|
cancelDrag: "#spellbook-search, #shortcuts_list, .spell",
|
|
37314
37295
|
scale: scale
|
|
37315
|
-
}, React__default.createElement(Container$
|
|
37296
|
+
}, React__default.createElement(Container$I, null, React__default.createElement(Title$d, null, "Learned Spells"), React__default.createElement(ShortcutsSetter, {
|
|
37316
37297
|
setSettingShortcutIndex: setSettingShortcutIndex,
|
|
37317
37298
|
settingShortcutIndex: settingShortcutIndex,
|
|
37318
37299
|
shortcuts: shortcuts,
|
|
@@ -37349,7 +37330,7 @@ var Title$d = /*#__PURE__*/styled__default.h1.withConfig({
|
|
|
37349
37330
|
displayName: "Spellbook__Title",
|
|
37350
37331
|
componentId: "sc-r02nfq-0"
|
|
37351
37332
|
})(["font-size:", " !important;margin-bottom:0 !important;"], uiFonts.size.large);
|
|
37352
|
-
var Container$
|
|
37333
|
+
var Container$I = /*#__PURE__*/styled__default.div.withConfig({
|
|
37353
37334
|
displayName: "Spellbook__Container",
|
|
37354
37335
|
componentId: "sc-r02nfq-1"
|
|
37355
37336
|
})(["width:100%;height:100%;color:white;display:flex;flex-direction:column;"]);
|
|
@@ -57734,7 +57715,7 @@ var CTAButton = function CTAButton(_ref) {
|
|
|
57734
57715
|
iconColor = _ref$iconColor === void 0 ? '#f59e0b' : _ref$iconColor,
|
|
57735
57716
|
_ref$disabled = _ref.disabled,
|
|
57736
57717
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled;
|
|
57737
|
-
return React__default.createElement(ButtonContainer$
|
|
57718
|
+
return React__default.createElement(ButtonContainer$4, {
|
|
57738
57719
|
className: className,
|
|
57739
57720
|
onPointerDown: disabled ? undefined : onClick,
|
|
57740
57721
|
"$fullWidth": fullWidth,
|
|
@@ -57748,7 +57729,7 @@ var CTAButton = function CTAButton(_ref) {
|
|
|
57748
57729
|
"$disabled": disabled
|
|
57749
57730
|
}, label)));
|
|
57750
57731
|
};
|
|
57751
|
-
var ButtonContainer$
|
|
57732
|
+
var ButtonContainer$4 = /*#__PURE__*/styled__default.div.withConfig({
|
|
57752
57733
|
displayName: "CTAButton__ButtonContainer",
|
|
57753
57734
|
componentId: "sc-1azvwn5-0"
|
|
57754
57735
|
})(["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) {
|
|
@@ -57857,7 +57838,7 @@ var CartView = function CartView(_ref2) {
|
|
|
57857
57838
|
return _ref3.apply(this, arguments);
|
|
57858
57839
|
};
|
|
57859
57840
|
}();
|
|
57860
|
-
return React__default.createElement(Container$
|
|
57841
|
+
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, {
|
|
57861
57842
|
onPointerDown: onClose
|
|
57862
57843
|
}, 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) {
|
|
57863
57844
|
var _cartItem$metadata, _cartItem$metadata2;
|
|
@@ -57893,7 +57874,7 @@ var CartView = function CartView(_ref2) {
|
|
|
57893
57874
|
disabled: cartItems.length === 0 || isLoading
|
|
57894
57875
|
})));
|
|
57895
57876
|
};
|
|
57896
|
-
var Container$
|
|
57877
|
+
var Container$J = /*#__PURE__*/styled__default.div.withConfig({
|
|
57897
57878
|
displayName: "CartView__Container",
|
|
57898
57879
|
componentId: "sc-ydtyl1-0"
|
|
57899
57880
|
})(["display:flex;flex-direction:column;width:100%;height:100%;gap:1.5rem;padding:1.5rem;"]);
|
|
@@ -58247,9 +58228,9 @@ var ScrollableContent = function ScrollableContent(_ref) {
|
|
|
58247
58228
|
_ref$maxHeight = _ref.maxHeight,
|
|
58248
58229
|
maxHeight = _ref$maxHeight === void 0 ? '500px' : _ref$maxHeight;
|
|
58249
58230
|
if (items.length === 0) {
|
|
58250
|
-
return React__default.createElement(EmptyMessage$
|
|
58231
|
+
return React__default.createElement(EmptyMessage$2, null, emptyMessage);
|
|
58251
58232
|
}
|
|
58252
|
-
return React__default.createElement(Container$
|
|
58233
|
+
return React__default.createElement(Container$K, {
|
|
58253
58234
|
className: className
|
|
58254
58235
|
}, (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, {
|
|
58255
58236
|
value: searchOptions.value,
|
|
@@ -58270,7 +58251,7 @@ var ScrollableContent = function ScrollableContent(_ref) {
|
|
|
58270
58251
|
}, renderItem(item));
|
|
58271
58252
|
})));
|
|
58272
58253
|
};
|
|
58273
|
-
var Container$
|
|
58254
|
+
var Container$K = /*#__PURE__*/styled__default.div.withConfig({
|
|
58274
58255
|
displayName: "ScrollableContent__Container",
|
|
58275
58256
|
componentId: "sc-xhh2um-0"
|
|
58276
58257
|
})(["display:flex;flex-direction:column;gap:1rem;width:100%;"]);
|
|
@@ -58306,7 +58287,7 @@ var Content$4 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
58306
58287
|
}, function (props) {
|
|
58307
58288
|
return props.$gridColumns;
|
|
58308
58289
|
});
|
|
58309
|
-
var EmptyMessage$
|
|
58290
|
+
var EmptyMessage$2 = /*#__PURE__*/styled__default.div.withConfig({
|
|
58310
58291
|
displayName: "ScrollableContent__EmptyMessage",
|
|
58311
58292
|
componentId: "sc-xhh2um-8"
|
|
58312
58293
|
})(["text-align:center;color:#9ca3af;padding:2rem;flex:1;display:flex;align-items:center;justify-content:center;"]);
|
|
@@ -58886,7 +58867,7 @@ var StoreItemDetails = function StoreItemDetails(_ref) {
|
|
|
58886
58867
|
if (typeof imageUrl === 'string') return imageUrl;
|
|
58887
58868
|
return imageUrl["default"] || imageUrl.src;
|
|
58888
58869
|
};
|
|
58889
|
-
return React__default.createElement(Container$
|
|
58870
|
+
return React__default.createElement(Container$L, null, React__default.createElement(Header$9, null, React__default.createElement(BackButton, {
|
|
58890
58871
|
onClick: onBack
|
|
58891
58872
|
}, 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", {
|
|
58892
58873
|
src: getImageSrc(),
|
|
@@ -58900,7 +58881,7 @@ var StoreItemDetails = function StoreItemDetails(_ref) {
|
|
|
58900
58881
|
fullWidth: true
|
|
58901
58882
|
}))));
|
|
58902
58883
|
};
|
|
58903
|
-
var Container$
|
|
58884
|
+
var Container$L = /*#__PURE__*/styled__default.div.withConfig({
|
|
58904
58885
|
displayName: "StoreItemDetails__Container",
|
|
58905
58886
|
componentId: "sc-k3ho5z-0"
|
|
58906
58887
|
})(["display:flex;flex-direction:column;gap:1.5rem;padding:1.5rem;height:100%;"]);
|
|
@@ -59163,7 +59144,7 @@ var Store = function Store(_ref) {
|
|
|
59163
59144
|
onAddToCart: function onAddToCart() {
|
|
59164
59145
|
return handleAddPackToCart(selectedPack);
|
|
59165
59146
|
}
|
|
59166
|
-
}) : React__default.createElement(Container$
|
|
59147
|
+
}) : React__default.createElement(Container$M, null, React__default.createElement(TopBar$1, null, React__default.createElement(HistoryButton, null, onShowHistory && React__default.createElement(CTAButton, {
|
|
59167
59148
|
icon: React__default.createElement(fa.FaHistory, null),
|
|
59168
59149
|
label: "History",
|
|
59169
59150
|
onClick: onShowHistory
|
|
@@ -59189,7 +59170,7 @@ var Store = function Store(_ref) {
|
|
|
59189
59170
|
fullWidth: true
|
|
59190
59171
|
}))));
|
|
59191
59172
|
};
|
|
59192
|
-
var Container$
|
|
59173
|
+
var Container$M = /*#__PURE__*/styled__default.div.withConfig({
|
|
59193
59174
|
displayName: "Store__Container",
|
|
59194
59175
|
componentId: "sc-64dj00-0"
|
|
59195
59176
|
})(["display:flex;flex-direction:column;width:100%;height:100%;gap:1rem;position:relative;"]);
|
|
@@ -59560,7 +59541,7 @@ var TradingMenu = function TradingMenu(_ref) {
|
|
|
59560
59541
|
width: "500px",
|
|
59561
59542
|
cancelDrag: "#TraderContainer",
|
|
59562
59543
|
scale: scale
|
|
59563
|
-
}, React__default.createElement(Container$
|
|
59544
|
+
}, React__default.createElement(Container$N, null, React__default.createElement(Title$f, null, type.charAt(0).toUpperCase() + type.slice(1), " Menu"), React__default.createElement("hr", {
|
|
59564
59545
|
className: "golden"
|
|
59565
59546
|
}), React__default.createElement(ScrollWrapper, {
|
|
59566
59547
|
id: "TraderContainer"
|
|
@@ -59588,7 +59569,7 @@ var TradingMenu = function TradingMenu(_ref) {
|
|
|
59588
59569
|
onPointerDown: onClose
|
|
59589
59570
|
}, "Cancel"))));
|
|
59590
59571
|
};
|
|
59591
|
-
var Container$
|
|
59572
|
+
var Container$N = /*#__PURE__*/styled__default.div.withConfig({
|
|
59592
59573
|
displayName: "TradingMenu__Container",
|
|
59593
59574
|
componentId: "sc-1wjsz1l-0"
|
|
59594
59575
|
})(["width:100%;"]);
|
|
@@ -59622,11 +59603,11 @@ var Truncate = function Truncate(_ref) {
|
|
|
59622
59603
|
var _ref$maxLines = _ref.maxLines,
|
|
59623
59604
|
maxLines = _ref$maxLines === void 0 ? 1 : _ref$maxLines,
|
|
59624
59605
|
children = _ref.children;
|
|
59625
|
-
return React__default.createElement(Container$
|
|
59606
|
+
return React__default.createElement(Container$O, {
|
|
59626
59607
|
maxLines: maxLines
|
|
59627
59608
|
}, children);
|
|
59628
59609
|
};
|
|
59629
|
-
var Container$
|
|
59610
|
+
var Container$O = /*#__PURE__*/styled__default.div.withConfig({
|
|
59630
59611
|
displayName: "Truncate__Container",
|
|
59631
59612
|
componentId: "sc-6x00qb-0"
|
|
59632
59613
|
})(["display:-webkit-box;max-width:100%;max-height:100%;-webkit-line-clamp:", ";-webkit-box-orient:vertical;overflow:hidden;"], function (props) {
|
|
@@ -59734,7 +59715,7 @@ var TutorialStepper = /*#__PURE__*/React__default.memo(function (_ref) {
|
|
|
59734
59715
|
};
|
|
59735
59716
|
});
|
|
59736
59717
|
}, [lessons, imageStyle]);
|
|
59737
|
-
return React__default.createElement(Container$
|
|
59718
|
+
return React__default.createElement(Container$P, null, React__default.createElement(Stepper, {
|
|
59738
59719
|
steps: generateLessons,
|
|
59739
59720
|
finalCTAButton: {
|
|
59740
59721
|
label: 'Close',
|
|
@@ -59751,7 +59732,7 @@ var LessonBody = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
59751
59732
|
displayName: "TutorialStepper__LessonBody",
|
|
59752
59733
|
componentId: "sc-7tgzv2-1"
|
|
59753
59734
|
})([""]);
|
|
59754
|
-
var Container$
|
|
59735
|
+
var Container$P = /*#__PURE__*/styled__default.div.withConfig({
|
|
59755
59736
|
displayName: "TutorialStepper__Container",
|
|
59756
59737
|
componentId: "sc-7tgzv2-2"
|
|
59757
59738
|
})(["width:80%;max-width:600px;@media (max-width:600px){width:95%;}"]);
|