@fayz-ai/pos 0.24.6 → 0.24.7
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
|
@@ -10376,7 +10376,7 @@ function CancelSheet({ ticket, party = [], reasons, error, onCancel, onConfirm }
|
|
|
10376
10376
|
(error || impedimento && enviados.length > 0) && /* @__PURE__ */ jsx("p", { className: "pos-sheet__why", "data-error": error ? "" : void 0, children: error ?? impedimento })
|
|
10377
10377
|
] });
|
|
10378
10378
|
}
|
|
10379
|
-
function MarketplaceCancelSheet({ provider, orderLabel, loadReasons, onConfirm, onCancel }) {
|
|
10379
|
+
function MarketplaceCancelSheet({ provider, orderLabel, loadReasons, onConfirm, onCancel, hint, confirmLabel }) {
|
|
10380
10380
|
const [reasons, setReasons] = useState(null);
|
|
10381
10381
|
const [failed, setFailed] = useState(false);
|
|
10382
10382
|
const [chosen, setChosen] = useState(null);
|
|
@@ -10405,11 +10405,7 @@ function MarketplaceCancelSheet({ provider, orderLabel, loadReasons, onConfirm,
|
|
|
10405
10405
|
] }),
|
|
10406
10406
|
/* @__PURE__ */ jsx(PosButton, { className: "pos-sheet__x", onClick: onCancel, "aria-label": "Fechar", children: /* @__PURE__ */ jsx(X, { size: 20 }) })
|
|
10407
10407
|
] }),
|
|
10408
|
-
/* @__PURE__ */
|
|
10409
|
-
"O ",
|
|
10410
|
-
provider,
|
|
10411
|
-
" decide o cancelamento. Escolha um dos motivos que ele aceita para este pedido."
|
|
10412
|
-
] }),
|
|
10408
|
+
/* @__PURE__ */ jsx("p", { className: "pos-sheet__sub", children: hint ?? `O ${provider} decide o cancelamento. Escolha um dos motivos que ele aceita para este pedido.` }),
|
|
10413
10409
|
/* @__PURE__ */ jsx("div", { className: "pos-sheet__body", children: failed ? /* @__PURE__ */ jsx(
|
|
10414
10410
|
EmptyState,
|
|
10415
10411
|
{
|
|
@@ -10445,7 +10441,7 @@ function MarketplaceCancelSheet({ provider, orderLabel, loadReasons, onConfirm,
|
|
|
10445
10441
|
setSending(false);
|
|
10446
10442
|
}
|
|
10447
10443
|
},
|
|
10448
|
-
children: sending ? "Enviando\u2026" : `Pedir cancelamento ao ${provider}`
|
|
10444
|
+
children: sending ? "Enviando\u2026" : confirmLabel ?? `Pedir cancelamento ao ${provider}`
|
|
10449
10445
|
}
|
|
10450
10446
|
)
|
|
10451
10447
|
] })
|