@plurix/ecom-components 1.14.1-eng-task-1249.17 → 1.14.1-eng-task-1249.18

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.
@@ -25,5 +25,5 @@ interface CustomDataMutationResponse {
25
25
  export interface idSubstitutionCriteriasProps {
26
26
  [key: string]: string;
27
27
  }
28
- export declare const ChangeOrderModal: ({ selectedItem, postalCode, orderFormId, isClubClient, isOpen, environment, setIsOpen, saveSelectedSimilarProduct, getOrderFormMutation, getProductsSimilarsMutation, postChangeOrderMutation }: ChangeOrderModalProps) => import("react/jsx-runtime").JSX.Element;
28
+ export declare const ChangeOrderModal: ({ selectedItem, postalCode, orderFormId, isClubClient, isOpen, environment, setIsOpen, saveSelectedSimilarProduct, getOrderFormMutation, getProductsSimilarsMutation, postChangeOrderMutation }: ChangeOrderModalProps) => import("react/jsx-runtime").JSX.Element | undefined;
29
29
  export {};
@@ -13,40 +13,42 @@ import { Skeleton as Q } from "../Skeleton/index.js";
13
13
  const so = ({
14
14
  selectedItem: o,
15
15
  postalCode: O,
16
- orderFormId: d,
16
+ orderFormId: m,
17
17
  isClubClient: y,
18
18
  isOpen: b,
19
19
  environment: C,
20
20
  setIsOpen: p,
21
- saveSelectedSimilarProduct: c,
21
+ saveSelectedSimilarProduct: d,
22
22
  getOrderFormMutation: l,
23
- getProductsSimilarsMutation: F,
24
- postChangeOrderMutation: P
23
+ getProductsSimilarsMutation: P,
24
+ postChangeOrderMutation: x
25
25
  }) => {
26
- const [s, x] = f(), [N, m] = f(!1), r = C === "io", { genericTaggingEvent: j } = B(), [t, g] = f({ itemId: "" });
26
+ const [s, F] = f(), [N, u] = f(!1), r = C === "io", { genericTaggingEvent: j } = B(), [t, g] = f({ itemId: "" });
27
+ if (!m)
28
+ return;
27
29
  _(() => {
28
30
  (async () => {
29
- m(!0);
31
+ u(!0);
30
32
  try {
31
33
  const i = await z({
32
34
  postalCode: O,
33
35
  selectedItem: o,
34
36
  isIO: r,
35
- getProductsSimilarsMutation: F
36
- }), u = (i == null ? void 0 : i.products) || [];
37
- x(u);
37
+ getProductsSimilarsMutation: P
38
+ }), c = (i == null ? void 0 : i.products) || [];
39
+ F(c);
38
40
  } finally {
39
- m(!1);
41
+ u(!1);
40
42
  }
41
43
  })(), (async () => {
42
- var i, u, h;
43
- m(!0);
44
+ var i, c, h;
45
+ u(!0);
44
46
  try {
45
- const w = r && H(d, r), k = l && await l({
47
+ const w = r && H(m, r), k = l && await l({
46
48
  input: {
47
- orderFormId: d
49
+ orderFormId: m
48
50
  }
49
- }) || { getOrderForm: { data: "" } }, e = r ? w : JSON.parse((i = k.getOrderForm) == null ? void 0 : i.data), n = ((h = (u = e == null ? void 0 : e.customData) == null ? void 0 : u.customApps) == null ? void 0 : h.find(
51
+ }) || { getOrderForm: { data: "" } }, e = r ? w : JSON.parse((i = k.getOrderForm) == null ? void 0 : i.data), n = ((h = (c = e == null ? void 0 : e.customData) == null ? void 0 : c.customApps) == null ? void 0 : h.find(
50
52
  (E) => E.id === "janis"
51
53
  )) || null;
52
54
  let S = {};
@@ -58,18 +60,18 @@ const so = ({
58
60
  itemId: `${S[A]}`
59
61
  });
60
62
  } finally {
61
- m(!1);
63
+ u(!1);
62
64
  }
63
65
  })();
64
66
  }, []);
65
67
  const q = () => {
66
68
  K(
67
- d,
69
+ m,
68
70
  r,
69
71
  o.productOriginId,
70
72
  t.itemId,
71
- P
72
- ), t && (c == null || c(t), j("salvar_substituto", {
73
+ x
74
+ ), t && (d == null || d(t), j("salvar_substituto", {
73
75
  name: o.name,
74
76
  replacement_item: t == null ? void 0 : t.name
75
77
  })), p(!1);
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@plurix/ecom-components",
3
3
  "author": "Plurix",
4
4
  "private": false,
5
- "version": "1.14.1-eng-task-1249.17",
5
+ "version": "1.14.1-eng-task-1249.18",
6
6
  "type": "module",
7
7
  "main": "dist/main.js",
8
8
  "types": "dist/main.d.ts",