@atomsolution/sdk-merchant 1.6.3 → 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 (27) hide show
  1. package/dist/assets/locales/en/file.json.d.ts +4 -1
  2. package/dist/assets/locales/vi/file.json.d.ts +4 -1
  3. package/dist/assets/locales/vi/merchant-batch-create-form.json.d.ts +1 -1
  4. package/dist/batch-product-creation.cjs +8 -8
  5. package/dist/batch-product-creation.cjs.map +1 -1
  6. package/dist/batch-product-creation.esm.js +8 -8
  7. package/dist/batch-product-creation.esm.js.map +1 -1
  8. package/dist/batch-product-creation.js +8 -8
  9. package/dist/batch-product-creation.js.map +1 -1
  10. package/dist/digistore.cjs +1 -1
  11. package/dist/digistore.esm.js +1 -1
  12. package/dist/digistore.js +1 -1
  13. package/dist/{dropdownMenuAbsolute-CLw6DPyb.js → dropdownMenuAbsolute-CZJdH-DA.js} +2 -2
  14. package/dist/{dropdownMenuAbsolute-CLw6DPyb.js.map → dropdownMenuAbsolute-CZJdH-DA.js.map} +1 -1
  15. package/dist/{dropdownMenuAbsolute-DlrCbNFH.cjs → dropdownMenuAbsolute-Dwd-XAjy.cjs} +2 -2
  16. package/dist/{dropdownMenuAbsolute-DlrCbNFH.cjs.map → dropdownMenuAbsolute-Dwd-XAjy.cjs.map} +1 -1
  17. package/dist/merchant-profile.cjs +2 -2
  18. package/dist/merchant-profile.esm.js +2 -2
  19. package/dist/merchant-profile.js +2 -2
  20. package/dist/use-external-config.store-CaaNmLce.js.map +1 -1
  21. package/dist/use-external-config.store-WVwivWvK.cjs.map +1 -1
  22. package/dist/{use-translation-FLryNm-e.cjs → use-translation-CEsmTQjP.cjs} +13 -4
  23. package/dist/{use-translation-FLryNm-e.cjs.map → use-translation-CEsmTQjP.cjs.map} +1 -1
  24. package/dist/{use-translation-B8KAf9vm.js → use-translation-IKmTNALv.js} +13 -4
  25. package/dist/{use-translation-B8KAf9vm.js.map → use-translation-IKmTNALv.js.map} +1 -1
  26. package/dist/utils/translations.d.ts +4 -0
  27. 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
 
@@ -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ự",
@@ -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-FLryNm-e.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-DlrCbNFH.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");
@@ -27140,7 +27140,7 @@ function MergeAndCheckData({ taxDeductionMethod }) {
27140
27140
  onClick: () => setShowCancelPopup(true),
27141
27141
  disabled: isChecking,
27142
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"}`,
27143
- children: "Hủy"
27143
+ children: translate("cancel")
27144
27144
  }
27145
27145
  ),
27146
27146
  /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs(
@@ -27181,7 +27181,7 @@ function MergeAndCheckData({ taxDeductionMethod }) {
27181
27181
  ]
27182
27182
  }
27183
27183
  ),
27184
- isChecking ? "Đang kiểm tra..." : "Kiểm tra dữ liệu"
27184
+ isChecking ? translate("checking") : translate("checkData")
27185
27185
  ]
27186
27186
  }
27187
27187
  )
@@ -27191,8 +27191,8 @@ function MergeAndCheckData({ taxDeductionMethod }) {
27191
27191
  /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx("div", { className: "fixed inset-0 bg-[#0000004D] z-40" }),
27192
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: [
27193
27193
  /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs("div", { className: "flex flex-col gap-6", children: [
27194
- /* @__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?" }),
27195
- /* @__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") })
27196
27196
  ] }),
27197
27197
  /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs("div", { className: "w-full gap-4 flex items-center justify-center", children: [
27198
27198
  /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
@@ -27201,7 +27201,7 @@ function MergeAndCheckData({ taxDeductionMethod }) {
27201
27201
  type: "button",
27202
27202
  onClick: () => setShowCancelPopup(false),
27203
27203
  className: "w-full px-4 py-[7.5px] border-[#00BAEE] border bg-white text-[#00BAEE] text-sm font-medium rounded-lg",
27204
- children: "Đóng"
27204
+ children: translate("close")
27205
27205
  }
27206
27206
  ),
27207
27207
  /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
@@ -27213,7 +27213,7 @@ function MergeAndCheckData({ taxDeductionMethod }) {
27213
27213
  setShowCancelPopup(false);
27214
27214
  },
27215
27215
  className: "w-full px-4 py-[7.5px] bg-[#1F2B7B] border border-[#1F2B7B] text-[#00BAEE] text-sm rounded-lg ",
27216
- children: "Ngưng tải lên"
27216
+ children: translate("stopUpload")
27217
27217
  }
27218
27218
  )
27219
27219
  ] })