beca-ui 0.1.7 → 0.1.9

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 (2) hide show
  1. package/dist/beca-ui.js +14 -7
  2. package/package.json +2 -2
package/dist/beca-ui.js CHANGED
@@ -61333,16 +61333,23 @@ const JK = "https://library.becawork.vn/api/PublicLibrary/ViewFile/gfregdblvwd7l
61333
61333
  const ae = await KK.get(ee.getApi, {
61334
61334
  headers: {
61335
61335
  "Content-Type": "application/json"
61336
- }
61336
+ },
61337
+ params: ee.params
61337
61338
  });
61338
61339
  ae.status === 200 && ae.data && Number(ae.data) === 1 && (B(!0), document.body.classList.add("dark-theme"));
61339
61340
  }, W = async (ee) => {
61340
- R && KK.put(R.updateApi, JSON.stringify(ee), {
61341
- headers: {
61342
- "Content-Type": "application/json"
61343
- },
61344
- params: R.params
61345
- });
61341
+ R && KK.put(
61342
+ R.updateApi,
61343
+ R.params ? JSON.stringify({
61344
+ isDarkMode: ee
61345
+ }) : JSON.stringify(ee),
61346
+ {
61347
+ headers: {
61348
+ "Content-Type": "application/json"
61349
+ },
61350
+ params: R.params
61351
+ }
61352
+ );
61346
61353
  }, Q = (ee) => {
61347
61354
  const ae = ee.phoneNumber.split(",");
61348
61355
  return /* @__PURE__ */ pn("div", { className: "menu-support-item", children: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "beca-ui",
3
- "version": "0.1.7",
3
+ "version": "0.1.9",
4
4
  "description": "Becawork UI",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -111,4 +111,4 @@
111
111
  "**/*.css"
112
112
  ],
113
113
  "packageManager": "yarn@3.6.4"
114
- }
114
+ }