@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
|
@@ -23,10 +23,22 @@ var lodash = require('lodash');
|
|
|
23
23
|
var mobxReactLite = require('mobx-react-lite');
|
|
24
24
|
var ai = require('react-icons/ai');
|
|
25
25
|
var reactColorful = require('react-colorful');
|
|
26
|
+
var Settings2 = require('pixelarticons/react/Settings2');
|
|
27
|
+
var Store$1 = require('pixelarticons/react/Store');
|
|
28
|
+
var User = require('pixelarticons/react/User');
|
|
29
|
+
var SortVertical = require('pixelarticons/react/SortVertical');
|
|
30
|
+
var Coins = require('pixelarticons/react/Coins');
|
|
31
|
+
var Delete = require('pixelarticons/react/Delete');
|
|
32
|
+
var ShoppingBag = require('pixelarticons/react/ShoppingBag');
|
|
26
33
|
require('rpgui/rpgui.css');
|
|
27
34
|
require('rpgui/rpgui.min.js');
|
|
28
35
|
var capitalize = _interopDefault(require('lodash/capitalize'));
|
|
29
36
|
|
|
37
|
+
function _arrayLikeToArray(r, a) {
|
|
38
|
+
(null == a || a > r.length) && (a = r.length);
|
|
39
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
40
|
+
return n;
|
|
41
|
+
}
|
|
30
42
|
function asyncGeneratorStep(n, t, e, r, o, a, c) {
|
|
31
43
|
try {
|
|
32
44
|
var i = n[a](c),
|
|
@@ -52,6 +64,23 @@ function _asyncToGenerator(n) {
|
|
|
52
64
|
});
|
|
53
65
|
};
|
|
54
66
|
}
|
|
67
|
+
function _createForOfIteratorHelperLoose(r, e) {
|
|
68
|
+
var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
69
|
+
if (t) return (t = t.call(r)).next.bind(t);
|
|
70
|
+
if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
|
|
71
|
+
t && (r = t);
|
|
72
|
+
var o = 0;
|
|
73
|
+
return function () {
|
|
74
|
+
return o >= r.length ? {
|
|
75
|
+
done: !0
|
|
76
|
+
} : {
|
|
77
|
+
done: !1,
|
|
78
|
+
value: r[o++]
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
83
|
+
}
|
|
55
84
|
function _extends() {
|
|
56
85
|
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
57
86
|
for (var e = 1; e < arguments.length; e++) {
|
|
@@ -382,6 +411,13 @@ function _setPrototypeOf(t, e) {
|
|
|
382
411
|
return t.__proto__ = e, t;
|
|
383
412
|
}, _setPrototypeOf(t, e);
|
|
384
413
|
}
|
|
414
|
+
function _unsupportedIterableToArray(r, a) {
|
|
415
|
+
if (r) {
|
|
416
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
417
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
418
|
+
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;
|
|
419
|
+
}
|
|
420
|
+
}
|
|
385
421
|
|
|
386
422
|
var img = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAASRJREFUWIXtl7EKwjAQhn8llg4dOig4uApu+gaib+Fj+CL6MO6Kk6N1ExRdHDJ06NChFEEnL6kmGkE5wf7TJVzbn+96uRb4d1VcE+tB62VO4HkUp3l+MeWEvk/P3Md7VF0NfEvsBsT9hg21C940zynuNZvG+0RS6tdW2AmwGxBAEXvo+xQnWUa4XPAOOmdtpeLF9qHSJHYC7AYEYMfuhtosHXskJcWB59FBFOMHCLAbEIAduwvqd6V3E/ADBNgN3LqA3kz9rJ6MQkqcre2HyTvSZ0rZBYDqAtrot2tUjuE0MY7d+Tg0bT+R6qxyHN9LAECcnmhjuSt8EVE5ui3VBbbS6LKVKZLFNTsBdgMf/S/Qy7Q5nY1lajfUOF4dD/wE2A2UYtcVzKJVOti5A44AAAAASUVORK5CYII=';
|
|
387
423
|
|
|
@@ -30510,7 +30546,10 @@ var ConfirmModal = function ConfirmModal(_ref) {
|
|
|
30510
30546
|
onTouchEnd: stopPropagationTouch,
|
|
30511
30547
|
onTouchMove: stopPropagationTouch,
|
|
30512
30548
|
onPointerDown: stopPropagationPointer
|
|
30513
|
-
}, React__default.createElement(
|
|
30549
|
+
}, React__default.createElement(Header$2, null, React__default.createElement(Title$3, null, "Confirm"), React__default.createElement(CloseButton$4, {
|
|
30550
|
+
onPointerDown: handleClose,
|
|
30551
|
+
"aria-label": "Close"
|
|
30552
|
+
}, React__default.createElement(fa.FaTimes, null))), React__default.createElement(MessageContainer, null, typeof message === 'string' ? React__default.createElement(Message$1, null, message) : message), React__default.createElement(ButtonsContainer$2, null, React__default.createElement(CancelButtonWrapper, null, React__default.createElement(Button, {
|
|
30514
30553
|
buttonType: exports.ButtonTypes.RPGUIButton,
|
|
30515
30554
|
onPointerDown: handleClose
|
|
30516
30555
|
}, "No")), React__default.createElement(Button, {
|
|
@@ -30529,22 +30568,34 @@ var ModalContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
30529
30568
|
var ModalContent = /*#__PURE__*/styled__default.div.withConfig({
|
|
30530
30569
|
displayName: "ConfirmModal__ModalContent",
|
|
30531
30570
|
componentId: "sc-11qkyu1-2"
|
|
30532
|
-
})(["background
|
|
30571
|
+
})(["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%;}"]);
|
|
30572
|
+
var Header$2 = /*#__PURE__*/styled__default.div.withConfig({
|
|
30573
|
+
displayName: "ConfirmModal__Header",
|
|
30574
|
+
componentId: "sc-11qkyu1-3"
|
|
30575
|
+
})(["display:flex;align-items:center;justify-content:space-between;"]);
|
|
30576
|
+
var Title$3 = /*#__PURE__*/styled__default.h3.withConfig({
|
|
30577
|
+
displayName: "ConfirmModal__Title",
|
|
30578
|
+
componentId: "sc-11qkyu1-4"
|
|
30579
|
+
})(["margin:0;font-family:'Press Start 2P',cursive;font-size:0.7rem;color:#fef08a;"]);
|
|
30580
|
+
var CloseButton$4 = /*#__PURE__*/styled__default.button.withConfig({
|
|
30581
|
+
displayName: "ConfirmModal__CloseButton",
|
|
30582
|
+
componentId: "sc-11qkyu1-5"
|
|
30583
|
+
})(["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;}"]);
|
|
30533
30584
|
var MessageContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
30534
30585
|
displayName: "ConfirmModal__MessageContainer",
|
|
30535
|
-
componentId: "sc-11qkyu1-
|
|
30536
|
-
})(["
|
|
30586
|
+
componentId: "sc-11qkyu1-6"
|
|
30587
|
+
})(["text-align:center;"]);
|
|
30537
30588
|
var Message$1 = /*#__PURE__*/styled__default.p.withConfig({
|
|
30538
30589
|
displayName: "ConfirmModal__Message",
|
|
30539
|
-
componentId: "sc-11qkyu1-
|
|
30540
|
-
})(["margin:0;font-size:
|
|
30590
|
+
componentId: "sc-11qkyu1-7"
|
|
30591
|
+
})(["margin:0;font-family:'Press Start 2P',cursive;font-size:0.6rem;color:rgba(255,255,255,0.85);line-height:1.8;"]);
|
|
30541
30592
|
var ButtonsContainer$2 = /*#__PURE__*/styled__default.div.withConfig({
|
|
30542
30593
|
displayName: "ConfirmModal__ButtonsContainer",
|
|
30543
|
-
componentId: "sc-11qkyu1-
|
|
30544
|
-
})(["display:flex;justify-content:center;gap:20px;@media (max-width:768px){gap:30px;
|
|
30594
|
+
componentId: "sc-11qkyu1-8"
|
|
30595
|
+
})(["display:flex;justify-content:center;gap:20px;margin-top:4px;@media (max-width:768px){gap:30px;}"]);
|
|
30545
30596
|
var CancelButtonWrapper = /*#__PURE__*/styled__default.div.withConfig({
|
|
30546
30597
|
displayName: "ConfirmModal__CancelButtonWrapper",
|
|
30547
|
-
componentId: "sc-11qkyu1-
|
|
30598
|
+
componentId: "sc-11qkyu1-9"
|
|
30548
30599
|
})(["filter:grayscale(0.7);"]);
|
|
30549
30600
|
|
|
30550
30601
|
var CTAButton = function CTAButton(_ref) {
|
|
@@ -30874,7 +30925,7 @@ var DCWalletModal = function DCWalletModal(_ref) {
|
|
|
30874
30925
|
onClick: stopPropagation,
|
|
30875
30926
|
onTouchStart: stopPropagation,
|
|
30876
30927
|
onPointerDown: stopPropagation
|
|
30877
|
-
}, React__default.createElement(Header$
|
|
30928
|
+
}, React__default.createElement(Header$3, null, React__default.createElement(Title$4, null, "DC Wallet"), React__default.createElement(CloseButton$5, {
|
|
30878
30929
|
onPointerDown: onClose,
|
|
30879
30930
|
"aria-label": "Close"
|
|
30880
30931
|
}, React__default.createElement(fa.FaTimes, null))), React__default.createElement(WalletContainer, null, React__default.createElement(InternalTabs, {
|
|
@@ -30905,15 +30956,15 @@ var ModalContent$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
30905
30956
|
displayName: "DCWalletModal__ModalContent",
|
|
30906
30957
|
componentId: "sc-12xy88y-2"
|
|
30907
30958
|
})(["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;}}"]);
|
|
30908
|
-
var Header$
|
|
30959
|
+
var Header$3 = /*#__PURE__*/styled__default.div.withConfig({
|
|
30909
30960
|
displayName: "DCWalletModal__Header",
|
|
30910
30961
|
componentId: "sc-12xy88y-3"
|
|
30911
30962
|
})(["display:flex;align-items:center;justify-content:space-between;"]);
|
|
30912
|
-
var Title$
|
|
30963
|
+
var Title$4 = /*#__PURE__*/styled__default.h3.withConfig({
|
|
30913
30964
|
displayName: "DCWalletModal__Title",
|
|
30914
30965
|
componentId: "sc-12xy88y-4"
|
|
30915
30966
|
})(["margin:0;font-family:'Press Start 2P',cursive;font-size:0.7rem;color:#fef08a;"]);
|
|
30916
|
-
var CloseButton$
|
|
30967
|
+
var CloseButton$5 = /*#__PURE__*/styled__default.button.withConfig({
|
|
30917
30968
|
displayName: "DCWalletModal__CloseButton",
|
|
30918
30969
|
componentId: "sc-12xy88y-5"
|
|
30919
30970
|
})(["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;}"]);
|
|
@@ -32538,7 +32589,7 @@ var ImageCarousel = function ImageCarousel(_ref) {
|
|
|
32538
32589
|
onPointerDown: function onPointerDown() {
|
|
32539
32590
|
return goToNextImage();
|
|
32540
32591
|
}
|
|
32541
|
-
}))), onCloseButton && React__default.createElement(CloseButton$
|
|
32592
|
+
}))), onCloseButton && React__default.createElement(CloseButton$6, {
|
|
32542
32593
|
className: "container-close",
|
|
32543
32594
|
onPointerDown: onCloseButton
|
|
32544
32595
|
}, "X"));
|
|
@@ -32569,7 +32620,7 @@ var Description$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
32569
32620
|
}, function (props) {
|
|
32570
32621
|
return props.isTextFixed ? 'none' : 'rgba(0, 0, 0, 0.6)';
|
|
32571
32622
|
});
|
|
32572
|
-
var CloseButton$
|
|
32623
|
+
var CloseButton$6 = /*#__PURE__*/styled__default.div.withConfig({
|
|
32573
32624
|
displayName: "ImageCarousel__CloseButton",
|
|
32574
32625
|
componentId: "sc-jl6f8-4"
|
|
32575
32626
|
})(["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;}"]);
|
|
@@ -32986,16 +33037,16 @@ var BaseInformationDetails = function BaseInformationDetails(_ref) {
|
|
|
32986
33037
|
children = _ref.children;
|
|
32987
33038
|
return React__default.createElement(Container$t, null, React__default.createElement(Overlay$2, {
|
|
32988
33039
|
onClick: onBack
|
|
32989
|
-
}), React__default.createElement(Modal, null, React__default.createElement(CloseButton$
|
|
33040
|
+
}), React__default.createElement(Modal, null, React__default.createElement(CloseButton$7, {
|
|
32990
33041
|
onClick: onBack
|
|
32991
|
-
}, React__default.createElement(fa.FaTimes, null)), React__default.createElement(Header$
|
|
33042
|
+
}, React__default.createElement(fa.FaTimes, null)), React__default.createElement(Header$4, null, React__default.createElement(SpriteContainer$2, null, React__default.createElement(SpriteFromAtlas, {
|
|
32992
33043
|
atlasJSON: atlasJSON,
|
|
32993
33044
|
atlasIMG: atlasIMG,
|
|
32994
33045
|
spriteKey: spriteKey,
|
|
32995
33046
|
width: 32,
|
|
32996
33047
|
height: 32,
|
|
32997
33048
|
imgScale: 1
|
|
32998
|
-
})), React__default.createElement(Title$
|
|
33049
|
+
})), React__default.createElement(Title$5, null, name)), React__default.createElement(Content$1, null, children)));
|
|
32999
33050
|
};
|
|
33000
33051
|
var Container$t = /*#__PURE__*/styled__default.div.withConfig({
|
|
33001
33052
|
displayName: "BaseInformationDetails__Container",
|
|
@@ -33009,11 +33060,11 @@ var Modal = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
33009
33060
|
displayName: "BaseInformationDetails__Modal",
|
|
33010
33061
|
componentId: "sc-1vguuz8-2"
|
|
33011
33062
|
})(["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);
|
|
33012
|
-
var CloseButton$
|
|
33063
|
+
var CloseButton$7 = /*#__PURE__*/styled__default.button.withConfig({
|
|
33013
33064
|
displayName: "BaseInformationDetails__CloseButton",
|
|
33014
33065
|
componentId: "sc-1vguuz8-3"
|
|
33015
33066
|
})(["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);
|
|
33016
|
-
var Header$
|
|
33067
|
+
var Header$4 = /*#__PURE__*/styled__default.div.withConfig({
|
|
33017
33068
|
displayName: "BaseInformationDetails__Header",
|
|
33018
33069
|
componentId: "sc-1vguuz8-4"
|
|
33019
33070
|
})(["display:flex;align-items:center;gap:16px;margin-bottom:24px;"]);
|
|
@@ -33021,7 +33072,7 @@ var Content$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
33021
33072
|
displayName: "BaseInformationDetails__Content",
|
|
33022
33073
|
componentId: "sc-1vguuz8-5"
|
|
33023
33074
|
})(["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;}"]);
|
|
33024
|
-
var Title$
|
|
33075
|
+
var Title$5 = /*#__PURE__*/styled__default.h2.withConfig({
|
|
33025
33076
|
displayName: "BaseInformationDetails__Title",
|
|
33026
33077
|
componentId: "sc-1vguuz8-6"
|
|
33027
33078
|
})(["color:", ";font-size:1rem;margin:0;"], uiColors.yellow);
|
|
@@ -33041,21 +33092,21 @@ var Collapsible = function Collapsible(_ref) {
|
|
|
33041
33092
|
setIsOpen = _useState[1];
|
|
33042
33093
|
return React__default.createElement(Container$u, {
|
|
33043
33094
|
className: className
|
|
33044
|
-
}, React__default.createElement(Header$
|
|
33095
|
+
}, React__default.createElement(Header$5, {
|
|
33045
33096
|
onClick: function onClick() {
|
|
33046
33097
|
return setIsOpen(!isOpen);
|
|
33047
33098
|
}
|
|
33048
|
-
}, React__default.createElement(Title$
|
|
33099
|
+
}, React__default.createElement(Title$6, null, title), React__default.createElement(Icon$1, null, isOpen ? React__default.createElement(fa.FaChevronUp, null) : React__default.createElement(fa.FaChevronDown, null))), isOpen && React__default.createElement(Content$2, null, children));
|
|
33049
33100
|
};
|
|
33050
33101
|
var Container$u = /*#__PURE__*/styled__default.div.withConfig({
|
|
33051
33102
|
displayName: "Collapsible__Container",
|
|
33052
33103
|
componentId: "sc-s4h8ey-0"
|
|
33053
33104
|
})(["background:rgba(0,0,0,0.3);border-radius:4px;overflow:hidden;border:1px solid ", ";"], uiColors.darkGray);
|
|
33054
|
-
var Header$
|
|
33105
|
+
var Header$5 = /*#__PURE__*/styled__default.div.withConfig({
|
|
33055
33106
|
displayName: "Collapsible__Header",
|
|
33056
33107
|
componentId: "sc-s4h8ey-1"
|
|
33057
33108
|
})(["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);}"]);
|
|
33058
|
-
var Title$
|
|
33109
|
+
var Title$6 = /*#__PURE__*/styled__default.h3.withConfig({
|
|
33059
33110
|
displayName: "Collapsible__Title",
|
|
33060
33111
|
componentId: "sc-s4h8ey-2"
|
|
33061
33112
|
})(["margin:0;font-size:0.6rem;color:", ";font-family:'Press Start 2P',cursive;letter-spacing:0.5px;"], uiColors.yellow);
|
|
@@ -33402,7 +33453,7 @@ var AdvancedFilters = function AdvancedFilters(_ref) {
|
|
|
33402
33453
|
zIndex: 9999
|
|
33403
33454
|
},
|
|
33404
33455
|
"$isMobile": isMobile
|
|
33405
|
-
}, React__default.createElement(FilterHeader, null, React__default.createElement(FilterTitle, null, "Advanced Filters"), React__default.createElement(CloseButton$
|
|
33456
|
+
}, React__default.createElement(FilterHeader, null, React__default.createElement(FilterTitle, null, "Advanced Filters"), React__default.createElement(CloseButton$8, {
|
|
33406
33457
|
onClick: handleClose
|
|
33407
33458
|
}, "\xD7")), sections.map(renderFilterSection), hasActiveFilters && React__default.createElement(ClearFiltersButton, {
|
|
33408
33459
|
onClick: onClearAll
|
|
@@ -33474,7 +33525,7 @@ var ClearFiltersButton = /*#__PURE__*/styled__default.button.withConfig({
|
|
|
33474
33525
|
displayName: "AdvancedFilters__ClearFiltersButton",
|
|
33475
33526
|
componentId: "sc-1xj6ldr-10"
|
|
33476
33527
|
})(["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;}"]);
|
|
33477
|
-
var CloseButton$
|
|
33528
|
+
var CloseButton$8 = /*#__PURE__*/styled__default.button.withConfig({
|
|
33478
33529
|
displayName: "AdvancedFilters__CloseButton",
|
|
33479
33530
|
componentId: "sc-1xj6ldr-11"
|
|
33480
33531
|
})(["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;}"]);
|
|
@@ -34815,7 +34866,7 @@ var QuantitySelector = function QuantitySelector(_ref) {
|
|
|
34815
34866
|
return React__default.createElement(StyledContainer, {
|
|
34816
34867
|
type: exports.RPGUIContainerTypes.Framed,
|
|
34817
34868
|
width: "25rem"
|
|
34818
|
-
}, React__default.createElement(CloseButton$
|
|
34869
|
+
}, React__default.createElement(CloseButton$9, {
|
|
34819
34870
|
className: "container-close",
|
|
34820
34871
|
onPointerDown: onClose
|
|
34821
34872
|
}, "X"), React__default.createElement("h2", null, title), React__default.createElement(StyledForm, {
|
|
@@ -34860,7 +34911,7 @@ var StyledContainer = /*#__PURE__*/styled__default(RPGUIContainer).withConfig({
|
|
|
34860
34911
|
displayName: "QuantitySelector__StyledContainer",
|
|
34861
34912
|
componentId: "sc-z4ut57-0"
|
|
34862
34913
|
})(["position:relative;display:flex;flex-direction:column;align-items:center;padding:1rem;h2{margin:0;margin-bottom:1rem;font-size:1rem;}"]);
|
|
34863
|
-
var CloseButton$
|
|
34914
|
+
var CloseButton$9 = /*#__PURE__*/styled__default.div.withConfig({
|
|
34864
34915
|
displayName: "QuantitySelector__CloseButton",
|
|
34865
34916
|
componentId: "sc-z4ut57-1"
|
|
34866
34917
|
})(["position:absolute;top:3px;right:0px;color:white;z-index:22;font-size:1.5rem;cursor:pointer;"]);
|
|
@@ -35173,7 +35224,7 @@ var ColorSelector = function ColorSelector(_ref) {
|
|
|
35173
35224
|
cancelDrag: ".react-colorful",
|
|
35174
35225
|
width: "25rem",
|
|
35175
35226
|
onCloseButton: onClose
|
|
35176
|
-
}, React__default.createElement(Container$y, null, React__default.createElement(Header$
|
|
35227
|
+
}, React__default.createElement(Container$y, null, React__default.createElement(Header$6, null, "Select Color"), React__default.createElement(ColorPickerWrapper, null, React__default.createElement(reactColorful.HexColorPicker, {
|
|
35177
35228
|
color: currentColor,
|
|
35178
35229
|
onChange: function onChange(color) {
|
|
35179
35230
|
setCurrentColor(color);
|
|
@@ -35193,7 +35244,7 @@ var Container$y = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
35193
35244
|
displayName: "ItemPropertyColorSelector__Container",
|
|
35194
35245
|
componentId: "sc-me1r4z-0"
|
|
35195
35246
|
})(["text-align:center;background:inherit;display:flex;flex-direction:column;gap:1.5rem;align-items:center;width:100%;max-width:24rem;margin:0 auto;"]);
|
|
35196
|
-
var Header$
|
|
35247
|
+
var Header$6 = /*#__PURE__*/styled__default.h2.withConfig({
|
|
35197
35248
|
displayName: "ItemPropertyColorSelector__Header",
|
|
35198
35249
|
componentId: "sc-me1r4z-1"
|
|
35199
35250
|
})(["color:white;font-size:1rem;margin:0;width:100%;text-align:center;"]);
|
|
@@ -35264,7 +35315,7 @@ var GemSelector = function GemSelector(_ref) {
|
|
|
35264
35315
|
scale: scale,
|
|
35265
35316
|
cancelDrag: ".gem-selector-container",
|
|
35266
35317
|
onCloseButton: onClose
|
|
35267
|
-
}, React__default.createElement(ContentWrapper$1, null, React__default.createElement(Header$
|
|
35318
|
+
}, React__default.createElement(ContentWrapper$1, null, React__default.createElement(Header$7, null, React__default.createElement(Title$7, null, "GEM SELECTION"), React__default.createElement(Subtitle, null, "Select gems to detach")), React__default.createElement(GemGrid, null, (_item$attachedGems = item.attachedGems) == null ? void 0 : _item$attachedGems.map(function (gem, index) {
|
|
35268
35319
|
return React__default.createElement(GemItem, {
|
|
35269
35320
|
key: gem.key + "-" + index
|
|
35270
35321
|
}, React__default.createElement(CheckItemWrapper$1, null, React__default.createElement(CheckItem, {
|
|
@@ -35295,7 +35346,7 @@ var GemSelector = function GemSelector(_ref) {
|
|
|
35295
35346
|
disabled: selectedGems.length === 0
|
|
35296
35347
|
}, "Confirm"))));
|
|
35297
35348
|
};
|
|
35298
|
-
var Title$
|
|
35349
|
+
var Title$7 = /*#__PURE__*/styled__default.h1.withConfig({
|
|
35299
35350
|
displayName: "GemSelector__Title",
|
|
35300
35351
|
componentId: "sc-gbt8g4-0"
|
|
35301
35352
|
})(["font-size:0.8rem;color:", " !important;"], uiColors.yellow);
|
|
@@ -35303,7 +35354,7 @@ var Subtitle = /*#__PURE__*/styled__default.h2.withConfig({
|
|
|
35303
35354
|
displayName: "GemSelector__Subtitle",
|
|
35304
35355
|
componentId: "sc-gbt8g4-1"
|
|
35305
35356
|
})(["font-size:0.6rem;color:", ";margin:0;"], uiColors.white);
|
|
35306
|
-
var Header$
|
|
35357
|
+
var Header$7 = /*#__PURE__*/styled__default.div.withConfig({
|
|
35307
35358
|
displayName: "GemSelector__Header",
|
|
35308
35359
|
componentId: "sc-gbt8g4-2"
|
|
35309
35360
|
})(["text-align:center;padding:5px;border-bottom:2px solid #444;"]);
|
|
@@ -35368,7 +35419,7 @@ var ItemSelector = function ItemSelector(_ref) {
|
|
|
35368
35419
|
style: {
|
|
35369
35420
|
width: '100%'
|
|
35370
35421
|
}
|
|
35371
|
-
}, React__default.createElement(Title$
|
|
35422
|
+
}, React__default.createElement(Title$8, null, 'Harvesting instruments'), React__default.createElement(Subtitle$1, null, 'Use the tool, you need it'), React__default.createElement("hr", {
|
|
35372
35423
|
className: "golden"
|
|
35373
35424
|
})), React__default.createElement(RadioInputScroller$1, null, options == null ? void 0 : options.map(function (option, index) {
|
|
35374
35425
|
return React__default.createElement(RadioOptionsWrapper$1, {
|
|
@@ -35397,7 +35448,7 @@ var ItemSelector = function ItemSelector(_ref) {
|
|
|
35397
35448
|
buttonType: exports.ButtonTypes.RPGUIButton
|
|
35398
35449
|
}, "Select")));
|
|
35399
35450
|
};
|
|
35400
|
-
var Title$
|
|
35451
|
+
var Title$8 = /*#__PURE__*/styled__default.h1.withConfig({
|
|
35401
35452
|
displayName: "ItemSelector__Title",
|
|
35402
35453
|
componentId: "sc-gptoxp-0"
|
|
35403
35454
|
})(["font-size:0.6rem;color:yellow !important;"]);
|
|
@@ -35604,6 +35655,38 @@ var PagerContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
35604
35655
|
componentId: "sc-1ekmf50-1"
|
|
35605
35656
|
})(["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);
|
|
35606
35657
|
|
|
35658
|
+
var Tabs = function Tabs(_ref) {
|
|
35659
|
+
var options = _ref.options,
|
|
35660
|
+
activeTabId = _ref.activeTabId,
|
|
35661
|
+
onTabChange = _ref.onTabChange,
|
|
35662
|
+
className = _ref.className;
|
|
35663
|
+
return React__default.createElement(TabsContainer, {
|
|
35664
|
+
className: className
|
|
35665
|
+
}, options.map(function (option) {
|
|
35666
|
+
return React__default.createElement(TabButton$1, {
|
|
35667
|
+
key: option.id,
|
|
35668
|
+
"$active": option.id === activeTabId,
|
|
35669
|
+
onClick: function onClick() {
|
|
35670
|
+
return onTabChange(option.id);
|
|
35671
|
+
}
|
|
35672
|
+
}, option.icon && option.icon, " ", option.label);
|
|
35673
|
+
}));
|
|
35674
|
+
};
|
|
35675
|
+
var TabsContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
35676
|
+
displayName: "Tabs__TabsContainer",
|
|
35677
|
+
componentId: "sc-n35er2-0"
|
|
35678
|
+
})(["display:flex;gap:15px;width:95%;margin:0 auto 15px auto;border-bottom:2px solid rgba(255,255,255,0.1);padding-bottom:10px;"]);
|
|
35679
|
+
var TabButton$1 = /*#__PURE__*/styled__default.button.withConfig({
|
|
35680
|
+
displayName: "Tabs__TabButton",
|
|
35681
|
+
componentId: "sc-n35er2-1"
|
|
35682
|
+
})(["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) {
|
|
35683
|
+
var $active = _ref2.$active;
|
|
35684
|
+
return $active ? '3px solid #f59e0b' : '3px solid transparent';
|
|
35685
|
+
}, function (_ref3) {
|
|
35686
|
+
var $active = _ref3.$active;
|
|
35687
|
+
return $active ? '#ffffff' : '#888888';
|
|
35688
|
+
});
|
|
35689
|
+
|
|
35607
35690
|
var MarketplaceBuyModal = function MarketplaceBuyModal(_ref) {
|
|
35608
35691
|
var goldPrice = _ref.goldPrice,
|
|
35609
35692
|
dcEquivalentPrice = _ref.dcEquivalentPrice,
|
|
@@ -35626,7 +35709,7 @@ var MarketplaceBuyModal = function MarketplaceBuyModal(_ref) {
|
|
|
35626
35709
|
onClick: stopPropagation,
|
|
35627
35710
|
onTouchStart: stopPropagation,
|
|
35628
35711
|
onPointerDown: stopPropagation
|
|
35629
|
-
}, React__default.createElement(Header$
|
|
35712
|
+
}, React__default.createElement(Header$8, null, React__default.createElement(Title$9, null, "Confirm Purchase"), React__default.createElement(CloseButton$a, {
|
|
35630
35713
|
onPointerDown: onClose,
|
|
35631
35714
|
"aria-label": "Close"
|
|
35632
35715
|
}, React__default.createElement(fa.FaTimes, null))), React__default.createElement(Options, null, React__default.createElement(RadioOption, {
|
|
@@ -35665,15 +35748,15 @@ var ModalContent$2 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
35665
35748
|
displayName: "MarketplaceBuyModal__ModalContent",
|
|
35666
35749
|
componentId: "sc-86ottl-2"
|
|
35667
35750
|
})(["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;}}"]);
|
|
35668
|
-
var Header$
|
|
35751
|
+
var Header$8 = /*#__PURE__*/styled__default.div.withConfig({
|
|
35669
35752
|
displayName: "MarketplaceBuyModal__Header",
|
|
35670
35753
|
componentId: "sc-86ottl-3"
|
|
35671
35754
|
})(["display:flex;align-items:center;justify-content:space-between;"]);
|
|
35672
|
-
var Title$
|
|
35755
|
+
var Title$9 = /*#__PURE__*/styled__default.h3.withConfig({
|
|
35673
35756
|
displayName: "MarketplaceBuyModal__Title",
|
|
35674
35757
|
componentId: "sc-86ottl-4"
|
|
35675
35758
|
})(["margin:0;font-family:'Press Start 2P',cursive;font-size:0.7rem;color:#fef08a;"]);
|
|
35676
|
-
var CloseButton$
|
|
35759
|
+
var CloseButton$a = /*#__PURE__*/styled__default.button.withConfig({
|
|
35677
35760
|
displayName: "MarketplaceBuyModal__CloseButton",
|
|
35678
35761
|
componentId: "sc-86ottl-5"
|
|
35679
35762
|
})(["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;}"]);
|
|
@@ -35751,7 +35834,7 @@ var MarketplaceRows = function MarketplaceRows(_ref) {
|
|
|
35751
35834
|
var renderGems = function renderGems(item) {
|
|
35752
35835
|
return item.attachedGems && onRenderGems(item);
|
|
35753
35836
|
};
|
|
35754
|
-
return React__default.createElement(MarketplaceWrapper, null, React__default.createElement(
|
|
35837
|
+
return React__default.createElement(MarketplaceWrapper, null, React__default.createElement(ItemSection, null, React__default.createElement(SpriteContainer$3, null, React__default.createElement(ItemInfoWrapper, {
|
|
35755
35838
|
item: item,
|
|
35756
35839
|
atlasIMG: atlasIMG,
|
|
35757
35840
|
atlasJSON: atlasJSON,
|
|
@@ -35770,80 +35853,176 @@ var MarketplaceRows = function MarketplaceRows(_ref) {
|
|
|
35770
35853
|
}, atlasJSON),
|
|
35771
35854
|
imgScale: 2,
|
|
35772
35855
|
imgClassname: "sprite-from-atlas-img--item"
|
|
35773
|
-
})), React__default.createElement(QuantityContainer, null, item.stackQty && item.stackQty > 1 && "x" + Math.round(item.stackQty * 10) / 10))), React__default.createElement(
|
|
35856
|
+
})), React__default.createElement(QuantityContainer, null, item.stackQty && item.stackQty > 1 && "x" + Math.round(item.stackQty * 10) / 10))), React__default.createElement(ItemDetails, null, React__default.createElement(ItemName, null, React__default.createElement(Ellipsis, {
|
|
35774
35857
|
maxLines: 1,
|
|
35775
35858
|
maxWidth: "200px",
|
|
35776
35859
|
fontSize: "10px"
|
|
35777
|
-
}, item.name))
|
|
35860
|
+
}, item.name)), React__default.createElement(PriceRow, null, React__default.createElement(GoldPriceRow, null, React__default.createElement(GoldIcon, null, React__default.createElement(SpriteFromAtlas, {
|
|
35778
35861
|
atlasIMG: atlasIMG,
|
|
35779
35862
|
atlasJSON: atlasJSON,
|
|
35780
35863
|
spriteKey: "others/gold-coin-qty-5.png",
|
|
35781
|
-
imgScale:
|
|
35782
|
-
})), React__default.createElement(
|
|
35783
|
-
|
|
35784
|
-
|
|
35785
|
-
|
|
35786
|
-
|
|
35787
|
-
|
|
35864
|
+
imgScale: 1
|
|
35865
|
+
})), React__default.createElement(GoldPrice, null, itemPrice)), dcEquivalentPrice !== undefined && React__default.createElement(DCPrice, null, "(", shared.formatDCAmount(dcEquivalentPrice), " DC)")))), React__default.createElement(ActionSection, null, React__default.createElement(CTAButton, {
|
|
35866
|
+
icon: onMarketPlaceItemBuy ? React__default.createElement(Coins.Coins, {
|
|
35867
|
+
width: 18,
|
|
35868
|
+
height: 18
|
|
35869
|
+
}) : React__default.createElement(Delete.Delete, {
|
|
35870
|
+
width: 18,
|
|
35871
|
+
height: 18
|
|
35872
|
+
}),
|
|
35873
|
+
label: onMarketPlaceItemBuy ? 'Buy' : 'Remove',
|
|
35788
35874
|
disabled: disabled,
|
|
35789
|
-
|
|
35875
|
+
onClick: function onClick() {
|
|
35790
35876
|
if (disabled) return;
|
|
35791
35877
|
onMarketPlaceItemBuy == null ? void 0 : onMarketPlaceItemBuy();
|
|
35792
35878
|
onMarketPlaceItemRemove == null ? void 0 : onMarketPlaceItemRemove();
|
|
35793
|
-
}
|
|
35794
|
-
|
|
35879
|
+
},
|
|
35880
|
+
iconColor: onMarketPlaceItemBuy ? '#f59e0b' : '#ef4444'
|
|
35881
|
+
})));
|
|
35795
35882
|
};
|
|
35796
|
-
var
|
|
35797
|
-
|
|
35883
|
+
var GroupedMarketplaceRow = function GroupedMarketplaceRow(_ref2) {
|
|
35884
|
+
var bestListing = _ref2.bestListing,
|
|
35885
|
+
otherListings = _ref2.otherListings,
|
|
35886
|
+
atlasJSON = _ref2.atlasJSON,
|
|
35887
|
+
atlasIMG = _ref2.atlasIMG,
|
|
35888
|
+
equipmentSet = _ref2.equipmentSet,
|
|
35889
|
+
_ref2$dcToGoldSwapRat = _ref2.dcToGoldSwapRate,
|
|
35890
|
+
dcToGoldSwapRate = _ref2$dcToGoldSwapRat === void 0 ? 0 : _ref2$dcToGoldSwapRat,
|
|
35891
|
+
getDCEquivalentPrice = _ref2.getDCEquivalentPrice,
|
|
35892
|
+
characterId = _ref2.characterId,
|
|
35893
|
+
onBuy = _ref2.onBuy;
|
|
35894
|
+
var _useState = React.useState(false),
|
|
35895
|
+
expanded = _useState[0],
|
|
35896
|
+
setExpanded = _useState[1];
|
|
35897
|
+
var totalOffers = otherListings.length + 1;
|
|
35898
|
+
var hasMultiple = otherListings.length > 0;
|
|
35899
|
+
return React__default.createElement(GroupWrapper, null, React__default.createElement(GroupHeader, {
|
|
35900
|
+
onClick: hasMultiple ? function () {
|
|
35901
|
+
return setExpanded(!expanded);
|
|
35902
|
+
} : undefined,
|
|
35903
|
+
clickable: hasMultiple
|
|
35904
|
+
}, React__default.createElement(MarketplaceRows, {
|
|
35905
|
+
atlasIMG: atlasIMG,
|
|
35906
|
+
atlasJSON: atlasJSON,
|
|
35907
|
+
item: bestListing.item,
|
|
35908
|
+
itemPrice: bestListing.price,
|
|
35909
|
+
dcEquivalentPrice: dcToGoldSwapRate > 0 ? getDCEquivalentPrice(bestListing.price) : undefined,
|
|
35910
|
+
equipmentSet: equipmentSet,
|
|
35911
|
+
onMarketPlaceItemBuy: function onMarketPlaceItemBuy() {
|
|
35912
|
+
return onBuy(bestListing._id);
|
|
35913
|
+
},
|
|
35914
|
+
disabled: bestListing.owner === characterId
|
|
35915
|
+
}), hasMultiple && React__default.createElement(GroupMeta, null, React__default.createElement(OfferBadge, null, totalOffers, " offers"), React__default.createElement(Chevron, {
|
|
35916
|
+
expanded: expanded
|
|
35917
|
+
}, "\u25B8"))), expanded && React__default.createElement(SubRows, null, otherListings.map(function (listing) {
|
|
35918
|
+
return React__default.createElement(MarketplaceRows, {
|
|
35919
|
+
key: listing._id,
|
|
35920
|
+
atlasIMG: atlasIMG,
|
|
35921
|
+
atlasJSON: atlasJSON,
|
|
35922
|
+
item: listing.item,
|
|
35923
|
+
itemPrice: listing.price,
|
|
35924
|
+
dcEquivalentPrice: dcToGoldSwapRate > 0 ? getDCEquivalentPrice(listing.price) : undefined,
|
|
35925
|
+
equipmentSet: equipmentSet,
|
|
35926
|
+
onMarketPlaceItemBuy: function onMarketPlaceItemBuy() {
|
|
35927
|
+
return onBuy(listing._id);
|
|
35928
|
+
},
|
|
35929
|
+
disabled: listing.owner === characterId
|
|
35930
|
+
});
|
|
35931
|
+
})));
|
|
35932
|
+
};
|
|
35933
|
+
var GroupWrapper = /*#__PURE__*/styled__default.div.withConfig({
|
|
35934
|
+
displayName: "MarketplaceRows__GroupWrapper",
|
|
35798
35935
|
componentId: "sc-wmpr1o-0"
|
|
35799
|
-
})(["margin
|
|
35800
|
-
var
|
|
35801
|
-
displayName: "
|
|
35936
|
+
})(["margin-bottom:2px;"]);
|
|
35937
|
+
var GroupHeader = /*#__PURE__*/styled__default.div.withConfig({
|
|
35938
|
+
displayName: "MarketplaceRows__GroupHeader",
|
|
35802
35939
|
componentId: "sc-wmpr1o-1"
|
|
35803
|
-
})(["position:
|
|
35804
|
-
var
|
|
35805
|
-
|
|
35940
|
+
})(["position:relative;cursor:", ";"], function (_ref3) {
|
|
35941
|
+
var clickable = _ref3.clickable;
|
|
35942
|
+
return clickable ? 'pointer' : 'default';
|
|
35943
|
+
});
|
|
35944
|
+
var GroupMeta = /*#__PURE__*/styled__default.div.withConfig({
|
|
35945
|
+
displayName: "MarketplaceRows__GroupMeta",
|
|
35806
35946
|
componentId: "sc-wmpr1o-2"
|
|
35807
|
-
})(["position:absolute;
|
|
35808
|
-
var
|
|
35809
|
-
displayName: "
|
|
35947
|
+
})(["position:absolute;right:180px;top:50%;transform:translateY(-50%);display:flex;align-items:center;gap:6px;pointer-events:none;"]);
|
|
35948
|
+
var OfferBadge = /*#__PURE__*/styled__default.span.withConfig({
|
|
35949
|
+
displayName: "MarketplaceRows__OfferBadge",
|
|
35810
35950
|
componentId: "sc-wmpr1o-3"
|
|
35811
|
-
})(["
|
|
35812
|
-
var
|
|
35813
|
-
displayName: "
|
|
35951
|
+
})(["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;"]);
|
|
35952
|
+
var Chevron = /*#__PURE__*/styled__default.span.withConfig({
|
|
35953
|
+
displayName: "MarketplaceRows__Chevron",
|
|
35814
35954
|
componentId: "sc-wmpr1o-4"
|
|
35815
|
-
})(["display:
|
|
35816
|
-
var
|
|
35817
|
-
|
|
35955
|
+
})(["display:inline-block;font-size:0.7rem;color:rgba(255,255,255,0.4);transition:transform 0.2s ease;transform:rotate(", ");"], function (_ref4) {
|
|
35956
|
+
var expanded = _ref4.expanded;
|
|
35957
|
+
return expanded ? '90deg' : '0deg';
|
|
35958
|
+
});
|
|
35959
|
+
var SubRows = /*#__PURE__*/styled__default.div.withConfig({
|
|
35960
|
+
displayName: "MarketplaceRows__SubRows",
|
|
35818
35961
|
componentId: "sc-wmpr1o-5"
|
|
35819
|
-
})(["
|
|
35820
|
-
var
|
|
35821
|
-
displayName: "
|
|
35962
|
+
})(["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);}"]);
|
|
35963
|
+
var MarketplaceWrapper = /*#__PURE__*/styled__default.div.withConfig({
|
|
35964
|
+
displayName: "MarketplaceRows__MarketplaceWrapper",
|
|
35822
35965
|
componentId: "sc-wmpr1o-6"
|
|
35823
|
-
})(["
|
|
35824
|
-
var
|
|
35825
|
-
displayName: "
|
|
35966
|
+
})(["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);}"]);
|
|
35967
|
+
var ItemSection = /*#__PURE__*/styled__default.div.withConfig({
|
|
35968
|
+
displayName: "MarketplaceRows__ItemSection",
|
|
35826
35969
|
componentId: "sc-wmpr1o-7"
|
|
35827
|
-
})(["
|
|
35828
|
-
var
|
|
35829
|
-
displayName: "
|
|
35970
|
+
})(["display:flex;align-items:center;gap:0.75rem;flex:1;min-width:0;"]);
|
|
35971
|
+
var SpriteContainer$3 = /*#__PURE__*/styled__default.div.withConfig({
|
|
35972
|
+
displayName: "MarketplaceRows__SpriteContainer",
|
|
35830
35973
|
componentId: "sc-wmpr1o-8"
|
|
35831
|
-
})(["
|
|
35832
|
-
var
|
|
35833
|
-
displayName: "
|
|
35974
|
+
})(["position:relative;flex-shrink:0;min-width:44px;"]);
|
|
35975
|
+
var ItemDetails = /*#__PURE__*/styled__default.div.withConfig({
|
|
35976
|
+
displayName: "MarketplaceRows__ItemDetails",
|
|
35834
35977
|
componentId: "sc-wmpr1o-9"
|
|
35835
|
-
})(["margin:
|
|
35978
|
+
})(["display:flex;flex-direction:column;gap:0.2rem;min-width:0;margin-left:1rem;"]);
|
|
35979
|
+
var ItemName = /*#__PURE__*/styled__default.div.withConfig({
|
|
35980
|
+
displayName: "MarketplaceRows__ItemName",
|
|
35981
|
+
componentId: "sc-wmpr1o-10"
|
|
35982
|
+
})(["font-family:'Press Start 2P',cursive;font-size:0.65rem;color:#ffffff;"]);
|
|
35983
|
+
var PriceRow = /*#__PURE__*/styled__default.div.withConfig({
|
|
35984
|
+
displayName: "MarketplaceRows__PriceRow",
|
|
35985
|
+
componentId: "sc-wmpr1o-11"
|
|
35986
|
+
})(["display:flex;flex-direction:row;align-items:center;gap:0.5rem;margin-top:0.2rem;"]);
|
|
35987
|
+
var GoldPriceRow = /*#__PURE__*/styled__default.div.withConfig({
|
|
35988
|
+
displayName: "MarketplaceRows__GoldPriceRow",
|
|
35989
|
+
componentId: "sc-wmpr1o-12"
|
|
35990
|
+
})(["display:flex;align-items:center;gap:0.3rem;"]);
|
|
35991
|
+
var GoldIcon = /*#__PURE__*/styled__default.span.withConfig({
|
|
35992
|
+
displayName: "MarketplaceRows__GoldIcon",
|
|
35993
|
+
componentId: "sc-wmpr1o-13"
|
|
35994
|
+
})(["display:flex;align-items:center;justify-content:center;position:relative;top:-0.6rem;left:-0.5rem;"]);
|
|
35995
|
+
var GoldPrice = /*#__PURE__*/styled__default.span.withConfig({
|
|
35996
|
+
displayName: "MarketplaceRows__GoldPrice",
|
|
35997
|
+
componentId: "sc-wmpr1o-14"
|
|
35998
|
+
})(["font-family:'Press Start 2P',cursive;font-size:0.6rem;color:#fef08a;line-height:1;"]);
|
|
35999
|
+
var DCPrice = /*#__PURE__*/styled__default.span.withConfig({
|
|
36000
|
+
displayName: "MarketplaceRows__DCPrice",
|
|
36001
|
+
componentId: "sc-wmpr1o-15"
|
|
36002
|
+
})(["font-family:'Press Start 2P',cursive;font-size:0.55rem;color:rgba(254,240,138,0.65);white-space:nowrap;"]);
|
|
36003
|
+
var ActionSection = /*#__PURE__*/styled__default.div.withConfig({
|
|
36004
|
+
displayName: "MarketplaceRows__ActionSection",
|
|
36005
|
+
componentId: "sc-wmpr1o-16"
|
|
36006
|
+
})(["flex-shrink:0;margin-left:0.75rem;"]);
|
|
36007
|
+
var QuantityContainer = /*#__PURE__*/styled__default.p.withConfig({
|
|
36008
|
+
displayName: "MarketplaceRows__QuantityContainer",
|
|
36009
|
+
componentId: "sc-wmpr1o-17"
|
|
36010
|
+
})(["position:absolute;display:block;top:15px;left:25px;font-size:", " !important;"], uiFonts.size.xsmall);
|
|
36011
|
+
var GemContainer = /*#__PURE__*/styled__default.p.withConfig({
|
|
36012
|
+
displayName: "MarketplaceRows__GemContainer",
|
|
36013
|
+
componentId: "sc-wmpr1o-18"
|
|
36014
|
+
})(["position:absolute;display:block;top:-5px;left:-10px;font-size:", " !important;"], uiFonts.size.xsmall);
|
|
35836
36015
|
var RarityContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
35837
36016
|
displayName: "MarketplaceRows__RarityContainer",
|
|
35838
|
-
componentId: "sc-wmpr1o-
|
|
35839
|
-
})(["border-color:", ";box-shadow:", " inset,", ";width:32px;height:32px;"], function (
|
|
35840
|
-
var item =
|
|
36017
|
+
componentId: "sc-wmpr1o-19"
|
|
36018
|
+
})(["border-color:", ";box-shadow:", " inset,", ";width:32px;height:32px;"], function (_ref5) {
|
|
36019
|
+
var item = _ref5.item;
|
|
35841
36020
|
return rarityColor(item);
|
|
35842
|
-
}, function (
|
|
35843
|
-
var item =
|
|
36021
|
+
}, function (_ref6) {
|
|
36022
|
+
var item = _ref6.item;
|
|
35844
36023
|
return "0 0 5px 8px " + rarityColor(item);
|
|
35845
|
-
}, function (
|
|
35846
|
-
var item =
|
|
36024
|
+
}, function (_ref7) {
|
|
36025
|
+
var item = _ref7.item;
|
|
35847
36026
|
return "0 0 8px 6px " + rarityColor(item);
|
|
35848
36027
|
});
|
|
35849
36028
|
|
|
@@ -35914,18 +36093,21 @@ var BuyPanel = function BuyPanel(_ref) {
|
|
|
35914
36093
|
var _useState = React.useState(''),
|
|
35915
36094
|
name = _useState[0],
|
|
35916
36095
|
setName = _useState[1];
|
|
35917
|
-
var _useState2 = React.useState(
|
|
35918
|
-
|
|
35919
|
-
|
|
36096
|
+
var _useState2 = React.useState(false),
|
|
36097
|
+
showFilters = _useState2[0],
|
|
36098
|
+
setShowFilters = _useState2[1];
|
|
35920
36099
|
var _useState3 = React.useState([undefined, undefined]),
|
|
35921
|
-
|
|
35922
|
-
|
|
36100
|
+
mainLevel = _useState3[0],
|
|
36101
|
+
setMainLevel = _useState3[1];
|
|
35923
36102
|
var _useState4 = React.useState([undefined, undefined]),
|
|
35924
|
-
|
|
35925
|
-
|
|
35926
|
-
var _useState5 = React.useState(
|
|
35927
|
-
|
|
35928
|
-
|
|
36103
|
+
secondaryLevel = _useState4[0],
|
|
36104
|
+
setSecondaryLevel = _useState4[1];
|
|
36105
|
+
var _useState5 = React.useState([undefined, undefined]),
|
|
36106
|
+
price = _useState5[0],
|
|
36107
|
+
setPrice = _useState5[1];
|
|
36108
|
+
var _useState6 = React.useState(null),
|
|
36109
|
+
buyingItemId = _useState6[0],
|
|
36110
|
+
setBuyingItemId = _useState6[1];
|
|
35929
36111
|
var itemsContainer = React.useRef(null);
|
|
35930
36112
|
React.useEffect(function () {
|
|
35931
36113
|
var _itemsContainer$curre;
|
|
@@ -35938,6 +36120,26 @@ var BuyPanel = function BuyPanel(_ref) {
|
|
|
35938
36120
|
var getDCEquivalentPrice = function getDCEquivalentPrice(goldPrice) {
|
|
35939
36121
|
return dcToGoldSwapRate > 0 ? shared.goldToDC(goldPrice) : 0;
|
|
35940
36122
|
};
|
|
36123
|
+
var groupedItems = React.useMemo(function () {
|
|
36124
|
+
var groups = new Map();
|
|
36125
|
+
for (var _iterator = _createForOfIteratorHelperLoose(items), _step; !(_step = _iterator()).done;) {
|
|
36126
|
+
var entry = _step.value;
|
|
36127
|
+
var key = entry.item.key;
|
|
36128
|
+
if (!groups.has(key)) {
|
|
36129
|
+
groups.set(key, []);
|
|
36130
|
+
}
|
|
36131
|
+
groups.get(key).push(entry);
|
|
36132
|
+
}
|
|
36133
|
+
return Array.from(groups.values()).map(function (group) {
|
|
36134
|
+
var sorted = [].concat(group).sort(function (a, b) {
|
|
36135
|
+
return a.price - b.price;
|
|
36136
|
+
});
|
|
36137
|
+
return {
|
|
36138
|
+
bestListing: sorted[0],
|
|
36139
|
+
otherListings: sorted.slice(1)
|
|
36140
|
+
};
|
|
36141
|
+
});
|
|
36142
|
+
}, [items]);
|
|
35941
36143
|
return React__default.createElement(React__default.Fragment, null, buyingItemId && buyingItem && hasDCBalance && React__default.createElement(MarketplaceBuyModal, {
|
|
35942
36144
|
goldPrice: buyingItem.price,
|
|
35943
36145
|
dcEquivalentPrice: getDCEquivalentPrice(buyingItem.price),
|
|
@@ -35957,8 +36159,8 @@ var BuyPanel = function BuyPanel(_ref) {
|
|
|
35957
36159
|
setBuyingItemId(null);
|
|
35958
36160
|
enableHotkeys == null ? void 0 : enableHotkeys();
|
|
35959
36161
|
},
|
|
35960
|
-
message: "Are you sure to buy this item?"
|
|
35961
|
-
}), React__default.createElement(InputWrapper, null, React__default.createElement("p", null, "
|
|
36162
|
+
message: "Are you sure you want to buy this item?"
|
|
36163
|
+
}), React__default.createElement(InputWrapper, null, React__default.createElement("p", null, "SEARCH"), React__default.createElement(Input, {
|
|
35962
36164
|
onChange: function onChange(e) {
|
|
35963
36165
|
setName(e.target.value);
|
|
35964
36166
|
onChangeNameInput(e.target.value);
|
|
@@ -35966,8 +36168,21 @@ var BuyPanel = function BuyPanel(_ref) {
|
|
|
35966
36168
|
value: name,
|
|
35967
36169
|
placeholder: "Enter name...",
|
|
35968
36170
|
onBlur: enableHotkeys,
|
|
35969
|
-
onFocus: disableHotkeys
|
|
35970
|
-
|
|
36171
|
+
onFocus: disableHotkeys,
|
|
36172
|
+
className: "search-input"
|
|
36173
|
+
}), React__default.createElement("button", {
|
|
36174
|
+
className: "filter-btn",
|
|
36175
|
+
onClick: function onClick() {
|
|
36176
|
+
return setShowFilters(!showFilters);
|
|
36177
|
+
}
|
|
36178
|
+
}, React__default.createElement(SortVertical.SortVertical, {
|
|
36179
|
+
width: 18,
|
|
36180
|
+
height: 18
|
|
36181
|
+
}))), React__default.createElement(OptionsWrapper, {
|
|
36182
|
+
showFilters: showFilters
|
|
36183
|
+
}, showFilters && React__default.createElement(FilterInputsWrapper, null, React__default.createElement("div", null, React__default.createElement("p", null, "Main level"), React__default.createElement("div", {
|
|
36184
|
+
className: "input-group"
|
|
36185
|
+
}, React__default.createElement(Input, {
|
|
35971
36186
|
onChange: function onChange(e) {
|
|
35972
36187
|
setMainLevel([Number(e.target.value), mainLevel[1]]);
|
|
35973
36188
|
onChangeMainLevelInput([Number(e.target.value), mainLevel[1]]);
|
|
@@ -35977,7 +36192,9 @@ var BuyPanel = function BuyPanel(_ref) {
|
|
|
35977
36192
|
min: 0,
|
|
35978
36193
|
onBlur: enableHotkeys,
|
|
35979
36194
|
onFocus: disableHotkeys
|
|
35980
|
-
}), React__default.createElement(ai.AiFillCaretRight,
|
|
36195
|
+
}), React__default.createElement(ai.AiFillCaretRight, {
|
|
36196
|
+
className: "separator-icon"
|
|
36197
|
+
}), React__default.createElement(Input, {
|
|
35981
36198
|
onChange: function onChange(e) {
|
|
35982
36199
|
setMainLevel([mainLevel[0], Number(e.target.value)]);
|
|
35983
36200
|
onChangeMainLevelInput([mainLevel[0], Number(e.target.value)]);
|
|
@@ -35987,7 +36204,9 @@ var BuyPanel = function BuyPanel(_ref) {
|
|
|
35987
36204
|
min: 0,
|
|
35988
36205
|
onBlur: enableHotkeys,
|
|
35989
36206
|
onFocus: disableHotkeys
|
|
35990
|
-
})), React__default.createElement("div", null, React__default.createElement("p", null, "Secondary level"), React__default.createElement(
|
|
36207
|
+
}))), React__default.createElement("div", null, React__default.createElement("p", null, "Secondary level"), React__default.createElement("div", {
|
|
36208
|
+
className: "input-group"
|
|
36209
|
+
}, React__default.createElement(Input, {
|
|
35991
36210
|
onChange: function onChange(e) {
|
|
35992
36211
|
setSecondaryLevel([Number(e.target.value), secondaryLevel[1]]);
|
|
35993
36212
|
onChangeSecondaryLevelInput([Number(e.target.value), secondaryLevel[1]]);
|
|
@@ -35997,7 +36216,9 @@ var BuyPanel = function BuyPanel(_ref) {
|
|
|
35997
36216
|
min: 0,
|
|
35998
36217
|
onBlur: enableHotkeys,
|
|
35999
36218
|
onFocus: disableHotkeys
|
|
36000
|
-
}), React__default.createElement(ai.AiFillCaretRight,
|
|
36219
|
+
}), React__default.createElement(ai.AiFillCaretRight, {
|
|
36220
|
+
className: "separator-icon"
|
|
36221
|
+
}), React__default.createElement(Input, {
|
|
36001
36222
|
onChange: function onChange(e) {
|
|
36002
36223
|
setSecondaryLevel([secondaryLevel[0], Number(e.target.value)]);
|
|
36003
36224
|
onChangeSecondaryLevelInput([secondaryLevel[0], Number(e.target.value)]);
|
|
@@ -36007,7 +36228,9 @@ var BuyPanel = function BuyPanel(_ref) {
|
|
|
36007
36228
|
min: 0,
|
|
36008
36229
|
onBlur: enableHotkeys,
|
|
36009
36230
|
onFocus: disableHotkeys
|
|
36010
|
-
})), React__default.createElement("div", null, React__default.createElement("p", null, "Price"), React__default.createElement(
|
|
36231
|
+
}))), React__default.createElement("div", null, React__default.createElement("p", null, "Price"), React__default.createElement("div", {
|
|
36232
|
+
className: "input-group"
|
|
36233
|
+
}, React__default.createElement(Input, {
|
|
36011
36234
|
onChange: function onChange(e) {
|
|
36012
36235
|
setPrice([Number(e.target.value), price[1]]);
|
|
36013
36236
|
onChangePriceInput([Number(e.target.value), price[1]]);
|
|
@@ -36015,10 +36238,11 @@ var BuyPanel = function BuyPanel(_ref) {
|
|
|
36015
36238
|
placeholder: "Min",
|
|
36016
36239
|
type: "number",
|
|
36017
36240
|
min: 0,
|
|
36018
|
-
className: "big-input",
|
|
36019
36241
|
onBlur: enableHotkeys,
|
|
36020
36242
|
onFocus: disableHotkeys
|
|
36021
|
-
}), React__default.createElement(ai.AiFillCaretRight,
|
|
36243
|
+
}), React__default.createElement(ai.AiFillCaretRight, {
|
|
36244
|
+
className: "separator-icon"
|
|
36245
|
+
}), React__default.createElement(Input, {
|
|
36022
36246
|
onChange: function onChange(e) {
|
|
36023
36247
|
setPrice([price[0], Number(e.target.value)]);
|
|
36024
36248
|
onChangePriceInput([price[0], Number(e.target.value)]);
|
|
@@ -36026,17 +36250,16 @@ var BuyPanel = function BuyPanel(_ref) {
|
|
|
36026
36250
|
placeholder: "Max",
|
|
36027
36251
|
type: "number",
|
|
36028
36252
|
min: 0,
|
|
36029
|
-
className: "big-input",
|
|
36030
36253
|
onBlur: enableHotkeys,
|
|
36031
36254
|
onFocus: disableHotkeys
|
|
36032
|
-
}))), React__default.createElement(WrapperContainer$1, null, React__default.createElement(StyledDropdown$2, {
|
|
36255
|
+
})))), React__default.createElement(WrapperContainer$1, null, React__default.createElement(StyledDropdown$2, {
|
|
36033
36256
|
options: itemTypeOptions,
|
|
36034
36257
|
onChange: onChangeType,
|
|
36035
|
-
width: "
|
|
36258
|
+
width: "100%"
|
|
36036
36259
|
}), React__default.createElement(StyledDropdown$2, {
|
|
36037
36260
|
options: itemRarityOptions,
|
|
36038
36261
|
onChange: onChangeRarity,
|
|
36039
|
-
width: "
|
|
36262
|
+
width: "100%"
|
|
36040
36263
|
}), React__default.createElement(StyledDropdown$2, {
|
|
36041
36264
|
options: orderByOptions,
|
|
36042
36265
|
onChange: onChangeOrder,
|
|
@@ -36044,56 +36267,58 @@ var BuyPanel = function BuyPanel(_ref) {
|
|
|
36044
36267
|
}))), React__default.createElement(ItemComponentScrollWrapper$1, {
|
|
36045
36268
|
id: "MarketContainer",
|
|
36046
36269
|
ref: itemsContainer
|
|
36047
|
-
},
|
|
36048
|
-
var
|
|
36049
|
-
|
|
36050
|
-
|
|
36051
|
-
|
|
36052
|
-
|
|
36053
|
-
|
|
36270
|
+
}, groupedItems.map(function (_ref2) {
|
|
36271
|
+
var bestListing = _ref2.bestListing,
|
|
36272
|
+
otherListings = _ref2.otherListings;
|
|
36273
|
+
return React__default.createElement(GroupedMarketplaceRow, {
|
|
36274
|
+
key: bestListing.item.key,
|
|
36275
|
+
bestListing: bestListing,
|
|
36276
|
+
otherListings: otherListings,
|
|
36054
36277
|
atlasIMG: atlasIMG,
|
|
36055
36278
|
atlasJSON: atlasJSON,
|
|
36056
|
-
item: item,
|
|
36057
|
-
itemPrice: price,
|
|
36058
|
-
dcEquivalentPrice: dcToGoldSwapRate > 0 ? getDCEquivalentPrice(price) : undefined,
|
|
36059
36279
|
equipmentSet: equipmentSet,
|
|
36060
|
-
|
|
36061
|
-
|
|
36280
|
+
dcToGoldSwapRate: dcToGoldSwapRate,
|
|
36281
|
+
getDCEquivalentPrice: getDCEquivalentPrice,
|
|
36282
|
+
characterId: characterId,
|
|
36283
|
+
onBuy: setBuyingItemId
|
|
36062
36284
|
});
|
|
36063
36285
|
})));
|
|
36064
36286
|
};
|
|
36065
36287
|
var InputWrapper = /*#__PURE__*/styled__default.div.withConfig({
|
|
36066
36288
|
displayName: "BuyPanel__InputWrapper",
|
|
36067
36289
|
componentId: "sc-1si8t7i-0"
|
|
36068
|
-
})(["width:95%;display:flex !important;justify-content:flex-start;align-items:center;margin:auto;p{width:auto;margin-right:20px;}input{
|
|
36290
|
+
})(["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;}}"]);
|
|
36069
36291
|
var OptionsWrapper = /*#__PURE__*/styled__default.div.withConfig({
|
|
36070
36292
|
displayName: "BuyPanel__OptionsWrapper",
|
|
36071
36293
|
componentId: "sc-1si8t7i-1"
|
|
36072
|
-
})(["width:
|
|
36294
|
+
})(["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) {
|
|
36295
|
+
var showFilters = _ref3.showFilters;
|
|
36296
|
+
return showFilters ? '15px' : '0';
|
|
36297
|
+
});
|
|
36073
36298
|
var FilterInputsWrapper = /*#__PURE__*/styled__default.div.withConfig({
|
|
36074
36299
|
displayName: "BuyPanel__FilterInputsWrapper",
|
|
36075
36300
|
componentId: "sc-1si8t7i-2"
|
|
36076
|
-
})(["
|
|
36301
|
+
})(["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);}"]);
|
|
36077
36302
|
var WrapperContainer$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
36078
36303
|
displayName: "BuyPanel__WrapperContainer",
|
|
36079
36304
|
componentId: "sc-1si8t7i-3"
|
|
36080
|
-
})(["display:grid;grid-template-columns:
|
|
36305
|
+
})(["display:grid;grid-template-columns:1fr 1fr 1fr;gap:15px;.rpgui-content .rpgui-dropdown-imp-header{padding:0px 10px 0 !important;}"]);
|
|
36081
36306
|
var ItemComponentScrollWrapper$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
36082
36307
|
displayName: "BuyPanel__ItemComponentScrollWrapper",
|
|
36083
36308
|
componentId: "sc-1si8t7i-4"
|
|
36084
|
-
})(["overflow-y:scroll;height:390px;width:
|
|
36309
|
+
})(["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;}"]);
|
|
36085
36310
|
var StyledDropdown$2 = /*#__PURE__*/styled__default(Dropdown).withConfig({
|
|
36086
36311
|
displayName: "BuyPanel__StyledDropdown",
|
|
36087
36312
|
componentId: "sc-1si8t7i-5"
|
|
36088
|
-
})(["margin:
|
|
36313
|
+
})(["margin:0px !important;width:100% !important;"]);
|
|
36089
36314
|
|
|
36090
36315
|
var ManagmentPanel = function ManagmentPanel(_ref) {
|
|
36091
36316
|
var items = _ref.items,
|
|
36092
36317
|
atlasIMG = _ref.atlasIMG,
|
|
36093
36318
|
atlasJSON = _ref.atlasJSON,
|
|
36094
|
-
onChangeNameInput = _ref.onChangeNameInput,
|
|
36095
36319
|
equipmentSet = _ref.equipmentSet,
|
|
36096
36320
|
availableGold = _ref.availableGold,
|
|
36321
|
+
dcBalance = _ref.dcBalance,
|
|
36097
36322
|
onMarketPlaceItemRemove = _ref.onMarketPlaceItemRemove,
|
|
36098
36323
|
selectedItemToSell = _ref.selectedItemToSell,
|
|
36099
36324
|
onSelectedItemToSellRemove = _ref.onSelectedItemToSellRemove,
|
|
@@ -36103,17 +36328,14 @@ var ManagmentPanel = function ManagmentPanel(_ref) {
|
|
|
36103
36328
|
onMoneyWithdraw = _ref.onMoneyWithdraw,
|
|
36104
36329
|
currentPage = _ref.currentPage;
|
|
36105
36330
|
var _useState = React.useState(''),
|
|
36106
|
-
|
|
36107
|
-
|
|
36108
|
-
var _useState2 = React.useState(
|
|
36109
|
-
|
|
36110
|
-
|
|
36111
|
-
var _useState3 = React.useState(
|
|
36112
|
-
|
|
36113
|
-
|
|
36114
|
-
var _useState4 = React.useState(null),
|
|
36115
|
-
removingItemId = _useState4[0],
|
|
36116
|
-
setRemovingItemId = _useState4[1];
|
|
36331
|
+
price = _useState[0],
|
|
36332
|
+
setPrice = _useState[1];
|
|
36333
|
+
var _useState2 = React.useState(false),
|
|
36334
|
+
isCreatingOffer = _useState2[0],
|
|
36335
|
+
setIsCreatingOffer = _useState2[1];
|
|
36336
|
+
var _useState3 = React.useState(null),
|
|
36337
|
+
removingItemId = _useState3[0],
|
|
36338
|
+
setRemovingItemId = _useState3[1];
|
|
36117
36339
|
var itemsContainer = React.useRef(null);
|
|
36118
36340
|
React.useEffect(function () {
|
|
36119
36341
|
var _itemsContainer$curre;
|
|
@@ -36139,16 +36361,23 @@ var ManagmentPanel = function ManagmentPanel(_ref) {
|
|
|
36139
36361
|
enableHotkeys == null ? void 0 : enableHotkeys();
|
|
36140
36362
|
},
|
|
36141
36363
|
message: "Are you sure to remove this item?"
|
|
36142
|
-
}), React__default.createElement(
|
|
36143
|
-
|
|
36144
|
-
|
|
36145
|
-
|
|
36146
|
-
|
|
36147
|
-
|
|
36148
|
-
|
|
36149
|
-
|
|
36150
|
-
|
|
36151
|
-
|
|
36364
|
+
}), React__default.createElement(OptionsWrapper$1, null, React__default.createElement(InnerOptionsWrapper, null, React__default.createElement("div", {
|
|
36365
|
+
style: {
|
|
36366
|
+
display: 'flex',
|
|
36367
|
+
justifyContent: 'space-between',
|
|
36368
|
+
alignItems: 'center',
|
|
36369
|
+
marginBottom: '12px'
|
|
36370
|
+
}
|
|
36371
|
+
}, React__default.createElement(SectionLabel$1, {
|
|
36372
|
+
style: {
|
|
36373
|
+
marginBottom: 0
|
|
36374
|
+
}
|
|
36375
|
+
}, "Create Offer"), !selectedItemToSell && React__default.createElement(SellDescription, null, "Select item in inventory to sell")), React__default.createElement(Flex$1, {
|
|
36376
|
+
style: {
|
|
36377
|
+
gap: '15px',
|
|
36378
|
+
alignItems: 'center'
|
|
36379
|
+
}
|
|
36380
|
+
}, React__default.createElement(ItemSlot, {
|
|
36152
36381
|
slotIndex: 0,
|
|
36153
36382
|
atlasIMG: atlasIMG,
|
|
36154
36383
|
atlasJSON: atlasJSON,
|
|
@@ -36156,35 +36385,60 @@ var ManagmentPanel = function ManagmentPanel(_ref) {
|
|
|
36156
36385
|
return onSelectedItemToSellRemove(item);
|
|
36157
36386
|
},
|
|
36158
36387
|
item: selectedItemToSell
|
|
36159
|
-
}), React__default.createElement(PriceInputWrapper, null, React__default.createElement("p", null, "
|
|
36388
|
+
}), React__default.createElement(PriceInputWrapper, null, React__default.createElement("p", null, "SET PRICE (GOLD)"), React__default.createElement(Flex$1, {
|
|
36389
|
+
style: {
|
|
36390
|
+
width: '100%',
|
|
36391
|
+
alignItems: 'center',
|
|
36392
|
+
gap: '8px'
|
|
36393
|
+
}
|
|
36394
|
+
}, React__default.createElement(Input, {
|
|
36160
36395
|
onChange: function onChange(e) {
|
|
36161
|
-
setPrice(e.target.value);
|
|
36396
|
+
return setPrice(e.target.value);
|
|
36162
36397
|
},
|
|
36163
36398
|
value: price,
|
|
36164
|
-
placeholder: "
|
|
36399
|
+
placeholder: "Amount...",
|
|
36165
36400
|
type: "number",
|
|
36166
36401
|
disabled: !selectedItemToSell,
|
|
36167
36402
|
onBlur: enableHotkeys,
|
|
36168
|
-
onFocus: disableHotkeys
|
|
36169
|
-
|
|
36170
|
-
|
|
36403
|
+
onFocus: disableHotkeys,
|
|
36404
|
+
className: "price-input"
|
|
36405
|
+
}), React__default.createElement(SmallCTAButton, {
|
|
36406
|
+
icon: React__default.createElement(ShoppingBag.ShoppingBag, {
|
|
36407
|
+
width: 18,
|
|
36408
|
+
height: 18
|
|
36409
|
+
}),
|
|
36410
|
+
label: "Offer",
|
|
36171
36411
|
disabled: !selectedItemToSell || !price,
|
|
36172
|
-
|
|
36412
|
+
onClick: function onClick() {
|
|
36173
36413
|
if (selectedItemToSell && price && Number(price)) {
|
|
36174
36414
|
setIsCreatingOffer(true);
|
|
36175
36415
|
}
|
|
36176
36416
|
}
|
|
36177
|
-
}
|
|
36417
|
+
}))))), React__default.createElement(InnerOptionsWrapper, null, React__default.createElement(SectionLabel$1, {
|
|
36418
|
+
style: {
|
|
36419
|
+
marginBottom: '8px'
|
|
36420
|
+
}
|
|
36421
|
+
}, "Your Wealth"), React__default.createElement(WealthWrapper, null, React__default.createElement(BalanceRow, null, React__default.createElement(GoldIcon$1, null, React__default.createElement(SpriteFromAtlas, {
|
|
36422
|
+
atlasIMG: atlasIMG,
|
|
36423
|
+
atlasJSON: atlasJSON,
|
|
36424
|
+
spriteKey: "others/gold-coin-qty-5.png",
|
|
36425
|
+
imgScale: 1.2
|
|
36426
|
+
})), React__default.createElement(BalanceAmount$1, {
|
|
36178
36427
|
"$disabled": availableGold === 0
|
|
36179
|
-
}, React__default.createElement(
|
|
36180
|
-
|
|
36181
|
-
}, "
|
|
36182
|
-
|
|
36428
|
+
}, availableGold), React__default.createElement(BalanceCurrencyLabel, null, "GOLD")), dcBalance !== undefined && React__default.createElement(BalanceRow, null, React__default.createElement(DCIcon, null, "DC"), React__default.createElement(BalanceAmount$1, {
|
|
36429
|
+
"$disabled": false
|
|
36430
|
+
}, dcBalance), React__default.createElement(BalanceCurrencyLabel, null, "DC")), React__default.createElement(SmallCTAButton, {
|
|
36431
|
+
icon: React__default.createElement(Coins.Coins, {
|
|
36432
|
+
width: 18,
|
|
36433
|
+
height: 18
|
|
36434
|
+
}),
|
|
36435
|
+
label: "Withdraw Gold",
|
|
36183
36436
|
disabled: availableGold === 0,
|
|
36184
|
-
|
|
36437
|
+
onClick: function onClick() {
|
|
36185
36438
|
return availableGold > 0 && onMoneyWithdraw();
|
|
36186
|
-
}
|
|
36187
|
-
|
|
36439
|
+
},
|
|
36440
|
+
fullWidth: true
|
|
36441
|
+
})))), React__default.createElement(ItemComponentScrollWrapper$2, {
|
|
36188
36442
|
id: "MarketContainer",
|
|
36189
36443
|
ref: itemsContainer
|
|
36190
36444
|
}, items == null ? void 0 : items.map(function (_ref2, index) {
|
|
@@ -36202,50 +36456,162 @@ var ManagmentPanel = function ManagmentPanel(_ref) {
|
|
|
36202
36456
|
});
|
|
36203
36457
|
})));
|
|
36204
36458
|
};
|
|
36205
|
-
var Flex$
|
|
36459
|
+
var Flex$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
36206
36460
|
displayName: "ManagmentPanel__Flex",
|
|
36207
36461
|
componentId: "sc-1yyi6jn-0"
|
|
36208
36462
|
})(["display:flex;gap:5px;align-items:center;"]);
|
|
36209
|
-
var InputWrapper$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
36210
|
-
displayName: "ManagmentPanel__InputWrapper",
|
|
36211
|
-
componentId: "sc-1yyi6jn-1"
|
|
36212
|
-
})(["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;}"]);
|
|
36213
36463
|
var OptionsWrapper$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
36214
36464
|
displayName: "ManagmentPanel__OptionsWrapper",
|
|
36215
|
-
componentId: "sc-1yyi6jn-
|
|
36216
|
-
})(["width:
|
|
36465
|
+
componentId: "sc-1yyi6jn-1"
|
|
36466
|
+
})(["width:95%;margin:0 auto;display:grid;grid-template-columns:2fr 1fr;gap:15px;align-items:stretch;"]);
|
|
36217
36467
|
var InnerOptionsWrapper = /*#__PURE__*/styled__default.div.withConfig({
|
|
36218
36468
|
displayName: "ManagmentPanel__InnerOptionsWrapper",
|
|
36469
|
+
componentId: "sc-1yyi6jn-2"
|
|
36470
|
+
})(["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;"]);
|
|
36471
|
+
var SectionLabel$1 = /*#__PURE__*/styled__default.p.withConfig({
|
|
36472
|
+
displayName: "ManagmentPanel__SectionLabel",
|
|
36219
36473
|
componentId: "sc-1yyi6jn-3"
|
|
36220
|
-
})(["
|
|
36221
|
-
var
|
|
36222
|
-
displayName: "
|
|
36474
|
+
})(["margin:0 0 12px 0;font-size:0.65rem;color:#aaa;text-transform:uppercase;letter-spacing:1px;"]);
|
|
36475
|
+
var SellDescription = /*#__PURE__*/styled__default.p.withConfig({
|
|
36476
|
+
displayName: "ManagmentPanel__SellDescription",
|
|
36223
36477
|
componentId: "sc-1yyi6jn-4"
|
|
36224
|
-
})(["
|
|
36478
|
+
})(["margin:0;font-size:0.5rem;color:#888;text-align:right;line-height:1.4;"]);
|
|
36225
36479
|
var PriceInputWrapper = /*#__PURE__*/styled__default.div.withConfig({
|
|
36226
36480
|
displayName: "ManagmentPanel__PriceInputWrapper",
|
|
36227
36481
|
componentId: "sc-1yyi6jn-5"
|
|
36228
|
-
})(["p{margin:0;}input{width:
|
|
36229
|
-
var
|
|
36230
|
-
displayName: "
|
|
36482
|
+
})(["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;}"]);
|
|
36483
|
+
var GoldIcon$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
36484
|
+
displayName: "ManagmentPanel__GoldIcon",
|
|
36231
36485
|
componentId: "sc-1yyi6jn-6"
|
|
36232
|
-
})(["margin:
|
|
36233
|
-
var
|
|
36234
|
-
displayName: "
|
|
36486
|
+
})(["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;"]);
|
|
36487
|
+
var WealthWrapper = /*#__PURE__*/styled__default.div.withConfig({
|
|
36488
|
+
displayName: "ManagmentPanel__WealthWrapper",
|
|
36235
36489
|
componentId: "sc-1yyi6jn-7"
|
|
36236
|
-
})(["
|
|
36237
|
-
|
|
36238
|
-
|
|
36239
|
-
|
|
36490
|
+
})(["display:flex;flex-direction:column;gap:8px;flex-grow:1;& > :last-child{margin-top:auto;}"]);
|
|
36491
|
+
var BalanceRow = /*#__PURE__*/styled__default.div.withConfig({
|
|
36492
|
+
displayName: "ManagmentPanel__BalanceRow",
|
|
36493
|
+
componentId: "sc-1yyi6jn-8"
|
|
36494
|
+
})(["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;"]);
|
|
36495
|
+
var BalanceAmount$1 = /*#__PURE__*/styled__default.span.withConfig({
|
|
36496
|
+
displayName: "ManagmentPanel__BalanceAmount",
|
|
36497
|
+
componentId: "sc-1yyi6jn-9"
|
|
36498
|
+
})(["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) {
|
|
36499
|
+
return props.$disabled ? uiColors.lightGray : '#fef08a';
|
|
36240
36500
|
});
|
|
36501
|
+
var BalanceCurrencyLabel = /*#__PURE__*/styled__default.span.withConfig({
|
|
36502
|
+
displayName: "ManagmentPanel__BalanceCurrencyLabel",
|
|
36503
|
+
componentId: "sc-1yyi6jn-10"
|
|
36504
|
+
})(["font-size:0.5rem;color:#888;text-transform:uppercase;letter-spacing:0.5px;min-width:45px;text-align:right;"]);
|
|
36505
|
+
var DCIcon = /*#__PURE__*/styled__default.div.withConfig({
|
|
36506
|
+
displayName: "ManagmentPanel__DCIcon",
|
|
36507
|
+
componentId: "sc-1yyi6jn-11"
|
|
36508
|
+
})(["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;"]);
|
|
36509
|
+
var ItemComponentScrollWrapper$2 = /*#__PURE__*/styled__default.div.withConfig({
|
|
36510
|
+
displayName: "ManagmentPanel__ItemComponentScrollWrapper",
|
|
36511
|
+
componentId: "sc-1yyi6jn-12"
|
|
36512
|
+
})(["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;}"]);
|
|
36513
|
+
var SmallCTAButton = /*#__PURE__*/styled__default(CTAButton).withConfig({
|
|
36514
|
+
displayName: "ManagmentPanel__SmallCTAButton",
|
|
36515
|
+
componentId: "sc-1yyi6jn-13"
|
|
36516
|
+
})(["padding:8px 12px;height:32px;span{font-size:0.65rem;}svg{font-size:1.1rem;}"]);
|
|
36517
|
+
|
|
36518
|
+
var CURRENCY_OPTIONS = [{
|
|
36519
|
+
value: 'gold_or_dc',
|
|
36520
|
+
label: 'Gold or DC',
|
|
36521
|
+
description: 'Accept both Gold and Definya Coin as payment'
|
|
36522
|
+
}, {
|
|
36523
|
+
value: 'gold',
|
|
36524
|
+
label: 'Gold only',
|
|
36525
|
+
description: 'Only accept Gold as payment'
|
|
36526
|
+
}];
|
|
36527
|
+
var MarketplaceSettingsPanel = function MarketplaceSettingsPanel(_ref) {
|
|
36528
|
+
var acceptedCurrency = _ref.acceptedCurrency,
|
|
36529
|
+
onAcceptedCurrencyChange = _ref.onAcceptedCurrencyChange;
|
|
36530
|
+
return React__default.createElement(Wrapper$1, null, React__default.createElement(Section$1, null, React__default.createElement(SectionLabel$2, null, "Accepted Currency"), React__default.createElement(OptionsGrid, null, CURRENCY_OPTIONS.map(function (option) {
|
|
36531
|
+
return React__default.createElement(OptionCard, {
|
|
36532
|
+
key: option.value,
|
|
36533
|
+
"$active": acceptedCurrency === option.value,
|
|
36534
|
+
onClick: function onClick() {
|
|
36535
|
+
return onAcceptedCurrencyChange(option.value);
|
|
36536
|
+
}
|
|
36537
|
+
}, React__default.createElement(OptionLabel$1, {
|
|
36538
|
+
"$active": acceptedCurrency === option.value
|
|
36539
|
+
}, option.label), React__default.createElement(OptionDescription, null, option.description), acceptedCurrency === option.value && React__default.createElement(ActiveBadge, null, "Active"));
|
|
36540
|
+
})), React__default.createElement(Hint, null, "Buyers will only be able to pay using the currency you accept.")));
|
|
36541
|
+
};
|
|
36542
|
+
var Wrapper$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
36543
|
+
displayName: "MarketplaceSettingsPanel__Wrapper",
|
|
36544
|
+
componentId: "sc-1lvibyi-0"
|
|
36545
|
+
})(["width:95%;margin:0 auto;padding-top:4px;"]);
|
|
36546
|
+
var Section$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
36547
|
+
displayName: "MarketplaceSettingsPanel__Section",
|
|
36548
|
+
componentId: "sc-1lvibyi-1"
|
|
36549
|
+
})(["background:rgba(0,0,0,0.15);border-radius:4px;border:1px solid rgba(255,255,255,0.05);padding:16px 18px;"]);
|
|
36550
|
+
var SectionLabel$2 = /*#__PURE__*/styled__default.p.withConfig({
|
|
36551
|
+
displayName: "MarketplaceSettingsPanel__SectionLabel",
|
|
36552
|
+
componentId: "sc-1lvibyi-2"
|
|
36553
|
+
})(["margin:0 0 14px 0;font-size:0.65rem;color:#aaa;text-transform:uppercase;letter-spacing:1px;"]);
|
|
36554
|
+
var OptionsGrid = /*#__PURE__*/styled__default.div.withConfig({
|
|
36555
|
+
displayName: "MarketplaceSettingsPanel__OptionsGrid",
|
|
36556
|
+
componentId: "sc-1lvibyi-3"
|
|
36557
|
+
})(["display:grid;grid-template-columns:1fr 1fr;gap:12px;"]);
|
|
36558
|
+
var OptionCard = /*#__PURE__*/styled__default.button.withConfig({
|
|
36559
|
+
displayName: "MarketplaceSettingsPanel__OptionCard",
|
|
36560
|
+
componentId: "sc-1lvibyi-4"
|
|
36561
|
+
})(["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) {
|
|
36562
|
+
var $active = _ref2.$active;
|
|
36563
|
+
return $active ? 'rgba(245, 158, 11, 0.12)' : 'rgba(0, 0, 0, 0.25)';
|
|
36564
|
+
}, function (_ref3) {
|
|
36565
|
+
var $active = _ref3.$active;
|
|
36566
|
+
return $active ? '#f59e0b' : 'rgba(255,255,255,0.08)';
|
|
36567
|
+
}, function (_ref4) {
|
|
36568
|
+
var $active = _ref4.$active;
|
|
36569
|
+
return $active ? '#f59e0b' : 'rgba(255,255,255,0.25)';
|
|
36570
|
+
}, function (_ref5) {
|
|
36571
|
+
var $active = _ref5.$active;
|
|
36572
|
+
return $active ? 'rgba(245, 158, 11, 0.15)' : 'rgba(255,255,255,0.04)';
|
|
36573
|
+
});
|
|
36574
|
+
var OptionLabel$1 = /*#__PURE__*/styled__default.span.withConfig({
|
|
36575
|
+
displayName: "MarketplaceSettingsPanel__OptionLabel",
|
|
36576
|
+
componentId: "sc-1lvibyi-5"
|
|
36577
|
+
})(["font-family:'Press Start 2P',cursive;font-size:0.6rem;color:", ";letter-spacing:0.5px;"], function (_ref6) {
|
|
36578
|
+
var $active = _ref6.$active;
|
|
36579
|
+
return $active ? '#f59e0b' : '#cccccc';
|
|
36580
|
+
});
|
|
36581
|
+
var OptionDescription = /*#__PURE__*/styled__default.span.withConfig({
|
|
36582
|
+
displayName: "MarketplaceSettingsPanel__OptionDescription",
|
|
36583
|
+
componentId: "sc-1lvibyi-6"
|
|
36584
|
+
})(["font-size:0.5rem;color:#888;line-height:1.5;"]);
|
|
36585
|
+
var ActiveBadge = /*#__PURE__*/styled__default.span.withConfig({
|
|
36586
|
+
displayName: "MarketplaceSettingsPanel__ActiveBadge",
|
|
36587
|
+
componentId: "sc-1lvibyi-7"
|
|
36588
|
+
})(["position:absolute;top:8px;right:10px;font-size:0.45rem;color:#f59e0b;text-transform:uppercase;letter-spacing:0.5px;opacity:0.8;"]);
|
|
36589
|
+
var Hint = /*#__PURE__*/styled__default.p.withConfig({
|
|
36590
|
+
displayName: "MarketplaceSettingsPanel__Hint",
|
|
36591
|
+
componentId: "sc-1lvibyi-8"
|
|
36592
|
+
})(["margin:14px 0 0 0;font-size:0.48rem;color:#666;line-height:1.6;"]);
|
|
36241
36593
|
|
|
36242
36594
|
var Marketplace = function Marketplace(props) {
|
|
36243
36595
|
var onClose = props.onClose,
|
|
36244
36596
|
scale = props.scale,
|
|
36245
|
-
onYourPanelToggle = props.onYourPanelToggle
|
|
36246
|
-
|
|
36247
|
-
|
|
36248
|
-
|
|
36597
|
+
onYourPanelToggle = props.onYourPanelToggle,
|
|
36598
|
+
acceptedCurrencyProp = props.acceptedCurrency,
|
|
36599
|
+
onAcceptedCurrencyChange = props.onAcceptedCurrencyChange;
|
|
36600
|
+
var _useState = React.useState('marketplace'),
|
|
36601
|
+
activeTab = _useState[0],
|
|
36602
|
+
setActiveTab = _useState[1];
|
|
36603
|
+
var _useState2 = React.useState(acceptedCurrencyProp != null ? acceptedCurrencyProp : 'gold_or_dc'),
|
|
36604
|
+
acceptedCurrency = _useState2[0],
|
|
36605
|
+
setAcceptedCurrency = _useState2[1];
|
|
36606
|
+
var handleCurrencyChange = function handleCurrencyChange(value) {
|
|
36607
|
+
setAcceptedCurrency(value);
|
|
36608
|
+
onAcceptedCurrencyChange == null ? void 0 : onAcceptedCurrencyChange(value);
|
|
36609
|
+
};
|
|
36610
|
+
var handleTabChange = function handleTabChange(tabId) {
|
|
36611
|
+
var tab = tabId;
|
|
36612
|
+
setActiveTab(tab);
|
|
36613
|
+
onYourPanelToggle(tab === 'your-panel');
|
|
36614
|
+
};
|
|
36249
36615
|
return React__default.createElement(DraggableContainer, {
|
|
36250
36616
|
type: exports.RPGUIContainerTypes.Framed,
|
|
36251
36617
|
onCloseButton: function onCloseButton() {
|
|
@@ -36254,24 +36620,40 @@ var Marketplace = function Marketplace(props) {
|
|
|
36254
36620
|
width: "800px",
|
|
36255
36621
|
cancelDrag: "#MarketContainer, .rpgui-dropdown-imp, input, .empty-slot, button",
|
|
36256
36622
|
scale: scale
|
|
36257
|
-
},
|
|
36258
|
-
|
|
36259
|
-
|
|
36260
|
-
|
|
36261
|
-
|
|
36262
|
-
|
|
36263
|
-
|
|
36264
|
-
|
|
36265
|
-
|
|
36266
|
-
|
|
36267
|
-
|
|
36268
|
-
|
|
36269
|
-
|
|
36623
|
+
}, React__default.createElement(Tabs, {
|
|
36624
|
+
options: [{
|
|
36625
|
+
id: 'marketplace',
|
|
36626
|
+
label: 'Marketplace',
|
|
36627
|
+
icon: React__default.createElement(Store$1.Store, {
|
|
36628
|
+
width: 18,
|
|
36629
|
+
height: 18
|
|
36630
|
+
})
|
|
36631
|
+
}, {
|
|
36632
|
+
id: 'your-panel',
|
|
36633
|
+
label: 'Your Panel',
|
|
36634
|
+
icon: React__default.createElement(User.User, {
|
|
36635
|
+
width: 18,
|
|
36636
|
+
height: 18
|
|
36637
|
+
})
|
|
36638
|
+
}, {
|
|
36639
|
+
id: 'settings',
|
|
36640
|
+
label: 'Settings',
|
|
36641
|
+
icon: React__default.createElement(Settings2.Settings2, {
|
|
36642
|
+
width: 18,
|
|
36643
|
+
height: 18
|
|
36644
|
+
})
|
|
36645
|
+
}],
|
|
36646
|
+
activeTabId: activeTab,
|
|
36647
|
+
onTabChange: handleTabChange
|
|
36648
|
+
}), activeTab === 'your-panel' && React__default.createElement(React__default.Fragment, null, React__default.createElement(ManagmentPanel, Object.assign({}, props)), React__default.createElement(PagerContainer$1, null, React__default.createElement(Pager, Object.assign({}, props)))), activeTab === 'marketplace' && React__default.createElement(React__default.Fragment, null, React__default.createElement(BuyPanel, Object.assign({}, props)), React__default.createElement(PagerContainer$1, null, React__default.createElement(Pager, Object.assign({}, props)))), activeTab === 'settings' && React__default.createElement(MarketplaceSettingsPanel, {
|
|
36649
|
+
acceptedCurrency: acceptedCurrency,
|
|
36650
|
+
onAcceptedCurrencyChange: handleCurrencyChange
|
|
36651
|
+
}));
|
|
36270
36652
|
};
|
|
36271
36653
|
var PagerContainer$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
36272
36654
|
displayName: "Marketplace__PagerContainer",
|
|
36273
36655
|
componentId: "sc-h904b1-0"
|
|
36274
|
-
})(["display:flex;justify-content:
|
|
36656
|
+
})(["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;"]);
|
|
36275
36657
|
|
|
36276
36658
|
var TabBody = function TabBody(_ref) {
|
|
36277
36659
|
var id = _ref.id,
|
|
@@ -36331,7 +36713,7 @@ var CustomTab = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
36331
36713
|
MultitabType["Brown"] = "brown";
|
|
36332
36714
|
MultitabType["Gray"] = "gray";
|
|
36333
36715
|
})(exports.MultitabType || (exports.MultitabType = {}));
|
|
36334
|
-
var TabsContainer = function TabsContainer(_ref) {
|
|
36716
|
+
var TabsContainer$1 = function TabsContainer(_ref) {
|
|
36335
36717
|
var children = _ref.children,
|
|
36336
36718
|
onCloseButton = _ref.onCloseButton,
|
|
36337
36719
|
tabs = _ref.tabs,
|
|
@@ -36425,11 +36807,11 @@ var PartyCreate = function PartyCreate(_ref) {
|
|
|
36425
36807
|
width: "500px",
|
|
36426
36808
|
height: "300px",
|
|
36427
36809
|
cancelDrag: ".partyRows"
|
|
36428
|
-
}, React__default.createElement(Wrapper$
|
|
36810
|
+
}, React__default.createElement(Wrapper$2, null, React__default.createElement("div", {
|
|
36429
36811
|
style: {
|
|
36430
36812
|
width: '100%'
|
|
36431
36813
|
}
|
|
36432
|
-
}, React__default.createElement(Title$
|
|
36814
|
+
}, React__default.createElement(Title$a, null, "Create Party"), React__default.createElement("hr", {
|
|
36433
36815
|
className: "golden"
|
|
36434
36816
|
}))), React__default.createElement("h1", null, "Type your party name"), React__default.createElement(Input, {
|
|
36435
36817
|
placeholder: "Type party name",
|
|
@@ -36448,11 +36830,11 @@ var PartyCreate = function PartyCreate(_ref) {
|
|
|
36448
36830
|
}
|
|
36449
36831
|
}, "Cancel"))));
|
|
36450
36832
|
};
|
|
36451
|
-
var Wrapper$
|
|
36833
|
+
var Wrapper$2 = /*#__PURE__*/styled__default.div.withConfig({
|
|
36452
36834
|
displayName: "PartyCreate__Wrapper",
|
|
36453
36835
|
componentId: "sc-13brop0-0"
|
|
36454
36836
|
})(["display:flex;flex-direction:column;width:100%;"]);
|
|
36455
|
-
var Title$
|
|
36837
|
+
var Title$a = /*#__PURE__*/styled__default.h1.withConfig({
|
|
36456
36838
|
displayName: "PartyCreate__Title",
|
|
36457
36839
|
componentId: "sc-13brop0-1"
|
|
36458
36840
|
})(["font-size:0.6rem;color:", " !important;"], uiColors.yellow);
|
|
@@ -36497,11 +36879,11 @@ var PartyDashboard = function PartyDashboard(_ref) {
|
|
|
36497
36879
|
width: "800px",
|
|
36498
36880
|
height: "400px",
|
|
36499
36881
|
cancelDrag: ".partyRows"
|
|
36500
|
-
}, React__default.createElement(Wrapper$
|
|
36882
|
+
}, React__default.createElement(Wrapper$3, null, React__default.createElement("div", {
|
|
36501
36883
|
style: {
|
|
36502
36884
|
width: '100%'
|
|
36503
36885
|
}
|
|
36504
|
-
}, React__default.createElement(Title$
|
|
36886
|
+
}, React__default.createElement(Title$b, null, "Party Dashboard"), React__default.createElement(Button, {
|
|
36505
36887
|
buttonType: exports.ButtonTypes.RPGUIButton
|
|
36506
36888
|
}, "Create"), React__default.createElement("hr", {
|
|
36507
36889
|
className: "golden"
|
|
@@ -36520,7 +36902,7 @@ var PartyDashboard = function PartyDashboard(_ref) {
|
|
|
36520
36902
|
});
|
|
36521
36903
|
})));
|
|
36522
36904
|
};
|
|
36523
|
-
var Wrapper$
|
|
36905
|
+
var Wrapper$3 = /*#__PURE__*/styled__default.div.withConfig({
|
|
36524
36906
|
displayName: "PartyDashboard__Wrapper",
|
|
36525
36907
|
componentId: "sc-16cm41r-0"
|
|
36526
36908
|
})(["display:flex;flex-direction:column;width:100%;"]);
|
|
@@ -36528,7 +36910,7 @@ var RowsWrapper = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
36528
36910
|
displayName: "PartyDashboard__RowsWrapper",
|
|
36529
36911
|
componentId: "sc-16cm41r-1"
|
|
36530
36912
|
})(["overflow-y:scroll;-webkit-overflow-scrolling:touch;width:100%;height:200px;"]);
|
|
36531
|
-
var Title$
|
|
36913
|
+
var Title$b = /*#__PURE__*/styled__default.h1.withConfig({
|
|
36532
36914
|
displayName: "PartyDashboard__Title",
|
|
36533
36915
|
componentId: "sc-16cm41r-2"
|
|
36534
36916
|
})(["font-size:0.6rem;color:", " !important;"], uiColors.yellow);
|
|
@@ -36561,11 +36943,11 @@ var PartyInvite = function PartyInvite(_ref) {
|
|
|
36561
36943
|
width: "600px",
|
|
36562
36944
|
height: "400px",
|
|
36563
36945
|
cancelDrag: ".playersRows"
|
|
36564
|
-
}, React__default.createElement(Wrapper$
|
|
36946
|
+
}, React__default.createElement(Wrapper$4, null, React__default.createElement("div", {
|
|
36565
36947
|
style: {
|
|
36566
36948
|
width: '100%'
|
|
36567
36949
|
}
|
|
36568
|
-
}, React__default.createElement(Title$
|
|
36950
|
+
}, React__default.createElement(Title$c, null, "Invite for Party"), React__default.createElement("hr", {
|
|
36569
36951
|
className: "golden"
|
|
36570
36952
|
}))), React__default.createElement(RowsWrapper$1, {
|
|
36571
36953
|
className: "playersRows"
|
|
@@ -36580,11 +36962,11 @@ var PartyInvite = function PartyInvite(_ref) {
|
|
|
36580
36962
|
});
|
|
36581
36963
|
})));
|
|
36582
36964
|
};
|
|
36583
|
-
var Wrapper$
|
|
36965
|
+
var Wrapper$4 = /*#__PURE__*/styled__default.div.withConfig({
|
|
36584
36966
|
displayName: "PartyInvite__Wrapper",
|
|
36585
36967
|
componentId: "sc-eu8ggt-0"
|
|
36586
36968
|
})(["display:flex;flex-direction:column;width:100%;"]);
|
|
36587
|
-
var Title$
|
|
36969
|
+
var Title$c = /*#__PURE__*/styled__default.h1.withConfig({
|
|
36588
36970
|
displayName: "PartyInvite__Title",
|
|
36589
36971
|
componentId: "sc-eu8ggt-1"
|
|
36590
36972
|
})(["font-size:0.6rem;color:", " !important;"], uiColors.yellow);
|
|
@@ -36621,7 +37003,7 @@ var PartyManagerRow = function PartyManagerRow(_ref) {
|
|
|
36621
37003
|
}, charName, " ", isCurrentUser ? '(You)' : '', " ", isLeader ? '(Leader)' : '')), React__default.createElement(TextContainer$5, null, React__default.createElement(Ellipsis, {
|
|
36622
37004
|
maxLines: 1,
|
|
36623
37005
|
maxWidth: "300px"
|
|
36624
|
-
}, charClass)), React__default.createElement(ButtonContainer$
|
|
37006
|
+
}, charClass)), React__default.createElement(ButtonContainer$3, null, canRemove && React__default.createElement(HighlightedText, {
|
|
36625
37007
|
onPointerDown: function onPointerDown() {
|
|
36626
37008
|
return onRemovePlayer(id);
|
|
36627
37009
|
}
|
|
@@ -36639,7 +37021,7 @@ var TextContainer$5 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
36639
37021
|
displayName: "PartyManagerRows__TextContainer",
|
|
36640
37022
|
componentId: "sc-uqajew-1"
|
|
36641
37023
|
})(["color:", ";overflow:hidden;white-space:nowrap;text-overflow:ellipsis;"], uiColors.white);
|
|
36642
|
-
var ButtonContainer$
|
|
37024
|
+
var ButtonContainer$3 = /*#__PURE__*/styled__default.div.withConfig({
|
|
36643
37025
|
displayName: "PartyManagerRows__ButtonContainer",
|
|
36644
37026
|
componentId: "sc-uqajew-2"
|
|
36645
37027
|
})(["display:flex;align-items:center;gap:1rem;justify-content:flex-start;"]);
|
|
@@ -37026,7 +37408,7 @@ var QuestInfo = function QuestInfo(_ref) {
|
|
|
37026
37408
|
onPointerDown: onRightClick
|
|
37027
37409
|
}), React__default.createElement(QuestContainer, null, React__default.createElement(TitleContainer$1, {
|
|
37028
37410
|
className: "drag-handler"
|
|
37029
|
-
}, React__default.createElement(Title$
|
|
37411
|
+
}, React__default.createElement(Title$d, null, React__default.createElement(Thumbnail, {
|
|
37030
37412
|
src: quests[currentIndex].thumbnail || img$8
|
|
37031
37413
|
}), quests[currentIndex].title), React__default.createElement(QuestSplitDiv, null, React__default.createElement("hr", {
|
|
37032
37414
|
className: "golden"
|
|
@@ -37045,7 +37427,7 @@ var QuestInfo = function QuestInfo(_ref) {
|
|
|
37045
37427
|
}, button.title);
|
|
37046
37428
|
})))) : React__default.createElement(QuestsContainer, null, React__default.createElement(QuestContainer, null, React__default.createElement(TitleContainer$1, {
|
|
37047
37429
|
className: "drag-handler"
|
|
37048
|
-
}, React__default.createElement(Title$
|
|
37430
|
+
}, React__default.createElement(Title$d, null, React__default.createElement(Thumbnail, {
|
|
37049
37431
|
src: quests[0].thumbnail || img$8
|
|
37050
37432
|
}), quests[0].title), React__default.createElement(QuestSplitDiv, null, React__default.createElement("hr", {
|
|
37051
37433
|
className: "golden"
|
|
@@ -37092,7 +37474,7 @@ var TitleContainer$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
37092
37474
|
displayName: "QuestInfo__TitleContainer",
|
|
37093
37475
|
componentId: "sc-1wccpiy-6"
|
|
37094
37476
|
})(["width:100%;display:flex;flex-wrap:wrap;justify-content:flex-start;align-items:center;margin-top:1rem;"]);
|
|
37095
|
-
var Title$
|
|
37477
|
+
var Title$d = /*#__PURE__*/styled__default.h1.withConfig({
|
|
37096
37478
|
displayName: "QuestInfo__Title",
|
|
37097
37479
|
componentId: "sc-1wccpiy-7"
|
|
37098
37480
|
})(["color:white;z-index:22;font-size:", " !important;color:", " !important;"], uiFonts.size.medium, uiColors.yellow);
|
|
@@ -37620,7 +38002,7 @@ var SkillsContainer = function SkillsContainer(_ref) {
|
|
|
37620
38002
|
cancelDrag: "#skillsDiv",
|
|
37621
38003
|
scale: scale,
|
|
37622
38004
|
width: "100%"
|
|
37623
|
-
}, onCloseButton && React__default.createElement(CloseButton$
|
|
38005
|
+
}, onCloseButton && React__default.createElement(CloseButton$b, {
|
|
37624
38006
|
onPointerDown: onCloseButton
|
|
37625
38007
|
}, "X"), React__default.createElement(SkillsContainerDiv, {
|
|
37626
38008
|
id: "skillsDiv"
|
|
@@ -37655,7 +38037,7 @@ var SkillSplitDiv = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
37655
38037
|
displayName: "SkillsContainer__SkillSplitDiv",
|
|
37656
38038
|
componentId: "sc-1g0c67q-2"
|
|
37657
38039
|
})(["width:100%;font-size:11px;hr{margin:0;margin-bottom:1rem;padding:0px;}p{margin-bottom:0px;}"]);
|
|
37658
|
-
var CloseButton$
|
|
38040
|
+
var CloseButton$b = /*#__PURE__*/styled__default.div.withConfig({
|
|
37659
38041
|
displayName: "SkillsContainer__CloseButton",
|
|
37660
38042
|
componentId: "sc-1g0c67q-3"
|
|
37661
38043
|
})(["position:absolute;top:2px;right:2px;color:white;z-index:22;font-size:1.1rem;"]);
|
|
@@ -37791,7 +38173,7 @@ var SpellInfo$1 = function SpellInfo(_ref) {
|
|
|
37791
38173
|
castingType = spell.castingType,
|
|
37792
38174
|
cooldown = spell.cooldown,
|
|
37793
38175
|
maxDistanceGrid = spell.maxDistanceGrid;
|
|
37794
|
-
return React__default.createElement(Container$F, null, React__default.createElement(Header$
|
|
38176
|
+
return React__default.createElement(Container$F, null, React__default.createElement(Header$9, null, React__default.createElement("div", null, React__default.createElement(Title$e, null, name), React__default.createElement(Type$1, null, magicWords))), React__default.createElement(Statistic$1, null, React__default.createElement("div", {
|
|
37795
38177
|
className: "label"
|
|
37796
38178
|
}, "Casting Type:"), React__default.createElement("div", {
|
|
37797
38179
|
className: "value"
|
|
@@ -37821,7 +38203,7 @@ var Container$F = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
37821
38203
|
displayName: "SpellInfo__Container",
|
|
37822
38204
|
componentId: "sc-4hbw3q-0"
|
|
37823
38205
|
})(["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);
|
|
37824
|
-
var Title$
|
|
38206
|
+
var Title$e = /*#__PURE__*/styled__default.div.withConfig({
|
|
37825
38207
|
displayName: "SpellInfo__Title",
|
|
37826
38208
|
componentId: "sc-4hbw3q-1"
|
|
37827
38209
|
})(["font-size:", ";font-weight:bold;margin-bottom:0.5rem;display:flex;align-items:center;margin:0;"], uiFonts.size.medium);
|
|
@@ -37833,7 +38215,7 @@ var Description$4 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
37833
38215
|
displayName: "SpellInfo__Description",
|
|
37834
38216
|
componentId: "sc-4hbw3q-3"
|
|
37835
38217
|
})(["margin-top:1.5rem;font-size:", ";color:", ";font-style:italic;"], uiFonts.size.small, uiColors.lightGray);
|
|
37836
|
-
var Header$
|
|
38218
|
+
var Header$9 = /*#__PURE__*/styled__default.div.withConfig({
|
|
37837
38219
|
displayName: "SpellInfo__Header",
|
|
37838
38220
|
componentId: "sc-4hbw3q-4"
|
|
37839
38221
|
})(["display:flex;align-items:center;justify-content:space-between;margin-bottom:0.5rem;"]);
|
|
@@ -37845,13 +38227,13 @@ var Statistic$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
37845
38227
|
var SpellInfoDisplay = function SpellInfoDisplay(_ref) {
|
|
37846
38228
|
var spell = _ref.spell,
|
|
37847
38229
|
isMobile = _ref.isMobile;
|
|
37848
|
-
return React__default.createElement(Flex$
|
|
38230
|
+
return React__default.createElement(Flex$2, {
|
|
37849
38231
|
"$isMobile": isMobile
|
|
37850
38232
|
}, React__default.createElement(SpellInfo$1, {
|
|
37851
38233
|
spell: spell
|
|
37852
38234
|
}));
|
|
37853
38235
|
};
|
|
37854
|
-
var Flex$
|
|
38236
|
+
var Flex$2 = /*#__PURE__*/styled__default.div.withConfig({
|
|
37855
38237
|
displayName: "SpellInfoDisplay__Flex",
|
|
37856
38238
|
componentId: "sc-1htnsmm-0"
|
|
37857
38239
|
})(["display:flex;gap:0.5rem;flex-direction:", ";@media (max-width:580px){flex-direction:column-reverse;align-items:center;}"], function (_ref2) {
|
|
@@ -38058,7 +38440,7 @@ var Spell = function Spell(_ref) {
|
|
|
38058
38440
|
imgScale: IMAGE_SCALE,
|
|
38059
38441
|
containerStyle: CONTAINER_STYLE,
|
|
38060
38442
|
centered: true
|
|
38061
|
-
})), React__default.createElement(Info, null, React__default.createElement(Title$
|
|
38443
|
+
})), React__default.createElement(Info, null, React__default.createElement(Title$f, null, React__default.createElement("span", null, name), React__default.createElement("span", {
|
|
38062
38444
|
className: "spell"
|
|
38063
38445
|
}, "(", magicWords, ")")), React__default.createElement(Description$5, null, description)), React__default.createElement(Divider$1, null), React__default.createElement(Cost, null, React__default.createElement("span", null, "Mana cost:"), React__default.createElement("span", {
|
|
38064
38446
|
className: "mana"
|
|
@@ -38079,7 +38461,7 @@ var Info = /*#__PURE__*/styled__default.span.withConfig({
|
|
|
38079
38461
|
displayName: "Spell__Info",
|
|
38080
38462
|
componentId: "sc-j96fa2-2"
|
|
38081
38463
|
})(["width:0;flex:1;@media (orientation:portrait){display:none;}"]);
|
|
38082
|
-
var Title$
|
|
38464
|
+
var Title$f = /*#__PURE__*/styled__default.p.withConfig({
|
|
38083
38465
|
displayName: "Spell__Title",
|
|
38084
38466
|
componentId: "sc-j96fa2-3"
|
|
38085
38467
|
})(["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);
|
|
@@ -38144,7 +38526,7 @@ var Spellbook = function Spellbook(_ref) {
|
|
|
38144
38526
|
height: "inherit",
|
|
38145
38527
|
cancelDrag: "#spellbook-search, #shortcuts_list, .spell",
|
|
38146
38528
|
scale: scale
|
|
38147
|
-
}, React__default.createElement(Container$J, null, React__default.createElement(Title$
|
|
38529
|
+
}, React__default.createElement(Container$J, null, React__default.createElement(Title$g, null, "Learned Spells"), React__default.createElement(ShortcutsSetter, {
|
|
38148
38530
|
setSettingShortcutIndex: setSettingShortcutIndex,
|
|
38149
38531
|
settingShortcutIndex: settingShortcutIndex,
|
|
38150
38532
|
shortcuts: shortcuts,
|
|
@@ -38177,7 +38559,7 @@ var Spellbook = function Spellbook(_ref) {
|
|
|
38177
38559
|
}, spell)));
|
|
38178
38560
|
}))));
|
|
38179
38561
|
};
|
|
38180
|
-
var Title$
|
|
38562
|
+
var Title$g = /*#__PURE__*/styled__default.h1.withConfig({
|
|
38181
38563
|
displayName: "Spellbook__Title",
|
|
38182
38564
|
componentId: "sc-r02nfq-0"
|
|
38183
38565
|
})(["font-size:", " !important;margin-bottom:0 !important;"], uiFonts.size.large);
|
|
@@ -58619,7 +59001,7 @@ var CartView = function CartView(_ref2) {
|
|
|
58619
59001
|
return _ref3.apply(this, arguments);
|
|
58620
59002
|
};
|
|
58621
59003
|
}();
|
|
58622
|
-
return React__default.createElement(Container$K, null, React__default.createElement(Header$
|
|
59004
|
+
return React__default.createElement(Container$K, null, React__default.createElement(Header$a, null, React__default.createElement(Title$h, null, "Shopping Cart"), React__default.createElement(CloseButton$c, {
|
|
58623
59005
|
onPointerDown: onClose
|
|
58624
59006
|
}, React__default.createElement(fa.FaTimes, null))), React__default.createElement(CartItems, null, cartItems.length === 0 ? React__default.createElement(EmptyCart, null, "Your cart is empty") : cartItems.map(function (cartItem) {
|
|
58625
59007
|
var _cartItem$metadata, _cartItem$metadata2;
|
|
@@ -58629,7 +59011,7 @@ var CartView = function CartView(_ref2) {
|
|
|
58629
59011
|
};
|
|
58630
59012
|
return React__default.createElement(CartItemRow, {
|
|
58631
59013
|
key: cartItem.item.key
|
|
58632
|
-
}, React__default.createElement(ItemIconContainer
|
|
59014
|
+
}, React__default.createElement(ItemIconContainer, null, React__default.createElement(SpriteFromAtlas, {
|
|
58633
59015
|
atlasJSON: cartItem.item.metadataType === shared.MetadataType.CharacterSkin ? characterAtlasJSON : atlasJSON,
|
|
58634
59016
|
atlasIMG: cartItem.item.metadataType === shared.MetadataType.CharacterSkin ? img$a : atlasIMG,
|
|
58635
59017
|
spriteKey: cartItem.item.metadataType === shared.MetadataType.CharacterSkin && (_cartItem$metadata = cartItem.metadata) != null && _cartItem$metadata.selectedSkinTextureKey ? getSpriteKey(cartItem.metadata.selectedSkinTextureKey) : cartItem.item.texturePath,
|
|
@@ -58637,7 +59019,7 @@ var CartView = function CartView(_ref2) {
|
|
|
58637
59019
|
height: 32,
|
|
58638
59020
|
imgScale: 2,
|
|
58639
59021
|
centered: true
|
|
58640
|
-
})), React__default.createElement(ItemDetails, null, React__default.createElement(ItemName, null, cartItem.item.name), ((_cartItem$metadata2 = cartItem.metadata) == null ? void 0 : _cartItem$metadata2.inputValue) && React__default.createElement(CartMeta, null, cartItem.metadata.inputValue), React__default.createElement(ItemInfo$1, null, React__default.createElement("span", null, "$", formatPrice(cartItem.item.price)), React__default.createElement("span", null, "\xD7"), React__default.createElement("span", null, cartItem.quantity), React__default.createElement("span", null, "="), React__default.createElement("span", null, "$", formatPrice(cartItem.item.price * cartItem.quantity))), cartItem.metadata && cartItem.item.metadataType && React__default.createElement(MetadataDisplay, {
|
|
59022
|
+
})), React__default.createElement(ItemDetails$1, null, React__default.createElement(ItemName$1, null, cartItem.item.name), ((_cartItem$metadata2 = cartItem.metadata) == null ? void 0 : _cartItem$metadata2.inputValue) && React__default.createElement(CartMeta, null, cartItem.metadata.inputValue), React__default.createElement(ItemInfo$1, null, React__default.createElement("span", null, "$", formatPrice(cartItem.item.price)), React__default.createElement("span", null, "\xD7"), React__default.createElement("span", null, cartItem.quantity), React__default.createElement("span", null, "="), React__default.createElement("span", null, "$", formatPrice(cartItem.item.price * cartItem.quantity))), cartItem.metadata && cartItem.item.metadataType && React__default.createElement(MetadataDisplay, {
|
|
58641
59023
|
type: cartItem.item.metadataType,
|
|
58642
59024
|
metadata: cartItem.metadata
|
|
58643
59025
|
})), React__default.createElement(CTAButton, {
|
|
@@ -58659,15 +59041,15 @@ var Container$K = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
58659
59041
|
displayName: "CartView__Container",
|
|
58660
59042
|
componentId: "sc-ydtyl1-0"
|
|
58661
59043
|
})(["display:flex;flex-direction:column;width:100%;height:100%;gap:1.5rem;padding:1.5rem;"]);
|
|
58662
|
-
var Header$
|
|
59044
|
+
var Header$a = /*#__PURE__*/styled__default.div.withConfig({
|
|
58663
59045
|
displayName: "CartView__Header",
|
|
58664
59046
|
componentId: "sc-ydtyl1-1"
|
|
58665
59047
|
})(["display:flex;justify-content:space-between;align-items:center;"]);
|
|
58666
|
-
var Title$
|
|
59048
|
+
var Title$h = /*#__PURE__*/styled__default.h2.withConfig({
|
|
58667
59049
|
displayName: "CartView__Title",
|
|
58668
59050
|
componentId: "sc-ydtyl1-2"
|
|
58669
59051
|
})(["font-family:'Press Start 2P',cursive;font-size:1rem;color:#ffffff;margin:0;"]);
|
|
58670
|
-
var CloseButton$
|
|
59052
|
+
var CloseButton$c = /*#__PURE__*/styled__default.div.withConfig({
|
|
58671
59053
|
displayName: "CartView__CloseButton",
|
|
58672
59054
|
componentId: "sc-ydtyl1-3"
|
|
58673
59055
|
})(["padding:0.5rem;min-width:unset;width:42px;height:42px;display:flex;font-size:1.5rem;align-items:center;color:white;justify-content:center;"]);
|
|
@@ -58683,15 +59065,15 @@ var CartItemRow = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
58683
59065
|
displayName: "CartView__CartItemRow",
|
|
58684
59066
|
componentId: "sc-ydtyl1-6"
|
|
58685
59067
|
})(["display:flex;align-items:center;gap:1rem;padding:1rem;background:rgba(0,0,0,0.2);border-radius:4px;"]);
|
|
58686
|
-
var ItemIconContainer
|
|
59068
|
+
var ItemIconContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
58687
59069
|
displayName: "CartView__ItemIconContainer",
|
|
58688
59070
|
componentId: "sc-ydtyl1-7"
|
|
58689
59071
|
})(["width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:4px;padding:4px;"]);
|
|
58690
|
-
var ItemDetails = /*#__PURE__*/styled__default.div.withConfig({
|
|
59072
|
+
var ItemDetails$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
58691
59073
|
displayName: "CartView__ItemDetails",
|
|
58692
59074
|
componentId: "sc-ydtyl1-8"
|
|
58693
59075
|
})(["flex:1;display:flex;flex-direction:column;gap:0.5rem;"]);
|
|
58694
|
-
var ItemName = /*#__PURE__*/styled__default.div.withConfig({
|
|
59076
|
+
var ItemName$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
58695
59077
|
displayName: "CartView__ItemName",
|
|
58696
59078
|
componentId: "sc-ydtyl1-9"
|
|
58697
59079
|
})(["font-family:'Press Start 2P',cursive;font-size:0.875rem;color:#ffffff;"]);
|
|
@@ -59133,7 +59515,7 @@ var StoreCharacterSkinRow = function StoreCharacterSkinRow(_ref) {
|
|
|
59133
59515
|
};
|
|
59134
59516
|
return React__default.createElement(ItemWrapper, {
|
|
59135
59517
|
"$isHighlighted": ((_item$store = item.store) == null ? void 0 : _item$store.isHighlighted) || false
|
|
59136
|
-
}, React__default.createElement(ItemIconContainer$
|
|
59518
|
+
}, React__default.createElement(ItemIconContainer$1, null, entityAtlasJSON && entityAtlasIMG && currentCharacter ? React__default.createElement(SpriteFromAtlas, {
|
|
59137
59519
|
atlasJSON: entityAtlasJSON,
|
|
59138
59520
|
atlasIMG: entityAtlasIMG,
|
|
59139
59521
|
spriteKey: getSpriteKey(currentCharacter.textureKey),
|
|
@@ -59149,7 +59531,7 @@ var StoreCharacterSkinRow = function StoreCharacterSkinRow(_ref) {
|
|
|
59149
59531
|
height: 32,
|
|
59150
59532
|
imgScale: 2,
|
|
59151
59533
|
centered: true
|
|
59152
|
-
}) : React__default.createElement(DefaultIcon, null, "\uD83D\uDC64")), React__default.createElement(ItemDetails$
|
|
59534
|
+
}) : React__default.createElement(DefaultIcon, null, "\uD83D\uDC64")), React__default.createElement(ItemDetails$2, null, React__default.createElement(Header$b, null, React__default.createElement(ItemName$2, null, item.name)), availableCharacters.length > 0 && currentCharacter && React__default.createElement(SelectedSkinNav, null, React__default.createElement(SelectedSkin, null, "Selected:"), React__default.createElement(SkinNavArrow, {
|
|
59153
59535
|
direction: "left",
|
|
59154
59536
|
onPointerDown: handlePreviousSkin,
|
|
59155
59537
|
size: 24
|
|
@@ -59172,15 +59554,15 @@ var ItemWrapper = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
59172
59554
|
}, function (props) {
|
|
59173
59555
|
return props.$isHighlighted ? '3px solid #ffd700' : '3px solid transparent';
|
|
59174
59556
|
});
|
|
59175
|
-
var ItemIconContainer$
|
|
59557
|
+
var ItemIconContainer$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
59176
59558
|
displayName: "StoreCharacterSkinRow__ItemIconContainer",
|
|
59177
59559
|
componentId: "sc-81xqsx-1"
|
|
59178
59560
|
})(["width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:4px;padding:4px;"]);
|
|
59179
|
-
var ItemDetails$
|
|
59561
|
+
var ItemDetails$2 = /*#__PURE__*/styled__default.div.withConfig({
|
|
59180
59562
|
displayName: "StoreCharacterSkinRow__ItemDetails",
|
|
59181
59563
|
componentId: "sc-81xqsx-2"
|
|
59182
59564
|
})(["flex:1;display:flex;flex-direction:column;gap:0.25rem;"]);
|
|
59183
|
-
var ItemName$
|
|
59565
|
+
var ItemName$2 = /*#__PURE__*/styled__default.div.withConfig({
|
|
59184
59566
|
displayName: "StoreCharacterSkinRow__ItemName",
|
|
59185
59567
|
componentId: "sc-81xqsx-3"
|
|
59186
59568
|
})(["font-family:'Press Start 2P',cursive;font-size:0.75rem;color:#ffffff;"]);
|
|
@@ -59201,7 +59583,7 @@ var SkinNavArrow = /*#__PURE__*/styled__default(SelectArrow).withConfig({
|
|
|
59201
59583
|
displayName: "StoreCharacterSkinRow__SkinNavArrow",
|
|
59202
59584
|
componentId: "sc-81xqsx-7"
|
|
59203
59585
|
})(["position:static;"]);
|
|
59204
|
-
var Header$
|
|
59586
|
+
var Header$b = /*#__PURE__*/styled__default.div.withConfig({
|
|
59205
59587
|
displayName: "StoreCharacterSkinRow__Header",
|
|
59206
59588
|
componentId: "sc-81xqsx-8"
|
|
59207
59589
|
})(["display:flex;align-items:center;gap:0.5rem;"]);
|
|
@@ -59295,7 +59677,7 @@ var StoreItemRow = function StoreItemRow(_ref) {
|
|
|
59295
59677
|
};
|
|
59296
59678
|
return React__default.createElement(ItemWrapper$1, {
|
|
59297
59679
|
"$isHighlighted": ((_item$store = item.store) == null ? void 0 : _item$store.isHighlighted) || false
|
|
59298
|
-
}, React__default.createElement(ItemIconContainer$
|
|
59680
|
+
}, React__default.createElement(ItemIconContainer$2, null, React__default.createElement(SpriteFromAtlas, {
|
|
59299
59681
|
atlasJSON: atlasJSON,
|
|
59300
59682
|
atlasIMG: atlasIMG,
|
|
59301
59683
|
spriteKey: item.texturePath,
|
|
@@ -59303,7 +59685,7 @@ var StoreItemRow = function StoreItemRow(_ref) {
|
|
|
59303
59685
|
height: 32,
|
|
59304
59686
|
imgScale: 2,
|
|
59305
59687
|
centered: true
|
|
59306
|
-
})), React__default.createElement(ItemDetails$
|
|
59688
|
+
})), React__default.createElement(ItemDetails$3, null, React__default.createElement(ItemName$3, null, item.name), React__default.createElement(ItemPrice$1, null, "$", item.price, item.dcPrice ? " \xB7 " + item.dcPrice.toLocaleString() + " DC" : ''), React__default.createElement(ItemDescription, null, item.description)), React__default.createElement(Controls$1, null, showTextInput ? React__default.createElement(TextInput, {
|
|
59307
59689
|
type: "text",
|
|
59308
59690
|
value: textInputValue,
|
|
59309
59691
|
placeholder: textInputPlaceholder,
|
|
@@ -59342,15 +59724,15 @@ var ItemWrapper$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
59342
59724
|
}, function (props) {
|
|
59343
59725
|
return props.$isHighlighted ? '3px solid #ffd700' : '3px solid transparent';
|
|
59344
59726
|
});
|
|
59345
|
-
var ItemIconContainer$
|
|
59727
|
+
var ItemIconContainer$2 = /*#__PURE__*/styled__default.div.withConfig({
|
|
59346
59728
|
displayName: "StoreItemRow__ItemIconContainer",
|
|
59347
59729
|
componentId: "sc-ptotuo-1"
|
|
59348
59730
|
})(["width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:4px;padding:4px;"]);
|
|
59349
|
-
var ItemDetails$
|
|
59731
|
+
var ItemDetails$3 = /*#__PURE__*/styled__default.div.withConfig({
|
|
59350
59732
|
displayName: "StoreItemRow__ItemDetails",
|
|
59351
59733
|
componentId: "sc-ptotuo-2"
|
|
59352
59734
|
})(["flex:1;display:flex;flex-direction:column;gap:0.25rem;"]);
|
|
59353
|
-
var ItemName$
|
|
59735
|
+
var ItemName$3 = /*#__PURE__*/styled__default.div.withConfig({
|
|
59354
59736
|
displayName: "StoreItemRow__ItemName",
|
|
59355
59737
|
componentId: "sc-ptotuo-3"
|
|
59356
59738
|
})(["font-family:'Press Start 2P',cursive;font-size:0.75rem;color:#ffffff;"]);
|
|
@@ -59622,12 +60004,12 @@ var StoreItemDetails = function StoreItemDetails(_ref) {
|
|
|
59622
60004
|
if (typeof imageUrl === 'string') return imageUrl;
|
|
59623
60005
|
return imageUrl["default"] || imageUrl.src;
|
|
59624
60006
|
};
|
|
59625
|
-
return React__default.createElement(Container$M, null, React__default.createElement(Header$
|
|
60007
|
+
return React__default.createElement(Container$M, null, React__default.createElement(Header$c, null, React__default.createElement(BackButton, {
|
|
59626
60008
|
onClick: onBack
|
|
59627
60009
|
}, React__default.createElement(fa.FaArrowLeft, null), React__default.createElement("span", null, "Back"))), React__default.createElement(Content$5, null, React__default.createElement(DetailsGrid, null, React__default.createElement(ItemIcon, null, React__default.createElement("img", {
|
|
59628
60010
|
src: getImageSrc(),
|
|
59629
60011
|
alt: item.name
|
|
59630
|
-
})), React__default.createElement(ItemInfo$2, null, React__default.createElement(ItemName$
|
|
60012
|
+
})), React__default.createElement(ItemInfo$2, null, React__default.createElement(ItemName$4, null, item.name), React__default.createElement(ItemPrice$2, null, "$", 'priceUSD' in item ? item.priceUSD : item.price, item.dcPrice ? " \xB7 " + item.dcPrice.toLocaleString() + " DC" : ''), React__default.createElement(Description$6, null, item.description))), React__default.createElement(Actions, null, React__default.createElement(CTAButton, {
|
|
59631
60013
|
icon: React__default.createElement(fa.FaCartPlus, null),
|
|
59632
60014
|
label: "Add to Cart",
|
|
59633
60015
|
onClick: function onClick() {
|
|
@@ -59640,7 +60022,7 @@ var Container$M = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
59640
60022
|
displayName: "StoreItemDetails__Container",
|
|
59641
60023
|
componentId: "sc-k3ho5z-0"
|
|
59642
60024
|
})(["display:flex;flex-direction:column;gap:1.5rem;padding:1.5rem;height:100%;"]);
|
|
59643
|
-
var Header$
|
|
60025
|
+
var Header$c = /*#__PURE__*/styled__default.div.withConfig({
|
|
59644
60026
|
displayName: "StoreItemDetails__Header",
|
|
59645
60027
|
componentId: "sc-k3ho5z-1"
|
|
59646
60028
|
})(["display:flex;align-items:center;gap:1rem;"]);
|
|
@@ -59664,7 +60046,7 @@ var ItemInfo$2 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
59664
60046
|
displayName: "StoreItemDetails__ItemInfo",
|
|
59665
60047
|
componentId: "sc-k3ho5z-6"
|
|
59666
60048
|
})(["display:flex;flex-direction:column;gap:1rem;"]);
|
|
59667
|
-
var ItemName$
|
|
60049
|
+
var ItemName$4 = /*#__PURE__*/styled__default.h2.withConfig({
|
|
59668
60050
|
displayName: "StoreItemDetails__ItemName",
|
|
59669
60051
|
componentId: "sc-k3ho5z-7"
|
|
59670
60052
|
})(["margin:0;font-family:'Press Start 2P',cursive;font-size:1.25rem;color:#fef08a;"]);
|
|
@@ -60008,7 +60390,7 @@ var PaymentMethodModal = function PaymentMethodModal(_ref) {
|
|
|
60008
60390
|
onClick: stopPropagation,
|
|
60009
60391
|
onTouchStart: stopPropagation,
|
|
60010
60392
|
onPointerDown: stopPropagation
|
|
60011
|
-
}, React__default.createElement(Header$
|
|
60393
|
+
}, React__default.createElement(Header$d, null, React__default.createElement(Title$i, null, "How would you like to pay?"), React__default.createElement(CloseButton$d, {
|
|
60012
60394
|
onPointerDown: onClose,
|
|
60013
60395
|
"aria-label": "Close"
|
|
60014
60396
|
}, React__default.createElement(fa.FaTimes, null))), React__default.createElement(Options$1, null, React__default.createElement(RadioOption$1, {
|
|
@@ -60018,14 +60400,14 @@ var PaymentMethodModal = function PaymentMethodModal(_ref) {
|
|
|
60018
60400
|
}
|
|
60019
60401
|
}, React__default.createElement(RadioCircle$1, {
|
|
60020
60402
|
"$selected": selected === 'card'
|
|
60021
|
-
}), React__default.createElement(OptionText$1, null, React__default.createElement(OptionLabel$
|
|
60403
|
+
}), React__default.createElement(OptionText$1, null, React__default.createElement(OptionLabel$2, null, "Credit Card"), React__default.createElement(OptionSub$1, null, "Stripe secure checkout"))), React__default.createElement(RadioOption$1, {
|
|
60022
60404
|
"$selected": selected === 'dc',
|
|
60023
60405
|
onPointerDown: function onPointerDown() {
|
|
60024
60406
|
return setSelected('dc');
|
|
60025
60407
|
}
|
|
60026
60408
|
}, React__default.createElement(RadioCircle$1, {
|
|
60027
60409
|
"$selected": selected === 'dc'
|
|
60028
|
-
}), React__default.createElement(OptionText$1, null, React__default.createElement(OptionLabel$
|
|
60410
|
+
}), React__default.createElement(OptionText$1, null, React__default.createElement(OptionLabel$2, null, "Definya Coin"), React__default.createElement(OptionSub$1, null, dcBalance.toLocaleString(), " DC available")))), React__default.createElement(ConfirmRow$1, null, React__default.createElement(Button, {
|
|
60029
60411
|
buttonType: exports.ButtonTypes.RPGUIButton,
|
|
60030
60412
|
onPointerDown: handleConfirm
|
|
60031
60413
|
}, "Confirm")))));
|
|
@@ -60042,15 +60424,15 @@ var ModalContent$3 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
60042
60424
|
displayName: "PaymentMethodModal__ModalContent",
|
|
60043
60425
|
componentId: "sc-1dxy6lr-2"
|
|
60044
60426
|
})(["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;}}"]);
|
|
60045
|
-
var Header$
|
|
60427
|
+
var Header$d = /*#__PURE__*/styled__default.div.withConfig({
|
|
60046
60428
|
displayName: "PaymentMethodModal__Header",
|
|
60047
60429
|
componentId: "sc-1dxy6lr-3"
|
|
60048
60430
|
})(["display:flex;align-items:center;justify-content:space-between;"]);
|
|
60049
|
-
var Title$
|
|
60431
|
+
var Title$i = /*#__PURE__*/styled__default.h3.withConfig({
|
|
60050
60432
|
displayName: "PaymentMethodModal__Title",
|
|
60051
60433
|
componentId: "sc-1dxy6lr-4"
|
|
60052
60434
|
})(["margin:0;font-family:'Press Start 2P',cursive;font-size:0.7rem;color:#fef08a;"]);
|
|
60053
|
-
var CloseButton$
|
|
60435
|
+
var CloseButton$d = /*#__PURE__*/styled__default.button.withConfig({
|
|
60054
60436
|
displayName: "PaymentMethodModal__CloseButton",
|
|
60055
60437
|
componentId: "sc-1dxy6lr-5"
|
|
60056
60438
|
})(["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;}"]);
|
|
@@ -60082,7 +60464,7 @@ var OptionText$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
60082
60464
|
displayName: "PaymentMethodModal__OptionText",
|
|
60083
60465
|
componentId: "sc-1dxy6lr-9"
|
|
60084
60466
|
})(["display:flex;flex-direction:column;gap:3px;"]);
|
|
60085
|
-
var OptionLabel$
|
|
60467
|
+
var OptionLabel$2 = /*#__PURE__*/styled__default.span.withConfig({
|
|
60086
60468
|
displayName: "PaymentMethodModal__OptionLabel",
|
|
60087
60469
|
componentId: "sc-1dxy6lr-10"
|
|
60088
60470
|
})(["font-family:'Press Start 2P',cursive;font-size:0.65rem;color:#ffffff;"]);
|
|
@@ -60129,7 +60511,7 @@ var TimeWidget = function TimeWidget(_ref) {
|
|
|
60129
60511
|
return React__default.createElement(Draggable, {
|
|
60130
60512
|
scale: scale,
|
|
60131
60513
|
cancel: ".time-widget-close,.time-widget-container,.time-widget-container *"
|
|
60132
|
-
}, React__default.createElement(WidgetContainer, null, React__default.createElement(CloseButton$
|
|
60514
|
+
}, React__default.createElement(WidgetContainer, null, React__default.createElement(CloseButton$e, {
|
|
60133
60515
|
onPointerDown: onClose,
|
|
60134
60516
|
className: "time-widget-close"
|
|
60135
60517
|
}, "X"), React__default.createElement(DayNightContainer, {
|
|
@@ -60146,7 +60528,7 @@ var Time = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
60146
60528
|
displayName: "TimeWidget__Time",
|
|
60147
60529
|
componentId: "sc-1ja236h-1"
|
|
60148
60530
|
})(["top:0.75rem;right:0.5rem;position:absolute;font-size:", ";color:white;"], uiFonts.size.small);
|
|
60149
|
-
var CloseButton$
|
|
60531
|
+
var CloseButton$e = /*#__PURE__*/styled__default.p.withConfig({
|
|
60150
60532
|
displayName: "TimeWidget__CloseButton",
|
|
60151
60533
|
componentId: "sc-1ja236h-2"
|
|
60152
60534
|
})(["position:absolute;top:-0.5rem;margin:0;right:-0.2rem;font-size:", " !important;z-index:1;"], uiFonts.size.small);
|
|
@@ -60255,7 +60637,7 @@ var TradingItemRow = function TradingItemRow(_ref) {
|
|
|
60255
60637
|
}
|
|
60256
60638
|
return null;
|
|
60257
60639
|
};
|
|
60258
|
-
return React__default.createElement(ItemWrapper$2, null, React__default.createElement(ItemIconContainer$
|
|
60640
|
+
return React__default.createElement(ItemWrapper$2, null, React__default.createElement(ItemIconContainer$3, null, React__default.createElement(SpriteContainer$5, null, React__default.createElement(ItemInfoWrapper, {
|
|
60259
60641
|
atlasIMG: atlasIMG,
|
|
60260
60642
|
atlasJSON: atlasJSON,
|
|
60261
60643
|
equipmentSet: equipmentSet,
|
|
@@ -60323,7 +60705,7 @@ var ItemNameContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
60323
60705
|
displayName: "TradingItemRow__ItemNameContainer",
|
|
60324
60706
|
componentId: "sc-mja0b5-2"
|
|
60325
60707
|
})(["flex:60%;display:flex;align-items:center;"]);
|
|
60326
|
-
var ItemIconContainer$
|
|
60708
|
+
var ItemIconContainer$3 = /*#__PURE__*/styled__default.div.withConfig({
|
|
60327
60709
|
displayName: "TradingItemRow__ItemIconContainer",
|
|
60328
60710
|
componentId: "sc-mja0b5-3"
|
|
60329
60711
|
})(["display:flex;justify-content:flex-start;align-items:center;flex:0 0 40px;"]);
|
|
@@ -60425,7 +60807,7 @@ var TradingMenu = function TradingMenu(_ref) {
|
|
|
60425
60807
|
width: "500px",
|
|
60426
60808
|
cancelDrag: "#TraderContainer",
|
|
60427
60809
|
scale: scale
|
|
60428
|
-
}, React__default.createElement(Container$O, null, React__default.createElement(Title$
|
|
60810
|
+
}, React__default.createElement(Container$O, null, React__default.createElement(Title$j, null, type.charAt(0).toUpperCase() + type.slice(1), " Menu"), React__default.createElement("hr", {
|
|
60429
60811
|
className: "golden"
|
|
60430
60812
|
}), React__default.createElement(ScrollWrapper, {
|
|
60431
60813
|
id: "TraderContainer"
|
|
@@ -60457,7 +60839,7 @@ var Container$O = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
60457
60839
|
displayName: "TradingMenu__Container",
|
|
60458
60840
|
componentId: "sc-1wjsz1l-0"
|
|
60459
60841
|
})(["width:100%;"]);
|
|
60460
|
-
var Title$
|
|
60842
|
+
var Title$j = /*#__PURE__*/styled__default.h1.withConfig({
|
|
60461
60843
|
displayName: "TradingMenu__Title",
|
|
60462
60844
|
componentId: "sc-1wjsz1l-1"
|
|
60463
60845
|
})(["font-size:0.7rem !important;color:yellow !important;text-align:center;"]);
|
|
@@ -60662,6 +61044,7 @@ exports.EquipmentSlotSpriteByType = EquipmentSlotSpriteByType;
|
|
|
60662
61044
|
exports.ErrorBoundary = ErrorBoundary;
|
|
60663
61045
|
exports.FriendList = FriendList;
|
|
60664
61046
|
exports.GemSelector = GemSelector;
|
|
61047
|
+
exports.GroupedMarketplaceRow = GroupedMarketplaceRow;
|
|
60665
61048
|
exports.HistoryDialog = HistoryDialog;
|
|
60666
61049
|
exports.ImageCarousel = ImageCarousel;
|
|
60667
61050
|
exports.InformationCenter = InformationCenter;
|
|
@@ -60680,6 +61063,7 @@ exports.LoginStreakPanel = LoginStreakPanel;
|
|
|
60680
61063
|
exports.Marketplace = Marketplace;
|
|
60681
61064
|
exports.MarketplaceBuyModal = MarketplaceBuyModal;
|
|
60682
61065
|
exports.MarketplaceRows = MarketplaceRows;
|
|
61066
|
+
exports.MarketplaceSettingsPanel = MarketplaceSettingsPanel;
|
|
60683
61067
|
exports.MetadataCollector = MetadataCollector;
|
|
60684
61068
|
exports.NPCDialog = NPCDialog;
|
|
60685
61069
|
exports.NPCMultiDialog = NPCMultiDialog;
|
|
@@ -60715,7 +61099,7 @@ exports.Table = Table;
|
|
|
60715
61099
|
exports.TableCell = TableCell;
|
|
60716
61100
|
exports.TableHeader = TableHeader;
|
|
60717
61101
|
exports.TableRow = TableRow;
|
|
60718
|
-
exports.TabsContainer = TabsContainer;
|
|
61102
|
+
exports.TabsContainer = TabsContainer$1;
|
|
60719
61103
|
exports.TextArea = TextArea;
|
|
60720
61104
|
exports.TimeWidget = TimeWidget;
|
|
60721
61105
|
exports.Tooltip = Tooltip;
|