@tesouro/embedded-components-react 0.11.235 → 0.11.236
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.
- package/README.md +2 -2
- package/dist/index.css +12 -0
- package/dist/index.d.ts +24 -0
- package/dist/lib/ReceivablesWidget.d.ts +24 -0
- package/dist/lib/WidgetSuite.d.ts +24 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index31.js +198 -118
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index32.js +76 -194
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index33.js +67 -75
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index34.js +111 -69
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index35.js +459 -108
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index36.js +101 -449
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index37.js +9 -117
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index38.js +85 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index39.js +67 -73
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index40.js +246 -71
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index41.js +40 -251
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index42.js +237 -38
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index43.js +21 -244
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index44.js +529 -21
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index45.js +4 -530
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index46.js +44 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index47.js +242 -41
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index48.js +3 -245
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index49.js +5 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index50.js +63 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index51.js +1 -64
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget/BillsTab.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivablesWidget.js +386 -354
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/labels.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableActions.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableDetails.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableForm.js +260 -258
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablesWidget.js +219 -179
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index.js +26 -25
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index19.js +15 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index32.js +31 -40
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index33.js +18 -17
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index34.js +40 -8
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index35.js +30 -63
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index36.js +463 -27
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index37.js +15 -29
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index38.js +8 -18
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index39.js +18 -18
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index40.js +19 -30
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index41.js +15 -66
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index42.js +66 -391
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index43.js +148 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index44.js +173 -43
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index45.js +3 -71
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index46.js +37 -432
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index47.js +66 -188
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index48.js +455 -22
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index49.js +191 -5
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index50.js +23 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index51.js +5 -265
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index53.js +261 -125
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index54.js +2 -27
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index55.js +122 -230
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index56.js +27 -3
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index57.js +216 -224
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index58.js +3 -30
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index59.js +228 -168
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index60.js +29 -21
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index61.js +152 -109
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index62.js +22 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index63.js +140 -43
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index64.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index65.js +47 -0
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/document-preview.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/document/documentPreview.js +122 -0
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index52.js +0 -1
- 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 {
|
|
15
|
-
import
|
|
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
|
|
18
|
-
import { InvoicingHeader as
|
|
19
|
-
import { ReceivableActionsModal as
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
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
|
|
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
|
|
41
|
+
import { PAGE_SIZE_OPTIONS as le } from "./constants.js";
|
|
38
42
|
import "./statusCards.js";
|
|
39
|
-
import { ReceivablesWidgetAnalyticsEvent as
|
|
40
|
-
import { ReceivableAttachmentsSection as
|
|
41
|
-
import { ReceivableCustomerSection as
|
|
42
|
-
import { MeasureUnitsManagerContainer as
|
|
43
|
-
import { ProductSelector as
|
|
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
|
|
46
|
-
import { ProductsWidget as
|
|
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
|
|
49
|
-
import { Fragment as
|
|
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
|
|
52
|
-
let
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
}, [
|
|
56
|
-
let [
|
|
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:
|
|
59
|
-
embeddedBankName:
|
|
60
|
-
filterLabels:
|
|
61
|
-
initialCounterpartId:
|
|
62
|
-
initialView:
|
|
63
|
-
messageLabels:
|
|
64
|
-
onReceivableCreated:
|
|
65
|
-
onReceivableOpened:
|
|
66
|
-
onStatusCardChange:
|
|
67
|
-
pageSizeOptions:
|
|
68
|
-
screenLabels:
|
|
69
|
-
selectedStatusCard:
|
|
70
|
-
isRecurringTabActive:
|
|
71
|
-
}),
|
|
72
|
-
|
|
73
|
-
}, [
|
|
74
|
-
t || (
|
|
75
|
-
}),
|
|
76
|
-
...
|
|
77
|
-
...
|
|
78
|
-
},
|
|
79
|
-
|
|
80
|
-
|
|
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__ */
|
|
83
|
-
/* @__PURE__ */
|
|
84
|
-
/* @__PURE__ */
|
|
85
|
-
selectedTabId:
|
|
86
|
-
onTabChange:
|
|
87
|
-
onSettingsClick:
|
|
88
|
-
settingsContainer:
|
|
89
|
-
actionContainerRef:
|
|
90
|
-
labels: { 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:
|
|
94
|
-
label:
|
|
95
|
-
content: /* @__PURE__ */
|
|
96
|
-
rows:
|
|
97
|
-
isLoading:
|
|
98
|
-
isError:
|
|
99
|
-
isAccessRestricted:
|
|
100
|
-
sorting:
|
|
101
|
-
onSortingChange:
|
|
102
|
-
pageSize:
|
|
103
|
-
onPageSizeChange:
|
|
104
|
-
pageSizeOptions:
|
|
105
|
-
hasNextPage:
|
|
106
|
-
hasPrevPage:
|
|
107
|
-
onNextPage:
|
|
108
|
-
onPrevPage:
|
|
109
|
-
statusCards:
|
|
110
|
-
onStatusCardSelect:
|
|
111
|
-
filterBar: /* @__PURE__ */
|
|
112
|
-
...
|
|
113
|
-
labels:
|
|
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:
|
|
116
|
-
onCreateClick:
|
|
117
|
-
headerActionContainer:
|
|
118
|
-
onRowClick:
|
|
119
|
-
onRetry:
|
|
120
|
-
labels:
|
|
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:
|
|
125
|
-
label:
|
|
126
|
-
content: /* @__PURE__ */
|
|
127
|
-
rows:
|
|
128
|
-
isLoading:
|
|
129
|
-
isError:
|
|
130
|
-
isAccessRestricted:
|
|
131
|
-
sorting:
|
|
132
|
-
onSortingChange:
|
|
133
|
-
pageSize:
|
|
134
|
-
onPageSizeChange:
|
|
135
|
-
pageSizeOptions:
|
|
136
|
-
hasNextPage:
|
|
137
|
-
hasPrevPage:
|
|
138
|
-
onNextPage:
|
|
139
|
-
onPrevPage:
|
|
140
|
-
filterBar: /* @__PURE__ */
|
|
141
|
-
...
|
|
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
|
-
...
|
|
161
|
+
...M,
|
|
144
162
|
searchPlaceholder: $.searchPlaceholder,
|
|
145
163
|
searchLabel: $.searchLabel
|
|
146
164
|
}
|
|
147
165
|
}),
|
|
148
|
-
isFiltering:
|
|
149
|
-
onClearFilters:
|
|
150
|
-
onCreateClick:
|
|
151
|
-
headerActionContainer:
|
|
152
|
-
onRowClick:
|
|
153
|
-
onRetry:
|
|
154
|
-
labels:
|
|
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:
|
|
159
|
-
label:
|
|
160
|
-
content: /* @__PURE__ */
|
|
176
|
+
id: C.Customers,
|
|
177
|
+
label: q.customersTab,
|
|
178
|
+
content: /* @__PURE__ */ O(c, {
|
|
161
179
|
counterpartType: "customer",
|
|
162
180
|
passThrough: !0,
|
|
163
|
-
headerActionContainer:
|
|
164
|
-
onViewAllDocuments:
|
|
165
|
-
onCreateDocument:
|
|
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:
|
|
170
|
-
label:
|
|
171
|
-
content: /* @__PURE__ */
|
|
187
|
+
id: C.Products,
|
|
188
|
+
label: q.productsTab,
|
|
189
|
+
content: /* @__PURE__ */ O(ge, { headerActionContainer: G })
|
|
172
190
|
}
|
|
173
191
|
]
|
|
174
192
|
}),
|
|
175
|
-
/* @__PURE__ */
|
|
176
|
-
open:
|
|
177
|
-
onRequestClose:
|
|
178
|
-
mode:
|
|
179
|
-
values:
|
|
180
|
-
errors:
|
|
181
|
-
unitOptions:
|
|
182
|
-
currencySymbol:
|
|
183
|
-
lineItemControls:
|
|
184
|
-
autoFocusLineItemId:
|
|
185
|
-
lineItemsLoading:
|
|
186
|
-
inProgress:
|
|
187
|
-
customerSection: /* @__PURE__ */
|
|
188
|
-
idPrefix:
|
|
189
|
-
customerId:
|
|
190
|
-
customer:
|
|
191
|
-
customerName:
|
|
192
|
-
customerEmail:
|
|
193
|
-
customerError:
|
|
194
|
-
customerEmailError:
|
|
195
|
-
canCreate:
|
|
196
|
-
messages:
|
|
197
|
-
disabled:
|
|
198
|
-
onCustomerSelect: (e) =>
|
|
199
|
-
onCustomerNameChange: (e) =>
|
|
200
|
-
onCustomerEmailChange: (e) =>
|
|
201
|
-
onCustomerEmailBlur:
|
|
202
|
-
onAddDetailsClick:
|
|
203
|
-
onViewDetailsClick:
|
|
204
|
-
onClearClick: () =>
|
|
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:
|
|
227
|
+
labels: P
|
|
210
228
|
}),
|
|
211
|
-
renderProductSelector: (e, t) => /* @__PURE__ */
|
|
229
|
+
renderProductSelector: (e, t) => /* @__PURE__ */ O(me, {
|
|
212
230
|
...t,
|
|
213
231
|
inputValue: e.name,
|
|
214
|
-
selectedProductId:
|
|
215
|
-
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) =>
|
|
218
|
-
onProductSelect: (t) =>
|
|
235
|
+
onInputValueChange: (t) => H.form.updateLineItem(e.id, { name: t }),
|
|
236
|
+
onProductSelect: (t) => H.form.selectProduct(e.id, t)
|
|
219
237
|
}),
|
|
220
|
-
onChange:
|
|
221
|
-
onLineItemChange:
|
|
222
|
-
onLineItemCommit:
|
|
223
|
-
onLineItemQuantityStep:
|
|
224
|
-
onTaxRateCommit:
|
|
225
|
-
onDiscountFocus:
|
|
226
|
-
onDiscountCommit:
|
|
227
|
-
totals:
|
|
228
|
-
onManageUnits:
|
|
229
|
-
onAddLineItem:
|
|
230
|
-
onRemoveLineItem:
|
|
231
|
-
showDueDateField:
|
|
232
|
-
billingSection:
|
|
233
|
-
idPrefix:
|
|
234
|
-
paymentTerms:
|
|
235
|
-
paymentTermsError:
|
|
236
|
-
disabled:
|
|
237
|
-
onPaymentTermsChange:
|
|
238
|
-
onCustomDatePickerOpenChange:
|
|
239
|
-
purchaseOrder:
|
|
240
|
-
onPurchaseOrderChange: (e) =>
|
|
241
|
-
customDateCalendar: /* @__PURE__ */
|
|
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
|
-
...
|
|
245
|
-
onSelect:
|
|
262
|
+
...H.form.paymentTerms.calendar,
|
|
263
|
+
onSelect: H.form.paymentTerms.selectCustomDate
|
|
246
264
|
}),
|
|
247
|
-
recurrenceSection:
|
|
248
|
-
idPrefix:
|
|
249
|
-
view:
|
|
250
|
-
disabled:
|
|
251
|
-
onFrequencyChange:
|
|
252
|
-
onMonthDayChange:
|
|
253
|
-
onWeekdayChange:
|
|
254
|
-
onStartDateChange:
|
|
255
|
-
onEndModeChange:
|
|
256
|
-
onEndDateChange:
|
|
257
|
-
onMaxOccurrencesChange:
|
|
258
|
-
onCreationModeChange:
|
|
259
|
-
onSetUpEmailClick:
|
|
260
|
-
emailDialog: /* @__PURE__ */
|
|
261
|
-
idPrefix:
|
|
262
|
-
view:
|
|
263
|
-
onOpenChange:
|
|
264
|
-
onChange:
|
|
265
|
-
onSave:
|
|
266
|
-
labels:
|
|
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:
|
|
286
|
+
labels: P
|
|
269
287
|
})),
|
|
270
|
-
remindersSection:
|
|
271
|
-
idPrefix:
|
|
272
|
-
view:
|
|
273
|
-
onToggle:
|
|
274
|
-
onPaymentReminderSelect:
|
|
275
|
-
onOverdueReminderSelect:
|
|
276
|
-
onBeforeDueInputChange:
|
|
277
|
-
onBeforeDueSave:
|
|
278
|
-
onOverdueTermChange:
|
|
279
|
-
onOverdueAddTerm:
|
|
280
|
-
onOverdueClear:
|
|
281
|
-
onOverdueSave:
|
|
282
|
-
labels:
|
|
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:
|
|
302
|
+
labels: P
|
|
285
303
|
}),
|
|
286
|
-
bankAccountSection: /* @__PURE__ */
|
|
287
|
-
idPrefix:
|
|
288
|
-
view:
|
|
289
|
-
error:
|
|
290
|
-
disabled:
|
|
291
|
-
onAccountSelect:
|
|
292
|
-
onAddAccountClick:
|
|
293
|
-
onFormChange:
|
|
294
|
-
onFormSave:
|
|
295
|
-
onFormCancel:
|
|
296
|
-
labels:
|
|
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:
|
|
299
|
-
view:
|
|
300
|
-
disabled:
|
|
301
|
-
onFilesSelect:
|
|
302
|
-
onIncludeInEmailChange:
|
|
303
|
-
onRemove:
|
|
304
|
-
labels:
|
|
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__ */
|
|
307
|
-
view:
|
|
308
|
-
labels:
|
|
324
|
+
preview: /* @__PURE__ */ O(ie, {
|
|
325
|
+
view: H.form.preview,
|
|
326
|
+
labels: Oe
|
|
309
327
|
}),
|
|
310
|
-
closeDisabled:
|
|
311
|
-
cancelDisabled:
|
|
312
|
-
draftButtonLabel:
|
|
313
|
-
draftDisabled:
|
|
314
|
-
draftLoading:
|
|
315
|
-
primaryButtonLabel:
|
|
316
|
-
primaryDisabled:
|
|
317
|
-
primaryLoading:
|
|
318
|
-
scrollContainerRef:
|
|
319
|
-
onSubmit:
|
|
320
|
-
onDraftClick:
|
|
321
|
-
onPrimaryClick:
|
|
322
|
-
|
|
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__ */
|
|
325
|
-
...
|
|
326
|
-
labels:
|
|
345
|
+
/* @__PURE__ */ O(x, {
|
|
346
|
+
...H.form.unsavedPrompt,
|
|
347
|
+
labels: P
|
|
327
348
|
}),
|
|
328
|
-
/* @__PURE__ */
|
|
329
|
-
open:
|
|
330
|
-
onOpenChange:
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
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:
|
|
346
|
-
formLabels:
|
|
347
|
-
messageLabels:
|
|
348
|
-
...
|
|
377
|
+
onClose: H.closeCustomerDetails,
|
|
378
|
+
formLabels: d,
|
|
379
|
+
messageLabels: w,
|
|
380
|
+
...H.customerDetailsActions
|
|
349
381
|
}),
|
|
350
|
-
/* @__PURE__ */
|
|
351
|
-
open:
|
|
382
|
+
/* @__PURE__ */ O(re, {
|
|
383
|
+
open: H.actions.payment.isOpen,
|
|
352
384
|
onOpenChange: (e) => {
|
|
353
|
-
e ||
|
|
385
|
+
e || H.actions.payment.close();
|
|
354
386
|
},
|
|
355
|
-
step:
|
|
356
|
-
values:
|
|
357
|
-
errors:
|
|
358
|
-
currencySymbol:
|
|
359
|
-
amountDueLabel:
|
|
360
|
-
review:
|
|
361
|
-
inProgress:
|
|
362
|
-
onChange:
|
|
363
|
-
onFillAmountDue:
|
|
364
|
-
onSave:
|
|
365
|
-
onEdit:
|
|
366
|
-
onConfirm:
|
|
367
|
-
onCancel:
|
|
368
|
-
labels:
|
|
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
|
-
|
|
371
|
-
open: !!
|
|
402
|
+
H.actions.actionDialog && /* @__PURE__ */ O(h, {
|
|
403
|
+
open: !!H.actions.actionTarget,
|
|
372
404
|
onOpenChange: (e) => {
|
|
373
|
-
e ||
|
|
405
|
+
e || H.actions.closeAction();
|
|
374
406
|
},
|
|
375
|
-
title:
|
|
376
|
-
description:
|
|
377
|
-
confirmLabel:
|
|
378
|
-
cancelLabel:
|
|
379
|
-
destructive:
|
|
380
|
-
inProgress:
|
|
381
|
-
comment:
|
|
382
|
-
onCommentChange:
|
|
383
|
-
onConfirm:
|
|
384
|
-
onCancel:
|
|
385
|
-
labels:
|
|
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__ */
|
|
388
|
-
idPrefix:
|
|
389
|
-
open:
|
|
390
|
-
view:
|
|
391
|
-
onSkip:
|
|
392
|
-
onSubjectChange:
|
|
393
|
-
onMessageChange:
|
|
394
|
-
onSend:
|
|
395
|
-
onToggleItem:
|
|
396
|
-
onToggleAll:
|
|
397
|
-
onAllSelectedChange:
|
|
398
|
-
onSaveItems:
|
|
399
|
-
labels:
|
|
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__ */
|
|
402
|
-
open:
|
|
433
|
+
/* @__PURE__ */ O(a, {
|
|
434
|
+
open: H.form.counterpartView === "create",
|
|
403
435
|
onOpenChange: (e) => {
|
|
404
|
-
e ||
|
|
436
|
+
e || H.form.counterpartForm.close();
|
|
405
437
|
},
|
|
406
438
|
mode: "create",
|
|
407
|
-
values:
|
|
408
|
-
errors:
|
|
409
|
-
stateOptions:
|
|
410
|
-
taxIdField: o(
|
|
411
|
-
inProgress:
|
|
412
|
-
onChange: (e) =>
|
|
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) =>
|
|
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:
|
|
424
|
-
onCancel:
|
|
425
|
-
labels:
|
|
455
|
+
onSubmit: H.form.counterpartForm.submit,
|
|
456
|
+
onCancel: H.form.counterpartForm.close,
|
|
457
|
+
labels: d
|
|
426
458
|
}),
|
|
427
|
-
/* @__PURE__ */
|
|
428
|
-
open:
|
|
429
|
-
onClose:
|
|
430
|
-
suspended:
|
|
431
|
-
managerLabels:
|
|
432
|
-
deleteLabels:
|
|
433
|
-
messageLabels:
|
|
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
|
|
438
|
-
let [g, _] =
|
|
439
|
-
return /* @__PURE__ */
|
|
440
|
-
header: m || h.onTemplateSettingsClick ? /* @__PURE__ */
|
|
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:
|
|
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:
|
|
486
|
+
analytics: u,
|
|
455
487
|
disclosuresAcceptance: f,
|
|
456
488
|
providerLabels: p,
|
|
457
|
-
children: /* @__PURE__ */
|
|
489
|
+
children: /* @__PURE__ */ O(A, {
|
|
458
490
|
...h,
|
|
459
491
|
settingsContainer: g
|
|
460
492
|
})
|
|
461
493
|
});
|
|
462
494
|
}
|
|
463
|
-
export {
|
|
495
|
+
export { C as InvoicingTab, j as ReceivablesWidget, j as default };
|