@atomsolution/sdk-merchant 1.8.5 → 1.8.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/locales/en/file.json.d.ts +4 -2
- package/dist/assets/locales/vi/file.json.d.ts +4 -2
- package/dist/batch-product-creation.cjs +41 -41
- package/dist/batch-product-creation.cjs.map +1 -1
- package/dist/batch-product-creation.esm.js +41 -41
- package/dist/batch-product-creation.esm.js.map +1 -1
- package/dist/batch-product-creation.js +41 -41
- package/dist/batch-product-creation.js.map +1 -1
- package/dist/digistore.cjs +1 -1
- package/dist/digistore.esm.js +1 -1
- package/dist/digistore.js +1 -1
- package/dist/{dropdownMenuAbsolute-t4SPWS3W.cjs → dropdownMenuAbsolute-BYTyDl09.cjs} +2 -2
- package/dist/{dropdownMenuAbsolute-t4SPWS3W.cjs.map → dropdownMenuAbsolute-BYTyDl09.cjs.map} +1 -1
- package/dist/{dropdownMenuAbsolute-0z-SL48l.js → dropdownMenuAbsolute-CvvI2uRj.js} +2 -2
- package/dist/{dropdownMenuAbsolute-0z-SL48l.js.map → dropdownMenuAbsolute-CvvI2uRj.js.map} +1 -1
- package/dist/merchant-profile.cjs +2 -2
- package/dist/merchant-profile.esm.js +2 -2
- package/dist/merchant-profile.js +2 -2
- package/dist/{use-translation-Dpu_N-4j.js → use-translation-CPJMFAae.js} +13 -5
- package/dist/{use-translation-Dpu_N-4j.js.map → use-translation-CPJMFAae.js.map} +1 -1
- package/dist/{use-translation-Ba-GPTbc.cjs → use-translation-m-_wCmHs.cjs} +13 -5
- package/dist/{use-translation-Ba-GPTbc.cjs.map → use-translation-m-_wCmHs.cjs.map} +1 -1
- package/dist/utils/translations.d.ts +4 -0
- package/package.json +1 -1
|
@@ -25,8 +25,10 @@ declare const _default: {
|
|
|
25
25
|
"Product Category"
|
|
26
26
|
],
|
|
27
27
|
"title": "Upload Product List",
|
|
28
|
-
"instruction1": "
|
|
29
|
-
"instruction2": "If the list contains more rows than allowed, the system will take rows 1 through 100 in order (excluding the header).",
|
|
28
|
+
"instruction1": "After formatting is complete, upload the file here. The system will verify the file and return any corrections needed if information is not in the correct format for import into the system.",
|
|
29
|
+
"instruction2": "Each upload is limited to 1 file and up to 100 rows of information (products). If the list contains more rows than allowed, the system will take rows 1 through 100 in order (excluding the header).",
|
|
30
|
+
"instruction3": "Each upload is limited to 1 file and up to 100 rows of information (products).",
|
|
31
|
+
"instruction4": "If the list contains more rows than allowed, the system will take rows 1 through 100 in order (excluding the header).",
|
|
30
32
|
"deleteFile": "Delete file",
|
|
31
33
|
"tabs": {
|
|
32
34
|
"sampleDownload": "Download sample file",
|
|
@@ -25,8 +25,10 @@ declare const _default: {
|
|
|
25
25
|
"Danh mục sản phẩm"
|
|
26
26
|
],
|
|
27
27
|
"title": "Tải lên danh sách sản phẩm",
|
|
28
|
-
"instruction1": "
|
|
29
|
-
"instruction2": "Trường hợp danh sách có nhiều hơn số dòng thông tin quy định, hệ thống sẽ lấy theo thứ tự dòng thông tin số 1 đến dòng thông tin số 100 (không bao gồm tiêu đề).",
|
|
28
|
+
"instruction1": "Sau khi hoàn tất định dạng, hãy tải tệp lên đây. Hệ thống sẽ kiểm tra và trả kết quả cần chỉnh sửa trong trường hợp có thông tin không đúng định dạng để nhập vào hệ thống.",
|
|
29
|
+
"instruction2": "Mỗi lượt tải lên danh sách chỉ được tối đa 01 tệp và tối đa 100 dòng thông tin (sản phẩm). Trường hợp danh sách có nhiều hơn số dòng thông tin quy định, hệ thống sẽ lấy theo thứ tự dòng thông tin số 1 đến dòng thông tin số 100 (không bao gồm tiêu đề).",
|
|
30
|
+
"instruction3": "Mỗi lượt tải lên danh sách chỉ được tối đa 01 tệp và tối đa 100 dòng thông tin (sản phẩm).",
|
|
31
|
+
"instruction4": "Trường hợp danh sách có nhiều hơn số dòng thông tin quy định, hệ thống sẽ lấy theo thứ tự dòng thông tin số 1 đến dòng thông tin số 100 (không bao gồm tiêu đề).",
|
|
30
32
|
"deleteFile": "Xóa file",
|
|
31
33
|
"tabs": {
|
|
32
34
|
"sampleDownload": "Tải xuống tệp mẫu",
|
|
@@ -70,13 +70,13 @@ var __asyncGenerator = (__this, __arguments, generator) => {
|
|
|
70
70
|
var __forAwait = (obj, it, method) => (it = obj[__knownSymbol("asyncIterator")]) ? it.call(obj) : (obj = obj[__knownSymbol("iterator")](), it = {}, method = (key, fn) => (fn = obj[key]) && (it[key] = (arg) => new Promise((yes, no, done) => (arg = fn.call(obj, arg), done = arg.done, Promise.resolve(arg.value).then((value) => yes({ value, done }), no)))), method("next"), method("return"), it);
|
|
71
71
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
72
72
|
const jsxRuntime = require("./jsx-runtime-DV8UmLi4.cjs");
|
|
73
|
-
const useTranslation = require("./use-translation-
|
|
73
|
+
const useTranslation = require("./use-translation-m-_wCmHs.cjs");
|
|
74
74
|
const reactToastify = require("react-toastify");
|
|
75
75
|
const useWesapApiConfig_store = require("./use-wesap-api-config.store-BaseWS--.cjs");
|
|
76
76
|
const React = require("react");
|
|
77
77
|
const create = require("zustand");
|
|
78
78
|
const useExternalConfig_store = require("./use-external-config.store-WVwivWvK.cjs");
|
|
79
|
-
const dropdownMenuAbsolute = require("./dropdownMenuAbsolute-
|
|
79
|
+
const dropdownMenuAbsolute = require("./dropdownMenuAbsolute-BYTyDl09.cjs");
|
|
80
80
|
const ReactDOM = require("react-dom");
|
|
81
81
|
const index = require("./index-Ozgk-K52.cjs");
|
|
82
82
|
const axios = require("axios");
|
|
@@ -57660,36 +57660,40 @@ const UpdateProductModal = ({
|
|
|
57660
57660
|
onDeleteImage: handleDeleteImage
|
|
57661
57661
|
}
|
|
57662
57662
|
),
|
|
57663
|
-
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs(
|
|
57664
|
-
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.
|
|
57665
|
-
|
|
57666
|
-
|
|
57667
|
-
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs(Label, { labelText: translate("name"), required: true, children: [
|
|
57668
|
-
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(ErrorMessage, { name: "name", errors }),
|
|
57669
|
-
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(Input, __spreadValues({}, register("name")))
|
|
57670
|
-
] }),
|
|
57671
|
-
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs("div", { className: "w-full min-w-full font-normal", children: [
|
|
57672
|
-
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs("span", { className: "mb-[4px] flex items-center gap-[4px] text-[14px] font-bold leading-[20px] text-gray-700", children: [
|
|
57673
|
-
translate("unit"),
|
|
57674
|
-
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx("span", { className: "text-red-500", children: "*" })
|
|
57663
|
+
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs("div", { className: "grid grid-cols-2 gap-4", children: [
|
|
57664
|
+
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs(Label, { labelText: translate("name"), required: true, children: [
|
|
57665
|
+
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(ErrorMessage, { name: "name", errors }),
|
|
57666
|
+
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(Input, __spreadValues({}, register("name")))
|
|
57675
57667
|
] }),
|
|
57676
|
-
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.
|
|
57677
|
-
|
|
57678
|
-
|
|
57679
|
-
|
|
57680
|
-
unitOptions,
|
|
57681
|
-
setUnitOptions,
|
|
57682
|
-
onSelectOption: (value) => {
|
|
57683
|
-
setValue("unit", value);
|
|
57684
|
-
clearErrors("unit");
|
|
57685
|
-
},
|
|
57686
|
-
defaultValue: product == null ? void 0 : product.unit
|
|
57687
|
-
}
|
|
57688
|
-
)
|
|
57668
|
+
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs(Label, { labelText: translate("code"), required: true, children: [
|
|
57669
|
+
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(ErrorMessage, { name: "code", errors }),
|
|
57670
|
+
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(Input, __spreadValues({}, register("code")))
|
|
57671
|
+
] })
|
|
57689
57672
|
] }),
|
|
57690
|
-
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs(
|
|
57691
|
-
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.
|
|
57692
|
-
|
|
57673
|
+
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs("div", { className: "grid grid-cols-2 gap-4", children: [
|
|
57674
|
+
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs("div", { className: "w-full min-w-full font-normal", children: [
|
|
57675
|
+
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs("span", { className: "mb-[4px] flex items-center gap-[4px] text-[14px] font-bold leading-[20px] text-gray-700", children: [
|
|
57676
|
+
translate("unit"),
|
|
57677
|
+
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx("span", { className: "text-red-500", children: "*" })
|
|
57678
|
+
] }),
|
|
57679
|
+
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(ErrorMessage, { name: "unit", errors }),
|
|
57680
|
+
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
|
|
57681
|
+
UnitSelect,
|
|
57682
|
+
{
|
|
57683
|
+
unitOptions,
|
|
57684
|
+
setUnitOptions,
|
|
57685
|
+
onSelectOption: (value) => {
|
|
57686
|
+
setValue("unit", value);
|
|
57687
|
+
clearErrors("unit");
|
|
57688
|
+
},
|
|
57689
|
+
defaultValue: product == null ? void 0 : product.unit
|
|
57690
|
+
}
|
|
57691
|
+
)
|
|
57692
|
+
] }),
|
|
57693
|
+
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs(Label, { labelText: translate("category"), children: [
|
|
57694
|
+
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(ErrorMessage, { name: "category", errors }),
|
|
57695
|
+
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(CategoriesInput, { register, control, errors })
|
|
57696
|
+
] })
|
|
57693
57697
|
] }),
|
|
57694
57698
|
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs(Label, { labelText: translate("price_vat"), required: true, children: [
|
|
57695
57699
|
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(ErrorMessage, { name: "priceAfterTax", errors }),
|
|
@@ -58157,23 +58161,19 @@ function FileUploadTab({
|
|
|
58157
58161
|
const [isUploading, setIsUploading] = React.useState(false);
|
|
58158
58162
|
const { translate } = useTranslation.useTranslation("file");
|
|
58159
58163
|
const formatSize = (size) => size < 1024 * 1024 ? `${(size / 1024).toFixed(1)} KB` : `${(size / (1024 * 1024)).toFixed(2)} MB`;
|
|
58160
|
-
if (isCheckData)
|
|
58161
|
-
return /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(ProductInfoPreview, { taxDeductionMethod });
|
|
58164
|
+
if (isCheckData) return /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(ProductInfoPreview, { taxDeductionMethod });
|
|
58162
58165
|
return !isMappingData ? /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs("div", { className: "flex flex-col gap-8", children: [
|
|
58163
58166
|
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs("div", { className: "flex flex-col gap-6", children: [
|
|
58164
58167
|
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx("p", { className: "text-[#0E121B] font-bold text-[24px] leading-[30px]", children: translate("title") }),
|
|
58165
|
-
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.
|
|
58168
|
+
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx("ul", { className: "text-[#0E121B] text-[16px] leading-5 font-normal list-disc pl-5", children: uploadedFile ? /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs(jsxRuntime.jsxRuntimeExports.Fragment, { children: [
|
|
58169
|
+
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx("li", { children: translate("instruction3") }),
|
|
58170
|
+
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx("li", { children: translate("instruction4") })
|
|
58171
|
+
] }) : /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs(jsxRuntime.jsxRuntimeExports.Fragment, { children: [
|
|
58166
58172
|
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx("li", { children: translate("instruction1") }),
|
|
58167
58173
|
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx("li", { children: translate("instruction2") })
|
|
58168
|
-
] })
|
|
58174
|
+
] }) })
|
|
58169
58175
|
] }),
|
|
58170
|
-
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
|
|
58171
|
-
FileUploadButton,
|
|
58172
|
-
{
|
|
58173
|
-
isUploading,
|
|
58174
|
-
setIsUploading
|
|
58175
|
-
}
|
|
58176
|
-
),
|
|
58176
|
+
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(FileUploadButton, { isUploading, setIsUploading }),
|
|
58177
58177
|
uploadedFile && /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs(
|
|
58178
58178
|
"div",
|
|
58179
58179
|
{
|