@brytdesigns/shopify-ajax-cart-api 1.0.22 → 1.0.24
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/dist/effect/index.d.ts +32 -137
- package/dist/effect/schema.js +1 -56
- package/dist/effect/schema.js.map +1 -1
- package/dist/esm/index.js +41 -606
- package/dist/esm/index.js.map +1 -1
- package/dist/main/effect/schema.js +1 -56
- package/dist/main/effect/schema.js.map +1 -1
- package/dist/main/index.d.ts +68 -299
- package/package.json +1 -1
- package/dist/effect/cache.js +0 -39
- package/dist/effect/cache.js.map +0 -1
- package/dist/main/effect/cache.js +0 -39
- package/dist/main/effect/cache.js.map +0 -1
package/dist/esm/index.js
CHANGED
|
@@ -1,488 +1,8 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
1
|
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __commonJS = (cb, mod) => function __require() {
|
|
8
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
9
|
-
};
|
|
10
2
|
var __export = (target, all5) => {
|
|
11
3
|
for (var name in all5)
|
|
12
4
|
__defProp(target, name, { get: all5[name], enumerable: true });
|
|
13
5
|
};
|
|
14
|
-
var __copyProps = (to, from, except, desc) => {
|
|
15
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
16
|
-
for (let key of __getOwnPropNames(from))
|
|
17
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
18
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
19
|
-
}
|
|
20
|
-
return to;
|
|
21
|
-
};
|
|
22
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
23
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
24
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
25
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
26
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
27
|
-
__defProp(target, "default", { value: mod, enumerable: true }) ,
|
|
28
|
-
mod
|
|
29
|
-
));
|
|
30
|
-
|
|
31
|
-
// ../../../node_modules/.pnpm/lz-string@1.5.0/node_modules/lz-string/libs/lz-string.js
|
|
32
|
-
var require_lz_string = __commonJS({
|
|
33
|
-
"../../../node_modules/.pnpm/lz-string@1.5.0/node_modules/lz-string/libs/lz-string.js"(exports, module) {
|
|
34
|
-
var LZString = function() {
|
|
35
|
-
var f = String.fromCharCode;
|
|
36
|
-
var keyStrBase64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
|
|
37
|
-
var keyStrUriSafe = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$";
|
|
38
|
-
var baseReverseDic = {};
|
|
39
|
-
function getBaseValue(alphabet, character) {
|
|
40
|
-
if (!baseReverseDic[alphabet]) {
|
|
41
|
-
baseReverseDic[alphabet] = {};
|
|
42
|
-
for (var i = 0; i < alphabet.length; i++) {
|
|
43
|
-
baseReverseDic[alphabet][alphabet.charAt(i)] = i;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
return baseReverseDic[alphabet][character];
|
|
47
|
-
}
|
|
48
|
-
var LZString2 = {
|
|
49
|
-
compressToBase64: function(input) {
|
|
50
|
-
if (input == null) return "";
|
|
51
|
-
var res = LZString2._compress(input, 6, function(a) {
|
|
52
|
-
return keyStrBase64.charAt(a);
|
|
53
|
-
});
|
|
54
|
-
switch (res.length % 4) {
|
|
55
|
-
// To produce valid Base64
|
|
56
|
-
default:
|
|
57
|
-
// When could this happen ?
|
|
58
|
-
case 0:
|
|
59
|
-
return res;
|
|
60
|
-
case 1:
|
|
61
|
-
return res + "===";
|
|
62
|
-
case 2:
|
|
63
|
-
return res + "==";
|
|
64
|
-
case 3:
|
|
65
|
-
return res + "=";
|
|
66
|
-
}
|
|
67
|
-
},
|
|
68
|
-
decompressFromBase64: function(input) {
|
|
69
|
-
if (input == null) return "";
|
|
70
|
-
if (input == "") return null;
|
|
71
|
-
return LZString2._decompress(input.length, 32, function(index) {
|
|
72
|
-
return getBaseValue(keyStrBase64, input.charAt(index));
|
|
73
|
-
});
|
|
74
|
-
},
|
|
75
|
-
compressToUTF16: function(input) {
|
|
76
|
-
if (input == null) return "";
|
|
77
|
-
return LZString2._compress(input, 15, function(a) {
|
|
78
|
-
return f(a + 32);
|
|
79
|
-
}) + " ";
|
|
80
|
-
},
|
|
81
|
-
decompressFromUTF16: function(compressed) {
|
|
82
|
-
if (compressed == null) return "";
|
|
83
|
-
if (compressed == "") return null;
|
|
84
|
-
return LZString2._decompress(compressed.length, 16384, function(index) {
|
|
85
|
-
return compressed.charCodeAt(index) - 32;
|
|
86
|
-
});
|
|
87
|
-
},
|
|
88
|
-
//compress into uint8array (UCS-2 big endian format)
|
|
89
|
-
compressToUint8Array: function(uncompressed) {
|
|
90
|
-
var compressed = LZString2.compress(uncompressed);
|
|
91
|
-
var buf = new Uint8Array(compressed.length * 2);
|
|
92
|
-
for (var i = 0, TotalLen = compressed.length; i < TotalLen; i++) {
|
|
93
|
-
var current_value = compressed.charCodeAt(i);
|
|
94
|
-
buf[i * 2] = current_value >>> 8;
|
|
95
|
-
buf[i * 2 + 1] = current_value % 256;
|
|
96
|
-
}
|
|
97
|
-
return buf;
|
|
98
|
-
},
|
|
99
|
-
//decompress from uint8array (UCS-2 big endian format)
|
|
100
|
-
decompressFromUint8Array: function(compressed) {
|
|
101
|
-
if (compressed === null || compressed === void 0) {
|
|
102
|
-
return LZString2.decompress(compressed);
|
|
103
|
-
} else {
|
|
104
|
-
var buf = new Array(compressed.length / 2);
|
|
105
|
-
for (var i = 0, TotalLen = buf.length; i < TotalLen; i++) {
|
|
106
|
-
buf[i] = compressed[i * 2] * 256 + compressed[i * 2 + 1];
|
|
107
|
-
}
|
|
108
|
-
var result = [];
|
|
109
|
-
buf.forEach(function(c) {
|
|
110
|
-
result.push(f(c));
|
|
111
|
-
});
|
|
112
|
-
return LZString2.decompress(result.join(""));
|
|
113
|
-
}
|
|
114
|
-
},
|
|
115
|
-
//compress into a string that is already URI encoded
|
|
116
|
-
compressToEncodedURIComponent: function(input) {
|
|
117
|
-
if (input == null) return "";
|
|
118
|
-
return LZString2._compress(input, 6, function(a) {
|
|
119
|
-
return keyStrUriSafe.charAt(a);
|
|
120
|
-
});
|
|
121
|
-
},
|
|
122
|
-
//decompress from an output of compressToEncodedURIComponent
|
|
123
|
-
decompressFromEncodedURIComponent: function(input) {
|
|
124
|
-
if (input == null) return "";
|
|
125
|
-
if (input == "") return null;
|
|
126
|
-
input = input.replace(/ /g, "+");
|
|
127
|
-
return LZString2._decompress(input.length, 32, function(index) {
|
|
128
|
-
return getBaseValue(keyStrUriSafe, input.charAt(index));
|
|
129
|
-
});
|
|
130
|
-
},
|
|
131
|
-
compress: function(uncompressed) {
|
|
132
|
-
return LZString2._compress(uncompressed, 16, function(a) {
|
|
133
|
-
return f(a);
|
|
134
|
-
});
|
|
135
|
-
},
|
|
136
|
-
_compress: function(uncompressed, bitsPerChar, getCharFromInt) {
|
|
137
|
-
if (uncompressed == null) return "";
|
|
138
|
-
var i, value2, context_dictionary = {}, context_dictionaryToCreate = {}, context_c = "", context_wc = "", context_w = "", context_enlargeIn = 2, context_dictSize = 3, context_numBits = 2, context_data = [], context_data_val = 0, context_data_position = 0, ii;
|
|
139
|
-
for (ii = 0; ii < uncompressed.length; ii += 1) {
|
|
140
|
-
context_c = uncompressed.charAt(ii);
|
|
141
|
-
if (!Object.prototype.hasOwnProperty.call(context_dictionary, context_c)) {
|
|
142
|
-
context_dictionary[context_c] = context_dictSize++;
|
|
143
|
-
context_dictionaryToCreate[context_c] = true;
|
|
144
|
-
}
|
|
145
|
-
context_wc = context_w + context_c;
|
|
146
|
-
if (Object.prototype.hasOwnProperty.call(context_dictionary, context_wc)) {
|
|
147
|
-
context_w = context_wc;
|
|
148
|
-
} else {
|
|
149
|
-
if (Object.prototype.hasOwnProperty.call(context_dictionaryToCreate, context_w)) {
|
|
150
|
-
if (context_w.charCodeAt(0) < 256) {
|
|
151
|
-
for (i = 0; i < context_numBits; i++) {
|
|
152
|
-
context_data_val = context_data_val << 1;
|
|
153
|
-
if (context_data_position == bitsPerChar - 1) {
|
|
154
|
-
context_data_position = 0;
|
|
155
|
-
context_data.push(getCharFromInt(context_data_val));
|
|
156
|
-
context_data_val = 0;
|
|
157
|
-
} else {
|
|
158
|
-
context_data_position++;
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
value2 = context_w.charCodeAt(0);
|
|
162
|
-
for (i = 0; i < 8; i++) {
|
|
163
|
-
context_data_val = context_data_val << 1 | value2 & 1;
|
|
164
|
-
if (context_data_position == bitsPerChar - 1) {
|
|
165
|
-
context_data_position = 0;
|
|
166
|
-
context_data.push(getCharFromInt(context_data_val));
|
|
167
|
-
context_data_val = 0;
|
|
168
|
-
} else {
|
|
169
|
-
context_data_position++;
|
|
170
|
-
}
|
|
171
|
-
value2 = value2 >> 1;
|
|
172
|
-
}
|
|
173
|
-
} else {
|
|
174
|
-
value2 = 1;
|
|
175
|
-
for (i = 0; i < context_numBits; i++) {
|
|
176
|
-
context_data_val = context_data_val << 1 | value2;
|
|
177
|
-
if (context_data_position == bitsPerChar - 1) {
|
|
178
|
-
context_data_position = 0;
|
|
179
|
-
context_data.push(getCharFromInt(context_data_val));
|
|
180
|
-
context_data_val = 0;
|
|
181
|
-
} else {
|
|
182
|
-
context_data_position++;
|
|
183
|
-
}
|
|
184
|
-
value2 = 0;
|
|
185
|
-
}
|
|
186
|
-
value2 = context_w.charCodeAt(0);
|
|
187
|
-
for (i = 0; i < 16; i++) {
|
|
188
|
-
context_data_val = context_data_val << 1 | value2 & 1;
|
|
189
|
-
if (context_data_position == bitsPerChar - 1) {
|
|
190
|
-
context_data_position = 0;
|
|
191
|
-
context_data.push(getCharFromInt(context_data_val));
|
|
192
|
-
context_data_val = 0;
|
|
193
|
-
} else {
|
|
194
|
-
context_data_position++;
|
|
195
|
-
}
|
|
196
|
-
value2 = value2 >> 1;
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
context_enlargeIn--;
|
|
200
|
-
if (context_enlargeIn == 0) {
|
|
201
|
-
context_enlargeIn = Math.pow(2, context_numBits);
|
|
202
|
-
context_numBits++;
|
|
203
|
-
}
|
|
204
|
-
delete context_dictionaryToCreate[context_w];
|
|
205
|
-
} else {
|
|
206
|
-
value2 = context_dictionary[context_w];
|
|
207
|
-
for (i = 0; i < context_numBits; i++) {
|
|
208
|
-
context_data_val = context_data_val << 1 | value2 & 1;
|
|
209
|
-
if (context_data_position == bitsPerChar - 1) {
|
|
210
|
-
context_data_position = 0;
|
|
211
|
-
context_data.push(getCharFromInt(context_data_val));
|
|
212
|
-
context_data_val = 0;
|
|
213
|
-
} else {
|
|
214
|
-
context_data_position++;
|
|
215
|
-
}
|
|
216
|
-
value2 = value2 >> 1;
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
context_enlargeIn--;
|
|
220
|
-
if (context_enlargeIn == 0) {
|
|
221
|
-
context_enlargeIn = Math.pow(2, context_numBits);
|
|
222
|
-
context_numBits++;
|
|
223
|
-
}
|
|
224
|
-
context_dictionary[context_wc] = context_dictSize++;
|
|
225
|
-
context_w = String(context_c);
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
if (context_w !== "") {
|
|
229
|
-
if (Object.prototype.hasOwnProperty.call(context_dictionaryToCreate, context_w)) {
|
|
230
|
-
if (context_w.charCodeAt(0) < 256) {
|
|
231
|
-
for (i = 0; i < context_numBits; i++) {
|
|
232
|
-
context_data_val = context_data_val << 1;
|
|
233
|
-
if (context_data_position == bitsPerChar - 1) {
|
|
234
|
-
context_data_position = 0;
|
|
235
|
-
context_data.push(getCharFromInt(context_data_val));
|
|
236
|
-
context_data_val = 0;
|
|
237
|
-
} else {
|
|
238
|
-
context_data_position++;
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
value2 = context_w.charCodeAt(0);
|
|
242
|
-
for (i = 0; i < 8; i++) {
|
|
243
|
-
context_data_val = context_data_val << 1 | value2 & 1;
|
|
244
|
-
if (context_data_position == bitsPerChar - 1) {
|
|
245
|
-
context_data_position = 0;
|
|
246
|
-
context_data.push(getCharFromInt(context_data_val));
|
|
247
|
-
context_data_val = 0;
|
|
248
|
-
} else {
|
|
249
|
-
context_data_position++;
|
|
250
|
-
}
|
|
251
|
-
value2 = value2 >> 1;
|
|
252
|
-
}
|
|
253
|
-
} else {
|
|
254
|
-
value2 = 1;
|
|
255
|
-
for (i = 0; i < context_numBits; i++) {
|
|
256
|
-
context_data_val = context_data_val << 1 | value2;
|
|
257
|
-
if (context_data_position == bitsPerChar - 1) {
|
|
258
|
-
context_data_position = 0;
|
|
259
|
-
context_data.push(getCharFromInt(context_data_val));
|
|
260
|
-
context_data_val = 0;
|
|
261
|
-
} else {
|
|
262
|
-
context_data_position++;
|
|
263
|
-
}
|
|
264
|
-
value2 = 0;
|
|
265
|
-
}
|
|
266
|
-
value2 = context_w.charCodeAt(0);
|
|
267
|
-
for (i = 0; i < 16; i++) {
|
|
268
|
-
context_data_val = context_data_val << 1 | value2 & 1;
|
|
269
|
-
if (context_data_position == bitsPerChar - 1) {
|
|
270
|
-
context_data_position = 0;
|
|
271
|
-
context_data.push(getCharFromInt(context_data_val));
|
|
272
|
-
context_data_val = 0;
|
|
273
|
-
} else {
|
|
274
|
-
context_data_position++;
|
|
275
|
-
}
|
|
276
|
-
value2 = value2 >> 1;
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
context_enlargeIn--;
|
|
280
|
-
if (context_enlargeIn == 0) {
|
|
281
|
-
context_enlargeIn = Math.pow(2, context_numBits);
|
|
282
|
-
context_numBits++;
|
|
283
|
-
}
|
|
284
|
-
delete context_dictionaryToCreate[context_w];
|
|
285
|
-
} else {
|
|
286
|
-
value2 = context_dictionary[context_w];
|
|
287
|
-
for (i = 0; i < context_numBits; i++) {
|
|
288
|
-
context_data_val = context_data_val << 1 | value2 & 1;
|
|
289
|
-
if (context_data_position == bitsPerChar - 1) {
|
|
290
|
-
context_data_position = 0;
|
|
291
|
-
context_data.push(getCharFromInt(context_data_val));
|
|
292
|
-
context_data_val = 0;
|
|
293
|
-
} else {
|
|
294
|
-
context_data_position++;
|
|
295
|
-
}
|
|
296
|
-
value2 = value2 >> 1;
|
|
297
|
-
}
|
|
298
|
-
}
|
|
299
|
-
context_enlargeIn--;
|
|
300
|
-
if (context_enlargeIn == 0) {
|
|
301
|
-
context_enlargeIn = Math.pow(2, context_numBits);
|
|
302
|
-
context_numBits++;
|
|
303
|
-
}
|
|
304
|
-
}
|
|
305
|
-
value2 = 2;
|
|
306
|
-
for (i = 0; i < context_numBits; i++) {
|
|
307
|
-
context_data_val = context_data_val << 1 | value2 & 1;
|
|
308
|
-
if (context_data_position == bitsPerChar - 1) {
|
|
309
|
-
context_data_position = 0;
|
|
310
|
-
context_data.push(getCharFromInt(context_data_val));
|
|
311
|
-
context_data_val = 0;
|
|
312
|
-
} else {
|
|
313
|
-
context_data_position++;
|
|
314
|
-
}
|
|
315
|
-
value2 = value2 >> 1;
|
|
316
|
-
}
|
|
317
|
-
while (true) {
|
|
318
|
-
context_data_val = context_data_val << 1;
|
|
319
|
-
if (context_data_position == bitsPerChar - 1) {
|
|
320
|
-
context_data.push(getCharFromInt(context_data_val));
|
|
321
|
-
break;
|
|
322
|
-
} else context_data_position++;
|
|
323
|
-
}
|
|
324
|
-
return context_data.join("");
|
|
325
|
-
},
|
|
326
|
-
decompress: function(compressed) {
|
|
327
|
-
if (compressed == null) return "";
|
|
328
|
-
if (compressed == "") return null;
|
|
329
|
-
return LZString2._decompress(compressed.length, 32768, function(index) {
|
|
330
|
-
return compressed.charCodeAt(index);
|
|
331
|
-
});
|
|
332
|
-
},
|
|
333
|
-
_decompress: function(length3, resetValue, getNextValue) {
|
|
334
|
-
var dictionary = [], enlargeIn = 4, dictSize = 4, numBits = 3, entry = "", result = [], i, w, bits, resb, maxpower, power, c, data = { val: getNextValue(0), position: resetValue, index: 1 };
|
|
335
|
-
for (i = 0; i < 3; i += 1) {
|
|
336
|
-
dictionary[i] = i;
|
|
337
|
-
}
|
|
338
|
-
bits = 0;
|
|
339
|
-
maxpower = Math.pow(2, 2);
|
|
340
|
-
power = 1;
|
|
341
|
-
while (power != maxpower) {
|
|
342
|
-
resb = data.val & data.position;
|
|
343
|
-
data.position >>= 1;
|
|
344
|
-
if (data.position == 0) {
|
|
345
|
-
data.position = resetValue;
|
|
346
|
-
data.val = getNextValue(data.index++);
|
|
347
|
-
}
|
|
348
|
-
bits |= (resb > 0 ? 1 : 0) * power;
|
|
349
|
-
power <<= 1;
|
|
350
|
-
}
|
|
351
|
-
switch (bits) {
|
|
352
|
-
case 0:
|
|
353
|
-
bits = 0;
|
|
354
|
-
maxpower = Math.pow(2, 8);
|
|
355
|
-
power = 1;
|
|
356
|
-
while (power != maxpower) {
|
|
357
|
-
resb = data.val & data.position;
|
|
358
|
-
data.position >>= 1;
|
|
359
|
-
if (data.position == 0) {
|
|
360
|
-
data.position = resetValue;
|
|
361
|
-
data.val = getNextValue(data.index++);
|
|
362
|
-
}
|
|
363
|
-
bits |= (resb > 0 ? 1 : 0) * power;
|
|
364
|
-
power <<= 1;
|
|
365
|
-
}
|
|
366
|
-
c = f(bits);
|
|
367
|
-
break;
|
|
368
|
-
case 1:
|
|
369
|
-
bits = 0;
|
|
370
|
-
maxpower = Math.pow(2, 16);
|
|
371
|
-
power = 1;
|
|
372
|
-
while (power != maxpower) {
|
|
373
|
-
resb = data.val & data.position;
|
|
374
|
-
data.position >>= 1;
|
|
375
|
-
if (data.position == 0) {
|
|
376
|
-
data.position = resetValue;
|
|
377
|
-
data.val = getNextValue(data.index++);
|
|
378
|
-
}
|
|
379
|
-
bits |= (resb > 0 ? 1 : 0) * power;
|
|
380
|
-
power <<= 1;
|
|
381
|
-
}
|
|
382
|
-
c = f(bits);
|
|
383
|
-
break;
|
|
384
|
-
case 2:
|
|
385
|
-
return "";
|
|
386
|
-
}
|
|
387
|
-
dictionary[3] = c;
|
|
388
|
-
w = c;
|
|
389
|
-
result.push(c);
|
|
390
|
-
while (true) {
|
|
391
|
-
if (data.index > length3) {
|
|
392
|
-
return "";
|
|
393
|
-
}
|
|
394
|
-
bits = 0;
|
|
395
|
-
maxpower = Math.pow(2, numBits);
|
|
396
|
-
power = 1;
|
|
397
|
-
while (power != maxpower) {
|
|
398
|
-
resb = data.val & data.position;
|
|
399
|
-
data.position >>= 1;
|
|
400
|
-
if (data.position == 0) {
|
|
401
|
-
data.position = resetValue;
|
|
402
|
-
data.val = getNextValue(data.index++);
|
|
403
|
-
}
|
|
404
|
-
bits |= (resb > 0 ? 1 : 0) * power;
|
|
405
|
-
power <<= 1;
|
|
406
|
-
}
|
|
407
|
-
switch (c = bits) {
|
|
408
|
-
case 0:
|
|
409
|
-
bits = 0;
|
|
410
|
-
maxpower = Math.pow(2, 8);
|
|
411
|
-
power = 1;
|
|
412
|
-
while (power != maxpower) {
|
|
413
|
-
resb = data.val & data.position;
|
|
414
|
-
data.position >>= 1;
|
|
415
|
-
if (data.position == 0) {
|
|
416
|
-
data.position = resetValue;
|
|
417
|
-
data.val = getNextValue(data.index++);
|
|
418
|
-
}
|
|
419
|
-
bits |= (resb > 0 ? 1 : 0) * power;
|
|
420
|
-
power <<= 1;
|
|
421
|
-
}
|
|
422
|
-
dictionary[dictSize++] = f(bits);
|
|
423
|
-
c = dictSize - 1;
|
|
424
|
-
enlargeIn--;
|
|
425
|
-
break;
|
|
426
|
-
case 1:
|
|
427
|
-
bits = 0;
|
|
428
|
-
maxpower = Math.pow(2, 16);
|
|
429
|
-
power = 1;
|
|
430
|
-
while (power != maxpower) {
|
|
431
|
-
resb = data.val & data.position;
|
|
432
|
-
data.position >>= 1;
|
|
433
|
-
if (data.position == 0) {
|
|
434
|
-
data.position = resetValue;
|
|
435
|
-
data.val = getNextValue(data.index++);
|
|
436
|
-
}
|
|
437
|
-
bits |= (resb > 0 ? 1 : 0) * power;
|
|
438
|
-
power <<= 1;
|
|
439
|
-
}
|
|
440
|
-
dictionary[dictSize++] = f(bits);
|
|
441
|
-
c = dictSize - 1;
|
|
442
|
-
enlargeIn--;
|
|
443
|
-
break;
|
|
444
|
-
case 2:
|
|
445
|
-
return result.join("");
|
|
446
|
-
}
|
|
447
|
-
if (enlargeIn == 0) {
|
|
448
|
-
enlargeIn = Math.pow(2, numBits);
|
|
449
|
-
numBits++;
|
|
450
|
-
}
|
|
451
|
-
if (dictionary[c]) {
|
|
452
|
-
entry = dictionary[c];
|
|
453
|
-
} else {
|
|
454
|
-
if (c === dictSize) {
|
|
455
|
-
entry = w + w.charAt(0);
|
|
456
|
-
} else {
|
|
457
|
-
return null;
|
|
458
|
-
}
|
|
459
|
-
}
|
|
460
|
-
result.push(entry);
|
|
461
|
-
dictionary[dictSize++] = w + entry.charAt(0);
|
|
462
|
-
enlargeIn--;
|
|
463
|
-
w = entry;
|
|
464
|
-
if (enlargeIn == 0) {
|
|
465
|
-
enlargeIn = Math.pow(2, numBits);
|
|
466
|
-
numBits++;
|
|
467
|
-
}
|
|
468
|
-
}
|
|
469
|
-
}
|
|
470
|
-
};
|
|
471
|
-
return LZString2;
|
|
472
|
-
}();
|
|
473
|
-
if (typeof define === "function" && define.amd) {
|
|
474
|
-
define(function() {
|
|
475
|
-
return LZString;
|
|
476
|
-
});
|
|
477
|
-
} else if (typeof module !== "undefined" && module != null) {
|
|
478
|
-
module.exports = LZString;
|
|
479
|
-
} else if (typeof angular !== "undefined" && angular != null) {
|
|
480
|
-
angular.module("LZString", []).factory("LZString", function() {
|
|
481
|
-
return LZString;
|
|
482
|
-
});
|
|
483
|
-
}
|
|
484
|
-
}
|
|
485
|
-
});
|
|
486
6
|
|
|
487
7
|
// ../../../node_modules/.pnpm/effect@3.15.2/node_modules/effect/dist/esm/Function.js
|
|
488
8
|
var isFunction = (input) => typeof input === "function";
|
|
@@ -2550,26 +2070,26 @@ var HashSetProto = {
|
|
|
2550
2070
|
}
|
|
2551
2071
|
};
|
|
2552
2072
|
var makeImpl2 = (keyMap) => {
|
|
2553
|
-
const
|
|
2554
|
-
|
|
2555
|
-
return
|
|
2073
|
+
const set10 = Object.create(HashSetProto);
|
|
2074
|
+
set10._keyMap = keyMap;
|
|
2075
|
+
return set10;
|
|
2556
2076
|
};
|
|
2557
2077
|
var isHashSet = (u) => hasProperty(u, HashSetTypeId);
|
|
2558
2078
|
var _empty3 = /* @__PURE__ */ makeImpl2(/* @__PURE__ */ empty4());
|
|
2559
2079
|
var empty5 = () => _empty3;
|
|
2560
2080
|
var fromIterable4 = (elements) => {
|
|
2561
|
-
const
|
|
2081
|
+
const set10 = beginMutation2(empty5());
|
|
2562
2082
|
for (const value2 of elements) {
|
|
2563
|
-
add(
|
|
2083
|
+
add(set10, value2);
|
|
2564
2084
|
}
|
|
2565
|
-
return endMutation2(
|
|
2085
|
+
return endMutation2(set10);
|
|
2566
2086
|
};
|
|
2567
2087
|
var make6 = (...elements) => {
|
|
2568
|
-
const
|
|
2088
|
+
const set10 = beginMutation2(empty5());
|
|
2569
2089
|
for (const value2 of elements) {
|
|
2570
|
-
add(
|
|
2090
|
+
add(set10, value2);
|
|
2571
2091
|
}
|
|
2572
|
-
return endMutation2(
|
|
2092
|
+
return endMutation2(set10);
|
|
2573
2093
|
};
|
|
2574
2094
|
var has3 = /* @__PURE__ */ dual(2, (self, value2) => has2(self._keyMap, value2));
|
|
2575
2095
|
var size2 = (self) => size(self._keyMap);
|
|
@@ -2585,15 +2105,15 @@ var mutate2 = /* @__PURE__ */ dual(2, (self, f) => {
|
|
|
2585
2105
|
});
|
|
2586
2106
|
var add = /* @__PURE__ */ dual(2, (self, value2) => self._keyMap._editable ? (set(value2, true)(self._keyMap), self) : makeImpl2(set(value2, true)(self._keyMap)));
|
|
2587
2107
|
var remove4 = /* @__PURE__ */ dual(2, (self, value2) => self._keyMap._editable ? (remove3(value2)(self._keyMap), self) : makeImpl2(remove3(value2)(self._keyMap)));
|
|
2588
|
-
var difference2 = /* @__PURE__ */ dual(2, (self, that) => mutate2(self, (
|
|
2108
|
+
var difference2 = /* @__PURE__ */ dual(2, (self, that) => mutate2(self, (set10) => {
|
|
2589
2109
|
for (const value2 of that) {
|
|
2590
|
-
remove4(
|
|
2110
|
+
remove4(set10, value2);
|
|
2591
2111
|
}
|
|
2592
2112
|
}));
|
|
2593
|
-
var union2 = /* @__PURE__ */ dual(2, (self, that) => mutate2(empty5(), (
|
|
2594
|
-
forEach2(self, (value2) => add(
|
|
2113
|
+
var union2 = /* @__PURE__ */ dual(2, (self, that) => mutate2(empty5(), (set10) => {
|
|
2114
|
+
forEach2(self, (value2) => add(set10, value2));
|
|
2595
2115
|
for (const value2 of that) {
|
|
2596
|
-
add(
|
|
2116
|
+
add(set10, value2);
|
|
2597
2117
|
}
|
|
2598
2118
|
}));
|
|
2599
2119
|
var forEach2 = /* @__PURE__ */ dual(2, (self, f) => forEach(self._keyMap, (_, k) => f(k)));
|
|
@@ -2744,7 +2264,7 @@ var isInterrupted = (self) => isSome2(interruptOption(self));
|
|
|
2744
2264
|
var isInterruptedOnly = (self) => reduceWithContext(void 0, IsInterruptedOnlyCauseReducer)(self);
|
|
2745
2265
|
var failures = (self) => reverse2(reduce6(self, empty3(), (list, cause2) => cause2._tag === OP_FAIL ? some2(pipe(list, prepend2(cause2.error))) : none2()));
|
|
2746
2266
|
var defects = (self) => reverse2(reduce6(self, empty3(), (list, cause2) => cause2._tag === OP_DIE ? some2(pipe(list, prepend2(cause2.defect))) : none2()));
|
|
2747
|
-
var interruptors = (self) => reduce6(self, empty6(), (
|
|
2267
|
+
var interruptors = (self) => reduce6(self, empty6(), (set10, cause2) => cause2._tag === OP_INTERRUPT ? some2(pipe(set10, add2(cause2.fiberId))) : none2());
|
|
2748
2268
|
var failureOption = (self) => find(self, (cause2) => cause2._tag === OP_FAIL ? some2(cause2.error) : none2());
|
|
2749
2269
|
var failureOrCause = (self) => {
|
|
2750
2270
|
const option2 = failureOption(self);
|
|
@@ -4157,11 +3677,11 @@ var makeRemove = (value2) => {
|
|
|
4157
3677
|
return o;
|
|
4158
3678
|
};
|
|
4159
3679
|
var diff2 = (oldValue, newValue) => {
|
|
4160
|
-
const [removed, patch11] = reduce5([oldValue, empty13()], ([
|
|
4161
|
-
if (has4(value2)(
|
|
4162
|
-
return [remove5(value2)(
|
|
3680
|
+
const [removed, patch11] = reduce5([oldValue, empty13()], ([set10, patch12], value2) => {
|
|
3681
|
+
if (has4(value2)(set10)) {
|
|
3682
|
+
return [remove5(value2)(set10), patch12];
|
|
4163
3683
|
}
|
|
4164
|
-
return [
|
|
3684
|
+
return [set10, combine5(makeAdd(value2))(patch12)];
|
|
4165
3685
|
})(newValue);
|
|
4166
3686
|
return reduce5(patch11, (patch12, value2) => combine5(makeRemove(value2))(patch12))(removed);
|
|
4167
3687
|
};
|
|
@@ -4170,7 +3690,7 @@ var patch2 = /* @__PURE__ */ dual(2, (self, oldValue) => {
|
|
|
4170
3690
|
if (self._tag === "Empty") {
|
|
4171
3691
|
return oldValue;
|
|
4172
3692
|
}
|
|
4173
|
-
let
|
|
3693
|
+
let set10 = oldValue;
|
|
4174
3694
|
let patches = of2(self);
|
|
4175
3695
|
while (isNonEmpty(patches)) {
|
|
4176
3696
|
const head7 = headNonEmpty2(patches);
|
|
@@ -4185,17 +3705,17 @@ var patch2 = /* @__PURE__ */ dual(2, (self, oldValue) => {
|
|
|
4185
3705
|
break;
|
|
4186
3706
|
}
|
|
4187
3707
|
case "Add": {
|
|
4188
|
-
|
|
3708
|
+
set10 = add2(head7.value)(set10);
|
|
4189
3709
|
patches = tail;
|
|
4190
3710
|
break;
|
|
4191
3711
|
}
|
|
4192
3712
|
case "Remove": {
|
|
4193
|
-
|
|
3713
|
+
set10 = remove5(head7.value)(set10);
|
|
4194
3714
|
patches = tail;
|
|
4195
3715
|
}
|
|
4196
3716
|
}
|
|
4197
3717
|
}
|
|
4198
|
-
return
|
|
3718
|
+
return set10;
|
|
4199
3719
|
});
|
|
4200
3720
|
|
|
4201
3721
|
// ../../../node_modules/.pnpm/effect@3.15.2/node_modules/effect/dist/esm/internal/differ/readonlyArrayPatch.js
|
|
@@ -14010,8 +13530,8 @@ var go = (ast, isDecoding) => {
|
|
|
14010
13530
|
};
|
|
14011
13531
|
}
|
|
14012
13532
|
case "Suspend": {
|
|
14013
|
-
const
|
|
14014
|
-
return (a, options3) =>
|
|
13533
|
+
const get19 = memoizeThunk(() => goMemo(annotations(ast.f(), ast.annotations), isDecoding));
|
|
13534
|
+
return (a, options3) => get19()(a, options3);
|
|
14015
13535
|
}
|
|
14016
13536
|
}
|
|
14017
13537
|
};
|
|
@@ -17341,39 +16861,6 @@ var fromReadableStream2 = fromReadableStream;
|
|
|
17341
16861
|
var suspend7 = suspend6;
|
|
17342
16862
|
var toReadableStreamEffect2 = toReadableStreamEffect;
|
|
17343
16863
|
|
|
17344
|
-
// src/effect/cache.ts
|
|
17345
|
-
var import_lz_string = __toESM(require_lz_string());
|
|
17346
|
-
var Cache = {
|
|
17347
|
-
get(key) {
|
|
17348
|
-
const json2 = localStorage.getItem(key);
|
|
17349
|
-
if (!json2) return null;
|
|
17350
|
-
try {
|
|
17351
|
-
const entry = JSON.parse(import_lz_string.default.decompressFromUTF16(json2));
|
|
17352
|
-
if (entry.expiresAt !== void 0 && Date.now() > entry.expiresAt) {
|
|
17353
|
-
localStorage.removeItem(key);
|
|
17354
|
-
return null;
|
|
17355
|
-
}
|
|
17356
|
-
return entry.value;
|
|
17357
|
-
} catch {
|
|
17358
|
-
localStorage.removeItem(key);
|
|
17359
|
-
return null;
|
|
17360
|
-
}
|
|
17361
|
-
},
|
|
17362
|
-
set(key, value2, timeToLive) {
|
|
17363
|
-
const entry = { value: value2 };
|
|
17364
|
-
if (timeToLive !== void 0) {
|
|
17365
|
-
const ttlMs = toMillis(timeToLive);
|
|
17366
|
-
entry.expiresAt = Date.now() + ttlMs;
|
|
17367
|
-
}
|
|
17368
|
-
localStorage.setItem(key, import_lz_string.default.compressToUTF16(JSON.stringify(entry)));
|
|
17369
|
-
},
|
|
17370
|
-
remove(key) {
|
|
17371
|
-
localStorage.removeItem(key);
|
|
17372
|
-
}
|
|
17373
|
-
};
|
|
17374
|
-
var set7 = (key, value2, ttl) => sync4(() => Cache.set(key, value2, ttl));
|
|
17375
|
-
var get14 = (key) => sync4(() => Cache.get(key));
|
|
17376
|
-
|
|
17377
16864
|
// src/effect/schema.ts
|
|
17378
16865
|
var BaseAttributeValue = Union2(
|
|
17379
16866
|
Null,
|
|
@@ -17558,59 +17045,9 @@ var UnitPriceMeasurement = Struct({
|
|
|
17558
17045
|
reference_unit: String$,
|
|
17559
17046
|
reference_value: Number$
|
|
17560
17047
|
});
|
|
17561
|
-
var VariantQuantityRule = Struct({
|
|
17562
|
-
min: NullOr(Number$),
|
|
17563
|
-
max: NullOr(Number$),
|
|
17564
|
-
increment: Number$
|
|
17565
|
-
});
|
|
17566
17048
|
var VariantOptions = optionalWith(Array$(String$), {
|
|
17567
17049
|
default: () => []
|
|
17568
17050
|
});
|
|
17569
|
-
var BaseVariant = Struct({
|
|
17570
|
-
id: Resource_exports.ID,
|
|
17571
|
-
title: String$,
|
|
17572
|
-
options: VariantOptions,
|
|
17573
|
-
quantity_rule: VariantQuantityRule
|
|
17574
|
-
});
|
|
17575
|
-
var ProductOption = Struct({
|
|
17576
|
-
name: String$,
|
|
17577
|
-
position: Number$,
|
|
17578
|
-
values: Array$(String$)
|
|
17579
|
-
});
|
|
17580
|
-
var BaseProduct = Struct({
|
|
17581
|
-
id: Resource_exports.ID,
|
|
17582
|
-
title: String$,
|
|
17583
|
-
handle: String$,
|
|
17584
|
-
variants: Array$(BaseVariant),
|
|
17585
|
-
options: Array$(ProductOption),
|
|
17586
|
-
tags: Array$(String$)
|
|
17587
|
-
});
|
|
17588
|
-
var get15 = (url) => tryPromise2({
|
|
17589
|
-
try: () => fetch(url).then((res) => {
|
|
17590
|
-
if (res.ok) {
|
|
17591
|
-
return res.json();
|
|
17592
|
-
}
|
|
17593
|
-
throw new Error(String(res.status));
|
|
17594
|
-
}),
|
|
17595
|
-
catch: (e) => new Error(String(e))
|
|
17596
|
-
});
|
|
17597
|
-
var cachedGet = (url) => gen2(function* () {
|
|
17598
|
-
const cacheKey = `shopify-ajax-cart-api:${url}`;
|
|
17599
|
-
const cachedValue = yield* get14(cacheKey);
|
|
17600
|
-
if (cachedValue) return cachedValue;
|
|
17601
|
-
const value2 = yield* get15(url);
|
|
17602
|
-
yield* set7(cacheKey, value2, "60 minutes");
|
|
17603
|
-
return value2;
|
|
17604
|
-
});
|
|
17605
|
-
var Product = transformOrFail(String$, BaseProduct, {
|
|
17606
|
-
decode(handle, _, ast) {
|
|
17607
|
-
return mapBoth3(cachedGet(`/products/${handle}.js`), {
|
|
17608
|
-
onFailure: (e) => new Type2(ast, handle, e.message),
|
|
17609
|
-
onSuccess: (product) => product
|
|
17610
|
-
});
|
|
17611
|
-
},
|
|
17612
|
-
encode: (product) => succeed8(product.handle)
|
|
17613
|
-
});
|
|
17614
17051
|
var BaseLineItem = Struct({
|
|
17615
17052
|
id: Resource_exports.ID,
|
|
17616
17053
|
properties: BaseAttributes,
|
|
@@ -17661,7 +17098,6 @@ var LineItem = transform2(
|
|
|
17661
17098
|
extend3(
|
|
17662
17099
|
BaseLineItem,
|
|
17663
17100
|
Struct({
|
|
17664
|
-
product: Product,
|
|
17665
17101
|
properties_array: optionalWith(BaseAttributesArray, {
|
|
17666
17102
|
default: () => []
|
|
17667
17103
|
}),
|
|
@@ -17697,8 +17133,7 @@ var LineItem = transform2(
|
|
|
17697
17133
|
remove("private_properties"),
|
|
17698
17134
|
remove("private_properties_array"),
|
|
17699
17135
|
remove("public_properties"),
|
|
17700
|
-
remove("public_properties_array")
|
|
17701
|
-
remove("product")
|
|
17136
|
+
remove("public_properties_array")
|
|
17702
17137
|
)
|
|
17703
17138
|
}
|
|
17704
17139
|
);
|
|
@@ -18088,7 +17523,7 @@ var fromInput2 = (input) => {
|
|
|
18088
17523
|
return out;
|
|
18089
17524
|
};
|
|
18090
17525
|
var unsafeFromRecord = (input) => Object.setPrototypeOf(input, Proto3);
|
|
18091
|
-
var
|
|
17526
|
+
var set8 = /* @__PURE__ */ dual(3, (self, key, value2) => {
|
|
18092
17527
|
const out = make49(self);
|
|
18093
17528
|
out[key.toLowerCase()] = value2;
|
|
18094
17529
|
return out;
|
|
@@ -18382,7 +17817,7 @@ var make50 = (method) => (url, options3) => modify4(empty35, {
|
|
|
18382
17817
|
url,
|
|
18383
17818
|
...options3 ?? void 0
|
|
18384
17819
|
});
|
|
18385
|
-
var
|
|
17820
|
+
var get15 = /* @__PURE__ */ make50("GET");
|
|
18386
17821
|
var post = /* @__PURE__ */ make50("POST");
|
|
18387
17822
|
var put = /* @__PURE__ */ make50("PUT");
|
|
18388
17823
|
var patch9 = /* @__PURE__ */ make50("PATCH");
|
|
@@ -18417,7 +17852,7 @@ var modify4 = /* @__PURE__ */ dual(2, (self, options3) => {
|
|
|
18417
17852
|
}
|
|
18418
17853
|
return result;
|
|
18419
17854
|
});
|
|
18420
|
-
var setHeader = /* @__PURE__ */ dual(3, (self, key, value2) => makeInternal(self.method, self.url, self.urlParams, self.hash,
|
|
17855
|
+
var setHeader = /* @__PURE__ */ dual(3, (self, key, value2) => makeInternal(self.method, self.url, self.urlParams, self.hash, set8(self.headers, key, value2), self.body));
|
|
18421
17856
|
var setHeaders = /* @__PURE__ */ dual(2, (self, input) => makeInternal(self.method, self.url, self.urlParams, self.hash, setAll3(self.headers, input), self.body));
|
|
18422
17857
|
var accept = /* @__PURE__ */ dual(2, (self, mediaType) => setHeader(self, "Accept", mediaType));
|
|
18423
17858
|
var acceptJson = /* @__PURE__ */ accept("application/json");
|
|
@@ -18442,11 +17877,11 @@ var setBody = /* @__PURE__ */ dual(2, (self, body) => {
|
|
|
18442
17877
|
} else {
|
|
18443
17878
|
const contentType = body.contentType;
|
|
18444
17879
|
if (contentType) {
|
|
18445
|
-
headers =
|
|
17880
|
+
headers = set8(headers, "content-type", contentType);
|
|
18446
17881
|
}
|
|
18447
17882
|
const contentLength = body.contentLength;
|
|
18448
17883
|
if (contentLength) {
|
|
18449
|
-
headers =
|
|
17884
|
+
headers = set8(headers, "content-length", contentLength.toString());
|
|
18450
17885
|
}
|
|
18451
17886
|
}
|
|
18452
17887
|
return makeInternal(self.method, self.url, self.urlParams, self.hash, headers, body);
|
|
@@ -18584,7 +18019,7 @@ var ClientProto = {
|
|
|
18584
18019
|
};
|
|
18585
18020
|
},
|
|
18586
18021
|
get(url, options3) {
|
|
18587
|
-
return this.execute(
|
|
18022
|
+
return this.execute(get15(url, options3));
|
|
18588
18023
|
},
|
|
18589
18024
|
head(url, options3) {
|
|
18590
18025
|
return this.execute(head5(url, options3));
|
|
@@ -18780,7 +18215,7 @@ var {
|
|
|
18780
18215
|
/** @internal */
|
|
18781
18216
|
execute: execute2,
|
|
18782
18217
|
/** @internal */
|
|
18783
|
-
get:
|
|
18218
|
+
get: get16,
|
|
18784
18219
|
/** @internal */
|
|
18785
18220
|
head: head6,
|
|
18786
18221
|
/** @internal */
|
|
@@ -18802,7 +18237,7 @@ var layerMergedContext = (effect3) => effect(tag, flatMap10(context2(), (context
|
|
|
18802
18237
|
var HttpClient = tag;
|
|
18803
18238
|
|
|
18804
18239
|
// ../../../node_modules/.pnpm/@effect+platform@0.82.4_effect@3.15.2/node_modules/@effect/platform/dist/esm/HttpClientRequest.js
|
|
18805
|
-
var
|
|
18240
|
+
var get17 = get15;
|
|
18806
18241
|
var post3 = post;
|
|
18807
18242
|
var setUrlParams2 = setUrlParams;
|
|
18808
18243
|
var bodyJson2 = bodyJson;
|
|
@@ -18810,13 +18245,13 @@ var bodyJson2 = bodyJson;
|
|
|
18810
18245
|
// ../../../node_modules/.pnpm/@effect+platform@0.82.4_effect@3.15.2/node_modules/@effect/platform/dist/esm/internal/fetchHttpClient.js
|
|
18811
18246
|
var fetchTagKey = "@effect/platform/FetchHttpClient/Fetch";
|
|
18812
18247
|
var requestInitTagKey = "@effect/platform/FetchHttpClient/FetchOptions";
|
|
18813
|
-
var
|
|
18248
|
+
var fetch = /* @__PURE__ */ make51((request, url, signal, fiber) => {
|
|
18814
18249
|
const context5 = fiber.getFiberRef(currentContext2);
|
|
18815
|
-
const
|
|
18250
|
+
const fetch2 = context5.unsafeMap.get(fetchTagKey) ?? globalThis.fetch;
|
|
18816
18251
|
const options3 = context5.unsafeMap.get(requestInitTagKey) ?? {};
|
|
18817
18252
|
const headers = options3.headers ? merge8(fromInput2(options3.headers), request.headers) : request.headers;
|
|
18818
18253
|
const send = (body) => map17(tryPromise2({
|
|
18819
|
-
try: () =>
|
|
18254
|
+
try: () => fetch2(url, {
|
|
18820
18255
|
...options3,
|
|
18821
18256
|
method: request.method,
|
|
18822
18257
|
headers,
|
|
@@ -18841,7 +18276,7 @@ var fetch2 = /* @__PURE__ */ make51((request, url, signal, fiber) => {
|
|
|
18841
18276
|
}
|
|
18842
18277
|
return send(void 0);
|
|
18843
18278
|
});
|
|
18844
|
-
var layer = /* @__PURE__ */ layerMergedContext(/* @__PURE__ */ succeed7(
|
|
18279
|
+
var layer = /* @__PURE__ */ layerMergedContext(/* @__PURE__ */ succeed7(fetch));
|
|
18845
18280
|
|
|
18846
18281
|
// ../../../node_modules/.pnpm/@effect+platform@0.82.4_effect@3.15.2/node_modules/@effect/platform/dist/esm/FetchHttpClient.js
|
|
18847
18282
|
var layer2 = layer;
|
|
@@ -18901,7 +18336,7 @@ var makeFactory = ({
|
|
|
18901
18336
|
}
|
|
18902
18337
|
}).pipe(bodyJson2(decodedInput));
|
|
18903
18338
|
} else if (method === "get") {
|
|
18904
|
-
request =
|
|
18339
|
+
request = get17(url, {
|
|
18905
18340
|
acceptJson: true
|
|
18906
18341
|
}).pipe(setUrlParams2(decodedInput));
|
|
18907
18342
|
} else {
|
|
@@ -19009,7 +18444,7 @@ var make57 = makeFactory({
|
|
|
19009
18444
|
var add6 = make53;
|
|
19010
18445
|
var change = make54;
|
|
19011
18446
|
var clear = make55;
|
|
19012
|
-
var
|
|
18447
|
+
var get18 = make56;
|
|
19013
18448
|
var update5 = make57;
|
|
19014
18449
|
|
|
19015
18450
|
// src/index.ts
|
|
@@ -19121,7 +18556,7 @@ var createAjaxCartApi = ({ debug = false }) => {
|
|
|
19121
18556
|
}
|
|
19122
18557
|
),
|
|
19123
18558
|
get: (input, options3) => runPromise(
|
|
19124
|
-
|
|
18559
|
+
get18(input).pipe(
|
|
19125
18560
|
withMinimumLogLevel2(minimumLogLevel2),
|
|
19126
18561
|
provide2(ajaxLayer),
|
|
19127
18562
|
catchAll2((error) => {
|