@tesouro/embedded-components-react 0.5.279 → 0.5.280

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 (104) hide show
  1. package/dist/index.d.ts +21 -6
  2. package/dist/lib/ReceivablesWidget.d.ts +21 -6
  3. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index.js +14 -13
  4. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index10.js +24 -168
  5. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index11.js +173 -44
  6. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index12.js +42 -94
  7. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index13.js +91 -76
  8. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index14.js +67 -173
  9. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index15.js +186 -17
  10. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index16.js +27 -0
  11. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index3.js +11 -13
  12. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index4.js +42 -27
  13. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index5.js +28 -132
  14. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index6.js +137 -16
  15. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index7.js +16 -62
  16. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index8.js +66 -28
  17. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index9.js +28 -34
  18. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivableAttachmentsSection.js +1 -1
  19. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivableCustomerSection.js +38 -0
  20. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivablesWidget.js +304 -287
  21. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/auditHistory/labels.js +1 -1
  22. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/customer.js +58 -0
  23. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/helpers.js +15 -15
  24. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/labels.js +14 -6
  25. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/paymentTerms.js +1 -1
  26. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/permissions.js +2 -1
  27. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/preview.js +62 -62
  28. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/recurrence.js +41 -35
  29. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/reminders.js +1 -1
  30. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/totals.js +21 -13
  31. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableActions.js +124 -124
  32. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableActionsModal.js +11 -11
  33. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableAttachmentUploads.js +13 -13
  34. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableBankAccount.js +1 -1
  35. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableCustomerPicker.js +109 -0
  36. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableDetails.js +6 -6
  37. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableForm.js +520 -476
  38. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableIssuePreflight.js +10 -10
  39. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablePaymentRecord.js +6 -6
  40. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablePaymentTerms.js +1 -1
  41. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablePreview.js +1 -1
  42. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableRecurrence.js +92 -77
  43. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableReminders.js +11 -11
  44. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableStatusCards.js +1 -1
  45. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablesTable.js +4 -4
  46. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablesWidget.js +79 -75
  47. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useSendReceivableWithPaymentLink.js +3 -3
  48. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index.js +26 -23
  49. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index12.js +9 -25
  50. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index13.js +26 -228
  51. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index14.js +227 -52
  52. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index15.js +50 -212
  53. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index16.js +193 -138
  54. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index17.js +157 -12
  55. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index18.js +10 -19
  56. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index19.js +23 -2
  57. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index20.js +2 -116
  58. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index21.js +118 -3
  59. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index22.js +3 -39
  60. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index23.js +209 -53
  61. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index24.js +2 -23
  62. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index25.js +36 -7
  63. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index26.js +53 -77
  64. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index27.js +17 -35
  65. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index28.js +8 -18
  66. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index29.js +73 -37
  67. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index30.js +36 -26
  68. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index31.js +17 -19
  69. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index32.js +39 -8
  70. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index33.js +26 -33
  71. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index34.js +20 -14
  72. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index35.js +8 -24
  73. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index36.js +34 -84
  74. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index37.js +14 -492
  75. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index38.js +28 -2
  76. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index39.js +79 -39
  77. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index40.js +490 -68
  78. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index41.js +2 -487
  79. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index42.js +41 -217
  80. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index43.js +70 -21
  81. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index44.js +440 -5
  82. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index45.js +224 -0
  83. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index46.js +21 -263
  84. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index47.js +8 -2
  85. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index49.js +261 -24
  86. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index50.js +2 -237
  87. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index51.js +100 -3
  88. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index52.js +21 -242
  89. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index53.js +226 -82
  90. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index54.js +3 -60
  91. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index55.js +233 -178
  92. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index56.js +85 -37
  93. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index57.js +60 -0
  94. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index58.js +194 -0
  95. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index59.js +45 -0
  96. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/index.js +9 -9
  97. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/CounterpartSelector.js +2 -23
  98. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useCounterpartSelector.js +2 -51
  99. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index.js +8 -8
  100. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index15.js +4 -80
  101. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index2.js +10 -22
  102. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  103. package/package.json +1 -1
  104. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index48.js +0 -100
@@ -9,348 +9,365 @@ import { useAnalyticsTrack as r } from "../../../../../shared/feature/dist/lib/a
9
9
  import { WidgetProvider as i } from "../../../../../shared/feature/dist/lib/WidgetProvider/WidgetProvider.js";
10
10
  import "../../../../../shared/feature/dist/index.js";
11
11
  import { CounterpartFormSheet as a } from "../../../../../shared/counterpart-management/ui/dist/index9.js";
12
- import { CounterpartSelector as o } from "../../../../../shared/counterpart-management/feature/dist/lib/CounterpartSelector.js";
13
12
  import "../../../../../shared/counterpart-management/feature/dist/index.js";
14
- import { CounterpartDetailsContainer as s } from "../../../../../counterparts-widget/feature/dist/lib/CounterpartsWidget/CounterpartDetailsContainer.js";
13
+ import { CounterpartDetailsContainer as o } from "../../../../../counterparts-widget/feature/dist/lib/CounterpartsWidget/CounterpartDetailsContainer.js";
15
14
  import "../../../../../counterparts-widget/feature/dist/index.js";
16
- import { ReceivablesWidgetAnalyticsEvent as c, WIDGET_NAME as l } from "./analytics/events.js";
17
- import { PAGE_SIZE_OPTIONS as u } from "./constants.js";
18
- import { InvoicesFilterBar as d } from "../../../../ui/dist/index4.js";
19
- import { ReceivableActionsModal as f } from "../../../../ui/dist/index9.js";
20
- import { ReceivableActionDialog as p } from "../../../../ui/dist/index14.js";
21
- import { ReceivableBankAccountSection as m } from "../../../../ui/dist/index15.js";
22
- import { ReceivableBillingSection as h } from "../../../../ui/dist/index20.js";
23
- import { ReceivableDetailsPanel as g } from "../../../../ui/dist/index37.js";
24
- import { ReceivableFormDialog as _ } from "../../../../ui/dist/index41.js";
25
- import { ReceivablePaymentDialog as v } from "../../../../ui/dist/index42.js";
26
- import { ReceivablePreview as y } from "../../../../ui/dist/index46.js";
27
- import { ReceivableRecurrenceEmailDialog as b } from "../../../../ui/dist/index48.js";
28
- import { ReceivableRecurrenceSection as x } from "../../../../ui/dist/index50.js";
29
- import { ReceivableRemindersSection as ee } from "../../../../ui/dist/index52.js";
30
- import { ReceivableSendDialog as te } from "../../../../ui/dist/index53.js";
31
- import { ReceivablesScreen as ne } from "../../../../ui/dist/index55.js";
32
- import { UnsavedInvoiceDialog as re } from "../../../../ui/dist/index56.js";
15
+ import { ReceivablesWidgetAnalyticsEvent as s, WIDGET_NAME as c } from "./analytics/events.js";
16
+ import { PAGE_SIZE_OPTIONS as l } from "./constants.js";
17
+ import { InvoicesFilterBar as u } from "../../../../ui/dist/index4.js";
18
+ import { ReceivableActionsModal as d } from "../../../../ui/dist/index9.js";
19
+ import { ReceivableActionDialog as f } from "../../../../ui/dist/index15.js";
20
+ import { ReceivableBankAccountSection as p } from "../../../../ui/dist/index16.js";
21
+ import { ReceivableBillingSection as m } from "../../../../ui/dist/index21.js";
22
+ import { ReceivableDetailsPanel as h } from "../../../../ui/dist/index40.js";
23
+ import { ReceivableFormDialog as g } from "../../../../ui/dist/index44.js";
24
+ import { ReceivablePaymentDialog as _ } from "../../../../ui/dist/index45.js";
25
+ import { ReceivablePreview as v } from "../../../../ui/dist/index49.js";
26
+ import { ReceivableRecurrenceEmailDialog as y } from "../../../../ui/dist/index51.js";
27
+ import { ReceivableRecurrenceSection as b } from "../../../../ui/dist/index53.js";
28
+ import { ReceivableRemindersSection as x } from "../../../../ui/dist/index55.js";
29
+ import { ReceivableSendDialog as ee } from "../../../../ui/dist/index56.js";
30
+ import { ReceivablesScreen as te } from "../../../../ui/dist/index58.js";
31
+ import { UnsavedInvoiceDialog as ne } from "../../../../ui/dist/index59.js";
33
32
  import "../../../../ui/dist/index.js";
34
- import { ReceivableAttachmentsSection as ie } from "./ReceivableAttachmentsSection.js";
35
- import { MeasureUnitsManagerContainer as S } from "../../../../../shared/product-catalog/feature/dist/lib/MeasureUnitsManagerContainer.js";
36
- import { ProductSelector as C } from "../../../../../shared/product-catalog/feature/dist/lib/ProductSelector.js";
33
+ import { ReceivableAttachmentsSection as re } from "./ReceivableAttachmentsSection.js";
34
+ import { ReceivableCustomerSection as S } from "./ReceivableCustomerSection.js";
35
+ import { MeasureUnitsManagerContainer as C } from "../../../../../shared/product-catalog/feature/dist/lib/MeasureUnitsManagerContainer.js";
36
+ import { ProductSelector as w } from "../../../../../shared/product-catalog/feature/dist/lib/ProductSelector.js";
37
37
  import "../../../../../shared/product-catalog/feature/dist/index.js";
38
- import { useReceivablesWidget as w } from "./useReceivablesWidget.js";
39
- import { useEffect as T, useId as E } from "react";
40
- import { Fragment as D, jsx as O, jsxs as k } from "react/jsx-runtime";
38
+ import { useReceivablesWidget as T } from "./useReceivablesWidget.js";
39
+ import { useEffect as E, useId as D } from "react";
40
+ import { Fragment as O, jsx as k, jsxs as A } from "react/jsx-runtime";
41
41
  //#region ../../libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivablesWidget.js
42
- function A({ auditHistoryLabels: i, bankAttribution: l, counterpartFormLabels: A, counterpartMessageLabels: j, detailsLabels: M, embeddedBankName: N, filterBarLabels: P, filterLabels: F, formLabels: I, headerStart: L, initialCounterpartId: ae, initialView: R, measureUnitDeleteLabels: z, measureUnitsLabels: B, messageLabels: V, onReceivableCreated: H, onReceivableOpened: U, onTemplateSettingsClick: W, pageSizeOptions: G = u, paymentLabels: K, previewLabels: q, productMessageLabels: J, screenLabels: Y, sendLabels: oe, actionLabels: se, actionsModalLabels: ce }) {
43
- let X = r();
44
- T(() => {
45
- X(c.Mounted);
46
- }, [X]);
47
- let Z = w({
42
+ function j({ auditHistoryLabels: i, bankAttribution: c, counterpartFormLabels: j, counterpartMessageLabels: M, detailsLabels: N, embeddedBankName: P, filterBarLabels: F, filterLabels: I, formLabels: L, headerStart: R, initialCounterpartId: z, initialView: B, measureUnitDeleteLabels: V, measureUnitsLabels: H, messageLabels: ie, onReceivableCreated: U, onReceivableOpened: W, onTemplateSettingsClick: G, pageSizeOptions: K = l, paymentLabels: q, previewLabels: J, productMessageLabels: Y, screenLabels: X, sendLabels: ae, actionLabels: oe, actionsModalLabels: se }) {
43
+ let Z = r();
44
+ E(() => {
45
+ Z(s.Mounted);
46
+ }, [Z]);
47
+ let Q = T({
48
48
  auditHistoryLabels: i,
49
- counterpartMessageLabels: j,
50
- embeddedBankName: N,
51
- filterLabels: F,
52
- initialCounterpartId: ae,
53
- initialView: R,
54
- messageLabels: V,
55
- onReceivableCreated: H,
56
- onReceivableOpened: U,
57
- pageSizeOptions: G,
58
- screenLabels: Y
59
- }), le = E(), Q = E(), $ = E(), ue = E(), de = E();
60
- return /* @__PURE__ */ k(D, { children: [
61
- /* @__PURE__ */ O(n, { position: "bottom-left" }),
62
- /* @__PURE__ */ O(ne, {
63
- rows: Z.table.rows,
64
- isLoading: Z.isTableLoading,
65
- isError: Z.isError,
66
- isAccessRestricted: Z.isAccessRestricted,
67
- sorting: Z.table.sorting,
68
- onSortingChange: Z.table.onSortingChange,
69
- pageSize: Z.table.pageSize,
70
- onPageSizeChange: Z.table.onPageSizeChange,
71
- pageSizeOptions: G,
72
- hasNextPage: Z.table.hasNextPage,
73
- hasPrevPage: Z.table.hasPrevPage,
74
- onNextPage: Z.table.onNextPage,
75
- onPrevPage: Z.table.onPrevPage,
76
- statusCards: Z.table.statusCards,
77
- onStatusCardSelect: Z.table.onStatusCardSelect,
78
- filterBar: /* @__PURE__ */ O(d, {
79
- ...Z.table.filterBar,
80
- labels: P
49
+ counterpartMessageLabels: M,
50
+ embeddedBankName: P,
51
+ filterLabels: I,
52
+ initialCounterpartId: z,
53
+ initialView: B,
54
+ messageLabels: ie,
55
+ onReceivableCreated: U,
56
+ onReceivableOpened: W,
57
+ pageSizeOptions: K,
58
+ screenLabels: X
59
+ }), ce = D(), le = D(), $ = D(), ue = D(), de = D(), fe = D();
60
+ return /* @__PURE__ */ A(O, { children: [
61
+ /* @__PURE__ */ k(n, { position: "bottom-left" }),
62
+ /* @__PURE__ */ k(te, {
63
+ rows: Q.table.rows,
64
+ isLoading: Q.isTableLoading,
65
+ isError: Q.isError,
66
+ isAccessRestricted: Q.isAccessRestricted,
67
+ sorting: Q.table.sorting,
68
+ onSortingChange: Q.table.onSortingChange,
69
+ pageSize: Q.table.pageSize,
70
+ onPageSizeChange: Q.table.onPageSizeChange,
71
+ pageSizeOptions: K,
72
+ hasNextPage: Q.table.hasNextPage,
73
+ hasPrevPage: Q.table.hasPrevPage,
74
+ onNextPage: Q.table.onNextPage,
75
+ onPrevPage: Q.table.onPrevPage,
76
+ statusCards: Q.table.statusCards,
77
+ onStatusCardSelect: Q.table.onStatusCardSelect,
78
+ filterBar: /* @__PURE__ */ k(u, {
79
+ ...Q.table.filterBar,
80
+ labels: F
81
81
  }),
82
- isFiltering: Z.table.isFiltering,
83
- headerStart: L,
84
- bankAttribution: l,
85
- onCreateClick: Z.canWrite ? Z.openCreate : void 0,
86
- onSettingsClick: Z.canEditSettings ? W : void 0,
87
- onRowClick: Z.handleRowClick,
88
- onRetry: Z.onRetry,
89
- labels: Y
82
+ isFiltering: Q.table.isFiltering,
83
+ headerStart: R,
84
+ bankAttribution: c,
85
+ onCreateClick: Q.canWrite ? Q.openCreate : void 0,
86
+ onSettingsClick: Q.canEditSettings ? G : void 0,
87
+ onRowClick: Q.handleRowClick,
88
+ onRetry: Q.onRetry,
89
+ labels: X
90
90
  }),
91
- /* @__PURE__ */ O(_, {
92
- open: Z.form.open,
93
- onRequestClose: Z.form.requestClose,
94
- mode: Z.form.mode,
95
- values: Z.form.sheetValues,
96
- errors: Z.form.errors,
97
- unitOptions: Z.form.lineItemUnitOptions,
98
- currencySymbol: Z.form.currencySymbol,
99
- lineItemControls: Z.form.lineItemControls,
100
- autoFocusLineItemId: Z.form.autoFocusLineItemId,
101
- lineItemsLoading: Z.form.lineItemsLoading,
102
- inProgress: Z.form.isSubmitting || Z.actionsSuspended,
103
- customerSelector: /* @__PURE__ */ O(o, {
104
- mode: "customer",
105
- value: Z.form.values.customerId || void 0,
106
- invalid: !!Z.form.errors.customerId,
107
- onValueChange: (e) => Z.form.updateValues({ customerId: e })
91
+ /* @__PURE__ */ k(g, {
92
+ open: Q.form.open,
93
+ onRequestClose: Q.form.requestClose,
94
+ mode: Q.form.mode,
95
+ values: Q.form.sheetValues,
96
+ errors: Q.form.errors,
97
+ unitOptions: Q.form.lineItemUnitOptions,
98
+ currencySymbol: Q.form.currencySymbol,
99
+ lineItemControls: Q.form.lineItemControls,
100
+ autoFocusLineItemId: Q.form.autoFocusLineItemId,
101
+ lineItemsLoading: Q.form.lineItemsLoading,
102
+ inProgress: Q.form.isSubmitting || Q.actionsSuspended,
103
+ customerSection: /* @__PURE__ */ k(S, {
104
+ idPrefix: le,
105
+ customerId: Q.form.values.customerId,
106
+ customer: Q.form.customer,
107
+ customerName: Q.form.values.customerName,
108
+ customerEmail: Q.form.values.customerEmail,
109
+ customerError: Q.form.errors.customerId,
110
+ customerEmailError: Q.form.errors.customerEmail,
111
+ canCreate: Q.canCreateCustomer,
112
+ messages: Q.messages,
113
+ disabled: Q.form.isSubmitting,
114
+ onCustomerSelect: (e) => Q.form.updateValues({ customerId: e }),
115
+ onCustomerNameChange: (e) => Q.form.updateValues({ customerName: e }),
116
+ onCustomerEmailChange: (e) => Q.form.updateValues({ customerEmail: e }),
117
+ onCustomerEmailBlur: Q.form.commitCustomerEmail,
118
+ onAddDetailsClick: Q.form.openCounterpartCreate,
119
+ onViewDetailsClick: Q.openCustomerDetails ? () => Q.openCustomerDetails?.(Q.form.values.customerId) : void 0,
120
+ onClearClick: () => Q.form.updateValues({
121
+ customerId: "",
122
+ customerName: "",
123
+ customerEmail: ""
124
+ }),
125
+ labels: L
108
126
  }),
109
- renderProductSelector: (e, t) => /* @__PURE__ */ O(C, {
127
+ renderProductSelector: (e, t) => /* @__PURE__ */ k(w, {
110
128
  ...t,
111
129
  inputValue: e.name,
112
- selectedProductId: Z.form.values.lineItems.find((t) => t.id === e.id)?.productId || void 0,
113
- currency: Z.form.values.currency,
130
+ selectedProductId: Q.form.values.lineItems.find((t) => t.id === e.id)?.productId || void 0,
131
+ currency: Q.form.values.currency,
114
132
  maxLength: 100,
115
- onInputValueChange: (t) => Z.form.updateLineItem(e.id, { name: t }),
116
- onProductSelect: (t) => Z.form.selectProduct(e.id, t)
133
+ onInputValueChange: (t) => Q.form.updateLineItem(e.id, { name: t }),
134
+ onProductSelect: (t) => Q.form.selectProduct(e.id, t)
117
135
  }),
118
- onChange: Z.form.updateValues,
119
- onLineItemChange: Z.form.updateLineItem,
120
- onLineItemCommit: Z.form.commitLineItem,
121
- onLineItemQuantityStep: Z.form.stepLineItem,
122
- onTaxRateCommit: Z.form.commitTaxRate,
123
- onDiscountFocus: Z.form.focusDiscount,
124
- onDiscountCommit: Z.form.commitDiscount,
125
- totals: Z.form.totalsView,
126
- onManageUnits: Z.openMeasureUnits,
127
- onAddLineItem: Z.form.addLineItem,
128
- onRemoveLineItem: Z.form.removeLineItem,
129
- showDueDateField: Z.form.showDueDateField,
130
- onAddCustomerDetailsClick: Z.form.openCounterpartCreate,
131
- billingSection: Z.form.showBillingSection && /* @__PURE__ */ O(h, {
132
- idPrefix: le,
133
- paymentTerms: Z.form.paymentTerms.view,
134
- paymentTermsError: Z.form.errors.paymentTermsId,
135
- disabled: Z.form.isSubmitting,
136
- onPaymentTermsChange: Z.form.paymentTerms.select,
137
- onCustomDatePickerOpenChange: Z.form.paymentTerms.changeCustomDatePickerOpen,
138
- purchaseOrder: Z.form.purchaseOrder,
139
- onPurchaseOrderChange: (e) => Z.form.updateValues({ purchaseOrder: e }),
140
- customDateCalendar: /* @__PURE__ */ O(e, {
136
+ onChange: Q.form.updateValues,
137
+ onLineItemChange: Q.form.updateLineItem,
138
+ onLineItemCommit: Q.form.commitLineItem,
139
+ onLineItemQuantityStep: Q.form.stepLineItem,
140
+ onTaxRateCommit: Q.form.commitTaxRate,
141
+ onDiscountFocus: Q.form.focusDiscount,
142
+ onDiscountCommit: Q.form.commitDiscount,
143
+ totals: Q.form.totalsView,
144
+ onManageUnits: Q.openMeasureUnits,
145
+ onAddLineItem: Q.form.addLineItem,
146
+ onRemoveLineItem: Q.form.removeLineItem,
147
+ showDueDateField: Q.form.showDueDateField,
148
+ billingSection: Q.form.showBillingSection && /* @__PURE__ */ k(m, {
149
+ idPrefix: ce,
150
+ paymentTerms: Q.form.paymentTerms.view,
151
+ paymentTermsError: Q.form.errors.paymentTermsId,
152
+ disabled: Q.form.isSubmitting,
153
+ onPaymentTermsChange: Q.form.paymentTerms.select,
154
+ onCustomDatePickerOpenChange: Q.form.paymentTerms.changeCustomDatePickerOpen,
155
+ purchaseOrder: Q.form.purchaseOrder,
156
+ onPurchaseOrderChange: (e) => Q.form.updateValues({ purchaseOrder: e }),
157
+ customDateCalendar: /* @__PURE__ */ k(e, {
141
158
  mode: "single",
142
159
  captionLayout: "dropdown",
143
- ...Z.form.paymentTerms.calendar,
144
- onSelect: Z.form.paymentTerms.selectCustomDate
160
+ ...Q.form.paymentTerms.calendar,
161
+ onSelect: Q.form.paymentTerms.selectCustomDate
145
162
  }),
146
- recurrenceSection: Z.form.showRecurrenceSection && (Z.form.recurrenceLoading ? /* @__PURE__ */ O(t, { className: "ttw:h-9 ttw:w-full" }) : /* @__PURE__ */ O(x, {
147
- idPrefix: Q,
148
- view: Z.form.recurrence.view,
149
- disabled: Z.form.isSubmitting,
150
- onFrequencyChange: Z.form.recurrence.changeFrequency,
151
- onMonthDayChange: Z.form.recurrence.changeMonthDay,
152
- onWeekdayChange: Z.form.recurrence.changeWeekday,
153
- onStartDateChange: Z.form.recurrence.changeStartDate,
154
- onEndModeChange: Z.form.recurrence.changeEndMode,
155
- onEndDateChange: Z.form.recurrence.changeEndDate,
156
- onMaxOccurrencesChange: Z.form.recurrence.changeMaxOccurrences,
157
- onCreationModeChange: Z.form.recurrence.changeCreationMode,
158
- onSetUpEmailClick: Z.form.recurrence.setUpEmail,
159
- emailDialog: /* @__PURE__ */ O(b, {
160
- idPrefix: Q,
161
- view: Z.form.recurrence.emailView,
162
- onOpenChange: Z.form.recurrence.changeEmailOpen,
163
- onChange: Z.form.recurrence.changeEmail,
164
- onSave: Z.form.recurrence.saveEmail,
165
- labels: I
163
+ recurrenceSection: Q.form.showRecurrenceSection && (Q.form.recurrenceLoading ? /* @__PURE__ */ k(t, { className: "ttw:h-9 ttw:w-full" }) : /* @__PURE__ */ k(b, {
164
+ idPrefix: $,
165
+ view: Q.form.recurrence.view,
166
+ disabled: Q.form.isSubmitting,
167
+ onFrequencyChange: Q.form.recurrence.changeFrequency,
168
+ onMonthDayChange: Q.form.recurrence.changeMonthDay,
169
+ onWeekdayChange: Q.form.recurrence.changeWeekday,
170
+ onStartDateChange: Q.form.recurrence.changeStartDate,
171
+ onEndModeChange: Q.form.recurrence.changeEndMode,
172
+ onEndDateChange: Q.form.recurrence.changeEndDate,
173
+ onMaxOccurrencesChange: Q.form.recurrence.changeMaxOccurrences,
174
+ onCreationModeChange: Q.form.recurrence.changeCreationMode,
175
+ onSetUpEmailClick: Q.form.recurrence.setUpEmail,
176
+ emailDialog: /* @__PURE__ */ k(y, {
177
+ idPrefix: $,
178
+ view: Q.form.recurrence.emailView,
179
+ onOpenChange: Q.form.recurrence.changeEmailOpen,
180
+ onChange: Q.form.recurrence.changeEmail,
181
+ onSave: Q.form.recurrence.saveEmail,
182
+ labels: L
166
183
  }),
167
- labels: I
184
+ labels: L
168
185
  })),
169
- remindersSection: Z.form.reminders.view && /* @__PURE__ */ O(ee, {
170
- idPrefix: ue,
171
- view: Z.form.reminders.view,
172
- onToggle: Z.form.reminders.toggle,
173
- onPaymentReminderSelect: Z.form.reminders.selectPaymentReminder,
174
- onOverdueReminderSelect: Z.form.reminders.selectOverdueReminder,
175
- onBeforeDueInputChange: Z.form.reminders.changeBeforeDueInput,
176
- onBeforeDueSave: Z.form.reminders.saveBeforeDue,
177
- onOverdueTermChange: Z.form.reminders.changeOverdueTerm,
178
- onOverdueAddTerm: Z.form.reminders.addOverdueTerm,
179
- onOverdueClear: Z.form.reminders.clearOverdueTerms,
180
- onOverdueSave: Z.form.reminders.saveOverdue,
181
- labels: I
186
+ remindersSection: Q.form.reminders.view && /* @__PURE__ */ k(x, {
187
+ idPrefix: de,
188
+ view: Q.form.reminders.view,
189
+ onToggle: Q.form.reminders.toggle,
190
+ onPaymentReminderSelect: Q.form.reminders.selectPaymentReminder,
191
+ onOverdueReminderSelect: Q.form.reminders.selectOverdueReminder,
192
+ onBeforeDueInputChange: Q.form.reminders.changeBeforeDueInput,
193
+ onBeforeDueSave: Q.form.reminders.saveBeforeDue,
194
+ onOverdueTermChange: Q.form.reminders.changeOverdueTerm,
195
+ onOverdueAddTerm: Q.form.reminders.addOverdueTerm,
196
+ onOverdueClear: Q.form.reminders.clearOverdueTerms,
197
+ onOverdueSave: Q.form.reminders.saveOverdue,
198
+ labels: L
182
199
  }),
183
- labels: I
200
+ labels: L
184
201
  }),
185
- bankAccountSection: /* @__PURE__ */ O(m, {
186
- idPrefix: $,
187
- view: Z.form.bankAccount.view,
188
- error: Z.form.errors.bankAccountId,
189
- disabled: Z.form.isSubmitting,
190
- onAccountSelect: Z.form.bankAccount.selectAccount,
191
- onAddAccountClick: Z.form.bankAccount.openAddAccount,
192
- onFormChange: Z.form.bankAccount.updateAccountForm,
193
- onFormSave: Z.form.bankAccount.saveAccount,
194
- onFormCancel: Z.form.bankAccount.cancelAddAccount,
195
- labels: I
202
+ bankAccountSection: /* @__PURE__ */ k(p, {
203
+ idPrefix: ue,
204
+ view: Q.form.bankAccount.view,
205
+ error: Q.form.errors.bankAccountId,
206
+ disabled: Q.form.isSubmitting,
207
+ onAccountSelect: Q.form.bankAccount.selectAccount,
208
+ onAddAccountClick: Q.form.bankAccount.openAddAccount,
209
+ onFormChange: Q.form.bankAccount.updateAccountForm,
210
+ onFormSave: Q.form.bankAccount.saveAccount,
211
+ onFormCancel: Q.form.bankAccount.cancelAddAccount,
212
+ labels: L
196
213
  }),
197
- attachmentsSection: Z.form.attachmentsView && /* @__PURE__ */ O(ie, {
198
- view: Z.form.attachmentsView,
199
- disabled: Z.form.isSubmitting,
200
- onFilesSelect: Z.form.selectAttachmentFiles,
201
- onIncludeInEmailChange: Z.form.setAttachmentIncludeInEmail,
202
- onRemove: Z.form.removeAttachment,
203
- labels: I
214
+ attachmentsSection: Q.form.attachmentsView && /* @__PURE__ */ k(re, {
215
+ view: Q.form.attachmentsView,
216
+ disabled: Q.form.isSubmitting,
217
+ onFilesSelect: Q.form.selectAttachmentFiles,
218
+ onIncludeInEmailChange: Q.form.setAttachmentIncludeInEmail,
219
+ onRemove: Q.form.removeAttachment,
220
+ labels: L
204
221
  }),
205
- preview: /* @__PURE__ */ O(y, {
206
- view: Z.form.preview,
207
- labels: q
222
+ preview: /* @__PURE__ */ k(v, {
223
+ view: Q.form.preview,
224
+ labels: J
208
225
  }),
209
- closeDisabled: Z.form.isSubmitting,
210
- cancelDisabled: Z.form.isSubmitting || Z.form.attachmentsUploading,
211
- draftButtonLabel: Z.form.draftButtonLabel,
212
- draftDisabled: Z.form.draftDisabled,
213
- draftLoading: Z.form.draftLoading,
214
- primaryButtonLabel: Z.form.primaryButtonLabel,
215
- primaryDisabled: Z.form.primaryDisabled,
216
- primaryLoading: Z.form.primaryLoading,
217
- scrollContainerRef: Z.form.scrollContainerRef,
218
- onSubmit: Z.form.submit,
219
- onDraftClick: Z.form.selectDraftMode,
220
- onPrimaryClick: Z.form.selectPrimaryMode,
221
- labels: I
226
+ closeDisabled: Q.form.isSubmitting,
227
+ cancelDisabled: Q.form.isSubmitting || Q.form.attachmentsUploading,
228
+ draftButtonLabel: Q.form.draftButtonLabel,
229
+ draftDisabled: Q.form.draftDisabled,
230
+ draftLoading: Q.form.draftLoading,
231
+ primaryButtonLabel: Q.form.primaryButtonLabel,
232
+ primaryDisabled: Q.form.primaryDisabled,
233
+ primaryLoading: Q.form.primaryLoading,
234
+ scrollContainerRef: Q.form.scrollContainerRef,
235
+ onSubmit: Q.form.submit,
236
+ onDraftClick: Q.form.selectDraftMode,
237
+ onPrimaryClick: Q.form.selectPrimaryMode,
238
+ labels: L
222
239
  }),
223
- /* @__PURE__ */ O(re, {
224
- ...Z.form.unsavedPrompt,
225
- labels: I
240
+ /* @__PURE__ */ k(ne, {
241
+ ...Q.form.unsavedPrompt,
242
+ labels: L
226
243
  }),
227
- /* @__PURE__ */ O(g, {
228
- open: Z.detailsOpen,
244
+ /* @__PURE__ */ k(h, {
245
+ open: Q.detailsOpen,
229
246
  onOpenChange: (e) => {
230
- e || Z.closeDetails();
247
+ e || Q.closeDetails();
231
248
  },
232
- details: Z.details.detailsView,
233
- message: Z.details.messageView,
234
- isLoading: Z.details.isLoading,
235
- onActionClick: Z.handleDetailsActionClick,
236
- onClose: Z.closeDetails,
237
- openSections: Z.details.openSections,
238
- onOpenSectionsChange: Z.details.setOpenSections,
239
- disabledActions: Z.actions.pendingActions,
240
- labels: M
241
- }, Z.detailsPanelKey),
242
- /* @__PURE__ */ O(s, {
243
- counterpartId: Z.customerDetailsId,
249
+ details: Q.details.detailsView,
250
+ message: Q.details.messageView,
251
+ isLoading: Q.details.isLoading,
252
+ onActionClick: Q.handleDetailsActionClick,
253
+ onClose: Q.closeDetails,
254
+ openSections: Q.details.openSections,
255
+ onOpenSectionsChange: Q.details.setOpenSections,
256
+ disabledActions: Q.actions.pendingActions,
257
+ labels: N
258
+ }, Q.detailsPanelKey),
259
+ /* @__PURE__ */ k(o, {
260
+ counterpartId: Q.customerDetailsId,
244
261
  counterpartType: "customer",
245
- onClose: Z.closeCustomerDetails
262
+ onClose: Q.closeCustomerDetails
246
263
  }),
247
- /* @__PURE__ */ O(te, {
248
- open: Z.actions.sendOpen,
264
+ /* @__PURE__ */ k(ee, {
265
+ open: Q.actions.sendOpen,
249
266
  onOpenChange: (e) => {
250
- e || Z.actions.closeSend();
267
+ e || Q.actions.closeSend();
251
268
  },
252
- values: Z.actions.sendValues,
253
- errors: Z.actions.sendErrors,
254
- inProgress: Z.actions.sendInProgress || Z.actionsSuspended,
255
- onChange: (e) => Z.actions.setSendValues((t) => ({
269
+ values: Q.actions.sendValues,
270
+ errors: Q.actions.sendErrors,
271
+ inProgress: Q.actions.sendInProgress || Q.actionsSuspended,
272
+ onChange: (e) => Q.actions.setSendValues((t) => ({
256
273
  ...t,
257
274
  ...e
258
275
  })),
259
- onSubmit: Z.actions.submitSend,
260
- onCancel: Z.actions.closeSend,
261
- labels: oe
276
+ onSubmit: Q.actions.submitSend,
277
+ onCancel: Q.actions.closeSend,
278
+ labels: ae
262
279
  }),
263
- /* @__PURE__ */ O(v, {
264
- open: Z.actions.payment.isOpen,
280
+ /* @__PURE__ */ k(_, {
281
+ open: Q.actions.payment.isOpen,
265
282
  onOpenChange: (e) => {
266
- e || Z.actions.payment.close();
283
+ e || Q.actions.payment.close();
267
284
  },
268
- step: Z.actions.payment.step,
269
- values: Z.actions.payment.values,
270
- errors: Z.actions.payment.errors,
271
- currencySymbol: Z.actions.payment.currencySymbol,
272
- amountDueLabel: Z.actions.payment.amountDueLabel,
273
- review: Z.actions.payment.review,
274
- inProgress: Z.actions.payment.inProgress || Z.actionsSuspended,
275
- onChange: Z.actions.payment.change,
276
- onFillAmountDue: Z.actions.payment.fillAmountDue,
277
- onSave: Z.actions.payment.save,
278
- onEdit: Z.actions.payment.edit,
279
- onConfirm: Z.actions.payment.confirm,
280
- onCancel: Z.actions.payment.close,
281
- labels: K
285
+ step: Q.actions.payment.step,
286
+ values: Q.actions.payment.values,
287
+ errors: Q.actions.payment.errors,
288
+ currencySymbol: Q.actions.payment.currencySymbol,
289
+ amountDueLabel: Q.actions.payment.amountDueLabel,
290
+ review: Q.actions.payment.review,
291
+ inProgress: Q.actions.payment.inProgress || Q.actionsSuspended,
292
+ onChange: Q.actions.payment.change,
293
+ onFillAmountDue: Q.actions.payment.fillAmountDue,
294
+ onSave: Q.actions.payment.save,
295
+ onEdit: Q.actions.payment.edit,
296
+ onConfirm: Q.actions.payment.confirm,
297
+ onCancel: Q.actions.payment.close,
298
+ labels: q
282
299
  }),
283
- Z.actions.actionDialog && /* @__PURE__ */ O(p, {
284
- open: !!Z.actions.actionTarget,
300
+ Q.actions.actionDialog && /* @__PURE__ */ k(f, {
301
+ open: !!Q.actions.actionTarget,
285
302
  onOpenChange: (e) => {
286
- e || Z.actions.closeAction();
303
+ e || Q.actions.closeAction();
287
304
  },
288
- title: Z.actions.actionDialog.title,
289
- description: Z.actions.actionDialog.description,
290
- confirmLabel: Z.actions.actionDialog.confirmLabel,
291
- cancelLabel: Z.actions.actionDialog.cancelLabel,
292
- cancelVariant: Z.actions.actionDialog.cancelVariant,
293
- destructive: Z.actions.actionDialog.destructive,
294
- error: Z.actions.actionError,
295
- inProgress: Z.actions.actionInProgress || Z.actionsSuspended,
296
- comment: Z.actions.actionComment,
297
- onCommentChange: Z.actions.setActionComment,
298
- onConfirm: Z.actions.confirmAction,
299
- onCancel: Z.actions.closeAction,
300
- labels: se
305
+ title: Q.actions.actionDialog.title,
306
+ description: Q.actions.actionDialog.description,
307
+ confirmLabel: Q.actions.actionDialog.confirmLabel,
308
+ cancelLabel: Q.actions.actionDialog.cancelLabel,
309
+ cancelVariant: Q.actions.actionDialog.cancelVariant,
310
+ destructive: Q.actions.actionDialog.destructive,
311
+ error: Q.actions.actionError,
312
+ inProgress: Q.actions.actionInProgress || Q.actionsSuspended,
313
+ comment: Q.actions.actionComment,
314
+ onCommentChange: Q.actions.setActionComment,
315
+ onConfirm: Q.actions.confirmAction,
316
+ onCancel: Q.actions.closeAction,
317
+ labels: oe
301
318
  }),
302
- /* @__PURE__ */ O(f, {
303
- idPrefix: de,
304
- open: Z.actionsModal.isOpen,
305
- view: Z.actionsModal.view,
306
- onSkip: Z.actionsModal.skip,
307
- onSubjectChange: Z.actionsModal.changeSubject,
308
- onMessageChange: Z.actionsModal.changeMessage,
309
- onSend: Z.actionsModal.send,
310
- onToggleItem: Z.actionsModal.toggleItem,
311
- onToggleAll: Z.actionsModal.toggleAll,
312
- onAllSelectedChange: Z.actionsModal.setAllSelected,
313
- onSaveItems: Z.actionsModal.saveItems,
314
- labels: ce
319
+ /* @__PURE__ */ k(d, {
320
+ idPrefix: fe,
321
+ open: Q.actionsModal.isOpen,
322
+ view: Q.actionsModal.view,
323
+ onSkip: Q.actionsModal.skip,
324
+ onSubjectChange: Q.actionsModal.changeSubject,
325
+ onMessageChange: Q.actionsModal.changeMessage,
326
+ onSend: Q.actionsModal.send,
327
+ onToggleItem: Q.actionsModal.toggleItem,
328
+ onToggleAll: Q.actionsModal.toggleAll,
329
+ onAllSelectedChange: Q.actionsModal.setAllSelected,
330
+ onSaveItems: Q.actionsModal.saveItems,
331
+ labels: se
315
332
  }),
316
- /* @__PURE__ */ O(a, {
317
- open: Z.form.counterpartView === "create",
333
+ /* @__PURE__ */ k(a, {
334
+ open: Q.form.counterpartView === "create",
318
335
  onOpenChange: (e) => {
319
- e || Z.form.counterpartForm.close();
336
+ e || Q.form.counterpartForm.close();
320
337
  },
321
338
  mode: "create",
322
- values: Z.form.counterpartForm.values,
323
- errors: Z.form.counterpartForm.errors,
324
- stateOptions: Z.form.stateOptions,
325
- inProgress: Z.form.counterpartForm.isSubmitting || Z.actionsSuspended,
326
- onChange: (e) => Z.form.counterpartForm.setValues((t) => ({
339
+ values: Q.form.counterpartForm.values,
340
+ errors: Q.form.counterpartForm.errors,
341
+ stateOptions: Q.form.stateOptions,
342
+ inProgress: Q.form.counterpartForm.isSubmitting || Q.actionsSuspended,
343
+ onChange: (e) => Q.form.counterpartForm.setValues((t) => ({
327
344
  ...t,
328
345
  ...e
329
346
  })),
330
- onAddressChange: (e) => Z.form.counterpartForm.setValues((t) => ({
347
+ onAddressChange: (e) => Q.form.counterpartForm.setValues((t) => ({
331
348
  ...t,
332
349
  address: {
333
350
  ...t.address,
334
351
  ...e
335
352
  }
336
353
  })),
337
- onSubmit: Z.form.counterpartForm.submit,
338
- onCancel: Z.form.counterpartForm.close,
339
- labels: A
354
+ onSubmit: Q.form.counterpartForm.submit,
355
+ onCancel: Q.form.counterpartForm.close,
356
+ labels: j
340
357
  }),
341
- /* @__PURE__ */ O(S, {
342
- open: Z.measureUnitsOpen,
343
- onClose: Z.closeMeasureUnits,
344
- suspended: Z.actionsSuspended,
345
- managerLabels: B,
346
- deleteLabels: z,
347
- messageLabels: J
358
+ /* @__PURE__ */ k(C, {
359
+ open: Q.measureUnitsOpen,
360
+ onClose: Q.closeMeasureUnits,
361
+ suspended: Q.actionsSuspended,
362
+ managerLabels: H,
363
+ deleteLabels: V,
364
+ messageLabels: Y
348
365
  })
349
366
  ] });
350
367
  }
351
- function j({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gatewayRouting: a, linkComponent: o, implementation: s, uiFramework: c, errorFallback: u, onError: d, analytics: f, disclosuresAcceptance: p, providerLabels: m, ...h }) {
352
- return /* @__PURE__ */ O(i, {
353
- widgetName: l,
368
+ function M({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gatewayRouting: a, linkComponent: o, implementation: s, uiFramework: l, errorFallback: u, onError: d, analytics: f, disclosuresAcceptance: p, providerLabels: m, ...h }) {
369
+ return /* @__PURE__ */ k(i, {
370
+ widgetName: c,
354
371
  baseUrl: e,
355
372
  widgetToken: t,
356
373
  organizationId: n,
@@ -358,14 +375,14 @@ function j({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gat
358
375
  gatewayRouting: a,
359
376
  linkComponent: o,
360
377
  implementation: s,
361
- uiFramework: c,
378
+ uiFramework: l,
362
379
  errorFallback: u,
363
380
  onError: d,
364
381
  analytics: f,
365
382
  disclosuresAcceptance: p,
366
383
  providerLabels: m,
367
- children: /* @__PURE__ */ O(A, { ...h })
384
+ children: /* @__PURE__ */ k(j, { ...h })
368
385
  });
369
386
  }
370
387
  //#endregion
371
- export { j as ReceivablesWidget, j as default };
388
+ export { M as ReceivablesWidget, M as default };