@faststore/core 2.1.72 → 2.1.75

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.
Files changed (151) hide show
  1. package/.turbo/turbo-build.log +1 -1
  2. package/package.json +2 -2
  3. package/public/icons.svg +1 -1
  4. package/src/components/sections/Footer/Footer.tsx +3 -2
  5. package/.next/BUILD_ID +0 -1
  6. package/.next/build-manifest.json +0 -129
  7. package/.next/cache/.tsbuildinfo +0 -1
  8. package/.next/cache/config.json +0 -7
  9. package/.next/cache/eslint/.cache_1gneedd +0 -1
  10. package/.next/cache/next-server.js.nft.json +0 -1
  11. package/.next/cache/webpack/client-production/0.pack +0 -0
  12. package/.next/cache/webpack/client-production/index.pack +0 -0
  13. package/.next/cache/webpack/server-production/0.pack +0 -0
  14. package/.next/cache/webpack/server-production/index.pack +0 -0
  15. package/.next/export-marker.json +0 -1
  16. package/.next/images-manifest.json +0 -1
  17. package/.next/next-server.js.nft.json +0 -1
  18. package/.next/package.json +0 -1
  19. package/.next/prerender-manifest.json +0 -1
  20. package/.next/react-loadable-manifest.json +0 -44
  21. package/.next/required-server-files.json +0 -1
  22. package/.next/routes-manifest.json +0 -1
  23. package/.next/server/chunks/123.js +0 -58
  24. package/.next/server/chunks/143.js +0 -106
  25. package/.next/server/chunks/183.js +0 -94
  26. package/.next/server/chunks/184.js +0 -61
  27. package/.next/server/chunks/186.js +0 -113
  28. package/.next/server/chunks/247.js +0 -61
  29. package/.next/server/chunks/253.js +0 -509
  30. package/.next/server/chunks/269.js +0 -517
  31. package/.next/server/chunks/287.js +0 -58
  32. package/.next/server/chunks/289.js +0 -239
  33. package/.next/server/chunks/312.js +0 -697
  34. package/.next/server/chunks/350.js +0 -143
  35. package/.next/server/chunks/487.js +0 -9142
  36. package/.next/server/chunks/502.js +0 -626
  37. package/.next/server/chunks/576.js +0 -94
  38. package/.next/server/chunks/597.js +0 -211
  39. package/.next/server/chunks/650.js +0 -9142
  40. package/.next/server/chunks/676.js +0 -32
  41. package/.next/server/chunks/721.js +0 -650
  42. package/.next/server/chunks/74.js +0 -4051
  43. package/.next/server/chunks/81.js +0 -1254
  44. package/.next/server/chunks/825.js +0 -4039
  45. package/.next/server/chunks/854.js +0 -72
  46. package/.next/server/chunks/859.js +0 -959
  47. package/.next/server/chunks/886.js +0 -120
  48. package/.next/server/chunks/907.js +0 -1911
  49. package/.next/server/chunks/98.js +0 -124
  50. package/.next/server/chunks/font-manifest.json +0 -1
  51. package/.next/server/font-manifest.json +0 -1
  52. package/.next/server/middleware-build-manifest.js +0 -1
  53. package/.next/server/middleware-manifest.json +0 -6
  54. package/.next/server/middleware-react-loadable-manifest.js +0 -1
  55. package/.next/server/pages/404.js +0 -386
  56. package/.next/server/pages/404.js.nft.json +0 -1
  57. package/.next/server/pages/500.js +0 -388
  58. package/.next/server/pages/500.js.nft.json +0 -1
  59. package/.next/server/pages/[...slug].js +0 -1005
  60. package/.next/server/pages/[...slug].js.nft.json +0 -1
  61. package/.next/server/pages/[slug]/p.js +0 -2366
  62. package/.next/server/pages/[slug]/p.js.nft.json +0 -1
  63. package/.next/server/pages/_app.js +0 -280
  64. package/.next/server/pages/_app.js.nft.json +0 -1
  65. package/.next/server/pages/_document.js +0 -352
  66. package/.next/server/pages/_document.js.nft.json +0 -1
  67. package/.next/server/pages/_error.js +0 -164
  68. package/.next/server/pages/_error.js.nft.json +0 -1
  69. package/.next/server/pages/account.js +0 -363
  70. package/.next/server/pages/account.js.nft.json +0 -1
  71. package/.next/server/pages/api/graphql.js +0 -365
  72. package/.next/server/pages/api/graphql.js.nft.json +0 -1
  73. package/.next/server/pages/api/preview.js +0 -148
  74. package/.next/server/pages/api/preview.js.nft.json +0 -1
  75. package/.next/server/pages/checkout.js +0 -363
  76. package/.next/server/pages/checkout.js.nft.json +0 -1
  77. package/.next/server/pages/en-US/404.html +0 -81
  78. package/.next/server/pages/en-US/404.json +0 -1
  79. package/.next/server/pages/en-US/500.html +0 -81
  80. package/.next/server/pages/en-US/500.json +0 -1
  81. package/.next/server/pages/en-US/account.html +0 -81
  82. package/.next/server/pages/en-US/account.json +0 -1
  83. package/.next/server/pages/en-US/checkout.html +0 -81
  84. package/.next/server/pages/en-US/checkout.json +0 -1
  85. package/.next/server/pages/en-US/login.html +0 -81
  86. package/.next/server/pages/en-US/login.json +0 -1
  87. package/.next/server/pages/en-US/s.html +0 -81
  88. package/.next/server/pages/en-US/s.json +0 -1
  89. package/.next/server/pages/en-US.html +0 -81
  90. package/.next/server/pages/en-US.json +0 -1
  91. package/.next/server/pages/index.js +0 -439
  92. package/.next/server/pages/index.js.nft.json +0 -1
  93. package/.next/server/pages/login.js +0 -368
  94. package/.next/server/pages/login.js.nft.json +0 -1
  95. package/.next/server/pages/s.js +0 -466
  96. package/.next/server/pages/s.js.nft.json +0 -1
  97. package/.next/server/pages-manifest.json +0 -16
  98. package/.next/server/webpack-api-runtime.js +0 -229
  99. package/.next/server/webpack-runtime.js +0 -229
  100. package/.next/static/aSzsV8X849t8fIqwqTSl6/_buildManifest.js +0 -1
  101. package/.next/static/aSzsV8X849t8fIqwqTSl6/_ssgManifest.js +0 -1
  102. package/.next/static/chunks/143.dd8a556e6957baa1.js +0 -1
  103. package/.next/static/chunks/209-d1d2eeaeefbc68f7.js +0 -1
  104. package/.next/static/chunks/495.0ecd099878b2a36d.js +0 -1
  105. package/.next/static/chunks/502.b14533723651e5a1.js +0 -1
  106. package/.next/static/chunks/548-ab84e9e8b49413ab.js +0 -1
  107. package/.next/static/chunks/597.f8d0595b113c70af.js +0 -1
  108. package/.next/static/chunks/64.2f385ef39cd5877d.js +0 -1
  109. package/.next/static/chunks/651.7142f31ce1e052b3.js +0 -1
  110. package/.next/static/chunks/706-5129dae523299ce4.js +0 -1
  111. package/.next/static/chunks/738-67a288ca3569cdbb.js +0 -1
  112. package/.next/static/chunks/741.52f7fb873418346f.js +0 -1
  113. package/.next/static/chunks/791-ca162aa335ec6439.js +0 -1
  114. package/.next/static/chunks/98.97381d2021f86cd9.js +0 -1
  115. package/.next/static/chunks/framework-dfd14d7ce6600b03.js +0 -1
  116. package/.next/static/chunks/main-fd466221927468fd.js +0 -1
  117. package/.next/static/chunks/pages/404-14d27e3706f3d2c3.js +0 -1
  118. package/.next/static/chunks/pages/500-250ccf5c9626e451.js +0 -1
  119. package/.next/static/chunks/pages/[...slug]-bcfaf0c5d60b57a0.js +0 -1
  120. package/.next/static/chunks/pages/[slug]/p-9f01491e25c6ad3a.js +0 -1
  121. package/.next/static/chunks/pages/_app-aa068e481630f73b.js +0 -1
  122. package/.next/static/chunks/pages/_error-a7a0c1d9bfbb4f38.js +0 -1
  123. package/.next/static/chunks/pages/account-d248acc931146694.js +0 -1
  124. package/.next/static/chunks/pages/checkout-97f6d6f36f041a6f.js +0 -1
  125. package/.next/static/chunks/pages/index-bdbfb082027ed2b7.js +0 -1
  126. package/.next/static/chunks/pages/login-b1bdf30c951bb60d.js +0 -1
  127. package/.next/static/chunks/pages/s-aabfa5c08338974a.js +0 -1
  128. package/.next/static/chunks/polyfills-c67a75d1b6f99dc8.js +0 -1
  129. package/.next/static/chunks/webpack-6f8f102d8fa95ea0.js +0 -1
  130. package/.next/static/css/20e4a3a45cdd65f4.css +0 -1
  131. package/.next/static/css/527e334fa69cf40a.css +0 -1
  132. package/.next/static/css/6e1a7434f061d0ef.css +0 -1
  133. package/.next/static/css/9e76fef1c9ca89af.css +0 -1
  134. package/.next/static/css/a2eefb25a4608343.css +0 -1
  135. package/.next/static/css/c110411bf3c3f5d1.css +0 -1
  136. package/.next/static/css/cb7d1fcea42fab9c.css +0 -1
  137. package/.next/static/css/dcc281598933766a.css +0 -1
  138. package/.next/static/css/df588bb98c0b0ca6.css +0 -1
  139. package/.next/static/css/e3b039e8f5daf95f.css +0 -1
  140. package/.next/trace +0 -80
  141. package/public/~partytown/debug/partytown-atomics.js +0 -556
  142. package/public/~partytown/debug/partytown-media.js +0 -374
  143. package/public/~partytown/debug/partytown-sandbox-sw.js +0 -543
  144. package/public/~partytown/debug/partytown-sw.js +0 -59
  145. package/public/~partytown/debug/partytown-ww-atomics.js +0 -1789
  146. package/public/~partytown/debug/partytown-ww-sw.js +0 -1781
  147. package/public/~partytown/debug/partytown.js +0 -72
  148. package/public/~partytown/partytown-atomics.js +0 -2
  149. package/public/~partytown/partytown-media.js +0 -2
  150. package/public/~partytown/partytown-sw.js +0 -2
  151. package/public/~partytown/partytown.js +0 -2
@@ -1 +0,0 @@
1
- {"version":3,"pages404":true,"basePath":"","redirects":[{"source":"/:path+/","destination":"/:path+","locale":false,"internal":true,"statusCode":308,"regex":"^(?:/((?:[^/]+?)(?:/(?:[^/]+?))*))/$"}],"headers":[],"dynamicRoutes":[{"page":"/[slug]/p","regex":"^/([^/]+?)/p(?:/)?$","routeKeys":{"slug":"slug"},"namedRegex":"^/(?<slug>[^/]+?)/p(?:/)?$"},{"page":"/[...slug]","regex":"^/(.+?)(?:/)?$","routeKeys":{"slug":"slug"},"namedRegex":"^/(?<slug>.+?)(?:/)?$"}],"staticRoutes":[{"page":"/","regex":"^/(?:/)?$","routeKeys":{},"namedRegex":"^/(?:/)?$"},{"page":"/404","regex":"^/404(?:/)?$","routeKeys":{},"namedRegex":"^/404(?:/)?$"},{"page":"/500","regex":"^/500(?:/)?$","routeKeys":{},"namedRegex":"^/500(?:/)?$"},{"page":"/account","regex":"^/account(?:/)?$","routeKeys":{},"namedRegex":"^/account(?:/)?$"},{"page":"/checkout","regex":"^/checkout(?:/)?$","routeKeys":{},"namedRegex":"^/checkout(?:/)?$"},{"page":"/login","regex":"^/login(?:/)?$","routeKeys":{},"namedRegex":"^/login(?:/)?$"},{"page":"/s","regex":"^/s(?:/)?$","routeKeys":{},"namedRegex":"^/s(?:/)?$"}],"dataRoutes":[{"page":"/","dataRouteRegex":"^/_next/data/aSzsV8X849t8fIqwqTSl6/index.json$"},{"page":"/404","dataRouteRegex":"^/_next/data/aSzsV8X849t8fIqwqTSl6/404.json$"},{"page":"/500","dataRouteRegex":"^/_next/data/aSzsV8X849t8fIqwqTSl6/500.json$"},{"page":"/account","dataRouteRegex":"^/_next/data/aSzsV8X849t8fIqwqTSl6/account.json$"},{"page":"/checkout","dataRouteRegex":"^/_next/data/aSzsV8X849t8fIqwqTSl6/checkout.json$"},{"page":"/login","dataRouteRegex":"^/_next/data/aSzsV8X849t8fIqwqTSl6/login.json$"},{"page":"/s","dataRouteRegex":"^/_next/data/aSzsV8X849t8fIqwqTSl6/s.json$"},{"page":"/[slug]/p","routeKeys":{"slug":"slug"},"dataRouteRegex":"^/_next/data/aSzsV8X849t8fIqwqTSl6/([^/]+?)/p\\.json$","namedDataRouteRegex":"^/_next/data/aSzsV8X849t8fIqwqTSl6/(?<slug>[^/]+?)/p\\.json$"},{"page":"/[...slug]","routeKeys":{"slug":"slug"},"dataRouteRegex":"^/_next/data/aSzsV8X849t8fIqwqTSl6/(.+?)\\.json$","namedDataRouteRegex":"^/_next/data/aSzsV8X849t8fIqwqTSl6/(?<slug>.+?)\\.json$"}],"i18n":{"locales":["en-US"],"defaultLocale":"en-US"},"rewrites":[]}
@@ -1,58 +0,0 @@
1
- "use strict";
2
- exports.id = 123;
3
- exports.ids = [123];
4
- exports.modules = {
5
-
6
- /***/ 60123:
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__(82765);
15
- /* harmony import */ var ___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(25045);
16
- /* harmony import */ var ___WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(875);
17
-
18
-
19
- const QuantitySelector = ({ max, min = 1, initial, disabled = false, onChange, testId = 'fs-quantity-selector', ...otherProps }) => {
20
- const [quantity, setQuantity] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(initial ?? min);
21
- const isLeftDisabled = quantity === min;
22
- const isRightDisabled = quantity === max;
23
- const changeQuantity = (increaseValue) => {
24
- const quantityValue = validateQuantityBounds(quantity + increaseValue);
25
- onChange?.(quantityValue);
26
- setQuantity(quantityValue);
27
- };
28
- const increase = () => changeQuantity(1);
29
- const decrease = () => changeQuantity(-1);
30
- function validateQuantityBounds(n) {
31
- const maxValue = min ? Math.max(n, min) : n;
32
- return max ? Math.min(maxValue, max) : maxValue;
33
- }
34
- function validateInput(e) {
35
- const val = e.currentTarget.value;
36
- if (!Number.isNaN(Number(val))) {
37
- setQuantity(() => {
38
- const quantityValue = validateQuantityBounds(Number(val));
39
- onChange?.(quantityValue);
40
- return quantityValue;
41
- });
42
- }
43
- }
44
- (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => {
45
- initial && setQuantity(initial);
46
- }, [initial]);
47
- return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", { "data-fs-quantity-selector": disabled ? 'disabled' : 'true', "data-testid": testId, ...otherProps },
48
- react__WEBPACK_IMPORTED_MODULE_0___default().createElement(___WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, { "data-quantity-selector-button": "left", icon: react__WEBPACK_IMPORTED_MODULE_0___default().createElement(___WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z, { name: "Minus", width: 16, height: 16, weight: "bold" }), "aria-label": "Decrement Quantity", "aria-controls": "quantity-selector-input", disabled: isLeftDisabled || disabled, onClick: decrease, testId: `${testId}-left-button`, size: "small" }),
49
- react__WEBPACK_IMPORTED_MODULE_0___default().createElement(___WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z, { "data-quantity-selector-input": true, id: "quantity-selector-input", "aria-label": "Quantity", value: quantity, onChange: validateInput, disabled: disabled }),
50
- react__WEBPACK_IMPORTED_MODULE_0___default().createElement(___WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, { "data-quantity-selector-button": "right", "aria-controls": "quantity-selector-input", "aria-label": "Increment Quantity", disabled: isRightDisabled || disabled, icon: react__WEBPACK_IMPORTED_MODULE_0___default().createElement(___WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z, { name: "Plus", width: 16, height: 16, weight: "bold" }), onClick: increase, testId: `${testId}-right-button`, size: "small" })));
51
- };
52
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (QuantitySelector);
53
- //# sourceMappingURL=QuantitySelector.js.map
54
-
55
- /***/ })
56
-
57
- };
58
- ;
@@ -1,106 +0,0 @@
1
- "use strict";
2
- exports.id = 143;
3
- exports.ids = [143];
4
- exports.modules = {
5
-
6
- /***/ 29143:
7
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
8
-
9
- __webpack_require__.r(__webpack_exports__);
10
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
11
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
12
- /* harmony export */ });
13
- /* harmony import */ var _faststore_config__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(97183);
14
- /* harmony import */ var _faststore_config__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_faststore_config__WEBPACK_IMPORTED_MODULE_0__);
15
- 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; }
16
-
17
- 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; }
18
-
19
- 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; }
20
-
21
- /**
22
- * More info at: https://www.notion.so/vtexhandbook/Event-API-Documentation-48eee26730cf4d7f80f8fd7262231f84
23
- */
24
-
25
- const THIRTY_MINUTES_S = 30 * 60;
26
- const ONE_YEAR_S = 365 * 24 * 3600;
27
-
28
- const randomUUID = () => typeof crypto.randomUUID === 'function' ? crypto.randomUUID() : (Math.random() * 1e6).toFixed(0);
29
-
30
- const createStorage = (key, expiresSecond) => {
31
- const timelapsed = past => (Date.now() - past) / 1e3;
32
-
33
- return () => {
34
- const item = JSON.parse(localStorage.getItem(key) ?? 'null');
35
- const isExpired = !item || timelapsed(item.createdAt) > expiresSecond;
36
- const payload = isExpired ? randomUUID() : item.payload;
37
-
38
- if (isExpired) {
39
- const data = {
40
- payload,
41
- createdAt: Date.now()
42
- };
43
- localStorage.setItem(key, JSON.stringify(data));
44
- }
45
-
46
- return payload;
47
- };
48
- };
49
-
50
- const user = {
51
- anonymous: createStorage('vtex.search.anonymous', ONE_YEAR_S),
52
- session: createStorage('vtex.search.session', THIRTY_MINUTES_S)
53
- };
54
-
55
- const sendEvent = options => fetch(`https://sp.vtex.com/event-api/v1/${(_faststore_config__WEBPACK_IMPORTED_MODULE_0___default().api.storeId)}/event`, {
56
- method: 'POST',
57
- body: JSON.stringify(_objectSpread(_objectSpread({}, options), {}, {
58
- userAgent: navigator.userAgent,
59
- anonymous: user.anonymous(),
60
- session: user.session()
61
- })),
62
- headers: {
63
- 'content-type': 'application/json'
64
- }
65
- });
66
-
67
- const isFullTextSearch = url => typeof url.searchParams.get('q') === 'string' && /^\/s(\/)?$/g.test(url.pathname);
68
-
69
- const handleEvent = event => {
70
- if (event.name !== 'search_select_item') {
71
- return;
72
- }
73
-
74
- const url = new URL(event.params.url);
75
-
76
- if (!isFullTextSearch(url)) {
77
- return;
78
- }
79
-
80
- for (const item of event.params.items ?? []) {
81
- const productId = item.item_id ?? item.item_variant;
82
- const position = item.index;
83
-
84
- if (productId && position) {
85
- sendEvent({
86
- type: 'search.click',
87
- productId,
88
- position,
89
- url: url.href,
90
- text: url.searchParams.get('q') ?? '<empty>'
91
- });
92
- }
93
- }
94
- };
95
-
96
- setInterval(() => sendEvent({
97
- type: 'session.ping'
98
- }), 60 * 1e3
99
- /* One minute */
100
- );
101
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (handleEvent);
102
-
103
- /***/ })
104
-
105
- };
106
- ;
@@ -1,94 +0,0 @@
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: true
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_2: '/technology',
78
- collection_filtered: '/office/?category-1=office&marca=acer&facets=category-1%2Cmarca',
79
- search: '/s?q=orange'
80
- }
81
- },
82
- analytics: {
83
- // https://developers.google.com/tag-platform/tag-manager/web#standard_web_page_installation,
84
- gtmContainerId: 'GTM-PGHZ95N'
85
- },
86
- experimental: {
87
- enableCypressExtension: false
88
- }
89
- };
90
-
91
- /***/ })
92
-
93
- };
94
- ;
@@ -1,61 +0,0 @@
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
- ;
@@ -1,113 +0,0 @@
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
- // EXTERNAL MODULE: ./src/utils/overrides.ts
45
- var overrides = __webpack_require__(59104);
46
- ;// CONCATENATED MODULE: ./src/customizations/components/overrides/EmptyState.tsx
47
- // This is an example of how it can be used on the starter.
48
- const SECTION = 'EmptyState';
49
- const override = {
50
- section: SECTION
51
- };
52
-
53
- ;// CONCATENATED MODULE: ./src/components/sections/EmptyState/Overrides.tsx
54
-
55
-
56
-
57
- const {
58
- EmptyState: Overrides_EmptyState
59
- } = (0,overrides/* getSectionOverrides */.f)({
60
- EmptyState: EmptyState/* default */.Z
61
- }, override);
62
-
63
- // EXTERNAL MODULE: external "react/jsx-runtime"
64
- var jsx_runtime_ = __webpack_require__(20997);
65
- ;// CONCATENATED MODULE: ./src/components/sections/EmptyState/EmptyState.tsx
66
- 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; }
67
-
68
- 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; }
69
-
70
- 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; }
71
-
72
-
73
-
74
-
75
-
76
-
77
- function EmptyState_EmptyState({
78
- title = Overrides_EmptyState.props.title,
79
- titleIcon = Overrides_EmptyState.props.titleIcon,
80
- children
81
- }) {
82
- return /*#__PURE__*/jsx_runtime_.jsx(Section/* default */.Z, {
83
- className: `${(section_module_default()).section} section-empty-state`,
84
- children: /*#__PURE__*/jsx_runtime_.jsx(Overrides_EmptyState.Component, _objectSpread(_objectSpread({
85
- bkgColor: "light"
86
- }, Overrides_EmptyState.props), {}, {
87
- title: title,
88
- titleIcon: titleIcon,
89
- children: children
90
- }))
91
- });
92
- }
93
-
94
- /* harmony default export */ const sections_EmptyState_EmptyState = (EmptyState_EmptyState);
95
- ;// CONCATENATED MODULE: ./src/components/sections/EmptyState/index.ts
96
-
97
-
98
- /***/ }),
99
-
100
- /***/ 96791:
101
- /***/ ((module) => {
102
-
103
- // Exports
104
- module.exports = {
105
- "section": "section_section__TgowL",
106
- "load": "section_load__F5rqW"
107
- };
108
-
109
-
110
- /***/ })
111
-
112
- };
113
- ;
@@ -1,61 +0,0 @@
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
- ;