@faststore/core 2.2.42 → 2.2.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.next/BUILD_ID +1 -1
- package/.next/build-manifest.json +2 -2
- package/.next/cache/.tsbuildinfo +1 -1
- package/.next/cache/config.json +3 -3
- package/.next/cache/eslint/.cache_1gneedd +1 -1
- package/.next/cache/next-server.js.nft.json +1 -1
- package/.next/cache/webpack/client-production/0.pack +0 -0
- package/.next/cache/webpack/client-production/index.pack +0 -0
- package/.next/cache/webpack/server-production/0.pack +0 -0
- package/.next/cache/webpack/server-production/index.pack +0 -0
- package/.next/next-server.js.nft.json +1 -1
- package/.next/prerender-manifest.json +1 -1
- package/.next/routes-manifest.json +1 -1
- package/.next/server/chunks/117.js +1 -1
- package/.next/server/chunks/312.js +4 -4
- package/.next/server/chunks/350.js +2650 -16
- package/.next/server/chunks/390.js +1 -1
- package/.next/server/chunks/404.js +434 -0
- package/.next/server/chunks/57.js +434 -0
- package/.next/server/chunks/732.js +3 -3
- package/.next/server/chunks/74.js +5 -5
- package/.next/server/chunks/988.js +1 -1
- package/.next/server/middleware-build-manifest.js +1 -1
- package/.next/server/pages/[...slug].js +13 -21
- package/.next/server/pages/[...slug].js.nft.json +1 -1
- package/.next/server/pages/[slug]/p.js +15 -23
- package/.next/server/pages/[slug]/p.js.nft.json +1 -1
- package/.next/server/pages/api/graphql.js +2631 -96
- package/.next/server/pages/api/graphql.js.nft.json +1 -1
- package/.next/server/pages/en-US/404.html +2 -2
- package/.next/server/pages/en-US/500.html +2 -2
- package/.next/server/pages/en-US/account.html +2 -2
- package/.next/server/pages/en-US/checkout.html +2 -2
- package/.next/server/pages/en-US/login.html +2 -2
- package/.next/server/pages/en-US/s.html +2 -2
- package/.next/server/pages/en-US.html +2 -2
- package/.next/server/pages-manifest.json +2 -2
- package/.next/trace +80 -78
- package/.turbo/turbo-build.log +1 -1
- package/.turbo/turbo-test.log +11 -16
- package/package.json +20 -16
- package/.next/server/chunks/52.js +0 -4007
- package/.next/server/chunks/817.js +0 -4007
- /package/.next/static/{A0luZO19pCRpHHJjixWd9 → MJDhrWnxP4OY6Sz-u3PEu}/_buildManifest.js +0 -0
- /package/.next/static/{A0luZO19pCRpHHJjixWd9 → MJDhrWnxP4OY6Sz-u3PEu}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,434 @@
|
|
|
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
|
+
;
|
|
@@ -283,7 +283,7 @@ function FilterFacetRange({ min, max, formatter, facetKey, onFacetChange, }) {
|
|
|
283
283
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
284
284
|
/* harmony import */ var ___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(783);
|
|
285
285
|
/* harmony import */ var ___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7734);
|
|
286
|
-
/* harmony import */ var ___WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
|
|
286
|
+
/* harmony import */ var ___WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(7583);
|
|
287
287
|
|
|
288
288
|
|
|
289
289
|
function FilterFacets({ testId, label, index, children, type, }) {
|
|
@@ -833,7 +833,7 @@ __webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __we
|
|
|
833
833
|
/* harmony export */ "Z": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
834
834
|
/* harmony export */ });
|
|
835
835
|
/* harmony import */ var src_sdk_tests_mark__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(2541);
|
|
836
|
-
/* harmony import */ var src_components_ui_ProductGallery_ProductGallery__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
|
|
836
|
+
/* harmony import */ var src_components_ui_ProductGallery_ProductGallery__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(5333);
|
|
837
837
|
/* harmony import */ var _Section__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(3271);
|
|
838
838
|
/* harmony import */ var _EmptyGallery__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(5878);
|
|
839
839
|
/* harmony import */ var _section_module_scss__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(4614);
|
|
@@ -992,7 +992,7 @@ function ProductGridSkeleton({
|
|
|
992
992
|
|
|
993
993
|
/***/ }),
|
|
994
994
|
|
|
995
|
-
/***/
|
|
995
|
+
/***/ 5333:
|
|
996
996
|
/***/ ((module, __webpack_exports__, __webpack_require__) => {
|
|
997
997
|
|
|
998
998
|
"use strict";
|
|
@@ -92,7 +92,7 @@ const Input = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function Input({
|
|
|
92
92
|
|
|
93
93
|
/***/ }),
|
|
94
94
|
|
|
95
|
-
/***/
|
|
95
|
+
/***/ 727:
|
|
96
96
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
97
97
|
|
|
98
98
|
"use strict";
|
|
@@ -356,7 +356,7 @@ function useAccordionItem() {
|
|
|
356
356
|
|
|
357
357
|
/***/ }),
|
|
358
358
|
|
|
359
|
-
/***/
|
|
359
|
+
/***/ 7583:
|
|
360
360
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
361
361
|
|
|
362
362
|
"use strict";
|
|
@@ -389,7 +389,7 @@ const AccordionPanel = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(functio
|
|
|
389
389
|
/* harmony export */ });
|
|
390
390
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6689);
|
|
391
391
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
392
|
-
/* harmony import */ var ___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
392
|
+
/* harmony import */ var ___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(727);
|
|
393
393
|
/* harmony import */ var ___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7041);
|
|
394
394
|
/* harmony import */ var ___WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(2614);
|
|
395
395
|
|
|
@@ -2044,7 +2044,7 @@ var AccordionItem = __webpack_require__(783);
|
|
|
2044
2044
|
// EXTERNAL MODULE: ../components/dist/esm/molecules/Accordion/AccordionButton.js
|
|
2045
2045
|
var AccordionButton = __webpack_require__(7734);
|
|
2046
2046
|
// EXTERNAL MODULE: ../components/dist/esm/molecules/Accordion/AccordionPanel.js
|
|
2047
|
-
var AccordionPanel = __webpack_require__(
|
|
2047
|
+
var AccordionPanel = __webpack_require__(7583);
|
|
2048
2048
|
// EXTERNAL MODULE: ./src/components/ui/Link/Link.tsx
|
|
2049
2049
|
var Link = __webpack_require__(7058);
|
|
2050
2050
|
;// CONCATENATED MODULE: ./src/components/common/Footer/FooterLinks.tsx
|
|
@@ -2876,7 +2876,7 @@ function Incentives({
|
|
|
2876
2876
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
2877
2877
|
/* harmony import */ var next_link__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1664);
|
|
2878
2878
|
/* harmony import */ var next_link__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(next_link__WEBPACK_IMPORTED_MODULE_1__);
|
|
2879
|
-
/* harmony import */ var _faststore_ui__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
|
|
2879
|
+
/* harmony import */ var _faststore_ui__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(727);
|
|
2880
2880
|
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(997);
|
|
2881
2881
|
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__);
|
|
2882
2882
|
const _excluded = ["href", "inverse", "children", "variant"];
|
|
@@ -45,7 +45,7 @@ const ModalBody = ({ children, ...otherProps }) => (external_react_default().cre
|
|
|
45
45
|
// EXTERNAL MODULE: ../components/dist/esm/molecules/InputField/InputField.js
|
|
46
46
|
var InputField = __webpack_require__(3779);
|
|
47
47
|
// EXTERNAL MODULE: ../components/dist/esm/atoms/Link/Link.js
|
|
48
|
-
var Link = __webpack_require__(
|
|
48
|
+
var Link = __webpack_require__(727);
|
|
49
49
|
;// CONCATENATED MODULE: ../components/dist/esm/organisms/RegionModal/RegionModal.js
|
|
50
50
|
|
|
51
51
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
self.__BUILD_MANIFEST={polyfillFiles:["static/chunks/polyfills-c67a75d1b6f99dc8.js"],devFiles:[],ampDevFiles:[],lowPriorityFiles:["static/
|
|
1
|
+
self.__BUILD_MANIFEST={polyfillFiles:["static/chunks/polyfills-c67a75d1b6f99dc8.js"],devFiles:[],ampDevFiles:[],lowPriorityFiles:["static/MJDhrWnxP4OY6Sz-u3PEu/_buildManifest.js","static/MJDhrWnxP4OY6Sz-u3PEu/_ssgManifest.js"],rootMainFiles:[],pages:{"/":["static/chunks/webpack-4ccaf6613cbd7224.js","static/chunks/framework-dfd14d7ce6600b03.js","static/chunks/main-e4e873ee741162eb.js","static/chunks/223-cb77217cce52d45c.js","static/css/29868543c76bc6fd.css","static/chunks/469-7259b855711d4ad3.js","static/css/dfbdb0f27fd64782.css","static/chunks/783-fbcb7a3216c40744.js","static/css/a2eefb25a4608343.css","static/chunks/pages/index-2506749e45c335bf.js"],"/404":["static/chunks/webpack-4ccaf6613cbd7224.js","static/chunks/framework-dfd14d7ce6600b03.js","static/chunks/main-e4e873ee741162eb.js","static/chunks/223-cb77217cce52d45c.js","static/css/29868543c76bc6fd.css","static/chunks/469-7259b855711d4ad3.js","static/css/df588bb98c0b0ca6.css","static/chunks/pages/404-2240f0b22db2d370.js"],"/500":["static/chunks/webpack-4ccaf6613cbd7224.js","static/chunks/framework-dfd14d7ce6600b03.js","static/chunks/main-e4e873ee741162eb.js","static/chunks/223-cb77217cce52d45c.js","static/css/29868543c76bc6fd.css","static/chunks/469-7259b855711d4ad3.js","static/css/df588bb98c0b0ca6.css","static/chunks/pages/500-c0580e3299329874.js"],"/[...slug]":["static/chunks/webpack-4ccaf6613cbd7224.js","static/chunks/framework-dfd14d7ce6600b03.js","static/chunks/main-e4e873ee741162eb.js","static/chunks/223-cb77217cce52d45c.js","static/css/29868543c76bc6fd.css","static/chunks/469-7259b855711d4ad3.js","static/css/dfbdb0f27fd64782.css","static/chunks/783-fbcb7a3216c40744.js","static/css/723835bce380750d.css","static/chunks/400-d4daabcd57b2ea80.js","static/css/a2eefb25a4608343.css","static/css/527e334fa69cf40a.css","static/chunks/pages/[...slug]-3eed3497c887fae5.js"],"/[slug]/p":["static/chunks/webpack-4ccaf6613cbd7224.js","static/chunks/framework-dfd14d7ce6600b03.js","static/chunks/main-e4e873ee741162eb.js","static/chunks/223-cb77217cce52d45c.js","static/css/29868543c76bc6fd.css","static/chunks/469-7259b855711d4ad3.js","static/css/dfbdb0f27fd64782.css","static/chunks/783-fbcb7a3216c40744.js","static/css/d7bbfbd552f407e9.css","static/chunks/pages/[slug]/p-e1df08570f34a0d8.js"],"/_app":["static/chunks/webpack-4ccaf6613cbd7224.js","static/chunks/framework-dfd14d7ce6600b03.js","static/chunks/main-e4e873ee741162eb.js","static/css/5d1f64b61ea581f4.css","static/chunks/pages/_app-30b9666307e4b3b1.js"],"/_error":["static/chunks/webpack-4ccaf6613cbd7224.js","static/chunks/framework-dfd14d7ce6600b03.js","static/chunks/main-e4e873ee741162eb.js","static/chunks/pages/_error-319451dea77827a6.js"],"/account":["static/chunks/webpack-4ccaf6613cbd7224.js","static/chunks/framework-dfd14d7ce6600b03.js","static/chunks/main-e4e873ee741162eb.js","static/chunks/223-cb77217cce52d45c.js","static/css/29868543c76bc6fd.css","static/chunks/469-7259b855711d4ad3.js","static/chunks/pages/account-b35bcbef719765f3.js"],"/checkout":["static/chunks/webpack-4ccaf6613cbd7224.js","static/chunks/framework-dfd14d7ce6600b03.js","static/chunks/main-e4e873ee741162eb.js","static/chunks/223-cb77217cce52d45c.js","static/css/29868543c76bc6fd.css","static/chunks/469-7259b855711d4ad3.js","static/chunks/pages/checkout-55bd56ade4408cbe.js"],"/login":["static/chunks/webpack-4ccaf6613cbd7224.js","static/chunks/framework-dfd14d7ce6600b03.js","static/chunks/main-e4e873ee741162eb.js","static/chunks/223-cb77217cce52d45c.js","static/css/29868543c76bc6fd.css","static/chunks/469-7259b855711d4ad3.js","static/css/df588bb98c0b0ca6.css","static/chunks/pages/login-3f94bff1503b4fdc.js"],"/s":["static/chunks/webpack-4ccaf6613cbd7224.js","static/chunks/framework-dfd14d7ce6600b03.js","static/chunks/main-e4e873ee741162eb.js","static/chunks/223-cb77217cce52d45c.js","static/css/29868543c76bc6fd.css","static/chunks/469-7259b855711d4ad3.js","static/css/723835bce380750d.css","static/chunks/400-d4daabcd57b2ea80.js","static/chunks/pages/s-2374cff2e39ed624.js"]},ampFirstPages:[]};
|
|
@@ -414,7 +414,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
414
414
|
/* harmony export */ "getStaticPaths": () => (/* binding */ getStaticPaths),
|
|
415
415
|
/* harmony export */ "getStaticProps": () => (/* binding */ getStaticProps)
|
|
416
416
|
/* harmony export */ });
|
|
417
|
-
/* harmony import */ var _faststore_api__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
417
|
+
/* harmony import */ var _faststore_api__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7397);
|
|
418
418
|
/* harmony import */ var src_sdk_tests_mark__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(2541);
|
|
419
419
|
/* harmony import */ var src_server__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(9685);
|
|
420
420
|
/* harmony import */ var src_components_cms_GlobalSections__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4074);
|
|
@@ -423,8 +423,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
423
423
|
/* harmony import */ var src_components_templates_LandingPage__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(9769);
|
|
424
424
|
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(997);
|
|
425
425
|
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__);
|
|
426
|
-
var __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([src_components_cms_GlobalSections__WEBPACK_IMPORTED_MODULE_2__, src_components_templates_ProductListingPage__WEBPACK_IMPORTED_MODULE_3__, src_components_templates_LandingPage__WEBPACK_IMPORTED_MODULE_4__, src_server__WEBPACK_IMPORTED_MODULE_5__]);
|
|
427
|
-
([src_components_cms_GlobalSections__WEBPACK_IMPORTED_MODULE_2__, src_components_templates_ProductListingPage__WEBPACK_IMPORTED_MODULE_3__, src_components_templates_LandingPage__WEBPACK_IMPORTED_MODULE_4__, src_server__WEBPACK_IMPORTED_MODULE_5__] = __webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__);
|
|
426
|
+
var __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([_faststore_api__WEBPACK_IMPORTED_MODULE_0__, src_components_cms_GlobalSections__WEBPACK_IMPORTED_MODULE_2__, src_components_templates_ProductListingPage__WEBPACK_IMPORTED_MODULE_3__, src_components_templates_LandingPage__WEBPACK_IMPORTED_MODULE_4__, src_server__WEBPACK_IMPORTED_MODULE_5__]);
|
|
427
|
+
([_faststore_api__WEBPACK_IMPORTED_MODULE_0__, src_components_cms_GlobalSections__WEBPACK_IMPORTED_MODULE_2__, src_components_templates_ProductListingPage__WEBPACK_IMPORTED_MODULE_3__, src_components_templates_LandingPage__WEBPACK_IMPORTED_MODULE_4__, src_server__WEBPACK_IMPORTED_MODULE_5__] = __webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__);
|
|
428
428
|
const _excluded = ["globalSections", "type"];
|
|
429
429
|
|
|
430
430
|
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; }
|
|
@@ -488,7 +488,7 @@ const getStaticProps = async ({
|
|
|
488
488
|
}), (0,src_server_cms__WEBPACK_IMPORTED_MODULE_6__/* .getPage */ .f)(_objectSpread(_objectSpread({}, previewData?.contentType === 'plp' ? previewData : null), {}, {
|
|
489
489
|
contentType: 'plp'
|
|
490
490
|
}))]);
|
|
491
|
-
const notFound = errors.find(_faststore_api__WEBPACK_IMPORTED_MODULE_0__.isNotFoundError);
|
|
491
|
+
const notFound = errors.find(_faststore_api__WEBPACK_IMPORTED_MODULE_0__/* .isNotFoundError */ .XD);
|
|
492
492
|
|
|
493
493
|
if (notFound) {
|
|
494
494
|
return {
|
|
@@ -533,14 +533,6 @@ module.exports = {
|
|
|
533
533
|
};
|
|
534
534
|
|
|
535
535
|
|
|
536
|
-
/***/ }),
|
|
537
|
-
|
|
538
|
-
/***/ 1718:
|
|
539
|
-
/***/ ((module) => {
|
|
540
|
-
|
|
541
|
-
"use strict";
|
|
542
|
-
module.exports = require("@graphql-tools/utils");
|
|
543
|
-
|
|
544
536
|
/***/ }),
|
|
545
537
|
|
|
546
538
|
/***/ 4691:
|
|
@@ -991,14 +983,6 @@ module.exports = require("tabbable");
|
|
|
991
983
|
|
|
992
984
|
/***/ }),
|
|
993
985
|
|
|
994
|
-
/***/ 752:
|
|
995
|
-
/***/ ((module) => {
|
|
996
|
-
|
|
997
|
-
"use strict";
|
|
998
|
-
module.exports = require("tslib");
|
|
999
|
-
|
|
1000
|
-
/***/ }),
|
|
1001
|
-
|
|
1002
986
|
/***/ 9664:
|
|
1003
987
|
/***/ ((module) => {
|
|
1004
988
|
|
|
@@ -1047,6 +1031,14 @@ module.exports = import("@graphql-tools/schema");;
|
|
|
1047
1031
|
|
|
1048
1032
|
/***/ }),
|
|
1049
1033
|
|
|
1034
|
+
/***/ 8722:
|
|
1035
|
+
/***/ ((module) => {
|
|
1036
|
+
|
|
1037
|
+
"use strict";
|
|
1038
|
+
module.exports = import("@graphql-tools/utils");;
|
|
1039
|
+
|
|
1040
|
+
/***/ }),
|
|
1041
|
+
|
|
1050
1042
|
/***/ 7564:
|
|
1051
1043
|
/***/ ((module) => {
|
|
1052
1044
|
|
|
@@ -1078,7 +1070,7 @@ module.exports = require("crypto");
|
|
|
1078
1070
|
var __webpack_require__ = require("../webpack-runtime.js");
|
|
1079
1071
|
__webpack_require__.C(exports);
|
|
1080
1072
|
var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
|
|
1081
|
-
var __webpack_exports__ = __webpack_require__.X(0, [676,825,
|
|
1073
|
+
var __webpack_exports__ = __webpack_require__.X(0, [676,825,404,183,177,74,53,779,854,117,184,979,390,350,732,398], () => (__webpack_exec__(1875)));
|
|
1082
1074
|
module.exports = __webpack_exports__;
|
|
1083
1075
|
|
|
1084
1076
|
})();
|