@rpg-engine/long-bow 0.8.122 → 0.8.124

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -30803,6 +30803,78 @@ var EquipmentColumn = /*#__PURE__*/styled.div.withConfig({
30803
30803
  componentId: "sc-1wuddg2-1"
30804
30804
  })(["display:flex;justify-content:center;flex-wrap:wrap;flex-direction:column;touch-action:none;"]);
30805
30805
 
30806
+ var UI_BREAKPOINT_MOBILE = '950px';
30807
+ var UI_BREAKPOINT_SMALL_LAPTOP = '1400px';
30808
+
30809
+ var InternalTabs = function InternalTabs(_ref) {
30810
+ var _tabs$, _tabs$find;
30811
+ var tabs = _ref.tabs,
30812
+ _ref$activeColor = _ref.activeColor,
30813
+ activeColor = _ref$activeColor === void 0 ? '#fef08a' : _ref$activeColor,
30814
+ _ref$activeTextColor = _ref.activeTextColor,
30815
+ activeTextColor = _ref$activeTextColor === void 0 ? '#000000' : _ref$activeTextColor,
30816
+ _ref$inactiveColor = _ref.inactiveColor,
30817
+ inactiveColor = _ref$inactiveColor === void 0 ? '#6b7280' : _ref$inactiveColor,
30818
+ _ref$borderColor = _ref.borderColor,
30819
+ borderColor = _ref$borderColor === void 0 ? '#f59e0b' : _ref$borderColor,
30820
+ _ref$hoverColor = _ref.hoverColor,
30821
+ hoverColor = _ref$hoverColor === void 0 ? '#fef3c7' : _ref$hoverColor,
30822
+ onTabChange = _ref.onTabChange,
30823
+ externalActiveTab = _ref.activeTab;
30824
+ var _useState = useState((_tabs$ = tabs[0]) == null ? void 0 : _tabs$.id),
30825
+ internalActiveTab = _useState[0],
30826
+ setInternalActiveTab = _useState[1];
30827
+ var activeTabId = externalActiveTab != null ? externalActiveTab : internalActiveTab;
30828
+ var handleTabClick = function handleTabClick(tabId) {
30829
+ setInternalActiveTab(tabId);
30830
+ onTabChange == null ? void 0 : onTabChange(tabId);
30831
+ };
30832
+ return React.createElement(TableWrapper, null, React.createElement(TabHeader, {
30833
+ borderColor: borderColor
30834
+ }, tabs.map(function (tab) {
30835
+ return React.createElement(TabButton, {
30836
+ key: tab.id,
30837
+ active: activeTabId === tab.id,
30838
+ activeColor: activeColor,
30839
+ activeTextColor: activeTextColor,
30840
+ inactiveColor: inactiveColor,
30841
+ borderColor: borderColor,
30842
+ hoverColor: hoverColor,
30843
+ onClick: function onClick() {
30844
+ return handleTabClick(tab.id);
30845
+ }
30846
+ }, tab.title);
30847
+ })), React.createElement(ContentWrapper, null, (_tabs$find = tabs.find(function (tab) {
30848
+ return tab.id === activeTabId;
30849
+ })) == null ? void 0 : _tabs$find.content));
30850
+ };
30851
+ var TableWrapper = /*#__PURE__*/styled.div.withConfig({
30852
+ displayName: "InternalTabs__TableWrapper",
30853
+ componentId: "sc-ldufv0-0"
30854
+ })(["width:100%;"]);
30855
+ var TabHeader = /*#__PURE__*/styled.div.withConfig({
30856
+ displayName: "InternalTabs__TabHeader",
30857
+ componentId: "sc-ldufv0-1"
30858
+ })(["display:flex;border-bottom:1px solid ", ";"], function (props) {
30859
+ return props.borderColor;
30860
+ });
30861
+ var TabButton = /*#__PURE__*/styled.button.withConfig({
30862
+ displayName: "InternalTabs__TabButton",
30863
+ componentId: "sc-ldufv0-2"
30864
+ })(["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) {
30865
+ return props.borderColor;
30866
+ }, function (props) {
30867
+ return props.active ? props.activeColor : 'transparent';
30868
+ }, function (props) {
30869
+ return props.active ? props.activeTextColor : props.inactiveColor;
30870
+ }, UI_BREAKPOINT_MOBILE, function (props) {
30871
+ return props.active ? props.activeColor : props.hoverColor;
30872
+ });
30873
+ var ContentWrapper = /*#__PURE__*/styled.div.withConfig({
30874
+ displayName: "InternalTabs__ContentWrapper",
30875
+ componentId: "sc-ldufv0-3"
30876
+ })(["width:100%;"]);
30877
+
30806
30878
  var Table = /*#__PURE__*/styled.table.withConfig({
30807
30879
  displayName: "Table",
30808
30880
  componentId: "sc-1c24pcj-0"
@@ -30831,18 +30903,33 @@ var UserActionLink = /*#__PURE__*/styled.span.withConfig({
30831
30903
  return color;
30832
30904
  });
30833
30905
 
30834
- var SearchFriend = function SearchFriend(_ref) {
30835
- var searchedCharacters = _ref.searchedCharacters,
30906
+ var FriendList = function FriendList(_ref) {
30907
+ var friends = _ref.friends,
30836
30908
  friendRequests = _ref.friendRequests,
30837
- onBlur = _ref.onBlur,
30909
+ searchedCharacters = _ref.searchedCharacters,
30838
30910
  onFocus = _ref.onFocus,
30911
+ onBlur = _ref.onBlur,
30839
30912
  onSearch = _ref.onSearch,
30840
- onSendFriendRequest = _ref.onSendFriendRequest,
30841
30913
  onAcceptRequest = _ref.onAcceptRequest,
30842
- onRejectRequest = _ref.onRejectRequest;
30914
+ onSendFriendRequest = _ref.onSendFriendRequest,
30915
+ onRemoveFriend = _ref.onRemoveFriend,
30916
+ onOpenPrivateMessage = _ref.onOpenPrivateMessage,
30917
+ onRejectRequest = _ref.onRejectRequest,
30918
+ onAddFriend = _ref.onAddFriend,
30919
+ onBackFriendList = _ref.onBackFriendList;
30843
30920
  var _useState = useState(''),
30844
30921
  characterName = _useState[0],
30845
30922
  setCharacterName = _useState[1];
30923
+ var _useState2 = useState('friends'),
30924
+ activeTab = _useState2[0],
30925
+ setActiveTab = _useState2[1];
30926
+ useEffect(function () {
30927
+ if (activeTab === 'search') {
30928
+ onAddFriend == null ? void 0 : onAddFriend();
30929
+ } else {
30930
+ onBackFriendList == null ? void 0 : onBackFriendList();
30931
+ }
30932
+ }, [activeTab]);
30846
30933
  var debouncedSearch = useCallback(debounce(function (name) {
30847
30934
  onSearch(name);
30848
30935
  }, 300), []);
@@ -30857,6 +30944,27 @@ var SearchFriend = function SearchFriend(_ref) {
30857
30944
  onSearch(characterName);
30858
30945
  }
30859
30946
  };
30947
+ var friendsTabContent = friends.length > 0 ? React.createElement(ScrollableArea, null, React.createElement(Table, null, React.createElement("thead", null, React.createElement(TableRow, null, React.createElement(TableHeader, null, "Online"), React.createElement(TableHeader, null, "Name"), React.createElement(TableHeader, null, "Actions"))), React.createElement("tbody", null, friends.map(function (friend) {
30948
+ return React.createElement(TableRow, {
30949
+ key: friend._id
30950
+ }, React.createElement(TableCell, null, React.createElement(IsOnlineBadge, {
30951
+ "$isOnline": friend.isOnline
30952
+ })), React.createElement(TableCell, null, friend.name), React.createElement(TableCell, null, React.createElement(ActionButtons, null, React.createElement(UserActionLink, {
30953
+ color: uiColors.white,
30954
+ onClick: function onClick() {
30955
+ return onOpenPrivateMessage(friend);
30956
+ }
30957
+ }, "Chat"), React.createElement(UserActionLink, {
30958
+ color: uiColors.red,
30959
+ onClick: function onClick() {
30960
+ return onRemoveFriend(friend);
30961
+ }
30962
+ }, "Remove"))));
30963
+ })))) : React.createElement(EmptyStateContainer, null, React.createElement(EmptyStateText, null, "You don't have any friends yet"), React.createElement(AddFriendCTA, {
30964
+ onClick: function onClick() {
30965
+ return setActiveTab('search');
30966
+ }
30967
+ }, "Add your first friend"));
30860
30968
  var searchTabContent = React.createElement(ListContainer$1, null, React.createElement(SearchForm, {
30861
30969
  onSubmit: handleSubmit
30862
30970
  }, React.createElement(SearchInput, {
@@ -30869,7 +30977,6 @@ var SearchFriend = function SearchFriend(_ref) {
30869
30977
  onFocus: onFocus,
30870
30978
  onBlur: onBlur,
30871
30979
  onPointerDown: onFocus,
30872
- autoFocus: true,
30873
30980
  placeholder: "Search for a character..."
30874
30981
  })), React.createElement(CharacterList, {
30875
30982
  characters: searchedCharacters,
@@ -30882,6 +30989,10 @@ var SearchFriend = function SearchFriend(_ref) {
30882
30989
  onReject: onRejectRequest
30883
30990
  }));
30884
30991
  var tabs = [{
30992
+ id: 'friends',
30993
+ title: "Friends (" + friends.length + ")",
30994
+ content: friendsTabContent
30995
+ }, {
30885
30996
  id: 'search',
30886
30997
  title: 'Search',
30887
30998
  content: searchTabContent
@@ -30890,8 +31001,10 @@ var SearchFriend = function SearchFriend(_ref) {
30890
31001
  title: "Requests (" + friendRequests.length + ")",
30891
31002
  content: requestsTabContent
30892
31003
  }];
30893
- return React.createElement(Container$l, null, React.createElement(InternalTabs, {
31004
+ return React.createElement(ListWrapper, null, React.createElement(InternalTabs, {
30894
31005
  tabs: tabs,
31006
+ activeTab: activeTab,
31007
+ onTabChange: setActiveTab,
30895
31008
  activeTextColor: "#000",
30896
31009
  inactiveColor: "#777",
30897
31010
  borderColor: "#f59e0b"
@@ -30916,7 +31029,7 @@ var FriendRequestSection = function FriendRequestSection(_ref3) {
30916
31029
  var friendRequests = _ref3.friendRequests,
30917
31030
  onAccept = _ref3.onAccept,
30918
31031
  onReject = _ref3.onReject;
30919
- return React.createElement(React.Fragment, null, friendRequests.length > 0 && React.createElement(ListContainer$1, null, friendRequests.map(function (character) {
31032
+ return React.createElement(React.Fragment, null, friendRequests.length > 0 ? React.createElement(ListContainer$1, null, friendRequests.map(function (character) {
30920
31033
  return React.createElement(ListItem, {
30921
31034
  key: character._id
30922
31035
  }, React.createElement(CharacterName, null, character.name), React.createElement(AcceptRejectActions, null, React.createElement(UserActionLink, {
@@ -30930,94 +31043,7 @@ var FriendRequestSection = function FriendRequestSection(_ref3) {
30930
31043
  return onReject(character);
30931
31044
  }
30932
31045
  }, "Reject")));
30933
- })));
30934
- };
30935
- var Container$l = /*#__PURE__*/styled.div.withConfig({
30936
- displayName: "SearchFriend__Container",
30937
- componentId: "sc-1lt1ols-0"
30938
- })(["display:flex;flex-direction:column;gap:1rem;"]);
30939
- var SearchForm = /*#__PURE__*/styled.form.withConfig({
30940
- displayName: "SearchFriend__SearchForm",
30941
- componentId: "sc-1lt1ols-1"
30942
- })(["display:flex;align-items:center;width:100%;margin-top:1rem;"]);
30943
- var SearchInput = /*#__PURE__*/styled.input.withConfig({
30944
- displayName: "SearchFriend__SearchInput",
30945
- componentId: "sc-1lt1ols-2"
30946
- })(["width:100%;background-color:rgba(0,0,0,0.25);border:none;padding:0.5rem;font-size:", ";"], uiFonts.size.small);
30947
- var ListContainer$1 = /*#__PURE__*/styled.ul.withConfig({
30948
- displayName: "SearchFriend__ListContainer",
30949
- componentId: "sc-1lt1ols-3"
30950
- })(["list-style:none;padding:0;margin:0;width:100%;max-height:50vh;overflow-y:auto;@media (max-width:768px){max-height:90vh;}"]);
30951
- var ListItem = /*#__PURE__*/styled.li.withConfig({
30952
- displayName: "SearchFriend__ListItem",
30953
- componentId: "sc-1lt1ols-4"
30954
- })(["display:flex;align-items:center;justify-content:space-between;padding:0.5rem;border-bottom:1px solid rgba(255,255,255,0.1);"]);
30955
- var CharacterName = /*#__PURE__*/styled.p.withConfig({
30956
- displayName: "SearchFriend__CharacterName",
30957
- componentId: "sc-1lt1ols-5"
30958
- })(["font-size:", ";margin:0;"], uiFonts.size.small);
30959
- var AcceptRejectActions = /*#__PURE__*/styled.div.withConfig({
30960
- displayName: "SearchFriend__AcceptRejectActions",
30961
- componentId: "sc-1lt1ols-6"
30962
- })(["display:flex;gap:0.5rem;"]);
30963
-
30964
- var FriendList = function FriendList(_ref) {
30965
- var friends = _ref.friends,
30966
- friendRequests = _ref.friendRequests,
30967
- searchedCharacters = _ref.searchedCharacters,
30968
- onFocus = _ref.onFocus,
30969
- onBlur = _ref.onBlur,
30970
- onSearch = _ref.onSearch,
30971
- onAcceptRequest = _ref.onAcceptRequest,
30972
- onSendFriendRequest = _ref.onSendFriendRequest,
30973
- onRemoveFriend = _ref.onRemoveFriend,
30974
- onOpenPrivateMessage = _ref.onOpenPrivateMessage,
30975
- onRejectRequest = _ref.onRejectRequest,
30976
- onAddFriend = _ref.onAddFriend,
30977
- onBackFriendList = _ref.onBackFriendList;
30978
- var _useState = useState(false),
30979
- isAddFriendUI = _useState[0],
30980
- setIsAddFriendUI = _useState[1];
30981
- useEffect(function () {
30982
- if (isAddFriendUI) {
30983
- onAddFriend == null ? void 0 : onAddFriend();
30984
- } else {
30985
- onBackFriendList == null ? void 0 : onBackFriendList();
30986
- }
30987
- }, [isAddFriendUI]);
30988
- return React.createElement(ListWrapper, null, isAddFriendUI ? React.createElement(SearchFriend, {
30989
- searchedCharacters: searchedCharacters,
30990
- onSendFriendRequest: onSendFriendRequest,
30991
- onAcceptRequest: onAcceptRequest,
30992
- onRejectRequest: onRejectRequest,
30993
- friendRequests: friendRequests,
30994
- onSearch: onSearch,
30995
- onBlur: onBlur,
30996
- onFocus: onFocus
30997
- }) : React.createElement(React.Fragment, null, React.createElement(ScrollableArea, null, React.createElement(Table, null, React.createElement("thead", null, React.createElement(TableRow, null, React.createElement(TableHeader, null, "Online"), React.createElement(TableHeader, null, "Name"), React.createElement(TableHeader, null, "Actions"))), React.createElement("tbody", null, friends.map(function (friend) {
30998
- return React.createElement(TableRow, {
30999
- key: friend._id
31000
- }, React.createElement(TableCell, null, React.createElement(IsOnlineBadge, {
31001
- "$isOnline": friend.isOnline
31002
- })), React.createElement(TableCell, null, friend.name), React.createElement(TableCell, null, React.createElement(ActionButtons, null, React.createElement(UserActionLink, {
31003
- color: uiColors.white,
31004
- onClick: function onClick() {
31005
- return onOpenPrivateMessage(friend);
31006
- }
31007
- }, "Chat"), React.createElement(UserActionLink, {
31008
- color: uiColors.red,
31009
- onClick: function onClick() {
31010
- return onRemoveFriend(friend);
31011
- }
31012
- }, "Remove"))));
31013
- }))))), React.createElement(ButtonContainer$1, null, React.createElement(Button, {
31014
- buttonType: ButtonTypes.RPGUIButton,
31015
- onClick: function onClick() {
31016
- return setIsAddFriendUI(function (prev) {
31017
- return !prev;
31018
- });
31019
- }
31020
- }, isAddFriendUI ? 'Back' : 'Add New Friend')));
31046
+ })) : React.createElement(EmptyMessage, null, "No pending friend requests"));
31021
31047
  };
31022
31048
  // Styled components for FriendList UI
31023
31049
  var ListWrapper = /*#__PURE__*/styled.div.withConfig({
@@ -31031,14 +31057,50 @@ var ScrollableArea = /*#__PURE__*/styled.div.withConfig({
31031
31057
  var IsOnlineBadge = /*#__PURE__*/styled.div.withConfig({
31032
31058
  displayName: "FriendList__IsOnlineBadge",
31033
31059
  componentId: "sc-3jf9vt-2"
31034
- })(["width:10px;height:10px;border-radius:50%;background-color:", ";margin-right:1rem;"], function (_ref2) {
31035
- var $isOnline = _ref2.$isOnline;
31060
+ })(["width:10px;height:10px;border-radius:50%;background-color:", ";margin-right:1rem;"], function (_ref4) {
31061
+ var $isOnline = _ref4.$isOnline;
31036
31062
  return $isOnline ? uiColors.lightGreen : uiColors.red;
31037
31063
  });
31038
- var ButtonContainer$1 = /*#__PURE__*/styled.div.withConfig({
31039
- displayName: "FriendList__ButtonContainer",
31064
+ var SearchForm = /*#__PURE__*/styled.form.withConfig({
31065
+ displayName: "FriendList__SearchForm",
31040
31066
  componentId: "sc-3jf9vt-3"
31041
- })(["display:flex;justify-content:center;align-items:center;width:100%;margin-top:1rem;"]);
31067
+ })(["display:flex;align-items:center;width:100%;margin-top:1rem;"]);
31068
+ var SearchInput = /*#__PURE__*/styled.input.withConfig({
31069
+ displayName: "FriendList__SearchInput",
31070
+ componentId: "sc-3jf9vt-4"
31071
+ })(["width:100%;background-color:rgba(0,0,0,0.25);border:none;padding:0.5rem;font-size:", ";"], uiFonts.size.small);
31072
+ var ListContainer$1 = /*#__PURE__*/styled.ul.withConfig({
31073
+ displayName: "FriendList__ListContainer",
31074
+ componentId: "sc-3jf9vt-5"
31075
+ })(["list-style:none;padding:0;margin:0;width:100%;max-height:50vh;overflow-y:auto;@media (max-width:768px){max-height:90vh;}"]);
31076
+ var ListItem = /*#__PURE__*/styled.li.withConfig({
31077
+ displayName: "FriendList__ListItem",
31078
+ componentId: "sc-3jf9vt-6"
31079
+ })(["display:flex;align-items:center;justify-content:space-between;padding:0.5rem;border-bottom:1px solid rgba(255,255,255,0.1);"]);
31080
+ var CharacterName = /*#__PURE__*/styled.p.withConfig({
31081
+ displayName: "FriendList__CharacterName",
31082
+ componentId: "sc-3jf9vt-7"
31083
+ })(["font-size:", ";margin:0;"], uiFonts.size.small);
31084
+ var AcceptRejectActions = /*#__PURE__*/styled.div.withConfig({
31085
+ displayName: "FriendList__AcceptRejectActions",
31086
+ componentId: "sc-3jf9vt-8"
31087
+ })(["display:flex;gap:0.5rem;"]);
31088
+ var EmptyMessage = /*#__PURE__*/styled.p.withConfig({
31089
+ displayName: "FriendList__EmptyMessage",
31090
+ componentId: "sc-3jf9vt-9"
31091
+ })(["text-align:center;color:#888;padding:1rem;font-size:", ";"], uiFonts.size.small);
31092
+ var EmptyStateContainer = /*#__PURE__*/styled.div.withConfig({
31093
+ displayName: "FriendList__EmptyStateContainer",
31094
+ componentId: "sc-3jf9vt-10"
31095
+ })(["display:flex;flex-direction:column;align-items:center;justify-content:center;padding:2rem;gap:1rem;"]);
31096
+ var EmptyStateText = /*#__PURE__*/styled.p.withConfig({
31097
+ displayName: "FriendList__EmptyStateText",
31098
+ componentId: "sc-3jf9vt-11"
31099
+ })(["text-align:center;color:#888;font-size:", ";margin:0;"], uiFonts.size.small);
31100
+ var AddFriendCTA = /*#__PURE__*/styled.button.withConfig({
31101
+ displayName: "FriendList__AddFriendCTA",
31102
+ componentId: "sc-3jf9vt-12"
31103
+ })(["background-color:", ";color:#000;border:none;padding:0.5rem 1rem;font-size:", ";cursor:pointer;border-radius:4px;transition:opacity 0.2s;&:hover{opacity:0.8;}"], uiColors.lightGreen, uiFonts.size.small);
31042
31104
 
31043
31105
  var IS_MOBILE_OR_TABLET = /*#__PURE__*/isMobileOrTablet();
31044
31106
 
@@ -31135,7 +31197,7 @@ var NPCDialogText = function NPCDialogText(_ref) {
31135
31197
  var _useState2 = useState(false),
31136
31198
  showGoNextIndicator = _useState2[0],
31137
31199
  setShowGoNextIndicator = _useState2[1];
31138
- return React.createElement(Container$m, null, React.createElement(DynamicText, {
31200
+ return React.createElement(Container$l, null, React.createElement(DynamicText, {
31139
31201
  text: (textChunks == null ? void 0 : textChunks[chunkIndex]) || '',
31140
31202
  onFinish: function onFinish() {
31141
31203
  setShowGoNextIndicator(true);
@@ -31153,7 +31215,7 @@ var NPCDialogText = function NPCDialogText(_ref) {
31153
31215
  }
31154
31216
  }));
31155
31217
  };
31156
- var Container$m = /*#__PURE__*/styled.div.withConfig({
31218
+ var Container$l = /*#__PURE__*/styled.div.withConfig({
31157
31219
  displayName: "NPCDialogText__Container",
31158
31220
  componentId: "sc-1cxkdh9-0"
31159
31221
  })([""]);
@@ -31305,7 +31367,7 @@ var QuestionDialog = function QuestionDialog(_ref) {
31305
31367
  return null;
31306
31368
  });
31307
31369
  };
31308
- return React.createElement(Container$n, null, React.createElement(QuestionContainer, null, React.createElement(DynamicText, {
31370
+ return React.createElement(Container$m, null, React.createElement(QuestionContainer, null, React.createElement(DynamicText, {
31309
31371
  text: currentQuestion.text,
31310
31372
  onStart: function onStart() {
31311
31373
  return setCanShowAnswers(false);
@@ -31315,7 +31377,7 @@ var QuestionDialog = function QuestionDialog(_ref) {
31315
31377
  }
31316
31378
  })), canShowAnswers && React.createElement(AnswersContainer, null, onRenderCurrentAnswers()));
31317
31379
  };
31318
- var Container$n = /*#__PURE__*/styled.div.withConfig({
31380
+ var Container$m = /*#__PURE__*/styled.div.withConfig({
31319
31381
  displayName: "QuestionDialog__Container",
31320
31382
  componentId: "sc-bxc5u0-0"
31321
31383
  })(["display:flex;word-break:break-all;box-sizing:border-box;justify-content:flex-start;align-items:flex-start;flex-wrap:wrap;"]);
@@ -31376,7 +31438,7 @@ var NPCDialog = function NPCDialog(_ref) {
31376
31438
  }
31377
31439
  })), type === NPCDialogType.TextAndThumbnail && React.createElement(ThumbnailContainer, null, React.createElement(NPCThumbnail, {
31378
31440
  src: imagePath || img$7
31379
- }))) : React.createElement(React.Fragment, null, React.createElement(Container$o, null, React.createElement(CloseIcon, {
31441
+ }))) : React.createElement(React.Fragment, null, React.createElement(Container$n, null, React.createElement(CloseIcon, {
31380
31442
  onPointerDown: _onClose
31381
31443
  }, "X"), React.createElement(TextContainer$1, {
31382
31444
  flex: type === NPCDialogType.TextAndThumbnail ? '70%' : '100%'
@@ -31392,7 +31454,7 @@ var NPCDialog = function NPCDialog(_ref) {
31392
31454
  src: imagePath || img$7
31393
31455
  })))));
31394
31456
  };
31395
- var Container$o = /*#__PURE__*/styled.div.withConfig({
31457
+ var Container$n = /*#__PURE__*/styled.div.withConfig({
31396
31458
  displayName: "NPCDialog__Container",
31397
31459
  componentId: "sc-1b4aw74-0"
31398
31460
  })(["display:flex;width:100%;height:100%;box-sizing:border-box;justify-content:center;align-items:flex-start;position:relative;"]);
@@ -31453,7 +31515,7 @@ var NPCMultiDialog = function NPCMultiDialog(_ref) {
31453
31515
  type: RPGUIContainerTypes.FramedGold,
31454
31516
  width: '50%',
31455
31517
  height: '180px'
31456
- }, React.createElement(React.Fragment, null, React.createElement(Container$p, null, ((_textAndTypeArray$sli = textAndTypeArray[slide]) == null ? void 0 : _textAndTypeArray$sli.imageSide) === 'right' && React.createElement(React.Fragment, null, React.createElement(TextContainer$2, {
31518
+ }, React.createElement(React.Fragment, null, React.createElement(Container$o, null, ((_textAndTypeArray$sli = textAndTypeArray[slide]) == null ? void 0 : _textAndTypeArray$sli.imageSide) === 'right' && React.createElement(React.Fragment, null, React.createElement(TextContainer$2, {
31457
31519
  flex: '70%'
31458
31520
  }, React.createElement(NPCDialogText, {
31459
31521
  onStartStep: function onStartStep() {
@@ -31495,7 +31557,7 @@ var NPCMultiDialog = function NPCMultiDialog(_ref) {
31495
31557
  src: img$6
31496
31558
  }))), ")"));
31497
31559
  };
31498
- var Container$p = /*#__PURE__*/styled.div.withConfig({
31560
+ var Container$o = /*#__PURE__*/styled.div.withConfig({
31499
31561
  displayName: "NPCMultiDialog__Container",
31500
31562
  componentId: "sc-rvu5wg-0"
31501
31563
  })(["display:flex;width:100%;height:100%;box-sizing:border-box;justify-content:center;align-items:flex-start;position:relative;"]);
@@ -31766,78 +31828,6 @@ var FadeInCarouselImg = /*#__PURE__*/styled(CarouselImg).withConfig({
31766
31828
  componentId: "sc-gdvbly-5"
31767
31829
  })(["animation:", " 0.5s;"], fadeIn);
31768
31830
 
31769
- var UI_BREAKPOINT_MOBILE = '950px';
31770
- var UI_BREAKPOINT_SMALL_LAPTOP = '1400px';
31771
-
31772
- var InternalTabs = function InternalTabs(_ref) {
31773
- var _tabs$, _tabs$find;
31774
- var tabs = _ref.tabs,
31775
- _ref$activeColor = _ref.activeColor,
31776
- activeColor = _ref$activeColor === void 0 ? '#fef08a' : _ref$activeColor,
31777
- _ref$activeTextColor = _ref.activeTextColor,
31778
- activeTextColor = _ref$activeTextColor === void 0 ? '#000000' : _ref$activeTextColor,
31779
- _ref$inactiveColor = _ref.inactiveColor,
31780
- inactiveColor = _ref$inactiveColor === void 0 ? '#6b7280' : _ref$inactiveColor,
31781
- _ref$borderColor = _ref.borderColor,
31782
- borderColor = _ref$borderColor === void 0 ? '#f59e0b' : _ref$borderColor,
31783
- _ref$hoverColor = _ref.hoverColor,
31784
- hoverColor = _ref$hoverColor === void 0 ? '#fef3c7' : _ref$hoverColor,
31785
- onTabChange = _ref.onTabChange,
31786
- externalActiveTab = _ref.activeTab;
31787
- var _useState = useState((_tabs$ = tabs[0]) == null ? void 0 : _tabs$.id),
31788
- internalActiveTab = _useState[0],
31789
- setInternalActiveTab = _useState[1];
31790
- var activeTabId = externalActiveTab != null ? externalActiveTab : internalActiveTab;
31791
- var handleTabClick = function handleTabClick(tabId) {
31792
- setInternalActiveTab(tabId);
31793
- onTabChange == null ? void 0 : onTabChange(tabId);
31794
- };
31795
- return React.createElement(TableWrapper, null, React.createElement(TabHeader, {
31796
- borderColor: borderColor
31797
- }, tabs.map(function (tab) {
31798
- return React.createElement(TabButton, {
31799
- key: tab.id,
31800
- active: activeTabId === tab.id,
31801
- activeColor: activeColor,
31802
- activeTextColor: activeTextColor,
31803
- inactiveColor: inactiveColor,
31804
- borderColor: borderColor,
31805
- hoverColor: hoverColor,
31806
- onClick: function onClick() {
31807
- return handleTabClick(tab.id);
31808
- }
31809
- }, tab.title);
31810
- })), React.createElement(ContentWrapper, null, (_tabs$find = tabs.find(function (tab) {
31811
- return tab.id === activeTabId;
31812
- })) == null ? void 0 : _tabs$find.content));
31813
- };
31814
- var TableWrapper = /*#__PURE__*/styled.div.withConfig({
31815
- displayName: "InternalTabs__TableWrapper",
31816
- componentId: "sc-ldufv0-0"
31817
- })(["width:100%;"]);
31818
- var TabHeader = /*#__PURE__*/styled.div.withConfig({
31819
- displayName: "InternalTabs__TabHeader",
31820
- componentId: "sc-ldufv0-1"
31821
- })(["display:flex;border-bottom:1px solid ", ";"], function (props) {
31822
- return props.borderColor;
31823
- });
31824
- var TabButton = /*#__PURE__*/styled.button.withConfig({
31825
- displayName: "InternalTabs__TabButton",
31826
- componentId: "sc-ldufv0-2"
31827
- })(["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) {
31828
- return props.borderColor;
31829
- }, function (props) {
31830
- return props.active ? props.activeColor : 'transparent';
31831
- }, function (props) {
31832
- return props.active ? props.activeTextColor : props.inactiveColor;
31833
- }, UI_BREAKPOINT_MOBILE, function (props) {
31834
- return props.active ? props.activeColor : props.hoverColor;
31835
- });
31836
- var ContentWrapper = /*#__PURE__*/styled.div.withConfig({
31837
- displayName: "InternalTabs__ContentWrapper",
31838
- componentId: "sc-ldufv0-3"
31839
- })(["width:100%;"]);
31840
-
31841
31831
  var TOOLTIP_OFFSET = 10;
31842
31832
  var MIN_VISIBLE_HEIGHT = 100;
31843
31833
  var useTooltipPosition = function useTooltipPosition() {
@@ -31934,7 +31924,7 @@ var Pagination = function Pagination(_ref) {
31934
31924
  totalPages = _ref.totalPages,
31935
31925
  onPageChange = _ref.onPageChange,
31936
31926
  className = _ref.className;
31937
- return React.createElement(Container$q, {
31927
+ return React.createElement(Container$p, {
31938
31928
  className: className
31939
31929
  }, React.createElement(PaginationButton$1, {
31940
31930
  onClick: function onClick() {
@@ -31952,7 +31942,7 @@ var Pagination = function Pagination(_ref) {
31952
31942
  size: 12
31953
31943
  })));
31954
31944
  };
31955
- var Container$q = /*#__PURE__*/styled.div.withConfig({
31945
+ var Container$p = /*#__PURE__*/styled.div.withConfig({
31956
31946
  displayName: "Pagination__Container",
31957
31947
  componentId: "sc-3k4m4u-0"
31958
31948
  })(["display:flex;align-items:center;justify-content:center;gap:16px;padding:8px;"]);
@@ -32060,12 +32050,12 @@ var PaginatedContent = function PaginatedContent(_ref) {
32060
32050
  setCurrentPage = _usePagination.setCurrentPage,
32061
32051
  paginatedItems = _usePagination.paginatedItems,
32062
32052
  totalPages = _usePagination.totalPages;
32063
- return React.createElement(Container$r, {
32053
+ return React.createElement(Container$q, {
32064
32054
  className: className
32065
32055
  }, (searchOptions || filterOptions) && React.createElement(SearchHeader$1, {
32066
32056
  searchOptions: searchOptions,
32067
32057
  filterOptions: filterOptions
32068
- }), items.length === 0 ? React.createElement(EmptyMessage, null, emptyMessage) : React.createElement(React.Fragment, null, React.createElement(Content, {
32058
+ }), items.length === 0 ? React.createElement(EmptyMessage$1, null, emptyMessage) : React.createElement(React.Fragment, null, React.createElement(Content, {
32069
32059
  className: "PaginatedContent-content " + layout,
32070
32060
  "$gridColumns": gridColumns,
32071
32061
  "$itemHeight": itemHeight
@@ -32082,7 +32072,7 @@ var PaginatedContent = function PaginatedContent(_ref) {
32082
32072
  onPageChange: setCurrentPage
32083
32073
  }))));
32084
32074
  };
32085
- var Container$r = /*#__PURE__*/styled.div.withConfig({
32075
+ var Container$q = /*#__PURE__*/styled.div.withConfig({
32086
32076
  displayName: "PaginatedContent__Container",
32087
32077
  componentId: "sc-lzp9hn-0"
32088
32078
  })(["display:flex;flex-direction:column;gap:0.5rem;min-height:400px;width:100%;"]);
@@ -32101,7 +32091,7 @@ var PaginationContainer$1 = /*#__PURE__*/styled.div.withConfig({
32101
32091
  displayName: "PaginatedContent__PaginationContainer",
32102
32092
  componentId: "sc-lzp9hn-2"
32103
32093
  })(["display:flex;justify-content:center;padding:0.5rem;@media (min-width:480px){padding:1rem;}"]);
32104
- var EmptyMessage = /*#__PURE__*/styled.div.withConfig({
32094
+ var EmptyMessage$1 = /*#__PURE__*/styled.div.withConfig({
32105
32095
  displayName: "PaginatedContent__EmptyMessage",
32106
32096
  componentId: "sc-lzp9hn-3"
32107
32097
  })(["text-align:center;color:#9ca3af;padding:2rem;flex:1;display:flex;align-items:center;justify-content:center;"]);
@@ -32204,7 +32194,7 @@ var BaseInformationDetails = function BaseInformationDetails(_ref) {
32204
32194
  atlasIMG = _ref.atlasIMG,
32205
32195
  onBack = _ref.onBack,
32206
32196
  children = _ref.children;
32207
- return React.createElement(Container$s, null, React.createElement(Overlay, {
32197
+ return React.createElement(Container$r, null, React.createElement(Overlay, {
32208
32198
  onClick: onBack
32209
32199
  }), React.createElement(Modal, null, React.createElement(CloseButton$5, {
32210
32200
  onClick: onBack
@@ -32217,7 +32207,7 @@ var BaseInformationDetails = function BaseInformationDetails(_ref) {
32217
32207
  imgScale: 1
32218
32208
  })), React.createElement(Title$3, null, name)), React.createElement(Content$1, null, children)));
32219
32209
  };
32220
- var Container$s = /*#__PURE__*/styled.div.withConfig({
32210
+ var Container$r = /*#__PURE__*/styled.div.withConfig({
32221
32211
  displayName: "BaseInformationDetails__Container",
32222
32212
  componentId: "sc-1vguuz8-0"
32223
32213
  })(["position:fixed;inset:0;display:flex;justify-content:center;align-items:center;z-index:9999;"]);
@@ -32259,7 +32249,7 @@ var Collapsible = function Collapsible(_ref) {
32259
32249
  var _useState = useState(defaultOpen),
32260
32250
  isOpen = _useState[0],
32261
32251
  setIsOpen = _useState[1];
32262
- return React.createElement(Container$t, {
32252
+ return React.createElement(Container$s, {
32263
32253
  className: className
32264
32254
  }, React.createElement(Header$3, {
32265
32255
  onClick: function onClick() {
@@ -32267,7 +32257,7 @@ var Collapsible = function Collapsible(_ref) {
32267
32257
  }
32268
32258
  }, React.createElement(Title$4, null, title), React.createElement(Icon$1, null, isOpen ? React.createElement(FaChevronUp, null) : React.createElement(FaChevronDown, null))), isOpen && React.createElement(Content$2, null, children));
32269
32259
  };
32270
- var Container$t = /*#__PURE__*/styled.div.withConfig({
32260
+ var Container$s = /*#__PURE__*/styled.div.withConfig({
32271
32261
  displayName: "Collapsible__Container",
32272
32262
  componentId: "sc-s4h8ey-0"
32273
32263
  })(["background:rgba(0,0,0,0.3);border-radius:4px;overflow:hidden;border:1px solid ", ";"], uiColors.darkGray);
@@ -32597,7 +32587,7 @@ var AdvancedFilters = function AdvancedFilters(_ref) {
32597
32587
  onClose();
32598
32588
  }
32599
32589
  };
32600
- return React.createElement(Container$u, null, React.createElement(FilterButton, {
32590
+ return React.createElement(Container$t, null, React.createElement(FilterButton, {
32601
32591
  onClick: onToggle,
32602
32592
  "$hasActiveFilters": hasActiveFilters,
32603
32593
  ref: buttonRef
@@ -32628,7 +32618,7 @@ var AdvancedFilters = function AdvancedFilters(_ref) {
32628
32618
  onClick: onClearAll
32629
32619
  }, "Clear All Filters"))));
32630
32620
  };
32631
- var Container$u = /*#__PURE__*/styled.div.withConfig({
32621
+ var Container$t = /*#__PURE__*/styled.div.withConfig({
32632
32622
  displayName: "AdvancedFilters__Container",
32633
32623
  componentId: "sc-1xj6ldr-0"
32634
32624
  })(["position:relative;margin-left:0.5rem;"]);
@@ -33722,7 +33712,7 @@ var InformationCenter = function InformationCenter(_ref) {
33722
33712
  minWidth: "300px",
33723
33713
  cancelDrag: ".PaginatedContent-content",
33724
33714
  onCloseButton: onClose
33725
- }, React.createElement(Container$v, null, React.createElement(InternalTabs, {
33715
+ }, React.createElement(Container$u, null, React.createElement(InternalTabs, {
33726
33716
  tabs: tabs,
33727
33717
  activeTextColor: "#000000",
33728
33718
  activeTab: activeTab,
@@ -33733,7 +33723,7 @@ var InformationCenter = function InformationCenter(_ref) {
33733
33723
  hoverColor: "#fef3c7"
33734
33724
  })));
33735
33725
  };
33736
- var Container$v = /*#__PURE__*/styled.div.withConfig({
33726
+ var Container$u = /*#__PURE__*/styled.div.withConfig({
33737
33727
  displayName: "InformationCenter__Container",
33738
33728
  componentId: "sc-1ttl62e-0"
33739
33729
  })(["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;}"]);
@@ -33904,7 +33894,7 @@ var ShortcutsSetter = function ShortcutsSetter(_ref) {
33904
33894
  }
33905
33895
  return null;
33906
33896
  };
33907
- return React.createElement(Container$w, null, React.createElement("p", null, "Shortcuts:"), React.createElement(List, {
33897
+ return React.createElement(Container$v, null, React.createElement("p", null, "Shortcuts:"), React.createElement(List, {
33908
33898
  id: "shortcuts_list"
33909
33899
  }, Array.from({
33910
33900
  length: 12
@@ -33922,7 +33912,7 @@ var ShortcutsSetter = function ShortcutsSetter(_ref) {
33922
33912
  }, getContent(i));
33923
33913
  })));
33924
33914
  };
33925
- var Container$w = /*#__PURE__*/styled.div.withConfig({
33915
+ var Container$v = /*#__PURE__*/styled.div.withConfig({
33926
33916
  displayName: "ShortcutsSetter__Container",
33927
33917
  componentId: "sc-xuouuf-0"
33928
33918
  })(["p{margin:0;margin-left:0.5rem;font-size:10px;}width:100%;"]);
@@ -34466,13 +34456,13 @@ var ColorSelector = function ColorSelector(_ref) {
34466
34456
  cancelDrag: ".react-colorful",
34467
34457
  width: "25rem",
34468
34458
  onCloseButton: onClose
34469
- }, React.createElement(Container$x, null, React.createElement(Header$4, null, "Select Color"), React.createElement(ColorPickerWrapper, null, React.createElement(HexColorPicker, {
34459
+ }, React.createElement(Container$w, null, React.createElement(Header$4, null, "Select Color"), React.createElement(ColorPickerWrapper, null, React.createElement(HexColorPicker, {
34470
34460
  color: currentColor,
34471
34461
  onChange: function onChange(color) {
34472
34462
  setCurrentColor(color);
34473
34463
  _onChange(color);
34474
34464
  }
34475
- })), React.createElement(ButtonContainer$2, null, React.createElement(Button, {
34465
+ })), React.createElement(ButtonContainer$1, null, React.createElement(Button, {
34476
34466
  buttonType: ButtonTypes.RPGUIButton,
34477
34467
  type: "button",
34478
34468
  onClick: handleConfirm
@@ -34482,7 +34472,7 @@ var ColorSelector = function ColorSelector(_ref) {
34482
34472
  onClose: handleClose
34483
34473
  }));
34484
34474
  };
34485
- var Container$x = /*#__PURE__*/styled.div.withConfig({
34475
+ var Container$w = /*#__PURE__*/styled.div.withConfig({
34486
34476
  displayName: "ItemPropertyColorSelector__Container",
34487
34477
  componentId: "sc-me1r4z-0"
34488
34478
  })(["text-align:center;background:inherit;display:flex;flex-direction:column;gap:1.5rem;align-items:center;width:100%;max-width:24rem;margin:0 auto;"]);
@@ -34494,7 +34484,7 @@ var ColorPickerWrapper = /*#__PURE__*/styled.div.withConfig({
34494
34484
  displayName: "ItemPropertyColorSelector__ColorPickerWrapper",
34495
34485
  componentId: "sc-me1r4z-2"
34496
34486
  })(["display:flex;justify-content:center;width:100%;.react-colorful{width:100%;max-width:200px;}"]);
34497
- var ButtonContainer$2 = /*#__PURE__*/styled.div.withConfig({
34487
+ var ButtonContainer$1 = /*#__PURE__*/styled.div.withConfig({
34498
34488
  displayName: "ItemPropertyColorSelector__ButtonContainer",
34499
34489
  componentId: "sc-me1r4z-3"
34500
34490
  })(["display:flex;justify-content:center;width:100%;"]);
@@ -34838,7 +34828,7 @@ var ListMenu = function ListMenu(_ref) {
34838
34828
  onSelected = _ref.onSelected,
34839
34829
  x = _ref.x,
34840
34830
  y = _ref.y;
34841
- return React.createElement(Container$y, {
34831
+ return React.createElement(Container$x, {
34842
34832
  x: x,
34843
34833
  y: y
34844
34834
  }, React.createElement("ul", {
@@ -34855,7 +34845,7 @@ var ListMenu = function ListMenu(_ref) {
34855
34845
  }, (params == null ? void 0 : params.text) || 'No text');
34856
34846
  })));
34857
34847
  };
34858
- var Container$y = /*#__PURE__*/styled.div.withConfig({
34848
+ var Container$x = /*#__PURE__*/styled.div.withConfig({
34859
34849
  displayName: "ListMenu__Container",
34860
34850
  componentId: "sc-i9097t-0"
34861
34851
  })(["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) {
@@ -34874,7 +34864,7 @@ var Pager = function Pager(_ref) {
34874
34864
  itemsPerPage = _ref.itemsPerPage,
34875
34865
  onPageChange = _ref.onPageChange;
34876
34866
  var totalPages = Math.ceil(totalItems / itemsPerPage);
34877
- return React.createElement(Container$z, null, React.createElement("p", null, "Total items: ", totalItems), React.createElement(PagerContainer, null, React.createElement("button", {
34867
+ return React.createElement(Container$y, null, React.createElement("p", null, "Total items: ", totalItems), React.createElement(PagerContainer, null, React.createElement("button", {
34878
34868
  disabled: currentPage === 1,
34879
34869
  onPointerDown: function onPointerDown() {
34880
34870
  return onPageChange(Math.max(currentPage - 1, 1));
@@ -34888,7 +34878,7 @@ var Pager = function Pager(_ref) {
34888
34878
  }
34889
34879
  }, '>')));
34890
34880
  };
34891
- var Container$z = /*#__PURE__*/styled.div.withConfig({
34881
+ var Container$y = /*#__PURE__*/styled.div.withConfig({
34892
34882
  displayName: "Pager__Container",
34893
34883
  componentId: "sc-1ekmf50-0"
34894
34884
  })(["display:flex;flex-direction:column;align-items:center;p{margin:0;font-size:", ";}"], uiFonts.size.xsmall);
@@ -34942,7 +34932,7 @@ var MarketplaceRows = function MarketplaceRows(_ref) {
34942
34932
  maxLines: 1,
34943
34933
  maxWidth: "200px",
34944
34934
  fontSize: "10px"
34945
- }, "$", itemPrice)))), React.createElement(ButtonContainer$3, null, React.createElement(Button, {
34935
+ }, "$", itemPrice)))), React.createElement(ButtonContainer$2, null, React.createElement(Button, {
34946
34936
  buttonType: ButtonTypes.RPGUIButton,
34947
34937
  disabled: disabled,
34948
34938
  onPointerDown: function onPointerDown() {
@@ -34984,7 +34974,7 @@ var PriceValue = /*#__PURE__*/styled.div.withConfig({
34984
34974
  displayName: "MarketplaceRows__PriceValue",
34985
34975
  componentId: "sc-wmpr1o-7"
34986
34976
  })(["margin-left:40px;"]);
34987
- var ButtonContainer$3 = /*#__PURE__*/styled.div.withConfig({
34977
+ var ButtonContainer$2 = /*#__PURE__*/styled.div.withConfig({
34988
34978
  displayName: "MarketplaceRows__ButtonContainer",
34989
34979
  componentId: "sc-wmpr1o-8"
34990
34980
  })(["margin:auto;"]);
@@ -35409,13 +35399,13 @@ var TabBody = function TabBody(_ref) {
35409
35399
  children = _ref.children,
35410
35400
  styles = _ref.styles,
35411
35401
  centerContent = _ref.centerContent;
35412
- return React.createElement(Container$A, {
35402
+ return React.createElement(Container$z, {
35413
35403
  styles: styles,
35414
35404
  "data-tab-id": id,
35415
35405
  centerContent: centerContent
35416
35406
  }, children);
35417
35407
  };
35418
- var Container$A = /*#__PURE__*/styled.div.withConfig({
35408
+ var Container$z = /*#__PURE__*/styled.div.withConfig({
35419
35409
  displayName: "TabBody__Container",
35420
35410
  componentId: "sc-196oof2-0"
35421
35411
  })(["width:", ";height:", ";overflow-y:auto;display:", ";justify-content:", ";align-items:", ";"], function (props) {
@@ -35753,7 +35743,7 @@ var PartyManagerRow = function PartyManagerRow(_ref) {
35753
35743
  }, charName, " ", isCurrentUser ? '(You)' : '', " ", isLeader ? '(Leader)' : '')), React.createElement(TextContainer$5, null, React.createElement(Ellipsis, {
35754
35744
  maxLines: 1,
35755
35745
  maxWidth: "300px"
35756
- }, charClass)), React.createElement(ButtonContainer$4, null, canRemove && React.createElement(HighlightedText, {
35746
+ }, charClass)), React.createElement(ButtonContainer$3, null, canRemove && React.createElement(HighlightedText, {
35757
35747
  onPointerDown: function onPointerDown() {
35758
35748
  return onRemovePlayer(id);
35759
35749
  }
@@ -35771,7 +35761,7 @@ var TextContainer$5 = /*#__PURE__*/styled.div.withConfig({
35771
35761
  displayName: "PartyManagerRows__TextContainer",
35772
35762
  componentId: "sc-uqajew-1"
35773
35763
  })(["color:", ";overflow:hidden;white-space:nowrap;text-overflow:ellipsis;"], uiColors.white);
35774
- var ButtonContainer$4 = /*#__PURE__*/styled.div.withConfig({
35764
+ var ButtonContainer$3 = /*#__PURE__*/styled.div.withConfig({
35775
35765
  displayName: "PartyManagerRows__ButtonContainer",
35776
35766
  componentId: "sc-uqajew-2"
35777
35767
  })(["display:flex;align-items:center;gap:1rem;justify-content:flex-start;"]);
@@ -36070,7 +36060,7 @@ var ProgressBar$1 = function ProgressBar(_ref) {
36070
36060
  // Round only for display, not for calculation
36071
36061
  var displayValue = Math.round(value);
36072
36062
  var displayMax = Math.round(max);
36073
- return React.createElement(Container$B, {
36063
+ return React.createElement(Container$A, {
36074
36064
  className: "rpgui-progress",
36075
36065
  "data-value": calculatePercentageValue(max, value) / 100,
36076
36066
  "data-rpguitype": "progress",
@@ -36102,7 +36092,7 @@ var TextOverlay$1 = /*#__PURE__*/styled.div.withConfig({
36102
36092
  displayName: "ProgressBar__TextOverlay",
36103
36093
  componentId: "sc-qa6fzh-1"
36104
36094
  })(["width:100%;position:relative;"]);
36105
- var Container$B = /*#__PURE__*/styled.div.withConfig({
36095
+ var Container$A = /*#__PURE__*/styled.div.withConfig({
36106
36096
  displayName: "ProgressBar__Container",
36107
36097
  componentId: "sc-qa6fzh-2"
36108
36098
  })(["display:flex;flex-direction:column;min-width:", "px;width:", "%;justify-content:start;align-items:flex-start;", " @media (max-width:950px){transform:scale(", ");}"], function (props) {
@@ -36343,9 +36333,9 @@ var InputRadio = function InputRadio(_ref) {
36343
36333
 
36344
36334
  var RPGUIScrollbar = function RPGUIScrollbar(_ref) {
36345
36335
  var children = _ref.children;
36346
- return React.createElement(Container$C, null, children);
36336
+ return React.createElement(Container$B, null, children);
36347
36337
  };
36348
- var Container$C = /*#__PURE__*/styled.div.withConfig({
36338
+ var Container$B = /*#__PURE__*/styled.div.withConfig({
36349
36339
  displayName: "RPGUIScrollbar__Container",
36350
36340
  componentId: "sc-p3msmb-0"
36351
36341
  })([".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;}"]);
@@ -36502,7 +36492,7 @@ var SimpleProgressBar = function SimpleProgressBar(_ref) {
36502
36492
  margin = _ref$margin === void 0 ? 20 : _ref$margin;
36503
36493
  // Ensure the width is at least 1% if value is greater than 0, capped at 99.99%
36504
36494
  var width = value > 0 ? Math.max(1, Math.min(99.99, value)) : 0;
36505
- return React.createElement(Container$D, {
36495
+ return React.createElement(Container$C, {
36506
36496
  className: "simple-progress-bar"
36507
36497
  }, React.createElement(ProgressBarContainer, {
36508
36498
  margin: margin
@@ -36511,7 +36501,7 @@ var SimpleProgressBar = function SimpleProgressBar(_ref) {
36511
36501
  bgColor: bgColor
36512
36502
  }))));
36513
36503
  };
36514
- var Container$D = /*#__PURE__*/styled.div.withConfig({
36504
+ var Container$C = /*#__PURE__*/styled.div.withConfig({
36515
36505
  displayName: "SimpleProgressBar__Container",
36516
36506
  componentId: "sc-mbeil3-0"
36517
36507
  })(["display:flex;justify-content:center;align-items:center;width:100%;"]);
@@ -36899,7 +36889,7 @@ var SocialModal = function SocialModal(_ref) {
36899
36889
  title: "Social Channels",
36900
36890
  width: "500px",
36901
36891
  onCloseButton: onClose
36902
- }, React.createElement(Container$E, null, React.createElement(HeaderImage, {
36892
+ }, React.createElement(Container$D, null, React.createElement(HeaderImage, {
36903
36893
  src: img$9,
36904
36894
  alt: ""
36905
36895
  }), React.createElement(ButtonsContainer$3, null, React.createElement(MainButtons, null, React.createElement(SocialButton$1, {
@@ -36917,7 +36907,7 @@ var SocialModal = function SocialModal(_ref) {
36917
36907
  onClick: handleWhatsAppClick
36918
36908
  }, React.createElement(FaWhatsapp, null), " Join WhatsApp")))));
36919
36909
  };
36920
- var Container$E = /*#__PURE__*/styled.div.withConfig({
36910
+ var Container$D = /*#__PURE__*/styled.div.withConfig({
36921
36911
  displayName: "SocialModal__Container",
36922
36912
  componentId: "sc-tbjhp9-0"
36923
36913
  })(["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% );}"]);
@@ -36963,7 +36953,7 @@ var SpellInfo$1 = function SpellInfo(_ref) {
36963
36953
  castingType = spell.castingType,
36964
36954
  cooldown = spell.cooldown,
36965
36955
  maxDistanceGrid = spell.maxDistanceGrid;
36966
- return React.createElement(Container$F, null, React.createElement(Header$6, null, React.createElement("div", null, React.createElement(Title$b, null, name), React.createElement(Type$1, null, magicWords))), React.createElement(Statistic$1, null, React.createElement("div", {
36956
+ return React.createElement(Container$E, null, React.createElement(Header$6, null, React.createElement("div", null, React.createElement(Title$b, null, name), React.createElement(Type$1, null, magicWords))), React.createElement(Statistic$1, null, React.createElement("div", {
36967
36957
  className: "label"
36968
36958
  }, "Casting Type:"), React.createElement("div", {
36969
36959
  className: "value"
@@ -36989,7 +36979,7 @@ var SpellInfo$1 = function SpellInfo(_ref) {
36989
36979
  className: "value"
36990
36980
  }, requiredItem))), React.createElement(Description$4, null, description));
36991
36981
  };
36992
- var Container$F = /*#__PURE__*/styled.div.withConfig({
36982
+ var Container$E = /*#__PURE__*/styled.div.withConfig({
36993
36983
  displayName: "SpellInfo__Container",
36994
36984
  componentId: "sc-4hbw3q-0"
36995
36985
  })(["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);
@@ -37043,7 +37033,7 @@ var MobileSpellTooltip = function MobileSpellTooltip(_ref) {
37043
37033
  var _ref$current;
37044
37034
  (_ref$current = ref.current) == null ? void 0 : _ref$current.classList.add('fadeOut');
37045
37035
  };
37046
- return React.createElement(ModalPortal, null, React.createElement(Container$G, {
37036
+ return React.createElement(ModalPortal, null, React.createElement(Container$F, {
37047
37037
  ref: ref,
37048
37038
  onTouchEnd: function onTouchEnd() {
37049
37039
  handleFadeOut();
@@ -37068,7 +37058,7 @@ var MobileSpellTooltip = function MobileSpellTooltip(_ref) {
37068
37058
  }, option.text);
37069
37059
  }))));
37070
37060
  };
37071
- var Container$G = /*#__PURE__*/styled.div.withConfig({
37061
+ var Container$F = /*#__PURE__*/styled.div.withConfig({
37072
37062
  displayName: "MobileSpellTooltip__Container",
37073
37063
  componentId: "sc-6p7uvr-0"
37074
37064
  })(["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;}"]);
@@ -37109,13 +37099,13 @@ var MagicTooltip = function MagicTooltip(_ref) {
37109
37099
  }
37110
37100
  return;
37111
37101
  }, []);
37112
- return React.createElement(ModalPortal, null, React.createElement(Container$H, {
37102
+ return React.createElement(ModalPortal, null, React.createElement(Container$G, {
37113
37103
  ref: ref
37114
37104
  }, React.createElement(SpellInfoDisplay, {
37115
37105
  spell: spell
37116
37106
  })));
37117
37107
  };
37118
- var Container$H = /*#__PURE__*/styled.div.withConfig({
37108
+ var Container$G = /*#__PURE__*/styled.div.withConfig({
37119
37109
  displayName: "SpellTooltip__Container",
37120
37110
  componentId: "sc-1go0gwg-0"
37121
37111
  })(["position:absolute;z-index:100;pointer-events:none;left:0;top:0;opacity:0;transition:opacity 0.08s;"]);
@@ -37217,7 +37207,7 @@ var Spell = function Spell(_ref) {
37217
37207
  var IMAGE_SCALE = 2;
37218
37208
  return React.createElement(SpellInfoWrapper, {
37219
37209
  spell: spell
37220
- }, React.createElement(Container$I, {
37210
+ }, React.createElement(Container$H, {
37221
37211
  onPointerUp: onPointerUp == null ? void 0 : onPointerUp.bind(null, spellKey),
37222
37212
  isSettingShortcut: isSettingShortcut && !disabled,
37223
37213
  className: "spell"
@@ -37236,7 +37226,7 @@ var Spell = function Spell(_ref) {
37236
37226
  className: "mana"
37237
37227
  }, manaCost))));
37238
37228
  };
37239
- var Container$I = /*#__PURE__*/styled.button.withConfig({
37229
+ var Container$H = /*#__PURE__*/styled.button.withConfig({
37240
37230
  displayName: "Spell__Container",
37241
37231
  componentId: "sc-j96fa2-0"
37242
37232
  })(["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) {
@@ -37316,7 +37306,7 @@ var Spellbook = function Spellbook(_ref) {
37316
37306
  height: "inherit",
37317
37307
  cancelDrag: "#spellbook-search, #shortcuts_list, .spell",
37318
37308
  scale: scale
37319
- }, React.createElement(Container$J, null, React.createElement(Title$d, null, "Learned Spells"), React.createElement(ShortcutsSetter, {
37309
+ }, React.createElement(Container$I, null, React.createElement(Title$d, null, "Learned Spells"), React.createElement(ShortcutsSetter, {
37320
37310
  setSettingShortcutIndex: setSettingShortcutIndex,
37321
37311
  settingShortcutIndex: settingShortcutIndex,
37322
37312
  shortcuts: shortcuts,
@@ -37353,7 +37343,7 @@ var Title$d = /*#__PURE__*/styled.h1.withConfig({
37353
37343
  displayName: "Spellbook__Title",
37354
37344
  componentId: "sc-r02nfq-0"
37355
37345
  })(["font-size:", " !important;margin-bottom:0 !important;"], uiFonts.size.large);
37356
- var Container$J = /*#__PURE__*/styled.div.withConfig({
37346
+ var Container$I = /*#__PURE__*/styled.div.withConfig({
37357
37347
  displayName: "Spellbook__Container",
37358
37348
  componentId: "sc-r02nfq-1"
37359
37349
  })(["width:100%;height:100%;color:white;display:flex;flex-direction:column;"]);
@@ -57738,7 +57728,7 @@ var CTAButton = function CTAButton(_ref) {
57738
57728
  iconColor = _ref$iconColor === void 0 ? '#f59e0b' : _ref$iconColor,
57739
57729
  _ref$disabled = _ref.disabled,
57740
57730
  disabled = _ref$disabled === void 0 ? false : _ref$disabled;
57741
- return React.createElement(ButtonContainer$5, {
57731
+ return React.createElement(ButtonContainer$4, {
57742
57732
  className: className,
57743
57733
  onPointerDown: disabled ? undefined : onClick,
57744
57734
  "$fullWidth": fullWidth,
@@ -57752,7 +57742,7 @@ var CTAButton = function CTAButton(_ref) {
57752
57742
  "$disabled": disabled
57753
57743
  }, label)));
57754
57744
  };
57755
- var ButtonContainer$5 = /*#__PURE__*/styled.div.withConfig({
57745
+ var ButtonContainer$4 = /*#__PURE__*/styled.div.withConfig({
57756
57746
  displayName: "CTAButton__ButtonContainer",
57757
57747
  componentId: "sc-1azvwn5-0"
57758
57748
  })(["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) {
@@ -57861,7 +57851,7 @@ var CartView = function CartView(_ref2) {
57861
57851
  return _ref3.apply(this, arguments);
57862
57852
  };
57863
57853
  }();
57864
- return React.createElement(Container$K, null, React.createElement(Header$7, null, React.createElement(Title$e, null, "Shopping Cart"), React.createElement(CloseButton$9, {
57854
+ return React.createElement(Container$J, null, React.createElement(Header$7, null, React.createElement(Title$e, null, "Shopping Cart"), React.createElement(CloseButton$9, {
57865
57855
  onPointerDown: onClose
57866
57856
  }, React.createElement(FaTimes, null))), React.createElement(CartItems, null, cartItems.length === 0 ? React.createElement(EmptyCart, null, "Your cart is empty") : cartItems.map(function (cartItem) {
57867
57857
  var _cartItem$metadata, _cartItem$metadata2;
@@ -57897,7 +57887,7 @@ var CartView = function CartView(_ref2) {
57897
57887
  disabled: cartItems.length === 0 || isLoading
57898
57888
  })));
57899
57889
  };
57900
- var Container$K = /*#__PURE__*/styled.div.withConfig({
57890
+ var Container$J = /*#__PURE__*/styled.div.withConfig({
57901
57891
  displayName: "CartView__Container",
57902
57892
  componentId: "sc-ydtyl1-0"
57903
57893
  })(["display:flex;flex-direction:column;width:100%;height:100%;gap:1.5rem;padding:1.5rem;"]);
@@ -58251,9 +58241,9 @@ var ScrollableContent = function ScrollableContent(_ref) {
58251
58241
  _ref$maxHeight = _ref.maxHeight,
58252
58242
  maxHeight = _ref$maxHeight === void 0 ? '500px' : _ref$maxHeight;
58253
58243
  if (items.length === 0) {
58254
- return React.createElement(EmptyMessage$1, null, emptyMessage);
58244
+ return React.createElement(EmptyMessage$2, null, emptyMessage);
58255
58245
  }
58256
- return React.createElement(Container$L, {
58246
+ return React.createElement(Container$K, {
58257
58247
  className: className
58258
58248
  }, (searchOptions || filterOptions) && React.createElement(HeaderContainer$3, null, React.createElement(HeaderContent$1, null, searchOptions && React.createElement(SearchContainer$3, null, React.createElement(StyledSearchBar$2, {
58259
58249
  value: searchOptions.value,
@@ -58274,7 +58264,7 @@ var ScrollableContent = function ScrollableContent(_ref) {
58274
58264
  }, renderItem(item));
58275
58265
  })));
58276
58266
  };
58277
- var Container$L = /*#__PURE__*/styled.div.withConfig({
58267
+ var Container$K = /*#__PURE__*/styled.div.withConfig({
58278
58268
  displayName: "ScrollableContent__Container",
58279
58269
  componentId: "sc-xhh2um-0"
58280
58270
  })(["display:flex;flex-direction:column;gap:1rem;width:100%;"]);
@@ -58310,7 +58300,7 @@ var Content$4 = /*#__PURE__*/styled.div.withConfig({
58310
58300
  }, function (props) {
58311
58301
  return props.$gridColumns;
58312
58302
  });
58313
- var EmptyMessage$1 = /*#__PURE__*/styled.div.withConfig({
58303
+ var EmptyMessage$2 = /*#__PURE__*/styled.div.withConfig({
58314
58304
  displayName: "ScrollableContent__EmptyMessage",
58315
58305
  componentId: "sc-xhh2um-8"
58316
58306
  })(["text-align:center;color:#9ca3af;padding:2rem;flex:1;display:flex;align-items:center;justify-content:center;"]);
@@ -58890,7 +58880,7 @@ var StoreItemDetails = function StoreItemDetails(_ref) {
58890
58880
  if (typeof imageUrl === 'string') return imageUrl;
58891
58881
  return imageUrl["default"] || imageUrl.src;
58892
58882
  };
58893
- return React.createElement(Container$M, null, React.createElement(Header$9, null, React.createElement(BackButton, {
58883
+ return React.createElement(Container$L, null, React.createElement(Header$9, null, React.createElement(BackButton, {
58894
58884
  onClick: onBack
58895
58885
  }, React.createElement(FaArrowLeft, null), React.createElement("span", null, "Back"))), React.createElement(Content$5, null, React.createElement(DetailsGrid, null, React.createElement(ItemIcon, null, React.createElement("img", {
58896
58886
  src: getImageSrc(),
@@ -58904,7 +58894,7 @@ var StoreItemDetails = function StoreItemDetails(_ref) {
58904
58894
  fullWidth: true
58905
58895
  }))));
58906
58896
  };
58907
- var Container$M = /*#__PURE__*/styled.div.withConfig({
58897
+ var Container$L = /*#__PURE__*/styled.div.withConfig({
58908
58898
  displayName: "StoreItemDetails__Container",
58909
58899
  componentId: "sc-k3ho5z-0"
58910
58900
  })(["display:flex;flex-direction:column;gap:1.5rem;padding:1.5rem;height:100%;"]);
@@ -59167,7 +59157,7 @@ var Store = function Store(_ref) {
59167
59157
  onAddToCart: function onAddToCart() {
59168
59158
  return handleAddPackToCart(selectedPack);
59169
59159
  }
59170
- }) : React.createElement(Container$N, null, React.createElement(TopBar$1, null, React.createElement(HistoryButton, null, onShowHistory && React.createElement(CTAButton, {
59160
+ }) : React.createElement(Container$M, null, React.createElement(TopBar$1, null, React.createElement(HistoryButton, null, onShowHistory && React.createElement(CTAButton, {
59171
59161
  icon: React.createElement(FaHistory, null),
59172
59162
  label: "History",
59173
59163
  onClick: onShowHistory
@@ -59193,7 +59183,7 @@ var Store = function Store(_ref) {
59193
59183
  fullWidth: true
59194
59184
  }))));
59195
59185
  };
59196
- var Container$N = /*#__PURE__*/styled.div.withConfig({
59186
+ var Container$M = /*#__PURE__*/styled.div.withConfig({
59197
59187
  displayName: "Store__Container",
59198
59188
  componentId: "sc-64dj00-0"
59199
59189
  })(["display:flex;flex-direction:column;width:100%;height:100%;gap:1rem;position:relative;"]);
@@ -59564,7 +59554,7 @@ var TradingMenu = function TradingMenu(_ref) {
59564
59554
  width: "500px",
59565
59555
  cancelDrag: "#TraderContainer",
59566
59556
  scale: scale
59567
- }, React.createElement(Container$O, null, React.createElement(Title$f, null, type.charAt(0).toUpperCase() + type.slice(1), " Menu"), React.createElement("hr", {
59557
+ }, React.createElement(Container$N, null, React.createElement(Title$f, null, type.charAt(0).toUpperCase() + type.slice(1), " Menu"), React.createElement("hr", {
59568
59558
  className: "golden"
59569
59559
  }), React.createElement(ScrollWrapper, {
59570
59560
  id: "TraderContainer"
@@ -59592,7 +59582,7 @@ var TradingMenu = function TradingMenu(_ref) {
59592
59582
  onPointerDown: onClose
59593
59583
  }, "Cancel"))));
59594
59584
  };
59595
- var Container$O = /*#__PURE__*/styled.div.withConfig({
59585
+ var Container$N = /*#__PURE__*/styled.div.withConfig({
59596
59586
  displayName: "TradingMenu__Container",
59597
59587
  componentId: "sc-1wjsz1l-0"
59598
59588
  })(["width:100%;"]);
@@ -59626,11 +59616,11 @@ var Truncate = function Truncate(_ref) {
59626
59616
  var _ref$maxLines = _ref.maxLines,
59627
59617
  maxLines = _ref$maxLines === void 0 ? 1 : _ref$maxLines,
59628
59618
  children = _ref.children;
59629
- return React.createElement(Container$P, {
59619
+ return React.createElement(Container$O, {
59630
59620
  maxLines: maxLines
59631
59621
  }, children);
59632
59622
  };
59633
- var Container$P = /*#__PURE__*/styled.div.withConfig({
59623
+ var Container$O = /*#__PURE__*/styled.div.withConfig({
59634
59624
  displayName: "Truncate__Container",
59635
59625
  componentId: "sc-6x00qb-0"
59636
59626
  })(["display:-webkit-box;max-width:100%;max-height:100%;-webkit-line-clamp:", ";-webkit-box-orient:vertical;overflow:hidden;"], function (props) {
@@ -59738,7 +59728,7 @@ var TutorialStepper = /*#__PURE__*/React.memo(function (_ref) {
59738
59728
  };
59739
59729
  });
59740
59730
  }, [lessons, imageStyle]);
59741
- return React.createElement(Container$Q, null, React.createElement(Stepper, {
59731
+ return React.createElement(Container$P, null, React.createElement(Stepper, {
59742
59732
  steps: generateLessons,
59743
59733
  finalCTAButton: {
59744
59734
  label: 'Close',
@@ -59755,7 +59745,7 @@ var LessonBody = /*#__PURE__*/styled.div.withConfig({
59755
59745
  displayName: "TutorialStepper__LessonBody",
59756
59746
  componentId: "sc-7tgzv2-1"
59757
59747
  })([""]);
59758
- var Container$Q = /*#__PURE__*/styled.div.withConfig({
59748
+ var Container$P = /*#__PURE__*/styled.div.withConfig({
59759
59749
  displayName: "TutorialStepper__Container",
59760
59750
  componentId: "sc-7tgzv2-2"
59761
59751
  })(["width:80%;max-width:600px;@media (max-width:600px){width:95%;}"]);