@faststore/core 2.0.106-alpha.0 → 2.0.107-alpha.0

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 (144) hide show
  1. package/.turbo/turbo-build.log +2 -2
  2. package/CHANGELOG.md +6 -0
  3. package/package.json +3 -3
  4. package/src/components/sections/Newsletter/Newsletter.tsx +3 -7
  5. package/.next/BUILD_ID +0 -1
  6. package/.next/build-manifest.json +0 -99
  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 -43
  21. package/.next/required-server-files.json +0 -1
  22. package/.next/routes-manifest.json +0 -1
  23. package/.next/server/chunks/120.js +0 -435
  24. package/.next/server/chunks/123.js +0 -58
  25. package/.next/server/chunks/1394.js +0 -3801
  26. package/.next/server/chunks/1597.js +0 -151
  27. package/.next/server/chunks/1608.js +0 -515
  28. package/.next/server/chunks/2154.js +0 -206
  29. package/.next/server/chunks/247.js +0 -61
  30. package/.next/server/chunks/2502.js +0 -617
  31. package/.next/server/chunks/2914.js +0 -95
  32. package/.next/server/chunks/2922.js +0 -7293
  33. package/.next/server/chunks/3264.js +0 -67
  34. package/.next/server/chunks/3431.js +0 -7241
  35. package/.next/server/chunks/350.js +0 -142
  36. package/.next/server/chunks/3746.js +0 -237
  37. package/.next/server/chunks/3898.js +0 -240
  38. package/.next/server/chunks/4312.js +0 -674
  39. package/.next/server/chunks/4371.js +0 -1473
  40. package/.next/server/chunks/5098.js +0 -124
  41. package/.next/server/chunks/5576.js +0 -72
  42. package/.next/server/chunks/6280.js +0 -322
  43. package/.next/server/chunks/6465.js +0 -91
  44. package/.next/server/chunks/676.js +0 -32
  45. package/.next/server/chunks/6859.js +0 -959
  46. package/.next/server/chunks/6881.js +0 -320
  47. package/.next/server/chunks/6898.js +0 -149
  48. package/.next/server/chunks/7104.js +0 -196
  49. package/.next/server/chunks/7181.js +0 -658
  50. package/.next/server/chunks/7183.js +0 -72
  51. package/.next/server/chunks/7992.js +0 -570
  52. package/.next/server/chunks/8098.js +0 -246
  53. package/.next/server/chunks/810.js +0 -432
  54. package/.next/server/chunks/8287.js +0 -58
  55. package/.next/server/chunks/9143.js +0 -106
  56. package/.next/server/chunks/9557.js +0 -117
  57. package/.next/server/chunks/9854.js +0 -72
  58. package/.next/server/chunks/font-manifest.json +0 -1
  59. package/.next/server/font-manifest.json +0 -1
  60. package/.next/server/middleware-build-manifest.js +0 -1
  61. package/.next/server/middleware-manifest.json +0 -6
  62. package/.next/server/middleware-react-loadable-manifest.js +0 -1
  63. package/.next/server/pages/404.js.nft.json +0 -1
  64. package/.next/server/pages/500.js.nft.json +0 -1
  65. package/.next/server/pages/[...slug].js +0 -671
  66. package/.next/server/pages/[...slug].js.nft.json +0 -1
  67. package/.next/server/pages/[slug]/p.js +0 -2327
  68. package/.next/server/pages/[slug]/p.js.nft.json +0 -1
  69. package/.next/server/pages/_app.js +0 -2368
  70. package/.next/server/pages/_app.js.nft.json +0 -1
  71. package/.next/server/pages/_document.js +0 -304
  72. package/.next/server/pages/_document.js.nft.json +0 -1
  73. package/.next/server/pages/_error.js +0 -164
  74. package/.next/server/pages/_error.js.nft.json +0 -1
  75. package/.next/server/pages/account.js.nft.json +0 -1
  76. package/.next/server/pages/api/graphql.js +0 -315
  77. package/.next/server/pages/api/graphql.js.nft.json +0 -1
  78. package/.next/server/pages/api/preview.js +0 -118
  79. package/.next/server/pages/api/preview.js.nft.json +0 -1
  80. package/.next/server/pages/checkout.js.nft.json +0 -1
  81. package/.next/server/pages/en-US/404.html +0 -81
  82. package/.next/server/pages/en-US/500.html +0 -81
  83. package/.next/server/pages/en-US/account.html +0 -81
  84. package/.next/server/pages/en-US/checkout.html +0 -81
  85. package/.next/server/pages/en-US/login.html +0 -81
  86. package/.next/server/pages/en-US/s.html +0 -81
  87. package/.next/server/pages/en-US.html +0 -81
  88. package/.next/server/pages/en-US.json +0 -1
  89. package/.next/server/pages/index.js +0 -428
  90. package/.next/server/pages/index.js.nft.json +0 -1
  91. package/.next/server/pages/login.js.nft.json +0 -1
  92. package/.next/server/pages/s.js.nft.json +0 -1
  93. package/.next/server/pages-manifest.json +0 -16
  94. package/.next/server/webpack-api-runtime.js +0 -229
  95. package/.next/server/webpack-runtime.js +0 -229
  96. package/.next/static/78q0IAs7tpB_rHHIDEdG9/_buildManifest.js +0 -1
  97. package/.next/static/78q0IAs7tpB_rHHIDEdG9/_ssgManifest.js +0 -1
  98. package/.next/static/chunks/143.dd8a556e6957baa1.js +0 -1
  99. package/.next/static/chunks/264-6dc2258a751b3d74.js +0 -1
  100. package/.next/static/chunks/351-a4e28d64f48c5269.js +0 -1
  101. package/.next/static/chunks/54.3965c4cb1b3f985c.js +0 -1
  102. package/.next/static/chunks/597.43467badf5c82358.js +0 -1
  103. package/.next/static/chunks/608.59e69b83f35d9c44.js +0 -1
  104. package/.next/static/chunks/651.7142f31ce1e052b3.js +0 -1
  105. package/.next/static/chunks/686.14ab3eb175c23970.js +0 -1
  106. package/.next/static/chunks/741.52f7fb873418346f.js +0 -1
  107. package/.next/static/chunks/781-e1b538e051ff4c3e.js +0 -1
  108. package/.next/static/chunks/98.97381d2021f86cd9.js +0 -1
  109. package/.next/static/chunks/996.64460309250b214c.js +0 -1
  110. package/.next/static/chunks/framework-dfd14d7ce6600b03.js +0 -1
  111. package/.next/static/chunks/main-9746772201fe3ac1.js +0 -1
  112. package/.next/static/chunks/pages/404-ba608a2a9f0c420a.js +0 -1
  113. package/.next/static/chunks/pages/500-910883c20541d9ce.js +0 -1
  114. package/.next/static/chunks/pages/[...slug]-ec85cc3d8b3622ad.js +0 -1
  115. package/.next/static/chunks/pages/[slug]/p-1c7d20c6807d3dbc.js +0 -1
  116. package/.next/static/chunks/pages/_app-4656b49f263e86d4.js +0 -1
  117. package/.next/static/chunks/pages/_error-a7a0c1d9bfbb4f38.js +0 -1
  118. package/.next/static/chunks/pages/account-b8fc5222ffe89b60.js +0 -1
  119. package/.next/static/chunks/pages/checkout-f8cb7cb22225ef9d.js +0 -1
  120. package/.next/static/chunks/pages/index-9ea3f7868f5ed138.js +0 -1
  121. package/.next/static/chunks/pages/login-33954810b200eca8.js +0 -1
  122. package/.next/static/chunks/pages/s-ba2868e14fedb65b.js +0 -1
  123. package/.next/static/chunks/polyfills-c67a75d1b6f99dc8.js +0 -1
  124. package/.next/static/chunks/webpack-3587f79b2eaad6ba.js +0 -1
  125. package/.next/static/css/1024849ea6421e1e.css +0 -1
  126. package/.next/static/css/43d61b402f41569b.css +0 -1
  127. package/.next/static/css/6507cb48401e73a4.css +0 -1
  128. package/.next/static/css/8d4cc2151b8e3693.css +0 -1
  129. package/.next/static/css/8ea129ea90e49e98.css +0 -1
  130. package/.next/static/css/db63ea05e98cb7e8.css +0 -1
  131. package/.next/static/css/dcd034ec6c716e5c.css +0 -1
  132. package/.next/static/media/brandless-neutral.76ddf63a.png +0 -0
  133. package/.next/trace +0 -64
  134. package/public/~partytown/debug/partytown-atomics.js +0 -556
  135. package/public/~partytown/debug/partytown-media.js +0 -374
  136. package/public/~partytown/debug/partytown-sandbox-sw.js +0 -543
  137. package/public/~partytown/debug/partytown-sw.js +0 -59
  138. package/public/~partytown/debug/partytown-ww-atomics.js +0 -1789
  139. package/public/~partytown/debug/partytown-ww-sw.js +0 -1781
  140. package/public/~partytown/debug/partytown.js +0 -72
  141. package/public/~partytown/partytown-atomics.js +0 -2
  142. package/public/~partytown/partytown-media.js +0 -2
  143. package/public/~partytown/partytown-sw.js +0 -2
  144. package/public/~partytown/partytown.js +0 -2
@@ -1,58 +0,0 @@
1
- "use strict";
2
- exports.id = 8287;
3
- exports.ids = [8287];
4
- exports.modules = {
5
-
6
- /***/ 7216:
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__(6689);
13
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
14
-
15
- const Label = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function Label({ testId = 'fs-label', children, ...otherProps }, ref) {
16
- return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement("label", { ref: ref, "data-fs-label": true, "data-testid": testId, ...otherProps }, children));
17
- });
18
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Label);
19
- //# sourceMappingURL=Label.js.map
20
-
21
- /***/ }),
22
-
23
- /***/ 8287:
24
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
25
-
26
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
27
- /* harmony export */ "Z": () => (__WEBPACK_DEFAULT_EXPORT__)
28
- /* harmony export */ });
29
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6689);
30
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
31
- /* harmony import */ var ___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(875);
32
- /* harmony import */ var ___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7216);
33
- /* harmony import */ var ___WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(2765);
34
- /* harmony import */ var ___WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(5045);
35
- /* harmony import */ var ___WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(4842);
36
-
37
-
38
- const InputField = ({ id, label, type = 'text', error, displayClearButton, actionable, buttonActionText = 'Apply', onSubmit, onClear, placeholder = ' ', // initializes with an empty space to style float label using `placeholder-shown`
39
- inputRef, disabled, value, testId = 'fs-input-field', ...otherProps }) => {
40
- const shouldDisplayError = !disabled && error && error !== '';
41
- const shouldDisplayButton = actionable && !disabled && value !== '';
42
- return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", { "data-fs-input-field": true, "data-fs-input-field-actionable": actionable, "data-fs-input-field-error": error && error !== '', "data-testid": testId },
43
- react__WEBPACK_IMPORTED_MODULE_0___default().createElement(___WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, { id: id, type: type, value: value, ref: inputRef, disabled: disabled, placeholder: placeholder, ...otherProps }),
44
- react__WEBPACK_IMPORTED_MODULE_0___default().createElement(___WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z, { htmlFor: id }, label),
45
- shouldDisplayButton &&
46
- (displayClearButton || error ? (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(___WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z, { "data-fs-button-size": "small", "aria-label": "Clear Field", icon: react__WEBPACK_IMPORTED_MODULE_0___default().createElement(___WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z, { name: "XCircle" }), onClick: () => {
47
- onClear?.();
48
- inputRef?.current?.focus();
49
- } })) : (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(___WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z, { variant: "tertiary", size: "small", onClick: onSubmit }, buttonActionText))),
50
- shouldDisplayError && (react__WEBPACK_IMPORTED_MODULE_0___default().createElement("span", { "data-fs-input-field-error-message": true }, error))));
51
- };
52
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (InputField);
53
- //# sourceMappingURL=InputField.js.map
54
-
55
- /***/ })
56
-
57
- };
58
- ;
@@ -1,106 +0,0 @@
1
- "use strict";
2
- exports.id = 9143;
3
- exports.ids = [9143];
4
- exports.modules = {
5
-
6
- /***/ 9143:
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__(7183);
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,117 +0,0 @@
1
- "use strict";
2
- exports.id = 9557;
3
- exports.ids = [9557];
4
- exports.modules = {
5
-
6
- /***/ 9557:
7
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
8
-
9
-
10
- // EXPORTS
11
- __webpack_require__.d(__webpack_exports__, {
12
- "Z": () => (/* reexport */ sections_Hero_Hero)
13
- });
14
-
15
- // EXTERNAL MODULE: external "react"
16
- var external_react_ = __webpack_require__(6689);
17
- var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
18
- ;// CONCATENATED MODULE: ../components/dist/organisms/Hero/Hero.js
19
-
20
- const HeroContext = (0,external_react_.createContext)(undefined);
21
- const Hero = (0,external_react_.forwardRef)(function Hero({ children, testId = 'fs-hero', variant = 'primary', colorVariant = 'main', ...otherProps }, ref) {
22
- const context = { variant, colorVariant };
23
- return (external_react_default().createElement(HeroContext.Provider, { value: context },
24
- external_react_default().createElement("article", { ref: ref, "data-fs-hero": true, "data-fs-hero-variant": variant, "data-fs-hero-color-variant": colorVariant, "data-testid": testId, ...otherProps }, children)));
25
- });
26
- function useHero() {
27
- const context = (0,external_react_.useContext)(HeroContext);
28
- if (context === undefined) {
29
- throw new Error('Do not use Hero components outside the Hero context.');
30
- }
31
- return context;
32
- }
33
- /* harmony default export */ const Hero_Hero = (Hero);
34
- //# sourceMappingURL=Hero.js.map
35
- ;// CONCATENATED MODULE: ../components/dist/organisms/Hero/HeroImage.js
36
-
37
- const HeroImage = (0,external_react_.forwardRef)(function HeroImage({ children, testId = 'fs-hero-image', ...otherProps }, ref) {
38
- return (external_react_default().createElement("div", { ref: ref, "data-fs-hero-image": true, "data-testid": testId, ...otherProps }, children));
39
- });
40
- /* harmony default export */ const Hero_HeroImage = (HeroImage);
41
- //# sourceMappingURL=HeroImage.js.map
42
- // EXTERNAL MODULE: ../components/dist/molecules/LinkButton/LinkButton.js
43
- var LinkButton = __webpack_require__(7703);
44
- // EXTERNAL MODULE: ../components/dist/atoms/Icon/Icon.js
45
- var Icon = __webpack_require__(5045);
46
- ;// CONCATENATED MODULE: ../components/dist/organisms/Hero/HeroHeader.js
47
-
48
-
49
-
50
- const HeroHeader = (0,external_react_.forwardRef)(function HeroHeader({ icon, link, title, linkText, subtitle, children, testId = 'fs-hero-heading', ...otherProps }, ref) {
51
- const { variant, colorVariant } = useHero();
52
- const iconProps = { "data-fs-hero-icon": true };
53
- const heroIcon = external_react_default().isValidElement(icon) ? (external_react_default().cloneElement(icon, iconProps)) : (icon);
54
- return (external_react_default().createElement("header", { ref: ref, "data-fs-hero-heading": true, "data-testid": testId, ...otherProps },
55
- external_react_default().createElement("div", { "data-fs-hero-wrapper": true, className: "layout__content" },
56
- external_react_default().createElement("div", { "data-fs-hero-info": true },
57
- external_react_default().createElement("h1", { "data-fs-hero-title": true }, title),
58
- external_react_default().createElement("p", { "data-fs-hero-subtitle": true }, subtitle),
59
- !!link && (external_react_default().createElement(LinkButton/* default */.Z, { href: link, inverse: colorVariant === 'main', icon: external_react_default().createElement(Icon/* default */.Z, { name: "ArrowRight" }), iconPosition: "right" }, linkText))),
60
- heroIcon && variant === 'secondary' && (heroIcon))));
61
- });
62
- /* harmony default export */ const Hero_HeroHeader = (HeroHeader);
63
- //# sourceMappingURL=HeroHeader.js.map
64
- // EXTERNAL MODULE: ./src/components/ui/Image/index.ts + 3 modules
65
- var Image = __webpack_require__(2154);
66
- // EXTERNAL MODULE: ./src/components/sections/Section/index.ts + 1 modules
67
- var Section = __webpack_require__(8879);
68
- // EXTERNAL MODULE: external "react/jsx-runtime"
69
- var jsx_runtime_ = __webpack_require__(997);
70
- ;// CONCATENATED MODULE: ./src/components/sections/Hero/Hero.tsx
71
-
72
-
73
-
74
-
75
-
76
-
77
- const Hero_Hero_Hero = ({
78
- icon,
79
- link,
80
- title,
81
- subtitle,
82
- linkText,
83
- imageAlt,
84
- imageSrc
85
- }) => {
86
- return /*#__PURE__*/jsx_runtime_.jsx(Section/* default */.Z, {
87
- children: /*#__PURE__*/(0,jsx_runtime_.jsxs)(Hero_Hero, {
88
- children: [/*#__PURE__*/jsx_runtime_.jsx(Hero_HeroImage, {
89
- "data-fs-hero-image": true,
90
- children: /*#__PURE__*/jsx_runtime_.jsx(Image/* Image */.E, {
91
- loading: "eager",
92
- priority: true,
93
- src: imageSrc,
94
- alt: imageAlt,
95
- width: 360,
96
- height: 240,
97
- sizes: "(max-width: 768px) 70vw, 50vw"
98
- })
99
- }), /*#__PURE__*/jsx_runtime_.jsx(Hero_HeroHeader, {
100
- title: title,
101
- subtitle: subtitle,
102
- link: link,
103
- linkText: linkText,
104
- icon: icon
105
- })]
106
- })
107
- });
108
- };
109
-
110
- /* harmony default export */ const sections_Hero_Hero = (Hero_Hero_Hero);
111
- ;// CONCATENATED MODULE: ./src/components/sections/Hero/index.ts
112
-
113
-
114
- /***/ })
115
-
116
- };
117
- ;
@@ -1,72 +0,0 @@
1
- "use strict";
2
- exports.id = 9854;
3
- exports.ids = [9854];
4
- exports.modules = {
5
-
6
- /***/ 9854:
7
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
8
-
9
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
10
- /* harmony export */ "w": () => (/* binding */ useProductLink)
11
- /* harmony export */ });
12
- /* harmony import */ var _faststore_sdk__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8460);
13
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6689);
14
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
15
- /* harmony import */ var _session__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5971);
16
-
17
-
18
-
19
- const useProductLink = ({
20
- index,
21
- product,
22
- selectedOffer
23
- }) => {
24
- const {
25
- slug
26
- } = product;
27
- const {
28
- currency: {
29
- code
30
- }
31
- } = (0,_session__WEBPACK_IMPORTED_MODULE_1__/* .useSession */ .kP)();
32
- const onClick = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(() => {
33
- (0,_faststore_sdk__WEBPACK_IMPORTED_MODULE_2__/* .sendAnalyticsEvent */ ._)({
34
- name: 'select_item',
35
- params: {
36
- items: [{
37
- item_id: product.isVariantOf.productGroupID,
38
- item_name: product.isVariantOf.name,
39
- item_brand: product.brand.name,
40
- item_variant: product.sku,
41
- index,
42
- price: product.offers.offers[selectedOffer].price,
43
- discount: product.offers.offers[selectedOffer].listPrice - product.offers.offers[selectedOffer].price,
44
- currency: code,
45
- item_variant_name: product.name,
46
- product_reference_id: product.gtin
47
- }]
48
- }
49
- });
50
- (0,_faststore_sdk__WEBPACK_IMPORTED_MODULE_2__/* .sendAnalyticsEvent */ ._)({
51
- name: 'search_select_item',
52
- params: {
53
- url: window.location.href,
54
- items: [{
55
- item_id: product.isVariantOf.productGroupID,
56
- item_variant: product.sku,
57
- index
58
- }]
59
- }
60
- });
61
- }, [code, product, index, selectedOffer]);
62
- return {
63
- href: `/${slug}/p`,
64
- onClick,
65
- 'data-testid': 'product-link'
66
- };
67
- };
68
-
69
- /***/ })
70
-
71
- };
72
- ;
@@ -1 +0,0 @@
1
- []
@@ -1 +0,0 @@
1
- []
@@ -1 +0,0 @@
1
- self.__BUILD_MANIFEST={polyfillFiles:["static/chunks/polyfills-c67a75d1b6f99dc8.js"],devFiles:[],ampDevFiles:[],lowPriorityFiles:["static/78q0IAs7tpB_rHHIDEdG9/_buildManifest.js","static/78q0IAs7tpB_rHHIDEdG9/_ssgManifest.js"],rootMainFiles:[],pages:{"/":["static/chunks/webpack-3587f79b2eaad6ba.js","static/chunks/framework-dfd14d7ce6600b03.js","static/chunks/main-9746772201fe3ac1.js","static/chunks/351-a4e28d64f48c5269.js","static/chunks/781-e1b538e051ff4c3e.js","static/css/43d61b402f41569b.css","static/chunks/pages/index-9ea3f7868f5ed138.js"],"/404":["static/chunks/webpack-3587f79b2eaad6ba.js","static/chunks/framework-dfd14d7ce6600b03.js","static/chunks/main-9746772201fe3ac1.js","static/chunks/351-a4e28d64f48c5269.js","static/chunks/pages/404-ba608a2a9f0c420a.js"],"/500":["static/chunks/webpack-3587f79b2eaad6ba.js","static/chunks/framework-dfd14d7ce6600b03.js","static/chunks/main-9746772201fe3ac1.js","static/chunks/351-a4e28d64f48c5269.js","static/chunks/pages/500-910883c20541d9ce.js"],"/[...slug]":["static/chunks/webpack-3587f79b2eaad6ba.js","static/chunks/framework-dfd14d7ce6600b03.js","static/chunks/main-9746772201fe3ac1.js","static/chunks/351-a4e28d64f48c5269.js","static/chunks/264-6dc2258a751b3d74.js","static/css/8ea129ea90e49e98.css","static/chunks/pages/[...slug]-ec85cc3d8b3622ad.js"],"/[slug]/p":["static/chunks/webpack-3587f79b2eaad6ba.js","static/chunks/framework-dfd14d7ce6600b03.js","static/chunks/main-9746772201fe3ac1.js","static/chunks/351-a4e28d64f48c5269.js","static/chunks/781-e1b538e051ff4c3e.js","static/css/8d4cc2151b8e3693.css","static/chunks/pages/[slug]/p-1c7d20c6807d3dbc.js"],"/_app":["static/chunks/webpack-3587f79b2eaad6ba.js","static/chunks/framework-dfd14d7ce6600b03.js","static/chunks/main-9746772201fe3ac1.js","static/css/1024849ea6421e1e.css","static/chunks/pages/_app-4656b49f263e86d4.js"],"/_error":["static/chunks/webpack-3587f79b2eaad6ba.js","static/chunks/framework-dfd14d7ce6600b03.js","static/chunks/main-9746772201fe3ac1.js","static/chunks/pages/_error-a7a0c1d9bfbb4f38.js"],"/account":["static/chunks/webpack-3587f79b2eaad6ba.js","static/chunks/framework-dfd14d7ce6600b03.js","static/chunks/main-9746772201fe3ac1.js","static/chunks/351-a4e28d64f48c5269.js","static/chunks/pages/account-b8fc5222ffe89b60.js"],"/checkout":["static/chunks/webpack-3587f79b2eaad6ba.js","static/chunks/framework-dfd14d7ce6600b03.js","static/chunks/main-9746772201fe3ac1.js","static/chunks/351-a4e28d64f48c5269.js","static/chunks/pages/checkout-f8cb7cb22225ef9d.js"],"/login":["static/chunks/webpack-3587f79b2eaad6ba.js","static/chunks/framework-dfd14d7ce6600b03.js","static/chunks/main-9746772201fe3ac1.js","static/chunks/351-a4e28d64f48c5269.js","static/chunks/pages/login-33954810b200eca8.js"],"/s":["static/chunks/webpack-3587f79b2eaad6ba.js","static/chunks/framework-dfd14d7ce6600b03.js","static/chunks/main-9746772201fe3ac1.js","static/chunks/351-a4e28d64f48c5269.js","static/chunks/264-6dc2258a751b3d74.js","static/css/db63ea05e98cb7e8.css","static/chunks/pages/s-ba2868e14fedb65b.js"]},ampFirstPages:[]};
@@ -1,6 +0,0 @@
1
- {
2
- "sortedMiddleware": [],
3
- "middleware": {},
4
- "functions": {},
5
- "version": 2
6
- }
@@ -1 +0,0 @@
1
- self.__REACT_LOADABLE_MANIFEST={"../../node_modules/next/dist/client/index.js -> ../pages/_app":{id:2741,files:["static/chunks/741.52f7fb873418346f.js"]},"../../node_modules/next/dist/client/index.js -> ../pages/_error":{id:9651,files:["static/chunks/651.7142f31ce1e052b3.js"]},"../Layout.tsx -> src/components/cart/CartSidebar":{id:2502,files:["static/chunks/608.59e69b83f35d9c44.js","static/css/dcd034ec6c716e5c.css","static/chunks/54.3965c4cb1b3f985c.js"]},"../Layout.tsx -> src/components/region/RegionModal":{id:1597,files:["static/chunks/597.43467badf5c82358.js"]},"../components/search/SearchInput/SearchInput.tsx -> src/components/search/SearchDropdown":{id:495,files:["static/chunks/608.59e69b83f35d9c44.js","static/chunks/996.64460309250b214c.js"]},"../components/sections/ProductGallery/ProductGallery.tsx -> ./ProductGalleryPage":{id:8686,files:["static/chunks/608.59e69b83f35d9c44.js","static/css/6507cb48401e73a4.css","static/chunks/686.14ab3eb175c23970.js"]}};
@@ -1 +0,0 @@
1
- {"version":1,"files":["../webpack-runtime.js","../../package.json","../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../node_modules/next/dist/shared/lib/head-manager-context.js","../../../node_modules/next/dist/shared/lib/mitt.js","../../../node_modules/next/dist/shared/lib/router-context.js","../../../node_modules/next/dist/shared/lib/utils.js","../../../node_modules/next/dist/shared/lib/i18n/detect-domain-locale.js","../../../node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js","../../../node_modules/next/dist/shared/lib/page-path/denormalize-page-path.js","../../../node_modules/next/dist/shared/lib/router/utils/add-locale.js","../../../node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js","../../../node_modules/next/dist/shared/lib/router/utils/compare-states.js","../../../node_modules/next/dist/shared/lib/router/utils/format-next-pathname-info.js","../../../node_modules/next/dist/shared/lib/router/utils/format-url.js","../../../node_modules/next/dist/shared/lib/router/utils/get-asset-path-from-route.js","../../../node_modules/next/dist/shared/lib/router/utils/get-next-pathname-info.js","../../../node_modules/next/dist/shared/lib/router/utils/is-bot.js","../../../node_modules/next/dist/shared/lib/router/utils/is-dynamic.js","../../../node_modules/next/dist/shared/lib/router/utils/parse-path.js","../../../node_modules/next/dist/shared/lib/router/utils/parse-relative-url.js","../../../node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js","../../../node_modules/next/dist/shared/lib/router/utils/querystring.js","../../../node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js","../../../node_modules/next/dist/shared/lib/router/utils/resolve-rewrites.js","../../../node_modules/next/dist/shared/lib/router/utils/route-matcher.js","../../../node_modules/next/dist/shared/lib/router/utils/route-regex.js","../../../node_modules/next/router.js","../../../node_modules/next/package.json","../../../node_modules/next/dist/client/remove-base-path.js","../../../node_modules/next/dist/client/router.js","../../../node_modules/next/dist/client/has-base-path.js","../../../node_modules/next/dist/shared/lib/page-path/normalize-path-sep.js","../../../node_modules/next/dist/shared/lib/router/utils/add-path-suffix.js","../../../node_modules/next/dist/shared/lib/router/utils/remove-path-prefix.js","../../../node_modules/next/dist/shared/lib/router/utils/path-match.js","../../../node_modules/next/dist/shared/lib/router/utils/prepare-destination.js","../../../node_modules/next/dist/shared/lib/escape-regexp.js","../../../node_modules/next/dist/shared/lib/router/utils/index.js","../../../node_modules/next/dist/shared/lib/router/router.js","../../../node_modules/next/dist/lib/is-error.js","../../../node_modules/next/dist/client/normalize-trailing-slash.js","../../../node_modules/next/dist/client/route-loader.js","../../../node_modules/next/dist/client/script.js","../../../node_modules/next/dist/client/detect-domain-locale.js","../../../node_modules/next/dist/client/add-locale.js","../../../node_modules/next/dist/client/remove-locale.js","../../../node_modules/next/dist/client/add-base-path.js","../../../node_modules/next/dist/client/trusted-types.js","../../../node_modules/next/dist/client/request-idle-callback.js","../../../node_modules/next/dist/client/head-manager.js","../../../node_modules/@swc/helpers/lib/_extends.js","../../../node_modules/@swc/helpers/package.json","../../../node_modules/@swc/helpers/lib/_interop_require_default.js","../../../node_modules/@swc/helpers/lib/_interop_require_wildcard.js","../../../node_modules/@swc/helpers/lib/_async_to_generator.js","../../../node_modules/next/dist/client/with-router.js","../../../node_modules/next/dist/shared/lib/router/utils/parse-url.js","../../../node_modules/@swc/helpers/lib/_object_without_properties_loose.js","../../../node_modules/next/dist/shared/lib/router/utils/sorted-routes.js","../../../node_modules/next/dist/compiled/path-to-regexp/index.js","../../../node_modules/next/dist/compiled/react-is/package.json","../../../node_modules/next/dist/compiled/react-is/index.js","../../../node_modules/next/dist/compiled/react-is/cjs/react-is.production.min.js","../../../node_modules/next/dist/compiled/react-is/cjs/react-is.development.js","../../../package.json"]}
@@ -1 +0,0 @@
1
- {"version":1,"files":["../webpack-runtime.js","../../package.json","../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../node_modules/next/dist/shared/lib/head-manager-context.js","../../../node_modules/next/dist/shared/lib/mitt.js","../../../node_modules/next/dist/shared/lib/router-context.js","../../../node_modules/next/dist/shared/lib/utils.js","../../../node_modules/next/dist/shared/lib/i18n/detect-domain-locale.js","../../../node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js","../../../node_modules/next/dist/shared/lib/page-path/denormalize-page-path.js","../../../node_modules/next/dist/shared/lib/router/utils/add-locale.js","../../../node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js","../../../node_modules/next/dist/shared/lib/router/utils/compare-states.js","../../../node_modules/next/dist/shared/lib/router/utils/format-next-pathname-info.js","../../../node_modules/next/dist/shared/lib/router/utils/format-url.js","../../../node_modules/next/dist/shared/lib/router/utils/get-asset-path-from-route.js","../../../node_modules/next/dist/shared/lib/router/utils/get-next-pathname-info.js","../../../node_modules/next/dist/shared/lib/router/utils/is-bot.js","../../../node_modules/next/dist/shared/lib/router/utils/is-dynamic.js","../../../node_modules/next/dist/shared/lib/router/utils/parse-path.js","../../../node_modules/next/dist/shared/lib/router/utils/parse-relative-url.js","../../../node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js","../../../node_modules/next/dist/shared/lib/router/utils/querystring.js","../../../node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js","../../../node_modules/next/dist/shared/lib/router/utils/resolve-rewrites.js","../../../node_modules/next/dist/shared/lib/router/utils/route-matcher.js","../../../node_modules/next/dist/shared/lib/router/utils/route-regex.js","../../../node_modules/next/router.js","../../../node_modules/next/package.json","../../../node_modules/next/dist/client/remove-base-path.js","../../../node_modules/next/dist/client/router.js","../../../node_modules/next/dist/client/has-base-path.js","../../../node_modules/next/dist/shared/lib/page-path/normalize-path-sep.js","../../../node_modules/next/dist/shared/lib/router/utils/add-path-suffix.js","../../../node_modules/next/dist/shared/lib/router/utils/remove-path-prefix.js","../../../node_modules/next/dist/shared/lib/router/utils/path-match.js","../../../node_modules/next/dist/shared/lib/router/utils/prepare-destination.js","../../../node_modules/next/dist/shared/lib/escape-regexp.js","../../../node_modules/next/dist/shared/lib/router/utils/index.js","../../../node_modules/next/dist/shared/lib/router/router.js","../../../node_modules/next/dist/lib/is-error.js","../../../node_modules/next/dist/client/normalize-trailing-slash.js","../../../node_modules/next/dist/client/route-loader.js","../../../node_modules/next/dist/client/script.js","../../../node_modules/next/dist/client/detect-domain-locale.js","../../../node_modules/next/dist/client/add-locale.js","../../../node_modules/next/dist/client/remove-locale.js","../../../node_modules/next/dist/client/add-base-path.js","../../../node_modules/next/dist/client/trusted-types.js","../../../node_modules/next/dist/client/request-idle-callback.js","../../../node_modules/next/dist/client/head-manager.js","../../../node_modules/@swc/helpers/lib/_extends.js","../../../node_modules/@swc/helpers/package.json","../../../node_modules/@swc/helpers/lib/_interop_require_default.js","../../../node_modules/@swc/helpers/lib/_interop_require_wildcard.js","../../../node_modules/@swc/helpers/lib/_async_to_generator.js","../../../node_modules/next/dist/client/with-router.js","../../../node_modules/next/dist/shared/lib/router/utils/parse-url.js","../../../node_modules/@swc/helpers/lib/_object_without_properties_loose.js","../../../node_modules/next/dist/shared/lib/router/utils/sorted-routes.js","../../../node_modules/next/dist/compiled/path-to-regexp/index.js","../../../node_modules/next/dist/compiled/react-is/package.json","../../../node_modules/next/dist/compiled/react-is/index.js","../../../node_modules/next/dist/compiled/react-is/cjs/react-is.production.min.js","../../../node_modules/next/dist/compiled/react-is/cjs/react-is.development.js","../../../package.json"]}