@faststore/core 2.0.107-alpha.0 → 2.0.108-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.
- package/.next/BUILD_ID +1 -0
- package/.next/build-manifest.json +99 -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 +42 -0
- package/.next/required-server-files.json +1 -0
- package/.next/routes-manifest.json +1 -0
- package/.next/server/chunks/120.js +435 -0
- package/.next/server/chunks/123.js +58 -0
- package/.next/server/chunks/1394.js +3801 -0
- package/.next/server/chunks/1597.js +151 -0
- package/.next/server/chunks/1608.js +515 -0
- package/.next/server/chunks/2154.js +206 -0
- package/.next/server/chunks/247.js +61 -0
- package/.next/server/chunks/2502.js +584 -0
- package/.next/server/chunks/2914.js +95 -0
- package/.next/server/chunks/2922.js +7293 -0
- package/.next/server/chunks/3264.js +67 -0
- package/.next/server/chunks/3431.js +7241 -0
- package/.next/server/chunks/350.js +142 -0
- package/.next/server/chunks/3746.js +237 -0
- package/.next/server/chunks/3898.js +240 -0
- package/.next/server/chunks/4312.js +674 -0
- package/.next/server/chunks/4371.js +1440 -0
- package/.next/server/chunks/5098.js +124 -0
- package/.next/server/chunks/5576.js +72 -0
- package/.next/server/chunks/6280.js +322 -0
- package/.next/server/chunks/6465.js +91 -0
- package/.next/server/chunks/676.js +32 -0
- package/.next/server/chunks/6859.js +959 -0
- package/.next/server/chunks/6881.js +320 -0
- package/.next/server/chunks/6898.js +149 -0
- package/.next/server/chunks/7104.js +196 -0
- package/.next/server/chunks/7181.js +664 -0
- package/.next/server/chunks/7183.js +72 -0
- package/.next/server/chunks/7992.js +551 -0
- package/.next/server/chunks/8098.js +246 -0
- package/.next/server/chunks/810.js +432 -0
- package/.next/server/chunks/8287.js +58 -0
- package/.next/server/chunks/9143.js +106 -0
- package/.next/server/chunks/9557.js +117 -0
- package/.next/server/chunks/9854.js +72 -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.nft.json +1 -0
- package/.next/server/pages/500.js.nft.json +1 -0
- package/.next/server/pages/[...slug].js +671 -0
- package/.next/server/pages/[...slug].js.nft.json +1 -0
- package/.next/server/pages/[slug]/p.js +2327 -0
- package/.next/server/pages/[slug]/p.js.nft.json +1 -0
- package/.next/server/pages/_app.js +2368 -0
- package/.next/server/pages/_app.js.nft.json +1 -0
- package/.next/server/pages/_document.js +304 -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.nft.json +1 -0
- package/.next/server/pages/api/graphql.js +315 -0
- package/.next/server/pages/api/graphql.js.nft.json +1 -0
- package/.next/server/pages/api/preview.js +118 -0
- package/.next/server/pages/api/preview.js.nft.json +1 -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/500.html +81 -0
- package/.next/server/pages/en-US/account.html +81 -0
- package/.next/server/pages/en-US/checkout.html +81 -0
- package/.next/server/pages/en-US/login.html +81 -0
- package/.next/server/pages/en-US/s.html +81 -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 +428 -0
- package/.next/server/pages/index.js.nft.json +1 -0
- package/.next/server/pages/login.js.nft.json +1 -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/chunks/143.dd8a556e6957baa1.js +1 -0
- package/.next/static/chunks/264-f45c6dcd6b439926.js +1 -0
- package/.next/static/chunks/351-a4e28d64f48c5269.js +1 -0
- package/.next/static/chunks/54.e6562383f8a1dfe7.js +1 -0
- package/.next/static/chunks/597.fc79494903e8bb84.js +1 -0
- package/.next/static/chunks/608.59e69b83f35d9c44.js +1 -0
- package/.next/static/chunks/651.7142f31ce1e052b3.js +1 -0
- package/.next/static/chunks/686.0136918bcab42e72.js +1 -0
- package/.next/static/chunks/741.52f7fb873418346f.js +1 -0
- package/.next/static/chunks/781-e1b538e051ff4c3e.js +1 -0
- package/.next/static/chunks/98.97381d2021f86cd9.js +1 -0
- package/.next/static/chunks/996.0cec637399d0f543.js +1 -0
- package/.next/static/chunks/framework-dfd14d7ce6600b03.js +1 -0
- package/.next/static/chunks/main-9746772201fe3ac1.js +1 -0
- package/.next/static/chunks/pages/404-3637ef83b3359df7.js +1 -0
- package/.next/static/chunks/pages/500-910883c20541d9ce.js +1 -0
- package/.next/static/chunks/pages/[...slug]-a2ec94b035681582.js +1 -0
- package/.next/static/chunks/pages/[slug]/p-67b681d02273f301.js +1 -0
- package/.next/static/chunks/pages/_app-9d067ed89f7a4001.js +1 -0
- package/.next/static/chunks/pages/_error-a7a0c1d9bfbb4f38.js +1 -0
- package/.next/static/chunks/pages/account-b8fc5222ffe89b60.js +1 -0
- package/.next/static/chunks/pages/checkout-f8cb7cb22225ef9d.js +1 -0
- package/.next/static/chunks/pages/index-7769e874d3fbd8dd.js +1 -0
- package/.next/static/chunks/pages/login-45cc84352bac2408.js +1 -0
- package/.next/static/chunks/pages/s-ba2868e14fedb65b.js +1 -0
- package/.next/static/chunks/polyfills-c67a75d1b6f99dc8.js +1 -0
- package/.next/static/chunks/webpack-182a506b4bd9e4b5.js +1 -0
- package/.next/static/css/2c5f55d60ddda308.css +1 -0
- package/.next/static/css/43d61b402f41569b.css +1 -0
- package/.next/static/css/6507cb48401e73a4.css +1 -0
- package/.next/static/css/8d4cc2151b8e3693.css +1 -0
- package/.next/static/css/cf4c6e7294227fd7.css +1 -0
- package/.next/static/css/db8c05ac7f2f0071.css +1 -0
- package/.next/static/media/brandless-neutral.76ddf63a.png +0 -0
- package/.next/static/zkJv0WcIQkZjhY4M0IF36/_buildManifest.js +1 -0
- package/.next/static/zkJv0WcIQkZjhY4M0IF36/_ssgManifest.js +1 -0
- package/.next/trace +63 -0
- package/.turbo/turbo-build.log +9 -7
- package/CHANGELOG.md +6 -0
- 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/cart/EmptyCart/EmptyCart.tsx +12 -9
- package/src/components/sections/ProductGallery/EmptyGallery.tsx +26 -19
- package/src/components/sections/ProductGallery/product-gallery.module.scss +1 -1
- package/src/pages/404.tsx +15 -2
- package/src/pages/login.tsx +4 -1
- package/src/components/ui/EmptyState/EmptyState.stories.mdx +0 -146
- package/src/components/ui/EmptyState/EmptyState.tsx +0 -26
- package/src/components/ui/EmptyState/empty-state.module.scss +0 -63
- package/src/components/ui/EmptyState/index.ts +0 -1
|
@@ -0,0 +1,58 @@
|
|
|
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__(7578);
|
|
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
|
+
;
|
|
@@ -0,0 +1,106 @@
|
|
|
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
|
+
;
|
|
@@ -0,0 +1,117 @@
|
|
|
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
|
+
;
|
|
@@ -0,0 +1,72 @@
|
|
|
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
|
+
;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
self.__BUILD_MANIFEST={polyfillFiles:["static/chunks/polyfills-c67a75d1b6f99dc8.js"],devFiles:[],ampDevFiles:[],lowPriorityFiles:["static/zkJv0WcIQkZjhY4M0IF36/_buildManifest.js","static/zkJv0WcIQkZjhY4M0IF36/_ssgManifest.js"],rootMainFiles:[],pages:{"/":["static/chunks/webpack-182a506b4bd9e4b5.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-7769e874d3fbd8dd.js"],"/404":["static/chunks/webpack-182a506b4bd9e4b5.js","static/chunks/framework-dfd14d7ce6600b03.js","static/chunks/main-9746772201fe3ac1.js","static/chunks/351-a4e28d64f48c5269.js","static/chunks/pages/404-3637ef83b3359df7.js"],"/500":["static/chunks/webpack-182a506b4bd9e4b5.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-182a506b4bd9e4b5.js","static/chunks/framework-dfd14d7ce6600b03.js","static/chunks/main-9746772201fe3ac1.js","static/chunks/351-a4e28d64f48c5269.js","static/chunks/264-f45c6dcd6b439926.js","static/css/db8c05ac7f2f0071.css","static/chunks/pages/[...slug]-a2ec94b035681582.js"],"/[slug]/p":["static/chunks/webpack-182a506b4bd9e4b5.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-67b681d02273f301.js"],"/_app":["static/chunks/webpack-182a506b4bd9e4b5.js","static/chunks/framework-dfd14d7ce6600b03.js","static/chunks/main-9746772201fe3ac1.js","static/css/2c5f55d60ddda308.css","static/chunks/pages/_app-9d067ed89f7a4001.js"],"/_error":["static/chunks/webpack-182a506b4bd9e4b5.js","static/chunks/framework-dfd14d7ce6600b03.js","static/chunks/main-9746772201fe3ac1.js","static/chunks/pages/_error-a7a0c1d9bfbb4f38.js"],"/account":["static/chunks/webpack-182a506b4bd9e4b5.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-182a506b4bd9e4b5.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-182a506b4bd9e4b5.js","static/chunks/framework-dfd14d7ce6600b03.js","static/chunks/main-9746772201fe3ac1.js","static/chunks/351-a4e28d64f48c5269.js","static/chunks/pages/login-45cc84352bac2408.js"],"/s":["static/chunks/webpack-182a506b4bd9e4b5.js","static/chunks/framework-dfd14d7ce6600b03.js","static/chunks/main-9746772201fe3ac1.js","static/chunks/351-a4e28d64f48c5269.js","static/chunks/264-f45c6dcd6b439926.js","static/css/cf4c6e7294227fd7.css","static/chunks/pages/s-ba2868e14fedb65b.js"]},ampFirstPages:[]};
|
|
@@ -0,0 +1 @@
|
|
|
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/chunks/54.e6562383f8a1dfe7.js"]},"../Layout.tsx -> src/components/region/RegionModal":{id:1597,files:["static/chunks/597.fc79494903e8bb84.js"]},"../components/search/SearchInput/SearchInput.tsx -> src/components/search/SearchDropdown":{id:495,files:["static/chunks/608.59e69b83f35d9c44.js","static/chunks/996.0cec637399d0f543.js"]},"../components/sections/ProductGallery/ProductGallery.tsx -> ./ProductGalleryPage":{id:8686,files:["static/chunks/608.59e69b83f35d9c44.js","static/css/6507cb48401e73a4.css","static/chunks/686.0136918bcab42e72.js"]}};
|
|
@@ -0,0 +1 @@
|
|
|
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/router.js","../../../node_modules/next/dist/lib/is-error.js","../../../node_modules/next/dist/shared/lib/router/utils/index.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/next/dist/client/with-router.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/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"]}
|
|
@@ -0,0 +1 @@
|
|
|
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/router.js","../../../node_modules/next/dist/lib/is-error.js","../../../node_modules/next/dist/shared/lib/router/utils/index.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/next/dist/client/with-router.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/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"]}
|