@simpleapps-com/augur-hooks 2026.11.7 → 2026.11.9
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/README.md +3 -0
- package/dist/checkout/create-checkout-provider.d.ts.map +1 -1
- package/dist/checkout/index.cjs +36 -33
- package/dist/checkout/index.cjs.map +1 -1
- package/dist/checkout/index.js +17 -14
- package/dist/checkout/index.js.map +1 -1
- package/dist/{chunk-4PTXISXM.cjs → chunk-VEUB622Z.cjs} +14 -9
- package/dist/chunk-VEUB622Z.cjs.map +1 -0
- package/dist/{chunk-V3VBNWLM.js → chunk-Z5G7NNAC.js} +13 -8
- package/dist/{chunk-V3VBNWLM.js.map → chunk-Z5G7NNAC.js.map} +1 -1
- package/dist/hooks/use-cart-initialization.d.ts.map +1 -1
- package/dist/hooks/use-cart-pricing.d.ts.map +1 -1
- package/dist/hooks/use-payment-flow.d.ts.map +1 -1
- package/dist/index.cjs +85 -78
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +29 -22
- package/dist/index.js.map +1 -1
- package/dist/rules.d.ts +8 -0
- package/dist/rules.d.ts.map +1 -1
- package/package.json +3 -3
- package/dist/chunk-4PTXISXM.cjs.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-cart-initialization.d.ts","sourceRoot":"","sources":["../../src/hooks/use-cart-initialization.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"use-cart-initialization.d.ts","sourceRoot":"","sources":["../../src/hooks/use-cart-initialization.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAwB7D,2DAA2D;AAC3D,MAAM,WAAW,eAAe;IAC9B,mEAAmE;IACnE,MAAM,EAAE,SAAS,GAAG,eAAe,GAAG,iBAAiB,CAAC;IACxD,wEAAwE;IACxE,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,2DAA2D;IAC3D,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC9B;AAED,mEAAmE;AACnE,MAAM,WAAW,iBAAiB;IAChC,2EAA2E;IAC3E,aAAa,EAAE,CACb,MAAM,EAAE,MAAM,GAAG,MAAM,EACvB,SAAS,EAAE,MAAM,KACd,OAAO,CAAC;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE,GAAG,KAAK,GAAG,IAAI,GAAG,SAAS,CAAC,CAAC;IAC3F,yDAAyD;IACzD,YAAY,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,OAAO,CAAC,SAAS,EAAE,GAAG,SAAS,CAAC,CAAC;IACvE,iFAAiF;IACjF,YAAY,CAAC,EAAE,MAAM,MAAM,GAAG,IAAI,CAAC;IACnC,6EAA6E;IAC7E,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,yEAAyE;IACzE,iBAAiB,CAAC,EAAE,MAAM,MAAM,CAAC;CAClC;AAWD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,iBAAiB;;;;EAmJ3F"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-cart-pricing.d.ts","sourceRoot":"","sources":["../../src/hooks/use-cart-pricing.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"use-cart-pricing.d.ts","sourceRoot":"","sources":["../../src/hooks/use-cart-pricing.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAA2B,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAevF,MAAM,WAAW,aAAa;IAC5B,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC,MAAM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M,GAAG,IAAI,CAAC;IAC3B,gBAAgB,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;CACzC;AA+BD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,cAAc,CAAC,EAC7B,SAAS,EACT,UAAU,EACV,cAAc,EACd,aAAa,EACb,gBAAgB,EAChB,cAAc,GACf,EAAE,oBAAoB,GAAG,WAAW,CAoQpC"}
|
package/dist/index.cjs
CHANGED
|
@@ -43,7 +43,7 @@ var _chunkWJ4D5OCQcjs = require('./chunk-WJ4D5OCQ.cjs');
|
|
|
43
43
|
|
|
44
44
|
|
|
45
45
|
|
|
46
|
-
var
|
|
46
|
+
var _chunkVEUB622Zcjs = require('./chunk-VEUB622Z.cjs');
|
|
47
47
|
|
|
48
48
|
// src/provider.tsx
|
|
49
49
|
var _react = require('react');
|
|
@@ -60,7 +60,7 @@ var AugurOptionsContext = _react.createContext.call(void 0, null);
|
|
|
60
60
|
var AugurSiteContext = _react.createContext.call(void 0, void 0);
|
|
61
61
|
function AugurHooksProvider({ api, auth, cache, site, children }) {
|
|
62
62
|
const proxyConfig = cache ? { cache: { static: cache.static, semiStatic: cache.semiStatic } } : void 0;
|
|
63
|
-
const proxyConfigRef =
|
|
63
|
+
const proxyConfigRef = _chunkVEUB622Zcjs.useLatest.call(void 0, proxyConfig);
|
|
64
64
|
const options = _react.useMemo.call(void 0, () => {
|
|
65
65
|
const config = proxyConfigRef.current;
|
|
66
66
|
if (api) return _augurcore.createOptionsProxy.call(void 0, api, config);
|
|
@@ -169,7 +169,7 @@ function useFormatPrice(optionsOrLocale, legacyCurrency) {
|
|
|
169
169
|
} = resolveFormatting(opts, _optionalChain([site, 'optionalAccess', _ => _.formatting]));
|
|
170
170
|
const formatPrice = (price, callOptions) => {
|
|
171
171
|
const effectiveValue = _augurutils.cleanMoney.call(void 0, price * (_nullishCoalesce(_optionalChain([callOptions, 'optionalAccess', _2 => _2.quantity]), () => ( 1))));
|
|
172
|
-
if (
|
|
172
|
+
if (_chunkVEUB622Zcjs.zeroLabelShown.call(void 0, effectiveValue === 0, zeroLabel !== void 0)) {
|
|
173
173
|
return zeroLabel;
|
|
174
174
|
}
|
|
175
175
|
const precision = _nullishCoalesce(_optionalChain([callOptions, 'optionalAccess', _3 => _3.precision]), () => ( basePrecision));
|
|
@@ -194,9 +194,9 @@ function useStock(invMastUid, options = {}) {
|
|
|
194
194
|
const query = _reactquery.useQuery.call(void 0, {
|
|
195
195
|
...proxyOpts,
|
|
196
196
|
...resolvedQueryFn ? { queryFn: resolvedQueryFn } : {},
|
|
197
|
-
enabled:
|
|
197
|
+
enabled: _chunkVEUB622Zcjs.stockEnabled.call(void 0, options.enabled, !!invMastUid),
|
|
198
198
|
retry: 3,
|
|
199
|
-
retryDelay:
|
|
199
|
+
retryDelay: _chunkVEUB622Zcjs.stockRetryDelay
|
|
200
200
|
});
|
|
201
201
|
const stockData = _nullishCoalesce(query.data, () => ( null));
|
|
202
202
|
const resolved = _react.useMemo.call(void 0,
|
|
@@ -226,19 +226,19 @@ function cartUidOf(cartHdrUid) {
|
|
|
226
226
|
return num === void 0 || Number.isNaN(num) ? void 0 : num;
|
|
227
227
|
}
|
|
228
228
|
function requireCartUid(cartHdrUid) {
|
|
229
|
-
const uid =
|
|
229
|
+
const uid = _chunkVEUB622Zcjs.requiredCartUid.call(void 0, cartUidOf(cartHdrUid));
|
|
230
230
|
if (uid === null) throw new Error("Cart UID is not set");
|
|
231
231
|
return uid;
|
|
232
232
|
}
|
|
233
233
|
function liveCart() {
|
|
234
|
-
const { cartHdrUid, cartLines } =
|
|
234
|
+
const { cartHdrUid, cartLines } = _chunkVEUB622Zcjs.useCartStore.getState();
|
|
235
235
|
return { uid: requireCartUid(cartHdrUid), lines: cartLines };
|
|
236
236
|
}
|
|
237
237
|
function buildOptimisticAdd(cartLines, item, cartHdrUid, itemId) {
|
|
238
|
-
const existingIndex =
|
|
238
|
+
const existingIndex = _chunkVEUB622Zcjs.indexOfUidFrom.call(void 0, uidsOf(cartLines), item.invMastUid, 0);
|
|
239
239
|
if (existingIndex >= 0) {
|
|
240
240
|
return cartLines.map(
|
|
241
|
-
(line, index) => index === existingIndex ? { ...line, quantity:
|
|
241
|
+
(line, index) => index === existingIndex ? { ...line, quantity: _chunkVEUB622Zcjs.qtyOrZero.call(void 0, line.quantity) + item.quantity } : line
|
|
242
242
|
);
|
|
243
243
|
}
|
|
244
244
|
return [
|
|
@@ -259,28 +259,28 @@ function buildOptimisticAdd(cartLines, item, cartHdrUid, itemId) {
|
|
|
259
259
|
];
|
|
260
260
|
}
|
|
261
261
|
function reverseAdd(cartLines, invMastUid, quantity) {
|
|
262
|
-
const index =
|
|
262
|
+
const index = _chunkVEUB622Zcjs.indexOfUidFrom.call(void 0, uidsOf(cartLines), invMastUid, 0);
|
|
263
263
|
if (index < 0) return cartLines;
|
|
264
264
|
const line = cartLines[index];
|
|
265
|
-
if (!
|
|
265
|
+
if (!_chunkVEUB622Zcjs.keepsAfterReverse.call(void 0, line.quantity, quantity)) {
|
|
266
266
|
return [...cartLines.slice(0, index), ...cartLines.slice(index + 1)];
|
|
267
267
|
}
|
|
268
268
|
return cartLines.map(
|
|
269
|
-
(l, i) => i === index ? { ...l, quantity:
|
|
269
|
+
(l, i) => i === index ? { ...l, quantity: _chunkVEUB622Zcjs.qtyOrZero.call(void 0, l.quantity) - quantity } : l
|
|
270
270
|
);
|
|
271
271
|
}
|
|
272
272
|
function targetOf(cartLines, invMastUid, unitOfMeasure) {
|
|
273
|
-
const first =
|
|
273
|
+
const first = _chunkVEUB622Zcjs.indexOfUidFrom.call(void 0, uidsOf(cartLines), invMastUid, 0);
|
|
274
274
|
if (first < 0) return null;
|
|
275
275
|
const unit = _nullishCoalesce(unitOfMeasure, () => ( unitOf(cartLines[first])));
|
|
276
|
-
if (
|
|
276
|
+
if (_chunkVEUB622Zcjs.indexOfUnitFrom.call(void 0, uidsOf(cartLines), unitsOf(cartLines), invMastUid, unit, 0) < 0) return null;
|
|
277
277
|
return { invMastUid, unit };
|
|
278
278
|
}
|
|
279
279
|
function isTarget(line, target) {
|
|
280
|
-
return
|
|
280
|
+
return _chunkVEUB622Zcjs.indexOfUnitFrom.call(void 0, [line.invMastUid], [unitOf(line)], target.invMastUid, target.unit, 0) === 0;
|
|
281
281
|
}
|
|
282
282
|
function targetLine(cartLines, target) {
|
|
283
|
-
const index =
|
|
283
|
+
const index = _chunkVEUB622Zcjs.indexOfUnitFrom.call(void 0,
|
|
284
284
|
uidsOf(cartLines),
|
|
285
285
|
unitsOf(cartLines),
|
|
286
286
|
target.invMastUid,
|
|
@@ -295,7 +295,7 @@ function reverseQuantity(cartLines, target, previousQuantity) {
|
|
|
295
295
|
);
|
|
296
296
|
}
|
|
297
297
|
function restoreRemoved(cartLines, target, removedLine) {
|
|
298
|
-
if (
|
|
298
|
+
if (_chunkVEUB622Zcjs.indexOfUnitFrom.call(void 0, uidsOf(cartLines), unitsOf(cartLines), target.invMastUid, target.unit, 0) >= 0) {
|
|
299
299
|
return cartLines;
|
|
300
300
|
}
|
|
301
301
|
return [...cartLines, removedLine];
|
|
@@ -303,14 +303,14 @@ function restoreRemoved(cartLines, target, removedLine) {
|
|
|
303
303
|
function mergeRestore(cartLines, snapshot) {
|
|
304
304
|
const merged = [...cartLines];
|
|
305
305
|
for (const line of snapshot) {
|
|
306
|
-
if (!
|
|
306
|
+
if (!_chunkVEUB622Zcjs.hasNumberFrom.call(void 0, uidsOf(merged), line.invMastUid, 0)) merged.push(line);
|
|
307
307
|
}
|
|
308
308
|
return merged;
|
|
309
309
|
}
|
|
310
310
|
function sentLine(line, quantity) {
|
|
311
311
|
const { unitPrice, ...rest } = line;
|
|
312
312
|
const sent = { ...rest, quantity, lineNo: 0 };
|
|
313
|
-
if (
|
|
313
|
+
if (_chunkVEUB622Zcjs.sendsPrice.call(void 0, unitPrice)) sent.unitPrice = unitPrice;
|
|
314
314
|
return sent;
|
|
315
315
|
}
|
|
316
316
|
function uidsOf(cartLines) {
|
|
@@ -323,15 +323,15 @@ function unitsOf(cartLines) {
|
|
|
323
323
|
return cartLines.map(unitOf);
|
|
324
324
|
}
|
|
325
325
|
function sendToast(notify, kind, showToast, message) {
|
|
326
|
-
if (
|
|
326
|
+
if (_chunkVEUB622Zcjs.toastShown.call(void 0, showToast, message !== void 0)) _optionalChain([notify, 'optionalAccess', _4 => _4[kind], 'optionalCall', _5 => _5(message)]);
|
|
327
327
|
}
|
|
328
328
|
async function settleCartOp(op, options, notify, invalidate) {
|
|
329
|
-
const { endCartOp } =
|
|
329
|
+
const { endCartOp } = _chunkVEUB622Zcjs.useCartStore.getState();
|
|
330
330
|
try {
|
|
331
331
|
const success = await op.call();
|
|
332
332
|
if (!success) throw new Error(op.failure);
|
|
333
333
|
} catch (error) {
|
|
334
|
-
if (
|
|
334
|
+
if (_chunkVEUB622Zcjs.rollsBack.call(void 0, cartUidOf(_chunkVEUB622Zcjs.useCartStore.getState().cartHdrUid), op.cartUid)) op.rollback();
|
|
335
335
|
endCartOp();
|
|
336
336
|
invalidate();
|
|
337
337
|
sendToast(notify, "error", op.showToast, op.errorMessage);
|
|
@@ -346,9 +346,9 @@ async function settleCartOp(op, options, notify, invalidate) {
|
|
|
346
346
|
}
|
|
347
347
|
function useCartActions(callbacks) {
|
|
348
348
|
const queryClient = _reactquery.useQueryClient.call(void 0, );
|
|
349
|
-
const cartHdrUid =
|
|
350
|
-
const cartLines =
|
|
351
|
-
const setCartLines =
|
|
349
|
+
const cartHdrUid = _chunkVEUB622Zcjs.useCartHdrUid.call(void 0, );
|
|
350
|
+
const cartLines = _chunkVEUB622Zcjs.useCartLines.call(void 0, );
|
|
351
|
+
const setCartLines = _chunkVEUB622Zcjs.useSetCartLines.call(void 0, );
|
|
352
352
|
const notify = callbacks.toast;
|
|
353
353
|
const invalidateCartCache = _react.useCallback.call(void 0, () => {
|
|
354
354
|
void queryClient.invalidateQueries({ queryKey: ["cartLines"] });
|
|
@@ -360,13 +360,13 @@ function useCartActions(callbacks) {
|
|
|
360
360
|
async (item, options = {}) => {
|
|
361
361
|
const { showToast = true, itemId = "" } = options;
|
|
362
362
|
const quantity = Number.isFinite(item.quantity) ? item.quantity : null;
|
|
363
|
-
if (!
|
|
363
|
+
if (!_chunkVEUB622Zcjs.addAccepted.call(void 0, item.unitOfMeasure, quantity)) {
|
|
364
364
|
sendToast(notify, "error", showToast, "Choose a quantity and a unit of measure.");
|
|
365
365
|
_optionalChain([options, 'access', _10 => _10.onError, 'optionalCall', _11 => _11(new Error("Quantity and unit of measure are required"))]);
|
|
366
366
|
return false;
|
|
367
367
|
}
|
|
368
368
|
const { uid, lines: liveLines } = liveCart();
|
|
369
|
-
|
|
369
|
+
_chunkVEUB622Zcjs.useCartStore.getState().beginCartOp();
|
|
370
370
|
setCartLines(buildOptimisticAdd(liveLines, item, uid, itemId));
|
|
371
371
|
return settleCartOp(
|
|
372
372
|
{
|
|
@@ -384,7 +384,7 @@ function useCartActions(callbacks) {
|
|
|
384
384
|
errorMessage: "Failed to add item to cart. Please try again.",
|
|
385
385
|
showToast,
|
|
386
386
|
rollback: () => setCartLines(
|
|
387
|
-
reverseAdd(
|
|
387
|
+
reverseAdd(_chunkVEUB622Zcjs.useCartStore.getState().cartLines, item.invMastUid, item.quantity)
|
|
388
388
|
)
|
|
389
389
|
},
|
|
390
390
|
options,
|
|
@@ -407,7 +407,7 @@ function useCartActions(callbacks) {
|
|
|
407
407
|
if (target === null) return true;
|
|
408
408
|
const line = targetLine(liveLines, target);
|
|
409
409
|
const previousQuantity = line.quantity;
|
|
410
|
-
|
|
410
|
+
_chunkVEUB622Zcjs.useCartStore.getState().beginCartOp();
|
|
411
411
|
setCartLines(
|
|
412
412
|
liveLines.map((l) => isTarget(l, target) ? { ...l, quantity: newQuantity } : l)
|
|
413
413
|
);
|
|
@@ -419,7 +419,7 @@ function useCartActions(callbacks) {
|
|
|
419
419
|
errorMessage: "Failed to update quantity. Please try again.",
|
|
420
420
|
showToast,
|
|
421
421
|
rollback: () => setCartLines(
|
|
422
|
-
reverseQuantity(
|
|
422
|
+
reverseQuantity(_chunkVEUB622Zcjs.useCartStore.getState().cartLines, target, previousQuantity)
|
|
423
423
|
)
|
|
424
424
|
},
|
|
425
425
|
options,
|
|
@@ -436,7 +436,7 @@ function useCartActions(callbacks) {
|
|
|
436
436
|
const target = targetOf(liveLines, invMastUid, unitOfMeasure);
|
|
437
437
|
if (target === null) return true;
|
|
438
438
|
const removedLine = targetLine(liveLines, target);
|
|
439
|
-
|
|
439
|
+
_chunkVEUB622Zcjs.useCartStore.getState().beginCartOp();
|
|
440
440
|
setCartLines(liveLines.filter((l) => !isTarget(l, target)));
|
|
441
441
|
return settleCartOp(
|
|
442
442
|
{
|
|
@@ -446,7 +446,7 @@ function useCartActions(callbacks) {
|
|
|
446
446
|
infoMessage: `${itemId || "Item"} removed from cart`,
|
|
447
447
|
errorMessage: "Failed to remove item. Please try again.",
|
|
448
448
|
showToast,
|
|
449
|
-
rollback: () => setCartLines(restoreRemoved(
|
|
449
|
+
rollback: () => setCartLines(restoreRemoved(_chunkVEUB622Zcjs.useCartStore.getState().cartLines, target, removedLine))
|
|
450
450
|
},
|
|
451
451
|
options,
|
|
452
452
|
notify,
|
|
@@ -459,7 +459,7 @@ function useCartActions(callbacks) {
|
|
|
459
459
|
async (options = {}) => {
|
|
460
460
|
const { showToast = true } = options;
|
|
461
461
|
const { uid, lines: snapshot } = liveCart();
|
|
462
|
-
|
|
462
|
+
_chunkVEUB622Zcjs.useCartStore.getState().beginCartOp();
|
|
463
463
|
setCartLines([]);
|
|
464
464
|
return settleCartOp(
|
|
465
465
|
{
|
|
@@ -469,7 +469,7 @@ function useCartActions(callbacks) {
|
|
|
469
469
|
infoMessage: "Cart cleared",
|
|
470
470
|
errorMessage: "Failed to clear cart. Please try again.",
|
|
471
471
|
showToast,
|
|
472
|
-
rollback: () => setCartLines(mergeRestore(
|
|
472
|
+
rollback: () => setCartLines(mergeRestore(_chunkVEUB622Zcjs.useCartStore.getState().cartLines, snapshot))
|
|
473
473
|
},
|
|
474
474
|
options,
|
|
475
475
|
notify,
|
|
@@ -511,14 +511,14 @@ function useModalLifecycle(isOpen, onClose) {
|
|
|
511
511
|
setIsClient(true);
|
|
512
512
|
}, []);
|
|
513
513
|
_react.useEffect.call(void 0, () => {
|
|
514
|
-
document.body.style.overflow =
|
|
514
|
+
document.body.style.overflow = _chunkVEUB622Zcjs.bodyOverflow.call(void 0, isOpen);
|
|
515
515
|
return () => {
|
|
516
516
|
document.body.style.overflow = "auto";
|
|
517
517
|
};
|
|
518
518
|
}, [isOpen]);
|
|
519
519
|
_react.useEffect.call(void 0, () => {
|
|
520
520
|
const handleEscape = (e) => {
|
|
521
|
-
if (
|
|
521
|
+
if (_chunkVEUB622Zcjs.closesOnKey.call(void 0, e.key, isOpen)) onClose();
|
|
522
522
|
};
|
|
523
523
|
document.addEventListener("keydown", handleEscape);
|
|
524
524
|
return () => document.removeEventListener("keydown", handleEscape);
|
|
@@ -529,6 +529,7 @@ function useModalLifecycle(isOpen, onClose) {
|
|
|
529
529
|
// src/hooks/use-cart-initialization.ts
|
|
530
530
|
|
|
531
531
|
|
|
532
|
+
|
|
532
533
|
var MAX_RETRY_ATTEMPTS = 7;
|
|
533
534
|
var RETRY_DELAY_MS = 1e3;
|
|
534
535
|
var LOOKUP_RESTART_MS = 3e4;
|
|
@@ -548,10 +549,10 @@ function useCartInitialization(session, callbacks) {
|
|
|
548
549
|
const saveCartToken = _nullishCoalesce(callbacks.saveCartToken, () => ( defaultSaveCartToken));
|
|
549
550
|
const generateCartToken = _nullishCoalesce(callbacks.generateCartToken, () => ( defaultGenerateCartToken));
|
|
550
551
|
const auth = useAugurAuth();
|
|
551
|
-
const cartHdrUid =
|
|
552
|
-
const setCartHdrUid =
|
|
553
|
-
const setCartLines =
|
|
554
|
-
const clearCart =
|
|
552
|
+
const cartHdrUid = _chunkVEUB622Zcjs.useCartHdrUid.call(void 0, );
|
|
553
|
+
const setCartHdrUid = _chunkVEUB622Zcjs.useSetCartHdrUid.call(void 0, );
|
|
554
|
+
const setCartLines = _chunkVEUB622Zcjs.useSetCartLines.call(void 0, );
|
|
555
|
+
const clearCart = _chunkVEUB622Zcjs.useClearCart.call(void 0, );
|
|
555
556
|
const queryClient = _reactquery.useQueryClient.call(void 0, );
|
|
556
557
|
const effectiveStatus = session.status;
|
|
557
558
|
const effectiveUserId = _nullishCoalesce(session.userId, () => ( _optionalChain([auth, 'optionalAccess', _17 => _17.userId])));
|
|
@@ -578,7 +579,7 @@ function useCartInitialization(session, callbacks) {
|
|
|
578
579
|
}
|
|
579
580
|
}, [effectiveSession.status, clearCart, queryClient]);
|
|
580
581
|
_react.useEffect.call(void 0, () => {
|
|
581
|
-
const step =
|
|
582
|
+
const step = _chunkVEUB622Zcjs.initStepOf.call(void 0,
|
|
582
583
|
effectiveSession.status === "loading",
|
|
583
584
|
effectiveSession.status === "authenticated",
|
|
584
585
|
!!effectiveSession.cartHdrUid,
|
|
@@ -604,10 +605,10 @@ function useCartInitialization(session, callbacks) {
|
|
|
604
605
|
try {
|
|
605
606
|
const cartHdr = await callbacks.cartHdrLookup(lookupUserId, cartToken);
|
|
606
607
|
if (cartHdr && cartHdr.cartHdrUid !== 0) {
|
|
607
|
-
const stillApplies =
|
|
608
|
+
const stillApplies = _chunkVEUB622Zcjs.acceptsLookup.call(void 0,
|
|
608
609
|
forUser,
|
|
609
610
|
statusRef.current === "authenticated",
|
|
610
|
-
!!
|
|
611
|
+
!!_chunkVEUB622Zcjs.useCartStore.getState().cartHdrUid
|
|
611
612
|
);
|
|
612
613
|
if (stillApplies) {
|
|
613
614
|
saveCartToken(cartToken);
|
|
@@ -624,7 +625,9 @@ function useCartInitialization(session, callbacks) {
|
|
|
624
625
|
await waitBeforeRetry(retryCountRef.current);
|
|
625
626
|
}
|
|
626
627
|
}
|
|
627
|
-
console.error(
|
|
628
|
+
console.error(
|
|
629
|
+
_augurutils.errorLogLine.call(void 0, `Cart initialization failed after ${MAX_RETRY_ATTEMPTS} attempts`, lastError)
|
|
630
|
+
);
|
|
628
631
|
isInitializingRef.current = false;
|
|
629
632
|
restartTimerRef.current = setTimeout(() => setLookupRound((n) => n + 1), LOOKUP_RESTART_MS);
|
|
630
633
|
};
|
|
@@ -646,7 +649,7 @@ function useCartInitialization(session, callbacks) {
|
|
|
646
649
|
structuralSharing: false
|
|
647
650
|
});
|
|
648
651
|
_react.useEffect.call(void 0, () => {
|
|
649
|
-
if (cartLinesData &&
|
|
652
|
+
if (cartLinesData && _chunkVEUB622Zcjs.cartIdle.call(void 0, _chunkVEUB622Zcjs.useCartStore.getState().pendingCartOps)) {
|
|
650
653
|
setCartLines(cartLinesData);
|
|
651
654
|
}
|
|
652
655
|
}, [cartLinesData, setCartLines]);
|
|
@@ -669,6 +672,7 @@ function useCartInitialization(session, callbacks) {
|
|
|
669
672
|
|
|
670
673
|
|
|
671
674
|
|
|
675
|
+
|
|
672
676
|
function derivedOrRefused(priceData, quantity) {
|
|
673
677
|
try {
|
|
674
678
|
return _augurutils.derivePrice.call(void 0, { priceData, quantity });
|
|
@@ -681,43 +685,46 @@ function deriveLineUnitPrice(priceData, quantity) {
|
|
|
681
685
|
const hasQuantity = typeof quantity === "number" && Number.isFinite(quantity);
|
|
682
686
|
const derived = hasQuantity ? derivedOrRefused(priceData, quantity) : null;
|
|
683
687
|
const priced = _optionalChain([derived, 'optionalAccess', _19 => _19.state]) === "priced";
|
|
684
|
-
return
|
|
688
|
+
return _chunkVEUB622Zcjs.lineUnitPrice.call(void 0, hasQuantity, priced, priced ? derived.unitPrice : 0);
|
|
685
689
|
}
|
|
686
690
|
function lineTotal(unitPrice, quantity) {
|
|
687
691
|
return Number.isFinite(quantity) ? _augurutils.cleanMoney.call(void 0, unitPrice * quantity) : 0;
|
|
688
692
|
}
|
|
693
|
+
function keyedPriceQuery(itemId, customerId, quantity, unitOfMeasure, enabled, priceFn) {
|
|
694
|
+
return _reactquery.queryOptions.call(void 0, {
|
|
695
|
+
queryKey: ["price", _optionalChain([itemId, 'optionalAccess', _20 => _20.toUpperCase, 'call', _21 => _21()]) || "", customerId, quantity, _nullishCoalesce(unitOfMeasure, () => ( ""))],
|
|
696
|
+
queryFn: priceFn && customerId !== null ? () => priceFn(itemId, customerId, quantity, unitOfMeasure) : _reactquery.skipToken,
|
|
697
|
+
refetchOnReconnect: true,
|
|
698
|
+
refetchOnWindowFocus: false,
|
|
699
|
+
meta: { persist: true },
|
|
700
|
+
enabled
|
|
701
|
+
});
|
|
702
|
+
}
|
|
689
703
|
function useCartPricing(options = {}) {
|
|
690
704
|
const proxy = useAugurOptions();
|
|
691
705
|
const auth = useAugurAuth();
|
|
692
706
|
const site = useAugurSite();
|
|
693
|
-
const cartLines =
|
|
694
|
-
const customerId =
|
|
707
|
+
const cartLines = _chunkVEUB622Zcjs.useCartLines.call(void 0, );
|
|
708
|
+
const customerId = _augurutils.resolveAddressId.call(void 0,
|
|
709
|
+
options.customerId,
|
|
710
|
+
_optionalChain([auth, 'optionalAccess', _22 => _22.customerId]),
|
|
711
|
+
_optionalChain([site, 'optionalAccess', _23 => _23.defaults, 'optionalAccess', _24 => _24.customerId])
|
|
712
|
+
);
|
|
695
713
|
const priceFn = options.queryFn;
|
|
696
|
-
const runs = cartLines.map(
|
|
714
|
+
const runs = cartLines.map(
|
|
715
|
+
(line) => _augurutils.priceQueryRuns.call(void 0, customerId !== null, !!line.itemId, line.quantity)
|
|
716
|
+
);
|
|
697
717
|
const priceQueries = _reactquery.useQueries.call(void 0, {
|
|
698
718
|
queries: cartLines.map((line, index) => {
|
|
699
719
|
const quantity = _nullishCoalesce(line.quantity, () => ( 0));
|
|
700
720
|
const enabled = runs[index] === true;
|
|
701
721
|
const unitOfMeasure = _nullishCoalesce(_augurutils.priceQueryUnit.call(void 0, line.unitOfMeasure), () => ( void 0));
|
|
702
|
-
if (priceFn) {
|
|
703
|
-
return
|
|
704
|
-
queryKey: [
|
|
705
|
-
"price",
|
|
706
|
-
_optionalChain([line, 'access', _23 => _23.itemId, 'optionalAccess', _24 => _24.toUpperCase, 'call', _25 => _25()]) || "",
|
|
707
|
-
customerId,
|
|
708
|
-
quantity,
|
|
709
|
-
_nullishCoalesce(unitOfMeasure, () => ( ""))
|
|
710
|
-
],
|
|
711
|
-
queryFn: () => priceFn(line.itemId, customerId, quantity, unitOfMeasure),
|
|
712
|
-
refetchOnReconnect: true,
|
|
713
|
-
refetchOnWindowFocus: false,
|
|
714
|
-
meta: { persist: true },
|
|
715
|
-
enabled
|
|
716
|
-
};
|
|
722
|
+
if (priceFn || customerId === null) {
|
|
723
|
+
return keyedPriceQuery(line.itemId, customerId, quantity, unitOfMeasure, enabled, priceFn);
|
|
717
724
|
}
|
|
718
725
|
const proxyOpts = proxy.pricing.priceEngine.list({
|
|
719
|
-
itemId: _optionalChain([line, 'access',
|
|
720
|
-
customerId
|
|
726
|
+
itemId: _optionalChain([line, 'access', _25 => _25.itemId, 'optionalAccess', _26 => _26.toUpperCase, 'call', _27 => _27()]) || "",
|
|
727
|
+
customerId,
|
|
721
728
|
quantity,
|
|
722
729
|
unitOfMeasure
|
|
723
730
|
});
|
|
@@ -732,7 +739,7 @@ function useCartPricing(options = {}) {
|
|
|
732
739
|
});
|
|
733
740
|
const linePrices = _react.useMemo.call(void 0,
|
|
734
741
|
() => cartLines.map((line, index) => {
|
|
735
|
-
const priceData = _optionalChain([priceQueries, 'access',
|
|
742
|
+
const priceData = _optionalChain([priceQueries, 'access', _28 => _28[index], 'optionalAccess', _29 => _29.data]);
|
|
736
743
|
if (!priceData) return null;
|
|
737
744
|
return {
|
|
738
745
|
unitPrice: deriveLineUnitPrice(priceData, line.quantity),
|
|
@@ -741,7 +748,7 @@ function useCartPricing(options = {}) {
|
|
|
741
748
|
}),
|
|
742
749
|
[cartLines, priceQueries]
|
|
743
750
|
);
|
|
744
|
-
const lineUnitPrices = _react.useMemo.call(void 0, () => linePrices.map((p) => _nullishCoalesce(_optionalChain([p, 'optionalAccess',
|
|
751
|
+
const lineUnitPrices = _react.useMemo.call(void 0, () => linePrices.map((p) => _nullishCoalesce(_optionalChain([p, 'optionalAccess', _30 => _30.unitPrice]), () => ( 0))), [linePrices]);
|
|
745
752
|
const prices = _react.useMemo.call(void 0, () => {
|
|
746
753
|
const map = {};
|
|
747
754
|
cartLines.forEach((line, index) => {
|
|
@@ -752,7 +759,7 @@ function useCartPricing(options = {}) {
|
|
|
752
759
|
}, [cartLines, linePrices]);
|
|
753
760
|
const getUnitPrice = _react.useMemo.call(void 0, () => {
|
|
754
761
|
return (itemId) => {
|
|
755
|
-
return _nullishCoalesce(_optionalChain([prices, 'access',
|
|
762
|
+
return _nullishCoalesce(_optionalChain([prices, 'access', _31 => _31[_optionalChain([itemId, 'optionalAccess', _32 => _32.toUpperCase, 'call', _33 => _33()])], 'optionalAccess', _34 => _34.unitPrice]), () => ( 0));
|
|
756
763
|
};
|
|
757
764
|
}, [prices]);
|
|
758
765
|
const getItemTotal = _react.useMemo.call(void 0, () => {
|
|
@@ -764,7 +771,7 @@ function useCartPricing(options = {}) {
|
|
|
764
771
|
return (index) => _augurutils.linePriceAt.call(void 0, lineUnitPrices, index);
|
|
765
772
|
}, [lineUnitPrices]);
|
|
766
773
|
const getLineTotal = _react.useMemo.call(void 0, () => {
|
|
767
|
-
return (index) => lineTotal(_augurutils.linePriceAt.call(void 0, lineUnitPrices, index), _nullishCoalesce(_optionalChain([cartLines, 'access',
|
|
774
|
+
return (index) => lineTotal(_augurutils.linePriceAt.call(void 0, lineUnitPrices, index), _nullishCoalesce(_optionalChain([cartLines, 'access', _35 => _35[index], 'optionalAccess', _36 => _36.quantity]), () => ( null)));
|
|
768
775
|
}, [cartLines, lineUnitPrices]);
|
|
769
776
|
const subtotal = _react.useMemo.call(void 0, () => {
|
|
770
777
|
return cartLines.reduce(
|
|
@@ -857,7 +864,7 @@ function deserialize(data) {
|
|
|
857
864
|
|
|
858
865
|
// src/persistence/apply-limits.ts
|
|
859
866
|
function applyLimits(data, limits) {
|
|
860
|
-
const queries = _optionalChain([data, 'access',
|
|
867
|
+
const queries = _optionalChain([data, 'access', _37 => _37.clientState, 'optionalAccess', _38 => _38.queries]);
|
|
861
868
|
if (!queries || Object.keys(limits).length === 0) return data;
|
|
862
869
|
const entries = queries;
|
|
863
870
|
const unlimited = [];
|
|
@@ -941,7 +948,7 @@ function createPersister(config) {
|
|
|
941
948
|
var CHECK_INTERVAL = _augurutils.toMillis.call(void 0, _augurutils.minutes.call(void 0, 5));
|
|
942
949
|
function useStorageMonitor(config) {
|
|
943
950
|
const { key, limits = {}, maxStorageMB = 3 } = config;
|
|
944
|
-
const limitKeysRef =
|
|
951
|
+
const limitKeysRef = _chunkVEUB622Zcjs.useLatest.call(void 0, Object.keys(limits));
|
|
945
952
|
const limitCount = limitKeysRef.current.length;
|
|
946
953
|
_react.useEffect.call(void 0, () => {
|
|
947
954
|
const limitKeys = limitKeysRef.current;
|
|
@@ -959,7 +966,7 @@ function useStorageMonitor(config) {
|
|
|
959
966
|
const raw = storage.getItem(key);
|
|
960
967
|
if (!raw) return;
|
|
961
968
|
const parsed = JSON.parse(raw);
|
|
962
|
-
if (!_optionalChain([parsed, 'access',
|
|
969
|
+
if (!_optionalChain([parsed, 'access', _39 => _39.clientState, 'optionalAccess', _40 => _40.queries])) return;
|
|
963
970
|
parsed.clientState.queries = parsed.clientState.queries.filter(
|
|
964
971
|
(q) => {
|
|
965
972
|
if (!Array.isArray(q.queryKey)) return true;
|
|
@@ -987,14 +994,14 @@ function useAugurPersistence(config) {
|
|
|
987
994
|
setIsMounted(true);
|
|
988
995
|
}, []);
|
|
989
996
|
useStorageMonitor(config);
|
|
990
|
-
const isDev = typeof process !== "undefined" && _optionalChain([process, 'access',
|
|
997
|
+
const isDev = typeof process !== "undefined" && _optionalChain([process, 'access', _41 => _41.env, 'optionalAccess', _42 => _42["NODE_ENV"]]) === "development";
|
|
991
998
|
const { persistableKeys } = config;
|
|
992
999
|
const dehydrateOptions = _react.useMemo.call(void 0,
|
|
993
1000
|
() => ({
|
|
994
1001
|
shouldDehydrateQuery: (query) => {
|
|
995
1002
|
const key = query.queryKey;
|
|
996
1003
|
const hasHead = Array.isArray(key) && key.length > 0;
|
|
997
|
-
return
|
|
1004
|
+
return _chunkVEUB622Zcjs.shouldPersistOf.call(void 0,
|
|
998
1005
|
hasHead,
|
|
999
1006
|
query.state.status === "success",
|
|
1000
1007
|
hasHead && persistableKeys.includes(key[0])
|
|
@@ -1015,11 +1022,11 @@ function useAugurPersistence(config) {
|
|
|
1015
1022
|
|
|
1016
1023
|
function keyPathOf(key) {
|
|
1017
1024
|
const segments = _nullishCoalesce(key, () => ( []));
|
|
1018
|
-
const n =
|
|
1025
|
+
const n = _chunkVEUB622Zcjs.leadingTextsFrom.call(void 0,
|
|
1019
1026
|
segments.map((s) => typeof s === "string"),
|
|
1020
1027
|
0
|
|
1021
1028
|
);
|
|
1022
|
-
return
|
|
1029
|
+
return _chunkVEUB622Zcjs.keyPathFrom.call(void 0, segments, n);
|
|
1023
1030
|
}
|
|
1024
1031
|
function clearUserReadsOnWrite(queryClient, mutationKey) {
|
|
1025
1032
|
const writePath = keyPathOf(mutationKey);
|
|
@@ -1072,5 +1079,5 @@ function userWriteClearing(getQueryClient) {
|
|
|
1072
1079
|
|
|
1073
1080
|
|
|
1074
1081
|
|
|
1075
|
-
exports.AugurHooksProvider = AugurHooksProvider; exports.clearCheckoutPersistence =
|
|
1082
|
+
exports.AugurHooksProvider = AugurHooksProvider; exports.clearCheckoutPersistence = _chunkVEUB622Zcjs.clearCheckoutPersistence; exports.clearFromSession = _chunkVEUB622Zcjs.clearFromSession; exports.clearUserReadsOnWrite = clearUserReadsOnWrite; exports.determineOrderReadiness = _chunkVEUB622Zcjs.determineOrderReadiness; exports.executeBatchQuery = _chunkWJ4D5OCQcjs.executeBatchQuery; exports.getRegisteredQueryAction = _chunkWJ4D5OCQcjs.getRegisteredQueryAction; exports.keyPathOf = keyPathOf; exports.loadFromSession = _chunkVEUB622Zcjs.loadFromSession; exports.registerQueryAction = _chunkWJ4D5OCQcjs.registerQueryAction; exports.saveToSession = _chunkVEUB622Zcjs.saveToSession; exports.useAugurApi = useAugurApi; exports.useAugurApiOptional = useAugurApiOptional; exports.useAugurAuth = useAugurAuth; exports.useAugurCache = useAugurCache; exports.useAugurOptions = useAugurOptions; exports.useAugurPersistence = useAugurPersistence; exports.useAugurSite = useAugurSite; exports.useCartActions = useCartActions; exports.useCartHdrUid = _chunkVEUB622Zcjs.useCartHdrUid; exports.useCartInitialization = useCartInitialization; exports.useCartLineCount = _chunkVEUB622Zcjs.useCartLineCount; exports.useCartLines = _chunkVEUB622Zcjs.useCartLines; exports.useCartPricing = useCartPricing; exports.useCartQuantityTotal = _chunkVEUB622Zcjs.useCartQuantityTotal; exports.useCartStore = _chunkVEUB622Zcjs.useCartStore; exports.useCheckoutPersistence = _chunkVEUB622Zcjs.useCheckoutPersistence; exports.useClearCart = _chunkVEUB622Zcjs.useClearCart; exports.useDebounce = useDebounce; exports.useFormatPrice = useFormatPrice; exports.useItemFiltersStore = useItemFiltersStore; exports.useModalLifecycle = useModalLifecycle; exports.useOrderReadiness = _chunkVEUB622Zcjs.useOrderReadiness; exports.usePaginationPrefetch = usePaginationPrefetch; exports.usePaymentFlow = _chunkVEUB622Zcjs.usePaymentFlow; exports.useSetCartHdrUid = _chunkVEUB622Zcjs.useSetCartHdrUid; exports.useSetCartLines = _chunkVEUB622Zcjs.useSetCartLines; exports.useStock = useStock; exports.userWriteClearing = userWriteClearing;
|
|
1076
1083
|
//# sourceMappingURL=index.cjs.map
|