@tesouro/embedded-components-react 0.5.226 → 0.5.228

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 (160) hide show
  1. package/README.md +21 -21
  2. package/dist/index.d.ts +54 -34
  3. package/dist/index.js +1 -1
  4. package/dist/lib/ReceivablesWidget.d.ts +54 -34
  5. package/dist/lib/ReceivablesWidget.js +1 -1
  6. package/dist/libs/tesouro-embedded-components-react/balances-widget/feature/dist/index3.js +41 -39
  7. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index12.js +2 -2
  8. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index2.js +2 -2
  9. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index3.js +2 -2
  10. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index4.js +2 -2
  11. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/feature/dist/index9.js +150 -147
  12. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/data-access/dist/index5.js +46 -51
  13. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/index7.js +130 -128
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index18.js +31 -32
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index19.js +2 -2
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index2.js +2 -2
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index21.js +2 -2
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index22.js +2 -2
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index3.js +2 -2
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index4.js +36 -37
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/data-access/dist/index2.js +2 -2
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/feature/dist/index4.js +2 -2
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index2.js +6 -10
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index3.js +2 -2
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index4.js +2 -2
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index5.js +2 -2
  27. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index6.js +2 -2
  28. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index7.js +2 -2
  29. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index8.js +2 -2
  30. package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/index13.js +154 -150
  31. package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index7.js +2 -2
  32. package/dist/libs/tesouro-embedded-components-react/cards-widget/data-access/dist/index2.js +2 -2
  33. package/dist/libs/tesouro-embedded-components-react/cards-widget/data-access/dist/index3.js +2 -2
  34. package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/index9.js +151 -149
  35. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/data-access/dist/index2.js +4 -4
  36. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/data-access/dist/index3.js +4 -4
  37. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index15.js +2 -2
  38. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index17.js +2 -2
  39. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index18.js +2 -2
  40. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index19.js +2 -2
  41. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index2.js +2 -2
  42. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index3.js +2 -2
  43. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index4.js +2 -2
  44. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index5.js +2 -2
  45. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index6.js +2 -2
  46. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index8.js +2 -2
  47. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index9.js +2 -2
  48. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index24.js +1 -0
  49. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index27.js +89 -87
  50. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index5.js +133 -130
  51. package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index8.js +36 -34
  52. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index.js +4 -4
  53. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index10.js +33 -63
  54. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index11.js +6 -6
  55. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index12.js +2 -2
  56. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index3.js +40 -39
  57. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index.js +1 -1
  58. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index12.js +36 -141
  59. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index13.js +26 -16
  60. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index17.js +58 -37
  61. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index18.js +228 -122
  62. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index19.js +300 -147
  63. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index20.js +34 -37
  64. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index21.js +126 -122
  65. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index22.js +150 -58
  66. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index23.js +38 -91
  67. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index24.js +113 -107
  68. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index25.js +98 -231
  69. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index26.js +111 -27
  70. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index27.js +25 -624
  71. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index28.js +631 -39
  72. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index29.js +41 -40
  73. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index30.js +35 -74
  74. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index31.js +73 -115
  75. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index32.js +115 -313
  76. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index33.js +325 -0
  77. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index7.js +15 -2
  78. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index.js +11 -12
  79. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index14.js +42 -1
  80. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index15.js +19 -3
  81. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index16.js +73 -3
  82. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index17.js +3 -1
  83. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index18.js +16 -1
  84. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index19.js +32 -4
  85. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index20.js +304 -11
  86. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index22.js +42 -258
  87. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index23.js +62 -38
  88. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index24.js +485 -61
  89. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index25.js +90 -480
  90. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index27.js +2 -0
  91. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index28.js +3 -1
  92. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index29.js +0 -3
  93. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index30.js +100 -1
  94. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index31.js +23 -95
  95. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index32.js +231 -23
  96. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index33.js +3 -236
  97. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index34.js +249 -3
  98. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index35.js +78 -234
  99. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index36.js +53 -87
  100. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index37.js +343 -49
  101. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index4.js +29 -20
  102. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/data-access/dist/index4.js +2 -2
  103. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/index9.js +209 -207
  104. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index4.js +10 -5
  105. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index5.js +10 -5
  106. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index6.js +11 -6
  107. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index2.js +2 -2
  108. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index3.js +2 -2
  109. package/dist/libs/tesouro-embedded-components-react/settings-widget/profile/data-access/dist/index2.js +2 -2
  110. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index12.js +2 -2
  111. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index13.js +2 -2
  112. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index14.js +30 -28
  113. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index17.js +28 -26
  114. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index18.js +37 -34
  115. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index21.js +28 -26
  116. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index22.js +37 -34
  117. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index17.js +294 -292
  118. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index5.js +58 -58
  119. package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/data-access/dist/lib/approvalPoliciesApi.js +47 -48
  120. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index3.js +4 -4
  121. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index5.js +2 -2
  122. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index7.js +4 -4
  123. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +4 -3
  124. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/EmbedApiContext.js +14 -13
  125. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/allPages.js +1 -1
  126. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/applicationStatusQueryOptions.js +16 -15
  127. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/bank-account/useAllBankAccountsQuery.js +7 -5
  128. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/debit-card/useAllDebitCardsQuery.js +7 -5
  129. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/disclosures/useDisclosuresQuery.js +2 -2
  130. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/external-bank-account/useAllExternalBankAccountsQuery.js +7 -5
  131. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/merchant-category-group/useAllMerchantCategoryGroupsQuery.js +28 -29
  132. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/organizationStatus.js +10 -0
  133. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/reference-data/useLedgerAccountsQuery.js +26 -27
  134. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/reference-data/usePaymentTermsQuery.js +2 -2
  135. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js +189 -211
  136. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +43 -59
  137. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/role/useAllOrganizationRolesQuery.js +31 -32
  138. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/role/useRolePermissionsQueries.js +2 -2
  139. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useCurrentUserQuery.js +2 -2
  140. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useGetUserDataQuery.js +2 -2
  141. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useMailboxAddress.js +2 -2
  142. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useMyEntityQuery.js +2 -2
  143. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/user/useAllOrganizationUsersQuery.js +33 -34
  144. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/withAuthEpoch.js +33 -22
  145. package/dist/libs/tesouro-embedded-components-react/shared/expense-requirements/data-access/dist/index3.js +2 -2
  146. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/RootWidgetProvider.js +43 -32
  147. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/WidgetProvider.js +138 -127
  148. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/deriveOrganizationStatus.js +6 -0
  149. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/useWidgetFetch.js +1 -1
  150. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  151. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index10.js +2 -2
  152. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index2.js +2 -2
  153. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index3.js +2 -2
  154. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index4.js +2 -2
  155. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index9.js +2 -2
  156. package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index6.js +2 -2
  157. package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/index6.js +60 -58
  158. package/package.json +1 -1
  159. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index26.js +0 -106
  160. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index38.js +0 -353
@@ -1,12 +1,305 @@
1
- import "../../../../../packages/shared-ui-shadcn/dist/index.js";
1
+ import { Accordion as e, AccordionContent as t, AccordionItem as n, AccordionTrigger as r, Badge as i, Button as a, Sheet as o, SheetContent as s, SheetDescription as c, SheetHeader as l, SheetTitle as u, Tooltip as d, TooltipContent as f, TooltipProvider as p, TooltipTrigger as m, cn as h } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { ErrorState as g } from "../../../shared/ui/dist/lib/ErrorState/ErrorState.js";
2
3
  import "../../../shared/ui/dist/index.js";
3
- import "./index4.js";
4
- import "./index13.js";
5
- import "./index14.js";
6
- import "./index15.js";
7
- import "./index16.js";
8
- import "./index17.js";
9
- import "./index18.js";
10
- import "./index19.js";
11
- import "react/jsx-runtime";
12
- import "lucide-react";
4
+ import { RECEIVABLE_DETAILS_PANEL_LABELS_EN as _ } from "./index4.js";
5
+ import { ReceivableStatusBadge as v } from "./index13.js";
6
+ import { ACTION_ICON as y, ACTION_LABEL_KEY as b, STATUS_ICON as x, headerIconButtonClass as S } from "./index14.js";
7
+ import { AmountCell as C } from "./index15.js";
8
+ import { ATTACHMENTS_ITEM_VALUE as w, AttachmentsItem as T } from "./index16.js";
9
+ import { CloseButton as E } from "./index17.js";
10
+ import { InfoRow as D } from "./index18.js";
11
+ import { OverflowMenu as O } from "./index19.js";
12
+ import { Fragment as k, jsx as A, jsxs as j } from "react/jsx-runtime";
13
+ import { CircleAlert as M, EyeIcon as N, Repeat as P } from "lucide-react";
14
+ //#region ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index20.js
15
+ function F({ open: F, onOpenChange: I, details: L, unsupported: R, isLoading: z, isError: B, onActionClick: V, onClose: H, labels: U }) {
16
+ let W = {
17
+ ..._,
18
+ ...U
19
+ }, G = L?.panel, K = B ? {
20
+ title: W.errorTitle,
21
+ description: W.errorDescription
22
+ } : R, q = G?.amountTone === "danger", J = (e) => W[b[e]], Y = L ? x[L.status] : void 0;
23
+ return /* @__PURE__ */ A(o, {
24
+ open: F,
25
+ onOpenChange: I,
26
+ children: /* @__PURE__ */ j(s, {
27
+ showCloseButton: !1,
28
+ className: "ttw:w-180 ttw:overflow-y-auto ttw:p-0 ttw:sm:max-w-180",
29
+ children: [K || z || !L ? /* @__PURE__ */ A(E, {
30
+ label: W.closeButton,
31
+ onClose: H,
32
+ className: h(S, "ttw:absolute ttw:right-4 ttw:top-4 ttw:z-10")
33
+ }) : null, K ? /* @__PURE__ */ j("div", {
34
+ className: "ttw:p-6",
35
+ children: [/* @__PURE__ */ j(l, {
36
+ className: "ttw:sr-only",
37
+ children: [/* @__PURE__ */ A(u, { children: K.title }), /* @__PURE__ */ A(c, { children: W.hiddenDescription })]
38
+ }), /* @__PURE__ */ A(g, {
39
+ title: K.title,
40
+ description: K.description
41
+ })]
42
+ }) : z || !L || !G ? /* @__PURE__ */ j(l, {
43
+ className: "ttw:p-6",
44
+ children: [/* @__PURE__ */ A(u, { children: W.loadingTitle }), /* @__PURE__ */ A(c, {
45
+ className: "ttw:sr-only",
46
+ children: W.hiddenDescription
47
+ })]
48
+ }) : /* @__PURE__ */ j(k, { children: [/* @__PURE__ */ j(l, {
49
+ className: "ttw:flex ttw:flex-row ttw:items-start ttw:justify-between ttw:gap-2 ttw:space-y-0 ttw:px-6 ttw:py-4",
50
+ children: [/* @__PURE__ */ j("div", {
51
+ className: "ttw:flex ttw:flex-col ttw:gap-0.5",
52
+ children: [
53
+ /* @__PURE__ */ A(u, {
54
+ className: "ttw:text-xl ttw:font-semibold ttw:text-foreground",
55
+ children: L.title
56
+ }),
57
+ G.subtitle ? /* @__PURE__ */ A("p", {
58
+ className: "ttw:text-sm ttw:text-muted-foreground",
59
+ children: G.subtitle
60
+ }) : null,
61
+ /* @__PURE__ */ A(c, {
62
+ className: "ttw:sr-only",
63
+ children: W.hiddenDescription
64
+ })
65
+ ]
66
+ }), /* @__PURE__ */ A(p, {
67
+ delayDuration: 500,
68
+ children: /* @__PURE__ */ j("div", {
69
+ className: "ttw:flex ttw:items-center ttw:gap-1.5",
70
+ children: [
71
+ L.pdfUrl ? /* @__PURE__ */ j(d, { children: [/* @__PURE__ */ A(m, {
72
+ asChild: !0,
73
+ children: /* @__PURE__ */ A(a, {
74
+ asChild: !0,
75
+ variant: "ghost",
76
+ size: "icon",
77
+ className: S,
78
+ children: /* @__PURE__ */ A("a", {
79
+ href: L.pdfUrl,
80
+ target: "_blank",
81
+ rel: "noreferrer",
82
+ "aria-label": W.viewPdfButton,
83
+ children: /* @__PURE__ */ A(N, { className: "ttw:size-4" })
84
+ })
85
+ })
86
+ }), /* @__PURE__ */ A(f, { children: W.viewPdfButton })] }) : null,
87
+ G.overflowActions.length > 0 ? /* @__PURE__ */ A(O, {
88
+ actions: G.overflowActions,
89
+ triggerLabel: W.moreActionsLabel,
90
+ getActionLabel: J,
91
+ onSelect: (e) => V(e, L),
92
+ className: S
93
+ }) : null,
94
+ /* @__PURE__ */ j(d, { children: [/* @__PURE__ */ A(m, {
95
+ asChild: !0,
96
+ children: /* @__PURE__ */ A(E, {
97
+ label: W.closeButton,
98
+ onClose: H,
99
+ className: S
100
+ })
101
+ }), /* @__PURE__ */ A(f, { children: W.closeButton })] })
102
+ ]
103
+ })
104
+ })]
105
+ }), /* @__PURE__ */ j("div", {
106
+ className: "ttw:flex ttw:flex-col",
107
+ children: [/* @__PURE__ */ A("div", {
108
+ className: "ttw:px-6",
109
+ children: /* @__PURE__ */ j("div", {
110
+ className: h("ttw:flex ttw:flex-col ttw:gap-3 ttw:rounded-lg ttw:bg-muted ttw:p-4", q && "ttw:border ttw:border-red-200"),
111
+ children: [
112
+ /* @__PURE__ */ A("div", {
113
+ className: "ttw:flex ttw:flex-row ttw:flex-wrap ttw:gap-x-12 ttw:gap-y-2",
114
+ children: G.amountRows.map((e) => /* @__PURE__ */ A(C, {
115
+ row: e,
116
+ defaultTone: G.amountTone
117
+ }, e.label))
118
+ }),
119
+ /* @__PURE__ */ j("div", {
120
+ className: "ttw:flex ttw:items-center ttw:gap-2",
121
+ children: [G.overdueLabel ? /* @__PURE__ */ j("span", {
122
+ className: "ttw:inline-flex ttw:items-center ttw:gap-1 ttw:rounded-full ttw:bg-red-100 ttw:px-2.5 ttw:py-0.5 ttw:text-xs ttw:font-medium ttw:text-red-700",
123
+ children: [/* @__PURE__ */ A(M, { className: "ttw:size-3" }), G.overdueLabel]
124
+ }) : /* @__PURE__ */ A(v, {
125
+ label: G.statusLabel,
126
+ tone: L.statusTone,
127
+ icon: Y ? /* @__PURE__ */ A(Y, { className: "ttw:size-3" }) : void 0
128
+ }), G.recurring ? /* @__PURE__ */ j(i, {
129
+ variant: "outline",
130
+ className: "ttw:gap-1 ttw:border-violet-200 ttw:bg-violet-50 ttw:text-violet-700",
131
+ children: [/* @__PURE__ */ A(P, { className: "ttw:size-3" }), W.recurringBadge]
132
+ }) : null]
133
+ }),
134
+ /* @__PURE__ */ j("div", {
135
+ className: "ttw:flex ttw:gap-12 ttw:text-sm",
136
+ children: [/* @__PURE__ */ j("div", {
137
+ className: "ttw:flex ttw:flex-col ttw:gap-0.5",
138
+ children: [/* @__PURE__ */ A("span", {
139
+ className: "ttw:text-xs ttw:text-muted-foreground",
140
+ children: W.invoiceDateCaption
141
+ }), /* @__PURE__ */ A("span", {
142
+ className: "ttw:text-foreground",
143
+ children: G.issueDateLabel
144
+ })]
145
+ }), /* @__PURE__ */ j("div", {
146
+ className: "ttw:flex ttw:flex-col ttw:gap-0.5",
147
+ children: [/* @__PURE__ */ A("span", {
148
+ className: "ttw:text-xs ttw:text-muted-foreground",
149
+ children: G.dueDateCaption
150
+ }), /* @__PURE__ */ A("span", {
151
+ className: "ttw:text-foreground",
152
+ children: G.dueDateLabel
153
+ })]
154
+ })]
155
+ }),
156
+ G.primaryActions.length > 0 ? /* @__PURE__ */ A("div", {
157
+ className: "ttw:flex ttw:items-center ttw:gap-2 ttw:border-t ttw:border-border ttw:pt-3",
158
+ children: G.primaryActions.map((e, t) => {
159
+ let n = y[e], r = t === G.primaryActions.length - 1;
160
+ return /* @__PURE__ */ j(a, {
161
+ size: "sm",
162
+ variant: r ? "default" : "outline",
163
+ onClick: () => V(e, L),
164
+ children: [/* @__PURE__ */ A(n, { className: "ttw:size-4" }), J(e)]
165
+ }, e);
166
+ })
167
+ }) : null
168
+ ]
169
+ })
170
+ }), /* @__PURE__ */ j("div", {
171
+ className: "ttw:px-6",
172
+ children: [
173
+ G.paymentHistory ? /* @__PURE__ */ j("section", {
174
+ "aria-label": W.paymentHistoryHeading,
175
+ className: "ttw:border-b ttw:py-4",
176
+ children: [/* @__PURE__ */ A("h3", {
177
+ className: "ttw:mb-3 ttw:text-sm ttw:font-medium",
178
+ children: W.paymentHistoryHeading
179
+ }), G.paymentHistory.rows.length === 0 ? /* @__PURE__ */ A("p", {
180
+ className: h("ttw:text-sm", G.paymentHistory.emptyTone === "danger" ? "ttw:text-red-600" : "ttw:text-muted-foreground"),
181
+ children: W.paymentHistoryEmpty
182
+ }) : /* @__PURE__ */ j("div", {
183
+ className: "ttw:flex ttw:flex-col",
184
+ children: [G.paymentHistory.rows.map((e) => /* @__PURE__ */ j("div", {
185
+ className: "ttw:flex ttw:justify-between ttw:border-b ttw:border-border ttw:py-2 ttw:text-sm",
186
+ children: [/* @__PURE__ */ A("span", { children: e.dateLabel }), /* @__PURE__ */ A("span", { children: e.amountLabel })]
187
+ }, e.id)), /* @__PURE__ */ j("div", {
188
+ className: "ttw:flex ttw:justify-between ttw:py-2 ttw:text-sm ttw:font-medium",
189
+ children: [/* @__PURE__ */ A("span", { children: W.paymentHistoryTotalLabel }), /* @__PURE__ */ A("span", { children: G.paymentHistory.totalLabel })]
190
+ })]
191
+ })]
192
+ }) : null,
193
+ G.customerContact.length > 0 ? /* @__PURE__ */ j("section", {
194
+ "aria-label": W.customerDetailsHeading,
195
+ className: "ttw:border-b ttw:py-4",
196
+ children: [/* @__PURE__ */ A("h3", {
197
+ className: "ttw:mb-3 ttw:text-sm ttw:font-medium",
198
+ children: W.customerDetailsHeading
199
+ }), /* @__PURE__ */ A("div", {
200
+ className: "ttw:flex ttw:flex-col",
201
+ children: G.customerContact.map((e) => /* @__PURE__ */ A(D, { ...e }, e.label))
202
+ })]
203
+ }) : null,
204
+ /* @__PURE__ */ j(e, {
205
+ type: "multiple",
206
+ defaultValue: [w],
207
+ className: "ttw:w-full",
208
+ children: [
209
+ G.recurrenceItems ? /* @__PURE__ */ j(n, {
210
+ value: "recurrence",
211
+ children: [/* @__PURE__ */ A(r, { children: W.recurrenceHeading }), /* @__PURE__ */ A(t, { children: /* @__PURE__ */ A("div", {
212
+ className: "ttw:flex ttw:flex-col",
213
+ children: G.recurrenceItems.map((e) => /* @__PURE__ */ A(D, { ...e }, e.label))
214
+ }) })]
215
+ }) : null,
216
+ /* @__PURE__ */ j(n, {
217
+ value: "billing",
218
+ children: [/* @__PURE__ */ A(r, { children: W.billingHeading }), /* @__PURE__ */ A(t, { children: /* @__PURE__ */ A("div", {
219
+ className: "ttw:flex ttw:flex-col",
220
+ children: G.billingItems.map((e) => /* @__PURE__ */ A(D, { ...e }, e.label))
221
+ }) })]
222
+ }),
223
+ /* @__PURE__ */ j(n, {
224
+ value: "line-items",
225
+ children: [/* @__PURE__ */ A(r, { children: /* @__PURE__ */ j("span", {
226
+ className: "ttw:flex ttw:items-center ttw:gap-2",
227
+ children: [W.lineItemsHeading, /* @__PURE__ */ A(i, {
228
+ variant: "secondary",
229
+ className: "ttw:rounded-full",
230
+ children: G.lineItemsCountLabel
231
+ })]
232
+ }) }), /* @__PURE__ */ A(t, { children: /* @__PURE__ */ j("div", {
233
+ className: "ttw:flex ttw:flex-col ttw:text-sm",
234
+ children: [L.lineItems.length === 0 ? /* @__PURE__ */ A("p", {
235
+ className: "ttw:py-3 ttw:text-muted-foreground",
236
+ children: W.noLineItems
237
+ }) : L.lineItems.map((e) => /* @__PURE__ */ j("div", {
238
+ className: "ttw:flex ttw:items-start ttw:justify-between ttw:border-b ttw:border-border ttw:py-3",
239
+ children: [/* @__PURE__ */ j("div", {
240
+ className: "ttw:flex ttw:flex-col",
241
+ children: [/* @__PURE__ */ A("span", {
242
+ className: "ttw:font-medium",
243
+ children: e.name
244
+ }), /* @__PURE__ */ j("span", {
245
+ className: "ttw:text-muted-foreground",
246
+ children: [
247
+ e.quantityLabel,
248
+ " ",
249
+ W.lineItemMultiplier,
250
+ " ",
251
+ e.unitPriceLabel,
252
+ " ",
253
+ W.lineItemEaLabel
254
+ ]
255
+ })]
256
+ }), /* @__PURE__ */ A("span", { children: e.totalLabel })]
257
+ }, e.id)), G.lineItemTotals.length > 0 ? /* @__PURE__ */ A("div", {
258
+ className: "ttw:flex ttw:flex-col ttw:gap-1 ttw:py-3",
259
+ children: G.lineItemTotals.map((e) => /* @__PURE__ */ j("div", {
260
+ className: h("ttw:flex ttw:justify-between", e.emphasis && "ttw:font-medium"),
261
+ children: [/* @__PURE__ */ A("span", { children: e.label }), /* @__PURE__ */ A("span", { children: e.value })]
262
+ }, e.label))
263
+ }) : null]
264
+ }) })]
265
+ }),
266
+ G.notes ? /* @__PURE__ */ j(n, {
267
+ value: "notes",
268
+ children: [/* @__PURE__ */ A(r, { children: /* @__PURE__ */ j("span", {
269
+ className: "ttw:flex ttw:items-center ttw:gap-2",
270
+ children: [W.notesHeading, /* @__PURE__ */ A(i, {
271
+ variant: "secondary",
272
+ className: "ttw:rounded-full",
273
+ children: G.notes.countLabel
274
+ })]
275
+ }) }), /* @__PURE__ */ A(t, { children: /* @__PURE__ */ j("div", {
276
+ className: "ttw:flex ttw:flex-col ttw:gap-3 ttw:text-sm",
277
+ children: [G.notes.opening ? /* @__PURE__ */ j("div", { children: [/* @__PURE__ */ A("p", {
278
+ className: "ttw:mb-1 ttw:font-medium",
279
+ children: W.notesOpeningLabel
280
+ }), /* @__PURE__ */ A("p", {
281
+ className: "ttw:text-muted-foreground",
282
+ children: G.notes.opening
283
+ })] }) : null, G.notes.closing ? /* @__PURE__ */ j("div", { children: [/* @__PURE__ */ A("p", {
284
+ className: "ttw:mb-1 ttw:font-medium",
285
+ children: W.notesClosingLabel
286
+ }), /* @__PURE__ */ A("p", {
287
+ className: "ttw:text-muted-foreground",
288
+ children: G.notes.closing
289
+ })] }) : null]
290
+ }) })]
291
+ }) : null,
292
+ /* @__PURE__ */ A(T, {
293
+ attachments: G.attachments,
294
+ labels: W
295
+ })
296
+ ]
297
+ })
298
+ ]
299
+ })]
300
+ })] })]
301
+ })
302
+ });
303
+ }
304
+ //#endregion
305
+ export { F as ReceivableDetailsPanel, F as default };
@@ -1,264 +1,48 @@
1
- import { Button as e, Sheet as t, SheetContent as n, SheetDescription as r, SheetFooter as i, SheetHeader as a, SheetTitle as o, Typography as s } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { ErrorState as c } from "../../../shared/ui/dist/lib/ErrorState/ErrorState.js";
3
- import "../../../shared/ui/dist/index.js";
4
- import { RECEIVABLE_DETAILS_SHEET_LABELS_EN as l } from "./index4.js";
5
- import { ReceivableStatusBadge as u } from "./index13.js";
6
- import { Fragment as d, jsx as f, jsxs as p } from "react/jsx-runtime";
7
- import { DownloadIcon as m } from "lucide-react";
1
+ import { cn as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { jsx as t, jsxs as n } from "react/jsx-runtime";
8
3
  //#region ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index22.js
9
- function h({ title: e, children: t }) {
10
- return /* @__PURE__ */ p("section", {
11
- className: "ttw:flex ttw:flex-col ttw:gap-3",
12
- children: [/* @__PURE__ */ f(s, {
13
- variant: "body2",
14
- className: "ttw:font-semibold",
15
- children: e
16
- }), t]
4
+ function r({ label: r, value: i, className: a }) {
5
+ return /* @__PURE__ */ n("li", {
6
+ className: e("ttw:flex ttw:items-center ttw:justify-between", a),
7
+ children: [/* @__PURE__ */ t("span", { children: r }), /* @__PURE__ */ t("span", { children: i })]
17
8
  });
18
9
  }
19
- function g({ open: s, onOpenChange: g, details: _, isLoading: v, isError: y, onActionClick: b, onClose: x, labels: S }) {
20
- let C = {
21
- ...l,
22
- ...S,
23
- statusBadge: {
24
- ...l.statusBadge,
25
- ...S?.statusBadge
26
- }
27
- };
28
- return /* @__PURE__ */ f(t, {
29
- open: s,
30
- onOpenChange: g,
31
- children: /* @__PURE__ */ p(n, {
32
- className: "ttw:w-180 ttw:overflow-y-auto ttw:sm:max-w-180",
33
- children: [
34
- /* @__PURE__ */ p(a, { children: [/* @__PURE__ */ f(o, { children: v ? C.loadingTitle : _?.title }), /* @__PURE__ */ f(r, {
35
- className: "ttw:sr-only",
36
- children: C.hiddenDescription
37
- })] }),
38
- /* @__PURE__ */ f("div", {
39
- className: "ttw:flex ttw:flex-col ttw:gap-6 ttw:px-6 ttw:pb-6",
40
- children: y ? /* @__PURE__ */ f(c, {
41
- title: C.errorTitle,
42
- description: C.errorDescription
43
- }) : _ ? /* @__PURE__ */ p(d, { children: [
44
- /* @__PURE__ */ p("div", {
45
- className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:justify-between ttw:gap-3",
46
- children: [/* @__PURE__ */ p("div", {
47
- className: "ttw:flex ttw:flex-col ttw:gap-1",
48
- children: [/* @__PURE__ */ f("span", {
49
- className: "ttw:text-sm ttw:text-muted-foreground",
50
- children: _.customerLabel
51
- }), /* @__PURE__ */ p("div", {
52
- className: "ttw:flex ttw:items-center ttw:gap-2",
53
- children: [/* @__PURE__ */ f(u, {
54
- status: _.status,
55
- tone: _.statusTone,
56
- labels: C.statusBadge
57
- }), /* @__PURE__ */ f("span", {
58
- className: "ttw:text-sm ttw:font-medium",
59
- children: _.totalLabel
60
- })]
61
- })]
62
- }), _.pdfUrl && /* @__PURE__ */ f(e, {
63
- asChild: !0,
64
- variant: "outline",
65
- children: /* @__PURE__ */ p("a", {
66
- href: _.pdfUrl,
67
- target: "_blank",
68
- rel: "noreferrer",
69
- children: [/* @__PURE__ */ f(m, { className: "ttw:size-4" }), C.downloadPdfButton]
70
- })
71
- })]
72
- }),
73
- /* @__PURE__ */ f(h, {
74
- title: C.summaryHeading,
75
- children: /* @__PURE__ */ f("dl", {
76
- className: "ttw:grid ttw:grid-cols-2 ttw:gap-x-6 ttw:gap-y-3",
77
- children: _.summaryItems.map((e) => /* @__PURE__ */ p("div", {
78
- className: "ttw:flex ttw:flex-col",
79
- children: [/* @__PURE__ */ f("dt", {
80
- className: "ttw:text-xs ttw:text-muted-foreground",
81
- children: e.label
82
- }), /* @__PURE__ */ f("dd", {
83
- className: "ttw:text-sm ttw:font-medium",
84
- children: e.value
85
- })]
86
- }, e.label))
87
- })
88
- }),
89
- /* @__PURE__ */ f(h, {
90
- title: C.lineItemsHeading,
91
- children: _.lineItems.length === 0 ? /* @__PURE__ */ f("p", {
92
- className: "ttw:text-sm ttw:text-muted-foreground",
93
- children: C.noLineItems
94
- }) : /* @__PURE__ */ f("div", {
95
- className: "ttw:overflow-hidden ttw:rounded-md ttw:border",
96
- children: /* @__PURE__ */ p("table", {
97
- className: "ttw:w-full ttw:text-sm",
98
- children: [/* @__PURE__ */ f("thead", {
99
- className: "ttw:bg-muted/50",
100
- children: /* @__PURE__ */ p("tr", { children: [
101
- /* @__PURE__ */ f("th", {
102
- className: "ttw:p-2 ttw:text-left",
103
- children: C.lineItemsHeading
104
- }),
105
- /* @__PURE__ */ f("th", {
106
- className: "ttw:p-2 ttw:text-right",
107
- children: C.quantityColumn
108
- }),
109
- /* @__PURE__ */ f("th", {
110
- className: "ttw:p-2 ttw:text-right",
111
- children: C.unitPriceColumn
112
- }),
113
- /* @__PURE__ */ f("th", {
114
- className: "ttw:p-2 ttw:text-right",
115
- children: C.totalColumn
116
- })
117
- ] })
118
- }), /* @__PURE__ */ f("tbody", { children: _.lineItems.map((e) => /* @__PURE__ */ p("tr", {
119
- className: "ttw:border-t",
120
- children: [
121
- /* @__PURE__ */ f("td", {
122
- className: "ttw:p-2",
123
- children: e.name
124
- }),
125
- /* @__PURE__ */ f("td", {
126
- className: "ttw:p-2 ttw:text-right",
127
- children: e.quantityLabel
128
- }),
129
- /* @__PURE__ */ f("td", {
130
- className: "ttw:p-2 ttw:text-right",
131
- children: e.unitPriceLabel
132
- }),
133
- /* @__PURE__ */ f("td", {
134
- className: "ttw:p-2 ttw:text-right",
135
- children: e.totalLabel
136
- })
137
- ]
138
- }, e.id)) })]
139
- })
140
- })
141
- }),
142
- /* @__PURE__ */ f(h, {
143
- title: C.activityHeading,
144
- children: _.activityItems.length === 0 ? /* @__PURE__ */ f("p", {
145
- className: "ttw:text-sm ttw:text-muted-foreground",
146
- children: C.noActivity
147
- }) : /* @__PURE__ */ f("div", {
148
- className: "ttw:flex ttw:flex-col ttw:gap-3",
149
- children: _.activityItems.map((e) => /* @__PURE__ */ p("div", {
150
- className: "ttw:flex ttw:flex-col",
151
- children: [
152
- /* @__PURE__ */ f("span", {
153
- className: "ttw:text-sm ttw:font-medium",
154
- children: e.title
155
- }),
156
- /* @__PURE__ */ f("span", {
157
- className: "ttw:text-sm ttw:text-muted-foreground",
158
- children: e.description
159
- }),
160
- /* @__PURE__ */ f("span", {
161
- className: "ttw:text-xs ttw:text-muted-foreground",
162
- children: e.timestampLabel
163
- })
164
- ]
165
- }, e.id))
166
- })
167
- }),
168
- /* @__PURE__ */ f(h, {
169
- title: C.mailsHeading,
170
- children: _.mailItems.length === 0 ? /* @__PURE__ */ f("p", {
171
- className: "ttw:text-sm ttw:text-muted-foreground",
172
- children: C.noMails
173
- }) : /* @__PURE__ */ f("div", {
174
- className: "ttw:flex ttw:flex-col ttw:gap-3",
175
- children: _.mailItems.map((e) => /* @__PURE__ */ p("div", {
176
- className: "ttw:flex ttw:flex-col",
177
- children: [
178
- /* @__PURE__ */ f("span", {
179
- className: "ttw:text-sm ttw:font-medium",
180
- children: e.statusLabel
181
- }),
182
- /* @__PURE__ */ f("span", {
183
- className: "ttw:text-sm ttw:text-muted-foreground",
184
- children: e.recipientsLabel
185
- }),
186
- /* @__PURE__ */ f("span", {
187
- className: "ttw:text-xs ttw:text-muted-foreground",
188
- children: e.sentAtLabel
189
- })
190
- ]
191
- }, e.id))
192
- })
193
- })
194
- ] }) : null
195
- }),
196
- /* @__PURE__ */ f(i, { children: _ && /* @__PURE__ */ p("div", {
197
- className: "ttw:flex ttw:flex-wrap ttw:justify-end ttw:gap-2",
198
- children: [
199
- _.actions.edit && /* @__PURE__ */ f(e, {
200
- variant: "outline",
201
- onClick: () => b("edit", _),
202
- children: C.editButton
203
- }),
204
- _.actions.issue && /* @__PURE__ */ f(e, {
205
- onClick: () => b("issue", _),
206
- children: C.issueButton
207
- }),
208
- _.actions.send && /* @__PURE__ */ f(e, {
209
- variant: "outline",
210
- onClick: () => b("send", _),
211
- children: C.sendButton
212
- }),
213
- _.actions.accept && /* @__PURE__ */ f(e, {
214
- onClick: () => b("accept", _),
215
- children: C.acceptButton
216
- }),
217
- _.actions.decline && /* @__PURE__ */ f(e, {
218
- variant: "outline",
219
- onClick: () => b("decline", _),
220
- children: C.declineButton
221
- }),
222
- _.actions.recordPayment && /* @__PURE__ */ f(e, {
223
- variant: "outline",
224
- onClick: () => b("recordPayment", _),
225
- children: C.recordPaymentButton
226
- }),
227
- _.actions.markPaid && /* @__PURE__ */ f(e, {
228
- variant: "outline",
229
- onClick: () => b("markPaid", _),
230
- children: C.markPaidButton
231
- }),
232
- _.actions.markUncollectible && /* @__PURE__ */ f(e, {
233
- variant: "outline",
234
- onClick: () => b("markUncollectible", _),
235
- children: C.markUncollectibleButton
236
- }),
237
- _.actions.cancel && /* @__PURE__ */ f(e, {
238
- variant: "outline",
239
- onClick: () => b("cancel", _),
240
- children: C.cancelButton
241
- }),
242
- _.actions.clone && /* @__PURE__ */ f(e, {
243
- variant: "outline",
244
- onClick: () => b("clone", _),
245
- children: C.cloneButton
246
- }),
247
- _.actions.delete && /* @__PURE__ */ f(e, {
248
- variant: "destructive",
249
- onClick: () => b("delete", _),
250
- children: C.deleteButton
251
- }),
252
- /* @__PURE__ */ f(e, {
253
- variant: "ghost",
254
- onClick: x,
255
- children: C.closeButton
256
- })
257
- ]
258
- }) })
259
- ]
260
- })
10
+ function i({ totals: e, labels: i }) {
11
+ return /* @__PURE__ */ n("ul", {
12
+ className: "ttw:flex ttw:w-full ttw:list-none ttw:flex-col ttw:gap-1.5",
13
+ children: [
14
+ /* @__PURE__ */ t(r, {
15
+ label: i.subtotalLabel,
16
+ value: e.subtotal,
17
+ className: "ttw:text-sm ttw:font-normal"
18
+ }),
19
+ /* @__PURE__ */ t(r, {
20
+ label: i.discountTotalLabel,
21
+ value: e.discount,
22
+ className: "ttw:text-sm ttw:font-normal"
23
+ }),
24
+ /* @__PURE__ */ t(r, {
25
+ label: i.nonTaxableSubtotalLabel,
26
+ value: e.nonTaxableSubtotal,
27
+ className: "ttw:text-sm ttw:font-normal ttw:text-muted-foreground"
28
+ }),
29
+ /* @__PURE__ */ t(r, {
30
+ label: i.taxableSubtotalLabel,
31
+ value: e.taxableSubtotal,
32
+ className: "ttw:text-sm ttw:font-normal ttw:text-muted-foreground"
33
+ }),
34
+ /* @__PURE__ */ t(r, {
35
+ label: i.taxTotalLabel,
36
+ value: e.tax,
37
+ className: "ttw:text-sm ttw:font-normal"
38
+ }),
39
+ /* @__PURE__ */ t(r, {
40
+ label: i.totalLabel,
41
+ value: e.total,
42
+ className: "ttw:text-lg ttw:font-medium"
43
+ })
44
+ ]
261
45
  });
262
46
  }
263
47
  //#endregion
264
- export { g as ReceivableDetailsSheet, g as default };
48
+ export { i as ReceivableFormTotals };