portalcash-shared 1.1.21 → 1.1.22

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.
@@ -66,8 +66,8 @@ declare global {
66
66
  const useAccountTypesStore: typeof import('./stores/accountsStore')['useAccountTypesStore']
67
67
  const useAttrs: typeof import('vue')['useAttrs']
68
68
  const useAuthStore: typeof import('./stores/authStore')['useAuthStore']
69
+ const useClientStore: typeof import('./stores/clientStore')['useClientStore']
69
70
  const useClientTypesStore: typeof import('./stores/clientTypeStore')['useClientTypesStore']
70
- const useCompanyStore: typeof import('./stores/companyStore')['useCompanyStore']
71
71
  const useCssModule: typeof import('vue')['useCssModule']
72
72
  const useCssVars: typeof import('vue')['useCssVars']
73
73
  const useCurrencyFormatter: typeof import('./composables/useFormatPrice')['useCurrencyFormatter']
package/dist/index.es.js CHANGED
@@ -39985,29 +39985,29 @@ const uc = /* @__PURE__ */ _n(N2, [["render", $2]]), R8 = Qn("accountTypes", {
39985
39985
  return t.clientTypes;
39986
39986
  }
39987
39987
  }
39988
- }), j2 = Qn("company", {
39988
+ }), j2 = Qn("client", {
39989
39989
  state: () => ({
39990
- companyId: null,
39991
- company: null
39990
+ clientId: null,
39991
+ client: null
39992
39992
  }),
39993
39993
  actions: {
39994
- setCompany(t) {
39995
- this.companyId = t.id, this.company = t, localStorage.setItem("companyId", t.id), localStorage.setItem("company", JSON.stringify(t));
39994
+ setClient(t) {
39995
+ this.clientId = t.id, this.client = t, localStorage.setItem("clientId", t.id), localStorage.setItem("client", JSON.stringify(t));
39996
39996
  },
39997
39997
  loadFromStorage() {
39998
- const t = localStorage.getItem("company");
39998
+ const t = localStorage.getItem("client");
39999
39999
  if (t) {
40000
40000
  const e = JSON.parse(t);
40001
- this.companyId = e.id, this.company = e;
40001
+ this.clientId = e.id, this.client = e;
40002
40002
  }
40003
40003
  }
40004
40004
  },
40005
40005
  getters: {
40006
- getCompanyId(t) {
40007
- return t.companyId;
40006
+ getClientId(t) {
40007
+ return t.clientId;
40008
40008
  },
40009
- getCompany(t) {
40010
- return t.company;
40009
+ getClient(t) {
40010
+ return t.clientId;
40011
40011
  }
40012
40012
  }
40013
40013
  }), z2 = Qn("currencyType", {
@@ -40051,7 +40051,7 @@ const K2 = { class: "flex flex-row mt-4 justify-between" }, G2 = { class: "flex
40051
40051
  setup(t, { emit: e }) {
40052
40052
  const n = dc(), i = new U2(), a = j2(), { formatPrice: r } = xr(), o = ee(), s = e, l = ee([]), u = ee([]);
40053
40053
  Ln(async () => {
40054
- a.loadFromStorage(), a.getCompany && (o.value = a.getCompany?.secuency.find(
40054
+ a.loadFromStorage(), a.getClient && (o.value = a.getClient?.secuency.find(
40055
40055
  (m) => parseInt(m.id) === parseInt(n.secuency)
40056
40056
  ));
40057
40057
  const p = ee(0);
@@ -40061,7 +40061,7 @@ const K2 = { class: "flex flex-row mt-4 justify-between" }, G2 = { class: "flex
40061
40061
  (m) => m.secuencyTypeId === p.value
40062
40062
  );
40063
40063
  });
40064
- const d = _e(() => a.getCompany?.secuency ?? []);
40064
+ const d = _e(() => a.getClient?.secuency ?? []);
40065
40065
  function c(p) {
40066
40066
  return p < 0 ? "text-icon-tertiary" : "text-icon-success";
40067
40067
  }
@@ -45430,8 +45430,8 @@ export {
45430
45430
  MC as transferService,
45431
45431
  R8 as useAccountTypesStore,
45432
45432
  dc as useAuthStore,
45433
+ j2 as useClientStore,
45433
45434
  B8 as useClientTypesStore,
45434
- j2 as useCompanyStore,
45435
45435
  xr as useCurrencyFormatter,
45436
45436
  z2 as useCurrencyTypesStore,
45437
45437
  $C as useFeatureFlag,