@rpg-engine/long-bow 0.8.137 → 0.8.138
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 +283 -74
- 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 +283 -75
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/DCWallet/DCHistoryPanel.tsx +15 -3
- package/src/components/Marketplace/BuyPanel.tsx +29 -2
- package/src/components/Marketplace/Marketplace.tsx +4 -1
- package/src/components/Marketplace/MarketplaceBuyModal.tsx +230 -0
- package/src/components/Marketplace/MarketplaceRows.tsx +41 -16
- package/src/components/Store/Store.tsx +5 -1
- 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,13 +30389,16 @@ 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
30398
|
key: tx._id
|
|
30388
|
-
}, React__default.createElement(TxLeft, null, React__default.createElement(TxType,
|
|
30399
|
+
}, React__default.createElement(TxLeft, null, React__default.createElement(TxType, {
|
|
30400
|
+
"$color": color
|
|
30401
|
+
}, label), subtitle ? React__default.createElement(TxNote, null, subtitle) : null), React__default.createElement(TxRight, null, React__default.createElement(TxAmount, {
|
|
30389
30402
|
"$credit": isCredit
|
|
30390
30403
|
}, isCredit ? '+' : '', tx.amount, " DC"), React__default.createElement(TxDate, null, formatDate(tx.createdAt))));
|
|
30391
30404
|
})), totalPages > 1 && React__default.createElement(Pagination, {
|
|
@@ -30429,12 +30442,15 @@ var TxRight = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
30429
30442
|
var TxType = /*#__PURE__*/styled__default.span.withConfig({
|
|
30430
30443
|
displayName: "DCHistoryPanel__TxType",
|
|
30431
30444
|
componentId: "sc-debjdj-8"
|
|
30432
|
-
})(["font-size:7px;color
|
|
30445
|
+
})(["font-size:7px;color:", ";font-family:'Press Start 2P',cursive;"], function (_ref2) {
|
|
30446
|
+
var $color = _ref2.$color;
|
|
30447
|
+
return $color;
|
|
30448
|
+
});
|
|
30433
30449
|
var TxAmount = /*#__PURE__*/styled__default.span.withConfig({
|
|
30434
30450
|
displayName: "DCHistoryPanel__TxAmount",
|
|
30435
30451
|
componentId: "sc-debjdj-9"
|
|
30436
|
-
})(["font-size:8px;font-family:'Press Start 2P',cursive;color:", ";white-space:nowrap;"], function (
|
|
30437
|
-
var $credit =
|
|
30452
|
+
})(["font-size:8px;font-family:'Press Start 2P',cursive;color:", ";white-space:nowrap;"], function (_ref3) {
|
|
30453
|
+
var $credit = _ref3.$credit;
|
|
30438
30454
|
return $credit ? uiColors.green : uiColors.red;
|
|
30439
30455
|
});
|
|
30440
30456
|
var TxNote = /*#__PURE__*/styled__default.span.withConfig({
|
|
@@ -35587,11 +35603,145 @@ var PagerContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
35587
35603
|
componentId: "sc-1ekmf50-1"
|
|
35588
35604
|
})(["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
35605
|
|
|
35606
|
+
var MarketplaceBuyModal = function MarketplaceBuyModal(_ref) {
|
|
35607
|
+
var goldPrice = _ref.goldPrice,
|
|
35608
|
+
dcEquivalentPrice = _ref.dcEquivalentPrice,
|
|
35609
|
+
dcBalance = _ref.dcBalance,
|
|
35610
|
+
onConfirm = _ref.onConfirm,
|
|
35611
|
+
onClose = _ref.onClose;
|
|
35612
|
+
var _useState = React.useState('gold'),
|
|
35613
|
+
selected = _useState[0],
|
|
35614
|
+
setSelected = _useState[1];
|
|
35615
|
+
var hasSufficientDC = dcBalance >= dcEquivalentPrice;
|
|
35616
|
+
var stopPropagation = React.useCallback(function (e) {
|
|
35617
|
+
e.stopPropagation();
|
|
35618
|
+
}, []);
|
|
35619
|
+
var handleConfirm = React.useCallback(function () {
|
|
35620
|
+
onConfirm(selected);
|
|
35621
|
+
}, [selected, onConfirm]);
|
|
35622
|
+
return React__default.createElement(ModalPortal, null, React__default.createElement(Overlay$4, {
|
|
35623
|
+
onPointerDown: onClose
|
|
35624
|
+
}), React__default.createElement(ModalContainer$2, null, React__default.createElement(ModalContent$2, {
|
|
35625
|
+
onClick: stopPropagation,
|
|
35626
|
+
onTouchStart: stopPropagation,
|
|
35627
|
+
onPointerDown: stopPropagation
|
|
35628
|
+
}, React__default.createElement(Header$7, null, React__default.createElement(Title$8, null, "Confirm Purchase"), React__default.createElement(CloseButton$9, {
|
|
35629
|
+
onPointerDown: onClose,
|
|
35630
|
+
"aria-label": "Close"
|
|
35631
|
+
}, React__default.createElement(fa.FaTimes, null))), React__default.createElement(Options, null, React__default.createElement(RadioOption, {
|
|
35632
|
+
"$selected": selected === 'gold',
|
|
35633
|
+
onPointerDown: function onPointerDown() {
|
|
35634
|
+
return setSelected('gold');
|
|
35635
|
+
}
|
|
35636
|
+
}, React__default.createElement(RadioCircle, {
|
|
35637
|
+
"$selected": selected === 'gold'
|
|
35638
|
+
}), React__default.createElement(OptionText, null, React__default.createElement(OptionLabel, null, "Gold"), React__default.createElement(OptionSub, null, goldPrice.toLocaleString(), " gold"))), React__default.createElement(RadioOption, {
|
|
35639
|
+
"$selected": selected === 'dc',
|
|
35640
|
+
"$disabled": !hasSufficientDC,
|
|
35641
|
+
onPointerDown: function onPointerDown() {
|
|
35642
|
+
return hasSufficientDC && setSelected('dc');
|
|
35643
|
+
}
|
|
35644
|
+
}, React__default.createElement(RadioCircle, {
|
|
35645
|
+
"$selected": selected === 'dc'
|
|
35646
|
+
}), React__default.createElement(OptionText, null, React__default.createElement(OptionLabel, {
|
|
35647
|
+
"$disabled": !hasSufficientDC
|
|
35648
|
+
}, "Definya Coin"), React__default.createElement(OptionSub, null, dcEquivalentPrice.toLocaleString(), " DC", ' ', React__default.createElement(BalanceHint, {
|
|
35649
|
+
"$insufficient": !hasSufficientDC
|
|
35650
|
+
}, "(", dcBalance.toLocaleString(), " available)"))))), React__default.createElement(ConfirmRow, null, React__default.createElement(Button, {
|
|
35651
|
+
buttonType: exports.ButtonTypes.RPGUIButton,
|
|
35652
|
+
onPointerDown: handleConfirm
|
|
35653
|
+
}, "Confirm")))));
|
|
35654
|
+
};
|
|
35655
|
+
var Overlay$4 = /*#__PURE__*/styled__default.div.withConfig({
|
|
35656
|
+
displayName: "MarketplaceBuyModal__Overlay",
|
|
35657
|
+
componentId: "sc-86ottl-0"
|
|
35658
|
+
})(["position:fixed;inset:0;background:rgba(0,0,0,0.65);z-index:1000;"]);
|
|
35659
|
+
var ModalContainer$2 = /*#__PURE__*/styled__default.div.withConfig({
|
|
35660
|
+
displayName: "MarketplaceBuyModal__ModalContainer",
|
|
35661
|
+
componentId: "sc-86ottl-1"
|
|
35662
|
+
})(["position:fixed;inset:0;display:flex;align-items:center;justify-content:center;z-index:1001;pointer-events:none;"]);
|
|
35663
|
+
var ModalContent$2 = /*#__PURE__*/styled__default.div.withConfig({
|
|
35664
|
+
displayName: "MarketplaceBuyModal__ModalContent",
|
|
35665
|
+
componentId: "sc-86ottl-2"
|
|
35666
|
+
})(["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;}}"]);
|
|
35667
|
+
var Header$7 = /*#__PURE__*/styled__default.div.withConfig({
|
|
35668
|
+
displayName: "MarketplaceBuyModal__Header",
|
|
35669
|
+
componentId: "sc-86ottl-3"
|
|
35670
|
+
})(["display:flex;align-items:center;justify-content:space-between;"]);
|
|
35671
|
+
var Title$8 = /*#__PURE__*/styled__default.h3.withConfig({
|
|
35672
|
+
displayName: "MarketplaceBuyModal__Title",
|
|
35673
|
+
componentId: "sc-86ottl-4"
|
|
35674
|
+
})(["margin:0;font-family:'Press Start 2P',cursive;font-size:0.7rem;color:#fef08a;"]);
|
|
35675
|
+
var CloseButton$9 = /*#__PURE__*/styled__default.button.withConfig({
|
|
35676
|
+
displayName: "MarketplaceBuyModal__CloseButton",
|
|
35677
|
+
componentId: "sc-86ottl-5"
|
|
35678
|
+
})(["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;}"]);
|
|
35679
|
+
var Options = /*#__PURE__*/styled__default.div.withConfig({
|
|
35680
|
+
displayName: "MarketplaceBuyModal__Options",
|
|
35681
|
+
componentId: "sc-86ottl-6"
|
|
35682
|
+
})(["display:flex;flex-direction:column;gap:8px;"]);
|
|
35683
|
+
var RadioOption = /*#__PURE__*/styled__default.div.withConfig({
|
|
35684
|
+
displayName: "MarketplaceBuyModal__RadioOption",
|
|
35685
|
+
componentId: "sc-86ottl-7"
|
|
35686
|
+
})(["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) {
|
|
35687
|
+
var $selected = _ref2.$selected;
|
|
35688
|
+
return $selected ? '#f59e0b' : 'rgba(255,255,255,0.15)';
|
|
35689
|
+
}, function (_ref3) {
|
|
35690
|
+
var $selected = _ref3.$selected;
|
|
35691
|
+
return $selected ? 'rgba(245,158,11,0.1)' : 'transparent';
|
|
35692
|
+
}, function (_ref4) {
|
|
35693
|
+
var $disabled = _ref4.$disabled;
|
|
35694
|
+
return $disabled ? 'not-allowed' : 'pointer';
|
|
35695
|
+
}, function (_ref5) {
|
|
35696
|
+
var $disabled = _ref5.$disabled;
|
|
35697
|
+
return $disabled ? 0.5 : 1;
|
|
35698
|
+
}, function (_ref6) {
|
|
35699
|
+
var $disabled = _ref6.$disabled;
|
|
35700
|
+
return $disabled ? 'rgba(255,255,255,0.15)' : '#f59e0b';
|
|
35701
|
+
});
|
|
35702
|
+
var RadioCircle = /*#__PURE__*/styled__default.div.withConfig({
|
|
35703
|
+
displayName: "MarketplaceBuyModal__RadioCircle",
|
|
35704
|
+
componentId: "sc-86ottl-8"
|
|
35705
|
+
})(["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) {
|
|
35706
|
+
var $selected = _ref7.$selected;
|
|
35707
|
+
return $selected ? '#f59e0b' : 'rgba(255,255,255,0.4)';
|
|
35708
|
+
}, function (_ref8) {
|
|
35709
|
+
var $selected = _ref8.$selected;
|
|
35710
|
+
return $selected ? 1 : 0;
|
|
35711
|
+
});
|
|
35712
|
+
var OptionText = /*#__PURE__*/styled__default.div.withConfig({
|
|
35713
|
+
displayName: "MarketplaceBuyModal__OptionText",
|
|
35714
|
+
componentId: "sc-86ottl-9"
|
|
35715
|
+
})(["display:flex;flex-direction:column;gap:3px;"]);
|
|
35716
|
+
var OptionLabel = /*#__PURE__*/styled__default.span.withConfig({
|
|
35717
|
+
displayName: "MarketplaceBuyModal__OptionLabel",
|
|
35718
|
+
componentId: "sc-86ottl-10"
|
|
35719
|
+
})(["font-family:'Press Start 2P',cursive;font-size:0.65rem;color:", ";"], function (_ref9) {
|
|
35720
|
+
var $disabled = _ref9.$disabled;
|
|
35721
|
+
return $disabled ? 'rgba(255,255,255,0.4)' : '#ffffff';
|
|
35722
|
+
});
|
|
35723
|
+
var OptionSub = /*#__PURE__*/styled__default.span.withConfig({
|
|
35724
|
+
displayName: "MarketplaceBuyModal__OptionSub",
|
|
35725
|
+
componentId: "sc-86ottl-11"
|
|
35726
|
+
})(["font-family:'Press Start 2P',cursive;font-size:0.5rem;color:rgba(255,255,255,0.55);"]);
|
|
35727
|
+
var BalanceHint = /*#__PURE__*/styled__default.span.withConfig({
|
|
35728
|
+
displayName: "MarketplaceBuyModal__BalanceHint",
|
|
35729
|
+
componentId: "sc-86ottl-12"
|
|
35730
|
+
})(["color:", ";"], function (_ref10) {
|
|
35731
|
+
var $insufficient = _ref10.$insufficient;
|
|
35732
|
+
return $insufficient ? '#ef4444' : 'rgba(255, 255, 255, 0.4)';
|
|
35733
|
+
});
|
|
35734
|
+
var ConfirmRow = /*#__PURE__*/styled__default.div.withConfig({
|
|
35735
|
+
displayName: "MarketplaceBuyModal__ConfirmRow",
|
|
35736
|
+
componentId: "sc-86ottl-13"
|
|
35737
|
+
})(["display:flex;justify-content:center;margin-top:4px;"]);
|
|
35738
|
+
|
|
35590
35739
|
var MarketplaceRows = function MarketplaceRows(_ref) {
|
|
35591
35740
|
var atlasJSON = _ref.atlasJSON,
|
|
35592
35741
|
atlasIMG = _ref.atlasIMG,
|
|
35593
35742
|
item = _ref.item,
|
|
35594
35743
|
itemPrice = _ref.itemPrice,
|
|
35744
|
+
dcEquivalentPrice = _ref.dcEquivalentPrice,
|
|
35595
35745
|
equipmentSet = _ref.equipmentSet,
|
|
35596
35746
|
scale = _ref.scale,
|
|
35597
35747
|
onMarketPlaceItemBuy = _ref.onMarketPlaceItemBuy,
|
|
@@ -35623,16 +35773,20 @@ var MarketplaceRows = function MarketplaceRows(_ref) {
|
|
|
35623
35773
|
maxLines: 1,
|
|
35624
35774
|
maxWidth: "200px",
|
|
35625
35775
|
fontSize: "10px"
|
|
35626
|
-
}, item.name)))), React__default.createElement(Flex$1, null, React__default.createElement(ItemIconContainer, null, React__default.createElement(GoldContainer, null, React__default.createElement(SpriteFromAtlas, {
|
|
35776
|
+
}, item.name)))), React__default.createElement(Flex$1, null, React__default.createElement(PriceContainer, null, React__default.createElement(ItemIconContainer, null, React__default.createElement(GoldContainer, null, React__default.createElement(SpriteFromAtlas, {
|
|
35627
35777
|
atlasIMG: atlasIMG,
|
|
35628
35778
|
atlasJSON: atlasJSON,
|
|
35629
35779
|
spriteKey: "others/gold-coin-qty-5.png",
|
|
35630
35780
|
imgScale: 2
|
|
35631
35781
|
})), React__default.createElement(PriceValue, null, React__default.createElement("p", null, React__default.createElement(Ellipsis, {
|
|
35632
35782
|
maxLines: 1,
|
|
35633
|
-
maxWidth: "
|
|
35783
|
+
maxWidth: "120px",
|
|
35634
35784
|
fontSize: "10px"
|
|
35635
|
-
}, "$", itemPrice)))), React__default.createElement(
|
|
35785
|
+
}, "$", itemPrice)))), dcEquivalentPrice !== undefined && React__default.createElement(DCPriceLabel, null, React__default.createElement(Ellipsis, {
|
|
35786
|
+
maxLines: 1,
|
|
35787
|
+
maxWidth: "80px",
|
|
35788
|
+
fontSize: "9px"
|
|
35789
|
+
}, dcEquivalentPrice, " DC"))), React__default.createElement(ButtonContainer$3, null, React__default.createElement(Button, {
|
|
35636
35790
|
buttonType: exports.ButtonTypes.RPGUIButton,
|
|
35637
35791
|
disabled: disabled,
|
|
35638
35792
|
onPointerDown: function onPointerDown() {
|
|
@@ -35670,17 +35824,25 @@ var SpriteContainer$3 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
35670
35824
|
displayName: "MarketplaceRows__SpriteContainer",
|
|
35671
35825
|
componentId: "sc-wmpr1o-6"
|
|
35672
35826
|
})(["position:relative;left:0.5rem;"]);
|
|
35827
|
+
var PriceContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
35828
|
+
displayName: "MarketplaceRows__PriceContainer",
|
|
35829
|
+
componentId: "sc-wmpr1o-7"
|
|
35830
|
+
})(["display:flex;flex-direction:column;align-items:flex-start;gap:2px;"]);
|
|
35831
|
+
var DCPriceLabel = /*#__PURE__*/styled__default.p.withConfig({
|
|
35832
|
+
displayName: "MarketplaceRows__DCPriceLabel",
|
|
35833
|
+
componentId: "sc-wmpr1o-8"
|
|
35834
|
+
})(["margin:0;margin-left:40px;color:#fef08a;font-size:0.7rem;"]);
|
|
35673
35835
|
var PriceValue = /*#__PURE__*/styled__default.div.withConfig({
|
|
35674
35836
|
displayName: "MarketplaceRows__PriceValue",
|
|
35675
|
-
componentId: "sc-wmpr1o-
|
|
35837
|
+
componentId: "sc-wmpr1o-9"
|
|
35676
35838
|
})(["margin-left:40px;"]);
|
|
35677
35839
|
var ButtonContainer$3 = /*#__PURE__*/styled__default.div.withConfig({
|
|
35678
35840
|
displayName: "MarketplaceRows__ButtonContainer",
|
|
35679
|
-
componentId: "sc-wmpr1o-
|
|
35841
|
+
componentId: "sc-wmpr1o-10"
|
|
35680
35842
|
})(["margin:auto;"]);
|
|
35681
35843
|
var RarityContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
35682
35844
|
displayName: "MarketplaceRows__RarityContainer",
|
|
35683
|
-
componentId: "sc-wmpr1o-
|
|
35845
|
+
componentId: "sc-wmpr1o-11"
|
|
35684
35846
|
})(["border-color:", ";box-shadow:", " inset,", ";width:32px;height:32px;"], function (_ref2) {
|
|
35685
35847
|
var item = _ref2.item;
|
|
35686
35848
|
return rarityColor(item);
|
|
@@ -35751,7 +35913,11 @@ var BuyPanel = function BuyPanel(_ref) {
|
|
|
35751
35913
|
characterId = _ref.characterId,
|
|
35752
35914
|
enableHotkeys = _ref.enableHotkeys,
|
|
35753
35915
|
disableHotkeys = _ref.disableHotkeys,
|
|
35754
|
-
currentPage = _ref.currentPage
|
|
35916
|
+
currentPage = _ref.currentPage,
|
|
35917
|
+
_ref$dcBalance = _ref.dcBalance,
|
|
35918
|
+
dcBalance = _ref$dcBalance === void 0 ? 0 : _ref$dcBalance,
|
|
35919
|
+
_ref$dcToGoldSwapRate = _ref.dcToGoldSwapRate,
|
|
35920
|
+
dcToGoldSwapRate = _ref$dcToGoldSwapRate === void 0 ? 0 : _ref$dcToGoldSwapRate;
|
|
35755
35921
|
var _useState = React.useState(''),
|
|
35756
35922
|
name = _useState[0],
|
|
35757
35923
|
setName = _useState[1];
|
|
@@ -35772,7 +35938,26 @@ var BuyPanel = function BuyPanel(_ref) {
|
|
|
35772
35938
|
var _itemsContainer$curre;
|
|
35773
35939
|
(_itemsContainer$curre = itemsContainer.current) == null ? void 0 : _itemsContainer$curre.scrollTo(0, 0);
|
|
35774
35940
|
}, [currentPage]);
|
|
35775
|
-
|
|
35941
|
+
var buyingItem = buyingItemId ? items.find(function (i) {
|
|
35942
|
+
return i._id === buyingItemId;
|
|
35943
|
+
}) : null;
|
|
35944
|
+
var hasDCBalance = dcBalance > 0 && dcToGoldSwapRate > 0;
|
|
35945
|
+
var getDCEquivalentPrice = function getDCEquivalentPrice(goldPrice) {
|
|
35946
|
+
return dcToGoldSwapRate > 0 ? Math.ceil(goldPrice / dcToGoldSwapRate) : 0;
|
|
35947
|
+
};
|
|
35948
|
+
return React__default.createElement(React__default.Fragment, null, buyingItemId && buyingItem && hasDCBalance && React__default.createElement(MarketplaceBuyModal, {
|
|
35949
|
+
goldPrice: buyingItem.price,
|
|
35950
|
+
dcEquivalentPrice: getDCEquivalentPrice(buyingItem.price),
|
|
35951
|
+
dcBalance: dcBalance,
|
|
35952
|
+
onClose: function onClose() {
|
|
35953
|
+
return setBuyingItemId(null);
|
|
35954
|
+
},
|
|
35955
|
+
onConfirm: function onConfirm(paymentMethod) {
|
|
35956
|
+
onMarketPlaceItemBuy == null ? void 0 : onMarketPlaceItemBuy(buyingItemId, paymentMethod);
|
|
35957
|
+
setBuyingItemId(null);
|
|
35958
|
+
enableHotkeys == null ? void 0 : enableHotkeys();
|
|
35959
|
+
}
|
|
35960
|
+
}), buyingItemId && !hasDCBalance && React__default.createElement(ConfirmModal, {
|
|
35776
35961
|
onClose: setBuyingItemId.bind(null, null),
|
|
35777
35962
|
onConfirm: function onConfirm() {
|
|
35778
35963
|
onMarketPlaceItemBuy == null ? void 0 : onMarketPlaceItemBuy(buyingItemId);
|
|
@@ -35877,6 +36062,7 @@ var BuyPanel = function BuyPanel(_ref) {
|
|
|
35877
36062
|
atlasJSON: atlasJSON,
|
|
35878
36063
|
item: item,
|
|
35879
36064
|
itemPrice: price,
|
|
36065
|
+
dcEquivalentPrice: dcToGoldSwapRate > 0 ? getDCEquivalentPrice(price) : undefined,
|
|
35880
36066
|
equipmentSet: equipmentSet,
|
|
35881
36067
|
onMarketPlaceItemBuy: setBuyingItemId.bind(null, _id),
|
|
35882
36068
|
disabled: owner === characterId
|
|
@@ -36250,7 +36436,7 @@ var PartyCreate = function PartyCreate(_ref) {
|
|
|
36250
36436
|
style: {
|
|
36251
36437
|
width: '100%'
|
|
36252
36438
|
}
|
|
36253
|
-
}, React__default.createElement(Title$
|
|
36439
|
+
}, React__default.createElement(Title$9, null, "Create Party"), React__default.createElement("hr", {
|
|
36254
36440
|
className: "golden"
|
|
36255
36441
|
}))), React__default.createElement("h1", null, "Type your party name"), React__default.createElement(Input, {
|
|
36256
36442
|
placeholder: "Type party name",
|
|
@@ -36273,7 +36459,7 @@ var Wrapper$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
36273
36459
|
displayName: "PartyCreate__Wrapper",
|
|
36274
36460
|
componentId: "sc-13brop0-0"
|
|
36275
36461
|
})(["display:flex;flex-direction:column;width:100%;"]);
|
|
36276
|
-
var Title$
|
|
36462
|
+
var Title$9 = /*#__PURE__*/styled__default.h1.withConfig({
|
|
36277
36463
|
displayName: "PartyCreate__Title",
|
|
36278
36464
|
componentId: "sc-13brop0-1"
|
|
36279
36465
|
})(["font-size:0.6rem;color:", " !important;"], uiColors.yellow);
|
|
@@ -36322,7 +36508,7 @@ var PartyDashboard = function PartyDashboard(_ref) {
|
|
|
36322
36508
|
style: {
|
|
36323
36509
|
width: '100%'
|
|
36324
36510
|
}
|
|
36325
|
-
}, React__default.createElement(Title$
|
|
36511
|
+
}, React__default.createElement(Title$a, null, "Party Dashboard"), React__default.createElement(Button, {
|
|
36326
36512
|
buttonType: exports.ButtonTypes.RPGUIButton
|
|
36327
36513
|
}, "Create"), React__default.createElement("hr", {
|
|
36328
36514
|
className: "golden"
|
|
@@ -36349,7 +36535,7 @@ var RowsWrapper = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
36349
36535
|
displayName: "PartyDashboard__RowsWrapper",
|
|
36350
36536
|
componentId: "sc-16cm41r-1"
|
|
36351
36537
|
})(["overflow-y:scroll;-webkit-overflow-scrolling:touch;width:100%;height:200px;"]);
|
|
36352
|
-
var Title$
|
|
36538
|
+
var Title$a = /*#__PURE__*/styled__default.h1.withConfig({
|
|
36353
36539
|
displayName: "PartyDashboard__Title",
|
|
36354
36540
|
componentId: "sc-16cm41r-2"
|
|
36355
36541
|
})(["font-size:0.6rem;color:", " !important;"], uiColors.yellow);
|
|
@@ -36386,7 +36572,7 @@ var PartyInvite = function PartyInvite(_ref) {
|
|
|
36386
36572
|
style: {
|
|
36387
36573
|
width: '100%'
|
|
36388
36574
|
}
|
|
36389
|
-
}, React__default.createElement(Title$
|
|
36575
|
+
}, React__default.createElement(Title$b, null, "Invite for Party"), React__default.createElement("hr", {
|
|
36390
36576
|
className: "golden"
|
|
36391
36577
|
}))), React__default.createElement(RowsWrapper$1, {
|
|
36392
36578
|
className: "playersRows"
|
|
@@ -36405,7 +36591,7 @@ var Wrapper$3 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
36405
36591
|
displayName: "PartyInvite__Wrapper",
|
|
36406
36592
|
componentId: "sc-eu8ggt-0"
|
|
36407
36593
|
})(["display:flex;flex-direction:column;width:100%;"]);
|
|
36408
|
-
var Title$
|
|
36594
|
+
var Title$b = /*#__PURE__*/styled__default.h1.withConfig({
|
|
36409
36595
|
displayName: "PartyInvite__Title",
|
|
36410
36596
|
componentId: "sc-eu8ggt-1"
|
|
36411
36597
|
})(["font-size:0.6rem;color:", " !important;"], uiColors.yellow);
|
|
@@ -36847,7 +37033,7 @@ var QuestInfo = function QuestInfo(_ref) {
|
|
|
36847
37033
|
onPointerDown: onRightClick
|
|
36848
37034
|
}), React__default.createElement(QuestContainer, null, React__default.createElement(TitleContainer$1, {
|
|
36849
37035
|
className: "drag-handler"
|
|
36850
|
-
}, React__default.createElement(Title$
|
|
37036
|
+
}, React__default.createElement(Title$c, null, React__default.createElement(Thumbnail, {
|
|
36851
37037
|
src: quests[currentIndex].thumbnail || img$8
|
|
36852
37038
|
}), quests[currentIndex].title), React__default.createElement(QuestSplitDiv, null, React__default.createElement("hr", {
|
|
36853
37039
|
className: "golden"
|
|
@@ -36866,7 +37052,7 @@ var QuestInfo = function QuestInfo(_ref) {
|
|
|
36866
37052
|
}, button.title);
|
|
36867
37053
|
})))) : React__default.createElement(QuestsContainer, null, React__default.createElement(QuestContainer, null, React__default.createElement(TitleContainer$1, {
|
|
36868
37054
|
className: "drag-handler"
|
|
36869
|
-
}, React__default.createElement(Title$
|
|
37055
|
+
}, React__default.createElement(Title$c, null, React__default.createElement(Thumbnail, {
|
|
36870
37056
|
src: quests[0].thumbnail || img$8
|
|
36871
37057
|
}), quests[0].title), React__default.createElement(QuestSplitDiv, null, React__default.createElement("hr", {
|
|
36872
37058
|
className: "golden"
|
|
@@ -36913,7 +37099,7 @@ var TitleContainer$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
36913
37099
|
displayName: "QuestInfo__TitleContainer",
|
|
36914
37100
|
componentId: "sc-1wccpiy-6"
|
|
36915
37101
|
})(["width:100%;display:flex;flex-wrap:wrap;justify-content:flex-start;align-items:center;margin-top:1rem;"]);
|
|
36916
|
-
var Title$
|
|
37102
|
+
var Title$c = /*#__PURE__*/styled__default.h1.withConfig({
|
|
36917
37103
|
displayName: "QuestInfo__Title",
|
|
36918
37104
|
componentId: "sc-1wccpiy-7"
|
|
36919
37105
|
})(["color:white;z-index:22;font-size:", " !important;color:", " !important;"], uiFonts.size.medium, uiColors.yellow);
|
|
@@ -37441,7 +37627,7 @@ var SkillsContainer = function SkillsContainer(_ref) {
|
|
|
37441
37627
|
cancelDrag: "#skillsDiv",
|
|
37442
37628
|
scale: scale,
|
|
37443
37629
|
width: "100%"
|
|
37444
|
-
}, onCloseButton && React__default.createElement(CloseButton$
|
|
37630
|
+
}, onCloseButton && React__default.createElement(CloseButton$a, {
|
|
37445
37631
|
onPointerDown: onCloseButton
|
|
37446
37632
|
}, "X"), React__default.createElement(SkillsContainerDiv, {
|
|
37447
37633
|
id: "skillsDiv"
|
|
@@ -37476,7 +37662,7 @@ var SkillSplitDiv = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
37476
37662
|
displayName: "SkillsContainer__SkillSplitDiv",
|
|
37477
37663
|
componentId: "sc-1g0c67q-2"
|
|
37478
37664
|
})(["width:100%;font-size:11px;hr{margin:0;margin-bottom:1rem;padding:0px;}p{margin-bottom:0px;}"]);
|
|
37479
|
-
var CloseButton$
|
|
37665
|
+
var CloseButton$a = /*#__PURE__*/styled__default.div.withConfig({
|
|
37480
37666
|
displayName: "SkillsContainer__CloseButton",
|
|
37481
37667
|
componentId: "sc-1g0c67q-3"
|
|
37482
37668
|
})(["position:absolute;top:2px;right:2px;color:white;z-index:22;font-size:1.1rem;"]);
|
|
@@ -37612,7 +37798,7 @@ var SpellInfo$1 = function SpellInfo(_ref) {
|
|
|
37612
37798
|
castingType = spell.castingType,
|
|
37613
37799
|
cooldown = spell.cooldown,
|
|
37614
37800
|
maxDistanceGrid = spell.maxDistanceGrid;
|
|
37615
|
-
return React__default.createElement(Container$F, null, React__default.createElement(Header$
|
|
37801
|
+
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
37802
|
className: "label"
|
|
37617
37803
|
}, "Casting Type:"), React__default.createElement("div", {
|
|
37618
37804
|
className: "value"
|
|
@@ -37642,7 +37828,7 @@ var Container$F = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
37642
37828
|
displayName: "SpellInfo__Container",
|
|
37643
37829
|
componentId: "sc-4hbw3q-0"
|
|
37644
37830
|
})(["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$
|
|
37831
|
+
var Title$d = /*#__PURE__*/styled__default.div.withConfig({
|
|
37646
37832
|
displayName: "SpellInfo__Title",
|
|
37647
37833
|
componentId: "sc-4hbw3q-1"
|
|
37648
37834
|
})(["font-size:", ";font-weight:bold;margin-bottom:0.5rem;display:flex;align-items:center;margin:0;"], uiFonts.size.medium);
|
|
@@ -37654,7 +37840,7 @@ var Description$4 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
37654
37840
|
displayName: "SpellInfo__Description",
|
|
37655
37841
|
componentId: "sc-4hbw3q-3"
|
|
37656
37842
|
})(["margin-top:1.5rem;font-size:", ";color:", ";font-style:italic;"], uiFonts.size.small, uiColors.lightGray);
|
|
37657
|
-
var Header$
|
|
37843
|
+
var Header$8 = /*#__PURE__*/styled__default.div.withConfig({
|
|
37658
37844
|
displayName: "SpellInfo__Header",
|
|
37659
37845
|
componentId: "sc-4hbw3q-4"
|
|
37660
37846
|
})(["display:flex;align-items:center;justify-content:space-between;margin-bottom:0.5rem;"]);
|
|
@@ -37870,7 +38056,7 @@ var Spell = function Spell(_ref) {
|
|
|
37870
38056
|
onPointerUp: onPointerUp == null ? void 0 : onPointerUp.bind(null, spellKey),
|
|
37871
38057
|
isSettingShortcut: isSettingShortcut && !disabled,
|
|
37872
38058
|
className: "spell"
|
|
37873
|
-
}, disabled && React__default.createElement(Overlay$
|
|
38059
|
+
}, 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
38060
|
className: "cooldown"
|
|
37875
38061
|
}, activeCooldown.toFixed(activeCooldown > 10 ? 0 : 1)) : null, React__default.createElement(SpriteFromAtlas, {
|
|
37876
38062
|
atlasIMG: atlasIMG,
|
|
@@ -37879,7 +38065,7 @@ var Spell = function Spell(_ref) {
|
|
|
37879
38065
|
imgScale: IMAGE_SCALE,
|
|
37880
38066
|
containerStyle: CONTAINER_STYLE,
|
|
37881
38067
|
centered: true
|
|
37882
|
-
})), React__default.createElement(Info, null, React__default.createElement(Title$
|
|
38068
|
+
})), React__default.createElement(Info, null, React__default.createElement(Title$e, null, React__default.createElement("span", null, name), React__default.createElement("span", {
|
|
37883
38069
|
className: "spell"
|
|
37884
38070
|
}, "(", 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
38071
|
className: "mana"
|
|
@@ -37900,7 +38086,7 @@ var Info = /*#__PURE__*/styled__default.span.withConfig({
|
|
|
37900
38086
|
displayName: "Spell__Info",
|
|
37901
38087
|
componentId: "sc-j96fa2-2"
|
|
37902
38088
|
})(["width:0;flex:1;@media (orientation:portrait){display:none;}"]);
|
|
37903
|
-
var Title$
|
|
38089
|
+
var Title$e = /*#__PURE__*/styled__default.p.withConfig({
|
|
37904
38090
|
displayName: "Spell__Title",
|
|
37905
38091
|
componentId: "sc-j96fa2-3"
|
|
37906
38092
|
})(["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 +38102,7 @@ var Cost = /*#__PURE__*/styled__default.p.withConfig({
|
|
|
37916
38102
|
displayName: "Spell__Cost",
|
|
37917
38103
|
componentId: "sc-j96fa2-6"
|
|
37918
38104
|
})(["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$
|
|
38105
|
+
var Overlay$5 = /*#__PURE__*/styled__default.p.withConfig({
|
|
37920
38106
|
displayName: "Spell__Overlay",
|
|
37921
38107
|
componentId: "sc-j96fa2-7"
|
|
37922
38108
|
})(["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 +38151,7 @@ var Spellbook = function Spellbook(_ref) {
|
|
|
37965
38151
|
height: "inherit",
|
|
37966
38152
|
cancelDrag: "#spellbook-search, #shortcuts_list, .spell",
|
|
37967
38153
|
scale: scale
|
|
37968
|
-
}, React__default.createElement(Container$J, null, React__default.createElement(Title$
|
|
38154
|
+
}, React__default.createElement(Container$J, null, React__default.createElement(Title$f, null, "Learned Spells"), React__default.createElement(ShortcutsSetter, {
|
|
37969
38155
|
setSettingShortcutIndex: setSettingShortcutIndex,
|
|
37970
38156
|
settingShortcutIndex: settingShortcutIndex,
|
|
37971
38157
|
shortcuts: shortcuts,
|
|
@@ -37998,7 +38184,7 @@ var Spellbook = function Spellbook(_ref) {
|
|
|
37998
38184
|
}, spell)));
|
|
37999
38185
|
}))));
|
|
38000
38186
|
};
|
|
38001
|
-
var Title$
|
|
38187
|
+
var Title$f = /*#__PURE__*/styled__default.h1.withConfig({
|
|
38002
38188
|
displayName: "Spellbook__Title",
|
|
38003
38189
|
componentId: "sc-r02nfq-0"
|
|
38004
38190
|
})(["font-size:", " !important;margin-bottom:0 !important;"], uiFonts.size.large);
|
|
@@ -58440,7 +58626,7 @@ var CartView = function CartView(_ref2) {
|
|
|
58440
58626
|
return _ref3.apply(this, arguments);
|
|
58441
58627
|
};
|
|
58442
58628
|
}();
|
|
58443
|
-
return React__default.createElement(Container$K, null, React__default.createElement(Header$
|
|
58629
|
+
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
58630
|
onPointerDown: onClose
|
|
58445
58631
|
}, 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
58632
|
var _cartItem$metadata, _cartItem$metadata2;
|
|
@@ -58480,15 +58666,15 @@ var Container$K = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
58480
58666
|
displayName: "CartView__Container",
|
|
58481
58667
|
componentId: "sc-ydtyl1-0"
|
|
58482
58668
|
})(["display:flex;flex-direction:column;width:100%;height:100%;gap:1.5rem;padding:1.5rem;"]);
|
|
58483
|
-
var Header$
|
|
58669
|
+
var Header$9 = /*#__PURE__*/styled__default.div.withConfig({
|
|
58484
58670
|
displayName: "CartView__Header",
|
|
58485
58671
|
componentId: "sc-ydtyl1-1"
|
|
58486
58672
|
})(["display:flex;justify-content:space-between;align-items:center;"]);
|
|
58487
|
-
var Title$
|
|
58673
|
+
var Title$g = /*#__PURE__*/styled__default.h2.withConfig({
|
|
58488
58674
|
displayName: "CartView__Title",
|
|
58489
58675
|
componentId: "sc-ydtyl1-2"
|
|
58490
58676
|
})(["font-family:'Press Start 2P',cursive;font-size:1rem;color:#ffffff;margin:0;"]);
|
|
58491
|
-
var CloseButton$
|
|
58677
|
+
var CloseButton$b = /*#__PURE__*/styled__default.div.withConfig({
|
|
58492
58678
|
displayName: "CartView__CloseButton",
|
|
58493
58679
|
componentId: "sc-ydtyl1-3"
|
|
58494
58680
|
})(["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 +59156,7 @@ var StoreCharacterSkinRow = function StoreCharacterSkinRow(_ref) {
|
|
|
58970
59156
|
height: 32,
|
|
58971
59157
|
imgScale: 2,
|
|
58972
59158
|
centered: true
|
|
58973
|
-
}) : React__default.createElement(DefaultIcon, null, "\uD83D\uDC64")), React__default.createElement(ItemDetails$1, null, React__default.createElement(Header$
|
|
59159
|
+
}) : 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
59160
|
direction: "left",
|
|
58975
59161
|
onPointerDown: handlePreviousSkin,
|
|
58976
59162
|
size: 24
|
|
@@ -59022,7 +59208,7 @@ var SkinNavArrow = /*#__PURE__*/styled__default(SelectArrow).withConfig({
|
|
|
59022
59208
|
displayName: "StoreCharacterSkinRow__SkinNavArrow",
|
|
59023
59209
|
componentId: "sc-81xqsx-7"
|
|
59024
59210
|
})(["position:static;"]);
|
|
59025
|
-
var Header$
|
|
59211
|
+
var Header$a = /*#__PURE__*/styled__default.div.withConfig({
|
|
59026
59212
|
displayName: "StoreCharacterSkinRow__Header",
|
|
59027
59213
|
componentId: "sc-81xqsx-8"
|
|
59028
59214
|
})(["display:flex;align-items:center;gap:0.5rem;"]);
|
|
@@ -59346,7 +59532,9 @@ var usePackFiltering = function usePackFiltering(packs) {
|
|
|
59346
59532
|
var StorePacksSection = function StorePacksSection(_ref) {
|
|
59347
59533
|
var packs = _ref.packs,
|
|
59348
59534
|
onAddToCart = _ref.onAddToCart,
|
|
59349
|
-
onSelectPack = _ref.onSelectPack
|
|
59535
|
+
onSelectPack = _ref.onSelectPack,
|
|
59536
|
+
atlasJSON = _ref.atlasJSON,
|
|
59537
|
+
atlasIMG = _ref.atlasIMG;
|
|
59350
59538
|
var _usePackFiltering = usePackFiltering(packs),
|
|
59351
59539
|
searchQuery = _usePackFiltering.searchQuery,
|
|
59352
59540
|
setSearchQuery = _usePackFiltering.setSearchQuery,
|
|
@@ -59355,16 +59543,32 @@ var StorePacksSection = function StorePacksSection(_ref) {
|
|
|
59355
59543
|
if (typeof imageUrl === 'string') return imageUrl;
|
|
59356
59544
|
return imageUrl["default"] || imageUrl.src;
|
|
59357
59545
|
};
|
|
59546
|
+
var renderPackIcon = React.useCallback(function (pack) {
|
|
59547
|
+
var _atlasJSON$frames;
|
|
59548
|
+
var imgSrc = getImageSrc(pack.image);
|
|
59549
|
+
if (atlasJSON && atlasIMG && imgSrc && atlasJSON != null && (_atlasJSON$frames = atlasJSON.frames) != null && _atlasJSON$frames[imgSrc]) {
|
|
59550
|
+
return React__default.createElement(SpriteFromAtlas, {
|
|
59551
|
+
atlasJSON: atlasJSON,
|
|
59552
|
+
atlasIMG: atlasIMG,
|
|
59553
|
+
spriteKey: imgSrc,
|
|
59554
|
+
width: 40,
|
|
59555
|
+
height: 40,
|
|
59556
|
+
imgScale: 1.2,
|
|
59557
|
+
centered: true
|
|
59558
|
+
});
|
|
59559
|
+
}
|
|
59560
|
+
return React__default.createElement("img", {
|
|
59561
|
+
src: imgSrc,
|
|
59562
|
+
alt: pack.title
|
|
59563
|
+
});
|
|
59564
|
+
}, [atlasJSON, atlasIMG]);
|
|
59358
59565
|
var renderPack = React.useCallback(function (pack) {
|
|
59359
59566
|
return React__default.createElement(PackRow, {
|
|
59360
59567
|
key: pack.key,
|
|
59361
59568
|
onClick: function onClick() {
|
|
59362
59569
|
return onSelectPack == null ? void 0 : onSelectPack(pack);
|
|
59363
59570
|
}
|
|
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, {
|
|
59571
|
+
}, 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
59572
|
icon: React__default.createElement(fa.FaCartPlus, null),
|
|
59369
59573
|
label: "Add",
|
|
59370
59574
|
onClick: function onClick(e) {
|
|
@@ -59425,7 +59629,7 @@ var StoreItemDetails = function StoreItemDetails(_ref) {
|
|
|
59425
59629
|
if (typeof imageUrl === 'string') return imageUrl;
|
|
59426
59630
|
return imageUrl["default"] || imageUrl.src;
|
|
59427
59631
|
};
|
|
59428
|
-
return React__default.createElement(Container$M, null, React__default.createElement(Header$
|
|
59632
|
+
return React__default.createElement(Container$M, null, React__default.createElement(Header$b, null, React__default.createElement(BackButton, {
|
|
59429
59633
|
onClick: onBack
|
|
59430
59634
|
}, 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
59635
|
src: getImageSrc(),
|
|
@@ -59443,7 +59647,7 @@ var Container$M = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
59443
59647
|
displayName: "StoreItemDetails__Container",
|
|
59444
59648
|
componentId: "sc-k3ho5z-0"
|
|
59445
59649
|
})(["display:flex;flex-direction:column;gap:1.5rem;padding:1.5rem;height:100%;"]);
|
|
59446
|
-
var Header$
|
|
59650
|
+
var Header$b = /*#__PURE__*/styled__default.div.withConfig({
|
|
59447
59651
|
displayName: "StoreItemDetails__Header",
|
|
59448
59652
|
componentId: "sc-k3ho5z-1"
|
|
59449
59653
|
})(["display:flex;align-items:center;gap:1rem;"]);
|
|
@@ -59627,18 +59831,22 @@ var Store = function Store(_ref) {
|
|
|
59627
59831
|
return pack.priceUSD >= 9.99;
|
|
59628
59832
|
}),
|
|
59629
59833
|
onAddToCart: handleAddPackToCart,
|
|
59630
|
-
onSelectPack: setSelectedPack
|
|
59834
|
+
onSelectPack: setSelectedPack,
|
|
59835
|
+
atlasJSON: atlasJSON,
|
|
59836
|
+
atlasIMG: atlasIMG
|
|
59631
59837
|
})
|
|
59632
59838
|
},
|
|
59633
59839
|
packs: {
|
|
59634
59840
|
id: 'packs',
|
|
59635
59841
|
title: packsTabLabel,
|
|
59636
59842
|
content: customPacksContent != null ? customPacksContent : React__default.createElement(StorePacksSection, {
|
|
59637
|
-
packs: packs.filter(function (pack) {
|
|
59843
|
+
packs: hidePremiumTab ? packs : packs.filter(function (pack) {
|
|
59638
59844
|
return pack.priceUSD < 9.99;
|
|
59639
59845
|
}),
|
|
59640
59846
|
onAddToCart: handleAddPackToCart,
|
|
59641
|
-
onSelectPack: setSelectedPack
|
|
59847
|
+
onSelectPack: setSelectedPack,
|
|
59848
|
+
atlasJSON: atlasJSON,
|
|
59849
|
+
atlasIMG: atlasIMG
|
|
59642
59850
|
})
|
|
59643
59851
|
},
|
|
59644
59852
|
items: {
|
|
@@ -59802,63 +60010,63 @@ var PaymentMethodModal = function PaymentMethodModal(_ref) {
|
|
|
59802
60010
|
onPayWithCard();
|
|
59803
60011
|
}
|
|
59804
60012
|
}, [selected, onPayWithDC, onPayWithCard]);
|
|
59805
|
-
return React__default.createElement(ModalPortal, null, React__default.createElement(Overlay$
|
|
60013
|
+
return React__default.createElement(ModalPortal, null, React__default.createElement(Overlay$6, {
|
|
59806
60014
|
onPointerDown: onClose
|
|
59807
|
-
}), React__default.createElement(ModalContainer$
|
|
60015
|
+
}), React__default.createElement(ModalContainer$3, null, React__default.createElement(ModalContent$3, {
|
|
59808
60016
|
onClick: stopPropagation,
|
|
59809
60017
|
onTouchStart: stopPropagation,
|
|
59810
60018
|
onPointerDown: stopPropagation
|
|
59811
|
-
}, React__default.createElement(Header$
|
|
60019
|
+
}, React__default.createElement(Header$c, null, React__default.createElement(Title$h, null, "How would you like to pay?"), React__default.createElement(CloseButton$c, {
|
|
59812
60020
|
onPointerDown: onClose,
|
|
59813
60021
|
"aria-label": "Close"
|
|
59814
|
-
}, React__default.createElement(fa.FaTimes, null))), React__default.createElement(Options, null, React__default.createElement(RadioOption, {
|
|
60022
|
+
}, React__default.createElement(fa.FaTimes, null))), React__default.createElement(Options$1, null, React__default.createElement(RadioOption$1, {
|
|
59815
60023
|
"$selected": selected === 'card',
|
|
59816
60024
|
onPointerDown: function onPointerDown() {
|
|
59817
60025
|
return setSelected('card');
|
|
59818
60026
|
}
|
|
59819
|
-
}, React__default.createElement(RadioCircle, {
|
|
60027
|
+
}, React__default.createElement(RadioCircle$1, {
|
|
59820
60028
|
"$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, {
|
|
60029
|
+
}), 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
60030
|
"$selected": selected === 'dc',
|
|
59823
60031
|
onPointerDown: function onPointerDown() {
|
|
59824
60032
|
return setSelected('dc');
|
|
59825
60033
|
}
|
|
59826
|
-
}, React__default.createElement(RadioCircle, {
|
|
60034
|
+
}, React__default.createElement(RadioCircle$1, {
|
|
59827
60035
|
"$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, {
|
|
60036
|
+
}), 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
60037
|
buttonType: exports.ButtonTypes.RPGUIButton,
|
|
59830
60038
|
onPointerDown: handleConfirm
|
|
59831
60039
|
}, "Confirm")))));
|
|
59832
60040
|
};
|
|
59833
|
-
var Overlay$
|
|
60041
|
+
var Overlay$6 = /*#__PURE__*/styled__default.div.withConfig({
|
|
59834
60042
|
displayName: "PaymentMethodModal__Overlay",
|
|
59835
60043
|
componentId: "sc-1dxy6lr-0"
|
|
59836
60044
|
})(["position:fixed;inset:0;background:rgba(0,0,0,0.65);z-index:1000;"]);
|
|
59837
|
-
var ModalContainer$
|
|
60045
|
+
var ModalContainer$3 = /*#__PURE__*/styled__default.div.withConfig({
|
|
59838
60046
|
displayName: "PaymentMethodModal__ModalContainer",
|
|
59839
60047
|
componentId: "sc-1dxy6lr-1"
|
|
59840
60048
|
})(["position:fixed;inset:0;display:flex;align-items:center;justify-content:center;z-index:1001;pointer-events:none;"]);
|
|
59841
|
-
var ModalContent$
|
|
60049
|
+
var ModalContent$3 = /*#__PURE__*/styled__default.div.withConfig({
|
|
59842
60050
|
displayName: "PaymentMethodModal__ModalContent",
|
|
59843
60051
|
componentId: "sc-1dxy6lr-2"
|
|
59844
60052
|
})(["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$
|
|
60053
|
+
var Header$c = /*#__PURE__*/styled__default.div.withConfig({
|
|
59846
60054
|
displayName: "PaymentMethodModal__Header",
|
|
59847
60055
|
componentId: "sc-1dxy6lr-3"
|
|
59848
60056
|
})(["display:flex;align-items:center;justify-content:space-between;"]);
|
|
59849
|
-
var Title$
|
|
60057
|
+
var Title$h = /*#__PURE__*/styled__default.h3.withConfig({
|
|
59850
60058
|
displayName: "PaymentMethodModal__Title",
|
|
59851
60059
|
componentId: "sc-1dxy6lr-4"
|
|
59852
60060
|
})(["margin:0;font-family:'Press Start 2P',cursive;font-size:0.7rem;color:#fef08a;"]);
|
|
59853
|
-
var CloseButton$
|
|
60061
|
+
var CloseButton$c = /*#__PURE__*/styled__default.button.withConfig({
|
|
59854
60062
|
displayName: "PaymentMethodModal__CloseButton",
|
|
59855
60063
|
componentId: "sc-1dxy6lr-5"
|
|
59856
60064
|
})(["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({
|
|
60065
|
+
var Options$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
59858
60066
|
displayName: "PaymentMethodModal__Options",
|
|
59859
60067
|
componentId: "sc-1dxy6lr-6"
|
|
59860
60068
|
})(["display:flex;flex-direction:column;gap:8px;"]);
|
|
59861
|
-
var RadioOption = /*#__PURE__*/styled__default.div.withConfig({
|
|
60069
|
+
var RadioOption$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
59862
60070
|
displayName: "PaymentMethodModal__RadioOption",
|
|
59863
60071
|
componentId: "sc-1dxy6lr-7"
|
|
59864
60072
|
})(["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 +60076,7 @@ var RadioOption = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
59868
60076
|
var $selected = _ref3.$selected;
|
|
59869
60077
|
return $selected ? 'rgba(245,158,11,0.1)' : 'transparent';
|
|
59870
60078
|
});
|
|
59871
|
-
var RadioCircle = /*#__PURE__*/styled__default.div.withConfig({
|
|
60079
|
+
var RadioCircle$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
59872
60080
|
displayName: "PaymentMethodModal__RadioCircle",
|
|
59873
60081
|
componentId: "sc-1dxy6lr-8"
|
|
59874
60082
|
})(["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 +60086,19 @@ var RadioCircle = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
59878
60086
|
var $selected = _ref5.$selected;
|
|
59879
60087
|
return $selected ? 1 : 0;
|
|
59880
60088
|
});
|
|
59881
|
-
var OptionText = /*#__PURE__*/styled__default.div.withConfig({
|
|
60089
|
+
var OptionText$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
59882
60090
|
displayName: "PaymentMethodModal__OptionText",
|
|
59883
60091
|
componentId: "sc-1dxy6lr-9"
|
|
59884
60092
|
})(["display:flex;flex-direction:column;gap:3px;"]);
|
|
59885
|
-
var OptionLabel = /*#__PURE__*/styled__default.span.withConfig({
|
|
60093
|
+
var OptionLabel$1 = /*#__PURE__*/styled__default.span.withConfig({
|
|
59886
60094
|
displayName: "PaymentMethodModal__OptionLabel",
|
|
59887
60095
|
componentId: "sc-1dxy6lr-10"
|
|
59888
60096
|
})(["font-family:'Press Start 2P',cursive;font-size:0.65rem;color:#ffffff;"]);
|
|
59889
|
-
var OptionSub = /*#__PURE__*/styled__default.span.withConfig({
|
|
60097
|
+
var OptionSub$1 = /*#__PURE__*/styled__default.span.withConfig({
|
|
59890
60098
|
displayName: "PaymentMethodModal__OptionSub",
|
|
59891
60099
|
componentId: "sc-1dxy6lr-11"
|
|
59892
60100
|
})(["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({
|
|
60101
|
+
var ConfirmRow$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
59894
60102
|
displayName: "PaymentMethodModal__ConfirmRow",
|
|
59895
60103
|
componentId: "sc-1dxy6lr-12"
|
|
59896
60104
|
})(["display:flex;justify-content:center;margin-top:4px;"]);
|
|
@@ -59929,7 +60137,7 @@ var TimeWidget = function TimeWidget(_ref) {
|
|
|
59929
60137
|
return React__default.createElement(Draggable, {
|
|
59930
60138
|
scale: scale,
|
|
59931
60139
|
cancel: ".time-widget-close,.time-widget-container,.time-widget-container *"
|
|
59932
|
-
}, React__default.createElement(WidgetContainer, null, React__default.createElement(CloseButton$
|
|
60140
|
+
}, React__default.createElement(WidgetContainer, null, React__default.createElement(CloseButton$d, {
|
|
59933
60141
|
onPointerDown: onClose,
|
|
59934
60142
|
className: "time-widget-close"
|
|
59935
60143
|
}, "X"), React__default.createElement(DayNightContainer, {
|
|
@@ -59946,7 +60154,7 @@ var Time = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
59946
60154
|
displayName: "TimeWidget__Time",
|
|
59947
60155
|
componentId: "sc-1ja236h-1"
|
|
59948
60156
|
})(["top:0.75rem;right:0.5rem;position:absolute;font-size:", ";color:white;"], uiFonts.size.small);
|
|
59949
|
-
var CloseButton$
|
|
60157
|
+
var CloseButton$d = /*#__PURE__*/styled__default.p.withConfig({
|
|
59950
60158
|
displayName: "TimeWidget__CloseButton",
|
|
59951
60159
|
componentId: "sc-1ja236h-2"
|
|
59952
60160
|
})(["position:absolute;top:-0.5rem;margin:0;right:-0.2rem;font-size:", " !important;z-index:1;"], uiFonts.size.small);
|
|
@@ -60225,7 +60433,7 @@ var TradingMenu = function TradingMenu(_ref) {
|
|
|
60225
60433
|
width: "500px",
|
|
60226
60434
|
cancelDrag: "#TraderContainer",
|
|
60227
60435
|
scale: scale
|
|
60228
|
-
}, React__default.createElement(Container$O, null, React__default.createElement(Title$
|
|
60436
|
+
}, 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
60437
|
className: "golden"
|
|
60230
60438
|
}), React__default.createElement(ScrollWrapper, {
|
|
60231
60439
|
id: "TraderContainer"
|
|
@@ -60257,7 +60465,7 @@ var Container$O = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
60257
60465
|
displayName: "TradingMenu__Container",
|
|
60258
60466
|
componentId: "sc-1wjsz1l-0"
|
|
60259
60467
|
})(["width:100%;"]);
|
|
60260
|
-
var Title$
|
|
60468
|
+
var Title$i = /*#__PURE__*/styled__default.h1.withConfig({
|
|
60261
60469
|
displayName: "TradingMenu__Title",
|
|
60262
60470
|
componentId: "sc-1wjsz1l-1"
|
|
60263
60471
|
})(["font-size:0.7rem !important;color:yellow !important;text-align:center;"]);
|
|
@@ -60478,6 +60686,7 @@ exports.Leaderboard = Leaderboard;
|
|
|
60478
60686
|
exports.ListMenu = ListMenu;
|
|
60479
60687
|
exports.LoginStreakPanel = LoginStreakPanel;
|
|
60480
60688
|
exports.Marketplace = Marketplace;
|
|
60689
|
+
exports.MarketplaceBuyModal = MarketplaceBuyModal;
|
|
60481
60690
|
exports.MarketplaceRows = MarketplaceRows;
|
|
60482
60691
|
exports.MetadataCollector = MetadataCollector;
|
|
60483
60692
|
exports.NPCDialog = NPCDialog;
|