@faststore/core 2.1.96 → 2.1.99

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 (160) hide show
  1. package/.turbo/turbo-build.log +2 -2
  2. package/cms/faststore/sections.json +12 -0
  3. package/package.json +8 -8
  4. package/src/components/product/NotAvailableButton/NotAvailableButton.tsx +13 -0
  5. package/src/components/product/NotAvailableButton/index.ts +1 -0
  6. package/src/components/sections/ProductDetails/Overrides.tsx +4 -0
  7. package/src/components/sections/ProductDetails/ProductDetails.tsx +21 -15
  8. package/src/components/ui/ProductDetails/ProductDetailsSettings.tsx +88 -68
  9. package/src/typings/overrides.ts +1 -0
  10. package/.next/BUILD_ID +0 -1
  11. package/.next/build-manifest.json +0 -129
  12. package/.next/cache/.tsbuildinfo +0 -1
  13. package/.next/cache/config.json +0 -7
  14. package/.next/cache/eslint/.cache_1gneedd +0 -1
  15. package/.next/cache/next-server.js.nft.json +0 -1
  16. package/.next/cache/webpack/client-production/0.pack +0 -0
  17. package/.next/cache/webpack/client-production/index.pack +0 -0
  18. package/.next/cache/webpack/server-production/0.pack +0 -0
  19. package/.next/cache/webpack/server-production/index.pack +0 -0
  20. package/.next/export-marker.json +0 -1
  21. package/.next/images-manifest.json +0 -1
  22. package/.next/next-server.js.nft.json +0 -1
  23. package/.next/package.json +0 -1
  24. package/.next/prerender-manifest.json +0 -1
  25. package/.next/react-loadable-manifest.json +0 -44
  26. package/.next/required-server-files.json +0 -1
  27. package/.next/routes-manifest.json +0 -1
  28. package/.next/server/chunks/177.js +0 -120
  29. package/.next/server/chunks/183.js +0 -95
  30. package/.next/server/chunks/184.js +0 -61
  31. package/.next/server/chunks/186.js +0 -113
  32. package/.next/server/chunks/289.js +0 -239
  33. package/.next/server/chunks/312.js +0 -697
  34. package/.next/server/chunks/350.js +0 -143
  35. package/.next/server/chunks/483.js +0 -650
  36. package/.next/server/chunks/487.js +0 -9142
  37. package/.next/server/chunks/53.js +0 -61
  38. package/.next/server/chunks/530.js +0 -648
  39. package/.next/server/chunks/574.js +0 -145
  40. package/.next/server/chunks/576.js +0 -95
  41. package/.next/server/chunks/650.js +0 -9142
  42. package/.next/server/chunks/676.js +0 -32
  43. package/.next/server/chunks/693.js +0 -58
  44. package/.next/server/chunks/71.js +0 -1252
  45. package/.next/server/chunks/74.js +0 -4087
  46. package/.next/server/chunks/753.js +0 -509
  47. package/.next/server/chunks/779.js +0 -58
  48. package/.next/server/chunks/825.js +0 -4039
  49. package/.next/server/chunks/854.js +0 -72
  50. package/.next/server/chunks/859.js +0 -959
  51. package/.next/server/chunks/907.js +0 -1933
  52. package/.next/server/chunks/933.js +0 -521
  53. package/.next/server/chunks/98.js +0 -163
  54. package/.next/server/chunks/988.js +0 -211
  55. package/.next/server/chunks/font-manifest.json +0 -1
  56. package/.next/server/font-manifest.json +0 -1
  57. package/.next/server/middleware-build-manifest.js +0 -1
  58. package/.next/server/middleware-manifest.json +0 -6
  59. package/.next/server/middleware-react-loadable-manifest.js +0 -1
  60. package/.next/server/pages/404.js +0 -386
  61. package/.next/server/pages/404.js.nft.json +0 -1
  62. package/.next/server/pages/500.js +0 -388
  63. package/.next/server/pages/500.js.nft.json +0 -1
  64. package/.next/server/pages/[...slug].js +0 -1006
  65. package/.next/server/pages/[...slug].js.nft.json +0 -1
  66. package/.next/server/pages/[slug]/p.js +0 -2289
  67. package/.next/server/pages/[slug]/p.js.nft.json +0 -1
  68. package/.next/server/pages/_app.js +0 -280
  69. package/.next/server/pages/_app.js.nft.json +0 -1
  70. package/.next/server/pages/_document.js +0 -374
  71. package/.next/server/pages/_document.js.nft.json +0 -1
  72. package/.next/server/pages/_error.js +0 -164
  73. package/.next/server/pages/_error.js.nft.json +0 -1
  74. package/.next/server/pages/account.js +0 -363
  75. package/.next/server/pages/account.js.nft.json +0 -1
  76. package/.next/server/pages/api/graphql.js +0 -365
  77. package/.next/server/pages/api/graphql.js.nft.json +0 -1
  78. package/.next/server/pages/api/health/live.js +0 -31
  79. package/.next/server/pages/api/health/live.js.nft.json +0 -1
  80. package/.next/server/pages/api/health/ready.js +0 -31
  81. package/.next/server/pages/api/health/ready.js.nft.json +0 -1
  82. package/.next/server/pages/api/preview.js +0 -148
  83. package/.next/server/pages/api/preview.js.nft.json +0 -1
  84. package/.next/server/pages/checkout.js +0 -363
  85. package/.next/server/pages/checkout.js.nft.json +0 -1
  86. package/.next/server/pages/en-US/404.html +0 -81
  87. package/.next/server/pages/en-US/404.json +0 -1
  88. package/.next/server/pages/en-US/500.html +0 -81
  89. package/.next/server/pages/en-US/500.json +0 -1
  90. package/.next/server/pages/en-US/account.html +0 -81
  91. package/.next/server/pages/en-US/account.json +0 -1
  92. package/.next/server/pages/en-US/checkout.html +0 -81
  93. package/.next/server/pages/en-US/checkout.json +0 -1
  94. package/.next/server/pages/en-US/login.html +0 -81
  95. package/.next/server/pages/en-US/login.json +0 -1
  96. package/.next/server/pages/en-US/s.html +0 -81
  97. package/.next/server/pages/en-US/s.json +0 -1
  98. package/.next/server/pages/en-US.html +0 -81
  99. package/.next/server/pages/en-US.json +0 -1
  100. package/.next/server/pages/index.js +0 -439
  101. package/.next/server/pages/index.js.nft.json +0 -1
  102. package/.next/server/pages/login.js +0 -368
  103. package/.next/server/pages/login.js.nft.json +0 -1
  104. package/.next/server/pages/s.js +0 -466
  105. package/.next/server/pages/s.js.nft.json +0 -1
  106. package/.next/server/pages-manifest.json +0 -18
  107. package/.next/server/webpack-api-runtime.js +0 -229
  108. package/.next/server/webpack-runtime.js +0 -229
  109. package/.next/static/8EkJazrZDz4rsTIa4IP5R/_buildManifest.js +0 -1
  110. package/.next/static/8EkJazrZDz4rsTIa4IP5R/_ssgManifest.js +0 -1
  111. package/.next/static/chunks/148.3bb7e05cc5d1c1c4.js +0 -1
  112. package/.next/static/chunks/238-2ad31f382e7c6f14.js +0 -1
  113. package/.next/static/chunks/243-8c394e91ccf75fdb.js +0 -1
  114. package/.next/static/chunks/530.da3ec94477af00a4.js +0 -1
  115. package/.next/static/chunks/548-ab84e9e8b49413ab.js +0 -1
  116. package/.next/static/chunks/574.70612be06fd1365f.js +0 -1
  117. package/.next/static/chunks/603-be78b9dfb8fa6c49.js +0 -1
  118. package/.next/static/chunks/651.7142f31ce1e052b3.js +0 -1
  119. package/.next/static/chunks/709.7bc5a25ce30abda6.js +0 -1
  120. package/.next/static/chunks/738-67a288ca3569cdbb.js +0 -1
  121. package/.next/static/chunks/741.52f7fb873418346f.js +0 -1
  122. package/.next/static/chunks/98.40c7e17d9de4eb8f.js +0 -1
  123. package/.next/static/chunks/988.d10040040cdfebbb.js +0 -1
  124. package/.next/static/chunks/framework-dfd14d7ce6600b03.js +0 -1
  125. package/.next/static/chunks/main-fd466221927468fd.js +0 -1
  126. package/.next/static/chunks/pages/404-af78f7cd1d3c1f60.js +0 -1
  127. package/.next/static/chunks/pages/500-f6346ca5f9dc4fef.js +0 -1
  128. package/.next/static/chunks/pages/[...slug]-ca533c74c22cb787.js +0 -1
  129. package/.next/static/chunks/pages/[slug]/p-3383e9b97bffafdd.js +0 -1
  130. package/.next/static/chunks/pages/_app-40cff0982559d0b8.js +0 -1
  131. package/.next/static/chunks/pages/_error-a7a0c1d9bfbb4f38.js +0 -1
  132. package/.next/static/chunks/pages/account-05bd79fb78365e88.js +0 -1
  133. package/.next/static/chunks/pages/checkout-c973786e68f25a39.js +0 -1
  134. package/.next/static/chunks/pages/index-d521ce4f4e2b89a6.js +0 -1
  135. package/.next/static/chunks/pages/login-8deb9243376b6aa1.js +0 -1
  136. package/.next/static/chunks/pages/s-1f885639c2605ace.js +0 -1
  137. package/.next/static/chunks/polyfills-c67a75d1b6f99dc8.js +0 -1
  138. package/.next/static/chunks/webpack-fac5a4eeea429971.js +0 -1
  139. package/.next/static/css/373ae96b742c3694.css +0 -1
  140. package/.next/static/css/527e334fa69cf40a.css +0 -1
  141. package/.next/static/css/6e1a7434f061d0ef.css +0 -1
  142. package/.next/static/css/7ca374e5534a3f68.css +0 -1
  143. package/.next/static/css/9e76fef1c9ca89af.css +0 -1
  144. package/.next/static/css/a2eefb25a4608343.css +0 -1
  145. package/.next/static/css/cb7d1fcea42fab9c.css +0 -1
  146. package/.next/static/css/df588bb98c0b0ca6.css +0 -1
  147. package/.next/static/css/e3b039e8f5daf95f.css +0 -1
  148. package/.next/static/css/f0e2d1b8832e935d.css +0 -1
  149. package/.next/trace +0 -80
  150. package/public/~partytown/debug/partytown-atomics.js +0 -556
  151. package/public/~partytown/debug/partytown-media.js +0 -374
  152. package/public/~partytown/debug/partytown-sandbox-sw.js +0 -543
  153. package/public/~partytown/debug/partytown-sw.js +0 -59
  154. package/public/~partytown/debug/partytown-ww-atomics.js +0 -1789
  155. package/public/~partytown/debug/partytown-ww-sw.js +0 -1781
  156. package/public/~partytown/debug/partytown.js +0 -72
  157. package/public/~partytown/partytown-atomics.js +0 -2
  158. package/public/~partytown/partytown-media.js +0 -2
  159. package/public/~partytown/partytown-sw.js +0 -2
  160. package/public/~partytown/partytown.js +0 -2
@@ -1,163 +0,0 @@
1
- "use strict";
2
- exports.id = 98;
3
- exports.ids = [98,574];
4
- exports.modules = {
5
-
6
- /***/ 65098:
7
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
8
-
9
- __webpack_require__.r(__webpack_exports__);
10
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
11
- /* harmony export */ "default": () => (/* binding */ sendEvent)
12
- /* harmony export */ });
13
- /* harmony import */ var _search__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(33574);
14
-
15
- function sendEvent(event) {
16
- // VTEX RC
17
- window?.sendrc?.(event.name, event.params); // VTEX Intelligent Search
18
-
19
- (0,_search__WEBPACK_IMPORTED_MODULE_0__["default"])(event);
20
- }
21
-
22
- /***/ }),
23
-
24
- /***/ 33574:
25
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
26
-
27
- // ESM COMPAT FLAG
28
- __webpack_require__.r(__webpack_exports__);
29
-
30
- // EXPORTS
31
- __webpack_require__.d(__webpack_exports__, {
32
- "default": () => (/* binding */ search)
33
- });
34
-
35
- // EXTERNAL MODULE: ./faststore.config.js
36
- var faststore_config = __webpack_require__(97183);
37
- var faststore_config_default = /*#__PURE__*/__webpack_require__.n(faststore_config);
38
- ;// CONCATENATED MODULE: ./src/utils/getCookie.ts
39
- function getCookie(name) {
40
- const cookieString = decodeURIComponent(document.cookie);
41
- const cookies = cookieString.split(';');
42
-
43
- for (const cookie of cookies) {
44
- const [cookieName, cookieValue] = cookie.trim().split('=');
45
-
46
- if (cookieName === name) {
47
- return cookieValue;
48
- }
49
- }
50
-
51
- return undefined; // Cookie not found
52
- }
53
- ;// CONCATENATED MODULE: ./src/sdk/analytics/platform/vtex/search.ts
54
- 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; }
55
-
56
- 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; }
57
-
58
- 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; }
59
-
60
- /**
61
- * More info at: https://www.notion.so/vtexhandbook/Event-API-Documentation-48eee26730cf4d7f80f8fd7262231f84
62
- */
63
-
64
-
65
- const THIRTY_MINUTES_S = 30 * 60;
66
- const ONE_YEAR_S = 365 * 24 * 3600;
67
-
68
- const randomUUID = () => typeof crypto.randomUUID === 'function' ? crypto.randomUUID() : (Math.random() * 1e6).toFixed(0);
69
-
70
- const createCookie = (key, expiresSecond) => {
71
- // Setting the domain attribute specifies which host can receive it; we need it to make the cookies available on the `secure` subdomain.
72
- // Although https://developer.mozilla.org/en-US/docs/Web/API/Document/cookie mentioned leading dot (.) is not needed and ignored. I couldn't set the cookies without it.
73
- const urlDomain = `.${new URL((faststore_config_default()).storeUrl).hostname}`;
74
- return () => {
75
- const isExpired = getCookie(key) === undefined;
76
-
77
- if (isExpired) {
78
- const value = randomUUID();
79
- document.cookie = `${key}=${value}; max-age=${expiresSecond}; domain=${urlDomain}; path=/;`; // Setting the `path=/` makes the cookie accessible on any path of the domain/subdomain
80
-
81
- return value;
82
- }
83
-
84
- return getCookie(key);
85
- };
86
- };
87
-
88
- const user = {
89
- anonymous: createCookie('vtex-faststore-anonymous', ONE_YEAR_S),
90
- session: createCookie('vtex-faststore-session', THIRTY_MINUTES_S)
91
- };
92
-
93
- const sendEvent = options => fetch(`https://sp.vtex.com/event-api/v1/${(faststore_config_default()).api.storeId}/event`, {
94
- method: 'POST',
95
- body: JSON.stringify(_objectSpread(_objectSpread({}, options), {}, {
96
- userAgent: navigator.userAgent,
97
- anonymous: user.anonymous(),
98
- session: user.session()
99
- })),
100
- headers: {
101
- 'content-type': 'application/json'
102
- }
103
- });
104
-
105
- const isFullTextSearch = url => typeof url.searchParams.get('q') === 'string' && /^\/s(\/)?$/g.test(url.pathname);
106
-
107
- const handleEvent = event => {
108
- switch (event.name) {
109
- case 'search_select_item':
110
- {
111
- const url = new URL(event.params.url);
112
-
113
- if (!isFullTextSearch(url)) {
114
- return;
115
- }
116
-
117
- for (const item of event.params.items ?? []) {
118
- const productId = item.item_id ?? item.item_variant;
119
- const position = item.index;
120
-
121
- if (productId && position) {
122
- sendEvent({
123
- type: 'search.click',
124
- productId,
125
- position,
126
- url: url.href,
127
- text: url.searchParams.get('q') ?? '<empty>'
128
- });
129
- }
130
- }
131
-
132
- break;
133
- }
134
-
135
- case 'intelligent_search_query':
136
- {
137
- sendEvent({
138
- type: 'search.query',
139
- url: event.params.url,
140
- text: event.params.term,
141
- misspelled: event.params.isTermMisspelled,
142
- match: event.params.totalCount,
143
- operator: event.params.logicalOperator,
144
- locale: event.params.locale
145
- });
146
- break;
147
- }
148
-
149
- default:
150
- }
151
- };
152
-
153
- setInterval(() => sendEvent({
154
- type: 'session.ping'
155
- }), 60 * 1e3
156
- /* One minute */
157
- );
158
- /* harmony default export */ const search = (handleEvent);
159
-
160
- /***/ })
161
-
162
- };
163
- ;
@@ -1,211 +0,0 @@
1
- exports.id = 988;
2
- exports.ids = [988];
3
- exports.modules = {
4
-
5
- /***/ 5988:
6
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
7
-
8
- "use strict";
9
- // ESM COMPAT FLAG
10
- __webpack_require__.r(__webpack_exports__);
11
-
12
- // EXPORTS
13
- __webpack_require__.d(__webpack_exports__, {
14
- "default": () => (/* reexport */ region_RegionModal_RegionModal)
15
- });
16
-
17
- // EXTERNAL MODULE: ../components/dist/esm/hooks/UIProvider.js
18
- var UIProvider = __webpack_require__(16652);
19
- // EXTERNAL MODULE: ../components/dist/esm/atoms/Icon/Icon.js
20
- var Icon = __webpack_require__(2614);
21
- // EXTERNAL MODULE: external "react"
22
- var external_react_ = __webpack_require__(16689);
23
- var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
24
- // EXTERNAL MODULE: ../components/dist/esm/molecules/Modal/Modal.js + 3 modules
25
- var Modal = __webpack_require__(93543);
26
- // EXTERNAL MODULE: ../components/dist/esm/molecules/IconButton/IconButton.js
27
- var IconButton = __webpack_require__(37041);
28
- ;// CONCATENATED MODULE: ../components/dist/esm/molecules/Modal/ModalHeader.js
29
-
30
-
31
-
32
- const ModalHeader = ({ onClose, title, closeBtnProps = {}, description, }) => {
33
- return (external_react_default().createElement("header", { "data-fs-modal-header": true },
34
- onClose && (external_react_default().createElement(IconButton/* default */.Z, { "data-fs-modal-header-close-button": true, "aria-label": "Close modal", icon: external_react_default().createElement(Icon/* default */.Z, { name: "X" }), onClick: () => onClose?.(), ...closeBtnProps })),
35
- external_react_default().createElement("p", { "data-fs-modal-header-title": true }, title),
36
- description && external_react_default().createElement("p", { "data-fs-modal-header-description": true }, description)));
37
- };
38
- /* harmony default export */ const Modal_ModalHeader = (ModalHeader);
39
- //# sourceMappingURL=ModalHeader.js.map
40
- ;// CONCATENATED MODULE: ../components/dist/esm/molecules/Modal/ModalBody.js
41
-
42
- const ModalBody = ({ children, ...otherProps }) => (external_react_default().createElement("div", { "data-fs-modal-body": true, ...otherProps }, children));
43
- /* harmony default export */ const Modal_ModalBody = (ModalBody);
44
- //# sourceMappingURL=ModalBody.js.map
45
- // EXTERNAL MODULE: ../components/dist/esm/molecules/InputField/InputField.js
46
- var InputField = __webpack_require__(93779);
47
- // EXTERNAL MODULE: ../components/dist/esm/atoms/Link/Link.js
48
- var Link = __webpack_require__(40727);
49
- ;// CONCATENATED MODULE: ../components/dist/esm/organisms/RegionModal/RegionModal.js
50
-
51
-
52
- function RegionModal({ testId = 'fs-region-modal', title = 'Set your location', description = 'Prices, offers and availability may vary according to your location.', closeButtonAriaLabel = 'Close Region Modal', idkPostalCodeLinkProps, errorMessage, inputRef, inputValue, inputLabel = 'Postal Code', fadeOutOnSubmit, overlayProps, onClose, onInput, onSubmit, onClear, ...otherProps }) {
53
- return (external_react_default().createElement(Modal/* default */.Z, { "data-fs-region-modal": true, testId: testId, overlayProps: overlayProps, title: "Region modal", "aria-label": "Region modal", ...otherProps }, ({ fadeOut }) => (external_react_default().createElement((external_react_default()).Fragment, null,
54
- external_react_default().createElement(Modal_ModalHeader, { onClose: () => {
55
- fadeOut();
56
- onClose?.();
57
- }, title: title, description: description, closeBtnProps: {
58
- 'aria-label': closeButtonAriaLabel,
59
- } }),
60
- external_react_default().createElement(Modal_ModalBody, null,
61
- external_react_default().createElement(InputField/* default */.Z, { "data-fs-region-modal-input": true, id: `${testId}-input-field`, inputRef: inputRef, label: inputLabel, actionable: true, value: inputValue, onInput: (event) => onInput?.(event), onSubmit: () => {
62
- onSubmit?.();
63
- fadeOutOnSubmit ? fadeOut() : null;
64
- }, onClear: () => onClear?.(), error: errorMessage }),
65
- external_react_default().createElement(Link/* default */.Z, { "data-fs-region-modal-link": true, ...idkPostalCodeLinkProps }))))));
66
- }
67
- /* harmony default export */ const RegionModal_RegionModal = (RegionModal);
68
- //# sourceMappingURL=RegionModal.js.map
69
- // EXTERNAL MODULE: ./src/sdk/session/index.ts + 1 modules
70
- var sdk_session = __webpack_require__(97295);
71
- // EXTERNAL MODULE: ./src/components/region/RegionModal/section.module.scss
72
- var section_module = __webpack_require__(35063);
73
- var section_module_default = /*#__PURE__*/__webpack_require__.n(section_module);
74
- // EXTERNAL MODULE: external "react/jsx-runtime"
75
- var jsx_runtime_ = __webpack_require__(20997);
76
- ;// CONCATENATED MODULE: ./src/components/region/RegionModal/RegionModal.tsx
77
- const _excluded = ["isValidating"];
78
-
79
- 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; }
80
-
81
- 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; }
82
-
83
- 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; }
84
-
85
- 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; }
86
-
87
- 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; }
88
-
89
-
90
-
91
-
92
-
93
-
94
-
95
-
96
-
97
- function RegionModal_RegionModal_RegionModal({
98
- title,
99
- description,
100
- closeButtonAriaLabel,
101
- inputField: {
102
- label: inputFieldLabel,
103
- errorMessage: inputFieldErrorMessage
104
- },
105
- idkPostalCodeLink: {
106
- text: idkPostalCodeLinkText,
107
- to: idkPostalCodeLinkTo,
108
- icon: {
109
- icon: idkPostalCodeLinkIcon,
110
- alt: idkPostalCodeLinkIconAlt
111
- }
112
- }
113
- }) {
114
- const inputRef = (0,external_react_.useRef)(null);
115
-
116
- const _useSession = (0,sdk_session/* useSession */.kP)(),
117
- {
118
- isValidating
119
- } = _useSession,
120
- session = _objectWithoutProperties(_useSession, _excluded);
121
-
122
- const {
123
- 0: errorMessage,
124
- 1: setErrorMessage
125
- } = (0,external_react_.useState)('');
126
- const {
127
- 0: input,
128
- 1: setInput
129
- } = (0,external_react_.useState)('');
130
- const {
131
- modal: displayModal
132
- } = (0,UIProvider/* useUI */.l)();
133
-
134
- const handleSubmit = async () => {
135
- const postalCode = inputRef.current?.value;
136
-
137
- if (typeof postalCode !== 'string') {
138
- return;
139
- }
140
-
141
- setErrorMessage('');
142
-
143
- try {
144
- const newSession = _objectSpread(_objectSpread({}, session), {}, {
145
- postalCode
146
- });
147
-
148
- const validatedSession = await (0,sdk_session/* validateSession */.je)(newSession);
149
- sdk_session/* sessionStore.set */.Qf.set(validatedSession ?? newSession);
150
- } catch (error) {
151
- setErrorMessage(inputFieldErrorMessage);
152
- }
153
- };
154
-
155
- const idkPostalCodeLinkProps = {
156
- href: idkPostalCodeLinkTo ?? '#',
157
- children: /*#__PURE__*/(0,jsx_runtime_.jsxs)(jsx_runtime_.Fragment, {
158
- children: [idkPostalCodeLinkText, !!idkPostalCodeLinkIcon ?? /*#__PURE__*/jsx_runtime_.jsx(Icon/* default */.Z, {
159
- name: idkPostalCodeLinkIcon,
160
- "aria-label": idkPostalCodeLinkIconAlt,
161
- width: 20,
162
- height: 20
163
- })]
164
- })
165
- };
166
- return /*#__PURE__*/jsx_runtime_.jsx(jsx_runtime_.Fragment, {
167
- children: displayModal && /*#__PURE__*/jsx_runtime_.jsx(external_react_.Suspense, {
168
- fallback: null,
169
- children: /*#__PURE__*/jsx_runtime_.jsx(RegionModal_RegionModal, {
170
- title: title,
171
- description: description,
172
- overlayProps: {
173
- className: `section ${(section_module_default()).section} section-region-modal`
174
- },
175
- closeButtonAriaLabel: closeButtonAriaLabel,
176
- inputRef: inputRef,
177
- inputValue: input,
178
- inputLabel: inputFieldLabel,
179
- errorMessage: errorMessage,
180
- idkPostalCodeLinkProps: idkPostalCodeLinkProps,
181
- onInput: e => {
182
- errorMessage !== '' && setErrorMessage('');
183
- setInput(e.currentTarget.value);
184
- },
185
- onSubmit: handleSubmit,
186
- fadeOutOnSubmit: true,
187
- onClear: () => setInput('')
188
- })
189
- })
190
- });
191
- }
192
-
193
- /* harmony default export */ const region_RegionModal_RegionModal = (RegionModal_RegionModal_RegionModal);
194
- ;// CONCATENATED MODULE: ./src/components/region/RegionModal/index.ts
195
-
196
-
197
- /***/ }),
198
-
199
- /***/ 35063:
200
- /***/ ((module) => {
201
-
202
- // Exports
203
- module.exports = {
204
- "section": "section_section__dmhNq"
205
- };
206
-
207
-
208
- /***/ })
209
-
210
- };
211
- ;
@@ -1 +0,0 @@
1
- []
@@ -1 +0,0 @@
1
- []
@@ -1 +0,0 @@
1
- self.__BUILD_MANIFEST={polyfillFiles:["static/chunks/polyfills-c67a75d1b6f99dc8.js"],devFiles:[],ampDevFiles:[],lowPriorityFiles:["static/8EkJazrZDz4rsTIa4IP5R/_buildManifest.js","static/8EkJazrZDz4rsTIa4IP5R/_ssgManifest.js"],rootMainFiles:[],pages:{"/":["static/chunks/webpack-fac5a4eeea429971.js","static/chunks/framework-dfd14d7ce6600b03.js","static/chunks/main-fd466221927468fd.js","static/chunks/738-67a288ca3569cdbb.js","static/chunks/548-ab84e9e8b49413ab.js","static/css/e3b039e8f5daf95f.css","static/chunks/243-8c394e91ccf75fdb.js","static/css/373ae96b742c3694.css","static/chunks/238-2ad31f382e7c6f14.js","static/css/a2eefb25a4608343.css","static/chunks/pages/index-d521ce4f4e2b89a6.js"],"/404":["static/chunks/webpack-fac5a4eeea429971.js","static/chunks/framework-dfd14d7ce6600b03.js","static/chunks/main-fd466221927468fd.js","static/chunks/738-67a288ca3569cdbb.js","static/css/e3b039e8f5daf95f.css","static/chunks/243-8c394e91ccf75fdb.js","static/css/df588bb98c0b0ca6.css","static/chunks/pages/404-af78f7cd1d3c1f60.js"],"/500":["static/chunks/webpack-fac5a4eeea429971.js","static/chunks/framework-dfd14d7ce6600b03.js","static/chunks/main-fd466221927468fd.js","static/chunks/738-67a288ca3569cdbb.js","static/css/e3b039e8f5daf95f.css","static/chunks/243-8c394e91ccf75fdb.js","static/css/df588bb98c0b0ca6.css","static/chunks/pages/500-f6346ca5f9dc4fef.js"],"/[...slug]":["static/chunks/webpack-fac5a4eeea429971.js","static/chunks/framework-dfd14d7ce6600b03.js","static/chunks/main-fd466221927468fd.js","static/chunks/738-67a288ca3569cdbb.js","static/chunks/548-ab84e9e8b49413ab.js","static/css/e3b039e8f5daf95f.css","static/chunks/243-8c394e91ccf75fdb.js","static/css/373ae96b742c3694.css","static/chunks/238-2ad31f382e7c6f14.js","static/css/f0e2d1b8832e935d.css","static/chunks/603-be78b9dfb8fa6c49.js","static/css/a2eefb25a4608343.css","static/css/527e334fa69cf40a.css","static/chunks/pages/[...slug]-ca533c74c22cb787.js"],"/[slug]/p":["static/chunks/webpack-fac5a4eeea429971.js","static/chunks/framework-dfd14d7ce6600b03.js","static/chunks/main-fd466221927468fd.js","static/chunks/738-67a288ca3569cdbb.js","static/chunks/548-ab84e9e8b49413ab.js","static/css/e3b039e8f5daf95f.css","static/chunks/243-8c394e91ccf75fdb.js","static/css/373ae96b742c3694.css","static/chunks/238-2ad31f382e7c6f14.js","static/css/7ca374e5534a3f68.css","static/chunks/pages/[slug]/p-3383e9b97bffafdd.js"],"/_app":["static/chunks/webpack-fac5a4eeea429971.js","static/chunks/framework-dfd14d7ce6600b03.js","static/chunks/main-fd466221927468fd.js","static/css/9e76fef1c9ca89af.css","static/chunks/pages/_app-40cff0982559d0b8.js"],"/_error":["static/chunks/webpack-fac5a4eeea429971.js","static/chunks/framework-dfd14d7ce6600b03.js","static/chunks/main-fd466221927468fd.js","static/chunks/pages/_error-a7a0c1d9bfbb4f38.js"],"/account":["static/chunks/webpack-fac5a4eeea429971.js","static/chunks/framework-dfd14d7ce6600b03.js","static/chunks/main-fd466221927468fd.js","static/chunks/738-67a288ca3569cdbb.js","static/css/e3b039e8f5daf95f.css","static/chunks/243-8c394e91ccf75fdb.js","static/chunks/pages/account-05bd79fb78365e88.js"],"/checkout":["static/chunks/webpack-fac5a4eeea429971.js","static/chunks/framework-dfd14d7ce6600b03.js","static/chunks/main-fd466221927468fd.js","static/chunks/738-67a288ca3569cdbb.js","static/css/e3b039e8f5daf95f.css","static/chunks/243-8c394e91ccf75fdb.js","static/chunks/pages/checkout-c973786e68f25a39.js"],"/login":["static/chunks/webpack-fac5a4eeea429971.js","static/chunks/framework-dfd14d7ce6600b03.js","static/chunks/main-fd466221927468fd.js","static/chunks/738-67a288ca3569cdbb.js","static/css/e3b039e8f5daf95f.css","static/chunks/243-8c394e91ccf75fdb.js","static/css/df588bb98c0b0ca6.css","static/chunks/pages/login-8deb9243376b6aa1.js"],"/s":["static/chunks/webpack-fac5a4eeea429971.js","static/chunks/framework-dfd14d7ce6600b03.js","static/chunks/main-fd466221927468fd.js","static/chunks/738-67a288ca3569cdbb.js","static/css/e3b039e8f5daf95f.css","static/chunks/243-8c394e91ccf75fdb.js","static/css/f0e2d1b8832e935d.css","static/chunks/603-be78b9dfb8fa6c49.js","static/chunks/pages/s-1f885639c2605ace.js"]},ampFirstPages:[]};
@@ -1,6 +0,0 @@
1
- {
2
- "sortedMiddleware": [],
3
- "middleware": {},
4
- "functions": {},
5
- "version": 2
6
- }
@@ -1 +0,0 @@
1
- self.__REACT_LOADABLE_MANIFEST={"../../node_modules/next/dist/client/index.js -> ../pages/_app":{id:2741,files:["static/chunks/741.52f7fb873418346f.js"]},"../../node_modules/next/dist/client/index.js -> ../pages/_error":{id:9651,files:["static/chunks/651.7142f31ce1e052b3.js"]},"../components/cms/GlobalSections.tsx -> src/components/cart/CartSidebar":{id:530,files:["static/css/6e1a7434f061d0ef.css","static/chunks/530.da3ec94477af00a4.js"]},"../components/cms/GlobalSections.tsx -> src/components/region/RegionModal":{id:5988,files:["static/css/cb7d1fcea42fab9c.css","static/chunks/988.d10040040cdfebbb.js"]},"../components/search/SearchInput/SearchInput.tsx -> src/components/search/SearchDropdown":{id:6148,files:["static/chunks/148.3bb7e05cc5d1c1c4.js"]},"../components/sections/ProductGallery/Overrides.tsx -> src/components/search/Filter/FilterSlider":{id:1386,files:[]},"../components/ui/ProductGallery/ProductGallery.tsx -> ./ProductGalleryPage":{id:3709,files:["static/chunks/709.7bc5a25ce30abda6.js"]}};