@vendure/dashboard 3.7.4-master-202609100211 → 3.7.4-master-202609120210
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/bundle/chunks/{2SSKDMRQ-Dd_q4Uvh.js → 2SSKDMRQ-CpRbj3yV.js} +2 -2
- package/dist/bundle/chunks/{AP7HFJJL-B0AXbe_G.js → AP7HFJJL-_aalgtfO.js} +1 -1
- package/dist/bundle/chunks/{WDYDFRGG-E_633R0G.js → WDYDFRGG-BOh7WOyA.js} +2 -2
- package/dist/bundle/chunks/{locale-BI0pkFra.js → locale-CR8peDne.js} +1 -1
- package/dist/bundle/chunks/{main-AAM0FjY7.js → main-D_rN3aKO.js} +104 -81
- package/dist/bundle/chunks/{use-job-queue-polling-BKkIiiI8.js → use-job-queue-polling-Cqr5CKxU.js} +263 -189
- package/dist/bundle/lib.js +4 -4
- package/dist/bundle/main.js +2 -2
- package/dist/vite/vite-plugin-translations.d.ts +4 -4
- package/dist/vite/vite-plugin-translations.js +17 -5
- package/package.json +4 -4
- package/src/app/routes/_authenticated/_customers/components/customer-address-card.tsx +1 -1
- package/src/app/routes/_authenticated/_orders/orders_.draft.$id.tsx +38 -24
- package/src/app/routes/_authenticated/_shipping-methods/components/test-address-form.tsx +2 -22
- package/src/lib/components/data-table/use-generated-columns.spec.tsx +137 -0
- package/src/lib/components/data-table/use-generated-columns.tsx +29 -5
- package/src/lib/components/shared/address-country-select.tsx +58 -0
- package/src/lib/components/shared/customer-address-form.tsx +3 -26
- package/src/lib/constants.ts +8 -9
- package/src/lib/hooks/use-available-countries.ts +10 -7
- package/src/lib/storage-keys.ts +16 -0
- package/src/lib/virtual.d.ts +5 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as createLocalStorage, T as THEME_PREFERENCE, P as PiPProvider, a as ThemeContext, b as ParentPanel, C as ContentView, Q as QueryDevtoolsContext } from "./AP7HFJJL-
|
|
2
|
-
import { g as getPreferredColorScheme, c as createMemo, a as createComponent } from "./main-
|
|
1
|
+
import { c as createLocalStorage, T as THEME_PREFERENCE, P as PiPProvider, a as ThemeContext, b as ParentPanel, C as ContentView, Q as QueryDevtoolsContext } from "./AP7HFJJL-_aalgtfO.js";
|
|
2
|
+
import { g as getPreferredColorScheme, c as createMemo, a as createComponent } from "./main-D_rN3aKO.js";
|
|
3
3
|
var DevtoolsPanelComponent = (props) => {
|
|
4
4
|
const [localStore, setLocalStore] = createLocalStorage({
|
|
5
5
|
prefix: "TanstackQueryDevtools"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as createContext, d as createSignal, o as onMount, e as createEffect, c as createMemo, a as createComponent, P as Portal, m as memo, S as Show, t as template, i as insert, f as createRenderEffect, h as className, j as clearDelegatedEvents, k as delegateEvents, u as useContext, l as onCleanup, s as sortFns, n as mutationSortFns, p as on, q as setAttribute, r as getSidedProp, v as use, w as convertRemToPixels, x as createUniqueId, y as batch, z as getQueryStatusLabel, A as getMutationStatusColor, B as getQueryStatusColor, C as getQueryStatusColorByLabel, D as displayValue, F as For, E as untrack, $ as $TRACK, G as useTransition, H as spread, I as mergeProps, J as createRoot, K as serialize, L as Index, M as updateNestedDataByPath, N as addEventListener, O as stringify, Q as Match, R as Switch, T as deleteNestedDataByPath, U as splitProps, V as Dynamic, W as createComputed } from "./main-
|
|
1
|
+
import { b as createContext, d as createSignal, o as onMount, e as createEffect, c as createMemo, a as createComponent, P as Portal, m as memo, S as Show, t as template, i as insert, f as createRenderEffect, h as className, j as clearDelegatedEvents, k as delegateEvents, u as useContext, l as onCleanup, s as sortFns, n as mutationSortFns, p as on, q as setAttribute, r as getSidedProp, v as use, w as convertRemToPixels, x as createUniqueId, y as batch, z as getQueryStatusLabel, A as getMutationStatusColor, B as getQueryStatusColor, C as getQueryStatusColorByLabel, D as displayValue, F as For, E as untrack, $ as $TRACK, G as useTransition, H as spread, I as mergeProps, J as createRoot, K as serialize, L as Index, M as updateNestedDataByPath, N as addEventListener, O as stringify, Q as Match, R as Switch, T as deleteNestedDataByPath, U as splitProps, V as Dynamic, W as createComputed } from "./main-D_rN3aKO.js";
|
|
2
2
|
var isNonNullable = (i2) => i2 != null;
|
|
3
3
|
var filterNonNullable = (arr) => arr.filter(isNonNullable);
|
|
4
4
|
function chain(callbacks) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as createLocalStorage, T as THEME_PREFERENCE, P as PiPProvider, a as ThemeContext, D as Devtools, Q as QueryDevtoolsContext } from "./AP7HFJJL-
|
|
2
|
-
import { g as getPreferredColorScheme, c as createMemo, a as createComponent } from "./main-
|
|
1
|
+
import { c as createLocalStorage, T as THEME_PREFERENCE, P as PiPProvider, a as ThemeContext, D as Devtools, Q as QueryDevtoolsContext } from "./AP7HFJJL-_aalgtfO.js";
|
|
2
|
+
import { g as getPreferredColorScheme, c as createMemo, a as createComponent } from "./main-D_rN3aKO.js";
|
|
3
3
|
var DevtoolsComponent = (props) => {
|
|
4
4
|
const [localStore, setLocalStore] = createLocalStorage({
|
|
5
5
|
prefix: "TanstackQueryDevtools"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { op as normalizeDates$1, oq as startOfWeek$1, or as buildFormatLongFn$1, os as buildLocalizeFn$1, ot as buildMatchFn$1, ou as buildMatchPatternFn$1, ov as toDate$1, ow as match$1l, ox as localize$1n, oy as formatRelative$1n, oz as formatDistance$1n, oA as DateLib, oB as enUS$1 } from "./use-job-queue-polling-
|
|
1
|
+
import { op as normalizeDates$1, oq as startOfWeek$1, or as buildFormatLongFn$1, os as buildLocalizeFn$1, ot as buildMatchFn$1, ou as buildMatchPatternFn$1, ov as toDate$1, ow as match$1l, ox as localize$1n, oy as formatRelative$1n, oz as formatDistance$1n, oA as DateLib, oB as enUS$1 } from "./use-job-queue-polling-Cqr5CKxU.js";
|
|
2
2
|
function isSameWeek$1(laterDate, earlierDate, options2) {
|
|
3
3
|
const [laterDate_, earlierDate_] = normalizeDates$1(
|
|
4
4
|
options2?.in,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { c as createLucideIcon, nu as loadI18nMessages, nE as UserSettingsProvider, nF as ThemeProvider, nG as AuthProvider, nH as ServerConfigProvider, nI as ChannelProvider, nJ as AlertsProvider, l5 as CustomProviders, df as objectType, du as stringType, mV as useAuth, gv as LoginForm, hq as LoginBranding, gk as AppLayout, nK as endOfDay, nL as startOfMonth, bD as useUserSettings, nc as usePermissions, kx as getDashboardWidgetRegistry, eL as Page, eM as PageTitle, eN as PageActionBar, me as ActionBarItem, gi as DateRangePicker, dP as Button, eP as PageLayout, mp as FullWidthPageBlock, kA as WidgetFiltersProvider, i$ as GridLayout, ky as getDashboardWidget, nb as usePaginatedList, mF as api, kV as getMutationName, fA as DataTableBulkActionItem, nM as Trash, mN as graphql, gf as useGeneratedColumns, fU as DataTable, gY as CountrySelector, jt as Sheet, jA as SheetTrigger, jv as SheetContent, jy as SheetHeader, jz as SheetTitle, jw as SheetDescription, jm as ScrollArea, mx as ListPage, dQ as Plus, h3 as DetailPageButton, eX as BooleanDisplayBadge, dR as Badge, mS as setSettingsStoreValueDocument, nN as createColumnHelper, gX as CopyableText, jV as Switch$1, iE as Dialog, iM as DialogTrigger, iG as DialogContent, iJ as DialogHeader, iD as DialogTitle, iH as DialogDescription, eZ as JsonViewer, iI as DialogFooter, dO as Input, n7 as useLocalFormat, bR as DropdownMenu, bS as DropdownMenuTrigger, bT as Ellipsis, bV as DropdownMenuContent, bW as DropdownMenuItem, nO as Clock, nP as Check, nQ as RefreshCw, nR as ChevronDown, nS as EllipsisVertical, bF as Select, bG as SelectTrigger, bI as SelectValue, bJ as SelectContent, bK as SelectItem, gJ as AssignToChannelBulkAction, mW as useChannel, hs as RemoveFromChannelBulkAction, mJ as configurableOperationFragment, nq as LS_KEY_SHIPPING_TEST_ADDRESS,
|
|
2
|
+
import { c as createLucideIcon, nu as loadI18nMessages, nE as UserSettingsProvider, nF as ThemeProvider, nG as AuthProvider, nH as ServerConfigProvider, nI as ChannelProvider, nJ as AlertsProvider, l5 as CustomProviders, df as objectType, du as stringType, mV as useAuth, gv as LoginForm, hq as LoginBranding, gk as AppLayout, nK as endOfDay, nL as startOfMonth, bD as useUserSettings, nc as usePermissions, kx as getDashboardWidgetRegistry, eL as Page, eM as PageTitle, eN as PageActionBar, me as ActionBarItem, gi as DateRangePicker, dP as Button, eP as PageLayout, mp as FullWidthPageBlock, kA as WidgetFiltersProvider, i$ as GridLayout, ky as getDashboardWidget, nb as usePaginatedList, mF as api, kV as getMutationName, fA as DataTableBulkActionItem, nM as Trash, mN as graphql, gf as useGeneratedColumns, fU as DataTable, gY as CountrySelector, jt as Sheet, jA as SheetTrigger, jv as SheetContent, jy as SheetHeader, jz as SheetTitle, jw as SheetDescription, jm as ScrollArea, mx as ListPage, dQ as Plus, h3 as DetailPageButton, eX as BooleanDisplayBadge, dR as Badge, mS as setSettingsStoreValueDocument, nN as createColumnHelper, gX as CopyableText, jV as Switch$1, iE as Dialog, iM as DialogTrigger, iG as DialogContent, iJ as DialogHeader, iD as DialogTitle, iH as DialogDescription, eZ as JsonViewer, iI as DialogFooter, dO as Input, n7 as useLocalFormat, bR as DropdownMenu, bS as DropdownMenuTrigger, bT as Ellipsis, bV as DropdownMenuContent, bW as DropdownMenuItem, nO as Clock, nP as Check, nQ as RefreshCw, nR as ChevronDown, nS as EllipsisVertical, bF as Select, bG as SelectTrigger, bI as SelectValue, bJ as SelectContent, bK as SelectItem, gJ as AssignToChannelBulkAction, mW as useChannel, hs as RemoveFromChannelBulkAction, mJ as configurableOperationFragment, nq as LS_KEY_SHIPPING_TEST_ADDRESS, hR as AccordionItem, hS as AccordionTrigger, hQ as AccordionContent, i_ as Form, eS as FormFieldWrapper, nT as AddressCountrySelect, nr as LS_KEY_SHIPPING_TEST_ORDER, nU as useReactTable, nV as getCoreRowModel, jW as Table, k0 as TableHeader, k1 as TableRow, j$ as TableHead, nW as flexRender, jX as TableBody, jZ as TableCell, hr as ProductVariantSelector, hJ as VendureImage, bZ as Trash2, e$ as Money, ij as Card, ip as CardHeader, iq as CardTitle, il as CardContent, i3 as Alert, i4 as AlertDescription, hP as Accordion, hG as RichTextDescriptionCell, nt as SUPER_ADMIN_ROLE_CODE, nl as CUSTOMER_ROLE_CODE, nX as Layers, gP as ChannelCodeLabel, hz as RoleCodeLabel, mH as getEntityDuplicatorsDocument, nY as getInitialConfigArgValue, gS as ConfigurableOperationInput, mG as duplicateEntityDocument, nZ as Copy, h5 as ErrorPage, kI as extendDetailFormQuery, kP as addCustomFields, mA as getDetailQueryOptions, eJ as useDetailPage, eQ as PageBlock, eR as DetailFormGrid, jd as PasswordInput, eU as CustomFieldsPageBlock, mI as assetFragment, h7 as FacetValueSelector, h6 as FacetValueChip, gL as usePriceFactor, fF as FacetValueFacetedFilter, hC as StockLevelLabel, mM as errorResultFragment, mL as configurableOperationDefFragment, bC as useServerConfig, hD as CustomerCell, hE as OrderStateCell, hF as OrderMoneyCell, eH as NEW_ENTITY_PATH, hh as LanguageSelector, mP as schemaLanguageCodes, fb as NumberInput, hn as PaginatedListDataTable, hm as PaginatedListDataTableKey, h2 as CustomerSelector, n_ as useDebounce, bX as Folder, n$ as Search, o0 as ChevronRight, o1 as getExpandedRowModel, fO as getItemParentId, fR as calculateDragTargetPosition, fQ as isCircularReference, fS as calculateSiblingIndex, o2 as deleteAssetsDocument, cW as enumType, cP as coerce, gD as AssetGallery, mw as detailPageRouteLoader, hH as TaxCategorySelector, hO as ZoneSelector, k7 as Textarea, gV as ConfigurableOperationSelector, eT as TranslatableFormFieldWrapper, fq as RichTextInput, n5 as useGroupedPermissions, ke as TooltipProvider, kc as Tooltip, kf as TooltipTrigger, o3 as Info, kd as TooltipContent, gQ as ChannelSelector, gU as ConfigurableOperationMultiSelector, f7 as DateTimeInput, dS as X, cM as arrayType, nD as a, k2 as Tabs, k4 as TabsList, k5 as TabsTrigger, o4 as Link$1, k3 as TabsContent, iu as Command, iy as CommandInput, iA as CommandList, iw as CommandEmpty, iz as CommandItem, cO as booleanType, cl as ZodIssueCode, dq as recordType, C as Checkbox, iQ as Field, iT as FieldError, fa as MoneyInput, gW as ConfirmationDialog, hU as AlertDialog, hX as AlertDialogContent, h_ as AlertDialogHeader, hT as AlertDialogTitle, hY as AlertDialogDescription, hZ as AlertDialogFooter, hW as AlertDialogCancel, hV as AlertDialogAction, ho as PermissionGuard, na as usePage, fs as SlugInput, gN as AssignedFacetValues, gM as AssignedChannels, h4 as EntityAssets, dV as Separator, g_ as CustomFieldsForm, iV as FieldLabel, m$ as useDynamicTranslations, o5 as getTypeForState, bH as cn, nn as DEFAULT_CHANNEL_CODE, fp as createRelationSelectorConfig, fo as RelationSelector, j5 as Label, o6 as CircleAlert, mX as useCustomFieldConfig, gj as LabeledData, ir as Collapsible, is as CollapsibleTrigger, it as CollapsibleContent, o7 as Globe, md as HistoryEntry, o8 as SquarePen, hf as useHistoryNoteEditor, hd as HistoryTimelineWithGrouping, hc as HistoryNoteInput, ha as HistoryNoteEditor, hb as HistoryNoteEntry, jS as Skeleton, kR as getFieldsFromDocumentNode, fL as getColumnVisibility, o9 as Pencil, oa as stateTypeToBadgeVariant, ob as ChevronLeft, g$ as CustomerAddressForm$1, oc as Users, h0 as CustomerGroupChip, h1 as CustomerGroupSelector, od as availableCountriesQueryKey, oe as Eye, i5 as AlertTitle, n6 as useJobQueuePolling, hB as SellerSelector, gZ as CurrencySelector, of as tagListDocument, og as updateTagDocument, oh as deleteTagDocument, oi as createTagDocument, je as Popover, jj as PopoverTrigger, oj as ChevronsUpDown, jf as PopoverContent, ix as CommandGroup, ok as Settings2, ol as assetDetailDocument, om as assetUpdateDocument, gB as AssetFocalPointEditor, gI as AssetProperties, gG as AssetPreviewSelector, on as Focus, hA as RoleSelector, hj as MultiSelect, oo as useRedirectToListOnNotFound, fh as SingleRelationInput, lD as useGeneratedForm, de as numberType, f0 as AffixedInput, iF as DialogClose, jU as Spinner, lq as useDashboardExtensions, kH as registerDefaults, l7 as executeDashboardExtensionCallbacks, jT as Toaster, mB as useExtendedRouter, mZ as useDisplayLocale, nh as useUiLanguageLoader, kL as setCustomFieldsMap, iN as DirectionProvider, kM as clearCustomFieldsMap } from "./use-job-queue-polling-Cqr5CKxU.js";
|
|
3
3
|
import { toast } from "sonner";
|
|
4
4
|
import { i18n } from "@lingui/core";
|
|
5
5
|
import { I18nProvider as I18nProvider$1, useLingui, Trans } from "@lingui/react";
|
|
@@ -15,18 +15,18 @@ const __iconNode$B = [
|
|
|
15
15
|
["path", { d: "m12 19-7-7 7-7", key: "1l729n" }],
|
|
16
16
|
["path", { d: "M19 12H5", key: "x3x0zl" }]
|
|
17
17
|
];
|
|
18
|
-
const ArrowLeft = createLucideIcon("
|
|
18
|
+
const ArrowLeft = createLucideIcon("arrow-left", __iconNode$B);
|
|
19
19
|
const __iconNode$A = [
|
|
20
20
|
["path", { d: "M17 12H3", key: "8awo09" }],
|
|
21
21
|
["path", { d: "m11 18 6-6-6-6", key: "8c2y43" }],
|
|
22
22
|
["path", { d: "M21 5v14", key: "nzette" }]
|
|
23
23
|
];
|
|
24
|
-
const ArrowRightToLine = createLucideIcon("
|
|
24
|
+
const ArrowRightToLine = createLucideIcon("arrow-right-to-line", __iconNode$A);
|
|
25
25
|
const __iconNode$z = [
|
|
26
26
|
["path", { d: "M5 12h14", key: "1ays0h" }],
|
|
27
27
|
["path", { d: "m12 5 7 7-7 7", key: "xquz4c" }]
|
|
28
28
|
];
|
|
29
|
-
const ArrowRight = createLucideIcon("
|
|
29
|
+
const ArrowRight = createLucideIcon("arrow-right", __iconNode$z);
|
|
30
30
|
const __iconNode$y = [
|
|
31
31
|
[
|
|
32
32
|
"path",
|
|
@@ -37,7 +37,7 @@ const __iconNode$y = [
|
|
|
37
37
|
],
|
|
38
38
|
["path", { d: "m9 12 2 2 4-4", key: "dzmm74" }]
|
|
39
39
|
];
|
|
40
|
-
const BadgeCheck = createLucideIcon("
|
|
40
|
+
const BadgeCheck = createLucideIcon("badge-check", __iconNode$y);
|
|
41
41
|
const __iconNode$x = [
|
|
42
42
|
[
|
|
43
43
|
"path",
|
|
@@ -49,12 +49,12 @@ const __iconNode$x = [
|
|
|
49
49
|
["line", { x1: "15", x2: "9", y1: "9", y2: "15", key: "f7djnv" }],
|
|
50
50
|
["line", { x1: "9", x2: "15", y1: "9", y2: "15", key: "1shsy8" }]
|
|
51
51
|
];
|
|
52
|
-
const BadgeX = createLucideIcon("
|
|
52
|
+
const BadgeX = createLucideIcon("badge-x", __iconNode$x);
|
|
53
53
|
const __iconNode$w = [
|
|
54
54
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
55
|
-
["path", { d: "
|
|
55
|
+
["path", { d: "M4.929 4.929 19.07 19.071", key: "196cmz" }]
|
|
56
56
|
];
|
|
57
|
-
const Ban = createLucideIcon("
|
|
57
|
+
const Ban = createLucideIcon("ban", __iconNode$w);
|
|
58
58
|
const __iconNode$v = [
|
|
59
59
|
[
|
|
60
60
|
"path",
|
|
@@ -68,17 +68,17 @@ const __iconNode$v = [
|
|
|
68
68
|
}
|
|
69
69
|
]
|
|
70
70
|
];
|
|
71
|
-
const Braces = createLucideIcon("
|
|
71
|
+
const Braces = createLucideIcon("braces", __iconNode$v);
|
|
72
72
|
const __iconNode$u = [
|
|
73
73
|
["path", { d: "M21.801 10A10 10 0 1 1 17 3.335", key: "yps3ct" }],
|
|
74
74
|
["path", { d: "m9 11 3 3L22 4", key: "1pflzl" }]
|
|
75
75
|
];
|
|
76
|
-
const CircleCheckBig = createLucideIcon("
|
|
76
|
+
const CircleCheckBig = createLucideIcon("circle-check-big", __iconNode$u);
|
|
77
77
|
const __iconNode$t = [
|
|
78
78
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
79
79
|
["path", { d: "m9 12 2 2 4-4", key: "dzmm74" }]
|
|
80
80
|
];
|
|
81
|
-
const CircleCheck = createLucideIcon("
|
|
81
|
+
const CircleCheck = createLucideIcon("circle-check", __iconNode$t);
|
|
82
82
|
const __iconNode$s = [
|
|
83
83
|
["path", { d: "M10.1 2.182a10 10 0 0 1 3.8 0", key: "5ilxe3" }],
|
|
84
84
|
["path", { d: "M13.9 21.818a10 10 0 0 1-3.8 0", key: "11zvb9" }],
|
|
@@ -89,29 +89,35 @@ const __iconNode$s = [
|
|
|
89
89
|
["path", { d: "M3.721 6.391a10 10 0 0 1 2.7-2.69", key: "1mcia2" }],
|
|
90
90
|
["path", { d: "M6.391 20.279a10 10 0 0 1-2.69-2.7", key: "1fvljs" }]
|
|
91
91
|
];
|
|
92
|
-
const CircleDashed = createLucideIcon("
|
|
92
|
+
const CircleDashed = createLucideIcon("circle-dashed", __iconNode$s);
|
|
93
93
|
const __iconNode$r = [
|
|
94
|
-
[
|
|
95
|
-
|
|
94
|
+
[
|
|
95
|
+
"path",
|
|
96
|
+
{
|
|
97
|
+
d: "M9 9.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997A1 1 0 0 1 9 14.996z",
|
|
98
|
+
key: "kmsa83"
|
|
99
|
+
}
|
|
100
|
+
],
|
|
101
|
+
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }]
|
|
96
102
|
];
|
|
97
|
-
const CirclePlay = createLucideIcon("
|
|
103
|
+
const CirclePlay = createLucideIcon("circle-play", __iconNode$r);
|
|
98
104
|
const __iconNode$q = [
|
|
99
105
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
100
106
|
["path", { d: "m15 9-6 6", key: "1uzhvr" }],
|
|
101
107
|
["path", { d: "m9 9 6 6", key: "z0biqf" }]
|
|
102
108
|
];
|
|
103
|
-
const CircleX = createLucideIcon("
|
|
109
|
+
const CircleX = createLucideIcon("circle-x", __iconNode$q);
|
|
104
110
|
const __iconNode$p = [
|
|
105
111
|
["rect", { width: "20", height: "14", x: "2", y: "5", rx: "2", key: "ynyp8z" }],
|
|
106
112
|
["line", { x1: "2", x2: "22", y1: "10", y2: "10", key: "1b3vmo" }]
|
|
107
113
|
];
|
|
108
|
-
const CreditCard = createLucideIcon("
|
|
114
|
+
const CreditCard = createLucideIcon("credit-card", __iconNode$p);
|
|
109
115
|
const __iconNode$o = [
|
|
116
|
+
["path", { d: "M12 15V3", key: "m9g1x1" }],
|
|
110
117
|
["path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4", key: "ih7n3h" }],
|
|
111
|
-
["
|
|
112
|
-
["line", { x1: "12", x2: "12", y1: "15", y2: "3", key: "1vk2je" }]
|
|
118
|
+
["path", { d: "m7 10 5 5 5-5", key: "brsn70" }]
|
|
113
119
|
];
|
|
114
|
-
const Download = createLucideIcon("
|
|
120
|
+
const Download = createLucideIcon("download", __iconNode$o);
|
|
115
121
|
const __iconNode$n = [
|
|
116
122
|
[
|
|
117
123
|
"path",
|
|
@@ -123,7 +129,7 @@ const __iconNode$n = [
|
|
|
123
129
|
["path", { d: "M6.453 15h11.094", key: "3shlmq" }],
|
|
124
130
|
["path", { d: "M8.5 2h7", key: "csnxdl" }]
|
|
125
131
|
];
|
|
126
|
-
const FlaskConical = createLucideIcon("
|
|
132
|
+
const FlaskConical = createLucideIcon("flask-conical", __iconNode$n);
|
|
127
133
|
const __iconNode$m = [
|
|
128
134
|
[
|
|
129
135
|
"path",
|
|
@@ -133,7 +139,7 @@ const __iconNode$m = [
|
|
|
133
139
|
}
|
|
134
140
|
]
|
|
135
141
|
];
|
|
136
|
-
const FolderOpen = createLucideIcon("
|
|
142
|
+
const FolderOpen = createLucideIcon("folder-open", __iconNode$m);
|
|
137
143
|
const __iconNode$l = [
|
|
138
144
|
[
|
|
139
145
|
"path",
|
|
@@ -152,17 +158,17 @@ const __iconNode$l = [
|
|
|
152
158
|
["path", { d: "M3 5a2 2 0 0 0 2 2h3", key: "f2jnh7" }],
|
|
153
159
|
["path", { d: "M3 3v13a2 2 0 0 0 2 2h3", key: "k8epm1" }]
|
|
154
160
|
];
|
|
155
|
-
const FolderTree = createLucideIcon("
|
|
161
|
+
const FolderTree = createLucideIcon("folder-tree", __iconNode$l);
|
|
156
162
|
const __iconNode$k = [
|
|
157
163
|
["path", { d: "m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4", key: "g0fldk" }],
|
|
158
164
|
["path", { d: "m21 2-9.6 9.6", key: "1j0ho8" }],
|
|
159
165
|
["circle", { cx: "7.5", cy: "15.5", r: "5.5", key: "yqb3hr" }]
|
|
160
166
|
];
|
|
161
|
-
const Key = createLucideIcon("
|
|
167
|
+
const Key = createLucideIcon("key", __iconNode$k);
|
|
162
168
|
const __iconNode$j = [
|
|
163
|
-
["path", { d: "M21
|
|
169
|
+
["path", { d: "M21 5H3", key: "1fi0y6" }],
|
|
164
170
|
["path", { d: "M7 12H3", key: "13ou7f" }],
|
|
165
|
-
["path", { d: "M7
|
|
171
|
+
["path", { d: "M7 19H3", key: "wbqt3n" }],
|
|
166
172
|
[
|
|
167
173
|
"path",
|
|
168
174
|
{
|
|
@@ -172,7 +178,7 @@ const __iconNode$j = [
|
|
|
172
178
|
],
|
|
173
179
|
["path", { d: "M11 10v4h4", key: "172dkj" }]
|
|
174
180
|
];
|
|
175
|
-
const ListRestart = createLucideIcon("
|
|
181
|
+
const ListRestart = createLucideIcon("list-restart", __iconNode$j);
|
|
176
182
|
const __iconNode$i = [
|
|
177
183
|
["path", { d: "M12 2v4", key: "3427ic" }],
|
|
178
184
|
["path", { d: "m16.2 7.8 2.9-2.9", key: "r700ao" }],
|
|
@@ -183,12 +189,12 @@ const __iconNode$i = [
|
|
|
183
189
|
["path", { d: "M2 12h4", key: "j09sii" }],
|
|
184
190
|
["path", { d: "m4.9 4.9 2.9 2.9", key: "giyufr" }]
|
|
185
191
|
];
|
|
186
|
-
const Loader = createLucideIcon("
|
|
192
|
+
const Loader = createLucideIcon("loader", __iconNode$i);
|
|
187
193
|
const __iconNode$h = [
|
|
188
|
-
["
|
|
189
|
-
["
|
|
194
|
+
["path", { d: "m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7", key: "132q7q" }],
|
|
195
|
+
["rect", { x: "2", y: "4", width: "20", height: "16", rx: "2", key: "izxlao" }]
|
|
190
196
|
];
|
|
191
|
-
const Mail = createLucideIcon("
|
|
197
|
+
const Mail = createLucideIcon("mail", __iconNode$h);
|
|
192
198
|
const __iconNode$g = [
|
|
193
199
|
[
|
|
194
200
|
"path",
|
|
@@ -199,7 +205,7 @@ const __iconNode$g = [
|
|
|
199
205
|
],
|
|
200
206
|
["circle", { cx: "12", cy: "10", r: "3", key: "ilqhr7" }]
|
|
201
207
|
];
|
|
202
|
-
const MapPin = createLucideIcon("
|
|
208
|
+
const MapPin = createLucideIcon("map-pin", __iconNode$g);
|
|
203
209
|
const __iconNode$f = [
|
|
204
210
|
[
|
|
205
211
|
"path",
|
|
@@ -212,24 +218,24 @@ const __iconNode$f = [
|
|
|
212
218
|
["polyline", { points: "3.29 7 12 12 20.71 7", key: "ousv84" }],
|
|
213
219
|
["path", { d: "m7.5 4.27 9 5.15", key: "1c824w" }]
|
|
214
220
|
];
|
|
215
|
-
const Package = createLucideIcon("
|
|
221
|
+
const Package = createLucideIcon("package", __iconNode$f);
|
|
216
222
|
const __iconNode$e = [
|
|
217
223
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
218
224
|
["path", { d: "M9 3v18", key: "fh3hqa" }],
|
|
219
225
|
["path", { d: "m14 9 3 3-3 3", key: "8010ee" }]
|
|
220
226
|
];
|
|
221
|
-
const PanelLeftOpen = createLucideIcon("
|
|
227
|
+
const PanelLeftOpen = createLucideIcon("panel-left-open", __iconNode$e);
|
|
222
228
|
const __iconNode$d = [
|
|
223
|
-
["path", { d: "
|
|
229
|
+
["path", { d: "M13 21h8", key: "1jsn5i" }],
|
|
224
230
|
[
|
|
225
231
|
"path",
|
|
226
232
|
{
|
|
227
|
-
d: "
|
|
228
|
-
key: "
|
|
233
|
+
d: "M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",
|
|
234
|
+
key: "1a8usu"
|
|
229
235
|
}
|
|
230
236
|
]
|
|
231
237
|
];
|
|
232
|
-
const PenLine = createLucideIcon("
|
|
238
|
+
const PenLine = createLucideIcon("pen-line", __iconNode$d);
|
|
233
239
|
const __iconNode$c = [
|
|
234
240
|
[
|
|
235
241
|
"path",
|
|
@@ -239,24 +245,32 @@ const __iconNode$c = [
|
|
|
239
245
|
}
|
|
240
246
|
]
|
|
241
247
|
];
|
|
242
|
-
const Pen = createLucideIcon("
|
|
248
|
+
const Pen = createLucideIcon("pen", __iconNode$c);
|
|
243
249
|
const __iconNode$b = [
|
|
244
250
|
[
|
|
245
251
|
"path",
|
|
246
252
|
{
|
|
247
|
-
d: "
|
|
248
|
-
key: "
|
|
253
|
+
d: "M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",
|
|
254
|
+
key: "9njp5v"
|
|
249
255
|
}
|
|
250
256
|
]
|
|
251
257
|
];
|
|
252
|
-
const Phone = createLucideIcon("
|
|
253
|
-
const __iconNode$a = [
|
|
254
|
-
|
|
258
|
+
const Phone = createLucideIcon("phone", __iconNode$b);
|
|
259
|
+
const __iconNode$a = [
|
|
260
|
+
[
|
|
261
|
+
"path",
|
|
262
|
+
{
|
|
263
|
+
d: "M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",
|
|
264
|
+
key: "10ikf1"
|
|
265
|
+
}
|
|
266
|
+
]
|
|
267
|
+
];
|
|
268
|
+
const Play = createLucideIcon("play", __iconNode$a);
|
|
255
269
|
const __iconNode$9 = [
|
|
256
270
|
["path", { d: "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8", key: "1357e3" }],
|
|
257
271
|
["path", { d: "M3 3v5h5", key: "1xhq8a" }]
|
|
258
272
|
];
|
|
259
|
-
const RotateCcw = createLucideIcon("
|
|
273
|
+
const RotateCcw = createLucideIcon("rotate-ccw", __iconNode$9);
|
|
260
274
|
const __iconNode$8 = [
|
|
261
275
|
[
|
|
262
276
|
"path",
|
|
@@ -268,7 +282,7 @@ const __iconNode$8 = [
|
|
|
268
282
|
["path", { d: "M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7", key: "1ydtos" }],
|
|
269
283
|
["path", { d: "M7 3v4a1 1 0 0 0 1 1h7", key: "t51u73" }]
|
|
270
284
|
];
|
|
271
|
-
const Save = createLucideIcon("
|
|
285
|
+
const Save = createLucideIcon("save", __iconNode$8);
|
|
272
286
|
const __iconNode$7 = [
|
|
273
287
|
[
|
|
274
288
|
"path",
|
|
@@ -279,7 +293,7 @@ const __iconNode$7 = [
|
|
|
279
293
|
],
|
|
280
294
|
["circle", { cx: "7.5", cy: "7.5", r: ".5", fill: "currentColor", key: "kqv944" }]
|
|
281
295
|
];
|
|
282
|
-
const Tag = createLucideIcon("
|
|
296
|
+
const Tag = createLucideIcon("tag", __iconNode$7);
|
|
283
297
|
const __iconNode$6 = [
|
|
284
298
|
[
|
|
285
299
|
"path",
|
|
@@ -291,7 +305,7 @@ const __iconNode$6 = [
|
|
|
291
305
|
["path", { d: "M12 9v4", key: "juzpu7" }],
|
|
292
306
|
["path", { d: "M12 17h.01", key: "p32p05" }]
|
|
293
307
|
];
|
|
294
|
-
const TriangleAlert = createLucideIcon("
|
|
308
|
+
const TriangleAlert = createLucideIcon("triangle-alert", __iconNode$6);
|
|
295
309
|
const __iconNode$5 = [
|
|
296
310
|
["path", { d: "M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2", key: "wrbu53" }],
|
|
297
311
|
["path", { d: "M15 18H9", key: "1lyqi6" }],
|
|
@@ -305,37 +319,37 @@ const __iconNode$5 = [
|
|
|
305
319
|
["circle", { cx: "17", cy: "18", r: "2", key: "332jqn" }],
|
|
306
320
|
["circle", { cx: "7", cy: "18", r: "2", key: "19iecd" }]
|
|
307
321
|
];
|
|
308
|
-
const Truck = createLucideIcon("
|
|
322
|
+
const Truck = createLucideIcon("truck", __iconNode$5);
|
|
309
323
|
const __iconNode$4 = [
|
|
324
|
+
["path", { d: "m16 11 2 2 4-4", key: "9rsbq5" }],
|
|
310
325
|
["path", { d: "M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2", key: "1yyitq" }],
|
|
311
|
-
["circle", { cx: "9", cy: "7", r: "4", key: "nufk8" }]
|
|
312
|
-
["polyline", { points: "16 11 18 13 22 9", key: "1pwet4" }]
|
|
326
|
+
["circle", { cx: "9", cy: "7", r: "4", key: "nufk8" }]
|
|
313
327
|
];
|
|
314
|
-
const UserCheck = createLucideIcon("
|
|
328
|
+
const UserCheck = createLucideIcon("user-check", __iconNode$4);
|
|
315
329
|
const __iconNode$3 = [
|
|
316
330
|
["path", { d: "M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2", key: "1yyitq" }],
|
|
317
331
|
["circle", { cx: "9", cy: "7", r: "4", key: "nufk8" }],
|
|
318
332
|
["line", { x1: "22", x2: "16", y1: "11", y2: "11", key: "1shjgl" }]
|
|
319
333
|
];
|
|
320
|
-
const UserMinus = createLucideIcon("
|
|
334
|
+
const UserMinus = createLucideIcon("user-minus", __iconNode$3);
|
|
321
335
|
const __iconNode$2 = [
|
|
322
336
|
["path", { d: "M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2", key: "1yyitq" }],
|
|
323
337
|
["circle", { cx: "9", cy: "7", r: "4", key: "nufk8" }],
|
|
324
338
|
["line", { x1: "17", x2: "22", y1: "8", y2: "13", key: "3nzzx3" }],
|
|
325
339
|
["line", { x1: "22", x2: "17", y1: "8", y2: "13", key: "1swrse" }]
|
|
326
340
|
];
|
|
327
|
-
const UserX = createLucideIcon("
|
|
341
|
+
const UserX = createLucideIcon("user-x", __iconNode$2);
|
|
328
342
|
const __iconNode$1 = [
|
|
329
343
|
["path", { d: "M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2", key: "975kel" }],
|
|
330
344
|
["circle", { cx: "12", cy: "7", r: "4", key: "17ys0d" }]
|
|
331
345
|
];
|
|
332
|
-
const User = createLucideIcon("
|
|
346
|
+
const User = createLucideIcon("user", __iconNode$1);
|
|
333
347
|
const __iconNode = [
|
|
334
348
|
["rect", { width: "8", height: "8", x: "3", y: "3", rx: "2", key: "by2w9f" }],
|
|
335
349
|
["path", { d: "M7 11v4a2 2 0 0 0 2 2h4", key: "xkn7yn" }],
|
|
336
350
|
["rect", { width: "8", height: "8", x: "13", y: "13", rx: "2", key: "1cgmvn" }]
|
|
337
351
|
];
|
|
338
|
-
const Workflow = createLucideIcon("
|
|
352
|
+
const Workflow = createLucideIcon("workflow", __iconNode);
|
|
339
353
|
const defaultLocale = "en";
|
|
340
354
|
i18n.load(defaultLocale, {});
|
|
341
355
|
i18n.activate(defaultLocale);
|
|
@@ -2934,7 +2948,7 @@ var TanstackQueryDevtools = class {
|
|
|
2934
2948
|
if (this.#Component) {
|
|
2935
2949
|
Devtools = this.#Component;
|
|
2936
2950
|
} else {
|
|
2937
|
-
Devtools = lazy(() => import("./WDYDFRGG-
|
|
2951
|
+
Devtools = lazy(() => import("./WDYDFRGG-BOh7WOyA.js"));
|
|
2938
2952
|
this.#Component = Devtools;
|
|
2939
2953
|
}
|
|
2940
2954
|
setupStyleSheet(this.#styleNonce, this.#shadowDOMTarget);
|
|
@@ -3072,7 +3086,7 @@ var TanstackQueryDevtoolsPanel = class {
|
|
|
3072
3086
|
if (this.#Component) {
|
|
3073
3087
|
Devtools = this.#Component;
|
|
3074
3088
|
} else {
|
|
3075
|
-
Devtools = lazy(() => import("./2SSKDMRQ-
|
|
3089
|
+
Devtools = lazy(() => import("./2SSKDMRQ-CpRbj3yV.js"));
|
|
3076
3090
|
this.#Component = Devtools;
|
|
3077
3091
|
}
|
|
3078
3092
|
setupStyleSheet(this.#styleNonce, this.#shadowDOMTarget);
|
|
@@ -5848,10 +5862,6 @@ function TestAddressForm({
|
|
|
5848
5862
|
}
|
|
5849
5863
|
})()
|
|
5850
5864
|
});
|
|
5851
|
-
const {
|
|
5852
|
-
data: countriesData,
|
|
5853
|
-
isLoading: isLoadingCountries
|
|
5854
|
-
} = useAvailableCountries();
|
|
5855
5865
|
const previousValuesRef = useRef("");
|
|
5856
5866
|
useEffect(() => {
|
|
5857
5867
|
const subscription = form.watch((value) => {
|
|
@@ -5940,10 +5950,7 @@ function TestAddressForm({
|
|
|
5940
5950
|
id: "JNCzPW"
|
|
5941
5951
|
} }), renderFormControl: false, render: ({
|
|
5942
5952
|
field
|
|
5943
|
-
}) => /* @__PURE__ */
|
|
5944
|
-
/* @__PURE__ */ jsx(SelectTrigger, { children: /* @__PURE__ */ jsx(SelectValue, { placeholder: "Select a country" }) }),
|
|
5945
|
-
/* @__PURE__ */ jsx(SelectContent, { children: countriesData?.countries.items.map((country) => /* @__PURE__ */ jsx(SelectItem, { value: country.code, children: country.name }, country.code)) })
|
|
5946
|
-
] }) }),
|
|
5953
|
+
}) => /* @__PURE__ */ jsx(AddressCountrySelect, { value: field.value, onChange: field.onChange }) }),
|
|
5947
5954
|
/* @__PURE__ */ jsx(FormFieldWrapper, { control: form.control, name: "phoneNumber", label: /* @__PURE__ */ jsx(Trans, { .../*i18n*/
|
|
5948
5955
|
{
|
|
5949
5956
|
id: "HF6C2L"
|
|
@@ -20065,7 +20072,12 @@ function CustomerAddressCard({
|
|
|
20065
20072
|
] }),
|
|
20066
20073
|
(editable || deletable) && /* @__PURE__ */ jsxs("div", { className: "flex gap-4 mt-3 pt-3 border-t border-border", children: [
|
|
20067
20074
|
editable && /* @__PURE__ */ jsxs(Dialog, { open, onOpenChange: setOpen, children: [
|
|
20068
|
-
/* @__PURE__ */ jsx(DialogTrigger, {
|
|
20075
|
+
/* @__PURE__ */ jsx(DialogTrigger, { "aria-label": _t(
|
|
20076
|
+
/*i18n*/
|
|
20077
|
+
{
|
|
20078
|
+
id: "xLQ0lF"
|
|
20079
|
+
}
|
|
20080
|
+
), children: /* @__PURE__ */ jsx(SquarePen, { className: "w-4 h-4" }) }),
|
|
20069
20081
|
/* @__PURE__ */ jsxs(DialogContent, { className: "max-h-[90vh] overflow-y-auto", children: [
|
|
20070
20082
|
/* @__PURE__ */ jsxs(DialogHeader, { children: [
|
|
20071
20083
|
/* @__PURE__ */ jsx(DialogTitle, { children: /* @__PURE__ */ jsx(Trans, { .../*i18n*/
|
|
@@ -24048,6 +24060,7 @@ function DraftOrderPage() {
|
|
|
24048
24060
|
_: _t
|
|
24049
24061
|
} = useLingui();
|
|
24050
24062
|
const navigate = useNavigate();
|
|
24063
|
+
const queryClient2 = useQueryClient();
|
|
24051
24064
|
const {
|
|
24052
24065
|
entity,
|
|
24053
24066
|
refreshEntity,
|
|
@@ -24066,6 +24079,12 @@ function DraftOrderPage() {
|
|
|
24066
24079
|
id: params.id
|
|
24067
24080
|
}
|
|
24068
24081
|
});
|
|
24082
|
+
const refreshOrderAndShippingMethods = () => {
|
|
24083
|
+
refreshEntity();
|
|
24084
|
+
void queryClient2.invalidateQueries({
|
|
24085
|
+
queryKey: ["eligibleShippingMethods", entity?.id]
|
|
24086
|
+
});
|
|
24087
|
+
};
|
|
24069
24088
|
const {
|
|
24070
24089
|
form: orderCustomFieldsForm
|
|
24071
24090
|
} = useGeneratedForm({
|
|
@@ -24093,7 +24112,7 @@ function DraftOrderPage() {
|
|
|
24093
24112
|
id: "x7tyk4"
|
|
24094
24113
|
}
|
|
24095
24114
|
));
|
|
24096
|
-
|
|
24115
|
+
refreshOrderAndShippingMethods();
|
|
24097
24116
|
},
|
|
24098
24117
|
onError: (error) => {
|
|
24099
24118
|
toast.error(_t(
|
|
@@ -24114,7 +24133,11 @@ function DraftOrderPage() {
|
|
|
24114
24133
|
queryFn: () => api.query(draftOrderEligibleShippingMethodsDocument, {
|
|
24115
24134
|
orderId: entity?.id ?? ""
|
|
24116
24135
|
}),
|
|
24117
|
-
enabled: !!entity?.shippingAddress?.streetLine1
|
|
24136
|
+
enabled: !!entity?.shippingAddress?.streetLine1,
|
|
24137
|
+
// The key carries the order id, so the app-wide keepPreviousData default would
|
|
24138
|
+
// show one order's shipping methods on another. An explicit undefined is needed
|
|
24139
|
+
// to override that default; omitting the option is not the same thing.
|
|
24140
|
+
placeholderData: void 0
|
|
24118
24141
|
});
|
|
24119
24142
|
const {
|
|
24120
24143
|
mutate: addItemToDraftOrder
|
|
@@ -24130,7 +24153,7 @@ function DraftOrderPage() {
|
|
|
24130
24153
|
id: "bS9TU/"
|
|
24131
24154
|
}
|
|
24132
24155
|
));
|
|
24133
|
-
|
|
24156
|
+
refreshOrderAndShippingMethods();
|
|
24134
24157
|
break;
|
|
24135
24158
|
default:
|
|
24136
24159
|
toast.error(order.message);
|
|
@@ -24162,7 +24185,7 @@ function DraftOrderPage() {
|
|
|
24162
24185
|
id: "VHg4Aq"
|
|
24163
24186
|
}
|
|
24164
24187
|
));
|
|
24165
|
-
|
|
24188
|
+
refreshOrderAndShippingMethods();
|
|
24166
24189
|
break;
|
|
24167
24190
|
default:
|
|
24168
24191
|
toast.error(order.message);
|
|
@@ -24195,7 +24218,7 @@ function DraftOrderPage() {
|
|
|
24195
24218
|
id: "7ojN7Y"
|
|
24196
24219
|
}
|
|
24197
24220
|
));
|
|
24198
|
-
|
|
24221
|
+
refreshOrderAndShippingMethods();
|
|
24199
24222
|
break;
|
|
24200
24223
|
default:
|
|
24201
24224
|
toast.error(order.message);
|
|
@@ -24271,7 +24294,7 @@ function DraftOrderPage() {
|
|
|
24271
24294
|
}
|
|
24272
24295
|
));
|
|
24273
24296
|
}
|
|
24274
|
-
|
|
24297
|
+
refreshOrderAndShippingMethods();
|
|
24275
24298
|
break;
|
|
24276
24299
|
}
|
|
24277
24300
|
default:
|
|
@@ -24302,7 +24325,7 @@ function DraftOrderPage() {
|
|
|
24302
24325
|
id: "8HAB70"
|
|
24303
24326
|
}
|
|
24304
24327
|
));
|
|
24305
|
-
|
|
24328
|
+
refreshOrderAndShippingMethods();
|
|
24306
24329
|
},
|
|
24307
24330
|
onError: (error) => {
|
|
24308
24331
|
toast.error(_t(
|
|
@@ -24327,7 +24350,7 @@ function DraftOrderPage() {
|
|
|
24327
24350
|
id: "8XzZAa"
|
|
24328
24351
|
}
|
|
24329
24352
|
));
|
|
24330
|
-
|
|
24353
|
+
refreshOrderAndShippingMethods();
|
|
24331
24354
|
},
|
|
24332
24355
|
onError: (error) => {
|
|
24333
24356
|
toast.error(_t(
|
|
@@ -24352,7 +24375,7 @@ function DraftOrderPage() {
|
|
|
24352
24375
|
id: "4Um3m6"
|
|
24353
24376
|
}
|
|
24354
24377
|
));
|
|
24355
|
-
|
|
24378
|
+
refreshOrderAndShippingMethods();
|
|
24356
24379
|
},
|
|
24357
24380
|
onError: (error) => {
|
|
24358
24381
|
toast.error(_t(
|
|
@@ -24377,7 +24400,7 @@ function DraftOrderPage() {
|
|
|
24377
24400
|
id: "eTSf66"
|
|
24378
24401
|
}
|
|
24379
24402
|
));
|
|
24380
|
-
|
|
24403
|
+
refreshOrderAndShippingMethods();
|
|
24381
24404
|
},
|
|
24382
24405
|
onError: (error) => {
|
|
24383
24406
|
toast.error(_t(
|
|
@@ -24405,7 +24428,7 @@ function DraftOrderPage() {
|
|
|
24405
24428
|
id: "AltcLw"
|
|
24406
24429
|
}
|
|
24407
24430
|
));
|
|
24408
|
-
|
|
24431
|
+
refreshOrderAndShippingMethods();
|
|
24409
24432
|
break;
|
|
24410
24433
|
default:
|
|
24411
24434
|
toast.error(order.message);
|
|
@@ -24438,7 +24461,7 @@ function DraftOrderPage() {
|
|
|
24438
24461
|
id: "R5xil9"
|
|
24439
24462
|
}
|
|
24440
24463
|
));
|
|
24441
|
-
|
|
24464
|
+
refreshOrderAndShippingMethods();
|
|
24442
24465
|
break;
|
|
24443
24466
|
default:
|
|
24444
24467
|
toast.error(order.message);
|
|
@@ -24468,7 +24491,7 @@ function DraftOrderPage() {
|
|
|
24468
24491
|
id: "QQAsbn"
|
|
24469
24492
|
}
|
|
24470
24493
|
));
|
|
24471
|
-
|
|
24494
|
+
refreshOrderAndShippingMethods();
|
|
24472
24495
|
},
|
|
24473
24496
|
onError: (error) => {
|
|
24474
24497
|
toast.error(_t(
|
|
@@ -24496,7 +24519,7 @@ function DraftOrderPage() {
|
|
|
24496
24519
|
id: "0lDGme"
|
|
24497
24520
|
}
|
|
24498
24521
|
));
|
|
24499
|
-
|
|
24522
|
+
refreshOrderAndShippingMethods();
|
|
24500
24523
|
setTimeout(() => {
|
|
24501
24524
|
navigate({
|
|
24502
24525
|
to: `/orders/$id`,
|