portalcash-shared 1.3.2 → 1.3.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.
@@ -1 +1 @@
1
- {"version":3,"file":"useFormatPrice.d.ts","sourceRoot":"","sources":["../../src/composables/useFormatPrice.ts"],"names":[],"mappings":"AAAA,wBAAgB,oBAAoB;0BAExB,MAAM,GAAG,MAAM,aACb,MAAM,0BACO,MAAM,WACrB,MAAM,KACb,MAAM;EAyBV"}
1
+ {"version":3,"file":"useFormatPrice.d.ts","sourceRoot":"","sources":["../../src/composables/useFormatPrice.ts"],"names":[],"mappings":"AAAA,wBAAgB,oBAAoB;0BAExB,MAAM,GAAG,MAAM,aACb,MAAM,0BACO,MAAM,WACrB,MAAM,KACb,MAAM;EAwBV"}
package/dist/index.es.js CHANGED
@@ -29084,12 +29084,11 @@ function La() {
29084
29084
  const a = Number(e);
29085
29085
  if (isNaN(a))
29086
29086
  return `${n} 0`;
29087
- const o = ["USD", "EUR"].includes(n);
29088
29087
  try {
29089
29088
  return new Intl.NumberFormat(r, {
29090
29089
  style: "currency",
29091
29090
  currency: n,
29092
- minimumFractionDigits: o ? 2 : i,
29091
+ minimumFractionDigits: n.match(/USD|EUR/) ? 2 : i,
29093
29092
  maximumFractionDigits: 2
29094
29093
  }).format(a);
29095
29094
  } catch {
@@ -43446,22 +43445,22 @@ const P5 = { class: "flex flex-col" }, D5 = {
43446
43445
  setup(t, { emit: e }) {
43447
43446
  const n = Ss(), i = s5(), { formatPrice: r } = La(), { isDesktop: a } = S5(), o = t, s = e, l = G(null), d = G([]), u = G([]), c = G(!1), p = ke(() => o.balance && o.balance.length > 0 ? [
43448
43447
  {
43449
- label: "Saldo Contable",
43450
- amountCLP: o.balance[0].saldoContable.cLP,
43451
- amountUSD: o.balance[0].saldoContable.uSD,
43452
- amountEUR: o.balance[0].saldoContable.eUR
43453
- },
43454
- {
43455
- label: "Saldo Disponible",
43448
+ label: "Disponible",
43456
43449
  amountCLP: o.balance[0].saldoDisponible.cLP,
43457
43450
  amountUSD: o.balance[0].saldoDisponible.uSD,
43458
43451
  amountEUR: o.balance[0].saldoDisponible.eUR
43459
43452
  },
43460
43453
  {
43461
- label: "Saldo en Tránsito",
43454
+ label: "En Tránsito",
43462
43455
  amountCLP: o.balance[0].saldoTransito.cLP,
43463
43456
  amountUSD: o.balance[0].saldoTransito.uSD,
43464
43457
  amountEUR: o.balance[0].saldoTransito.eUR
43458
+ },
43459
+ {
43460
+ label: "Contable",
43461
+ amountCLP: o.balance[0].saldoContable.cLP,
43462
+ amountUSD: o.balance[0].saldoContable.uSD,
43463
+ amountEUR: o.balance[0].saldoContable.eUR
43465
43464
  }
43466
43465
  ] : []);
43467
43466
  nn(() => {