@faststore/core 2.0.128-alpha.0 → 2.0.130-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 (163) hide show
  1. package/.turbo/turbo-build.log +0 -14
  2. package/CHANGELOG.md +12 -0
  3. package/cms/faststore/content-types.json +5 -0
  4. package/cms/faststore/sections.json +45 -45
  5. package/package.json +2 -2
  6. package/src/components/cms/GlobalSections.tsx +1 -2
  7. package/.next/BUILD_ID +0 -1
  8. package/.next/build-manifest.json +0 -123
  9. package/.next/cache/.tsbuildinfo +0 -1
  10. package/.next/cache/config.json +0 -7
  11. package/.next/cache/eslint/.cache_1gneedd +0 -1
  12. package/.next/cache/next-server.js.nft.json +0 -1
  13. package/.next/cache/webpack/client-production/0.pack +0 -0
  14. package/.next/cache/webpack/client-production/index.pack +0 -0
  15. package/.next/cache/webpack/server-production/0.pack +0 -0
  16. package/.next/cache/webpack/server-production/index.pack +0 -0
  17. package/.next/export-marker.json +0 -1
  18. package/.next/images-manifest.json +0 -1
  19. package/.next/next-server.js.nft.json +0 -1
  20. package/.next/package.json +0 -1
  21. package/.next/prerender-manifest.json +0 -1
  22. package/.next/react-loadable-manifest.json +0 -52
  23. package/.next/required-server-files.json +0 -1
  24. package/.next/routes-manifest.json +0 -1
  25. package/.next/server/chunks/104.js +0 -673
  26. package/.next/server/chunks/120.js +0 -435
  27. package/.next/server/chunks/123.js +0 -58
  28. package/.next/server/chunks/143.js +0 -106
  29. package/.next/server/chunks/154.js +0 -206
  30. package/.next/server/chunks/183.js +0 -80
  31. package/.next/server/chunks/247.js +0 -61
  32. package/.next/server/chunks/254.js +0 -159
  33. package/.next/server/chunks/256.js +0 -1787
  34. package/.next/server/chunks/280.js +0 -322
  35. package/.next/server/chunks/287.js +0 -58
  36. package/.next/server/chunks/312.js +0 -674
  37. package/.next/server/chunks/336.js +0 -820
  38. package/.next/server/chunks/350.js +0 -142
  39. package/.next/server/chunks/398.js +0 -132
  40. package/.next/server/chunks/401.js +0 -7241
  41. package/.next/server/chunks/431.js +0 -7241
  42. package/.next/server/chunks/502.js +0 -603
  43. package/.next/server/chunks/554.js +0 -264
  44. package/.next/server/chunks/557.js +0 -135
  45. package/.next/server/chunks/576.js +0 -80
  46. package/.next/server/chunks/597.js +0 -169
  47. package/.next/server/chunks/608.js +0 -515
  48. package/.next/server/chunks/664.js +0 -3401
  49. package/.next/server/chunks/676.js +0 -32
  50. package/.next/server/chunks/74.js +0 -2598
  51. package/.next/server/chunks/746.js +0 -249
  52. package/.next/server/chunks/82.js +0 -371
  53. package/.next/server/chunks/854.js +0 -72
  54. package/.next/server/chunks/859.js +0 -959
  55. package/.next/server/chunks/872.js +0 -358
  56. package/.next/server/chunks/886.js +0 -120
  57. package/.next/server/chunks/98.js +0 -124
  58. package/.next/server/chunks/font-manifest.json +0 -1
  59. package/.next/server/font-manifest.json +0 -1
  60. package/.next/server/middleware-build-manifest.js +0 -1
  61. package/.next/server/middleware-manifest.json +0 -6
  62. package/.next/server/middleware-react-loadable-manifest.js +0 -1
  63. package/.next/server/pages/404.js +0 -414
  64. package/.next/server/pages/404.js.nft.json +0 -1
  65. package/.next/server/pages/500.js +0 -384
  66. package/.next/server/pages/500.js.nft.json +0 -1
  67. package/.next/server/pages/[...slug].js +0 -708
  68. package/.next/server/pages/[...slug].js.nft.json +0 -1
  69. package/.next/server/pages/[slug]/p.js +0 -2390
  70. package/.next/server/pages/[slug]/p.js.nft.json +0 -1
  71. package/.next/server/pages/_app.js +0 -368
  72. package/.next/server/pages/_app.js.nft.json +0 -1
  73. package/.next/server/pages/_document.js +0 -304
  74. package/.next/server/pages/_document.js.nft.json +0 -1
  75. package/.next/server/pages/_error.js +0 -164
  76. package/.next/server/pages/_error.js.nft.json +0 -1
  77. package/.next/server/pages/account.js +0 -370
  78. package/.next/server/pages/account.js.nft.json +0 -1
  79. package/.next/server/pages/api/graphql.js +0 -315
  80. package/.next/server/pages/api/graphql.js.nft.json +0 -1
  81. package/.next/server/pages/api/preview.js +0 -118
  82. package/.next/server/pages/api/preview.js.nft.json +0 -1
  83. package/.next/server/pages/checkout.js +0 -370
  84. package/.next/server/pages/checkout.js.nft.json +0 -1
  85. package/.next/server/pages/en-US/404.html +0 -81
  86. package/.next/server/pages/en-US/404.json +0 -1
  87. package/.next/server/pages/en-US/500.html +0 -81
  88. package/.next/server/pages/en-US/500.json +0 -1
  89. package/.next/server/pages/en-US/account.html +0 -81
  90. package/.next/server/pages/en-US/account.json +0 -1
  91. package/.next/server/pages/en-US/checkout.html +0 -81
  92. package/.next/server/pages/en-US/checkout.json +0 -1
  93. package/.next/server/pages/en-US/login.html +0 -81
  94. package/.next/server/pages/en-US/login.json +0 -1
  95. package/.next/server/pages/en-US/s.html +0 -81
  96. package/.next/server/pages/en-US/s.json +0 -1
  97. package/.next/server/pages/en-US.html +0 -81
  98. package/.next/server/pages/en-US.json +0 -1
  99. package/.next/server/pages/index.js +0 -588
  100. package/.next/server/pages/index.js.nft.json +0 -1
  101. package/.next/server/pages/login.js +0 -396
  102. package/.next/server/pages/login.js.nft.json +0 -1
  103. package/.next/server/pages/s.js +0 -438
  104. package/.next/server/pages/s.js.nft.json +0 -1
  105. package/.next/server/pages-manifest.json +0 -16
  106. package/.next/server/webpack-api-runtime.js +0 -229
  107. package/.next/server/webpack-runtime.js +0 -229
  108. package/.next/static/XHicU5B1ht45aQcZPouaE/_buildManifest.js +0 -1
  109. package/.next/static/XHicU5B1ht45aQcZPouaE/_ssgManifest.js +0 -1
  110. package/.next/static/chunks/143.dd8a556e6957baa1.js +0 -1
  111. package/.next/static/chunks/170.b45293edb4f089c8.js +0 -1
  112. package/.next/static/chunks/226.b57e10ad9932f88c.js +0 -1
  113. package/.next/static/chunks/235-885f7bacf46728bb.js +0 -1
  114. package/.next/static/chunks/336.84e96cd7aa2412bc.js +0 -1
  115. package/.next/static/chunks/495.e6b60941cc3e82e4.js +0 -1
  116. package/.next/static/chunks/54.1d3e6cb43b5b1626.js +0 -1
  117. package/.next/static/chunks/597.d0da2018cc312352.js +0 -1
  118. package/.next/static/chunks/608.59e69b83f35d9c44.js +0 -1
  119. package/.next/static/chunks/651.7142f31ce1e052b3.js +0 -1
  120. package/.next/static/chunks/706-abfba2e18f084aed.js +0 -1
  121. package/.next/static/chunks/741.52f7fb873418346f.js +0 -1
  122. package/.next/static/chunks/832-5460e7c4690723c9.js +0 -1
  123. package/.next/static/chunks/861-d1a326525092ab9c.js +0 -1
  124. package/.next/static/chunks/883-59f1a429b6fe3cfe.js +0 -1
  125. package/.next/static/chunks/98.97381d2021f86cd9.js +0 -1
  126. package/.next/static/chunks/framework-dfd14d7ce6600b03.js +0 -1
  127. package/.next/static/chunks/main-9746772201fe3ac1.js +0 -1
  128. package/.next/static/chunks/pages/404-ac22e12eb22b9c50.js +0 -1
  129. package/.next/static/chunks/pages/500-7b708e8b89389d0e.js +0 -1
  130. package/.next/static/chunks/pages/[...slug]-13b69368a6fa7b85.js +0 -1
  131. package/.next/static/chunks/pages/[slug]/p-0490a581f9a2e4ef.js +0 -1
  132. package/.next/static/chunks/pages/_app-b601536188b9a919.js +0 -1
  133. package/.next/static/chunks/pages/_error-a7a0c1d9bfbb4f38.js +0 -1
  134. package/.next/static/chunks/pages/account-04a0a6c07709c50e.js +0 -1
  135. package/.next/static/chunks/pages/checkout-2ed6b828bb6ed7e6.js +0 -1
  136. package/.next/static/chunks/pages/index-0c1368601c183320.js +0 -1
  137. package/.next/static/chunks/pages/login-3bb40d77e6ee120a.js +0 -1
  138. package/.next/static/chunks/pages/s-8fec20c40a2bd7da.js +0 -1
  139. package/.next/static/chunks/polyfills-c67a75d1b6f99dc8.js +0 -1
  140. package/.next/static/chunks/webpack-02fe78a6d63f52e6.js +0 -1
  141. package/.next/static/css/025f924b9633ecd3.css +0 -1
  142. package/.next/static/css/2253644409b99b98.css +0 -1
  143. package/.next/static/css/326e215d7b09f642.css +0 -1
  144. package/.next/static/css/419a3084f8be98e8.css +0 -1
  145. package/.next/static/css/4b7b7b64ae6afe67.css +0 -1
  146. package/.next/static/css/501cb58eaa378545.css +0 -1
  147. package/.next/static/css/587c27bbda64e700.css +0 -1
  148. package/.next/static/css/5f1b35b69b2ba1f7.css +0 -1
  149. package/.next/static/css/7a8417de90d11c60.css +0 -1
  150. package/.next/static/css/b47298023a9f803f.css +0 -1
  151. package/.next/static/media/brandless-neutral.76ddf63a.png +0 -0
  152. package/.next/trace +0 -67
  153. package/public/~partytown/debug/partytown-atomics.js +0 -556
  154. package/public/~partytown/debug/partytown-media.js +0 -374
  155. package/public/~partytown/debug/partytown-sandbox-sw.js +0 -543
  156. package/public/~partytown/debug/partytown-sw.js +0 -59
  157. package/public/~partytown/debug/partytown-ww-atomics.js +0 -1789
  158. package/public/~partytown/debug/partytown-ww-sw.js +0 -1781
  159. package/public/~partytown/debug/partytown.js +0 -72
  160. package/public/~partytown/partytown-atomics.js +0 -2
  161. package/public/~partytown/partytown-media.js +0 -2
  162. package/public/~partytown/partytown-sw.js +0 -2
  163. package/public/~partytown/partytown.js +0 -2
@@ -1,206 +0,0 @@
1
- "use strict";
2
- exports.id = 154;
3
- exports.ids = [154];
4
- exports.modules = {
5
-
6
- /***/ 2154:
7
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
8
-
9
-
10
- // EXPORTS
11
- __webpack_require__.d(__webpack_exports__, {
12
- "E": () => (/* reexport */ Image_Image)
13
- });
14
-
15
- // EXTERNAL MODULE: external "react"
16
- var external_react_ = __webpack_require__(6689);
17
- // EXTERNAL MODULE: ./node_modules/next/future/image.js
18
- var future_image = __webpack_require__(1608);
19
- var image_default = /*#__PURE__*/__webpack_require__.n(future_image);
20
- // EXTERNAL MODULE: ./faststore.config.js
21
- var faststore_config = __webpack_require__(7183);
22
- var faststore_config_default = /*#__PURE__*/__webpack_require__.n(faststore_config);
23
- ;// CONCATENATED MODULE: ./src/components/ui/Image/thumborUrlBuilder.ts
24
-
25
- const THUMBOR_SERVER = `https://${(faststore_config_default()).api.storeId}.vtexassets.com`;
26
-
27
- const cropSection = ({
28
- left,
29
- top,
30
- right,
31
- bottom
32
- }) => `${left}x${top}:${right}x${bottom}`;
33
-
34
- function filtersURIComponent(filters) {
35
- const elements = ['filters'];
36
- Object.keys(filters).forEach(name => {
37
- const parameters = filters[name];
38
- let stringParameters; // If we have several parameters, they were passed as an array
39
- // and now they need to be comma separated, otherwise there is just one to convert to a string
40
-
41
- if (Array.isArray(parameters)) {
42
- stringParameters = parameters.join(',');
43
- } // If true, we don't even need to do anything, we just have an empty string and insert ()
44
- // Ex: {grayscale: true} => grayscale()
45
- else if (parameters === true) {
46
- stringParameters = '';
47
- } else {
48
- stringParameters = String(parameters);
49
- }
50
-
51
- elements.push(`${name}(${stringParameters})`);
52
- });
53
- return elements.join(':');
54
- }
55
-
56
- const urlBuilder = (baseUrl, options) => {
57
- const preSizeComponents = [THUMBOR_SERVER, 'unsafe'];
58
- const postSizeComponents = []; // Add the trim parameter after unsafe if appliable
59
-
60
- options.trim && preSizeComponents.push('trim'); // Add the crop parameter if any
61
-
62
- options.manualCrop && preSizeComponents.push(cropSection(options.manualCrop)); // Add the fit-in parameter after crop if appliable
63
-
64
- options.fitIn && preSizeComponents.push('fit-in'); // Adds the horizontal alignement after the size
65
-
66
- postSizeComponents.push(options.horizontalAlign ?? 'center'); // Adds the vertical alignement after the size
67
-
68
- postSizeComponents.push(options.verticalAlign ?? 'middle'); // Adds the smart parameter if appliable
69
-
70
- options.smart && postSizeComponents.push('smart'); // Compile the filters and add them right before the URI
71
-
72
- const {
73
- filters
74
- } = options;
75
- filters && postSizeComponents.push(filtersURIComponent(filters)); // Finally, adds the real image uri
76
-
77
- postSizeComponents.push(encodeURIComponent(baseUrl));
78
- return (width, height) => {
79
- // Adds the final size parameter
80
- let finalSize = '';
81
-
82
- if (options.flipHorizontal) {
83
- finalSize += '-';
84
- }
85
-
86
- finalSize += `${width}x`;
87
-
88
- if (options.flipVertical) {
89
- finalSize += '-';
90
- }
91
-
92
- finalSize += `${height}`;
93
- return [...preSizeComponents, finalSize, ...postSizeComponents].join('/');
94
- };
95
- };
96
- ;// CONCATENATED MODULE: ./src/components/ui/Image/useImage.ts
97
- const _excluded = ["src", "width", "height", "options"];
98
-
99
- 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; }
100
-
101
- 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; }
102
-
103
- 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; }
104
-
105
- 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; }
106
-
107
- 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; }
108
-
109
-
110
-
111
- const FACTORS = [1, 2, 3];
112
- const LARGE_FACTOR = FACTORS[FACTORS.length - 1];
113
- const useImage = _ref => {
114
- let {
115
- src: baseUrl,
116
- width,
117
- height,
118
- options = {}
119
- } = _ref,
120
- rest = _objectWithoutProperties(_ref, _excluded);
121
-
122
- const {
123
- srcSet,
124
- src
125
- } = (0,external_react_.useMemo)(() => {
126
- const builder = urlBuilder(baseUrl, options);
127
- const srcs = FACTORS.map(factor => {
128
- const rescaledWidth = width * factor;
129
- return `${builder(rescaledWidth, height * factor)} ${rescaledWidth}w`;
130
- });
131
- return {
132
- src: builder(width * LARGE_FACTOR, height * LARGE_FACTOR),
133
- srcSet: srcs.join(', ')
134
- };
135
- }, [height, options, baseUrl, width]);
136
- return _objectSpread({
137
- src,
138
- srcSet,
139
- width: `${width}px`,
140
- height: `${height}px`
141
- }, rest);
142
- };
143
- // EXTERNAL MODULE: external "react/jsx-runtime"
144
- var jsx_runtime_ = __webpack_require__(997);
145
- ;// CONCATENATED MODULE: ./src/components/ui/Image/Image.tsx
146
- const Image_excluded = ["src", "width", "height", "quality"];
147
-
148
- function Image_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; }
149
-
150
- function Image_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? Image_ownKeys(Object(source), !0).forEach(function (key) { Image_defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : Image_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
151
-
152
- function Image_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; }
153
-
154
- function Image_objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = Image_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; }
155
-
156
- function Image_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; }
157
-
158
-
159
-
160
- // Next loader function does not handle all props as height and options,
161
- // so we use the useImage hook to handle the custom thumbor loader (VTEX CDN) along with unoptimized prop
162
- // https://nextjs.org/docs/api-reference/next/image#loader
163
-
164
-
165
-
166
- function Image(_ref) {
167
- let {
168
- src,
169
- width,
170
- height,
171
- quality
172
- } = _ref,
173
- otherProps = Image_objectWithoutProperties(_ref, Image_excluded);
174
-
175
- const {
176
- src: thumborSrc,
177
- alt
178
- } = useImage(Image_objectSpread({
179
- src: String(src),
180
- width: Number(width),
181
- height: Number(height),
182
- options: quality ? {
183
- filters: {
184
- quality
185
- }
186
- } : undefined
187
- }, otherProps));
188
- return /*#__PURE__*/jsx_runtime_.jsx((image_default()), Image_objectSpread({
189
- "data-fs-image": true,
190
- unoptimized: true,
191
- src: thumborSrc,
192
- width: width,
193
- height: height,
194
- alt: alt
195
- }, otherProps));
196
- }
197
-
198
- Image.displayName = 'Image';
199
- /* harmony default export */ const Image_Image = (/*#__PURE__*/(0,external_react_.memo)(Image));
200
- ;// CONCATENATED MODULE: ./src/components/ui/Image/index.ts
201
-
202
-
203
- /***/ })
204
-
205
- };
206
- ;
@@ -1,80 +0,0 @@
1
- exports.id = 183;
2
- exports.ids = [183];
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
- geoCoordinates: null,
37
- person: null
38
- },
39
- // Default cart
40
- cart: {
41
- id: '',
42
- items: [],
43
- messages: [],
44
- shouldSplitItem: true
45
- },
46
- // Production URLs
47
- storeUrl: 'https://vtexfaststore.com',
48
- secureSubdomain: 'https://secure.vtexfaststore.com',
49
- checkoutUrl: 'https://secure.vtexfaststore.com/checkout',
50
- loginUrl: 'https://secure.vtexfaststore.com/api/io/login',
51
- accountUrl: 'https://secure.vtexfaststore.com/api/io/account',
52
- // Lighthouse CI
53
- lighthouse: {
54
- server: process.env.BASE_SITE_URL || 'http://localhost:3000',
55
- pages: {
56
- home: '/',
57
- pdp: '/apple-magic-mouse/p',
58
- collection: '/office'
59
- }
60
- },
61
- // E2E CI
62
- cypress: {
63
- pages: {
64
- home: '/',
65
- pdp: '/apple-magic-mouse/p',
66
- collection: '/office',
67
- collection_filtered: '/office/?category-1=office&marca=acer&facets=category-1%2Cmarca',
68
- search: '/s?q=orange'
69
- }
70
- },
71
- analytics: {
72
- // https://developers.google.com/tag-platform/tag-manager/web#standard_web_page_installation,
73
- gtmContainerId: 'GTM-PGHZ95N'
74
- }
75
- };
76
-
77
- /***/ })
78
-
79
- };
80
- ;
@@ -1,61 +0,0 @@
1
- "use strict";
2
- exports.id = 247;
3
- exports.ids = [247];
4
- exports.modules = {
5
-
6
- /***/ 7549:
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
- /* harmony import */ var ___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2691);
15
-
16
-
17
- const Price = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function Price({ value, as: Component = 'span', variant = 'selling', testId = 'fs-price', formatter = (price) => price, SRText, ...otherProps }, ref) {
18
- const formattedPrice = formatter(value, variant);
19
- return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Component, { ref: ref, "data-fs-price": true, "data-fs-price-variant": variant, "data-testid": testId, ...otherProps },
20
- SRText && react__WEBPACK_IMPORTED_MODULE_0___default().createElement(___WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, { text: SRText }),
21
- formattedPrice));
22
- });
23
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Price);
24
- //# sourceMappingURL=Price.js.map
25
-
26
- /***/ }),
27
-
28
- /***/ 5346:
29
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
30
-
31
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
32
- /* harmony export */ "P": () => (/* binding */ useFormattedPrice)
33
- /* harmony export */ });
34
- /* unused harmony export usePriceFormatter */
35
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6689);
36
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
37
- /* harmony import */ var _session__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7295);
38
-
39
-
40
- const usePriceFormatter = ({
41
- decimals
42
- } = {}) => {
43
- const {
44
- currency,
45
- locale
46
- } = (0,_session__WEBPACK_IMPORTED_MODULE_1__/* .useSession */ .kP)();
47
- return (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(price => Intl.NumberFormat(locale, {
48
- style: 'currency',
49
- currency: currency.code,
50
- minimumFractionDigits: decimals ? 2 : 0
51
- }).format(price), [currency.code, locale, decimals]);
52
- };
53
- const useFormattedPrice = price => {
54
- const formatter = usePriceFormatter();
55
- return (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(() => formatter(price), [formatter, price]);
56
- };
57
-
58
- /***/ })
59
-
60
- };
61
- ;
@@ -1,159 +0,0 @@
1
- "use strict";
2
- exports.id = 254;
3
- exports.ids = [254];
4
- exports.modules = {
5
-
6
- /***/ 44:
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 Badge = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function Badge({ testId = 'fs-badge', size = 'small', variant = 'neutral', counter = false, 'aria-label': ariaLabel, children, ...otherProps }, ref) {
16
- return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", { ref: ref, "data-fs-badge": true, "aria-label": ariaLabel, "data-fs-badge-variant": counter ? null : variant, "data-fs-badge-size": size, "data-fs-badge-counter": counter, "data-testid": testId, ...otherProps },
17
- react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", { "data-fs-badge-wrapper": true }, children)));
18
- });
19
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Badge);
20
- //# sourceMappingURL=Badge.js.map
21
-
22
- /***/ }),
23
-
24
- /***/ 1329:
25
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
26
-
27
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
28
- /* harmony export */ "Z": () => (__WEBPACK_DEFAULT_EXPORT__)
29
- /* harmony export */ });
30
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6689);
31
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
32
-
33
- const List = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function List({ as, marker, testId = 'fs-list', ...otherProps }, ref) {
34
- const Component = as ?? 'ul';
35
- return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Component, { ref: ref, "data-fs-list": true, "data-fs-list-marker": marker, "data-testid": testId, ...otherProps }));
36
- });
37
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (List);
38
- //# sourceMappingURL=List.js.map
39
-
40
- /***/ }),
41
-
42
- /***/ 2691:
43
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
44
-
45
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
46
- /* harmony export */ "Z": () => (__WEBPACK_DEFAULT_EXPORT__)
47
- /* harmony export */ });
48
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6689);
49
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
50
-
51
- function SROnly({ text, as }) {
52
- const Component = as ?? 'span';
53
- return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Component, { "data-fs-sr-only": true }, text);
54
- }
55
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (SROnly);
56
- //# sourceMappingURL=SROnly.js.map
57
-
58
- /***/ }),
59
-
60
- /***/ 6970:
61
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
62
-
63
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
64
- /* harmony export */ "Z": () => (__WEBPACK_DEFAULT_EXPORT__)
65
- /* harmony export */ });
66
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6689);
67
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
68
- /* harmony import */ var ___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7865);
69
- /* harmony import */ var ___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7578);
70
- /* harmony import */ var ___WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(5045);
71
-
72
-
73
- const Alert = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function Alert({ testId = 'fs-alert', children, icon, dismissible, link, onClose, ...otherProps }, ref) {
74
- const handleClose = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((event) => {
75
- if (event.defaultPrevented) {
76
- return;
77
- }
78
- onClose?.(event);
79
- }, [onClose]);
80
- return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", { ref: ref, role: "alert", "data-fs-alert": true, "data-testid": testId, "data-fs-alert-dismissible": dismissible, ...otherProps },
81
- react__WEBPACK_IMPORTED_MODULE_0___default().isValidElement(icon) && icon,
82
- react__WEBPACK_IMPORTED_MODULE_0___default().createElement("p", { "data-fs-alert-content": true }, children),
83
- link && react__WEBPACK_IMPORTED_MODULE_0___default().createElement(___WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, { "data-fs-alert-link": true, variant: "inline", ...link }),
84
- dismissible && (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(___WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z, { "data-fs-alert-button": true, "aria-label": "Close", onClick: handleClose },
85
- react__WEBPACK_IMPORTED_MODULE_0___default().createElement("span", null,
86
- react__WEBPACK_IMPORTED_MODULE_0___default().createElement(___WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z, { name: "X" }))))));
87
- });
88
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Alert);
89
- //# sourceMappingURL=Alert.js.map
90
-
91
- /***/ }),
92
-
93
- /***/ 1021:
94
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
95
-
96
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
97
- /* harmony export */ "Z": () => (__WEBPACK_DEFAULT_EXPORT__)
98
- /* harmony export */ });
99
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6689);
100
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
101
- /* harmony import */ var ___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9600);
102
-
103
-
104
- function SlideOver({ testId = 'fs-slide-over', isOpen, direction = 'leftSide', size = 'full', fade = 'out', children, overlayProps, onDismiss, ...otherProps }) {
105
- return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(___WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, { "data-fs-modal": null, "data-fs-slide-over": true, "data-fs-slide-over-direction": direction, "data-fs-slide-over-size": size, "data-fs-slide-over-state": fade, isOpen: isOpen, onDismiss: onDismiss, testId: testId, overlayProps: overlayProps, ...otherProps }, children));
106
- }
107
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (SlideOver);
108
- //# sourceMappingURL=SlideOver.js.map
109
-
110
- /***/ }),
111
-
112
- /***/ 9648:
113
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
114
-
115
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
116
- /* harmony export */ "Z": () => (__WEBPACK_DEFAULT_EXPORT__)
117
- /* harmony export */ });
118
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6689);
119
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
120
- /* harmony import */ var ___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2765);
121
- /* harmony import */ var ___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5045);
122
-
123
-
124
- const SlideOverHeader = ({ children, closeBtnProps = {}, onClose, }) => {
125
- return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement("header", { "data-fs-slide-over-header": true },
126
- children,
127
- react__WEBPACK_IMPORTED_MODULE_0___default().createElement(___WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, { "data-fs-slide-over-header-icon": true, "aria-label": "Close", icon: react__WEBPACK_IMPORTED_MODULE_0___default().createElement(___WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z, { name: "X" }), onClick: onClose, ...closeBtnProps })));
128
- };
129
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (SlideOverHeader);
130
- //# sourceMappingURL=SlideOverHeader.js.map
131
-
132
- /***/ }),
133
-
134
- /***/ 1072:
135
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
136
-
137
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
138
- /* harmony export */ "_": () => (/* binding */ sendAnalyticsEvent)
139
- /* harmony export */ });
140
- /* harmony import */ var _wrap__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4950);
141
-
142
- const sendAnalyticsEvent = (event) => {
143
- try {
144
- window.postMessage((0,_wrap__WEBPACK_IMPORTED_MODULE_0__/* .wrap */ .re)(event), window.origin);
145
- }
146
- catch (e) {
147
- // IE and Edge have a bug on postMessage inside promises.
148
- // Ignoring for now, will try to find a workaround that
149
- // makes postMessage work on those browsers.
150
- // https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/14719328/
151
- console.error(e);
152
- }
153
- };
154
- //# sourceMappingURL=sendAnalyticsEvent.js.map
155
-
156
- /***/ })
157
-
158
- };
159
- ;