@rpg-engine/long-bow 0.8.122 → 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 -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 +221 -247
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Friends/FriendList.tsx +222 -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,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,78 +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$, _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
31820
|
var TOOLTIP_OFFSET = 10;
|
|
31847
31821
|
var MIN_VISIBLE_HEIGHT = 100;
|
|
31848
31822
|
var useTooltipPosition = function useTooltipPosition() {
|
|
@@ -31939,7 +31913,7 @@ var Pagination = function Pagination(_ref) {
|
|
|
31939
31913
|
totalPages = _ref.totalPages,
|
|
31940
31914
|
onPageChange = _ref.onPageChange,
|
|
31941
31915
|
className = _ref.className;
|
|
31942
|
-
return React__default.createElement(Container$
|
|
31916
|
+
return React__default.createElement(Container$p, {
|
|
31943
31917
|
className: className
|
|
31944
31918
|
}, React__default.createElement(PaginationButton$1, {
|
|
31945
31919
|
onClick: function onClick() {
|
|
@@ -31957,7 +31931,7 @@ var Pagination = function Pagination(_ref) {
|
|
|
31957
31931
|
size: 12
|
|
31958
31932
|
})));
|
|
31959
31933
|
};
|
|
31960
|
-
var Container$
|
|
31934
|
+
var Container$p = /*#__PURE__*/styled__default.div.withConfig({
|
|
31961
31935
|
displayName: "Pagination__Container",
|
|
31962
31936
|
componentId: "sc-3k4m4u-0"
|
|
31963
31937
|
})(["display:flex;align-items:center;justify-content:center;gap:16px;padding:8px;"]);
|
|
@@ -32065,12 +32039,12 @@ var PaginatedContent = function PaginatedContent(_ref) {
|
|
|
32065
32039
|
setCurrentPage = _usePagination.setCurrentPage,
|
|
32066
32040
|
paginatedItems = _usePagination.paginatedItems,
|
|
32067
32041
|
totalPages = _usePagination.totalPages;
|
|
32068
|
-
return React__default.createElement(Container$
|
|
32042
|
+
return React__default.createElement(Container$q, {
|
|
32069
32043
|
className: className
|
|
32070
32044
|
}, (searchOptions || filterOptions) && React__default.createElement(SearchHeader$1, {
|
|
32071
32045
|
searchOptions: searchOptions,
|
|
32072
32046
|
filterOptions: filterOptions
|
|
32073
|
-
}), 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, {
|
|
32074
32048
|
className: "PaginatedContent-content " + layout,
|
|
32075
32049
|
"$gridColumns": gridColumns,
|
|
32076
32050
|
"$itemHeight": itemHeight
|
|
@@ -32087,7 +32061,7 @@ var PaginatedContent = function PaginatedContent(_ref) {
|
|
|
32087
32061
|
onPageChange: setCurrentPage
|
|
32088
32062
|
}))));
|
|
32089
32063
|
};
|
|
32090
|
-
var Container$
|
|
32064
|
+
var Container$q = /*#__PURE__*/styled__default.div.withConfig({
|
|
32091
32065
|
displayName: "PaginatedContent__Container",
|
|
32092
32066
|
componentId: "sc-lzp9hn-0"
|
|
32093
32067
|
})(["display:flex;flex-direction:column;gap:0.5rem;min-height:400px;width:100%;"]);
|
|
@@ -32106,7 +32080,7 @@ var PaginationContainer$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
32106
32080
|
displayName: "PaginatedContent__PaginationContainer",
|
|
32107
32081
|
componentId: "sc-lzp9hn-2"
|
|
32108
32082
|
})(["display:flex;justify-content:center;padding:0.5rem;@media (min-width:480px){padding:1rem;}"]);
|
|
32109
|
-
var EmptyMessage = /*#__PURE__*/styled__default.div.withConfig({
|
|
32083
|
+
var EmptyMessage$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
32110
32084
|
displayName: "PaginatedContent__EmptyMessage",
|
|
32111
32085
|
componentId: "sc-lzp9hn-3"
|
|
32112
32086
|
})(["text-align:center;color:#9ca3af;padding:2rem;flex:1;display:flex;align-items:center;justify-content:center;"]);
|
|
@@ -32209,7 +32183,7 @@ var BaseInformationDetails = function BaseInformationDetails(_ref) {
|
|
|
32209
32183
|
atlasIMG = _ref.atlasIMG,
|
|
32210
32184
|
onBack = _ref.onBack,
|
|
32211
32185
|
children = _ref.children;
|
|
32212
|
-
return React__default.createElement(Container$
|
|
32186
|
+
return React__default.createElement(Container$r, null, React__default.createElement(Overlay, {
|
|
32213
32187
|
onClick: onBack
|
|
32214
32188
|
}), React__default.createElement(Modal, null, React__default.createElement(CloseButton$5, {
|
|
32215
32189
|
onClick: onBack
|
|
@@ -32222,7 +32196,7 @@ var BaseInformationDetails = function BaseInformationDetails(_ref) {
|
|
|
32222
32196
|
imgScale: 1
|
|
32223
32197
|
})), React__default.createElement(Title$3, null, name)), React__default.createElement(Content$1, null, children)));
|
|
32224
32198
|
};
|
|
32225
|
-
var Container$
|
|
32199
|
+
var Container$r = /*#__PURE__*/styled__default.div.withConfig({
|
|
32226
32200
|
displayName: "BaseInformationDetails__Container",
|
|
32227
32201
|
componentId: "sc-1vguuz8-0"
|
|
32228
32202
|
})(["position:fixed;inset:0;display:flex;justify-content:center;align-items:center;z-index:9999;"]);
|
|
@@ -32264,7 +32238,7 @@ var Collapsible = function Collapsible(_ref) {
|
|
|
32264
32238
|
var _useState = React.useState(defaultOpen),
|
|
32265
32239
|
isOpen = _useState[0],
|
|
32266
32240
|
setIsOpen = _useState[1];
|
|
32267
|
-
return React__default.createElement(Container$
|
|
32241
|
+
return React__default.createElement(Container$s, {
|
|
32268
32242
|
className: className
|
|
32269
32243
|
}, React__default.createElement(Header$3, {
|
|
32270
32244
|
onClick: function onClick() {
|
|
@@ -32272,7 +32246,7 @@ var Collapsible = function Collapsible(_ref) {
|
|
|
32272
32246
|
}
|
|
32273
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));
|
|
32274
32248
|
};
|
|
32275
|
-
var Container$
|
|
32249
|
+
var Container$s = /*#__PURE__*/styled__default.div.withConfig({
|
|
32276
32250
|
displayName: "Collapsible__Container",
|
|
32277
32251
|
componentId: "sc-s4h8ey-0"
|
|
32278
32252
|
})(["background:rgba(0,0,0,0.3);border-radius:4px;overflow:hidden;border:1px solid ", ";"], uiColors.darkGray);
|
|
@@ -32602,7 +32576,7 @@ var AdvancedFilters = function AdvancedFilters(_ref) {
|
|
|
32602
32576
|
onClose();
|
|
32603
32577
|
}
|
|
32604
32578
|
};
|
|
32605
|
-
return React__default.createElement(Container$
|
|
32579
|
+
return React__default.createElement(Container$t, null, React__default.createElement(FilterButton, {
|
|
32606
32580
|
onClick: onToggle,
|
|
32607
32581
|
"$hasActiveFilters": hasActiveFilters,
|
|
32608
32582
|
ref: buttonRef
|
|
@@ -32633,7 +32607,7 @@ var AdvancedFilters = function AdvancedFilters(_ref) {
|
|
|
32633
32607
|
onClick: onClearAll
|
|
32634
32608
|
}, "Clear All Filters"))));
|
|
32635
32609
|
};
|
|
32636
|
-
var Container$
|
|
32610
|
+
var Container$t = /*#__PURE__*/styled__default.div.withConfig({
|
|
32637
32611
|
displayName: "AdvancedFilters__Container",
|
|
32638
32612
|
componentId: "sc-1xj6ldr-0"
|
|
32639
32613
|
})(["position:relative;margin-left:0.5rem;"]);
|
|
@@ -33727,7 +33701,7 @@ var InformationCenter = function InformationCenter(_ref) {
|
|
|
33727
33701
|
minWidth: "300px",
|
|
33728
33702
|
cancelDrag: ".PaginatedContent-content",
|
|
33729
33703
|
onCloseButton: onClose
|
|
33730
|
-
}, React__default.createElement(Container$
|
|
33704
|
+
}, React__default.createElement(Container$u, null, React__default.createElement(InternalTabs, {
|
|
33731
33705
|
tabs: tabs,
|
|
33732
33706
|
activeTextColor: "#000000",
|
|
33733
33707
|
activeTab: activeTab,
|
|
@@ -33738,7 +33712,7 @@ var InformationCenter = function InformationCenter(_ref) {
|
|
|
33738
33712
|
hoverColor: "#fef3c7"
|
|
33739
33713
|
})));
|
|
33740
33714
|
};
|
|
33741
|
-
var Container$
|
|
33715
|
+
var Container$u = /*#__PURE__*/styled__default.div.withConfig({
|
|
33742
33716
|
displayName: "InformationCenter__Container",
|
|
33743
33717
|
componentId: "sc-1ttl62e-0"
|
|
33744
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;}"]);
|
|
@@ -33909,7 +33883,7 @@ var ShortcutsSetter = function ShortcutsSetter(_ref) {
|
|
|
33909
33883
|
}
|
|
33910
33884
|
return null;
|
|
33911
33885
|
};
|
|
33912
|
-
return React__default.createElement(Container$
|
|
33886
|
+
return React__default.createElement(Container$v, null, React__default.createElement("p", null, "Shortcuts:"), React__default.createElement(List, {
|
|
33913
33887
|
id: "shortcuts_list"
|
|
33914
33888
|
}, Array.from({
|
|
33915
33889
|
length: 12
|
|
@@ -33927,7 +33901,7 @@ var ShortcutsSetter = function ShortcutsSetter(_ref) {
|
|
|
33927
33901
|
}, getContent(i));
|
|
33928
33902
|
})));
|
|
33929
33903
|
};
|
|
33930
|
-
var Container$
|
|
33904
|
+
var Container$v = /*#__PURE__*/styled__default.div.withConfig({
|
|
33931
33905
|
displayName: "ShortcutsSetter__Container",
|
|
33932
33906
|
componentId: "sc-xuouuf-0"
|
|
33933
33907
|
})(["p{margin:0;margin-left:0.5rem;font-size:10px;}width:100%;"]);
|
|
@@ -34470,13 +34444,13 @@ var ColorSelector = function ColorSelector(_ref) {
|
|
|
34470
34444
|
cancelDrag: ".react-colorful",
|
|
34471
34445
|
width: "25rem",
|
|
34472
34446
|
onCloseButton: onClose
|
|
34473
|
-
}, 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, {
|
|
34474
34448
|
color: currentColor,
|
|
34475
34449
|
onChange: function onChange(color) {
|
|
34476
34450
|
setCurrentColor(color);
|
|
34477
34451
|
_onChange(color);
|
|
34478
34452
|
}
|
|
34479
|
-
})), React__default.createElement(ButtonContainer$
|
|
34453
|
+
})), React__default.createElement(ButtonContainer$1, null, React__default.createElement(Button, {
|
|
34480
34454
|
buttonType: exports.ButtonTypes.RPGUIButton,
|
|
34481
34455
|
type: "button",
|
|
34482
34456
|
onClick: handleConfirm
|
|
@@ -34486,7 +34460,7 @@ var ColorSelector = function ColorSelector(_ref) {
|
|
|
34486
34460
|
onClose: handleClose
|
|
34487
34461
|
}));
|
|
34488
34462
|
};
|
|
34489
|
-
var Container$
|
|
34463
|
+
var Container$w = /*#__PURE__*/styled__default.div.withConfig({
|
|
34490
34464
|
displayName: "ItemPropertyColorSelector__Container",
|
|
34491
34465
|
componentId: "sc-me1r4z-0"
|
|
34492
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;"]);
|
|
@@ -34498,7 +34472,7 @@ var ColorPickerWrapper = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
34498
34472
|
displayName: "ItemPropertyColorSelector__ColorPickerWrapper",
|
|
34499
34473
|
componentId: "sc-me1r4z-2"
|
|
34500
34474
|
})(["display:flex;justify-content:center;width:100%;.react-colorful{width:100%;max-width:200px;}"]);
|
|
34501
|
-
var ButtonContainer$
|
|
34475
|
+
var ButtonContainer$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
34502
34476
|
displayName: "ItemPropertyColorSelector__ButtonContainer",
|
|
34503
34477
|
componentId: "sc-me1r4z-3"
|
|
34504
34478
|
})(["display:flex;justify-content:center;width:100%;"]);
|
|
@@ -34842,7 +34816,7 @@ var ListMenu = function ListMenu(_ref) {
|
|
|
34842
34816
|
onSelected = _ref.onSelected,
|
|
34843
34817
|
x = _ref.x,
|
|
34844
34818
|
y = _ref.y;
|
|
34845
|
-
return React__default.createElement(Container$
|
|
34819
|
+
return React__default.createElement(Container$x, {
|
|
34846
34820
|
x: x,
|
|
34847
34821
|
y: y
|
|
34848
34822
|
}, React__default.createElement("ul", {
|
|
@@ -34859,7 +34833,7 @@ var ListMenu = function ListMenu(_ref) {
|
|
|
34859
34833
|
}, (params == null ? void 0 : params.text) || 'No text');
|
|
34860
34834
|
})));
|
|
34861
34835
|
};
|
|
34862
|
-
var Container$
|
|
34836
|
+
var Container$x = /*#__PURE__*/styled__default.div.withConfig({
|
|
34863
34837
|
displayName: "ListMenu__Container",
|
|
34864
34838
|
componentId: "sc-i9097t-0"
|
|
34865
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) {
|
|
@@ -34878,7 +34852,7 @@ var Pager = function Pager(_ref) {
|
|
|
34878
34852
|
itemsPerPage = _ref.itemsPerPage,
|
|
34879
34853
|
onPageChange = _ref.onPageChange;
|
|
34880
34854
|
var totalPages = Math.ceil(totalItems / itemsPerPage);
|
|
34881
|
-
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", {
|
|
34882
34856
|
disabled: currentPage === 1,
|
|
34883
34857
|
onPointerDown: function onPointerDown() {
|
|
34884
34858
|
return onPageChange(Math.max(currentPage - 1, 1));
|
|
@@ -34892,7 +34866,7 @@ var Pager = function Pager(_ref) {
|
|
|
34892
34866
|
}
|
|
34893
34867
|
}, '>')));
|
|
34894
34868
|
};
|
|
34895
|
-
var Container$
|
|
34869
|
+
var Container$y = /*#__PURE__*/styled__default.div.withConfig({
|
|
34896
34870
|
displayName: "Pager__Container",
|
|
34897
34871
|
componentId: "sc-1ekmf50-0"
|
|
34898
34872
|
})(["display:flex;flex-direction:column;align-items:center;p{margin:0;font-size:", ";}"], uiFonts.size.xsmall);
|
|
@@ -34946,7 +34920,7 @@ var MarketplaceRows = function MarketplaceRows(_ref) {
|
|
|
34946
34920
|
maxLines: 1,
|
|
34947
34921
|
maxWidth: "200px",
|
|
34948
34922
|
fontSize: "10px"
|
|
34949
|
-
}, "$", itemPrice)))), React__default.createElement(ButtonContainer$
|
|
34923
|
+
}, "$", itemPrice)))), React__default.createElement(ButtonContainer$2, null, React__default.createElement(Button, {
|
|
34950
34924
|
buttonType: exports.ButtonTypes.RPGUIButton,
|
|
34951
34925
|
disabled: disabled,
|
|
34952
34926
|
onPointerDown: function onPointerDown() {
|
|
@@ -34988,7 +34962,7 @@ var PriceValue = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
34988
34962
|
displayName: "MarketplaceRows__PriceValue",
|
|
34989
34963
|
componentId: "sc-wmpr1o-7"
|
|
34990
34964
|
})(["margin-left:40px;"]);
|
|
34991
|
-
var ButtonContainer$
|
|
34965
|
+
var ButtonContainer$2 = /*#__PURE__*/styled__default.div.withConfig({
|
|
34992
34966
|
displayName: "MarketplaceRows__ButtonContainer",
|
|
34993
34967
|
componentId: "sc-wmpr1o-8"
|
|
34994
34968
|
})(["margin:auto;"]);
|
|
@@ -35413,13 +35387,13 @@ var TabBody = function TabBody(_ref) {
|
|
|
35413
35387
|
children = _ref.children,
|
|
35414
35388
|
styles = _ref.styles,
|
|
35415
35389
|
centerContent = _ref.centerContent;
|
|
35416
|
-
return React__default.createElement(Container$
|
|
35390
|
+
return React__default.createElement(Container$z, {
|
|
35417
35391
|
styles: styles,
|
|
35418
35392
|
"data-tab-id": id,
|
|
35419
35393
|
centerContent: centerContent
|
|
35420
35394
|
}, children);
|
|
35421
35395
|
};
|
|
35422
|
-
var Container$
|
|
35396
|
+
var Container$z = /*#__PURE__*/styled__default.div.withConfig({
|
|
35423
35397
|
displayName: "TabBody__Container",
|
|
35424
35398
|
componentId: "sc-196oof2-0"
|
|
35425
35399
|
})(["width:", ";height:", ";overflow-y:auto;display:", ";justify-content:", ";align-items:", ";"], function (props) {
|
|
@@ -35756,7 +35730,7 @@ var PartyManagerRow = function PartyManagerRow(_ref) {
|
|
|
35756
35730
|
}, charName, " ", isCurrentUser ? '(You)' : '', " ", isLeader ? '(Leader)' : '')), React__default.createElement(TextContainer$5, null, React__default.createElement(Ellipsis, {
|
|
35757
35731
|
maxLines: 1,
|
|
35758
35732
|
maxWidth: "300px"
|
|
35759
|
-
}, charClass)), React__default.createElement(ButtonContainer$
|
|
35733
|
+
}, charClass)), React__default.createElement(ButtonContainer$3, null, canRemove && React__default.createElement(HighlightedText, {
|
|
35760
35734
|
onPointerDown: function onPointerDown() {
|
|
35761
35735
|
return onRemovePlayer(id);
|
|
35762
35736
|
}
|
|
@@ -35774,7 +35748,7 @@ var TextContainer$5 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
35774
35748
|
displayName: "PartyManagerRows__TextContainer",
|
|
35775
35749
|
componentId: "sc-uqajew-1"
|
|
35776
35750
|
})(["color:", ";overflow:hidden;white-space:nowrap;text-overflow:ellipsis;"], uiColors.white);
|
|
35777
|
-
var ButtonContainer$
|
|
35751
|
+
var ButtonContainer$3 = /*#__PURE__*/styled__default.div.withConfig({
|
|
35778
35752
|
displayName: "PartyManagerRows__ButtonContainer",
|
|
35779
35753
|
componentId: "sc-uqajew-2"
|
|
35780
35754
|
})(["display:flex;align-items:center;gap:1rem;justify-content:flex-start;"]);
|
|
@@ -36073,7 +36047,7 @@ var ProgressBar$1 = function ProgressBar(_ref) {
|
|
|
36073
36047
|
// Round only for display, not for calculation
|
|
36074
36048
|
var displayValue = Math.round(value);
|
|
36075
36049
|
var displayMax = Math.round(max);
|
|
36076
|
-
return React__default.createElement(Container$
|
|
36050
|
+
return React__default.createElement(Container$A, {
|
|
36077
36051
|
className: "rpgui-progress",
|
|
36078
36052
|
"data-value": calculatePercentageValue(max, value) / 100,
|
|
36079
36053
|
"data-rpguitype": "progress",
|
|
@@ -36105,7 +36079,7 @@ var TextOverlay$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
36105
36079
|
displayName: "ProgressBar__TextOverlay",
|
|
36106
36080
|
componentId: "sc-qa6fzh-1"
|
|
36107
36081
|
})(["width:100%;position:relative;"]);
|
|
36108
|
-
var Container$
|
|
36082
|
+
var Container$A = /*#__PURE__*/styled__default.div.withConfig({
|
|
36109
36083
|
displayName: "ProgressBar__Container",
|
|
36110
36084
|
componentId: "sc-qa6fzh-2"
|
|
36111
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) {
|
|
@@ -36346,9 +36320,9 @@ var InputRadio = function InputRadio(_ref) {
|
|
|
36346
36320
|
|
|
36347
36321
|
var RPGUIScrollbar = function RPGUIScrollbar(_ref) {
|
|
36348
36322
|
var children = _ref.children;
|
|
36349
|
-
return React__default.createElement(Container$
|
|
36323
|
+
return React__default.createElement(Container$B, null, children);
|
|
36350
36324
|
};
|
|
36351
|
-
var Container$
|
|
36325
|
+
var Container$B = /*#__PURE__*/styled__default.div.withConfig({
|
|
36352
36326
|
displayName: "RPGUIScrollbar__Container",
|
|
36353
36327
|
componentId: "sc-p3msmb-0"
|
|
36354
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;}"]);
|
|
@@ -36505,7 +36479,7 @@ var SimpleProgressBar = function SimpleProgressBar(_ref) {
|
|
|
36505
36479
|
margin = _ref$margin === void 0 ? 20 : _ref$margin;
|
|
36506
36480
|
// Ensure the width is at least 1% if value is greater than 0, capped at 99.99%
|
|
36507
36481
|
var width = value > 0 ? Math.max(1, Math.min(99.99, value)) : 0;
|
|
36508
|
-
return React__default.createElement(Container$
|
|
36482
|
+
return React__default.createElement(Container$C, {
|
|
36509
36483
|
className: "simple-progress-bar"
|
|
36510
36484
|
}, React__default.createElement(ProgressBarContainer, {
|
|
36511
36485
|
margin: margin
|
|
@@ -36514,7 +36488,7 @@ var SimpleProgressBar = function SimpleProgressBar(_ref) {
|
|
|
36514
36488
|
bgColor: bgColor
|
|
36515
36489
|
}))));
|
|
36516
36490
|
};
|
|
36517
|
-
var Container$
|
|
36491
|
+
var Container$C = /*#__PURE__*/styled__default.div.withConfig({
|
|
36518
36492
|
displayName: "SimpleProgressBar__Container",
|
|
36519
36493
|
componentId: "sc-mbeil3-0"
|
|
36520
36494
|
})(["display:flex;justify-content:center;align-items:center;width:100%;"]);
|
|
@@ -36902,7 +36876,7 @@ var SocialModal = function SocialModal(_ref) {
|
|
|
36902
36876
|
title: "Social Channels",
|
|
36903
36877
|
width: "500px",
|
|
36904
36878
|
onCloseButton: onClose
|
|
36905
|
-
}, React__default.createElement(Container$
|
|
36879
|
+
}, React__default.createElement(Container$D, null, React__default.createElement(HeaderImage, {
|
|
36906
36880
|
src: img$9,
|
|
36907
36881
|
alt: ""
|
|
36908
36882
|
}), React__default.createElement(ButtonsContainer$3, null, React__default.createElement(MainButtons, null, React__default.createElement(SocialButton$1, {
|
|
@@ -36920,7 +36894,7 @@ var SocialModal = function SocialModal(_ref) {
|
|
|
36920
36894
|
onClick: handleWhatsAppClick
|
|
36921
36895
|
}, React__default.createElement(fa.FaWhatsapp, null), " Join WhatsApp")))));
|
|
36922
36896
|
};
|
|
36923
|
-
var Container$
|
|
36897
|
+
var Container$D = /*#__PURE__*/styled__default.div.withConfig({
|
|
36924
36898
|
displayName: "SocialModal__Container",
|
|
36925
36899
|
componentId: "sc-tbjhp9-0"
|
|
36926
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% );}"]);
|
|
@@ -36966,7 +36940,7 @@ var SpellInfo$1 = function SpellInfo(_ref) {
|
|
|
36966
36940
|
castingType = spell.castingType,
|
|
36967
36941
|
cooldown = spell.cooldown,
|
|
36968
36942
|
maxDistanceGrid = spell.maxDistanceGrid;
|
|
36969
|
-
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", {
|
|
36970
36944
|
className: "label"
|
|
36971
36945
|
}, "Casting Type:"), React__default.createElement("div", {
|
|
36972
36946
|
className: "value"
|
|
@@ -36992,7 +36966,7 @@ var SpellInfo$1 = function SpellInfo(_ref) {
|
|
|
36992
36966
|
className: "value"
|
|
36993
36967
|
}, requiredItem))), React__default.createElement(Description$4, null, description));
|
|
36994
36968
|
};
|
|
36995
|
-
var Container$
|
|
36969
|
+
var Container$E = /*#__PURE__*/styled__default.div.withConfig({
|
|
36996
36970
|
displayName: "SpellInfo__Container",
|
|
36997
36971
|
componentId: "sc-4hbw3q-0"
|
|
36998
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);
|
|
@@ -37046,7 +37020,7 @@ var MobileSpellTooltip = function MobileSpellTooltip(_ref) {
|
|
|
37046
37020
|
var _ref$current;
|
|
37047
37021
|
(_ref$current = ref.current) == null ? void 0 : _ref$current.classList.add('fadeOut');
|
|
37048
37022
|
};
|
|
37049
|
-
return React__default.createElement(ModalPortal, null, React__default.createElement(Container$
|
|
37023
|
+
return React__default.createElement(ModalPortal, null, React__default.createElement(Container$F, {
|
|
37050
37024
|
ref: ref,
|
|
37051
37025
|
onTouchEnd: function onTouchEnd() {
|
|
37052
37026
|
handleFadeOut();
|
|
@@ -37071,7 +37045,7 @@ var MobileSpellTooltip = function MobileSpellTooltip(_ref) {
|
|
|
37071
37045
|
}, option.text);
|
|
37072
37046
|
}))));
|
|
37073
37047
|
};
|
|
37074
|
-
var Container$
|
|
37048
|
+
var Container$F = /*#__PURE__*/styled__default.div.withConfig({
|
|
37075
37049
|
displayName: "MobileSpellTooltip__Container",
|
|
37076
37050
|
componentId: "sc-6p7uvr-0"
|
|
37077
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;}"]);
|
|
@@ -37112,13 +37086,13 @@ var MagicTooltip = function MagicTooltip(_ref) {
|
|
|
37112
37086
|
}
|
|
37113
37087
|
return;
|
|
37114
37088
|
}, []);
|
|
37115
|
-
return React__default.createElement(ModalPortal, null, React__default.createElement(Container$
|
|
37089
|
+
return React__default.createElement(ModalPortal, null, React__default.createElement(Container$G, {
|
|
37116
37090
|
ref: ref
|
|
37117
37091
|
}, React__default.createElement(SpellInfoDisplay, {
|
|
37118
37092
|
spell: spell
|
|
37119
37093
|
})));
|
|
37120
37094
|
};
|
|
37121
|
-
var Container$
|
|
37095
|
+
var Container$G = /*#__PURE__*/styled__default.div.withConfig({
|
|
37122
37096
|
displayName: "SpellTooltip__Container",
|
|
37123
37097
|
componentId: "sc-1go0gwg-0"
|
|
37124
37098
|
})(["position:absolute;z-index:100;pointer-events:none;left:0;top:0;opacity:0;transition:opacity 0.08s;"]);
|
|
@@ -37220,7 +37194,7 @@ var Spell = function Spell(_ref) {
|
|
|
37220
37194
|
var IMAGE_SCALE = 2;
|
|
37221
37195
|
return React__default.createElement(SpellInfoWrapper, {
|
|
37222
37196
|
spell: spell
|
|
37223
|
-
}, React__default.createElement(Container$
|
|
37197
|
+
}, React__default.createElement(Container$H, {
|
|
37224
37198
|
onPointerUp: onPointerUp == null ? void 0 : onPointerUp.bind(null, spellKey),
|
|
37225
37199
|
isSettingShortcut: isSettingShortcut && !disabled,
|
|
37226
37200
|
className: "spell"
|
|
@@ -37239,7 +37213,7 @@ var Spell = function Spell(_ref) {
|
|
|
37239
37213
|
className: "mana"
|
|
37240
37214
|
}, manaCost))));
|
|
37241
37215
|
};
|
|
37242
|
-
var Container$
|
|
37216
|
+
var Container$H = /*#__PURE__*/styled__default.button.withConfig({
|
|
37243
37217
|
displayName: "Spell__Container",
|
|
37244
37218
|
componentId: "sc-j96fa2-0"
|
|
37245
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) {
|
|
@@ -37319,7 +37293,7 @@ var Spellbook = function Spellbook(_ref) {
|
|
|
37319
37293
|
height: "inherit",
|
|
37320
37294
|
cancelDrag: "#spellbook-search, #shortcuts_list, .spell",
|
|
37321
37295
|
scale: scale
|
|
37322
|
-
}, React__default.createElement(Container$
|
|
37296
|
+
}, React__default.createElement(Container$I, null, React__default.createElement(Title$d, null, "Learned Spells"), React__default.createElement(ShortcutsSetter, {
|
|
37323
37297
|
setSettingShortcutIndex: setSettingShortcutIndex,
|
|
37324
37298
|
settingShortcutIndex: settingShortcutIndex,
|
|
37325
37299
|
shortcuts: shortcuts,
|
|
@@ -37356,7 +37330,7 @@ var Title$d = /*#__PURE__*/styled__default.h1.withConfig({
|
|
|
37356
37330
|
displayName: "Spellbook__Title",
|
|
37357
37331
|
componentId: "sc-r02nfq-0"
|
|
37358
37332
|
})(["font-size:", " !important;margin-bottom:0 !important;"], uiFonts.size.large);
|
|
37359
|
-
var Container$
|
|
37333
|
+
var Container$I = /*#__PURE__*/styled__default.div.withConfig({
|
|
37360
37334
|
displayName: "Spellbook__Container",
|
|
37361
37335
|
componentId: "sc-r02nfq-1"
|
|
37362
37336
|
})(["width:100%;height:100%;color:white;display:flex;flex-direction:column;"]);
|
|
@@ -57741,7 +57715,7 @@ var CTAButton = function CTAButton(_ref) {
|
|
|
57741
57715
|
iconColor = _ref$iconColor === void 0 ? '#f59e0b' : _ref$iconColor,
|
|
57742
57716
|
_ref$disabled = _ref.disabled,
|
|
57743
57717
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled;
|
|
57744
|
-
return React__default.createElement(ButtonContainer$
|
|
57718
|
+
return React__default.createElement(ButtonContainer$4, {
|
|
57745
57719
|
className: className,
|
|
57746
57720
|
onPointerDown: disabled ? undefined : onClick,
|
|
57747
57721
|
"$fullWidth": fullWidth,
|
|
@@ -57755,7 +57729,7 @@ var CTAButton = function CTAButton(_ref) {
|
|
|
57755
57729
|
"$disabled": disabled
|
|
57756
57730
|
}, label)));
|
|
57757
57731
|
};
|
|
57758
|
-
var ButtonContainer$
|
|
57732
|
+
var ButtonContainer$4 = /*#__PURE__*/styled__default.div.withConfig({
|
|
57759
57733
|
displayName: "CTAButton__ButtonContainer",
|
|
57760
57734
|
componentId: "sc-1azvwn5-0"
|
|
57761
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) {
|
|
@@ -57864,7 +57838,7 @@ var CartView = function CartView(_ref2) {
|
|
|
57864
57838
|
return _ref3.apply(this, arguments);
|
|
57865
57839
|
};
|
|
57866
57840
|
}();
|
|
57867
|
-
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, {
|
|
57868
57842
|
onPointerDown: onClose
|
|
57869
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) {
|
|
57870
57844
|
var _cartItem$metadata, _cartItem$metadata2;
|
|
@@ -57900,7 +57874,7 @@ var CartView = function CartView(_ref2) {
|
|
|
57900
57874
|
disabled: cartItems.length === 0 || isLoading
|
|
57901
57875
|
})));
|
|
57902
57876
|
};
|
|
57903
|
-
var Container$
|
|
57877
|
+
var Container$J = /*#__PURE__*/styled__default.div.withConfig({
|
|
57904
57878
|
displayName: "CartView__Container",
|
|
57905
57879
|
componentId: "sc-ydtyl1-0"
|
|
57906
57880
|
})(["display:flex;flex-direction:column;width:100%;height:100%;gap:1.5rem;padding:1.5rem;"]);
|
|
@@ -58254,9 +58228,9 @@ var ScrollableContent = function ScrollableContent(_ref) {
|
|
|
58254
58228
|
_ref$maxHeight = _ref.maxHeight,
|
|
58255
58229
|
maxHeight = _ref$maxHeight === void 0 ? '500px' : _ref$maxHeight;
|
|
58256
58230
|
if (items.length === 0) {
|
|
58257
|
-
return React__default.createElement(EmptyMessage$
|
|
58231
|
+
return React__default.createElement(EmptyMessage$2, null, emptyMessage);
|
|
58258
58232
|
}
|
|
58259
|
-
return React__default.createElement(Container$
|
|
58233
|
+
return React__default.createElement(Container$K, {
|
|
58260
58234
|
className: className
|
|
58261
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, {
|
|
58262
58236
|
value: searchOptions.value,
|
|
@@ -58277,7 +58251,7 @@ var ScrollableContent = function ScrollableContent(_ref) {
|
|
|
58277
58251
|
}, renderItem(item));
|
|
58278
58252
|
})));
|
|
58279
58253
|
};
|
|
58280
|
-
var Container$
|
|
58254
|
+
var Container$K = /*#__PURE__*/styled__default.div.withConfig({
|
|
58281
58255
|
displayName: "ScrollableContent__Container",
|
|
58282
58256
|
componentId: "sc-xhh2um-0"
|
|
58283
58257
|
})(["display:flex;flex-direction:column;gap:1rem;width:100%;"]);
|
|
@@ -58313,7 +58287,7 @@ var Content$4 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
58313
58287
|
}, function (props) {
|
|
58314
58288
|
return props.$gridColumns;
|
|
58315
58289
|
});
|
|
58316
|
-
var EmptyMessage$
|
|
58290
|
+
var EmptyMessage$2 = /*#__PURE__*/styled__default.div.withConfig({
|
|
58317
58291
|
displayName: "ScrollableContent__EmptyMessage",
|
|
58318
58292
|
componentId: "sc-xhh2um-8"
|
|
58319
58293
|
})(["text-align:center;color:#9ca3af;padding:2rem;flex:1;display:flex;align-items:center;justify-content:center;"]);
|
|
@@ -58893,7 +58867,7 @@ var StoreItemDetails = function StoreItemDetails(_ref) {
|
|
|
58893
58867
|
if (typeof imageUrl === 'string') return imageUrl;
|
|
58894
58868
|
return imageUrl["default"] || imageUrl.src;
|
|
58895
58869
|
};
|
|
58896
|
-
return React__default.createElement(Container$
|
|
58870
|
+
return React__default.createElement(Container$L, null, React__default.createElement(Header$9, null, React__default.createElement(BackButton, {
|
|
58897
58871
|
onClick: onBack
|
|
58898
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", {
|
|
58899
58873
|
src: getImageSrc(),
|
|
@@ -58907,7 +58881,7 @@ var StoreItemDetails = function StoreItemDetails(_ref) {
|
|
|
58907
58881
|
fullWidth: true
|
|
58908
58882
|
}))));
|
|
58909
58883
|
};
|
|
58910
|
-
var Container$
|
|
58884
|
+
var Container$L = /*#__PURE__*/styled__default.div.withConfig({
|
|
58911
58885
|
displayName: "StoreItemDetails__Container",
|
|
58912
58886
|
componentId: "sc-k3ho5z-0"
|
|
58913
58887
|
})(["display:flex;flex-direction:column;gap:1.5rem;padding:1.5rem;height:100%;"]);
|
|
@@ -59170,7 +59144,7 @@ var Store = function Store(_ref) {
|
|
|
59170
59144
|
onAddToCart: function onAddToCart() {
|
|
59171
59145
|
return handleAddPackToCart(selectedPack);
|
|
59172
59146
|
}
|
|
59173
|
-
}) : 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, {
|
|
59174
59148
|
icon: React__default.createElement(fa.FaHistory, null),
|
|
59175
59149
|
label: "History",
|
|
59176
59150
|
onClick: onShowHistory
|
|
@@ -59196,7 +59170,7 @@ var Store = function Store(_ref) {
|
|
|
59196
59170
|
fullWidth: true
|
|
59197
59171
|
}))));
|
|
59198
59172
|
};
|
|
59199
|
-
var Container$
|
|
59173
|
+
var Container$M = /*#__PURE__*/styled__default.div.withConfig({
|
|
59200
59174
|
displayName: "Store__Container",
|
|
59201
59175
|
componentId: "sc-64dj00-0"
|
|
59202
59176
|
})(["display:flex;flex-direction:column;width:100%;height:100%;gap:1rem;position:relative;"]);
|
|
@@ -59567,7 +59541,7 @@ var TradingMenu = function TradingMenu(_ref) {
|
|
|
59567
59541
|
width: "500px",
|
|
59568
59542
|
cancelDrag: "#TraderContainer",
|
|
59569
59543
|
scale: scale
|
|
59570
|
-
}, 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", {
|
|
59571
59545
|
className: "golden"
|
|
59572
59546
|
}), React__default.createElement(ScrollWrapper, {
|
|
59573
59547
|
id: "TraderContainer"
|
|
@@ -59595,7 +59569,7 @@ var TradingMenu = function TradingMenu(_ref) {
|
|
|
59595
59569
|
onPointerDown: onClose
|
|
59596
59570
|
}, "Cancel"))));
|
|
59597
59571
|
};
|
|
59598
|
-
var Container$
|
|
59572
|
+
var Container$N = /*#__PURE__*/styled__default.div.withConfig({
|
|
59599
59573
|
displayName: "TradingMenu__Container",
|
|
59600
59574
|
componentId: "sc-1wjsz1l-0"
|
|
59601
59575
|
})(["width:100%;"]);
|
|
@@ -59629,11 +59603,11 @@ var Truncate = function Truncate(_ref) {
|
|
|
59629
59603
|
var _ref$maxLines = _ref.maxLines,
|
|
59630
59604
|
maxLines = _ref$maxLines === void 0 ? 1 : _ref$maxLines,
|
|
59631
59605
|
children = _ref.children;
|
|
59632
|
-
return React__default.createElement(Container$
|
|
59606
|
+
return React__default.createElement(Container$O, {
|
|
59633
59607
|
maxLines: maxLines
|
|
59634
59608
|
}, children);
|
|
59635
59609
|
};
|
|
59636
|
-
var Container$
|
|
59610
|
+
var Container$O = /*#__PURE__*/styled__default.div.withConfig({
|
|
59637
59611
|
displayName: "Truncate__Container",
|
|
59638
59612
|
componentId: "sc-6x00qb-0"
|
|
59639
59613
|
})(["display:-webkit-box;max-width:100%;max-height:100%;-webkit-line-clamp:", ";-webkit-box-orient:vertical;overflow:hidden;"], function (props) {
|
|
@@ -59741,7 +59715,7 @@ var TutorialStepper = /*#__PURE__*/React__default.memo(function (_ref) {
|
|
|
59741
59715
|
};
|
|
59742
59716
|
});
|
|
59743
59717
|
}, [lessons, imageStyle]);
|
|
59744
|
-
return React__default.createElement(Container$
|
|
59718
|
+
return React__default.createElement(Container$P, null, React__default.createElement(Stepper, {
|
|
59745
59719
|
steps: generateLessons,
|
|
59746
59720
|
finalCTAButton: {
|
|
59747
59721
|
label: 'Close',
|
|
@@ -59758,7 +59732,7 @@ var LessonBody = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
59758
59732
|
displayName: "TutorialStepper__LessonBody",
|
|
59759
59733
|
componentId: "sc-7tgzv2-1"
|
|
59760
59734
|
})([""]);
|
|
59761
|
-
var Container$
|
|
59735
|
+
var Container$P = /*#__PURE__*/styled__default.div.withConfig({
|
|
59762
59736
|
displayName: "TutorialStepper__Container",
|
|
59763
59737
|
componentId: "sc-7tgzv2-2"
|
|
59764
59738
|
})(["width:80%;max-width:600px;@media (max-width:600px){width:95%;}"]);
|