@atomsolution/sdk-merchant 1.8.5 → 1.8.7
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/NewAccountCreate/index.d.ts +2 -1
- package/dist/digistore/services/createDigistoreAccountService.d.ts +1 -0
- package/dist/digistore.cjs +64 -59
- package/dist/digistore.cjs.map +1 -1
- package/dist/digistore.esm.js +64 -59
- package/dist/digistore.esm.js.map +1 -1
- package/dist/digistore.js +64 -59
- package/dist/digistore.js.map +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
|
@@ -68,14 +68,14 @@ var __asyncGenerator = (__this, __arguments, generator) => {
|
|
|
68
68
|
};
|
|
69
69
|
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);
|
|
70
70
|
import { j as jsxRuntimeExports } from "./jsx-runtime-ClP9nxnW.js";
|
|
71
|
-
import { u as useTranslation, t as translate } from "./use-translation-
|
|
71
|
+
import { u as useTranslation, t as translate } from "./use-translation-CPJMFAae.js";
|
|
72
72
|
import { ToastContainer } from "react-toastify";
|
|
73
73
|
import { a as useUnsavedChangesStore, u as useWesapApiConfig } from "./use-wesap-api-config.store-CIaEkA7m.js";
|
|
74
74
|
import * as React from "react";
|
|
75
75
|
import React__default, { useState, useRef, useEffect, useMemo, forwardRef, useCallback } from "react";
|
|
76
76
|
import create from "zustand";
|
|
77
77
|
import { u as useExternalConfigStore } from "./use-external-config.store-CaaNmLce.js";
|
|
78
|
-
import { t as twMerge, B as Button, c as commonjsRequire, b as commonjsGlobal, g as getDefaultExportFromCjs, u as useMediaQuery, T as TableSkeleton, R as ReusableTable, a as DropdownMenuAbsolute } from "./dropdownMenuAbsolute-
|
|
78
|
+
import { t as twMerge, B as Button, c as commonjsRequire, b as commonjsGlobal, g as getDefaultExportFromCjs, u as useMediaQuery, T as TableSkeleton, R as ReusableTable, a as DropdownMenuAbsolute } from "./dropdownMenuAbsolute-CvvI2uRj.js";
|
|
79
79
|
import * as ReactDOM from "react-dom";
|
|
80
80
|
import ReactDOM__default from "react-dom";
|
|
81
81
|
import { C as CustomToast } from "./index-ChOpfqCh.js";
|
|
@@ -57642,36 +57642,40 @@ const UpdateProductModal = ({
|
|
|
57642
57642
|
onDeleteImage: handleDeleteImage
|
|
57643
57643
|
}
|
|
57644
57644
|
),
|
|
57645
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
57646
|
-
/* @__PURE__ */ jsxRuntimeExports.
|
|
57647
|
-
|
|
57648
|
-
|
|
57649
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs(Label, { labelText: translate2("name"), required: true, children: [
|
|
57650
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(ErrorMessage, { name: "name", errors }),
|
|
57651
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Input, __spreadValues({}, register("name")))
|
|
57652
|
-
] }),
|
|
57653
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "w-full min-w-full font-normal", children: [
|
|
57654
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: "mb-[4px] flex items-center gap-[4px] text-[14px] font-bold leading-[20px] text-gray-700", children: [
|
|
57655
|
-
translate2("unit"),
|
|
57656
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-red-500", children: "*" })
|
|
57645
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "grid grid-cols-2 gap-4", children: [
|
|
57646
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(Label, { labelText: translate2("name"), required: true, children: [
|
|
57647
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(ErrorMessage, { name: "name", errors }),
|
|
57648
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Input, __spreadValues({}, register("name")))
|
|
57657
57649
|
] }),
|
|
57658
|
-
/* @__PURE__ */ jsxRuntimeExports.
|
|
57659
|
-
|
|
57660
|
-
|
|
57661
|
-
|
|
57662
|
-
unitOptions,
|
|
57663
|
-
setUnitOptions,
|
|
57664
|
-
onSelectOption: (value) => {
|
|
57665
|
-
setValue("unit", value);
|
|
57666
|
-
clearErrors("unit");
|
|
57667
|
-
},
|
|
57668
|
-
defaultValue: product == null ? void 0 : product.unit
|
|
57669
|
-
}
|
|
57670
|
-
)
|
|
57650
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(Label, { labelText: translate2("code"), required: true, children: [
|
|
57651
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(ErrorMessage, { name: "code", errors }),
|
|
57652
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Input, __spreadValues({}, register("code")))
|
|
57653
|
+
] })
|
|
57671
57654
|
] }),
|
|
57672
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
57673
|
-
/* @__PURE__ */ jsxRuntimeExports.
|
|
57674
|
-
|
|
57655
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "grid grid-cols-2 gap-4", children: [
|
|
57656
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "w-full min-w-full font-normal", children: [
|
|
57657
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: "mb-[4px] flex items-center gap-[4px] text-[14px] font-bold leading-[20px] text-gray-700", children: [
|
|
57658
|
+
translate2("unit"),
|
|
57659
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-red-500", children: "*" })
|
|
57660
|
+
] }),
|
|
57661
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(ErrorMessage, { name: "unit", errors }),
|
|
57662
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
57663
|
+
UnitSelect,
|
|
57664
|
+
{
|
|
57665
|
+
unitOptions,
|
|
57666
|
+
setUnitOptions,
|
|
57667
|
+
onSelectOption: (value) => {
|
|
57668
|
+
setValue("unit", value);
|
|
57669
|
+
clearErrors("unit");
|
|
57670
|
+
},
|
|
57671
|
+
defaultValue: product == null ? void 0 : product.unit
|
|
57672
|
+
}
|
|
57673
|
+
)
|
|
57674
|
+
] }),
|
|
57675
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(Label, { labelText: translate2("category"), children: [
|
|
57676
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(ErrorMessage, { name: "category", errors }),
|
|
57677
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(CategoriesInput, { register, control, errors })
|
|
57678
|
+
] })
|
|
57675
57679
|
] }),
|
|
57676
57680
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(Label, { labelText: translate2("price_vat"), required: true, children: [
|
|
57677
57681
|
/* @__PURE__ */ jsxRuntimeExports.jsx(ErrorMessage, { name: "priceAfterTax", errors }),
|
|
@@ -58139,23 +58143,19 @@ function FileUploadTab({
|
|
|
58139
58143
|
const [isUploading, setIsUploading] = useState(false);
|
|
58140
58144
|
const { translate: translate2 } = useTranslation("file");
|
|
58141
58145
|
const formatSize = (size) => size < 1024 * 1024 ? `${(size / 1024).toFixed(1)} KB` : `${(size / (1024 * 1024)).toFixed(2)} MB`;
|
|
58142
|
-
if (isCheckData)
|
|
58143
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(ProductInfoPreview, { taxDeductionMethod });
|
|
58146
|
+
if (isCheckData) return /* @__PURE__ */ jsxRuntimeExports.jsx(ProductInfoPreview, { taxDeductionMethod });
|
|
58144
58147
|
return !isMappingData ? /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex flex-col gap-8", children: [
|
|
58145
58148
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex flex-col gap-6", children: [
|
|
58146
58149
|
/* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: "text-[#0E121B] font-bold text-[24px] leading-[30px]", children: translate2("title") }),
|
|
58147
|
-
/* @__PURE__ */ jsxRuntimeExports.
|
|
58150
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("ul", { className: "text-[#0E121B] text-[16px] leading-5 font-normal list-disc pl-5", children: uploadedFile ? /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
58151
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("li", { children: translate2("instruction3") }),
|
|
58152
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("li", { children: translate2("instruction4") })
|
|
58153
|
+
] }) : /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
58148
58154
|
/* @__PURE__ */ jsxRuntimeExports.jsx("li", { children: translate2("instruction1") }),
|
|
58149
58155
|
/* @__PURE__ */ jsxRuntimeExports.jsx("li", { children: translate2("instruction2") })
|
|
58150
|
-
] })
|
|
58156
|
+
] }) })
|
|
58151
58157
|
] }),
|
|
58152
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
58153
|
-
FileUploadButton,
|
|
58154
|
-
{
|
|
58155
|
-
isUploading,
|
|
58156
|
-
setIsUploading
|
|
58157
|
-
}
|
|
58158
|
-
),
|
|
58158
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(FileUploadButton, { isUploading, setIsUploading }),
|
|
58159
58159
|
uploadedFile && /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
58160
58160
|
"div",
|
|
58161
58161
|
{
|