@rpg-engine/long-bow 0.8.69 → 0.8.70
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/Store/Store.d.ts +5 -0
- package/dist/long-bow.cjs.development.js +102 -121
- 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 +102 -121
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Store/Store.tsx +29 -8
- package/src/components/Store/StoreCharacterSkinRow.tsx +37 -125
- package/src/components/Store/__test__/MetadataCollector.spec.tsx +2 -1
- package/src/components/Store/__test__/useStoreMetadata.spec.tsx +10 -10
- package/src/stories/Features/store/Store.stories.tsx +3 -0
package/dist/long-bow.esm.js
CHANGED
|
@@ -57962,12 +57962,9 @@ var StoreCharacterSkinRow = function StoreCharacterSkinRow(_ref) {
|
|
|
57962
57962
|
atlasIMG = _ref.atlasIMG,
|
|
57963
57963
|
onAddToCart = _ref.onAddToCart,
|
|
57964
57964
|
userAccountType = _ref.userAccountType;
|
|
57965
|
-
var _useState = useState(
|
|
57966
|
-
|
|
57967
|
-
|
|
57968
|
-
var _useState2 = useState(0),
|
|
57969
|
-
currentIndex = _useState2[0],
|
|
57970
|
-
setCurrentIndex = _useState2[1];
|
|
57965
|
+
var _useState = useState(0),
|
|
57966
|
+
currentIndex = _useState[0],
|
|
57967
|
+
setCurrentIndex = _useState[1];
|
|
57971
57968
|
// Get available characters from metadata
|
|
57972
57969
|
var availableCharacters = item.metadataType === MetadataType.CharacterSkin && ((_item$metadataConfig = item.metadataConfig) == null ? void 0 : _item$metadataConfig.availableCharacters) || [];
|
|
57973
57970
|
// Get the active character entity atlas info
|
|
@@ -57977,24 +57974,6 @@ var StoreCharacterSkinRow = function StoreCharacterSkinRow(_ref) {
|
|
|
57977
57974
|
useEffect(function () {
|
|
57978
57975
|
setCurrentIndex(0);
|
|
57979
57976
|
}, [item._id]);
|
|
57980
|
-
var handleQuantityChange = function handleQuantityChange(e) {
|
|
57981
|
-
var value = parseInt(e.target.value) || 1;
|
|
57982
|
-
setQuantity(Math.min(Math.max(1, value), 99));
|
|
57983
|
-
};
|
|
57984
|
-
var handleBlur = function handleBlur() {
|
|
57985
|
-
if (quantity < 1) setQuantity(1);
|
|
57986
|
-
if (quantity > 99) setQuantity(99);
|
|
57987
|
-
};
|
|
57988
|
-
var incrementQuantity = function incrementQuantity() {
|
|
57989
|
-
setQuantity(function (prev) {
|
|
57990
|
-
return Math.min(prev + 1, 99);
|
|
57991
|
-
});
|
|
57992
|
-
};
|
|
57993
|
-
var decrementQuantity = function decrementQuantity() {
|
|
57994
|
-
setQuantity(function (prev) {
|
|
57995
|
-
return Math.max(1, prev - 1);
|
|
57996
|
-
});
|
|
57997
|
-
};
|
|
57998
57977
|
var handlePreviousSkin = function handlePreviousSkin() {
|
|
57999
57978
|
setCurrentIndex(function (prevIndex) {
|
|
58000
57979
|
return prevIndex === 0 ? availableCharacters.length - 1 : prevIndex - 1;
|
|
@@ -58008,26 +57987,21 @@ var StoreCharacterSkinRow = function StoreCharacterSkinRow(_ref) {
|
|
|
58008
57987
|
var hasRequiredAccount = !((_item$requiredAccount = item.requiredAccountType) != null && _item$requiredAccount.length) || item.requiredAccountType.includes(userAccountType);
|
|
58009
57988
|
var handleAddToCart = function handleAddToCart() {
|
|
58010
57989
|
if (!hasRequiredAccount) return;
|
|
58011
|
-
//
|
|
57990
|
+
// Always use a quantity of 1
|
|
58012
57991
|
if (availableCharacters.length > 0 && currentCharacter) {
|
|
58013
|
-
onAddToCart(item,
|
|
57992
|
+
onAddToCart(item, 1, {
|
|
58014
57993
|
selectedSkinName: currentCharacter.name,
|
|
58015
57994
|
selectedSkinTextureKey: currentCharacter.textureKey
|
|
58016
57995
|
});
|
|
58017
57996
|
} else {
|
|
58018
|
-
onAddToCart(item,
|
|
57997
|
+
onAddToCart(item, 1);
|
|
58019
57998
|
}
|
|
58020
|
-
setQuantity(1); // Reset quantity after adding to cart
|
|
58021
57999
|
};
|
|
58022
58000
|
var getSpriteKey = function getSpriteKey(textureKey) {
|
|
58023
58001
|
return textureKey + '/down/standing/0.png';
|
|
58024
58002
|
};
|
|
58025
58003
|
var currentCharacter = availableCharacters[currentIndex];
|
|
58026
|
-
return React.createElement(ItemWrapper, null, React.createElement(ItemIconContainer$2, null,
|
|
58027
|
-
direction: "left",
|
|
58028
|
-
onPointerDown: handlePreviousSkin,
|
|
58029
|
-
size: 24
|
|
58030
|
-
}), React.createElement(SpriteContainer$5, null, React.createElement(ErrorBoundary, null, React.createElement(SpriteFromAtlas, {
|
|
58004
|
+
return React.createElement(ItemWrapper, null, React.createElement(ItemIconContainer$2, null, entityAtlasJSON && entityAtlasIMG && currentCharacter ? React.createElement(SpriteFromAtlas, {
|
|
58031
58005
|
atlasJSON: entityAtlasJSON,
|
|
58032
58006
|
atlasIMG: entityAtlasIMG,
|
|
58033
58007
|
spriteKey: getSpriteKey(currentCharacter.textureKey),
|
|
@@ -58035,11 +58009,7 @@ var StoreCharacterSkinRow = function StoreCharacterSkinRow(_ref) {
|
|
|
58035
58009
|
height: 32,
|
|
58036
58010
|
imgScale: 2,
|
|
58037
58011
|
centered: true
|
|
58038
|
-
})
|
|
58039
|
-
direction: "right",
|
|
58040
|
-
onPointerDown: handleNextSkin,
|
|
58041
|
-
size: 24
|
|
58042
|
-
})) : React.createElement(SpriteFromAtlas, {
|
|
58012
|
+
}) : React.createElement(SpriteFromAtlas, {
|
|
58043
58013
|
atlasJSON: atlasJSON,
|
|
58044
58014
|
atlasIMG: atlasIMG,
|
|
58045
58015
|
spriteKey: item.texturePath,
|
|
@@ -58047,23 +58017,15 @@ var StoreCharacterSkinRow = function StoreCharacterSkinRow(_ref) {
|
|
|
58047
58017
|
height: 32,
|
|
58048
58018
|
imgScale: 2,
|
|
58049
58019
|
centered: true
|
|
58050
|
-
})), React.createElement(ItemDetails$1, null, React.createElement(ItemName$1, null, item.name), availableCharacters.length > 0 && currentCharacter && React.createElement(
|
|
58020
|
+
})), React.createElement(ItemDetails$1, null, React.createElement(Header$8, null, React.createElement(ItemName$1, null, item.name)), availableCharacters.length > 0 && currentCharacter && React.createElement(SelectedSkinNav, null, React.createElement(SelectedSkin, null, "Selected:"), React.createElement(SkinNavArrow, {
|
|
58051
58021
|
direction: "left",
|
|
58052
|
-
onPointerDown:
|
|
58022
|
+
onPointerDown: handlePreviousSkin,
|
|
58053
58023
|
size: 24
|
|
58054
|
-
}), React.createElement(
|
|
58055
|
-
type: "number",
|
|
58056
|
-
value: quantity,
|
|
58057
|
-
onChange: handleQuantityChange,
|
|
58058
|
-
onBlur: handleBlur,
|
|
58059
|
-
min: 1,
|
|
58060
|
-
max: 99,
|
|
58061
|
-
className: "rpgui-input"
|
|
58062
|
-
}), React.createElement(SelectArrow, {
|
|
58024
|
+
}), React.createElement(SelectedSkin, null, currentCharacter.name), React.createElement(SkinNavArrow, {
|
|
58063
58025
|
direction: "right",
|
|
58064
|
-
onPointerDown:
|
|
58026
|
+
onPointerDown: handleNextSkin,
|
|
58065
58027
|
size: 24
|
|
58066
|
-
})), React.createElement(CTAButton, {
|
|
58028
|
+
})), React.createElement(ItemPrice, null, "$", item.price)), React.createElement(Controls, null, React.createElement(CTAButton, {
|
|
58067
58029
|
icon: React.createElement(FaCartPlus, null),
|
|
58068
58030
|
label: "Add",
|
|
58069
58031
|
onClick: handleAddToCart,
|
|
@@ -58077,47 +58039,40 @@ var ItemWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
|
58077
58039
|
var ItemIconContainer$2 = /*#__PURE__*/styled.div.withConfig({
|
|
58078
58040
|
displayName: "StoreCharacterSkinRow__ItemIconContainer",
|
|
58079
58041
|
componentId: "sc-81xqsx-1"
|
|
58080
|
-
})(["
|
|
58081
|
-
var CharacterSkinPreviewContainer = /*#__PURE__*/styled.div.withConfig({
|
|
58082
|
-
displayName: "StoreCharacterSkinRow__CharacterSkinPreviewContainer",
|
|
58083
|
-
componentId: "sc-81xqsx-2"
|
|
58084
|
-
})(["position:relative;display:flex;align-items:center;width:140px;height:42px;justify-content:space-between;"]);
|
|
58085
|
-
var SpriteContainer$5 = /*#__PURE__*/styled.div.withConfig({
|
|
58086
|
-
displayName: "StoreCharacterSkinRow__SpriteContainer",
|
|
58087
|
-
componentId: "sc-81xqsx-3"
|
|
58088
|
-
})(["display:flex;align-items:center;justify-content:center;position:absolute;left:50%;transform:translateX(-50%);"]);
|
|
58089
|
-
var NavArrow = /*#__PURE__*/styled(SelectArrow).withConfig({
|
|
58090
|
-
displayName: "StoreCharacterSkinRow__NavArrow",
|
|
58091
|
-
componentId: "sc-81xqsx-4"
|
|
58092
|
-
})(["z-index:2;"]);
|
|
58042
|
+
})(["width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:4px;padding:4px;"]);
|
|
58093
58043
|
var ItemDetails$1 = /*#__PURE__*/styled.div.withConfig({
|
|
58094
58044
|
displayName: "StoreCharacterSkinRow__ItemDetails",
|
|
58095
|
-
componentId: "sc-81xqsx-
|
|
58045
|
+
componentId: "sc-81xqsx-2"
|
|
58096
58046
|
})(["flex:1;display:flex;flex-direction:column;gap:0.5rem;"]);
|
|
58097
58047
|
var ItemName$1 = /*#__PURE__*/styled.div.withConfig({
|
|
58098
58048
|
displayName: "StoreCharacterSkinRow__ItemName",
|
|
58099
|
-
componentId: "sc-81xqsx-
|
|
58049
|
+
componentId: "sc-81xqsx-3"
|
|
58100
58050
|
})(["font-family:'Press Start 2P',cursive;font-size:0.875rem;color:#ffffff;"]);
|
|
58101
58051
|
var SelectedSkin = /*#__PURE__*/styled.div.withConfig({
|
|
58102
58052
|
displayName: "StoreCharacterSkinRow__SelectedSkin",
|
|
58103
|
-
componentId: "sc-81xqsx-
|
|
58053
|
+
componentId: "sc-81xqsx-4"
|
|
58104
58054
|
})(["font-family:'Press Start 2P',cursive;font-size:0.65rem;color:#fef08a;"]);
|
|
58105
58055
|
var ItemPrice = /*#__PURE__*/styled.div.withConfig({
|
|
58106
58056
|
displayName: "StoreCharacterSkinRow__ItemPrice",
|
|
58107
|
-
componentId: "sc-81xqsx-
|
|
58057
|
+
componentId: "sc-81xqsx-5"
|
|
58108
58058
|
})(["font-family:'Press Start 2P',cursive;font-size:0.75rem;color:#fef08a;"]);
|
|
58109
58059
|
var Controls = /*#__PURE__*/styled.div.withConfig({
|
|
58110
58060
|
displayName: "StoreCharacterSkinRow__Controls",
|
|
58111
|
-
componentId: "sc-81xqsx-
|
|
58061
|
+
componentId: "sc-81xqsx-6"
|
|
58112
58062
|
})(["display:flex;align-items:center;gap:1rem;min-width:fit-content;"]);
|
|
58113
|
-
|
|
58114
|
-
|
|
58115
|
-
|
|
58116
|
-
|
|
58117
|
-
|
|
58118
|
-
|
|
58119
|
-
|
|
58120
|
-
|
|
58063
|
+
// Styled arrow override for inline nav arrows
|
|
58064
|
+
var SkinNavArrow = /*#__PURE__*/styled(SelectArrow).withConfig({
|
|
58065
|
+
displayName: "StoreCharacterSkinRow__SkinNavArrow",
|
|
58066
|
+
componentId: "sc-81xqsx-7"
|
|
58067
|
+
})(["position:static;"]);
|
|
58068
|
+
var Header$8 = /*#__PURE__*/styled.div.withConfig({
|
|
58069
|
+
displayName: "StoreCharacterSkinRow__Header",
|
|
58070
|
+
componentId: "sc-81xqsx-8"
|
|
58071
|
+
})(["display:flex;align-items:center;gap:0.5rem;"]);
|
|
58072
|
+
var SelectedSkinNav = /*#__PURE__*/styled.div.withConfig({
|
|
58073
|
+
displayName: "StoreCharacterSkinRow__SelectedSkinNav",
|
|
58074
|
+
componentId: "sc-81xqsx-9"
|
|
58075
|
+
})(["display:flex;align-items:center;gap:0.5rem;"]);
|
|
58121
58076
|
|
|
58122
58077
|
var StoreItemRow = function StoreItemRow(_ref) {
|
|
58123
58078
|
var _item$requiredAccount;
|
|
@@ -58161,11 +58116,11 @@ var StoreItemRow = function StoreItemRow(_ref) {
|
|
|
58161
58116
|
height: 32,
|
|
58162
58117
|
imgScale: 2,
|
|
58163
58118
|
centered: true
|
|
58164
|
-
})), React.createElement(ItemDetails$2, null, React.createElement(ItemName$2, null, item.name), React.createElement(ItemPrice$1, null, "$", item.price)), React.createElement(Controls$1, null, React.createElement(ArrowsContainer
|
|
58119
|
+
})), React.createElement(ItemDetails$2, null, React.createElement(ItemName$2, null, item.name), React.createElement(ItemPrice$1, null, "$", item.price)), React.createElement(Controls$1, null, React.createElement(ArrowsContainer, null, React.createElement(SelectArrow, {
|
|
58165
58120
|
direction: "left",
|
|
58166
58121
|
onPointerDown: decrementQuantity,
|
|
58167
58122
|
size: 24
|
|
58168
|
-
}), React.createElement(QuantityInput
|
|
58123
|
+
}), React.createElement(QuantityInput, {
|
|
58169
58124
|
type: "number",
|
|
58170
58125
|
value: quantity,
|
|
58171
58126
|
onChange: handleQuantityChange,
|
|
@@ -58208,11 +58163,11 @@ var Controls$1 = /*#__PURE__*/styled.div.withConfig({
|
|
|
58208
58163
|
displayName: "StoreItemRow__Controls",
|
|
58209
58164
|
componentId: "sc-ptotuo-5"
|
|
58210
58165
|
})(["display:flex;align-items:center;gap:1rem;min-width:fit-content;"]);
|
|
58211
|
-
var ArrowsContainer
|
|
58166
|
+
var ArrowsContainer = /*#__PURE__*/styled.div.withConfig({
|
|
58212
58167
|
displayName: "StoreItemRow__ArrowsContainer",
|
|
58213
58168
|
componentId: "sc-ptotuo-6"
|
|
58214
58169
|
})(["position:relative;display:flex;align-items:center;width:120px;height:42px;justify-content:space-between;"]);
|
|
58215
|
-
var QuantityInput
|
|
58170
|
+
var QuantityInput = /*#__PURE__*/styled.input.withConfig({
|
|
58216
58171
|
displayName: "StoreItemRow__QuantityInput",
|
|
58217
58172
|
componentId: "sc-ptotuo-7"
|
|
58218
58173
|
})(["width:40px;text-align:center;margin:0 auto;font-size:0.875rem;background:rgba(0,0,0,0.2);color:#ffffff;border:none;padding:0.25rem;&::-webkit-inner-spin-button,&::-webkit-outer-spin-button{-webkit-appearance:none;margin:0;}"]);
|
|
@@ -58395,7 +58350,7 @@ var StoreItemDetails = function StoreItemDetails(_ref) {
|
|
|
58395
58350
|
if (typeof imageUrl === 'string') return imageUrl;
|
|
58396
58351
|
return imageUrl["default"] || imageUrl.src;
|
|
58397
58352
|
};
|
|
58398
|
-
return React.createElement(Container$M, null, React.createElement(Header$
|
|
58353
|
+
return React.createElement(Container$M, null, React.createElement(Header$9, null, React.createElement(BackButton, {
|
|
58399
58354
|
onClick: onBack
|
|
58400
58355
|
}, React.createElement(FaArrowLeft, null), React.createElement("span", null, "Back"))), React.createElement(Content$5, null, React.createElement(DetailsGrid, null, React.createElement(ItemIcon, null, React.createElement("img", {
|
|
58401
58356
|
src: getImageSrc(),
|
|
@@ -58413,7 +58368,7 @@ var Container$M = /*#__PURE__*/styled.div.withConfig({
|
|
|
58413
58368
|
displayName: "StoreItemDetails__Container",
|
|
58414
58369
|
componentId: "sc-k3ho5z-0"
|
|
58415
58370
|
})(["display:flex;flex-direction:column;gap:1.5rem;padding:1.5rem;height:100%;"]);
|
|
58416
|
-
var Header$
|
|
58371
|
+
var Header$9 = /*#__PURE__*/styled.div.withConfig({
|
|
58417
58372
|
displayName: "StoreItemDetails__Header",
|
|
58418
58373
|
componentId: "sc-k3ho5z-1"
|
|
58419
58374
|
})(["display:flex;align-items:center;gap:1rem;"]);
|
|
@@ -58466,11 +58421,23 @@ var Store = function Store(_ref) {
|
|
|
58466
58421
|
_ref$loading = _ref.loading,
|
|
58467
58422
|
loading = _ref$loading === void 0 ? false : _ref$loading,
|
|
58468
58423
|
error = _ref.error,
|
|
58469
|
-
onClose = _ref.onClose
|
|
58424
|
+
onClose = _ref.onClose,
|
|
58425
|
+
_ref$hidePremiumTab = _ref.hidePremiumTab,
|
|
58426
|
+
hidePremiumTab = _ref$hidePremiumTab === void 0 ? false : _ref$hidePremiumTab,
|
|
58427
|
+
tabOrder = _ref.tabOrder,
|
|
58428
|
+
defaultActiveTab = _ref.defaultActiveTab;
|
|
58470
58429
|
var _useState = useState(null),
|
|
58471
58430
|
selectedPack = _useState[0],
|
|
58472
58431
|
setSelectedPack = _useState[1];
|
|
58473
|
-
var _useState2 = useState(
|
|
58432
|
+
var _useState2 = useState(function () {
|
|
58433
|
+
var initialTabs = (tabOrder != null ? tabOrder : ['premium', 'packs', 'items']).filter(function (id) {
|
|
58434
|
+
return !(hidePremiumTab && id === 'premium');
|
|
58435
|
+
});
|
|
58436
|
+
if (defaultActiveTab && initialTabs.includes(defaultActiveTab)) {
|
|
58437
|
+
return defaultActiveTab;
|
|
58438
|
+
}
|
|
58439
|
+
return hidePremiumTab ? 'items' : 'premium';
|
|
58440
|
+
}),
|
|
58474
58441
|
activeTab = _useState2[0],
|
|
58475
58442
|
setActiveTab = _useState2[1];
|
|
58476
58443
|
var _useStoreCart = useStoreCart(),
|
|
@@ -58557,37 +58524,49 @@ var Store = function Store(_ref) {
|
|
|
58557
58524
|
if (error) {
|
|
58558
58525
|
return React.createElement(ErrorMessage$2, null, error);
|
|
58559
58526
|
}
|
|
58560
|
-
|
|
58561
|
-
|
|
58562
|
-
|
|
58563
|
-
|
|
58564
|
-
|
|
58565
|
-
|
|
58566
|
-
|
|
58567
|
-
|
|
58568
|
-
|
|
58569
|
-
|
|
58570
|
-
|
|
58571
|
-
|
|
58572
|
-
|
|
58573
|
-
|
|
58574
|
-
|
|
58575
|
-
|
|
58576
|
-
|
|
58577
|
-
|
|
58578
|
-
|
|
58579
|
-
|
|
58580
|
-
|
|
58581
|
-
|
|
58582
|
-
|
|
58583
|
-
|
|
58584
|
-
|
|
58585
|
-
|
|
58586
|
-
|
|
58587
|
-
|
|
58588
|
-
|
|
58589
|
-
|
|
58590
|
-
|
|
58527
|
+
// Build tabs dynamically based on props
|
|
58528
|
+
var tabIds = tabOrder != null ? tabOrder : ['premium', 'packs', 'items'];
|
|
58529
|
+
var availableTabIds = tabIds.filter(function (id) {
|
|
58530
|
+
return !(hidePremiumTab && id === 'premium');
|
|
58531
|
+
});
|
|
58532
|
+
var tabsMap = {
|
|
58533
|
+
premium: {
|
|
58534
|
+
id: 'premium',
|
|
58535
|
+
title: 'Premium',
|
|
58536
|
+
content: React.createElement(StorePacksSection, {
|
|
58537
|
+
packs: packs.filter(function (pack) {
|
|
58538
|
+
return pack.priceUSD >= 9.99;
|
|
58539
|
+
}),
|
|
58540
|
+
onAddToCart: handleAddPackToCart,
|
|
58541
|
+
onSelectPack: setSelectedPack
|
|
58542
|
+
})
|
|
58543
|
+
},
|
|
58544
|
+
packs: {
|
|
58545
|
+
id: 'packs',
|
|
58546
|
+
title: 'Packs',
|
|
58547
|
+
content: React.createElement(StorePacksSection, {
|
|
58548
|
+
packs: packs.filter(function (pack) {
|
|
58549
|
+
return pack.priceUSD < 9.99;
|
|
58550
|
+
}),
|
|
58551
|
+
onAddToCart: handleAddPackToCart,
|
|
58552
|
+
onSelectPack: setSelectedPack
|
|
58553
|
+
})
|
|
58554
|
+
},
|
|
58555
|
+
items: {
|
|
58556
|
+
id: 'items',
|
|
58557
|
+
title: 'Items',
|
|
58558
|
+
content: React.createElement(StoreItemsSection, {
|
|
58559
|
+
items: filteredItems.items,
|
|
58560
|
+
onAddToCart: handleAddToCart,
|
|
58561
|
+
atlasJSON: atlasJSON,
|
|
58562
|
+
atlasIMG: atlasIMG,
|
|
58563
|
+
userAccountType: userAccountType
|
|
58564
|
+
})
|
|
58565
|
+
}
|
|
58566
|
+
};
|
|
58567
|
+
var tabs = availableTabIds.map(function (id) {
|
|
58568
|
+
return tabsMap[id];
|
|
58569
|
+
});
|
|
58591
58570
|
return React.createElement(DraggableContainer, {
|
|
58592
58571
|
title: "Store",
|
|
58593
58572
|
onCloseButton: onClose,
|
|
@@ -58655,7 +58634,9 @@ var Store = function Store(_ref) {
|
|
|
58655
58634
|
borderColor: "#f59e0b",
|
|
58656
58635
|
hoverColor: "#fef3c7",
|
|
58657
58636
|
activeTab: activeTab,
|
|
58658
|
-
onTabChange:
|
|
58637
|
+
onTabChange: function onTabChange(tabId) {
|
|
58638
|
+
return setActiveTab(tabId);
|
|
58639
|
+
}
|
|
58659
58640
|
})), cartItems.length > 0 && React.createElement(Footer$2, null, React.createElement(CartSummary, null, React.createElement(CartInfo, null, React.createElement("span", null, "Items in cart:"), React.createElement("span", null, getTotalItems())), React.createElement(CartInfo, null, React.createElement("span", null, "Total:"), React.createElement("span", null, "$", getTotalPrice().toFixed(2)))), React.createElement(CTAButton, {
|
|
58660
58641
|
icon: React.createElement(FaShoppingCart, null),
|
|
58661
58642
|
label: "Proceed to Checkout ($" + getTotalPrice().toFixed(2) + ")",
|
|
@@ -58864,7 +58845,7 @@ var TradingItemRow = function TradingItemRow(_ref) {
|
|
|
58864
58845
|
}
|
|
58865
58846
|
return null;
|
|
58866
58847
|
};
|
|
58867
|
-
return React.createElement(ItemWrapper$2, null, React.createElement(ItemIconContainer$4, null, React.createElement(SpriteContainer$
|
|
58848
|
+
return React.createElement(ItemWrapper$2, null, React.createElement(ItemIconContainer$4, null, React.createElement(SpriteContainer$5, null, React.createElement(ItemInfoWrapper, {
|
|
58868
58849
|
atlasIMG: atlasIMG,
|
|
58869
58850
|
atlasJSON: atlasJSON,
|
|
58870
58851
|
equipmentSet: equipmentSet,
|
|
@@ -58898,7 +58879,7 @@ var TradingItemRow = function TradingItemRow(_ref) {
|
|
|
58898
58879
|
onPointerDown: function onPointerDown() {
|
|
58899
58880
|
return onLeftClick();
|
|
58900
58881
|
}
|
|
58901
|
-
}), React.createElement(QuantityInput$
|
|
58882
|
+
}), React.createElement(QuantityInput$1, {
|
|
58902
58883
|
type: "text",
|
|
58903
58884
|
value: inputQty,
|
|
58904
58885
|
onChange: handleQuantityChange,
|
|
@@ -58936,7 +58917,7 @@ var ItemIconContainer$4 = /*#__PURE__*/styled.div.withConfig({
|
|
|
58936
58917
|
displayName: "TradingItemRow__ItemIconContainer",
|
|
58937
58918
|
componentId: "sc-mja0b5-3"
|
|
58938
58919
|
})(["display:flex;justify-content:flex-start;align-items:center;flex:0 0 40px;"]);
|
|
58939
|
-
var SpriteContainer$
|
|
58920
|
+
var SpriteContainer$5 = /*#__PURE__*/styled.div.withConfig({
|
|
58940
58921
|
displayName: "TradingItemRow__SpriteContainer",
|
|
58941
58922
|
componentId: "sc-mja0b5-4"
|
|
58942
58923
|
})(["position:relative;top:-0.5rem;left:0;"]);
|
|
@@ -58948,7 +58929,7 @@ var QuantityContainer$1 = /*#__PURE__*/styled.div.withConfig({
|
|
|
58948
58929
|
displayName: "TradingItemRow__QuantityContainer",
|
|
58949
58930
|
componentId: "sc-mja0b5-6"
|
|
58950
58931
|
})(["display:flex;min-width:90px;width:40%;justify-content:flex-end;align-items:center;flex:30%;gap:2px;position:relative;"]);
|
|
58951
|
-
var QuantityInput$
|
|
58932
|
+
var QuantityInput$1 = /*#__PURE__*/styled.input.withConfig({
|
|
58952
58933
|
displayName: "TradingItemRow__QuantityInput",
|
|
58953
58934
|
componentId: "sc-mja0b5-7"
|
|
58954
58935
|
})(["width:30px;text-align:center;background-color:", ";color:white;border:none;padding:1px;font-size:", ";position:relative;right:4px;"], uiColors.darkGray, uiFonts.size.small);
|