@mx-cartographer/insights-ui 1.3.1-alpha.j1 → 1.3.1-alpha.j2
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 +158 -154
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -23,17 +23,17 @@ import n1 from "@mui/material/IconButton";
|
|
|
23
23
|
const r1 = ({
|
|
24
24
|
backgroundColor: e,
|
|
25
25
|
color: i,
|
|
26
|
-
percent:
|
|
26
|
+
percent: r,
|
|
27
27
|
height: n = 12
|
|
28
28
|
}) => {
|
|
29
|
-
const [
|
|
29
|
+
const [o, a] = R({ triggerOnce: !0 }), [s, l] = y.useState("0%"), d = r > 100 ? 100 : r;
|
|
30
30
|
return y.useEffect(() => {
|
|
31
|
-
|
|
32
|
-
}, [
|
|
31
|
+
a && l(`${d}%`);
|
|
32
|
+
}, [a, d]), /* @__PURE__ */ t(y.Fragment, { children: /* @__PURE__ */ m(
|
|
33
33
|
C,
|
|
34
34
|
{
|
|
35
35
|
"data-ui-test": "progress-bar",
|
|
36
|
-
ref:
|
|
36
|
+
ref: o,
|
|
37
37
|
sx: {
|
|
38
38
|
position: "relative",
|
|
39
39
|
borderRadius: 8,
|
|
@@ -70,14 +70,14 @@ const r1 = ({
|
|
|
70
70
|
]
|
|
71
71
|
}
|
|
72
72
|
) });
|
|
73
|
-
},
|
|
73
|
+
}, o1 = ({
|
|
74
74
|
backgroundOverride: e,
|
|
75
75
|
goalPercentage: i,
|
|
76
|
-
height:
|
|
76
|
+
height: r = 8,
|
|
77
77
|
percentageCompleteText: n,
|
|
78
|
-
progressColorOverride:
|
|
78
|
+
progressColorOverride: o
|
|
79
79
|
}) => {
|
|
80
|
-
const
|
|
80
|
+
const a = f();
|
|
81
81
|
return /* @__PURE__ */ m(
|
|
82
82
|
u,
|
|
83
83
|
{
|
|
@@ -113,19 +113,19 @@ const r1 = ({
|
|
|
113
113
|
/* @__PURE__ */ t(
|
|
114
114
|
r1,
|
|
115
115
|
{
|
|
116
|
-
backgroundColor: e ||
|
|
117
|
-
color:
|
|
118
|
-
height:
|
|
116
|
+
backgroundColor: e || a.palette.background.highlight,
|
|
117
|
+
color: o || a.palette.primary.main,
|
|
118
|
+
height: r,
|
|
119
119
|
percent: i
|
|
120
120
|
}
|
|
121
121
|
)
|
|
122
122
|
]
|
|
123
123
|
}
|
|
124
124
|
);
|
|
125
|
-
},
|
|
125
|
+
}, a1 = ({
|
|
126
126
|
children: e,
|
|
127
127
|
gradientOverride: i,
|
|
128
|
-
title:
|
|
128
|
+
title: r
|
|
129
129
|
}) => {
|
|
130
130
|
const n = f();
|
|
131
131
|
return /* @__PURE__ */ m(
|
|
@@ -138,13 +138,13 @@ const r1 = ({
|
|
|
138
138
|
p: 16
|
|
139
139
|
},
|
|
140
140
|
children: [
|
|
141
|
-
/* @__PURE__ */ t(C, { sx: { background: "transparent", boxShadow: "none", marginBottom: 16 }, children:
|
|
141
|
+
/* @__PURE__ */ t(C, { sx: { background: "transparent", boxShadow: "none", marginBottom: 16 }, children: r && /* @__PURE__ */ t(
|
|
142
142
|
A,
|
|
143
143
|
{
|
|
144
144
|
className: "mx-insights-gradient-box-title",
|
|
145
145
|
"data-ui-test": "gradient-box-title",
|
|
146
146
|
sx: { color: n.palette.primary.lighter, lineHeight: "16px", fontSize: 13 },
|
|
147
|
-
children:
|
|
147
|
+
children: r
|
|
148
148
|
}
|
|
149
149
|
) }),
|
|
150
150
|
/* @__PURE__ */ t(
|
|
@@ -163,21 +163,21 @@ const r1 = ({
|
|
|
163
163
|
]
|
|
164
164
|
}
|
|
165
165
|
);
|
|
166
|
-
}, Z = (e) => ({ isDarkMode: i, ...
|
|
166
|
+
}, Z = (e) => ({ isDarkMode: i, ...r }) => {
|
|
167
167
|
const n = L(i ? "dark" : "light");
|
|
168
168
|
return /* @__PURE__ */ m(H, { theme: n, children: [
|
|
169
169
|
/* @__PURE__ */ t(X, {}),
|
|
170
|
-
/* @__PURE__ */ t(e, { ...
|
|
170
|
+
/* @__PURE__ */ t(e, { ...r })
|
|
171
171
|
] });
|
|
172
172
|
};
|
|
173
173
|
Z.displayName = "withTheme";
|
|
174
174
|
const s1 = ({
|
|
175
175
|
allowScroll: e,
|
|
176
176
|
children: i,
|
|
177
|
-
height:
|
|
177
|
+
height: r,
|
|
178
178
|
isMobile: n,
|
|
179
|
-
isOpen:
|
|
180
|
-
onClose:
|
|
179
|
+
isOpen: o = !1,
|
|
180
|
+
onClose: a,
|
|
181
181
|
showBackground: s = !1,
|
|
182
182
|
width: l = 450
|
|
183
183
|
}) => {
|
|
@@ -193,11 +193,15 @@ const s1 = ({
|
|
|
193
193
|
bottom: 0,
|
|
194
194
|
borderTopLeftRadius: 16,
|
|
195
195
|
borderTopRightRadius: 16,
|
|
196
|
+
borderBottomLeftRadius: 0,
|
|
197
|
+
borderBottomRightRadius: 0,
|
|
196
198
|
left: "50%",
|
|
197
199
|
m: 0,
|
|
198
|
-
|
|
200
|
+
height: r ?? "50%",
|
|
201
|
+
maxHeight: r ?? "50%",
|
|
199
202
|
maxWidth: l,
|
|
200
203
|
// Adjust maxWidth as needed
|
|
204
|
+
overflow: "visible",
|
|
201
205
|
position: "fixed",
|
|
202
206
|
transform: "translateX(-50%)",
|
|
203
207
|
width: n ? "100%" : "80%"
|
|
@@ -207,8 +211,8 @@ const s1 = ({
|
|
|
207
211
|
TransitionComponent: T,
|
|
208
212
|
disableScrollLock: d,
|
|
209
213
|
hideBackdrop: s,
|
|
210
|
-
onClose:
|
|
211
|
-
open:
|
|
214
|
+
onClose: a,
|
|
215
|
+
open: o,
|
|
212
216
|
scroll: "paper",
|
|
213
217
|
sx: {
|
|
214
218
|
"& .MuiBackdrop-root": {
|
|
@@ -225,21 +229,21 @@ const s1 = ({
|
|
|
225
229
|
}, Q1 = Z(s1), E = ({
|
|
226
230
|
accountGuid: e,
|
|
227
231
|
animation: i,
|
|
228
|
-
leftLowerText:
|
|
232
|
+
leftLowerText: r,
|
|
229
233
|
leftUpperText: n,
|
|
230
|
-
isComplete:
|
|
231
|
-
isMini:
|
|
234
|
+
isComplete: o,
|
|
235
|
+
isMini: a,
|
|
232
236
|
headerString: s,
|
|
233
237
|
rightLowerText: l,
|
|
234
238
|
rightUpperText: d
|
|
235
239
|
}) => {
|
|
236
240
|
const p = {
|
|
237
|
-
containerHeight:
|
|
238
|
-
logoSize:
|
|
241
|
+
containerHeight: a ? 140 : 186,
|
|
242
|
+
logoSize: a ? 20 : 48,
|
|
239
243
|
card: {
|
|
240
|
-
gap:
|
|
244
|
+
gap: a ? 8 : 12
|
|
241
245
|
},
|
|
242
|
-
padding:
|
|
246
|
+
padding: a ? "12px 16px 12px 16px" : "32px 16px 16px 16px"
|
|
243
247
|
};
|
|
244
248
|
return /* @__PURE__ */ t(
|
|
245
249
|
u,
|
|
@@ -273,14 +277,14 @@ const s1 = ({
|
|
|
273
277
|
width: g
|
|
274
278
|
}
|
|
275
279
|
),
|
|
276
|
-
!
|
|
280
|
+
!a && /* @__PURE__ */ t(d1, { accountGuid: e, width: g }),
|
|
277
281
|
/* @__PURE__ */ m(
|
|
278
282
|
C,
|
|
279
283
|
{
|
|
280
284
|
sx: (b) => ({
|
|
281
285
|
alignContent: "center",
|
|
282
286
|
backgroundColor: b.palette.background.paper,
|
|
283
|
-
boxShadow: `0px 2px 8px 0px ${
|
|
287
|
+
boxShadow: `0px 2px 8px 0px ${a ? "#6A73812F" : "#6A73811F"}`,
|
|
284
288
|
borderRadius: "8px",
|
|
285
289
|
display: "flex",
|
|
286
290
|
flexDirection: "column",
|
|
@@ -292,12 +296,12 @@ const s1 = ({
|
|
|
292
296
|
width: g
|
|
293
297
|
}),
|
|
294
298
|
children: [
|
|
295
|
-
|
|
299
|
+
a ? /* @__PURE__ */ t(p1, { accountGuid: e, headerString: s }) : /* @__PURE__ */ t(l1, { headerString: s }),
|
|
296
300
|
/* @__PURE__ */ t(
|
|
297
301
|
m1,
|
|
298
302
|
{
|
|
299
|
-
isComplete:
|
|
300
|
-
leftLowerText:
|
|
303
|
+
isComplete: o,
|
|
304
|
+
leftLowerText: r,
|
|
301
305
|
leftUpperText: n,
|
|
302
306
|
rightLowerText: l,
|
|
303
307
|
rightUpperText: d
|
|
@@ -341,12 +345,12 @@ const s1 = ({
|
|
|
341
345
|
)
|
|
342
346
|
}
|
|
343
347
|
), c1 = ({ leftLowerText: e, leftUpperText: i }) => {
|
|
344
|
-
const
|
|
348
|
+
const r = f();
|
|
345
349
|
return /* @__PURE__ */ m(
|
|
346
350
|
C,
|
|
347
351
|
{
|
|
348
352
|
sx: {
|
|
349
|
-
backgroundColor:
|
|
353
|
+
backgroundColor: r.palette.background.default,
|
|
350
354
|
gap: 2,
|
|
351
355
|
padding: 12,
|
|
352
356
|
textAlign: "center",
|
|
@@ -357,7 +361,7 @@ const s1 = ({
|
|
|
357
361
|
A,
|
|
358
362
|
{
|
|
359
363
|
"data-ui-test": "mx-insights-sudd-left-upper-text",
|
|
360
|
-
sx: { color:
|
|
364
|
+
sx: { color: r.palette.secondary.light },
|
|
361
365
|
variant: "XSmall",
|
|
362
366
|
children: i
|
|
363
367
|
}
|
|
@@ -369,9 +373,9 @@ const s1 = ({
|
|
|
369
373
|
}, m1 = ({
|
|
370
374
|
isComplete: e,
|
|
371
375
|
leftLowerText: i,
|
|
372
|
-
leftUpperText:
|
|
376
|
+
leftUpperText: r,
|
|
373
377
|
rightLowerText: n,
|
|
374
|
-
rightUpperText:
|
|
378
|
+
rightUpperText: o
|
|
375
379
|
}) => /* @__PURE__ */ m(
|
|
376
380
|
u,
|
|
377
381
|
{
|
|
@@ -382,13 +386,13 @@ const s1 = ({
|
|
|
382
386
|
width: "100%"
|
|
383
387
|
},
|
|
384
388
|
children: [
|
|
385
|
-
/* @__PURE__ */ t(c1, { leftLowerText: i, leftUpperText:
|
|
389
|
+
/* @__PURE__ */ t(c1, { leftLowerText: i, leftUpperText: r }),
|
|
386
390
|
/* @__PURE__ */ t(
|
|
387
391
|
u1,
|
|
388
392
|
{
|
|
389
393
|
isComplete: e,
|
|
390
394
|
rightLowerText: n,
|
|
391
|
-
rightUpperText:
|
|
395
|
+
rightUpperText: o
|
|
392
396
|
}
|
|
393
397
|
)
|
|
394
398
|
]
|
|
@@ -415,7 +419,7 @@ const s1 = ({
|
|
|
415
419
|
), u1 = ({
|
|
416
420
|
isComplete: e,
|
|
417
421
|
rightLowerText: i,
|
|
418
|
-
rightUpperText:
|
|
422
|
+
rightUpperText: r
|
|
419
423
|
}) => {
|
|
420
424
|
const n = f();
|
|
421
425
|
return /* @__PURE__ */ m(
|
|
@@ -437,7 +441,7 @@ const s1 = ({
|
|
|
437
441
|
"data-ui-test": "mx-insights-sudd-right-upper-text",
|
|
438
442
|
sx: { color: n.palette.secondary.light },
|
|
439
443
|
variant: "XSmall",
|
|
440
|
-
children:
|
|
444
|
+
children: r
|
|
441
445
|
}
|
|
442
446
|
),
|
|
443
447
|
/* @__PURE__ */ t(
|
|
@@ -530,22 +534,22 @@ const s1 = ({
|
|
|
530
534
|
), i2 = ({
|
|
531
535
|
beat: e,
|
|
532
536
|
children: i,
|
|
533
|
-
descriptionPlacement:
|
|
537
|
+
descriptionPlacement: r = "bottom",
|
|
534
538
|
hideDescription: n,
|
|
535
|
-
inDescriptionCtaOnClick:
|
|
536
|
-
withFullWidthImage:
|
|
539
|
+
inDescriptionCtaOnClick: o,
|
|
540
|
+
withFullWidthImage: a
|
|
537
541
|
}) => {
|
|
538
542
|
const s = n || !e.html_description, l = /* @__PURE__ */ t(
|
|
539
543
|
g1,
|
|
540
544
|
{
|
|
541
545
|
beat: e,
|
|
542
546
|
buttonInText: !!e?.in_description_cta,
|
|
543
|
-
inDescriptionCtaOnClick:
|
|
544
|
-
withFullWidthImage:
|
|
547
|
+
inDescriptionCtaOnClick: o,
|
|
548
|
+
withFullWidthImage: a
|
|
545
549
|
}
|
|
546
550
|
);
|
|
547
551
|
return /* @__PURE__ */ m(y.Fragment, { children: [
|
|
548
|
-
!s &&
|
|
552
|
+
!s && r === "top" && l,
|
|
549
553
|
/* @__PURE__ */ t(
|
|
550
554
|
u,
|
|
551
555
|
{
|
|
@@ -561,15 +565,15 @@ const s1 = ({
|
|
|
561
565
|
children: i
|
|
562
566
|
}
|
|
563
567
|
),
|
|
564
|
-
!s && (
|
|
568
|
+
!s && (r === "bottom" || !r) && l
|
|
565
569
|
] });
|
|
566
570
|
}, g1 = ({
|
|
567
571
|
beat: e,
|
|
568
572
|
buttonInText: i = !1,
|
|
569
|
-
inDescriptionCtaOnClick:
|
|
573
|
+
inDescriptionCtaOnClick: r,
|
|
570
574
|
withFullWidthImage: n
|
|
571
575
|
}) => {
|
|
572
|
-
const
|
|
576
|
+
const o = i ? 16 : 8;
|
|
573
577
|
return /* @__PURE__ */ m(y.Fragment, { children: [
|
|
574
578
|
/* @__PURE__ */ t("div", { className: `mx-insight-description ${e.template}-description`, children: /* @__PURE__ */ t(
|
|
575
579
|
A,
|
|
@@ -584,12 +588,12 @@ const s1 = ({
|
|
|
584
588
|
wordBreak: "break-word",
|
|
585
589
|
wordWrap: "break-word",
|
|
586
590
|
"& > span.bold-copy": { fontWeight: "bold" },
|
|
587
|
-
mb: e.in_description_cta ? 4 :
|
|
591
|
+
mb: e.in_description_cta ? 4 : o,
|
|
588
592
|
...n && {
|
|
589
593
|
px: 16
|
|
590
594
|
},
|
|
591
595
|
"& p": {
|
|
592
|
-
mb: e.in_description_cta ? 4 :
|
|
596
|
+
mb: e.in_description_cta ? 4 : o
|
|
593
597
|
}
|
|
594
598
|
}
|
|
595
599
|
}
|
|
@@ -598,8 +602,8 @@ const s1 = ({
|
|
|
598
602
|
u,
|
|
599
603
|
{
|
|
600
604
|
className: `mx-inights-${e.template}-in-description-button`,
|
|
601
|
-
sx: { mb:
|
|
602
|
-
children: /* @__PURE__ */ m(q, { onClick:
|
|
605
|
+
sx: { mb: o },
|
|
606
|
+
children: /* @__PURE__ */ m(q, { onClick: r, children: [
|
|
603
607
|
e.in_description_cta,
|
|
604
608
|
/* @__PURE__ */ t(
|
|
605
609
|
x,
|
|
@@ -615,51 +619,51 @@ const s1 = ({
|
|
|
615
619
|
}, n2 = ({
|
|
616
620
|
beat: e,
|
|
617
621
|
disabled: i = !1,
|
|
618
|
-
hide:
|
|
622
|
+
hide: r = !1,
|
|
619
623
|
onClick: n = () => {
|
|
620
624
|
},
|
|
621
|
-
primary:
|
|
622
|
-
sx:
|
|
625
|
+
primary: o = !0,
|
|
626
|
+
sx: a,
|
|
623
627
|
variant: s,
|
|
624
628
|
...l
|
|
625
629
|
}) => {
|
|
626
630
|
const d = f();
|
|
627
|
-
if (
|
|
631
|
+
if (r)
|
|
628
632
|
return null;
|
|
629
633
|
const p = I(q)({
|
|
630
634
|
width: "100%",
|
|
631
|
-
color:
|
|
635
|
+
color: o ? "#359BCF" : d.palette.secondary.main,
|
|
632
636
|
backgroundColor: d.palette.background.paper,
|
|
633
|
-
border:
|
|
634
|
-
fontSize:
|
|
637
|
+
border: o ? `1px solid ${d.palette.border.main}` : 0,
|
|
638
|
+
fontSize: o ? 15 : 13,
|
|
635
639
|
"&:hover": {
|
|
636
|
-
border: !i &&
|
|
637
|
-
color: !
|
|
640
|
+
border: !i && o ? `1px solid ${d.palette.primary.dark}` : 0,
|
|
641
|
+
color: !o && "#359BCF"
|
|
638
642
|
},
|
|
639
643
|
padding: "0px 16px",
|
|
640
|
-
...
|
|
644
|
+
...a
|
|
641
645
|
});
|
|
642
646
|
return /* @__PURE__ */ t(
|
|
643
647
|
p,
|
|
644
648
|
{
|
|
645
|
-
"data-ui-test":
|
|
649
|
+
"data-ui-test": o ? `primary-cta-${e.template}` : `secondary-cta-${e.template}`,
|
|
646
650
|
disabled: i,
|
|
647
|
-
id:
|
|
651
|
+
id: o ? `primary-cta-${e.guid}` : `secondary-cta-${e.guid}`,
|
|
648
652
|
onClick: (h) => {
|
|
649
653
|
n(h);
|
|
650
654
|
},
|
|
651
655
|
variant: s || "outlined",
|
|
652
656
|
...l,
|
|
653
|
-
children:
|
|
657
|
+
children: o ? e.call_to_action : e.supporting_action
|
|
654
658
|
}
|
|
655
659
|
);
|
|
656
660
|
}, r2 = ({
|
|
657
661
|
ariaHidden: e = !1,
|
|
658
662
|
beat: i,
|
|
659
|
-
children:
|
|
663
|
+
children: r,
|
|
660
664
|
DismissedBeatSwitcher: n,
|
|
661
|
-
elementTag:
|
|
662
|
-
setRefs:
|
|
665
|
+
elementTag: o,
|
|
666
|
+
setRefs: a
|
|
663
667
|
}) => /* @__PURE__ */ t(
|
|
664
668
|
({ elementTag: l, children: d, ...p }) => {
|
|
665
669
|
const h = l;
|
|
@@ -667,11 +671,11 @@ const s1 = ({
|
|
|
667
671
|
},
|
|
668
672
|
{
|
|
669
673
|
"aria-hidden": e,
|
|
670
|
-
"aria-labelledby":
|
|
674
|
+
"aria-labelledby": o === "article" ? i.guid : null,
|
|
671
675
|
"data-ui-test": `${i.template}`,
|
|
672
|
-
elementTag:
|
|
676
|
+
elementTag: o || "article",
|
|
673
677
|
id: `${i.guid}-article`,
|
|
674
|
-
ref:
|
|
678
|
+
ref: a,
|
|
675
679
|
style: {
|
|
676
680
|
position: "relative",
|
|
677
681
|
// Removing this will mess up the graphs in Chrome. I don't think Chrome likes Articles.
|
|
@@ -680,14 +684,14 @@ const s1 = ({
|
|
|
680
684
|
flexDirection: "column",
|
|
681
685
|
boxSizing: "border-box"
|
|
682
686
|
},
|
|
683
|
-
children: i.dismissed_at ? n :
|
|
687
|
+
children: i.dismissed_at ? n : r
|
|
684
688
|
}
|
|
685
|
-
),
|
|
689
|
+
), o2 = ({
|
|
686
690
|
headerText: e,
|
|
687
691
|
menuHeaderCloserButtonAriaLabel: i,
|
|
688
|
-
onCancel:
|
|
692
|
+
onCancel: r,
|
|
689
693
|
onClose: n,
|
|
690
|
-
rating:
|
|
694
|
+
rating: o
|
|
691
695
|
}) => /* @__PURE__ */ m(
|
|
692
696
|
k,
|
|
693
697
|
{
|
|
@@ -702,11 +706,11 @@ const s1 = ({
|
|
|
702
706
|
/* @__PURE__ */ t(
|
|
703
707
|
A1,
|
|
704
708
|
{
|
|
705
|
-
ariaLabel: `${
|
|
709
|
+
ariaLabel: `${o ? i.ratingExist : i.ratingDoesntExist} ${i.ariaLabelText}`,
|
|
706
710
|
className: "mx-insights-feedback-header-container-close-button",
|
|
707
711
|
"data-ui-test": "feedback-close-button",
|
|
708
712
|
onClick: () => {
|
|
709
|
-
|
|
713
|
+
r(), n();
|
|
710
714
|
},
|
|
711
715
|
sx: {
|
|
712
716
|
justifyContent: "center",
|
|
@@ -720,13 +724,13 @@ const s1 = ({
|
|
|
720
724
|
)
|
|
721
725
|
]
|
|
722
726
|
}
|
|
723
|
-
),
|
|
727
|
+
), a2 = ({
|
|
724
728
|
buttonText: e,
|
|
725
729
|
errorMessage: i,
|
|
726
|
-
feedbackMessage:
|
|
730
|
+
feedbackMessage: r,
|
|
727
731
|
onCancel: n,
|
|
728
|
-
onClose:
|
|
729
|
-
otherOptionIndex:
|
|
732
|
+
onClose: o,
|
|
733
|
+
otherOptionIndex: a,
|
|
730
734
|
selectedRadio: s
|
|
731
735
|
}) => {
|
|
732
736
|
const l = f(), { cancelText: d, submitText: p } = e, h = I(q)({
|
|
@@ -764,7 +768,7 @@ const s1 = ({
|
|
|
764
768
|
{
|
|
765
769
|
className: "mx-insights-beat-feedback-submit-button",
|
|
766
770
|
"data-ui-test": "submit-button",
|
|
767
|
-
disabled: !
|
|
771
|
+
disabled: !r.trim() && (s === a || s === null) || !!i,
|
|
768
772
|
type: "submit",
|
|
769
773
|
children: p
|
|
770
774
|
}
|
|
@@ -775,7 +779,7 @@ const s1 = ({
|
|
|
775
779
|
className: "mx-insights-beat-feedback-no-thanks-button",
|
|
776
780
|
"data-ui-test": "no-thanks-button",
|
|
777
781
|
onClick: () => {
|
|
778
|
-
n(),
|
|
782
|
+
n(), o();
|
|
779
783
|
},
|
|
780
784
|
children: d
|
|
781
785
|
}
|
|
@@ -786,10 +790,10 @@ const s1 = ({
|
|
|
786
790
|
}, s2 = ({ bodyText: e }) => /* @__PURE__ */ t("div", { style: { padding: "8px 24px 8px 0px" }, children: /* @__PURE__ */ t(A, { "data-ui-test": "feedback-description", children: e }) }), l2 = ({
|
|
787
791
|
feedbackOptions: e,
|
|
788
792
|
groupAriaLabel: i,
|
|
789
|
-
selectedRadio:
|
|
793
|
+
selectedRadio: r,
|
|
790
794
|
setSelectedRadio: n
|
|
791
795
|
}) => {
|
|
792
|
-
const
|
|
796
|
+
const o = e1();
|
|
793
797
|
return /* @__PURE__ */ t(
|
|
794
798
|
U,
|
|
795
799
|
{
|
|
@@ -797,7 +801,7 @@ const s1 = ({
|
|
|
797
801
|
mx: "-24px",
|
|
798
802
|
".mx-insights-beat-feedback-options-radio-container": {
|
|
799
803
|
padding: "24px 0px 23px 0px",
|
|
800
|
-
borderBottom: `1px solid ${
|
|
804
|
+
borderBottom: `1px solid ${o.palette.border.light}`
|
|
801
805
|
},
|
|
802
806
|
".mx-insights-beat-feedback-options-radio-label": {
|
|
803
807
|
fontSize: "15px",
|
|
@@ -807,13 +811,13 @@ const s1 = ({
|
|
|
807
811
|
alignItems: "center"
|
|
808
812
|
}
|
|
809
813
|
},
|
|
810
|
-
children: /* @__PURE__ */ t($, { "aria-label": i, name: "radio-buttons-group", children: e.map((
|
|
814
|
+
children: /* @__PURE__ */ t($, { "aria-label": i, name: "radio-buttons-group", children: e.map((a, s) => /* @__PURE__ */ t("div", { className: "mx-insights-beat-feedback-options-radio-container", children: /* @__PURE__ */ t(
|
|
811
815
|
Q,
|
|
812
816
|
{
|
|
813
817
|
control: /* @__PURE__ */ t(
|
|
814
818
|
_,
|
|
815
819
|
{
|
|
816
|
-
checked:
|
|
820
|
+
checked: r === s,
|
|
817
821
|
className: "mx-insights-beat-feedback-options-radio",
|
|
818
822
|
id: `radio-${s}`,
|
|
819
823
|
name: `radio-${s}`,
|
|
@@ -824,8 +828,8 @@ const s1 = ({
|
|
|
824
828
|
}
|
|
825
829
|
}
|
|
826
830
|
),
|
|
827
|
-
label:
|
|
828
|
-
value: /* @__PURE__ */ t("div", { className: "mx-insights-beat-feedback-options-radio-label", children:
|
|
831
|
+
label: a,
|
|
832
|
+
value: /* @__PURE__ */ t("div", { className: "mx-insights-beat-feedback-options-radio-label", children: a })
|
|
829
833
|
}
|
|
830
834
|
) }, s)) })
|
|
831
835
|
}
|
|
@@ -833,10 +837,10 @@ const s1 = ({
|
|
|
833
837
|
}, d2 = ({
|
|
834
838
|
feedbackAriaLabel: e,
|
|
835
839
|
feedbackDescriptionPlaceHolder: i,
|
|
836
|
-
feedbackLabel:
|
|
840
|
+
feedbackLabel: r,
|
|
837
841
|
feedbackMessage: n,
|
|
838
|
-
sendAnalytics:
|
|
839
|
-
setFeedbackMessage:
|
|
842
|
+
sendAnalytics: o,
|
|
843
|
+
setFeedbackMessage: a,
|
|
840
844
|
validateForm: s
|
|
841
845
|
}) => {
|
|
842
846
|
const l = i1(t1)({
|
|
@@ -846,7 +850,7 @@ const s1 = ({
|
|
|
846
850
|
return /* @__PURE__ */ t(
|
|
847
851
|
u,
|
|
848
852
|
{
|
|
849
|
-
"aria-label":
|
|
853
|
+
"aria-label": r,
|
|
850
854
|
sx: {
|
|
851
855
|
marginTop: 24
|
|
852
856
|
},
|
|
@@ -858,9 +862,9 @@ const s1 = ({
|
|
|
858
862
|
"data-ui-test": "feedback-textarea",
|
|
859
863
|
name: "Feedback",
|
|
860
864
|
onChange: (d) => {
|
|
861
|
-
|
|
865
|
+
a(d.target.value), s(d.target.value);
|
|
862
866
|
},
|
|
863
|
-
onClick: () =>
|
|
867
|
+
onClick: () => o(),
|
|
864
868
|
placeholder: i,
|
|
865
869
|
value: n
|
|
866
870
|
}
|
|
@@ -870,22 +874,22 @@ const s1 = ({
|
|
|
870
874
|
}, A1 = ({
|
|
871
875
|
ariaLabel: e,
|
|
872
876
|
className: i,
|
|
873
|
-
onClick:
|
|
877
|
+
onClick: r,
|
|
874
878
|
sx: n
|
|
875
879
|
}) => {
|
|
876
|
-
const
|
|
880
|
+
const o = f();
|
|
877
881
|
return /* @__PURE__ */ t(
|
|
878
882
|
n1,
|
|
879
883
|
{
|
|
880
884
|
"aria-label": e,
|
|
881
885
|
className: `${i} mx-insights-menu-header-close-button`,
|
|
882
|
-
onClick:
|
|
886
|
+
onClick: r,
|
|
883
887
|
children: /* @__PURE__ */ t(
|
|
884
888
|
x,
|
|
885
889
|
{
|
|
886
890
|
name: "cancel",
|
|
887
891
|
sx: {
|
|
888
|
-
color:
|
|
892
|
+
color: o.palette.text.secondary,
|
|
889
893
|
cursor: "pointer",
|
|
890
894
|
background: "none",
|
|
891
895
|
border: "none",
|
|
@@ -893,12 +897,12 @@ const s1 = ({
|
|
|
893
897
|
marginLeft: "auto",
|
|
894
898
|
display: "flex",
|
|
895
899
|
" svg": {
|
|
896
|
-
backgroundColor:
|
|
897
|
-
color:
|
|
900
|
+
backgroundColor: o.palette.background.highlight,
|
|
901
|
+
color: o.palette.secondary.darker
|
|
898
902
|
},
|
|
899
903
|
"&:hover svg": {
|
|
900
|
-
backgroundColor:
|
|
901
|
-
color:
|
|
904
|
+
backgroundColor: o.palette.border.light,
|
|
905
|
+
color: o.palette.secondary.darker
|
|
902
906
|
},
|
|
903
907
|
...n
|
|
904
908
|
}
|
|
@@ -907,12 +911,12 @@ const s1 = ({
|
|
|
907
911
|
}
|
|
908
912
|
);
|
|
909
913
|
}, y1 = 200, C1 = 130, x1 = (e) => e || null, z = (e, i) => {
|
|
910
|
-
e.forEach((
|
|
911
|
-
const n = x1(
|
|
914
|
+
e.forEach((r) => {
|
|
915
|
+
const n = x1(r);
|
|
912
916
|
if (n) {
|
|
913
|
-
const
|
|
914
|
-
if (
|
|
915
|
-
const s =
|
|
917
|
+
const o = n.getAttribute("stroke"), a = n.getAttribute("fill");
|
|
918
|
+
if (o && o !== "white" && n.style.setProperty("stroke", i), a) {
|
|
919
|
+
const s = a === "white" ? "white" : i;
|
|
916
920
|
n.style.setProperty("fill", s);
|
|
917
921
|
}
|
|
918
922
|
}
|
|
@@ -920,11 +924,11 @@ const s1 = ({
|
|
|
920
924
|
}, f1 = ({
|
|
921
925
|
clientColorscheme: e,
|
|
922
926
|
divProps: i,
|
|
923
|
-
image:
|
|
927
|
+
image: r,
|
|
924
928
|
isMini: n = !1
|
|
925
929
|
}) => {
|
|
926
|
-
const
|
|
927
|
-
100:
|
|
930
|
+
const o = N(null), { primary_100: a, primary_200: s, primary_300: l, primary_400: d, primary_500: p, widget_brand_color: h } = e, g = Y(() => h ? {
|
|
931
|
+
100: a,
|
|
928
932
|
200: s,
|
|
929
933
|
300: l,
|
|
930
934
|
400: d,
|
|
@@ -935,10 +939,10 @@ const s1 = ({
|
|
|
935
939
|
300: "primary.main",
|
|
936
940
|
400: "primary.dark",
|
|
937
941
|
500: "primary.darker"
|
|
938
|
-
}, [e,
|
|
942
|
+
}, [e, a, s, l, d, p]);
|
|
939
943
|
return P(() => {
|
|
940
|
-
if (!
|
|
941
|
-
const b =
|
|
944
|
+
if (!o.current) return;
|
|
945
|
+
const b = o.current, S = b.querySelectorAll(".Overlay");
|
|
942
946
|
["brand100", "brand200", "brand300", "brand400", "brand500"].forEach((G, W) => {
|
|
943
947
|
const J = b.querySelectorAll(`.${G}`), D = (100 + W).toString();
|
|
944
948
|
z(J, g[D]);
|
|
@@ -951,45 +955,45 @@ const s1 = ({
|
|
|
951
955
|
width: "100%"
|
|
952
956
|
},
|
|
953
957
|
...i,
|
|
954
|
-
children: /* @__PURE__ */ t(
|
|
958
|
+
children: /* @__PURE__ */ t(r, { ref: o })
|
|
955
959
|
}
|
|
956
960
|
);
|
|
957
961
|
}, b1 = (e, i) => /* @__PURE__ */ c.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "28.15 56.63 286.76 143.97", ref: i, ...e }, /* @__PURE__ */ c.createElement("path", { fill: "#CCDDF2", fillRule: "evenodd", d: "M264.093 147.855c12.021 0 21.841 9.407 22.508 21.261a16.69 16.69 0 0 1 11.562-4.637c9.251 0 16.749 7.499 16.749 16.75 0 8.273-5.999 15.389-13.882 16.75h-62.402c-6.273 0-11.357-5.085-11.357-11.358 0-6.272 5.084-11.357 11.357-11.357 1.253 0 2.457.206 3.585.58a22.595 22.595 0 0 1-.666-5.443c0-12.452 10.094-22.546 22.546-22.546ZM96.186 132.749c14.685 0 26.627 11.703 27.033 26.289a20.468 20.468 0 0 1 9.238-2.192c11.358 0 20.566 9.207 20.566 20.566 0 11.359-9.208 20.567-20.566 20.567H42.195c-7.757 0-14.045-6.288-14.045-14.045 0-7.756 6.288-14.044 14.045-14.044 1.397 0 2.745.207 4.019.587a17.686 17.686 0 0 1-1.042-5.996c0-9.788 7.934-17.724 17.724-17.724 3.087 0 5.988.791 8.516 2.179 4.185-9.529 13.7-16.187 24.774-16.187Z", clipRule: "evenodd" }), /* @__PURE__ */ c.createElement("path", { fill: "#C41F3E", fillRule: "evenodd", d: "M88.498 200.6H254.42v-91.004H88.498V200.6Z", clipRule: "evenodd" }), /* @__PURE__ */ c.createElement("path", { fill: "#8B1D41", fillRule: "evenodd", d: "M240.849 200.6H199.64v-52.205c0-11.379 9.225-20.604 20.605-20.604 11.379 0 20.604 9.225 20.604 20.604V200.6Z", clipRule: "evenodd" }), /* @__PURE__ */ c.createElement("path", { fill: "#fff", fillRule: "evenodd", d: "M230.552 174.045a3.37 3.37 0 1 1 6.74 0 3.37 3.37 0 0 1-6.74 0ZM220.245 143.744l7.742 8.202h-15.485l7.743-8.202Zm8.933 8.202-8.933-9.464-8.934 9.464h-2.109v12.501l22.085-12.501h-2.109Z", clipRule: "evenodd" }), /* @__PURE__ */ c.createElement("path", { fill: "#F2F3F2", fillRule: "evenodd", d: "M231.287 151.946v12.501h-22.085l22.085-12.501Z", clipRule: "evenodd" }), /* @__PURE__ */ c.createElement("path", { fill: "#8B1D41", fillRule: "evenodd", d: "m262.739 104.406-8.319-21.649V56.631H88.498v26.126l-8.32 21.649c-.96 2.502.886 5.19 3.566 5.19h175.43c2.68 0 4.527-2.688 3.565-5.19Z", clipRule: "evenodd" }), /* @__PURE__ */ c.createElement("mask", { id: "a", width: 287, height: 145, x: 28, y: 56, "mask-type": "alpha", maskUnits: "userSpaceOnUse" }, /* @__PURE__ */ c.createElement("path", { fill: "#fff", d: "M28.15 200.6h286.763V56.631H28.15V200.6Z" })), /* @__PURE__ */ c.createElement("g", { fillRule: "evenodd", clipRule: "evenodd", mask: "url(#a)" }, /* @__PURE__ */ c.createElement("path", { fill: "#fff", d: "M102.308 178.084h82.339v-50.293h-82.339v50.293Z" }), /* @__PURE__ */ c.createElement("path", { fill: "#F2F3F2", d: "M184.647 127.791v50.292h-82.339l82.339-50.292Z" }), /* @__PURE__ */ c.createElement("path", { fill: "#C41F3E", d: "M218.904 143.452a1.34 1.34 0 1 1 2.681-.001 1.34 1.34 0 0 1-2.681.001ZM106.934 82.757h18.436V56.631h-18.436v26.126ZM143.805 82.757h18.436V56.631h-18.436v26.126ZM180.677 82.757h18.436V56.631h-18.436v26.126ZM217.549 82.757h18.435V56.631h-18.435v26.126Z" }), /* @__PURE__ */ c.createElement("path", { fill: "#fff", d: "M254.419 110.895H88.496l.004-1.299h165.922l-.003 1.299Z" }))), q1 = K(b1), L1 = (e, i) => /* @__PURE__ */ c.createElement("svg", { viewBox: "0 0 349 320", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: i, ...e }, /* @__PURE__ */ c.createElement("g", null, /* @__PURE__ */ c.createElement("path", { d: "M348.198 211.685C340.847 166.938 304.882 116.163 289.128 64.6516C275.759 20.9661 241.789 0.357238 215.138 4.63519e-05C168.168 -0.61692 108.654 49.3465 61.8571 73.7546C5.53009 103.12 -27.3445 152.196 29.9258 200.655C67.3435 232.315 199.362 267.45 268.516 272.093C315.681 275.21 355.17 254.19 348.198 211.685Z", className: "brand100", fill: "#C2DAFF" }), /* @__PURE__ */ c.createElement("path", { d: "M324.691 115.427L193.399 37.0505C191.668 36.0091 189.685 35.4587 187.663 35.4587C185.642 35.4587 183.659 36.0091 181.928 37.0505L50.6352 115.427C49.8363 115.915 49.2174 116.649 48.8709 117.518C48.5245 118.387 48.4692 119.344 48.7133 120.247C48.9574 121.15 49.4878 121.95 50.2252 122.527C50.9625 123.104 51.8671 123.427 52.8037 123.447H63.7655C65.7462 123.454 67.6914 122.923 69.3928 121.91L74.4671 118.88C75.0249 119.672 75.8679 120.219 76.8199 120.406V136.198C76.8228 137.225 77.2327 138.209 77.96 138.935C78.6873 139.661 79.673 140.07 80.7016 140.073H83.4231V141.307C83.4231 142.645 83.9554 143.928 84.9029 144.874C85.8505 145.82 87.1356 146.351 88.4757 146.351H88.7684L87.8251 174.818H92.1621L93.0838 146.957H104.566L105.488 174.818H109.825L108.881 146.351H109.163C110.503 146.351 111.788 145.82 112.736 144.874C113.684 143.928 114.216 142.645 114.216 141.307V140.073H127.802V141.307C127.802 142.645 128.334 143.928 129.281 144.874C130.229 145.82 131.514 146.351 132.854 146.351H133.147L132.204 174.818H136.541L137.473 146.957H148.977L149.91 174.818H152.154C152.859 174.818 153.563 174.818 154.247 174.926L153.303 146.351H153.596C154.936 146.351 156.221 145.82 157.169 144.874C158.116 143.928 158.649 142.645 158.649 141.307V140.073H172.234V141.307C172.234 142.645 172.767 143.928 173.714 144.874C174.662 145.82 175.947 146.351 177.287 146.351H177.58L175.411 210.494V221.459H200.186C200.323 221.507 200.441 221.597 200.524 221.715C200.607 221.833 200.652 221.974 200.653 222.119V224.284H175.455V228.613H296.674C297.076 228.613 297.47 228.718 297.818 228.918C298.166 229.117 298.456 229.404 298.659 229.75L306.845 243.702H175.455V248.659H313.469C314.247 248.657 315.004 248.903 315.632 249.36C316.26 249.818 316.725 250.463 316.961 251.203L317.947 254.255H175.455V258.585H318.576C319.193 258.584 319.801 258.438 320.35 258.158C320.899 257.878 321.375 257.472 321.737 256.974C322.1 256.476 322.339 255.9 322.436 255.292C322.533 254.684 322.485 254.062 322.295 253.476L321.135 249.871C320.618 248.266 319.605 246.866 318.242 245.87C316.878 244.875 315.234 244.335 313.545 244.33H312.266L302.453 227.585C301.862 226.595 301.024 225.776 300.02 225.207C299.017 224.638 297.883 224.338 296.729 224.338H293.834V222.173C293.831 220.856 293.312 219.592 292.388 218.651C291.465 217.71 290.209 217.168 288.889 217.14L286.547 146.405H286.84C287.504 146.405 288.161 146.275 288.774 146.021C289.387 145.768 289.944 145.396 290.413 144.928C290.882 144.459 291.254 143.903 291.508 143.291C291.762 142.679 291.893 142.024 291.893 141.361V140.127H294.603C295.634 140.127 296.622 139.719 297.352 138.993C298.082 138.267 298.493 137.281 298.496 136.252V120.406C299.448 120.219 300.291 119.672 300.849 118.88L305.923 121.91C307.615 122.917 309.548 123.448 311.518 123.447H322.436C323.373 123.427 324.277 123.104 325.015 122.527C325.752 121.95 326.283 121.15 326.527 120.247C326.771 119.344 326.715 118.387 326.369 117.518C326.023 116.649 325.404 115.915 324.605 115.427H324.691ZM109.89 141.307C109.891 141.401 109.874 141.495 109.838 141.582C109.803 141.669 109.75 141.749 109.683 141.815C109.617 141.882 109.537 141.935 109.45 141.97C109.362 142.005 109.268 142.023 109.174 142.021H88.4431C88.2534 142.021 88.0713 141.946 87.9371 141.812C87.8029 141.678 87.7275 141.496 87.7275 141.307V140.073H109.89V141.307ZM154.344 141.307C154.344 141.496 154.269 141.678 154.135 141.812C154 141.946 153.818 142.021 153.629 142.021H132.865C132.675 142.021 132.493 141.946 132.359 141.812C132.225 141.678 132.149 141.496 132.149 141.307V140.073H154.322L154.344 141.307ZM177.32 142.021C177.225 142.023 177.131 142.005 177.044 141.97C176.956 141.935 176.877 141.882 176.81 141.815C176.744 141.749 176.691 141.669 176.655 141.582C176.62 141.495 176.602 141.401 176.604 141.307V140.073H198.744V141.307C198.744 141.496 198.669 141.678 198.535 141.812C198.401 141.946 198.219 142.021 198.029 142.021H177.32ZM179.607 217.075L181.928 146.957H193.442L195.763 217.075H179.607ZM214.683 222.119V224.284H205.033V222.119C205.031 220.801 204.512 219.537 203.588 218.597C202.664 217.656 201.408 217.114 200.089 217.086L197.736 146.351H198.029C199.369 146.351 200.654 145.82 201.602 144.874C202.549 143.928 203.081 142.645 203.081 141.307V140.073H216.667V141.307C216.667 142.645 217.199 143.928 218.147 144.874C219.095 145.82 220.38 146.351 221.72 146.351H222.013L219.671 217.086C218.343 217.1 217.074 217.636 216.14 218.579C215.207 219.521 214.683 220.793 214.683 222.119ZM221.676 142.021C221.487 142.021 221.305 141.946 221.17 141.812C221.036 141.678 220.961 141.496 220.961 141.307V140.073H243.123V141.307C243.124 141.401 243.107 141.495 243.071 141.582C243.036 141.669 242.983 141.749 242.917 141.815C242.85 141.882 242.77 141.935 242.683 141.97C242.595 142.005 242.502 142.023 242.407 142.021H221.676ZM240.109 217.075H224.008L226.328 146.957H237.843L240.109 217.075ZM245.053 224.305H219.02V222.14C219.018 221.997 219.061 221.856 219.142 221.738C219.224 221.62 219.34 221.53 219.475 221.48H244.608C244.745 221.529 244.862 221.619 244.946 221.737C245.029 221.855 245.074 221.996 245.075 222.14L245.053 224.305ZM259.083 222.14V224.305H249.39V222.14C249.387 220.823 248.869 219.559 247.945 218.618C247.021 217.678 245.765 217.136 244.446 217.107L242.104 146.373H242.386C243.726 146.373 245.011 145.841 245.958 144.895C246.906 143.949 247.438 142.666 247.438 141.329V140.095H261.035V141.329C261.035 142.665 261.566 143.946 262.511 144.891C263.456 145.837 264.738 146.37 266.077 146.373H266.369L264.027 217.107C262.721 217.149 261.482 217.695 260.571 218.629C259.659 219.564 259.145 220.814 259.137 222.119L259.083 222.14ZM289.019 221.48C289.153 221.532 289.268 221.623 289.349 221.741C289.43 221.858 289.474 221.998 289.475 222.14V224.305H263.474V222.14C263.475 221.996 263.52 221.855 263.603 221.737C263.687 221.619 263.804 221.529 263.941 221.48H289.074H289.019ZM268.364 217.151L270.696 147.033H282.21L284.531 217.151H268.364ZM287.534 141.383C287.534 141.572 287.459 141.754 287.324 141.888C287.19 142.022 287.008 142.097 286.818 142.097H266.142C266.048 142.097 265.956 142.079 265.869 142.043C265.783 142.007 265.705 141.954 265.639 141.887C265.574 141.821 265.522 141.742 265.487 141.655C265.453 141.569 265.436 141.476 265.437 141.383V140.149H287.599L287.534 141.383ZM294.137 135.819H81.1244V120.503H294.202L294.137 135.819ZM79.3354 116.174L187.761 52.1391L296.002 116.174H79.3354ZM311.561 119.118C310.374 119.117 309.208 118.795 308.189 118.187L191.274 48.394C190.183 47.7405 188.935 47.3952 187.663 47.3952C186.391 47.3952 185.143 47.7405 184.053 48.394L67.1267 118.187C66.1121 118.797 64.9499 119.119 63.7655 119.118H52.8579L184.15 40.7631C185.211 40.1255 186.425 39.7886 187.663 39.7886C188.901 39.7886 190.116 40.1255 191.176 40.7631L322.48 119.118H311.561ZM168.949 87.3711C168.949 91.0661 170.047 94.6781 172.103 97.7504C174.159 100.823 177.082 103.217 180.502 104.631C183.921 106.045 187.684 106.415 191.314 105.694C194.945 104.973 198.279 103.194 200.896 100.581C203.514 97.9687 205.296 94.6398 206.018 91.0159C206.74 87.3919 206.369 83.6355 204.953 80.2218C203.537 76.8081 201.138 73.8903 198.06 71.8375C194.983 69.7847 191.365 68.689 187.663 68.689C182.702 68.6947 177.945 70.6648 174.437 74.1672C170.928 77.6695 168.955 82.4181 168.949 87.3711ZM202.041 87.3711C202.041 90.2098 201.197 92.9847 199.618 95.345C198.038 97.7053 195.792 99.5449 193.165 100.631C190.538 101.718 187.647 102.002 184.858 101.448C182.07 100.894 179.508 99.5272 177.497 97.52C175.486 95.5127 174.117 92.9553 173.562 90.1712C173.008 87.3871 173.292 84.5012 174.381 81.8786C175.469 79.256 177.311 77.0145 179.676 75.4374C182.04 73.8603 184.82 73.0185 187.663 73.0185C191.475 73.0243 195.128 74.5383 197.823 77.2287C200.518 79.919 202.035 83.5664 202.041 87.3711Z", fill: "white" }), /* @__PURE__ */ c.createElement("path", { d: "M39.4782 318.387C27.2803 318.387 17.3594 308.732 17.3594 296.869V201.531C17.3594 189.625 27.2803 180.013 39.4782 180.013H186.167C198.365 180.013 208.286 189.668 208.286 201.531V296.869C208.286 308.775 198.365 318.387 186.167 318.387H39.4782Z", fill: "white" }), /* @__PURE__ */ c.createElement("path", { d: "M175.476 234.729H144.563V262.373H175.476V234.729Z", className: "brand100", fill: "#C2DAFF" }), /* @__PURE__ */ c.createElement("path", { d: "M190.07 179.148H35.5856C30.5589 179.153 25.7399 181.15 22.1865 184.7C18.6331 188.249 16.6357 193.061 16.6328 198.079V301.091C16.6386 306.107 18.6372 310.916 22.1903 314.463C25.7434 318.01 30.5608 320.005 35.5856 320.011H190.07C195.095 320.005 199.912 318.01 203.466 314.463C207.019 310.916 209.017 306.107 209.023 301.091V198.079C209.02 193.061 207.023 188.249 203.469 184.7C199.916 181.15 195.097 179.153 190.07 179.148V179.148ZM48.6183 315.595H35.6073C31.7519 315.592 28.0553 314.062 25.3292 311.34C22.6031 308.619 21.0703 304.929 21.0674 301.08V292.615H48.6183V315.595ZM48.6183 288.686H21.0457V264.257H48.6183V288.686ZM48.6183 260.328H21.0457V235.898H48.6183V260.328ZM48.6183 231.969H21.0457V207.82L48.6183 207.691V231.969ZM79.7473 315.595H52.5542V292.615H79.7473V315.595ZM79.7473 288.686H52.5542V264.257H79.7473V288.686ZM79.7473 260.328H52.5542V235.898H79.7473V260.328ZM79.7473 231.969H52.5542V207.712L79.7473 207.604V231.969ZM110.876 315.595H83.6831V292.615H110.876V315.595ZM110.876 288.686H83.6831V264.257H110.876V288.686ZM110.876 260.328H83.6831V235.898H110.876V260.328ZM110.876 231.969H83.6831V207.593L110.876 207.507V231.969ZM142.038 315.595H114.812V292.615H142.038V315.595ZM142.038 288.686H114.812V264.257H142.038V288.686ZM142.038 260.328H114.812V235.898H142.038V260.328ZM142.038 231.969H114.812V207.496H142.005L142.038 231.969ZM173.156 315.595H145.941V292.615H173.123L173.156 315.595ZM173.156 288.686H145.941V264.257H173.123L173.156 288.686ZM173.156 260.328H145.941V235.898H173.123L173.156 260.328ZM173.156 231.969H145.941V207.442C155.699 207.442 164.948 207.442 173.123 207.442L173.156 231.969ZM204.599 301.08C204.596 304.929 203.064 308.619 200.337 311.34C197.611 314.062 193.915 315.592 190.059 315.595H177.048V292.615H204.588L204.599 301.08ZM204.599 288.686H177.059V264.257H204.599V288.686ZM204.599 260.328H177.059V235.898H204.599V260.328ZM204.599 231.969H177.059V207.452C190.363 207.452 200.371 207.571 204.599 207.712V231.969Z", className: "Overlay", fill: "#2C64EF" }), /* @__PURE__ */ c.createElement("path", { d: "M145.94 235.898L173.123 260.327", className: "Overlay", stroke: "#2C64EF", strokeWidth: 3.54, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ c.createElement("path", { d: "M173.123 235.898L145.94 260.327", className: "Overlay", stroke: "#2C64EF", strokeWidth: 3.54, strokeLinecap: "round", strokeLinejoin: "round" }))), H1 = K(L1), S1 = ({
|
|
958
962
|
isCIBC: e,
|
|
959
963
|
isMini: i,
|
|
960
|
-
clientColorscheme:
|
|
964
|
+
clientColorscheme: r
|
|
961
965
|
}) => {
|
|
962
966
|
const n = {
|
|
963
967
|
height: "auto",
|
|
964
968
|
width: i ? "30%" : "50%",
|
|
965
969
|
marginBottom: 16
|
|
966
|
-
},
|
|
970
|
+
}, o = e ? q1 : H1, a = e ? { ...n, width: i ? "50%" : "70%" } : n;
|
|
967
971
|
return /* @__PURE__ */ t(u, { sx: { display: "flex", justifyContent: "center", width: "100%" }, children: /* @__PURE__ */ t(
|
|
968
972
|
f1,
|
|
969
973
|
{
|
|
970
|
-
clientColorscheme:
|
|
971
|
-
divProps: { style:
|
|
972
|
-
image:
|
|
974
|
+
clientColorscheme: r,
|
|
975
|
+
divProps: { style: a },
|
|
976
|
+
image: o
|
|
973
977
|
}
|
|
974
978
|
) });
|
|
975
979
|
}, c2 = Z(S1), m2 = ({
|
|
976
980
|
goalCompletionDate: e = "",
|
|
977
981
|
goalContribution: i = "",
|
|
978
|
-
isDarkMode:
|
|
982
|
+
isDarkMode: r,
|
|
979
983
|
payload: n,
|
|
980
|
-
percentageCompleteText:
|
|
981
|
-
showGoalContributedLastMonth:
|
|
984
|
+
percentageCompleteText: o,
|
|
985
|
+
showGoalContributedLastMonth: a,
|
|
982
986
|
showProjectedToCompleteDate: s,
|
|
983
987
|
title: l,
|
|
984
988
|
totalSavedText: d
|
|
985
989
|
}) => {
|
|
986
|
-
const p = L(
|
|
987
|
-
return /* @__PURE__ */ t(H, { theme: p, children: /* @__PURE__ */ t(u, { className: "mx-insights-mefr-body", "data-ui-test": "mefr-body", sx: { mb: 16 }, children: /* @__PURE__ */ m(
|
|
990
|
+
const p = L(r ? "dark" : "light");
|
|
991
|
+
return /* @__PURE__ */ t(H, { theme: p, children: /* @__PURE__ */ t(u, { className: "mx-insights-mefr-body", "data-ui-test": "mefr-body", sx: { mb: 16 }, children: /* @__PURE__ */ m(a1, { title: l, children: [
|
|
988
992
|
/* @__PURE__ */ t(
|
|
989
|
-
|
|
993
|
+
o1,
|
|
990
994
|
{
|
|
991
995
|
goalPercentage: n.goal_percentage,
|
|
992
|
-
percentageCompleteText:
|
|
996
|
+
percentageCompleteText: o
|
|
993
997
|
}
|
|
994
998
|
),
|
|
995
999
|
/* @__PURE__ */ m(
|
|
@@ -1000,11 +1004,11 @@ const s1 = ({
|
|
|
1000
1004
|
sx: { marginTop: 8 },
|
|
1001
1005
|
children: [
|
|
1002
1006
|
!!s && /* @__PURE__ */ t(M1, { goalCompletionDate: e }),
|
|
1003
|
-
!!
|
|
1007
|
+
!!a && /* @__PURE__ */ t(I1, { goalContribution: i }),
|
|
1004
1008
|
/* @__PURE__ */ t(
|
|
1005
1009
|
v1,
|
|
1006
1010
|
{
|
|
1007
|
-
showGoalContributedLastMonth:
|
|
1011
|
+
showGoalContributedLastMonth: a,
|
|
1008
1012
|
totalSavedText: d
|
|
1009
1013
|
}
|
|
1010
1014
|
)
|
|
@@ -1088,25 +1092,25 @@ const s1 = ({
|
|
|
1088
1092
|
), p2 = ({
|
|
1089
1093
|
accountGuid: e,
|
|
1090
1094
|
animation: i,
|
|
1091
|
-
leftLowerText:
|
|
1095
|
+
leftLowerText: r,
|
|
1092
1096
|
leftUpperText: n,
|
|
1093
|
-
isComplete:
|
|
1094
|
-
isDarkMode:
|
|
1097
|
+
isComplete: o,
|
|
1098
|
+
isDarkMode: a,
|
|
1095
1099
|
isMini: s,
|
|
1096
1100
|
headerString: l,
|
|
1097
1101
|
rightLowerText: d,
|
|
1098
1102
|
rightUpperText: p
|
|
1099
1103
|
}) => {
|
|
1100
|
-
const h = L(
|
|
1104
|
+
const h = L(a ? "dark" : "light");
|
|
1101
1105
|
return /* @__PURE__ */ t(H, { theme: h, children: /* @__PURE__ */ t(
|
|
1102
1106
|
E,
|
|
1103
1107
|
{
|
|
1104
1108
|
accountGuid: e,
|
|
1105
1109
|
animation: i,
|
|
1106
1110
|
headerString: l,
|
|
1107
|
-
isComplete:
|
|
1111
|
+
isComplete: o,
|
|
1108
1112
|
isMini: s,
|
|
1109
|
-
leftLowerText:
|
|
1113
|
+
leftLowerText: r,
|
|
1110
1114
|
leftUpperText: n,
|
|
1111
1115
|
rightLowerText: d,
|
|
1112
1116
|
rightUpperText: p
|
|
@@ -1152,10 +1156,10 @@ const s1 = ({
|
|
|
1152
1156
|
), u2 = ({
|
|
1153
1157
|
accountGuid: e,
|
|
1154
1158
|
animation: i,
|
|
1155
|
-
destinationAccountGuid:
|
|
1159
|
+
destinationAccountGuid: r,
|
|
1156
1160
|
externalAccountName: n,
|
|
1157
|
-
heldAccountName:
|
|
1158
|
-
headerString:
|
|
1161
|
+
heldAccountName: o,
|
|
1162
|
+
headerString: a,
|
|
1159
1163
|
isComplete: s,
|
|
1160
1164
|
isDarkMode: l,
|
|
1161
1165
|
isMini: d,
|
|
@@ -1171,7 +1175,7 @@ const s1 = ({
|
|
|
1171
1175
|
{
|
|
1172
1176
|
accountGuid: e,
|
|
1173
1177
|
animation: i,
|
|
1174
|
-
headerString:
|
|
1178
|
+
headerString: a,
|
|
1175
1179
|
isComplete: s,
|
|
1176
1180
|
isMini: d,
|
|
1177
1181
|
leftLowerText: p,
|
|
@@ -1182,16 +1186,16 @@ const s1 = ({
|
|
|
1182
1186
|
) : /* @__PURE__ */ t(
|
|
1183
1187
|
k1,
|
|
1184
1188
|
{
|
|
1185
|
-
destinationAccountGuid:
|
|
1189
|
+
destinationAccountGuid: r,
|
|
1186
1190
|
externalAccountName: n,
|
|
1187
|
-
heldAccountName:
|
|
1191
|
+
heldAccountName: o,
|
|
1188
1192
|
sourceAccountGuid: S
|
|
1189
1193
|
}
|
|
1190
1194
|
) }) });
|
|
1191
1195
|
}, k1 = ({
|
|
1192
1196
|
destinationAccountGuid: e,
|
|
1193
1197
|
externalAccountName: i,
|
|
1194
|
-
heldAccountName:
|
|
1198
|
+
heldAccountName: r,
|
|
1195
1199
|
sourceAccountGuid: n
|
|
1196
1200
|
}) => /* @__PURE__ */ m(
|
|
1197
1201
|
k,
|
|
@@ -1210,7 +1214,7 @@ const s1 = ({
|
|
|
1210
1214
|
sx: { my: "auto" }
|
|
1211
1215
|
}
|
|
1212
1216
|
),
|
|
1213
|
-
/* @__PURE__ */ t(w, { accountGuid: e, accountName:
|
|
1217
|
+
/* @__PURE__ */ t(w, { accountGuid: e, accountName: r })
|
|
1214
1218
|
]
|
|
1215
1219
|
}
|
|
1216
1220
|
);
|
|
@@ -1227,9 +1231,9 @@ export {
|
|
|
1227
1231
|
E as DirectDeposit,
|
|
1228
1232
|
S1 as FederalBankHoliday,
|
|
1229
1233
|
c2 as FederalBankHolidayBody,
|
|
1230
|
-
|
|
1234
|
+
a2 as FeedbackButtons,
|
|
1231
1235
|
s2 as FeedbackDescription,
|
|
1232
|
-
|
|
1236
|
+
o2 as FeedbackHeader,
|
|
1233
1237
|
l2 as FeedbackOptions,
|
|
1234
1238
|
l1 as FullFeedBodyHeader,
|
|
1235
1239
|
d1 as FullFeedLogoSection,
|
|
@@ -1241,8 +1245,8 @@ export {
|
|
|
1241
1245
|
p1 as MiniBodyHeader,
|
|
1242
1246
|
m2 as MonthlyEmergencyFundReviewBody,
|
|
1243
1247
|
M1 as ProjectedCompletionSection,
|
|
1244
|
-
|
|
1245
|
-
|
|
1248
|
+
o1 as PulseGoalProgress,
|
|
1249
|
+
a1 as PulseGraidentBox,
|
|
1246
1250
|
r1 as PulseProgressBar,
|
|
1247
1251
|
u1 as RightBox,
|
|
1248
1252
|
p2 as SetUpDirectDepositBody,
|