@rpg-engine/long-bow 0.8.11 → 0.8.13
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 +1488 -103
- 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 +1489 -105
- package/dist/long-bow.esm.js.map +1 -1
- package/dist/utils/colorUtils.d.ts +1 -0
- package/package.json +1 -1
- package/src/components/shared/SpriteFromAtlas.tsx +4 -1
- package/src/index.tsx +1 -0
- package/src/utils/colorUtils.ts +11 -0
|
@@ -593,6 +593,14 @@ var ButtonContainer = /*#__PURE__*/styled__default.button.withConfig({
|
|
|
593
593
|
componentId: "sc-obzd3o-0"
|
|
594
594
|
})(["height:45px;font-size:", ";"], uiFonts.size.small);
|
|
595
595
|
|
|
596
|
+
var toUppercaseHexColor = function toUppercaseHexColor(color) {
|
|
597
|
+
if (!color) return undefined;
|
|
598
|
+
// Check if it's a valid hex color
|
|
599
|
+
var hexRegex = /^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/;
|
|
600
|
+
if (!hexRegex.test(color)) return color;
|
|
601
|
+
return color.toUpperCase();
|
|
602
|
+
};
|
|
603
|
+
|
|
596
604
|
var SpriteFromAtlas = function SpriteFromAtlas(_ref) {
|
|
597
605
|
var _atlasJSON$frames, _atlasJSON$frames2;
|
|
598
606
|
var atlasJSON = _ref.atlasJSON,
|
|
@@ -622,6 +630,7 @@ var SpriteFromAtlas = function SpriteFromAtlas(_ref) {
|
|
|
622
630
|
console.error("SpriteFromAtlas: Could not find sprite with key " + spriteKey + " in atlasJSON.");
|
|
623
631
|
return null;
|
|
624
632
|
}
|
|
633
|
+
var normalizedTintColor = toUppercaseHexColor(tintColor);
|
|
625
634
|
return React__default.createElement(Container$1, {
|
|
626
635
|
width: width,
|
|
627
636
|
height: height,
|
|
@@ -638,7 +647,7 @@ var SpriteFromAtlas = function SpriteFromAtlas(_ref) {
|
|
|
638
647
|
style: imgStyle,
|
|
639
648
|
centered: centered,
|
|
640
649
|
borderRadius: borderRadius,
|
|
641
|
-
tintColor:
|
|
650
|
+
tintColor: normalizedTintColor
|
|
642
651
|
}));
|
|
643
652
|
};
|
|
644
653
|
var Container$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
@@ -30779,6 +30788,1381 @@ var ContentWrapper = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
30779
30788
|
componentId: "sc-ldufv0-3"
|
|
30780
30789
|
})([""]);
|
|
30781
30790
|
|
|
30791
|
+
var usePagination = function usePagination(_ref) {
|
|
30792
|
+
var items = _ref.items,
|
|
30793
|
+
itemsPerPage = _ref.itemsPerPage,
|
|
30794
|
+
_ref$dependencies = _ref.dependencies,
|
|
30795
|
+
dependencies = _ref$dependencies === void 0 ? [] : _ref$dependencies;
|
|
30796
|
+
var _useState = React.useState(1),
|
|
30797
|
+
currentPage = _useState[0],
|
|
30798
|
+
setCurrentPage = _useState[1];
|
|
30799
|
+
var totalPages = Math.ceil(items.length / itemsPerPage);
|
|
30800
|
+
var paginatedItems = items.slice((currentPage - 1) * itemsPerPage, currentPage * itemsPerPage);
|
|
30801
|
+
React.useEffect(function () {
|
|
30802
|
+
setCurrentPage(1);
|
|
30803
|
+
}, [].concat(dependencies));
|
|
30804
|
+
return {
|
|
30805
|
+
currentPage: currentPage,
|
|
30806
|
+
setCurrentPage: setCurrentPage,
|
|
30807
|
+
paginatedItems: paginatedItems,
|
|
30808
|
+
totalPages: totalPages
|
|
30809
|
+
};
|
|
30810
|
+
};
|
|
30811
|
+
|
|
30812
|
+
var Pagination = function Pagination(_ref) {
|
|
30813
|
+
var currentPage = _ref.currentPage,
|
|
30814
|
+
totalPages = _ref.totalPages,
|
|
30815
|
+
onPageChange = _ref.onPageChange,
|
|
30816
|
+
className = _ref.className;
|
|
30817
|
+
return React__default.createElement(Container$l, {
|
|
30818
|
+
className: className
|
|
30819
|
+
}, React__default.createElement(PaginationButton$1, {
|
|
30820
|
+
onClick: function onClick() {
|
|
30821
|
+
return onPageChange(Math.max(1, currentPage - 1));
|
|
30822
|
+
},
|
|
30823
|
+
disabled: currentPage === 1
|
|
30824
|
+
}, React__default.createElement(fa.FaChevronLeft, {
|
|
30825
|
+
size: 12
|
|
30826
|
+
})), React__default.createElement(PageInfo$1, null, "Page ", currentPage, " of ", totalPages), React__default.createElement(PaginationButton$1, {
|
|
30827
|
+
onClick: function onClick() {
|
|
30828
|
+
return onPageChange(Math.min(totalPages, currentPage + 1));
|
|
30829
|
+
},
|
|
30830
|
+
disabled: currentPage === totalPages
|
|
30831
|
+
}, React__default.createElement(fa.FaChevronRight, {
|
|
30832
|
+
size: 12
|
|
30833
|
+
})));
|
|
30834
|
+
};
|
|
30835
|
+
var Container$l = /*#__PURE__*/styled__default.div.withConfig({
|
|
30836
|
+
displayName: "Pagination__Container",
|
|
30837
|
+
componentId: "sc-3k4m4u-0"
|
|
30838
|
+
})(["display:flex;align-items:center;justify-content:center;gap:16px;padding:8px;"]);
|
|
30839
|
+
var PaginationButton$1 = /*#__PURE__*/styled__default.button.withConfig({
|
|
30840
|
+
displayName: "Pagination__PaginationButton",
|
|
30841
|
+
componentId: "sc-3k4m4u-1"
|
|
30842
|
+
})(["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) {
|
|
30843
|
+
return props.disabled ? uiColors.darkGray : uiColors.yellow;
|
|
30844
|
+
}, function (props) {
|
|
30845
|
+
return props.disabled ? 'not-allowed' : 'pointer';
|
|
30846
|
+
}, function (props) {
|
|
30847
|
+
return props.disabled ? 0.5 : 0.8;
|
|
30848
|
+
});
|
|
30849
|
+
var PageInfo$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
30850
|
+
displayName: "Pagination__PageInfo",
|
|
30851
|
+
componentId: "sc-3k4m4u-2"
|
|
30852
|
+
})(["color:", ";font-size:0.8rem;font-family:'Press Start 2P',cursive;"], uiColors.lightGray);
|
|
30853
|
+
|
|
30854
|
+
var SearchBar = function SearchBar(_ref) {
|
|
30855
|
+
var value = _ref.value,
|
|
30856
|
+
_onChange = _ref.onChange,
|
|
30857
|
+
placeholder = _ref.placeholder,
|
|
30858
|
+
className = _ref.className;
|
|
30859
|
+
return React__default.createElement(Container$m, {
|
|
30860
|
+
className: className
|
|
30861
|
+
}, React__default.createElement(Input$1, {
|
|
30862
|
+
type: "text",
|
|
30863
|
+
value: value,
|
|
30864
|
+
onChange: function onChange(e) {
|
|
30865
|
+
return _onChange(e.target.value);
|
|
30866
|
+
},
|
|
30867
|
+
placeholder: placeholder,
|
|
30868
|
+
className: "rpgui-input"
|
|
30869
|
+
}), React__default.createElement(IconContainer, null, React__default.createElement(SearchIcon, null)));
|
|
30870
|
+
};
|
|
30871
|
+
var Container$m = /*#__PURE__*/styled__default.div.withConfig({
|
|
30872
|
+
displayName: "SearchBar__Container",
|
|
30873
|
+
componentId: "sc-13n8z02-0"
|
|
30874
|
+
})(["position:relative;width:100%;"]);
|
|
30875
|
+
var Input$1 = /*#__PURE__*/styled__default.input.withConfig({
|
|
30876
|
+
displayName: "SearchBar__Input",
|
|
30877
|
+
componentId: "sc-13n8z02-1"
|
|
30878
|
+
})(["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;}"]);
|
|
30879
|
+
var IconContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
30880
|
+
displayName: "SearchBar__IconContainer",
|
|
30881
|
+
componentId: "sc-13n8z02-2"
|
|
30882
|
+
})(["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;"]);
|
|
30883
|
+
var SearchIcon = /*#__PURE__*/styled__default(fa.FaSearch).withConfig({
|
|
30884
|
+
displayName: "SearchBar__SearchIcon",
|
|
30885
|
+
componentId: "sc-13n8z02-3"
|
|
30886
|
+
})(["font-size:1rem;color:#f59e0b;filter:drop-shadow(0 0 2px rgba(245,158,11,0.3));"]);
|
|
30887
|
+
|
|
30888
|
+
var SearchHeader = function SearchHeader(_ref) {
|
|
30889
|
+
var searchOptions = _ref.searchOptions,
|
|
30890
|
+
filterOptions = _ref.filterOptions,
|
|
30891
|
+
className = _ref.className;
|
|
30892
|
+
if (!searchOptions && !filterOptions) return null;
|
|
30893
|
+
return React__default.createElement(HeaderContainer$1, {
|
|
30894
|
+
className: className
|
|
30895
|
+
}, React__default.createElement(HeaderContent, null, searchOptions && React__default.createElement(SearchContainer$2, null, React__default.createElement(StyledSearchBar, {
|
|
30896
|
+
value: searchOptions.value,
|
|
30897
|
+
onChange: searchOptions.onChange,
|
|
30898
|
+
placeholder: searchOptions.placeholder || 'Search...'
|
|
30899
|
+
})), filterOptions && React__default.createElement(FilterContainer, null, React__default.createElement(StyledDropdown, {
|
|
30900
|
+
options: filterOptions.options,
|
|
30901
|
+
onChange: filterOptions.onOptionChange,
|
|
30902
|
+
width: "200px"
|
|
30903
|
+
}))));
|
|
30904
|
+
};
|
|
30905
|
+
var HeaderContainer$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
30906
|
+
displayName: "SearchHeader__HeaderContainer",
|
|
30907
|
+
componentId: "sc-1xd17jb-0"
|
|
30908
|
+
})([""]);
|
|
30909
|
+
var HeaderContent = /*#__PURE__*/styled__default.div.withConfig({
|
|
30910
|
+
displayName: "SearchHeader__HeaderContent",
|
|
30911
|
+
componentId: "sc-1xd17jb-1"
|
|
30912
|
+
})(["display:flex;justify-content:space-between;align-items:center;gap:1rem;background:rgba(0,0,0,0.2);padding:1rem;border-radius:4px;"]);
|
|
30913
|
+
var SearchContainer$2 = /*#__PURE__*/styled__default.div.withConfig({
|
|
30914
|
+
displayName: "SearchHeader__SearchContainer",
|
|
30915
|
+
componentId: "sc-1xd17jb-2"
|
|
30916
|
+
})(["flex:1;"]);
|
|
30917
|
+
var FilterContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
30918
|
+
displayName: "SearchHeader__FilterContainer",
|
|
30919
|
+
componentId: "sc-1xd17jb-3"
|
|
30920
|
+
})(["display:flex;justify-content:flex-end;"]);
|
|
30921
|
+
var StyledSearchBar = /*#__PURE__*/styled__default(SearchBar).withConfig({
|
|
30922
|
+
displayName: "SearchHeader__StyledSearchBar",
|
|
30923
|
+
componentId: "sc-1xd17jb-4"
|
|
30924
|
+
})(["width:100%;"]);
|
|
30925
|
+
var StyledDropdown = /*#__PURE__*/styled__default(Dropdown).withConfig({
|
|
30926
|
+
displayName: "SearchHeader__StyledDropdown",
|
|
30927
|
+
componentId: "sc-1xd17jb-5"
|
|
30928
|
+
})(["min-width:150px;"]);
|
|
30929
|
+
|
|
30930
|
+
var PaginatedContent = function PaginatedContent(_ref) {
|
|
30931
|
+
var items = _ref.items,
|
|
30932
|
+
_ref$itemsPerPage = _ref.itemsPerPage,
|
|
30933
|
+
itemsPerPage = _ref$itemsPerPage === void 0 ? 5 : _ref$itemsPerPage,
|
|
30934
|
+
renderItem = _ref.renderItem,
|
|
30935
|
+
_ref$emptyMessage = _ref.emptyMessage,
|
|
30936
|
+
emptyMessage = _ref$emptyMessage === void 0 ? 'No items found' : _ref$emptyMessage,
|
|
30937
|
+
className = _ref.className,
|
|
30938
|
+
filterOptions = _ref.filterOptions,
|
|
30939
|
+
searchOptions = _ref.searchOptions,
|
|
30940
|
+
_ref$dependencies = _ref.dependencies,
|
|
30941
|
+
dependencies = _ref$dependencies === void 0 ? [] : _ref$dependencies,
|
|
30942
|
+
tabId = _ref.tabId,
|
|
30943
|
+
_ref$layout = _ref.layout,
|
|
30944
|
+
layout = _ref$layout === void 0 ? 'list' : _ref$layout,
|
|
30945
|
+
_ref$gridColumns = _ref.gridColumns,
|
|
30946
|
+
gridColumns = _ref$gridColumns === void 0 ? 4 : _ref$gridColumns,
|
|
30947
|
+
_ref$itemHeight = _ref.itemHeight,
|
|
30948
|
+
itemHeight = _ref$itemHeight === void 0 ? '180px' : _ref$itemHeight;
|
|
30949
|
+
var _usePagination = usePagination({
|
|
30950
|
+
items: items,
|
|
30951
|
+
itemsPerPage: itemsPerPage,
|
|
30952
|
+
dependencies: [].concat(dependencies, [tabId])
|
|
30953
|
+
}),
|
|
30954
|
+
currentPage = _usePagination.currentPage,
|
|
30955
|
+
setCurrentPage = _usePagination.setCurrentPage,
|
|
30956
|
+
paginatedItems = _usePagination.paginatedItems,
|
|
30957
|
+
totalPages = _usePagination.totalPages;
|
|
30958
|
+
return React__default.createElement(Container$n, {
|
|
30959
|
+
className: className
|
|
30960
|
+
}, (searchOptions || filterOptions) && React__default.createElement(SearchHeader, {
|
|
30961
|
+
searchOptions: searchOptions,
|
|
30962
|
+
filterOptions: filterOptions
|
|
30963
|
+
}), items.length === 0 ? React__default.createElement(EmptyMessage, null, emptyMessage) : React__default.createElement(React__default.Fragment, null, React__default.createElement(Content, {
|
|
30964
|
+
className: "PaginatedContent-content " + layout,
|
|
30965
|
+
"$gridColumns": gridColumns,
|
|
30966
|
+
"$itemHeight": itemHeight
|
|
30967
|
+
}, paginatedItems.map(function (item, index) {
|
|
30968
|
+
return React__default.createElement("div", {
|
|
30969
|
+
key: index,
|
|
30970
|
+
className: "PaginatedContent-item"
|
|
30971
|
+
}, renderItem(item));
|
|
30972
|
+
})), React__default.createElement(PaginationContainer$1, {
|
|
30973
|
+
className: "PaginatedContent-pagination"
|
|
30974
|
+
}, React__default.createElement(Pagination, {
|
|
30975
|
+
currentPage: currentPage,
|
|
30976
|
+
totalPages: totalPages,
|
|
30977
|
+
onPageChange: setCurrentPage
|
|
30978
|
+
}))));
|
|
30979
|
+
};
|
|
30980
|
+
var Container$n = /*#__PURE__*/styled__default.div.withConfig({
|
|
30981
|
+
displayName: "PaginatedContent__Container",
|
|
30982
|
+
componentId: "sc-lzp9hn-0"
|
|
30983
|
+
})(["display:flex;flex-direction:column;gap:1rem;min-height:400px;width:100%;"]);
|
|
30984
|
+
var Content = /*#__PURE__*/styled__default.div.withConfig({
|
|
30985
|
+
displayName: "PaginatedContent__Content",
|
|
30986
|
+
componentId: "sc-lzp9hn-1"
|
|
30987
|
+
})(["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) {
|
|
30988
|
+
return props.$maxHeight;
|
|
30989
|
+
}, function (props) {
|
|
30990
|
+
return props.$maxHeight ? 'auto' : 'visible';
|
|
30991
|
+
}, function (props) {
|
|
30992
|
+
return props.$gridColumns;
|
|
30993
|
+
}, function (props) {
|
|
30994
|
+
var _props$$itemHeight;
|
|
30995
|
+
return (_props$$itemHeight = props.$itemHeight) != null ? _props$$itemHeight : 'auto';
|
|
30996
|
+
});
|
|
30997
|
+
var PaginationContainer$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
30998
|
+
displayName: "PaginatedContent__PaginationContainer",
|
|
30999
|
+
componentId: "sc-lzp9hn-2"
|
|
31000
|
+
})(["display:flex;justify-content:center;padding:1rem;"]);
|
|
31001
|
+
var EmptyMessage = /*#__PURE__*/styled__default.div.withConfig({
|
|
31002
|
+
displayName: "PaginatedContent__EmptyMessage",
|
|
31003
|
+
componentId: "sc-lzp9hn-3"
|
|
31004
|
+
})(["text-align:center;color:#9ca3af;padding:2rem;flex:1;display:flex;align-items:center;justify-content:center;"]);
|
|
31005
|
+
|
|
31006
|
+
var Portal = function Portal(_ref) {
|
|
31007
|
+
var children = _ref.children;
|
|
31008
|
+
var _useState = React.useState(function () {
|
|
31009
|
+
return document.createElement('div');
|
|
31010
|
+
}),
|
|
31011
|
+
container = _useState[0];
|
|
31012
|
+
React.useEffect(function () {
|
|
31013
|
+
document.body.appendChild(container);
|
|
31014
|
+
return function () {
|
|
31015
|
+
document.body.removeChild(container);
|
|
31016
|
+
};
|
|
31017
|
+
}, [container]);
|
|
31018
|
+
return ReactDOM.createPortal(children, container);
|
|
31019
|
+
};
|
|
31020
|
+
|
|
31021
|
+
var InformationCenterCell = function InformationCenterCell(_ref) {
|
|
31022
|
+
var name = _ref.name,
|
|
31023
|
+
spriteKey = _ref.spriteKey,
|
|
31024
|
+
atlasJSON = _ref.atlasJSON,
|
|
31025
|
+
atlasIMG = _ref.atlasIMG,
|
|
31026
|
+
onClick = _ref.onClick,
|
|
31027
|
+
onMouseEnter = _ref.onMouseEnter,
|
|
31028
|
+
onMouseLeave = _ref.onMouseLeave,
|
|
31029
|
+
onMouseMove = _ref.onMouseMove,
|
|
31030
|
+
onTouchStart = _ref.onTouchStart;
|
|
31031
|
+
return React__default.createElement(CellContainer, {
|
|
31032
|
+
onClick: onClick,
|
|
31033
|
+
onMouseEnter: onMouseEnter,
|
|
31034
|
+
onMouseLeave: onMouseLeave,
|
|
31035
|
+
onMouseMove: onMouseMove,
|
|
31036
|
+
onTouchStart: onTouchStart
|
|
31037
|
+
}, React__default.createElement(SpriteContainer$1, null, React__default.createElement(SpriteFromAtlas, {
|
|
31038
|
+
atlasJSON: atlasJSON,
|
|
31039
|
+
atlasIMG: atlasIMG,
|
|
31040
|
+
spriteKey: spriteKey,
|
|
31041
|
+
width: 32,
|
|
31042
|
+
height: 32,
|
|
31043
|
+
imgScale: 1
|
|
31044
|
+
})), React__default.createElement(CellName, null, name));
|
|
31045
|
+
};
|
|
31046
|
+
var CellContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
31047
|
+
displayName: "InformationCenterCell__CellContainer",
|
|
31048
|
+
componentId: "sc-w48fdf-0"
|
|
31049
|
+
})(["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);}"]);
|
|
31050
|
+
var SpriteContainer$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
31051
|
+
displayName: "InformationCenterCell__SpriteContainer",
|
|
31052
|
+
componentId: "sc-w48fdf-1"
|
|
31053
|
+
})(["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;}"]);
|
|
31054
|
+
var CellName = /*#__PURE__*/styled__default.h3.withConfig({
|
|
31055
|
+
displayName: "InformationCenterCell__CellName",
|
|
31056
|
+
componentId: "sc-w48fdf-2"
|
|
31057
|
+
})(["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%;"]);
|
|
31058
|
+
|
|
31059
|
+
var Collapsible = function Collapsible(_ref) {
|
|
31060
|
+
var title = _ref.title,
|
|
31061
|
+
children = _ref.children,
|
|
31062
|
+
_ref$defaultOpen = _ref.defaultOpen,
|
|
31063
|
+
defaultOpen = _ref$defaultOpen === void 0 ? false : _ref$defaultOpen,
|
|
31064
|
+
className = _ref.className;
|
|
31065
|
+
var _useState = React.useState(defaultOpen),
|
|
31066
|
+
isOpen = _useState[0],
|
|
31067
|
+
setIsOpen = _useState[1];
|
|
31068
|
+
return React__default.createElement(Container$o, {
|
|
31069
|
+
className: className
|
|
31070
|
+
}, React__default.createElement(Header$1, {
|
|
31071
|
+
onClick: function onClick() {
|
|
31072
|
+
return setIsOpen(!isOpen);
|
|
31073
|
+
}
|
|
31074
|
+
}, React__default.createElement(Title$3, null, title), React__default.createElement(Icon$1, null, isOpen ? React__default.createElement(fa.FaChevronUp, null) : React__default.createElement(fa.FaChevronDown, null))), isOpen && React__default.createElement(Content$1, null, children));
|
|
31075
|
+
};
|
|
31076
|
+
var Container$o = /*#__PURE__*/styled__default.div.withConfig({
|
|
31077
|
+
displayName: "Collapsible__Container",
|
|
31078
|
+
componentId: "sc-s4h8ey-0"
|
|
31079
|
+
})(["background:rgba(0,0,0,0.3);border-radius:4px;overflow:hidden;border:1px solid ", ";"], uiColors.darkGray);
|
|
31080
|
+
var Header$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
31081
|
+
displayName: "Collapsible__Header",
|
|
31082
|
+
componentId: "sc-s4h8ey-1"
|
|
31083
|
+
})(["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);}"]);
|
|
31084
|
+
var Title$3 = /*#__PURE__*/styled__default.h3.withConfig({
|
|
31085
|
+
displayName: "Collapsible__Title",
|
|
31086
|
+
componentId: "sc-s4h8ey-2"
|
|
31087
|
+
})(["margin:0;font-size:0.6rem;color:", ";font-family:'Press Start 2P',cursive;letter-spacing:0.5px;"], uiColors.yellow);
|
|
31088
|
+
var Icon$1 = /*#__PURE__*/styled__default.span.withConfig({
|
|
31089
|
+
displayName: "Collapsible__Icon",
|
|
31090
|
+
componentId: "sc-s4h8ey-3"
|
|
31091
|
+
})(["color:", ";font-size:0.6rem;display:flex;align-items:center;"], uiColors.yellow);
|
|
31092
|
+
var Content$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
31093
|
+
displayName: "Collapsible__Content",
|
|
31094
|
+
componentId: "sc-s4h8ey-4"
|
|
31095
|
+
})(["padding:12px;"]);
|
|
31096
|
+
|
|
31097
|
+
var BaseInformationDetails = function BaseInformationDetails(_ref) {
|
|
31098
|
+
var name = _ref.name,
|
|
31099
|
+
spriteKey = _ref.spriteKey,
|
|
31100
|
+
atlasJSON = _ref.atlasJSON,
|
|
31101
|
+
atlasIMG = _ref.atlasIMG,
|
|
31102
|
+
onBack = _ref.onBack,
|
|
31103
|
+
children = _ref.children;
|
|
31104
|
+
return React__default.createElement(Container$p, null, React__default.createElement(Overlay, {
|
|
31105
|
+
onClick: onBack
|
|
31106
|
+
}), React__default.createElement(Modal, null, React__default.createElement(CloseButton$5, {
|
|
31107
|
+
onClick: onBack
|
|
31108
|
+
}, React__default.createElement(fa.FaTimes, null)), React__default.createElement(Header$2, null, React__default.createElement(SpriteContainer$2, null, React__default.createElement(SpriteFromAtlas, {
|
|
31109
|
+
atlasJSON: atlasJSON,
|
|
31110
|
+
atlasIMG: atlasIMG,
|
|
31111
|
+
spriteKey: spriteKey,
|
|
31112
|
+
width: 32,
|
|
31113
|
+
height: 32,
|
|
31114
|
+
imgScale: 1
|
|
31115
|
+
})), React__default.createElement(Title$4, null, name)), React__default.createElement(Content$2, null, children)));
|
|
31116
|
+
};
|
|
31117
|
+
var Container$p = /*#__PURE__*/styled__default.div.withConfig({
|
|
31118
|
+
displayName: "BaseInformationDetails__Container",
|
|
31119
|
+
componentId: "sc-1vguuz8-0"
|
|
31120
|
+
})(["position:fixed;top:0;left:0;right:0;bottom:0;display:flex;justify-content:center;align-items:center;z-index:1000;"]);
|
|
31121
|
+
var Overlay = /*#__PURE__*/styled__default.div.withConfig({
|
|
31122
|
+
displayName: "BaseInformationDetails__Overlay",
|
|
31123
|
+
componentId: "sc-1vguuz8-1"
|
|
31124
|
+
})(["position:absolute;top:0;left:0;right:0;bottom:0;background-color:rgba(0,0,0,0.8);"]);
|
|
31125
|
+
var Modal = /*#__PURE__*/styled__default.div.withConfig({
|
|
31126
|
+
displayName: "BaseInformationDetails__Modal",
|
|
31127
|
+
componentId: "sc-1vguuz8-2"
|
|
31128
|
+
})(["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);
|
|
31129
|
+
var CloseButton$5 = /*#__PURE__*/styled__default.button.withConfig({
|
|
31130
|
+
displayName: "BaseInformationDetails__CloseButton",
|
|
31131
|
+
componentId: "sc-1vguuz8-3"
|
|
31132
|
+
})(["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);
|
|
31133
|
+
var Header$2 = /*#__PURE__*/styled__default.div.withConfig({
|
|
31134
|
+
displayName: "BaseInformationDetails__Header",
|
|
31135
|
+
componentId: "sc-1vguuz8-4"
|
|
31136
|
+
})(["display:flex;align-items:center;gap:16px;margin-bottom:24px;"]);
|
|
31137
|
+
var Content$2 = /*#__PURE__*/styled__default.div.withConfig({
|
|
31138
|
+
displayName: "BaseInformationDetails__Content",
|
|
31139
|
+
componentId: "sc-1vguuz8-5"
|
|
31140
|
+
})(["display:flex;flex-direction:column;gap:16px;"]);
|
|
31141
|
+
var Title$4 = /*#__PURE__*/styled__default.h2.withConfig({
|
|
31142
|
+
displayName: "BaseInformationDetails__Title",
|
|
31143
|
+
componentId: "sc-1vguuz8-6"
|
|
31144
|
+
})(["color:", ";font-size:1rem;margin:0;"], uiColors.yellow);
|
|
31145
|
+
var SpriteContainer$2 = /*#__PURE__*/styled__default.div.withConfig({
|
|
31146
|
+
displayName: "BaseInformationDetails__SpriteContainer",
|
|
31147
|
+
componentId: "sc-1vguuz8-7"
|
|
31148
|
+
})(["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;}"]);
|
|
31149
|
+
|
|
31150
|
+
var ITEMS_PER_PAGE$1 = 5;
|
|
31151
|
+
var InformationCenterNPCDetails = function InformationCenterNPCDetails(_ref) {
|
|
31152
|
+
var _npc$loots, _npc$skills$strength, _npc$skills$dexterity, _npc$skills$resistanc;
|
|
31153
|
+
var npc = _ref.npc,
|
|
31154
|
+
itemsAtlasJSON = _ref.itemsAtlasJSON,
|
|
31155
|
+
itemsAtlasIMG = _ref.itemsAtlasIMG,
|
|
31156
|
+
entitiesAtlasJSON = _ref.entitiesAtlasJSON,
|
|
31157
|
+
entitiesAtlasIMG = _ref.entitiesAtlasIMG,
|
|
31158
|
+
onBack = _ref.onBack;
|
|
31159
|
+
var isMobile = shared.isMobileOrTablet();
|
|
31160
|
+
var _useState = React.useState(''),
|
|
31161
|
+
lootSearchQuery = _useState[0],
|
|
31162
|
+
setLootSearchQuery = _useState[1];
|
|
31163
|
+
var _useState2 = React.useState(1),
|
|
31164
|
+
currentLootPage = _useState2[0],
|
|
31165
|
+
setCurrentLootPage = _useState2[1];
|
|
31166
|
+
var formatText = function formatText(text) {
|
|
31167
|
+
if (typeof text === 'number') {
|
|
31168
|
+
return text.toString();
|
|
31169
|
+
}
|
|
31170
|
+
return text.toString().replace(/([A-Z])/g, ' $1').trim().replace(/([A-Z]+)([A-Z][a-z])/g, '$1 $2').replace(/\s+/g, ' ');
|
|
31171
|
+
};
|
|
31172
|
+
var formatRarity = function formatRarity(rarity) {
|
|
31173
|
+
switch (rarity) {
|
|
31174
|
+
case 0.5:
|
|
31175
|
+
return 'Very Rare';
|
|
31176
|
+
case 1:
|
|
31177
|
+
return 'Rare';
|
|
31178
|
+
case 10:
|
|
31179
|
+
return 'Uncommon';
|
|
31180
|
+
case 15:
|
|
31181
|
+
return 'Semi Common';
|
|
31182
|
+
case 20:
|
|
31183
|
+
return 'Common';
|
|
31184
|
+
case 35:
|
|
31185
|
+
return 'Very Common';
|
|
31186
|
+
default:
|
|
31187
|
+
return 'Unknown';
|
|
31188
|
+
}
|
|
31189
|
+
};
|
|
31190
|
+
var filteredLoots = ((_npc$loots = npc.loots) == null ? void 0 : _npc$loots.filter(function (loot) {
|
|
31191
|
+
return formatText(loot.itemBlueprintKey).toLowerCase().includes(lootSearchQuery.toLowerCase());
|
|
31192
|
+
})) || [];
|
|
31193
|
+
var totalLootPages = Math.ceil(filteredLoots.length / ITEMS_PER_PAGE$1);
|
|
31194
|
+
var paginatedLoots = filteredLoots.slice((currentLootPage - 1) * ITEMS_PER_PAGE$1, currentLootPage * ITEMS_PER_PAGE$1);
|
|
31195
|
+
return React__default.createElement(BaseInformationDetails, {
|
|
31196
|
+
name: npc.name,
|
|
31197
|
+
spriteKey: npc.key,
|
|
31198
|
+
atlasJSON: entitiesAtlasJSON,
|
|
31199
|
+
atlasIMG: entitiesAtlasIMG,
|
|
31200
|
+
onBack: onBack
|
|
31201
|
+
}, React__default.createElement(InfoSection, null, React__default.createElement(InfoItem, null, React__default.createElement(Label, null, "Type:"), React__default.createElement(Value, null, formatText(npc.subType))), React__default.createElement(InfoItem, null, React__default.createElement(Label, null, "Alignment:"), React__default.createElement(Value, null, formatText(npc.alignment))), React__default.createElement(InfoItem, null, React__default.createElement(Label, null, "Attack Type:"), React__default.createElement(Value, null, formatText(npc.attackType))), React__default.createElement(InfoItem, null, React__default.createElement(Label, null, "Range:"), React__default.createElement(Value, null, formatText(npc.maxRangeAttack))), React__default.createElement(InfoItem, null, React__default.createElement(Label, null, "Speed:"), React__default.createElement(Value, null, formatText(npc.speed)))), React__default.createElement(StyledCollapsible, {
|
|
31202
|
+
title: "Stats",
|
|
31203
|
+
defaultOpen: !isMobile
|
|
31204
|
+
}, React__default.createElement(StatGrid, null, React__default.createElement(StatItem, null, "HP: ", npc.baseHealth), React__default.createElement(StatItem, null, "Level: ", npc.skills.level), ((_npc$skills$strength = npc.skills.strength) == null ? void 0 : _npc$skills$strength.level) && React__default.createElement(StatItem, null, "Strength: ", npc.skills.strength.level), ((_npc$skills$dexterity = npc.skills.dexterity) == null ? void 0 : _npc$skills$dexterity.level) && React__default.createElement(StatItem, null, "Dexterity: ", npc.skills.dexterity.level), ((_npc$skills$resistanc = npc.skills.resistance) == null ? void 0 : _npc$skills$resistanc.level) && React__default.createElement(StatItem, null, "Resistance: ", npc.skills.resistance.level))), npc.loots && npc.loots.length > 0 && React__default.createElement(StyledCollapsible, {
|
|
31205
|
+
title: "Loot",
|
|
31206
|
+
defaultOpen: !isMobile
|
|
31207
|
+
}, React__default.createElement(LootSearchContainer, null, React__default.createElement(StyledSearchBar$1, {
|
|
31208
|
+
value: lootSearchQuery,
|
|
31209
|
+
onChange: setLootSearchQuery,
|
|
31210
|
+
placeholder: "Search loot..."
|
|
31211
|
+
})), React__default.createElement(LootGrid, null, paginatedLoots.map(function (loot, index) {
|
|
31212
|
+
return React__default.createElement(LootItem, {
|
|
31213
|
+
key: index
|
|
31214
|
+
}, React__default.createElement(SpriteFromAtlas, {
|
|
31215
|
+
atlasJSON: itemsAtlasJSON,
|
|
31216
|
+
atlasIMG: itemsAtlasIMG,
|
|
31217
|
+
spriteKey: loot.itemBlueprintKey,
|
|
31218
|
+
width: 24,
|
|
31219
|
+
height: 24,
|
|
31220
|
+
imgScale: 1
|
|
31221
|
+
}), React__default.createElement(LootDetails, null, React__default.createElement(LootName, null, formatText(loot.itemBlueprintKey)), React__default.createElement(LootInfo, null, React__default.createElement(LootChance, null, formatRarity(loot.chance)), loot.quantityRange && React__default.createElement(LootQuantity, null, "x", loot.quantityRange[0], "-", loot.quantityRange[1]))));
|
|
31222
|
+
})), filteredLoots.length > ITEMS_PER_PAGE$1 && React__default.createElement(PaginationContainer$2, null, React__default.createElement(StyledPagination, {
|
|
31223
|
+
currentPage: currentLootPage,
|
|
31224
|
+
totalPages: totalLootPages,
|
|
31225
|
+
onPageChange: setCurrentLootPage
|
|
31226
|
+
}))), npc.entityEffects && npc.entityEffects.length > 0 && React__default.createElement(StyledCollapsible, {
|
|
31227
|
+
title: "Effects",
|
|
31228
|
+
defaultOpen: !isMobile
|
|
31229
|
+
}, React__default.createElement(EffectsList, null, npc.entityEffects.map(function (effect, index) {
|
|
31230
|
+
return React__default.createElement(EffectItem, {
|
|
31231
|
+
key: index
|
|
31232
|
+
}, formatText(effect));
|
|
31233
|
+
}))), npc.areaSpells && npc.areaSpells.length > 0 && React__default.createElement(StyledCollapsible, {
|
|
31234
|
+
title: "Spells",
|
|
31235
|
+
defaultOpen: !isMobile
|
|
31236
|
+
}, React__default.createElement(SpellsList, null, npc.areaSpells.map(function (spell, index) {
|
|
31237
|
+
return React__default.createElement(SpellItem, {
|
|
31238
|
+
key: index
|
|
31239
|
+
}, React__default.createElement(SpellName, null, formatText(spell.spellKey)), React__default.createElement(SpellDetails, null, "Power: ", React__default.createElement(SpellValue, null, formatText(spell.power)), React__default.createElement(Separator, null, "\u2022"), "Chance: ", React__default.createElement(SpellValue, null, spell.probability, "%")));
|
|
31240
|
+
}))));
|
|
31241
|
+
};
|
|
31242
|
+
var InfoSection = /*#__PURE__*/styled__default.div.withConfig({
|
|
31243
|
+
displayName: "InformationCenterNPCDetails__InfoSection",
|
|
31244
|
+
componentId: "sc-fdu3xl-0"
|
|
31245
|
+
})(["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;"]);
|
|
31246
|
+
var InfoItem = /*#__PURE__*/styled__default.div.withConfig({
|
|
31247
|
+
displayName: "InformationCenterNPCDetails__InfoItem",
|
|
31248
|
+
componentId: "sc-fdu3xl-1"
|
|
31249
|
+
})(["display:flex;align-items:center;gap:8px;"]);
|
|
31250
|
+
var Label = /*#__PURE__*/styled__default.span.withConfig({
|
|
31251
|
+
displayName: "InformationCenterNPCDetails__Label",
|
|
31252
|
+
componentId: "sc-fdu3xl-2"
|
|
31253
|
+
})(["color:", ";font-size:0.5rem;opacity:0.8;"], uiColors.yellow);
|
|
31254
|
+
var Value = /*#__PURE__*/styled__default.span.withConfig({
|
|
31255
|
+
displayName: "InformationCenterNPCDetails__Value",
|
|
31256
|
+
componentId: "sc-fdu3xl-3"
|
|
31257
|
+
})(["color:", ";font-size:0.5rem;"], uiColors.white);
|
|
31258
|
+
var StyledCollapsible = /*#__PURE__*/styled__default(Collapsible).withConfig({
|
|
31259
|
+
displayName: "InformationCenterNPCDetails__StyledCollapsible",
|
|
31260
|
+
componentId: "sc-fdu3xl-4"
|
|
31261
|
+
})(["background:rgba(255,255,255,0.05);border-radius:4px;overflow:hidden;"]);
|
|
31262
|
+
var StatGrid = /*#__PURE__*/styled__default.div.withConfig({
|
|
31263
|
+
displayName: "InformationCenterNPCDetails__StatGrid",
|
|
31264
|
+
componentId: "sc-fdu3xl-5"
|
|
31265
|
+
})(["display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px;padding:12px;"]);
|
|
31266
|
+
var StatItem = /*#__PURE__*/styled__default.div.withConfig({
|
|
31267
|
+
displayName: "InformationCenterNPCDetails__StatItem",
|
|
31268
|
+
componentId: "sc-fdu3xl-6"
|
|
31269
|
+
})(["color:", ";font-size:0.5rem;background:rgba(255,255,255,0.05);padding:8px;border-radius:4px;"], uiColors.white);
|
|
31270
|
+
var EffectsList = /*#__PURE__*/styled__default.div.withConfig({
|
|
31271
|
+
displayName: "InformationCenterNPCDetails__EffectsList",
|
|
31272
|
+
componentId: "sc-fdu3xl-7"
|
|
31273
|
+
})(["display:flex;flex-wrap:wrap;gap:8px;padding:12px;"]);
|
|
31274
|
+
var EffectItem = /*#__PURE__*/styled__default.div.withConfig({
|
|
31275
|
+
displayName: "InformationCenterNPCDetails__EffectItem",
|
|
31276
|
+
componentId: "sc-fdu3xl-8"
|
|
31277
|
+
})(["color:", ";font-size:0.5rem;background:rgba(255,255,255,0.1);padding:4px 8px;border-radius:4px;"], uiColors.white);
|
|
31278
|
+
var SpellsList = /*#__PURE__*/styled__default.div.withConfig({
|
|
31279
|
+
displayName: "InformationCenterNPCDetails__SpellsList",
|
|
31280
|
+
componentId: "sc-fdu3xl-9"
|
|
31281
|
+
})(["display:flex;flex-direction:column;gap:8px;padding:12px;"]);
|
|
31282
|
+
var SpellItem = /*#__PURE__*/styled__default.div.withConfig({
|
|
31283
|
+
displayName: "InformationCenterNPCDetails__SpellItem",
|
|
31284
|
+
componentId: "sc-fdu3xl-10"
|
|
31285
|
+
})(["display:flex;flex-direction:column;gap:4px;background:rgba(255,255,255,0.05);padding:8px;border-radius:4px;"]);
|
|
31286
|
+
var SpellName = /*#__PURE__*/styled__default.div.withConfig({
|
|
31287
|
+
displayName: "InformationCenterNPCDetails__SpellName",
|
|
31288
|
+
componentId: "sc-fdu3xl-11"
|
|
31289
|
+
})(["color:", ";font-size:0.5rem;"], uiColors.yellow);
|
|
31290
|
+
var SpellDetails = /*#__PURE__*/styled__default.div.withConfig({
|
|
31291
|
+
displayName: "InformationCenterNPCDetails__SpellDetails",
|
|
31292
|
+
componentId: "sc-fdu3xl-12"
|
|
31293
|
+
})(["display:flex;align-items:center;gap:8px;color:", ";font-size:0.45rem;opacity:0.8;"], uiColors.white);
|
|
31294
|
+
var SpellValue = /*#__PURE__*/styled__default.span.withConfig({
|
|
31295
|
+
displayName: "InformationCenterNPCDetails__SpellValue",
|
|
31296
|
+
componentId: "sc-fdu3xl-13"
|
|
31297
|
+
})(["color:", ";"], uiColors.yellow);
|
|
31298
|
+
var Separator = /*#__PURE__*/styled__default.span.withConfig({
|
|
31299
|
+
displayName: "InformationCenterNPCDetails__Separator",
|
|
31300
|
+
componentId: "sc-fdu3xl-14"
|
|
31301
|
+
})(["color:", ";opacity:0.5;"], uiColors.yellow);
|
|
31302
|
+
var LootSearchContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
31303
|
+
displayName: "InformationCenterNPCDetails__LootSearchContainer",
|
|
31304
|
+
componentId: "sc-fdu3xl-15"
|
|
31305
|
+
})(["padding:12px 12px 0;"]);
|
|
31306
|
+
var StyledSearchBar$1 = /*#__PURE__*/styled__default(SearchBar).withConfig({
|
|
31307
|
+
displayName: "InformationCenterNPCDetails__StyledSearchBar",
|
|
31308
|
+
componentId: "sc-fdu3xl-16"
|
|
31309
|
+
})(["width:100%;"]);
|
|
31310
|
+
var LootGrid = /*#__PURE__*/styled__default.div.withConfig({
|
|
31311
|
+
displayName: "InformationCenterNPCDetails__LootGrid",
|
|
31312
|
+
componentId: "sc-fdu3xl-17"
|
|
31313
|
+
})(["display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:8px;padding:12px;"]);
|
|
31314
|
+
var LootItem = /*#__PURE__*/styled__default.div.withConfig({
|
|
31315
|
+
displayName: "InformationCenterNPCDetails__LootItem",
|
|
31316
|
+
componentId: "sc-fdu3xl-18"
|
|
31317
|
+
})(["display:flex;align-items:center;gap:8px;background:rgba(255,255,255,0.05);padding:8px;border-radius:4px;"]);
|
|
31318
|
+
var LootDetails = /*#__PURE__*/styled__default.div.withConfig({
|
|
31319
|
+
displayName: "InformationCenterNPCDetails__LootDetails",
|
|
31320
|
+
componentId: "sc-fdu3xl-19"
|
|
31321
|
+
})(["flex:1;display:flex;flex-direction:column;gap:4px;"]);
|
|
31322
|
+
var LootName = /*#__PURE__*/styled__default.div.withConfig({
|
|
31323
|
+
displayName: "InformationCenterNPCDetails__LootName",
|
|
31324
|
+
componentId: "sc-fdu3xl-20"
|
|
31325
|
+
})(["color:", ";font-size:0.5rem;"], uiColors.white);
|
|
31326
|
+
var LootInfo = /*#__PURE__*/styled__default.div.withConfig({
|
|
31327
|
+
displayName: "InformationCenterNPCDetails__LootInfo",
|
|
31328
|
+
componentId: "sc-fdu3xl-21"
|
|
31329
|
+
})(["display:flex;align-items:center;gap:8px;"]);
|
|
31330
|
+
var LootChance = /*#__PURE__*/styled__default.span.withConfig({
|
|
31331
|
+
displayName: "InformationCenterNPCDetails__LootChance",
|
|
31332
|
+
componentId: "sc-fdu3xl-22"
|
|
31333
|
+
})(["color:", ";font-size:0.45rem;"], uiColors.yellow);
|
|
31334
|
+
var LootQuantity = /*#__PURE__*/styled__default.span.withConfig({
|
|
31335
|
+
displayName: "InformationCenterNPCDetails__LootQuantity",
|
|
31336
|
+
componentId: "sc-fdu3xl-23"
|
|
31337
|
+
})(["color:", ";font-size:0.45rem;"], uiColors.lightGray);
|
|
31338
|
+
var PaginationContainer$2 = /*#__PURE__*/styled__default.div.withConfig({
|
|
31339
|
+
displayName: "InformationCenterNPCDetails__PaginationContainer",
|
|
31340
|
+
componentId: "sc-fdu3xl-24"
|
|
31341
|
+
})(["display:flex;justify-content:center;padding:12px;"]);
|
|
31342
|
+
var StyledPagination = /*#__PURE__*/styled__default(Pagination).withConfig({
|
|
31343
|
+
displayName: "InformationCenterNPCDetails__StyledPagination",
|
|
31344
|
+
componentId: "sc-fdu3xl-25"
|
|
31345
|
+
})(["font-size:0.6rem;"]);
|
|
31346
|
+
|
|
31347
|
+
var TooltipContainer$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
31348
|
+
displayName: "BaseTooltip__TooltipContainer",
|
|
31349
|
+
componentId: "sc-1auz5ec-0"
|
|
31350
|
+
})(["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) {
|
|
31351
|
+
return props.width || '280px';
|
|
31352
|
+
}, uiColors.darkGray);
|
|
31353
|
+
var TooltipTitle$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
31354
|
+
displayName: "BaseTooltip__TooltipTitle",
|
|
31355
|
+
componentId: "sc-1auz5ec-1"
|
|
31356
|
+
})(["color:", ";font-size:0.6rem;letter-spacing:0.5px;margin-bottom:8px;"], uiColors.yellow);
|
|
31357
|
+
var Section = /*#__PURE__*/styled__default.div.withConfig({
|
|
31358
|
+
displayName: "BaseTooltip__Section",
|
|
31359
|
+
componentId: "sc-1auz5ec-2"
|
|
31360
|
+
})(["margin-top:6px;"]);
|
|
31361
|
+
var SectionTitle = /*#__PURE__*/styled__default.div.withConfig({
|
|
31362
|
+
displayName: "BaseTooltip__SectionTitle",
|
|
31363
|
+
componentId: "sc-1auz5ec-3"
|
|
31364
|
+
})(["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);
|
|
31365
|
+
var StatsContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
31366
|
+
displayName: "BaseTooltip__StatsContainer",
|
|
31367
|
+
componentId: "sc-1auz5ec-4"
|
|
31368
|
+
})(["display:grid;grid-template-columns:repeat(2,1fr);gap:2px 8px;"]);
|
|
31369
|
+
var StatItem$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
31370
|
+
displayName: "BaseTooltip__StatItem",
|
|
31371
|
+
componentId: "sc-1auz5ec-5"
|
|
31372
|
+
})(["color:", ";font-size:0.5rem;text-align:left;"], uiColors.white);
|
|
31373
|
+
var BaseTooltip = function BaseTooltip(_ref) {
|
|
31374
|
+
var children = _ref.children,
|
|
31375
|
+
width = _ref.width;
|
|
31376
|
+
return React__default.createElement(TooltipContainer$1, {
|
|
31377
|
+
width: width
|
|
31378
|
+
}, children);
|
|
31379
|
+
};
|
|
31380
|
+
|
|
31381
|
+
var EffectsList$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
31382
|
+
displayName: "InformationCenterNPCTooltip__EffectsList",
|
|
31383
|
+
componentId: "sc-j2o39s-0"
|
|
31384
|
+
})(["display:flex;gap:8px;flex-wrap:wrap;"]);
|
|
31385
|
+
var EffectItem$1 = /*#__PURE__*/styled__default.span.withConfig({
|
|
31386
|
+
displayName: "InformationCenterNPCTooltip__EffectItem",
|
|
31387
|
+
componentId: "sc-j2o39s-1"
|
|
31388
|
+
})(["font-size:0.5rem;color:", ";background:rgba(255,255,255,0.1);padding:2px 6px;border-radius:4px;"], uiColors.white);
|
|
31389
|
+
var SpellList = /*#__PURE__*/styled__default.div.withConfig({
|
|
31390
|
+
displayName: "InformationCenterNPCTooltip__SpellList",
|
|
31391
|
+
componentId: "sc-j2o39s-2"
|
|
31392
|
+
})(["display:flex;flex-direction:column;gap:2px;"]);
|
|
31393
|
+
var SpellItem$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
31394
|
+
displayName: "InformationCenterNPCTooltip__SpellItem",
|
|
31395
|
+
componentId: "sc-j2o39s-3"
|
|
31396
|
+
})(["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);
|
|
31397
|
+
var SpellInfo = /*#__PURE__*/styled__default.span.withConfig({
|
|
31398
|
+
displayName: "InformationCenterNPCTooltip__SpellInfo",
|
|
31399
|
+
componentId: "sc-j2o39s-4"
|
|
31400
|
+
})(["color:", ";margin-left:8px;opacity:0.8;"], uiColors.yellow);
|
|
31401
|
+
var LootList = /*#__PURE__*/styled__default.div.withConfig({
|
|
31402
|
+
displayName: "InformationCenterNPCTooltip__LootList",
|
|
31403
|
+
componentId: "sc-j2o39s-5"
|
|
31404
|
+
})(["display:flex;flex-direction:column;gap:2px;"]);
|
|
31405
|
+
var LootItem$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
31406
|
+
displayName: "InformationCenterNPCTooltip__LootItem",
|
|
31407
|
+
componentId: "sc-j2o39s-6"
|
|
31408
|
+
})(["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;}"]);
|
|
31409
|
+
var LootName$1 = /*#__PURE__*/styled__default.span.withConfig({
|
|
31410
|
+
displayName: "InformationCenterNPCTooltip__LootName",
|
|
31411
|
+
componentId: "sc-j2o39s-7"
|
|
31412
|
+
})(["color:", ";flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-left:4px;"], uiColors.white);
|
|
31413
|
+
var LootChance$1 = /*#__PURE__*/styled__default.span.withConfig({
|
|
31414
|
+
displayName: "InformationCenterNPCTooltip__LootChance",
|
|
31415
|
+
componentId: "sc-j2o39s-8"
|
|
31416
|
+
})(["color:", ";font-size:0.45rem;text-transform:lowercase;opacity:0.8;"], uiColors.yellow);
|
|
31417
|
+
var MoreIndicator = /*#__PURE__*/styled__default.div.withConfig({
|
|
31418
|
+
displayName: "InformationCenterNPCTooltip__MoreIndicator",
|
|
31419
|
+
componentId: "sc-j2o39s-9"
|
|
31420
|
+
})(["color:", ";font-size:0.45rem;text-align:center;margin-top:2px;opacity:0.7;"], uiColors.yellow);
|
|
31421
|
+
var formatText = function formatText(text) {
|
|
31422
|
+
if (typeof text === 'number') {
|
|
31423
|
+
return text.toString();
|
|
31424
|
+
}
|
|
31425
|
+
return text.toString().replace(/([A-Z])/g, ' $1').trim().replace(/([A-Z]+)([A-Z][a-z])/g, '$1 $2').replace(/\s+/g, ' ');
|
|
31426
|
+
};
|
|
31427
|
+
var formatRarity = function formatRarity(rarity) {
|
|
31428
|
+
switch (rarity) {
|
|
31429
|
+
case 0.5:
|
|
31430
|
+
return 'Very Rare';
|
|
31431
|
+
case 1:
|
|
31432
|
+
return 'Rare';
|
|
31433
|
+
case 10:
|
|
31434
|
+
return 'Uncommon';
|
|
31435
|
+
case 15:
|
|
31436
|
+
return 'Semi Common';
|
|
31437
|
+
case 20:
|
|
31438
|
+
return 'Common';
|
|
31439
|
+
case 35:
|
|
31440
|
+
return 'Very Common';
|
|
31441
|
+
default:
|
|
31442
|
+
return 'Unknown';
|
|
31443
|
+
}
|
|
31444
|
+
};
|
|
31445
|
+
var InformationCenterNPCTooltip = function InformationCenterNPCTooltip(_ref) {
|
|
31446
|
+
var _npc$skills$strength, _npc$skills$dexterity, _npc$skills$resistanc;
|
|
31447
|
+
var npc = _ref.npc,
|
|
31448
|
+
itemsAtlasJSON = _ref.itemsAtlasJSON,
|
|
31449
|
+
itemsAtlasIMG = _ref.itemsAtlasIMG;
|
|
31450
|
+
return React__default.createElement(BaseTooltip, null, React__default.createElement(TooltipTitle$1, null, npc.name), React__default.createElement(StatsContainer, null, React__default.createElement(StatItem$1, null, "HP: ", npc.baseHealth), React__default.createElement(StatItem$1, null, "LVL: ", npc.skills.level), React__default.createElement(StatItem$1, null, "STR: ", ((_npc$skills$strength = npc.skills.strength) == null ? void 0 : _npc$skills$strength.level) || '-'), React__default.createElement(StatItem$1, null, "DEX: ", ((_npc$skills$dexterity = npc.skills.dexterity) == null ? void 0 : _npc$skills$dexterity.level) || '-'), React__default.createElement(StatItem$1, null, "RES: ", ((_npc$skills$resistanc = npc.skills.resistance) == null ? void 0 : _npc$skills$resistanc.level) || '-'), React__default.createElement(StatItem$1, null, "SPD: ", formatText(npc.speed))), npc.entityEffects && npc.entityEffects.length > 0 && React__default.createElement(Section, null, React__default.createElement(SectionTitle, null, "Effects"), React__default.createElement(EffectsList$1, null, npc.entityEffects.map(function (effect) {
|
|
31451
|
+
return React__default.createElement(EffectItem$1, {
|
|
31452
|
+
key: effect
|
|
31453
|
+
}, formatText(effect));
|
|
31454
|
+
}))), npc.areaSpells && npc.areaSpells.length > 0 && React__default.createElement(Section, null, React__default.createElement(SectionTitle, null, "Spells"), React__default.createElement(SpellList, null, npc.areaSpells.map(function (spell) {
|
|
31455
|
+
return React__default.createElement(SpellItem$1, {
|
|
31456
|
+
key: spell.spellKey
|
|
31457
|
+
}, formatText(spell.spellKey), React__default.createElement(SpellInfo, null, formatText(spell.power), ", ", spell.probability, "%"));
|
|
31458
|
+
}))), npc.loots && npc.loots.length > 0 && React__default.createElement(Section, null, React__default.createElement(SectionTitle, null, "Possible Loot"), React__default.createElement(LootList, null, npc.loots.slice(0, 4).map(function (loot) {
|
|
31459
|
+
return React__default.createElement(LootItem$1, {
|
|
31460
|
+
key: loot.itemBlueprintKey
|
|
31461
|
+
}, React__default.createElement(SpriteFromAtlas, {
|
|
31462
|
+
atlasIMG: itemsAtlasIMG,
|
|
31463
|
+
atlasJSON: itemsAtlasJSON,
|
|
31464
|
+
spriteKey: loot.itemBlueprintKey,
|
|
31465
|
+
imgScale: 1
|
|
31466
|
+
}), React__default.createElement(LootName$1, null, formatText(loot.itemBlueprintKey)), React__default.createElement(LootChance$1, null, formatRarity(loot.chance)));
|
|
31467
|
+
}), npc.loots.length > 4 && React__default.createElement(MoreIndicator, null, "..."))));
|
|
31468
|
+
};
|
|
31469
|
+
|
|
31470
|
+
var InformationCenterBestiarySection = function InformationCenterBestiarySection(_ref) {
|
|
31471
|
+
var bestiaryItems = _ref.bestiaryItems,
|
|
31472
|
+
itemsAtlasJSON = _ref.itemsAtlasJSON,
|
|
31473
|
+
itemsAtlasIMG = _ref.itemsAtlasIMG,
|
|
31474
|
+
entitiesAtlasJSON = _ref.entitiesAtlasJSON,
|
|
31475
|
+
entitiesAtlasIMG = _ref.entitiesAtlasIMG,
|
|
31476
|
+
initialSearchQuery = _ref.initialSearchQuery,
|
|
31477
|
+
tabId = _ref.tabId;
|
|
31478
|
+
var _useState = React.useState(initialSearchQuery),
|
|
31479
|
+
searchQuery = _useState[0],
|
|
31480
|
+
setSearchQuery = _useState[1];
|
|
31481
|
+
var _useState2 = React.useState(null),
|
|
31482
|
+
tooltipData = _useState2[0],
|
|
31483
|
+
setTooltipData = _useState2[1];
|
|
31484
|
+
var _useState3 = React.useState(null),
|
|
31485
|
+
selectedMonster = _useState3[0],
|
|
31486
|
+
setSelectedMonster = _useState3[1];
|
|
31487
|
+
var _useState4 = React.useState('ontouchstart' in window),
|
|
31488
|
+
isTouchDevice = _useState4[0];
|
|
31489
|
+
var handleMouseEnter = function handleMouseEnter(monster, event) {
|
|
31490
|
+
if (!isTouchDevice && !selectedMonster) {
|
|
31491
|
+
setTooltipData({
|
|
31492
|
+
npc: monster,
|
|
31493
|
+
position: {
|
|
31494
|
+
x: event.clientX,
|
|
31495
|
+
y: event.clientY
|
|
31496
|
+
}
|
|
31497
|
+
});
|
|
31498
|
+
}
|
|
31499
|
+
};
|
|
31500
|
+
var handleMouseLeave = function handleMouseLeave() {
|
|
31501
|
+
if (!isTouchDevice) {
|
|
31502
|
+
setTooltipData(null);
|
|
31503
|
+
}
|
|
31504
|
+
};
|
|
31505
|
+
var handleMouseMove = function handleMouseMove(event) {
|
|
31506
|
+
if (!isTouchDevice && tooltipData) {
|
|
31507
|
+
setTooltipData(_extends({}, tooltipData, {
|
|
31508
|
+
position: {
|
|
31509
|
+
x: event.clientX,
|
|
31510
|
+
y: event.clientY
|
|
31511
|
+
}
|
|
31512
|
+
}));
|
|
31513
|
+
}
|
|
31514
|
+
};
|
|
31515
|
+
var handleTouchStart = function handleTouchStart(monster, event) {
|
|
31516
|
+
if (isTouchDevice) {
|
|
31517
|
+
event.preventDefault();
|
|
31518
|
+
var touch = event.touches[0];
|
|
31519
|
+
if ((tooltipData == null ? void 0 : tooltipData.npc.id) === monster.id) {
|
|
31520
|
+
setTooltipData(null);
|
|
31521
|
+
} else {
|
|
31522
|
+
setTooltipData({
|
|
31523
|
+
npc: monster,
|
|
31524
|
+
position: {
|
|
31525
|
+
x: touch.clientX,
|
|
31526
|
+
y: touch.clientY
|
|
31527
|
+
}
|
|
31528
|
+
});
|
|
31529
|
+
}
|
|
31530
|
+
}
|
|
31531
|
+
};
|
|
31532
|
+
var handleMonsterClick = function handleMonsterClick(monster) {
|
|
31533
|
+
setSelectedMonster(monster);
|
|
31534
|
+
setTooltipData(null);
|
|
31535
|
+
};
|
|
31536
|
+
var renderItem = function renderItem(item) {
|
|
31537
|
+
return React__default.createElement(InformationCenterCell, {
|
|
31538
|
+
key: item.id,
|
|
31539
|
+
name: item.name,
|
|
31540
|
+
spriteKey: item.key,
|
|
31541
|
+
atlasJSON: entitiesAtlasJSON,
|
|
31542
|
+
atlasIMG: entitiesAtlasIMG,
|
|
31543
|
+
onClick: function onClick() {
|
|
31544
|
+
return handleMonsterClick(item);
|
|
31545
|
+
},
|
|
31546
|
+
onMouseEnter: function onMouseEnter(e) {
|
|
31547
|
+
return handleMouseEnter(item, e);
|
|
31548
|
+
},
|
|
31549
|
+
onMouseLeave: handleMouseLeave,
|
|
31550
|
+
onMouseMove: handleMouseMove,
|
|
31551
|
+
onTouchStart: function onTouchStart(e) {
|
|
31552
|
+
return handleTouchStart(item, e);
|
|
31553
|
+
}
|
|
31554
|
+
});
|
|
31555
|
+
};
|
|
31556
|
+
var filteredItems = bestiaryItems.filter(function (item) {
|
|
31557
|
+
return item.name.toLowerCase().includes(searchQuery.toLowerCase());
|
|
31558
|
+
});
|
|
31559
|
+
return React__default.createElement(React__default.Fragment, null, React__default.createElement(PaginatedContent, {
|
|
31560
|
+
items: filteredItems,
|
|
31561
|
+
renderItem: renderItem,
|
|
31562
|
+
emptyMessage: "No monsters found",
|
|
31563
|
+
tabId: tabId,
|
|
31564
|
+
layout: "grid",
|
|
31565
|
+
searchOptions: {
|
|
31566
|
+
value: searchQuery,
|
|
31567
|
+
onChange: setSearchQuery,
|
|
31568
|
+
placeholder: 'Search monsters...'
|
|
31569
|
+
},
|
|
31570
|
+
itemHeight: "180px"
|
|
31571
|
+
}), tooltipData && React__default.createElement(Portal, null, React__default.createElement(TooltipWrapper, {
|
|
31572
|
+
style: {
|
|
31573
|
+
position: 'fixed',
|
|
31574
|
+
left: tooltipData.position.x + 10,
|
|
31575
|
+
top: tooltipData.position.y + 10
|
|
31576
|
+
}
|
|
31577
|
+
}, React__default.createElement(InformationCenterNPCTooltip, {
|
|
31578
|
+
npc: tooltipData.npc,
|
|
31579
|
+
itemsAtlasJSON: itemsAtlasJSON,
|
|
31580
|
+
itemsAtlasIMG: itemsAtlasIMG
|
|
31581
|
+
}))), selectedMonster && React__default.createElement(InformationCenterNPCDetails, {
|
|
31582
|
+
npc: selectedMonster,
|
|
31583
|
+
itemsAtlasJSON: itemsAtlasJSON,
|
|
31584
|
+
itemsAtlasIMG: itemsAtlasIMG,
|
|
31585
|
+
entitiesAtlasJSON: entitiesAtlasJSON,
|
|
31586
|
+
entitiesAtlasIMG: entitiesAtlasIMG,
|
|
31587
|
+
onBack: function onBack() {
|
|
31588
|
+
return setSelectedMonster(null);
|
|
31589
|
+
}
|
|
31590
|
+
}));
|
|
31591
|
+
};
|
|
31592
|
+
var TooltipWrapper = /*#__PURE__*/styled__default.div.withConfig({
|
|
31593
|
+
displayName: "InformationCenterBestiarySection__TooltipWrapper",
|
|
31594
|
+
componentId: "sc-e3h0p2-0"
|
|
31595
|
+
})(["position:fixed;z-index:1000;pointer-events:none;width:300px;"]);
|
|
31596
|
+
|
|
31597
|
+
var InformationCenterFAQSection = function InformationCenterFAQSection(_ref) {
|
|
31598
|
+
var faqItems = _ref.faqItems,
|
|
31599
|
+
initialSearchQuery = _ref.initialSearchQuery,
|
|
31600
|
+
tabId = _ref.tabId;
|
|
31601
|
+
var _useState = React.useState(initialSearchQuery),
|
|
31602
|
+
searchQuery = _useState[0],
|
|
31603
|
+
setSearchQuery = _useState[1];
|
|
31604
|
+
React.useEffect(function () {
|
|
31605
|
+
setSearchQuery(initialSearchQuery);
|
|
31606
|
+
}, [initialSearchQuery]);
|
|
31607
|
+
var filteredFaqs = React.useMemo(function () {
|
|
31608
|
+
if (!searchQuery) return faqItems;
|
|
31609
|
+
return faqItems.filter(function (faq) {
|
|
31610
|
+
return faq.question.toLowerCase().includes(searchQuery.toLowerCase()) || faq.answer.toLowerCase().includes(searchQuery.toLowerCase());
|
|
31611
|
+
});
|
|
31612
|
+
}, [searchQuery, faqItems]);
|
|
31613
|
+
var renderItem = function renderItem(item) {
|
|
31614
|
+
return React__default.createElement(StyledCollapsible$1, {
|
|
31615
|
+
title: item.question
|
|
31616
|
+
}, React__default.createElement(Answer$1, null, item.answer));
|
|
31617
|
+
};
|
|
31618
|
+
return React__default.createElement(Container$q, null, React__default.createElement(SearchHeader, {
|
|
31619
|
+
searchOptions: {
|
|
31620
|
+
value: searchQuery,
|
|
31621
|
+
onChange: setSearchQuery,
|
|
31622
|
+
placeholder: 'Search FAQs...'
|
|
31623
|
+
}
|
|
31624
|
+
}), React__default.createElement(PaginatedContent, {
|
|
31625
|
+
items: filteredFaqs,
|
|
31626
|
+
renderItem: renderItem,
|
|
31627
|
+
emptyMessage: "No FAQ items found",
|
|
31628
|
+
tabId: tabId,
|
|
31629
|
+
layout: "list",
|
|
31630
|
+
itemsPerPage: 10
|
|
31631
|
+
}));
|
|
31632
|
+
};
|
|
31633
|
+
var Container$q = /*#__PURE__*/styled__default.div.withConfig({
|
|
31634
|
+
displayName: "InformationCenterFaqSection__Container",
|
|
31635
|
+
componentId: "sc-ofmaa9-0"
|
|
31636
|
+
})(["display:flex;flex-direction:column;gap:1rem;width:100%;"]);
|
|
31637
|
+
var StyledCollapsible$1 = /*#__PURE__*/styled__default(Collapsible).withConfig({
|
|
31638
|
+
displayName: "InformationCenterFaqSection__StyledCollapsible",
|
|
31639
|
+
componentId: "sc-ofmaa9-1"
|
|
31640
|
+
})(["margin-bottom:0.5rem;&:last-child{margin-bottom:0;}"]);
|
|
31641
|
+
var Answer$1 = /*#__PURE__*/styled__default.p.withConfig({
|
|
31642
|
+
displayName: "InformationCenterFaqSection__Answer",
|
|
31643
|
+
componentId: "sc-ofmaa9-2"
|
|
31644
|
+
})(["font-size:0.9rem;color:#ffffff;margin:0;line-height:1.5;"]);
|
|
31645
|
+
|
|
31646
|
+
var InformationCenterItemDetails = function InformationCenterItemDetails(_ref) {
|
|
31647
|
+
var item = _ref.item,
|
|
31648
|
+
itemsAtlasJSON = _ref.itemsAtlasJSON,
|
|
31649
|
+
itemsAtlasIMG = _ref.itemsAtlasIMG,
|
|
31650
|
+
droppedBy = _ref.droppedBy,
|
|
31651
|
+
onBack = _ref.onBack;
|
|
31652
|
+
var isMobile = shared.isMobileOrTablet();
|
|
31653
|
+
var renderAllowedSlots = function renderAllowedSlots() {
|
|
31654
|
+
var _item$allowedEquipSlo;
|
|
31655
|
+
if (!((_item$allowedEquipSlo = item.allowedEquipSlotType) != null && _item$allowedEquipSlo.length)) return null;
|
|
31656
|
+
return React__default.createElement(InfoItem$1, null, React__default.createElement(Label$1, null, "Equip Slots:"), React__default.createElement(Value$1, null, item.allowedEquipSlotType.join(', ')));
|
|
31657
|
+
};
|
|
31658
|
+
var renderRequirements = function renderRequirements() {
|
|
31659
|
+
if (!item.minRequirements) return null;
|
|
31660
|
+
return React__default.createElement(StyledCollapsible$2, {
|
|
31661
|
+
title: "Requirements",
|
|
31662
|
+
defaultOpen: !isMobile
|
|
31663
|
+
}, React__default.createElement(RequirementsGrid, null, item.minRequirements.level && React__default.createElement(RequirementItem, null, React__default.createElement(Label$1, null, "Level:"), React__default.createElement(Value$1, null, item.minRequirements.level)), item.minRequirements.skill && React__default.createElement(RequirementItem, null, React__default.createElement(Label$1, null, item.minRequirements.skill.name, ":"), React__default.createElement(Value$1, null, item.minRequirements.skill.level))));
|
|
31664
|
+
};
|
|
31665
|
+
return React__default.createElement(BaseInformationDetails, {
|
|
31666
|
+
name: item.name,
|
|
31667
|
+
spriteKey: item.texturePath,
|
|
31668
|
+
atlasJSON: itemsAtlasJSON,
|
|
31669
|
+
atlasIMG: itemsAtlasIMG,
|
|
31670
|
+
onBack: onBack
|
|
31671
|
+
}, React__default.createElement(InfoSection$1, null, React__default.createElement(InfoItem$1, null, React__default.createElement(Label$1, null, "Type:"), React__default.createElement(Value$1, null, item.type)), React__default.createElement(InfoItem$1, null, React__default.createElement(Label$1, null, "Subtype:"), React__default.createElement(Value$1, null, item.subType)), React__default.createElement(InfoItem$1, null, React__default.createElement(Label$1, null, "Tier:"), React__default.createElement(Value$1, null, item.tier)), React__default.createElement(InfoItem$1, null, React__default.createElement(Label$1, null, "Rarity:"), React__default.createElement(Value$1, null, item.rarity)), renderAllowedSlots()), React__default.createElement(StyledCollapsible$2, {
|
|
31672
|
+
title: "Description",
|
|
31673
|
+
defaultOpen: !isMobile
|
|
31674
|
+
}, React__default.createElement(Description$2, null, item.description || 'No description available.')), React__default.createElement(StyledCollapsible$2, {
|
|
31675
|
+
title: "Stats",
|
|
31676
|
+
defaultOpen: !isMobile
|
|
31677
|
+
}, React__default.createElement(StatGrid$1, null, React__default.createElement(StatItem$2, null, "Weight: ", item.weight), React__default.createElement(StatItem$2, null, "Stack Size: ", item.maxStackSize), item.rangeType && React__default.createElement(StatItem$2, null, "Range Type: ", item.rangeType), item.basePrice > 0 && React__default.createElement(StatItem$2, null, "Base Price: ", item.basePrice))), renderRequirements(), item.entityEffects && item.entityEffects.length > 0 && React__default.createElement(StyledCollapsible$2, {
|
|
31678
|
+
title: "Effects",
|
|
31679
|
+
defaultOpen: !isMobile
|
|
31680
|
+
}, React__default.createElement(EffectsList$2, null, item.entityEffects.map(function (effect, index) {
|
|
31681
|
+
return React__default.createElement(EffectItem$2, {
|
|
31682
|
+
key: index
|
|
31683
|
+
}, effect, item.entityEffectChance && React__default.createElement(EffectChance, null, "(", item.entityEffectChance, "%)"));
|
|
31684
|
+
})), item.usableEffectDescription && React__default.createElement(EffectDescription, null, item.usableEffectDescription)), item.equippedBuff && item.equippedBuff.length > 0 && React__default.createElement(StyledCollapsible$2, {
|
|
31685
|
+
title: "Equipped Buffs",
|
|
31686
|
+
defaultOpen: !isMobile
|
|
31687
|
+
}, React__default.createElement(BuffsList, null, item.equippedBuff.map(function (buff, index) {
|
|
31688
|
+
return React__default.createElement(BuffItem, {
|
|
31689
|
+
key: index
|
|
31690
|
+
}, React__default.createElement(BuffName, null, buff.trait), React__default.createElement(BuffValue, null, "+", buff.buffPercentage, "%"));
|
|
31691
|
+
})), item.equippedBuffDescription && React__default.createElement(BuffDescription, null, item.equippedBuffDescription)), droppedBy.length > 0 && React__default.createElement(StyledCollapsible$2, {
|
|
31692
|
+
title: "Dropped By",
|
|
31693
|
+
defaultOpen: !isMobile
|
|
31694
|
+
}, React__default.createElement(DropList, null, droppedBy.map(function (npc) {
|
|
31695
|
+
var loot = npc.loots.find(function (l) {
|
|
31696
|
+
return l.itemBlueprintKey === item.key;
|
|
31697
|
+
});
|
|
31698
|
+
return React__default.createElement(DropItem, {
|
|
31699
|
+
key: npc.id
|
|
31700
|
+
}, React__default.createElement(NPCName, null, npc.name), React__default.createElement(DropRate, null, loot == null ? void 0 : loot.chance, "%"));
|
|
31701
|
+
}))));
|
|
31702
|
+
};
|
|
31703
|
+
var InfoSection$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
31704
|
+
displayName: "InformationCenterItemDetails__InfoSection",
|
|
31705
|
+
componentId: "sc-zwf6pb-0"
|
|
31706
|
+
})(["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;"]);
|
|
31707
|
+
var InfoItem$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
31708
|
+
displayName: "InformationCenterItemDetails__InfoItem",
|
|
31709
|
+
componentId: "sc-zwf6pb-1"
|
|
31710
|
+
})(["display:flex;align-items:center;gap:8px;"]);
|
|
31711
|
+
var Label$1 = /*#__PURE__*/styled__default.span.withConfig({
|
|
31712
|
+
displayName: "InformationCenterItemDetails__Label",
|
|
31713
|
+
componentId: "sc-zwf6pb-2"
|
|
31714
|
+
})(["color:", ";font-size:0.5rem;opacity:0.8;"], uiColors.yellow);
|
|
31715
|
+
var Value$1 = /*#__PURE__*/styled__default.span.withConfig({
|
|
31716
|
+
displayName: "InformationCenterItemDetails__Value",
|
|
31717
|
+
componentId: "sc-zwf6pb-3"
|
|
31718
|
+
})(["color:", ";font-size:0.5rem;"], uiColors.white);
|
|
31719
|
+
var StyledCollapsible$2 = /*#__PURE__*/styled__default(Collapsible).withConfig({
|
|
31720
|
+
displayName: "InformationCenterItemDetails__StyledCollapsible",
|
|
31721
|
+
componentId: "sc-zwf6pb-4"
|
|
31722
|
+
})(["background:rgba(255,255,255,0.05);border-radius:4px;overflow:hidden;"]);
|
|
31723
|
+
var Description$2 = /*#__PURE__*/styled__default.p.withConfig({
|
|
31724
|
+
displayName: "InformationCenterItemDetails__Description",
|
|
31725
|
+
componentId: "sc-zwf6pb-5"
|
|
31726
|
+
})(["color:", ";font-size:0.5rem;margin:0;padding:12px;line-height:1.5;"], uiColors.white);
|
|
31727
|
+
var StatGrid$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
31728
|
+
displayName: "InformationCenterItemDetails__StatGrid",
|
|
31729
|
+
componentId: "sc-zwf6pb-6"
|
|
31730
|
+
})(["display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px;padding:12px;"]);
|
|
31731
|
+
var StatItem$2 = /*#__PURE__*/styled__default.div.withConfig({
|
|
31732
|
+
displayName: "InformationCenterItemDetails__StatItem",
|
|
31733
|
+
componentId: "sc-zwf6pb-7"
|
|
31734
|
+
})(["color:", ";font-size:0.5rem;background:rgba(255,255,255,0.05);padding:8px;border-radius:4px;"], uiColors.white);
|
|
31735
|
+
var EffectsList$2 = /*#__PURE__*/styled__default.div.withConfig({
|
|
31736
|
+
displayName: "InformationCenterItemDetails__EffectsList",
|
|
31737
|
+
componentId: "sc-zwf6pb-8"
|
|
31738
|
+
})(["display:flex;flex-wrap:wrap;gap:8px;padding:12px;"]);
|
|
31739
|
+
var EffectItem$2 = /*#__PURE__*/styled__default.div.withConfig({
|
|
31740
|
+
displayName: "InformationCenterItemDetails__EffectItem",
|
|
31741
|
+
componentId: "sc-zwf6pb-9"
|
|
31742
|
+
})(["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);
|
|
31743
|
+
var EffectChance = /*#__PURE__*/styled__default.span.withConfig({
|
|
31744
|
+
displayName: "InformationCenterItemDetails__EffectChance",
|
|
31745
|
+
componentId: "sc-zwf6pb-10"
|
|
31746
|
+
})(["color:", ";opacity:0.8;"], uiColors.yellow);
|
|
31747
|
+
var BuffsList = /*#__PURE__*/styled__default.div.withConfig({
|
|
31748
|
+
displayName: "InformationCenterItemDetails__BuffsList",
|
|
31749
|
+
componentId: "sc-zwf6pb-11"
|
|
31750
|
+
})(["display:flex;flex-direction:column;gap:8px;padding:12px;"]);
|
|
31751
|
+
var BuffItem = /*#__PURE__*/styled__default.div.withConfig({
|
|
31752
|
+
displayName: "InformationCenterItemDetails__BuffItem",
|
|
31753
|
+
componentId: "sc-zwf6pb-12"
|
|
31754
|
+
})(["display:flex;justify-content:space-between;align-items:center;background:rgba(255,255,255,0.05);padding:8px;border-radius:4px;"]);
|
|
31755
|
+
var BuffName = /*#__PURE__*/styled__default.span.withConfig({
|
|
31756
|
+
displayName: "InformationCenterItemDetails__BuffName",
|
|
31757
|
+
componentId: "sc-zwf6pb-13"
|
|
31758
|
+
})(["color:", ";font-size:0.5rem;"], uiColors.white);
|
|
31759
|
+
var BuffValue = /*#__PURE__*/styled__default.span.withConfig({
|
|
31760
|
+
displayName: "InformationCenterItemDetails__BuffValue",
|
|
31761
|
+
componentId: "sc-zwf6pb-14"
|
|
31762
|
+
})(["color:", ";font-size:0.5rem;"], uiColors.yellow);
|
|
31763
|
+
var BuffDescription = /*#__PURE__*/styled__default.p.withConfig({
|
|
31764
|
+
displayName: "InformationCenterItemDetails__BuffDescription",
|
|
31765
|
+
componentId: "sc-zwf6pb-15"
|
|
31766
|
+
})(["color:", ";font-size:0.45rem;margin:0;padding:0 12px 12px;font-style:italic;"], uiColors.lightGray);
|
|
31767
|
+
var DropList = /*#__PURE__*/styled__default.div.withConfig({
|
|
31768
|
+
displayName: "InformationCenterItemDetails__DropList",
|
|
31769
|
+
componentId: "sc-zwf6pb-16"
|
|
31770
|
+
})(["display:flex;flex-direction:column;gap:0.5rem;padding:12px;"]);
|
|
31771
|
+
var DropItem = /*#__PURE__*/styled__default.div.withConfig({
|
|
31772
|
+
displayName: "InformationCenterItemDetails__DropItem",
|
|
31773
|
+
componentId: "sc-zwf6pb-17"
|
|
31774
|
+
})(["display:flex;justify-content:space-between;align-items:center;padding:0.5rem;background:rgba(255,255,255,0.05);border-radius:4px;"]);
|
|
31775
|
+
var NPCName = /*#__PURE__*/styled__default.span.withConfig({
|
|
31776
|
+
displayName: "InformationCenterItemDetails__NPCName",
|
|
31777
|
+
componentId: "sc-zwf6pb-18"
|
|
31778
|
+
})(["color:", ";font-size:0.5rem;"], uiColors.white);
|
|
31779
|
+
var DropRate = /*#__PURE__*/styled__default.span.withConfig({
|
|
31780
|
+
displayName: "InformationCenterItemDetails__DropRate",
|
|
31781
|
+
componentId: "sc-zwf6pb-19"
|
|
31782
|
+
})(["color:", ";font-size:0.5rem;"], uiColors.yellow);
|
|
31783
|
+
var RequirementsGrid = /*#__PURE__*/styled__default.div.withConfig({
|
|
31784
|
+
displayName: "InformationCenterItemDetails__RequirementsGrid",
|
|
31785
|
+
componentId: "sc-zwf6pb-20"
|
|
31786
|
+
})(["display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px;padding:12px;"]);
|
|
31787
|
+
var RequirementItem = /*#__PURE__*/styled__default.div.withConfig({
|
|
31788
|
+
displayName: "InformationCenterItemDetails__RequirementItem",
|
|
31789
|
+
componentId: "sc-zwf6pb-21"
|
|
31790
|
+
})(["display:flex;align-items:center;gap:8px;background:rgba(255,255,255,0.05);padding:8px;border-radius:4px;"]);
|
|
31791
|
+
var EffectDescription = /*#__PURE__*/styled__default.p.withConfig({
|
|
31792
|
+
displayName: "InformationCenterItemDetails__EffectDescription",
|
|
31793
|
+
componentId: "sc-zwf6pb-22"
|
|
31794
|
+
})(["color:", ";font-size:0.45rem;margin:8px 0 0;padding:0 12px;font-style:italic;"], uiColors.lightGray);
|
|
31795
|
+
|
|
31796
|
+
var ItemHeader$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
31797
|
+
displayName: "InformationCenterItemTooltip__ItemHeader",
|
|
31798
|
+
componentId: "sc-1ecf9mj-0"
|
|
31799
|
+
})(["display:flex;align-items:center;gap:8px;"]);
|
|
31800
|
+
var Description$3 = /*#__PURE__*/styled__default.div.withConfig({
|
|
31801
|
+
displayName: "InformationCenterItemTooltip__Description",
|
|
31802
|
+
componentId: "sc-1ecf9mj-1"
|
|
31803
|
+
})(["color:", ";font-size:0.5rem;line-height:1.4;margin-top:8px;opacity:0.8;"], uiColors.white);
|
|
31804
|
+
var RarityText = /*#__PURE__*/styled__default.span.withConfig({
|
|
31805
|
+
displayName: "InformationCenterItemTooltip__RarityText",
|
|
31806
|
+
componentId: "sc-1ecf9mj-2"
|
|
31807
|
+
})(["color:", ";font-size:0.5rem;"], function (props) {
|
|
31808
|
+
switch (props.rarity.toLowerCase()) {
|
|
31809
|
+
case 'legendary':
|
|
31810
|
+
return '#ff8c00';
|
|
31811
|
+
case 'rare':
|
|
31812
|
+
return '#0070dd';
|
|
31813
|
+
case 'uncommon':
|
|
31814
|
+
return '#1eff00';
|
|
31815
|
+
default:
|
|
31816
|
+
return '#ffffff';
|
|
31817
|
+
}
|
|
31818
|
+
});
|
|
31819
|
+
var InformationCenterItemTooltip = function InformationCenterItemTooltip(_ref) {
|
|
31820
|
+
var item = _ref.item;
|
|
31821
|
+
return React__default.createElement(BaseTooltip, null, React__default.createElement(ItemHeader$1, null, React__default.createElement(TooltipTitle$1, null, item.name)), React__default.createElement(Description$3, null, item.description), React__default.createElement(Section, null, React__default.createElement(SectionTitle, null, "Details"), React__default.createElement(StatsContainer, null, React__default.createElement(StatItem$1, null, "Type: ", item.type), React__default.createElement(StatItem$1, null, "Weight: ", item.weight), item.attack !== undefined && React__default.createElement(StatItem$1, null, "Attack: ", item.attack), item.defense !== undefined && React__default.createElement(StatItem$1, null, "Defense: ", item.defense), item.tier !== undefined && React__default.createElement(StatItem$1, null, "Tier: ", item.tier), item.rangeType && React__default.createElement(StatItem$1, null, "Range: ", item.rangeType))), React__default.createElement(Section, null, React__default.createElement(SectionTitle, null, "Market"), React__default.createElement(StatsContainer, null, React__default.createElement(StatItem$1, null, "Price: ", item.basePrice), item.rarity && React__default.createElement(StatItem$1, null, "Rarity:", ' ', React__default.createElement(RarityText, {
|
|
31822
|
+
rarity: item.rarity
|
|
31823
|
+
}, item.rarity)))));
|
|
31824
|
+
};
|
|
31825
|
+
|
|
31826
|
+
var TOOLTIP_OFFSET = 20;
|
|
31827
|
+
var InformationCenterItemsSection = function InformationCenterItemsSection(_ref) {
|
|
31828
|
+
var items = _ref.items,
|
|
31829
|
+
bestiaryItems = _ref.bestiaryItems,
|
|
31830
|
+
itemsAtlasJSON = _ref.itemsAtlasJSON,
|
|
31831
|
+
itemsAtlasIMG = _ref.itemsAtlasIMG,
|
|
31832
|
+
initialSearchQuery = _ref.initialSearchQuery,
|
|
31833
|
+
tabId = _ref.tabId;
|
|
31834
|
+
var _useState = React.useState(initialSearchQuery),
|
|
31835
|
+
searchQuery = _useState[0],
|
|
31836
|
+
setSearchQuery = _useState[1];
|
|
31837
|
+
var _useState2 = React.useState('all'),
|
|
31838
|
+
selectedItemCategory = _useState2[0],
|
|
31839
|
+
setSelectedItemCategory = _useState2[1];
|
|
31840
|
+
var _useState3 = React.useState(null),
|
|
31841
|
+
hoveredItem = _useState3[0],
|
|
31842
|
+
setHoveredItem = _useState3[1];
|
|
31843
|
+
var _useState4 = React.useState({
|
|
31844
|
+
x: 0,
|
|
31845
|
+
y: 0
|
|
31846
|
+
}),
|
|
31847
|
+
tooltipPosition = _useState4[0],
|
|
31848
|
+
setTooltipPosition = _useState4[1];
|
|
31849
|
+
var _useState5 = React.useState(null),
|
|
31850
|
+
selectedItem = _useState5[0],
|
|
31851
|
+
setSelectedItem = _useState5[1];
|
|
31852
|
+
var itemCategoryOptions = [{
|
|
31853
|
+
id: 0,
|
|
31854
|
+
value: 'all',
|
|
31855
|
+
option: 'All Items'
|
|
31856
|
+
}, {
|
|
31857
|
+
id: 1,
|
|
31858
|
+
value: shared.ItemType.Consumable,
|
|
31859
|
+
option: 'Consumables'
|
|
31860
|
+
}, {
|
|
31861
|
+
id: 2,
|
|
31862
|
+
value: shared.ItemType.Weapon,
|
|
31863
|
+
option: 'Weapons'
|
|
31864
|
+
}, {
|
|
31865
|
+
id: 3,
|
|
31866
|
+
value: shared.ItemType.Armor,
|
|
31867
|
+
option: 'Armor'
|
|
31868
|
+
}];
|
|
31869
|
+
var filteredItems = items.filter(function (item) {
|
|
31870
|
+
return (selectedItemCategory === 'all' || item.type === selectedItemCategory) && item.name.toLowerCase().includes(searchQuery.toLowerCase());
|
|
31871
|
+
});
|
|
31872
|
+
var getDroppedByNPCs = function getDroppedByNPCs(itemId, npcs) {
|
|
31873
|
+
return npcs.filter(function (npc) {
|
|
31874
|
+
var _npc$loots;
|
|
31875
|
+
return (_npc$loots = npc.loots) == null ? void 0 : _npc$loots.some(function (loot) {
|
|
31876
|
+
return loot.itemBlueprintKey === itemId;
|
|
31877
|
+
});
|
|
31878
|
+
}) || [];
|
|
31879
|
+
};
|
|
31880
|
+
var handleMouseEnter = function handleMouseEnter(e, item) {
|
|
31881
|
+
setTooltipPosition({
|
|
31882
|
+
x: e.clientX + TOOLTIP_OFFSET,
|
|
31883
|
+
y: e.clientY
|
|
31884
|
+
});
|
|
31885
|
+
setHoveredItem(item);
|
|
31886
|
+
};
|
|
31887
|
+
var handleMouseMove = function handleMouseMove(e) {
|
|
31888
|
+
if (hoveredItem) {
|
|
31889
|
+
setTooltipPosition({
|
|
31890
|
+
x: e.clientX + TOOLTIP_OFFSET,
|
|
31891
|
+
y: e.clientY
|
|
31892
|
+
});
|
|
31893
|
+
}
|
|
31894
|
+
};
|
|
31895
|
+
var handleMouseLeave = function handleMouseLeave() {
|
|
31896
|
+
setHoveredItem(null);
|
|
31897
|
+
};
|
|
31898
|
+
var handleTouchStart = function handleTouchStart(e, item) {
|
|
31899
|
+
var touch = e.touches[0];
|
|
31900
|
+
setTooltipPosition({
|
|
31901
|
+
x: touch.clientX + TOOLTIP_OFFSET,
|
|
31902
|
+
y: touch.clientY
|
|
31903
|
+
});
|
|
31904
|
+
setHoveredItem(item);
|
|
31905
|
+
};
|
|
31906
|
+
var handleItemClick = function handleItemClick(item) {
|
|
31907
|
+
setSelectedItem(item);
|
|
31908
|
+
setHoveredItem(null);
|
|
31909
|
+
};
|
|
31910
|
+
var renderItem = function renderItem(item) {
|
|
31911
|
+
return React__default.createElement(InformationCenterCell, {
|
|
31912
|
+
key: item.key,
|
|
31913
|
+
name: item.name,
|
|
31914
|
+
spriteKey: item.texturePath,
|
|
31915
|
+
atlasJSON: itemsAtlasJSON,
|
|
31916
|
+
atlasIMG: itemsAtlasIMG,
|
|
31917
|
+
onMouseEnter: function onMouseEnter(e) {
|
|
31918
|
+
return handleMouseEnter(e, item);
|
|
31919
|
+
},
|
|
31920
|
+
onMouseMove: handleMouseMove,
|
|
31921
|
+
onMouseLeave: handleMouseLeave,
|
|
31922
|
+
onTouchStart: function onTouchStart(e) {
|
|
31923
|
+
return handleTouchStart(e, item);
|
|
31924
|
+
},
|
|
31925
|
+
onClick: function onClick() {
|
|
31926
|
+
return handleItemClick(item);
|
|
31927
|
+
}
|
|
31928
|
+
});
|
|
31929
|
+
};
|
|
31930
|
+
return React__default.createElement(React__default.Fragment, null, React__default.createElement(PaginatedContent, {
|
|
31931
|
+
items: filteredItems,
|
|
31932
|
+
renderItem: renderItem,
|
|
31933
|
+
emptyMessage: "No items found",
|
|
31934
|
+
filterOptions: {
|
|
31935
|
+
options: itemCategoryOptions,
|
|
31936
|
+
selectedOption: selectedItemCategory,
|
|
31937
|
+
onOptionChange: setSelectedItemCategory
|
|
31938
|
+
},
|
|
31939
|
+
searchOptions: {
|
|
31940
|
+
value: searchQuery,
|
|
31941
|
+
onChange: setSearchQuery,
|
|
31942
|
+
placeholder: 'Search items...'
|
|
31943
|
+
},
|
|
31944
|
+
dependencies: [selectedItemCategory],
|
|
31945
|
+
tabId: tabId,
|
|
31946
|
+
layout: "grid",
|
|
31947
|
+
itemHeight: "180px"
|
|
31948
|
+
}), hoveredItem && React__default.createElement(TooltipWrapper$1, {
|
|
31949
|
+
style: {
|
|
31950
|
+
top: tooltipPosition.y,
|
|
31951
|
+
left: tooltipPosition.x
|
|
31952
|
+
}
|
|
31953
|
+
}, React__default.createElement(InformationCenterItemTooltip, {
|
|
31954
|
+
item: hoveredItem
|
|
31955
|
+
})), selectedItem && React__default.createElement(InformationCenterItemDetails, {
|
|
31956
|
+
item: selectedItem,
|
|
31957
|
+
itemsAtlasJSON: itemsAtlasJSON,
|
|
31958
|
+
itemsAtlasIMG: itemsAtlasIMG,
|
|
31959
|
+
droppedBy: getDroppedByNPCs(selectedItem.key, bestiaryItems),
|
|
31960
|
+
onBack: function onBack() {
|
|
31961
|
+
return setSelectedItem(null);
|
|
31962
|
+
}
|
|
31963
|
+
}));
|
|
31964
|
+
};
|
|
31965
|
+
var TooltipWrapper$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
31966
|
+
displayName: "InformationCenterItemsSection__TooltipWrapper",
|
|
31967
|
+
componentId: "sc-1wmpapt-0"
|
|
31968
|
+
})(["position:fixed;z-index:1000;pointer-events:none;transition:transform 0.1s ease;"]);
|
|
31969
|
+
|
|
31970
|
+
var InformationCenterTutorialsSection = function InformationCenterTutorialsSection(_ref) {
|
|
31971
|
+
var videoGuides = _ref.videoGuides,
|
|
31972
|
+
initialSearchQuery = _ref.initialSearchQuery,
|
|
31973
|
+
tabId = _ref.tabId;
|
|
31974
|
+
var _useState = React.useState(initialSearchQuery),
|
|
31975
|
+
searchQuery = _useState[0],
|
|
31976
|
+
setSearchQuery = _useState[1];
|
|
31977
|
+
var _useState2 = React.useState('all'),
|
|
31978
|
+
selectedCategory = _useState2[0],
|
|
31979
|
+
setSelectedCategory = _useState2[1];
|
|
31980
|
+
var categoryOptions = [{
|
|
31981
|
+
id: 0,
|
|
31982
|
+
value: 'all',
|
|
31983
|
+
option: 'All'
|
|
31984
|
+
}, {
|
|
31985
|
+
id: 1,
|
|
31986
|
+
value: 'Combat',
|
|
31987
|
+
option: 'Combat'
|
|
31988
|
+
}, {
|
|
31989
|
+
id: 2,
|
|
31990
|
+
value: 'Crafting',
|
|
31991
|
+
option: 'Crafting'
|
|
31992
|
+
}, {
|
|
31993
|
+
id: 3,
|
|
31994
|
+
value: 'Exploration',
|
|
31995
|
+
option: 'Exploration'
|
|
31996
|
+
}, {
|
|
31997
|
+
id: 4,
|
|
31998
|
+
value: 'General',
|
|
31999
|
+
option: 'General'
|
|
32000
|
+
}];
|
|
32001
|
+
var renderItem = function renderItem(guide) {
|
|
32002
|
+
return React__default.createElement(GuideItem, {
|
|
32003
|
+
key: guide.id
|
|
32004
|
+
}, React__default.createElement(GuideThumbnail, null, React__default.createElement("img", {
|
|
32005
|
+
src: guide.thumbnailUrl || '/placeholder-thumbnail.png',
|
|
32006
|
+
alt: guide.title
|
|
32007
|
+
})), React__default.createElement(GuideContent, null, React__default.createElement(GuideTitle, null, guide.title), React__default.createElement(GuideDescription, null, guide.description), React__default.createElement(GuideCategory, null, guide.category)));
|
|
32008
|
+
};
|
|
32009
|
+
var filteredGuides = videoGuides.filter(function (guide) {
|
|
32010
|
+
return (selectedCategory === 'all' || guide.category === selectedCategory) && (guide.title.toLowerCase().includes(searchQuery.toLowerCase()) || guide.description.toLowerCase().includes(searchQuery.toLowerCase()));
|
|
32011
|
+
});
|
|
32012
|
+
return React__default.createElement(PaginatedContent, {
|
|
32013
|
+
items: filteredGuides,
|
|
32014
|
+
renderItem: renderItem,
|
|
32015
|
+
emptyMessage: "No guides found",
|
|
32016
|
+
searchOptions: {
|
|
32017
|
+
value: searchQuery,
|
|
32018
|
+
onChange: setSearchQuery,
|
|
32019
|
+
placeholder: 'Search guides...'
|
|
32020
|
+
},
|
|
32021
|
+
filterOptions: {
|
|
32022
|
+
options: categoryOptions,
|
|
32023
|
+
selectedOption: selectedCategory,
|
|
32024
|
+
onOptionChange: setSelectedCategory
|
|
32025
|
+
},
|
|
32026
|
+
dependencies: [selectedCategory],
|
|
32027
|
+
tabId: tabId,
|
|
32028
|
+
layout: "grid",
|
|
32029
|
+
gridColumns: 3,
|
|
32030
|
+
itemsPerPage: 3,
|
|
32031
|
+
itemHeight: "400px"
|
|
32032
|
+
});
|
|
32033
|
+
};
|
|
32034
|
+
var GuideItem = /*#__PURE__*/styled__default.div.withConfig({
|
|
32035
|
+
displayName: "InformationCenterTutorialsSection__GuideItem",
|
|
32036
|
+
componentId: "sc-1gk05vk-0"
|
|
32037
|
+
})(["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);
|
|
32038
|
+
var GuideThumbnail = /*#__PURE__*/styled__default.div.withConfig({
|
|
32039
|
+
displayName: "InformationCenterTutorialsSection__GuideThumbnail",
|
|
32040
|
+
componentId: "sc-1gk05vk-1"
|
|
32041
|
+
})(["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;"]);
|
|
32042
|
+
var GuideContent = /*#__PURE__*/styled__default.div.withConfig({
|
|
32043
|
+
displayName: "InformationCenterTutorialsSection__GuideContent",
|
|
32044
|
+
componentId: "sc-1gk05vk-2"
|
|
32045
|
+
})(["padding:12px;"]);
|
|
32046
|
+
var GuideTitle = /*#__PURE__*/styled__default.h3.withConfig({
|
|
32047
|
+
displayName: "InformationCenterTutorialsSection__GuideTitle",
|
|
32048
|
+
componentId: "sc-1gk05vk-3"
|
|
32049
|
+
})(["margin:0;font-size:0.6rem;color:", ";font-family:'Press Start 2P',cursive;margin-bottom:8px;"], uiColors.yellow);
|
|
32050
|
+
var GuideDescription = /*#__PURE__*/styled__default.p.withConfig({
|
|
32051
|
+
displayName: "InformationCenterTutorialsSection__GuideDescription",
|
|
32052
|
+
componentId: "sc-1gk05vk-4"
|
|
32053
|
+
})(["margin:0;font-size:0.55rem;color:", ";font-family:'Press Start 2P',cursive;margin-bottom:8px;line-height:1.4;"], uiColors.lightGray);
|
|
32054
|
+
var GuideCategory = /*#__PURE__*/styled__default.span.withConfig({
|
|
32055
|
+
displayName: "InformationCenterTutorialsSection__GuideCategory",
|
|
32056
|
+
componentId: "sc-1gk05vk-5"
|
|
32057
|
+
})(["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);
|
|
32058
|
+
|
|
32059
|
+
var InformationCenter = function InformationCenter(_ref) {
|
|
32060
|
+
var itemsAtlasJSON = _ref.itemsAtlasJSON,
|
|
32061
|
+
itemsAtlasIMG = _ref.itemsAtlasIMG,
|
|
32062
|
+
entitiesAtlasJSON = _ref.entitiesAtlasJSON,
|
|
32063
|
+
entitiesAtlasIMG = _ref.entitiesAtlasIMG,
|
|
32064
|
+
_ref$faqItems = _ref.faqItems,
|
|
32065
|
+
faqItems = _ref$faqItems === void 0 ? [] : _ref$faqItems,
|
|
32066
|
+
_ref$bestiaryItems = _ref.bestiaryItems,
|
|
32067
|
+
bestiaryItems = _ref$bestiaryItems === void 0 ? [] : _ref$bestiaryItems,
|
|
32068
|
+
_ref$videoGuides = _ref.videoGuides,
|
|
32069
|
+
videoGuides = _ref$videoGuides === void 0 ? [] : _ref$videoGuides,
|
|
32070
|
+
_ref$items = _ref.items,
|
|
32071
|
+
items = _ref$items === void 0 ? [] : _ref$items,
|
|
32072
|
+
_ref$loading = _ref.loading,
|
|
32073
|
+
loading = _ref$loading === void 0 ? false : _ref$loading,
|
|
32074
|
+
error = _ref.error,
|
|
32075
|
+
_ref$initialSearchQue = _ref.initialSearchQuery,
|
|
32076
|
+
initialSearchQuery = _ref$initialSearchQue === void 0 ? '' : _ref$initialSearchQue;
|
|
32077
|
+
var _useState = React.useState('bestiary'),
|
|
32078
|
+
activeTab = _useState[0],
|
|
32079
|
+
setActiveTab = _useState[1];
|
|
32080
|
+
var _useState2 = React.useState(null),
|
|
32081
|
+
selectedItem = _useState2[0],
|
|
32082
|
+
setSelectedItem = _useState2[1];
|
|
32083
|
+
if (loading) {
|
|
32084
|
+
return React__default.createElement(LoadingMessage, null, "Loading...");
|
|
32085
|
+
}
|
|
32086
|
+
if (error) {
|
|
32087
|
+
return React__default.createElement(ErrorMessage, null, error);
|
|
32088
|
+
}
|
|
32089
|
+
var tabs = [{
|
|
32090
|
+
id: 'bestiary',
|
|
32091
|
+
title: 'Bestiary',
|
|
32092
|
+
content: React__default.createElement(InformationCenterBestiarySection, {
|
|
32093
|
+
bestiaryItems: bestiaryItems,
|
|
32094
|
+
itemsAtlasJSON: itemsAtlasJSON,
|
|
32095
|
+
itemsAtlasIMG: itemsAtlasIMG,
|
|
32096
|
+
entitiesAtlasJSON: entitiesAtlasJSON,
|
|
32097
|
+
entitiesAtlasIMG: entitiesAtlasIMG,
|
|
32098
|
+
initialSearchQuery: initialSearchQuery,
|
|
32099
|
+
tabId: "bestiary"
|
|
32100
|
+
})
|
|
32101
|
+
}, {
|
|
32102
|
+
id: 'items',
|
|
32103
|
+
title: 'Items',
|
|
32104
|
+
content: React__default.createElement(InformationCenterItemsSection, {
|
|
32105
|
+
items: items,
|
|
32106
|
+
bestiaryItems: bestiaryItems,
|
|
32107
|
+
itemsAtlasJSON: itemsAtlasJSON,
|
|
32108
|
+
itemsAtlasIMG: itemsAtlasIMG,
|
|
32109
|
+
initialSearchQuery: initialSearchQuery,
|
|
32110
|
+
tabId: "items"
|
|
32111
|
+
})
|
|
32112
|
+
}, {
|
|
32113
|
+
id: 'faq',
|
|
32114
|
+
title: 'FAQ',
|
|
32115
|
+
content: React__default.createElement(InformationCenterFAQSection, {
|
|
32116
|
+
faqItems: faqItems,
|
|
32117
|
+
initialSearchQuery: initialSearchQuery,
|
|
32118
|
+
tabId: "faq"
|
|
32119
|
+
})
|
|
32120
|
+
}, {
|
|
32121
|
+
id: 'tutorials',
|
|
32122
|
+
title: 'Tutorials',
|
|
32123
|
+
content: React__default.createElement(InformationCenterTutorialsSection, {
|
|
32124
|
+
videoGuides: videoGuides,
|
|
32125
|
+
initialSearchQuery: initialSearchQuery,
|
|
32126
|
+
tabId: "tutorials"
|
|
32127
|
+
})
|
|
32128
|
+
}];
|
|
32129
|
+
return React__default.createElement(Container$r, null, React__default.createElement(InternalTabs, {
|
|
32130
|
+
tabs: tabs,
|
|
32131
|
+
activeTextColor: "#000000",
|
|
32132
|
+
activeTab: activeTab,
|
|
32133
|
+
onTabChange: setActiveTab,
|
|
32134
|
+
activeColor: "#fef08a",
|
|
32135
|
+
inactiveColor: "#6b7280",
|
|
32136
|
+
borderColor: "#f59e0b",
|
|
32137
|
+
hoverColor: "#fef3c7"
|
|
32138
|
+
}), selectedItem && React__default.createElement(InformationCenterItemDetails, {
|
|
32139
|
+
item: selectedItem,
|
|
32140
|
+
itemsAtlasJSON: itemsAtlasJSON,
|
|
32141
|
+
itemsAtlasIMG: itemsAtlasIMG,
|
|
32142
|
+
droppedBy: bestiaryItems.filter(function (npc) {
|
|
32143
|
+
var _npc$loots;
|
|
32144
|
+
return (_npc$loots = npc.loots) == null ? void 0 : _npc$loots.some(function (loot) {
|
|
32145
|
+
return loot.itemBlueprintKey === selectedItem.key;
|
|
32146
|
+
});
|
|
32147
|
+
}),
|
|
32148
|
+
onBack: function onBack() {
|
|
32149
|
+
return setSelectedItem(null);
|
|
32150
|
+
}
|
|
32151
|
+
}));
|
|
32152
|
+
};
|
|
32153
|
+
var Container$r = /*#__PURE__*/styled__default.div.withConfig({
|
|
32154
|
+
displayName: "InformationCenter__Container",
|
|
32155
|
+
componentId: "sc-1ttl62e-0"
|
|
32156
|
+
})(["width:100%;max-width:800px;margin:0 auto;padding:1rem;"]);
|
|
32157
|
+
var LoadingMessage = /*#__PURE__*/styled__default.div.withConfig({
|
|
32158
|
+
displayName: "InformationCenter__LoadingMessage",
|
|
32159
|
+
componentId: "sc-1ttl62e-1"
|
|
32160
|
+
})(["text-align:center;color:#ffffff;padding:2rem;"]);
|
|
32161
|
+
var ErrorMessage = /*#__PURE__*/styled__default.div.withConfig({
|
|
32162
|
+
displayName: "InformationCenter__ErrorMessage",
|
|
32163
|
+
componentId: "sc-1ttl62e-2"
|
|
32164
|
+
})(["text-align:center;color:#ef4444;padding:2rem;"]);
|
|
32165
|
+
|
|
30782
32166
|
var SlotsContainer = function SlotsContainer(_ref) {
|
|
30783
32167
|
var children = _ref.children,
|
|
30784
32168
|
title = _ref.title,
|
|
@@ -30937,7 +32321,7 @@ var ShortcutsSetter = function ShortcutsSetter(_ref) {
|
|
|
30937
32321
|
}
|
|
30938
32322
|
return null;
|
|
30939
32323
|
};
|
|
30940
|
-
return React__default.createElement(Container$
|
|
32324
|
+
return React__default.createElement(Container$s, null, React__default.createElement("p", null, "Shortcuts:"), React__default.createElement(List, {
|
|
30941
32325
|
id: "shortcuts_list"
|
|
30942
32326
|
}, Array.from({
|
|
30943
32327
|
length: 12
|
|
@@ -30955,7 +32339,7 @@ var ShortcutsSetter = function ShortcutsSetter(_ref) {
|
|
|
30955
32339
|
}, getContent(i));
|
|
30956
32340
|
})));
|
|
30957
32341
|
};
|
|
30958
|
-
var Container$
|
|
32342
|
+
var Container$s = /*#__PURE__*/styled__default.div.withConfig({
|
|
30959
32343
|
displayName: "ShortcutsSetter__Container",
|
|
30960
32344
|
componentId: "sc-xuouuf-0"
|
|
30961
32345
|
})(["p{margin:0;margin-left:0.5rem;font-size:10px;}width:100%;"]);
|
|
@@ -31021,7 +32405,7 @@ var RangeSlider = /*#__PURE__*/React__default.memo(function (_ref) {
|
|
|
31021
32405
|
style: {
|
|
31022
32406
|
left: left
|
|
31023
32407
|
}
|
|
31024
|
-
})), React__default.createElement(Input$
|
|
32408
|
+
})), React__default.createElement(Input$2, {
|
|
31025
32409
|
type: "range",
|
|
31026
32410
|
style: {
|
|
31027
32411
|
width: width
|
|
@@ -31034,7 +32418,7 @@ var RangeSlider = /*#__PURE__*/React__default.memo(function (_ref) {
|
|
|
31034
32418
|
className: "rpgui-cursor-point"
|
|
31035
32419
|
}));
|
|
31036
32420
|
});
|
|
31037
|
-
var Input$
|
|
32421
|
+
var Input$2 = /*#__PURE__*/styled__default.input.withConfig({
|
|
31038
32422
|
displayName: "RangeSlider__Input",
|
|
31039
32423
|
componentId: "sc-v8mte9-0"
|
|
31040
32424
|
})(["opacity:0;position:absolute;width:100%;height:100%;top:0;left:0;margin-top:-5px;"]);
|
|
@@ -31068,7 +32452,7 @@ var QuantitySelector = function QuantitySelector(_ref) {
|
|
|
31068
32452
|
return React__default.createElement(StyledContainer, {
|
|
31069
32453
|
type: exports.RPGUIContainerTypes.Framed,
|
|
31070
32454
|
width: "25rem"
|
|
31071
|
-
}, React__default.createElement(CloseButton$
|
|
32455
|
+
}, React__default.createElement(CloseButton$6, {
|
|
31072
32456
|
className: "container-close",
|
|
31073
32457
|
onPointerDown: onClose
|
|
31074
32458
|
}, "X"), React__default.createElement("h2", null, title), React__default.createElement(StyledForm, {
|
|
@@ -31113,7 +32497,7 @@ var StyledContainer = /*#__PURE__*/styled__default(RPGUIContainer).withConfig({
|
|
|
31113
32497
|
displayName: "QuantitySelector__StyledContainer",
|
|
31114
32498
|
componentId: "sc-z4ut57-0"
|
|
31115
32499
|
})(["position:relative;display:flex;flex-direction:column;align-items:center;padding:1rem;h2{margin:0;margin-bottom:1rem;font-size:1rem;}"]);
|
|
31116
|
-
var CloseButton$
|
|
32500
|
+
var CloseButton$6 = /*#__PURE__*/styled__default.div.withConfig({
|
|
31117
32501
|
displayName: "QuantitySelector__CloseButton",
|
|
31118
32502
|
componentId: "sc-z4ut57-1"
|
|
31119
32503
|
})(["position:absolute;top:3px;right:0px;color:white;z-index:22;font-size:1.5rem;cursor:pointer;"]);
|
|
@@ -31406,7 +32790,7 @@ var ColorSelector = function ColorSelector(_ref) {
|
|
|
31406
32790
|
cancelDrag: ".react-colorful",
|
|
31407
32791
|
width: "20rem",
|
|
31408
32792
|
onCloseButton: onClose
|
|
31409
|
-
}, React__default.createElement(Container$
|
|
32793
|
+
}, React__default.createElement(Container$t, null, React__default.createElement(Header$3, null, "Select Color"), React__default.createElement(reactColorful.HexColorPicker, {
|
|
31410
32794
|
color: currentColor,
|
|
31411
32795
|
onChange: function onChange(color) {
|
|
31412
32796
|
setCurrentColor(color);
|
|
@@ -31418,11 +32802,11 @@ var ColorSelector = function ColorSelector(_ref) {
|
|
|
31418
32802
|
onClick: handleConfirm
|
|
31419
32803
|
}, "Confirm"))) : null;
|
|
31420
32804
|
};
|
|
31421
|
-
var Container$
|
|
32805
|
+
var Container$t = /*#__PURE__*/styled__default.div.withConfig({
|
|
31422
32806
|
displayName: "ItemPropertyColorSelector__Container",
|
|
31423
32807
|
componentId: "sc-me1r4z-0"
|
|
31424
32808
|
})(["padding:2rem;text-align:center;background:inherit;"]);
|
|
31425
|
-
var Header$
|
|
32809
|
+
var Header$3 = /*#__PURE__*/styled__default.h2.withConfig({
|
|
31426
32810
|
displayName: "ItemPropertyColorSelector__Header",
|
|
31427
32811
|
componentId: "sc-me1r4z-1"
|
|
31428
32812
|
})(["font-family:'Press Start 2P',cursive;color:white;font-size:1rem;margin-bottom:1rem;"]);
|
|
@@ -31475,7 +32859,7 @@ var GemSelector = function GemSelector(_ref) {
|
|
|
31475
32859
|
scale: scale,
|
|
31476
32860
|
cancelDrag: ".gem-selector-container",
|
|
31477
32861
|
onCloseButton: onClose
|
|
31478
|
-
}, React__default.createElement(ContentWrapper$1, null, React__default.createElement(Header$
|
|
32862
|
+
}, React__default.createElement(ContentWrapper$1, null, React__default.createElement(Header$4, null, React__default.createElement(Title$5, null, "GEM SELECTION"), React__default.createElement(Subtitle, null, "Select gems to detach")), React__default.createElement(GemGrid, null, (_item$attachedGems = item.attachedGems) == null ? void 0 : _item$attachedGems.map(function (gem, index) {
|
|
31479
32863
|
return React__default.createElement(GemItem, {
|
|
31480
32864
|
key: gem.key + "-" + index
|
|
31481
32865
|
}, React__default.createElement(CheckItemWrapper, null, React__default.createElement(CheckItem, {
|
|
@@ -31506,7 +32890,7 @@ var GemSelector = function GemSelector(_ref) {
|
|
|
31506
32890
|
disabled: selectedGems.length === 0
|
|
31507
32891
|
}, "Confirm"))));
|
|
31508
32892
|
};
|
|
31509
|
-
var Title$
|
|
32893
|
+
var Title$5 = /*#__PURE__*/styled__default.h1.withConfig({
|
|
31510
32894
|
displayName: "GemSelector__Title",
|
|
31511
32895
|
componentId: "sc-gbt8g4-0"
|
|
31512
32896
|
})(["font-size:0.8rem;color:", " !important;"], uiColors.yellow);
|
|
@@ -31514,7 +32898,7 @@ var Subtitle = /*#__PURE__*/styled__default.h2.withConfig({
|
|
|
31514
32898
|
displayName: "GemSelector__Subtitle",
|
|
31515
32899
|
componentId: "sc-gbt8g4-1"
|
|
31516
32900
|
})(["font-size:0.6rem;color:", ";margin:0;"], uiColors.white);
|
|
31517
|
-
var Header$
|
|
32901
|
+
var Header$4 = /*#__PURE__*/styled__default.div.withConfig({
|
|
31518
32902
|
displayName: "GemSelector__Header",
|
|
31519
32903
|
componentId: "sc-gbt8g4-2"
|
|
31520
32904
|
})(["text-align:center;padding:5px;border-bottom:2px solid #444;"]);
|
|
@@ -31579,7 +32963,7 @@ var ItemSelector = function ItemSelector(_ref) {
|
|
|
31579
32963
|
style: {
|
|
31580
32964
|
width: '100%'
|
|
31581
32965
|
}
|
|
31582
|
-
}, React__default.createElement(Title$
|
|
32966
|
+
}, React__default.createElement(Title$6, null, 'Harvesting instruments'), React__default.createElement(Subtitle$1, null, 'Use the tool, you need it'), React__default.createElement("hr", {
|
|
31583
32967
|
className: "golden"
|
|
31584
32968
|
})), React__default.createElement(RadioInputScroller$1, null, options == null ? void 0 : options.map(function (option, index) {
|
|
31585
32969
|
return React__default.createElement(RadioOptionsWrapper$1, {
|
|
@@ -31608,7 +32992,7 @@ var ItemSelector = function ItemSelector(_ref) {
|
|
|
31608
32992
|
buttonType: exports.ButtonTypes.RPGUIButton
|
|
31609
32993
|
}, "Select")));
|
|
31610
32994
|
};
|
|
31611
|
-
var Title$
|
|
32995
|
+
var Title$6 = /*#__PURE__*/styled__default.h1.withConfig({
|
|
31612
32996
|
displayName: "ItemSelector__Title",
|
|
31613
32997
|
componentId: "sc-gptoxp-0"
|
|
31614
32998
|
})(["font-size:0.6rem;color:yellow !important;"]);
|
|
@@ -31714,15 +33098,15 @@ var Leaderboard = function Leaderboard(props) {
|
|
|
31714
33098
|
option: itemType
|
|
31715
33099
|
};
|
|
31716
33100
|
});
|
|
31717
|
-
return React__default.createElement(React__default.Fragment, null, React__default.createElement(WrapperContainer, null, React__default.createElement(StyledDropdown, {
|
|
33101
|
+
return React__default.createElement(React__default.Fragment, null, React__default.createElement(WrapperContainer, null, React__default.createElement(StyledDropdown$1, {
|
|
31718
33102
|
options: rankTypeOptions,
|
|
31719
33103
|
onChange: onChangeRankType,
|
|
31720
33104
|
width: "80%"
|
|
31721
|
-
}), rankType === 'Class' ? React__default.createElement(StyledDropdown, {
|
|
33105
|
+
}), rankType === 'Class' ? React__default.createElement(StyledDropdown$1, {
|
|
31722
33106
|
options: classTypeOptions,
|
|
31723
33107
|
onChange: onChangeClassType,
|
|
31724
33108
|
width: "100%"
|
|
31725
|
-
}) : null, rankType === 'Skill' ? React__default.createElement(StyledDropdown, {
|
|
33109
|
+
}) : null, rankType === 'Skill' ? React__default.createElement(StyledDropdown$1, {
|
|
31726
33110
|
options: skillTypeOptions,
|
|
31727
33111
|
onChange: onChangeSkillType,
|
|
31728
33112
|
width: "100%"
|
|
@@ -31738,7 +33122,7 @@ var WrapperContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
31738
33122
|
displayName: "Leaderboard__WrapperContainer",
|
|
31739
33123
|
componentId: "sc-1wdsq7i-0"
|
|
31740
33124
|
})(["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;}"]);
|
|
31741
|
-
var StyledDropdown = /*#__PURE__*/styled__default(Dropdown).withConfig({
|
|
33125
|
+
var StyledDropdown$1 = /*#__PURE__*/styled__default(Dropdown).withConfig({
|
|
31742
33126
|
displayName: "Leaderboard__StyledDropdown",
|
|
31743
33127
|
componentId: "sc-1wdsq7i-1"
|
|
31744
33128
|
})(["margin:3px !important;width:170px !important;"]);
|
|
@@ -31756,7 +33140,7 @@ var ListMenu = function ListMenu(_ref) {
|
|
|
31756
33140
|
onSelected = _ref.onSelected,
|
|
31757
33141
|
x = _ref.x,
|
|
31758
33142
|
y = _ref.y;
|
|
31759
|
-
return React__default.createElement(Container$
|
|
33143
|
+
return React__default.createElement(Container$u, {
|
|
31760
33144
|
x: x,
|
|
31761
33145
|
y: y
|
|
31762
33146
|
}, React__default.createElement("ul", {
|
|
@@ -31773,7 +33157,7 @@ var ListMenu = function ListMenu(_ref) {
|
|
|
31773
33157
|
}, (params == null ? void 0 : params.text) || 'No text');
|
|
31774
33158
|
})));
|
|
31775
33159
|
};
|
|
31776
|
-
var Container$
|
|
33160
|
+
var Container$u = /*#__PURE__*/styled__default.div.withConfig({
|
|
31777
33161
|
displayName: "ListMenu__Container",
|
|
31778
33162
|
componentId: "sc-i9097t-0"
|
|
31779
33163
|
})(["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) {
|
|
@@ -31792,7 +33176,7 @@ var Pager = function Pager(_ref) {
|
|
|
31792
33176
|
itemsPerPage = _ref.itemsPerPage,
|
|
31793
33177
|
onPageChange = _ref.onPageChange;
|
|
31794
33178
|
var totalPages = Math.ceil(totalItems / itemsPerPage);
|
|
31795
|
-
return React__default.createElement(Container$
|
|
33179
|
+
return React__default.createElement(Container$v, null, React__default.createElement("p", null, "Total items: ", totalItems), React__default.createElement(PagerContainer, null, React__default.createElement("button", {
|
|
31796
33180
|
disabled: currentPage === 1,
|
|
31797
33181
|
onPointerDown: function onPointerDown() {
|
|
31798
33182
|
return onPageChange(Math.max(currentPage - 1, 1));
|
|
@@ -31806,7 +33190,7 @@ var Pager = function Pager(_ref) {
|
|
|
31806
33190
|
}
|
|
31807
33191
|
}, '>')));
|
|
31808
33192
|
};
|
|
31809
|
-
var Container$
|
|
33193
|
+
var Container$v = /*#__PURE__*/styled__default.div.withConfig({
|
|
31810
33194
|
displayName: "Pager__Container",
|
|
31811
33195
|
componentId: "sc-1ekmf50-0"
|
|
31812
33196
|
})(["display:flex;flex-direction:column;align-items:center;p{margin:0;font-size:", ";}"], uiFonts.size.xsmall);
|
|
@@ -31819,7 +33203,7 @@ var ConfirmModal = function ConfirmModal(_ref) {
|
|
|
31819
33203
|
var onConfirm = _ref.onConfirm,
|
|
31820
33204
|
onClose = _ref.onClose,
|
|
31821
33205
|
message = _ref.message;
|
|
31822
|
-
return React__default.createElement(ModalPortal, null, React__default.createElement(Background, null), React__default.createElement(Container$
|
|
33206
|
+
return React__default.createElement(ModalPortal, null, React__default.createElement(Background, null), React__default.createElement(Container$w, {
|
|
31823
33207
|
onPointerDown: onClose
|
|
31824
33208
|
}, React__default.createElement(DraggableContainer, {
|
|
31825
33209
|
width: "auto",
|
|
@@ -31842,7 +33226,7 @@ var Background = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
31842
33226
|
displayName: "ConfirmModal__Background",
|
|
31843
33227
|
componentId: "sc-11qkyu1-0"
|
|
31844
33228
|
})(["position:absolute;width:100%;height:100%;background-color:#000000;opacity:0.5;left:0;top:0;z-index:1000;"]);
|
|
31845
|
-
var Container$
|
|
33229
|
+
var Container$w = /*#__PURE__*/styled__default.div.withConfig({
|
|
31846
33230
|
displayName: "ConfirmModal__Container",
|
|
31847
33231
|
componentId: "sc-11qkyu1-1"
|
|
31848
33232
|
})(["position:absolute;width:100%;height:100%;left:0;top:0;display:flex;justify-content:center;align-items:center;z-index:1001;"]);
|
|
@@ -31868,7 +33252,7 @@ var MarketplaceRows = function MarketplaceRows(_ref) {
|
|
|
31868
33252
|
var renderGems = function renderGems(item) {
|
|
31869
33253
|
return item.attachedGems && onRenderGems(item);
|
|
31870
33254
|
};
|
|
31871
|
-
return React__default.createElement(MarketplaceWrapper, null, React__default.createElement(ItemIconContainer, null, React__default.createElement(SpriteContainer$
|
|
33255
|
+
return React__default.createElement(MarketplaceWrapper, null, React__default.createElement(ItemIconContainer, null, React__default.createElement(SpriteContainer$3, null, React__default.createElement(ItemInfoWrapper, {
|
|
31872
33256
|
item: item,
|
|
31873
33257
|
atlasIMG: atlasIMG,
|
|
31874
33258
|
atlasJSON: atlasJSON,
|
|
@@ -31934,7 +33318,7 @@ var GoldContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
31934
33318
|
displayName: "MarketplaceRows__GoldContainer",
|
|
31935
33319
|
componentId: "sc-wmpr1o-5"
|
|
31936
33320
|
})(["position:relative;top:-0.5rem;left:0.5rem;"]);
|
|
31937
|
-
var SpriteContainer$
|
|
33321
|
+
var SpriteContainer$3 = /*#__PURE__*/styled__default.div.withConfig({
|
|
31938
33322
|
displayName: "MarketplaceRows__SpriteContainer",
|
|
31939
33323
|
componentId: "sc-wmpr1o-6"
|
|
31940
33324
|
})(["position:relative;left:0.5rem;"]);
|
|
@@ -32119,15 +33503,15 @@ var BuyPanel = function BuyPanel(_ref) {
|
|
|
32119
33503
|
className: "big-input",
|
|
32120
33504
|
onBlur: enableHotkeys,
|
|
32121
33505
|
onFocus: disableHotkeys
|
|
32122
|
-
}))), React__default.createElement(WrapperContainer$1, null, React__default.createElement(StyledDropdown$
|
|
33506
|
+
}))), React__default.createElement(WrapperContainer$1, null, React__default.createElement(StyledDropdown$2, {
|
|
32123
33507
|
options: itemTypeOptions,
|
|
32124
33508
|
onChange: onChangeType,
|
|
32125
33509
|
width: "95%"
|
|
32126
|
-
}), React__default.createElement(StyledDropdown$
|
|
33510
|
+
}), React__default.createElement(StyledDropdown$2, {
|
|
32127
33511
|
options: itemRarityOptions,
|
|
32128
33512
|
onChange: onChangeRarity,
|
|
32129
33513
|
width: "95%"
|
|
32130
|
-
}), React__default.createElement(StyledDropdown$
|
|
33514
|
+
}), React__default.createElement(StyledDropdown$2, {
|
|
32131
33515
|
options: orderByOptions,
|
|
32132
33516
|
onChange: onChangeOrder,
|
|
32133
33517
|
width: "100%"
|
|
@@ -32171,7 +33555,7 @@ var ItemComponentScrollWrapper$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
32171
33555
|
displayName: "BuyPanel__ItemComponentScrollWrapper",
|
|
32172
33556
|
componentId: "sc-1si8t7i-4"
|
|
32173
33557
|
})(["overflow-y:scroll;height:390px;width:100%;margin-top:1rem;@media (max-width:950px){height:250px;}"]);
|
|
32174
|
-
var StyledDropdown$
|
|
33558
|
+
var StyledDropdown$2 = /*#__PURE__*/styled__default(Dropdown).withConfig({
|
|
32175
33559
|
displayName: "BuyPanel__StyledDropdown",
|
|
32176
33560
|
componentId: "sc-1si8t7i-5"
|
|
32177
33561
|
})(["margin:3px !important;width:170px !important;"]);
|
|
@@ -32367,13 +33751,13 @@ var TabBody = function TabBody(_ref) {
|
|
|
32367
33751
|
children = _ref.children,
|
|
32368
33752
|
styles = _ref.styles,
|
|
32369
33753
|
centerContent = _ref.centerContent;
|
|
32370
|
-
return React__default.createElement(Container$
|
|
33754
|
+
return React__default.createElement(Container$x, {
|
|
32371
33755
|
styles: styles,
|
|
32372
33756
|
"data-tab-id": id,
|
|
32373
33757
|
centerContent: centerContent
|
|
32374
33758
|
}, children);
|
|
32375
33759
|
};
|
|
32376
|
-
var Container$
|
|
33760
|
+
var Container$x = /*#__PURE__*/styled__default.div.withConfig({
|
|
32377
33761
|
displayName: "TabBody__Container",
|
|
32378
33762
|
componentId: "sc-196oof2-0"
|
|
32379
33763
|
})(["width:", ";height:", ";overflow-y:auto;display:", ";justify-content:", ";align-items:", ";"], function (props) {
|
|
@@ -32518,7 +33902,7 @@ var PartyCreate = function PartyCreate(_ref) {
|
|
|
32518
33902
|
style: {
|
|
32519
33903
|
width: '100%'
|
|
32520
33904
|
}
|
|
32521
|
-
}, React__default.createElement(Title$
|
|
33905
|
+
}, React__default.createElement(Title$7, null, "Create Party"), React__default.createElement("hr", {
|
|
32522
33906
|
className: "golden"
|
|
32523
33907
|
}))), React__default.createElement("h1", null, "Type your party name"), React__default.createElement(Input, {
|
|
32524
33908
|
placeholder: "Type party name",
|
|
@@ -32541,7 +33925,7 @@ var Wrapper$2 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
32541
33925
|
displayName: "PartyCreate__Wrapper",
|
|
32542
33926
|
componentId: "sc-13brop0-0"
|
|
32543
33927
|
})(["display:flex;flex-direction:column;width:100%;"]);
|
|
32544
|
-
var Title$
|
|
33928
|
+
var Title$7 = /*#__PURE__*/styled__default.h1.withConfig({
|
|
32545
33929
|
displayName: "PartyCreate__Title",
|
|
32546
33930
|
componentId: "sc-13brop0-1"
|
|
32547
33931
|
})(["font-size:0.6rem;color:", " !important;"], uiColors.yellow);
|
|
@@ -32590,7 +33974,7 @@ var PartyDashboard = function PartyDashboard(_ref) {
|
|
|
32590
33974
|
style: {
|
|
32591
33975
|
width: '100%'
|
|
32592
33976
|
}
|
|
32593
|
-
}, React__default.createElement(Title$
|
|
33977
|
+
}, React__default.createElement(Title$8, null, "Party Dashboard"), React__default.createElement(Button, {
|
|
32594
33978
|
buttonType: exports.ButtonTypes.RPGUIButton
|
|
32595
33979
|
}, "Create"), React__default.createElement("hr", {
|
|
32596
33980
|
className: "golden"
|
|
@@ -32617,7 +34001,7 @@ var RowsWrapper = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
32617
34001
|
displayName: "PartyDashboard__RowsWrapper",
|
|
32618
34002
|
componentId: "sc-16cm41r-1"
|
|
32619
34003
|
})(["overflow-y:scroll;-webkit-overflow-scrolling:touch;width:100%;height:200px;"]);
|
|
32620
|
-
var Title$
|
|
34004
|
+
var Title$8 = /*#__PURE__*/styled__default.h1.withConfig({
|
|
32621
34005
|
displayName: "PartyDashboard__Title",
|
|
32622
34006
|
componentId: "sc-16cm41r-2"
|
|
32623
34007
|
})(["font-size:0.6rem;color:", " !important;"], uiColors.yellow);
|
|
@@ -32654,7 +34038,7 @@ var PartyInvite = function PartyInvite(_ref) {
|
|
|
32654
34038
|
style: {
|
|
32655
34039
|
width: '100%'
|
|
32656
34040
|
}
|
|
32657
|
-
}, React__default.createElement(Title$
|
|
34041
|
+
}, React__default.createElement(Title$9, null, "Invite for Party"), React__default.createElement("hr", {
|
|
32658
34042
|
className: "golden"
|
|
32659
34043
|
}))), React__default.createElement(RowsWrapper$1, {
|
|
32660
34044
|
className: "playersRows"
|
|
@@ -32673,7 +34057,7 @@ var Wrapper$4 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
32673
34057
|
displayName: "PartyInvite__Wrapper",
|
|
32674
34058
|
componentId: "sc-eu8ggt-0"
|
|
32675
34059
|
})(["display:flex;flex-direction:column;width:100%;"]);
|
|
32676
|
-
var Title$
|
|
34060
|
+
var Title$9 = /*#__PURE__*/styled__default.h1.withConfig({
|
|
32677
34061
|
displayName: "PartyInvite__Title",
|
|
32678
34062
|
componentId: "sc-eu8ggt-1"
|
|
32679
34063
|
})(["font-size:0.6rem;color:", " !important;"], uiColors.yellow);
|
|
@@ -33025,7 +34409,7 @@ var ProgressBar = function ProgressBar(_ref) {
|
|
|
33025
34409
|
}
|
|
33026
34410
|
return value * 100 / max;
|
|
33027
34411
|
};
|
|
33028
|
-
return React__default.createElement(Container$
|
|
34412
|
+
return React__default.createElement(Container$y, {
|
|
33029
34413
|
className: "rpgui-progress",
|
|
33030
34414
|
"data-value": calculatePercentageValue(max, value) / 100,
|
|
33031
34415
|
"data-rpguitype": "progress",
|
|
@@ -33055,7 +34439,7 @@ var TextOverlay$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
33055
34439
|
displayName: "ProgressBar__TextOverlay",
|
|
33056
34440
|
componentId: "sc-qa6fzh-1"
|
|
33057
34441
|
})(["width:100%;position:relative;"]);
|
|
33058
|
-
var Container$
|
|
34442
|
+
var Container$y = /*#__PURE__*/styled__default.div.withConfig({
|
|
33059
34443
|
displayName: "ProgressBar__Container",
|
|
33060
34444
|
componentId: "sc-qa6fzh-2"
|
|
33061
34445
|
})(["display:flex;flex-direction:column;min-width:", "px;width:", "%;justify-content:start;align-items:flex-start;", " @media (max-width:950px){transform:scale(", ");}"], function (props) {
|
|
@@ -33111,11 +34495,11 @@ var QuestInfo = function QuestInfo(_ref) {
|
|
|
33111
34495
|
onPointerDown: onRightClick
|
|
33112
34496
|
}), React__default.createElement(QuestContainer, null, React__default.createElement(TitleContainer$1, {
|
|
33113
34497
|
className: "drag-handler"
|
|
33114
|
-
}, React__default.createElement(Title$
|
|
34498
|
+
}, React__default.createElement(Title$a, null, React__default.createElement(Thumbnail, {
|
|
33115
34499
|
src: quests[currentIndex].thumbnail || img$8
|
|
33116
34500
|
}), quests[currentIndex].title), React__default.createElement(QuestSplitDiv, null, React__default.createElement("hr", {
|
|
33117
34501
|
className: "golden"
|
|
33118
|
-
}))), React__default.createElement(Content, null, React__default.createElement("p", null, quests[currentIndex].description)), React__default.createElement(QuestColumn, {
|
|
34502
|
+
}))), React__default.createElement(Content$3, null, React__default.createElement("p", null, quests[currentIndex].description)), React__default.createElement(QuestColumn, {
|
|
33119
34503
|
className: "dark-background",
|
|
33120
34504
|
justifyContent: "flex-end"
|
|
33121
34505
|
}, buttons && buttons.map(function (button, index) {
|
|
@@ -33130,11 +34514,11 @@ var QuestInfo = function QuestInfo(_ref) {
|
|
|
33130
34514
|
}, button.title);
|
|
33131
34515
|
})))) : React__default.createElement(QuestsContainer, null, React__default.createElement(QuestContainer, null, React__default.createElement(TitleContainer$1, {
|
|
33132
34516
|
className: "drag-handler"
|
|
33133
|
-
}, React__default.createElement(Title$
|
|
34517
|
+
}, React__default.createElement(Title$a, null, React__default.createElement(Thumbnail, {
|
|
33134
34518
|
src: quests[0].thumbnail || img$8
|
|
33135
34519
|
}), quests[0].title), React__default.createElement(QuestSplitDiv, null, React__default.createElement("hr", {
|
|
33136
34520
|
className: "golden"
|
|
33137
|
-
}))), React__default.createElement(Content, null, React__default.createElement("p", null, quests[0].description)), React__default.createElement(QuestColumn, {
|
|
34521
|
+
}))), React__default.createElement(Content$3, null, React__default.createElement("p", null, quests[0].description)), React__default.createElement(QuestColumn, {
|
|
33138
34522
|
className: "dark-background",
|
|
33139
34523
|
justifyContent: "flex-end"
|
|
33140
34524
|
}, buttons && buttons.map(function (button, index) {
|
|
@@ -33161,7 +34545,7 @@ var QuestsContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
33161
34545
|
displayName: "QuestInfo__QuestsContainer",
|
|
33162
34546
|
componentId: "sc-1wccpiy-2"
|
|
33163
34547
|
})(["display:flex;align-items:center;"]);
|
|
33164
|
-
var Content = /*#__PURE__*/styled__default.div.withConfig({
|
|
34548
|
+
var Content$3 = /*#__PURE__*/styled__default.div.withConfig({
|
|
33165
34549
|
displayName: "QuestInfo__Content",
|
|
33166
34550
|
componentId: "sc-1wccpiy-3"
|
|
33167
34551
|
})(["padding:18px;h1{text-align:left;margin:14px 0px;}"]);
|
|
@@ -33177,7 +34561,7 @@ var TitleContainer$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
33177
34561
|
displayName: "QuestInfo__TitleContainer",
|
|
33178
34562
|
componentId: "sc-1wccpiy-6"
|
|
33179
34563
|
})(["width:100%;display:flex;flex-wrap:wrap;justify-content:flex-start;align-items:center;margin-top:1rem;"]);
|
|
33180
|
-
var Title$
|
|
34564
|
+
var Title$a = /*#__PURE__*/styled__default.h1.withConfig({
|
|
33181
34565
|
displayName: "QuestInfo__Title",
|
|
33182
34566
|
componentId: "sc-1wccpiy-7"
|
|
33183
34567
|
})(["color:white;z-index:22;font-size:", " !important;color:", " !important;"], uiFonts.size.medium, uiColors.yellow);
|
|
@@ -33196,19 +34580,19 @@ var QuestList = function QuestList(_ref) {
|
|
|
33196
34580
|
return React__default.createElement(QuestCard, {
|
|
33197
34581
|
key: i,
|
|
33198
34582
|
style: styles == null ? void 0 : styles.card
|
|
33199
|
-
}, React__default.createElement(QuestItem, null, React__default.createElement(Label, {
|
|
34583
|
+
}, React__default.createElement(QuestItem, null, React__default.createElement(Label$2, {
|
|
33200
34584
|
style: styles == null ? void 0 : styles.label
|
|
33201
|
-
}, "Title:"), React__default.createElement(Value, {
|
|
34585
|
+
}, "Title:"), React__default.createElement(Value$2, {
|
|
33202
34586
|
style: styles == null ? void 0 : styles.value
|
|
33203
|
-
}, formatQuestText(quest.title))), React__default.createElement(QuestItem, null, React__default.createElement(Label, {
|
|
34587
|
+
}, formatQuestText(quest.title))), React__default.createElement(QuestItem, null, React__default.createElement(Label$2, {
|
|
33204
34588
|
style: styles == null ? void 0 : styles.label
|
|
33205
|
-
}, "Status:"), React__default.createElement(Value, {
|
|
34589
|
+
}, "Status:"), React__default.createElement(Value$2, {
|
|
33206
34590
|
style: _extends({}, styles == null ? void 0 : styles.value, {
|
|
33207
34591
|
color: getQuestStatusColor(quest.status)
|
|
33208
34592
|
})
|
|
33209
|
-
}, (_formatQuestStatus = formatQuestStatus(quest.status)) != null ? _formatQuestStatus : 'Unknown')), React__default.createElement(QuestItem, null, React__default.createElement(Label, {
|
|
34593
|
+
}, (_formatQuestStatus = formatQuestStatus(quest.status)) != null ? _formatQuestStatus : 'Unknown')), React__default.createElement(QuestItem, null, React__default.createElement(Label$2, {
|
|
33210
34594
|
style: styles == null ? void 0 : styles.label
|
|
33211
|
-
}, "Description:"), React__default.createElement(Value, {
|
|
34595
|
+
}, "Description:"), React__default.createElement(Value$2, {
|
|
33212
34596
|
style: styles == null ? void 0 : styles.value
|
|
33213
34597
|
}, quest.description)));
|
|
33214
34598
|
}) : React__default.createElement(NoQuestContainer, null, React__default.createElement("p", null, "There are no ongoing quests")));
|
|
@@ -33225,11 +34609,11 @@ var QuestItem = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
33225
34609
|
displayName: "QuestList__QuestItem",
|
|
33226
34610
|
componentId: "sc-1c1y8sp-2"
|
|
33227
34611
|
})(["display:flex;margin-bottom:5px;flex-wrap:wrap;&:last-child{margin-bottom:0;}"]);
|
|
33228
|
-
var Label = /*#__PURE__*/styled__default.span.withConfig({
|
|
34612
|
+
var Label$2 = /*#__PURE__*/styled__default.span.withConfig({
|
|
33229
34613
|
displayName: "QuestList__Label",
|
|
33230
34614
|
componentId: "sc-1c1y8sp-3"
|
|
33231
34615
|
})(["font-weight:bold;color:", " !important;margin-right:10px;"], uiColors.yellow);
|
|
33232
|
-
var Value = /*#__PURE__*/styled__default.span.withConfig({
|
|
34616
|
+
var Value$2 = /*#__PURE__*/styled__default.span.withConfig({
|
|
33233
34617
|
displayName: "QuestList__Value",
|
|
33234
34618
|
componentId: "sc-1c1y8sp-4"
|
|
33235
34619
|
})(["flex-grow:1;color:", ";word-wrap:break-word;"], uiColors.white);
|
|
@@ -33296,9 +34680,9 @@ var InputRadio = function InputRadio(_ref) {
|
|
|
33296
34680
|
|
|
33297
34681
|
var RPGUIScrollbar = function RPGUIScrollbar(_ref) {
|
|
33298
34682
|
var children = _ref.children;
|
|
33299
|
-
return React__default.createElement(Container$
|
|
34683
|
+
return React__default.createElement(Container$z, null, children);
|
|
33300
34684
|
};
|
|
33301
|
-
var Container$
|
|
34685
|
+
var Container$z = /*#__PURE__*/styled__default.div.withConfig({
|
|
33302
34686
|
displayName: "RPGUIScrollbar__Container",
|
|
33303
34687
|
componentId: "sc-p3msmb-0"
|
|
33304
34688
|
})([".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;}"]);
|
|
@@ -33454,7 +34838,7 @@ var SimpleProgressBar = function SimpleProgressBar(_ref) {
|
|
|
33454
34838
|
margin = _ref$margin === void 0 ? 20 : _ref$margin;
|
|
33455
34839
|
// Ensure the width is at least 1% if value is greater than 0
|
|
33456
34840
|
var width = value > 0 ? Math.max(1, Math.min(100, value)) : 0;
|
|
33457
|
-
return React__default.createElement(Container$
|
|
34841
|
+
return React__default.createElement(Container$A, {
|
|
33458
34842
|
className: "simple-progress-bar"
|
|
33459
34843
|
}, React__default.createElement(ProgressBarContainer, {
|
|
33460
34844
|
margin: margin
|
|
@@ -33463,7 +34847,7 @@ var SimpleProgressBar = function SimpleProgressBar(_ref) {
|
|
|
33463
34847
|
bgColor: bgColor
|
|
33464
34848
|
}))));
|
|
33465
34849
|
};
|
|
33466
|
-
var Container$
|
|
34850
|
+
var Container$A = /*#__PURE__*/styled__default.div.withConfig({
|
|
33467
34851
|
displayName: "SimpleProgressBar__Container",
|
|
33468
34852
|
componentId: "sc-mbeil3-0"
|
|
33469
34853
|
})(["display:flex;justify-content:center;align-items:center;width:100%;"]);
|
|
@@ -33519,7 +34903,7 @@ var SkillProgressBar = function SkillProgressBar(_ref) {
|
|
|
33519
34903
|
var result = level * (buffAndDebuff / 100);
|
|
33520
34904
|
return result > 0 ? "+" + result.toFixed(2) : "" + result.toFixed(2);
|
|
33521
34905
|
};
|
|
33522
|
-
return React__default.createElement(React__default.Fragment, null, React__default.createElement(ProgressTitle, null, buffAndDebuff !== undefined && React__default.createElement(React__default.Fragment, null, buffAndDebuff > 0 ? React__default.createElement(BuffAndDebuffContainer, null, React__default.createElement(TitleNameContainer, null, React__default.createElement(TitleNameBuff, null, skillName), React__default.createElement(TitleNameBuff, null, "lv ", level, " (", skillsBuffsCalc(level, buffAndDebuff), ")")), React__default.createElement(TitleNameBuffContainer, null, React__default.createElement(TitleNameBuff, null, "(+", formatBuffAndDebuff(buffAndDebuff), "%)"))) : buffAndDebuff < 0 ? React__default.createElement(React__default.Fragment, null, React__default.createElement(TitleNameContainer, null, React__default.createElement(TitleNameDebuff, null, skillName), React__default.createElement(TitleNameDebuff, null, "lv ", level, " (", skillsBuffsCalc(level, buffAndDebuff), ")")), React__default.createElement("div", null, React__default.createElement(TitleNameDebuff, null, "(", formatBuffAndDebuff(buffAndDebuff), "%)"))) : React__default.createElement(TitleName, null, skillName)), !buffAndDebuff && React__default.createElement(TitleNameContainer, null, React__default.createElement(TitleName, null, skillName), React__default.createElement(ValueDisplay, null, "lv ", level))), React__default.createElement(ProgressBody, null, React__default.createElement(ProgressIconContainer, null, atlasIMG && atlasJSON ? React__default.createElement(SpriteContainer$
|
|
34906
|
+
return React__default.createElement(React__default.Fragment, null, React__default.createElement(ProgressTitle, null, buffAndDebuff !== undefined && React__default.createElement(React__default.Fragment, null, buffAndDebuff > 0 ? React__default.createElement(BuffAndDebuffContainer, null, React__default.createElement(TitleNameContainer, null, React__default.createElement(TitleNameBuff, null, skillName), React__default.createElement(TitleNameBuff, null, "lv ", level, " (", skillsBuffsCalc(level, buffAndDebuff), ")")), React__default.createElement(TitleNameBuffContainer, null, React__default.createElement(TitleNameBuff, null, "(+", formatBuffAndDebuff(buffAndDebuff), "%)"))) : buffAndDebuff < 0 ? React__default.createElement(React__default.Fragment, null, React__default.createElement(TitleNameContainer, null, React__default.createElement(TitleNameDebuff, null, skillName), React__default.createElement(TitleNameDebuff, null, "lv ", level, " (", skillsBuffsCalc(level, buffAndDebuff), ")")), React__default.createElement("div", null, React__default.createElement(TitleNameDebuff, null, "(", formatBuffAndDebuff(buffAndDebuff), "%)"))) : React__default.createElement(TitleName, null, skillName)), !buffAndDebuff && React__default.createElement(TitleNameContainer, null, React__default.createElement(TitleName, null, skillName), React__default.createElement(ValueDisplay, null, "lv ", level))), React__default.createElement(ProgressBody, null, React__default.createElement(ProgressIconContainer, null, atlasIMG && atlasJSON ? React__default.createElement(SpriteContainer$4, null, React__default.createElement(ErrorBoundary, null, React__default.createElement(SpriteFromAtlas, {
|
|
33523
34907
|
atlasIMG: atlasIMG,
|
|
33524
34908
|
atlasJSON: atlasJSON,
|
|
33525
34909
|
spriteKey: texturePath,
|
|
@@ -33535,7 +34919,7 @@ var ProgressBarWrapper = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
33535
34919
|
displayName: "SkillProgressBar__ProgressBarWrapper",
|
|
33536
34920
|
componentId: "sc-5vuroc-0"
|
|
33537
34921
|
})(["position:relative;&:hover ", ",&:active ", "{visibility:visible;}width:100%;height:auto;top:8px;"], Tooltip, Tooltip);
|
|
33538
|
-
var SpriteContainer$
|
|
34922
|
+
var SpriteContainer$4 = /*#__PURE__*/styled__default.div.withConfig({
|
|
33539
34923
|
displayName: "SkillProgressBar__SpriteContainer",
|
|
33540
34924
|
componentId: "sc-5vuroc-1"
|
|
33541
34925
|
})(["position:relative;top:-3px;left:0;"]);
|
|
@@ -33689,7 +35073,7 @@ var SkillsContainer = function SkillsContainer(_ref) {
|
|
|
33689
35073
|
cancelDrag: "#skillsDiv",
|
|
33690
35074
|
scale: scale,
|
|
33691
35075
|
width: "100%"
|
|
33692
|
-
}, onCloseButton && React__default.createElement(CloseButton$
|
|
35076
|
+
}, onCloseButton && React__default.createElement(CloseButton$7, {
|
|
33693
35077
|
onPointerDown: onCloseButton
|
|
33694
35078
|
}, "X"), React__default.createElement(SkillsContainerDiv, {
|
|
33695
35079
|
id: "skillsDiv"
|
|
@@ -33724,7 +35108,7 @@ var SkillSplitDiv = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
33724
35108
|
displayName: "SkillsContainer__SkillSplitDiv",
|
|
33725
35109
|
componentId: "sc-1g0c67q-2"
|
|
33726
35110
|
})(["width:100%;font-size:11px;hr{margin:0;margin-bottom:1rem;padding:0px;}p{margin-bottom:0px;}"]);
|
|
33727
|
-
var CloseButton$
|
|
35111
|
+
var CloseButton$7 = /*#__PURE__*/styled__default.div.withConfig({
|
|
33728
35112
|
displayName: "SkillsContainer__CloseButton",
|
|
33729
35113
|
componentId: "sc-1g0c67q-3"
|
|
33730
35114
|
})(["position:absolute;top:2px;right:2px;color:white;z-index:22;font-size:1.1rem;"]);
|
|
@@ -33796,7 +35180,7 @@ var SocialModal = function SocialModal(_ref) {
|
|
|
33796
35180
|
title: "Social Channels",
|
|
33797
35181
|
width: "500px",
|
|
33798
35182
|
onCloseButton: onClose
|
|
33799
|
-
}, React__default.createElement(Container$
|
|
35183
|
+
}, React__default.createElement(Container$B, null, React__default.createElement(HeaderImage, {
|
|
33800
35184
|
src: img$9,
|
|
33801
35185
|
alt: ""
|
|
33802
35186
|
}), React__default.createElement(ButtonsContainer$1, null, React__default.createElement(MainButtons, null, React__default.createElement(SocialButton$1, {
|
|
@@ -33814,7 +35198,7 @@ var SocialModal = function SocialModal(_ref) {
|
|
|
33814
35198
|
onClick: handleWhatsAppClick
|
|
33815
35199
|
}, React__default.createElement(fa.FaWhatsapp, null), " Join WhatsApp")))));
|
|
33816
35200
|
};
|
|
33817
|
-
var Container$
|
|
35201
|
+
var Container$B = /*#__PURE__*/styled__default.div.withConfig({
|
|
33818
35202
|
displayName: "SocialModal__Container",
|
|
33819
35203
|
componentId: "sc-tbjhp9-0"
|
|
33820
35204
|
})(["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% );}"]);
|
|
@@ -33850,7 +35234,7 @@ var formatSpellCastingType = function formatSpellCastingType(castingType) {
|
|
|
33850
35234
|
return formattedCastingType;
|
|
33851
35235
|
};
|
|
33852
35236
|
|
|
33853
|
-
var SpellInfo = function SpellInfo(_ref) {
|
|
35237
|
+
var SpellInfo$1 = function SpellInfo(_ref) {
|
|
33854
35238
|
var spell = _ref.spell;
|
|
33855
35239
|
var magicWords = spell.magicWords,
|
|
33856
35240
|
name = spell.name,
|
|
@@ -33860,7 +35244,7 @@ var SpellInfo = function SpellInfo(_ref) {
|
|
|
33860
35244
|
castingType = spell.castingType,
|
|
33861
35245
|
cooldown = spell.cooldown,
|
|
33862
35246
|
maxDistanceGrid = spell.maxDistanceGrid;
|
|
33863
|
-
return React__default.createElement(Container$
|
|
35247
|
+
return React__default.createElement(Container$C, null, React__default.createElement(Header$5, null, React__default.createElement("div", null, React__default.createElement(Title$b, null, name), React__default.createElement(Type$1, null, magicWords))), React__default.createElement(Statistic$1, null, React__default.createElement("div", {
|
|
33864
35248
|
className: "label"
|
|
33865
35249
|
}, "Casting Type:"), React__default.createElement("div", {
|
|
33866
35250
|
className: "value"
|
|
@@ -33884,13 +35268,13 @@ var SpellInfo = function SpellInfo(_ref) {
|
|
|
33884
35268
|
className: "label"
|
|
33885
35269
|
}, "Required Item:"), React__default.createElement("div", {
|
|
33886
35270
|
className: "value"
|
|
33887
|
-
}, requiredItem))), React__default.createElement(Description$
|
|
35271
|
+
}, requiredItem))), React__default.createElement(Description$4, null, description));
|
|
33888
35272
|
};
|
|
33889
|
-
var Container$
|
|
35273
|
+
var Container$C = /*#__PURE__*/styled__default.div.withConfig({
|
|
33890
35274
|
displayName: "SpellInfo__Container",
|
|
33891
35275
|
componentId: "sc-4hbw3q-0"
|
|
33892
35276
|
})(["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);
|
|
33893
|
-
var Title$
|
|
35277
|
+
var Title$b = /*#__PURE__*/styled__default.div.withConfig({
|
|
33894
35278
|
displayName: "SpellInfo__Title",
|
|
33895
35279
|
componentId: "sc-4hbw3q-1"
|
|
33896
35280
|
})(["font-size:", ";font-weight:bold;margin-bottom:0.5rem;display:flex;align-items:center;margin:0;"], uiFonts.size.medium);
|
|
@@ -33898,11 +35282,11 @@ var Type$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
33898
35282
|
displayName: "SpellInfo__Type",
|
|
33899
35283
|
componentId: "sc-4hbw3q-2"
|
|
33900
35284
|
})(["font-size:", ";margin-top:0.2rem;color:", ";"], uiFonts.size.small, uiColors.lightGray);
|
|
33901
|
-
var Description$
|
|
35285
|
+
var Description$4 = /*#__PURE__*/styled__default.div.withConfig({
|
|
33902
35286
|
displayName: "SpellInfo__Description",
|
|
33903
35287
|
componentId: "sc-4hbw3q-3"
|
|
33904
35288
|
})(["margin-top:1.5rem;font-size:", ";color:", ";font-style:italic;"], uiFonts.size.small, uiColors.lightGray);
|
|
33905
|
-
var Header$
|
|
35289
|
+
var Header$5 = /*#__PURE__*/styled__default.div.withConfig({
|
|
33906
35290
|
displayName: "SpellInfo__Header",
|
|
33907
35291
|
componentId: "sc-4hbw3q-4"
|
|
33908
35292
|
})(["display:flex;align-items:center;justify-content:space-between;margin-bottom:0.5rem;"]);
|
|
@@ -33916,7 +35300,7 @@ var SpellInfoDisplay = function SpellInfoDisplay(_ref) {
|
|
|
33916
35300
|
isMobile = _ref.isMobile;
|
|
33917
35301
|
return React__default.createElement(Flex$3, {
|
|
33918
35302
|
"$isMobile": isMobile
|
|
33919
|
-
}, React__default.createElement(SpellInfo, {
|
|
35303
|
+
}, React__default.createElement(SpellInfo$1, {
|
|
33920
35304
|
spell: spell
|
|
33921
35305
|
}));
|
|
33922
35306
|
};
|
|
@@ -33940,7 +35324,7 @@ var MobileSpellTooltip = function MobileSpellTooltip(_ref) {
|
|
|
33940
35324
|
var _ref$current;
|
|
33941
35325
|
(_ref$current = ref.current) == null ? void 0 : _ref$current.classList.add('fadeOut');
|
|
33942
35326
|
};
|
|
33943
|
-
return React__default.createElement(ModalPortal, null, React__default.createElement(Container$
|
|
35327
|
+
return React__default.createElement(ModalPortal, null, React__default.createElement(Container$D, {
|
|
33944
35328
|
ref: ref,
|
|
33945
35329
|
onTouchEnd: function onTouchEnd() {
|
|
33946
35330
|
handleFadeOut();
|
|
@@ -33965,7 +35349,7 @@ var MobileSpellTooltip = function MobileSpellTooltip(_ref) {
|
|
|
33965
35349
|
}, option.text);
|
|
33966
35350
|
}))));
|
|
33967
35351
|
};
|
|
33968
|
-
var Container$
|
|
35352
|
+
var Container$D = /*#__PURE__*/styled__default.div.withConfig({
|
|
33969
35353
|
displayName: "MobileSpellTooltip__Container",
|
|
33970
35354
|
componentId: "sc-6p7uvr-0"
|
|
33971
35355
|
})(["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;}"]);
|
|
@@ -34006,13 +35390,13 @@ var MagicTooltip = function MagicTooltip(_ref) {
|
|
|
34006
35390
|
}
|
|
34007
35391
|
return;
|
|
34008
35392
|
}, []);
|
|
34009
|
-
return React__default.createElement(ModalPortal, null, React__default.createElement(Container$
|
|
35393
|
+
return React__default.createElement(ModalPortal, null, React__default.createElement(Container$E, {
|
|
34010
35394
|
ref: ref
|
|
34011
35395
|
}, React__default.createElement(SpellInfoDisplay, {
|
|
34012
35396
|
spell: spell
|
|
34013
35397
|
})));
|
|
34014
35398
|
};
|
|
34015
|
-
var Container$
|
|
35399
|
+
var Container$E = /*#__PURE__*/styled__default.div.withConfig({
|
|
34016
35400
|
displayName: "SpellTooltip__Container",
|
|
34017
35401
|
componentId: "sc-1go0gwg-0"
|
|
34018
35402
|
})(["position:absolute;z-index:100;pointer-events:none;left:0;top:0;opacity:0;transition:opacity 0.08s;"]);
|
|
@@ -34085,11 +35469,11 @@ var Spell = function Spell(_ref) {
|
|
|
34085
35469
|
var IMAGE_SCALE = 2;
|
|
34086
35470
|
return React__default.createElement(SpellInfoWrapper, {
|
|
34087
35471
|
spell: spell
|
|
34088
|
-
}, React__default.createElement(Container$
|
|
35472
|
+
}, React__default.createElement(Container$F, {
|
|
34089
35473
|
onPointerUp: onPointerUp == null ? void 0 : onPointerUp.bind(null, spellKey),
|
|
34090
35474
|
isSettingShortcut: isSettingShortcut && !disabled,
|
|
34091
35475
|
className: "spell"
|
|
34092
|
-
}, disabled && React__default.createElement(Overlay, null, charMagicLevel < minMagicLevelRequired ? 'Low magic level' : manaCost > charMana && 'No mana'), React__default.createElement(SpellImage, null, activeCooldown && activeCooldown > 0 ? React__default.createElement("span", {
|
|
35476
|
+
}, disabled && React__default.createElement(Overlay$1, null, charMagicLevel < minMagicLevelRequired ? 'Low magic level' : manaCost > charMana && 'No mana'), React__default.createElement(SpellImage, null, activeCooldown && activeCooldown > 0 ? React__default.createElement("span", {
|
|
34093
35477
|
className: "cooldown"
|
|
34094
35478
|
}, activeCooldown.toFixed(activeCooldown > 10 ? 0 : 1)) : null, React__default.createElement(SpriteFromAtlas, {
|
|
34095
35479
|
atlasIMG: atlasIMG,
|
|
@@ -34098,13 +35482,13 @@ var Spell = function Spell(_ref) {
|
|
|
34098
35482
|
imgScale: IMAGE_SCALE,
|
|
34099
35483
|
containerStyle: CONTAINER_STYLE,
|
|
34100
35484
|
centered: true
|
|
34101
|
-
})), React__default.createElement(Info, null, React__default.createElement(Title$
|
|
35485
|
+
})), React__default.createElement(Info, null, React__default.createElement(Title$c, null, React__default.createElement("span", null, name), React__default.createElement("span", {
|
|
34102
35486
|
className: "spell"
|
|
34103
|
-
}, "(", magicWords, ")")), React__default.createElement(Description$
|
|
35487
|
+
}, "(", magicWords, ")")), React__default.createElement(Description$5, null, description)), React__default.createElement(Divider$1, null), React__default.createElement(Cost, null, React__default.createElement("span", null, "Mana cost:"), React__default.createElement("span", {
|
|
34104
35488
|
className: "mana"
|
|
34105
35489
|
}, manaCost))));
|
|
34106
35490
|
};
|
|
34107
|
-
var Container$
|
|
35491
|
+
var Container$F = /*#__PURE__*/styled__default.button.withConfig({
|
|
34108
35492
|
displayName: "Spell__Container",
|
|
34109
35493
|
componentId: "sc-j96fa2-0"
|
|
34110
35494
|
})(["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) {
|
|
@@ -34119,11 +35503,11 @@ var Info = /*#__PURE__*/styled__default.span.withConfig({
|
|
|
34119
35503
|
displayName: "Spell__Info",
|
|
34120
35504
|
componentId: "sc-j96fa2-2"
|
|
34121
35505
|
})(["width:0;flex:1;@media (orientation:portrait){display:none;}"]);
|
|
34122
|
-
var Title$
|
|
35506
|
+
var Title$c = /*#__PURE__*/styled__default.p.withConfig({
|
|
34123
35507
|
displayName: "Spell__Title",
|
|
34124
35508
|
componentId: "sc-j96fa2-3"
|
|
34125
35509
|
})(["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);
|
|
34126
|
-
var Description$
|
|
35510
|
+
var Description$5 = /*#__PURE__*/styled__default.div.withConfig({
|
|
34127
35511
|
displayName: "Spell__Description",
|
|
34128
35512
|
componentId: "sc-j96fa2-4"
|
|
34129
35513
|
})(["font-size:", " !important;line-height:1.1 !important;"], uiFonts.size.small);
|
|
@@ -34135,7 +35519,7 @@ var Cost = /*#__PURE__*/styled__default.p.withConfig({
|
|
|
34135
35519
|
displayName: "Spell__Cost",
|
|
34136
35520
|
componentId: "sc-j96fa2-6"
|
|
34137
35521
|
})(["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);
|
|
34138
|
-
var Overlay = /*#__PURE__*/styled__default.p.withConfig({
|
|
35522
|
+
var Overlay$1 = /*#__PURE__*/styled__default.p.withConfig({
|
|
34139
35523
|
displayName: "Spell__Overlay",
|
|
34140
35524
|
componentId: "sc-j96fa2-7"
|
|
34141
35525
|
})(["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);
|
|
@@ -34183,7 +35567,7 @@ var Spellbook = function Spellbook(_ref) {
|
|
|
34183
35567
|
height: "inherit",
|
|
34184
35568
|
cancelDrag: "#spellbook-search, #shortcuts_list, .spell",
|
|
34185
35569
|
scale: scale
|
|
34186
|
-
}, React__default.createElement(Container$
|
|
35570
|
+
}, React__default.createElement(Container$G, null, React__default.createElement(Title$d, null, "Learned Spells"), React__default.createElement(ShortcutsSetter, {
|
|
34187
35571
|
setSettingShortcutIndex: setSettingShortcutIndex,
|
|
34188
35572
|
settingShortcutIndex: settingShortcutIndex,
|
|
34189
35573
|
shortcuts: shortcuts,
|
|
@@ -34199,7 +35583,7 @@ var Spellbook = function Spellbook(_ref) {
|
|
|
34199
35583
|
onFocus: onInputFocus,
|
|
34200
35584
|
onBlur: onInputBlur,
|
|
34201
35585
|
id: "spellbook-search"
|
|
34202
|
-
}), React__default.createElement(SpellList, null, spellsToDisplay.map(function (spell) {
|
|
35586
|
+
}), React__default.createElement(SpellList$1, null, spellsToDisplay.map(function (spell) {
|
|
34203
35587
|
return React__default.createElement(React.Fragment, {
|
|
34204
35588
|
key: spell.key
|
|
34205
35589
|
}, React__default.createElement(Spell, Object.assign({
|
|
@@ -34215,15 +35599,15 @@ var Spellbook = function Spellbook(_ref) {
|
|
|
34215
35599
|
}, spell)));
|
|
34216
35600
|
}))));
|
|
34217
35601
|
};
|
|
34218
|
-
var Title$
|
|
35602
|
+
var Title$d = /*#__PURE__*/styled__default.h1.withConfig({
|
|
34219
35603
|
displayName: "Spellbook__Title",
|
|
34220
35604
|
componentId: "sc-r02nfq-0"
|
|
34221
35605
|
})(["font-size:", " !important;margin-bottom:0 !important;"], uiFonts.size.large);
|
|
34222
|
-
var Container$
|
|
35606
|
+
var Container$G = /*#__PURE__*/styled__default.div.withConfig({
|
|
34223
35607
|
displayName: "Spellbook__Container",
|
|
34224
35608
|
componentId: "sc-r02nfq-1"
|
|
34225
35609
|
})(["width:100%;height:100%;color:white;display:flex;flex-direction:column;"]);
|
|
34226
|
-
var SpellList = /*#__PURE__*/styled__default.div.withConfig({
|
|
35610
|
+
var SpellList$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
34227
35611
|
displayName: "Spellbook__SpellList",
|
|
34228
35612
|
componentId: "sc-r02nfq-2"
|
|
34229
35613
|
})(["width:100%;min-height:0;flex:1;overflow-y:auto;display:flex;flex-direction:column;gap:1.5rem;margin-top:1rem;"]);
|
|
@@ -34405,7 +35789,7 @@ var TimeWidget = function TimeWidget(_ref) {
|
|
|
34405
35789
|
return React__default.createElement(Draggable, {
|
|
34406
35790
|
scale: scale,
|
|
34407
35791
|
cancel: ".time-widget-close,.time-widget-container,.time-widget-container *"
|
|
34408
|
-
}, React__default.createElement(WidgetContainer, null, React__default.createElement(CloseButton$
|
|
35792
|
+
}, React__default.createElement(WidgetContainer, null, React__default.createElement(CloseButton$8, {
|
|
34409
35793
|
onPointerDown: onClose,
|
|
34410
35794
|
className: "time-widget-close"
|
|
34411
35795
|
}, "X"), React__default.createElement(DayNightContainer, {
|
|
@@ -34422,7 +35806,7 @@ var Time = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
34422
35806
|
displayName: "TimeWidget__Time",
|
|
34423
35807
|
componentId: "sc-1ja236h-1"
|
|
34424
35808
|
})(["top:0.75rem;right:0.5rem;position:absolute;font-size:", ";color:white;"], uiFonts.size.small);
|
|
34425
|
-
var CloseButton$
|
|
35809
|
+
var CloseButton$8 = /*#__PURE__*/styled__default.p.withConfig({
|
|
34426
35810
|
displayName: "TimeWidget__CloseButton",
|
|
34427
35811
|
componentId: "sc-1ja236h-2"
|
|
34428
35812
|
})(["position:absolute;top:-0.5rem;margin:0;right:-0.2rem;font-size:", " !important;z-index:1;"], uiFonts.size.small);
|
|
@@ -34531,7 +35915,7 @@ var TradingItemRow = function TradingItemRow(_ref) {
|
|
|
34531
35915
|
}
|
|
34532
35916
|
return null;
|
|
34533
35917
|
};
|
|
34534
|
-
return React__default.createElement(ItemWrapper, null, React__default.createElement(ItemIconContainer$1, null, React__default.createElement(SpriteContainer$
|
|
35918
|
+
return React__default.createElement(ItemWrapper, null, React__default.createElement(ItemIconContainer$1, null, React__default.createElement(SpriteContainer$5, null, React__default.createElement(ItemInfoWrapper, {
|
|
34535
35919
|
atlasIMG: atlasIMG,
|
|
34536
35920
|
atlasJSON: atlasJSON,
|
|
34537
35921
|
equipmentSet: equipmentSet,
|
|
@@ -34603,7 +35987,7 @@ var ItemIconContainer$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
34603
35987
|
displayName: "TradingItemRow__ItemIconContainer",
|
|
34604
35988
|
componentId: "sc-mja0b5-3"
|
|
34605
35989
|
})(["display:flex;justify-content:flex-start;align-items:center;flex:0 0 40px;"]);
|
|
34606
|
-
var SpriteContainer$
|
|
35990
|
+
var SpriteContainer$5 = /*#__PURE__*/styled__default.div.withConfig({
|
|
34607
35991
|
displayName: "TradingItemRow__SpriteContainer",
|
|
34608
35992
|
componentId: "sc-mja0b5-4"
|
|
34609
35993
|
})(["position:relative;top:-0.5rem;left:0;"]);
|
|
@@ -34701,7 +36085,7 @@ var TradingMenu = function TradingMenu(_ref) {
|
|
|
34701
36085
|
width: "500px",
|
|
34702
36086
|
cancelDrag: "#TraderContainer",
|
|
34703
36087
|
scale: scale
|
|
34704
|
-
}, React__default.createElement(Container$
|
|
36088
|
+
}, React__default.createElement(Container$H, null, React__default.createElement(Title$e, null, type.charAt(0).toUpperCase() + type.slice(1), " Menu"), React__default.createElement("hr", {
|
|
34705
36089
|
className: "golden"
|
|
34706
36090
|
}), React__default.createElement(ScrollWrapper, {
|
|
34707
36091
|
id: "TraderContainer"
|
|
@@ -34718,7 +36102,7 @@ var TradingMenu = function TradingMenu(_ref) {
|
|
|
34718
36102
|
scale: scale,
|
|
34719
36103
|
isBuy: isBuy()
|
|
34720
36104
|
});
|
|
34721
|
-
})), React__default.createElement(InfoSection, null, React__default.createElement(GoldInfo, null, React__default.createElement("p", null, "Available Gold:"), React__default.createElement("p", null, "$", characterAvailableGold.toFixed(2))), React__default.createElement(GoldInfo, null, React__default.createElement("p", null, "Total:"), React__default.createElement("p", null, "$", sum)), !hasGoldForSale() ? React__default.createElement(AlertText, null, "Sorry, not enough money.") : React__default.createElement(GoldInfo, null, React__default.createElement("p", null, "Final Gold:"), React__default.createElement("p", null, "$", getFinalGold().toFixed(2)))), React__default.createElement(ButtonWrapper$3, null, React__default.createElement(Button, {
|
|
36105
|
+
})), React__default.createElement(InfoSection$2, null, React__default.createElement(GoldInfo, null, React__default.createElement("p", null, "Available Gold:"), React__default.createElement("p", null, "$", characterAvailableGold.toFixed(2))), React__default.createElement(GoldInfo, null, React__default.createElement("p", null, "Total:"), React__default.createElement("p", null, "$", sum)), !hasGoldForSale() ? React__default.createElement(AlertText, null, "Sorry, not enough money.") : React__default.createElement(GoldInfo, null, React__default.createElement("p", null, "Final Gold:"), React__default.createElement("p", null, "$", getFinalGold().toFixed(2)))), React__default.createElement(ButtonWrapper$3, null, React__default.createElement(Button, {
|
|
34722
36106
|
buttonType: exports.ButtonTypes.RPGUIButton,
|
|
34723
36107
|
disabled: !hasGoldForSale(),
|
|
34724
36108
|
onPointerDown: function onPointerDown() {
|
|
@@ -34729,11 +36113,11 @@ var TradingMenu = function TradingMenu(_ref) {
|
|
|
34729
36113
|
onPointerDown: onClose
|
|
34730
36114
|
}, "Cancel"))));
|
|
34731
36115
|
};
|
|
34732
|
-
var Container$
|
|
36116
|
+
var Container$H = /*#__PURE__*/styled__default.div.withConfig({
|
|
34733
36117
|
displayName: "TradingMenu__Container",
|
|
34734
36118
|
componentId: "sc-1wjsz1l-0"
|
|
34735
36119
|
})(["width:100%;"]);
|
|
34736
|
-
var Title$
|
|
36120
|
+
var Title$e = /*#__PURE__*/styled__default.h1.withConfig({
|
|
34737
36121
|
displayName: "TradingMenu__Title",
|
|
34738
36122
|
componentId: "sc-1wjsz1l-1"
|
|
34739
36123
|
})(["font-size:0.7rem !important;color:yellow !important;text-align:center;"]);
|
|
@@ -34741,7 +36125,7 @@ var ScrollWrapper = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
34741
36125
|
displayName: "TradingMenu__ScrollWrapper",
|
|
34742
36126
|
componentId: "sc-1wjsz1l-2"
|
|
34743
36127
|
})(["overflow-y:scroll;height:250px;width:100%;margin-top:0.3rem;overflow-x:hidden;padding:0 0.3rem;"]);
|
|
34744
|
-
var InfoSection = /*#__PURE__*/styled__default.div.withConfig({
|
|
36128
|
+
var InfoSection$2 = /*#__PURE__*/styled__default.div.withConfig({
|
|
34745
36129
|
displayName: "TradingMenu__InfoSection",
|
|
34746
36130
|
componentId: "sc-1wjsz1l-3"
|
|
34747
36131
|
})(["margin-top:0.3rem;padding:0 0.5rem;"]);
|
|
@@ -34763,11 +36147,11 @@ var Truncate = function Truncate(_ref) {
|
|
|
34763
36147
|
var _ref$maxLines = _ref.maxLines,
|
|
34764
36148
|
maxLines = _ref$maxLines === void 0 ? 1 : _ref$maxLines,
|
|
34765
36149
|
children = _ref.children;
|
|
34766
|
-
return React__default.createElement(Container$
|
|
36150
|
+
return React__default.createElement(Container$I, {
|
|
34767
36151
|
maxLines: maxLines
|
|
34768
36152
|
}, children);
|
|
34769
36153
|
};
|
|
34770
|
-
var Container$
|
|
36154
|
+
var Container$I = /*#__PURE__*/styled__default.div.withConfig({
|
|
34771
36155
|
displayName: "Truncate__Container",
|
|
34772
36156
|
componentId: "sc-6x00qb-0"
|
|
34773
36157
|
})(["display:-webkit-box;max-width:100%;max-height:100%;-webkit-line-clamp:", ";-webkit-box-orient:vertical;overflow:hidden;"], function (props) {
|
|
@@ -34875,7 +36259,7 @@ var TutorialStepper = /*#__PURE__*/React__default.memo(function (_ref) {
|
|
|
34875
36259
|
};
|
|
34876
36260
|
});
|
|
34877
36261
|
}, [lessons, imageStyle]);
|
|
34878
|
-
return React__default.createElement(Container$
|
|
36262
|
+
return React__default.createElement(Container$J, null, React__default.createElement(Stepper, {
|
|
34879
36263
|
steps: generateLessons,
|
|
34880
36264
|
finalCTAButton: {
|
|
34881
36265
|
label: 'Close',
|
|
@@ -34892,7 +36276,7 @@ var LessonBody = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
34892
36276
|
displayName: "TutorialStepper__LessonBody",
|
|
34893
36277
|
componentId: "sc-7tgzv2-1"
|
|
34894
36278
|
})([""]);
|
|
34895
|
-
var Container$
|
|
36279
|
+
var Container$J = /*#__PURE__*/styled__default.div.withConfig({
|
|
34896
36280
|
displayName: "TutorialStepper__Container",
|
|
34897
36281
|
componentId: "sc-7tgzv2-2"
|
|
34898
36282
|
})(["width:80%;max-width:600px;@media (max-width:600px){width:95%;}"]);
|
|
@@ -34935,6 +36319,7 @@ exports.FriendList = FriendList;
|
|
|
34935
36319
|
exports.GemSelector = GemSelector;
|
|
34936
36320
|
exports.HistoryDialog = HistoryDialog;
|
|
34937
36321
|
exports.ImageCarousel = ImageCarousel;
|
|
36322
|
+
exports.InformationCenter = InformationCenter;
|
|
34938
36323
|
exports.Input = Input;
|
|
34939
36324
|
exports.InputRadio = InputRadio;
|
|
34940
36325
|
exports.InternalTabs = InternalTabs;
|