@flowselections/floriday-klanten-module 1.0.103 → 1.0.105
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-lib/components/klanten/CustomerAssortmentTab.d.ts +3 -1
- package/dist-lib/components/klanten/CustomerAssortmentTab.d.ts.map +1 -1
- package/dist-lib/components/klanten/CustomerAssortmentTab.js +37 -9
- package/dist-lib/components/klanten/CustomerStickerCell.d.ts +6 -1
- package/dist-lib/components/klanten/CustomerStickerCell.d.ts.map +1 -1
- package/dist-lib/components/klanten/CustomerStickerCell.js +4 -3
- package/dist-lib/components/klanten/CustomerStickerFormatDialog.d.ts.map +1 -1
- package/dist-lib/components/klanten/CustomerStickerFormatDialog.js +12 -9
- package/dist-lib/components/klanten/KlantDetail.d.ts.map +1 -1
- package/dist-lib/components/klanten/KlantDetail.js +14 -3
- package/dist-lib/components/klanten/KlantExtraVeldenCard.d.ts +5 -0
- package/dist-lib/components/klanten/KlantExtraVeldenCard.d.ts.map +1 -0
- package/dist-lib/components/klanten/KlantExtraVeldenCard.js +48 -0
- package/dist-lib/components/klanten/KlantenOverzicht.d.ts.map +1 -1
- package/dist-lib/components/klanten/KlantenOverzicht.js +7 -5
- package/dist-lib/components/klanten/StickerFormaatKeuze.d.ts +16 -0
- package/dist-lib/components/klanten/StickerFormaatKeuze.d.ts.map +1 -0
- package/dist-lib/components/klanten/StickerFormaatKeuze.js +25 -0
- package/dist-lib/components/klanten/StickerSizeLine.d.ts +7 -2
- package/dist-lib/components/klanten/StickerSizeLine.d.ts.map +1 -1
- package/dist-lib/components/klanten/StickerSizeLine.js +28 -20
- package/dist-lib/components/klanten/pricegroups/CustomerPickerDialog.d.ts.map +1 -1
- package/dist-lib/components/klanten/pricegroups/CustomerPickerDialog.js +13 -1
- package/dist-lib/components/settings/CustomerFieldsCard.d.ts.map +1 -1
- package/dist-lib/components/settings/CustomerFieldsCard.js +2 -21
- package/dist-lib/components/settings/ExtraVeldenBeheer.d.ts +3 -0
- package/dist-lib/components/settings/ExtraVeldenBeheer.d.ts.map +1 -0
- package/dist-lib/components/settings/ExtraVeldenBeheer.js +61 -0
- package/dist-lib/index.d.ts +2 -1
- package/dist-lib/index.d.ts.map +1 -1
- package/dist-lib/index.js +1 -1
- package/dist-lib/integrations/supabase/types.d.ts +2892 -2
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.js +1 -0
- package/dist-lib/lib/customer-archief.d.ts +12 -0
- package/dist-lib/lib/customer-archief.d.ts.map +1 -1
- package/dist-lib/lib/customer-archief.functions.js +2 -2
- package/dist-lib/lib/customer-archief.js +14 -0
- package/dist-lib/lib/customer-stickers.functions.d.ts +18 -0
- package/dist-lib/lib/customer-stickers.functions.d.ts.map +1 -1
- package/dist-lib/lib/customer-stickers.functions.js +99 -0
- package/dist-lib/lib/extra-velden.d.ts +32 -0
- package/dist-lib/lib/extra-velden.d.ts.map +1 -0
- package/dist-lib/lib/extra-velden.functions.d.ts +69 -0
- package/dist-lib/lib/extra-velden.functions.d.ts.map +1 -0
- package/dist-lib/lib/extra-velden.functions.js +103 -0
- package/dist-lib/lib/extra-velden.js +39 -0
- package/dist-lib/lib/server-routes/twinfield-run-queue.server.d.ts +1 -1
- package/dist-lib/lib/server-routes/twinfield-run-queue.server.d.ts.map +1 -1
- package/dist-lib/lib/server-routes/twinfield-run-queue.server.js +6 -3
- package/dist-lib/lib/sticker-formaten.d.ts +46 -0
- package/dist-lib/lib/sticker-formaten.d.ts.map +1 -0
- package/dist-lib/lib/sticker-formaten.js +75 -0
- package/dist-lib/lib/twinfield-queue-admin.functions.d.ts +1 -1
- package/dist-lib/lib/twinfield-queue-admin.functions.d.ts.map +1 -1
- package/dist-lib/lib/twinfield-queue-admin.functions.js +1 -1
- package/package.json +25 -3
- package/schema/klanten.sql +543 -80
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
export declare function CustomerAssortmentTab({ customerKey, organizationId, customerId, }: {
|
|
1
|
+
export declare function CustomerAssortmentTab({ customerKey, organizationId, customerId, focusProduct, }: {
|
|
2
2
|
customerKey: string;
|
|
3
3
|
organizationId?: string | null;
|
|
4
4
|
/** Optioneel: klant-id; nodig voor klantartikelcodes. */
|
|
5
5
|
customerId?: string | null;
|
|
6
|
+
/** Optioneel: artikel (product-id of Floriday-id) om direct te tonen, bv. vanuit Verkoop. */
|
|
7
|
+
focusProduct?: string | null;
|
|
6
8
|
}): import("react").JSX.Element;
|
|
7
9
|
//# sourceMappingURL=CustomerAssortmentTab.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CustomerAssortmentTab.d.ts","sourceRoot":"","sources":["../../../src/components/klanten/CustomerAssortmentTab.tsx"],"names":[],"mappings":"AA6BA,wBAAgB,qBAAqB,CAAC,EACpC,WAAW,EACX,cAAc,EACd,UAAU,
|
|
1
|
+
{"version":3,"file":"CustomerAssortmentTab.d.ts","sourceRoot":"","sources":["../../../src/components/klanten/CustomerAssortmentTab.tsx"],"names":[],"mappings":"AA6BA,wBAAgB,qBAAqB,CAAC,EACpC,WAAW,EACX,cAAc,EACd,UAAU,EACV,YAAmB,GACpB,EAAE;IACD,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,yDAAyD;IACzD,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,6FAA6F;IAC7F,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC9B,+BA+bA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { useMemo, useState } from "react";
|
|
2
|
+
import { useEffect, useMemo, useState } from "react";
|
|
3
3
|
import { formatDateTime } from "../../lib/format-date.js";
|
|
4
4
|
import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
|
|
5
5
|
import { useServerFn } from "@tanstack/react-start";
|
|
@@ -24,7 +24,7 @@ function money(value, currency) {
|
|
|
24
24
|
return "—";
|
|
25
25
|
return formatMoney(value, currency);
|
|
26
26
|
}
|
|
27
|
-
export function CustomerAssortmentTab({ customerKey, organizationId, customerId, }) {
|
|
27
|
+
export function CustomerAssortmentTab({ customerKey, organizationId, customerId, focusProduct = null, }) {
|
|
28
28
|
const list = useServerFn(listCustomerAssortment);
|
|
29
29
|
const listStickers = useServerFn(listCustomerStickers);
|
|
30
30
|
const importStickers = useServerFn(importFloridayStickers);
|
|
@@ -70,6 +70,16 @@ export function CustomerAssortmentTab({ customerKey, organizationId, customerId,
|
|
|
70
70
|
return m;
|
|
71
71
|
}, [fustData]);
|
|
72
72
|
const fustFormat = fustData?.format ?? null;
|
|
73
|
+
// Stickers staan onder products.id; oude rijen nog onder het Floriday-id (regelsleutel).
|
|
74
|
+
const zoekSticker = (m, i) => {
|
|
75
|
+
for (const id of i.product_ids ?? []) {
|
|
76
|
+
const s = m.get(id);
|
|
77
|
+
if (s)
|
|
78
|
+
return s;
|
|
79
|
+
}
|
|
80
|
+
return m.get(i.key) ?? null;
|
|
81
|
+
};
|
|
82
|
+
const stickerSleutel = (i) => i.product_id ?? i.key;
|
|
73
83
|
const items = Array.isArray(data?.items) ? data.items : [];
|
|
74
84
|
const bronLabel = data?.bron === "voorraad" ? "Bron: voorraad" : "Bron: Floriday";
|
|
75
85
|
const ownCount = items.filter((i) => i.in_assortment).length;
|
|
@@ -91,6 +101,24 @@ export function CustomerAssortmentTab({ customerKey, organizationId, customerId,
|
|
|
91
101
|
},
|
|
92
102
|
onError: (e) => toast.error(friendlyError(e, "Ophalen uit Floriday mislukt")),
|
|
93
103
|
});
|
|
104
|
+
// Vanuit Verkoop ("Sticker toevoegen"): het gevraagde artikel zoeken, tonen en markeren.
|
|
105
|
+
const [focusKey, setFocusKey] = useState(null);
|
|
106
|
+
useEffect(() => {
|
|
107
|
+
if (!focusProduct || focusKey || items.length === 0)
|
|
108
|
+
return;
|
|
109
|
+
const hit = items.find((i) => i.key === focusProduct || (i.product_ids ?? []).includes(focusProduct));
|
|
110
|
+
if (!hit) {
|
|
111
|
+
toast.error("Dit artikel staat niet in het assortiment van deze klant.");
|
|
112
|
+
setFocusKey("-");
|
|
113
|
+
return;
|
|
114
|
+
}
|
|
115
|
+
setGroup(hit.in_assortment ? "own" : "other");
|
|
116
|
+
setOnlyPriced(false);
|
|
117
|
+
setOnlyWithoutSticker(false);
|
|
118
|
+
setSearch(hit.name);
|
|
119
|
+
setFocusKey(hit.key);
|
|
120
|
+
requestAnimationFrame(() => document.getElementById(`assortiment-${hit.key}`)?.scrollIntoView({ block: "center" }));
|
|
121
|
+
}, [focusProduct, focusKey, items]);
|
|
94
122
|
const filtered = useMemo(() => {
|
|
95
123
|
const q = search.trim().toLowerCase();
|
|
96
124
|
return items.filter((i) => {
|
|
@@ -126,14 +154,14 @@ export function CustomerAssortmentTab({ customerKey, organizationId, customerId,
|
|
|
126
154
|
? ` (${pg.calc_type === "surcharge" ? "toeslag" : "korting"} ${pg.calc_value}${pg.calc_value_type === "percentage" ? "%" : ` ${currency}`})`
|
|
127
155
|
: ""] })) : (_jsx("span", { className: "text-warning-soft-foreground", children: "Geen prijsgroep ingesteld voor deze klant" })), data?.summary.last_synced_at && (_jsxs("span", { children: ["laatste sync: ", formatDateTime(data.summary.last_synced_at)] }))] }), _jsxs("div", { className: "flex flex-wrap items-center gap-2 text-xs text-muted-foreground", children: [_jsxs("span", { children: ["Formaat productsticker:", " ", _jsx("strong", { className: "text-foreground", children: defaultFormat
|
|
128
156
|
? `${defaultFormat.width_mm} × ${defaultFormat.height_mm} mm`
|
|
129
|
-
: "—" })] }), _jsx(CustomerStickerFormatDialog, { customerKey: customerKey, format: defaultFormat }), _jsxs("span", { children: ["Formaat fuststicker:", " ", _jsx("strong", { className: "text-foreground", children: fustFormat ? `${fustFormat.width_mm} × ${fustFormat.height_mm} mm` : "—" })] }), _jsx(CustomerStickerFormatDialog, { customerKey: customerKey, format: fustFormat, soort: "fust" }), _jsxs("span", { children: [_jsx("strong", { className: "text-foreground", children: stickerMap.size }), " artikelen met productsticker", " · ", _jsx("strong", { className: "text-foreground", children: fustMap.size }), " met fuststicker"] }), _jsx(BulkStickerUploadDialog, { customerKey: customerKey, products: items.map((i) => ({
|
|
130
|
-
key: i
|
|
157
|
+
: "—" })] }), _jsx(CustomerStickerFormatDialog, { customerKey: customerKey, format: defaultFormat, trigger: _jsx(Button, { type: "button", variant: "link", size: "sm", className: "h-auto p-0 text-xs", children: "wijzigen" }) }), _jsxs("span", { children: ["Formaat fuststicker:", " ", _jsx("strong", { className: "text-foreground", children: fustFormat ? `${fustFormat.width_mm} × ${fustFormat.height_mm} mm` : "—" })] }), _jsx(CustomerStickerFormatDialog, { customerKey: customerKey, format: fustFormat, soort: "fust", trigger: _jsx(Button, { type: "button", variant: "link", size: "sm", className: "h-auto p-0 text-xs", children: "wijzigen" }) }), _jsxs("span", { children: [_jsx("strong", { className: "text-foreground", children: stickerMap.size }), " artikelen met productsticker", " · ", _jsx("strong", { className: "text-foreground", children: fustMap.size }), " met fuststicker"] }), _jsx(BulkStickerUploadDialog, { customerKey: customerKey, products: items.map((i) => ({
|
|
158
|
+
key: stickerSleutel(i),
|
|
131
159
|
name: i.name,
|
|
132
160
|
code: i.supplier_article_code,
|
|
133
161
|
vbn: i.vbn_code,
|
|
134
162
|
botanical: i.botanical_name,
|
|
135
|
-
hasSticker: stickerMap
|
|
136
|
-
hasFustSticker: fustMap
|
|
163
|
+
hasSticker: !!zoekSticker(stickerMap, i),
|
|
164
|
+
hasFustSticker: !!zoekSticker(fustMap, i),
|
|
137
165
|
})), soortKiezen: true, onDone: () => qc.invalidateQueries({ queryKey: ["customer-stickers", customerKey] }) }), _jsxs(Button, { type: "button", variant: "outline", size: "sm", disabled: floridayImport.isPending, onClick: () => floridayImport.mutate(), children: [_jsx(RefreshCw, { className: "h-4 w-4 mr-1.5 " + (floridayImport.isPending ? "animate-spin" : "") }), "Stickers ophalen uit Floriday"] })] }), hasOwnAssortment && (_jsx("div", { className: "flex flex-wrap items-center gap-2", children: _jsx("div", { className: "inline-flex rounded-lg border p-0.5", children: [
|
|
138
166
|
["own", `Eigen assortiment (${ownCount})`],
|
|
139
167
|
["other", `Overige producten (${otherCount})`],
|
|
@@ -152,14 +180,14 @@ export function CustomerAssortmentTab({ customerKey, organizationId, customerId,
|
|
|
152
180
|
i.packages_per_layer != null ? `${i.packages_per_layer} per laag` : null,
|
|
153
181
|
i.layers_per_carrier != null ? `${i.layers_per_carrier} lagen` : null,
|
|
154
182
|
].filter(Boolean);
|
|
155
|
-
const sticker = stickerMap
|
|
183
|
+
const sticker = zoekSticker(stickerMap, i);
|
|
156
184
|
const fmt = sticker?.width_mm != null && sticker?.height_mm != null
|
|
157
185
|
? `${sticker.width_mm} × ${sticker.height_mm} mm`
|
|
158
186
|
: defaultFormat
|
|
159
187
|
? `${defaultFormat.width_mm} × ${defaultFormat.height_mm} mm`
|
|
160
188
|
: null;
|
|
161
189
|
const alias = kiesAlias(aliases ?? [], i.product_ids ?? []);
|
|
162
|
-
return (_jsxs(TableRow, { className: customerId && i.product_id ? "cursor-pointer" : undefined, title: customerId && !i.product_id ? "Dit artikel staat nog niet in de voorraad" : undefined, onClick: (e) => {
|
|
190
|
+
return (_jsxs(TableRow, { id: `assortiment-${i.key}`, "data-state": focusKey === i.key ? "selected" : undefined, className: customerId && i.product_id ? "cursor-pointer" : undefined, title: customerId && !i.product_id ? "Dit artikel staat nog niet in de voorraad" : undefined, onClick: (e) => {
|
|
163
191
|
if (!customerId || !i.product_id)
|
|
164
192
|
return;
|
|
165
193
|
if (e.target.closest("button, a, input, label, select, textarea, [role='dialog']"))
|
|
@@ -172,7 +200,7 @@ export function CustomerAssortmentTab({ customerKey, organizationId, customerId,
|
|
|
172
200
|
i.country_of_origin,
|
|
173
201
|
alias?.customer_article_code ? `Klantcode: ${alias.customer_article_code}` : null,
|
|
174
202
|
alias?.customer_article_name ? `Klantnaam: ${alias.customer_article_name}` : null,
|
|
175
|
-
].filter(Boolean).join(" · ") || "—" })] }), hasOwnAssortment && (_jsx(TableCell, { children: i.in_assortment ? (_jsx(Badge, { children: "Eigen assortiment" })) : (_jsx("span", { className: "text-xs text-muted-foreground", children: "Overig" })) })), _jsxs(TableCell, { className: "text-sm text-muted-foreground", children: [_jsx("div", { children: i.packaging ?? "—" }), packing.length > 0 && (_jsx("div", { className: "text-xs", children: packing.join(" · ") }))] }), _jsx(TableCell, { className: "text-right whitespace-nowrap tabular-nums text-muted-foreground", children: money(i.base_price, i.currency) }), _jsxs(TableCell, { className: "text-right whitespace-nowrap tabular-nums", children: [_jsx("div", { className: "font-medium", children: money(i.price, i.currency) }), i.base_price_source && (_jsx("div", { className: "text-[10px] text-muted-foreground", children: i.base_price_source }))] }), _jsx(TableCell, { children: _jsxs("div", { className: "space-y-1", children: [_jsx(CustomerStickerCell, { customerKey: customerKey, tradeItemKey: i
|
|
203
|
+
].filter(Boolean).join(" · ") || "—" })] }), hasOwnAssortment && (_jsx(TableCell, { children: i.in_assortment ? (_jsx(Badge, { children: "Eigen assortiment" })) : (_jsx("span", { className: "text-xs text-muted-foreground", children: "Overig" })) })), _jsxs(TableCell, { className: "text-sm text-muted-foreground", children: [_jsx("div", { children: i.packaging ?? "—" }), packing.length > 0 && (_jsx("div", { className: "text-xs", children: packing.join(" · ") }))] }), _jsx(TableCell, { className: "text-right whitespace-nowrap tabular-nums text-muted-foreground", children: money(i.base_price, i.currency) }), _jsxs(TableCell, { className: "text-right whitespace-nowrap tabular-nums", children: [_jsx("div", { className: "font-medium", children: money(i.price, i.currency) }), i.base_price_source && (_jsx("div", { className: "text-[10px] text-muted-foreground", children: i.base_price_source }))] }), _jsx(TableCell, { children: _jsxs("div", { className: "space-y-1", children: [_jsx(CustomerStickerCell, { customerKey: customerKey, tradeItemKey: stickerSleutel(i), sticker: sticker, standaard: defaultFormat }), sticker ? (_jsxs("div", { className: "flex items-center gap-1.5 text-[10px] text-muted-foreground", children: [_jsx(Badge, { variant: sticker.source === "floriday" ? "default" : "secondary", children: sticker.source === "floriday" ? "Uit Floriday" : "Handmatig" }), fmt && _jsx("span", { children: fmt })] })) : _jsx("div", { className: "text-[10px] text-muted-foreground", children: "\u2014" })] }) }), _jsx(TableCell, { children: _jsx(CustomerStickerCell, { customerKey: customerKey, tradeItemKey: stickerSleutel(i), sticker: zoekSticker(fustMap, i), soort: "fust", standaard: fustFormat }) })] }, i.key));
|
|
176
204
|
}) })] }) }) }), customerId && (_jsx(CustomerArticleAliasDialog, { customerId: customerId, artikel: aliasArtikel, onOpenChange: (o) => { if (!o)
|
|
177
205
|
setAliasArtikel(null); } }))] }));
|
|
178
206
|
}
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { type CustomerSticker } from "../../lib/customer-stickers.functions.js";
|
|
2
2
|
import { type StickerSoort } from "../../lib/sticker-soort.js";
|
|
3
|
-
export declare function CustomerStickerCell({ customerKey, tradeItemKey, sticker, soort, }: {
|
|
3
|
+
export declare function CustomerStickerCell({ customerKey, tradeItemKey, sticker, soort, standaard, }: {
|
|
4
|
+
/** Standaardformaat van de klant voor deze soort. */
|
|
5
|
+
standaard?: {
|
|
6
|
+
width_mm: number;
|
|
7
|
+
height_mm: number;
|
|
8
|
+
} | null;
|
|
4
9
|
customerKey: string;
|
|
5
10
|
tradeItemKey: string;
|
|
6
11
|
sticker: CustomerSticker | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CustomerStickerCell.d.ts","sourceRoot":"","sources":["../../../src/components/klanten/CustomerStickerCell.tsx"],"names":[],"mappings":"AASA,OAAO,EAIL,KAAK,eAAe,EAErB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAkB,KAAK,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAiBxE,wBAAgB,mBAAmB,CAAC,EAClC,WAAW,EACX,YAAY,EACZ,OAAO,EACP,KAAiB,
|
|
1
|
+
{"version":3,"file":"CustomerStickerCell.d.ts","sourceRoot":"","sources":["../../../src/components/klanten/CustomerStickerCell.tsx"],"names":[],"mappings":"AASA,OAAO,EAIL,KAAK,eAAe,EAErB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAkB,KAAK,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAiBxE,wBAAgB,mBAAmB,CAAC,EAClC,WAAW,EACX,YAAY,EACZ,OAAO,EACP,KAAiB,EACjB,SAAgB,GACjB,EAAE;IACD,qDAAqD;IACrD,SAAS,CAAC,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IAC3D,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,eAAe,GAAG,IAAI,CAAC;IAChC,4DAA4D;IAC5D,KAAK,CAAC,EAAE,YAAY,CAAC;CACtB,+BA+LA"}
|
|
@@ -20,7 +20,7 @@ function extOf(name) {
|
|
|
20
20
|
function safeKey(value) {
|
|
21
21
|
return value.replace(/[^a-zA-Z0-9._-]/g, "_");
|
|
22
22
|
}
|
|
23
|
-
export function CustomerStickerCell({ customerKey, tradeItemKey, sticker, soort = "product", }) {
|
|
23
|
+
export function CustomerStickerCell({ customerKey, tradeItemKey, sticker, soort = "product", standaard = null, }) {
|
|
24
24
|
const qc = useQueryClient();
|
|
25
25
|
const confirm = useServerFn(confirmStickerUpload);
|
|
26
26
|
const remove = useServerFn(deleteCustomerSticker);
|
|
@@ -54,6 +54,7 @@ export function CustomerStickerCell({ customerKey, tradeItemKey, sticker, soort
|
|
|
54
54
|
data: {
|
|
55
55
|
customerKey,
|
|
56
56
|
tradeItemKey,
|
|
57
|
+
oudeSleutel: sticker && sticker.trade_item_key !== tradeItemKey ? sticker.trade_item_key : null,
|
|
57
58
|
filePath: path,
|
|
58
59
|
fileName: file.name,
|
|
59
60
|
mimeType: type,
|
|
@@ -76,7 +77,7 @@ export function CustomerStickerCell({ customerKey, tradeItemKey, sticker, soort
|
|
|
76
77
|
}
|
|
77
78
|
};
|
|
78
79
|
const del = useMutation({
|
|
79
|
-
mutationFn: () => remove({ data: { customerKey, tradeItemKey, soort } }),
|
|
80
|
+
mutationFn: () => remove({ data: { customerKey, tradeItemKey: sticker?.trade_item_key ?? tradeItemKey, soort } }),
|
|
80
81
|
onSuccess: () => {
|
|
81
82
|
invalidate();
|
|
82
83
|
toast.success("Sticker verwijderd");
|
|
@@ -94,5 +95,5 @@ export function CustomerStickerCell({ customerKey, tradeItemKey, sticker, soort
|
|
|
94
95
|
: "Formaat nog onbekend" })] })] })) : (_jsxs(Button, { type: "button", variant: "outline", size: "sm", disabled: busy, onClick: () => inputRef.current?.click(), children: [_jsx(Upload, { className: "h-4 w-4 mr-1.5" }), "Uploaden"] })), _jsx(Dialog, { open: open, onOpenChange: (o) => { setOpen(o); if (!o)
|
|
95
96
|
setLastDet(null); }, children: _jsxs(DialogContent, { className: "max-w-md", children: [_jsx(DialogHeader, { children: _jsx(DialogTitle, { children: "Sticker" }) }), sticker && (_jsxs("div", { className: "space-y-3", children: [isImage && sticker.url ? (_jsx("img", { src: sticker.url, alt: sticker.file_name, className: "max-h-64 w-full rounded border object-contain bg-muted" })) : (_jsxs("div", { className: "rounded border bg-muted p-6 flex items-center justify-center gap-2 text-sm text-muted-foreground", children: [_jsx(FileText, { className: "h-5 w-5" }), sticker.file_name] })), _jsxs("p", { className: "text-xs text-muted-foreground", children: [sticker.file_name, sticker.file_size != null
|
|
96
97
|
? ` · ${(sticker.file_size / 1024).toFixed(0)} kB`
|
|
97
|
-
: ""] }), _jsx(StickerSizeLine, { customerKey: customerKey, tradeItemKey:
|
|
98
|
+
: ""] }), _jsx(StickerSizeLine, { customerKey: customerKey, tradeItemKey: sticker.trade_item_key, soort: soort, widthMm: sticker.width_mm, heightMm: sticker.height_mm, initialDetection: lastDet, standaard: standaard, onSaved: invalidate }, sticker.file_path)] })), _jsxs(DialogFooter, { className: "gap-2 sm:justify-between", children: [_jsxs(Button, { type: "button", variant: "destructive", disabled: del.isPending || busy, onClick: () => del.mutate(), children: [_jsx(Trash2, { className: "h-4 w-4 mr-1.5" }), "Verwijderen"] }), _jsxs("div", { className: "flex gap-2", children: [sticker?.url && (_jsx(Button, { type: "button", variant: "outline", asChild: true, children: _jsxs("a", { href: sticker.url, target: "_blank", rel: "noreferrer", children: [_jsx(Eye, { className: "h-4 w-4 mr-1.5" }), "Bekijken"] }) })), _jsxs(Button, { type: "button", disabled: busy, onClick: () => inputRef.current?.click(), children: [_jsx(RefreshCw, { className: "h-4 w-4 mr-1.5" }), "Vervangen"] })] })] })] }) })] }));
|
|
98
99
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CustomerStickerFormatDialog.d.ts","sourceRoot":"","sources":["../../../src/components/klanten/CustomerStickerFormatDialog.tsx"],"names":[],"mappings":"AAQA,OAAO,EAA8B,KAAK,aAAa,EAAE,MAAM,mCAAmC,CAAC;
|
|
1
|
+
{"version":3,"file":"CustomerStickerFormatDialog.d.ts","sourceRoot":"","sources":["../../../src/components/klanten/CustomerStickerFormatDialog.tsx"],"names":[],"mappings":"AAQA,OAAO,EAA8B,KAAK,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAKnG,wBAAgB,2BAA2B,CAAC,EAC1C,WAAW,EACX,MAAM,EACN,OAAO,EACP,KAAiB,GAClB,EAAE;IACD,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,aAAa,GAAG,IAAI,CAAC;IAC7B,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,4DAA4D;IAC5D,KAAK,CAAC,EAAE,SAAS,GAAG,MAAM,CAAC;CAC5B,+BAwEA"}
|
|
@@ -2,27 +2,30 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
2
2
|
import { useEffect, useState } from "react";
|
|
3
3
|
import { useMutation, useQueryClient } from "@tanstack/react-query";
|
|
4
4
|
import { useServerFn } from "@tanstack/react-start";
|
|
5
|
-
import { Button, Dialog, DialogContent, DialogFooter, DialogHeader, DialogTitle,
|
|
5
|
+
import { Button, Dialog, DialogContent, DialogFooter, DialogHeader, DialogTitle, Label, } from "@flowselections/core";
|
|
6
6
|
import { Ruler } from "lucide-react";
|
|
7
7
|
import { toast } from "sonner";
|
|
8
8
|
import { setCustomerStickerSettings } from "../../lib/customer-stickers.functions.js";
|
|
9
9
|
import { friendlyError } from "../../lib/errors.js";
|
|
10
|
+
import { formaatSleutel } from "../../lib/sticker-formaten.js";
|
|
11
|
+
import { StickerFormaatKeuze } from "./StickerFormaatKeuze.js";
|
|
10
12
|
export function CustomerStickerFormatDialog({ customerKey, format, trigger, soort = "product", }) {
|
|
11
13
|
const fust = soort === "fust";
|
|
12
14
|
const qc = useQueryClient();
|
|
13
15
|
const save = useServerFn(setCustomerStickerSettings);
|
|
14
16
|
const [open, setOpen] = useState(false);
|
|
15
|
-
const
|
|
16
|
-
const [
|
|
17
|
+
const huidigeSleutel = format ? formaatSleutel(format.width_mm, format.height_mm) : null;
|
|
18
|
+
const [keuze, setKeuze] = useState(null);
|
|
19
|
+
const [sleutel, setSleutel] = useState(huidigeSleutel);
|
|
17
20
|
useEffect(() => {
|
|
18
21
|
if (open) {
|
|
19
|
-
|
|
20
|
-
|
|
22
|
+
setKeuze(null);
|
|
23
|
+
setSleutel(huidigeSleutel);
|
|
21
24
|
}
|
|
22
|
-
}, [open,
|
|
25
|
+
}, [open, huidigeSleutel]);
|
|
23
26
|
const mut = useMutation({
|
|
24
27
|
mutationFn: () => save({
|
|
25
|
-
data: { customerKey, widthMm:
|
|
28
|
+
data: { customerKey, widthMm: keuze.width_mm, heightMm: keuze.height_mm, soort },
|
|
26
29
|
}),
|
|
27
30
|
onSuccess: () => {
|
|
28
31
|
qc.invalidateQueries({ queryKey: ["customer-stickers", customerKey] });
|
|
@@ -32,6 +35,6 @@ export function CustomerStickerFormatDialog({ customerKey, format, trigger, soor
|
|
|
32
35
|
},
|
|
33
36
|
onError: (e) => toast.error(friendlyError(e, "Opslaan mislukt")),
|
|
34
37
|
});
|
|
35
|
-
const valid =
|
|
36
|
-
return (_jsxs(_Fragment, { children: [_jsx("span", { onClick: () => setOpen(true), children: trigger ?? (_jsxs(Button, { type: "button", variant: "outline", size: "sm", children: [_jsx(Ruler, { className: "h-4 w-4 mr-2" }), fust ? "Formaat fuststicker" : "Stickerformaat"] })) }), _jsx(Dialog, { open: open, onOpenChange: setOpen, children: _jsxs(DialogContent, { className: "max-w-sm", children: [_jsx(DialogHeader, { children: _jsx(DialogTitle, { children: fust ? "Formaat fuststicker van deze klant" : "Stickerformaat van deze klant" }) }), _jsxs("div", { className: "
|
|
38
|
+
const valid = keuze !== null;
|
|
39
|
+
return (_jsxs(_Fragment, { children: [_jsx("span", { onClick: () => setOpen(true), children: trigger ?? (_jsxs(Button, { type: "button", variant: "outline", size: "sm", children: [_jsx(Ruler, { className: "h-4 w-4 mr-2" }), fust ? "Formaat fuststicker" : "Stickerformaat"] })) }), _jsx(Dialog, { open: open, onOpenChange: setOpen, children: _jsxs(DialogContent, { className: "max-w-sm", children: [_jsx(DialogHeader, { children: _jsx(DialogTitle, { children: fust ? "Formaat fuststicker van deze klant" : "Stickerformaat van deze klant" }) }), _jsxs("div", { className: "space-y-1", children: [_jsx(Label, { htmlFor: fust ? "fust-sticker-formaat" : "sticker-formaat", children: "Formaat" }), _jsx(StickerFormaatKeuze, { id: fust ? "fust-sticker-formaat" : "sticker-formaat", widthMm: format?.width_mm, heightMm: format?.height_mm, value: sleutel, onChange: (f) => { setKeuze(f); setSleutel(f.sleutel); } })] }), _jsx("p", { className: "text-xs text-muted-foreground", children: "Stickers worden bij het printen passend geschaald naar dit formaat." }), _jsxs(DialogFooter, { children: [_jsx(Button, { type: "button", variant: "outline", onClick: () => setOpen(false), children: "Annuleren" }), _jsx(Button, { type: "button", disabled: !valid || mut.isPending, onClick: () => mut.mutate(), children: "Opslaan" })] })] }) })] }));
|
|
37
40
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KlantDetail.d.ts","sourceRoot":"","sources":["../../../src/components/klanten/KlantDetail.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"KlantDetail.d.ts","sourceRoot":"","sources":["../../../src/components/klanten/KlantDetail.tsx"],"names":[],"mappings":"AAqDA,wBAAgB,WAAW,CAAC,EAAE,EAAE,EAAE,EAAE;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,+BAobjD"}
|
|
@@ -24,6 +24,7 @@ import { FloridayDeeplinkButton } from "./FloridayDeeplinkButton.js";
|
|
|
24
24
|
import { FloridayAssortmentTab } from "./FloridayAssortmentTab.js";
|
|
25
25
|
import { CustomerAssortmentTab } from "./CustomerAssortmentTab.js";
|
|
26
26
|
import { SyncStatusChip } from "./SyncStatusChip.js";
|
|
27
|
+
import { KlantExtraVeldenCard } from "./KlantExtraVeldenCard.js";
|
|
27
28
|
import { decodeDeep } from "../../lib/decode-html.js";
|
|
28
29
|
import { getMissingTwinfieldFields } from "../../lib/twinfield-required-fields.js";
|
|
29
30
|
import { missingInvoiceAddressFields } from "../../lib/invoice-address.js";
|
|
@@ -45,6 +46,16 @@ export function KlantDetail({ id }) {
|
|
|
45
46
|
const getNote = useServerFn(getCustomerNote);
|
|
46
47
|
const saveNote = useServerFn(upsertCustomerNote);
|
|
47
48
|
const [tab, setTab] = useState("overview");
|
|
49
|
+
// Diepe link (bv. Verkoop "Sticker toevoegen"): ?tab=assortiment&product=<product-id>.
|
|
50
|
+
const [focusProduct, setFocusProduct] = useState(null);
|
|
51
|
+
useEffect(() => {
|
|
52
|
+
const q = new URLSearchParams(window.location.search);
|
|
53
|
+
if (q.get("tab") === "assortiment")
|
|
54
|
+
setTab("assortment");
|
|
55
|
+
const p = q.get("product");
|
|
56
|
+
if (p)
|
|
57
|
+
setFocusProduct(p);
|
|
58
|
+
}, [id]);
|
|
48
59
|
const [editOpen, setEditOpen] = useState(false);
|
|
49
60
|
const [confirm, setConfirm] = useState(null);
|
|
50
61
|
const [archiefVraag, setArchiefVraag] = useState(false);
|
|
@@ -58,7 +69,7 @@ export function KlantDetail({ id }) {
|
|
|
58
69
|
const archiefMut = useMutation({
|
|
59
70
|
mutationFn: async (naarArchief) => naarArchief ? archiveer({ data: { customerId: id } }) : herstel({ data: { customerId: id } }),
|
|
60
71
|
onSuccess: (_r, naarArchief) => {
|
|
61
|
-
toast.success(naarArchief ? "Klant gearchiveerd" : "Klant
|
|
72
|
+
toast.success(naarArchief ? "Klant gearchiveerd" : "Klant teruggehaald");
|
|
62
73
|
qc.invalidateQueries({ queryKey: ["customer-archief", id] });
|
|
63
74
|
qc.invalidateQueries({ queryKey: ["customers-archief"] });
|
|
64
75
|
},
|
|
@@ -145,7 +156,7 @@ export function KlantDetail({ id }) {
|
|
|
145
156
|
text: _jsxs(_Fragment, { children: [_jsx("span", { className: "font-medium", children: "Factuuradres onvolledig." }), " ", _jsxs("span", { className: "text-muted-foreground", children: ["Ontbreekt: ", missingInvoice.join(", "), "."] })] }),
|
|
146
157
|
action: _jsx(Button, { variant: "outline", size: "sm", className: "h-8", onClick: () => setEditOpen(true), children: "Aanvullen" }),
|
|
147
158
|
},
|
|
148
|
-
] }), _jsx("div", { className: "flex items-center justify-end", children: _jsxs("div", { className: "flex gap-2 items-center", children: [gearchiveerd && (_jsxs(Badge, { variant: "secondary", className: "gap-1", children: [_jsx(Archive, { className: "h-3.5 w-3.5", "aria-hidden": true }), " Gearchiveerd"] })), _jsx(BlockedBadge, { blocked: c.blocked }), _jsx(SyncStatusChip, { customerId: id }), _jsx(FloridayDeeplinkButton, { organizationId: c.floriday_organization_id }), _jsxs(Button, { variant: "outline", size: "sm", onClick: () => setEditOpen(true), children: [_jsx(Pencil, { className: "h-4 w-4 mr-2" }), " Bewerken"] }),
|
|
159
|
+
] }), _jsx("div", { className: "flex items-center justify-end", children: _jsxs("div", { className: "flex gap-2 items-center", children: [gearchiveerd && (_jsxs(Badge, { variant: "secondary", className: "gap-1", children: [_jsx(Archive, { className: "h-3.5 w-3.5", "aria-hidden": true }), " Gearchiveerd"] })), _jsx(BlockedBadge, { blocked: c.blocked }), _jsx(SyncStatusChip, { customerId: id }), _jsx(FloridayDeeplinkButton, { organizationId: c.floriday_organization_id }), _jsxs(Button, { variant: "outline", size: "sm", onClick: () => setEditOpen(true), children: [_jsx(Pencil, { className: "h-4 w-4 mr-2" }), " Bewerken"] }), gearchiveerd ? (_jsxs(Button, { variant: "outline", size: "sm", disabled: archiefMut.isPending, onClick: () => archiefMut.mutate(false), children: [_jsx(ArchiveRestore, { className: "h-4 w-4 mr-2" }), " Terughalen"] })) : (_jsxs(Button, { variant: "outline", size: "sm", disabled: archiefMut.isPending, onClick: () => setArchiefVraag(true), children: [_jsx(Archive, { className: "h-4 w-4 mr-2" }), " Archiveren"] })), _jsxs(DropdownMenu, { children: [_jsx(DropdownMenuTrigger, { asChild: true, children: _jsxs(Button, { variant: "outline", size: "sm", children: [_jsx(MoreHorizontal, { className: "h-4 w-4 mr-2" }), " Meer"] }) }), _jsxs(DropdownMenuContent, { align: "end", children: [_jsxs(DropdownMenuItem, { onSelect: () => setConfirm("active"), children: [_jsx(Power, { className: "h-4 w-4 mr-2" }), c.is_active ? "Op inactief zetten" : "Activeren"] }), _jsx(DropdownMenuSeparator, {}), _jsxs(DropdownMenuItem, { className: "text-destructive", onSelect: () => setConfirm("delete"), children: [_jsx(Trash2, { className: "h-4 w-4 mr-2" }), " Verwijderen"] })] })] }), _jsx(AlertDialog, { open: archiefVraag, onOpenChange: setArchiefVraag, children: _jsxs(AlertDialogContent, { children: [_jsxs(AlertDialogHeader, { children: [_jsx(AlertDialogTitle, { children: "Klant archiveren?" }), _jsx(AlertDialogDescription, { children: "De klant verdwijnt uit de klantenlijst en uit keuzelijsten. Oude orders en facturen blijven zichtbaar. Er gaat niets naar de boekhouding of Floriday." })] }), _jsxs(AlertDialogFooter, { children: [_jsx(AlertDialogCancel, { children: "Annuleren" }), _jsx(AlertDialogAction, { onClick: () => { archiefMut.mutate(true); setArchiefVraag(false); }, children: "Archiveren" })] })] }) }), _jsx(AlertDialog, { open: confirm !== null, onOpenChange: (o) => !o && setConfirm(null), children: _jsxs(AlertDialogContent, { children: [confirm === "delete" ? (_jsxs(AlertDialogHeader, { children: [_jsx(AlertDialogTitle, { children: "Klant verwijderen?" }), _jsxs(AlertDialogDescription, { children: [_jsx("strong", { children: c.company_name }), " wordt alleen hier verwijderd. In de boekhouding blijft de klant bestaan, en in Floriday verandert niets. Dit kun je niet ongedaan maken."] })] })) : c.is_active ? (_jsxs(AlertDialogHeader, { children: [_jsx(AlertDialogTitle, { children: "Klant op inactief zetten?" }), _jsxs(AlertDialogDescription, { children: [_jsx("strong", { children: c.company_name }), " wordt hier inactief.", " ", linkedToTwinfield
|
|
149
160
|
? "In de boekhouding wordt de klant verborgen; de gegevens blijven daar bewaard."
|
|
150
161
|
: "Deze klant staat niet in de boekhouding, dus daar verandert niets.", " ", "In Floriday verandert niets. Je kunt de klant later weer activeren."] })] })) : (_jsxs(AlertDialogHeader, { children: [_jsx(AlertDialogTitle, { children: "Klant activeren?" }), _jsxs(AlertDialogDescription, { children: [_jsx("strong", { children: c.company_name }), " wordt hier weer actief.", " ", linkedToTwinfield
|
|
151
162
|
? "In de boekhouding wordt de klant weer zichtbaar."
|
|
@@ -155,5 +166,5 @@ export function KlantDetail({ id }) {
|
|
|
155
166
|
else
|
|
156
167
|
toggleActive.mutate(!c.is_active);
|
|
157
168
|
setConfirm(null);
|
|
158
|
-
}, children: confirm === "delete" ? "Verwijderen" : c.is_active ? "Op inactief zetten" : "Activeren" })] })] }) })] }) }), _jsxs("div", { className: "grid gap-6 lg:grid-cols-[340px_1fr]", children: [_jsx(ProfileCard, { profile: adaptLocalToProfile(c, data.contacts), notes: noteData?.note ?? null, onSaveNotes: (n) => noteMut.mutate(n), isSaving: noteMut.isPending || noteLoading }), _jsxs("div", { className: "space-y-4 min-w-0", children: [_jsxs("div", { className: "flex flex-wrap items-center gap-4", children: [keyData?.customerKey ? (_jsx(CustomerPriceGroupSelect, { customerKey: keyData.customerKey })) : null, priceGroups.length > 0 && (_jsxs("div", { className: "flex items-center gap-2 text-sm", children: [_jsx("span", { className: "text-muted-foreground", children: "Floriday-prijscategorie:" }), _jsx(PriceGroupBadges, { groups: priceGroups, max: priceGroups.length })] }))] }), _jsx(CustomerKpis, { customerId: id, twinfieldCode: c.twinfield_code ?? null, onSelect: setTab }), _jsxs(Tabs, { value: tab, onValueChange: setTab, children: [_jsxs(TabsList, { className: "flex h-auto flex-wrap gap-2 bg-transparent p-0 mb-4 [&>button]:h-9 [&>button]:rounded-lg [&>button]:border [&>button]:border-border [&>button]:bg-card [&>button]:px-3 [&>button]:text-sm [&>button]:transition-colors [&>button]:duration-150 [&>button:hover]:bg-muted [&>button[data-state=active]]:border-primary/40 [&>button[data-state=active]]:bg-primary/10 [&>button[data-state=active]]:shadow-none [&>button[data-state=active]]:font-medium", children: [_jsx(TabsTrigger, { value: "overview", children: "Overzicht" }), _jsx(TabsTrigger, { value: "dashboard", children: "Analyses" }), _jsxs(TabsTrigger, { value: "contacts", children: ["Contacten (", data.contacts.length, ")"] }), _jsxs(TabsTrigger, { value: "locations", children: ["Locaties (", data.delivery_locations.length, ")"] }), _jsx(TabsTrigger, { value: "assortment", children: "Assortiment" }), c.floriday_organization_id && (_jsx(TabsTrigger, { value: "floriday-assortment", children: "Aanbod via Floriday" })), _jsxs(TabsTrigger, { value: "orders", children: ["Bestellingen (", ordersData?.orders.length ?? 0, ")"] }), _jsx(TabsTrigger, { value: "trade", children: "Handel" }), _jsx(TabsTrigger, { value: "discounts", children: "Kortingen & prijzen" }), _jsx(TabsTrigger, { value: "activity", children: "Activiteit" })] }), _jsxs(TabsContent, { value: "overview", className: "space-y-4", children: [c.bio && (_jsxs(Card, { children: [_jsx(CardHeader, { children: _jsx(CardTitle, { children: "Bio" }) }), _jsx(CardContent, { className: "text-sm whitespace-pre-wrap", children: c.bio })] })), (c.segments?.length || c.trade_forms?.length || c.markets?.length || c.product_groups?.length) ? (_jsxs(Card, { children: [_jsx(CardHeader, { children: _jsx(CardTitle, { children: "Profiel" }) }), _jsxs(CardContent, { className: "grid gap-4 md:grid-cols-2", children: [_jsx(BadgeList, { label: "Segmenten", items: c.segments }), _jsx(BadgeList, { label: "Handelsvorm", items: c.trade_forms }), _jsx(BadgeList, { label: "Afzetmarkten", items: c.markets }), _jsx(BadgeList, { label: "Productgroepen", items: c.product_groups })] })] })) : null, (c.payment_methods?.length ?? 0) > 0 && (_jsxs(Card, { children: [_jsx(CardHeader, { children: _jsx(CardTitle, { children: "Financi\u00EBle afhandeling" }) }), _jsx(CardContent, { children: _jsx(BadgeList, { label: "Betaalmethoden", items: c.payment_methods }) })] })), hasBillingInfo(c) && _jsx(FactureringKredietCard, { customer: c }), _jsx(CustomerCarrierCard, { customerId: id }), _jsx(CustomerLogisticsCard, { customerId: id }), !hasBillingInfo(c) && !c.bio && !(c.segments?.length || c.trade_forms?.length || c.markets?.length || c.product_groups?.length) && !(c.payment_methods?.length) && (_jsx(EmptyState, { message: "Geen extra profielinformatie beschikbaar voor deze klant." }))] }), _jsx(TabsContent, { value: "contacts", children: data.contacts.length === 0 ? (_jsx(EmptyState, { message: c.floriday_organization_id ? "Geen contactpersonen beschikbaar. Floriday levert geen contactpersonen via de koppeling." : "Geen contactpersonen beschikbaar." })) : (_jsx("div", { className: "grid gap-4 md:grid-cols-2 lg:grid-cols-3", children: data.contacts.map((p) => (_jsx(Card, { children: _jsxs(CardContent, { className: "pt-6 space-y-2", children: [_jsx("div", { className: "font-semibold", children: p.full_name }), p.job_title && _jsx("div", { className: "text-sm text-muted-foreground", children: p.job_title }), p.phone && (_jsxs("a", { href: `tel:${p.phone}`, className: "text-sm flex items-center gap-2 hover:underline", children: [_jsx(Phone, { className: "h-3.5 w-3.5 text-muted-foreground" }), " ", p.phone] })), p.email && (_jsxs("a", { href: `mailto:${p.email}`, className: "text-sm flex items-center gap-2 hover:underline", children: [_jsx(Mail, { className: "h-3.5 w-3.5 text-muted-foreground" }), " ", p.email] })), p.is_active ? _jsx(Badge, { children: "Actief" }) : _jsx(Badge, { variant: "secondary", children: "Inactief" })] }) }, p.id))) })) }),
|
|
169
|
+
}, children: confirm === "delete" ? "Verwijderen" : c.is_active ? "Op inactief zetten" : "Activeren" })] })] }) })] }) }), _jsxs("div", { className: "grid gap-6 lg:grid-cols-[340px_1fr]", children: [_jsx(ProfileCard, { profile: adaptLocalToProfile(c, data.contacts), notes: noteData?.note ?? null, onSaveNotes: (n) => noteMut.mutate(n), isSaving: noteMut.isPending || noteLoading }), _jsxs("div", { className: "space-y-4 min-w-0", children: [_jsxs("div", { className: "flex flex-wrap items-center gap-4", children: [keyData?.customerKey ? (_jsx(CustomerPriceGroupSelect, { customerKey: keyData.customerKey })) : null, priceGroups.length > 0 && (_jsxs("div", { className: "flex items-center gap-2 text-sm", children: [_jsx("span", { className: "text-muted-foreground", children: "Floriday-prijscategorie:" }), _jsx(PriceGroupBadges, { groups: priceGroups, max: priceGroups.length })] }))] }), _jsx(CustomerKpis, { customerId: id, twinfieldCode: c.twinfield_code ?? null, onSelect: setTab }), _jsxs(Tabs, { value: tab, onValueChange: setTab, children: [_jsxs(TabsList, { className: "flex h-auto flex-wrap gap-2 bg-transparent p-0 mb-4 [&>button]:h-9 [&>button]:rounded-lg [&>button]:border [&>button]:border-border [&>button]:bg-card [&>button]:px-3 [&>button]:text-sm [&>button]:transition-colors [&>button]:duration-150 [&>button:hover]:bg-muted [&>button[data-state=active]]:border-primary/40 [&>button[data-state=active]]:bg-primary/10 [&>button[data-state=active]]:shadow-none [&>button[data-state=active]]:font-medium", children: [_jsx(TabsTrigger, { value: "overview", children: "Overzicht" }), _jsx(TabsTrigger, { value: "dashboard", children: "Analyses" }), _jsxs(TabsTrigger, { value: "contacts", children: ["Contacten (", data.contacts.length, ")"] }), _jsxs(TabsTrigger, { value: "locations", children: ["Locaties (", data.delivery_locations.length, ")"] }), _jsx(TabsTrigger, { value: "assortment", children: "Assortiment" }), c.floriday_organization_id && (_jsx(TabsTrigger, { value: "floriday-assortment", children: "Aanbod via Floriday" })), _jsxs(TabsTrigger, { value: "orders", children: ["Bestellingen (", ordersData?.orders.length ?? 0, ")"] }), _jsx(TabsTrigger, { value: "trade", children: "Handel" }), _jsx(TabsTrigger, { value: "discounts", children: "Kortingen & prijzen" }), _jsx(TabsTrigger, { value: "activity", children: "Activiteit" })] }), _jsxs(TabsContent, { value: "overview", className: "space-y-4", children: [c.bio && (_jsxs(Card, { children: [_jsx(CardHeader, { children: _jsx(CardTitle, { children: "Bio" }) }), _jsx(CardContent, { className: "text-sm whitespace-pre-wrap", children: c.bio })] })), (c.segments?.length || c.trade_forms?.length || c.markets?.length || c.product_groups?.length) ? (_jsxs(Card, { children: [_jsx(CardHeader, { children: _jsx(CardTitle, { children: "Profiel" }) }), _jsxs(CardContent, { className: "grid gap-4 md:grid-cols-2", children: [_jsx(BadgeList, { label: "Segmenten", items: c.segments }), _jsx(BadgeList, { label: "Handelsvorm", items: c.trade_forms }), _jsx(BadgeList, { label: "Afzetmarkten", items: c.markets }), _jsx(BadgeList, { label: "Productgroepen", items: c.product_groups })] })] })) : null, (c.payment_methods?.length ?? 0) > 0 && (_jsxs(Card, { children: [_jsx(CardHeader, { children: _jsx(CardTitle, { children: "Financi\u00EBle afhandeling" }) }), _jsx(CardContent, { children: _jsx(BadgeList, { label: "Betaalmethoden", items: c.payment_methods }) })] })), hasBillingInfo(c) && _jsx(FactureringKredietCard, { customer: c }), _jsx(CustomerCarrierCard, { customerId: id }), _jsx(CustomerLogisticsCard, { customerId: id }), !hasBillingInfo(c) && !c.bio && !(c.segments?.length || c.trade_forms?.length || c.markets?.length || c.product_groups?.length) && !(c.payment_methods?.length) && (_jsx(EmptyState, { message: "Geen extra profielinformatie beschikbaar voor deze klant." }))] }), _jsx(TabsContent, { value: "contacts", children: data.contacts.length === 0 ? (_jsx(EmptyState, { message: c.floriday_organization_id ? "Geen contactpersonen beschikbaar. Floriday levert geen contactpersonen via de koppeling." : "Geen contactpersonen beschikbaar." })) : (_jsx("div", { className: "grid gap-4 md:grid-cols-2 lg:grid-cols-3", children: data.contacts.map((p) => (_jsx(Card, { children: _jsxs(CardContent, { className: "pt-6 space-y-2", children: [_jsx("div", { className: "font-semibold", children: p.full_name }), p.job_title && _jsx("div", { className: "text-sm text-muted-foreground", children: p.job_title }), p.phone && (_jsxs("a", { href: `tel:${p.phone}`, className: "text-sm flex items-center gap-2 hover:underline", children: [_jsx(Phone, { className: "h-3.5 w-3.5 text-muted-foreground" }), " ", p.phone] })), p.email && (_jsxs("a", { href: `mailto:${p.email}`, className: "text-sm flex items-center gap-2 hover:underline", children: [_jsx(Mail, { className: "h-3.5 w-3.5 text-muted-foreground" }), " ", p.email] })), p.is_active ? _jsx(Badge, { children: "Actief" }) : _jsx(Badge, { variant: "secondary", children: "Inactief" })] }) }, p.id))) })) }), _jsxs(TabsContent, { value: "trade", children: [_jsx(KlantExtraVeldenCard, { customerId: c.id }), c.floriday_organization_id ? (_jsx(FloridayTradeSettingsCard, { organizationId: c.floriday_organization_id })) : data.trade_settings.length === 0 ? (_jsx(EmptyState, { message: "Geen handelsinstellingen voor deze klant." })) : (_jsx(Card, { children: _jsx(CardContent, { className: "pt-6 space-y-2", children: data.trade_settings.map((s) => (_jsxs("div", { className: "flex items-center gap-3", children: [_jsx(Badge, { variant: s.is_active ? "default" : "secondary", children: s.is_active ? "Actief" : "Niet actief" }), _jsx("span", { className: "text-sm", children: s.setting_label })] }, s.id))) }) }))] }), _jsx(TabsContent, { value: "locations", children: _jsxs("div", { className: "space-y-4", children: [_jsx(CustomerCarrierCard, { customerId: id }), _jsx(CustomerLogisticsCard, { customerId: id }), _jsx(DeliveryLocationsTab, { customerId: id })] }) }), _jsx(TabsContent, { value: "dashboard", children: _jsx(CustomerAnalyticsTab, { customerId: id }) }), _jsx(TabsContent, { value: "assortment", children: keyData?.customerKey ? (_jsx(CustomerAssortmentTab, { customerKey: keyData.customerKey, organizationId: c.floriday_organization_id ?? null, customerId: id, focusProduct: focusProduct })) : (_jsx(EmptyState, { message: "Assortiment is beschikbaar zodra deze klant gekoppeld is." })) }), c.floriday_organization_id && (_jsx(TabsContent, { value: "floriday-assortment", children: _jsx(FloridayAssortmentTab, { organizationId: c.floriday_organization_id }) })), _jsx(TabsContent, { value: "orders", children: _jsx(CustomerOrdersTab, { orders: ordersData?.orders ?? [], deletedCount: ordersData?.deletedCount ?? 0, loading: ordersLoading, showFloridayNotice: !!c.floriday_organization_id }) }), _jsx(TabsContent, { value: "activity", children: _jsx(Card, { children: _jsxs(CardContent, { className: "pt-6 space-y-2", children: [data.floriday_synced_at && (_jsxs("div", { className: "flex items-center justify-between text-sm border-l-2 border-primary pl-3 py-1", children: [_jsxs("span", { children: ["Gekoppeld met ", _jsx("strong", { children: "Floriday" })] }), _jsx("span", { className: "text-xs text-muted-foreground", children: formatDateTime(data.floriday_synced_at) })] })), data.audit.length === 0 && !data.floriday_synced_at ? (_jsx("p", { className: "text-sm text-muted-foreground", children: "Nog geen activiteit voor deze klant." })) : (data.audit.map((a) => _jsx(ActivityItem, { entry: a }, a.id)))] }) }) }), _jsx(TabsContent, { value: "discounts", children: _jsx(LocalDiscountsTab, { customerId: id }) })] })] })] }), _jsx(KlantBewerkenDialog, { open: editOpen, onOpenChange: setEditOpen, customerId: id, onSaved: () => qc.invalidateQueries({ queryKey: ["customer", id] }) })] }));
|
|
159
170
|
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/** Standaardwaarden van de extra velden voor deze klant (voorinvulling per orderregel in Verkoop). */
|
|
2
|
+
export declare function KlantExtraVeldenCard({ customerId }: {
|
|
3
|
+
customerId: string;
|
|
4
|
+
}): import("react").JSX.Element | null;
|
|
5
|
+
//# sourceMappingURL=KlantExtraVeldenCard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KlantExtraVeldenCard.d.ts","sourceRoot":"","sources":["../../../src/components/klanten/KlantExtraVeldenCard.tsx"],"names":[],"mappings":"AAmBA,sGAAsG;AACtG,wBAAgB,oBAAoB,CAAC,EAAE,UAAU,EAAE,EAAE;IAAE,UAAU,EAAE,MAAM,CAAA;CAAE,sCAyD1E"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect, useState } from "react";
|
|
3
|
+
import { useQuery, useQueryClient } from "@tanstack/react-query";
|
|
4
|
+
import { useServerFn } from "@tanstack/react-start";
|
|
5
|
+
import { Card, CardContent, CardHeader, CardTitle, Input, Label, ZoekbareKeuzelijst, meldFout, meldSucces } from "@flowselections/core";
|
|
6
|
+
import { getKlantExtraVelden, setKlantExtraVeldWaarde } from "../../lib/extra-velden.functions.js";
|
|
7
|
+
const GEEN = "__geen__";
|
|
8
|
+
function TekstWaarde({ id, waarde, onOpslaan, bezig }) {
|
|
9
|
+
const [tekst, setTekst] = useState(waarde);
|
|
10
|
+
useEffect(() => setTekst(waarde), [waarde]);
|
|
11
|
+
const bewaar = () => { if (tekst.trim() !== waarde)
|
|
12
|
+
onOpslaan(tekst); };
|
|
13
|
+
return (_jsx(Input, { id: id, value: tekst, maxLength: 200, disabled: bezig, placeholder: "Geen standaardwaarde", onChange: (e) => setTekst(e.target.value), onBlur: bewaar, onKeyDown: (e) => { if (e.key === "Enter")
|
|
14
|
+
e.target.blur(); } }));
|
|
15
|
+
}
|
|
16
|
+
/** Standaardwaarden van de extra velden voor deze klant (voorinvulling per orderregel in Verkoop). */
|
|
17
|
+
export function KlantExtraVeldenCard({ customerId }) {
|
|
18
|
+
const qc = useQueryClient();
|
|
19
|
+
const lijstFn = useServerFn(getKlantExtraVelden);
|
|
20
|
+
const zetFn = useServerFn(setKlantExtraVeldWaarde);
|
|
21
|
+
const sleutel = ["klant-extra-velden", customerId];
|
|
22
|
+
const { data: velden = [], isLoading, error } = useQuery({ queryKey: sleutel, queryFn: () => lijstFn({ data: { customerId } }) });
|
|
23
|
+
const [bezig, setBezig] = useState(null);
|
|
24
|
+
if (!isLoading && !error && velden.length === 0)
|
|
25
|
+
return null;
|
|
26
|
+
const zet = async (veldId, waarde) => {
|
|
27
|
+
setBezig(veldId);
|
|
28
|
+
try {
|
|
29
|
+
await zetFn({ data: { customerId, veldId, waarde } });
|
|
30
|
+
meldSucces(waarde.trim() ? "Standaardwaarde opgeslagen" : "Standaardwaarde weggehaald");
|
|
31
|
+
await qc.invalidateQueries({ queryKey: sleutel });
|
|
32
|
+
}
|
|
33
|
+
catch (e) {
|
|
34
|
+
meldFout(e instanceof Error ? e.message : "Opslaan is niet gelukt. Probeer het opnieuw.", e);
|
|
35
|
+
}
|
|
36
|
+
finally {
|
|
37
|
+
setBezig(null);
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
return (_jsxs(Card, { className: "mb-4", children: [_jsx(CardHeader, { children: _jsx(CardTitle, { className: "text-base", children: "Extra velden" }) }), _jsxs(CardContent, { className: "space-y-3", children: [_jsx("p", { className: "text-xs text-muted-foreground", children: "Verkoop vult deze waarden voor bij elke nieuwe orderregel van deze klant." }), isLoading && _jsx("p", { className: "text-sm text-muted-foreground", children: "Laden\u2026" }), error && _jsx("p", { className: "text-sm text-destructive", children: "De extra velden konden niet worden geladen. Vernieuw de pagina of neem contact op met de beheerder." }), _jsx("div", { className: "grid gap-3 sm:grid-cols-2", children: velden.map((v) => {
|
|
41
|
+
const id = `kev-${v.key}`;
|
|
42
|
+
if (!v.veld_id)
|
|
43
|
+
return null;
|
|
44
|
+
const veldId = v.veld_id;
|
|
45
|
+
return (_jsxs("div", { className: "space-y-1", children: [_jsx(Label, { htmlFor: id, children: v.label }), v.type === "keuze" ? (_jsxs(_Fragment, { children: [_jsx(ZoekbareKeuzelijst, { id: id, disabled: bezig === veldId, options: [{ value: GEEN, label: "Geen standaardwaarde" }, ...v.opties.map((o) => ({ value: o, label: o }))], value: v.value || GEEN, onChange: (n) => { const w = n === GEEN ? "" : n; if (w !== v.value)
|
|
46
|
+
void zet(veldId, w); }, placeholder: "Geen standaardwaarde", zoekPlaceholder: "Zoek een keuze\u2026" }), v.value && !v.opties.includes(v.value) && (_jsxs("p", { className: "text-xs text-muted-foreground", children: ["Huidig: ", v.value, " (niet meer in de lijst)"] }))] })) : (_jsx(TekstWaarde, { id: id, waarde: v.value, bezig: bezig === veldId, onOpslaan: (w) => void zet(veldId, w) }))] }, v.key));
|
|
47
|
+
}) })] })] }));
|
|
48
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KlantenOverzicht.d.ts","sourceRoot":"","sources":["../../../src/components/klanten/KlantenOverzicht.tsx"],"names":[],"mappings":"AAiFA,wBAAgB,gBAAgB,
|
|
1
|
+
{"version":3,"file":"KlantenOverzicht.d.ts","sourceRoot":"","sources":["../../../src/components/klanten/KlantenOverzicht.tsx"],"names":[],"mappings":"AAiFA,wBAAgB,gBAAgB,gCAk9B/B"}
|
|
@@ -432,15 +432,17 @@ export function KlantenOverzicht() {
|
|
|
432
432
|
return [...local, ...ext];
|
|
433
433
|
}, [localData, externalData, overdueData, revenueData]);
|
|
434
434
|
const totals = useMemo(() => {
|
|
435
|
+
// Tellers volgen het archieffilter (standaard actief): gearchiveerde klanten tellen dan niet mee.
|
|
436
|
+
const rows = filterOpArchief(allRows, archief, gearchiveerdSet);
|
|
435
437
|
const t = {
|
|
436
|
-
all:
|
|
438
|
+
all: rows.length,
|
|
437
439
|
// Actief = minimaal één factuur/order in de afgelopen 12 maanden.
|
|
438
|
-
active: loadingRevenue ? null :
|
|
439
|
-
inactive: loadingRevenue ? null :
|
|
440
|
-
overdue:
|
|
440
|
+
active: loadingRevenue ? null : rows.filter((c) => (c.revenue?.count ?? 0) > 0).length,
|
|
441
|
+
inactive: loadingRevenue ? null : rows.filter((c) => (c.revenue?.count ?? 0) === 0).length,
|
|
442
|
+
overdue: rows.filter((c) => (c.overdue?.count ?? 0) > 0).length,
|
|
441
443
|
};
|
|
442
444
|
return t;
|
|
443
|
-
}, [allRows, loadingRevenue]);
|
|
445
|
+
}, [allRows, loadingRevenue, archief, gearchiveerdSet]);
|
|
444
446
|
const countries = useMemo(() => {
|
|
445
447
|
const set = new Set();
|
|
446
448
|
allRows.forEach((c) => {
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type StickerFormaat } from "../../lib/sticker-formaten.js";
|
|
2
|
+
export declare function useStickerFormaten(): import("@tanstack/react-query").UseQueryResult<import("../../index.js").StickerFormatenResultaat, Error>;
|
|
3
|
+
/**
|
|
4
|
+
* Keuzelijst voor een stickerformaat (geen vrije invoer). Een huidige maat buiten
|
|
5
|
+
* de lijst blijft staan en wordt als "niet in de lijst" getoond tot er gekozen wordt.
|
|
6
|
+
*/
|
|
7
|
+
export declare function StickerFormaatKeuze({ id, widthMm, heightMm, value, onChange, disabled, }: {
|
|
8
|
+
id?: string;
|
|
9
|
+
/** Huidige opgeslagen maat (alleen voor de melding). */
|
|
10
|
+
widthMm: number | null | undefined;
|
|
11
|
+
heightMm: number | null | undefined;
|
|
12
|
+
value: string | null;
|
|
13
|
+
onChange: (f: StickerFormaat) => void;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
}): import("react").JSX.Element;
|
|
16
|
+
//# sourceMappingURL=StickerFormaatKeuze.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StickerFormaatKeuze.d.ts","sourceRoot":"","sources":["../../../src/components/klanten/StickerFormaatKeuze.tsx"],"names":[],"mappings":"AAIA,OAAO,EAA6B,KAAK,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAE5F,wBAAgB,kBAAkB,oGAGjC;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,EAAE,EACF,OAAO,EACP,QAAQ,EACR,KAAK,EACL,QAAQ,EACR,QAAQ,GACT,EAAE;IACD,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,wDAAwD;IACxD,OAAO,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACnC,QAAQ,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACpC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,QAAQ,EAAE,CAAC,CAAC,EAAE,cAAc,KAAK,IAAI,CAAC;IACtC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,+BA0BA"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useQuery } from "@tanstack/react-query";
|
|
3
|
+
import { useServerFn } from "@tanstack/react-start";
|
|
4
|
+
import { ZoekbareKeuzelijst } from "@flowselections/core";
|
|
5
|
+
import { listStickerFormaten } from "../../lib/customer-stickers.functions.js";
|
|
6
|
+
import { formaatTekst, zoekFormaat } from "../../lib/sticker-formaten.js";
|
|
7
|
+
export function useStickerFormaten() {
|
|
8
|
+
const fn = useServerFn(listStickerFormaten);
|
|
9
|
+
return useQuery({ queryKey: ["sticker-formaten"], queryFn: () => fn(), staleTime: 5 * 60000 });
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Keuzelijst voor een stickerformaat (geen vrije invoer). Een huidige maat buiten
|
|
13
|
+
* de lijst blijft staan en wordt als "niet in de lijst" getoond tot er gekozen wordt.
|
|
14
|
+
*/
|
|
15
|
+
export function StickerFormaatKeuze({ id, widthMm, heightMm, value, onChange, disabled, }) {
|
|
16
|
+
const { data, isLoading, error } = useStickerFormaten();
|
|
17
|
+
const formaten = data?.formaten ?? [];
|
|
18
|
+
const huidig = widthMm != null && heightMm != null ? zoekFormaat(formaten, widthMm, heightMm) : null;
|
|
19
|
+
const buitenLijst = !isLoading && widthMm != null && heightMm != null && !huidig;
|
|
20
|
+
return (_jsxs("div", { className: "space-y-1.5", children: [_jsx(ZoekbareKeuzelijst, { id: id, options: formaten.map((f) => ({ value: f.sleutel, label: f.label })), value: value, onChange: (v) => {
|
|
21
|
+
const f = formaten.find((x) => x.sleutel === v);
|
|
22
|
+
if (f)
|
|
23
|
+
onChange(f);
|
|
24
|
+
}, placeholder: isLoading ? "Formaten laden…" : "Kies een formaat", zoekPlaceholder: "Zoek op maat of naam\u2026", disabled: disabled || isLoading || formaten.length === 0 }), buitenLijst && (_jsxs("p", { className: "text-xs text-muted-foreground", children: ["Huidig: ", formaatTekst(widthMm, heightMm), " (niet in de lijst)"] })), data?.melding && _jsx("p", { className: "text-xs text-muted-foreground", children: data.melding }), error && _jsx("p", { className: "text-xs text-destructive", children: "De formaten konden niet worden geladen. Probeer het opnieuw." })] }));
|
|
25
|
+
}
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import { type StickerUploadSize } from "../../lib/customer-stickers.functions.js";
|
|
2
2
|
/**
|
|
3
3
|
* "Formaat: 48 × 48 mm (wijzigen)". Zonder maat: voorstel via geladen etiket
|
|
4
|
-
* (één klik bevestigen
|
|
4
|
+
* (één klik bevestigen, alleen als het in de lijst staat) of kiezen uit de lijst.
|
|
5
5
|
*/
|
|
6
|
-
export declare function StickerSizeLine({ customerKey, tradeItemKey, soort, widthMm, heightMm, initialDetection, onSaved, }: {
|
|
6
|
+
export declare function StickerSizeLine({ customerKey, tradeItemKey, soort, widthMm, heightMm, initialDetection, onSaved, standaard, }: {
|
|
7
|
+
/** Standaardformaat van de klant: dan niets vragen, alleen tonen met "wijzigen". */
|
|
8
|
+
standaard?: {
|
|
9
|
+
width_mm: number;
|
|
10
|
+
height_mm: number;
|
|
11
|
+
} | null;
|
|
7
12
|
customerKey: string;
|
|
8
13
|
tradeItemKey: string;
|
|
9
14
|
/** Optioneel; standaard 'product'. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StickerSizeLine.d.ts","sourceRoot":"","sources":["../../../src/components/klanten/StickerSizeLine.tsx"],"names":[],"mappings":"AAIA,OAAO,EAGL,KAAK,iBAAiB,EACvB,MAAM,mCAAmC,CAAC;
|
|
1
|
+
{"version":3,"file":"StickerSizeLine.d.ts","sourceRoot":"","sources":["../../../src/components/klanten/StickerSizeLine.tsx"],"names":[],"mappings":"AAIA,OAAO,EAGL,KAAK,iBAAiB,EACvB,MAAM,mCAAmC,CAAC;AAO3C;;;GAGG;AACH,wBAAgB,eAAe,CAAC,EAC9B,WAAW,EACX,YAAY,EACZ,KAAiB,EACjB,OAAO,EACP,QAAQ,EACR,gBAAgB,EAChB,OAAO,EACP,SAAgB,GACjB,EAAE;IACD,oFAAoF;IACpF,SAAS,CAAC,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IAC3D,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,sCAAsC;IACtC,KAAK,CAAC,EAAE,SAAS,GAAG,MAAM,CAAC;IAC3B,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,gBAAgB,CAAC,EAAE,iBAAiB,GAAG,IAAI,CAAC;IAC5C,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,+BAoIA"}
|