@rpg-engine/long-bow 0.8.11 → 0.8.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -0
- package/dist/long-bow.cjs.development.js +1478 -102
- package/dist/long-bow.cjs.development.js.map +1 -1
- package/dist/long-bow.cjs.production.min.js +1 -1
- package/dist/long-bow.cjs.production.min.js.map +1 -1
- package/dist/long-bow.esm.js +1479 -104
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/index.tsx +1 -0
package/dist/long-bow.esm.js
CHANGED
|
@@ -5,7 +5,7 @@ import { v4 } from 'uuid';
|
|
|
5
5
|
import { GRID_WIDTH, GRID_HEIGHT, ShortcutType, getItemTextureKeyPath, ItemRarities, ItemContainerType, ItemType, DepotSocketEvents, ItemSocketEvents, ItemSocketEventsDisplayLabels, ActionsForInventory, ActionsForEquipmentSet, ActionsForLoot, ActionsForMapContainer, ItemSubType, isMobile, ItemSlotType, isMobileOrTablet, CharacterClass, QuestStatus, getSPForLevel, getXPForLevel, PeriodOfDay, UserAccountTypes } from '@rpg-engine/shared';
|
|
6
6
|
import dayjs from 'dayjs';
|
|
7
7
|
import { ErrorBoundary as ErrorBoundary$1 } from 'react-error-boundary';
|
|
8
|
-
import { FaTimes, FaDiscord, FaWhatsapp, FaSearch, FaThumbtack, FaBoxOpen, FaChevronLeft, FaChevronRight, FaReddit } from 'react-icons/fa';
|
|
8
|
+
import { FaTimes, FaDiscord, FaWhatsapp, FaSearch, FaThumbtack, FaBoxOpen, FaChevronLeft, FaChevronRight, FaChevronUp, FaChevronDown, FaReddit } from 'react-icons/fa';
|
|
9
9
|
import { RxMagnifyingGlass, RxCross2 } from 'react-icons/rx';
|
|
10
10
|
import { IoMdContract, IoMdExpand } from 'react-icons/io';
|
|
11
11
|
import Draggable from 'react-draggable';
|
|
@@ -30774,6 +30774,1381 @@ var ContentWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
|
30774
30774
|
componentId: "sc-ldufv0-3"
|
|
30775
30775
|
})([""]);
|
|
30776
30776
|
|
|
30777
|
+
var usePagination = function usePagination(_ref) {
|
|
30778
|
+
var items = _ref.items,
|
|
30779
|
+
itemsPerPage = _ref.itemsPerPage,
|
|
30780
|
+
_ref$dependencies = _ref.dependencies,
|
|
30781
|
+
dependencies = _ref$dependencies === void 0 ? [] : _ref$dependencies;
|
|
30782
|
+
var _useState = useState(1),
|
|
30783
|
+
currentPage = _useState[0],
|
|
30784
|
+
setCurrentPage = _useState[1];
|
|
30785
|
+
var totalPages = Math.ceil(items.length / itemsPerPage);
|
|
30786
|
+
var paginatedItems = items.slice((currentPage - 1) * itemsPerPage, currentPage * itemsPerPage);
|
|
30787
|
+
useEffect(function () {
|
|
30788
|
+
setCurrentPage(1);
|
|
30789
|
+
}, [].concat(dependencies));
|
|
30790
|
+
return {
|
|
30791
|
+
currentPage: currentPage,
|
|
30792
|
+
setCurrentPage: setCurrentPage,
|
|
30793
|
+
paginatedItems: paginatedItems,
|
|
30794
|
+
totalPages: totalPages
|
|
30795
|
+
};
|
|
30796
|
+
};
|
|
30797
|
+
|
|
30798
|
+
var Pagination = function Pagination(_ref) {
|
|
30799
|
+
var currentPage = _ref.currentPage,
|
|
30800
|
+
totalPages = _ref.totalPages,
|
|
30801
|
+
onPageChange = _ref.onPageChange,
|
|
30802
|
+
className = _ref.className;
|
|
30803
|
+
return React.createElement(Container$l, {
|
|
30804
|
+
className: className
|
|
30805
|
+
}, React.createElement(PaginationButton$1, {
|
|
30806
|
+
onClick: function onClick() {
|
|
30807
|
+
return onPageChange(Math.max(1, currentPage - 1));
|
|
30808
|
+
},
|
|
30809
|
+
disabled: currentPage === 1
|
|
30810
|
+
}, React.createElement(FaChevronLeft, {
|
|
30811
|
+
size: 12
|
|
30812
|
+
})), React.createElement(PageInfo$1, null, "Page ", currentPage, " of ", totalPages), React.createElement(PaginationButton$1, {
|
|
30813
|
+
onClick: function onClick() {
|
|
30814
|
+
return onPageChange(Math.min(totalPages, currentPage + 1));
|
|
30815
|
+
},
|
|
30816
|
+
disabled: currentPage === totalPages
|
|
30817
|
+
}, React.createElement(FaChevronRight, {
|
|
30818
|
+
size: 12
|
|
30819
|
+
})));
|
|
30820
|
+
};
|
|
30821
|
+
var Container$l = /*#__PURE__*/styled.div.withConfig({
|
|
30822
|
+
displayName: "Pagination__Container",
|
|
30823
|
+
componentId: "sc-3k4m4u-0"
|
|
30824
|
+
})(["display:flex;align-items:center;justify-content:center;gap:16px;padding:8px;"]);
|
|
30825
|
+
var PaginationButton$1 = /*#__PURE__*/styled.button.withConfig({
|
|
30826
|
+
displayName: "Pagination__PaginationButton",
|
|
30827
|
+
componentId: "sc-3k4m4u-1"
|
|
30828
|
+
})(["background:none;border:none;color:", ";cursor:", ";opacity:", ";padding:4px;display:flex;align-items:center;justify-content:center;transition:opacity 0.2s;&:hover:not(:disabled){opacity:1;}"], function (props) {
|
|
30829
|
+
return props.disabled ? uiColors.darkGray : uiColors.yellow;
|
|
30830
|
+
}, function (props) {
|
|
30831
|
+
return props.disabled ? 'not-allowed' : 'pointer';
|
|
30832
|
+
}, function (props) {
|
|
30833
|
+
return props.disabled ? 0.5 : 0.8;
|
|
30834
|
+
});
|
|
30835
|
+
var PageInfo$1 = /*#__PURE__*/styled.div.withConfig({
|
|
30836
|
+
displayName: "Pagination__PageInfo",
|
|
30837
|
+
componentId: "sc-3k4m4u-2"
|
|
30838
|
+
})(["color:", ";font-size:0.8rem;font-family:'Press Start 2P',cursive;"], uiColors.lightGray);
|
|
30839
|
+
|
|
30840
|
+
var SearchBar = function SearchBar(_ref) {
|
|
30841
|
+
var value = _ref.value,
|
|
30842
|
+
_onChange = _ref.onChange,
|
|
30843
|
+
placeholder = _ref.placeholder,
|
|
30844
|
+
className = _ref.className;
|
|
30845
|
+
return React.createElement(Container$m, {
|
|
30846
|
+
className: className
|
|
30847
|
+
}, React.createElement(Input$1, {
|
|
30848
|
+
type: "text",
|
|
30849
|
+
value: value,
|
|
30850
|
+
onChange: function onChange(e) {
|
|
30851
|
+
return _onChange(e.target.value);
|
|
30852
|
+
},
|
|
30853
|
+
placeholder: placeholder,
|
|
30854
|
+
className: "rpgui-input"
|
|
30855
|
+
}), React.createElement(IconContainer, null, React.createElement(SearchIcon, null)));
|
|
30856
|
+
};
|
|
30857
|
+
var Container$m = /*#__PURE__*/styled.div.withConfig({
|
|
30858
|
+
displayName: "SearchBar__Container",
|
|
30859
|
+
componentId: "sc-13n8z02-0"
|
|
30860
|
+
})(["position:relative;width:100%;"]);
|
|
30861
|
+
var Input$1 = /*#__PURE__*/styled.input.withConfig({
|
|
30862
|
+
displayName: "SearchBar__Input",
|
|
30863
|
+
componentId: "sc-13n8z02-1"
|
|
30864
|
+
})(["width:100%;padding-right:2.5rem !important;background:rgba(0,0,0,0.2) !important;border:2px solid #f59e0b !important;box-shadow:0 0 10px rgba(245,158,11,0.3);color:#ffffff !important;font-family:'Press Start 2P',cursive !important;font-size:0.875rem !important;&::placeholder{color:rgba(255,255,255,0.5) !important;}"]);
|
|
30865
|
+
var IconContainer = /*#__PURE__*/styled.div.withConfig({
|
|
30866
|
+
displayName: "SearchBar__IconContainer",
|
|
30867
|
+
componentId: "sc-13n8z02-2"
|
|
30868
|
+
})(["position:absolute;right:0.75rem;top:50%;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;width:24px;height:24px;pointer-events:none;"]);
|
|
30869
|
+
var SearchIcon = /*#__PURE__*/styled(FaSearch).withConfig({
|
|
30870
|
+
displayName: "SearchBar__SearchIcon",
|
|
30871
|
+
componentId: "sc-13n8z02-3"
|
|
30872
|
+
})(["font-size:1rem;color:#f59e0b;filter:drop-shadow(0 0 2px rgba(245,158,11,0.3));"]);
|
|
30873
|
+
|
|
30874
|
+
var SearchHeader = function SearchHeader(_ref) {
|
|
30875
|
+
var searchOptions = _ref.searchOptions,
|
|
30876
|
+
filterOptions = _ref.filterOptions,
|
|
30877
|
+
className = _ref.className;
|
|
30878
|
+
if (!searchOptions && !filterOptions) return null;
|
|
30879
|
+
return React.createElement(HeaderContainer$1, {
|
|
30880
|
+
className: className
|
|
30881
|
+
}, React.createElement(HeaderContent, null, searchOptions && React.createElement(SearchContainer$2, null, React.createElement(StyledSearchBar, {
|
|
30882
|
+
value: searchOptions.value,
|
|
30883
|
+
onChange: searchOptions.onChange,
|
|
30884
|
+
placeholder: searchOptions.placeholder || 'Search...'
|
|
30885
|
+
})), filterOptions && React.createElement(FilterContainer, null, React.createElement(StyledDropdown, {
|
|
30886
|
+
options: filterOptions.options,
|
|
30887
|
+
onChange: filterOptions.onOptionChange,
|
|
30888
|
+
width: "200px"
|
|
30889
|
+
}))));
|
|
30890
|
+
};
|
|
30891
|
+
var HeaderContainer$1 = /*#__PURE__*/styled.div.withConfig({
|
|
30892
|
+
displayName: "SearchHeader__HeaderContainer",
|
|
30893
|
+
componentId: "sc-1xd17jb-0"
|
|
30894
|
+
})([""]);
|
|
30895
|
+
var HeaderContent = /*#__PURE__*/styled.div.withConfig({
|
|
30896
|
+
displayName: "SearchHeader__HeaderContent",
|
|
30897
|
+
componentId: "sc-1xd17jb-1"
|
|
30898
|
+
})(["display:flex;justify-content:space-between;align-items:center;gap:1rem;background:rgba(0,0,0,0.2);padding:1rem;border-radius:4px;"]);
|
|
30899
|
+
var SearchContainer$2 = /*#__PURE__*/styled.div.withConfig({
|
|
30900
|
+
displayName: "SearchHeader__SearchContainer",
|
|
30901
|
+
componentId: "sc-1xd17jb-2"
|
|
30902
|
+
})(["flex:1;"]);
|
|
30903
|
+
var FilterContainer = /*#__PURE__*/styled.div.withConfig({
|
|
30904
|
+
displayName: "SearchHeader__FilterContainer",
|
|
30905
|
+
componentId: "sc-1xd17jb-3"
|
|
30906
|
+
})(["display:flex;justify-content:flex-end;"]);
|
|
30907
|
+
var StyledSearchBar = /*#__PURE__*/styled(SearchBar).withConfig({
|
|
30908
|
+
displayName: "SearchHeader__StyledSearchBar",
|
|
30909
|
+
componentId: "sc-1xd17jb-4"
|
|
30910
|
+
})(["width:100%;"]);
|
|
30911
|
+
var StyledDropdown = /*#__PURE__*/styled(Dropdown).withConfig({
|
|
30912
|
+
displayName: "SearchHeader__StyledDropdown",
|
|
30913
|
+
componentId: "sc-1xd17jb-5"
|
|
30914
|
+
})(["min-width:150px;"]);
|
|
30915
|
+
|
|
30916
|
+
var PaginatedContent = function PaginatedContent(_ref) {
|
|
30917
|
+
var items = _ref.items,
|
|
30918
|
+
_ref$itemsPerPage = _ref.itemsPerPage,
|
|
30919
|
+
itemsPerPage = _ref$itemsPerPage === void 0 ? 5 : _ref$itemsPerPage,
|
|
30920
|
+
renderItem = _ref.renderItem,
|
|
30921
|
+
_ref$emptyMessage = _ref.emptyMessage,
|
|
30922
|
+
emptyMessage = _ref$emptyMessage === void 0 ? 'No items found' : _ref$emptyMessage,
|
|
30923
|
+
className = _ref.className,
|
|
30924
|
+
filterOptions = _ref.filterOptions,
|
|
30925
|
+
searchOptions = _ref.searchOptions,
|
|
30926
|
+
_ref$dependencies = _ref.dependencies,
|
|
30927
|
+
dependencies = _ref$dependencies === void 0 ? [] : _ref$dependencies,
|
|
30928
|
+
tabId = _ref.tabId,
|
|
30929
|
+
_ref$layout = _ref.layout,
|
|
30930
|
+
layout = _ref$layout === void 0 ? 'list' : _ref$layout,
|
|
30931
|
+
_ref$gridColumns = _ref.gridColumns,
|
|
30932
|
+
gridColumns = _ref$gridColumns === void 0 ? 4 : _ref$gridColumns,
|
|
30933
|
+
_ref$itemHeight = _ref.itemHeight,
|
|
30934
|
+
itemHeight = _ref$itemHeight === void 0 ? '180px' : _ref$itemHeight;
|
|
30935
|
+
var _usePagination = usePagination({
|
|
30936
|
+
items: items,
|
|
30937
|
+
itemsPerPage: itemsPerPage,
|
|
30938
|
+
dependencies: [].concat(dependencies, [tabId])
|
|
30939
|
+
}),
|
|
30940
|
+
currentPage = _usePagination.currentPage,
|
|
30941
|
+
setCurrentPage = _usePagination.setCurrentPage,
|
|
30942
|
+
paginatedItems = _usePagination.paginatedItems,
|
|
30943
|
+
totalPages = _usePagination.totalPages;
|
|
30944
|
+
return React.createElement(Container$n, {
|
|
30945
|
+
className: className
|
|
30946
|
+
}, (searchOptions || filterOptions) && React.createElement(SearchHeader, {
|
|
30947
|
+
searchOptions: searchOptions,
|
|
30948
|
+
filterOptions: filterOptions
|
|
30949
|
+
}), items.length === 0 ? React.createElement(EmptyMessage, null, emptyMessage) : React.createElement(React.Fragment, null, React.createElement(Content, {
|
|
30950
|
+
className: "PaginatedContent-content " + layout,
|
|
30951
|
+
"$gridColumns": gridColumns,
|
|
30952
|
+
"$itemHeight": itemHeight
|
|
30953
|
+
}, paginatedItems.map(function (item, index) {
|
|
30954
|
+
return React.createElement("div", {
|
|
30955
|
+
key: index,
|
|
30956
|
+
className: "PaginatedContent-item"
|
|
30957
|
+
}, renderItem(item));
|
|
30958
|
+
})), React.createElement(PaginationContainer$1, {
|
|
30959
|
+
className: "PaginatedContent-pagination"
|
|
30960
|
+
}, React.createElement(Pagination, {
|
|
30961
|
+
currentPage: currentPage,
|
|
30962
|
+
totalPages: totalPages,
|
|
30963
|
+
onPageChange: setCurrentPage
|
|
30964
|
+
}))));
|
|
30965
|
+
};
|
|
30966
|
+
var Container$n = /*#__PURE__*/styled.div.withConfig({
|
|
30967
|
+
displayName: "PaginatedContent__Container",
|
|
30968
|
+
componentId: "sc-lzp9hn-0"
|
|
30969
|
+
})(["display:flex;flex-direction:column;gap:1rem;min-height:400px;width:100%;"]);
|
|
30970
|
+
var Content = /*#__PURE__*/styled.div.withConfig({
|
|
30971
|
+
displayName: "PaginatedContent__Content",
|
|
30972
|
+
componentId: "sc-lzp9hn-1"
|
|
30973
|
+
})(["display:flex;flex-direction:column;gap:0.5rem;flex:1;padding:1rem;min-height:200px;max-height:", ";overflow-y:", ";&.grid{display:grid;grid-template-columns:repeat( ", ",minmax(0,1fr) );gap:1rem;align-items:start;.PaginatedContent-item{display:flex;align-items:flex-start;height:", ";}}&.list{display:flex;flex-direction:column;gap:0.5rem;}"], function (props) {
|
|
30974
|
+
return props.$maxHeight;
|
|
30975
|
+
}, function (props) {
|
|
30976
|
+
return props.$maxHeight ? 'auto' : 'visible';
|
|
30977
|
+
}, function (props) {
|
|
30978
|
+
return props.$gridColumns;
|
|
30979
|
+
}, function (props) {
|
|
30980
|
+
var _props$$itemHeight;
|
|
30981
|
+
return (_props$$itemHeight = props.$itemHeight) != null ? _props$$itemHeight : 'auto';
|
|
30982
|
+
});
|
|
30983
|
+
var PaginationContainer$1 = /*#__PURE__*/styled.div.withConfig({
|
|
30984
|
+
displayName: "PaginatedContent__PaginationContainer",
|
|
30985
|
+
componentId: "sc-lzp9hn-2"
|
|
30986
|
+
})(["display:flex;justify-content:center;padding:1rem;"]);
|
|
30987
|
+
var EmptyMessage = /*#__PURE__*/styled.div.withConfig({
|
|
30988
|
+
displayName: "PaginatedContent__EmptyMessage",
|
|
30989
|
+
componentId: "sc-lzp9hn-3"
|
|
30990
|
+
})(["text-align:center;color:#9ca3af;padding:2rem;flex:1;display:flex;align-items:center;justify-content:center;"]);
|
|
30991
|
+
|
|
30992
|
+
var Portal = function Portal(_ref) {
|
|
30993
|
+
var children = _ref.children;
|
|
30994
|
+
var _useState = useState(function () {
|
|
30995
|
+
return document.createElement('div');
|
|
30996
|
+
}),
|
|
30997
|
+
container = _useState[0];
|
|
30998
|
+
useEffect(function () {
|
|
30999
|
+
document.body.appendChild(container);
|
|
31000
|
+
return function () {
|
|
31001
|
+
document.body.removeChild(container);
|
|
31002
|
+
};
|
|
31003
|
+
}, [container]);
|
|
31004
|
+
return createPortal(children, container);
|
|
31005
|
+
};
|
|
31006
|
+
|
|
31007
|
+
var InformationCenterCell = function InformationCenterCell(_ref) {
|
|
31008
|
+
var name = _ref.name,
|
|
31009
|
+
spriteKey = _ref.spriteKey,
|
|
31010
|
+
atlasJSON = _ref.atlasJSON,
|
|
31011
|
+
atlasIMG = _ref.atlasIMG,
|
|
31012
|
+
onClick = _ref.onClick,
|
|
31013
|
+
onMouseEnter = _ref.onMouseEnter,
|
|
31014
|
+
onMouseLeave = _ref.onMouseLeave,
|
|
31015
|
+
onMouseMove = _ref.onMouseMove,
|
|
31016
|
+
onTouchStart = _ref.onTouchStart;
|
|
31017
|
+
return React.createElement(CellContainer, {
|
|
31018
|
+
onClick: onClick,
|
|
31019
|
+
onMouseEnter: onMouseEnter,
|
|
31020
|
+
onMouseLeave: onMouseLeave,
|
|
31021
|
+
onMouseMove: onMouseMove,
|
|
31022
|
+
onTouchStart: onTouchStart
|
|
31023
|
+
}, React.createElement(SpriteContainer$1, null, React.createElement(SpriteFromAtlas, {
|
|
31024
|
+
atlasJSON: atlasJSON,
|
|
31025
|
+
atlasIMG: atlasIMG,
|
|
31026
|
+
spriteKey: spriteKey,
|
|
31027
|
+
width: 32,
|
|
31028
|
+
height: 32,
|
|
31029
|
+
imgScale: 1
|
|
31030
|
+
})), React.createElement(CellName, null, name));
|
|
31031
|
+
};
|
|
31032
|
+
var CellContainer = /*#__PURE__*/styled.div.withConfig({
|
|
31033
|
+
displayName: "InformationCenterCell__CellContainer",
|
|
31034
|
+
componentId: "sc-w48fdf-0"
|
|
31035
|
+
})(["position:relative;background:rgba(0,0,0,0.2);padding:0.75rem;border-radius:4px;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;transition:background-color 0.2s ease;width:100%;height:100%;min-width:120px;min-height:120px;box-sizing:border-box;&:hover{background:rgba(0,0,0,0.3);}"]);
|
|
31036
|
+
var SpriteContainer$1 = /*#__PURE__*/styled.div.withConfig({
|
|
31037
|
+
displayName: "InformationCenterCell__SpriteContainer",
|
|
31038
|
+
componentId: "sc-w48fdf-1"
|
|
31039
|
+
})(["margin-bottom:0.5rem;display:flex;justify-content:center;align-items:center;width:64px;height:64px;position:relative;background:rgba(0,0,0,0.3);border-radius:4px;flex-shrink:0;.sprite-from-atlas-img{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%) scale(2);image-rendering:pixelated;}"]);
|
|
31040
|
+
var CellName = /*#__PURE__*/styled.h3.withConfig({
|
|
31041
|
+
displayName: "InformationCenterCell__CellName",
|
|
31042
|
+
componentId: "sc-w48fdf-2"
|
|
31043
|
+
})(["font-size:0.7rem;color:#fef08a;margin:0;text-align:center;font-family:'Press Start 2P',cursive;line-height:1.2;word-break:break-word;max-width:100%;"]);
|
|
31044
|
+
|
|
31045
|
+
var Collapsible = function Collapsible(_ref) {
|
|
31046
|
+
var title = _ref.title,
|
|
31047
|
+
children = _ref.children,
|
|
31048
|
+
_ref$defaultOpen = _ref.defaultOpen,
|
|
31049
|
+
defaultOpen = _ref$defaultOpen === void 0 ? false : _ref$defaultOpen,
|
|
31050
|
+
className = _ref.className;
|
|
31051
|
+
var _useState = useState(defaultOpen),
|
|
31052
|
+
isOpen = _useState[0],
|
|
31053
|
+
setIsOpen = _useState[1];
|
|
31054
|
+
return React.createElement(Container$o, {
|
|
31055
|
+
className: className
|
|
31056
|
+
}, React.createElement(Header$1, {
|
|
31057
|
+
onClick: function onClick() {
|
|
31058
|
+
return setIsOpen(!isOpen);
|
|
31059
|
+
}
|
|
31060
|
+
}, React.createElement(Title$3, null, title), React.createElement(Icon$1, null, isOpen ? React.createElement(FaChevronUp, null) : React.createElement(FaChevronDown, null))), isOpen && React.createElement(Content$1, null, children));
|
|
31061
|
+
};
|
|
31062
|
+
var Container$o = /*#__PURE__*/styled.div.withConfig({
|
|
31063
|
+
displayName: "Collapsible__Container",
|
|
31064
|
+
componentId: "sc-s4h8ey-0"
|
|
31065
|
+
})(["background:rgba(0,0,0,0.3);border-radius:4px;overflow:hidden;border:1px solid ", ";"], uiColors.darkGray);
|
|
31066
|
+
var Header$1 = /*#__PURE__*/styled.div.withConfig({
|
|
31067
|
+
displayName: "Collapsible__Header",
|
|
31068
|
+
componentId: "sc-s4h8ey-1"
|
|
31069
|
+
})(["padding:10px 12px;background:rgba(0,0,0,0.2);display:flex;align-items:center;justify-content:space-between;cursor:pointer;transition:background-color 0.2s ease;&:hover{background:rgba(0,0,0,0.4);}"]);
|
|
31070
|
+
var Title$3 = /*#__PURE__*/styled.h3.withConfig({
|
|
31071
|
+
displayName: "Collapsible__Title",
|
|
31072
|
+
componentId: "sc-s4h8ey-2"
|
|
31073
|
+
})(["margin:0;font-size:0.6rem;color:", ";font-family:'Press Start 2P',cursive;letter-spacing:0.5px;"], uiColors.yellow);
|
|
31074
|
+
var Icon$1 = /*#__PURE__*/styled.span.withConfig({
|
|
31075
|
+
displayName: "Collapsible__Icon",
|
|
31076
|
+
componentId: "sc-s4h8ey-3"
|
|
31077
|
+
})(["color:", ";font-size:0.6rem;display:flex;align-items:center;"], uiColors.yellow);
|
|
31078
|
+
var Content$1 = /*#__PURE__*/styled.div.withConfig({
|
|
31079
|
+
displayName: "Collapsible__Content",
|
|
31080
|
+
componentId: "sc-s4h8ey-4"
|
|
31081
|
+
})(["padding:12px;"]);
|
|
31082
|
+
|
|
31083
|
+
var BaseInformationDetails = function BaseInformationDetails(_ref) {
|
|
31084
|
+
var name = _ref.name,
|
|
31085
|
+
spriteKey = _ref.spriteKey,
|
|
31086
|
+
atlasJSON = _ref.atlasJSON,
|
|
31087
|
+
atlasIMG = _ref.atlasIMG,
|
|
31088
|
+
onBack = _ref.onBack,
|
|
31089
|
+
children = _ref.children;
|
|
31090
|
+
return React.createElement(Container$p, null, React.createElement(Overlay, {
|
|
31091
|
+
onClick: onBack
|
|
31092
|
+
}), React.createElement(Modal, null, React.createElement(CloseButton$5, {
|
|
31093
|
+
onClick: onBack
|
|
31094
|
+
}, React.createElement(FaTimes, null)), React.createElement(Header$2, null, React.createElement(SpriteContainer$2, null, React.createElement(SpriteFromAtlas, {
|
|
31095
|
+
atlasJSON: atlasJSON,
|
|
31096
|
+
atlasIMG: atlasIMG,
|
|
31097
|
+
spriteKey: spriteKey,
|
|
31098
|
+
width: 32,
|
|
31099
|
+
height: 32,
|
|
31100
|
+
imgScale: 1
|
|
31101
|
+
})), React.createElement(Title$4, null, name)), React.createElement(Content$2, null, children)));
|
|
31102
|
+
};
|
|
31103
|
+
var Container$p = /*#__PURE__*/styled.div.withConfig({
|
|
31104
|
+
displayName: "BaseInformationDetails__Container",
|
|
31105
|
+
componentId: "sc-1vguuz8-0"
|
|
31106
|
+
})(["position:fixed;top:0;left:0;right:0;bottom:0;display:flex;justify-content:center;align-items:center;z-index:1000;"]);
|
|
31107
|
+
var Overlay = /*#__PURE__*/styled.div.withConfig({
|
|
31108
|
+
displayName: "BaseInformationDetails__Overlay",
|
|
31109
|
+
componentId: "sc-1vguuz8-1"
|
|
31110
|
+
})(["position:absolute;top:0;left:0;right:0;bottom:0;background-color:rgba(0,0,0,0.8);"]);
|
|
31111
|
+
var Modal = /*#__PURE__*/styled.div.withConfig({
|
|
31112
|
+
displayName: "BaseInformationDetails__Modal",
|
|
31113
|
+
componentId: "sc-1vguuz8-2"
|
|
31114
|
+
})(["position:relative;width:90%;max-width:800px;max-height:90vh;background-color:rgba(0,0,0,0.95);border-radius:4px;padding:16px;overflow-y:auto;z-index:1;font-family:'Press Start 2P',cursive;border:1px solid ", ";box-shadow:0 2px 4px rgba(0,0,0,0.2);&::-webkit-scrollbar{width:2px;}&::-webkit-scrollbar-track{background:transparent;}&::-webkit-scrollbar-thumb{background-color:", ";border-radius:4px;opacity:0.5;&:hover{opacity:1;}}scrollbar-width:thin;scrollbar-color:", " transparent;"], uiColors.darkGray, uiColors.yellow, uiColors.yellow);
|
|
31115
|
+
var CloseButton$5 = /*#__PURE__*/styled.button.withConfig({
|
|
31116
|
+
displayName: "BaseInformationDetails__CloseButton",
|
|
31117
|
+
componentId: "sc-1vguuz8-3"
|
|
31118
|
+
})(["position:absolute;top:20px;right:20px;background:none;border:none;color:", ";font-size:1.2rem;cursor:pointer;padding:0;z-index:1;transition:transform 0.2s ease;&:hover{transform:scale(1.1);}"], uiColors.yellow);
|
|
31119
|
+
var Header$2 = /*#__PURE__*/styled.div.withConfig({
|
|
31120
|
+
displayName: "BaseInformationDetails__Header",
|
|
31121
|
+
componentId: "sc-1vguuz8-4"
|
|
31122
|
+
})(["display:flex;align-items:center;gap:16px;margin-bottom:24px;"]);
|
|
31123
|
+
var Content$2 = /*#__PURE__*/styled.div.withConfig({
|
|
31124
|
+
displayName: "BaseInformationDetails__Content",
|
|
31125
|
+
componentId: "sc-1vguuz8-5"
|
|
31126
|
+
})(["display:flex;flex-direction:column;gap:16px;"]);
|
|
31127
|
+
var Title$4 = /*#__PURE__*/styled.h2.withConfig({
|
|
31128
|
+
displayName: "BaseInformationDetails__Title",
|
|
31129
|
+
componentId: "sc-1vguuz8-6"
|
|
31130
|
+
})(["color:", ";font-size:1rem;margin:0;"], uiColors.yellow);
|
|
31131
|
+
var SpriteContainer$2 = /*#__PURE__*/styled.div.withConfig({
|
|
31132
|
+
displayName: "BaseInformationDetails__SpriteContainer",
|
|
31133
|
+
componentId: "sc-1vguuz8-7"
|
|
31134
|
+
})(["width:64px;height:64px;background:rgba(0,0,0,0.3);border-radius:4px;display:flex;justify-content:center;align-items:center;position:relative;.sprite-from-atlas-img{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%) scale(2);transform-origin:center;}"]);
|
|
31135
|
+
|
|
31136
|
+
var ITEMS_PER_PAGE$1 = 5;
|
|
31137
|
+
var InformationCenterNPCDetails = function InformationCenterNPCDetails(_ref) {
|
|
31138
|
+
var _npc$loots, _npc$skills$strength, _npc$skills$dexterity, _npc$skills$resistanc;
|
|
31139
|
+
var npc = _ref.npc,
|
|
31140
|
+
itemsAtlasJSON = _ref.itemsAtlasJSON,
|
|
31141
|
+
itemsAtlasIMG = _ref.itemsAtlasIMG,
|
|
31142
|
+
entitiesAtlasJSON = _ref.entitiesAtlasJSON,
|
|
31143
|
+
entitiesAtlasIMG = _ref.entitiesAtlasIMG,
|
|
31144
|
+
onBack = _ref.onBack;
|
|
31145
|
+
var isMobile = isMobileOrTablet();
|
|
31146
|
+
var _useState = useState(''),
|
|
31147
|
+
lootSearchQuery = _useState[0],
|
|
31148
|
+
setLootSearchQuery = _useState[1];
|
|
31149
|
+
var _useState2 = useState(1),
|
|
31150
|
+
currentLootPage = _useState2[0],
|
|
31151
|
+
setCurrentLootPage = _useState2[1];
|
|
31152
|
+
var formatText = function formatText(text) {
|
|
31153
|
+
if (typeof text === 'number') {
|
|
31154
|
+
return text.toString();
|
|
31155
|
+
}
|
|
31156
|
+
return text.toString().replace(/([A-Z])/g, ' $1').trim().replace(/([A-Z]+)([A-Z][a-z])/g, '$1 $2').replace(/\s+/g, ' ');
|
|
31157
|
+
};
|
|
31158
|
+
var formatRarity = function formatRarity(rarity) {
|
|
31159
|
+
switch (rarity) {
|
|
31160
|
+
case 0.5:
|
|
31161
|
+
return 'Very Rare';
|
|
31162
|
+
case 1:
|
|
31163
|
+
return 'Rare';
|
|
31164
|
+
case 10:
|
|
31165
|
+
return 'Uncommon';
|
|
31166
|
+
case 15:
|
|
31167
|
+
return 'Semi Common';
|
|
31168
|
+
case 20:
|
|
31169
|
+
return 'Common';
|
|
31170
|
+
case 35:
|
|
31171
|
+
return 'Very Common';
|
|
31172
|
+
default:
|
|
31173
|
+
return 'Unknown';
|
|
31174
|
+
}
|
|
31175
|
+
};
|
|
31176
|
+
var filteredLoots = ((_npc$loots = npc.loots) == null ? void 0 : _npc$loots.filter(function (loot) {
|
|
31177
|
+
return formatText(loot.itemBlueprintKey).toLowerCase().includes(lootSearchQuery.toLowerCase());
|
|
31178
|
+
})) || [];
|
|
31179
|
+
var totalLootPages = Math.ceil(filteredLoots.length / ITEMS_PER_PAGE$1);
|
|
31180
|
+
var paginatedLoots = filteredLoots.slice((currentLootPage - 1) * ITEMS_PER_PAGE$1, currentLootPage * ITEMS_PER_PAGE$1);
|
|
31181
|
+
return React.createElement(BaseInformationDetails, {
|
|
31182
|
+
name: npc.name,
|
|
31183
|
+
spriteKey: npc.key,
|
|
31184
|
+
atlasJSON: entitiesAtlasJSON,
|
|
31185
|
+
atlasIMG: entitiesAtlasIMG,
|
|
31186
|
+
onBack: onBack
|
|
31187
|
+
}, React.createElement(InfoSection, null, React.createElement(InfoItem, null, React.createElement(Label, null, "Type:"), React.createElement(Value, null, formatText(npc.subType))), React.createElement(InfoItem, null, React.createElement(Label, null, "Alignment:"), React.createElement(Value, null, formatText(npc.alignment))), React.createElement(InfoItem, null, React.createElement(Label, null, "Attack Type:"), React.createElement(Value, null, formatText(npc.attackType))), React.createElement(InfoItem, null, React.createElement(Label, null, "Range:"), React.createElement(Value, null, formatText(npc.maxRangeAttack))), React.createElement(InfoItem, null, React.createElement(Label, null, "Speed:"), React.createElement(Value, null, formatText(npc.speed)))), React.createElement(StyledCollapsible, {
|
|
31188
|
+
title: "Stats",
|
|
31189
|
+
defaultOpen: !isMobile
|
|
31190
|
+
}, React.createElement(StatGrid, null, React.createElement(StatItem, null, "HP: ", npc.baseHealth), React.createElement(StatItem, null, "Level: ", npc.skills.level), ((_npc$skills$strength = npc.skills.strength) == null ? void 0 : _npc$skills$strength.level) && React.createElement(StatItem, null, "Strength: ", npc.skills.strength.level), ((_npc$skills$dexterity = npc.skills.dexterity) == null ? void 0 : _npc$skills$dexterity.level) && React.createElement(StatItem, null, "Dexterity: ", npc.skills.dexterity.level), ((_npc$skills$resistanc = npc.skills.resistance) == null ? void 0 : _npc$skills$resistanc.level) && React.createElement(StatItem, null, "Resistance: ", npc.skills.resistance.level))), npc.loots && npc.loots.length > 0 && React.createElement(StyledCollapsible, {
|
|
31191
|
+
title: "Loot",
|
|
31192
|
+
defaultOpen: !isMobile
|
|
31193
|
+
}, React.createElement(LootSearchContainer, null, React.createElement(StyledSearchBar$1, {
|
|
31194
|
+
value: lootSearchQuery,
|
|
31195
|
+
onChange: setLootSearchQuery,
|
|
31196
|
+
placeholder: "Search loot..."
|
|
31197
|
+
})), React.createElement(LootGrid, null, paginatedLoots.map(function (loot, index) {
|
|
31198
|
+
return React.createElement(LootItem, {
|
|
31199
|
+
key: index
|
|
31200
|
+
}, React.createElement(SpriteFromAtlas, {
|
|
31201
|
+
atlasJSON: itemsAtlasJSON,
|
|
31202
|
+
atlasIMG: itemsAtlasIMG,
|
|
31203
|
+
spriteKey: loot.itemBlueprintKey,
|
|
31204
|
+
width: 24,
|
|
31205
|
+
height: 24,
|
|
31206
|
+
imgScale: 1
|
|
31207
|
+
}), React.createElement(LootDetails, null, React.createElement(LootName, null, formatText(loot.itemBlueprintKey)), React.createElement(LootInfo, null, React.createElement(LootChance, null, formatRarity(loot.chance)), loot.quantityRange && React.createElement(LootQuantity, null, "x", loot.quantityRange[0], "-", loot.quantityRange[1]))));
|
|
31208
|
+
})), filteredLoots.length > ITEMS_PER_PAGE$1 && React.createElement(PaginationContainer$2, null, React.createElement(StyledPagination, {
|
|
31209
|
+
currentPage: currentLootPage,
|
|
31210
|
+
totalPages: totalLootPages,
|
|
31211
|
+
onPageChange: setCurrentLootPage
|
|
31212
|
+
}))), npc.entityEffects && npc.entityEffects.length > 0 && React.createElement(StyledCollapsible, {
|
|
31213
|
+
title: "Effects",
|
|
31214
|
+
defaultOpen: !isMobile
|
|
31215
|
+
}, React.createElement(EffectsList, null, npc.entityEffects.map(function (effect, index) {
|
|
31216
|
+
return React.createElement(EffectItem, {
|
|
31217
|
+
key: index
|
|
31218
|
+
}, formatText(effect));
|
|
31219
|
+
}))), npc.areaSpells && npc.areaSpells.length > 0 && React.createElement(StyledCollapsible, {
|
|
31220
|
+
title: "Spells",
|
|
31221
|
+
defaultOpen: !isMobile
|
|
31222
|
+
}, React.createElement(SpellsList, null, npc.areaSpells.map(function (spell, index) {
|
|
31223
|
+
return React.createElement(SpellItem, {
|
|
31224
|
+
key: index
|
|
31225
|
+
}, React.createElement(SpellName, null, formatText(spell.spellKey)), React.createElement(SpellDetails, null, "Power: ", React.createElement(SpellValue, null, formatText(spell.power)), React.createElement(Separator, null, "\u2022"), "Chance: ", React.createElement(SpellValue, null, spell.probability, "%")));
|
|
31226
|
+
}))));
|
|
31227
|
+
};
|
|
31228
|
+
var InfoSection = /*#__PURE__*/styled.div.withConfig({
|
|
31229
|
+
displayName: "InformationCenterNPCDetails__InfoSection",
|
|
31230
|
+
componentId: "sc-fdu3xl-0"
|
|
31231
|
+
})(["display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:8px;background:rgba(255,255,255,0.05);padding:12px;border-radius:4px;"]);
|
|
31232
|
+
var InfoItem = /*#__PURE__*/styled.div.withConfig({
|
|
31233
|
+
displayName: "InformationCenterNPCDetails__InfoItem",
|
|
31234
|
+
componentId: "sc-fdu3xl-1"
|
|
31235
|
+
})(["display:flex;align-items:center;gap:8px;"]);
|
|
31236
|
+
var Label = /*#__PURE__*/styled.span.withConfig({
|
|
31237
|
+
displayName: "InformationCenterNPCDetails__Label",
|
|
31238
|
+
componentId: "sc-fdu3xl-2"
|
|
31239
|
+
})(["color:", ";font-size:0.5rem;opacity:0.8;"], uiColors.yellow);
|
|
31240
|
+
var Value = /*#__PURE__*/styled.span.withConfig({
|
|
31241
|
+
displayName: "InformationCenterNPCDetails__Value",
|
|
31242
|
+
componentId: "sc-fdu3xl-3"
|
|
31243
|
+
})(["color:", ";font-size:0.5rem;"], uiColors.white);
|
|
31244
|
+
var StyledCollapsible = /*#__PURE__*/styled(Collapsible).withConfig({
|
|
31245
|
+
displayName: "InformationCenterNPCDetails__StyledCollapsible",
|
|
31246
|
+
componentId: "sc-fdu3xl-4"
|
|
31247
|
+
})(["background:rgba(255,255,255,0.05);border-radius:4px;overflow:hidden;"]);
|
|
31248
|
+
var StatGrid = /*#__PURE__*/styled.div.withConfig({
|
|
31249
|
+
displayName: "InformationCenterNPCDetails__StatGrid",
|
|
31250
|
+
componentId: "sc-fdu3xl-5"
|
|
31251
|
+
})(["display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px;padding:12px;"]);
|
|
31252
|
+
var StatItem = /*#__PURE__*/styled.div.withConfig({
|
|
31253
|
+
displayName: "InformationCenterNPCDetails__StatItem",
|
|
31254
|
+
componentId: "sc-fdu3xl-6"
|
|
31255
|
+
})(["color:", ";font-size:0.5rem;background:rgba(255,255,255,0.05);padding:8px;border-radius:4px;"], uiColors.white);
|
|
31256
|
+
var EffectsList = /*#__PURE__*/styled.div.withConfig({
|
|
31257
|
+
displayName: "InformationCenterNPCDetails__EffectsList",
|
|
31258
|
+
componentId: "sc-fdu3xl-7"
|
|
31259
|
+
})(["display:flex;flex-wrap:wrap;gap:8px;padding:12px;"]);
|
|
31260
|
+
var EffectItem = /*#__PURE__*/styled.div.withConfig({
|
|
31261
|
+
displayName: "InformationCenterNPCDetails__EffectItem",
|
|
31262
|
+
componentId: "sc-fdu3xl-8"
|
|
31263
|
+
})(["color:", ";font-size:0.5rem;background:rgba(255,255,255,0.1);padding:4px 8px;border-radius:4px;"], uiColors.white);
|
|
31264
|
+
var SpellsList = /*#__PURE__*/styled.div.withConfig({
|
|
31265
|
+
displayName: "InformationCenterNPCDetails__SpellsList",
|
|
31266
|
+
componentId: "sc-fdu3xl-9"
|
|
31267
|
+
})(["display:flex;flex-direction:column;gap:8px;padding:12px;"]);
|
|
31268
|
+
var SpellItem = /*#__PURE__*/styled.div.withConfig({
|
|
31269
|
+
displayName: "InformationCenterNPCDetails__SpellItem",
|
|
31270
|
+
componentId: "sc-fdu3xl-10"
|
|
31271
|
+
})(["display:flex;flex-direction:column;gap:4px;background:rgba(255,255,255,0.05);padding:8px;border-radius:4px;"]);
|
|
31272
|
+
var SpellName = /*#__PURE__*/styled.div.withConfig({
|
|
31273
|
+
displayName: "InformationCenterNPCDetails__SpellName",
|
|
31274
|
+
componentId: "sc-fdu3xl-11"
|
|
31275
|
+
})(["color:", ";font-size:0.5rem;"], uiColors.yellow);
|
|
31276
|
+
var SpellDetails = /*#__PURE__*/styled.div.withConfig({
|
|
31277
|
+
displayName: "InformationCenterNPCDetails__SpellDetails",
|
|
31278
|
+
componentId: "sc-fdu3xl-12"
|
|
31279
|
+
})(["display:flex;align-items:center;gap:8px;color:", ";font-size:0.45rem;opacity:0.8;"], uiColors.white);
|
|
31280
|
+
var SpellValue = /*#__PURE__*/styled.span.withConfig({
|
|
31281
|
+
displayName: "InformationCenterNPCDetails__SpellValue",
|
|
31282
|
+
componentId: "sc-fdu3xl-13"
|
|
31283
|
+
})(["color:", ";"], uiColors.yellow);
|
|
31284
|
+
var Separator = /*#__PURE__*/styled.span.withConfig({
|
|
31285
|
+
displayName: "InformationCenterNPCDetails__Separator",
|
|
31286
|
+
componentId: "sc-fdu3xl-14"
|
|
31287
|
+
})(["color:", ";opacity:0.5;"], uiColors.yellow);
|
|
31288
|
+
var LootSearchContainer = /*#__PURE__*/styled.div.withConfig({
|
|
31289
|
+
displayName: "InformationCenterNPCDetails__LootSearchContainer",
|
|
31290
|
+
componentId: "sc-fdu3xl-15"
|
|
31291
|
+
})(["padding:12px 12px 0;"]);
|
|
31292
|
+
var StyledSearchBar$1 = /*#__PURE__*/styled(SearchBar).withConfig({
|
|
31293
|
+
displayName: "InformationCenterNPCDetails__StyledSearchBar",
|
|
31294
|
+
componentId: "sc-fdu3xl-16"
|
|
31295
|
+
})(["width:100%;"]);
|
|
31296
|
+
var LootGrid = /*#__PURE__*/styled.div.withConfig({
|
|
31297
|
+
displayName: "InformationCenterNPCDetails__LootGrid",
|
|
31298
|
+
componentId: "sc-fdu3xl-17"
|
|
31299
|
+
})(["display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:8px;padding:12px;"]);
|
|
31300
|
+
var LootItem = /*#__PURE__*/styled.div.withConfig({
|
|
31301
|
+
displayName: "InformationCenterNPCDetails__LootItem",
|
|
31302
|
+
componentId: "sc-fdu3xl-18"
|
|
31303
|
+
})(["display:flex;align-items:center;gap:8px;background:rgba(255,255,255,0.05);padding:8px;border-radius:4px;"]);
|
|
31304
|
+
var LootDetails = /*#__PURE__*/styled.div.withConfig({
|
|
31305
|
+
displayName: "InformationCenterNPCDetails__LootDetails",
|
|
31306
|
+
componentId: "sc-fdu3xl-19"
|
|
31307
|
+
})(["flex:1;display:flex;flex-direction:column;gap:4px;"]);
|
|
31308
|
+
var LootName = /*#__PURE__*/styled.div.withConfig({
|
|
31309
|
+
displayName: "InformationCenterNPCDetails__LootName",
|
|
31310
|
+
componentId: "sc-fdu3xl-20"
|
|
31311
|
+
})(["color:", ";font-size:0.5rem;"], uiColors.white);
|
|
31312
|
+
var LootInfo = /*#__PURE__*/styled.div.withConfig({
|
|
31313
|
+
displayName: "InformationCenterNPCDetails__LootInfo",
|
|
31314
|
+
componentId: "sc-fdu3xl-21"
|
|
31315
|
+
})(["display:flex;align-items:center;gap:8px;"]);
|
|
31316
|
+
var LootChance = /*#__PURE__*/styled.span.withConfig({
|
|
31317
|
+
displayName: "InformationCenterNPCDetails__LootChance",
|
|
31318
|
+
componentId: "sc-fdu3xl-22"
|
|
31319
|
+
})(["color:", ";font-size:0.45rem;"], uiColors.yellow);
|
|
31320
|
+
var LootQuantity = /*#__PURE__*/styled.span.withConfig({
|
|
31321
|
+
displayName: "InformationCenterNPCDetails__LootQuantity",
|
|
31322
|
+
componentId: "sc-fdu3xl-23"
|
|
31323
|
+
})(["color:", ";font-size:0.45rem;"], uiColors.lightGray);
|
|
31324
|
+
var PaginationContainer$2 = /*#__PURE__*/styled.div.withConfig({
|
|
31325
|
+
displayName: "InformationCenterNPCDetails__PaginationContainer",
|
|
31326
|
+
componentId: "sc-fdu3xl-24"
|
|
31327
|
+
})(["display:flex;justify-content:center;padding:12px;"]);
|
|
31328
|
+
var StyledPagination = /*#__PURE__*/styled(Pagination).withConfig({
|
|
31329
|
+
displayName: "InformationCenterNPCDetails__StyledPagination",
|
|
31330
|
+
componentId: "sc-fdu3xl-25"
|
|
31331
|
+
})(["font-size:0.6rem;"]);
|
|
31332
|
+
|
|
31333
|
+
var TooltipContainer$1 = /*#__PURE__*/styled.div.withConfig({
|
|
31334
|
+
displayName: "BaseTooltip__TooltipContainer",
|
|
31335
|
+
componentId: "sc-1auz5ec-0"
|
|
31336
|
+
})(["background-color:rgba(0,0,0,0.95);border-radius:4px;padding:8px;font-family:'Press Start 2P',cursive;font-size:0.6rem;width:", ";border:1px solid ", ";box-shadow:0 2px 4px rgba(0,0,0,0.2);"], function (props) {
|
|
31337
|
+
return props.width || '280px';
|
|
31338
|
+
}, uiColors.darkGray);
|
|
31339
|
+
var TooltipTitle$1 = /*#__PURE__*/styled.div.withConfig({
|
|
31340
|
+
displayName: "BaseTooltip__TooltipTitle",
|
|
31341
|
+
componentId: "sc-1auz5ec-1"
|
|
31342
|
+
})(["color:", ";font-size:0.6rem;letter-spacing:0.5px;margin-bottom:8px;"], uiColors.yellow);
|
|
31343
|
+
var Section = /*#__PURE__*/styled.div.withConfig({
|
|
31344
|
+
displayName: "BaseTooltip__Section",
|
|
31345
|
+
componentId: "sc-1auz5ec-2"
|
|
31346
|
+
})(["margin-top:6px;"]);
|
|
31347
|
+
var SectionTitle = /*#__PURE__*/styled.div.withConfig({
|
|
31348
|
+
displayName: "BaseTooltip__SectionTitle",
|
|
31349
|
+
componentId: "sc-1auz5ec-3"
|
|
31350
|
+
})(["color:", ";font-size:0.5rem;margin-bottom:4px;opacity:0.7;border-bottom:1px solid rgba(255,255,255,0.1);padding-bottom:4px;"], uiColors.yellow);
|
|
31351
|
+
var StatsContainer = /*#__PURE__*/styled.div.withConfig({
|
|
31352
|
+
displayName: "BaseTooltip__StatsContainer",
|
|
31353
|
+
componentId: "sc-1auz5ec-4"
|
|
31354
|
+
})(["display:grid;grid-template-columns:repeat(2,1fr);gap:2px 8px;"]);
|
|
31355
|
+
var StatItem$1 = /*#__PURE__*/styled.div.withConfig({
|
|
31356
|
+
displayName: "BaseTooltip__StatItem",
|
|
31357
|
+
componentId: "sc-1auz5ec-5"
|
|
31358
|
+
})(["color:", ";font-size:0.5rem;text-align:left;"], uiColors.white);
|
|
31359
|
+
var BaseTooltip = function BaseTooltip(_ref) {
|
|
31360
|
+
var children = _ref.children,
|
|
31361
|
+
width = _ref.width;
|
|
31362
|
+
return React.createElement(TooltipContainer$1, {
|
|
31363
|
+
width: width
|
|
31364
|
+
}, children);
|
|
31365
|
+
};
|
|
31366
|
+
|
|
31367
|
+
var EffectsList$1 = /*#__PURE__*/styled.div.withConfig({
|
|
31368
|
+
displayName: "InformationCenterNPCTooltip__EffectsList",
|
|
31369
|
+
componentId: "sc-j2o39s-0"
|
|
31370
|
+
})(["display:flex;gap:8px;flex-wrap:wrap;"]);
|
|
31371
|
+
var EffectItem$1 = /*#__PURE__*/styled.span.withConfig({
|
|
31372
|
+
displayName: "InformationCenterNPCTooltip__EffectItem",
|
|
31373
|
+
componentId: "sc-j2o39s-1"
|
|
31374
|
+
})(["font-size:0.5rem;color:", ";background:rgba(255,255,255,0.1);padding:2px 6px;border-radius:4px;"], uiColors.white);
|
|
31375
|
+
var SpellList = /*#__PURE__*/styled.div.withConfig({
|
|
31376
|
+
displayName: "InformationCenterNPCTooltip__SpellList",
|
|
31377
|
+
componentId: "sc-j2o39s-2"
|
|
31378
|
+
})(["display:flex;flex-direction:column;gap:2px;"]);
|
|
31379
|
+
var SpellItem$1 = /*#__PURE__*/styled.div.withConfig({
|
|
31380
|
+
displayName: "InformationCenterNPCTooltip__SpellItem",
|
|
31381
|
+
componentId: "sc-j2o39s-3"
|
|
31382
|
+
})(["display:flex;align-items:center;justify-content:space-between;font-size:0.5rem;color:", ";background:rgba(255,255,255,0.05);padding:2px 6px;border-radius:4px;"], uiColors.white);
|
|
31383
|
+
var SpellInfo = /*#__PURE__*/styled.span.withConfig({
|
|
31384
|
+
displayName: "InformationCenterNPCTooltip__SpellInfo",
|
|
31385
|
+
componentId: "sc-j2o39s-4"
|
|
31386
|
+
})(["color:", ";margin-left:8px;opacity:0.8;"], uiColors.yellow);
|
|
31387
|
+
var LootList = /*#__PURE__*/styled.div.withConfig({
|
|
31388
|
+
displayName: "InformationCenterNPCTooltip__LootList",
|
|
31389
|
+
componentId: "sc-j2o39s-5"
|
|
31390
|
+
})(["display:flex;flex-direction:column;gap:2px;"]);
|
|
31391
|
+
var LootItem$1 = /*#__PURE__*/styled.div.withConfig({
|
|
31392
|
+
displayName: "InformationCenterNPCTooltip__LootItem",
|
|
31393
|
+
componentId: "sc-j2o39s-6"
|
|
31394
|
+
})(["display:flex;align-items:center;gap:4px;font-size:0.5rem;background:rgba(255,255,255,0.05);padding:4px 6px;border-radius:4px;.sprite-from-atlas-img{top:0px;left:0px;}"]);
|
|
31395
|
+
var LootName$1 = /*#__PURE__*/styled.span.withConfig({
|
|
31396
|
+
displayName: "InformationCenterNPCTooltip__LootName",
|
|
31397
|
+
componentId: "sc-j2o39s-7"
|
|
31398
|
+
})(["color:", ";flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-left:4px;"], uiColors.white);
|
|
31399
|
+
var LootChance$1 = /*#__PURE__*/styled.span.withConfig({
|
|
31400
|
+
displayName: "InformationCenterNPCTooltip__LootChance",
|
|
31401
|
+
componentId: "sc-j2o39s-8"
|
|
31402
|
+
})(["color:", ";font-size:0.45rem;text-transform:lowercase;opacity:0.8;"], uiColors.yellow);
|
|
31403
|
+
var MoreIndicator = /*#__PURE__*/styled.div.withConfig({
|
|
31404
|
+
displayName: "InformationCenterNPCTooltip__MoreIndicator",
|
|
31405
|
+
componentId: "sc-j2o39s-9"
|
|
31406
|
+
})(["color:", ";font-size:0.45rem;text-align:center;margin-top:2px;opacity:0.7;"], uiColors.yellow);
|
|
31407
|
+
var formatText = function formatText(text) {
|
|
31408
|
+
if (typeof text === 'number') {
|
|
31409
|
+
return text.toString();
|
|
31410
|
+
}
|
|
31411
|
+
return text.toString().replace(/([A-Z])/g, ' $1').trim().replace(/([A-Z]+)([A-Z][a-z])/g, '$1 $2').replace(/\s+/g, ' ');
|
|
31412
|
+
};
|
|
31413
|
+
var formatRarity = function formatRarity(rarity) {
|
|
31414
|
+
switch (rarity) {
|
|
31415
|
+
case 0.5:
|
|
31416
|
+
return 'Very Rare';
|
|
31417
|
+
case 1:
|
|
31418
|
+
return 'Rare';
|
|
31419
|
+
case 10:
|
|
31420
|
+
return 'Uncommon';
|
|
31421
|
+
case 15:
|
|
31422
|
+
return 'Semi Common';
|
|
31423
|
+
case 20:
|
|
31424
|
+
return 'Common';
|
|
31425
|
+
case 35:
|
|
31426
|
+
return 'Very Common';
|
|
31427
|
+
default:
|
|
31428
|
+
return 'Unknown';
|
|
31429
|
+
}
|
|
31430
|
+
};
|
|
31431
|
+
var InformationCenterNPCTooltip = function InformationCenterNPCTooltip(_ref) {
|
|
31432
|
+
var _npc$skills$strength, _npc$skills$dexterity, _npc$skills$resistanc;
|
|
31433
|
+
var npc = _ref.npc,
|
|
31434
|
+
itemsAtlasJSON = _ref.itemsAtlasJSON,
|
|
31435
|
+
itemsAtlasIMG = _ref.itemsAtlasIMG;
|
|
31436
|
+
return React.createElement(BaseTooltip, null, React.createElement(TooltipTitle$1, null, npc.name), React.createElement(StatsContainer, null, React.createElement(StatItem$1, null, "HP: ", npc.baseHealth), React.createElement(StatItem$1, null, "LVL: ", npc.skills.level), React.createElement(StatItem$1, null, "STR: ", ((_npc$skills$strength = npc.skills.strength) == null ? void 0 : _npc$skills$strength.level) || '-'), React.createElement(StatItem$1, null, "DEX: ", ((_npc$skills$dexterity = npc.skills.dexterity) == null ? void 0 : _npc$skills$dexterity.level) || '-'), React.createElement(StatItem$1, null, "RES: ", ((_npc$skills$resistanc = npc.skills.resistance) == null ? void 0 : _npc$skills$resistanc.level) || '-'), React.createElement(StatItem$1, null, "SPD: ", formatText(npc.speed))), npc.entityEffects && npc.entityEffects.length > 0 && React.createElement(Section, null, React.createElement(SectionTitle, null, "Effects"), React.createElement(EffectsList$1, null, npc.entityEffects.map(function (effect) {
|
|
31437
|
+
return React.createElement(EffectItem$1, {
|
|
31438
|
+
key: effect
|
|
31439
|
+
}, formatText(effect));
|
|
31440
|
+
}))), npc.areaSpells && npc.areaSpells.length > 0 && React.createElement(Section, null, React.createElement(SectionTitle, null, "Spells"), React.createElement(SpellList, null, npc.areaSpells.map(function (spell) {
|
|
31441
|
+
return React.createElement(SpellItem$1, {
|
|
31442
|
+
key: spell.spellKey
|
|
31443
|
+
}, formatText(spell.spellKey), React.createElement(SpellInfo, null, formatText(spell.power), ", ", spell.probability, "%"));
|
|
31444
|
+
}))), npc.loots && npc.loots.length > 0 && React.createElement(Section, null, React.createElement(SectionTitle, null, "Possible Loot"), React.createElement(LootList, null, npc.loots.slice(0, 4).map(function (loot) {
|
|
31445
|
+
return React.createElement(LootItem$1, {
|
|
31446
|
+
key: loot.itemBlueprintKey
|
|
31447
|
+
}, React.createElement(SpriteFromAtlas, {
|
|
31448
|
+
atlasIMG: itemsAtlasIMG,
|
|
31449
|
+
atlasJSON: itemsAtlasJSON,
|
|
31450
|
+
spriteKey: loot.itemBlueprintKey,
|
|
31451
|
+
imgScale: 1
|
|
31452
|
+
}), React.createElement(LootName$1, null, formatText(loot.itemBlueprintKey)), React.createElement(LootChance$1, null, formatRarity(loot.chance)));
|
|
31453
|
+
}), npc.loots.length > 4 && React.createElement(MoreIndicator, null, "..."))));
|
|
31454
|
+
};
|
|
31455
|
+
|
|
31456
|
+
var InformationCenterBestiarySection = function InformationCenterBestiarySection(_ref) {
|
|
31457
|
+
var bestiaryItems = _ref.bestiaryItems,
|
|
31458
|
+
itemsAtlasJSON = _ref.itemsAtlasJSON,
|
|
31459
|
+
itemsAtlasIMG = _ref.itemsAtlasIMG,
|
|
31460
|
+
entitiesAtlasJSON = _ref.entitiesAtlasJSON,
|
|
31461
|
+
entitiesAtlasIMG = _ref.entitiesAtlasIMG,
|
|
31462
|
+
initialSearchQuery = _ref.initialSearchQuery,
|
|
31463
|
+
tabId = _ref.tabId;
|
|
31464
|
+
var _useState = useState(initialSearchQuery),
|
|
31465
|
+
searchQuery = _useState[0],
|
|
31466
|
+
setSearchQuery = _useState[1];
|
|
31467
|
+
var _useState2 = useState(null),
|
|
31468
|
+
tooltipData = _useState2[0],
|
|
31469
|
+
setTooltipData = _useState2[1];
|
|
31470
|
+
var _useState3 = useState(null),
|
|
31471
|
+
selectedMonster = _useState3[0],
|
|
31472
|
+
setSelectedMonster = _useState3[1];
|
|
31473
|
+
var _useState4 = useState('ontouchstart' in window),
|
|
31474
|
+
isTouchDevice = _useState4[0];
|
|
31475
|
+
var handleMouseEnter = function handleMouseEnter(monster, event) {
|
|
31476
|
+
if (!isTouchDevice && !selectedMonster) {
|
|
31477
|
+
setTooltipData({
|
|
31478
|
+
npc: monster,
|
|
31479
|
+
position: {
|
|
31480
|
+
x: event.clientX,
|
|
31481
|
+
y: event.clientY
|
|
31482
|
+
}
|
|
31483
|
+
});
|
|
31484
|
+
}
|
|
31485
|
+
};
|
|
31486
|
+
var handleMouseLeave = function handleMouseLeave() {
|
|
31487
|
+
if (!isTouchDevice) {
|
|
31488
|
+
setTooltipData(null);
|
|
31489
|
+
}
|
|
31490
|
+
};
|
|
31491
|
+
var handleMouseMove = function handleMouseMove(event) {
|
|
31492
|
+
if (!isTouchDevice && tooltipData) {
|
|
31493
|
+
setTooltipData(_extends({}, tooltipData, {
|
|
31494
|
+
position: {
|
|
31495
|
+
x: event.clientX,
|
|
31496
|
+
y: event.clientY
|
|
31497
|
+
}
|
|
31498
|
+
}));
|
|
31499
|
+
}
|
|
31500
|
+
};
|
|
31501
|
+
var handleTouchStart = function handleTouchStart(monster, event) {
|
|
31502
|
+
if (isTouchDevice) {
|
|
31503
|
+
event.preventDefault();
|
|
31504
|
+
var touch = event.touches[0];
|
|
31505
|
+
if ((tooltipData == null ? void 0 : tooltipData.npc.id) === monster.id) {
|
|
31506
|
+
setTooltipData(null);
|
|
31507
|
+
} else {
|
|
31508
|
+
setTooltipData({
|
|
31509
|
+
npc: monster,
|
|
31510
|
+
position: {
|
|
31511
|
+
x: touch.clientX,
|
|
31512
|
+
y: touch.clientY
|
|
31513
|
+
}
|
|
31514
|
+
});
|
|
31515
|
+
}
|
|
31516
|
+
}
|
|
31517
|
+
};
|
|
31518
|
+
var handleMonsterClick = function handleMonsterClick(monster) {
|
|
31519
|
+
setSelectedMonster(monster);
|
|
31520
|
+
setTooltipData(null);
|
|
31521
|
+
};
|
|
31522
|
+
var renderItem = function renderItem(item) {
|
|
31523
|
+
return React.createElement(InformationCenterCell, {
|
|
31524
|
+
key: item.id,
|
|
31525
|
+
name: item.name,
|
|
31526
|
+
spriteKey: item.key,
|
|
31527
|
+
atlasJSON: entitiesAtlasJSON,
|
|
31528
|
+
atlasIMG: entitiesAtlasIMG,
|
|
31529
|
+
onClick: function onClick() {
|
|
31530
|
+
return handleMonsterClick(item);
|
|
31531
|
+
},
|
|
31532
|
+
onMouseEnter: function onMouseEnter(e) {
|
|
31533
|
+
return handleMouseEnter(item, e);
|
|
31534
|
+
},
|
|
31535
|
+
onMouseLeave: handleMouseLeave,
|
|
31536
|
+
onMouseMove: handleMouseMove,
|
|
31537
|
+
onTouchStart: function onTouchStart(e) {
|
|
31538
|
+
return handleTouchStart(item, e);
|
|
31539
|
+
}
|
|
31540
|
+
});
|
|
31541
|
+
};
|
|
31542
|
+
var filteredItems = bestiaryItems.filter(function (item) {
|
|
31543
|
+
return item.name.toLowerCase().includes(searchQuery.toLowerCase());
|
|
31544
|
+
});
|
|
31545
|
+
return React.createElement(React.Fragment, null, React.createElement(PaginatedContent, {
|
|
31546
|
+
items: filteredItems,
|
|
31547
|
+
renderItem: renderItem,
|
|
31548
|
+
emptyMessage: "No monsters found",
|
|
31549
|
+
tabId: tabId,
|
|
31550
|
+
layout: "grid",
|
|
31551
|
+
searchOptions: {
|
|
31552
|
+
value: searchQuery,
|
|
31553
|
+
onChange: setSearchQuery,
|
|
31554
|
+
placeholder: 'Search monsters...'
|
|
31555
|
+
},
|
|
31556
|
+
itemHeight: "180px"
|
|
31557
|
+
}), tooltipData && React.createElement(Portal, null, React.createElement(TooltipWrapper, {
|
|
31558
|
+
style: {
|
|
31559
|
+
position: 'fixed',
|
|
31560
|
+
left: tooltipData.position.x + 10,
|
|
31561
|
+
top: tooltipData.position.y + 10
|
|
31562
|
+
}
|
|
31563
|
+
}, React.createElement(InformationCenterNPCTooltip, {
|
|
31564
|
+
npc: tooltipData.npc,
|
|
31565
|
+
itemsAtlasJSON: itemsAtlasJSON,
|
|
31566
|
+
itemsAtlasIMG: itemsAtlasIMG
|
|
31567
|
+
}))), selectedMonster && React.createElement(InformationCenterNPCDetails, {
|
|
31568
|
+
npc: selectedMonster,
|
|
31569
|
+
itemsAtlasJSON: itemsAtlasJSON,
|
|
31570
|
+
itemsAtlasIMG: itemsAtlasIMG,
|
|
31571
|
+
entitiesAtlasJSON: entitiesAtlasJSON,
|
|
31572
|
+
entitiesAtlasIMG: entitiesAtlasIMG,
|
|
31573
|
+
onBack: function onBack() {
|
|
31574
|
+
return setSelectedMonster(null);
|
|
31575
|
+
}
|
|
31576
|
+
}));
|
|
31577
|
+
};
|
|
31578
|
+
var TooltipWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
31579
|
+
displayName: "InformationCenterBestiarySection__TooltipWrapper",
|
|
31580
|
+
componentId: "sc-e3h0p2-0"
|
|
31581
|
+
})(["position:fixed;z-index:1000;pointer-events:none;width:300px;"]);
|
|
31582
|
+
|
|
31583
|
+
var InformationCenterFAQSection = function InformationCenterFAQSection(_ref) {
|
|
31584
|
+
var faqItems = _ref.faqItems,
|
|
31585
|
+
initialSearchQuery = _ref.initialSearchQuery,
|
|
31586
|
+
tabId = _ref.tabId;
|
|
31587
|
+
var _useState = useState(initialSearchQuery),
|
|
31588
|
+
searchQuery = _useState[0],
|
|
31589
|
+
setSearchQuery = _useState[1];
|
|
31590
|
+
useEffect(function () {
|
|
31591
|
+
setSearchQuery(initialSearchQuery);
|
|
31592
|
+
}, [initialSearchQuery]);
|
|
31593
|
+
var filteredFaqs = useMemo(function () {
|
|
31594
|
+
if (!searchQuery) return faqItems;
|
|
31595
|
+
return faqItems.filter(function (faq) {
|
|
31596
|
+
return faq.question.toLowerCase().includes(searchQuery.toLowerCase()) || faq.answer.toLowerCase().includes(searchQuery.toLowerCase());
|
|
31597
|
+
});
|
|
31598
|
+
}, [searchQuery, faqItems]);
|
|
31599
|
+
var renderItem = function renderItem(item) {
|
|
31600
|
+
return React.createElement(StyledCollapsible$1, {
|
|
31601
|
+
title: item.question
|
|
31602
|
+
}, React.createElement(Answer$1, null, item.answer));
|
|
31603
|
+
};
|
|
31604
|
+
return React.createElement(Container$q, null, React.createElement(SearchHeader, {
|
|
31605
|
+
searchOptions: {
|
|
31606
|
+
value: searchQuery,
|
|
31607
|
+
onChange: setSearchQuery,
|
|
31608
|
+
placeholder: 'Search FAQs...'
|
|
31609
|
+
}
|
|
31610
|
+
}), React.createElement(PaginatedContent, {
|
|
31611
|
+
items: filteredFaqs,
|
|
31612
|
+
renderItem: renderItem,
|
|
31613
|
+
emptyMessage: "No FAQ items found",
|
|
31614
|
+
tabId: tabId,
|
|
31615
|
+
layout: "list",
|
|
31616
|
+
itemsPerPage: 10
|
|
31617
|
+
}));
|
|
31618
|
+
};
|
|
31619
|
+
var Container$q = /*#__PURE__*/styled.div.withConfig({
|
|
31620
|
+
displayName: "InformationCenterFaqSection__Container",
|
|
31621
|
+
componentId: "sc-ofmaa9-0"
|
|
31622
|
+
})(["display:flex;flex-direction:column;gap:1rem;width:100%;"]);
|
|
31623
|
+
var StyledCollapsible$1 = /*#__PURE__*/styled(Collapsible).withConfig({
|
|
31624
|
+
displayName: "InformationCenterFaqSection__StyledCollapsible",
|
|
31625
|
+
componentId: "sc-ofmaa9-1"
|
|
31626
|
+
})(["margin-bottom:0.5rem;&:last-child{margin-bottom:0;}"]);
|
|
31627
|
+
var Answer$1 = /*#__PURE__*/styled.p.withConfig({
|
|
31628
|
+
displayName: "InformationCenterFaqSection__Answer",
|
|
31629
|
+
componentId: "sc-ofmaa9-2"
|
|
31630
|
+
})(["font-size:0.9rem;color:#ffffff;margin:0;line-height:1.5;"]);
|
|
31631
|
+
|
|
31632
|
+
var InformationCenterItemDetails = function InformationCenterItemDetails(_ref) {
|
|
31633
|
+
var item = _ref.item,
|
|
31634
|
+
itemsAtlasJSON = _ref.itemsAtlasJSON,
|
|
31635
|
+
itemsAtlasIMG = _ref.itemsAtlasIMG,
|
|
31636
|
+
droppedBy = _ref.droppedBy,
|
|
31637
|
+
onBack = _ref.onBack;
|
|
31638
|
+
var isMobile = isMobileOrTablet();
|
|
31639
|
+
var renderAllowedSlots = function renderAllowedSlots() {
|
|
31640
|
+
var _item$allowedEquipSlo;
|
|
31641
|
+
if (!((_item$allowedEquipSlo = item.allowedEquipSlotType) != null && _item$allowedEquipSlo.length)) return null;
|
|
31642
|
+
return React.createElement(InfoItem$1, null, React.createElement(Label$1, null, "Equip Slots:"), React.createElement(Value$1, null, item.allowedEquipSlotType.join(', ')));
|
|
31643
|
+
};
|
|
31644
|
+
var renderRequirements = function renderRequirements() {
|
|
31645
|
+
if (!item.minRequirements) return null;
|
|
31646
|
+
return React.createElement(StyledCollapsible$2, {
|
|
31647
|
+
title: "Requirements",
|
|
31648
|
+
defaultOpen: !isMobile
|
|
31649
|
+
}, React.createElement(RequirementsGrid, null, item.minRequirements.level && React.createElement(RequirementItem, null, React.createElement(Label$1, null, "Level:"), React.createElement(Value$1, null, item.minRequirements.level)), item.minRequirements.skill && React.createElement(RequirementItem, null, React.createElement(Label$1, null, item.minRequirements.skill.name, ":"), React.createElement(Value$1, null, item.minRequirements.skill.level))));
|
|
31650
|
+
};
|
|
31651
|
+
return React.createElement(BaseInformationDetails, {
|
|
31652
|
+
name: item.name,
|
|
31653
|
+
spriteKey: item.texturePath,
|
|
31654
|
+
atlasJSON: itemsAtlasJSON,
|
|
31655
|
+
atlasIMG: itemsAtlasIMG,
|
|
31656
|
+
onBack: onBack
|
|
31657
|
+
}, React.createElement(InfoSection$1, null, React.createElement(InfoItem$1, null, React.createElement(Label$1, null, "Type:"), React.createElement(Value$1, null, item.type)), React.createElement(InfoItem$1, null, React.createElement(Label$1, null, "Subtype:"), React.createElement(Value$1, null, item.subType)), React.createElement(InfoItem$1, null, React.createElement(Label$1, null, "Tier:"), React.createElement(Value$1, null, item.tier)), React.createElement(InfoItem$1, null, React.createElement(Label$1, null, "Rarity:"), React.createElement(Value$1, null, item.rarity)), renderAllowedSlots()), React.createElement(StyledCollapsible$2, {
|
|
31658
|
+
title: "Description",
|
|
31659
|
+
defaultOpen: !isMobile
|
|
31660
|
+
}, React.createElement(Description$2, null, item.description || 'No description available.')), React.createElement(StyledCollapsible$2, {
|
|
31661
|
+
title: "Stats",
|
|
31662
|
+
defaultOpen: !isMobile
|
|
31663
|
+
}, React.createElement(StatGrid$1, null, React.createElement(StatItem$2, null, "Weight: ", item.weight), React.createElement(StatItem$2, null, "Stack Size: ", item.maxStackSize), item.rangeType && React.createElement(StatItem$2, null, "Range Type: ", item.rangeType), item.basePrice > 0 && React.createElement(StatItem$2, null, "Base Price: ", item.basePrice))), renderRequirements(), item.entityEffects && item.entityEffects.length > 0 && React.createElement(StyledCollapsible$2, {
|
|
31664
|
+
title: "Effects",
|
|
31665
|
+
defaultOpen: !isMobile
|
|
31666
|
+
}, React.createElement(EffectsList$2, null, item.entityEffects.map(function (effect, index) {
|
|
31667
|
+
return React.createElement(EffectItem$2, {
|
|
31668
|
+
key: index
|
|
31669
|
+
}, effect, item.entityEffectChance && React.createElement(EffectChance, null, "(", item.entityEffectChance, "%)"));
|
|
31670
|
+
})), item.usableEffectDescription && React.createElement(EffectDescription, null, item.usableEffectDescription)), item.equippedBuff && item.equippedBuff.length > 0 && React.createElement(StyledCollapsible$2, {
|
|
31671
|
+
title: "Equipped Buffs",
|
|
31672
|
+
defaultOpen: !isMobile
|
|
31673
|
+
}, React.createElement(BuffsList, null, item.equippedBuff.map(function (buff, index) {
|
|
31674
|
+
return React.createElement(BuffItem, {
|
|
31675
|
+
key: index
|
|
31676
|
+
}, React.createElement(BuffName, null, buff.trait), React.createElement(BuffValue, null, "+", buff.buffPercentage, "%"));
|
|
31677
|
+
})), item.equippedBuffDescription && React.createElement(BuffDescription, null, item.equippedBuffDescription)), droppedBy.length > 0 && React.createElement(StyledCollapsible$2, {
|
|
31678
|
+
title: "Dropped By",
|
|
31679
|
+
defaultOpen: !isMobile
|
|
31680
|
+
}, React.createElement(DropList, null, droppedBy.map(function (npc) {
|
|
31681
|
+
var loot = npc.loots.find(function (l) {
|
|
31682
|
+
return l.itemBlueprintKey === item.key;
|
|
31683
|
+
});
|
|
31684
|
+
return React.createElement(DropItem, {
|
|
31685
|
+
key: npc.id
|
|
31686
|
+
}, React.createElement(NPCName, null, npc.name), React.createElement(DropRate, null, loot == null ? void 0 : loot.chance, "%"));
|
|
31687
|
+
}))));
|
|
31688
|
+
};
|
|
31689
|
+
var InfoSection$1 = /*#__PURE__*/styled.div.withConfig({
|
|
31690
|
+
displayName: "InformationCenterItemDetails__InfoSection",
|
|
31691
|
+
componentId: "sc-zwf6pb-0"
|
|
31692
|
+
})(["display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:8px;background:rgba(255,255,255,0.05);padding:12px;border-radius:4px;"]);
|
|
31693
|
+
var InfoItem$1 = /*#__PURE__*/styled.div.withConfig({
|
|
31694
|
+
displayName: "InformationCenterItemDetails__InfoItem",
|
|
31695
|
+
componentId: "sc-zwf6pb-1"
|
|
31696
|
+
})(["display:flex;align-items:center;gap:8px;"]);
|
|
31697
|
+
var Label$1 = /*#__PURE__*/styled.span.withConfig({
|
|
31698
|
+
displayName: "InformationCenterItemDetails__Label",
|
|
31699
|
+
componentId: "sc-zwf6pb-2"
|
|
31700
|
+
})(["color:", ";font-size:0.5rem;opacity:0.8;"], uiColors.yellow);
|
|
31701
|
+
var Value$1 = /*#__PURE__*/styled.span.withConfig({
|
|
31702
|
+
displayName: "InformationCenterItemDetails__Value",
|
|
31703
|
+
componentId: "sc-zwf6pb-3"
|
|
31704
|
+
})(["color:", ";font-size:0.5rem;"], uiColors.white);
|
|
31705
|
+
var StyledCollapsible$2 = /*#__PURE__*/styled(Collapsible).withConfig({
|
|
31706
|
+
displayName: "InformationCenterItemDetails__StyledCollapsible",
|
|
31707
|
+
componentId: "sc-zwf6pb-4"
|
|
31708
|
+
})(["background:rgba(255,255,255,0.05);border-radius:4px;overflow:hidden;"]);
|
|
31709
|
+
var Description$2 = /*#__PURE__*/styled.p.withConfig({
|
|
31710
|
+
displayName: "InformationCenterItemDetails__Description",
|
|
31711
|
+
componentId: "sc-zwf6pb-5"
|
|
31712
|
+
})(["color:", ";font-size:0.5rem;margin:0;padding:12px;line-height:1.5;"], uiColors.white);
|
|
31713
|
+
var StatGrid$1 = /*#__PURE__*/styled.div.withConfig({
|
|
31714
|
+
displayName: "InformationCenterItemDetails__StatGrid",
|
|
31715
|
+
componentId: "sc-zwf6pb-6"
|
|
31716
|
+
})(["display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px;padding:12px;"]);
|
|
31717
|
+
var StatItem$2 = /*#__PURE__*/styled.div.withConfig({
|
|
31718
|
+
displayName: "InformationCenterItemDetails__StatItem",
|
|
31719
|
+
componentId: "sc-zwf6pb-7"
|
|
31720
|
+
})(["color:", ";font-size:0.5rem;background:rgba(255,255,255,0.05);padding:8px;border-radius:4px;"], uiColors.white);
|
|
31721
|
+
var EffectsList$2 = /*#__PURE__*/styled.div.withConfig({
|
|
31722
|
+
displayName: "InformationCenterItemDetails__EffectsList",
|
|
31723
|
+
componentId: "sc-zwf6pb-8"
|
|
31724
|
+
})(["display:flex;flex-wrap:wrap;gap:8px;padding:12px;"]);
|
|
31725
|
+
var EffectItem$2 = /*#__PURE__*/styled.div.withConfig({
|
|
31726
|
+
displayName: "InformationCenterItemDetails__EffectItem",
|
|
31727
|
+
componentId: "sc-zwf6pb-9"
|
|
31728
|
+
})(["display:flex;align-items:center;gap:4px;color:", ";font-size:0.5rem;background:rgba(255,255,255,0.1);padding:4px 8px;border-radius:4px;"], uiColors.white);
|
|
31729
|
+
var EffectChance = /*#__PURE__*/styled.span.withConfig({
|
|
31730
|
+
displayName: "InformationCenterItemDetails__EffectChance",
|
|
31731
|
+
componentId: "sc-zwf6pb-10"
|
|
31732
|
+
})(["color:", ";opacity:0.8;"], uiColors.yellow);
|
|
31733
|
+
var BuffsList = /*#__PURE__*/styled.div.withConfig({
|
|
31734
|
+
displayName: "InformationCenterItemDetails__BuffsList",
|
|
31735
|
+
componentId: "sc-zwf6pb-11"
|
|
31736
|
+
})(["display:flex;flex-direction:column;gap:8px;padding:12px;"]);
|
|
31737
|
+
var BuffItem = /*#__PURE__*/styled.div.withConfig({
|
|
31738
|
+
displayName: "InformationCenterItemDetails__BuffItem",
|
|
31739
|
+
componentId: "sc-zwf6pb-12"
|
|
31740
|
+
})(["display:flex;justify-content:space-between;align-items:center;background:rgba(255,255,255,0.05);padding:8px;border-radius:4px;"]);
|
|
31741
|
+
var BuffName = /*#__PURE__*/styled.span.withConfig({
|
|
31742
|
+
displayName: "InformationCenterItemDetails__BuffName",
|
|
31743
|
+
componentId: "sc-zwf6pb-13"
|
|
31744
|
+
})(["color:", ";font-size:0.5rem;"], uiColors.white);
|
|
31745
|
+
var BuffValue = /*#__PURE__*/styled.span.withConfig({
|
|
31746
|
+
displayName: "InformationCenterItemDetails__BuffValue",
|
|
31747
|
+
componentId: "sc-zwf6pb-14"
|
|
31748
|
+
})(["color:", ";font-size:0.5rem;"], uiColors.yellow);
|
|
31749
|
+
var BuffDescription = /*#__PURE__*/styled.p.withConfig({
|
|
31750
|
+
displayName: "InformationCenterItemDetails__BuffDescription",
|
|
31751
|
+
componentId: "sc-zwf6pb-15"
|
|
31752
|
+
})(["color:", ";font-size:0.45rem;margin:0;padding:0 12px 12px;font-style:italic;"], uiColors.lightGray);
|
|
31753
|
+
var DropList = /*#__PURE__*/styled.div.withConfig({
|
|
31754
|
+
displayName: "InformationCenterItemDetails__DropList",
|
|
31755
|
+
componentId: "sc-zwf6pb-16"
|
|
31756
|
+
})(["display:flex;flex-direction:column;gap:0.5rem;padding:12px;"]);
|
|
31757
|
+
var DropItem = /*#__PURE__*/styled.div.withConfig({
|
|
31758
|
+
displayName: "InformationCenterItemDetails__DropItem",
|
|
31759
|
+
componentId: "sc-zwf6pb-17"
|
|
31760
|
+
})(["display:flex;justify-content:space-between;align-items:center;padding:0.5rem;background:rgba(255,255,255,0.05);border-radius:4px;"]);
|
|
31761
|
+
var NPCName = /*#__PURE__*/styled.span.withConfig({
|
|
31762
|
+
displayName: "InformationCenterItemDetails__NPCName",
|
|
31763
|
+
componentId: "sc-zwf6pb-18"
|
|
31764
|
+
})(["color:", ";font-size:0.5rem;"], uiColors.white);
|
|
31765
|
+
var DropRate = /*#__PURE__*/styled.span.withConfig({
|
|
31766
|
+
displayName: "InformationCenterItemDetails__DropRate",
|
|
31767
|
+
componentId: "sc-zwf6pb-19"
|
|
31768
|
+
})(["color:", ";font-size:0.5rem;"], uiColors.yellow);
|
|
31769
|
+
var RequirementsGrid = /*#__PURE__*/styled.div.withConfig({
|
|
31770
|
+
displayName: "InformationCenterItemDetails__RequirementsGrid",
|
|
31771
|
+
componentId: "sc-zwf6pb-20"
|
|
31772
|
+
})(["display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px;padding:12px;"]);
|
|
31773
|
+
var RequirementItem = /*#__PURE__*/styled.div.withConfig({
|
|
31774
|
+
displayName: "InformationCenterItemDetails__RequirementItem",
|
|
31775
|
+
componentId: "sc-zwf6pb-21"
|
|
31776
|
+
})(["display:flex;align-items:center;gap:8px;background:rgba(255,255,255,0.05);padding:8px;border-radius:4px;"]);
|
|
31777
|
+
var EffectDescription = /*#__PURE__*/styled.p.withConfig({
|
|
31778
|
+
displayName: "InformationCenterItemDetails__EffectDescription",
|
|
31779
|
+
componentId: "sc-zwf6pb-22"
|
|
31780
|
+
})(["color:", ";font-size:0.45rem;margin:8px 0 0;padding:0 12px;font-style:italic;"], uiColors.lightGray);
|
|
31781
|
+
|
|
31782
|
+
var ItemHeader$1 = /*#__PURE__*/styled.div.withConfig({
|
|
31783
|
+
displayName: "InformationCenterItemTooltip__ItemHeader",
|
|
31784
|
+
componentId: "sc-1ecf9mj-0"
|
|
31785
|
+
})(["display:flex;align-items:center;gap:8px;"]);
|
|
31786
|
+
var Description$3 = /*#__PURE__*/styled.div.withConfig({
|
|
31787
|
+
displayName: "InformationCenterItemTooltip__Description",
|
|
31788
|
+
componentId: "sc-1ecf9mj-1"
|
|
31789
|
+
})(["color:", ";font-size:0.5rem;line-height:1.4;margin-top:8px;opacity:0.8;"], uiColors.white);
|
|
31790
|
+
var RarityText = /*#__PURE__*/styled.span.withConfig({
|
|
31791
|
+
displayName: "InformationCenterItemTooltip__RarityText",
|
|
31792
|
+
componentId: "sc-1ecf9mj-2"
|
|
31793
|
+
})(["color:", ";font-size:0.5rem;"], function (props) {
|
|
31794
|
+
switch (props.rarity.toLowerCase()) {
|
|
31795
|
+
case 'legendary':
|
|
31796
|
+
return '#ff8c00';
|
|
31797
|
+
case 'rare':
|
|
31798
|
+
return '#0070dd';
|
|
31799
|
+
case 'uncommon':
|
|
31800
|
+
return '#1eff00';
|
|
31801
|
+
default:
|
|
31802
|
+
return '#ffffff';
|
|
31803
|
+
}
|
|
31804
|
+
});
|
|
31805
|
+
var InformationCenterItemTooltip = function InformationCenterItemTooltip(_ref) {
|
|
31806
|
+
var item = _ref.item;
|
|
31807
|
+
return React.createElement(BaseTooltip, null, React.createElement(ItemHeader$1, null, React.createElement(TooltipTitle$1, null, item.name)), React.createElement(Description$3, null, item.description), React.createElement(Section, null, React.createElement(SectionTitle, null, "Details"), React.createElement(StatsContainer, null, React.createElement(StatItem$1, null, "Type: ", item.type), React.createElement(StatItem$1, null, "Weight: ", item.weight), item.attack !== undefined && React.createElement(StatItem$1, null, "Attack: ", item.attack), item.defense !== undefined && React.createElement(StatItem$1, null, "Defense: ", item.defense), item.tier !== undefined && React.createElement(StatItem$1, null, "Tier: ", item.tier), item.rangeType && React.createElement(StatItem$1, null, "Range: ", item.rangeType))), React.createElement(Section, null, React.createElement(SectionTitle, null, "Market"), React.createElement(StatsContainer, null, React.createElement(StatItem$1, null, "Price: ", item.basePrice), item.rarity && React.createElement(StatItem$1, null, "Rarity:", ' ', React.createElement(RarityText, {
|
|
31808
|
+
rarity: item.rarity
|
|
31809
|
+
}, item.rarity)))));
|
|
31810
|
+
};
|
|
31811
|
+
|
|
31812
|
+
var TOOLTIP_OFFSET = 20;
|
|
31813
|
+
var InformationCenterItemsSection = function InformationCenterItemsSection(_ref) {
|
|
31814
|
+
var items = _ref.items,
|
|
31815
|
+
bestiaryItems = _ref.bestiaryItems,
|
|
31816
|
+
itemsAtlasJSON = _ref.itemsAtlasJSON,
|
|
31817
|
+
itemsAtlasIMG = _ref.itemsAtlasIMG,
|
|
31818
|
+
initialSearchQuery = _ref.initialSearchQuery,
|
|
31819
|
+
tabId = _ref.tabId;
|
|
31820
|
+
var _useState = useState(initialSearchQuery),
|
|
31821
|
+
searchQuery = _useState[0],
|
|
31822
|
+
setSearchQuery = _useState[1];
|
|
31823
|
+
var _useState2 = useState('all'),
|
|
31824
|
+
selectedItemCategory = _useState2[0],
|
|
31825
|
+
setSelectedItemCategory = _useState2[1];
|
|
31826
|
+
var _useState3 = useState(null),
|
|
31827
|
+
hoveredItem = _useState3[0],
|
|
31828
|
+
setHoveredItem = _useState3[1];
|
|
31829
|
+
var _useState4 = useState({
|
|
31830
|
+
x: 0,
|
|
31831
|
+
y: 0
|
|
31832
|
+
}),
|
|
31833
|
+
tooltipPosition = _useState4[0],
|
|
31834
|
+
setTooltipPosition = _useState4[1];
|
|
31835
|
+
var _useState5 = useState(null),
|
|
31836
|
+
selectedItem = _useState5[0],
|
|
31837
|
+
setSelectedItem = _useState5[1];
|
|
31838
|
+
var itemCategoryOptions = [{
|
|
31839
|
+
id: 0,
|
|
31840
|
+
value: 'all',
|
|
31841
|
+
option: 'All Items'
|
|
31842
|
+
}, {
|
|
31843
|
+
id: 1,
|
|
31844
|
+
value: ItemType.Consumable,
|
|
31845
|
+
option: 'Consumables'
|
|
31846
|
+
}, {
|
|
31847
|
+
id: 2,
|
|
31848
|
+
value: ItemType.Weapon,
|
|
31849
|
+
option: 'Weapons'
|
|
31850
|
+
}, {
|
|
31851
|
+
id: 3,
|
|
31852
|
+
value: ItemType.Armor,
|
|
31853
|
+
option: 'Armor'
|
|
31854
|
+
}];
|
|
31855
|
+
var filteredItems = items.filter(function (item) {
|
|
31856
|
+
return (selectedItemCategory === 'all' || item.type === selectedItemCategory) && item.name.toLowerCase().includes(searchQuery.toLowerCase());
|
|
31857
|
+
});
|
|
31858
|
+
var getDroppedByNPCs = function getDroppedByNPCs(itemId, npcs) {
|
|
31859
|
+
return npcs.filter(function (npc) {
|
|
31860
|
+
var _npc$loots;
|
|
31861
|
+
return (_npc$loots = npc.loots) == null ? void 0 : _npc$loots.some(function (loot) {
|
|
31862
|
+
return loot.itemBlueprintKey === itemId;
|
|
31863
|
+
});
|
|
31864
|
+
}) || [];
|
|
31865
|
+
};
|
|
31866
|
+
var handleMouseEnter = function handleMouseEnter(e, item) {
|
|
31867
|
+
setTooltipPosition({
|
|
31868
|
+
x: e.clientX + TOOLTIP_OFFSET,
|
|
31869
|
+
y: e.clientY
|
|
31870
|
+
});
|
|
31871
|
+
setHoveredItem(item);
|
|
31872
|
+
};
|
|
31873
|
+
var handleMouseMove = function handleMouseMove(e) {
|
|
31874
|
+
if (hoveredItem) {
|
|
31875
|
+
setTooltipPosition({
|
|
31876
|
+
x: e.clientX + TOOLTIP_OFFSET,
|
|
31877
|
+
y: e.clientY
|
|
31878
|
+
});
|
|
31879
|
+
}
|
|
31880
|
+
};
|
|
31881
|
+
var handleMouseLeave = function handleMouseLeave() {
|
|
31882
|
+
setHoveredItem(null);
|
|
31883
|
+
};
|
|
31884
|
+
var handleTouchStart = function handleTouchStart(e, item) {
|
|
31885
|
+
var touch = e.touches[0];
|
|
31886
|
+
setTooltipPosition({
|
|
31887
|
+
x: touch.clientX + TOOLTIP_OFFSET,
|
|
31888
|
+
y: touch.clientY
|
|
31889
|
+
});
|
|
31890
|
+
setHoveredItem(item);
|
|
31891
|
+
};
|
|
31892
|
+
var handleItemClick = function handleItemClick(item) {
|
|
31893
|
+
setSelectedItem(item);
|
|
31894
|
+
setHoveredItem(null);
|
|
31895
|
+
};
|
|
31896
|
+
var renderItem = function renderItem(item) {
|
|
31897
|
+
return React.createElement(InformationCenterCell, {
|
|
31898
|
+
key: item.key,
|
|
31899
|
+
name: item.name,
|
|
31900
|
+
spriteKey: item.texturePath,
|
|
31901
|
+
atlasJSON: itemsAtlasJSON,
|
|
31902
|
+
atlasIMG: itemsAtlasIMG,
|
|
31903
|
+
onMouseEnter: function onMouseEnter(e) {
|
|
31904
|
+
return handleMouseEnter(e, item);
|
|
31905
|
+
},
|
|
31906
|
+
onMouseMove: handleMouseMove,
|
|
31907
|
+
onMouseLeave: handleMouseLeave,
|
|
31908
|
+
onTouchStart: function onTouchStart(e) {
|
|
31909
|
+
return handleTouchStart(e, item);
|
|
31910
|
+
},
|
|
31911
|
+
onClick: function onClick() {
|
|
31912
|
+
return handleItemClick(item);
|
|
31913
|
+
}
|
|
31914
|
+
});
|
|
31915
|
+
};
|
|
31916
|
+
return React.createElement(React.Fragment, null, React.createElement(PaginatedContent, {
|
|
31917
|
+
items: filteredItems,
|
|
31918
|
+
renderItem: renderItem,
|
|
31919
|
+
emptyMessage: "No items found",
|
|
31920
|
+
filterOptions: {
|
|
31921
|
+
options: itemCategoryOptions,
|
|
31922
|
+
selectedOption: selectedItemCategory,
|
|
31923
|
+
onOptionChange: setSelectedItemCategory
|
|
31924
|
+
},
|
|
31925
|
+
searchOptions: {
|
|
31926
|
+
value: searchQuery,
|
|
31927
|
+
onChange: setSearchQuery,
|
|
31928
|
+
placeholder: 'Search items...'
|
|
31929
|
+
},
|
|
31930
|
+
dependencies: [selectedItemCategory],
|
|
31931
|
+
tabId: tabId,
|
|
31932
|
+
layout: "grid",
|
|
31933
|
+
itemHeight: "180px"
|
|
31934
|
+
}), hoveredItem && React.createElement(TooltipWrapper$1, {
|
|
31935
|
+
style: {
|
|
31936
|
+
top: tooltipPosition.y,
|
|
31937
|
+
left: tooltipPosition.x
|
|
31938
|
+
}
|
|
31939
|
+
}, React.createElement(InformationCenterItemTooltip, {
|
|
31940
|
+
item: hoveredItem
|
|
31941
|
+
})), selectedItem && React.createElement(InformationCenterItemDetails, {
|
|
31942
|
+
item: selectedItem,
|
|
31943
|
+
itemsAtlasJSON: itemsAtlasJSON,
|
|
31944
|
+
itemsAtlasIMG: itemsAtlasIMG,
|
|
31945
|
+
droppedBy: getDroppedByNPCs(selectedItem.key, bestiaryItems),
|
|
31946
|
+
onBack: function onBack() {
|
|
31947
|
+
return setSelectedItem(null);
|
|
31948
|
+
}
|
|
31949
|
+
}));
|
|
31950
|
+
};
|
|
31951
|
+
var TooltipWrapper$1 = /*#__PURE__*/styled.div.withConfig({
|
|
31952
|
+
displayName: "InformationCenterItemsSection__TooltipWrapper",
|
|
31953
|
+
componentId: "sc-1wmpapt-0"
|
|
31954
|
+
})(["position:fixed;z-index:1000;pointer-events:none;transition:transform 0.1s ease;"]);
|
|
31955
|
+
|
|
31956
|
+
var InformationCenterTutorialsSection = function InformationCenterTutorialsSection(_ref) {
|
|
31957
|
+
var videoGuides = _ref.videoGuides,
|
|
31958
|
+
initialSearchQuery = _ref.initialSearchQuery,
|
|
31959
|
+
tabId = _ref.tabId;
|
|
31960
|
+
var _useState = useState(initialSearchQuery),
|
|
31961
|
+
searchQuery = _useState[0],
|
|
31962
|
+
setSearchQuery = _useState[1];
|
|
31963
|
+
var _useState2 = useState('all'),
|
|
31964
|
+
selectedCategory = _useState2[0],
|
|
31965
|
+
setSelectedCategory = _useState2[1];
|
|
31966
|
+
var categoryOptions = [{
|
|
31967
|
+
id: 0,
|
|
31968
|
+
value: 'all',
|
|
31969
|
+
option: 'All'
|
|
31970
|
+
}, {
|
|
31971
|
+
id: 1,
|
|
31972
|
+
value: 'Combat',
|
|
31973
|
+
option: 'Combat'
|
|
31974
|
+
}, {
|
|
31975
|
+
id: 2,
|
|
31976
|
+
value: 'Crafting',
|
|
31977
|
+
option: 'Crafting'
|
|
31978
|
+
}, {
|
|
31979
|
+
id: 3,
|
|
31980
|
+
value: 'Exploration',
|
|
31981
|
+
option: 'Exploration'
|
|
31982
|
+
}, {
|
|
31983
|
+
id: 4,
|
|
31984
|
+
value: 'General',
|
|
31985
|
+
option: 'General'
|
|
31986
|
+
}];
|
|
31987
|
+
var renderItem = function renderItem(guide) {
|
|
31988
|
+
return React.createElement(GuideItem, {
|
|
31989
|
+
key: guide.id
|
|
31990
|
+
}, React.createElement(GuideThumbnail, null, React.createElement("img", {
|
|
31991
|
+
src: guide.thumbnailUrl || '/placeholder-thumbnail.png',
|
|
31992
|
+
alt: guide.title
|
|
31993
|
+
})), React.createElement(GuideContent, null, React.createElement(GuideTitle, null, guide.title), React.createElement(GuideDescription, null, guide.description), React.createElement(GuideCategory, null, guide.category)));
|
|
31994
|
+
};
|
|
31995
|
+
var filteredGuides = videoGuides.filter(function (guide) {
|
|
31996
|
+
return (selectedCategory === 'all' || guide.category === selectedCategory) && (guide.title.toLowerCase().includes(searchQuery.toLowerCase()) || guide.description.toLowerCase().includes(searchQuery.toLowerCase()));
|
|
31997
|
+
});
|
|
31998
|
+
return React.createElement(PaginatedContent, {
|
|
31999
|
+
items: filteredGuides,
|
|
32000
|
+
renderItem: renderItem,
|
|
32001
|
+
emptyMessage: "No guides found",
|
|
32002
|
+
searchOptions: {
|
|
32003
|
+
value: searchQuery,
|
|
32004
|
+
onChange: setSearchQuery,
|
|
32005
|
+
placeholder: 'Search guides...'
|
|
32006
|
+
},
|
|
32007
|
+
filterOptions: {
|
|
32008
|
+
options: categoryOptions,
|
|
32009
|
+
selectedOption: selectedCategory,
|
|
32010
|
+
onOptionChange: setSelectedCategory
|
|
32011
|
+
},
|
|
32012
|
+
dependencies: [selectedCategory],
|
|
32013
|
+
tabId: tabId,
|
|
32014
|
+
layout: "grid",
|
|
32015
|
+
gridColumns: 3,
|
|
32016
|
+
itemsPerPage: 3,
|
|
32017
|
+
itemHeight: "400px"
|
|
32018
|
+
});
|
|
32019
|
+
};
|
|
32020
|
+
var GuideItem = /*#__PURE__*/styled.div.withConfig({
|
|
32021
|
+
displayName: "InformationCenterTutorialsSection__GuideItem",
|
|
32022
|
+
componentId: "sc-1gk05vk-0"
|
|
32023
|
+
})(["background:rgba(0,0,0,0.3);border-radius:4px;overflow:hidden;border:1px solid ", ";cursor:pointer;transition:transform 0.2s ease;height:100%;&:hover{transform:translateY(-2px);}"], uiColors.darkGray);
|
|
32024
|
+
var GuideThumbnail = /*#__PURE__*/styled.div.withConfig({
|
|
32025
|
+
displayName: "InformationCenterTutorialsSection__GuideThumbnail",
|
|
32026
|
+
componentId: "sc-1gk05vk-1"
|
|
32027
|
+
})(["width:100%;height:168px;background:rgba(0,0,0,0.2);overflow:hidden;img{width:100%;height:100%;object-fit:cover;}font-size:0.8rem;line-height:1.8;"]);
|
|
32028
|
+
var GuideContent = /*#__PURE__*/styled.div.withConfig({
|
|
32029
|
+
displayName: "InformationCenterTutorialsSection__GuideContent",
|
|
32030
|
+
componentId: "sc-1gk05vk-2"
|
|
32031
|
+
})(["padding:12px;"]);
|
|
32032
|
+
var GuideTitle = /*#__PURE__*/styled.h3.withConfig({
|
|
32033
|
+
displayName: "InformationCenterTutorialsSection__GuideTitle",
|
|
32034
|
+
componentId: "sc-1gk05vk-3"
|
|
32035
|
+
})(["margin:0;font-size:0.6rem;color:", ";font-family:'Press Start 2P',cursive;margin-bottom:8px;"], uiColors.yellow);
|
|
32036
|
+
var GuideDescription = /*#__PURE__*/styled.p.withConfig({
|
|
32037
|
+
displayName: "InformationCenterTutorialsSection__GuideDescription",
|
|
32038
|
+
componentId: "sc-1gk05vk-4"
|
|
32039
|
+
})(["margin:0;font-size:0.55rem;color:", ";font-family:'Press Start 2P',cursive;margin-bottom:8px;line-height:1.4;"], uiColors.lightGray);
|
|
32040
|
+
var GuideCategory = /*#__PURE__*/styled.span.withConfig({
|
|
32041
|
+
displayName: "InformationCenterTutorialsSection__GuideCategory",
|
|
32042
|
+
componentId: "sc-1gk05vk-5"
|
|
32043
|
+
})(["font-size:0.5rem;color:", ";font-family:'Press Start 2P',cursive;background:rgba(255,255,255,0.1);padding:4px 8px;border-radius:4px;"], uiColors.yellow);
|
|
32044
|
+
|
|
32045
|
+
var InformationCenter = function InformationCenter(_ref) {
|
|
32046
|
+
var itemsAtlasJSON = _ref.itemsAtlasJSON,
|
|
32047
|
+
itemsAtlasIMG = _ref.itemsAtlasIMG,
|
|
32048
|
+
entitiesAtlasJSON = _ref.entitiesAtlasJSON,
|
|
32049
|
+
entitiesAtlasIMG = _ref.entitiesAtlasIMG,
|
|
32050
|
+
_ref$faqItems = _ref.faqItems,
|
|
32051
|
+
faqItems = _ref$faqItems === void 0 ? [] : _ref$faqItems,
|
|
32052
|
+
_ref$bestiaryItems = _ref.bestiaryItems,
|
|
32053
|
+
bestiaryItems = _ref$bestiaryItems === void 0 ? [] : _ref$bestiaryItems,
|
|
32054
|
+
_ref$videoGuides = _ref.videoGuides,
|
|
32055
|
+
videoGuides = _ref$videoGuides === void 0 ? [] : _ref$videoGuides,
|
|
32056
|
+
_ref$items = _ref.items,
|
|
32057
|
+
items = _ref$items === void 0 ? [] : _ref$items,
|
|
32058
|
+
_ref$loading = _ref.loading,
|
|
32059
|
+
loading = _ref$loading === void 0 ? false : _ref$loading,
|
|
32060
|
+
error = _ref.error,
|
|
32061
|
+
_ref$initialSearchQue = _ref.initialSearchQuery,
|
|
32062
|
+
initialSearchQuery = _ref$initialSearchQue === void 0 ? '' : _ref$initialSearchQue;
|
|
32063
|
+
var _useState = useState('bestiary'),
|
|
32064
|
+
activeTab = _useState[0],
|
|
32065
|
+
setActiveTab = _useState[1];
|
|
32066
|
+
var _useState2 = useState(null),
|
|
32067
|
+
selectedItem = _useState2[0],
|
|
32068
|
+
setSelectedItem = _useState2[1];
|
|
32069
|
+
if (loading) {
|
|
32070
|
+
return React.createElement(LoadingMessage, null, "Loading...");
|
|
32071
|
+
}
|
|
32072
|
+
if (error) {
|
|
32073
|
+
return React.createElement(ErrorMessage, null, error);
|
|
32074
|
+
}
|
|
32075
|
+
var tabs = [{
|
|
32076
|
+
id: 'bestiary',
|
|
32077
|
+
title: 'Bestiary',
|
|
32078
|
+
content: React.createElement(InformationCenterBestiarySection, {
|
|
32079
|
+
bestiaryItems: bestiaryItems,
|
|
32080
|
+
itemsAtlasJSON: itemsAtlasJSON,
|
|
32081
|
+
itemsAtlasIMG: itemsAtlasIMG,
|
|
32082
|
+
entitiesAtlasJSON: entitiesAtlasJSON,
|
|
32083
|
+
entitiesAtlasIMG: entitiesAtlasIMG,
|
|
32084
|
+
initialSearchQuery: initialSearchQuery,
|
|
32085
|
+
tabId: "bestiary"
|
|
32086
|
+
})
|
|
32087
|
+
}, {
|
|
32088
|
+
id: 'items',
|
|
32089
|
+
title: 'Items',
|
|
32090
|
+
content: React.createElement(InformationCenterItemsSection, {
|
|
32091
|
+
items: items,
|
|
32092
|
+
bestiaryItems: bestiaryItems,
|
|
32093
|
+
itemsAtlasJSON: itemsAtlasJSON,
|
|
32094
|
+
itemsAtlasIMG: itemsAtlasIMG,
|
|
32095
|
+
initialSearchQuery: initialSearchQuery,
|
|
32096
|
+
tabId: "items"
|
|
32097
|
+
})
|
|
32098
|
+
}, {
|
|
32099
|
+
id: 'faq',
|
|
32100
|
+
title: 'FAQ',
|
|
32101
|
+
content: React.createElement(InformationCenterFAQSection, {
|
|
32102
|
+
faqItems: faqItems,
|
|
32103
|
+
initialSearchQuery: initialSearchQuery,
|
|
32104
|
+
tabId: "faq"
|
|
32105
|
+
})
|
|
32106
|
+
}, {
|
|
32107
|
+
id: 'tutorials',
|
|
32108
|
+
title: 'Tutorials',
|
|
32109
|
+
content: React.createElement(InformationCenterTutorialsSection, {
|
|
32110
|
+
videoGuides: videoGuides,
|
|
32111
|
+
initialSearchQuery: initialSearchQuery,
|
|
32112
|
+
tabId: "tutorials"
|
|
32113
|
+
})
|
|
32114
|
+
}];
|
|
32115
|
+
return React.createElement(Container$r, null, React.createElement(InternalTabs, {
|
|
32116
|
+
tabs: tabs,
|
|
32117
|
+
activeTextColor: "#000000",
|
|
32118
|
+
activeTab: activeTab,
|
|
32119
|
+
onTabChange: setActiveTab,
|
|
32120
|
+
activeColor: "#fef08a",
|
|
32121
|
+
inactiveColor: "#6b7280",
|
|
32122
|
+
borderColor: "#f59e0b",
|
|
32123
|
+
hoverColor: "#fef3c7"
|
|
32124
|
+
}), selectedItem && React.createElement(InformationCenterItemDetails, {
|
|
32125
|
+
item: selectedItem,
|
|
32126
|
+
itemsAtlasJSON: itemsAtlasJSON,
|
|
32127
|
+
itemsAtlasIMG: itemsAtlasIMG,
|
|
32128
|
+
droppedBy: bestiaryItems.filter(function (npc) {
|
|
32129
|
+
var _npc$loots;
|
|
32130
|
+
return (_npc$loots = npc.loots) == null ? void 0 : _npc$loots.some(function (loot) {
|
|
32131
|
+
return loot.itemBlueprintKey === selectedItem.key;
|
|
32132
|
+
});
|
|
32133
|
+
}),
|
|
32134
|
+
onBack: function onBack() {
|
|
32135
|
+
return setSelectedItem(null);
|
|
32136
|
+
}
|
|
32137
|
+
}));
|
|
32138
|
+
};
|
|
32139
|
+
var Container$r = /*#__PURE__*/styled.div.withConfig({
|
|
32140
|
+
displayName: "InformationCenter__Container",
|
|
32141
|
+
componentId: "sc-1ttl62e-0"
|
|
32142
|
+
})(["width:100%;max-width:800px;margin:0 auto;padding:1rem;"]);
|
|
32143
|
+
var LoadingMessage = /*#__PURE__*/styled.div.withConfig({
|
|
32144
|
+
displayName: "InformationCenter__LoadingMessage",
|
|
32145
|
+
componentId: "sc-1ttl62e-1"
|
|
32146
|
+
})(["text-align:center;color:#ffffff;padding:2rem;"]);
|
|
32147
|
+
var ErrorMessage = /*#__PURE__*/styled.div.withConfig({
|
|
32148
|
+
displayName: "InformationCenter__ErrorMessage",
|
|
32149
|
+
componentId: "sc-1ttl62e-2"
|
|
32150
|
+
})(["text-align:center;color:#ef4444;padding:2rem;"]);
|
|
32151
|
+
|
|
30777
32152
|
var SlotsContainer = function SlotsContainer(_ref) {
|
|
30778
32153
|
var children = _ref.children,
|
|
30779
32154
|
title = _ref.title,
|
|
@@ -30932,7 +32307,7 @@ var ShortcutsSetter = function ShortcutsSetter(_ref) {
|
|
|
30932
32307
|
}
|
|
30933
32308
|
return null;
|
|
30934
32309
|
};
|
|
30935
|
-
return React.createElement(Container$
|
|
32310
|
+
return React.createElement(Container$s, null, React.createElement("p", null, "Shortcuts:"), React.createElement(List, {
|
|
30936
32311
|
id: "shortcuts_list"
|
|
30937
32312
|
}, Array.from({
|
|
30938
32313
|
length: 12
|
|
@@ -30950,7 +32325,7 @@ var ShortcutsSetter = function ShortcutsSetter(_ref) {
|
|
|
30950
32325
|
}, getContent(i));
|
|
30951
32326
|
})));
|
|
30952
32327
|
};
|
|
30953
|
-
var Container$
|
|
32328
|
+
var Container$s = /*#__PURE__*/styled.div.withConfig({
|
|
30954
32329
|
displayName: "ShortcutsSetter__Container",
|
|
30955
32330
|
componentId: "sc-xuouuf-0"
|
|
30956
32331
|
})(["p{margin:0;margin-left:0.5rem;font-size:10px;}width:100%;"]);
|
|
@@ -31017,7 +32392,7 @@ var RangeSlider = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
31017
32392
|
style: {
|
|
31018
32393
|
left: left
|
|
31019
32394
|
}
|
|
31020
|
-
})), React.createElement(Input$
|
|
32395
|
+
})), React.createElement(Input$2, {
|
|
31021
32396
|
type: "range",
|
|
31022
32397
|
style: {
|
|
31023
32398
|
width: width
|
|
@@ -31030,7 +32405,7 @@ var RangeSlider = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
31030
32405
|
className: "rpgui-cursor-point"
|
|
31031
32406
|
}));
|
|
31032
32407
|
});
|
|
31033
|
-
var Input$
|
|
32408
|
+
var Input$2 = /*#__PURE__*/styled.input.withConfig({
|
|
31034
32409
|
displayName: "RangeSlider__Input",
|
|
31035
32410
|
componentId: "sc-v8mte9-0"
|
|
31036
32411
|
})(["opacity:0;position:absolute;width:100%;height:100%;top:0;left:0;margin-top:-5px;"]);
|
|
@@ -31064,7 +32439,7 @@ var QuantitySelector = function QuantitySelector(_ref) {
|
|
|
31064
32439
|
return React.createElement(StyledContainer, {
|
|
31065
32440
|
type: RPGUIContainerTypes.Framed,
|
|
31066
32441
|
width: "25rem"
|
|
31067
|
-
}, React.createElement(CloseButton$
|
|
32442
|
+
}, React.createElement(CloseButton$6, {
|
|
31068
32443
|
className: "container-close",
|
|
31069
32444
|
onPointerDown: onClose
|
|
31070
32445
|
}, "X"), React.createElement("h2", null, title), React.createElement(StyledForm, {
|
|
@@ -31109,7 +32484,7 @@ var StyledContainer = /*#__PURE__*/styled(RPGUIContainer).withConfig({
|
|
|
31109
32484
|
displayName: "QuantitySelector__StyledContainer",
|
|
31110
32485
|
componentId: "sc-z4ut57-0"
|
|
31111
32486
|
})(["position:relative;display:flex;flex-direction:column;align-items:center;padding:1rem;h2{margin:0;margin-bottom:1rem;font-size:1rem;}"]);
|
|
31112
|
-
var CloseButton$
|
|
32487
|
+
var CloseButton$6 = /*#__PURE__*/styled.div.withConfig({
|
|
31113
32488
|
displayName: "QuantitySelector__CloseButton",
|
|
31114
32489
|
componentId: "sc-z4ut57-1"
|
|
31115
32490
|
})(["position:absolute;top:3px;right:0px;color:white;z-index:22;font-size:1.5rem;cursor:pointer;"]);
|
|
@@ -31402,7 +32777,7 @@ var ColorSelector = function ColorSelector(_ref) {
|
|
|
31402
32777
|
cancelDrag: ".react-colorful",
|
|
31403
32778
|
width: "20rem",
|
|
31404
32779
|
onCloseButton: onClose
|
|
31405
|
-
}, React.createElement(Container$
|
|
32780
|
+
}, React.createElement(Container$t, null, React.createElement(Header$3, null, "Select Color"), React.createElement(HexColorPicker, {
|
|
31406
32781
|
color: currentColor,
|
|
31407
32782
|
onChange: function onChange(color) {
|
|
31408
32783
|
setCurrentColor(color);
|
|
@@ -31414,11 +32789,11 @@ var ColorSelector = function ColorSelector(_ref) {
|
|
|
31414
32789
|
onClick: handleConfirm
|
|
31415
32790
|
}, "Confirm"))) : null;
|
|
31416
32791
|
};
|
|
31417
|
-
var Container$
|
|
32792
|
+
var Container$t = /*#__PURE__*/styled.div.withConfig({
|
|
31418
32793
|
displayName: "ItemPropertyColorSelector__Container",
|
|
31419
32794
|
componentId: "sc-me1r4z-0"
|
|
31420
32795
|
})(["padding:2rem;text-align:center;background:inherit;"]);
|
|
31421
|
-
var Header$
|
|
32796
|
+
var Header$3 = /*#__PURE__*/styled.h2.withConfig({
|
|
31422
32797
|
displayName: "ItemPropertyColorSelector__Header",
|
|
31423
32798
|
componentId: "sc-me1r4z-1"
|
|
31424
32799
|
})(["font-family:'Press Start 2P',cursive;color:white;font-size:1rem;margin-bottom:1rem;"]);
|
|
@@ -31471,7 +32846,7 @@ var GemSelector = function GemSelector(_ref) {
|
|
|
31471
32846
|
scale: scale,
|
|
31472
32847
|
cancelDrag: ".gem-selector-container",
|
|
31473
32848
|
onCloseButton: onClose
|
|
31474
|
-
}, React.createElement(ContentWrapper$1, null, React.createElement(Header$
|
|
32849
|
+
}, React.createElement(ContentWrapper$1, null, React.createElement(Header$4, null, React.createElement(Title$5, null, "GEM SELECTION"), React.createElement(Subtitle, null, "Select gems to detach")), React.createElement(GemGrid, null, (_item$attachedGems = item.attachedGems) == null ? void 0 : _item$attachedGems.map(function (gem, index) {
|
|
31475
32850
|
return React.createElement(GemItem, {
|
|
31476
32851
|
key: gem.key + "-" + index
|
|
31477
32852
|
}, React.createElement(CheckItemWrapper, null, React.createElement(CheckItem, {
|
|
@@ -31502,7 +32877,7 @@ var GemSelector = function GemSelector(_ref) {
|
|
|
31502
32877
|
disabled: selectedGems.length === 0
|
|
31503
32878
|
}, "Confirm"))));
|
|
31504
32879
|
};
|
|
31505
|
-
var Title$
|
|
32880
|
+
var Title$5 = /*#__PURE__*/styled.h1.withConfig({
|
|
31506
32881
|
displayName: "GemSelector__Title",
|
|
31507
32882
|
componentId: "sc-gbt8g4-0"
|
|
31508
32883
|
})(["font-size:0.8rem;color:", " !important;"], uiColors.yellow);
|
|
@@ -31510,7 +32885,7 @@ var Subtitle = /*#__PURE__*/styled.h2.withConfig({
|
|
|
31510
32885
|
displayName: "GemSelector__Subtitle",
|
|
31511
32886
|
componentId: "sc-gbt8g4-1"
|
|
31512
32887
|
})(["font-size:0.6rem;color:", ";margin:0;"], uiColors.white);
|
|
31513
|
-
var Header$
|
|
32888
|
+
var Header$4 = /*#__PURE__*/styled.div.withConfig({
|
|
31514
32889
|
displayName: "GemSelector__Header",
|
|
31515
32890
|
componentId: "sc-gbt8g4-2"
|
|
31516
32891
|
})(["text-align:center;padding:5px;border-bottom:2px solid #444;"]);
|
|
@@ -31575,7 +32950,7 @@ var ItemSelector = function ItemSelector(_ref) {
|
|
|
31575
32950
|
style: {
|
|
31576
32951
|
width: '100%'
|
|
31577
32952
|
}
|
|
31578
|
-
}, React.createElement(Title$
|
|
32953
|
+
}, React.createElement(Title$6, null, 'Harvesting instruments'), React.createElement(Subtitle$1, null, 'Use the tool, you need it'), React.createElement("hr", {
|
|
31579
32954
|
className: "golden"
|
|
31580
32955
|
})), React.createElement(RadioInputScroller$1, null, options == null ? void 0 : options.map(function (option, index) {
|
|
31581
32956
|
return React.createElement(RadioOptionsWrapper$1, {
|
|
@@ -31604,7 +32979,7 @@ var ItemSelector = function ItemSelector(_ref) {
|
|
|
31604
32979
|
buttonType: ButtonTypes.RPGUIButton
|
|
31605
32980
|
}, "Select")));
|
|
31606
32981
|
};
|
|
31607
|
-
var Title$
|
|
32982
|
+
var Title$6 = /*#__PURE__*/styled.h1.withConfig({
|
|
31608
32983
|
displayName: "ItemSelector__Title",
|
|
31609
32984
|
componentId: "sc-gptoxp-0"
|
|
31610
32985
|
})(["font-size:0.6rem;color:yellow !important;"]);
|
|
@@ -31710,15 +33085,15 @@ var Leaderboard = function Leaderboard(props) {
|
|
|
31710
33085
|
option: itemType
|
|
31711
33086
|
};
|
|
31712
33087
|
});
|
|
31713
|
-
return React.createElement(React.Fragment, null, React.createElement(WrapperContainer, null, React.createElement(StyledDropdown, {
|
|
33088
|
+
return React.createElement(React.Fragment, null, React.createElement(WrapperContainer, null, React.createElement(StyledDropdown$1, {
|
|
31714
33089
|
options: rankTypeOptions,
|
|
31715
33090
|
onChange: onChangeRankType,
|
|
31716
33091
|
width: "80%"
|
|
31717
|
-
}), rankType === 'Class' ? React.createElement(StyledDropdown, {
|
|
33092
|
+
}), rankType === 'Class' ? React.createElement(StyledDropdown$1, {
|
|
31718
33093
|
options: classTypeOptions,
|
|
31719
33094
|
onChange: onChangeClassType,
|
|
31720
33095
|
width: "100%"
|
|
31721
|
-
}) : null, rankType === 'Skill' ? React.createElement(StyledDropdown, {
|
|
33096
|
+
}) : null, rankType === 'Skill' ? React.createElement(StyledDropdown$1, {
|
|
31722
33097
|
options: skillTypeOptions,
|
|
31723
33098
|
onChange: onChangeSkillType,
|
|
31724
33099
|
width: "100%"
|
|
@@ -31734,7 +33109,7 @@ var WrapperContainer = /*#__PURE__*/styled.div.withConfig({
|
|
|
31734
33109
|
displayName: "Leaderboard__WrapperContainer",
|
|
31735
33110
|
componentId: "sc-1wdsq7i-0"
|
|
31736
33111
|
})(["display:grid;grid-template-columns:50% 50%;justify-content:space-between;width:calc(100% - 40px);margin-left:10px;.rpgui-content .rpgui-dropdown-imp-header{padding:0px 10px 0 !important;}"]);
|
|
31737
|
-
var StyledDropdown = /*#__PURE__*/styled(Dropdown).withConfig({
|
|
33112
|
+
var StyledDropdown$1 = /*#__PURE__*/styled(Dropdown).withConfig({
|
|
31738
33113
|
displayName: "Leaderboard__StyledDropdown",
|
|
31739
33114
|
componentId: "sc-1wdsq7i-1"
|
|
31740
33115
|
})(["margin:3px !important;width:170px !important;"]);
|
|
@@ -31752,7 +33127,7 @@ var ListMenu = function ListMenu(_ref) {
|
|
|
31752
33127
|
onSelected = _ref.onSelected,
|
|
31753
33128
|
x = _ref.x,
|
|
31754
33129
|
y = _ref.y;
|
|
31755
|
-
return React.createElement(Container$
|
|
33130
|
+
return React.createElement(Container$u, {
|
|
31756
33131
|
x: x,
|
|
31757
33132
|
y: y
|
|
31758
33133
|
}, React.createElement("ul", {
|
|
@@ -31769,7 +33144,7 @@ var ListMenu = function ListMenu(_ref) {
|
|
|
31769
33144
|
}, (params == null ? void 0 : params.text) || 'No text');
|
|
31770
33145
|
})));
|
|
31771
33146
|
};
|
|
31772
|
-
var Container$
|
|
33147
|
+
var Container$u = /*#__PURE__*/styled.div.withConfig({
|
|
31773
33148
|
displayName: "ListMenu__Container",
|
|
31774
33149
|
componentId: "sc-i9097t-0"
|
|
31775
33150
|
})(["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) {
|
|
@@ -31788,7 +33163,7 @@ var Pager = function Pager(_ref) {
|
|
|
31788
33163
|
itemsPerPage = _ref.itemsPerPage,
|
|
31789
33164
|
onPageChange = _ref.onPageChange;
|
|
31790
33165
|
var totalPages = Math.ceil(totalItems / itemsPerPage);
|
|
31791
|
-
return React.createElement(Container$
|
|
33166
|
+
return React.createElement(Container$v, null, React.createElement("p", null, "Total items: ", totalItems), React.createElement(PagerContainer, null, React.createElement("button", {
|
|
31792
33167
|
disabled: currentPage === 1,
|
|
31793
33168
|
onPointerDown: function onPointerDown() {
|
|
31794
33169
|
return onPageChange(Math.max(currentPage - 1, 1));
|
|
@@ -31802,7 +33177,7 @@ var Pager = function Pager(_ref) {
|
|
|
31802
33177
|
}
|
|
31803
33178
|
}, '>')));
|
|
31804
33179
|
};
|
|
31805
|
-
var Container$
|
|
33180
|
+
var Container$v = /*#__PURE__*/styled.div.withConfig({
|
|
31806
33181
|
displayName: "Pager__Container",
|
|
31807
33182
|
componentId: "sc-1ekmf50-0"
|
|
31808
33183
|
})(["display:flex;flex-direction:column;align-items:center;p{margin:0;font-size:", ";}"], uiFonts.size.xsmall);
|
|
@@ -31815,7 +33190,7 @@ var ConfirmModal = function ConfirmModal(_ref) {
|
|
|
31815
33190
|
var onConfirm = _ref.onConfirm,
|
|
31816
33191
|
onClose = _ref.onClose,
|
|
31817
33192
|
message = _ref.message;
|
|
31818
|
-
return React.createElement(ModalPortal, null, React.createElement(Background, null), React.createElement(Container$
|
|
33193
|
+
return React.createElement(ModalPortal, null, React.createElement(Background, null), React.createElement(Container$w, {
|
|
31819
33194
|
onPointerDown: onClose
|
|
31820
33195
|
}, React.createElement(DraggableContainer, {
|
|
31821
33196
|
width: "auto",
|
|
@@ -31838,7 +33213,7 @@ var Background = /*#__PURE__*/styled.div.withConfig({
|
|
|
31838
33213
|
displayName: "ConfirmModal__Background",
|
|
31839
33214
|
componentId: "sc-11qkyu1-0"
|
|
31840
33215
|
})(["position:absolute;width:100%;height:100%;background-color:#000000;opacity:0.5;left:0;top:0;z-index:1000;"]);
|
|
31841
|
-
var Container$
|
|
33216
|
+
var Container$w = /*#__PURE__*/styled.div.withConfig({
|
|
31842
33217
|
displayName: "ConfirmModal__Container",
|
|
31843
33218
|
componentId: "sc-11qkyu1-1"
|
|
31844
33219
|
})(["position:absolute;width:100%;height:100%;left:0;top:0;display:flex;justify-content:center;align-items:center;z-index:1001;"]);
|
|
@@ -31864,7 +33239,7 @@ var MarketplaceRows = function MarketplaceRows(_ref) {
|
|
|
31864
33239
|
var renderGems = function renderGems(item) {
|
|
31865
33240
|
return item.attachedGems && onRenderGems(item);
|
|
31866
33241
|
};
|
|
31867
|
-
return React.createElement(MarketplaceWrapper, null, React.createElement(ItemIconContainer, null, React.createElement(SpriteContainer$
|
|
33242
|
+
return React.createElement(MarketplaceWrapper, null, React.createElement(ItemIconContainer, null, React.createElement(SpriteContainer$3, null, React.createElement(ItemInfoWrapper, {
|
|
31868
33243
|
item: item,
|
|
31869
33244
|
atlasIMG: atlasIMG,
|
|
31870
33245
|
atlasJSON: atlasJSON,
|
|
@@ -31930,7 +33305,7 @@ var GoldContainer = /*#__PURE__*/styled.div.withConfig({
|
|
|
31930
33305
|
displayName: "MarketplaceRows__GoldContainer",
|
|
31931
33306
|
componentId: "sc-wmpr1o-5"
|
|
31932
33307
|
})(["position:relative;top:-0.5rem;left:0.5rem;"]);
|
|
31933
|
-
var SpriteContainer$
|
|
33308
|
+
var SpriteContainer$3 = /*#__PURE__*/styled.div.withConfig({
|
|
31934
33309
|
displayName: "MarketplaceRows__SpriteContainer",
|
|
31935
33310
|
componentId: "sc-wmpr1o-6"
|
|
31936
33311
|
})(["position:relative;left:0.5rem;"]);
|
|
@@ -32115,15 +33490,15 @@ var BuyPanel = function BuyPanel(_ref) {
|
|
|
32115
33490
|
className: "big-input",
|
|
32116
33491
|
onBlur: enableHotkeys,
|
|
32117
33492
|
onFocus: disableHotkeys
|
|
32118
|
-
}))), React.createElement(WrapperContainer$1, null, React.createElement(StyledDropdown$
|
|
33493
|
+
}))), React.createElement(WrapperContainer$1, null, React.createElement(StyledDropdown$2, {
|
|
32119
33494
|
options: itemTypeOptions,
|
|
32120
33495
|
onChange: onChangeType,
|
|
32121
33496
|
width: "95%"
|
|
32122
|
-
}), React.createElement(StyledDropdown$
|
|
33497
|
+
}), React.createElement(StyledDropdown$2, {
|
|
32123
33498
|
options: itemRarityOptions,
|
|
32124
33499
|
onChange: onChangeRarity,
|
|
32125
33500
|
width: "95%"
|
|
32126
|
-
}), React.createElement(StyledDropdown$
|
|
33501
|
+
}), React.createElement(StyledDropdown$2, {
|
|
32127
33502
|
options: orderByOptions,
|
|
32128
33503
|
onChange: onChangeOrder,
|
|
32129
33504
|
width: "100%"
|
|
@@ -32167,7 +33542,7 @@ var ItemComponentScrollWrapper$1 = /*#__PURE__*/styled.div.withConfig({
|
|
|
32167
33542
|
displayName: "BuyPanel__ItemComponentScrollWrapper",
|
|
32168
33543
|
componentId: "sc-1si8t7i-4"
|
|
32169
33544
|
})(["overflow-y:scroll;height:390px;width:100%;margin-top:1rem;@media (max-width:950px){height:250px;}"]);
|
|
32170
|
-
var StyledDropdown$
|
|
33545
|
+
var StyledDropdown$2 = /*#__PURE__*/styled(Dropdown).withConfig({
|
|
32171
33546
|
displayName: "BuyPanel__StyledDropdown",
|
|
32172
33547
|
componentId: "sc-1si8t7i-5"
|
|
32173
33548
|
})(["margin:3px !important;width:170px !important;"]);
|
|
@@ -32363,13 +33738,13 @@ var TabBody = function TabBody(_ref) {
|
|
|
32363
33738
|
children = _ref.children,
|
|
32364
33739
|
styles = _ref.styles,
|
|
32365
33740
|
centerContent = _ref.centerContent;
|
|
32366
|
-
return React.createElement(Container$
|
|
33741
|
+
return React.createElement(Container$x, {
|
|
32367
33742
|
styles: styles,
|
|
32368
33743
|
"data-tab-id": id,
|
|
32369
33744
|
centerContent: centerContent
|
|
32370
33745
|
}, children);
|
|
32371
33746
|
};
|
|
32372
|
-
var Container$
|
|
33747
|
+
var Container$x = /*#__PURE__*/styled.div.withConfig({
|
|
32373
33748
|
displayName: "TabBody__Container",
|
|
32374
33749
|
componentId: "sc-196oof2-0"
|
|
32375
33750
|
})(["width:", ";height:", ";overflow-y:auto;display:", ";justify-content:", ";align-items:", ";"], function (props) {
|
|
@@ -32515,7 +33890,7 @@ var PartyCreate = function PartyCreate(_ref) {
|
|
|
32515
33890
|
style: {
|
|
32516
33891
|
width: '100%'
|
|
32517
33892
|
}
|
|
32518
|
-
}, React.createElement(Title$
|
|
33893
|
+
}, React.createElement(Title$7, null, "Create Party"), React.createElement("hr", {
|
|
32519
33894
|
className: "golden"
|
|
32520
33895
|
}))), React.createElement("h1", null, "Type your party name"), React.createElement(Input, {
|
|
32521
33896
|
placeholder: "Type party name",
|
|
@@ -32538,7 +33913,7 @@ var Wrapper$2 = /*#__PURE__*/styled.div.withConfig({
|
|
|
32538
33913
|
displayName: "PartyCreate__Wrapper",
|
|
32539
33914
|
componentId: "sc-13brop0-0"
|
|
32540
33915
|
})(["display:flex;flex-direction:column;width:100%;"]);
|
|
32541
|
-
var Title$
|
|
33916
|
+
var Title$7 = /*#__PURE__*/styled.h1.withConfig({
|
|
32542
33917
|
displayName: "PartyCreate__Title",
|
|
32543
33918
|
componentId: "sc-13brop0-1"
|
|
32544
33919
|
})(["font-size:0.6rem;color:", " !important;"], uiColors.yellow);
|
|
@@ -32587,7 +33962,7 @@ var PartyDashboard = function PartyDashboard(_ref) {
|
|
|
32587
33962
|
style: {
|
|
32588
33963
|
width: '100%'
|
|
32589
33964
|
}
|
|
32590
|
-
}, React.createElement(Title$
|
|
33965
|
+
}, React.createElement(Title$8, null, "Party Dashboard"), React.createElement(Button, {
|
|
32591
33966
|
buttonType: ButtonTypes.RPGUIButton
|
|
32592
33967
|
}, "Create"), React.createElement("hr", {
|
|
32593
33968
|
className: "golden"
|
|
@@ -32614,7 +33989,7 @@ var RowsWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
|
32614
33989
|
displayName: "PartyDashboard__RowsWrapper",
|
|
32615
33990
|
componentId: "sc-16cm41r-1"
|
|
32616
33991
|
})(["overflow-y:scroll;-webkit-overflow-scrolling:touch;width:100%;height:200px;"]);
|
|
32617
|
-
var Title$
|
|
33992
|
+
var Title$8 = /*#__PURE__*/styled.h1.withConfig({
|
|
32618
33993
|
displayName: "PartyDashboard__Title",
|
|
32619
33994
|
componentId: "sc-16cm41r-2"
|
|
32620
33995
|
})(["font-size:0.6rem;color:", " !important;"], uiColors.yellow);
|
|
@@ -32651,7 +34026,7 @@ var PartyInvite = function PartyInvite(_ref) {
|
|
|
32651
34026
|
style: {
|
|
32652
34027
|
width: '100%'
|
|
32653
34028
|
}
|
|
32654
|
-
}, React.createElement(Title$
|
|
34029
|
+
}, React.createElement(Title$9, null, "Invite for Party"), React.createElement("hr", {
|
|
32655
34030
|
className: "golden"
|
|
32656
34031
|
}))), React.createElement(RowsWrapper$1, {
|
|
32657
34032
|
className: "playersRows"
|
|
@@ -32670,7 +34045,7 @@ var Wrapper$4 = /*#__PURE__*/styled.div.withConfig({
|
|
|
32670
34045
|
displayName: "PartyInvite__Wrapper",
|
|
32671
34046
|
componentId: "sc-eu8ggt-0"
|
|
32672
34047
|
})(["display:flex;flex-direction:column;width:100%;"]);
|
|
32673
|
-
var Title$
|
|
34048
|
+
var Title$9 = /*#__PURE__*/styled.h1.withConfig({
|
|
32674
34049
|
displayName: "PartyInvite__Title",
|
|
32675
34050
|
componentId: "sc-eu8ggt-1"
|
|
32676
34051
|
})(["font-size:0.6rem;color:", " !important;"], uiColors.yellow);
|
|
@@ -33022,7 +34397,7 @@ var ProgressBar = function ProgressBar(_ref) {
|
|
|
33022
34397
|
}
|
|
33023
34398
|
return value * 100 / max;
|
|
33024
34399
|
};
|
|
33025
|
-
return React.createElement(Container$
|
|
34400
|
+
return React.createElement(Container$y, {
|
|
33026
34401
|
className: "rpgui-progress",
|
|
33027
34402
|
"data-value": calculatePercentageValue(max, value) / 100,
|
|
33028
34403
|
"data-rpguitype": "progress",
|
|
@@ -33052,7 +34427,7 @@ var TextOverlay$1 = /*#__PURE__*/styled.div.withConfig({
|
|
|
33052
34427
|
displayName: "ProgressBar__TextOverlay",
|
|
33053
34428
|
componentId: "sc-qa6fzh-1"
|
|
33054
34429
|
})(["width:100%;position:relative;"]);
|
|
33055
|
-
var Container$
|
|
34430
|
+
var Container$y = /*#__PURE__*/styled.div.withConfig({
|
|
33056
34431
|
displayName: "ProgressBar__Container",
|
|
33057
34432
|
componentId: "sc-qa6fzh-2"
|
|
33058
34433
|
})(["display:flex;flex-direction:column;min-width:", "px;width:", "%;justify-content:start;align-items:flex-start;", " @media (max-width:950px){transform:scale(", ");}"], function (props) {
|
|
@@ -33108,11 +34483,11 @@ var QuestInfo = function QuestInfo(_ref) {
|
|
|
33108
34483
|
onPointerDown: onRightClick
|
|
33109
34484
|
}), React.createElement(QuestContainer, null, React.createElement(TitleContainer$1, {
|
|
33110
34485
|
className: "drag-handler"
|
|
33111
|
-
}, React.createElement(Title$
|
|
34486
|
+
}, React.createElement(Title$a, null, React.createElement(Thumbnail, {
|
|
33112
34487
|
src: quests[currentIndex].thumbnail || img$8
|
|
33113
34488
|
}), quests[currentIndex].title), React.createElement(QuestSplitDiv, null, React.createElement("hr", {
|
|
33114
34489
|
className: "golden"
|
|
33115
|
-
}))), React.createElement(Content, null, React.createElement("p", null, quests[currentIndex].description)), React.createElement(QuestColumn, {
|
|
34490
|
+
}))), React.createElement(Content$3, null, React.createElement("p", null, quests[currentIndex].description)), React.createElement(QuestColumn, {
|
|
33116
34491
|
className: "dark-background",
|
|
33117
34492
|
justifyContent: "flex-end"
|
|
33118
34493
|
}, buttons && buttons.map(function (button, index) {
|
|
@@ -33127,11 +34502,11 @@ var QuestInfo = function QuestInfo(_ref) {
|
|
|
33127
34502
|
}, button.title);
|
|
33128
34503
|
})))) : React.createElement(QuestsContainer, null, React.createElement(QuestContainer, null, React.createElement(TitleContainer$1, {
|
|
33129
34504
|
className: "drag-handler"
|
|
33130
|
-
}, React.createElement(Title$
|
|
34505
|
+
}, React.createElement(Title$a, null, React.createElement(Thumbnail, {
|
|
33131
34506
|
src: quests[0].thumbnail || img$8
|
|
33132
34507
|
}), quests[0].title), React.createElement(QuestSplitDiv, null, React.createElement("hr", {
|
|
33133
34508
|
className: "golden"
|
|
33134
|
-
}))), React.createElement(Content, null, React.createElement("p", null, quests[0].description)), React.createElement(QuestColumn, {
|
|
34509
|
+
}))), React.createElement(Content$3, null, React.createElement("p", null, quests[0].description)), React.createElement(QuestColumn, {
|
|
33135
34510
|
className: "dark-background",
|
|
33136
34511
|
justifyContent: "flex-end"
|
|
33137
34512
|
}, buttons && buttons.map(function (button, index) {
|
|
@@ -33158,7 +34533,7 @@ var QuestsContainer = /*#__PURE__*/styled.div.withConfig({
|
|
|
33158
34533
|
displayName: "QuestInfo__QuestsContainer",
|
|
33159
34534
|
componentId: "sc-1wccpiy-2"
|
|
33160
34535
|
})(["display:flex;align-items:center;"]);
|
|
33161
|
-
var Content = /*#__PURE__*/styled.div.withConfig({
|
|
34536
|
+
var Content$3 = /*#__PURE__*/styled.div.withConfig({
|
|
33162
34537
|
displayName: "QuestInfo__Content",
|
|
33163
34538
|
componentId: "sc-1wccpiy-3"
|
|
33164
34539
|
})(["padding:18px;h1{text-align:left;margin:14px 0px;}"]);
|
|
@@ -33174,7 +34549,7 @@ var TitleContainer$1 = /*#__PURE__*/styled.div.withConfig({
|
|
|
33174
34549
|
displayName: "QuestInfo__TitleContainer",
|
|
33175
34550
|
componentId: "sc-1wccpiy-6"
|
|
33176
34551
|
})(["width:100%;display:flex;flex-wrap:wrap;justify-content:flex-start;align-items:center;margin-top:1rem;"]);
|
|
33177
|
-
var Title$
|
|
34552
|
+
var Title$a = /*#__PURE__*/styled.h1.withConfig({
|
|
33178
34553
|
displayName: "QuestInfo__Title",
|
|
33179
34554
|
componentId: "sc-1wccpiy-7"
|
|
33180
34555
|
})(["color:white;z-index:22;font-size:", " !important;color:", " !important;"], uiFonts.size.medium, uiColors.yellow);
|
|
@@ -33193,19 +34568,19 @@ var QuestList = function QuestList(_ref) {
|
|
|
33193
34568
|
return React.createElement(QuestCard, {
|
|
33194
34569
|
key: i,
|
|
33195
34570
|
style: styles == null ? void 0 : styles.card
|
|
33196
|
-
}, React.createElement(QuestItem, null, React.createElement(Label, {
|
|
34571
|
+
}, React.createElement(QuestItem, null, React.createElement(Label$2, {
|
|
33197
34572
|
style: styles == null ? void 0 : styles.label
|
|
33198
|
-
}, "Title:"), React.createElement(Value, {
|
|
34573
|
+
}, "Title:"), React.createElement(Value$2, {
|
|
33199
34574
|
style: styles == null ? void 0 : styles.value
|
|
33200
|
-
}, formatQuestText(quest.title))), React.createElement(QuestItem, null, React.createElement(Label, {
|
|
34575
|
+
}, formatQuestText(quest.title))), React.createElement(QuestItem, null, React.createElement(Label$2, {
|
|
33201
34576
|
style: styles == null ? void 0 : styles.label
|
|
33202
|
-
}, "Status:"), React.createElement(Value, {
|
|
34577
|
+
}, "Status:"), React.createElement(Value$2, {
|
|
33203
34578
|
style: _extends({}, styles == null ? void 0 : styles.value, {
|
|
33204
34579
|
color: getQuestStatusColor(quest.status)
|
|
33205
34580
|
})
|
|
33206
|
-
}, (_formatQuestStatus = formatQuestStatus(quest.status)) != null ? _formatQuestStatus : 'Unknown')), React.createElement(QuestItem, null, React.createElement(Label, {
|
|
34581
|
+
}, (_formatQuestStatus = formatQuestStatus(quest.status)) != null ? _formatQuestStatus : 'Unknown')), React.createElement(QuestItem, null, React.createElement(Label$2, {
|
|
33207
34582
|
style: styles == null ? void 0 : styles.label
|
|
33208
|
-
}, "Description:"), React.createElement(Value, {
|
|
34583
|
+
}, "Description:"), React.createElement(Value$2, {
|
|
33209
34584
|
style: styles == null ? void 0 : styles.value
|
|
33210
34585
|
}, quest.description)));
|
|
33211
34586
|
}) : React.createElement(NoQuestContainer, null, React.createElement("p", null, "There are no ongoing quests")));
|
|
@@ -33222,11 +34597,11 @@ var QuestItem = /*#__PURE__*/styled.div.withConfig({
|
|
|
33222
34597
|
displayName: "QuestList__QuestItem",
|
|
33223
34598
|
componentId: "sc-1c1y8sp-2"
|
|
33224
34599
|
})(["display:flex;margin-bottom:5px;flex-wrap:wrap;&:last-child{margin-bottom:0;}"]);
|
|
33225
|
-
var Label = /*#__PURE__*/styled.span.withConfig({
|
|
34600
|
+
var Label$2 = /*#__PURE__*/styled.span.withConfig({
|
|
33226
34601
|
displayName: "QuestList__Label",
|
|
33227
34602
|
componentId: "sc-1c1y8sp-3"
|
|
33228
34603
|
})(["font-weight:bold;color:", " !important;margin-right:10px;"], uiColors.yellow);
|
|
33229
|
-
var Value = /*#__PURE__*/styled.span.withConfig({
|
|
34604
|
+
var Value$2 = /*#__PURE__*/styled.span.withConfig({
|
|
33230
34605
|
displayName: "QuestList__Value",
|
|
33231
34606
|
componentId: "sc-1c1y8sp-4"
|
|
33232
34607
|
})(["flex-grow:1;color:", ";word-wrap:break-word;"], uiColors.white);
|
|
@@ -33293,9 +34668,9 @@ var InputRadio = function InputRadio(_ref) {
|
|
|
33293
34668
|
|
|
33294
34669
|
var RPGUIScrollbar = function RPGUIScrollbar(_ref) {
|
|
33295
34670
|
var children = _ref.children;
|
|
33296
|
-
return React.createElement(Container$
|
|
34671
|
+
return React.createElement(Container$z, null, children);
|
|
33297
34672
|
};
|
|
33298
|
-
var Container$
|
|
34673
|
+
var Container$z = /*#__PURE__*/styled.div.withConfig({
|
|
33299
34674
|
displayName: "RPGUIScrollbar__Container",
|
|
33300
34675
|
componentId: "sc-p3msmb-0"
|
|
33301
34676
|
})([".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;}"]);
|
|
@@ -33451,7 +34826,7 @@ var SimpleProgressBar = function SimpleProgressBar(_ref) {
|
|
|
33451
34826
|
margin = _ref$margin === void 0 ? 20 : _ref$margin;
|
|
33452
34827
|
// Ensure the width is at least 1% if value is greater than 0
|
|
33453
34828
|
var width = value > 0 ? Math.max(1, Math.min(100, value)) : 0;
|
|
33454
|
-
return React.createElement(Container$
|
|
34829
|
+
return React.createElement(Container$A, {
|
|
33455
34830
|
className: "simple-progress-bar"
|
|
33456
34831
|
}, React.createElement(ProgressBarContainer, {
|
|
33457
34832
|
margin: margin
|
|
@@ -33460,7 +34835,7 @@ var SimpleProgressBar = function SimpleProgressBar(_ref) {
|
|
|
33460
34835
|
bgColor: bgColor
|
|
33461
34836
|
}))));
|
|
33462
34837
|
};
|
|
33463
|
-
var Container$
|
|
34838
|
+
var Container$A = /*#__PURE__*/styled.div.withConfig({
|
|
33464
34839
|
displayName: "SimpleProgressBar__Container",
|
|
33465
34840
|
componentId: "sc-mbeil3-0"
|
|
33466
34841
|
})(["display:flex;justify-content:center;align-items:center;width:100%;"]);
|
|
@@ -33516,7 +34891,7 @@ var SkillProgressBar = function SkillProgressBar(_ref) {
|
|
|
33516
34891
|
var result = level * (buffAndDebuff / 100);
|
|
33517
34892
|
return result > 0 ? "+" + result.toFixed(2) : "" + result.toFixed(2);
|
|
33518
34893
|
};
|
|
33519
|
-
return React.createElement(React.Fragment, null, React.createElement(ProgressTitle, null, buffAndDebuff !== undefined && React.createElement(React.Fragment, null, buffAndDebuff > 0 ? React.createElement(BuffAndDebuffContainer, null, React.createElement(TitleNameContainer, null, React.createElement(TitleNameBuff, null, skillName), React.createElement(TitleNameBuff, null, "lv ", level, " (", skillsBuffsCalc(level, buffAndDebuff), ")")), React.createElement(TitleNameBuffContainer, null, React.createElement(TitleNameBuff, null, "(+", formatBuffAndDebuff(buffAndDebuff), "%)"))) : buffAndDebuff < 0 ? React.createElement(React.Fragment, null, React.createElement(TitleNameContainer, null, React.createElement(TitleNameDebuff, null, skillName), React.createElement(TitleNameDebuff, null, "lv ", level, " (", skillsBuffsCalc(level, buffAndDebuff), ")")), React.createElement("div", null, React.createElement(TitleNameDebuff, null, "(", formatBuffAndDebuff(buffAndDebuff), "%)"))) : React.createElement(TitleName, null, skillName)), !buffAndDebuff && React.createElement(TitleNameContainer, null, React.createElement(TitleName, null, skillName), React.createElement(ValueDisplay, null, "lv ", level))), React.createElement(ProgressBody, null, React.createElement(ProgressIconContainer, null, atlasIMG && atlasJSON ? React.createElement(SpriteContainer$
|
|
34894
|
+
return React.createElement(React.Fragment, null, React.createElement(ProgressTitle, null, buffAndDebuff !== undefined && React.createElement(React.Fragment, null, buffAndDebuff > 0 ? React.createElement(BuffAndDebuffContainer, null, React.createElement(TitleNameContainer, null, React.createElement(TitleNameBuff, null, skillName), React.createElement(TitleNameBuff, null, "lv ", level, " (", skillsBuffsCalc(level, buffAndDebuff), ")")), React.createElement(TitleNameBuffContainer, null, React.createElement(TitleNameBuff, null, "(+", formatBuffAndDebuff(buffAndDebuff), "%)"))) : buffAndDebuff < 0 ? React.createElement(React.Fragment, null, React.createElement(TitleNameContainer, null, React.createElement(TitleNameDebuff, null, skillName), React.createElement(TitleNameDebuff, null, "lv ", level, " (", skillsBuffsCalc(level, buffAndDebuff), ")")), React.createElement("div", null, React.createElement(TitleNameDebuff, null, "(", formatBuffAndDebuff(buffAndDebuff), "%)"))) : React.createElement(TitleName, null, skillName)), !buffAndDebuff && React.createElement(TitleNameContainer, null, React.createElement(TitleName, null, skillName), React.createElement(ValueDisplay, null, "lv ", level))), React.createElement(ProgressBody, null, React.createElement(ProgressIconContainer, null, atlasIMG && atlasJSON ? React.createElement(SpriteContainer$4, null, React.createElement(ErrorBoundary, null, React.createElement(SpriteFromAtlas, {
|
|
33520
34895
|
atlasIMG: atlasIMG,
|
|
33521
34896
|
atlasJSON: atlasJSON,
|
|
33522
34897
|
spriteKey: texturePath,
|
|
@@ -33532,7 +34907,7 @@ var ProgressBarWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
|
33532
34907
|
displayName: "SkillProgressBar__ProgressBarWrapper",
|
|
33533
34908
|
componentId: "sc-5vuroc-0"
|
|
33534
34909
|
})(["position:relative;&:hover ", ",&:active ", "{visibility:visible;}width:100%;height:auto;top:8px;"], Tooltip, Tooltip);
|
|
33535
|
-
var SpriteContainer$
|
|
34910
|
+
var SpriteContainer$4 = /*#__PURE__*/styled.div.withConfig({
|
|
33536
34911
|
displayName: "SkillProgressBar__SpriteContainer",
|
|
33537
34912
|
componentId: "sc-5vuroc-1"
|
|
33538
34913
|
})(["position:relative;top:-3px;left:0;"]);
|
|
@@ -33686,7 +35061,7 @@ var SkillsContainer = function SkillsContainer(_ref) {
|
|
|
33686
35061
|
cancelDrag: "#skillsDiv",
|
|
33687
35062
|
scale: scale,
|
|
33688
35063
|
width: "100%"
|
|
33689
|
-
}, onCloseButton && React.createElement(CloseButton$
|
|
35064
|
+
}, onCloseButton && React.createElement(CloseButton$7, {
|
|
33690
35065
|
onPointerDown: onCloseButton
|
|
33691
35066
|
}, "X"), React.createElement(SkillsContainerDiv, {
|
|
33692
35067
|
id: "skillsDiv"
|
|
@@ -33721,7 +35096,7 @@ var SkillSplitDiv = /*#__PURE__*/styled.div.withConfig({
|
|
|
33721
35096
|
displayName: "SkillsContainer__SkillSplitDiv",
|
|
33722
35097
|
componentId: "sc-1g0c67q-2"
|
|
33723
35098
|
})(["width:100%;font-size:11px;hr{margin:0;margin-bottom:1rem;padding:0px;}p{margin-bottom:0px;}"]);
|
|
33724
|
-
var CloseButton$
|
|
35099
|
+
var CloseButton$7 = /*#__PURE__*/styled.div.withConfig({
|
|
33725
35100
|
displayName: "SkillsContainer__CloseButton",
|
|
33726
35101
|
componentId: "sc-1g0c67q-3"
|
|
33727
35102
|
})(["position:absolute;top:2px;right:2px;color:white;z-index:22;font-size:1.1rem;"]);
|
|
@@ -33793,7 +35168,7 @@ var SocialModal = function SocialModal(_ref) {
|
|
|
33793
35168
|
title: "Social Channels",
|
|
33794
35169
|
width: "500px",
|
|
33795
35170
|
onCloseButton: onClose
|
|
33796
|
-
}, React.createElement(Container$
|
|
35171
|
+
}, React.createElement(Container$B, null, React.createElement(HeaderImage, {
|
|
33797
35172
|
src: img$9,
|
|
33798
35173
|
alt: ""
|
|
33799
35174
|
}), React.createElement(ButtonsContainer$1, null, React.createElement(MainButtons, null, React.createElement(SocialButton$1, {
|
|
@@ -33811,7 +35186,7 @@ var SocialModal = function SocialModal(_ref) {
|
|
|
33811
35186
|
onClick: handleWhatsAppClick
|
|
33812
35187
|
}, React.createElement(FaWhatsapp, null), " Join WhatsApp")))));
|
|
33813
35188
|
};
|
|
33814
|
-
var Container$
|
|
35189
|
+
var Container$B = /*#__PURE__*/styled.div.withConfig({
|
|
33815
35190
|
displayName: "SocialModal__Container",
|
|
33816
35191
|
componentId: "sc-tbjhp9-0"
|
|
33817
35192
|
})(["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% );}"]);
|
|
@@ -33847,7 +35222,7 @@ var formatSpellCastingType = function formatSpellCastingType(castingType) {
|
|
|
33847
35222
|
return formattedCastingType;
|
|
33848
35223
|
};
|
|
33849
35224
|
|
|
33850
|
-
var SpellInfo = function SpellInfo(_ref) {
|
|
35225
|
+
var SpellInfo$1 = function SpellInfo(_ref) {
|
|
33851
35226
|
var spell = _ref.spell;
|
|
33852
35227
|
var magicWords = spell.magicWords,
|
|
33853
35228
|
name = spell.name,
|
|
@@ -33857,7 +35232,7 @@ var SpellInfo = function SpellInfo(_ref) {
|
|
|
33857
35232
|
castingType = spell.castingType,
|
|
33858
35233
|
cooldown = spell.cooldown,
|
|
33859
35234
|
maxDistanceGrid = spell.maxDistanceGrid;
|
|
33860
|
-
return React.createElement(Container$
|
|
35235
|
+
return React.createElement(Container$C, null, React.createElement(Header$5, 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", {
|
|
33861
35236
|
className: "label"
|
|
33862
35237
|
}, "Casting Type:"), React.createElement("div", {
|
|
33863
35238
|
className: "value"
|
|
@@ -33881,13 +35256,13 @@ var SpellInfo = function SpellInfo(_ref) {
|
|
|
33881
35256
|
className: "label"
|
|
33882
35257
|
}, "Required Item:"), React.createElement("div", {
|
|
33883
35258
|
className: "value"
|
|
33884
|
-
}, requiredItem))), React.createElement(Description$
|
|
35259
|
+
}, requiredItem))), React.createElement(Description$4, null, description));
|
|
33885
35260
|
};
|
|
33886
|
-
var Container$
|
|
35261
|
+
var Container$C = /*#__PURE__*/styled.div.withConfig({
|
|
33887
35262
|
displayName: "SpellInfo__Container",
|
|
33888
35263
|
componentId: "sc-4hbw3q-0"
|
|
33889
35264
|
})(["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);
|
|
33890
|
-
var Title$
|
|
35265
|
+
var Title$b = /*#__PURE__*/styled.div.withConfig({
|
|
33891
35266
|
displayName: "SpellInfo__Title",
|
|
33892
35267
|
componentId: "sc-4hbw3q-1"
|
|
33893
35268
|
})(["font-size:", ";font-weight:bold;margin-bottom:0.5rem;display:flex;align-items:center;margin:0;"], uiFonts.size.medium);
|
|
@@ -33895,11 +35270,11 @@ var Type$1 = /*#__PURE__*/styled.div.withConfig({
|
|
|
33895
35270
|
displayName: "SpellInfo__Type",
|
|
33896
35271
|
componentId: "sc-4hbw3q-2"
|
|
33897
35272
|
})(["font-size:", ";margin-top:0.2rem;color:", ";"], uiFonts.size.small, uiColors.lightGray);
|
|
33898
|
-
var Description$
|
|
35273
|
+
var Description$4 = /*#__PURE__*/styled.div.withConfig({
|
|
33899
35274
|
displayName: "SpellInfo__Description",
|
|
33900
35275
|
componentId: "sc-4hbw3q-3"
|
|
33901
35276
|
})(["margin-top:1.5rem;font-size:", ";color:", ";font-style:italic;"], uiFonts.size.small, uiColors.lightGray);
|
|
33902
|
-
var Header$
|
|
35277
|
+
var Header$5 = /*#__PURE__*/styled.div.withConfig({
|
|
33903
35278
|
displayName: "SpellInfo__Header",
|
|
33904
35279
|
componentId: "sc-4hbw3q-4"
|
|
33905
35280
|
})(["display:flex;align-items:center;justify-content:space-between;margin-bottom:0.5rem;"]);
|
|
@@ -33913,7 +35288,7 @@ var SpellInfoDisplay = function SpellInfoDisplay(_ref) {
|
|
|
33913
35288
|
isMobile = _ref.isMobile;
|
|
33914
35289
|
return React.createElement(Flex$3, {
|
|
33915
35290
|
"$isMobile": isMobile
|
|
33916
|
-
}, React.createElement(SpellInfo, {
|
|
35291
|
+
}, React.createElement(SpellInfo$1, {
|
|
33917
35292
|
spell: spell
|
|
33918
35293
|
}));
|
|
33919
35294
|
};
|
|
@@ -33937,7 +35312,7 @@ var MobileSpellTooltip = function MobileSpellTooltip(_ref) {
|
|
|
33937
35312
|
var _ref$current;
|
|
33938
35313
|
(_ref$current = ref.current) == null ? void 0 : _ref$current.classList.add('fadeOut');
|
|
33939
35314
|
};
|
|
33940
|
-
return React.createElement(ModalPortal, null, React.createElement(Container$
|
|
35315
|
+
return React.createElement(ModalPortal, null, React.createElement(Container$D, {
|
|
33941
35316
|
ref: ref,
|
|
33942
35317
|
onTouchEnd: function onTouchEnd() {
|
|
33943
35318
|
handleFadeOut();
|
|
@@ -33962,7 +35337,7 @@ var MobileSpellTooltip = function MobileSpellTooltip(_ref) {
|
|
|
33962
35337
|
}, option.text);
|
|
33963
35338
|
}))));
|
|
33964
35339
|
};
|
|
33965
|
-
var Container$
|
|
35340
|
+
var Container$D = /*#__PURE__*/styled.div.withConfig({
|
|
33966
35341
|
displayName: "MobileSpellTooltip__Container",
|
|
33967
35342
|
componentId: "sc-6p7uvr-0"
|
|
33968
35343
|
})(["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;}"]);
|
|
@@ -34003,13 +35378,13 @@ var MagicTooltip = function MagicTooltip(_ref) {
|
|
|
34003
35378
|
}
|
|
34004
35379
|
return;
|
|
34005
35380
|
}, []);
|
|
34006
|
-
return React.createElement(ModalPortal, null, React.createElement(Container$
|
|
35381
|
+
return React.createElement(ModalPortal, null, React.createElement(Container$E, {
|
|
34007
35382
|
ref: ref
|
|
34008
35383
|
}, React.createElement(SpellInfoDisplay, {
|
|
34009
35384
|
spell: spell
|
|
34010
35385
|
})));
|
|
34011
35386
|
};
|
|
34012
|
-
var Container$
|
|
35387
|
+
var Container$E = /*#__PURE__*/styled.div.withConfig({
|
|
34013
35388
|
displayName: "SpellTooltip__Container",
|
|
34014
35389
|
componentId: "sc-1go0gwg-0"
|
|
34015
35390
|
})(["position:absolute;z-index:100;pointer-events:none;left:0;top:0;opacity:0;transition:opacity 0.08s;"]);
|
|
@@ -34082,11 +35457,11 @@ var Spell = function Spell(_ref) {
|
|
|
34082
35457
|
var IMAGE_SCALE = 2;
|
|
34083
35458
|
return React.createElement(SpellInfoWrapper, {
|
|
34084
35459
|
spell: spell
|
|
34085
|
-
}, React.createElement(Container$
|
|
35460
|
+
}, React.createElement(Container$F, {
|
|
34086
35461
|
onPointerUp: onPointerUp == null ? void 0 : onPointerUp.bind(null, spellKey),
|
|
34087
35462
|
isSettingShortcut: isSettingShortcut && !disabled,
|
|
34088
35463
|
className: "spell"
|
|
34089
|
-
}, disabled && React.createElement(Overlay, null, charMagicLevel < minMagicLevelRequired ? 'Low magic level' : manaCost > charMana && 'No mana'), React.createElement(SpellImage, null, activeCooldown && activeCooldown > 0 ? React.createElement("span", {
|
|
35464
|
+
}, disabled && React.createElement(Overlay$1, null, charMagicLevel < minMagicLevelRequired ? 'Low magic level' : manaCost > charMana && 'No mana'), React.createElement(SpellImage, null, activeCooldown && activeCooldown > 0 ? React.createElement("span", {
|
|
34090
35465
|
className: "cooldown"
|
|
34091
35466
|
}, activeCooldown.toFixed(activeCooldown > 10 ? 0 : 1)) : null, React.createElement(SpriteFromAtlas, {
|
|
34092
35467
|
atlasIMG: atlasIMG,
|
|
@@ -34095,13 +35470,13 @@ var Spell = function Spell(_ref) {
|
|
|
34095
35470
|
imgScale: IMAGE_SCALE,
|
|
34096
35471
|
containerStyle: CONTAINER_STYLE,
|
|
34097
35472
|
centered: true
|
|
34098
|
-
})), React.createElement(Info, null, React.createElement(Title$
|
|
35473
|
+
})), React.createElement(Info, null, React.createElement(Title$c, null, React.createElement("span", null, name), React.createElement("span", {
|
|
34099
35474
|
className: "spell"
|
|
34100
|
-
}, "(", magicWords, ")")), React.createElement(Description$
|
|
35475
|
+
}, "(", magicWords, ")")), React.createElement(Description$5, null, description)), React.createElement(Divider$1, null), React.createElement(Cost, null, React.createElement("span", null, "Mana cost:"), React.createElement("span", {
|
|
34101
35476
|
className: "mana"
|
|
34102
35477
|
}, manaCost))));
|
|
34103
35478
|
};
|
|
34104
|
-
var Container$
|
|
35479
|
+
var Container$F = /*#__PURE__*/styled.button.withConfig({
|
|
34105
35480
|
displayName: "Spell__Container",
|
|
34106
35481
|
componentId: "sc-j96fa2-0"
|
|
34107
35482
|
})(["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) {
|
|
@@ -34116,11 +35491,11 @@ var Info = /*#__PURE__*/styled.span.withConfig({
|
|
|
34116
35491
|
displayName: "Spell__Info",
|
|
34117
35492
|
componentId: "sc-j96fa2-2"
|
|
34118
35493
|
})(["width:0;flex:1;@media (orientation:portrait){display:none;}"]);
|
|
34119
|
-
var Title$
|
|
35494
|
+
var Title$c = /*#__PURE__*/styled.p.withConfig({
|
|
34120
35495
|
displayName: "Spell__Title",
|
|
34121
35496
|
componentId: "sc-j96fa2-3"
|
|
34122
35497
|
})(["display:flex;flex-wrap:wrap;align-items:center;margin-bottom:5px;margin:0;span{font-size:", " !important;font-weight:bold !important;color:", " !important;margin-right:0.5rem;}.spell{font-size:", " !important;font-weight:normal !important;color:", " !important;}"], uiFonts.size.medium, uiColors.yellow, uiFonts.size.small, uiColors.lightGray);
|
|
34123
|
-
var Description$
|
|
35498
|
+
var Description$5 = /*#__PURE__*/styled.div.withConfig({
|
|
34124
35499
|
displayName: "Spell__Description",
|
|
34125
35500
|
componentId: "sc-j96fa2-4"
|
|
34126
35501
|
})(["font-size:", " !important;line-height:1.1 !important;"], uiFonts.size.small);
|
|
@@ -34132,7 +35507,7 @@ var Cost = /*#__PURE__*/styled.p.withConfig({
|
|
|
34132
35507
|
displayName: "Spell__Cost",
|
|
34133
35508
|
componentId: "sc-j96fa2-6"
|
|
34134
35509
|
})(["display:flex;align-items:center;flex-direction:column;gap:0.5rem;div{z-index:1;}.mana{position:relative;font-size:", ";font-weight:bold;z-index:1;&::after{position:absolute;content:'';top:0;left:0;background-color:", ";width:100%;height:100%;border-radius:50%;transform:scale(1.8);filter:blur(10px);z-index:-1;}}"], uiFonts.size.medium, uiColors.blue);
|
|
34135
|
-
var Overlay = /*#__PURE__*/styled.p.withConfig({
|
|
35510
|
+
var Overlay$1 = /*#__PURE__*/styled.p.withConfig({
|
|
34136
35511
|
displayName: "Spell__Overlay",
|
|
34137
35512
|
componentId: "sc-j96fa2-7"
|
|
34138
35513
|
})(["margin:0 !important;position:absolute;top:0;left:0;width:100%;height:100%;border-radius:1rem;display:flex;justify-content:center;align-items:center;color:", ";font-size:", " !important;font-weight:bold;z-index:10;background-color:rgba(0 0 0 / 0.2);"], uiColors.yellow, uiFonts.size.large);
|
|
@@ -34180,7 +35555,7 @@ var Spellbook = function Spellbook(_ref) {
|
|
|
34180
35555
|
height: "inherit",
|
|
34181
35556
|
cancelDrag: "#spellbook-search, #shortcuts_list, .spell",
|
|
34182
35557
|
scale: scale
|
|
34183
|
-
}, React.createElement(Container$
|
|
35558
|
+
}, React.createElement(Container$G, null, React.createElement(Title$d, null, "Learned Spells"), React.createElement(ShortcutsSetter, {
|
|
34184
35559
|
setSettingShortcutIndex: setSettingShortcutIndex,
|
|
34185
35560
|
settingShortcutIndex: settingShortcutIndex,
|
|
34186
35561
|
shortcuts: shortcuts,
|
|
@@ -34196,7 +35571,7 @@ var Spellbook = function Spellbook(_ref) {
|
|
|
34196
35571
|
onFocus: onInputFocus,
|
|
34197
35572
|
onBlur: onInputBlur,
|
|
34198
35573
|
id: "spellbook-search"
|
|
34199
|
-
}), React.createElement(SpellList, null, spellsToDisplay.map(function (spell) {
|
|
35574
|
+
}), React.createElement(SpellList$1, null, spellsToDisplay.map(function (spell) {
|
|
34200
35575
|
return React.createElement(Fragment, {
|
|
34201
35576
|
key: spell.key
|
|
34202
35577
|
}, React.createElement(Spell, Object.assign({
|
|
@@ -34212,15 +35587,15 @@ var Spellbook = function Spellbook(_ref) {
|
|
|
34212
35587
|
}, spell)));
|
|
34213
35588
|
}))));
|
|
34214
35589
|
};
|
|
34215
|
-
var Title$
|
|
35590
|
+
var Title$d = /*#__PURE__*/styled.h1.withConfig({
|
|
34216
35591
|
displayName: "Spellbook__Title",
|
|
34217
35592
|
componentId: "sc-r02nfq-0"
|
|
34218
35593
|
})(["font-size:", " !important;margin-bottom:0 !important;"], uiFonts.size.large);
|
|
34219
|
-
var Container$
|
|
35594
|
+
var Container$G = /*#__PURE__*/styled.div.withConfig({
|
|
34220
35595
|
displayName: "Spellbook__Container",
|
|
34221
35596
|
componentId: "sc-r02nfq-1"
|
|
34222
35597
|
})(["width:100%;height:100%;color:white;display:flex;flex-direction:column;"]);
|
|
34223
|
-
var SpellList = /*#__PURE__*/styled.div.withConfig({
|
|
35598
|
+
var SpellList$1 = /*#__PURE__*/styled.div.withConfig({
|
|
34224
35599
|
displayName: "Spellbook__SpellList",
|
|
34225
35600
|
componentId: "sc-r02nfq-2"
|
|
34226
35601
|
})(["width:100%;min-height:0;flex:1;overflow-y:auto;display:flex;flex-direction:column;gap:1.5rem;margin-top:1rem;"]);
|
|
@@ -34402,7 +35777,7 @@ var TimeWidget = function TimeWidget(_ref) {
|
|
|
34402
35777
|
return React.createElement(Draggable, {
|
|
34403
35778
|
scale: scale,
|
|
34404
35779
|
cancel: ".time-widget-close,.time-widget-container,.time-widget-container *"
|
|
34405
|
-
}, React.createElement(WidgetContainer, null, React.createElement(CloseButton$
|
|
35780
|
+
}, React.createElement(WidgetContainer, null, React.createElement(CloseButton$8, {
|
|
34406
35781
|
onPointerDown: onClose,
|
|
34407
35782
|
className: "time-widget-close"
|
|
34408
35783
|
}, "X"), React.createElement(DayNightContainer, {
|
|
@@ -34419,7 +35794,7 @@ var Time = /*#__PURE__*/styled.div.withConfig({
|
|
|
34419
35794
|
displayName: "TimeWidget__Time",
|
|
34420
35795
|
componentId: "sc-1ja236h-1"
|
|
34421
35796
|
})(["top:0.75rem;right:0.5rem;position:absolute;font-size:", ";color:white;"], uiFonts.size.small);
|
|
34422
|
-
var CloseButton$
|
|
35797
|
+
var CloseButton$8 = /*#__PURE__*/styled.p.withConfig({
|
|
34423
35798
|
displayName: "TimeWidget__CloseButton",
|
|
34424
35799
|
componentId: "sc-1ja236h-2"
|
|
34425
35800
|
})(["position:absolute;top:-0.5rem;margin:0;right:-0.2rem;font-size:", " !important;z-index:1;"], uiFonts.size.small);
|
|
@@ -34528,7 +35903,7 @@ var TradingItemRow = function TradingItemRow(_ref) {
|
|
|
34528
35903
|
}
|
|
34529
35904
|
return null;
|
|
34530
35905
|
};
|
|
34531
|
-
return React.createElement(ItemWrapper, null, React.createElement(ItemIconContainer$1, null, React.createElement(SpriteContainer$
|
|
35906
|
+
return React.createElement(ItemWrapper, null, React.createElement(ItemIconContainer$1, null, React.createElement(SpriteContainer$5, null, React.createElement(ItemInfoWrapper, {
|
|
34532
35907
|
atlasIMG: atlasIMG,
|
|
34533
35908
|
atlasJSON: atlasJSON,
|
|
34534
35909
|
equipmentSet: equipmentSet,
|
|
@@ -34600,7 +35975,7 @@ var ItemIconContainer$1 = /*#__PURE__*/styled.div.withConfig({
|
|
|
34600
35975
|
displayName: "TradingItemRow__ItemIconContainer",
|
|
34601
35976
|
componentId: "sc-mja0b5-3"
|
|
34602
35977
|
})(["display:flex;justify-content:flex-start;align-items:center;flex:0 0 40px;"]);
|
|
34603
|
-
var SpriteContainer$
|
|
35978
|
+
var SpriteContainer$5 = /*#__PURE__*/styled.div.withConfig({
|
|
34604
35979
|
displayName: "TradingItemRow__SpriteContainer",
|
|
34605
35980
|
componentId: "sc-mja0b5-4"
|
|
34606
35981
|
})(["position:relative;top:-0.5rem;left:0;"]);
|
|
@@ -34698,7 +36073,7 @@ var TradingMenu = function TradingMenu(_ref) {
|
|
|
34698
36073
|
width: "500px",
|
|
34699
36074
|
cancelDrag: "#TraderContainer",
|
|
34700
36075
|
scale: scale
|
|
34701
|
-
}, React.createElement(Container$
|
|
36076
|
+
}, React.createElement(Container$H, null, React.createElement(Title$e, null, type.charAt(0).toUpperCase() + type.slice(1), " Menu"), React.createElement("hr", {
|
|
34702
36077
|
className: "golden"
|
|
34703
36078
|
}), React.createElement(ScrollWrapper, {
|
|
34704
36079
|
id: "TraderContainer"
|
|
@@ -34715,7 +36090,7 @@ var TradingMenu = function TradingMenu(_ref) {
|
|
|
34715
36090
|
scale: scale,
|
|
34716
36091
|
isBuy: isBuy()
|
|
34717
36092
|
});
|
|
34718
|
-
})), React.createElement(InfoSection, null, React.createElement(GoldInfo, null, React.createElement("p", null, "Available Gold:"), React.createElement("p", null, "$", characterAvailableGold.toFixed(2))), React.createElement(GoldInfo, null, React.createElement("p", null, "Total:"), React.createElement("p", null, "$", sum)), !hasGoldForSale() ? React.createElement(AlertText, null, "Sorry, not enough money.") : React.createElement(GoldInfo, null, React.createElement("p", null, "Final Gold:"), React.createElement("p", null, "$", getFinalGold().toFixed(2)))), React.createElement(ButtonWrapper$3, null, React.createElement(Button, {
|
|
36093
|
+
})), React.createElement(InfoSection$2, null, React.createElement(GoldInfo, null, React.createElement("p", null, "Available Gold:"), React.createElement("p", null, "$", characterAvailableGold.toFixed(2))), React.createElement(GoldInfo, null, React.createElement("p", null, "Total:"), React.createElement("p", null, "$", sum)), !hasGoldForSale() ? React.createElement(AlertText, null, "Sorry, not enough money.") : React.createElement(GoldInfo, null, React.createElement("p", null, "Final Gold:"), React.createElement("p", null, "$", getFinalGold().toFixed(2)))), React.createElement(ButtonWrapper$3, null, React.createElement(Button, {
|
|
34719
36094
|
buttonType: ButtonTypes.RPGUIButton,
|
|
34720
36095
|
disabled: !hasGoldForSale(),
|
|
34721
36096
|
onPointerDown: function onPointerDown() {
|
|
@@ -34726,11 +36101,11 @@ var TradingMenu = function TradingMenu(_ref) {
|
|
|
34726
36101
|
onPointerDown: onClose
|
|
34727
36102
|
}, "Cancel"))));
|
|
34728
36103
|
};
|
|
34729
|
-
var Container$
|
|
36104
|
+
var Container$H = /*#__PURE__*/styled.div.withConfig({
|
|
34730
36105
|
displayName: "TradingMenu__Container",
|
|
34731
36106
|
componentId: "sc-1wjsz1l-0"
|
|
34732
36107
|
})(["width:100%;"]);
|
|
34733
|
-
var Title$
|
|
36108
|
+
var Title$e = /*#__PURE__*/styled.h1.withConfig({
|
|
34734
36109
|
displayName: "TradingMenu__Title",
|
|
34735
36110
|
componentId: "sc-1wjsz1l-1"
|
|
34736
36111
|
})(["font-size:0.7rem !important;color:yellow !important;text-align:center;"]);
|
|
@@ -34738,7 +36113,7 @@ var ScrollWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
|
34738
36113
|
displayName: "TradingMenu__ScrollWrapper",
|
|
34739
36114
|
componentId: "sc-1wjsz1l-2"
|
|
34740
36115
|
})(["overflow-y:scroll;height:250px;width:100%;margin-top:0.3rem;overflow-x:hidden;padding:0 0.3rem;"]);
|
|
34741
|
-
var InfoSection = /*#__PURE__*/styled.div.withConfig({
|
|
36116
|
+
var InfoSection$2 = /*#__PURE__*/styled.div.withConfig({
|
|
34742
36117
|
displayName: "TradingMenu__InfoSection",
|
|
34743
36118
|
componentId: "sc-1wjsz1l-3"
|
|
34744
36119
|
})(["margin-top:0.3rem;padding:0 0.5rem;"]);
|
|
@@ -34760,11 +36135,11 @@ var Truncate = function Truncate(_ref) {
|
|
|
34760
36135
|
var _ref$maxLines = _ref.maxLines,
|
|
34761
36136
|
maxLines = _ref$maxLines === void 0 ? 1 : _ref$maxLines,
|
|
34762
36137
|
children = _ref.children;
|
|
34763
|
-
return React.createElement(Container$
|
|
36138
|
+
return React.createElement(Container$I, {
|
|
34764
36139
|
maxLines: maxLines
|
|
34765
36140
|
}, children);
|
|
34766
36141
|
};
|
|
34767
|
-
var Container$
|
|
36142
|
+
var Container$I = /*#__PURE__*/styled.div.withConfig({
|
|
34768
36143
|
displayName: "Truncate__Container",
|
|
34769
36144
|
componentId: "sc-6x00qb-0"
|
|
34770
36145
|
})(["display:-webkit-box;max-width:100%;max-height:100%;-webkit-line-clamp:", ";-webkit-box-orient:vertical;overflow:hidden;"], function (props) {
|
|
@@ -34872,7 +36247,7 @@ var TutorialStepper = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
34872
36247
|
};
|
|
34873
36248
|
});
|
|
34874
36249
|
}, [lessons, imageStyle]);
|
|
34875
|
-
return React.createElement(Container$
|
|
36250
|
+
return React.createElement(Container$J, null, React.createElement(Stepper, {
|
|
34876
36251
|
steps: generateLessons,
|
|
34877
36252
|
finalCTAButton: {
|
|
34878
36253
|
label: 'Close',
|
|
@@ -34889,7 +36264,7 @@ var LessonBody = /*#__PURE__*/styled.div.withConfig({
|
|
|
34889
36264
|
displayName: "TutorialStepper__LessonBody",
|
|
34890
36265
|
componentId: "sc-7tgzv2-1"
|
|
34891
36266
|
})([""]);
|
|
34892
|
-
var Container$
|
|
36267
|
+
var Container$J = /*#__PURE__*/styled.div.withConfig({
|
|
34893
36268
|
displayName: "TutorialStepper__Container",
|
|
34894
36269
|
componentId: "sc-7tgzv2-2"
|
|
34895
36270
|
})(["width:80%;max-width:600px;@media (max-width:600px){width:95%;}"]);
|
|
@@ -34910,5 +36285,5 @@ var LessonContainer = /*#__PURE__*/styled.div.withConfig({
|
|
|
34910
36285
|
componentId: "sc-7tgzv2-6"
|
|
34911
36286
|
})(["display:flex;flex-direction:column;justify-content:space-between;min-height:200px;p{font-size:0.7rem !important;}"]);
|
|
34912
36287
|
|
|
34913
|
-
export { ActionButtons, AsyncDropdown, Button, ButtonTypes, CharacterSelection, Chat, ChatDeprecated, ChatRevamp, CheckButton, CheckItem, CircularController, CraftBook, DraggableContainer, Dropdown, DropdownSelectorContainer, DynamicText, EquipmentSet, EquipmentSlotSpriteByType, ErrorBoundary, FriendList, GemSelector, HistoryDialog, ImageCarousel, ImgSide, Input, InputRadio, InternalTabs, ItemContainer$1 as ItemContainer, ItemPropertySimpleHandler, ItemQuantitySelectorModal, ItemSelector, ItemSlot, JoystickDPad, Leaderboard, ListMenu, Marketplace, MarketplaceRows, MultitabType, NPCDialog, NPCDialogType, NPCMultiDialog, PartyCreate, PartyDashboard, PartyInvite, PartyManager, PartyManagerRow, PartyRow, PlayersRow, ProgressBar, PropertySelect, QuantitySelectorModal, QuestInfo, QuestList, QuestionDialog, RPGUIContainer, RPGUIContainerTypes, RPGUIRoot, RangeSlider, RangeSliderType, SelectArrow, Shortcuts, SimpleImageCarousel, SkillProgressBar, SkillsContainer, SocialModal, Spellbook, SpriteFromAtlas, Stepper, TabBody, Table, TableCell, TableHeader, TableRow, TabsContainer, TextArea, TimeWidget, Tooltip, TradingMenu, Truncate, TutorialStepper, UserActionLink, _RPGUI, formatQuestStatus, formatQuestText, getMockedPlayersRowsLeader, getMockedPlayersRowsNotLeader, getQuestStatusColor, mockedPartyManager, mockedPartyRows, mockedPlayersRows, mockedPlayersRows2, useEventListener };
|
|
36288
|
+
export { ActionButtons, AsyncDropdown, Button, ButtonTypes, CharacterSelection, Chat, ChatDeprecated, ChatRevamp, CheckButton, CheckItem, CircularController, CraftBook, DraggableContainer, Dropdown, DropdownSelectorContainer, DynamicText, EquipmentSet, EquipmentSlotSpriteByType, ErrorBoundary, FriendList, GemSelector, HistoryDialog, ImageCarousel, ImgSide, InformationCenter, Input, InputRadio, InternalTabs, ItemContainer$1 as ItemContainer, ItemPropertySimpleHandler, ItemQuantitySelectorModal, ItemSelector, ItemSlot, JoystickDPad, Leaderboard, ListMenu, Marketplace, MarketplaceRows, MultitabType, NPCDialog, NPCDialogType, NPCMultiDialog, PartyCreate, PartyDashboard, PartyInvite, PartyManager, PartyManagerRow, PartyRow, PlayersRow, ProgressBar, PropertySelect, QuantitySelectorModal, QuestInfo, QuestList, QuestionDialog, RPGUIContainer, RPGUIContainerTypes, RPGUIRoot, RangeSlider, RangeSliderType, SelectArrow, Shortcuts, SimpleImageCarousel, SkillProgressBar, SkillsContainer, SocialModal, Spellbook, SpriteFromAtlas, Stepper, TabBody, Table, TableCell, TableHeader, TableRow, TabsContainer, TextArea, TimeWidget, Tooltip, TradingMenu, Truncate, TutorialStepper, UserActionLink, _RPGUI, formatQuestStatus, formatQuestText, getMockedPlayersRowsLeader, getMockedPlayersRowsNotLeader, getQuestStatusColor, mockedPartyManager, mockedPartyRows, mockedPlayersRows, mockedPlayersRows2, useEventListener };
|
|
34914
36289
|
//# sourceMappingURL=long-bow.esm.js.map
|