@faststore/core 3.0.21 → 3.0.22

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 (265) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/build-manifest.json +89 -90
  3. package/.next/cache/.tsbuildinfo +1 -1
  4. package/.next/cache/eslint/.cache_ybd91x +1 -0
  5. package/.next/cache/webpack/client-development/0.pack.gz +0 -0
  6. package/.next/cache/webpack/client-development/1.pack.gz +0 -0
  7. package/.next/cache/webpack/client-development/10.pack.gz +0 -0
  8. package/.next/cache/webpack/client-development/11.pack.gz +0 -0
  9. package/.next/cache/webpack/client-development/2.pack.gz +0 -0
  10. package/.next/cache/webpack/client-development/3.pack.gz +0 -0
  11. package/.next/cache/webpack/client-development/4.pack.gz +0 -0
  12. package/.next/cache/webpack/client-development/5.pack.gz +0 -0
  13. package/.next/cache/webpack/client-development/6.pack.gz +0 -0
  14. package/.next/cache/webpack/client-development/7.pack.gz +0 -0
  15. package/.next/cache/webpack/client-development/8.pack.gz +0 -0
  16. package/.next/cache/webpack/client-development/9.pack.gz +0 -0
  17. package/.next/cache/webpack/client-development/index.pack.gz +0 -0
  18. package/.next/cache/webpack/client-development/index.pack.gz.old +0 -0
  19. package/.next/cache/webpack/client-production/0.pack +0 -0
  20. package/.next/cache/webpack/client-production/1.pack +0 -0
  21. package/.next/cache/webpack/client-production/10.pack +0 -0
  22. package/.next/cache/webpack/client-production/2.pack +0 -0
  23. package/.next/cache/webpack/client-production/3.pack +0 -0
  24. package/.next/cache/webpack/client-production/4.pack +0 -0
  25. package/.next/cache/webpack/client-production/5.pack +0 -0
  26. package/.next/cache/webpack/client-production/6.pack +0 -0
  27. package/.next/cache/webpack/client-production/7.pack +0 -0
  28. package/.next/cache/webpack/client-production/8.pack +0 -0
  29. package/.next/cache/webpack/client-production/9.pack +0 -0
  30. package/.next/cache/webpack/client-production/index.pack +0 -0
  31. package/.next/cache/webpack/client-production/index.pack.old +0 -0
  32. package/.next/cache/webpack/server-development/0.pack.gz +0 -0
  33. package/.next/cache/webpack/server-development/1.pack.gz +0 -0
  34. package/.next/cache/webpack/server-development/10.pack.gz +0 -0
  35. package/.next/cache/webpack/server-development/11.pack.gz +0 -0
  36. package/.next/cache/webpack/server-development/12.pack.gz +0 -0
  37. package/.next/cache/webpack/server-development/2.pack.gz +0 -0
  38. package/.next/cache/webpack/server-development/3.pack.gz +0 -0
  39. package/.next/cache/webpack/server-development/4.pack.gz +0 -0
  40. package/.next/cache/webpack/server-development/5.pack.gz +0 -0
  41. package/.next/cache/webpack/server-development/6.pack.gz +0 -0
  42. package/.next/cache/webpack/server-development/7.pack.gz +0 -0
  43. package/.next/cache/webpack/server-development/8.pack.gz +0 -0
  44. package/.next/cache/webpack/server-development/9.pack.gz +0 -0
  45. package/.next/cache/webpack/server-development/index.pack.gz +0 -0
  46. package/.next/cache/webpack/server-development/index.pack.gz.old +0 -0
  47. package/.next/cache/webpack/server-production/0.pack +0 -0
  48. package/.next/cache/webpack/server-production/1.pack +0 -0
  49. package/.next/cache/webpack/server-production/2.pack +0 -0
  50. package/.next/cache/webpack/server-production/3.pack +0 -0
  51. package/.next/cache/webpack/server-production/4.pack +0 -0
  52. package/.next/cache/webpack/server-production/5.pack +0 -0
  53. package/.next/cache/webpack/server-production/6.pack +0 -0
  54. package/.next/cache/webpack/server-production/7.pack +0 -0
  55. package/.next/cache/webpack/server-production/index.pack +0 -0
  56. package/.next/cache/webpack/server-production/index.pack.old +0 -0
  57. package/.next/images-manifest.json +1 -1
  58. package/.next/next-minimal-server.js.nft.json +1 -0
  59. package/.next/next-server.js.nft.json +1 -1
  60. package/.next/prerender-manifest.js +1 -0
  61. package/.next/prerender-manifest.json +1 -1
  62. package/.next/react-loadable-manifest.json +18 -18
  63. package/.next/required-server-files.json +1 -1
  64. package/.next/routes-manifest.json +1 -1
  65. package/.next/server/chunks/119.js +1 -0
  66. package/.next/server/chunks/12.js +1 -0
  67. package/.next/server/chunks/187.js +1 -0
  68. package/.next/server/chunks/202.js +1 -0
  69. package/.next/server/chunks/24.js +1 -0
  70. package/.next/server/chunks/242.js +1 -0
  71. package/.next/server/chunks/247.js +1 -0
  72. package/.next/server/chunks/344.js +1 -0
  73. package/.next/server/chunks/404.js +1 -434
  74. package/.next/server/chunks/414.js +1 -0
  75. package/.next/server/chunks/484.js +1 -0
  76. package/.next/server/chunks/493.js +1 -0
  77. package/.next/server/chunks/498.js +1 -0
  78. package/.next/server/chunks/540.js +1 -0
  79. package/.next/server/chunks/57.js +1 -434
  80. package/.next/server/chunks/624.js +1 -0
  81. package/.next/server/chunks/640.js +6 -0
  82. package/.next/server/chunks/646.js +292 -0
  83. package/.next/server/chunks/659.js +9 -0
  84. package/.next/server/chunks/679.js +1 -0
  85. package/.next/server/chunks/693.js +1 -58
  86. package/.next/server/chunks/694.js +1 -0
  87. package/.next/server/chunks/779.js +1 -58
  88. package/.next/server/chunks/82.js +8 -0
  89. package/.next/server/chunks/857.js +1 -0
  90. package/.next/server/chunks/859.js +4 -957
  91. package/.next/server/chunks/881.js +1 -0
  92. package/.next/server/chunks/917.js +1 -0
  93. package/.next/server/chunks/936.js +1 -0
  94. package/.next/server/chunks/96.js +1 -0
  95. package/.next/server/chunks/997.js +1 -0
  96. package/.next/server/functions-config-manifest.json +1 -0
  97. package/.next/server/middleware-build-manifest.js +1 -1
  98. package/.next/server/middleware-react-loadable-manifest.js +1 -1
  99. package/.next/server/next-font-manifest.js +1 -0
  100. package/.next/server/next-font-manifest.json +1 -0
  101. package/.next/server/pages/404.js +1 -391
  102. package/.next/server/pages/404.js.nft.json +1 -1
  103. package/.next/server/pages/500.js +1 -395
  104. package/.next/server/pages/500.js.nft.json +1 -1
  105. package/.next/server/pages/[...slug].js +1 -1076
  106. package/.next/server/pages/[...slug].js.nft.json +1 -1
  107. package/.next/server/pages/[slug]/p.js +1 -2265
  108. package/.next/server/pages/[slug]/p.js.nft.json +1 -1
  109. package/.next/server/pages/_app.js +1 -301
  110. package/.next/server/pages/_app.js.nft.json +1 -1
  111. package/.next/server/pages/_document.js +1 -363
  112. package/.next/server/pages/_document.js.nft.json +1 -1
  113. package/.next/server/pages/_error.js +1 -164
  114. package/.next/server/pages/_error.js.nft.json +1 -1
  115. package/.next/server/pages/account.js +1 -370
  116. package/.next/server/pages/account.js.nft.json +1 -1
  117. package/.next/server/pages/api/graphql.js +1 -2999
  118. package/.next/server/pages/api/graphql.js.nft.json +1 -1
  119. package/.next/server/pages/api/health/live.js +1 -31
  120. package/.next/server/pages/api/health/live.js.nft.json +1 -1
  121. package/.next/server/pages/api/health/ready.js +1 -31
  122. package/.next/server/pages/api/health/ready.js.nft.json +1 -1
  123. package/.next/server/pages/api/preview.js +1 -137
  124. package/.next/server/pages/api/preview.js.nft.json +1 -1
  125. package/.next/server/pages/checkout.js +1 -370
  126. package/.next/server/pages/checkout.js.nft.json +1 -1
  127. package/.next/server/pages/en-US/404.html +2 -2
  128. package/.next/server/pages/en-US/404.json +1 -1
  129. package/.next/server/pages/en-US/500.html +2 -2
  130. package/.next/server/pages/en-US/500.json +1 -1
  131. package/.next/server/pages/en-US/account.html +2 -2
  132. package/.next/server/pages/en-US/account.json +1 -1
  133. package/.next/server/pages/en-US/checkout.html +2 -2
  134. package/.next/server/pages/en-US/checkout.json +1 -1
  135. package/.next/server/pages/en-US/login.html +2 -2
  136. package/.next/server/pages/en-US/login.json +1 -1
  137. package/.next/server/pages/en-US/s.html +2 -2
  138. package/.next/server/pages/en-US/s.json +1 -1
  139. package/.next/server/pages/en-US.html +5 -5
  140. package/.next/server/pages/en-US.json +1 -1
  141. package/.next/server/pages/index.js +1 -439
  142. package/.next/server/pages/index.js.nft.json +1 -1
  143. package/.next/server/pages/login.js +1 -382
  144. package/.next/server/pages/login.js.nft.json +1 -1
  145. package/.next/server/pages/s.js +1 -554
  146. package/.next/server/pages/s.js.nft.json +1 -1
  147. package/.next/server/pages-manifest.json +1 -18
  148. package/.next/server/webpack-api-runtime.js +1 -229
  149. package/.next/server/webpack-runtime.js +1 -229
  150. package/.next/static/KHfUTI2LyBArHphiJspvQ/_buildManifest.js +1 -0
  151. package/.next/static/chunks/104-407fa6e31258582b.js +1 -0
  152. package/.next/static/chunks/161-b39fe2f79ff7bc85.js +1 -0
  153. package/.next/static/chunks/202.c7d8a71173edecfb.js +1 -0
  154. package/.next/static/chunks/217.01bc0ad07edd6f1b.js +1 -0
  155. package/.next/static/chunks/247.6f1391104a867395.js +1 -0
  156. package/.next/static/chunks/484.b82b73b1d8c37e02.js +1 -0
  157. package/.next/static/chunks/540.6c62d2536d42a1e0.js +1 -0
  158. package/.next/static/chunks/575-853fb8b1ba4ce8c4.js +14 -0
  159. package/.next/static/chunks/624.d3de62b4562a33f3.js +1 -0
  160. package/.next/static/chunks/629-c74f247bd29420a5.js +1 -0
  161. package/.next/static/chunks/65.da22595d53beae76.js +1 -0
  162. package/.next/static/chunks/758.b53ee01b506973e0.js +1 -0
  163. package/.next/static/chunks/857.d2299cfe995af21d.js +1 -0
  164. package/.next/static/chunks/framework-8e279965036b6169.js +33 -0
  165. package/.next/static/chunks/main-6f63f6746cc029db.js +1 -0
  166. package/.next/static/chunks/pages/404-1334d11ab8467b3d.js +1 -0
  167. package/.next/static/chunks/pages/500-449c5bd51f98423f.js +1 -0
  168. package/.next/static/chunks/pages/[...slug]-bcaf61b01157d8cb.js +1 -0
  169. package/.next/static/chunks/pages/[slug]/p-5fb8fe2c80ec1608.js +1 -0
  170. package/.next/static/chunks/pages/_app-ad8623e78bc5b766.js +68 -0
  171. package/.next/static/chunks/pages/_error-fbf331a03642b495.js +1 -0
  172. package/.next/static/chunks/pages/account-dbc5c028225cd1ac.js +1 -0
  173. package/.next/static/chunks/pages/checkout-29ae2c37eaf172e1.js +1 -0
  174. package/.next/static/chunks/pages/index-cd109119d65df8e3.js +1 -0
  175. package/.next/static/chunks/pages/login-c4d2c856008df5ac.js +1 -0
  176. package/.next/static/chunks/pages/s-26e475975386c51a.js +1 -0
  177. package/.next/static/chunks/webpack-f3be21bc483182aa.js +1 -0
  178. package/.next/static/css/0d45c82d8887a269.css +1 -0
  179. package/.next/static/css/211c7542af66d8b4.css +1 -0
  180. package/.next/static/css/{df588bb98c0b0ca6.css → 2980acad3f8e1028.css} +1 -1
  181. package/.next/static/css/4c4d90eb8cb1d2b7.css +1 -0
  182. package/.next/static/css/821a5219786be653.css +1 -0
  183. package/.next/static/css/96e3fddf695d6aa9.css +1 -0
  184. package/.next/static/css/{6a7fdc5a21fbead5.css → b9d9ba1b04f3160d.css} +1 -1
  185. package/.next/static/css/cff9aafa16fccc9c.css +1 -0
  186. package/.next/static/css/{a2eefb25a4608343.css → d586715f4f707df4.css} +1 -1
  187. package/.next/static/css/{cb7d1fcea42fab9c.css → e32410b31c666cb2.css} +1 -1
  188. package/.next/trace +6 -80
  189. package/@generated/persisted-documents.json +13 -0
  190. package/@generated/schema.graphql +1067 -0
  191. package/package.json +3 -4
  192. package/.next/cache/eslint/.cache_abdhua +0 -1
  193. package/.next/cache/next-server.js.nft.json +0 -1
  194. package/.next/cache/webpack/client-development/0.pack +0 -0
  195. package/.next/cache/webpack/client-development/1.pack +0 -0
  196. package/.next/cache/webpack/client-development/2.pack +0 -0
  197. package/.next/cache/webpack/client-development/index.pack +0 -0
  198. package/.next/cache/webpack/client-development/index.pack.old +0 -0
  199. package/.next/cache/webpack/server-development/0.pack +0 -0
  200. package/.next/cache/webpack/server-development/1.pack +0 -0
  201. package/.next/cache/webpack/server-development/2.pack +0 -0
  202. package/.next/cache/webpack/server-development/3.pack +0 -0
  203. package/.next/cache/webpack/server-development/4.pack +0 -0
  204. package/.next/cache/webpack/server-development/index.pack +0 -0
  205. package/.next/cache/webpack/server-development/index.pack.old +0 -0
  206. package/.next/server/chunks/117.js +0 -430
  207. package/.next/server/chunks/177.js +0 -125
  208. package/.next/server/chunks/183.js +0 -122
  209. package/.next/server/chunks/184.js +0 -61
  210. package/.next/server/chunks/289.js +0 -240
  211. package/.next/server/chunks/312.js +0 -678
  212. package/.next/server/chunks/350.js +0 -2834
  213. package/.next/server/chunks/386.js +0 -200
  214. package/.next/server/chunks/390.js +0 -550
  215. package/.next/server/chunks/398.js +0 -611
  216. package/.next/server/chunks/53.js +0 -61
  217. package/.next/server/chunks/574.js +0 -145
  218. package/.next/server/chunks/576.js +0 -122
  219. package/.next/server/chunks/585.js +0 -640
  220. package/.next/server/chunks/676.js +0 -32
  221. package/.next/server/chunks/732.js +0 -1881
  222. package/.next/server/chunks/74.js +0 -4066
  223. package/.next/server/chunks/825.js +0 -4074
  224. package/.next/server/chunks/854.js +0 -72
  225. package/.next/server/chunks/863.js +0 -111
  226. package/.next/server/chunks/979.js +0 -1305
  227. package/.next/server/chunks/98.js +0 -163
  228. package/.next/server/chunks/988.js +0 -211
  229. package/.next/static/HI-kc1kjNIbFyFsZCeDEA/_buildManifest.js +0 -1
  230. package/.next/static/chunks/223-cb77217cce52d45c.js +0 -1
  231. package/.next/static/chunks/251.1c79f06f2a2814b1.js +0 -1
  232. package/.next/static/chunks/386.d01e0db26c523f0f.js +0 -1
  233. package/.next/static/chunks/400-d4daabcd57b2ea80.js +0 -1
  234. package/.next/static/chunks/469-7259b855711d4ad3.js +0 -1
  235. package/.next/static/chunks/574.70612be06fd1365f.js +0 -1
  236. package/.next/static/chunks/585.4c5d40fc6a72a611.js +0 -1
  237. package/.next/static/chunks/651.7142f31ce1e052b3.js +0 -1
  238. package/.next/static/chunks/741.52f7fb873418346f.js +0 -1
  239. package/.next/static/chunks/783-fbcb7a3216c40744.js +0 -1
  240. package/.next/static/chunks/800.ee4f8b9622001e8c.js +0 -1
  241. package/.next/static/chunks/98.40c7e17d9de4eb8f.js +0 -1
  242. package/.next/static/chunks/988.afda042dd9ba11d1.js +0 -1
  243. package/.next/static/chunks/framework-dfd14d7ce6600b03.js +0 -1
  244. package/.next/static/chunks/main-e4e873ee741162eb.js +0 -1
  245. package/.next/static/chunks/pages/404-2240f0b22db2d370.js +0 -1
  246. package/.next/static/chunks/pages/500-c0580e3299329874.js +0 -1
  247. package/.next/static/chunks/pages/[...slug]-3eed3497c887fae5.js +0 -1
  248. package/.next/static/chunks/pages/[slug]/p-e1df08570f34a0d8.js +0 -1
  249. package/.next/static/chunks/pages/_app-30b9666307e4b3b1.js +0 -1
  250. package/.next/static/chunks/pages/_error-319451dea77827a6.js +0 -1
  251. package/.next/static/chunks/pages/account-b35bcbef719765f3.js +0 -1
  252. package/.next/static/chunks/pages/checkout-55bd56ade4408cbe.js +0 -1
  253. package/.next/static/chunks/pages/index-2506749e45c335bf.js +0 -1
  254. package/.next/static/chunks/pages/login-3f94bff1503b4fdc.js +0 -1
  255. package/.next/static/chunks/pages/s-2374cff2e39ed624.js +0 -1
  256. package/.next/static/chunks/webpack-af94306e71c4459d.js +0 -1
  257. package/.next/static/css/29868543c76bc6fd.css +0 -1
  258. package/.next/static/css/527e334fa69cf40a.css +0 -1
  259. package/.next/static/css/723835bce380750d.css +0 -1
  260. package/.next/static/css/d7bbfbd552f407e9.css +0 -1
  261. package/.next/static/css/dfbdb0f27fd64782.css +0 -1
  262. package/.next/static/css/e84fc497732ea596.css +0 -1
  263. package/.turbo/turbo-build.log +0 -65
  264. package/.turbo/turbo-dev.log +0 -45
  265. /package/.next/static/{HI-kc1kjNIbFyFsZCeDEA → KHfUTI2LyBArHphiJspvQ}/_ssgManifest.js +0 -0
@@ -1,434 +1 @@
1
- "use strict";
2
- exports.id = 57;
3
- exports.ids = [57];
4
- exports.modules = {
5
-
6
- /***/ 3057:
7
- /***/ ((module) => {
8
-
9
-
10
-
11
- /**
12
- * Copyright (c) 2019-present, GraphQL Foundation
13
- *
14
- * This source code is licensed under the MIT license found in the
15
- * LICENSE file in the root directory of this source tree.
16
- *
17
- *
18
- */
19
- // A Function, which when given an Array of keys, returns a Promise of an Array
20
- // of values or Errors.
21
- // Optionally turn off batching or caching or provide a cache key function or a
22
- // custom cache instance.
23
- // If a custom cache is provided, it must be of this type (a subset of ES6 Map).
24
-
25
- /**
26
- * A `DataLoader` creates a public API for loading data from a particular
27
- * data back-end with unique keys such as the `id` column of a SQL table or
28
- * document name in a MongoDB database, given a batch loading function.
29
- *
30
- * Each `DataLoader` instance contains a unique memoized cache. Use caution when
31
- * used in long-lived applications or those which serve many users with
32
- * different access permissions and consider creating a new instance per
33
- * web request.
34
- */
35
- var DataLoader =
36
- /*#__PURE__*/
37
- function () {
38
- function DataLoader(batchLoadFn, options) {
39
- if (typeof batchLoadFn !== 'function') {
40
- throw new TypeError('DataLoader must be constructed with a function which accepts ' + ("Array<key> and returns Promise<Array<value>>, but got: " + batchLoadFn + "."));
41
- }
42
-
43
- this._batchLoadFn = batchLoadFn;
44
- this._maxBatchSize = getValidMaxBatchSize(options);
45
- this._batchScheduleFn = getValidBatchScheduleFn(options);
46
- this._cacheKeyFn = getValidCacheKeyFn(options);
47
- this._cacheMap = getValidCacheMap(options);
48
- this._batch = null;
49
- } // Private
50
-
51
-
52
- var _proto = DataLoader.prototype;
53
-
54
- /**
55
- * Loads a key, returning a `Promise` for the value represented by that key.
56
- */
57
- _proto.load = function load(key) {
58
- if (key === null || key === undefined) {
59
- throw new TypeError('The loader.load() function must be called with a value, ' + ("but got: " + String(key) + "."));
60
- }
61
-
62
- var batch = getCurrentBatch(this);
63
- var cacheMap = this._cacheMap;
64
-
65
- var cacheKey = this._cacheKeyFn(key); // If caching and there is a cache-hit, return cached Promise.
66
-
67
-
68
- if (cacheMap) {
69
- var cachedPromise = cacheMap.get(cacheKey);
70
-
71
- if (cachedPromise) {
72
- var cacheHits = batch.cacheHits || (batch.cacheHits = []);
73
- return new Promise(function (resolve) {
74
- cacheHits.push(function () {
75
- resolve(cachedPromise);
76
- });
77
- });
78
- }
79
- } // Otherwise, produce a new Promise for this key, and enqueue it to be
80
- // dispatched along with the current batch.
81
-
82
-
83
- batch.keys.push(key);
84
- var promise = new Promise(function (resolve, reject) {
85
- batch.callbacks.push({
86
- resolve: resolve,
87
- reject: reject
88
- });
89
- }); // If caching, cache this promise.
90
-
91
- if (cacheMap) {
92
- cacheMap.set(cacheKey, promise);
93
- }
94
-
95
- return promise;
96
- }
97
- /**
98
- * Loads multiple keys, promising an array of values:
99
- *
100
- * var [ a, b ] = await myLoader.loadMany([ 'a', 'b' ]);
101
- *
102
- * This is similar to the more verbose:
103
- *
104
- * var [ a, b ] = await Promise.all([
105
- * myLoader.load('a'),
106
- * myLoader.load('b')
107
- * ]);
108
- *
109
- * However it is different in the case where any load fails. Where
110
- * Promise.all() would reject, loadMany() always resolves, however each result
111
- * is either a value or an Error instance.
112
- *
113
- * var [ a, b, c ] = await myLoader.loadMany([ 'a', 'b', 'badkey' ]);
114
- * // c instanceof Error
115
- *
116
- */
117
- ;
118
-
119
- _proto.loadMany = function loadMany(keys) {
120
- if (!isArrayLike(keys)) {
121
- throw new TypeError('The loader.loadMany() function must be called with Array<key> ' + ("but got: " + keys + "."));
122
- } // Support ArrayLike by using only minimal property access
123
-
124
-
125
- var loadPromises = [];
126
-
127
- for (var i = 0; i < keys.length; i++) {
128
- loadPromises.push(this.load(keys[i])["catch"](function (error) {
129
- return error;
130
- }));
131
- }
132
-
133
- return Promise.all(loadPromises);
134
- }
135
- /**
136
- * Clears the value at `key` from the cache, if it exists. Returns itself for
137
- * method chaining.
138
- */
139
- ;
140
-
141
- _proto.clear = function clear(key) {
142
- var cacheMap = this._cacheMap;
143
-
144
- if (cacheMap) {
145
- var cacheKey = this._cacheKeyFn(key);
146
-
147
- cacheMap["delete"](cacheKey);
148
- }
149
-
150
- return this;
151
- }
152
- /**
153
- * Clears the entire cache. To be used when some event results in unknown
154
- * invalidations across this particular `DataLoader`. Returns itself for
155
- * method chaining.
156
- */
157
- ;
158
-
159
- _proto.clearAll = function clearAll() {
160
- var cacheMap = this._cacheMap;
161
-
162
- if (cacheMap) {
163
- cacheMap.clear();
164
- }
165
-
166
- return this;
167
- }
168
- /**
169
- * Adds the provided key and value to the cache. If the key already
170
- * exists, no change is made. Returns itself for method chaining.
171
- *
172
- * To prime the cache with an error at a key, provide an Error instance.
173
- */
174
- ;
175
-
176
- _proto.prime = function prime(key, value) {
177
- var cacheMap = this._cacheMap;
178
-
179
- if (cacheMap) {
180
- var cacheKey = this._cacheKeyFn(key); // Only add the key if it does not already exist.
181
-
182
-
183
- if (cacheMap.get(cacheKey) === undefined) {
184
- // Cache a rejected promise if the value is an Error, in order to match
185
- // the behavior of load(key).
186
- var promise;
187
-
188
- if (value instanceof Error) {
189
- promise = Promise.reject(value); // Since this is a case where an Error is intentionally being primed
190
- // for a given key, we want to disable unhandled promise rejection.
191
-
192
- promise["catch"](function () {});
193
- } else {
194
- promise = Promise.resolve(value);
195
- }
196
-
197
- cacheMap.set(cacheKey, promise);
198
- }
199
- }
200
-
201
- return this;
202
- };
203
-
204
- return DataLoader;
205
- }(); // Private: Enqueue a Job to be executed after all "PromiseJobs" Jobs.
206
- //
207
- // ES6 JavaScript uses the concepts Job and JobQueue to schedule work to occur
208
- // after the current execution context has completed:
209
- // http://www.ecma-international.org/ecma-262/6.0/#sec-jobs-and-job-queues
210
- //
211
- // Node.js uses the `process.nextTick` mechanism to implement the concept of a
212
- // Job, maintaining a global FIFO JobQueue for all Jobs, which is flushed after
213
- // the current call stack ends.
214
- //
215
- // When calling `then` on a Promise, it enqueues a Job on a specific
216
- // "PromiseJobs" JobQueue which is flushed in Node as a single Job on the
217
- // global JobQueue.
218
- //
219
- // DataLoader batches all loads which occur in a single frame of execution, but
220
- // should include in the batch all loads which occur during the flushing of the
221
- // "PromiseJobs" JobQueue after that same execution frame.
222
- //
223
- // In order to avoid the DataLoader dispatch Job occuring before "PromiseJobs",
224
- // A Promise Job is created with the sole purpose of enqueuing a global Job,
225
- // ensuring that it always occurs after "PromiseJobs" ends.
226
- //
227
- // Node.js's job queue is unique. Browsers do not have an equivalent mechanism
228
- // for enqueuing a job to be performed after promise microtasks and before the
229
- // next macrotask. For browser environments, a macrotask is used (via
230
- // setImmediate or setTimeout) at a potential performance penalty.
231
-
232
-
233
- var enqueuePostPromiseJob = typeof process === 'object' && typeof process.nextTick === 'function' ? function (fn) {
234
- if (!resolvedPromise) {
235
- resolvedPromise = Promise.resolve();
236
- }
237
-
238
- resolvedPromise.then(function () {
239
- process.nextTick(fn);
240
- });
241
- } : typeof setImmediate === 'function' ? function (fn) {
242
- setImmediate(fn);
243
- } : function (fn) {
244
- setTimeout(fn);
245
- }; // Private: cached resolved Promise instance
246
-
247
- var resolvedPromise; // Private: Describes a batch of requests
248
-
249
- // Private: Either returns the current batch, or creates and schedules a
250
- // dispatch of a new batch for the given loader.
251
- function getCurrentBatch(loader) {
252
- // If there is an existing batch which has not yet dispatched and is within
253
- // the limit of the batch size, then return it.
254
- var existingBatch = loader._batch;
255
-
256
- if (existingBatch !== null && !existingBatch.hasDispatched && existingBatch.keys.length < loader._maxBatchSize && (!existingBatch.cacheHits || existingBatch.cacheHits.length < loader._maxBatchSize)) {
257
- return existingBatch;
258
- } // Otherwise, create a new batch for this loader.
259
-
260
-
261
- var newBatch = {
262
- hasDispatched: false,
263
- keys: [],
264
- callbacks: []
265
- }; // Store it on the loader so it may be reused.
266
-
267
- loader._batch = newBatch; // Then schedule a task to dispatch this batch of requests.
268
-
269
- loader._batchScheduleFn(function () {
270
- dispatchBatch(loader, newBatch);
271
- });
272
-
273
- return newBatch;
274
- }
275
-
276
- function dispatchBatch(loader, batch) {
277
- // Mark this batch as having been dispatched.
278
- batch.hasDispatched = true; // If there's nothing to load, resolve any cache hits and return early.
279
-
280
- if (batch.keys.length === 0) {
281
- resolveCacheHits(batch);
282
- return;
283
- } // Call the provided batchLoadFn for this loader with the batch's keys and
284
- // with the loader as the `this` context.
285
-
286
-
287
- var batchPromise = loader._batchLoadFn(batch.keys); // Assert the expected response from batchLoadFn
288
-
289
-
290
- if (!batchPromise || typeof batchPromise.then !== 'function') {
291
- return failedDispatch(loader, batch, new TypeError('DataLoader must be constructed with a function which accepts ' + 'Array<key> and returns Promise<Array<value>>, but the function did ' + ("not return a Promise: " + String(batchPromise) + ".")));
292
- } // Await the resolution of the call to batchLoadFn.
293
-
294
-
295
- batchPromise.then(function (values) {
296
- // Assert the expected resolution from batchLoadFn.
297
- if (!isArrayLike(values)) {
298
- throw new TypeError('DataLoader must be constructed with a function which accepts ' + 'Array<key> and returns Promise<Array<value>>, but the function did ' + ("not return a Promise of an Array: " + String(values) + "."));
299
- }
300
-
301
- if (values.length !== batch.keys.length) {
302
- throw new TypeError('DataLoader must be constructed with a function which accepts ' + 'Array<key> and returns Promise<Array<value>>, but the function did ' + 'not return a Promise of an Array of the same length as the Array ' + 'of keys.' + ("\n\nKeys:\n" + String(batch.keys)) + ("\n\nValues:\n" + String(values)));
303
- } // Resolve all cache hits in the same micro-task as freshly loaded values.
304
-
305
-
306
- resolveCacheHits(batch); // Step through values, resolving or rejecting each Promise in the batch.
307
-
308
- for (var i = 0; i < batch.callbacks.length; i++) {
309
- var value = values[i];
310
-
311
- if (value instanceof Error) {
312
- batch.callbacks[i].reject(value);
313
- } else {
314
- batch.callbacks[i].resolve(value);
315
- }
316
- }
317
- })["catch"](function (error) {
318
- failedDispatch(loader, batch, error);
319
- });
320
- } // Private: do not cache individual loads if the entire batch dispatch fails,
321
- // but still reject each request so they do not hang.
322
-
323
-
324
- function failedDispatch(loader, batch, error) {
325
- // Cache hits are resolved, even though the batch failed.
326
- resolveCacheHits(batch);
327
-
328
- for (var i = 0; i < batch.keys.length; i++) {
329
- loader.clear(batch.keys[i]);
330
- batch.callbacks[i].reject(error);
331
- }
332
- } // Private: Resolves the Promises for any cache hits in this batch.
333
-
334
-
335
- function resolveCacheHits(batch) {
336
- if (batch.cacheHits) {
337
- for (var i = 0; i < batch.cacheHits.length; i++) {
338
- batch.cacheHits[i]();
339
- }
340
- }
341
- } // Private: given the DataLoader's options, produce a valid max batch size.
342
-
343
-
344
- function getValidMaxBatchSize(options) {
345
- var shouldBatch = !options || options.batch !== false;
346
-
347
- if (!shouldBatch) {
348
- return 1;
349
- }
350
-
351
- var maxBatchSize = options && options.maxBatchSize;
352
-
353
- if (maxBatchSize === undefined) {
354
- return Infinity;
355
- }
356
-
357
- if (typeof maxBatchSize !== 'number' || maxBatchSize < 1) {
358
- throw new TypeError("maxBatchSize must be a positive number: " + maxBatchSize);
359
- }
360
-
361
- return maxBatchSize;
362
- } // Private
363
-
364
-
365
- function getValidBatchScheduleFn(options) {
366
- var batchScheduleFn = options && options.batchScheduleFn;
367
-
368
- if (batchScheduleFn === undefined) {
369
- return enqueuePostPromiseJob;
370
- }
371
-
372
- if (typeof batchScheduleFn !== 'function') {
373
- throw new TypeError("batchScheduleFn must be a function: " + batchScheduleFn);
374
- }
375
-
376
- return batchScheduleFn;
377
- } // Private: given the DataLoader's options, produce a cache key function.
378
-
379
-
380
- function getValidCacheKeyFn(options) {
381
- var cacheKeyFn = options && options.cacheKeyFn;
382
-
383
- if (cacheKeyFn === undefined) {
384
- return function (key) {
385
- return key;
386
- };
387
- }
388
-
389
- if (typeof cacheKeyFn !== 'function') {
390
- throw new TypeError("cacheKeyFn must be a function: " + cacheKeyFn);
391
- }
392
-
393
- return cacheKeyFn;
394
- } // Private: given the DataLoader's options, produce a CacheMap to be used.
395
-
396
-
397
- function getValidCacheMap(options) {
398
- var shouldCache = !options || options.cache !== false;
399
-
400
- if (!shouldCache) {
401
- return null;
402
- }
403
-
404
- var cacheMap = options && options.cacheMap;
405
-
406
- if (cacheMap === undefined) {
407
- return new Map();
408
- }
409
-
410
- if (cacheMap !== null) {
411
- var cacheFunctions = ['get', 'set', 'delete', 'clear'];
412
- var missingFunctions = cacheFunctions.filter(function (fnName) {
413
- return cacheMap && typeof cacheMap[fnName] !== 'function';
414
- });
415
-
416
- if (missingFunctions.length !== 0) {
417
- throw new TypeError('Custom cacheMap missing methods: ' + missingFunctions.join(', '));
418
- }
419
- }
420
-
421
- return cacheMap;
422
- } // Private
423
-
424
-
425
- function isArrayLike(x) {
426
- return typeof x === 'object' && x !== null && typeof x.length === 'number' && (x.length === 0 || x.length > 0 && Object.prototype.hasOwnProperty.call(x, x.length - 1));
427
- }
428
-
429
- module.exports = DataLoader;
430
-
431
- /***/ })
432
-
433
- };
434
- ;
1
+ "use strict";exports.id=57,exports.ids=[57],exports.modules={3057:e=>{var t,r=function(){function DataLoader(e,t){if("function"!=typeof e)throw TypeError("DataLoader must be constructed with a function which accepts Array<key> and returns Promise<Array<value>>, but got: "+e+".");this._batchLoadFn=e,this._maxBatchSize=function(e){if(!(!e||!1!==e.batch))return 1;var t=e&&e.maxBatchSize;if(void 0===t)return 1/0;if("number"!=typeof t||t<1)throw TypeError("maxBatchSize must be a positive number: "+t);return t}(t),this._batchScheduleFn=function(e){var t=e&&e.batchScheduleFn;if(void 0===t)return n;if("function"!=typeof t)throw TypeError("batchScheduleFn must be a function: "+t);return t}(t),this._cacheKeyFn=function(e){var t=e&&e.cacheKeyFn;if(void 0===t)return function(e){return e};if("function"!=typeof t)throw TypeError("cacheKeyFn must be a function: "+t);return t}(t),this._cacheMap=function(e){if(!(!e||!1!==e.cache))return null;var t=e&&e.cacheMap;if(void 0===t)return new Map;if(null!==t){var r=["get","set","delete","clear"].filter(function(e){return t&&"function"!=typeof t[e]});if(0!==r.length)throw TypeError("Custom cacheMap missing methods: "+r.join(", "))}return t}(t),this._batch=null}var e=DataLoader.prototype;return e.load=function(e){if(null==e)throw TypeError("The loader.load() function must be called with a value, but got: "+String(e)+".");var t=function(e){var t=e._batch;if(null!==t&&!t.hasDispatched&&t.keys.length<e._maxBatchSize&&(!t.cacheHits||t.cacheHits.length<e._maxBatchSize))return t;var r={hasDispatched:!1,keys:[],callbacks:[]};return e._batch=r,e._batchScheduleFn(function(){(function(e,t){if(t.hasDispatched=!0,0===t.keys.length){resolveCacheHits(t);return}var r=e._batchLoadFn(t.keys);if(!r||"function"!=typeof r.then)return failedDispatch(e,t,TypeError("DataLoader must be constructed with a function which accepts Array<key> and returns Promise<Array<value>>, but the function did not return a Promise: "+String(r)+"."));r.then(function(e){if(!isArrayLike(e))throw TypeError("DataLoader must be constructed with a function which accepts Array<key> and returns Promise<Array<value>>, but the function did not return a Promise of an Array: "+String(e)+".");if(e.length!==t.keys.length)throw TypeError("DataLoader must be constructed with a function which accepts Array<key> and returns Promise<Array<value>>, but the function did not return a Promise of an Array of the same length as the Array of keys.\n\nKeys:\n"+String(t.keys)+"\n\nValues:\n"+String(e));resolveCacheHits(t);for(var r=0;r<t.callbacks.length;r++){var n=e[r];n instanceof Error?t.callbacks[r].reject(n):t.callbacks[r].resolve(n)}}).catch(function(r){failedDispatch(e,t,r)})})(e,r)}),r}(this),r=this._cacheMap,n=this._cacheKeyFn(e);if(r){var a=r.get(n);if(a){var c=t.cacheHits||(t.cacheHits=[]);return new Promise(function(e){c.push(function(){e(a)})})}}t.keys.push(e);var i=new Promise(function(e,r){t.callbacks.push({resolve:e,reject:r})});return r&&r.set(n,i),i},e.loadMany=function(e){if(!isArrayLike(e))throw TypeError("The loader.loadMany() function must be called with Array<key> but got: "+e+".");for(var t=[],r=0;r<e.length;r++)t.push(this.load(e[r]).catch(function(e){return e}));return Promise.all(t)},e.clear=function(e){var t=this._cacheMap;if(t){var r=this._cacheKeyFn(e);t.delete(r)}return this},e.clearAll=function(){var e=this._cacheMap;return e&&e.clear(),this},e.prime=function(e,t){var r=this._cacheMap;if(r){var n,a=this._cacheKeyFn(e);void 0===r.get(a)&&(t instanceof Error?(n=Promise.reject(t)).catch(function(){}):n=Promise.resolve(t),r.set(a,n))}return this},DataLoader}(),n="object"==typeof process&&"function"==typeof process.nextTick?function(e){t||(t=Promise.resolve()),t.then(function(){process.nextTick(e)})}:"function"==typeof setImmediate?function(e){setImmediate(e)}:function(e){setTimeout(e)};function failedDispatch(e,t,r){resolveCacheHits(t);for(var n=0;n<t.keys.length;n++)e.clear(t.keys[n]),t.callbacks[n].reject(r)}function resolveCacheHits(e){if(e.cacheHits)for(var t=0;t<e.cacheHits.length;t++)e.cacheHits[t]()}function isArrayLike(e){return"object"==typeof e&&null!==e&&"number"==typeof e.length&&(0===e.length||e.length>0&&Object.prototype.hasOwnProperty.call(e,e.length-1))}e.exports=r}};
@@ -0,0 +1 @@
1
+ exports.id=624,exports.ids=[624],exports.modules={7624:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>search_Filter_FilterSlider});var l=r(3221),a=r(6689),n=r.n(a),i=r(3666),o=r(6652),s=r(7215),c=r(5049),d=r(3339);let Filter_FilterSlider=function({title:e,size:t,direction:r,children:l,applyBtnProps:a,clearBtnProps:p,overlayProps:y,onClose:f,...b}){let{fade:u,fadeOut:m}=(0,i.b)(),{closeFilter:j}=(0,o.l)();return n().createElement(s.Z,{"data-fs-filter-slider":!0,isOpen:!0,fade:u,onDismiss:m,size:t,direction:r,onTransitionEnd:()=>"out"===u&&j(),overlayProps:y,...b},n().createElement("div",{"data-fs-filter-slider-content":!0},n().createElement(c.Z,{onClose:()=>{f(),m()}},n().createElement("h2",{"data-fs-filter-slider-title":!0},e)),l),n().createElement("footer",{"data-fs-filter-slider-footer":!0},n().createElement(d.Z,{"data-fs-filter-slider-footer-button-clear":!0,...p}),n().createElement(d.Z,{"data-fs-filter-slider-footer-button-apply":!0,"data-testid":"filter-slider-button-apply",...a,onClick:e=>{a?.onClick?.(e),m()}})))};var p=r(5699),y=r(4199),f=r(2815),b=r(1305),u=r(1355),m=r(113),j=r(6034),O=r.n(j),g=r(997);function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,l)}return r}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach(function(t){var l;l=r[t],t in e?Object.defineProperty(e,t,{value:l,enumerable:!0,configurable:!0,writable:!0}):e[t]=l}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let search_Filter_FilterSlider=function({facets:e,testId:t,dispatch:r,expanded:a,selected:n,title:i,clearButtonLabel:o,applyButtonLabel:s}){let{resetInfiniteScroll:c,setState:d,state:j}=(0,l.R)();return g.jsx(Filter_FilterSlider,{overlayProps:{className:`section ${O().section} section-filter-slider`},title:i,size:"partial",direction:"rightSide",clearBtnProps:{variant:"secondary",onClick:()=>r({type:"selectFacets",payload:[]}),children:o??"Clear All"},applyBtnProps:{variant:"primary",onClick:()=>{c(0),d(_objectSpread(_objectSpread({},j),{},{selectedFacets:n,page:0}))},children:s??"Apply"},onClose:()=>{r({type:"selectFacets",payload:j.selectedFacets})},children:g.jsx(p.Z,{testId:`mobile-${t}`,indicesExpanded:a,onAccordionChange:e=>r({type:"toggleExpanded",payload:e}),children:e.map((e,l)=>{let{__typename:n,label:i}=e,o=a.has(l);return(0,g.jsxs)(y.Z,{testId:`mobile-${t}`,index:l,type:n,label:i,children:["StoreFacetBoolean"===n&&o&&g.jsx(f.Z,{children:e.values.map(l=>g.jsx(b.Z,{id:`${t}-${e.label}-${l.label}`,testId:`mobile-${t}`,onFacetChange:e=>r({type:"toggleFacet",payload:e}),selected:l.selected,value:l.value,quantity:l.quantity,facetKey:e.key,label:l.label},`${t}-${e.label}-${l.label}`))}),"StoreFacetRange"===n&&o&&g.jsx(u.Z,{facetKey:e.key,min:e.min,max:e.max,formatter:m.P,onFacetChange:e=>r({type:"setFacet",payload:{facet:e,unique:!0}})})]},`${t}-${i}-${l}`)})})})}},6034:e=>{e.exports={section:"section_section__KcoCT"}}};