@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.
@@ -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,23 @@ var SearchFriend = function SearchFriend(_ref) {
30857
30944
  onSearch(characterName);
30858
30945
  }
30859
30946
  };
30947
+ var friendsTabContent = 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
+ }))));
30860
30964
  var searchTabContent = React.createElement(ListContainer$1, null, React.createElement(SearchForm, {
30861
30965
  onSubmit: handleSubmit
30862
30966
  }, React.createElement(SearchInput, {
@@ -30869,7 +30973,6 @@ var SearchFriend = function SearchFriend(_ref) {
30869
30973
  onFocus: onFocus,
30870
30974
  onBlur: onBlur,
30871
30975
  onPointerDown: onFocus,
30872
- autoFocus: true,
30873
30976
  placeholder: "Search for a character..."
30874
30977
  })), React.createElement(CharacterList, {
30875
30978
  characters: searchedCharacters,
@@ -30882,6 +30985,10 @@ var SearchFriend = function SearchFriend(_ref) {
30882
30985
  onReject: onRejectRequest
30883
30986
  }));
30884
30987
  var tabs = [{
30988
+ id: 'friends',
30989
+ title: "Friends (" + friends.length + ")",
30990
+ content: friendsTabContent
30991
+ }, {
30885
30992
  id: 'search',
30886
30993
  title: 'Search',
30887
30994
  content: searchTabContent
@@ -30890,8 +30997,10 @@ var SearchFriend = function SearchFriend(_ref) {
30890
30997
  title: "Requests (" + friendRequests.length + ")",
30891
30998
  content: requestsTabContent
30892
30999
  }];
30893
- return React.createElement(Container$l, null, React.createElement(InternalTabs, {
31000
+ return React.createElement(ListWrapper, null, React.createElement(InternalTabs, {
30894
31001
  tabs: tabs,
31002
+ activeTab: activeTab,
31003
+ onTabChange: setActiveTab,
30895
31004
  activeTextColor: "#000",
30896
31005
  inactiveColor: "#777",
30897
31006
  borderColor: "#f59e0b"
@@ -30916,7 +31025,7 @@ var FriendRequestSection = function FriendRequestSection(_ref3) {
30916
31025
  var friendRequests = _ref3.friendRequests,
30917
31026
  onAccept = _ref3.onAccept,
30918
31027
  onReject = _ref3.onReject;
30919
- return React.createElement(React.Fragment, null, friendRequests.length > 0 && React.createElement(ListContainer$1, null, friendRequests.map(function (character) {
31028
+ return React.createElement(React.Fragment, null, friendRequests.length > 0 ? React.createElement(ListContainer$1, null, friendRequests.map(function (character) {
30920
31029
  return React.createElement(ListItem, {
30921
31030
  key: character._id
30922
31031
  }, React.createElement(CharacterName, null, character.name), React.createElement(AcceptRejectActions, null, React.createElement(UserActionLink, {
@@ -30930,94 +31039,7 @@ var FriendRequestSection = function FriendRequestSection(_ref3) {
30930
31039
  return onReject(character);
30931
31040
  }
30932
31041
  }, "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')));
31042
+ })) : React.createElement(EmptyMessage, null, "No pending friend requests"));
31021
31043
  };
31022
31044
  // Styled components for FriendList UI
31023
31045
  var ListWrapper = /*#__PURE__*/styled.div.withConfig({
@@ -31031,14 +31053,38 @@ var ScrollableArea = /*#__PURE__*/styled.div.withConfig({
31031
31053
  var IsOnlineBadge = /*#__PURE__*/styled.div.withConfig({
31032
31054
  displayName: "FriendList__IsOnlineBadge",
31033
31055
  componentId: "sc-3jf9vt-2"
31034
- })(["width:10px;height:10px;border-radius:50%;background-color:", ";margin-right:1rem;"], function (_ref2) {
31035
- var $isOnline = _ref2.$isOnline;
31056
+ })(["width:10px;height:10px;border-radius:50%;background-color:", ";margin-right:1rem;"], function (_ref4) {
31057
+ var $isOnline = _ref4.$isOnline;
31036
31058
  return $isOnline ? uiColors.lightGreen : uiColors.red;
31037
31059
  });
31038
- var ButtonContainer$1 = /*#__PURE__*/styled.div.withConfig({
31039
- displayName: "FriendList__ButtonContainer",
31060
+ var SearchForm = /*#__PURE__*/styled.form.withConfig({
31061
+ displayName: "FriendList__SearchForm",
31040
31062
  componentId: "sc-3jf9vt-3"
31041
- })(["display:flex;justify-content:center;align-items:center;width:100%;margin-top:1rem;"]);
31063
+ })(["display:flex;align-items:center;width:100%;margin-top:1rem;"]);
31064
+ var SearchInput = /*#__PURE__*/styled.input.withConfig({
31065
+ displayName: "FriendList__SearchInput",
31066
+ componentId: "sc-3jf9vt-4"
31067
+ })(["width:100%;background-color:rgba(0,0,0,0.25);border:none;padding:0.5rem;font-size:", ";"], uiFonts.size.small);
31068
+ var ListContainer$1 = /*#__PURE__*/styled.ul.withConfig({
31069
+ displayName: "FriendList__ListContainer",
31070
+ componentId: "sc-3jf9vt-5"
31071
+ })(["list-style:none;padding:0;margin:0;width:100%;max-height:50vh;overflow-y:auto;@media (max-width:768px){max-height:90vh;}"]);
31072
+ var ListItem = /*#__PURE__*/styled.li.withConfig({
31073
+ displayName: "FriendList__ListItem",
31074
+ componentId: "sc-3jf9vt-6"
31075
+ })(["display:flex;align-items:center;justify-content:space-between;padding:0.5rem;border-bottom:1px solid rgba(255,255,255,0.1);"]);
31076
+ var CharacterName = /*#__PURE__*/styled.p.withConfig({
31077
+ displayName: "FriendList__CharacterName",
31078
+ componentId: "sc-3jf9vt-7"
31079
+ })(["font-size:", ";margin:0;"], uiFonts.size.small);
31080
+ var AcceptRejectActions = /*#__PURE__*/styled.div.withConfig({
31081
+ displayName: "FriendList__AcceptRejectActions",
31082
+ componentId: "sc-3jf9vt-8"
31083
+ })(["display:flex;gap:0.5rem;"]);
31084
+ var EmptyMessage = /*#__PURE__*/styled.p.withConfig({
31085
+ displayName: "FriendList__EmptyMessage",
31086
+ componentId: "sc-3jf9vt-9"
31087
+ })(["text-align:center;color:#888;padding:1rem;font-size:", ";"], uiFonts.size.small);
31042
31088
 
31043
31089
  var IS_MOBILE_OR_TABLET = /*#__PURE__*/isMobileOrTablet();
31044
31090
 
@@ -31135,7 +31181,7 @@ var NPCDialogText = function NPCDialogText(_ref) {
31135
31181
  var _useState2 = useState(false),
31136
31182
  showGoNextIndicator = _useState2[0],
31137
31183
  setShowGoNextIndicator = _useState2[1];
31138
- return React.createElement(Container$m, null, React.createElement(DynamicText, {
31184
+ return React.createElement(Container$l, null, React.createElement(DynamicText, {
31139
31185
  text: (textChunks == null ? void 0 : textChunks[chunkIndex]) || '',
31140
31186
  onFinish: function onFinish() {
31141
31187
  setShowGoNextIndicator(true);
@@ -31153,7 +31199,7 @@ var NPCDialogText = function NPCDialogText(_ref) {
31153
31199
  }
31154
31200
  }));
31155
31201
  };
31156
- var Container$m = /*#__PURE__*/styled.div.withConfig({
31202
+ var Container$l = /*#__PURE__*/styled.div.withConfig({
31157
31203
  displayName: "NPCDialogText__Container",
31158
31204
  componentId: "sc-1cxkdh9-0"
31159
31205
  })([""]);
@@ -31305,7 +31351,7 @@ var QuestionDialog = function QuestionDialog(_ref) {
31305
31351
  return null;
31306
31352
  });
31307
31353
  };
31308
- return React.createElement(Container$n, null, React.createElement(QuestionContainer, null, React.createElement(DynamicText, {
31354
+ return React.createElement(Container$m, null, React.createElement(QuestionContainer, null, React.createElement(DynamicText, {
31309
31355
  text: currentQuestion.text,
31310
31356
  onStart: function onStart() {
31311
31357
  return setCanShowAnswers(false);
@@ -31315,7 +31361,7 @@ var QuestionDialog = function QuestionDialog(_ref) {
31315
31361
  }
31316
31362
  })), canShowAnswers && React.createElement(AnswersContainer, null, onRenderCurrentAnswers()));
31317
31363
  };
31318
- var Container$n = /*#__PURE__*/styled.div.withConfig({
31364
+ var Container$m = /*#__PURE__*/styled.div.withConfig({
31319
31365
  displayName: "QuestionDialog__Container",
31320
31366
  componentId: "sc-bxc5u0-0"
31321
31367
  })(["display:flex;word-break:break-all;box-sizing:border-box;justify-content:flex-start;align-items:flex-start;flex-wrap:wrap;"]);
@@ -31376,7 +31422,7 @@ var NPCDialog = function NPCDialog(_ref) {
31376
31422
  }
31377
31423
  })), type === NPCDialogType.TextAndThumbnail && React.createElement(ThumbnailContainer, null, React.createElement(NPCThumbnail, {
31378
31424
  src: imagePath || img$7
31379
- }))) : React.createElement(React.Fragment, null, React.createElement(Container$o, null, React.createElement(CloseIcon, {
31425
+ }))) : React.createElement(React.Fragment, null, React.createElement(Container$n, null, React.createElement(CloseIcon, {
31380
31426
  onPointerDown: _onClose
31381
31427
  }, "X"), React.createElement(TextContainer$1, {
31382
31428
  flex: type === NPCDialogType.TextAndThumbnail ? '70%' : '100%'
@@ -31392,7 +31438,7 @@ var NPCDialog = function NPCDialog(_ref) {
31392
31438
  src: imagePath || img$7
31393
31439
  })))));
31394
31440
  };
31395
- var Container$o = /*#__PURE__*/styled.div.withConfig({
31441
+ var Container$n = /*#__PURE__*/styled.div.withConfig({
31396
31442
  displayName: "NPCDialog__Container",
31397
31443
  componentId: "sc-1b4aw74-0"
31398
31444
  })(["display:flex;width:100%;height:100%;box-sizing:border-box;justify-content:center;align-items:flex-start;position:relative;"]);
@@ -31453,7 +31499,7 @@ var NPCMultiDialog = function NPCMultiDialog(_ref) {
31453
31499
  type: RPGUIContainerTypes.FramedGold,
31454
31500
  width: '50%',
31455
31501
  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, {
31502
+ }, 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
31503
  flex: '70%'
31458
31504
  }, React.createElement(NPCDialogText, {
31459
31505
  onStartStep: function onStartStep() {
@@ -31495,7 +31541,7 @@ var NPCMultiDialog = function NPCMultiDialog(_ref) {
31495
31541
  src: img$6
31496
31542
  }))), ")"));
31497
31543
  };
31498
- var Container$p = /*#__PURE__*/styled.div.withConfig({
31544
+ var Container$o = /*#__PURE__*/styled.div.withConfig({
31499
31545
  displayName: "NPCMultiDialog__Container",
31500
31546
  componentId: "sc-rvu5wg-0"
31501
31547
  })(["display:flex;width:100%;height:100%;box-sizing:border-box;justify-content:center;align-items:flex-start;position:relative;"]);
@@ -31766,78 +31812,6 @@ var FadeInCarouselImg = /*#__PURE__*/styled(CarouselImg).withConfig({
31766
31812
  componentId: "sc-gdvbly-5"
31767
31813
  })(["animation:", " 0.5s;"], fadeIn);
31768
31814
 
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
31815
  var TOOLTIP_OFFSET = 10;
31842
31816
  var MIN_VISIBLE_HEIGHT = 100;
31843
31817
  var useTooltipPosition = function useTooltipPosition() {
@@ -31934,7 +31908,7 @@ var Pagination = function Pagination(_ref) {
31934
31908
  totalPages = _ref.totalPages,
31935
31909
  onPageChange = _ref.onPageChange,
31936
31910
  className = _ref.className;
31937
- return React.createElement(Container$q, {
31911
+ return React.createElement(Container$p, {
31938
31912
  className: className
31939
31913
  }, React.createElement(PaginationButton$1, {
31940
31914
  onClick: function onClick() {
@@ -31952,7 +31926,7 @@ var Pagination = function Pagination(_ref) {
31952
31926
  size: 12
31953
31927
  })));
31954
31928
  };
31955
- var Container$q = /*#__PURE__*/styled.div.withConfig({
31929
+ var Container$p = /*#__PURE__*/styled.div.withConfig({
31956
31930
  displayName: "Pagination__Container",
31957
31931
  componentId: "sc-3k4m4u-0"
31958
31932
  })(["display:flex;align-items:center;justify-content:center;gap:16px;padding:8px;"]);
@@ -32060,12 +32034,12 @@ var PaginatedContent = function PaginatedContent(_ref) {
32060
32034
  setCurrentPage = _usePagination.setCurrentPage,
32061
32035
  paginatedItems = _usePagination.paginatedItems,
32062
32036
  totalPages = _usePagination.totalPages;
32063
- return React.createElement(Container$r, {
32037
+ return React.createElement(Container$q, {
32064
32038
  className: className
32065
32039
  }, (searchOptions || filterOptions) && React.createElement(SearchHeader$1, {
32066
32040
  searchOptions: searchOptions,
32067
32041
  filterOptions: filterOptions
32068
- }), items.length === 0 ? React.createElement(EmptyMessage, null, emptyMessage) : React.createElement(React.Fragment, null, React.createElement(Content, {
32042
+ }), items.length === 0 ? React.createElement(EmptyMessage$1, null, emptyMessage) : React.createElement(React.Fragment, null, React.createElement(Content, {
32069
32043
  className: "PaginatedContent-content " + layout,
32070
32044
  "$gridColumns": gridColumns,
32071
32045
  "$itemHeight": itemHeight
@@ -32082,7 +32056,7 @@ var PaginatedContent = function PaginatedContent(_ref) {
32082
32056
  onPageChange: setCurrentPage
32083
32057
  }))));
32084
32058
  };
32085
- var Container$r = /*#__PURE__*/styled.div.withConfig({
32059
+ var Container$q = /*#__PURE__*/styled.div.withConfig({
32086
32060
  displayName: "PaginatedContent__Container",
32087
32061
  componentId: "sc-lzp9hn-0"
32088
32062
  })(["display:flex;flex-direction:column;gap:0.5rem;min-height:400px;width:100%;"]);
@@ -32101,7 +32075,7 @@ var PaginationContainer$1 = /*#__PURE__*/styled.div.withConfig({
32101
32075
  displayName: "PaginatedContent__PaginationContainer",
32102
32076
  componentId: "sc-lzp9hn-2"
32103
32077
  })(["display:flex;justify-content:center;padding:0.5rem;@media (min-width:480px){padding:1rem;}"]);
32104
- var EmptyMessage = /*#__PURE__*/styled.div.withConfig({
32078
+ var EmptyMessage$1 = /*#__PURE__*/styled.div.withConfig({
32105
32079
  displayName: "PaginatedContent__EmptyMessage",
32106
32080
  componentId: "sc-lzp9hn-3"
32107
32081
  })(["text-align:center;color:#9ca3af;padding:2rem;flex:1;display:flex;align-items:center;justify-content:center;"]);
@@ -32204,7 +32178,7 @@ var BaseInformationDetails = function BaseInformationDetails(_ref) {
32204
32178
  atlasIMG = _ref.atlasIMG,
32205
32179
  onBack = _ref.onBack,
32206
32180
  children = _ref.children;
32207
- return React.createElement(Container$s, null, React.createElement(Overlay, {
32181
+ return React.createElement(Container$r, null, React.createElement(Overlay, {
32208
32182
  onClick: onBack
32209
32183
  }), React.createElement(Modal, null, React.createElement(CloseButton$5, {
32210
32184
  onClick: onBack
@@ -32217,7 +32191,7 @@ var BaseInformationDetails = function BaseInformationDetails(_ref) {
32217
32191
  imgScale: 1
32218
32192
  })), React.createElement(Title$3, null, name)), React.createElement(Content$1, null, children)));
32219
32193
  };
32220
- var Container$s = /*#__PURE__*/styled.div.withConfig({
32194
+ var Container$r = /*#__PURE__*/styled.div.withConfig({
32221
32195
  displayName: "BaseInformationDetails__Container",
32222
32196
  componentId: "sc-1vguuz8-0"
32223
32197
  })(["position:fixed;inset:0;display:flex;justify-content:center;align-items:center;z-index:9999;"]);
@@ -32259,7 +32233,7 @@ var Collapsible = function Collapsible(_ref) {
32259
32233
  var _useState = useState(defaultOpen),
32260
32234
  isOpen = _useState[0],
32261
32235
  setIsOpen = _useState[1];
32262
- return React.createElement(Container$t, {
32236
+ return React.createElement(Container$s, {
32263
32237
  className: className
32264
32238
  }, React.createElement(Header$3, {
32265
32239
  onClick: function onClick() {
@@ -32267,7 +32241,7 @@ var Collapsible = function Collapsible(_ref) {
32267
32241
  }
32268
32242
  }, 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
32243
  };
32270
- var Container$t = /*#__PURE__*/styled.div.withConfig({
32244
+ var Container$s = /*#__PURE__*/styled.div.withConfig({
32271
32245
  displayName: "Collapsible__Container",
32272
32246
  componentId: "sc-s4h8ey-0"
32273
32247
  })(["background:rgba(0,0,0,0.3);border-radius:4px;overflow:hidden;border:1px solid ", ";"], uiColors.darkGray);
@@ -32597,7 +32571,7 @@ var AdvancedFilters = function AdvancedFilters(_ref) {
32597
32571
  onClose();
32598
32572
  }
32599
32573
  };
32600
- return React.createElement(Container$u, null, React.createElement(FilterButton, {
32574
+ return React.createElement(Container$t, null, React.createElement(FilterButton, {
32601
32575
  onClick: onToggle,
32602
32576
  "$hasActiveFilters": hasActiveFilters,
32603
32577
  ref: buttonRef
@@ -32628,7 +32602,7 @@ var AdvancedFilters = function AdvancedFilters(_ref) {
32628
32602
  onClick: onClearAll
32629
32603
  }, "Clear All Filters"))));
32630
32604
  };
32631
- var Container$u = /*#__PURE__*/styled.div.withConfig({
32605
+ var Container$t = /*#__PURE__*/styled.div.withConfig({
32632
32606
  displayName: "AdvancedFilters__Container",
32633
32607
  componentId: "sc-1xj6ldr-0"
32634
32608
  })(["position:relative;margin-left:0.5rem;"]);
@@ -33722,7 +33696,7 @@ var InformationCenter = function InformationCenter(_ref) {
33722
33696
  minWidth: "300px",
33723
33697
  cancelDrag: ".PaginatedContent-content",
33724
33698
  onCloseButton: onClose
33725
- }, React.createElement(Container$v, null, React.createElement(InternalTabs, {
33699
+ }, React.createElement(Container$u, null, React.createElement(InternalTabs, {
33726
33700
  tabs: tabs,
33727
33701
  activeTextColor: "#000000",
33728
33702
  activeTab: activeTab,
@@ -33733,7 +33707,7 @@ var InformationCenter = function InformationCenter(_ref) {
33733
33707
  hoverColor: "#fef3c7"
33734
33708
  })));
33735
33709
  };
33736
- var Container$v = /*#__PURE__*/styled.div.withConfig({
33710
+ var Container$u = /*#__PURE__*/styled.div.withConfig({
33737
33711
  displayName: "InformationCenter__Container",
33738
33712
  componentId: "sc-1ttl62e-0"
33739
33713
  })(["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 +33878,7 @@ var ShortcutsSetter = function ShortcutsSetter(_ref) {
33904
33878
  }
33905
33879
  return null;
33906
33880
  };
33907
- return React.createElement(Container$w, null, React.createElement("p", null, "Shortcuts:"), React.createElement(List, {
33881
+ return React.createElement(Container$v, null, React.createElement("p", null, "Shortcuts:"), React.createElement(List, {
33908
33882
  id: "shortcuts_list"
33909
33883
  }, Array.from({
33910
33884
  length: 12
@@ -33922,7 +33896,7 @@ var ShortcutsSetter = function ShortcutsSetter(_ref) {
33922
33896
  }, getContent(i));
33923
33897
  })));
33924
33898
  };
33925
- var Container$w = /*#__PURE__*/styled.div.withConfig({
33899
+ var Container$v = /*#__PURE__*/styled.div.withConfig({
33926
33900
  displayName: "ShortcutsSetter__Container",
33927
33901
  componentId: "sc-xuouuf-0"
33928
33902
  })(["p{margin:0;margin-left:0.5rem;font-size:10px;}width:100%;"]);
@@ -34466,13 +34440,13 @@ var ColorSelector = function ColorSelector(_ref) {
34466
34440
  cancelDrag: ".react-colorful",
34467
34441
  width: "25rem",
34468
34442
  onCloseButton: onClose
34469
- }, React.createElement(Container$x, null, React.createElement(Header$4, null, "Select Color"), React.createElement(ColorPickerWrapper, null, React.createElement(HexColorPicker, {
34443
+ }, React.createElement(Container$w, null, React.createElement(Header$4, null, "Select Color"), React.createElement(ColorPickerWrapper, null, React.createElement(HexColorPicker, {
34470
34444
  color: currentColor,
34471
34445
  onChange: function onChange(color) {
34472
34446
  setCurrentColor(color);
34473
34447
  _onChange(color);
34474
34448
  }
34475
- })), React.createElement(ButtonContainer$2, null, React.createElement(Button, {
34449
+ })), React.createElement(ButtonContainer$1, null, React.createElement(Button, {
34476
34450
  buttonType: ButtonTypes.RPGUIButton,
34477
34451
  type: "button",
34478
34452
  onClick: handleConfirm
@@ -34482,7 +34456,7 @@ var ColorSelector = function ColorSelector(_ref) {
34482
34456
  onClose: handleClose
34483
34457
  }));
34484
34458
  };
34485
- var Container$x = /*#__PURE__*/styled.div.withConfig({
34459
+ var Container$w = /*#__PURE__*/styled.div.withConfig({
34486
34460
  displayName: "ItemPropertyColorSelector__Container",
34487
34461
  componentId: "sc-me1r4z-0"
34488
34462
  })(["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 +34468,7 @@ var ColorPickerWrapper = /*#__PURE__*/styled.div.withConfig({
34494
34468
  displayName: "ItemPropertyColorSelector__ColorPickerWrapper",
34495
34469
  componentId: "sc-me1r4z-2"
34496
34470
  })(["display:flex;justify-content:center;width:100%;.react-colorful{width:100%;max-width:200px;}"]);
34497
- var ButtonContainer$2 = /*#__PURE__*/styled.div.withConfig({
34471
+ var ButtonContainer$1 = /*#__PURE__*/styled.div.withConfig({
34498
34472
  displayName: "ItemPropertyColorSelector__ButtonContainer",
34499
34473
  componentId: "sc-me1r4z-3"
34500
34474
  })(["display:flex;justify-content:center;width:100%;"]);
@@ -34838,7 +34812,7 @@ var ListMenu = function ListMenu(_ref) {
34838
34812
  onSelected = _ref.onSelected,
34839
34813
  x = _ref.x,
34840
34814
  y = _ref.y;
34841
- return React.createElement(Container$y, {
34815
+ return React.createElement(Container$x, {
34842
34816
  x: x,
34843
34817
  y: y
34844
34818
  }, React.createElement("ul", {
@@ -34855,7 +34829,7 @@ var ListMenu = function ListMenu(_ref) {
34855
34829
  }, (params == null ? void 0 : params.text) || 'No text');
34856
34830
  })));
34857
34831
  };
34858
- var Container$y = /*#__PURE__*/styled.div.withConfig({
34832
+ var Container$x = /*#__PURE__*/styled.div.withConfig({
34859
34833
  displayName: "ListMenu__Container",
34860
34834
  componentId: "sc-i9097t-0"
34861
34835
  })(["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 +34848,7 @@ var Pager = function Pager(_ref) {
34874
34848
  itemsPerPage = _ref.itemsPerPage,
34875
34849
  onPageChange = _ref.onPageChange;
34876
34850
  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", {
34851
+ return React.createElement(Container$y, null, React.createElement("p", null, "Total items: ", totalItems), React.createElement(PagerContainer, null, React.createElement("button", {
34878
34852
  disabled: currentPage === 1,
34879
34853
  onPointerDown: function onPointerDown() {
34880
34854
  return onPageChange(Math.max(currentPage - 1, 1));
@@ -34888,7 +34862,7 @@ var Pager = function Pager(_ref) {
34888
34862
  }
34889
34863
  }, '>')));
34890
34864
  };
34891
- var Container$z = /*#__PURE__*/styled.div.withConfig({
34865
+ var Container$y = /*#__PURE__*/styled.div.withConfig({
34892
34866
  displayName: "Pager__Container",
34893
34867
  componentId: "sc-1ekmf50-0"
34894
34868
  })(["display:flex;flex-direction:column;align-items:center;p{margin:0;font-size:", ";}"], uiFonts.size.xsmall);
@@ -34942,7 +34916,7 @@ var MarketplaceRows = function MarketplaceRows(_ref) {
34942
34916
  maxLines: 1,
34943
34917
  maxWidth: "200px",
34944
34918
  fontSize: "10px"
34945
- }, "$", itemPrice)))), React.createElement(ButtonContainer$3, null, React.createElement(Button, {
34919
+ }, "$", itemPrice)))), React.createElement(ButtonContainer$2, null, React.createElement(Button, {
34946
34920
  buttonType: ButtonTypes.RPGUIButton,
34947
34921
  disabled: disabled,
34948
34922
  onPointerDown: function onPointerDown() {
@@ -34984,7 +34958,7 @@ var PriceValue = /*#__PURE__*/styled.div.withConfig({
34984
34958
  displayName: "MarketplaceRows__PriceValue",
34985
34959
  componentId: "sc-wmpr1o-7"
34986
34960
  })(["margin-left:40px;"]);
34987
- var ButtonContainer$3 = /*#__PURE__*/styled.div.withConfig({
34961
+ var ButtonContainer$2 = /*#__PURE__*/styled.div.withConfig({
34988
34962
  displayName: "MarketplaceRows__ButtonContainer",
34989
34963
  componentId: "sc-wmpr1o-8"
34990
34964
  })(["margin:auto;"]);
@@ -35409,13 +35383,13 @@ var TabBody = function TabBody(_ref) {
35409
35383
  children = _ref.children,
35410
35384
  styles = _ref.styles,
35411
35385
  centerContent = _ref.centerContent;
35412
- return React.createElement(Container$A, {
35386
+ return React.createElement(Container$z, {
35413
35387
  styles: styles,
35414
35388
  "data-tab-id": id,
35415
35389
  centerContent: centerContent
35416
35390
  }, children);
35417
35391
  };
35418
- var Container$A = /*#__PURE__*/styled.div.withConfig({
35392
+ var Container$z = /*#__PURE__*/styled.div.withConfig({
35419
35393
  displayName: "TabBody__Container",
35420
35394
  componentId: "sc-196oof2-0"
35421
35395
  })(["width:", ";height:", ";overflow-y:auto;display:", ";justify-content:", ";align-items:", ";"], function (props) {
@@ -35753,7 +35727,7 @@ var PartyManagerRow = function PartyManagerRow(_ref) {
35753
35727
  }, charName, " ", isCurrentUser ? '(You)' : '', " ", isLeader ? '(Leader)' : '')), React.createElement(TextContainer$5, null, React.createElement(Ellipsis, {
35754
35728
  maxLines: 1,
35755
35729
  maxWidth: "300px"
35756
- }, charClass)), React.createElement(ButtonContainer$4, null, canRemove && React.createElement(HighlightedText, {
35730
+ }, charClass)), React.createElement(ButtonContainer$3, null, canRemove && React.createElement(HighlightedText, {
35757
35731
  onPointerDown: function onPointerDown() {
35758
35732
  return onRemovePlayer(id);
35759
35733
  }
@@ -35771,7 +35745,7 @@ var TextContainer$5 = /*#__PURE__*/styled.div.withConfig({
35771
35745
  displayName: "PartyManagerRows__TextContainer",
35772
35746
  componentId: "sc-uqajew-1"
35773
35747
  })(["color:", ";overflow:hidden;white-space:nowrap;text-overflow:ellipsis;"], uiColors.white);
35774
- var ButtonContainer$4 = /*#__PURE__*/styled.div.withConfig({
35748
+ var ButtonContainer$3 = /*#__PURE__*/styled.div.withConfig({
35775
35749
  displayName: "PartyManagerRows__ButtonContainer",
35776
35750
  componentId: "sc-uqajew-2"
35777
35751
  })(["display:flex;align-items:center;gap:1rem;justify-content:flex-start;"]);
@@ -36070,7 +36044,7 @@ var ProgressBar$1 = function ProgressBar(_ref) {
36070
36044
  // Round only for display, not for calculation
36071
36045
  var displayValue = Math.round(value);
36072
36046
  var displayMax = Math.round(max);
36073
- return React.createElement(Container$B, {
36047
+ return React.createElement(Container$A, {
36074
36048
  className: "rpgui-progress",
36075
36049
  "data-value": calculatePercentageValue(max, value) / 100,
36076
36050
  "data-rpguitype": "progress",
@@ -36102,7 +36076,7 @@ var TextOverlay$1 = /*#__PURE__*/styled.div.withConfig({
36102
36076
  displayName: "ProgressBar__TextOverlay",
36103
36077
  componentId: "sc-qa6fzh-1"
36104
36078
  })(["width:100%;position:relative;"]);
36105
- var Container$B = /*#__PURE__*/styled.div.withConfig({
36079
+ var Container$A = /*#__PURE__*/styled.div.withConfig({
36106
36080
  displayName: "ProgressBar__Container",
36107
36081
  componentId: "sc-qa6fzh-2"
36108
36082
  })(["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 +36317,9 @@ var InputRadio = function InputRadio(_ref) {
36343
36317
 
36344
36318
  var RPGUIScrollbar = function RPGUIScrollbar(_ref) {
36345
36319
  var children = _ref.children;
36346
- return React.createElement(Container$C, null, children);
36320
+ return React.createElement(Container$B, null, children);
36347
36321
  };
36348
- var Container$C = /*#__PURE__*/styled.div.withConfig({
36322
+ var Container$B = /*#__PURE__*/styled.div.withConfig({
36349
36323
  displayName: "RPGUIScrollbar__Container",
36350
36324
  componentId: "sc-p3msmb-0"
36351
36325
  })([".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 +36476,7 @@ var SimpleProgressBar = function SimpleProgressBar(_ref) {
36502
36476
  margin = _ref$margin === void 0 ? 20 : _ref$margin;
36503
36477
  // Ensure the width is at least 1% if value is greater than 0, capped at 99.99%
36504
36478
  var width = value > 0 ? Math.max(1, Math.min(99.99, value)) : 0;
36505
- return React.createElement(Container$D, {
36479
+ return React.createElement(Container$C, {
36506
36480
  className: "simple-progress-bar"
36507
36481
  }, React.createElement(ProgressBarContainer, {
36508
36482
  margin: margin
@@ -36511,7 +36485,7 @@ var SimpleProgressBar = function SimpleProgressBar(_ref) {
36511
36485
  bgColor: bgColor
36512
36486
  }))));
36513
36487
  };
36514
- var Container$D = /*#__PURE__*/styled.div.withConfig({
36488
+ var Container$C = /*#__PURE__*/styled.div.withConfig({
36515
36489
  displayName: "SimpleProgressBar__Container",
36516
36490
  componentId: "sc-mbeil3-0"
36517
36491
  })(["display:flex;justify-content:center;align-items:center;width:100%;"]);
@@ -36899,7 +36873,7 @@ var SocialModal = function SocialModal(_ref) {
36899
36873
  title: "Social Channels",
36900
36874
  width: "500px",
36901
36875
  onCloseButton: onClose
36902
- }, React.createElement(Container$E, null, React.createElement(HeaderImage, {
36876
+ }, React.createElement(Container$D, null, React.createElement(HeaderImage, {
36903
36877
  src: img$9,
36904
36878
  alt: ""
36905
36879
  }), React.createElement(ButtonsContainer$3, null, React.createElement(MainButtons, null, React.createElement(SocialButton$1, {
@@ -36917,7 +36891,7 @@ var SocialModal = function SocialModal(_ref) {
36917
36891
  onClick: handleWhatsAppClick
36918
36892
  }, React.createElement(FaWhatsapp, null), " Join WhatsApp")))));
36919
36893
  };
36920
- var Container$E = /*#__PURE__*/styled.div.withConfig({
36894
+ var Container$D = /*#__PURE__*/styled.div.withConfig({
36921
36895
  displayName: "SocialModal__Container",
36922
36896
  componentId: "sc-tbjhp9-0"
36923
36897
  })(["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 +36937,7 @@ var SpellInfo$1 = function SpellInfo(_ref) {
36963
36937
  castingType = spell.castingType,
36964
36938
  cooldown = spell.cooldown,
36965
36939
  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", {
36940
+ 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
36941
  className: "label"
36968
36942
  }, "Casting Type:"), React.createElement("div", {
36969
36943
  className: "value"
@@ -36989,7 +36963,7 @@ var SpellInfo$1 = function SpellInfo(_ref) {
36989
36963
  className: "value"
36990
36964
  }, requiredItem))), React.createElement(Description$4, null, description));
36991
36965
  };
36992
- var Container$F = /*#__PURE__*/styled.div.withConfig({
36966
+ var Container$E = /*#__PURE__*/styled.div.withConfig({
36993
36967
  displayName: "SpellInfo__Container",
36994
36968
  componentId: "sc-4hbw3q-0"
36995
36969
  })(["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 +37017,7 @@ var MobileSpellTooltip = function MobileSpellTooltip(_ref) {
37043
37017
  var _ref$current;
37044
37018
  (_ref$current = ref.current) == null ? void 0 : _ref$current.classList.add('fadeOut');
37045
37019
  };
37046
- return React.createElement(ModalPortal, null, React.createElement(Container$G, {
37020
+ return React.createElement(ModalPortal, null, React.createElement(Container$F, {
37047
37021
  ref: ref,
37048
37022
  onTouchEnd: function onTouchEnd() {
37049
37023
  handleFadeOut();
@@ -37068,7 +37042,7 @@ var MobileSpellTooltip = function MobileSpellTooltip(_ref) {
37068
37042
  }, option.text);
37069
37043
  }))));
37070
37044
  };
37071
- var Container$G = /*#__PURE__*/styled.div.withConfig({
37045
+ var Container$F = /*#__PURE__*/styled.div.withConfig({
37072
37046
  displayName: "MobileSpellTooltip__Container",
37073
37047
  componentId: "sc-6p7uvr-0"
37074
37048
  })(["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 +37083,13 @@ var MagicTooltip = function MagicTooltip(_ref) {
37109
37083
  }
37110
37084
  return;
37111
37085
  }, []);
37112
- return React.createElement(ModalPortal, null, React.createElement(Container$H, {
37086
+ return React.createElement(ModalPortal, null, React.createElement(Container$G, {
37113
37087
  ref: ref
37114
37088
  }, React.createElement(SpellInfoDisplay, {
37115
37089
  spell: spell
37116
37090
  })));
37117
37091
  };
37118
- var Container$H = /*#__PURE__*/styled.div.withConfig({
37092
+ var Container$G = /*#__PURE__*/styled.div.withConfig({
37119
37093
  displayName: "SpellTooltip__Container",
37120
37094
  componentId: "sc-1go0gwg-0"
37121
37095
  })(["position:absolute;z-index:100;pointer-events:none;left:0;top:0;opacity:0;transition:opacity 0.08s;"]);
@@ -37217,7 +37191,7 @@ var Spell = function Spell(_ref) {
37217
37191
  var IMAGE_SCALE = 2;
37218
37192
  return React.createElement(SpellInfoWrapper, {
37219
37193
  spell: spell
37220
- }, React.createElement(Container$I, {
37194
+ }, React.createElement(Container$H, {
37221
37195
  onPointerUp: onPointerUp == null ? void 0 : onPointerUp.bind(null, spellKey),
37222
37196
  isSettingShortcut: isSettingShortcut && !disabled,
37223
37197
  className: "spell"
@@ -37236,7 +37210,7 @@ var Spell = function Spell(_ref) {
37236
37210
  className: "mana"
37237
37211
  }, manaCost))));
37238
37212
  };
37239
- var Container$I = /*#__PURE__*/styled.button.withConfig({
37213
+ var Container$H = /*#__PURE__*/styled.button.withConfig({
37240
37214
  displayName: "Spell__Container",
37241
37215
  componentId: "sc-j96fa2-0"
37242
37216
  })(["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 +37290,7 @@ var Spellbook = function Spellbook(_ref) {
37316
37290
  height: "inherit",
37317
37291
  cancelDrag: "#spellbook-search, #shortcuts_list, .spell",
37318
37292
  scale: scale
37319
- }, React.createElement(Container$J, null, React.createElement(Title$d, null, "Learned Spells"), React.createElement(ShortcutsSetter, {
37293
+ }, React.createElement(Container$I, null, React.createElement(Title$d, null, "Learned Spells"), React.createElement(ShortcutsSetter, {
37320
37294
  setSettingShortcutIndex: setSettingShortcutIndex,
37321
37295
  settingShortcutIndex: settingShortcutIndex,
37322
37296
  shortcuts: shortcuts,
@@ -37353,7 +37327,7 @@ var Title$d = /*#__PURE__*/styled.h1.withConfig({
37353
37327
  displayName: "Spellbook__Title",
37354
37328
  componentId: "sc-r02nfq-0"
37355
37329
  })(["font-size:", " !important;margin-bottom:0 !important;"], uiFonts.size.large);
37356
- var Container$J = /*#__PURE__*/styled.div.withConfig({
37330
+ var Container$I = /*#__PURE__*/styled.div.withConfig({
37357
37331
  displayName: "Spellbook__Container",
37358
37332
  componentId: "sc-r02nfq-1"
37359
37333
  })(["width:100%;height:100%;color:white;display:flex;flex-direction:column;"]);
@@ -57738,7 +57712,7 @@ var CTAButton = function CTAButton(_ref) {
57738
57712
  iconColor = _ref$iconColor === void 0 ? '#f59e0b' : _ref$iconColor,
57739
57713
  _ref$disabled = _ref.disabled,
57740
57714
  disabled = _ref$disabled === void 0 ? false : _ref$disabled;
57741
- return React.createElement(ButtonContainer$5, {
57715
+ return React.createElement(ButtonContainer$4, {
57742
57716
  className: className,
57743
57717
  onPointerDown: disabled ? undefined : onClick,
57744
57718
  "$fullWidth": fullWidth,
@@ -57752,7 +57726,7 @@ var CTAButton = function CTAButton(_ref) {
57752
57726
  "$disabled": disabled
57753
57727
  }, label)));
57754
57728
  };
57755
- var ButtonContainer$5 = /*#__PURE__*/styled.div.withConfig({
57729
+ var ButtonContainer$4 = /*#__PURE__*/styled.div.withConfig({
57756
57730
  displayName: "CTAButton__ButtonContainer",
57757
57731
  componentId: "sc-1azvwn5-0"
57758
57732
  })(["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 +57835,7 @@ var CartView = function CartView(_ref2) {
57861
57835
  return _ref3.apply(this, arguments);
57862
57836
  };
57863
57837
  }();
57864
- return React.createElement(Container$K, null, React.createElement(Header$7, null, React.createElement(Title$e, null, "Shopping Cart"), React.createElement(CloseButton$9, {
57838
+ return React.createElement(Container$J, null, React.createElement(Header$7, null, React.createElement(Title$e, null, "Shopping Cart"), React.createElement(CloseButton$9, {
57865
57839
  onPointerDown: onClose
57866
57840
  }, React.createElement(FaTimes, null))), React.createElement(CartItems, null, cartItems.length === 0 ? React.createElement(EmptyCart, null, "Your cart is empty") : cartItems.map(function (cartItem) {
57867
57841
  var _cartItem$metadata, _cartItem$metadata2;
@@ -57897,7 +57871,7 @@ var CartView = function CartView(_ref2) {
57897
57871
  disabled: cartItems.length === 0 || isLoading
57898
57872
  })));
57899
57873
  };
57900
- var Container$K = /*#__PURE__*/styled.div.withConfig({
57874
+ var Container$J = /*#__PURE__*/styled.div.withConfig({
57901
57875
  displayName: "CartView__Container",
57902
57876
  componentId: "sc-ydtyl1-0"
57903
57877
  })(["display:flex;flex-direction:column;width:100%;height:100%;gap:1.5rem;padding:1.5rem;"]);
@@ -58251,9 +58225,9 @@ var ScrollableContent = function ScrollableContent(_ref) {
58251
58225
  _ref$maxHeight = _ref.maxHeight,
58252
58226
  maxHeight = _ref$maxHeight === void 0 ? '500px' : _ref$maxHeight;
58253
58227
  if (items.length === 0) {
58254
- return React.createElement(EmptyMessage$1, null, emptyMessage);
58228
+ return React.createElement(EmptyMessage$2, null, emptyMessage);
58255
58229
  }
58256
- return React.createElement(Container$L, {
58230
+ return React.createElement(Container$K, {
58257
58231
  className: className
58258
58232
  }, (searchOptions || filterOptions) && React.createElement(HeaderContainer$3, null, React.createElement(HeaderContent$1, null, searchOptions && React.createElement(SearchContainer$3, null, React.createElement(StyledSearchBar$2, {
58259
58233
  value: searchOptions.value,
@@ -58274,7 +58248,7 @@ var ScrollableContent = function ScrollableContent(_ref) {
58274
58248
  }, renderItem(item));
58275
58249
  })));
58276
58250
  };
58277
- var Container$L = /*#__PURE__*/styled.div.withConfig({
58251
+ var Container$K = /*#__PURE__*/styled.div.withConfig({
58278
58252
  displayName: "ScrollableContent__Container",
58279
58253
  componentId: "sc-xhh2um-0"
58280
58254
  })(["display:flex;flex-direction:column;gap:1rem;width:100%;"]);
@@ -58310,7 +58284,7 @@ var Content$4 = /*#__PURE__*/styled.div.withConfig({
58310
58284
  }, function (props) {
58311
58285
  return props.$gridColumns;
58312
58286
  });
58313
- var EmptyMessage$1 = /*#__PURE__*/styled.div.withConfig({
58287
+ var EmptyMessage$2 = /*#__PURE__*/styled.div.withConfig({
58314
58288
  displayName: "ScrollableContent__EmptyMessage",
58315
58289
  componentId: "sc-xhh2um-8"
58316
58290
  })(["text-align:center;color:#9ca3af;padding:2rem;flex:1;display:flex;align-items:center;justify-content:center;"]);
@@ -58890,7 +58864,7 @@ var StoreItemDetails = function StoreItemDetails(_ref) {
58890
58864
  if (typeof imageUrl === 'string') return imageUrl;
58891
58865
  return imageUrl["default"] || imageUrl.src;
58892
58866
  };
58893
- return React.createElement(Container$M, null, React.createElement(Header$9, null, React.createElement(BackButton, {
58867
+ return React.createElement(Container$L, null, React.createElement(Header$9, null, React.createElement(BackButton, {
58894
58868
  onClick: onBack
58895
58869
  }, 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
58870
  src: getImageSrc(),
@@ -58904,7 +58878,7 @@ var StoreItemDetails = function StoreItemDetails(_ref) {
58904
58878
  fullWidth: true
58905
58879
  }))));
58906
58880
  };
58907
- var Container$M = /*#__PURE__*/styled.div.withConfig({
58881
+ var Container$L = /*#__PURE__*/styled.div.withConfig({
58908
58882
  displayName: "StoreItemDetails__Container",
58909
58883
  componentId: "sc-k3ho5z-0"
58910
58884
  })(["display:flex;flex-direction:column;gap:1.5rem;padding:1.5rem;height:100%;"]);
@@ -59167,7 +59141,7 @@ var Store = function Store(_ref) {
59167
59141
  onAddToCart: function onAddToCart() {
59168
59142
  return handleAddPackToCart(selectedPack);
59169
59143
  }
59170
- }) : React.createElement(Container$N, null, React.createElement(TopBar$1, null, React.createElement(HistoryButton, null, onShowHistory && React.createElement(CTAButton, {
59144
+ }) : React.createElement(Container$M, null, React.createElement(TopBar$1, null, React.createElement(HistoryButton, null, onShowHistory && React.createElement(CTAButton, {
59171
59145
  icon: React.createElement(FaHistory, null),
59172
59146
  label: "History",
59173
59147
  onClick: onShowHistory
@@ -59193,7 +59167,7 @@ var Store = function Store(_ref) {
59193
59167
  fullWidth: true
59194
59168
  }))));
59195
59169
  };
59196
- var Container$N = /*#__PURE__*/styled.div.withConfig({
59170
+ var Container$M = /*#__PURE__*/styled.div.withConfig({
59197
59171
  displayName: "Store__Container",
59198
59172
  componentId: "sc-64dj00-0"
59199
59173
  })(["display:flex;flex-direction:column;width:100%;height:100%;gap:1rem;position:relative;"]);
@@ -59564,7 +59538,7 @@ var TradingMenu = function TradingMenu(_ref) {
59564
59538
  width: "500px",
59565
59539
  cancelDrag: "#TraderContainer",
59566
59540
  scale: scale
59567
- }, React.createElement(Container$O, null, React.createElement(Title$f, null, type.charAt(0).toUpperCase() + type.slice(1), " Menu"), React.createElement("hr", {
59541
+ }, React.createElement(Container$N, null, React.createElement(Title$f, null, type.charAt(0).toUpperCase() + type.slice(1), " Menu"), React.createElement("hr", {
59568
59542
  className: "golden"
59569
59543
  }), React.createElement(ScrollWrapper, {
59570
59544
  id: "TraderContainer"
@@ -59592,7 +59566,7 @@ var TradingMenu = function TradingMenu(_ref) {
59592
59566
  onPointerDown: onClose
59593
59567
  }, "Cancel"))));
59594
59568
  };
59595
- var Container$O = /*#__PURE__*/styled.div.withConfig({
59569
+ var Container$N = /*#__PURE__*/styled.div.withConfig({
59596
59570
  displayName: "TradingMenu__Container",
59597
59571
  componentId: "sc-1wjsz1l-0"
59598
59572
  })(["width:100%;"]);
@@ -59626,11 +59600,11 @@ var Truncate = function Truncate(_ref) {
59626
59600
  var _ref$maxLines = _ref.maxLines,
59627
59601
  maxLines = _ref$maxLines === void 0 ? 1 : _ref$maxLines,
59628
59602
  children = _ref.children;
59629
- return React.createElement(Container$P, {
59603
+ return React.createElement(Container$O, {
59630
59604
  maxLines: maxLines
59631
59605
  }, children);
59632
59606
  };
59633
- var Container$P = /*#__PURE__*/styled.div.withConfig({
59607
+ var Container$O = /*#__PURE__*/styled.div.withConfig({
59634
59608
  displayName: "Truncate__Container",
59635
59609
  componentId: "sc-6x00qb-0"
59636
59610
  })(["display:-webkit-box;max-width:100%;max-height:100%;-webkit-line-clamp:", ";-webkit-box-orient:vertical;overflow:hidden;"], function (props) {
@@ -59738,7 +59712,7 @@ var TutorialStepper = /*#__PURE__*/React.memo(function (_ref) {
59738
59712
  };
59739
59713
  });
59740
59714
  }, [lessons, imageStyle]);
59741
- return React.createElement(Container$Q, null, React.createElement(Stepper, {
59715
+ return React.createElement(Container$P, null, React.createElement(Stepper, {
59742
59716
  steps: generateLessons,
59743
59717
  finalCTAButton: {
59744
59718
  label: 'Close',
@@ -59755,7 +59729,7 @@ var LessonBody = /*#__PURE__*/styled.div.withConfig({
59755
59729
  displayName: "TutorialStepper__LessonBody",
59756
59730
  componentId: "sc-7tgzv2-1"
59757
59731
  })([""]);
59758
- var Container$Q = /*#__PURE__*/styled.div.withConfig({
59732
+ var Container$P = /*#__PURE__*/styled.div.withConfig({
59759
59733
  displayName: "TutorialStepper__Container",
59760
59734
  componentId: "sc-7tgzv2-2"
59761
59735
  })(["width:80%;max-width:600px;@media (max-width:600px){width:95%;}"]);