@faststore/core 2.0.145-alpha.0 → 2.0.146-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 (158) hide show
  1. package/.next/BUILD_ID +1 -0
  2. package/.next/build-manifest.json +132 -0
  3. package/.next/cache/.tsbuildinfo +1 -0
  4. package/.next/cache/config.json +7 -0
  5. package/.next/cache/eslint/.cache_1gneedd +1 -0
  6. package/.next/cache/next-server.js.nft.json +1 -0
  7. package/.next/cache/webpack/client-production/0.pack +0 -0
  8. package/.next/cache/webpack/client-production/index.pack +0 -0
  9. package/.next/cache/webpack/server-production/0.pack +0 -0
  10. package/.next/cache/webpack/server-production/index.pack +0 -0
  11. package/.next/export-marker.json +1 -0
  12. package/.next/images-manifest.json +1 -0
  13. package/.next/next-server.js.nft.json +1 -0
  14. package/.next/package.json +1 -0
  15. package/.next/prerender-manifest.json +1 -0
  16. package/.next/react-loadable-manifest.json +48 -0
  17. package/.next/required-server-files.json +1 -0
  18. package/.next/routes-manifest.json +1 -0
  19. package/.next/server/chunks/104.js +703 -0
  20. package/.next/server/chunks/123.js +58 -0
  21. package/.next/server/chunks/143.js +106 -0
  22. package/.next/server/chunks/183.js +80 -0
  23. package/.next/server/chunks/247.js +61 -0
  24. package/.next/server/chunks/280.js +324 -0
  25. package/.next/server/chunks/287.js +58 -0
  26. package/.next/server/chunks/312.js +670 -0
  27. package/.next/server/chunks/336.js +821 -0
  28. package/.next/server/chunks/350.js +142 -0
  29. package/.next/server/chunks/368.js +253 -0
  30. package/.next/server/chunks/401.js +7241 -0
  31. package/.next/server/chunks/431.js +7241 -0
  32. package/.next/server/chunks/502.js +600 -0
  33. package/.next/server/chunks/557.js +132 -0
  34. package/.next/server/chunks/576.js +80 -0
  35. package/.next/server/chunks/597.js +169 -0
  36. package/.next/server/chunks/608.js +644 -0
  37. package/.next/server/chunks/644.js +235 -0
  38. package/.next/server/chunks/664.js +3401 -0
  39. package/.next/server/chunks/676.js +32 -0
  40. package/.next/server/chunks/701.js +87 -0
  41. package/.next/server/chunks/74.js +2674 -0
  42. package/.next/server/chunks/746.js +225 -0
  43. package/.next/server/chunks/82.js +371 -0
  44. package/.next/server/chunks/854.js +72 -0
  45. package/.next/server/chunks/859.js +959 -0
  46. package/.next/server/chunks/874.js +487 -0
  47. package/.next/server/chunks/886.js +120 -0
  48. package/.next/server/chunks/907.js +1723 -0
  49. package/.next/server/chunks/98.js +124 -0
  50. package/.next/server/chunks/font-manifest.json +1 -0
  51. package/.next/server/font-manifest.json +1 -0
  52. package/.next/server/middleware-build-manifest.js +1 -0
  53. package/.next/server/middleware-manifest.json +6 -0
  54. package/.next/server/middleware-react-loadable-manifest.js +1 -0
  55. package/.next/server/pages/404.js +393 -0
  56. package/.next/server/pages/404.js.nft.json +1 -0
  57. package/.next/server/pages/500.js +395 -0
  58. package/.next/server/pages/500.js.nft.json +1 -0
  59. package/.next/server/pages/[...slug].js +718 -0
  60. package/.next/server/pages/[...slug].js.nft.json +1 -0
  61. package/.next/server/pages/[slug]/p.js +2386 -0
  62. package/.next/server/pages/[slug]/p.js.nft.json +1 -0
  63. package/.next/server/pages/_app.js +368 -0
  64. package/.next/server/pages/_app.js.nft.json +1 -0
  65. package/.next/server/pages/_document.js +304 -0
  66. package/.next/server/pages/_document.js.nft.json +1 -0
  67. package/.next/server/pages/_error.js +164 -0
  68. package/.next/server/pages/_error.js.nft.json +1 -0
  69. package/.next/server/pages/account.js +370 -0
  70. package/.next/server/pages/account.js.nft.json +1 -0
  71. package/.next/server/pages/api/graphql.js +315 -0
  72. package/.next/server/pages/api/graphql.js.nft.json +1 -0
  73. package/.next/server/pages/api/preview.js +118 -0
  74. package/.next/server/pages/api/preview.js.nft.json +1 -0
  75. package/.next/server/pages/checkout.js +370 -0
  76. package/.next/server/pages/checkout.js.nft.json +1 -0
  77. package/.next/server/pages/en-US/404.html +81 -0
  78. package/.next/server/pages/en-US/404.json +1 -0
  79. package/.next/server/pages/en-US/500.html +81 -0
  80. package/.next/server/pages/en-US/500.json +1 -0
  81. package/.next/server/pages/en-US/account.html +81 -0
  82. package/.next/server/pages/en-US/account.json +1 -0
  83. package/.next/server/pages/en-US/checkout.html +81 -0
  84. package/.next/server/pages/en-US/checkout.json +1 -0
  85. package/.next/server/pages/en-US/login.html +81 -0
  86. package/.next/server/pages/en-US/login.json +1 -0
  87. package/.next/server/pages/en-US/s.html +81 -0
  88. package/.next/server/pages/en-US/s.json +1 -0
  89. package/.next/server/pages/en-US.html +81 -0
  90. package/.next/server/pages/en-US.json +1 -0
  91. package/.next/server/pages/index.js +966 -0
  92. package/.next/server/pages/index.js.nft.json +1 -0
  93. package/.next/server/pages/login.js +375 -0
  94. package/.next/server/pages/login.js.nft.json +1 -0
  95. package/.next/server/pages/s.js +457 -0
  96. package/.next/server/pages/s.js.nft.json +1 -0
  97. package/.next/server/pages-manifest.json +16 -0
  98. package/.next/server/webpack-api-runtime.js +229 -0
  99. package/.next/server/webpack-runtime.js +229 -0
  100. package/.next/static/QGL3gfKa2F4ppozosZML6/_buildManifest.js +1 -0
  101. package/.next/static/QGL3gfKa2F4ppozosZML6/_ssgManifest.js +1 -0
  102. package/.next/static/chunks/143.dd8a556e6957baa1.js +1 -0
  103. package/.next/static/chunks/170.c17ce564bb568265.js +1 -0
  104. package/.next/static/chunks/226.b57e10ad9932f88c.js +1 -0
  105. package/.next/static/chunks/327-43715af4f3fffaf6.js +1 -0
  106. package/.next/static/chunks/336.0846f48eccce57e4.js +1 -0
  107. package/.next/static/chunks/366-4a0572a47e2225d9.js +1 -0
  108. package/.next/static/chunks/377-61e89c711b136605.js +1 -0
  109. package/.next/static/chunks/391-47b923ef44945418.js +1 -0
  110. package/.next/static/chunks/495.8ffebac98e9475dc.js +1 -0
  111. package/.next/static/chunks/502.ae82de1669112b15.js +1 -0
  112. package/.next/static/chunks/545-1d3d08edfd2ee4c6.js +1 -0
  113. package/.next/static/chunks/597.c5cf3fbeae5ceb63.js +1 -0
  114. package/.next/static/chunks/651.7142f31ce1e052b3.js +1 -0
  115. package/.next/static/chunks/741.52f7fb873418346f.js +1 -0
  116. package/.next/static/chunks/98.97381d2021f86cd9.js +1 -0
  117. package/.next/static/chunks/framework-dfd14d7ce6600b03.js +1 -0
  118. package/.next/static/chunks/main-fd466221927468fd.js +1 -0
  119. package/.next/static/chunks/pages/404-459452495a0df278.js +1 -0
  120. package/.next/static/chunks/pages/500-008e30c48eceebed.js +1 -0
  121. package/.next/static/chunks/pages/[...slug]-3c749c7d8561eb90.js +1 -0
  122. package/.next/static/chunks/pages/[slug]/p-6597f93c2bfe07b3.js +1 -0
  123. package/.next/static/chunks/pages/_app-3e4e7e579cb0681a.js +1 -0
  124. package/.next/static/chunks/pages/_error-a7a0c1d9bfbb4f38.js +1 -0
  125. package/.next/static/chunks/pages/account-46263f0c100c3eae.js +1 -0
  126. package/.next/static/chunks/pages/checkout-20bb3710b24df3b6.js +1 -0
  127. package/.next/static/chunks/pages/index-49b7ee570f7cc4b7.js +1 -0
  128. package/.next/static/chunks/pages/login-f9d316d261fcc062.js +1 -0
  129. package/.next/static/chunks/pages/s-890c0c4b88484224.js +1 -0
  130. package/.next/static/chunks/polyfills-c67a75d1b6f99dc8.js +1 -0
  131. package/.next/static/chunks/webpack-4e162ac7f81d85d4.js +1 -0
  132. package/.next/static/css/13a4da555ff5e3be.css +1 -0
  133. package/.next/static/css/2e00f7ba49c754b3.css +1 -0
  134. package/.next/static/css/2e9de35e0cb999e0.css +1 -0
  135. package/.next/static/css/43b1b3821e21630c.css +1 -0
  136. package/.next/static/css/48af598df5fe042d.css +1 -0
  137. package/.next/static/css/7701d01af31e31d1.css +1 -0
  138. package/.next/static/css/923c4a942e57bc91.css +1 -0
  139. package/.next/static/css/e02cdad8fc000339.css +1 -0
  140. package/.next/static/css/e434797816e17065.css +1 -0
  141. package/.next/static/css/e7a6f3559cf45c62.css +1 -0
  142. package/.next/trace +68 -0
  143. package/.turbo/turbo-build.log +2 -2
  144. package/CHANGELOG.md +6 -0
  145. package/cms/faststore/sections.json +1 -1
  146. package/package.json +2 -2
  147. package/public/~partytown/debug/partytown-atomics.js +556 -0
  148. package/public/~partytown/debug/partytown-media.js +374 -0
  149. package/public/~partytown/debug/partytown-sandbox-sw.js +543 -0
  150. package/public/~partytown/debug/partytown-sw.js +59 -0
  151. package/public/~partytown/debug/partytown-ww-atomics.js +1789 -0
  152. package/public/~partytown/debug/partytown-ww-sw.js +1781 -0
  153. package/public/~partytown/debug/partytown.js +72 -0
  154. package/public/~partytown/partytown-atomics.js +2 -0
  155. package/public/~partytown/partytown-media.js +2 -0
  156. package/public/~partytown/partytown-sw.js +2 -0
  157. package/public/~partytown/partytown.js +2 -0
  158. package/src/pages/[...slug].tsx +1 -10
@@ -0,0 +1,703 @@
1
+ exports.id = 104;
2
+ exports.ids = [104];
3
+ exports.modules = {
4
+
5
+ /***/ 4285:
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 ProductShelf = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function ProductShelf({ testId = 'fs-product-shelf', children, ...otherProps }, ref) {
16
+ return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", { ref: ref, "data-fs-product-shelf": true, "data-testid": testId, ...otherProps }, children));
17
+ });
18
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ProductShelf);
19
+ //# sourceMappingURL=ProductShelf.js.map
20
+
21
+ /***/ }),
22
+
23
+ /***/ 2321:
24
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
25
+
26
+ "use strict";
27
+
28
+ // EXPORTS
29
+ __webpack_require__.d(__webpack_exports__, {
30
+ "z": () => (/* binding */ Components)
31
+ });
32
+
33
+ // EXTERNAL MODULE: ./src/components/product/ProductCard/index.ts + 4 modules
34
+ var ProductCard = __webpack_require__(6475);
35
+ ;// CONCATENATED MODULE: ./src/customizations/components/overrides/ProductShelf.tsx
36
+ const SECTION = "ProductShelf";
37
+ const overrides = {
38
+ name: SECTION,
39
+ components: {}
40
+ };
41
+ /* harmony default export */ const ProductShelf = (overrides);
42
+ ;// CONCATENATED MODULE: ./src/components/sections/ProductShelf/Overrides.tsx
43
+ 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; }
44
+
45
+ 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; }
46
+
47
+ 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; }
48
+
49
+
50
+
51
+
52
+ const Components = _objectSpread({
53
+ ProductCard: ProductCard/* default */.Z
54
+ }, ProductShelf.components);
55
+
56
+
57
+
58
+ /***/ }),
59
+
60
+ /***/ 8569:
61
+ /***/ ((module, __webpack_exports__, __webpack_require__) => {
62
+
63
+ "use strict";
64
+ __webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {
65
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
66
+ /* harmony export */ "Z": () => (__WEBPACK_DEFAULT_EXPORT__)
67
+ /* harmony export */ });
68
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6689);
69
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
70
+ /* harmony import */ var react_intersection_observer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9785);
71
+ /* harmony import */ var react_intersection_observer__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_intersection_observer__WEBPACK_IMPORTED_MODULE_1__);
72
+ /* harmony import */ var _faststore_ui__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(4285);
73
+ /* harmony import */ var src_components_skeletons_ProductShelfSkeleton__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(424);
74
+ /* harmony import */ var src_sdk_analytics_hooks_useViewItemListEvent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(5184);
75
+ /* harmony import */ var src_sdk_product_useProductsQuery__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(4867);
76
+ /* harmony import */ var src_utils_utilities__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(3952);
77
+ /* harmony import */ var _ui_Carousel__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(399);
78
+ /* harmony import */ var _Section__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(7067);
79
+ /* harmony import */ var _Overrides__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(2321);
80
+ /* harmony import */ var _section_module_scss__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(6627);
81
+ /* harmony import */ var _section_module_scss__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_section_module_scss__WEBPACK_IMPORTED_MODULE_10__);
82
+ /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(997);
83
+ /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__);
84
+ var __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([src_sdk_product_useProductsQuery__WEBPACK_IMPORTED_MODULE_4__]);
85
+ src_sdk_product_useProductsQuery__WEBPACK_IMPORTED_MODULE_4__ = (__webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__)[0];
86
+ const _excluded = ["title", "withDivisor"];
87
+
88
+ 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; }
89
+
90
+ 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; }
91
+
92
+
93
+
94
+
95
+
96
+
97
+
98
+
99
+
100
+
101
+
102
+ const {
103
+ ProductCard
104
+ } = _Overrides__WEBPACK_IMPORTED_MODULE_7__/* .Components */ .z;
105
+
106
+
107
+
108
+
109
+ function ProductShelf(_ref) {
110
+ let {
111
+ title,
112
+ withDivisor = false
113
+ } = _ref,
114
+ variables = _objectWithoutProperties(_ref, _excluded);
115
+
116
+ const titleId = (0,src_utils_utilities__WEBPACK_IMPORTED_MODULE_9__/* .textToKebabCase */ .B)(title);
117
+ const id = (0,react__WEBPACK_IMPORTED_MODULE_0__.useId)();
118
+ const viewedOnce = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(false);
119
+ const {
120
+ ref,
121
+ inView
122
+ } = (0,react_intersection_observer__WEBPACK_IMPORTED_MODULE_1__.useInView)();
123
+ const products = (0,src_sdk_product_useProductsQuery__WEBPACK_IMPORTED_MODULE_4__/* .useProductsQuery */ .kN)(variables);
124
+ const productEdges = products?.edges ?? [];
125
+ const aspectRatio = 1;
126
+ const {
127
+ sendViewItemListEvent
128
+ } = (0,src_sdk_analytics_hooks_useViewItemListEvent__WEBPACK_IMPORTED_MODULE_3__/* .useViewItemListEvent */ .m)({
129
+ products: productEdges,
130
+ title,
131
+ page: 0,
132
+ pageSize: 0
133
+ });
134
+ (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => {
135
+ if (inView && !viewedOnce.current && productEdges.length) {
136
+ sendViewItemListEvent();
137
+ viewedOnce.current = true;
138
+ }
139
+ }, [inView, productEdges.length, sendViewItemListEvent]);
140
+
141
+ if (products?.edges.length === 0) {
142
+ return null;
143
+ }
144
+
145
+ return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)(_Section__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z, {
146
+ className: `${(_section_module_scss__WEBPACK_IMPORTED_MODULE_10___default().section)} section-product-shelf layout__section ${withDivisor ? 'section__divisor' : ''}`,
147
+ ref: ref,
148
+ children: [/*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx("h2", {
149
+ className: "text__title-section layout__content",
150
+ children: title
151
+ }), /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx(src_components_skeletons_ProductShelfSkeleton__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z, {
152
+ aspectRatio: aspectRatio,
153
+ loading: products === undefined,
154
+ children: /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx(_faststore_ui__WEBPACK_IMPORTED_MODULE_11__/* ["default"] */ .Z, {
155
+ children: /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx(_ui_Carousel__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z, {
156
+ id: titleId || id,
157
+ children: productEdges.map((product, idx) => /*#__PURE__*/react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx(ProductCard, {
158
+ bordered: true,
159
+ product: product.node,
160
+ index: idx + 1,
161
+ aspectRatio: aspectRatio,
162
+ imgProps: {
163
+ width: 216,
164
+ height: 216,
165
+ sizes: '(max-width: 768px) 42vw, 30vw'
166
+ }
167
+ }, `${product.node.id}`))
168
+ })
169
+ })
170
+ })]
171
+ });
172
+ }
173
+
174
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ProductShelf);
175
+ __webpack_async_result__();
176
+ } catch(e) { __webpack_async_result__(e); } });
177
+
178
+ /***/ }),
179
+
180
+ /***/ 7104:
181
+ /***/ ((module, __webpack_exports__, __webpack_require__) => {
182
+
183
+ "use strict";
184
+ __webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {
185
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
186
+ /* harmony export */ "Z": () => (/* reexport safe */ _ProductShelf__WEBPACK_IMPORTED_MODULE_0__.Z)
187
+ /* harmony export */ });
188
+ /* harmony import */ var _ProductShelf__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8569);
189
+ var __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([_ProductShelf__WEBPACK_IMPORTED_MODULE_0__]);
190
+ _ProductShelf__WEBPACK_IMPORTED_MODULE_0__ = (__webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__)[0];
191
+
192
+ __webpack_async_result__();
193
+ } catch(e) { __webpack_async_result__(e); } });
194
+
195
+ /***/ }),
196
+
197
+ /***/ 424:
198
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
199
+
200
+ "use strict";
201
+
202
+ // EXPORTS
203
+ __webpack_require__.d(__webpack_exports__, {
204
+ "Z": () => (/* reexport */ ProductShelfSkeleton_ProductShelfSkeleton)
205
+ });
206
+
207
+ // EXTERNAL MODULE: ../components/dist/organisms/ProductShelf/ProductShelf.js
208
+ var ProductShelf = __webpack_require__(4285);
209
+ // EXTERNAL MODULE: external "react"
210
+ var external_react_ = __webpack_require__(6689);
211
+ var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
212
+ ;// CONCATENATED MODULE: ../components/dist/organisms/ProductShelf/ProductShelfItems.js
213
+
214
+ const ProductShelfItems = (0,external_react_.forwardRef)(function ProductShelfItems({ testId = 'fs-product-shelf-items', children, ...otherProps }, ref) {
215
+ return (external_react_default().createElement("ul", { ref: ref, "data-fs-product-shelf-items": true, "data-testid": testId, ...otherProps }, children));
216
+ });
217
+ /* harmony default export */ const ProductShelf_ProductShelfItems = (ProductShelfItems);
218
+ //# sourceMappingURL=ProductShelfItems.js.map
219
+ ;// CONCATENATED MODULE: ../components/dist/organisms/ProductShelf/ProductShelfItem.js
220
+
221
+ const ProductShelfItem = (0,external_react_.forwardRef)(function ProductShelfItem({ testId = 'fs-product-shelf-item', children, ...otherProps }, ref) {
222
+ return (external_react_default().createElement("li", { ref: ref, "data-fs-product-shelf-item": true, "data-testid": testId, ...otherProps }, children));
223
+ });
224
+ /* harmony default export */ const ProductShelf_ProductShelfItem = (ProductShelfItem);
225
+ //# sourceMappingURL=ProductShelfItem.js.map
226
+ // EXTERNAL MODULE: ./src/constants.ts
227
+ var constants = __webpack_require__(8459);
228
+ // EXTERNAL MODULE: ./src/components/skeletons/ProductCardSkeleton/index.ts + 1 modules
229
+ var ProductCardSkeleton = __webpack_require__(3288);
230
+ // EXTERNAL MODULE: external "react/jsx-runtime"
231
+ var jsx_runtime_ = __webpack_require__(997);
232
+ ;// CONCATENATED MODULE: ./src/components/skeletons/ProductShelfSkeleton/ProductShelfSkeleton.tsx
233
+
234
+
235
+
236
+
237
+
238
+
239
+ function ProductShelfSkeleton({
240
+ children,
241
+ aspectRatio,
242
+ loading = true
243
+ }) {
244
+ return loading ? /*#__PURE__*/jsx_runtime_.jsx(ProductShelf/* default */.Z, {
245
+ "data-fs-product-shelf-skeleton": true,
246
+ children: /*#__PURE__*/jsx_runtime_.jsx(ProductShelf_ProductShelfItems, {
247
+ className: "layout__content",
248
+ children: Array.from({
249
+ length: constants/* ITEMS_PER_SECTION */.K
250
+ }, (_, index) => /*#__PURE__*/jsx_runtime_.jsx(ProductShelf_ProductShelfItem, {
251
+ children: /*#__PURE__*/jsx_runtime_.jsx(ProductCardSkeleton/* default */.Z, {
252
+ aspectRatio: aspectRatio,
253
+ sectioned: true,
254
+ bordered: true
255
+ })
256
+ }, String(index)))
257
+ })
258
+ }) : /*#__PURE__*/jsx_runtime_.jsx(jsx_runtime_.Fragment, {
259
+ children: children
260
+ });
261
+ }
262
+
263
+ /* harmony default export */ const ProductShelfSkeleton_ProductShelfSkeleton = (ProductShelfSkeleton);
264
+ ;// CONCATENATED MODULE: ./src/components/skeletons/ProductShelfSkeleton/index.ts
265
+
266
+
267
+ /***/ }),
268
+
269
+ /***/ 399:
270
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
271
+
272
+ "use strict";
273
+
274
+ // EXPORTS
275
+ __webpack_require__.d(__webpack_exports__, {
276
+ "Z": () => (/* reexport */ ui_Carousel_Carousel)
277
+ });
278
+
279
+ // EXTERNAL MODULE: external "react"
280
+ var external_react_ = __webpack_require__(6689);
281
+ var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
282
+ // EXTERNAL MODULE: ../components/dist/molecules/IconButton/IconButton.js
283
+ var IconButton = __webpack_require__(2765);
284
+ // EXTERNAL MODULE: ../components/dist/atoms/Icon/Icon.js
285
+ var Icon = __webpack_require__(5045);
286
+ // EXTERNAL MODULE: external "react-swipeable"
287
+ var external_react_swipeable_ = __webpack_require__(3789);
288
+ ;// CONCATENATED MODULE: ../components/dist/hooks/useSlider.js
289
+
290
+
291
+ const nextPage = (current, total) => (current + 1) % total;
292
+ const previousPage = (current, total) => (total - ((total - current + 1) % total)) % total;
293
+ function reducer(state, action) {
294
+ switch (action.type) {
295
+ case 'NEXT_PAGE': {
296
+ // If `state.infinite` is true, we need to take into account an extra
297
+ // page in the calculation. This extra page is a clone of the first page.
298
+ const adjustedTotalPages = state.infinite
299
+ ? state.totalPages + 1
300
+ : state.totalPages;
301
+ const nextPageIndex = nextPage(state.currentPage, adjustedTotalPages);
302
+ const nextItemIndex = (nextPageIndex % adjustedTotalPages) * state.itemsPerPage;
303
+ return {
304
+ ...state,
305
+ sliding: true,
306
+ slideDirection: 'next',
307
+ currentItem: nextItemIndex,
308
+ currentPage: nextPageIndex,
309
+ };
310
+ }
311
+ case 'PREVIOUS_PAGE': {
312
+ // If `state.infinite` is true, we need to take into account an extra
313
+ // page in the calculation. This extra page is a clone of the first page.
314
+ const adjustedTotalPages = state.infinite
315
+ ? state.totalPages + 1
316
+ : state.totalPages;
317
+ // If `state.infinite` is true and we're currently on page 0, we need to
318
+ // let the slider go to page -1. This -1 page is a clone of the last page.
319
+ const shouldGoToClone = state.infinite && state.currentPage === 0;
320
+ const previousPageIndex = shouldGoToClone
321
+ ? -1
322
+ : previousPage(state.currentPage, state.totalPages);
323
+ return {
324
+ ...state,
325
+ sliding: true,
326
+ slideDirection: 'previous',
327
+ currentItem: (previousPageIndex % adjustedTotalPages) * state.itemsPerPage,
328
+ currentPage: previousPageIndex,
329
+ };
330
+ }
331
+ case 'GO_TO_PAGE': {
332
+ if (action.payload.pageIndex === state.currentPage) {
333
+ return state;
334
+ }
335
+ return {
336
+ ...state,
337
+ sliding: action.payload.shouldSlide,
338
+ slideDirection: action.payload.pageIndex > state.currentPage ? 'next' : 'previous',
339
+ currentItem: (action.payload.pageIndex % state.totalPages) * state.itemsPerPage,
340
+ currentPage: action.payload.pageIndex,
341
+ };
342
+ }
343
+ case 'STOP_SLIDE':
344
+ return { ...state, sliding: false };
345
+ default:
346
+ return state;
347
+ }
348
+ }
349
+ const defaultSliderState = (totalItems, itemsPerPage, infinite) => ({
350
+ currentItem: 0,
351
+ currentPage: 0,
352
+ sliding: false,
353
+ slideDirection: 'next',
354
+ totalItems,
355
+ itemsPerPage,
356
+ totalPages: Math.ceil(totalItems / itemsPerPage),
357
+ infinite,
358
+ });
359
+ const slide = (page, dispatch) => {
360
+ if (page === 'next') {
361
+ dispatch({ type: 'NEXT_PAGE' });
362
+ }
363
+ if (page === 'previous') {
364
+ dispatch({ type: 'PREVIOUS_PAGE' });
365
+ }
366
+ if (typeof page === 'number') {
367
+ dispatch({
368
+ type: 'GO_TO_PAGE',
369
+ payload: {
370
+ pageIndex: page,
371
+ shouldSlide: true,
372
+ },
373
+ });
374
+ }
375
+ };
376
+ const useSlider = ({ totalItems, itemsPerPage = 1, infiniteMode = false, shouldSlideOnSwipe = true, ...swipeableConfigOverrides }) => {
377
+ const [sliderState, sliderDispatch] = (0,external_react_.useReducer)(reducer, undefined, () => defaultSliderState(totalItems, itemsPerPage, infiniteMode));
378
+ const handlers = (0,external_react_swipeable_.useSwipeable)({
379
+ onSwipedRight: () => shouldSlideOnSwipe && slide('previous', sliderDispatch),
380
+ onSwipedLeft: () => shouldSlideOnSwipe && slide('next', sliderDispatch),
381
+ trackMouse: true,
382
+ ...swipeableConfigOverrides,
383
+ });
384
+ return {
385
+ handlers,
386
+ slide,
387
+ sliderState,
388
+ sliderDispatch,
389
+ };
390
+ };
391
+ //# sourceMappingURL=useSlider.js.map
392
+ // EXTERNAL MODULE: ../components/dist/atoms/Button/Button.js
393
+ var Button = __webpack_require__(7578);
394
+ ;// CONCATENATED MODULE: ../components/dist/molecules/Carousel/CarouselBullets.js
395
+
396
+
397
+ const defaultAriaLabel = (id, idx, isActive) => isActive ? `Current page from ${id}` : `Go to page ${idx + 1} from ${id}`;
398
+ const CarouselBullets = (0,external_react_.forwardRef)(function Bullets({ id, totalQuantity, activeBullet, onClick, testId = 'fs-carousel-bullets', ariaLabelGenerator = defaultAriaLabel, ariaControlsGenerator, ...otherProps }, ref) {
399
+ const bulletIndexes = (0,external_react_.useMemo)(() => Array(totalQuantity).fill(0), [totalQuantity]);
400
+ return (external_react_default().createElement("div", { ref: ref, "data-fs-carousel-bullets": true, "data-testid": testId, role: "tablist", ...otherProps }, bulletIndexes.map((_, idx) => {
401
+ const isActive = activeBullet === idx;
402
+ return (external_react_default().createElement(Button/* default */.Z, { key: `${id}-${idx}`, role: "tab", tabIndex: -1, "data-fs-carousel-bullet": true, testId: `${testId}-bullet`, onClick: (e) => onClick(e, idx), "aria-label": ariaLabelGenerator(id, idx, isActive), "aria-controls": ariaControlsGenerator?.(idx), "aria-selected": isActive }));
403
+ })));
404
+ });
405
+ /* harmony default export */ const Carousel_CarouselBullets = (CarouselBullets);
406
+ //# sourceMappingURL=CarouselBullets.js.map
407
+ ;// CONCATENATED MODULE: ../components/dist/hooks/useSlideVisibility.js
408
+
409
+ function isSlideVisible({ itemsPerPage, currentSlide, slideIdx, totalItems, }) {
410
+ const isClonedSlide = currentSlide < 0 || currentSlide >= totalItems;
411
+ const isVisible = slideIdx >= currentSlide && slideIdx < currentSlide + itemsPerPage;
412
+ return isClonedSlide || isVisible;
413
+ }
414
+ const useSlideVisibility = ({ currentSlide, itemsPerPage, totalItems, }) => {
415
+ /** Keeps track of slides that have been visualized before.
416
+ * We want to keep rendering them because the issue is mostly rendering
417
+ * slides that might never be viewed; On the other hand, hiding slides
418
+ * that were visible causes visual glitches */
419
+ const visitedSlides = (0,external_react_.useRef)(new Set());
420
+ (0,external_react_.useEffect)(() => {
421
+ for (let i = 0; i < itemsPerPage; i++) {
422
+ visitedSlides.current.add(currentSlide + i);
423
+ }
424
+ }, [currentSlide, itemsPerPage]);
425
+ const isItemVisible = (index) => isSlideVisible({
426
+ slideIdx: index,
427
+ currentSlide,
428
+ itemsPerPage,
429
+ totalItems,
430
+ });
431
+ const shouldRenderItem = (index) => {
432
+ return visitedSlides.current.has(index) || isItemVisible(index);
433
+ };
434
+ return { shouldRenderItem, isItemVisible };
435
+ };
436
+ //# sourceMappingURL=useSlideVisibility.js.map
437
+ ;// CONCATENATED MODULE: ../components/dist/molecules/Carousel/CarouselItem.js
438
+
439
+
440
+ function CarouselItem({ id, index, state, children, totalItems, infiniteMode, isScrollCarousel, }) {
441
+ const { isItemVisible, shouldRenderItem } = useSlideVisibility({
442
+ totalItems,
443
+ currentSlide: state.currentItem,
444
+ itemsPerPage: state.itemsPerPage,
445
+ });
446
+ const style = (!isScrollCarousel && { width: '100%' }) ||
447
+ (isScrollCarousel && {
448
+ maxWidth: '60%',
449
+ display: 'inline-block',
450
+ });
451
+ const shouldDisplayItem = isScrollCarousel || shouldRenderItem(index - Number(infiniteMode));
452
+ return (external_react_default().createElement("li", { style: style, "data-fs-carousel-item": true, "aria-roledescription": "slide", id: `${id}-carousel-item-${index}`, "data-fs-carousel-item-visible": isItemVisible(index - Number(infiniteMode)) || undefined }, shouldDisplayItem ? children : null));
453
+ }
454
+ /* harmony default export */ const Carousel_CarouselItem = (CarouselItem);
455
+ //# sourceMappingURL=CarouselItem.js.map
456
+ ;// CONCATENATED MODULE: ../components/dist/molecules/Carousel/Carousel.js
457
+
458
+
459
+
460
+
461
+
462
+ const createTransformValues = (infinite, totalItems) => {
463
+ const transformMap = {};
464
+ const slideWidth = 100 / totalItems;
465
+ for (let idx = 0; idx < totalItems; ++idx) {
466
+ const currIdx = infinite ? idx - 1 : idx;
467
+ const transformValue = -(slideWidth * idx);
468
+ transformMap[currIdx] = transformValue;
469
+ }
470
+ return transformMap;
471
+ };
472
+ function Carousel({ infiniteMode = true, controls = 'complete', testId = 'fs-carousel', transition = {
473
+ duration: 400,
474
+ property: 'transform',
475
+ }, children, className, id = 'fs-carousel', variant = 'slide', itemsPerPage = 1, navigationIcons = undefined, ...swipeableConfigOverrides }) {
476
+ const carouselTrackRef = (0,external_react_.useRef)(null);
477
+ const isSlideCarousel = variant === 'slide';
478
+ const isScrollCarousel = variant === 'scroll';
479
+ const childrenArray = external_react_default().Children.toArray(children);
480
+ const childrenCount = childrenArray.length;
481
+ const numberOfSlides = infiniteMode ? childrenCount + 2 : childrenCount;
482
+ const slidingTransition = `${transition.property} ${transition.duration}ms ${transition.timing ?? ''} ${transition.delay ?? ''}`;
483
+ const { handlers, slide, sliderState, sliderDispatch } = useSlider({
484
+ itemsPerPage,
485
+ infiniteMode,
486
+ totalItems: childrenCount,
487
+ shouldSlideOnSwipe: isSlideCarousel,
488
+ ...swipeableConfigOverrides,
489
+ });
490
+ const pagesCount = Math.ceil(childrenCount / sliderState.itemsPerPage);
491
+ const showNavigationArrows = pagesCount !== 1 &&
492
+ (controls === 'complete' || controls === 'navigationArrows');
493
+ const showPaginationBullets = pagesCount !== 1 &&
494
+ (controls === 'complete' || controls === 'paginationBullets');
495
+ const transformValues = (0,external_react_.useMemo)(() => createTransformValues(infiniteMode, numberOfSlides), [numberOfSlides, infiniteMode]);
496
+ const postRenderedSlides = infiniteMode && children ? childrenArray.slice(0, 1) : [];
497
+ const preRenderedSlides = infiniteMode && children ? childrenArray.slice(childrenCount - 1) : [];
498
+ const slides = preRenderedSlides.concat(children ?? [], postRenderedSlides);
499
+ const slideCarouselTrackStyle = (0,external_react_.useMemo)(() => ({
500
+ display: 'flex',
501
+ width: `${numberOfSlides * 100}%`,
502
+ transition: sliderState.sliding ? slidingTransition : undefined,
503
+ transform: `translate3d(${transformValues[sliderState.currentPage]}%, 0, 0)`,
504
+ }), [
505
+ numberOfSlides,
506
+ transformValues,
507
+ slidingTransition,
508
+ sliderState.sliding,
509
+ sliderState.currentPage,
510
+ ]);
511
+ const scrollCarouselTrackStyle = (0,external_react_.useMemo)(() => ({
512
+ width: '100%',
513
+ display: 'block',
514
+ overflowX: 'scroll',
515
+ whiteSpace: 'nowrap',
516
+ }), []);
517
+ const carouselTrackStyle = (isSlideCarousel && slideCarouselTrackStyle) ||
518
+ (isScrollCarousel && scrollCarouselTrackStyle);
519
+ const slidePrevious = () => {
520
+ if (sliderState.sliding ||
521
+ (!infiniteMode && sliderState.currentPage === 0)) {
522
+ return;
523
+ }
524
+ slide('previous', sliderDispatch);
525
+ };
526
+ const slideNext = () => {
527
+ if (sliderState.sliding ||
528
+ (!infiniteMode && sliderState.currentPage === childrenCount - 1)) {
529
+ return;
530
+ }
531
+ slide('next', sliderDispatch);
532
+ };
533
+ const onScrollTrack = (event) => {
534
+ if (isSlideCarousel || itemsPerPage > 1) {
535
+ return;
536
+ }
537
+ const itemWidth = Number(event.currentTarget.firstElementChild?.scrollWidth);
538
+ const scrollOffset = event.currentTarget?.scrollLeft;
539
+ const formatter = scrollOffset > itemWidth / 2 ? Math.round : Math.floor;
540
+ const page = formatter(scrollOffset / itemWidth);
541
+ slide(page, sliderDispatch);
542
+ };
543
+ const onTransitionTrackEnd = () => {
544
+ sliderDispatch({
545
+ type: 'STOP_SLIDE',
546
+ });
547
+ if (infiniteMode && sliderState.currentItem >= childrenCount) {
548
+ sliderDispatch({
549
+ type: 'GO_TO_PAGE',
550
+ payload: {
551
+ pageIndex: 0,
552
+ shouldSlide: false,
553
+ },
554
+ });
555
+ }
556
+ if (infiniteMode && sliderState.currentItem < 0) {
557
+ sliderDispatch({
558
+ type: 'GO_TO_PAGE',
559
+ payload: {
560
+ pageIndex: sliderState.totalPages - 1,
561
+ shouldSlide: false,
562
+ },
563
+ });
564
+ }
565
+ };
566
+ const onScrollPagination = async (index, slideDirection) => {
567
+ if (slideDirection === 'previous' && sliderState.currentPage === 0) {
568
+ return;
569
+ }
570
+ if (slideDirection === 'next' &&
571
+ sliderState.currentPage === sliderState.totalPages - 1) {
572
+ return;
573
+ }
574
+ let scrollOffset;
575
+ const carouselItemsWidth = Number(carouselTrackRef.current?.firstElementChild?.clientWidth);
576
+ if (itemsPerPage > 1) {
577
+ scrollOffset = index * carouselItemsWidth * itemsPerPage;
578
+ }
579
+ else {
580
+ scrollOffset = index * carouselItemsWidth - carouselItemsWidth * 0.125;
581
+ }
582
+ carouselTrackRef.current?.scrollTo({
583
+ left: scrollOffset,
584
+ behavior: 'smooth',
585
+ });
586
+ slide(index, sliderDispatch);
587
+ };
588
+ // accessible behavior for tablist
589
+ const handleBulletsKeyDown = (event) => {
590
+ switch (event.key) {
591
+ case 'ArrowLeft': {
592
+ isSlideCarousel && slidePrevious();
593
+ isScrollCarousel &&
594
+ onScrollPagination(sliderState.currentPage - 1, 'previous');
595
+ break;
596
+ }
597
+ case 'ArrowRight': {
598
+ isSlideCarousel && slideNext();
599
+ isScrollCarousel &&
600
+ onScrollPagination(sliderState.currentPage + 1, 'next');
601
+ break;
602
+ }
603
+ case 'Home': {
604
+ slide(0, sliderDispatch);
605
+ break;
606
+ }
607
+ case 'End': {
608
+ slide(childrenCount - 1, sliderDispatch);
609
+ break;
610
+ }
611
+ default:
612
+ }
613
+ };
614
+ return (external_react_default().createElement("section", { id: id, "data-fs-carousel": true, className: className, "data-testid": testId, "aria-label": "carousel", "aria-roledescription": "carousel" },
615
+ external_react_default().createElement("div", { "data-fs-carousel-track-container": true, style: {
616
+ width: '100%',
617
+ overflow: 'hidden',
618
+ display: isScrollCarousel ? 'block' : undefined,
619
+ }, ...handlers },
620
+ external_react_default().createElement("ul", { "aria-live": "polite", ref: carouselTrackRef, style: carouselTrackStyle, "data-fs-carousel-track": true, onScroll: onScrollTrack, onTransitionEnd: onTransitionTrackEnd }, slides.map((currentSlide, idx) => (external_react_default().createElement(Carousel_CarouselItem, { id: id, index: idx, key: String(idx), state: sliderState, totalItems: childrenCount, infiniteMode: infiniteMode, isScrollCarousel: isScrollCarousel }, currentSlide))))),
621
+ showNavigationArrows && (external_react_default().createElement("div", { "data-fs-carousel-controls": true },
622
+ external_react_default().createElement(IconButton/* default */.Z, { "data-fs-carousel-control": "left", "aria-controls": id, "aria-label": "previous", icon: navigationIcons?.left ?? (external_react_default().createElement(Icon/* default */.Z, { name: "ArrowLeft", width: 20, height: 20, weight: "bold" })), onClick: () => {
623
+ isSlideCarousel && slidePrevious();
624
+ isScrollCarousel &&
625
+ onScrollPagination(sliderState.currentPage - 1, 'previous');
626
+ } }),
627
+ external_react_default().createElement(IconButton/* default */.Z, { "data-fs-carousel-control": "right", "aria-controls": id, "aria-label": "next", icon: navigationIcons?.right ?? (external_react_default().createElement(Icon/* default */.Z, { name: "ArrowRight", width: 20, height: 20, weight: "bold" })), onClick: () => {
628
+ isSlideCarousel && slideNext();
629
+ isScrollCarousel &&
630
+ onScrollPagination(sliderState.currentPage + 1, 'next');
631
+ } }))),
632
+ showPaginationBullets && (external_react_default().createElement(Carousel_CarouselBullets, { id: id, tabIndex: 0, activeBullet: sliderState.currentPage, totalQuantity: pagesCount, onKeyDown: handleBulletsKeyDown, onClick: async (_, idx) => {
633
+ isSlideCarousel &&
634
+ !sliderState.sliding &&
635
+ slide(idx, sliderDispatch);
636
+ isScrollCarousel && onScrollPagination(idx);
637
+ }, onFocus: (event) => event.currentTarget.focus(), ariaControlsGenerator: (idx) => `${id}-carousel-item-${idx}` }))));
638
+ }
639
+ /* harmony default export */ const Carousel_Carousel = (Carousel);
640
+ //# sourceMappingURL=Carousel.js.map
641
+ // EXTERNAL MODULE: external "react/jsx-runtime"
642
+ var jsx_runtime_ = __webpack_require__(997);
643
+ ;// CONCATENATED MODULE: ./src/components/ui/Carousel/Carousel.tsx
644
+
645
+
646
+
647
+ function Carousel_Carousel_Carousel({
648
+ id,
649
+ testId,
650
+ children,
651
+ itemsPerPage = 5
652
+ }) {
653
+ const isMobile = window.innerWidth <= 768;
654
+ return /*#__PURE__*/jsx_runtime_.jsx(Carousel_Carousel, {
655
+ id: id,
656
+ testId: testId,
657
+ variant: "scroll",
658
+ infiniteMode: false,
659
+ itemsPerPage: isMobile ? 1 : itemsPerPage,
660
+ children: children
661
+ });
662
+ }
663
+
664
+ /* harmony default export */ const ui_Carousel_Carousel = (Carousel_Carousel_Carousel);
665
+ ;// CONCATENATED MODULE: ./src/components/ui/Carousel/index.ts
666
+
667
+
668
+ /***/ }),
669
+
670
+ /***/ 3952:
671
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
672
+
673
+ "use strict";
674
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
675
+ /* harmony export */ "B": () => (/* binding */ textToKebabCase)
676
+ /* harmony export */ });
677
+ //Input "Example Text!". Output: example-text
678
+ function textToKebabCase(text) {
679
+ // Replace spaces and special characters with hyphens
680
+ let kebabCase = text.replace(/[^\w\s]/gi, '-'); // Remove whitespace
681
+
682
+ kebabCase = kebabCase.replace(/\s+/g, '-'); // Convert to lowercase
683
+
684
+ kebabCase = kebabCase.toLowerCase();
685
+ return kebabCase ?? '';
686
+ }
687
+
688
+ /***/ }),
689
+
690
+ /***/ 6627:
691
+ /***/ ((module) => {
692
+
693
+ // Exports
694
+ module.exports = {
695
+ "section": "section_section__C1DoH",
696
+ "loading": "section_loading__k5bCF"
697
+ };
698
+
699
+
700
+ /***/ })
701
+
702
+ };
703
+ ;