@tesouro/embedded-components-react 0.7.11 → 0.7.12

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.
Files changed (39) hide show
  1. package/README.md +6 -8
  2. package/dist/index.d.ts +15 -193
  3. package/dist/index.js +1 -1
  4. package/dist/lib/BillPayWidget.d.ts +10 -188
  5. package/dist/lib/BillPayWidget.js +1 -1
  6. package/dist/lib/CounterpartsWidget.d.ts +1 -1
  7. package/dist/lib/CounterpartsWidgetPublic.d.ts +1 -1
  8. package/dist/lib/CustomersWidget.d.ts +1 -2
  9. package/dist/lib/WidgetSuite.d.ts +4 -4
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +2 -1
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/{BillPayWidgetNative/BillPayWidgetNative.js → BillPayWidget/BillPayWidget.js} +4 -3
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/{BillPayWidgetNative → BillPayWidget}/BillsTab.js +1 -1
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget/index.js +1 -0
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/{BillPayWidgetNative → BillPayWidget}/labels.js +2 -2
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/{BillPayWidgetNative → BillPayWidget}/testIds.js +1 -1
  16. package/dist/libs/tesouro-embedded-components-react/customers-widget/feature/dist/lib/CustomersWidgetMonite/CustomersWidgetMonite.js +7 -7
  17. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index105.js +53 -53
  18. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index107.js +23 -23
  19. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index108.js +74 -74
  20. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index157.js +30 -30
  21. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index160.js +28 -28
  22. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +6 -6
  23. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +13 -13
  24. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index340.js +9 -9
  25. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index360.js +6 -6
  26. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +57 -57
  27. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +6 -6
  28. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index49.js +3 -3
  29. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index51.js +3 -3
  30. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index65.js +6 -6
  31. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index91.js +29 -29
  32. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index97.js +24 -24
  33. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  34. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/lib/WidgetSuite/sections/BillPaySection.js +7 -11
  35. package/package.json +1 -1
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget.js +0 -27
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidgetMonite/BillPayWidgetMonite.js +0 -46
  38. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidgetMonite/index.js +0 -1
  39. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidgetNative/index.js +0 -1
@@ -1,31 +1,31 @@
1
- import { jsx as e, jsxs as t } from "@emotion/react/jsx-runtime";
2
- import { useLingui as n } from "@lingui/react";
3
- import { twMerge as r } from "tailwind-merge";
1
+ import { twMerge as e } from "tailwind-merge";
2
+ import { jsx as t, jsxs as n } from "@emotion/react/jsx-runtime";
3
+ import { useLingui as r } from "@lingui/react";
4
4
  //#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js
5
5
  var i = ({ isAllStatus: i, data: a, amountOfItems: o, selected: s, onClick: c, formatAmount: l, statusChip: u, allItemsText: d }) => {
6
- let { i18n: f } = n();
7
- return /* @__PURE__ */ e("button", {
6
+ let { i18n: f } = r();
7
+ return /* @__PURE__ */ t("button", {
8
8
  onClick: c,
9
9
  type: "button",
10
- className: r("ttw:flex ttw:flex-col ttw:gap-2 ttw:px-4 ttw:py-2 ttw:rounded-xl ttw:border ttw:w-42 ttw:shrink-0 ttw:text-left ttw:cursor-pointer ttw:transition-colors ttw:bg-white", s ? "ttw:border-indigo-700" : "ttw:border-white ttw:hover:border-indigo-700"),
11
- children: i ? /* @__PURE__ */ t("div", {
10
+ className: e("ttw:flex ttw:flex-col ttw:gap-2 ttw:px-4 ttw:py-2 ttw:rounded-xl ttw:border ttw:w-42 ttw:shrink-0 ttw:text-left ttw:cursor-pointer ttw:transition-colors ttw:bg-white", s ? "ttw:border-indigo-700" : "ttw:border-white ttw:hover:border-indigo-700"),
11
+ children: i ? /* @__PURE__ */ n("div", {
12
12
  className: "ttw:flex ttw:flex-col ttw:gap-2",
13
- children: [/* @__PURE__ */ e("span", {
13
+ children: [/* @__PURE__ */ t("span", {
14
14
  className: "ttw:text-xs ttw:font-medium ttw:text-zinc-950",
15
15
  children: d ?? f._("All items")
16
- }), /* @__PURE__ */ e("span", {
16
+ }), /* @__PURE__ */ t("span", {
17
17
  className: "ttw:text-2xl ttw:font-medium ttw:text-zinc-950 ttw:leading-8 ttw:tabular-nums",
18
18
  children: a
19
19
  })]
20
- }) : /* @__PURE__ */ t("div", {
20
+ }) : /* @__PURE__ */ n("div", {
21
21
  className: "ttw:flex ttw:flex-col",
22
- children: [/* @__PURE__ */ t("div", {
22
+ children: [/* @__PURE__ */ n("div", {
23
23
  className: "ttw:flex ttw:items-center ttw:justify-between ttw:gap-2",
24
- children: [u, /* @__PURE__ */ e("span", {
24
+ children: [u, /* @__PURE__ */ t("span", {
25
25
  className: "ttw:text-xs ttw:font-medium ttw:leading-4.5 ttw:text-zinc-950 ttw:tabular-nums",
26
26
  children: o ?? 0
27
27
  })]
28
- }), /* @__PURE__ */ e("span", {
28
+ }), /* @__PURE__ */ t("span", {
29
29
  className: "ttw:text-2xl ttw:font-medium ttw:text-zinc-950 ttw:leading-8 ttw:tabular-nums ttw:overflow-hidden ttw:whitespace-nowrap ttw:text-ellipsis",
30
30
  children: l(a)
31
31
  })]
@@ -1,23 +1,23 @@
1
1
  import { dateStringToLocalDate as e } from "./index16.js";
2
2
  import { useMoniteContext as t } from "./index45.js";
3
3
  import { getInvoiceOverdueDays as n } from "./index339.js";
4
- import { jsx as r, jsxs as i } from "@emotion/react/jsx-runtime";
5
- import { useLingui as a } from "@lingui/react";
6
- import { twMerge as o } from "tailwind-merge";
4
+ import { twMerge as r } from "tailwind-merge";
5
+ import { jsx as i, jsxs as a } from "@emotion/react/jsx-runtime";
6
+ import { useLingui as o } from "@lingui/react";
7
7
  //#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index340.js
8
8
  var s = ({ data: s, emptyLabel: c }) => {
9
- let { i18n: l } = a(), { locale: u } = t();
10
- if (!s.due_date) return c ? /* @__PURE__ */ r("span", { children: c }) : /* @__PURE__ */ r("span", {
9
+ let { i18n: l } = o(), { locale: u } = t();
10
+ if (!s.due_date) return c ? /* @__PURE__ */ i("span", { children: c }) : /* @__PURE__ */ i("span", {
11
11
  className: "ttw:opacity-40",
12
12
  children: "-"
13
13
  });
14
14
  let d = l.date(e(s.due_date), u.dateFormat), f = n(s), p = f > 0;
15
- return /* @__PURE__ */ i("div", {
15
+ return /* @__PURE__ */ a("div", {
16
16
  className: "ttw:flex ttw:flex-col ttw:h-full ttw:justify-center ttw:gap-1",
17
- children: [/* @__PURE__ */ r("span", {
18
- className: o("ttw:text-sm ttw:font-normal ttw:leading-5", p && "ttw:text-rose-700"),
17
+ children: [/* @__PURE__ */ i("span", {
18
+ className: r("ttw:text-sm ttw:font-normal ttw:leading-5", p && "ttw:text-rose-700"),
19
19
  children: d
20
- }), p && /* @__PURE__ */ i("span", {
20
+ }), p && /* @__PURE__ */ a("span", {
21
21
  className: "ttw:text-xs ttw:font-normal ttw:leading-4.5 ttw:text-rose-700",
22
22
  children: [
23
23
  f,
@@ -1,13 +1,13 @@
1
1
  import { Badge as e } from "./index116.js";
2
- import { jsx as t } from "@emotion/react/jsx-runtime";
3
- import { useLingui as n } from "@lingui/react";
4
- import { twMerge as r } from "tailwind-merge";
2
+ import { twMerge as t } from "tailwind-merge";
3
+ import { jsx as n } from "@emotion/react/jsx-runtime";
4
+ import { useLingui as r } from "@lingui/react";
5
5
  //#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index360.js
6
6
  var i = ({ type: i }) => {
7
- let { i18n: a } = n(), o = i === "product", s = o ? a._("Product") : a._("Service");
8
- return /* @__PURE__ */ t(e, {
7
+ let { i18n: a } = r(), o = i === "product", s = o ? a._("Product") : a._("Service");
8
+ return /* @__PURE__ */ n(e, {
9
9
  variant: "secondary",
10
- className: r(o ? "ttw:bg-blue-100 ttw:text-blue-700" : "ttw:bg-pink-100 ttw:text-pink-700"),
10
+ className: t(o ? "ttw:bg-blue-100 ttw:text-blue-700" : "ttw:bg-pink-100 ttw:text-pink-700"),
11
11
  children: s
12
12
  });
13
13
  };
@@ -11,71 +11,71 @@ import { useGetMeasureUnits as x } from "./index351.js";
11
11
  import "./index358.js";
12
12
  import "./index364.js";
13
13
  import { useCallback as S, useMemo as C, useRef as w } from "react";
14
- import { jsx as T, jsxs as E } from "@emotion/react/jsx-runtime";
15
- import { useLingui as D } from "@lingui/react";
16
- import { twMerge as O } from "tailwind-merge";
14
+ import { twMerge as T } from "tailwind-merge";
15
+ import { jsx as E, jsxs as D } from "@emotion/react/jsx-runtime";
16
+ import { useLingui as O } from "@lingui/react";
17
17
  import { Controller as k, useFormContext as A } from "react-hook-form";
18
18
  //#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js
19
19
  var j = ({ isLoading: j, isEditMode: M, isProduct: N }) => {
20
- let { i18n: P } = D(), { getSymbolFromCurrency: F } = e(), I = w(null), { data: L } = x(), R = L?.data ?? [], { control: z, formState: { errors: B } } = A(), V = C(() => R.map((e) => e.id), [R]), H = C(() => new Map(R.map((e) => [e.id, e.name])), [R]), U = S((e) => H.get(e) ?? e, [H]);
21
- return /* @__PURE__ */ E("div", {
20
+ let { i18n: P } = O(), { getSymbolFromCurrency: F } = e(), I = w(null), { data: L } = x(), R = L?.data ?? [], { control: z, formState: { errors: B } } = A(), V = C(() => R.map((e) => e.id), [R]), H = C(() => new Map(R.map((e) => [e.id, e.name])), [R]), U = S((e) => H.get(e) ?? e, [H]);
21
+ return /* @__PURE__ */ D("div", {
22
22
  className: "ttw:flex ttw:flex-col ttw:gap-4",
23
23
  children: [
24
- M && /* @__PURE__ */ T("div", {
24
+ M && /* @__PURE__ */ E("div", {
25
25
  className: "ttw:flex ttw:items-center ttw:gap-3 ttw:pt-6 ttw:pb-7 ttw:border-b ttw:border-border",
26
- children: /* @__PURE__ */ T(p, {
26
+ children: /* @__PURE__ */ E(p, {
27
27
  variant: "body1",
28
28
  className: "ttw:font-medium",
29
29
  children: P._("Editing {type} details", { type: N ? "product" : "service" })
30
30
  })
31
31
  }),
32
- /* @__PURE__ */ T(k, {
32
+ /* @__PURE__ */ E(k, {
33
33
  name: "type",
34
34
  control: z,
35
- render: ({ field: e }) => /* @__PURE__ */ E("div", {
35
+ render: ({ field: e }) => /* @__PURE__ */ D("div", {
36
36
  className: "ttw:flex ttw:flex-col ttw:gap-1.5",
37
- children: [/* @__PURE__ */ T(v, { children: P._("Type") }), /* @__PURE__ */ E(y, {
37
+ children: [/* @__PURE__ */ E(v, { children: P._("Type") }), /* @__PURE__ */ D(y, {
38
38
  className: "ttw:flex",
39
39
  value: e.value,
40
40
  disabled: j,
41
41
  onValueChange: e.onChange,
42
- children: [/* @__PURE__ */ E("div", {
43
- className: O("ttw:flex ttw:p-4 ttw:flex-1 ttw:gap-2 ttw:border ttw:rounded-xl ttw:border-border ttw:hover:bg-primary/10 ttw:hover:border-primary/30", e.value === "product" && "ttw:bg-primary/10 ttw:border-primary/30"),
44
- children: [/* @__PURE__ */ T(b, {
42
+ children: [/* @__PURE__ */ D("div", {
43
+ className: T("ttw:flex ttw:p-4 ttw:flex-1 ttw:gap-2 ttw:border ttw:rounded-xl ttw:border-border ttw:hover:bg-primary/10 ttw:hover:border-primary/30", e.value === "product" && "ttw:bg-primary/10 ttw:border-primary/30"),
44
+ children: [/* @__PURE__ */ E(b, {
45
45
  value: "product",
46
46
  id: "type-product",
47
- className: O(e.value === "product" ? "ttw:bg-primary" : "ttw:bg-white"),
48
- dotClassName: O(e.value === "product" && "ttw:fill-white"),
47
+ className: T(e.value === "product" ? "ttw:bg-primary" : "ttw:bg-white"),
48
+ dotClassName: T(e.value === "product" && "ttw:fill-white"),
49
49
  disabled: j
50
- }), /* @__PURE__ */ E(m, {
50
+ }), /* @__PURE__ */ D(m, {
51
51
  htmlFor: "type-product",
52
52
  className: "ttw:flex ttw:flex-col ttw:items-start ttw:gap-1.5",
53
- children: [/* @__PURE__ */ T(p, {
53
+ children: [/* @__PURE__ */ E(p, {
54
54
  variant: "body2",
55
55
  className: "ttw:leading-3.5",
56
56
  children: P._("Product")
57
- }), /* @__PURE__ */ T(p, {
57
+ }), /* @__PURE__ */ E(p, {
58
58
  variant: "caption",
59
59
  color: "muted",
60
60
  children: P._("A physical or digital item")
61
61
  })]
62
62
  })]
63
- }), /* @__PURE__ */ E("div", {
64
- className: O("ttw:flex ttw:p-4 ttw:flex-1 ttw:gap-2 ttw:border ttw:rounded-xl ttw:border-border ttw:hover:bg-primary/10 ttw:hover:border-primary/30", e.value === "service" && "ttw:bg-primary/10 ttw:border-primary/30"),
65
- children: [/* @__PURE__ */ T(b, {
63
+ }), /* @__PURE__ */ D("div", {
64
+ className: T("ttw:flex ttw:p-4 ttw:flex-1 ttw:gap-2 ttw:border ttw:rounded-xl ttw:border-border ttw:hover:bg-primary/10 ttw:hover:border-primary/30", e.value === "service" && "ttw:bg-primary/10 ttw:border-primary/30"),
65
+ children: [/* @__PURE__ */ E(b, {
66
66
  value: "service",
67
67
  id: "type-service",
68
- className: O(e.value === "service" ? "ttw:bg-primary" : "ttw:bg-white"),
69
- dotClassName: O(e.value === "service" && "ttw:fill-white"),
68
+ className: T(e.value === "service" ? "ttw:bg-primary" : "ttw:bg-white"),
69
+ dotClassName: T(e.value === "service" && "ttw:fill-white"),
70
70
  disabled: j
71
- }), /* @__PURE__ */ E(m, {
71
+ }), /* @__PURE__ */ D(m, {
72
72
  htmlFor: "type-service",
73
73
  className: "ttw:flex ttw:flex-col ttw:items-start ttw:gap-1.5",
74
- children: [/* @__PURE__ */ T(p, {
74
+ children: [/* @__PURE__ */ E(p, {
75
75
  variant: "body2",
76
76
  className: "ttw:leading-3.5",
77
77
  children: P._("Service")
78
- }), /* @__PURE__ */ T(p, {
78
+ }), /* @__PURE__ */ E(p, {
79
79
  variant: "caption",
80
80
  color: "muted",
81
81
  children: P._("Work or labor you provide")
@@ -85,15 +85,15 @@ var j = ({ isLoading: j, isEditMode: M, isProduct: N }) => {
85
85
  })]
86
86
  })
87
87
  }),
88
- /* @__PURE__ */ T(k, {
88
+ /* @__PURE__ */ E(k, {
89
89
  name: "name",
90
90
  control: z,
91
- render: ({ field: e, fieldState: { error: n } }) => /* @__PURE__ */ T(h, { children: /* @__PURE__ */ E(g, { children: [
92
- /* @__PURE__ */ T(v, {
91
+ render: ({ field: e, fieldState: { error: n } }) => /* @__PURE__ */ E(h, { children: /* @__PURE__ */ D(g, { children: [
92
+ /* @__PURE__ */ E(v, {
93
93
  htmlFor: e.name,
94
94
  children: P._("Name")
95
95
  }),
96
- /* @__PURE__ */ T(t, {
96
+ /* @__PURE__ */ E(t, {
97
97
  ...e,
98
98
  id: e.name,
99
99
  placeholder: P._("e.g. House blend espresso beans"),
@@ -101,26 +101,26 @@ var j = ({ isLoading: j, isEditMode: M, isProduct: N }) => {
101
101
  disabled: j,
102
102
  "aria-invalid": !!n || void 0
103
103
  }),
104
- /* @__PURE__ */ T(_, { errors: [n] })
104
+ /* @__PURE__ */ E(_, { errors: [n] })
105
105
  ] }) })
106
106
  }),
107
- /* @__PURE__ */ E("div", {
107
+ /* @__PURE__ */ D("div", {
108
108
  className: "ttw:w-1/2 ttw:flex ttw:flex-col ttw:gap-1.5",
109
109
  children: [
110
- /* @__PURE__ */ T(v, { children: P._("Price per unit") }),
111
- /* @__PURE__ */ E("div", {
112
- className: O("ttw:flex ttw:overflow-hidden ttw:rounded-md ttw:border ttw:border-input ttw:shadow-xs ttw:transition-[color,box-shadow]", "ttw:focus-within:border-ring ttw:focus-within:ring-[3px] ttw:focus-within:ring-ring/50", "ttw:has-[[data-slot][aria-invalid=true]]:border-destructive ttw:has-[[data-slot][aria-invalid=true]]:ring-[3px] ttw:has-[[data-slot][aria-invalid=true]]:ring-destructive/20", M && "ttw:bg-white"),
110
+ /* @__PURE__ */ E(v, { children: P._("Price per unit") }),
111
+ /* @__PURE__ */ D("div", {
112
+ className: T("ttw:flex ttw:overflow-hidden ttw:rounded-md ttw:border ttw:border-input ttw:shadow-xs ttw:transition-[color,box-shadow]", "ttw:focus-within:border-ring ttw:focus-within:ring-[3px] ttw:focus-within:ring-ring/50", "ttw:has-[[data-slot][aria-invalid=true]]:border-destructive ttw:has-[[data-slot][aria-invalid=true]]:ring-[3px] ttw:has-[[data-slot][aria-invalid=true]]:ring-destructive/20", M && "ttw:bg-white"),
113
113
  ref: I,
114
114
  children: [
115
- /* @__PURE__ */ T(k, {
115
+ /* @__PURE__ */ E(k, {
116
116
  name: "pricePerUnit",
117
117
  control: z,
118
- render: ({ field: e, fieldState: { error: t } }) => /* @__PURE__ */ E(n, {
118
+ render: ({ field: e, fieldState: { error: t } }) => /* @__PURE__ */ D(n, {
119
119
  className: "ttw:flex-1 ttw:border-0 ttw:shadow-none ttw:rounded-none ttw:has-[[data-slot=input-group-control]:focus-visible]:border-transparent ttw:has-[[data-slot=input-group-control]:focus-visible]:ring-0",
120
- children: [/* @__PURE__ */ T(r, {
120
+ children: [/* @__PURE__ */ E(r, {
121
121
  align: "inline-start",
122
122
  children: F("USD")
123
- }), /* @__PURE__ */ T(i, {
123
+ }), /* @__PURE__ */ E(i, {
124
124
  type: "number",
125
125
  name: e.name,
126
126
  ref: e.ref,
@@ -134,25 +134,25 @@ var j = ({ isLoading: j, isEditMode: M, isProduct: N }) => {
134
134
  })]
135
135
  })
136
136
  }),
137
- /* @__PURE__ */ T("div", { className: "ttw:w-px ttw:shrink-0 ttw:bg-border" }),
138
- /* @__PURE__ */ T(k, {
137
+ /* @__PURE__ */ E("div", { className: "ttw:w-px ttw:shrink-0 ttw:bg-border" }),
138
+ /* @__PURE__ */ E(k, {
139
139
  name: "measureUnitId",
140
140
  control: z,
141
- render: ({ field: e, fieldState: { error: t } }) => /* @__PURE__ */ E(o, {
141
+ render: ({ field: e, fieldState: { error: t } }) => /* @__PURE__ */ D(o, {
142
142
  value: e.value ?? null,
143
143
  onValueChange: (t) => e.onChange(t ?? void 0),
144
144
  items: V,
145
145
  itemToStringLabel: U,
146
146
  disabled: j,
147
- children: [/* @__PURE__ */ T(u, {
147
+ children: [/* @__PURE__ */ E(u, {
148
148
  showClear: !!e.value,
149
149
  placeholder: "-",
150
150
  disabled: j,
151
151
  "aria-invalid": !!t || void 0,
152
152
  className: "ttw:w-28 ttw:border-0 ttw:shadow-none ttw:rounded-none ttw:has-[[data-slot=input-group-control]:focus-visible]:border-transparent ttw:has-[[data-slot=input-group-control]:focus-visible]:ring-0"
153
- }), /* @__PURE__ */ T(c, {
153
+ }), /* @__PURE__ */ E(c, {
154
154
  container: I.current,
155
- children: /* @__PURE__ */ E(f, { children: [/* @__PURE__ */ T(l, { children: P._("No units found") }), /* @__PURE__ */ T(s, { children: (e) => /* @__PURE__ */ T(d, {
155
+ children: /* @__PURE__ */ D(f, { children: [/* @__PURE__ */ E(l, { children: P._("No units found") }), /* @__PURE__ */ E(s, { children: (e) => /* @__PURE__ */ E(d, {
156
156
  value: e,
157
157
  children: U(e)
158
158
  }, e) })] })
@@ -161,28 +161,28 @@ var j = ({ isLoading: j, isEditMode: M, isProduct: N }) => {
161
161
  })
162
162
  ]
163
163
  }),
164
- /* @__PURE__ */ T(_, { errors: [B.pricePerUnit, B.measureUnitId] })
164
+ /* @__PURE__ */ E(_, { errors: [B.pricePerUnit, B.measureUnitId] })
165
165
  ]
166
166
  }),
167
- /* @__PURE__ */ T(k, {
167
+ /* @__PURE__ */ E(k, {
168
168
  name: "description",
169
169
  control: z,
170
- render: ({ field: e, fieldState: { error: t } }) => /* @__PURE__ */ T(h, {
170
+ render: ({ field: e, fieldState: { error: t } }) => /* @__PURE__ */ E(h, {
171
171
  className: "ttw:block",
172
- children: /* @__PURE__ */ E(g, { children: [
173
- /* @__PURE__ */ E(v, {
172
+ children: /* @__PURE__ */ D(g, { children: [
173
+ /* @__PURE__ */ D(v, {
174
174
  htmlFor: e.name,
175
175
  className: "ttw:gap-1",
176
- children: [P._("Description"), /* @__PURE__ */ T(p, {
176
+ children: [P._("Description"), /* @__PURE__ */ E(p, {
177
177
  variant: "body2",
178
178
  color: "muted",
179
179
  className: "ttw:leading-snug",
180
180
  children: P._("(optional)")
181
181
  })]
182
182
  }),
183
- /* @__PURE__ */ E(n, {
184
- className: O(M && "ttw:bg-white"),
185
- children: [/* @__PURE__ */ T(a, {
183
+ /* @__PURE__ */ D(n, {
184
+ className: T(M && "ttw:bg-white"),
185
+ children: [/* @__PURE__ */ E(a, {
186
186
  ...e,
187
187
  id: e.name,
188
188
  placeholder: P._("e.g. 16oz whole bean, medium-dark roast, ground to order"),
@@ -190,10 +190,10 @@ var j = ({ isLoading: j, isEditMode: M, isProduct: N }) => {
190
190
  maxLength: 255,
191
191
  disabled: j,
192
192
  "aria-invalid": !!t || void 0
193
- }), /* @__PURE__ */ T(r, {
193
+ }), /* @__PURE__ */ E(r, {
194
194
  align: "block-end",
195
195
  className: "ttw:cursor-default",
196
- children: /* @__PURE__ */ T(p, {
196
+ children: /* @__PURE__ */ E(p, {
197
197
  variant: "caption",
198
198
  color: "muted",
199
199
  className: "ttw:leading-none",
@@ -201,7 +201,7 @@ var j = ({ isLoading: j, isEditMode: M, isProduct: N }) => {
201
201
  })
202
202
  })]
203
203
  }),
204
- /* @__PURE__ */ T(_, { errors: [t] })
204
+ /* @__PURE__ */ E(_, { errors: [t] })
205
205
  ] })
206
206
  })
207
207
  })
@@ -1,15 +1,15 @@
1
1
  import { Typography as e } from "./index62.js";
2
- import { jsx as t, jsxs as n } from "@emotion/react/jsx-runtime";
3
- import { twMerge as r } from "tailwind-merge";
2
+ import { twMerge as t } from "tailwind-merge";
3
+ import { jsx as n, jsxs as r } from "@emotion/react/jsx-runtime";
4
4
  //#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js
5
- var i = ({ label: i, value: a, isLast: o }) => /* @__PURE__ */ n("li", {
6
- className: r("ttw:flex ttw:gap-4 ttw:py-2.5", !o && "ttw:border-b ttw:border-border"),
7
- children: [/* @__PURE__ */ t(e, {
5
+ var i = ({ label: i, value: a, isLast: o }) => /* @__PURE__ */ r("li", {
6
+ className: t("ttw:flex ttw:gap-4 ttw:py-2.5", !o && "ttw:border-b ttw:border-border"),
7
+ children: [/* @__PURE__ */ n(e, {
8
8
  variant: "body2",
9
9
  color: "muted",
10
10
  className: "ttw:w-35 ttw:min-w-35 ttw:font-medium",
11
11
  children: i
12
- }), typeof a == "string" ? /* @__PURE__ */ t(e, {
12
+ }), typeof a == "string" ? /* @__PURE__ */ n(e, {
13
13
  variant: "body2",
14
14
  className: "ttw:font-medium",
15
15
  children: a
@@ -1,8 +1,8 @@
1
- import { clsx as e } from "clsx";
2
- import { twMerge as t } from "tailwind-merge";
1
+ import { twMerge as e } from "tailwind-merge";
2
+ import { clsx as t } from "clsx";
3
3
  //#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index49.js
4
4
  function n(...n) {
5
- return t(e(n));
5
+ return e(t(n));
6
6
  }
7
7
  //#endregion
8
8
  export { n as cn };
@@ -1,6 +1,6 @@
1
- import { jsx as e } from "@emotion/react/jsx-runtime";
2
- import { twMerge as t } from "tailwind-merge";
1
+ import { twMerge as e } from "tailwind-merge";
2
+ import { jsx as t } from "@emotion/react/jsx-runtime";
3
3
  //#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index51.js
4
- var n = ({ className: n }) => /* @__PURE__ */ e("div", { className: t("ttw:w-8 ttw:h-8 ttw:rounded-full ttw:border-3 ttw:border-primary ttw:border-t-transparent ttw:animate-spin", n) });
4
+ var n = ({ className: n }) => /* @__PURE__ */ t("div", { className: e("ttw:w-8 ttw:h-8 ttw:rounded-full ttw:border-3 ttw:border-primary ttw:border-t-transparent ttw:animate-spin", n) });
5
5
  //#endregion
6
6
  export { n as LoadingSpinner };
@@ -1,15 +1,15 @@
1
1
  import { Typography as e } from "./index62.js";
2
- import { jsx as t, jsxs as n } from "@emotion/react/jsx-runtime";
3
- import { twMerge as r } from "tailwind-merge";
2
+ import { twMerge as t } from "tailwind-merge";
3
+ import { jsx as n, jsxs as r } from "@emotion/react/jsx-runtime";
4
4
  //#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index65.js
5
- var i = ({ label: i, value: a, isLast: o }) => /* @__PURE__ */ n("li", {
6
- className: r("ttw:flex ttw:gap-4 ttw:py-2.5", !o && "ttw:border-b ttw:border-border"),
7
- children: [/* @__PURE__ */ t(e, {
5
+ var i = ({ label: i, value: a, isLast: o }) => /* @__PURE__ */ r("li", {
6
+ className: t("ttw:flex ttw:gap-4 ttw:py-2.5", !o && "ttw:border-b ttw:border-border"),
7
+ children: [/* @__PURE__ */ n(e, {
8
8
  variant: "body2",
9
9
  color: "muted",
10
10
  className: "ttw:w-35 ttw:min-w-35 ttw:font-medium",
11
11
  children: i
12
- }), typeof a == "string" ? /* @__PURE__ */ t(e, {
12
+ }), typeof a == "string" ? /* @__PURE__ */ n(e, {
13
13
  variant: "body2",
14
14
  className: "ttw:font-medium",
15
15
  children: a
@@ -2,23 +2,23 @@ import { Button as e } from "./index56.js";
2
2
  import { Input as t } from "./index89.js";
3
3
  import { Typography as n } from "./index62.js";
4
4
  import { Field as r, FieldContent as i, FieldError as a, FieldLabel as o } from "./index88.js";
5
- import { jsx as s, jsxs as c } from "@emotion/react/jsx-runtime";
6
- import { useLingui as l } from "@lingui/react";
7
- import { twMerge as u } from "tailwind-merge";
5
+ import { twMerge as s } from "tailwind-merge";
6
+ import { jsx as c, jsxs as l } from "@emotion/react/jsx-runtime";
7
+ import { useLingui as u } from "@lingui/react";
8
8
  import { Controller as d, useFormContext as f } from "react-hook-form";
9
9
  //#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index91.js
10
10
  var p = ({ hasExistingBankAccount: p, isLoading: m, isStandalone: h, handleCancel: g }) => {
11
- let { i18n: _ } = l(), { control: v, resetField: y } = f();
12
- return /* @__PURE__ */ c("div", {
13
- className: u("ttw:flex ttw:flex-col ttw:gap-4 ttw:p-4 ttw:bg-zinc-100", !h && "ttw:border ttw:border-primary ttw:rounded-[10px]"),
11
+ let { i18n: _ } = u(), { control: v, resetField: y } = f();
12
+ return /* @__PURE__ */ l("div", {
13
+ className: s("ttw:flex ttw:flex-col ttw:gap-4 ttw:p-4 ttw:bg-zinc-100", !h && "ttw:border ttw:border-primary ttw:rounded-[10px]"),
14
14
  children: [
15
- /* @__PURE__ */ c("div", {
15
+ /* @__PURE__ */ l("div", {
16
16
  className: "ttw:flex ttw:items-center ttw:justify-between ttw:gap-3 ttw:pt-6 ttw:pb-7 ttw:border-b ttw:border-border",
17
- children: [/* @__PURE__ */ s(n, {
17
+ children: [/* @__PURE__ */ c(n, {
18
18
  variant: "body1",
19
19
  className: "ttw:font-medium",
20
20
  children: p ? _._("Editing ACH bank transfer") : _._("Adding ACH bank transfer")
21
- }), !p && !h && /* @__PURE__ */ s(e, {
21
+ }), !p && !h && /* @__PURE__ */ c(e, {
22
22
  type: "button",
23
23
  variant: "ghost",
24
24
  className: "ttw:text-primary ttw:hover:text-primary",
@@ -28,40 +28,40 @@ var p = ({ hasExistingBankAccount: p, isLoading: m, isStandalone: h, handleCance
28
28
  children: _._("Cancel")
29
29
  })]
30
30
  }),
31
- /* @__PURE__ */ s(d, {
31
+ /* @__PURE__ */ c(d, {
32
32
  name: "accountHolderName",
33
33
  control: v,
34
- render: ({ field: e, fieldState: { error: n } }) => /* @__PURE__ */ s(r, {
34
+ render: ({ field: e, fieldState: { error: n } }) => /* @__PURE__ */ c(r, {
35
35
  "data-invalid": !(e.value || !p),
36
- children: /* @__PURE__ */ c(i, { children: [
37
- /* @__PURE__ */ s(o, {
36
+ children: /* @__PURE__ */ l(i, { children: [
37
+ /* @__PURE__ */ c(o, {
38
38
  htmlFor: e.name,
39
39
  children: _._("Account holder name")
40
40
  }),
41
- /* @__PURE__ */ s(t, {
41
+ /* @__PURE__ */ c(t, {
42
42
  id: e.name,
43
43
  ...e,
44
44
  className: "ttw:bg-white",
45
45
  disabled: m,
46
46
  "aria-invalid": !(e.value || !p) || !!n || void 0
47
47
  }),
48
- /* @__PURE__ */ s(a, { errors: [n] })
48
+ /* @__PURE__ */ c(a, { errors: [n] })
49
49
  ] })
50
50
  })
51
51
  }),
52
- /* @__PURE__ */ c("div", {
52
+ /* @__PURE__ */ l("div", {
53
53
  className: "ttw:flex ttw:gap-4",
54
- children: [/* @__PURE__ */ s(d, {
54
+ children: [/* @__PURE__ */ c(d, {
55
55
  name: "routingNumber",
56
56
  control: v,
57
- render: ({ field: e, fieldState: { error: n } }) => /* @__PURE__ */ s(r, {
57
+ render: ({ field: e, fieldState: { error: n } }) => /* @__PURE__ */ c(r, {
58
58
  "data-invalid": !(e.value || !p),
59
- children: /* @__PURE__ */ c(i, { children: [
60
- /* @__PURE__ */ s(o, {
59
+ children: /* @__PURE__ */ l(i, { children: [
60
+ /* @__PURE__ */ c(o, {
61
61
  htmlFor: e.name,
62
62
  children: _._("Routing number")
63
63
  }),
64
- /* @__PURE__ */ s(t, {
64
+ /* @__PURE__ */ c(t, {
65
65
  id: e.name,
66
66
  ...e,
67
67
  placeholder: _._("e.g., 123456789"),
@@ -69,20 +69,20 @@ var p = ({ hasExistingBankAccount: p, isLoading: m, isStandalone: h, handleCance
69
69
  disabled: m,
70
70
  "aria-invalid": !(e.value || !p) || !!n || void 0
71
71
  }),
72
- /* @__PURE__ */ s(a, { errors: [n] })
72
+ /* @__PURE__ */ c(a, { errors: [n] })
73
73
  ] })
74
74
  })
75
- }), /* @__PURE__ */ s(d, {
75
+ }), /* @__PURE__ */ c(d, {
76
76
  name: "accountNumber",
77
77
  control: v,
78
- render: ({ field: e, fieldState: { error: n } }) => /* @__PURE__ */ s(r, {
78
+ render: ({ field: e, fieldState: { error: n } }) => /* @__PURE__ */ c(r, {
79
79
  "data-invalid": !(e.value || !p),
80
- children: /* @__PURE__ */ c(i, { children: [
81
- /* @__PURE__ */ s(o, {
80
+ children: /* @__PURE__ */ l(i, { children: [
81
+ /* @__PURE__ */ c(o, {
82
82
  htmlFor: e.name,
83
83
  children: _._("Account number")
84
84
  }),
85
- /* @__PURE__ */ s(t, {
85
+ /* @__PURE__ */ c(t, {
86
86
  id: e.name,
87
87
  ...e,
88
88
  placeholder: _._("e.g., 12345678"),
@@ -90,12 +90,12 @@ var p = ({ hasExistingBankAccount: p, isLoading: m, isStandalone: h, handleCance
90
90
  disabled: m,
91
91
  "aria-invalid": !(e.value || !p) || !!n || void 0
92
92
  }),
93
- /* @__PURE__ */ s(a, { errors: [n] })
93
+ /* @__PURE__ */ c(a, { errors: [n] })
94
94
  ] })
95
95
  })
96
96
  })]
97
97
  }),
98
- /* @__PURE__ */ s(n, {
98
+ /* @__PURE__ */ c(n, {
99
99
  color: "muted",
100
100
  variant: "body2",
101
101
  children: _._("Ask your vendor for this — it's usually on their invoice, W-9, or a payment instructions email they send you.")