@suportepos/split-checkout 0.5.7 → 0.5.8

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.es.js CHANGED
@@ -21698,7 +21698,8 @@ function SplitCheckoutForm({
21698
21698
  uuid,
21699
21699
  resumo,
21700
21700
  parcelas,
21701
- urlApi
21701
+ urlApi,
21702
+ voltar
21702
21703
  }) {
21703
21704
  const [step, setStep] = useState("card");
21704
21705
  const maskCard = (v) => v.replace(/\D/g, "").trim();
@@ -22001,7 +22002,7 @@ function SplitCheckoutForm({
22001
22002
  ] }),
22002
22003
  /* @__PURE__ */ jsxRuntimeExports.jsx("input", { type: "hidden", className: "bp-sop-cardtype", value: "CreditCard" }),
22003
22004
  /* @__PURE__ */ jsxRuntimeExports.jsxs(Stack, { direction: { xs: "column", sm: "row" }, spacing: 2, sx: { mt: 1 }, children: [
22004
- /* @__PURE__ */ jsxRuntimeExports.jsx(Button, { variant: "outlined", onClick: onBack, fullWidth: true, sx: { py: 1.4 }, children: "Voltar" }),
22005
+ voltar && /* @__PURE__ */ jsxRuntimeExports.jsx(Button, { variant: "outlined", onClick: onBack, fullWidth: true, sx: { py: 1.4 }, children: "Voltar" }),
22005
22006
  /* @__PURE__ */ jsxRuntimeExports.jsx(Button, { variant: "contained", onClick: nextFromCard, disabled: loading, fullWidth: true, sx: { py: 1.4 }, children: "Continuar" })
22006
22007
  ] })
22007
22008
  ] })
@@ -22212,7 +22213,8 @@ function SplitPixForm({
22212
22213
  onResponse,
22213
22214
  uuid,
22214
22215
  resumo,
22215
- urlApi
22216
+ urlApi,
22217
+ voltar
22216
22218
  }) {
22217
22219
  useMediaQuery("(max-width:900px)");
22218
22220
  const [copied, setCopied] = useState(false);
@@ -22360,7 +22362,7 @@ function SplitPixForm({
22360
22362
  }
22361
22363
  ),
22362
22364
  /* @__PURE__ */ jsxRuntimeExports.jsxs(Stack, { direction: { xs: "column", sm: "row" }, spacing: 2, children: [
22363
- /* @__PURE__ */ jsxRuntimeExports.jsx(Button, { variant: "outlined", onClick: onBack, disabled: loading, fullWidth: true, sx: { py: 1.4 }, children: "Voltar" }),
22365
+ voltar && /* @__PURE__ */ jsxRuntimeExports.jsx(Button, { variant: "outlined", onClick: onBack, disabled: loading, fullWidth: true, sx: { py: 1.4 }, children: "Voltar" }),
22364
22366
  /* @__PURE__ */ jsxRuntimeExports.jsx(
22365
22367
  Button,
22366
22368
  {
@@ -22444,7 +22446,7 @@ function SplitPixForm({
22444
22446
  ),
22445
22447
  /* @__PURE__ */ jsxRuntimeExports.jsx(Divider, { sx: { my: 2 } }),
22446
22448
  /* @__PURE__ */ jsxRuntimeExports.jsxs(Stack, { direction: { xs: "column", sm: "row" }, spacing: 2, children: [
22447
- /* @__PURE__ */ jsxRuntimeExports.jsx(Button, { variant: "outlined", onClick: onBack, fullWidth: true, sx: { py: 1.4 }, children: "Voltar" }),
22449
+ voltar && /* @__PURE__ */ jsxRuntimeExports.jsx(Button, { variant: "outlined", onClick: onBack, fullWidth: true, sx: { py: 1.4 }, children: "Voltar" }),
22448
22450
  /* @__PURE__ */ jsxRuntimeExports.jsx(
22449
22451
  Button,
22450
22452
  {
@@ -22483,7 +22485,8 @@ function CheckoutFlowContent({
22483
22485
  onResponse,
22484
22486
  paymentEnabled,
22485
22487
  resumo,
22486
- parcelas
22488
+ parcelas,
22489
+ pagamento
22487
22490
  }) {
22488
22491
  useMediaQuery("(max-width:900px)");
22489
22492
  useTheme();
@@ -22556,7 +22559,8 @@ function CheckoutFlowContent({
22556
22559
  uuid,
22557
22560
  resumo,
22558
22561
  parcelas,
22559
- urlApi: apiUrl
22562
+ urlApi: apiUrl,
22563
+ voltar: pagamento ? false : true
22560
22564
  }
22561
22565
  );
22562
22566
  }
@@ -22576,7 +22580,8 @@ function CheckoutFlowContent({
22576
22580
  onResponse,
22577
22581
  uuid,
22578
22582
  resumo,
22579
- urlApi: apiUrl
22583
+ urlApi: apiUrl,
22584
+ voltar: pagamento ? false : true
22580
22585
  }
22581
22586
  );
22582
22587
  }