@fayz-ai/pos 0.24.5 → 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
|
@@ -4912,7 +4912,9 @@ var ORIGEM = {
|
|
|
4912
4912
|
ifood: "iFood",
|
|
4913
4913
|
opendelivery: "OpenDelivery / 99",
|
|
4914
4914
|
whatsapp: "WhatsApp",
|
|
4915
|
-
digital_menu: "Card\xE1pio digital"
|
|
4915
|
+
digital_menu: "Card\xE1pio digital",
|
|
4916
|
+
// The store's own storefront (shop 0134).
|
|
4917
|
+
site: "Site"
|
|
4916
4918
|
};
|
|
4917
4919
|
function deliveryOriginLabel(source) {
|
|
4918
4920
|
return ORIGEM[source ?? ""] ?? (source || "Delivery pr\xF3prio");
|
|
@@ -10374,7 +10376,7 @@ function CancelSheet({ ticket, party = [], reasons, error, onCancel, onConfirm }
|
|
|
10374
10376
|
(error || impedimento && enviados.length > 0) && /* @__PURE__ */ jsx("p", { className: "pos-sheet__why", "data-error": error ? "" : void 0, children: error ?? impedimento })
|
|
10375
10377
|
] });
|
|
10376
10378
|
}
|
|
10377
|
-
function MarketplaceCancelSheet({ provider, orderLabel, loadReasons, onConfirm, onCancel }) {
|
|
10379
|
+
function MarketplaceCancelSheet({ provider, orderLabel, loadReasons, onConfirm, onCancel, hint, confirmLabel }) {
|
|
10378
10380
|
const [reasons, setReasons] = useState(null);
|
|
10379
10381
|
const [failed, setFailed] = useState(false);
|
|
10380
10382
|
const [chosen, setChosen] = useState(null);
|
|
@@ -10403,11 +10405,7 @@ function MarketplaceCancelSheet({ provider, orderLabel, loadReasons, onConfirm,
|
|
|
10403
10405
|
] }),
|
|
10404
10406
|
/* @__PURE__ */ jsx(PosButton, { className: "pos-sheet__x", onClick: onCancel, "aria-label": "Fechar", children: /* @__PURE__ */ jsx(X, { size: 20 }) })
|
|
10405
10407
|
] }),
|
|
10406
|
-
/* @__PURE__ */
|
|
10407
|
-
"O ",
|
|
10408
|
-
provider,
|
|
10409
|
-
" decide o cancelamento. Escolha um dos motivos que ele aceita para este pedido."
|
|
10410
|
-
] }),
|
|
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.` }),
|
|
10411
10409
|
/* @__PURE__ */ jsx("div", { className: "pos-sheet__body", children: failed ? /* @__PURE__ */ jsx(
|
|
10412
10410
|
EmptyState,
|
|
10413
10411
|
{
|
|
@@ -10443,7 +10441,7 @@ function MarketplaceCancelSheet({ provider, orderLabel, loadReasons, onConfirm,
|
|
|
10443
10441
|
setSending(false);
|
|
10444
10442
|
}
|
|
10445
10443
|
},
|
|
10446
|
-
children: sending ? "Enviando\u2026" : `Pedir cancelamento ao ${provider}`
|
|
10444
|
+
children: sending ? "Enviando\u2026" : confirmLabel ?? `Pedir cancelamento ao ${provider}`
|
|
10447
10445
|
}
|
|
10448
10446
|
)
|
|
10449
10447
|
] })
|