@tesouro/embedded-components-react 0.11.235 → 0.11.237

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 (77) hide show
  1. package/README.md +2 -2
  2. package/dist/index.css +12 -0
  3. package/dist/index.d.ts +24 -0
  4. package/dist/lib/ReceivablesWidget.d.ts +24 -0
  5. package/dist/lib/WidgetSuite.d.ts +24 -0
  6. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index.js +6 -6
  7. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index31.js +198 -118
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index32.js +76 -194
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index33.js +67 -75
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index34.js +111 -69
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index35.js +459 -108
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index36.js +101 -449
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index37.js +9 -117
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index38.js +85 -8
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index39.js +67 -73
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index40.js +246 -71
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index41.js +40 -251
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index42.js +237 -38
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index43.js +21 -244
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index44.js +529 -21
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index45.js +4 -530
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index46.js +44 -4
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index47.js +242 -41
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index48.js +3 -245
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index49.js +5 -3
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index50.js +63 -4
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index51.js +1 -64
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index5.js +1 -1
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget/BillsTab.js +1 -1
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/mocks/billPay.js +1 -1
  31. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivablesWidget.js +386 -354
  32. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/labels.js +1 -0
  33. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableActions.js +1 -1
  34. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableDetails.js +1 -1
  35. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableForm.js +260 -258
  36. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablesWidget.js +219 -179
  37. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index.js +26 -25
  38. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index19.js +15 -0
  39. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index32.js +31 -40
  40. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index33.js +18 -17
  41. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index34.js +40 -8
  42. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index35.js +30 -63
  43. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index36.js +463 -27
  44. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index37.js +15 -29
  45. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index38.js +8 -18
  46. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index39.js +18 -18
  47. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index40.js +19 -30
  48. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index41.js +15 -66
  49. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index42.js +66 -391
  50. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index43.js +148 -2
  51. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index44.js +173 -43
  52. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index45.js +3 -71
  53. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index46.js +37 -432
  54. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index47.js +66 -188
  55. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index48.js +455 -22
  56. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index49.js +191 -5
  57. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index50.js +23 -0
  58. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index51.js +5 -265
  59. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index53.js +261 -125
  60. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index54.js +2 -27
  61. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index55.js +122 -230
  62. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index56.js +27 -3
  63. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index57.js +216 -224
  64. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index58.js +3 -30
  65. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index59.js +228 -168
  66. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index60.js +29 -21
  67. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index61.js +152 -109
  68. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index62.js +22 -2
  69. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index63.js +140 -43
  70. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index64.js +2 -0
  71. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index65.js +47 -0
  72. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/document-preview.js +1 -0
  73. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  74. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/document/documentPreview.js +122 -0
  75. package/package.json +1 -1
  76. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index52.js +0 -1
  77. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index52.js +0 -2
@@ -11,437 +11,469 @@ import "../../../../../shared/feature/dist/index.js";
11
11
  import { CounterpartFormSheet as a } from "../../../../../shared/counterpart-management/ui/dist/index10.js";
12
12
  import { buildCounterpartFormTaxIdField as o } from "../../../../../shared/counterpart-management/feature/dist/lib/helpers.js";
13
13
  import "../../../../../shared/counterpart-management/feature/dist/index.js";
14
- import { CounterpartsWidget as s } from "../../../../../counterparts-widget/feature/dist/lib/CounterpartsWidget/CounterpartsWidget.js";
15
- import { CounterpartDetailsContainer as c } from "../../../../../counterparts-widget/feature/dist/lib/CounterpartsWidget/CounterpartDetailsContainer.js";
14
+ import { createDocumentPreview as s } from "../../../../../shared/feature/dist/lib/document/documentPreview.js";
15
+ import "../../../../../shared/feature/dist/document-preview.js";
16
+ import { CounterpartsWidget as c } from "../../../../../counterparts-widget/feature/dist/lib/CounterpartsWidget/CounterpartsWidget.js";
17
+ import { CounterpartDetailsContainer as l } from "../../../../../counterparts-widget/feature/dist/lib/CounterpartsWidget/CounterpartDetailsContainer.js";
16
18
  import "../../../../../counterparts-widget/feature/dist/index.js";
17
- import { InvoicesFilterBar as l } from "../../../../ui/dist/index4.js";
18
- import { InvoicingHeader as u, InvoicingTabs as d } from "../../../../ui/dist/index7.js";
19
- import { ReceivableActionsModal as f } from "../../../../ui/dist/index14.js";
20
- import { ReceivableActionDialog as p } from "../../../../ui/dist/index20.js";
21
- import { ReceivableBankAccountSection as m } from "../../../../ui/dist/index21.js";
22
- import { ReceivableBillingSection as h } from "../../../../ui/dist/index26.js";
23
- import { ReceivableDetailsPanel as g } from "../../../../ui/dist/index42.js";
24
- import { ReceivableFormDialog as _ } from "../../../../ui/dist/index46.js";
25
- import { ReceivablePaymentDialog as ee } from "../../../../ui/dist/index47.js";
26
- import { ReceivablePreview as te } from "../../../../ui/dist/index51.js";
27
- import { ReceivableRecurrenceEmailDialog as ne } from "../../../../ui/dist/index53.js";
28
- import { ReceivableRecurrenceSection as v } from "../../../../ui/dist/index55.js";
29
- import { ReceivableRemindersSection as y } from "../../../../ui/dist/index57.js";
30
- import { ReceivablesScreen as b } from "../../../../ui/dist/index59.js";
31
- import { RECURRING_SERIES_SCREEN_LABELS_EN as x } from "../../../../ui/dist/index60.js";
32
- import { RecurringSeriesScreen as S } from "../../../../ui/dist/index61.js";
33
- import { UnsavedInvoiceDialog as C } from "../../../../ui/dist/index63.js";
19
+ import { InvoicesFilterBar as u } from "../../../../ui/dist/index4.js";
20
+ import { InvoicingHeader as d, InvoicingTabs as f } from "../../../../ui/dist/index7.js";
21
+ import { ReceivableActionsModal as p } from "../../../../ui/dist/index14.js";
22
+ import { RECEIVABLE_DETAILS_PANEL_LABELS_EN as m } from "../../../../ui/dist/index19.js";
23
+ import { ReceivableActionDialog as h } from "../../../../ui/dist/index20.js";
24
+ import { ReceivableBankAccountSection as g } from "../../../../ui/dist/index21.js";
25
+ import { ReceivableBillingSection as _ } from "../../../../ui/dist/index26.js";
26
+ import { ReceivableDetailsPanel as ee } from "../../../../ui/dist/index43.js";
27
+ import { ReceivableDetailsScreen as te } from "../../../../ui/dist/index44.js";
28
+ import { ReceivableFormDialog as ne } from "../../../../ui/dist/index48.js";
29
+ import { ReceivablePaymentDialog as re } from "../../../../ui/dist/index49.js";
30
+ import { ReceivablePreview as ie } from "../../../../ui/dist/index53.js";
31
+ import { ReceivableRecurrenceEmailDialog as v } from "../../../../ui/dist/index55.js";
32
+ import { ReceivableRecurrenceSection as ae } from "../../../../ui/dist/index57.js";
33
+ import { ReceivableRemindersSection as oe } from "../../../../ui/dist/index59.js";
34
+ import { ReceivablesScreen as se } from "../../../../ui/dist/index61.js";
35
+ import { RECURRING_SERIES_SCREEN_LABELS_EN as y } from "../../../../ui/dist/index62.js";
36
+ import { RecurringSeriesScreen as b } from "../../../../ui/dist/index63.js";
37
+ import { UnsavedInvoiceDialog as x } from "../../../../ui/dist/index65.js";
34
38
  import "../../../../ui/dist/index.js";
35
- import { INVOICING_TAB_LABELS_EN as re, InvoicingTab as w, isInvoicingTabId as ie } from "./tabs.js";
39
+ import { INVOICING_TAB_LABELS_EN as S, InvoicingTab as C, isInvoicingTabId as ce } from "./tabs.js";
36
40
  import "./lineItems.js";
37
- import { PAGE_SIZE_OPTIONS as ae } from "./constants.js";
41
+ import { PAGE_SIZE_OPTIONS as le } from "./constants.js";
38
42
  import "./statusCards.js";
39
- import { ReceivablesWidgetAnalyticsEvent as oe, WIDGET_NAME as T } from "./analytics/events.js";
40
- import { ReceivableAttachmentsSection as se } from "./ReceivableAttachmentsSection.js";
41
- import { ReceivableCustomerSection as ce } from "./ReceivableCustomerSection.js";
42
- import { MeasureUnitsManagerContainer as le } from "../../../../../shared/product-catalog/feature/dist/lib/MeasureUnitsManagerContainer.js";
43
- import { ProductSelector as ue } from "../../../../../shared/product-catalog/feature/dist/lib/ProductSelector.js";
43
+ import { ReceivablesWidgetAnalyticsEvent as ue, WIDGET_NAME as w } from "./analytics/events.js";
44
+ import { ReceivableAttachmentsSection as de } from "./ReceivableAttachmentsSection.js";
45
+ import { ReceivableCustomerSection as fe } from "./ReceivableCustomerSection.js";
46
+ import { MeasureUnitsManagerContainer as pe } from "../../../../../shared/product-catalog/feature/dist/lib/MeasureUnitsManagerContainer.js";
47
+ import { ProductSelector as me } from "../../../../../shared/product-catalog/feature/dist/lib/ProductSelector.js";
44
48
  import "../../../../../shared/product-catalog/feature/dist/index.js";
45
- import { useReceivablesWidget as de } from "./useReceivablesWidget.js";
46
- import { ProductsWidget as fe } from "../../../../../products-widget/feature/dist/lib/ProductsWidget/ProductsWidget.js";
49
+ import { useReceivablesWidget as he } from "./useReceivablesWidget.js";
50
+ import { ProductsWidget as ge } from "../../../../../products-widget/feature/dist/lib/ProductsWidget/ProductsWidget.js";
47
51
  import "../../../../../products-widget/feature/dist/index.js";
48
- import { useEffect as pe, useId as E, useState as D } from "react";
49
- import { Fragment as O, jsx as k, jsxs as A } from "react/jsx-runtime";
52
+ import { useEffect as _e, useId as T, useMemo as ve, useState as E } from "react";
53
+ import { Fragment as D, jsx as O, jsxs as k } from "react/jsx-runtime";
50
54
  // ../../libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivablesWidget.js
51
- function j({ auditHistoryLabels: i, counterpartFormLabels: u, counterpartMessageLabels: T, detailsLabels: j, embeddedBankName: M, filterBarLabels: N, filterLabels: P, formLabels: F, initialCounterpartId: I, initialView: L, measureUnitDeleteLabels: R, measureUnitsLabels: z, messageLabels: B, onReceivableCreated: me, onReceivableOpened: he, onStatusCardChange: ge, onTabChange: _e, onTemplateSettingsClick: ve, pageSizeOptions: V = ae, paymentLabels: ye, previewLabels: be, productMessageLabels: xe, screenLabels: H, selectedStatusCard: Se, selectedTab: Ce, seriesScreenLabels: U, tabLabels: we, actionLabels: Te, actionsModalLabels: Ee, settingsContainer: De }) {
52
- let W = r();
53
- pe(() => {
54
- W(oe.Mounted);
55
- }, [W]);
56
- let [Oe, ke] = D(w.Invoices), G = Ce ?? Oe, K = de({
55
+ function A({ auditHistoryLabels: i, counterpartFormLabels: d, counterpartMessageLabels: w, detailsLabels: A, embeddedBankName: j, filterBarLabels: M, filterLabels: N, formLabels: P, initialCounterpartId: F, initialView: ye, measureUnitDeleteLabels: be, measureUnitsLabels: xe, messageLabels: Se, onReceivableCreated: Ce, onReceivableOpened: we, onStatusCardChange: I, onTabChange: Te, onTemplateSettingsClick: Ee, pageSizeOptions: L = le, paymentLabels: De, previewLabels: Oe, productMessageLabels: ke, screenLabels: R, selectedStatusCard: Ae, selectedTab: je, seriesScreenLabels: z, tabLabels: Me, actionLabels: Ne, actionsModalLabels: Pe, settingsContainer: Fe }) {
56
+ let B = r();
57
+ _e(() => {
58
+ B(ue.Mounted);
59
+ }, [B]);
60
+ let [Ie, Le] = E(C.Invoices), V = je ?? Ie, H = he({
57
61
  auditHistoryLabels: i,
58
- counterpartMessageLabels: T,
59
- embeddedBankName: M,
60
- filterLabels: P,
61
- initialCounterpartId: I,
62
- initialView: L,
63
- messageLabels: B,
64
- onReceivableCreated: me,
65
- onReceivableOpened: he,
66
- onStatusCardChange: ge,
67
- pageSizeOptions: V,
68
- screenLabels: H,
69
- selectedStatusCard: Se,
70
- isRecurringTabActive: G === w.Recurring
71
- }), Ae = E(), je = E(), q = E(), Me = E(), J = E(), Ne = E(), Y = (e) => {
72
- ie(e) && (ke(e), _e?.(e));
73
- }, [X, Pe] = D(null), Z = (e, t = !1) => e && ((n) => {
74
- t || (Y(w.Invoices), e(n));
75
- }), Q = {
76
- ...re,
77
- ...we
78
- }, $ = {
79
- ...x,
80
- ...U
62
+ counterpartMessageLabels: w,
63
+ embeddedBankName: j,
64
+ filterLabels: N,
65
+ initialCounterpartId: F,
66
+ initialView: ye,
67
+ messageLabels: Se,
68
+ onReceivableCreated: Ce,
69
+ onReceivableOpened: we,
70
+ onStatusCardChange: I,
71
+ pageSizeOptions: L,
72
+ screenLabels: R,
73
+ selectedStatusCard: Ae,
74
+ isRecurringTabActive: V === C.Recurring
75
+ }), Re = T(), ze = T(), U = T(), Be = T(), Ve = T(), He = T(), W = (e) => {
76
+ ce(e) && (Le(e), Te?.(e));
77
+ }, [G, Ue] = E(null), K = (e, t = !1) => e && ((n) => {
78
+ t || (W(C.Invoices), e(n));
79
+ }), q = {
80
+ ...S,
81
+ ...Me
82
+ }, J = H.details.detailsView?.pdfUrl, Y = H.details.detailsView?.title ?? "", { pdfPagesRegion: X = m.pdfPagesRegion, pdfPreviewFailed: Z = m.pdfPreviewFailed, openPdfButton: Q = m.openPdfButton } = A ?? {}, We = ve(() => J ? s({
83
+ name: Y,
84
+ url: J,
85
+ mimetype: "application/pdf"
86
+ }, {
87
+ previewRegion: X,
88
+ previewUnavailable: Z,
89
+ openFile: Q
90
+ }) : void 0, [
91
+ Q,
92
+ X,
93
+ Z,
94
+ Y,
95
+ J
96
+ ]), $ = {
97
+ ...y,
98
+ ...z
81
99
  };
82
- return /* @__PURE__ */ A(O, { children: [
83
- /* @__PURE__ */ k(n, {}),
84
- /* @__PURE__ */ k(d, {
85
- selectedTabId: G,
86
- onTabChange: Y,
87
- onSettingsClick: K.canEditSettings ? ve : void 0,
88
- settingsContainer: De,
89
- actionContainerRef: Pe,
90
- labels: { settingsButton: Q.settingsButton },
100
+ return /* @__PURE__ */ k(D, { children: [
101
+ /* @__PURE__ */ O(n, {}),
102
+ /* @__PURE__ */ O(f, {
103
+ selectedTabId: V,
104
+ onTabChange: W,
105
+ onSettingsClick: H.canEditSettings ? Ee : void 0,
106
+ settingsContainer: Fe,
107
+ actionContainerRef: Ue,
108
+ labels: { settingsButton: q.settingsButton },
91
109
  tabs: [
92
110
  {
93
- id: w.Invoices,
94
- label: Q.invoicesTab,
95
- content: /* @__PURE__ */ k(b, {
96
- rows: K.table.rows,
97
- isLoading: K.isTableLoading,
98
- isError: K.isError,
99
- isAccessRestricted: K.isAccessRestricted,
100
- sorting: K.table.sorting,
101
- onSortingChange: K.table.onSortingChange,
102
- pageSize: K.table.pageSize,
103
- onPageSizeChange: K.table.onPageSizeChange,
104
- pageSizeOptions: V,
105
- hasNextPage: K.table.hasNextPage,
106
- hasPrevPage: K.table.hasPrevPage,
107
- onNextPage: K.table.onNextPage,
108
- onPrevPage: K.table.onPrevPage,
109
- statusCards: K.table.statusCards,
110
- onStatusCardSelect: K.table.onStatusCardSelect,
111
- filterBar: /* @__PURE__ */ k(l, {
112
- ...K.table.filterBar,
113
- labels: N
111
+ id: C.Invoices,
112
+ label: q.invoicesTab,
113
+ content: /* @__PURE__ */ O(se, {
114
+ rows: H.table.rows,
115
+ isLoading: H.isTableLoading,
116
+ isError: H.isError,
117
+ isAccessRestricted: H.isAccessRestricted,
118
+ sorting: H.table.sorting,
119
+ onSortingChange: H.table.onSortingChange,
120
+ pageSize: H.table.pageSize,
121
+ onPageSizeChange: H.table.onPageSizeChange,
122
+ pageSizeOptions: L,
123
+ hasNextPage: H.table.hasNextPage,
124
+ hasPrevPage: H.table.hasPrevPage,
125
+ onNextPage: H.table.onNextPage,
126
+ onPrevPage: H.table.onPrevPage,
127
+ statusCards: H.table.statusCards,
128
+ onStatusCardSelect: H.table.onStatusCardSelect,
129
+ filterBar: /* @__PURE__ */ O(u, {
130
+ ...H.table.filterBar,
131
+ labels: M
114
132
  }),
115
- isFiltering: K.table.isFiltering,
116
- onCreateClick: K.canWrite ? K.openCreate : void 0,
117
- headerActionContainer: X,
118
- onRowClick: K.handleRowClick,
119
- onRetry: K.onRetry,
120
- labels: H
133
+ isFiltering: H.table.isFiltering,
134
+ onCreateClick: H.canWrite ? H.openCreate : void 0,
135
+ headerActionContainer: G,
136
+ onRowClick: H.handleRowClick,
137
+ onRetry: H.onRetry,
138
+ labels: R
121
139
  })
122
140
  },
123
141
  {
124
- id: w.Recurring,
125
- label: Q.recurringTab,
126
- content: /* @__PURE__ */ k(S, {
127
- rows: K.series.rows,
128
- isLoading: K.isSeriesLoading,
129
- isError: K.isSeriesError,
130
- isAccessRestricted: K.isAccessRestricted,
131
- sorting: K.series.sorting,
132
- onSortingChange: K.series.onSortingChange,
133
- pageSize: K.series.pageSize,
134
- onPageSizeChange: K.series.onPageSizeChange,
135
- pageSizeOptions: V,
136
- hasNextPage: K.series.hasNextPage,
137
- hasPrevPage: K.series.hasPrevPage,
138
- onNextPage: K.series.onNextPage,
139
- onPrevPage: K.series.onPrevPage,
140
- filterBar: /* @__PURE__ */ k(l, {
141
- ...K.series.filterBar,
142
+ id: C.Recurring,
143
+ label: q.recurringTab,
144
+ content: /* @__PURE__ */ O(b, {
145
+ rows: H.series.rows,
146
+ isLoading: H.isSeriesLoading,
147
+ isError: H.isSeriesError,
148
+ isAccessRestricted: H.isAccessRestricted,
149
+ sorting: H.series.sorting,
150
+ onSortingChange: H.series.onSortingChange,
151
+ pageSize: H.series.pageSize,
152
+ onPageSizeChange: H.series.onPageSizeChange,
153
+ pageSizeOptions: L,
154
+ hasNextPage: H.series.hasNextPage,
155
+ hasPrevPage: H.series.hasPrevPage,
156
+ onNextPage: H.series.onNextPage,
157
+ onPrevPage: H.series.onPrevPage,
158
+ filterBar: /* @__PURE__ */ O(u, {
159
+ ...H.series.filterBar,
142
160
  labels: {
143
- ...N,
161
+ ...M,
144
162
  searchPlaceholder: $.searchPlaceholder,
145
163
  searchLabel: $.searchLabel
146
164
  }
147
165
  }),
148
- isFiltering: K.series.isFiltering,
149
- onClearFilters: K.series.filterBar.onClearAll,
150
- onCreateClick: K.canWrite ? K.openCreateRecurring : void 0,
151
- headerActionContainer: X,
152
- onRowClick: K.handleSeriesRowClick,
153
- onRetry: K.onSeriesRetry,
154
- labels: U
166
+ isFiltering: H.series.isFiltering,
167
+ onClearFilters: H.series.filterBar.onClearAll,
168
+ onCreateClick: H.canWrite ? H.openCreateRecurring : void 0,
169
+ headerActionContainer: G,
170
+ onRowClick: H.handleSeriesRowClick,
171
+ onRetry: H.onSeriesRetry,
172
+ labels: z
155
173
  })
156
174
  },
157
175
  {
158
- id: w.Customers,
159
- label: Q.customersTab,
160
- content: /* @__PURE__ */ k(s, {
176
+ id: C.Customers,
177
+ label: q.customersTab,
178
+ content: /* @__PURE__ */ O(c, {
161
179
  counterpartType: "customer",
162
180
  passThrough: !0,
163
- headerActionContainer: X,
164
- onViewAllDocuments: Z(K.customersTabActions.onViewAllDocuments),
165
- onCreateDocument: Z(K.customersTabActions.onCreateDocument, K.actionsSuspended)
181
+ headerActionContainer: G,
182
+ onViewAllDocuments: K(H.customersTabActions.onViewAllDocuments),
183
+ onCreateDocument: K(H.customersTabActions.onCreateDocument, H.actionsSuspended)
166
184
  })
167
185
  },
168
186
  {
169
- id: w.Products,
170
- label: Q.productsTab,
171
- content: /* @__PURE__ */ k(fe, { headerActionContainer: X })
187
+ id: C.Products,
188
+ label: q.productsTab,
189
+ content: /* @__PURE__ */ O(ge, { headerActionContainer: G })
172
190
  }
173
191
  ]
174
192
  }),
175
- /* @__PURE__ */ k(_, {
176
- open: K.form.open,
177
- onRequestClose: K.form.requestClose,
178
- mode: K.form.dialogMode,
179
- values: K.form.sheetValues,
180
- errors: K.form.errors,
181
- unitOptions: K.form.lineItemUnitOptions,
182
- currencySymbol: K.form.currencySymbol,
183
- lineItemControls: K.form.lineItemControls,
184
- autoFocusLineItemId: K.form.autoFocusLineItemId,
185
- lineItemsLoading: K.form.lineItemsLoading,
186
- inProgress: K.form.fieldsDisabled || K.actionsSuspended,
187
- customerSection: /* @__PURE__ */ k(ce, {
188
- idPrefix: je,
189
- customerId: K.form.values.customerId,
190
- customer: K.form.customer,
191
- customerName: K.form.values.customerName,
192
- customerEmail: K.form.values.customerEmail,
193
- customerError: K.form.errors.customerId,
194
- customerEmailError: K.form.errors.customerEmail,
195
- canCreate: K.canCreateCustomer,
196
- messages: K.messages,
197
- disabled: K.form.fieldsDisabled,
198
- onCustomerSelect: (e) => K.form.updateValues({ customerId: e }),
199
- onCustomerNameChange: (e) => K.form.updateValues({ customerName: e }),
200
- onCustomerEmailChange: (e) => K.form.updateValues({ customerEmail: e }),
201
- onCustomerEmailBlur: K.form.commitCustomerEmail,
202
- onAddDetailsClick: K.form.openCounterpartCreate,
203
- onViewDetailsClick: K.openCustomerDetails ? () => K.openCustomerDetails?.(K.form.values.customerId) : void 0,
204
- onClearClick: () => K.form.updateValues({
193
+ /* @__PURE__ */ O(ne, {
194
+ open: H.form.open,
195
+ onRequestClose: H.form.requestClose,
196
+ mode: H.form.dialogMode,
197
+ values: H.form.sheetValues,
198
+ errors: H.form.errors,
199
+ unitOptions: H.form.lineItemUnitOptions,
200
+ currencySymbol: H.form.currencySymbol,
201
+ lineItemControls: H.form.lineItemControls,
202
+ autoFocusLineItemId: H.form.autoFocusLineItemId,
203
+ lineItemsLoading: H.form.lineItemsLoading,
204
+ inProgress: H.form.fieldsDisabled || H.actionsSuspended,
205
+ customerSection: /* @__PURE__ */ O(fe, {
206
+ idPrefix: ze,
207
+ customerId: H.form.values.customerId,
208
+ customer: H.form.customer,
209
+ customerName: H.form.values.customerName,
210
+ customerEmail: H.form.values.customerEmail,
211
+ customerError: H.form.errors.customerId,
212
+ customerEmailError: H.form.errors.customerEmail,
213
+ canCreate: H.canCreateCustomer,
214
+ messages: H.messages,
215
+ disabled: H.form.fieldsDisabled,
216
+ onCustomerSelect: (e) => H.form.updateValues({ customerId: e }),
217
+ onCustomerNameChange: (e) => H.form.updateValues({ customerName: e }),
218
+ onCustomerEmailChange: (e) => H.form.updateValues({ customerEmail: e }),
219
+ onCustomerEmailBlur: H.form.commitCustomerEmail,
220
+ onAddDetailsClick: H.form.openCounterpartCreate,
221
+ onViewDetailsClick: H.openCustomerDetails ? () => H.openCustomerDetails?.(H.form.values.customerId) : void 0,
222
+ onClearClick: () => H.form.updateValues({
205
223
  customerId: "",
206
224
  customerName: "",
207
225
  customerEmail: ""
208
226
  }),
209
- labels: F
227
+ labels: P
210
228
  }),
211
- renderProductSelector: (e, t) => /* @__PURE__ */ k(ue, {
229
+ renderProductSelector: (e, t) => /* @__PURE__ */ O(me, {
212
230
  ...t,
213
231
  inputValue: e.name,
214
- selectedProductId: K.form.values.lineItems.find((t) => t.id === e.id)?.productId || void 0,
215
- currency: K.form.values.currency,
232
+ selectedProductId: H.form.values.lineItems.find((t) => t.id === e.id)?.productId || void 0,
233
+ currency: H.form.values.currency,
216
234
  maxLength: 100,
217
- onInputValueChange: (t) => K.form.updateLineItem(e.id, { name: t }),
218
- onProductSelect: (t) => K.form.selectProduct(e.id, t)
235
+ onInputValueChange: (t) => H.form.updateLineItem(e.id, { name: t }),
236
+ onProductSelect: (t) => H.form.selectProduct(e.id, t)
219
237
  }),
220
- onChange: K.form.updateValues,
221
- onLineItemChange: K.form.updateLineItem,
222
- onLineItemCommit: K.form.commitLineItem,
223
- onLineItemQuantityStep: K.form.stepLineItem,
224
- onTaxRateCommit: K.form.commitTaxRate,
225
- onDiscountFocus: K.form.focusDiscount,
226
- onDiscountCommit: K.form.commitDiscount,
227
- totals: K.form.totalsView,
228
- onManageUnits: K.openMeasureUnits,
229
- onAddLineItem: K.form.addLineItem,
230
- onRemoveLineItem: K.form.removeLineItem,
231
- showDueDateField: K.form.showDueDateField,
232
- billingSection: K.form.showBillingSection && /* @__PURE__ */ k(h, {
233
- idPrefix: Ae,
234
- paymentTerms: K.form.paymentTerms.view,
235
- paymentTermsError: K.form.errors.paymentTermsId,
236
- disabled: K.form.fieldsDisabled,
237
- onPaymentTermsChange: K.form.paymentTerms.select,
238
- onCustomDatePickerOpenChange: K.form.paymentTerms.changeCustomDatePickerOpen,
239
- purchaseOrder: K.form.purchaseOrder,
240
- onPurchaseOrderChange: (e) => K.form.updateValues({ purchaseOrder: e }),
241
- customDateCalendar: /* @__PURE__ */ k(e, {
238
+ onChange: H.form.updateValues,
239
+ onLineItemChange: H.form.updateLineItem,
240
+ onLineItemCommit: H.form.commitLineItem,
241
+ onLineItemQuantityStep: H.form.stepLineItem,
242
+ onTaxRateCommit: H.form.commitTaxRate,
243
+ onDiscountFocus: H.form.focusDiscount,
244
+ onDiscountCommit: H.form.commitDiscount,
245
+ totals: H.form.totalsView,
246
+ onManageUnits: H.openMeasureUnits,
247
+ onAddLineItem: H.form.addLineItem,
248
+ onRemoveLineItem: H.form.removeLineItem,
249
+ showDueDateField: H.form.showDueDateField,
250
+ billingSection: H.form.showBillingSection && /* @__PURE__ */ O(_, {
251
+ idPrefix: Re,
252
+ paymentTerms: H.form.paymentTerms.view,
253
+ paymentTermsError: H.form.errors.paymentTermsId,
254
+ disabled: H.form.fieldsDisabled,
255
+ onPaymentTermsChange: H.form.paymentTerms.select,
256
+ onCustomDatePickerOpenChange: H.form.paymentTerms.changeCustomDatePickerOpen,
257
+ purchaseOrder: H.form.purchaseOrder,
258
+ onPurchaseOrderChange: (e) => H.form.updateValues({ purchaseOrder: e }),
259
+ customDateCalendar: /* @__PURE__ */ O(e, {
242
260
  mode: "single",
243
261
  captionLayout: "dropdown",
244
- ...K.form.paymentTerms.calendar,
245
- onSelect: K.form.paymentTerms.selectCustomDate
262
+ ...H.form.paymentTerms.calendar,
263
+ onSelect: H.form.paymentTerms.selectCustomDate
246
264
  }),
247
- recurrenceSection: K.form.showRecurrenceSection && (K.form.recurrenceLoading ? /* @__PURE__ */ k(t, { className: "ttw:h-9 ttw:w-full" }) : /* @__PURE__ */ k(v, {
248
- idPrefix: q,
249
- view: K.form.recurrence.view,
250
- disabled: K.form.fieldsDisabled,
251
- onFrequencyChange: K.form.recurrence.changeFrequency,
252
- onMonthDayChange: K.form.recurrence.changeMonthDay,
253
- onWeekdayChange: K.form.recurrence.changeWeekday,
254
- onStartDateChange: K.form.recurrence.changeStartDate,
255
- onEndModeChange: K.form.recurrence.changeEndMode,
256
- onEndDateChange: K.form.recurrence.changeEndDate,
257
- onMaxOccurrencesChange: K.form.recurrence.changeMaxOccurrences,
258
- onCreationModeChange: K.form.recurrence.changeCreationMode,
259
- onSetUpEmailClick: K.form.recurrence.setUpEmail,
260
- emailDialog: /* @__PURE__ */ k(ne, {
261
- idPrefix: q,
262
- view: K.form.recurrence.emailView,
263
- onOpenChange: K.form.recurrence.changeEmailOpen,
264
- onChange: K.form.recurrence.changeEmail,
265
- onSave: K.form.recurrence.saveEmail,
266
- labels: F
265
+ recurrenceSection: H.form.showRecurrenceSection && (H.form.recurrenceLoading ? /* @__PURE__ */ O(t, { className: "ttw:h-9 ttw:w-full" }) : /* @__PURE__ */ O(ae, {
266
+ idPrefix: U,
267
+ view: H.form.recurrence.view,
268
+ disabled: H.form.fieldsDisabled,
269
+ onFrequencyChange: H.form.recurrence.changeFrequency,
270
+ onMonthDayChange: H.form.recurrence.changeMonthDay,
271
+ onWeekdayChange: H.form.recurrence.changeWeekday,
272
+ onStartDateChange: H.form.recurrence.changeStartDate,
273
+ onEndModeChange: H.form.recurrence.changeEndMode,
274
+ onEndDateChange: H.form.recurrence.changeEndDate,
275
+ onMaxOccurrencesChange: H.form.recurrence.changeMaxOccurrences,
276
+ onCreationModeChange: H.form.recurrence.changeCreationMode,
277
+ onSetUpEmailClick: H.form.recurrence.setUpEmail,
278
+ emailDialog: /* @__PURE__ */ O(v, {
279
+ idPrefix: U,
280
+ view: H.form.recurrence.emailView,
281
+ onOpenChange: H.form.recurrence.changeEmailOpen,
282
+ onChange: H.form.recurrence.changeEmail,
283
+ onSave: H.form.recurrence.saveEmail,
284
+ labels: P
267
285
  }),
268
- labels: F
286
+ labels: P
269
287
  })),
270
- remindersSection: K.form.reminders.view && /* @__PURE__ */ k(y, {
271
- idPrefix: J,
272
- view: K.form.reminders.view,
273
- onToggle: K.form.reminders.toggle,
274
- onPaymentReminderSelect: K.form.reminders.selectPaymentReminder,
275
- onOverdueReminderSelect: K.form.reminders.selectOverdueReminder,
276
- onBeforeDueInputChange: K.form.reminders.changeBeforeDueInput,
277
- onBeforeDueSave: K.form.reminders.saveBeforeDue,
278
- onOverdueTermChange: K.form.reminders.changeOverdueTerm,
279
- onOverdueAddTerm: K.form.reminders.addOverdueTerm,
280
- onOverdueClear: K.form.reminders.clearOverdueTerms,
281
- onOverdueSave: K.form.reminders.saveOverdue,
282
- labels: F
288
+ remindersSection: H.form.reminders.view && /* @__PURE__ */ O(oe, {
289
+ idPrefix: Ve,
290
+ view: H.form.reminders.view,
291
+ onToggle: H.form.reminders.toggle,
292
+ onPaymentReminderSelect: H.form.reminders.selectPaymentReminder,
293
+ onOverdueReminderSelect: H.form.reminders.selectOverdueReminder,
294
+ onBeforeDueInputChange: H.form.reminders.changeBeforeDueInput,
295
+ onBeforeDueSave: H.form.reminders.saveBeforeDue,
296
+ onOverdueTermChange: H.form.reminders.changeOverdueTerm,
297
+ onOverdueAddTerm: H.form.reminders.addOverdueTerm,
298
+ onOverdueClear: H.form.reminders.clearOverdueTerms,
299
+ onOverdueSave: H.form.reminders.saveOverdue,
300
+ labels: P
283
301
  }),
284
- labels: F
302
+ labels: P
285
303
  }),
286
- bankAccountSection: /* @__PURE__ */ k(m, {
287
- idPrefix: Me,
288
- view: K.form.bankAccount.view,
289
- error: K.form.errors.bankAccountId,
290
- disabled: K.form.fieldsDisabled,
291
- onAccountSelect: K.form.bankAccount.selectAccount,
292
- onAddAccountClick: K.form.bankAccount.openAddAccount,
293
- onFormChange: K.form.bankAccount.updateAccountForm,
294
- onFormSave: K.form.bankAccount.saveAccount,
295
- onFormCancel: K.form.bankAccount.cancelAddAccount,
296
- labels: F
304
+ bankAccountSection: /* @__PURE__ */ O(g, {
305
+ idPrefix: Be,
306
+ view: H.form.bankAccount.view,
307
+ error: H.form.errors.bankAccountId,
308
+ disabled: H.form.fieldsDisabled,
309
+ onAccountSelect: H.form.bankAccount.selectAccount,
310
+ onAddAccountClick: H.form.bankAccount.openAddAccount,
311
+ onFormChange: H.form.bankAccount.updateAccountForm,
312
+ onFormSave: H.form.bankAccount.saveAccount,
313
+ onFormCancel: H.form.bankAccount.cancelAddAccount,
314
+ labels: P
297
315
  }),
298
- attachmentsSection: K.form.attachmentsView && /* @__PURE__ */ k(se, {
299
- view: K.form.attachmentsView,
300
- disabled: K.form.fieldsDisabled,
301
- onFilesSelect: K.form.selectAttachmentFiles,
302
- onIncludeInEmailChange: K.form.setAttachmentIncludeInEmail,
303
- onRemove: K.form.removeAttachment,
304
- labels: F
316
+ attachmentsSection: H.form.attachmentsView && /* @__PURE__ */ O(de, {
317
+ view: H.form.attachmentsView,
318
+ disabled: H.form.fieldsDisabled,
319
+ onFilesSelect: H.form.selectAttachmentFiles,
320
+ onIncludeInEmailChange: H.form.setAttachmentIncludeInEmail,
321
+ onRemove: H.form.removeAttachment,
322
+ labels: P
305
323
  }),
306
- preview: /* @__PURE__ */ k(te, {
307
- view: K.form.preview,
308
- labels: be
324
+ preview: /* @__PURE__ */ O(ie, {
325
+ view: H.form.preview,
326
+ labels: Oe
309
327
  }),
310
- closeDisabled: K.form.isSubmitting,
311
- cancelDisabled: K.form.isSubmitting || K.form.attachmentsUploading,
312
- draftButtonLabel: K.form.draftButtonLabel,
313
- draftDisabled: K.form.draftDisabled,
314
- draftLoading: K.form.draftLoading,
315
- primaryButtonLabel: K.form.primaryButtonLabel,
316
- primaryDisabled: K.form.primaryDisabled,
317
- primaryLoading: K.form.primaryLoading,
318
- scrollContainerRef: K.form.scrollContainerRef,
319
- onSubmit: K.form.submit,
320
- onDraftClick: K.form.selectDraftMode,
321
- onPrimaryClick: K.form.selectPrimaryMode,
322
- labels: F
328
+ closeDisabled: H.form.isSubmitting,
329
+ cancelDisabled: H.form.isSubmitting || H.form.attachmentsUploading,
330
+ draftButtonLabel: H.form.draftButtonLabel,
331
+ draftDisabled: H.form.draftDisabled,
332
+ draftLoading: H.form.draftLoading,
333
+ primaryButtonLabel: H.form.primaryButtonLabel,
334
+ primaryDisabled: H.form.primaryDisabled,
335
+ primaryLoading: H.form.primaryLoading,
336
+ scrollContainerRef: H.form.scrollContainerRef,
337
+ onSubmit: H.form.submit,
338
+ onDraftClick: H.form.selectDraftMode,
339
+ onPrimaryClick: H.form.selectPrimaryMode,
340
+ onDuplicateClick: H.draftMenu?.onClone,
341
+ onDeleteClick: H.draftMenu?.onDelete,
342
+ draftMenuDisabled: H.draftMenu?.disabled,
343
+ labels: P
323
344
  }),
324
- /* @__PURE__ */ k(C, {
325
- ...K.form.unsavedPrompt,
326
- labels: F
345
+ /* @__PURE__ */ O(x, {
346
+ ...H.form.unsavedPrompt,
347
+ labels: P
327
348
  }),
328
- /* @__PURE__ */ k(g, {
329
- open: K.detailsOpen,
330
- onOpenChange: (e) => {
331
- e || K.closeDetails();
332
- },
333
- details: K.details.detailsView,
334
- message: K.details.messageView,
335
- isLoading: K.details.isLoading,
336
- onActionClick: K.handleDetailsActionClick,
337
- openSections: K.details.openSections,
338
- onOpenSectionsChange: K.details.setOpenSections,
339
- disabledActions: K.actions.pendingActions,
340
- labels: j
341
- }, K.detailsPanelKey),
342
- /* @__PURE__ */ k(c, {
343
- counterpartId: K.customerDetailsId,
349
+ /* @__PURE__ */ O(te, {
350
+ open: H.detailsScreenOpen,
351
+ onOpenChange: H.onDetailsOpenChange,
352
+ details: H.details.detailsView,
353
+ message: H.details.messageView,
354
+ isLoading: H.details.isLoading,
355
+ onActionClick: H.handleDetailsActionClick,
356
+ disabledActions: H.actions.pendingActions,
357
+ documentPreview: We,
358
+ onCollapse: H.collapseDetails,
359
+ labels: A
360
+ }, `screen-${H.detailsPanelKey}`),
361
+ /* @__PURE__ */ O(ee, {
362
+ open: H.detailsSheetOpen,
363
+ onOpenChange: H.onDetailsOpenChange,
364
+ details: H.details.detailsView,
365
+ message: H.details.messageView,
366
+ isLoading: H.details.isLoading,
367
+ onActionClick: H.handleDetailsActionClick,
368
+ openSections: H.details.openSections,
369
+ onOpenSectionsChange: H.details.setOpenSections,
370
+ disabledActions: H.actions.pendingActions,
371
+ onExpand: H.expandDetails,
372
+ labels: A
373
+ }, H.detailsPanelKey),
374
+ /* @__PURE__ */ O(l, {
375
+ counterpartId: H.customerDetailsId,
344
376
  counterpartType: "customer",
345
- onClose: K.closeCustomerDetails,
346
- formLabels: u,
347
- messageLabels: T,
348
- ...K.customerDetailsActions
377
+ onClose: H.closeCustomerDetails,
378
+ formLabels: d,
379
+ messageLabels: w,
380
+ ...H.customerDetailsActions
349
381
  }),
350
- /* @__PURE__ */ k(ee, {
351
- open: K.actions.payment.isOpen,
382
+ /* @__PURE__ */ O(re, {
383
+ open: H.actions.payment.isOpen,
352
384
  onOpenChange: (e) => {
353
- e || K.actions.payment.close();
385
+ e || H.actions.payment.close();
354
386
  },
355
- step: K.actions.payment.step,
356
- values: K.actions.payment.values,
357
- errors: K.actions.payment.errors,
358
- currencySymbol: K.actions.payment.currencySymbol,
359
- amountDueLabel: K.actions.payment.amountDueLabel,
360
- review: K.actions.payment.review,
361
- inProgress: K.actions.payment.inProgress || K.actionsSuspended,
362
- onChange: K.actions.payment.change,
363
- onFillAmountDue: K.actions.payment.fillAmountDue,
364
- onSave: K.actions.payment.save,
365
- onEdit: K.actions.payment.edit,
366
- onConfirm: K.actions.payment.confirm,
367
- onCancel: K.actions.payment.close,
368
- labels: ye
387
+ step: H.actions.payment.step,
388
+ values: H.actions.payment.values,
389
+ errors: H.actions.payment.errors,
390
+ currencySymbol: H.actions.payment.currencySymbol,
391
+ amountDueLabel: H.actions.payment.amountDueLabel,
392
+ review: H.actions.payment.review,
393
+ inProgress: H.actions.payment.inProgress || H.actionsSuspended,
394
+ onChange: H.actions.payment.change,
395
+ onFillAmountDue: H.actions.payment.fillAmountDue,
396
+ onSave: H.actions.payment.save,
397
+ onEdit: H.actions.payment.edit,
398
+ onConfirm: H.actions.payment.confirm,
399
+ onCancel: H.actions.payment.close,
400
+ labels: De
369
401
  }),
370
- K.actions.actionDialog && /* @__PURE__ */ k(p, {
371
- open: !!K.actions.actionTarget,
402
+ H.actions.actionDialog && /* @__PURE__ */ O(h, {
403
+ open: !!H.actions.actionTarget,
372
404
  onOpenChange: (e) => {
373
- e || K.actions.closeAction();
405
+ e || H.actions.closeAction();
374
406
  },
375
- title: K.actions.actionDialog.title,
376
- description: K.actions.actionDialog.description,
377
- confirmLabel: K.actions.actionDialog.confirmLabel,
378
- cancelLabel: K.actions.actionDialog.cancelLabel,
379
- destructive: K.actions.actionDialog.destructive,
380
- inProgress: K.actions.actionInProgress || K.actionsSuspended,
381
- comment: K.actions.actionComment,
382
- onCommentChange: K.actions.setActionComment,
383
- onConfirm: K.actions.confirmAction,
384
- onCancel: K.actions.closeAction,
385
- labels: Te
407
+ title: H.actions.actionDialog.title,
408
+ description: H.actions.actionDialog.description,
409
+ confirmLabel: H.actions.actionDialog.confirmLabel,
410
+ cancelLabel: H.actions.actionDialog.cancelLabel,
411
+ destructive: H.actions.actionDialog.destructive,
412
+ inProgress: H.actions.actionInProgress || H.actionsSuspended,
413
+ comment: H.actions.actionComment,
414
+ onCommentChange: H.actions.setActionComment,
415
+ onConfirm: H.actions.confirmAction,
416
+ onCancel: H.actions.closeAction,
417
+ labels: Ne
386
418
  }),
387
- /* @__PURE__ */ k(f, {
388
- idPrefix: Ne,
389
- open: K.actionsModal.isOpen,
390
- view: K.actionsModal.view,
391
- onSkip: K.actionsModal.skip,
392
- onSubjectChange: K.actionsModal.changeSubject,
393
- onMessageChange: K.actionsModal.changeMessage,
394
- onSend: K.actionsModal.send,
395
- onToggleItem: K.actionsModal.toggleItem,
396
- onToggleAll: K.actionsModal.toggleAll,
397
- onAllSelectedChange: K.actionsModal.setAllSelected,
398
- onSaveItems: K.actionsModal.saveItems,
399
- labels: Ee
419
+ /* @__PURE__ */ O(p, {
420
+ idPrefix: He,
421
+ open: H.actionsModal.isOpen,
422
+ view: H.actionsModal.view,
423
+ onSkip: H.actionsModal.skip,
424
+ onSubjectChange: H.actionsModal.changeSubject,
425
+ onMessageChange: H.actionsModal.changeMessage,
426
+ onSend: H.actionsModal.send,
427
+ onToggleItem: H.actionsModal.toggleItem,
428
+ onToggleAll: H.actionsModal.toggleAll,
429
+ onAllSelectedChange: H.actionsModal.setAllSelected,
430
+ onSaveItems: H.actionsModal.saveItems,
431
+ labels: Pe
400
432
  }),
401
- /* @__PURE__ */ k(a, {
402
- open: K.form.counterpartView === "create",
433
+ /* @__PURE__ */ O(a, {
434
+ open: H.form.counterpartView === "create",
403
435
  onOpenChange: (e) => {
404
- e || K.form.counterpartForm.close();
436
+ e || H.form.counterpartForm.close();
405
437
  },
406
438
  mode: "create",
407
- values: K.form.counterpartForm.values,
408
- errors: K.form.counterpartForm.errors,
409
- stateOptions: K.form.stateOptions,
410
- taxIdField: o(K.form.counterpartForm.values.entityType, "customer", u),
411
- inProgress: K.form.counterpartForm.isSubmitting || K.actionsSuspended,
412
- onChange: (e) => K.form.counterpartForm.setValues((t) => ({
439
+ values: H.form.counterpartForm.values,
440
+ errors: H.form.counterpartForm.errors,
441
+ stateOptions: H.form.stateOptions,
442
+ taxIdField: o(H.form.counterpartForm.values.entityType, "customer", d),
443
+ inProgress: H.form.counterpartForm.isSubmitting || H.actionsSuspended,
444
+ onChange: (e) => H.form.counterpartForm.setValues((t) => ({
413
445
  ...t,
414
446
  ...e
415
447
  })),
416
- onAddressChange: (e) => K.form.counterpartForm.setValues((t) => ({
448
+ onAddressChange: (e) => H.form.counterpartForm.setValues((t) => ({
417
449
  ...t,
418
450
  address: {
419
451
  ...t.address,
420
452
  ...e
421
453
  }
422
454
  })),
423
- onSubmit: K.form.counterpartForm.submit,
424
- onCancel: K.form.counterpartForm.close,
425
- labels: u
455
+ onSubmit: H.form.counterpartForm.submit,
456
+ onCancel: H.form.counterpartForm.close,
457
+ labels: d
426
458
  }),
427
- /* @__PURE__ */ k(le, {
428
- open: K.measureUnitsOpen,
429
- onClose: K.closeMeasureUnits,
430
- suspended: K.actionsSuspended,
431
- managerLabels: z,
432
- deleteLabels: R,
433
- messageLabels: xe
459
+ /* @__PURE__ */ O(pe, {
460
+ open: H.measureUnitsOpen,
461
+ onClose: H.closeMeasureUnits,
462
+ suspended: H.actionsSuspended,
463
+ managerLabels: xe,
464
+ deleteLabels: be,
465
+ messageLabels: ke
434
466
  })
435
467
  ] });
436
468
  }
437
- function M({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gatewayRouting: a, linkComponent: o, uiFramework: s, errorFallback: c, onError: l, analytics: d, disclosuresAcceptance: f, providerLabels: p, headerStart: m, ...h }) {
438
- let [g, _] = D(null);
439
- return /* @__PURE__ */ k(i, {
440
- header: m || h.onTemplateSettingsClick ? /* @__PURE__ */ k(u, {
469
+ function j({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gatewayRouting: a, linkComponent: o, uiFramework: s, errorFallback: c, onError: l, analytics: u, disclosuresAcceptance: f, providerLabels: p, headerStart: m, ...h }) {
470
+ let [g, _] = E(null);
471
+ return /* @__PURE__ */ O(i, {
472
+ header: m || h.onTemplateSettingsClick ? /* @__PURE__ */ O(d, {
441
473
  headerStart: m,
442
474
  settingsContainerRef: _
443
475
  }) : null,
444
- widgetName: T,
476
+ widgetName: w,
445
477
  baseUrl: e,
446
478
  widgetToken: t,
447
479
  organizationId: n,
@@ -451,13 +483,13 @@ function M({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gat
451
483
  uiFramework: s,
452
484
  errorFallback: c,
453
485
  onError: l,
454
- analytics: d,
486
+ analytics: u,
455
487
  disclosuresAcceptance: f,
456
488
  providerLabels: p,
457
- children: /* @__PURE__ */ k(j, {
489
+ children: /* @__PURE__ */ O(A, {
458
490
  ...h,
459
491
  settingsContainer: g
460
492
  })
461
493
  });
462
494
  }
463
- export { w as InvoicingTab, M as ReceivablesWidget, M as default };
495
+ export { C as InvoicingTab, j as ReceivablesWidget, j as default };