@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 +15 -14
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
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
|
-
|
|
11341
|
-
|
|
11342
|
-
|
|
11343
|
-
|
|
11344
|
-
|
|
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
|
-
},
|
|
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(
|
|
11351
|
-
),
|
|
11351
|
+
yn(a, o)
|
|
11352
|
+
), d = P(
|
|
11352
11353
|
A.is_complete ? e.completed_label : e.goal_projection,
|
|
11353
|
-
te(
|
|
11354
|
+
te(c, $.MONTH_SHORT_YEAR)
|
|
11354
11355
|
);
|
|
11355
11356
|
return {
|
|
11356
|
-
backgroundColor:
|
|
11357
|
-
color:
|
|
11358
|
-
percentage:
|
|
11359
|
-
percentageText:
|
|
11360
|
-
projectedText:
|
|
11357
|
+
backgroundColor: r,
|
|
11358
|
+
color: i,
|
|
11359
|
+
percentage: a,
|
|
11360
|
+
percentageText: u,
|
|
11361
|
+
projectedText: d
|
|
11361
11362
|
};
|
|
11362
11363
|
}
|
|
11363
11364
|
function Gg(e) {
|