@fayz-ai/plugin-shop 0.34.0 → 0.35.0
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.
|
@@ -8,7 +8,7 @@ import React7__default, { useState, useEffect, useRef, useCallback, useMemo } fr
|
|
|
8
8
|
import { Button, Modal, ModalContent, ModalHeader, ModalTitle, ModalDescription, Input, ModalFooter, formatPhone, toast, Select, SelectTrigger, SelectValue, SelectContent, SelectItem, Textarea, DataTable, ConfirmDialog, Skeleton, ModalPortal, ModalOverlay, ModalBody, SearchSelect } from '@fayz-ai/ui';
|
|
9
9
|
import { RotateCcw, QrCode, Pencil, Archive, Ban, CreditCard, XCircle, ShoppingBag, Package, Wallet, Plus, WandSparkles, ChefHat, Bike, Check, X, CheckCircle2, Printer, RefreshCw, ExternalLink, Truck, AlertTriangle, Loader2, Copy, Link2, HandCoins, Share2, MessageCircle, MapPin } from 'lucide-react';
|
|
10
10
|
import { formatDocument, getShopProvider, CHARGEABLE_PROVIDERS, supportsPaymentLink, resolveShippingLabelProvider, getShopTenantId, documentDigits, isValidDocument } from '@fayz-ai/shop';
|
|
11
|
-
import { useAdminPath, adminNavigateTo, useOrderReceivable, OrderDetailSkeleton, PageActions,
|
|
11
|
+
import { useAdminPath, adminNavigateTo, useOrderReceivable, OrderDetailSkeleton, PageActions, WidgetSlot, ORDER_DETAIL_ZONES, OrderDetailBlock, OrderDetailRow, toOrderDetailReceivable, PersonLink, OrderDetailView as OrderDetailView$1, listPickablePriceTables, initialPriceTableId, OrderFormBlock, OrderCreateScreen, OrderListView, askAI, useConnectors, CrudRecordModal, AddressFormModal, useAgentSurface, customerPriceTableField, ClientOrdersTab, createClientOrdersProvider, duplicateWrite } from '@fayz-ai/admin';
|
|
12
12
|
import { FINANCIAL_ZONES } from '@fayz-ai/financial/views/zones';
|
|
13
13
|
import { usePluginRuntimeOptional, getWidgetsForZone, getSupabaseClientOptional, formatCurrency, tl, normalizeBrPhoneToE164, getActiveTenantId } from '@fayz-ai/core';
|
|
14
14
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
@@ -2253,6 +2253,7 @@ function OrderDetailView({ orderId, provider, onBack, fallback }) {
|
|
|
2253
2253
|
}
|
|
2254
2254
|
) ?? { rows: [], installments: [], emptyLabel: "Sem conta a receber para este pedido." },
|
|
2255
2255
|
extraSections: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
2256
|
+
/* @__PURE__ */ jsx(WidgetSlot, { zone: ORDER_DETAIL_ZONES.tickets, orderId: order.id, eventId: order.ticketEventId ?? null }),
|
|
2256
2257
|
/* @__PURE__ */ jsx(
|
|
2257
2258
|
OrderDeliveryPanel,
|
|
2258
2259
|
{
|
|
@@ -2267,7 +2268,7 @@ function OrderDetailView({ orderId, provider, onBack, fallback }) {
|
|
|
2267
2268
|
onStage: setDeliveryStage
|
|
2268
2269
|
}
|
|
2269
2270
|
),
|
|
2270
|
-
/* @__PURE__ */ jsx(OrderDetailBlock, { title: "Entrega", hint: "O que a log\xEDstica precisa", children: /* @__PURE__ */ jsxs("div", { className: "space-y-2 text-sm", children: [
|
|
2271
|
+
!order.ticketEventId && /* @__PURE__ */ jsx(OrderDetailBlock, { title: "Entrega", hint: "O que a log\xEDstica precisa", children: /* @__PURE__ */ jsxs("div", { className: "space-y-2 text-sm", children: [
|
|
2271
2272
|
addr ? /* @__PURE__ */ jsxs("div", { className: "space-y-0.5", children: [
|
|
2272
2273
|
/* @__PURE__ */ jsxs("p", { children: [
|
|
2273
2274
|
[addr.street, addr.number].filter(Boolean).join(", "),
|
|
@@ -4502,5 +4503,5 @@ var ShopPage = ({ provider, section }) => {
|
|
|
4502
4503
|
ShopPage.displayName = "ShopPage";
|
|
4503
4504
|
|
|
4504
4505
|
export { ShopOrderDetailSlot, ShopPage };
|
|
4505
|
-
//# sourceMappingURL=ShopPage-
|
|
4506
|
-
//# sourceMappingURL=ShopPage-
|
|
4506
|
+
//# sourceMappingURL=ShopPage-JYHYLRNQ.js.map
|
|
4507
|
+
//# sourceMappingURL=ShopPage-JYHYLRNQ.js.map
|