@rpg-engine/long-bow 0.8.137 → 0.8.139
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Marketplace/BuyPanel.d.ts +4 -1
- package/dist/components/Marketplace/Marketplace.d.ts +4 -1
- package/dist/components/Marketplace/MarketplaceBuyModal.d.ts +10 -0
- package/dist/components/Marketplace/MarketplaceRows.d.ts +1 -0
- package/dist/components/Store/sections/StorePacksSection.d.ts +2 -0
- package/dist/index.d.ts +1 -0
- package/dist/long-bow.cjs.development.js +280 -79
- 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 +281 -81
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/DCWallet/DCHistoryPanel.tsx +16 -6
- package/src/components/DCWallet/DCWalletModal.tsx +1 -1
- package/src/components/Marketplace/BuyPanel.tsx +30 -3
- package/src/components/Marketplace/Marketplace.tsx +4 -1
- package/src/components/Marketplace/MarketplaceBuyModal.tsx +231 -0
- package/src/components/Marketplace/MarketplaceRows.tsx +14 -1
- package/src/components/Store/Store.tsx +5 -2
- package/src/components/Store/sections/StorePacksSection.tsx +17 -1
- package/src/index.tsx +1 -0
|
@@ -30316,6 +30316,16 @@ var TRANSACTION_TYPE_LABELS = {
|
|
|
30316
30316
|
Refund: 'Refund',
|
|
30317
30317
|
AdminAdjustment: 'Admin'
|
|
30318
30318
|
};
|
|
30319
|
+
var TRANSACTION_TYPE_COLORS = {
|
|
30320
|
+
Purchase: '#22c55e',
|
|
30321
|
+
Transfer: '#60a5fa',
|
|
30322
|
+
MarketplaceSale: '#fbbf24',
|
|
30323
|
+
MarketplacePurchase: '#f97316',
|
|
30324
|
+
StorePurchase: '#a78bfa',
|
|
30325
|
+
Fee: '#ef4444',
|
|
30326
|
+
Refund: '#06b6d4',
|
|
30327
|
+
AdminAdjustment: '#9ca3af'
|
|
30328
|
+
};
|
|
30319
30329
|
var TRANSACTION_TYPE_OPTIONS = [{
|
|
30320
30330
|
value: '',
|
|
30321
30331
|
label: 'All Types'
|
|
@@ -30379,14 +30389,24 @@ var DCHistoryPanel = function DCHistoryPanel(_ref) {
|
|
|
30379
30389
|
value: opt.value
|
|
30380
30390
|
}, opt.label);
|
|
30381
30391
|
}))), 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;
|
|
30392
|
+
var _TRANSACTION_TYPE_LAB, _TRANSACTION_TYPE_COL, _tx$note;
|
|
30383
30393
|
var isCredit = tx.amount > 0;
|
|
30384
30394
|
var label = (_TRANSACTION_TYPE_LAB = TRANSACTION_TYPE_LABELS[tx.type]) != null ? _TRANSACTION_TYPE_LAB : tx.type;
|
|
30395
|
+
var color = (_TRANSACTION_TYPE_COL = TRANSACTION_TYPE_COLORS[tx.type]) != null ? _TRANSACTION_TYPE_COL : '#f59e0b';
|
|
30385
30396
|
var subtitle = (_tx$note = tx.note) != null ? _tx$note : tx.relatedCharacterName ? tx.relatedCharacterName : '';
|
|
30386
30397
|
return React__default.createElement(TransactionRow, {
|
|
30387
|
-
key: tx._id
|
|
30388
|
-
|
|
30389
|
-
|
|
30398
|
+
key: tx._id,
|
|
30399
|
+
style: {
|
|
30400
|
+
borderLeft: "3px solid " + color
|
|
30401
|
+
}
|
|
30402
|
+
}, React__default.createElement(TxLeft, null, React__default.createElement(TxType, {
|
|
30403
|
+
style: {
|
|
30404
|
+
color: color
|
|
30405
|
+
}
|
|
30406
|
+
}, label), subtitle ? React__default.createElement(TxNote, null, subtitle) : null), React__default.createElement(TxRight, null, React__default.createElement(TxAmount, {
|
|
30407
|
+
style: {
|
|
30408
|
+
color: isCredit ? '#4CAF50' : '#D04648'
|
|
30409
|
+
}
|
|
30390
30410
|
}, isCredit ? '+' : '', tx.amount, " DC"), React__default.createElement(TxDate, null, formatDate(tx.createdAt))));
|
|
30391
30411
|
})), totalPages > 1 && React__default.createElement(Pagination, {
|
|
30392
30412
|
currentPage: currentPage,
|
|
@@ -30429,14 +30449,11 @@ var TxRight = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
30429
30449
|
var TxType = /*#__PURE__*/styled__default.span.withConfig({
|
|
30430
30450
|
displayName: "DCHistoryPanel__TxType",
|
|
30431
30451
|
componentId: "sc-debjdj-8"
|
|
30432
|
-
})(["font-size:7px;
|
|
30452
|
+
})(["font-size:7px;font-family:'Press Start 2P',cursive;"]);
|
|
30433
30453
|
var TxAmount = /*#__PURE__*/styled__default.span.withConfig({
|
|
30434
30454
|
displayName: "DCHistoryPanel__TxAmount",
|
|
30435
30455
|
componentId: "sc-debjdj-9"
|
|
30436
|
-
})(["font-size:8px;font-family:'Press Start 2P',cursive;
|
|
30437
|
-
var $credit = _ref2.$credit;
|
|
30438
|
-
return $credit ? uiColors.green : uiColors.red;
|
|
30439
|
-
});
|
|
30456
|
+
})(["font-size:8px;font-family:'Press Start 2P',cursive;white-space:nowrap;"]);
|
|
30440
30457
|
var TxNote = /*#__PURE__*/styled__default.span.withConfig({
|
|
30441
30458
|
displayName: "DCHistoryPanel__TxNote",
|
|
30442
30459
|
componentId: "sc-debjdj-10"
|
|
@@ -30824,7 +30841,7 @@ var DCWalletModal = function DCWalletModal(_ref) {
|
|
|
30824
30841
|
content: React__default.createElement(BalanceContent, null, React__default.createElement(BalanceLabel, null, "Your DC Balance"), React__default.createElement(BalanceAmount, null, dcBalance.toLocaleString(), " DC"), onBuyDC && React__default.createElement(BuyButton, {
|
|
30825
30842
|
onPointerDown: onBuyDC,
|
|
30826
30843
|
title: "Buy Definya Coins"
|
|
30827
|
-
}, React__default.createElement(fa.FaShoppingCart, null), React__default.createElement(BuyButtonLabel, null, "Buy DC")))
|
|
30844
|
+
}, React__default.createElement(fa.FaShoppingCart, null), React__default.createElement(BuyButtonLabel, null, "Buy More DC")))
|
|
30828
30845
|
}, {
|
|
30829
30846
|
id: 'transfer',
|
|
30830
30847
|
title: 'Transfer',
|
|
@@ -35587,11 +35604,145 @@ var PagerContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
35587
35604
|
componentId: "sc-1ekmf50-1"
|
|
35588
35605
|
})(["display:flex;justify-content:center;align-items:center;gap:5px;p{margin:0;}div{color:white;}button{width:40px;height:40px;background-color:", ";border:none;border-radius:5px;color:white;:hover{background-color:", ";}:disabled{opacity:0.5;}&.active{background-color:", ";font-weight:bold;color:black;}}"], uiColors.darkGray, uiColors.lightGray, uiColors.orange);
|
|
35589
35606
|
|
|
35607
|
+
var MarketplaceBuyModal = function MarketplaceBuyModal(_ref) {
|
|
35608
|
+
var goldPrice = _ref.goldPrice,
|
|
35609
|
+
dcEquivalentPrice = _ref.dcEquivalentPrice,
|
|
35610
|
+
dcBalance = _ref.dcBalance,
|
|
35611
|
+
onConfirm = _ref.onConfirm,
|
|
35612
|
+
onClose = _ref.onClose;
|
|
35613
|
+
var _useState = React.useState('gold'),
|
|
35614
|
+
selected = _useState[0],
|
|
35615
|
+
setSelected = _useState[1];
|
|
35616
|
+
var hasSufficientDC = dcBalance >= dcEquivalentPrice;
|
|
35617
|
+
var stopPropagation = React.useCallback(function (e) {
|
|
35618
|
+
e.stopPropagation();
|
|
35619
|
+
}, []);
|
|
35620
|
+
var handleConfirm = React.useCallback(function () {
|
|
35621
|
+
onConfirm(selected);
|
|
35622
|
+
}, [selected, onConfirm]);
|
|
35623
|
+
return React__default.createElement(ModalPortal, null, React__default.createElement(Overlay$4, {
|
|
35624
|
+
onPointerDown: onClose
|
|
35625
|
+
}), React__default.createElement(ModalContainer$2, null, React__default.createElement(ModalContent$2, {
|
|
35626
|
+
onClick: stopPropagation,
|
|
35627
|
+
onTouchStart: stopPropagation,
|
|
35628
|
+
onPointerDown: stopPropagation
|
|
35629
|
+
}, React__default.createElement(Header$7, null, React__default.createElement(Title$8, null, "Confirm Purchase"), React__default.createElement(CloseButton$9, {
|
|
35630
|
+
onPointerDown: onClose,
|
|
35631
|
+
"aria-label": "Close"
|
|
35632
|
+
}, React__default.createElement(fa.FaTimes, null))), React__default.createElement(Options, null, React__default.createElement(RadioOption, {
|
|
35633
|
+
"$selected": selected === 'gold',
|
|
35634
|
+
onPointerDown: function onPointerDown() {
|
|
35635
|
+
return setSelected('gold');
|
|
35636
|
+
}
|
|
35637
|
+
}, React__default.createElement(RadioCircle, {
|
|
35638
|
+
"$selected": selected === 'gold'
|
|
35639
|
+
}), React__default.createElement(OptionText, null, React__default.createElement(OptionLabel, null, "Gold"), React__default.createElement(OptionSub, null, goldPrice.toLocaleString(), " gold"))), React__default.createElement(RadioOption, {
|
|
35640
|
+
"$selected": selected === 'dc',
|
|
35641
|
+
"$disabled": !hasSufficientDC,
|
|
35642
|
+
onPointerDown: function onPointerDown() {
|
|
35643
|
+
return hasSufficientDC && setSelected('dc');
|
|
35644
|
+
}
|
|
35645
|
+
}, React__default.createElement(RadioCircle, {
|
|
35646
|
+
"$selected": selected === 'dc'
|
|
35647
|
+
}), React__default.createElement(OptionText, null, React__default.createElement(OptionLabel, {
|
|
35648
|
+
"$disabled": !hasSufficientDC
|
|
35649
|
+
}, "Definya Coin"), React__default.createElement(OptionSub, null, shared.formatDCAmount(dcEquivalentPrice), " DC", ' ', React__default.createElement(BalanceHint, {
|
|
35650
|
+
"$insufficient": !hasSufficientDC
|
|
35651
|
+
}, "(", shared.formatDCAmount(dcBalance), " available)"))))), React__default.createElement(ConfirmRow, null, React__default.createElement(Button, {
|
|
35652
|
+
buttonType: exports.ButtonTypes.RPGUIButton,
|
|
35653
|
+
onPointerDown: handleConfirm
|
|
35654
|
+
}, "Confirm")))));
|
|
35655
|
+
};
|
|
35656
|
+
var Overlay$4 = /*#__PURE__*/styled__default.div.withConfig({
|
|
35657
|
+
displayName: "MarketplaceBuyModal__Overlay",
|
|
35658
|
+
componentId: "sc-86ottl-0"
|
|
35659
|
+
})(["position:fixed;inset:0;background:rgba(0,0,0,0.65);z-index:1000;"]);
|
|
35660
|
+
var ModalContainer$2 = /*#__PURE__*/styled__default.div.withConfig({
|
|
35661
|
+
displayName: "MarketplaceBuyModal__ModalContainer",
|
|
35662
|
+
componentId: "sc-86ottl-1"
|
|
35663
|
+
})(["position:fixed;inset:0;display:flex;align-items:center;justify-content:center;z-index:1001;pointer-events:none;"]);
|
|
35664
|
+
var ModalContent$2 = /*#__PURE__*/styled__default.div.withConfig({
|
|
35665
|
+
displayName: "MarketplaceBuyModal__ModalContent",
|
|
35666
|
+
componentId: "sc-86ottl-2"
|
|
35667
|
+
})(["background:#1a1a2e;border:2px solid #f59e0b;border-radius:8px;padding:20px 24px 24px;min-width:300px;max-width:90%;display:flex;flex-direction:column;gap:16px;pointer-events:auto;animation:scaleIn 0.15s ease-out;@keyframes scaleIn{from{transform:scale(0.85);opacity:0;}to{transform:scale(1);opacity:1;}}"]);
|
|
35668
|
+
var Header$7 = /*#__PURE__*/styled__default.div.withConfig({
|
|
35669
|
+
displayName: "MarketplaceBuyModal__Header",
|
|
35670
|
+
componentId: "sc-86ottl-3"
|
|
35671
|
+
})(["display:flex;align-items:center;justify-content:space-between;"]);
|
|
35672
|
+
var Title$8 = /*#__PURE__*/styled__default.h3.withConfig({
|
|
35673
|
+
displayName: "MarketplaceBuyModal__Title",
|
|
35674
|
+
componentId: "sc-86ottl-4"
|
|
35675
|
+
})(["margin:0;font-family:'Press Start 2P',cursive;font-size:0.7rem;color:#fef08a;"]);
|
|
35676
|
+
var CloseButton$9 = /*#__PURE__*/styled__default.button.withConfig({
|
|
35677
|
+
displayName: "MarketplaceBuyModal__CloseButton",
|
|
35678
|
+
componentId: "sc-86ottl-5"
|
|
35679
|
+
})(["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;}"]);
|
|
35680
|
+
var Options = /*#__PURE__*/styled__default.div.withConfig({
|
|
35681
|
+
displayName: "MarketplaceBuyModal__Options",
|
|
35682
|
+
componentId: "sc-86ottl-6"
|
|
35683
|
+
})(["display:flex;flex-direction:column;gap:8px;"]);
|
|
35684
|
+
var RadioOption = /*#__PURE__*/styled__default.div.withConfig({
|
|
35685
|
+
displayName: "MarketplaceBuyModal__RadioOption",
|
|
35686
|
+
componentId: "sc-86ottl-7"
|
|
35687
|
+
})(["display:flex;align-items:center;gap:12px;padding:10px 12px;border:1px solid ", ";border-radius:6px;background:", ";cursor:", ";opacity:", ";transition:border-color 0.15s,background 0.15s;&:hover{border-color:", ";}"], function (_ref2) {
|
|
35688
|
+
var $selected = _ref2.$selected;
|
|
35689
|
+
return $selected ? '#f59e0b' : 'rgba(255,255,255,0.15)';
|
|
35690
|
+
}, function (_ref3) {
|
|
35691
|
+
var $selected = _ref3.$selected;
|
|
35692
|
+
return $selected ? 'rgba(245,158,11,0.1)' : 'transparent';
|
|
35693
|
+
}, function (_ref4) {
|
|
35694
|
+
var $disabled = _ref4.$disabled;
|
|
35695
|
+
return $disabled ? 'not-allowed' : 'pointer';
|
|
35696
|
+
}, function (_ref5) {
|
|
35697
|
+
var $disabled = _ref5.$disabled;
|
|
35698
|
+
return $disabled ? 0.5 : 1;
|
|
35699
|
+
}, function (_ref6) {
|
|
35700
|
+
var $disabled = _ref6.$disabled;
|
|
35701
|
+
return $disabled ? 'rgba(255,255,255,0.15)' : '#f59e0b';
|
|
35702
|
+
});
|
|
35703
|
+
var RadioCircle = /*#__PURE__*/styled__default.div.withConfig({
|
|
35704
|
+
displayName: "MarketplaceBuyModal__RadioCircle",
|
|
35705
|
+
componentId: "sc-86ottl-8"
|
|
35706
|
+
})(["width:16px;height:16px;border-radius:50%;border:2px solid ", ";display:flex;align-items:center;justify-content:center;flex-shrink:0;&::after{content:'';width:8px;height:8px;border-radius:50%;background:#f59e0b;opacity:", ";transition:opacity 0.15s;}"], function (_ref7) {
|
|
35707
|
+
var $selected = _ref7.$selected;
|
|
35708
|
+
return $selected ? '#f59e0b' : 'rgba(255,255,255,0.4)';
|
|
35709
|
+
}, function (_ref8) {
|
|
35710
|
+
var $selected = _ref8.$selected;
|
|
35711
|
+
return $selected ? 1 : 0;
|
|
35712
|
+
});
|
|
35713
|
+
var OptionText = /*#__PURE__*/styled__default.div.withConfig({
|
|
35714
|
+
displayName: "MarketplaceBuyModal__OptionText",
|
|
35715
|
+
componentId: "sc-86ottl-9"
|
|
35716
|
+
})(["display:flex;flex-direction:column;gap:3px;"]);
|
|
35717
|
+
var OptionLabel = /*#__PURE__*/styled__default.span.withConfig({
|
|
35718
|
+
displayName: "MarketplaceBuyModal__OptionLabel",
|
|
35719
|
+
componentId: "sc-86ottl-10"
|
|
35720
|
+
})(["font-family:'Press Start 2P',cursive;font-size:0.65rem;color:", ";"], function (_ref9) {
|
|
35721
|
+
var $disabled = _ref9.$disabled;
|
|
35722
|
+
return $disabled ? 'rgba(255,255,255,0.4)' : '#ffffff';
|
|
35723
|
+
});
|
|
35724
|
+
var OptionSub = /*#__PURE__*/styled__default.span.withConfig({
|
|
35725
|
+
displayName: "MarketplaceBuyModal__OptionSub",
|
|
35726
|
+
componentId: "sc-86ottl-11"
|
|
35727
|
+
})(["font-family:'Press Start 2P',cursive;font-size:0.5rem;color:rgba(255,255,255,0.55);"]);
|
|
35728
|
+
var BalanceHint = /*#__PURE__*/styled__default.span.withConfig({
|
|
35729
|
+
displayName: "MarketplaceBuyModal__BalanceHint",
|
|
35730
|
+
componentId: "sc-86ottl-12"
|
|
35731
|
+
})(["color:", ";"], function (_ref10) {
|
|
35732
|
+
var $insufficient = _ref10.$insufficient;
|
|
35733
|
+
return $insufficient ? '#ef4444' : 'rgba(255, 255, 255, 0.4)';
|
|
35734
|
+
});
|
|
35735
|
+
var ConfirmRow = /*#__PURE__*/styled__default.div.withConfig({
|
|
35736
|
+
displayName: "MarketplaceBuyModal__ConfirmRow",
|
|
35737
|
+
componentId: "sc-86ottl-13"
|
|
35738
|
+
})(["display:flex;justify-content:center;margin-top:4px;"]);
|
|
35739
|
+
|
|
35590
35740
|
var MarketplaceRows = function MarketplaceRows(_ref) {
|
|
35591
35741
|
var atlasJSON = _ref.atlasJSON,
|
|
35592
35742
|
atlasIMG = _ref.atlasIMG,
|
|
35593
35743
|
item = _ref.item,
|
|
35594
35744
|
itemPrice = _ref.itemPrice,
|
|
35745
|
+
dcEquivalentPrice = _ref.dcEquivalentPrice,
|
|
35595
35746
|
equipmentSet = _ref.equipmentSet,
|
|
35596
35747
|
scale = _ref.scale,
|
|
35597
35748
|
onMarketPlaceItemBuy = _ref.onMarketPlaceItemBuy,
|
|
@@ -35630,9 +35781,9 @@ var MarketplaceRows = function MarketplaceRows(_ref) {
|
|
|
35630
35781
|
imgScale: 2
|
|
35631
35782
|
})), React__default.createElement(PriceValue, null, React__default.createElement("p", null, React__default.createElement(Ellipsis, {
|
|
35632
35783
|
maxLines: 1,
|
|
35633
|
-
maxWidth: "
|
|
35784
|
+
maxWidth: "120px",
|
|
35634
35785
|
fontSize: "10px"
|
|
35635
|
-
}, "$", itemPrice)))), React__default.createElement(ButtonContainer$3, null, React__default.createElement(Button, {
|
|
35786
|
+
}, "$", itemPrice))), dcEquivalentPrice !== undefined && React__default.createElement(DCPriceLabel, null, shared.formatDCAmount(dcEquivalentPrice), " DC")), React__default.createElement(ButtonContainer$3, null, React__default.createElement(Button, {
|
|
35636
35787
|
buttonType: exports.ButtonTypes.RPGUIButton,
|
|
35637
35788
|
disabled: disabled,
|
|
35638
35789
|
onPointerDown: function onPointerDown() {
|
|
@@ -35670,17 +35821,21 @@ var SpriteContainer$3 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
35670
35821
|
displayName: "MarketplaceRows__SpriteContainer",
|
|
35671
35822
|
componentId: "sc-wmpr1o-6"
|
|
35672
35823
|
})(["position:relative;left:0.5rem;"]);
|
|
35824
|
+
var DCPriceLabel = /*#__PURE__*/styled__default.span.withConfig({
|
|
35825
|
+
displayName: "MarketplaceRows__DCPriceLabel",
|
|
35826
|
+
componentId: "sc-wmpr1o-7"
|
|
35827
|
+
})(["margin-left:8px;color:#fef08a;font-size:0.65rem;white-space:nowrap;"]);
|
|
35673
35828
|
var PriceValue = /*#__PURE__*/styled__default.div.withConfig({
|
|
35674
35829
|
displayName: "MarketplaceRows__PriceValue",
|
|
35675
|
-
componentId: "sc-wmpr1o-
|
|
35830
|
+
componentId: "sc-wmpr1o-8"
|
|
35676
35831
|
})(["margin-left:40px;"]);
|
|
35677
35832
|
var ButtonContainer$3 = /*#__PURE__*/styled__default.div.withConfig({
|
|
35678
35833
|
displayName: "MarketplaceRows__ButtonContainer",
|
|
35679
|
-
componentId: "sc-wmpr1o-
|
|
35834
|
+
componentId: "sc-wmpr1o-9"
|
|
35680
35835
|
})(["margin:auto;"]);
|
|
35681
35836
|
var RarityContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
35682
35837
|
displayName: "MarketplaceRows__RarityContainer",
|
|
35683
|
-
componentId: "sc-wmpr1o-
|
|
35838
|
+
componentId: "sc-wmpr1o-10"
|
|
35684
35839
|
})(["border-color:", ";box-shadow:", " inset,", ";width:32px;height:32px;"], function (_ref2) {
|
|
35685
35840
|
var item = _ref2.item;
|
|
35686
35841
|
return rarityColor(item);
|
|
@@ -35751,7 +35906,11 @@ var BuyPanel = function BuyPanel(_ref) {
|
|
|
35751
35906
|
characterId = _ref.characterId,
|
|
35752
35907
|
enableHotkeys = _ref.enableHotkeys,
|
|
35753
35908
|
disableHotkeys = _ref.disableHotkeys,
|
|
35754
|
-
currentPage = _ref.currentPage
|
|
35909
|
+
currentPage = _ref.currentPage,
|
|
35910
|
+
_ref$dcBalance = _ref.dcBalance,
|
|
35911
|
+
dcBalance = _ref$dcBalance === void 0 ? 0 : _ref$dcBalance,
|
|
35912
|
+
_ref$dcToGoldSwapRate = _ref.dcToGoldSwapRate,
|
|
35913
|
+
dcToGoldSwapRate = _ref$dcToGoldSwapRate === void 0 ? 0 : _ref$dcToGoldSwapRate;
|
|
35755
35914
|
var _useState = React.useState(''),
|
|
35756
35915
|
name = _useState[0],
|
|
35757
35916
|
setName = _useState[1];
|
|
@@ -35772,7 +35931,26 @@ var BuyPanel = function BuyPanel(_ref) {
|
|
|
35772
35931
|
var _itemsContainer$curre;
|
|
35773
35932
|
(_itemsContainer$curre = itemsContainer.current) == null ? void 0 : _itemsContainer$curre.scrollTo(0, 0);
|
|
35774
35933
|
}, [currentPage]);
|
|
35775
|
-
|
|
35934
|
+
var buyingItem = buyingItemId ? items.find(function (i) {
|
|
35935
|
+
return i._id === buyingItemId;
|
|
35936
|
+
}) : null;
|
|
35937
|
+
var hasDCBalance = dcBalance > 0 && dcToGoldSwapRate > 0;
|
|
35938
|
+
var getDCEquivalentPrice = function getDCEquivalentPrice(goldPrice) {
|
|
35939
|
+
return dcToGoldSwapRate > 0 ? shared.goldToDC(goldPrice) : 0;
|
|
35940
|
+
};
|
|
35941
|
+
return React__default.createElement(React__default.Fragment, null, buyingItemId && buyingItem && hasDCBalance && React__default.createElement(MarketplaceBuyModal, {
|
|
35942
|
+
goldPrice: buyingItem.price,
|
|
35943
|
+
dcEquivalentPrice: getDCEquivalentPrice(buyingItem.price),
|
|
35944
|
+
dcBalance: dcBalance,
|
|
35945
|
+
onClose: function onClose() {
|
|
35946
|
+
return setBuyingItemId(null);
|
|
35947
|
+
},
|
|
35948
|
+
onConfirm: function onConfirm(paymentMethod) {
|
|
35949
|
+
onMarketPlaceItemBuy == null ? void 0 : onMarketPlaceItemBuy(buyingItemId, paymentMethod);
|
|
35950
|
+
setBuyingItemId(null);
|
|
35951
|
+
enableHotkeys == null ? void 0 : enableHotkeys();
|
|
35952
|
+
}
|
|
35953
|
+
}), buyingItemId && !hasDCBalance && React__default.createElement(ConfirmModal, {
|
|
35776
35954
|
onClose: setBuyingItemId.bind(null, null),
|
|
35777
35955
|
onConfirm: function onConfirm() {
|
|
35778
35956
|
onMarketPlaceItemBuy == null ? void 0 : onMarketPlaceItemBuy(buyingItemId);
|
|
@@ -35877,6 +36055,7 @@ var BuyPanel = function BuyPanel(_ref) {
|
|
|
35877
36055
|
atlasJSON: atlasJSON,
|
|
35878
36056
|
item: item,
|
|
35879
36057
|
itemPrice: price,
|
|
36058
|
+
dcEquivalentPrice: dcToGoldSwapRate > 0 ? getDCEquivalentPrice(price) : undefined,
|
|
35880
36059
|
equipmentSet: equipmentSet,
|
|
35881
36060
|
onMarketPlaceItemBuy: setBuyingItemId.bind(null, _id),
|
|
35882
36061
|
disabled: owner === characterId
|
|
@@ -36250,7 +36429,7 @@ var PartyCreate = function PartyCreate(_ref) {
|
|
|
36250
36429
|
style: {
|
|
36251
36430
|
width: '100%'
|
|
36252
36431
|
}
|
|
36253
|
-
}, React__default.createElement(Title$
|
|
36432
|
+
}, React__default.createElement(Title$9, null, "Create Party"), React__default.createElement("hr", {
|
|
36254
36433
|
className: "golden"
|
|
36255
36434
|
}))), React__default.createElement("h1", null, "Type your party name"), React__default.createElement(Input, {
|
|
36256
36435
|
placeholder: "Type party name",
|
|
@@ -36273,7 +36452,7 @@ var Wrapper$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
36273
36452
|
displayName: "PartyCreate__Wrapper",
|
|
36274
36453
|
componentId: "sc-13brop0-0"
|
|
36275
36454
|
})(["display:flex;flex-direction:column;width:100%;"]);
|
|
36276
|
-
var Title$
|
|
36455
|
+
var Title$9 = /*#__PURE__*/styled__default.h1.withConfig({
|
|
36277
36456
|
displayName: "PartyCreate__Title",
|
|
36278
36457
|
componentId: "sc-13brop0-1"
|
|
36279
36458
|
})(["font-size:0.6rem;color:", " !important;"], uiColors.yellow);
|
|
@@ -36322,7 +36501,7 @@ var PartyDashboard = function PartyDashboard(_ref) {
|
|
|
36322
36501
|
style: {
|
|
36323
36502
|
width: '100%'
|
|
36324
36503
|
}
|
|
36325
|
-
}, React__default.createElement(Title$
|
|
36504
|
+
}, React__default.createElement(Title$a, null, "Party Dashboard"), React__default.createElement(Button, {
|
|
36326
36505
|
buttonType: exports.ButtonTypes.RPGUIButton
|
|
36327
36506
|
}, "Create"), React__default.createElement("hr", {
|
|
36328
36507
|
className: "golden"
|
|
@@ -36349,7 +36528,7 @@ var RowsWrapper = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
36349
36528
|
displayName: "PartyDashboard__RowsWrapper",
|
|
36350
36529
|
componentId: "sc-16cm41r-1"
|
|
36351
36530
|
})(["overflow-y:scroll;-webkit-overflow-scrolling:touch;width:100%;height:200px;"]);
|
|
36352
|
-
var Title$
|
|
36531
|
+
var Title$a = /*#__PURE__*/styled__default.h1.withConfig({
|
|
36353
36532
|
displayName: "PartyDashboard__Title",
|
|
36354
36533
|
componentId: "sc-16cm41r-2"
|
|
36355
36534
|
})(["font-size:0.6rem;color:", " !important;"], uiColors.yellow);
|
|
@@ -36386,7 +36565,7 @@ var PartyInvite = function PartyInvite(_ref) {
|
|
|
36386
36565
|
style: {
|
|
36387
36566
|
width: '100%'
|
|
36388
36567
|
}
|
|
36389
|
-
}, React__default.createElement(Title$
|
|
36568
|
+
}, React__default.createElement(Title$b, null, "Invite for Party"), React__default.createElement("hr", {
|
|
36390
36569
|
className: "golden"
|
|
36391
36570
|
}))), React__default.createElement(RowsWrapper$1, {
|
|
36392
36571
|
className: "playersRows"
|
|
@@ -36405,7 +36584,7 @@ var Wrapper$3 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
36405
36584
|
displayName: "PartyInvite__Wrapper",
|
|
36406
36585
|
componentId: "sc-eu8ggt-0"
|
|
36407
36586
|
})(["display:flex;flex-direction:column;width:100%;"]);
|
|
36408
|
-
var Title$
|
|
36587
|
+
var Title$b = /*#__PURE__*/styled__default.h1.withConfig({
|
|
36409
36588
|
displayName: "PartyInvite__Title",
|
|
36410
36589
|
componentId: "sc-eu8ggt-1"
|
|
36411
36590
|
})(["font-size:0.6rem;color:", " !important;"], uiColors.yellow);
|
|
@@ -36847,7 +37026,7 @@ var QuestInfo = function QuestInfo(_ref) {
|
|
|
36847
37026
|
onPointerDown: onRightClick
|
|
36848
37027
|
}), React__default.createElement(QuestContainer, null, React__default.createElement(TitleContainer$1, {
|
|
36849
37028
|
className: "drag-handler"
|
|
36850
|
-
}, React__default.createElement(Title$
|
|
37029
|
+
}, React__default.createElement(Title$c, null, React__default.createElement(Thumbnail, {
|
|
36851
37030
|
src: quests[currentIndex].thumbnail || img$8
|
|
36852
37031
|
}), quests[currentIndex].title), React__default.createElement(QuestSplitDiv, null, React__default.createElement("hr", {
|
|
36853
37032
|
className: "golden"
|
|
@@ -36866,7 +37045,7 @@ var QuestInfo = function QuestInfo(_ref) {
|
|
|
36866
37045
|
}, button.title);
|
|
36867
37046
|
})))) : React__default.createElement(QuestsContainer, null, React__default.createElement(QuestContainer, null, React__default.createElement(TitleContainer$1, {
|
|
36868
37047
|
className: "drag-handler"
|
|
36869
|
-
}, React__default.createElement(Title$
|
|
37048
|
+
}, React__default.createElement(Title$c, null, React__default.createElement(Thumbnail, {
|
|
36870
37049
|
src: quests[0].thumbnail || img$8
|
|
36871
37050
|
}), quests[0].title), React__default.createElement(QuestSplitDiv, null, React__default.createElement("hr", {
|
|
36872
37051
|
className: "golden"
|
|
@@ -36913,7 +37092,7 @@ var TitleContainer$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
36913
37092
|
displayName: "QuestInfo__TitleContainer",
|
|
36914
37093
|
componentId: "sc-1wccpiy-6"
|
|
36915
37094
|
})(["width:100%;display:flex;flex-wrap:wrap;justify-content:flex-start;align-items:center;margin-top:1rem;"]);
|
|
36916
|
-
var Title$
|
|
37095
|
+
var Title$c = /*#__PURE__*/styled__default.h1.withConfig({
|
|
36917
37096
|
displayName: "QuestInfo__Title",
|
|
36918
37097
|
componentId: "sc-1wccpiy-7"
|
|
36919
37098
|
})(["color:white;z-index:22;font-size:", " !important;color:", " !important;"], uiFonts.size.medium, uiColors.yellow);
|
|
@@ -37441,7 +37620,7 @@ var SkillsContainer = function SkillsContainer(_ref) {
|
|
|
37441
37620
|
cancelDrag: "#skillsDiv",
|
|
37442
37621
|
scale: scale,
|
|
37443
37622
|
width: "100%"
|
|
37444
|
-
}, onCloseButton && React__default.createElement(CloseButton$
|
|
37623
|
+
}, onCloseButton && React__default.createElement(CloseButton$a, {
|
|
37445
37624
|
onPointerDown: onCloseButton
|
|
37446
37625
|
}, "X"), React__default.createElement(SkillsContainerDiv, {
|
|
37447
37626
|
id: "skillsDiv"
|
|
@@ -37476,7 +37655,7 @@ var SkillSplitDiv = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
37476
37655
|
displayName: "SkillsContainer__SkillSplitDiv",
|
|
37477
37656
|
componentId: "sc-1g0c67q-2"
|
|
37478
37657
|
})(["width:100%;font-size:11px;hr{margin:0;margin-bottom:1rem;padding:0px;}p{margin-bottom:0px;}"]);
|
|
37479
|
-
var CloseButton$
|
|
37658
|
+
var CloseButton$a = /*#__PURE__*/styled__default.div.withConfig({
|
|
37480
37659
|
displayName: "SkillsContainer__CloseButton",
|
|
37481
37660
|
componentId: "sc-1g0c67q-3"
|
|
37482
37661
|
})(["position:absolute;top:2px;right:2px;color:white;z-index:22;font-size:1.1rem;"]);
|
|
@@ -37612,7 +37791,7 @@ var SpellInfo$1 = function SpellInfo(_ref) {
|
|
|
37612
37791
|
castingType = spell.castingType,
|
|
37613
37792
|
cooldown = spell.cooldown,
|
|
37614
37793
|
maxDistanceGrid = spell.maxDistanceGrid;
|
|
37615
|
-
return React__default.createElement(Container$F, null, React__default.createElement(Header$
|
|
37794
|
+
return React__default.createElement(Container$F, null, React__default.createElement(Header$8, null, React__default.createElement("div", null, React__default.createElement(Title$d, null, name), React__default.createElement(Type$1, null, magicWords))), React__default.createElement(Statistic$1, null, React__default.createElement("div", {
|
|
37616
37795
|
className: "label"
|
|
37617
37796
|
}, "Casting Type:"), React__default.createElement("div", {
|
|
37618
37797
|
className: "value"
|
|
@@ -37642,7 +37821,7 @@ var Container$F = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
37642
37821
|
displayName: "SpellInfo__Container",
|
|
37643
37822
|
componentId: "sc-4hbw3q-0"
|
|
37644
37823
|
})(["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);
|
|
37645
|
-
var Title$
|
|
37824
|
+
var Title$d = /*#__PURE__*/styled__default.div.withConfig({
|
|
37646
37825
|
displayName: "SpellInfo__Title",
|
|
37647
37826
|
componentId: "sc-4hbw3q-1"
|
|
37648
37827
|
})(["font-size:", ";font-weight:bold;margin-bottom:0.5rem;display:flex;align-items:center;margin:0;"], uiFonts.size.medium);
|
|
@@ -37654,7 +37833,7 @@ var Description$4 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
37654
37833
|
displayName: "SpellInfo__Description",
|
|
37655
37834
|
componentId: "sc-4hbw3q-3"
|
|
37656
37835
|
})(["margin-top:1.5rem;font-size:", ";color:", ";font-style:italic;"], uiFonts.size.small, uiColors.lightGray);
|
|
37657
|
-
var Header$
|
|
37836
|
+
var Header$8 = /*#__PURE__*/styled__default.div.withConfig({
|
|
37658
37837
|
displayName: "SpellInfo__Header",
|
|
37659
37838
|
componentId: "sc-4hbw3q-4"
|
|
37660
37839
|
})(["display:flex;align-items:center;justify-content:space-between;margin-bottom:0.5rem;"]);
|
|
@@ -37870,7 +38049,7 @@ var Spell = function Spell(_ref) {
|
|
|
37870
38049
|
onPointerUp: onPointerUp == null ? void 0 : onPointerUp.bind(null, spellKey),
|
|
37871
38050
|
isSettingShortcut: isSettingShortcut && !disabled,
|
|
37872
38051
|
className: "spell"
|
|
37873
|
-
}, disabled && React__default.createElement(Overlay$
|
|
38052
|
+
}, disabled && React__default.createElement(Overlay$5, 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", {
|
|
37874
38053
|
className: "cooldown"
|
|
37875
38054
|
}, activeCooldown.toFixed(activeCooldown > 10 ? 0 : 1)) : null, React__default.createElement(SpriteFromAtlas, {
|
|
37876
38055
|
atlasIMG: atlasIMG,
|
|
@@ -37879,7 +38058,7 @@ var Spell = function Spell(_ref) {
|
|
|
37879
38058
|
imgScale: IMAGE_SCALE,
|
|
37880
38059
|
containerStyle: CONTAINER_STYLE,
|
|
37881
38060
|
centered: true
|
|
37882
|
-
})), React__default.createElement(Info, null, React__default.createElement(Title$
|
|
38061
|
+
})), React__default.createElement(Info, null, React__default.createElement(Title$e, null, React__default.createElement("span", null, name), React__default.createElement("span", {
|
|
37883
38062
|
className: "spell"
|
|
37884
38063
|
}, "(", 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", {
|
|
37885
38064
|
className: "mana"
|
|
@@ -37900,7 +38079,7 @@ var Info = /*#__PURE__*/styled__default.span.withConfig({
|
|
|
37900
38079
|
displayName: "Spell__Info",
|
|
37901
38080
|
componentId: "sc-j96fa2-2"
|
|
37902
38081
|
})(["width:0;flex:1;@media (orientation:portrait){display:none;}"]);
|
|
37903
|
-
var Title$
|
|
38082
|
+
var Title$e = /*#__PURE__*/styled__default.p.withConfig({
|
|
37904
38083
|
displayName: "Spell__Title",
|
|
37905
38084
|
componentId: "sc-j96fa2-3"
|
|
37906
38085
|
})(["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);
|
|
@@ -37916,7 +38095,7 @@ var Cost = /*#__PURE__*/styled__default.p.withConfig({
|
|
|
37916
38095
|
displayName: "Spell__Cost",
|
|
37917
38096
|
componentId: "sc-j96fa2-6"
|
|
37918
38097
|
})(["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);
|
|
37919
|
-
var Overlay$
|
|
38098
|
+
var Overlay$5 = /*#__PURE__*/styled__default.p.withConfig({
|
|
37920
38099
|
displayName: "Spell__Overlay",
|
|
37921
38100
|
componentId: "sc-j96fa2-7"
|
|
37922
38101
|
})(["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);
|
|
@@ -37965,7 +38144,7 @@ var Spellbook = function Spellbook(_ref) {
|
|
|
37965
38144
|
height: "inherit",
|
|
37966
38145
|
cancelDrag: "#spellbook-search, #shortcuts_list, .spell",
|
|
37967
38146
|
scale: scale
|
|
37968
|
-
}, React__default.createElement(Container$J, null, React__default.createElement(Title$
|
|
38147
|
+
}, React__default.createElement(Container$J, null, React__default.createElement(Title$f, null, "Learned Spells"), React__default.createElement(ShortcutsSetter, {
|
|
37969
38148
|
setSettingShortcutIndex: setSettingShortcutIndex,
|
|
37970
38149
|
settingShortcutIndex: settingShortcutIndex,
|
|
37971
38150
|
shortcuts: shortcuts,
|
|
@@ -37998,7 +38177,7 @@ var Spellbook = function Spellbook(_ref) {
|
|
|
37998
38177
|
}, spell)));
|
|
37999
38178
|
}))));
|
|
38000
38179
|
};
|
|
38001
|
-
var Title$
|
|
38180
|
+
var Title$f = /*#__PURE__*/styled__default.h1.withConfig({
|
|
38002
38181
|
displayName: "Spellbook__Title",
|
|
38003
38182
|
componentId: "sc-r02nfq-0"
|
|
38004
38183
|
})(["font-size:", " !important;margin-bottom:0 !important;"], uiFonts.size.large);
|
|
@@ -58440,7 +58619,7 @@ var CartView = function CartView(_ref2) {
|
|
|
58440
58619
|
return _ref3.apply(this, arguments);
|
|
58441
58620
|
};
|
|
58442
58621
|
}();
|
|
58443
|
-
return React__default.createElement(Container$K, null, React__default.createElement(Header$
|
|
58622
|
+
return React__default.createElement(Container$K, null, React__default.createElement(Header$9, null, React__default.createElement(Title$g, null, "Shopping Cart"), React__default.createElement(CloseButton$b, {
|
|
58444
58623
|
onPointerDown: onClose
|
|
58445
58624
|
}, 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) {
|
|
58446
58625
|
var _cartItem$metadata, _cartItem$metadata2;
|
|
@@ -58480,15 +58659,15 @@ var Container$K = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
58480
58659
|
displayName: "CartView__Container",
|
|
58481
58660
|
componentId: "sc-ydtyl1-0"
|
|
58482
58661
|
})(["display:flex;flex-direction:column;width:100%;height:100%;gap:1.5rem;padding:1.5rem;"]);
|
|
58483
|
-
var Header$
|
|
58662
|
+
var Header$9 = /*#__PURE__*/styled__default.div.withConfig({
|
|
58484
58663
|
displayName: "CartView__Header",
|
|
58485
58664
|
componentId: "sc-ydtyl1-1"
|
|
58486
58665
|
})(["display:flex;justify-content:space-between;align-items:center;"]);
|
|
58487
|
-
var Title$
|
|
58666
|
+
var Title$g = /*#__PURE__*/styled__default.h2.withConfig({
|
|
58488
58667
|
displayName: "CartView__Title",
|
|
58489
58668
|
componentId: "sc-ydtyl1-2"
|
|
58490
58669
|
})(["font-family:'Press Start 2P',cursive;font-size:1rem;color:#ffffff;margin:0;"]);
|
|
58491
|
-
var CloseButton$
|
|
58670
|
+
var CloseButton$b = /*#__PURE__*/styled__default.div.withConfig({
|
|
58492
58671
|
displayName: "CartView__CloseButton",
|
|
58493
58672
|
componentId: "sc-ydtyl1-3"
|
|
58494
58673
|
})(["padding:0.5rem;min-width:unset;width:42px;height:42px;display:flex;font-size:1.5rem;align-items:center;color:white;justify-content:center;"]);
|
|
@@ -58970,7 +59149,7 @@ var StoreCharacterSkinRow = function StoreCharacterSkinRow(_ref) {
|
|
|
58970
59149
|
height: 32,
|
|
58971
59150
|
imgScale: 2,
|
|
58972
59151
|
centered: true
|
|
58973
|
-
}) : React__default.createElement(DefaultIcon, null, "\uD83D\uDC64")), React__default.createElement(ItemDetails$1, null, React__default.createElement(Header$
|
|
59152
|
+
}) : React__default.createElement(DefaultIcon, null, "\uD83D\uDC64")), React__default.createElement(ItemDetails$1, null, React__default.createElement(Header$a, 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, {
|
|
58974
59153
|
direction: "left",
|
|
58975
59154
|
onPointerDown: handlePreviousSkin,
|
|
58976
59155
|
size: 24
|
|
@@ -59022,7 +59201,7 @@ var SkinNavArrow = /*#__PURE__*/styled__default(SelectArrow).withConfig({
|
|
|
59022
59201
|
displayName: "StoreCharacterSkinRow__SkinNavArrow",
|
|
59023
59202
|
componentId: "sc-81xqsx-7"
|
|
59024
59203
|
})(["position:static;"]);
|
|
59025
|
-
var Header$
|
|
59204
|
+
var Header$a = /*#__PURE__*/styled__default.div.withConfig({
|
|
59026
59205
|
displayName: "StoreCharacterSkinRow__Header",
|
|
59027
59206
|
componentId: "sc-81xqsx-8"
|
|
59028
59207
|
})(["display:flex;align-items:center;gap:0.5rem;"]);
|
|
@@ -59346,7 +59525,9 @@ var usePackFiltering = function usePackFiltering(packs) {
|
|
|
59346
59525
|
var StorePacksSection = function StorePacksSection(_ref) {
|
|
59347
59526
|
var packs = _ref.packs,
|
|
59348
59527
|
onAddToCart = _ref.onAddToCart,
|
|
59349
|
-
onSelectPack = _ref.onSelectPack
|
|
59528
|
+
onSelectPack = _ref.onSelectPack,
|
|
59529
|
+
atlasJSON = _ref.atlasJSON,
|
|
59530
|
+
atlasIMG = _ref.atlasIMG;
|
|
59350
59531
|
var _usePackFiltering = usePackFiltering(packs),
|
|
59351
59532
|
searchQuery = _usePackFiltering.searchQuery,
|
|
59352
59533
|
setSearchQuery = _usePackFiltering.setSearchQuery,
|
|
@@ -59355,16 +59536,32 @@ var StorePacksSection = function StorePacksSection(_ref) {
|
|
|
59355
59536
|
if (typeof imageUrl === 'string') return imageUrl;
|
|
59356
59537
|
return imageUrl["default"] || imageUrl.src;
|
|
59357
59538
|
};
|
|
59539
|
+
var renderPackIcon = React.useCallback(function (pack) {
|
|
59540
|
+
var _atlasJSON$frames;
|
|
59541
|
+
var imgSrc = getImageSrc(pack.image);
|
|
59542
|
+
if (atlasJSON && atlasIMG && imgSrc && atlasJSON != null && (_atlasJSON$frames = atlasJSON.frames) != null && _atlasJSON$frames[imgSrc]) {
|
|
59543
|
+
return React__default.createElement(SpriteFromAtlas, {
|
|
59544
|
+
atlasJSON: atlasJSON,
|
|
59545
|
+
atlasIMG: atlasIMG,
|
|
59546
|
+
spriteKey: imgSrc,
|
|
59547
|
+
width: 40,
|
|
59548
|
+
height: 40,
|
|
59549
|
+
imgScale: 1.2,
|
|
59550
|
+
centered: true
|
|
59551
|
+
});
|
|
59552
|
+
}
|
|
59553
|
+
return React__default.createElement("img", {
|
|
59554
|
+
src: imgSrc,
|
|
59555
|
+
alt: pack.title
|
|
59556
|
+
});
|
|
59557
|
+
}, [atlasJSON, atlasIMG]);
|
|
59358
59558
|
var renderPack = React.useCallback(function (pack) {
|
|
59359
59559
|
return React__default.createElement(PackRow, {
|
|
59360
59560
|
key: pack.key,
|
|
59361
59561
|
onClick: function onClick() {
|
|
59362
59562
|
return onSelectPack == null ? void 0 : onSelectPack(pack);
|
|
59363
59563
|
}
|
|
59364
|
-
}, React__default.createElement(PackIconContainer, null, React__default.createElement("
|
|
59365
|
-
src: getImageSrc(pack.image),
|
|
59366
|
-
alt: pack.title
|
|
59367
|
-
})), React__default.createElement(PackDetails, null, React__default.createElement(PackName, null, pack.title), React__default.createElement(PackPrice, null, "$", pack.priceUSD), pack.description && React__default.createElement(PackDescription, null, pack.description)), React__default.createElement(Controls$2, null, React__default.createElement(CTAButton, {
|
|
59564
|
+
}, React__default.createElement(PackIconContainer, null, renderPackIcon(pack)), React__default.createElement(PackDetails, null, React__default.createElement(PackName, null, pack.title), React__default.createElement(PackPrice, null, "$", pack.priceUSD), pack.description && React__default.createElement(PackDescription, null, pack.description)), React__default.createElement(Controls$2, null, React__default.createElement(CTAButton, {
|
|
59368
59565
|
icon: React__default.createElement(fa.FaCartPlus, null),
|
|
59369
59566
|
label: "Add",
|
|
59370
59567
|
onClick: function onClick(e) {
|
|
@@ -59425,7 +59622,7 @@ var StoreItemDetails = function StoreItemDetails(_ref) {
|
|
|
59425
59622
|
if (typeof imageUrl === 'string') return imageUrl;
|
|
59426
59623
|
return imageUrl["default"] || imageUrl.src;
|
|
59427
59624
|
};
|
|
59428
|
-
return React__default.createElement(Container$M, null, React__default.createElement(Header$
|
|
59625
|
+
return React__default.createElement(Container$M, null, React__default.createElement(Header$b, null, React__default.createElement(BackButton, {
|
|
59429
59626
|
onClick: onBack
|
|
59430
59627
|
}, 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", {
|
|
59431
59628
|
src: getImageSrc(),
|
|
@@ -59443,7 +59640,7 @@ var Container$M = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
59443
59640
|
displayName: "StoreItemDetails__Container",
|
|
59444
59641
|
componentId: "sc-k3ho5z-0"
|
|
59445
59642
|
})(["display:flex;flex-direction:column;gap:1.5rem;padding:1.5rem;height:100%;"]);
|
|
59446
|
-
var Header$
|
|
59643
|
+
var Header$b = /*#__PURE__*/styled__default.div.withConfig({
|
|
59447
59644
|
displayName: "StoreItemDetails__Header",
|
|
59448
59645
|
componentId: "sc-k3ho5z-1"
|
|
59449
59646
|
})(["display:flex;align-items:center;gap:1rem;"]);
|
|
@@ -59627,18 +59824,22 @@ var Store = function Store(_ref) {
|
|
|
59627
59824
|
return pack.priceUSD >= 9.99;
|
|
59628
59825
|
}),
|
|
59629
59826
|
onAddToCart: handleAddPackToCart,
|
|
59630
|
-
onSelectPack: setSelectedPack
|
|
59827
|
+
onSelectPack: setSelectedPack,
|
|
59828
|
+
atlasJSON: atlasJSON,
|
|
59829
|
+
atlasIMG: atlasIMG
|
|
59631
59830
|
})
|
|
59632
59831
|
},
|
|
59633
59832
|
packs: {
|
|
59634
59833
|
id: 'packs',
|
|
59635
59834
|
title: packsTabLabel,
|
|
59636
59835
|
content: customPacksContent != null ? customPacksContent : React__default.createElement(StorePacksSection, {
|
|
59637
|
-
packs: packs.filter(function (pack) {
|
|
59836
|
+
packs: hidePremiumTab ? packs : packs.filter(function (pack) {
|
|
59638
59837
|
return pack.priceUSD < 9.99;
|
|
59639
59838
|
}),
|
|
59640
59839
|
onAddToCart: handleAddPackToCart,
|
|
59641
|
-
onSelectPack: setSelectedPack
|
|
59840
|
+
onSelectPack: setSelectedPack,
|
|
59841
|
+
atlasJSON: atlasJSON,
|
|
59842
|
+
atlasIMG: atlasIMG
|
|
59642
59843
|
})
|
|
59643
59844
|
},
|
|
59644
59845
|
items: {
|
|
@@ -59715,7 +59916,6 @@ var Store = function Store(_ref) {
|
|
|
59715
59916
|
}
|
|
59716
59917
|
}) : React__default.createElement(Container$N, null, React__default.createElement(TopBar$1, null, React__default.createElement(LeftButtons, null, onShowHistory && React__default.createElement(CTAButton, {
|
|
59717
59918
|
icon: React__default.createElement(fa.FaHistory, null),
|
|
59718
|
-
label: "History",
|
|
59719
59919
|
onClick: onShowHistory
|
|
59720
59920
|
}), onShowWallet && React__default.createElement(CTAButton, {
|
|
59721
59921
|
icon: React__default.createElement(fa.FaWallet, null),
|
|
@@ -59802,63 +60002,63 @@ var PaymentMethodModal = function PaymentMethodModal(_ref) {
|
|
|
59802
60002
|
onPayWithCard();
|
|
59803
60003
|
}
|
|
59804
60004
|
}, [selected, onPayWithDC, onPayWithCard]);
|
|
59805
|
-
return React__default.createElement(ModalPortal, null, React__default.createElement(Overlay$
|
|
60005
|
+
return React__default.createElement(ModalPortal, null, React__default.createElement(Overlay$6, {
|
|
59806
60006
|
onPointerDown: onClose
|
|
59807
|
-
}), React__default.createElement(ModalContainer$
|
|
60007
|
+
}), React__default.createElement(ModalContainer$3, null, React__default.createElement(ModalContent$3, {
|
|
59808
60008
|
onClick: stopPropagation,
|
|
59809
60009
|
onTouchStart: stopPropagation,
|
|
59810
60010
|
onPointerDown: stopPropagation
|
|
59811
|
-
}, React__default.createElement(Header$
|
|
60011
|
+
}, React__default.createElement(Header$c, null, React__default.createElement(Title$h, null, "How would you like to pay?"), React__default.createElement(CloseButton$c, {
|
|
59812
60012
|
onPointerDown: onClose,
|
|
59813
60013
|
"aria-label": "Close"
|
|
59814
|
-
}, React__default.createElement(fa.FaTimes, null))), React__default.createElement(Options, null, React__default.createElement(RadioOption, {
|
|
60014
|
+
}, React__default.createElement(fa.FaTimes, null))), React__default.createElement(Options$1, null, React__default.createElement(RadioOption$1, {
|
|
59815
60015
|
"$selected": selected === 'card',
|
|
59816
60016
|
onPointerDown: function onPointerDown() {
|
|
59817
60017
|
return setSelected('card');
|
|
59818
60018
|
}
|
|
59819
|
-
}, React__default.createElement(RadioCircle, {
|
|
60019
|
+
}, React__default.createElement(RadioCircle$1, {
|
|
59820
60020
|
"$selected": selected === 'card'
|
|
59821
|
-
}), React__default.createElement(OptionText, null, React__default.createElement(OptionLabel, null, "Credit Card"), React__default.createElement(OptionSub, null, "Stripe secure checkout"))), React__default.createElement(RadioOption, {
|
|
60021
|
+
}), React__default.createElement(OptionText$1, null, React__default.createElement(OptionLabel$1, null, "Credit Card"), React__default.createElement(OptionSub$1, null, "Stripe secure checkout"))), React__default.createElement(RadioOption$1, {
|
|
59822
60022
|
"$selected": selected === 'dc',
|
|
59823
60023
|
onPointerDown: function onPointerDown() {
|
|
59824
60024
|
return setSelected('dc');
|
|
59825
60025
|
}
|
|
59826
|
-
}, React__default.createElement(RadioCircle, {
|
|
60026
|
+
}, React__default.createElement(RadioCircle$1, {
|
|
59827
60027
|
"$selected": selected === 'dc'
|
|
59828
|
-
}), React__default.createElement(OptionText, null, React__default.createElement(OptionLabel, null, "Definya Coin"), React__default.createElement(OptionSub, null, dcBalance.toLocaleString(), " DC available")))), React__default.createElement(ConfirmRow, null, React__default.createElement(Button, {
|
|
60028
|
+
}), React__default.createElement(OptionText$1, null, React__default.createElement(OptionLabel$1, null, "Definya Coin"), React__default.createElement(OptionSub$1, null, dcBalance.toLocaleString(), " DC available")))), React__default.createElement(ConfirmRow$1, null, React__default.createElement(Button, {
|
|
59829
60029
|
buttonType: exports.ButtonTypes.RPGUIButton,
|
|
59830
60030
|
onPointerDown: handleConfirm
|
|
59831
60031
|
}, "Confirm")))));
|
|
59832
60032
|
};
|
|
59833
|
-
var Overlay$
|
|
60033
|
+
var Overlay$6 = /*#__PURE__*/styled__default.div.withConfig({
|
|
59834
60034
|
displayName: "PaymentMethodModal__Overlay",
|
|
59835
60035
|
componentId: "sc-1dxy6lr-0"
|
|
59836
60036
|
})(["position:fixed;inset:0;background:rgba(0,0,0,0.65);z-index:1000;"]);
|
|
59837
|
-
var ModalContainer$
|
|
60037
|
+
var ModalContainer$3 = /*#__PURE__*/styled__default.div.withConfig({
|
|
59838
60038
|
displayName: "PaymentMethodModal__ModalContainer",
|
|
59839
60039
|
componentId: "sc-1dxy6lr-1"
|
|
59840
60040
|
})(["position:fixed;inset:0;display:flex;align-items:center;justify-content:center;z-index:1001;pointer-events:none;"]);
|
|
59841
|
-
var ModalContent$
|
|
60041
|
+
var ModalContent$3 = /*#__PURE__*/styled__default.div.withConfig({
|
|
59842
60042
|
displayName: "PaymentMethodModal__ModalContent",
|
|
59843
60043
|
componentId: "sc-1dxy6lr-2"
|
|
59844
60044
|
})(["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;}}"]);
|
|
59845
|
-
var Header$
|
|
60045
|
+
var Header$c = /*#__PURE__*/styled__default.div.withConfig({
|
|
59846
60046
|
displayName: "PaymentMethodModal__Header",
|
|
59847
60047
|
componentId: "sc-1dxy6lr-3"
|
|
59848
60048
|
})(["display:flex;align-items:center;justify-content:space-between;"]);
|
|
59849
|
-
var Title$
|
|
60049
|
+
var Title$h = /*#__PURE__*/styled__default.h3.withConfig({
|
|
59850
60050
|
displayName: "PaymentMethodModal__Title",
|
|
59851
60051
|
componentId: "sc-1dxy6lr-4"
|
|
59852
60052
|
})(["margin:0;font-family:'Press Start 2P',cursive;font-size:0.7rem;color:#fef08a;"]);
|
|
59853
|
-
var CloseButton$
|
|
60053
|
+
var CloseButton$c = /*#__PURE__*/styled__default.button.withConfig({
|
|
59854
60054
|
displayName: "PaymentMethodModal__CloseButton",
|
|
59855
60055
|
componentId: "sc-1dxy6lr-5"
|
|
59856
60056
|
})(["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;}"]);
|
|
59857
|
-
var Options = /*#__PURE__*/styled__default.div.withConfig({
|
|
60057
|
+
var Options$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
59858
60058
|
displayName: "PaymentMethodModal__Options",
|
|
59859
60059
|
componentId: "sc-1dxy6lr-6"
|
|
59860
60060
|
})(["display:flex;flex-direction:column;gap:8px;"]);
|
|
59861
|
-
var RadioOption = /*#__PURE__*/styled__default.div.withConfig({
|
|
60061
|
+
var RadioOption$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
59862
60062
|
displayName: "PaymentMethodModal__RadioOption",
|
|
59863
60063
|
componentId: "sc-1dxy6lr-7"
|
|
59864
60064
|
})(["display:flex;align-items:center;gap:12px;padding:10px 12px;border:1px solid ", ";border-radius:6px;background:", ";cursor:pointer;transition:border-color 0.15s,background 0.15s;&:hover{border-color:#f59e0b;}"], function (_ref2) {
|
|
@@ -59868,7 +60068,7 @@ var RadioOption = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
59868
60068
|
var $selected = _ref3.$selected;
|
|
59869
60069
|
return $selected ? 'rgba(245,158,11,0.1)' : 'transparent';
|
|
59870
60070
|
});
|
|
59871
|
-
var RadioCircle = /*#__PURE__*/styled__default.div.withConfig({
|
|
60071
|
+
var RadioCircle$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
59872
60072
|
displayName: "PaymentMethodModal__RadioCircle",
|
|
59873
60073
|
componentId: "sc-1dxy6lr-8"
|
|
59874
60074
|
})(["width:16px;height:16px;border-radius:50%;border:2px solid ", ";display:flex;align-items:center;justify-content:center;flex-shrink:0;&::after{content:'';width:8px;height:8px;border-radius:50%;background:#f59e0b;opacity:", ";transition:opacity 0.15s;}"], function (_ref4) {
|
|
@@ -59878,19 +60078,19 @@ var RadioCircle = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
59878
60078
|
var $selected = _ref5.$selected;
|
|
59879
60079
|
return $selected ? 1 : 0;
|
|
59880
60080
|
});
|
|
59881
|
-
var OptionText = /*#__PURE__*/styled__default.div.withConfig({
|
|
60081
|
+
var OptionText$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
59882
60082
|
displayName: "PaymentMethodModal__OptionText",
|
|
59883
60083
|
componentId: "sc-1dxy6lr-9"
|
|
59884
60084
|
})(["display:flex;flex-direction:column;gap:3px;"]);
|
|
59885
|
-
var OptionLabel = /*#__PURE__*/styled__default.span.withConfig({
|
|
60085
|
+
var OptionLabel$1 = /*#__PURE__*/styled__default.span.withConfig({
|
|
59886
60086
|
displayName: "PaymentMethodModal__OptionLabel",
|
|
59887
60087
|
componentId: "sc-1dxy6lr-10"
|
|
59888
60088
|
})(["font-family:'Press Start 2P',cursive;font-size:0.65rem;color:#ffffff;"]);
|
|
59889
|
-
var OptionSub = /*#__PURE__*/styled__default.span.withConfig({
|
|
60089
|
+
var OptionSub$1 = /*#__PURE__*/styled__default.span.withConfig({
|
|
59890
60090
|
displayName: "PaymentMethodModal__OptionSub",
|
|
59891
60091
|
componentId: "sc-1dxy6lr-11"
|
|
59892
60092
|
})(["font-family:'Press Start 2P',cursive;font-size:0.5rem;color:rgba(255,255,255,0.55);"]);
|
|
59893
|
-
var ConfirmRow = /*#__PURE__*/styled__default.div.withConfig({
|
|
60093
|
+
var ConfirmRow$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
59894
60094
|
displayName: "PaymentMethodModal__ConfirmRow",
|
|
59895
60095
|
componentId: "sc-1dxy6lr-12"
|
|
59896
60096
|
})(["display:flex;justify-content:center;margin-top:4px;"]);
|
|
@@ -59929,7 +60129,7 @@ var TimeWidget = function TimeWidget(_ref) {
|
|
|
59929
60129
|
return React__default.createElement(Draggable, {
|
|
59930
60130
|
scale: scale,
|
|
59931
60131
|
cancel: ".time-widget-close,.time-widget-container,.time-widget-container *"
|
|
59932
|
-
}, React__default.createElement(WidgetContainer, null, React__default.createElement(CloseButton$
|
|
60132
|
+
}, React__default.createElement(WidgetContainer, null, React__default.createElement(CloseButton$d, {
|
|
59933
60133
|
onPointerDown: onClose,
|
|
59934
60134
|
className: "time-widget-close"
|
|
59935
60135
|
}, "X"), React__default.createElement(DayNightContainer, {
|
|
@@ -59946,7 +60146,7 @@ var Time = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
59946
60146
|
displayName: "TimeWidget__Time",
|
|
59947
60147
|
componentId: "sc-1ja236h-1"
|
|
59948
60148
|
})(["top:0.75rem;right:0.5rem;position:absolute;font-size:", ";color:white;"], uiFonts.size.small);
|
|
59949
|
-
var CloseButton$
|
|
60149
|
+
var CloseButton$d = /*#__PURE__*/styled__default.p.withConfig({
|
|
59950
60150
|
displayName: "TimeWidget__CloseButton",
|
|
59951
60151
|
componentId: "sc-1ja236h-2"
|
|
59952
60152
|
})(["position:absolute;top:-0.5rem;margin:0;right:-0.2rem;font-size:", " !important;z-index:1;"], uiFonts.size.small);
|
|
@@ -60225,7 +60425,7 @@ var TradingMenu = function TradingMenu(_ref) {
|
|
|
60225
60425
|
width: "500px",
|
|
60226
60426
|
cancelDrag: "#TraderContainer",
|
|
60227
60427
|
scale: scale
|
|
60228
|
-
}, React__default.createElement(Container$O, null, React__default.createElement(Title$
|
|
60428
|
+
}, React__default.createElement(Container$O, null, React__default.createElement(Title$i, null, type.charAt(0).toUpperCase() + type.slice(1), " Menu"), React__default.createElement("hr", {
|
|
60229
60429
|
className: "golden"
|
|
60230
60430
|
}), React__default.createElement(ScrollWrapper, {
|
|
60231
60431
|
id: "TraderContainer"
|
|
@@ -60257,7 +60457,7 @@ var Container$O = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
60257
60457
|
displayName: "TradingMenu__Container",
|
|
60258
60458
|
componentId: "sc-1wjsz1l-0"
|
|
60259
60459
|
})(["width:100%;"]);
|
|
60260
|
-
var Title$
|
|
60460
|
+
var Title$i = /*#__PURE__*/styled__default.h1.withConfig({
|
|
60261
60461
|
displayName: "TradingMenu__Title",
|
|
60262
60462
|
componentId: "sc-1wjsz1l-1"
|
|
60263
60463
|
})(["font-size:0.7rem !important;color:yellow !important;text-align:center;"]);
|
|
@@ -60478,6 +60678,7 @@ exports.Leaderboard = Leaderboard;
|
|
|
60478
60678
|
exports.ListMenu = ListMenu;
|
|
60479
60679
|
exports.LoginStreakPanel = LoginStreakPanel;
|
|
60480
60680
|
exports.Marketplace = Marketplace;
|
|
60681
|
+
exports.MarketplaceBuyModal = MarketplaceBuyModal;
|
|
60481
60682
|
exports.MarketplaceRows = MarketplaceRows;
|
|
60482
60683
|
exports.MetadataCollector = MetadataCollector;
|
|
60483
60684
|
exports.NPCDialog = NPCDialog;
|