@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
package/dist/long-bow.esm.js
CHANGED
|
@@ -5,7 +5,7 @@ import { v4 } from 'uuid';
|
|
|
5
5
|
import { GRID_WIDTH, GRID_HEIGHT, ShortcutType, getItemTextureKeyPath, ItemRarities, ItemContainerType, ItemType, DepotSocketEvents, ItemSocketEvents, ItemSocketEventsDisplayLabels, ActionsForInventory, ActionsForEquipmentSet, ActionsForLoot, ActionsForMapContainer, ItemSubType, isMobile, ItemSlotType, isMobileOrTablet, CharacterClass, QuestStatus, getSPForLevel, getXPForLevel, PeriodOfDay, UserAccountTypes } from '@rpg-engine/shared';
|
|
6
6
|
import dayjs from 'dayjs';
|
|
7
7
|
import { ErrorBoundary as ErrorBoundary$1 } from 'react-error-boundary';
|
|
8
|
-
import { FaTimes, FaDiscord, FaWhatsapp, FaSearch, FaThumbtack, FaBoxOpen, FaChevronLeft, FaChevronRight, FaReddit } from 'react-icons/fa';
|
|
8
|
+
import { FaTimes, FaDiscord, FaWhatsapp, FaSearch, FaThumbtack, FaBoxOpen, FaChevronLeft, FaChevronRight, FaChevronUp, FaChevronDown, FaReddit } from 'react-icons/fa';
|
|
9
9
|
import { RxMagnifyingGlass, RxCross2 } from 'react-icons/rx';
|
|
10
10
|
import { IoMdContract, IoMdExpand } from 'react-icons/io';
|
|
11
11
|
import Draggable from 'react-draggable';
|
|
@@ -585,6 +585,14 @@ var ButtonContainer = /*#__PURE__*/styled.button.withConfig({
|
|
|
585
585
|
componentId: "sc-obzd3o-0"
|
|
586
586
|
})(["height:45px;font-size:", ";"], uiFonts.size.small);
|
|
587
587
|
|
|
588
|
+
var toUppercaseHexColor = function toUppercaseHexColor(color) {
|
|
589
|
+
if (!color) return undefined;
|
|
590
|
+
// Check if it's a valid hex color
|
|
591
|
+
var hexRegex = /^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/;
|
|
592
|
+
if (!hexRegex.test(color)) return color;
|
|
593
|
+
return color.toUpperCase();
|
|
594
|
+
};
|
|
595
|
+
|
|
588
596
|
var SpriteFromAtlas = function SpriteFromAtlas(_ref) {
|
|
589
597
|
var _atlasJSON$frames, _atlasJSON$frames2;
|
|
590
598
|
var atlasJSON = _ref.atlasJSON,
|
|
@@ -614,6 +622,7 @@ var SpriteFromAtlas = function SpriteFromAtlas(_ref) {
|
|
|
614
622
|
console.error("SpriteFromAtlas: Could not find sprite with key " + spriteKey + " in atlasJSON.");
|
|
615
623
|
return null;
|
|
616
624
|
}
|
|
625
|
+
var normalizedTintColor = toUppercaseHexColor(tintColor);
|
|
617
626
|
return React.createElement(Container$1, {
|
|
618
627
|
width: width,
|
|
619
628
|
height: height,
|
|
@@ -630,7 +639,7 @@ var SpriteFromAtlas = function SpriteFromAtlas(_ref) {
|
|
|
630
639
|
style: imgStyle,
|
|
631
640
|
centered: centered,
|
|
632
641
|
borderRadius: borderRadius,
|
|
633
|
-
tintColor:
|
|
642
|
+
tintColor: normalizedTintColor
|
|
634
643
|
}));
|
|
635
644
|
};
|
|
636
645
|
var Container$1 = /*#__PURE__*/styled.div.withConfig({
|
|
@@ -30774,6 +30783,1381 @@ var ContentWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
|
30774
30783
|
componentId: "sc-ldufv0-3"
|
|
30775
30784
|
})([""]);
|
|
30776
30785
|
|
|
30786
|
+
var usePagination = function usePagination(_ref) {
|
|
30787
|
+
var items = _ref.items,
|
|
30788
|
+
itemsPerPage = _ref.itemsPerPage,
|
|
30789
|
+
_ref$dependencies = _ref.dependencies,
|
|
30790
|
+
dependencies = _ref$dependencies === void 0 ? [] : _ref$dependencies;
|
|
30791
|
+
var _useState = useState(1),
|
|
30792
|
+
currentPage = _useState[0],
|
|
30793
|
+
setCurrentPage = _useState[1];
|
|
30794
|
+
var totalPages = Math.ceil(items.length / itemsPerPage);
|
|
30795
|
+
var paginatedItems = items.slice((currentPage - 1) * itemsPerPage, currentPage * itemsPerPage);
|
|
30796
|
+
useEffect(function () {
|
|
30797
|
+
setCurrentPage(1);
|
|
30798
|
+
}, [].concat(dependencies));
|
|
30799
|
+
return {
|
|
30800
|
+
currentPage: currentPage,
|
|
30801
|
+
setCurrentPage: setCurrentPage,
|
|
30802
|
+
paginatedItems: paginatedItems,
|
|
30803
|
+
totalPages: totalPages
|
|
30804
|
+
};
|
|
30805
|
+
};
|
|
30806
|
+
|
|
30807
|
+
var Pagination = function Pagination(_ref) {
|
|
30808
|
+
var currentPage = _ref.currentPage,
|
|
30809
|
+
totalPages = _ref.totalPages,
|
|
30810
|
+
onPageChange = _ref.onPageChange,
|
|
30811
|
+
className = _ref.className;
|
|
30812
|
+
return React.createElement(Container$l, {
|
|
30813
|
+
className: className
|
|
30814
|
+
}, React.createElement(PaginationButton$1, {
|
|
30815
|
+
onClick: function onClick() {
|
|
30816
|
+
return onPageChange(Math.max(1, currentPage - 1));
|
|
30817
|
+
},
|
|
30818
|
+
disabled: currentPage === 1
|
|
30819
|
+
}, React.createElement(FaChevronLeft, {
|
|
30820
|
+
size: 12
|
|
30821
|
+
})), React.createElement(PageInfo$1, null, "Page ", currentPage, " of ", totalPages), React.createElement(PaginationButton$1, {
|
|
30822
|
+
onClick: function onClick() {
|
|
30823
|
+
return onPageChange(Math.min(totalPages, currentPage + 1));
|
|
30824
|
+
},
|
|
30825
|
+
disabled: currentPage === totalPages
|
|
30826
|
+
}, React.createElement(FaChevronRight, {
|
|
30827
|
+
size: 12
|
|
30828
|
+
})));
|
|
30829
|
+
};
|
|
30830
|
+
var Container$l = /*#__PURE__*/styled.div.withConfig({
|
|
30831
|
+
displayName: "Pagination__Container",
|
|
30832
|
+
componentId: "sc-3k4m4u-0"
|
|
30833
|
+
})(["display:flex;align-items:center;justify-content:center;gap:16px;padding:8px;"]);
|
|
30834
|
+
var PaginationButton$1 = /*#__PURE__*/styled.button.withConfig({
|
|
30835
|
+
displayName: "Pagination__PaginationButton",
|
|
30836
|
+
componentId: "sc-3k4m4u-1"
|
|
30837
|
+
})(["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) {
|
|
30838
|
+
return props.disabled ? uiColors.darkGray : uiColors.yellow;
|
|
30839
|
+
}, function (props) {
|
|
30840
|
+
return props.disabled ? 'not-allowed' : 'pointer';
|
|
30841
|
+
}, function (props) {
|
|
30842
|
+
return props.disabled ? 0.5 : 0.8;
|
|
30843
|
+
});
|
|
30844
|
+
var PageInfo$1 = /*#__PURE__*/styled.div.withConfig({
|
|
30845
|
+
displayName: "Pagination__PageInfo",
|
|
30846
|
+
componentId: "sc-3k4m4u-2"
|
|
30847
|
+
})(["color:", ";font-size:0.8rem;font-family:'Press Start 2P',cursive;"], uiColors.lightGray);
|
|
30848
|
+
|
|
30849
|
+
var SearchBar = function SearchBar(_ref) {
|
|
30850
|
+
var value = _ref.value,
|
|
30851
|
+
_onChange = _ref.onChange,
|
|
30852
|
+
placeholder = _ref.placeholder,
|
|
30853
|
+
className = _ref.className;
|
|
30854
|
+
return React.createElement(Container$m, {
|
|
30855
|
+
className: className
|
|
30856
|
+
}, React.createElement(Input$1, {
|
|
30857
|
+
type: "text",
|
|
30858
|
+
value: value,
|
|
30859
|
+
onChange: function onChange(e) {
|
|
30860
|
+
return _onChange(e.target.value);
|
|
30861
|
+
},
|
|
30862
|
+
placeholder: placeholder,
|
|
30863
|
+
className: "rpgui-input"
|
|
30864
|
+
}), React.createElement(IconContainer, null, React.createElement(SearchIcon, null)));
|
|
30865
|
+
};
|
|
30866
|
+
var Container$m = /*#__PURE__*/styled.div.withConfig({
|
|
30867
|
+
displayName: "SearchBar__Container",
|
|
30868
|
+
componentId: "sc-13n8z02-0"
|
|
30869
|
+
})(["position:relative;width:100%;"]);
|
|
30870
|
+
var Input$1 = /*#__PURE__*/styled.input.withConfig({
|
|
30871
|
+
displayName: "SearchBar__Input",
|
|
30872
|
+
componentId: "sc-13n8z02-1"
|
|
30873
|
+
})(["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;}"]);
|
|
30874
|
+
var IconContainer = /*#__PURE__*/styled.div.withConfig({
|
|
30875
|
+
displayName: "SearchBar__IconContainer",
|
|
30876
|
+
componentId: "sc-13n8z02-2"
|
|
30877
|
+
})(["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;"]);
|
|
30878
|
+
var SearchIcon = /*#__PURE__*/styled(FaSearch).withConfig({
|
|
30879
|
+
displayName: "SearchBar__SearchIcon",
|
|
30880
|
+
componentId: "sc-13n8z02-3"
|
|
30881
|
+
})(["font-size:1rem;color:#f59e0b;filter:drop-shadow(0 0 2px rgba(245,158,11,0.3));"]);
|
|
30882
|
+
|
|
30883
|
+
var SearchHeader = function SearchHeader(_ref) {
|
|
30884
|
+
var searchOptions = _ref.searchOptions,
|
|
30885
|
+
filterOptions = _ref.filterOptions,
|
|
30886
|
+
className = _ref.className;
|
|
30887
|
+
if (!searchOptions && !filterOptions) return null;
|
|
30888
|
+
return React.createElement(HeaderContainer$1, {
|
|
30889
|
+
className: className
|
|
30890
|
+
}, React.createElement(HeaderContent, null, searchOptions && React.createElement(SearchContainer$2, null, React.createElement(StyledSearchBar, {
|
|
30891
|
+
value: searchOptions.value,
|
|
30892
|
+
onChange: searchOptions.onChange,
|
|
30893
|
+
placeholder: searchOptions.placeholder || 'Search...'
|
|
30894
|
+
})), filterOptions && React.createElement(FilterContainer, null, React.createElement(StyledDropdown, {
|
|
30895
|
+
options: filterOptions.options,
|
|
30896
|
+
onChange: filterOptions.onOptionChange,
|
|
30897
|
+
width: "200px"
|
|
30898
|
+
}))));
|
|
30899
|
+
};
|
|
30900
|
+
var HeaderContainer$1 = /*#__PURE__*/styled.div.withConfig({
|
|
30901
|
+
displayName: "SearchHeader__HeaderContainer",
|
|
30902
|
+
componentId: "sc-1xd17jb-0"
|
|
30903
|
+
})([""]);
|
|
30904
|
+
var HeaderContent = /*#__PURE__*/styled.div.withConfig({
|
|
30905
|
+
displayName: "SearchHeader__HeaderContent",
|
|
30906
|
+
componentId: "sc-1xd17jb-1"
|
|
30907
|
+
})(["display:flex;justify-content:space-between;align-items:center;gap:1rem;background:rgba(0,0,0,0.2);padding:1rem;border-radius:4px;"]);
|
|
30908
|
+
var SearchContainer$2 = /*#__PURE__*/styled.div.withConfig({
|
|
30909
|
+
displayName: "SearchHeader__SearchContainer",
|
|
30910
|
+
componentId: "sc-1xd17jb-2"
|
|
30911
|
+
})(["flex:1;"]);
|
|
30912
|
+
var FilterContainer = /*#__PURE__*/styled.div.withConfig({
|
|
30913
|
+
displayName: "SearchHeader__FilterContainer",
|
|
30914
|
+
componentId: "sc-1xd17jb-3"
|
|
30915
|
+
})(["display:flex;justify-content:flex-end;"]);
|
|
30916
|
+
var StyledSearchBar = /*#__PURE__*/styled(SearchBar).withConfig({
|
|
30917
|
+
displayName: "SearchHeader__StyledSearchBar",
|
|
30918
|
+
componentId: "sc-1xd17jb-4"
|
|
30919
|
+
})(["width:100%;"]);
|
|
30920
|
+
var StyledDropdown = /*#__PURE__*/styled(Dropdown).withConfig({
|
|
30921
|
+
displayName: "SearchHeader__StyledDropdown",
|
|
30922
|
+
componentId: "sc-1xd17jb-5"
|
|
30923
|
+
})(["min-width:150px;"]);
|
|
30924
|
+
|
|
30925
|
+
var PaginatedContent = function PaginatedContent(_ref) {
|
|
30926
|
+
var items = _ref.items,
|
|
30927
|
+
_ref$itemsPerPage = _ref.itemsPerPage,
|
|
30928
|
+
itemsPerPage = _ref$itemsPerPage === void 0 ? 5 : _ref$itemsPerPage,
|
|
30929
|
+
renderItem = _ref.renderItem,
|
|
30930
|
+
_ref$emptyMessage = _ref.emptyMessage,
|
|
30931
|
+
emptyMessage = _ref$emptyMessage === void 0 ? 'No items found' : _ref$emptyMessage,
|
|
30932
|
+
className = _ref.className,
|
|
30933
|
+
filterOptions = _ref.filterOptions,
|
|
30934
|
+
searchOptions = _ref.searchOptions,
|
|
30935
|
+
_ref$dependencies = _ref.dependencies,
|
|
30936
|
+
dependencies = _ref$dependencies === void 0 ? [] : _ref$dependencies,
|
|
30937
|
+
tabId = _ref.tabId,
|
|
30938
|
+
_ref$layout = _ref.layout,
|
|
30939
|
+
layout = _ref$layout === void 0 ? 'list' : _ref$layout,
|
|
30940
|
+
_ref$gridColumns = _ref.gridColumns,
|
|
30941
|
+
gridColumns = _ref$gridColumns === void 0 ? 4 : _ref$gridColumns,
|
|
30942
|
+
_ref$itemHeight = _ref.itemHeight,
|
|
30943
|
+
itemHeight = _ref$itemHeight === void 0 ? '180px' : _ref$itemHeight;
|
|
30944
|
+
var _usePagination = usePagination({
|
|
30945
|
+
items: items,
|
|
30946
|
+
itemsPerPage: itemsPerPage,
|
|
30947
|
+
dependencies: [].concat(dependencies, [tabId])
|
|
30948
|
+
}),
|
|
30949
|
+
currentPage = _usePagination.currentPage,
|
|
30950
|
+
setCurrentPage = _usePagination.setCurrentPage,
|
|
30951
|
+
paginatedItems = _usePagination.paginatedItems,
|
|
30952
|
+
totalPages = _usePagination.totalPages;
|
|
30953
|
+
return React.createElement(Container$n, {
|
|
30954
|
+
className: className
|
|
30955
|
+
}, (searchOptions || filterOptions) && React.createElement(SearchHeader, {
|
|
30956
|
+
searchOptions: searchOptions,
|
|
30957
|
+
filterOptions: filterOptions
|
|
30958
|
+
}), items.length === 0 ? React.createElement(EmptyMessage, null, emptyMessage) : React.createElement(React.Fragment, null, React.createElement(Content, {
|
|
30959
|
+
className: "PaginatedContent-content " + layout,
|
|
30960
|
+
"$gridColumns": gridColumns,
|
|
30961
|
+
"$itemHeight": itemHeight
|
|
30962
|
+
}, paginatedItems.map(function (item, index) {
|
|
30963
|
+
return React.createElement("div", {
|
|
30964
|
+
key: index,
|
|
30965
|
+
className: "PaginatedContent-item"
|
|
30966
|
+
}, renderItem(item));
|
|
30967
|
+
})), React.createElement(PaginationContainer$1, {
|
|
30968
|
+
className: "PaginatedContent-pagination"
|
|
30969
|
+
}, React.createElement(Pagination, {
|
|
30970
|
+
currentPage: currentPage,
|
|
30971
|
+
totalPages: totalPages,
|
|
30972
|
+
onPageChange: setCurrentPage
|
|
30973
|
+
}))));
|
|
30974
|
+
};
|
|
30975
|
+
var Container$n = /*#__PURE__*/styled.div.withConfig({
|
|
30976
|
+
displayName: "PaginatedContent__Container",
|
|
30977
|
+
componentId: "sc-lzp9hn-0"
|
|
30978
|
+
})(["display:flex;flex-direction:column;gap:1rem;min-height:400px;width:100%;"]);
|
|
30979
|
+
var Content = /*#__PURE__*/styled.div.withConfig({
|
|
30980
|
+
displayName: "PaginatedContent__Content",
|
|
30981
|
+
componentId: "sc-lzp9hn-1"
|
|
30982
|
+
})(["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) {
|
|
30983
|
+
return props.$maxHeight;
|
|
30984
|
+
}, function (props) {
|
|
30985
|
+
return props.$maxHeight ? 'auto' : 'visible';
|
|
30986
|
+
}, function (props) {
|
|
30987
|
+
return props.$gridColumns;
|
|
30988
|
+
}, function (props) {
|
|
30989
|
+
var _props$$itemHeight;
|
|
30990
|
+
return (_props$$itemHeight = props.$itemHeight) != null ? _props$$itemHeight : 'auto';
|
|
30991
|
+
});
|
|
30992
|
+
var PaginationContainer$1 = /*#__PURE__*/styled.div.withConfig({
|
|
30993
|
+
displayName: "PaginatedContent__PaginationContainer",
|
|
30994
|
+
componentId: "sc-lzp9hn-2"
|
|
30995
|
+
})(["display:flex;justify-content:center;padding:1rem;"]);
|
|
30996
|
+
var EmptyMessage = /*#__PURE__*/styled.div.withConfig({
|
|
30997
|
+
displayName: "PaginatedContent__EmptyMessage",
|
|
30998
|
+
componentId: "sc-lzp9hn-3"
|
|
30999
|
+
})(["text-align:center;color:#9ca3af;padding:2rem;flex:1;display:flex;align-items:center;justify-content:center;"]);
|
|
31000
|
+
|
|
31001
|
+
var Portal = function Portal(_ref) {
|
|
31002
|
+
var children = _ref.children;
|
|
31003
|
+
var _useState = useState(function () {
|
|
31004
|
+
return document.createElement('div');
|
|
31005
|
+
}),
|
|
31006
|
+
container = _useState[0];
|
|
31007
|
+
useEffect(function () {
|
|
31008
|
+
document.body.appendChild(container);
|
|
31009
|
+
return function () {
|
|
31010
|
+
document.body.removeChild(container);
|
|
31011
|
+
};
|
|
31012
|
+
}, [container]);
|
|
31013
|
+
return createPortal(children, container);
|
|
31014
|
+
};
|
|
31015
|
+
|
|
31016
|
+
var InformationCenterCell = function InformationCenterCell(_ref) {
|
|
31017
|
+
var name = _ref.name,
|
|
31018
|
+
spriteKey = _ref.spriteKey,
|
|
31019
|
+
atlasJSON = _ref.atlasJSON,
|
|
31020
|
+
atlasIMG = _ref.atlasIMG,
|
|
31021
|
+
onClick = _ref.onClick,
|
|
31022
|
+
onMouseEnter = _ref.onMouseEnter,
|
|
31023
|
+
onMouseLeave = _ref.onMouseLeave,
|
|
31024
|
+
onMouseMove = _ref.onMouseMove,
|
|
31025
|
+
onTouchStart = _ref.onTouchStart;
|
|
31026
|
+
return React.createElement(CellContainer, {
|
|
31027
|
+
onClick: onClick,
|
|
31028
|
+
onMouseEnter: onMouseEnter,
|
|
31029
|
+
onMouseLeave: onMouseLeave,
|
|
31030
|
+
onMouseMove: onMouseMove,
|
|
31031
|
+
onTouchStart: onTouchStart
|
|
31032
|
+
}, React.createElement(SpriteContainer$1, null, React.createElement(SpriteFromAtlas, {
|
|
31033
|
+
atlasJSON: atlasJSON,
|
|
31034
|
+
atlasIMG: atlasIMG,
|
|
31035
|
+
spriteKey: spriteKey,
|
|
31036
|
+
width: 32,
|
|
31037
|
+
height: 32,
|
|
31038
|
+
imgScale: 1
|
|
31039
|
+
})), React.createElement(CellName, null, name));
|
|
31040
|
+
};
|
|
31041
|
+
var CellContainer = /*#__PURE__*/styled.div.withConfig({
|
|
31042
|
+
displayName: "InformationCenterCell__CellContainer",
|
|
31043
|
+
componentId: "sc-w48fdf-0"
|
|
31044
|
+
})(["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);}"]);
|
|
31045
|
+
var SpriteContainer$1 = /*#__PURE__*/styled.div.withConfig({
|
|
31046
|
+
displayName: "InformationCenterCell__SpriteContainer",
|
|
31047
|
+
componentId: "sc-w48fdf-1"
|
|
31048
|
+
})(["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;}"]);
|
|
31049
|
+
var CellName = /*#__PURE__*/styled.h3.withConfig({
|
|
31050
|
+
displayName: "InformationCenterCell__CellName",
|
|
31051
|
+
componentId: "sc-w48fdf-2"
|
|
31052
|
+
})(["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%;"]);
|
|
31053
|
+
|
|
31054
|
+
var Collapsible = function Collapsible(_ref) {
|
|
31055
|
+
var title = _ref.title,
|
|
31056
|
+
children = _ref.children,
|
|
31057
|
+
_ref$defaultOpen = _ref.defaultOpen,
|
|
31058
|
+
defaultOpen = _ref$defaultOpen === void 0 ? false : _ref$defaultOpen,
|
|
31059
|
+
className = _ref.className;
|
|
31060
|
+
var _useState = useState(defaultOpen),
|
|
31061
|
+
isOpen = _useState[0],
|
|
31062
|
+
setIsOpen = _useState[1];
|
|
31063
|
+
return React.createElement(Container$o, {
|
|
31064
|
+
className: className
|
|
31065
|
+
}, React.createElement(Header$1, {
|
|
31066
|
+
onClick: function onClick() {
|
|
31067
|
+
return setIsOpen(!isOpen);
|
|
31068
|
+
}
|
|
31069
|
+
}, React.createElement(Title$3, null, title), React.createElement(Icon$1, null, isOpen ? React.createElement(FaChevronUp, null) : React.createElement(FaChevronDown, null))), isOpen && React.createElement(Content$1, null, children));
|
|
31070
|
+
};
|
|
31071
|
+
var Container$o = /*#__PURE__*/styled.div.withConfig({
|
|
31072
|
+
displayName: "Collapsible__Container",
|
|
31073
|
+
componentId: "sc-s4h8ey-0"
|
|
31074
|
+
})(["background:rgba(0,0,0,0.3);border-radius:4px;overflow:hidden;border:1px solid ", ";"], uiColors.darkGray);
|
|
31075
|
+
var Header$1 = /*#__PURE__*/styled.div.withConfig({
|
|
31076
|
+
displayName: "Collapsible__Header",
|
|
31077
|
+
componentId: "sc-s4h8ey-1"
|
|
31078
|
+
})(["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);}"]);
|
|
31079
|
+
var Title$3 = /*#__PURE__*/styled.h3.withConfig({
|
|
31080
|
+
displayName: "Collapsible__Title",
|
|
31081
|
+
componentId: "sc-s4h8ey-2"
|
|
31082
|
+
})(["margin:0;font-size:0.6rem;color:", ";font-family:'Press Start 2P',cursive;letter-spacing:0.5px;"], uiColors.yellow);
|
|
31083
|
+
var Icon$1 = /*#__PURE__*/styled.span.withConfig({
|
|
31084
|
+
displayName: "Collapsible__Icon",
|
|
31085
|
+
componentId: "sc-s4h8ey-3"
|
|
31086
|
+
})(["color:", ";font-size:0.6rem;display:flex;align-items:center;"], uiColors.yellow);
|
|
31087
|
+
var Content$1 = /*#__PURE__*/styled.div.withConfig({
|
|
31088
|
+
displayName: "Collapsible__Content",
|
|
31089
|
+
componentId: "sc-s4h8ey-4"
|
|
31090
|
+
})(["padding:12px;"]);
|
|
31091
|
+
|
|
31092
|
+
var BaseInformationDetails = function BaseInformationDetails(_ref) {
|
|
31093
|
+
var name = _ref.name,
|
|
31094
|
+
spriteKey = _ref.spriteKey,
|
|
31095
|
+
atlasJSON = _ref.atlasJSON,
|
|
31096
|
+
atlasIMG = _ref.atlasIMG,
|
|
31097
|
+
onBack = _ref.onBack,
|
|
31098
|
+
children = _ref.children;
|
|
31099
|
+
return React.createElement(Container$p, null, React.createElement(Overlay, {
|
|
31100
|
+
onClick: onBack
|
|
31101
|
+
}), React.createElement(Modal, null, React.createElement(CloseButton$5, {
|
|
31102
|
+
onClick: onBack
|
|
31103
|
+
}, React.createElement(FaTimes, null)), React.createElement(Header$2, null, React.createElement(SpriteContainer$2, null, React.createElement(SpriteFromAtlas, {
|
|
31104
|
+
atlasJSON: atlasJSON,
|
|
31105
|
+
atlasIMG: atlasIMG,
|
|
31106
|
+
spriteKey: spriteKey,
|
|
31107
|
+
width: 32,
|
|
31108
|
+
height: 32,
|
|
31109
|
+
imgScale: 1
|
|
31110
|
+
})), React.createElement(Title$4, null, name)), React.createElement(Content$2, null, children)));
|
|
31111
|
+
};
|
|
31112
|
+
var Container$p = /*#__PURE__*/styled.div.withConfig({
|
|
31113
|
+
displayName: "BaseInformationDetails__Container",
|
|
31114
|
+
componentId: "sc-1vguuz8-0"
|
|
31115
|
+
})(["position:fixed;top:0;left:0;right:0;bottom:0;display:flex;justify-content:center;align-items:center;z-index:1000;"]);
|
|
31116
|
+
var Overlay = /*#__PURE__*/styled.div.withConfig({
|
|
31117
|
+
displayName: "BaseInformationDetails__Overlay",
|
|
31118
|
+
componentId: "sc-1vguuz8-1"
|
|
31119
|
+
})(["position:absolute;top:0;left:0;right:0;bottom:0;background-color:rgba(0,0,0,0.8);"]);
|
|
31120
|
+
var Modal = /*#__PURE__*/styled.div.withConfig({
|
|
31121
|
+
displayName: "BaseInformationDetails__Modal",
|
|
31122
|
+
componentId: "sc-1vguuz8-2"
|
|
31123
|
+
})(["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);
|
|
31124
|
+
var CloseButton$5 = /*#__PURE__*/styled.button.withConfig({
|
|
31125
|
+
displayName: "BaseInformationDetails__CloseButton",
|
|
31126
|
+
componentId: "sc-1vguuz8-3"
|
|
31127
|
+
})(["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);
|
|
31128
|
+
var Header$2 = /*#__PURE__*/styled.div.withConfig({
|
|
31129
|
+
displayName: "BaseInformationDetails__Header",
|
|
31130
|
+
componentId: "sc-1vguuz8-4"
|
|
31131
|
+
})(["display:flex;align-items:center;gap:16px;margin-bottom:24px;"]);
|
|
31132
|
+
var Content$2 = /*#__PURE__*/styled.div.withConfig({
|
|
31133
|
+
displayName: "BaseInformationDetails__Content",
|
|
31134
|
+
componentId: "sc-1vguuz8-5"
|
|
31135
|
+
})(["display:flex;flex-direction:column;gap:16px;"]);
|
|
31136
|
+
var Title$4 = /*#__PURE__*/styled.h2.withConfig({
|
|
31137
|
+
displayName: "BaseInformationDetails__Title",
|
|
31138
|
+
componentId: "sc-1vguuz8-6"
|
|
31139
|
+
})(["color:", ";font-size:1rem;margin:0;"], uiColors.yellow);
|
|
31140
|
+
var SpriteContainer$2 = /*#__PURE__*/styled.div.withConfig({
|
|
31141
|
+
displayName: "BaseInformationDetails__SpriteContainer",
|
|
31142
|
+
componentId: "sc-1vguuz8-7"
|
|
31143
|
+
})(["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;}"]);
|
|
31144
|
+
|
|
31145
|
+
var ITEMS_PER_PAGE$1 = 5;
|
|
31146
|
+
var InformationCenterNPCDetails = function InformationCenterNPCDetails(_ref) {
|
|
31147
|
+
var _npc$loots, _npc$skills$strength, _npc$skills$dexterity, _npc$skills$resistanc;
|
|
31148
|
+
var npc = _ref.npc,
|
|
31149
|
+
itemsAtlasJSON = _ref.itemsAtlasJSON,
|
|
31150
|
+
itemsAtlasIMG = _ref.itemsAtlasIMG,
|
|
31151
|
+
entitiesAtlasJSON = _ref.entitiesAtlasJSON,
|
|
31152
|
+
entitiesAtlasIMG = _ref.entitiesAtlasIMG,
|
|
31153
|
+
onBack = _ref.onBack;
|
|
31154
|
+
var isMobile = isMobileOrTablet();
|
|
31155
|
+
var _useState = useState(''),
|
|
31156
|
+
lootSearchQuery = _useState[0],
|
|
31157
|
+
setLootSearchQuery = _useState[1];
|
|
31158
|
+
var _useState2 = useState(1),
|
|
31159
|
+
currentLootPage = _useState2[0],
|
|
31160
|
+
setCurrentLootPage = _useState2[1];
|
|
31161
|
+
var formatText = function formatText(text) {
|
|
31162
|
+
if (typeof text === 'number') {
|
|
31163
|
+
return text.toString();
|
|
31164
|
+
}
|
|
31165
|
+
return text.toString().replace(/([A-Z])/g, ' $1').trim().replace(/([A-Z]+)([A-Z][a-z])/g, '$1 $2').replace(/\s+/g, ' ');
|
|
31166
|
+
};
|
|
31167
|
+
var formatRarity = function formatRarity(rarity) {
|
|
31168
|
+
switch (rarity) {
|
|
31169
|
+
case 0.5:
|
|
31170
|
+
return 'Very Rare';
|
|
31171
|
+
case 1:
|
|
31172
|
+
return 'Rare';
|
|
31173
|
+
case 10:
|
|
31174
|
+
return 'Uncommon';
|
|
31175
|
+
case 15:
|
|
31176
|
+
return 'Semi Common';
|
|
31177
|
+
case 20:
|
|
31178
|
+
return 'Common';
|
|
31179
|
+
case 35:
|
|
31180
|
+
return 'Very Common';
|
|
31181
|
+
default:
|
|
31182
|
+
return 'Unknown';
|
|
31183
|
+
}
|
|
31184
|
+
};
|
|
31185
|
+
var filteredLoots = ((_npc$loots = npc.loots) == null ? void 0 : _npc$loots.filter(function (loot) {
|
|
31186
|
+
return formatText(loot.itemBlueprintKey).toLowerCase().includes(lootSearchQuery.toLowerCase());
|
|
31187
|
+
})) || [];
|
|
31188
|
+
var totalLootPages = Math.ceil(filteredLoots.length / ITEMS_PER_PAGE$1);
|
|
31189
|
+
var paginatedLoots = filteredLoots.slice((currentLootPage - 1) * ITEMS_PER_PAGE$1, currentLootPage * ITEMS_PER_PAGE$1);
|
|
31190
|
+
return React.createElement(BaseInformationDetails, {
|
|
31191
|
+
name: npc.name,
|
|
31192
|
+
spriteKey: npc.key,
|
|
31193
|
+
atlasJSON: entitiesAtlasJSON,
|
|
31194
|
+
atlasIMG: entitiesAtlasIMG,
|
|
31195
|
+
onBack: onBack
|
|
31196
|
+
}, React.createElement(InfoSection, null, React.createElement(InfoItem, null, React.createElement(Label, null, "Type:"), React.createElement(Value, null, formatText(npc.subType))), React.createElement(InfoItem, null, React.createElement(Label, null, "Alignment:"), React.createElement(Value, null, formatText(npc.alignment))), React.createElement(InfoItem, null, React.createElement(Label, null, "Attack Type:"), React.createElement(Value, null, formatText(npc.attackType))), React.createElement(InfoItem, null, React.createElement(Label, null, "Range:"), React.createElement(Value, null, formatText(npc.maxRangeAttack))), React.createElement(InfoItem, null, React.createElement(Label, null, "Speed:"), React.createElement(Value, null, formatText(npc.speed)))), React.createElement(StyledCollapsible, {
|
|
31197
|
+
title: "Stats",
|
|
31198
|
+
defaultOpen: !isMobile
|
|
31199
|
+
}, React.createElement(StatGrid, null, React.createElement(StatItem, null, "HP: ", npc.baseHealth), React.createElement(StatItem, null, "Level: ", npc.skills.level), ((_npc$skills$strength = npc.skills.strength) == null ? void 0 : _npc$skills$strength.level) && React.createElement(StatItem, null, "Strength: ", npc.skills.strength.level), ((_npc$skills$dexterity = npc.skills.dexterity) == null ? void 0 : _npc$skills$dexterity.level) && React.createElement(StatItem, null, "Dexterity: ", npc.skills.dexterity.level), ((_npc$skills$resistanc = npc.skills.resistance) == null ? void 0 : _npc$skills$resistanc.level) && React.createElement(StatItem, null, "Resistance: ", npc.skills.resistance.level))), npc.loots && npc.loots.length > 0 && React.createElement(StyledCollapsible, {
|
|
31200
|
+
title: "Loot",
|
|
31201
|
+
defaultOpen: !isMobile
|
|
31202
|
+
}, React.createElement(LootSearchContainer, null, React.createElement(StyledSearchBar$1, {
|
|
31203
|
+
value: lootSearchQuery,
|
|
31204
|
+
onChange: setLootSearchQuery,
|
|
31205
|
+
placeholder: "Search loot..."
|
|
31206
|
+
})), React.createElement(LootGrid, null, paginatedLoots.map(function (loot, index) {
|
|
31207
|
+
return React.createElement(LootItem, {
|
|
31208
|
+
key: index
|
|
31209
|
+
}, React.createElement(SpriteFromAtlas, {
|
|
31210
|
+
atlasJSON: itemsAtlasJSON,
|
|
31211
|
+
atlasIMG: itemsAtlasIMG,
|
|
31212
|
+
spriteKey: loot.itemBlueprintKey,
|
|
31213
|
+
width: 24,
|
|
31214
|
+
height: 24,
|
|
31215
|
+
imgScale: 1
|
|
31216
|
+
}), React.createElement(LootDetails, null, React.createElement(LootName, null, formatText(loot.itemBlueprintKey)), React.createElement(LootInfo, null, React.createElement(LootChance, null, formatRarity(loot.chance)), loot.quantityRange && React.createElement(LootQuantity, null, "x", loot.quantityRange[0], "-", loot.quantityRange[1]))));
|
|
31217
|
+
})), filteredLoots.length > ITEMS_PER_PAGE$1 && React.createElement(PaginationContainer$2, null, React.createElement(StyledPagination, {
|
|
31218
|
+
currentPage: currentLootPage,
|
|
31219
|
+
totalPages: totalLootPages,
|
|
31220
|
+
onPageChange: setCurrentLootPage
|
|
31221
|
+
}))), npc.entityEffects && npc.entityEffects.length > 0 && React.createElement(StyledCollapsible, {
|
|
31222
|
+
title: "Effects",
|
|
31223
|
+
defaultOpen: !isMobile
|
|
31224
|
+
}, React.createElement(EffectsList, null, npc.entityEffects.map(function (effect, index) {
|
|
31225
|
+
return React.createElement(EffectItem, {
|
|
31226
|
+
key: index
|
|
31227
|
+
}, formatText(effect));
|
|
31228
|
+
}))), npc.areaSpells && npc.areaSpells.length > 0 && React.createElement(StyledCollapsible, {
|
|
31229
|
+
title: "Spells",
|
|
31230
|
+
defaultOpen: !isMobile
|
|
31231
|
+
}, React.createElement(SpellsList, null, npc.areaSpells.map(function (spell, index) {
|
|
31232
|
+
return React.createElement(SpellItem, {
|
|
31233
|
+
key: index
|
|
31234
|
+
}, React.createElement(SpellName, null, formatText(spell.spellKey)), React.createElement(SpellDetails, null, "Power: ", React.createElement(SpellValue, null, formatText(spell.power)), React.createElement(Separator, null, "\u2022"), "Chance: ", React.createElement(SpellValue, null, spell.probability, "%")));
|
|
31235
|
+
}))));
|
|
31236
|
+
};
|
|
31237
|
+
var InfoSection = /*#__PURE__*/styled.div.withConfig({
|
|
31238
|
+
displayName: "InformationCenterNPCDetails__InfoSection",
|
|
31239
|
+
componentId: "sc-fdu3xl-0"
|
|
31240
|
+
})(["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;"]);
|
|
31241
|
+
var InfoItem = /*#__PURE__*/styled.div.withConfig({
|
|
31242
|
+
displayName: "InformationCenterNPCDetails__InfoItem",
|
|
31243
|
+
componentId: "sc-fdu3xl-1"
|
|
31244
|
+
})(["display:flex;align-items:center;gap:8px;"]);
|
|
31245
|
+
var Label = /*#__PURE__*/styled.span.withConfig({
|
|
31246
|
+
displayName: "InformationCenterNPCDetails__Label",
|
|
31247
|
+
componentId: "sc-fdu3xl-2"
|
|
31248
|
+
})(["color:", ";font-size:0.5rem;opacity:0.8;"], uiColors.yellow);
|
|
31249
|
+
var Value = /*#__PURE__*/styled.span.withConfig({
|
|
31250
|
+
displayName: "InformationCenterNPCDetails__Value",
|
|
31251
|
+
componentId: "sc-fdu3xl-3"
|
|
31252
|
+
})(["color:", ";font-size:0.5rem;"], uiColors.white);
|
|
31253
|
+
var StyledCollapsible = /*#__PURE__*/styled(Collapsible).withConfig({
|
|
31254
|
+
displayName: "InformationCenterNPCDetails__StyledCollapsible",
|
|
31255
|
+
componentId: "sc-fdu3xl-4"
|
|
31256
|
+
})(["background:rgba(255,255,255,0.05);border-radius:4px;overflow:hidden;"]);
|
|
31257
|
+
var StatGrid = /*#__PURE__*/styled.div.withConfig({
|
|
31258
|
+
displayName: "InformationCenterNPCDetails__StatGrid",
|
|
31259
|
+
componentId: "sc-fdu3xl-5"
|
|
31260
|
+
})(["display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px;padding:12px;"]);
|
|
31261
|
+
var StatItem = /*#__PURE__*/styled.div.withConfig({
|
|
31262
|
+
displayName: "InformationCenterNPCDetails__StatItem",
|
|
31263
|
+
componentId: "sc-fdu3xl-6"
|
|
31264
|
+
})(["color:", ";font-size:0.5rem;background:rgba(255,255,255,0.05);padding:8px;border-radius:4px;"], uiColors.white);
|
|
31265
|
+
var EffectsList = /*#__PURE__*/styled.div.withConfig({
|
|
31266
|
+
displayName: "InformationCenterNPCDetails__EffectsList",
|
|
31267
|
+
componentId: "sc-fdu3xl-7"
|
|
31268
|
+
})(["display:flex;flex-wrap:wrap;gap:8px;padding:12px;"]);
|
|
31269
|
+
var EffectItem = /*#__PURE__*/styled.div.withConfig({
|
|
31270
|
+
displayName: "InformationCenterNPCDetails__EffectItem",
|
|
31271
|
+
componentId: "sc-fdu3xl-8"
|
|
31272
|
+
})(["color:", ";font-size:0.5rem;background:rgba(255,255,255,0.1);padding:4px 8px;border-radius:4px;"], uiColors.white);
|
|
31273
|
+
var SpellsList = /*#__PURE__*/styled.div.withConfig({
|
|
31274
|
+
displayName: "InformationCenterNPCDetails__SpellsList",
|
|
31275
|
+
componentId: "sc-fdu3xl-9"
|
|
31276
|
+
})(["display:flex;flex-direction:column;gap:8px;padding:12px;"]);
|
|
31277
|
+
var SpellItem = /*#__PURE__*/styled.div.withConfig({
|
|
31278
|
+
displayName: "InformationCenterNPCDetails__SpellItem",
|
|
31279
|
+
componentId: "sc-fdu3xl-10"
|
|
31280
|
+
})(["display:flex;flex-direction:column;gap:4px;background:rgba(255,255,255,0.05);padding:8px;border-radius:4px;"]);
|
|
31281
|
+
var SpellName = /*#__PURE__*/styled.div.withConfig({
|
|
31282
|
+
displayName: "InformationCenterNPCDetails__SpellName",
|
|
31283
|
+
componentId: "sc-fdu3xl-11"
|
|
31284
|
+
})(["color:", ";font-size:0.5rem;"], uiColors.yellow);
|
|
31285
|
+
var SpellDetails = /*#__PURE__*/styled.div.withConfig({
|
|
31286
|
+
displayName: "InformationCenterNPCDetails__SpellDetails",
|
|
31287
|
+
componentId: "sc-fdu3xl-12"
|
|
31288
|
+
})(["display:flex;align-items:center;gap:8px;color:", ";font-size:0.45rem;opacity:0.8;"], uiColors.white);
|
|
31289
|
+
var SpellValue = /*#__PURE__*/styled.span.withConfig({
|
|
31290
|
+
displayName: "InformationCenterNPCDetails__SpellValue",
|
|
31291
|
+
componentId: "sc-fdu3xl-13"
|
|
31292
|
+
})(["color:", ";"], uiColors.yellow);
|
|
31293
|
+
var Separator = /*#__PURE__*/styled.span.withConfig({
|
|
31294
|
+
displayName: "InformationCenterNPCDetails__Separator",
|
|
31295
|
+
componentId: "sc-fdu3xl-14"
|
|
31296
|
+
})(["color:", ";opacity:0.5;"], uiColors.yellow);
|
|
31297
|
+
var LootSearchContainer = /*#__PURE__*/styled.div.withConfig({
|
|
31298
|
+
displayName: "InformationCenterNPCDetails__LootSearchContainer",
|
|
31299
|
+
componentId: "sc-fdu3xl-15"
|
|
31300
|
+
})(["padding:12px 12px 0;"]);
|
|
31301
|
+
var StyledSearchBar$1 = /*#__PURE__*/styled(SearchBar).withConfig({
|
|
31302
|
+
displayName: "InformationCenterNPCDetails__StyledSearchBar",
|
|
31303
|
+
componentId: "sc-fdu3xl-16"
|
|
31304
|
+
})(["width:100%;"]);
|
|
31305
|
+
var LootGrid = /*#__PURE__*/styled.div.withConfig({
|
|
31306
|
+
displayName: "InformationCenterNPCDetails__LootGrid",
|
|
31307
|
+
componentId: "sc-fdu3xl-17"
|
|
31308
|
+
})(["display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:8px;padding:12px;"]);
|
|
31309
|
+
var LootItem = /*#__PURE__*/styled.div.withConfig({
|
|
31310
|
+
displayName: "InformationCenterNPCDetails__LootItem",
|
|
31311
|
+
componentId: "sc-fdu3xl-18"
|
|
31312
|
+
})(["display:flex;align-items:center;gap:8px;background:rgba(255,255,255,0.05);padding:8px;border-radius:4px;"]);
|
|
31313
|
+
var LootDetails = /*#__PURE__*/styled.div.withConfig({
|
|
31314
|
+
displayName: "InformationCenterNPCDetails__LootDetails",
|
|
31315
|
+
componentId: "sc-fdu3xl-19"
|
|
31316
|
+
})(["flex:1;display:flex;flex-direction:column;gap:4px;"]);
|
|
31317
|
+
var LootName = /*#__PURE__*/styled.div.withConfig({
|
|
31318
|
+
displayName: "InformationCenterNPCDetails__LootName",
|
|
31319
|
+
componentId: "sc-fdu3xl-20"
|
|
31320
|
+
})(["color:", ";font-size:0.5rem;"], uiColors.white);
|
|
31321
|
+
var LootInfo = /*#__PURE__*/styled.div.withConfig({
|
|
31322
|
+
displayName: "InformationCenterNPCDetails__LootInfo",
|
|
31323
|
+
componentId: "sc-fdu3xl-21"
|
|
31324
|
+
})(["display:flex;align-items:center;gap:8px;"]);
|
|
31325
|
+
var LootChance = /*#__PURE__*/styled.span.withConfig({
|
|
31326
|
+
displayName: "InformationCenterNPCDetails__LootChance",
|
|
31327
|
+
componentId: "sc-fdu3xl-22"
|
|
31328
|
+
})(["color:", ";font-size:0.45rem;"], uiColors.yellow);
|
|
31329
|
+
var LootQuantity = /*#__PURE__*/styled.span.withConfig({
|
|
31330
|
+
displayName: "InformationCenterNPCDetails__LootQuantity",
|
|
31331
|
+
componentId: "sc-fdu3xl-23"
|
|
31332
|
+
})(["color:", ";font-size:0.45rem;"], uiColors.lightGray);
|
|
31333
|
+
var PaginationContainer$2 = /*#__PURE__*/styled.div.withConfig({
|
|
31334
|
+
displayName: "InformationCenterNPCDetails__PaginationContainer",
|
|
31335
|
+
componentId: "sc-fdu3xl-24"
|
|
31336
|
+
})(["display:flex;justify-content:center;padding:12px;"]);
|
|
31337
|
+
var StyledPagination = /*#__PURE__*/styled(Pagination).withConfig({
|
|
31338
|
+
displayName: "InformationCenterNPCDetails__StyledPagination",
|
|
31339
|
+
componentId: "sc-fdu3xl-25"
|
|
31340
|
+
})(["font-size:0.6rem;"]);
|
|
31341
|
+
|
|
31342
|
+
var TooltipContainer$1 = /*#__PURE__*/styled.div.withConfig({
|
|
31343
|
+
displayName: "BaseTooltip__TooltipContainer",
|
|
31344
|
+
componentId: "sc-1auz5ec-0"
|
|
31345
|
+
})(["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) {
|
|
31346
|
+
return props.width || '280px';
|
|
31347
|
+
}, uiColors.darkGray);
|
|
31348
|
+
var TooltipTitle$1 = /*#__PURE__*/styled.div.withConfig({
|
|
31349
|
+
displayName: "BaseTooltip__TooltipTitle",
|
|
31350
|
+
componentId: "sc-1auz5ec-1"
|
|
31351
|
+
})(["color:", ";font-size:0.6rem;letter-spacing:0.5px;margin-bottom:8px;"], uiColors.yellow);
|
|
31352
|
+
var Section = /*#__PURE__*/styled.div.withConfig({
|
|
31353
|
+
displayName: "BaseTooltip__Section",
|
|
31354
|
+
componentId: "sc-1auz5ec-2"
|
|
31355
|
+
})(["margin-top:6px;"]);
|
|
31356
|
+
var SectionTitle = /*#__PURE__*/styled.div.withConfig({
|
|
31357
|
+
displayName: "BaseTooltip__SectionTitle",
|
|
31358
|
+
componentId: "sc-1auz5ec-3"
|
|
31359
|
+
})(["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);
|
|
31360
|
+
var StatsContainer = /*#__PURE__*/styled.div.withConfig({
|
|
31361
|
+
displayName: "BaseTooltip__StatsContainer",
|
|
31362
|
+
componentId: "sc-1auz5ec-4"
|
|
31363
|
+
})(["display:grid;grid-template-columns:repeat(2,1fr);gap:2px 8px;"]);
|
|
31364
|
+
var StatItem$1 = /*#__PURE__*/styled.div.withConfig({
|
|
31365
|
+
displayName: "BaseTooltip__StatItem",
|
|
31366
|
+
componentId: "sc-1auz5ec-5"
|
|
31367
|
+
})(["color:", ";font-size:0.5rem;text-align:left;"], uiColors.white);
|
|
31368
|
+
var BaseTooltip = function BaseTooltip(_ref) {
|
|
31369
|
+
var children = _ref.children,
|
|
31370
|
+
width = _ref.width;
|
|
31371
|
+
return React.createElement(TooltipContainer$1, {
|
|
31372
|
+
width: width
|
|
31373
|
+
}, children);
|
|
31374
|
+
};
|
|
31375
|
+
|
|
31376
|
+
var EffectsList$1 = /*#__PURE__*/styled.div.withConfig({
|
|
31377
|
+
displayName: "InformationCenterNPCTooltip__EffectsList",
|
|
31378
|
+
componentId: "sc-j2o39s-0"
|
|
31379
|
+
})(["display:flex;gap:8px;flex-wrap:wrap;"]);
|
|
31380
|
+
var EffectItem$1 = /*#__PURE__*/styled.span.withConfig({
|
|
31381
|
+
displayName: "InformationCenterNPCTooltip__EffectItem",
|
|
31382
|
+
componentId: "sc-j2o39s-1"
|
|
31383
|
+
})(["font-size:0.5rem;color:", ";background:rgba(255,255,255,0.1);padding:2px 6px;border-radius:4px;"], uiColors.white);
|
|
31384
|
+
var SpellList = /*#__PURE__*/styled.div.withConfig({
|
|
31385
|
+
displayName: "InformationCenterNPCTooltip__SpellList",
|
|
31386
|
+
componentId: "sc-j2o39s-2"
|
|
31387
|
+
})(["display:flex;flex-direction:column;gap:2px;"]);
|
|
31388
|
+
var SpellItem$1 = /*#__PURE__*/styled.div.withConfig({
|
|
31389
|
+
displayName: "InformationCenterNPCTooltip__SpellItem",
|
|
31390
|
+
componentId: "sc-j2o39s-3"
|
|
31391
|
+
})(["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);
|
|
31392
|
+
var SpellInfo = /*#__PURE__*/styled.span.withConfig({
|
|
31393
|
+
displayName: "InformationCenterNPCTooltip__SpellInfo",
|
|
31394
|
+
componentId: "sc-j2o39s-4"
|
|
31395
|
+
})(["color:", ";margin-left:8px;opacity:0.8;"], uiColors.yellow);
|
|
31396
|
+
var LootList = /*#__PURE__*/styled.div.withConfig({
|
|
31397
|
+
displayName: "InformationCenterNPCTooltip__LootList",
|
|
31398
|
+
componentId: "sc-j2o39s-5"
|
|
31399
|
+
})(["display:flex;flex-direction:column;gap:2px;"]);
|
|
31400
|
+
var LootItem$1 = /*#__PURE__*/styled.div.withConfig({
|
|
31401
|
+
displayName: "InformationCenterNPCTooltip__LootItem",
|
|
31402
|
+
componentId: "sc-j2o39s-6"
|
|
31403
|
+
})(["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;}"]);
|
|
31404
|
+
var LootName$1 = /*#__PURE__*/styled.span.withConfig({
|
|
31405
|
+
displayName: "InformationCenterNPCTooltip__LootName",
|
|
31406
|
+
componentId: "sc-j2o39s-7"
|
|
31407
|
+
})(["color:", ";flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-left:4px;"], uiColors.white);
|
|
31408
|
+
var LootChance$1 = /*#__PURE__*/styled.span.withConfig({
|
|
31409
|
+
displayName: "InformationCenterNPCTooltip__LootChance",
|
|
31410
|
+
componentId: "sc-j2o39s-8"
|
|
31411
|
+
})(["color:", ";font-size:0.45rem;text-transform:lowercase;opacity:0.8;"], uiColors.yellow);
|
|
31412
|
+
var MoreIndicator = /*#__PURE__*/styled.div.withConfig({
|
|
31413
|
+
displayName: "InformationCenterNPCTooltip__MoreIndicator",
|
|
31414
|
+
componentId: "sc-j2o39s-9"
|
|
31415
|
+
})(["color:", ";font-size:0.45rem;text-align:center;margin-top:2px;opacity:0.7;"], uiColors.yellow);
|
|
31416
|
+
var formatText = function formatText(text) {
|
|
31417
|
+
if (typeof text === 'number') {
|
|
31418
|
+
return text.toString();
|
|
31419
|
+
}
|
|
31420
|
+
return text.toString().replace(/([A-Z])/g, ' $1').trim().replace(/([A-Z]+)([A-Z][a-z])/g, '$1 $2').replace(/\s+/g, ' ');
|
|
31421
|
+
};
|
|
31422
|
+
var formatRarity = function formatRarity(rarity) {
|
|
31423
|
+
switch (rarity) {
|
|
31424
|
+
case 0.5:
|
|
31425
|
+
return 'Very Rare';
|
|
31426
|
+
case 1:
|
|
31427
|
+
return 'Rare';
|
|
31428
|
+
case 10:
|
|
31429
|
+
return 'Uncommon';
|
|
31430
|
+
case 15:
|
|
31431
|
+
return 'Semi Common';
|
|
31432
|
+
case 20:
|
|
31433
|
+
return 'Common';
|
|
31434
|
+
case 35:
|
|
31435
|
+
return 'Very Common';
|
|
31436
|
+
default:
|
|
31437
|
+
return 'Unknown';
|
|
31438
|
+
}
|
|
31439
|
+
};
|
|
31440
|
+
var InformationCenterNPCTooltip = function InformationCenterNPCTooltip(_ref) {
|
|
31441
|
+
var _npc$skills$strength, _npc$skills$dexterity, _npc$skills$resistanc;
|
|
31442
|
+
var npc = _ref.npc,
|
|
31443
|
+
itemsAtlasJSON = _ref.itemsAtlasJSON,
|
|
31444
|
+
itemsAtlasIMG = _ref.itemsAtlasIMG;
|
|
31445
|
+
return React.createElement(BaseTooltip, null, React.createElement(TooltipTitle$1, null, npc.name), React.createElement(StatsContainer, null, React.createElement(StatItem$1, null, "HP: ", npc.baseHealth), React.createElement(StatItem$1, null, "LVL: ", npc.skills.level), React.createElement(StatItem$1, null, "STR: ", ((_npc$skills$strength = npc.skills.strength) == null ? void 0 : _npc$skills$strength.level) || '-'), React.createElement(StatItem$1, null, "DEX: ", ((_npc$skills$dexterity = npc.skills.dexterity) == null ? void 0 : _npc$skills$dexterity.level) || '-'), React.createElement(StatItem$1, null, "RES: ", ((_npc$skills$resistanc = npc.skills.resistance) == null ? void 0 : _npc$skills$resistanc.level) || '-'), React.createElement(StatItem$1, null, "SPD: ", formatText(npc.speed))), npc.entityEffects && npc.entityEffects.length > 0 && React.createElement(Section, null, React.createElement(SectionTitle, null, "Effects"), React.createElement(EffectsList$1, null, npc.entityEffects.map(function (effect) {
|
|
31446
|
+
return React.createElement(EffectItem$1, {
|
|
31447
|
+
key: effect
|
|
31448
|
+
}, formatText(effect));
|
|
31449
|
+
}))), npc.areaSpells && npc.areaSpells.length > 0 && React.createElement(Section, null, React.createElement(SectionTitle, null, "Spells"), React.createElement(SpellList, null, npc.areaSpells.map(function (spell) {
|
|
31450
|
+
return React.createElement(SpellItem$1, {
|
|
31451
|
+
key: spell.spellKey
|
|
31452
|
+
}, formatText(spell.spellKey), React.createElement(SpellInfo, null, formatText(spell.power), ", ", spell.probability, "%"));
|
|
31453
|
+
}))), npc.loots && npc.loots.length > 0 && React.createElement(Section, null, React.createElement(SectionTitle, null, "Possible Loot"), React.createElement(LootList, null, npc.loots.slice(0, 4).map(function (loot) {
|
|
31454
|
+
return React.createElement(LootItem$1, {
|
|
31455
|
+
key: loot.itemBlueprintKey
|
|
31456
|
+
}, React.createElement(SpriteFromAtlas, {
|
|
31457
|
+
atlasIMG: itemsAtlasIMG,
|
|
31458
|
+
atlasJSON: itemsAtlasJSON,
|
|
31459
|
+
spriteKey: loot.itemBlueprintKey,
|
|
31460
|
+
imgScale: 1
|
|
31461
|
+
}), React.createElement(LootName$1, null, formatText(loot.itemBlueprintKey)), React.createElement(LootChance$1, null, formatRarity(loot.chance)));
|
|
31462
|
+
}), npc.loots.length > 4 && React.createElement(MoreIndicator, null, "..."))));
|
|
31463
|
+
};
|
|
31464
|
+
|
|
31465
|
+
var InformationCenterBestiarySection = function InformationCenterBestiarySection(_ref) {
|
|
31466
|
+
var bestiaryItems = _ref.bestiaryItems,
|
|
31467
|
+
itemsAtlasJSON = _ref.itemsAtlasJSON,
|
|
31468
|
+
itemsAtlasIMG = _ref.itemsAtlasIMG,
|
|
31469
|
+
entitiesAtlasJSON = _ref.entitiesAtlasJSON,
|
|
31470
|
+
entitiesAtlasIMG = _ref.entitiesAtlasIMG,
|
|
31471
|
+
initialSearchQuery = _ref.initialSearchQuery,
|
|
31472
|
+
tabId = _ref.tabId;
|
|
31473
|
+
var _useState = useState(initialSearchQuery),
|
|
31474
|
+
searchQuery = _useState[0],
|
|
31475
|
+
setSearchQuery = _useState[1];
|
|
31476
|
+
var _useState2 = useState(null),
|
|
31477
|
+
tooltipData = _useState2[0],
|
|
31478
|
+
setTooltipData = _useState2[1];
|
|
31479
|
+
var _useState3 = useState(null),
|
|
31480
|
+
selectedMonster = _useState3[0],
|
|
31481
|
+
setSelectedMonster = _useState3[1];
|
|
31482
|
+
var _useState4 = useState('ontouchstart' in window),
|
|
31483
|
+
isTouchDevice = _useState4[0];
|
|
31484
|
+
var handleMouseEnter = function handleMouseEnter(monster, event) {
|
|
31485
|
+
if (!isTouchDevice && !selectedMonster) {
|
|
31486
|
+
setTooltipData({
|
|
31487
|
+
npc: monster,
|
|
31488
|
+
position: {
|
|
31489
|
+
x: event.clientX,
|
|
31490
|
+
y: event.clientY
|
|
31491
|
+
}
|
|
31492
|
+
});
|
|
31493
|
+
}
|
|
31494
|
+
};
|
|
31495
|
+
var handleMouseLeave = function handleMouseLeave() {
|
|
31496
|
+
if (!isTouchDevice) {
|
|
31497
|
+
setTooltipData(null);
|
|
31498
|
+
}
|
|
31499
|
+
};
|
|
31500
|
+
var handleMouseMove = function handleMouseMove(event) {
|
|
31501
|
+
if (!isTouchDevice && tooltipData) {
|
|
31502
|
+
setTooltipData(_extends({}, tooltipData, {
|
|
31503
|
+
position: {
|
|
31504
|
+
x: event.clientX,
|
|
31505
|
+
y: event.clientY
|
|
31506
|
+
}
|
|
31507
|
+
}));
|
|
31508
|
+
}
|
|
31509
|
+
};
|
|
31510
|
+
var handleTouchStart = function handleTouchStart(monster, event) {
|
|
31511
|
+
if (isTouchDevice) {
|
|
31512
|
+
event.preventDefault();
|
|
31513
|
+
var touch = event.touches[0];
|
|
31514
|
+
if ((tooltipData == null ? void 0 : tooltipData.npc.id) === monster.id) {
|
|
31515
|
+
setTooltipData(null);
|
|
31516
|
+
} else {
|
|
31517
|
+
setTooltipData({
|
|
31518
|
+
npc: monster,
|
|
31519
|
+
position: {
|
|
31520
|
+
x: touch.clientX,
|
|
31521
|
+
y: touch.clientY
|
|
31522
|
+
}
|
|
31523
|
+
});
|
|
31524
|
+
}
|
|
31525
|
+
}
|
|
31526
|
+
};
|
|
31527
|
+
var handleMonsterClick = function handleMonsterClick(monster) {
|
|
31528
|
+
setSelectedMonster(monster);
|
|
31529
|
+
setTooltipData(null);
|
|
31530
|
+
};
|
|
31531
|
+
var renderItem = function renderItem(item) {
|
|
31532
|
+
return React.createElement(InformationCenterCell, {
|
|
31533
|
+
key: item.id,
|
|
31534
|
+
name: item.name,
|
|
31535
|
+
spriteKey: item.key,
|
|
31536
|
+
atlasJSON: entitiesAtlasJSON,
|
|
31537
|
+
atlasIMG: entitiesAtlasIMG,
|
|
31538
|
+
onClick: function onClick() {
|
|
31539
|
+
return handleMonsterClick(item);
|
|
31540
|
+
},
|
|
31541
|
+
onMouseEnter: function onMouseEnter(e) {
|
|
31542
|
+
return handleMouseEnter(item, e);
|
|
31543
|
+
},
|
|
31544
|
+
onMouseLeave: handleMouseLeave,
|
|
31545
|
+
onMouseMove: handleMouseMove,
|
|
31546
|
+
onTouchStart: function onTouchStart(e) {
|
|
31547
|
+
return handleTouchStart(item, e);
|
|
31548
|
+
}
|
|
31549
|
+
});
|
|
31550
|
+
};
|
|
31551
|
+
var filteredItems = bestiaryItems.filter(function (item) {
|
|
31552
|
+
return item.name.toLowerCase().includes(searchQuery.toLowerCase());
|
|
31553
|
+
});
|
|
31554
|
+
return React.createElement(React.Fragment, null, React.createElement(PaginatedContent, {
|
|
31555
|
+
items: filteredItems,
|
|
31556
|
+
renderItem: renderItem,
|
|
31557
|
+
emptyMessage: "No monsters found",
|
|
31558
|
+
tabId: tabId,
|
|
31559
|
+
layout: "grid",
|
|
31560
|
+
searchOptions: {
|
|
31561
|
+
value: searchQuery,
|
|
31562
|
+
onChange: setSearchQuery,
|
|
31563
|
+
placeholder: 'Search monsters...'
|
|
31564
|
+
},
|
|
31565
|
+
itemHeight: "180px"
|
|
31566
|
+
}), tooltipData && React.createElement(Portal, null, React.createElement(TooltipWrapper, {
|
|
31567
|
+
style: {
|
|
31568
|
+
position: 'fixed',
|
|
31569
|
+
left: tooltipData.position.x + 10,
|
|
31570
|
+
top: tooltipData.position.y + 10
|
|
31571
|
+
}
|
|
31572
|
+
}, React.createElement(InformationCenterNPCTooltip, {
|
|
31573
|
+
npc: tooltipData.npc,
|
|
31574
|
+
itemsAtlasJSON: itemsAtlasJSON,
|
|
31575
|
+
itemsAtlasIMG: itemsAtlasIMG
|
|
31576
|
+
}))), selectedMonster && React.createElement(InformationCenterNPCDetails, {
|
|
31577
|
+
npc: selectedMonster,
|
|
31578
|
+
itemsAtlasJSON: itemsAtlasJSON,
|
|
31579
|
+
itemsAtlasIMG: itemsAtlasIMG,
|
|
31580
|
+
entitiesAtlasJSON: entitiesAtlasJSON,
|
|
31581
|
+
entitiesAtlasIMG: entitiesAtlasIMG,
|
|
31582
|
+
onBack: function onBack() {
|
|
31583
|
+
return setSelectedMonster(null);
|
|
31584
|
+
}
|
|
31585
|
+
}));
|
|
31586
|
+
};
|
|
31587
|
+
var TooltipWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
31588
|
+
displayName: "InformationCenterBestiarySection__TooltipWrapper",
|
|
31589
|
+
componentId: "sc-e3h0p2-0"
|
|
31590
|
+
})(["position:fixed;z-index:1000;pointer-events:none;width:300px;"]);
|
|
31591
|
+
|
|
31592
|
+
var InformationCenterFAQSection = function InformationCenterFAQSection(_ref) {
|
|
31593
|
+
var faqItems = _ref.faqItems,
|
|
31594
|
+
initialSearchQuery = _ref.initialSearchQuery,
|
|
31595
|
+
tabId = _ref.tabId;
|
|
31596
|
+
var _useState = useState(initialSearchQuery),
|
|
31597
|
+
searchQuery = _useState[0],
|
|
31598
|
+
setSearchQuery = _useState[1];
|
|
31599
|
+
useEffect(function () {
|
|
31600
|
+
setSearchQuery(initialSearchQuery);
|
|
31601
|
+
}, [initialSearchQuery]);
|
|
31602
|
+
var filteredFaqs = useMemo(function () {
|
|
31603
|
+
if (!searchQuery) return faqItems;
|
|
31604
|
+
return faqItems.filter(function (faq) {
|
|
31605
|
+
return faq.question.toLowerCase().includes(searchQuery.toLowerCase()) || faq.answer.toLowerCase().includes(searchQuery.toLowerCase());
|
|
31606
|
+
});
|
|
31607
|
+
}, [searchQuery, faqItems]);
|
|
31608
|
+
var renderItem = function renderItem(item) {
|
|
31609
|
+
return React.createElement(StyledCollapsible$1, {
|
|
31610
|
+
title: item.question
|
|
31611
|
+
}, React.createElement(Answer$1, null, item.answer));
|
|
31612
|
+
};
|
|
31613
|
+
return React.createElement(Container$q, null, React.createElement(SearchHeader, {
|
|
31614
|
+
searchOptions: {
|
|
31615
|
+
value: searchQuery,
|
|
31616
|
+
onChange: setSearchQuery,
|
|
31617
|
+
placeholder: 'Search FAQs...'
|
|
31618
|
+
}
|
|
31619
|
+
}), React.createElement(PaginatedContent, {
|
|
31620
|
+
items: filteredFaqs,
|
|
31621
|
+
renderItem: renderItem,
|
|
31622
|
+
emptyMessage: "No FAQ items found",
|
|
31623
|
+
tabId: tabId,
|
|
31624
|
+
layout: "list",
|
|
31625
|
+
itemsPerPage: 10
|
|
31626
|
+
}));
|
|
31627
|
+
};
|
|
31628
|
+
var Container$q = /*#__PURE__*/styled.div.withConfig({
|
|
31629
|
+
displayName: "InformationCenterFaqSection__Container",
|
|
31630
|
+
componentId: "sc-ofmaa9-0"
|
|
31631
|
+
})(["display:flex;flex-direction:column;gap:1rem;width:100%;"]);
|
|
31632
|
+
var StyledCollapsible$1 = /*#__PURE__*/styled(Collapsible).withConfig({
|
|
31633
|
+
displayName: "InformationCenterFaqSection__StyledCollapsible",
|
|
31634
|
+
componentId: "sc-ofmaa9-1"
|
|
31635
|
+
})(["margin-bottom:0.5rem;&:last-child{margin-bottom:0;}"]);
|
|
31636
|
+
var Answer$1 = /*#__PURE__*/styled.p.withConfig({
|
|
31637
|
+
displayName: "InformationCenterFaqSection__Answer",
|
|
31638
|
+
componentId: "sc-ofmaa9-2"
|
|
31639
|
+
})(["font-size:0.9rem;color:#ffffff;margin:0;line-height:1.5;"]);
|
|
31640
|
+
|
|
31641
|
+
var InformationCenterItemDetails = function InformationCenterItemDetails(_ref) {
|
|
31642
|
+
var item = _ref.item,
|
|
31643
|
+
itemsAtlasJSON = _ref.itemsAtlasJSON,
|
|
31644
|
+
itemsAtlasIMG = _ref.itemsAtlasIMG,
|
|
31645
|
+
droppedBy = _ref.droppedBy,
|
|
31646
|
+
onBack = _ref.onBack;
|
|
31647
|
+
var isMobile = isMobileOrTablet();
|
|
31648
|
+
var renderAllowedSlots = function renderAllowedSlots() {
|
|
31649
|
+
var _item$allowedEquipSlo;
|
|
31650
|
+
if (!((_item$allowedEquipSlo = item.allowedEquipSlotType) != null && _item$allowedEquipSlo.length)) return null;
|
|
31651
|
+
return React.createElement(InfoItem$1, null, React.createElement(Label$1, null, "Equip Slots:"), React.createElement(Value$1, null, item.allowedEquipSlotType.join(', ')));
|
|
31652
|
+
};
|
|
31653
|
+
var renderRequirements = function renderRequirements() {
|
|
31654
|
+
if (!item.minRequirements) return null;
|
|
31655
|
+
return React.createElement(StyledCollapsible$2, {
|
|
31656
|
+
title: "Requirements",
|
|
31657
|
+
defaultOpen: !isMobile
|
|
31658
|
+
}, React.createElement(RequirementsGrid, null, item.minRequirements.level && React.createElement(RequirementItem, null, React.createElement(Label$1, null, "Level:"), React.createElement(Value$1, null, item.minRequirements.level)), item.minRequirements.skill && React.createElement(RequirementItem, null, React.createElement(Label$1, null, item.minRequirements.skill.name, ":"), React.createElement(Value$1, null, item.minRequirements.skill.level))));
|
|
31659
|
+
};
|
|
31660
|
+
return React.createElement(BaseInformationDetails, {
|
|
31661
|
+
name: item.name,
|
|
31662
|
+
spriteKey: item.texturePath,
|
|
31663
|
+
atlasJSON: itemsAtlasJSON,
|
|
31664
|
+
atlasIMG: itemsAtlasIMG,
|
|
31665
|
+
onBack: onBack
|
|
31666
|
+
}, React.createElement(InfoSection$1, null, React.createElement(InfoItem$1, null, React.createElement(Label$1, null, "Type:"), React.createElement(Value$1, null, item.type)), React.createElement(InfoItem$1, null, React.createElement(Label$1, null, "Subtype:"), React.createElement(Value$1, null, item.subType)), React.createElement(InfoItem$1, null, React.createElement(Label$1, null, "Tier:"), React.createElement(Value$1, null, item.tier)), React.createElement(InfoItem$1, null, React.createElement(Label$1, null, "Rarity:"), React.createElement(Value$1, null, item.rarity)), renderAllowedSlots()), React.createElement(StyledCollapsible$2, {
|
|
31667
|
+
title: "Description",
|
|
31668
|
+
defaultOpen: !isMobile
|
|
31669
|
+
}, React.createElement(Description$2, null, item.description || 'No description available.')), React.createElement(StyledCollapsible$2, {
|
|
31670
|
+
title: "Stats",
|
|
31671
|
+
defaultOpen: !isMobile
|
|
31672
|
+
}, React.createElement(StatGrid$1, null, React.createElement(StatItem$2, null, "Weight: ", item.weight), React.createElement(StatItem$2, null, "Stack Size: ", item.maxStackSize), item.rangeType && React.createElement(StatItem$2, null, "Range Type: ", item.rangeType), item.basePrice > 0 && React.createElement(StatItem$2, null, "Base Price: ", item.basePrice))), renderRequirements(), item.entityEffects && item.entityEffects.length > 0 && React.createElement(StyledCollapsible$2, {
|
|
31673
|
+
title: "Effects",
|
|
31674
|
+
defaultOpen: !isMobile
|
|
31675
|
+
}, React.createElement(EffectsList$2, null, item.entityEffects.map(function (effect, index) {
|
|
31676
|
+
return React.createElement(EffectItem$2, {
|
|
31677
|
+
key: index
|
|
31678
|
+
}, effect, item.entityEffectChance && React.createElement(EffectChance, null, "(", item.entityEffectChance, "%)"));
|
|
31679
|
+
})), item.usableEffectDescription && React.createElement(EffectDescription, null, item.usableEffectDescription)), item.equippedBuff && item.equippedBuff.length > 0 && React.createElement(StyledCollapsible$2, {
|
|
31680
|
+
title: "Equipped Buffs",
|
|
31681
|
+
defaultOpen: !isMobile
|
|
31682
|
+
}, React.createElement(BuffsList, null, item.equippedBuff.map(function (buff, index) {
|
|
31683
|
+
return React.createElement(BuffItem, {
|
|
31684
|
+
key: index
|
|
31685
|
+
}, React.createElement(BuffName, null, buff.trait), React.createElement(BuffValue, null, "+", buff.buffPercentage, "%"));
|
|
31686
|
+
})), item.equippedBuffDescription && React.createElement(BuffDescription, null, item.equippedBuffDescription)), droppedBy.length > 0 && React.createElement(StyledCollapsible$2, {
|
|
31687
|
+
title: "Dropped By",
|
|
31688
|
+
defaultOpen: !isMobile
|
|
31689
|
+
}, React.createElement(DropList, null, droppedBy.map(function (npc) {
|
|
31690
|
+
var loot = npc.loots.find(function (l) {
|
|
31691
|
+
return l.itemBlueprintKey === item.key;
|
|
31692
|
+
});
|
|
31693
|
+
return React.createElement(DropItem, {
|
|
31694
|
+
key: npc.id
|
|
31695
|
+
}, React.createElement(NPCName, null, npc.name), React.createElement(DropRate, null, loot == null ? void 0 : loot.chance, "%"));
|
|
31696
|
+
}))));
|
|
31697
|
+
};
|
|
31698
|
+
var InfoSection$1 = /*#__PURE__*/styled.div.withConfig({
|
|
31699
|
+
displayName: "InformationCenterItemDetails__InfoSection",
|
|
31700
|
+
componentId: "sc-zwf6pb-0"
|
|
31701
|
+
})(["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;"]);
|
|
31702
|
+
var InfoItem$1 = /*#__PURE__*/styled.div.withConfig({
|
|
31703
|
+
displayName: "InformationCenterItemDetails__InfoItem",
|
|
31704
|
+
componentId: "sc-zwf6pb-1"
|
|
31705
|
+
})(["display:flex;align-items:center;gap:8px;"]);
|
|
31706
|
+
var Label$1 = /*#__PURE__*/styled.span.withConfig({
|
|
31707
|
+
displayName: "InformationCenterItemDetails__Label",
|
|
31708
|
+
componentId: "sc-zwf6pb-2"
|
|
31709
|
+
})(["color:", ";font-size:0.5rem;opacity:0.8;"], uiColors.yellow);
|
|
31710
|
+
var Value$1 = /*#__PURE__*/styled.span.withConfig({
|
|
31711
|
+
displayName: "InformationCenterItemDetails__Value",
|
|
31712
|
+
componentId: "sc-zwf6pb-3"
|
|
31713
|
+
})(["color:", ";font-size:0.5rem;"], uiColors.white);
|
|
31714
|
+
var StyledCollapsible$2 = /*#__PURE__*/styled(Collapsible).withConfig({
|
|
31715
|
+
displayName: "InformationCenterItemDetails__StyledCollapsible",
|
|
31716
|
+
componentId: "sc-zwf6pb-4"
|
|
31717
|
+
})(["background:rgba(255,255,255,0.05);border-radius:4px;overflow:hidden;"]);
|
|
31718
|
+
var Description$2 = /*#__PURE__*/styled.p.withConfig({
|
|
31719
|
+
displayName: "InformationCenterItemDetails__Description",
|
|
31720
|
+
componentId: "sc-zwf6pb-5"
|
|
31721
|
+
})(["color:", ";font-size:0.5rem;margin:0;padding:12px;line-height:1.5;"], uiColors.white);
|
|
31722
|
+
var StatGrid$1 = /*#__PURE__*/styled.div.withConfig({
|
|
31723
|
+
displayName: "InformationCenterItemDetails__StatGrid",
|
|
31724
|
+
componentId: "sc-zwf6pb-6"
|
|
31725
|
+
})(["display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px;padding:12px;"]);
|
|
31726
|
+
var StatItem$2 = /*#__PURE__*/styled.div.withConfig({
|
|
31727
|
+
displayName: "InformationCenterItemDetails__StatItem",
|
|
31728
|
+
componentId: "sc-zwf6pb-7"
|
|
31729
|
+
})(["color:", ";font-size:0.5rem;background:rgba(255,255,255,0.05);padding:8px;border-radius:4px;"], uiColors.white);
|
|
31730
|
+
var EffectsList$2 = /*#__PURE__*/styled.div.withConfig({
|
|
31731
|
+
displayName: "InformationCenterItemDetails__EffectsList",
|
|
31732
|
+
componentId: "sc-zwf6pb-8"
|
|
31733
|
+
})(["display:flex;flex-wrap:wrap;gap:8px;padding:12px;"]);
|
|
31734
|
+
var EffectItem$2 = /*#__PURE__*/styled.div.withConfig({
|
|
31735
|
+
displayName: "InformationCenterItemDetails__EffectItem",
|
|
31736
|
+
componentId: "sc-zwf6pb-9"
|
|
31737
|
+
})(["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);
|
|
31738
|
+
var EffectChance = /*#__PURE__*/styled.span.withConfig({
|
|
31739
|
+
displayName: "InformationCenterItemDetails__EffectChance",
|
|
31740
|
+
componentId: "sc-zwf6pb-10"
|
|
31741
|
+
})(["color:", ";opacity:0.8;"], uiColors.yellow);
|
|
31742
|
+
var BuffsList = /*#__PURE__*/styled.div.withConfig({
|
|
31743
|
+
displayName: "InformationCenterItemDetails__BuffsList",
|
|
31744
|
+
componentId: "sc-zwf6pb-11"
|
|
31745
|
+
})(["display:flex;flex-direction:column;gap:8px;padding:12px;"]);
|
|
31746
|
+
var BuffItem = /*#__PURE__*/styled.div.withConfig({
|
|
31747
|
+
displayName: "InformationCenterItemDetails__BuffItem",
|
|
31748
|
+
componentId: "sc-zwf6pb-12"
|
|
31749
|
+
})(["display:flex;justify-content:space-between;align-items:center;background:rgba(255,255,255,0.05);padding:8px;border-radius:4px;"]);
|
|
31750
|
+
var BuffName = /*#__PURE__*/styled.span.withConfig({
|
|
31751
|
+
displayName: "InformationCenterItemDetails__BuffName",
|
|
31752
|
+
componentId: "sc-zwf6pb-13"
|
|
31753
|
+
})(["color:", ";font-size:0.5rem;"], uiColors.white);
|
|
31754
|
+
var BuffValue = /*#__PURE__*/styled.span.withConfig({
|
|
31755
|
+
displayName: "InformationCenterItemDetails__BuffValue",
|
|
31756
|
+
componentId: "sc-zwf6pb-14"
|
|
31757
|
+
})(["color:", ";font-size:0.5rem;"], uiColors.yellow);
|
|
31758
|
+
var BuffDescription = /*#__PURE__*/styled.p.withConfig({
|
|
31759
|
+
displayName: "InformationCenterItemDetails__BuffDescription",
|
|
31760
|
+
componentId: "sc-zwf6pb-15"
|
|
31761
|
+
})(["color:", ";font-size:0.45rem;margin:0;padding:0 12px 12px;font-style:italic;"], uiColors.lightGray);
|
|
31762
|
+
var DropList = /*#__PURE__*/styled.div.withConfig({
|
|
31763
|
+
displayName: "InformationCenterItemDetails__DropList",
|
|
31764
|
+
componentId: "sc-zwf6pb-16"
|
|
31765
|
+
})(["display:flex;flex-direction:column;gap:0.5rem;padding:12px;"]);
|
|
31766
|
+
var DropItem = /*#__PURE__*/styled.div.withConfig({
|
|
31767
|
+
displayName: "InformationCenterItemDetails__DropItem",
|
|
31768
|
+
componentId: "sc-zwf6pb-17"
|
|
31769
|
+
})(["display:flex;justify-content:space-between;align-items:center;padding:0.5rem;background:rgba(255,255,255,0.05);border-radius:4px;"]);
|
|
31770
|
+
var NPCName = /*#__PURE__*/styled.span.withConfig({
|
|
31771
|
+
displayName: "InformationCenterItemDetails__NPCName",
|
|
31772
|
+
componentId: "sc-zwf6pb-18"
|
|
31773
|
+
})(["color:", ";font-size:0.5rem;"], uiColors.white);
|
|
31774
|
+
var DropRate = /*#__PURE__*/styled.span.withConfig({
|
|
31775
|
+
displayName: "InformationCenterItemDetails__DropRate",
|
|
31776
|
+
componentId: "sc-zwf6pb-19"
|
|
31777
|
+
})(["color:", ";font-size:0.5rem;"], uiColors.yellow);
|
|
31778
|
+
var RequirementsGrid = /*#__PURE__*/styled.div.withConfig({
|
|
31779
|
+
displayName: "InformationCenterItemDetails__RequirementsGrid",
|
|
31780
|
+
componentId: "sc-zwf6pb-20"
|
|
31781
|
+
})(["display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px;padding:12px;"]);
|
|
31782
|
+
var RequirementItem = /*#__PURE__*/styled.div.withConfig({
|
|
31783
|
+
displayName: "InformationCenterItemDetails__RequirementItem",
|
|
31784
|
+
componentId: "sc-zwf6pb-21"
|
|
31785
|
+
})(["display:flex;align-items:center;gap:8px;background:rgba(255,255,255,0.05);padding:8px;border-radius:4px;"]);
|
|
31786
|
+
var EffectDescription = /*#__PURE__*/styled.p.withConfig({
|
|
31787
|
+
displayName: "InformationCenterItemDetails__EffectDescription",
|
|
31788
|
+
componentId: "sc-zwf6pb-22"
|
|
31789
|
+
})(["color:", ";font-size:0.45rem;margin:8px 0 0;padding:0 12px;font-style:italic;"], uiColors.lightGray);
|
|
31790
|
+
|
|
31791
|
+
var ItemHeader$1 = /*#__PURE__*/styled.div.withConfig({
|
|
31792
|
+
displayName: "InformationCenterItemTooltip__ItemHeader",
|
|
31793
|
+
componentId: "sc-1ecf9mj-0"
|
|
31794
|
+
})(["display:flex;align-items:center;gap:8px;"]);
|
|
31795
|
+
var Description$3 = /*#__PURE__*/styled.div.withConfig({
|
|
31796
|
+
displayName: "InformationCenterItemTooltip__Description",
|
|
31797
|
+
componentId: "sc-1ecf9mj-1"
|
|
31798
|
+
})(["color:", ";font-size:0.5rem;line-height:1.4;margin-top:8px;opacity:0.8;"], uiColors.white);
|
|
31799
|
+
var RarityText = /*#__PURE__*/styled.span.withConfig({
|
|
31800
|
+
displayName: "InformationCenterItemTooltip__RarityText",
|
|
31801
|
+
componentId: "sc-1ecf9mj-2"
|
|
31802
|
+
})(["color:", ";font-size:0.5rem;"], function (props) {
|
|
31803
|
+
switch (props.rarity.toLowerCase()) {
|
|
31804
|
+
case 'legendary':
|
|
31805
|
+
return '#ff8c00';
|
|
31806
|
+
case 'rare':
|
|
31807
|
+
return '#0070dd';
|
|
31808
|
+
case 'uncommon':
|
|
31809
|
+
return '#1eff00';
|
|
31810
|
+
default:
|
|
31811
|
+
return '#ffffff';
|
|
31812
|
+
}
|
|
31813
|
+
});
|
|
31814
|
+
var InformationCenterItemTooltip = function InformationCenterItemTooltip(_ref) {
|
|
31815
|
+
var item = _ref.item;
|
|
31816
|
+
return React.createElement(BaseTooltip, null, React.createElement(ItemHeader$1, null, React.createElement(TooltipTitle$1, null, item.name)), React.createElement(Description$3, null, item.description), React.createElement(Section, null, React.createElement(SectionTitle, null, "Details"), React.createElement(StatsContainer, null, React.createElement(StatItem$1, null, "Type: ", item.type), React.createElement(StatItem$1, null, "Weight: ", item.weight), item.attack !== undefined && React.createElement(StatItem$1, null, "Attack: ", item.attack), item.defense !== undefined && React.createElement(StatItem$1, null, "Defense: ", item.defense), item.tier !== undefined && React.createElement(StatItem$1, null, "Tier: ", item.tier), item.rangeType && React.createElement(StatItem$1, null, "Range: ", item.rangeType))), React.createElement(Section, null, React.createElement(SectionTitle, null, "Market"), React.createElement(StatsContainer, null, React.createElement(StatItem$1, null, "Price: ", item.basePrice), item.rarity && React.createElement(StatItem$1, null, "Rarity:", ' ', React.createElement(RarityText, {
|
|
31817
|
+
rarity: item.rarity
|
|
31818
|
+
}, item.rarity)))));
|
|
31819
|
+
};
|
|
31820
|
+
|
|
31821
|
+
var TOOLTIP_OFFSET = 20;
|
|
31822
|
+
var InformationCenterItemsSection = function InformationCenterItemsSection(_ref) {
|
|
31823
|
+
var items = _ref.items,
|
|
31824
|
+
bestiaryItems = _ref.bestiaryItems,
|
|
31825
|
+
itemsAtlasJSON = _ref.itemsAtlasJSON,
|
|
31826
|
+
itemsAtlasIMG = _ref.itemsAtlasIMG,
|
|
31827
|
+
initialSearchQuery = _ref.initialSearchQuery,
|
|
31828
|
+
tabId = _ref.tabId;
|
|
31829
|
+
var _useState = useState(initialSearchQuery),
|
|
31830
|
+
searchQuery = _useState[0],
|
|
31831
|
+
setSearchQuery = _useState[1];
|
|
31832
|
+
var _useState2 = useState('all'),
|
|
31833
|
+
selectedItemCategory = _useState2[0],
|
|
31834
|
+
setSelectedItemCategory = _useState2[1];
|
|
31835
|
+
var _useState3 = useState(null),
|
|
31836
|
+
hoveredItem = _useState3[0],
|
|
31837
|
+
setHoveredItem = _useState3[1];
|
|
31838
|
+
var _useState4 = useState({
|
|
31839
|
+
x: 0,
|
|
31840
|
+
y: 0
|
|
31841
|
+
}),
|
|
31842
|
+
tooltipPosition = _useState4[0],
|
|
31843
|
+
setTooltipPosition = _useState4[1];
|
|
31844
|
+
var _useState5 = useState(null),
|
|
31845
|
+
selectedItem = _useState5[0],
|
|
31846
|
+
setSelectedItem = _useState5[1];
|
|
31847
|
+
var itemCategoryOptions = [{
|
|
31848
|
+
id: 0,
|
|
31849
|
+
value: 'all',
|
|
31850
|
+
option: 'All Items'
|
|
31851
|
+
}, {
|
|
31852
|
+
id: 1,
|
|
31853
|
+
value: ItemType.Consumable,
|
|
31854
|
+
option: 'Consumables'
|
|
31855
|
+
}, {
|
|
31856
|
+
id: 2,
|
|
31857
|
+
value: ItemType.Weapon,
|
|
31858
|
+
option: 'Weapons'
|
|
31859
|
+
}, {
|
|
31860
|
+
id: 3,
|
|
31861
|
+
value: ItemType.Armor,
|
|
31862
|
+
option: 'Armor'
|
|
31863
|
+
}];
|
|
31864
|
+
var filteredItems = items.filter(function (item) {
|
|
31865
|
+
return (selectedItemCategory === 'all' || item.type === selectedItemCategory) && item.name.toLowerCase().includes(searchQuery.toLowerCase());
|
|
31866
|
+
});
|
|
31867
|
+
var getDroppedByNPCs = function getDroppedByNPCs(itemId, npcs) {
|
|
31868
|
+
return npcs.filter(function (npc) {
|
|
31869
|
+
var _npc$loots;
|
|
31870
|
+
return (_npc$loots = npc.loots) == null ? void 0 : _npc$loots.some(function (loot) {
|
|
31871
|
+
return loot.itemBlueprintKey === itemId;
|
|
31872
|
+
});
|
|
31873
|
+
}) || [];
|
|
31874
|
+
};
|
|
31875
|
+
var handleMouseEnter = function handleMouseEnter(e, item) {
|
|
31876
|
+
setTooltipPosition({
|
|
31877
|
+
x: e.clientX + TOOLTIP_OFFSET,
|
|
31878
|
+
y: e.clientY
|
|
31879
|
+
});
|
|
31880
|
+
setHoveredItem(item);
|
|
31881
|
+
};
|
|
31882
|
+
var handleMouseMove = function handleMouseMove(e) {
|
|
31883
|
+
if (hoveredItem) {
|
|
31884
|
+
setTooltipPosition({
|
|
31885
|
+
x: e.clientX + TOOLTIP_OFFSET,
|
|
31886
|
+
y: e.clientY
|
|
31887
|
+
});
|
|
31888
|
+
}
|
|
31889
|
+
};
|
|
31890
|
+
var handleMouseLeave = function handleMouseLeave() {
|
|
31891
|
+
setHoveredItem(null);
|
|
31892
|
+
};
|
|
31893
|
+
var handleTouchStart = function handleTouchStart(e, item) {
|
|
31894
|
+
var touch = e.touches[0];
|
|
31895
|
+
setTooltipPosition({
|
|
31896
|
+
x: touch.clientX + TOOLTIP_OFFSET,
|
|
31897
|
+
y: touch.clientY
|
|
31898
|
+
});
|
|
31899
|
+
setHoveredItem(item);
|
|
31900
|
+
};
|
|
31901
|
+
var handleItemClick = function handleItemClick(item) {
|
|
31902
|
+
setSelectedItem(item);
|
|
31903
|
+
setHoveredItem(null);
|
|
31904
|
+
};
|
|
31905
|
+
var renderItem = function renderItem(item) {
|
|
31906
|
+
return React.createElement(InformationCenterCell, {
|
|
31907
|
+
key: item.key,
|
|
31908
|
+
name: item.name,
|
|
31909
|
+
spriteKey: item.texturePath,
|
|
31910
|
+
atlasJSON: itemsAtlasJSON,
|
|
31911
|
+
atlasIMG: itemsAtlasIMG,
|
|
31912
|
+
onMouseEnter: function onMouseEnter(e) {
|
|
31913
|
+
return handleMouseEnter(e, item);
|
|
31914
|
+
},
|
|
31915
|
+
onMouseMove: handleMouseMove,
|
|
31916
|
+
onMouseLeave: handleMouseLeave,
|
|
31917
|
+
onTouchStart: function onTouchStart(e) {
|
|
31918
|
+
return handleTouchStart(e, item);
|
|
31919
|
+
},
|
|
31920
|
+
onClick: function onClick() {
|
|
31921
|
+
return handleItemClick(item);
|
|
31922
|
+
}
|
|
31923
|
+
});
|
|
31924
|
+
};
|
|
31925
|
+
return React.createElement(React.Fragment, null, React.createElement(PaginatedContent, {
|
|
31926
|
+
items: filteredItems,
|
|
31927
|
+
renderItem: renderItem,
|
|
31928
|
+
emptyMessage: "No items found",
|
|
31929
|
+
filterOptions: {
|
|
31930
|
+
options: itemCategoryOptions,
|
|
31931
|
+
selectedOption: selectedItemCategory,
|
|
31932
|
+
onOptionChange: setSelectedItemCategory
|
|
31933
|
+
},
|
|
31934
|
+
searchOptions: {
|
|
31935
|
+
value: searchQuery,
|
|
31936
|
+
onChange: setSearchQuery,
|
|
31937
|
+
placeholder: 'Search items...'
|
|
31938
|
+
},
|
|
31939
|
+
dependencies: [selectedItemCategory],
|
|
31940
|
+
tabId: tabId,
|
|
31941
|
+
layout: "grid",
|
|
31942
|
+
itemHeight: "180px"
|
|
31943
|
+
}), hoveredItem && React.createElement(TooltipWrapper$1, {
|
|
31944
|
+
style: {
|
|
31945
|
+
top: tooltipPosition.y,
|
|
31946
|
+
left: tooltipPosition.x
|
|
31947
|
+
}
|
|
31948
|
+
}, React.createElement(InformationCenterItemTooltip, {
|
|
31949
|
+
item: hoveredItem
|
|
31950
|
+
})), selectedItem && React.createElement(InformationCenterItemDetails, {
|
|
31951
|
+
item: selectedItem,
|
|
31952
|
+
itemsAtlasJSON: itemsAtlasJSON,
|
|
31953
|
+
itemsAtlasIMG: itemsAtlasIMG,
|
|
31954
|
+
droppedBy: getDroppedByNPCs(selectedItem.key, bestiaryItems),
|
|
31955
|
+
onBack: function onBack() {
|
|
31956
|
+
return setSelectedItem(null);
|
|
31957
|
+
}
|
|
31958
|
+
}));
|
|
31959
|
+
};
|
|
31960
|
+
var TooltipWrapper$1 = /*#__PURE__*/styled.div.withConfig({
|
|
31961
|
+
displayName: "InformationCenterItemsSection__TooltipWrapper",
|
|
31962
|
+
componentId: "sc-1wmpapt-0"
|
|
31963
|
+
})(["position:fixed;z-index:1000;pointer-events:none;transition:transform 0.1s ease;"]);
|
|
31964
|
+
|
|
31965
|
+
var InformationCenterTutorialsSection = function InformationCenterTutorialsSection(_ref) {
|
|
31966
|
+
var videoGuides = _ref.videoGuides,
|
|
31967
|
+
initialSearchQuery = _ref.initialSearchQuery,
|
|
31968
|
+
tabId = _ref.tabId;
|
|
31969
|
+
var _useState = useState(initialSearchQuery),
|
|
31970
|
+
searchQuery = _useState[0],
|
|
31971
|
+
setSearchQuery = _useState[1];
|
|
31972
|
+
var _useState2 = useState('all'),
|
|
31973
|
+
selectedCategory = _useState2[0],
|
|
31974
|
+
setSelectedCategory = _useState2[1];
|
|
31975
|
+
var categoryOptions = [{
|
|
31976
|
+
id: 0,
|
|
31977
|
+
value: 'all',
|
|
31978
|
+
option: 'All'
|
|
31979
|
+
}, {
|
|
31980
|
+
id: 1,
|
|
31981
|
+
value: 'Combat',
|
|
31982
|
+
option: 'Combat'
|
|
31983
|
+
}, {
|
|
31984
|
+
id: 2,
|
|
31985
|
+
value: 'Crafting',
|
|
31986
|
+
option: 'Crafting'
|
|
31987
|
+
}, {
|
|
31988
|
+
id: 3,
|
|
31989
|
+
value: 'Exploration',
|
|
31990
|
+
option: 'Exploration'
|
|
31991
|
+
}, {
|
|
31992
|
+
id: 4,
|
|
31993
|
+
value: 'General',
|
|
31994
|
+
option: 'General'
|
|
31995
|
+
}];
|
|
31996
|
+
var renderItem = function renderItem(guide) {
|
|
31997
|
+
return React.createElement(GuideItem, {
|
|
31998
|
+
key: guide.id
|
|
31999
|
+
}, React.createElement(GuideThumbnail, null, React.createElement("img", {
|
|
32000
|
+
src: guide.thumbnailUrl || '/placeholder-thumbnail.png',
|
|
32001
|
+
alt: guide.title
|
|
32002
|
+
})), React.createElement(GuideContent, null, React.createElement(GuideTitle, null, guide.title), React.createElement(GuideDescription, null, guide.description), React.createElement(GuideCategory, null, guide.category)));
|
|
32003
|
+
};
|
|
32004
|
+
var filteredGuides = videoGuides.filter(function (guide) {
|
|
32005
|
+
return (selectedCategory === 'all' || guide.category === selectedCategory) && (guide.title.toLowerCase().includes(searchQuery.toLowerCase()) || guide.description.toLowerCase().includes(searchQuery.toLowerCase()));
|
|
32006
|
+
});
|
|
32007
|
+
return React.createElement(PaginatedContent, {
|
|
32008
|
+
items: filteredGuides,
|
|
32009
|
+
renderItem: renderItem,
|
|
32010
|
+
emptyMessage: "No guides found",
|
|
32011
|
+
searchOptions: {
|
|
32012
|
+
value: searchQuery,
|
|
32013
|
+
onChange: setSearchQuery,
|
|
32014
|
+
placeholder: 'Search guides...'
|
|
32015
|
+
},
|
|
32016
|
+
filterOptions: {
|
|
32017
|
+
options: categoryOptions,
|
|
32018
|
+
selectedOption: selectedCategory,
|
|
32019
|
+
onOptionChange: setSelectedCategory
|
|
32020
|
+
},
|
|
32021
|
+
dependencies: [selectedCategory],
|
|
32022
|
+
tabId: tabId,
|
|
32023
|
+
layout: "grid",
|
|
32024
|
+
gridColumns: 3,
|
|
32025
|
+
itemsPerPage: 3,
|
|
32026
|
+
itemHeight: "400px"
|
|
32027
|
+
});
|
|
32028
|
+
};
|
|
32029
|
+
var GuideItem = /*#__PURE__*/styled.div.withConfig({
|
|
32030
|
+
displayName: "InformationCenterTutorialsSection__GuideItem",
|
|
32031
|
+
componentId: "sc-1gk05vk-0"
|
|
32032
|
+
})(["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);
|
|
32033
|
+
var GuideThumbnail = /*#__PURE__*/styled.div.withConfig({
|
|
32034
|
+
displayName: "InformationCenterTutorialsSection__GuideThumbnail",
|
|
32035
|
+
componentId: "sc-1gk05vk-1"
|
|
32036
|
+
})(["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;"]);
|
|
32037
|
+
var GuideContent = /*#__PURE__*/styled.div.withConfig({
|
|
32038
|
+
displayName: "InformationCenterTutorialsSection__GuideContent",
|
|
32039
|
+
componentId: "sc-1gk05vk-2"
|
|
32040
|
+
})(["padding:12px;"]);
|
|
32041
|
+
var GuideTitle = /*#__PURE__*/styled.h3.withConfig({
|
|
32042
|
+
displayName: "InformationCenterTutorialsSection__GuideTitle",
|
|
32043
|
+
componentId: "sc-1gk05vk-3"
|
|
32044
|
+
})(["margin:0;font-size:0.6rem;color:", ";font-family:'Press Start 2P',cursive;margin-bottom:8px;"], uiColors.yellow);
|
|
32045
|
+
var GuideDescription = /*#__PURE__*/styled.p.withConfig({
|
|
32046
|
+
displayName: "InformationCenterTutorialsSection__GuideDescription",
|
|
32047
|
+
componentId: "sc-1gk05vk-4"
|
|
32048
|
+
})(["margin:0;font-size:0.55rem;color:", ";font-family:'Press Start 2P',cursive;margin-bottom:8px;line-height:1.4;"], uiColors.lightGray);
|
|
32049
|
+
var GuideCategory = /*#__PURE__*/styled.span.withConfig({
|
|
32050
|
+
displayName: "InformationCenterTutorialsSection__GuideCategory",
|
|
32051
|
+
componentId: "sc-1gk05vk-5"
|
|
32052
|
+
})(["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);
|
|
32053
|
+
|
|
32054
|
+
var InformationCenter = function InformationCenter(_ref) {
|
|
32055
|
+
var itemsAtlasJSON = _ref.itemsAtlasJSON,
|
|
32056
|
+
itemsAtlasIMG = _ref.itemsAtlasIMG,
|
|
32057
|
+
entitiesAtlasJSON = _ref.entitiesAtlasJSON,
|
|
32058
|
+
entitiesAtlasIMG = _ref.entitiesAtlasIMG,
|
|
32059
|
+
_ref$faqItems = _ref.faqItems,
|
|
32060
|
+
faqItems = _ref$faqItems === void 0 ? [] : _ref$faqItems,
|
|
32061
|
+
_ref$bestiaryItems = _ref.bestiaryItems,
|
|
32062
|
+
bestiaryItems = _ref$bestiaryItems === void 0 ? [] : _ref$bestiaryItems,
|
|
32063
|
+
_ref$videoGuides = _ref.videoGuides,
|
|
32064
|
+
videoGuides = _ref$videoGuides === void 0 ? [] : _ref$videoGuides,
|
|
32065
|
+
_ref$items = _ref.items,
|
|
32066
|
+
items = _ref$items === void 0 ? [] : _ref$items,
|
|
32067
|
+
_ref$loading = _ref.loading,
|
|
32068
|
+
loading = _ref$loading === void 0 ? false : _ref$loading,
|
|
32069
|
+
error = _ref.error,
|
|
32070
|
+
_ref$initialSearchQue = _ref.initialSearchQuery,
|
|
32071
|
+
initialSearchQuery = _ref$initialSearchQue === void 0 ? '' : _ref$initialSearchQue;
|
|
32072
|
+
var _useState = useState('bestiary'),
|
|
32073
|
+
activeTab = _useState[0],
|
|
32074
|
+
setActiveTab = _useState[1];
|
|
32075
|
+
var _useState2 = useState(null),
|
|
32076
|
+
selectedItem = _useState2[0],
|
|
32077
|
+
setSelectedItem = _useState2[1];
|
|
32078
|
+
if (loading) {
|
|
32079
|
+
return React.createElement(LoadingMessage, null, "Loading...");
|
|
32080
|
+
}
|
|
32081
|
+
if (error) {
|
|
32082
|
+
return React.createElement(ErrorMessage, null, error);
|
|
32083
|
+
}
|
|
32084
|
+
var tabs = [{
|
|
32085
|
+
id: 'bestiary',
|
|
32086
|
+
title: 'Bestiary',
|
|
32087
|
+
content: React.createElement(InformationCenterBestiarySection, {
|
|
32088
|
+
bestiaryItems: bestiaryItems,
|
|
32089
|
+
itemsAtlasJSON: itemsAtlasJSON,
|
|
32090
|
+
itemsAtlasIMG: itemsAtlasIMG,
|
|
32091
|
+
entitiesAtlasJSON: entitiesAtlasJSON,
|
|
32092
|
+
entitiesAtlasIMG: entitiesAtlasIMG,
|
|
32093
|
+
initialSearchQuery: initialSearchQuery,
|
|
32094
|
+
tabId: "bestiary"
|
|
32095
|
+
})
|
|
32096
|
+
}, {
|
|
32097
|
+
id: 'items',
|
|
32098
|
+
title: 'Items',
|
|
32099
|
+
content: React.createElement(InformationCenterItemsSection, {
|
|
32100
|
+
items: items,
|
|
32101
|
+
bestiaryItems: bestiaryItems,
|
|
32102
|
+
itemsAtlasJSON: itemsAtlasJSON,
|
|
32103
|
+
itemsAtlasIMG: itemsAtlasIMG,
|
|
32104
|
+
initialSearchQuery: initialSearchQuery,
|
|
32105
|
+
tabId: "items"
|
|
32106
|
+
})
|
|
32107
|
+
}, {
|
|
32108
|
+
id: 'faq',
|
|
32109
|
+
title: 'FAQ',
|
|
32110
|
+
content: React.createElement(InformationCenterFAQSection, {
|
|
32111
|
+
faqItems: faqItems,
|
|
32112
|
+
initialSearchQuery: initialSearchQuery,
|
|
32113
|
+
tabId: "faq"
|
|
32114
|
+
})
|
|
32115
|
+
}, {
|
|
32116
|
+
id: 'tutorials',
|
|
32117
|
+
title: 'Tutorials',
|
|
32118
|
+
content: React.createElement(InformationCenterTutorialsSection, {
|
|
32119
|
+
videoGuides: videoGuides,
|
|
32120
|
+
initialSearchQuery: initialSearchQuery,
|
|
32121
|
+
tabId: "tutorials"
|
|
32122
|
+
})
|
|
32123
|
+
}];
|
|
32124
|
+
return React.createElement(Container$r, null, React.createElement(InternalTabs, {
|
|
32125
|
+
tabs: tabs,
|
|
32126
|
+
activeTextColor: "#000000",
|
|
32127
|
+
activeTab: activeTab,
|
|
32128
|
+
onTabChange: setActiveTab,
|
|
32129
|
+
activeColor: "#fef08a",
|
|
32130
|
+
inactiveColor: "#6b7280",
|
|
32131
|
+
borderColor: "#f59e0b",
|
|
32132
|
+
hoverColor: "#fef3c7"
|
|
32133
|
+
}), selectedItem && React.createElement(InformationCenterItemDetails, {
|
|
32134
|
+
item: selectedItem,
|
|
32135
|
+
itemsAtlasJSON: itemsAtlasJSON,
|
|
32136
|
+
itemsAtlasIMG: itemsAtlasIMG,
|
|
32137
|
+
droppedBy: bestiaryItems.filter(function (npc) {
|
|
32138
|
+
var _npc$loots;
|
|
32139
|
+
return (_npc$loots = npc.loots) == null ? void 0 : _npc$loots.some(function (loot) {
|
|
32140
|
+
return loot.itemBlueprintKey === selectedItem.key;
|
|
32141
|
+
});
|
|
32142
|
+
}),
|
|
32143
|
+
onBack: function onBack() {
|
|
32144
|
+
return setSelectedItem(null);
|
|
32145
|
+
}
|
|
32146
|
+
}));
|
|
32147
|
+
};
|
|
32148
|
+
var Container$r = /*#__PURE__*/styled.div.withConfig({
|
|
32149
|
+
displayName: "InformationCenter__Container",
|
|
32150
|
+
componentId: "sc-1ttl62e-0"
|
|
32151
|
+
})(["width:100%;max-width:800px;margin:0 auto;padding:1rem;"]);
|
|
32152
|
+
var LoadingMessage = /*#__PURE__*/styled.div.withConfig({
|
|
32153
|
+
displayName: "InformationCenter__LoadingMessage",
|
|
32154
|
+
componentId: "sc-1ttl62e-1"
|
|
32155
|
+
})(["text-align:center;color:#ffffff;padding:2rem;"]);
|
|
32156
|
+
var ErrorMessage = /*#__PURE__*/styled.div.withConfig({
|
|
32157
|
+
displayName: "InformationCenter__ErrorMessage",
|
|
32158
|
+
componentId: "sc-1ttl62e-2"
|
|
32159
|
+
})(["text-align:center;color:#ef4444;padding:2rem;"]);
|
|
32160
|
+
|
|
30777
32161
|
var SlotsContainer = function SlotsContainer(_ref) {
|
|
30778
32162
|
var children = _ref.children,
|
|
30779
32163
|
title = _ref.title,
|
|
@@ -30932,7 +32316,7 @@ var ShortcutsSetter = function ShortcutsSetter(_ref) {
|
|
|
30932
32316
|
}
|
|
30933
32317
|
return null;
|
|
30934
32318
|
};
|
|
30935
|
-
return React.createElement(Container$
|
|
32319
|
+
return React.createElement(Container$s, null, React.createElement("p", null, "Shortcuts:"), React.createElement(List, {
|
|
30936
32320
|
id: "shortcuts_list"
|
|
30937
32321
|
}, Array.from({
|
|
30938
32322
|
length: 12
|
|
@@ -30950,7 +32334,7 @@ var ShortcutsSetter = function ShortcutsSetter(_ref) {
|
|
|
30950
32334
|
}, getContent(i));
|
|
30951
32335
|
})));
|
|
30952
32336
|
};
|
|
30953
|
-
var Container$
|
|
32337
|
+
var Container$s = /*#__PURE__*/styled.div.withConfig({
|
|
30954
32338
|
displayName: "ShortcutsSetter__Container",
|
|
30955
32339
|
componentId: "sc-xuouuf-0"
|
|
30956
32340
|
})(["p{margin:0;margin-left:0.5rem;font-size:10px;}width:100%;"]);
|
|
@@ -31017,7 +32401,7 @@ var RangeSlider = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
31017
32401
|
style: {
|
|
31018
32402
|
left: left
|
|
31019
32403
|
}
|
|
31020
|
-
})), React.createElement(Input$
|
|
32404
|
+
})), React.createElement(Input$2, {
|
|
31021
32405
|
type: "range",
|
|
31022
32406
|
style: {
|
|
31023
32407
|
width: width
|
|
@@ -31030,7 +32414,7 @@ var RangeSlider = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
31030
32414
|
className: "rpgui-cursor-point"
|
|
31031
32415
|
}));
|
|
31032
32416
|
});
|
|
31033
|
-
var Input$
|
|
32417
|
+
var Input$2 = /*#__PURE__*/styled.input.withConfig({
|
|
31034
32418
|
displayName: "RangeSlider__Input",
|
|
31035
32419
|
componentId: "sc-v8mte9-0"
|
|
31036
32420
|
})(["opacity:0;position:absolute;width:100%;height:100%;top:0;left:0;margin-top:-5px;"]);
|
|
@@ -31064,7 +32448,7 @@ var QuantitySelector = function QuantitySelector(_ref) {
|
|
|
31064
32448
|
return React.createElement(StyledContainer, {
|
|
31065
32449
|
type: RPGUIContainerTypes.Framed,
|
|
31066
32450
|
width: "25rem"
|
|
31067
|
-
}, React.createElement(CloseButton$
|
|
32451
|
+
}, React.createElement(CloseButton$6, {
|
|
31068
32452
|
className: "container-close",
|
|
31069
32453
|
onPointerDown: onClose
|
|
31070
32454
|
}, "X"), React.createElement("h2", null, title), React.createElement(StyledForm, {
|
|
@@ -31109,7 +32493,7 @@ var StyledContainer = /*#__PURE__*/styled(RPGUIContainer).withConfig({
|
|
|
31109
32493
|
displayName: "QuantitySelector__StyledContainer",
|
|
31110
32494
|
componentId: "sc-z4ut57-0"
|
|
31111
32495
|
})(["position:relative;display:flex;flex-direction:column;align-items:center;padding:1rem;h2{margin:0;margin-bottom:1rem;font-size:1rem;}"]);
|
|
31112
|
-
var CloseButton$
|
|
32496
|
+
var CloseButton$6 = /*#__PURE__*/styled.div.withConfig({
|
|
31113
32497
|
displayName: "QuantitySelector__CloseButton",
|
|
31114
32498
|
componentId: "sc-z4ut57-1"
|
|
31115
32499
|
})(["position:absolute;top:3px;right:0px;color:white;z-index:22;font-size:1.5rem;cursor:pointer;"]);
|
|
@@ -31402,7 +32786,7 @@ var ColorSelector = function ColorSelector(_ref) {
|
|
|
31402
32786
|
cancelDrag: ".react-colorful",
|
|
31403
32787
|
width: "20rem",
|
|
31404
32788
|
onCloseButton: onClose
|
|
31405
|
-
}, React.createElement(Container$
|
|
32789
|
+
}, React.createElement(Container$t, null, React.createElement(Header$3, null, "Select Color"), React.createElement(HexColorPicker, {
|
|
31406
32790
|
color: currentColor,
|
|
31407
32791
|
onChange: function onChange(color) {
|
|
31408
32792
|
setCurrentColor(color);
|
|
@@ -31414,11 +32798,11 @@ var ColorSelector = function ColorSelector(_ref) {
|
|
|
31414
32798
|
onClick: handleConfirm
|
|
31415
32799
|
}, "Confirm"))) : null;
|
|
31416
32800
|
};
|
|
31417
|
-
var Container$
|
|
32801
|
+
var Container$t = /*#__PURE__*/styled.div.withConfig({
|
|
31418
32802
|
displayName: "ItemPropertyColorSelector__Container",
|
|
31419
32803
|
componentId: "sc-me1r4z-0"
|
|
31420
32804
|
})(["padding:2rem;text-align:center;background:inherit;"]);
|
|
31421
|
-
var Header$
|
|
32805
|
+
var Header$3 = /*#__PURE__*/styled.h2.withConfig({
|
|
31422
32806
|
displayName: "ItemPropertyColorSelector__Header",
|
|
31423
32807
|
componentId: "sc-me1r4z-1"
|
|
31424
32808
|
})(["font-family:'Press Start 2P',cursive;color:white;font-size:1rem;margin-bottom:1rem;"]);
|
|
@@ -31471,7 +32855,7 @@ var GemSelector = function GemSelector(_ref) {
|
|
|
31471
32855
|
scale: scale,
|
|
31472
32856
|
cancelDrag: ".gem-selector-container",
|
|
31473
32857
|
onCloseButton: onClose
|
|
31474
|
-
}, React.createElement(ContentWrapper$1, null, React.createElement(Header$
|
|
32858
|
+
}, React.createElement(ContentWrapper$1, null, React.createElement(Header$4, null, React.createElement(Title$5, null, "GEM SELECTION"), React.createElement(Subtitle, null, "Select gems to detach")), React.createElement(GemGrid, null, (_item$attachedGems = item.attachedGems) == null ? void 0 : _item$attachedGems.map(function (gem, index) {
|
|
31475
32859
|
return React.createElement(GemItem, {
|
|
31476
32860
|
key: gem.key + "-" + index
|
|
31477
32861
|
}, React.createElement(CheckItemWrapper, null, React.createElement(CheckItem, {
|
|
@@ -31502,7 +32886,7 @@ var GemSelector = function GemSelector(_ref) {
|
|
|
31502
32886
|
disabled: selectedGems.length === 0
|
|
31503
32887
|
}, "Confirm"))));
|
|
31504
32888
|
};
|
|
31505
|
-
var Title$
|
|
32889
|
+
var Title$5 = /*#__PURE__*/styled.h1.withConfig({
|
|
31506
32890
|
displayName: "GemSelector__Title",
|
|
31507
32891
|
componentId: "sc-gbt8g4-0"
|
|
31508
32892
|
})(["font-size:0.8rem;color:", " !important;"], uiColors.yellow);
|
|
@@ -31510,7 +32894,7 @@ var Subtitle = /*#__PURE__*/styled.h2.withConfig({
|
|
|
31510
32894
|
displayName: "GemSelector__Subtitle",
|
|
31511
32895
|
componentId: "sc-gbt8g4-1"
|
|
31512
32896
|
})(["font-size:0.6rem;color:", ";margin:0;"], uiColors.white);
|
|
31513
|
-
var Header$
|
|
32897
|
+
var Header$4 = /*#__PURE__*/styled.div.withConfig({
|
|
31514
32898
|
displayName: "GemSelector__Header",
|
|
31515
32899
|
componentId: "sc-gbt8g4-2"
|
|
31516
32900
|
})(["text-align:center;padding:5px;border-bottom:2px solid #444;"]);
|
|
@@ -31575,7 +32959,7 @@ var ItemSelector = function ItemSelector(_ref) {
|
|
|
31575
32959
|
style: {
|
|
31576
32960
|
width: '100%'
|
|
31577
32961
|
}
|
|
31578
|
-
}, React.createElement(Title$
|
|
32962
|
+
}, React.createElement(Title$6, null, 'Harvesting instruments'), React.createElement(Subtitle$1, null, 'Use the tool, you need it'), React.createElement("hr", {
|
|
31579
32963
|
className: "golden"
|
|
31580
32964
|
})), React.createElement(RadioInputScroller$1, null, options == null ? void 0 : options.map(function (option, index) {
|
|
31581
32965
|
return React.createElement(RadioOptionsWrapper$1, {
|
|
@@ -31604,7 +32988,7 @@ var ItemSelector = function ItemSelector(_ref) {
|
|
|
31604
32988
|
buttonType: ButtonTypes.RPGUIButton
|
|
31605
32989
|
}, "Select")));
|
|
31606
32990
|
};
|
|
31607
|
-
var Title$
|
|
32991
|
+
var Title$6 = /*#__PURE__*/styled.h1.withConfig({
|
|
31608
32992
|
displayName: "ItemSelector__Title",
|
|
31609
32993
|
componentId: "sc-gptoxp-0"
|
|
31610
32994
|
})(["font-size:0.6rem;color:yellow !important;"]);
|
|
@@ -31710,15 +33094,15 @@ var Leaderboard = function Leaderboard(props) {
|
|
|
31710
33094
|
option: itemType
|
|
31711
33095
|
};
|
|
31712
33096
|
});
|
|
31713
|
-
return React.createElement(React.Fragment, null, React.createElement(WrapperContainer, null, React.createElement(StyledDropdown, {
|
|
33097
|
+
return React.createElement(React.Fragment, null, React.createElement(WrapperContainer, null, React.createElement(StyledDropdown$1, {
|
|
31714
33098
|
options: rankTypeOptions,
|
|
31715
33099
|
onChange: onChangeRankType,
|
|
31716
33100
|
width: "80%"
|
|
31717
|
-
}), rankType === 'Class' ? React.createElement(StyledDropdown, {
|
|
33101
|
+
}), rankType === 'Class' ? React.createElement(StyledDropdown$1, {
|
|
31718
33102
|
options: classTypeOptions,
|
|
31719
33103
|
onChange: onChangeClassType,
|
|
31720
33104
|
width: "100%"
|
|
31721
|
-
}) : null, rankType === 'Skill' ? React.createElement(StyledDropdown, {
|
|
33105
|
+
}) : null, rankType === 'Skill' ? React.createElement(StyledDropdown$1, {
|
|
31722
33106
|
options: skillTypeOptions,
|
|
31723
33107
|
onChange: onChangeSkillType,
|
|
31724
33108
|
width: "100%"
|
|
@@ -31734,7 +33118,7 @@ var WrapperContainer = /*#__PURE__*/styled.div.withConfig({
|
|
|
31734
33118
|
displayName: "Leaderboard__WrapperContainer",
|
|
31735
33119
|
componentId: "sc-1wdsq7i-0"
|
|
31736
33120
|
})(["display:grid;grid-template-columns:50% 50%;justify-content:space-between;width:calc(100% - 40px);margin-left:10px;.rpgui-content .rpgui-dropdown-imp-header{padding:0px 10px 0 !important;}"]);
|
|
31737
|
-
var StyledDropdown = /*#__PURE__*/styled(Dropdown).withConfig({
|
|
33121
|
+
var StyledDropdown$1 = /*#__PURE__*/styled(Dropdown).withConfig({
|
|
31738
33122
|
displayName: "Leaderboard__StyledDropdown",
|
|
31739
33123
|
componentId: "sc-1wdsq7i-1"
|
|
31740
33124
|
})(["margin:3px !important;width:170px !important;"]);
|
|
@@ -31752,7 +33136,7 @@ var ListMenu = function ListMenu(_ref) {
|
|
|
31752
33136
|
onSelected = _ref.onSelected,
|
|
31753
33137
|
x = _ref.x,
|
|
31754
33138
|
y = _ref.y;
|
|
31755
|
-
return React.createElement(Container$
|
|
33139
|
+
return React.createElement(Container$u, {
|
|
31756
33140
|
x: x,
|
|
31757
33141
|
y: y
|
|
31758
33142
|
}, React.createElement("ul", {
|
|
@@ -31769,7 +33153,7 @@ var ListMenu = function ListMenu(_ref) {
|
|
|
31769
33153
|
}, (params == null ? void 0 : params.text) || 'No text');
|
|
31770
33154
|
})));
|
|
31771
33155
|
};
|
|
31772
|
-
var Container$
|
|
33156
|
+
var Container$u = /*#__PURE__*/styled.div.withConfig({
|
|
31773
33157
|
displayName: "ListMenu__Container",
|
|
31774
33158
|
componentId: "sc-i9097t-0"
|
|
31775
33159
|
})(["display:flex;flex-direction:column;width:100%;justify-content:start;align-items:flex-start;position:absolute;top:", "px;left:", "px;li{font-size:", ";}"], function (props) {
|
|
@@ -31788,7 +33172,7 @@ var Pager = function Pager(_ref) {
|
|
|
31788
33172
|
itemsPerPage = _ref.itemsPerPage,
|
|
31789
33173
|
onPageChange = _ref.onPageChange;
|
|
31790
33174
|
var totalPages = Math.ceil(totalItems / itemsPerPage);
|
|
31791
|
-
return React.createElement(Container$
|
|
33175
|
+
return React.createElement(Container$v, null, React.createElement("p", null, "Total items: ", totalItems), React.createElement(PagerContainer, null, React.createElement("button", {
|
|
31792
33176
|
disabled: currentPage === 1,
|
|
31793
33177
|
onPointerDown: function onPointerDown() {
|
|
31794
33178
|
return onPageChange(Math.max(currentPage - 1, 1));
|
|
@@ -31802,7 +33186,7 @@ var Pager = function Pager(_ref) {
|
|
|
31802
33186
|
}
|
|
31803
33187
|
}, '>')));
|
|
31804
33188
|
};
|
|
31805
|
-
var Container$
|
|
33189
|
+
var Container$v = /*#__PURE__*/styled.div.withConfig({
|
|
31806
33190
|
displayName: "Pager__Container",
|
|
31807
33191
|
componentId: "sc-1ekmf50-0"
|
|
31808
33192
|
})(["display:flex;flex-direction:column;align-items:center;p{margin:0;font-size:", ";}"], uiFonts.size.xsmall);
|
|
@@ -31815,7 +33199,7 @@ var ConfirmModal = function ConfirmModal(_ref) {
|
|
|
31815
33199
|
var onConfirm = _ref.onConfirm,
|
|
31816
33200
|
onClose = _ref.onClose,
|
|
31817
33201
|
message = _ref.message;
|
|
31818
|
-
return React.createElement(ModalPortal, null, React.createElement(Background, null), React.createElement(Container$
|
|
33202
|
+
return React.createElement(ModalPortal, null, React.createElement(Background, null), React.createElement(Container$w, {
|
|
31819
33203
|
onPointerDown: onClose
|
|
31820
33204
|
}, React.createElement(DraggableContainer, {
|
|
31821
33205
|
width: "auto",
|
|
@@ -31838,7 +33222,7 @@ var Background = /*#__PURE__*/styled.div.withConfig({
|
|
|
31838
33222
|
displayName: "ConfirmModal__Background",
|
|
31839
33223
|
componentId: "sc-11qkyu1-0"
|
|
31840
33224
|
})(["position:absolute;width:100%;height:100%;background-color:#000000;opacity:0.5;left:0;top:0;z-index:1000;"]);
|
|
31841
|
-
var Container$
|
|
33225
|
+
var Container$w = /*#__PURE__*/styled.div.withConfig({
|
|
31842
33226
|
displayName: "ConfirmModal__Container",
|
|
31843
33227
|
componentId: "sc-11qkyu1-1"
|
|
31844
33228
|
})(["position:absolute;width:100%;height:100%;left:0;top:0;display:flex;justify-content:center;align-items:center;z-index:1001;"]);
|
|
@@ -31864,7 +33248,7 @@ var MarketplaceRows = function MarketplaceRows(_ref) {
|
|
|
31864
33248
|
var renderGems = function renderGems(item) {
|
|
31865
33249
|
return item.attachedGems && onRenderGems(item);
|
|
31866
33250
|
};
|
|
31867
|
-
return React.createElement(MarketplaceWrapper, null, React.createElement(ItemIconContainer, null, React.createElement(SpriteContainer$
|
|
33251
|
+
return React.createElement(MarketplaceWrapper, null, React.createElement(ItemIconContainer, null, React.createElement(SpriteContainer$3, null, React.createElement(ItemInfoWrapper, {
|
|
31868
33252
|
item: item,
|
|
31869
33253
|
atlasIMG: atlasIMG,
|
|
31870
33254
|
atlasJSON: atlasJSON,
|
|
@@ -31930,7 +33314,7 @@ var GoldContainer = /*#__PURE__*/styled.div.withConfig({
|
|
|
31930
33314
|
displayName: "MarketplaceRows__GoldContainer",
|
|
31931
33315
|
componentId: "sc-wmpr1o-5"
|
|
31932
33316
|
})(["position:relative;top:-0.5rem;left:0.5rem;"]);
|
|
31933
|
-
var SpriteContainer$
|
|
33317
|
+
var SpriteContainer$3 = /*#__PURE__*/styled.div.withConfig({
|
|
31934
33318
|
displayName: "MarketplaceRows__SpriteContainer",
|
|
31935
33319
|
componentId: "sc-wmpr1o-6"
|
|
31936
33320
|
})(["position:relative;left:0.5rem;"]);
|
|
@@ -32115,15 +33499,15 @@ var BuyPanel = function BuyPanel(_ref) {
|
|
|
32115
33499
|
className: "big-input",
|
|
32116
33500
|
onBlur: enableHotkeys,
|
|
32117
33501
|
onFocus: disableHotkeys
|
|
32118
|
-
}))), React.createElement(WrapperContainer$1, null, React.createElement(StyledDropdown$
|
|
33502
|
+
}))), React.createElement(WrapperContainer$1, null, React.createElement(StyledDropdown$2, {
|
|
32119
33503
|
options: itemTypeOptions,
|
|
32120
33504
|
onChange: onChangeType,
|
|
32121
33505
|
width: "95%"
|
|
32122
|
-
}), React.createElement(StyledDropdown$
|
|
33506
|
+
}), React.createElement(StyledDropdown$2, {
|
|
32123
33507
|
options: itemRarityOptions,
|
|
32124
33508
|
onChange: onChangeRarity,
|
|
32125
33509
|
width: "95%"
|
|
32126
|
-
}), React.createElement(StyledDropdown$
|
|
33510
|
+
}), React.createElement(StyledDropdown$2, {
|
|
32127
33511
|
options: orderByOptions,
|
|
32128
33512
|
onChange: onChangeOrder,
|
|
32129
33513
|
width: "100%"
|
|
@@ -32167,7 +33551,7 @@ var ItemComponentScrollWrapper$1 = /*#__PURE__*/styled.div.withConfig({
|
|
|
32167
33551
|
displayName: "BuyPanel__ItemComponentScrollWrapper",
|
|
32168
33552
|
componentId: "sc-1si8t7i-4"
|
|
32169
33553
|
})(["overflow-y:scroll;height:390px;width:100%;margin-top:1rem;@media (max-width:950px){height:250px;}"]);
|
|
32170
|
-
var StyledDropdown$
|
|
33554
|
+
var StyledDropdown$2 = /*#__PURE__*/styled(Dropdown).withConfig({
|
|
32171
33555
|
displayName: "BuyPanel__StyledDropdown",
|
|
32172
33556
|
componentId: "sc-1si8t7i-5"
|
|
32173
33557
|
})(["margin:3px !important;width:170px !important;"]);
|
|
@@ -32363,13 +33747,13 @@ var TabBody = function TabBody(_ref) {
|
|
|
32363
33747
|
children = _ref.children,
|
|
32364
33748
|
styles = _ref.styles,
|
|
32365
33749
|
centerContent = _ref.centerContent;
|
|
32366
|
-
return React.createElement(Container$
|
|
33750
|
+
return React.createElement(Container$x, {
|
|
32367
33751
|
styles: styles,
|
|
32368
33752
|
"data-tab-id": id,
|
|
32369
33753
|
centerContent: centerContent
|
|
32370
33754
|
}, children);
|
|
32371
33755
|
};
|
|
32372
|
-
var Container$
|
|
33756
|
+
var Container$x = /*#__PURE__*/styled.div.withConfig({
|
|
32373
33757
|
displayName: "TabBody__Container",
|
|
32374
33758
|
componentId: "sc-196oof2-0"
|
|
32375
33759
|
})(["width:", ";height:", ";overflow-y:auto;display:", ";justify-content:", ";align-items:", ";"], function (props) {
|
|
@@ -32515,7 +33899,7 @@ var PartyCreate = function PartyCreate(_ref) {
|
|
|
32515
33899
|
style: {
|
|
32516
33900
|
width: '100%'
|
|
32517
33901
|
}
|
|
32518
|
-
}, React.createElement(Title$
|
|
33902
|
+
}, React.createElement(Title$7, null, "Create Party"), React.createElement("hr", {
|
|
32519
33903
|
className: "golden"
|
|
32520
33904
|
}))), React.createElement("h1", null, "Type your party name"), React.createElement(Input, {
|
|
32521
33905
|
placeholder: "Type party name",
|
|
@@ -32538,7 +33922,7 @@ var Wrapper$2 = /*#__PURE__*/styled.div.withConfig({
|
|
|
32538
33922
|
displayName: "PartyCreate__Wrapper",
|
|
32539
33923
|
componentId: "sc-13brop0-0"
|
|
32540
33924
|
})(["display:flex;flex-direction:column;width:100%;"]);
|
|
32541
|
-
var Title$
|
|
33925
|
+
var Title$7 = /*#__PURE__*/styled.h1.withConfig({
|
|
32542
33926
|
displayName: "PartyCreate__Title",
|
|
32543
33927
|
componentId: "sc-13brop0-1"
|
|
32544
33928
|
})(["font-size:0.6rem;color:", " !important;"], uiColors.yellow);
|
|
@@ -32587,7 +33971,7 @@ var PartyDashboard = function PartyDashboard(_ref) {
|
|
|
32587
33971
|
style: {
|
|
32588
33972
|
width: '100%'
|
|
32589
33973
|
}
|
|
32590
|
-
}, React.createElement(Title$
|
|
33974
|
+
}, React.createElement(Title$8, null, "Party Dashboard"), React.createElement(Button, {
|
|
32591
33975
|
buttonType: ButtonTypes.RPGUIButton
|
|
32592
33976
|
}, "Create"), React.createElement("hr", {
|
|
32593
33977
|
className: "golden"
|
|
@@ -32614,7 +33998,7 @@ var RowsWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
|
32614
33998
|
displayName: "PartyDashboard__RowsWrapper",
|
|
32615
33999
|
componentId: "sc-16cm41r-1"
|
|
32616
34000
|
})(["overflow-y:scroll;-webkit-overflow-scrolling:touch;width:100%;height:200px;"]);
|
|
32617
|
-
var Title$
|
|
34001
|
+
var Title$8 = /*#__PURE__*/styled.h1.withConfig({
|
|
32618
34002
|
displayName: "PartyDashboard__Title",
|
|
32619
34003
|
componentId: "sc-16cm41r-2"
|
|
32620
34004
|
})(["font-size:0.6rem;color:", " !important;"], uiColors.yellow);
|
|
@@ -32651,7 +34035,7 @@ var PartyInvite = function PartyInvite(_ref) {
|
|
|
32651
34035
|
style: {
|
|
32652
34036
|
width: '100%'
|
|
32653
34037
|
}
|
|
32654
|
-
}, React.createElement(Title$
|
|
34038
|
+
}, React.createElement(Title$9, null, "Invite for Party"), React.createElement("hr", {
|
|
32655
34039
|
className: "golden"
|
|
32656
34040
|
}))), React.createElement(RowsWrapper$1, {
|
|
32657
34041
|
className: "playersRows"
|
|
@@ -32670,7 +34054,7 @@ var Wrapper$4 = /*#__PURE__*/styled.div.withConfig({
|
|
|
32670
34054
|
displayName: "PartyInvite__Wrapper",
|
|
32671
34055
|
componentId: "sc-eu8ggt-0"
|
|
32672
34056
|
})(["display:flex;flex-direction:column;width:100%;"]);
|
|
32673
|
-
var Title$
|
|
34057
|
+
var Title$9 = /*#__PURE__*/styled.h1.withConfig({
|
|
32674
34058
|
displayName: "PartyInvite__Title",
|
|
32675
34059
|
componentId: "sc-eu8ggt-1"
|
|
32676
34060
|
})(["font-size:0.6rem;color:", " !important;"], uiColors.yellow);
|
|
@@ -33022,7 +34406,7 @@ var ProgressBar = function ProgressBar(_ref) {
|
|
|
33022
34406
|
}
|
|
33023
34407
|
return value * 100 / max;
|
|
33024
34408
|
};
|
|
33025
|
-
return React.createElement(Container$
|
|
34409
|
+
return React.createElement(Container$y, {
|
|
33026
34410
|
className: "rpgui-progress",
|
|
33027
34411
|
"data-value": calculatePercentageValue(max, value) / 100,
|
|
33028
34412
|
"data-rpguitype": "progress",
|
|
@@ -33052,7 +34436,7 @@ var TextOverlay$1 = /*#__PURE__*/styled.div.withConfig({
|
|
|
33052
34436
|
displayName: "ProgressBar__TextOverlay",
|
|
33053
34437
|
componentId: "sc-qa6fzh-1"
|
|
33054
34438
|
})(["width:100%;position:relative;"]);
|
|
33055
|
-
var Container$
|
|
34439
|
+
var Container$y = /*#__PURE__*/styled.div.withConfig({
|
|
33056
34440
|
displayName: "ProgressBar__Container",
|
|
33057
34441
|
componentId: "sc-qa6fzh-2"
|
|
33058
34442
|
})(["display:flex;flex-direction:column;min-width:", "px;width:", "%;justify-content:start;align-items:flex-start;", " @media (max-width:950px){transform:scale(", ");}"], function (props) {
|
|
@@ -33108,11 +34492,11 @@ var QuestInfo = function QuestInfo(_ref) {
|
|
|
33108
34492
|
onPointerDown: onRightClick
|
|
33109
34493
|
}), React.createElement(QuestContainer, null, React.createElement(TitleContainer$1, {
|
|
33110
34494
|
className: "drag-handler"
|
|
33111
|
-
}, React.createElement(Title$
|
|
34495
|
+
}, React.createElement(Title$a, null, React.createElement(Thumbnail, {
|
|
33112
34496
|
src: quests[currentIndex].thumbnail || img$8
|
|
33113
34497
|
}), quests[currentIndex].title), React.createElement(QuestSplitDiv, null, React.createElement("hr", {
|
|
33114
34498
|
className: "golden"
|
|
33115
|
-
}))), React.createElement(Content, null, React.createElement("p", null, quests[currentIndex].description)), React.createElement(QuestColumn, {
|
|
34499
|
+
}))), React.createElement(Content$3, null, React.createElement("p", null, quests[currentIndex].description)), React.createElement(QuestColumn, {
|
|
33116
34500
|
className: "dark-background",
|
|
33117
34501
|
justifyContent: "flex-end"
|
|
33118
34502
|
}, buttons && buttons.map(function (button, index) {
|
|
@@ -33127,11 +34511,11 @@ var QuestInfo = function QuestInfo(_ref) {
|
|
|
33127
34511
|
}, button.title);
|
|
33128
34512
|
})))) : React.createElement(QuestsContainer, null, React.createElement(QuestContainer, null, React.createElement(TitleContainer$1, {
|
|
33129
34513
|
className: "drag-handler"
|
|
33130
|
-
}, React.createElement(Title$
|
|
34514
|
+
}, React.createElement(Title$a, null, React.createElement(Thumbnail, {
|
|
33131
34515
|
src: quests[0].thumbnail || img$8
|
|
33132
34516
|
}), quests[0].title), React.createElement(QuestSplitDiv, null, React.createElement("hr", {
|
|
33133
34517
|
className: "golden"
|
|
33134
|
-
}))), React.createElement(Content, null, React.createElement("p", null, quests[0].description)), React.createElement(QuestColumn, {
|
|
34518
|
+
}))), React.createElement(Content$3, null, React.createElement("p", null, quests[0].description)), React.createElement(QuestColumn, {
|
|
33135
34519
|
className: "dark-background",
|
|
33136
34520
|
justifyContent: "flex-end"
|
|
33137
34521
|
}, buttons && buttons.map(function (button, index) {
|
|
@@ -33158,7 +34542,7 @@ var QuestsContainer = /*#__PURE__*/styled.div.withConfig({
|
|
|
33158
34542
|
displayName: "QuestInfo__QuestsContainer",
|
|
33159
34543
|
componentId: "sc-1wccpiy-2"
|
|
33160
34544
|
})(["display:flex;align-items:center;"]);
|
|
33161
|
-
var Content = /*#__PURE__*/styled.div.withConfig({
|
|
34545
|
+
var Content$3 = /*#__PURE__*/styled.div.withConfig({
|
|
33162
34546
|
displayName: "QuestInfo__Content",
|
|
33163
34547
|
componentId: "sc-1wccpiy-3"
|
|
33164
34548
|
})(["padding:18px;h1{text-align:left;margin:14px 0px;}"]);
|
|
@@ -33174,7 +34558,7 @@ var TitleContainer$1 = /*#__PURE__*/styled.div.withConfig({
|
|
|
33174
34558
|
displayName: "QuestInfo__TitleContainer",
|
|
33175
34559
|
componentId: "sc-1wccpiy-6"
|
|
33176
34560
|
})(["width:100%;display:flex;flex-wrap:wrap;justify-content:flex-start;align-items:center;margin-top:1rem;"]);
|
|
33177
|
-
var Title$
|
|
34561
|
+
var Title$a = /*#__PURE__*/styled.h1.withConfig({
|
|
33178
34562
|
displayName: "QuestInfo__Title",
|
|
33179
34563
|
componentId: "sc-1wccpiy-7"
|
|
33180
34564
|
})(["color:white;z-index:22;font-size:", " !important;color:", " !important;"], uiFonts.size.medium, uiColors.yellow);
|
|
@@ -33193,19 +34577,19 @@ var QuestList = function QuestList(_ref) {
|
|
|
33193
34577
|
return React.createElement(QuestCard, {
|
|
33194
34578
|
key: i,
|
|
33195
34579
|
style: styles == null ? void 0 : styles.card
|
|
33196
|
-
}, React.createElement(QuestItem, null, React.createElement(Label, {
|
|
34580
|
+
}, React.createElement(QuestItem, null, React.createElement(Label$2, {
|
|
33197
34581
|
style: styles == null ? void 0 : styles.label
|
|
33198
|
-
}, "Title:"), React.createElement(Value, {
|
|
34582
|
+
}, "Title:"), React.createElement(Value$2, {
|
|
33199
34583
|
style: styles == null ? void 0 : styles.value
|
|
33200
|
-
}, formatQuestText(quest.title))), React.createElement(QuestItem, null, React.createElement(Label, {
|
|
34584
|
+
}, formatQuestText(quest.title))), React.createElement(QuestItem, null, React.createElement(Label$2, {
|
|
33201
34585
|
style: styles == null ? void 0 : styles.label
|
|
33202
|
-
}, "Status:"), React.createElement(Value, {
|
|
34586
|
+
}, "Status:"), React.createElement(Value$2, {
|
|
33203
34587
|
style: _extends({}, styles == null ? void 0 : styles.value, {
|
|
33204
34588
|
color: getQuestStatusColor(quest.status)
|
|
33205
34589
|
})
|
|
33206
|
-
}, (_formatQuestStatus = formatQuestStatus(quest.status)) != null ? _formatQuestStatus : 'Unknown')), React.createElement(QuestItem, null, React.createElement(Label, {
|
|
34590
|
+
}, (_formatQuestStatus = formatQuestStatus(quest.status)) != null ? _formatQuestStatus : 'Unknown')), React.createElement(QuestItem, null, React.createElement(Label$2, {
|
|
33207
34591
|
style: styles == null ? void 0 : styles.label
|
|
33208
|
-
}, "Description:"), React.createElement(Value, {
|
|
34592
|
+
}, "Description:"), React.createElement(Value$2, {
|
|
33209
34593
|
style: styles == null ? void 0 : styles.value
|
|
33210
34594
|
}, quest.description)));
|
|
33211
34595
|
}) : React.createElement(NoQuestContainer, null, React.createElement("p", null, "There are no ongoing quests")));
|
|
@@ -33222,11 +34606,11 @@ var QuestItem = /*#__PURE__*/styled.div.withConfig({
|
|
|
33222
34606
|
displayName: "QuestList__QuestItem",
|
|
33223
34607
|
componentId: "sc-1c1y8sp-2"
|
|
33224
34608
|
})(["display:flex;margin-bottom:5px;flex-wrap:wrap;&:last-child{margin-bottom:0;}"]);
|
|
33225
|
-
var Label = /*#__PURE__*/styled.span.withConfig({
|
|
34609
|
+
var Label$2 = /*#__PURE__*/styled.span.withConfig({
|
|
33226
34610
|
displayName: "QuestList__Label",
|
|
33227
34611
|
componentId: "sc-1c1y8sp-3"
|
|
33228
34612
|
})(["font-weight:bold;color:", " !important;margin-right:10px;"], uiColors.yellow);
|
|
33229
|
-
var Value = /*#__PURE__*/styled.span.withConfig({
|
|
34613
|
+
var Value$2 = /*#__PURE__*/styled.span.withConfig({
|
|
33230
34614
|
displayName: "QuestList__Value",
|
|
33231
34615
|
componentId: "sc-1c1y8sp-4"
|
|
33232
34616
|
})(["flex-grow:1;color:", ";word-wrap:break-word;"], uiColors.white);
|
|
@@ -33293,9 +34677,9 @@ var InputRadio = function InputRadio(_ref) {
|
|
|
33293
34677
|
|
|
33294
34678
|
var RPGUIScrollbar = function RPGUIScrollbar(_ref) {
|
|
33295
34679
|
var children = _ref.children;
|
|
33296
|
-
return React.createElement(Container$
|
|
34680
|
+
return React.createElement(Container$z, null, children);
|
|
33297
34681
|
};
|
|
33298
|
-
var Container$
|
|
34682
|
+
var Container$z = /*#__PURE__*/styled.div.withConfig({
|
|
33299
34683
|
displayName: "RPGUIScrollbar__Container",
|
|
33300
34684
|
componentId: "sc-p3msmb-0"
|
|
33301
34685
|
})([".rpgui-content ::-webkit-scrollbar,.rpgui-content::-webkit-scrollbar{width:25px !important;}.rpgui-content ::-webkit-scrollbar-track,.rpgui-content::-webkit-scrollbar-track{background-size:25px 60px !important;}"]);
|
|
@@ -33451,7 +34835,7 @@ var SimpleProgressBar = function SimpleProgressBar(_ref) {
|
|
|
33451
34835
|
margin = _ref$margin === void 0 ? 20 : _ref$margin;
|
|
33452
34836
|
// Ensure the width is at least 1% if value is greater than 0
|
|
33453
34837
|
var width = value > 0 ? Math.max(1, Math.min(100, value)) : 0;
|
|
33454
|
-
return React.createElement(Container$
|
|
34838
|
+
return React.createElement(Container$A, {
|
|
33455
34839
|
className: "simple-progress-bar"
|
|
33456
34840
|
}, React.createElement(ProgressBarContainer, {
|
|
33457
34841
|
margin: margin
|
|
@@ -33460,7 +34844,7 @@ var SimpleProgressBar = function SimpleProgressBar(_ref) {
|
|
|
33460
34844
|
bgColor: bgColor
|
|
33461
34845
|
}))));
|
|
33462
34846
|
};
|
|
33463
|
-
var Container$
|
|
34847
|
+
var Container$A = /*#__PURE__*/styled.div.withConfig({
|
|
33464
34848
|
displayName: "SimpleProgressBar__Container",
|
|
33465
34849
|
componentId: "sc-mbeil3-0"
|
|
33466
34850
|
})(["display:flex;justify-content:center;align-items:center;width:100%;"]);
|
|
@@ -33516,7 +34900,7 @@ var SkillProgressBar = function SkillProgressBar(_ref) {
|
|
|
33516
34900
|
var result = level * (buffAndDebuff / 100);
|
|
33517
34901
|
return result > 0 ? "+" + result.toFixed(2) : "" + result.toFixed(2);
|
|
33518
34902
|
};
|
|
33519
|
-
return React.createElement(React.Fragment, null, React.createElement(ProgressTitle, null, buffAndDebuff !== undefined && React.createElement(React.Fragment, null, buffAndDebuff > 0 ? React.createElement(BuffAndDebuffContainer, null, React.createElement(TitleNameContainer, null, React.createElement(TitleNameBuff, null, skillName), React.createElement(TitleNameBuff, null, "lv ", level, " (", skillsBuffsCalc(level, buffAndDebuff), ")")), React.createElement(TitleNameBuffContainer, null, React.createElement(TitleNameBuff, null, "(+", formatBuffAndDebuff(buffAndDebuff), "%)"))) : buffAndDebuff < 0 ? React.createElement(React.Fragment, null, React.createElement(TitleNameContainer, null, React.createElement(TitleNameDebuff, null, skillName), React.createElement(TitleNameDebuff, null, "lv ", level, " (", skillsBuffsCalc(level, buffAndDebuff), ")")), React.createElement("div", null, React.createElement(TitleNameDebuff, null, "(", formatBuffAndDebuff(buffAndDebuff), "%)"))) : React.createElement(TitleName, null, skillName)), !buffAndDebuff && React.createElement(TitleNameContainer, null, React.createElement(TitleName, null, skillName), React.createElement(ValueDisplay, null, "lv ", level))), React.createElement(ProgressBody, null, React.createElement(ProgressIconContainer, null, atlasIMG && atlasJSON ? React.createElement(SpriteContainer$
|
|
34903
|
+
return React.createElement(React.Fragment, null, React.createElement(ProgressTitle, null, buffAndDebuff !== undefined && React.createElement(React.Fragment, null, buffAndDebuff > 0 ? React.createElement(BuffAndDebuffContainer, null, React.createElement(TitleNameContainer, null, React.createElement(TitleNameBuff, null, skillName), React.createElement(TitleNameBuff, null, "lv ", level, " (", skillsBuffsCalc(level, buffAndDebuff), ")")), React.createElement(TitleNameBuffContainer, null, React.createElement(TitleNameBuff, null, "(+", formatBuffAndDebuff(buffAndDebuff), "%)"))) : buffAndDebuff < 0 ? React.createElement(React.Fragment, null, React.createElement(TitleNameContainer, null, React.createElement(TitleNameDebuff, null, skillName), React.createElement(TitleNameDebuff, null, "lv ", level, " (", skillsBuffsCalc(level, buffAndDebuff), ")")), React.createElement("div", null, React.createElement(TitleNameDebuff, null, "(", formatBuffAndDebuff(buffAndDebuff), "%)"))) : React.createElement(TitleName, null, skillName)), !buffAndDebuff && React.createElement(TitleNameContainer, null, React.createElement(TitleName, null, skillName), React.createElement(ValueDisplay, null, "lv ", level))), React.createElement(ProgressBody, null, React.createElement(ProgressIconContainer, null, atlasIMG && atlasJSON ? React.createElement(SpriteContainer$4, null, React.createElement(ErrorBoundary, null, React.createElement(SpriteFromAtlas, {
|
|
33520
34904
|
atlasIMG: atlasIMG,
|
|
33521
34905
|
atlasJSON: atlasJSON,
|
|
33522
34906
|
spriteKey: texturePath,
|
|
@@ -33532,7 +34916,7 @@ var ProgressBarWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
|
33532
34916
|
displayName: "SkillProgressBar__ProgressBarWrapper",
|
|
33533
34917
|
componentId: "sc-5vuroc-0"
|
|
33534
34918
|
})(["position:relative;&:hover ", ",&:active ", "{visibility:visible;}width:100%;height:auto;top:8px;"], Tooltip, Tooltip);
|
|
33535
|
-
var SpriteContainer$
|
|
34919
|
+
var SpriteContainer$4 = /*#__PURE__*/styled.div.withConfig({
|
|
33536
34920
|
displayName: "SkillProgressBar__SpriteContainer",
|
|
33537
34921
|
componentId: "sc-5vuroc-1"
|
|
33538
34922
|
})(["position:relative;top:-3px;left:0;"]);
|
|
@@ -33686,7 +35070,7 @@ var SkillsContainer = function SkillsContainer(_ref) {
|
|
|
33686
35070
|
cancelDrag: "#skillsDiv",
|
|
33687
35071
|
scale: scale,
|
|
33688
35072
|
width: "100%"
|
|
33689
|
-
}, onCloseButton && React.createElement(CloseButton$
|
|
35073
|
+
}, onCloseButton && React.createElement(CloseButton$7, {
|
|
33690
35074
|
onPointerDown: onCloseButton
|
|
33691
35075
|
}, "X"), React.createElement(SkillsContainerDiv, {
|
|
33692
35076
|
id: "skillsDiv"
|
|
@@ -33721,7 +35105,7 @@ var SkillSplitDiv = /*#__PURE__*/styled.div.withConfig({
|
|
|
33721
35105
|
displayName: "SkillsContainer__SkillSplitDiv",
|
|
33722
35106
|
componentId: "sc-1g0c67q-2"
|
|
33723
35107
|
})(["width:100%;font-size:11px;hr{margin:0;margin-bottom:1rem;padding:0px;}p{margin-bottom:0px;}"]);
|
|
33724
|
-
var CloseButton$
|
|
35108
|
+
var CloseButton$7 = /*#__PURE__*/styled.div.withConfig({
|
|
33725
35109
|
displayName: "SkillsContainer__CloseButton",
|
|
33726
35110
|
componentId: "sc-1g0c67q-3"
|
|
33727
35111
|
})(["position:absolute;top:2px;right:2px;color:white;z-index:22;font-size:1.1rem;"]);
|
|
@@ -33793,7 +35177,7 @@ var SocialModal = function SocialModal(_ref) {
|
|
|
33793
35177
|
title: "Social Channels",
|
|
33794
35178
|
width: "500px",
|
|
33795
35179
|
onCloseButton: onClose
|
|
33796
|
-
}, React.createElement(Container$
|
|
35180
|
+
}, React.createElement(Container$B, null, React.createElement(HeaderImage, {
|
|
33797
35181
|
src: img$9,
|
|
33798
35182
|
alt: ""
|
|
33799
35183
|
}), React.createElement(ButtonsContainer$1, null, React.createElement(MainButtons, null, React.createElement(SocialButton$1, {
|
|
@@ -33811,7 +35195,7 @@ var SocialModal = function SocialModal(_ref) {
|
|
|
33811
35195
|
onClick: handleWhatsAppClick
|
|
33812
35196
|
}, React.createElement(FaWhatsapp, null), " Join WhatsApp")))));
|
|
33813
35197
|
};
|
|
33814
|
-
var Container$
|
|
35198
|
+
var Container$B = /*#__PURE__*/styled.div.withConfig({
|
|
33815
35199
|
displayName: "SocialModal__Container",
|
|
33816
35200
|
componentId: "sc-tbjhp9-0"
|
|
33817
35201
|
})(["width:100%;display:flex;flex-direction:column;gap:16px;background-color:#5c4132;position:relative;border-radius:8px;overflow:hidden;&:before,&:after{content:'';position:absolute;left:0;right:0;height:3px;}&:before{bottom:0;background:linear-gradient( to right,#5c4132 0%,#2b1810 2%,#2b1810 98%,#5c4132 100% );}"]);
|
|
@@ -33847,7 +35231,7 @@ var formatSpellCastingType = function formatSpellCastingType(castingType) {
|
|
|
33847
35231
|
return formattedCastingType;
|
|
33848
35232
|
};
|
|
33849
35233
|
|
|
33850
|
-
var SpellInfo = function SpellInfo(_ref) {
|
|
35234
|
+
var SpellInfo$1 = function SpellInfo(_ref) {
|
|
33851
35235
|
var spell = _ref.spell;
|
|
33852
35236
|
var magicWords = spell.magicWords,
|
|
33853
35237
|
name = spell.name,
|
|
@@ -33857,7 +35241,7 @@ var SpellInfo = function SpellInfo(_ref) {
|
|
|
33857
35241
|
castingType = spell.castingType,
|
|
33858
35242
|
cooldown = spell.cooldown,
|
|
33859
35243
|
maxDistanceGrid = spell.maxDistanceGrid;
|
|
33860
|
-
return React.createElement(Container$
|
|
35244
|
+
return React.createElement(Container$C, null, React.createElement(Header$5, null, React.createElement("div", null, React.createElement(Title$b, null, name), React.createElement(Type$1, null, magicWords))), React.createElement(Statistic$1, null, React.createElement("div", {
|
|
33861
35245
|
className: "label"
|
|
33862
35246
|
}, "Casting Type:"), React.createElement("div", {
|
|
33863
35247
|
className: "value"
|
|
@@ -33881,13 +35265,13 @@ var SpellInfo = function SpellInfo(_ref) {
|
|
|
33881
35265
|
className: "label"
|
|
33882
35266
|
}, "Required Item:"), React.createElement("div", {
|
|
33883
35267
|
className: "value"
|
|
33884
|
-
}, requiredItem))), React.createElement(Description$
|
|
35268
|
+
}, requiredItem))), React.createElement(Description$4, null, description));
|
|
33885
35269
|
};
|
|
33886
|
-
var Container$
|
|
35270
|
+
var Container$C = /*#__PURE__*/styled.div.withConfig({
|
|
33887
35271
|
displayName: "SpellInfo__Container",
|
|
33888
35272
|
componentId: "sc-4hbw3q-0"
|
|
33889
35273
|
})(["color:white;background-color:#222;border-radius:5px;padding:0.5rem;font-size:", ";border:3px solid ", ";height:max-content;width:30rem;@media (max-width:580px){width:80vw;}"], uiFonts.size.small, uiColors.lightGray);
|
|
33890
|
-
var Title$
|
|
35274
|
+
var Title$b = /*#__PURE__*/styled.div.withConfig({
|
|
33891
35275
|
displayName: "SpellInfo__Title",
|
|
33892
35276
|
componentId: "sc-4hbw3q-1"
|
|
33893
35277
|
})(["font-size:", ";font-weight:bold;margin-bottom:0.5rem;display:flex;align-items:center;margin:0;"], uiFonts.size.medium);
|
|
@@ -33895,11 +35279,11 @@ var Type$1 = /*#__PURE__*/styled.div.withConfig({
|
|
|
33895
35279
|
displayName: "SpellInfo__Type",
|
|
33896
35280
|
componentId: "sc-4hbw3q-2"
|
|
33897
35281
|
})(["font-size:", ";margin-top:0.2rem;color:", ";"], uiFonts.size.small, uiColors.lightGray);
|
|
33898
|
-
var Description$
|
|
35282
|
+
var Description$4 = /*#__PURE__*/styled.div.withConfig({
|
|
33899
35283
|
displayName: "SpellInfo__Description",
|
|
33900
35284
|
componentId: "sc-4hbw3q-3"
|
|
33901
35285
|
})(["margin-top:1.5rem;font-size:", ";color:", ";font-style:italic;"], uiFonts.size.small, uiColors.lightGray);
|
|
33902
|
-
var Header$
|
|
35286
|
+
var Header$5 = /*#__PURE__*/styled.div.withConfig({
|
|
33903
35287
|
displayName: "SpellInfo__Header",
|
|
33904
35288
|
componentId: "sc-4hbw3q-4"
|
|
33905
35289
|
})(["display:flex;align-items:center;justify-content:space-between;margin-bottom:0.5rem;"]);
|
|
@@ -33913,7 +35297,7 @@ var SpellInfoDisplay = function SpellInfoDisplay(_ref) {
|
|
|
33913
35297
|
isMobile = _ref.isMobile;
|
|
33914
35298
|
return React.createElement(Flex$3, {
|
|
33915
35299
|
"$isMobile": isMobile
|
|
33916
|
-
}, React.createElement(SpellInfo, {
|
|
35300
|
+
}, React.createElement(SpellInfo$1, {
|
|
33917
35301
|
spell: spell
|
|
33918
35302
|
}));
|
|
33919
35303
|
};
|
|
@@ -33937,7 +35321,7 @@ var MobileSpellTooltip = function MobileSpellTooltip(_ref) {
|
|
|
33937
35321
|
var _ref$current;
|
|
33938
35322
|
(_ref$current = ref.current) == null ? void 0 : _ref$current.classList.add('fadeOut');
|
|
33939
35323
|
};
|
|
33940
|
-
return React.createElement(ModalPortal, null, React.createElement(Container$
|
|
35324
|
+
return React.createElement(ModalPortal, null, React.createElement(Container$D, {
|
|
33941
35325
|
ref: ref,
|
|
33942
35326
|
onTouchEnd: function onTouchEnd() {
|
|
33943
35327
|
handleFadeOut();
|
|
@@ -33962,7 +35346,7 @@ var MobileSpellTooltip = function MobileSpellTooltip(_ref) {
|
|
|
33962
35346
|
}, option.text);
|
|
33963
35347
|
}))));
|
|
33964
35348
|
};
|
|
33965
|
-
var Container$
|
|
35349
|
+
var Container$D = /*#__PURE__*/styled.div.withConfig({
|
|
33966
35350
|
displayName: "MobileSpellTooltip__Container",
|
|
33967
35351
|
componentId: "sc-6p7uvr-0"
|
|
33968
35352
|
})(["position:absolute;z-index:100;left:0;top:0;width:100vw;height:100vh;background-color:rgba(0 0 0 / 0.5);display:flex;justify-content:center;align-items:center;gap:0.5rem;transition:opacity 0.08s;animation:fadeIn 0.1s forwards;@keyframes fadeIn{0%{opacity:0;}100%{opacity:0.92;}}@keyframes fadeOut{0%{opacity:0.92;}100%{opacity:0;}}&.fadeOut{animation:fadeOut 0.1s forwards;}@media (max-width:580px){flex-direction:column;}"]);
|
|
@@ -34003,13 +35387,13 @@ var MagicTooltip = function MagicTooltip(_ref) {
|
|
|
34003
35387
|
}
|
|
34004
35388
|
return;
|
|
34005
35389
|
}, []);
|
|
34006
|
-
return React.createElement(ModalPortal, null, React.createElement(Container$
|
|
35390
|
+
return React.createElement(ModalPortal, null, React.createElement(Container$E, {
|
|
34007
35391
|
ref: ref
|
|
34008
35392
|
}, React.createElement(SpellInfoDisplay, {
|
|
34009
35393
|
spell: spell
|
|
34010
35394
|
})));
|
|
34011
35395
|
};
|
|
34012
|
-
var Container$
|
|
35396
|
+
var Container$E = /*#__PURE__*/styled.div.withConfig({
|
|
34013
35397
|
displayName: "SpellTooltip__Container",
|
|
34014
35398
|
componentId: "sc-1go0gwg-0"
|
|
34015
35399
|
})(["position:absolute;z-index:100;pointer-events:none;left:0;top:0;opacity:0;transition:opacity 0.08s;"]);
|
|
@@ -34082,11 +35466,11 @@ var Spell = function Spell(_ref) {
|
|
|
34082
35466
|
var IMAGE_SCALE = 2;
|
|
34083
35467
|
return React.createElement(SpellInfoWrapper, {
|
|
34084
35468
|
spell: spell
|
|
34085
|
-
}, React.createElement(Container$
|
|
35469
|
+
}, React.createElement(Container$F, {
|
|
34086
35470
|
onPointerUp: onPointerUp == null ? void 0 : onPointerUp.bind(null, spellKey),
|
|
34087
35471
|
isSettingShortcut: isSettingShortcut && !disabled,
|
|
34088
35472
|
className: "spell"
|
|
34089
|
-
}, disabled && React.createElement(Overlay, null, charMagicLevel < minMagicLevelRequired ? 'Low magic level' : manaCost > charMana && 'No mana'), React.createElement(SpellImage, null, activeCooldown && activeCooldown > 0 ? React.createElement("span", {
|
|
35473
|
+
}, disabled && React.createElement(Overlay$1, null, charMagicLevel < minMagicLevelRequired ? 'Low magic level' : manaCost > charMana && 'No mana'), React.createElement(SpellImage, null, activeCooldown && activeCooldown > 0 ? React.createElement("span", {
|
|
34090
35474
|
className: "cooldown"
|
|
34091
35475
|
}, activeCooldown.toFixed(activeCooldown > 10 ? 0 : 1)) : null, React.createElement(SpriteFromAtlas, {
|
|
34092
35476
|
atlasIMG: atlasIMG,
|
|
@@ -34095,13 +35479,13 @@ var Spell = function Spell(_ref) {
|
|
|
34095
35479
|
imgScale: IMAGE_SCALE,
|
|
34096
35480
|
containerStyle: CONTAINER_STYLE,
|
|
34097
35481
|
centered: true
|
|
34098
|
-
})), React.createElement(Info, null, React.createElement(Title$
|
|
35482
|
+
})), React.createElement(Info, null, React.createElement(Title$c, null, React.createElement("span", null, name), React.createElement("span", {
|
|
34099
35483
|
className: "spell"
|
|
34100
|
-
}, "(", magicWords, ")")), React.createElement(Description$
|
|
35484
|
+
}, "(", magicWords, ")")), React.createElement(Description$5, null, description)), React.createElement(Divider$1, null), React.createElement(Cost, null, React.createElement("span", null, "Mana cost:"), React.createElement("span", {
|
|
34101
35485
|
className: "mana"
|
|
34102
35486
|
}, manaCost))));
|
|
34103
35487
|
};
|
|
34104
|
-
var Container$
|
|
35488
|
+
var Container$F = /*#__PURE__*/styled.button.withConfig({
|
|
34105
35489
|
displayName: "Spell__Container",
|
|
34106
35490
|
componentId: "sc-j96fa2-0"
|
|
34107
35491
|
})(["display:block;background:none;border:2px solid transparent;border-radius:1rem;width:100%;display:flex;gap:1rem;align-items:center;padding:0 1rem;text-align:left;position:relative;animation:", ";@keyframes border-color-change{0%{border-color:", ";}50%{border-color:transparent;}100%{border-color:", ";}}&:hover,&:focus{background-color:", ";}&:active{background:none;}"], function (_ref2) {
|
|
@@ -34116,11 +35500,11 @@ var Info = /*#__PURE__*/styled.span.withConfig({
|
|
|
34116
35500
|
displayName: "Spell__Info",
|
|
34117
35501
|
componentId: "sc-j96fa2-2"
|
|
34118
35502
|
})(["width:0;flex:1;@media (orientation:portrait){display:none;}"]);
|
|
34119
|
-
var Title$
|
|
35503
|
+
var Title$c = /*#__PURE__*/styled.p.withConfig({
|
|
34120
35504
|
displayName: "Spell__Title",
|
|
34121
35505
|
componentId: "sc-j96fa2-3"
|
|
34122
35506
|
})(["display:flex;flex-wrap:wrap;align-items:center;margin-bottom:5px;margin:0;span{font-size:", " !important;font-weight:bold !important;color:", " !important;margin-right:0.5rem;}.spell{font-size:", " !important;font-weight:normal !important;color:", " !important;}"], uiFonts.size.medium, uiColors.yellow, uiFonts.size.small, uiColors.lightGray);
|
|
34123
|
-
var Description$
|
|
35507
|
+
var Description$5 = /*#__PURE__*/styled.div.withConfig({
|
|
34124
35508
|
displayName: "Spell__Description",
|
|
34125
35509
|
componentId: "sc-j96fa2-4"
|
|
34126
35510
|
})(["font-size:", " !important;line-height:1.1 !important;"], uiFonts.size.small);
|
|
@@ -34132,7 +35516,7 @@ var Cost = /*#__PURE__*/styled.p.withConfig({
|
|
|
34132
35516
|
displayName: "Spell__Cost",
|
|
34133
35517
|
componentId: "sc-j96fa2-6"
|
|
34134
35518
|
})(["display:flex;align-items:center;flex-direction:column;gap:0.5rem;div{z-index:1;}.mana{position:relative;font-size:", ";font-weight:bold;z-index:1;&::after{position:absolute;content:'';top:0;left:0;background-color:", ";width:100%;height:100%;border-radius:50%;transform:scale(1.8);filter:blur(10px);z-index:-1;}}"], uiFonts.size.medium, uiColors.blue);
|
|
34135
|
-
var Overlay = /*#__PURE__*/styled.p.withConfig({
|
|
35519
|
+
var Overlay$1 = /*#__PURE__*/styled.p.withConfig({
|
|
34136
35520
|
displayName: "Spell__Overlay",
|
|
34137
35521
|
componentId: "sc-j96fa2-7"
|
|
34138
35522
|
})(["margin:0 !important;position:absolute;top:0;left:0;width:100%;height:100%;border-radius:1rem;display:flex;justify-content:center;align-items:center;color:", ";font-size:", " !important;font-weight:bold;z-index:10;background-color:rgba(0 0 0 / 0.2);"], uiColors.yellow, uiFonts.size.large);
|
|
@@ -34180,7 +35564,7 @@ var Spellbook = function Spellbook(_ref) {
|
|
|
34180
35564
|
height: "inherit",
|
|
34181
35565
|
cancelDrag: "#spellbook-search, #shortcuts_list, .spell",
|
|
34182
35566
|
scale: scale
|
|
34183
|
-
}, React.createElement(Container$
|
|
35567
|
+
}, React.createElement(Container$G, null, React.createElement(Title$d, null, "Learned Spells"), React.createElement(ShortcutsSetter, {
|
|
34184
35568
|
setSettingShortcutIndex: setSettingShortcutIndex,
|
|
34185
35569
|
settingShortcutIndex: settingShortcutIndex,
|
|
34186
35570
|
shortcuts: shortcuts,
|
|
@@ -34196,7 +35580,7 @@ var Spellbook = function Spellbook(_ref) {
|
|
|
34196
35580
|
onFocus: onInputFocus,
|
|
34197
35581
|
onBlur: onInputBlur,
|
|
34198
35582
|
id: "spellbook-search"
|
|
34199
|
-
}), React.createElement(SpellList, null, spellsToDisplay.map(function (spell) {
|
|
35583
|
+
}), React.createElement(SpellList$1, null, spellsToDisplay.map(function (spell) {
|
|
34200
35584
|
return React.createElement(Fragment, {
|
|
34201
35585
|
key: spell.key
|
|
34202
35586
|
}, React.createElement(Spell, Object.assign({
|
|
@@ -34212,15 +35596,15 @@ var Spellbook = function Spellbook(_ref) {
|
|
|
34212
35596
|
}, spell)));
|
|
34213
35597
|
}))));
|
|
34214
35598
|
};
|
|
34215
|
-
var Title$
|
|
35599
|
+
var Title$d = /*#__PURE__*/styled.h1.withConfig({
|
|
34216
35600
|
displayName: "Spellbook__Title",
|
|
34217
35601
|
componentId: "sc-r02nfq-0"
|
|
34218
35602
|
})(["font-size:", " !important;margin-bottom:0 !important;"], uiFonts.size.large);
|
|
34219
|
-
var Container$
|
|
35603
|
+
var Container$G = /*#__PURE__*/styled.div.withConfig({
|
|
34220
35604
|
displayName: "Spellbook__Container",
|
|
34221
35605
|
componentId: "sc-r02nfq-1"
|
|
34222
35606
|
})(["width:100%;height:100%;color:white;display:flex;flex-direction:column;"]);
|
|
34223
|
-
var SpellList = /*#__PURE__*/styled.div.withConfig({
|
|
35607
|
+
var SpellList$1 = /*#__PURE__*/styled.div.withConfig({
|
|
34224
35608
|
displayName: "Spellbook__SpellList",
|
|
34225
35609
|
componentId: "sc-r02nfq-2"
|
|
34226
35610
|
})(["width:100%;min-height:0;flex:1;overflow-y:auto;display:flex;flex-direction:column;gap:1.5rem;margin-top:1rem;"]);
|
|
@@ -34402,7 +35786,7 @@ var TimeWidget = function TimeWidget(_ref) {
|
|
|
34402
35786
|
return React.createElement(Draggable, {
|
|
34403
35787
|
scale: scale,
|
|
34404
35788
|
cancel: ".time-widget-close,.time-widget-container,.time-widget-container *"
|
|
34405
|
-
}, React.createElement(WidgetContainer, null, React.createElement(CloseButton$
|
|
35789
|
+
}, React.createElement(WidgetContainer, null, React.createElement(CloseButton$8, {
|
|
34406
35790
|
onPointerDown: onClose,
|
|
34407
35791
|
className: "time-widget-close"
|
|
34408
35792
|
}, "X"), React.createElement(DayNightContainer, {
|
|
@@ -34419,7 +35803,7 @@ var Time = /*#__PURE__*/styled.div.withConfig({
|
|
|
34419
35803
|
displayName: "TimeWidget__Time",
|
|
34420
35804
|
componentId: "sc-1ja236h-1"
|
|
34421
35805
|
})(["top:0.75rem;right:0.5rem;position:absolute;font-size:", ";color:white;"], uiFonts.size.small);
|
|
34422
|
-
var CloseButton$
|
|
35806
|
+
var CloseButton$8 = /*#__PURE__*/styled.p.withConfig({
|
|
34423
35807
|
displayName: "TimeWidget__CloseButton",
|
|
34424
35808
|
componentId: "sc-1ja236h-2"
|
|
34425
35809
|
})(["position:absolute;top:-0.5rem;margin:0;right:-0.2rem;font-size:", " !important;z-index:1;"], uiFonts.size.small);
|
|
@@ -34528,7 +35912,7 @@ var TradingItemRow = function TradingItemRow(_ref) {
|
|
|
34528
35912
|
}
|
|
34529
35913
|
return null;
|
|
34530
35914
|
};
|
|
34531
|
-
return React.createElement(ItemWrapper, null, React.createElement(ItemIconContainer$1, null, React.createElement(SpriteContainer$
|
|
35915
|
+
return React.createElement(ItemWrapper, null, React.createElement(ItemIconContainer$1, null, React.createElement(SpriteContainer$5, null, React.createElement(ItemInfoWrapper, {
|
|
34532
35916
|
atlasIMG: atlasIMG,
|
|
34533
35917
|
atlasJSON: atlasJSON,
|
|
34534
35918
|
equipmentSet: equipmentSet,
|
|
@@ -34600,7 +35984,7 @@ var ItemIconContainer$1 = /*#__PURE__*/styled.div.withConfig({
|
|
|
34600
35984
|
displayName: "TradingItemRow__ItemIconContainer",
|
|
34601
35985
|
componentId: "sc-mja0b5-3"
|
|
34602
35986
|
})(["display:flex;justify-content:flex-start;align-items:center;flex:0 0 40px;"]);
|
|
34603
|
-
var SpriteContainer$
|
|
35987
|
+
var SpriteContainer$5 = /*#__PURE__*/styled.div.withConfig({
|
|
34604
35988
|
displayName: "TradingItemRow__SpriteContainer",
|
|
34605
35989
|
componentId: "sc-mja0b5-4"
|
|
34606
35990
|
})(["position:relative;top:-0.5rem;left:0;"]);
|
|
@@ -34698,7 +36082,7 @@ var TradingMenu = function TradingMenu(_ref) {
|
|
|
34698
36082
|
width: "500px",
|
|
34699
36083
|
cancelDrag: "#TraderContainer",
|
|
34700
36084
|
scale: scale
|
|
34701
|
-
}, React.createElement(Container$
|
|
36085
|
+
}, React.createElement(Container$H, null, React.createElement(Title$e, null, type.charAt(0).toUpperCase() + type.slice(1), " Menu"), React.createElement("hr", {
|
|
34702
36086
|
className: "golden"
|
|
34703
36087
|
}), React.createElement(ScrollWrapper, {
|
|
34704
36088
|
id: "TraderContainer"
|
|
@@ -34715,7 +36099,7 @@ var TradingMenu = function TradingMenu(_ref) {
|
|
|
34715
36099
|
scale: scale,
|
|
34716
36100
|
isBuy: isBuy()
|
|
34717
36101
|
});
|
|
34718
|
-
})), React.createElement(InfoSection, null, React.createElement(GoldInfo, null, React.createElement("p", null, "Available Gold:"), React.createElement("p", null, "$", characterAvailableGold.toFixed(2))), React.createElement(GoldInfo, null, React.createElement("p", null, "Total:"), React.createElement("p", null, "$", sum)), !hasGoldForSale() ? React.createElement(AlertText, null, "Sorry, not enough money.") : React.createElement(GoldInfo, null, React.createElement("p", null, "Final Gold:"), React.createElement("p", null, "$", getFinalGold().toFixed(2)))), React.createElement(ButtonWrapper$3, null, React.createElement(Button, {
|
|
36102
|
+
})), React.createElement(InfoSection$2, null, React.createElement(GoldInfo, null, React.createElement("p", null, "Available Gold:"), React.createElement("p", null, "$", characterAvailableGold.toFixed(2))), React.createElement(GoldInfo, null, React.createElement("p", null, "Total:"), React.createElement("p", null, "$", sum)), !hasGoldForSale() ? React.createElement(AlertText, null, "Sorry, not enough money.") : React.createElement(GoldInfo, null, React.createElement("p", null, "Final Gold:"), React.createElement("p", null, "$", getFinalGold().toFixed(2)))), React.createElement(ButtonWrapper$3, null, React.createElement(Button, {
|
|
34719
36103
|
buttonType: ButtonTypes.RPGUIButton,
|
|
34720
36104
|
disabled: !hasGoldForSale(),
|
|
34721
36105
|
onPointerDown: function onPointerDown() {
|
|
@@ -34726,11 +36110,11 @@ var TradingMenu = function TradingMenu(_ref) {
|
|
|
34726
36110
|
onPointerDown: onClose
|
|
34727
36111
|
}, "Cancel"))));
|
|
34728
36112
|
};
|
|
34729
|
-
var Container$
|
|
36113
|
+
var Container$H = /*#__PURE__*/styled.div.withConfig({
|
|
34730
36114
|
displayName: "TradingMenu__Container",
|
|
34731
36115
|
componentId: "sc-1wjsz1l-0"
|
|
34732
36116
|
})(["width:100%;"]);
|
|
34733
|
-
var Title$
|
|
36117
|
+
var Title$e = /*#__PURE__*/styled.h1.withConfig({
|
|
34734
36118
|
displayName: "TradingMenu__Title",
|
|
34735
36119
|
componentId: "sc-1wjsz1l-1"
|
|
34736
36120
|
})(["font-size:0.7rem !important;color:yellow !important;text-align:center;"]);
|
|
@@ -34738,7 +36122,7 @@ var ScrollWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
|
34738
36122
|
displayName: "TradingMenu__ScrollWrapper",
|
|
34739
36123
|
componentId: "sc-1wjsz1l-2"
|
|
34740
36124
|
})(["overflow-y:scroll;height:250px;width:100%;margin-top:0.3rem;overflow-x:hidden;padding:0 0.3rem;"]);
|
|
34741
|
-
var InfoSection = /*#__PURE__*/styled.div.withConfig({
|
|
36125
|
+
var InfoSection$2 = /*#__PURE__*/styled.div.withConfig({
|
|
34742
36126
|
displayName: "TradingMenu__InfoSection",
|
|
34743
36127
|
componentId: "sc-1wjsz1l-3"
|
|
34744
36128
|
})(["margin-top:0.3rem;padding:0 0.5rem;"]);
|
|
@@ -34760,11 +36144,11 @@ var Truncate = function Truncate(_ref) {
|
|
|
34760
36144
|
var _ref$maxLines = _ref.maxLines,
|
|
34761
36145
|
maxLines = _ref$maxLines === void 0 ? 1 : _ref$maxLines,
|
|
34762
36146
|
children = _ref.children;
|
|
34763
|
-
return React.createElement(Container$
|
|
36147
|
+
return React.createElement(Container$I, {
|
|
34764
36148
|
maxLines: maxLines
|
|
34765
36149
|
}, children);
|
|
34766
36150
|
};
|
|
34767
|
-
var Container$
|
|
36151
|
+
var Container$I = /*#__PURE__*/styled.div.withConfig({
|
|
34768
36152
|
displayName: "Truncate__Container",
|
|
34769
36153
|
componentId: "sc-6x00qb-0"
|
|
34770
36154
|
})(["display:-webkit-box;max-width:100%;max-height:100%;-webkit-line-clamp:", ";-webkit-box-orient:vertical;overflow:hidden;"], function (props) {
|
|
@@ -34872,7 +36256,7 @@ var TutorialStepper = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
34872
36256
|
};
|
|
34873
36257
|
});
|
|
34874
36258
|
}, [lessons, imageStyle]);
|
|
34875
|
-
return React.createElement(Container$
|
|
36259
|
+
return React.createElement(Container$J, null, React.createElement(Stepper, {
|
|
34876
36260
|
steps: generateLessons,
|
|
34877
36261
|
finalCTAButton: {
|
|
34878
36262
|
label: 'Close',
|
|
@@ -34889,7 +36273,7 @@ var LessonBody = /*#__PURE__*/styled.div.withConfig({
|
|
|
34889
36273
|
displayName: "TutorialStepper__LessonBody",
|
|
34890
36274
|
componentId: "sc-7tgzv2-1"
|
|
34891
36275
|
})([""]);
|
|
34892
|
-
var Container$
|
|
36276
|
+
var Container$J = /*#__PURE__*/styled.div.withConfig({
|
|
34893
36277
|
displayName: "TutorialStepper__Container",
|
|
34894
36278
|
componentId: "sc-7tgzv2-2"
|
|
34895
36279
|
})(["width:80%;max-width:600px;@media (max-width:600px){width:95%;}"]);
|
|
@@ -34910,5 +36294,5 @@ var LessonContainer = /*#__PURE__*/styled.div.withConfig({
|
|
|
34910
36294
|
componentId: "sc-7tgzv2-6"
|
|
34911
36295
|
})(["display:flex;flex-direction:column;justify-content:space-between;min-height:200px;p{font-size:0.7rem !important;}"]);
|
|
34912
36296
|
|
|
34913
|
-
export { ActionButtons, AsyncDropdown, Button, ButtonTypes, CharacterSelection, Chat, ChatDeprecated, ChatRevamp, CheckButton, CheckItem, CircularController, CraftBook, DraggableContainer, Dropdown, DropdownSelectorContainer, DynamicText, EquipmentSet, EquipmentSlotSpriteByType, ErrorBoundary, FriendList, GemSelector, HistoryDialog, ImageCarousel, ImgSide, Input, InputRadio, InternalTabs, ItemContainer$1 as ItemContainer, ItemPropertySimpleHandler, ItemQuantitySelectorModal, ItemSelector, ItemSlot, JoystickDPad, Leaderboard, ListMenu, Marketplace, MarketplaceRows, MultitabType, NPCDialog, NPCDialogType, NPCMultiDialog, PartyCreate, PartyDashboard, PartyInvite, PartyManager, PartyManagerRow, PartyRow, PlayersRow, ProgressBar, PropertySelect, QuantitySelectorModal, QuestInfo, QuestList, QuestionDialog, RPGUIContainer, RPGUIContainerTypes, RPGUIRoot, RangeSlider, RangeSliderType, SelectArrow, Shortcuts, SimpleImageCarousel, SkillProgressBar, SkillsContainer, SocialModal, Spellbook, SpriteFromAtlas, Stepper, TabBody, Table, TableCell, TableHeader, TableRow, TabsContainer, TextArea, TimeWidget, Tooltip, TradingMenu, Truncate, TutorialStepper, UserActionLink, _RPGUI, formatQuestStatus, formatQuestText, getMockedPlayersRowsLeader, getMockedPlayersRowsNotLeader, getQuestStatusColor, mockedPartyManager, mockedPartyRows, mockedPlayersRows, mockedPlayersRows2, useEventListener };
|
|
36297
|
+
export { ActionButtons, AsyncDropdown, Button, ButtonTypes, CharacterSelection, Chat, ChatDeprecated, ChatRevamp, CheckButton, CheckItem, CircularController, CraftBook, DraggableContainer, Dropdown, DropdownSelectorContainer, DynamicText, EquipmentSet, EquipmentSlotSpriteByType, ErrorBoundary, FriendList, GemSelector, HistoryDialog, ImageCarousel, ImgSide, InformationCenter, Input, InputRadio, InternalTabs, ItemContainer$1 as ItemContainer, ItemPropertySimpleHandler, ItemQuantitySelectorModal, ItemSelector, ItemSlot, JoystickDPad, Leaderboard, ListMenu, Marketplace, MarketplaceRows, MultitabType, NPCDialog, NPCDialogType, NPCMultiDialog, PartyCreate, PartyDashboard, PartyInvite, PartyManager, PartyManagerRow, PartyRow, PlayersRow, ProgressBar, PropertySelect, QuantitySelectorModal, QuestInfo, QuestList, QuestionDialog, RPGUIContainer, RPGUIContainerTypes, RPGUIRoot, RangeSlider, RangeSliderType, SelectArrow, Shortcuts, SimpleImageCarousel, SkillProgressBar, SkillsContainer, SocialModal, Spellbook, SpriteFromAtlas, Stepper, TabBody, Table, TableCell, TableHeader, TableRow, TabsContainer, TextArea, TimeWidget, Tooltip, TradingMenu, Truncate, TutorialStepper, UserActionLink, _RPGUI, formatQuestStatus, formatQuestText, getMockedPlayersRowsLeader, getMockedPlayersRowsNotLeader, getQuestStatusColor, mockedPartyManager, mockedPartyRows, mockedPlayersRows, mockedPlayersRows2, useEventListener };
|
|
34914
36298
|
//# sourceMappingURL=long-bow.esm.js.map
|