@rpg-engine/long-bow 0.8.182 → 0.8.184
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/CharacterListingForm.d.ts +4 -2
- package/dist/components/Marketplace/CharacterListingModal.d.ts +17 -0
- package/dist/components/Marketplace/CharacterMarketplacePanel.d.ts +4 -0
- package/dist/components/Marketplace/CharacterMarketplaceRows.d.ts +6 -0
- package/dist/components/Marketplace/Marketplace.d.ts +3 -2
- package/dist/components/Marketplace/MyCharacterListingsPanel.d.ts +4 -0
- package/dist/components/shared/DCRateStrip.d.ts +2 -0
- package/dist/components/shared/RadioOption.d.ts +22 -0
- package/dist/long-bow.cjs.development.js +476 -371
- 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 +477 -372
- package/dist/long-bow.esm.js.map +1 -1
- package/dist/stories/Features/marketplace/CharacterListingModal.stories.d.ts +8 -0
- package/dist/stories/shared/RadioOption.stories.d.ts +8 -0
- package/package.json +1 -1
- package/src/components/DCWallet/DCWalletContent.tsx +5 -47
- package/src/components/Marketplace/CharacterListingForm.tsx +56 -351
- package/src/components/Marketplace/CharacterListingModal.tsx +404 -0
- package/src/components/Marketplace/CharacterMarketplacePanel.tsx +112 -67
- package/src/components/Marketplace/CharacterMarketplaceRows.tsx +21 -9
- package/src/components/Marketplace/Marketplace.tsx +11 -6
- package/src/components/Marketplace/MyCharacterListingsPanel.tsx +15 -14
- package/src/components/shared/DCRateStrip.tsx +67 -0
- package/src/components/shared/RadioOption.tsx +93 -0
- package/src/stories/Features/marketplace/CharacterListingModal.stories.tsx +131 -0
- package/src/stories/Features/marketplace/CharacterMarketplace.stories.tsx +39 -23
- package/src/stories/shared/RadioOption.stories.tsx +93 -0
|
@@ -39132,6 +39132,36 @@ var ContentWrapper = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
39132
39132
|
componentId: "sc-ldufv0-3"
|
|
39133
39133
|
})(["width:100%;"]);
|
|
39134
39134
|
|
|
39135
|
+
/** 100 DC = $1 USD */
|
|
39136
|
+
var DC_TO_USD = 100;
|
|
39137
|
+
var DCRateStrip = function DCRateStrip() {
|
|
39138
|
+
return React__default.createElement(RateStrip, null, React__default.createElement(RateItem, null, React__default.createElement(RateNum, null, "1 DC"), React__default.createElement(RateSep, null, "="), React__default.createElement(RateVal, null, shared.DC_TO_GOLD_SWAP_RATE.toLocaleString(), " Gold")), React__default.createElement(RateDivider, null), React__default.createElement(RateItem, null, React__default.createElement(RateNum, null, DC_TO_USD, " DC"), React__default.createElement(RateSep, null, "="), React__default.createElement(RateVal, null, "1 USD")), React__default.createElement(RateDivider, null), React__default.createElement(RateItem, null, React__default.createElement(RateNum, null, "1 USD"), React__default.createElement(RateSep, null, "="), React__default.createElement(RateVal, null, (DC_TO_USD * shared.DC_TO_GOLD_SWAP_RATE / 1000).toFixed(0), "K Gold")));
|
|
39139
|
+
};
|
|
39140
|
+
var RateStrip = /*#__PURE__*/styled__default.div.withConfig({
|
|
39141
|
+
displayName: "DCRateStrip__RateStrip",
|
|
39142
|
+
componentId: "sc-1ltnva-0"
|
|
39143
|
+
})(["display:flex;align-items:center;border-top:1px solid rgba(245,158,11,0.1);padding-top:8px;"]);
|
|
39144
|
+
var RateItem = /*#__PURE__*/styled__default.div.withConfig({
|
|
39145
|
+
displayName: "DCRateStrip__RateItem",
|
|
39146
|
+
componentId: "sc-1ltnva-1"
|
|
39147
|
+
})(["display:flex;align-items:center;gap:5px;flex:1;justify-content:center;"]);
|
|
39148
|
+
var RateDivider = /*#__PURE__*/styled__default.div.withConfig({
|
|
39149
|
+
displayName: "DCRateStrip__RateDivider",
|
|
39150
|
+
componentId: "sc-1ltnva-2"
|
|
39151
|
+
})(["width:1px;height:12px;background:rgba(245,158,11,0.2);"]);
|
|
39152
|
+
var RateNum = /*#__PURE__*/styled__default.span.withConfig({
|
|
39153
|
+
displayName: "DCRateStrip__RateNum",
|
|
39154
|
+
componentId: "sc-1ltnva-3"
|
|
39155
|
+
})(["font-family:'Press Start 2P',cursive !important;font-size:6px !important;color:rgba(255,255,255,0.5) !important;"]);
|
|
39156
|
+
var RateSep = /*#__PURE__*/styled__default.span.withConfig({
|
|
39157
|
+
displayName: "DCRateStrip__RateSep",
|
|
39158
|
+
componentId: "sc-1ltnva-4"
|
|
39159
|
+
})(["font-family:'Press Start 2P',cursive !important;font-size:6px !important;color:rgba(255,255,255,0.2) !important;"]);
|
|
39160
|
+
var RateVal = /*#__PURE__*/styled__default.span.withConfig({
|
|
39161
|
+
displayName: "DCRateStrip__RateVal",
|
|
39162
|
+
componentId: "sc-1ltnva-5"
|
|
39163
|
+
})(["font-family:'Press Start 2P',cursive !important;font-size:6px !important;color:rgba(254,240,138,0.6) !important;"]);
|
|
39164
|
+
|
|
39135
39165
|
var Pagination = function Pagination(_ref) {
|
|
39136
39166
|
var currentPage = _ref.currentPage,
|
|
39137
39167
|
totalPages = _ref.totalPages,
|
|
@@ -39706,8 +39736,7 @@ var DropdownItem = /*#__PURE__*/styled__default.li.withConfig({
|
|
|
39706
39736
|
componentId: "sc-k1vvb1-9"
|
|
39707
39737
|
})(["padding:6px 8px;font-size:11px;font-family:'Press Start 2P',cursive;color:", ";cursor:pointer;&:hover{background:rgba(245,158,11,0.3);}"], uiColors.white);
|
|
39708
39738
|
|
|
39709
|
-
var
|
|
39710
|
-
var DC_TO_USD = 100;
|
|
39739
|
+
var DC_TO_USD$1 = 100;
|
|
39711
39740
|
var DCWalletContent = function DCWalletContent(_ref) {
|
|
39712
39741
|
var _historyData$transact, _historyData$totalPag, _historyData$currentP;
|
|
39713
39742
|
var dcBalance = _ref.dcBalance,
|
|
@@ -39724,8 +39753,8 @@ var DCWalletContent = function DCWalletContent(_ref) {
|
|
|
39724
39753
|
onBuyDC = _ref.onBuyDC,
|
|
39725
39754
|
onSearchCharacter = _ref.onSearchCharacter,
|
|
39726
39755
|
searchResults = _ref.searchResults;
|
|
39727
|
-
var usdValue = (dcBalance / DC_TO_USD).toFixed(2);
|
|
39728
|
-
var goldValue = (dcBalance *
|
|
39756
|
+
var usdValue = (dcBalance / DC_TO_USD$1).toFixed(2);
|
|
39757
|
+
var goldValue = (dcBalance * shared.DC_TO_GOLD_SWAP_RATE).toLocaleString();
|
|
39729
39758
|
var tabs = [{
|
|
39730
39759
|
id: 'transfer',
|
|
39731
39760
|
title: 'Transfer',
|
|
@@ -39757,7 +39786,7 @@ var DCWalletContent = function DCWalletContent(_ref) {
|
|
|
39757
39786
|
role: "button",
|
|
39758
39787
|
tabIndex: 0,
|
|
39759
39788
|
title: "Buy Definya Coins"
|
|
39760
|
-
}, React__default.createElement(fa.FaShoppingCart, null), React__default.createElement(BuyButtonLabel, null, "Buy DC"))), React__default.createElement(
|
|
39789
|
+
}, React__default.createElement(fa.FaShoppingCart, null), React__default.createElement(BuyButtonLabel, null, "Buy DC"))), React__default.createElement(DCRateStrip, null)), React__default.createElement(TabsWrapper, null, React__default.createElement(InternalTabs, {
|
|
39761
39790
|
tabs: tabs,
|
|
39762
39791
|
onTabChange: function onTabChange(tabId) {
|
|
39763
39792
|
if (tabId === 'history') onRequestHistory(1);
|
|
@@ -39809,33 +39838,9 @@ var BuyButtonLabel = /*#__PURE__*/styled__default.span.withConfig({
|
|
|
39809
39838
|
displayName: "DCWalletContent__BuyButtonLabel",
|
|
39810
39839
|
componentId: "sc-1hrivmk-9"
|
|
39811
39840
|
})(["font-family:'Press Start 2P',cursive !important;font-size:8px !important;color:#000 !important;white-space:nowrap !important;text-shadow:none !important;"]);
|
|
39812
|
-
var RateStrip = /*#__PURE__*/styled__default.div.withConfig({
|
|
39813
|
-
displayName: "DCWalletContent__RateStrip",
|
|
39814
|
-
componentId: "sc-1hrivmk-10"
|
|
39815
|
-
})(["display:flex;align-items:center;border-top:1px solid rgba(245,158,11,0.1);padding-top:8px;"]);
|
|
39816
|
-
var RateItem = /*#__PURE__*/styled__default.div.withConfig({
|
|
39817
|
-
displayName: "DCWalletContent__RateItem",
|
|
39818
|
-
componentId: "sc-1hrivmk-11"
|
|
39819
|
-
})(["display:flex;align-items:center;gap:5px;flex:1;justify-content:center;"]);
|
|
39820
|
-
var RateDivider = /*#__PURE__*/styled__default.div.withConfig({
|
|
39821
|
-
displayName: "DCWalletContent__RateDivider",
|
|
39822
|
-
componentId: "sc-1hrivmk-12"
|
|
39823
|
-
})(["width:1px;height:12px;background:rgba(245,158,11,0.2);"]);
|
|
39824
|
-
var RateNum = /*#__PURE__*/styled__default.span.withConfig({
|
|
39825
|
-
displayName: "DCWalletContent__RateNum",
|
|
39826
|
-
componentId: "sc-1hrivmk-13"
|
|
39827
|
-
})(["font-family:'Press Start 2P',cursive !important;font-size:6px !important;color:rgba(255,255,255,0.5) !important;"]);
|
|
39828
|
-
var RateSep = /*#__PURE__*/styled__default.span.withConfig({
|
|
39829
|
-
displayName: "DCWalletContent__RateSep",
|
|
39830
|
-
componentId: "sc-1hrivmk-14"
|
|
39831
|
-
})(["font-family:'Press Start 2P',cursive !important;font-size:6px !important;color:rgba(255,255,255,0.2) !important;"]);
|
|
39832
|
-
var RateVal = /*#__PURE__*/styled__default.span.withConfig({
|
|
39833
|
-
displayName: "DCWalletContent__RateVal",
|
|
39834
|
-
componentId: "sc-1hrivmk-15"
|
|
39835
|
-
})(["font-family:'Press Start 2P',cursive !important;font-size:6px !important;color:rgba(254,240,138,0.6) !important;"]);
|
|
39836
39841
|
var TabsWrapper = /*#__PURE__*/styled__default.div.withConfig({
|
|
39837
39842
|
displayName: "DCWalletContent__TabsWrapper",
|
|
39838
|
-
componentId: "sc-1hrivmk-
|
|
39843
|
+
componentId: "sc-1hrivmk-10"
|
|
39839
39844
|
})(["padding:0 2.5%;"]);
|
|
39840
39845
|
|
|
39841
39846
|
var _excluded$3 = ["onClose"];
|
|
@@ -47177,6 +47182,8 @@ var CharacterMarketplacePanel = function CharacterMarketplacePanel(_ref) {
|
|
|
47177
47182
|
onCharacterBuy = _ref.onCharacterBuy,
|
|
47178
47183
|
atlasJSON = _ref.atlasJSON,
|
|
47179
47184
|
atlasIMG = _ref.atlasIMG,
|
|
47185
|
+
characterAtlasJSON = _ref.characterAtlasJSON,
|
|
47186
|
+
characterAtlasIMG = _ref.characterAtlasIMG,
|
|
47180
47187
|
enableHotkeys = _ref.enableHotkeys,
|
|
47181
47188
|
disableHotkeys = _ref.disableHotkeys,
|
|
47182
47189
|
_ref$nameFilter = _ref.nameFilter,
|
|
@@ -47222,13 +47229,10 @@ var CharacterMarketplacePanel = function CharacterMarketplacePanel(_ref) {
|
|
|
47222
47229
|
enableHotkeys == null ? void 0 : enableHotkeys();
|
|
47223
47230
|
}
|
|
47224
47231
|
};
|
|
47225
|
-
var getListingPrice = function getListingPrice(listing) {
|
|
47226
|
-
return listing.price.toLocaleString();
|
|
47227
|
-
};
|
|
47228
47232
|
var renderCharacterSprite = function renderCharacterSprite(snapshot) {
|
|
47229
47233
|
return React__default.createElement(SpriteFromAtlas, {
|
|
47230
|
-
atlasIMG:
|
|
47231
|
-
atlasJSON:
|
|
47234
|
+
atlasIMG: characterAtlasIMG,
|
|
47235
|
+
atlasJSON: characterAtlasJSON,
|
|
47232
47236
|
spriteKey: snapshot.textureKey + "/down/standing/0.png",
|
|
47233
47237
|
imgScale: 3,
|
|
47234
47238
|
height: 64,
|
|
@@ -47258,32 +47262,31 @@ var CharacterMarketplacePanel = function CharacterMarketplacePanel(_ref) {
|
|
|
47258
47262
|
width: 32,
|
|
47259
47263
|
height: 32
|
|
47260
47264
|
}), React__default.createElement(EmptyText, null, "No character listings found.")) : React__default.createElement(ListingsGrid, null, filteredListings.map(function (listing) {
|
|
47265
|
+
var _listing$characterSna2, _listing$characterSna3;
|
|
47261
47266
|
return React__default.createElement(CharacterListingCard, {
|
|
47262
47267
|
key: listing._id,
|
|
47263
47268
|
onClick: function onClick() {
|
|
47264
47269
|
return handleBuyClick(listing._id);
|
|
47265
47270
|
},
|
|
47266
47271
|
"$isBeingBought": listing.isBeingBought
|
|
47267
|
-
}, React__default.createElement(CharacterSprite, null, renderCharacterSprite(listing.characterSnapshot)), React__default.createElement(CharacterInfo, null, React__default.createElement(CharacterName$1, null, listing.characterSnapshot.name || 'Unknown'), React__default.createElement(CharacterMeta, null, "
|
|
47272
|
+
}, React__default.createElement(CharacterSprite, null, renderCharacterSprite(listing.characterSnapshot)), React__default.createElement(CharacterInfo, null, React__default.createElement(CharacterName$1, null, listing.characterSnapshot.name || 'Unknown'), React__default.createElement(CharacterMeta, null, "Lv.", listing.characterSnapshot.level, " \xB7 ", listing.characterSnapshot["class"]), React__default.createElement(CharacterDetails, null, listing.characterSnapshot.race, " \xB7 ", listing.characterSnapshot.faction), React__default.createElement(ModeBadge, {
|
|
47273
|
+
"$hardcore": ((_listing$characterSna2 = listing.characterSnapshot.mode) == null ? void 0 : _listing$characterSna2.toLowerCase()) === 'hardcore'
|
|
47274
|
+
}, listing.characterSnapshot.mode || 'Standard'), ((_listing$characterSna3 = listing.characterSnapshot.equipment) == null ? void 0 : _listing$characterSna3.length) > 0 && React__default.createElement(EquipmentRow, null, listing.characterSnapshot.equipment.slice(0, 3).map(function (eq, i) {
|
|
47275
|
+
return React__default.createElement(EquipBadge, {
|
|
47276
|
+
key: i,
|
|
47277
|
+
"$rarity": eq.rarity
|
|
47278
|
+
}, eq.rarity || 'Common');
|
|
47279
|
+
})), React__default.createElement(SellerInfo, null, "by ", listing.listedByCharacterName), React__default.createElement(ListingPrice, null, React__default.createElement(DCCoinWrapper$2, null, React__default.createElement(SpriteFromAtlas, {
|
|
47268
47280
|
atlasIMG: atlasIMG,
|
|
47269
47281
|
atlasJSON: atlasJSON,
|
|
47270
|
-
spriteKey: "others/
|
|
47282
|
+
spriteKey: "others/definya-coin.png",
|
|
47271
47283
|
imgScale: 1
|
|
47272
|
-
})),
|
|
47273
|
-
}))), totalCount > itemsPerPage && React__default.createElement(PagerFooter$1, null, React__default.createElement(Pagination
|
|
47274
|
-
|
|
47275
|
-
|
|
47276
|
-
|
|
47277
|
-
})
|
|
47278
|
-
return React__default.createElement(PageButton, {
|
|
47279
|
-
key: page,
|
|
47280
|
-
"$active": currentPage === page,
|
|
47281
|
-
type: "button",
|
|
47282
|
-
onClick: function onClick() {
|
|
47283
|
-
return onPageChange(page);
|
|
47284
|
-
}
|
|
47285
|
-
}, page);
|
|
47286
|
-
}))));
|
|
47284
|
+
})), shared.formatDCAmount(listing.price), " DC")), listing.isBeingBought && React__default.createElement(BeingBoughtBadge, null, "Pending"));
|
|
47285
|
+
}))), totalCount > itemsPerPage && React__default.createElement(PagerFooter$1, null, React__default.createElement(Pagination, {
|
|
47286
|
+
currentPage: currentPage,
|
|
47287
|
+
totalPages: Math.ceil(totalCount / itemsPerPage),
|
|
47288
|
+
onPageChange: onPageChange
|
|
47289
|
+
})));
|
|
47287
47290
|
};
|
|
47288
47291
|
var ToolbarRow$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
47289
47292
|
displayName: "CharacterMarketplacePanel__ToolbarRow",
|
|
@@ -47323,83 +47326,97 @@ var CharacterListingCard = /*#__PURE__*/styled__default.button.withConfig({
|
|
|
47323
47326
|
var CharacterSprite = /*#__PURE__*/styled__default.div.withConfig({
|
|
47324
47327
|
displayName: "CharacterMarketplacePanel__CharacterSprite",
|
|
47325
47328
|
componentId: "sc-1aiauep-5"
|
|
47326
|
-
})(["display:flex;align-items:center;justify-content:center;image-rendering:pixelated;"]);
|
|
47329
|
+
})(["display:flex;align-items:center;justify-content:center;image-rendering:pixelated;width:64px;height:64px;flex-shrink:0;"]);
|
|
47327
47330
|
var CharacterInfo = /*#__PURE__*/styled__default.div.withConfig({
|
|
47328
47331
|
displayName: "CharacterMarketplacePanel__CharacterInfo",
|
|
47329
47332
|
componentId: "sc-1aiauep-6"
|
|
47330
|
-
})(["display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center;"]);
|
|
47333
|
+
})(["display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center;width:100%;"]);
|
|
47331
47334
|
var CharacterName$1 = /*#__PURE__*/styled__default.span.withConfig({
|
|
47332
47335
|
displayName: "CharacterMarketplacePanel__CharacterName",
|
|
47333
47336
|
componentId: "sc-1aiauep-7"
|
|
47334
|
-
})(["font-family:'Press Start 2P',cursive;font-size:0.55rem;color:#f3f4f6;text-transform:uppercase;letter-spacing:0.5px;"]);
|
|
47337
|
+
})(["font-family:'Press Start 2P',cursive !important;font-size:0.55rem !important;color:#f3f4f6 !important;text-transform:uppercase;letter-spacing:0.5px;"]);
|
|
47335
47338
|
var CharacterMeta = /*#__PURE__*/styled__default.span.withConfig({
|
|
47336
47339
|
displayName: "CharacterMarketplacePanel__CharacterMeta",
|
|
47337
47340
|
componentId: "sc-1aiauep-8"
|
|
47338
|
-
})(["font-size:0.45rem;color:#888;text-transform:uppercase;letter-spacing:0.5px;"]);
|
|
47341
|
+
})(["font-family:'Press Start 2P',cursive !important;font-size:0.45rem !important;color:#888 !important;text-transform:uppercase;letter-spacing:0.5px;"]);
|
|
47342
|
+
var CharacterDetails = /*#__PURE__*/styled__default.span.withConfig({
|
|
47343
|
+
displayName: "CharacterMarketplacePanel__CharacterDetails",
|
|
47344
|
+
componentId: "sc-1aiauep-9"
|
|
47345
|
+
})(["font-family:'Press Start 2P',cursive !important;font-size:0.38rem !important;color:#9ca3af !important;text-transform:uppercase;letter-spacing:0.5px;"]);
|
|
47346
|
+
var RARITY_COLORS$1 = {
|
|
47347
|
+
legendary: '#f59e0b',
|
|
47348
|
+
epic: '#a855f7',
|
|
47349
|
+
rare: '#3b82f6',
|
|
47350
|
+
uncommon: '#22c55e',
|
|
47351
|
+
common: '#6b7280'
|
|
47352
|
+
};
|
|
47353
|
+
var ModeBadge = /*#__PURE__*/styled__default.span.withConfig({
|
|
47354
|
+
displayName: "CharacterMarketplacePanel__ModeBadge",
|
|
47355
|
+
componentId: "sc-1aiauep-10"
|
|
47356
|
+
})(["font-family:'Press Start 2P',cursive !important;font-size:0.32rem !important;color:", " !important;border:1px solid ", ";border-radius:3px;padding:1px 4px;text-transform:uppercase;letter-spacing:0.5px;"], function (_ref7) {
|
|
47357
|
+
var $hardcore = _ref7.$hardcore;
|
|
47358
|
+
return $hardcore ? '#ef4444' : '#6b7280';
|
|
47359
|
+
}, function (_ref8) {
|
|
47360
|
+
var $hardcore = _ref8.$hardcore;
|
|
47361
|
+
return $hardcore ? 'rgba(239,68,68,0.4)' : 'rgba(107,114,128,0.3)';
|
|
47362
|
+
});
|
|
47363
|
+
var EquipmentRow = /*#__PURE__*/styled__default.div.withConfig({
|
|
47364
|
+
displayName: "CharacterMarketplacePanel__EquipmentRow",
|
|
47365
|
+
componentId: "sc-1aiauep-11"
|
|
47366
|
+
})(["display:flex;flex-wrap:wrap;gap:3px;justify-content:center;"]);
|
|
47367
|
+
var EquipBadge = /*#__PURE__*/styled__default.span.withConfig({
|
|
47368
|
+
displayName: "CharacterMarketplacePanel__EquipBadge",
|
|
47369
|
+
componentId: "sc-1aiauep-12"
|
|
47370
|
+
})(["font-family:'Press Start 2P',cursive !important;font-size:0.3rem !important;color:", " !important;border:1px solid ", "44;border-radius:2px;padding:1px 3px;text-transform:uppercase;letter-spacing:0.3px;"], function (_ref9) {
|
|
47371
|
+
var _RARITY_COLORS$toLowe;
|
|
47372
|
+
var $rarity = _ref9.$rarity;
|
|
47373
|
+
return (_RARITY_COLORS$toLowe = RARITY_COLORS$1[($rarity != null ? $rarity : '').toLowerCase()]) != null ? _RARITY_COLORS$toLowe : RARITY_COLORS$1.common;
|
|
47374
|
+
}, function (_ref10) {
|
|
47375
|
+
var _RARITY_COLORS$toLowe2;
|
|
47376
|
+
var $rarity = _ref10.$rarity;
|
|
47377
|
+
return (_RARITY_COLORS$toLowe2 = RARITY_COLORS$1[($rarity != null ? $rarity : '').toLowerCase()]) != null ? _RARITY_COLORS$toLowe2 : RARITY_COLORS$1.common;
|
|
47378
|
+
});
|
|
47339
47379
|
var SellerInfo = /*#__PURE__*/styled__default.span.withConfig({
|
|
47340
47380
|
displayName: "CharacterMarketplacePanel__SellerInfo",
|
|
47341
|
-
componentId: "sc-1aiauep-
|
|
47342
|
-
})(["font-size:0.4rem;color:#666;text-transform:uppercase;letter-spacing:0.5px;"]);
|
|
47381
|
+
componentId: "sc-1aiauep-13"
|
|
47382
|
+
})(["font-family:'Press Start 2P',cursive !important;font-size:0.4rem !important;color:#666 !important;text-transform:uppercase;letter-spacing:0.5px;"]);
|
|
47343
47383
|
var ListingPrice = /*#__PURE__*/styled__default.div.withConfig({
|
|
47344
47384
|
displayName: "CharacterMarketplacePanel__ListingPrice",
|
|
47345
|
-
componentId: "sc-1aiauep-
|
|
47346
|
-
})(["display:flex;align-items:center;gap:
|
|
47347
|
-
var
|
|
47348
|
-
displayName: "
|
|
47349
|
-
componentId: "sc-1aiauep-
|
|
47350
|
-
})(["display:flex;align-items:center;justify-content:center;
|
|
47385
|
+
componentId: "sc-1aiauep-14"
|
|
47386
|
+
})(["display:flex;align-items:center;justify-content:center;gap:4px;font-family:'Press Start 2P',cursive !important;font-size:0.5rem !important;color:#fef08a !important;line-height:1;"]);
|
|
47387
|
+
var DCCoinWrapper$2 = /*#__PURE__*/styled__default.span.withConfig({
|
|
47388
|
+
displayName: "CharacterMarketplacePanel__DCCoinWrapper",
|
|
47389
|
+
componentId: "sc-1aiauep-15"
|
|
47390
|
+
})(["display:flex;align-items:center;justify-content:center;flex-shrink:0;line-height:0;"]);
|
|
47351
47391
|
var BeingBoughtBadge = /*#__PURE__*/styled__default.span.withConfig({
|
|
47352
47392
|
displayName: "CharacterMarketplacePanel__BeingBoughtBadge",
|
|
47353
|
-
componentId: "sc-1aiauep-
|
|
47354
|
-
})(["position:absolute;top:6px;right:6px;background:rgba(239,68,68,0.2);border:1px solid rgba(239,68,68,0.4);border-radius:4px;padding:2px 6px;font-size:0.35rem;color:#ef4444;text-transform:uppercase;letter-spacing:0.5px;"]);
|
|
47393
|
+
componentId: "sc-1aiauep-16"
|
|
47394
|
+
})(["position:absolute;top:6px;right:6px;background:rgba(239,68,68,0.2);border:1px solid rgba(239,68,68,0.4);border-radius:4px;padding:2px 6px;font-family:'Press Start 2P',cursive !important;font-size:0.35rem !important;color:#ef4444 !important;text-transform:uppercase;letter-spacing:0.5px;"]);
|
|
47355
47395
|
var PagerFooter$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
47356
47396
|
displayName: "CharacterMarketplacePanel__PagerFooter",
|
|
47357
|
-
componentId: "sc-1aiauep-
|
|
47397
|
+
componentId: "sc-1aiauep-17"
|
|
47358
47398
|
})(["display:flex;justify-content:center;align-items:center;padding:8px 0 4px;min-height:36px;width:95%;margin:0 auto;"]);
|
|
47359
|
-
var Pagination$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
47360
|
-
displayName: "CharacterMarketplacePanel__Pagination",
|
|
47361
|
-
componentId: "sc-1aiauep-14"
|
|
47362
|
-
})(["display:flex;gap:6px;"]);
|
|
47363
|
-
var PageButton = /*#__PURE__*/styled__default.button.withConfig({
|
|
47364
|
-
displayName: "CharacterMarketplacePanel__PageButton",
|
|
47365
|
-
componentId: "sc-1aiauep-15"
|
|
47366
|
-
})(["padding:6px 10px;font-family:'Press Start 2P',cursive;font-size:0.5rem;border-radius:4px;border:1px solid ", ";background:", ";color:", ";cursor:pointer;transition:border-color 0.15s,background 0.15s,color 0.15s;&:hover{border-color:", ";color:", ";}"], function (_ref7) {
|
|
47367
|
-
var $active = _ref7.$active;
|
|
47368
|
-
return $active ? '#f59e0b' : 'rgba(255,255,255,0.12)';
|
|
47369
|
-
}, function (_ref8) {
|
|
47370
|
-
var $active = _ref8.$active;
|
|
47371
|
-
return $active ? 'rgba(245,158,11,0.15)' : 'rgba(0,0,0,0.3)';
|
|
47372
|
-
}, function (_ref9) {
|
|
47373
|
-
var $active = _ref9.$active;
|
|
47374
|
-
return $active ? '#f59e0b' : '#777';
|
|
47375
|
-
}, function (_ref10) {
|
|
47376
|
-
var $active = _ref10.$active;
|
|
47377
|
-
return $active ? '#f59e0b' : 'rgba(255,255,255,0.3)';
|
|
47378
|
-
}, function (_ref11) {
|
|
47379
|
-
var $active = _ref11.$active;
|
|
47380
|
-
return $active ? '#f59e0b' : '#bbb';
|
|
47381
|
-
});
|
|
47382
47399
|
var LoadingState$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
47383
47400
|
displayName: "CharacterMarketplacePanel__LoadingState",
|
|
47384
|
-
componentId: "sc-1aiauep-
|
|
47401
|
+
componentId: "sc-1aiauep-18"
|
|
47385
47402
|
})(["display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;height:100%;min-height:160px;"]);
|
|
47386
47403
|
var spin$1 = /*#__PURE__*/styled.keyframes(["to{transform:rotate(360deg);}"]);
|
|
47387
47404
|
var Spinner$3 = /*#__PURE__*/styled__default.div.withConfig({
|
|
47388
47405
|
displayName: "CharacterMarketplacePanel__Spinner",
|
|
47389
|
-
componentId: "sc-1aiauep-
|
|
47406
|
+
componentId: "sc-1aiauep-19"
|
|
47390
47407
|
})(["width:28px;height:28px;border:3px solid rgba(245,158,11,0.2);border-top-color:#f59e0b;border-radius:50%;animation:", " 0.7s linear infinite;"], spin$1);
|
|
47391
47408
|
var LoadingText$2 = /*#__PURE__*/styled__default.span.withConfig({
|
|
47392
47409
|
displayName: "CharacterMarketplacePanel__LoadingText",
|
|
47393
|
-
componentId: "sc-1aiauep-
|
|
47394
|
-
})(["font-size:0.48rem;color:#8a8a8a;text-transform:uppercase;letter-spacing:1px;"]);
|
|
47410
|
+
componentId: "sc-1aiauep-20"
|
|
47411
|
+
})(["font-family:'Press Start 2P',cursive !important;font-size:0.48rem !important;color:#8a8a8a !important;text-transform:uppercase;letter-spacing:1px;"]);
|
|
47395
47412
|
var EmptyState$5 = /*#__PURE__*/styled__default.div.withConfig({
|
|
47396
47413
|
displayName: "CharacterMarketplacePanel__EmptyState",
|
|
47397
|
-
componentId: "sc-1aiauep-
|
|
47414
|
+
componentId: "sc-1aiauep-21"
|
|
47398
47415
|
})(["display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;height:100%;min-height:200px;"]);
|
|
47399
47416
|
var EmptyText = /*#__PURE__*/styled__default.span.withConfig({
|
|
47400
47417
|
displayName: "CharacterMarketplacePanel__EmptyText",
|
|
47401
|
-
componentId: "sc-1aiauep-
|
|
47402
|
-
})(["font-size:0.48rem;color:#71717a;text-transform:uppercase;letter-spacing:1px;"]);
|
|
47418
|
+
componentId: "sc-1aiauep-22"
|
|
47419
|
+
})(["font-family:'Press Start 2P',cursive !important;font-size:0.48rem !important;color:#71717a !important;text-transform:uppercase;letter-spacing:1px;"]);
|
|
47403
47420
|
|
|
47404
47421
|
var MyCharacterListingsPanel = function MyCharacterListingsPanel(_ref) {
|
|
47405
47422
|
var myCharacterListings = _ref.myCharacterListings,
|
|
@@ -47410,6 +47427,8 @@ var MyCharacterListingsPanel = function MyCharacterListingsPanel(_ref) {
|
|
|
47410
47427
|
onCharacterDelist = _ref.onCharacterDelist,
|
|
47411
47428
|
atlasJSON = _ref.atlasJSON,
|
|
47412
47429
|
atlasIMG = _ref.atlasIMG,
|
|
47430
|
+
characterAtlasJSON = _ref.characterAtlasJSON,
|
|
47431
|
+
characterAtlasIMG = _ref.characterAtlasIMG,
|
|
47413
47432
|
enableHotkeys = _ref.enableHotkeys;
|
|
47414
47433
|
var _useState = React.useState(null),
|
|
47415
47434
|
delistingListingId = _useState[0],
|
|
@@ -47429,9 +47448,6 @@ var MyCharacterListingsPanel = function MyCharacterListingsPanel(_ref) {
|
|
|
47429
47448
|
enableHotkeys == null ? void 0 : enableHotkeys();
|
|
47430
47449
|
}
|
|
47431
47450
|
};
|
|
47432
|
-
var getListingPrice = function getListingPrice(listing) {
|
|
47433
|
-
return listing.price.toLocaleString();
|
|
47434
|
-
};
|
|
47435
47451
|
var getFormattedDate = function getFormattedDate(date) {
|
|
47436
47452
|
return new Date(date).toLocaleDateString();
|
|
47437
47453
|
};
|
|
@@ -47452,18 +47468,18 @@ var MyCharacterListingsPanel = function MyCharacterListingsPanel(_ref) {
|
|
|
47452
47468
|
return React__default.createElement(CharacterListingCard$1, {
|
|
47453
47469
|
key: listing._id
|
|
47454
47470
|
}, React__default.createElement(CharacterSprite$1, null, React__default.createElement(SpriteFromAtlas, {
|
|
47455
|
-
atlasIMG:
|
|
47456
|
-
atlasJSON:
|
|
47471
|
+
atlasIMG: characterAtlasIMG,
|
|
47472
|
+
atlasJSON: characterAtlasJSON,
|
|
47457
47473
|
spriteKey: listing.characterSnapshot.textureKey + "/down/standing/0.png",
|
|
47458
47474
|
imgScale: 3,
|
|
47459
47475
|
height: 64,
|
|
47460
47476
|
width: 64
|
|
47461
|
-
})), React__default.createElement(CharacterInfo$1, null, React__default.createElement(CharacterName$2, null, listing.characterSnapshot.name || 'Unknown'), React__default.createElement(CharacterMeta$1, null, "Level ", listing.characterSnapshot.level), React__default.createElement(ListingPrice$1, null, React__default.createElement(
|
|
47477
|
+
})), React__default.createElement(CharacterInfo$1, null, React__default.createElement(CharacterName$2, null, listing.characterSnapshot.name || 'Unknown'), React__default.createElement(CharacterMeta$1, null, "Level ", listing.characterSnapshot.level), React__default.createElement(ListingPrice$1, null, React__default.createElement(DCCoinWrapper$3, null, React__default.createElement(SpriteFromAtlas, {
|
|
47462
47478
|
atlasIMG: atlasIMG,
|
|
47463
47479
|
atlasJSON: atlasJSON,
|
|
47464
|
-
spriteKey: "others/
|
|
47480
|
+
spriteKey: "others/definya-coin.png",
|
|
47465
47481
|
imgScale: 1
|
|
47466
|
-
})),
|
|
47482
|
+
})), shared.formatDCAmount(listing.price), " DC"), React__default.createElement(ListingMeta, null, "Listed ", getFormattedDate(listing.createdAt)), listing.isBeingBought && React__default.createElement(ListingStatus, {
|
|
47467
47483
|
"$status": "pending"
|
|
47468
47484
|
}, "Sale Pending")), React__default.createElement(ActionButton, {
|
|
47469
47485
|
icon: React__default.createElement(Delete.Delete, {
|
|
@@ -47477,12 +47493,12 @@ var MyCharacterListingsPanel = function MyCharacterListingsPanel(_ref) {
|
|
|
47477
47493
|
iconColor: "#ef4444",
|
|
47478
47494
|
disabled: listing.isBeingBought
|
|
47479
47495
|
}));
|
|
47480
|
-
}))), totalCount > itemsPerPage && React__default.createElement(PagerFooter$2, null, React__default.createElement(Pagination$
|
|
47496
|
+
}))), totalCount > itemsPerPage && React__default.createElement(PagerFooter$2, null, React__default.createElement(Pagination$1, null, Array.from({
|
|
47481
47497
|
length: Math.ceil(totalCount / itemsPerPage)
|
|
47482
47498
|
}, function (_, i) {
|
|
47483
47499
|
return i + 1;
|
|
47484
47500
|
}).map(function (page) {
|
|
47485
|
-
return React__default.createElement(PageButton
|
|
47501
|
+
return React__default.createElement(PageButton, {
|
|
47486
47502
|
key: page,
|
|
47487
47503
|
"$active": currentPage === page,
|
|
47488
47504
|
type: "button",
|
|
@@ -47524,10 +47540,10 @@ var ListingPrice$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
47524
47540
|
displayName: "MyCharacterListingsPanel__ListingPrice",
|
|
47525
47541
|
componentId: "sc-su21a6-7"
|
|
47526
47542
|
})(["display:flex;align-items:center;gap:6px;font-family:'Press Start 2P',cursive;font-size:0.5rem;color:#fef08a;"]);
|
|
47527
|
-
var
|
|
47528
|
-
displayName: "
|
|
47543
|
+
var DCCoinWrapper$3 = /*#__PURE__*/styled__default.span.withConfig({
|
|
47544
|
+
displayName: "MyCharacterListingsPanel__DCCoinWrapper",
|
|
47529
47545
|
componentId: "sc-su21a6-8"
|
|
47530
|
-
})(["display:flex;align-items:center;justify-content:center;
|
|
47546
|
+
})(["display:flex;align-items:center;justify-content:center;flex-shrink:0;"]);
|
|
47531
47547
|
var ListingMeta = /*#__PURE__*/styled__default.span.withConfig({
|
|
47532
47548
|
displayName: "MyCharacterListingsPanel__ListingMeta",
|
|
47533
47549
|
componentId: "sc-su21a6-9"
|
|
@@ -47553,11 +47569,11 @@ var PagerFooter$2 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
47553
47569
|
displayName: "MyCharacterListingsPanel__PagerFooter",
|
|
47554
47570
|
componentId: "sc-su21a6-12"
|
|
47555
47571
|
})(["display:flex;justify-content:center;align-items:center;padding:8px 0 4px;min-height:36px;width:95%;margin:0 auto;"]);
|
|
47556
|
-
var Pagination$
|
|
47572
|
+
var Pagination$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
47557
47573
|
displayName: "MyCharacterListingsPanel__Pagination",
|
|
47558
47574
|
componentId: "sc-su21a6-13"
|
|
47559
47575
|
})(["display:flex;gap:6px;"]);
|
|
47560
|
-
var PageButton
|
|
47576
|
+
var PageButton = /*#__PURE__*/styled__default.button.withConfig({
|
|
47561
47577
|
displayName: "MyCharacterListingsPanel__PageButton",
|
|
47562
47578
|
componentId: "sc-su21a6-14"
|
|
47563
47579
|
})(["padding:6px 10px;font-family:'Press Start 2P',cursive;font-size:0.5rem;border-radius:4px;border:1px solid ", ";background:", ";color:", ";cursor:pointer;transition:border-color 0.15s,background 0.15s,color 0.15s;&:hover{border-color:", ";color:", ";}"], function (_ref5) {
|
|
@@ -47589,207 +47605,286 @@ var EmptySubtext = /*#__PURE__*/styled__default.span.withConfig({
|
|
|
47589
47605
|
componentId: "sc-su21a6-17"
|
|
47590
47606
|
})(["font-size:0.45rem;color:#52525b;text-transform:none;letter-spacing:0.5px;text-align:center;max-width:280px;"]);
|
|
47591
47607
|
|
|
47592
|
-
var
|
|
47593
|
-
var
|
|
47594
|
-
|
|
47595
|
-
|
|
47596
|
-
onCharacterList = _ref.onCharacterList,
|
|
47608
|
+
var CharacterListingModal = function CharacterListingModal(_ref) {
|
|
47609
|
+
var isOpen = _ref.isOpen,
|
|
47610
|
+
onClose = _ref.onClose,
|
|
47611
|
+
accountCharacters = _ref.accountCharacters,
|
|
47597
47612
|
atlasJSON = _ref.atlasJSON,
|
|
47598
47613
|
atlasIMG = _ref.atlasIMG,
|
|
47614
|
+
characterAtlasJSON = _ref.characterAtlasJSON,
|
|
47615
|
+
characterAtlasIMG = _ref.characterAtlasIMG,
|
|
47616
|
+
onCharacterList = _ref.onCharacterList,
|
|
47599
47617
|
enableHotkeys = _ref.enableHotkeys,
|
|
47600
47618
|
disableHotkeys = _ref.disableHotkeys;
|
|
47601
|
-
var _useState = React.useState(
|
|
47602
|
-
|
|
47603
|
-
|
|
47604
|
-
var _useState2 = React.useState(
|
|
47605
|
-
|
|
47606
|
-
|
|
47607
|
-
var
|
|
47608
|
-
|
|
47619
|
+
var _useState = React.useState(null),
|
|
47620
|
+
selectedId = _useState[0],
|
|
47621
|
+
setSelectedId = _useState[1];
|
|
47622
|
+
var _useState2 = React.useState(''),
|
|
47623
|
+
price = _useState2[0],
|
|
47624
|
+
setPrice = _useState2[1];
|
|
47625
|
+
var _useState3 = React.useState(false),
|
|
47626
|
+
isConfirming = _useState3[0],
|
|
47627
|
+
setIsConfirming = _useState3[1];
|
|
47628
|
+
if (!isOpen) return null;
|
|
47629
|
+
var eligibleCharacters = accountCharacters.filter(function (c) {
|
|
47630
|
+
return !c.isListedForSale && !c.tradedAt;
|
|
47609
47631
|
});
|
|
47632
|
+
var canList = !!selectedId && Number(price) > 0;
|
|
47633
|
+
var handleClose = function handleClose() {
|
|
47634
|
+
setSelectedId(null);
|
|
47635
|
+
setPrice('');
|
|
47636
|
+
enableHotkeys == null ? void 0 : enableHotkeys();
|
|
47637
|
+
onClose();
|
|
47638
|
+
};
|
|
47610
47639
|
var handleListClick = function handleListClick() {
|
|
47611
|
-
if (
|
|
47612
|
-
setIsCreatingOffer(true);
|
|
47613
|
-
}
|
|
47640
|
+
if (canList) setIsConfirming(true);
|
|
47614
47641
|
};
|
|
47615
|
-
var
|
|
47616
|
-
if (
|
|
47617
|
-
|
|
47618
|
-
|
|
47619
|
-
|
|
47620
|
-
|
|
47621
|
-
|
|
47622
|
-
|
|
47642
|
+
var handleConfirm = function handleConfirm() {
|
|
47643
|
+
if (!selectedId || !canList) return;
|
|
47644
|
+
onCharacterList(selectedId, Number(price));
|
|
47645
|
+
setSelectedId(null);
|
|
47646
|
+
setPrice('');
|
|
47647
|
+
setIsConfirming(false);
|
|
47648
|
+
enableHotkeys == null ? void 0 : enableHotkeys();
|
|
47649
|
+
onClose();
|
|
47623
47650
|
};
|
|
47624
|
-
var
|
|
47625
|
-
|
|
47626
|
-
|
|
47651
|
+
var stopPropagation = React.useCallback(function (e) {
|
|
47652
|
+
e.stopPropagation();
|
|
47653
|
+
}, []);
|
|
47654
|
+
var getLevel = function getLevel(c) {
|
|
47655
|
+
var _c$skills;
|
|
47656
|
+
return ((_c$skills = c.skills) == null ? void 0 : _c$skills.level) || 1;
|
|
47627
47657
|
};
|
|
47628
|
-
return React__default.createElement(
|
|
47658
|
+
return React__default.createElement(ModalPortal, null, isConfirming && React__default.createElement(ConfirmModal, {
|
|
47659
|
+
onConfirm: handleConfirm,
|
|
47629
47660
|
onClose: function onClose() {
|
|
47630
|
-
|
|
47661
|
+
setIsConfirming(false);
|
|
47631
47662
|
enableHotkeys == null ? void 0 : enableHotkeys();
|
|
47632
47663
|
},
|
|
47633
|
-
onConfirm: handleListConfirm,
|
|
47634
47664
|
message: "Are you sure you want to list this character for sale?"
|
|
47635
|
-
}), React__default.createElement(
|
|
47636
|
-
|
|
47637
|
-
|
|
47638
|
-
|
|
47639
|
-
|
|
47640
|
-
|
|
47641
|
-
|
|
47642
|
-
|
|
47665
|
+
}), React__default.createElement(Overlay$7, {
|
|
47666
|
+
onPointerDown: handleClose
|
|
47667
|
+
}), React__default.createElement(ModalContainer$5, null, React__default.createElement(ModalContent$5, {
|
|
47668
|
+
onClick: stopPropagation,
|
|
47669
|
+
onTouchStart: stopPropagation,
|
|
47670
|
+
onPointerDown: stopPropagation
|
|
47671
|
+
}, React__default.createElement(Header$b, null, React__default.createElement(Title$c, null, "List Character for Sale"), React__default.createElement(CloseButton$d, {
|
|
47672
|
+
onPointerDown: handleClose,
|
|
47673
|
+
"aria-label": "Close",
|
|
47674
|
+
type: "button"
|
|
47675
|
+
}, React__default.createElement(fa.FaTimes, null))), React__default.createElement(CharacterList$1, null, eligibleCharacters.length === 0 ? React__default.createElement(EmptyState$7, null, "No eligible characters to list.") : eligibleCharacters.map(function (character) {
|
|
47676
|
+
var isSelected = selectedId === character._id;
|
|
47677
|
+
return React__default.createElement(CharacterRow, {
|
|
47678
|
+
key: character._id,
|
|
47679
|
+
"$selected": isSelected,
|
|
47680
|
+
onPointerDown: function onPointerDown() {
|
|
47681
|
+
return setSelectedId(character._id);
|
|
47682
|
+
},
|
|
47683
|
+
role: "radio",
|
|
47684
|
+
"aria-checked": isSelected,
|
|
47685
|
+
tabIndex: 0,
|
|
47686
|
+
onKeyDown: function onKeyDown(e) {
|
|
47687
|
+
if (e.key === 'Enter' || e.key === ' ') {
|
|
47688
|
+
e.preventDefault();
|
|
47689
|
+
setSelectedId(character._id);
|
|
47690
|
+
}
|
|
47691
|
+
}
|
|
47692
|
+
}, React__default.createElement(RadioCircle$1, {
|
|
47693
|
+
"$selected": isSelected
|
|
47694
|
+
}), React__default.createElement(SpriteWrapper$3, null, React__default.createElement(SpriteFromAtlas, {
|
|
47695
|
+
atlasIMG: characterAtlasIMG,
|
|
47696
|
+
atlasJSON: characterAtlasJSON,
|
|
47697
|
+
spriteKey: character.textureKey + "/down/standing/0.png",
|
|
47698
|
+
imgScale: 2,
|
|
47699
|
+
height: 40,
|
|
47700
|
+
width: 40
|
|
47701
|
+
})), React__default.createElement(CharacterInfo$2, null, React__default.createElement(CharacterName$3, null, character.name || 'Unknown'), React__default.createElement(CharacterMeta$2, null, "Level ", getLevel(character))));
|
|
47702
|
+
})), React__default.createElement(PriceSection$1, null, React__default.createElement(PriceLabel, null, "Set Price (DC)"), React__default.createElement(PriceRow$1, null, React__default.createElement(Input, {
|
|
47643
47703
|
onChange: function onChange(e) {
|
|
47644
47704
|
return setPrice(e.target.value);
|
|
47645
47705
|
},
|
|
47646
47706
|
value: price,
|
|
47647
47707
|
placeholder: "Amount...",
|
|
47648
47708
|
type: "number",
|
|
47649
|
-
disabled:
|
|
47650
|
-
onBlur: enableHotkeys,
|
|
47709
|
+
disabled: eligibleCharacters.length === 0,
|
|
47651
47710
|
onFocus: disableHotkeys,
|
|
47711
|
+
onBlur: enableHotkeys,
|
|
47652
47712
|
className: "price-input"
|
|
47653
|
-
}), React__default.createElement(
|
|
47713
|
+
}), React__default.createElement(ListBtn, {
|
|
47654
47714
|
icon: React__default.createElement(ShoppingBag.ShoppingBag, {
|
|
47655
47715
|
width: 18,
|
|
47656
47716
|
height: 18
|
|
47657
47717
|
}),
|
|
47658
47718
|
label: "List",
|
|
47659
|
-
disabled: !
|
|
47719
|
+
disabled: !canList,
|
|
47660
47720
|
onClick: handleListClick
|
|
47661
|
-
}))
|
|
47662
|
-
|
|
47663
|
-
|
|
47664
|
-
|
|
47665
|
-
|
|
47666
|
-
|
|
47667
|
-
},
|
|
47668
|
-
type: "button"
|
|
47669
|
-
}, React__default.createElement(MiniSprite, null, React__default.createElement(SpriteFromAtlas, {
|
|
47670
|
-
atlasIMG: atlasIMG,
|
|
47671
|
-
atlasJSON: atlasJSON,
|
|
47672
|
-
spriteKey: character.textureKey + "/down/standing/0.png",
|
|
47673
|
-
imgScale: 2,
|
|
47674
|
-
height: 32,
|
|
47675
|
-
width: 32
|
|
47676
|
-
})), React__default.createElement(MiniCharacterInfo, null, React__default.createElement(MiniCharacterName, null, character.name), React__default.createElement(MiniCharacterMeta, null, "Lvl ", getCharacterLevel(character))));
|
|
47677
|
-
}))), eligibleCharacters.length === 0 && React__default.createElement(EmptyState$7, null, React__default.createElement(EmptyText$2, null, "No eligible characters to list."))));
|
|
47721
|
+
})), price && Number(price) > 0 && React__default.createElement(PricePreview, null, React__default.createElement(DCCoinWrapper$4, null, React__default.createElement(SpriteFromAtlas, {
|
|
47722
|
+
atlasIMG: atlasIMG,
|
|
47723
|
+
atlasJSON: atlasJSON,
|
|
47724
|
+
spriteKey: "others/definya-coin.png",
|
|
47725
|
+
imgScale: 1
|
|
47726
|
+
})), React__default.createElement(PricePreviewAmount, null, Number(price).toLocaleString(), " DC")), React__default.createElement(DCRateStrip, null)))));
|
|
47678
47727
|
};
|
|
47679
|
-
var
|
|
47680
|
-
|
|
47681
|
-
|
|
47682
|
-
|
|
47683
|
-
|
|
47684
|
-
|
|
47685
|
-
|
|
47686
|
-
|
|
47687
|
-
|
|
47688
|
-
|
|
47689
|
-
|
|
47690
|
-
|
|
47691
|
-
|
|
47692
|
-
|
|
47693
|
-
|
|
47694
|
-
|
|
47695
|
-
|
|
47696
|
-
|
|
47697
|
-
|
|
47698
|
-
|
|
47699
|
-
|
|
47700
|
-
|
|
47701
|
-
|
|
47702
|
-
|
|
47703
|
-
|
|
47704
|
-
|
|
47705
|
-
|
|
47706
|
-
|
|
47707
|
-
|
|
47708
|
-
|
|
47709
|
-
|
|
47710
|
-
|
|
47711
|
-
|
|
47712
|
-
|
|
47713
|
-
|
|
47714
|
-
}
|
|
47715
|
-
var
|
|
47716
|
-
|
|
47717
|
-
|
|
47728
|
+
var scaleIn$2 = /*#__PURE__*/styled.keyframes(["from{transform:scale(0.85);opacity:0;}to{transform:scale(1);opacity:1;}"]);
|
|
47729
|
+
var Overlay$7 = /*#__PURE__*/styled__default.div.withConfig({
|
|
47730
|
+
displayName: "CharacterListingModal__Overlay",
|
|
47731
|
+
componentId: "sc-1uxkx35-0"
|
|
47732
|
+
})(["position:fixed;inset:0;background:rgba(0,0,0,0.7);z-index:1000;"]);
|
|
47733
|
+
var ModalContainer$5 = /*#__PURE__*/styled__default.div.withConfig({
|
|
47734
|
+
displayName: "CharacterListingModal__ModalContainer",
|
|
47735
|
+
componentId: "sc-1uxkx35-1"
|
|
47736
|
+
})(["position:fixed;inset:0;display:flex;align-items:center;justify-content:center;z-index:1001;pointer-events:none;"]);
|
|
47737
|
+
var ModalContent$5 = /*#__PURE__*/styled__default.div.withConfig({
|
|
47738
|
+
displayName: "CharacterListingModal__ModalContent",
|
|
47739
|
+
componentId: "sc-1uxkx35-2"
|
|
47740
|
+
})(["background:#1a1a2e;border:2px solid #f59e0b;border-radius:8px;padding:20px 24px;width:440px;max-width:92%;max-height:80dvh;display:flex;flex-direction:column;gap:16px;overflow:hidden;pointer-events:auto;animation:", " 0.15s ease-out;"], scaleIn$2);
|
|
47741
|
+
var Header$b = /*#__PURE__*/styled__default.div.withConfig({
|
|
47742
|
+
displayName: "CharacterListingModal__Header",
|
|
47743
|
+
componentId: "sc-1uxkx35-3"
|
|
47744
|
+
})(["display:flex;align-items:center;justify-content:space-between;"]);
|
|
47745
|
+
var Title$c = /*#__PURE__*/styled__default.h3.withConfig({
|
|
47746
|
+
displayName: "CharacterListingModal__Title",
|
|
47747
|
+
componentId: "sc-1uxkx35-4"
|
|
47748
|
+
})(["margin:0;font-family:'Press Start 2P',cursive !important;font-size:0.65rem !important;color:#fef08a !important;"]);
|
|
47749
|
+
var CloseButton$d = /*#__PURE__*/styled__default.button.withConfig({
|
|
47750
|
+
displayName: "CharacterListingModal__CloseButton",
|
|
47751
|
+
componentId: "sc-1uxkx35-5"
|
|
47752
|
+
})(["background:none;border:none;color:rgba(255,255,255,0.6);cursor:pointer;font-size:1rem;padding:4px;display:flex;align-items:center;pointer-events:auto;&:hover{color:#ffffff;}"]);
|
|
47753
|
+
var CharacterList$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
47754
|
+
displayName: "CharacterListingModal__CharacterList",
|
|
47755
|
+
componentId: "sc-1uxkx35-6"
|
|
47756
|
+
})(["display:flex;flex-direction:column;gap:6px;overflow-y:auto;max-height:260px;padding:2px;&::-webkit-scrollbar{width:6px;}&::-webkit-scrollbar-track{background:rgba(0,0,0,0.2);border-radius:4px;}&::-webkit-scrollbar-thumb{background:rgba(245,158,11,0.3);border-radius:4px;}"]);
|
|
47757
|
+
var CharacterRow = /*#__PURE__*/styled__default.div.withConfig({
|
|
47758
|
+
displayName: "CharacterListingModal__CharacterRow",
|
|
47759
|
+
componentId: "sc-1uxkx35-7"
|
|
47760
|
+
})(["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:", ";background:", ";}&:focus-visible{outline:2px solid rgba(245,158,11,0.6);outline-offset:2px;}"], function (_ref2) {
|
|
47761
|
+
var $selected = _ref2.$selected;
|
|
47762
|
+
return $selected ? '#f59e0b' : 'rgba(255,255,255,0.08)';
|
|
47763
|
+
}, function (_ref3) {
|
|
47764
|
+
var $selected = _ref3.$selected;
|
|
47765
|
+
return $selected ? 'rgba(245,158,11,0.1)' : 'rgba(255,255,255,0.02)';
|
|
47766
|
+
}, function (_ref4) {
|
|
47767
|
+
var $selected = _ref4.$selected;
|
|
47768
|
+
return $selected ? '#f59e0b' : 'rgba(245,158,11,0.4)';
|
|
47769
|
+
}, function (_ref5) {
|
|
47770
|
+
var $selected = _ref5.$selected;
|
|
47771
|
+
return $selected ? 'rgba(245,158,11,0.1)' : 'rgba(245,158,11,0.05)';
|
|
47772
|
+
});
|
|
47773
|
+
var RadioCircle$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
47774
|
+
displayName: "CharacterListingModal__RadioCircle",
|
|
47775
|
+
componentId: "sc-1uxkx35-8"
|
|
47776
|
+
})(["width:14px;height:14px;border-radius:50%;border:2px solid ", ";flex-shrink:0;display:flex;align-items:center;justify-content:center;&::after{content:'';width:6px;height:6px;border-radius:50%;background:#f59e0b;opacity:", ";transition:opacity 0.15s;}"], function (_ref6) {
|
|
47777
|
+
var $selected = _ref6.$selected;
|
|
47778
|
+
return $selected ? '#f59e0b' : 'rgba(255,255,255,0.4)';
|
|
47779
|
+
}, function (_ref7) {
|
|
47780
|
+
var $selected = _ref7.$selected;
|
|
47781
|
+
return $selected ? 1 : 0;
|
|
47782
|
+
});
|
|
47783
|
+
var SpriteWrapper$3 = /*#__PURE__*/styled__default.div.withConfig({
|
|
47784
|
+
displayName: "CharacterListingModal__SpriteWrapper",
|
|
47785
|
+
componentId: "sc-1uxkx35-9"
|
|
47786
|
+
})(["display:flex;align-items:center;justify-content:center;image-rendering:pixelated;flex-shrink:0;width:40px;height:40px;"]);
|
|
47787
|
+
var CharacterInfo$2 = /*#__PURE__*/styled__default.div.withConfig({
|
|
47788
|
+
displayName: "CharacterListingModal__CharacterInfo",
|
|
47789
|
+
componentId: "sc-1uxkx35-10"
|
|
47718
47790
|
})(["display:flex;flex-direction:column;gap:4px;flex:1;"]);
|
|
47719
47791
|
var CharacterName$3 = /*#__PURE__*/styled__default.span.withConfig({
|
|
47720
|
-
displayName: "
|
|
47721
|
-
componentId: "sc-
|
|
47722
|
-
})(["font-family:'Press Start 2P',cursive;font-size:0.
|
|
47792
|
+
displayName: "CharacterListingModal__CharacterName",
|
|
47793
|
+
componentId: "sc-1uxkx35-11"
|
|
47794
|
+
})(["font-family:'Press Start 2P',cursive !important;font-size:0.5rem !important;color:#f3f4f6 !important;"]);
|
|
47723
47795
|
var CharacterMeta$2 = /*#__PURE__*/styled__default.span.withConfig({
|
|
47724
|
-
displayName: "
|
|
47725
|
-
componentId: "sc-
|
|
47726
|
-
})(["font-size:0.
|
|
47727
|
-
var
|
|
47728
|
-
displayName: "
|
|
47729
|
-
componentId: "sc-
|
|
47730
|
-
})(["
|
|
47731
|
-
var
|
|
47732
|
-
displayName: "
|
|
47733
|
-
componentId: "sc-
|
|
47734
|
-
})(["display:flex;
|
|
47796
|
+
displayName: "CharacterListingModal__CharacterMeta",
|
|
47797
|
+
componentId: "sc-1uxkx35-12"
|
|
47798
|
+
})(["font-family:'Press Start 2P',cursive !important;font-size:0.4rem !important;color:#888 !important;text-transform:uppercase;letter-spacing:0.5px;"]);
|
|
47799
|
+
var PricePreview = /*#__PURE__*/styled__default.div.withConfig({
|
|
47800
|
+
displayName: "CharacterListingModal__PricePreview",
|
|
47801
|
+
componentId: "sc-1uxkx35-13"
|
|
47802
|
+
})(["display:flex;align-items:center;gap:6px;"]);
|
|
47803
|
+
var DCCoinWrapper$4 = /*#__PURE__*/styled__default.span.withConfig({
|
|
47804
|
+
displayName: "CharacterListingModal__DCCoinWrapper",
|
|
47805
|
+
componentId: "sc-1uxkx35-14"
|
|
47806
|
+
})(["display:flex;align-items:center;justify-content:center;flex-shrink:0;"]);
|
|
47807
|
+
var PricePreviewAmount = /*#__PURE__*/styled__default.span.withConfig({
|
|
47808
|
+
displayName: "CharacterListingModal__PricePreviewAmount",
|
|
47809
|
+
componentId: "sc-1uxkx35-15"
|
|
47810
|
+
})(["font-family:'Press Start 2P',cursive !important;font-size:0.55rem !important;color:#fef08a !important;"]);
|
|
47811
|
+
var PriceSection$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
47812
|
+
displayName: "CharacterListingModal__PriceSection",
|
|
47813
|
+
componentId: "sc-1uxkx35-16"
|
|
47814
|
+
})(["display:flex;flex-direction:column;gap:8px;border-top:1px solid rgba(255,255,255,0.06);padding-top:12px;"]);
|
|
47735
47815
|
var PriceLabel = /*#__PURE__*/styled__default.p.withConfig({
|
|
47736
|
-
displayName: "
|
|
47737
|
-
componentId: "sc-
|
|
47738
|
-
})(["margin:0;font-size:0.55rem;color:#888;text-transform:uppercase;letter-spacing:0.5px;"]);
|
|
47739
|
-
var
|
|
47740
|
-
displayName: "
|
|
47741
|
-
componentId: "sc-
|
|
47816
|
+
displayName: "CharacterListingModal__PriceLabel",
|
|
47817
|
+
componentId: "sc-1uxkx35-17"
|
|
47818
|
+
})(["margin:0;font-family:'Press Start 2P',cursive !important;font-size:0.55rem !important;color:#888 !important;text-transform:uppercase;letter-spacing:0.5px;"]);
|
|
47819
|
+
var PriceRow$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
47820
|
+
displayName: "CharacterListingModal__PriceRow",
|
|
47821
|
+
componentId: "sc-1uxkx35-18"
|
|
47742
47822
|
})(["display:flex;gap:8px;align-items:center;.price-input{flex:1;height:12px;}"]);
|
|
47743
|
-
var
|
|
47744
|
-
displayName: "
|
|
47745
|
-
componentId: "sc-
|
|
47746
|
-
})(["padding:10px 16px;height:32px;
|
|
47747
|
-
var AvailableCharactersSection = /*#__PURE__*/styled__default.div.withConfig({
|
|
47748
|
-
displayName: "CharacterListingForm__AvailableCharactersSection",
|
|
47749
|
-
componentId: "sc-fxv1tt-17"
|
|
47750
|
-
})(["display:flex;flex-direction:column;gap:8px;"]);
|
|
47751
|
-
var AvailableCharactersLabel = /*#__PURE__*/styled__default.p.withConfig({
|
|
47752
|
-
displayName: "CharacterListingForm__AvailableCharactersLabel",
|
|
47753
|
-
componentId: "sc-fxv1tt-18"
|
|
47754
|
-
})(["margin:0;font-size:0.55rem;color:#888;text-transform:uppercase;letter-spacing:0.5px;"]);
|
|
47755
|
-
var AvailableCharactersList = /*#__PURE__*/styled__default.div.withConfig({
|
|
47756
|
-
displayName: "CharacterListingForm__AvailableCharactersList",
|
|
47757
|
-
componentId: "sc-fxv1tt-19"
|
|
47758
|
-
})(["display:flex;flex-direction:column;gap:6px;max-height:200px;overflow-y:auto;padding:4px;"]);
|
|
47759
|
-
var AvailableCharacterItem = /*#__PURE__*/styled__default.button.withConfig({
|
|
47760
|
-
displayName: "CharacterListingForm__AvailableCharacterItem",
|
|
47761
|
-
componentId: "sc-fxv1tt-20"
|
|
47762
|
-
})(["display:flex;align-items:center;gap:10px;padding:8px;background:", ";border:1px solid ", ";border-radius:6px;cursor:pointer;transition:border-color 0.15s,background 0.15s;&:hover{border-color:rgba(245,158,11,0.3);background:rgba(245,158,11,0.05);}"], function (_ref2) {
|
|
47763
|
-
var $selected = _ref2.$selected;
|
|
47764
|
-
return $selected ? 'rgba(245, 158, 11, 0.1)' : 'rgba(255, 255, 255, 0.02)';
|
|
47765
|
-
}, function (_ref3) {
|
|
47766
|
-
var $selected = _ref3.$selected;
|
|
47767
|
-
return $selected ? 'rgba(245, 158, 11, 0.4)' : 'rgba(255, 255, 255, 0.08)';
|
|
47768
|
-
});
|
|
47769
|
-
var MiniSprite = /*#__PURE__*/styled__default.div.withConfig({
|
|
47770
|
-
displayName: "CharacterListingForm__MiniSprite",
|
|
47771
|
-
componentId: "sc-fxv1tt-21"
|
|
47772
|
-
})(["display:flex;align-items:center;justify-content:center;image-rendering:pixelated;flex-shrink:0;"]);
|
|
47773
|
-
var MiniCharacterInfo = /*#__PURE__*/styled__default.div.withConfig({
|
|
47774
|
-
displayName: "CharacterListingForm__MiniCharacterInfo",
|
|
47775
|
-
componentId: "sc-fxv1tt-22"
|
|
47776
|
-
})(["display:flex;flex-direction:column;gap:2px;align-items:flex-start;"]);
|
|
47777
|
-
var MiniCharacterName = /*#__PURE__*/styled__default.span.withConfig({
|
|
47778
|
-
displayName: "CharacterListingForm__MiniCharacterName",
|
|
47779
|
-
componentId: "sc-fxv1tt-23"
|
|
47780
|
-
})(["font-family:'Press Start 2P',cursive;font-size:0.45rem;color:#f3f4f6;"]);
|
|
47781
|
-
var MiniCharacterMeta = /*#__PURE__*/styled__default.span.withConfig({
|
|
47782
|
-
displayName: "CharacterListingForm__MiniCharacterMeta",
|
|
47783
|
-
componentId: "sc-fxv1tt-24"
|
|
47784
|
-
})(["font-size:0.4rem;color:#888;text-transform:uppercase;letter-spacing:0.5px;"]);
|
|
47823
|
+
var ListBtn = /*#__PURE__*/styled__default(CTAButton).withConfig({
|
|
47824
|
+
displayName: "CharacterListingModal__ListBtn",
|
|
47825
|
+
componentId: "sc-1uxkx35-19"
|
|
47826
|
+
})(["flex-shrink:0;padding:10px 16px;height:32px;span{font-size:0.6rem;}svg{font-size:1.1rem;}"]);
|
|
47785
47827
|
var EmptyState$7 = /*#__PURE__*/styled__default.div.withConfig({
|
|
47786
|
-
displayName: "
|
|
47787
|
-
componentId: "sc-
|
|
47788
|
-
})(["display:flex;align-items:center;justify-content:center;padding:
|
|
47789
|
-
|
|
47790
|
-
|
|
47791
|
-
|
|
47792
|
-
|
|
47828
|
+
displayName: "CharacterListingModal__EmptyState",
|
|
47829
|
+
componentId: "sc-1uxkx35-20"
|
|
47830
|
+
})(["display:flex;align-items:center;justify-content:center;padding:32px 16px;font-family:'Press Start 2P',cursive !important;font-size:0.5rem !important;color:#666 !important;text-transform:uppercase;letter-spacing:1px;"]);
|
|
47831
|
+
|
|
47832
|
+
var CharacterListingForm = function CharacterListingForm(_ref) {
|
|
47833
|
+
var accountCharacters = _ref.accountCharacters,
|
|
47834
|
+
onCharacterList = _ref.onCharacterList,
|
|
47835
|
+
atlasJSON = _ref.atlasJSON,
|
|
47836
|
+
atlasIMG = _ref.atlasIMG,
|
|
47837
|
+
characterAtlasJSON = _ref.characterAtlasJSON,
|
|
47838
|
+
characterAtlasIMG = _ref.characterAtlasIMG,
|
|
47839
|
+
enableHotkeys = _ref.enableHotkeys,
|
|
47840
|
+
disableHotkeys = _ref.disableHotkeys;
|
|
47841
|
+
var _useState = React.useState(false),
|
|
47842
|
+
isModalOpen = _useState[0],
|
|
47843
|
+
setIsModalOpen = _useState[1];
|
|
47844
|
+
var eligibleCount = accountCharacters.filter(function (c) {
|
|
47845
|
+
return !c.isListedForSale && !c.tradedAt;
|
|
47846
|
+
}).length;
|
|
47847
|
+
return React__default.createElement(Wrapper$2, null, React__default.createElement(CharacterListingModal, {
|
|
47848
|
+
isOpen: isModalOpen,
|
|
47849
|
+
onClose: function onClose() {
|
|
47850
|
+
return setIsModalOpen(false);
|
|
47851
|
+
},
|
|
47852
|
+
accountCharacters: accountCharacters,
|
|
47853
|
+
atlasJSON: atlasJSON,
|
|
47854
|
+
atlasIMG: atlasIMG,
|
|
47855
|
+
characterAtlasJSON: characterAtlasJSON,
|
|
47856
|
+
characterAtlasIMG: characterAtlasIMG,
|
|
47857
|
+
onCharacterList: onCharacterList,
|
|
47858
|
+
enableHotkeys: enableHotkeys,
|
|
47859
|
+
disableHotkeys: disableHotkeys
|
|
47860
|
+
}), React__default.createElement(Description$4, null, "List one of your offline characters on the marketplace. Prices are set in DC."), React__default.createElement(OpenButton, {
|
|
47861
|
+
icon: React__default.createElement(ShoppingBag.ShoppingBag, {
|
|
47862
|
+
width: 20,
|
|
47863
|
+
height: 20
|
|
47864
|
+
}),
|
|
47865
|
+
label: "List a Character" + (eligibleCount > 0 ? " (" + eligibleCount + " eligible)" : ''),
|
|
47866
|
+
disabled: eligibleCount === 0,
|
|
47867
|
+
onClick: function onClick() {
|
|
47868
|
+
return setIsModalOpen(true);
|
|
47869
|
+
}
|
|
47870
|
+
}), eligibleCount === 0 && React__default.createElement(NoEligible, null, "No eligible characters to list."));
|
|
47871
|
+
};
|
|
47872
|
+
var Wrapper$2 = /*#__PURE__*/styled__default.div.withConfig({
|
|
47873
|
+
displayName: "CharacterListingForm__Wrapper",
|
|
47874
|
+
componentId: "sc-fxv1tt-0"
|
|
47875
|
+
})(["display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;padding:40px 24px;width:95%;margin:0 auto;"]);
|
|
47876
|
+
var Description$4 = /*#__PURE__*/styled__default.p.withConfig({
|
|
47877
|
+
displayName: "CharacterListingForm__Description",
|
|
47878
|
+
componentId: "sc-fxv1tt-1"
|
|
47879
|
+
})(["margin:0;font-size:0.5rem;color:#666;text-align:center;line-height:1.6;max-width:320px;"]);
|
|
47880
|
+
var OpenButton = /*#__PURE__*/styled__default(CTAButton).withConfig({
|
|
47881
|
+
displayName: "CharacterListingForm__OpenButton",
|
|
47882
|
+
componentId: "sc-fxv1tt-2"
|
|
47883
|
+
})(["padding:14px 24px;span{font-size:0.65rem;}svg{font-size:1.2rem;}"]);
|
|
47884
|
+
var NoEligible = /*#__PURE__*/styled__default.span.withConfig({
|
|
47885
|
+
displayName: "CharacterListingForm__NoEligible",
|
|
47886
|
+
componentId: "sc-fxv1tt-3"
|
|
47887
|
+
})(["font-size:0.45rem;color:#52525b;text-transform:uppercase;letter-spacing:1px;"]);
|
|
47793
47888
|
|
|
47794
47889
|
var Marketplace = function Marketplace(props) {
|
|
47795
47890
|
var onClose = props.onClose,
|
|
@@ -47864,13 +47959,13 @@ var Marketplace = function Marketplace(props) {
|
|
|
47864
47959
|
onCharacterList = props.onCharacterList,
|
|
47865
47960
|
_props$accountCharact = props.accountCharacters,
|
|
47866
47961
|
accountCharacters = _props$accountCharact === void 0 ? [] : _props$accountCharact,
|
|
47867
|
-
onCharacterSelectToList = props.onCharacterSelectToList,
|
|
47868
|
-
selectedCharacterToList = props.selectedCharacterToList,
|
|
47869
47962
|
_props$characterListi5 = props.characterListingsLoading,
|
|
47870
47963
|
characterListingsLoading = _props$characterListi5 === void 0 ? false : _props$characterListi5,
|
|
47871
47964
|
_props$characterNameF = props.characterNameFilter,
|
|
47872
47965
|
characterNameFilter = _props$characterNameF === void 0 ? '' : _props$characterNameF,
|
|
47873
|
-
onCharacterNameFilterChange = props.onCharacterNameFilterChange
|
|
47966
|
+
onCharacterNameFilterChange = props.onCharacterNameFilterChange,
|
|
47967
|
+
characterAtlasIMG = props.characterAtlasIMG,
|
|
47968
|
+
characterAtlasJSON = props.characterAtlasJSON;
|
|
47874
47969
|
var _useState = React.useState('marketplace'),
|
|
47875
47970
|
activeTab = _useState[0],
|
|
47876
47971
|
setActiveTab = _useState[1];
|
|
@@ -47987,6 +48082,8 @@ var Marketplace = function Marketplace(props) {
|
|
|
47987
48082
|
onCharacterBuy: onCharacterBuy != null ? onCharacterBuy : function () {},
|
|
47988
48083
|
atlasJSON: props.atlasJSON,
|
|
47989
48084
|
atlasIMG: props.atlasIMG,
|
|
48085
|
+
characterAtlasJSON: characterAtlasJSON != null ? characterAtlasJSON : props.atlasJSON,
|
|
48086
|
+
characterAtlasIMG: characterAtlasIMG != null ? characterAtlasIMG : props.atlasIMG,
|
|
47990
48087
|
enableHotkeys: props.enableHotkeys,
|
|
47991
48088
|
disableHotkeys: props.disableHotkeys,
|
|
47992
48089
|
nameFilter: characterNameFilter,
|
|
@@ -48001,15 +48098,17 @@ var Marketplace = function Marketplace(props) {
|
|
|
48001
48098
|
onCharacterDelist: onCharacterDelist != null ? onCharacterDelist : function () {},
|
|
48002
48099
|
atlasJSON: props.atlasJSON,
|
|
48003
48100
|
atlasIMG: props.atlasIMG,
|
|
48101
|
+
characterAtlasJSON: characterAtlasJSON != null ? characterAtlasJSON : props.atlasJSON,
|
|
48102
|
+
characterAtlasIMG: characterAtlasIMG != null ? characterAtlasIMG : props.atlasIMG,
|
|
48004
48103
|
enableHotkeys: props.enableHotkeys,
|
|
48005
48104
|
disableHotkeys: props.disableHotkeys
|
|
48006
48105
|
}), characterSubTab === 'list' && React__default.createElement(CharacterListingForm, {
|
|
48007
48106
|
accountCharacters: accountCharacters != null ? accountCharacters : [],
|
|
48008
|
-
selectedCharacterToList: selectedCharacterToList != null ? selectedCharacterToList : null,
|
|
48009
|
-
onCharacterSelectToList: onCharacterSelectToList != null ? onCharacterSelectToList : function () {},
|
|
48010
48107
|
onCharacterList: onCharacterList != null ? onCharacterList : function () {},
|
|
48011
48108
|
atlasJSON: props.atlasJSON,
|
|
48012
48109
|
atlasIMG: props.atlasIMG,
|
|
48110
|
+
characterAtlasJSON: characterAtlasJSON != null ? characterAtlasJSON : props.atlasJSON,
|
|
48111
|
+
characterAtlasIMG: characterAtlasIMG != null ? characterAtlasIMG : props.atlasIMG,
|
|
48013
48112
|
enableHotkeys: props.enableHotkeys,
|
|
48014
48113
|
disableHotkeys: props.disableHotkeys
|
|
48015
48114
|
})), activeTab === 'sell' && React__default.createElement(ManagmentPanel, Object.assign({}, props, {
|
|
@@ -48100,6 +48199,8 @@ var CharacterMarketplaceRows = function CharacterMarketplaceRows(_ref) {
|
|
|
48100
48199
|
var listing = _ref.listing,
|
|
48101
48200
|
atlasJSON = _ref.atlasJSON,
|
|
48102
48201
|
atlasIMG = _ref.atlasIMG,
|
|
48202
|
+
characterAtlasJSON = _ref.characterAtlasJSON,
|
|
48203
|
+
characterAtlasIMG = _ref.characterAtlasIMG,
|
|
48103
48204
|
onCharacterBuy = _ref.onCharacterBuy,
|
|
48104
48205
|
onCharacterDelist = _ref.onCharacterDelist,
|
|
48105
48206
|
disabled = _ref.disabled;
|
|
@@ -48109,8 +48210,8 @@ var CharacterMarketplaceRows = function CharacterMarketplaceRows(_ref) {
|
|
|
48109
48210
|
return React__default.createElement(ItemRowWrapper, {
|
|
48110
48211
|
"$isHighlighted": disabled || isBeingBought
|
|
48111
48212
|
}, React__default.createElement(ItemSection$3, null, React__default.createElement(SpriteContainer$5, null, React__default.createElement(CharacterSprite$2, null, React__default.createElement(SpriteFromAtlas, {
|
|
48112
|
-
atlasIMG:
|
|
48113
|
-
atlasJSON:
|
|
48213
|
+
atlasIMG: characterAtlasIMG,
|
|
48214
|
+
atlasJSON: characterAtlasJSON,
|
|
48114
48215
|
spriteKey: characterSnapshot.textureKey + "/down/standing/0.png",
|
|
48115
48216
|
imgScale: 2.5,
|
|
48116
48217
|
height: 56,
|
|
@@ -48119,12 +48220,12 @@ var CharacterMarketplaceRows = function CharacterMarketplaceRows(_ref) {
|
|
|
48119
48220
|
maxLines: 1,
|
|
48120
48221
|
maxWidth: "180px",
|
|
48121
48222
|
fontSize: "10px"
|
|
48122
|
-
}, characterSnapshot.name || 'Unknown Character')), React__default.createElement(CharacterMeta$3, null, "Level ", characterSnapshot.level), characterSnapshot["class"] && React__default.createElement(CharacterClass, null, characterSnapshot["class"]), React__default.createElement(PriceRow$
|
|
48223
|
+
}, characterSnapshot.name || 'Unknown Character')), React__default.createElement(CharacterMeta$3, null, "Level ", characterSnapshot.level), characterSnapshot["class"] && React__default.createElement(CharacterClass, null, characterSnapshot["class"]), React__default.createElement(PriceRow$2, null, React__default.createElement(DCCoinWrapper$5, null, React__default.createElement(SpriteFromAtlas, {
|
|
48123
48224
|
atlasIMG: atlasIMG,
|
|
48124
48225
|
atlasJSON: atlasJSON,
|
|
48125
|
-
spriteKey: "others/
|
|
48226
|
+
spriteKey: "others/definya-coin.png",
|
|
48126
48227
|
imgScale: 1
|
|
48127
|
-
})), React__default.createElement(
|
|
48228
|
+
})), React__default.createElement(DCPrice$2, null, shared.formatDCAmount(price))), isBeingBought && React__default.createElement(PendingBadge, null, "Sale Pending"))), React__default.createElement(ActionSection$2, null, React__default.createElement(CTAButton, {
|
|
48128
48229
|
icon: onCharacterBuy ? React__default.createElement(Coins.Coins, {
|
|
48129
48230
|
width: 18,
|
|
48130
48231
|
height: 18
|
|
@@ -48167,16 +48268,16 @@ var CharacterClass = /*#__PURE__*/styled__default.span.withConfig({
|
|
|
48167
48268
|
displayName: "CharacterMarketplaceRows__CharacterClass",
|
|
48168
48269
|
componentId: "sc-1pxkdig-6"
|
|
48169
48270
|
})(["font-size:0.4rem;color:#666;text-transform:uppercase;letter-spacing:0.5px;"]);
|
|
48170
|
-
var PriceRow$
|
|
48271
|
+
var PriceRow$2 = /*#__PURE__*/styled__default.div.withConfig({
|
|
48171
48272
|
displayName: "CharacterMarketplaceRows__PriceRow",
|
|
48172
48273
|
componentId: "sc-1pxkdig-7"
|
|
48173
48274
|
})(["display:flex;align-items:center;gap:0.4rem;margin-top:0.2rem;"]);
|
|
48174
|
-
var
|
|
48175
|
-
displayName: "
|
|
48275
|
+
var DCCoinWrapper$5 = /*#__PURE__*/styled__default.span.withConfig({
|
|
48276
|
+
displayName: "CharacterMarketplaceRows__DCCoinWrapper",
|
|
48176
48277
|
componentId: "sc-1pxkdig-8"
|
|
48177
48278
|
})(["display:flex;align-items:center;justify-content:center;position:relative;top:-0.5rem;left:-0.4rem;"]);
|
|
48178
|
-
var
|
|
48179
|
-
displayName: "
|
|
48279
|
+
var DCPrice$2 = /*#__PURE__*/styled__default.span.withConfig({
|
|
48280
|
+
displayName: "CharacterMarketplaceRows__DCPrice",
|
|
48180
48281
|
componentId: "sc-1pxkdig-9"
|
|
48181
48282
|
})(["font-family:'Press Start 2P',cursive;font-size:0.55rem !important;color:#fef08a;line-height:1;"]);
|
|
48182
48283
|
var ActionSection$2 = /*#__PURE__*/styled__default.div.withConfig({
|
|
@@ -48192,6 +48293,8 @@ var GroupedCharacterMarketplaceRow = function GroupedCharacterMarketplaceRow(_re
|
|
|
48192
48293
|
otherListings = _ref2.otherListings,
|
|
48193
48294
|
atlasJSON = _ref2.atlasJSON,
|
|
48194
48295
|
atlasIMG = _ref2.atlasIMG,
|
|
48296
|
+
characterAtlasJSON = _ref2.characterAtlasJSON,
|
|
48297
|
+
characterAtlasIMG = _ref2.characterAtlasIMG,
|
|
48195
48298
|
onBuy = _ref2.onBuy,
|
|
48196
48299
|
currentCharacterId = _ref2.currentCharacterId;
|
|
48197
48300
|
var makeRow = function makeRow(listing) {
|
|
@@ -48201,6 +48304,8 @@ var GroupedCharacterMarketplaceRow = function GroupedCharacterMarketplaceRow(_re
|
|
|
48201
48304
|
listing: listing,
|
|
48202
48305
|
atlasJSON: atlasJSON,
|
|
48203
48306
|
atlasIMG: atlasIMG,
|
|
48307
|
+
characterAtlasJSON: characterAtlasJSON,
|
|
48308
|
+
characterAtlasIMG: characterAtlasIMG,
|
|
48204
48309
|
onCharacterBuy: isOwnListing ? undefined : function () {
|
|
48205
48310
|
return onBuy(listing._id);
|
|
48206
48311
|
},
|
|
@@ -48385,11 +48490,11 @@ var PartyCreate = function PartyCreate(_ref) {
|
|
|
48385
48490
|
width: "500px",
|
|
48386
48491
|
height: "300px",
|
|
48387
48492
|
cancelDrag: ".partyRows"
|
|
48388
|
-
}, React__default.createElement(Wrapper$
|
|
48493
|
+
}, React__default.createElement(Wrapper$3, null, React__default.createElement("div", {
|
|
48389
48494
|
style: {
|
|
48390
48495
|
width: '100%'
|
|
48391
48496
|
}
|
|
48392
|
-
}, React__default.createElement(Title$
|
|
48497
|
+
}, React__default.createElement(Title$d, null, "Create Party"), React__default.createElement("hr", {
|
|
48393
48498
|
className: "golden"
|
|
48394
48499
|
}))), React__default.createElement("h1", null, "Type your party name"), React__default.createElement(Input, {
|
|
48395
48500
|
placeholder: "Type party name",
|
|
@@ -48408,11 +48513,11 @@ var PartyCreate = function PartyCreate(_ref) {
|
|
|
48408
48513
|
}
|
|
48409
48514
|
}, "Cancel"))));
|
|
48410
48515
|
};
|
|
48411
|
-
var Wrapper$
|
|
48516
|
+
var Wrapper$3 = /*#__PURE__*/styled__default.div.withConfig({
|
|
48412
48517
|
displayName: "PartyCreate__Wrapper",
|
|
48413
48518
|
componentId: "sc-13brop0-0"
|
|
48414
48519
|
})(["display:flex;flex-direction:column;width:100%;"]);
|
|
48415
|
-
var Title$
|
|
48520
|
+
var Title$d = /*#__PURE__*/styled__default.h1.withConfig({
|
|
48416
48521
|
displayName: "PartyCreate__Title",
|
|
48417
48522
|
componentId: "sc-13brop0-1"
|
|
48418
48523
|
})(["font-size:0.6rem;color:", " !important;"], uiColors.yellow);
|
|
@@ -48457,11 +48562,11 @@ var PartyDashboard = function PartyDashboard(_ref) {
|
|
|
48457
48562
|
width: "800px",
|
|
48458
48563
|
height: "400px",
|
|
48459
48564
|
cancelDrag: ".partyRows"
|
|
48460
|
-
}, React__default.createElement(Wrapper$
|
|
48565
|
+
}, React__default.createElement(Wrapper$4, null, React__default.createElement("div", {
|
|
48461
48566
|
style: {
|
|
48462
48567
|
width: '100%'
|
|
48463
48568
|
}
|
|
48464
|
-
}, React__default.createElement(Title$
|
|
48569
|
+
}, React__default.createElement(Title$e, null, "Party Dashboard"), React__default.createElement(Button, {
|
|
48465
48570
|
buttonType: exports.ButtonTypes.RPGUIButton
|
|
48466
48571
|
}, "Create"), React__default.createElement("hr", {
|
|
48467
48572
|
className: "golden"
|
|
@@ -48480,7 +48585,7 @@ var PartyDashboard = function PartyDashboard(_ref) {
|
|
|
48480
48585
|
});
|
|
48481
48586
|
})));
|
|
48482
48587
|
};
|
|
48483
|
-
var Wrapper$
|
|
48588
|
+
var Wrapper$4 = /*#__PURE__*/styled__default.div.withConfig({
|
|
48484
48589
|
displayName: "PartyDashboard__Wrapper",
|
|
48485
48590
|
componentId: "sc-16cm41r-0"
|
|
48486
48591
|
})(["display:flex;flex-direction:column;width:100%;"]);
|
|
@@ -48488,7 +48593,7 @@ var RowsWrapper = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
48488
48593
|
displayName: "PartyDashboard__RowsWrapper",
|
|
48489
48594
|
componentId: "sc-16cm41r-1"
|
|
48490
48595
|
})(["overflow-y:scroll;-webkit-overflow-scrolling:touch;width:100%;height:200px;"]);
|
|
48491
|
-
var Title$
|
|
48596
|
+
var Title$e = /*#__PURE__*/styled__default.h1.withConfig({
|
|
48492
48597
|
displayName: "PartyDashboard__Title",
|
|
48493
48598
|
componentId: "sc-16cm41r-2"
|
|
48494
48599
|
})(["font-size:0.6rem;color:", " !important;"], uiColors.yellow);
|
|
@@ -48521,11 +48626,11 @@ var PartyInvite = function PartyInvite(_ref) {
|
|
|
48521
48626
|
width: "600px",
|
|
48522
48627
|
height: "400px",
|
|
48523
48628
|
cancelDrag: ".playersRows"
|
|
48524
|
-
}, React__default.createElement(Wrapper$
|
|
48629
|
+
}, React__default.createElement(Wrapper$5, null, React__default.createElement("div", {
|
|
48525
48630
|
style: {
|
|
48526
48631
|
width: '100%'
|
|
48527
48632
|
}
|
|
48528
|
-
}, React__default.createElement(Title$
|
|
48633
|
+
}, React__default.createElement(Title$f, null, "Invite for Party"), React__default.createElement("hr", {
|
|
48529
48634
|
className: "golden"
|
|
48530
48635
|
}))), React__default.createElement(RowsWrapper$1, {
|
|
48531
48636
|
className: "playersRows"
|
|
@@ -48540,11 +48645,11 @@ var PartyInvite = function PartyInvite(_ref) {
|
|
|
48540
48645
|
});
|
|
48541
48646
|
})));
|
|
48542
48647
|
};
|
|
48543
|
-
var Wrapper$
|
|
48648
|
+
var Wrapper$5 = /*#__PURE__*/styled__default.div.withConfig({
|
|
48544
48649
|
displayName: "PartyInvite__Wrapper",
|
|
48545
48650
|
componentId: "sc-eu8ggt-0"
|
|
48546
48651
|
})(["display:flex;flex-direction:column;width:100%;"]);
|
|
48547
|
-
var Title$
|
|
48652
|
+
var Title$f = /*#__PURE__*/styled__default.h1.withConfig({
|
|
48548
48653
|
displayName: "PartyInvite__Title",
|
|
48549
48654
|
componentId: "sc-eu8ggt-1"
|
|
48550
48655
|
})(["font-size:0.6rem;color:", " !important;"], uiColors.yellow);
|
|
@@ -48986,7 +49091,7 @@ var QuestInfo = function QuestInfo(_ref) {
|
|
|
48986
49091
|
onPointerDown: onRightClick
|
|
48987
49092
|
}), React__default.createElement(QuestContainer, null, React__default.createElement(TitleContainer$1, {
|
|
48988
49093
|
className: "drag-handler"
|
|
48989
|
-
}, React__default.createElement(Title$
|
|
49094
|
+
}, React__default.createElement(Title$g, null, React__default.createElement(Thumbnail, {
|
|
48990
49095
|
src: quests[currentIndex].thumbnail || img$8
|
|
48991
49096
|
}), quests[currentIndex].title), React__default.createElement(QuestSplitDiv, null, React__default.createElement("hr", {
|
|
48992
49097
|
className: "golden"
|
|
@@ -49005,7 +49110,7 @@ var QuestInfo = function QuestInfo(_ref) {
|
|
|
49005
49110
|
}, button.title);
|
|
49006
49111
|
})))) : React__default.createElement(QuestsContainer, null, React__default.createElement(QuestContainer, null, React__default.createElement(TitleContainer$1, {
|
|
49007
49112
|
className: "drag-handler"
|
|
49008
|
-
}, React__default.createElement(Title$
|
|
49113
|
+
}, React__default.createElement(Title$g, null, React__default.createElement(Thumbnail, {
|
|
49009
49114
|
src: quests[0].thumbnail || img$8
|
|
49010
49115
|
}), quests[0].title), React__default.createElement(QuestSplitDiv, null, React__default.createElement("hr", {
|
|
49011
49116
|
className: "golden"
|
|
@@ -49052,7 +49157,7 @@ var TitleContainer$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
49052
49157
|
displayName: "QuestInfo__TitleContainer",
|
|
49053
49158
|
componentId: "sc-1wccpiy-6"
|
|
49054
49159
|
})(["width:100%;display:flex;flex-wrap:wrap;justify-content:flex-start;align-items:center;margin-top:1rem;"]);
|
|
49055
|
-
var Title$
|
|
49160
|
+
var Title$g = /*#__PURE__*/styled__default.h1.withConfig({
|
|
49056
49161
|
displayName: "QuestInfo__Title",
|
|
49057
49162
|
componentId: "sc-1wccpiy-7"
|
|
49058
49163
|
})(["color:white;z-index:22;font-size:", " !important;color:", " !important;"], uiFonts.size.medium, uiColors.yellow);
|
|
@@ -49557,7 +49662,7 @@ var SkillsContainer = function SkillsContainer(_ref) {
|
|
|
49557
49662
|
cancelDrag: "#skillsDiv",
|
|
49558
49663
|
scale: scale,
|
|
49559
49664
|
width: "100%"
|
|
49560
|
-
}, onCloseButton && React__default.createElement(CloseButton$
|
|
49665
|
+
}, onCloseButton && React__default.createElement(CloseButton$e, {
|
|
49561
49666
|
onPointerDown: onCloseButton
|
|
49562
49667
|
}, "X"), React__default.createElement(SkillsContainerDiv, {
|
|
49563
49668
|
id: "skillsDiv"
|
|
@@ -49592,7 +49697,7 @@ var SkillSplitDiv = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
49592
49697
|
displayName: "SkillsContainer__SkillSplitDiv",
|
|
49593
49698
|
componentId: "sc-1g0c67q-2"
|
|
49594
49699
|
})(["width:100%;font-size:11px;hr{margin:0;margin-bottom:1rem;padding:0px;}p{margin-bottom:0px;}"]);
|
|
49595
|
-
var CloseButton$
|
|
49700
|
+
var CloseButton$e = /*#__PURE__*/styled__default.div.withConfig({
|
|
49596
49701
|
displayName: "SkillsContainer__CloseButton",
|
|
49597
49702
|
componentId: "sc-1g0c67q-3"
|
|
49598
49703
|
})(["position:absolute;top:2px;right:2px;color:white;z-index:22;font-size:1.1rem;"]);
|
|
@@ -49728,7 +49833,7 @@ var SpellInfo$1 = function SpellInfo(_ref) {
|
|
|
49728
49833
|
castingType = spell.castingType,
|
|
49729
49834
|
cooldown = spell.cooldown,
|
|
49730
49835
|
maxDistanceGrid = spell.maxDistanceGrid;
|
|
49731
|
-
return React__default.createElement(Container$G, null, React__default.createElement(Header$
|
|
49836
|
+
return React__default.createElement(Container$G, null, React__default.createElement(Header$c, null, React__default.createElement("div", null, React__default.createElement(Title$h, null, name), React__default.createElement(Type$1, null, magicWords))), React__default.createElement(Statistic$1, null, React__default.createElement("div", {
|
|
49732
49837
|
className: "label"
|
|
49733
49838
|
}, "Casting Type:"), React__default.createElement("div", {
|
|
49734
49839
|
className: "value"
|
|
@@ -49752,13 +49857,13 @@ var SpellInfo$1 = function SpellInfo(_ref) {
|
|
|
49752
49857
|
className: "label"
|
|
49753
49858
|
}, "Required Item:"), React__default.createElement("div", {
|
|
49754
49859
|
className: "value"
|
|
49755
|
-
}, requiredItem))), React__default.createElement(Description$
|
|
49860
|
+
}, requiredItem))), React__default.createElement(Description$5, null, description));
|
|
49756
49861
|
};
|
|
49757
49862
|
var Container$G = /*#__PURE__*/styled__default.div.withConfig({
|
|
49758
49863
|
displayName: "SpellInfo__Container",
|
|
49759
49864
|
componentId: "sc-4hbw3q-0"
|
|
49760
49865
|
})(["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);
|
|
49761
|
-
var Title$
|
|
49866
|
+
var Title$h = /*#__PURE__*/styled__default.div.withConfig({
|
|
49762
49867
|
displayName: "SpellInfo__Title",
|
|
49763
49868
|
componentId: "sc-4hbw3q-1"
|
|
49764
49869
|
})(["font-size:", ";font-weight:bold;margin-bottom:0.5rem;display:flex;align-items:center;margin:0;"], uiFonts.size.medium);
|
|
@@ -49766,11 +49871,11 @@ var Type$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
49766
49871
|
displayName: "SpellInfo__Type",
|
|
49767
49872
|
componentId: "sc-4hbw3q-2"
|
|
49768
49873
|
})(["font-size:", ";margin-top:0.2rem;color:", ";"], uiFonts.size.small, uiColors.lightGray);
|
|
49769
|
-
var Description$
|
|
49874
|
+
var Description$5 = /*#__PURE__*/styled__default.div.withConfig({
|
|
49770
49875
|
displayName: "SpellInfo__Description",
|
|
49771
49876
|
componentId: "sc-4hbw3q-3"
|
|
49772
49877
|
})(["margin-top:1.5rem;font-size:", ";color:", ";font-style:italic;"], uiFonts.size.small, uiColors.lightGray);
|
|
49773
|
-
var Header$
|
|
49878
|
+
var Header$c = /*#__PURE__*/styled__default.div.withConfig({
|
|
49774
49879
|
displayName: "SpellInfo__Header",
|
|
49775
49880
|
componentId: "sc-4hbw3q-4"
|
|
49776
49881
|
})(["display:flex;align-items:center;justify-content:space-between;margin-bottom:0.5rem;"]);
|
|
@@ -49986,7 +50091,7 @@ var Spell = function Spell(_ref) {
|
|
|
49986
50091
|
onPointerUp: onPointerUp == null ? void 0 : onPointerUp.bind(null, spellKey),
|
|
49987
50092
|
isSettingShortcut: isSettingShortcut && !disabled,
|
|
49988
50093
|
className: "spell"
|
|
49989
|
-
}, disabled && React__default.createElement(Overlay$
|
|
50094
|
+
}, disabled && React__default.createElement(Overlay$8, 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", {
|
|
49990
50095
|
className: "cooldown"
|
|
49991
50096
|
}, activeCooldown.toFixed(activeCooldown > 10 ? 0 : 1)) : null, React__default.createElement(SpriteFromAtlas, {
|
|
49992
50097
|
atlasIMG: atlasIMG,
|
|
@@ -49995,9 +50100,9 @@ var Spell = function Spell(_ref) {
|
|
|
49995
50100
|
imgScale: IMAGE_SCALE,
|
|
49996
50101
|
containerStyle: CONTAINER_STYLE,
|
|
49997
50102
|
centered: true
|
|
49998
|
-
})), React__default.createElement(Info, null, React__default.createElement(Title$
|
|
50103
|
+
})), React__default.createElement(Info, null, React__default.createElement(Title$i, null, React__default.createElement("span", null, name), React__default.createElement("span", {
|
|
49999
50104
|
className: "spell"
|
|
50000
|
-
}, "(", magicWords, ")")), React__default.createElement(Description$
|
|
50105
|
+
}, "(", magicWords, ")")), React__default.createElement(Description$6, null, description)), React__default.createElement(Divider$1, null), React__default.createElement(Cost, null, React__default.createElement("span", null, "Mana cost:"), React__default.createElement("span", {
|
|
50001
50106
|
className: "mana"
|
|
50002
50107
|
}, manaCost))));
|
|
50003
50108
|
};
|
|
@@ -50016,11 +50121,11 @@ var Info = /*#__PURE__*/styled__default.span.withConfig({
|
|
|
50016
50121
|
displayName: "Spell__Info",
|
|
50017
50122
|
componentId: "sc-j96fa2-2"
|
|
50018
50123
|
})(["width:0;flex:1;@media (orientation:portrait){display:none;}"]);
|
|
50019
|
-
var Title$
|
|
50124
|
+
var Title$i = /*#__PURE__*/styled__default.p.withConfig({
|
|
50020
50125
|
displayName: "Spell__Title",
|
|
50021
50126
|
componentId: "sc-j96fa2-3"
|
|
50022
50127
|
})(["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);
|
|
50023
|
-
var Description$
|
|
50128
|
+
var Description$6 = /*#__PURE__*/styled__default.div.withConfig({
|
|
50024
50129
|
displayName: "Spell__Description",
|
|
50025
50130
|
componentId: "sc-j96fa2-4"
|
|
50026
50131
|
})(["font-size:", " !important;line-height:1.1 !important;"], uiFonts.size.small);
|
|
@@ -50032,7 +50137,7 @@ var Cost = /*#__PURE__*/styled__default.p.withConfig({
|
|
|
50032
50137
|
displayName: "Spell__Cost",
|
|
50033
50138
|
componentId: "sc-j96fa2-6"
|
|
50034
50139
|
})(["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);
|
|
50035
|
-
var Overlay$
|
|
50140
|
+
var Overlay$8 = /*#__PURE__*/styled__default.p.withConfig({
|
|
50036
50141
|
displayName: "Spell__Overlay",
|
|
50037
50142
|
componentId: "sc-j96fa2-7"
|
|
50038
50143
|
})(["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);
|
|
@@ -50081,7 +50186,7 @@ var Spellbook = function Spellbook(_ref) {
|
|
|
50081
50186
|
height: "inherit",
|
|
50082
50187
|
cancelDrag: "#spellbook-search, #shortcuts_list, .spell",
|
|
50083
50188
|
scale: scale
|
|
50084
|
-
}, React__default.createElement(Container$K, null, React__default.createElement(Title$
|
|
50189
|
+
}, React__default.createElement(Container$K, null, React__default.createElement(Title$j, null, "Learned Spells"), React__default.createElement(ShortcutsSetter, {
|
|
50085
50190
|
setSettingShortcutIndex: setSettingShortcutIndex,
|
|
50086
50191
|
settingShortcutIndex: settingShortcutIndex,
|
|
50087
50192
|
shortcuts: shortcuts,
|
|
@@ -50114,7 +50219,7 @@ var Spellbook = function Spellbook(_ref) {
|
|
|
50114
50219
|
}, spell)));
|
|
50115
50220
|
}))));
|
|
50116
50221
|
};
|
|
50117
|
-
var Title$
|
|
50222
|
+
var Title$j = /*#__PURE__*/styled__default.h1.withConfig({
|
|
50118
50223
|
displayName: "Spellbook__Title",
|
|
50119
50224
|
componentId: "sc-r02nfq-0"
|
|
50120
50225
|
})(["font-size:", " !important;margin-bottom:0 !important;"], uiFonts.size.large);
|
|
@@ -70534,7 +70639,7 @@ var PurchaseSuccess = function PurchaseSuccess(_ref) {
|
|
|
70534
70639
|
key: i,
|
|
70535
70640
|
"$i": i
|
|
70536
70641
|
});
|
|
70537
|
-
})), React__default.createElement(Header$
|
|
70642
|
+
})), React__default.createElement(Header$d, null, React__default.createElement(TrophyArea, null, React__default.createElement(TrophyIcon, null, React__default.createElement(fa.FaStar, null))), React__default.createElement(Title$k, null, "PURCHASE COMPLETE!"), React__default.createElement(Subtitle$2, null, "Your items are ready")), React__default.createElement(ItemsList, null, items.map(function (item, i) {
|
|
70538
70643
|
var _item$metadata;
|
|
70539
70644
|
var isCharSkin = item.metadataType === shared.MetadataType.CharacterSkin;
|
|
70540
70645
|
var spriteKey = isCharSkin && (_item$metadata = item.metadata) != null && _item$metadata.selectedSkinTextureKey ? item.metadata.selectedSkinTextureKey + "/down/standing/0.png" : item.texturePath;
|
|
@@ -70558,13 +70663,13 @@ var PurchaseSuccess = function PurchaseSuccess(_ref) {
|
|
|
70558
70663
|
onPointerDown: onClose
|
|
70559
70664
|
}, React__default.createElement(fa.FaTimes, null), " Close Store")));
|
|
70560
70665
|
};
|
|
70561
|
-
var scaleIn$
|
|
70666
|
+
var scaleIn$3 = /*#__PURE__*/styled.keyframes(["from{transform:scale(0.85);opacity:0;}to{transform:scale(1);opacity:1;}"]);
|
|
70562
70667
|
var _float = /*#__PURE__*/styled.keyframes(["0%{transform:translateY(0) rotate(0deg);opacity:1;}100%{transform:translateY(-60px) rotate(360deg);opacity:0;}"]);
|
|
70563
70668
|
var glowPulse = /*#__PURE__*/styled.keyframes(["0%,100%{box-shadow:0 0 12px rgba(245,158,11,0.5),0 0 24px rgba(245,158,11,0.2);}50%{box-shadow:0 0 24px rgba(245,158,11,0.8),0 0 48px rgba(245,158,11,0.4);}"]);
|
|
70564
70669
|
var Container$L = /*#__PURE__*/styled__default.div.withConfig({
|
|
70565
70670
|
displayName: "PurchaseSuccess__Container",
|
|
70566
70671
|
componentId: "sc-18z5q21-0"
|
|
70567
|
-
})(["position:relative;display:flex;flex-direction:column;align-items:center;gap:1.25rem;padding:2rem 1.5rem;overflow:hidden;animation:", " 0.25s ease-out;text-align:center;"], scaleIn$
|
|
70672
|
+
})(["position:relative;display:flex;flex-direction:column;align-items:center;gap:1.25rem;padding:2rem 1.5rem;overflow:hidden;animation:", " 0.25s ease-out;text-align:center;"], scaleIn$3);
|
|
70568
70673
|
var Sparkles = /*#__PURE__*/styled__default.div.withConfig({
|
|
70569
70674
|
displayName: "PurchaseSuccess__Sparkles",
|
|
70570
70675
|
componentId: "sc-18z5q21-1"
|
|
@@ -70581,7 +70686,7 @@ var Spark = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
70581
70686
|
}, function (p) {
|
|
70582
70687
|
return p.$i * 0.2;
|
|
70583
70688
|
});
|
|
70584
|
-
var Header$
|
|
70689
|
+
var Header$d = /*#__PURE__*/styled__default.div.withConfig({
|
|
70585
70690
|
displayName: "PurchaseSuccess__Header",
|
|
70586
70691
|
componentId: "sc-18z5q21-3"
|
|
70587
70692
|
})(["display:flex;flex-direction:column;align-items:center;gap:0.5rem;"]);
|
|
@@ -70593,7 +70698,7 @@ var TrophyIcon = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
70593
70698
|
displayName: "PurchaseSuccess__TrophyIcon",
|
|
70594
70699
|
componentId: "sc-18z5q21-5"
|
|
70595
70700
|
})(["width:64px;height:64px;border-radius:50%;background:rgba(245,158,11,0.15);border:2px solid #f59e0b;display:flex;align-items:center;justify-content:center;animation:", " 2s ease-in-out infinite;svg{font-size:1.75rem;color:#f59e0b;}"], glowPulse);
|
|
70596
|
-
var Title$
|
|
70701
|
+
var Title$k = /*#__PURE__*/styled__default.h2.withConfig({
|
|
70597
70702
|
displayName: "PurchaseSuccess__Title",
|
|
70598
70703
|
componentId: "sc-18z5q21-6"
|
|
70599
70704
|
})(["font-family:'Press Start 2P',cursive;font-size:0.9rem;color:#fef08a;margin:0;text-shadow:0 0 8px rgba(245,158,11,0.6);"]);
|
|
@@ -70762,9 +70867,9 @@ var CartView = function CartView(_ref2) {
|
|
|
70762
70867
|
onClose: onCloseStore != null ? onCloseStore : onClose
|
|
70763
70868
|
});
|
|
70764
70869
|
}
|
|
70765
|
-
return React__default.createElement(Container$M, null, React__default.createElement(Header$
|
|
70870
|
+
return React__default.createElement(Container$M, null, React__default.createElement(Header$e, null, React__default.createElement(Title$l, null, "Shopping Cart (", cartItems.reduce(function (s, ci) {
|
|
70766
70871
|
return s + ci.quantity;
|
|
70767
|
-
}, 0), ")"), React__default.createElement(CloseButton$
|
|
70872
|
+
}, 0), ")"), React__default.createElement(CloseButton$f, {
|
|
70768
70873
|
onPointerDown: onClose
|
|
70769
70874
|
}, 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) {
|
|
70770
70875
|
var _cartItem$metadata, _cartItem$metadata2, _cartItem$item$region2, _cartItem$item$region3;
|
|
@@ -70810,15 +70915,15 @@ var Container$M = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
70810
70915
|
displayName: "CartView__Container",
|
|
70811
70916
|
componentId: "sc-ydtyl1-0"
|
|
70812
70917
|
})(["display:flex;flex-direction:column;width:100%;gap:1rem;padding:1rem;"]);
|
|
70813
|
-
var Header$
|
|
70918
|
+
var Header$e = /*#__PURE__*/styled__default.div.withConfig({
|
|
70814
70919
|
displayName: "CartView__Header",
|
|
70815
70920
|
componentId: "sc-ydtyl1-1"
|
|
70816
70921
|
})(["display:flex;justify-content:space-between;align-items:center;"]);
|
|
70817
|
-
var Title$
|
|
70922
|
+
var Title$l = /*#__PURE__*/styled__default.h2.withConfig({
|
|
70818
70923
|
displayName: "CartView__Title",
|
|
70819
70924
|
componentId: "sc-ydtyl1-2"
|
|
70820
70925
|
})(["font-family:'Press Start 2P',cursive;font-size:1rem;color:#ffffff;margin:0;"]);
|
|
70821
|
-
var CloseButton$
|
|
70926
|
+
var CloseButton$f = /*#__PURE__*/styled__default.div.withConfig({
|
|
70822
70927
|
displayName: "CartView__CloseButton",
|
|
70823
70928
|
componentId: "sc-ydtyl1-3"
|
|
70824
70929
|
})(["padding:0.5rem;min-width:unset;width:42px;height:42px;display:flex;font-size:1.5rem;align-items:center;color:white;justify-content:center;"]);
|
|
@@ -71046,7 +71151,7 @@ var FeaturedBanner = function FeaturedBanner(_ref) {
|
|
|
71046
71151
|
background: badgeStyle.bg,
|
|
71047
71152
|
borderColor: badgeStyle.border,
|
|
71048
71153
|
color: badgeStyle.color
|
|
71049
|
-
}, item.badge))), React__default.createElement(CardBody, null, React__default.createElement(CardName, null, item.name), item.description && React__default.createElement(CardDesc, null, item.description), React__default.createElement(PriceRow$
|
|
71154
|
+
}, item.badge))), React__default.createElement(CardBody, null, React__default.createElement(CardName, null, item.name), item.description && React__default.createElement(CardDesc, null, item.description), React__default.createElement(PriceRow$3, null, item.originalPrice != null && React__default.createElement(OriginalPrice, null, "$", item.originalPrice.toFixed(2)), React__default.createElement(CurrentPrice, {
|
|
71050
71155
|
"$onSale": item.originalPrice != null
|
|
71051
71156
|
}, "$", item.price.toFixed(2))), item.endsAt && React__default.createElement(CountdownTimer, {
|
|
71052
71157
|
endsAt: item.endsAt,
|
|
@@ -71104,7 +71209,7 @@ var CardDesc = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
71104
71209
|
displayName: "FeaturedBanner__CardDesc",
|
|
71105
71210
|
componentId: "sc-egjgex-9"
|
|
71106
71211
|
})(["font-family:'Press Start 2P',cursive;font-size:0.45rem;color:rgba(255,255,255,0.6);line-height:1.4;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;"]);
|
|
71107
|
-
var PriceRow$
|
|
71212
|
+
var PriceRow$3 = /*#__PURE__*/styled__default.div.withConfig({
|
|
71108
71213
|
displayName: "FeaturedBanner__PriceRow",
|
|
71109
71214
|
componentId: "sc-egjgex-10"
|
|
71110
71215
|
})(["display:flex;align-items:center;gap:0.4rem;"]);
|
|
@@ -71417,13 +71522,13 @@ var PaymentMethodModal = function PaymentMethodModal(_ref) {
|
|
|
71417
71522
|
}
|
|
71418
71523
|
}, [selected, dcDisabled, onPayWithDC, onPayWithCard, onPayWithPix]);
|
|
71419
71524
|
var dcSubText = dcRequired !== undefined ? dcBalance.toLocaleString() + " DC available \xB7 " + dcRequired.toLocaleString() + " DC needed" : dcBalance.toLocaleString() + " DC available";
|
|
71420
|
-
return React__default.createElement(ModalPortal, null, React__default.createElement(Overlay$
|
|
71525
|
+
return React__default.createElement(ModalPortal, null, React__default.createElement(Overlay$9, {
|
|
71421
71526
|
onPointerDown: onClose
|
|
71422
|
-
}), React__default.createElement(ModalContainer$
|
|
71527
|
+
}), React__default.createElement(ModalContainer$6, null, React__default.createElement(ModalContent$6, {
|
|
71423
71528
|
onClick: stopPropagation,
|
|
71424
71529
|
onTouchStart: stopPropagation,
|
|
71425
71530
|
onPointerDown: stopPropagation
|
|
71426
|
-
}, React__default.createElement(Header$
|
|
71531
|
+
}, React__default.createElement(Header$f, null, React__default.createElement(Title$m, null, "How would you like to pay?"), React__default.createElement(CloseButton$g, {
|
|
71427
71532
|
onPointerDown: onClose,
|
|
71428
71533
|
"aria-label": "Close"
|
|
71429
71534
|
}, React__default.createElement(fa.FaTimes, null))), React__default.createElement(Options$1, null, React__default.createElement(RadioOption$1, {
|
|
@@ -71431,14 +71536,14 @@ var PaymentMethodModal = function PaymentMethodModal(_ref) {
|
|
|
71431
71536
|
onPointerDown: function onPointerDown() {
|
|
71432
71537
|
return setSelected('card');
|
|
71433
71538
|
}
|
|
71434
|
-
}, React__default.createElement(RadioCircle$
|
|
71539
|
+
}, React__default.createElement(RadioCircle$2, {
|
|
71435
71540
|
"$selected": selected === 'card'
|
|
71436
71541
|
}), React__default.createElement(OptionText$1, null, React__default.createElement(OptionLabel$2, null, "Credit Card"), React__default.createElement(OptionSub$1, null, "Stripe secure checkout"))), showPix && React__default.createElement(RadioOption$1, {
|
|
71437
71542
|
"$selected": selected === 'pix',
|
|
71438
71543
|
onPointerDown: function onPointerDown() {
|
|
71439
71544
|
return setSelected('pix');
|
|
71440
71545
|
}
|
|
71441
|
-
}, React__default.createElement(RadioCircle$
|
|
71546
|
+
}, React__default.createElement(RadioCircle$2, {
|
|
71442
71547
|
"$selected": selected === 'pix'
|
|
71443
71548
|
}), React__default.createElement(OptionText$1, null, React__default.createElement(OptionLabel$2, null, "Pix"), React__default.createElement(OptionSub$1, null, "Instant payment via Pix"))), React__default.createElement(RadioOption$1, {
|
|
71444
71549
|
"$selected": selected === 'dc',
|
|
@@ -71446,34 +71551,34 @@ var PaymentMethodModal = function PaymentMethodModal(_ref) {
|
|
|
71446
71551
|
onPointerDown: dcDisabled ? undefined : function () {
|
|
71447
71552
|
return setSelected('dc');
|
|
71448
71553
|
}
|
|
71449
|
-
}, React__default.createElement(RadioCircle$
|
|
71554
|
+
}, React__default.createElement(RadioCircle$2, {
|
|
71450
71555
|
"$selected": selected === 'dc'
|
|
71451
71556
|
}), React__default.createElement(OptionText$1, null, React__default.createElement(OptionLabel$2, null, "Definya Coin"), React__default.createElement(OptionSub$1, null, dcSubText)))), React__default.createElement(ConfirmRow$1, null, React__default.createElement(Button, {
|
|
71452
71557
|
buttonType: exports.ButtonTypes.RPGUIButton,
|
|
71453
71558
|
onPointerDown: handleConfirm
|
|
71454
71559
|
}, "Confirm")))));
|
|
71455
71560
|
};
|
|
71456
|
-
var Overlay$
|
|
71561
|
+
var Overlay$9 = /*#__PURE__*/styled__default.div.withConfig({
|
|
71457
71562
|
displayName: "PaymentMethodModal__Overlay",
|
|
71458
71563
|
componentId: "sc-1dxy6lr-0"
|
|
71459
71564
|
})(["position:fixed;inset:0;background:rgba(0,0,0,0.65);z-index:1000;"]);
|
|
71460
|
-
var ModalContainer$
|
|
71565
|
+
var ModalContainer$6 = /*#__PURE__*/styled__default.div.withConfig({
|
|
71461
71566
|
displayName: "PaymentMethodModal__ModalContainer",
|
|
71462
71567
|
componentId: "sc-1dxy6lr-1"
|
|
71463
71568
|
})(["position:fixed;inset:0;display:flex;align-items:center;justify-content:center;z-index:1001;pointer-events:none;"]);
|
|
71464
|
-
var ModalContent$
|
|
71569
|
+
var ModalContent$6 = /*#__PURE__*/styled__default.div.withConfig({
|
|
71465
71570
|
displayName: "PaymentMethodModal__ModalContent",
|
|
71466
71571
|
componentId: "sc-1dxy6lr-2"
|
|
71467
71572
|
})(["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;}}"]);
|
|
71468
|
-
var Header$
|
|
71573
|
+
var Header$f = /*#__PURE__*/styled__default.div.withConfig({
|
|
71469
71574
|
displayName: "PaymentMethodModal__Header",
|
|
71470
71575
|
componentId: "sc-1dxy6lr-3"
|
|
71471
71576
|
})(["display:flex;align-items:center;justify-content:space-between;"]);
|
|
71472
|
-
var Title$
|
|
71577
|
+
var Title$m = /*#__PURE__*/styled__default.h3.withConfig({
|
|
71473
71578
|
displayName: "PaymentMethodModal__Title",
|
|
71474
71579
|
componentId: "sc-1dxy6lr-4"
|
|
71475
71580
|
})(["margin:0;font-family:'Press Start 2P',cursive;font-size:0.7rem;color:#fef08a;"]);
|
|
71476
|
-
var CloseButton$
|
|
71581
|
+
var CloseButton$g = /*#__PURE__*/styled__default.button.withConfig({
|
|
71477
71582
|
displayName: "PaymentMethodModal__CloseButton",
|
|
71478
71583
|
componentId: "sc-1dxy6lr-5"
|
|
71479
71584
|
})(["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;}"]);
|
|
@@ -71500,7 +71605,7 @@ var RadioOption$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
71500
71605
|
var $disabled = _ref6.$disabled;
|
|
71501
71606
|
return $disabled ? 'rgba(255,255,255,0.15)' : '#f59e0b';
|
|
71502
71607
|
});
|
|
71503
|
-
var RadioCircle$
|
|
71608
|
+
var RadioCircle$2 = /*#__PURE__*/styled__default.div.withConfig({
|
|
71504
71609
|
displayName: "PaymentMethodModal__RadioCircle",
|
|
71505
71610
|
componentId: "sc-1dxy6lr-8"
|
|
71506
71611
|
})(["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) {
|
|
@@ -71683,7 +71788,7 @@ var StoreCharacterSkinRow = function StoreCharacterSkinRow(_ref) {
|
|
|
71683
71788
|
height: 32,
|
|
71684
71789
|
imgScale: 2,
|
|
71685
71790
|
centered: true
|
|
71686
|
-
}) : React__default.createElement(DefaultIcon, null, "\uD83D\uDC64")), React__default.createElement(ItemDetails$5, null, React__default.createElement(Header$
|
|
71791
|
+
}) : React__default.createElement(DefaultIcon, null, "\uD83D\uDC64")), React__default.createElement(ItemDetails$5, null, React__default.createElement(Header$g, null, React__default.createElement(ItemName$7, null, item.name)), availableCharacters.length > 0 && currentCharacter && React__default.createElement(SelectedSkinNav, null, React__default.createElement(SelectedSkin, null, "Selected:"), React__default.createElement(SkinNavArrow, {
|
|
71687
71792
|
direction: "left",
|
|
71688
71793
|
onPointerDown: handlePreviousSkin,
|
|
71689
71794
|
size: 24
|
|
@@ -71691,12 +71796,12 @@ var StoreCharacterSkinRow = function StoreCharacterSkinRow(_ref) {
|
|
|
71691
71796
|
direction: "right",
|
|
71692
71797
|
onPointerDown: handleNextSkin,
|
|
71693
71798
|
size: 24
|
|
71694
|
-
})), React__default.createElement(PriceRow$
|
|
71799
|
+
})), React__default.createElement(PriceRow$4, null, originalPrice != null && React__default.createElement(OriginalPrice$1, {
|
|
71695
71800
|
style: {
|
|
71696
71801
|
display: 'flex',
|
|
71697
71802
|
alignItems: 'center'
|
|
71698
71803
|
}
|
|
71699
|
-
}, item.currency === 'DC' ? React__default.createElement(React__default.Fragment, null, React__default.createElement(DCCoinWrapper$
|
|
71804
|
+
}, item.currency === 'DC' ? React__default.createElement(React__default.Fragment, null, React__default.createElement(DCCoinWrapper$6, {
|
|
71700
71805
|
"$scale": 0.8
|
|
71701
71806
|
}, React__default.createElement(SpriteFromAtlas, {
|
|
71702
71807
|
atlasIMG: atlasIMG,
|
|
@@ -71710,7 +71815,7 @@ var StoreCharacterSkinRow = function StoreCharacterSkinRow(_ref) {
|
|
|
71710
71815
|
alignItems: 'center',
|
|
71711
71816
|
gap: '2px'
|
|
71712
71817
|
}
|
|
71713
|
-
}, React__default.createElement(DCCoinWrapper$
|
|
71818
|
+
}, React__default.createElement(DCCoinWrapper$6, null, React__default.createElement(SimpleTooltip, {
|
|
71714
71819
|
content: "Definya Coin",
|
|
71715
71820
|
direction: "top"
|
|
71716
71821
|
}, React__default.createElement(SpriteFromAtlas, {
|
|
@@ -71729,7 +71834,7 @@ var StoreCharacterSkinRow = function StoreCharacterSkinRow(_ref) {
|
|
|
71729
71834
|
style: {
|
|
71730
71835
|
margin: '0 4px'
|
|
71731
71836
|
}
|
|
71732
|
-
}, "\xB7"), React__default.createElement(DCCoinWrapper$
|
|
71837
|
+
}, "\xB7"), React__default.createElement(DCCoinWrapper$6, {
|
|
71733
71838
|
"$scale": 0.9
|
|
71734
71839
|
}, React__default.createElement(SimpleTooltip, {
|
|
71735
71840
|
content: "Definya Coin",
|
|
@@ -71775,7 +71880,7 @@ var ItemName$7 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
71775
71880
|
displayName: "StoreCharacterSkinRow__ItemName",
|
|
71776
71881
|
componentId: "sc-81xqsx-3"
|
|
71777
71882
|
})(["font-family:'Press Start 2P',cursive;font-size:0.8125rem;color:#ffffff;text-shadow:1px 1px 0 rgba(0,0,0,0.5);"]);
|
|
71778
|
-
var PriceRow$
|
|
71883
|
+
var PriceRow$4 = /*#__PURE__*/styled__default.div.withConfig({
|
|
71779
71884
|
displayName: "StoreCharacterSkinRow__PriceRow",
|
|
71780
71885
|
componentId: "sc-81xqsx-4"
|
|
71781
71886
|
})(["display:flex;align-items:center;gap:0.5rem;margin:0.15rem 0;"]);
|
|
@@ -71797,7 +71902,7 @@ var Controls = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
71797
71902
|
displayName: "StoreCharacterSkinRow__Controls",
|
|
71798
71903
|
componentId: "sc-81xqsx-8"
|
|
71799
71904
|
})(["display:flex;align-items:center;gap:0.5rem;min-width:fit-content;"]);
|
|
71800
|
-
var DCCoinWrapper$
|
|
71905
|
+
var DCCoinWrapper$6 = /*#__PURE__*/styled__default.span.withConfig({
|
|
71801
71906
|
displayName: "StoreCharacterSkinRow__DCCoinWrapper",
|
|
71802
71907
|
componentId: "sc-81xqsx-9"
|
|
71803
71908
|
})(["display:flex;align-items:center;justify-content:center;position:relative;top:", ";left:", ";margin-right:0.3rem;"], function (p) {
|
|
@@ -71810,7 +71915,7 @@ var SkinNavArrow = /*#__PURE__*/styled__default(SelectArrow).withConfig({
|
|
|
71810
71915
|
displayName: "StoreCharacterSkinRow__SkinNavArrow",
|
|
71811
71916
|
componentId: "sc-81xqsx-10"
|
|
71812
71917
|
})(["position:static;"]);
|
|
71813
|
-
var Header$
|
|
71918
|
+
var Header$g = /*#__PURE__*/styled__default.div.withConfig({
|
|
71814
71919
|
displayName: "StoreCharacterSkinRow__Header",
|
|
71815
71920
|
componentId: "sc-81xqsx-11"
|
|
71816
71921
|
})(["display:flex;align-items:center;gap:0.5rem;"]);
|
|
@@ -72015,12 +72120,12 @@ var StoreItemRow = function StoreItemRow(_ref) {
|
|
|
72015
72120
|
height: 32,
|
|
72016
72121
|
imgScale: 2,
|
|
72017
72122
|
centered: true
|
|
72018
|
-
})), React__default.createElement(ItemDetails$6, null, React__default.createElement(ItemName$8, null, item.name), React__default.createElement(PriceRow$
|
|
72123
|
+
})), React__default.createElement(ItemDetails$6, null, React__default.createElement(ItemName$8, null, item.name), React__default.createElement(PriceRow$5, null, originalPrice != null && React__default.createElement(OriginalPrice$2, {
|
|
72019
72124
|
style: {
|
|
72020
72125
|
display: 'flex',
|
|
72021
72126
|
alignItems: 'center'
|
|
72022
72127
|
}
|
|
72023
|
-
}, item.currency === 'DC' ? React__default.createElement(React__default.Fragment, null, React__default.createElement(DCCoinWrapper$
|
|
72128
|
+
}, item.currency === 'DC' ? React__default.createElement(React__default.Fragment, null, React__default.createElement(DCCoinWrapper$7, {
|
|
72024
72129
|
"$scale": 0.8
|
|
72025
72130
|
}, React__default.createElement(SpriteFromAtlas, {
|
|
72026
72131
|
atlasIMG: atlasIMG,
|
|
@@ -72034,7 +72139,7 @@ var StoreItemRow = function StoreItemRow(_ref) {
|
|
|
72034
72139
|
alignItems: 'center',
|
|
72035
72140
|
gap: '2px'
|
|
72036
72141
|
}
|
|
72037
|
-
}, React__default.createElement(DCCoinWrapper$
|
|
72142
|
+
}, React__default.createElement(DCCoinWrapper$7, null, React__default.createElement(SimpleTooltip, {
|
|
72038
72143
|
content: "Definya Coin",
|
|
72039
72144
|
direction: "top"
|
|
72040
72145
|
}, React__default.createElement(SpriteFromAtlas, {
|
|
@@ -72053,7 +72158,7 @@ var StoreItemRow = function StoreItemRow(_ref) {
|
|
|
72053
72158
|
style: {
|
|
72054
72159
|
margin: '0 4px'
|
|
72055
72160
|
}
|
|
72056
|
-
}, "\xB7"), React__default.createElement(DCCoinWrapper$
|
|
72161
|
+
}, "\xB7"), React__default.createElement(DCCoinWrapper$7, {
|
|
72057
72162
|
"$scale": 0.9
|
|
72058
72163
|
}, React__default.createElement(SimpleTooltip, {
|
|
72059
72164
|
content: "Definya Coin",
|
|
@@ -72124,7 +72229,7 @@ var ItemName$8 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
72124
72229
|
displayName: "StoreItemRow__ItemName",
|
|
72125
72230
|
componentId: "sc-ptotuo-3"
|
|
72126
72231
|
})(["font-family:'Press Start 2P',cursive;font-size:0.8125rem;color:#ffffff;text-shadow:1px 1px 0 rgba(0,0,0,0.5);"]);
|
|
72127
|
-
var PriceRow$
|
|
72232
|
+
var PriceRow$5 = /*#__PURE__*/styled__default.div.withConfig({
|
|
72128
72233
|
displayName: "StoreItemRow__PriceRow",
|
|
72129
72234
|
componentId: "sc-ptotuo-4"
|
|
72130
72235
|
})(["display:flex;align-items:center;gap:0.5rem;margin:0.15rem 0;"]);
|
|
@@ -72142,7 +72247,7 @@ var ItemDescription = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
72142
72247
|
displayName: "StoreItemRow__ItemDescription",
|
|
72143
72248
|
componentId: "sc-ptotuo-7"
|
|
72144
72249
|
})(["font-family:'Press Start 2P',cursive;font-size:0.625rem;color:rgba(255,255,255,0.85);line-height:1.4;margin-top:2px;"]);
|
|
72145
|
-
var DCCoinWrapper$
|
|
72250
|
+
var DCCoinWrapper$7 = /*#__PURE__*/styled__default.span.withConfig({
|
|
72146
72251
|
displayName: "StoreItemRow__DCCoinWrapper",
|
|
72147
72252
|
componentId: "sc-ptotuo-8"
|
|
72148
72253
|
})(["display:flex;align-items:center;justify-content:center;position:relative;top:", ";left:", ";margin-right:0.3rem;"], function (p) {
|
|
@@ -72531,12 +72636,12 @@ var StoreItemDetails = function StoreItemDetails(_ref) {
|
|
|
72531
72636
|
if (typeof imageUrl === 'string') return imageUrl;
|
|
72532
72637
|
return imageUrl["default"] || imageUrl.src;
|
|
72533
72638
|
};
|
|
72534
|
-
return React__default.createElement(Container$O, null, React__default.createElement(Header$
|
|
72639
|
+
return React__default.createElement(Container$O, null, React__default.createElement(Header$h, null, React__default.createElement(BackButton, {
|
|
72535
72640
|
onClick: onBack
|
|
72536
72641
|
}, 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", {
|
|
72537
72642
|
src: getImageSrc(),
|
|
72538
72643
|
alt: item.name
|
|
72539
|
-
})), React__default.createElement(ItemInfo$3, null, React__default.createElement(ItemName$9, null, item.name), React__default.createElement(ItemPrice$2, null, currencySymbol, 'priceUSD' in item ? item.priceUSD : (_item$regionalPrice = item.regionalPrice) != null ? _item$regionalPrice : item.price, item.dcPrice ? " \xB7 " + item.dcPrice.toLocaleString() + " DC" : ''), React__default.createElement(Description$
|
|
72644
|
+
})), React__default.createElement(ItemInfo$3, null, React__default.createElement(ItemName$9, null, item.name), React__default.createElement(ItemPrice$2, null, currencySymbol, 'priceUSD' in item ? item.priceUSD : (_item$regionalPrice = item.regionalPrice) != null ? _item$regionalPrice : item.price, item.dcPrice ? " \xB7 " + item.dcPrice.toLocaleString() + " DC" : ''), React__default.createElement(Description$7, null, item.description))), React__default.createElement(Actions$1, null, React__default.createElement(CTAButton, {
|
|
72540
72645
|
icon: React__default.createElement(fa.FaCartPlus, null),
|
|
72541
72646
|
label: "Add to Cart",
|
|
72542
72647
|
onClick: function onClick() {
|
|
@@ -72549,7 +72654,7 @@ var Container$O = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
72549
72654
|
displayName: "StoreItemDetails__Container",
|
|
72550
72655
|
componentId: "sc-k3ho5z-0"
|
|
72551
72656
|
})(["display:flex;flex-direction:column;gap:1.5rem;padding:1.5rem;height:100%;"]);
|
|
72552
|
-
var Header$
|
|
72657
|
+
var Header$h = /*#__PURE__*/styled__default.div.withConfig({
|
|
72553
72658
|
displayName: "StoreItemDetails__Header",
|
|
72554
72659
|
componentId: "sc-k3ho5z-1"
|
|
72555
72660
|
})(["display:flex;align-items:center;gap:1rem;"]);
|
|
@@ -72581,7 +72686,7 @@ var ItemPrice$2 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
72581
72686
|
displayName: "StoreItemDetails__ItemPrice",
|
|
72582
72687
|
componentId: "sc-k3ho5z-8"
|
|
72583
72688
|
})(["font-family:'Press Start 2P',cursive;font-size:1rem;color:#fef08a;"]);
|
|
72584
|
-
var Description$
|
|
72689
|
+
var Description$7 = /*#__PURE__*/styled__default.p.withConfig({
|
|
72585
72690
|
displayName: "StoreItemDetails__Description",
|
|
72586
72691
|
componentId: "sc-k3ho5z-9"
|
|
72587
72692
|
})(["margin:0;font-family:'Press Start 2P',cursive;font-size:0.875rem;line-height:1.6;color:#ffffff;"]);
|
|
@@ -73149,7 +73254,7 @@ var TimeWidget = function TimeWidget(_ref) {
|
|
|
73149
73254
|
return React__default.createElement(Draggable, {
|
|
73150
73255
|
scale: scale,
|
|
73151
73256
|
cancel: ".time-widget-close,.time-widget-container,.time-widget-container *"
|
|
73152
|
-
}, React__default.createElement(WidgetContainer, null, React__default.createElement(CloseButton$
|
|
73257
|
+
}, React__default.createElement(WidgetContainer, null, React__default.createElement(CloseButton$h, {
|
|
73153
73258
|
onPointerDown: onClose,
|
|
73154
73259
|
className: "time-widget-close"
|
|
73155
73260
|
}, "X"), React__default.createElement(DayNightContainer, {
|
|
@@ -73166,7 +73271,7 @@ var Time = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
73166
73271
|
displayName: "TimeWidget__Time",
|
|
73167
73272
|
componentId: "sc-1ja236h-1"
|
|
73168
73273
|
})(["top:0.75rem;right:0.5rem;position:absolute;font-size:", ";color:white;"], uiFonts.size.small);
|
|
73169
|
-
var CloseButton$
|
|
73274
|
+
var CloseButton$h = /*#__PURE__*/styled__default.p.withConfig({
|
|
73170
73275
|
displayName: "TimeWidget__CloseButton",
|
|
73171
73276
|
componentId: "sc-1ja236h-2"
|
|
73172
73277
|
})(["position:absolute;top:-0.5rem;margin:0;right:-0.2rem;font-size:", " !important;z-index:1;"], uiFonts.size.small);
|
|
@@ -73445,7 +73550,7 @@ var TradingMenu = function TradingMenu(_ref) {
|
|
|
73445
73550
|
width: "500px",
|
|
73446
73551
|
cancelDrag: "#TraderContainer",
|
|
73447
73552
|
scale: scale
|
|
73448
|
-
}, React__default.createElement(Container$Q, null, React__default.createElement(Title$
|
|
73553
|
+
}, React__default.createElement(Container$Q, null, React__default.createElement(Title$n, null, type.charAt(0).toUpperCase() + type.slice(1), " Menu"), React__default.createElement("hr", {
|
|
73449
73554
|
className: "golden"
|
|
73450
73555
|
}), React__default.createElement(ScrollWrapper, {
|
|
73451
73556
|
id: "TraderContainer"
|
|
@@ -73477,7 +73582,7 @@ var Container$Q = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
73477
73582
|
displayName: "TradingMenu__Container",
|
|
73478
73583
|
componentId: "sc-1wjsz1l-0"
|
|
73479
73584
|
})(["width:100%;"]);
|
|
73480
|
-
var Title$
|
|
73585
|
+
var Title$n = /*#__PURE__*/styled__default.h1.withConfig({
|
|
73481
73586
|
displayName: "TradingMenu__Title",
|
|
73482
73587
|
componentId: "sc-1wjsz1l-1"
|
|
73483
73588
|
})(["font-size:0.7rem !important;color:yellow !important;text-align:center;"]);
|