@vicacha-devs/medusa-plugin-barcode 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.medusa/server/src/admin/index.cjs +3960 -0
- package/.medusa/server/src/admin/index.js +3938 -0
- package/.medusa/server/src/api/admin/barcodes/[barcode]/route.js +43 -0
- package/.medusa/server/src/api/admin/barcodes/batch/route.js +9 -0
- package/.medusa/server/src/api/admin/barcodes/bulk-generate/route.js +9 -0
- package/.medusa/server/src/api/admin/barcodes/cache/route.js +25 -0
- package/.medusa/server/src/api/admin/barcodes/count-sessions/[id]/apply/route.js +13 -0
- package/.medusa/server/src/api/admin/barcodes/count-sessions/[id]/scan/route.js +13 -0
- package/.medusa/server/src/api/admin/barcodes/count-sessions/route.js +27 -0
- package/.medusa/server/src/api/admin/barcodes/create-from-barcode/route.js +9 -0
- package/.medusa/server/src/api/admin/barcodes/lookup/route.js +12 -0
- package/.medusa/server/src/api/admin/barcodes/print/route.js +11 -0
- package/.medusa/server/src/api/admin/barcodes/route.js +27 -0
- package/.medusa/server/src/api/admin/barcodes/scan/route.js +23 -0
- package/.medusa/server/src/api/admin/barcodes/tags/[id]/route.js +28 -0
- package/.medusa/server/src/api/admin/barcodes/tags/route.js +25 -0
- package/.medusa/server/src/api/admin/barcodes/templates/route.js +40 -0
- package/.medusa/server/src/api/admin/plugin/route.js +4 -0
- package/.medusa/server/src/api/admin/variants/barcode/[code]/route.js +28 -0
- package/.medusa/server/src/api/middlewares.js +73 -0
- package/.medusa/server/src/api/store/barcodes/[code]/route.js +28 -0
- package/.medusa/server/src/api/store/barcodes/[code]/verify/route.js +20 -0
- package/.medusa/server/src/api/store/plugin/route.js +4 -0
- package/.medusa/server/src/api/store/variants/barcode/[code]/route.js +28 -0
- package/.medusa/server/src/api/validators.js +173 -0
- package/.medusa/server/src/hooks/index.js +202 -0
- package/.medusa/server/src/index.js +5 -0
- package/.medusa/server/src/jobs/purge-expired-barcode-cache.js +10 -0
- package/.medusa/server/src/modules/barcode/index.js +16 -0
- package/.medusa/server/src/modules/barcode/migrations/Migration20260522000000.js +165 -0
- package/.medusa/server/src/modules/barcode/models/index.js +162 -0
- package/.medusa/server/src/modules/barcode/operations/context.js +2 -0
- package/.medusa/server/src/modules/barcode/operations/data-service.js +10 -0
- package/.medusa/server/src/modules/barcode/operations/generation.js +33 -0
- package/.medusa/server/src/modules/barcode/operations/index.js +9 -0
- package/.medusa/server/src/modules/barcode/operations/labels.js +57 -0
- package/.medusa/server/src/modules/barcode/operations/lookup.js +135 -0
- package/.medusa/server/src/modules/barcode/operations/maintenance.js +37 -0
- package/.medusa/server/src/modules/barcode/operations/stock-count.js +129 -0
- package/.medusa/server/src/modules/barcode/operations/tags.js +298 -0
- package/.medusa/server/src/modules/barcode/providers/index.js +721 -0
- package/.medusa/server/src/modules/barcode/service.js +161 -0
- package/.medusa/server/src/modules/barcode/types.js +21 -0
- package/.medusa/server/src/modules/barcode/utils/barcode-parser.js +399 -0
- package/.medusa/server/src/modules/barcode/utils/label-printer.js +533 -0
- package/.medusa/server/src/modules/barcode/utils/normalize-product.js +443 -0
- package/.medusa/server/src/modules/barcode/utils/security.js +114 -0
- package/.medusa/server/src/modules/barcode/utils/svg-renderer.js +492 -0
- package/.medusa/server/src/rbac.js +130 -0
- package/.medusa/server/src/sdk/index.js +164 -0
- package/.medusa/server/src/subscribers/product-created.js +34 -0
- package/.medusa/server/src/types/index.js +2 -0
- package/.medusa/server/src/ui/index.js +138 -0
- package/.medusa/server/src/workflows/apply-inventory-count.js +68 -0
- package/.medusa/server/src/workflows/batch-barcode-import.js +153 -0
- package/.medusa/server/src/workflows/bulk-generate-variant-barcodes.js +143 -0
- package/.medusa/server/src/workflows/generate-barcode-tag.js +44 -0
- package/.medusa/server/src/workflows/helpers.js +15 -0
- package/.medusa/server/src/workflows/index.js +7 -0
- package/.medusa/server/src/workflows/lookup-and-create-product.js +215 -0
- package/.medusa/server/src/workflows/scan-inventory-count.js +15 -0
- package/LICENSE +21 -0
- package/README.md +844 -2
- package/package.json +134 -3
- package/src/__tests__/barcode.spec.ts +836 -0
- package/src/__tests__/medusa-shim.mjs +331 -0
- package/src/__tests__/register-ts-resolver.mjs +135 -0
- package/src/admin/README.md +134 -0
- package/src/admin/components/barcode-studio-header.tsx +73 -0
- package/src/admin/components/batch-import-section.tsx +99 -0
- package/src/admin/components/dynamic-qr-tag-drawer-form.tsx +230 -0
- package/src/admin/components/dynamic-qr-tag-form.tsx +129 -0
- package/src/admin/components/dynamic-qr-tags-table.tsx +136 -0
- package/src/admin/components/gtin-lookup-section.tsx +155 -0
- package/src/admin/components/index.tsx +14 -0
- package/src/admin/components/label-designer-section.tsx +151 -0
- package/src/admin/components/label-output-section.tsx +63 -0
- package/src/admin/components/overview-cards.tsx +98 -0
- package/src/admin/components/product-barcode-card.tsx +127 -0
- package/src/admin/components/providers-cache-table.tsx +61 -0
- package/src/admin/components/providers-overview-section.tsx +49 -0
- package/src/admin/components/rbac-guard.tsx +153 -0
- package/src/admin/components/stock-take-scanner-section.tsx +116 -0
- package/src/admin/components/stock-take-sessions-section.tsx +109 -0
- package/src/admin/hooks/use-barcode-studio.ts +466 -0
- package/src/admin/hooks/use-product-barcodes.ts +139 -0
- package/src/admin/i18n/README.md +130 -0
- package/src/admin/i18n/index.ts +36 -0
- package/src/admin/i18n/json/ar.json +157 -0
- package/src/admin/i18n/json/de.json +157 -0
- package/src/admin/i18n/json/en.json +157 -0
- package/src/admin/i18n/json/es.json +157 -0
- package/src/admin/i18n/json/fr.json +157 -0
- package/src/admin/i18n/json/it.json +157 -0
- package/src/admin/i18n/json/nl.json +157 -0
- package/src/admin/i18n/json/pl.json +157 -0
- package/src/admin/i18n/json/pt.json +157 -0
- package/src/admin/i18n/json/tr.json +157 -0
- package/src/admin/routes/barcodes/lookup/page.tsx +75 -0
- package/src/admin/routes/barcodes/page.tsx +212 -0
- package/src/admin/routes/barcodes/print/page.tsx +67 -0
- package/src/admin/routes/barcodes/providers/page.tsx +66 -0
- package/src/admin/routes/barcodes/stock-take/page.tsx +74 -0
- package/src/admin/routes/barcodes/tags/@create/page.tsx +56 -0
- package/src/admin/routes/barcodes/tags/page.tsx +72 -0
- package/src/admin/tsconfig.json +20 -0
- package/src/admin/vite-env.d.ts +1 -0
- package/src/admin/widgets/product-barcode-widget.tsx +43 -0
- package/src/api/README.md +117 -0
- package/src/api/admin/barcodes/[barcode]/route.ts +64 -0
- package/src/api/admin/barcodes/batch/route.ts +12 -0
- package/src/api/admin/barcodes/bulk-generate/route.ts +12 -0
- package/src/api/admin/barcodes/cache/route.ts +35 -0
- package/src/api/admin/barcodes/count-sessions/[id]/apply/route.ts +17 -0
- package/src/api/admin/barcodes/count-sessions/[id]/scan/route.ts +17 -0
- package/src/api/admin/barcodes/count-sessions/route.ts +43 -0
- package/src/api/admin/barcodes/create-from-barcode/route.ts +16 -0
- package/src/api/admin/barcodes/lookup/route.ts +19 -0
- package/src/api/admin/barcodes/print/route.ts +18 -0
- package/src/api/admin/barcodes/route.ts +36 -0
- package/src/api/admin/barcodes/scan/route.ts +32 -0
- package/src/api/admin/barcodes/tags/[id]/route.ts +41 -0
- package/src/api/admin/barcodes/tags/route.ts +36 -0
- package/src/api/admin/barcodes/templates/route.ts +51 -0
- package/src/api/admin/plugin/route.ts +5 -0
- package/src/api/admin/variants/barcode/[code]/route.ts +36 -0
- package/src/api/middlewares.ts +91 -0
- package/src/api/store/barcodes/[code]/route.ts +43 -0
- package/src/api/store/barcodes/[code]/verify/route.ts +35 -0
- package/src/api/store/plugin/route.ts +5 -0
- package/src/api/store/variants/barcode/[code]/route.ts +36 -0
- package/src/api/validators.ts +217 -0
- package/src/hooks/index.ts +270 -0
- package/src/index.ts +4 -0
- package/src/jobs/README.md +54 -0
- package/src/jobs/purge-expired-barcode-cache.ts +18 -0
- package/src/links/README.md +44 -0
- package/src/modules/README.md +85 -0
- package/src/modules/barcode/index.ts +18 -0
- package/src/modules/barcode/migrations/Migration20260522000000.ts +225 -0
- package/src/modules/barcode/models/index.ts +168 -0
- package/src/modules/barcode/operations/context.ts +14 -0
- package/src/modules/barcode/operations/data-service.ts +10 -0
- package/src/modules/barcode/operations/generation.ts +57 -0
- package/src/modules/barcode/operations/index.ts +8 -0
- package/src/modules/barcode/operations/labels.ts +90 -0
- package/src/modules/barcode/operations/lookup.ts +202 -0
- package/src/modules/barcode/operations/maintenance.ts +53 -0
- package/src/modules/barcode/operations/stock-count.ts +217 -0
- package/src/modules/barcode/operations/tags.ts +425 -0
- package/src/modules/barcode/providers/index.ts +958 -0
- package/src/modules/barcode/service.ts +243 -0
- package/src/modules/barcode/types.ts +297 -0
- package/src/modules/barcode/utils/barcode-parser.ts +453 -0
- package/src/modules/barcode/utils/label-printer.ts +641 -0
- package/src/modules/barcode/utils/normalize-product.ts +524 -0
- package/src/modules/barcode/utils/security.ts +136 -0
- package/src/modules/barcode/utils/svg-renderer.ts +574 -0
- package/src/providers/README.md +105 -0
- package/src/rbac.ts +144 -0
- package/src/sdk/index.ts +253 -0
- package/src/subscribers/README.md +73 -0
- package/src/subscribers/product-created.ts +45 -0
- package/src/types/index.ts +1 -0
- package/src/types/medusa-ui.d.ts +118 -0
- package/src/ui/index.tsx +311 -0
- package/src/workflows/README.md +56 -0
- package/src/workflows/apply-inventory-count.ts +115 -0
- package/src/workflows/batch-barcode-import.ts +218 -0
- package/src/workflows/bulk-generate-variant-barcodes.ts +214 -0
- package/src/workflows/generate-barcode-tag.ts +85 -0
- package/src/workflows/helpers.ts +21 -0
- package/src/workflows/index.ts +6 -0
- package/src/workflows/lookup-and-create-product.ts +298 -0
- package/src/workflows/scan-inventory-count.ts +45 -0
- package/tsconfig.json +40 -0
|
@@ -0,0 +1,3960 @@
|
|
|
1
|
+
// \0rolldown/runtime.js
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __copyProps = (to, from, except, desc) => {
|
|
9
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
10
|
+
key = keys[i];
|
|
11
|
+
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
12
|
+
get: ((k) => from[k]).bind(null, key),
|
|
13
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", {
|
|
19
|
+
value: mod,
|
|
20
|
+
enumerable: true
|
|
21
|
+
}) : target, mod));
|
|
22
|
+
let _medusajs_admin_sdk = require("@medusajs/admin-sdk");
|
|
23
|
+
let react_i18next = require("react-i18next");
|
|
24
|
+
let _medusajs_ui = require("@medusajs/ui");
|
|
25
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
26
|
+
let _medusajs_dashboard_components = require("@medusajs/dashboard/components");
|
|
27
|
+
let react = require("react");
|
|
28
|
+
react = __toESM(react, 1);
|
|
29
|
+
let _medusajs_framework_utils = require("@medusajs/framework/utils");
|
|
30
|
+
let _hookform_resolvers_zod = require("@hookform/resolvers/zod");
|
|
31
|
+
let react_hook_form = require("react-hook-form");
|
|
32
|
+
let zod = require("zod");
|
|
33
|
+
let _medusajs_admin_shared = require("@medusajs/admin-shared");
|
|
34
|
+
let _medusajs_icons = require("@medusajs/icons");
|
|
35
|
+
let react_router_dom = require("react-router-dom");
|
|
36
|
+
// src/admin/components/overview-cards.tsx
|
|
37
|
+
var StatCard = ({ title, value, icon, loading = false, onClick }) => {
|
|
38
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Container, {
|
|
39
|
+
className: (0, _medusajs_ui.clx)("p-0", onClick ? "cursor-pointer hover:bg-ui-bg-subtle-hover transition-colors" : ""),
|
|
40
|
+
onClick,
|
|
41
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
42
|
+
className: "p-5",
|
|
43
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
44
|
+
className: "flex items-center justify-between",
|
|
45
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Text, {
|
|
46
|
+
className: "text-ui-fg-subtle",
|
|
47
|
+
children: title
|
|
48
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
49
|
+
className: "flex items-center justify-center w-8 h-8 rounded-md bg-ui-bg-subtle",
|
|
50
|
+
children: icon
|
|
51
|
+
})]
|
|
52
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
53
|
+
className: "mt-3",
|
|
54
|
+
children: loading ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Skeleton, { className: "h-8 w-16" }) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Heading, {
|
|
55
|
+
level: "h2",
|
|
56
|
+
children: value
|
|
57
|
+
})
|
|
58
|
+
})]
|
|
59
|
+
})
|
|
60
|
+
});
|
|
61
|
+
};
|
|
62
|
+
var NavigationCard = ({ icon, title, description, onClick, position }) => {
|
|
63
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Button, {
|
|
64
|
+
type: "button",
|
|
65
|
+
variant: "transparent",
|
|
66
|
+
className: (0, _medusajs_ui.clx)("h-auto w-full justify-start rounded-none text-left p-6 hover:bg-ui-bg-subtle-hover transition-colors", !(position === "bottom-left" || position === "bottom-right") ? "border-b border-ui-border-base" : "", position === "top-left" || position === "middle-left" || position === "bottom-left" ? "md:border-r md:border-ui-border-base" : ""),
|
|
67
|
+
onClick,
|
|
68
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
69
|
+
className: "flex items-start gap-x-3",
|
|
70
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
71
|
+
className: "flex items-center justify-center w-8 h-8 rounded-md bg-ui-bg-subtle shrink-0",
|
|
72
|
+
children: icon
|
|
73
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Heading, {
|
|
74
|
+
level: "h3",
|
|
75
|
+
children: title
|
|
76
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Text, {
|
|
77
|
+
className: "text-ui-fg-subtle mt-1",
|
|
78
|
+
children: description
|
|
79
|
+
})] })]
|
|
80
|
+
})
|
|
81
|
+
});
|
|
82
|
+
};
|
|
83
|
+
// src/sdk/index.ts
|
|
84
|
+
function createBarcodeSdk(options) {
|
|
85
|
+
const baseUrl = (options?.baseUrl ?? "").replace(/\/+$/, "");
|
|
86
|
+
const fetchImpl = options?.fetchImpl ?? globalThis.fetch;
|
|
87
|
+
async function request(path, init) {
|
|
88
|
+
const headers = {
|
|
89
|
+
"Content-Type": "application/json",
|
|
90
|
+
...options?.publishableApiKey ? { "x-publishable-api-key": options.publishableApiKey } : {},
|
|
91
|
+
...init?.headers
|
|
92
|
+
};
|
|
93
|
+
const res = await fetchImpl(`${baseUrl}${path}`, {
|
|
94
|
+
credentials: "include",
|
|
95
|
+
...init,
|
|
96
|
+
headers
|
|
97
|
+
});
|
|
98
|
+
const json = await res.json().catch(() => ({}));
|
|
99
|
+
if (!res.ok) throw new _medusajs_framework_utils.MedusaError(_medusajs_framework_utils.MedusaError.Types.UNEXPECTED_STATE, String(json.message || json.error || `HTTP ${res.status}`));
|
|
100
|
+
return json;
|
|
101
|
+
}
|
|
102
|
+
return {
|
|
103
|
+
admin: {
|
|
104
|
+
listBarcodes(filters) {
|
|
105
|
+
return request(`/admin/barcodes${filters?.product_id ? `?product_id=${encodeURIComponent(filters.product_id)}` : ""}`);
|
|
106
|
+
},
|
|
107
|
+
lookup(payload) {
|
|
108
|
+
return request("/admin/barcodes/lookup", {
|
|
109
|
+
method: "POST",
|
|
110
|
+
body: JSON.stringify(payload)
|
|
111
|
+
});
|
|
112
|
+
},
|
|
113
|
+
createFromBarcode(payload) {
|
|
114
|
+
return request("/admin/barcodes/create-from-barcode", {
|
|
115
|
+
method: "POST",
|
|
116
|
+
body: JSON.stringify(payload)
|
|
117
|
+
});
|
|
118
|
+
},
|
|
119
|
+
batchImport(payload) {
|
|
120
|
+
return request("/admin/barcodes/batch", {
|
|
121
|
+
method: "POST",
|
|
122
|
+
body: JSON.stringify(payload)
|
|
123
|
+
});
|
|
124
|
+
},
|
|
125
|
+
bulkGenerate(payload) {
|
|
126
|
+
return request("/admin/barcodes/bulk-generate", {
|
|
127
|
+
method: "POST",
|
|
128
|
+
body: JSON.stringify(payload)
|
|
129
|
+
});
|
|
130
|
+
},
|
|
131
|
+
quickScan(payload) {
|
|
132
|
+
return request("/admin/barcodes/scan", {
|
|
133
|
+
method: "POST",
|
|
134
|
+
body: JSON.stringify(payload)
|
|
135
|
+
});
|
|
136
|
+
},
|
|
137
|
+
listTags(filters) {
|
|
138
|
+
const params = new URLSearchParams();
|
|
139
|
+
if (filters?.product_id) params.set("product_id", filters.product_id);
|
|
140
|
+
if (filters?.target_id) params.set("target_id", filters.target_id);
|
|
141
|
+
return request(`/admin/barcodes/tags${params.toString() ? `?${params.toString()}` : ""}`);
|
|
142
|
+
},
|
|
143
|
+
createTag(payload) {
|
|
144
|
+
return request("/admin/barcodes/tags", {
|
|
145
|
+
method: "POST",
|
|
146
|
+
body: JSON.stringify(payload)
|
|
147
|
+
});
|
|
148
|
+
},
|
|
149
|
+
updateTag(id, payload) {
|
|
150
|
+
return request(`/admin/barcodes/tags/${encodeURIComponent(id)}`, {
|
|
151
|
+
method: "PATCH",
|
|
152
|
+
body: JSON.stringify(payload)
|
|
153
|
+
});
|
|
154
|
+
},
|
|
155
|
+
deleteTag(id) {
|
|
156
|
+
return request(`/admin/barcodes/tags/${encodeURIComponent(id)}`, { method: "DELETE" });
|
|
157
|
+
},
|
|
158
|
+
listTemplates() {
|
|
159
|
+
return request("/admin/barcodes/templates");
|
|
160
|
+
},
|
|
161
|
+
createTemplate(payload) {
|
|
162
|
+
return request("/admin/barcodes/templates", {
|
|
163
|
+
method: "POST",
|
|
164
|
+
body: JSON.stringify(payload)
|
|
165
|
+
});
|
|
166
|
+
},
|
|
167
|
+
printLabels(payload) {
|
|
168
|
+
return request("/admin/barcodes/print", {
|
|
169
|
+
method: "POST",
|
|
170
|
+
body: JSON.stringify(payload)
|
|
171
|
+
});
|
|
172
|
+
},
|
|
173
|
+
listCountSessions() {
|
|
174
|
+
return request("/admin/barcodes/count-sessions");
|
|
175
|
+
},
|
|
176
|
+
createCountSession(payload) {
|
|
177
|
+
return request("/admin/barcodes/count-sessions", {
|
|
178
|
+
method: "POST",
|
|
179
|
+
body: JSON.stringify(payload)
|
|
180
|
+
});
|
|
181
|
+
},
|
|
182
|
+
recordCountScan(sessionId, payload) {
|
|
183
|
+
return request(`/admin/barcodes/count-sessions/${encodeURIComponent(sessionId)}/scan`, {
|
|
184
|
+
method: "POST",
|
|
185
|
+
body: JSON.stringify(payload)
|
|
186
|
+
});
|
|
187
|
+
},
|
|
188
|
+
applyCountSession(sessionId, payload) {
|
|
189
|
+
return request(`/admin/barcodes/count-sessions/${encodeURIComponent(sessionId)}/apply`, {
|
|
190
|
+
method: "POST",
|
|
191
|
+
body: JSON.stringify(payload || {})
|
|
192
|
+
});
|
|
193
|
+
},
|
|
194
|
+
listCache() {
|
|
195
|
+
return request("/admin/barcodes/cache");
|
|
196
|
+
},
|
|
197
|
+
purgeCache(clearAll = false) {
|
|
198
|
+
return request(`/admin/barcodes/cache${clearAll ? "?all=true" : ""}`, { method: "DELETE" });
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
store: {
|
|
202
|
+
resolveScan(code) {
|
|
203
|
+
return request(`/store/barcodes/${encodeURIComponent(code)}`);
|
|
204
|
+
},
|
|
205
|
+
getSvgUrl(code, symbology) {
|
|
206
|
+
const sym = symbology ? `&symbology=${encodeURIComponent(symbology)}` : "";
|
|
207
|
+
return `${baseUrl}/store/barcodes/${encodeURIComponent(code)}?format=svg${sym}`;
|
|
208
|
+
},
|
|
209
|
+
verifyAuthenticity(code, signature) {
|
|
210
|
+
return request(`/store/barcodes/${encodeURIComponent(code)}/verify`, {
|
|
211
|
+
method: "POST",
|
|
212
|
+
body: JSON.stringify({ signature })
|
|
213
|
+
});
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
};
|
|
217
|
+
}
|
|
218
|
+
// src/hooks/index.ts
|
|
219
|
+
/**
|
|
220
|
+
* Listens for high-speed USB / Bluetooth HID keyboard-wedge barcode scanners.
|
|
221
|
+
* Hardware scanners emit keystrokes at < 35ms intervals followed by Enter.
|
|
222
|
+
*/
|
|
223
|
+
function useHidBarcodeScanner({ enabled = true, minLength = 6, maxInterKeyDelayMs = 45, onScan }) {
|
|
224
|
+
const bufferRef = (0, react.useRef)("");
|
|
225
|
+
const lastKeyTimeRef = (0, react.useRef)(0);
|
|
226
|
+
const [lastScanned, setLastScanned] = (0, react.useState)(null);
|
|
227
|
+
(0, react.useEffect)(() => {
|
|
228
|
+
if (!enabled || typeof window === "undefined") return;
|
|
229
|
+
const handleKeyDown = (event) => {
|
|
230
|
+
const now = Date.now();
|
|
231
|
+
const elapsed = now - lastKeyTimeRef.current;
|
|
232
|
+
if (event.key === "Enter" || event.key === "Tab") {
|
|
233
|
+
const candidate = bufferRef.current.trim();
|
|
234
|
+
bufferRef.current = "";
|
|
235
|
+
if (candidate.length >= minLength && elapsed <= maxInterKeyDelayMs * 3) {
|
|
236
|
+
event.preventDefault();
|
|
237
|
+
setLastScanned(candidate);
|
|
238
|
+
onScan(candidate);
|
|
239
|
+
}
|
|
240
|
+
return;
|
|
241
|
+
}
|
|
242
|
+
if (event.key.length === 1 && !event.ctrlKey && !event.metaKey && !event.altKey) {
|
|
243
|
+
if (elapsed > maxInterKeyDelayMs) bufferRef.current = event.key;
|
|
244
|
+
else bufferRef.current += event.key;
|
|
245
|
+
lastKeyTimeRef.current = now;
|
|
246
|
+
}
|
|
247
|
+
};
|
|
248
|
+
window.addEventListener("keydown", handleKeyDown);
|
|
249
|
+
return () => {
|
|
250
|
+
window.removeEventListener("keydown", handleKeyDown);
|
|
251
|
+
};
|
|
252
|
+
}, [
|
|
253
|
+
enabled,
|
|
254
|
+
minLength,
|
|
255
|
+
maxInterKeyDelayMs,
|
|
256
|
+
onScan
|
|
257
|
+
]);
|
|
258
|
+
return {
|
|
259
|
+
lastScanned,
|
|
260
|
+
clearLastScanned: () => setLastScanned(null)
|
|
261
|
+
};
|
|
262
|
+
}
|
|
263
|
+
// src/ui/index.tsx
|
|
264
|
+
function svgMarkupToDataUri(svgMarkup) {
|
|
265
|
+
return `data:image/svg+xml;utf8,${encodeURIComponent(svgMarkup)}`;
|
|
266
|
+
}
|
|
267
|
+
/**
|
|
268
|
+
* Renders a 1D/2D barcode or QR SVG safely via `<img>` without dangerouslySetInnerHTML.
|
|
269
|
+
*/
|
|
270
|
+
function BarcodeImage({ code, symbology = "ean13", svgMarkup, baseUrl = "", alt, width = 220, height = 88, className }) {
|
|
271
|
+
const sdk = createBarcodeSdk({ baseUrl });
|
|
272
|
+
const src = svgMarkup ? svgMarkupToDataUri(svgMarkup) : sdk.store.getSvgUrl(code, symbology);
|
|
273
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("img", {
|
|
274
|
+
src,
|
|
275
|
+
alt: alt || `${symbology.toUpperCase()} ${code}`,
|
|
276
|
+
width,
|
|
277
|
+
height,
|
|
278
|
+
className,
|
|
279
|
+
style: {
|
|
280
|
+
display: "block",
|
|
281
|
+
maxWidth: "100%",
|
|
282
|
+
height: "auto",
|
|
283
|
+
background: "#ffffff",
|
|
284
|
+
borderRadius: 6,
|
|
285
|
+
padding: 4
|
|
286
|
+
}
|
|
287
|
+
});
|
|
288
|
+
}
|
|
289
|
+
// src/admin/components/batch-import-section.tsx
|
|
290
|
+
var GtinLookupBatchSection = ({ form, onFormChange, barcodes, onBatchImport }) => {
|
|
291
|
+
const { t } = (0, react_i18next.useTranslation)();
|
|
292
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
293
|
+
className: "flex flex-col gap-y-4",
|
|
294
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_ui.Container, {
|
|
295
|
+
className: "divide-y p-0",
|
|
296
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
297
|
+
className: "px-6 py-4",
|
|
298
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Heading, {
|
|
299
|
+
level: "h2",
|
|
300
|
+
children: t("lookupTab.batchTitle")
|
|
301
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Text, {
|
|
302
|
+
size: "small",
|
|
303
|
+
className: "text-ui-fg-subtle mt-1",
|
|
304
|
+
children: t("lookupTab.batchSubtitle")
|
|
305
|
+
})]
|
|
306
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
307
|
+
className: "flex flex-col gap-3 px-6 py-4",
|
|
308
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Textarea, {
|
|
309
|
+
rows: 4,
|
|
310
|
+
value: form.batchInput,
|
|
311
|
+
onChange: (e) => onFormChange((prev) => ({
|
|
312
|
+
...prev,
|
|
313
|
+
batchInput: e.target.value
|
|
314
|
+
}))
|
|
315
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Button, {
|
|
316
|
+
variant: "secondary",
|
|
317
|
+
size: "small",
|
|
318
|
+
onClick: onBatchImport,
|
|
319
|
+
children: t("lookupTab.batchRunButton")
|
|
320
|
+
}) })]
|
|
321
|
+
})]
|
|
322
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_ui.Container, {
|
|
323
|
+
className: "divide-y p-0",
|
|
324
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
325
|
+
className: "flex items-center justify-between px-6 py-4",
|
|
326
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Heading, {
|
|
327
|
+
level: "h2",
|
|
328
|
+
children: t("lookupTab.recentlyLinkedTitle", { count: barcodes.length })
|
|
329
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Badge, {
|
|
330
|
+
size: "xsmall",
|
|
331
|
+
color: "grey",
|
|
332
|
+
children: barcodes.length
|
|
333
|
+
})]
|
|
334
|
+
}), barcodes.length === 0 ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
335
|
+
className: "px-6 py-4",
|
|
336
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Text, {
|
|
337
|
+
size: "small",
|
|
338
|
+
className: "text-ui-fg-subtle",
|
|
339
|
+
children: t("lookupTab.noLinkedProducts")
|
|
340
|
+
})
|
|
341
|
+
}) : /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_ui.Table, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.Header, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_ui.Table.Row, { children: [
|
|
342
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.HeaderCell, { children: "GTIN / Barcode" }),
|
|
343
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.HeaderCell, { children: "Product ID" }),
|
|
344
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.HeaderCell, { children: "Provider" })
|
|
345
|
+
] }) }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.Body, { children: barcodes.map((row) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_ui.Table.Row, { children: [
|
|
346
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.Cell, {
|
|
347
|
+
className: "font-mono font-semibold",
|
|
348
|
+
children: String(row.barcode)
|
|
349
|
+
}),
|
|
350
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.Cell, { children: String(row.product_id) }),
|
|
351
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.Cell, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Badge, {
|
|
352
|
+
size: "xsmall",
|
|
353
|
+
color: "blue",
|
|
354
|
+
children: String(row.provider)
|
|
355
|
+
}) })
|
|
356
|
+
] }, String(row.id))) })] })]
|
|
357
|
+
})]
|
|
358
|
+
});
|
|
359
|
+
};
|
|
360
|
+
// src/admin/components/gtin-lookup-section.tsx
|
|
361
|
+
var GtinLookupLookupSection = ({ form, onFormChange, lookupResult, onLookup, onCreateProduct }) => {
|
|
362
|
+
const { t } = (0, react_i18next.useTranslation)();
|
|
363
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_ui.Container, {
|
|
364
|
+
className: "divide-y p-0",
|
|
365
|
+
children: [
|
|
366
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
367
|
+
className: "px-6 py-4",
|
|
368
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Heading, {
|
|
369
|
+
level: "h2",
|
|
370
|
+
children: t("lookupTab.lookupTitle")
|
|
371
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Text, {
|
|
372
|
+
size: "small",
|
|
373
|
+
className: "text-ui-fg-subtle mt-1",
|
|
374
|
+
children: t("lookupTab.lookupSubtitle")
|
|
375
|
+
})]
|
|
376
|
+
}),
|
|
377
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
378
|
+
className: "flex flex-col gap-3 px-6 py-4",
|
|
379
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
380
|
+
className: "grid grid-cols-1 gap-2 sm:grid-cols-3",
|
|
381
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
382
|
+
className: "sm:col-span-2",
|
|
383
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Input, {
|
|
384
|
+
value: form.barcode,
|
|
385
|
+
onChange: (e) => onFormChange((prev) => ({
|
|
386
|
+
...prev,
|
|
387
|
+
barcode: e.target.value
|
|
388
|
+
})),
|
|
389
|
+
placeholder: t("lookupTab.barcodePlaceholder")
|
|
390
|
+
})
|
|
391
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_ui.Select, {
|
|
392
|
+
value: form.strategy,
|
|
393
|
+
onValueChange: (val) => onFormChange((prev) => ({
|
|
394
|
+
...prev,
|
|
395
|
+
strategy: val
|
|
396
|
+
})),
|
|
397
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Select.Trigger, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Select.Value, {}) }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_ui.Select.Content, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Select.Item, {
|
|
398
|
+
value: "first-hit",
|
|
399
|
+
children: t("lookupTab.strategyFirstHit")
|
|
400
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Select.Item, {
|
|
401
|
+
value: "deep-merge",
|
|
402
|
+
children: t("lookupTab.strategyDeepMerge")
|
|
403
|
+
})] })]
|
|
404
|
+
})]
|
|
405
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
406
|
+
className: "flex flex-wrap gap-2",
|
|
407
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Button, {
|
|
408
|
+
variant: "secondary",
|
|
409
|
+
size: "small",
|
|
410
|
+
onClick: onLookup,
|
|
411
|
+
children: t("lookupTab.lookupOnlyButton")
|
|
412
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Button, {
|
|
413
|
+
variant: "primary",
|
|
414
|
+
size: "small",
|
|
415
|
+
onClick: onCreateProduct,
|
|
416
|
+
children: t("lookupTab.lookupAndCreateButton", { status: form.status })
|
|
417
|
+
})]
|
|
418
|
+
})]
|
|
419
|
+
}),
|
|
420
|
+
lookupResult ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [
|
|
421
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.SectionRow, {
|
|
422
|
+
title: lookupResult.product?.name || t("lookupTab.normalizedFallback", { barcode: lookupResult.barcode }),
|
|
423
|
+
value: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.StatusBadge, {
|
|
424
|
+
color: lookupResult.found ? "green" : "orange",
|
|
425
|
+
children: lookupResult.found ? t("lookupTab.matchedVia", { provider: lookupResult.product?.provider ?? "" }) : t("lookupTab.notFound")
|
|
426
|
+
})
|
|
427
|
+
}),
|
|
428
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.SectionRow, {
|
|
429
|
+
title: lookupResult.parsed.type.toUpperCase(),
|
|
430
|
+
value: t("lookupTab.resultDetails", {
|
|
431
|
+
symbology: lookupResult.parsed.type.toUpperCase(),
|
|
432
|
+
valid: lookupResult.parsed.isValid ? t("lookupTab.yes") : t("lookupTab.no"),
|
|
433
|
+
brand: lookupResult.product?.brand || t("lookupTab.na")
|
|
434
|
+
})
|
|
435
|
+
}),
|
|
436
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
437
|
+
className: "px-6 py-4",
|
|
438
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(BarcodeImage, {
|
|
439
|
+
code: lookupResult.barcode,
|
|
440
|
+
symbology: lookupResult.parsed.type
|
|
441
|
+
})
|
|
442
|
+
})
|
|
443
|
+
] }) : null
|
|
444
|
+
]
|
|
445
|
+
});
|
|
446
|
+
};
|
|
447
|
+
// src/admin/components/dynamic-qr-tag-drawer-form.tsx
|
|
448
|
+
var tagFormSchema = zod.z.object({
|
|
449
|
+
target_id: zod.z.string().min(1),
|
|
450
|
+
label: zod.z.string().optional(),
|
|
451
|
+
symbology: zod.z.enum([
|
|
452
|
+
"qr",
|
|
453
|
+
"datamatrix",
|
|
454
|
+
"ean13",
|
|
455
|
+
"upca",
|
|
456
|
+
"code128",
|
|
457
|
+
"code39"
|
|
458
|
+
]),
|
|
459
|
+
scan_action: zod.z.enum([
|
|
460
|
+
"view",
|
|
461
|
+
"add_to_cart",
|
|
462
|
+
"verify",
|
|
463
|
+
"gs1_digital_link"
|
|
464
|
+
]),
|
|
465
|
+
gs1_gtin: zod.z.string().optional(),
|
|
466
|
+
batch_lot: zod.z.string().optional(),
|
|
467
|
+
serial_number: zod.z.string().optional()
|
|
468
|
+
});
|
|
469
|
+
var DynamicQrTagDrawerForm = ({ defaultValues, loading = false, onSubmit }) => {
|
|
470
|
+
const { t } = (0, react_i18next.useTranslation)();
|
|
471
|
+
const form = (0, react_hook_form.useForm)({
|
|
472
|
+
resolver: (0, _hookform_resolvers_zod.zodResolver)(tagFormSchema),
|
|
473
|
+
defaultValues: {
|
|
474
|
+
target_id: defaultValues?.target_id ?? "prod_01",
|
|
475
|
+
label: defaultValues?.label ?? "",
|
|
476
|
+
symbology: defaultValues?.symbology ?? "qr",
|
|
477
|
+
scan_action: defaultValues?.scan_action ?? "verify",
|
|
478
|
+
gs1_gtin: defaultValues?.gs1_gtin ?? "",
|
|
479
|
+
batch_lot: defaultValues?.batch_lot ?? "",
|
|
480
|
+
serial_number: defaultValues?.serial_number ?? ""
|
|
481
|
+
}
|
|
482
|
+
});
|
|
483
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.RouteDrawer.Form, {
|
|
484
|
+
form,
|
|
485
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_dashboard_components.KeyboundForm, {
|
|
486
|
+
onSubmit: form.handleSubmit((values) => onSubmit({
|
|
487
|
+
target_id: values.target_id,
|
|
488
|
+
label: values.label ?? "",
|
|
489
|
+
symbology: values.symbology,
|
|
490
|
+
scan_action: values.scan_action,
|
|
491
|
+
gs1_gtin: values.gs1_gtin ?? "",
|
|
492
|
+
batch_lot: values.batch_lot ?? "",
|
|
493
|
+
serial_number: values.serial_number ?? ""
|
|
494
|
+
})),
|
|
495
|
+
className: "flex flex-1 flex-col overflow-hidden",
|
|
496
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_dashboard_components.RouteDrawer.Body, {
|
|
497
|
+
className: "flex flex-1 flex-col gap-y-4 overflow-auto p-6",
|
|
498
|
+
children: [
|
|
499
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.Form.Field, {
|
|
500
|
+
control: form.control,
|
|
501
|
+
name: "target_id",
|
|
502
|
+
render: ({ field }) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_dashboard_components.Form.Item, { children: [
|
|
503
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.Form.Label, { children: t("tagsTab.targetIdPlaceholder") }),
|
|
504
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.Form.Control, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Input, { ...field }) }),
|
|
505
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.Form.ErrorMessage, {})
|
|
506
|
+
] })
|
|
507
|
+
}),
|
|
508
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.Form.Field, {
|
|
509
|
+
control: form.control,
|
|
510
|
+
name: "label",
|
|
511
|
+
render: ({ field }) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_dashboard_components.Form.Item, { children: [
|
|
512
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.Form.Label, {
|
|
513
|
+
optional: true,
|
|
514
|
+
children: t("tagsTab.labelPlaceholder")
|
|
515
|
+
}),
|
|
516
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.Form.Control, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Input, { ...field }) }),
|
|
517
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.Form.ErrorMessage, {})
|
|
518
|
+
] })
|
|
519
|
+
}),
|
|
520
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.Form.Field, {
|
|
521
|
+
control: form.control,
|
|
522
|
+
name: "symbology",
|
|
523
|
+
render: ({ field }) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_dashboard_components.Form.Item, { children: [
|
|
524
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.Form.Label, { children: t("tagsTab.symbologyQr") }),
|
|
525
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.Form.Control, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_ui.Select, {
|
|
526
|
+
value: field.value,
|
|
527
|
+
onValueChange: field.onChange,
|
|
528
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Select.Trigger, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Select.Value, {}) }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_ui.Select.Content, { children: [
|
|
529
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Select.Item, {
|
|
530
|
+
value: "qr",
|
|
531
|
+
children: t("tagsTab.symbologyQr")
|
|
532
|
+
}),
|
|
533
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Select.Item, {
|
|
534
|
+
value: "datamatrix",
|
|
535
|
+
children: t("tagsTab.symbologyDatamatrix")
|
|
536
|
+
}),
|
|
537
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Select.Item, {
|
|
538
|
+
value: "ean13",
|
|
539
|
+
children: t("tagsTab.symbologyEan13")
|
|
540
|
+
}),
|
|
541
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Select.Item, {
|
|
542
|
+
value: "upca",
|
|
543
|
+
children: t("tagsTab.symbologyUpca")
|
|
544
|
+
}),
|
|
545
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Select.Item, {
|
|
546
|
+
value: "code128",
|
|
547
|
+
children: t("tagsTab.symbologyCode128")
|
|
548
|
+
}),
|
|
549
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Select.Item, {
|
|
550
|
+
value: "code39",
|
|
551
|
+
children: t("tagsTab.symbologyCode39")
|
|
552
|
+
})
|
|
553
|
+
] })]
|
|
554
|
+
}) }),
|
|
555
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.Form.ErrorMessage, {})
|
|
556
|
+
] })
|
|
557
|
+
}),
|
|
558
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.Form.Field, {
|
|
559
|
+
control: form.control,
|
|
560
|
+
name: "scan_action",
|
|
561
|
+
render: ({ field }) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_dashboard_components.Form.Item, { children: [
|
|
562
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.Form.Label, { children: t("tagsTab.actionVerify") }),
|
|
563
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.Form.Control, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_ui.Select, {
|
|
564
|
+
value: field.value,
|
|
565
|
+
onValueChange: field.onChange,
|
|
566
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Select.Trigger, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Select.Value, {}) }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_ui.Select.Content, { children: [
|
|
567
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Select.Item, {
|
|
568
|
+
value: "view",
|
|
569
|
+
children: t("tagsTab.actionView")
|
|
570
|
+
}),
|
|
571
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Select.Item, {
|
|
572
|
+
value: "add_to_cart",
|
|
573
|
+
children: t("tagsTab.actionAddToCart")
|
|
574
|
+
}),
|
|
575
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Select.Item, {
|
|
576
|
+
value: "verify",
|
|
577
|
+
children: t("tagsTab.actionVerify")
|
|
578
|
+
}),
|
|
579
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Select.Item, {
|
|
580
|
+
value: "gs1_digital_link",
|
|
581
|
+
children: t("tagsTab.actionDigitalLink")
|
|
582
|
+
})
|
|
583
|
+
] })]
|
|
584
|
+
}) }),
|
|
585
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.Form.ErrorMessage, {})
|
|
586
|
+
] })
|
|
587
|
+
}),
|
|
588
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.Form.Field, {
|
|
589
|
+
control: form.control,
|
|
590
|
+
name: "gs1_gtin",
|
|
591
|
+
render: ({ field }) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_dashboard_components.Form.Item, { children: [
|
|
592
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.Form.Label, {
|
|
593
|
+
optional: true,
|
|
594
|
+
children: t("tagsTab.gs1GtinPlaceholder")
|
|
595
|
+
}),
|
|
596
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.Form.Control, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Input, { ...field }) }),
|
|
597
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.Form.ErrorMessage, {})
|
|
598
|
+
] })
|
|
599
|
+
}),
|
|
600
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.Form.Field, {
|
|
601
|
+
control: form.control,
|
|
602
|
+
name: "batch_lot",
|
|
603
|
+
render: ({ field }) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_dashboard_components.Form.Item, { children: [
|
|
604
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.Form.Label, {
|
|
605
|
+
optional: true,
|
|
606
|
+
children: t("tagsTab.batchLotPlaceholder")
|
|
607
|
+
}),
|
|
608
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.Form.Control, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Input, { ...field }) }),
|
|
609
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.Form.ErrorMessage, {})
|
|
610
|
+
] })
|
|
611
|
+
}),
|
|
612
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.Form.Field, {
|
|
613
|
+
control: form.control,
|
|
614
|
+
name: "serial_number",
|
|
615
|
+
render: ({ field }) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_dashboard_components.Form.Item, { children: [
|
|
616
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.Form.Label, {
|
|
617
|
+
optional: true,
|
|
618
|
+
children: t("tagsTab.serialNumberPlaceholder")
|
|
619
|
+
}),
|
|
620
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.Form.Control, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Input, { ...field }) }),
|
|
621
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.Form.ErrorMessage, {})
|
|
622
|
+
] })
|
|
623
|
+
})
|
|
624
|
+
]
|
|
625
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.RouteDrawer.Footer, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
626
|
+
className: "flex items-center justify-end gap-x-2",
|
|
627
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.RouteDrawer.Close, {
|
|
628
|
+
asChild: true,
|
|
629
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Button, {
|
|
630
|
+
size: "small",
|
|
631
|
+
variant: "secondary",
|
|
632
|
+
children: t("header.dismiss")
|
|
633
|
+
})
|
|
634
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Button, {
|
|
635
|
+
size: "small",
|
|
636
|
+
type: "submit",
|
|
637
|
+
isLoading: loading,
|
|
638
|
+
children: t("tagsTab.generateButton")
|
|
639
|
+
})]
|
|
640
|
+
}) })]
|
|
641
|
+
})
|
|
642
|
+
});
|
|
643
|
+
};
|
|
644
|
+
// src/admin/components/dynamic-qr-tag-form.tsx
|
|
645
|
+
var DynamicQrTagCreateSection = ({ form, onFormChange, onCreateTag }) => {
|
|
646
|
+
const { t } = (0, react_i18next.useTranslation)();
|
|
647
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_ui.Container, {
|
|
648
|
+
className: "divide-y p-0",
|
|
649
|
+
children: [
|
|
650
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
651
|
+
className: "px-6 py-4",
|
|
652
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Heading, {
|
|
653
|
+
level: "h2",
|
|
654
|
+
children: t("tagsTab.createTitle")
|
|
655
|
+
})
|
|
656
|
+
}),
|
|
657
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
658
|
+
className: "grid grid-cols-1 gap-3 px-6 py-4 sm:grid-cols-2",
|
|
659
|
+
children: [
|
|
660
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Input, {
|
|
661
|
+
value: form.target_id,
|
|
662
|
+
onChange: (e) => onFormChange((prev) => ({
|
|
663
|
+
...prev,
|
|
664
|
+
target_id: e.target.value
|
|
665
|
+
})),
|
|
666
|
+
placeholder: t("tagsTab.targetIdPlaceholder")
|
|
667
|
+
}),
|
|
668
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Input, {
|
|
669
|
+
value: form.label,
|
|
670
|
+
onChange: (e) => onFormChange((prev) => ({
|
|
671
|
+
...prev,
|
|
672
|
+
label: e.target.value
|
|
673
|
+
})),
|
|
674
|
+
placeholder: t("tagsTab.labelPlaceholder")
|
|
675
|
+
}),
|
|
676
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_ui.Select, {
|
|
677
|
+
value: form.symbology,
|
|
678
|
+
onValueChange: (val) => onFormChange((prev) => ({
|
|
679
|
+
...prev,
|
|
680
|
+
symbology: val
|
|
681
|
+
})),
|
|
682
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Select.Trigger, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Select.Value, {}) }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_ui.Select.Content, { children: [
|
|
683
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Select.Item, {
|
|
684
|
+
value: "qr",
|
|
685
|
+
children: t("tagsTab.symbologyQr")
|
|
686
|
+
}),
|
|
687
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Select.Item, {
|
|
688
|
+
value: "datamatrix",
|
|
689
|
+
children: t("tagsTab.symbologyDatamatrix")
|
|
690
|
+
}),
|
|
691
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Select.Item, {
|
|
692
|
+
value: "ean13",
|
|
693
|
+
children: t("tagsTab.symbologyEan13")
|
|
694
|
+
}),
|
|
695
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Select.Item, {
|
|
696
|
+
value: "upca",
|
|
697
|
+
children: t("tagsTab.symbologyUpca")
|
|
698
|
+
}),
|
|
699
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Select.Item, {
|
|
700
|
+
value: "code128",
|
|
701
|
+
children: t("tagsTab.symbologyCode128")
|
|
702
|
+
}),
|
|
703
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Select.Item, {
|
|
704
|
+
value: "code39",
|
|
705
|
+
children: t("tagsTab.symbologyCode39")
|
|
706
|
+
})
|
|
707
|
+
] })]
|
|
708
|
+
}),
|
|
709
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_ui.Select, {
|
|
710
|
+
value: form.scan_action,
|
|
711
|
+
onValueChange: (val) => onFormChange((prev) => ({
|
|
712
|
+
...prev,
|
|
713
|
+
scan_action: val
|
|
714
|
+
})),
|
|
715
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Select.Trigger, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Select.Value, {}) }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_ui.Select.Content, { children: [
|
|
716
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Select.Item, {
|
|
717
|
+
value: "view",
|
|
718
|
+
children: t("tagsTab.actionView")
|
|
719
|
+
}),
|
|
720
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Select.Item, {
|
|
721
|
+
value: "add_to_cart",
|
|
722
|
+
children: t("tagsTab.actionAddToCart")
|
|
723
|
+
}),
|
|
724
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Select.Item, {
|
|
725
|
+
value: "verify",
|
|
726
|
+
children: t("tagsTab.actionVerify")
|
|
727
|
+
}),
|
|
728
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Select.Item, {
|
|
729
|
+
value: "gs1_digital_link",
|
|
730
|
+
children: t("tagsTab.actionDigitalLink")
|
|
731
|
+
})
|
|
732
|
+
] })]
|
|
733
|
+
}),
|
|
734
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Input, {
|
|
735
|
+
value: form.gs1_gtin,
|
|
736
|
+
onChange: (e) => onFormChange((prev) => ({
|
|
737
|
+
...prev,
|
|
738
|
+
gs1_gtin: e.target.value
|
|
739
|
+
})),
|
|
740
|
+
placeholder: t("tagsTab.gs1GtinPlaceholder")
|
|
741
|
+
}),
|
|
742
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Input, {
|
|
743
|
+
value: form.batch_lot,
|
|
744
|
+
onChange: (e) => onFormChange((prev) => ({
|
|
745
|
+
...prev,
|
|
746
|
+
batch_lot: e.target.value
|
|
747
|
+
})),
|
|
748
|
+
placeholder: t("tagsTab.batchLotPlaceholder")
|
|
749
|
+
}),
|
|
750
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Input, {
|
|
751
|
+
value: form.serial_number,
|
|
752
|
+
onChange: (e) => onFormChange((prev) => ({
|
|
753
|
+
...prev,
|
|
754
|
+
serial_number: e.target.value
|
|
755
|
+
})),
|
|
756
|
+
placeholder: t("tagsTab.serialNumberPlaceholder")
|
|
757
|
+
})
|
|
758
|
+
]
|
|
759
|
+
}),
|
|
760
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
761
|
+
className: "px-6 py-4",
|
|
762
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Button, {
|
|
763
|
+
variant: "primary",
|
|
764
|
+
size: "small",
|
|
765
|
+
onClick: onCreateTag,
|
|
766
|
+
children: t("tagsTab.generateButton")
|
|
767
|
+
})
|
|
768
|
+
})
|
|
769
|
+
]
|
|
770
|
+
});
|
|
771
|
+
};
|
|
772
|
+
// src/admin/components/dynamic-qr-tags-table.tsx
|
|
773
|
+
var DynamicQrTagsTableSection = ({ tags, onDeleteTag, onOpenCreateDrawer }) => {
|
|
774
|
+
const { t } = (0, react_i18next.useTranslation)();
|
|
775
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_ui.Container, {
|
|
776
|
+
className: "divide-y p-0",
|
|
777
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
778
|
+
className: "flex items-center justify-between px-6 py-4",
|
|
779
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Heading, {
|
|
780
|
+
level: "h2",
|
|
781
|
+
children: t("tagsTab.listTitle", { count: tags.length })
|
|
782
|
+
}), onOpenCreateDrawer ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Button, {
|
|
783
|
+
variant: "secondary",
|
|
784
|
+
size: "small",
|
|
785
|
+
onClick: onOpenCreateDrawer,
|
|
786
|
+
children: t("tagsTab.generateButton")
|
|
787
|
+
}) : null]
|
|
788
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_ui.Table, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.Header, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_ui.Table.Row, { children: [
|
|
789
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.HeaderCell, { children: t("widget.codeLabel") }),
|
|
790
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.HeaderCell, { children: t("widget.actionLabel") }),
|
|
791
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.HeaderCell, { children: t("widget.scansLabel") }),
|
|
792
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.HeaderCell, {})
|
|
793
|
+
] }) }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.Body, { children: tags.map((tag) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_ui.Table.Row, { children: [
|
|
794
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.Cell, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
795
|
+
className: "flex flex-col gap-1",
|
|
796
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
797
|
+
className: "flex items-center gap-2",
|
|
798
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
799
|
+
className: "font-mono text-xs font-bold",
|
|
800
|
+
children: String(tag.code)
|
|
801
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Badge, {
|
|
802
|
+
size: "xsmall",
|
|
803
|
+
color: "purple",
|
|
804
|
+
children: String(tag.symbology)
|
|
805
|
+
})]
|
|
806
|
+
}), tag.hmac_signature ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Text, {
|
|
807
|
+
size: "xsmall",
|
|
808
|
+
className: "font-mono text-ui-fg-subtle",
|
|
809
|
+
children: t("tagsTab.hmacLabel", { signature: String(tag.hmac_signature).slice(0, 16) })
|
|
810
|
+
}) : null]
|
|
811
|
+
}) }),
|
|
812
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.Cell, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.StatusBadge, {
|
|
813
|
+
color: "green",
|
|
814
|
+
children: String(tag.scan_action)
|
|
815
|
+
}) }),
|
|
816
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.Cell, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Text, {
|
|
817
|
+
size: "small",
|
|
818
|
+
children: t("tagsTab.tagMeta", {
|
|
819
|
+
target: String(tag.target_id),
|
|
820
|
+
scans: String(tag.scan_count ?? 0)
|
|
821
|
+
})
|
|
822
|
+
}) }),
|
|
823
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.Cell, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
824
|
+
className: "flex items-center justify-end gap-2",
|
|
825
|
+
children: [typeof tag.svg_markup === "string" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(BarcodeImage, {
|
|
826
|
+
code: String(tag.code),
|
|
827
|
+
symbology: tag.symbology,
|
|
828
|
+
svgMarkup: tag.svg_markup,
|
|
829
|
+
width: 80,
|
|
830
|
+
height: 44
|
|
831
|
+
}) : null, /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Button, {
|
|
832
|
+
variant: "secondary",
|
|
833
|
+
size: "small",
|
|
834
|
+
onClick: () => onDeleteTag(String(tag.id)),
|
|
835
|
+
children: t("tagsTab.deleteButton")
|
|
836
|
+
})]
|
|
837
|
+
}) })
|
|
838
|
+
] }, String(tag.id))) })] })]
|
|
839
|
+
});
|
|
840
|
+
};
|
|
841
|
+
// src/admin/components/label-output-section.tsx
|
|
842
|
+
var LabelPrintOutputSection = ({ output }) => {
|
|
843
|
+
const { t } = (0, react_i18next.useTranslation)();
|
|
844
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_ui.Container, {
|
|
845
|
+
className: "divide-y p-0",
|
|
846
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
847
|
+
className: "flex items-center justify-between px-6 py-4",
|
|
848
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Heading, {
|
|
849
|
+
level: "h2",
|
|
850
|
+
children: t("printTab.outputTitle")
|
|
851
|
+
}), output ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.StatusBadge, {
|
|
852
|
+
color: "green",
|
|
853
|
+
children: t("printTab.labelsReadyBadge", {
|
|
854
|
+
count: output.total_labels,
|
|
855
|
+
name: output.template.name
|
|
856
|
+
})
|
|
857
|
+
}) : null]
|
|
858
|
+
}), output ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
859
|
+
className: "flex flex-col gap-4 px-6 py-4",
|
|
860
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Text, {
|
|
861
|
+
size: "xsmall",
|
|
862
|
+
weight: "plus",
|
|
863
|
+
className: "mb-1",
|
|
864
|
+
children: t("printTab.zplHeading")
|
|
865
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Textarea, {
|
|
866
|
+
readOnly: true,
|
|
867
|
+
rows: 7,
|
|
868
|
+
value: output.zpl,
|
|
869
|
+
className: "font-mono text-xs"
|
|
870
|
+
})] }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Text, {
|
|
871
|
+
size: "xsmall",
|
|
872
|
+
weight: "plus",
|
|
873
|
+
className: "mb-1",
|
|
874
|
+
children: t("printTab.htmlHeading")
|
|
875
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Textarea, {
|
|
876
|
+
readOnly: true,
|
|
877
|
+
rows: 5,
|
|
878
|
+
value: output.html,
|
|
879
|
+
className: "font-mono text-xs"
|
|
880
|
+
})] })]
|
|
881
|
+
}) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
882
|
+
className: "px-6 py-4",
|
|
883
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Text, {
|
|
884
|
+
size: "small",
|
|
885
|
+
className: "text-ui-fg-subtle",
|
|
886
|
+
children: t("printTab.emptyState")
|
|
887
|
+
})
|
|
888
|
+
})]
|
|
889
|
+
});
|
|
890
|
+
};
|
|
891
|
+
// src/admin/components/label-designer-section.tsx
|
|
892
|
+
var LabelPrintDesignerSection = ({ form, onFormChange, templates, onRenderLabels }) => {
|
|
893
|
+
const { t } = (0, react_i18next.useTranslation)();
|
|
894
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_ui.Container, {
|
|
895
|
+
className: "divide-y p-0",
|
|
896
|
+
children: [
|
|
897
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
898
|
+
className: "px-6 py-4",
|
|
899
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Heading, {
|
|
900
|
+
level: "h2",
|
|
901
|
+
children: t("printTab.designerTitle")
|
|
902
|
+
})
|
|
903
|
+
}),
|
|
904
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
905
|
+
className: "grid grid-cols-1 gap-3 px-6 py-4 sm:grid-cols-2",
|
|
906
|
+
children: [
|
|
907
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
908
|
+
className: "sm:col-span-2",
|
|
909
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_ui.Select, {
|
|
910
|
+
value: form.template_id,
|
|
911
|
+
onValueChange: (val) => onFormChange((prev) => ({
|
|
912
|
+
...prev,
|
|
913
|
+
template_id: val
|
|
914
|
+
})),
|
|
915
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Select.Trigger, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Select.Value, {}) }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Select.Content, { children: templates.map((tpl) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_ui.Select.Item, {
|
|
916
|
+
value: tpl.id,
|
|
917
|
+
children: [
|
|
918
|
+
tpl.name,
|
|
919
|
+
" (",
|
|
920
|
+
tpl.width_mm,
|
|
921
|
+
"×",
|
|
922
|
+
tpl.height_mm,
|
|
923
|
+
"mm)"
|
|
924
|
+
]
|
|
925
|
+
}, tpl.id)) })]
|
|
926
|
+
})
|
|
927
|
+
}),
|
|
928
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Input, {
|
|
929
|
+
value: form.title,
|
|
930
|
+
onChange: (e) => onFormChange((prev) => ({
|
|
931
|
+
...prev,
|
|
932
|
+
title: e.target.value
|
|
933
|
+
})),
|
|
934
|
+
placeholder: t("printTab.productTitlePlaceholder")
|
|
935
|
+
}),
|
|
936
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Input, {
|
|
937
|
+
value: form.variant_title,
|
|
938
|
+
onChange: (e) => onFormChange((prev) => ({
|
|
939
|
+
...prev,
|
|
940
|
+
variant_title: e.target.value
|
|
941
|
+
})),
|
|
942
|
+
placeholder: t("printTab.variantTitlePlaceholder")
|
|
943
|
+
}),
|
|
944
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Input, {
|
|
945
|
+
value: form.barcode,
|
|
946
|
+
onChange: (e) => onFormChange((prev) => ({
|
|
947
|
+
...prev,
|
|
948
|
+
barcode: e.target.value
|
|
949
|
+
})),
|
|
950
|
+
placeholder: t("printTab.barcodePlaceholder")
|
|
951
|
+
}),
|
|
952
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Input, {
|
|
953
|
+
value: form.sku,
|
|
954
|
+
onChange: (e) => onFormChange((prev) => ({
|
|
955
|
+
...prev,
|
|
956
|
+
sku: e.target.value
|
|
957
|
+
})),
|
|
958
|
+
placeholder: t("printTab.skuPlaceholder")
|
|
959
|
+
}),
|
|
960
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Input, {
|
|
961
|
+
type: "number",
|
|
962
|
+
value: String(form.price),
|
|
963
|
+
onChange: (e) => onFormChange((prev) => ({
|
|
964
|
+
...prev,
|
|
965
|
+
price: Number(e.target.value || 0)
|
|
966
|
+
})),
|
|
967
|
+
placeholder: t("printTab.salePricePlaceholder")
|
|
968
|
+
}),
|
|
969
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Input, {
|
|
970
|
+
type: "number",
|
|
971
|
+
value: String(form.compare_at_price),
|
|
972
|
+
onChange: (e) => onFormChange((prev) => ({
|
|
973
|
+
...prev,
|
|
974
|
+
compare_at_price: Number(e.target.value || 0)
|
|
975
|
+
})),
|
|
976
|
+
placeholder: t("printTab.compareAtPricePlaceholder")
|
|
977
|
+
}),
|
|
978
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Input, {
|
|
979
|
+
value: form.currency_code,
|
|
980
|
+
onChange: (e) => onFormChange((prev) => ({
|
|
981
|
+
...prev,
|
|
982
|
+
currency_code: e.target.value.toUpperCase()
|
|
983
|
+
})),
|
|
984
|
+
placeholder: t("printTab.currencyPlaceholder")
|
|
985
|
+
}),
|
|
986
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Input, {
|
|
987
|
+
type: "number",
|
|
988
|
+
value: String(form.quantity),
|
|
989
|
+
onChange: (e) => onFormChange((prev) => ({
|
|
990
|
+
...prev,
|
|
991
|
+
quantity: Number(e.target.value || 1)
|
|
992
|
+
})),
|
|
993
|
+
placeholder: t("printTab.quantityPlaceholder")
|
|
994
|
+
})
|
|
995
|
+
]
|
|
996
|
+
}),
|
|
997
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
998
|
+
className: "px-6 py-4",
|
|
999
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Button, {
|
|
1000
|
+
variant: "primary",
|
|
1001
|
+
size: "small",
|
|
1002
|
+
onClick: onRenderLabels,
|
|
1003
|
+
children: t("printTab.renderButton")
|
|
1004
|
+
})
|
|
1005
|
+
})
|
|
1006
|
+
]
|
|
1007
|
+
});
|
|
1008
|
+
};
|
|
1009
|
+
// src/admin/components/stock-take-sessions-section.tsx
|
|
1010
|
+
var StockTakeSessionsSection = ({ sessions, selectedSessionId, onSelectSession, onApplySession }) => {
|
|
1011
|
+
const { t } = (0, react_i18next.useTranslation)();
|
|
1012
|
+
const activeSession = sessions.find((s) => String(s.id) === selectedSessionId);
|
|
1013
|
+
const activeItems = Array.isArray(activeSession?.items) ? activeSession.items : [];
|
|
1014
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_ui.Container, {
|
|
1015
|
+
className: "divide-y p-0",
|
|
1016
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
1017
|
+
className: "px-6 py-4",
|
|
1018
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Heading, {
|
|
1019
|
+
level: "h2",
|
|
1020
|
+
children: t("stockTakeTab.sessionsTitle", { count: sessions.length })
|
|
1021
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
1022
|
+
className: "mt-3 flex flex-wrap gap-2",
|
|
1023
|
+
children: sessions.map((s) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_ui.Button, {
|
|
1024
|
+
variant: String(s.id) === selectedSessionId ? "primary" : "secondary",
|
|
1025
|
+
size: "small",
|
|
1026
|
+
onClick: () => onSelectSession(String(s.id)),
|
|
1027
|
+
children: [
|
|
1028
|
+
String(s.name),
|
|
1029
|
+
" (",
|
|
1030
|
+
String(s.status),
|
|
1031
|
+
")"
|
|
1032
|
+
]
|
|
1033
|
+
}, String(s.id)))
|
|
1034
|
+
})]
|
|
1035
|
+
}), activeSession ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [
|
|
1036
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.SectionRow, {
|
|
1037
|
+
title: String(activeSession.name),
|
|
1038
|
+
value: activeSession.status === "in_progress" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Button, {
|
|
1039
|
+
variant: "primary",
|
|
1040
|
+
size: "small",
|
|
1041
|
+
onClick: () => onApplySession(String(activeSession.id)),
|
|
1042
|
+
children: t("stockTakeTab.completeApplyButton")
|
|
1043
|
+
}) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.StatusBadge, {
|
|
1044
|
+
color: "green",
|
|
1045
|
+
children: t("stockTakeTab.completedBadge")
|
|
1046
|
+
})
|
|
1047
|
+
}),
|
|
1048
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.SectionRow, {
|
|
1049
|
+
title: t("stockTakeTab.countedShort"),
|
|
1050
|
+
value: t("stockTakeTab.sessionSummary", {
|
|
1051
|
+
expected: String(activeSession.total_expected ?? 0),
|
|
1052
|
+
counted: String(activeSession.total_counted ?? 0),
|
|
1053
|
+
variance: String(activeSession.total_variance ?? 0)
|
|
1054
|
+
})
|
|
1055
|
+
}),
|
|
1056
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_ui.Table, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.Header, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_ui.Table.Row, { children: [
|
|
1057
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.HeaderCell, { children: "Barcode" }),
|
|
1058
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.HeaderCell, { children: "Item" }),
|
|
1059
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.HeaderCell, { children: t("stockTakeTab.countedShort") })
|
|
1060
|
+
] }) }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.Body, { children: activeItems.map((item) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_ui.Table.Row, { children: [
|
|
1061
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.Cell, {
|
|
1062
|
+
className: "font-mono font-semibold",
|
|
1063
|
+
children: String(item.barcode)
|
|
1064
|
+
}),
|
|
1065
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.Cell, { children: String(item.title) }),
|
|
1066
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_ui.Table.Cell, { children: [
|
|
1067
|
+
t("stockTakeTab.expectedShort", { expected: String(item.expected_quantity) }),
|
|
1068
|
+
" ",
|
|
1069
|
+
"| ",
|
|
1070
|
+
t("stockTakeTab.countedShort"),
|
|
1071
|
+
" ",
|
|
1072
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("strong", { children: String(item.counted_quantity) }),
|
|
1073
|
+
" ",
|
|
1074
|
+
t("stockTakeTab.varianceShort", { variance: String(item.variance) })
|
|
1075
|
+
] })
|
|
1076
|
+
] }, String(item.id))) })] })
|
|
1077
|
+
] }) : null]
|
|
1078
|
+
});
|
|
1079
|
+
};
|
|
1080
|
+
// src/admin/components/stock-take-scanner-section.tsx
|
|
1081
|
+
var StockTakeControlsSection = ({ form, onFormChange, onCreateSession, onScanDelta }) => {
|
|
1082
|
+
const { t } = (0, react_i18next.useTranslation)();
|
|
1083
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_ui.Container, {
|
|
1084
|
+
className: "divide-y p-0",
|
|
1085
|
+
children: [
|
|
1086
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
1087
|
+
className: "px-6 py-4",
|
|
1088
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Heading, {
|
|
1089
|
+
level: "h2",
|
|
1090
|
+
children: t("stockTakeTab.createTitle")
|
|
1091
|
+
})
|
|
1092
|
+
}),
|
|
1093
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
1094
|
+
className: "flex flex-col gap-3 px-6 py-4",
|
|
1095
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
1096
|
+
className: "grid grid-cols-1 gap-3 sm:grid-cols-2",
|
|
1097
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Input, {
|
|
1098
|
+
value: form.name,
|
|
1099
|
+
onChange: (e) => onFormChange((prev) => ({
|
|
1100
|
+
...prev,
|
|
1101
|
+
name: e.target.value
|
|
1102
|
+
})),
|
|
1103
|
+
placeholder: t("stockTakeTab.sessionNamePlaceholder")
|
|
1104
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Input, {
|
|
1105
|
+
value: form.location_id,
|
|
1106
|
+
onChange: (e) => onFormChange((prev) => ({
|
|
1107
|
+
...prev,
|
|
1108
|
+
location_id: e.target.value
|
|
1109
|
+
})),
|
|
1110
|
+
placeholder: t("stockTakeTab.locationIdPlaceholder")
|
|
1111
|
+
})]
|
|
1112
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Button, {
|
|
1113
|
+
variant: "secondary",
|
|
1114
|
+
size: "small",
|
|
1115
|
+
onClick: onCreateSession,
|
|
1116
|
+
children: t("stockTakeTab.startSessionButton")
|
|
1117
|
+
}) })]
|
|
1118
|
+
}),
|
|
1119
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
1120
|
+
className: "px-6 py-4",
|
|
1121
|
+
children: [
|
|
1122
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Heading, {
|
|
1123
|
+
level: "h3",
|
|
1124
|
+
children: t("stockTakeTab.scannerTitle")
|
|
1125
|
+
}),
|
|
1126
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
1127
|
+
className: "mt-3 grid grid-cols-1 gap-2 sm:grid-cols-2",
|
|
1128
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Input, {
|
|
1129
|
+
value: form.scan_barcode,
|
|
1130
|
+
onChange: (e) => onFormChange((prev) => ({
|
|
1131
|
+
...prev,
|
|
1132
|
+
scan_barcode: e.target.value
|
|
1133
|
+
})),
|
|
1134
|
+
placeholder: t("stockTakeTab.scannedBarcodePlaceholder")
|
|
1135
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Input, {
|
|
1136
|
+
value: form.scan_title,
|
|
1137
|
+
onChange: (e) => onFormChange((prev) => ({
|
|
1138
|
+
...prev,
|
|
1139
|
+
scan_title: e.target.value
|
|
1140
|
+
})),
|
|
1141
|
+
placeholder: t("stockTakeTab.itemTitlePlaceholder")
|
|
1142
|
+
})]
|
|
1143
|
+
}),
|
|
1144
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
1145
|
+
className: "mt-3 flex gap-2",
|
|
1146
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Button, {
|
|
1147
|
+
variant: "primary",
|
|
1148
|
+
size: "small",
|
|
1149
|
+
onClick: () => onScanDelta(1),
|
|
1150
|
+
children: t("stockTakeTab.scanPlusOneButton")
|
|
1151
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Button, {
|
|
1152
|
+
variant: "secondary",
|
|
1153
|
+
size: "small",
|
|
1154
|
+
onClick: () => onScanDelta(-1),
|
|
1155
|
+
children: t("stockTakeTab.adjustMinusOneButton")
|
|
1156
|
+
})]
|
|
1157
|
+
})
|
|
1158
|
+
]
|
|
1159
|
+
})
|
|
1160
|
+
]
|
|
1161
|
+
});
|
|
1162
|
+
};
|
|
1163
|
+
// src/admin/components/providers-cache-table.tsx
|
|
1164
|
+
var ProvidersCacheSection = ({ cacheEntries, onPurgeExpired, onClearAllCache }) => {
|
|
1165
|
+
const { t } = (0, react_i18next.useTranslation)();
|
|
1166
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_ui.Container, {
|
|
1167
|
+
className: "divide-y p-0",
|
|
1168
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
1169
|
+
className: "flex flex-wrap items-center justify-between gap-2 px-6 py-4",
|
|
1170
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Heading, {
|
|
1171
|
+
level: "h2",
|
|
1172
|
+
children: t("providersTab.cacheTitle", { count: cacheEntries.length })
|
|
1173
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
1174
|
+
className: "flex gap-2",
|
|
1175
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Button, {
|
|
1176
|
+
variant: "secondary",
|
|
1177
|
+
size: "small",
|
|
1178
|
+
onClick: onPurgeExpired,
|
|
1179
|
+
children: t("providersTab.purgeExpiredButton")
|
|
1180
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Button, {
|
|
1181
|
+
variant: "secondary",
|
|
1182
|
+
size: "small",
|
|
1183
|
+
onClick: onClearAllCache,
|
|
1184
|
+
children: t("providersTab.clearAllButton")
|
|
1185
|
+
})]
|
|
1186
|
+
})]
|
|
1187
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_ui.Table, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.Header, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_ui.Table.Row, { children: [
|
|
1188
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.HeaderCell, { children: "Barcode" }),
|
|
1189
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.HeaderCell, { children: "Provider" }),
|
|
1190
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.HeaderCell, { children: "Hits" })
|
|
1191
|
+
] }) }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.Body, { children: cacheEntries.map((entry) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_ui.Table.Row, { children: [
|
|
1192
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.Cell, {
|
|
1193
|
+
className: "font-mono font-bold",
|
|
1194
|
+
children: String(entry.barcode)
|
|
1195
|
+
}),
|
|
1196
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.Cell, { children: String(entry.provider) }),
|
|
1197
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.Cell, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.StatusBadge, {
|
|
1198
|
+
color: entry.found ? "green" : "orange",
|
|
1199
|
+
children: t("providersTab.hitsBadge", { count: String(entry.hit_count ?? 1) })
|
|
1200
|
+
}) })
|
|
1201
|
+
] }, String(entry.id))) })] })]
|
|
1202
|
+
});
|
|
1203
|
+
};
|
|
1204
|
+
// src/admin/components/providers-overview-section.tsx
|
|
1205
|
+
var ProvidersRegistrySection = ({ overview }) => {
|
|
1206
|
+
const { t } = (0, react_i18next.useTranslation)();
|
|
1207
|
+
const providers = Array.isArray(overview.active_providers) ? overview.active_providers : [];
|
|
1208
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_ui.Container, {
|
|
1209
|
+
className: "divide-y p-0",
|
|
1210
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
1211
|
+
className: "px-6 py-4",
|
|
1212
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Heading, {
|
|
1213
|
+
level: "h2",
|
|
1214
|
+
children: t("providersTab.providersTitle")
|
|
1215
|
+
})
|
|
1216
|
+
}), providers.map((p) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.SectionRow, {
|
|
1217
|
+
title: p,
|
|
1218
|
+
value: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.StatusBadge, {
|
|
1219
|
+
color: "green",
|
|
1220
|
+
children: p
|
|
1221
|
+
})
|
|
1222
|
+
}, p))]
|
|
1223
|
+
});
|
|
1224
|
+
};
|
|
1225
|
+
// src/admin/components/product-barcode-card.tsx
|
|
1226
|
+
var ProductBarcodeCard = ({ productTitle, tags, linkedBarcodes, printPreview, isBusy, onGenerateBarcodes, onQuickPrintLabels }) => {
|
|
1227
|
+
const { t, i18n } = (0, react_i18next.useTranslation)();
|
|
1228
|
+
const isRtl = (i18n.resolvedLanguage || i18n.language || "").startsWith("ar");
|
|
1229
|
+
const primaryTag = tags[0];
|
|
1230
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_ui.Container, {
|
|
1231
|
+
className: "divide-y p-0",
|
|
1232
|
+
dir: isRtl ? "rtl" : "ltr",
|
|
1233
|
+
children: [
|
|
1234
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
1235
|
+
className: "flex flex-wrap items-center justify-between gap-3 px-6 py-4",
|
|
1236
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Heading, {
|
|
1237
|
+
level: "h2",
|
|
1238
|
+
children: t("widget.title")
|
|
1239
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Text, {
|
|
1240
|
+
size: "small",
|
|
1241
|
+
className: "text-ui-fg-subtle",
|
|
1242
|
+
children: t("widget.subtitle", {
|
|
1243
|
+
productTitle: productTitle || t("widget.defaultProductTitle"),
|
|
1244
|
+
tagsCount: tags.length,
|
|
1245
|
+
barcodesCount: linkedBarcodes.length
|
|
1246
|
+
})
|
|
1247
|
+
})] }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
1248
|
+
className: "flex gap-2",
|
|
1249
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Button, {
|
|
1250
|
+
variant: "secondary",
|
|
1251
|
+
size: "small",
|
|
1252
|
+
isLoading: isBusy,
|
|
1253
|
+
onClick: onGenerateBarcodes,
|
|
1254
|
+
children: t("widget.generateButton")
|
|
1255
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Button, {
|
|
1256
|
+
variant: "primary",
|
|
1257
|
+
size: "small",
|
|
1258
|
+
isLoading: isBusy,
|
|
1259
|
+
onClick: onQuickPrintLabels,
|
|
1260
|
+
children: t("widget.printButton")
|
|
1261
|
+
})]
|
|
1262
|
+
})]
|
|
1263
|
+
}),
|
|
1264
|
+
primaryTag ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [
|
|
1265
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.SectionRow, {
|
|
1266
|
+
title: t("widget.codeLabel"),
|
|
1267
|
+
value: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Badge, {
|
|
1268
|
+
size: "xsmall",
|
|
1269
|
+
color: "grey",
|
|
1270
|
+
children: String(primaryTag.code)
|
|
1271
|
+
})
|
|
1272
|
+
}),
|
|
1273
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.SectionRow, {
|
|
1274
|
+
title: t("widget.actionLabel"),
|
|
1275
|
+
value: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.StatusBadge, {
|
|
1276
|
+
color: "green",
|
|
1277
|
+
children: String(primaryTag.scan_action)
|
|
1278
|
+
})
|
|
1279
|
+
}),
|
|
1280
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.SectionRow, {
|
|
1281
|
+
title: t("widget.scansLabel"),
|
|
1282
|
+
value: String(primaryTag.scan_count ?? 0)
|
|
1283
|
+
}),
|
|
1284
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
1285
|
+
className: "px-6 py-4",
|
|
1286
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(BarcodeImage, {
|
|
1287
|
+
code: String(primaryTag.code),
|
|
1288
|
+
symbology: primaryTag.symbology || "ean13",
|
|
1289
|
+
svgMarkup: typeof primaryTag.svg_markup === "string" ? primaryTag.svg_markup : void 0
|
|
1290
|
+
})
|
|
1291
|
+
})
|
|
1292
|
+
] }) : null,
|
|
1293
|
+
printPreview ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
1294
|
+
className: "px-6 py-4",
|
|
1295
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Text, {
|
|
1296
|
+
size: "xsmall",
|
|
1297
|
+
weight: "plus",
|
|
1298
|
+
className: "mb-1",
|
|
1299
|
+
children: t("widget.zplOutputLabel", { name: printPreview.template.name })
|
|
1300
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Textarea, {
|
|
1301
|
+
readOnly: true,
|
|
1302
|
+
rows: 4,
|
|
1303
|
+
value: printPreview.zpl,
|
|
1304
|
+
className: "font-mono text-xs"
|
|
1305
|
+
})]
|
|
1306
|
+
}) : null
|
|
1307
|
+
]
|
|
1308
|
+
});
|
|
1309
|
+
};
|
|
1310
|
+
// src/admin/hooks/use-product-barcodes.ts
|
|
1311
|
+
var defaultAdminSdk$1 = createBarcodeSdk();
|
|
1312
|
+
/**
|
|
1313
|
+
* Decoupled hook for the Product Detail Barcode & Label Widget (`product.details.after`).
|
|
1314
|
+
*/
|
|
1315
|
+
var useProductBarcodes = (product) => {
|
|
1316
|
+
const { t } = (0, react_i18next.useTranslation)();
|
|
1317
|
+
const productId = product?.id ?? "";
|
|
1318
|
+
const [tags, setTags] = (0, react.useState)([]);
|
|
1319
|
+
const [linkedBarcodes, setLinkedBarcodes] = (0, react.useState)([]);
|
|
1320
|
+
const [printPreview, setPrintPreview] = (0, react.useState)(null);
|
|
1321
|
+
const [isBusy, setIsBusy] = (0, react.useState)(false);
|
|
1322
|
+
const [feedback, setFeedback] = (0, react.useState)(null);
|
|
1323
|
+
const loadProductBarcodeData = (0, react.useCallback)(async () => {
|
|
1324
|
+
if (!productId) return;
|
|
1325
|
+
try {
|
|
1326
|
+
const [barcodesRes, tagsRes] = await Promise.all([defaultAdminSdk$1.admin.listBarcodes({ product_id: productId }), defaultAdminSdk$1.admin.listTags({ product_id: productId })]);
|
|
1327
|
+
setLinkedBarcodes(barcodesRes.barcodes || []);
|
|
1328
|
+
setTags(tagsRes.tags || []);
|
|
1329
|
+
} catch {}
|
|
1330
|
+
}, [productId]);
|
|
1331
|
+
(0, react.useEffect)(() => {
|
|
1332
|
+
loadProductBarcodeData();
|
|
1333
|
+
}, [loadProductBarcodeData]);
|
|
1334
|
+
const handleGenerateProductBarcodes = async () => {
|
|
1335
|
+
if (!productId) return;
|
|
1336
|
+
setIsBusy(true);
|
|
1337
|
+
try {
|
|
1338
|
+
const variantIds = (product?.variants || []).map((v) => v.id);
|
|
1339
|
+
const tagRes = await defaultAdminSdk$1.admin.createTag({
|
|
1340
|
+
target_type: "product",
|
|
1341
|
+
target_id: productId,
|
|
1342
|
+
product_id: productId,
|
|
1343
|
+
label: product?.title || productId,
|
|
1344
|
+
symbology: "ean13",
|
|
1345
|
+
scan_action: "view"
|
|
1346
|
+
});
|
|
1347
|
+
if (variantIds.length > 0) await defaultAdminSdk$1.admin.bulkGenerate({
|
|
1348
|
+
variant_ids: variantIds,
|
|
1349
|
+
prefix: "200",
|
|
1350
|
+
overwrite: false
|
|
1351
|
+
});
|
|
1352
|
+
const msg = t("messages.widgetBarcodeGenerated", {
|
|
1353
|
+
code: String(tagRes.tag?.code || ""),
|
|
1354
|
+
title: product?.title || productId
|
|
1355
|
+
});
|
|
1356
|
+
setFeedback(msg);
|
|
1357
|
+
_medusajs_ui.toast.success(msg);
|
|
1358
|
+
await loadProductBarcodeData();
|
|
1359
|
+
} catch (err) {
|
|
1360
|
+
const msg = err instanceof Error ? err.message : t("messages.widgetBarcodeError");
|
|
1361
|
+
setFeedback(msg);
|
|
1362
|
+
_medusajs_ui.toast.error(msg);
|
|
1363
|
+
} finally {
|
|
1364
|
+
setIsBusy(false);
|
|
1365
|
+
}
|
|
1366
|
+
};
|
|
1367
|
+
const handleQuickPrintProductLabels = async () => {
|
|
1368
|
+
if (!productId) return;
|
|
1369
|
+
setIsBusy(true);
|
|
1370
|
+
try {
|
|
1371
|
+
const firstTag = tags[0];
|
|
1372
|
+
const code = String(firstTag?.code || "2001234567893");
|
|
1373
|
+
const output = await defaultAdminSdk$1.admin.printLabels({
|
|
1374
|
+
template_id: "thermal_50x25",
|
|
1375
|
+
items: [{
|
|
1376
|
+
barcode: code,
|
|
1377
|
+
title: product?.title || t("messages.defaultProductLabelTitle"),
|
|
1378
|
+
sku: product?.variants?.[0]?.sku || null,
|
|
1379
|
+
price: 19.99,
|
|
1380
|
+
currency_code: "USD",
|
|
1381
|
+
quantity: 1
|
|
1382
|
+
}]
|
|
1383
|
+
});
|
|
1384
|
+
setPrintPreview(output);
|
|
1385
|
+
const msg = t("messages.widgetLabelPrepared", { code });
|
|
1386
|
+
setFeedback(msg);
|
|
1387
|
+
_medusajs_ui.toast.success(msg);
|
|
1388
|
+
} catch (err) {
|
|
1389
|
+
const msg = err instanceof Error ? err.message : t("messages.widgetLabelError");
|
|
1390
|
+
setFeedback(msg);
|
|
1391
|
+
_medusajs_ui.toast.error(msg);
|
|
1392
|
+
} finally {
|
|
1393
|
+
setIsBusy(false);
|
|
1394
|
+
}
|
|
1395
|
+
};
|
|
1396
|
+
return {
|
|
1397
|
+
tags,
|
|
1398
|
+
linkedBarcodes,
|
|
1399
|
+
printPreview,
|
|
1400
|
+
isBusy,
|
|
1401
|
+
feedback,
|
|
1402
|
+
handleGenerateProductBarcodes,
|
|
1403
|
+
handleQuickPrintProductLabels
|
|
1404
|
+
};
|
|
1405
|
+
};
|
|
1406
|
+
// src/admin/widgets/product-barcode-widget.tsx
|
|
1407
|
+
var ProductBarcodeWidget = ({ data }) => {
|
|
1408
|
+
const { t } = (0, react_i18next.useTranslation)();
|
|
1409
|
+
const { tags, linkedBarcodes, printPreview, isBusy, feedback, handleGenerateProductBarcodes, handleQuickPrintProductLabels } = useProductBarcodes(data);
|
|
1410
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ProductBarcodeCard, {
|
|
1411
|
+
productTitle: data?.title || t("widget.defaultProductTitle"),
|
|
1412
|
+
tags,
|
|
1413
|
+
linkedBarcodes,
|
|
1414
|
+
printPreview,
|
|
1415
|
+
isBusy,
|
|
1416
|
+
feedback,
|
|
1417
|
+
onGenerateBarcodes: () => void handleGenerateProductBarcodes(),
|
|
1418
|
+
onQuickPrintLabels: () => void handleQuickPrintProductLabels()
|
|
1419
|
+
});
|
|
1420
|
+
};
|
|
1421
|
+
(0, _medusajs_admin_sdk.defineWidgetConfig)({ zone: "product.details.after" });
|
|
1422
|
+
// src/admin/hooks/use-barcode-studio.ts
|
|
1423
|
+
var defaultAdminSdk = createBarcodeSdk();
|
|
1424
|
+
var useBarcodeStudio = () => {
|
|
1425
|
+
const { t } = (0, react_i18next.useTranslation)();
|
|
1426
|
+
const [barcodes, setBarcodes] = (0, react.useState)([]);
|
|
1427
|
+
const [overview, setOverview] = (0, react.useState)({});
|
|
1428
|
+
const [tags, setTags] = (0, react.useState)([]);
|
|
1429
|
+
const [templates, setTemplates] = (0, react.useState)([]);
|
|
1430
|
+
const [sessions, setSessions] = (0, react.useState)([]);
|
|
1431
|
+
const [cacheEntries, setCacheEntries] = (0, react.useState)([]);
|
|
1432
|
+
const [bannerMessage, setBannerMessage] = (0, react.useState)(null);
|
|
1433
|
+
const [bannerTone, setBannerTone] = (0, react.useState)("success");
|
|
1434
|
+
const [isLoading, setIsLoading] = (0, react.useState)(false);
|
|
1435
|
+
const [lookupForm, setLookupForm] = (0, react.useState)({
|
|
1436
|
+
barcode: "3017620422003",
|
|
1437
|
+
strategy: "first-hit",
|
|
1438
|
+
status: "draft",
|
|
1439
|
+
downloadImages: false,
|
|
1440
|
+
batchInput: "3017620422003\n9780140328721"
|
|
1441
|
+
});
|
|
1442
|
+
const [lookupResult, setLookupResult] = (0, react.useState)(null);
|
|
1443
|
+
const [tagForm, setTagForm] = (0, react.useState)({
|
|
1444
|
+
target_id: "prod_01",
|
|
1445
|
+
label: "Flagship Edition",
|
|
1446
|
+
symbology: "qr",
|
|
1447
|
+
scan_action: "verify",
|
|
1448
|
+
gs1_gtin: "09506000134352",
|
|
1449
|
+
batch_lot: "LOT-2026-A",
|
|
1450
|
+
serial_number: "SN-000192"
|
|
1451
|
+
});
|
|
1452
|
+
const [printForm, setPrintForm] = (0, react.useState)({
|
|
1453
|
+
template_id: "thermal_50x25",
|
|
1454
|
+
barcode: "2001234567893",
|
|
1455
|
+
title: "Organic Espresso Beans",
|
|
1456
|
+
variant_title: "250g Whole Bean",
|
|
1457
|
+
sku: "ESP-250-WB",
|
|
1458
|
+
brand: "Medusa Roasters",
|
|
1459
|
+
price: 14.5,
|
|
1460
|
+
compare_at_price: 18,
|
|
1461
|
+
currency_code: "USD",
|
|
1462
|
+
quantity: 4
|
|
1463
|
+
});
|
|
1464
|
+
const [printOutput, setPrintOutput] = (0, react.useState)(null);
|
|
1465
|
+
const [countForm, setCountForm] = (0, react.useState)({
|
|
1466
|
+
name: "Q4 Warehouse Cycle Count",
|
|
1467
|
+
location_id: "sloc_main_warehouse",
|
|
1468
|
+
notes: "Aisle 1-4 audit",
|
|
1469
|
+
scan_barcode: "2001234567893",
|
|
1470
|
+
scan_title: "Organic Espresso Beans",
|
|
1471
|
+
expected_quantity: 10
|
|
1472
|
+
});
|
|
1473
|
+
const [selectedSessionId, setSelectedSessionId] = (0, react.useState)(null);
|
|
1474
|
+
const notify = (0, react.useCallback)((msg, tone = "success") => {
|
|
1475
|
+
setBannerTone(tone);
|
|
1476
|
+
setBannerMessage(msg);
|
|
1477
|
+
if (tone === "error") _medusajs_ui.toast.error(msg);
|
|
1478
|
+
else _medusajs_ui.toast.success(msg);
|
|
1479
|
+
}, []);
|
|
1480
|
+
const refreshAll = (0, react.useCallback)(async () => {
|
|
1481
|
+
setIsLoading(true);
|
|
1482
|
+
try {
|
|
1483
|
+
const [barcodesRes, tagsRes, templatesRes, sessionsRes, cacheRes] = await Promise.all([
|
|
1484
|
+
defaultAdminSdk.admin.listBarcodes(),
|
|
1485
|
+
defaultAdminSdk.admin.listTags(),
|
|
1486
|
+
defaultAdminSdk.admin.listTemplates(),
|
|
1487
|
+
defaultAdminSdk.admin.listCountSessions(),
|
|
1488
|
+
defaultAdminSdk.admin.listCache()
|
|
1489
|
+
]);
|
|
1490
|
+
setBarcodes(barcodesRes.barcodes || []);
|
|
1491
|
+
setOverview(barcodesRes.overview || {});
|
|
1492
|
+
setTags(tagsRes.tags || []);
|
|
1493
|
+
setTemplates(templatesRes.templates || []);
|
|
1494
|
+
setSessions(sessionsRes.sessions || []);
|
|
1495
|
+
setCacheEntries(cacheRes.cache_entries || []);
|
|
1496
|
+
if (!selectedSessionId && sessionsRes.sessions?.[0]?.id) setSelectedSessionId(String(sessionsRes.sessions[0].id));
|
|
1497
|
+
} catch (err) {
|
|
1498
|
+
notify(err instanceof Error ? err.message : t("messages.loadStudioError"), "error");
|
|
1499
|
+
} finally {
|
|
1500
|
+
setIsLoading(false);
|
|
1501
|
+
}
|
|
1502
|
+
}, [selectedSessionId, t]);
|
|
1503
|
+
(0, react.useEffect)(() => {
|
|
1504
|
+
refreshAll();
|
|
1505
|
+
}, [refreshAll]);
|
|
1506
|
+
const { lastScanned } = useHidBarcodeScanner({
|
|
1507
|
+
enabled: true,
|
|
1508
|
+
onScan: (scannedBarcode) => {
|
|
1509
|
+
setLookupForm((prev) => ({
|
|
1510
|
+
...prev,
|
|
1511
|
+
barcode: scannedBarcode
|
|
1512
|
+
}));
|
|
1513
|
+
notify(t("messages.hidScanDetected", { barcode: scannedBarcode }));
|
|
1514
|
+
}
|
|
1515
|
+
});
|
|
1516
|
+
const handleLookupBarcode = async () => {
|
|
1517
|
+
if (!lookupForm.barcode.trim()) return;
|
|
1518
|
+
try {
|
|
1519
|
+
const res = await defaultAdminSdk.admin.lookup({
|
|
1520
|
+
barcode: lookupForm.barcode.trim(),
|
|
1521
|
+
strategy: lookupForm.strategy
|
|
1522
|
+
});
|
|
1523
|
+
setLookupResult(res);
|
|
1524
|
+
notify(res.found ? t("messages.lookupFound", {
|
|
1525
|
+
name: res.product?.name ?? "",
|
|
1526
|
+
provider: res.product?.provider ?? ""
|
|
1527
|
+
}) : t("messages.lookupNotFound", { barcode: res.barcode }), res.found ? "success" : "error");
|
|
1528
|
+
await refreshAll();
|
|
1529
|
+
} catch (err) {
|
|
1530
|
+
notify(err instanceof Error ? err.message : t("messages.lookupError"), "error");
|
|
1531
|
+
}
|
|
1532
|
+
};
|
|
1533
|
+
const handleCreateProductFromBarcode = async () => {
|
|
1534
|
+
if (!lookupForm.barcode.trim()) return;
|
|
1535
|
+
try {
|
|
1536
|
+
const res = await defaultAdminSdk.admin.createFromBarcode({
|
|
1537
|
+
barcode: lookupForm.barcode.trim(),
|
|
1538
|
+
status: lookupForm.status,
|
|
1539
|
+
strategy: lookupForm.strategy,
|
|
1540
|
+
downloadImages: lookupForm.downloadImages
|
|
1541
|
+
});
|
|
1542
|
+
notify(t("messages.productCreated", {
|
|
1543
|
+
productId: String(res.product_id || ""),
|
|
1544
|
+
barcode: lookupForm.barcode
|
|
1545
|
+
}));
|
|
1546
|
+
await refreshAll();
|
|
1547
|
+
} catch (err) {
|
|
1548
|
+
notify(err instanceof Error ? err.message : t("messages.productCreateError"), "error");
|
|
1549
|
+
}
|
|
1550
|
+
};
|
|
1551
|
+
const handleBatchImport = async () => {
|
|
1552
|
+
const lines = lookupForm.batchInput.split(/[\r\n,;]+/).map((s) => s.trim()).filter(Boolean);
|
|
1553
|
+
if (lines.length === 0) return;
|
|
1554
|
+
try {
|
|
1555
|
+
const res = await defaultAdminSdk.admin.batchImport({
|
|
1556
|
+
barcodes: lines,
|
|
1557
|
+
status: lookupForm.status,
|
|
1558
|
+
strategy: lookupForm.strategy,
|
|
1559
|
+
createMissingAsDraft: true
|
|
1560
|
+
});
|
|
1561
|
+
notify(t("messages.batchImportFinished", {
|
|
1562
|
+
imported: String(res.imported_count || 0),
|
|
1563
|
+
notFound: String(res.not_found_count || 0)
|
|
1564
|
+
}));
|
|
1565
|
+
await refreshAll();
|
|
1566
|
+
} catch (err) {
|
|
1567
|
+
notify(err instanceof Error ? err.message : t("messages.batchImportError"), "error");
|
|
1568
|
+
}
|
|
1569
|
+
};
|
|
1570
|
+
const handleBulkGenerateBarcodes = async () => {
|
|
1571
|
+
try {
|
|
1572
|
+
const res = await defaultAdminSdk.admin.bulkGenerate({
|
|
1573
|
+
prefix: "200",
|
|
1574
|
+
overwrite: false
|
|
1575
|
+
});
|
|
1576
|
+
notify(t("messages.bulkGenerated", { count: String(res.generated_count || 0) }));
|
|
1577
|
+
await refreshAll();
|
|
1578
|
+
} catch (err) {
|
|
1579
|
+
notify(err instanceof Error ? err.message : t("messages.bulkGenerateError"), "error");
|
|
1580
|
+
}
|
|
1581
|
+
};
|
|
1582
|
+
const handleCreateTag = async (override) => {
|
|
1583
|
+
const payload = {
|
|
1584
|
+
...tagForm,
|
|
1585
|
+
...override
|
|
1586
|
+
};
|
|
1587
|
+
if (!payload.target_id.trim()) return;
|
|
1588
|
+
try {
|
|
1589
|
+
const res = await defaultAdminSdk.admin.createTag({
|
|
1590
|
+
target_id: payload.target_id.trim(),
|
|
1591
|
+
label: payload.label.trim() || null,
|
|
1592
|
+
symbology: payload.symbology,
|
|
1593
|
+
scan_action: payload.scan_action,
|
|
1594
|
+
gs1_gtin: payload.gs1_gtin.trim() || null,
|
|
1595
|
+
batch_lot: payload.batch_lot.trim() || null,
|
|
1596
|
+
serial_number: payload.serial_number.trim() || null
|
|
1597
|
+
});
|
|
1598
|
+
notify(t("messages.tagCreated", { code: String(res.tag?.code || "") }));
|
|
1599
|
+
await refreshAll();
|
|
1600
|
+
} catch (err) {
|
|
1601
|
+
notify(err instanceof Error ? err.message : t("messages.tagCreateError"), "error");
|
|
1602
|
+
}
|
|
1603
|
+
};
|
|
1604
|
+
const handleDeleteTag = async (id) => {
|
|
1605
|
+
try {
|
|
1606
|
+
await defaultAdminSdk.admin.deleteTag(id);
|
|
1607
|
+
notify(t("messages.tagDeleted"));
|
|
1608
|
+
await refreshAll();
|
|
1609
|
+
} catch (err) {
|
|
1610
|
+
notify(err instanceof Error ? err.message : t("messages.tagDeleteError"), "error");
|
|
1611
|
+
}
|
|
1612
|
+
};
|
|
1613
|
+
const handleRenderLabels = async () => {
|
|
1614
|
+
try {
|
|
1615
|
+
const res = await defaultAdminSdk.admin.printLabels({
|
|
1616
|
+
template_id: printForm.template_id,
|
|
1617
|
+
items: [{
|
|
1618
|
+
barcode: printForm.barcode,
|
|
1619
|
+
title: printForm.title,
|
|
1620
|
+
variant_title: printForm.variant_title || null,
|
|
1621
|
+
sku: printForm.sku || null,
|
|
1622
|
+
brand: printForm.brand || null,
|
|
1623
|
+
price: printForm.price,
|
|
1624
|
+
compare_at_price: printForm.compare_at_price,
|
|
1625
|
+
currency_code: printForm.currency_code,
|
|
1626
|
+
quantity: printForm.quantity
|
|
1627
|
+
}]
|
|
1628
|
+
});
|
|
1629
|
+
setPrintOutput(res);
|
|
1630
|
+
notify(t("messages.labelsRendered", {
|
|
1631
|
+
count: res.total_labels,
|
|
1632
|
+
name: res.template.name
|
|
1633
|
+
}));
|
|
1634
|
+
} catch (err) {
|
|
1635
|
+
notify(err instanceof Error ? err.message : t("messages.labelsRenderError"), "error");
|
|
1636
|
+
}
|
|
1637
|
+
};
|
|
1638
|
+
const handleCreateCountSession = async () => {
|
|
1639
|
+
if (!countForm.name.trim()) return;
|
|
1640
|
+
try {
|
|
1641
|
+
const newSession = (await defaultAdminSdk.admin.createCountSession({
|
|
1642
|
+
name: countForm.name.trim(),
|
|
1643
|
+
location_id: countForm.location_id.trim() || null,
|
|
1644
|
+
notes: countForm.notes.trim() || null,
|
|
1645
|
+
expected_items: countForm.scan_barcode ? [{
|
|
1646
|
+
barcode: countForm.scan_barcode.trim(),
|
|
1647
|
+
title: countForm.scan_title.trim() || t("messages.defaultCatalogItemTitle"),
|
|
1648
|
+
expected_quantity: countForm.expected_quantity
|
|
1649
|
+
}] : []
|
|
1650
|
+
})).session;
|
|
1651
|
+
if (newSession?.id) setSelectedSessionId(newSession.id);
|
|
1652
|
+
notify(t("messages.sessionCreated", { name: countForm.name }));
|
|
1653
|
+
await refreshAll();
|
|
1654
|
+
} catch (err) {
|
|
1655
|
+
notify(err instanceof Error ? err.message : t("messages.sessionCreateError"), "error");
|
|
1656
|
+
}
|
|
1657
|
+
};
|
|
1658
|
+
const handleScanIntoSession = async (delta = 1) => {
|
|
1659
|
+
if (!selectedSessionId || !countForm.scan_barcode.trim()) return;
|
|
1660
|
+
try {
|
|
1661
|
+
await defaultAdminSdk.admin.recordCountScan(selectedSessionId, {
|
|
1662
|
+
barcode: countForm.scan_barcode.trim(),
|
|
1663
|
+
delta,
|
|
1664
|
+
title: countForm.scan_title.trim() || void 0,
|
|
1665
|
+
expected_quantity: countForm.expected_quantity
|
|
1666
|
+
});
|
|
1667
|
+
notify(t("messages.scanRecorded", {
|
|
1668
|
+
delta: delta > 0 ? `+${delta}` : String(delta),
|
|
1669
|
+
barcode: countForm.scan_barcode
|
|
1670
|
+
}));
|
|
1671
|
+
await refreshAll();
|
|
1672
|
+
} catch (err) {
|
|
1673
|
+
notify(err instanceof Error ? err.message : t("messages.scanError"), "error");
|
|
1674
|
+
}
|
|
1675
|
+
};
|
|
1676
|
+
const handleApplyCountSession = async (sessionId) => {
|
|
1677
|
+
try {
|
|
1678
|
+
await defaultAdminSdk.admin.applyCountSession(sessionId, { location_id: countForm.location_id || null });
|
|
1679
|
+
notify(t("messages.sessionApplied"));
|
|
1680
|
+
await refreshAll();
|
|
1681
|
+
} catch (err) {
|
|
1682
|
+
notify(err instanceof Error ? err.message : t("messages.sessionApplyError"), "error");
|
|
1683
|
+
}
|
|
1684
|
+
};
|
|
1685
|
+
const handlePurgeCache = async (clearAll = false) => {
|
|
1686
|
+
try {
|
|
1687
|
+
const res = await defaultAdminSdk.admin.purgeCache(clearAll);
|
|
1688
|
+
notify(t("messages.cachePurged", { count: res.purged_count }));
|
|
1689
|
+
await refreshAll();
|
|
1690
|
+
} catch (err) {
|
|
1691
|
+
notify(err instanceof Error ? err.message : t("messages.cachePurgeError"), "error");
|
|
1692
|
+
}
|
|
1693
|
+
};
|
|
1694
|
+
return {
|
|
1695
|
+
barcodes,
|
|
1696
|
+
overview,
|
|
1697
|
+
tags,
|
|
1698
|
+
templates,
|
|
1699
|
+
sessions,
|
|
1700
|
+
cacheEntries,
|
|
1701
|
+
bannerMessage,
|
|
1702
|
+
bannerTone,
|
|
1703
|
+
isLoading,
|
|
1704
|
+
lastScanned,
|
|
1705
|
+
lookupForm,
|
|
1706
|
+
setLookupForm,
|
|
1707
|
+
lookupResult,
|
|
1708
|
+
tagForm,
|
|
1709
|
+
setTagForm,
|
|
1710
|
+
printForm,
|
|
1711
|
+
setPrintForm,
|
|
1712
|
+
printOutput,
|
|
1713
|
+
countForm,
|
|
1714
|
+
setCountForm,
|
|
1715
|
+
selectedSessionId,
|
|
1716
|
+
setSelectedSessionId,
|
|
1717
|
+
dismissBanner: () => setBannerMessage(null),
|
|
1718
|
+
onRefresh: () => void refreshAll(),
|
|
1719
|
+
handleLookupBarcode,
|
|
1720
|
+
handleCreateProductFromBarcode,
|
|
1721
|
+
handleBatchImport,
|
|
1722
|
+
handleBulkGenerateBarcodes,
|
|
1723
|
+
handleCreateTag,
|
|
1724
|
+
handleDeleteTag,
|
|
1725
|
+
handleRenderLabels,
|
|
1726
|
+
handleCreateCountSession,
|
|
1727
|
+
handleScanIntoSession,
|
|
1728
|
+
handleApplyCountSession,
|
|
1729
|
+
handlePurgeCache
|
|
1730
|
+
};
|
|
1731
|
+
};
|
|
1732
|
+
// src/admin/components/rbac-guard.tsx
|
|
1733
|
+
var CACHE_TTL_MS = 3e4;
|
|
1734
|
+
var cachedResult = null;
|
|
1735
|
+
var inflightPromise = null;
|
|
1736
|
+
function matchRbacPermission(granted, required, isSuperAdmin = false) {
|
|
1737
|
+
if (isSuperAdmin || !required) return true;
|
|
1738
|
+
if (granted.includes("*") || granted.includes("*:*") || granted.includes(required)) return true;
|
|
1739
|
+
const sep = required.includes(".") ? "." : required.includes(":") ? ":" : null;
|
|
1740
|
+
if (sep) {
|
|
1741
|
+
const ns = required.split(sep)[0];
|
|
1742
|
+
if (granted.includes(`${ns}.*`) || granted.includes(`${ns}:*`)) return true;
|
|
1743
|
+
}
|
|
1744
|
+
return false;
|
|
1745
|
+
}
|
|
1746
|
+
async function fetchRbacMe() {
|
|
1747
|
+
if (cachedResult && Date.now() - cachedResult.fetchedAt < CACHE_TTL_MS) return cachedResult;
|
|
1748
|
+
if (inflightPromise) return inflightPromise;
|
|
1749
|
+
inflightPromise = (async () => {
|
|
1750
|
+
try {
|
|
1751
|
+
const res = await fetch("/admin/rbac/me", {
|
|
1752
|
+
credentials: "include",
|
|
1753
|
+
headers: { Accept: "application/json" }
|
|
1754
|
+
});
|
|
1755
|
+
if (res.status === 404) {
|
|
1756
|
+
cachedResult = {
|
|
1757
|
+
rbacActive: false,
|
|
1758
|
+
isSuperAdmin: false,
|
|
1759
|
+
permissions: [],
|
|
1760
|
+
fetchedAt: Date.now()
|
|
1761
|
+
};
|
|
1762
|
+
return cachedResult;
|
|
1763
|
+
}
|
|
1764
|
+
if (!res.ok) {
|
|
1765
|
+
cachedResult = {
|
|
1766
|
+
rbacActive: true,
|
|
1767
|
+
isSuperAdmin: false,
|
|
1768
|
+
permissions: [],
|
|
1769
|
+
fetchedAt: Date.now()
|
|
1770
|
+
};
|
|
1771
|
+
return cachedResult;
|
|
1772
|
+
}
|
|
1773
|
+
const data = await res.json();
|
|
1774
|
+
cachedResult = {
|
|
1775
|
+
rbacActive: true,
|
|
1776
|
+
isSuperAdmin: Boolean(data?.isSuperAdmin),
|
|
1777
|
+
permissions: Array.isArray(data?.permissions) ? data.permissions : [],
|
|
1778
|
+
fetchedAt: Date.now()
|
|
1779
|
+
};
|
|
1780
|
+
return cachedResult;
|
|
1781
|
+
} catch {
|
|
1782
|
+
cachedResult = {
|
|
1783
|
+
rbacActive: false,
|
|
1784
|
+
isSuperAdmin: false,
|
|
1785
|
+
permissions: [],
|
|
1786
|
+
fetchedAt: Date.now()
|
|
1787
|
+
};
|
|
1788
|
+
return cachedResult;
|
|
1789
|
+
} finally {
|
|
1790
|
+
inflightPromise = null;
|
|
1791
|
+
}
|
|
1792
|
+
})();
|
|
1793
|
+
return inflightPromise;
|
|
1794
|
+
}
|
|
1795
|
+
function useRbacAccess() {
|
|
1796
|
+
const [state, setState] = (0, react.useState)(() => cachedResult && Date.now() - cachedResult.fetchedAt < CACHE_TTL_MS ? cachedResult : null);
|
|
1797
|
+
(0, react.useEffect)(() => {
|
|
1798
|
+
let active = true;
|
|
1799
|
+
fetchRbacMe().then((res) => {
|
|
1800
|
+
if (active) setState(res);
|
|
1801
|
+
});
|
|
1802
|
+
return () => {
|
|
1803
|
+
active = false;
|
|
1804
|
+
};
|
|
1805
|
+
}, []);
|
|
1806
|
+
if (!state) return {
|
|
1807
|
+
isLoading: true,
|
|
1808
|
+
rbacActive: false,
|
|
1809
|
+
hasPermission: () => false
|
|
1810
|
+
};
|
|
1811
|
+
return {
|
|
1812
|
+
isLoading: false,
|
|
1813
|
+
rbacActive: state.rbacActive,
|
|
1814
|
+
hasPermission: (permission) => {
|
|
1815
|
+
if (!state.rbacActive || !permission) return true;
|
|
1816
|
+
return matchRbacPermission(state.permissions, permission, state.isSuperAdmin);
|
|
1817
|
+
}
|
|
1818
|
+
};
|
|
1819
|
+
}
|
|
1820
|
+
var RbacGuard = ({ permission, children, hideOnDenied = false }) => {
|
|
1821
|
+
const { isLoading, hasPermission } = useRbacAccess();
|
|
1822
|
+
if (isLoading) return null;
|
|
1823
|
+
if (!hasPermission(permission)) {
|
|
1824
|
+
if (hideOnDenied) return null;
|
|
1825
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_ui.Container, {
|
|
1826
|
+
className: "flex flex-col gap-y-2 p-6",
|
|
1827
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Heading, {
|
|
1828
|
+
level: "h2",
|
|
1829
|
+
children: "Access denied"
|
|
1830
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_ui.Text, {
|
|
1831
|
+
size: "small",
|
|
1832
|
+
className: "text-ui-fg-subtle",
|
|
1833
|
+
children: [
|
|
1834
|
+
"You do not have permission to view this section. (",
|
|
1835
|
+
permission,
|
|
1836
|
+
")"
|
|
1837
|
+
]
|
|
1838
|
+
})]
|
|
1839
|
+
});
|
|
1840
|
+
}
|
|
1841
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_jsx_runtime.Fragment, { children });
|
|
1842
|
+
};
|
|
1843
|
+
// src/admin/routes/barcodes/page.tsx
|
|
1844
|
+
var BarcodesOverviewPage = () => {
|
|
1845
|
+
const { t, i18n } = (0, react_i18next.useTranslation)();
|
|
1846
|
+
const navigate = (0, react_router_dom.useNavigate)();
|
|
1847
|
+
const studio = useBarcodeStudio();
|
|
1848
|
+
const isRtl = (i18n.resolvedLanguage || i18n.language || "").startsWith("ar");
|
|
1849
|
+
const providers = Array.isArray(studio.overview.active_providers) ? studio.overview.active_providers : [];
|
|
1850
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.LayoutComposer, {
|
|
1851
|
+
widgetsZonePrefix: "barcodes.overview",
|
|
1852
|
+
preferredLayoutId: _medusajs_admin_shared.CORE_LAYOUT_IDS.SINGLE_COLUMN,
|
|
1853
|
+
sections: { main: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.LayoutComposer.Entry, {
|
|
1854
|
+
id: "BarcodesOverviewMain",
|
|
1855
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
1856
|
+
className: "flex flex-col gap-y-4",
|
|
1857
|
+
dir: isRtl ? "rtl" : "ltr",
|
|
1858
|
+
children: [
|
|
1859
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
1860
|
+
className: "flex flex-wrap items-center justify-between gap-4",
|
|
1861
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
1862
|
+
className: "flex flex-wrap items-center gap-2",
|
|
1863
|
+
children: [
|
|
1864
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Heading, {
|
|
1865
|
+
className: "font-sans font-medium h1-core",
|
|
1866
|
+
children: t("header.title")
|
|
1867
|
+
}),
|
|
1868
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.StatusBadge, {
|
|
1869
|
+
color: "green",
|
|
1870
|
+
children: t("header.providersBadge")
|
|
1871
|
+
}),
|
|
1872
|
+
studio.lastScanned ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Badge, {
|
|
1873
|
+
color: "blue",
|
|
1874
|
+
children: t("header.lastHidScan", { code: studio.lastScanned })
|
|
1875
|
+
}) : null
|
|
1876
|
+
]
|
|
1877
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Text, {
|
|
1878
|
+
className: "text-ui-fg-subtle mt-1",
|
|
1879
|
+
children: t("header.subtitle")
|
|
1880
|
+
})] }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
1881
|
+
className: "flex items-center gap-2",
|
|
1882
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Button, {
|
|
1883
|
+
variant: "secondary",
|
|
1884
|
+
size: "small",
|
|
1885
|
+
onClick: () => void studio.handleBulkGenerateBarcodes(),
|
|
1886
|
+
children: t("header.bulkGenerateButton")
|
|
1887
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Button, {
|
|
1888
|
+
variant: "secondary",
|
|
1889
|
+
size: "small",
|
|
1890
|
+
onClick: studio.onRefresh,
|
|
1891
|
+
children: t("header.refreshButton")
|
|
1892
|
+
})]
|
|
1893
|
+
})]
|
|
1894
|
+
}),
|
|
1895
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
1896
|
+
className: "grid grid-cols-1 gap-4 md:grid-cols-2 xl:grid-cols-5",
|
|
1897
|
+
children: [
|
|
1898
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(StatCard, {
|
|
1899
|
+
title: t("header.linkedProductsStat"),
|
|
1900
|
+
value: Number(studio.overview.total_barcode_products ?? 0),
|
|
1901
|
+
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_icons.MagnifyingGlass, {}),
|
|
1902
|
+
loading: studio.isLoading,
|
|
1903
|
+
onClick: () => navigate("/barcodes/lookup")
|
|
1904
|
+
}),
|
|
1905
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(StatCard, {
|
|
1906
|
+
title: t("header.dynamicTagsStat"),
|
|
1907
|
+
value: Number(studio.overview.total_barcode_tags ?? 0),
|
|
1908
|
+
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_icons.Tag, {}),
|
|
1909
|
+
loading: studio.isLoading,
|
|
1910
|
+
onClick: () => navigate("/barcodes/tags")
|
|
1911
|
+
}),
|
|
1912
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(StatCard, {
|
|
1913
|
+
title: t("header.totalScansStat"),
|
|
1914
|
+
value: Number(studio.overview.total_tag_scans ?? 0),
|
|
1915
|
+
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_icons.CheckCircle, {}),
|
|
1916
|
+
loading: studio.isLoading,
|
|
1917
|
+
onClick: () => navigate("/barcodes/tags")
|
|
1918
|
+
}),
|
|
1919
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(StatCard, {
|
|
1920
|
+
title: t("header.cachedLookupsStat"),
|
|
1921
|
+
value: `${String(studio.overview.total_cached_lookups ?? 0)} (${String(studio.overview.total_cache_hits ?? 0)})`,
|
|
1922
|
+
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_icons.DocumentText, {}),
|
|
1923
|
+
loading: studio.isLoading,
|
|
1924
|
+
onClick: () => navigate("/barcodes/providers")
|
|
1925
|
+
}),
|
|
1926
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(StatCard, {
|
|
1927
|
+
title: t("header.activeProvidersStat"),
|
|
1928
|
+
value: providers.length,
|
|
1929
|
+
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_icons.BuildingStorefront, {}),
|
|
1930
|
+
loading: studio.isLoading,
|
|
1931
|
+
onClick: () => navigate("/barcodes/providers")
|
|
1932
|
+
})
|
|
1933
|
+
]
|
|
1934
|
+
}),
|
|
1935
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_ui.Container, {
|
|
1936
|
+
className: "p-0 overflow-hidden",
|
|
1937
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
1938
|
+
className: "px-6 py-5 border-b border-ui-border-base",
|
|
1939
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Heading, {
|
|
1940
|
+
level: "h2",
|
|
1941
|
+
children: t("nav.label")
|
|
1942
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Text, {
|
|
1943
|
+
className: "text-ui-fg-subtle mt-1",
|
|
1944
|
+
children: t("header.subtitle")
|
|
1945
|
+
})]
|
|
1946
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
1947
|
+
className: "grid grid-cols-1 md:grid-cols-2",
|
|
1948
|
+
children: [
|
|
1949
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(NavigationCard, {
|
|
1950
|
+
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_icons.MagnifyingGlass, {}),
|
|
1951
|
+
title: t("tabs.lookup", { count: studio.barcodes.length }),
|
|
1952
|
+
description: t("lookupTab.lookupSubtitle"),
|
|
1953
|
+
onClick: () => navigate("/barcodes/lookup"),
|
|
1954
|
+
position: "top-left"
|
|
1955
|
+
}),
|
|
1956
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(NavigationCard, {
|
|
1957
|
+
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_icons.Tag, {}),
|
|
1958
|
+
title: t("tabs.tags", { count: studio.tags.length }),
|
|
1959
|
+
description: t("tagsTab.createTitle"),
|
|
1960
|
+
onClick: () => navigate("/barcodes/tags"),
|
|
1961
|
+
position: "top-right"
|
|
1962
|
+
}),
|
|
1963
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(NavigationCard, {
|
|
1964
|
+
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_icons.DocumentText, {}),
|
|
1965
|
+
title: t("tabs.print"),
|
|
1966
|
+
description: t("printTab.designerTitle"),
|
|
1967
|
+
onClick: () => navigate("/barcodes/print"),
|
|
1968
|
+
position: "middle-left"
|
|
1969
|
+
}),
|
|
1970
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(NavigationCard, {
|
|
1971
|
+
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_icons.Buildings, {}),
|
|
1972
|
+
title: t("tabs.stockTake", { count: studio.sessions.length }),
|
|
1973
|
+
description: t("stockTakeTab.createTitle"),
|
|
1974
|
+
onClick: () => navigate("/barcodes/stock-take"),
|
|
1975
|
+
position: "middle-right"
|
|
1976
|
+
}),
|
|
1977
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(NavigationCard, {
|
|
1978
|
+
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_icons.CheckCircle, {}),
|
|
1979
|
+
title: t("tabs.providers", { count: studio.cacheEntries.length }),
|
|
1980
|
+
description: t("providersTab.providersTitle"),
|
|
1981
|
+
onClick: () => navigate("/barcodes/providers"),
|
|
1982
|
+
position: "bottom-left"
|
|
1983
|
+
})
|
|
1984
|
+
]
|
|
1985
|
+
})]
|
|
1986
|
+
})
|
|
1987
|
+
]
|
|
1988
|
+
})
|
|
1989
|
+
}) }
|
|
1990
|
+
});
|
|
1991
|
+
};
|
|
1992
|
+
var Breadcrumb$5 = () => {
|
|
1993
|
+
const { t } = (0, react_i18next.useTranslation)();
|
|
1994
|
+
return t("nav.label");
|
|
1995
|
+
};
|
|
1996
|
+
var config$5 = (0, _medusajs_admin_sdk.defineRouteConfig)({
|
|
1997
|
+
label: "nav.label",
|
|
1998
|
+
translationNs: "barcodes",
|
|
1999
|
+
icon: _medusajs_icons.Tag
|
|
2000
|
+
});
|
|
2001
|
+
var handle$5 = { breadcrumb: () => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Breadcrumb$5, {}) };
|
|
2002
|
+
var GuardedBarcodesOverviewPage = () => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(RbacGuard, {
|
|
2003
|
+
permission: "barcodes.read",
|
|
2004
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(BarcodesOverviewPage, {})
|
|
2005
|
+
});
|
|
2006
|
+
// src/admin/routes/barcodes/lookup/page.tsx
|
|
2007
|
+
var BarcodeLookupPage = () => {
|
|
2008
|
+
const studio = useBarcodeStudio();
|
|
2009
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Toaster, {}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.LayoutComposer, {
|
|
2010
|
+
widgetsZonePrefix: "barcodes.lookup.details",
|
|
2011
|
+
preferredLayoutId: _medusajs_admin_shared.CORE_LAYOUT_IDS.TWO_COLUMN,
|
|
2012
|
+
sections: {
|
|
2013
|
+
main: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.LayoutComposer.Entry, {
|
|
2014
|
+
id: "BarcodeLookupMainSection",
|
|
2015
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(GtinLookupLookupSection, {
|
|
2016
|
+
form: studio.lookupForm,
|
|
2017
|
+
onFormChange: studio.setLookupForm,
|
|
2018
|
+
lookupResult: studio.lookupResult,
|
|
2019
|
+
onLookup: () => void studio.handleLookupBarcode(),
|
|
2020
|
+
onCreateProduct: () => void studio.handleCreateProductFromBarcode()
|
|
2021
|
+
})
|
|
2022
|
+
}),
|
|
2023
|
+
side: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.LayoutComposer.Entry, {
|
|
2024
|
+
id: "BarcodeLookupBatchSection",
|
|
2025
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(GtinLookupBatchSection, {
|
|
2026
|
+
form: studio.lookupForm,
|
|
2027
|
+
onFormChange: studio.setLookupForm,
|
|
2028
|
+
barcodes: studio.barcodes,
|
|
2029
|
+
onBatchImport: () => void studio.handleBatchImport()
|
|
2030
|
+
})
|
|
2031
|
+
})
|
|
2032
|
+
}
|
|
2033
|
+
})] });
|
|
2034
|
+
};
|
|
2035
|
+
var Breadcrumb$4 = () => {
|
|
2036
|
+
const { t } = (0, react_i18next.useTranslation)();
|
|
2037
|
+
return t("lookupTab.lookupTitle");
|
|
2038
|
+
};
|
|
2039
|
+
var config$4 = (0, _medusajs_admin_sdk.defineRouteConfig)({
|
|
2040
|
+
label: "lookupTab.lookupTitle",
|
|
2041
|
+
translationNs: "barcodes",
|
|
2042
|
+
icon: _medusajs_icons.MagnifyingGlass
|
|
2043
|
+
});
|
|
2044
|
+
var handle$4 = { breadcrumb: () => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Breadcrumb$4, {}) };
|
|
2045
|
+
var GuardedBarcodeLookupPage = () => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(RbacGuard, {
|
|
2046
|
+
permission: "barcodes.read",
|
|
2047
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(BarcodeLookupPage, {})
|
|
2048
|
+
});
|
|
2049
|
+
// src/admin/routes/barcodes/print/page.tsx
|
|
2050
|
+
var BarcodePrintCenterPage = () => {
|
|
2051
|
+
const studio = useBarcodeStudio();
|
|
2052
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Toaster, {}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.LayoutComposer, {
|
|
2053
|
+
widgetsZonePrefix: "barcodes.print.details",
|
|
2054
|
+
preferredLayoutId: _medusajs_admin_shared.CORE_LAYOUT_IDS.TWO_COLUMN,
|
|
2055
|
+
sections: {
|
|
2056
|
+
main: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.LayoutComposer.Entry, {
|
|
2057
|
+
id: "BarcodePrintDesignerSection",
|
|
2058
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(LabelPrintDesignerSection, {
|
|
2059
|
+
form: studio.printForm,
|
|
2060
|
+
onFormChange: studio.setPrintForm,
|
|
2061
|
+
templates: studio.templates,
|
|
2062
|
+
onRenderLabels: () => void studio.handleRenderLabels()
|
|
2063
|
+
})
|
|
2064
|
+
}),
|
|
2065
|
+
side: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.LayoutComposer.Entry, {
|
|
2066
|
+
id: "BarcodePrintOutputSection",
|
|
2067
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(LabelPrintOutputSection, { output: studio.printOutput })
|
|
2068
|
+
})
|
|
2069
|
+
}
|
|
2070
|
+
})] });
|
|
2071
|
+
};
|
|
2072
|
+
var Breadcrumb$3 = () => {
|
|
2073
|
+
const { t } = (0, react_i18next.useTranslation)();
|
|
2074
|
+
return t("tabs.print");
|
|
2075
|
+
};
|
|
2076
|
+
var config$3 = (0, _medusajs_admin_sdk.defineRouteConfig)({
|
|
2077
|
+
label: "tabs.print",
|
|
2078
|
+
translationNs: "barcodes",
|
|
2079
|
+
icon: _medusajs_icons.DocumentText
|
|
2080
|
+
});
|
|
2081
|
+
var handle$3 = { breadcrumb: () => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Breadcrumb$3, {}) };
|
|
2082
|
+
var GuardedBarcodePrintCenterPage = () => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(RbacGuard, {
|
|
2083
|
+
permission: "barcodes.read",
|
|
2084
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(BarcodePrintCenterPage, {})
|
|
2085
|
+
});
|
|
2086
|
+
// src/admin/routes/barcodes/providers/page.tsx
|
|
2087
|
+
var BarcodeProvidersPage = () => {
|
|
2088
|
+
const studio = useBarcodeStudio();
|
|
2089
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Toaster, {}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.LayoutComposer, {
|
|
2090
|
+
widgetsZonePrefix: "barcodes.providers.details",
|
|
2091
|
+
preferredLayoutId: _medusajs_admin_shared.CORE_LAYOUT_IDS.TWO_COLUMN,
|
|
2092
|
+
sections: {
|
|
2093
|
+
main: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.LayoutComposer.Entry, {
|
|
2094
|
+
id: "BarcodeProvidersCacheSection",
|
|
2095
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ProvidersCacheSection, {
|
|
2096
|
+
cacheEntries: studio.cacheEntries,
|
|
2097
|
+
onPurgeExpired: () => void studio.handlePurgeCache(false),
|
|
2098
|
+
onClearAllCache: () => void studio.handlePurgeCache(true)
|
|
2099
|
+
})
|
|
2100
|
+
}),
|
|
2101
|
+
side: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.LayoutComposer.Entry, {
|
|
2102
|
+
id: "BarcodeProvidersRegistrySection",
|
|
2103
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ProvidersRegistrySection, { overview: studio.overview })
|
|
2104
|
+
})
|
|
2105
|
+
}
|
|
2106
|
+
})] });
|
|
2107
|
+
};
|
|
2108
|
+
var Breadcrumb$2 = () => {
|
|
2109
|
+
const { t } = (0, react_i18next.useTranslation)();
|
|
2110
|
+
return t("providersTab.providersTitle");
|
|
2111
|
+
};
|
|
2112
|
+
var config$2 = (0, _medusajs_admin_sdk.defineRouteConfig)({
|
|
2113
|
+
label: "providersTab.providersTitle",
|
|
2114
|
+
translationNs: "barcodes",
|
|
2115
|
+
icon: _medusajs_icons.CheckCircle
|
|
2116
|
+
});
|
|
2117
|
+
var handle$2 = { breadcrumb: () => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Breadcrumb$2, {}) };
|
|
2118
|
+
var GuardedBarcodeProvidersPage = () => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(RbacGuard, {
|
|
2119
|
+
permission: "barcodes.read",
|
|
2120
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(BarcodeProvidersPage, {})
|
|
2121
|
+
});
|
|
2122
|
+
// src/admin/routes/barcodes/stock-take/page.tsx
|
|
2123
|
+
var BarcodeStockTakePage = () => {
|
|
2124
|
+
const studio = useBarcodeStudio();
|
|
2125
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Toaster, {}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.LayoutComposer, {
|
|
2126
|
+
widgetsZonePrefix: "barcodes.stock_take.details",
|
|
2127
|
+
preferredLayoutId: _medusajs_admin_shared.CORE_LAYOUT_IDS.TWO_COLUMN,
|
|
2128
|
+
sections: {
|
|
2129
|
+
main: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.LayoutComposer.Entry, {
|
|
2130
|
+
id: "StockTakeControlsSection",
|
|
2131
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StockTakeControlsSection, {
|
|
2132
|
+
form: studio.countForm,
|
|
2133
|
+
onFormChange: studio.setCountForm,
|
|
2134
|
+
onCreateSession: () => void studio.handleCreateCountSession(),
|
|
2135
|
+
onScanDelta: (delta) => void studio.handleScanIntoSession(delta)
|
|
2136
|
+
})
|
|
2137
|
+
}),
|
|
2138
|
+
side: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.LayoutComposer.Entry, {
|
|
2139
|
+
id: "StockTakeSessionsSection",
|
|
2140
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StockTakeSessionsSection, {
|
|
2141
|
+
sessions: studio.sessions,
|
|
2142
|
+
selectedSessionId: studio.selectedSessionId,
|
|
2143
|
+
onSelectSession: studio.setSelectedSessionId,
|
|
2144
|
+
onApplySession: (id) => void studio.handleApplyCountSession(id)
|
|
2145
|
+
})
|
|
2146
|
+
})
|
|
2147
|
+
}
|
|
2148
|
+
})] });
|
|
2149
|
+
};
|
|
2150
|
+
var Breadcrumb$1 = () => {
|
|
2151
|
+
const { t } = (0, react_i18next.useTranslation)();
|
|
2152
|
+
return t("stockTakeTab.createTitle");
|
|
2153
|
+
};
|
|
2154
|
+
var config$1 = (0, _medusajs_admin_sdk.defineRouteConfig)({
|
|
2155
|
+
label: "stockTakeTab.createTitle",
|
|
2156
|
+
translationNs: "barcodes",
|
|
2157
|
+
icon: _medusajs_icons.Buildings
|
|
2158
|
+
});
|
|
2159
|
+
var handle$1 = { breadcrumb: () => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Breadcrumb$1, {}) };
|
|
2160
|
+
var GuardedBarcodeStockTakePage = () => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(RbacGuard, {
|
|
2161
|
+
permission: "barcodes.read",
|
|
2162
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(BarcodeStockTakePage, {})
|
|
2163
|
+
});
|
|
2164
|
+
// src/admin/routes/barcodes/tags/page.tsx
|
|
2165
|
+
var BarcodeTagsPage = () => {
|
|
2166
|
+
const navigate = (0, react_router_dom.useNavigate)();
|
|
2167
|
+
const studio = useBarcodeStudio();
|
|
2168
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Toaster, {}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.LayoutComposer, {
|
|
2169
|
+
widgetsZonePrefix: "barcodes.tags.list",
|
|
2170
|
+
preferredLayoutId: _medusajs_admin_shared.CORE_LAYOUT_IDS.TWO_COLUMN,
|
|
2171
|
+
sections: {
|
|
2172
|
+
main: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.LayoutComposer.Entry, {
|
|
2173
|
+
id: "BarcodeTagsTableSection",
|
|
2174
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(DynamicQrTagsTableSection, {
|
|
2175
|
+
tags: studio.tags,
|
|
2176
|
+
onDeleteTag: (id) => void studio.handleDeleteTag(id),
|
|
2177
|
+
onOpenCreateDrawer: () => navigate("create")
|
|
2178
|
+
})
|
|
2179
|
+
}),
|
|
2180
|
+
side: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.LayoutComposer.Entry, {
|
|
2181
|
+
id: "BarcodeTagCreateSection",
|
|
2182
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(DynamicQrTagCreateSection, {
|
|
2183
|
+
form: studio.tagForm,
|
|
2184
|
+
onFormChange: studio.setTagForm,
|
|
2185
|
+
onCreateTag: () => void studio.handleCreateTag()
|
|
2186
|
+
})
|
|
2187
|
+
})
|
|
2188
|
+
}
|
|
2189
|
+
})] });
|
|
2190
|
+
};
|
|
2191
|
+
var Breadcrumb = () => {
|
|
2192
|
+
const { t } = (0, react_i18next.useTranslation)();
|
|
2193
|
+
return t("tagsTab.createTitle");
|
|
2194
|
+
};
|
|
2195
|
+
var config = (0, _medusajs_admin_sdk.defineRouteConfig)({
|
|
2196
|
+
label: "tagsTab.createTitle",
|
|
2197
|
+
translationNs: "barcodes",
|
|
2198
|
+
icon: _medusajs_icons.Tag
|
|
2199
|
+
});
|
|
2200
|
+
var handle = { breadcrumb: () => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Breadcrumb, {}) };
|
|
2201
|
+
var GuardedBarcodeTagsPage = () => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(RbacGuard, {
|
|
2202
|
+
permission: "barcodes.read",
|
|
2203
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(BarcodeTagsPage, {})
|
|
2204
|
+
});
|
|
2205
|
+
// src/admin/routes/barcodes/tags/@create/page.tsx
|
|
2206
|
+
var CreateTagDrawerContent = () => {
|
|
2207
|
+
const { t } = (0, react_i18next.useTranslation)();
|
|
2208
|
+
const { handleSuccess } = (0, _medusajs_dashboard_components.useRouteModal)();
|
|
2209
|
+
const studio = useBarcodeStudio();
|
|
2210
|
+
const handleSubmit = async (values) => {
|
|
2211
|
+
try {
|
|
2212
|
+
await studio.handleCreateTag(values);
|
|
2213
|
+
handleSuccess();
|
|
2214
|
+
} catch (err) {
|
|
2215
|
+
_medusajs_ui.toast.error(err instanceof Error ? err.message : t("messages.tagCreateError"));
|
|
2216
|
+
}
|
|
2217
|
+
};
|
|
2218
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(DynamicQrTagDrawerForm, {
|
|
2219
|
+
defaultValues: studio.tagForm,
|
|
2220
|
+
loading: studio.isLoading,
|
|
2221
|
+
onSubmit: handleSubmit
|
|
2222
|
+
});
|
|
2223
|
+
};
|
|
2224
|
+
var BarcodeTagCreateModal = () => {
|
|
2225
|
+
const { t } = (0, react_i18next.useTranslation)();
|
|
2226
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_dashboard_components.RouteDrawer, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.RouteDrawer.Header, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Heading, { children: t("tagsTab.createTitle") }) }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CreateTagDrawerContent, {})] });
|
|
2227
|
+
};
|
|
2228
|
+
var GuardedBarcodeTagCreateModal = () => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(RbacGuard, {
|
|
2229
|
+
permission: "barcodes.write",
|
|
2230
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(BarcodeTagCreateModal, {})
|
|
2231
|
+
});
|
|
2232
|
+
var ar_default = {
|
|
2233
|
+
nav: { "label": "استوديو الباركود والملصقات" },
|
|
2234
|
+
header: {
|
|
2235
|
+
"title": "استوديو الباركود ورموز QR والملصقات الحرارية والجرد",
|
|
2236
|
+
"providersBadge": "GS1 + 10 مزودين نشطين",
|
|
2237
|
+
"lastHidScan": "آخر مسح HID: {{code}}",
|
|
2238
|
+
"subtitle": "إثراء موحد لبيانات المنتجات عبر GTIN/ISBN، وتوليد رموز الباركود 1D/2D ورموز QR الموقعة بـ HMAC، وطباعة ملصقات الأسعار الحرارية/A4 (HTML + Zebra ZPL II)، وجلسات جرد المستودعات.",
|
|
2239
|
+
"languageLabel": "اللغة",
|
|
2240
|
+
"bulkGenerateButton": "تعيين رموز EAN-13 المفقودة للمتغيرات تلقائياً",
|
|
2241
|
+
"refreshButton": "تحديث الاستوديو",
|
|
2242
|
+
"linkedProductsStat": "منتجات GTIN المرتبطة",
|
|
2243
|
+
"dynamicTagsStat": "علامات الباركود/QR الديناميكية",
|
|
2244
|
+
"totalScansStat": "إجمالي عمليات مسح العلامات",
|
|
2245
|
+
"cachedLookupsStat": "عمليات البحث المخزنة مؤقتاً (الإصابات)",
|
|
2246
|
+
"activeProvidersStat": "المزودون النشطون",
|
|
2247
|
+
"dismiss": "إغلاق"
|
|
2248
|
+
},
|
|
2249
|
+
tabs: {
|
|
2250
|
+
"lookup": "1. بحث GTIN والاستيراد الجماعي ({{count}})",
|
|
2251
|
+
"tags": "2. علامات 1D/2D الديناميكية ورموز QR بـ HMAC ({{count}})",
|
|
2252
|
+
"print": "3. مركز طباعة الملصقات الحرارية وأوراق A4",
|
|
2253
|
+
"stockTake": "4. جرد المستودع ({{count}})",
|
|
2254
|
+
"providers": "5. المزودون وذاكرة التخزين المؤقت ({{count}})"
|
|
2255
|
+
},
|
|
2256
|
+
lookupTab: {
|
|
2257
|
+
"lookupTitle": "1. امسح أو أدخل GTIN / EAN-13 / UPC-A / ISBN-13",
|
|
2258
|
+
"lookupSubtitle": "يستعلم من OpenFoodFacts وOpenBeautyFacts وOpenPetFoodFacts وOpenProductsFacts وGoogleBooks وOpenLibrary وBrocade وUPCitemdb وEAN-Search وBarcodeLookup.",
|
|
2259
|
+
"barcodePlaceholder": "مثال: 3017620422003 أو 9780140328721",
|
|
2260
|
+
"strategyFirstHit": "أول تطابق (الأسرع)",
|
|
2261
|
+
"strategyDeepMerge": "دمج عميق (جميع المزودين)",
|
|
2262
|
+
"lookupOnlyButton": "البحث عن البيانات الوصفية فقط",
|
|
2263
|
+
"lookupAndCreateButton": "البحث وإنشاء منتج Medusa ({{status}})",
|
|
2264
|
+
"normalizedFallback": "موحد: {{barcode}}",
|
|
2265
|
+
"matchedVia": "تمت المطابقة عبر {{provider}}",
|
|
2266
|
+
"notFound": "غير موجود",
|
|
2267
|
+
"resultDetails": "الترميز: {{symbology}} | رقم تحقق GS1 صالح: {{valid}} | العلامة التجارية: {{brand}}",
|
|
2268
|
+
"yes": "نعم",
|
|
2269
|
+
"no": "لا",
|
|
2270
|
+
"na": "غير متاح",
|
|
2271
|
+
"batchTitle": "مستورد كتالوج GTIN / ISBN الجماعي",
|
|
2272
|
+
"batchSubtitle": "الصق ما يصل إلى 100 باركود (واحد في كل سطر أو مفصولة بفواصل) للبحث التلقائي وإنشاء منتجات ومتغيرات Medusa في معاملة واحدة.",
|
|
2273
|
+
"batchRunButton": "تشغيل سير عمل الاستيراد الجماعي",
|
|
2274
|
+
"recentlyLinkedTitle": "منتجات الباركود المرتبطة مؤخراً ({{count}})",
|
|
2275
|
+
"noLinkedProducts": "لا توجد منتجات باركود مرتبطة بعد."
|
|
2276
|
+
},
|
|
2277
|
+
tagsTab: {
|
|
2278
|
+
"createTitle": "إنشاء باركود 1D / رمز QR ديناميكي 2D / علامة مكافحة التزييف",
|
|
2279
|
+
"targetIdPlaceholder": "معرف المنتج / المتغير المستهدف",
|
|
2280
|
+
"labelPlaceholder": "تسمية العلامة",
|
|
2281
|
+
"symbologyQr": "رمز QR (2D)",
|
|
2282
|
+
"symbologyDatamatrix": "GS1 DataMatrix (2D)",
|
|
2283
|
+
"symbologyEan13": "EAN-13 (1D GS1)",
|
|
2284
|
+
"symbologyUpca": "UPC-A (1D)",
|
|
2285
|
+
"symbologyCode128": "Code 128B / GS1-128",
|
|
2286
|
+
"symbologyCode39": "Code 39",
|
|
2287
|
+
"actionView": "فتح صفحة المنتج",
|
|
2288
|
+
"actionAddToCart": "إضافة فورية إلى السلة",
|
|
2289
|
+
"actionVerify": "ختم HMAC لمكافحة التزييف",
|
|
2290
|
+
"actionDigitalLink": "رابط GS1 Digital Link URI",
|
|
2291
|
+
"gs1GtinPlaceholder": "GS1 GTIN (01)",
|
|
2292
|
+
"batchLotPlaceholder": "الدفعة / التشغيلة (10)",
|
|
2293
|
+
"serialNumberPlaceholder": "الرقم التسلسلي (21)",
|
|
2294
|
+
"generateButton": "توليد علامة باركود / QR موقعة",
|
|
2295
|
+
"listTitle": "علامات الباركود وQR المولدة ({{count}})",
|
|
2296
|
+
"tagMeta": "الهدف: {{target}} | مرات المسح: {{scans}}",
|
|
2297
|
+
"hmacLabel": "HMAC: {{signature}}...",
|
|
2298
|
+
"deleteButton": "حذف"
|
|
2299
|
+
},
|
|
2300
|
+
printTab: {
|
|
2301
|
+
"designerTitle": "مصمم ملصقات الأسعار والباركود للرول الحراري وأوراق A4",
|
|
2302
|
+
"productTitlePlaceholder": "عنوان المنتج",
|
|
2303
|
+
"variantTitlePlaceholder": "عنوان المتغير",
|
|
2304
|
+
"barcodePlaceholder": "الباركود (EAN-13 / Code128)",
|
|
2305
|
+
"skuPlaceholder": "SKU",
|
|
2306
|
+
"salePricePlaceholder": "سعر البيع",
|
|
2307
|
+
"compareAtPricePlaceholder": "السعر قبل الخصم / السعر المقارن",
|
|
2308
|
+
"currencyPlaceholder": "العملة (USD, EUR, GBP)",
|
|
2309
|
+
"quantityPlaceholder": "كمية الملصقات",
|
|
2310
|
+
"renderButton": "توليد صفحة الطباعة (HTML+SVG) وZebra ZPL II",
|
|
2311
|
+
"outputTitle": "مخرجات الطباعة وأوامر Zebra ZPL II الخام",
|
|
2312
|
+
"labelsReadyBadge": "{{count}} ملصق جاهز ({{name}})",
|
|
2313
|
+
"zplHeading": "أوامر الطباعة الحرارية Zebra ZPL II (^XA ... ^XZ):",
|
|
2314
|
+
"htmlHeading": "المصدر البرمجي لصفحة HTML+SVG الجاهزة للطباعة:",
|
|
2315
|
+
"emptyState": "قم بإعداد قالب الملصق واضغط على \"توليد صفحة الطباعة\" لمعاينة مستند HTML+SVG الجاهز للطباعة وأوامر Zebra ZPL II."
|
|
2316
|
+
},
|
|
2317
|
+
stockTakeTab: {
|
|
2318
|
+
"createTitle": "إنشاء جلسة جرد أو المسح داخلها",
|
|
2319
|
+
"sessionNamePlaceholder": "اسم الجلسة",
|
|
2320
|
+
"locationIdPlaceholder": "معرف موقع المخزون",
|
|
2321
|
+
"startSessionButton": "بدء جلسة جرد جديدة",
|
|
2322
|
+
"scannerTitle": "عداد المسح السريع للباركود",
|
|
2323
|
+
"scannedBarcodePlaceholder": "الباركود الممسوح",
|
|
2324
|
+
"itemTitlePlaceholder": "عنوان الصنف",
|
|
2325
|
+
"scanPlusOneButton": "مسح +1 للعد",
|
|
2326
|
+
"adjustMinusOneButton": "تعديل -1 للعد",
|
|
2327
|
+
"sessionsTitle": "جلسات الجرد وتسوية الفروقات ({{count}})",
|
|
2328
|
+
"sessionSummary": "المتوقع: {{expected}} | المعدود: {{counted}} | الفرق: {{variance}}",
|
|
2329
|
+
"completeApplyButton": "إكمال وتطبيق على المخزون",
|
|
2330
|
+
"completedBadge": "مكتمل",
|
|
2331
|
+
"expectedShort": "المتوقع: {{expected}}",
|
|
2332
|
+
"countedShort": "المعدود:",
|
|
2333
|
+
"varianceShort": "(الفرق: {{variance}})"
|
|
2334
|
+
},
|
|
2335
|
+
providersTab: {
|
|
2336
|
+
"providersTitle": "مزودو بحث GTIN / ISBN المسجلون",
|
|
2337
|
+
"cacheTitle": "ذاكرة التخزين المؤقت لعمليات بحث الباركود ({{count}})",
|
|
2338
|
+
"purgeExpiredButton": "تطهير المنتهي الصلاحية",
|
|
2339
|
+
"clearAllButton": "مسح كل ذاكرة التخزين المؤقت",
|
|
2340
|
+
"hitsBadge": "الإصابات: {{count}}"
|
|
2341
|
+
},
|
|
2342
|
+
widget: {
|
|
2343
|
+
"title": "الباركود ورموز QR الديناميكية والملصقات الحرارية",
|
|
2344
|
+
"defaultProductTitle": "منتج",
|
|
2345
|
+
"subtitle": "{{productTitle}} — {{tagsCount}} علامة نشطة، {{barcodesCount}} سجل GTIN مرتبط",
|
|
2346
|
+
"generateButton": "توليد GS1 EAN-13 وQR",
|
|
2347
|
+
"printButton": "طباعة ملصق السعر/الباركود",
|
|
2348
|
+
"codeLabel": "الرمز:",
|
|
2349
|
+
"actionLabel": "الإجراء:",
|
|
2350
|
+
"scansLabel": "مرات المسح:",
|
|
2351
|
+
"zplOutputLabel": "مخرجات Zebra ZPL II ({{name}}):"
|
|
2352
|
+
},
|
|
2353
|
+
messages: {
|
|
2354
|
+
"loadStudioError": "فشل تحميل استوديو الباركود",
|
|
2355
|
+
"hidScanDetected": "اكتشف ماسح HID الباركود: {{barcode}}",
|
|
2356
|
+
"lookupFound": "تم العثور على \"{{name}}\" عبر {{provider}}",
|
|
2357
|
+
"lookupNotFound": "لم يتم العثور على تطابق لدى المزودين للباركود {{barcode}}",
|
|
2358
|
+
"lookupError": "فشل البحث",
|
|
2359
|
+
"productCreated": "تم إنشاء منتج Medusa ({{productId}}) من الباركود {{barcode}}",
|
|
2360
|
+
"productCreateError": "فشل إنشاء المنتج",
|
|
2361
|
+
"batchImportFinished": "اكتمل الاستيراد الجماعي: تم استيراد {{imported}}، ولم يتم العثور على {{notFound}}.",
|
|
2362
|
+
"batchImportError": "فشل الاستيراد الجماعي",
|
|
2363
|
+
"bulkGenerated": "تم توليد {{count}} باركود متغير داخلي بصيغة GS1 EAN-13.",
|
|
2364
|
+
"bulkGenerateError": "فشل التوليد الجماعي للباركود",
|
|
2365
|
+
"tagCreated": "تم إنشاء BarcodeTag {{code}}",
|
|
2366
|
+
"tagCreateError": "فشل إنشاء العلامة",
|
|
2367
|
+
"tagDeleted": "تم حذف علامة الباركود",
|
|
2368
|
+
"tagDeleteError": "فشل حذف العلامة",
|
|
2369
|
+
"labelsRendered": "تم تجهيز {{count}} ملصق لـ {{name}} (HTML + ZPL II جاهز)",
|
|
2370
|
+
"labelsRenderError": "فشل تجهيز الملصقات",
|
|
2371
|
+
"defaultCatalogItemTitle": "صنف كتالوج",
|
|
2372
|
+
"sessionCreated": "تم إنشاء جلسة الجرد \"{{name}}\"",
|
|
2373
|
+
"sessionCreateError": "فشل إنشاء جلسة الجرد",
|
|
2374
|
+
"scanRecorded": "تم تسجيل المسح ({{delta}}) للباركود {{barcode}}",
|
|
2375
|
+
"scanError": "فشل المسح",
|
|
2376
|
+
"sessionApplied": "تم إكمال جلسة الجرد وتطبيق فروقات المخزون",
|
|
2377
|
+
"sessionApplyError": "فشل تطبيق جلسة الجرد",
|
|
2378
|
+
"cachePurged": "تم تطهير {{count}} إدخال من ذاكرة التخزين المؤقت للباركود",
|
|
2379
|
+
"cachePurgeError": "فشل تطهير ذاكرة التخزين المؤقت",
|
|
2380
|
+
"widgetBarcodeGenerated": "تم توليد باركود GS1 EAN-13 ({{code}}) لـ \"{{title}}\".",
|
|
2381
|
+
"widgetBarcodeError": "فشل توليد الباركود",
|
|
2382
|
+
"defaultProductLabelTitle": "ملصق المنتج",
|
|
2383
|
+
"widgetLabelPrepared": "تم تجهيز ملصق حراري 50×25 ملم وZPL II للرمز {{code}}.",
|
|
2384
|
+
"widgetLabelError": "فشل تجهيز ملصق المنتج"
|
|
2385
|
+
}
|
|
2386
|
+
};
|
|
2387
|
+
var de_default = {
|
|
2388
|
+
nav: { "label": "Barcode- & Etiketten-Studio" },
|
|
2389
|
+
header: {
|
|
2390
|
+
"title": "Barcode-, QR-, Thermoetiketten- & Inventur-Studio",
|
|
2391
|
+
"providersBadge": "GS1 + 10 Anbieter Aktiv",
|
|
2392
|
+
"lastHidScan": "Letzter HID-Scan: {{code}}",
|
|
2393
|
+
"subtitle": "Einheitliche GTIN/ISBN-Produktanreicherung, 1D/2D-Barcode- & HMAC-QR-Generierung, Thermo-/A4-Preisetikettendruck (HTML + Zebra ZPL II) und Lagerinventur-Sitzungen.",
|
|
2394
|
+
"languageLabel": "Sprache",
|
|
2395
|
+
"bulkGenerateButton": "Fehlende Varianten-EAN-13 Automatisch Zuweisen",
|
|
2396
|
+
"refreshButton": "Studio Aktualisieren",
|
|
2397
|
+
"linkedProductsStat": "Verknüpfte GTIN-Produkte",
|
|
2398
|
+
"dynamicTagsStat": "Dynamische Barcode-/QR-Tags",
|
|
2399
|
+
"totalScansStat": "Gesamte Tag-Scans",
|
|
2400
|
+
"cachedLookupsStat": "Zwischengespeicherte Abfragen (Treffer)",
|
|
2401
|
+
"activeProvidersStat": "Aktive Anbieter",
|
|
2402
|
+
"dismiss": "Schließen"
|
|
2403
|
+
},
|
|
2404
|
+
tabs: {
|
|
2405
|
+
"lookup": "1. GTIN-Suche & Stapelimport ({{count}})",
|
|
2406
|
+
"tags": "2. Dynamische 1D/2D- & HMAC-QR-Tags ({{count}})",
|
|
2407
|
+
"print": "3. Thermo- & Bogenetiketten-Druckzentrum",
|
|
2408
|
+
"stockTake": "4. Lagerinventur ({{count}})",
|
|
2409
|
+
"providers": "5. Anbieter & Cache ({{count}})"
|
|
2410
|
+
},
|
|
2411
|
+
lookupTab: {
|
|
2412
|
+
"lookupTitle": "1. GTIN / EAN-13 / UPC-A / ISBN-13 Scannen oder Eingeben",
|
|
2413
|
+
"lookupSubtitle": "Fragt OpenFoodFacts, OpenBeautyFacts, OpenPetFoodFacts, OpenProductsFacts, GoogleBooks, OpenLibrary, Brocade, UPCitemdb, EAN-Search & BarcodeLookup ab.",
|
|
2414
|
+
"barcodePlaceholder": "z. B. 3017620422003 oder 9780140328721",
|
|
2415
|
+
"strategyFirstHit": "Erster Treffer (Schnellste)",
|
|
2416
|
+
"strategyDeepMerge": "Deep-Merge (Alle Anbieter)",
|
|
2417
|
+
"lookupOnlyButton": "Nur Metadaten Abfragen",
|
|
2418
|
+
"lookupAndCreateButton": "Abfragen & Medusa-Produkt Erstellen ({{status}})",
|
|
2419
|
+
"normalizedFallback": "Normalisiert: {{barcode}}",
|
|
2420
|
+
"matchedVia": "Treffer über {{provider}}",
|
|
2421
|
+
"notFound": "Nicht Gefunden",
|
|
2422
|
+
"resultDetails": "Symbologie: {{symbology}} | Gültige GS1-Prüfziffer: {{valid}} | Marke: {{brand}}",
|
|
2423
|
+
"yes": "Ja",
|
|
2424
|
+
"no": "Nein",
|
|
2425
|
+
"na": "k. A.",
|
|
2426
|
+
"batchTitle": "GTIN- / ISBN-Katalog-Stapelimport",
|
|
2427
|
+
"batchSubtitle": "Fügen Sie bis zu 100 Barcodes ein (einen pro Zeile oder kommagetrennt), um Medusa-Produkte und -Varianten automatisch in einer Transaktion abzufragen und zu erstellen.",
|
|
2428
|
+
"batchRunButton": "Stapelimport-Workflow Ausführen",
|
|
2429
|
+
"recentlyLinkedTitle": "Kürzlich Verknüpfte Barcode-Produkte ({{count}})",
|
|
2430
|
+
"noLinkedProducts": "Noch keine Barcode-Produkte verknüpft."
|
|
2431
|
+
},
|
|
2432
|
+
tagsTab: {
|
|
2433
|
+
"createTitle": "1D-Barcode / 2D-Dynamischen QR / Fälschungsschutz-Tag Erstellen",
|
|
2434
|
+
"targetIdPlaceholder": "Ziel-Produkt- / Varianten-ID",
|
|
2435
|
+
"labelPlaceholder": "Tag-Bezeichnung",
|
|
2436
|
+
"symbologyQr": "QR-Code (2D)",
|
|
2437
|
+
"symbologyDatamatrix": "GS1 DataMatrix (2D)",
|
|
2438
|
+
"symbologyEan13": "EAN-13 (1D GS1)",
|
|
2439
|
+
"symbologyUpca": "UPC-A (1D)",
|
|
2440
|
+
"symbologyCode128": "Code 128B / GS1-128",
|
|
2441
|
+
"symbologyCode39": "Code 39",
|
|
2442
|
+
"actionView": "Produktseite Öffnen",
|
|
2443
|
+
"actionAddToCart": "Sofort in den Warenkorb",
|
|
2444
|
+
"actionVerify": "HMAC-Fälschungsschutzsiegel",
|
|
2445
|
+
"actionDigitalLink": "GS1 Digital Link URI",
|
|
2446
|
+
"gs1GtinPlaceholder": "GS1 GTIN (01)",
|
|
2447
|
+
"batchLotPlaceholder": "Charge / Los (10)",
|
|
2448
|
+
"serialNumberPlaceholder": "Seriennummer (21)",
|
|
2449
|
+
"generateButton": "Signierten Barcode- / QR-Tag Generieren",
|
|
2450
|
+
"listTitle": "Generierte Barcode- & QR-Tags ({{count}})",
|
|
2451
|
+
"tagMeta": "Ziel: {{target}} | Scans: {{scans}}",
|
|
2452
|
+
"hmacLabel": "HMAC: {{signature}}...",
|
|
2453
|
+
"deleteButton": "Löschen"
|
|
2454
|
+
},
|
|
2455
|
+
printTab: {
|
|
2456
|
+
"designerTitle": "Thermo-Rollen- & A4-Bogen-Preis-/Barcode-Etikettendesigner",
|
|
2457
|
+
"productTitlePlaceholder": "Produkttitel",
|
|
2458
|
+
"variantTitlePlaceholder": "Variantentitel",
|
|
2459
|
+
"barcodePlaceholder": "Barcode (EAN-13 / Code128)",
|
|
2460
|
+
"skuPlaceholder": "SKU",
|
|
2461
|
+
"salePricePlaceholder": "Verkaufspreis",
|
|
2462
|
+
"compareAtPricePlaceholder": "Vergleichspreis / UVP",
|
|
2463
|
+
"currencyPlaceholder": "Währung (USD, EUR, GBP)",
|
|
2464
|
+
"quantityPlaceholder": "Etikettenanzahl",
|
|
2465
|
+
"renderButton": "Druckbogen (HTML+SVG) & Zebra ZPL II Generieren",
|
|
2466
|
+
"outputTitle": "Druckausgabe & Rohes Zebra ZPL II",
|
|
2467
|
+
"labelsReadyBadge": "{{count}} Etikett(en) Bereit ({{name}})",
|
|
2468
|
+
"zplHeading": "Thermobefehle Zebra ZPL II (^XA ... ^XZ):",
|
|
2469
|
+
"htmlHeading": "Druckfertiger HTML+SVG-Quellcode:",
|
|
2470
|
+
"emptyState": "Konfigurieren Sie Ihre Etikettenvorlage und klicken Sie auf „Druckbogen Generieren“, um druckfertiges HTML+SVG und Zebra ZPL II-Befehle anzuzeigen."
|
|
2471
|
+
},
|
|
2472
|
+
stockTakeTab: {
|
|
2473
|
+
"createTitle": "Inventursitzung Erstellen oder Scannen",
|
|
2474
|
+
"sessionNamePlaceholder": "Sitzungsname",
|
|
2475
|
+
"locationIdPlaceholder": "Lagerort-ID",
|
|
2476
|
+
"startSessionButton": "Neue Inventursitzung Starten",
|
|
2477
|
+
"scannerTitle": "Schneller Barcode-Scan-Zähler",
|
|
2478
|
+
"scannedBarcodePlaceholder": "Gescannter Barcode",
|
|
2479
|
+
"itemTitlePlaceholder": "Artikeltitel",
|
|
2480
|
+
"scanPlusOneButton": "Scan +1 Zählen",
|
|
2481
|
+
"adjustMinusOneButton": "Korrektur -1 Zählen",
|
|
2482
|
+
"sessionsTitle": "Inventursitzungen & Differenzabgleich ({{count}})",
|
|
2483
|
+
"sessionSummary": "Soll: {{expected}} | Ist: {{counted}} | Differenz: {{variance}}",
|
|
2484
|
+
"completeApplyButton": "Abschließen & auf Bestand Anwenden",
|
|
2485
|
+
"completedBadge": "Abgeschlossen",
|
|
2486
|
+
"expectedShort": "Soll: {{expected}}",
|
|
2487
|
+
"countedShort": "Ist:",
|
|
2488
|
+
"varianceShort": "(Diff: {{variance}})"
|
|
2489
|
+
},
|
|
2490
|
+
providersTab: {
|
|
2491
|
+
"providersTitle": "Registrierte GTIN- / ISBN-Suchanbieter",
|
|
2492
|
+
"cacheTitle": "Barcode-Such-Cache ({{count}})",
|
|
2493
|
+
"purgeExpiredButton": "Abgelaufene Bereinigen",
|
|
2494
|
+
"clearAllButton": "Gesamten Cache Leeren",
|
|
2495
|
+
"hitsBadge": "Treffer: {{count}}"
|
|
2496
|
+
},
|
|
2497
|
+
widget: {
|
|
2498
|
+
"title": "Barcodes, Dynamischer QR & Thermoetiketten",
|
|
2499
|
+
"defaultProductTitle": "Produkt",
|
|
2500
|
+
"subtitle": "{{productTitle}} — {{tagsCount}} aktive(s) Tag(s), {{barcodesCount}} verknüpfte(r) GTIN-Eintrag/-Einträge",
|
|
2501
|
+
"generateButton": "GS1 EAN-13 & QR Generieren",
|
|
2502
|
+
"printButton": "Preis-/Barcode-Etikett Drucken",
|
|
2503
|
+
"codeLabel": "Code:",
|
|
2504
|
+
"actionLabel": "Aktion:",
|
|
2505
|
+
"scansLabel": "Scans:",
|
|
2506
|
+
"zplOutputLabel": "Zebra ZPL II-Ausgabe ({{name}}):"
|
|
2507
|
+
},
|
|
2508
|
+
messages: {
|
|
2509
|
+
"loadStudioError": "Barcode-Studio konnte nicht geladen werden",
|
|
2510
|
+
"hidScanDetected": "HID-Scanner hat Barcode erkannt: {{barcode}}",
|
|
2511
|
+
"lookupFound": "„{{name}}“ über {{provider}} gefunden",
|
|
2512
|
+
"lookupNotFound": "Kein Anbieter-Treffer für {{barcode}} gefunden",
|
|
2513
|
+
"lookupError": "Suche fehlgeschlagen",
|
|
2514
|
+
"productCreated": "Medusa-Produkt ({{productId}}) aus Barcode {{barcode}} erstellt",
|
|
2515
|
+
"productCreateError": "Produkterstellung fehlgeschlagen",
|
|
2516
|
+
"batchImportFinished": "Stapelimport abgeschlossen: {{imported}} importiert, {{notFound}} nicht gefunden.",
|
|
2517
|
+
"batchImportError": "Stapelimport fehlgeschlagen",
|
|
2518
|
+
"bulkGenerated": "{{count}} interne GS1 EAN-13 Varianten-Barcodes generiert.",
|
|
2519
|
+
"bulkGenerateError": "Massengenerierung von Barcodes fehlgeschlagen",
|
|
2520
|
+
"tagCreated": "BarcodeTag {{code}} erstellt",
|
|
2521
|
+
"tagCreateError": "Tag konnte nicht erstellt werden",
|
|
2522
|
+
"tagDeleted": "Barcode-Tag gelöscht",
|
|
2523
|
+
"tagDeleteError": "Tag konnte nicht gelöscht werden",
|
|
2524
|
+
"labelsRendered": "{{count}} Etikett(en) für {{name}} gerendert (HTML + ZPL II bereit)",
|
|
2525
|
+
"labelsRenderError": "Etiketten konnten nicht gerendert werden",
|
|
2526
|
+
"defaultCatalogItemTitle": "Katalogartikel",
|
|
2527
|
+
"sessionCreated": "Inventursitzung „{{name}}“ erstellt",
|
|
2528
|
+
"sessionCreateError": "Inventursitzung konnte nicht erstellt werden",
|
|
2529
|
+
"scanRecorded": "Scan ({{delta}}) für {{barcode}} erfasst",
|
|
2530
|
+
"scanError": "Scan fehlgeschlagen",
|
|
2531
|
+
"sessionApplied": "Inventursitzung abgeschlossen und Bestandsdifferenzen angewendet",
|
|
2532
|
+
"sessionApplyError": "Inventursitzung konnte nicht angewendet werden",
|
|
2533
|
+
"cachePurged": "{{count}} zwischengespeicherte(r) Barcode-Eintrag/-Einträge bereinigt",
|
|
2534
|
+
"cachePurgeError": "Cache-Bereinigung fehlgeschlagen",
|
|
2535
|
+
"widgetBarcodeGenerated": "GS1 EAN-13 Barcode ({{code}}) für „{{title}}“ generiert.",
|
|
2536
|
+
"widgetBarcodeError": "Barcode konnte nicht generiert werden",
|
|
2537
|
+
"defaultProductLabelTitle": "Produktetikett",
|
|
2538
|
+
"widgetLabelPrepared": "50×25mm Thermoetikett & ZPL II für {{code}} vorbereitet.",
|
|
2539
|
+
"widgetLabelError": "Produktetikett konnte nicht gerendert werden"
|
|
2540
|
+
}
|
|
2541
|
+
};
|
|
2542
|
+
var en_default = {
|
|
2543
|
+
nav: { "label": "Barcode & Label Studio" },
|
|
2544
|
+
header: {
|
|
2545
|
+
"title": "Barcode, QR, Thermal Label & Inventory Studio",
|
|
2546
|
+
"providersBadge": "GS1 + 10 Providers Active",
|
|
2547
|
+
"lastHidScan": "Last HID Scan: {{code}}",
|
|
2548
|
+
"subtitle": "Unified GTIN/ISBN product enrichment, 1D/2D barcode & HMAC QR generation, thermal/A4 price label printing (HTML + Zebra ZPL II), and warehouse stock-take sessions.",
|
|
2549
|
+
"languageLabel": "Language",
|
|
2550
|
+
"bulkGenerateButton": "Auto-Assign Missing Variant EAN-13s",
|
|
2551
|
+
"refreshButton": "Refresh Studio",
|
|
2552
|
+
"linkedProductsStat": "Linked GTIN Products",
|
|
2553
|
+
"dynamicTagsStat": "Dynamic Barcode/QR Tags",
|
|
2554
|
+
"totalScansStat": "Total Tag Scans",
|
|
2555
|
+
"cachedLookupsStat": "Cached Lookups (Hits)",
|
|
2556
|
+
"activeProvidersStat": "Active Providers",
|
|
2557
|
+
"dismiss": "Dismiss"
|
|
2558
|
+
},
|
|
2559
|
+
tabs: {
|
|
2560
|
+
"lookup": "1. GTIN Lookup & Batch Importer ({{count}})",
|
|
2561
|
+
"tags": "2. Dynamic 1D/2D & HMAC QR Tags ({{count}})",
|
|
2562
|
+
"print": "3. Thermal & Sheet Label Print Center",
|
|
2563
|
+
"stockTake": "4. Warehouse Stock-Take ({{count}})",
|
|
2564
|
+
"providers": "5. Providers & Cache ({{count}})"
|
|
2565
|
+
},
|
|
2566
|
+
lookupTab: {
|
|
2567
|
+
"lookupTitle": "1. Scan or Enter GTIN / EAN-13 / UPC-A / ISBN-13",
|
|
2568
|
+
"lookupSubtitle": "Queries OpenFoodFacts, OpenBeautyFacts, OpenPetFoodFacts, OpenProductsFacts, GoogleBooks, OpenLibrary, Brocade, UPCitemdb, EAN-Search & BarcodeLookup.",
|
|
2569
|
+
"barcodePlaceholder": "e.g. 3017620422003 or 9780140328721",
|
|
2570
|
+
"strategyFirstHit": "First-Hit (Fastest)",
|
|
2571
|
+
"strategyDeepMerge": "Deep-Merge (All Providers)",
|
|
2572
|
+
"lookupOnlyButton": "Lookup Metadata Only",
|
|
2573
|
+
"lookupAndCreateButton": "Lookup & Create Medusa Product ({{status}})",
|
|
2574
|
+
"normalizedFallback": "Normalized: {{barcode}}",
|
|
2575
|
+
"matchedVia": "Matched via {{provider}}",
|
|
2576
|
+
"notFound": "Not Found",
|
|
2577
|
+
"resultDetails": "Symbology: {{symbology}} | Valid GS1 Check Digit: {{valid}} | Brand: {{brand}}",
|
|
2578
|
+
"yes": "Yes",
|
|
2579
|
+
"no": "No",
|
|
2580
|
+
"na": "N/A",
|
|
2581
|
+
"batchTitle": "Batch GTIN / ISBN Catalog Importer",
|
|
2582
|
+
"batchSubtitle": "Paste up to 100 barcodes (one per line or comma-separated) to auto-lookup and create Medusa products + variants in a transaction.",
|
|
2583
|
+
"batchRunButton": "Run Batch Import Workflow",
|
|
2584
|
+
"recentlyLinkedTitle": "Recently Linked Barcode Products ({{count}})",
|
|
2585
|
+
"noLinkedProducts": "No barcode products linked yet."
|
|
2586
|
+
},
|
|
2587
|
+
tagsTab: {
|
|
2588
|
+
"createTitle": "Create 1D Barcode / 2D Dynamic QR / Anti-Counterfeit Tag",
|
|
2589
|
+
"targetIdPlaceholder": "Target Product / Variant ID",
|
|
2590
|
+
"labelPlaceholder": "Tag Label",
|
|
2591
|
+
"symbologyQr": "QR Code (2D)",
|
|
2592
|
+
"symbologyDatamatrix": "GS1 DataMatrix (2D)",
|
|
2593
|
+
"symbologyEan13": "EAN-13 (1D GS1)",
|
|
2594
|
+
"symbologyUpca": "UPC-A (1D)",
|
|
2595
|
+
"symbologyCode128": "Code 128B / GS1-128",
|
|
2596
|
+
"symbologyCode39": "Code 39",
|
|
2597
|
+
"actionView": "Open Product Page",
|
|
2598
|
+
"actionAddToCart": "Instant Add to Cart",
|
|
2599
|
+
"actionVerify": "Anti-Counterfeit HMAC Seal",
|
|
2600
|
+
"actionDigitalLink": "GS1 Digital Link URI",
|
|
2601
|
+
"gs1GtinPlaceholder": "GS1 GTIN (01)",
|
|
2602
|
+
"batchLotPlaceholder": "Batch / Lot (10)",
|
|
2603
|
+
"serialNumberPlaceholder": "Serial Number (21)",
|
|
2604
|
+
"generateButton": "Generate Signed Barcode / QR Tag",
|
|
2605
|
+
"listTitle": "Generated Barcode & QR Tags ({{count}})",
|
|
2606
|
+
"tagMeta": "Target: {{target}} | Scans: {{scans}}",
|
|
2607
|
+
"hmacLabel": "HMAC: {{signature}}...",
|
|
2608
|
+
"deleteButton": "Delete"
|
|
2609
|
+
},
|
|
2610
|
+
printTab: {
|
|
2611
|
+
"designerTitle": "Thermal Roll & A4 Sheet Price/Barcode Label Designer",
|
|
2612
|
+
"productTitlePlaceholder": "Product Title",
|
|
2613
|
+
"variantTitlePlaceholder": "Variant Title",
|
|
2614
|
+
"barcodePlaceholder": "Barcode (EAN-13 / Code128)",
|
|
2615
|
+
"skuPlaceholder": "SKU",
|
|
2616
|
+
"salePricePlaceholder": "Sale Price",
|
|
2617
|
+
"compareAtPricePlaceholder": "Compare-At / MRP Price",
|
|
2618
|
+
"currencyPlaceholder": "Currency (USD, EUR, GBP)",
|
|
2619
|
+
"quantityPlaceholder": "Label Quantity",
|
|
2620
|
+
"renderButton": "Generate Print Sheet (HTML+SVG) & Zebra ZPL II",
|
|
2621
|
+
"outputTitle": "Print Output & Raw Zebra ZPL II",
|
|
2622
|
+
"labelsReadyBadge": "{{count}} Label(s) Ready ({{name}})",
|
|
2623
|
+
"zplHeading": "Zebra ZPL II Thermal Commands (^XA ... ^XZ):",
|
|
2624
|
+
"htmlHeading": "Print-Ready HTML+SVG Document Source:",
|
|
2625
|
+
"emptyState": "Configure your label preset and click \"Generate Print Sheet\" to preview print-ready HTML+SVG and Zebra ZPL II commands."
|
|
2626
|
+
},
|
|
2627
|
+
stockTakeTab: {
|
|
2628
|
+
"createTitle": "Create or Scan Into Stock-Take Session",
|
|
2629
|
+
"sessionNamePlaceholder": "Session Name",
|
|
2630
|
+
"locationIdPlaceholder": "Stock Location ID",
|
|
2631
|
+
"startSessionButton": "Start New Stock-Take Session",
|
|
2632
|
+
"scannerTitle": "Rapid Barcode Scan Counter",
|
|
2633
|
+
"scannedBarcodePlaceholder": "Scanned Barcode",
|
|
2634
|
+
"itemTitlePlaceholder": "Item Title",
|
|
2635
|
+
"scanPlusOneButton": "Scan +1 Count",
|
|
2636
|
+
"adjustMinusOneButton": "Adjust -1 Count",
|
|
2637
|
+
"sessionsTitle": "Stock-Take Sessions & Variance Reconciliation ({{count}})",
|
|
2638
|
+
"sessionSummary": "Expected: {{expected}} | Counted: {{counted}} | Variance: {{variance}}",
|
|
2639
|
+
"completeApplyButton": "Complete & Apply to Inventory",
|
|
2640
|
+
"completedBadge": "Completed",
|
|
2641
|
+
"expectedShort": "Exp: {{expected}}",
|
|
2642
|
+
"countedShort": "Counted:",
|
|
2643
|
+
"varianceShort": "(Var: {{variance}})"
|
|
2644
|
+
},
|
|
2645
|
+
providersTab: {
|
|
2646
|
+
"providersTitle": "Registered GTIN / ISBN Lookup Providers",
|
|
2647
|
+
"cacheTitle": "Barcode Lookup Cache ({{count}})",
|
|
2648
|
+
"purgeExpiredButton": "Purge Expired",
|
|
2649
|
+
"clearAllButton": "Clear All Cache",
|
|
2650
|
+
"hitsBadge": "Hits: {{count}}"
|
|
2651
|
+
},
|
|
2652
|
+
widget: {
|
|
2653
|
+
"title": "Barcodes, Dynamic QR & Thermal Labels",
|
|
2654
|
+
"defaultProductTitle": "Product",
|
|
2655
|
+
"subtitle": "{{productTitle}} — {{tagsCount}} active tag(s), {{barcodesCount}} linked GTIN record(s)",
|
|
2656
|
+
"generateButton": "Generate GS1 EAN-13 & QR",
|
|
2657
|
+
"printButton": "Print Price/Barcode Label",
|
|
2658
|
+
"codeLabel": "Code:",
|
|
2659
|
+
"actionLabel": "Action:",
|
|
2660
|
+
"scansLabel": "Scans:",
|
|
2661
|
+
"zplOutputLabel": "Zebra ZPL II Output ({{name}}):"
|
|
2662
|
+
},
|
|
2663
|
+
messages: {
|
|
2664
|
+
"loadStudioError": "Failed to load Barcode Studio",
|
|
2665
|
+
"hidScanDetected": "HID Scanner detected barcode: {{barcode}}",
|
|
2666
|
+
"lookupFound": "Found \"{{name}}\" via {{provider}}",
|
|
2667
|
+
"lookupNotFound": "No provider match found for {{barcode}}",
|
|
2668
|
+
"lookupError": "Lookup failed",
|
|
2669
|
+
"productCreated": "Created Medusa product ({{productId}}) from barcode {{barcode}}",
|
|
2670
|
+
"productCreateError": "Product creation failed",
|
|
2671
|
+
"batchImportFinished": "Batch import finished: {{imported}} imported, {{notFound}} not found.",
|
|
2672
|
+
"batchImportError": "Batch import failed",
|
|
2673
|
+
"bulkGenerated": "Generated {{count}} GS1 in-store EAN-13 variant barcodes.",
|
|
2674
|
+
"bulkGenerateError": "Bulk barcode generation failed",
|
|
2675
|
+
"tagCreated": "Created BarcodeTag {{code}}",
|
|
2676
|
+
"tagCreateError": "Failed to create tag",
|
|
2677
|
+
"tagDeleted": "Deleted barcode tag",
|
|
2678
|
+
"tagDeleteError": "Failed to delete tag",
|
|
2679
|
+
"labelsRendered": "Rendered {{count}} label(s) for {{name}} (HTML + ZPL II ready)",
|
|
2680
|
+
"labelsRenderError": "Failed to render labels",
|
|
2681
|
+
"defaultCatalogItemTitle": "Catalog Item",
|
|
2682
|
+
"sessionCreated": "Created stock-take session \"{{name}}\"",
|
|
2683
|
+
"sessionCreateError": "Failed to create count session",
|
|
2684
|
+
"scanRecorded": "Recorded scan ({{delta}}) for {{barcode}}",
|
|
2685
|
+
"scanError": "Scan failed",
|
|
2686
|
+
"sessionApplied": "Completed stock-take session and applied inventory variances",
|
|
2687
|
+
"sessionApplyError": "Failed to apply count session",
|
|
2688
|
+
"cachePurged": "Purged {{count}} cached barcode entry(ies)",
|
|
2689
|
+
"cachePurgeError": "Cache purge failed",
|
|
2690
|
+
"widgetBarcodeGenerated": "Generated GS1 EAN-13 barcode ({{code}}) for \"{{title}}\".",
|
|
2691
|
+
"widgetBarcodeError": "Failed to generate barcode",
|
|
2692
|
+
"defaultProductLabelTitle": "Product Label",
|
|
2693
|
+
"widgetLabelPrepared": "Prepared thermal 50×25mm label & ZPL II for {{code}}.",
|
|
2694
|
+
"widgetLabelError": "Failed to render product label"
|
|
2695
|
+
}
|
|
2696
|
+
};
|
|
2697
|
+
var es_default = {
|
|
2698
|
+
nav: { "label": "Estudio de Códigos de Barras y Etiquetas" },
|
|
2699
|
+
header: {
|
|
2700
|
+
"title": "Estudio de Códigos de Barras, QR, Etiquetas Térmicas e Inventario",
|
|
2701
|
+
"providersBadge": "GS1 + 10 Proveedores Activos",
|
|
2702
|
+
"lastHidScan": "Último Escaneo HID: {{code}}",
|
|
2703
|
+
"subtitle": "Enriquecimiento unificado de productos GTIN/ISBN, generación de códigos 1D/2D y QR con HMAC, impresión de etiquetas térmicas/A4 (HTML + Zebra ZPL II) y sesiones de conteo de inventario.",
|
|
2704
|
+
"languageLabel": "Idioma",
|
|
2705
|
+
"bulkGenerateButton": "Asignar EAN-13 Faltantes a Variantes",
|
|
2706
|
+
"refreshButton": "Actualizar Estudio",
|
|
2707
|
+
"linkedProductsStat": "Productos GTIN Vinculados",
|
|
2708
|
+
"dynamicTagsStat": "Etiquetas Dinámicas / QR",
|
|
2709
|
+
"totalScansStat": "Escaneos Totales de Etiquetas",
|
|
2710
|
+
"cachedLookupsStat": "Consultas en Caché (Aciertos)",
|
|
2711
|
+
"activeProvidersStat": "Proveedores Activos",
|
|
2712
|
+
"dismiss": "Cerrar"
|
|
2713
|
+
},
|
|
2714
|
+
tabs: {
|
|
2715
|
+
"lookup": "1. Búsqueda GTIN e Importador por Lotes ({{count}})",
|
|
2716
|
+
"tags": "2. Etiquetas Dinámicas 1D/2D y QR HMAC ({{count}})",
|
|
2717
|
+
"print": "3. Centro de Impresión Térmica y Hojas A4",
|
|
2718
|
+
"stockTake": "4. Conteo de Inventario en Almacén ({{count}})",
|
|
2719
|
+
"providers": "5. Proveedores y Caché ({{count}})"
|
|
2720
|
+
},
|
|
2721
|
+
lookupTab: {
|
|
2722
|
+
"lookupTitle": "1. Escanear o Ingresar GTIN / EAN-13 / UPC-A / ISBN-13",
|
|
2723
|
+
"lookupSubtitle": "Consulta OpenFoodFacts, OpenBeautyFacts, OpenPetFoodFacts, OpenProductsFacts, GoogleBooks, OpenLibrary, Brocade, UPCitemdb, EAN-Search y BarcodeLookup.",
|
|
2724
|
+
"barcodePlaceholder": "ej. 3017620422003 o 9780140328721",
|
|
2725
|
+
"strategyFirstHit": "Primer Acierto (Más Rápido)",
|
|
2726
|
+
"strategyDeepMerge": "Fusión Profunda (Todos los Proveedores)",
|
|
2727
|
+
"lookupOnlyButton": "Consultar Solo Metadatos",
|
|
2728
|
+
"lookupAndCreateButton": "Consultar y Crear Producto Medusa ({{status}})",
|
|
2729
|
+
"normalizedFallback": "Normalizado: {{barcode}}",
|
|
2730
|
+
"matchedVia": "Coincidencia vía {{provider}}",
|
|
2731
|
+
"notFound": "No Encontrado",
|
|
2732
|
+
"resultDetails": "Simbología: {{symbology}} | Dígito de Control GS1 Válido: {{valid}} | Marca: {{brand}}",
|
|
2733
|
+
"yes": "Sí",
|
|
2734
|
+
"no": "No",
|
|
2735
|
+
"na": "N/D",
|
|
2736
|
+
"batchTitle": "Importador de Catálogo GTIN / ISBN por Lotes",
|
|
2737
|
+
"batchSubtitle": "Pegue hasta 100 códigos de barras (uno por línea o separados por comas) para consultar y crear productos + variantes de Medusa en una transacción.",
|
|
2738
|
+
"batchRunButton": "Ejecutar Importación por Lotes",
|
|
2739
|
+
"recentlyLinkedTitle": "Productos con Código de Barras Vinculados Recientemente ({{count}})",
|
|
2740
|
+
"noLinkedProducts": "Aún no hay productos con código de barras vinculados."
|
|
2741
|
+
},
|
|
2742
|
+
tagsTab: {
|
|
2743
|
+
"createTitle": "Crear Código 1D / QR Dinámico 2D / Etiqueta Antifalsificación",
|
|
2744
|
+
"targetIdPlaceholder": "ID de Producto / Variante Destino",
|
|
2745
|
+
"labelPlaceholder": "Etiqueta del Tag",
|
|
2746
|
+
"symbologyQr": "Código QR (2D)",
|
|
2747
|
+
"symbologyDatamatrix": "GS1 DataMatrix (2D)",
|
|
2748
|
+
"symbologyEan13": "EAN-13 (1D GS1)",
|
|
2749
|
+
"symbologyUpca": "UPC-A (1D)",
|
|
2750
|
+
"symbologyCode128": "Code 128B / GS1-128",
|
|
2751
|
+
"symbologyCode39": "Code 39",
|
|
2752
|
+
"actionView": "Abrir Página del Producto",
|
|
2753
|
+
"actionAddToCart": "Añadir al Carrito al Instante",
|
|
2754
|
+
"actionVerify": "Sello HMAC Antifalsificación",
|
|
2755
|
+
"actionDigitalLink": "URI GS1 Digital Link",
|
|
2756
|
+
"gs1GtinPlaceholder": "GS1 GTIN (01)",
|
|
2757
|
+
"batchLotPlaceholder": "Lote / Partida (10)",
|
|
2758
|
+
"serialNumberPlaceholder": "Número de Serie (21)",
|
|
2759
|
+
"generateButton": "Generar Etiqueta Firmada de Código / QR",
|
|
2760
|
+
"listTitle": "Etiquetas de Código de Barras y QR Generadas ({{count}})",
|
|
2761
|
+
"tagMeta": "Destino: {{target}} | Escaneos: {{scans}}",
|
|
2762
|
+
"hmacLabel": "HMAC: {{signature}}...",
|
|
2763
|
+
"deleteButton": "Eliminar"
|
|
2764
|
+
},
|
|
2765
|
+
printTab: {
|
|
2766
|
+
"designerTitle": "Diseñador de Etiquetas de Precio/Código para Rollo Térmico y Hoja A4",
|
|
2767
|
+
"productTitlePlaceholder": "Título del Producto",
|
|
2768
|
+
"variantTitlePlaceholder": "Título de la Variante",
|
|
2769
|
+
"barcodePlaceholder": "Código de Barras (EAN-13 / Code128)",
|
|
2770
|
+
"skuPlaceholder": "SKU",
|
|
2771
|
+
"salePricePlaceholder": "Precio de Venta",
|
|
2772
|
+
"compareAtPricePlaceholder": "Precio Comparativo / PVP",
|
|
2773
|
+
"currencyPlaceholder": "Moneda (USD, EUR, GBP)",
|
|
2774
|
+
"quantityPlaceholder": "Cantidad de Etiquetas",
|
|
2775
|
+
"renderButton": "Generar Hoja de Impresión (HTML+SVG) y Zebra ZPL II",
|
|
2776
|
+
"outputTitle": "Salida de Impresión y Comandos Zebra ZPL II",
|
|
2777
|
+
"labelsReadyBadge": "{{count}} Etiqueta(s) Lista(s) ({{name}})",
|
|
2778
|
+
"zplHeading": "Comandos Térmicos Zebra ZPL II (^XA ... ^XZ):",
|
|
2779
|
+
"htmlHeading": "Código Fuente HTML+SVG Listo para Imprimir:",
|
|
2780
|
+
"emptyState": "Configure su plantilla de etiqueta y haga clic en \"Generar Hoja de Impresión\" para previsualizar el HTML+SVG y los comandos Zebra ZPL II."
|
|
2781
|
+
},
|
|
2782
|
+
stockTakeTab: {
|
|
2783
|
+
"createTitle": "Crear o Escanear en Sesión de Conteo de Inventario",
|
|
2784
|
+
"sessionNamePlaceholder": "Nombre de la Sesión",
|
|
2785
|
+
"locationIdPlaceholder": "ID de Ubicación de Stock",
|
|
2786
|
+
"startSessionButton": "Iniciar Nueva Sesión de Conteo",
|
|
2787
|
+
"scannerTitle": "Contador Rápido por Escaneo de Código de Barras",
|
|
2788
|
+
"scannedBarcodePlaceholder": "Código de Barras Escaneado",
|
|
2789
|
+
"itemTitlePlaceholder": "Título del Artículo",
|
|
2790
|
+
"scanPlusOneButton": "Escanear +1",
|
|
2791
|
+
"adjustMinusOneButton": "Ajustar -1",
|
|
2792
|
+
"sessionsTitle": "Sesiones de Conteo y Conciliación de Variaciones ({{count}})",
|
|
2793
|
+
"sessionSummary": "Esperado: {{expected}} | Contado: {{counted}} | Variación: {{variance}}",
|
|
2794
|
+
"completeApplyButton": "Completar y Aplicar al Inventario",
|
|
2795
|
+
"completedBadge": "Completado",
|
|
2796
|
+
"expectedShort": "Esp: {{expected}}",
|
|
2797
|
+
"countedShort": "Contado:",
|
|
2798
|
+
"varianceShort": "(Var: {{variance}})"
|
|
2799
|
+
},
|
|
2800
|
+
providersTab: {
|
|
2801
|
+
"providersTitle": "Proveedores Registrados de Búsqueda GTIN / ISBN",
|
|
2802
|
+
"cacheTitle": "Caché de Consultas de Códigos de Barras ({{count}})",
|
|
2803
|
+
"purgeExpiredButton": "Purgar Expirados",
|
|
2804
|
+
"clearAllButton": "Vaciar Toda la Caché",
|
|
2805
|
+
"hitsBadge": "Aciertos: {{count}}"
|
|
2806
|
+
},
|
|
2807
|
+
widget: {
|
|
2808
|
+
"title": "Códigos de Barras, QR Dinámico y Etiquetas Térmicas",
|
|
2809
|
+
"defaultProductTitle": "Producto",
|
|
2810
|
+
"subtitle": "{{productTitle}} — {{tagsCount}} etiqueta(s) activa(s), {{barcodesCount}} registro(s) GTIN vinculado(s)",
|
|
2811
|
+
"generateButton": "Generar GS1 EAN-13 y QR",
|
|
2812
|
+
"printButton": "Imprimir Etiqueta de Precio/Código",
|
|
2813
|
+
"codeLabel": "Código:",
|
|
2814
|
+
"actionLabel": "Acción:",
|
|
2815
|
+
"scansLabel": "Escaneos:",
|
|
2816
|
+
"zplOutputLabel": "Salida Zebra ZPL II ({{name}}):"
|
|
2817
|
+
},
|
|
2818
|
+
messages: {
|
|
2819
|
+
"loadStudioError": "Error al cargar el Estudio de Códigos de Barras",
|
|
2820
|
+
"hidScanDetected": "Escáner HID detectó el código de barras: {{barcode}}",
|
|
2821
|
+
"lookupFound": "Se encontró \"{{name}}\" vía {{provider}}",
|
|
2822
|
+
"lookupNotFound": "No se encontraron coincidencias para {{barcode}}",
|
|
2823
|
+
"lookupError": "Error en la búsqueda",
|
|
2824
|
+
"productCreated": "Producto Medusa creado ({{productId}}) a partir del código {{barcode}}",
|
|
2825
|
+
"productCreateError": "Error al crear el producto",
|
|
2826
|
+
"batchImportFinished": "Importación por lotes finalizada: {{imported}} importados, {{notFound}} no encontrados.",
|
|
2827
|
+
"batchImportError": "Error en la importación por lotes",
|
|
2828
|
+
"bulkGenerated": "Se generaron {{count}} códigos de barras de variante GS1 EAN-13 internos.",
|
|
2829
|
+
"bulkGenerateError": "Error en la generación masiva de códigos de barras",
|
|
2830
|
+
"tagCreated": "Etiqueta BarcodeTag creada {{code}}",
|
|
2831
|
+
"tagCreateError": "Error al crear la etiqueta",
|
|
2832
|
+
"tagDeleted": "Etiqueta de código de barras eliminada",
|
|
2833
|
+
"tagDeleteError": "Error al eliminar la etiqueta",
|
|
2834
|
+
"labelsRendered": "Se generaron {{count}} etiqueta(s) para {{name}} (HTML + ZPL II listos)",
|
|
2835
|
+
"labelsRenderError": "Error al generar las etiquetas",
|
|
2836
|
+
"defaultCatalogItemTitle": "Artículo de Catálogo",
|
|
2837
|
+
"sessionCreated": "Sesión de conteo de inventario creada \"{{name}}\"",
|
|
2838
|
+
"sessionCreateError": "Error al crear la sesión de conteo",
|
|
2839
|
+
"scanRecorded": "Escaneo registrado ({{delta}}) para {{barcode}}",
|
|
2840
|
+
"scanError": "Error en el escaneo",
|
|
2841
|
+
"sessionApplied": "Sesión de conteo completada y variaciones aplicadas al inventario",
|
|
2842
|
+
"sessionApplyError": "Error al aplicar la sesión de conteo",
|
|
2843
|
+
"cachePurged": "Se purgaron {{count}} entrada(s) de caché de códigos de barras",
|
|
2844
|
+
"cachePurgeError": "Error al purgar la caché",
|
|
2845
|
+
"widgetBarcodeGenerated": "Código de barras GS1 EAN-13 generado ({{code}}) para \"{{title}}\".",
|
|
2846
|
+
"widgetBarcodeError": "Error al generar el código de barras",
|
|
2847
|
+
"defaultProductLabelTitle": "Etiqueta de Producto",
|
|
2848
|
+
"widgetLabelPrepared": "Etiqueta térmica de 50×25mm y ZPL II preparados para {{code}}.",
|
|
2849
|
+
"widgetLabelError": "Error al generar la etiqueta del producto"
|
|
2850
|
+
}
|
|
2851
|
+
};
|
|
2852
|
+
var fr_default = {
|
|
2853
|
+
nav: { "label": "Studio Codes-Barres & Étiquettes" },
|
|
2854
|
+
header: {
|
|
2855
|
+
"title": "Studio Codes-Barres, QR, Étiquettes Thermiques & Inventaire",
|
|
2856
|
+
"providersBadge": "GS1 + 10 Fournisseurs Actifs",
|
|
2857
|
+
"lastHidScan": "Dernier Scan HID : {{code}}",
|
|
2858
|
+
"subtitle": "Enrichissement produit GTIN/ISBN unifié, génération de codes-barres 1D/2D et QR HMAC, impression d'étiquettes thermiques/A4 (HTML + Zebra ZPL II) et sessions d'inventaire en entrepôt.",
|
|
2859
|
+
"languageLabel": "Langue",
|
|
2860
|
+
"bulkGenerateButton": "Attribuer les EAN-13 Manquants aux Variantes",
|
|
2861
|
+
"refreshButton": "Actualiser le Studio",
|
|
2862
|
+
"linkedProductsStat": "Produits GTIN Liés",
|
|
2863
|
+
"dynamicTagsStat": "Tags Codes-Barres / QR Dynamiques",
|
|
2864
|
+
"totalScansStat": "Total des Scans de Tags",
|
|
2865
|
+
"cachedLookupsStat": "Recherches en Cache (Succès)",
|
|
2866
|
+
"activeProvidersStat": "Fournisseurs Actifs",
|
|
2867
|
+
"dismiss": "Fermer"
|
|
2868
|
+
},
|
|
2869
|
+
tabs: {
|
|
2870
|
+
"lookup": "1. Recherche GTIN & Import par Lots ({{count}})",
|
|
2871
|
+
"tags": "2. Tags Dynamiques 1D/2D & QR HMAC ({{count}})",
|
|
2872
|
+
"print": "3. Centre d'Impression Thermique & Planches A4",
|
|
2873
|
+
"stockTake": "4. Inventaire d'Entrepôt ({{count}})",
|
|
2874
|
+
"providers": "5. Fournisseurs & Cache ({{count}})"
|
|
2875
|
+
},
|
|
2876
|
+
lookupTab: {
|
|
2877
|
+
"lookupTitle": "1. Scanner ou Saisir un GTIN / EAN-13 / UPC-A / ISBN-13",
|
|
2878
|
+
"lookupSubtitle": "Interroge OpenFoodFacts, OpenBeautyFacts, OpenPetFoodFacts, OpenProductsFacts, GoogleBooks, OpenLibrary, Brocade, UPCitemdb, EAN-Search & BarcodeLookup.",
|
|
2879
|
+
"barcodePlaceholder": "ex. 3017620422003 ou 9780140328721",
|
|
2880
|
+
"strategyFirstHit": "Premier Résultat (Plus Rapide)",
|
|
2881
|
+
"strategyDeepMerge": "Fusion Complète (Tous les Fournisseurs)",
|
|
2882
|
+
"lookupOnlyButton": "Rechercher les Métadonnées Seules",
|
|
2883
|
+
"lookupAndCreateButton": "Rechercher & Créer le Produit Medusa ({{status}})",
|
|
2884
|
+
"normalizedFallback": "Normalisé : {{barcode}}",
|
|
2885
|
+
"matchedVia": "Trouvé via {{provider}}",
|
|
2886
|
+
"notFound": "Introuvable",
|
|
2887
|
+
"resultDetails": "Symbologie : {{symbology}} | Clé de Contrôle GS1 Valide : {{valid}} | Marque : {{brand}}",
|
|
2888
|
+
"yes": "Oui",
|
|
2889
|
+
"no": "Non",
|
|
2890
|
+
"na": "N/D",
|
|
2891
|
+
"batchTitle": "Importateur de Catalogue GTIN / ISBN par Lots",
|
|
2892
|
+
"batchSubtitle": "Collez jusqu'à 100 codes-barres (un par ligne ou séparés par des virgules) pour rechercher et créer automatiquement des produits + variantes Medusa en une transaction.",
|
|
2893
|
+
"batchRunButton": "Lancer l'Import par Lots",
|
|
2894
|
+
"recentlyLinkedTitle": "Produits Récemment Liés par Code-Barres ({{count}})",
|
|
2895
|
+
"noLinkedProducts": "Aucun produit lié par code-barres pour le moment."
|
|
2896
|
+
},
|
|
2897
|
+
tagsTab: {
|
|
2898
|
+
"createTitle": "Créer un Code 1D / QR Dynamique 2D / Tag Anti-Contrefaçon",
|
|
2899
|
+
"targetIdPlaceholder": "ID du Produit / de la Variante Cible",
|
|
2900
|
+
"labelPlaceholder": "Libellé du Tag",
|
|
2901
|
+
"symbologyQr": "Code QR (2D)",
|
|
2902
|
+
"symbologyDatamatrix": "GS1 DataMatrix (2D)",
|
|
2903
|
+
"symbologyEan13": "EAN-13 (1D GS1)",
|
|
2904
|
+
"symbologyUpca": "UPC-A (1D)",
|
|
2905
|
+
"symbologyCode128": "Code 128B / GS1-128",
|
|
2906
|
+
"symbologyCode39": "Code 39",
|
|
2907
|
+
"actionView": "Ouvrir la Fiche Produit",
|
|
2908
|
+
"actionAddToCart": "Ajout Instantané au Panier",
|
|
2909
|
+
"actionVerify": "Sceau HMAC Anti-Contrefaçon",
|
|
2910
|
+
"actionDigitalLink": "URI GS1 Digital Link",
|
|
2911
|
+
"gs1GtinPlaceholder": "GS1 GTIN (01)",
|
|
2912
|
+
"batchLotPlaceholder": "Lot (10)",
|
|
2913
|
+
"serialNumberPlaceholder": "Numéro de Série (21)",
|
|
2914
|
+
"generateButton": "Générer le Tag Code-Barres / QR Signé",
|
|
2915
|
+
"listTitle": "Tags Codes-Barres & QR Générés ({{count}})",
|
|
2916
|
+
"tagMeta": "Cible : {{target}} | Scans : {{scans}}",
|
|
2917
|
+
"hmacLabel": "HMAC : {{signature}}...",
|
|
2918
|
+
"deleteButton": "Supprimer"
|
|
2919
|
+
},
|
|
2920
|
+
printTab: {
|
|
2921
|
+
"designerTitle": "Concepteur d'Étiquettes Prix/Code-Barres pour Rouleau Thermique & Planche A4",
|
|
2922
|
+
"productTitlePlaceholder": "Titre du Produit",
|
|
2923
|
+
"variantTitlePlaceholder": "Titre de la Variante",
|
|
2924
|
+
"barcodePlaceholder": "Code-Barres (EAN-13 / Code128)",
|
|
2925
|
+
"skuPlaceholder": "SKU",
|
|
2926
|
+
"salePricePlaceholder": "Prix de Vente",
|
|
2927
|
+
"compareAtPricePlaceholder": "Prix Barré / Conseillé",
|
|
2928
|
+
"currencyPlaceholder": "Devise (USD, EUR, GBP)",
|
|
2929
|
+
"quantityPlaceholder": "Quantité d'Étiquettes",
|
|
2930
|
+
"renderButton": "Générer la Planche d'Impression (HTML+SVG) & Zebra ZPL II",
|
|
2931
|
+
"outputTitle": "Sortie d'Impression & Zebra ZPL II Brut",
|
|
2932
|
+
"labelsReadyBadge": "{{count}} Étiquette(s) Prête(s) ({{name}})",
|
|
2933
|
+
"zplHeading": "Commandes Thermiques Zebra ZPL II (^XA ... ^XZ) :",
|
|
2934
|
+
"htmlHeading": "Code Source HTML+SVG Prêt à Imprimer :",
|
|
2935
|
+
"emptyState": "Configurez votre modèle d'étiquette et cliquez sur « Générer la Planche d'Impression » pour prévisualiser le HTML+SVG et les commandes Zebra ZPL II."
|
|
2936
|
+
},
|
|
2937
|
+
stockTakeTab: {
|
|
2938
|
+
"createTitle": "Créer ou Scanner dans une Session d'Inventaire",
|
|
2939
|
+
"sessionNamePlaceholder": "Nom de la Session",
|
|
2940
|
+
"locationIdPlaceholder": "ID de l'Emplacement de Stock",
|
|
2941
|
+
"startSessionButton": "Démarrer une Nouvelle Session d'Inventaire",
|
|
2942
|
+
"scannerTitle": "Compteur Rapide par Scan de Code-Barres",
|
|
2943
|
+
"scannedBarcodePlaceholder": "Code-Barres Scanné",
|
|
2944
|
+
"itemTitlePlaceholder": "Titre de l'Article",
|
|
2945
|
+
"scanPlusOneButton": "Scanner +1",
|
|
2946
|
+
"adjustMinusOneButton": "Ajuster -1",
|
|
2947
|
+
"sessionsTitle": "Sessions d'Inventaire & Réconciliation des Écarts ({{count}})",
|
|
2948
|
+
"sessionSummary": "Attendu : {{expected}} | Compté : {{counted}} | Écart : {{variance}}",
|
|
2949
|
+
"completeApplyButton": "Terminer & Appliquer au Stock",
|
|
2950
|
+
"completedBadge": "Terminé",
|
|
2951
|
+
"expectedShort": "Att. : {{expected}}",
|
|
2952
|
+
"countedShort": "Compté :",
|
|
2953
|
+
"varianceShort": "(Écart : {{variance}})"
|
|
2954
|
+
},
|
|
2955
|
+
providersTab: {
|
|
2956
|
+
"providersTitle": "Fournisseurs de Recherche GTIN / ISBN Enregistrés",
|
|
2957
|
+
"cacheTitle": "Cache de Recherche de Codes-Barres ({{count}})",
|
|
2958
|
+
"purgeExpiredButton": "Purger les Expirés",
|
|
2959
|
+
"clearAllButton": "Vider Tout le Cache",
|
|
2960
|
+
"hitsBadge": "Succès : {{count}}"
|
|
2961
|
+
},
|
|
2962
|
+
widget: {
|
|
2963
|
+
"title": "Codes-Barres, QR Dynamique & Étiquettes Thermiques",
|
|
2964
|
+
"defaultProductTitle": "Produit",
|
|
2965
|
+
"subtitle": "{{productTitle}} — {{tagsCount}} tag(s) actif(s), {{barcodesCount}} enregistrement(s) GTIN lié(s)",
|
|
2966
|
+
"generateButton": "Générer GS1 EAN-13 & QR",
|
|
2967
|
+
"printButton": "Imprimer l'Étiquette Prix/Code-Barres",
|
|
2968
|
+
"codeLabel": "Code :",
|
|
2969
|
+
"actionLabel": "Action :",
|
|
2970
|
+
"scansLabel": "Scans :",
|
|
2971
|
+
"zplOutputLabel": "Sortie Zebra ZPL II ({{name}}) :"
|
|
2972
|
+
},
|
|
2973
|
+
messages: {
|
|
2974
|
+
"loadStudioError": "Échec du chargement du Studio Codes-Barres",
|
|
2975
|
+
"hidScanDetected": "Le scanner HID a détecté le code-barres : {{barcode}}",
|
|
2976
|
+
"lookupFound": "« {{name}} » trouvé via {{provider}}",
|
|
2977
|
+
"lookupNotFound": "Aucune correspondance trouvée pour {{barcode}}",
|
|
2978
|
+
"lookupError": "Échec de la recherche",
|
|
2979
|
+
"productCreated": "Produit Medusa créé ({{productId}}) à partir du code-barres {{barcode}}",
|
|
2980
|
+
"productCreateError": "Échec de la création du produit",
|
|
2981
|
+
"batchImportFinished": "Import par lots terminé : {{imported}} importé(s), {{notFound}} introuvable(s).",
|
|
2982
|
+
"batchImportError": "Échec de l'import par lots",
|
|
2983
|
+
"bulkGenerated": "{{count}} codes-barres variantes GS1 EAN-13 internes générés.",
|
|
2984
|
+
"bulkGenerateError": "Échec de la génération en masse des codes-barres",
|
|
2985
|
+
"tagCreated": "BarcodeTag {{code}} créé",
|
|
2986
|
+
"tagCreateError": "Échec de la création du tag",
|
|
2987
|
+
"tagDeleted": "Tag code-barres supprimé",
|
|
2988
|
+
"tagDeleteError": "Échec de la suppression du tag",
|
|
2989
|
+
"labelsRendered": "{{count}} étiquette(s) générée(s) pour {{name}} (HTML + ZPL II prêts)",
|
|
2990
|
+
"labelsRenderError": "Échec de la génération des étiquettes",
|
|
2991
|
+
"defaultCatalogItemTitle": "Article du Catalogue",
|
|
2992
|
+
"sessionCreated": "Session d'inventaire « {{name}} » créée",
|
|
2993
|
+
"sessionCreateError": "Échec de la création de la session d'inventaire",
|
|
2994
|
+
"scanRecorded": "Scan enregistré ({{delta}}) pour {{barcode}}",
|
|
2995
|
+
"scanError": "Échec du scan",
|
|
2996
|
+
"sessionApplied": "Session d'inventaire terminée et écarts appliqués au stock",
|
|
2997
|
+
"sessionApplyError": "Échec de l'application de la session d'inventaire",
|
|
2998
|
+
"cachePurged": "{{count}} entrée(s) de cache de codes-barres purgée(s)",
|
|
2999
|
+
"cachePurgeError": "Échec de la purge du cache",
|
|
3000
|
+
"widgetBarcodeGenerated": "Code-barres GS1 EAN-13 ({{code}}) généré pour « {{title}} ».",
|
|
3001
|
+
"widgetBarcodeError": "Échec de la génération du code-barres",
|
|
3002
|
+
"defaultProductLabelTitle": "Étiquette Produit",
|
|
3003
|
+
"widgetLabelPrepared": "Étiquette thermique 50×25mm et ZPL II préparés pour {{code}}.",
|
|
3004
|
+
"widgetLabelError": "Échec de la génération de l'étiquette produit"
|
|
3005
|
+
}
|
|
3006
|
+
};
|
|
3007
|
+
var it_default = {
|
|
3008
|
+
nav: { "label": "Studio Codici a Barre ed Etichette" },
|
|
3009
|
+
header: {
|
|
3010
|
+
"title": "Studio Codici a Barre, QR, Etichette Termiche e Inventario",
|
|
3011
|
+
"providersBadge": "GS1 + 10 Provider Attivi",
|
|
3012
|
+
"lastHidScan": "Ultima Scansione HID: {{code}}",
|
|
3013
|
+
"subtitle": "Arricchimento prodotti GTIN/ISBN unificato, generazione codici a barre 1D/2D e QR HMAC, stampa etichette termiche/A4 (HTML + Zebra ZPL II) e sessioni di inventario di magazzino.",
|
|
3014
|
+
"languageLabel": "Lingua",
|
|
3015
|
+
"bulkGenerateButton": "Assegna Automaticamente EAN-13 Mancanti alle Varianti",
|
|
3016
|
+
"refreshButton": "Aggiorna Studio",
|
|
3017
|
+
"linkedProductsStat": "Prodotti GTIN Collegati",
|
|
3018
|
+
"dynamicTagsStat": "Tag Dinamici Codice a Barre/QR",
|
|
3019
|
+
"totalScansStat": "Scansioni Totali Tag",
|
|
3020
|
+
"cachedLookupsStat": "Ricerche in Cache (Hit)",
|
|
3021
|
+
"activeProvidersStat": "Provider Attivi",
|
|
3022
|
+
"dismiss": "Chiudi"
|
|
3023
|
+
},
|
|
3024
|
+
tabs: {
|
|
3025
|
+
"lookup": "1. Ricerca GTIN e Importazione Batch ({{count}})",
|
|
3026
|
+
"tags": "2. Tag Dinamici 1D/2D e QR HMAC ({{count}})",
|
|
3027
|
+
"print": "3. Centro Stampa Etichette Termiche e Fogli A4",
|
|
3028
|
+
"stockTake": "4. Inventario di Magazzino ({{count}})",
|
|
3029
|
+
"providers": "5. Provider e Cache ({{count}})"
|
|
3030
|
+
},
|
|
3031
|
+
lookupTab: {
|
|
3032
|
+
"lookupTitle": "1. Scansiona o Inserisci GTIN / EAN-13 / UPC-A / ISBN-13",
|
|
3033
|
+
"lookupSubtitle": "Interroga OpenFoodFacts, OpenBeautyFacts, OpenPetFoodFacts, OpenProductsFacts, GoogleBooks, OpenLibrary, Brocade, UPCitemdb, EAN-Search e BarcodeLookup.",
|
|
3034
|
+
"barcodePlaceholder": "es. 3017620422003 o 9780140328721",
|
|
3035
|
+
"strategyFirstHit": "Primo Risultato (Più Veloce)",
|
|
3036
|
+
"strategyDeepMerge": "Fusione Completa (Tutti i Provider)",
|
|
3037
|
+
"lookupOnlyButton": "Cerca Solo Metadati",
|
|
3038
|
+
"lookupAndCreateButton": "Cerca e Crea Prodotto Medusa ({{status}})",
|
|
3039
|
+
"normalizedFallback": "Normalizzato: {{barcode}}",
|
|
3040
|
+
"matchedVia": "Trovato tramite {{provider}}",
|
|
3041
|
+
"notFound": "Non Trovato",
|
|
3042
|
+
"resultDetails": "Simbologia: {{symbology}} | Cifra di Controllo GS1 Valida: {{valid}} | Marca: {{brand}}",
|
|
3043
|
+
"yes": "Sì",
|
|
3044
|
+
"no": "No",
|
|
3045
|
+
"na": "N/D",
|
|
3046
|
+
"batchTitle": "Importatore Batch Catalogo GTIN / ISBN",
|
|
3047
|
+
"batchSubtitle": "Incolla fino a 100 codici a barre (uno per riga o separati da virgola) per cercare e creare automaticamente prodotti + varianti Medusa in una transazione.",
|
|
3048
|
+
"batchRunButton": "Avvia Workflow di Importazione Batch",
|
|
3049
|
+
"recentlyLinkedTitle": "Prodotti con Codice a Barre Collegati di Recente ({{count}})",
|
|
3050
|
+
"noLinkedProducts": "Nessun prodotto con codice a barre ancora collegato."
|
|
3051
|
+
},
|
|
3052
|
+
tagsTab: {
|
|
3053
|
+
"createTitle": "Crea Codice a Barre 1D / QR Dinamico 2D / Tag Anticontraffazione",
|
|
3054
|
+
"targetIdPlaceholder": "ID Prodotto / Variante Destinazione",
|
|
3055
|
+
"labelPlaceholder": "Etichetta del Tag",
|
|
3056
|
+
"symbologyQr": "Codice QR (2D)",
|
|
3057
|
+
"symbologyDatamatrix": "GS1 DataMatrix (2D)",
|
|
3058
|
+
"symbologyEan13": "EAN-13 (1D GS1)",
|
|
3059
|
+
"symbologyUpca": "UPC-A (1D)",
|
|
3060
|
+
"symbologyCode128": "Code 128B / GS1-128",
|
|
3061
|
+
"symbologyCode39": "Code 39",
|
|
3062
|
+
"actionView": "Apri Pagina Prodotto",
|
|
3063
|
+
"actionAddToCart": "Aggiunta Istantanea al Carrello",
|
|
3064
|
+
"actionVerify": "Sigillo HMAC Anticontraffazione",
|
|
3065
|
+
"actionDigitalLink": "URI GS1 Digital Link",
|
|
3066
|
+
"gs1GtinPlaceholder": "GS1 GTIN (01)",
|
|
3067
|
+
"batchLotPlaceholder": "Lotto / Partita (10)",
|
|
3068
|
+
"serialNumberPlaceholder": "Numero di Serie (21)",
|
|
3069
|
+
"generateButton": "Genera Tag Codice a Barre / QR Firmato",
|
|
3070
|
+
"listTitle": "Tag Codice a Barre e QR Generati ({{count}})",
|
|
3071
|
+
"tagMeta": "Destinazione: {{target}} | Scansioni: {{scans}}",
|
|
3072
|
+
"hmacLabel": "HMAC: {{signature}}...",
|
|
3073
|
+
"deleteButton": "Elimina"
|
|
3074
|
+
},
|
|
3075
|
+
printTab: {
|
|
3076
|
+
"designerTitle": "Designer di Etichette Prezzo/Codice per Rotolo Termico e Foglio A4",
|
|
3077
|
+
"productTitlePlaceholder": "Titolo Prodotto",
|
|
3078
|
+
"variantTitlePlaceholder": "Titolo Variante",
|
|
3079
|
+
"barcodePlaceholder": "Codice a Barre (EAN-13 / Code128)",
|
|
3080
|
+
"skuPlaceholder": "SKU",
|
|
3081
|
+
"salePricePlaceholder": "Prezzo di Vendita",
|
|
3082
|
+
"compareAtPricePlaceholder": "Prezzo di Listino / Confronto",
|
|
3083
|
+
"currencyPlaceholder": "Valuta (USD, EUR, GBP)",
|
|
3084
|
+
"quantityPlaceholder": "Quantità Etichette",
|
|
3085
|
+
"renderButton": "Genera Foglio di Stampa (HTML+SVG) e Zebra ZPL II",
|
|
3086
|
+
"outputTitle": "Output di Stampa e Zebra ZPL II Grezzo",
|
|
3087
|
+
"labelsReadyBadge": "{{count}} Etichetta/e Pronta/e ({{name}})",
|
|
3088
|
+
"zplHeading": "Comandi Termici Zebra ZPL II (^XA ... ^XZ):",
|
|
3089
|
+
"htmlHeading": "Sorgente Documento HTML+SVG Pronto per la Stampa:",
|
|
3090
|
+
"emptyState": "Configura il formato dell'etichetta e clicca su \"Genera Foglio di Stampa\" per visualizzare in anteprima HTML+SVG e i comandi Zebra ZPL II."
|
|
3091
|
+
},
|
|
3092
|
+
stockTakeTab: {
|
|
3093
|
+
"createTitle": "Crea o Scansiona nella Sessione di Inventario",
|
|
3094
|
+
"sessionNamePlaceholder": "Nome Sessione",
|
|
3095
|
+
"locationIdPlaceholder": "ID Posizione Magazzino",
|
|
3096
|
+
"startSessionButton": "Avvia Nuova Sessione di Inventario",
|
|
3097
|
+
"scannerTitle": "Contatore Rapido Scansione Codici a Barre",
|
|
3098
|
+
"scannedBarcodePlaceholder": "Codice a Barre Scansionato",
|
|
3099
|
+
"itemTitlePlaceholder": "Titolo Articolo",
|
|
3100
|
+
"scanPlusOneButton": "Scansiona +1",
|
|
3101
|
+
"adjustMinusOneButton": "Rettifica -1",
|
|
3102
|
+
"sessionsTitle": "Sessioni di Inventario e Riconciliazione Scostamenti ({{count}})",
|
|
3103
|
+
"sessionSummary": "Previsto: {{expected}} | Contato: {{counted}} | Scostamento: {{variance}}",
|
|
3104
|
+
"completeApplyButton": "Completa e Applica all'Inventario",
|
|
3105
|
+
"completedBadge": "Completato",
|
|
3106
|
+
"expectedShort": "Prev: {{expected}}",
|
|
3107
|
+
"countedShort": "Contato:",
|
|
3108
|
+
"varianceShort": "(Scost: {{variance}})"
|
|
3109
|
+
},
|
|
3110
|
+
providersTab: {
|
|
3111
|
+
"providersTitle": "Provider di Ricerca GTIN / ISBN Registrati",
|
|
3112
|
+
"cacheTitle": "Cache Ricerche Codici a Barre ({{count}})",
|
|
3113
|
+
"purgeExpiredButton": "Elimina Scaduti",
|
|
3114
|
+
"clearAllButton": "Svuota Tutta la Cache",
|
|
3115
|
+
"hitsBadge": "Hit: {{count}}"
|
|
3116
|
+
},
|
|
3117
|
+
widget: {
|
|
3118
|
+
"title": "Codici a Barre, QR Dinamico ed Etichette Termiche",
|
|
3119
|
+
"defaultProductTitle": "Prodotto",
|
|
3120
|
+
"subtitle": "{{productTitle}} — {{tagsCount}} tag attivo/i, {{barcodesCount}} record GTIN collegato/i",
|
|
3121
|
+
"generateButton": "Genera GS1 EAN-13 e QR",
|
|
3122
|
+
"printButton": "Stampa Etichetta Prezzo/Codice a Barre",
|
|
3123
|
+
"codeLabel": "Codice:",
|
|
3124
|
+
"actionLabel": "Azione:",
|
|
3125
|
+
"scansLabel": "Scansioni:",
|
|
3126
|
+
"zplOutputLabel": "Output Zebra ZPL II ({{name}}):"
|
|
3127
|
+
},
|
|
3128
|
+
messages: {
|
|
3129
|
+
"loadStudioError": "Impossibile caricare lo Studio Codici a Barre",
|
|
3130
|
+
"hidScanDetected": "Lo scanner HID ha rilevato il codice a barre: {{barcode}}",
|
|
3131
|
+
"lookupFound": "Trovato \"{{name}}\" tramite {{provider}}",
|
|
3132
|
+
"lookupNotFound": "Nessuna corrispondenza trovata per {{barcode}}",
|
|
3133
|
+
"lookupError": "Ricerca non riuscita",
|
|
3134
|
+
"productCreated": "Prodotto Medusa creato ({{productId}}) dal codice a barre {{barcode}}",
|
|
3135
|
+
"productCreateError": "Creazione prodotto non riuscita",
|
|
3136
|
+
"batchImportFinished": "Importazione batch completata: {{imported}} importati, {{notFound}} non trovati.",
|
|
3137
|
+
"batchImportError": "Importazione batch non riuscita",
|
|
3138
|
+
"bulkGenerated": "Generati {{count}} codici a barre variante GS1 EAN-13 interni.",
|
|
3139
|
+
"bulkGenerateError": "Generazione massiva codici a barre non riuscita",
|
|
3140
|
+
"tagCreated": "Creato BarcodeTag {{code}}",
|
|
3141
|
+
"tagCreateError": "Impossibile creare il tag",
|
|
3142
|
+
"tagDeleted": "Tag codice a barre eliminato",
|
|
3143
|
+
"tagDeleteError": "Impossibile eliminare il tag",
|
|
3144
|
+
"labelsRendered": "Generate {{count}} etichetta/e per {{name}} (HTML + ZPL II pronti)",
|
|
3145
|
+
"labelsRenderError": "Impossibile generare le etichette",
|
|
3146
|
+
"defaultCatalogItemTitle": "Articolo a Catalogo",
|
|
3147
|
+
"sessionCreated": "Sessione di inventario \"{{name}}\" creata",
|
|
3148
|
+
"sessionCreateError": "Impossibile creare la sessione di inventario",
|
|
3149
|
+
"scanRecorded": "Scansione registrata ({{delta}}) per {{barcode}}",
|
|
3150
|
+
"scanError": "Scansione non riuscita",
|
|
3151
|
+
"sessionApplied": "Sessione di inventario completata e scostamenti applicati al magazzino",
|
|
3152
|
+
"sessionApplyError": "Impossibile applicare la sessione di inventario",
|
|
3153
|
+
"cachePurged": "Eliminate {{count}} voce/i dalla cache dei codici a barre",
|
|
3154
|
+
"cachePurgeError": "Pulizia cache non riuscita",
|
|
3155
|
+
"widgetBarcodeGenerated": "Codice a barre GS1 EAN-13 ({{code}}) generato per \"{{title}}\".",
|
|
3156
|
+
"widgetBarcodeError": "Impossibile generare il codice a barre",
|
|
3157
|
+
"defaultProductLabelTitle": "Etichetta Prodotto",
|
|
3158
|
+
"widgetLabelPrepared": "Etichetta termica 50×25mm e ZPL II preparati per {{code}}.",
|
|
3159
|
+
"widgetLabelError": "Impossibile generare l'etichetta prodotto"
|
|
3160
|
+
}
|
|
3161
|
+
};
|
|
3162
|
+
var nl_default = {
|
|
3163
|
+
nav: { "label": "Barcode- & Labelstudio" },
|
|
3164
|
+
header: {
|
|
3165
|
+
"title": "Barcode-, QR-, Thermisch Label- & Voorraadstudio",
|
|
3166
|
+
"providersBadge": "GS1 + 10 Providers Actief",
|
|
3167
|
+
"lastHidScan": "Laatste HID-scan: {{code}}",
|
|
3168
|
+
"subtitle": "Geünificeerde GTIN/ISBN-productverrijking, 1D/2D-barcode- & HMAC-QR-generatie, thermisch/A4-prijslabelprinten (HTML + Zebra ZPL II) en magazijnvoorraadsessies.",
|
|
3169
|
+
"languageLabel": "Taal",
|
|
3170
|
+
"bulkGenerateButton": "Ontbrekende Variant-EAN-13's Automatisch Toewijzen",
|
|
3171
|
+
"refreshButton": "Studio Vernieuwen",
|
|
3172
|
+
"linkedProductsStat": "Gekoppelde GTIN-producten",
|
|
3173
|
+
"dynamicTagsStat": "Dynamische Barcode-/QR-tags",
|
|
3174
|
+
"totalScansStat": "Totaal Aantal Tagscans",
|
|
3175
|
+
"cachedLookupsStat": "Gecachete Zoekopdrachten (Hits)",
|
|
3176
|
+
"activeProvidersStat": "Actieve Providers",
|
|
3177
|
+
"dismiss": "Sluiten"
|
|
3178
|
+
},
|
|
3179
|
+
tabs: {
|
|
3180
|
+
"lookup": "1. GTIN-zoekopdracht & Batch-import ({{count}})",
|
|
3181
|
+
"tags": "2. Dynamische 1D/2D- & HMAC-QR-tags ({{count}})",
|
|
3182
|
+
"print": "3. Thermisch & A4-label Printcentrum",
|
|
3183
|
+
"stockTake": "4. Magazijnvoorraadopname ({{count}})",
|
|
3184
|
+
"providers": "5. Providers & Cache ({{count}})"
|
|
3185
|
+
},
|
|
3186
|
+
lookupTab: {
|
|
3187
|
+
"lookupTitle": "1. Scan of Voer GTIN / EAN-13 / UPC-A / ISBN-13 In",
|
|
3188
|
+
"lookupSubtitle": "Doorzoekt OpenFoodFacts, OpenBeautyFacts, OpenPetFoodFacts, OpenProductsFacts, GoogleBooks, OpenLibrary, Brocade, UPCitemdb, EAN-Search & BarcodeLookup.",
|
|
3189
|
+
"barcodePlaceholder": "bijv. 3017620422003 of 9780140328721",
|
|
3190
|
+
"strategyFirstHit": "Eerste Treffer (Snelste)",
|
|
3191
|
+
"strategyDeepMerge": "Deep-Merge (Alle Providers)",
|
|
3192
|
+
"lookupOnlyButton": "Alleen Metadata Opzoeken",
|
|
3193
|
+
"lookupAndCreateButton": "Opzoeken & Medusa-product Aanmaken ({{status}})",
|
|
3194
|
+
"normalizedFallback": "Genormaliseerd: {{barcode}}",
|
|
3195
|
+
"matchedVia": "Gevonden via {{provider}}",
|
|
3196
|
+
"notFound": "Niet Gevonden",
|
|
3197
|
+
"resultDetails": "Symbologie: {{symbology}} | Geldig GS1-controlecijfer: {{valid}} | Merk: {{brand}}",
|
|
3198
|
+
"yes": "Ja",
|
|
3199
|
+
"no": "Nee",
|
|
3200
|
+
"na": "N.v.t.",
|
|
3201
|
+
"batchTitle": "Batch GTIN / ISBN Catalogusimport",
|
|
3202
|
+
"batchSubtitle": "Plak tot 100 barcodes (één per regel of kommagescheiden) om automatisch Medusa-producten + varianten op te zoeken en aan te maken in één transactie.",
|
|
3203
|
+
"batchRunButton": "Batch-importworkflow Uitvoeren",
|
|
3204
|
+
"recentlyLinkedTitle": "Recent Gekoppelde Barcodeproducten ({{count}})",
|
|
3205
|
+
"noLinkedProducts": "Nog geen barcodeproducten gekoppeld."
|
|
3206
|
+
},
|
|
3207
|
+
tagsTab: {
|
|
3208
|
+
"createTitle": "1D-barcode / 2D Dynamische QR / Namaakbestendige Tag Aanmaken",
|
|
3209
|
+
"targetIdPlaceholder": "Doel-product- / Variant-ID",
|
|
3210
|
+
"labelPlaceholder": "Taglabel",
|
|
3211
|
+
"symbologyQr": "QR-code (2D)",
|
|
3212
|
+
"symbologyDatamatrix": "GS1 DataMatrix (2D)",
|
|
3213
|
+
"symbologyEan13": "EAN-13 (1D GS1)",
|
|
3214
|
+
"symbologyUpca": "UPC-A (1D)",
|
|
3215
|
+
"symbologyCode128": "Code 128B / GS1-128",
|
|
3216
|
+
"symbologyCode39": "Code 39",
|
|
3217
|
+
"actionView": "Productpagina Openen",
|
|
3218
|
+
"actionAddToCart": "Direct Toevoegen aan Winkelwagen",
|
|
3219
|
+
"actionVerify": "Namaakbestendig HMAC-zegel",
|
|
3220
|
+
"actionDigitalLink": "GS1 Digital Link URI",
|
|
3221
|
+
"gs1GtinPlaceholder": "GS1 GTIN (01)",
|
|
3222
|
+
"batchLotPlaceholder": "Batch / Partij (10)",
|
|
3223
|
+
"serialNumberPlaceholder": "Serienummer (21)",
|
|
3224
|
+
"generateButton": "Ondertekende Barcode- / QR-tag Genereren",
|
|
3225
|
+
"listTitle": "Gegenereerde Barcode- & QR-tags ({{count}})",
|
|
3226
|
+
"tagMeta": "Doel: {{target}} | Scans: {{scans}}",
|
|
3227
|
+
"hmacLabel": "HMAC: {{signature}}...",
|
|
3228
|
+
"deleteButton": "Verwijderen"
|
|
3229
|
+
},
|
|
3230
|
+
printTab: {
|
|
3231
|
+
"designerTitle": "Thermische Rol & A4-vel Prijs-/Barcodelabelontwerper",
|
|
3232
|
+
"productTitlePlaceholder": "Producttitel",
|
|
3233
|
+
"variantTitlePlaceholder": "Varianttitel",
|
|
3234
|
+
"barcodePlaceholder": "Barcode (EAN-13 / Code128)",
|
|
3235
|
+
"skuPlaceholder": "SKU",
|
|
3236
|
+
"salePricePlaceholder": "Verkoopprijs",
|
|
3237
|
+
"compareAtPricePlaceholder": "Adviesprijs / Van-prijs",
|
|
3238
|
+
"currencyPlaceholder": "Valuta (USD, EUR, GBP)",
|
|
3239
|
+
"quantityPlaceholder": "Aantal Labels",
|
|
3240
|
+
"renderButton": "Printvel (HTML+SVG) & Zebra ZPL II Genereren",
|
|
3241
|
+
"outputTitle": "Printuitvoer & Ruwe Zebra ZPL II",
|
|
3242
|
+
"labelsReadyBadge": "{{count}} Label(s) Gereed ({{name}})",
|
|
3243
|
+
"zplHeading": "Thermische Zebra ZPL II-opdrachten (^XA ... ^XZ):",
|
|
3244
|
+
"htmlHeading": "Printklare HTML+SVG-broncode:",
|
|
3245
|
+
"emptyState": "Configureer uw labelsjabloon en klik op \"Printvel Genereren\" om printklare HTML+SVG en Zebra ZPL II-opdrachten te bekijken."
|
|
3246
|
+
},
|
|
3247
|
+
stockTakeTab: {
|
|
3248
|
+
"createTitle": "Voorraadopnamesessie Aanmaken of Scannen",
|
|
3249
|
+
"sessionNamePlaceholder": "Sessienaam",
|
|
3250
|
+
"locationIdPlaceholder": "Voorraadlocatie-ID",
|
|
3251
|
+
"startSessionButton": "Nieuwe Voorraadopnamesessie Starten",
|
|
3252
|
+
"scannerTitle": "Snelle Barcodescanteller",
|
|
3253
|
+
"scannedBarcodePlaceholder": "Gescande Barcode",
|
|
3254
|
+
"itemTitlePlaceholder": "Artikeltitel",
|
|
3255
|
+
"scanPlusOneButton": "Scan +1 Tellen",
|
|
3256
|
+
"adjustMinusOneButton": "Correctie -1 Tellen",
|
|
3257
|
+
"sessionsTitle": "Voorraadopnamesessies & Verschillenreconciliatie ({{count}})",
|
|
3258
|
+
"sessionSummary": "Verwacht: {{expected}} | Geteld: {{counted}} | Verschil: {{variance}}",
|
|
3259
|
+
"completeApplyButton": "Voltooien & Toepassen op Voorraad",
|
|
3260
|
+
"completedBadge": "Voltooid",
|
|
3261
|
+
"expectedShort": "Verw: {{expected}}",
|
|
3262
|
+
"countedShort": "Geteld:",
|
|
3263
|
+
"varianceShort": "(Versch: {{variance}})"
|
|
3264
|
+
},
|
|
3265
|
+
providersTab: {
|
|
3266
|
+
"providersTitle": "Geregistreerde GTIN / ISBN Zoekproviders",
|
|
3267
|
+
"cacheTitle": "Barcodezoekcache ({{count}})",
|
|
3268
|
+
"purgeExpiredButton": "Verlopen Wissen",
|
|
3269
|
+
"clearAllButton": "Volledige Cache Leegmaken",
|
|
3270
|
+
"hitsBadge": "Hits: {{count}}"
|
|
3271
|
+
},
|
|
3272
|
+
widget: {
|
|
3273
|
+
"title": "Barcodes, Dynamische QR & Thermische Labels",
|
|
3274
|
+
"defaultProductTitle": "Product",
|
|
3275
|
+
"subtitle": "{{productTitle}} — {{tagsCount}} actieve tag(s), {{barcodesCount}} gekoppeld(e) GTIN-record(s)",
|
|
3276
|
+
"generateButton": "GS1 EAN-13 & QR Genereren",
|
|
3277
|
+
"printButton": "Prijs-/Barcodelabel Printen",
|
|
3278
|
+
"codeLabel": "Code:",
|
|
3279
|
+
"actionLabel": "Actie:",
|
|
3280
|
+
"scansLabel": "Scans:",
|
|
3281
|
+
"zplOutputLabel": "Zebra ZPL II-uitvoer ({{name}}):"
|
|
3282
|
+
},
|
|
3283
|
+
messages: {
|
|
3284
|
+
"loadStudioError": "Kan Barcode Studio niet laden",
|
|
3285
|
+
"hidScanDetected": "HID-scanner heeft barcode gedetecteerd: {{barcode}}",
|
|
3286
|
+
"lookupFound": "\"{{name}}\" gevonden via {{provider}}",
|
|
3287
|
+
"lookupNotFound": "Geen providerovereenkomst gevonden voor {{barcode}}",
|
|
3288
|
+
"lookupError": "Zoekopdracht mislukt",
|
|
3289
|
+
"productCreated": "Medusa-product ({{productId}}) aangemaakt van barcode {{barcode}}",
|
|
3290
|
+
"productCreateError": "Product aanmaken mislukt",
|
|
3291
|
+
"batchImportFinished": "Batch-import voltooid: {{imported}} geïmporteerd, {{notFound}} niet gevonden.",
|
|
3292
|
+
"batchImportError": "Batch-import mislukt",
|
|
3293
|
+
"bulkGenerated": "{{count}} interne GS1 EAN-13 variantbarcodes gegenereerd.",
|
|
3294
|
+
"bulkGenerateError": "Bulkgeneratie van barcodes mislukt",
|
|
3295
|
+
"tagCreated": "BarcodeTag {{code}} aangemaakt",
|
|
3296
|
+
"tagCreateError": "Tag aanmaken mislukt",
|
|
3297
|
+
"tagDeleted": "Barcodetag verwijderd",
|
|
3298
|
+
"tagDeleteError": "Tag verwijderen mislukt",
|
|
3299
|
+
"labelsRendered": "{{count}} label(s) gegenereerd voor {{name}} (HTML + ZPL II gereed)",
|
|
3300
|
+
"labelsRenderError": "Labels genereren mislukt",
|
|
3301
|
+
"defaultCatalogItemTitle": "Catalogusartikel",
|
|
3302
|
+
"sessionCreated": "Voorraadopnamesessie \"{{name}}\" aangemaakt",
|
|
3303
|
+
"sessionCreateError": "Voorraadopnamesessie aanmaken mislukt",
|
|
3304
|
+
"scanRecorded": "Scan geregistreerd ({{delta}}) voor {{barcode}}",
|
|
3305
|
+
"scanError": "Scan mislukt",
|
|
3306
|
+
"sessionApplied": "Voorraadopnamesessie voltooid en voorraadverschillen toegepast",
|
|
3307
|
+
"sessionApplyError": "Voorraadopnamesessie toepassen mislukt",
|
|
3308
|
+
"cachePurged": "{{count}} gecachete barcode-item(s) gewist",
|
|
3309
|
+
"cachePurgeError": "Cache wissen mislukt",
|
|
3310
|
+
"widgetBarcodeGenerated": "GS1 EAN-13 barcode ({{code}}) gegenereerd voor \"{{title}}\".",
|
|
3311
|
+
"widgetBarcodeError": "Barcode genereren mislukt",
|
|
3312
|
+
"defaultProductLabelTitle": "Productlabel",
|
|
3313
|
+
"widgetLabelPrepared": "Thermisch 50×25mm label & ZPL II voorbereid voor {{code}}.",
|
|
3314
|
+
"widgetLabelError": "Productlabel genereren mislukt"
|
|
3315
|
+
}
|
|
3316
|
+
};
|
|
3317
|
+
var pl_default = {
|
|
3318
|
+
nav: { "label": "Studio Kodów Kreskowych i Etykiet" },
|
|
3319
|
+
header: {
|
|
3320
|
+
"title": "Studio Kodów Kreskowych, QR, Etykiet Termicznych i Inwentaryzacji",
|
|
3321
|
+
"providersBadge": "GS1 + 10 Aktywnych Dostawców",
|
|
3322
|
+
"lastHidScan": "Ostatni Skan HID: {{code}}",
|
|
3323
|
+
"subtitle": "Zunifikowane wzbogacanie produktów GTIN/ISBN, generowanie kodów 1D/2D i QR HMAC, druk etykiet termicznych/A4 (HTML + Zebra ZPL II) oraz sesje inwentaryzacji magazynowej.",
|
|
3324
|
+
"languageLabel": "Język",
|
|
3325
|
+
"bulkGenerateButton": "Przypisz Brakujące Kody EAN-13 Wariantom",
|
|
3326
|
+
"refreshButton": "Odśwież Studio",
|
|
3327
|
+
"linkedProductsStat": "Powiązane Produkty GTIN",
|
|
3328
|
+
"dynamicTagsStat": "Dynamiczne Tagi Kodów / QR",
|
|
3329
|
+
"totalScansStat": "Łączna Liczba Skanów Tagów",
|
|
3330
|
+
"cachedLookupsStat": "Zapytania w Cache (Trafienia)",
|
|
3331
|
+
"activeProvidersStat": "Aktywni Dostawcy",
|
|
3332
|
+
"dismiss": "Zamknij"
|
|
3333
|
+
},
|
|
3334
|
+
tabs: {
|
|
3335
|
+
"lookup": "1. Wyszukiwanie GTIN i Import Wsadowy ({{count}})",
|
|
3336
|
+
"tags": "2. Dynamiczne Tagi 1D/2D i QR HMAC ({{count}})",
|
|
3337
|
+
"print": "3. Centrum Druku Termicznego i Arkuszy A4",
|
|
3338
|
+
"stockTake": "4. Inwentaryzacja Magazynowa ({{count}})",
|
|
3339
|
+
"providers": "5. Dostawcy i Pamięć Podręczna ({{count}})"
|
|
3340
|
+
},
|
|
3341
|
+
lookupTab: {
|
|
3342
|
+
"lookupTitle": "1. Zeskanuj lub Wprowadź GTIN / EAN-13 / UPC-A / ISBN-13",
|
|
3343
|
+
"lookupSubtitle": "Odpytuje OpenFoodFacts, OpenBeautyFacts, OpenPetFoodFacts, OpenProductsFacts, GoogleBooks, OpenLibrary, Brocade, UPCitemdb, EAN-Search oraz BarcodeLookup.",
|
|
3344
|
+
"barcodePlaceholder": "np. 3017620422003 lub 9780140328721",
|
|
3345
|
+
"strategyFirstHit": "Pierwsze Trafienie (Najszybsze)",
|
|
3346
|
+
"strategyDeepMerge": "Pełne Scalanie (Wszyscy Dostawcy)",
|
|
3347
|
+
"lookupOnlyButton": "Pobierz Tylko Metadane",
|
|
3348
|
+
"lookupAndCreateButton": "Wyszukaj i Utwórz Produkt Medusa ({{status}})",
|
|
3349
|
+
"normalizedFallback": "Znormalizowany: {{barcode}}",
|
|
3350
|
+
"matchedVia": "Dopasowano przez {{provider}}",
|
|
3351
|
+
"notFound": "Nie Znaleziono",
|
|
3352
|
+
"resultDetails": "Symbologia: {{symbology}} | Poprawna Cyfra Kontrolna GS1: {{valid}} | Marka: {{brand}}",
|
|
3353
|
+
"yes": "Tak",
|
|
3354
|
+
"no": "Nie",
|
|
3355
|
+
"na": "Brak",
|
|
3356
|
+
"batchTitle": "Wsadowy Importer Katalogu GTIN / ISBN",
|
|
3357
|
+
"batchSubtitle": "Wklej do 100 kodów kreskowych (po jednym w wierszu lub oddzielone przecinkami), aby automatycznie wyszukać i utworzyć produkty + warianty Medusa w jednej transakcji.",
|
|
3358
|
+
"batchRunButton": "Uruchom Import Wsadowy",
|
|
3359
|
+
"recentlyLinkedTitle": "Ostatnio Powiązane Produkty z Kodem Kreskowym ({{count}})",
|
|
3360
|
+
"noLinkedProducts": "Brak powiązanych produktów z kodem kreskowym."
|
|
3361
|
+
},
|
|
3362
|
+
tagsTab: {
|
|
3363
|
+
"createTitle": "Utwórz Kod 1D / Dynamiczny QR 2D / Tag Antypodróbkowy",
|
|
3364
|
+
"targetIdPlaceholder": "Docelowe ID Produktu / Wariantu",
|
|
3365
|
+
"labelPlaceholder": "Etykieta Taga",
|
|
3366
|
+
"symbologyQr": "Kod QR (2D)",
|
|
3367
|
+
"symbologyDatamatrix": "GS1 DataMatrix (2D)",
|
|
3368
|
+
"symbologyEan13": "EAN-13 (1D GS1)",
|
|
3369
|
+
"symbologyUpca": "UPC-A (1D)",
|
|
3370
|
+
"symbologyCode128": "Code 128B / GS1-128",
|
|
3371
|
+
"symbologyCode39": "Code 39",
|
|
3372
|
+
"actionView": "Otwórz Stronę Produktu",
|
|
3373
|
+
"actionAddToCart": "Natychmiastowe Dodanie do Koszyka",
|
|
3374
|
+
"actionVerify": "Pieczęć HMAC Antypodróbkowa",
|
|
3375
|
+
"actionDigitalLink": "URI GS1 Digital Link",
|
|
3376
|
+
"gs1GtinPlaceholder": "GS1 GTIN (01)",
|
|
3377
|
+
"batchLotPlaceholder": "Partia / Lot (10)",
|
|
3378
|
+
"serialNumberPlaceholder": "Numer Seryjny (21)",
|
|
3379
|
+
"generateButton": "Generuj Podpisany Tag Kodu / QR",
|
|
3380
|
+
"listTitle": "Wygenerowane Tagi Kodów Kreskowych i QR ({{count}})",
|
|
3381
|
+
"tagMeta": "Cel: {{target}} | Skany: {{scans}}",
|
|
3382
|
+
"hmacLabel": "HMAC: {{signature}}...",
|
|
3383
|
+
"deleteButton": "Usuń"
|
|
3384
|
+
},
|
|
3385
|
+
printTab: {
|
|
3386
|
+
"designerTitle": "Kreator Etykiet Cenowych/Kodów na Rolki Termiczne i Arkusze A4",
|
|
3387
|
+
"productTitlePlaceholder": "Tytuł Produktu",
|
|
3388
|
+
"variantTitlePlaceholder": "Tytuł Wariantu",
|
|
3389
|
+
"barcodePlaceholder": "Kod Kreskowy (EAN-13 / Code128)",
|
|
3390
|
+
"skuPlaceholder": "SKU",
|
|
3391
|
+
"salePricePlaceholder": "Cena Sprzedaży",
|
|
3392
|
+
"compareAtPricePlaceholder": "Cena Porównawcza / Katalogowa",
|
|
3393
|
+
"currencyPlaceholder": "Waluta (USD, EUR, GBP)",
|
|
3394
|
+
"quantityPlaceholder": "Liczba Etykiet",
|
|
3395
|
+
"renderButton": "Generuj Arkusz Druku (HTML+SVG) i Zebra ZPL II",
|
|
3396
|
+
"outputTitle": "Wynik Druku i Surowy Kod Zebra ZPL II",
|
|
3397
|
+
"labelsReadyBadge": "Gotowe Etykiety: {{count}} ({{name}})",
|
|
3398
|
+
"zplHeading": "Polecenia Termiczne Zebra ZPL II (^XA ... ^XZ):",
|
|
3399
|
+
"htmlHeading": "Gotowy do Druku Kod Źródłowy HTML+SVG:",
|
|
3400
|
+
"emptyState": "Skonfiguruj szablon etykiety i kliknij „Generuj Arkusz Druku”, aby wyświetlić podgląd kodu HTML+SVG oraz poleceń Zebra ZPL II."
|
|
3401
|
+
},
|
|
3402
|
+
stockTakeTab: {
|
|
3403
|
+
"createTitle": "Utwórz lub Skanuj do Sesji Inwentaryzacyjnej",
|
|
3404
|
+
"sessionNamePlaceholder": "Nazwa Sesji",
|
|
3405
|
+
"locationIdPlaceholder": "ID Lokalizacji Magazynowej",
|
|
3406
|
+
"startSessionButton": "Rozpocznij Nową Sesję Inwentaryzacyjną",
|
|
3407
|
+
"scannerTitle": "Szybki Licznik Skanów Kodów Kreskowych",
|
|
3408
|
+
"scannedBarcodePlaceholder": "Zeskanowany Kod Kreskowy",
|
|
3409
|
+
"itemTitlePlaceholder": "Tytuł Pozycji",
|
|
3410
|
+
"scanPlusOneButton": "Skanuj +1",
|
|
3411
|
+
"adjustMinusOneButton": "Koryguj -1",
|
|
3412
|
+
"sessionsTitle": "Sesje Inwentaryzacyjne i Rozliczanie Różnic ({{count}})",
|
|
3413
|
+
"sessionSummary": "Oczekiwano: {{expected}} | Zliczono: {{counted}} | Różnica: {{variance}}",
|
|
3414
|
+
"completeApplyButton": "Zakończ i Zastosuj w Magazynie",
|
|
3415
|
+
"completedBadge": "Zakończono",
|
|
3416
|
+
"expectedShort": "Oczek.: {{expected}}",
|
|
3417
|
+
"countedShort": "Zliczono:",
|
|
3418
|
+
"varianceShort": "(Różn.: {{variance}})"
|
|
3419
|
+
},
|
|
3420
|
+
providersTab: {
|
|
3421
|
+
"providersTitle": "Zarejestrowani Dostawcy Wyszukiwania GTIN / ISBN",
|
|
3422
|
+
"cacheTitle": "Pamięć Podręczna Zapytań o Kody Kreskowe ({{count}})",
|
|
3423
|
+
"purgeExpiredButton": "Wyczyść Wygasłe",
|
|
3424
|
+
"clearAllButton": "Wyczyść Cały Cache",
|
|
3425
|
+
"hitsBadge": "Trafienia: {{count}}"
|
|
3426
|
+
},
|
|
3427
|
+
widget: {
|
|
3428
|
+
"title": "Kody Kreskowe, Dynamiczny QR i Etykiety Termiczne",
|
|
3429
|
+
"defaultProductTitle": "Produkt",
|
|
3430
|
+
"subtitle": "{{productTitle}} — aktywne tagi: {{tagsCount}}, powiązane rekordy GTIN: {{barcodesCount}}",
|
|
3431
|
+
"generateButton": "Generuj GS1 EAN-13 i QR",
|
|
3432
|
+
"printButton": "Drukuj Etykietę Cenową/Kod",
|
|
3433
|
+
"codeLabel": "Kod:",
|
|
3434
|
+
"actionLabel": "Akcja:",
|
|
3435
|
+
"scansLabel": "Skany:",
|
|
3436
|
+
"zplOutputLabel": "Wyjście Zebra ZPL II ({{name}}):"
|
|
3437
|
+
},
|
|
3438
|
+
messages: {
|
|
3439
|
+
"loadStudioError": "Nie udało się załadować Studia Kodów Kreskowych",
|
|
3440
|
+
"hidScanDetected": "Skaner HID wykrył kod kreskowy: {{barcode}}",
|
|
3441
|
+
"lookupFound": "Znaleziono „{{name}}” przez {{provider}}",
|
|
3442
|
+
"lookupNotFound": "Brak dopasowania u dostawców dla {{barcode}}",
|
|
3443
|
+
"lookupError": "Wyszukiwanie nie powiodło się",
|
|
3444
|
+
"productCreated": "Utworzono produkt Medusa ({{productId}}) z kodu kreskowego {{barcode}}",
|
|
3445
|
+
"productCreateError": "Tworzenie produktu nie powiodło się",
|
|
3446
|
+
"batchImportFinished": "Import wsadowy zakończony: zaimportowano {{imported}}, nie znaleziono {{notFound}}.",
|
|
3447
|
+
"batchImportError": "Import wsadowy nie powiódł się",
|
|
3448
|
+
"bulkGenerated": "Wygenerowano {{count}} wewnętrznych kodów kreskowych wariantów GS1 EAN-13.",
|
|
3449
|
+
"bulkGenerateError": "Masowe generowanie kodów kreskowych nie powiodło się",
|
|
3450
|
+
"tagCreated": "Utworzono BarcodeTag {{code}}",
|
|
3451
|
+
"tagCreateError": "Nie udało się utworzyć taga",
|
|
3452
|
+
"tagDeleted": "Usunięto tag kodu kreskowego",
|
|
3453
|
+
"tagDeleteError": "Nie udało się usunąć taga",
|
|
3454
|
+
"labelsRendered": "Wygenerowano {{count}} etykiet(y) dla {{name}} (HTML + ZPL II gotowe)",
|
|
3455
|
+
"labelsRenderError": "Nie udało się wygenerować etykiet",
|
|
3456
|
+
"defaultCatalogItemTitle": "Pozycja Katalogowa",
|
|
3457
|
+
"sessionCreated": "Utworzono sesję inwentaryzacyjną „{{name}}”",
|
|
3458
|
+
"sessionCreateError": "Nie udało się utworzyć sesji inwentaryzacyjnej",
|
|
3459
|
+
"scanRecorded": "Zarejestrowano skan ({{delta}}) dla {{barcode}}",
|
|
3460
|
+
"scanError": "Skanowanie nie powiodło się",
|
|
3461
|
+
"sessionApplied": "Zakończono sesję inwentaryzacyjną i zastosowano różnice magazynowe",
|
|
3462
|
+
"sessionApplyError": "Nie udało się zastosować sesji inwentaryzacyjnej",
|
|
3463
|
+
"cachePurged": "Wyczyszczono {{count}} wpis(ów) pamięci podręcznej kodów kreskowych",
|
|
3464
|
+
"cachePurgeError": "Czyszczenie pamięci podręcznej nie powiodło się",
|
|
3465
|
+
"widgetBarcodeGenerated": "Wygenerowano kod kreskowy GS1 EAN-13 ({{code}}) dla „{{title}}”.",
|
|
3466
|
+
"widgetBarcodeError": "Nie udało się wygenerować kodu kreskowego",
|
|
3467
|
+
"defaultProductLabelTitle": "Etykieta Produktu",
|
|
3468
|
+
"widgetLabelPrepared": "Przygotowano etykietę termiczną 50×25mm oraz ZPL II dla {{code}}.",
|
|
3469
|
+
"widgetLabelError": "Nie udało się wygenerować etykiety produktu"
|
|
3470
|
+
}
|
|
3471
|
+
};
|
|
3472
|
+
var pt_default = {
|
|
3473
|
+
nav: { "label": "Estúdio de Códigos de Barras e Etiquetas" },
|
|
3474
|
+
header: {
|
|
3475
|
+
"title": "Estúdio de Códigos de Barras, QR, Etiquetas Térmicas e Inventário",
|
|
3476
|
+
"providersBadge": "GS1 + 10 Provedores Ativos",
|
|
3477
|
+
"lastHidScan": "Última Leitura HID: {{code}}",
|
|
3478
|
+
"subtitle": "Enriquecimento unificado de produtos GTIN/ISBN, geração de códigos 1D/2D e QR HMAC, impressão de etiquetas térmicas/A4 (HTML + Zebra ZPL II) e sessões de contagem de estoque.",
|
|
3479
|
+
"languageLabel": "Idioma",
|
|
3480
|
+
"bulkGenerateButton": "Atribuir EAN-13 Faltantes às Variantes",
|
|
3481
|
+
"refreshButton": "Atualizar Estúdio",
|
|
3482
|
+
"linkedProductsStat": "Produtos GTIN Vinculados",
|
|
3483
|
+
"dynamicTagsStat": "Tags Dinâmicas de Código/QR",
|
|
3484
|
+
"totalScansStat": "Total de Leituras de Tags",
|
|
3485
|
+
"cachedLookupsStat": "Consultas em Cache (Hits)",
|
|
3486
|
+
"activeProvidersStat": "Provedores Ativos",
|
|
3487
|
+
"dismiss": "Fechar"
|
|
3488
|
+
},
|
|
3489
|
+
tabs: {
|
|
3490
|
+
"lookup": "1. Consulta GTIN e Importador em Lote ({{count}})",
|
|
3491
|
+
"tags": "2. Tags Dinâmicas 1D/2D e QR HMAC ({{count}})",
|
|
3492
|
+
"print": "3. Central de Impressão Térmica e Folhas A4",
|
|
3493
|
+
"stockTake": "4. Contagem de Estoque ({{count}})",
|
|
3494
|
+
"providers": "5. Provedores e Cache ({{count}})"
|
|
3495
|
+
},
|
|
3496
|
+
lookupTab: {
|
|
3497
|
+
"lookupTitle": "1. Ler ou Digitar GTIN / EAN-13 / UPC-A / ISBN-13",
|
|
3498
|
+
"lookupSubtitle": "Consulta OpenFoodFacts, OpenBeautyFacts, OpenPetFoodFacts, OpenProductsFacts, GoogleBooks, OpenLibrary, Brocade, UPCitemdb, EAN-Search e BarcodeLookup.",
|
|
3499
|
+
"barcodePlaceholder": "ex. 3017620422003 ou 9780140328721",
|
|
3500
|
+
"strategyFirstHit": "Primeiro Resultado (Mais Rápido)",
|
|
3501
|
+
"strategyDeepMerge": "Fusão Completa (Todos os Provedores)",
|
|
3502
|
+
"lookupOnlyButton": "Consultar Apenas Metadados",
|
|
3503
|
+
"lookupAndCreateButton": "Consultar e Criar Produto Medusa ({{status}})",
|
|
3504
|
+
"normalizedFallback": "Normalizado: {{barcode}}",
|
|
3505
|
+
"matchedVia": "Encontrado via {{provider}}",
|
|
3506
|
+
"notFound": "Não Encontrado",
|
|
3507
|
+
"resultDetails": "Simbologia: {{symbology}} | Dígito Verificador GS1 Válido: {{valid}} | Marca: {{brand}}",
|
|
3508
|
+
"yes": "Sim",
|
|
3509
|
+
"no": "Não",
|
|
3510
|
+
"na": "N/D",
|
|
3511
|
+
"batchTitle": "Importador de Catálogo GTIN / ISBN em Lote",
|
|
3512
|
+
"batchSubtitle": "Cole até 100 códigos de barras (um por linha ou separados por vírgula) para consultar e criar automaticamente produtos + variantes Medusa em uma transação.",
|
|
3513
|
+
"batchRunButton": "Executar Importação em Lote",
|
|
3514
|
+
"recentlyLinkedTitle": "Produtos Vinculados Recentemente por Código de Barras ({{count}})",
|
|
3515
|
+
"noLinkedProducts": "Nenhum produto vinculado por código de barras ainda."
|
|
3516
|
+
},
|
|
3517
|
+
tagsTab: {
|
|
3518
|
+
"createTitle": "Criar Código 1D / QR Dinâmico 2D / Tag Antifalsificação",
|
|
3519
|
+
"targetIdPlaceholder": "ID do Produto / Variante Alvo",
|
|
3520
|
+
"labelPlaceholder": "Rótulo da Tag",
|
|
3521
|
+
"symbologyQr": "Código QR (2D)",
|
|
3522
|
+
"symbologyDatamatrix": "GS1 DataMatrix (2D)",
|
|
3523
|
+
"symbologyEan13": "EAN-13 (1D GS1)",
|
|
3524
|
+
"symbologyUpca": "UPC-A (1D)",
|
|
3525
|
+
"symbologyCode128": "Code 128B / GS1-128",
|
|
3526
|
+
"symbologyCode39": "Code 39",
|
|
3527
|
+
"actionView": "Abrir Página do Produto",
|
|
3528
|
+
"actionAddToCart": "Adicionar ao Carrinho Instantaneamente",
|
|
3529
|
+
"actionVerify": "Selo HMAC Antifalsificação",
|
|
3530
|
+
"actionDigitalLink": "URI GS1 Digital Link",
|
|
3531
|
+
"gs1GtinPlaceholder": "GS1 GTIN (01)",
|
|
3532
|
+
"batchLotPlaceholder": "Lote (10)",
|
|
3533
|
+
"serialNumberPlaceholder": "Número de Série (21)",
|
|
3534
|
+
"generateButton": "Gerar Tag de Código / QR Assinada",
|
|
3535
|
+
"listTitle": "Tags de Código de Barras e QR Geradas ({{count}})",
|
|
3536
|
+
"tagMeta": "Alvo: {{target}} | Leituras: {{scans}}",
|
|
3537
|
+
"hmacLabel": "HMAC: {{signature}}...",
|
|
3538
|
+
"deleteButton": "Excluir"
|
|
3539
|
+
},
|
|
3540
|
+
printTab: {
|
|
3541
|
+
"designerTitle": "Designer de Etiquetas de Preço/Código para Rolo Térmico e Folha A4",
|
|
3542
|
+
"productTitlePlaceholder": "Título do Produto",
|
|
3543
|
+
"variantTitlePlaceholder": "Título da Variante",
|
|
3544
|
+
"barcodePlaceholder": "Código de Barras (EAN-13 / Code128)",
|
|
3545
|
+
"skuPlaceholder": "SKU",
|
|
3546
|
+
"salePricePlaceholder": "Preço de Venda",
|
|
3547
|
+
"compareAtPricePlaceholder": "Preço Comparativo / Tabelado",
|
|
3548
|
+
"currencyPlaceholder": "Moeda (USD, EUR, GBP)",
|
|
3549
|
+
"quantityPlaceholder": "Quantidade de Etiquetas",
|
|
3550
|
+
"renderButton": "Gerar Folha de Impressão (HTML+SVG) e Zebra ZPL II",
|
|
3551
|
+
"outputTitle": "Saída de Impressão e Zebra ZPL II Bruto",
|
|
3552
|
+
"labelsReadyBadge": "{{count}} Etiqueta(s) Pronta(s) ({{name}})",
|
|
3553
|
+
"zplHeading": "Comandos Térmicos Zebra ZPL II (^XA ... ^XZ):",
|
|
3554
|
+
"htmlHeading": "Código-Fonte HTML+SVG Pronto para Impressão:",
|
|
3555
|
+
"emptyState": "Configure seu modelo de etiqueta e clique em \"Gerar Folha de Impressão\" para visualizar o HTML+SVG e os comandos Zebra ZPL II."
|
|
3556
|
+
},
|
|
3557
|
+
stockTakeTab: {
|
|
3558
|
+
"createTitle": "Criar ou Ler em Sessão de Contagem de Estoque",
|
|
3559
|
+
"sessionNamePlaceholder": "Nome da Sessão",
|
|
3560
|
+
"locationIdPlaceholder": "ID do Local de Estoque",
|
|
3561
|
+
"startSessionButton": "Iniciar Nova Sessão de Contagem",
|
|
3562
|
+
"scannerTitle": "Contador Rápido por Leitura de Código de Barras",
|
|
3563
|
+
"scannedBarcodePlaceholder": "Código de Barras Lido",
|
|
3564
|
+
"itemTitlePlaceholder": "Título do Item",
|
|
3565
|
+
"scanPlusOneButton": "Ler +1",
|
|
3566
|
+
"adjustMinusOneButton": "Ajustar -1",
|
|
3567
|
+
"sessionsTitle": "Sessões de Contagem e Conciliação de Divergências ({{count}})",
|
|
3568
|
+
"sessionSummary": "Esperado: {{expected}} | Contado: {{counted}} | Divergência: {{variance}}",
|
|
3569
|
+
"completeApplyButton": "Concluir e Aplicar ao Estoque",
|
|
3570
|
+
"completedBadge": "Concluído",
|
|
3571
|
+
"expectedShort": "Esp: {{expected}}",
|
|
3572
|
+
"countedShort": "Contado:",
|
|
3573
|
+
"varianceShort": "(Div: {{variance}})"
|
|
3574
|
+
},
|
|
3575
|
+
providersTab: {
|
|
3576
|
+
"providersTitle": "Provedores Registrados de Consulta GTIN / ISBN",
|
|
3577
|
+
"cacheTitle": "Cache de Consultas de Códigos de Barras ({{count}})",
|
|
3578
|
+
"purgeExpiredButton": "Limpar Expirados",
|
|
3579
|
+
"clearAllButton": "Limpar Todo o Cache",
|
|
3580
|
+
"hitsBadge": "Hits: {{count}}"
|
|
3581
|
+
},
|
|
3582
|
+
widget: {
|
|
3583
|
+
"title": "Códigos de Barras, QR Dinâmico e Etiquetas Térmicas",
|
|
3584
|
+
"defaultProductTitle": "Produto",
|
|
3585
|
+
"subtitle": "{{productTitle}} — {{tagsCount}} tag(s) ativa(s), {{barcodesCount}} registro(s) GTIN vinculado(s)",
|
|
3586
|
+
"generateButton": "Gerar GS1 EAN-13 e QR",
|
|
3587
|
+
"printButton": "Imprimir Etiqueta de Preço/Código",
|
|
3588
|
+
"codeLabel": "Código:",
|
|
3589
|
+
"actionLabel": "Ação:",
|
|
3590
|
+
"scansLabel": "Leituras:",
|
|
3591
|
+
"zplOutputLabel": "Saída Zebra ZPL II ({{name}}):"
|
|
3592
|
+
},
|
|
3593
|
+
messages: {
|
|
3594
|
+
"loadStudioError": "Falha ao carregar o Estúdio de Códigos de Barras",
|
|
3595
|
+
"hidScanDetected": "Leitor HID detectou o código de barras: {{barcode}}",
|
|
3596
|
+
"lookupFound": "\"{{name}}\" encontrado via {{provider}}",
|
|
3597
|
+
"lookupNotFound": "Nenhuma correspondência encontrada para {{barcode}}",
|
|
3598
|
+
"lookupError": "Falha na consulta",
|
|
3599
|
+
"productCreated": "Produto Medusa criado ({{productId}}) a partir do código {{barcode}}",
|
|
3600
|
+
"productCreateError": "Falha na criação do produto",
|
|
3601
|
+
"batchImportFinished": "Importação em lote concluída: {{imported}} importados, {{notFound}} não encontrados.",
|
|
3602
|
+
"batchImportError": "Falha na importação em lote",
|
|
3603
|
+
"bulkGenerated": "{{count}} códigos de barras de variante GS1 EAN-13 internos gerados.",
|
|
3604
|
+
"bulkGenerateError": "Falha na geração em massa de códigos de barras",
|
|
3605
|
+
"tagCreated": "BarcodeTag {{code}} criada",
|
|
3606
|
+
"tagCreateError": "Falha ao criar a tag",
|
|
3607
|
+
"tagDeleted": "Tag de código de barras excluída",
|
|
3608
|
+
"tagDeleteError": "Falha ao excluir a tag",
|
|
3609
|
+
"labelsRendered": "{{count}} etiqueta(s) gerada(s) para {{name}} (HTML + ZPL II prontos)",
|
|
3610
|
+
"labelsRenderError": "Falha ao gerar etiquetas",
|
|
3611
|
+
"defaultCatalogItemTitle": "Item do Catálogo",
|
|
3612
|
+
"sessionCreated": "Sessão de contagem de estoque \"{{name}}\" criada",
|
|
3613
|
+
"sessionCreateError": "Falha ao criar sessão de contagem",
|
|
3614
|
+
"scanRecorded": "Leitura registrada ({{delta}}) para {{barcode}}",
|
|
3615
|
+
"scanError": "Falha na leitura",
|
|
3616
|
+
"sessionApplied": "Sessão de contagem concluída e divergências aplicadas ao estoque",
|
|
3617
|
+
"sessionApplyError": "Falha ao aplicar sessão de contagem",
|
|
3618
|
+
"cachePurged": "{{count}} entrada(s) de cache de código de barras removida(s)",
|
|
3619
|
+
"cachePurgeError": "Falha ao limpar o cache",
|
|
3620
|
+
"widgetBarcodeGenerated": "Código de barras GS1 EAN-13 ({{code}}) gerado para \"{{title}}\".",
|
|
3621
|
+
"widgetBarcodeError": "Falha ao gerar código de barras",
|
|
3622
|
+
"defaultProductLabelTitle": "Etiqueta do Produto",
|
|
3623
|
+
"widgetLabelPrepared": "Etiqueta térmica 50×25mm e ZPL II preparados para {{code}}.",
|
|
3624
|
+
"widgetLabelError": "Falha ao gerar etiqueta do produto"
|
|
3625
|
+
}
|
|
3626
|
+
};
|
|
3627
|
+
var tr_default = {
|
|
3628
|
+
nav: { "label": "Barkod ve Etiket Stüdyosu" },
|
|
3629
|
+
header: {
|
|
3630
|
+
"title": "Barkod, QR, Termal Etiket ve Envanter Stüdyosu",
|
|
3631
|
+
"providersBadge": "GS1 + 10 Sağlayıcı Aktif",
|
|
3632
|
+
"lastHidScan": "Son HID Taraması: {{code}}",
|
|
3633
|
+
"subtitle": "Birleşik GTIN/ISBN ürün zenginleştirme, 1D/2D barkod ve HMAC QR üretimi, termal/A4 fiyat etiketi yazdırma (HTML + Zebra ZPL II) ve depo sayım oturumları.",
|
|
3634
|
+
"languageLabel": "Dil",
|
|
3635
|
+
"bulkGenerateButton": "Eksik Varyant EAN-13 Kodlarını Otomatik Ata",
|
|
3636
|
+
"refreshButton": "Stüdyoyu Yenile",
|
|
3637
|
+
"linkedProductsStat": "Bağlı GTIN Ürünleri",
|
|
3638
|
+
"dynamicTagsStat": "Dinamik Barkod/QR Etiketleri",
|
|
3639
|
+
"totalScansStat": "Toplam Etiket Taraması",
|
|
3640
|
+
"cachedLookupsStat": "Önbellek Sorguları (İsabet)",
|
|
3641
|
+
"activeProvidersStat": "Aktif Sağlayıcılar",
|
|
3642
|
+
"dismiss": "Kapat"
|
|
3643
|
+
},
|
|
3644
|
+
tabs: {
|
|
3645
|
+
"lookup": "1. GTIN Sorgulama ve Toplu İçe Aktarma ({{count}})",
|
|
3646
|
+
"tags": "2. Dinamik 1D/2D ve HMAC QR Etiketleri ({{count}})",
|
|
3647
|
+
"print": "3. Termal ve A4 Etiket Baskı Merkezi",
|
|
3648
|
+
"stockTake": "4. Depo Stok Sayımı ({{count}})",
|
|
3649
|
+
"providers": "5. Sağlayıcılar ve Önbellek ({{count}})"
|
|
3650
|
+
},
|
|
3651
|
+
lookupTab: {
|
|
3652
|
+
"lookupTitle": "1. GTIN / EAN-13 / UPC-A / ISBN-13 Tarayın veya Girin",
|
|
3653
|
+
"lookupSubtitle": "OpenFoodFacts, OpenBeautyFacts, OpenPetFoodFacts, OpenProductsFacts, GoogleBooks, OpenLibrary, Brocade, UPCitemdb, EAN-Search ve BarcodeLookup kaynaklarını sorgular.",
|
|
3654
|
+
"barcodePlaceholder": "örn. 3017620422003 veya 9780140328721",
|
|
3655
|
+
"strategyFirstHit": "İlk Eşleşme (En Hızlı)",
|
|
3656
|
+
"strategyDeepMerge": "Derin Birleştirme (Tüm Sağlayıcılar)",
|
|
3657
|
+
"lookupOnlyButton": "Yalnızca Meta Verileri Sorgula",
|
|
3658
|
+
"lookupAndCreateButton": "Sorgula ve Medusa Ürünü Oluştur ({{status}})",
|
|
3659
|
+
"normalizedFallback": "Normalize Edildi: {{barcode}}",
|
|
3660
|
+
"matchedVia": "{{provider}} üzerinden eşleşti",
|
|
3661
|
+
"notFound": "Bulunamadı",
|
|
3662
|
+
"resultDetails": "Semboloji: {{symbology}} | Geçerli GS1 Kontrol Basamağı: {{valid}} | Marka: {{brand}}",
|
|
3663
|
+
"yes": "Evet",
|
|
3664
|
+
"no": "Hayır",
|
|
3665
|
+
"na": "Yok",
|
|
3666
|
+
"batchTitle": "Toplu GTIN / ISBN Katalog İçe Aktarıcı",
|
|
3667
|
+
"batchSubtitle": "Medusa ürünlerini ve varyantlarını tek bir işlemde otomatik sorgulayıp oluşturmak için en fazla 100 barkod (her satıra bir tane veya virgülle ayrılmış) yapıştırın.",
|
|
3668
|
+
"batchRunButton": "Toplu İçe Aktarma İş Akışını Çalıştır",
|
|
3669
|
+
"recentlyLinkedTitle": "Son Bağlanan Barkodlu Ürünler ({{count}})",
|
|
3670
|
+
"noLinkedProducts": "Henüz barkodlu ürün bağlanmadı."
|
|
3671
|
+
},
|
|
3672
|
+
tagsTab: {
|
|
3673
|
+
"createTitle": "1D Barkod / 2D Dinamik QR / Sahtecilik Önleyici Etiket Oluştur",
|
|
3674
|
+
"targetIdPlaceholder": "Hedef Ürün / Varyant ID",
|
|
3675
|
+
"labelPlaceholder": "Etiket Adı",
|
|
3676
|
+
"symbologyQr": "QR Kod (2D)",
|
|
3677
|
+
"symbologyDatamatrix": "GS1 DataMatrix (2D)",
|
|
3678
|
+
"symbologyEan13": "EAN-13 (1D GS1)",
|
|
3679
|
+
"symbologyUpca": "UPC-A (1D)",
|
|
3680
|
+
"symbologyCode128": "Code 128B / GS1-128",
|
|
3681
|
+
"symbologyCode39": "Code 39",
|
|
3682
|
+
"actionView": "Ürün Sayfasını Aç",
|
|
3683
|
+
"actionAddToCart": "Anında Sepete Ekle",
|
|
3684
|
+
"actionVerify": "Sahtecilik Önleyici HMAC Mührü",
|
|
3685
|
+
"actionDigitalLink": "GS1 Digital Link URI",
|
|
3686
|
+
"gs1GtinPlaceholder": "GS1 GTIN (01)",
|
|
3687
|
+
"batchLotPlaceholder": "Parti / Lot (10)",
|
|
3688
|
+
"serialNumberPlaceholder": "Seri Numarası (21)",
|
|
3689
|
+
"generateButton": "İmzalı Barkod / QR Etiketi Oluştur",
|
|
3690
|
+
"listTitle": "Oluşturulan Barkod ve QR Etiketleri ({{count}})",
|
|
3691
|
+
"tagMeta": "Hedef: {{target}} | Tarama: {{scans}}",
|
|
3692
|
+
"hmacLabel": "HMAC: {{signature}}...",
|
|
3693
|
+
"deleteButton": "Sil"
|
|
3694
|
+
},
|
|
3695
|
+
printTab: {
|
|
3696
|
+
"designerTitle": "Termal Rulo ve A4 Sayfa Fiyat/Barkod Etiketi Tasarımcısı",
|
|
3697
|
+
"productTitlePlaceholder": "Ürün Başlığı",
|
|
3698
|
+
"variantTitlePlaceholder": "Varyant Başlığı",
|
|
3699
|
+
"barcodePlaceholder": "Barkod (EAN-13 / Code128)",
|
|
3700
|
+
"skuPlaceholder": "SKU",
|
|
3701
|
+
"salePricePlaceholder": "Satış Fiyatı",
|
|
3702
|
+
"compareAtPricePlaceholder": "Karşılaştırma / Liste Fiyatı",
|
|
3703
|
+
"currencyPlaceholder": "Para Birimi (USD, EUR, GBP)",
|
|
3704
|
+
"quantityPlaceholder": "Etiket Adedi",
|
|
3705
|
+
"renderButton": "Baskı Sayfası (HTML+SVG) ve Zebra ZPL II Oluştur",
|
|
3706
|
+
"outputTitle": "Baskı Çıktısı ve Ham Zebra ZPL II",
|
|
3707
|
+
"labelsReadyBadge": "{{count}} Etiket Hazır ({{name}})",
|
|
3708
|
+
"zplHeading": "Zebra ZPL II Termal Komutları (^XA ... ^XZ):",
|
|
3709
|
+
"htmlHeading": "Baskıya Hazır HTML+SVG Belge Kaynağı:",
|
|
3710
|
+
"emptyState": "Etiket şablonunuzu yapılandırın ve baskıya hazır HTML+SVG ile Zebra ZPL II komutlarını önizlemek için \"Baskı Sayfası Oluştur\" düğmesine tıklayın."
|
|
3711
|
+
},
|
|
3712
|
+
stockTakeTab: {
|
|
3713
|
+
"createTitle": "Stok Sayım Oturumu Oluştur veya Oturuma Tara",
|
|
3714
|
+
"sessionNamePlaceholder": "Oturum Adı",
|
|
3715
|
+
"locationIdPlaceholder": "Stok Konum ID",
|
|
3716
|
+
"startSessionButton": "Yeni Stok Sayım Oturumu Başlat",
|
|
3717
|
+
"scannerTitle": "Hızlı Barkod Tarama Sayacı",
|
|
3718
|
+
"scannedBarcodePlaceholder": "Taranan Barkod",
|
|
3719
|
+
"itemTitlePlaceholder": "Ürün Adı",
|
|
3720
|
+
"scanPlusOneButton": "+1 Sayım Tara",
|
|
3721
|
+
"adjustMinusOneButton": "-1 Sayım Düzelt",
|
|
3722
|
+
"sessionsTitle": "Stok Sayım Oturumları ve Fark Mutabakatı ({{count}})",
|
|
3723
|
+
"sessionSummary": "Beklenen: {{expected}} | Sayılan: {{counted}} | Fark: {{variance}}",
|
|
3724
|
+
"completeApplyButton": "Tamamla ve Envantere Uygula",
|
|
3725
|
+
"completedBadge": "Tamamlandı",
|
|
3726
|
+
"expectedShort": "Bekl: {{expected}}",
|
|
3727
|
+
"countedShort": "Sayılan:",
|
|
3728
|
+
"varianceShort": "(Fark: {{variance}})"
|
|
3729
|
+
},
|
|
3730
|
+
providersTab: {
|
|
3731
|
+
"providersTitle": "Kayıtlı GTIN / ISBN Sorgulama Sağlayıcıları",
|
|
3732
|
+
"cacheTitle": "Barkod Sorgulama Önbelleği ({{count}})",
|
|
3733
|
+
"purgeExpiredButton": "Süresi Dolanları Temizle",
|
|
3734
|
+
"clearAllButton": "Tüm Önbelleği Temizle",
|
|
3735
|
+
"hitsBadge": "İsabet: {{count}}"
|
|
3736
|
+
},
|
|
3737
|
+
widget: {
|
|
3738
|
+
"title": "Barkodlar, Dinamik QR ve Termal Etiketler",
|
|
3739
|
+
"defaultProductTitle": "Ürün",
|
|
3740
|
+
"subtitle": "{{productTitle}} — {{tagsCount}} aktif etiket, {{barcodesCount}} bağlı GTIN kaydı",
|
|
3741
|
+
"generateButton": "GS1 EAN-13 ve QR Oluştur",
|
|
3742
|
+
"printButton": "Fiyat/Barkod Etiketi Yazdır",
|
|
3743
|
+
"codeLabel": "Kod:",
|
|
3744
|
+
"actionLabel": "İşlem:",
|
|
3745
|
+
"scansLabel": "Taramalar:",
|
|
3746
|
+
"zplOutputLabel": "Zebra ZPL II Çıktısı ({{name}}):"
|
|
3747
|
+
},
|
|
3748
|
+
messages: {
|
|
3749
|
+
"loadStudioError": "Barkod Stüdyosu yüklenemedi",
|
|
3750
|
+
"hidScanDetected": "HID Tarayıcı barkod algıladı: {{barcode}}",
|
|
3751
|
+
"lookupFound": "{{provider}} üzerinden \"{{name}}\" bulundu",
|
|
3752
|
+
"lookupNotFound": "{{barcode}} için sağlayıcı eşleşmesi bulunamadı",
|
|
3753
|
+
"lookupError": "Sorgulama başarısız oldu",
|
|
3754
|
+
"productCreated": "{{barcode}} barkodundan Medusa ürünü ({{productId}}) oluşturuldu",
|
|
3755
|
+
"productCreateError": "Ürün oluşturma başarısız oldu",
|
|
3756
|
+
"batchImportFinished": "Toplu içe aktarma tamamlandı: {{imported}} içe aktarıldı, {{notFound}} bulunamadı.",
|
|
3757
|
+
"batchImportError": "Toplu içe aktarma başarısız oldu",
|
|
3758
|
+
"bulkGenerated": "{{count}} adet GS1 mağaza içi EAN-13 varyant barkodu oluşturuldu.",
|
|
3759
|
+
"bulkGenerateError": "Toplu barkod oluşturma başarısız oldu",
|
|
3760
|
+
"tagCreated": "BarcodeTag {{code}} oluşturuldu",
|
|
3761
|
+
"tagCreateError": "Etiket oluşturulamadı",
|
|
3762
|
+
"tagDeleted": "Barkod etiketi silindi",
|
|
3763
|
+
"tagDeleteError": "Etiket silinemedi",
|
|
3764
|
+
"labelsRendered": "{{name}} için {{count}} etiket oluşturuldu (HTML + ZPL II hazır)",
|
|
3765
|
+
"labelsRenderError": "Etiketler oluşturulamadı",
|
|
3766
|
+
"defaultCatalogItemTitle": "Katalog Ürünü",
|
|
3767
|
+
"sessionCreated": "\"{{name}}\" stok sayım oturumu oluşturuldu",
|
|
3768
|
+
"sessionCreateError": "Sayım oturumu oluşturulamadı",
|
|
3769
|
+
"scanRecorded": "{{barcode}} için tarama ({{delta}}) kaydedildi",
|
|
3770
|
+
"scanError": "Tarama başarısız oldu",
|
|
3771
|
+
"sessionApplied": "Stok sayım oturumu tamamlandı ve envanter farkları uygulandı",
|
|
3772
|
+
"sessionApplyError": "Sayım oturumu uygulanamadı",
|
|
3773
|
+
"cachePurged": "{{count}} önbelleğe alınmış barkod kaydı temizlendi",
|
|
3774
|
+
"cachePurgeError": "Önbellek temizleme başarısız oldu",
|
|
3775
|
+
"widgetBarcodeGenerated": "\"{{title}}\" için GS1 EAN-13 barkodu ({{code}}) oluşturuldu.",
|
|
3776
|
+
"widgetBarcodeError": "Barkod oluşturulamadı",
|
|
3777
|
+
"defaultProductLabelTitle": "Ürün Etiketi",
|
|
3778
|
+
"widgetLabelPrepared": "{{code}} için 50×25mm termal etiket ve ZPL II hazırlandı.",
|
|
3779
|
+
"widgetLabelError": "Ürün etiketi oluşturulamadı"
|
|
3780
|
+
}
|
|
3781
|
+
};
|
|
3782
|
+
// src/admin/i18n/index.ts
|
|
3783
|
+
var i18n_default = {
|
|
3784
|
+
ar: {
|
|
3785
|
+
translation: ar_default,
|
|
3786
|
+
barcodes: ar_default
|
|
3787
|
+
},
|
|
3788
|
+
de: {
|
|
3789
|
+
translation: de_default,
|
|
3790
|
+
barcodes: de_default
|
|
3791
|
+
},
|
|
3792
|
+
en: {
|
|
3793
|
+
translation: en_default,
|
|
3794
|
+
barcodes: en_default
|
|
3795
|
+
},
|
|
3796
|
+
es: {
|
|
3797
|
+
translation: es_default,
|
|
3798
|
+
barcodes: es_default
|
|
3799
|
+
},
|
|
3800
|
+
fr: {
|
|
3801
|
+
translation: fr_default,
|
|
3802
|
+
barcodes: fr_default
|
|
3803
|
+
},
|
|
3804
|
+
it: {
|
|
3805
|
+
translation: it_default,
|
|
3806
|
+
barcodes: it_default
|
|
3807
|
+
},
|
|
3808
|
+
nl: {
|
|
3809
|
+
translation: nl_default,
|
|
3810
|
+
barcodes: nl_default
|
|
3811
|
+
},
|
|
3812
|
+
pl: {
|
|
3813
|
+
translation: pl_default,
|
|
3814
|
+
barcodes: pl_default
|
|
3815
|
+
},
|
|
3816
|
+
pt: {
|
|
3817
|
+
translation: pt_default,
|
|
3818
|
+
barcodes: pt_default
|
|
3819
|
+
},
|
|
3820
|
+
tr: {
|
|
3821
|
+
translation: tr_default,
|
|
3822
|
+
barcodes: tr_default
|
|
3823
|
+
}
|
|
3824
|
+
};
|
|
3825
|
+
var plugin = {
|
|
3826
|
+
widgetModule: { widgets: [{
|
|
3827
|
+
Component: ProductBarcodeWidget,
|
|
3828
|
+
zone: ["product.details.after"],
|
|
3829
|
+
widgetId: "Widget-28d8"
|
|
3830
|
+
}] },
|
|
3831
|
+
routeModule: { routes: [
|
|
3832
|
+
{
|
|
3833
|
+
Component: GuardedBarcodesOverviewPage,
|
|
3834
|
+
path: "/barcodes",
|
|
3835
|
+
handle: {
|
|
3836
|
+
label: config$5.label,
|
|
3837
|
+
translationNs: config$5.translationNs,
|
|
3838
|
+
permissions: config$5.permissions,
|
|
3839
|
+
...handle$5
|
|
3840
|
+
}
|
|
3841
|
+
},
|
|
3842
|
+
{
|
|
3843
|
+
Component: GuardedBarcodeLookupPage,
|
|
3844
|
+
path: "/barcodes/lookup",
|
|
3845
|
+
handle: {
|
|
3846
|
+
label: config$4.label,
|
|
3847
|
+
translationNs: config$4.translationNs,
|
|
3848
|
+
permissions: config$4.permissions,
|
|
3849
|
+
...handle$4
|
|
3850
|
+
}
|
|
3851
|
+
},
|
|
3852
|
+
{
|
|
3853
|
+
Component: GuardedBarcodePrintCenterPage,
|
|
3854
|
+
path: "/barcodes/print",
|
|
3855
|
+
handle: {
|
|
3856
|
+
label: config$3.label,
|
|
3857
|
+
translationNs: config$3.translationNs,
|
|
3858
|
+
permissions: config$3.permissions,
|
|
3859
|
+
...handle$3
|
|
3860
|
+
}
|
|
3861
|
+
},
|
|
3862
|
+
{
|
|
3863
|
+
Component: GuardedBarcodeProvidersPage,
|
|
3864
|
+
path: "/barcodes/providers",
|
|
3865
|
+
handle: {
|
|
3866
|
+
label: config$2.label,
|
|
3867
|
+
translationNs: config$2.translationNs,
|
|
3868
|
+
permissions: config$2.permissions,
|
|
3869
|
+
...handle$2
|
|
3870
|
+
}
|
|
3871
|
+
},
|
|
3872
|
+
{
|
|
3873
|
+
Component: GuardedBarcodeStockTakePage,
|
|
3874
|
+
path: "/barcodes/stock-take",
|
|
3875
|
+
handle: {
|
|
3876
|
+
label: config$1.label,
|
|
3877
|
+
translationNs: config$1.translationNs,
|
|
3878
|
+
permissions: config$1.permissions,
|
|
3879
|
+
...handle$1
|
|
3880
|
+
}
|
|
3881
|
+
},
|
|
3882
|
+
{
|
|
3883
|
+
Component: GuardedBarcodeTagsPage,
|
|
3884
|
+
path: "/barcodes/tags",
|
|
3885
|
+
handle: {
|
|
3886
|
+
label: config.label,
|
|
3887
|
+
translationNs: config.translationNs,
|
|
3888
|
+
permissions: config.permissions,
|
|
3889
|
+
...handle
|
|
3890
|
+
},
|
|
3891
|
+
children: [{
|
|
3892
|
+
Component: GuardedBarcodeTagCreateModal,
|
|
3893
|
+
path: "/barcodes/tags/create"
|
|
3894
|
+
}]
|
|
3895
|
+
}
|
|
3896
|
+
] },
|
|
3897
|
+
menuItemModule: { menuItems: [
|
|
3898
|
+
{
|
|
3899
|
+
label: config$5.label,
|
|
3900
|
+
icon: config$5.icon,
|
|
3901
|
+
path: "/barcodes",
|
|
3902
|
+
nested: void 0,
|
|
3903
|
+
rank: void 0,
|
|
3904
|
+
translationNs: config$5.translationNs,
|
|
3905
|
+
permissions: void 0
|
|
3906
|
+
},
|
|
3907
|
+
{
|
|
3908
|
+
label: config$4.label,
|
|
3909
|
+
icon: config$4.icon,
|
|
3910
|
+
path: "/barcodes/lookup",
|
|
3911
|
+
nested: void 0,
|
|
3912
|
+
rank: void 0,
|
|
3913
|
+
translationNs: config$4.translationNs,
|
|
3914
|
+
permissions: void 0
|
|
3915
|
+
},
|
|
3916
|
+
{
|
|
3917
|
+
label: config$3.label,
|
|
3918
|
+
icon: config$3.icon,
|
|
3919
|
+
path: "/barcodes/print",
|
|
3920
|
+
nested: void 0,
|
|
3921
|
+
rank: void 0,
|
|
3922
|
+
translationNs: config$3.translationNs,
|
|
3923
|
+
permissions: void 0
|
|
3924
|
+
},
|
|
3925
|
+
{
|
|
3926
|
+
label: config$2.label,
|
|
3927
|
+
icon: config$2.icon,
|
|
3928
|
+
path: "/barcodes/providers",
|
|
3929
|
+
nested: void 0,
|
|
3930
|
+
rank: void 0,
|
|
3931
|
+
translationNs: config$2.translationNs,
|
|
3932
|
+
permissions: void 0
|
|
3933
|
+
},
|
|
3934
|
+
{
|
|
3935
|
+
label: config$1.label,
|
|
3936
|
+
icon: config$1.icon,
|
|
3937
|
+
path: "/barcodes/stock-take",
|
|
3938
|
+
nested: void 0,
|
|
3939
|
+
rank: void 0,
|
|
3940
|
+
translationNs: config$1.translationNs,
|
|
3941
|
+
permissions: void 0
|
|
3942
|
+
},
|
|
3943
|
+
{
|
|
3944
|
+
label: config.label,
|
|
3945
|
+
icon: config.icon,
|
|
3946
|
+
path: "/barcodes/tags",
|
|
3947
|
+
nested: void 0,
|
|
3948
|
+
rank: void 0,
|
|
3949
|
+
translationNs: config.translationNs,
|
|
3950
|
+
permissions: void 0
|
|
3951
|
+
}
|
|
3952
|
+
] },
|
|
3953
|
+
formModule: { customFields: {} },
|
|
3954
|
+
displayModule: { displays: {} },
|
|
3955
|
+
i18nModule: { resources: i18n_default },
|
|
3956
|
+
cellRendererModule: {},
|
|
3957
|
+
layoutModule: { layouts: [] },
|
|
3958
|
+
searchEntityModule: {}
|
|
3959
|
+
};
|
|
3960
|
+
module.exports = plugin;
|