@rpg-engine/long-bow 0.8.135 → 0.8.136
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/DCWallet/DCHistoryPanel.d.ts +18 -0
- package/dist/components/DCWallet/DCTransferPanel.d.ts +15 -0
- package/dist/components/DCWallet/DCWalletModal.d.ts +24 -0
- package/dist/index.d.ts +1 -0
- package/dist/long-bow.cjs.development.js +779 -379
- 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 +761 -362
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/DCWallet/DCHistoryPanel.tsx +238 -0
- package/src/components/DCWallet/DCTransferPanel.tsx +217 -0
- package/src/components/DCWallet/DCWalletModal.tsx +225 -0
- package/src/index.tsx +1 -0
|
@@ -30192,6 +30192,661 @@ var TaskTitle$1 = /*#__PURE__*/styled__default.h2.withConfig({
|
|
|
30192
30192
|
return props.isMobile ? '4px 0' : '8px 0';
|
|
30193
30193
|
});
|
|
30194
30194
|
|
|
30195
|
+
var UI_BREAKPOINT_MOBILE = '950px';
|
|
30196
|
+
var UI_BREAKPOINT_SMALL_LAPTOP = '1400px';
|
|
30197
|
+
|
|
30198
|
+
var InternalTabs = function InternalTabs(_ref) {
|
|
30199
|
+
var _tabs$, _tabs$find;
|
|
30200
|
+
var tabs = _ref.tabs,
|
|
30201
|
+
_ref$activeColor = _ref.activeColor,
|
|
30202
|
+
activeColor = _ref$activeColor === void 0 ? '#fef08a' : _ref$activeColor,
|
|
30203
|
+
_ref$activeTextColor = _ref.activeTextColor,
|
|
30204
|
+
activeTextColor = _ref$activeTextColor === void 0 ? '#000000' : _ref$activeTextColor,
|
|
30205
|
+
_ref$inactiveColor = _ref.inactiveColor,
|
|
30206
|
+
inactiveColor = _ref$inactiveColor === void 0 ? '#6b7280' : _ref$inactiveColor,
|
|
30207
|
+
_ref$borderColor = _ref.borderColor,
|
|
30208
|
+
borderColor = _ref$borderColor === void 0 ? '#f59e0b' : _ref$borderColor,
|
|
30209
|
+
_ref$hoverColor = _ref.hoverColor,
|
|
30210
|
+
hoverColor = _ref$hoverColor === void 0 ? '#fef3c7' : _ref$hoverColor,
|
|
30211
|
+
onTabChange = _ref.onTabChange,
|
|
30212
|
+
externalActiveTab = _ref.activeTab;
|
|
30213
|
+
var _useState = React.useState((_tabs$ = tabs[0]) == null ? void 0 : _tabs$.id),
|
|
30214
|
+
internalActiveTab = _useState[0],
|
|
30215
|
+
setInternalActiveTab = _useState[1];
|
|
30216
|
+
var activeTabId = externalActiveTab != null ? externalActiveTab : internalActiveTab;
|
|
30217
|
+
var handleTabClick = function handleTabClick(tabId) {
|
|
30218
|
+
setInternalActiveTab(tabId);
|
|
30219
|
+
onTabChange == null ? void 0 : onTabChange(tabId);
|
|
30220
|
+
};
|
|
30221
|
+
return React__default.createElement(TableWrapper, null, React__default.createElement(TabHeader, {
|
|
30222
|
+
borderColor: borderColor
|
|
30223
|
+
}, tabs.map(function (tab) {
|
|
30224
|
+
return React__default.createElement(TabButton, {
|
|
30225
|
+
key: tab.id,
|
|
30226
|
+
active: activeTabId === tab.id,
|
|
30227
|
+
activeColor: activeColor,
|
|
30228
|
+
activeTextColor: activeTextColor,
|
|
30229
|
+
inactiveColor: inactiveColor,
|
|
30230
|
+
borderColor: borderColor,
|
|
30231
|
+
hoverColor: hoverColor,
|
|
30232
|
+
onClick: function onClick() {
|
|
30233
|
+
return handleTabClick(tab.id);
|
|
30234
|
+
}
|
|
30235
|
+
}, tab.title);
|
|
30236
|
+
})), React__default.createElement(ContentWrapper, null, (_tabs$find = tabs.find(function (tab) {
|
|
30237
|
+
return tab.id === activeTabId;
|
|
30238
|
+
})) == null ? void 0 : _tabs$find.content));
|
|
30239
|
+
};
|
|
30240
|
+
var TableWrapper = /*#__PURE__*/styled__default.div.withConfig({
|
|
30241
|
+
displayName: "InternalTabs__TableWrapper",
|
|
30242
|
+
componentId: "sc-ldufv0-0"
|
|
30243
|
+
})(["width:100%;"]);
|
|
30244
|
+
var TabHeader = /*#__PURE__*/styled__default.div.withConfig({
|
|
30245
|
+
displayName: "InternalTabs__TabHeader",
|
|
30246
|
+
componentId: "sc-ldufv0-1"
|
|
30247
|
+
})(["display:flex;border-bottom:1px solid ", ";"], function (props) {
|
|
30248
|
+
return props.borderColor;
|
|
30249
|
+
});
|
|
30250
|
+
var TabButton = /*#__PURE__*/styled__default.button.withConfig({
|
|
30251
|
+
displayName: "InternalTabs__TabButton",
|
|
30252
|
+
componentId: "sc-ldufv0-2"
|
|
30253
|
+
})(["flex:1;padding:0.25rem 0.5rem;font-size:0.75rem;font-weight:500;border-right:1px solid ", ";background-color:", ";color:", ";white-space:nowrap;overflow:hidden;text-overflow:ellipsis;@media (min-width:480px){padding:0.375rem 0.75rem;font-size:0.8125rem;}@media (min-width:", "){padding:0.5rem 1rem;font-size:0.875rem;}&:last-child{border-right:none;}&:hover{background-color:", ";}"], function (props) {
|
|
30254
|
+
return props.borderColor;
|
|
30255
|
+
}, function (props) {
|
|
30256
|
+
return props.active ? props.activeColor : 'transparent';
|
|
30257
|
+
}, function (props) {
|
|
30258
|
+
return props.active ? props.activeTextColor : props.inactiveColor;
|
|
30259
|
+
}, UI_BREAKPOINT_MOBILE, function (props) {
|
|
30260
|
+
return props.active ? props.activeColor : props.hoverColor;
|
|
30261
|
+
});
|
|
30262
|
+
var ContentWrapper = /*#__PURE__*/styled__default.div.withConfig({
|
|
30263
|
+
displayName: "InternalTabs__ContentWrapper",
|
|
30264
|
+
componentId: "sc-ldufv0-3"
|
|
30265
|
+
})(["width:100%;"]);
|
|
30266
|
+
|
|
30267
|
+
var Pagination = function Pagination(_ref) {
|
|
30268
|
+
var currentPage = _ref.currentPage,
|
|
30269
|
+
totalPages = _ref.totalPages,
|
|
30270
|
+
onPageChange = _ref.onPageChange,
|
|
30271
|
+
className = _ref.className;
|
|
30272
|
+
return React__default.createElement(Container$j, {
|
|
30273
|
+
className: className
|
|
30274
|
+
}, React__default.createElement(PaginationButton$1, {
|
|
30275
|
+
onClick: function onClick() {
|
|
30276
|
+
return onPageChange(Math.max(1, currentPage - 1));
|
|
30277
|
+
},
|
|
30278
|
+
disabled: currentPage === 1
|
|
30279
|
+
}, React__default.createElement(fa.FaChevronLeft, {
|
|
30280
|
+
size: 12
|
|
30281
|
+
})), React__default.createElement(PageInfo$1, null, "Page ", currentPage, " of ", totalPages), React__default.createElement(PaginationButton$1, {
|
|
30282
|
+
onClick: function onClick() {
|
|
30283
|
+
return onPageChange(Math.min(totalPages, currentPage + 1));
|
|
30284
|
+
},
|
|
30285
|
+
disabled: currentPage === totalPages
|
|
30286
|
+
}, React__default.createElement(fa.FaChevronRight, {
|
|
30287
|
+
size: 12
|
|
30288
|
+
})));
|
|
30289
|
+
};
|
|
30290
|
+
var Container$j = /*#__PURE__*/styled__default.div.withConfig({
|
|
30291
|
+
displayName: "Pagination__Container",
|
|
30292
|
+
componentId: "sc-3k4m4u-0"
|
|
30293
|
+
})(["display:flex;align-items:center;justify-content:center;gap:16px;padding:8px;"]);
|
|
30294
|
+
var PaginationButton$1 = /*#__PURE__*/styled__default.button.withConfig({
|
|
30295
|
+
displayName: "Pagination__PaginationButton",
|
|
30296
|
+
componentId: "sc-3k4m4u-1"
|
|
30297
|
+
})(["background:none;border:none;color:", ";cursor:", ";opacity:", ";padding:4px;display:flex;align-items:center;justify-content:center;transition:opacity 0.2s;&:hover:not(:disabled){opacity:1;}"], function (props) {
|
|
30298
|
+
return props.disabled ? uiColors.darkGray : uiColors.yellow;
|
|
30299
|
+
}, function (props) {
|
|
30300
|
+
return props.disabled ? 'not-allowed' : 'pointer';
|
|
30301
|
+
}, function (props) {
|
|
30302
|
+
return props.disabled ? 0.5 : 0.8;
|
|
30303
|
+
});
|
|
30304
|
+
var PageInfo$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
30305
|
+
displayName: "Pagination__PageInfo",
|
|
30306
|
+
componentId: "sc-3k4m4u-2"
|
|
30307
|
+
})(["color:", ";font-size:0.8rem;font-family:'Press Start 2P',cursive;"], uiColors.lightGray);
|
|
30308
|
+
|
|
30309
|
+
var TRANSACTION_TYPE_LABELS = {
|
|
30310
|
+
Purchase: 'Purchase',
|
|
30311
|
+
Transfer: 'Transfer',
|
|
30312
|
+
MarketplaceSale: 'Marketplace Sale',
|
|
30313
|
+
MarketplacePurchase: 'Marketplace Buy',
|
|
30314
|
+
StorePurchase: 'Store Purchase',
|
|
30315
|
+
Fee: 'Fee',
|
|
30316
|
+
Refund: 'Refund',
|
|
30317
|
+
AdminAdjustment: 'Admin Adjustment'
|
|
30318
|
+
};
|
|
30319
|
+
var TRANSACTION_TYPE_OPTIONS = [{
|
|
30320
|
+
id: 0,
|
|
30321
|
+
value: '',
|
|
30322
|
+
option: 'All Types'
|
|
30323
|
+
}, {
|
|
30324
|
+
id: 1,
|
|
30325
|
+
value: 'Purchase',
|
|
30326
|
+
option: 'Purchase'
|
|
30327
|
+
}, {
|
|
30328
|
+
id: 2,
|
|
30329
|
+
value: 'Transfer',
|
|
30330
|
+
option: 'Transfer'
|
|
30331
|
+
}, {
|
|
30332
|
+
id: 3,
|
|
30333
|
+
value: 'MarketplaceSale',
|
|
30334
|
+
option: 'Marketplace Sale'
|
|
30335
|
+
}, {
|
|
30336
|
+
id: 4,
|
|
30337
|
+
value: 'MarketplacePurchase',
|
|
30338
|
+
option: 'Marketplace Buy'
|
|
30339
|
+
}, {
|
|
30340
|
+
id: 5,
|
|
30341
|
+
value: 'StorePurchase',
|
|
30342
|
+
option: 'Store Purchase'
|
|
30343
|
+
}, {
|
|
30344
|
+
id: 6,
|
|
30345
|
+
value: 'Fee',
|
|
30346
|
+
option: 'Fee'
|
|
30347
|
+
}, {
|
|
30348
|
+
id: 7,
|
|
30349
|
+
value: 'Refund',
|
|
30350
|
+
option: 'Refund'
|
|
30351
|
+
}, {
|
|
30352
|
+
id: 8,
|
|
30353
|
+
value: 'AdminAdjustment',
|
|
30354
|
+
option: 'Admin Adjustment'
|
|
30355
|
+
}];
|
|
30356
|
+
var DCHistoryPanel = function DCHistoryPanel(_ref) {
|
|
30357
|
+
var transactions = _ref.transactions,
|
|
30358
|
+
totalPages = _ref.totalPages,
|
|
30359
|
+
currentPage = _ref.currentPage,
|
|
30360
|
+
loading = _ref.loading,
|
|
30361
|
+
onRequestHistory = _ref.onRequestHistory;
|
|
30362
|
+
var _React$useState = React__default.useState(''),
|
|
30363
|
+
selectedType = _React$useState[0],
|
|
30364
|
+
setSelectedType = _React$useState[1];
|
|
30365
|
+
var handleTypeChange = function handleTypeChange(value) {
|
|
30366
|
+
setSelectedType(value);
|
|
30367
|
+
onRequestHistory(1, value || undefined);
|
|
30368
|
+
};
|
|
30369
|
+
var handlePageChange = function handlePageChange(page) {
|
|
30370
|
+
onRequestHistory(page, selectedType || undefined);
|
|
30371
|
+
};
|
|
30372
|
+
var formatDate = function formatDate(dateStr) {
|
|
30373
|
+
var d = new Date(dateStr);
|
|
30374
|
+
var months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
|
|
30375
|
+
return months[d.getMonth()] + " " + d.getDate() + ", " + d.getFullYear();
|
|
30376
|
+
};
|
|
30377
|
+
return React__default.createElement(PanelContainer, null, React__default.createElement(FilterRow, null, React__default.createElement(FilterLabel, null, "Filter:"), React__default.createElement(Dropdown, {
|
|
30378
|
+
options: TRANSACTION_TYPE_OPTIONS,
|
|
30379
|
+
onChange: handleTypeChange,
|
|
30380
|
+
width: "200px"
|
|
30381
|
+
})), loading && React__default.createElement(LoadingRow, null, React__default.createElement(Spinner, null), React__default.createElement("span", null, "Loading...")), !loading && transactions.length === 0 && React__default.createElement(EmptyMessage, null, "No transactions found."), !loading && transactions.length > 0 && React__default.createElement(TransactionList, null, transactions.map(function (tx) {
|
|
30382
|
+
var _TRANSACTION_TYPE_LAB, _tx$note;
|
|
30383
|
+
var isCredit = tx.amount > 0;
|
|
30384
|
+
var label = (_TRANSACTION_TYPE_LAB = TRANSACTION_TYPE_LABELS[tx.type]) != null ? _TRANSACTION_TYPE_LAB : tx.type;
|
|
30385
|
+
return React__default.createElement(TransactionRow, {
|
|
30386
|
+
key: tx._id
|
|
30387
|
+
}, React__default.createElement(TxType, null, label), React__default.createElement(TxAmount, {
|
|
30388
|
+
"$credit": isCredit
|
|
30389
|
+
}, isCredit ? '+' : '', tx.amount, " DC"), React__default.createElement(TxNote, null, (_tx$note = tx.note) != null ? _tx$note : tx.relatedCharacterName ? "With: " + tx.relatedCharacterName : ''), React__default.createElement(TxDate, null, formatDate(tx.createdAt)), React__default.createElement(TxBalance, null, "Balance: ", tx.balanceAfter, " DC"));
|
|
30390
|
+
})), totalPages > 1 && React__default.createElement(Pagination, {
|
|
30391
|
+
currentPage: currentPage,
|
|
30392
|
+
totalPages: totalPages,
|
|
30393
|
+
onPageChange: handlePageChange
|
|
30394
|
+
}));
|
|
30395
|
+
};
|
|
30396
|
+
var PanelContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
30397
|
+
displayName: "DCHistoryPanel__PanelContainer",
|
|
30398
|
+
componentId: "sc-debjdj-0"
|
|
30399
|
+
})(["display:flex;flex-direction:column;gap:6px;padding:4px 0;"]);
|
|
30400
|
+
var FilterRow = /*#__PURE__*/styled__default.div.withConfig({
|
|
30401
|
+
displayName: "DCHistoryPanel__FilterRow",
|
|
30402
|
+
componentId: "sc-debjdj-1"
|
|
30403
|
+
})(["display:flex;align-items:center;gap:8px;margin-bottom:4px;"]);
|
|
30404
|
+
var FilterLabel = /*#__PURE__*/styled__default.span.withConfig({
|
|
30405
|
+
displayName: "DCHistoryPanel__FilterLabel",
|
|
30406
|
+
componentId: "sc-debjdj-2"
|
|
30407
|
+
})(["font-size:8px;color:#f59e0b;font-family:'Press Start 2P',cursive;white-space:nowrap;"]);
|
|
30408
|
+
var TransactionList = /*#__PURE__*/styled__default.div.withConfig({
|
|
30409
|
+
displayName: "DCHistoryPanel__TransactionList",
|
|
30410
|
+
componentId: "sc-debjdj-3"
|
|
30411
|
+
})(["display:flex;flex-direction:column;gap:4px;max-height:280px;overflow-y:auto;"]);
|
|
30412
|
+
var TransactionRow = /*#__PURE__*/styled__default.div.withConfig({
|
|
30413
|
+
displayName: "DCHistoryPanel__TransactionRow",
|
|
30414
|
+
componentId: "sc-debjdj-4"
|
|
30415
|
+
})(["background:rgba(0,0,0,0.4);border:1px solid rgba(255,215,0,0.2);padding:8px;display:grid;grid-template-columns:1fr auto;grid-template-rows:auto auto auto;gap:2px;"]);
|
|
30416
|
+
var TxType = /*#__PURE__*/styled__default.span.withConfig({
|
|
30417
|
+
displayName: "DCHistoryPanel__TxType",
|
|
30418
|
+
componentId: "sc-debjdj-5"
|
|
30419
|
+
})(["font-size:8px;color:#f59e0b;font-family:'Press Start 2P',cursive;grid-column:1;grid-row:1;"]);
|
|
30420
|
+
var TxAmount = /*#__PURE__*/styled__default.span.withConfig({
|
|
30421
|
+
displayName: "DCHistoryPanel__TxAmount",
|
|
30422
|
+
componentId: "sc-debjdj-6"
|
|
30423
|
+
})(["font-size:10px;font-family:'Press Start 2P',cursive;color:", ";font-weight:bold;grid-column:2;grid-row:1;text-align:right;"], function (_ref2) {
|
|
30424
|
+
var $credit = _ref2.$credit;
|
|
30425
|
+
return $credit ? uiColors.green : uiColors.red;
|
|
30426
|
+
});
|
|
30427
|
+
var TxNote = /*#__PURE__*/styled__default.span.withConfig({
|
|
30428
|
+
displayName: "DCHistoryPanel__TxNote",
|
|
30429
|
+
componentId: "sc-debjdj-7"
|
|
30430
|
+
})(["font-size:7px;color:", ";font-family:'Press Start 2P',cursive;grid-column:1;grid-row:2;"], uiColors.lightGray);
|
|
30431
|
+
var TxDate = /*#__PURE__*/styled__default.span.withConfig({
|
|
30432
|
+
displayName: "DCHistoryPanel__TxDate",
|
|
30433
|
+
componentId: "sc-debjdj-8"
|
|
30434
|
+
})(["font-size:7px;color:", ";font-family:'Press Start 2P',cursive;grid-column:2;grid-row:2;text-align:right;"], uiColors.lightGray);
|
|
30435
|
+
var TxBalance = /*#__PURE__*/styled__default.span.withConfig({
|
|
30436
|
+
displayName: "DCHistoryPanel__TxBalance",
|
|
30437
|
+
componentId: "sc-debjdj-9"
|
|
30438
|
+
})(["font-size:7px;color:", ";font-family:'Press Start 2P',cursive;grid-column:1 / 3;grid-row:3;opacity:0.7;"], uiColors.white);
|
|
30439
|
+
var LoadingRow = /*#__PURE__*/styled__default.div.withConfig({
|
|
30440
|
+
displayName: "DCHistoryPanel__LoadingRow",
|
|
30441
|
+
componentId: "sc-debjdj-10"
|
|
30442
|
+
})(["display:flex;align-items:center;gap:8px;justify-content:center;padding:16px;color:", ";font-size:9px;font-family:'Press Start 2P',cursive;"], uiColors.white);
|
|
30443
|
+
var Spinner = /*#__PURE__*/styled__default.div.withConfig({
|
|
30444
|
+
displayName: "DCHistoryPanel__Spinner",
|
|
30445
|
+
componentId: "sc-debjdj-11"
|
|
30446
|
+
})(["border:3px solid rgba(255,255,255,0.2);border-radius:50%;border-top:3px solid #f59e0b;width:20px;height:20px;animation:spin 0.8s linear infinite;@keyframes spin{0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}}"]);
|
|
30447
|
+
var EmptyMessage = /*#__PURE__*/styled__default.div.withConfig({
|
|
30448
|
+
displayName: "DCHistoryPanel__EmptyMessage",
|
|
30449
|
+
componentId: "sc-debjdj-12"
|
|
30450
|
+
})(["font-size:9px;color:", ";font-family:'Press Start 2P',cursive;text-align:center;padding:20px;"], uiColors.lightGray);
|
|
30451
|
+
|
|
30452
|
+
// Global style to prevent body scrolling when modal is open
|
|
30453
|
+
var GlobalStyle = /*#__PURE__*/styled.createGlobalStyle(["body{overflow:hidden;width:100%;height:100%;}"]);
|
|
30454
|
+
var ConfirmModal = function ConfirmModal(_ref) {
|
|
30455
|
+
var onConfirm = _ref.onConfirm,
|
|
30456
|
+
onClose = _ref.onClose,
|
|
30457
|
+
_ref$message = _ref.message,
|
|
30458
|
+
message = _ref$message === void 0 ? 'Are you sure?' : _ref$message;
|
|
30459
|
+
var handleConfirm = React.useCallback(function (e) {
|
|
30460
|
+
e.preventDefault();
|
|
30461
|
+
e.stopPropagation();
|
|
30462
|
+
onConfirm();
|
|
30463
|
+
}, [onConfirm]);
|
|
30464
|
+
var handleClose = React.useCallback(function (e) {
|
|
30465
|
+
e.preventDefault();
|
|
30466
|
+
e.stopPropagation();
|
|
30467
|
+
onClose();
|
|
30468
|
+
}, [onClose]);
|
|
30469
|
+
// Fix type issues by separating event handlers for different event types
|
|
30470
|
+
var stopPropagationClick = React.useCallback(function (e) {
|
|
30471
|
+
e.stopPropagation();
|
|
30472
|
+
}, []);
|
|
30473
|
+
var stopPropagationTouch = React.useCallback(function (e) {
|
|
30474
|
+
e.stopPropagation();
|
|
30475
|
+
}, []);
|
|
30476
|
+
var stopPropagationPointer = React.useCallback(function (e) {
|
|
30477
|
+
e.stopPropagation();
|
|
30478
|
+
}, []);
|
|
30479
|
+
return React__default.createElement(ModalPortal, null, React__default.createElement(GlobalStyle, null), React__default.createElement(Overlay, {
|
|
30480
|
+
onPointerDown: handleClose
|
|
30481
|
+
}), React__default.createElement(ModalContainer, null, React__default.createElement(ModalContent, {
|
|
30482
|
+
onClick: stopPropagationClick,
|
|
30483
|
+
onTouchStart: stopPropagationTouch,
|
|
30484
|
+
onTouchEnd: stopPropagationTouch,
|
|
30485
|
+
onTouchMove: stopPropagationTouch,
|
|
30486
|
+
onPointerDown: stopPropagationPointer
|
|
30487
|
+
}, 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, {
|
|
30488
|
+
buttonType: exports.ButtonTypes.RPGUIButton,
|
|
30489
|
+
onPointerDown: handleClose
|
|
30490
|
+
}, "No")), React__default.createElement(Button, {
|
|
30491
|
+
buttonType: exports.ButtonTypes.RPGUIButton,
|
|
30492
|
+
onPointerDown: handleConfirm
|
|
30493
|
+
}, "Yes")))));
|
|
30494
|
+
};
|
|
30495
|
+
var Overlay = /*#__PURE__*/styled__default.div.withConfig({
|
|
30496
|
+
displayName: "ConfirmModal__Overlay",
|
|
30497
|
+
componentId: "sc-11qkyu1-0"
|
|
30498
|
+
})(["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;}}"]);
|
|
30499
|
+
var ModalContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
30500
|
+
displayName: "ConfirmModal__ModalContainer",
|
|
30501
|
+
componentId: "sc-11qkyu1-1"
|
|
30502
|
+
})(["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);"]);
|
|
30503
|
+
var ModalContent = /*#__PURE__*/styled__default.div.withConfig({
|
|
30504
|
+
displayName: "ConfirmModal__ModalContent",
|
|
30505
|
+
componentId: "sc-11qkyu1-2"
|
|
30506
|
+
})(["background-color:#2a2a2a;border:2px solid #444;border-radius:8px;padding:20px;min-width:300px;max-width:90%;margin:0 auto;animation:scaleIn 0.2s ease-out;transform-origin:center;box-shadow:0 4px 20px rgba(0,0,0,0.5),0 0 40px rgba(0,0,0,0.3);pointer-events:auto;@keyframes scaleIn{from{transform:scale(0.8);opacity:0;}to{transform:scale(1);opacity:1;}}@media (max-width:768px){padding:25px;width:85%;}"]);
|
|
30507
|
+
var MessageContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
30508
|
+
displayName: "ConfirmModal__MessageContainer",
|
|
30509
|
+
componentId: "sc-11qkyu1-3"
|
|
30510
|
+
})(["margin-bottom:20px;text-align:center;"]);
|
|
30511
|
+
var Message$1 = /*#__PURE__*/styled__default.p.withConfig({
|
|
30512
|
+
displayName: "ConfirmModal__Message",
|
|
30513
|
+
componentId: "sc-11qkyu1-4"
|
|
30514
|
+
})(["margin:0;font-size:16px;color:#fff;text-shadow:0 1px 0 rgba(0,0,0,0.5);@media (max-width:768px){font-size:18px;}"]);
|
|
30515
|
+
var ButtonsContainer$2 = /*#__PURE__*/styled__default.div.withConfig({
|
|
30516
|
+
displayName: "ConfirmModal__ButtonsContainer",
|
|
30517
|
+
componentId: "sc-11qkyu1-5"
|
|
30518
|
+
})(["display:flex;justify-content:center;gap:20px;@media (max-width:768px){gap:30px;transform:scale(1.1);margin-top:5px;}"]);
|
|
30519
|
+
var CancelButtonWrapper = /*#__PURE__*/styled__default.div.withConfig({
|
|
30520
|
+
displayName: "ConfirmModal__CancelButtonWrapper",
|
|
30521
|
+
componentId: "sc-11qkyu1-6"
|
|
30522
|
+
})(["filter:grayscale(0.7);"]);
|
|
30523
|
+
|
|
30524
|
+
var CTAButton = function CTAButton(_ref) {
|
|
30525
|
+
var icon = _ref.icon,
|
|
30526
|
+
label = _ref.label,
|
|
30527
|
+
onClick = _ref.onClick,
|
|
30528
|
+
className = _ref.className,
|
|
30529
|
+
_ref$fullWidth = _ref.fullWidth,
|
|
30530
|
+
fullWidth = _ref$fullWidth === void 0 ? false : _ref$fullWidth,
|
|
30531
|
+
_ref$textColor = _ref.textColor,
|
|
30532
|
+
textColor = _ref$textColor === void 0 ? '#ffffff' : _ref$textColor,
|
|
30533
|
+
_ref$iconColor = _ref.iconColor,
|
|
30534
|
+
iconColor = _ref$iconColor === void 0 ? '#f59e0b' : _ref$iconColor,
|
|
30535
|
+
_ref$disabled = _ref.disabled,
|
|
30536
|
+
disabled = _ref$disabled === void 0 ? false : _ref$disabled;
|
|
30537
|
+
return React__default.createElement(ButtonContainer$1, {
|
|
30538
|
+
className: className,
|
|
30539
|
+
onPointerDown: disabled ? undefined : onClick,
|
|
30540
|
+
"$fullWidth": fullWidth,
|
|
30541
|
+
"$disabled": disabled,
|
|
30542
|
+
"$color": textColor
|
|
30543
|
+
}, React__default.createElement(ButtonContent, null, React__default.createElement(IconWrapper$1, {
|
|
30544
|
+
"$color": iconColor,
|
|
30545
|
+
"$disabled": disabled
|
|
30546
|
+
}, icon), label && React__default.createElement(ButtonLabel, {
|
|
30547
|
+
"$color": textColor,
|
|
30548
|
+
"$disabled": disabled
|
|
30549
|
+
}, label)));
|
|
30550
|
+
};
|
|
30551
|
+
var ButtonContainer$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
30552
|
+
displayName: "CTAButton__ButtonContainer",
|
|
30553
|
+
componentId: "sc-1azvwn5-0"
|
|
30554
|
+
})(["display:inline-flex;align-items:center;padding:0.75rem 1.25rem;background:rgba(0,0,0,0.3);border:2px solid #f59e0b;box-shadow:0 0 10px rgba(245,158,11,0.3);border-radius:4px;cursor:", ";transition:all 0.2s;position:relative;opacity:", ";color:", ";", " &:hover{background:", ";box-shadow:", ";transform:", ";}&:active{transform:", ";box-shadow:", ";}&:before{content:'';position:absolute;inset:-1px;border-radius:5px;padding:1px;background:linear-gradient(45deg,#f59e0b,#fbbf24,#f59e0b);mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask-composite:exclude;-webkit-mask-composite:destination-out;}"], function (props) {
|
|
30555
|
+
return props.$disabled ? 'not-allowed' : 'pointer';
|
|
30556
|
+
}, function (props) {
|
|
30557
|
+
return props.$disabled ? 0.5 : 1;
|
|
30558
|
+
}, function (props) {
|
|
30559
|
+
return props.$disabled ? '#6b7280' : props.$color;
|
|
30560
|
+
}, function (props) {
|
|
30561
|
+
return props.$fullWidth && styled.css(["display:flex;justify-content:center;"]);
|
|
30562
|
+
}, function (props) {
|
|
30563
|
+
return props.$disabled ? 'rgba(0, 0, 0, 0.3)' : 'rgba(0, 0, 0, 0.4)';
|
|
30564
|
+
}, function (props) {
|
|
30565
|
+
return props.$disabled ? '0 0 10px rgba(245, 158, 11, 0.3)' : '0 0 15px rgba(245, 158, 11, 0.4)';
|
|
30566
|
+
}, function (props) {
|
|
30567
|
+
return props.$disabled ? 'none' : 'translateY(-1px)';
|
|
30568
|
+
}, function (props) {
|
|
30569
|
+
return props.$disabled ? 'none' : 'translateY(1px)';
|
|
30570
|
+
}, function (props) {
|
|
30571
|
+
return props.$disabled ? '0 0 10px rgba(245, 158, 11, 0.3)' : '0 0 5px rgba(245, 158, 11, 0.2)';
|
|
30572
|
+
});
|
|
30573
|
+
var ButtonContent = /*#__PURE__*/styled__default.div.withConfig({
|
|
30574
|
+
displayName: "CTAButton__ButtonContent",
|
|
30575
|
+
componentId: "sc-1azvwn5-1"
|
|
30576
|
+
})(["display:flex;align-items:center;gap:0.75rem;"]);
|
|
30577
|
+
var IconWrapper$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
30578
|
+
displayName: "CTAButton__IconWrapper",
|
|
30579
|
+
componentId: "sc-1azvwn5-2"
|
|
30580
|
+
})(["svg{font-size:1.25rem;color:", ";filter:drop-shadow(0 0 2px rgba(245,158,11,0.5));opacity:", ";}"], function (props) {
|
|
30581
|
+
return props.$color;
|
|
30582
|
+
}, function (props) {
|
|
30583
|
+
return props.$disabled ? 0.5 : 1;
|
|
30584
|
+
});
|
|
30585
|
+
var ButtonLabel = /*#__PURE__*/styled__default.span.withConfig({
|
|
30586
|
+
displayName: "CTAButton__ButtonLabel",
|
|
30587
|
+
componentId: "sc-1azvwn5-3"
|
|
30588
|
+
})(["color:", ";font-family:'Press Start 2P',cursive;font-size:0.875rem;text-shadow:0 0 4px rgba(245,158,11,0.5);opacity:", ";"], function (props) {
|
|
30589
|
+
return props.$color;
|
|
30590
|
+
}, function (props) {
|
|
30591
|
+
return props.$disabled ? 0.5 : 1;
|
|
30592
|
+
});
|
|
30593
|
+
|
|
30594
|
+
var DCTransferPanel = function DCTransferPanel(_ref) {
|
|
30595
|
+
var dcBalance = _ref.dcBalance,
|
|
30596
|
+
transferLoading = _ref.transferLoading,
|
|
30597
|
+
transferResult = _ref.transferResult,
|
|
30598
|
+
onSendTransfer = _ref.onSendTransfer,
|
|
30599
|
+
onClearTransferResult = _ref.onClearTransferResult,
|
|
30600
|
+
characterName = _ref.characterName,
|
|
30601
|
+
onInputFocus = _ref.onInputFocus,
|
|
30602
|
+
onInputBlur = _ref.onInputBlur;
|
|
30603
|
+
var _useState = React.useState(''),
|
|
30604
|
+
recipientName = _useState[0],
|
|
30605
|
+
setRecipientName = _useState[1];
|
|
30606
|
+
var _useState2 = React.useState(''),
|
|
30607
|
+
amount = _useState2[0],
|
|
30608
|
+
setAmount = _useState2[1];
|
|
30609
|
+
var _useState3 = React.useState(''),
|
|
30610
|
+
validationError = _useState3[0],
|
|
30611
|
+
setValidationError = _useState3[1];
|
|
30612
|
+
var _useState4 = React.useState(false),
|
|
30613
|
+
showConfirm = _useState4[0],
|
|
30614
|
+
setShowConfirm = _useState4[1];
|
|
30615
|
+
var clearResultTimerRef = React.useRef(null);
|
|
30616
|
+
React.useEffect(function () {
|
|
30617
|
+
if (transferResult) {
|
|
30618
|
+
if (clearResultTimerRef.current) {
|
|
30619
|
+
clearTimeout(clearResultTimerRef.current);
|
|
30620
|
+
}
|
|
30621
|
+
clearResultTimerRef.current = setTimeout(function () {
|
|
30622
|
+
onClearTransferResult();
|
|
30623
|
+
}, 5000);
|
|
30624
|
+
}
|
|
30625
|
+
return function () {
|
|
30626
|
+
if (clearResultTimerRef.current) {
|
|
30627
|
+
clearTimeout(clearResultTimerRef.current);
|
|
30628
|
+
}
|
|
30629
|
+
};
|
|
30630
|
+
}, [transferResult]);
|
|
30631
|
+
var validate = function validate() {
|
|
30632
|
+
var parsedAmount = parseInt(amount, 10);
|
|
30633
|
+
var trimmedRecipient = recipientName.trim();
|
|
30634
|
+
if (!trimmedRecipient) {
|
|
30635
|
+
setValidationError('Recipient name is required.');
|
|
30636
|
+
return false;
|
|
30637
|
+
}
|
|
30638
|
+
if (characterName && trimmedRecipient.toLowerCase() === characterName.toLowerCase()) {
|
|
30639
|
+
setValidationError('You cannot transfer DC to yourself.');
|
|
30640
|
+
return false;
|
|
30641
|
+
}
|
|
30642
|
+
if (isNaN(parsedAmount) || parsedAmount <= 0 || !Number.isInteger(parsedAmount)) {
|
|
30643
|
+
setValidationError('Amount must be a positive integer.');
|
|
30644
|
+
return false;
|
|
30645
|
+
}
|
|
30646
|
+
if (parsedAmount > dcBalance) {
|
|
30647
|
+
setValidationError('Insufficient DC balance.');
|
|
30648
|
+
return false;
|
|
30649
|
+
}
|
|
30650
|
+
setValidationError('');
|
|
30651
|
+
return true;
|
|
30652
|
+
};
|
|
30653
|
+
var handleSendClick = React.useCallback(function () {
|
|
30654
|
+
if (!validate()) return;
|
|
30655
|
+
setShowConfirm(true);
|
|
30656
|
+
}, [recipientName, amount, dcBalance, characterName]);
|
|
30657
|
+
var handleConfirmTransfer = React.useCallback(function () {
|
|
30658
|
+
setShowConfirm(false);
|
|
30659
|
+
onSendTransfer(recipientName.trim(), parseInt(amount, 10));
|
|
30660
|
+
setRecipientName('');
|
|
30661
|
+
setAmount('');
|
|
30662
|
+
}, [recipientName, amount, onSendTransfer]);
|
|
30663
|
+
return React__default.createElement(PanelContainer$1, null, React__default.createElement(FieldLabel, null, "Recipient Character Name"), React__default.createElement(StyledInput, {
|
|
30664
|
+
type: "text",
|
|
30665
|
+
value: recipientName,
|
|
30666
|
+
onChange: function onChange(e) {
|
|
30667
|
+
return setRecipientName(e.target.value);
|
|
30668
|
+
},
|
|
30669
|
+
onFocus: onInputFocus,
|
|
30670
|
+
onBlur: onInputBlur,
|
|
30671
|
+
placeholder: "Enter character name",
|
|
30672
|
+
disabled: transferLoading
|
|
30673
|
+
}), React__default.createElement(FieldLabel, null, "Amount (DC)"), React__default.createElement(StyledInput, {
|
|
30674
|
+
type: "number",
|
|
30675
|
+
min: 1,
|
|
30676
|
+
value: amount,
|
|
30677
|
+
onChange: function onChange(e) {
|
|
30678
|
+
return setAmount(e.target.value);
|
|
30679
|
+
},
|
|
30680
|
+
onFocus: onInputFocus,
|
|
30681
|
+
onBlur: onInputBlur,
|
|
30682
|
+
placeholder: "0",
|
|
30683
|
+
disabled: transferLoading
|
|
30684
|
+
}), validationError && React__default.createElement(ErrorMessage, null, validationError), React__default.createElement(ButtonRow, null, React__default.createElement(CTAButton, {
|
|
30685
|
+
icon: React__default.createElement(fa.FaPaperPlane, null),
|
|
30686
|
+
label: transferLoading ? 'Sending...' : 'Send',
|
|
30687
|
+
onClick: handleSendClick,
|
|
30688
|
+
disabled: transferLoading,
|
|
30689
|
+
fullWidth: true
|
|
30690
|
+
})), transferLoading && React__default.createElement(Spinner$1, null), transferResult && React__default.createElement(ResultMessage, {
|
|
30691
|
+
"$success": transferResult.success
|
|
30692
|
+
}, transferResult.message), showConfirm && React__default.createElement(ConfirmModal, {
|
|
30693
|
+
message: "Transfer " + parseInt(amount, 10) + " DC to \"" + recipientName.trim() + "\"?",
|
|
30694
|
+
onConfirm: handleConfirmTransfer,
|
|
30695
|
+
onClose: function onClose() {
|
|
30696
|
+
return setShowConfirm(false);
|
|
30697
|
+
}
|
|
30698
|
+
}));
|
|
30699
|
+
};
|
|
30700
|
+
var PanelContainer$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
30701
|
+
displayName: "DCTransferPanel__PanelContainer",
|
|
30702
|
+
componentId: "sc-k1vvb1-0"
|
|
30703
|
+
})(["display:flex;flex-direction:column;gap:8px;padding:8px 0;"]);
|
|
30704
|
+
var FieldLabel = /*#__PURE__*/styled__default.label.withConfig({
|
|
30705
|
+
displayName: "DCTransferPanel__FieldLabel",
|
|
30706
|
+
componentId: "sc-k1vvb1-1"
|
|
30707
|
+
})(["font-size:9px;color:#f59e0b;font-family:'Press Start 2P',cursive;margin-top:8px;"]);
|
|
30708
|
+
var StyledInput = /*#__PURE__*/styled__default(Input).withConfig({
|
|
30709
|
+
displayName: "DCTransferPanel__StyledInput",
|
|
30710
|
+
componentId: "sc-k1vvb1-2"
|
|
30711
|
+
})(["background:rgba(0,0,0,0.6);border:1px solid #f59e0b;color:", ";padding:6px 8px;font-size:12px;font-family:'Press Start 2P',cursive;width:100%;box-sizing:border-box;&:disabled{opacity:0.5;}&:focus{outline:none;border-color:", ";}"], uiColors.white, uiColors.white);
|
|
30712
|
+
var ButtonRow = /*#__PURE__*/styled__default.div.withConfig({
|
|
30713
|
+
displayName: "DCTransferPanel__ButtonRow",
|
|
30714
|
+
componentId: "sc-k1vvb1-3"
|
|
30715
|
+
})(["margin-top:8px;"]);
|
|
30716
|
+
var Spinner$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
30717
|
+
displayName: "DCTransferPanel__Spinner",
|
|
30718
|
+
componentId: "sc-k1vvb1-4"
|
|
30719
|
+
})(["border:3px solid rgba(255,255,255,0.2);border-radius:50%;border-top:3px solid #f59e0b;width:24px;height:24px;animation:spin 0.8s linear infinite;margin:8px auto 0;@keyframes spin{0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}}"]);
|
|
30720
|
+
var ResultMessage = /*#__PURE__*/styled__default.div.withConfig({
|
|
30721
|
+
displayName: "DCTransferPanel__ResultMessage",
|
|
30722
|
+
componentId: "sc-k1vvb1-5"
|
|
30723
|
+
})(["margin-top:8px;padding:8px;font-size:9px;font-family:'Press Start 2P',cursive;color:", ";border:1px solid ", ";background:rgba(0,0,0,0.4);text-align:center;"], function (_ref2) {
|
|
30724
|
+
var $success = _ref2.$success;
|
|
30725
|
+
return $success ? uiColors.green : uiColors.red;
|
|
30726
|
+
}, function (_ref3) {
|
|
30727
|
+
var $success = _ref3.$success;
|
|
30728
|
+
return $success ? uiColors.green : uiColors.red;
|
|
30729
|
+
});
|
|
30730
|
+
var ErrorMessage = /*#__PURE__*/styled__default.div.withConfig({
|
|
30731
|
+
displayName: "DCTransferPanel__ErrorMessage",
|
|
30732
|
+
componentId: "sc-k1vvb1-6"
|
|
30733
|
+
})(["font-size:9px;color:", ";font-family:'Press Start 2P',cursive;"], uiColors.red);
|
|
30734
|
+
|
|
30735
|
+
var DCWalletModal = function DCWalletModal(_ref) {
|
|
30736
|
+
var _historyData$transact, _historyData$totalPag, _historyData$currentP;
|
|
30737
|
+
var dcBalance = _ref.dcBalance,
|
|
30738
|
+
onClose = _ref.onClose,
|
|
30739
|
+
historyData = _ref.historyData,
|
|
30740
|
+
historyLoading = _ref.historyLoading,
|
|
30741
|
+
onRequestHistory = _ref.onRequestHistory,
|
|
30742
|
+
transferLoading = _ref.transferLoading,
|
|
30743
|
+
transferResult = _ref.transferResult,
|
|
30744
|
+
onSendTransfer = _ref.onSendTransfer,
|
|
30745
|
+
onClearTransferResult = _ref.onClearTransferResult,
|
|
30746
|
+
characterName = _ref.characterName,
|
|
30747
|
+
onInputFocus = _ref.onInputFocus,
|
|
30748
|
+
onInputBlur = _ref.onInputBlur;
|
|
30749
|
+
var _useState = React.useState('balance'),
|
|
30750
|
+
activeTab = _useState[0],
|
|
30751
|
+
setActiveTab = _useState[1];
|
|
30752
|
+
var stopPropagation = React.useCallback(function (e) {
|
|
30753
|
+
e.stopPropagation();
|
|
30754
|
+
}, []);
|
|
30755
|
+
var tabs = [{
|
|
30756
|
+
id: 'balance',
|
|
30757
|
+
title: 'Balance',
|
|
30758
|
+
content: React__default.createElement(BalanceContent, null, React__default.createElement(BalanceLabel, null, "Your DC Balance"), React__default.createElement(BalanceAmount, null, dcBalance.toLocaleString(), " DC"), React__default.createElement(BalanceHint, null, "Buy DC packs from the Store > Packs tab."))
|
|
30759
|
+
}, {
|
|
30760
|
+
id: 'transfer',
|
|
30761
|
+
title: 'Transfer',
|
|
30762
|
+
content: React__default.createElement(DCTransferPanel, {
|
|
30763
|
+
dcBalance: dcBalance,
|
|
30764
|
+
transferLoading: transferLoading,
|
|
30765
|
+
transferResult: transferResult,
|
|
30766
|
+
onSendTransfer: onSendTransfer,
|
|
30767
|
+
onClearTransferResult: onClearTransferResult,
|
|
30768
|
+
characterName: characterName,
|
|
30769
|
+
onInputFocus: onInputFocus,
|
|
30770
|
+
onInputBlur: onInputBlur
|
|
30771
|
+
})
|
|
30772
|
+
}, {
|
|
30773
|
+
id: 'history',
|
|
30774
|
+
title: 'History',
|
|
30775
|
+
content: React__default.createElement(DCHistoryPanel, {
|
|
30776
|
+
transactions: (_historyData$transact = historyData == null ? void 0 : historyData.transactions) != null ? _historyData$transact : [],
|
|
30777
|
+
totalPages: (_historyData$totalPag = historyData == null ? void 0 : historyData.totalPages) != null ? _historyData$totalPag : 0,
|
|
30778
|
+
currentPage: (_historyData$currentP = historyData == null ? void 0 : historyData.currentPage) != null ? _historyData$currentP : 1,
|
|
30779
|
+
loading: historyLoading,
|
|
30780
|
+
onRequestHistory: onRequestHistory
|
|
30781
|
+
})
|
|
30782
|
+
}];
|
|
30783
|
+
return React__default.createElement(ModalPortal, null, React__default.createElement(Overlay$1, {
|
|
30784
|
+
onPointerDown: onClose
|
|
30785
|
+
}), React__default.createElement(ModalContainer$1, null, React__default.createElement(ModalContent$1, {
|
|
30786
|
+
onClick: stopPropagation,
|
|
30787
|
+
onTouchStart: stopPropagation,
|
|
30788
|
+
onPointerDown: stopPropagation
|
|
30789
|
+
}, React__default.createElement(Header$2, null, React__default.createElement(Title$3, null, "DC Wallet"), React__default.createElement(CloseButton$4, {
|
|
30790
|
+
onPointerDown: onClose,
|
|
30791
|
+
"aria-label": "Close"
|
|
30792
|
+
}, React__default.createElement(fa.FaTimes, null))), React__default.createElement(WalletContainer, null, React__default.createElement(InternalTabs, {
|
|
30793
|
+
tabs: tabs,
|
|
30794
|
+
activeTab: activeTab,
|
|
30795
|
+
onTabChange: function onTabChange(tabId) {
|
|
30796
|
+
return setActiveTab(tabId);
|
|
30797
|
+
},
|
|
30798
|
+
activeTextColor: "#000000",
|
|
30799
|
+
activeColor: "#fef08a",
|
|
30800
|
+
inactiveColor: "#6b7280",
|
|
30801
|
+
borderColor: "#f59e0b",
|
|
30802
|
+
hoverColor: "#fef3c7"
|
|
30803
|
+
})))));
|
|
30804
|
+
};
|
|
30805
|
+
var Overlay$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
30806
|
+
displayName: "DCWalletModal__Overlay",
|
|
30807
|
+
componentId: "sc-12xy88y-0"
|
|
30808
|
+
})(["position:fixed;inset:0;background:rgba(0,0,0,0.65);z-index:1000;"]);
|
|
30809
|
+
var ModalContainer$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
30810
|
+
displayName: "DCWalletModal__ModalContainer",
|
|
30811
|
+
componentId: "sc-12xy88y-1"
|
|
30812
|
+
})(["position:fixed;inset:0;display:flex;align-items:center;justify-content:center;z-index:1001;pointer-events:none;"]);
|
|
30813
|
+
var ModalContent$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
30814
|
+
displayName: "DCWalletModal__ModalContent",
|
|
30815
|
+
componentId: "sc-12xy88y-2"
|
|
30816
|
+
})(["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;}}"]);
|
|
30817
|
+
var Header$2 = /*#__PURE__*/styled__default.div.withConfig({
|
|
30818
|
+
displayName: "DCWalletModal__Header",
|
|
30819
|
+
componentId: "sc-12xy88y-3"
|
|
30820
|
+
})(["display:flex;align-items:center;justify-content:space-between;"]);
|
|
30821
|
+
var Title$3 = /*#__PURE__*/styled__default.h3.withConfig({
|
|
30822
|
+
displayName: "DCWalletModal__Title",
|
|
30823
|
+
componentId: "sc-12xy88y-4"
|
|
30824
|
+
})(["margin:0;font-family:'Press Start 2P',cursive;font-size:0.7rem;color:#fef08a;"]);
|
|
30825
|
+
var CloseButton$4 = /*#__PURE__*/styled__default.button.withConfig({
|
|
30826
|
+
displayName: "DCWalletModal__CloseButton",
|
|
30827
|
+
componentId: "sc-12xy88y-5"
|
|
30828
|
+
})(["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;}"]);
|
|
30829
|
+
var WalletContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
30830
|
+
displayName: "DCWalletModal__WalletContainer",
|
|
30831
|
+
componentId: "sc-12xy88y-6"
|
|
30832
|
+
})(["display:flex;flex-direction:column;width:100%;min-height:300px;gap:0.5rem;"]);
|
|
30833
|
+
var BalanceContent = /*#__PURE__*/styled__default.div.withConfig({
|
|
30834
|
+
displayName: "DCWalletModal__BalanceContent",
|
|
30835
|
+
componentId: "sc-12xy88y-7"
|
|
30836
|
+
})(["display:flex;flex-direction:column;align-items:center;gap:12px;padding:32px 16px;"]);
|
|
30837
|
+
var BalanceLabel = /*#__PURE__*/styled__default.span.withConfig({
|
|
30838
|
+
displayName: "DCWalletModal__BalanceLabel",
|
|
30839
|
+
componentId: "sc-12xy88y-8"
|
|
30840
|
+
})(["font-family:'Press Start 2P',cursive;font-size:10px;color:", ";"], uiColors.lightGray);
|
|
30841
|
+
var BalanceAmount = /*#__PURE__*/styled__default.div.withConfig({
|
|
30842
|
+
displayName: "DCWalletModal__BalanceAmount",
|
|
30843
|
+
componentId: "sc-12xy88y-9"
|
|
30844
|
+
})(["font-family:'Press Start 2P',cursive;font-size:28px;color:#fef08a;text-shadow:2px 2px 0 #000;letter-spacing:2px;"]);
|
|
30845
|
+
var BalanceHint = /*#__PURE__*/styled__default.span.withConfig({
|
|
30846
|
+
displayName: "DCWalletModal__BalanceHint",
|
|
30847
|
+
componentId: "sc-12xy88y-10"
|
|
30848
|
+
})(["font-family:'Press Start 2P',cursive;font-size:7px;color:", ";"], uiColors.lightGray);
|
|
30849
|
+
|
|
30195
30850
|
var SimpleProgressBar = function SimpleProgressBar(_ref) {
|
|
30196
30851
|
var value = _ref.value,
|
|
30197
30852
|
_ref$bgColor = _ref.bgColor,
|
|
@@ -30200,7 +30855,7 @@ var SimpleProgressBar = function SimpleProgressBar(_ref) {
|
|
|
30200
30855
|
margin = _ref$margin === void 0 ? 20 : _ref$margin;
|
|
30201
30856
|
// Ensure the width is at least 1% if value is greater than 0, capped at 99.99%
|
|
30202
30857
|
var width = value > 0 ? Math.max(1, Math.min(99.99, value)) : 0;
|
|
30203
|
-
return React__default.createElement(Container$
|
|
30858
|
+
return React__default.createElement(Container$k, {
|
|
30204
30859
|
className: "simple-progress-bar"
|
|
30205
30860
|
}, React__default.createElement(ProgressBarContainer, {
|
|
30206
30861
|
margin: margin
|
|
@@ -30209,7 +30864,7 @@ var SimpleProgressBar = function SimpleProgressBar(_ref) {
|
|
|
30209
30864
|
bgColor: bgColor
|
|
30210
30865
|
}))));
|
|
30211
30866
|
};
|
|
30212
|
-
var Container$
|
|
30867
|
+
var Container$k = /*#__PURE__*/styled__default.div.withConfig({
|
|
30213
30868
|
displayName: "SimpleProgressBar__Container",
|
|
30214
30869
|
componentId: "sc-mbeil3-0"
|
|
30215
30870
|
})(["display:flex;justify-content:center;align-items:center;width:100%;"]);
|
|
@@ -30261,7 +30916,7 @@ var LoginStreakPanel = function LoginStreakPanel(_ref) {
|
|
|
30261
30916
|
onCloseButton: onClose,
|
|
30262
30917
|
type: exports.RPGUIContainerTypes.Framed,
|
|
30263
30918
|
width: isMobile ? '90vw' : '380px'
|
|
30264
|
-
}, React__default.createElement(Container$
|
|
30919
|
+
}, React__default.createElement(Container$l, null, React__default.createElement(StreakHeader, null, React__default.createElement(StreakDay, null, streak === 1 && !isConsecutive ? 'Day 1 — Fresh Start!' : "Day " + streak + " Streak!"), React__default.createElement(LongestStreak, null, "Longest: ", longestStreak, " days")), React__default.createElement(XPBonusSection, null, React__default.createElement(XPBonusLabel, null, "XP Bonus: ", React__default.createElement(XPBonusValue, {
|
|
30265
30920
|
isMax: isMaxBonus
|
|
30266
30921
|
}, "+", xpBonusPercent, "%"), isMaxBonus && React__default.createElement(MaxTag, null, " MAX")), React__default.createElement(SimpleProgressBar, {
|
|
30267
30922
|
value: maxXpBonusPercent > 0 ? xpBonusPercent / maxXpBonusPercent * 100 : 0,
|
|
@@ -30278,7 +30933,7 @@ var LoginStreakPanel = function LoginStreakPanel(_ref) {
|
|
|
30278
30933
|
}, milestone.reached ? '✓' : '○'));
|
|
30279
30934
|
})), React__default.createElement(MotivationalText, null, getMotivationalText(streak, isConsecutive, milestones))));
|
|
30280
30935
|
};
|
|
30281
|
-
var Container$
|
|
30936
|
+
var Container$l = /*#__PURE__*/styled__default.div.withConfig({
|
|
30282
30937
|
displayName: "LoginStreakPanel__Container",
|
|
30283
30938
|
componentId: "sc-1eiinkh-0"
|
|
30284
30939
|
})(["display:flex;flex-direction:column;gap:8px;padding:4px 14px 14px;color:", ";width:100%;box-sizing:border-box;hr.golden{margin:4px 0;}"], uiColors.white);
|
|
@@ -30716,7 +31371,7 @@ var DraggedItem = function DraggedItem(_ref) {
|
|
|
30716
31371
|
var centeredX = x - OFFSET$1;
|
|
30717
31372
|
var centeredY = y - OFFSET$1;
|
|
30718
31373
|
var stackInfo = onRenderStackInfo((_item$_id = item == null ? void 0 : item._id) != null ? _item$_id : '', (_item$stackQty = item == null ? void 0 : item.stackQty) != null ? _item$stackQty : 0);
|
|
30719
|
-
return React__default.createElement(Container$
|
|
31374
|
+
return React__default.createElement(Container$m, null, React__default.createElement(SpriteContainer, {
|
|
30720
31375
|
x: centeredX,
|
|
30721
31376
|
y: centeredY
|
|
30722
31377
|
}, React__default.createElement(SpriteFromAtlas, {
|
|
@@ -30734,7 +31389,7 @@ var DraggedItem = function DraggedItem(_ref) {
|
|
|
30734
31389
|
}), stackInfo));
|
|
30735
31390
|
};
|
|
30736
31391
|
var pulse = "\n @keyframes pulse {\n 0%, 100% {\n transform: scale(1) rotate(-3deg);\n }\n 50% {\n transform: scale(0.95) rotate(-3deg);\n }\n }\n";
|
|
30737
|
-
var Container$
|
|
31392
|
+
var Container$m = /*#__PURE__*/styled__default.div.withConfig({
|
|
30738
31393
|
displayName: "DraggedItem__Container",
|
|
30739
31394
|
componentId: "sc-mlzzcp-0"
|
|
30740
31395
|
})(["position:relative;"]);
|
|
@@ -30771,7 +31426,7 @@ var RelativeListMenu = function RelativeListMenu(_ref) {
|
|
|
30771
31426
|
document.removeEventListener('clickOutside', handleClickOutside);
|
|
30772
31427
|
};
|
|
30773
31428
|
}, [handleClickOutside]);
|
|
30774
|
-
return React__default.createElement(ModalPortal, null, React__default.createElement(Container$
|
|
31429
|
+
return React__default.createElement(ModalPortal, null, React__default.createElement(Container$n, Object.assign({
|
|
30775
31430
|
fontSize: fontSize,
|
|
30776
31431
|
ref: ref
|
|
30777
31432
|
}, pos), React__default.createElement("ul", {
|
|
@@ -30788,7 +31443,7 @@ var RelativeListMenu = function RelativeListMenu(_ref) {
|
|
|
30788
31443
|
}, (params == null ? void 0 : params.text) || 'No text');
|
|
30789
31444
|
}))));
|
|
30790
31445
|
};
|
|
30791
|
-
var Container$
|
|
31446
|
+
var Container$n = /*#__PURE__*/styled__default.div.withConfig({
|
|
30792
31447
|
displayName: "RelativeListMenu__Container",
|
|
30793
31448
|
componentId: "sc-7hohf-0"
|
|
30794
31449
|
})(["position:absolute;top:", "px;left:", "px;display:flex;flex-direction:column;width:max-content;justify-content:start;align-items:flex-start;li{font-size:", "em;}"], function (props) {
|
|
@@ -30955,97 +31610,25 @@ var EquipmentSet = function EquipmentSet(_ref) {
|
|
|
30955
31610
|
initialPosition: initialPosition,
|
|
30956
31611
|
onPositionChangeEnd: onPositionChangeEnd,
|
|
30957
31612
|
onPositionChangeStart: onPositionChangeStart
|
|
30958
|
-
}, React__default.createElement(EquipmentSetContainer, {
|
|
30959
|
-
className: "equipment-container-body"
|
|
30960
|
-
}, React__default.createElement(EquipmentColumn, null, onRenderEquipmentSlotRange(0, 3)), React__default.createElement(EquipmentColumn, null, onRenderEquipmentSlotRange(3, 7)), React__default.createElement(EquipmentColumn, null, onRenderEquipmentSlotRange(7, 10)))), React__default.createElement(ItemSlotToolTips, {
|
|
30961
|
-
dragScale: scale,
|
|
30962
|
-
atlasIMG: atlasIMG,
|
|
30963
|
-
atlasJSON: atlasJSON,
|
|
30964
|
-
equipmentSet: equipmentSet,
|
|
30965
|
-
onSelected: onSelected,
|
|
30966
|
-
isContextMenuDisabled: shared.isMobile()
|
|
30967
|
-
})));
|
|
30968
|
-
};
|
|
30969
|
-
var EquipmentSetContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
30970
|
-
displayName: "EquipmentSet__EquipmentSetContainer",
|
|
30971
|
-
componentId: "sc-1wuddg2-0"
|
|
30972
|
-
})(["width:inherit;display:flex;justify-content:center;flex-wrap:wrap;flex-direction:row;touch-action:none;overflow:hidden;"]);
|
|
30973
|
-
var EquipmentColumn = /*#__PURE__*/styled__default.div.withConfig({
|
|
30974
|
-
displayName: "EquipmentSet__EquipmentColumn",
|
|
30975
|
-
componentId: "sc-1wuddg2-1"
|
|
30976
|
-
})(["display:flex;justify-content:center;flex-wrap:wrap;flex-direction:column;touch-action:none;"]);
|
|
30977
|
-
|
|
30978
|
-
var UI_BREAKPOINT_MOBILE = '950px';
|
|
30979
|
-
var UI_BREAKPOINT_SMALL_LAPTOP = '1400px';
|
|
30980
|
-
|
|
30981
|
-
var InternalTabs = function InternalTabs(_ref) {
|
|
30982
|
-
var _tabs$, _tabs$find;
|
|
30983
|
-
var tabs = _ref.tabs,
|
|
30984
|
-
_ref$activeColor = _ref.activeColor,
|
|
30985
|
-
activeColor = _ref$activeColor === void 0 ? '#fef08a' : _ref$activeColor,
|
|
30986
|
-
_ref$activeTextColor = _ref.activeTextColor,
|
|
30987
|
-
activeTextColor = _ref$activeTextColor === void 0 ? '#000000' : _ref$activeTextColor,
|
|
30988
|
-
_ref$inactiveColor = _ref.inactiveColor,
|
|
30989
|
-
inactiveColor = _ref$inactiveColor === void 0 ? '#6b7280' : _ref$inactiveColor,
|
|
30990
|
-
_ref$borderColor = _ref.borderColor,
|
|
30991
|
-
borderColor = _ref$borderColor === void 0 ? '#f59e0b' : _ref$borderColor,
|
|
30992
|
-
_ref$hoverColor = _ref.hoverColor,
|
|
30993
|
-
hoverColor = _ref$hoverColor === void 0 ? '#fef3c7' : _ref$hoverColor,
|
|
30994
|
-
onTabChange = _ref.onTabChange,
|
|
30995
|
-
externalActiveTab = _ref.activeTab;
|
|
30996
|
-
var _useState = React.useState((_tabs$ = tabs[0]) == null ? void 0 : _tabs$.id),
|
|
30997
|
-
internalActiveTab = _useState[0],
|
|
30998
|
-
setInternalActiveTab = _useState[1];
|
|
30999
|
-
var activeTabId = externalActiveTab != null ? externalActiveTab : internalActiveTab;
|
|
31000
|
-
var handleTabClick = function handleTabClick(tabId) {
|
|
31001
|
-
setInternalActiveTab(tabId);
|
|
31002
|
-
onTabChange == null ? void 0 : onTabChange(tabId);
|
|
31003
|
-
};
|
|
31004
|
-
return React__default.createElement(TableWrapper, null, React__default.createElement(TabHeader, {
|
|
31005
|
-
borderColor: borderColor
|
|
31006
|
-
}, tabs.map(function (tab) {
|
|
31007
|
-
return React__default.createElement(TabButton, {
|
|
31008
|
-
key: tab.id,
|
|
31009
|
-
active: activeTabId === tab.id,
|
|
31010
|
-
activeColor: activeColor,
|
|
31011
|
-
activeTextColor: activeTextColor,
|
|
31012
|
-
inactiveColor: inactiveColor,
|
|
31013
|
-
borderColor: borderColor,
|
|
31014
|
-
hoverColor: hoverColor,
|
|
31015
|
-
onClick: function onClick() {
|
|
31016
|
-
return handleTabClick(tab.id);
|
|
31017
|
-
}
|
|
31018
|
-
}, tab.title);
|
|
31019
|
-
})), React__default.createElement(ContentWrapper, null, (_tabs$find = tabs.find(function (tab) {
|
|
31020
|
-
return tab.id === activeTabId;
|
|
31021
|
-
})) == null ? void 0 : _tabs$find.content));
|
|
31022
|
-
};
|
|
31023
|
-
var TableWrapper = /*#__PURE__*/styled__default.div.withConfig({
|
|
31024
|
-
displayName: "InternalTabs__TableWrapper",
|
|
31025
|
-
componentId: "sc-ldufv0-0"
|
|
31026
|
-
})(["width:100%;"]);
|
|
31027
|
-
var TabHeader = /*#__PURE__*/styled__default.div.withConfig({
|
|
31028
|
-
displayName: "InternalTabs__TabHeader",
|
|
31029
|
-
componentId: "sc-ldufv0-1"
|
|
31030
|
-
})(["display:flex;border-bottom:1px solid ", ";"], function (props) {
|
|
31031
|
-
return props.borderColor;
|
|
31032
|
-
});
|
|
31033
|
-
var TabButton = /*#__PURE__*/styled__default.button.withConfig({
|
|
31034
|
-
displayName: "InternalTabs__TabButton",
|
|
31035
|
-
componentId: "sc-ldufv0-2"
|
|
31036
|
-
})(["flex:1;padding:0.25rem 0.5rem;font-size:0.75rem;font-weight:500;border-right:1px solid ", ";background-color:", ";color:", ";white-space:nowrap;overflow:hidden;text-overflow:ellipsis;@media (min-width:480px){padding:0.375rem 0.75rem;font-size:0.8125rem;}@media (min-width:", "){padding:0.5rem 1rem;font-size:0.875rem;}&:last-child{border-right:none;}&:hover{background-color:", ";}"], function (props) {
|
|
31037
|
-
return props.borderColor;
|
|
31038
|
-
}, function (props) {
|
|
31039
|
-
return props.active ? props.activeColor : 'transparent';
|
|
31040
|
-
}, function (props) {
|
|
31041
|
-
return props.active ? props.activeTextColor : props.inactiveColor;
|
|
31042
|
-
}, UI_BREAKPOINT_MOBILE, function (props) {
|
|
31043
|
-
return props.active ? props.activeColor : props.hoverColor;
|
|
31044
|
-
});
|
|
31045
|
-
var ContentWrapper = /*#__PURE__*/styled__default.div.withConfig({
|
|
31046
|
-
displayName: "InternalTabs__ContentWrapper",
|
|
31047
|
-
componentId: "sc-ldufv0-3"
|
|
31048
|
-
})(["width:100%;"]);
|
|
31613
|
+
}, React__default.createElement(EquipmentSetContainer, {
|
|
31614
|
+
className: "equipment-container-body"
|
|
31615
|
+
}, React__default.createElement(EquipmentColumn, null, onRenderEquipmentSlotRange(0, 3)), React__default.createElement(EquipmentColumn, null, onRenderEquipmentSlotRange(3, 7)), React__default.createElement(EquipmentColumn, null, onRenderEquipmentSlotRange(7, 10)))), React__default.createElement(ItemSlotToolTips, {
|
|
31616
|
+
dragScale: scale,
|
|
31617
|
+
atlasIMG: atlasIMG,
|
|
31618
|
+
atlasJSON: atlasJSON,
|
|
31619
|
+
equipmentSet: equipmentSet,
|
|
31620
|
+
onSelected: onSelected,
|
|
31621
|
+
isContextMenuDisabled: shared.isMobile()
|
|
31622
|
+
})));
|
|
31623
|
+
};
|
|
31624
|
+
var EquipmentSetContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
31625
|
+
displayName: "EquipmentSet__EquipmentSetContainer",
|
|
31626
|
+
componentId: "sc-1wuddg2-0"
|
|
31627
|
+
})(["width:inherit;display:flex;justify-content:center;flex-wrap:wrap;flex-direction:row;touch-action:none;overflow:hidden;"]);
|
|
31628
|
+
var EquipmentColumn = /*#__PURE__*/styled__default.div.withConfig({
|
|
31629
|
+
displayName: "EquipmentSet__EquipmentColumn",
|
|
31630
|
+
componentId: "sc-1wuddg2-1"
|
|
31631
|
+
})(["display:flex;justify-content:center;flex-wrap:wrap;flex-direction:column;touch-action:none;"]);
|
|
31049
31632
|
|
|
31050
31633
|
var Table = /*#__PURE__*/styled__default.table.withConfig({
|
|
31051
31634
|
displayName: "Table",
|
|
@@ -31211,7 +31794,7 @@ var FriendRequestSection = function FriendRequestSection(_ref3) {
|
|
|
31211
31794
|
return onReject(character);
|
|
31212
31795
|
}
|
|
31213
31796
|
}, "Reject")));
|
|
31214
|
-
})) : React__default.createElement(EmptyMessage, null, "No pending friend requests"));
|
|
31797
|
+
})) : React__default.createElement(EmptyMessage$1, null, "No pending friend requests"));
|
|
31215
31798
|
};
|
|
31216
31799
|
// Styled components for FriendList UI
|
|
31217
31800
|
var ListWrapper = /*#__PURE__*/styled__default.div.withConfig({
|
|
@@ -31253,7 +31836,7 @@ var AcceptRejectActions = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
31253
31836
|
displayName: "FriendList__AcceptRejectActions",
|
|
31254
31837
|
componentId: "sc-3jf9vt-8"
|
|
31255
31838
|
})(["display:flex;gap:0.5rem;"]);
|
|
31256
|
-
var EmptyMessage = /*#__PURE__*/styled__default.p.withConfig({
|
|
31839
|
+
var EmptyMessage$1 = /*#__PURE__*/styled__default.p.withConfig({
|
|
31257
31840
|
displayName: "FriendList__EmptyMessage",
|
|
31258
31841
|
componentId: "sc-3jf9vt-9"
|
|
31259
31842
|
})(["text-align:center;color:#888;padding:1rem;font-size:", ";"], uiFonts.size.small);
|
|
@@ -31353,7 +31936,7 @@ var NPCDialogText = function NPCDialogText(_ref) {
|
|
|
31353
31936
|
var _useState2 = React.useState(false),
|
|
31354
31937
|
showGoNextIndicator = _useState2[0],
|
|
31355
31938
|
setShowGoNextIndicator = _useState2[1];
|
|
31356
|
-
return React__default.createElement(Container$
|
|
31939
|
+
return React__default.createElement(Container$o, null, React__default.createElement(DynamicText, {
|
|
31357
31940
|
text: (textChunks == null ? void 0 : textChunks[chunkIndex]) || '',
|
|
31358
31941
|
onFinish: function onFinish() {
|
|
31359
31942
|
setShowGoNextIndicator(true);
|
|
@@ -31371,7 +31954,7 @@ var NPCDialogText = function NPCDialogText(_ref) {
|
|
|
31371
31954
|
}
|
|
31372
31955
|
}));
|
|
31373
31956
|
};
|
|
31374
|
-
var Container$
|
|
31957
|
+
var Container$o = /*#__PURE__*/styled__default.div.withConfig({
|
|
31375
31958
|
displayName: "NPCDialogText__Container",
|
|
31376
31959
|
componentId: "sc-1cxkdh9-0"
|
|
31377
31960
|
})([""]);
|
|
@@ -31523,7 +32106,7 @@ var QuestionDialog = function QuestionDialog(_ref) {
|
|
|
31523
32106
|
return null;
|
|
31524
32107
|
});
|
|
31525
32108
|
};
|
|
31526
|
-
return React__default.createElement(Container$
|
|
32109
|
+
return React__default.createElement(Container$p, null, React__default.createElement(QuestionContainer, null, React__default.createElement(DynamicText, {
|
|
31527
32110
|
text: currentQuestion.text,
|
|
31528
32111
|
onStart: function onStart() {
|
|
31529
32112
|
return setCanShowAnswers(false);
|
|
@@ -31533,7 +32116,7 @@ var QuestionDialog = function QuestionDialog(_ref) {
|
|
|
31533
32116
|
}
|
|
31534
32117
|
})), canShowAnswers && React__default.createElement(AnswersContainer, null, onRenderCurrentAnswers()));
|
|
31535
32118
|
};
|
|
31536
|
-
var Container$
|
|
32119
|
+
var Container$p = /*#__PURE__*/styled__default.div.withConfig({
|
|
31537
32120
|
displayName: "QuestionDialog__Container",
|
|
31538
32121
|
componentId: "sc-bxc5u0-0"
|
|
31539
32122
|
})(["display:flex;word-break:break-all;box-sizing:border-box;justify-content:flex-start;align-items:flex-start;flex-wrap:wrap;"]);
|
|
@@ -31593,7 +32176,7 @@ var NPCDialog = function NPCDialog(_ref) {
|
|
|
31593
32176
|
}
|
|
31594
32177
|
})), type === exports.NPCDialogType.TextAndThumbnail && React__default.createElement(ThumbnailContainer, null, React__default.createElement(NPCThumbnail, {
|
|
31595
32178
|
src: imagePath || img$7
|
|
31596
|
-
}))) : React__default.createElement(React__default.Fragment, null, React__default.createElement(Container$
|
|
32179
|
+
}))) : React__default.createElement(React__default.Fragment, null, React__default.createElement(Container$q, null, React__default.createElement(CloseIcon, {
|
|
31597
32180
|
onPointerDown: _onClose
|
|
31598
32181
|
}, "X"), React__default.createElement(TextContainer$1, {
|
|
31599
32182
|
flex: type === exports.NPCDialogType.TextAndThumbnail ? '70%' : '100%'
|
|
@@ -31609,7 +32192,7 @@ var NPCDialog = function NPCDialog(_ref) {
|
|
|
31609
32192
|
src: imagePath || img$7
|
|
31610
32193
|
})))));
|
|
31611
32194
|
};
|
|
31612
|
-
var Container$
|
|
32195
|
+
var Container$q = /*#__PURE__*/styled__default.div.withConfig({
|
|
31613
32196
|
displayName: "NPCDialog__Container",
|
|
31614
32197
|
componentId: "sc-1b4aw74-0"
|
|
31615
32198
|
})(["display:flex;width:100%;height:100%;box-sizing:border-box;justify-content:center;align-items:flex-start;position:relative;"]);
|
|
@@ -31669,7 +32252,7 @@ var NPCMultiDialog = function NPCMultiDialog(_ref) {
|
|
|
31669
32252
|
type: exports.RPGUIContainerTypes.FramedGold,
|
|
31670
32253
|
width: '50%',
|
|
31671
32254
|
height: '180px'
|
|
31672
|
-
}, React__default.createElement(React__default.Fragment, null, React__default.createElement(Container$
|
|
32255
|
+
}, React__default.createElement(React__default.Fragment, null, React__default.createElement(Container$r, null, ((_textAndTypeArray$sli = textAndTypeArray[slide]) == null ? void 0 : _textAndTypeArray$sli.imageSide) === 'right' && React__default.createElement(React__default.Fragment, null, React__default.createElement(TextContainer$2, {
|
|
31673
32256
|
flex: '70%'
|
|
31674
32257
|
}, React__default.createElement(NPCDialogText, {
|
|
31675
32258
|
onStartStep: function onStartStep() {
|
|
@@ -31711,7 +32294,7 @@ var NPCMultiDialog = function NPCMultiDialog(_ref) {
|
|
|
31711
32294
|
src: img$6
|
|
31712
32295
|
}))), ")"));
|
|
31713
32296
|
};
|
|
31714
|
-
var Container$
|
|
32297
|
+
var Container$r = /*#__PURE__*/styled__default.div.withConfig({
|
|
31715
32298
|
displayName: "NPCMultiDialog__Container",
|
|
31716
32299
|
componentId: "sc-rvu5wg-0"
|
|
31717
32300
|
})(["display:flex;width:100%;height:100%;box-sizing:border-box;justify-content:center;align-items:flex-start;position:relative;"]);
|
|
@@ -31860,7 +32443,7 @@ var ImageCarousel = function ImageCarousel(_ref) {
|
|
|
31860
32443
|
onPointerDown: function onPointerDown() {
|
|
31861
32444
|
return goToNextImage();
|
|
31862
32445
|
}
|
|
31863
|
-
}))), onCloseButton && React__default.createElement(CloseButton$
|
|
32446
|
+
}))), onCloseButton && React__default.createElement(CloseButton$5, {
|
|
31864
32447
|
className: "container-close",
|
|
31865
32448
|
onPointerDown: onCloseButton
|
|
31866
32449
|
}, "X"));
|
|
@@ -31891,7 +32474,7 @@ var Description$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
31891
32474
|
}, function (props) {
|
|
31892
32475
|
return props.isTextFixed ? 'none' : 'rgba(0, 0, 0, 0.6)';
|
|
31893
32476
|
});
|
|
31894
|
-
var CloseButton$
|
|
32477
|
+
var CloseButton$5 = /*#__PURE__*/styled__default.div.withConfig({
|
|
31895
32478
|
displayName: "ImageCarousel__CloseButton",
|
|
31896
32479
|
componentId: "sc-jl6f8-4"
|
|
31897
32480
|
})(["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;}"]);
|
|
@@ -32073,48 +32656,6 @@ var usePagination = function usePagination(_ref) {
|
|
|
32073
32656
|
};
|
|
32074
32657
|
};
|
|
32075
32658
|
|
|
32076
|
-
var Pagination = function Pagination(_ref) {
|
|
32077
|
-
var currentPage = _ref.currentPage,
|
|
32078
|
-
totalPages = _ref.totalPages,
|
|
32079
|
-
onPageChange = _ref.onPageChange,
|
|
32080
|
-
className = _ref.className;
|
|
32081
|
-
return React__default.createElement(Container$r, {
|
|
32082
|
-
className: className
|
|
32083
|
-
}, React__default.createElement(PaginationButton$1, {
|
|
32084
|
-
onClick: function onClick() {
|
|
32085
|
-
return onPageChange(Math.max(1, currentPage - 1));
|
|
32086
|
-
},
|
|
32087
|
-
disabled: currentPage === 1
|
|
32088
|
-
}, React__default.createElement(fa.FaChevronLeft, {
|
|
32089
|
-
size: 12
|
|
32090
|
-
})), React__default.createElement(PageInfo$1, null, "Page ", currentPage, " of ", totalPages), React__default.createElement(PaginationButton$1, {
|
|
32091
|
-
onClick: function onClick() {
|
|
32092
|
-
return onPageChange(Math.min(totalPages, currentPage + 1));
|
|
32093
|
-
},
|
|
32094
|
-
disabled: currentPage === totalPages
|
|
32095
|
-
}, React__default.createElement(fa.FaChevronRight, {
|
|
32096
|
-
size: 12
|
|
32097
|
-
})));
|
|
32098
|
-
};
|
|
32099
|
-
var Container$r = /*#__PURE__*/styled__default.div.withConfig({
|
|
32100
|
-
displayName: "Pagination__Container",
|
|
32101
|
-
componentId: "sc-3k4m4u-0"
|
|
32102
|
-
})(["display:flex;align-items:center;justify-content:center;gap:16px;padding:8px;"]);
|
|
32103
|
-
var PaginationButton$1 = /*#__PURE__*/styled__default.button.withConfig({
|
|
32104
|
-
displayName: "Pagination__PaginationButton",
|
|
32105
|
-
componentId: "sc-3k4m4u-1"
|
|
32106
|
-
})(["background:none;border:none;color:", ";cursor:", ";opacity:", ";padding:4px;display:flex;align-items:center;justify-content:center;transition:opacity 0.2s;&:hover:not(:disabled){opacity:1;}"], function (props) {
|
|
32107
|
-
return props.disabled ? uiColors.darkGray : uiColors.yellow;
|
|
32108
|
-
}, function (props) {
|
|
32109
|
-
return props.disabled ? 'not-allowed' : 'pointer';
|
|
32110
|
-
}, function (props) {
|
|
32111
|
-
return props.disabled ? 0.5 : 0.8;
|
|
32112
|
-
});
|
|
32113
|
-
var PageInfo$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
32114
|
-
displayName: "Pagination__PageInfo",
|
|
32115
|
-
componentId: "sc-3k4m4u-2"
|
|
32116
|
-
})(["color:", ";font-size:0.8rem;font-family:'Press Start 2P',cursive;"], uiColors.lightGray);
|
|
32117
|
-
|
|
32118
32659
|
var SearchHeader$1 = function SearchHeader(_ref) {
|
|
32119
32660
|
var searchOptions = _ref.searchOptions,
|
|
32120
32661
|
filterOptions = _ref.filterOptions,
|
|
@@ -32209,7 +32750,7 @@ var PaginatedContent = function PaginatedContent(_ref) {
|
|
|
32209
32750
|
}, (searchOptions || filterOptions) && React__default.createElement(SearchHeader$1, {
|
|
32210
32751
|
searchOptions: searchOptions,
|
|
32211
32752
|
filterOptions: filterOptions
|
|
32212
|
-
}), items.length === 0 ? React__default.createElement(EmptyMessage$
|
|
32753
|
+
}), items.length === 0 ? React__default.createElement(EmptyMessage$2, null, emptyMessage) : React__default.createElement(React__default.Fragment, null, React__default.createElement(Content, {
|
|
32213
32754
|
className: "PaginatedContent-content " + layout,
|
|
32214
32755
|
"$gridColumns": gridColumns,
|
|
32215
32756
|
"$itemHeight": itemHeight
|
|
@@ -32245,7 +32786,7 @@ var PaginationContainer$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
32245
32786
|
displayName: "PaginatedContent__PaginationContainer",
|
|
32246
32787
|
componentId: "sc-lzp9hn-2"
|
|
32247
32788
|
})(["display:flex;justify-content:center;padding:0.5rem;@media (min-width:480px){padding:1rem;}"]);
|
|
32248
|
-
var EmptyMessage$
|
|
32789
|
+
var EmptyMessage$2 = /*#__PURE__*/styled__default.div.withConfig({
|
|
32249
32790
|
displayName: "PaginatedContent__EmptyMessage",
|
|
32250
32791
|
componentId: "sc-lzp9hn-3"
|
|
32251
32792
|
})(["text-align:center;color:#9ca3af;padding:2rem;flex:1;display:flex;align-items:center;justify-content:center;"]);
|
|
@@ -32348,24 +32889,24 @@ var BaseInformationDetails = function BaseInformationDetails(_ref) {
|
|
|
32348
32889
|
atlasIMG = _ref.atlasIMG,
|
|
32349
32890
|
onBack = _ref.onBack,
|
|
32350
32891
|
children = _ref.children;
|
|
32351
|
-
return React__default.createElement(Container$t, null, React__default.createElement(Overlay, {
|
|
32892
|
+
return React__default.createElement(Container$t, null, React__default.createElement(Overlay$2, {
|
|
32352
32893
|
onClick: onBack
|
|
32353
|
-
}), React__default.createElement(Modal, null, React__default.createElement(CloseButton$
|
|
32894
|
+
}), React__default.createElement(Modal, null, React__default.createElement(CloseButton$6, {
|
|
32354
32895
|
onClick: onBack
|
|
32355
|
-
}, React__default.createElement(fa.FaTimes, null)), React__default.createElement(Header$
|
|
32896
|
+
}, React__default.createElement(fa.FaTimes, null)), React__default.createElement(Header$3, null, React__default.createElement(SpriteContainer$2, null, React__default.createElement(SpriteFromAtlas, {
|
|
32356
32897
|
atlasJSON: atlasJSON,
|
|
32357
32898
|
atlasIMG: atlasIMG,
|
|
32358
32899
|
spriteKey: spriteKey,
|
|
32359
32900
|
width: 32,
|
|
32360
32901
|
height: 32,
|
|
32361
32902
|
imgScale: 1
|
|
32362
|
-
})), React__default.createElement(Title$
|
|
32903
|
+
})), React__default.createElement(Title$4, null, name)), React__default.createElement(Content$1, null, children)));
|
|
32363
32904
|
};
|
|
32364
32905
|
var Container$t = /*#__PURE__*/styled__default.div.withConfig({
|
|
32365
32906
|
displayName: "BaseInformationDetails__Container",
|
|
32366
32907
|
componentId: "sc-1vguuz8-0"
|
|
32367
32908
|
})(["position:fixed;inset:0;display:flex;justify-content:center;align-items:center;z-index:9999;"]);
|
|
32368
|
-
var Overlay = /*#__PURE__*/styled__default.div.withConfig({
|
|
32909
|
+
var Overlay$2 = /*#__PURE__*/styled__default.div.withConfig({
|
|
32369
32910
|
displayName: "BaseInformationDetails__Overlay",
|
|
32370
32911
|
componentId: "sc-1vguuz8-1"
|
|
32371
32912
|
})(["position:fixed;inset:0;background-color:rgba(0,0,0,0.8);"]);
|
|
@@ -32373,11 +32914,11 @@ var Modal = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
32373
32914
|
displayName: "BaseInformationDetails__Modal",
|
|
32374
32915
|
componentId: "sc-1vguuz8-2"
|
|
32375
32916
|
})(["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);
|
|
32376
|
-
var CloseButton$
|
|
32917
|
+
var CloseButton$6 = /*#__PURE__*/styled__default.button.withConfig({
|
|
32377
32918
|
displayName: "BaseInformationDetails__CloseButton",
|
|
32378
32919
|
componentId: "sc-1vguuz8-3"
|
|
32379
32920
|
})(["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);
|
|
32380
|
-
var Header$
|
|
32921
|
+
var Header$3 = /*#__PURE__*/styled__default.div.withConfig({
|
|
32381
32922
|
displayName: "BaseInformationDetails__Header",
|
|
32382
32923
|
componentId: "sc-1vguuz8-4"
|
|
32383
32924
|
})(["display:flex;align-items:center;gap:16px;margin-bottom:24px;"]);
|
|
@@ -32385,7 +32926,7 @@ var Content$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
32385
32926
|
displayName: "BaseInformationDetails__Content",
|
|
32386
32927
|
componentId: "sc-1vguuz8-5"
|
|
32387
32928
|
})(["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;}"]);
|
|
32388
|
-
var Title$
|
|
32929
|
+
var Title$4 = /*#__PURE__*/styled__default.h2.withConfig({
|
|
32389
32930
|
displayName: "BaseInformationDetails__Title",
|
|
32390
32931
|
componentId: "sc-1vguuz8-6"
|
|
32391
32932
|
})(["color:", ";font-size:1rem;margin:0;"], uiColors.yellow);
|
|
@@ -32405,21 +32946,21 @@ var Collapsible = function Collapsible(_ref) {
|
|
|
32405
32946
|
setIsOpen = _useState[1];
|
|
32406
32947
|
return React__default.createElement(Container$u, {
|
|
32407
32948
|
className: className
|
|
32408
|
-
}, React__default.createElement(Header$
|
|
32949
|
+
}, React__default.createElement(Header$4, {
|
|
32409
32950
|
onClick: function onClick() {
|
|
32410
32951
|
return setIsOpen(!isOpen);
|
|
32411
32952
|
}
|
|
32412
|
-
}, React__default.createElement(Title$
|
|
32953
|
+
}, React__default.createElement(Title$5, 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));
|
|
32413
32954
|
};
|
|
32414
32955
|
var Container$u = /*#__PURE__*/styled__default.div.withConfig({
|
|
32415
32956
|
displayName: "Collapsible__Container",
|
|
32416
32957
|
componentId: "sc-s4h8ey-0"
|
|
32417
32958
|
})(["background:rgba(0,0,0,0.3);border-radius:4px;overflow:hidden;border:1px solid ", ";"], uiColors.darkGray);
|
|
32418
|
-
var Header$
|
|
32959
|
+
var Header$4 = /*#__PURE__*/styled__default.div.withConfig({
|
|
32419
32960
|
displayName: "Collapsible__Header",
|
|
32420
32961
|
componentId: "sc-s4h8ey-1"
|
|
32421
32962
|
})(["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);}"]);
|
|
32422
|
-
var Title$
|
|
32963
|
+
var Title$5 = /*#__PURE__*/styled__default.h3.withConfig({
|
|
32423
32964
|
displayName: "Collapsible__Title",
|
|
32424
32965
|
componentId: "sc-s4h8ey-2"
|
|
32425
32966
|
})(["margin:0;font-size:0.6rem;color:", ";font-family:'Press Start 2P',cursive;letter-spacing:0.5px;"], uiColors.yellow);
|
|
@@ -32757,7 +33298,7 @@ var AdvancedFilters = function AdvancedFilters(_ref) {
|
|
|
32757
33298
|
return rangeValue[0] !== undefined || rangeValue[1] !== undefined;
|
|
32758
33299
|
}
|
|
32759
33300
|
return section.value !== 'all';
|
|
32760
|
-
}).length)), isOpen && React__default.createElement(Portal, null, isMobile && React__default.createElement(Overlay$
|
|
33301
|
+
}).length)), isOpen && React__default.createElement(Portal, null, isMobile && React__default.createElement(Overlay$3, null), React__default.createElement(FiltersPanel, {
|
|
32761
33302
|
ref: panelRef,
|
|
32762
33303
|
style: {
|
|
32763
33304
|
position: 'fixed',
|
|
@@ -32766,7 +33307,7 @@ var AdvancedFilters = function AdvancedFilters(_ref) {
|
|
|
32766
33307
|
zIndex: 9999
|
|
32767
33308
|
},
|
|
32768
33309
|
"$isMobile": isMobile
|
|
32769
|
-
}, React__default.createElement(FilterHeader, null, React__default.createElement(FilterTitle, null, "Advanced Filters"), React__default.createElement(CloseButton$
|
|
33310
|
+
}, React__default.createElement(FilterHeader, null, React__default.createElement(FilterTitle, null, "Advanced Filters"), React__default.createElement(CloseButton$7, {
|
|
32770
33311
|
onClick: handleClose
|
|
32771
33312
|
}, "\xD7")), sections.map(renderFilterSection), hasActiveFilters && React__default.createElement(ClearFiltersButton, {
|
|
32772
33313
|
onClick: onClearAll
|
|
@@ -32814,7 +33355,7 @@ var FilterHeader = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
32814
33355
|
displayName: "AdvancedFilters__FilterHeader",
|
|
32815
33356
|
componentId: "sc-1xj6ldr-4"
|
|
32816
33357
|
})(["display:flex;align-items:center;justify-content:space-between;padding-bottom:0.75rem;margin-bottom:0.5rem;border-bottom:1px solid #333;"]);
|
|
32817
|
-
var Overlay$
|
|
33358
|
+
var Overlay$3 = /*#__PURE__*/styled__default.div.withConfig({
|
|
32818
33359
|
displayName: "AdvancedFilters__Overlay",
|
|
32819
33360
|
componentId: "sc-1xj6ldr-5"
|
|
32820
33361
|
})(["position:fixed;top:0;left:0;right:0;bottom:0;background-color:rgba(0,0,0,0.6);z-index:9998;animation:fadeIn 0.2s ease-out;@keyframes fadeIn{from{opacity:0;}to{opacity:1;}}"]);
|
|
@@ -32838,7 +33379,7 @@ var ClearFiltersButton = /*#__PURE__*/styled__default.button.withConfig({
|
|
|
32838
33379
|
displayName: "AdvancedFilters__ClearFiltersButton",
|
|
32839
33380
|
componentId: "sc-1xj6ldr-10"
|
|
32840
33381
|
})(["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;}"]);
|
|
32841
|
-
var CloseButton$
|
|
33382
|
+
var CloseButton$7 = /*#__PURE__*/styled__default.button.withConfig({
|
|
32842
33383
|
displayName: "AdvancedFilters__CloseButton",
|
|
32843
33384
|
componentId: "sc-1xj6ldr-11"
|
|
32844
33385
|
})(["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;}"]);
|
|
@@ -33823,7 +34364,7 @@ var InformationCenter = function InformationCenter(_ref) {
|
|
|
33823
34364
|
return React__default.createElement(LoadingMessage, null, "Loading...");
|
|
33824
34365
|
}
|
|
33825
34366
|
if (error) {
|
|
33826
|
-
return React__default.createElement(ErrorMessage, null, error);
|
|
34367
|
+
return React__default.createElement(ErrorMessage$1, null, error);
|
|
33827
34368
|
}
|
|
33828
34369
|
var tabs = [{
|
|
33829
34370
|
id: 'bestiary',
|
|
@@ -33885,7 +34426,7 @@ var LoadingMessage = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
33885
34426
|
displayName: "InformationCenter__LoadingMessage",
|
|
33886
34427
|
componentId: "sc-1ttl62e-1"
|
|
33887
34428
|
})(["text-align:center;color:#ffffff;padding:2rem;"]);
|
|
33888
|
-
var ErrorMessage = /*#__PURE__*/styled__default.div.withConfig({
|
|
34429
|
+
var ErrorMessage$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
33889
34430
|
displayName: "InformationCenter__ErrorMessage",
|
|
33890
34431
|
componentId: "sc-1ttl62e-2"
|
|
33891
34432
|
})(["text-align:center;color:#ef4444;padding:2rem;"]);
|
|
@@ -34179,7 +34720,7 @@ var QuantitySelector = function QuantitySelector(_ref) {
|
|
|
34179
34720
|
return React__default.createElement(StyledContainer, {
|
|
34180
34721
|
type: exports.RPGUIContainerTypes.Framed,
|
|
34181
34722
|
width: "25rem"
|
|
34182
|
-
}, React__default.createElement(CloseButton$
|
|
34723
|
+
}, React__default.createElement(CloseButton$8, {
|
|
34183
34724
|
className: "container-close",
|
|
34184
34725
|
onPointerDown: onClose
|
|
34185
34726
|
}, "X"), React__default.createElement("h2", null, title), React__default.createElement(StyledForm, {
|
|
@@ -34191,7 +34732,7 @@ var QuantitySelector = function QuantitySelector(_ref) {
|
|
|
34191
34732
|
}
|
|
34192
34733
|
},
|
|
34193
34734
|
noValidate: true
|
|
34194
|
-
}, React__default.createElement(StyledInput, {
|
|
34735
|
+
}, React__default.createElement(StyledInput$1, {
|
|
34195
34736
|
ref: inputRef,
|
|
34196
34737
|
placeholder: "Enter quantity",
|
|
34197
34738
|
type: "number",
|
|
@@ -34224,7 +34765,7 @@ var StyledContainer = /*#__PURE__*/styled__default(RPGUIContainer).withConfig({
|
|
|
34224
34765
|
displayName: "QuantitySelector__StyledContainer",
|
|
34225
34766
|
componentId: "sc-z4ut57-0"
|
|
34226
34767
|
})(["position:relative;display:flex;flex-direction:column;align-items:center;padding:1rem;h2{margin:0;margin-bottom:1rem;font-size:1rem;}"]);
|
|
34227
|
-
var CloseButton$
|
|
34768
|
+
var CloseButton$8 = /*#__PURE__*/styled__default.div.withConfig({
|
|
34228
34769
|
displayName: "QuantitySelector__CloseButton",
|
|
34229
34770
|
componentId: "sc-z4ut57-1"
|
|
34230
34771
|
})(["position:absolute;top:3px;right:0px;color:white;z-index:22;font-size:1.5rem;cursor:pointer;"]);
|
|
@@ -34232,7 +34773,7 @@ var StyledForm = /*#__PURE__*/styled__default.form.withConfig({
|
|
|
34232
34773
|
displayName: "QuantitySelector__StyledForm",
|
|
34233
34774
|
componentId: "sc-z4ut57-2"
|
|
34234
34775
|
})(["display:flex;flex-direction:column;align-items:center;gap:1rem;width:100%;"]);
|
|
34235
|
-
var StyledInput = /*#__PURE__*/styled__default.input.withConfig({
|
|
34776
|
+
var StyledInput$1 = /*#__PURE__*/styled__default.input.withConfig({
|
|
34236
34777
|
displayName: "QuantitySelector__StyledInput",
|
|
34237
34778
|
componentId: "sc-z4ut57-3"
|
|
34238
34779
|
})(["width:100%;padding:0.5rem;background-color:rgba(0,0,0,0.25);border:none;color:white;font-size:1rem;text-align:center;&::-webkit-inner-spin-button,&::-webkit-outer-spin-button{-webkit-appearance:none;margin:0;}&[type='number']{-moz-appearance:textfield;}"]);
|
|
@@ -34495,78 +35036,6 @@ var ItemsContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
34495
35036
|
return isFullScreen && '50%';
|
|
34496
35037
|
});
|
|
34497
35038
|
|
|
34498
|
-
// Global style to prevent body scrolling when modal is open
|
|
34499
|
-
var GlobalStyle = /*#__PURE__*/styled.createGlobalStyle(["body{overflow:hidden;width:100%;height:100%;}"]);
|
|
34500
|
-
var ConfirmModal = function ConfirmModal(_ref) {
|
|
34501
|
-
var onConfirm = _ref.onConfirm,
|
|
34502
|
-
onClose = _ref.onClose,
|
|
34503
|
-
_ref$message = _ref.message,
|
|
34504
|
-
message = _ref$message === void 0 ? 'Are you sure?' : _ref$message;
|
|
34505
|
-
var handleConfirm = React.useCallback(function (e) {
|
|
34506
|
-
e.preventDefault();
|
|
34507
|
-
e.stopPropagation();
|
|
34508
|
-
onConfirm();
|
|
34509
|
-
}, [onConfirm]);
|
|
34510
|
-
var handleClose = React.useCallback(function (e) {
|
|
34511
|
-
e.preventDefault();
|
|
34512
|
-
e.stopPropagation();
|
|
34513
|
-
onClose();
|
|
34514
|
-
}, [onClose]);
|
|
34515
|
-
// Fix type issues by separating event handlers for different event types
|
|
34516
|
-
var stopPropagationClick = React.useCallback(function (e) {
|
|
34517
|
-
e.stopPropagation();
|
|
34518
|
-
}, []);
|
|
34519
|
-
var stopPropagationTouch = React.useCallback(function (e) {
|
|
34520
|
-
e.stopPropagation();
|
|
34521
|
-
}, []);
|
|
34522
|
-
var stopPropagationPointer = React.useCallback(function (e) {
|
|
34523
|
-
e.stopPropagation();
|
|
34524
|
-
}, []);
|
|
34525
|
-
return React__default.createElement(ModalPortal, null, React__default.createElement(GlobalStyle, null), React__default.createElement(Overlay$2, {
|
|
34526
|
-
onPointerDown: handleClose
|
|
34527
|
-
}), React__default.createElement(ModalContainer, null, React__default.createElement(ModalContent, {
|
|
34528
|
-
onClick: stopPropagationClick,
|
|
34529
|
-
onTouchStart: stopPropagationTouch,
|
|
34530
|
-
onTouchEnd: stopPropagationTouch,
|
|
34531
|
-
onTouchMove: stopPropagationTouch,
|
|
34532
|
-
onPointerDown: stopPropagationPointer
|
|
34533
|
-
}, 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, {
|
|
34534
|
-
buttonType: exports.ButtonTypes.RPGUIButton,
|
|
34535
|
-
onPointerDown: handleClose
|
|
34536
|
-
}, "No")), React__default.createElement(Button, {
|
|
34537
|
-
buttonType: exports.ButtonTypes.RPGUIButton,
|
|
34538
|
-
onPointerDown: handleConfirm
|
|
34539
|
-
}, "Yes")))));
|
|
34540
|
-
};
|
|
34541
|
-
var Overlay$2 = /*#__PURE__*/styled__default.div.withConfig({
|
|
34542
|
-
displayName: "ConfirmModal__Overlay",
|
|
34543
|
-
componentId: "sc-11qkyu1-0"
|
|
34544
|
-
})(["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;}}"]);
|
|
34545
|
-
var ModalContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
34546
|
-
displayName: "ConfirmModal__ModalContainer",
|
|
34547
|
-
componentId: "sc-11qkyu1-1"
|
|
34548
|
-
})(["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);"]);
|
|
34549
|
-
var ModalContent = /*#__PURE__*/styled__default.div.withConfig({
|
|
34550
|
-
displayName: "ConfirmModal__ModalContent",
|
|
34551
|
-
componentId: "sc-11qkyu1-2"
|
|
34552
|
-
})(["background-color:#2a2a2a;border:2px solid #444;border-radius:8px;padding:20px;min-width:300px;max-width:90%;margin:0 auto;animation:scaleIn 0.2s ease-out;transform-origin:center;box-shadow:0 4px 20px rgba(0,0,0,0.5),0 0 40px rgba(0,0,0,0.3);pointer-events:auto;@keyframes scaleIn{from{transform:scale(0.8);opacity:0;}to{transform:scale(1);opacity:1;}}@media (max-width:768px){padding:25px;width:85%;}"]);
|
|
34553
|
-
var MessageContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
34554
|
-
displayName: "ConfirmModal__MessageContainer",
|
|
34555
|
-
componentId: "sc-11qkyu1-3"
|
|
34556
|
-
})(["margin-bottom:20px;text-align:center;"]);
|
|
34557
|
-
var Message$1 = /*#__PURE__*/styled__default.p.withConfig({
|
|
34558
|
-
displayName: "ConfirmModal__Message",
|
|
34559
|
-
componentId: "sc-11qkyu1-4"
|
|
34560
|
-
})(["margin:0;font-size:16px;color:#fff;text-shadow:0 1px 0 rgba(0,0,0,0.5);@media (max-width:768px){font-size:18px;}"]);
|
|
34561
|
-
var ButtonsContainer$2 = /*#__PURE__*/styled__default.div.withConfig({
|
|
34562
|
-
displayName: "ConfirmModal__ButtonsContainer",
|
|
34563
|
-
componentId: "sc-11qkyu1-5"
|
|
34564
|
-
})(["display:flex;justify-content:center;gap:20px;@media (max-width:768px){gap:30px;transform:scale(1.1);margin-top:5px;}"]);
|
|
34565
|
-
var CancelButtonWrapper = /*#__PURE__*/styled__default.div.withConfig({
|
|
34566
|
-
displayName: "ConfirmModal__CancelButtonWrapper",
|
|
34567
|
-
componentId: "sc-11qkyu1-6"
|
|
34568
|
-
})(["filter:grayscale(0.7);"]);
|
|
34569
|
-
|
|
34570
35039
|
var ColorSelector = function ColorSelector(_ref) {
|
|
34571
35040
|
var selectedColor = _ref.selectedColor,
|
|
34572
35041
|
isOpen = _ref.isOpen,
|
|
@@ -34609,13 +35078,13 @@ var ColorSelector = function ColorSelector(_ref) {
|
|
|
34609
35078
|
cancelDrag: ".react-colorful",
|
|
34610
35079
|
width: "25rem",
|
|
34611
35080
|
onCloseButton: onClose
|
|
34612
|
-
}, React__default.createElement(Container$y, null, React__default.createElement(Header$
|
|
35081
|
+
}, React__default.createElement(Container$y, null, React__default.createElement(Header$5, null, "Select Color"), React__default.createElement(ColorPickerWrapper, null, React__default.createElement(reactColorful.HexColorPicker, {
|
|
34613
35082
|
color: currentColor,
|
|
34614
35083
|
onChange: function onChange(color) {
|
|
34615
35084
|
setCurrentColor(color);
|
|
34616
35085
|
_onChange(color);
|
|
34617
35086
|
}
|
|
34618
|
-
})), React__default.createElement(ButtonContainer$
|
|
35087
|
+
})), React__default.createElement(ButtonContainer$2, null, React__default.createElement(Button, {
|
|
34619
35088
|
buttonType: exports.ButtonTypes.RPGUIButton,
|
|
34620
35089
|
type: "button",
|
|
34621
35090
|
onClick: handleConfirm
|
|
@@ -34629,7 +35098,7 @@ var Container$y = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
34629
35098
|
displayName: "ItemPropertyColorSelector__Container",
|
|
34630
35099
|
componentId: "sc-me1r4z-0"
|
|
34631
35100
|
})(["text-align:center;background:inherit;display:flex;flex-direction:column;gap:1.5rem;align-items:center;width:100%;max-width:24rem;margin:0 auto;"]);
|
|
34632
|
-
var Header$
|
|
35101
|
+
var Header$5 = /*#__PURE__*/styled__default.h2.withConfig({
|
|
34633
35102
|
displayName: "ItemPropertyColorSelector__Header",
|
|
34634
35103
|
componentId: "sc-me1r4z-1"
|
|
34635
35104
|
})(["color:white;font-size:1rem;margin:0;width:100%;text-align:center;"]);
|
|
@@ -34637,7 +35106,7 @@ var ColorPickerWrapper = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
34637
35106
|
displayName: "ItemPropertyColorSelector__ColorPickerWrapper",
|
|
34638
35107
|
componentId: "sc-me1r4z-2"
|
|
34639
35108
|
})(["display:flex;justify-content:center;width:100%;.react-colorful{width:100%;max-width:200px;}"]);
|
|
34640
|
-
var ButtonContainer$
|
|
35109
|
+
var ButtonContainer$2 = /*#__PURE__*/styled__default.div.withConfig({
|
|
34641
35110
|
displayName: "ItemPropertyColorSelector__ButtonContainer",
|
|
34642
35111
|
componentId: "sc-me1r4z-3"
|
|
34643
35112
|
})(["display:flex;justify-content:center;width:100%;"]);
|
|
@@ -34700,7 +35169,7 @@ var GemSelector = function GemSelector(_ref) {
|
|
|
34700
35169
|
scale: scale,
|
|
34701
35170
|
cancelDrag: ".gem-selector-container",
|
|
34702
35171
|
onCloseButton: onClose
|
|
34703
|
-
}, React__default.createElement(ContentWrapper$1, null, React__default.createElement(Header$
|
|
35172
|
+
}, React__default.createElement(ContentWrapper$1, null, React__default.createElement(Header$6, null, React__default.createElement(Title$6, 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) {
|
|
34704
35173
|
return React__default.createElement(GemItem, {
|
|
34705
35174
|
key: gem.key + "-" + index
|
|
34706
35175
|
}, React__default.createElement(CheckItemWrapper$1, null, React__default.createElement(CheckItem, {
|
|
@@ -34731,7 +35200,7 @@ var GemSelector = function GemSelector(_ref) {
|
|
|
34731
35200
|
disabled: selectedGems.length === 0
|
|
34732
35201
|
}, "Confirm"))));
|
|
34733
35202
|
};
|
|
34734
|
-
var Title$
|
|
35203
|
+
var Title$6 = /*#__PURE__*/styled__default.h1.withConfig({
|
|
34735
35204
|
displayName: "GemSelector__Title",
|
|
34736
35205
|
componentId: "sc-gbt8g4-0"
|
|
34737
35206
|
})(["font-size:0.8rem;color:", " !important;"], uiColors.yellow);
|
|
@@ -34739,7 +35208,7 @@ var Subtitle = /*#__PURE__*/styled__default.h2.withConfig({
|
|
|
34739
35208
|
displayName: "GemSelector__Subtitle",
|
|
34740
35209
|
componentId: "sc-gbt8g4-1"
|
|
34741
35210
|
})(["font-size:0.6rem;color:", ";margin:0;"], uiColors.white);
|
|
34742
|
-
var Header$
|
|
35211
|
+
var Header$6 = /*#__PURE__*/styled__default.div.withConfig({
|
|
34743
35212
|
displayName: "GemSelector__Header",
|
|
34744
35213
|
componentId: "sc-gbt8g4-2"
|
|
34745
35214
|
})(["text-align:center;padding:5px;border-bottom:2px solid #444;"]);
|
|
@@ -34804,7 +35273,7 @@ var ItemSelector = function ItemSelector(_ref) {
|
|
|
34804
35273
|
style: {
|
|
34805
35274
|
width: '100%'
|
|
34806
35275
|
}
|
|
34807
|
-
}, React__default.createElement(Title$
|
|
35276
|
+
}, React__default.createElement(Title$7, null, 'Harvesting instruments'), React__default.createElement(Subtitle$1, null, 'Use the tool, you need it'), React__default.createElement("hr", {
|
|
34808
35277
|
className: "golden"
|
|
34809
35278
|
})), React__default.createElement(RadioInputScroller$1, null, options == null ? void 0 : options.map(function (option, index) {
|
|
34810
35279
|
return React__default.createElement(RadioOptionsWrapper$1, {
|
|
@@ -34833,7 +35302,7 @@ var ItemSelector = function ItemSelector(_ref) {
|
|
|
34833
35302
|
buttonType: exports.ButtonTypes.RPGUIButton
|
|
34834
35303
|
}, "Select")));
|
|
34835
35304
|
};
|
|
34836
|
-
var Title$
|
|
35305
|
+
var Title$7 = /*#__PURE__*/styled__default.h1.withConfig({
|
|
34837
35306
|
displayName: "ItemSelector__Title",
|
|
34838
35307
|
componentId: "sc-gptoxp-0"
|
|
34839
35308
|
})(["font-size:0.6rem;color:yellow !important;"]);
|
|
@@ -35085,7 +35554,7 @@ var MarketplaceRows = function MarketplaceRows(_ref) {
|
|
|
35085
35554
|
maxLines: 1,
|
|
35086
35555
|
maxWidth: "200px",
|
|
35087
35556
|
fontSize: "10px"
|
|
35088
|
-
}, "$", itemPrice)))), React__default.createElement(ButtonContainer$
|
|
35557
|
+
}, "$", itemPrice)))), React__default.createElement(ButtonContainer$3, null, React__default.createElement(Button, {
|
|
35089
35558
|
buttonType: exports.ButtonTypes.RPGUIButton,
|
|
35090
35559
|
disabled: disabled,
|
|
35091
35560
|
onPointerDown: function onPointerDown() {
|
|
@@ -35127,7 +35596,7 @@ var PriceValue = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
35127
35596
|
displayName: "MarketplaceRows__PriceValue",
|
|
35128
35597
|
componentId: "sc-wmpr1o-7"
|
|
35129
35598
|
})(["margin-left:40px;"]);
|
|
35130
|
-
var ButtonContainer$
|
|
35599
|
+
var ButtonContainer$3 = /*#__PURE__*/styled__default.div.withConfig({
|
|
35131
35600
|
displayName: "MarketplaceRows__ButtonContainer",
|
|
35132
35601
|
componentId: "sc-wmpr1o-8"
|
|
35133
35602
|
})(["margin:auto;"]);
|
|
@@ -35703,7 +36172,7 @@ var PartyCreate = function PartyCreate(_ref) {
|
|
|
35703
36172
|
style: {
|
|
35704
36173
|
width: '100%'
|
|
35705
36174
|
}
|
|
35706
|
-
}, React__default.createElement(Title$
|
|
36175
|
+
}, React__default.createElement(Title$8, null, "Create Party"), React__default.createElement("hr", {
|
|
35707
36176
|
className: "golden"
|
|
35708
36177
|
}))), React__default.createElement("h1", null, "Type your party name"), React__default.createElement(Input, {
|
|
35709
36178
|
placeholder: "Type party name",
|
|
@@ -35726,7 +36195,7 @@ var Wrapper$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
35726
36195
|
displayName: "PartyCreate__Wrapper",
|
|
35727
36196
|
componentId: "sc-13brop0-0"
|
|
35728
36197
|
})(["display:flex;flex-direction:column;width:100%;"]);
|
|
35729
|
-
var Title$
|
|
36198
|
+
var Title$8 = /*#__PURE__*/styled__default.h1.withConfig({
|
|
35730
36199
|
displayName: "PartyCreate__Title",
|
|
35731
36200
|
componentId: "sc-13brop0-1"
|
|
35732
36201
|
})(["font-size:0.6rem;color:", " !important;"], uiColors.yellow);
|
|
@@ -35775,7 +36244,7 @@ var PartyDashboard = function PartyDashboard(_ref) {
|
|
|
35775
36244
|
style: {
|
|
35776
36245
|
width: '100%'
|
|
35777
36246
|
}
|
|
35778
|
-
}, React__default.createElement(Title$
|
|
36247
|
+
}, React__default.createElement(Title$9, null, "Party Dashboard"), React__default.createElement(Button, {
|
|
35779
36248
|
buttonType: exports.ButtonTypes.RPGUIButton
|
|
35780
36249
|
}, "Create"), React__default.createElement("hr", {
|
|
35781
36250
|
className: "golden"
|
|
@@ -35802,7 +36271,7 @@ var RowsWrapper = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
35802
36271
|
displayName: "PartyDashboard__RowsWrapper",
|
|
35803
36272
|
componentId: "sc-16cm41r-1"
|
|
35804
36273
|
})(["overflow-y:scroll;-webkit-overflow-scrolling:touch;width:100%;height:200px;"]);
|
|
35805
|
-
var Title$
|
|
36274
|
+
var Title$9 = /*#__PURE__*/styled__default.h1.withConfig({
|
|
35806
36275
|
displayName: "PartyDashboard__Title",
|
|
35807
36276
|
componentId: "sc-16cm41r-2"
|
|
35808
36277
|
})(["font-size:0.6rem;color:", " !important;"], uiColors.yellow);
|
|
@@ -35839,7 +36308,7 @@ var PartyInvite = function PartyInvite(_ref) {
|
|
|
35839
36308
|
style: {
|
|
35840
36309
|
width: '100%'
|
|
35841
36310
|
}
|
|
35842
|
-
}, React__default.createElement(Title$
|
|
36311
|
+
}, React__default.createElement(Title$a, null, "Invite for Party"), React__default.createElement("hr", {
|
|
35843
36312
|
className: "golden"
|
|
35844
36313
|
}))), React__default.createElement(RowsWrapper$1, {
|
|
35845
36314
|
className: "playersRows"
|
|
@@ -35858,7 +36327,7 @@ var Wrapper$3 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
35858
36327
|
displayName: "PartyInvite__Wrapper",
|
|
35859
36328
|
componentId: "sc-eu8ggt-0"
|
|
35860
36329
|
})(["display:flex;flex-direction:column;width:100%;"]);
|
|
35861
|
-
var Title$
|
|
36330
|
+
var Title$a = /*#__PURE__*/styled__default.h1.withConfig({
|
|
35862
36331
|
displayName: "PartyInvite__Title",
|
|
35863
36332
|
componentId: "sc-eu8ggt-1"
|
|
35864
36333
|
})(["font-size:0.6rem;color:", " !important;"], uiColors.yellow);
|
|
@@ -35895,7 +36364,7 @@ var PartyManagerRow = function PartyManagerRow(_ref) {
|
|
|
35895
36364
|
}, charName, " ", isCurrentUser ? '(You)' : '', " ", isLeader ? '(Leader)' : '')), React__default.createElement(TextContainer$5, null, React__default.createElement(Ellipsis, {
|
|
35896
36365
|
maxLines: 1,
|
|
35897
36366
|
maxWidth: "300px"
|
|
35898
|
-
}, charClass)), React__default.createElement(ButtonContainer$
|
|
36367
|
+
}, charClass)), React__default.createElement(ButtonContainer$4, null, canRemove && React__default.createElement(HighlightedText, {
|
|
35899
36368
|
onPointerDown: function onPointerDown() {
|
|
35900
36369
|
return onRemovePlayer(id);
|
|
35901
36370
|
}
|
|
@@ -35913,7 +36382,7 @@ var TextContainer$5 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
35913
36382
|
displayName: "PartyManagerRows__TextContainer",
|
|
35914
36383
|
componentId: "sc-uqajew-1"
|
|
35915
36384
|
})(["color:", ";overflow:hidden;white-space:nowrap;text-overflow:ellipsis;"], uiColors.white);
|
|
35916
|
-
var ButtonContainer$
|
|
36385
|
+
var ButtonContainer$4 = /*#__PURE__*/styled__default.div.withConfig({
|
|
35917
36386
|
displayName: "PartyManagerRows__ButtonContainer",
|
|
35918
36387
|
componentId: "sc-uqajew-2"
|
|
35919
36388
|
})(["display:flex;align-items:center;gap:1rem;justify-content:flex-start;"]);
|
|
@@ -36300,7 +36769,7 @@ var QuestInfo = function QuestInfo(_ref) {
|
|
|
36300
36769
|
onPointerDown: onRightClick
|
|
36301
36770
|
}), React__default.createElement(QuestContainer, null, React__default.createElement(TitleContainer$1, {
|
|
36302
36771
|
className: "drag-handler"
|
|
36303
|
-
}, React__default.createElement(Title$
|
|
36772
|
+
}, React__default.createElement(Title$b, null, React__default.createElement(Thumbnail, {
|
|
36304
36773
|
src: quests[currentIndex].thumbnail || img$8
|
|
36305
36774
|
}), quests[currentIndex].title), React__default.createElement(QuestSplitDiv, null, React__default.createElement("hr", {
|
|
36306
36775
|
className: "golden"
|
|
@@ -36319,7 +36788,7 @@ var QuestInfo = function QuestInfo(_ref) {
|
|
|
36319
36788
|
}, button.title);
|
|
36320
36789
|
})))) : React__default.createElement(QuestsContainer, null, React__default.createElement(QuestContainer, null, React__default.createElement(TitleContainer$1, {
|
|
36321
36790
|
className: "drag-handler"
|
|
36322
|
-
}, React__default.createElement(Title$
|
|
36791
|
+
}, React__default.createElement(Title$b, null, React__default.createElement(Thumbnail, {
|
|
36323
36792
|
src: quests[0].thumbnail || img$8
|
|
36324
36793
|
}), quests[0].title), React__default.createElement(QuestSplitDiv, null, React__default.createElement("hr", {
|
|
36325
36794
|
className: "golden"
|
|
@@ -36366,7 +36835,7 @@ var TitleContainer$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
36366
36835
|
displayName: "QuestInfo__TitleContainer",
|
|
36367
36836
|
componentId: "sc-1wccpiy-6"
|
|
36368
36837
|
})(["width:100%;display:flex;flex-wrap:wrap;justify-content:flex-start;align-items:center;margin-top:1rem;"]);
|
|
36369
|
-
var Title$
|
|
36838
|
+
var Title$b = /*#__PURE__*/styled__default.h1.withConfig({
|
|
36370
36839
|
displayName: "QuestInfo__Title",
|
|
36371
36840
|
componentId: "sc-1wccpiy-7"
|
|
36372
36841
|
})(["color:white;z-index:22;font-size:", " !important;color:", " !important;"], uiFonts.size.medium, uiColors.yellow);
|
|
@@ -36506,76 +36975,6 @@ var RPGUIRoot = function RPGUIRoot(_ref) {
|
|
|
36506
36975
|
}, children));
|
|
36507
36976
|
};
|
|
36508
36977
|
|
|
36509
|
-
var CTAButton = function CTAButton(_ref) {
|
|
36510
|
-
var icon = _ref.icon,
|
|
36511
|
-
label = _ref.label,
|
|
36512
|
-
onClick = _ref.onClick,
|
|
36513
|
-
className = _ref.className,
|
|
36514
|
-
_ref$fullWidth = _ref.fullWidth,
|
|
36515
|
-
fullWidth = _ref$fullWidth === void 0 ? false : _ref$fullWidth,
|
|
36516
|
-
_ref$textColor = _ref.textColor,
|
|
36517
|
-
textColor = _ref$textColor === void 0 ? '#ffffff' : _ref$textColor,
|
|
36518
|
-
_ref$iconColor = _ref.iconColor,
|
|
36519
|
-
iconColor = _ref$iconColor === void 0 ? '#f59e0b' : _ref$iconColor,
|
|
36520
|
-
_ref$disabled = _ref.disabled,
|
|
36521
|
-
disabled = _ref$disabled === void 0 ? false : _ref$disabled;
|
|
36522
|
-
return React__default.createElement(ButtonContainer$4, {
|
|
36523
|
-
className: className,
|
|
36524
|
-
onPointerDown: disabled ? undefined : onClick,
|
|
36525
|
-
"$fullWidth": fullWidth,
|
|
36526
|
-
"$disabled": disabled,
|
|
36527
|
-
"$color": textColor
|
|
36528
|
-
}, React__default.createElement(ButtonContent, null, React__default.createElement(IconWrapper$1, {
|
|
36529
|
-
"$color": iconColor,
|
|
36530
|
-
"$disabled": disabled
|
|
36531
|
-
}, icon), label && React__default.createElement(ButtonLabel, {
|
|
36532
|
-
"$color": textColor,
|
|
36533
|
-
"$disabled": disabled
|
|
36534
|
-
}, label)));
|
|
36535
|
-
};
|
|
36536
|
-
var ButtonContainer$4 = /*#__PURE__*/styled__default.div.withConfig({
|
|
36537
|
-
displayName: "CTAButton__ButtonContainer",
|
|
36538
|
-
componentId: "sc-1azvwn5-0"
|
|
36539
|
-
})(["display:inline-flex;align-items:center;padding:0.75rem 1.25rem;background:rgba(0,0,0,0.3);border:2px solid #f59e0b;box-shadow:0 0 10px rgba(245,158,11,0.3);border-radius:4px;cursor:", ";transition:all 0.2s;position:relative;opacity:", ";color:", ";", " &:hover{background:", ";box-shadow:", ";transform:", ";}&:active{transform:", ";box-shadow:", ";}&:before{content:'';position:absolute;inset:-1px;border-radius:5px;padding:1px;background:linear-gradient(45deg,#f59e0b,#fbbf24,#f59e0b);mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask-composite:exclude;-webkit-mask-composite:destination-out;}"], function (props) {
|
|
36540
|
-
return props.$disabled ? 'not-allowed' : 'pointer';
|
|
36541
|
-
}, function (props) {
|
|
36542
|
-
return props.$disabled ? 0.5 : 1;
|
|
36543
|
-
}, function (props) {
|
|
36544
|
-
return props.$disabled ? '#6b7280' : props.$color;
|
|
36545
|
-
}, function (props) {
|
|
36546
|
-
return props.$fullWidth && styled.css(["display:flex;justify-content:center;"]);
|
|
36547
|
-
}, function (props) {
|
|
36548
|
-
return props.$disabled ? 'rgba(0, 0, 0, 0.3)' : 'rgba(0, 0, 0, 0.4)';
|
|
36549
|
-
}, function (props) {
|
|
36550
|
-
return props.$disabled ? '0 0 10px rgba(245, 158, 11, 0.3)' : '0 0 15px rgba(245, 158, 11, 0.4)';
|
|
36551
|
-
}, function (props) {
|
|
36552
|
-
return props.$disabled ? 'none' : 'translateY(-1px)';
|
|
36553
|
-
}, function (props) {
|
|
36554
|
-
return props.$disabled ? 'none' : 'translateY(1px)';
|
|
36555
|
-
}, function (props) {
|
|
36556
|
-
return props.$disabled ? '0 0 10px rgba(245, 158, 11, 0.3)' : '0 0 5px rgba(245, 158, 11, 0.2)';
|
|
36557
|
-
});
|
|
36558
|
-
var ButtonContent = /*#__PURE__*/styled__default.div.withConfig({
|
|
36559
|
-
displayName: "CTAButton__ButtonContent",
|
|
36560
|
-
componentId: "sc-1azvwn5-1"
|
|
36561
|
-
})(["display:flex;align-items:center;gap:0.75rem;"]);
|
|
36562
|
-
var IconWrapper$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
36563
|
-
displayName: "CTAButton__IconWrapper",
|
|
36564
|
-
componentId: "sc-1azvwn5-2"
|
|
36565
|
-
})(["svg{font-size:1.25rem;color:", ";filter:drop-shadow(0 0 2px rgba(245,158,11,0.5));opacity:", ";}"], function (props) {
|
|
36566
|
-
return props.$color;
|
|
36567
|
-
}, function (props) {
|
|
36568
|
-
return props.$disabled ? 0.5 : 1;
|
|
36569
|
-
});
|
|
36570
|
-
var ButtonLabel = /*#__PURE__*/styled__default.span.withConfig({
|
|
36571
|
-
displayName: "CTAButton__ButtonLabel",
|
|
36572
|
-
componentId: "sc-1azvwn5-3"
|
|
36573
|
-
})(["color:", ";font-family:'Press Start 2P',cursive;font-size:0.875rem;text-shadow:0 0 4px rgba(245,158,11,0.5);opacity:", ";"], function (props) {
|
|
36574
|
-
return props.$color;
|
|
36575
|
-
}, function (props) {
|
|
36576
|
-
return props.$disabled ? 0.5 : 1;
|
|
36577
|
-
});
|
|
36578
|
-
|
|
36579
36978
|
var Shortcuts = function Shortcuts(_ref) {
|
|
36580
36979
|
var shortcuts = _ref.shortcuts,
|
|
36581
36980
|
onShortcutCast = _ref.onShortcutCast,
|
|
@@ -36964,7 +37363,7 @@ var SkillsContainer = function SkillsContainer(_ref) {
|
|
|
36964
37363
|
cancelDrag: "#skillsDiv",
|
|
36965
37364
|
scale: scale,
|
|
36966
37365
|
width: "100%"
|
|
36967
|
-
}, onCloseButton && React__default.createElement(CloseButton$
|
|
37366
|
+
}, onCloseButton && React__default.createElement(CloseButton$9, {
|
|
36968
37367
|
onPointerDown: onCloseButton
|
|
36969
37368
|
}, "X"), React__default.createElement(SkillsContainerDiv, {
|
|
36970
37369
|
id: "skillsDiv"
|
|
@@ -36999,7 +37398,7 @@ var SkillSplitDiv = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
36999
37398
|
displayName: "SkillsContainer__SkillSplitDiv",
|
|
37000
37399
|
componentId: "sc-1g0c67q-2"
|
|
37001
37400
|
})(["width:100%;font-size:11px;hr{margin:0;margin-bottom:1rem;padding:0px;}p{margin-bottom:0px;}"]);
|
|
37002
|
-
var CloseButton$
|
|
37401
|
+
var CloseButton$9 = /*#__PURE__*/styled__default.div.withConfig({
|
|
37003
37402
|
displayName: "SkillsContainer__CloseButton",
|
|
37004
37403
|
componentId: "sc-1g0c67q-3"
|
|
37005
37404
|
})(["position:absolute;top:2px;right:2px;color:white;z-index:22;font-size:1.1rem;"]);
|
|
@@ -37135,7 +37534,7 @@ var SpellInfo$1 = function SpellInfo(_ref) {
|
|
|
37135
37534
|
castingType = spell.castingType,
|
|
37136
37535
|
cooldown = spell.cooldown,
|
|
37137
37536
|
maxDistanceGrid = spell.maxDistanceGrid;
|
|
37138
|
-
return React__default.createElement(Container$F, null, React__default.createElement(Header$
|
|
37537
|
+
return React__default.createElement(Container$F, null, React__default.createElement(Header$7, null, React__default.createElement("div", null, React__default.createElement(Title$c, null, name), React__default.createElement(Type$1, null, magicWords))), React__default.createElement(Statistic$1, null, React__default.createElement("div", {
|
|
37139
37538
|
className: "label"
|
|
37140
37539
|
}, "Casting Type:"), React__default.createElement("div", {
|
|
37141
37540
|
className: "value"
|
|
@@ -37165,7 +37564,7 @@ var Container$F = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
37165
37564
|
displayName: "SpellInfo__Container",
|
|
37166
37565
|
componentId: "sc-4hbw3q-0"
|
|
37167
37566
|
})(["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);
|
|
37168
|
-
var Title$
|
|
37567
|
+
var Title$c = /*#__PURE__*/styled__default.div.withConfig({
|
|
37169
37568
|
displayName: "SpellInfo__Title",
|
|
37170
37569
|
componentId: "sc-4hbw3q-1"
|
|
37171
37570
|
})(["font-size:", ";font-weight:bold;margin-bottom:0.5rem;display:flex;align-items:center;margin:0;"], uiFonts.size.medium);
|
|
@@ -37177,7 +37576,7 @@ var Description$4 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
37177
37576
|
displayName: "SpellInfo__Description",
|
|
37178
37577
|
componentId: "sc-4hbw3q-3"
|
|
37179
37578
|
})(["margin-top:1.5rem;font-size:", ";color:", ";font-style:italic;"], uiFonts.size.small, uiColors.lightGray);
|
|
37180
|
-
var Header$
|
|
37579
|
+
var Header$7 = /*#__PURE__*/styled__default.div.withConfig({
|
|
37181
37580
|
displayName: "SpellInfo__Header",
|
|
37182
37581
|
componentId: "sc-4hbw3q-4"
|
|
37183
37582
|
})(["display:flex;align-items:center;justify-content:space-between;margin-bottom:0.5rem;"]);
|
|
@@ -37393,7 +37792,7 @@ var Spell = function Spell(_ref) {
|
|
|
37393
37792
|
onPointerUp: onPointerUp == null ? void 0 : onPointerUp.bind(null, spellKey),
|
|
37394
37793
|
isSettingShortcut: isSettingShortcut && !disabled,
|
|
37395
37794
|
className: "spell"
|
|
37396
|
-
}, disabled && React__default.createElement(Overlay$
|
|
37795
|
+
}, disabled && React__default.createElement(Overlay$4, null, characterSkillLevel < requiredLevel ? "Low " + getSkillName(attribute || 'magic level') + " level" : manaCost > charMana && 'No mana'), React__default.createElement(SpellImage, null, activeCooldown && activeCooldown > 0 ? React__default.createElement("span", {
|
|
37397
37796
|
className: "cooldown"
|
|
37398
37797
|
}, activeCooldown.toFixed(activeCooldown > 10 ? 0 : 1)) : null, React__default.createElement(SpriteFromAtlas, {
|
|
37399
37798
|
atlasIMG: atlasIMG,
|
|
@@ -37402,7 +37801,7 @@ var Spell = function Spell(_ref) {
|
|
|
37402
37801
|
imgScale: IMAGE_SCALE,
|
|
37403
37802
|
containerStyle: CONTAINER_STYLE,
|
|
37404
37803
|
centered: true
|
|
37405
|
-
})), React__default.createElement(Info, null, React__default.createElement(Title$
|
|
37804
|
+
})), React__default.createElement(Info, null, React__default.createElement(Title$d, null, React__default.createElement("span", null, name), React__default.createElement("span", {
|
|
37406
37805
|
className: "spell"
|
|
37407
37806
|
}, "(", 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", {
|
|
37408
37807
|
className: "mana"
|
|
@@ -37423,7 +37822,7 @@ var Info = /*#__PURE__*/styled__default.span.withConfig({
|
|
|
37423
37822
|
displayName: "Spell__Info",
|
|
37424
37823
|
componentId: "sc-j96fa2-2"
|
|
37425
37824
|
})(["width:0;flex:1;@media (orientation:portrait){display:none;}"]);
|
|
37426
|
-
var Title$
|
|
37825
|
+
var Title$d = /*#__PURE__*/styled__default.p.withConfig({
|
|
37427
37826
|
displayName: "Spell__Title",
|
|
37428
37827
|
componentId: "sc-j96fa2-3"
|
|
37429
37828
|
})(["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);
|
|
@@ -37439,7 +37838,7 @@ var Cost = /*#__PURE__*/styled__default.p.withConfig({
|
|
|
37439
37838
|
displayName: "Spell__Cost",
|
|
37440
37839
|
componentId: "sc-j96fa2-6"
|
|
37441
37840
|
})(["display:flex;align-items:center;flex-direction:column;gap:0.5rem;div{z-index:1;}.mana{position:relative;font-size:", ";font-weight:bold;z-index:1;&::after{position:absolute;content:'';top:0;left:0;background-color:", ";width:100%;height:100%;border-radius:50%;transform:scale(1.8);filter:blur(10px);z-index:-1;}}"], uiFonts.size.medium, uiColors.blue);
|
|
37442
|
-
var Overlay$
|
|
37841
|
+
var Overlay$4 = /*#__PURE__*/styled__default.p.withConfig({
|
|
37443
37842
|
displayName: "Spell__Overlay",
|
|
37444
37843
|
componentId: "sc-j96fa2-7"
|
|
37445
37844
|
})(["margin:0 !important;position:absolute;top:0;left:0;width:100%;height:100%;border-radius:1rem;display:flex;justify-content:center;align-items:center;color:", ";font-size:", " !important;font-weight:bold;z-index:10;background-color:rgba(0 0 0 / 0.2);"], uiColors.yellow, uiFonts.size.large);
|
|
@@ -37488,7 +37887,7 @@ var Spellbook = function Spellbook(_ref) {
|
|
|
37488
37887
|
height: "inherit",
|
|
37489
37888
|
cancelDrag: "#spellbook-search, #shortcuts_list, .spell",
|
|
37490
37889
|
scale: scale
|
|
37491
|
-
}, React__default.createElement(Container$J, null, React__default.createElement(Title$
|
|
37890
|
+
}, React__default.createElement(Container$J, null, React__default.createElement(Title$e, null, "Learned Spells"), React__default.createElement(ShortcutsSetter, {
|
|
37492
37891
|
setSettingShortcutIndex: setSettingShortcutIndex,
|
|
37493
37892
|
settingShortcutIndex: settingShortcutIndex,
|
|
37494
37893
|
shortcuts: shortcuts,
|
|
@@ -37521,7 +37920,7 @@ var Spellbook = function Spellbook(_ref) {
|
|
|
37521
37920
|
}, spell)));
|
|
37522
37921
|
}))));
|
|
37523
37922
|
};
|
|
37524
|
-
var Title$
|
|
37923
|
+
var Title$e = /*#__PURE__*/styled__default.h1.withConfig({
|
|
37525
37924
|
displayName: "Spellbook__Title",
|
|
37526
37925
|
componentId: "sc-r02nfq-0"
|
|
37527
37926
|
})(["font-size:", " !important;margin-bottom:0 !important;"], uiFonts.size.large);
|
|
@@ -57963,7 +58362,7 @@ var CartView = function CartView(_ref2) {
|
|
|
57963
58362
|
return _ref3.apply(this, arguments);
|
|
57964
58363
|
};
|
|
57965
58364
|
}();
|
|
57966
|
-
return React__default.createElement(Container$K, null, React__default.createElement(Header$
|
|
58365
|
+
return React__default.createElement(Container$K, null, React__default.createElement(Header$8, null, React__default.createElement(Title$f, null, "Shopping Cart"), React__default.createElement(CloseButton$a, {
|
|
57967
58366
|
onPointerDown: onClose
|
|
57968
58367
|
}, 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) {
|
|
57969
58368
|
var _cartItem$metadata, _cartItem$metadata2;
|
|
@@ -57991,7 +58390,7 @@ var CartView = function CartView(_ref2) {
|
|
|
57991
58390
|
onRemoveFromCart(cartItem.item.key);
|
|
57992
58391
|
}
|
|
57993
58392
|
}));
|
|
57994
|
-
})), React__default.createElement(Footer$1, null, React__default.createElement(TotalInfo, null, React__default.createElement(TotalRow, null, React__default.createElement("span", null, "Total:"), React__default.createElement("span", null, "$", formatPrice(total))), error && React__default.createElement(ErrorMessage$
|
|
58393
|
+
})), React__default.createElement(Footer$1, null, React__default.createElement(TotalInfo, null, React__default.createElement(TotalRow, null, React__default.createElement("span", null, "Total:"), React__default.createElement("span", null, "$", formatPrice(total))), error && React__default.createElement(ErrorMessage$2, null, error)), React__default.createElement(CTAButton, {
|
|
57995
58394
|
icon: React__default.createElement(fa.FaShoppingBag, null),
|
|
57996
58395
|
label: isLoading ? 'Processing...' : 'Complete Purchase',
|
|
57997
58396
|
onClick: handlePurchase,
|
|
@@ -58003,15 +58402,15 @@ var Container$K = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
58003
58402
|
displayName: "CartView__Container",
|
|
58004
58403
|
componentId: "sc-ydtyl1-0"
|
|
58005
58404
|
})(["display:flex;flex-direction:column;width:100%;height:100%;gap:1.5rem;padding:1.5rem;"]);
|
|
58006
|
-
var Header$
|
|
58405
|
+
var Header$8 = /*#__PURE__*/styled__default.div.withConfig({
|
|
58007
58406
|
displayName: "CartView__Header",
|
|
58008
58407
|
componentId: "sc-ydtyl1-1"
|
|
58009
58408
|
})(["display:flex;justify-content:space-between;align-items:center;"]);
|
|
58010
|
-
var Title$
|
|
58409
|
+
var Title$f = /*#__PURE__*/styled__default.h2.withConfig({
|
|
58011
58410
|
displayName: "CartView__Title",
|
|
58012
58411
|
componentId: "sc-ydtyl1-2"
|
|
58013
58412
|
})(["font-family:'Press Start 2P',cursive;font-size:1rem;color:#ffffff;margin:0;"]);
|
|
58014
|
-
var CloseButton$
|
|
58413
|
+
var CloseButton$a = /*#__PURE__*/styled__default.div.withConfig({
|
|
58015
58414
|
displayName: "CartView__CloseButton",
|
|
58016
58415
|
componentId: "sc-ydtyl1-3"
|
|
58017
58416
|
})(["padding:0.5rem;min-width:unset;width:42px;height:42px;display:flex;font-size:1.5rem;align-items:center;color:white;justify-content:center;"]);
|
|
@@ -58055,7 +58454,7 @@ var TotalRow = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
58055
58454
|
displayName: "CartView__TotalRow",
|
|
58056
58455
|
componentId: "sc-ydtyl1-13"
|
|
58057
58456
|
})(["display:flex;align-items:center;justify-content:space-between;gap:1rem;font-family:'Press Start 2P',cursive;font-size:1rem;color:#ffffff;span:last-child{color:#fef08a;}"]);
|
|
58058
|
-
var ErrorMessage$
|
|
58457
|
+
var ErrorMessage$2 = /*#__PURE__*/styled__default.div.withConfig({
|
|
58059
58458
|
displayName: "CartView__ErrorMessage",
|
|
58060
58459
|
componentId: "sc-ydtyl1-14"
|
|
58061
58460
|
})(["color:#ef4444;font-size:0.875rem;font-family:'Press Start 2P',cursive;text-align:center;"]);
|
|
@@ -58353,7 +58752,7 @@ var ScrollableContent = function ScrollableContent(_ref) {
|
|
|
58353
58752
|
_ref$maxHeight = _ref.maxHeight,
|
|
58354
58753
|
maxHeight = _ref$maxHeight === void 0 ? '500px' : _ref$maxHeight;
|
|
58355
58754
|
if (items.length === 0) {
|
|
58356
|
-
return React__default.createElement(EmptyMessage$
|
|
58755
|
+
return React__default.createElement(EmptyMessage$3, null, emptyMessage);
|
|
58357
58756
|
}
|
|
58358
58757
|
return React__default.createElement(Container$L, {
|
|
58359
58758
|
className: className
|
|
@@ -58412,7 +58811,7 @@ var Content$4 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
58412
58811
|
}, function (props) {
|
|
58413
58812
|
return props.$gridColumns;
|
|
58414
58813
|
});
|
|
58415
|
-
var EmptyMessage$
|
|
58814
|
+
var EmptyMessage$3 = /*#__PURE__*/styled__default.div.withConfig({
|
|
58416
58815
|
displayName: "ScrollableContent__EmptyMessage",
|
|
58417
58816
|
componentId: "sc-xhh2um-8"
|
|
58418
58817
|
})(["text-align:center;color:#9ca3af;padding:2rem;flex:1;display:flex;align-items:center;justify-content:center;"]);
|
|
@@ -58493,7 +58892,7 @@ var StoreCharacterSkinRow = function StoreCharacterSkinRow(_ref) {
|
|
|
58493
58892
|
height: 32,
|
|
58494
58893
|
imgScale: 2,
|
|
58495
58894
|
centered: true
|
|
58496
|
-
}) : React__default.createElement(DefaultIcon, null, "\uD83D\uDC64")), React__default.createElement(ItemDetails$1, null, React__default.createElement(Header$
|
|
58895
|
+
}) : React__default.createElement(DefaultIcon, null, "\uD83D\uDC64")), React__default.createElement(ItemDetails$1, null, React__default.createElement(Header$9, null, React__default.createElement(ItemName$1, null, item.name)), availableCharacters.length > 0 && currentCharacter && React__default.createElement(SelectedSkinNav, null, React__default.createElement(SelectedSkin, null, "Selected:"), React__default.createElement(SkinNavArrow, {
|
|
58497
58896
|
direction: "left",
|
|
58498
58897
|
onPointerDown: handlePreviousSkin,
|
|
58499
58898
|
size: 24
|
|
@@ -58545,7 +58944,7 @@ var SkinNavArrow = /*#__PURE__*/styled__default(SelectArrow).withConfig({
|
|
|
58545
58944
|
displayName: "StoreCharacterSkinRow__SkinNavArrow",
|
|
58546
58945
|
componentId: "sc-81xqsx-7"
|
|
58547
58946
|
})(["position:static;"]);
|
|
58548
|
-
var Header$
|
|
58947
|
+
var Header$9 = /*#__PURE__*/styled__default.div.withConfig({
|
|
58549
58948
|
displayName: "StoreCharacterSkinRow__Header",
|
|
58550
58949
|
componentId: "sc-81xqsx-8"
|
|
58551
58950
|
})(["display:flex;align-items:center;gap:0.5rem;"]);
|
|
@@ -58948,7 +59347,7 @@ var StoreItemDetails = function StoreItemDetails(_ref) {
|
|
|
58948
59347
|
if (typeof imageUrl === 'string') return imageUrl;
|
|
58949
59348
|
return imageUrl["default"] || imageUrl.src;
|
|
58950
59349
|
};
|
|
58951
|
-
return React__default.createElement(Container$M, null, React__default.createElement(Header$
|
|
59350
|
+
return React__default.createElement(Container$M, null, React__default.createElement(Header$a, null, React__default.createElement(BackButton, {
|
|
58952
59351
|
onClick: onBack
|
|
58953
59352
|
}, 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", {
|
|
58954
59353
|
src: getImageSrc(),
|
|
@@ -58966,7 +59365,7 @@ var Container$M = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
58966
59365
|
displayName: "StoreItemDetails__Container",
|
|
58967
59366
|
componentId: "sc-k3ho5z-0"
|
|
58968
59367
|
})(["display:flex;flex-direction:column;gap:1.5rem;padding:1.5rem;height:100%;"]);
|
|
58969
|
-
var Header$
|
|
59368
|
+
var Header$a = /*#__PURE__*/styled__default.div.withConfig({
|
|
58970
59369
|
displayName: "StoreItemDetails__Header",
|
|
58971
59370
|
componentId: "sc-k3ho5z-1"
|
|
58972
59371
|
})(["display:flex;align-items:center;gap:1rem;"]);
|
|
@@ -59134,7 +59533,7 @@ var Store = function Store(_ref) {
|
|
|
59134
59533
|
return React__default.createElement(LoadingMessage$1, null, "Loading...");
|
|
59135
59534
|
}
|
|
59136
59535
|
if (error) {
|
|
59137
|
-
return React__default.createElement(ErrorMessage$
|
|
59536
|
+
return React__default.createElement(ErrorMessage$3, null, error);
|
|
59138
59537
|
}
|
|
59139
59538
|
// Build tabs dynamically based on props
|
|
59140
59539
|
var tabIds = tabOrder != null ? tabOrder : ['premium', 'packs', 'items'];
|
|
@@ -59302,7 +59701,7 @@ var LoadingMessage$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
59302
59701
|
displayName: "Store__LoadingMessage",
|
|
59303
59702
|
componentId: "sc-64dj00-8"
|
|
59304
59703
|
})(["text-align:center;color:", ";padding:2rem;"], uiColors.white);
|
|
59305
|
-
var ErrorMessage$
|
|
59704
|
+
var ErrorMessage$3 = /*#__PURE__*/styled__default.div.withConfig({
|
|
59306
59705
|
displayName: "Store__ErrorMessage",
|
|
59307
59706
|
componentId: "sc-64dj00-9"
|
|
59308
59707
|
})(["text-align:center;color:", ";padding:2rem;"], uiColors.red);
|
|
@@ -59325,13 +59724,13 @@ var PaymentMethodModal = function PaymentMethodModal(_ref) {
|
|
|
59325
59724
|
onPayWithCard();
|
|
59326
59725
|
}
|
|
59327
59726
|
}, [selected, onPayWithDC, onPayWithCard]);
|
|
59328
|
-
return React__default.createElement(ModalPortal, null, React__default.createElement(Overlay$
|
|
59727
|
+
return React__default.createElement(ModalPortal, null, React__default.createElement(Overlay$5, {
|
|
59329
59728
|
onPointerDown: onClose
|
|
59330
|
-
}), React__default.createElement(ModalContainer$
|
|
59729
|
+
}), React__default.createElement(ModalContainer$2, null, React__default.createElement(ModalContent$2, {
|
|
59331
59730
|
onClick: stopPropagation,
|
|
59332
59731
|
onTouchStart: stopPropagation,
|
|
59333
59732
|
onPointerDown: stopPropagation
|
|
59334
|
-
}, React__default.createElement(Header$
|
|
59733
|
+
}, React__default.createElement(Header$b, null, React__default.createElement(Title$g, null, "How would you like to pay?"), React__default.createElement(CloseButton$b, {
|
|
59335
59734
|
onPointerDown: onClose,
|
|
59336
59735
|
"aria-label": "Close"
|
|
59337
59736
|
}, React__default.createElement(fa.FaTimes, null))), React__default.createElement(Options, null, React__default.createElement(RadioOption, {
|
|
@@ -59353,27 +59752,27 @@ var PaymentMethodModal = function PaymentMethodModal(_ref) {
|
|
|
59353
59752
|
onPointerDown: handleConfirm
|
|
59354
59753
|
}, "Confirm")))));
|
|
59355
59754
|
};
|
|
59356
|
-
var Overlay$
|
|
59755
|
+
var Overlay$5 = /*#__PURE__*/styled__default.div.withConfig({
|
|
59357
59756
|
displayName: "PaymentMethodModal__Overlay",
|
|
59358
59757
|
componentId: "sc-1dxy6lr-0"
|
|
59359
59758
|
})(["position:fixed;inset:0;background:rgba(0,0,0,0.65);z-index:1000;"]);
|
|
59360
|
-
var ModalContainer$
|
|
59759
|
+
var ModalContainer$2 = /*#__PURE__*/styled__default.div.withConfig({
|
|
59361
59760
|
displayName: "PaymentMethodModal__ModalContainer",
|
|
59362
59761
|
componentId: "sc-1dxy6lr-1"
|
|
59363
59762
|
})(["position:fixed;inset:0;display:flex;align-items:center;justify-content:center;z-index:1001;pointer-events:none;"]);
|
|
59364
|
-
var ModalContent$
|
|
59763
|
+
var ModalContent$2 = /*#__PURE__*/styled__default.div.withConfig({
|
|
59365
59764
|
displayName: "PaymentMethodModal__ModalContent",
|
|
59366
59765
|
componentId: "sc-1dxy6lr-2"
|
|
59367
59766
|
})(["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;}}"]);
|
|
59368
|
-
var Header$
|
|
59767
|
+
var Header$b = /*#__PURE__*/styled__default.div.withConfig({
|
|
59369
59768
|
displayName: "PaymentMethodModal__Header",
|
|
59370
59769
|
componentId: "sc-1dxy6lr-3"
|
|
59371
59770
|
})(["display:flex;align-items:center;justify-content:space-between;"]);
|
|
59372
|
-
var Title$
|
|
59771
|
+
var Title$g = /*#__PURE__*/styled__default.h3.withConfig({
|
|
59373
59772
|
displayName: "PaymentMethodModal__Title",
|
|
59374
59773
|
componentId: "sc-1dxy6lr-4"
|
|
59375
59774
|
})(["margin:0;font-family:'Press Start 2P',cursive;font-size:0.7rem;color:#fef08a;"]);
|
|
59376
|
-
var CloseButton$
|
|
59775
|
+
var CloseButton$b = /*#__PURE__*/styled__default.button.withConfig({
|
|
59377
59776
|
displayName: "PaymentMethodModal__CloseButton",
|
|
59378
59777
|
componentId: "sc-1dxy6lr-5"
|
|
59379
59778
|
})(["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;}"]);
|
|
@@ -59452,7 +59851,7 @@ var TimeWidget = function TimeWidget(_ref) {
|
|
|
59452
59851
|
return React__default.createElement(Draggable, {
|
|
59453
59852
|
scale: scale,
|
|
59454
59853
|
cancel: ".time-widget-close,.time-widget-container,.time-widget-container *"
|
|
59455
|
-
}, React__default.createElement(WidgetContainer, null, React__default.createElement(CloseButton$
|
|
59854
|
+
}, React__default.createElement(WidgetContainer, null, React__default.createElement(CloseButton$c, {
|
|
59456
59855
|
onPointerDown: onClose,
|
|
59457
59856
|
className: "time-widget-close"
|
|
59458
59857
|
}, "X"), React__default.createElement(DayNightContainer, {
|
|
@@ -59469,7 +59868,7 @@ var Time = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
59469
59868
|
displayName: "TimeWidget__Time",
|
|
59470
59869
|
componentId: "sc-1ja236h-1"
|
|
59471
59870
|
})(["top:0.75rem;right:0.5rem;position:absolute;font-size:", ";color:white;"], uiFonts.size.small);
|
|
59472
|
-
var CloseButton$
|
|
59871
|
+
var CloseButton$c = /*#__PURE__*/styled__default.p.withConfig({
|
|
59473
59872
|
displayName: "TimeWidget__CloseButton",
|
|
59474
59873
|
componentId: "sc-1ja236h-2"
|
|
59475
59874
|
})(["position:absolute;top:-0.5rem;margin:0;right:-0.2rem;font-size:", " !important;z-index:1;"], uiFonts.size.small);
|
|
@@ -59748,7 +60147,7 @@ var TradingMenu = function TradingMenu(_ref) {
|
|
|
59748
60147
|
width: "500px",
|
|
59749
60148
|
cancelDrag: "#TraderContainer",
|
|
59750
60149
|
scale: scale
|
|
59751
|
-
}, React__default.createElement(Container$O, null, React__default.createElement(Title$
|
|
60150
|
+
}, React__default.createElement(Container$O, null, React__default.createElement(Title$h, null, type.charAt(0).toUpperCase() + type.slice(1), " Menu"), React__default.createElement("hr", {
|
|
59752
60151
|
className: "golden"
|
|
59753
60152
|
}), React__default.createElement(ScrollWrapper, {
|
|
59754
60153
|
id: "TraderContainer"
|
|
@@ -59780,7 +60179,7 @@ var Container$O = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
59780
60179
|
displayName: "TradingMenu__Container",
|
|
59781
60180
|
componentId: "sc-1wjsz1l-0"
|
|
59782
60181
|
})(["width:100%;"]);
|
|
59783
|
-
var Title$
|
|
60182
|
+
var Title$h = /*#__PURE__*/styled__default.h1.withConfig({
|
|
59784
60183
|
displayName: "TradingMenu__Title",
|
|
59785
60184
|
componentId: "sc-1wjsz1l-1"
|
|
59786
60185
|
})(["font-size:0.7rem !important;color:yellow !important;text-align:center;"]);
|
|
@@ -59974,6 +60373,7 @@ exports.CheckButton = CheckButton;
|
|
|
59974
60373
|
exports.CheckItem = CheckItem;
|
|
59975
60374
|
exports.CircularController = CircularController;
|
|
59976
60375
|
exports.CraftBook = CraftBook;
|
|
60376
|
+
exports.DCWalletModal = DCWalletModal;
|
|
59977
60377
|
exports.DailyTasks = DailyTasks;
|
|
59978
60378
|
exports.DraggableContainer = DraggableContainer;
|
|
59979
60379
|
exports.Dropdown = Dropdown;
|