@atomsolution/sdk-merchant 1.6.2 → 1.6.4

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.
Files changed (29) hide show
  1. package/dist/assets/locales/en/file.json.d.ts +4 -1
  2. package/dist/assets/locales/en/merchant-batch-create-form.json.d.ts +2 -1
  3. package/dist/assets/locales/vi/file.json.d.ts +4 -1
  4. package/dist/assets/locales/vi/merchant-batch-create-form.json.d.ts +3 -2
  5. package/dist/batch-product-creation.cjs +50 -16
  6. package/dist/batch-product-creation.cjs.map +1 -1
  7. package/dist/batch-product-creation.esm.js +50 -16
  8. package/dist/batch-product-creation.esm.js.map +1 -1
  9. package/dist/batch-product-creation.js +50 -16
  10. package/dist/batch-product-creation.js.map +1 -1
  11. package/dist/digistore.cjs +1 -1
  12. package/dist/digistore.esm.js +1 -1
  13. package/dist/digistore.js +1 -1
  14. package/dist/{dropdownMenuAbsolute-Ds24HaUN.js → dropdownMenuAbsolute-CZJdH-DA.js} +2 -2
  15. package/dist/{dropdownMenuAbsolute-Ds24HaUN.js.map → dropdownMenuAbsolute-CZJdH-DA.js.map} +1 -1
  16. package/dist/{dropdownMenuAbsolute-CLsfHK7_.cjs → dropdownMenuAbsolute-Dwd-XAjy.cjs} +2 -2
  17. package/dist/{dropdownMenuAbsolute-CLsfHK7_.cjs.map → dropdownMenuAbsolute-Dwd-XAjy.cjs.map} +1 -1
  18. package/dist/merchant-profile.cjs +2 -2
  19. package/dist/merchant-profile.esm.js +2 -2
  20. package/dist/merchant-profile.js +2 -2
  21. package/dist/style.css +4 -0
  22. package/dist/use-external-config.store-CaaNmLce.js.map +1 -1
  23. package/dist/use-external-config.store-WVwivWvK.cjs.map +1 -1
  24. package/dist/{use-translation-GCjcVK7-.cjs → use-translation-CEsmTQjP.cjs} +19 -6
  25. package/dist/{use-translation-GCjcVK7-.cjs.map → use-translation-CEsmTQjP.cjs.map} +1 -1
  26. package/dist/{use-translation-CsiF3PR6.js → use-translation-IKmTNALv.js} +19 -6
  27. package/dist/{use-translation-CsiF3PR6.js.map → use-translation-IKmTNALv.js.map} +1 -1
  28. package/dist/utils/translations.d.ts +6 -0
  29. package/package.json +1 -1
@@ -44,7 +44,10 @@ declare const _default: {
44
44
  "stopUpload": "Stop upload",
45
45
  "mergeDataTitle": "Merge Fields & Validate Data",
46
46
  "mergeDescription": "Each upload is limited to 1 file and up to 100 rows of information (products).\n If the list contains more rows than allowed, the system will take rows 1 through 100 in order (excluding the header).\n\nPreview data from the .xlsx file. Map each column in the file to a system field to continue creating products.",
47
- "directTaxNote": "The system has automatically applied the tax method to all products using the <span class='font-bold'>Direct tax setting method.</span>"
47
+ "directTaxNote": "The system has automatically applied the tax method to all products using the <span class='font-bold'>Direct tax setting method.</span>",
48
+
49
+ "cancelUploadTitle": "Are you sure you want to exit the upload process?",
50
+ "cancelUploadDescription": "Uploaded data will not be saved and will not be used to create products."
48
51
  }
49
52
  ;
50
53
 
@@ -91,7 +91,8 @@ declare const _default: {
91
91
  "category_invalid": "Product category is invalid",
92
92
  "toast_delete_image_success": "Delete image successfully",
93
93
  "delete_image_confirm_title": "Confirm delete image",
94
- "delete_image_confirm_description": "Are you sure you want to delete this product image?"
94
+ "delete_image_confirm_description": "Are you sure you want to delete this product image?",
95
+ "select_tax": "Select Tax VAT"
95
96
  }
96
97
  ;
97
98
 
@@ -44,7 +44,10 @@ declare const _default: {
44
44
  "stopUpload": "Ngưng tải lên",
45
45
  "mergeDataTitle": "Ghép trường & Kiểm tra dữ liệu",
46
46
  "mergeDescription": "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). \n 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 đề).\n \nXem trước dữ liệu từ file .xlsx. Ghép từng cột trong file với trường của hệ thống để tiếp tục tạo sản phẩm.",
47
- "directTaxNote": "Hệ thống đã tự động áp dụng cho toàn bộ sản phẩm theo phương pháp thiết lập thuế <span class='font-bold'>Trực tiếp.</span>"
47
+ "directTaxNote": "Hệ thống đã tự động áp dụng cho toàn bộ sản phẩm theo phương pháp thiết lập thuế <span class='font-bold'>Trực tiếp.</span>",
48
+
49
+ "cancelUploadTitle": "Bạn có chắc muốn thoát tác vụ tải lên danh sách?",
50
+ "cancelUploadDescription": "Thông tin đã tải lên sẽ không được lưu và không được dùng để tạo sản phẩm."
48
51
  }
49
52
  ;
50
53
 
@@ -79,7 +79,7 @@ declare const _default: {
79
79
  "unit_must_be_string": "Đơn vị tính phải là chuỗi",
80
80
  "unit_invalid": "Đơn vị tính không hợp lệ",
81
81
  "code_must_be_string": "Mã sản phẩm phải là chuỗi",
82
- "tax_invalid": "Thuế không hợp lệ",
82
+ "tax_invalid": "Thuế không hợp lệ !!!",
83
83
  "code_required": "Mã sản phẩm không được bỏ trống",
84
84
  "code_invalid": "Mã sản phẩm không hợp lệ",
85
85
  "code_min": "Mã sản phẩm phải có ít nhất 2 ký tự",
@@ -91,7 +91,8 @@ declare const _default: {
91
91
  "category_invalid": "Danh mục sản phẩm không hợp lệ",
92
92
  "toast_delete_image_success": "Xóa ảnh thành công",
93
93
  "delete_image_confirm_title": "Xác nhận xóa ảnh",
94
- "delete_image_confirm_description": "Bạn có chắc chắn muốn xoá hình ảnh của sản phẩm không?"
94
+ "delete_image_confirm_description": "Bạn có chắc chắn muốn xoá hình ảnh của sản phẩm không?",
95
+ "select_tax": "Chọn thuế VAT"
95
96
  }
96
97
  ;
97
98
 
@@ -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-GCjcVK7-.cjs");
73
+ const useTranslation = require("./use-translation-CEsmTQjP.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-CLsfHK7_.cjs");
79
+ const dropdownMenuAbsolute = require("./dropdownMenuAbsolute-Dwd-XAjy.cjs");
80
80
  const ReactDOM = require("react-dom");
81
81
  const index = require("./index-Ozgk-K52.cjs");
82
82
  const axios = require("axios");
@@ -26936,15 +26936,49 @@ function MergeAndCheckData({ taxDeductionMethod }) {
26936
26936
  /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx("h2", { className: "text-[20px] leading-[30px] font-bold text-[#0E121B] mb-2", children: translate("mergeDataTitle") }),
26937
26937
  /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx("p", { className: "text-[16px] leading-[20px] font-normal text-[#0E121B] whitespace-pre-line", children: translate("mergeDescription") }),
26938
26938
  /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx("br", {}),
26939
- taxDeductionMethod == "direct" && /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
26940
- "p",
26941
- {
26942
- className: "text-[14px] w-fit leading-[18px] font-normal text-[#0E121B] bg-blue-200",
26943
- dangerouslySetInnerHTML: {
26944
- __html: translate("directTaxNote")
26939
+ taxDeductionMethod == "direct" && /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-2 p-3 bg-blue-50 rounded-lg", children: [
26940
+ /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs(
26941
+ "svg",
26942
+ {
26943
+ xmlns: "http://www.w3.org/2000/svg",
26944
+ width: "16",
26945
+ height: "16",
26946
+ viewBox: "0 0 16 16",
26947
+ fill: "none",
26948
+ children: [
26949
+ /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs("g", { "clip-path": "url(#clip0_15611_172398)", children: [
26950
+ /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
26951
+ "path",
26952
+ {
26953
+ d: "M5.25619 12.9656V13.8799C5.25619 15.3948 6.48417 16.1656 7.99905 16.1656C9.51393 16.1656 10.7419 15.3948 10.7419 13.8799V12.9656M2.51333 4.73708C2.51333 1.7074 4.96936 0.165649 7.99905 0.165649C11.0287 0.165649 13.4848 1.7074 13.4848 4.73708C13.4848 6.51006 14.1293 8.49781 14.7937 10.0755C15.3452 11.3855 14.4193 12.9656 12.998 12.9656H3.00007C1.57873 12.9656 0.652929 11.3855 1.20446 10.0755C1.8687 8.49781 2.51333 6.51006 2.51333 4.73708Z",
26954
+ fill: "#335CFF"
26955
+ }
26956
+ ),
26957
+ /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
26958
+ "path",
26959
+ {
26960
+ d: "M5.25619 12.9656V13.8799C5.25619 15.3948 6.48417 16.1656 7.99905 16.1656C9.51393 16.1656 10.7419 15.3948 10.7419 13.8799V12.9656M2.51333 4.73708C2.51333 1.7074 4.96936 0.165649 7.99905 0.165649C11.0287 0.165649 13.4848 1.7074 13.4848 4.73708C13.4848 6.51006 14.1293 8.49781 14.7937 10.0755C15.3452 11.3855 14.4193 12.9656 12.998 12.9656H3.00007C1.57873 12.9656 0.652929 11.3855 1.20446 10.0755C1.8687 8.49781 2.51333 6.51006 2.51333 4.73708Z",
26961
+ stroke: "#EBF1FF",
26962
+ "stroke-width": "0.914286",
26963
+ "stroke-linecap": "round",
26964
+ "stroke-linejoin": "round"
26965
+ }
26966
+ )
26967
+ ] }),
26968
+ /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx("defs", { children: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx("clipPath", { id: "clip0_15611_172398", children: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx("rect", { width: "16", height: "16", fill: "white" }) }) })
26969
+ ]
26945
26970
  }
26946
- }
26947
- )
26971
+ ),
26972
+ /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
26973
+ "p",
26974
+ {
26975
+ className: "text-sm leading-5 font-normal text-blue-900",
26976
+ dangerouslySetInnerHTML: {
26977
+ __html: translate("directTaxNote")
26978
+ }
26979
+ }
26980
+ )
26981
+ ] })
26948
26982
  ] }),
26949
26983
  /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs("div", { className: "flex gap-4 items-center justify-start", children: [
26950
26984
  /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
@@ -27106,7 +27140,7 @@ function MergeAndCheckData({ taxDeductionMethod }) {
27106
27140
  onClick: () => setShowCancelPopup(true),
27107
27141
  disabled: isChecking,
27108
27142
  className: `flex justify-center items-center gap-2 border border-[#00BAEE] px-4 py-[7.5px] text-sm font-medium text-[#00BAEE] bg-[#FFFFFF] rounded-lg ${isChecking && "bg-gray-200 text-gray-400 cursor-not-allowed"}`,
27109
- children: "Hủy"
27143
+ children: translate("cancel")
27110
27144
  }
27111
27145
  ),
27112
27146
  /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs(
@@ -27147,7 +27181,7 @@ function MergeAndCheckData({ taxDeductionMethod }) {
27147
27181
  ]
27148
27182
  }
27149
27183
  ),
27150
- isChecking ? "Đang kiểm tra..." : "Kiểm tra dữ liệu"
27184
+ isChecking ? translate("checking") : translate("checkData")
27151
27185
  ]
27152
27186
  }
27153
27187
  )
@@ -27157,8 +27191,8 @@ function MergeAndCheckData({ taxDeductionMethod }) {
27157
27191
  /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx("div", { className: "fixed inset-0 bg-[#0000004D] z-40" }),
27158
27192
  /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs("div", { className: "absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 z-50 bg-white rounded-2xl mx-auto p-10 flex flex-col gap-8", children: [
27159
27193
  /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs("div", { className: "flex flex-col gap-6", children: [
27160
- /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx("h3", { className: "text-center text-[24px] leading-[30px] font-bold text-[#2C2C2C]", children: "Bạn có chắc muốn thoát tác vụ tải lên danh sách?" }),
27161
- /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx("p", { className: "text-center text-[14px] leading-[18px] text-[#2C2C2C] font-normal", children: "Thông tin đã tải lên sẽ không được lưu và không được dùng để tạo sản phẩm." })
27194
+ /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx("h3", { className: "text-center text-[24px] leading-[30px] font-bold text-[#2C2C2C]", children: translate("cancelUploadTitle") }),
27195
+ /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx("p", { className: "text-center text-[14px] leading-[18px] text-[#2C2C2C] font-normal", children: translate("cancelUploadDescription") })
27162
27196
  ] }),
27163
27197
  /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs("div", { className: "w-full gap-4 flex items-center justify-center", children: [
27164
27198
  /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
@@ -27167,7 +27201,7 @@ function MergeAndCheckData({ taxDeductionMethod }) {
27167
27201
  type: "button",
27168
27202
  onClick: () => setShowCancelPopup(false),
27169
27203
  className: "w-full px-4 py-[7.5px] border-[#00BAEE] border bg-white text-[#00BAEE] text-sm font-medium rounded-lg",
27170
- children: "Đóng"
27204
+ children: translate("close")
27171
27205
  }
27172
27206
  ),
27173
27207
  /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
@@ -27179,7 +27213,7 @@ function MergeAndCheckData({ taxDeductionMethod }) {
27179
27213
  setShowCancelPopup(false);
27180
27214
  },
27181
27215
  className: "w-full px-4 py-[7.5px] bg-[#1F2B7B] border border-[#1F2B7B] text-[#00BAEE] text-sm rounded-lg ",
27182
- children: "Ngưng tải lên"
27216
+ children: translate("stopUpload")
27183
27217
  }
27184
27218
  )
27185
27219
  ] })