@springmicro/cart 0.6.1 → 0.6.2
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/index.js
CHANGED
|
@@ -29644,7 +29644,6 @@ function uC({
|
|
|
29644
29644
|
formDisabled: p,
|
|
29645
29645
|
formErrorState: f
|
|
29646
29646
|
}) {
|
|
29647
|
-
console.log("DISABLED", p);
|
|
29648
29647
|
const [b, x] = e, [y, v] = f;
|
|
29649
29648
|
return /* @__PURE__ */ m.jsx(
|
|
29650
29649
|
"form",
|
|
@@ -33190,7 +33189,7 @@ async function jI(e, t, n, r, a, i) {
|
|
|
33190
33189
|
const s = n.filter(
|
|
33191
33190
|
(c) => c.unit_amount > 0 && a[c.product_id].type !== "DONATION"
|
|
33192
33191
|
);
|
|
33193
|
-
return s.length === 0 ? { tax_amount: 0 } : await (await fetch(
|
|
33192
|
+
return i && console.log("Taxable items", s), s.length === 0 ? { tax_amount: 0 } : await (await fetch(
|
|
33194
33193
|
`${e}/api/ecommerce/tax?tax_provider=${t ?? "dummy"}`,
|
|
33195
33194
|
{
|
|
33196
33195
|
method: "POST",
|
|
@@ -33231,7 +33230,7 @@ function DI({
|
|
|
33231
33230
|
defaultValues: C = {},
|
|
33232
33231
|
dev: N
|
|
33233
33232
|
}) {
|
|
33234
|
-
console.log({ products: l, prices: s });
|
|
33233
|
+
N && console.log({ products: l, prices: s });
|
|
33235
33234
|
const [I, R] = qt(!0), [h, T] = qt(void 0), w = Yo(), V = Sy(w.breakpoints.down("lg")), [_, $] = a, [P, g] = n, [O, A] = u;
|
|
33236
33235
|
async function L(ee) {
|
|
33237
33236
|
T(void 0), R(!0), Promise.all([
|
|
@@ -33420,9 +33419,7 @@ function kI({ formik: e, products: t, prices: n }) {
|
|
|
33420
33419
|
)
|
|
33421
33420
|
)
|
|
33422
33421
|
// Overwrites the checkout field to use the last one provided. This allows prices to overwrite product checkout fields if necessary.
|
|
33423
|
-
].reduce((s, l) => ({ ...s, [l.name]: l }), {})
|
|
33424
|
-
console.log("Checkout fields", r);
|
|
33425
|
-
const a = (s) => {
|
|
33422
|
+
].reduce((s, l) => ({ ...s, [l.name]: l }), {}), a = (s) => {
|
|
33426
33423
|
const l = s.target.getAttribute("name");
|
|
33427
33424
|
l && e.setValues({
|
|
33428
33425
|
...e.values,
|