@faststore/core 2.1.17 → 2.1.19
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/.next/BUILD_ID +1 -0
- package/.next/build-manifest.json +129 -0
- package/.next/cache/.tsbuildinfo +1 -0
- package/.next/cache/config.json +7 -0
- package/.next/cache/eslint/.cache_1gneedd +1 -0
- package/.next/cache/next-server.js.nft.json +1 -0
- package/.next/cache/webpack/client-production/0.pack +0 -0
- package/.next/cache/webpack/client-production/index.pack +0 -0
- package/.next/cache/webpack/server-production/0.pack +0 -0
- package/.next/cache/webpack/server-production/index.pack +0 -0
- package/.next/export-marker.json +1 -0
- package/.next/images-manifest.json +1 -0
- package/.next/next-server.js.nft.json +1 -0
- package/.next/package.json +1 -0
- package/.next/prerender-manifest.json +1 -0
- package/.next/react-loadable-manifest.json +44 -0
- package/.next/required-server-files.json +1 -0
- package/.next/routes-manifest.json +1 -0
- package/.next/server/chunks/123.js +58 -0
- package/.next/server/chunks/143.js +106 -0
- package/.next/server/chunks/144.js +1338 -0
- package/.next/server/chunks/183.js +90 -0
- package/.next/server/chunks/184.js +61 -0
- package/.next/server/chunks/186.js +136 -0
- package/.next/server/chunks/247.js +61 -0
- package/.next/server/chunks/253.js +535 -0
- package/.next/server/chunks/269.js +517 -0
- package/.next/server/chunks/287.js +58 -0
- package/.next/server/chunks/289.js +242 -0
- package/.next/server/chunks/312.js +697 -0
- package/.next/server/chunks/350.js +143 -0
- package/.next/server/chunks/487.js +9142 -0
- package/.next/server/chunks/502.js +626 -0
- package/.next/server/chunks/576.js +90 -0
- package/.next/server/chunks/597.js +211 -0
- package/.next/server/chunks/650.js +9142 -0
- package/.next/server/chunks/676.js +32 -0
- package/.next/server/chunks/721.js +679 -0
- package/.next/server/chunks/74.js +4100 -0
- package/.next/server/chunks/825.js +4039 -0
- package/.next/server/chunks/854.js +72 -0
- package/.next/server/chunks/859.js +959 -0
- package/.next/server/chunks/886.js +120 -0
- package/.next/server/chunks/907.js +1956 -0
- package/.next/server/chunks/98.js +124 -0
- package/.next/server/chunks/font-manifest.json +1 -0
- package/.next/server/font-manifest.json +1 -0
- package/.next/server/middleware-build-manifest.js +1 -0
- package/.next/server/middleware-manifest.json +6 -0
- package/.next/server/middleware-react-loadable-manifest.js +1 -0
- package/.next/server/pages/404.js +386 -0
- package/.next/server/pages/404.js.nft.json +1 -0
- package/.next/server/pages/500.js +388 -0
- package/.next/server/pages/500.js.nft.json +1 -0
- package/.next/server/pages/[...slug].js +1005 -0
- package/.next/server/pages/[...slug].js.nft.json +1 -0
- package/.next/server/pages/[slug]/p.js +2390 -0
- package/.next/server/pages/[slug]/p.js.nft.json +1 -0
- package/.next/server/pages/_app.js +281 -0
- package/.next/server/pages/_app.js.nft.json +1 -0
- package/.next/server/pages/_document.js +340 -0
- package/.next/server/pages/_document.js.nft.json +1 -0
- package/.next/server/pages/_error.js +164 -0
- package/.next/server/pages/_error.js.nft.json +1 -0
- package/.next/server/pages/account.js +363 -0
- package/.next/server/pages/account.js.nft.json +1 -0
- package/.next/server/pages/api/graphql.js +365 -0
- package/.next/server/pages/api/graphql.js.nft.json +1 -0
- package/.next/server/pages/api/preview.js +148 -0
- package/.next/server/pages/api/preview.js.nft.json +1 -0
- package/.next/server/pages/checkout.js +363 -0
- package/.next/server/pages/checkout.js.nft.json +1 -0
- package/.next/server/pages/en-US/404.html +81 -0
- package/.next/server/pages/en-US/404.json +1 -0
- package/.next/server/pages/en-US/500.html +81 -0
- package/.next/server/pages/en-US/500.json +1 -0
- package/.next/server/pages/en-US/account.html +81 -0
- package/.next/server/pages/en-US/account.json +1 -0
- package/.next/server/pages/en-US/checkout.html +81 -0
- package/.next/server/pages/en-US/checkout.json +1 -0
- package/.next/server/pages/en-US/login.html +81 -0
- package/.next/server/pages/en-US/login.json +1 -0
- package/.next/server/pages/en-US/s.html +81 -0
- package/.next/server/pages/en-US/s.json +1 -0
- package/.next/server/pages/en-US.html +81 -0
- package/.next/server/pages/en-US.json +1 -0
- package/.next/server/pages/index.js +439 -0
- package/.next/server/pages/index.js.nft.json +1 -0
- package/.next/server/pages/login.js +368 -0
- package/.next/server/pages/login.js.nft.json +1 -0
- package/.next/server/pages/s.js +466 -0
- package/.next/server/pages/s.js.nft.json +1 -0
- package/.next/server/pages-manifest.json +16 -0
- package/.next/server/webpack-api-runtime.js +229 -0
- package/.next/server/webpack-runtime.js +229 -0
- package/.next/static/HWyxnnh37qprVz28Rroho/_buildManifest.js +1 -0
- package/.next/static/HWyxnnh37qprVz28Rroho/_ssgManifest.js +1 -0
- package/.next/static/chunks/130-15325805e3c8d5f4.js +1 -0
- package/.next/static/chunks/143.dd8a556e6957baa1.js +1 -0
- package/.next/static/chunks/495.0ecd099878b2a36d.js +1 -0
- package/.next/static/chunks/502.b14533723651e5a1.js +1 -0
- package/.next/static/chunks/548-ab84e9e8b49413ab.js +1 -0
- package/.next/static/chunks/597.f8d0595b113c70af.js +1 -0
- package/.next/static/chunks/64.7ea3677ac3a10e00.js +1 -0
- package/.next/static/chunks/651.7142f31ce1e052b3.js +1 -0
- package/.next/static/chunks/706-5aea41dd07970d2d.js +1 -0
- package/.next/static/chunks/738-67a288ca3569cdbb.js +1 -0
- package/.next/static/chunks/741.52f7fb873418346f.js +1 -0
- package/.next/static/chunks/791-63b1ccf9964b6517.js +1 -0
- package/.next/static/chunks/98.97381d2021f86cd9.js +1 -0
- package/.next/static/chunks/framework-dfd14d7ce6600b03.js +1 -0
- package/.next/static/chunks/main-fd466221927468fd.js +1 -0
- package/.next/static/chunks/pages/404-d5f20744ecd83121.js +1 -0
- package/.next/static/chunks/pages/500-3911549ab88d0378.js +1 -0
- package/.next/static/chunks/pages/[...slug]-3a37fd4d13cb2ba8.js +1 -0
- package/.next/static/chunks/pages/[slug]/p-bf47c90571846f86.js +1 -0
- package/.next/static/chunks/pages/_app-79d333aa6001a806.js +1 -0
- package/.next/static/chunks/pages/_error-a7a0c1d9bfbb4f38.js +1 -0
- package/.next/static/chunks/pages/account-d248acc931146694.js +1 -0
- package/.next/static/chunks/pages/checkout-97f6d6f36f041a6f.js +1 -0
- package/.next/static/chunks/pages/index-e9727cb06d9ae961.js +1 -0
- package/.next/static/chunks/pages/login-4cc4b8e52608f076.js +1 -0
- package/.next/static/chunks/pages/s-aabfa5c08338974a.js +1 -0
- package/.next/static/chunks/polyfills-c67a75d1b6f99dc8.js +1 -0
- package/.next/static/chunks/webpack-cbb5ca873d13aa82.js +1 -0
- package/.next/static/css/08e3fc80f9bad95d.css +1 -0
- package/.next/static/css/0e00026896a2ee3e.css +1 -0
- package/.next/static/css/1b23beb5af203ffb.css +1 -0
- package/.next/static/css/584640ffee46aa49.css +1 -0
- package/.next/static/css/7d822a137c54a781.css +1 -0
- package/.next/static/css/a49f71ae6bb528e0.css +1 -0
- package/.next/static/css/ccbb6df6cae68586.css +1 -0
- package/.next/static/css/e02cdad8fc000339.css +1 -0
- package/.next/static/css/f7ed956d370744ea.css +1 -0
- package/.next/static/css/f9d59f597a4d8f82.css +1 -0
- package/.next/trace +80 -0
- package/.turbo/turbo-build.log +13 -14
- package/README.md +1 -2
- package/cms/faststore/content-types.json +2 -2
- package/package.json +4 -4
- package/public/~partytown/debug/partytown-atomics.js +556 -0
- package/public/~partytown/debug/partytown-media.js +374 -0
- package/public/~partytown/debug/partytown-sandbox-sw.js +543 -0
- package/public/~partytown/debug/partytown-sw.js +59 -0
- package/public/~partytown/debug/partytown-ww-atomics.js +1789 -0
- package/public/~partytown/debug/partytown-ww-sw.js +1781 -0
- package/public/~partytown/debug/partytown.js +72 -0
- package/public/~partytown/partytown-atomics.js +2 -0
- package/public/~partytown/partytown-media.js +2 -0
- package/public/~partytown/partytown-sw.js +2 -0
- package/public/~partytown/partytown.js +2 -0
- package/src/components/cms/GlobalSections.tsx +2 -3
- package/src/components/common/Alert/section.module.scss +2 -0
- package/src/components/common/Footer/Footer.tsx +5 -14
- package/src/components/navigation/Navbar/Navbar.tsx +1 -1
- package/src/components/navigation/NavbarLinks/NavbarLinks.tsx +1 -1
- package/src/components/product/ProductCard/ProductCard.tsx +1 -1
- package/src/components/sections/BannerNewsletter/BannerNewsletter.tsx +2 -4
- package/src/components/sections/BannerText/BannerText.tsx +0 -2
- package/src/components/sections/Breadcrumb/Breadcrumb.tsx +1 -1
- package/src/components/sections/Incentives/Incentives.tsx +1 -1
- package/src/components/sections/Incentives/section.module.scss +2 -0
- package/src/components/sections/Navbar/section.module.scss +4 -0
- package/src/components/sections/Newsletter/section.module.scss +2 -0
- package/src/components/sections/ProductDetails/ProductDetails.tsx +2 -4
- package/src/components/sections/ProductGallery/ProductGallery.tsx +2 -4
- package/src/components/sections/ProductGallery/section.module.scss +13 -0
- package/src/components/sections/ProductShelf/section.module.scss +5 -0
- package/src/components/sections/ProductTiles/ProductTiles.tsx +18 -20
- package/src/components/sections/Section/section.scss +8 -0
- package/src/components/skeletons/ProductShelfSkeleton/ProductShelfSkeleton.tsx +1 -1
- package/src/components/templates/LandingPage/LandingPage.tsx +102 -0
- package/src/components/templates/LandingPage/index.ts +2 -0
- package/src/components/templates/ProductListingPage/ProductListingPage.tsx +138 -0
- package/src/components/templates/ProductListingPage/index.ts +2 -0
- package/src/components/ui/Incentives/Incentives.tsx +1 -1
- package/src/components/ui/Newsletter/Newsletter.tsx +1 -1
- package/src/components/ui/ProductGallery/ProductGallery.tsx +5 -2
- package/src/pages/[...slug].tsx +45 -130
- package/src/pages/api/preview.ts +18 -2
- package/src/pages/index.tsx +1 -3
- package/src/sdk/error/MissingContentError/MissingContentError.ts +15 -0
- package/src/sdk/error/MissingContentError/index.ts +1 -0
- package/src/sdk/error/MultipleContentError/MultipleContentError.ts +15 -0
- package/src/sdk/error/MultipleContentError/index.ts +1 -0
- package/src/server/cms.ts +7 -21
- package/src/styles/global/components.scss +0 -6
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
exports.id = 183;
|
|
2
|
+
exports.ids = [183];
|
|
3
|
+
exports.modules = {
|
|
4
|
+
|
|
5
|
+
/***/ 97183:
|
|
6
|
+
/***/ ((module) => {
|
|
7
|
+
|
|
8
|
+
module.exports = {
|
|
9
|
+
seo: {
|
|
10
|
+
title: 'NextJSStore',
|
|
11
|
+
description: 'Fast Demo Store',
|
|
12
|
+
titleTemplate: '%s | FastStore',
|
|
13
|
+
author: 'Store Framework'
|
|
14
|
+
},
|
|
15
|
+
// Theming
|
|
16
|
+
theme: 'custom-theme',
|
|
17
|
+
// Ecommerce Platform
|
|
18
|
+
platform: 'vtex',
|
|
19
|
+
// Platform specific configs for API
|
|
20
|
+
api: {
|
|
21
|
+
storeId: 'storeframework',
|
|
22
|
+
workspace: 'master',
|
|
23
|
+
environment: 'vtexcommercestable',
|
|
24
|
+
hideUnavailableItems: true,
|
|
25
|
+
incrementAddress: false
|
|
26
|
+
},
|
|
27
|
+
// Default session
|
|
28
|
+
session: {
|
|
29
|
+
currency: {
|
|
30
|
+
code: 'USD',
|
|
31
|
+
symbol: '$'
|
|
32
|
+
},
|
|
33
|
+
locale: 'en-US',
|
|
34
|
+
channel: '{"salesChannel":"1","regionId":""}',
|
|
35
|
+
country: 'USA',
|
|
36
|
+
deliveryMode: null,
|
|
37
|
+
addressType: null,
|
|
38
|
+
postalCode: null,
|
|
39
|
+
geoCoordinates: null,
|
|
40
|
+
person: null
|
|
41
|
+
},
|
|
42
|
+
// Default cart
|
|
43
|
+
cart: {
|
|
44
|
+
id: '',
|
|
45
|
+
items: [],
|
|
46
|
+
messages: [],
|
|
47
|
+
shouldSplitItem: true
|
|
48
|
+
},
|
|
49
|
+
// Production URLs
|
|
50
|
+
storeUrl: 'https://vtexfaststore.com',
|
|
51
|
+
secureSubdomain: 'https://secure.vtexfaststore.com',
|
|
52
|
+
checkoutUrl: 'https://secure.vtexfaststore.com/checkout',
|
|
53
|
+
loginUrl: 'https://secure.vtexfaststore.com/api/io/login',
|
|
54
|
+
accountUrl: 'https://secure.vtexfaststore.com/api/io/account',
|
|
55
|
+
// Preview redirects
|
|
56
|
+
previewRedirects: {
|
|
57
|
+
home: '/',
|
|
58
|
+
plp: '/office',
|
|
59
|
+
search: '/s?q=headphone',
|
|
60
|
+
pdp: '/apple-magic-mouse/p'
|
|
61
|
+
},
|
|
62
|
+
// Lighthouse CI
|
|
63
|
+
lighthouse: {
|
|
64
|
+
server: process.env.BASE_SITE_URL || 'http://localhost:3000',
|
|
65
|
+
pages: {
|
|
66
|
+
home: '/',
|
|
67
|
+
pdp: '/apple-magic-mouse/p',
|
|
68
|
+
collection: '/office'
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
// E2E CI
|
|
72
|
+
cypress: {
|
|
73
|
+
pages: {
|
|
74
|
+
home: '/',
|
|
75
|
+
pdp: '/apple-magic-mouse/p',
|
|
76
|
+
collection: '/office',
|
|
77
|
+
collection_filtered: '/office/?category-1=office&marca=acer&facets=category-1%2Cmarca',
|
|
78
|
+
search: '/s?q=orange'
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
analytics: {
|
|
82
|
+
// https://developers.google.com/tag-platform/tag-manager/web#standard_web_page_installation,
|
|
83
|
+
gtmContainerId: 'GTM-PGHZ95N'
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
/***/ })
|
|
88
|
+
|
|
89
|
+
};
|
|
90
|
+
;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
exports.id = 184;
|
|
3
|
+
exports.ids = [184];
|
|
4
|
+
exports.modules = {
|
|
5
|
+
|
|
6
|
+
/***/ 55184:
|
|
7
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
8
|
+
|
|
9
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
10
|
+
/* harmony export */ "m": () => (/* binding */ useViewItemListEvent)
|
|
11
|
+
/* harmony export */ });
|
|
12
|
+
/* harmony import */ var _faststore_sdk__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(71072);
|
|
13
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(16689);
|
|
14
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
15
|
+
/* harmony import */ var src_sdk_session__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(97295);
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
const useViewItemListEvent = ({
|
|
20
|
+
products,
|
|
21
|
+
title,
|
|
22
|
+
page,
|
|
23
|
+
pageSize
|
|
24
|
+
}) => {
|
|
25
|
+
const {
|
|
26
|
+
currency: {
|
|
27
|
+
code
|
|
28
|
+
}
|
|
29
|
+
} = (0,src_sdk_session__WEBPACK_IMPORTED_MODULE_1__/* .useSession */ .kP)();
|
|
30
|
+
const sendViewItemListEvent = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(() => {
|
|
31
|
+
(0,_faststore_sdk__WEBPACK_IMPORTED_MODULE_2__/* .sendAnalyticsEvent */ ._)({
|
|
32
|
+
name: 'view_item_list',
|
|
33
|
+
params: {
|
|
34
|
+
item_list_name: title,
|
|
35
|
+
item_list_id: title,
|
|
36
|
+
items: products.map(({
|
|
37
|
+
node: product
|
|
38
|
+
}, index) => ({
|
|
39
|
+
item_id: product.isVariantOf.productGroupID,
|
|
40
|
+
item_name: product.isVariantOf.name,
|
|
41
|
+
item_brand: product.brand.name,
|
|
42
|
+
item_variant: product.sku,
|
|
43
|
+
price: product.offers.offers[0].price,
|
|
44
|
+
index: page * pageSize + index + 1,
|
|
45
|
+
discount: product.offers.offers[0].listPrice - product.offers.offers[0].price,
|
|
46
|
+
currency: code,
|
|
47
|
+
item_variant_name: product.name,
|
|
48
|
+
product_reference_id: product.gtin
|
|
49
|
+
}))
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
}, [code, products, title, page, pageSize]);
|
|
53
|
+
return {
|
|
54
|
+
sendViewItemListEvent
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
/***/ })
|
|
59
|
+
|
|
60
|
+
};
|
|
61
|
+
;
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
exports.id = 186;
|
|
2
|
+
exports.ids = [186];
|
|
3
|
+
exports.modules = {
|
|
4
|
+
|
|
5
|
+
/***/ 7434:
|
|
6
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
7
|
+
|
|
8
|
+
"use strict";
|
|
9
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
10
|
+
/* harmony export */ "Z": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
11
|
+
/* harmony export */ });
|
|
12
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(16689);
|
|
13
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
14
|
+
|
|
15
|
+
function EmptyState({ testId = 'fs-empty-state', title, titleIcon, variant = 'default', bkgColor = 'default', children, ...otherProps }) {
|
|
16
|
+
return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement("section", { "data-fs-empty-state": true, "data-fs-empty-state-variant": variant, "data-fs-empty-state-bkg-color": bkgColor, "data-fs-content": "empty-state", "data-testid": testId, ...otherProps },
|
|
17
|
+
title && (react__WEBPACK_IMPORTED_MODULE_0___default().createElement("header", { "data-fs-empty-state-title": true },
|
|
18
|
+
titleIcon && react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, titleIcon),
|
|
19
|
+
react__WEBPACK_IMPORTED_MODULE_0___default().createElement("p", null, title))),
|
|
20
|
+
children));
|
|
21
|
+
}
|
|
22
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (EmptyState);
|
|
23
|
+
//# sourceMappingURL=EmptyState.js.map
|
|
24
|
+
|
|
25
|
+
/***/ }),
|
|
26
|
+
|
|
27
|
+
/***/ 11186:
|
|
28
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
29
|
+
|
|
30
|
+
"use strict";
|
|
31
|
+
|
|
32
|
+
// EXPORTS
|
|
33
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
34
|
+
"Z": () => (/* reexport */ sections_EmptyState_EmptyState)
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
// EXTERNAL MODULE: ./src/components/sections/Section/index.ts
|
|
38
|
+
var Section = __webpack_require__(57067);
|
|
39
|
+
// EXTERNAL MODULE: ./src/components/sections/EmptyState/section.module.scss
|
|
40
|
+
var section_module = __webpack_require__(96791);
|
|
41
|
+
var section_module_default = /*#__PURE__*/__webpack_require__.n(section_module);
|
|
42
|
+
// EXTERNAL MODULE: ../components/dist/organisms/EmptyState/EmptyState.js
|
|
43
|
+
var EmptyState = __webpack_require__(7434);
|
|
44
|
+
;// CONCATENATED MODULE: ./src/customizations/components/overrides/EmptyState.tsx
|
|
45
|
+
// This is an example of how it can be used on the starter.
|
|
46
|
+
const SECTION = 'EmptyState';
|
|
47
|
+
const overrides = {
|
|
48
|
+
name: SECTION,
|
|
49
|
+
components: {
|
|
50
|
+
EmptyState: {
|
|
51
|
+
props: {}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
/* harmony default export */ const overrides_EmptyState = (overrides);
|
|
56
|
+
;// CONCATENATED MODULE: ./src/components/sections/EmptyState/Overrides.tsx
|
|
57
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
58
|
+
|
|
59
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
60
|
+
|
|
61
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
const emptyStateComponentsCustomization = {};
|
|
66
|
+
const emptyStatePropsCustomization = {};
|
|
67
|
+
Object.entries(overrides_EmptyState.components).forEach(([key, value]) => {
|
|
68
|
+
if (value.Component) {
|
|
69
|
+
emptyStateComponentsCustomization[key] = value.Component;
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
Object.entries(overrides_EmptyState.components).forEach(([key, value]) => {
|
|
73
|
+
if (value.props) {
|
|
74
|
+
emptyStatePropsCustomization[key] = value.props;
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
|
|
78
|
+
const Components = _objectSpread({
|
|
79
|
+
EmptyState: EmptyState/* default */.Z
|
|
80
|
+
}, emptyStateComponentsCustomization);
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
// EXTERNAL MODULE: external "react/jsx-runtime"
|
|
84
|
+
var jsx_runtime_ = __webpack_require__(20997);
|
|
85
|
+
;// CONCATENATED MODULE: ./src/components/sections/EmptyState/EmptyState.tsx
|
|
86
|
+
function EmptyState_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
87
|
+
|
|
88
|
+
function EmptyState_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? EmptyState_ownKeys(Object(source), !0).forEach(function (key) { EmptyState_defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : EmptyState_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
89
|
+
|
|
90
|
+
function EmptyState_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
const {
|
|
97
|
+
EmptyState: EmptyStateWrapper
|
|
98
|
+
} = Components;
|
|
99
|
+
|
|
100
|
+
function EmptyState_EmptyState({
|
|
101
|
+
title = emptyStatePropsCustomization.EmptyState.title,
|
|
102
|
+
titleIcon = emptyStatePropsCustomization.EmptyState.titleIcon,
|
|
103
|
+
children
|
|
104
|
+
}) {
|
|
105
|
+
return /*#__PURE__*/jsx_runtime_.jsx(Section/* default */.Z, {
|
|
106
|
+
className: `${(section_module_default()).section} section-empty-state`,
|
|
107
|
+
children: /*#__PURE__*/jsx_runtime_.jsx(EmptyStateWrapper, EmptyState_objectSpread(EmptyState_objectSpread({
|
|
108
|
+
bkgColor: "light"
|
|
109
|
+
}, emptyStatePropsCustomization.EmptyState), {}, {
|
|
110
|
+
title: title,
|
|
111
|
+
titleIcon: titleIcon,
|
|
112
|
+
children: children
|
|
113
|
+
}))
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/* harmony default export */ const sections_EmptyState_EmptyState = (EmptyState_EmptyState);
|
|
118
|
+
;// CONCATENATED MODULE: ./src/components/sections/EmptyState/index.ts
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
/***/ }),
|
|
122
|
+
|
|
123
|
+
/***/ 96791:
|
|
124
|
+
/***/ ((module) => {
|
|
125
|
+
|
|
126
|
+
// Exports
|
|
127
|
+
module.exports = {
|
|
128
|
+
"section": "section_section__TgowL",
|
|
129
|
+
"load": "section_load__F5rqW"
|
|
130
|
+
};
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
/***/ })
|
|
134
|
+
|
|
135
|
+
};
|
|
136
|
+
;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
exports.id = 247;
|
|
3
|
+
exports.ids = [247];
|
|
4
|
+
exports.modules = {
|
|
5
|
+
|
|
6
|
+
/***/ 57549:
|
|
7
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
8
|
+
|
|
9
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
10
|
+
/* harmony export */ "Z": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
11
|
+
/* harmony export */ });
|
|
12
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(16689);
|
|
13
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
14
|
+
/* harmony import */ var ___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(82691);
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
const Price = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function Price({ value, as: Component = 'span', variant = 'selling', testId = 'fs-price', formatter = (price) => price, SRText, ...otherProps }, ref) {
|
|
18
|
+
const formattedPrice = formatter(value, variant);
|
|
19
|
+
return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Component, { ref: ref, "data-fs-price": true, "data-fs-price-variant": variant, "data-testid": testId, ...otherProps },
|
|
20
|
+
SRText && react__WEBPACK_IMPORTED_MODULE_0___default().createElement(___WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, { text: SRText }),
|
|
21
|
+
formattedPrice));
|
|
22
|
+
});
|
|
23
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Price);
|
|
24
|
+
//# sourceMappingURL=Price.js.map
|
|
25
|
+
|
|
26
|
+
/***/ }),
|
|
27
|
+
|
|
28
|
+
/***/ 95346:
|
|
29
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
30
|
+
|
|
31
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
32
|
+
/* harmony export */ "P": () => (/* binding */ useFormattedPrice)
|
|
33
|
+
/* harmony export */ });
|
|
34
|
+
/* unused harmony export usePriceFormatter */
|
|
35
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(16689);
|
|
36
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
37
|
+
/* harmony import */ var _session__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(97295);
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
const usePriceFormatter = ({
|
|
41
|
+
decimals
|
|
42
|
+
} = {}) => {
|
|
43
|
+
const {
|
|
44
|
+
currency,
|
|
45
|
+
locale
|
|
46
|
+
} = (0,_session__WEBPACK_IMPORTED_MODULE_1__/* .useSession */ .kP)();
|
|
47
|
+
return (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(price => Intl.NumberFormat(locale, {
|
|
48
|
+
style: 'currency',
|
|
49
|
+
currency: currency.code,
|
|
50
|
+
minimumFractionDigits: decimals ? 2 : 0
|
|
51
|
+
}).format(price), [currency.code, locale, decimals]);
|
|
52
|
+
};
|
|
53
|
+
const useFormattedPrice = price => {
|
|
54
|
+
const formatter = usePriceFormatter();
|
|
55
|
+
return (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(() => formatter(price), [formatter, price]);
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
/***/ })
|
|
59
|
+
|
|
60
|
+
};
|
|
61
|
+
;
|