@mx-cartographer/experiences 4.1.4-alpha.bb4 → 4.1.4-alpha.bb5

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.
package/dist/index.es.js CHANGED
@@ -11337,27 +11337,28 @@ function zn({ title: e, subtitle: A }) {
11337
11337
  ] });
11338
11338
  }
11339
11339
  function kg(e, A) {
11340
- let n = A.current_amount / A.amount;
11341
- n > 1 && (n = 1);
11342
- let a = "chart.chart1", r = "common.black";
11343
- A.track_type === V.DEBT_TRACK ? (r = "common.white", a = "chart.chart5") : A.track_type === V.RETIREMENT_TRACK && (a = "chart.chart6");
11344
- const i = {
11340
+ const n = A.track_type === V.DEBT_TRACK ? A.initial_amount : A.amount;
11341
+ let a = A.current_amount / n;
11342
+ a > 1 && (a = 1);
11343
+ let r = "chart.chart1", i = "common.black";
11344
+ A.track_type === V.DEBT_TRACK ? (i = "common.white", r = "chart.chart5") : A.track_type === V.RETIREMENT_TRACK && (r = "chart.chart6");
11345
+ const o = {
11345
11346
  style: "percent",
11346
11347
  minimumFractionDigits: 0,
11347
11348
  maximumFractionDigits: 0
11348
- }, o = A.is_complete ? A.completed_at : A.projected_to_complete_at, s = o ? Le(o) : /* @__PURE__ */ new Date(), c = P(
11349
+ }, s = A.is_complete ? A.completed_at : A.projected_to_complete_at, c = s ? Le(s) : /* @__PURE__ */ new Date(), u = P(
11349
11350
  e.goal_percentage,
11350
- yn(n, i)
11351
- ), u = P(
11351
+ yn(a, o)
11352
+ ), d = P(
11352
11353
  A.is_complete ? e.completed_label : e.goal_projection,
11353
- te(s, $.MONTH_SHORT_YEAR)
11354
+ te(c, $.MONTH_SHORT_YEAR)
11354
11355
  );
11355
11356
  return {
11356
- backgroundColor: a,
11357
- color: r,
11358
- percentage: n,
11359
- percentageText: c,
11360
- projectedText: u
11357
+ backgroundColor: r,
11358
+ color: i,
11359
+ percentage: a,
11360
+ percentageText: u,
11361
+ projectedText: d
11361
11362
  };
11362
11363
  }
11363
11364
  function Gg(e) {