@rpg-engine/long-bow 0.8.139 → 0.8.141
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/components/Marketplace/ManagmentPanel.d.ts +1 -1
- package/dist/components/Marketplace/Marketplace.d.ts +3 -0
- package/dist/components/Marketplace/MarketplaceRows.d.ts +13 -1
- package/dist/components/Marketplace/MarketplaceSettingsPanel.d.ts +7 -0
- package/dist/components/shared/Tabs/Tabs.d.ts +13 -0
- package/dist/components/shared/Tabs/index.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/long-bow.cjs.development.js +659 -275
- 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 +657 -275
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +3 -2
- package/src/components/ConfirmModal.tsx +50 -27
- package/src/components/Marketplace/BuyPanel.tsx +199 -123
- package/src/components/Marketplace/ManagmentPanel.tsx +175 -95
- package/src/components/Marketplace/Marketplace.tsx +61 -25
- package/src/components/Marketplace/MarketplaceRows.tsx +244 -81
- package/src/components/Marketplace/MarketplaceSettingsPanel.tsx +127 -0
- package/src/components/shared/Tabs/Tabs.tsx +60 -0
- package/src/components/shared/Tabs/index.ts +1 -0
- package/src/index.tsx +1 -0
- package/src/stories/Features/trading/Marketplace.stories.tsx +2 -0
package/dist/long-bow.esm.js
CHANGED
|
@@ -14,10 +14,22 @@ import { camelCase, debounce } from 'lodash-es';
|
|
|
14
14
|
import { observer } from 'mobx-react-lite';
|
|
15
15
|
import { AiFillFilter, AiOutlineFilter, AiFillCaretRight } from 'react-icons/ai';
|
|
16
16
|
import { HexColorPicker } from 'react-colorful';
|
|
17
|
+
import { Settings2 } from 'pixelarticons/react/Settings2';
|
|
18
|
+
import { Store as Store$1 } from 'pixelarticons/react/Store';
|
|
19
|
+
import { User } from 'pixelarticons/react/User';
|
|
20
|
+
import { SortVertical } from 'pixelarticons/react/SortVertical';
|
|
21
|
+
import { Coins } from 'pixelarticons/react/Coins';
|
|
22
|
+
import { Delete } from 'pixelarticons/react/Delete';
|
|
23
|
+
import { ShoppingBag } from 'pixelarticons/react/ShoppingBag';
|
|
17
24
|
import 'rpgui/rpgui.css';
|
|
18
25
|
import 'rpgui/rpgui.min.js';
|
|
19
26
|
import capitalize from 'lodash-es/capitalize';
|
|
20
27
|
|
|
28
|
+
function _arrayLikeToArray(r, a) {
|
|
29
|
+
(null == a || a > r.length) && (a = r.length);
|
|
30
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
31
|
+
return n;
|
|
32
|
+
}
|
|
21
33
|
function asyncGeneratorStep(n, t, e, r, o, a, c) {
|
|
22
34
|
try {
|
|
23
35
|
var i = n[a](c),
|
|
@@ -43,6 +55,23 @@ function _asyncToGenerator(n) {
|
|
|
43
55
|
});
|
|
44
56
|
};
|
|
45
57
|
}
|
|
58
|
+
function _createForOfIteratorHelperLoose(r, e) {
|
|
59
|
+
var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
60
|
+
if (t) return (t = t.call(r)).next.bind(t);
|
|
61
|
+
if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
|
|
62
|
+
t && (r = t);
|
|
63
|
+
var o = 0;
|
|
64
|
+
return function () {
|
|
65
|
+
return o >= r.length ? {
|
|
66
|
+
done: !0
|
|
67
|
+
} : {
|
|
68
|
+
done: !1,
|
|
69
|
+
value: r[o++]
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
74
|
+
}
|
|
46
75
|
function _extends() {
|
|
47
76
|
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
48
77
|
for (var e = 1; e < arguments.length; e++) {
|
|
@@ -373,6 +402,13 @@ function _setPrototypeOf(t, e) {
|
|
|
373
402
|
return t.__proto__ = e, t;
|
|
374
403
|
}, _setPrototypeOf(t, e);
|
|
375
404
|
}
|
|
405
|
+
function _unsupportedIterableToArray(r, a) {
|
|
406
|
+
if (r) {
|
|
407
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
408
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
409
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
|
410
|
+
}
|
|
411
|
+
}
|
|
376
412
|
|
|
377
413
|
var img = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAASRJREFUWIXtl7EKwjAQhn8llg4dOig4uApu+gaib+Fj+CL6MO6Kk6N1ExRdHDJ06NChFEEnL6kmGkE5wf7TJVzbn+96uRb4d1VcE+tB62VO4HkUp3l+MeWEvk/P3Md7VF0NfEvsBsT9hg21C940zynuNZvG+0RS6tdW2AmwGxBAEXvo+xQnWUa4XPAOOmdtpeLF9qHSJHYC7AYEYMfuhtosHXskJcWB59FBFOMHCLAbEIAduwvqd6V3E/ADBNgN3LqA3kz9rJ6MQkqcre2HyTvSZ0rZBYDqAtrot2tUjuE0MY7d+Tg0bT+R6qxyHN9LAECcnmhjuSt8EVE5ui3VBbbS6LKVKZLFNTsBdgMf/S/Qy7Q5nY1lajfUOF4dD/wE2A2UYtcVzKJVOti5A44AAAAASUVORK5CYII=';
|
|
378
414
|
|
|
@@ -30503,7 +30539,10 @@ var ConfirmModal = function ConfirmModal(_ref) {
|
|
|
30503
30539
|
onTouchEnd: stopPropagationTouch,
|
|
30504
30540
|
onTouchMove: stopPropagationTouch,
|
|
30505
30541
|
onPointerDown: stopPropagationPointer
|
|
30506
|
-
}, React.createElement(
|
|
30542
|
+
}, React.createElement(Header$2, null, React.createElement(Title$3, null, "Confirm"), React.createElement(CloseButton$4, {
|
|
30543
|
+
onPointerDown: handleClose,
|
|
30544
|
+
"aria-label": "Close"
|
|
30545
|
+
}, React.createElement(FaTimes, null))), React.createElement(MessageContainer, null, typeof message === 'string' ? React.createElement(Message$1, null, message) : message), React.createElement(ButtonsContainer$2, null, React.createElement(CancelButtonWrapper, null, React.createElement(Button, {
|
|
30507
30546
|
buttonType: ButtonTypes.RPGUIButton,
|
|
30508
30547
|
onPointerDown: handleClose
|
|
30509
30548
|
}, "No")), React.createElement(Button, {
|
|
@@ -30522,22 +30561,34 @@ var ModalContainer = /*#__PURE__*/styled.div.withConfig({
|
|
|
30522
30561
|
var ModalContent = /*#__PURE__*/styled.div.withConfig({
|
|
30523
30562
|
displayName: "ConfirmModal__ModalContent",
|
|
30524
30563
|
componentId: "sc-11qkyu1-2"
|
|
30525
|
-
})(["background
|
|
30564
|
+
})(["background:#1a1a2e;border:2px solid #f59e0b;border-radius:8px;padding:20px 24px 24px;min-width:300px;max-width:90%;display:flex;flex-direction:column;gap:16px;pointer-events:auto;animation:scaleIn 0.15s ease-out;@keyframes scaleIn{from{transform:scale(0.85);opacity:0;}to{transform:scale(1);opacity:1;}}@media (max-width:768px){width:85%;}"]);
|
|
30565
|
+
var Header$2 = /*#__PURE__*/styled.div.withConfig({
|
|
30566
|
+
displayName: "ConfirmModal__Header",
|
|
30567
|
+
componentId: "sc-11qkyu1-3"
|
|
30568
|
+
})(["display:flex;align-items:center;justify-content:space-between;"]);
|
|
30569
|
+
var Title$3 = /*#__PURE__*/styled.h3.withConfig({
|
|
30570
|
+
displayName: "ConfirmModal__Title",
|
|
30571
|
+
componentId: "sc-11qkyu1-4"
|
|
30572
|
+
})(["margin:0;font-family:'Press Start 2P',cursive;font-size:0.7rem;color:#fef08a;"]);
|
|
30573
|
+
var CloseButton$4 = /*#__PURE__*/styled.button.withConfig({
|
|
30574
|
+
displayName: "ConfirmModal__CloseButton",
|
|
30575
|
+
componentId: "sc-11qkyu1-5"
|
|
30576
|
+
})(["background:none;border:none;color:rgba(255,255,255,0.6);cursor:pointer;font-size:1rem;padding:4px;display:flex;align-items:center;&:hover{color:#ffffff;}"]);
|
|
30526
30577
|
var MessageContainer = /*#__PURE__*/styled.div.withConfig({
|
|
30527
30578
|
displayName: "ConfirmModal__MessageContainer",
|
|
30528
|
-
componentId: "sc-11qkyu1-
|
|
30529
|
-
})(["
|
|
30579
|
+
componentId: "sc-11qkyu1-6"
|
|
30580
|
+
})(["text-align:center;"]);
|
|
30530
30581
|
var Message$1 = /*#__PURE__*/styled.p.withConfig({
|
|
30531
30582
|
displayName: "ConfirmModal__Message",
|
|
30532
|
-
componentId: "sc-11qkyu1-
|
|
30533
|
-
})(["margin:0;font-size:
|
|
30583
|
+
componentId: "sc-11qkyu1-7"
|
|
30584
|
+
})(["margin:0;font-family:'Press Start 2P',cursive;font-size:0.6rem;color:rgba(255,255,255,0.85);line-height:1.8;"]);
|
|
30534
30585
|
var ButtonsContainer$2 = /*#__PURE__*/styled.div.withConfig({
|
|
30535
30586
|
displayName: "ConfirmModal__ButtonsContainer",
|
|
30536
|
-
componentId: "sc-11qkyu1-
|
|
30537
|
-
})(["display:flex;justify-content:center;gap:20px;@media (max-width:768px){gap:30px;
|
|
30587
|
+
componentId: "sc-11qkyu1-8"
|
|
30588
|
+
})(["display:flex;justify-content:center;gap:20px;margin-top:4px;@media (max-width:768px){gap:30px;}"]);
|
|
30538
30589
|
var CancelButtonWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
30539
30590
|
displayName: "ConfirmModal__CancelButtonWrapper",
|
|
30540
|
-
componentId: "sc-11qkyu1-
|
|
30591
|
+
componentId: "sc-11qkyu1-9"
|
|
30541
30592
|
})(["filter:grayscale(0.7);"]);
|
|
30542
30593
|
|
|
30543
30594
|
var CTAButton = function CTAButton(_ref) {
|
|
@@ -30867,7 +30918,7 @@ var DCWalletModal = function DCWalletModal(_ref) {
|
|
|
30867
30918
|
onClick: stopPropagation,
|
|
30868
30919
|
onTouchStart: stopPropagation,
|
|
30869
30920
|
onPointerDown: stopPropagation
|
|
30870
|
-
}, React.createElement(Header$
|
|
30921
|
+
}, React.createElement(Header$3, null, React.createElement(Title$4, null, "DC Wallet"), React.createElement(CloseButton$5, {
|
|
30871
30922
|
onPointerDown: onClose,
|
|
30872
30923
|
"aria-label": "Close"
|
|
30873
30924
|
}, React.createElement(FaTimes, null))), React.createElement(WalletContainer, null, React.createElement(InternalTabs, {
|
|
@@ -30898,15 +30949,15 @@ var ModalContent$1 = /*#__PURE__*/styled.div.withConfig({
|
|
|
30898
30949
|
displayName: "DCWalletModal__ModalContent",
|
|
30899
30950
|
componentId: "sc-12xy88y-2"
|
|
30900
30951
|
})(["background:#1a1a2e;border:2px solid #f59e0b;border-radius:8px;padding:16px 20px 20px;min-width:400px;max-width:90%;display:flex;flex-direction:column;gap:12px;pointer-events:auto;animation:scaleIn 0.15s ease-out;@keyframes scaleIn{from{transform:scale(0.85);opacity:0;}to{transform:scale(1);opacity:1;}}"]);
|
|
30901
|
-
var Header$
|
|
30952
|
+
var Header$3 = /*#__PURE__*/styled.div.withConfig({
|
|
30902
30953
|
displayName: "DCWalletModal__Header",
|
|
30903
30954
|
componentId: "sc-12xy88y-3"
|
|
30904
30955
|
})(["display:flex;align-items:center;justify-content:space-between;"]);
|
|
30905
|
-
var Title$
|
|
30956
|
+
var Title$4 = /*#__PURE__*/styled.h3.withConfig({
|
|
30906
30957
|
displayName: "DCWalletModal__Title",
|
|
30907
30958
|
componentId: "sc-12xy88y-4"
|
|
30908
30959
|
})(["margin:0;font-family:'Press Start 2P',cursive;font-size:0.7rem;color:#fef08a;"]);
|
|
30909
|
-
var CloseButton$
|
|
30960
|
+
var CloseButton$5 = /*#__PURE__*/styled.button.withConfig({
|
|
30910
30961
|
displayName: "DCWalletModal__CloseButton",
|
|
30911
30962
|
componentId: "sc-12xy88y-5"
|
|
30912
30963
|
})(["background:none;border:none;color:rgba(255,255,255,0.6);cursor:pointer;font-size:1rem;padding:4px;display:flex;align-items:center;&:hover{color:#ffffff;}"]);
|
|
@@ -32533,7 +32584,7 @@ var ImageCarousel = function ImageCarousel(_ref) {
|
|
|
32533
32584
|
onPointerDown: function onPointerDown() {
|
|
32534
32585
|
return goToNextImage();
|
|
32535
32586
|
}
|
|
32536
|
-
}))), onCloseButton && React.createElement(CloseButton$
|
|
32587
|
+
}))), onCloseButton && React.createElement(CloseButton$6, {
|
|
32537
32588
|
className: "container-close",
|
|
32538
32589
|
onPointerDown: onCloseButton
|
|
32539
32590
|
}, "X"));
|
|
@@ -32564,7 +32615,7 @@ var Description$1 = /*#__PURE__*/styled.div.withConfig({
|
|
|
32564
32615
|
}, function (props) {
|
|
32565
32616
|
return props.isTextFixed ? 'none' : 'rgba(0, 0, 0, 0.6)';
|
|
32566
32617
|
});
|
|
32567
|
-
var CloseButton$
|
|
32618
|
+
var CloseButton$6 = /*#__PURE__*/styled.div.withConfig({
|
|
32568
32619
|
displayName: "ImageCarousel__CloseButton",
|
|
32569
32620
|
componentId: "sc-jl6f8-4"
|
|
32570
32621
|
})(["position:absolute;top:3px;right:0px;color:white;z-index:22;font-size:1.5rem;@media (max-width:950px){font-size:1.7rem;padding:12px;}"]);
|
|
@@ -32981,16 +33032,16 @@ var BaseInformationDetails = function BaseInformationDetails(_ref) {
|
|
|
32981
33032
|
children = _ref.children;
|
|
32982
33033
|
return React.createElement(Container$t, null, React.createElement(Overlay$2, {
|
|
32983
33034
|
onClick: onBack
|
|
32984
|
-
}), React.createElement(Modal, null, React.createElement(CloseButton$
|
|
33035
|
+
}), React.createElement(Modal, null, React.createElement(CloseButton$7, {
|
|
32985
33036
|
onClick: onBack
|
|
32986
|
-
}, React.createElement(FaTimes, null)), React.createElement(Header$
|
|
33037
|
+
}, React.createElement(FaTimes, null)), React.createElement(Header$4, null, React.createElement(SpriteContainer$2, null, React.createElement(SpriteFromAtlas, {
|
|
32987
33038
|
atlasJSON: atlasJSON,
|
|
32988
33039
|
atlasIMG: atlasIMG,
|
|
32989
33040
|
spriteKey: spriteKey,
|
|
32990
33041
|
width: 32,
|
|
32991
33042
|
height: 32,
|
|
32992
33043
|
imgScale: 1
|
|
32993
|
-
})), React.createElement(Title$
|
|
33044
|
+
})), React.createElement(Title$5, null, name)), React.createElement(Content$1, null, children)));
|
|
32994
33045
|
};
|
|
32995
33046
|
var Container$t = /*#__PURE__*/styled.div.withConfig({
|
|
32996
33047
|
displayName: "BaseInformationDetails__Container",
|
|
@@ -33004,11 +33055,11 @@ var Modal = /*#__PURE__*/styled.div.withConfig({
|
|
|
33004
33055
|
displayName: "BaseInformationDetails__Modal",
|
|
33005
33056
|
componentId: "sc-1vguuz8-2"
|
|
33006
33057
|
})(["position:relative;background-color:rgba(0,0,0,0.95);border-radius:4px;padding:12px;overflow:hidden;z-index:1;font-family:'Press Start 2P',cursive;border:1px solid ", ";box-shadow:0 2px 4px rgba(0,0,0,0.2);width:90%;height:90vh;max-width:800px;max-height:800px;@media (max-width:768px){width:100%;height:100%;border-radius:0;padding:8px;}&::-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);
|
|
33007
|
-
var CloseButton$
|
|
33058
|
+
var CloseButton$7 = /*#__PURE__*/styled.button.withConfig({
|
|
33008
33059
|
displayName: "BaseInformationDetails__CloseButton",
|
|
33009
33060
|
componentId: "sc-1vguuz8-3"
|
|
33010
33061
|
})(["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);
|
|
33011
|
-
var Header$
|
|
33062
|
+
var Header$4 = /*#__PURE__*/styled.div.withConfig({
|
|
33012
33063
|
displayName: "BaseInformationDetails__Header",
|
|
33013
33064
|
componentId: "sc-1vguuz8-4"
|
|
33014
33065
|
})(["display:flex;align-items:center;gap:16px;margin-bottom:24px;"]);
|
|
@@ -33016,7 +33067,7 @@ var Content$1 = /*#__PURE__*/styled.div.withConfig({
|
|
|
33016
33067
|
displayName: "BaseInformationDetails__Content",
|
|
33017
33068
|
componentId: "sc-1vguuz8-5"
|
|
33018
33069
|
})(["display:flex;flex-direction:column;gap:12px;height:calc(100% - 80px);overflow-y:auto;overflow-x:hidden;padding-right:6px;margin-right:-6px;@media (max-width:768px){height:calc(100% - 64px);gap:8px;padding-right:4px;margin-right:-4px;}"]);
|
|
33019
|
-
var Title$
|
|
33070
|
+
var Title$5 = /*#__PURE__*/styled.h2.withConfig({
|
|
33020
33071
|
displayName: "BaseInformationDetails__Title",
|
|
33021
33072
|
componentId: "sc-1vguuz8-6"
|
|
33022
33073
|
})(["color:", ";font-size:1rem;margin:0;"], uiColors.yellow);
|
|
@@ -33036,21 +33087,21 @@ var Collapsible = function Collapsible(_ref) {
|
|
|
33036
33087
|
setIsOpen = _useState[1];
|
|
33037
33088
|
return React.createElement(Container$u, {
|
|
33038
33089
|
className: className
|
|
33039
|
-
}, React.createElement(Header$
|
|
33090
|
+
}, React.createElement(Header$5, {
|
|
33040
33091
|
onClick: function onClick() {
|
|
33041
33092
|
return setIsOpen(!isOpen);
|
|
33042
33093
|
}
|
|
33043
|
-
}, React.createElement(Title$
|
|
33094
|
+
}, React.createElement(Title$6, null, title), React.createElement(Icon$1, null, isOpen ? React.createElement(FaChevronUp, null) : React.createElement(FaChevronDown, null))), isOpen && React.createElement(Content$2, null, children));
|
|
33044
33095
|
};
|
|
33045
33096
|
var Container$u = /*#__PURE__*/styled.div.withConfig({
|
|
33046
33097
|
displayName: "Collapsible__Container",
|
|
33047
33098
|
componentId: "sc-s4h8ey-0"
|
|
33048
33099
|
})(["background:rgba(0,0,0,0.3);border-radius:4px;overflow:hidden;border:1px solid ", ";"], uiColors.darkGray);
|
|
33049
|
-
var Header$
|
|
33100
|
+
var Header$5 = /*#__PURE__*/styled.div.withConfig({
|
|
33050
33101
|
displayName: "Collapsible__Header",
|
|
33051
33102
|
componentId: "sc-s4h8ey-1"
|
|
33052
33103
|
})(["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);}"]);
|
|
33053
|
-
var Title$
|
|
33104
|
+
var Title$6 = /*#__PURE__*/styled.h3.withConfig({
|
|
33054
33105
|
displayName: "Collapsible__Title",
|
|
33055
33106
|
componentId: "sc-s4h8ey-2"
|
|
33056
33107
|
})(["margin:0;font-size:0.6rem;color:", ";font-family:'Press Start 2P',cursive;letter-spacing:0.5px;"], uiColors.yellow);
|
|
@@ -33397,7 +33448,7 @@ var AdvancedFilters = function AdvancedFilters(_ref) {
|
|
|
33397
33448
|
zIndex: 9999
|
|
33398
33449
|
},
|
|
33399
33450
|
"$isMobile": isMobile
|
|
33400
|
-
}, React.createElement(FilterHeader, null, React.createElement(FilterTitle, null, "Advanced Filters"), React.createElement(CloseButton$
|
|
33451
|
+
}, React.createElement(FilterHeader, null, React.createElement(FilterTitle, null, "Advanced Filters"), React.createElement(CloseButton$8, {
|
|
33401
33452
|
onClick: handleClose
|
|
33402
33453
|
}, "\xD7")), sections.map(renderFilterSection), hasActiveFilters && React.createElement(ClearFiltersButton, {
|
|
33403
33454
|
onClick: onClearAll
|
|
@@ -33469,7 +33520,7 @@ var ClearFiltersButton = /*#__PURE__*/styled.button.withConfig({
|
|
|
33469
33520
|
displayName: "AdvancedFilters__ClearFiltersButton",
|
|
33470
33521
|
componentId: "sc-1xj6ldr-10"
|
|
33471
33522
|
})(["width:100%;background:transparent;color:#666;border:none;padding:0.75rem 0;margin-top:0.5rem;cursor:pointer;font-size:0.65rem;transition:all 0.2s;border-top:1px solid #333;text-transform:uppercase;letter-spacing:0.05em;font-family:'Press Start 2P',cursive;&:hover{color:#ffd700;}"]);
|
|
33472
|
-
var CloseButton$
|
|
33523
|
+
var CloseButton$8 = /*#__PURE__*/styled.button.withConfig({
|
|
33473
33524
|
displayName: "AdvancedFilters__CloseButton",
|
|
33474
33525
|
componentId: "sc-1xj6ldr-11"
|
|
33475
33526
|
})(["background:transparent;border:none;color:#999;font-size:1.5rem;line-height:1;cursor:pointer;padding:0;margin:0;display:flex;align-items:center;justify-content:center;width:24px;height:24px;&:hover{color:#ffd700;}"]);
|
|
@@ -34811,7 +34862,7 @@ var QuantitySelector = function QuantitySelector(_ref) {
|
|
|
34811
34862
|
return React.createElement(StyledContainer, {
|
|
34812
34863
|
type: RPGUIContainerTypes.Framed,
|
|
34813
34864
|
width: "25rem"
|
|
34814
|
-
}, React.createElement(CloseButton$
|
|
34865
|
+
}, React.createElement(CloseButton$9, {
|
|
34815
34866
|
className: "container-close",
|
|
34816
34867
|
onPointerDown: onClose
|
|
34817
34868
|
}, "X"), React.createElement("h2", null, title), React.createElement(StyledForm, {
|
|
@@ -34856,7 +34907,7 @@ var StyledContainer = /*#__PURE__*/styled(RPGUIContainer).withConfig({
|
|
|
34856
34907
|
displayName: "QuantitySelector__StyledContainer",
|
|
34857
34908
|
componentId: "sc-z4ut57-0"
|
|
34858
34909
|
})(["position:relative;display:flex;flex-direction:column;align-items:center;padding:1rem;h2{margin:0;margin-bottom:1rem;font-size:1rem;}"]);
|
|
34859
|
-
var CloseButton$
|
|
34910
|
+
var CloseButton$9 = /*#__PURE__*/styled.div.withConfig({
|
|
34860
34911
|
displayName: "QuantitySelector__CloseButton",
|
|
34861
34912
|
componentId: "sc-z4ut57-1"
|
|
34862
34913
|
})(["position:absolute;top:3px;right:0px;color:white;z-index:22;font-size:1.5rem;cursor:pointer;"]);
|
|
@@ -35169,7 +35220,7 @@ var ColorSelector = function ColorSelector(_ref) {
|
|
|
35169
35220
|
cancelDrag: ".react-colorful",
|
|
35170
35221
|
width: "25rem",
|
|
35171
35222
|
onCloseButton: onClose
|
|
35172
|
-
}, React.createElement(Container$y, null, React.createElement(Header$
|
|
35223
|
+
}, React.createElement(Container$y, null, React.createElement(Header$6, null, "Select Color"), React.createElement(ColorPickerWrapper, null, React.createElement(HexColorPicker, {
|
|
35173
35224
|
color: currentColor,
|
|
35174
35225
|
onChange: function onChange(color) {
|
|
35175
35226
|
setCurrentColor(color);
|
|
@@ -35189,7 +35240,7 @@ var Container$y = /*#__PURE__*/styled.div.withConfig({
|
|
|
35189
35240
|
displayName: "ItemPropertyColorSelector__Container",
|
|
35190
35241
|
componentId: "sc-me1r4z-0"
|
|
35191
35242
|
})(["text-align:center;background:inherit;display:flex;flex-direction:column;gap:1.5rem;align-items:center;width:100%;max-width:24rem;margin:0 auto;"]);
|
|
35192
|
-
var Header$
|
|
35243
|
+
var Header$6 = /*#__PURE__*/styled.h2.withConfig({
|
|
35193
35244
|
displayName: "ItemPropertyColorSelector__Header",
|
|
35194
35245
|
componentId: "sc-me1r4z-1"
|
|
35195
35246
|
})(["color:white;font-size:1rem;margin:0;width:100%;text-align:center;"]);
|
|
@@ -35260,7 +35311,7 @@ var GemSelector = function GemSelector(_ref) {
|
|
|
35260
35311
|
scale: scale,
|
|
35261
35312
|
cancelDrag: ".gem-selector-container",
|
|
35262
35313
|
onCloseButton: onClose
|
|
35263
|
-
}, React.createElement(ContentWrapper$1, null, React.createElement(Header$
|
|
35314
|
+
}, React.createElement(ContentWrapper$1, null, React.createElement(Header$7, null, React.createElement(Title$7, 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) {
|
|
35264
35315
|
return React.createElement(GemItem, {
|
|
35265
35316
|
key: gem.key + "-" + index
|
|
35266
35317
|
}, React.createElement(CheckItemWrapper$1, null, React.createElement(CheckItem, {
|
|
@@ -35291,7 +35342,7 @@ var GemSelector = function GemSelector(_ref) {
|
|
|
35291
35342
|
disabled: selectedGems.length === 0
|
|
35292
35343
|
}, "Confirm"))));
|
|
35293
35344
|
};
|
|
35294
|
-
var Title$
|
|
35345
|
+
var Title$7 = /*#__PURE__*/styled.h1.withConfig({
|
|
35295
35346
|
displayName: "GemSelector__Title",
|
|
35296
35347
|
componentId: "sc-gbt8g4-0"
|
|
35297
35348
|
})(["font-size:0.8rem;color:", " !important;"], uiColors.yellow);
|
|
@@ -35299,7 +35350,7 @@ var Subtitle = /*#__PURE__*/styled.h2.withConfig({
|
|
|
35299
35350
|
displayName: "GemSelector__Subtitle",
|
|
35300
35351
|
componentId: "sc-gbt8g4-1"
|
|
35301
35352
|
})(["font-size:0.6rem;color:", ";margin:0;"], uiColors.white);
|
|
35302
|
-
var Header$
|
|
35353
|
+
var Header$7 = /*#__PURE__*/styled.div.withConfig({
|
|
35303
35354
|
displayName: "GemSelector__Header",
|
|
35304
35355
|
componentId: "sc-gbt8g4-2"
|
|
35305
35356
|
})(["text-align:center;padding:5px;border-bottom:2px solid #444;"]);
|
|
@@ -35364,7 +35415,7 @@ var ItemSelector = function ItemSelector(_ref) {
|
|
|
35364
35415
|
style: {
|
|
35365
35416
|
width: '100%'
|
|
35366
35417
|
}
|
|
35367
|
-
}, React.createElement(Title$
|
|
35418
|
+
}, React.createElement(Title$8, null, 'Harvesting instruments'), React.createElement(Subtitle$1, null, 'Use the tool, you need it'), React.createElement("hr", {
|
|
35368
35419
|
className: "golden"
|
|
35369
35420
|
})), React.createElement(RadioInputScroller$1, null, options == null ? void 0 : options.map(function (option, index) {
|
|
35370
35421
|
return React.createElement(RadioOptionsWrapper$1, {
|
|
@@ -35393,7 +35444,7 @@ var ItemSelector = function ItemSelector(_ref) {
|
|
|
35393
35444
|
buttonType: ButtonTypes.RPGUIButton
|
|
35394
35445
|
}, "Select")));
|
|
35395
35446
|
};
|
|
35396
|
-
var Title$
|
|
35447
|
+
var Title$8 = /*#__PURE__*/styled.h1.withConfig({
|
|
35397
35448
|
displayName: "ItemSelector__Title",
|
|
35398
35449
|
componentId: "sc-gptoxp-0"
|
|
35399
35450
|
})(["font-size:0.6rem;color:yellow !important;"]);
|
|
@@ -35600,6 +35651,38 @@ var PagerContainer = /*#__PURE__*/styled.div.withConfig({
|
|
|
35600
35651
|
componentId: "sc-1ekmf50-1"
|
|
35601
35652
|
})(["display:flex;justify-content:center;align-items:center;gap:5px;p{margin:0;}div{color:white;}button{width:40px;height:40px;background-color:", ";border:none;border-radius:5px;color:white;:hover{background-color:", ";}:disabled{opacity:0.5;}&.active{background-color:", ";font-weight:bold;color:black;}}"], uiColors.darkGray, uiColors.lightGray, uiColors.orange);
|
|
35602
35653
|
|
|
35654
|
+
var Tabs = function Tabs(_ref) {
|
|
35655
|
+
var options = _ref.options,
|
|
35656
|
+
activeTabId = _ref.activeTabId,
|
|
35657
|
+
onTabChange = _ref.onTabChange,
|
|
35658
|
+
className = _ref.className;
|
|
35659
|
+
return React.createElement(TabsContainer, {
|
|
35660
|
+
className: className
|
|
35661
|
+
}, options.map(function (option) {
|
|
35662
|
+
return React.createElement(TabButton$1, {
|
|
35663
|
+
key: option.id,
|
|
35664
|
+
"$active": option.id === activeTabId,
|
|
35665
|
+
onClick: function onClick() {
|
|
35666
|
+
return onTabChange(option.id);
|
|
35667
|
+
}
|
|
35668
|
+
}, option.icon && option.icon, " ", option.label);
|
|
35669
|
+
}));
|
|
35670
|
+
};
|
|
35671
|
+
var TabsContainer = /*#__PURE__*/styled.div.withConfig({
|
|
35672
|
+
displayName: "Tabs__TabsContainer",
|
|
35673
|
+
componentId: "sc-n35er2-0"
|
|
35674
|
+
})(["display:flex;gap:15px;width:95%;margin:0 auto 15px auto;border-bottom:2px solid rgba(255,255,255,0.1);padding-bottom:10px;"]);
|
|
35675
|
+
var TabButton$1 = /*#__PURE__*/styled.button.withConfig({
|
|
35676
|
+
displayName: "Tabs__TabButton",
|
|
35677
|
+
componentId: "sc-n35er2-1"
|
|
35678
|
+
})(["display:flex;align-items:center;gap:8px;background:transparent;border:none;border-bottom:", ";color:", ";font-family:'Press Start 2P',cursive;font-size:0.70rem;letter-spacing:1px;cursor:pointer;padding:5px 10px 10px 10px;transition:color 0.2s,border-bottom 0.2s;&:hover{color:#ffffff;}"], function (_ref2) {
|
|
35679
|
+
var $active = _ref2.$active;
|
|
35680
|
+
return $active ? '3px solid #f59e0b' : '3px solid transparent';
|
|
35681
|
+
}, function (_ref3) {
|
|
35682
|
+
var $active = _ref3.$active;
|
|
35683
|
+
return $active ? '#ffffff' : '#888888';
|
|
35684
|
+
});
|
|
35685
|
+
|
|
35603
35686
|
var MarketplaceBuyModal = function MarketplaceBuyModal(_ref) {
|
|
35604
35687
|
var goldPrice = _ref.goldPrice,
|
|
35605
35688
|
dcEquivalentPrice = _ref.dcEquivalentPrice,
|
|
@@ -35622,7 +35705,7 @@ var MarketplaceBuyModal = function MarketplaceBuyModal(_ref) {
|
|
|
35622
35705
|
onClick: stopPropagation,
|
|
35623
35706
|
onTouchStart: stopPropagation,
|
|
35624
35707
|
onPointerDown: stopPropagation
|
|
35625
|
-
}, React.createElement(Header$
|
|
35708
|
+
}, React.createElement(Header$8, null, React.createElement(Title$9, null, "Confirm Purchase"), React.createElement(CloseButton$a, {
|
|
35626
35709
|
onPointerDown: onClose,
|
|
35627
35710
|
"aria-label": "Close"
|
|
35628
35711
|
}, React.createElement(FaTimes, null))), React.createElement(Options, null, React.createElement(RadioOption, {
|
|
@@ -35661,15 +35744,15 @@ var ModalContent$2 = /*#__PURE__*/styled.div.withConfig({
|
|
|
35661
35744
|
displayName: "MarketplaceBuyModal__ModalContent",
|
|
35662
35745
|
componentId: "sc-86ottl-2"
|
|
35663
35746
|
})(["background:#1a1a2e;border:2px solid #f59e0b;border-radius:8px;padding:20px 24px 24px;min-width:300px;max-width:90%;display:flex;flex-direction:column;gap:16px;pointer-events:auto;animation:scaleIn 0.15s ease-out;@keyframes scaleIn{from{transform:scale(0.85);opacity:0;}to{transform:scale(1);opacity:1;}}"]);
|
|
35664
|
-
var Header$
|
|
35747
|
+
var Header$8 = /*#__PURE__*/styled.div.withConfig({
|
|
35665
35748
|
displayName: "MarketplaceBuyModal__Header",
|
|
35666
35749
|
componentId: "sc-86ottl-3"
|
|
35667
35750
|
})(["display:flex;align-items:center;justify-content:space-between;"]);
|
|
35668
|
-
var Title$
|
|
35751
|
+
var Title$9 = /*#__PURE__*/styled.h3.withConfig({
|
|
35669
35752
|
displayName: "MarketplaceBuyModal__Title",
|
|
35670
35753
|
componentId: "sc-86ottl-4"
|
|
35671
35754
|
})(["margin:0;font-family:'Press Start 2P',cursive;font-size:0.7rem;color:#fef08a;"]);
|
|
35672
|
-
var CloseButton$
|
|
35755
|
+
var CloseButton$a = /*#__PURE__*/styled.button.withConfig({
|
|
35673
35756
|
displayName: "MarketplaceBuyModal__CloseButton",
|
|
35674
35757
|
componentId: "sc-86ottl-5"
|
|
35675
35758
|
})(["background:none;border:none;color:rgba(255,255,255,0.6);cursor:pointer;font-size:1rem;padding:4px;display:flex;align-items:center;&:hover{color:#ffffff;}"]);
|
|
@@ -35747,7 +35830,7 @@ var MarketplaceRows = function MarketplaceRows(_ref) {
|
|
|
35747
35830
|
var renderGems = function renderGems(item) {
|
|
35748
35831
|
return item.attachedGems && onRenderGems(item);
|
|
35749
35832
|
};
|
|
35750
|
-
return React.createElement(MarketplaceWrapper, null, React.createElement(
|
|
35833
|
+
return React.createElement(MarketplaceWrapper, null, React.createElement(ItemSection, null, React.createElement(SpriteContainer$3, null, React.createElement(ItemInfoWrapper, {
|
|
35751
35834
|
item: item,
|
|
35752
35835
|
atlasIMG: atlasIMG,
|
|
35753
35836
|
atlasJSON: atlasJSON,
|
|
@@ -35766,80 +35849,176 @@ var MarketplaceRows = function MarketplaceRows(_ref) {
|
|
|
35766
35849
|
}, atlasJSON),
|
|
35767
35850
|
imgScale: 2,
|
|
35768
35851
|
imgClassname: "sprite-from-atlas-img--item"
|
|
35769
|
-
})), React.createElement(QuantityContainer, null, item.stackQty && item.stackQty > 1 && "x" + Math.round(item.stackQty * 10) / 10))), React.createElement(
|
|
35852
|
+
})), React.createElement(QuantityContainer, null, item.stackQty && item.stackQty > 1 && "x" + Math.round(item.stackQty * 10) / 10))), React.createElement(ItemDetails, null, React.createElement(ItemName, null, React.createElement(Ellipsis, {
|
|
35770
35853
|
maxLines: 1,
|
|
35771
35854
|
maxWidth: "200px",
|
|
35772
35855
|
fontSize: "10px"
|
|
35773
|
-
}, item.name))
|
|
35856
|
+
}, item.name)), React.createElement(PriceRow, null, React.createElement(GoldPriceRow, null, React.createElement(GoldIcon, null, React.createElement(SpriteFromAtlas, {
|
|
35774
35857
|
atlasIMG: atlasIMG,
|
|
35775
35858
|
atlasJSON: atlasJSON,
|
|
35776
35859
|
spriteKey: "others/gold-coin-qty-5.png",
|
|
35777
|
-
imgScale:
|
|
35778
|
-
})), React.createElement(
|
|
35779
|
-
|
|
35780
|
-
|
|
35781
|
-
|
|
35782
|
-
|
|
35783
|
-
|
|
35860
|
+
imgScale: 1
|
|
35861
|
+
})), React.createElement(GoldPrice, null, itemPrice)), dcEquivalentPrice !== undefined && React.createElement(DCPrice, null, "(", formatDCAmount(dcEquivalentPrice), " DC)")))), React.createElement(ActionSection, null, React.createElement(CTAButton, {
|
|
35862
|
+
icon: onMarketPlaceItemBuy ? React.createElement(Coins, {
|
|
35863
|
+
width: 18,
|
|
35864
|
+
height: 18
|
|
35865
|
+
}) : React.createElement(Delete, {
|
|
35866
|
+
width: 18,
|
|
35867
|
+
height: 18
|
|
35868
|
+
}),
|
|
35869
|
+
label: onMarketPlaceItemBuy ? 'Buy' : 'Remove',
|
|
35784
35870
|
disabled: disabled,
|
|
35785
|
-
|
|
35871
|
+
onClick: function onClick() {
|
|
35786
35872
|
if (disabled) return;
|
|
35787
35873
|
onMarketPlaceItemBuy == null ? void 0 : onMarketPlaceItemBuy();
|
|
35788
35874
|
onMarketPlaceItemRemove == null ? void 0 : onMarketPlaceItemRemove();
|
|
35789
|
-
}
|
|
35790
|
-
|
|
35875
|
+
},
|
|
35876
|
+
iconColor: onMarketPlaceItemBuy ? '#f59e0b' : '#ef4444'
|
|
35877
|
+
})));
|
|
35791
35878
|
};
|
|
35792
|
-
var
|
|
35793
|
-
|
|
35879
|
+
var GroupedMarketplaceRow = function GroupedMarketplaceRow(_ref2) {
|
|
35880
|
+
var bestListing = _ref2.bestListing,
|
|
35881
|
+
otherListings = _ref2.otherListings,
|
|
35882
|
+
atlasJSON = _ref2.atlasJSON,
|
|
35883
|
+
atlasIMG = _ref2.atlasIMG,
|
|
35884
|
+
equipmentSet = _ref2.equipmentSet,
|
|
35885
|
+
_ref2$dcToGoldSwapRat = _ref2.dcToGoldSwapRate,
|
|
35886
|
+
dcToGoldSwapRate = _ref2$dcToGoldSwapRat === void 0 ? 0 : _ref2$dcToGoldSwapRat,
|
|
35887
|
+
getDCEquivalentPrice = _ref2.getDCEquivalentPrice,
|
|
35888
|
+
characterId = _ref2.characterId,
|
|
35889
|
+
onBuy = _ref2.onBuy;
|
|
35890
|
+
var _useState = useState(false),
|
|
35891
|
+
expanded = _useState[0],
|
|
35892
|
+
setExpanded = _useState[1];
|
|
35893
|
+
var totalOffers = otherListings.length + 1;
|
|
35894
|
+
var hasMultiple = otherListings.length > 0;
|
|
35895
|
+
return React.createElement(GroupWrapper, null, React.createElement(GroupHeader, {
|
|
35896
|
+
onClick: hasMultiple ? function () {
|
|
35897
|
+
return setExpanded(!expanded);
|
|
35898
|
+
} : undefined,
|
|
35899
|
+
clickable: hasMultiple
|
|
35900
|
+
}, React.createElement(MarketplaceRows, {
|
|
35901
|
+
atlasIMG: atlasIMG,
|
|
35902
|
+
atlasJSON: atlasJSON,
|
|
35903
|
+
item: bestListing.item,
|
|
35904
|
+
itemPrice: bestListing.price,
|
|
35905
|
+
dcEquivalentPrice: dcToGoldSwapRate > 0 ? getDCEquivalentPrice(bestListing.price) : undefined,
|
|
35906
|
+
equipmentSet: equipmentSet,
|
|
35907
|
+
onMarketPlaceItemBuy: function onMarketPlaceItemBuy() {
|
|
35908
|
+
return onBuy(bestListing._id);
|
|
35909
|
+
},
|
|
35910
|
+
disabled: bestListing.owner === characterId
|
|
35911
|
+
}), hasMultiple && React.createElement(GroupMeta, null, React.createElement(OfferBadge, null, totalOffers, " offers"), React.createElement(Chevron, {
|
|
35912
|
+
expanded: expanded
|
|
35913
|
+
}, "\u25B8"))), expanded && React.createElement(SubRows, null, otherListings.map(function (listing) {
|
|
35914
|
+
return React.createElement(MarketplaceRows, {
|
|
35915
|
+
key: listing._id,
|
|
35916
|
+
atlasIMG: atlasIMG,
|
|
35917
|
+
atlasJSON: atlasJSON,
|
|
35918
|
+
item: listing.item,
|
|
35919
|
+
itemPrice: listing.price,
|
|
35920
|
+
dcEquivalentPrice: dcToGoldSwapRate > 0 ? getDCEquivalentPrice(listing.price) : undefined,
|
|
35921
|
+
equipmentSet: equipmentSet,
|
|
35922
|
+
onMarketPlaceItemBuy: function onMarketPlaceItemBuy() {
|
|
35923
|
+
return onBuy(listing._id);
|
|
35924
|
+
},
|
|
35925
|
+
disabled: listing.owner === characterId
|
|
35926
|
+
});
|
|
35927
|
+
})));
|
|
35928
|
+
};
|
|
35929
|
+
var GroupWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
35930
|
+
displayName: "MarketplaceRows__GroupWrapper",
|
|
35794
35931
|
componentId: "sc-wmpr1o-0"
|
|
35795
|
-
})(["margin
|
|
35796
|
-
var
|
|
35797
|
-
displayName: "
|
|
35932
|
+
})(["margin-bottom:2px;"]);
|
|
35933
|
+
var GroupHeader = /*#__PURE__*/styled.div.withConfig({
|
|
35934
|
+
displayName: "MarketplaceRows__GroupHeader",
|
|
35798
35935
|
componentId: "sc-wmpr1o-1"
|
|
35799
|
-
})(["position:
|
|
35800
|
-
var
|
|
35801
|
-
|
|
35936
|
+
})(["position:relative;cursor:", ";"], function (_ref3) {
|
|
35937
|
+
var clickable = _ref3.clickable;
|
|
35938
|
+
return clickable ? 'pointer' : 'default';
|
|
35939
|
+
});
|
|
35940
|
+
var GroupMeta = /*#__PURE__*/styled.div.withConfig({
|
|
35941
|
+
displayName: "MarketplaceRows__GroupMeta",
|
|
35802
35942
|
componentId: "sc-wmpr1o-2"
|
|
35803
|
-
})(["position:absolute;
|
|
35804
|
-
var
|
|
35805
|
-
displayName: "
|
|
35943
|
+
})(["position:absolute;right:180px;top:50%;transform:translateY(-50%);display:flex;align-items:center;gap:6px;pointer-events:none;"]);
|
|
35944
|
+
var OfferBadge = /*#__PURE__*/styled.span.withConfig({
|
|
35945
|
+
displayName: "MarketplaceRows__OfferBadge",
|
|
35806
35946
|
componentId: "sc-wmpr1o-3"
|
|
35807
|
-
})(["
|
|
35808
|
-
var
|
|
35809
|
-
displayName: "
|
|
35947
|
+
})(["font-family:'Press Start 2P',cursive;font-size:0.5rem;color:rgba(255,255,255,0.5);background:rgba(255,255,255,0.08);padding:2px 6px;border-radius:8px;white-space:nowrap;"]);
|
|
35948
|
+
var Chevron = /*#__PURE__*/styled.span.withConfig({
|
|
35949
|
+
displayName: "MarketplaceRows__Chevron",
|
|
35810
35950
|
componentId: "sc-wmpr1o-4"
|
|
35811
|
-
})(["display:
|
|
35812
|
-
var
|
|
35813
|
-
|
|
35951
|
+
})(["display:inline-block;font-size:0.7rem;color:rgba(255,255,255,0.4);transition:transform 0.2s ease;transform:rotate(", ");"], function (_ref4) {
|
|
35952
|
+
var expanded = _ref4.expanded;
|
|
35953
|
+
return expanded ? '90deg' : '0deg';
|
|
35954
|
+
});
|
|
35955
|
+
var SubRows = /*#__PURE__*/styled.div.withConfig({
|
|
35956
|
+
displayName: "MarketplaceRows__SubRows",
|
|
35814
35957
|
componentId: "sc-wmpr1o-5"
|
|
35815
|
-
})(["
|
|
35816
|
-
var
|
|
35817
|
-
displayName: "
|
|
35958
|
+
})(["margin-left:12px;padding-left:8px;border-left:2px solid rgba(245,158,11,0.25);> div > div{background:rgba(0,0,0,0.4);}"]);
|
|
35959
|
+
var MarketplaceWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
35960
|
+
displayName: "MarketplaceRows__MarketplaceWrapper",
|
|
35818
35961
|
componentId: "sc-wmpr1o-6"
|
|
35819
|
-
})(["
|
|
35820
|
-
var
|
|
35821
|
-
displayName: "
|
|
35962
|
+
})(["display:flex;align-items:center;justify-content:space-between;padding:0.6rem 1rem;margin-bottom:4px;background:rgba(0,0,0,0.25);border:1px solid rgba(255,255,255,0.05);border-radius:6px;border-left:4px solid transparent;transition:all 0.2s ease-in-out;&:hover{background:rgba(245,158,11,0.08);border-color:rgba(245,158,11,0.2);border-left-color:#f59e0b;box-shadow:0 4px 12px rgba(0,0,0,0.2);transform:translateY(-1px);}"]);
|
|
35963
|
+
var ItemSection = /*#__PURE__*/styled.div.withConfig({
|
|
35964
|
+
displayName: "MarketplaceRows__ItemSection",
|
|
35822
35965
|
componentId: "sc-wmpr1o-7"
|
|
35823
|
-
})(["
|
|
35824
|
-
var
|
|
35825
|
-
displayName: "
|
|
35966
|
+
})(["display:flex;align-items:center;gap:0.75rem;flex:1;min-width:0;"]);
|
|
35967
|
+
var SpriteContainer$3 = /*#__PURE__*/styled.div.withConfig({
|
|
35968
|
+
displayName: "MarketplaceRows__SpriteContainer",
|
|
35826
35969
|
componentId: "sc-wmpr1o-8"
|
|
35827
|
-
})(["
|
|
35828
|
-
var
|
|
35829
|
-
displayName: "
|
|
35970
|
+
})(["position:relative;flex-shrink:0;min-width:44px;"]);
|
|
35971
|
+
var ItemDetails = /*#__PURE__*/styled.div.withConfig({
|
|
35972
|
+
displayName: "MarketplaceRows__ItemDetails",
|
|
35830
35973
|
componentId: "sc-wmpr1o-9"
|
|
35831
|
-
})(["margin:
|
|
35974
|
+
})(["display:flex;flex-direction:column;gap:0.2rem;min-width:0;margin-left:1rem;"]);
|
|
35975
|
+
var ItemName = /*#__PURE__*/styled.div.withConfig({
|
|
35976
|
+
displayName: "MarketplaceRows__ItemName",
|
|
35977
|
+
componentId: "sc-wmpr1o-10"
|
|
35978
|
+
})(["font-family:'Press Start 2P',cursive;font-size:0.65rem;color:#ffffff;"]);
|
|
35979
|
+
var PriceRow = /*#__PURE__*/styled.div.withConfig({
|
|
35980
|
+
displayName: "MarketplaceRows__PriceRow",
|
|
35981
|
+
componentId: "sc-wmpr1o-11"
|
|
35982
|
+
})(["display:flex;flex-direction:row;align-items:center;gap:0.5rem;margin-top:0.2rem;"]);
|
|
35983
|
+
var GoldPriceRow = /*#__PURE__*/styled.div.withConfig({
|
|
35984
|
+
displayName: "MarketplaceRows__GoldPriceRow",
|
|
35985
|
+
componentId: "sc-wmpr1o-12"
|
|
35986
|
+
})(["display:flex;align-items:center;gap:0.3rem;"]);
|
|
35987
|
+
var GoldIcon = /*#__PURE__*/styled.span.withConfig({
|
|
35988
|
+
displayName: "MarketplaceRows__GoldIcon",
|
|
35989
|
+
componentId: "sc-wmpr1o-13"
|
|
35990
|
+
})(["display:flex;align-items:center;justify-content:center;position:relative;top:-0.6rem;left:-0.5rem;"]);
|
|
35991
|
+
var GoldPrice = /*#__PURE__*/styled.span.withConfig({
|
|
35992
|
+
displayName: "MarketplaceRows__GoldPrice",
|
|
35993
|
+
componentId: "sc-wmpr1o-14"
|
|
35994
|
+
})(["font-family:'Press Start 2P',cursive;font-size:0.6rem;color:#fef08a;line-height:1;"]);
|
|
35995
|
+
var DCPrice = /*#__PURE__*/styled.span.withConfig({
|
|
35996
|
+
displayName: "MarketplaceRows__DCPrice",
|
|
35997
|
+
componentId: "sc-wmpr1o-15"
|
|
35998
|
+
})(["font-family:'Press Start 2P',cursive;font-size:0.55rem;color:rgba(254,240,138,0.65);white-space:nowrap;"]);
|
|
35999
|
+
var ActionSection = /*#__PURE__*/styled.div.withConfig({
|
|
36000
|
+
displayName: "MarketplaceRows__ActionSection",
|
|
36001
|
+
componentId: "sc-wmpr1o-16"
|
|
36002
|
+
})(["flex-shrink:0;margin-left:0.75rem;"]);
|
|
36003
|
+
var QuantityContainer = /*#__PURE__*/styled.p.withConfig({
|
|
36004
|
+
displayName: "MarketplaceRows__QuantityContainer",
|
|
36005
|
+
componentId: "sc-wmpr1o-17"
|
|
36006
|
+
})(["position:absolute;display:block;top:15px;left:25px;font-size:", " !important;"], uiFonts.size.xsmall);
|
|
36007
|
+
var GemContainer = /*#__PURE__*/styled.p.withConfig({
|
|
36008
|
+
displayName: "MarketplaceRows__GemContainer",
|
|
36009
|
+
componentId: "sc-wmpr1o-18"
|
|
36010
|
+
})(["position:absolute;display:block;top:-5px;left:-10px;font-size:", " !important;"], uiFonts.size.xsmall);
|
|
35832
36011
|
var RarityContainer = /*#__PURE__*/styled.div.withConfig({
|
|
35833
36012
|
displayName: "MarketplaceRows__RarityContainer",
|
|
35834
|
-
componentId: "sc-wmpr1o-
|
|
35835
|
-
})(["border-color:", ";box-shadow:", " inset,", ";width:32px;height:32px;"], function (
|
|
35836
|
-
var item =
|
|
36013
|
+
componentId: "sc-wmpr1o-19"
|
|
36014
|
+
})(["border-color:", ";box-shadow:", " inset,", ";width:32px;height:32px;"], function (_ref5) {
|
|
36015
|
+
var item = _ref5.item;
|
|
35837
36016
|
return rarityColor(item);
|
|
35838
|
-
}, function (
|
|
35839
|
-
var item =
|
|
36017
|
+
}, function (_ref6) {
|
|
36018
|
+
var item = _ref6.item;
|
|
35840
36019
|
return "0 0 5px 8px " + rarityColor(item);
|
|
35841
|
-
}, function (
|
|
35842
|
-
var item =
|
|
36020
|
+
}, function (_ref7) {
|
|
36021
|
+
var item = _ref7.item;
|
|
35843
36022
|
return "0 0 8px 6px " + rarityColor(item);
|
|
35844
36023
|
});
|
|
35845
36024
|
|
|
@@ -35910,18 +36089,21 @@ var BuyPanel = function BuyPanel(_ref) {
|
|
|
35910
36089
|
var _useState = useState(''),
|
|
35911
36090
|
name = _useState[0],
|
|
35912
36091
|
setName = _useState[1];
|
|
35913
|
-
var _useState2 = useState(
|
|
35914
|
-
|
|
35915
|
-
|
|
36092
|
+
var _useState2 = useState(false),
|
|
36093
|
+
showFilters = _useState2[0],
|
|
36094
|
+
setShowFilters = _useState2[1];
|
|
35916
36095
|
var _useState3 = useState([undefined, undefined]),
|
|
35917
|
-
|
|
35918
|
-
|
|
36096
|
+
mainLevel = _useState3[0],
|
|
36097
|
+
setMainLevel = _useState3[1];
|
|
35919
36098
|
var _useState4 = useState([undefined, undefined]),
|
|
35920
|
-
|
|
35921
|
-
|
|
35922
|
-
var _useState5 = useState(
|
|
35923
|
-
|
|
35924
|
-
|
|
36099
|
+
secondaryLevel = _useState4[0],
|
|
36100
|
+
setSecondaryLevel = _useState4[1];
|
|
36101
|
+
var _useState5 = useState([undefined, undefined]),
|
|
36102
|
+
price = _useState5[0],
|
|
36103
|
+
setPrice = _useState5[1];
|
|
36104
|
+
var _useState6 = useState(null),
|
|
36105
|
+
buyingItemId = _useState6[0],
|
|
36106
|
+
setBuyingItemId = _useState6[1];
|
|
35925
36107
|
var itemsContainer = useRef(null);
|
|
35926
36108
|
useEffect(function () {
|
|
35927
36109
|
var _itemsContainer$curre;
|
|
@@ -35934,6 +36116,26 @@ var BuyPanel = function BuyPanel(_ref) {
|
|
|
35934
36116
|
var getDCEquivalentPrice = function getDCEquivalentPrice(goldPrice) {
|
|
35935
36117
|
return dcToGoldSwapRate > 0 ? goldToDC(goldPrice) : 0;
|
|
35936
36118
|
};
|
|
36119
|
+
var groupedItems = useMemo(function () {
|
|
36120
|
+
var groups = new Map();
|
|
36121
|
+
for (var _iterator = _createForOfIteratorHelperLoose(items), _step; !(_step = _iterator()).done;) {
|
|
36122
|
+
var entry = _step.value;
|
|
36123
|
+
var key = entry.item.key;
|
|
36124
|
+
if (!groups.has(key)) {
|
|
36125
|
+
groups.set(key, []);
|
|
36126
|
+
}
|
|
36127
|
+
groups.get(key).push(entry);
|
|
36128
|
+
}
|
|
36129
|
+
return Array.from(groups.values()).map(function (group) {
|
|
36130
|
+
var sorted = [].concat(group).sort(function (a, b) {
|
|
36131
|
+
return a.price - b.price;
|
|
36132
|
+
});
|
|
36133
|
+
return {
|
|
36134
|
+
bestListing: sorted[0],
|
|
36135
|
+
otherListings: sorted.slice(1)
|
|
36136
|
+
};
|
|
36137
|
+
});
|
|
36138
|
+
}, [items]);
|
|
35937
36139
|
return React.createElement(React.Fragment, null, buyingItemId && buyingItem && hasDCBalance && React.createElement(MarketplaceBuyModal, {
|
|
35938
36140
|
goldPrice: buyingItem.price,
|
|
35939
36141
|
dcEquivalentPrice: getDCEquivalentPrice(buyingItem.price),
|
|
@@ -35953,8 +36155,8 @@ var BuyPanel = function BuyPanel(_ref) {
|
|
|
35953
36155
|
setBuyingItemId(null);
|
|
35954
36156
|
enableHotkeys == null ? void 0 : enableHotkeys();
|
|
35955
36157
|
},
|
|
35956
|
-
message: "Are you sure to buy this item?"
|
|
35957
|
-
}), React.createElement(InputWrapper, null, React.createElement("p", null, "
|
|
36158
|
+
message: "Are you sure you want to buy this item?"
|
|
36159
|
+
}), React.createElement(InputWrapper, null, React.createElement("p", null, "SEARCH"), React.createElement(Input, {
|
|
35958
36160
|
onChange: function onChange(e) {
|
|
35959
36161
|
setName(e.target.value);
|
|
35960
36162
|
onChangeNameInput(e.target.value);
|
|
@@ -35962,8 +36164,21 @@ var BuyPanel = function BuyPanel(_ref) {
|
|
|
35962
36164
|
value: name,
|
|
35963
36165
|
placeholder: "Enter name...",
|
|
35964
36166
|
onBlur: enableHotkeys,
|
|
35965
|
-
onFocus: disableHotkeys
|
|
35966
|
-
|
|
36167
|
+
onFocus: disableHotkeys,
|
|
36168
|
+
className: "search-input"
|
|
36169
|
+
}), React.createElement("button", {
|
|
36170
|
+
className: "filter-btn",
|
|
36171
|
+
onClick: function onClick() {
|
|
36172
|
+
return setShowFilters(!showFilters);
|
|
36173
|
+
}
|
|
36174
|
+
}, React.createElement(SortVertical, {
|
|
36175
|
+
width: 18,
|
|
36176
|
+
height: 18
|
|
36177
|
+
}))), React.createElement(OptionsWrapper, {
|
|
36178
|
+
showFilters: showFilters
|
|
36179
|
+
}, showFilters && React.createElement(FilterInputsWrapper, null, React.createElement("div", null, React.createElement("p", null, "Main level"), React.createElement("div", {
|
|
36180
|
+
className: "input-group"
|
|
36181
|
+
}, React.createElement(Input, {
|
|
35967
36182
|
onChange: function onChange(e) {
|
|
35968
36183
|
setMainLevel([Number(e.target.value), mainLevel[1]]);
|
|
35969
36184
|
onChangeMainLevelInput([Number(e.target.value), mainLevel[1]]);
|
|
@@ -35973,7 +36188,9 @@ var BuyPanel = function BuyPanel(_ref) {
|
|
|
35973
36188
|
min: 0,
|
|
35974
36189
|
onBlur: enableHotkeys,
|
|
35975
36190
|
onFocus: disableHotkeys
|
|
35976
|
-
}), React.createElement(AiFillCaretRight,
|
|
36191
|
+
}), React.createElement(AiFillCaretRight, {
|
|
36192
|
+
className: "separator-icon"
|
|
36193
|
+
}), React.createElement(Input, {
|
|
35977
36194
|
onChange: function onChange(e) {
|
|
35978
36195
|
setMainLevel([mainLevel[0], Number(e.target.value)]);
|
|
35979
36196
|
onChangeMainLevelInput([mainLevel[0], Number(e.target.value)]);
|
|
@@ -35983,7 +36200,9 @@ var BuyPanel = function BuyPanel(_ref) {
|
|
|
35983
36200
|
min: 0,
|
|
35984
36201
|
onBlur: enableHotkeys,
|
|
35985
36202
|
onFocus: disableHotkeys
|
|
35986
|
-
})), React.createElement("div", null, React.createElement("p", null, "Secondary level"), React.createElement(
|
|
36203
|
+
}))), React.createElement("div", null, React.createElement("p", null, "Secondary level"), React.createElement("div", {
|
|
36204
|
+
className: "input-group"
|
|
36205
|
+
}, React.createElement(Input, {
|
|
35987
36206
|
onChange: function onChange(e) {
|
|
35988
36207
|
setSecondaryLevel([Number(e.target.value), secondaryLevel[1]]);
|
|
35989
36208
|
onChangeSecondaryLevelInput([Number(e.target.value), secondaryLevel[1]]);
|
|
@@ -35993,7 +36212,9 @@ var BuyPanel = function BuyPanel(_ref) {
|
|
|
35993
36212
|
min: 0,
|
|
35994
36213
|
onBlur: enableHotkeys,
|
|
35995
36214
|
onFocus: disableHotkeys
|
|
35996
|
-
}), React.createElement(AiFillCaretRight,
|
|
36215
|
+
}), React.createElement(AiFillCaretRight, {
|
|
36216
|
+
className: "separator-icon"
|
|
36217
|
+
}), React.createElement(Input, {
|
|
35997
36218
|
onChange: function onChange(e) {
|
|
35998
36219
|
setSecondaryLevel([secondaryLevel[0], Number(e.target.value)]);
|
|
35999
36220
|
onChangeSecondaryLevelInput([secondaryLevel[0], Number(e.target.value)]);
|
|
@@ -36003,7 +36224,9 @@ var BuyPanel = function BuyPanel(_ref) {
|
|
|
36003
36224
|
min: 0,
|
|
36004
36225
|
onBlur: enableHotkeys,
|
|
36005
36226
|
onFocus: disableHotkeys
|
|
36006
|
-
})), React.createElement("div", null, React.createElement("p", null, "Price"), React.createElement(
|
|
36227
|
+
}))), React.createElement("div", null, React.createElement("p", null, "Price"), React.createElement("div", {
|
|
36228
|
+
className: "input-group"
|
|
36229
|
+
}, React.createElement(Input, {
|
|
36007
36230
|
onChange: function onChange(e) {
|
|
36008
36231
|
setPrice([Number(e.target.value), price[1]]);
|
|
36009
36232
|
onChangePriceInput([Number(e.target.value), price[1]]);
|
|
@@ -36011,10 +36234,11 @@ var BuyPanel = function BuyPanel(_ref) {
|
|
|
36011
36234
|
placeholder: "Min",
|
|
36012
36235
|
type: "number",
|
|
36013
36236
|
min: 0,
|
|
36014
|
-
className: "big-input",
|
|
36015
36237
|
onBlur: enableHotkeys,
|
|
36016
36238
|
onFocus: disableHotkeys
|
|
36017
|
-
}), React.createElement(AiFillCaretRight,
|
|
36239
|
+
}), React.createElement(AiFillCaretRight, {
|
|
36240
|
+
className: "separator-icon"
|
|
36241
|
+
}), React.createElement(Input, {
|
|
36018
36242
|
onChange: function onChange(e) {
|
|
36019
36243
|
setPrice([price[0], Number(e.target.value)]);
|
|
36020
36244
|
onChangePriceInput([price[0], Number(e.target.value)]);
|
|
@@ -36022,17 +36246,16 @@ var BuyPanel = function BuyPanel(_ref) {
|
|
|
36022
36246
|
placeholder: "Max",
|
|
36023
36247
|
type: "number",
|
|
36024
36248
|
min: 0,
|
|
36025
|
-
className: "big-input",
|
|
36026
36249
|
onBlur: enableHotkeys,
|
|
36027
36250
|
onFocus: disableHotkeys
|
|
36028
|
-
}))), React.createElement(WrapperContainer$1, null, React.createElement(StyledDropdown$2, {
|
|
36251
|
+
})))), React.createElement(WrapperContainer$1, null, React.createElement(StyledDropdown$2, {
|
|
36029
36252
|
options: itemTypeOptions,
|
|
36030
36253
|
onChange: onChangeType,
|
|
36031
|
-
width: "
|
|
36254
|
+
width: "100%"
|
|
36032
36255
|
}), React.createElement(StyledDropdown$2, {
|
|
36033
36256
|
options: itemRarityOptions,
|
|
36034
36257
|
onChange: onChangeRarity,
|
|
36035
|
-
width: "
|
|
36258
|
+
width: "100%"
|
|
36036
36259
|
}), React.createElement(StyledDropdown$2, {
|
|
36037
36260
|
options: orderByOptions,
|
|
36038
36261
|
onChange: onChangeOrder,
|
|
@@ -36040,56 +36263,58 @@ var BuyPanel = function BuyPanel(_ref) {
|
|
|
36040
36263
|
}))), React.createElement(ItemComponentScrollWrapper$1, {
|
|
36041
36264
|
id: "MarketContainer",
|
|
36042
36265
|
ref: itemsContainer
|
|
36043
|
-
},
|
|
36044
|
-
var
|
|
36045
|
-
|
|
36046
|
-
|
|
36047
|
-
|
|
36048
|
-
|
|
36049
|
-
|
|
36266
|
+
}, groupedItems.map(function (_ref2) {
|
|
36267
|
+
var bestListing = _ref2.bestListing,
|
|
36268
|
+
otherListings = _ref2.otherListings;
|
|
36269
|
+
return React.createElement(GroupedMarketplaceRow, {
|
|
36270
|
+
key: bestListing.item.key,
|
|
36271
|
+
bestListing: bestListing,
|
|
36272
|
+
otherListings: otherListings,
|
|
36050
36273
|
atlasIMG: atlasIMG,
|
|
36051
36274
|
atlasJSON: atlasJSON,
|
|
36052
|
-
item: item,
|
|
36053
|
-
itemPrice: price,
|
|
36054
|
-
dcEquivalentPrice: dcToGoldSwapRate > 0 ? getDCEquivalentPrice(price) : undefined,
|
|
36055
36275
|
equipmentSet: equipmentSet,
|
|
36056
|
-
|
|
36057
|
-
|
|
36276
|
+
dcToGoldSwapRate: dcToGoldSwapRate,
|
|
36277
|
+
getDCEquivalentPrice: getDCEquivalentPrice,
|
|
36278
|
+
characterId: characterId,
|
|
36279
|
+
onBuy: setBuyingItemId
|
|
36058
36280
|
});
|
|
36059
36281
|
})));
|
|
36060
36282
|
};
|
|
36061
36283
|
var InputWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
36062
36284
|
displayName: "BuyPanel__InputWrapper",
|
|
36063
36285
|
componentId: "sc-1si8t7i-0"
|
|
36064
|
-
})(["width:95%;display:flex !important;justify-content:flex-start;align-items:center;margin:auto;p{width:auto;margin-right:20px;}input{
|
|
36286
|
+
})(["width:95%;display:flex !important;justify-content:flex-start;align-items:center;margin:0 auto 10px auto;background:rgba(0,0,0,0.2);padding:8px 12px;border-radius:4px;border:1px solid rgba(255,255,255,0.1);p{width:auto;margin-right:20px;font-size:0.7rem;color:#ccc;text-transform:uppercase;letter-spacing:1px;margin-bottom:0px;}input.search-input{height:10px;flex-grow:1;}.filter-btn{background:transparent;border:none;color:#ccc;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0 5px;margin-left:10px;transition:color 0.15s;&:hover{color:#f59e0b;}}"]);
|
|
36065
36287
|
var OptionsWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
36066
36288
|
displayName: "BuyPanel__OptionsWrapper",
|
|
36067
36289
|
componentId: "sc-1si8t7i-1"
|
|
36068
|
-
})(["width:
|
|
36290
|
+
})(["width:95%;margin:0 auto;background:rgba(0,0,0,0.15);border-radius:4px;border:1px solid rgba(255,255,255,0.05);padding:10px;display:flex;flex-direction:column;gap:", ";"], function (_ref3) {
|
|
36291
|
+
var showFilters = _ref3.showFilters;
|
|
36292
|
+
return showFilters ? '15px' : '0';
|
|
36293
|
+
});
|
|
36069
36294
|
var FilterInputsWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
36070
36295
|
displayName: "BuyPanel__FilterInputsWrapper",
|
|
36071
36296
|
componentId: "sc-1si8t7i-2"
|
|
36072
|
-
})(["
|
|
36297
|
+
})(["display:grid;grid-template-columns:repeat(3,1fr);gap:15px;color:white;> div{display:flex;flex-direction:column;gap:5px;}p{margin:0;font-size:0.65rem;color:#aaa;text-transform:uppercase;letter-spacing:1px;}.input-group{display:flex;align-items:center;gap:5px;input{width:100%;height:10px;}}.separator-icon{flex-shrink:0;color:rgba(255,255,255,0.3);}"]);
|
|
36073
36298
|
var WrapperContainer$1 = /*#__PURE__*/styled.div.withConfig({
|
|
36074
36299
|
displayName: "BuyPanel__WrapperContainer",
|
|
36075
36300
|
componentId: "sc-1si8t7i-3"
|
|
36076
|
-
})(["display:grid;grid-template-columns:
|
|
36301
|
+
})(["display:grid;grid-template-columns:1fr 1fr 1fr;gap:15px;.rpgui-content .rpgui-dropdown-imp-header{padding:0px 10px 0 !important;}"]);
|
|
36077
36302
|
var ItemComponentScrollWrapper$1 = /*#__PURE__*/styled.div.withConfig({
|
|
36078
36303
|
displayName: "BuyPanel__ItemComponentScrollWrapper",
|
|
36079
36304
|
componentId: "sc-1si8t7i-4"
|
|
36080
|
-
})(["overflow-y:scroll;height:390px;width:
|
|
36305
|
+
})(["overflow-y:scroll;height:390px;width:95%;margin:1rem auto 0 auto;background:rgba(0,0,0,0.2);border:1px solid rgba(255,255,255,0.05);border-radius:4px;@media (max-width:950px){height:250px;}"]);
|
|
36081
36306
|
var StyledDropdown$2 = /*#__PURE__*/styled(Dropdown).withConfig({
|
|
36082
36307
|
displayName: "BuyPanel__StyledDropdown",
|
|
36083
36308
|
componentId: "sc-1si8t7i-5"
|
|
36084
|
-
})(["margin:
|
|
36309
|
+
})(["margin:0px !important;width:100% !important;"]);
|
|
36085
36310
|
|
|
36086
36311
|
var ManagmentPanel = function ManagmentPanel(_ref) {
|
|
36087
36312
|
var items = _ref.items,
|
|
36088
36313
|
atlasIMG = _ref.atlasIMG,
|
|
36089
36314
|
atlasJSON = _ref.atlasJSON,
|
|
36090
|
-
onChangeNameInput = _ref.onChangeNameInput,
|
|
36091
36315
|
equipmentSet = _ref.equipmentSet,
|
|
36092
36316
|
availableGold = _ref.availableGold,
|
|
36317
|
+
dcBalance = _ref.dcBalance,
|
|
36093
36318
|
onMarketPlaceItemRemove = _ref.onMarketPlaceItemRemove,
|
|
36094
36319
|
selectedItemToSell = _ref.selectedItemToSell,
|
|
36095
36320
|
onSelectedItemToSellRemove = _ref.onSelectedItemToSellRemove,
|
|
@@ -36099,17 +36324,14 @@ var ManagmentPanel = function ManagmentPanel(_ref) {
|
|
|
36099
36324
|
onMoneyWithdraw = _ref.onMoneyWithdraw,
|
|
36100
36325
|
currentPage = _ref.currentPage;
|
|
36101
36326
|
var _useState = useState(''),
|
|
36102
|
-
|
|
36103
|
-
|
|
36104
|
-
var _useState2 = useState(
|
|
36105
|
-
|
|
36106
|
-
|
|
36107
|
-
var _useState3 = useState(
|
|
36108
|
-
|
|
36109
|
-
|
|
36110
|
-
var _useState4 = useState(null),
|
|
36111
|
-
removingItemId = _useState4[0],
|
|
36112
|
-
setRemovingItemId = _useState4[1];
|
|
36327
|
+
price = _useState[0],
|
|
36328
|
+
setPrice = _useState[1];
|
|
36329
|
+
var _useState2 = useState(false),
|
|
36330
|
+
isCreatingOffer = _useState2[0],
|
|
36331
|
+
setIsCreatingOffer = _useState2[1];
|
|
36332
|
+
var _useState3 = useState(null),
|
|
36333
|
+
removingItemId = _useState3[0],
|
|
36334
|
+
setRemovingItemId = _useState3[1];
|
|
36113
36335
|
var itemsContainer = useRef(null);
|
|
36114
36336
|
useEffect(function () {
|
|
36115
36337
|
var _itemsContainer$curre;
|
|
@@ -36135,16 +36357,23 @@ var ManagmentPanel = function ManagmentPanel(_ref) {
|
|
|
36135
36357
|
enableHotkeys == null ? void 0 : enableHotkeys();
|
|
36136
36358
|
},
|
|
36137
36359
|
message: "Are you sure to remove this item?"
|
|
36138
|
-
}), React.createElement(
|
|
36139
|
-
|
|
36140
|
-
|
|
36141
|
-
|
|
36142
|
-
|
|
36143
|
-
|
|
36144
|
-
|
|
36145
|
-
|
|
36146
|
-
|
|
36147
|
-
|
|
36360
|
+
}), React.createElement(OptionsWrapper$1, null, React.createElement(InnerOptionsWrapper, null, React.createElement("div", {
|
|
36361
|
+
style: {
|
|
36362
|
+
display: 'flex',
|
|
36363
|
+
justifyContent: 'space-between',
|
|
36364
|
+
alignItems: 'center',
|
|
36365
|
+
marginBottom: '12px'
|
|
36366
|
+
}
|
|
36367
|
+
}, React.createElement(SectionLabel$1, {
|
|
36368
|
+
style: {
|
|
36369
|
+
marginBottom: 0
|
|
36370
|
+
}
|
|
36371
|
+
}, "Create Offer"), !selectedItemToSell && React.createElement(SellDescription, null, "Select item in inventory to sell")), React.createElement(Flex$1, {
|
|
36372
|
+
style: {
|
|
36373
|
+
gap: '15px',
|
|
36374
|
+
alignItems: 'center'
|
|
36375
|
+
}
|
|
36376
|
+
}, React.createElement(ItemSlot, {
|
|
36148
36377
|
slotIndex: 0,
|
|
36149
36378
|
atlasIMG: atlasIMG,
|
|
36150
36379
|
atlasJSON: atlasJSON,
|
|
@@ -36152,35 +36381,60 @@ var ManagmentPanel = function ManagmentPanel(_ref) {
|
|
|
36152
36381
|
return onSelectedItemToSellRemove(item);
|
|
36153
36382
|
},
|
|
36154
36383
|
item: selectedItemToSell
|
|
36155
|
-
}), React.createElement(PriceInputWrapper, null, React.createElement("p", null, "
|
|
36384
|
+
}), React.createElement(PriceInputWrapper, null, React.createElement("p", null, "SET PRICE (GOLD)"), React.createElement(Flex$1, {
|
|
36385
|
+
style: {
|
|
36386
|
+
width: '100%',
|
|
36387
|
+
alignItems: 'center',
|
|
36388
|
+
gap: '8px'
|
|
36389
|
+
}
|
|
36390
|
+
}, React.createElement(Input, {
|
|
36156
36391
|
onChange: function onChange(e) {
|
|
36157
|
-
setPrice(e.target.value);
|
|
36392
|
+
return setPrice(e.target.value);
|
|
36158
36393
|
},
|
|
36159
36394
|
value: price,
|
|
36160
|
-
placeholder: "
|
|
36395
|
+
placeholder: "Amount...",
|
|
36161
36396
|
type: "number",
|
|
36162
36397
|
disabled: !selectedItemToSell,
|
|
36163
36398
|
onBlur: enableHotkeys,
|
|
36164
|
-
onFocus: disableHotkeys
|
|
36165
|
-
|
|
36166
|
-
|
|
36399
|
+
onFocus: disableHotkeys,
|
|
36400
|
+
className: "price-input"
|
|
36401
|
+
}), React.createElement(SmallCTAButton, {
|
|
36402
|
+
icon: React.createElement(ShoppingBag, {
|
|
36403
|
+
width: 18,
|
|
36404
|
+
height: 18
|
|
36405
|
+
}),
|
|
36406
|
+
label: "Offer",
|
|
36167
36407
|
disabled: !selectedItemToSell || !price,
|
|
36168
|
-
|
|
36408
|
+
onClick: function onClick() {
|
|
36169
36409
|
if (selectedItemToSell && price && Number(price)) {
|
|
36170
36410
|
setIsCreatingOffer(true);
|
|
36171
36411
|
}
|
|
36172
36412
|
}
|
|
36173
|
-
}
|
|
36413
|
+
}))))), React.createElement(InnerOptionsWrapper, null, React.createElement(SectionLabel$1, {
|
|
36414
|
+
style: {
|
|
36415
|
+
marginBottom: '8px'
|
|
36416
|
+
}
|
|
36417
|
+
}, "Your Wealth"), React.createElement(WealthWrapper, null, React.createElement(BalanceRow, null, React.createElement(GoldIcon$1, null, React.createElement(SpriteFromAtlas, {
|
|
36418
|
+
atlasIMG: atlasIMG,
|
|
36419
|
+
atlasJSON: atlasJSON,
|
|
36420
|
+
spriteKey: "others/gold-coin-qty-5.png",
|
|
36421
|
+
imgScale: 1.2
|
|
36422
|
+
})), React.createElement(BalanceAmount$1, {
|
|
36174
36423
|
"$disabled": availableGold === 0
|
|
36175
|
-
}, React.createElement(
|
|
36176
|
-
|
|
36177
|
-
}, "
|
|
36178
|
-
|
|
36424
|
+
}, availableGold), React.createElement(BalanceCurrencyLabel, null, "GOLD")), dcBalance !== undefined && React.createElement(BalanceRow, null, React.createElement(DCIcon, null, "DC"), React.createElement(BalanceAmount$1, {
|
|
36425
|
+
"$disabled": false
|
|
36426
|
+
}, dcBalance), React.createElement(BalanceCurrencyLabel, null, "DC")), React.createElement(SmallCTAButton, {
|
|
36427
|
+
icon: React.createElement(Coins, {
|
|
36428
|
+
width: 18,
|
|
36429
|
+
height: 18
|
|
36430
|
+
}),
|
|
36431
|
+
label: "Withdraw Gold",
|
|
36179
36432
|
disabled: availableGold === 0,
|
|
36180
|
-
|
|
36433
|
+
onClick: function onClick() {
|
|
36181
36434
|
return availableGold > 0 && onMoneyWithdraw();
|
|
36182
|
-
}
|
|
36183
|
-
|
|
36435
|
+
},
|
|
36436
|
+
fullWidth: true
|
|
36437
|
+
})))), React.createElement(ItemComponentScrollWrapper$2, {
|
|
36184
36438
|
id: "MarketContainer",
|
|
36185
36439
|
ref: itemsContainer
|
|
36186
36440
|
}, items == null ? void 0 : items.map(function (_ref2, index) {
|
|
@@ -36198,50 +36452,162 @@ var ManagmentPanel = function ManagmentPanel(_ref) {
|
|
|
36198
36452
|
});
|
|
36199
36453
|
})));
|
|
36200
36454
|
};
|
|
36201
|
-
var Flex$
|
|
36455
|
+
var Flex$1 = /*#__PURE__*/styled.div.withConfig({
|
|
36202
36456
|
displayName: "ManagmentPanel__Flex",
|
|
36203
36457
|
componentId: "sc-1yyi6jn-0"
|
|
36204
36458
|
})(["display:flex;gap:5px;align-items:center;"]);
|
|
36205
|
-
var InputWrapper$1 = /*#__PURE__*/styled.div.withConfig({
|
|
36206
|
-
displayName: "ManagmentPanel__InputWrapper",
|
|
36207
|
-
componentId: "sc-1yyi6jn-1"
|
|
36208
|
-
})(["width:95%;display:flex !important;justify-content:flex-start;align-items:center;margin:auto;p{width:auto;margin-right:20px;}input{width:68%;height:10px;}"]);
|
|
36209
36459
|
var OptionsWrapper$1 = /*#__PURE__*/styled.div.withConfig({
|
|
36210
36460
|
displayName: "ManagmentPanel__OptionsWrapper",
|
|
36211
|
-
componentId: "sc-1yyi6jn-
|
|
36212
|
-
})(["width:
|
|
36461
|
+
componentId: "sc-1yyi6jn-1"
|
|
36462
|
+
})(["width:95%;margin:0 auto;display:grid;grid-template-columns:2fr 1fr;gap:15px;align-items:stretch;"]);
|
|
36213
36463
|
var InnerOptionsWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
36214
36464
|
displayName: "ManagmentPanel__InnerOptionsWrapper",
|
|
36465
|
+
componentId: "sc-1yyi6jn-2"
|
|
36466
|
+
})(["background:rgba(0,0,0,0.15);border-radius:4px;border:1px solid rgba(255,255,255,0.05);padding:12px 15px;display:flex;flex-direction:column;"]);
|
|
36467
|
+
var SectionLabel$1 = /*#__PURE__*/styled.p.withConfig({
|
|
36468
|
+
displayName: "ManagmentPanel__SectionLabel",
|
|
36215
36469
|
componentId: "sc-1yyi6jn-3"
|
|
36216
|
-
})(["
|
|
36217
|
-
var
|
|
36218
|
-
displayName: "
|
|
36470
|
+
})(["margin:0 0 12px 0;font-size:0.65rem;color:#aaa;text-transform:uppercase;letter-spacing:1px;"]);
|
|
36471
|
+
var SellDescription = /*#__PURE__*/styled.p.withConfig({
|
|
36472
|
+
displayName: "ManagmentPanel__SellDescription",
|
|
36219
36473
|
componentId: "sc-1yyi6jn-4"
|
|
36220
|
-
})(["
|
|
36474
|
+
})(["margin:0;font-size:0.5rem;color:#888;text-align:right;line-height:1.4;"]);
|
|
36221
36475
|
var PriceInputWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
36222
36476
|
displayName: "ManagmentPanel__PriceInputWrapper",
|
|
36223
36477
|
componentId: "sc-1yyi6jn-5"
|
|
36224
|
-
})(["p{margin:0;}input{width:
|
|
36225
|
-
var
|
|
36226
|
-
displayName: "
|
|
36478
|
+
})(["display:flex;flex-direction:column;flex-grow:1;p{margin:0 0 8px 0;font-size:0.6rem;color:#888;text-transform:uppercase;letter-spacing:0.5px;}.price-input{width:60px;height:32px;flex-grow:1;font-size:0.7rem;}.offer-btn{padding:10px 14px;height:32px;}"]);
|
|
36479
|
+
var GoldIcon$1 = /*#__PURE__*/styled.div.withConfig({
|
|
36480
|
+
displayName: "ManagmentPanel__GoldIcon",
|
|
36227
36481
|
componentId: "sc-1yyi6jn-6"
|
|
36228
|
-
})(["margin:
|
|
36229
|
-
var
|
|
36230
|
-
displayName: "
|
|
36482
|
+
})(["position:relative;display:flex;align-items:center;justify-content:center;width:20px;height:20px;margin-right:4px;flex-shrink:0;top:-0.5rem;left:-0.5rem;"]);
|
|
36483
|
+
var WealthWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
36484
|
+
displayName: "ManagmentPanel__WealthWrapper",
|
|
36231
36485
|
componentId: "sc-1yyi6jn-7"
|
|
36232
|
-
})(["
|
|
36233
|
-
|
|
36234
|
-
|
|
36235
|
-
|
|
36486
|
+
})(["display:flex;flex-direction:column;gap:8px;flex-grow:1;& > :last-child{margin-top:auto;}"]);
|
|
36487
|
+
var BalanceRow = /*#__PURE__*/styled.div.withConfig({
|
|
36488
|
+
displayName: "ManagmentPanel__BalanceRow",
|
|
36489
|
+
componentId: "sc-1yyi6jn-8"
|
|
36490
|
+
})(["display:flex;align-items:center;justify-content:flex-end;gap:10px;background:rgba(0,0,0,0.3);border-radius:4px;border:1px solid rgba(255,255,255,0.05);padding:8px 12px;"]);
|
|
36491
|
+
var BalanceAmount$1 = /*#__PURE__*/styled.span.withConfig({
|
|
36492
|
+
displayName: "ManagmentPanel__BalanceAmount",
|
|
36493
|
+
componentId: "sc-1yyi6jn-9"
|
|
36494
|
+
})(["font-family:'Press Start 2P',cursive;font-size:0.8rem;color:", ";text-shadow:0 2px 4px rgba(0,0,0,0.5);margin-left:auto;"], function (props) {
|
|
36495
|
+
return props.$disabled ? uiColors.lightGray : '#fef08a';
|
|
36236
36496
|
});
|
|
36497
|
+
var BalanceCurrencyLabel = /*#__PURE__*/styled.span.withConfig({
|
|
36498
|
+
displayName: "ManagmentPanel__BalanceCurrencyLabel",
|
|
36499
|
+
componentId: "sc-1yyi6jn-10"
|
|
36500
|
+
})(["font-size:0.5rem;color:#888;text-transform:uppercase;letter-spacing:0.5px;min-width:45px;text-align:right;"]);
|
|
36501
|
+
var DCIcon = /*#__PURE__*/styled.div.withConfig({
|
|
36502
|
+
displayName: "ManagmentPanel__DCIcon",
|
|
36503
|
+
componentId: "sc-1yyi6jn-11"
|
|
36504
|
+
})(["font-family:'Press Start 2P',cursive;font-size:0.5rem;color:#a78bfa;background:rgba(167,139,250,0.15);border:1px solid rgba(167,139,250,0.3);border-radius:3px;padding:3px 5px;line-height:1;margin-right:4px;"]);
|
|
36505
|
+
var ItemComponentScrollWrapper$2 = /*#__PURE__*/styled.div.withConfig({
|
|
36506
|
+
displayName: "ManagmentPanel__ItemComponentScrollWrapper",
|
|
36507
|
+
componentId: "sc-1yyi6jn-12"
|
|
36508
|
+
})(["overflow-y:scroll;height:335px;width:95%;margin:1rem auto 0 auto;background:rgba(0,0,0,0.2);border:1px solid rgba(255,255,255,0.05);border-radius:4px;@media (max-width:950px){height:195px;}"]);
|
|
36509
|
+
var SmallCTAButton = /*#__PURE__*/styled(CTAButton).withConfig({
|
|
36510
|
+
displayName: "ManagmentPanel__SmallCTAButton",
|
|
36511
|
+
componentId: "sc-1yyi6jn-13"
|
|
36512
|
+
})(["padding:8px 12px;height:32px;span{font-size:0.65rem;}svg{font-size:1.1rem;}"]);
|
|
36513
|
+
|
|
36514
|
+
var CURRENCY_OPTIONS = [{
|
|
36515
|
+
value: 'gold_or_dc',
|
|
36516
|
+
label: 'Gold or DC',
|
|
36517
|
+
description: 'Accept both Gold and Definya Coin as payment'
|
|
36518
|
+
}, {
|
|
36519
|
+
value: 'gold',
|
|
36520
|
+
label: 'Gold only',
|
|
36521
|
+
description: 'Only accept Gold as payment'
|
|
36522
|
+
}];
|
|
36523
|
+
var MarketplaceSettingsPanel = function MarketplaceSettingsPanel(_ref) {
|
|
36524
|
+
var acceptedCurrency = _ref.acceptedCurrency,
|
|
36525
|
+
onAcceptedCurrencyChange = _ref.onAcceptedCurrencyChange;
|
|
36526
|
+
return React.createElement(Wrapper$1, null, React.createElement(Section$1, null, React.createElement(SectionLabel$2, null, "Accepted Currency"), React.createElement(OptionsGrid, null, CURRENCY_OPTIONS.map(function (option) {
|
|
36527
|
+
return React.createElement(OptionCard, {
|
|
36528
|
+
key: option.value,
|
|
36529
|
+
"$active": acceptedCurrency === option.value,
|
|
36530
|
+
onClick: function onClick() {
|
|
36531
|
+
return onAcceptedCurrencyChange(option.value);
|
|
36532
|
+
}
|
|
36533
|
+
}, React.createElement(OptionLabel$1, {
|
|
36534
|
+
"$active": acceptedCurrency === option.value
|
|
36535
|
+
}, option.label), React.createElement(OptionDescription, null, option.description), acceptedCurrency === option.value && React.createElement(ActiveBadge, null, "Active"));
|
|
36536
|
+
})), React.createElement(Hint, null, "Buyers will only be able to pay using the currency you accept.")));
|
|
36537
|
+
};
|
|
36538
|
+
var Wrapper$1 = /*#__PURE__*/styled.div.withConfig({
|
|
36539
|
+
displayName: "MarketplaceSettingsPanel__Wrapper",
|
|
36540
|
+
componentId: "sc-1lvibyi-0"
|
|
36541
|
+
})(["width:95%;margin:0 auto;padding-top:4px;"]);
|
|
36542
|
+
var Section$1 = /*#__PURE__*/styled.div.withConfig({
|
|
36543
|
+
displayName: "MarketplaceSettingsPanel__Section",
|
|
36544
|
+
componentId: "sc-1lvibyi-1"
|
|
36545
|
+
})(["background:rgba(0,0,0,0.15);border-radius:4px;border:1px solid rgba(255,255,255,0.05);padding:16px 18px;"]);
|
|
36546
|
+
var SectionLabel$2 = /*#__PURE__*/styled.p.withConfig({
|
|
36547
|
+
displayName: "MarketplaceSettingsPanel__SectionLabel",
|
|
36548
|
+
componentId: "sc-1lvibyi-2"
|
|
36549
|
+
})(["margin:0 0 14px 0;font-size:0.65rem;color:#aaa;text-transform:uppercase;letter-spacing:1px;"]);
|
|
36550
|
+
var OptionsGrid = /*#__PURE__*/styled.div.withConfig({
|
|
36551
|
+
displayName: "MarketplaceSettingsPanel__OptionsGrid",
|
|
36552
|
+
componentId: "sc-1lvibyi-3"
|
|
36553
|
+
})(["display:grid;grid-template-columns:1fr 1fr;gap:12px;"]);
|
|
36554
|
+
var OptionCard = /*#__PURE__*/styled.button.withConfig({
|
|
36555
|
+
displayName: "MarketplaceSettingsPanel__OptionCard",
|
|
36556
|
+
componentId: "sc-1lvibyi-4"
|
|
36557
|
+
})(["position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:14px 16px;background:", ";border:2px solid ", ";border-radius:6px;cursor:pointer;text-align:left;transition:border-color 0.15s,background 0.15s;&:hover{border-color:", ";background:", ";}"], function (_ref2) {
|
|
36558
|
+
var $active = _ref2.$active;
|
|
36559
|
+
return $active ? 'rgba(245, 158, 11, 0.12)' : 'rgba(0, 0, 0, 0.25)';
|
|
36560
|
+
}, function (_ref3) {
|
|
36561
|
+
var $active = _ref3.$active;
|
|
36562
|
+
return $active ? '#f59e0b' : 'rgba(255,255,255,0.08)';
|
|
36563
|
+
}, function (_ref4) {
|
|
36564
|
+
var $active = _ref4.$active;
|
|
36565
|
+
return $active ? '#f59e0b' : 'rgba(255,255,255,0.25)';
|
|
36566
|
+
}, function (_ref5) {
|
|
36567
|
+
var $active = _ref5.$active;
|
|
36568
|
+
return $active ? 'rgba(245, 158, 11, 0.15)' : 'rgba(255,255,255,0.04)';
|
|
36569
|
+
});
|
|
36570
|
+
var OptionLabel$1 = /*#__PURE__*/styled.span.withConfig({
|
|
36571
|
+
displayName: "MarketplaceSettingsPanel__OptionLabel",
|
|
36572
|
+
componentId: "sc-1lvibyi-5"
|
|
36573
|
+
})(["font-family:'Press Start 2P',cursive;font-size:0.6rem;color:", ";letter-spacing:0.5px;"], function (_ref6) {
|
|
36574
|
+
var $active = _ref6.$active;
|
|
36575
|
+
return $active ? '#f59e0b' : '#cccccc';
|
|
36576
|
+
});
|
|
36577
|
+
var OptionDescription = /*#__PURE__*/styled.span.withConfig({
|
|
36578
|
+
displayName: "MarketplaceSettingsPanel__OptionDescription",
|
|
36579
|
+
componentId: "sc-1lvibyi-6"
|
|
36580
|
+
})(["font-size:0.5rem;color:#888;line-height:1.5;"]);
|
|
36581
|
+
var ActiveBadge = /*#__PURE__*/styled.span.withConfig({
|
|
36582
|
+
displayName: "MarketplaceSettingsPanel__ActiveBadge",
|
|
36583
|
+
componentId: "sc-1lvibyi-7"
|
|
36584
|
+
})(["position:absolute;top:8px;right:10px;font-size:0.45rem;color:#f59e0b;text-transform:uppercase;letter-spacing:0.5px;opacity:0.8;"]);
|
|
36585
|
+
var Hint = /*#__PURE__*/styled.p.withConfig({
|
|
36586
|
+
displayName: "MarketplaceSettingsPanel__Hint",
|
|
36587
|
+
componentId: "sc-1lvibyi-8"
|
|
36588
|
+
})(["margin:14px 0 0 0;font-size:0.48rem;color:#666;line-height:1.6;"]);
|
|
36237
36589
|
|
|
36238
36590
|
var Marketplace = function Marketplace(props) {
|
|
36239
36591
|
var onClose = props.onClose,
|
|
36240
36592
|
scale = props.scale,
|
|
36241
|
-
onYourPanelToggle = props.onYourPanelToggle
|
|
36242
|
-
|
|
36243
|
-
|
|
36244
|
-
|
|
36593
|
+
onYourPanelToggle = props.onYourPanelToggle,
|
|
36594
|
+
acceptedCurrencyProp = props.acceptedCurrency,
|
|
36595
|
+
onAcceptedCurrencyChange = props.onAcceptedCurrencyChange;
|
|
36596
|
+
var _useState = useState('marketplace'),
|
|
36597
|
+
activeTab = _useState[0],
|
|
36598
|
+
setActiveTab = _useState[1];
|
|
36599
|
+
var _useState2 = useState(acceptedCurrencyProp != null ? acceptedCurrencyProp : 'gold_or_dc'),
|
|
36600
|
+
acceptedCurrency = _useState2[0],
|
|
36601
|
+
setAcceptedCurrency = _useState2[1];
|
|
36602
|
+
var handleCurrencyChange = function handleCurrencyChange(value) {
|
|
36603
|
+
setAcceptedCurrency(value);
|
|
36604
|
+
onAcceptedCurrencyChange == null ? void 0 : onAcceptedCurrencyChange(value);
|
|
36605
|
+
};
|
|
36606
|
+
var handleTabChange = function handleTabChange(tabId) {
|
|
36607
|
+
var tab = tabId;
|
|
36608
|
+
setActiveTab(tab);
|
|
36609
|
+
onYourPanelToggle(tab === 'your-panel');
|
|
36610
|
+
};
|
|
36245
36611
|
return React.createElement(DraggableContainer, {
|
|
36246
36612
|
type: RPGUIContainerTypes.Framed,
|
|
36247
36613
|
onCloseButton: function onCloseButton() {
|
|
@@ -36250,24 +36616,40 @@ var Marketplace = function Marketplace(props) {
|
|
|
36250
36616
|
width: "800px",
|
|
36251
36617
|
cancelDrag: "#MarketContainer, .rpgui-dropdown-imp, input, .empty-slot, button",
|
|
36252
36618
|
scale: scale
|
|
36253
|
-
},
|
|
36254
|
-
|
|
36255
|
-
|
|
36256
|
-
|
|
36257
|
-
|
|
36258
|
-
|
|
36259
|
-
|
|
36260
|
-
|
|
36261
|
-
|
|
36262
|
-
|
|
36263
|
-
|
|
36264
|
-
|
|
36265
|
-
|
|
36619
|
+
}, React.createElement(Tabs, {
|
|
36620
|
+
options: [{
|
|
36621
|
+
id: 'marketplace',
|
|
36622
|
+
label: 'Marketplace',
|
|
36623
|
+
icon: React.createElement(Store$1, {
|
|
36624
|
+
width: 18,
|
|
36625
|
+
height: 18
|
|
36626
|
+
})
|
|
36627
|
+
}, {
|
|
36628
|
+
id: 'your-panel',
|
|
36629
|
+
label: 'Your Panel',
|
|
36630
|
+
icon: React.createElement(User, {
|
|
36631
|
+
width: 18,
|
|
36632
|
+
height: 18
|
|
36633
|
+
})
|
|
36634
|
+
}, {
|
|
36635
|
+
id: 'settings',
|
|
36636
|
+
label: 'Settings',
|
|
36637
|
+
icon: React.createElement(Settings2, {
|
|
36638
|
+
width: 18,
|
|
36639
|
+
height: 18
|
|
36640
|
+
})
|
|
36641
|
+
}],
|
|
36642
|
+
activeTabId: activeTab,
|
|
36643
|
+
onTabChange: handleTabChange
|
|
36644
|
+
}), activeTab === 'your-panel' && React.createElement(React.Fragment, null, React.createElement(ManagmentPanel, Object.assign({}, props)), React.createElement(PagerContainer$1, null, React.createElement(Pager, Object.assign({}, props)))), activeTab === 'marketplace' && React.createElement(React.Fragment, null, React.createElement(BuyPanel, Object.assign({}, props)), React.createElement(PagerContainer$1, null, React.createElement(Pager, Object.assign({}, props)))), activeTab === 'settings' && React.createElement(MarketplaceSettingsPanel, {
|
|
36645
|
+
acceptedCurrency: acceptedCurrency,
|
|
36646
|
+
onAcceptedCurrencyChange: handleCurrencyChange
|
|
36647
|
+
}));
|
|
36266
36648
|
};
|
|
36267
36649
|
var PagerContainer$1 = /*#__PURE__*/styled.div.withConfig({
|
|
36268
36650
|
displayName: "Marketplace__PagerContainer",
|
|
36269
36651
|
componentId: "sc-h904b1-0"
|
|
36270
|
-
})(["display:flex;justify-content:
|
|
36652
|
+
})(["display:flex;justify-content:center;align-items:center;width:95%;margin:15px auto 0 auto;padding:12px 16px;background:rgba(0,0,0,0.3);border-top:1px solid rgba(255,255,255,0.1);border-radius:6px;box-sizing:border-box;"]);
|
|
36271
36653
|
|
|
36272
36654
|
var TabBody = function TabBody(_ref) {
|
|
36273
36655
|
var id = _ref.id,
|
|
@@ -36328,7 +36710,7 @@ var MultitabType;
|
|
|
36328
36710
|
MultitabType["Brown"] = "brown";
|
|
36329
36711
|
MultitabType["Gray"] = "gray";
|
|
36330
36712
|
})(MultitabType || (MultitabType = {}));
|
|
36331
|
-
var TabsContainer = function TabsContainer(_ref) {
|
|
36713
|
+
var TabsContainer$1 = function TabsContainer(_ref) {
|
|
36332
36714
|
var children = _ref.children,
|
|
36333
36715
|
onCloseButton = _ref.onCloseButton,
|
|
36334
36716
|
tabs = _ref.tabs,
|
|
@@ -36422,11 +36804,11 @@ var PartyCreate = function PartyCreate(_ref) {
|
|
|
36422
36804
|
width: "500px",
|
|
36423
36805
|
height: "300px",
|
|
36424
36806
|
cancelDrag: ".partyRows"
|
|
36425
|
-
}, React.createElement(Wrapper$
|
|
36807
|
+
}, React.createElement(Wrapper$2, null, React.createElement("div", {
|
|
36426
36808
|
style: {
|
|
36427
36809
|
width: '100%'
|
|
36428
36810
|
}
|
|
36429
|
-
}, React.createElement(Title$
|
|
36811
|
+
}, React.createElement(Title$a, null, "Create Party"), React.createElement("hr", {
|
|
36430
36812
|
className: "golden"
|
|
36431
36813
|
}))), React.createElement("h1", null, "Type your party name"), React.createElement(Input, {
|
|
36432
36814
|
placeholder: "Type party name",
|
|
@@ -36445,11 +36827,11 @@ var PartyCreate = function PartyCreate(_ref) {
|
|
|
36445
36827
|
}
|
|
36446
36828
|
}, "Cancel"))));
|
|
36447
36829
|
};
|
|
36448
|
-
var Wrapper$
|
|
36830
|
+
var Wrapper$2 = /*#__PURE__*/styled.div.withConfig({
|
|
36449
36831
|
displayName: "PartyCreate__Wrapper",
|
|
36450
36832
|
componentId: "sc-13brop0-0"
|
|
36451
36833
|
})(["display:flex;flex-direction:column;width:100%;"]);
|
|
36452
|
-
var Title$
|
|
36834
|
+
var Title$a = /*#__PURE__*/styled.h1.withConfig({
|
|
36453
36835
|
displayName: "PartyCreate__Title",
|
|
36454
36836
|
componentId: "sc-13brop0-1"
|
|
36455
36837
|
})(["font-size:0.6rem;color:", " !important;"], uiColors.yellow);
|
|
@@ -36494,11 +36876,11 @@ var PartyDashboard = function PartyDashboard(_ref) {
|
|
|
36494
36876
|
width: "800px",
|
|
36495
36877
|
height: "400px",
|
|
36496
36878
|
cancelDrag: ".partyRows"
|
|
36497
|
-
}, React.createElement(Wrapper$
|
|
36879
|
+
}, React.createElement(Wrapper$3, null, React.createElement("div", {
|
|
36498
36880
|
style: {
|
|
36499
36881
|
width: '100%'
|
|
36500
36882
|
}
|
|
36501
|
-
}, React.createElement(Title$
|
|
36883
|
+
}, React.createElement(Title$b, null, "Party Dashboard"), React.createElement(Button, {
|
|
36502
36884
|
buttonType: ButtonTypes.RPGUIButton
|
|
36503
36885
|
}, "Create"), React.createElement("hr", {
|
|
36504
36886
|
className: "golden"
|
|
@@ -36517,7 +36899,7 @@ var PartyDashboard = function PartyDashboard(_ref) {
|
|
|
36517
36899
|
});
|
|
36518
36900
|
})));
|
|
36519
36901
|
};
|
|
36520
|
-
var Wrapper$
|
|
36902
|
+
var Wrapper$3 = /*#__PURE__*/styled.div.withConfig({
|
|
36521
36903
|
displayName: "PartyDashboard__Wrapper",
|
|
36522
36904
|
componentId: "sc-16cm41r-0"
|
|
36523
36905
|
})(["display:flex;flex-direction:column;width:100%;"]);
|
|
@@ -36525,7 +36907,7 @@ var RowsWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
|
36525
36907
|
displayName: "PartyDashboard__RowsWrapper",
|
|
36526
36908
|
componentId: "sc-16cm41r-1"
|
|
36527
36909
|
})(["overflow-y:scroll;-webkit-overflow-scrolling:touch;width:100%;height:200px;"]);
|
|
36528
|
-
var Title$
|
|
36910
|
+
var Title$b = /*#__PURE__*/styled.h1.withConfig({
|
|
36529
36911
|
displayName: "PartyDashboard__Title",
|
|
36530
36912
|
componentId: "sc-16cm41r-2"
|
|
36531
36913
|
})(["font-size:0.6rem;color:", " !important;"], uiColors.yellow);
|
|
@@ -36558,11 +36940,11 @@ var PartyInvite = function PartyInvite(_ref) {
|
|
|
36558
36940
|
width: "600px",
|
|
36559
36941
|
height: "400px",
|
|
36560
36942
|
cancelDrag: ".playersRows"
|
|
36561
|
-
}, React.createElement(Wrapper$
|
|
36943
|
+
}, React.createElement(Wrapper$4, null, React.createElement("div", {
|
|
36562
36944
|
style: {
|
|
36563
36945
|
width: '100%'
|
|
36564
36946
|
}
|
|
36565
|
-
}, React.createElement(Title$
|
|
36947
|
+
}, React.createElement(Title$c, null, "Invite for Party"), React.createElement("hr", {
|
|
36566
36948
|
className: "golden"
|
|
36567
36949
|
}))), React.createElement(RowsWrapper$1, {
|
|
36568
36950
|
className: "playersRows"
|
|
@@ -36577,11 +36959,11 @@ var PartyInvite = function PartyInvite(_ref) {
|
|
|
36577
36959
|
});
|
|
36578
36960
|
})));
|
|
36579
36961
|
};
|
|
36580
|
-
var Wrapper$
|
|
36962
|
+
var Wrapper$4 = /*#__PURE__*/styled.div.withConfig({
|
|
36581
36963
|
displayName: "PartyInvite__Wrapper",
|
|
36582
36964
|
componentId: "sc-eu8ggt-0"
|
|
36583
36965
|
})(["display:flex;flex-direction:column;width:100%;"]);
|
|
36584
|
-
var Title$
|
|
36966
|
+
var Title$c = /*#__PURE__*/styled.h1.withConfig({
|
|
36585
36967
|
displayName: "PartyInvite__Title",
|
|
36586
36968
|
componentId: "sc-eu8ggt-1"
|
|
36587
36969
|
})(["font-size:0.6rem;color:", " !important;"], uiColors.yellow);
|
|
@@ -36618,7 +37000,7 @@ var PartyManagerRow = function PartyManagerRow(_ref) {
|
|
|
36618
37000
|
}, charName, " ", isCurrentUser ? '(You)' : '', " ", isLeader ? '(Leader)' : '')), React.createElement(TextContainer$5, null, React.createElement(Ellipsis, {
|
|
36619
37001
|
maxLines: 1,
|
|
36620
37002
|
maxWidth: "300px"
|
|
36621
|
-
}, charClass)), React.createElement(ButtonContainer$
|
|
37003
|
+
}, charClass)), React.createElement(ButtonContainer$3, null, canRemove && React.createElement(HighlightedText, {
|
|
36622
37004
|
onPointerDown: function onPointerDown() {
|
|
36623
37005
|
return onRemovePlayer(id);
|
|
36624
37006
|
}
|
|
@@ -36636,7 +37018,7 @@ var TextContainer$5 = /*#__PURE__*/styled.div.withConfig({
|
|
|
36636
37018
|
displayName: "PartyManagerRows__TextContainer",
|
|
36637
37019
|
componentId: "sc-uqajew-1"
|
|
36638
37020
|
})(["color:", ";overflow:hidden;white-space:nowrap;text-overflow:ellipsis;"], uiColors.white);
|
|
36639
|
-
var ButtonContainer$
|
|
37021
|
+
var ButtonContainer$3 = /*#__PURE__*/styled.div.withConfig({
|
|
36640
37022
|
displayName: "PartyManagerRows__ButtonContainer",
|
|
36641
37023
|
componentId: "sc-uqajew-2"
|
|
36642
37024
|
})(["display:flex;align-items:center;gap:1rem;justify-content:flex-start;"]);
|
|
@@ -37023,7 +37405,7 @@ var QuestInfo = function QuestInfo(_ref) {
|
|
|
37023
37405
|
onPointerDown: onRightClick
|
|
37024
37406
|
}), React.createElement(QuestContainer, null, React.createElement(TitleContainer$1, {
|
|
37025
37407
|
className: "drag-handler"
|
|
37026
|
-
}, React.createElement(Title$
|
|
37408
|
+
}, React.createElement(Title$d, null, React.createElement(Thumbnail, {
|
|
37027
37409
|
src: quests[currentIndex].thumbnail || img$8
|
|
37028
37410
|
}), quests[currentIndex].title), React.createElement(QuestSplitDiv, null, React.createElement("hr", {
|
|
37029
37411
|
className: "golden"
|
|
@@ -37042,7 +37424,7 @@ var QuestInfo = function QuestInfo(_ref) {
|
|
|
37042
37424
|
}, button.title);
|
|
37043
37425
|
})))) : React.createElement(QuestsContainer, null, React.createElement(QuestContainer, null, React.createElement(TitleContainer$1, {
|
|
37044
37426
|
className: "drag-handler"
|
|
37045
|
-
}, React.createElement(Title$
|
|
37427
|
+
}, React.createElement(Title$d, null, React.createElement(Thumbnail, {
|
|
37046
37428
|
src: quests[0].thumbnail || img$8
|
|
37047
37429
|
}), quests[0].title), React.createElement(QuestSplitDiv, null, React.createElement("hr", {
|
|
37048
37430
|
className: "golden"
|
|
@@ -37089,7 +37471,7 @@ var TitleContainer$1 = /*#__PURE__*/styled.div.withConfig({
|
|
|
37089
37471
|
displayName: "QuestInfo__TitleContainer",
|
|
37090
37472
|
componentId: "sc-1wccpiy-6"
|
|
37091
37473
|
})(["width:100%;display:flex;flex-wrap:wrap;justify-content:flex-start;align-items:center;margin-top:1rem;"]);
|
|
37092
|
-
var Title$
|
|
37474
|
+
var Title$d = /*#__PURE__*/styled.h1.withConfig({
|
|
37093
37475
|
displayName: "QuestInfo__Title",
|
|
37094
37476
|
componentId: "sc-1wccpiy-7"
|
|
37095
37477
|
})(["color:white;z-index:22;font-size:", " !important;color:", " !important;"], uiFonts.size.medium, uiColors.yellow);
|
|
@@ -37617,7 +37999,7 @@ var SkillsContainer = function SkillsContainer(_ref) {
|
|
|
37617
37999
|
cancelDrag: "#skillsDiv",
|
|
37618
38000
|
scale: scale,
|
|
37619
38001
|
width: "100%"
|
|
37620
|
-
}, onCloseButton && React.createElement(CloseButton$
|
|
38002
|
+
}, onCloseButton && React.createElement(CloseButton$b, {
|
|
37621
38003
|
onPointerDown: onCloseButton
|
|
37622
38004
|
}, "X"), React.createElement(SkillsContainerDiv, {
|
|
37623
38005
|
id: "skillsDiv"
|
|
@@ -37652,7 +38034,7 @@ var SkillSplitDiv = /*#__PURE__*/styled.div.withConfig({
|
|
|
37652
38034
|
displayName: "SkillsContainer__SkillSplitDiv",
|
|
37653
38035
|
componentId: "sc-1g0c67q-2"
|
|
37654
38036
|
})(["width:100%;font-size:11px;hr{margin:0;margin-bottom:1rem;padding:0px;}p{margin-bottom:0px;}"]);
|
|
37655
|
-
var CloseButton$
|
|
38037
|
+
var CloseButton$b = /*#__PURE__*/styled.div.withConfig({
|
|
37656
38038
|
displayName: "SkillsContainer__CloseButton",
|
|
37657
38039
|
componentId: "sc-1g0c67q-3"
|
|
37658
38040
|
})(["position:absolute;top:2px;right:2px;color:white;z-index:22;font-size:1.1rem;"]);
|
|
@@ -37788,7 +38170,7 @@ var SpellInfo$1 = function SpellInfo(_ref) {
|
|
|
37788
38170
|
castingType = spell.castingType,
|
|
37789
38171
|
cooldown = spell.cooldown,
|
|
37790
38172
|
maxDistanceGrid = spell.maxDistanceGrid;
|
|
37791
|
-
return React.createElement(Container$F, null, React.createElement(Header$
|
|
38173
|
+
return React.createElement(Container$F, null, React.createElement(Header$9, null, React.createElement("div", null, React.createElement(Title$e, null, name), React.createElement(Type$1, null, magicWords))), React.createElement(Statistic$1, null, React.createElement("div", {
|
|
37792
38174
|
className: "label"
|
|
37793
38175
|
}, "Casting Type:"), React.createElement("div", {
|
|
37794
38176
|
className: "value"
|
|
@@ -37818,7 +38200,7 @@ var Container$F = /*#__PURE__*/styled.div.withConfig({
|
|
|
37818
38200
|
displayName: "SpellInfo__Container",
|
|
37819
38201
|
componentId: "sc-4hbw3q-0"
|
|
37820
38202
|
})(["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);
|
|
37821
|
-
var Title$
|
|
38203
|
+
var Title$e = /*#__PURE__*/styled.div.withConfig({
|
|
37822
38204
|
displayName: "SpellInfo__Title",
|
|
37823
38205
|
componentId: "sc-4hbw3q-1"
|
|
37824
38206
|
})(["font-size:", ";font-weight:bold;margin-bottom:0.5rem;display:flex;align-items:center;margin:0;"], uiFonts.size.medium);
|
|
@@ -37830,7 +38212,7 @@ var Description$4 = /*#__PURE__*/styled.div.withConfig({
|
|
|
37830
38212
|
displayName: "SpellInfo__Description",
|
|
37831
38213
|
componentId: "sc-4hbw3q-3"
|
|
37832
38214
|
})(["margin-top:1.5rem;font-size:", ";color:", ";font-style:italic;"], uiFonts.size.small, uiColors.lightGray);
|
|
37833
|
-
var Header$
|
|
38215
|
+
var Header$9 = /*#__PURE__*/styled.div.withConfig({
|
|
37834
38216
|
displayName: "SpellInfo__Header",
|
|
37835
38217
|
componentId: "sc-4hbw3q-4"
|
|
37836
38218
|
})(["display:flex;align-items:center;justify-content:space-between;margin-bottom:0.5rem;"]);
|
|
@@ -37842,13 +38224,13 @@ var Statistic$1 = /*#__PURE__*/styled.div.withConfig({
|
|
|
37842
38224
|
var SpellInfoDisplay = function SpellInfoDisplay(_ref) {
|
|
37843
38225
|
var spell = _ref.spell,
|
|
37844
38226
|
isMobile = _ref.isMobile;
|
|
37845
|
-
return React.createElement(Flex$
|
|
38227
|
+
return React.createElement(Flex$2, {
|
|
37846
38228
|
"$isMobile": isMobile
|
|
37847
38229
|
}, React.createElement(SpellInfo$1, {
|
|
37848
38230
|
spell: spell
|
|
37849
38231
|
}));
|
|
37850
38232
|
};
|
|
37851
|
-
var Flex$
|
|
38233
|
+
var Flex$2 = /*#__PURE__*/styled.div.withConfig({
|
|
37852
38234
|
displayName: "SpellInfoDisplay__Flex",
|
|
37853
38235
|
componentId: "sc-1htnsmm-0"
|
|
37854
38236
|
})(["display:flex;gap:0.5rem;flex-direction:", ";@media (max-width:580px){flex-direction:column-reverse;align-items:center;}"], function (_ref2) {
|
|
@@ -38055,7 +38437,7 @@ var Spell = function Spell(_ref) {
|
|
|
38055
38437
|
imgScale: IMAGE_SCALE,
|
|
38056
38438
|
containerStyle: CONTAINER_STYLE,
|
|
38057
38439
|
centered: true
|
|
38058
|
-
})), React.createElement(Info, null, React.createElement(Title$
|
|
38440
|
+
})), React.createElement(Info, null, React.createElement(Title$f, null, React.createElement("span", null, name), React.createElement("span", {
|
|
38059
38441
|
className: "spell"
|
|
38060
38442
|
}, "(", 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", {
|
|
38061
38443
|
className: "mana"
|
|
@@ -38076,7 +38458,7 @@ var Info = /*#__PURE__*/styled.span.withConfig({
|
|
|
38076
38458
|
displayName: "Spell__Info",
|
|
38077
38459
|
componentId: "sc-j96fa2-2"
|
|
38078
38460
|
})(["width:0;flex:1;@media (orientation:portrait){display:none;}"]);
|
|
38079
|
-
var Title$
|
|
38461
|
+
var Title$f = /*#__PURE__*/styled.p.withConfig({
|
|
38080
38462
|
displayName: "Spell__Title",
|
|
38081
38463
|
componentId: "sc-j96fa2-3"
|
|
38082
38464
|
})(["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);
|
|
@@ -38141,7 +38523,7 @@ var Spellbook = function Spellbook(_ref) {
|
|
|
38141
38523
|
height: "inherit",
|
|
38142
38524
|
cancelDrag: "#spellbook-search, #shortcuts_list, .spell",
|
|
38143
38525
|
scale: scale
|
|
38144
|
-
}, React.createElement(Container$J, null, React.createElement(Title$
|
|
38526
|
+
}, React.createElement(Container$J, null, React.createElement(Title$g, null, "Learned Spells"), React.createElement(ShortcutsSetter, {
|
|
38145
38527
|
setSettingShortcutIndex: setSettingShortcutIndex,
|
|
38146
38528
|
settingShortcutIndex: settingShortcutIndex,
|
|
38147
38529
|
shortcuts: shortcuts,
|
|
@@ -38174,7 +38556,7 @@ var Spellbook = function Spellbook(_ref) {
|
|
|
38174
38556
|
}, spell)));
|
|
38175
38557
|
}))));
|
|
38176
38558
|
};
|
|
38177
|
-
var Title$
|
|
38559
|
+
var Title$g = /*#__PURE__*/styled.h1.withConfig({
|
|
38178
38560
|
displayName: "Spellbook__Title",
|
|
38179
38561
|
componentId: "sc-r02nfq-0"
|
|
38180
38562
|
})(["font-size:", " !important;margin-bottom:0 !important;"], uiFonts.size.large);
|
|
@@ -58616,7 +58998,7 @@ var CartView = function CartView(_ref2) {
|
|
|
58616
58998
|
return _ref3.apply(this, arguments);
|
|
58617
58999
|
};
|
|
58618
59000
|
}();
|
|
58619
|
-
return React.createElement(Container$K, null, React.createElement(Header$
|
|
59001
|
+
return React.createElement(Container$K, null, React.createElement(Header$a, null, React.createElement(Title$h, null, "Shopping Cart"), React.createElement(CloseButton$c, {
|
|
58620
59002
|
onPointerDown: onClose
|
|
58621
59003
|
}, React.createElement(FaTimes, null))), React.createElement(CartItems, null, cartItems.length === 0 ? React.createElement(EmptyCart, null, "Your cart is empty") : cartItems.map(function (cartItem) {
|
|
58622
59004
|
var _cartItem$metadata, _cartItem$metadata2;
|
|
@@ -58626,7 +59008,7 @@ var CartView = function CartView(_ref2) {
|
|
|
58626
59008
|
};
|
|
58627
59009
|
return React.createElement(CartItemRow, {
|
|
58628
59010
|
key: cartItem.item.key
|
|
58629
|
-
}, React.createElement(ItemIconContainer
|
|
59011
|
+
}, React.createElement(ItemIconContainer, null, React.createElement(SpriteFromAtlas, {
|
|
58630
59012
|
atlasJSON: cartItem.item.metadataType === MetadataType.CharacterSkin ? characterAtlasJSON : atlasJSON,
|
|
58631
59013
|
atlasIMG: cartItem.item.metadataType === MetadataType.CharacterSkin ? img$a : atlasIMG,
|
|
58632
59014
|
spriteKey: cartItem.item.metadataType === MetadataType.CharacterSkin && (_cartItem$metadata = cartItem.metadata) != null && _cartItem$metadata.selectedSkinTextureKey ? getSpriteKey(cartItem.metadata.selectedSkinTextureKey) : cartItem.item.texturePath,
|
|
@@ -58634,7 +59016,7 @@ var CartView = function CartView(_ref2) {
|
|
|
58634
59016
|
height: 32,
|
|
58635
59017
|
imgScale: 2,
|
|
58636
59018
|
centered: true
|
|
58637
|
-
})), React.createElement(ItemDetails, null, React.createElement(ItemName, null, cartItem.item.name), ((_cartItem$metadata2 = cartItem.metadata) == null ? void 0 : _cartItem$metadata2.inputValue) && React.createElement(CartMeta, null, cartItem.metadata.inputValue), React.createElement(ItemInfo$1, null, React.createElement("span", null, "$", formatPrice(cartItem.item.price)), React.createElement("span", null, "\xD7"), React.createElement("span", null, cartItem.quantity), React.createElement("span", null, "="), React.createElement("span", null, "$", formatPrice(cartItem.item.price * cartItem.quantity))), cartItem.metadata && cartItem.item.metadataType && React.createElement(MetadataDisplay, {
|
|
59019
|
+
})), React.createElement(ItemDetails$1, null, React.createElement(ItemName$1, null, cartItem.item.name), ((_cartItem$metadata2 = cartItem.metadata) == null ? void 0 : _cartItem$metadata2.inputValue) && React.createElement(CartMeta, null, cartItem.metadata.inputValue), React.createElement(ItemInfo$1, null, React.createElement("span", null, "$", formatPrice(cartItem.item.price)), React.createElement("span", null, "\xD7"), React.createElement("span", null, cartItem.quantity), React.createElement("span", null, "="), React.createElement("span", null, "$", formatPrice(cartItem.item.price * cartItem.quantity))), cartItem.metadata && cartItem.item.metadataType && React.createElement(MetadataDisplay, {
|
|
58638
59020
|
type: cartItem.item.metadataType,
|
|
58639
59021
|
metadata: cartItem.metadata
|
|
58640
59022
|
})), React.createElement(CTAButton, {
|
|
@@ -58656,15 +59038,15 @@ var Container$K = /*#__PURE__*/styled.div.withConfig({
|
|
|
58656
59038
|
displayName: "CartView__Container",
|
|
58657
59039
|
componentId: "sc-ydtyl1-0"
|
|
58658
59040
|
})(["display:flex;flex-direction:column;width:100%;height:100%;gap:1.5rem;padding:1.5rem;"]);
|
|
58659
|
-
var Header$
|
|
59041
|
+
var Header$a = /*#__PURE__*/styled.div.withConfig({
|
|
58660
59042
|
displayName: "CartView__Header",
|
|
58661
59043
|
componentId: "sc-ydtyl1-1"
|
|
58662
59044
|
})(["display:flex;justify-content:space-between;align-items:center;"]);
|
|
58663
|
-
var Title$
|
|
59045
|
+
var Title$h = /*#__PURE__*/styled.h2.withConfig({
|
|
58664
59046
|
displayName: "CartView__Title",
|
|
58665
59047
|
componentId: "sc-ydtyl1-2"
|
|
58666
59048
|
})(["font-family:'Press Start 2P',cursive;font-size:1rem;color:#ffffff;margin:0;"]);
|
|
58667
|
-
var CloseButton$
|
|
59049
|
+
var CloseButton$c = /*#__PURE__*/styled.div.withConfig({
|
|
58668
59050
|
displayName: "CartView__CloseButton",
|
|
58669
59051
|
componentId: "sc-ydtyl1-3"
|
|
58670
59052
|
})(["padding:0.5rem;min-width:unset;width:42px;height:42px;display:flex;font-size:1.5rem;align-items:center;color:white;justify-content:center;"]);
|
|
@@ -58680,15 +59062,15 @@ var CartItemRow = /*#__PURE__*/styled.div.withConfig({
|
|
|
58680
59062
|
displayName: "CartView__CartItemRow",
|
|
58681
59063
|
componentId: "sc-ydtyl1-6"
|
|
58682
59064
|
})(["display:flex;align-items:center;gap:1rem;padding:1rem;background:rgba(0,0,0,0.2);border-radius:4px;"]);
|
|
58683
|
-
var ItemIconContainer
|
|
59065
|
+
var ItemIconContainer = /*#__PURE__*/styled.div.withConfig({
|
|
58684
59066
|
displayName: "CartView__ItemIconContainer",
|
|
58685
59067
|
componentId: "sc-ydtyl1-7"
|
|
58686
59068
|
})(["width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:4px;padding:4px;"]);
|
|
58687
|
-
var ItemDetails = /*#__PURE__*/styled.div.withConfig({
|
|
59069
|
+
var ItemDetails$1 = /*#__PURE__*/styled.div.withConfig({
|
|
58688
59070
|
displayName: "CartView__ItemDetails",
|
|
58689
59071
|
componentId: "sc-ydtyl1-8"
|
|
58690
59072
|
})(["flex:1;display:flex;flex-direction:column;gap:0.5rem;"]);
|
|
58691
|
-
var ItemName = /*#__PURE__*/styled.div.withConfig({
|
|
59073
|
+
var ItemName$1 = /*#__PURE__*/styled.div.withConfig({
|
|
58692
59074
|
displayName: "CartView__ItemName",
|
|
58693
59075
|
componentId: "sc-ydtyl1-9"
|
|
58694
59076
|
})(["font-family:'Press Start 2P',cursive;font-size:0.875rem;color:#ffffff;"]);
|
|
@@ -59130,7 +59512,7 @@ var StoreCharacterSkinRow = function StoreCharacterSkinRow(_ref) {
|
|
|
59130
59512
|
};
|
|
59131
59513
|
return React.createElement(ItemWrapper, {
|
|
59132
59514
|
"$isHighlighted": ((_item$store = item.store) == null ? void 0 : _item$store.isHighlighted) || false
|
|
59133
|
-
}, React.createElement(ItemIconContainer$
|
|
59515
|
+
}, React.createElement(ItemIconContainer$1, null, entityAtlasJSON && entityAtlasIMG && currentCharacter ? React.createElement(SpriteFromAtlas, {
|
|
59134
59516
|
atlasJSON: entityAtlasJSON,
|
|
59135
59517
|
atlasIMG: entityAtlasIMG,
|
|
59136
59518
|
spriteKey: getSpriteKey(currentCharacter.textureKey),
|
|
@@ -59146,7 +59528,7 @@ var StoreCharacterSkinRow = function StoreCharacterSkinRow(_ref) {
|
|
|
59146
59528
|
height: 32,
|
|
59147
59529
|
imgScale: 2,
|
|
59148
59530
|
centered: true
|
|
59149
|
-
}) : React.createElement(DefaultIcon, null, "\uD83D\uDC64")), React.createElement(ItemDetails$
|
|
59531
|
+
}) : React.createElement(DefaultIcon, null, "\uD83D\uDC64")), React.createElement(ItemDetails$2, null, React.createElement(Header$b, null, React.createElement(ItemName$2, null, item.name)), availableCharacters.length > 0 && currentCharacter && React.createElement(SelectedSkinNav, null, React.createElement(SelectedSkin, null, "Selected:"), React.createElement(SkinNavArrow, {
|
|
59150
59532
|
direction: "left",
|
|
59151
59533
|
onPointerDown: handlePreviousSkin,
|
|
59152
59534
|
size: 24
|
|
@@ -59169,15 +59551,15 @@ var ItemWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
|
59169
59551
|
}, function (props) {
|
|
59170
59552
|
return props.$isHighlighted ? '3px solid #ffd700' : '3px solid transparent';
|
|
59171
59553
|
});
|
|
59172
|
-
var ItemIconContainer$
|
|
59554
|
+
var ItemIconContainer$1 = /*#__PURE__*/styled.div.withConfig({
|
|
59173
59555
|
displayName: "StoreCharacterSkinRow__ItemIconContainer",
|
|
59174
59556
|
componentId: "sc-81xqsx-1"
|
|
59175
59557
|
})(["width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:4px;padding:4px;"]);
|
|
59176
|
-
var ItemDetails$
|
|
59558
|
+
var ItemDetails$2 = /*#__PURE__*/styled.div.withConfig({
|
|
59177
59559
|
displayName: "StoreCharacterSkinRow__ItemDetails",
|
|
59178
59560
|
componentId: "sc-81xqsx-2"
|
|
59179
59561
|
})(["flex:1;display:flex;flex-direction:column;gap:0.25rem;"]);
|
|
59180
|
-
var ItemName$
|
|
59562
|
+
var ItemName$2 = /*#__PURE__*/styled.div.withConfig({
|
|
59181
59563
|
displayName: "StoreCharacterSkinRow__ItemName",
|
|
59182
59564
|
componentId: "sc-81xqsx-3"
|
|
59183
59565
|
})(["font-family:'Press Start 2P',cursive;font-size:0.75rem;color:#ffffff;"]);
|
|
@@ -59198,7 +59580,7 @@ var SkinNavArrow = /*#__PURE__*/styled(SelectArrow).withConfig({
|
|
|
59198
59580
|
displayName: "StoreCharacterSkinRow__SkinNavArrow",
|
|
59199
59581
|
componentId: "sc-81xqsx-7"
|
|
59200
59582
|
})(["position:static;"]);
|
|
59201
|
-
var Header$
|
|
59583
|
+
var Header$b = /*#__PURE__*/styled.div.withConfig({
|
|
59202
59584
|
displayName: "StoreCharacterSkinRow__Header",
|
|
59203
59585
|
componentId: "sc-81xqsx-8"
|
|
59204
59586
|
})(["display:flex;align-items:center;gap:0.5rem;"]);
|
|
@@ -59292,7 +59674,7 @@ var StoreItemRow = function StoreItemRow(_ref) {
|
|
|
59292
59674
|
};
|
|
59293
59675
|
return React.createElement(ItemWrapper$1, {
|
|
59294
59676
|
"$isHighlighted": ((_item$store = item.store) == null ? void 0 : _item$store.isHighlighted) || false
|
|
59295
|
-
}, React.createElement(ItemIconContainer$
|
|
59677
|
+
}, React.createElement(ItemIconContainer$2, null, React.createElement(SpriteFromAtlas, {
|
|
59296
59678
|
atlasJSON: atlasJSON,
|
|
59297
59679
|
atlasIMG: atlasIMG,
|
|
59298
59680
|
spriteKey: item.texturePath,
|
|
@@ -59300,7 +59682,7 @@ var StoreItemRow = function StoreItemRow(_ref) {
|
|
|
59300
59682
|
height: 32,
|
|
59301
59683
|
imgScale: 2,
|
|
59302
59684
|
centered: true
|
|
59303
|
-
})), React.createElement(ItemDetails$
|
|
59685
|
+
})), React.createElement(ItemDetails$3, null, React.createElement(ItemName$3, null, item.name), React.createElement(ItemPrice$1, null, "$", item.price, item.dcPrice ? " \xB7 " + item.dcPrice.toLocaleString() + " DC" : ''), React.createElement(ItemDescription, null, item.description)), React.createElement(Controls$1, null, showTextInput ? React.createElement(TextInput, {
|
|
59304
59686
|
type: "text",
|
|
59305
59687
|
value: textInputValue,
|
|
59306
59688
|
placeholder: textInputPlaceholder,
|
|
@@ -59339,15 +59721,15 @@ var ItemWrapper$1 = /*#__PURE__*/styled.div.withConfig({
|
|
|
59339
59721
|
}, function (props) {
|
|
59340
59722
|
return props.$isHighlighted ? '3px solid #ffd700' : '3px solid transparent';
|
|
59341
59723
|
});
|
|
59342
|
-
var ItemIconContainer$
|
|
59724
|
+
var ItemIconContainer$2 = /*#__PURE__*/styled.div.withConfig({
|
|
59343
59725
|
displayName: "StoreItemRow__ItemIconContainer",
|
|
59344
59726
|
componentId: "sc-ptotuo-1"
|
|
59345
59727
|
})(["width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:4px;padding:4px;"]);
|
|
59346
|
-
var ItemDetails$
|
|
59728
|
+
var ItemDetails$3 = /*#__PURE__*/styled.div.withConfig({
|
|
59347
59729
|
displayName: "StoreItemRow__ItemDetails",
|
|
59348
59730
|
componentId: "sc-ptotuo-2"
|
|
59349
59731
|
})(["flex:1;display:flex;flex-direction:column;gap:0.25rem;"]);
|
|
59350
|
-
var ItemName$
|
|
59732
|
+
var ItemName$3 = /*#__PURE__*/styled.div.withConfig({
|
|
59351
59733
|
displayName: "StoreItemRow__ItemName",
|
|
59352
59734
|
componentId: "sc-ptotuo-3"
|
|
59353
59735
|
})(["font-family:'Press Start 2P',cursive;font-size:0.75rem;color:#ffffff;"]);
|
|
@@ -59619,12 +60001,12 @@ var StoreItemDetails = function StoreItemDetails(_ref) {
|
|
|
59619
60001
|
if (typeof imageUrl === 'string') return imageUrl;
|
|
59620
60002
|
return imageUrl["default"] || imageUrl.src;
|
|
59621
60003
|
};
|
|
59622
|
-
return React.createElement(Container$M, null, React.createElement(Header$
|
|
60004
|
+
return React.createElement(Container$M, null, React.createElement(Header$c, null, React.createElement(BackButton, {
|
|
59623
60005
|
onClick: onBack
|
|
59624
60006
|
}, React.createElement(FaArrowLeft, null), React.createElement("span", null, "Back"))), React.createElement(Content$5, null, React.createElement(DetailsGrid, null, React.createElement(ItemIcon, null, React.createElement("img", {
|
|
59625
60007
|
src: getImageSrc(),
|
|
59626
60008
|
alt: item.name
|
|
59627
|
-
})), React.createElement(ItemInfo$2, null, React.createElement(ItemName$
|
|
60009
|
+
})), React.createElement(ItemInfo$2, null, React.createElement(ItemName$4, null, item.name), React.createElement(ItemPrice$2, null, "$", 'priceUSD' in item ? item.priceUSD : item.price, item.dcPrice ? " \xB7 " + item.dcPrice.toLocaleString() + " DC" : ''), React.createElement(Description$6, null, item.description))), React.createElement(Actions, null, React.createElement(CTAButton, {
|
|
59628
60010
|
icon: React.createElement(FaCartPlus, null),
|
|
59629
60011
|
label: "Add to Cart",
|
|
59630
60012
|
onClick: function onClick() {
|
|
@@ -59637,7 +60019,7 @@ var Container$M = /*#__PURE__*/styled.div.withConfig({
|
|
|
59637
60019
|
displayName: "StoreItemDetails__Container",
|
|
59638
60020
|
componentId: "sc-k3ho5z-0"
|
|
59639
60021
|
})(["display:flex;flex-direction:column;gap:1.5rem;padding:1.5rem;height:100%;"]);
|
|
59640
|
-
var Header$
|
|
60022
|
+
var Header$c = /*#__PURE__*/styled.div.withConfig({
|
|
59641
60023
|
displayName: "StoreItemDetails__Header",
|
|
59642
60024
|
componentId: "sc-k3ho5z-1"
|
|
59643
60025
|
})(["display:flex;align-items:center;gap:1rem;"]);
|
|
@@ -59661,7 +60043,7 @@ var ItemInfo$2 = /*#__PURE__*/styled.div.withConfig({
|
|
|
59661
60043
|
displayName: "StoreItemDetails__ItemInfo",
|
|
59662
60044
|
componentId: "sc-k3ho5z-6"
|
|
59663
60045
|
})(["display:flex;flex-direction:column;gap:1rem;"]);
|
|
59664
|
-
var ItemName$
|
|
60046
|
+
var ItemName$4 = /*#__PURE__*/styled.h2.withConfig({
|
|
59665
60047
|
displayName: "StoreItemDetails__ItemName",
|
|
59666
60048
|
componentId: "sc-k3ho5z-7"
|
|
59667
60049
|
})(["margin:0;font-family:'Press Start 2P',cursive;font-size:1.25rem;color:#fef08a;"]);
|
|
@@ -60005,7 +60387,7 @@ var PaymentMethodModal = function PaymentMethodModal(_ref) {
|
|
|
60005
60387
|
onClick: stopPropagation,
|
|
60006
60388
|
onTouchStart: stopPropagation,
|
|
60007
60389
|
onPointerDown: stopPropagation
|
|
60008
|
-
}, React.createElement(Header$
|
|
60390
|
+
}, React.createElement(Header$d, null, React.createElement(Title$i, null, "How would you like to pay?"), React.createElement(CloseButton$d, {
|
|
60009
60391
|
onPointerDown: onClose,
|
|
60010
60392
|
"aria-label": "Close"
|
|
60011
60393
|
}, React.createElement(FaTimes, null))), React.createElement(Options$1, null, React.createElement(RadioOption$1, {
|
|
@@ -60015,14 +60397,14 @@ var PaymentMethodModal = function PaymentMethodModal(_ref) {
|
|
|
60015
60397
|
}
|
|
60016
60398
|
}, React.createElement(RadioCircle$1, {
|
|
60017
60399
|
"$selected": selected === 'card'
|
|
60018
|
-
}), React.createElement(OptionText$1, null, React.createElement(OptionLabel$
|
|
60400
|
+
}), React.createElement(OptionText$1, null, React.createElement(OptionLabel$2, null, "Credit Card"), React.createElement(OptionSub$1, null, "Stripe secure checkout"))), React.createElement(RadioOption$1, {
|
|
60019
60401
|
"$selected": selected === 'dc',
|
|
60020
60402
|
onPointerDown: function onPointerDown() {
|
|
60021
60403
|
return setSelected('dc');
|
|
60022
60404
|
}
|
|
60023
60405
|
}, React.createElement(RadioCircle$1, {
|
|
60024
60406
|
"$selected": selected === 'dc'
|
|
60025
|
-
}), React.createElement(OptionText$1, null, React.createElement(OptionLabel$
|
|
60407
|
+
}), React.createElement(OptionText$1, null, React.createElement(OptionLabel$2, null, "Definya Coin"), React.createElement(OptionSub$1, null, dcBalance.toLocaleString(), " DC available")))), React.createElement(ConfirmRow$1, null, React.createElement(Button, {
|
|
60026
60408
|
buttonType: ButtonTypes.RPGUIButton,
|
|
60027
60409
|
onPointerDown: handleConfirm
|
|
60028
60410
|
}, "Confirm")))));
|
|
@@ -60039,15 +60421,15 @@ var ModalContent$3 = /*#__PURE__*/styled.div.withConfig({
|
|
|
60039
60421
|
displayName: "PaymentMethodModal__ModalContent",
|
|
60040
60422
|
componentId: "sc-1dxy6lr-2"
|
|
60041
60423
|
})(["background:#1a1a2e;border:2px solid #f59e0b;border-radius:8px;padding:20px 24px 24px;min-width:300px;max-width:90%;display:flex;flex-direction:column;gap:16px;pointer-events:auto;animation:scaleIn 0.15s ease-out;@keyframes scaleIn{from{transform:scale(0.85);opacity:0;}to{transform:scale(1);opacity:1;}}"]);
|
|
60042
|
-
var Header$
|
|
60424
|
+
var Header$d = /*#__PURE__*/styled.div.withConfig({
|
|
60043
60425
|
displayName: "PaymentMethodModal__Header",
|
|
60044
60426
|
componentId: "sc-1dxy6lr-3"
|
|
60045
60427
|
})(["display:flex;align-items:center;justify-content:space-between;"]);
|
|
60046
|
-
var Title$
|
|
60428
|
+
var Title$i = /*#__PURE__*/styled.h3.withConfig({
|
|
60047
60429
|
displayName: "PaymentMethodModal__Title",
|
|
60048
60430
|
componentId: "sc-1dxy6lr-4"
|
|
60049
60431
|
})(["margin:0;font-family:'Press Start 2P',cursive;font-size:0.7rem;color:#fef08a;"]);
|
|
60050
|
-
var CloseButton$
|
|
60432
|
+
var CloseButton$d = /*#__PURE__*/styled.button.withConfig({
|
|
60051
60433
|
displayName: "PaymentMethodModal__CloseButton",
|
|
60052
60434
|
componentId: "sc-1dxy6lr-5"
|
|
60053
60435
|
})(["background:none;border:none;color:rgba(255,255,255,0.6);cursor:pointer;font-size:1rem;padding:4px;display:flex;align-items:center;&:hover{color:#ffffff;}"]);
|
|
@@ -60079,7 +60461,7 @@ var OptionText$1 = /*#__PURE__*/styled.div.withConfig({
|
|
|
60079
60461
|
displayName: "PaymentMethodModal__OptionText",
|
|
60080
60462
|
componentId: "sc-1dxy6lr-9"
|
|
60081
60463
|
})(["display:flex;flex-direction:column;gap:3px;"]);
|
|
60082
|
-
var OptionLabel$
|
|
60464
|
+
var OptionLabel$2 = /*#__PURE__*/styled.span.withConfig({
|
|
60083
60465
|
displayName: "PaymentMethodModal__OptionLabel",
|
|
60084
60466
|
componentId: "sc-1dxy6lr-10"
|
|
60085
60467
|
})(["font-family:'Press Start 2P',cursive;font-size:0.65rem;color:#ffffff;"]);
|
|
@@ -60126,7 +60508,7 @@ var TimeWidget = function TimeWidget(_ref) {
|
|
|
60126
60508
|
return React.createElement(Draggable, {
|
|
60127
60509
|
scale: scale,
|
|
60128
60510
|
cancel: ".time-widget-close,.time-widget-container,.time-widget-container *"
|
|
60129
|
-
}, React.createElement(WidgetContainer, null, React.createElement(CloseButton$
|
|
60511
|
+
}, React.createElement(WidgetContainer, null, React.createElement(CloseButton$e, {
|
|
60130
60512
|
onPointerDown: onClose,
|
|
60131
60513
|
className: "time-widget-close"
|
|
60132
60514
|
}, "X"), React.createElement(DayNightContainer, {
|
|
@@ -60143,7 +60525,7 @@ var Time = /*#__PURE__*/styled.div.withConfig({
|
|
|
60143
60525
|
displayName: "TimeWidget__Time",
|
|
60144
60526
|
componentId: "sc-1ja236h-1"
|
|
60145
60527
|
})(["top:0.75rem;right:0.5rem;position:absolute;font-size:", ";color:white;"], uiFonts.size.small);
|
|
60146
|
-
var CloseButton$
|
|
60528
|
+
var CloseButton$e = /*#__PURE__*/styled.p.withConfig({
|
|
60147
60529
|
displayName: "TimeWidget__CloseButton",
|
|
60148
60530
|
componentId: "sc-1ja236h-2"
|
|
60149
60531
|
})(["position:absolute;top:-0.5rem;margin:0;right:-0.2rem;font-size:", " !important;z-index:1;"], uiFonts.size.small);
|
|
@@ -60252,7 +60634,7 @@ var TradingItemRow = function TradingItemRow(_ref) {
|
|
|
60252
60634
|
}
|
|
60253
60635
|
return null;
|
|
60254
60636
|
};
|
|
60255
|
-
return React.createElement(ItemWrapper$2, null, React.createElement(ItemIconContainer$
|
|
60637
|
+
return React.createElement(ItemWrapper$2, null, React.createElement(ItemIconContainer$3, null, React.createElement(SpriteContainer$5, null, React.createElement(ItemInfoWrapper, {
|
|
60256
60638
|
atlasIMG: atlasIMG,
|
|
60257
60639
|
atlasJSON: atlasJSON,
|
|
60258
60640
|
equipmentSet: equipmentSet,
|
|
@@ -60320,7 +60702,7 @@ var ItemNameContainer = /*#__PURE__*/styled.div.withConfig({
|
|
|
60320
60702
|
displayName: "TradingItemRow__ItemNameContainer",
|
|
60321
60703
|
componentId: "sc-mja0b5-2"
|
|
60322
60704
|
})(["flex:60%;display:flex;align-items:center;"]);
|
|
60323
|
-
var ItemIconContainer$
|
|
60705
|
+
var ItemIconContainer$3 = /*#__PURE__*/styled.div.withConfig({
|
|
60324
60706
|
displayName: "TradingItemRow__ItemIconContainer",
|
|
60325
60707
|
componentId: "sc-mja0b5-3"
|
|
60326
60708
|
})(["display:flex;justify-content:flex-start;align-items:center;flex:0 0 40px;"]);
|
|
@@ -60422,7 +60804,7 @@ var TradingMenu = function TradingMenu(_ref) {
|
|
|
60422
60804
|
width: "500px",
|
|
60423
60805
|
cancelDrag: "#TraderContainer",
|
|
60424
60806
|
scale: scale
|
|
60425
|
-
}, React.createElement(Container$O, null, React.createElement(Title$
|
|
60807
|
+
}, React.createElement(Container$O, null, React.createElement(Title$j, null, type.charAt(0).toUpperCase() + type.slice(1), " Menu"), React.createElement("hr", {
|
|
60426
60808
|
className: "golden"
|
|
60427
60809
|
}), React.createElement(ScrollWrapper, {
|
|
60428
60810
|
id: "TraderContainer"
|
|
@@ -60454,7 +60836,7 @@ var Container$O = /*#__PURE__*/styled.div.withConfig({
|
|
|
60454
60836
|
displayName: "TradingMenu__Container",
|
|
60455
60837
|
componentId: "sc-1wjsz1l-0"
|
|
60456
60838
|
})(["width:100%;"]);
|
|
60457
|
-
var Title$
|
|
60839
|
+
var Title$j = /*#__PURE__*/styled.h1.withConfig({
|
|
60458
60840
|
displayName: "TradingMenu__Title",
|
|
60459
60841
|
componentId: "sc-1wjsz1l-1"
|
|
60460
60842
|
})(["font-size:0.7rem !important;color:yellow !important;text-align:center;"]);
|
|
@@ -60634,5 +61016,5 @@ var LessonContainer = /*#__PURE__*/styled.div.withConfig({
|
|
|
60634
61016
|
componentId: "sc-7tgzv2-6"
|
|
60635
61017
|
})(["display:flex;flex-direction:column;justify-content:space-between;min-height:200px;p{font-size:0.7rem !important;}"]);
|
|
60636
61018
|
|
|
60637
|
-
export { ActionButtons, AsyncDropdown, Button, ButtonTypes, CTAButton, CartView, CharacterSelection, CharacterSkinSelectionModal, Chat, ChatDeprecated, ChatRevamp, CheckButton, CheckItem, CircularController, CraftBook, DCWalletModal, DailyTasks, 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, LoginStreakPanel, Marketplace, MarketplaceBuyModal, MarketplaceRows, MetadataCollector, MultitabType, NPCDialog, NPCDialogType, NPCMultiDialog, PartyCreate, PartyDashboard, PartyInvite, PartyManager, PartyManagerRow, PartyRow, PaymentMethodModal, PlayersRow, ProgressBar$1 as ProgressBar, PropertySelect, QuantitySelectorModal, QuestInfo, QuestList, QuestionDialog, RPGUIContainer, RPGUIContainerTypes, RPGUIRoot, RangeSlider, RangeSliderType, SelectArrow, Shortcuts, SimpleImageCarousel, SkillProgressBar, SkillsContainer, SocialModal, Spellbook, SpriteFromAtlas, Stepper, Store, TabBody, Table, TableCell, TableHeader, TableRow, TabsContainer, TextArea, TimeWidget, Tooltip, TradingMenu, Truncate, TutorialStepper, UserActionLink, _RPGUI, formatQuestStatus, formatQuestText, getMockedPlayersRowsLeader, getMockedPlayersRowsNotLeader, getQuestStatusColor, mockedPartyManager, mockedPartyRows, mockedPlayersRows, mockedPlayersRows2, useEventListener, useStoreCart };
|
|
61019
|
+
export { ActionButtons, AsyncDropdown, Button, ButtonTypes, CTAButton, CartView, CharacterSelection, CharacterSkinSelectionModal, Chat, ChatDeprecated, ChatRevamp, CheckButton, CheckItem, CircularController, CraftBook, DCWalletModal, DailyTasks, DraggableContainer, Dropdown, DropdownSelectorContainer, DynamicText, EquipmentSet, EquipmentSlotSpriteByType, ErrorBoundary, FriendList, GemSelector, GroupedMarketplaceRow, HistoryDialog, ImageCarousel, ImgSide, InformationCenter, Input, InputRadio, InternalTabs, ItemContainer$1 as ItemContainer, ItemPropertySimpleHandler, ItemQuantitySelectorModal, ItemSelector, ItemSlot, JoystickDPad, Leaderboard, ListMenu, LoginStreakPanel, Marketplace, MarketplaceBuyModal, MarketplaceRows, MarketplaceSettingsPanel, MetadataCollector, MultitabType, NPCDialog, NPCDialogType, NPCMultiDialog, PartyCreate, PartyDashboard, PartyInvite, PartyManager, PartyManagerRow, PartyRow, PaymentMethodModal, PlayersRow, ProgressBar$1 as ProgressBar, PropertySelect, QuantitySelectorModal, QuestInfo, QuestList, QuestionDialog, RPGUIContainer, RPGUIContainerTypes, RPGUIRoot, RangeSlider, RangeSliderType, SelectArrow, Shortcuts, SimpleImageCarousel, SkillProgressBar, SkillsContainer, SocialModal, Spellbook, SpriteFromAtlas, Stepper, Store, TabBody, Table, TableCell, TableHeader, TableRow, TabsContainer$1 as TabsContainer, TextArea, TimeWidget, Tooltip, TradingMenu, Truncate, TutorialStepper, UserActionLink, _RPGUI, formatQuestStatus, formatQuestText, getMockedPlayersRowsLeader, getMockedPlayersRowsNotLeader, getQuestStatusColor, mockedPartyManager, mockedPartyRows, mockedPlayersRows, mockedPlayersRows2, useEventListener, useStoreCart };
|
|
60638
61020
|
//# sourceMappingURL=long-bow.esm.js.map
|