@rpg-engine/long-bow 0.8.189 → 0.8.191
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -0
- package/dist/long-bow.cjs.development.js +174 -188
- 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 +175 -190
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Marketplace/Marketplace.tsx +1 -21
- package/src/index.tsx +1 -0
package/dist/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export * from './components/Chat/Chat';
|
|
|
7
7
|
export * from './components/Chatdeprecated/ChatDeprecated';
|
|
8
8
|
export * from './components/ChatRevamp/ChatRevamp';
|
|
9
9
|
export * from './components/CheckButton';
|
|
10
|
+
export * from './components/ConfirmModal';
|
|
10
11
|
export * from './components/CheckItem';
|
|
11
12
|
export * from './components/CircularController/CircularController';
|
|
12
13
|
export * from './components/CraftBook/CraftBook';
|
|
@@ -16,9 +16,9 @@ var reactErrorBoundary = require('react-error-boundary');
|
|
|
16
16
|
var fa = require('react-icons/fa');
|
|
17
17
|
var rx = require('react-icons/rx');
|
|
18
18
|
var io = require('react-icons/io');
|
|
19
|
-
var Draggable = _interopDefault(require('react-draggable'));
|
|
20
19
|
var ReactDOM = require('react-dom');
|
|
21
20
|
var ReactDOM__default = _interopDefault(ReactDOM);
|
|
21
|
+
var Draggable = _interopDefault(require('react-draggable'));
|
|
22
22
|
var lodash = require('lodash');
|
|
23
23
|
var mobxReactLite = require('mobx-react-lite');
|
|
24
24
|
var ai = require('react-icons/ai');
|
|
@@ -36035,6 +36035,105 @@ var CheckButton = function CheckButton(_ref) {
|
|
|
36035
36035
|
}));
|
|
36036
36036
|
};
|
|
36037
36037
|
|
|
36038
|
+
var modalRoot = /*#__PURE__*/document.getElementById('modal-root');
|
|
36039
|
+
var ModalPortal = function ModalPortal(_ref) {
|
|
36040
|
+
var children = _ref.children;
|
|
36041
|
+
return ReactDOM__default.createPortal(React__default.createElement(Container$9, {
|
|
36042
|
+
className: "rpgui-content"
|
|
36043
|
+
}, children), modalRoot);
|
|
36044
|
+
};
|
|
36045
|
+
var Container$9 = /*#__PURE__*/styled__default.div.withConfig({
|
|
36046
|
+
displayName: "ModalPortal__Container",
|
|
36047
|
+
componentId: "sc-dgmp04-0"
|
|
36048
|
+
})(["position:static !important;"]);
|
|
36049
|
+
|
|
36050
|
+
// Global style to prevent body scrolling when modal is open
|
|
36051
|
+
var GlobalStyle = /*#__PURE__*/styled.createGlobalStyle(["body{overflow:hidden;width:100%;height:100%;}"]);
|
|
36052
|
+
var ConfirmModal = function ConfirmModal(_ref) {
|
|
36053
|
+
var onConfirm = _ref.onConfirm,
|
|
36054
|
+
onClose = _ref.onClose,
|
|
36055
|
+
_ref$message = _ref.message,
|
|
36056
|
+
message = _ref$message === void 0 ? 'Are you sure?' : _ref$message;
|
|
36057
|
+
var handleConfirm = React.useCallback(function (e) {
|
|
36058
|
+
e.preventDefault();
|
|
36059
|
+
e.stopPropagation();
|
|
36060
|
+
onConfirm();
|
|
36061
|
+
}, [onConfirm]);
|
|
36062
|
+
var handleClose = React.useCallback(function (e) {
|
|
36063
|
+
e.preventDefault();
|
|
36064
|
+
e.stopPropagation();
|
|
36065
|
+
onClose();
|
|
36066
|
+
}, [onClose]);
|
|
36067
|
+
// Fix type issues by separating event handlers for different event types
|
|
36068
|
+
var stopPropagationClick = React.useCallback(function (e) {
|
|
36069
|
+
e.stopPropagation();
|
|
36070
|
+
}, []);
|
|
36071
|
+
var stopPropagationTouch = React.useCallback(function (e) {
|
|
36072
|
+
e.stopPropagation();
|
|
36073
|
+
}, []);
|
|
36074
|
+
var stopPropagationPointer = React.useCallback(function (e) {
|
|
36075
|
+
e.stopPropagation();
|
|
36076
|
+
}, []);
|
|
36077
|
+
return React__default.createElement(ModalPortal, null, React__default.createElement(GlobalStyle, null), React__default.createElement(Overlay, {
|
|
36078
|
+
onPointerDown: handleClose
|
|
36079
|
+
}), React__default.createElement(ModalContainer, null, React__default.createElement(ModalContent, {
|
|
36080
|
+
onClick: stopPropagationClick,
|
|
36081
|
+
onTouchStart: stopPropagationTouch,
|
|
36082
|
+
onTouchEnd: stopPropagationTouch,
|
|
36083
|
+
onTouchMove: stopPropagationTouch,
|
|
36084
|
+
onPointerDown: stopPropagationPointer
|
|
36085
|
+
}, React__default.createElement(Header$1, null, React__default.createElement(Title, null, "Confirm"), React__default.createElement(CloseButton$3, {
|
|
36086
|
+
onPointerDown: handleClose,
|
|
36087
|
+
"aria-label": "Close"
|
|
36088
|
+
}, 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$1, null, React__default.createElement(CancelButtonWrapper, null, React__default.createElement(Button, {
|
|
36089
|
+
buttonType: exports.ButtonTypes.RPGUIButton,
|
|
36090
|
+
onPointerDown: handleClose
|
|
36091
|
+
}, "No")), React__default.createElement(Button, {
|
|
36092
|
+
buttonType: exports.ButtonTypes.RPGUIButton,
|
|
36093
|
+
onPointerDown: handleConfirm
|
|
36094
|
+
}, "Yes")))));
|
|
36095
|
+
};
|
|
36096
|
+
var Overlay = /*#__PURE__*/styled__default.div.withConfig({
|
|
36097
|
+
displayName: "ConfirmModal__Overlay",
|
|
36098
|
+
componentId: "sc-11qkyu1-0"
|
|
36099
|
+
})(["position:fixed;top:0;left:0;right:0;bottom:0;background-color:rgba(0,0,0,0.6);z-index:1000;animation:fadeIn 0.2s ease-out;cursor:pointer;touch-action:none;@keyframes fadeIn{from{opacity:0;}to{opacity:1;}}"]);
|
|
36100
|
+
var ModalContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
36101
|
+
displayName: "ConfirmModal__ModalContainer",
|
|
36102
|
+
componentId: "sc-11qkyu1-1"
|
|
36103
|
+
})(["position:fixed;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;z-index:1001;pointer-events:none;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);"]);
|
|
36104
|
+
var ModalContent = /*#__PURE__*/styled__default.div.withConfig({
|
|
36105
|
+
displayName: "ConfirmModal__ModalContent",
|
|
36106
|
+
componentId: "sc-11qkyu1-2"
|
|
36107
|
+
})(["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%;}"]);
|
|
36108
|
+
var Header$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
36109
|
+
displayName: "ConfirmModal__Header",
|
|
36110
|
+
componentId: "sc-11qkyu1-3"
|
|
36111
|
+
})(["display:flex;align-items:center;justify-content:space-between;"]);
|
|
36112
|
+
var Title = /*#__PURE__*/styled__default.h3.withConfig({
|
|
36113
|
+
displayName: "ConfirmModal__Title",
|
|
36114
|
+
componentId: "sc-11qkyu1-4"
|
|
36115
|
+
})(["margin:0;font-family:'Press Start 2P',cursive;font-size:0.7rem;color:#fef08a;"]);
|
|
36116
|
+
var CloseButton$3 = /*#__PURE__*/styled__default.button.withConfig({
|
|
36117
|
+
displayName: "ConfirmModal__CloseButton",
|
|
36118
|
+
componentId: "sc-11qkyu1-5"
|
|
36119
|
+
})(["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;}"]);
|
|
36120
|
+
var MessageContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
36121
|
+
displayName: "ConfirmModal__MessageContainer",
|
|
36122
|
+
componentId: "sc-11qkyu1-6"
|
|
36123
|
+
})(["text-align:center;"]);
|
|
36124
|
+
var Message$1 = /*#__PURE__*/styled__default.p.withConfig({
|
|
36125
|
+
displayName: "ConfirmModal__Message",
|
|
36126
|
+
componentId: "sc-11qkyu1-7"
|
|
36127
|
+
})(["margin:0;font-family:'Press Start 2P',cursive;font-size:0.6rem;color:rgba(255,255,255,0.85);line-height:1.8;"]);
|
|
36128
|
+
var ButtonsContainer$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
36129
|
+
displayName: "ConfirmModal__ButtonsContainer",
|
|
36130
|
+
componentId: "sc-11qkyu1-8"
|
|
36131
|
+
})(["display:flex;justify-content:center;gap:20px;margin-top:4px;@media (max-width:768px){gap:30px;}"]);
|
|
36132
|
+
var CancelButtonWrapper = /*#__PURE__*/styled__default.div.withConfig({
|
|
36133
|
+
displayName: "ConfirmModal__CancelButtonWrapper",
|
|
36134
|
+
componentId: "sc-11qkyu1-9"
|
|
36135
|
+
})(["filter:grayscale(0.7);"]);
|
|
36136
|
+
|
|
36038
36137
|
var CheckItem = function CheckItem(_ref) {
|
|
36039
36138
|
var label = _ref.label,
|
|
36040
36139
|
_ref$defaultValue = _ref.defaultValue,
|
|
@@ -36215,7 +36314,7 @@ var CircularController = function CircularController(_ref) {
|
|
|
36215
36314
|
return word[0];
|
|
36216
36315
|
})));
|
|
36217
36316
|
};
|
|
36218
|
-
return React__default.createElement(ButtonsContainer$
|
|
36317
|
+
return React__default.createElement(ButtonsContainer$2, null, React__default.createElement(ShortcutsContainer, null, Array.from({
|
|
36219
36318
|
length: 12
|
|
36220
36319
|
}).map(function (_, i) {
|
|
36221
36320
|
return renderShortcut(i);
|
|
@@ -36237,7 +36336,7 @@ var CancelButton = /*#__PURE__*/styled__default(Button$1).withConfig({
|
|
|
36237
36336
|
displayName: "CircularController__CancelButton",
|
|
36238
36337
|
componentId: "sc-1fewf3h-1"
|
|
36239
36338
|
})(["width:3rem;height:3rem;font-size:0.8rem;position:relative;left:2.6rem;span{margin-top:4px;margin-left:2px;pointer-events:none;}"]);
|
|
36240
|
-
var ButtonsContainer$
|
|
36339
|
+
var ButtonsContainer$2 = /*#__PURE__*/styled__default.div.withConfig({
|
|
36241
36340
|
displayName: "CircularController__ButtonsContainer",
|
|
36242
36341
|
componentId: "sc-1fewf3h-2"
|
|
36243
36342
|
})(["display:flex;align-items:center;justify-content:center;gap:0.5rem;scale:0.9;"]);
|
|
@@ -36392,7 +36491,7 @@ var DraggableContainer = function DraggableContainer(_ref) {
|
|
|
36392
36491
|
},
|
|
36393
36492
|
defaultPosition: initialPosition,
|
|
36394
36493
|
scale: scale
|
|
36395
|
-
}, React__default.createElement(Container$
|
|
36494
|
+
}, React__default.createElement(Container$a, {
|
|
36396
36495
|
ref: draggableRef,
|
|
36397
36496
|
width: width,
|
|
36398
36497
|
height: height || 'auto',
|
|
@@ -36403,15 +36502,15 @@ var DraggableContainer = function DraggableContainer(_ref) {
|
|
|
36403
36502
|
opacity: opacity
|
|
36404
36503
|
}, title && React__default.createElement(TitleContainer, {
|
|
36405
36504
|
className: "drag-handler"
|
|
36406
|
-
}, React__default.createElement(Title, null, imgSrc && React__default.createElement(Icon, {
|
|
36505
|
+
}, React__default.createElement(Title$1, null, imgSrc && React__default.createElement(Icon, {
|
|
36407
36506
|
src: imgSrc,
|
|
36408
36507
|
width: imgWidth
|
|
36409
|
-
}), title)), onCloseButton && React__default.createElement(CloseButton$
|
|
36508
|
+
}), title)), onCloseButton && React__default.createElement(CloseButton$4, {
|
|
36410
36509
|
className: "container-close",
|
|
36411
36510
|
onPointerDown: onCloseButton
|
|
36412
36511
|
}, "X"), children));
|
|
36413
36512
|
};
|
|
36414
|
-
var Container$
|
|
36513
|
+
var Container$a = /*#__PURE__*/styled__default.div.withConfig({
|
|
36415
36514
|
displayName: "DraggableContainer__Container",
|
|
36416
36515
|
componentId: "sc-184mpyl-0"
|
|
36417
36516
|
})(["height:", ";width:", ";min-width:", ";min-height:", ";display:flex;flex-wrap:wrap;image-rendering:pixelated;overflow-y:hidden;", " ", " &.rpgui-container{padding-top:1.5rem;}"], function (props) {
|
|
@@ -36432,7 +36531,7 @@ var Container$9 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
36432
36531
|
var isFullScreen = _ref6.isFullScreen;
|
|
36433
36532
|
return isFullScreen && styled.css(["justify-content:center;align-items:flex-start;align-content:flex-start;"]);
|
|
36434
36533
|
});
|
|
36435
|
-
var CloseButton$
|
|
36534
|
+
var CloseButton$4 = /*#__PURE__*/styled__default.div.withConfig({
|
|
36436
36535
|
displayName: "DraggableContainer__CloseButton",
|
|
36437
36536
|
componentId: "sc-184mpyl-1"
|
|
36438
36537
|
})(["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;}"]);
|
|
@@ -36440,7 +36539,7 @@ var TitleContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
36440
36539
|
displayName: "DraggableContainer__TitleContainer",
|
|
36441
36540
|
componentId: "sc-184mpyl-2"
|
|
36442
36541
|
})(["width:100%;height:100%;display:flex;flex-wrap:wrap;justify-content:flex-start;align-items:center;max-height:42px;"]);
|
|
36443
|
-
var Title = /*#__PURE__*/styled__default.h1.withConfig({
|
|
36542
|
+
var Title$1 = /*#__PURE__*/styled__default.h1.withConfig({
|
|
36444
36543
|
displayName: "DraggableContainer__Title",
|
|
36445
36544
|
componentId: "sc-184mpyl-3"
|
|
36446
36545
|
})(["color:white;z-index:22;font-size:", ";"], uiFonts.size.large);
|
|
@@ -36488,7 +36587,7 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
36488
36587
|
onChange(selectedValue);
|
|
36489
36588
|
}
|
|
36490
36589
|
}, [selectedValue]);
|
|
36491
|
-
return React__default.createElement(Container$
|
|
36590
|
+
return React__default.createElement(Container$b, {
|
|
36492
36591
|
onMouseLeave: function onMouseLeave() {
|
|
36493
36592
|
return setOpened(false);
|
|
36494
36593
|
},
|
|
@@ -36516,7 +36615,7 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
36516
36615
|
}, option.option);
|
|
36517
36616
|
})));
|
|
36518
36617
|
};
|
|
36519
|
-
var Container$
|
|
36618
|
+
var Container$b = /*#__PURE__*/styled__default.div.withConfig({
|
|
36520
36619
|
displayName: "Dropdown__Container",
|
|
36521
36620
|
componentId: "sc-8arn65-0"
|
|
36522
36621
|
})(["position:relative;width:", ";"], function (props) {
|
|
@@ -36537,18 +36636,6 @@ var DropdownOptions$1 = /*#__PURE__*/styled__default.ul.withConfig({
|
|
|
36537
36636
|
return props.opensUp ? 'auto' : '100%';
|
|
36538
36637
|
});
|
|
36539
36638
|
|
|
36540
|
-
var modalRoot = /*#__PURE__*/document.getElementById('modal-root');
|
|
36541
|
-
var ModalPortal = function ModalPortal(_ref) {
|
|
36542
|
-
var children = _ref.children;
|
|
36543
|
-
return ReactDOM__default.createPortal(React__default.createElement(Container$b, {
|
|
36544
|
-
className: "rpgui-content"
|
|
36545
|
-
}, children), modalRoot);
|
|
36546
|
-
};
|
|
36547
|
-
var Container$b = /*#__PURE__*/styled__default.div.withConfig({
|
|
36548
|
-
displayName: "ModalPortal__Container",
|
|
36549
|
-
componentId: "sc-dgmp04-0"
|
|
36550
|
-
})(["position:static !important;"]);
|
|
36551
|
-
|
|
36552
36639
|
function useTouchTarget() {
|
|
36553
36640
|
var getTouchTarget = React.useCallback(function (e) {
|
|
36554
36641
|
// Check if it's a touch event
|
|
@@ -37449,7 +37536,7 @@ var ItemInfo = function ItemInfo(_ref) {
|
|
|
37449
37536
|
var skillName = (_item$minRequirements = item.minRequirements) == null ? void 0 : (_item$minRequirements2 = _item$minRequirements.skill) == null ? void 0 : _item$minRequirements2.name;
|
|
37450
37537
|
return React__default.createElement(Container$d, {
|
|
37451
37538
|
item: item
|
|
37452
|
-
}, React__default.createElement(Header$
|
|
37539
|
+
}, React__default.createElement(Header$2, null, React__default.createElement("div", null, React__default.createElement(Title$2, null, item.name), item.rarity !== 'Common' && React__default.createElement(Rarity, {
|
|
37453
37540
|
item: item
|
|
37454
37541
|
}, item.rarity), React__default.createElement(Type, null, item.subType)), React__default.createElement(AllowedSlots, null, renderAvaibleSlots())), item.minRequirements && React__default.createElement(LevelRequirement, null, React__default.createElement("div", {
|
|
37455
37542
|
className: "title"
|
|
@@ -37472,7 +37559,7 @@ var Container$d = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
37472
37559
|
var item = _ref3.item;
|
|
37473
37560
|
return "0 0 5px 2px " + rarityColor(item);
|
|
37474
37561
|
});
|
|
37475
|
-
var Title$
|
|
37562
|
+
var Title$2 = /*#__PURE__*/styled__default.div.withConfig({
|
|
37476
37563
|
displayName: "ItemInfo__Title",
|
|
37477
37564
|
componentId: "sc-1xm4q8k-1"
|
|
37478
37565
|
})(["font-size:", ";font-weight:bold;margin-bottom:0.5rem;display:flex;align-items:center;margin:0;"], uiFonts.size.medium);
|
|
@@ -37502,7 +37589,7 @@ var Description = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
37502
37589
|
displayName: "ItemInfo__Description",
|
|
37503
37590
|
componentId: "sc-1xm4q8k-6"
|
|
37504
37591
|
})(["margin-top:1.5rem;font-size:", ";color:", ";font-style:italic;"], uiFonts.size.small, uiColors.lightGray);
|
|
37505
|
-
var Header$
|
|
37592
|
+
var Header$2 = /*#__PURE__*/styled__default.div.withConfig({
|
|
37506
37593
|
displayName: "ItemInfo__Header",
|
|
37507
37594
|
componentId: "sc-1xm4q8k-7"
|
|
37508
37595
|
})(["display:flex;align-items:center;justify-content:space-between;margin-bottom:0.5rem;"]);
|
|
@@ -38091,7 +38178,7 @@ var CraftBook = function CraftBook(_ref) {
|
|
|
38091
38178
|
cancelDrag: ".inputRadioCraftBook",
|
|
38092
38179
|
onCloseButton: onClose,
|
|
38093
38180
|
scale: scale
|
|
38094
|
-
}, React__default.createElement(Wrapper, null, React__default.createElement(HeaderContainer, null, React__default.createElement(Title$
|
|
38181
|
+
}, React__default.createElement(Wrapper, null, React__default.createElement(HeaderContainer, null, React__default.createElement(Title$3, null, "Craftbook"), React__default.createElement(HeaderControls, null, React__default.createElement(DropdownWrapper, null, React__default.createElement(Dropdown, {
|
|
38095
38182
|
options: categoryOptions,
|
|
38096
38183
|
onChange: function onChange(value) {
|
|
38097
38184
|
setSelectedType(value);
|
|
@@ -38185,7 +38272,7 @@ var HeaderContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
38185
38272
|
displayName: "CraftBook__HeaderContainer",
|
|
38186
38273
|
componentId: "sc-19q95ue-1"
|
|
38187
38274
|
})(["display:flex;justify-content:space-between;align-items:center;width:100%;padding:16px 16px 0;"]);
|
|
38188
|
-
var Title$
|
|
38275
|
+
var Title$3 = /*#__PURE__*/styled__default.h1.withConfig({
|
|
38189
38276
|
displayName: "CraftBook__Title",
|
|
38190
38277
|
componentId: "sc-19q95ue-2"
|
|
38191
38278
|
})(["font-size:1.2rem;color:", " !important;margin:0;text-shadow:2px 2px 2px rgba(0,0,0,0.5);"], uiColors.yellow);
|
|
@@ -39378,93 +39465,6 @@ var EmptyMessage = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
39378
39465
|
componentId: "sc-debjdj-14"
|
|
39379
39466
|
})(["font-size:8px !important;color:", " !important;font-family:'Press Start 2P',cursive !important;text-align:center;padding:20px;"], uiColors.lightGray);
|
|
39380
39467
|
|
|
39381
|
-
// Global style to prevent body scrolling when modal is open
|
|
39382
|
-
var GlobalStyle = /*#__PURE__*/styled.createGlobalStyle(["body{overflow:hidden;width:100%;height:100%;}"]);
|
|
39383
|
-
var ConfirmModal = function ConfirmModal(_ref) {
|
|
39384
|
-
var onConfirm = _ref.onConfirm,
|
|
39385
|
-
onClose = _ref.onClose,
|
|
39386
|
-
_ref$message = _ref.message,
|
|
39387
|
-
message = _ref$message === void 0 ? 'Are you sure?' : _ref$message;
|
|
39388
|
-
var handleConfirm = React.useCallback(function (e) {
|
|
39389
|
-
e.preventDefault();
|
|
39390
|
-
e.stopPropagation();
|
|
39391
|
-
onConfirm();
|
|
39392
|
-
}, [onConfirm]);
|
|
39393
|
-
var handleClose = React.useCallback(function (e) {
|
|
39394
|
-
e.preventDefault();
|
|
39395
|
-
e.stopPropagation();
|
|
39396
|
-
onClose();
|
|
39397
|
-
}, [onClose]);
|
|
39398
|
-
// Fix type issues by separating event handlers for different event types
|
|
39399
|
-
var stopPropagationClick = React.useCallback(function (e) {
|
|
39400
|
-
e.stopPropagation();
|
|
39401
|
-
}, []);
|
|
39402
|
-
var stopPropagationTouch = React.useCallback(function (e) {
|
|
39403
|
-
e.stopPropagation();
|
|
39404
|
-
}, []);
|
|
39405
|
-
var stopPropagationPointer = React.useCallback(function (e) {
|
|
39406
|
-
e.stopPropagation();
|
|
39407
|
-
}, []);
|
|
39408
|
-
return React__default.createElement(ModalPortal, null, React__default.createElement(GlobalStyle, null), React__default.createElement(Overlay, {
|
|
39409
|
-
onPointerDown: handleClose
|
|
39410
|
-
}), React__default.createElement(ModalContainer, null, React__default.createElement(ModalContent, {
|
|
39411
|
-
onClick: stopPropagationClick,
|
|
39412
|
-
onTouchStart: stopPropagationTouch,
|
|
39413
|
-
onTouchEnd: stopPropagationTouch,
|
|
39414
|
-
onTouchMove: stopPropagationTouch,
|
|
39415
|
-
onPointerDown: stopPropagationPointer
|
|
39416
|
-
}, React__default.createElement(Header$2, null, React__default.createElement(Title$3, null, "Confirm"), React__default.createElement(CloseButton$4, {
|
|
39417
|
-
onPointerDown: handleClose,
|
|
39418
|
-
"aria-label": "Close"
|
|
39419
|
-
}, 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, {
|
|
39420
|
-
buttonType: exports.ButtonTypes.RPGUIButton,
|
|
39421
|
-
onPointerDown: handleClose
|
|
39422
|
-
}, "No")), React__default.createElement(Button, {
|
|
39423
|
-
buttonType: exports.ButtonTypes.RPGUIButton,
|
|
39424
|
-
onPointerDown: handleConfirm
|
|
39425
|
-
}, "Yes")))));
|
|
39426
|
-
};
|
|
39427
|
-
var Overlay = /*#__PURE__*/styled__default.div.withConfig({
|
|
39428
|
-
displayName: "ConfirmModal__Overlay",
|
|
39429
|
-
componentId: "sc-11qkyu1-0"
|
|
39430
|
-
})(["position:fixed;top:0;left:0;right:0;bottom:0;background-color:rgba(0,0,0,0.6);z-index:1000;animation:fadeIn 0.2s ease-out;cursor:pointer;touch-action:none;@keyframes fadeIn{from{opacity:0;}to{opacity:1;}}"]);
|
|
39431
|
-
var ModalContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
39432
|
-
displayName: "ConfirmModal__ModalContainer",
|
|
39433
|
-
componentId: "sc-11qkyu1-1"
|
|
39434
|
-
})(["position:fixed;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;z-index:1001;pointer-events:none;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);"]);
|
|
39435
|
-
var ModalContent = /*#__PURE__*/styled__default.div.withConfig({
|
|
39436
|
-
displayName: "ConfirmModal__ModalContent",
|
|
39437
|
-
componentId: "sc-11qkyu1-2"
|
|
39438
|
-
})(["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%;}"]);
|
|
39439
|
-
var Header$2 = /*#__PURE__*/styled__default.div.withConfig({
|
|
39440
|
-
displayName: "ConfirmModal__Header",
|
|
39441
|
-
componentId: "sc-11qkyu1-3"
|
|
39442
|
-
})(["display:flex;align-items:center;justify-content:space-between;"]);
|
|
39443
|
-
var Title$3 = /*#__PURE__*/styled__default.h3.withConfig({
|
|
39444
|
-
displayName: "ConfirmModal__Title",
|
|
39445
|
-
componentId: "sc-11qkyu1-4"
|
|
39446
|
-
})(["margin:0;font-family:'Press Start 2P',cursive;font-size:0.7rem;color:#fef08a;"]);
|
|
39447
|
-
var CloseButton$4 = /*#__PURE__*/styled__default.button.withConfig({
|
|
39448
|
-
displayName: "ConfirmModal__CloseButton",
|
|
39449
|
-
componentId: "sc-11qkyu1-5"
|
|
39450
|
-
})(["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;}"]);
|
|
39451
|
-
var MessageContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
39452
|
-
displayName: "ConfirmModal__MessageContainer",
|
|
39453
|
-
componentId: "sc-11qkyu1-6"
|
|
39454
|
-
})(["text-align:center;"]);
|
|
39455
|
-
var Message$1 = /*#__PURE__*/styled__default.p.withConfig({
|
|
39456
|
-
displayName: "ConfirmModal__Message",
|
|
39457
|
-
componentId: "sc-11qkyu1-7"
|
|
39458
|
-
})(["margin:0;font-family:'Press Start 2P',cursive;font-size:0.6rem;color:rgba(255,255,255,0.85);line-height:1.8;"]);
|
|
39459
|
-
var ButtonsContainer$2 = /*#__PURE__*/styled__default.div.withConfig({
|
|
39460
|
-
displayName: "ConfirmModal__ButtonsContainer",
|
|
39461
|
-
componentId: "sc-11qkyu1-8"
|
|
39462
|
-
})(["display:flex;justify-content:center;gap:20px;margin-top:4px;@media (max-width:768px){gap:30px;}"]);
|
|
39463
|
-
var CancelButtonWrapper = /*#__PURE__*/styled__default.div.withConfig({
|
|
39464
|
-
displayName: "ConfirmModal__CancelButtonWrapper",
|
|
39465
|
-
componentId: "sc-11qkyu1-9"
|
|
39466
|
-
})(["filter:grayscale(0.7);"]);
|
|
39467
|
-
|
|
39468
39468
|
var CTAButton = function CTAButton(_ref) {
|
|
39469
39469
|
var icon = _ref.icon,
|
|
39470
39470
|
label = _ref.label,
|
|
@@ -48044,63 +48044,6 @@ var EmptySubtext = /*#__PURE__*/styled__default.span.withConfig({
|
|
|
48044
48044
|
componentId: "sc-su21a6-17"
|
|
48045
48045
|
})(["font-family:'Press Start 2P',cursive !important;font-size:0.38rem !important;color:#52525b !important;text-align:center;max-width:260px;line-height:1.6;"]);
|
|
48046
48046
|
|
|
48047
|
-
var CharacterListingForm = function CharacterListingForm(_ref) {
|
|
48048
|
-
var accountCharacters = _ref.accountCharacters,
|
|
48049
|
-
onCharacterList = _ref.onCharacterList,
|
|
48050
|
-
atlasJSON = _ref.atlasJSON,
|
|
48051
|
-
atlasIMG = _ref.atlasIMG,
|
|
48052
|
-
characterAtlasJSON = _ref.characterAtlasJSON,
|
|
48053
|
-
characterAtlasIMG = _ref.characterAtlasIMG,
|
|
48054
|
-
enableHotkeys = _ref.enableHotkeys,
|
|
48055
|
-
disableHotkeys = _ref.disableHotkeys;
|
|
48056
|
-
var _useState = React.useState(false),
|
|
48057
|
-
isModalOpen = _useState[0],
|
|
48058
|
-
setIsModalOpen = _useState[1];
|
|
48059
|
-
var eligibleCount = accountCharacters.filter(function (c) {
|
|
48060
|
-
return !c.isListedForSale && !c.tradedAt;
|
|
48061
|
-
}).length;
|
|
48062
|
-
return React__default.createElement(Wrapper$2, null, React__default.createElement(CharacterListingModal, {
|
|
48063
|
-
isOpen: isModalOpen,
|
|
48064
|
-
onClose: function onClose() {
|
|
48065
|
-
return setIsModalOpen(false);
|
|
48066
|
-
},
|
|
48067
|
-
accountCharacters: accountCharacters,
|
|
48068
|
-
atlasJSON: atlasJSON,
|
|
48069
|
-
atlasIMG: atlasIMG,
|
|
48070
|
-
characterAtlasJSON: characterAtlasJSON,
|
|
48071
|
-
characterAtlasIMG: characterAtlasIMG,
|
|
48072
|
-
onCharacterList: onCharacterList,
|
|
48073
|
-
enableHotkeys: enableHotkeys,
|
|
48074
|
-
disableHotkeys: disableHotkeys
|
|
48075
|
-
}), React__default.createElement(Description$4, null, "List one of your offline characters on the marketplace. Prices are set in DC."), React__default.createElement(OpenButton, {
|
|
48076
|
-
icon: React__default.createElement(ShoppingBag.ShoppingBag, {
|
|
48077
|
-
width: 20,
|
|
48078
|
-
height: 20
|
|
48079
|
-
}),
|
|
48080
|
-
label: "List a Character" + (eligibleCount > 0 ? " (" + eligibleCount + " eligible)" : ''),
|
|
48081
|
-
disabled: eligibleCount === 0,
|
|
48082
|
-
onClick: function onClick() {
|
|
48083
|
-
return setIsModalOpen(true);
|
|
48084
|
-
}
|
|
48085
|
-
}), eligibleCount === 0 && React__default.createElement(NoEligible, null, "No eligible characters to list."));
|
|
48086
|
-
};
|
|
48087
|
-
var Wrapper$2 = /*#__PURE__*/styled__default.div.withConfig({
|
|
48088
|
-
displayName: "CharacterListingForm__Wrapper",
|
|
48089
|
-
componentId: "sc-fxv1tt-0"
|
|
48090
|
-
})(["display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;padding:40px 24px;width:95%;margin:0 auto;"]);
|
|
48091
|
-
var Description$4 = /*#__PURE__*/styled__default.p.withConfig({
|
|
48092
|
-
displayName: "CharacterListingForm__Description",
|
|
48093
|
-
componentId: "sc-fxv1tt-1"
|
|
48094
|
-
})(["margin:0;font-size:0.5rem;color:#666;text-align:center;line-height:1.6;max-width:320px;"]);
|
|
48095
|
-
var OpenButton = /*#__PURE__*/styled__default(CTAButton).withConfig({
|
|
48096
|
-
displayName: "CharacterListingForm__OpenButton",
|
|
48097
|
-
componentId: "sc-fxv1tt-2"
|
|
48098
|
-
})(["padding:14px 24px;span{font-size:0.65rem;}svg{font-size:1.2rem;}"]);
|
|
48099
|
-
var NoEligible = /*#__PURE__*/styled__default.span.withConfig({
|
|
48100
|
-
displayName: "CharacterListingForm__NoEligible",
|
|
48101
|
-
componentId: "sc-fxv1tt-3"
|
|
48102
|
-
})(["font-size:0.45rem;color:#52525b;text-transform:uppercase;letter-spacing:1px;"]);
|
|
48103
|
-
|
|
48104
48047
|
var Marketplace = function Marketplace(props) {
|
|
48105
48048
|
var onClose = props.onClose,
|
|
48106
48049
|
scale = props.scale,
|
|
@@ -48282,13 +48225,7 @@ var Marketplace = function Marketplace(props) {
|
|
|
48282
48225
|
return setCharacterSubTab('my-listings');
|
|
48283
48226
|
},
|
|
48284
48227
|
type: "button"
|
|
48285
|
-
}, "My Listings"), React__default.createElement(
|
|
48286
|
-
"$active": characterSubTab === 'list',
|
|
48287
|
-
onClick: function onClick() {
|
|
48288
|
-
return setCharacterSubTab('list');
|
|
48289
|
-
},
|
|
48290
|
-
type: "button"
|
|
48291
|
-
}, "List Character")), characterSubTab === 'browse' && React__default.createElement(CharacterMarketplacePanel, {
|
|
48228
|
+
}, "My Listings")), characterSubTab === 'browse' && React__default.createElement(CharacterMarketplacePanel, {
|
|
48292
48229
|
characterListings: characterListings != null ? characterListings : [],
|
|
48293
48230
|
totalCount: characterListingsTotal != null ? characterListingsTotal : 0,
|
|
48294
48231
|
currentPage: characterListingsPage != null ? characterListingsPage : 1,
|
|
@@ -48319,15 +48256,6 @@ var Marketplace = function Marketplace(props) {
|
|
|
48319
48256
|
characterAtlasIMG: characterAtlasIMG != null ? characterAtlasIMG : props.atlasIMG,
|
|
48320
48257
|
enableHotkeys: props.enableHotkeys,
|
|
48321
48258
|
disableHotkeys: props.disableHotkeys
|
|
48322
|
-
}), characterSubTab === 'list' && React__default.createElement(CharacterListingForm, {
|
|
48323
|
-
accountCharacters: accountCharacters != null ? accountCharacters : [],
|
|
48324
|
-
onCharacterList: onCharacterList != null ? onCharacterList : function () {},
|
|
48325
|
-
atlasJSON: props.atlasJSON,
|
|
48326
|
-
atlasIMG: props.atlasIMG,
|
|
48327
|
-
characterAtlasJSON: characterAtlasJSON != null ? characterAtlasJSON : props.atlasJSON,
|
|
48328
|
-
characterAtlasIMG: characterAtlasIMG != null ? characterAtlasIMG : props.atlasIMG,
|
|
48329
|
-
enableHotkeys: props.enableHotkeys,
|
|
48330
|
-
disableHotkeys: props.disableHotkeys
|
|
48331
48259
|
})), activeTab === 'sell' && React__default.createElement(ManagmentPanel, Object.assign({}, props, {
|
|
48332
48260
|
acceptedCurrency: acceptedCurrency
|
|
48333
48261
|
})), activeTab === 'buy-orders' && React__default.createElement(React__default.Fragment, null, React__default.createElement(BuyOrderPanel, {
|
|
@@ -48555,6 +48483,63 @@ var OtherListingRow = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
48555
48483
|
componentId: "sc-1pxkdig-15"
|
|
48556
48484
|
})(["opacity:0.85;&:hover{opacity:1;}"]);
|
|
48557
48485
|
|
|
48486
|
+
var CharacterListingForm = function CharacterListingForm(_ref) {
|
|
48487
|
+
var accountCharacters = _ref.accountCharacters,
|
|
48488
|
+
onCharacterList = _ref.onCharacterList,
|
|
48489
|
+
atlasJSON = _ref.atlasJSON,
|
|
48490
|
+
atlasIMG = _ref.atlasIMG,
|
|
48491
|
+
characterAtlasJSON = _ref.characterAtlasJSON,
|
|
48492
|
+
characterAtlasIMG = _ref.characterAtlasIMG,
|
|
48493
|
+
enableHotkeys = _ref.enableHotkeys,
|
|
48494
|
+
disableHotkeys = _ref.disableHotkeys;
|
|
48495
|
+
var _useState = React.useState(false),
|
|
48496
|
+
isModalOpen = _useState[0],
|
|
48497
|
+
setIsModalOpen = _useState[1];
|
|
48498
|
+
var eligibleCount = accountCharacters.filter(function (c) {
|
|
48499
|
+
return !c.isListedForSale && !c.tradedAt;
|
|
48500
|
+
}).length;
|
|
48501
|
+
return React__default.createElement(Wrapper$2, null, React__default.createElement(CharacterListingModal, {
|
|
48502
|
+
isOpen: isModalOpen,
|
|
48503
|
+
onClose: function onClose() {
|
|
48504
|
+
return setIsModalOpen(false);
|
|
48505
|
+
},
|
|
48506
|
+
accountCharacters: accountCharacters,
|
|
48507
|
+
atlasJSON: atlasJSON,
|
|
48508
|
+
atlasIMG: atlasIMG,
|
|
48509
|
+
characterAtlasJSON: characterAtlasJSON,
|
|
48510
|
+
characterAtlasIMG: characterAtlasIMG,
|
|
48511
|
+
onCharacterList: onCharacterList,
|
|
48512
|
+
enableHotkeys: enableHotkeys,
|
|
48513
|
+
disableHotkeys: disableHotkeys
|
|
48514
|
+
}), React__default.createElement(Description$4, null, "List one of your offline characters on the marketplace. Prices are set in DC."), React__default.createElement(OpenButton, {
|
|
48515
|
+
icon: React__default.createElement(ShoppingBag.ShoppingBag, {
|
|
48516
|
+
width: 20,
|
|
48517
|
+
height: 20
|
|
48518
|
+
}),
|
|
48519
|
+
label: "List a Character" + (eligibleCount > 0 ? " (" + eligibleCount + " eligible)" : ''),
|
|
48520
|
+
disabled: eligibleCount === 0,
|
|
48521
|
+
onClick: function onClick() {
|
|
48522
|
+
return setIsModalOpen(true);
|
|
48523
|
+
}
|
|
48524
|
+
}), eligibleCount === 0 && React__default.createElement(NoEligible, null, "No eligible characters to list."));
|
|
48525
|
+
};
|
|
48526
|
+
var Wrapper$2 = /*#__PURE__*/styled__default.div.withConfig({
|
|
48527
|
+
displayName: "CharacterListingForm__Wrapper",
|
|
48528
|
+
componentId: "sc-fxv1tt-0"
|
|
48529
|
+
})(["display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;padding:40px 24px;width:95%;margin:0 auto;"]);
|
|
48530
|
+
var Description$4 = /*#__PURE__*/styled__default.p.withConfig({
|
|
48531
|
+
displayName: "CharacterListingForm__Description",
|
|
48532
|
+
componentId: "sc-fxv1tt-1"
|
|
48533
|
+
})(["margin:0;font-size:0.5rem;color:#666;text-align:center;line-height:1.6;max-width:320px;"]);
|
|
48534
|
+
var OpenButton = /*#__PURE__*/styled__default(CTAButton).withConfig({
|
|
48535
|
+
displayName: "CharacterListingForm__OpenButton",
|
|
48536
|
+
componentId: "sc-fxv1tt-2"
|
|
48537
|
+
})(["padding:14px 24px;span{font-size:0.65rem;}svg{font-size:1.2rem;}"]);
|
|
48538
|
+
var NoEligible = /*#__PURE__*/styled__default.span.withConfig({
|
|
48539
|
+
displayName: "CharacterListingForm__NoEligible",
|
|
48540
|
+
componentId: "sc-fxv1tt-3"
|
|
48541
|
+
})(["font-size:0.45rem;color:#52525b;text-transform:uppercase;letter-spacing:1px;"]);
|
|
48542
|
+
|
|
48558
48543
|
var TabBody = function TabBody(_ref) {
|
|
48559
48544
|
var id = _ref.id,
|
|
48560
48545
|
children = _ref.children,
|
|
@@ -74080,6 +74065,7 @@ exports.ChatRevamp = ChatRevamp;
|
|
|
74080
74065
|
exports.CheckButton = CheckButton;
|
|
74081
74066
|
exports.CheckItem = CheckItem;
|
|
74082
74067
|
exports.CircularController = CircularController;
|
|
74068
|
+
exports.ConfirmModal = ConfirmModal;
|
|
74083
74069
|
exports.CountdownTimer = CountdownTimer;
|
|
74084
74070
|
exports.CraftBook = CraftBook;
|
|
74085
74071
|
exports.DCRateStrip = DCRateStrip;
|