@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
package/dist/long-bow.esm.js
CHANGED
|
@@ -30309,6 +30309,16 @@ var TRANSACTION_TYPE_LABELS = {
|
|
|
30309
30309
|
Refund: 'Refund',
|
|
30310
30310
|
AdminAdjustment: 'Admin'
|
|
30311
30311
|
};
|
|
30312
|
+
var TRANSACTION_TYPE_COLORS = {
|
|
30313
|
+
Purchase: '#22c55e',
|
|
30314
|
+
Transfer: '#60a5fa',
|
|
30315
|
+
MarketplaceSale: '#fbbf24',
|
|
30316
|
+
MarketplacePurchase: '#f97316',
|
|
30317
|
+
StorePurchase: '#a78bfa',
|
|
30318
|
+
Fee: '#ef4444',
|
|
30319
|
+
Refund: '#06b6d4',
|
|
30320
|
+
AdminAdjustment: '#9ca3af'
|
|
30321
|
+
};
|
|
30312
30322
|
var TRANSACTION_TYPE_OPTIONS = [{
|
|
30313
30323
|
value: '',
|
|
30314
30324
|
label: 'All Types'
|
|
@@ -30372,13 +30382,16 @@ var DCHistoryPanel = function DCHistoryPanel(_ref) {
|
|
|
30372
30382
|
value: opt.value
|
|
30373
30383
|
}, opt.label);
|
|
30374
30384
|
}))), loading && React.createElement(LoadingRow, null, React.createElement(Spinner, null), React.createElement("span", null, "Loading...")), !loading && transactions.length === 0 && React.createElement(EmptyMessage, null, "No transactions found."), !loading && transactions.length > 0 && React.createElement(TransactionList, null, transactions.map(function (tx) {
|
|
30375
|
-
var _TRANSACTION_TYPE_LAB, _tx$note;
|
|
30385
|
+
var _TRANSACTION_TYPE_LAB, _TRANSACTION_TYPE_COL, _tx$note;
|
|
30376
30386
|
var isCredit = tx.amount > 0;
|
|
30377
30387
|
var label = (_TRANSACTION_TYPE_LAB = TRANSACTION_TYPE_LABELS[tx.type]) != null ? _TRANSACTION_TYPE_LAB : tx.type;
|
|
30388
|
+
var color = (_TRANSACTION_TYPE_COL = TRANSACTION_TYPE_COLORS[tx.type]) != null ? _TRANSACTION_TYPE_COL : '#f59e0b';
|
|
30378
30389
|
var subtitle = (_tx$note = tx.note) != null ? _tx$note : tx.relatedCharacterName ? tx.relatedCharacterName : '';
|
|
30379
30390
|
return React.createElement(TransactionRow, {
|
|
30380
30391
|
key: tx._id
|
|
30381
|
-
}, React.createElement(TxLeft, null, React.createElement(TxType,
|
|
30392
|
+
}, React.createElement(TxLeft, null, React.createElement(TxType, {
|
|
30393
|
+
"$color": color
|
|
30394
|
+
}, label), subtitle ? React.createElement(TxNote, null, subtitle) : null), React.createElement(TxRight, null, React.createElement(TxAmount, {
|
|
30382
30395
|
"$credit": isCredit
|
|
30383
30396
|
}, isCredit ? '+' : '', tx.amount, " DC"), React.createElement(TxDate, null, formatDate(tx.createdAt))));
|
|
30384
30397
|
})), totalPages > 1 && React.createElement(Pagination, {
|
|
@@ -30422,12 +30435,15 @@ var TxRight = /*#__PURE__*/styled.div.withConfig({
|
|
|
30422
30435
|
var TxType = /*#__PURE__*/styled.span.withConfig({
|
|
30423
30436
|
displayName: "DCHistoryPanel__TxType",
|
|
30424
30437
|
componentId: "sc-debjdj-8"
|
|
30425
|
-
})(["font-size:7px;color
|
|
30438
|
+
})(["font-size:7px;color:", ";font-family:'Press Start 2P',cursive;"], function (_ref2) {
|
|
30439
|
+
var $color = _ref2.$color;
|
|
30440
|
+
return $color;
|
|
30441
|
+
});
|
|
30426
30442
|
var TxAmount = /*#__PURE__*/styled.span.withConfig({
|
|
30427
30443
|
displayName: "DCHistoryPanel__TxAmount",
|
|
30428
30444
|
componentId: "sc-debjdj-9"
|
|
30429
|
-
})(["font-size:8px;font-family:'Press Start 2P',cursive;color:", ";white-space:nowrap;"], function (
|
|
30430
|
-
var $credit =
|
|
30445
|
+
})(["font-size:8px;font-family:'Press Start 2P',cursive;color:", ";white-space:nowrap;"], function (_ref3) {
|
|
30446
|
+
var $credit = _ref3.$credit;
|
|
30431
30447
|
return $credit ? uiColors.green : uiColors.red;
|
|
30432
30448
|
});
|
|
30433
30449
|
var TxNote = /*#__PURE__*/styled.span.withConfig({
|
|
@@ -35583,11 +35599,145 @@ var PagerContainer = /*#__PURE__*/styled.div.withConfig({
|
|
|
35583
35599
|
componentId: "sc-1ekmf50-1"
|
|
35584
35600
|
})(["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);
|
|
35585
35601
|
|
|
35602
|
+
var MarketplaceBuyModal = function MarketplaceBuyModal(_ref) {
|
|
35603
|
+
var goldPrice = _ref.goldPrice,
|
|
35604
|
+
dcEquivalentPrice = _ref.dcEquivalentPrice,
|
|
35605
|
+
dcBalance = _ref.dcBalance,
|
|
35606
|
+
onConfirm = _ref.onConfirm,
|
|
35607
|
+
onClose = _ref.onClose;
|
|
35608
|
+
var _useState = useState('gold'),
|
|
35609
|
+
selected = _useState[0],
|
|
35610
|
+
setSelected = _useState[1];
|
|
35611
|
+
var hasSufficientDC = dcBalance >= dcEquivalentPrice;
|
|
35612
|
+
var stopPropagation = useCallback(function (e) {
|
|
35613
|
+
e.stopPropagation();
|
|
35614
|
+
}, []);
|
|
35615
|
+
var handleConfirm = useCallback(function () {
|
|
35616
|
+
onConfirm(selected);
|
|
35617
|
+
}, [selected, onConfirm]);
|
|
35618
|
+
return React.createElement(ModalPortal, null, React.createElement(Overlay$4, {
|
|
35619
|
+
onPointerDown: onClose
|
|
35620
|
+
}), React.createElement(ModalContainer$2, null, React.createElement(ModalContent$2, {
|
|
35621
|
+
onClick: stopPropagation,
|
|
35622
|
+
onTouchStart: stopPropagation,
|
|
35623
|
+
onPointerDown: stopPropagation
|
|
35624
|
+
}, React.createElement(Header$7, null, React.createElement(Title$8, null, "Confirm Purchase"), React.createElement(CloseButton$9, {
|
|
35625
|
+
onPointerDown: onClose,
|
|
35626
|
+
"aria-label": "Close"
|
|
35627
|
+
}, React.createElement(FaTimes, null))), React.createElement(Options, null, React.createElement(RadioOption, {
|
|
35628
|
+
"$selected": selected === 'gold',
|
|
35629
|
+
onPointerDown: function onPointerDown() {
|
|
35630
|
+
return setSelected('gold');
|
|
35631
|
+
}
|
|
35632
|
+
}, React.createElement(RadioCircle, {
|
|
35633
|
+
"$selected": selected === 'gold'
|
|
35634
|
+
}), React.createElement(OptionText, null, React.createElement(OptionLabel, null, "Gold"), React.createElement(OptionSub, null, goldPrice.toLocaleString(), " gold"))), React.createElement(RadioOption, {
|
|
35635
|
+
"$selected": selected === 'dc',
|
|
35636
|
+
"$disabled": !hasSufficientDC,
|
|
35637
|
+
onPointerDown: function onPointerDown() {
|
|
35638
|
+
return hasSufficientDC && setSelected('dc');
|
|
35639
|
+
}
|
|
35640
|
+
}, React.createElement(RadioCircle, {
|
|
35641
|
+
"$selected": selected === 'dc'
|
|
35642
|
+
}), React.createElement(OptionText, null, React.createElement(OptionLabel, {
|
|
35643
|
+
"$disabled": !hasSufficientDC
|
|
35644
|
+
}, "Definya Coin"), React.createElement(OptionSub, null, dcEquivalentPrice.toLocaleString(), " DC", ' ', React.createElement(BalanceHint, {
|
|
35645
|
+
"$insufficient": !hasSufficientDC
|
|
35646
|
+
}, "(", dcBalance.toLocaleString(), " available)"))))), React.createElement(ConfirmRow, null, React.createElement(Button, {
|
|
35647
|
+
buttonType: ButtonTypes.RPGUIButton,
|
|
35648
|
+
onPointerDown: handleConfirm
|
|
35649
|
+
}, "Confirm")))));
|
|
35650
|
+
};
|
|
35651
|
+
var Overlay$4 = /*#__PURE__*/styled.div.withConfig({
|
|
35652
|
+
displayName: "MarketplaceBuyModal__Overlay",
|
|
35653
|
+
componentId: "sc-86ottl-0"
|
|
35654
|
+
})(["position:fixed;inset:0;background:rgba(0,0,0,0.65);z-index:1000;"]);
|
|
35655
|
+
var ModalContainer$2 = /*#__PURE__*/styled.div.withConfig({
|
|
35656
|
+
displayName: "MarketplaceBuyModal__ModalContainer",
|
|
35657
|
+
componentId: "sc-86ottl-1"
|
|
35658
|
+
})(["position:fixed;inset:0;display:flex;align-items:center;justify-content:center;z-index:1001;pointer-events:none;"]);
|
|
35659
|
+
var ModalContent$2 = /*#__PURE__*/styled.div.withConfig({
|
|
35660
|
+
displayName: "MarketplaceBuyModal__ModalContent",
|
|
35661
|
+
componentId: "sc-86ottl-2"
|
|
35662
|
+
})(["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;}}"]);
|
|
35663
|
+
var Header$7 = /*#__PURE__*/styled.div.withConfig({
|
|
35664
|
+
displayName: "MarketplaceBuyModal__Header",
|
|
35665
|
+
componentId: "sc-86ottl-3"
|
|
35666
|
+
})(["display:flex;align-items:center;justify-content:space-between;"]);
|
|
35667
|
+
var Title$8 = /*#__PURE__*/styled.h3.withConfig({
|
|
35668
|
+
displayName: "MarketplaceBuyModal__Title",
|
|
35669
|
+
componentId: "sc-86ottl-4"
|
|
35670
|
+
})(["margin:0;font-family:'Press Start 2P',cursive;font-size:0.7rem;color:#fef08a;"]);
|
|
35671
|
+
var CloseButton$9 = /*#__PURE__*/styled.button.withConfig({
|
|
35672
|
+
displayName: "MarketplaceBuyModal__CloseButton",
|
|
35673
|
+
componentId: "sc-86ottl-5"
|
|
35674
|
+
})(["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;}"]);
|
|
35675
|
+
var Options = /*#__PURE__*/styled.div.withConfig({
|
|
35676
|
+
displayName: "MarketplaceBuyModal__Options",
|
|
35677
|
+
componentId: "sc-86ottl-6"
|
|
35678
|
+
})(["display:flex;flex-direction:column;gap:8px;"]);
|
|
35679
|
+
var RadioOption = /*#__PURE__*/styled.div.withConfig({
|
|
35680
|
+
displayName: "MarketplaceBuyModal__RadioOption",
|
|
35681
|
+
componentId: "sc-86ottl-7"
|
|
35682
|
+
})(["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) {
|
|
35683
|
+
var $selected = _ref2.$selected;
|
|
35684
|
+
return $selected ? '#f59e0b' : 'rgba(255,255,255,0.15)';
|
|
35685
|
+
}, function (_ref3) {
|
|
35686
|
+
var $selected = _ref3.$selected;
|
|
35687
|
+
return $selected ? 'rgba(245,158,11,0.1)' : 'transparent';
|
|
35688
|
+
}, function (_ref4) {
|
|
35689
|
+
var $disabled = _ref4.$disabled;
|
|
35690
|
+
return $disabled ? 'not-allowed' : 'pointer';
|
|
35691
|
+
}, function (_ref5) {
|
|
35692
|
+
var $disabled = _ref5.$disabled;
|
|
35693
|
+
return $disabled ? 0.5 : 1;
|
|
35694
|
+
}, function (_ref6) {
|
|
35695
|
+
var $disabled = _ref6.$disabled;
|
|
35696
|
+
return $disabled ? 'rgba(255,255,255,0.15)' : '#f59e0b';
|
|
35697
|
+
});
|
|
35698
|
+
var RadioCircle = /*#__PURE__*/styled.div.withConfig({
|
|
35699
|
+
displayName: "MarketplaceBuyModal__RadioCircle",
|
|
35700
|
+
componentId: "sc-86ottl-8"
|
|
35701
|
+
})(["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) {
|
|
35702
|
+
var $selected = _ref7.$selected;
|
|
35703
|
+
return $selected ? '#f59e0b' : 'rgba(255,255,255,0.4)';
|
|
35704
|
+
}, function (_ref8) {
|
|
35705
|
+
var $selected = _ref8.$selected;
|
|
35706
|
+
return $selected ? 1 : 0;
|
|
35707
|
+
});
|
|
35708
|
+
var OptionText = /*#__PURE__*/styled.div.withConfig({
|
|
35709
|
+
displayName: "MarketplaceBuyModal__OptionText",
|
|
35710
|
+
componentId: "sc-86ottl-9"
|
|
35711
|
+
})(["display:flex;flex-direction:column;gap:3px;"]);
|
|
35712
|
+
var OptionLabel = /*#__PURE__*/styled.span.withConfig({
|
|
35713
|
+
displayName: "MarketplaceBuyModal__OptionLabel",
|
|
35714
|
+
componentId: "sc-86ottl-10"
|
|
35715
|
+
})(["font-family:'Press Start 2P',cursive;font-size:0.65rem;color:", ";"], function (_ref9) {
|
|
35716
|
+
var $disabled = _ref9.$disabled;
|
|
35717
|
+
return $disabled ? 'rgba(255,255,255,0.4)' : '#ffffff';
|
|
35718
|
+
});
|
|
35719
|
+
var OptionSub = /*#__PURE__*/styled.span.withConfig({
|
|
35720
|
+
displayName: "MarketplaceBuyModal__OptionSub",
|
|
35721
|
+
componentId: "sc-86ottl-11"
|
|
35722
|
+
})(["font-family:'Press Start 2P',cursive;font-size:0.5rem;color:rgba(255,255,255,0.55);"]);
|
|
35723
|
+
var BalanceHint = /*#__PURE__*/styled.span.withConfig({
|
|
35724
|
+
displayName: "MarketplaceBuyModal__BalanceHint",
|
|
35725
|
+
componentId: "sc-86ottl-12"
|
|
35726
|
+
})(["color:", ";"], function (_ref10) {
|
|
35727
|
+
var $insufficient = _ref10.$insufficient;
|
|
35728
|
+
return $insufficient ? '#ef4444' : 'rgba(255, 255, 255, 0.4)';
|
|
35729
|
+
});
|
|
35730
|
+
var ConfirmRow = /*#__PURE__*/styled.div.withConfig({
|
|
35731
|
+
displayName: "MarketplaceBuyModal__ConfirmRow",
|
|
35732
|
+
componentId: "sc-86ottl-13"
|
|
35733
|
+
})(["display:flex;justify-content:center;margin-top:4px;"]);
|
|
35734
|
+
|
|
35586
35735
|
var MarketplaceRows = function MarketplaceRows(_ref) {
|
|
35587
35736
|
var atlasJSON = _ref.atlasJSON,
|
|
35588
35737
|
atlasIMG = _ref.atlasIMG,
|
|
35589
35738
|
item = _ref.item,
|
|
35590
35739
|
itemPrice = _ref.itemPrice,
|
|
35740
|
+
dcEquivalentPrice = _ref.dcEquivalentPrice,
|
|
35591
35741
|
equipmentSet = _ref.equipmentSet,
|
|
35592
35742
|
scale = _ref.scale,
|
|
35593
35743
|
onMarketPlaceItemBuy = _ref.onMarketPlaceItemBuy,
|
|
@@ -35619,16 +35769,20 @@ var MarketplaceRows = function MarketplaceRows(_ref) {
|
|
|
35619
35769
|
maxLines: 1,
|
|
35620
35770
|
maxWidth: "200px",
|
|
35621
35771
|
fontSize: "10px"
|
|
35622
|
-
}, item.name)))), React.createElement(Flex$1, null, React.createElement(ItemIconContainer, null, React.createElement(GoldContainer, null, React.createElement(SpriteFromAtlas, {
|
|
35772
|
+
}, item.name)))), React.createElement(Flex$1, null, React.createElement(PriceContainer, null, React.createElement(ItemIconContainer, null, React.createElement(GoldContainer, null, React.createElement(SpriteFromAtlas, {
|
|
35623
35773
|
atlasIMG: atlasIMG,
|
|
35624
35774
|
atlasJSON: atlasJSON,
|
|
35625
35775
|
spriteKey: "others/gold-coin-qty-5.png",
|
|
35626
35776
|
imgScale: 2
|
|
35627
35777
|
})), React.createElement(PriceValue, null, React.createElement("p", null, React.createElement(Ellipsis, {
|
|
35628
35778
|
maxLines: 1,
|
|
35629
|
-
maxWidth: "
|
|
35779
|
+
maxWidth: "120px",
|
|
35630
35780
|
fontSize: "10px"
|
|
35631
|
-
}, "$", itemPrice)))), React.createElement(
|
|
35781
|
+
}, "$", itemPrice)))), dcEquivalentPrice !== undefined && React.createElement(DCPriceLabel, null, React.createElement(Ellipsis, {
|
|
35782
|
+
maxLines: 1,
|
|
35783
|
+
maxWidth: "80px",
|
|
35784
|
+
fontSize: "9px"
|
|
35785
|
+
}, dcEquivalentPrice, " DC"))), React.createElement(ButtonContainer$3, null, React.createElement(Button, {
|
|
35632
35786
|
buttonType: ButtonTypes.RPGUIButton,
|
|
35633
35787
|
disabled: disabled,
|
|
35634
35788
|
onPointerDown: function onPointerDown() {
|
|
@@ -35666,17 +35820,25 @@ var SpriteContainer$3 = /*#__PURE__*/styled.div.withConfig({
|
|
|
35666
35820
|
displayName: "MarketplaceRows__SpriteContainer",
|
|
35667
35821
|
componentId: "sc-wmpr1o-6"
|
|
35668
35822
|
})(["position:relative;left:0.5rem;"]);
|
|
35823
|
+
var PriceContainer = /*#__PURE__*/styled.div.withConfig({
|
|
35824
|
+
displayName: "MarketplaceRows__PriceContainer",
|
|
35825
|
+
componentId: "sc-wmpr1o-7"
|
|
35826
|
+
})(["display:flex;flex-direction:column;align-items:flex-start;gap:2px;"]);
|
|
35827
|
+
var DCPriceLabel = /*#__PURE__*/styled.p.withConfig({
|
|
35828
|
+
displayName: "MarketplaceRows__DCPriceLabel",
|
|
35829
|
+
componentId: "sc-wmpr1o-8"
|
|
35830
|
+
})(["margin:0;margin-left:40px;color:#fef08a;font-size:0.7rem;"]);
|
|
35669
35831
|
var PriceValue = /*#__PURE__*/styled.div.withConfig({
|
|
35670
35832
|
displayName: "MarketplaceRows__PriceValue",
|
|
35671
|
-
componentId: "sc-wmpr1o-
|
|
35833
|
+
componentId: "sc-wmpr1o-9"
|
|
35672
35834
|
})(["margin-left:40px;"]);
|
|
35673
35835
|
var ButtonContainer$3 = /*#__PURE__*/styled.div.withConfig({
|
|
35674
35836
|
displayName: "MarketplaceRows__ButtonContainer",
|
|
35675
|
-
componentId: "sc-wmpr1o-
|
|
35837
|
+
componentId: "sc-wmpr1o-10"
|
|
35676
35838
|
})(["margin:auto;"]);
|
|
35677
35839
|
var RarityContainer = /*#__PURE__*/styled.div.withConfig({
|
|
35678
35840
|
displayName: "MarketplaceRows__RarityContainer",
|
|
35679
|
-
componentId: "sc-wmpr1o-
|
|
35841
|
+
componentId: "sc-wmpr1o-11"
|
|
35680
35842
|
})(["border-color:", ";box-shadow:", " inset,", ";width:32px;height:32px;"], function (_ref2) {
|
|
35681
35843
|
var item = _ref2.item;
|
|
35682
35844
|
return rarityColor(item);
|
|
@@ -35747,7 +35909,11 @@ var BuyPanel = function BuyPanel(_ref) {
|
|
|
35747
35909
|
characterId = _ref.characterId,
|
|
35748
35910
|
enableHotkeys = _ref.enableHotkeys,
|
|
35749
35911
|
disableHotkeys = _ref.disableHotkeys,
|
|
35750
|
-
currentPage = _ref.currentPage
|
|
35912
|
+
currentPage = _ref.currentPage,
|
|
35913
|
+
_ref$dcBalance = _ref.dcBalance,
|
|
35914
|
+
dcBalance = _ref$dcBalance === void 0 ? 0 : _ref$dcBalance,
|
|
35915
|
+
_ref$dcToGoldSwapRate = _ref.dcToGoldSwapRate,
|
|
35916
|
+
dcToGoldSwapRate = _ref$dcToGoldSwapRate === void 0 ? 0 : _ref$dcToGoldSwapRate;
|
|
35751
35917
|
var _useState = useState(''),
|
|
35752
35918
|
name = _useState[0],
|
|
35753
35919
|
setName = _useState[1];
|
|
@@ -35768,7 +35934,26 @@ var BuyPanel = function BuyPanel(_ref) {
|
|
|
35768
35934
|
var _itemsContainer$curre;
|
|
35769
35935
|
(_itemsContainer$curre = itemsContainer.current) == null ? void 0 : _itemsContainer$curre.scrollTo(0, 0);
|
|
35770
35936
|
}, [currentPage]);
|
|
35771
|
-
|
|
35937
|
+
var buyingItem = buyingItemId ? items.find(function (i) {
|
|
35938
|
+
return i._id === buyingItemId;
|
|
35939
|
+
}) : null;
|
|
35940
|
+
var hasDCBalance = dcBalance > 0 && dcToGoldSwapRate > 0;
|
|
35941
|
+
var getDCEquivalentPrice = function getDCEquivalentPrice(goldPrice) {
|
|
35942
|
+
return dcToGoldSwapRate > 0 ? Math.ceil(goldPrice / dcToGoldSwapRate) : 0;
|
|
35943
|
+
};
|
|
35944
|
+
return React.createElement(React.Fragment, null, buyingItemId && buyingItem && hasDCBalance && React.createElement(MarketplaceBuyModal, {
|
|
35945
|
+
goldPrice: buyingItem.price,
|
|
35946
|
+
dcEquivalentPrice: getDCEquivalentPrice(buyingItem.price),
|
|
35947
|
+
dcBalance: dcBalance,
|
|
35948
|
+
onClose: function onClose() {
|
|
35949
|
+
return setBuyingItemId(null);
|
|
35950
|
+
},
|
|
35951
|
+
onConfirm: function onConfirm(paymentMethod) {
|
|
35952
|
+
onMarketPlaceItemBuy == null ? void 0 : onMarketPlaceItemBuy(buyingItemId, paymentMethod);
|
|
35953
|
+
setBuyingItemId(null);
|
|
35954
|
+
enableHotkeys == null ? void 0 : enableHotkeys();
|
|
35955
|
+
}
|
|
35956
|
+
}), buyingItemId && !hasDCBalance && React.createElement(ConfirmModal, {
|
|
35772
35957
|
onClose: setBuyingItemId.bind(null, null),
|
|
35773
35958
|
onConfirm: function onConfirm() {
|
|
35774
35959
|
onMarketPlaceItemBuy == null ? void 0 : onMarketPlaceItemBuy(buyingItemId);
|
|
@@ -35873,6 +36058,7 @@ var BuyPanel = function BuyPanel(_ref) {
|
|
|
35873
36058
|
atlasJSON: atlasJSON,
|
|
35874
36059
|
item: item,
|
|
35875
36060
|
itemPrice: price,
|
|
36061
|
+
dcEquivalentPrice: dcToGoldSwapRate > 0 ? getDCEquivalentPrice(price) : undefined,
|
|
35876
36062
|
equipmentSet: equipmentSet,
|
|
35877
36063
|
onMarketPlaceItemBuy: setBuyingItemId.bind(null, _id),
|
|
35878
36064
|
disabled: owner === characterId
|
|
@@ -36247,7 +36433,7 @@ var PartyCreate = function PartyCreate(_ref) {
|
|
|
36247
36433
|
style: {
|
|
36248
36434
|
width: '100%'
|
|
36249
36435
|
}
|
|
36250
|
-
}, React.createElement(Title$
|
|
36436
|
+
}, React.createElement(Title$9, null, "Create Party"), React.createElement("hr", {
|
|
36251
36437
|
className: "golden"
|
|
36252
36438
|
}))), React.createElement("h1", null, "Type your party name"), React.createElement(Input, {
|
|
36253
36439
|
placeholder: "Type party name",
|
|
@@ -36270,7 +36456,7 @@ var Wrapper$1 = /*#__PURE__*/styled.div.withConfig({
|
|
|
36270
36456
|
displayName: "PartyCreate__Wrapper",
|
|
36271
36457
|
componentId: "sc-13brop0-0"
|
|
36272
36458
|
})(["display:flex;flex-direction:column;width:100%;"]);
|
|
36273
|
-
var Title$
|
|
36459
|
+
var Title$9 = /*#__PURE__*/styled.h1.withConfig({
|
|
36274
36460
|
displayName: "PartyCreate__Title",
|
|
36275
36461
|
componentId: "sc-13brop0-1"
|
|
36276
36462
|
})(["font-size:0.6rem;color:", " !important;"], uiColors.yellow);
|
|
@@ -36319,7 +36505,7 @@ var PartyDashboard = function PartyDashboard(_ref) {
|
|
|
36319
36505
|
style: {
|
|
36320
36506
|
width: '100%'
|
|
36321
36507
|
}
|
|
36322
|
-
}, React.createElement(Title$
|
|
36508
|
+
}, React.createElement(Title$a, null, "Party Dashboard"), React.createElement(Button, {
|
|
36323
36509
|
buttonType: ButtonTypes.RPGUIButton
|
|
36324
36510
|
}, "Create"), React.createElement("hr", {
|
|
36325
36511
|
className: "golden"
|
|
@@ -36346,7 +36532,7 @@ var RowsWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
|
36346
36532
|
displayName: "PartyDashboard__RowsWrapper",
|
|
36347
36533
|
componentId: "sc-16cm41r-1"
|
|
36348
36534
|
})(["overflow-y:scroll;-webkit-overflow-scrolling:touch;width:100%;height:200px;"]);
|
|
36349
|
-
var Title$
|
|
36535
|
+
var Title$a = /*#__PURE__*/styled.h1.withConfig({
|
|
36350
36536
|
displayName: "PartyDashboard__Title",
|
|
36351
36537
|
componentId: "sc-16cm41r-2"
|
|
36352
36538
|
})(["font-size:0.6rem;color:", " !important;"], uiColors.yellow);
|
|
@@ -36383,7 +36569,7 @@ var PartyInvite = function PartyInvite(_ref) {
|
|
|
36383
36569
|
style: {
|
|
36384
36570
|
width: '100%'
|
|
36385
36571
|
}
|
|
36386
|
-
}, React.createElement(Title$
|
|
36572
|
+
}, React.createElement(Title$b, null, "Invite for Party"), React.createElement("hr", {
|
|
36387
36573
|
className: "golden"
|
|
36388
36574
|
}))), React.createElement(RowsWrapper$1, {
|
|
36389
36575
|
className: "playersRows"
|
|
@@ -36402,7 +36588,7 @@ var Wrapper$3 = /*#__PURE__*/styled.div.withConfig({
|
|
|
36402
36588
|
displayName: "PartyInvite__Wrapper",
|
|
36403
36589
|
componentId: "sc-eu8ggt-0"
|
|
36404
36590
|
})(["display:flex;flex-direction:column;width:100%;"]);
|
|
36405
|
-
var Title$
|
|
36591
|
+
var Title$b = /*#__PURE__*/styled.h1.withConfig({
|
|
36406
36592
|
displayName: "PartyInvite__Title",
|
|
36407
36593
|
componentId: "sc-eu8ggt-1"
|
|
36408
36594
|
})(["font-size:0.6rem;color:", " !important;"], uiColors.yellow);
|
|
@@ -36844,7 +37030,7 @@ var QuestInfo = function QuestInfo(_ref) {
|
|
|
36844
37030
|
onPointerDown: onRightClick
|
|
36845
37031
|
}), React.createElement(QuestContainer, null, React.createElement(TitleContainer$1, {
|
|
36846
37032
|
className: "drag-handler"
|
|
36847
|
-
}, React.createElement(Title$
|
|
37033
|
+
}, React.createElement(Title$c, null, React.createElement(Thumbnail, {
|
|
36848
37034
|
src: quests[currentIndex].thumbnail || img$8
|
|
36849
37035
|
}), quests[currentIndex].title), React.createElement(QuestSplitDiv, null, React.createElement("hr", {
|
|
36850
37036
|
className: "golden"
|
|
@@ -36863,7 +37049,7 @@ var QuestInfo = function QuestInfo(_ref) {
|
|
|
36863
37049
|
}, button.title);
|
|
36864
37050
|
})))) : React.createElement(QuestsContainer, null, React.createElement(QuestContainer, null, React.createElement(TitleContainer$1, {
|
|
36865
37051
|
className: "drag-handler"
|
|
36866
|
-
}, React.createElement(Title$
|
|
37052
|
+
}, React.createElement(Title$c, null, React.createElement(Thumbnail, {
|
|
36867
37053
|
src: quests[0].thumbnail || img$8
|
|
36868
37054
|
}), quests[0].title), React.createElement(QuestSplitDiv, null, React.createElement("hr", {
|
|
36869
37055
|
className: "golden"
|
|
@@ -36910,7 +37096,7 @@ var TitleContainer$1 = /*#__PURE__*/styled.div.withConfig({
|
|
|
36910
37096
|
displayName: "QuestInfo__TitleContainer",
|
|
36911
37097
|
componentId: "sc-1wccpiy-6"
|
|
36912
37098
|
})(["width:100%;display:flex;flex-wrap:wrap;justify-content:flex-start;align-items:center;margin-top:1rem;"]);
|
|
36913
|
-
var Title$
|
|
37099
|
+
var Title$c = /*#__PURE__*/styled.h1.withConfig({
|
|
36914
37100
|
displayName: "QuestInfo__Title",
|
|
36915
37101
|
componentId: "sc-1wccpiy-7"
|
|
36916
37102
|
})(["color:white;z-index:22;font-size:", " !important;color:", " !important;"], uiFonts.size.medium, uiColors.yellow);
|
|
@@ -37438,7 +37624,7 @@ var SkillsContainer = function SkillsContainer(_ref) {
|
|
|
37438
37624
|
cancelDrag: "#skillsDiv",
|
|
37439
37625
|
scale: scale,
|
|
37440
37626
|
width: "100%"
|
|
37441
|
-
}, onCloseButton && React.createElement(CloseButton$
|
|
37627
|
+
}, onCloseButton && React.createElement(CloseButton$a, {
|
|
37442
37628
|
onPointerDown: onCloseButton
|
|
37443
37629
|
}, "X"), React.createElement(SkillsContainerDiv, {
|
|
37444
37630
|
id: "skillsDiv"
|
|
@@ -37473,7 +37659,7 @@ var SkillSplitDiv = /*#__PURE__*/styled.div.withConfig({
|
|
|
37473
37659
|
displayName: "SkillsContainer__SkillSplitDiv",
|
|
37474
37660
|
componentId: "sc-1g0c67q-2"
|
|
37475
37661
|
})(["width:100%;font-size:11px;hr{margin:0;margin-bottom:1rem;padding:0px;}p{margin-bottom:0px;}"]);
|
|
37476
|
-
var CloseButton$
|
|
37662
|
+
var CloseButton$a = /*#__PURE__*/styled.div.withConfig({
|
|
37477
37663
|
displayName: "SkillsContainer__CloseButton",
|
|
37478
37664
|
componentId: "sc-1g0c67q-3"
|
|
37479
37665
|
})(["position:absolute;top:2px;right:2px;color:white;z-index:22;font-size:1.1rem;"]);
|
|
@@ -37609,7 +37795,7 @@ var SpellInfo$1 = function SpellInfo(_ref) {
|
|
|
37609
37795
|
castingType = spell.castingType,
|
|
37610
37796
|
cooldown = spell.cooldown,
|
|
37611
37797
|
maxDistanceGrid = spell.maxDistanceGrid;
|
|
37612
|
-
return React.createElement(Container$F, null, React.createElement(Header$
|
|
37798
|
+
return React.createElement(Container$F, null, React.createElement(Header$8, null, React.createElement("div", null, React.createElement(Title$d, null, name), React.createElement(Type$1, null, magicWords))), React.createElement(Statistic$1, null, React.createElement("div", {
|
|
37613
37799
|
className: "label"
|
|
37614
37800
|
}, "Casting Type:"), React.createElement("div", {
|
|
37615
37801
|
className: "value"
|
|
@@ -37639,7 +37825,7 @@ var Container$F = /*#__PURE__*/styled.div.withConfig({
|
|
|
37639
37825
|
displayName: "SpellInfo__Container",
|
|
37640
37826
|
componentId: "sc-4hbw3q-0"
|
|
37641
37827
|
})(["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);
|
|
37642
|
-
var Title$
|
|
37828
|
+
var Title$d = /*#__PURE__*/styled.div.withConfig({
|
|
37643
37829
|
displayName: "SpellInfo__Title",
|
|
37644
37830
|
componentId: "sc-4hbw3q-1"
|
|
37645
37831
|
})(["font-size:", ";font-weight:bold;margin-bottom:0.5rem;display:flex;align-items:center;margin:0;"], uiFonts.size.medium);
|
|
@@ -37651,7 +37837,7 @@ var Description$4 = /*#__PURE__*/styled.div.withConfig({
|
|
|
37651
37837
|
displayName: "SpellInfo__Description",
|
|
37652
37838
|
componentId: "sc-4hbw3q-3"
|
|
37653
37839
|
})(["margin-top:1.5rem;font-size:", ";color:", ";font-style:italic;"], uiFonts.size.small, uiColors.lightGray);
|
|
37654
|
-
var Header$
|
|
37840
|
+
var Header$8 = /*#__PURE__*/styled.div.withConfig({
|
|
37655
37841
|
displayName: "SpellInfo__Header",
|
|
37656
37842
|
componentId: "sc-4hbw3q-4"
|
|
37657
37843
|
})(["display:flex;align-items:center;justify-content:space-between;margin-bottom:0.5rem;"]);
|
|
@@ -37867,7 +38053,7 @@ var Spell = function Spell(_ref) {
|
|
|
37867
38053
|
onPointerUp: onPointerUp == null ? void 0 : onPointerUp.bind(null, spellKey),
|
|
37868
38054
|
isSettingShortcut: isSettingShortcut && !disabled,
|
|
37869
38055
|
className: "spell"
|
|
37870
|
-
}, disabled && React.createElement(Overlay$
|
|
38056
|
+
}, disabled && React.createElement(Overlay$5, null, characterSkillLevel < requiredLevel ? "Low " + getSkillName(attribute || 'magic level') + " level" : manaCost > charMana && 'No mana'), React.createElement(SpellImage, null, activeCooldown && activeCooldown > 0 ? React.createElement("span", {
|
|
37871
38057
|
className: "cooldown"
|
|
37872
38058
|
}, activeCooldown.toFixed(activeCooldown > 10 ? 0 : 1)) : null, React.createElement(SpriteFromAtlas, {
|
|
37873
38059
|
atlasIMG: atlasIMG,
|
|
@@ -37876,7 +38062,7 @@ var Spell = function Spell(_ref) {
|
|
|
37876
38062
|
imgScale: IMAGE_SCALE,
|
|
37877
38063
|
containerStyle: CONTAINER_STYLE,
|
|
37878
38064
|
centered: true
|
|
37879
|
-
})), React.createElement(Info, null, React.createElement(Title$
|
|
38065
|
+
})), React.createElement(Info, null, React.createElement(Title$e, null, React.createElement("span", null, name), React.createElement("span", {
|
|
37880
38066
|
className: "spell"
|
|
37881
38067
|
}, "(", magicWords, ")")), React.createElement(Description$5, null, description)), React.createElement(Divider$1, null), React.createElement(Cost, null, React.createElement("span", null, "Mana cost:"), React.createElement("span", {
|
|
37882
38068
|
className: "mana"
|
|
@@ -37897,7 +38083,7 @@ var Info = /*#__PURE__*/styled.span.withConfig({
|
|
|
37897
38083
|
displayName: "Spell__Info",
|
|
37898
38084
|
componentId: "sc-j96fa2-2"
|
|
37899
38085
|
})(["width:0;flex:1;@media (orientation:portrait){display:none;}"]);
|
|
37900
|
-
var Title$
|
|
38086
|
+
var Title$e = /*#__PURE__*/styled.p.withConfig({
|
|
37901
38087
|
displayName: "Spell__Title",
|
|
37902
38088
|
componentId: "sc-j96fa2-3"
|
|
37903
38089
|
})(["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);
|
|
@@ -37913,7 +38099,7 @@ var Cost = /*#__PURE__*/styled.p.withConfig({
|
|
|
37913
38099
|
displayName: "Spell__Cost",
|
|
37914
38100
|
componentId: "sc-j96fa2-6"
|
|
37915
38101
|
})(["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);
|
|
37916
|
-
var Overlay$
|
|
38102
|
+
var Overlay$5 = /*#__PURE__*/styled.p.withConfig({
|
|
37917
38103
|
displayName: "Spell__Overlay",
|
|
37918
38104
|
componentId: "sc-j96fa2-7"
|
|
37919
38105
|
})(["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);
|
|
@@ -37962,7 +38148,7 @@ var Spellbook = function Spellbook(_ref) {
|
|
|
37962
38148
|
height: "inherit",
|
|
37963
38149
|
cancelDrag: "#spellbook-search, #shortcuts_list, .spell",
|
|
37964
38150
|
scale: scale
|
|
37965
|
-
}, React.createElement(Container$J, null, React.createElement(Title$
|
|
38151
|
+
}, React.createElement(Container$J, null, React.createElement(Title$f, null, "Learned Spells"), React.createElement(ShortcutsSetter, {
|
|
37966
38152
|
setSettingShortcutIndex: setSettingShortcutIndex,
|
|
37967
38153
|
settingShortcutIndex: settingShortcutIndex,
|
|
37968
38154
|
shortcuts: shortcuts,
|
|
@@ -37995,7 +38181,7 @@ var Spellbook = function Spellbook(_ref) {
|
|
|
37995
38181
|
}, spell)));
|
|
37996
38182
|
}))));
|
|
37997
38183
|
};
|
|
37998
|
-
var Title$
|
|
38184
|
+
var Title$f = /*#__PURE__*/styled.h1.withConfig({
|
|
37999
38185
|
displayName: "Spellbook__Title",
|
|
38000
38186
|
componentId: "sc-r02nfq-0"
|
|
38001
38187
|
})(["font-size:", " !important;margin-bottom:0 !important;"], uiFonts.size.large);
|
|
@@ -58437,7 +58623,7 @@ var CartView = function CartView(_ref2) {
|
|
|
58437
58623
|
return _ref3.apply(this, arguments);
|
|
58438
58624
|
};
|
|
58439
58625
|
}();
|
|
58440
|
-
return React.createElement(Container$K, null, React.createElement(Header$
|
|
58626
|
+
return React.createElement(Container$K, null, React.createElement(Header$9, null, React.createElement(Title$g, null, "Shopping Cart"), React.createElement(CloseButton$b, {
|
|
58441
58627
|
onPointerDown: onClose
|
|
58442
58628
|
}, React.createElement(FaTimes, null))), React.createElement(CartItems, null, cartItems.length === 0 ? React.createElement(EmptyCart, null, "Your cart is empty") : cartItems.map(function (cartItem) {
|
|
58443
58629
|
var _cartItem$metadata, _cartItem$metadata2;
|
|
@@ -58477,15 +58663,15 @@ var Container$K = /*#__PURE__*/styled.div.withConfig({
|
|
|
58477
58663
|
displayName: "CartView__Container",
|
|
58478
58664
|
componentId: "sc-ydtyl1-0"
|
|
58479
58665
|
})(["display:flex;flex-direction:column;width:100%;height:100%;gap:1.5rem;padding:1.5rem;"]);
|
|
58480
|
-
var Header$
|
|
58666
|
+
var Header$9 = /*#__PURE__*/styled.div.withConfig({
|
|
58481
58667
|
displayName: "CartView__Header",
|
|
58482
58668
|
componentId: "sc-ydtyl1-1"
|
|
58483
58669
|
})(["display:flex;justify-content:space-between;align-items:center;"]);
|
|
58484
|
-
var Title$
|
|
58670
|
+
var Title$g = /*#__PURE__*/styled.h2.withConfig({
|
|
58485
58671
|
displayName: "CartView__Title",
|
|
58486
58672
|
componentId: "sc-ydtyl1-2"
|
|
58487
58673
|
})(["font-family:'Press Start 2P',cursive;font-size:1rem;color:#ffffff;margin:0;"]);
|
|
58488
|
-
var CloseButton$
|
|
58674
|
+
var CloseButton$b = /*#__PURE__*/styled.div.withConfig({
|
|
58489
58675
|
displayName: "CartView__CloseButton",
|
|
58490
58676
|
componentId: "sc-ydtyl1-3"
|
|
58491
58677
|
})(["padding:0.5rem;min-width:unset;width:42px;height:42px;display:flex;font-size:1.5rem;align-items:center;color:white;justify-content:center;"]);
|
|
@@ -58967,7 +59153,7 @@ var StoreCharacterSkinRow = function StoreCharacterSkinRow(_ref) {
|
|
|
58967
59153
|
height: 32,
|
|
58968
59154
|
imgScale: 2,
|
|
58969
59155
|
centered: true
|
|
58970
|
-
}) : React.createElement(DefaultIcon, null, "\uD83D\uDC64")), React.createElement(ItemDetails$1, null, React.createElement(Header$
|
|
59156
|
+
}) : React.createElement(DefaultIcon, null, "\uD83D\uDC64")), React.createElement(ItemDetails$1, null, React.createElement(Header$a, null, React.createElement(ItemName$1, null, item.name)), availableCharacters.length > 0 && currentCharacter && React.createElement(SelectedSkinNav, null, React.createElement(SelectedSkin, null, "Selected:"), React.createElement(SkinNavArrow, {
|
|
58971
59157
|
direction: "left",
|
|
58972
59158
|
onPointerDown: handlePreviousSkin,
|
|
58973
59159
|
size: 24
|
|
@@ -59019,7 +59205,7 @@ var SkinNavArrow = /*#__PURE__*/styled(SelectArrow).withConfig({
|
|
|
59019
59205
|
displayName: "StoreCharacterSkinRow__SkinNavArrow",
|
|
59020
59206
|
componentId: "sc-81xqsx-7"
|
|
59021
59207
|
})(["position:static;"]);
|
|
59022
|
-
var Header$
|
|
59208
|
+
var Header$a = /*#__PURE__*/styled.div.withConfig({
|
|
59023
59209
|
displayName: "StoreCharacterSkinRow__Header",
|
|
59024
59210
|
componentId: "sc-81xqsx-8"
|
|
59025
59211
|
})(["display:flex;align-items:center;gap:0.5rem;"]);
|
|
@@ -59343,7 +59529,9 @@ var usePackFiltering = function usePackFiltering(packs) {
|
|
|
59343
59529
|
var StorePacksSection = function StorePacksSection(_ref) {
|
|
59344
59530
|
var packs = _ref.packs,
|
|
59345
59531
|
onAddToCart = _ref.onAddToCart,
|
|
59346
|
-
onSelectPack = _ref.onSelectPack
|
|
59532
|
+
onSelectPack = _ref.onSelectPack,
|
|
59533
|
+
atlasJSON = _ref.atlasJSON,
|
|
59534
|
+
atlasIMG = _ref.atlasIMG;
|
|
59347
59535
|
var _usePackFiltering = usePackFiltering(packs),
|
|
59348
59536
|
searchQuery = _usePackFiltering.searchQuery,
|
|
59349
59537
|
setSearchQuery = _usePackFiltering.setSearchQuery,
|
|
@@ -59352,16 +59540,32 @@ var StorePacksSection = function StorePacksSection(_ref) {
|
|
|
59352
59540
|
if (typeof imageUrl === 'string') return imageUrl;
|
|
59353
59541
|
return imageUrl["default"] || imageUrl.src;
|
|
59354
59542
|
};
|
|
59543
|
+
var renderPackIcon = useCallback(function (pack) {
|
|
59544
|
+
var _atlasJSON$frames;
|
|
59545
|
+
var imgSrc = getImageSrc(pack.image);
|
|
59546
|
+
if (atlasJSON && atlasIMG && imgSrc && atlasJSON != null && (_atlasJSON$frames = atlasJSON.frames) != null && _atlasJSON$frames[imgSrc]) {
|
|
59547
|
+
return React.createElement(SpriteFromAtlas, {
|
|
59548
|
+
atlasJSON: atlasJSON,
|
|
59549
|
+
atlasIMG: atlasIMG,
|
|
59550
|
+
spriteKey: imgSrc,
|
|
59551
|
+
width: 40,
|
|
59552
|
+
height: 40,
|
|
59553
|
+
imgScale: 1.2,
|
|
59554
|
+
centered: true
|
|
59555
|
+
});
|
|
59556
|
+
}
|
|
59557
|
+
return React.createElement("img", {
|
|
59558
|
+
src: imgSrc,
|
|
59559
|
+
alt: pack.title
|
|
59560
|
+
});
|
|
59561
|
+
}, [atlasJSON, atlasIMG]);
|
|
59355
59562
|
var renderPack = useCallback(function (pack) {
|
|
59356
59563
|
return React.createElement(PackRow, {
|
|
59357
59564
|
key: pack.key,
|
|
59358
59565
|
onClick: function onClick() {
|
|
59359
59566
|
return onSelectPack == null ? void 0 : onSelectPack(pack);
|
|
59360
59567
|
}
|
|
59361
|
-
}, React.createElement(PackIconContainer, null, React.createElement("
|
|
59362
|
-
src: getImageSrc(pack.image),
|
|
59363
|
-
alt: pack.title
|
|
59364
|
-
})), React.createElement(PackDetails, null, React.createElement(PackName, null, pack.title), React.createElement(PackPrice, null, "$", pack.priceUSD), pack.description && React.createElement(PackDescription, null, pack.description)), React.createElement(Controls$2, null, React.createElement(CTAButton, {
|
|
59568
|
+
}, React.createElement(PackIconContainer, null, renderPackIcon(pack)), React.createElement(PackDetails, null, React.createElement(PackName, null, pack.title), React.createElement(PackPrice, null, "$", pack.priceUSD), pack.description && React.createElement(PackDescription, null, pack.description)), React.createElement(Controls$2, null, React.createElement(CTAButton, {
|
|
59365
59569
|
icon: React.createElement(FaCartPlus, null),
|
|
59366
59570
|
label: "Add",
|
|
59367
59571
|
onClick: function onClick(e) {
|
|
@@ -59422,7 +59626,7 @@ var StoreItemDetails = function StoreItemDetails(_ref) {
|
|
|
59422
59626
|
if (typeof imageUrl === 'string') return imageUrl;
|
|
59423
59627
|
return imageUrl["default"] || imageUrl.src;
|
|
59424
59628
|
};
|
|
59425
|
-
return React.createElement(Container$M, null, React.createElement(Header$
|
|
59629
|
+
return React.createElement(Container$M, null, React.createElement(Header$b, null, React.createElement(BackButton, {
|
|
59426
59630
|
onClick: onBack
|
|
59427
59631
|
}, React.createElement(FaArrowLeft, null), React.createElement("span", null, "Back"))), React.createElement(Content$5, null, React.createElement(DetailsGrid, null, React.createElement(ItemIcon, null, React.createElement("img", {
|
|
59428
59632
|
src: getImageSrc(),
|
|
@@ -59440,7 +59644,7 @@ var Container$M = /*#__PURE__*/styled.div.withConfig({
|
|
|
59440
59644
|
displayName: "StoreItemDetails__Container",
|
|
59441
59645
|
componentId: "sc-k3ho5z-0"
|
|
59442
59646
|
})(["display:flex;flex-direction:column;gap:1.5rem;padding:1.5rem;height:100%;"]);
|
|
59443
|
-
var Header$
|
|
59647
|
+
var Header$b = /*#__PURE__*/styled.div.withConfig({
|
|
59444
59648
|
displayName: "StoreItemDetails__Header",
|
|
59445
59649
|
componentId: "sc-k3ho5z-1"
|
|
59446
59650
|
})(["display:flex;align-items:center;gap:1rem;"]);
|
|
@@ -59624,18 +59828,22 @@ var Store = function Store(_ref) {
|
|
|
59624
59828
|
return pack.priceUSD >= 9.99;
|
|
59625
59829
|
}),
|
|
59626
59830
|
onAddToCart: handleAddPackToCart,
|
|
59627
|
-
onSelectPack: setSelectedPack
|
|
59831
|
+
onSelectPack: setSelectedPack,
|
|
59832
|
+
atlasJSON: atlasJSON,
|
|
59833
|
+
atlasIMG: atlasIMG
|
|
59628
59834
|
})
|
|
59629
59835
|
},
|
|
59630
59836
|
packs: {
|
|
59631
59837
|
id: 'packs',
|
|
59632
59838
|
title: packsTabLabel,
|
|
59633
59839
|
content: customPacksContent != null ? customPacksContent : React.createElement(StorePacksSection, {
|
|
59634
|
-
packs: packs.filter(function (pack) {
|
|
59840
|
+
packs: hidePremiumTab ? packs : packs.filter(function (pack) {
|
|
59635
59841
|
return pack.priceUSD < 9.99;
|
|
59636
59842
|
}),
|
|
59637
59843
|
onAddToCart: handleAddPackToCart,
|
|
59638
|
-
onSelectPack: setSelectedPack
|
|
59844
|
+
onSelectPack: setSelectedPack,
|
|
59845
|
+
atlasJSON: atlasJSON,
|
|
59846
|
+
atlasIMG: atlasIMG
|
|
59639
59847
|
})
|
|
59640
59848
|
},
|
|
59641
59849
|
items: {
|
|
@@ -59799,63 +60007,63 @@ var PaymentMethodModal = function PaymentMethodModal(_ref) {
|
|
|
59799
60007
|
onPayWithCard();
|
|
59800
60008
|
}
|
|
59801
60009
|
}, [selected, onPayWithDC, onPayWithCard]);
|
|
59802
|
-
return React.createElement(ModalPortal, null, React.createElement(Overlay$
|
|
60010
|
+
return React.createElement(ModalPortal, null, React.createElement(Overlay$6, {
|
|
59803
60011
|
onPointerDown: onClose
|
|
59804
|
-
}), React.createElement(ModalContainer$
|
|
60012
|
+
}), React.createElement(ModalContainer$3, null, React.createElement(ModalContent$3, {
|
|
59805
60013
|
onClick: stopPropagation,
|
|
59806
60014
|
onTouchStart: stopPropagation,
|
|
59807
60015
|
onPointerDown: stopPropagation
|
|
59808
|
-
}, React.createElement(Header$
|
|
60016
|
+
}, React.createElement(Header$c, null, React.createElement(Title$h, null, "How would you like to pay?"), React.createElement(CloseButton$c, {
|
|
59809
60017
|
onPointerDown: onClose,
|
|
59810
60018
|
"aria-label": "Close"
|
|
59811
|
-
}, React.createElement(FaTimes, null))), React.createElement(Options, null, React.createElement(RadioOption, {
|
|
60019
|
+
}, React.createElement(FaTimes, null))), React.createElement(Options$1, null, React.createElement(RadioOption$1, {
|
|
59812
60020
|
"$selected": selected === 'card',
|
|
59813
60021
|
onPointerDown: function onPointerDown() {
|
|
59814
60022
|
return setSelected('card');
|
|
59815
60023
|
}
|
|
59816
|
-
}, React.createElement(RadioCircle, {
|
|
60024
|
+
}, React.createElement(RadioCircle$1, {
|
|
59817
60025
|
"$selected": selected === 'card'
|
|
59818
|
-
}), React.createElement(OptionText, null, React.createElement(OptionLabel, null, "Credit Card"), React.createElement(OptionSub, null, "Stripe secure checkout"))), React.createElement(RadioOption, {
|
|
60026
|
+
}), React.createElement(OptionText$1, null, React.createElement(OptionLabel$1, null, "Credit Card"), React.createElement(OptionSub$1, null, "Stripe secure checkout"))), React.createElement(RadioOption$1, {
|
|
59819
60027
|
"$selected": selected === 'dc',
|
|
59820
60028
|
onPointerDown: function onPointerDown() {
|
|
59821
60029
|
return setSelected('dc');
|
|
59822
60030
|
}
|
|
59823
|
-
}, React.createElement(RadioCircle, {
|
|
60031
|
+
}, React.createElement(RadioCircle$1, {
|
|
59824
60032
|
"$selected": selected === 'dc'
|
|
59825
|
-
}), React.createElement(OptionText, null, React.createElement(OptionLabel, null, "Definya Coin"), React.createElement(OptionSub, null, dcBalance.toLocaleString(), " DC available")))), React.createElement(ConfirmRow, null, React.createElement(Button, {
|
|
60033
|
+
}), React.createElement(OptionText$1, null, React.createElement(OptionLabel$1, null, "Definya Coin"), React.createElement(OptionSub$1, null, dcBalance.toLocaleString(), " DC available")))), React.createElement(ConfirmRow$1, null, React.createElement(Button, {
|
|
59826
60034
|
buttonType: ButtonTypes.RPGUIButton,
|
|
59827
60035
|
onPointerDown: handleConfirm
|
|
59828
60036
|
}, "Confirm")))));
|
|
59829
60037
|
};
|
|
59830
|
-
var Overlay$
|
|
60038
|
+
var Overlay$6 = /*#__PURE__*/styled.div.withConfig({
|
|
59831
60039
|
displayName: "PaymentMethodModal__Overlay",
|
|
59832
60040
|
componentId: "sc-1dxy6lr-0"
|
|
59833
60041
|
})(["position:fixed;inset:0;background:rgba(0,0,0,0.65);z-index:1000;"]);
|
|
59834
|
-
var ModalContainer$
|
|
60042
|
+
var ModalContainer$3 = /*#__PURE__*/styled.div.withConfig({
|
|
59835
60043
|
displayName: "PaymentMethodModal__ModalContainer",
|
|
59836
60044
|
componentId: "sc-1dxy6lr-1"
|
|
59837
60045
|
})(["position:fixed;inset:0;display:flex;align-items:center;justify-content:center;z-index:1001;pointer-events:none;"]);
|
|
59838
|
-
var ModalContent$
|
|
60046
|
+
var ModalContent$3 = /*#__PURE__*/styled.div.withConfig({
|
|
59839
60047
|
displayName: "PaymentMethodModal__ModalContent",
|
|
59840
60048
|
componentId: "sc-1dxy6lr-2"
|
|
59841
60049
|
})(["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;}}"]);
|
|
59842
|
-
var Header$
|
|
60050
|
+
var Header$c = /*#__PURE__*/styled.div.withConfig({
|
|
59843
60051
|
displayName: "PaymentMethodModal__Header",
|
|
59844
60052
|
componentId: "sc-1dxy6lr-3"
|
|
59845
60053
|
})(["display:flex;align-items:center;justify-content:space-between;"]);
|
|
59846
|
-
var Title$
|
|
60054
|
+
var Title$h = /*#__PURE__*/styled.h3.withConfig({
|
|
59847
60055
|
displayName: "PaymentMethodModal__Title",
|
|
59848
60056
|
componentId: "sc-1dxy6lr-4"
|
|
59849
60057
|
})(["margin:0;font-family:'Press Start 2P',cursive;font-size:0.7rem;color:#fef08a;"]);
|
|
59850
|
-
var CloseButton$
|
|
60058
|
+
var CloseButton$c = /*#__PURE__*/styled.button.withConfig({
|
|
59851
60059
|
displayName: "PaymentMethodModal__CloseButton",
|
|
59852
60060
|
componentId: "sc-1dxy6lr-5"
|
|
59853
60061
|
})(["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;}"]);
|
|
59854
|
-
var Options = /*#__PURE__*/styled.div.withConfig({
|
|
60062
|
+
var Options$1 = /*#__PURE__*/styled.div.withConfig({
|
|
59855
60063
|
displayName: "PaymentMethodModal__Options",
|
|
59856
60064
|
componentId: "sc-1dxy6lr-6"
|
|
59857
60065
|
})(["display:flex;flex-direction:column;gap:8px;"]);
|
|
59858
|
-
var RadioOption = /*#__PURE__*/styled.div.withConfig({
|
|
60066
|
+
var RadioOption$1 = /*#__PURE__*/styled.div.withConfig({
|
|
59859
60067
|
displayName: "PaymentMethodModal__RadioOption",
|
|
59860
60068
|
componentId: "sc-1dxy6lr-7"
|
|
59861
60069
|
})(["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) {
|
|
@@ -59865,7 +60073,7 @@ var RadioOption = /*#__PURE__*/styled.div.withConfig({
|
|
|
59865
60073
|
var $selected = _ref3.$selected;
|
|
59866
60074
|
return $selected ? 'rgba(245,158,11,0.1)' : 'transparent';
|
|
59867
60075
|
});
|
|
59868
|
-
var RadioCircle = /*#__PURE__*/styled.div.withConfig({
|
|
60076
|
+
var RadioCircle$1 = /*#__PURE__*/styled.div.withConfig({
|
|
59869
60077
|
displayName: "PaymentMethodModal__RadioCircle",
|
|
59870
60078
|
componentId: "sc-1dxy6lr-8"
|
|
59871
60079
|
})(["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) {
|
|
@@ -59875,19 +60083,19 @@ var RadioCircle = /*#__PURE__*/styled.div.withConfig({
|
|
|
59875
60083
|
var $selected = _ref5.$selected;
|
|
59876
60084
|
return $selected ? 1 : 0;
|
|
59877
60085
|
});
|
|
59878
|
-
var OptionText = /*#__PURE__*/styled.div.withConfig({
|
|
60086
|
+
var OptionText$1 = /*#__PURE__*/styled.div.withConfig({
|
|
59879
60087
|
displayName: "PaymentMethodModal__OptionText",
|
|
59880
60088
|
componentId: "sc-1dxy6lr-9"
|
|
59881
60089
|
})(["display:flex;flex-direction:column;gap:3px;"]);
|
|
59882
|
-
var OptionLabel = /*#__PURE__*/styled.span.withConfig({
|
|
60090
|
+
var OptionLabel$1 = /*#__PURE__*/styled.span.withConfig({
|
|
59883
60091
|
displayName: "PaymentMethodModal__OptionLabel",
|
|
59884
60092
|
componentId: "sc-1dxy6lr-10"
|
|
59885
60093
|
})(["font-family:'Press Start 2P',cursive;font-size:0.65rem;color:#ffffff;"]);
|
|
59886
|
-
var OptionSub = /*#__PURE__*/styled.span.withConfig({
|
|
60094
|
+
var OptionSub$1 = /*#__PURE__*/styled.span.withConfig({
|
|
59887
60095
|
displayName: "PaymentMethodModal__OptionSub",
|
|
59888
60096
|
componentId: "sc-1dxy6lr-11"
|
|
59889
60097
|
})(["font-family:'Press Start 2P',cursive;font-size:0.5rem;color:rgba(255,255,255,0.55);"]);
|
|
59890
|
-
var ConfirmRow = /*#__PURE__*/styled.div.withConfig({
|
|
60098
|
+
var ConfirmRow$1 = /*#__PURE__*/styled.div.withConfig({
|
|
59891
60099
|
displayName: "PaymentMethodModal__ConfirmRow",
|
|
59892
60100
|
componentId: "sc-1dxy6lr-12"
|
|
59893
60101
|
})(["display:flex;justify-content:center;margin-top:4px;"]);
|
|
@@ -59926,7 +60134,7 @@ var TimeWidget = function TimeWidget(_ref) {
|
|
|
59926
60134
|
return React.createElement(Draggable, {
|
|
59927
60135
|
scale: scale,
|
|
59928
60136
|
cancel: ".time-widget-close,.time-widget-container,.time-widget-container *"
|
|
59929
|
-
}, React.createElement(WidgetContainer, null, React.createElement(CloseButton$
|
|
60137
|
+
}, React.createElement(WidgetContainer, null, React.createElement(CloseButton$d, {
|
|
59930
60138
|
onPointerDown: onClose,
|
|
59931
60139
|
className: "time-widget-close"
|
|
59932
60140
|
}, "X"), React.createElement(DayNightContainer, {
|
|
@@ -59943,7 +60151,7 @@ var Time = /*#__PURE__*/styled.div.withConfig({
|
|
|
59943
60151
|
displayName: "TimeWidget__Time",
|
|
59944
60152
|
componentId: "sc-1ja236h-1"
|
|
59945
60153
|
})(["top:0.75rem;right:0.5rem;position:absolute;font-size:", ";color:white;"], uiFonts.size.small);
|
|
59946
|
-
var CloseButton$
|
|
60154
|
+
var CloseButton$d = /*#__PURE__*/styled.p.withConfig({
|
|
59947
60155
|
displayName: "TimeWidget__CloseButton",
|
|
59948
60156
|
componentId: "sc-1ja236h-2"
|
|
59949
60157
|
})(["position:absolute;top:-0.5rem;margin:0;right:-0.2rem;font-size:", " !important;z-index:1;"], uiFonts.size.small);
|
|
@@ -60222,7 +60430,7 @@ var TradingMenu = function TradingMenu(_ref) {
|
|
|
60222
60430
|
width: "500px",
|
|
60223
60431
|
cancelDrag: "#TraderContainer",
|
|
60224
60432
|
scale: scale
|
|
60225
|
-
}, React.createElement(Container$O, null, React.createElement(Title$
|
|
60433
|
+
}, React.createElement(Container$O, null, React.createElement(Title$i, null, type.charAt(0).toUpperCase() + type.slice(1), " Menu"), React.createElement("hr", {
|
|
60226
60434
|
className: "golden"
|
|
60227
60435
|
}), React.createElement(ScrollWrapper, {
|
|
60228
60436
|
id: "TraderContainer"
|
|
@@ -60254,7 +60462,7 @@ var Container$O = /*#__PURE__*/styled.div.withConfig({
|
|
|
60254
60462
|
displayName: "TradingMenu__Container",
|
|
60255
60463
|
componentId: "sc-1wjsz1l-0"
|
|
60256
60464
|
})(["width:100%;"]);
|
|
60257
|
-
var Title$
|
|
60465
|
+
var Title$i = /*#__PURE__*/styled.h1.withConfig({
|
|
60258
60466
|
displayName: "TradingMenu__Title",
|
|
60259
60467
|
componentId: "sc-1wjsz1l-1"
|
|
60260
60468
|
})(["font-size:0.7rem !important;color:yellow !important;text-align:center;"]);
|
|
@@ -60434,5 +60642,5 @@ var LessonContainer = /*#__PURE__*/styled.div.withConfig({
|
|
|
60434
60642
|
componentId: "sc-7tgzv2-6"
|
|
60435
60643
|
})(["display:flex;flex-direction:column;justify-content:space-between;min-height:200px;p{font-size:0.7rem !important;}"]);
|
|
60436
60644
|
|
|
60437
|
-
export { ActionButtons, AsyncDropdown, Button, ButtonTypes, CTAButton, CartView, CharacterSelection, CharacterSkinSelectionModal, Chat, ChatDeprecated, ChatRevamp, CheckButton, CheckItem, CircularController, CraftBook, DCWalletModal, DailyTasks, DraggableContainer, Dropdown, DropdownSelectorContainer, DynamicText, EquipmentSet, EquipmentSlotSpriteByType, ErrorBoundary, FriendList, GemSelector, HistoryDialog, ImageCarousel, ImgSide, InformationCenter, Input, InputRadio, InternalTabs, ItemContainer$1 as ItemContainer, ItemPropertySimpleHandler, ItemQuantitySelectorModal, ItemSelector, ItemSlot, JoystickDPad, Leaderboard, ListMenu, LoginStreakPanel, Marketplace, MarketplaceRows, MetadataCollector, MultitabType, NPCDialog, NPCDialogType, NPCMultiDialog, PartyCreate, PartyDashboard, PartyInvite, PartyManager, PartyManagerRow, PartyRow, PaymentMethodModal, PlayersRow, ProgressBar$1 as ProgressBar, PropertySelect, QuantitySelectorModal, QuestInfo, QuestList, QuestionDialog, RPGUIContainer, RPGUIContainerTypes, RPGUIRoot, RangeSlider, RangeSliderType, SelectArrow, Shortcuts, SimpleImageCarousel, SkillProgressBar, SkillsContainer, SocialModal, Spellbook, SpriteFromAtlas, Stepper, Store, TabBody, Table, TableCell, TableHeader, TableRow, TabsContainer, TextArea, TimeWidget, Tooltip, TradingMenu, Truncate, TutorialStepper, UserActionLink, _RPGUI, formatQuestStatus, formatQuestText, getMockedPlayersRowsLeader, getMockedPlayersRowsNotLeader, getQuestStatusColor, mockedPartyManager, mockedPartyRows, mockedPlayersRows, mockedPlayersRows2, useEventListener, useStoreCart };
|
|
60645
|
+
export { ActionButtons, AsyncDropdown, Button, ButtonTypes, CTAButton, CartView, CharacterSelection, CharacterSkinSelectionModal, Chat, ChatDeprecated, ChatRevamp, CheckButton, CheckItem, CircularController, CraftBook, DCWalletModal, DailyTasks, DraggableContainer, Dropdown, DropdownSelectorContainer, DynamicText, EquipmentSet, EquipmentSlotSpriteByType, ErrorBoundary, FriendList, GemSelector, HistoryDialog, ImageCarousel, ImgSide, InformationCenter, Input, InputRadio, InternalTabs, ItemContainer$1 as ItemContainer, ItemPropertySimpleHandler, ItemQuantitySelectorModal, ItemSelector, ItemSlot, JoystickDPad, Leaderboard, ListMenu, LoginStreakPanel, Marketplace, MarketplaceBuyModal, MarketplaceRows, MetadataCollector, MultitabType, NPCDialog, NPCDialogType, NPCMultiDialog, PartyCreate, PartyDashboard, PartyInvite, PartyManager, PartyManagerRow, PartyRow, PaymentMethodModal, PlayersRow, ProgressBar$1 as ProgressBar, PropertySelect, QuantitySelectorModal, QuestInfo, QuestList, QuestionDialog, RPGUIContainer, RPGUIContainerTypes, RPGUIRoot, RangeSlider, RangeSliderType, SelectArrow, Shortcuts, SimpleImageCarousel, SkillProgressBar, SkillsContainer, SocialModal, Spellbook, SpriteFromAtlas, Stepper, Store, TabBody, Table, TableCell, TableHeader, TableRow, TabsContainer, TextArea, TimeWidget, Tooltip, TradingMenu, Truncate, TutorialStepper, UserActionLink, _RPGUI, formatQuestStatus, formatQuestText, getMockedPlayersRowsLeader, getMockedPlayersRowsNotLeader, getQuestStatusColor, mockedPartyManager, mockedPartyRows, mockedPlayersRows, mockedPlayersRows2, useEventListener, useStoreCart };
|
|
60438
60646
|
//# sourceMappingURL=long-bow.esm.js.map
|