@faststore/core 2.0.83-alpha.0 → 2.0.87-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/.turbo/turbo-build.log +6 -7
- package/CHANGELOG.md +12 -0
- package/package.json +4 -4
- package/src/Layout.tsx +2 -2
- package/src/components/common/Toast/Toast.tsx +2 -4
- package/src/components/sections/Newsletter/Newsletter.tsx +5 -5
- package/src/components/sections/ProductDetails/ProductDetails.tsx +7 -5
- package/src/components/sections/ProductDetails/product-details.module.scss +0 -5
- package/src/components/ui/SkuSelector/Selectors.stories.mdx +5 -1
- package/src/components/ui/SkuSelector/Selectors.tsx +40 -54
- package/src/components/ui/SkuSelector/index.ts +0 -2
- package/src/sdk/cart/index.ts +2 -2
- package/.next/BUILD_ID +0 -1
- package/.next/build-manifest.json +0 -103
- package/.next/cache/.tsbuildinfo +0 -1
- package/.next/cache/config.json +0 -7
- package/.next/cache/eslint/.cache_1gneedd +0 -1
- package/.next/cache/next-server.js.nft.json +0 -1
- 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 +0 -1
- package/.next/images-manifest.json +0 -1
- package/.next/next-server.js.nft.json +0 -1
- package/.next/package.json +0 -1
- package/.next/prerender-manifest.json +0 -1
- package/.next/react-loadable-manifest.json +0 -52
- package/.next/required-server-files.json +0 -1
- package/.next/routes-manifest.json +0 -1
- package/.next/server/chunks/1317.js +0 -125
- package/.next/server/chunks/1394.js +0 -3801
- package/.next/server/chunks/1444.js +0 -464
- package/.next/server/chunks/1608.js +0 -515
- package/.next/server/chunks/2154.js +0 -206
- package/.next/server/chunks/2439.js +0 -175
- package/.next/server/chunks/247.js +0 -61
- package/.next/server/chunks/2914.js +0 -96
- package/.next/server/chunks/3264.js +0 -67
- package/.next/server/chunks/350.js +0 -120
- package/.next/server/chunks/3746.js +0 -237
- package/.next/server/chunks/3898.js +0 -240
- package/.next/server/chunks/4312.js +0 -712
- package/.next/server/chunks/4371.js +0 -1467
- package/.next/server/chunks/4849.js +0 -664
- package/.next/server/chunks/5098.js +0 -124
- package/.next/server/chunks/5576.js +0 -72
- package/.next/server/chunks/6280.js +0 -417
- package/.next/server/chunks/6307.js +0 -109
- package/.next/server/chunks/6465.js +0 -91
- package/.next/server/chunks/650.js +0 -216
- package/.next/server/chunks/676.js +0 -32
- package/.next/server/chunks/6859.js +0 -959
- package/.next/server/chunks/6881.js +0 -320
- package/.next/server/chunks/7104.js +0 -196
- package/.next/server/chunks/7183.js +0 -72
- package/.next/server/chunks/7377.js +0 -82
- package/.next/server/chunks/7732.js +0 -51
- package/.next/server/chunks/7992.js +0 -562
- package/.next/server/chunks/8098.js +0 -266
- package/.next/server/chunks/8287.js +0 -79
- package/.next/server/chunks/8872.js +0 -378
- package/.next/server/chunks/9143.js +0 -106
- package/.next/server/chunks/953.js +0 -674
- package/.next/server/chunks/9854.js +0 -72
- package/.next/server/chunks/font-manifest.json +0 -1
- package/.next/server/font-manifest.json +0 -1
- package/.next/server/middleware-build-manifest.js +0 -1
- package/.next/server/middleware-manifest.json +0 -6
- package/.next/server/middleware-react-loadable-manifest.js +0 -1
- package/.next/server/pages/404.js.nft.json +0 -1
- package/.next/server/pages/500.js.nft.json +0 -1
- package/.next/server/pages/[...slug].js +0 -633
- package/.next/server/pages/[...slug].js.nft.json +0 -1
- package/.next/server/pages/[slug]/p.js +0 -2586
- package/.next/server/pages/[slug]/p.js.nft.json +0 -1
- package/.next/server/pages/_app.js +0 -2082
- package/.next/server/pages/_app.js.nft.json +0 -1
- package/.next/server/pages/_document.js +0 -304
- package/.next/server/pages/_document.js.nft.json +0 -1
- package/.next/server/pages/_error.js +0 -164
- package/.next/server/pages/_error.js.nft.json +0 -1
- package/.next/server/pages/account.js.nft.json +0 -1
- package/.next/server/pages/api/graphql.js +0 -259
- package/.next/server/pages/api/graphql.js.nft.json +0 -1
- package/.next/server/pages/api/preview.js +0 -118
- package/.next/server/pages/api/preview.js.nft.json +0 -1
- package/.next/server/pages/checkout.js.nft.json +0 -1
- package/.next/server/pages/en-US/404.html +0 -81
- package/.next/server/pages/en-US/500.html +0 -81
- package/.next/server/pages/en-US/account.html +0 -81
- package/.next/server/pages/en-US/checkout.html +0 -81
- package/.next/server/pages/en-US/login.html +0 -81
- package/.next/server/pages/en-US/s.html +0 -81
- package/.next/server/pages/en-US.html +0 -81
- package/.next/server/pages/en-US.json +0 -1
- package/.next/server/pages/index.js +0 -428
- package/.next/server/pages/index.js.nft.json +0 -1
- package/.next/server/pages/login.js.nft.json +0 -1
- package/.next/server/pages/s.js.nft.json +0 -1
- package/.next/server/pages-manifest.json +0 -16
- package/.next/server/webpack-api-runtime.js +0 -229
- package/.next/server/webpack-runtime.js +0 -229
- package/.next/static/chunks/143.dd8a556e6957baa1.js +0 -1
- package/.next/static/chunks/153-a20e3f2da180607e.js +0 -1
- package/.next/static/chunks/29.8b3dad75b915d222.js +0 -1
- package/.next/static/chunks/307.10facde65af3066a.js +0 -1
- package/.next/static/chunks/337-cf283e91e431869b.js +0 -1
- package/.next/static/chunks/351-a4e28d64f48c5269.js +0 -1
- package/.next/static/chunks/380-efd3541ef85300d5.js +0 -1
- package/.next/static/chunks/608.59e69b83f35d9c44.js +0 -1
- package/.next/static/chunks/650.807852d1c36bfe44.js +0 -1
- package/.next/static/chunks/651.7142f31ce1e052b3.js +0 -1
- package/.next/static/chunks/686.41582b9e75eaba89.js +0 -1
- package/.next/static/chunks/741.52f7fb873418346f.js +0 -1
- package/.next/static/chunks/817-f2821b9a40663949.js +0 -1
- package/.next/static/chunks/843.fab5a00e170b4f11.js +0 -1
- package/.next/static/chunks/909.787de82e0ed9eea3.js +0 -1
- package/.next/static/chunks/98.97381d2021f86cd9.js +0 -1
- package/.next/static/chunks/framework-dfd14d7ce6600b03.js +0 -1
- package/.next/static/chunks/main-9746772201fe3ac1.js +0 -1
- package/.next/static/chunks/pages/404-ba608a2a9f0c420a.js +0 -1
- package/.next/static/chunks/pages/500-910883c20541d9ce.js +0 -1
- package/.next/static/chunks/pages/[...slug]-51896262f6760bf1.js +0 -1
- package/.next/static/chunks/pages/[slug]/p-08c1f443f7d84d0d.js +0 -1
- package/.next/static/chunks/pages/_app-81a4a14c7f15c641.js +0 -1
- package/.next/static/chunks/pages/_error-a7a0c1d9bfbb4f38.js +0 -1
- package/.next/static/chunks/pages/account-f19102933e6fd84c.js +0 -1
- package/.next/static/chunks/pages/checkout-f8cb7cb22225ef9d.js +0 -1
- package/.next/static/chunks/pages/index-912d65fde37706bb.js +0 -1
- package/.next/static/chunks/pages/login-0b9ea80d9fa0f91b.js +0 -1
- package/.next/static/chunks/pages/s-86fe1e3303388123.js +0 -1
- package/.next/static/chunks/polyfills-c67a75d1b6f99dc8.js +0 -1
- package/.next/static/chunks/webpack-1352532ac51c6a2d.js +0 -1
- package/.next/static/css/430b8cafbf7c23c1.css +0 -1
- package/.next/static/css/43d61b402f41569b.css +0 -1
- package/.next/static/css/4d7e7f156483493d.css +0 -1
- package/.next/static/css/6507cb48401e73a4.css +0 -1
- package/.next/static/css/9dd1d1084d254c66.css +0 -1
- package/.next/static/css/9e7c9877b9f78c63.css +0 -1
- package/.next/static/css/9e8d9784094a047f.css +0 -1
- package/.next/static/css/b2f16bd4b93e0aca.css +0 -1
- package/.next/static/css/bd743407c8049677.css +0 -1
- package/.next/static/dh7cD3fiozdMG3HhpxK6m/_buildManifest.js +0 -1
- package/.next/static/dh7cD3fiozdMG3HhpxK6m/_ssgManifest.js +0 -1
- package/.next/static/media/brandless-neutral.76ddf63a.png +0 -0
- package/.next/trace +0 -65
- package/public/~partytown/debug/partytown-atomics.js +0 -556
- package/public/~partytown/debug/partytown-media.js +0 -374
- package/public/~partytown/debug/partytown-sandbox-sw.js +0 -543
- package/public/~partytown/debug/partytown-sw.js +0 -59
- package/public/~partytown/debug/partytown-ww-atomics.js +0 -1789
- package/public/~partytown/debug/partytown-ww-sw.js +0 -1781
- package/public/~partytown/debug/partytown.js +0 -72
- package/public/~partytown/partytown-atomics.js +0 -2
- package/public/~partytown/partytown-media.js +0 -2
- package/public/~partytown/partytown-sw.js +0 -2
- package/public/~partytown/partytown.js +0 -2
- package/src/components/ui/SkuSelector/SkuSelector.stories.mdx +0 -345
- package/src/components/ui/SkuSelector/SkuSelector.tsx +0 -46
- package/src/components/ui/SkuSelector/sku-selector.module.scss +0 -172
- package/src/components/ui/SkuSelector/skuVariants.ts +0 -59
- package/src/components/ui/Toast/Toast.stories.mdx +0 -158
- package/src/components/ui/Toast/Toast.tsx +0 -56
- package/src/components/ui/Toast/index.ts +0 -1
- package/src/components/ui/Toast/toast.module.scss +0 -112
|
@@ -1,320 +0,0 @@
|
|
|
1
|
-
exports.id = 6881;
|
|
2
|
-
exports.ids = [6881];
|
|
3
|
-
exports.modules = {
|
|
4
|
-
|
|
5
|
-
/***/ 2928:
|
|
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__(6689);
|
|
13
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
14
|
-
|
|
15
|
-
const Skeleton = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function Skeleton({ testId = 'fs-skeleton', loading = true, shimmer = true, children, size, border, borderRadius, ...otherProps }, ref) {
|
|
16
|
-
const styles = {
|
|
17
|
-
width: size.width,
|
|
18
|
-
height: size.height,
|
|
19
|
-
};
|
|
20
|
-
return loading ? (react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", { ref: ref, "data-fs-skeleton": true, "data-testid": testId, "data-fs-skeleton-border": border ? border : null, style: borderRadius ? { ...styles, borderRadius: borderRadius } : styles, ...otherProps }, shimmer && react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", { "data-fs-skeleton-shimmer": true }))) : (react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, children));
|
|
21
|
-
});
|
|
22
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Skeleton);
|
|
23
|
-
//# sourceMappingURL=Skeleton.js.map
|
|
24
|
-
|
|
25
|
-
/***/ }),
|
|
26
|
-
|
|
27
|
-
/***/ 8879:
|
|
28
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
29
|
-
|
|
30
|
-
"use strict";
|
|
31
|
-
|
|
32
|
-
// EXPORTS
|
|
33
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
34
|
-
"Z": () => (/* reexport */ Section_Section)
|
|
35
|
-
});
|
|
36
|
-
|
|
37
|
-
// EXTERNAL MODULE: external "react"
|
|
38
|
-
var external_react_ = __webpack_require__(6689);
|
|
39
|
-
// EXTERNAL MODULE: external "react/jsx-runtime"
|
|
40
|
-
var jsx_runtime_ = __webpack_require__(997);
|
|
41
|
-
;// CONCATENATED MODULE: ./src/components/sections/Section/Section.tsx
|
|
42
|
-
const _excluded = ["className"];
|
|
43
|
-
|
|
44
|
-
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; }
|
|
45
|
-
|
|
46
|
-
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; }
|
|
47
|
-
|
|
48
|
-
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; }
|
|
49
|
-
|
|
50
|
-
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
51
|
-
|
|
52
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
const Section = /*#__PURE__*/(0,external_react_.forwardRef)(function Section(_ref, ref) {
|
|
57
|
-
let {
|
|
58
|
-
className = ''
|
|
59
|
-
} = _ref,
|
|
60
|
-
otherProps = _objectWithoutProperties(_ref, _excluded);
|
|
61
|
-
|
|
62
|
-
return /*#__PURE__*/jsx_runtime_.jsx("section", _objectSpread({
|
|
63
|
-
ref: ref,
|
|
64
|
-
className: `section ${className}`
|
|
65
|
-
}, otherProps));
|
|
66
|
-
});
|
|
67
|
-
/* harmony default export */ const Section_Section = (Section);
|
|
68
|
-
;// CONCATENATED MODULE: ./src/components/sections/Section/index.ts
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
/***/ }),
|
|
72
|
-
|
|
73
|
-
/***/ 3288:
|
|
74
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
75
|
-
|
|
76
|
-
"use strict";
|
|
77
|
-
|
|
78
|
-
// EXPORTS
|
|
79
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
80
|
-
"Z": () => (/* reexport */ ProductCardSkeleton_ProductCardSkeleton)
|
|
81
|
-
});
|
|
82
|
-
|
|
83
|
-
// EXTERNAL MODULE: ../components/dist/atoms/Skeleton/Skeleton.js
|
|
84
|
-
var Skeleton = __webpack_require__(2928);
|
|
85
|
-
// EXTERNAL MODULE: ./src/components/skeletons/ProductCardSkeleton/product-card-skeleton.module.scss
|
|
86
|
-
var product_card_skeleton_module = __webpack_require__(1207);
|
|
87
|
-
var product_card_skeleton_module_default = /*#__PURE__*/__webpack_require__.n(product_card_skeleton_module);
|
|
88
|
-
// EXTERNAL MODULE: external "react/jsx-runtime"
|
|
89
|
-
var jsx_runtime_ = __webpack_require__(997);
|
|
90
|
-
;// CONCATENATED MODULE: ./src/components/skeletons/ProductCardSkeleton/ProductCardSkeleton.tsx
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
function ProductCardSkeleton({
|
|
97
|
-
bordered,
|
|
98
|
-
sectioned,
|
|
99
|
-
displayButton,
|
|
100
|
-
aspectRatio = 1,
|
|
101
|
-
variant = 'default'
|
|
102
|
-
}) {
|
|
103
|
-
return /*#__PURE__*/(0,jsx_runtime_.jsxs)("div", {
|
|
104
|
-
className: (product_card_skeleton_module_default()).fsProductCardSkeleton,
|
|
105
|
-
"data-fs-product-card-skeleton": true,
|
|
106
|
-
"data-fs-product-card-skeleton-variant": variant,
|
|
107
|
-
"data-fs-product-card-skeleton-bordered": bordered,
|
|
108
|
-
"data-fs-product-card-skeleton-sectioned": sectioned,
|
|
109
|
-
children: [/*#__PURE__*/jsx_runtime_.jsx("div", {
|
|
110
|
-
"data-fs-product-card-skeleton-image": true,
|
|
111
|
-
style: {
|
|
112
|
-
'--fs-product-card-skeleton-image-aspect-ratio': aspectRatio
|
|
113
|
-
},
|
|
114
|
-
children: /*#__PURE__*/jsx_runtime_.jsx(Skeleton/* default */.Z, {
|
|
115
|
-
size: {
|
|
116
|
-
width: '100%',
|
|
117
|
-
height: '100%'
|
|
118
|
-
}
|
|
119
|
-
})
|
|
120
|
-
}), /*#__PURE__*/(0,jsx_runtime_.jsxs)("div", {
|
|
121
|
-
"data-fs-product-card-skeleton-content": true,
|
|
122
|
-
children: [/*#__PURE__*/jsx_runtime_.jsx(Skeleton/* default */.Z, {
|
|
123
|
-
"data-fs-product-card-skeleton-text": true,
|
|
124
|
-
size: {
|
|
125
|
-
width: '90%',
|
|
126
|
-
height: '1.5rem'
|
|
127
|
-
}
|
|
128
|
-
}), /*#__PURE__*/jsx_runtime_.jsx(Skeleton/* default */.Z, {
|
|
129
|
-
"data-fs-product-card-skeleton-text": true,
|
|
130
|
-
size: {
|
|
131
|
-
width: '70%',
|
|
132
|
-
height: '1.5rem'
|
|
133
|
-
}
|
|
134
|
-
}), /*#__PURE__*/jsx_runtime_.jsx(Skeleton/* default */.Z, {
|
|
135
|
-
"data-fs-product-card-skeleton-badge": true,
|
|
136
|
-
size: {
|
|
137
|
-
width: '6rem',
|
|
138
|
-
height: '2rem'
|
|
139
|
-
},
|
|
140
|
-
border: "pill"
|
|
141
|
-
}), displayButton && /*#__PURE__*/jsx_runtime_.jsx(Skeleton/* default */.Z, {
|
|
142
|
-
"data-fs-product-card-skeleton-button": true,
|
|
143
|
-
size: {
|
|
144
|
-
width: '6rem',
|
|
145
|
-
height: '2rem'
|
|
146
|
-
},
|
|
147
|
-
style: {
|
|
148
|
-
columnGap: '.75rem'
|
|
149
|
-
}
|
|
150
|
-
})]
|
|
151
|
-
})]
|
|
152
|
-
});
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
/* harmony default export */ const ProductCardSkeleton_ProductCardSkeleton = (ProductCardSkeleton);
|
|
156
|
-
;// CONCATENATED MODULE: ./src/components/skeletons/ProductCardSkeleton/index.ts
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
/***/ }),
|
|
160
|
-
|
|
161
|
-
/***/ 8459:
|
|
162
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
163
|
-
|
|
164
|
-
"use strict";
|
|
165
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
166
|
-
/* harmony export */ "K": () => (/* binding */ ITEMS_PER_SECTION),
|
|
167
|
-
/* harmony export */ "g": () => (/* binding */ ITEMS_PER_PAGE)
|
|
168
|
-
/* harmony export */ });
|
|
169
|
-
const ITEMS_PER_PAGE = 12;
|
|
170
|
-
const ITEMS_PER_SECTION = 5;
|
|
171
|
-
|
|
172
|
-
/***/ }),
|
|
173
|
-
|
|
174
|
-
/***/ 2953:
|
|
175
|
-
/***/ ((module, __webpack_exports__, __webpack_require__) => {
|
|
176
|
-
|
|
177
|
-
"use strict";
|
|
178
|
-
__webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {
|
|
179
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
180
|
-
/* harmony export */ "p": () => (/* binding */ prefetchQuery)
|
|
181
|
-
/* harmony export */ });
|
|
182
|
-
/* harmony import */ var swr__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5941);
|
|
183
|
-
/* harmony import */ var _request__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(180);
|
|
184
|
-
/* harmony import */ var _useQuery__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7732);
|
|
185
|
-
var __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([swr__WEBPACK_IMPORTED_MODULE_0__, _useQuery__WEBPACK_IMPORTED_MODULE_2__]);
|
|
186
|
-
([swr__WEBPACK_IMPORTED_MODULE_0__, _useQuery__WEBPACK_IMPORTED_MODULE_2__] = __webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__);
|
|
187
|
-
const _excluded = ["cache"];
|
|
188
|
-
|
|
189
|
-
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
190
|
-
|
|
191
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
const prefetchQuery = (operationName, variables, _ref) => {
|
|
197
|
-
let {
|
|
198
|
-
cache
|
|
199
|
-
} = _ref,
|
|
200
|
-
options = _objectWithoutProperties(_ref, _excluded);
|
|
201
|
-
|
|
202
|
-
const key = (0,_useQuery__WEBPACK_IMPORTED_MODULE_2__/* .getKey */ .km)(operationName, variables);
|
|
203
|
-
|
|
204
|
-
if (cache.get(key)) {
|
|
205
|
-
return;
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
(0,swr__WEBPACK_IMPORTED_MODULE_0__.mutate)(key, (0,_request__WEBPACK_IMPORTED_MODULE_1__/* .request */ .W)(operationName, variables, options));
|
|
209
|
-
};
|
|
210
|
-
__webpack_async_result__();
|
|
211
|
-
} catch(e) { __webpack_async_result__(e); } });
|
|
212
|
-
|
|
213
|
-
/***/ }),
|
|
214
|
-
|
|
215
|
-
/***/ 4867:
|
|
216
|
-
/***/ ((module, __webpack_exports__, __webpack_require__) => {
|
|
217
|
-
|
|
218
|
-
"use strict";
|
|
219
|
-
__webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {
|
|
220
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
221
|
-
/* harmony export */ "BG": () => (/* binding */ useProductsQueryPrefetch),
|
|
222
|
-
/* harmony export */ "kN": () => (/* binding */ useProductsQuery),
|
|
223
|
-
/* harmony export */ "yb": () => (/* binding */ useLocalizedVariables)
|
|
224
|
-
/* harmony export */ });
|
|
225
|
-
/* unused harmony export query */
|
|
226
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6689);
|
|
227
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
228
|
-
/* harmony import */ var swr__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5941);
|
|
229
|
-
/* harmony import */ var src_constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(8459);
|
|
230
|
-
/* harmony import */ var _graphql_prefetchQuery__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2953);
|
|
231
|
-
/* harmony import */ var _graphql_useQuery__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(7732);
|
|
232
|
-
/* harmony import */ var _session__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(5971);
|
|
233
|
-
var __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([swr__WEBPACK_IMPORTED_MODULE_1__, _graphql_prefetchQuery__WEBPACK_IMPORTED_MODULE_2__, _graphql_useQuery__WEBPACK_IMPORTED_MODULE_3__]);
|
|
234
|
-
([swr__WEBPACK_IMPORTED_MODULE_1__, _graphql_prefetchQuery__WEBPACK_IMPORTED_MODULE_2__, _graphql_useQuery__WEBPACK_IMPORTED_MODULE_3__] = __webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__);
|
|
235
|
-
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; }
|
|
236
|
-
|
|
237
|
-
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; }
|
|
238
|
-
|
|
239
|
-
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; }
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
const query = "ProductsQuery";
|
|
248
|
-
|
|
249
|
-
const toArray = x => Array.isArray(x) ? x : x ? [x] : [];
|
|
250
|
-
|
|
251
|
-
const useLocalizedVariables = ({
|
|
252
|
-
first,
|
|
253
|
-
after,
|
|
254
|
-
sort,
|
|
255
|
-
term,
|
|
256
|
-
selectedFacets
|
|
257
|
-
}) => {
|
|
258
|
-
const {
|
|
259
|
-
channel,
|
|
260
|
-
locale
|
|
261
|
-
} = (0,_session__WEBPACK_IMPORTED_MODULE_4__/* .useSession */ .kP)();
|
|
262
|
-
return (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(() => {
|
|
263
|
-
const facets = toArray(selectedFacets);
|
|
264
|
-
return {
|
|
265
|
-
first: first ?? src_constants__WEBPACK_IMPORTED_MODULE_5__/* .ITEMS_PER_SECTION */ .K,
|
|
266
|
-
after: after ?? '0',
|
|
267
|
-
sort: sort ?? 'score_desc',
|
|
268
|
-
term: term ?? '',
|
|
269
|
-
selectedFacets: [...facets, {
|
|
270
|
-
key: 'channel',
|
|
271
|
-
value: channel ?? ''
|
|
272
|
-
}, {
|
|
273
|
-
key: 'locale',
|
|
274
|
-
value: locale
|
|
275
|
-
}]
|
|
276
|
-
};
|
|
277
|
-
}, [selectedFacets, first, after, sort, term, channel, locale]);
|
|
278
|
-
};
|
|
279
|
-
/**
|
|
280
|
-
* Use this hook for fetching a list of products, like in search results and shelves
|
|
281
|
-
*/
|
|
282
|
-
|
|
283
|
-
const useProductsQuery = (variables, options) => {
|
|
284
|
-
const localizedVariables = useLocalizedVariables(variables);
|
|
285
|
-
const {
|
|
286
|
-
data
|
|
287
|
-
} = (0,_graphql_useQuery__WEBPACK_IMPORTED_MODULE_3__/* .useQuery */ .aM)(query, localizedVariables, _objectSpread({
|
|
288
|
-
fallbackData: null,
|
|
289
|
-
suspense: true
|
|
290
|
-
}, options));
|
|
291
|
-
return data?.search?.products;
|
|
292
|
-
};
|
|
293
|
-
const useProductsQueryPrefetch = (variables, options) => {
|
|
294
|
-
const localizedVariables = useLocalizedVariables(variables);
|
|
295
|
-
const {
|
|
296
|
-
cache
|
|
297
|
-
} = (0,swr__WEBPACK_IMPORTED_MODULE_1__.useSWRConfig)();
|
|
298
|
-
return (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(() => (0,_graphql_prefetchQuery__WEBPACK_IMPORTED_MODULE_2__/* .prefetchQuery */ .p)(query, localizedVariables, _objectSpread({
|
|
299
|
-
cache
|
|
300
|
-
}, options)), [localizedVariables, cache, options]);
|
|
301
|
-
};
|
|
302
|
-
__webpack_async_result__();
|
|
303
|
-
} catch(e) { __webpack_async_result__(e); } });
|
|
304
|
-
|
|
305
|
-
/***/ }),
|
|
306
|
-
|
|
307
|
-
/***/ 1207:
|
|
308
|
-
/***/ ((module) => {
|
|
309
|
-
|
|
310
|
-
// Exports
|
|
311
|
-
module.exports = {
|
|
312
|
-
"fs-product-card-skeleton": "product-card-skeleton_fs-product-card-skeleton__fPdHb",
|
|
313
|
-
"fsProductCardSkeleton": "product-card-skeleton_fs-product-card-skeleton__fPdHb"
|
|
314
|
-
};
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
/***/ })
|
|
318
|
-
|
|
319
|
-
};
|
|
320
|
-
;
|
|
@@ -1,196 +0,0 @@
|
|
|
1
|
-
exports.id = 7104;
|
|
2
|
-
exports.ids = [7104];
|
|
3
|
-
exports.modules = {
|
|
4
|
-
|
|
5
|
-
/***/ 8569:
|
|
6
|
-
/***/ ((module, __webpack_exports__, __webpack_require__) => {
|
|
7
|
-
|
|
8
|
-
"use strict";
|
|
9
|
-
__webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {
|
|
10
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
11
|
-
/* harmony export */ "Z": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
12
|
-
/* harmony export */ });
|
|
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 react_intersection_observer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9785);
|
|
16
|
-
/* harmony import */ var react_intersection_observer__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_intersection_observer__WEBPACK_IMPORTED_MODULE_1__);
|
|
17
|
-
/* harmony import */ var src_sdk_analytics_hooks_useViewItemListEvent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5184);
|
|
18
|
-
/* harmony import */ var src_components_skeletons_ProductShelfSkeleton__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9201);
|
|
19
|
-
/* harmony import */ var src_sdk_product_useProductsQuery__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(4867);
|
|
20
|
-
/* harmony import */ var _product_ProductCard__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(6475);
|
|
21
|
-
/* harmony import */ var _Section__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(8879);
|
|
22
|
-
/* harmony import */ var _product_shelf_module_scss__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(3656);
|
|
23
|
-
/* harmony import */ var _product_shelf_module_scss__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_product_shelf_module_scss__WEBPACK_IMPORTED_MODULE_8__);
|
|
24
|
-
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(997);
|
|
25
|
-
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__);
|
|
26
|
-
var __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([src_sdk_product_useProductsQuery__WEBPACK_IMPORTED_MODULE_4__]);
|
|
27
|
-
src_sdk_product_useProductsQuery__WEBPACK_IMPORTED_MODULE_4__ = (__webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__)[0];
|
|
28
|
-
const _excluded = ["title", "withDivisor"];
|
|
29
|
-
|
|
30
|
-
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
31
|
-
|
|
32
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
function ProductShelf(_ref) {
|
|
46
|
-
let {
|
|
47
|
-
title,
|
|
48
|
-
withDivisor = false
|
|
49
|
-
} = _ref,
|
|
50
|
-
variables = _objectWithoutProperties(_ref, _excluded);
|
|
51
|
-
|
|
52
|
-
const viewedOnce = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(false);
|
|
53
|
-
const {
|
|
54
|
-
ref,
|
|
55
|
-
inView
|
|
56
|
-
} = (0,react_intersection_observer__WEBPACK_IMPORTED_MODULE_1__.useInView)();
|
|
57
|
-
const products = (0,src_sdk_product_useProductsQuery__WEBPACK_IMPORTED_MODULE_4__/* .useProductsQuery */ .kN)(variables);
|
|
58
|
-
const productEdges = products?.edges ?? [];
|
|
59
|
-
const aspectRatio = 1;
|
|
60
|
-
const {
|
|
61
|
-
sendViewItemListEvent
|
|
62
|
-
} = (0,src_sdk_analytics_hooks_useViewItemListEvent__WEBPACK_IMPORTED_MODULE_2__/* .useViewItemListEvent */ .m)({
|
|
63
|
-
products: productEdges,
|
|
64
|
-
title,
|
|
65
|
-
page: 0,
|
|
66
|
-
pageSize: 0
|
|
67
|
-
});
|
|
68
|
-
(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => {
|
|
69
|
-
if (inView && !viewedOnce.current && productEdges.length) {
|
|
70
|
-
sendViewItemListEvent();
|
|
71
|
-
viewedOnce.current = true;
|
|
72
|
-
}
|
|
73
|
-
}, [inView, productEdges.length, sendViewItemListEvent]);
|
|
74
|
-
|
|
75
|
-
if (products?.edges.length === 0) {
|
|
76
|
-
return null;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsxs)(_Section__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z, {
|
|
80
|
-
className: `layout__section ${withDivisor ? 'section__divisor' : ''}`,
|
|
81
|
-
ref: ref,
|
|
82
|
-
children: [/*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx("h2", {
|
|
83
|
-
className: "text__title-section layout__content",
|
|
84
|
-
children: title
|
|
85
|
-
}), /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx("div", {
|
|
86
|
-
className: (_product_shelf_module_scss__WEBPACK_IMPORTED_MODULE_8___default().fsProductShelf),
|
|
87
|
-
"data-fs-product-shelf": true,
|
|
88
|
-
children: /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx(src_components_skeletons_ProductShelfSkeleton__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z, {
|
|
89
|
-
aspectRatio: aspectRatio,
|
|
90
|
-
loading: products === undefined,
|
|
91
|
-
children: /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx("ul", {
|
|
92
|
-
"data-fs-product-shelf-items": true,
|
|
93
|
-
className: "layout__content",
|
|
94
|
-
children: productEdges.map((product, idx) => /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx("li", {
|
|
95
|
-
children: /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx(_product_ProductCard__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z, {
|
|
96
|
-
product: product.node,
|
|
97
|
-
index: idx + 1,
|
|
98
|
-
aspectRatio: aspectRatio
|
|
99
|
-
})
|
|
100
|
-
}, `${product.node.id}`))
|
|
101
|
-
})
|
|
102
|
-
})
|
|
103
|
-
})]
|
|
104
|
-
});
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ProductShelf);
|
|
108
|
-
__webpack_async_result__();
|
|
109
|
-
} catch(e) { __webpack_async_result__(e); } });
|
|
110
|
-
|
|
111
|
-
/***/ }),
|
|
112
|
-
|
|
113
|
-
/***/ 7104:
|
|
114
|
-
/***/ ((module, __webpack_exports__, __webpack_require__) => {
|
|
115
|
-
|
|
116
|
-
"use strict";
|
|
117
|
-
__webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {
|
|
118
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
119
|
-
/* harmony export */ "Z": () => (/* reexport safe */ _ProductShelf__WEBPACK_IMPORTED_MODULE_0__.Z)
|
|
120
|
-
/* harmony export */ });
|
|
121
|
-
/* harmony import */ var _ProductShelf__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8569);
|
|
122
|
-
var __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([_ProductShelf__WEBPACK_IMPORTED_MODULE_0__]);
|
|
123
|
-
_ProductShelf__WEBPACK_IMPORTED_MODULE_0__ = (__webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__)[0];
|
|
124
|
-
|
|
125
|
-
__webpack_async_result__();
|
|
126
|
-
} catch(e) { __webpack_async_result__(e); } });
|
|
127
|
-
|
|
128
|
-
/***/ }),
|
|
129
|
-
|
|
130
|
-
/***/ 9201:
|
|
131
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
132
|
-
|
|
133
|
-
"use strict";
|
|
134
|
-
|
|
135
|
-
// EXPORTS
|
|
136
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
137
|
-
"Z": () => (/* reexport */ ProductShelfSkeleton_ProductShelfSkeleton)
|
|
138
|
-
});
|
|
139
|
-
|
|
140
|
-
// EXTERNAL MODULE: ./src/constants.ts
|
|
141
|
-
var constants = __webpack_require__(8459);
|
|
142
|
-
// EXTERNAL MODULE: ./src/components/sections/ProductShelf/product-shelf.module.scss
|
|
143
|
-
var product_shelf_module = __webpack_require__(3656);
|
|
144
|
-
var product_shelf_module_default = /*#__PURE__*/__webpack_require__.n(product_shelf_module);
|
|
145
|
-
// EXTERNAL MODULE: ./src/components/skeletons/ProductCardSkeleton/index.ts + 1 modules
|
|
146
|
-
var ProductCardSkeleton = __webpack_require__(3288);
|
|
147
|
-
// EXTERNAL MODULE: external "react/jsx-runtime"
|
|
148
|
-
var jsx_runtime_ = __webpack_require__(997);
|
|
149
|
-
;// CONCATENATED MODULE: ./src/components/skeletons/ProductShelfSkeleton/ProductShelfSkeleton.tsx
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
function ProductShelfSkeleton({
|
|
157
|
-
children,
|
|
158
|
-
aspectRatio,
|
|
159
|
-
loading = true
|
|
160
|
-
}) {
|
|
161
|
-
return loading ? /*#__PURE__*/jsx_runtime_.jsx("ul", {
|
|
162
|
-
"data-fs-product-shelf-items": true,
|
|
163
|
-
className: `layout__content ${(product_shelf_module_default()).fsProductShelf}`,
|
|
164
|
-
children: Array.from({
|
|
165
|
-
length: constants/* ITEMS_PER_SECTION */.K
|
|
166
|
-
}, (_, index) => /*#__PURE__*/jsx_runtime_.jsx("li", {
|
|
167
|
-
children: /*#__PURE__*/jsx_runtime_.jsx(ProductCardSkeleton/* default */.Z, {
|
|
168
|
-
aspectRatio: aspectRatio,
|
|
169
|
-
sectioned: true
|
|
170
|
-
})
|
|
171
|
-
}, String(index)))
|
|
172
|
-
}) : /*#__PURE__*/jsx_runtime_.jsx(jsx_runtime_.Fragment, {
|
|
173
|
-
children: children
|
|
174
|
-
});
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
/* harmony default export */ const ProductShelfSkeleton_ProductShelfSkeleton = (ProductShelfSkeleton);
|
|
178
|
-
;// CONCATENATED MODULE: ./src/components/skeletons/ProductShelfSkeleton/index.ts
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
/***/ }),
|
|
182
|
-
|
|
183
|
-
/***/ 3656:
|
|
184
|
-
/***/ ((module) => {
|
|
185
|
-
|
|
186
|
-
// Exports
|
|
187
|
-
module.exports = {
|
|
188
|
-
"fs-product-shelf": "product-shelf_fs-product-shelf__65g4z",
|
|
189
|
-
"fsProductShelf": "product-shelf_fs-product-shelf__65g4z"
|
|
190
|
-
};
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
/***/ })
|
|
194
|
-
|
|
195
|
-
};
|
|
196
|
-
;
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
exports.id = 7183;
|
|
2
|
-
exports.ids = [7183];
|
|
3
|
-
exports.modules = {
|
|
4
|
-
|
|
5
|
-
/***/ 7183:
|
|
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
|
-
},
|
|
26
|
-
// Default session
|
|
27
|
-
session: {
|
|
28
|
-
currency: {
|
|
29
|
-
code: 'USD',
|
|
30
|
-
symbol: '$'
|
|
31
|
-
},
|
|
32
|
-
locale: 'en-US',
|
|
33
|
-
channel: '{"salesChannel":"1","regionId":""}',
|
|
34
|
-
country: 'USA',
|
|
35
|
-
postalCode: null,
|
|
36
|
-
person: null
|
|
37
|
-
},
|
|
38
|
-
// Production URLs
|
|
39
|
-
storeUrl: 'https://vtexfaststore.com',
|
|
40
|
-
secureSubdomain: 'https://secure.vtexfaststore.com',
|
|
41
|
-
checkoutUrl: 'https://secure.vtexfaststore.com/checkout',
|
|
42
|
-
loginUrl: 'https://secure.vtexfaststore.com/api/io/login',
|
|
43
|
-
accountUrl: 'https://secure.vtexfaststore.com/api/io/account',
|
|
44
|
-
// Lighthouse CI
|
|
45
|
-
lighthouse: {
|
|
46
|
-
server: process.env.BASE_SITE_URL || 'http://localhost:3000',
|
|
47
|
-
pages: {
|
|
48
|
-
home: '/',
|
|
49
|
-
pdp: '/apple-magic-mouse/p',
|
|
50
|
-
collection: '/office'
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
|
-
// E2E CI
|
|
54
|
-
cypress: {
|
|
55
|
-
pages: {
|
|
56
|
-
home: '/',
|
|
57
|
-
pdp: '/apple-magic-mouse/p',
|
|
58
|
-
collection: '/office',
|
|
59
|
-
collection_filtered: '/office/?category-1=office&marca=acer&facets=category-1%2Cmarca',
|
|
60
|
-
search: '/s?q=orange'
|
|
61
|
-
}
|
|
62
|
-
},
|
|
63
|
-
analytics: {
|
|
64
|
-
// https://developers.google.com/tag-platform/tag-manager/web#standard_web_page_installation,
|
|
65
|
-
gtmContainerId: 'GTM-PGHZ95N'
|
|
66
|
-
}
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
/***/ })
|
|
70
|
-
|
|
71
|
-
};
|
|
72
|
-
;
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
exports.id = 7377;
|
|
3
|
-
exports.ids = [7377];
|
|
4
|
-
exports.modules = {
|
|
5
|
-
|
|
6
|
-
/***/ 7377:
|
|
7
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
// EXPORTS
|
|
11
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
12
|
-
"Z": () => (/* binding */ QuantitySelector_QuantitySelector)
|
|
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
|
-
// EXTERNAL MODULE: ../components/dist/molecules/IconButton/IconButton.js
|
|
19
|
-
var IconButton = __webpack_require__(2765);
|
|
20
|
-
// EXTERNAL MODULE: ../components/dist/atoms/Input/Input.js
|
|
21
|
-
var Input = __webpack_require__(875);
|
|
22
|
-
;// CONCATENATED MODULE: ../components/dist/assets/Minus.js
|
|
23
|
-
|
|
24
|
-
// Icon from Phosphor Icons
|
|
25
|
-
const Minus = () => (external_react_default().createElement("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "currentColor", viewBox: "0 0 256 256", strokeWidth: "24", width: 16, height: 16 },
|
|
26
|
-
external_react_default().createElement("rect", { width: "256", height: "256", fill: "none" }),
|
|
27
|
-
external_react_default().createElement("line", { x1: "40", y1: "128", x2: "216", y2: "128", fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round" })));
|
|
28
|
-
/* harmony default export */ const assets_Minus = (Minus);
|
|
29
|
-
//# sourceMappingURL=Minus.js.map
|
|
30
|
-
;// CONCATENATED MODULE: ../components/dist/assets/Plus.js
|
|
31
|
-
|
|
32
|
-
// Icon from Phosphor Icons
|
|
33
|
-
const Plus = () => (external_react_default().createElement("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "currentColor", viewBox: "0 0 256 256", strokeWidth: "24", width: 16, height: 16 },
|
|
34
|
-
external_react_default().createElement("rect", { width: "256", height: "256", fill: "none" }),
|
|
35
|
-
external_react_default().createElement("line", { x1: "40", y1: "128", x2: "216", y2: "128", fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
36
|
-
external_react_default().createElement("line", { x1: "128", y1: "40", x2: "128", y2: "216", fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round" })));
|
|
37
|
-
/* harmony default export */ const assets_Plus = (Plus);
|
|
38
|
-
//# sourceMappingURL=Plus.js.map
|
|
39
|
-
;// CONCATENATED MODULE: ../components/dist/molecules/QuantitySelector/QuantitySelector.js
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
const QuantitySelector = ({ max, min = 1, initial, disabled = false, onChange, testId = 'fs-quantity-selector', ...otherProps }) => {
|
|
44
|
-
const [quantity, setQuantity] = (0,external_react_.useState)(initial ?? min);
|
|
45
|
-
const isLeftDisabled = quantity === min;
|
|
46
|
-
const isRightDisabled = quantity === max;
|
|
47
|
-
const changeQuantity = (increaseValue) => {
|
|
48
|
-
const quantityValue = validateQuantityBounds(quantity + increaseValue);
|
|
49
|
-
onChange?.(quantityValue);
|
|
50
|
-
setQuantity(quantityValue);
|
|
51
|
-
};
|
|
52
|
-
const increase = () => changeQuantity(1);
|
|
53
|
-
const decrease = () => changeQuantity(-1);
|
|
54
|
-
function validateQuantityBounds(n) {
|
|
55
|
-
const maxValue = min ? Math.max(n, min) : n;
|
|
56
|
-
return max ? Math.min(maxValue, max) : maxValue;
|
|
57
|
-
}
|
|
58
|
-
function validateInput(e) {
|
|
59
|
-
const val = e.currentTarget.value;
|
|
60
|
-
if (!Number.isNaN(Number(val))) {
|
|
61
|
-
setQuantity(() => {
|
|
62
|
-
const quantityValue = validateQuantityBounds(Number(val));
|
|
63
|
-
onChange?.(quantityValue);
|
|
64
|
-
return quantityValue;
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
(0,external_react_.useEffect)(() => {
|
|
69
|
-
initial && setQuantity(initial);
|
|
70
|
-
}, [initial]);
|
|
71
|
-
return (external_react_default().createElement("div", { "data-fs-quantity-selector": disabled ? 'disabled' : 'true', "data-testid": testId, ...otherProps },
|
|
72
|
-
external_react_default().createElement(IconButton/* default */.Z, { "data-quantity-selector-button": "left", icon: external_react_default().createElement(assets_Minus, null), "aria-label": "Decrement Quantity", "aria-controls": "quantity-selector-input", disabled: isLeftDisabled || disabled, onClick: decrease, testId: `${testId}-left-button` }),
|
|
73
|
-
external_react_default().createElement(Input/* default */.Z, { "data-quantity-selector-input": true, id: "quantity-selector-input", "aria-label": "Quantity", value: quantity, onChange: validateInput, disabled: disabled }),
|
|
74
|
-
external_react_default().createElement(IconButton/* default */.Z, { "data-quantity-selector-button": "right", "aria-controls": "quantity-selector-input", "aria-label": "Increment Quantity", disabled: isRightDisabled || disabled, icon: external_react_default().createElement(assets_Plus, null), onClick: increase, testId: `${testId}-right-button` })));
|
|
75
|
-
};
|
|
76
|
-
/* harmony default export */ const QuantitySelector_QuantitySelector = (QuantitySelector);
|
|
77
|
-
//# sourceMappingURL=QuantitySelector.js.map
|
|
78
|
-
|
|
79
|
-
/***/ })
|
|
80
|
-
|
|
81
|
-
};
|
|
82
|
-
;
|