@tesouro/embedded-components-react 0.5.18 → 0.5.20

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 (146) hide show
  1. package/README.md +22 -21
  2. package/dist/index.css +18 -0
  3. package/dist/index.d.ts +29 -6
  4. package/dist/index.js +1 -1
  5. package/dist/lib/BillPayWidget.js +1 -1
  6. package/dist/lib/CardDetailsWidget.d.ts +20 -2
  7. package/dist/lib/CreditCardsWidget.d.ts +29 -6
  8. package/dist/lib/DebitCardsWidget.d.ts +29 -6
  9. package/dist/lib/WidgetSuite.d.ts +29 -6
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index6.js +2 -1
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +9 -9
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index41.js +4 -91
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js +78 -83
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +98 -3
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js +3 -49
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index45.js +47 -136
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +136 -33
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +33 -187
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +188 -75
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +75 -21
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index50.js +22 -232
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +223 -210
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +202 -108
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +126 -13
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +12 -47
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +47 -53
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +49 -202
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +202 -31
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +32 -234
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +240 -19
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +19 -434
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +436 -4
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js +4 -38
  34. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js +35 -231
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +235 -3
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index65.js +3 -4
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js +2 -44
  38. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index67.js +46 -1
  39. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index68.js +1 -8
  40. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index69.js +6 -10
  41. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js +10 -110
  42. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index71.js +112 -3
  43. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index72.js +3 -127
  44. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index73.js +124 -8
  45. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index74.js +8 -7
  46. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index75.js +8 -46
  47. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index76.js +43 -18
  48. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index77.js +20 -28
  49. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index78.js +27 -82
  50. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index79.js +83 -47
  51. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index80.js +47 -250
  52. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index81.js +239 -104
  53. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index82.js +110 -206
  54. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index83.js +213 -3
  55. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index84.js +4 -8
  56. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index85.js +6 -113
  57. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index86.js +115 -1
  58. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index87.js +0 -24
  59. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index88.js +25 -0
  60. package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/index13.js +152 -149
  61. package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/index3.js +8 -11
  62. package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/index4.js +1 -1
  63. package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/index6.js +2 -0
  64. package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/index7.js +4 -4
  65. package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/index9.js +81 -79
  66. package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/ActivateCardPanel/ActivateCardPanel.js +39 -38
  67. package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/CardDetailsPanel/AddressLine.js +23 -0
  68. package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/CardDetailsPanel/CardDetailsPanel.js +142 -118
  69. package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/CardDetailsPanel/CardFace.js +24 -14
  70. package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/CardDetailsPanel/labels.js +4 -1
  71. package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/index9.js +1 -0
  72. package/dist/libs/tesouro-embedded-components-react/create-card-widget/ui/dist/lib/CreateCardWidget/CardControls/PerTransactionMaximumControl.js +17 -16
  73. package/dist/libs/tesouro-embedded-components-react/create-card-widget/ui/dist/lib/CreateCardWidget/CardControls/SpendLimitControl.js +25 -24
  74. package/dist/libs/tesouro-embedded-components-react/create-card-widget/ui/dist/lib/CreateCardWidget/CardControls/limitDecimalPlaces.js +7 -0
  75. package/dist/libs/tesouro-embedded-components-react/create-card-widget/ui/dist/lib/CreateCardWidget/SetupView.js +1 -1
  76. package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index6.js +2 -2
  77. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index.js +1 -1
  78. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index10.js +6 -6
  79. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index11.js +3 -0
  80. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index12.js +7 -7
  81. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index13.js +24 -0
  82. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index14.js +7 -7
  83. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index15.js +7 -7
  84. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index16.js +1 -1
  85. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index17.js +7 -7
  86. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index18.js +6 -6
  87. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index19.js +7 -7
  88. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index2.js +10 -0
  89. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index20.js +1 -1
  90. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index21.js +7 -7
  91. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index22.js +6 -6
  92. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index23.js +7 -7
  93. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index3.js +4 -4
  94. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index4.js +29 -0
  95. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index5.js +10 -0
  96. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index6.js +10 -0
  97. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index7.js +7 -7
  98. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index8.js +6 -6
  99. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index9.js +6 -6
  100. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/feature/dist/index10.js +1 -1
  101. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/feature/dist/index11.js +4 -4
  102. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/feature/dist/index12.js +9 -9
  103. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/feature/dist/index13.js +1 -1
  104. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/feature/dist/index14.js +6 -6
  105. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/feature/dist/index15.js +8 -8
  106. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/feature/dist/index16.js +5 -5
  107. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/feature/dist/index17.js +11 -11
  108. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index2.js +10 -0
  109. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/feature/dist/index3.js +1 -1
  110. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/feature/dist/index4.js +2 -2
  111. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/feature/dist/index5.js +1 -1
  112. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/feature/dist/index6.js +1 -1
  113. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/feature/dist/index7.js +3 -3
  114. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/feature/dist/index8.js +1 -1
  115. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/feature/dist/index9.js +1 -1
  116. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index10.js +5 -5
  117. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index11.js +1 -1
  118. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index12.js +4 -4
  119. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index13.js +1 -1
  120. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index14.js +2 -2
  121. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index15.js +4 -4
  122. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index16.js +5 -5
  123. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index17.js +4 -4
  124. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index18.js +2 -2
  125. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index2.js +1 -1
  126. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index3.js +2 -2
  127. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index4.js +2 -2
  128. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index5.js +3 -3
  129. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index6.js +1 -1
  130. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index7.js +2 -2
  131. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index8.js +4 -4
  132. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index9.js +1 -1
  133. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/zod.gen.js +12 -1
  134. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  135. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/card/cardPresentation.js +1 -1
  136. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index8.js +1 -1
  137. package/package.json +1 -1
  138. package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index11.js +0 -3
  139. package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index13.js +0 -24
  140. package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index2.js +0 -10
  141. package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index4.js +0 -29
  142. package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index5.js +0 -10
  143. package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index6.js +0 -10
  144. package/dist/libs/tesouro-embedded-components-react/team-widget/feature/dist/index2.js +0 -9
  145. /package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/feature/dist/index.js +0 -0
  146. /package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index.js +0 -0
@@ -3,197 +3,221 @@
3
3
  "use client";
4
4
  "use client";
5
5
  import { Button as e, Skeleton as t, cn as n } from "../../../../../../../packages/shared-ui-shadcn/dist/index.js";
6
- import { EmptyState as r } from "../../../../../shared/ui/dist/lib/EmptyState/EmptyState.js";
7
- import { ErrorState as ee } from "../../../../../shared/ui/dist/lib/ErrorState/ErrorState.js";
6
+ import { EmptyState as ee } from "../../../../../shared/ui/dist/lib/EmptyState/EmptyState.js";
7
+ import { ErrorState as r } from "../../../../../shared/ui/dist/lib/ErrorState/ErrorState.js";
8
8
  import { InlineErrorAlert as i } from "../../../../../shared/ui/dist/lib/InlineErrorAlert/InlineErrorAlert.js";
9
9
  import "../../../../../shared/ui/dist/index.js";
10
- import { CardDetailsHeader as a } from "./CardDetailsHeader.js";
11
- import { CARD_FACE_WIDTH_CLASS_NAME as te } from "./cardFaceSurface.js";
12
- import { CardFace as ne } from "./CardFace.js";
10
+ import { CardDetailsHeader as te } from "./CardDetailsHeader.js";
11
+ import { CARD_FACE_WIDTH_CLASS_NAME as ne } from "./cardFaceSurface.js";
12
+ import { CardFace as a } from "./CardFace.js";
13
13
  import { DetailCopyRow as o } from "./DetailCopyRow.js";
14
14
  import { resolveCardDetailsPanelLabels as s } from "./labels.js";
15
- import { CardCredentialsFace as c } from "./CardCredentialsFace.js";
16
- import { CardFaceFlip as l } from "./CardFaceFlip.js";
17
- import { NicknameRow as u } from "./NicknameRow.js";
18
- import { useMemo as d } from "react";
19
- import { jsx as f, jsxs as p } from "react/jsx-runtime";
20
- import { CheckIcon as re, CreditCardIcon as m, EyeIcon as h, EyeOffIcon as ie, LockIcon as ae, LockOpenIcon as oe, PowerIcon as se } from "lucide-react";
15
+ import { AddressLine as c } from "./AddressLine.js";
16
+ import { CardCredentialsFace as re } from "./CardCredentialsFace.js";
17
+ import { CardFaceFlip as ie } from "./CardFaceFlip.js";
18
+ import { NicknameRow as ae } from "./NicknameRow.js";
19
+ import { useMemo as oe } from "react";
20
+ import { jsx as l, jsxs as u } from "react/jsx-runtime";
21
+ import { CheckIcon as d, CreditCardIcon as f, EyeIcon as p, EyeOffIcon as m, LockIcon as h, LockOpenIcon as se, PowerIcon as ce } from "lucide-react";
21
22
  //#region ../../libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/CardDetailsPanel/CardDetailsPanel.js
22
- function g({ labels: g, state: _, nickname: v, statusLabel: ce, statusTone: le, formFactorLabel: ue, cardMenu: de, onClose: fe, bankLogoSrc: pe, bankLogoAlt: me, cardholderName: y, maskedCardNumber: b, programLabel: x, cardFaceStatusLabel: S, billingAddress: C, allowedCategories: w, spendLimitLabels: T, perTransactionMaxLabel: E, onCopy: D, onEditNickname: O, nicknameEditState: k = "closed", nicknameDraft: A, onNicknameDraftChange: j, onSaveNickname: M, onCancelNicknameEdit: N, isNicknameSaveDisabled: P, onActivate: F, onViewCard: I, onHideCard: L, revealState: R = "hidden", revealedCardNumber: z, revealedExpirationDate: he, revealedSecurityCode: ge, isLocked: B, lockState: V = "idle", onLockCard: H, onUnlockCard: U, onRetry: _e, testIds: W, className: ve }) {
23
- let G = d(() => s(g), [g]), K = !!w?.length, q = !!T?.length, J = !!E, Y = R === "revealed", X = Y ? L : I, Z = !!(H || U), Q = B ? U : H, $ = /* @__PURE__ */ f(ne, {
24
- bankLogoSrc: pe,
25
- bankLogoAlt: me ?? G.cardFace.bankLogoAlt,
23
+ function g({ labels: g, state: _, nickname: v, statusLabel: le, statusTone: ue, formFactorLabel: de, cardMenu: fe, onClose: pe, cardArtSrc: me, bankLogoSrc: he, bankLogoAlt: ge, cardholderName: y, maskedCardNumber: _e, programLabel: ve, cardFaceStatusLabel: ye, billingAddress: b, allowedCategories: x, spendLimitLabels: S, perTransactionMaxLabel: C, onCopy: w, onEditNickname: T, nicknameEditState: E = "closed", nicknameDraft: D, onNicknameDraftChange: O, onSaveNickname: k, onCancelNicknameEdit: A, isNicknameSaveDisabled: j, onActivate: M, onViewCard: N, onHideCard: P, revealState: F = "hidden", revealedCardNumber: be, revealedExpirationDate: xe, revealedSecurityCode: Se, isLocked: I, lockState: L = "idle", onLockCard: R, onUnlockCard: z, onRetry: Ce, testIds: B, className: we }) {
24
+ let V = oe(() => s(g), [g]), H = b?.addressLine1, U = b?.addressLine2, W = b?.cityState, G = b?.postalCode, Te = !!(H || U || W || G), K = !!x?.length, q = !!S?.length, J = !!C, Y = F === "revealed", X = Y ? P : N, Z = !!(R || z), Q = I ? z : R, $ = /* @__PURE__ */ l(a, {
25
+ cardArtSrc: me,
26
+ bankLogoSrc: he,
27
+ bankLogoAlt: ge ?? V.cardFace.bankLogoAlt,
26
28
  cardholderName: y ?? "",
27
- maskedCardNumber: b ?? "",
28
- programLabel: x ?? "",
29
- statusLabel: S,
30
- isLocked: B,
31
- lockedLabel: G.lock.cardFaceLabel,
32
- testIds: W?.cardFace
29
+ maskedCardNumber: _e ?? "",
30
+ programLabel: ve ?? "",
31
+ statusLabel: ye,
32
+ isLocked: I,
33
+ lockedLabel: V.lock.cardFaceLabel,
34
+ testIds: B?.cardFace
33
35
  });
34
- return /* @__PURE__ */ p("div", {
35
- "data-testid": W?.root,
36
- className: n("ttw:flex ttw:w-full ttw:flex-col", ve),
37
- children: [/* @__PURE__ */ f(a, {
38
- testIds: W?.header,
39
- labels: G.header,
40
- title: _ === "loaded" ? v ?? G.header.untitledCard : void 0,
36
+ return /* @__PURE__ */ u("div", {
37
+ "data-testid": B?.root,
38
+ className: n("ttw:flex ttw:w-full ttw:flex-col", we),
39
+ children: [/* @__PURE__ */ l(te, {
40
+ testIds: B?.header,
41
+ labels: V.header,
42
+ title: _ === "loaded" ? v ?? V.header.untitledCard : void 0,
41
43
  isTitlePending: _ === "loading",
42
- statusLabel: _ === "loaded" ? ce : void 0,
43
- statusTone: le,
44
- formFactorLabel: _ === "loaded" ? ue : void 0,
45
- cardMenu: _ === "loaded" ? de : void 0,
46
- onClose: fe
47
- }), /* @__PURE__ */ f("div", {
44
+ statusLabel: _ === "loaded" ? le : void 0,
45
+ statusTone: ue,
46
+ formFactorLabel: _ === "loaded" ? de : void 0,
47
+ cardMenu: _ === "loaded" ? fe : void 0,
48
+ onClose: pe
49
+ }), /* @__PURE__ */ l("div", {
48
50
  className: "ttw:px-4 ttw:pb-4",
49
- children: _ === "loading" ? /* @__PURE__ */ p("div", {
50
- "data-testid": W?.loading,
51
+ children: _ === "loading" ? /* @__PURE__ */ u("div", {
52
+ "data-testid": B?.loading,
51
53
  role: "status",
52
- "aria-label": G.status.loadingAriaLabel,
54
+ "aria-label": V.status.loadingAriaLabel,
53
55
  className: "ttw:space-y-4",
54
- children: [/* @__PURE__ */ f(t, { className: "ttw:h-8 ttw:w-56" }), /* @__PURE__ */ f(t, { className: "ttw:h-64 ttw:w-full ttw:rounded-xl" })]
55
- }) : _ === "error" ? /* @__PURE__ */ f(ee, {
56
- title: G.status.errorTitle,
57
- description: G.status.errorDescription,
58
- retryLabel: G.status.errorRetry,
59
- onRetry: _e
60
- }) : _ === "notFound" ? /* @__PURE__ */ f(r, {
61
- icon: /* @__PURE__ */ f(m, { className: "ttw:size-6 ttw:text-muted-foreground" }),
62
- title: G.status.notFoundTitle,
63
- description: G.status.notFoundDescription
64
- }) : /* @__PURE__ */ p("div", {
56
+ children: [/* @__PURE__ */ l(t, { className: "ttw:h-8 ttw:w-56" }), /* @__PURE__ */ l(t, { className: "ttw:h-64 ttw:w-full ttw:rounded-xl" })]
57
+ }) : _ === "error" ? /* @__PURE__ */ l(r, {
58
+ title: V.status.errorTitle,
59
+ description: V.status.errorDescription,
60
+ retryLabel: V.status.errorRetry,
61
+ onRetry: Ce
62
+ }) : _ === "notFound" ? /* @__PURE__ */ l(ee, {
63
+ icon: /* @__PURE__ */ l(f, { className: "ttw:size-6 ttw:text-muted-foreground" }),
64
+ title: V.status.notFoundTitle,
65
+ description: V.status.notFoundDescription
66
+ }) : /* @__PURE__ */ u("div", {
65
67
  className: "ttw:flex ttw:flex-col ttw:gap-4",
66
- children: [/* @__PURE__ */ p("div", {
68
+ children: [/* @__PURE__ */ u("div", {
67
69
  className: "ttw:flex ttw:flex-col ttw:overflow-hidden ttw:rounded-xl ttw:border ttw:border-border ttw:sm:flex-row",
68
- children: [/* @__PURE__ */ f("div", {
70
+ children: [/* @__PURE__ */ l("div", {
69
71
  className: "ttw:flex ttw:items-center ttw:justify-center ttw:bg-muted ttw:px-4 ttw:py-5",
70
- children: /* @__PURE__ */ p("div", {
71
- className: n("ttw:flex ttw:flex-col ttw:gap-4", te),
72
- children: [I ? /* @__PURE__ */ f(l, {
73
- testIds: W?.cardFaceFlip,
72
+ children: /* @__PURE__ */ u("div", {
73
+ className: n("ttw:flex ttw:flex-col ttw:gap-4", ne),
74
+ children: [N ? /* @__PURE__ */ l(ie, {
75
+ testIds: B?.cardFaceFlip,
74
76
  isFlipped: Y,
75
77
  front: $,
76
- back: /* @__PURE__ */ f(c, {
77
- labels: G.credentials,
78
- cardNumber: z,
79
- expirationDate: he,
80
- securityCode: ge,
81
- isLocked: B,
82
- onCopy: D,
83
- testIds: W?.credentialsFace
78
+ back: /* @__PURE__ */ l(re, {
79
+ labels: V.credentials,
80
+ cardNumber: be,
81
+ expirationDate: xe,
82
+ securityCode: Se,
83
+ isLocked: I,
84
+ onCopy: w,
85
+ testIds: B?.credentialsFace
84
86
  })
85
- }) : $, F || I || Z ? /* @__PURE__ */ p("div", {
87
+ }) : $, M || N || Z ? /* @__PURE__ */ u("div", {
86
88
  className: "ttw:flex ttw:flex-col ttw:gap-2",
87
89
  children: [
88
- F ? /* @__PURE__ */ p(e, {
90
+ M ? /* @__PURE__ */ u(e, {
89
91
  type: "button",
90
92
  className: "ttw:self-center",
91
- onClick: F,
92
- children: [/* @__PURE__ */ f(se, {
93
+ onClick: M,
94
+ children: [/* @__PURE__ */ l(ce, {
93
95
  className: "ttw:size-4",
94
96
  "aria-hidden": "true"
95
- }), G.actions.activateCard]
97
+ }), V.actions.activateCard]
96
98
  }) : null,
97
- I || Z ? /* @__PURE__ */ p("div", {
99
+ N || Z ? /* @__PURE__ */ u("div", {
98
100
  className: "ttw:flex ttw:gap-2",
99
- children: [I ? /* @__PURE__ */ p(e, {
101
+ children: [N ? /* @__PURE__ */ u(e, {
100
102
  type: "button",
101
103
  variant: "outline",
102
104
  className: "ttw:flex-1",
103
105
  disabled: !X,
104
- loading: R === "revealing",
106
+ loading: F === "revealing",
105
107
  onClick: X,
106
- children: [f(Y ? ie : h, {
108
+ children: [l(Y ? m : p, {
107
109
  className: "ttw:size-4",
108
110
  "aria-hidden": "true"
109
- }), Y ? G.actions.hideCard : G.actions.viewCard]
110
- }) : null, Z ? /* @__PURE__ */ p(e, {
111
+ }), Y ? V.actions.hideCard : V.actions.viewCard]
112
+ }) : null, Z ? /* @__PURE__ */ u(e, {
111
113
  type: "button",
112
114
  variant: "outline",
113
115
  className: "ttw:flex-1",
114
116
  disabled: !Q,
115
- loading: V === "pending",
117
+ loading: L === "pending",
116
118
  onClick: Q,
117
- children: [f(B ? oe : ae, {
119
+ children: [l(I ? se : h, {
118
120
  className: "ttw:size-4",
119
121
  "aria-hidden": "true"
120
- }), B ? G.lock.unlockCard : G.lock.lockCard]
122
+ }), I ? V.lock.unlockCard : V.lock.lockCard]
121
123
  }) : null]
122
124
  }) : null,
123
- B ? /* @__PURE__ */ f("p", {
125
+ I ? /* @__PURE__ */ l("p", {
124
126
  className: "ttw:text-sm ttw:text-destructive",
125
- children: Z ? G.lock.lockedDescription : G.lock.lockedDescriptionWithoutUnlock
127
+ children: Z ? V.lock.lockedDescription : V.lock.lockedDescriptionWithoutUnlock
126
128
  }) : null,
127
- V === "errored" ? /* @__PURE__ */ f(i, { children: G.lock.errorDescription }) : null,
128
- R === "errored" ? /* @__PURE__ */ f(i, { children: G.credentials.errorDescription }) : null
129
+ L === "errored" ? /* @__PURE__ */ l(i, { children: V.lock.errorDescription }) : null,
130
+ F === "errored" ? /* @__PURE__ */ l(i, { children: V.credentials.errorDescription }) : null
129
131
  ]
130
132
  }) : null]
131
133
  })
132
- }), /* @__PURE__ */ p("div", {
134
+ }), /* @__PURE__ */ u("div", {
133
135
  className: "ttw:flex ttw:min-w-0 ttw:flex-1 ttw:flex-col ttw:border-t ttw:border-border ttw:sm:border-t-0 ttw:sm:border-l",
134
136
  children: [
135
- /* @__PURE__ */ f(o, {
136
- label: G.fields.cardholder,
137
- copyAriaLabel: y && D ? G.fields.copyCardholderAriaLabel : void 0,
138
- onCopy: y && D ? () => D(y) : void 0,
139
- children: y ?? G.fields.emptyValue
137
+ /* @__PURE__ */ l(o, {
138
+ label: V.fields.cardholder,
139
+ copyAriaLabel: y && w ? V.fields.copyCardholderAriaLabel : void 0,
140
+ onCopy: y && w ? () => w(y) : void 0,
141
+ children: y ?? V.fields.emptyValue
140
142
  }),
141
- C ? /* @__PURE__ */ f(o, {
142
- label: G.fields.billingAddress,
143
- copyAriaLabel: D ? G.fields.copyBillingAddressAriaLabel : void 0,
144
- onCopy: D ? () => D(C) : void 0,
145
- children: C
143
+ Te ? /* @__PURE__ */ l(o, {
144
+ label: V.fields.billingAddress,
145
+ children: /* @__PURE__ */ u("div", {
146
+ className: "ttw:flex ttw:flex-col",
147
+ children: [
148
+ H ? /* @__PURE__ */ l(c, {
149
+ value: H,
150
+ copyAriaLabel: w ? V.fields.copyBillingAddressLine1AriaLabel : void 0,
151
+ onCopy: w ? () => w(H) : void 0
152
+ }) : null,
153
+ U ? /* @__PURE__ */ l(c, {
154
+ value: U,
155
+ copyAriaLabel: w ? V.fields.copyBillingAddressLine2AriaLabel : void 0,
156
+ onCopy: w ? () => w(U) : void 0
157
+ }) : null,
158
+ W ? /* @__PURE__ */ l(c, {
159
+ value: W,
160
+ copyAriaLabel: w ? V.fields.copyBillingAddressCityStateAriaLabel : void 0,
161
+ onCopy: w ? () => w(W) : void 0
162
+ }) : null,
163
+ G ? /* @__PURE__ */ l(c, {
164
+ value: G,
165
+ copyAriaLabel: w ? V.fields.copyBillingAddressPostalCodeAriaLabel : void 0,
166
+ onCopy: w ? () => w(G) : void 0
167
+ }) : null
168
+ ]
169
+ })
146
170
  }) : null,
147
- /* @__PURE__ */ f(u, {
148
- fieldLabels: G.fields,
149
- labels: G.nickname,
171
+ /* @__PURE__ */ l(ae, {
172
+ fieldLabels: V.fields,
173
+ labels: V.nickname,
150
174
  nickname: v,
151
- editState: k,
152
- onEdit: O,
153
- draft: A,
154
- onDraftChange: j,
155
- onSave: M,
156
- onCancel: N,
157
- isSaveDisabled: P,
158
- copyAriaLabel: v && D ? G.fields.copyNicknameAriaLabel : void 0,
159
- onCopy: v && D ? () => D(v) : void 0,
175
+ editState: E,
176
+ onEdit: T,
177
+ draft: D,
178
+ onDraftChange: O,
179
+ onSave: k,
180
+ onCancel: A,
181
+ isSaveDisabled: j,
182
+ copyAriaLabel: v && w ? V.fields.copyNicknameAriaLabel : void 0,
183
+ onCopy: v && w ? () => w(v) : void 0,
160
184
  isLast: !0
161
185
  })
162
186
  ]
163
187
  })]
164
- }), K || q || J ? /* @__PURE__ */ p("div", {
188
+ }), K || q || J ? /* @__PURE__ */ u("div", {
165
189
  className: "ttw:flex ttw:flex-col ttw:overflow-hidden ttw:rounded-xl ttw:border ttw:border-border",
166
190
  children: [
167
- /* @__PURE__ */ f("h3", {
191
+ /* @__PURE__ */ l("h3", {
168
192
  className: "ttw:border-b ttw:border-border ttw:px-4 ttw:pt-4 ttw:pb-3 ttw:text-base ttw:font-semibold ttw:text-foreground",
169
- children: G.fields.cardControlsHeading
193
+ children: V.fields.cardControlsHeading
170
194
  }),
171
- K ? /* @__PURE__ */ f(o, {
172
- label: G.fields.allowedCategories,
195
+ K ? /* @__PURE__ */ l(o, {
196
+ label: V.fields.allowedCategories,
173
197
  isLast: !q && !J,
174
- children: /* @__PURE__ */ f("div", {
198
+ children: /* @__PURE__ */ l("div", {
175
199
  className: "ttw:mt-2 ttw:flex ttw:flex-wrap ttw:gap-2",
176
- children: w?.map((e) => /* @__PURE__ */ p("span", {
200
+ children: x?.map((e) => /* @__PURE__ */ u("span", {
177
201
  className: "ttw:inline-flex ttw:items-center ttw:gap-1.5 ttw:rounded-full ttw:border ttw:border-primary ttw:bg-primary/5 ttw:px-4 ttw:py-2 ttw:text-sm ttw:font-semibold ttw:text-primary",
178
- children: [/* @__PURE__ */ f(re, {
202
+ children: [/* @__PURE__ */ l(d, {
179
203
  "aria-hidden": "true",
180
204
  className: "ttw:size-3.5"
181
205
  }), e]
182
206
  }, e))
183
207
  })
184
208
  }) : null,
185
- q ? /* @__PURE__ */ f(o, {
186
- label: G.fields.spendLimit,
209
+ q ? /* @__PURE__ */ l(o, {
210
+ label: V.fields.spendLimit,
187
211
  isLast: !J,
188
- children: /* @__PURE__ */ f("div", {
212
+ children: /* @__PURE__ */ l("div", {
189
213
  className: "ttw:flex ttw:flex-col ttw:gap-1",
190
- children: T?.map((e, t) => /* @__PURE__ */ f("div", { children: e }, `${e}-${t}`))
214
+ children: S?.map((e, t) => /* @__PURE__ */ l("div", { children: e }, `${e}-${t}`))
191
215
  })
192
216
  }) : null,
193
- J ? /* @__PURE__ */ f(o, {
194
- label: G.fields.perTransactionMax,
217
+ J ? /* @__PURE__ */ l(o, {
218
+ label: V.fields.perTransactionMax,
195
219
  isLast: !0,
196
- children: E
220
+ children: C
197
221
  }) : null
198
222
  ]
199
223
  }) : null]
@@ -4,32 +4,42 @@ import { CardFaceGlow as r } from "./CardFaceGlow.js";
4
4
  import { jsx as i, jsxs as a } from "react/jsx-runtime";
5
5
  import { LockIcon as o } from "lucide-react";
6
6
  //#region ../../libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/CardDetailsPanel/CardFace.js
7
- function s({ bankLogoSrc: s, bankLogoAlt: c, cardholderName: l, maskedCardNumber: u, programLabel: d, statusLabel: f, isLocked: p, lockedLabel: m, testIds: h, className: g }) {
7
+ function s({ cardArtSrc: s, bankLogoSrc: c, bankLogoAlt: l, cardholderName: u, maskedCardNumber: d, programLabel: f, statusLabel: p, isLocked: m, lockedLabel: h, testIds: g, className: _ }) {
8
8
  return /* @__PURE__ */ a("div", {
9
- "data-testid": h?.root,
10
- className: e(n, "ttw:justify-between", g),
9
+ "data-testid": g?.root,
10
+ className: e(n, "ttw:justify-between", _),
11
11
  children: [
12
- /* @__PURE__ */ i(r, {}),
13
12
  s ? /* @__PURE__ */ i("img", {
13
+ "data-testid": g?.cardArt,
14
14
  src: s,
15
- alt: c,
15
+ alt: "",
16
+ "aria-hidden": "true",
17
+ className: "ttw:absolute ttw:inset-0 ttw:h-full ttw:w-full ttw:object-cover"
18
+ }) : /* @__PURE__ */ i(r, {}),
19
+ s ? /* @__PURE__ */ i("div", {
20
+ "aria-hidden": "true",
21
+ className: "ttw:pointer-events-none ttw:absolute ttw:inset-x-0 ttw:bottom-0 ttw:h-20 ttw:bg-gradient-to-t ttw:from-black/70 ttw:to-transparent"
22
+ }) : null,
23
+ s ? /* @__PURE__ */ i("span", { className: "ttw:relative ttw:h-8" }) : c ? /* @__PURE__ */ i("img", {
24
+ src: c,
25
+ alt: l,
16
26
  className: "ttw:relative ttw:h-8 ttw:w-auto ttw:max-w-[60%] ttw:object-contain ttw:object-left"
17
27
  }) : /* @__PURE__ */ i("span", { className: "ttw:relative ttw:h-8" }),
18
- p ? /* @__PURE__ */ i("div", {
19
- "data-testid": h?.lockedOverlay,
28
+ m ? /* @__PURE__ */ i("div", {
29
+ "data-testid": g?.lockedOverlay,
20
30
  className: "ttw:pointer-events-none ttw:absolute ttw:inset-0 ttw:flex ttw:items-center ttw:justify-center ttw:bg-black/55",
21
- children: m ? /* @__PURE__ */ a("span", {
31
+ children: h ? /* @__PURE__ */ a("span", {
22
32
  className: e(t, "ttw:inline-flex ttw:items-center ttw:gap-1.5"),
23
33
  children: [/* @__PURE__ */ i(o, {
24
34
  className: "ttw:size-3.5",
25
35
  "aria-hidden": "true"
26
- }), m]
36
+ }), h]
27
37
  }) : null
28
- }) : f ? /* @__PURE__ */ i("div", {
38
+ }) : p ? /* @__PURE__ */ i("div", {
29
39
  className: "ttw:pointer-events-none ttw:absolute ttw:inset-0 ttw:flex ttw:items-center ttw:justify-center",
30
40
  children: /* @__PURE__ */ i("span", {
31
41
  className: t,
32
- children: f
42
+ children: p
33
43
  })
34
44
  }) : null,
35
45
  /* @__PURE__ */ a("div", {
@@ -38,14 +48,14 @@ function s({ bankLogoSrc: s, bankLogoAlt: c, cardholderName: l, maskedCardNumber
38
48
  className: "ttw:min-w-0",
39
49
  children: [/* @__PURE__ */ i("p", {
40
50
  className: "ttw:truncate ttw:text-base ttw:font-medium ttw:text-white",
41
- children: l
51
+ children: u
42
52
  }), /* @__PURE__ */ i("p", {
43
53
  className: "ttw:mt-1 ttw:truncate ttw:text-lg ttw:tracking-wide ttw:text-white/90",
44
- children: u
54
+ children: d
45
55
  })]
46
56
  }), /* @__PURE__ */ i("p", {
47
57
  className: "ttw:shrink-0 ttw:text-[10px] ttw:font-medium ttw:text-white/90",
48
- children: d
58
+ children: f
49
59
  })]
50
60
  })
51
61
  ]
@@ -17,7 +17,10 @@ var e = {
17
17
  emptyValue: "—",
18
18
  copyCardholderAriaLabel: "Copy cardholder",
19
19
  copyNicknameAriaLabel: "Copy nickname",
20
- copyBillingAddressAriaLabel: "Copy billing address"
20
+ copyBillingAddressLine1AriaLabel: "Copy street address 1",
21
+ copyBillingAddressLine2AriaLabel: "Copy street address 2",
22
+ copyBillingAddressCityStateAriaLabel: "Copy city and state",
23
+ copyBillingAddressPostalCodeAriaLabel: "Copy ZIP code"
21
24
  },
22
25
  actions: {
23
26
  activateCard: "Activate card",
@@ -66,6 +66,7 @@ function g({ cardProgram: e, pagination: t, defaultPagination: g, onPaginationCh
66
66
  labels: C,
67
67
  activateLabels: T,
68
68
  featureLabels: w,
69
+ cardArtSrc: O,
69
70
  bankLogoSrc: E,
70
71
  bankLogoAlt: D,
71
72
  onClose: Y
@@ -1,31 +1,32 @@
1
1
  import { InputGroup as e, InputGroupAddon as t, InputGroupInput as n } from "../../../../../../../../packages/shared-ui-shadcn/dist/index.js";
2
2
  import { formatAmountAriaLabel as r } from "./labels.js";
3
3
  import { CardControlRow as i } from "./CardControlRow.js";
4
- import { jsx as a, jsxs as o } from "react/jsx-runtime";
4
+ import { limitDecimalPlaces as a } from "./limitDecimalPlaces.js";
5
+ import { jsx as o, jsxs as s } from "react/jsx-runtime";
5
6
  //#region ../../libs/tesouro-embedded-components-react/create-card-widget/ui/dist/lib/CreateCardWidget/CardControls/PerTransactionMaximumControl.js
6
- function s({ labels: s, currencySymbol: c, isEnabled: l, onEnabledChange: u, amount: d, onAmountChange: f }) {
7
- return /* @__PURE__ */ a(i, {
8
- title: s.title,
9
- description: s.description,
10
- checked: l,
11
- onCheckedChange: u,
12
- children: /* @__PURE__ */ o(e, {
7
+ function c({ labels: c, currencySymbol: l, isEnabled: u, onEnabledChange: d, amount: f, onAmountChange: p }) {
8
+ return /* @__PURE__ */ o(i, {
9
+ title: c.title,
10
+ description: c.description,
11
+ checked: u,
12
+ onCheckedChange: d,
13
+ children: /* @__PURE__ */ s(e, {
13
14
  className: "ttw:h-9 ttw:max-w-48 ttw:rounded-md ttw:border ttw:border-input ttw:shadow-xs ttw:has-[:focus-visible]:border-ring ttw:has-[:focus-visible]:ring-[3px] ttw:has-[:focus-visible]:ring-ring/50",
14
- children: [/* @__PURE__ */ a(t, {
15
+ children: [/* @__PURE__ */ o(t, {
15
16
  align: "inline-start",
16
17
  "aria-hidden": !0,
17
- children: c
18
- }), /* @__PURE__ */ a(n, {
18
+ children: l
19
+ }), /* @__PURE__ */ o(n, {
19
20
  "data-has-start-addon": !0,
20
21
  inputMode: "decimal",
21
- value: d,
22
- onChange: (e) => f(e.target.value),
23
- placeholder: s.amountPlaceholder,
24
- "aria-label": r(s.amountAriaLabel, c),
22
+ value: f,
23
+ onChange: (e) => p(a(e.target.value)),
24
+ placeholder: c.amountPlaceholder,
25
+ "aria-label": r(c.amountAriaLabel, l),
25
26
  className: "ttw:rounded-md ttw:border-0 ttw:shadow-none ttw:focus-visible:ring-0"
26
27
  })]
27
28
  })
28
29
  });
29
30
  }
30
31
  //#endregion
31
- export { s as PerTransactionMaximumControl };
32
+ export { c as PerTransactionMaximumControl };
@@ -1,63 +1,64 @@
1
1
  import { Alert as e, AlertDescription as t, InputGroup as n, InputGroupAddon as r, InputGroupInput as i, Tabs as a, TabsContent as o, TabsList as s, TabsTrigger as c } from "../../../../../../../../packages/shared-ui-shadcn/dist/index.js";
2
2
  import { formatAmountAriaLabel as l } from "./labels.js";
3
3
  import { CardControlRow as u } from "./CardControlRow.js";
4
- import { jsx as d, jsxs as f } from "react/jsx-runtime";
5
- import { InfoIcon as p, TriangleAlertIcon as m } from "lucide-react";
4
+ import { limitDecimalPlaces as d } from "./limitDecimalPlaces.js";
5
+ import { jsx as f, jsxs as p } from "react/jsx-runtime";
6
+ import { InfoIcon as m, TriangleAlertIcon as h } from "lucide-react";
6
7
  //#region ../../libs/tesouro-embedded-components-react/create-card-widget/ui/dist/lib/CreateCardWidget/CardControls/SpendLimitControl.js
7
- function h({ notice: n }) {
8
+ function g({ notice: n }) {
8
9
  if (!n) return null;
9
10
  let r = n.variant === "warning";
10
- return /* @__PURE__ */ f(e, {
11
+ return /* @__PURE__ */ p(e, {
11
12
  className: r ? "ttw:border-destructive/30 ttw:bg-destructive/5 ttw:text-destructive" : "ttw:border-border ttw:bg-muted ttw:text-foreground",
12
- children: [/* @__PURE__ */ d(r ? m : p, { "aria-hidden": !0 }), /* @__PURE__ */ d(t, {
13
+ children: [/* @__PURE__ */ f(r ? h : m, { "aria-hidden": !0 }), /* @__PURE__ */ f(t, {
13
14
  className: "ttw:text-current",
14
- children: /* @__PURE__ */ f("p", { children: [n.title ? /* @__PURE__ */ f("span", {
15
+ children: /* @__PURE__ */ p("p", { children: [n.title ? /* @__PURE__ */ p("span", {
15
16
  className: "ttw:font-semibold",
16
17
  children: [n.title, " "]
17
18
  }) : null, n.description] })
18
19
  })]
19
20
  });
20
21
  }
21
- function g({ labels: e, currencySymbol: t, isEnabled: p, onEnabledChange: m, amount: g, onAmountChange: _, periodOptions: v, selectedPeriod: y, onPeriodSelect: b, periodNotices: x }) {
22
- return /* @__PURE__ */ d(u, {
22
+ function _({ labels: e, currencySymbol: t, isEnabled: m, onEnabledChange: h, amount: _, onAmountChange: v, periodOptions: y, selectedPeriod: b, onPeriodSelect: x, periodNotices: S }) {
23
+ return /* @__PURE__ */ f(u, {
23
24
  title: e.title,
24
25
  description: e.description,
25
- checked: p,
26
- onCheckedChange: m,
27
- children: /* @__PURE__ */ f(a, {
28
- value: y ?? "",
29
- onValueChange: b,
30
- children: [/* @__PURE__ */ f("div", {
26
+ checked: m,
27
+ onCheckedChange: h,
28
+ children: /* @__PURE__ */ p(a, {
29
+ value: b ?? "",
30
+ onValueChange: x,
31
+ children: [/* @__PURE__ */ p("div", {
31
32
  className: "ttw:flex ttw:min-w-0 ttw:flex-wrap ttw:items-center ttw:gap-3",
32
- children: [/* @__PURE__ */ f(n, {
33
+ children: [/* @__PURE__ */ p(n, {
33
34
  className: "ttw:h-9 ttw:min-w-0 ttw:flex-1 ttw:basis-36 ttw:rounded-md ttw:border ttw:border-input ttw:shadow-xs ttw:has-[:focus-visible]:border-ring ttw:has-[:focus-visible]:ring-[3px] ttw:has-[:focus-visible]:ring-ring/50",
34
- children: [/* @__PURE__ */ d(r, {
35
+ children: [/* @__PURE__ */ f(r, {
35
36
  align: "inline-start",
36
37
  "aria-hidden": !0,
37
38
  children: t
38
- }), /* @__PURE__ */ d(i, {
39
+ }), /* @__PURE__ */ f(i, {
39
40
  "data-has-start-addon": !0,
40
41
  inputMode: "decimal",
41
- value: g,
42
- onChange: (e) => _(e.target.value),
42
+ value: _,
43
+ onChange: (e) => v(d(e.target.value)),
43
44
  placeholder: e.amountPlaceholder,
44
45
  "aria-label": l(e.amountAriaLabel, t),
45
46
  className: "ttw:rounded-md ttw:border-0 ttw:shadow-none ttw:focus-visible:ring-0"
46
47
  })]
47
- }), v.length > 0 ? /* @__PURE__ */ d(s, {
48
+ }), y.length > 0 ? /* @__PURE__ */ f(s, {
48
49
  className: "ttw:max-w-full",
49
- children: v.map((e) => /* @__PURE__ */ d(c, {
50
+ children: y.map((e) => /* @__PURE__ */ f(c, {
50
51
  value: e.value,
51
52
  children: e.label
52
53
  }, e.value))
53
54
  }) : null]
54
- }), v.map((e) => /* @__PURE__ */ d(o, {
55
+ }), y.map((e) => /* @__PURE__ */ f(o, {
55
56
  value: e.value,
56
57
  className: "ttw:mt-4",
57
- children: /* @__PURE__ */ d(h, { notice: x?.find((t) => t.value === e.value) })
58
+ children: /* @__PURE__ */ f(g, { notice: S?.find((t) => t.value === e.value) })
58
59
  }, e.value))]
59
60
  })
60
61
  });
61
62
  }
62
63
  //#endregion
63
- export { g as SpendLimitControl };
64
+ export { _ as SpendLimitControl };
@@ -0,0 +1,7 @@
1
+ //#region ../../libs/tesouro-embedded-components-react/create-card-widget/ui/dist/lib/CreateCardWidget/CardControls/limitDecimalPlaces.js
2
+ function e(e, t = 2) {
3
+ let n = e.indexOf(".");
4
+ return n === -1 ? e : e.slice(0, n + 1 + t);
5
+ }
6
+ //#endregion
7
+ export { e as limitDecimalPlaces };
@@ -131,7 +131,7 @@ function v({ cardArtSrc: v, labels: y, cardholderOptions: b, selectedCardholder:
131
131
  })]
132
132
  })]
133
133
  }), R ? /* @__PURE__ */ g("div", {
134
- className: "ttw:rounded-md ttw:border ttw:border-border ttw:bg-background ttw:px-3 ttw:py-2 ttw:text-sm ttw:text-foreground",
134
+ className: "ttw:cursor-default ttw:rounded-md ttw:border ttw:border-border ttw:bg-background ttw:px-3 ttw:py-2 ttw:text-sm ttw:text-foreground",
135
135
  children: L
136
136
  }) : null]
137
137
  }), /* @__PURE__ */ _("div", {
@@ -21,8 +21,8 @@ import { TagsWidget as p } from "../../../tags-widget/feature/dist/index11.js";
21
21
  import "../../../tags-widget/feature/dist/index.js";
22
22
  import { BankDisclosuresWidget as m } from "../../../shared/bank-disclosures/feature/dist/lib/BankDisclosuresWidget/BankDisclosuresWidget.js";
23
23
  import "../../../shared/bank-disclosures/feature/dist/index.js";
24
- import { TeamWidget as h } from "../../../team-widget/feature/dist/index17.js";
25
- import "../../../team-widget/feature/dist/index.js";
24
+ import { TeamWidget as h } from "../../team/feature/dist/index17.js";
25
+ import "../../team/feature/dist/index.js";
26
26
  import { SettingsWidgetUi as g } from "../../ui/dist/lib/SettingsWidgetUi/SettingsWidgetUi.js";
27
27
  import "../../ui/dist/index.js";
28
28
  import { ChartOfAccountsWidget as _ } from "../../chart-of-accounts/feature/dist/index8.js";
@@ -1,4 +1,4 @@
1
- import { useAllOrganizationRolesQuery as e } from "../../../shared/data-access/dist/lib/role/useAllOrganizationRolesQuery.js";
1
+ import { useAllOrganizationRolesQuery as e } from "../../../../shared/data-access/dist/lib/role/useAllOrganizationRolesQuery.js";
2
2
  import "./index2.js";
3
3
  import "./index3.js";
4
4
  import { useDeactivateTeamMemberMutation as t } from "./index4.js";