@layerfi/components 0.1.128 → 0.1.129-alpha
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/dist/cjs/index.cjs +777 -1155
- package/dist/esm/index.mjs +771 -1148
- package/dist/index.css +105 -92
- package/package.json +2 -2
package/dist/esm/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Children, Component, Fragment, cloneElement, createContext, createElement, forwardRef, isValidElement, memo, useCallback, useContext, useEffect, useId, useImperativeHandle, useLayoutEffect, useMemo, useReducer, useRef, useState } from "react";
|
|
2
2
|
import { createStore, useStore } from "zustand";
|
|
3
3
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
import { usePlaidLink } from "react-plaid-link";
|
|
@@ -194,7 +194,7 @@ const getIntlLocale = (locale) => {
|
|
|
194
194
|
return isSupportedLocale(locale) ? locale : DEFAULT_LOCALE;
|
|
195
195
|
};
|
|
196
196
|
const name = "@layerfi/components";
|
|
197
|
-
const version = "0.1.
|
|
197
|
+
const version = "0.1.129-alpha";
|
|
198
198
|
const description = "Layer React Components";
|
|
199
199
|
const main = "dist/cjs/index.cjs";
|
|
200
200
|
const module = "dist/esm/index.mjs";
|
|
@@ -365,13 +365,15 @@ var getCustomHeaders = () => ({
|
|
|
365
365
|
"Layer-Locale": _locale,
|
|
366
366
|
"Layer-React-Version": package_default.version
|
|
367
367
|
});
|
|
368
|
-
const get = (url) => (baseUrl, accessToken, options) => () =>
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
368
|
+
const get = (url) => (baseUrl, accessToken, options) => () => {
|
|
369
|
+
return fetch(`${baseUrl}${url((options === null || options === void 0 ? void 0 : options.params) || {})}`, {
|
|
370
|
+
headers: _objectSpread2({
|
|
371
|
+
"Authorization": "Bearer " + (accessToken || ""),
|
|
372
|
+
"Content-Type": "application/json"
|
|
373
|
+
}, getCustomHeaders()),
|
|
374
|
+
method: "GET"
|
|
375
|
+
}).then((res) => handleResponse(res)).catch((error$38) => handleException(error$38));
|
|
376
|
+
};
|
|
375
377
|
const getText = (url) => (baseUrl, accessToken, options) => () => fetch(`${baseUrl}${url((options === null || options === void 0 ? void 0 : options.params) || {})}`, {
|
|
376
378
|
headers: _objectSpread2({ Authorization: "Bearer " + (accessToken || "") }, getCustomHeaders()),
|
|
377
379
|
method: "GET"
|
|
@@ -1141,6 +1143,7 @@ var common_default$1 = {
|
|
|
1141
1143
|
"equities": "Equities",
|
|
1142
1144
|
"expenses": "Expenses",
|
|
1143
1145
|
"gross_profit": "Gross Profit",
|
|
1146
|
+
"hide_details": "Hide details",
|
|
1144
1147
|
"id": "Id",
|
|
1145
1148
|
"keep_editing": "Keep editing",
|
|
1146
1149
|
"liabilities": "Liabilities",
|
|
@@ -1167,6 +1170,7 @@ var common_default$1 = {
|
|
|
1167
1170
|
"row": "Row",
|
|
1168
1171
|
"savings": "Savings",
|
|
1169
1172
|
"select_all": "Select all",
|
|
1173
|
+
"show_details": "Show details",
|
|
1170
1174
|
"source": "Source",
|
|
1171
1175
|
"status": "Status",
|
|
1172
1176
|
"tax_estimates": "Tax estimates",
|
|
@@ -1754,6 +1758,8 @@ var taxEstimates_default$1 = {
|
|
|
1754
1758
|
"content": "The Tax Estimates tool and related content are for informational purposes only, and are not intended as legal, accounting, or tax advice, or a substitute for professional counsel. We are not a financial planner or tax advisor, and users assume sole responsibility for their tax obligations, accuracy of data, and compliance with laws. All calculations are estimated and may contain errors, and are based only on the information you provide to us."
|
|
1755
1759
|
},
|
|
1756
1760
|
empty: {
|
|
1761
|
+
"no_tax_details": "No tax details",
|
|
1762
|
+
"no_tax_details_description": "No tax details found",
|
|
1757
1763
|
"no_tax_payments_to_display": "There are no tax payments to display.",
|
|
1758
1764
|
"tax_payments": "No tax payments found"
|
|
1759
1765
|
},
|
|
@@ -1761,11 +1767,13 @@ var taxEstimates_default$1 = {
|
|
|
1761
1767
|
"disclaimer_required": "You must acknowledge the disclaimer to continue.",
|
|
1762
1768
|
"feature_not_enabled": "Tax estimates are not enabled.",
|
|
1763
1769
|
"load_tax_deadlines": "We couldn't load your tax deadlines",
|
|
1770
|
+
"load_tax_details": "We couldn't load your tax details",
|
|
1764
1771
|
"load_tax_estimates": "We couldn't load your tax estimates",
|
|
1765
1772
|
"load_tax_estimates_summary": "We couldn't load your tax summary",
|
|
1766
1773
|
"load_tax_information": "Unable to load tax information",
|
|
1767
1774
|
"load_tax_payments": "We couldnʼt load your tax payments",
|
|
1768
1775
|
"retrieve_tax_profile": "We couldn’t retrieve your tax profile. Please check your connection and try again.",
|
|
1776
|
+
"while_loading_tax_details": "An error occurred while loading your tax details. Please check your connection and try again.",
|
|
1769
1777
|
"while_loading_tax_estimates": "An error occurred while loading your tax estimates. Please check your connection and try again.",
|
|
1770
1778
|
"while_loading_tax_payments": "An error occurred while loading your tax payments. Please check your connection and try again.",
|
|
1771
1779
|
"while_loading_tax_summary": "An error occurred while loading your tax summary. Please check your connection and try again."
|
|
@@ -1845,6 +1853,9 @@ var taxEstimates_default$1 = {
|
|
|
1845
1853
|
"tax_information": "State Tax Information",
|
|
1846
1854
|
"tax_name_estimate_owed": "{{taxName}} Estimate (Owed)",
|
|
1847
1855
|
"tax_name_rate": "{{taxName}} Rate",
|
|
1856
|
+
"tax_details": "Tax Details",
|
|
1857
|
+
"tax_details_amount": "Amount",
|
|
1858
|
+
"tax_details_label": "Label",
|
|
1848
1859
|
"tax_payments": "Tax Payments",
|
|
1849
1860
|
"tax_payments_projected": "Projected Tax Payments",
|
|
1850
1861
|
"tax_profile": "Tax Profile",
|
|
@@ -1864,10 +1875,12 @@ var taxEstimates_default$1 = {
|
|
|
1864
1875
|
"taxes_by_state_name": "State Taxes ({{stateName}})",
|
|
1865
1876
|
"taxes_by_state_name_projected": "Projected State Taxes ({{stateName}})",
|
|
1866
1877
|
"taxes_due": "Taxes Due",
|
|
1878
|
+
"taxes_due_at": "Taxes due on {{date}}",
|
|
1867
1879
|
"taxes_owed": "Taxes Owed",
|
|
1868
1880
|
"taxes_owed_projected": "Projected Taxes Owed",
|
|
1869
1881
|
"taxes_paid": "Taxes Paid",
|
|
1870
1882
|
"tip_income": "Tip income",
|
|
1883
|
+
"total_deductions": "Total Deductions",
|
|
1871
1884
|
"total_federal_tax_estimate": "Total Federal Tax Estimate",
|
|
1872
1885
|
"total_paid": "Total Paid",
|
|
1873
1886
|
"total_state_tax_estimate": "Total State Tax Estimate",
|
|
@@ -2617,6 +2630,7 @@ var common_default = {
|
|
|
2617
2630
|
"equities": "Capitaux propres",
|
|
2618
2631
|
"expenses": "Dépenses",
|
|
2619
2632
|
"gross_profit": "Bénéfice brut",
|
|
2633
|
+
"hide_details": "",
|
|
2620
2634
|
"id": "ID",
|
|
2621
2635
|
"keep_editing": "Continuer à modifier",
|
|
2622
2636
|
"liabilities": "Passifs",
|
|
@@ -2643,6 +2657,7 @@ var common_default = {
|
|
|
2643
2657
|
"row": "Ligne",
|
|
2644
2658
|
"savings": "Compte d’épargne",
|
|
2645
2659
|
"select_all": "Tout sélectionner",
|
|
2660
|
+
"show_details": "",
|
|
2646
2661
|
"source": "Source",
|
|
2647
2662
|
"status": "Statut",
|
|
2648
2663
|
"tax_estimates": "Estimations fiscales",
|
|
@@ -3230,6 +3245,8 @@ var taxEstimates_default = {
|
|
|
3230
3245
|
"content": "L’outil d’estimation des impôts et le contenu connexe sont fournis à titre informatif seulement et ne constituent pas des conseils juridiques, comptables ou fiscaux, ni un substitut à l’avis d’un professionnel. Nous ne sommes pas un planificateur financier ni un conseiller fiscal, et les utilisateurs assument l’entière responsabilité de leurs obligations fiscales, de l’exactitude des données et du respect des lois. Tous les calculs sont des estimations et peuvent contenir des erreurs. Ils reposent uniquement sur les renseignements que vous nous fournissez."
|
|
3231
3246
|
},
|
|
3232
3247
|
empty: {
|
|
3248
|
+
"no_tax_details": "",
|
|
3249
|
+
"no_tax_details_description": "",
|
|
3233
3250
|
"no_tax_payments_to_display": "Il n’y a aucun paiement d’impôt à afficher.",
|
|
3234
3251
|
"tax_payments": "Aucun paiement d’impôt trouvé"
|
|
3235
3252
|
},
|
|
@@ -3237,11 +3254,13 @@ var taxEstimates_default = {
|
|
|
3237
3254
|
"disclaimer_required": "Vous devez reconnaître l’avis de non-responsabilité pour continuer.",
|
|
3238
3255
|
"feature_not_enabled": "Les estimations d'impôt ne sont pas activées.",
|
|
3239
3256
|
"load_tax_deadlines": "Impossible de charger vos échéances fiscales",
|
|
3257
|
+
"load_tax_details": "",
|
|
3240
3258
|
"load_tax_estimates": "Nous n’avons pas pu charger vos estimations fiscales",
|
|
3241
3259
|
"load_tax_estimates_summary": "Nous n’avons pas pu charger votre sommaire fiscal",
|
|
3242
3260
|
"load_tax_information": "Impossible de charger les renseignements fiscaux",
|
|
3243
3261
|
"load_tax_payments": "Nous n’avons pas pu charger vos paiements d’impôt",
|
|
3244
3262
|
"retrieve_tax_profile": "Nous n’avons pas pu récupérer votre profil fiscal. Veuillez vérifier votre connexion et réessayer.",
|
|
3263
|
+
"while_loading_tax_details": "",
|
|
3245
3264
|
"while_loading_tax_estimates": "Une erreur s’est produite lors du chargement de vos estimations d’impôt. Veuillez vérifier votre connexion et réessayer.",
|
|
3246
3265
|
"while_loading_tax_payments": "Une erreur s’est produite lors du chargement de vos paiements d’impôt. Veuillez vérifier votre connexion et réessayer.",
|
|
3247
3266
|
"while_loading_tax_summary": "Une erreur s’est produite lors du chargement de votre sommaire fiscal. Veuillez vérifier votre connexion et réessayer."
|
|
@@ -3321,6 +3340,9 @@ var taxEstimates_default = {
|
|
|
3321
3340
|
"tax_information": "Renseignements sur l'impôt d'État",
|
|
3322
3341
|
"tax_name_estimate_owed": "Estimation de {{taxName}} (à payer)",
|
|
3323
3342
|
"tax_name_rate": "Taux de {{taxName}}",
|
|
3343
|
+
"tax_details": "",
|
|
3344
|
+
"tax_details_amount": "",
|
|
3345
|
+
"tax_details_label": "",
|
|
3324
3346
|
"tax_payments": "Paiements d’impôt",
|
|
3325
3347
|
"tax_payments_projected": "Paiements d’impôt projetés",
|
|
3326
3348
|
"tax_profile": "Profil fiscal",
|
|
@@ -3340,10 +3362,12 @@ var taxEstimates_default = {
|
|
|
3340
3362
|
"taxes_by_state_name": "Impôts d’État ({{stateName}})",
|
|
3341
3363
|
"taxes_by_state_name_projected": "Impôts d’État projetés ({{stateName}})",
|
|
3342
3364
|
"taxes_due": "Impôts à payer",
|
|
3365
|
+
"taxes_due_at": "",
|
|
3343
3366
|
"taxes_owed": "Impôts dus",
|
|
3344
3367
|
"taxes_owed_projected": "Impôts dus projetés",
|
|
3345
3368
|
"taxes_paid": "Impôts payés",
|
|
3346
3369
|
"tip_income": "Revenu de pourboires",
|
|
3370
|
+
"total_deductions": "",
|
|
3347
3371
|
"total_federal_tax_estimate": "Estimation totale de l’impôt fédéral",
|
|
3348
3372
|
"total_paid": "Total payé",
|
|
3349
3373
|
"total_state_tax_estimate": "Estimation totale de l’impôt d’État",
|
|
@@ -3766,11 +3790,11 @@ function _objectWithoutProperties(e, t) {
|
|
|
3766
3790
|
}
|
|
3767
3791
|
return i;
|
|
3768
3792
|
}
|
|
3769
|
-
var _excluded$
|
|
3793
|
+
var _excluded$118 = ["_locale"];
|
|
3770
3794
|
var createLocalizedFetcher = (fetcher) => {
|
|
3771
3795
|
if (!fetcher) return null;
|
|
3772
3796
|
return (_ref, ...rest) => {
|
|
3773
|
-
let { _locale: _locale$1 } = _ref, key = _objectWithoutProperties(_ref, _excluded$
|
|
3797
|
+
let { _locale: _locale$1 } = _ref, key = _objectWithoutProperties(_ref, _excluded$118);
|
|
3774
3798
|
setLocaleHeader(_locale$1);
|
|
3775
3799
|
return fetcher(key, ...rest);
|
|
3776
3800
|
};
|
|
@@ -3785,7 +3809,7 @@ const useLocalizedKey = () => {
|
|
|
3785
3809
|
return _objectSpread2(_objectSpread2({}, key), {}, { _locale: locale });
|
|
3786
3810
|
};
|
|
3787
3811
|
};
|
|
3788
|
-
var _excluded$
|
|
3812
|
+
var _excluded$117 = ["trigger"];
|
|
3789
3813
|
var UNLINK_BANK_ACCOUNT_TAG_KEY = "#unlink-bank-account";
|
|
3790
3814
|
var unlinkBankAccount = del(({ businessId, bankAccountId }) => `/v1/businesses/${businessId}/bank-accounts/${bankAccountId}`);
|
|
3791
3815
|
function buildKey$88({ access_token: accessToken, apiUrl, businessId }) {
|
|
@@ -3808,7 +3832,7 @@ function useUnlinkBankAccount() {
|
|
|
3808
3832
|
})), ({ accessToken, apiUrl: apiUrl$1, businessId: businessId$1 }, { arg: bankAccountId }) => unlinkBankAccount(apiUrl$1, accessToken, { params: {
|
|
3809
3833
|
businessId: businessId$1,
|
|
3810
3834
|
bankAccountId
|
|
3811
|
-
} }), { revalidate: false }), { trigger: rawTrigger } = _useSWRMutation, rest = _objectWithoutProperties(_useSWRMutation, _excluded$
|
|
3835
|
+
} }), { revalidate: false }), { trigger: rawTrigger } = _useSWRMutation, rest = _objectWithoutProperties(_useSWRMutation, _excluded$117);
|
|
3812
3836
|
const triggerRef = useRef(rawTrigger);
|
|
3813
3837
|
triggerRef.current = rawTrigger;
|
|
3814
3838
|
return _objectSpread2({ trigger: useCallback((bankAccountId) => triggerRef.current(bankAccountId), []) }, rest);
|
|
@@ -5840,14 +5864,14 @@ const useBankTransactionsFilters = ({ scope, monthlyView, applyGlobalDateRange,
|
|
|
5840
5864
|
dateFilterMode
|
|
5841
5865
|
]);
|
|
5842
5866
|
};
|
|
5843
|
-
var _excluded$
|
|
5867
|
+
var _excluded$116 = ["size"];
|
|
5844
5868
|
var Bell = (_ref) => {
|
|
5845
5869
|
let { size = 18 } = _ref;
|
|
5846
5870
|
return /* @__PURE__ */ jsxs("svg", _objectSpread2(_objectSpread2({
|
|
5847
5871
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5848
5872
|
viewBox: "0 0 18 18",
|
|
5849
5873
|
fill: "none"
|
|
5850
|
-
}, _objectWithoutProperties(_ref, _excluded$
|
|
5874
|
+
}, _objectWithoutProperties(_ref, _excluded$116)), {}, {
|
|
5851
5875
|
width: size,
|
|
5852
5876
|
height: size,
|
|
5853
5877
|
children: [/* @__PURE__ */ jsx("path", {
|
|
@@ -5864,14 +5888,14 @@ var Bell = (_ref) => {
|
|
|
5864
5888
|
}));
|
|
5865
5889
|
};
|
|
5866
5890
|
var Bell_default = Bell;
|
|
5867
|
-
var _excluded$
|
|
5891
|
+
var _excluded$115 = ["size"];
|
|
5868
5892
|
var CreditCard = (_ref) => {
|
|
5869
5893
|
let { size = 12 } = _ref;
|
|
5870
5894
|
return /* @__PURE__ */ jsxs("svg", _objectSpread2(_objectSpread2({
|
|
5871
5895
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5872
5896
|
viewBox: "0 0 12 12",
|
|
5873
5897
|
fill: "none"
|
|
5874
|
-
}, _objectWithoutProperties(_ref, _excluded$
|
|
5898
|
+
}, _objectWithoutProperties(_ref, _excluded$115)), {}, {
|
|
5875
5899
|
width: size,
|
|
5876
5900
|
height: size,
|
|
5877
5901
|
children: [/* @__PURE__ */ jsx("path", {
|
|
@@ -5888,14 +5912,14 @@ var CreditCard = (_ref) => {
|
|
|
5888
5912
|
}));
|
|
5889
5913
|
};
|
|
5890
5914
|
var CreditCard_default = CreditCard;
|
|
5891
|
-
var _excluded$
|
|
5915
|
+
var _excluded$114 = ["size"];
|
|
5892
5916
|
var Folder = (_ref) => {
|
|
5893
5917
|
let { size = 12 } = _ref;
|
|
5894
5918
|
return /* @__PURE__ */ jsx("svg", _objectSpread2(_objectSpread2({
|
|
5895
5919
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5896
5920
|
viewBox: "0 0 12 12",
|
|
5897
5921
|
fill: "none"
|
|
5898
|
-
}, _objectWithoutProperties(_ref, _excluded$
|
|
5922
|
+
}, _objectWithoutProperties(_ref, _excluded$114)), {}, {
|
|
5899
5923
|
width: size,
|
|
5900
5924
|
height: size,
|
|
5901
5925
|
children: /* @__PURE__ */ jsx("path", {
|
|
@@ -5907,14 +5931,14 @@ var Folder = (_ref) => {
|
|
|
5907
5931
|
}));
|
|
5908
5932
|
};
|
|
5909
5933
|
var Folder_default = Folder;
|
|
5910
|
-
var _excluded$
|
|
5934
|
+
var _excluded$113 = ["size"];
|
|
5911
5935
|
var Link$3 = (_ref) => {
|
|
5912
5936
|
let { size = 18 } = _ref;
|
|
5913
5937
|
return /* @__PURE__ */ jsxs("svg", _objectSpread2(_objectSpread2({
|
|
5914
5938
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5915
5939
|
viewBox: "0 0 18 18",
|
|
5916
5940
|
fill: "none"
|
|
5917
|
-
}, _objectWithoutProperties(_ref, _excluded$
|
|
5941
|
+
}, _objectWithoutProperties(_ref, _excluded$113)), {}, {
|
|
5918
5942
|
width: size,
|
|
5919
5943
|
height: size,
|
|
5920
5944
|
children: [/* @__PURE__ */ jsx("path", {
|
|
@@ -5938,14 +5962,14 @@ var PlaidIcon = () => {
|
|
|
5938
5962
|
});
|
|
5939
5963
|
};
|
|
5940
5964
|
var PlaidIcon_default = PlaidIcon;
|
|
5941
|
-
var _excluded$
|
|
5965
|
+
var _excluded$112 = ["size"];
|
|
5942
5966
|
var Sunrise = (_ref) => {
|
|
5943
5967
|
let { size = 12 } = _ref;
|
|
5944
5968
|
return /* @__PURE__ */ jsxs("svg", _objectSpread2(_objectSpread2({
|
|
5945
5969
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5946
5970
|
viewBox: "0 0 12 12",
|
|
5947
5971
|
fill: "none"
|
|
5948
|
-
}, _objectWithoutProperties(_ref, _excluded$
|
|
5972
|
+
}, _objectWithoutProperties(_ref, _excluded$112)), {}, {
|
|
5949
5973
|
width: size,
|
|
5950
5974
|
height: size,
|
|
5951
5975
|
children: [
|
|
@@ -6022,7 +6046,7 @@ var ChevronRight$1 = (_ref) => {
|
|
|
6022
6046
|
}) }));
|
|
6023
6047
|
};
|
|
6024
6048
|
var ChevronRight_default = ChevronRight$1;
|
|
6025
|
-
var _excluded$
|
|
6049
|
+
var _excluded$111 = [
|
|
6026
6050
|
"className",
|
|
6027
6051
|
"children",
|
|
6028
6052
|
"icon",
|
|
@@ -6034,7 +6058,7 @@ var _excluded$110 = [
|
|
|
6034
6058
|
"download"
|
|
6035
6059
|
];
|
|
6036
6060
|
const IconButton = (_ref) => {
|
|
6037
|
-
let { className, children: _children, icon, active, withBorder = false, href, target, rel, download } = _ref, props = _objectWithoutProperties(_ref, _excluded$
|
|
6061
|
+
let { className, children: _children, icon, active, withBorder = false, href, target, rel, download } = _ref, props = _objectWithoutProperties(_ref, _excluded$111);
|
|
6038
6062
|
const baseClassName$1 = classNames("Layer__icon-btn", `Layer__icon-btn--${active ? "active" : "inactive"}`, withBorder && "Layer__icon-btn--border", className);
|
|
6039
6063
|
if (href) return /* @__PURE__ */ jsx("a", {
|
|
6040
6064
|
href,
|
|
@@ -6118,10 +6142,10 @@ const useTooltip = ({ initialOpen = false, placement = "top", open: controlledOp
|
|
|
6118
6142
|
data
|
|
6119
6143
|
]);
|
|
6120
6144
|
};
|
|
6121
|
-
var _excluded$
|
|
6145
|
+
var _excluded$110 = ["children"], _excluded2$15 = ["children", "asChild"], _excluded3$6 = ["className", "width"];
|
|
6122
6146
|
const DeprecatedTooltip = (_ref) => {
|
|
6123
6147
|
let { children } = _ref;
|
|
6124
|
-
const tooltip = useTooltip(_objectWithoutProperties(_ref, _excluded$
|
|
6148
|
+
const tooltip = useTooltip(_objectWithoutProperties(_ref, _excluded$110));
|
|
6125
6149
|
return /* @__PURE__ */ jsx(TooltipContext.Provider, {
|
|
6126
6150
|
value: tooltip,
|
|
6127
6151
|
children
|
|
@@ -6159,7 +6183,7 @@ const DeprecatedTooltipContent = forwardRef(function TooltipContent$1(_ref3, pro
|
|
|
6159
6183
|
children: props.children
|
|
6160
6184
|
}) })) });
|
|
6161
6185
|
});
|
|
6162
|
-
var _excluded$
|
|
6186
|
+
var _excluded$109 = [
|
|
6163
6187
|
"as",
|
|
6164
6188
|
"className",
|
|
6165
6189
|
"children",
|
|
@@ -6196,7 +6220,7 @@ let TextUseTooltip = /* @__PURE__ */ function(TextUseTooltip$1) {
|
|
|
6196
6220
|
return TextUseTooltip$1;
|
|
6197
6221
|
}({});
|
|
6198
6222
|
const Text$2 = (_ref) => {
|
|
6199
|
-
let { as: Component$1 = "p", className, children, size = TextSize.md, weight = TextWeight.normal, withDeprecatedTooltip: withTooltip, ellipsis, status, pb, invertColor } = _ref, props = _objectWithoutProperties(_ref, _excluded$
|
|
6223
|
+
let { as: Component$1 = "p", className, children, size = TextSize.md, weight = TextWeight.normal, withDeprecatedTooltip: withTooltip, ellipsis, status, pb, invertColor } = _ref, props = _objectWithoutProperties(_ref, _excluded$109);
|
|
6200
6224
|
const dataProperties = toDataProperties({
|
|
6201
6225
|
status,
|
|
6202
6226
|
ellipsis,
|
|
@@ -6319,14 +6343,14 @@ const Badge = ({ icon, onClick, children, tooltip, size = BadgeSize.MEDIUM, vari
|
|
|
6319
6343
|
});
|
|
6320
6344
|
return content;
|
|
6321
6345
|
};
|
|
6322
|
-
var _excluded$
|
|
6346
|
+
var _excluded$108 = ["size"];
|
|
6323
6347
|
var Loader$1 = (_ref) => {
|
|
6324
6348
|
let { size = 18 } = _ref;
|
|
6325
6349
|
return /* @__PURE__ */ jsxs("svg", _objectSpread2(_objectSpread2({
|
|
6326
6350
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6327
6351
|
viewBox: "0 0 18 18",
|
|
6328
6352
|
fill: "none"
|
|
6329
|
-
}, _objectWithoutProperties(_ref, _excluded$
|
|
6353
|
+
}, _objectWithoutProperties(_ref, _excluded$108)), {}, {
|
|
6330
6354
|
width: size,
|
|
6331
6355
|
height: size,
|
|
6332
6356
|
children: [
|
|
@@ -6382,7 +6406,7 @@ var Loader$1 = (_ref) => {
|
|
|
6382
6406
|
}));
|
|
6383
6407
|
};
|
|
6384
6408
|
var Loader_default = Loader$1;
|
|
6385
|
-
var _excluded$
|
|
6409
|
+
var _excluded$107 = [
|
|
6386
6410
|
"className",
|
|
6387
6411
|
"children",
|
|
6388
6412
|
"variant",
|
|
@@ -6402,7 +6426,7 @@ let ButtonVariant = /* @__PURE__ */ function(ButtonVariant$1) {
|
|
|
6402
6426
|
return ButtonVariant$1;
|
|
6403
6427
|
}({});
|
|
6404
6428
|
const Button$2 = (_ref) => {
|
|
6405
|
-
let { className, children, variant = ButtonVariant.primary, leftIcon, rightIcon, iconOnly, iconAsPrimary = false, justify = "center", fullWidth, isProcessing, tooltip } = _ref, props = _objectWithoutProperties(_ref, _excluded$
|
|
6429
|
+
let { className, children, variant = ButtonVariant.primary, leftIcon, rightIcon, iconOnly, iconAsPrimary = false, justify = "center", fullWidth, isProcessing, tooltip } = _ref, props = _objectWithoutProperties(_ref, _excluded$107);
|
|
6406
6430
|
const buttonRef = useRef(null);
|
|
6407
6431
|
let justifyContent = "center";
|
|
6408
6432
|
if (justify) justifyContent = justify;
|
|
@@ -6449,14 +6473,14 @@ const Button$2 = (_ref) => {
|
|
|
6449
6473
|
}) : content
|
|
6450
6474
|
}));
|
|
6451
6475
|
};
|
|
6452
|
-
var _excluded$
|
|
6476
|
+
var _excluded$106 = ["size"];
|
|
6453
6477
|
var AlertOctagon = (_ref) => {
|
|
6454
6478
|
let { size = 18 } = _ref;
|
|
6455
6479
|
return /* @__PURE__ */ jsxs("svg", _objectSpread2(_objectSpread2({
|
|
6456
6480
|
viewBox: "0 0 18 18",
|
|
6457
6481
|
fill: "none",
|
|
6458
6482
|
xmlns: "http://www.w3.org/2000/svg"
|
|
6459
|
-
}, _objectWithoutProperties(_ref, _excluded$
|
|
6483
|
+
}, _objectWithoutProperties(_ref, _excluded$106)), {}, {
|
|
6460
6484
|
width: size,
|
|
6461
6485
|
height: size,
|
|
6462
6486
|
children: [
|
|
@@ -6482,14 +6506,14 @@ var AlertOctagon = (_ref) => {
|
|
|
6482
6506
|
}));
|
|
6483
6507
|
};
|
|
6484
6508
|
var AlertOctagon_default = AlertOctagon;
|
|
6485
|
-
var _excluded$
|
|
6509
|
+
var _excluded$105 = ["size"];
|
|
6486
6510
|
var CheckCircle$1 = (_ref) => {
|
|
6487
6511
|
let { size = 18 } = _ref;
|
|
6488
6512
|
return /* @__PURE__ */ jsxs("svg", _objectSpread2(_objectSpread2({
|
|
6489
6513
|
viewBox: "0 0 18 18",
|
|
6490
6514
|
fill: "none",
|
|
6491
6515
|
xmlns: "http://www.w3.org/2000/svg"
|
|
6492
|
-
}, _objectWithoutProperties(_ref, _excluded$
|
|
6516
|
+
}, _objectWithoutProperties(_ref, _excluded$105)), {}, {
|
|
6493
6517
|
width: size,
|
|
6494
6518
|
height: size,
|
|
6495
6519
|
children: [/* @__PURE__ */ jsx("path", {
|
|
@@ -6506,14 +6530,14 @@ var CheckCircle$1 = (_ref) => {
|
|
|
6506
6530
|
}));
|
|
6507
6531
|
};
|
|
6508
6532
|
var CheckCircle_default = CheckCircle$1;
|
|
6509
|
-
var _excluded$
|
|
6533
|
+
var _excluded$104 = ["size"];
|
|
6510
6534
|
var RefreshCcw$1 = (_ref) => {
|
|
6511
6535
|
let { size = 18 } = _ref;
|
|
6512
6536
|
return /* @__PURE__ */ jsxs("svg", _objectSpread2(_objectSpread2({
|
|
6513
6537
|
viewBox: "0 0 18 18",
|
|
6514
6538
|
fill: "none",
|
|
6515
6539
|
xmlns: "http://www.w3.org/2000/svg"
|
|
6516
|
-
}, _objectWithoutProperties(_ref, _excluded$
|
|
6540
|
+
}, _objectWithoutProperties(_ref, _excluded$104)), {}, {
|
|
6517
6541
|
width: size,
|
|
6518
6542
|
height: size,
|
|
6519
6543
|
children: [
|
|
@@ -7101,7 +7125,7 @@ function BulkSelectionStoreProvider({ children }) {
|
|
|
7101
7125
|
children
|
|
7102
7126
|
});
|
|
7103
7127
|
}
|
|
7104
|
-
var _excluded$
|
|
7128
|
+
var _excluded$103 = [
|
|
7105
7129
|
"align",
|
|
7106
7130
|
"children",
|
|
7107
7131
|
"className",
|
|
@@ -7119,7 +7143,7 @@ var _excluded$102 = [
|
|
|
7119
7143
|
];
|
|
7120
7144
|
var CLASS_NAME$11 = "Layer__Stack";
|
|
7121
7145
|
const Stack = forwardRef(function Stack$1(_ref, ref) {
|
|
7122
|
-
let { align, children, className, direction, gap, justify, overflow, pb, pbs, pbe, pi, pis, pie, fluid } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$
|
|
7146
|
+
let { align, children, className, direction, gap, justify, overflow, pb, pbs, pbe, pi, pis, pie, fluid } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$103);
|
|
7123
7147
|
const dataProperties = toDataProperties({
|
|
7124
7148
|
align,
|
|
7125
7149
|
direction,
|
|
@@ -7430,7 +7454,7 @@ function useSizeClass() {
|
|
|
7430
7454
|
isDesktop: sizeClass === "desktop"
|
|
7431
7455
|
};
|
|
7432
7456
|
}
|
|
7433
|
-
var _excluded$
|
|
7457
|
+
var _excluded$102 = ["children"], _excluded2$13 = [
|
|
7434
7458
|
"children",
|
|
7435
7459
|
"asChild",
|
|
7436
7460
|
"wordBreak"
|
|
@@ -7441,7 +7465,7 @@ var _excluded$101 = ["children"], _excluded2$13 = [
|
|
|
7441
7465
|
];
|
|
7442
7466
|
const Tooltip$1 = (_ref) => {
|
|
7443
7467
|
let { children } = _ref;
|
|
7444
|
-
const tooltip = useTooltip(_objectWithoutProperties(_ref, _excluded$
|
|
7468
|
+
const tooltip = useTooltip(_objectWithoutProperties(_ref, _excluded$102));
|
|
7445
7469
|
return /* @__PURE__ */ jsx(TooltipContext.Provider, {
|
|
7446
7470
|
value: tooltip,
|
|
7447
7471
|
children
|
|
@@ -7513,7 +7537,7 @@ function useTruncationDetection(elementRef, options = {
|
|
|
7513
7537
|
}, [checkTruncation]);
|
|
7514
7538
|
return isTruncated;
|
|
7515
7539
|
}
|
|
7516
|
-
var _excluded$
|
|
7540
|
+
var _excluded$101 = [
|
|
7517
7541
|
"align",
|
|
7518
7542
|
"children",
|
|
7519
7543
|
"ellipsis",
|
|
@@ -7528,7 +7552,7 @@ var _excluded$100 = [
|
|
|
7528
7552
|
"weight"
|
|
7529
7553
|
];
|
|
7530
7554
|
function splitTextProps(props) {
|
|
7531
|
-
const { align, children, ellipsis, nonAria, noWrap, pb, pbe, pbs, size, status, variant, weight } = props, restProps = _objectWithoutProperties(props, _excluded$
|
|
7555
|
+
const { align, children, ellipsis, nonAria, noWrap, pb, pbe, pbs, size, status, variant, weight } = props, restProps = _objectWithoutProperties(props, _excluded$101);
|
|
7532
7556
|
return {
|
|
7533
7557
|
children,
|
|
7534
7558
|
dataProperties: toDataProperties({
|
|
@@ -7690,7 +7714,7 @@ function withRenderProp(renderProp, callback) {
|
|
|
7690
7714
|
if (typeof renderProp === "function") return renderProp;
|
|
7691
7715
|
return callback(renderProp);
|
|
7692
7716
|
}
|
|
7693
|
-
var _excluded$
|
|
7717
|
+
var _excluded$100 = [
|
|
7694
7718
|
"children",
|
|
7695
7719
|
"ellipsis",
|
|
7696
7720
|
"icon",
|
|
@@ -7718,7 +7742,7 @@ function ButtonTransparentContent({ children }) {
|
|
|
7718
7742
|
});
|
|
7719
7743
|
}
|
|
7720
7744
|
var Button$1 = forwardRef((_ref, ref) => {
|
|
7721
|
-
let { children, ellipsis, icon, inset, size = "md", variant = "solid", fullWidth = false, flex = false } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$
|
|
7745
|
+
let { children, ellipsis, icon, inset, size = "md", variant = "solid", fullWidth = false, flex = false } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$100);
|
|
7722
7746
|
const { isPending = false } = restProps;
|
|
7723
7747
|
const dataProperties = toDataProperties({
|
|
7724
7748
|
ellipsis,
|
|
@@ -7739,10 +7763,10 @@ var Button$1 = forwardRef((_ref, ref) => {
|
|
|
7739
7763
|
}));
|
|
7740
7764
|
});
|
|
7741
7765
|
Button$1.displayName = "Button";
|
|
7742
|
-
var _excluded$
|
|
7766
|
+
var _excluded$99 = ["one", "other"];
|
|
7743
7767
|
const tPlural = (translate, key, _ref) => {
|
|
7744
7768
|
let { one, other } = _ref;
|
|
7745
|
-
return translate(key, _objectSpread2(_objectSpread2({}, _objectWithoutProperties(_ref, _excluded$
|
|
7769
|
+
return translate(key, _objectSpread2(_objectSpread2({}, _objectWithoutProperties(_ref, _excluded$99)), {}, {
|
|
7746
7770
|
defaultValue_one: one,
|
|
7747
7771
|
defaultValue_other: other
|
|
7748
7772
|
}));
|
|
@@ -8933,7 +8957,7 @@ const useVirtualKeyboardHeight = () => {
|
|
|
8933
8957
|
}, []);
|
|
8934
8958
|
return keyboardHeight;
|
|
8935
8959
|
};
|
|
8936
|
-
var _excluded$
|
|
8960
|
+
var _excluded$98 = ["variant"], _excluded2$12 = [
|
|
8937
8961
|
"variant",
|
|
8938
8962
|
"children",
|
|
8939
8963
|
"slots",
|
|
@@ -8943,7 +8967,7 @@ var _excluded$97 = ["variant"], _excluded2$12 = [
|
|
|
8943
8967
|
];
|
|
8944
8968
|
var MODAL_OVERLAY_CLASS_NAME = `Layer__Portal Layer__ModalOverlay`;
|
|
8945
8969
|
var ModalOverlay$1 = forwardRef((_ref, ref) => {
|
|
8946
|
-
let { variant } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$
|
|
8970
|
+
let { variant } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$98);
|
|
8947
8971
|
return /* @__PURE__ */ jsx(ModalOverlay, _objectSpread2(_objectSpread2(_objectSpread2({}, toDataProperties({ variant })), restProps), {}, {
|
|
8948
8972
|
className: MODAL_OVERLAY_CLASS_NAME,
|
|
8949
8973
|
ref
|
|
@@ -9045,7 +9069,7 @@ function Drawer({ isOpen, onOpenChange, size = "md", flexBlock, flexInline, chil
|
|
|
9045
9069
|
})
|
|
9046
9070
|
});
|
|
9047
9071
|
}
|
|
9048
|
-
var _excluded$
|
|
9072
|
+
var _excluded$97 = [
|
|
9049
9073
|
"align",
|
|
9050
9074
|
"pie",
|
|
9051
9075
|
"pbe",
|
|
@@ -9057,7 +9081,7 @@ var _excluded$96 = [
|
|
|
9057
9081
|
];
|
|
9058
9082
|
var HEADING_CLASS_NAME = "Layer__UI__Heading";
|
|
9059
9083
|
var Heading$1 = forwardRef((_ref, ref) => {
|
|
9060
|
-
let { align, pie, pbe, size, variant, weight, ellipsis, className } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$
|
|
9084
|
+
let { align, pie, pbe, size, variant, weight, ellipsis, className } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$97);
|
|
9061
9085
|
const dataProperties = toDataProperties({
|
|
9062
9086
|
pbe,
|
|
9063
9087
|
pie,
|
|
@@ -9141,14 +9165,14 @@ function ModalActions({ children }) {
|
|
|
9141
9165
|
children
|
|
9142
9166
|
});
|
|
9143
9167
|
}
|
|
9144
|
-
var _excluded$
|
|
9168
|
+
var _excluded$96 = ["size"];
|
|
9145
9169
|
var AlertCircle$1 = (_ref) => {
|
|
9146
9170
|
let { size = 18 } = _ref;
|
|
9147
9171
|
return /* @__PURE__ */ jsxs("svg", _objectSpread2(_objectSpread2({
|
|
9148
9172
|
viewBox: "0 0 18 18",
|
|
9149
9173
|
fill: "none",
|
|
9150
9174
|
xmlns: "http://www.w3.org/2000/svg"
|
|
9151
|
-
}, _objectWithoutProperties(_ref, _excluded$
|
|
9175
|
+
}, _objectWithoutProperties(_ref, _excluded$96)), {}, {
|
|
9152
9176
|
width: size,
|
|
9153
9177
|
height: size,
|
|
9154
9178
|
children: [
|
|
@@ -9174,14 +9198,14 @@ var AlertCircle$1 = (_ref) => {
|
|
|
9174
9198
|
}));
|
|
9175
9199
|
};
|
|
9176
9200
|
var AlertCircle_default = AlertCircle$1;
|
|
9177
|
-
var _excluded$
|
|
9201
|
+
var _excluded$95 = ["size"];
|
|
9178
9202
|
var Save$1 = (_ref) => {
|
|
9179
9203
|
let { size = 18 } = _ref;
|
|
9180
9204
|
return /* @__PURE__ */ jsxs("svg", _objectSpread2(_objectSpread2({
|
|
9181
9205
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9182
9206
|
viewBox: "0 0 18 18",
|
|
9183
9207
|
fill: "none"
|
|
9184
|
-
}, _objectWithoutProperties(_ref, _excluded$
|
|
9208
|
+
}, _objectWithoutProperties(_ref, _excluded$95)), {}, {
|
|
9185
9209
|
width: size,
|
|
9186
9210
|
height: size,
|
|
9187
9211
|
children: [
|
|
@@ -9207,7 +9231,7 @@ var Save$1 = (_ref) => {
|
|
|
9207
9231
|
}));
|
|
9208
9232
|
};
|
|
9209
9233
|
var Save_default = Save$1;
|
|
9210
|
-
var _excluded$
|
|
9234
|
+
var _excluded$94 = [
|
|
9211
9235
|
"className",
|
|
9212
9236
|
"processing",
|
|
9213
9237
|
"disabled",
|
|
@@ -9215,7 +9239,7 @@ var _excluded$93 = [
|
|
|
9215
9239
|
"children"
|
|
9216
9240
|
];
|
|
9217
9241
|
const RetryButton = (_ref) => {
|
|
9218
|
-
let { className, processing, disabled, error: error$38, children } = _ref, props = _objectWithoutProperties(_ref, _excluded$
|
|
9242
|
+
let { className, processing, disabled, error: error$38, children } = _ref, props = _objectWithoutProperties(_ref, _excluded$94);
|
|
9219
9243
|
const baseClassName$1 = classNames("Layer__retry-btn", processing ? "Layer__btn--processing" : "", className);
|
|
9220
9244
|
return /* @__PURE__ */ jsx(Button$2, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
9221
9245
|
className: baseClassName$1,
|
|
@@ -9227,7 +9251,7 @@ const RetryButton = (_ref) => {
|
|
|
9227
9251
|
children
|
|
9228
9252
|
}));
|
|
9229
9253
|
};
|
|
9230
|
-
var _excluded$
|
|
9254
|
+
var _excluded$93 = [
|
|
9231
9255
|
"active",
|
|
9232
9256
|
"className",
|
|
9233
9257
|
"processing",
|
|
@@ -9264,7 +9288,7 @@ var buildRightIcon = ({ processing, error: error$38, action: action$44, noIcon }
|
|
|
9264
9288
|
return /* @__PURE__ */ jsx(Save_default, { size: 16 });
|
|
9265
9289
|
};
|
|
9266
9290
|
const SubmitButton = (_ref) => {
|
|
9267
|
-
let { active, className, processing, disabled, error: error$38, children, action: action$44 = SubmitAction.SAVE, noIcon, variant = ButtonVariant.primary, withRetry, iconAsPrimary = true } = _ref, props = _objectWithoutProperties(_ref, _excluded$
|
|
9291
|
+
let { active, className, processing, disabled, error: error$38, children, action: action$44 = SubmitAction.SAVE, noIcon, variant = ButtonVariant.primary, withRetry, iconAsPrimary = true } = _ref, props = _objectWithoutProperties(_ref, _excluded$93);
|
|
9268
9292
|
const { t } = useTranslation();
|
|
9269
9293
|
const baseClassName$1 = classNames(active ? "Layer__btn--active" : "", className);
|
|
9270
9294
|
if (withRetry && error$38) return /* @__PURE__ */ jsx(RetryButton, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
@@ -9287,7 +9311,7 @@ const SubmitButton = (_ref) => {
|
|
|
9287
9311
|
children
|
|
9288
9312
|
}));
|
|
9289
9313
|
};
|
|
9290
|
-
var _excluded$
|
|
9314
|
+
var _excluded$92 = [
|
|
9291
9315
|
"isOpen",
|
|
9292
9316
|
"onOpenChange",
|
|
9293
9317
|
"useDrawer"
|
|
@@ -9353,7 +9377,7 @@ var BaseConfirmationModalContent = memo(function BaseConfirmationModalContent$1(
|
|
|
9353
9377
|
});
|
|
9354
9378
|
});
|
|
9355
9379
|
function BaseConfirmationModal(_ref) {
|
|
9356
|
-
let { isOpen, onOpenChange, useDrawer = false } = _ref, contentProps = _objectWithoutProperties(_ref, _excluded$
|
|
9380
|
+
let { isOpen, onOpenChange, useDrawer = false } = _ref, contentProps = _objectWithoutProperties(_ref, _excluded$92);
|
|
9357
9381
|
if (useDrawer) return /* @__PURE__ */ jsx(Drawer, {
|
|
9358
9382
|
flexBlock: true,
|
|
9359
9383
|
isOpen,
|
|
@@ -9405,14 +9429,14 @@ const COMBO_BOX_CLASS_NAMES = {
|
|
|
9405
9429
|
MULTI_VALUE: "Layer__ComboBoxMultiValue",
|
|
9406
9430
|
MULTI_VALUE_LABEL: "Layer__ComboBoxMultiValueLabel"
|
|
9407
9431
|
};
|
|
9408
|
-
var _excluded$
|
|
9432
|
+
var _excluded$91 = ["size"];
|
|
9409
9433
|
var Check$1 = (_ref) => {
|
|
9410
9434
|
let { size = 18 } = _ref;
|
|
9411
9435
|
return /* @__PURE__ */ jsx("svg", _objectSpread2(_objectSpread2({
|
|
9412
9436
|
viewBox: "0 0 18 18",
|
|
9413
9437
|
fill: "none",
|
|
9414
9438
|
xmlns: "http://www.w3.org/2000/svg"
|
|
9415
|
-
}, _objectWithoutProperties(_ref, _excluded$
|
|
9439
|
+
}, _objectWithoutProperties(_ref, _excluded$91)), {}, {
|
|
9416
9440
|
width: size,
|
|
9417
9441
|
height: size,
|
|
9418
9442
|
children: /* @__PURE__ */ jsx("path", {
|
|
@@ -9424,14 +9448,14 @@ var Check$1 = (_ref) => {
|
|
|
9424
9448
|
}));
|
|
9425
9449
|
};
|
|
9426
9450
|
var Check_default = Check$1;
|
|
9427
|
-
var _excluded$
|
|
9451
|
+
var _excluded$90 = ["size"];
|
|
9428
9452
|
var ChevronDown = (_ref) => {
|
|
9429
9453
|
let { size = 18 } = _ref;
|
|
9430
9454
|
return /* @__PURE__ */ jsx("svg", _objectSpread2(_objectSpread2({
|
|
9431
9455
|
viewBox: "0 0 18 18",
|
|
9432
9456
|
fill: "none",
|
|
9433
9457
|
xmlns: "http://www.w3.org/2000/svg"
|
|
9434
|
-
}, _objectWithoutProperties(_ref, _excluded$
|
|
9458
|
+
}, _objectWithoutProperties(_ref, _excluded$90)), {}, {
|
|
9435
9459
|
width: size,
|
|
9436
9460
|
height: size,
|
|
9437
9461
|
children: /* @__PURE__ */ jsx("path", {
|
|
@@ -9443,14 +9467,14 @@ var ChevronDown = (_ref) => {
|
|
|
9443
9467
|
}));
|
|
9444
9468
|
};
|
|
9445
9469
|
var ChevronDown_default = ChevronDown;
|
|
9446
|
-
var _excluded$
|
|
9470
|
+
var _excluded$89 = ["size"];
|
|
9447
9471
|
var X$1 = (_ref) => {
|
|
9448
9472
|
let { size = 18 } = _ref;
|
|
9449
9473
|
return /* @__PURE__ */ jsxs("svg", _objectSpread2(_objectSpread2({
|
|
9450
9474
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9451
9475
|
viewBox: "0 0 18 18",
|
|
9452
9476
|
fill: "none"
|
|
9453
|
-
}, _objectWithoutProperties(_ref, _excluded$
|
|
9477
|
+
}, _objectWithoutProperties(_ref, _excluded$89)), {}, {
|
|
9454
9478
|
width: size,
|
|
9455
9479
|
height: size,
|
|
9456
9480
|
children: [/* @__PURE__ */ jsx("path", {
|
|
@@ -9467,10 +9491,10 @@ var X$1 = (_ref) => {
|
|
|
9467
9491
|
}));
|
|
9468
9492
|
};
|
|
9469
9493
|
var X_default = X$1;
|
|
9470
|
-
var _excluded$
|
|
9494
|
+
var _excluded$88 = ["children"], _excluded2$11 = ["children"], _excluded3$4 = ["children"], _excluded4$3 = ["children"], _excluded5$2 = ["children"], _excluded6$2 = ["children"], _excluded7 = ["children"], _excluded8 = ["children"];
|
|
9471
9495
|
function buildCustomClearIndicator() {
|
|
9472
9496
|
return function CustomClearIndicator(_ref) {
|
|
9473
|
-
let { children } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$
|
|
9497
|
+
let { children } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$88);
|
|
9474
9498
|
return /* @__PURE__ */ jsx(components.ClearIndicator, _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
9475
9499
|
className: COMBO_BOX_CLASS_NAMES.CLEAR_INDICATOR,
|
|
9476
9500
|
children: /* @__PURE__ */ jsx(X_default, { size: 16 })
|
|
@@ -9676,7 +9700,7 @@ function useCommonComboBoxProps({ className, options, groups, onInputValueChange
|
|
|
9676
9700
|
styles
|
|
9677
9701
|
]);
|
|
9678
9702
|
}
|
|
9679
|
-
var _excluded$
|
|
9703
|
+
var _excluded$87 = [
|
|
9680
9704
|
"className",
|
|
9681
9705
|
"slots",
|
|
9682
9706
|
"isError",
|
|
@@ -9684,7 +9708,7 @@ var _excluded$86 = [
|
|
|
9684
9708
|
"onSelectedValueChange"
|
|
9685
9709
|
];
|
|
9686
9710
|
function ComboBox(_ref) {
|
|
9687
|
-
let { className, slots, isError, selectedValue, onSelectedValueChange } = _ref, props = _objectWithoutProperties(_ref, _excluded$
|
|
9711
|
+
let { className, slots, isError, selectedValue, onSelectedValueChange } = _ref, props = _objectWithoutProperties(_ref, _excluded$87);
|
|
9688
9712
|
const commonSelectProps = useCommonComboBoxProps(_objectSpread2({
|
|
9689
9713
|
className,
|
|
9690
9714
|
slots,
|
|
@@ -9703,13 +9727,13 @@ function ComboBox(_ref) {
|
|
|
9703
9727
|
})]
|
|
9704
9728
|
});
|
|
9705
9729
|
}
|
|
9706
|
-
var _excluded$
|
|
9730
|
+
var _excluded$86 = [
|
|
9707
9731
|
"amount",
|
|
9708
9732
|
"displayPlusSign",
|
|
9709
9733
|
"className"
|
|
9710
9734
|
];
|
|
9711
9735
|
var MoneySpan = forwardRef((_ref, ref) => {
|
|
9712
|
-
let { amount, displayPlusSign, className } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$
|
|
9736
|
+
let { amount, displayPlusSign, className } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$86);
|
|
9713
9737
|
const { formatCurrencyFromCents: formatCurrencyFromCents$1 } = useIntlFormatter();
|
|
9714
9738
|
const formattedAmount = formatCurrencyFromCents$1(amount, { signDisplay: displayPlusSign ? "always" : "auto" });
|
|
9715
9739
|
return /* @__PURE__ */ jsx(Span, _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
@@ -10026,14 +10050,14 @@ const getDefaultSelectedCategoryForBankTransaction = (bankTransaction, ignoreSug
|
|
|
10026
10050
|
if (hasSuggestions(bankTransaction.categorization_flow)) return convertApiCategorizationToCategoryOrSplitAsOption(bankTransaction.categorization_flow.suggestions[0]);
|
|
10027
10051
|
return null;
|
|
10028
10052
|
};
|
|
10029
|
-
var _excluded$
|
|
10053
|
+
var _excluded$85 = ["size"];
|
|
10030
10054
|
var MinimizeTwo = (_ref) => {
|
|
10031
10055
|
let { size = 18 } = _ref;
|
|
10032
10056
|
return /* @__PURE__ */ jsxs("svg", _objectSpread2(_objectSpread2({
|
|
10033
10057
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10034
10058
|
viewBox: "0 0 18 18",
|
|
10035
10059
|
fill: "none"
|
|
10036
|
-
}, _objectWithoutProperties(_ref, _excluded$
|
|
10060
|
+
}, _objectWithoutProperties(_ref, _excluded$85)), {}, {
|
|
10037
10061
|
width: size,
|
|
10038
10062
|
height: size,
|
|
10039
10063
|
children: [
|
|
@@ -10065,14 +10089,14 @@ var MinimizeTwo = (_ref) => {
|
|
|
10065
10089
|
}));
|
|
10066
10090
|
};
|
|
10067
10091
|
var MinimizeTwo_default = MinimizeTwo;
|
|
10068
|
-
var _excluded$
|
|
10092
|
+
var _excluded$84 = ["size"];
|
|
10069
10093
|
var Scissors = (_ref) => {
|
|
10070
10094
|
let { size = 11 } = _ref;
|
|
10071
10095
|
return /* @__PURE__ */ jsxs("svg", _objectSpread2(_objectSpread2({
|
|
10072
10096
|
viewBox: "0 0 11 11",
|
|
10073
10097
|
fill: "none",
|
|
10074
10098
|
xmlns: "http://www.w3.org/2000/svg"
|
|
10075
|
-
}, _objectWithoutProperties(_ref, _excluded$
|
|
10099
|
+
}, _objectWithoutProperties(_ref, _excluded$84)), {}, {
|
|
10076
10100
|
width: size,
|
|
10077
10101
|
height: size,
|
|
10078
10102
|
children: [
|
|
@@ -10492,7 +10516,7 @@ var toActionableListOption = (opt) => {
|
|
|
10492
10516
|
value: opt
|
|
10493
10517
|
};
|
|
10494
10518
|
};
|
|
10495
|
-
var _excluded$
|
|
10519
|
+
var _excluded$83 = [
|
|
10496
10520
|
"actionCount",
|
|
10497
10521
|
"className",
|
|
10498
10522
|
"slots",
|
|
@@ -10500,7 +10524,7 @@ var _excluded$82 = [
|
|
|
10500
10524
|
];
|
|
10501
10525
|
var INPUT_GROUP_CLASS_NAME = "Layer__UI__InputGroup";
|
|
10502
10526
|
const InputGroup$1 = forwardRef(function InputGroup$2(_ref, ref) {
|
|
10503
|
-
let { actionCount, className, slots, children } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$
|
|
10527
|
+
let { actionCount, className, slots, children } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$83);
|
|
10504
10528
|
const combinedClassName = classNames(INPUT_GROUP_CLASS_NAME, className);
|
|
10505
10529
|
const dataProperties = toDataProperties({ "action-count": actionCount });
|
|
10506
10530
|
return /* @__PURE__ */ jsx(Group, _objectSpread2(_objectSpread2(_objectSpread2({}, restProps), dataProperties), {}, {
|
|
@@ -10509,10 +10533,10 @@ const InputGroup$1 = forwardRef(function InputGroup$2(_ref, ref) {
|
|
|
10509
10533
|
children
|
|
10510
10534
|
}));
|
|
10511
10535
|
});
|
|
10512
|
-
var _excluded$
|
|
10536
|
+
var _excluded$82 = ["placeholder", "isDisabled"];
|
|
10513
10537
|
var CLASS_NAME$8 = "Layer__MinimalSearchField";
|
|
10514
10538
|
function MinimalSearchField(_ref) {
|
|
10515
|
-
let { placeholder, isDisabled } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$
|
|
10539
|
+
let { placeholder, isDisabled } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$82);
|
|
10516
10540
|
const { t } = useTranslation();
|
|
10517
10541
|
return /* @__PURE__ */ jsxs(SearchField, _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
10518
10542
|
isDisabled,
|
|
@@ -10530,7 +10554,7 @@ function MinimalSearchField(_ref) {
|
|
|
10530
10554
|
})]
|
|
10531
10555
|
}));
|
|
10532
10556
|
}
|
|
10533
|
-
var _excluded$
|
|
10557
|
+
var _excluded$81 = [
|
|
10534
10558
|
"slot",
|
|
10535
10559
|
"className",
|
|
10536
10560
|
"label",
|
|
@@ -10538,7 +10562,7 @@ var _excluded$80 = [
|
|
|
10538
10562
|
];
|
|
10539
10563
|
var CLASS_NAME$7 = "Layer__SearchField";
|
|
10540
10564
|
function SearchField$1(_ref) {
|
|
10541
|
-
let { slot = "search", className, label: label$50, isDisabled } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$
|
|
10565
|
+
let { slot = "search", className, label: label$50, isDisabled } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$81);
|
|
10542
10566
|
return /* @__PURE__ */ jsxs(InputGroup$1, {
|
|
10543
10567
|
slot,
|
|
10544
10568
|
className: classNames(CLASS_NAME$7, className),
|
|
@@ -11044,14 +11068,14 @@ const BankTransactionsBulkActions = ({ isMobileView = false, slotProps }) => {
|
|
|
11044
11068
|
] })
|
|
11045
11069
|
}) });
|
|
11046
11070
|
};
|
|
11047
|
-
var _excluded$
|
|
11071
|
+
var _excluded$80 = ["size"];
|
|
11048
11072
|
var DownloadCloud = (_ref) => {
|
|
11049
11073
|
let { size = 18 } = _ref;
|
|
11050
11074
|
return /* @__PURE__ */ jsxs("svg", _objectSpread2(_objectSpread2({
|
|
11051
11075
|
xmlns: "http://www.w3.org/2000/svg",
|
|
11052
11076
|
viewBox: "0 0 18 18",
|
|
11053
11077
|
fill: "none"
|
|
11054
|
-
}, _objectWithoutProperties(_ref, _excluded$
|
|
11078
|
+
}, _objectWithoutProperties(_ref, _excluded$80)), {}, {
|
|
11055
11079
|
width: size,
|
|
11056
11080
|
height: size,
|
|
11057
11081
|
children: [
|
|
@@ -11077,14 +11101,14 @@ var DownloadCloud = (_ref) => {
|
|
|
11077
11101
|
}));
|
|
11078
11102
|
};
|
|
11079
11103
|
var DownloadCloud_default = DownloadCloud;
|
|
11080
|
-
var _excluded$
|
|
11104
|
+
var _excluded$79 = ["size"];
|
|
11081
11105
|
var UploadCloud$1 = (_ref) => {
|
|
11082
11106
|
let { size = 18 } = _ref;
|
|
11083
11107
|
return /* @__PURE__ */ jsxs("svg", _objectSpread2(_objectSpread2({
|
|
11084
11108
|
viewBox: "0 0 18 18",
|
|
11085
11109
|
fill: "none",
|
|
11086
11110
|
xmlns: "http://www.w3.org/2000/svg"
|
|
11087
|
-
}, _objectWithoutProperties(_ref, _excluded$
|
|
11111
|
+
}, _objectWithoutProperties(_ref, _excluded$79)), {}, {
|
|
11088
11112
|
width: size,
|
|
11089
11113
|
height: size,
|
|
11090
11114
|
children: [
|
|
@@ -11330,7 +11354,7 @@ function useCustomAccountParseCsv() {
|
|
|
11330
11354
|
file
|
|
11331
11355
|
}).then(({ data: data$1 }) => data$1), { revalidate: false });
|
|
11332
11356
|
}
|
|
11333
|
-
var _excluded$
|
|
11357
|
+
var _excluded$78 = [
|
|
11334
11358
|
"className",
|
|
11335
11359
|
"slots",
|
|
11336
11360
|
"isError",
|
|
@@ -11343,7 +11367,7 @@ var _excluded$77 = [
|
|
|
11343
11367
|
];
|
|
11344
11368
|
var returnTrue = () => true;
|
|
11345
11369
|
function CreatableComboBox(_ref) {
|
|
11346
|
-
let { className, slots, isError, selectedValue, onSelectedValueChange, onCreateOption, formatCreateLabel: formatCreateLabel$3, createOptionPosition = "first", isValidNewOption = returnTrue } = _ref, props = _objectWithoutProperties(_ref, _excluded$
|
|
11370
|
+
let { className, slots, isError, selectedValue, onSelectedValueChange, onCreateOption, formatCreateLabel: formatCreateLabel$3, createOptionPosition = "first", isValidNewOption = returnTrue } = _ref, props = _objectWithoutProperties(_ref, _excluded$78);
|
|
11347
11371
|
const commonSelectProps = useCommonComboBoxProps(_objectSpread2({
|
|
11348
11372
|
className,
|
|
11349
11373
|
slots,
|
|
@@ -11384,14 +11408,14 @@ const CopyTemplateHeadersButtonGroup = ({ headers, className }) => {
|
|
|
11384
11408
|
}, key))
|
|
11385
11409
|
});
|
|
11386
11410
|
};
|
|
11387
|
-
var _excluded$
|
|
11411
|
+
var _excluded$77 = ["size"];
|
|
11388
11412
|
var CloseIcon = (_ref) => {
|
|
11389
11413
|
let { size = 12 } = _ref;
|
|
11390
11414
|
return /* @__PURE__ */ jsxs("svg", _objectSpread2(_objectSpread2({
|
|
11391
11415
|
viewBox: "0 0 12 12",
|
|
11392
11416
|
fill: "none",
|
|
11393
11417
|
xmlns: "http://www.w3.org/2000/svg"
|
|
11394
|
-
}, _objectWithoutProperties(_ref, _excluded$
|
|
11418
|
+
}, _objectWithoutProperties(_ref, _excluded$77)), {}, {
|
|
11395
11419
|
width: size,
|
|
11396
11420
|
height: size,
|
|
11397
11421
|
children: [/* @__PURE__ */ jsx("path", {
|
|
@@ -11621,7 +11645,7 @@ function useCreateCustomAccount() {
|
|
|
11621
11645
|
return Reflect.get(target, prop);
|
|
11622
11646
|
} });
|
|
11623
11647
|
}
|
|
11624
|
-
var _excluded$
|
|
11648
|
+
var _excluded$76 = ["children", "className"], _excluded2$10 = [
|
|
11625
11649
|
"children",
|
|
11626
11650
|
"inline",
|
|
11627
11651
|
"textarea",
|
|
@@ -11630,7 +11654,7 @@ var _excluded$75 = ["children", "className"], _excluded2$10 = [
|
|
|
11630
11654
|
var FORM_CLASS_NAME = "Layer__UI__Form";
|
|
11631
11655
|
const Form$1 = forwardRef(function Form$2(_ref, ref) {
|
|
11632
11656
|
let { children, className } = _ref;
|
|
11633
|
-
return /* @__PURE__ */ jsx(Form, _objectSpread2(_objectSpread2({}, _objectWithoutProperties(_ref, _excluded$
|
|
11657
|
+
return /* @__PURE__ */ jsx(Form, _objectSpread2(_objectSpread2({}, _objectWithoutProperties(_ref, _excluded$76)), {}, {
|
|
11634
11658
|
className: classNames(FORM_CLASS_NAME, className),
|
|
11635
11659
|
ref,
|
|
11636
11660
|
children
|
|
@@ -11837,10 +11861,10 @@ function useBigDecimalInput({ value, onChange, onBlur, mode, maxValue, maxDecima
|
|
|
11837
11861
|
onPaste
|
|
11838
11862
|
};
|
|
11839
11863
|
}
|
|
11840
|
-
var _excluded$
|
|
11864
|
+
var _excluded$75 = ["inset", "placement"];
|
|
11841
11865
|
var INPUT_CLASS_NAME = "Layer__UI__Input";
|
|
11842
11866
|
const Input$2 = forwardRef(function Input$3(_ref, ref) {
|
|
11843
|
-
let { inset, placement } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$
|
|
11867
|
+
let { inset, placement } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$75);
|
|
11844
11868
|
const dataProperties = toDataProperties({
|
|
11845
11869
|
inset,
|
|
11846
11870
|
placement
|
|
@@ -11850,7 +11874,7 @@ const Input$2 = forwardRef(function Input$3(_ref, ref) {
|
|
|
11850
11874
|
ref
|
|
11851
11875
|
}));
|
|
11852
11876
|
});
|
|
11853
|
-
var _excluded$
|
|
11877
|
+
var _excluded$74 = [
|
|
11854
11878
|
"mode",
|
|
11855
11879
|
"allowNegative",
|
|
11856
11880
|
"maxValue",
|
|
@@ -11864,7 +11888,7 @@ var DEFAULT_MAX_VALUE$1 = BigDecimal.fromBigInt(BigInt(1e7));
|
|
|
11864
11888
|
var DEFAULT_MIN_DECIMAL_PLACES$1 = 0;
|
|
11865
11889
|
var DEFAULT_MAX_DECIMAL_PLACES$1 = 3;
|
|
11866
11890
|
function FormBigDecimalField(_ref) {
|
|
11867
|
-
let { mode = "decimal", allowNegative = false, maxValue = mode === "percent" ? BIG_DECIMAL_ONE : DEFAULT_MAX_VALUE$1, minDecimalPlaces = mode === "currency" ? 2 : DEFAULT_MIN_DECIMAL_PLACES$1, maxDecimalPlaces = mode === "currency" ? 2 : DEFAULT_MAX_DECIMAL_PLACES$1, slots, placeholder, allowEmpty } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$
|
|
11891
|
+
let { mode = "decimal", allowNegative = false, maxValue = mode === "percent" ? BIG_DECIMAL_ONE : DEFAULT_MAX_VALUE$1, minDecimalPlaces = mode === "currency" ? 2 : DEFAULT_MIN_DECIMAL_PLACES$1, maxDecimalPlaces = mode === "currency" ? 2 : DEFAULT_MAX_DECIMAL_PLACES$1, slots, placeholder, allowEmpty } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$74);
|
|
11868
11892
|
const { name: name$1, state: state$16, handleChange, handleBlur } = useFieldContext();
|
|
11869
11893
|
const { value } = state$16;
|
|
11870
11894
|
const { inputValue, onInputChange, onInputBlur, onBeforeInput, onPaste } = useBigDecimalInput({
|
|
@@ -11897,7 +11921,7 @@ function FormBigDecimalField(_ref) {
|
|
|
11897
11921
|
})
|
|
11898
11922
|
}));
|
|
11899
11923
|
}
|
|
11900
|
-
var _excluded$
|
|
11924
|
+
var _excluded$73 = [
|
|
11901
11925
|
"children",
|
|
11902
11926
|
"className",
|
|
11903
11927
|
"variant",
|
|
@@ -11911,7 +11935,7 @@ var CHECK_SIZE = {
|
|
|
11911
11935
|
lg: 16
|
|
11912
11936
|
};
|
|
11913
11937
|
function Checkbox$1(_ref) {
|
|
11914
|
-
let { children, className, variant = "default", size = "sm", isIndeterminate } = _ref, props = _objectWithoutProperties(_ref, _excluded$
|
|
11938
|
+
let { children, className, variant = "default", size = "sm", isIndeterminate } = _ref, props = _objectWithoutProperties(_ref, _excluded$73);
|
|
11915
11939
|
return /* @__PURE__ */ jsx(Checkbox, _objectSpread2(_objectSpread2(_objectSpread2({}, useMemo(() => toDataProperties({
|
|
11916
11940
|
size,
|
|
11917
11941
|
variant,
|
|
@@ -11970,7 +11994,7 @@ function FormCheckboxField({ label: label$50, className, inline = false, showLab
|
|
|
11970
11994
|
children: label$50
|
|
11971
11995
|
}) }));
|
|
11972
11996
|
}
|
|
11973
|
-
var _excluded$
|
|
11997
|
+
var _excluded$72 = [
|
|
11974
11998
|
"inline",
|
|
11975
11999
|
"className",
|
|
11976
12000
|
"isReadOnly"
|
|
@@ -11978,7 +12002,7 @@ var _excluded$71 = [
|
|
|
11978
12002
|
const DATE_PICKER_CLASS_NAME = "Layer__UI__DatePicker";
|
|
11979
12003
|
var DATE_FIELD_CLASS_NAME = "Layer__UI__DateField";
|
|
11980
12004
|
const DateField$1 = forwardRef(function DateField$2(_ref, ref) {
|
|
11981
|
-
let { inline, className, isReadOnly } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$
|
|
12005
|
+
let { inline, className, isReadOnly } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$72);
|
|
11982
12006
|
return /* @__PURE__ */ jsx(DateField, _objectSpread2(_objectSpread2(_objectSpread2({}, toDataProperties({
|
|
11983
12007
|
inline,
|
|
11984
12008
|
readonly: isReadOnly
|
|
@@ -12065,10 +12089,10 @@ function FormDateField({ label: label$50, className, inline = false, showLabel =
|
|
|
12065
12089
|
shouldShowErrorMessage && /* @__PURE__ */ jsx(FieldError$1, { children: errorMessage })
|
|
12066
12090
|
] }));
|
|
12067
12091
|
}
|
|
12068
|
-
var _excluded$
|
|
12092
|
+
var _excluded$71 = ["className", "isReadOnly"], _excluded2$7 = ["className"], _excluded3$2 = ["className"], _excluded4$1 = ["className", "size"], _excluded5$1 = ["className"], _excluded6$1 = ["className", "size"];
|
|
12069
12093
|
var CALENDAR_CLASS_NAME = "Layer__UI__Calendar";
|
|
12070
12094
|
const Calendar$1 = forwardRef(function Calendar$2(_ref, ref) {
|
|
12071
|
-
let { className, isReadOnly } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$
|
|
12095
|
+
let { className, isReadOnly } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$71);
|
|
12072
12096
|
return /* @__PURE__ */ jsx(Calendar, _objectSpread2(_objectSpread2(_objectSpread2({}, toDataProperties({ readonly: isReadOnly })), restProps), {}, {
|
|
12073
12097
|
isReadOnly,
|
|
12074
12098
|
className: classNames(CALENDAR_CLASS_NAME, className),
|
|
@@ -12207,10 +12231,10 @@ const DatePickerInput = ({ errorText, variant, onClick, isReadOnly }) => {
|
|
|
12207
12231
|
})]
|
|
12208
12232
|
});
|
|
12209
12233
|
};
|
|
12210
|
-
var _excluded$
|
|
12234
|
+
var _excluded$70 = ["flexInline"];
|
|
12211
12235
|
var POPOVER_CLASS_NAMES = `Layer__Portal Layer__Popover`;
|
|
12212
12236
|
const Popover$1 = forwardRef(function Popover$2(_ref, ref) {
|
|
12213
|
-
let { flexInline = false } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$
|
|
12237
|
+
let { flexInline = false } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$70);
|
|
12214
12238
|
const dataProperties = toDataProperties({ "flex-inline": flexInline });
|
|
12215
12239
|
return /* @__PURE__ */ jsx(Popover, _objectSpread2(_objectSpread2(_objectSpread2({}, restProps), dataProperties), {}, {
|
|
12216
12240
|
className: POPOVER_CLASS_NAMES,
|
|
@@ -12330,7 +12354,7 @@ const fromNonRecursiveBigDecimal = (nrbd) => {
|
|
|
12330
12354
|
const nrbdEquals = (a, b) => {
|
|
12331
12355
|
return BigDecimal.equals(fromNonRecursiveBigDecimal(a), fromNonRecursiveBigDecimal(b));
|
|
12332
12356
|
};
|
|
12333
|
-
var _excluded$
|
|
12357
|
+
var _excluded$69 = [
|
|
12334
12358
|
"mode",
|
|
12335
12359
|
"allowNegative",
|
|
12336
12360
|
"maxValue",
|
|
@@ -12344,7 +12368,7 @@ var DEFAULT_MAX_VALUE = BigDecimal.fromBigInt(BigInt(1e7));
|
|
|
12344
12368
|
var DEFAULT_MIN_DECIMAL_PLACES = 0;
|
|
12345
12369
|
var DEFAULT_MAX_DECIMAL_PLACES = 3;
|
|
12346
12370
|
function FormNonRecursiveBigDecimalField(_ref) {
|
|
12347
|
-
let { mode = "decimal", allowNegative = false, maxValue = mode === "percent" ? BIG_DECIMAL_ONE : DEFAULT_MAX_VALUE, minDecimalPlaces = mode === "currency" ? 2 : DEFAULT_MIN_DECIMAL_PLACES, maxDecimalPlaces = mode === "currency" ? 2 : DEFAULT_MAX_DECIMAL_PLACES, slots, placeholder, allowEmpty } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$
|
|
12371
|
+
let { mode = "decimal", allowNegative = false, maxValue = mode === "percent" ? BIG_DECIMAL_ONE : DEFAULT_MAX_VALUE, minDecimalPlaces = mode === "currency" ? 2 : DEFAULT_MIN_DECIMAL_PLACES, maxDecimalPlaces = mode === "currency" ? 2 : DEFAULT_MAX_DECIMAL_PLACES, slots, placeholder, allowEmpty } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$69);
|
|
12348
12372
|
const { name: name$1, state: state$16, handleChange, handleBlur } = useFieldContext();
|
|
12349
12373
|
const { value: nrbdValue } = state$16;
|
|
12350
12374
|
const { inputValue, onInputChange, onInputBlur, onBeforeInput, onPaste } = useBigDecimalInput({
|
|
@@ -12379,14 +12403,14 @@ function FormNonRecursiveBigDecimalField(_ref) {
|
|
|
12379
12403
|
})
|
|
12380
12404
|
}));
|
|
12381
12405
|
}
|
|
12382
|
-
var _excluded$
|
|
12406
|
+
var _excluded$68 = [
|
|
12383
12407
|
"inline",
|
|
12384
12408
|
"className",
|
|
12385
12409
|
"isReadOnly"
|
|
12386
12410
|
];
|
|
12387
12411
|
var NUMBER_FIELD_CLASS_NAME = "Layer__UI__NumberField";
|
|
12388
12412
|
const NumberField$1 = forwardRef(function NumberField$2(_ref, ref) {
|
|
12389
|
-
let { inline, className, isReadOnly } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$
|
|
12413
|
+
let { inline, className, isReadOnly } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$68);
|
|
12390
12414
|
return /* @__PURE__ */ jsx(NumberField, _objectSpread2(_objectSpread2(_objectSpread2({ step: 1 }, toDataProperties({
|
|
12391
12415
|
inline,
|
|
12392
12416
|
readonly: isReadOnly
|
|
@@ -12433,7 +12457,7 @@ function FormNumberField({ label: label$50, className, inline = false, showLabel
|
|
|
12433
12457
|
shouldShowErrorMessage && /* @__PURE__ */ jsx(FieldError$1, { children: errorMessage })
|
|
12434
12458
|
] }));
|
|
12435
12459
|
}
|
|
12436
|
-
var _excluded$
|
|
12460
|
+
var _excluded$67 = [
|
|
12437
12461
|
"children",
|
|
12438
12462
|
"className",
|
|
12439
12463
|
"onChange"
|
|
@@ -12443,7 +12467,7 @@ var RADIO_CLASS_NAME = "Layer__Radio";
|
|
|
12443
12467
|
var INDICATOR_SIZE = 10;
|
|
12444
12468
|
function RadioGroup$1(_ref) {
|
|
12445
12469
|
let { children, className, onChange } = _ref;
|
|
12446
|
-
return /* @__PURE__ */ jsx(RadioGroup, _objectSpread2(_objectSpread2({}, _objectWithoutProperties(_ref, _excluded$
|
|
12470
|
+
return /* @__PURE__ */ jsx(RadioGroup, _objectSpread2(_objectSpread2({}, _objectWithoutProperties(_ref, _excluded$67)), {}, {
|
|
12447
12471
|
onChange,
|
|
12448
12472
|
className: classNames(RADIO_GROUP_CLASS_NAME, className),
|
|
12449
12473
|
children
|
|
@@ -12552,11 +12576,11 @@ function FormRadioGroupYesNoField({ label: label$50, className, inline = false,
|
|
|
12552
12576
|
}), shouldShowErrorMessage && /* @__PURE__ */ jsx(FieldError$1, { children: errorMessage })]
|
|
12553
12577
|
})] }));
|
|
12554
12578
|
}
|
|
12555
|
-
var _excluded$
|
|
12579
|
+
var _excluded$66 = ["children", "className"];
|
|
12556
12580
|
var SWITCH_CLASS_NAME = "Layer__UI__Switch";
|
|
12557
12581
|
const Switch$1 = forwardRef((_ref, ref) => {
|
|
12558
12582
|
let { children, className } = _ref;
|
|
12559
|
-
return /* @__PURE__ */ jsx(Switch, _objectSpread2(_objectSpread2({}, _objectWithoutProperties(_ref, _excluded$
|
|
12583
|
+
return /* @__PURE__ */ jsx(Switch, _objectSpread2(_objectSpread2({}, _objectWithoutProperties(_ref, _excluded$66)), {}, {
|
|
12560
12584
|
className: classNames(SWITCH_CLASS_NAME, className),
|
|
12561
12585
|
ref,
|
|
12562
12586
|
children: withRenderProp(children, (node) => /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("div", { slot: "indicator" }), node] }))
|
|
@@ -12586,19 +12610,19 @@ function FormSwitchField({ label: label$50, slots, className, inline = false, sh
|
|
|
12586
12610
|
})]
|
|
12587
12611
|
}) }));
|
|
12588
12612
|
}
|
|
12589
|
-
var _excluded$
|
|
12613
|
+
var _excluded$65 = ["resize"];
|
|
12590
12614
|
var TEXTAREA_CLASS_NAME = "Layer__UI__TextArea";
|
|
12591
12615
|
const TextArea$1 = forwardRef(function TextArea$2(_ref, ref) {
|
|
12592
|
-
let { resize = "none" } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$
|
|
12616
|
+
let { resize = "none" } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$65);
|
|
12593
12617
|
const dataProperties = toDataProperties({ resize });
|
|
12594
12618
|
return /* @__PURE__ */ jsx(TextArea, _objectSpread2(_objectSpread2(_objectSpread2({}, restProps), dataProperties), {}, {
|
|
12595
12619
|
className: TEXTAREA_CLASS_NAME,
|
|
12596
12620
|
ref
|
|
12597
12621
|
}));
|
|
12598
12622
|
});
|
|
12599
|
-
var _excluded$
|
|
12623
|
+
var _excluded$64 = ["placeholder"];
|
|
12600
12624
|
function FormTextAreaField(_ref) {
|
|
12601
|
-
let { placeholder } = _ref, props = _objectWithoutProperties(_ref, _excluded$
|
|
12625
|
+
let { placeholder } = _ref, props = _objectWithoutProperties(_ref, _excluded$64);
|
|
12602
12626
|
const { name: name$1, state: state$16, handleChange, handleBlur } = useFieldContext();
|
|
12603
12627
|
const { value } = state$16;
|
|
12604
12628
|
const onChange = useCallback((e) => {
|
|
@@ -12617,9 +12641,9 @@ function FormTextAreaField(_ref) {
|
|
|
12617
12641
|
})
|
|
12618
12642
|
}));
|
|
12619
12643
|
}
|
|
12620
|
-
var _excluded$
|
|
12644
|
+
var _excluded$63 = ["placeholder"];
|
|
12621
12645
|
function FormTextField(_ref) {
|
|
12622
|
-
let { placeholder } = _ref, props = _objectWithoutProperties(_ref, _excluded$
|
|
12646
|
+
let { placeholder } = _ref, props = _objectWithoutProperties(_ref, _excluded$63);
|
|
12623
12647
|
const { name: name$1, state: state$16, handleChange, handleBlur } = useFieldContext();
|
|
12624
12648
|
const { value } = state$16;
|
|
12625
12649
|
const onChange = useCallback((e) => {
|
|
@@ -12716,14 +12740,14 @@ const useCustomAccountForm = ({ onSuccess }) => {
|
|
|
12716
12740
|
isFormValid: useStore$1(form.store, (state$16) => state$16.isValid)
|
|
12717
12741
|
};
|
|
12718
12742
|
};
|
|
12719
|
-
var _excluded$
|
|
12743
|
+
var _excluded$62 = [
|
|
12720
12744
|
"className",
|
|
12721
12745
|
"isInvalid",
|
|
12722
12746
|
"errorMessage",
|
|
12723
12747
|
"leftText"
|
|
12724
12748
|
];
|
|
12725
12749
|
const Input$1 = (_ref) => {
|
|
12726
|
-
let { className, isInvalid, errorMessage, leftText } = _ref, props = _objectWithoutProperties(_ref, _excluded$
|
|
12750
|
+
let { className, isInvalid, errorMessage, leftText } = _ref, props = _objectWithoutProperties(_ref, _excluded$62);
|
|
12727
12751
|
const baseClassName$1 = classNames("Layer__input", isInvalid ? "Layer__input--error" : "", leftText ? "Layer__input--with-left-text" : "", className);
|
|
12728
12752
|
return /* @__PURE__ */ jsxs(DeprecatedTooltip, {
|
|
12729
12753
|
disabled: !isInvalid || !errorMessage,
|
|
@@ -12751,14 +12775,14 @@ const InputGroup = ({ label: label$50, name: name$1, className, inline, children
|
|
|
12751
12775
|
}), children]
|
|
12752
12776
|
});
|
|
12753
12777
|
};
|
|
12754
|
-
var _excluded$
|
|
12778
|
+
var _excluded$61 = ["size"];
|
|
12755
12779
|
var ChevronDownFill = (_ref) => {
|
|
12756
12780
|
let { size = 18 } = _ref;
|
|
12757
12781
|
return /* @__PURE__ */ jsxs("svg", _objectSpread2(_objectSpread2({
|
|
12758
12782
|
xmlns: "http://www.w3.org/2000/svg",
|
|
12759
12783
|
viewBox: "0 0 18 18",
|
|
12760
12784
|
fill: "none"
|
|
12761
|
-
}, _objectWithoutProperties(_ref, _excluded$
|
|
12785
|
+
}, _objectWithoutProperties(_ref, _excluded$61)), {}, {
|
|
12762
12786
|
width: size,
|
|
12763
12787
|
height: size,
|
|
12764
12788
|
children: [/* @__PURE__ */ jsx("path", {
|
|
@@ -12773,9 +12797,9 @@ var ChevronDownFill = (_ref) => {
|
|
|
12773
12797
|
}));
|
|
12774
12798
|
};
|
|
12775
12799
|
var ChevronDownFill_default = ChevronDownFill;
|
|
12776
|
-
var _excluded$
|
|
12800
|
+
var _excluded$60 = ["children"];
|
|
12777
12801
|
const SelectMenuPortal = (_ref) => {
|
|
12778
|
-
let { children } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$
|
|
12802
|
+
let { children } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$60);
|
|
12779
12803
|
const dataProperties = toDataProperties({ "react-aria-top-layer": true });
|
|
12780
12804
|
return /* @__PURE__ */ jsx(components.MenuPortal, _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
12781
12805
|
innerProps: dataProperties,
|
|
@@ -12815,10 +12839,10 @@ const Select$1 = ({ name: name$1, options, className, classNamePrefix = "Layer__
|
|
|
12815
12839
|
})]
|
|
12816
12840
|
});
|
|
12817
12841
|
};
|
|
12818
|
-
var _excluded$
|
|
12842
|
+
var _excluded$59 = ["className"];
|
|
12819
12843
|
const ErrorText = (_ref) => {
|
|
12820
12844
|
let { className } = _ref;
|
|
12821
|
-
return /* @__PURE__ */ jsx(Text$2, _objectSpread2(_objectSpread2({}, _objectWithoutProperties(_ref, _excluded$
|
|
12845
|
+
return /* @__PURE__ */ jsx(Text$2, _objectSpread2(_objectSpread2({}, _objectWithoutProperties(_ref, _excluded$59)), {}, {
|
|
12822
12846
|
status: "error",
|
|
12823
12847
|
className
|
|
12824
12848
|
}));
|
|
@@ -13139,7 +13163,7 @@ function UploadTransactionsUploadCsvStep({ selectedAccount, onSelectAccount, sel
|
|
|
13139
13163
|
] })]
|
|
13140
13164
|
});
|
|
13141
13165
|
}
|
|
13142
|
-
var _excluded$
|
|
13166
|
+
var _excluded$58 = ["customAccountId"];
|
|
13143
13167
|
var createCustomAccountTransactions = post(({ businessId, customAccountId }) => `/v1/businesses/${businessId}/custom-accounts/${customAccountId}/transactions`);
|
|
13144
13168
|
function buildKey$74({ access_token: accessToken, apiUrl, businessId }) {
|
|
13145
13169
|
if (accessToken && apiUrl) return {
|
|
@@ -13154,7 +13178,7 @@ function useCreateCustomAccountTransactions() {
|
|
|
13154
13178
|
const { data } = useAuth();
|
|
13155
13179
|
const { businessId } = useLayerContext();
|
|
13156
13180
|
return useSWRMutation(() => withLocale(buildKey$74(_objectSpread2(_objectSpread2({}, data), {}, { businessId }))), ({ accessToken, apiUrl, businessId: businessId$1 }, _ref) => {
|
|
13157
|
-
let { arg: _ref2 } = _ref, { customAccountId } = _ref2, body = _objectWithoutProperties(_ref2, _excluded$
|
|
13181
|
+
let { arg: _ref2 } = _ref, { customAccountId } = _ref2, body = _objectWithoutProperties(_ref2, _excluded$58);
|
|
13158
13182
|
return createCustomAccountTransactions(apiUrl, accessToken, {
|
|
13159
13183
|
params: {
|
|
13160
13184
|
businessId: businessId$1,
|
|
@@ -13226,7 +13250,7 @@ var unifiedReportColumnFields = {
|
|
|
13226
13250
|
pinning: Schema.optional(TransformedPinningSchema)
|
|
13227
13251
|
};
|
|
13228
13252
|
const UnifiedReportColumnSchema = Schema.Struct(_objectSpread2(_objectSpread2({}, unifiedReportColumnFields), {}, { columns: Schema.optional(Schema.Array(Schema.suspend(() => UnifiedReportColumnSchema))) }));
|
|
13229
|
-
|
|
13253
|
+
const UnifiedCellValueCurrencySchema = Schema.Struct({
|
|
13230
13254
|
type: Schema.Literal("Currency"),
|
|
13231
13255
|
value: Schema.Number
|
|
13232
13256
|
});
|
|
@@ -13234,20 +13258,30 @@ var UnifiedCellValueDateSchema = Schema.Struct({
|
|
|
13234
13258
|
type: Schema.Literal("Date"),
|
|
13235
13259
|
value: Schema.Date
|
|
13236
13260
|
});
|
|
13237
|
-
|
|
13261
|
+
const UnifiedCellValueDecimalSchema = Schema.Struct({
|
|
13238
13262
|
type: Schema.Literal("Decimal"),
|
|
13239
13263
|
value: Schema.Number
|
|
13240
13264
|
});
|
|
13265
|
+
var UnifiedCellValueDurationSchema = Schema.Struct({
|
|
13266
|
+
type: Schema.Literal("Duration"),
|
|
13267
|
+
value: Schema.Number
|
|
13268
|
+
});
|
|
13241
13269
|
var UnifiedCellValueEmptySchema = Schema.Struct({ type: Schema.Literal("Empty") });
|
|
13242
|
-
|
|
13270
|
+
const UnifiedCellValuePercentageSchema = Schema.Struct({
|
|
13271
|
+
type: Schema.Literal("Percentage"),
|
|
13272
|
+
value: Schema.Number
|
|
13273
|
+
});
|
|
13274
|
+
const UnifiedCellValueUnknownSchema = Schema.Struct({
|
|
13243
13275
|
type: Schema.String,
|
|
13244
13276
|
value: Schema.optional(Schema.Unknown)
|
|
13245
13277
|
});
|
|
13246
|
-
var UnifiedCellValueSchema = Schema.Union(UnifiedCellValueCurrencySchema, UnifiedCellValueDateSchema, UnifiedCellValueDecimalSchema, UnifiedCellValueEmptySchema, UnifiedCellValueUnknownSchema);
|
|
13278
|
+
var UnifiedCellValueSchema = Schema.Union(UnifiedCellValueCurrencySchema, UnifiedCellValueDateSchema, UnifiedCellValueDecimalSchema, UnifiedCellValueDurationSchema, UnifiedCellValueEmptySchema, UnifiedCellValuePercentageSchema, UnifiedCellValueUnknownSchema);
|
|
13247
13279
|
const isCurrencyCellValue = (value) => value.type === "Currency";
|
|
13248
13280
|
const isDateCellValue = (value) => value.type === "Date";
|
|
13249
13281
|
const isDecimalCellValue = (value) => value.type === "Decimal";
|
|
13282
|
+
const isDurationCellValue = (value) => value.type === "Duration";
|
|
13250
13283
|
const isEmptyCellValue = (value) => value.type === "Empty";
|
|
13284
|
+
const isPercentageCellValue = (value) => value.type === "Percentage";
|
|
13251
13285
|
var UnifiedCellFormatSchema = Schema.Struct({ bold: Schema.optional(Schema.Boolean) });
|
|
13252
13286
|
var UnifiedReportCellSchema = Schema.Struct({
|
|
13253
13287
|
value: UnifiedCellValueSchema,
|
|
@@ -13267,7 +13301,7 @@ const UnifiedReportSchema = Schema.Struct({
|
|
|
13267
13301
|
columns: Schema.Array(UnifiedReportColumnSchema),
|
|
13268
13302
|
rows: Schema.Array(UnifiedReportRowSchema)
|
|
13269
13303
|
});
|
|
13270
|
-
var _excluded$
|
|
13304
|
+
var _excluded$57 = [
|
|
13271
13305
|
"children",
|
|
13272
13306
|
"className",
|
|
13273
13307
|
"nonAria",
|
|
@@ -13322,8 +13356,8 @@ var toAlignmentDataValue = (alignment) => {
|
|
|
13322
13356
|
}
|
|
13323
13357
|
};
|
|
13324
13358
|
var getClassName = (component, additionalClassNames) => classNames(`${CSS_PREFIX$1}-${component}`, additionalClassNames);
|
|
13325
|
-
var Table$
|
|
13326
|
-
let { children, className, nonAria, slot } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$
|
|
13359
|
+
var Table$2 = forwardRef((_ref, ref) => {
|
|
13360
|
+
let { children, className, nonAria, slot } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$57);
|
|
13327
13361
|
return /* @__PURE__ */ jsx(nonAria ? "table" : Table, _objectSpread2(_objectSpread2({
|
|
13328
13362
|
className: getClassName(TableSubComponent.Table, className),
|
|
13329
13363
|
slot: slot !== null && slot !== void 0 ? slot : void 0
|
|
@@ -13332,7 +13366,7 @@ var Table$1 = forwardRef((_ref, ref) => {
|
|
|
13332
13366
|
children
|
|
13333
13367
|
}));
|
|
13334
13368
|
});
|
|
13335
|
-
Table$
|
|
13369
|
+
Table$2.displayName = TableSubComponent.Table;
|
|
13336
13370
|
var TableHeaderInner = (_ref2, ref) => {
|
|
13337
13371
|
let { children, className, nonAria } = _ref2, restProps = _objectWithoutProperties(_ref2, _excluded2$5);
|
|
13338
13372
|
return /* @__PURE__ */ jsx(nonAria ? "thead" : TableHeader, _objectSpread2(_objectSpread2({ className: getClassName(TableSubComponent.TableHeader, className) }, restProps), {}, {
|
|
@@ -13349,8 +13383,8 @@ var TableBodyInner = (_ref3, ref) => {
|
|
|
13349
13383
|
children: withRenderProp(children, (node) => node)
|
|
13350
13384
|
}));
|
|
13351
13385
|
};
|
|
13352
|
-
var TableBody$
|
|
13353
|
-
TableBody$
|
|
13386
|
+
var TableBody$2 = forwardRef(TableBodyInner);
|
|
13387
|
+
TableBody$2.displayName = TableSubComponent.TableBody;
|
|
13354
13388
|
var RowInner = (_ref4, ref) => {
|
|
13355
13389
|
let { children, className, depth = 0, nonAria, id, onAction } = _ref4, restProps = _objectWithoutProperties(_ref4, _excluded4);
|
|
13356
13390
|
const dataProperties = toDataProperties({ depth });
|
|
@@ -13472,7 +13506,7 @@ var DEFAULT_TABLE_HEIGHT = DEFAULT_ROW_HEIGHT * DEFAULT_NUM_ROWS + HEADER_HEIGHT
|
|
|
13472
13506
|
var CSS_PREFIX = "Layer__UI__VirtualizedTable";
|
|
13473
13507
|
var EMPTY_ARRAY$5 = [];
|
|
13474
13508
|
const VirtualizedDataTable = ({ columnConfig, data, isLoading, isError, componentName, ariaLabel, slots, shrinkHeightToFitRows = false, height = DEFAULT_TABLE_HEIGHT, rowHeight = DEFAULT_ROW_HEIGHT, overscan = DEFAULT_OVERSCAN }) => {
|
|
13475
|
-
const { EmptyState: EmptyState$
|
|
13509
|
+
const { EmptyState: EmptyState$8, ErrorState: ErrorState$9 } = slots;
|
|
13476
13510
|
const containerRef = useRef(null);
|
|
13477
13511
|
const renderedTableHeight = useMemo(() => {
|
|
13478
13512
|
if (!data) return height;
|
|
@@ -13505,7 +13539,7 @@ const VirtualizedDataTable = ({ columnConfig, data, isLoading, isError, componen
|
|
|
13505
13539
|
align: "center",
|
|
13506
13540
|
justify: "center",
|
|
13507
13541
|
className: `${CSS_PREFIX}__state-container`,
|
|
13508
|
-
children: /* @__PURE__ */ jsx(ErrorState$
|
|
13542
|
+
children: /* @__PURE__ */ jsx(ErrorState$9, {})
|
|
13509
13543
|
});
|
|
13510
13544
|
if (isLoading) return /* @__PURE__ */ jsx(HStack, {
|
|
13511
13545
|
align: "center",
|
|
@@ -13517,7 +13551,7 @@ const VirtualizedDataTable = ({ columnConfig, data, isLoading, isError, componen
|
|
|
13517
13551
|
align: "center",
|
|
13518
13552
|
justify: "center",
|
|
13519
13553
|
className: `${CSS_PREFIX}__state-container`,
|
|
13520
|
-
children: /* @__PURE__ */ jsx(EmptyState$
|
|
13554
|
+
children: /* @__PURE__ */ jsx(EmptyState$8, {})
|
|
13521
13555
|
});
|
|
13522
13556
|
const virtualItems = rowVirtualizer.getVirtualItems();
|
|
13523
13557
|
const totalSize = rowVirtualizer.getTotalSize();
|
|
@@ -13526,7 +13560,7 @@ const VirtualizedDataTable = ({ columnConfig, data, isLoading, isError, componen
|
|
|
13526
13560
|
ref: containerRef,
|
|
13527
13561
|
style: { height: renderedTableHeight },
|
|
13528
13562
|
"aria-label": ariaLabel,
|
|
13529
|
-
children: /* @__PURE__ */ jsxs(Table$
|
|
13563
|
+
children: /* @__PURE__ */ jsxs(Table$2, {
|
|
13530
13564
|
className: classNames(CSS_PREFIX, `Layer__UI__Table__${componentName}`),
|
|
13531
13565
|
"aria-label": ariaLabel,
|
|
13532
13566
|
children: [/* @__PURE__ */ jsx(TableHeader$1, {
|
|
@@ -13541,7 +13575,7 @@ const VirtualizedDataTable = ({ columnConfig, data, isLoading, isError, componen
|
|
|
13541
13575
|
children: flexRender(header.column.columnDef.header, header.getContext())
|
|
13542
13576
|
}, header.id);
|
|
13543
13577
|
})
|
|
13544
|
-
}), /* @__PURE__ */ jsx(TableBody$
|
|
13578
|
+
}), /* @__PURE__ */ jsx(TableBody$2, {
|
|
13545
13579
|
style: { height: totalSize },
|
|
13546
13580
|
children: virtualItems.map((virtualRow) => {
|
|
13547
13581
|
const row = rows[virtualRow.index];
|
|
@@ -13567,8 +13601,8 @@ const VirtualizedDataTable = ({ columnConfig, data, isLoading, isError, componen
|
|
|
13567
13601
|
};
|
|
13568
13602
|
var ROW_HEIGHT = 52;
|
|
13569
13603
|
var TABLE_HEIGHT = ROW_HEIGHT * 9 - 1;
|
|
13570
|
-
var EmptyState$
|
|
13571
|
-
var ErrorState$
|
|
13604
|
+
var EmptyState$7 = () => null;
|
|
13605
|
+
var ErrorState$8 = () => null;
|
|
13572
13606
|
function ValidateCsvTable({ data, headers, formatters, className }) {
|
|
13573
13607
|
const { t } = useTranslation();
|
|
13574
13608
|
const sortedData = useMemo(() => [...data].sort((a, b) => {
|
|
@@ -13623,8 +13657,8 @@ function ValidateCsvTable({ data, headers, formatters, className }) {
|
|
|
13623
13657
|
rowHeight: ROW_HEIGHT,
|
|
13624
13658
|
shrinkHeightToFitRows: true,
|
|
13625
13659
|
slots: {
|
|
13626
|
-
EmptyState: EmptyState$
|
|
13627
|
-
ErrorState: ErrorState$
|
|
13660
|
+
EmptyState: EmptyState$7,
|
|
13661
|
+
ErrorState: ErrorState$8
|
|
13628
13662
|
}
|
|
13629
13663
|
})
|
|
13630
13664
|
});
|
|
@@ -14496,7 +14530,7 @@ function useDelayedRemoveBankTransaction({ bankTransaction, onRemove }) {
|
|
|
14496
14530
|
}, [bankTransaction.recently_categorized]);
|
|
14497
14531
|
return useMemo(() => ({ isBeingRemoved }), [isBeingRemoved]);
|
|
14498
14532
|
}
|
|
14499
|
-
var _excluded$
|
|
14533
|
+
var _excluded$56 = ["bankTransactionId"];
|
|
14500
14534
|
var CATEGORIZE_BANK_TRANSACTION_TAG = "#categorize-bank-transaction";
|
|
14501
14535
|
var categorizeBankTransaction = put(({ businessId, bankTransactionId }) => `/v1/businesses/${businessId}/bank-transactions/${bankTransactionId}/categorize`);
|
|
14502
14536
|
function buildKey$73({ access_token: accessToken, apiUrl, businessId }) {
|
|
@@ -14520,7 +14554,7 @@ function useCategorizeBankTransaction() {
|
|
|
14520
14554
|
apiUrl: auth === null || auth === void 0 ? void 0 : auth.apiUrl,
|
|
14521
14555
|
businessId
|
|
14522
14556
|
})), ({ accessToken, apiUrl, businessId: businessId$1 }, _ref) => {
|
|
14523
|
-
let { arg: _ref2 } = _ref, { bankTransactionId } = _ref2, rest = _objectWithoutProperties(_ref2, _excluded$
|
|
14557
|
+
let { arg: _ref2 } = _ref, { bankTransactionId } = _ref2, rest = _objectWithoutProperties(_ref2, _excluded$56);
|
|
14524
14558
|
return categorizeBankTransaction(apiUrl, accessToken, {
|
|
14525
14559
|
params: {
|
|
14526
14560
|
businessId: businessId$1,
|
|
@@ -14586,7 +14620,7 @@ function useCategorizeBankTransactionWithCacheUpdate() {
|
|
|
14586
14620
|
isError
|
|
14587
14621
|
]);
|
|
14588
14622
|
}
|
|
14589
|
-
var _excluded$
|
|
14623
|
+
var _excluded$55 = ["bankTransactionId"];
|
|
14590
14624
|
var matchBankTransaction = put(({ businessId, bankTransactionId }) => `/v1/businesses/${businessId}/bank-transactions/${bankTransactionId}/match`);
|
|
14591
14625
|
var MATCH_BANK_TRANSACTION_TAG = "#match-bank-transaction";
|
|
14592
14626
|
function buildKey$72({ access_token: accessToken, apiUrl, businessId }) {
|
|
@@ -14610,7 +14644,7 @@ function useMatchBankTransaction() {
|
|
|
14610
14644
|
apiUrl: auth === null || auth === void 0 ? void 0 : auth.apiUrl,
|
|
14611
14645
|
businessId
|
|
14612
14646
|
})), ({ accessToken, apiUrl, businessId: businessId$1 }, _ref) => {
|
|
14613
|
-
let { arg: _ref2 } = _ref, { bankTransactionId } = _ref2, body = _objectWithoutProperties(_ref2, _excluded$
|
|
14647
|
+
let { arg: _ref2 } = _ref, { bankTransactionId } = _ref2, body = _objectWithoutProperties(_ref2, _excluded$55);
|
|
14614
14648
|
return matchBankTransaction(apiUrl, accessToken, {
|
|
14615
14649
|
params: {
|
|
14616
14650
|
businessId: businessId$1,
|
|
@@ -14738,14 +14772,14 @@ function useDelayedVisibility({ delay, initialVisibility = false }) {
|
|
|
14738
14772
|
}, []);
|
|
14739
14773
|
return { isVisible };
|
|
14740
14774
|
}
|
|
14741
|
-
var _excluded$
|
|
14775
|
+
var _excluded$54 = ["size"];
|
|
14742
14776
|
var File$1 = (_ref) => {
|
|
14743
14777
|
let { size = 12 } = _ref;
|
|
14744
14778
|
return /* @__PURE__ */ jsxs("svg", _objectSpread2(_objectSpread2({
|
|
14745
14779
|
xmlns: "http://www.w3.org/2000/svg",
|
|
14746
14780
|
viewBox: "0 0 12 12",
|
|
14747
14781
|
fill: "none"
|
|
14748
|
-
}, _objectWithoutProperties(_ref, _excluded$
|
|
14782
|
+
}, _objectWithoutProperties(_ref, _excluded$54)), {}, {
|
|
14749
14783
|
width: size,
|
|
14750
14784
|
height: size,
|
|
14751
14785
|
children: [
|
|
@@ -14847,7 +14881,7 @@ const variants = {
|
|
|
14847
14881
|
}
|
|
14848
14882
|
}
|
|
14849
14883
|
};
|
|
14850
|
-
var _excluded$
|
|
14884
|
+
var _excluded$53 = [
|
|
14851
14885
|
"as",
|
|
14852
14886
|
"children",
|
|
14853
14887
|
"variant",
|
|
@@ -14856,7 +14890,7 @@ var _excluded$52 = [
|
|
|
14856
14890
|
"motionKey"
|
|
14857
14891
|
];
|
|
14858
14892
|
function AnimatedPresenceElementInner(_ref, ref) {
|
|
14859
|
-
let { as, children, variant, isOpen, slotProps = { AnimatePresence: { initial: false } }, motionKey } = _ref, props = _objectWithoutProperties(_ref, _excluded$
|
|
14893
|
+
let { as, children, variant, isOpen, slotProps = { AnimatePresence: { initial: false } }, motionKey } = _ref, props = _objectWithoutProperties(_ref, _excluded$53);
|
|
14860
14894
|
const config = variants[variant];
|
|
14861
14895
|
const MotionComponent = motion[as !== null && as !== void 0 ? as : "div"];
|
|
14862
14896
|
return /* @__PURE__ */ jsx(AnimatePresence, _objectSpread2(_objectSpread2({}, slotProps.AnimatePresence), {}, { children: isOpen && /* @__PURE__ */ jsx(MotionComponent, _objectSpread2(_objectSpread2({
|
|
@@ -15001,14 +15035,14 @@ function useBookkeepingPeriods() {
|
|
|
15001
15035
|
return Reflect.get(target, prop);
|
|
15002
15036
|
} });
|
|
15003
15037
|
}
|
|
15004
|
-
var _excluded$
|
|
15038
|
+
var _excluded$52 = ["size"];
|
|
15005
15039
|
var Clock$1 = (_ref) => {
|
|
15006
15040
|
let { size = 18 } = _ref;
|
|
15007
15041
|
return /* @__PURE__ */ jsxs("svg", _objectSpread2(_objectSpread2({
|
|
15008
15042
|
xmlns: "http://www.w3.org/2000/svg",
|
|
15009
15043
|
viewBox: "0 0 18 18",
|
|
15010
15044
|
fill: "none"
|
|
15011
|
-
}, _objectWithoutProperties(_ref, _excluded$
|
|
15045
|
+
}, _objectWithoutProperties(_ref, _excluded$52)), {}, {
|
|
15012
15046
|
width: size,
|
|
15013
15047
|
height: size,
|
|
15014
15048
|
children: [/* @__PURE__ */ jsx("path", {
|
|
@@ -15513,14 +15547,14 @@ const useSplitsForm = ({ bankTransaction, selectedCategory, isOpen }) => {
|
|
|
15513
15547
|
saveLocalSplitsToCategoryStore
|
|
15514
15548
|
};
|
|
15515
15549
|
};
|
|
15516
|
-
var _excluded$
|
|
15550
|
+
var _excluded$51 = ["size"];
|
|
15517
15551
|
var ScissorsFullOpen = (_ref) => {
|
|
15518
15552
|
let { size = 12 } = _ref;
|
|
15519
15553
|
return /* @__PURE__ */ jsx("svg", _objectSpread2(_objectSpread2({
|
|
15520
15554
|
viewBox: "0 0 12 12",
|
|
15521
15555
|
fill: "none",
|
|
15522
15556
|
xmlns: "http://www.w3.org/2000/svg"
|
|
15523
|
-
}, _objectWithoutProperties(_ref, _excluded$
|
|
15557
|
+
}, _objectWithoutProperties(_ref, _excluded$51)), {}, {
|
|
15524
15558
|
width: size,
|
|
15525
15559
|
height: size,
|
|
15526
15560
|
children: /* @__PURE__ */ jsxs("g", {
|
|
@@ -15566,14 +15600,14 @@ var ScissorsFullOpen = (_ref) => {
|
|
|
15566
15600
|
}));
|
|
15567
15601
|
};
|
|
15568
15602
|
var ScissorsFullOpen_default = ScissorsFullOpen;
|
|
15569
|
-
var _excluded$
|
|
15603
|
+
var _excluded$50 = ["size"];
|
|
15570
15604
|
var Trash$1 = (_ref) => {
|
|
15571
15605
|
let { size = 18 } = _ref;
|
|
15572
15606
|
return /* @__PURE__ */ jsxs("svg", _objectSpread2(_objectSpread2({
|
|
15573
15607
|
xmlns: "http://www.w3.org/2000/svg",
|
|
15574
15608
|
viewBox: "0 0 18 18",
|
|
15575
15609
|
fill: "none"
|
|
15576
|
-
}, _objectWithoutProperties(_ref, _excluded$
|
|
15610
|
+
}, _objectWithoutProperties(_ref, _excluded$50)), {}, {
|
|
15577
15611
|
width: size,
|
|
15578
15612
|
height: size,
|
|
15579
15613
|
children: [
|
|
@@ -16321,9 +16355,9 @@ const ReceiptsProvider = ({ children, bankTransaction, isActive }) => {
|
|
|
16321
16355
|
children
|
|
16322
16356
|
});
|
|
16323
16357
|
};
|
|
16324
|
-
var _excluded$
|
|
16358
|
+
var _excluded$49 = ["size"];
|
|
16325
16359
|
var Eye = (_ref) => {
|
|
16326
|
-
let { size = 18 } = _ref, props = _objectWithoutProperties(_ref, _excluded$
|
|
16360
|
+
let { size = 18 } = _ref, props = _objectWithoutProperties(_ref, _excluded$49);
|
|
16327
16361
|
return /* @__PURE__ */ jsx("svg", _objectSpread2(_objectSpread2({
|
|
16328
16362
|
xmlns: "http://www.w3.org/2000/svg",
|
|
16329
16363
|
width: size,
|
|
@@ -16417,9 +16451,9 @@ const FileThumb = ({ url, floatingActions = false, uploadPending, deletePending,
|
|
|
16417
16451
|
}) : null]
|
|
16418
16452
|
});
|
|
16419
16453
|
};
|
|
16420
|
-
var _excluded$
|
|
16454
|
+
var _excluded$48 = ["className", "children"];
|
|
16421
16455
|
const TextButton = (_ref) => {
|
|
16422
|
-
let { className, children } = _ref, props = _objectWithoutProperties(_ref, _excluded$
|
|
16456
|
+
let { className, children } = _ref, props = _objectWithoutProperties(_ref, _excluded$48);
|
|
16423
16457
|
const baseClassName$1 = classNames("Layer__text-btn", className);
|
|
16424
16458
|
return /* @__PURE__ */ jsx("button", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
16425
16459
|
className: baseClassName$1,
|
|
@@ -16465,7 +16499,7 @@ const FileInput = ({ text, onUpload, disabled = false, secondary, iconOnly = fal
|
|
|
16465
16499
|
style: { display: "none" }
|
|
16466
16500
|
})] });
|
|
16467
16501
|
};
|
|
16468
|
-
var _excluded$
|
|
16502
|
+
var _excluded$47 = ["bankTransaction", "isActive"];
|
|
16469
16503
|
var MAX_RECEIPTS_COUNT = 10;
|
|
16470
16504
|
var openReceiptInNewTab = (url, receiptTitle) => (e) => {
|
|
16471
16505
|
e.preventDefault();
|
|
@@ -16486,7 +16520,7 @@ var BankTransactionReceiptsWithProvider = forwardRef((_ref, ref) => {
|
|
|
16486
16520
|
return /* @__PURE__ */ jsx(ReceiptsProvider, {
|
|
16487
16521
|
bankTransaction,
|
|
16488
16522
|
isActive,
|
|
16489
|
-
children: /* @__PURE__ */ jsx(BankTransactionReceipts, _objectSpread2(_objectSpread2({}, _objectWithoutProperties(_ref, _excluded$
|
|
16523
|
+
children: /* @__PURE__ */ jsx(BankTransactionReceipts, _objectSpread2(_objectSpread2({}, _objectWithoutProperties(_ref, _excluded$47)), {}, { ref }))
|
|
16490
16524
|
});
|
|
16491
16525
|
});
|
|
16492
16526
|
BankTransactionReceiptsWithProvider.displayName = "BankTransactionReceiptsWithProvider";
|
|
@@ -16565,14 +16599,14 @@ const getCurrencyFormatConfig = (intl) => {
|
|
|
16565
16599
|
suffix: parts.slice(lastNumberIndex + 1).map((part) => part.value).join("")
|
|
16566
16600
|
};
|
|
16567
16601
|
};
|
|
16568
|
-
var _excluded$
|
|
16602
|
+
var _excluded$46 = [
|
|
16569
16603
|
"onChange",
|
|
16570
16604
|
"className",
|
|
16571
16605
|
"errorMessage",
|
|
16572
16606
|
"isInvalid"
|
|
16573
16607
|
];
|
|
16574
16608
|
const AmountInput = (_ref) => {
|
|
16575
|
-
let { onChange, className, errorMessage, isInvalid } = _ref, props = _objectWithoutProperties(_ref, _excluded$
|
|
16609
|
+
let { onChange, className, errorMessage, isInvalid } = _ref, props = _objectWithoutProperties(_ref, _excluded$46);
|
|
16576
16610
|
const intl = useIntl();
|
|
16577
16611
|
const formatter = useIntlFormatter();
|
|
16578
16612
|
const currencyFormatConfig = useMemo(() => getCurrencyFormatConfig(intl), [intl]);
|
|
@@ -17212,14 +17246,14 @@ const BankTransactionsMobileListItemCheckbox = ({ bulkActionsEnabled, bankTransa
|
|
|
17212
17246
|
})
|
|
17213
17247
|
});
|
|
17214
17248
|
};
|
|
17215
|
-
var _excluded$
|
|
17249
|
+
var _excluded$45 = ["size"];
|
|
17216
17250
|
var Paperclip = (_ref) => {
|
|
17217
17251
|
let { size = 20 } = _ref;
|
|
17218
17252
|
return /* @__PURE__ */ jsx("svg", _objectSpread2(_objectSpread2({
|
|
17219
17253
|
xmlns: "http://www.w3.org/2000/svg",
|
|
17220
17254
|
viewBox: "0 0 20 20",
|
|
17221
17255
|
fill: "none"
|
|
17222
|
-
}, _objectWithoutProperties(_ref, _excluded$
|
|
17256
|
+
}, _objectWithoutProperties(_ref, _excluded$45)), {}, {
|
|
17223
17257
|
width: size,
|
|
17224
17258
|
height: size,
|
|
17225
17259
|
children: /* @__PURE__ */ jsx("path", {
|
|
@@ -18299,14 +18333,14 @@ const BankTransactionRow = ({ index, bankTransaction, initialLoad, showDescripti
|
|
|
18299
18333
|
})
|
|
18300
18334
|
}) })] });
|
|
18301
18335
|
};
|
|
18302
|
-
var _excluded$
|
|
18336
|
+
var _excluded$44 = ["size"];
|
|
18303
18337
|
var Inbox = (_ref) => {
|
|
18304
18338
|
let { size = 18 } = _ref;
|
|
18305
18339
|
return /* @__PURE__ */ jsxs("svg", _objectSpread2(_objectSpread2({
|
|
18306
18340
|
xmlns: "http://www.w3.org/2000/svg",
|
|
18307
18341
|
viewBox: "0 0 18 18",
|
|
18308
18342
|
fill: "none"
|
|
18309
|
-
}, _objectWithoutProperties(_ref, _excluded$
|
|
18343
|
+
}, _objectWithoutProperties(_ref, _excluded$44)), {}, {
|
|
18310
18344
|
width: size,
|
|
18311
18345
|
height: size,
|
|
18312
18346
|
children: [/* @__PURE__ */ jsx("path", {
|
|
@@ -18604,14 +18638,14 @@ function useArchiveCategorizationRule() {
|
|
|
18604
18638
|
return Reflect.get(target, prop);
|
|
18605
18639
|
} });
|
|
18606
18640
|
}
|
|
18607
|
-
var _excluded$
|
|
18641
|
+
var _excluded$43 = ["size"];
|
|
18608
18642
|
var BackArrow = (_ref) => {
|
|
18609
18643
|
let { size = 18 } = _ref;
|
|
18610
18644
|
return /* @__PURE__ */ jsx("svg", _objectSpread2(_objectSpread2({
|
|
18611
18645
|
viewBox: "0 0 12 12",
|
|
18612
18646
|
fill: "none",
|
|
18613
18647
|
xmlns: "http://www.w3.org/2000/svg"
|
|
18614
|
-
}, _objectWithoutProperties(_ref, _excluded$
|
|
18648
|
+
}, _objectWithoutProperties(_ref, _excluded$43)), {}, {
|
|
18615
18649
|
width: size,
|
|
18616
18650
|
height: size,
|
|
18617
18651
|
children: /* @__PURE__ */ jsx("path", {
|
|
@@ -18708,17 +18742,17 @@ var EMPTY_ARRAY$4 = [];
|
|
|
18708
18742
|
var isSelectionEnabled = (props) => props.selectionMode !== "none" && props.enableSelection;
|
|
18709
18743
|
var isGrouped = (data) => !!data && !Array.isArray(data);
|
|
18710
18744
|
const MobileList = ({ ariaLabel, data, slots, renderItem, onClickItem, isLoading, isError, variant = "default", enableSelection = false, selectionMode = "none", selectedKeys, onSelectionChange }) => {
|
|
18711
|
-
const { EmptyState: EmptyState$
|
|
18745
|
+
const { EmptyState: EmptyState$8, ErrorState: ErrorState$9 } = slots;
|
|
18712
18746
|
const resolvedSelectionMode = isSelectionEnabled({
|
|
18713
18747
|
enableSelection,
|
|
18714
18748
|
selectionMode
|
|
18715
18749
|
}) ? selectionMode : "none";
|
|
18716
18750
|
const resolvedSelectionBehavior = resolvedSelectionMode === "none" ? "toggle" : void 0;
|
|
18717
18751
|
const renderEmptyState = useCallback(() => {
|
|
18718
|
-
return /* @__PURE__ */ jsx(EmptyState$
|
|
18719
|
-
}, [EmptyState$
|
|
18752
|
+
return /* @__PURE__ */ jsx(EmptyState$8, {});
|
|
18753
|
+
}, [EmptyState$8]);
|
|
18720
18754
|
if (isLoading) return /* @__PURE__ */ jsx(MobileListSkeleton, { variant });
|
|
18721
|
-
if (isError) return /* @__PURE__ */ jsx(ErrorState$
|
|
18755
|
+
if (isError) return /* @__PURE__ */ jsx(ErrorState$9, {});
|
|
18722
18756
|
const renderRow = (item) => /* @__PURE__ */ jsx(MobileListItem, {
|
|
18723
18757
|
item,
|
|
18724
18758
|
onClickItem,
|
|
@@ -18773,9 +18807,9 @@ const usePaginationRange = ({ totalCount, pageSize, siblingCount = 1, currentPag
|
|
|
18773
18807
|
currentPage
|
|
18774
18808
|
]);
|
|
18775
18809
|
};
|
|
18776
|
-
var _excluded$
|
|
18810
|
+
var _excluded$42 = ["children", "isSelected"];
|
|
18777
18811
|
var PaginationButton = (_ref) => {
|
|
18778
|
-
let { children, isSelected } = _ref, buttonProps = _objectWithoutProperties(_ref, _excluded$
|
|
18812
|
+
let { children, isSelected } = _ref, buttonProps = _objectWithoutProperties(_ref, _excluded$42);
|
|
18779
18813
|
return /* @__PURE__ */ jsx(Button$1, _objectSpread2(_objectSpread2({
|
|
18780
18814
|
inset: true,
|
|
18781
18815
|
icon: true,
|
|
@@ -18842,11 +18876,11 @@ const Pagination = ({ onPageChange, totalCount, siblingCount = 1, currentPage, p
|
|
|
18842
18876
|
})
|
|
18843
18877
|
});
|
|
18844
18878
|
};
|
|
18845
|
-
var _excluded$
|
|
18879
|
+
var _excluded$41 = ["data", "paginationProps"];
|
|
18846
18880
|
var EMPTY_ARRAY$3 = [];
|
|
18847
18881
|
const PaginatedMobileList = (props) => {
|
|
18848
18882
|
var _data$length;
|
|
18849
|
-
const { data, paginationProps } = props, listProps = _objectWithoutProperties(props, _excluded$
|
|
18883
|
+
const { data, paginationProps } = props, listProps = _objectWithoutProperties(props, _excluded$41);
|
|
18850
18884
|
const { initialPage = 0, onSetPage, pageSize = 20, hasMore, fetchMore, autoResetPageIndexRef } = paginationProps;
|
|
18851
18885
|
const { pageItems, pageIndex, setPage } = usePaginatedList({
|
|
18852
18886
|
data: data !== null && data !== void 0 ? data : EMPTY_ARRAY$3,
|
|
@@ -19011,7 +19045,7 @@ const useColumnPinningStyles = (headerGroups) => {
|
|
|
19011
19045
|
};
|
|
19012
19046
|
const DataTable = ({ isLoading, isError, componentName, ariaLabel, slots, dependencies: dependencies$1, data, headerGroups, numColumns, withClickableRow }) => {
|
|
19013
19047
|
const nonAria = headerGroups.length > 1;
|
|
19014
|
-
const { EmptyState: EmptyState$
|
|
19048
|
+
const { EmptyState: EmptyState$8, ErrorState: ErrorState$9 } = slots;
|
|
19015
19049
|
const { headerRef, pinningStyles } = useColumnPinningStyles(headerGroups);
|
|
19016
19050
|
const isEmptyTable = (data === null || data === void 0 ? void 0 : data.length) === 0;
|
|
19017
19051
|
const renderTableBody = useMemo(() => {
|
|
@@ -19022,7 +19056,7 @@ const DataTable = ({ isLoading, isError, componentName, ariaLabel, slots, depend
|
|
|
19022
19056
|
className: "Layer__DataTable__EmptyState__Cell",
|
|
19023
19057
|
colSpan: numColumns,
|
|
19024
19058
|
nonAria,
|
|
19025
|
-
children: /* @__PURE__ */ jsx(ErrorState$
|
|
19059
|
+
children: /* @__PURE__ */ jsx(ErrorState$9, {})
|
|
19026
19060
|
})
|
|
19027
19061
|
});
|
|
19028
19062
|
if (isLoading) return /* @__PURE__ */ jsx(Row$1, {
|
|
@@ -19042,7 +19076,7 @@ const DataTable = ({ isLoading, isError, componentName, ariaLabel, slots, depend
|
|
|
19042
19076
|
className: "Layer__DataTable__EmptyState__Cell",
|
|
19043
19077
|
colSpan: numColumns,
|
|
19044
19078
|
nonAria,
|
|
19045
|
-
children: /* @__PURE__ */ jsx(EmptyState$
|
|
19079
|
+
children: /* @__PURE__ */ jsx(EmptyState$8, {})
|
|
19046
19080
|
})
|
|
19047
19081
|
});
|
|
19048
19082
|
return /* @__PURE__ */ jsx(Fragment$1, { children: data === null || data === void 0 ? void 0 : data.map((row) => {
|
|
@@ -19073,15 +19107,15 @@ const DataTable = ({ isLoading, isError, componentName, ariaLabel, slots, depend
|
|
|
19073
19107
|
data,
|
|
19074
19108
|
nonAria,
|
|
19075
19109
|
numColumns,
|
|
19076
|
-
ErrorState$
|
|
19077
|
-
EmptyState$
|
|
19110
|
+
ErrorState$9,
|
|
19111
|
+
EmptyState$8,
|
|
19078
19112
|
withClickableRow,
|
|
19079
19113
|
componentName,
|
|
19080
19114
|
pinningStyles
|
|
19081
19115
|
]);
|
|
19082
19116
|
return /* @__PURE__ */ jsx("div", {
|
|
19083
19117
|
className: "Layer__UI__Table-ScrollContainer",
|
|
19084
|
-
children: /* @__PURE__ */ jsxs(Table$
|
|
19118
|
+
children: /* @__PURE__ */ jsxs(Table$2, {
|
|
19085
19119
|
"aria-label": ariaLabel,
|
|
19086
19120
|
className: `Layer__UI__Table__${componentName}`,
|
|
19087
19121
|
nonAria,
|
|
@@ -19104,7 +19138,7 @@ const DataTable = ({ isLoading, isError, componentName, ariaLabel, slots, depend
|
|
|
19104
19138
|
}, header.id);
|
|
19105
19139
|
})
|
|
19106
19140
|
}, headerGroup.id))
|
|
19107
|
-
}), /* @__PURE__ */ jsx(TableBody$
|
|
19141
|
+
}), /* @__PURE__ */ jsx(TableBody$2, {
|
|
19108
19142
|
dependencies: dependencies$1,
|
|
19109
19143
|
nonAria,
|
|
19110
19144
|
children: renderTableBody
|
|
@@ -19165,7 +19199,7 @@ var CategorizationRuleColumns = /* @__PURE__ */ function(CategorizationRuleColum
|
|
|
19165
19199
|
CategorizationRuleColumns$1["Delete"] = "Delete";
|
|
19166
19200
|
return CategorizationRuleColumns$1;
|
|
19167
19201
|
}(CategorizationRuleColumns || {});
|
|
19168
|
-
var COMPONENT_NAME$
|
|
19202
|
+
var COMPONENT_NAME$14 = "CategorizationRulesTable";
|
|
19169
19203
|
const CategorizationRulesTable = ({ data, isLoading, isError, paginationProps, options, onDeleteRule, slots }) => {
|
|
19170
19204
|
const { t } = useTranslation();
|
|
19171
19205
|
const columnConfig = useMemo(() => [
|
|
@@ -19224,7 +19258,7 @@ const CategorizationRulesTable = ({ data, isLoading, isError, paginationProps, o
|
|
|
19224
19258
|
isError,
|
|
19225
19259
|
columnConfig,
|
|
19226
19260
|
paginationProps,
|
|
19227
|
-
componentName: COMPONENT_NAME$
|
|
19261
|
+
componentName: COMPONENT_NAME$14,
|
|
19228
19262
|
slots
|
|
19229
19263
|
});
|
|
19230
19264
|
};
|
|
@@ -19609,14 +19643,14 @@ function RuleUpdatesPromptStep({ ruleSuggestion, close, isDrawer }) {
|
|
|
19609
19643
|
function asMutable(a) {
|
|
19610
19644
|
return a;
|
|
19611
19645
|
}
|
|
19612
|
-
var COMPONENT_NAME$
|
|
19646
|
+
var COMPONENT_NAME$13 = "AffectedTransactionsTable";
|
|
19613
19647
|
var TransactionColumns = /* @__PURE__ */ function(TransactionColumns$1) {
|
|
19614
19648
|
TransactionColumns$1["Date"] = "Date";
|
|
19615
19649
|
TransactionColumns$1["Description"] = "Description";
|
|
19616
19650
|
TransactionColumns$1["Amount"] = "Amount";
|
|
19617
19651
|
return TransactionColumns$1;
|
|
19618
19652
|
}(TransactionColumns || {});
|
|
19619
|
-
var ErrorState$
|
|
19653
|
+
var ErrorState$7 = () => {
|
|
19620
19654
|
const { t } = useTranslation();
|
|
19621
19655
|
return /* @__PURE__ */ jsx(DataState, {
|
|
19622
19656
|
spacing: true,
|
|
@@ -19625,7 +19659,7 @@ var ErrorState$6 = () => {
|
|
|
19625
19659
|
description: t("categorizationRules:error.load_affected_transactions", "There was an error loading the affected transactions")
|
|
19626
19660
|
});
|
|
19627
19661
|
};
|
|
19628
|
-
var EmptyState$
|
|
19662
|
+
var EmptyState$6 = () => {
|
|
19629
19663
|
const { t } = useTranslation();
|
|
19630
19664
|
return /* @__PURE__ */ jsx(DataState, {
|
|
19631
19665
|
spacing: true,
|
|
@@ -19670,7 +19704,7 @@ const AffectedTransactionsTable = ({ transactions, isLoading = false, isError =
|
|
|
19670
19704
|
return /* @__PURE__ */ jsx(VStack, {
|
|
19671
19705
|
className: "Layer__AffectedTransactionsTable",
|
|
19672
19706
|
children: /* @__PURE__ */ jsx(VirtualizedDataTable, {
|
|
19673
|
-
componentName: COMPONENT_NAME$
|
|
19707
|
+
componentName: COMPONENT_NAME$13,
|
|
19674
19708
|
ariaLabel: t("bankTransactions:label.affected_transactions", "Affected transactions"),
|
|
19675
19709
|
columnConfig,
|
|
19676
19710
|
data: transactions,
|
|
@@ -19679,8 +19713,8 @@ const AffectedTransactionsTable = ({ transactions, isLoading = false, isError =
|
|
|
19679
19713
|
height: 500,
|
|
19680
19714
|
shrinkHeightToFitRows: true,
|
|
19681
19715
|
slots: {
|
|
19682
|
-
EmptyState: EmptyState$
|
|
19683
|
-
ErrorState: ErrorState$
|
|
19716
|
+
EmptyState: EmptyState$6,
|
|
19717
|
+
ErrorState: ErrorState$7
|
|
19684
19718
|
}
|
|
19685
19719
|
})
|
|
19686
19720
|
});
|
|
@@ -19810,7 +19844,7 @@ const SuggestedCategorizationRuleUpdatesDialog = ({ isOpen, onOpenChange, ruleSu
|
|
|
19810
19844
|
})] })
|
|
19811
19845
|
});
|
|
19812
19846
|
};
|
|
19813
|
-
var _excluded$
|
|
19847
|
+
var _excluded$40 = [
|
|
19814
19848
|
"onError",
|
|
19815
19849
|
"showTags",
|
|
19816
19850
|
"showCustomerVendor",
|
|
@@ -19820,9 +19854,9 @@ var _excluded$39 = [
|
|
|
19820
19854
|
"renderInAppLink",
|
|
19821
19855
|
"filters"
|
|
19822
19856
|
];
|
|
19823
|
-
var COMPONENT_NAME$
|
|
19857
|
+
var COMPONENT_NAME$12 = "bank-transactions";
|
|
19824
19858
|
const BankTransactions = (_ref) => {
|
|
19825
|
-
let { onError, showTags = false, showCustomerVendor = false, monthlyView = false, applyGlobalDateRange = false, mode, renderInAppLink, filters } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$
|
|
19859
|
+
let { onError, showTags = false, showCustomerVendor = false, monthlyView = false, applyGlobalDateRange = false, mode, renderInAppLink, filters } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$40);
|
|
19826
19860
|
usePreloadTagDimensions({ isEnabled: showTags });
|
|
19827
19861
|
usePreloadCustomers({ isEnabled: showCustomerVendor });
|
|
19828
19862
|
usePreloadVendors({ isEnabled: showCustomerVendor });
|
|
@@ -19997,7 +20031,7 @@ var BankTransactionsTableView = ({ asWidget = false, pageSize = 20, showDescript
|
|
|
19997
20031
|
return /* @__PURE__ */ jsxs(Container, {
|
|
19998
20032
|
className: classNames("Layer__Public", display === DisplayState.review ? "Layer__bank-transactions--to-review" : "Layer__bank-transactions--categorized"),
|
|
19999
20033
|
transparentBg: listView && mobileComponent === "mobileList",
|
|
20000
|
-
name: COMPONENT_NAME$
|
|
20034
|
+
name: COMPONENT_NAME$12,
|
|
20001
20035
|
asWidget,
|
|
20002
20036
|
ref: containerRef,
|
|
20003
20037
|
children: [
|
|
@@ -20128,9 +20162,9 @@ function QuickbooksContextProvider({ children }) {
|
|
|
20128
20162
|
children
|
|
20129
20163
|
});
|
|
20130
20164
|
}
|
|
20131
|
-
var _excluded$
|
|
20165
|
+
var _excluded$39 = ["size"];
|
|
20132
20166
|
var Cog = (_ref) => {
|
|
20133
|
-
let { size = 12 } = _ref, props = _objectWithoutProperties(_ref, _excluded$
|
|
20167
|
+
let { size = 12 } = _ref, props = _objectWithoutProperties(_ref, _excluded$39);
|
|
20134
20168
|
const id = useId();
|
|
20135
20169
|
return /* @__PURE__ */ jsxs("svg", _objectSpread2(_objectSpread2({
|
|
20136
20170
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -20161,9 +20195,9 @@ var Cog = (_ref) => {
|
|
|
20161
20195
|
}) })] }));
|
|
20162
20196
|
};
|
|
20163
20197
|
var Cog_default = Cog;
|
|
20164
|
-
var _excluded$
|
|
20198
|
+
var _excluded$38 = ["size"];
|
|
20165
20199
|
var QuickbooksIcon = (_ref) => {
|
|
20166
|
-
let { size = 24 } = _ref, props = _objectWithoutProperties(_ref, _excluded$
|
|
20200
|
+
let { size = 24 } = _ref, props = _objectWithoutProperties(_ref, _excluded$38);
|
|
20167
20201
|
return /* @__PURE__ */ jsxs("svg", _objectSpread2(_objectSpread2({
|
|
20168
20202
|
xmlns: "http://www.w3.org/2000/svg",
|
|
20169
20203
|
viewBox: "0 0 24 24",
|
|
@@ -20350,14 +20384,14 @@ function IntegrationsQuickbooksUnlinkConfirmationModal({ isOpen, onOpenChange })
|
|
|
20350
20384
|
errorText: t("integrations:error.unlink_failed", "Unlink failed. Please check your connection and try again in a few seconds.")
|
|
20351
20385
|
});
|
|
20352
20386
|
}
|
|
20353
|
-
var _excluded$
|
|
20387
|
+
var _excluded$37 = ["size"];
|
|
20354
20388
|
var MoreVertical = (_ref) => {
|
|
20355
20389
|
let { size = 18 } = _ref;
|
|
20356
20390
|
return /* @__PURE__ */ jsxs("svg", _objectSpread2(_objectSpread2({
|
|
20357
20391
|
viewBox: "0 0 16 14",
|
|
20358
20392
|
fill: "none",
|
|
20359
20393
|
xmlns: "http://www.w3.org/2000/svg"
|
|
20360
|
-
}, _objectWithoutProperties(_ref, _excluded$
|
|
20394
|
+
}, _objectWithoutProperties(_ref, _excluded$37)), {}, {
|
|
20361
20395
|
width: size,
|
|
20362
20396
|
height: size,
|
|
20363
20397
|
children: [
|
|
@@ -20520,7 +20554,7 @@ const IntegrationsContent = () => {
|
|
|
20520
20554
|
children: (quickbooksConnectionStatus === null || quickbooksConnectionStatus === void 0 ? void 0 : quickbooksConnectionStatus.is_connected) && /* @__PURE__ */ jsx(IntegrationsQuickbooksItemThumb, {})
|
|
20521
20555
|
});
|
|
20522
20556
|
};
|
|
20523
|
-
var COMPONENT_NAME$
|
|
20557
|
+
var COMPONENT_NAME$11 = "integrations";
|
|
20524
20558
|
const Integrations = (props) => {
|
|
20525
20559
|
return /* @__PURE__ */ jsx(QuickbooksContextProvider, { children: /* @__PURE__ */ jsx(IntegrationsComponent, _objectSpread2({}, props)) });
|
|
20526
20560
|
};
|
|
@@ -20529,7 +20563,7 @@ const IntegrationsComponent = ({ stringOverrides }) => {
|
|
|
20529
20563
|
const { quickbooksConnectionStatus } = useContext(QuickbooksContext);
|
|
20530
20564
|
const isLoading = quickbooksConnectionStatus === void 0;
|
|
20531
20565
|
return /* @__PURE__ */ jsxs(Container, {
|
|
20532
|
-
name: COMPONENT_NAME$
|
|
20566
|
+
name: COMPONENT_NAME$11,
|
|
20533
20567
|
children: [
|
|
20534
20568
|
/* @__PURE__ */ jsxs(Header$4, {
|
|
20535
20569
|
className: "Layer__linked-accounts__header",
|
|
@@ -20551,14 +20585,14 @@ const IntegrationsComponent = ({ stringOverrides }) => {
|
|
|
20551
20585
|
]
|
|
20552
20586
|
});
|
|
20553
20587
|
};
|
|
20554
|
-
var _excluded$
|
|
20588
|
+
var _excluded$36 = ["size"];
|
|
20555
20589
|
var PlusIcon = (_ref) => {
|
|
20556
20590
|
let { size = 14 } = _ref;
|
|
20557
20591
|
return /* @__PURE__ */ jsxs("svg", _objectSpread2(_objectSpread2({
|
|
20558
20592
|
xmlns: "http://www.w3.org/2000/svg",
|
|
20559
20593
|
viewBox: "0 0 16 16",
|
|
20560
20594
|
fill: "none"
|
|
20561
|
-
}, _objectWithoutProperties(_ref, _excluded$
|
|
20595
|
+
}, _objectWithoutProperties(_ref, _excluded$36)), {}, {
|
|
20562
20596
|
width: size,
|
|
20563
20597
|
height: size,
|
|
20564
20598
|
children: [
|
|
@@ -20633,14 +20667,14 @@ function useConfirmAndExcludeMultiple({ onSuccess }) {
|
|
|
20633
20667
|
throwOnError: false
|
|
20634
20668
|
});
|
|
20635
20669
|
}
|
|
20636
|
-
var _excluded$
|
|
20670
|
+
var _excluded$35 = ["size"];
|
|
20637
20671
|
var InstitutionIcon = (_ref) => {
|
|
20638
20672
|
let { size = 18 } = _ref;
|
|
20639
20673
|
return /* @__PURE__ */ jsxs("svg", _objectSpread2(_objectSpread2({
|
|
20640
20674
|
viewBox: "0 0 27 28",
|
|
20641
20675
|
fill: "none",
|
|
20642
20676
|
xmlns: "http://www.w3.org/2000/svg"
|
|
20643
|
-
}, _objectWithoutProperties(_ref, _excluded$
|
|
20677
|
+
}, _objectWithoutProperties(_ref, _excluded$35)), {}, {
|
|
20644
20678
|
width: size,
|
|
20645
20679
|
height: size,
|
|
20646
20680
|
children: [
|
|
@@ -21166,10 +21200,10 @@ const MenuItem$2 = forwardRef(function MenuItem$3({ children, textValue, onActio
|
|
|
21166
21200
|
children
|
|
21167
21201
|
});
|
|
21168
21202
|
});
|
|
21169
|
-
var _excluded$
|
|
21203
|
+
var _excluded$34 = ["children", "status"];
|
|
21170
21204
|
var PILL_CLASS_NAME = "Layer__Pill";
|
|
21171
21205
|
const Pill = forwardRef(function Pill$1(_ref, ref) {
|
|
21172
|
-
let { children, status } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$
|
|
21206
|
+
let { children, status } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$34);
|
|
21173
21207
|
const dataProperties = toDataProperties({ status });
|
|
21174
21208
|
return /* @__PURE__ */ jsx(Button, _objectSpread2(_objectSpread2(_objectSpread2({}, restProps), dataProperties), {}, {
|
|
21175
21209
|
className: PILL_CLASS_NAME,
|
|
@@ -21848,7 +21882,7 @@ function OpeningBalanceModal({ stringOverrides }) {
|
|
|
21848
21882
|
})
|
|
21849
21883
|
});
|
|
21850
21884
|
}
|
|
21851
|
-
var COMPONENT_NAME$
|
|
21885
|
+
var COMPONENT_NAME$10 = "linked-accounts";
|
|
21852
21886
|
const LinkedAccounts = (props) => {
|
|
21853
21887
|
return /* @__PURE__ */ jsx(AccountConfirmationStoreProvider, { children: /* @__PURE__ */ jsx(LinkedAccountsProvider, { children: /* @__PURE__ */ jsx(LinkedAccountsComponent, _objectSpread2({}, props)) }) });
|
|
21854
21888
|
};
|
|
@@ -21856,7 +21890,7 @@ const LinkedAccountsComponent = ({ asWidget, elevated = false, showLedgerBalance
|
|
|
21856
21890
|
const { t } = useTranslation();
|
|
21857
21891
|
const { isLoading, error: error$38, isValidating, refetchAccounts } = useContext(LinkedAccountsContext);
|
|
21858
21892
|
return /* @__PURE__ */ jsxs(Container, {
|
|
21859
|
-
name: COMPONENT_NAME$
|
|
21893
|
+
name: COMPONENT_NAME$10,
|
|
21860
21894
|
elevated,
|
|
21861
21895
|
children: [
|
|
21862
21896
|
/* @__PURE__ */ jsx(Header$4, {
|
|
@@ -22327,7 +22361,7 @@ const useProfitAndLossLTM = ({ tagFilter, reportingBasis, chartWindow }) => {
|
|
|
22327
22361
|
isError
|
|
22328
22362
|
};
|
|
22329
22363
|
};
|
|
22330
|
-
var _excluded$
|
|
22364
|
+
var _excluded$33 = [
|
|
22331
22365
|
"verticalAnchor",
|
|
22332
22366
|
"visibleTicksCount",
|
|
22333
22367
|
"tickFormatter",
|
|
@@ -22336,7 +22370,7 @@ var _excluded$32 = [
|
|
|
22336
22370
|
], _excluded2$4 = ["format"];
|
|
22337
22371
|
var CustomizedYTick = (_ref) => {
|
|
22338
22372
|
let { verticalAnchor: _verticalAnchor, visibleTicksCount: _visibleTicksCount, tickFormatter: _tickFormatter, format: format$1, payload } = _ref;
|
|
22339
|
-
return /* @__PURE__ */ jsx("text", _objectSpread2(_objectSpread2({}, _objectWithoutProperties(_ref, _excluded$
|
|
22373
|
+
return /* @__PURE__ */ jsx("text", _objectSpread2(_objectSpread2({}, _objectWithoutProperties(_ref, _excluded$33)), {}, {
|
|
22340
22374
|
className: "Layer__ChartYAxis__tick",
|
|
22341
22375
|
children: /* @__PURE__ */ jsx("tspan", {
|
|
22342
22376
|
dy: "0.355em",
|
|
@@ -22513,7 +22547,7 @@ const ProfitAndLossChartSelectionIndicator = ({ viewBox, selected }) => {
|
|
|
22513
22547
|
height: "calc(100% - 30px)"
|
|
22514
22548
|
});
|
|
22515
22549
|
};
|
|
22516
|
-
var _excluded$
|
|
22550
|
+
var _excluded$32 = ["payload", "fill"];
|
|
22517
22551
|
var BAR_RADIUS$1 = [
|
|
22518
22552
|
2,
|
|
22519
22553
|
2,
|
|
@@ -22533,7 +22567,7 @@ const ProfitAndLossChartBar = ({ dataKey, xAxisId, cellFill, className, barSize,
|
|
|
22533
22567
|
isAnimationActive: barAnimation,
|
|
22534
22568
|
fill: cellFill,
|
|
22535
22569
|
shape: useCallback((props) => {
|
|
22536
|
-
const { payload, fill } = props, restProps = _objectWithoutProperties(props, _excluded$
|
|
22570
|
+
const { payload, fill } = props, restProps = _objectWithoutProperties(props, _excluded$32);
|
|
22537
22571
|
const shouldRound = payload && isOutermostBar(payload, dataKey, xAxisId);
|
|
22538
22572
|
return /* @__PURE__ */ jsx(Rectangle, _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
22539
22573
|
fill,
|
|
@@ -22595,14 +22629,14 @@ const ProfitAndLossChartLegend = () => {
|
|
|
22595
22629
|
})), [t]))
|
|
22596
22630
|
});
|
|
22597
22631
|
};
|
|
22598
|
-
var _excluded$
|
|
22632
|
+
var _excluded$31 = ["size"];
|
|
22599
22633
|
var BarChart2 = (_ref) => {
|
|
22600
22634
|
let { size = 12 } = _ref;
|
|
22601
22635
|
return /* @__PURE__ */ jsxs("svg", _objectSpread2(_objectSpread2({
|
|
22602
22636
|
xmlns: "http://www.w3.org/2000/svg",
|
|
22603
22637
|
viewBox: "0 0 12 12",
|
|
22604
22638
|
fill: "none"
|
|
22605
|
-
}, _objectWithoutProperties(_ref, _excluded$
|
|
22639
|
+
}, _objectWithoutProperties(_ref, _excluded$31)), {}, {
|
|
22606
22640
|
width: size,
|
|
22607
22641
|
height: size,
|
|
22608
22642
|
children: [
|
|
@@ -22645,7 +22679,7 @@ const ProfitAndLossChartStateCard = () => {
|
|
|
22645
22679
|
})]
|
|
22646
22680
|
});
|
|
22647
22681
|
};
|
|
22648
|
-
var _excluded$
|
|
22682
|
+
var _excluded$30 = [
|
|
22649
22683
|
"content",
|
|
22650
22684
|
"cursorWidth",
|
|
22651
22685
|
"animationDuration",
|
|
@@ -22681,7 +22715,7 @@ const ChartTooltipCursor = ({ width, points, height }) => {
|
|
|
22681
22715
|
});
|
|
22682
22716
|
};
|
|
22683
22717
|
const ChartTooltip = (_ref) => {
|
|
22684
|
-
let { content, cursorWidth, animationDuration = 100, animationEasing = "ease-out" } = _ref, props = _objectWithoutProperties(_ref, _excluded$
|
|
22718
|
+
let { content, cursorWidth, animationDuration = 100, animationEasing = "ease-out" } = _ref, props = _objectWithoutProperties(_ref, _excluded$30);
|
|
22685
22719
|
return /* @__PURE__ */ jsx(Tooltip, _objectSpread2({
|
|
22686
22720
|
wrapperClassName: "Layer__ChartTooltip__wrapper",
|
|
22687
22721
|
content,
|
|
@@ -22942,9 +22976,9 @@ const ProfitAndLossChart = ({ tagFilter }) => {
|
|
|
22942
22976
|
}, "pnl-chart"), isSyncing ? /* @__PURE__ */ jsx(ProfitAndLossChartStateCard, {}) : null]
|
|
22943
22977
|
});
|
|
22944
22978
|
};
|
|
22945
|
-
var _excluded$
|
|
22979
|
+
var _excluded$29 = ["className", "textOnly"];
|
|
22946
22980
|
const BackButton = (_ref) => {
|
|
22947
|
-
let { className, textOnly = false } = _ref, props = _objectWithoutProperties(_ref, _excluded$
|
|
22981
|
+
let { className, textOnly = false } = _ref, props = _objectWithoutProperties(_ref, _excluded$29);
|
|
22948
22982
|
const baseClassName$1 = classNames("Layer__btn", "Layer__back-btn", className);
|
|
22949
22983
|
return /* @__PURE__ */ jsx("button", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
22950
22984
|
className: baseClassName$1,
|
|
@@ -23118,7 +23152,7 @@ const DetailedChart = ({ data, isLoading, interactionProps, stylingProps, slots
|
|
|
23118
23152
|
})]
|
|
23119
23153
|
});
|
|
23120
23154
|
};
|
|
23121
|
-
var _excluded$
|
|
23155
|
+
var _excluded$28 = ["size"];
|
|
23122
23156
|
var ClassNames = {
|
|
23123
23157
|
DESC_ARROW: "Layer__SortArrows__DescArrow",
|
|
23124
23158
|
ASC_ARROW: "Layer__SortArrows__AscArrow"
|
|
@@ -23129,7 +23163,7 @@ var SortArrows = (_ref) => {
|
|
|
23129
23163
|
xmlns: "http://www.w3.org/2000/svg",
|
|
23130
23164
|
viewBox: "0 0 12 13",
|
|
23131
23165
|
fill: "none"
|
|
23132
|
-
}, _objectWithoutProperties(_ref, _excluded$
|
|
23166
|
+
}, _objectWithoutProperties(_ref, _excluded$28)), {}, {
|
|
23133
23167
|
width: size,
|
|
23134
23168
|
height: size,
|
|
23135
23169
|
children: [/* @__PURE__ */ jsxs("g", {
|
|
@@ -23267,7 +23301,7 @@ var RegularValueIcon = ({ colorMapping }) => {
|
|
|
23267
23301
|
})
|
|
23268
23302
|
});
|
|
23269
23303
|
};
|
|
23270
|
-
var _excluded$
|
|
23304
|
+
var _excluded$27 = ["data"];
|
|
23271
23305
|
const DetailedTable = ({ stylingProps, sortParams, sortFunction, interactionProps, rows, stringOverrides }) => {
|
|
23272
23306
|
const { t } = useTranslation();
|
|
23273
23307
|
const setAndToggleSortDirection = (params) => {
|
|
@@ -23398,7 +23432,7 @@ const DetailedTable = ({ stylingProps, sortParams, sortFunction, interactionProp
|
|
|
23398
23432
|
});
|
|
23399
23433
|
};
|
|
23400
23434
|
const DetailedTableWithData = (_ref) => {
|
|
23401
|
-
let { data } = _ref, props = _objectWithoutProperties(_ref, _excluded$
|
|
23435
|
+
let { data } = _ref, props = _objectWithoutProperties(_ref, _excluded$27);
|
|
23402
23436
|
return /* @__PURE__ */ jsx(DetailedTable, _objectSpread2({ rows: useDetailedTableRows({ data }) }, props));
|
|
23403
23437
|
};
|
|
23404
23438
|
function useGlobalDatePickerBounds() {
|
|
@@ -23552,9 +23586,9 @@ const LedgerAccountsContext = createContext({
|
|
|
23552
23586
|
hasMore: false,
|
|
23553
23587
|
fetchMore: () => {}
|
|
23554
23588
|
});
|
|
23555
|
-
var _excluded$
|
|
23589
|
+
var _excluded$26 = ["className", "textOnly"];
|
|
23556
23590
|
const CloseButton = (_ref) => {
|
|
23557
|
-
let { className, textOnly = false } = _ref, props = _objectWithoutProperties(_ref, _excluded$
|
|
23591
|
+
let { className, textOnly = false } = _ref, props = _objectWithoutProperties(_ref, _excluded$26);
|
|
23558
23592
|
const baseClassName$1 = classNames("Layer__btn", "Layer__back-btn", className);
|
|
23559
23593
|
return /* @__PURE__ */ jsx("button", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
23560
23594
|
className: baseClassName$1,
|
|
@@ -23584,7 +23618,7 @@ const HeaderRow = ({ className, children, direction, style: style$1 }) => {
|
|
|
23584
23618
|
children
|
|
23585
23619
|
}));
|
|
23586
23620
|
};
|
|
23587
|
-
const Table$
|
|
23621
|
+
const Table$1 = ({ componentName, children, borderCollapse = "separate", bottomSpacing = true }) => {
|
|
23588
23622
|
return /* @__PURE__ */ jsx("div", {
|
|
23589
23623
|
className: classNames("Layer__table-wrapper", bottomSpacing && "Layer__table-wrapper--bottom-spacing"),
|
|
23590
23624
|
children: /* @__PURE__ */ jsx("table", {
|
|
@@ -23593,7 +23627,7 @@ const Table$2 = ({ componentName, children, borderCollapse = "separate", bottomS
|
|
|
23593
23627
|
})
|
|
23594
23628
|
});
|
|
23595
23629
|
};
|
|
23596
|
-
const TableBody$
|
|
23630
|
+
const TableBody$1 = ({ children }) => {
|
|
23597
23631
|
return /* @__PURE__ */ jsx("tbody", {
|
|
23598
23632
|
className: "Layer__table-body",
|
|
23599
23633
|
children
|
|
@@ -23968,7 +24002,7 @@ const LedgerAccountEntryDetails = ({ stringOverrides }) => {
|
|
|
23968
24002
|
}),
|
|
23969
24003
|
!isLoadingEntry && !isErrorEntry ? /* @__PURE__ */ jsx("div", {
|
|
23970
24004
|
className: "Layer__ledger-account__entry-details__line-items",
|
|
23971
|
-
children: /* @__PURE__ */ jsx(Card, { children: /* @__PURE__ */ jsxs(Table$
|
|
24005
|
+
children: /* @__PURE__ */ jsx(Card, { children: /* @__PURE__ */ jsxs(Table$1, {
|
|
23972
24006
|
componentName: "ledger-account__entry-details",
|
|
23973
24007
|
borderCollapse: "collapse",
|
|
23974
24008
|
children: [/* @__PURE__ */ jsx(TableHead, { children: /* @__PURE__ */ jsxs(TableRow, {
|
|
@@ -23985,7 +24019,7 @@ const LedgerAccountEntryDetails = ({ stringOverrides }) => {
|
|
|
23985
24019
|
children: (stringOverrides === null || stringOverrides === void 0 || (_stringOverrides$line3 = stringOverrides.lineItemsTable) === null || _stringOverrides$line3 === void 0 ? void 0 : _stringOverrides$line3.creditColumnHeader) || t("common:label.credit", "Credit")
|
|
23986
24020
|
})
|
|
23987
24021
|
]
|
|
23988
|
-
}) }), /* @__PURE__ */ jsxs(TableBody$
|
|
24022
|
+
}) }), /* @__PURE__ */ jsxs(TableBody$1, { children: [entryData === null || entryData === void 0 || (_entryData$line_items2 = entryData.line_items) === null || _entryData$line_items2 === void 0 ? void 0 : _entryData$line_items2.map((item, index) => {
|
|
23989
24023
|
var _item$account;
|
|
23990
24024
|
return /* @__PURE__ */ jsxs(TableRow, {
|
|
23991
24025
|
rowKey: `ledger-line-item-${index}`,
|
|
@@ -24034,7 +24068,7 @@ const LedgerAccountEntryDetails = ({ stringOverrides }) => {
|
|
|
24034
24068
|
]
|
|
24035
24069
|
});
|
|
24036
24070
|
};
|
|
24037
|
-
var COMPONENT_NAME$
|
|
24071
|
+
var COMPONENT_NAME$9 = "ProfitAndLossDetailReport";
|
|
24038
24072
|
var PnlDetailColumns = /* @__PURE__ */ function(PnlDetailColumns$1) {
|
|
24039
24073
|
PnlDetailColumns$1["Date"] = "Date";
|
|
24040
24074
|
PnlDetailColumns$1["Type"] = "Type";
|
|
@@ -24044,7 +24078,7 @@ var PnlDetailColumns = /* @__PURE__ */ function(PnlDetailColumns$1) {
|
|
|
24044
24078
|
PnlDetailColumns$1["Balance"] = "Balance";
|
|
24045
24079
|
return PnlDetailColumns$1;
|
|
24046
24080
|
}(PnlDetailColumns || {});
|
|
24047
|
-
var ErrorState$
|
|
24081
|
+
var ErrorState$6 = () => {
|
|
24048
24082
|
const { t } = useTranslation();
|
|
24049
24083
|
return /* @__PURE__ */ jsx(DataState, {
|
|
24050
24084
|
spacing: true,
|
|
@@ -24053,7 +24087,7 @@ var ErrorState$5 = () => {
|
|
|
24053
24087
|
description: t("reports:error.load_pnl_detail_lines", "There was an error loading the profit and loss detail lines")
|
|
24054
24088
|
});
|
|
24055
24089
|
};
|
|
24056
|
-
var EmptyState$
|
|
24090
|
+
var EmptyState$5 = () => {
|
|
24057
24091
|
const { t } = useTranslation();
|
|
24058
24092
|
return /* @__PURE__ */ jsx(DataState, {
|
|
24059
24093
|
spacing: true,
|
|
@@ -24218,7 +24252,7 @@ const ProfitAndLossDetailReport = ({ lineItemName, breadcrumbPath, onClose, onBr
|
|
|
24218
24252
|
children: /* @__PURE__ */ jsxs(VStack, {
|
|
24219
24253
|
className: "Layer__ProfitAndLossDetailReport",
|
|
24220
24254
|
children: [/* @__PURE__ */ jsx(VirtualizedDataTable, {
|
|
24221
|
-
componentName: COMPONENT_NAME$
|
|
24255
|
+
componentName: COMPONENT_NAME$9,
|
|
24222
24256
|
ariaLabel: t("reports:label.line_item_name_detail_lines", "{{lineItemName}} detail lines", { lineItemName }),
|
|
24223
24257
|
columnConfig,
|
|
24224
24258
|
data: rowsWithRunningBalance.lines,
|
|
@@ -24226,8 +24260,8 @@ const ProfitAndLossDetailReport = ({ lineItemName, breadcrumbPath, onClose, onBr
|
|
|
24226
24260
|
isError,
|
|
24227
24261
|
shrinkHeightToFitRows: true,
|
|
24228
24262
|
slots: {
|
|
24229
|
-
EmptyState: EmptyState$
|
|
24230
|
-
ErrorState: ErrorState$
|
|
24263
|
+
EmptyState: EmptyState$5,
|
|
24264
|
+
ErrorState: ErrorState$6
|
|
24231
24265
|
}
|
|
24232
24266
|
}), rowsWithRunningBalance.lines.length > 0 && /* @__PURE__ */ jsxs(HStack, {
|
|
24233
24267
|
pb: "sm",
|
|
@@ -24339,7 +24373,7 @@ const usePnlDetailedTableRows = ({ data }) => {
|
|
|
24339
24373
|
isDisabled: (item) => UNCATEGORIZED_TYPES.includes(item.name)
|
|
24340
24374
|
});
|
|
24341
24375
|
};
|
|
24342
|
-
var EmptyState$
|
|
24376
|
+
var EmptyState$4 = () => {
|
|
24343
24377
|
const { t } = useTranslation();
|
|
24344
24378
|
return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("div", {
|
|
24345
24379
|
className: "Layer__profit-and-loss-detailed-charts__empty-chart",
|
|
@@ -24480,7 +24514,7 @@ const ProfitAndLossDetailedCharts = ({ scope, hideClose = false, showDatePicker
|
|
|
24480
24514
|
}),
|
|
24481
24515
|
/* @__PURE__ */ jsx("div", {
|
|
24482
24516
|
className: "Layer__profit-and-loss-detailed-charts__content",
|
|
24483
|
-
children: isEmpty ? /* @__PURE__ */ jsx(EmptyState$
|
|
24517
|
+
children: isEmpty ? /* @__PURE__ */ jsx(EmptyState$4, {}) : /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(DetailedChart, {
|
|
24484
24518
|
data: chartDataWithTotal,
|
|
24485
24519
|
slots: { Header: showDatePicker ? /* @__PURE__ */ jsx(DetailedChartsDatePickerHeader, {}) : void 0 },
|
|
24486
24520
|
interactionProps: chartInteractionProps,
|
|
@@ -25211,7 +25245,7 @@ const ReportsTableLoader = ({ typeColumnHeader, totalColumnHeader, showHeader =
|
|
|
25211
25245
|
const { t } = useTranslation();
|
|
25212
25246
|
const typeColumnHeaderText = typeColumnHeader !== null && typeColumnHeader !== void 0 ? typeColumnHeader : t("common:label.type", "Type");
|
|
25213
25247
|
const totalColumnHeaderText = totalColumnHeader !== null && totalColumnHeader !== void 0 ? totalColumnHeader : t("common:label.total", "Total");
|
|
25214
|
-
return /* @__PURE__ */ jsxs(Table$
|
|
25248
|
+
return /* @__PURE__ */ jsxs(Table$1, {
|
|
25215
25249
|
borderCollapse: "collapse",
|
|
25216
25250
|
children: [showHeader && /* @__PURE__ */ jsx(TableHead, { children: /* @__PURE__ */ jsxs(TableRow, {
|
|
25217
25251
|
rowKey: "report-table-loader-header",
|
|
@@ -25324,7 +25358,7 @@ const ProfitAndLossCompareTable = ({ stringOverrides }) => {
|
|
|
25324
25358
|
isError,
|
|
25325
25359
|
Loading: /* @__PURE__ */ jsx(ReportsTableLoader, { showHeader: false }),
|
|
25326
25360
|
Error: /* @__PURE__ */ jsx(ReportsTableErrorState, { isLoading: isValidating }),
|
|
25327
|
-
children: ({ data: resolvedComparisonData }) => /* @__PURE__ */ jsxs(Table$
|
|
25361
|
+
children: ({ data: resolvedComparisonData }) => /* @__PURE__ */ jsxs(Table$1, {
|
|
25328
25362
|
borderCollapse: "collapse",
|
|
25329
25363
|
bottomSpacing: false,
|
|
25330
25364
|
children: [/* @__PURE__ */ jsx(TableHead, { children: selectedCompareOptions && selectedCompareOptions.length > 1 && /* @__PURE__ */ jsxs(TableRow, {
|
|
@@ -25337,7 +25371,7 @@ const ProfitAndLossCompareTable = ({ stringOverrides }) => {
|
|
|
25337
25371
|
isHeaderCell: true,
|
|
25338
25372
|
children: option.displayName
|
|
25339
25373
|
}, option.displayName + "-" + i), comparePeriods && Array.from({ length: comparePeriods - 1 }, (_, index) => /* @__PURE__ */ jsx(TableCell, { isHeaderCell: true }, option.displayName + "-" + index))] }, option.displayName + "-" + i))]
|
|
25340
|
-
}) }), /* @__PURE__ */ jsxs(TableBody$
|
|
25374
|
+
}) }), /* @__PURE__ */ jsxs(TableBody$1, { children: [
|
|
25341
25375
|
comparePeriods && /* @__PURE__ */ jsxs(TableRow, {
|
|
25342
25376
|
rowKey: "",
|
|
25343
25377
|
children: [/* @__PURE__ */ jsx(TableCell, {
|
|
@@ -25491,10 +25525,10 @@ const ProfitAndLossTableComponent = ({ stringOverrides, onLineItemClick }) => {
|
|
|
25491
25525
|
Loading: /* @__PURE__ */ jsx(ReportsTableLoader, { showHeader: false }),
|
|
25492
25526
|
Inactive: null,
|
|
25493
25527
|
Error: /* @__PURE__ */ jsx(ReportsTableErrorState, { isLoading: isValidating }),
|
|
25494
|
-
children: ({ data: data$1 }) => /* @__PURE__ */ jsx(Table$
|
|
25528
|
+
children: ({ data: data$1 }) => /* @__PURE__ */ jsx(Table$1, {
|
|
25495
25529
|
borderCollapse: "collapse",
|
|
25496
25530
|
bottomSpacing: false,
|
|
25497
|
-
children: /* @__PURE__ */ jsxs(TableBody$
|
|
25531
|
+
children: /* @__PURE__ */ jsxs(TableBody$1, { children: [
|
|
25498
25532
|
renderLineItem({
|
|
25499
25533
|
lineItem: data$1.income,
|
|
25500
25534
|
depth: 0,
|
|
@@ -25603,7 +25637,7 @@ const filterOptionsOrGroups = (source, query) => {
|
|
|
25603
25637
|
}
|
|
25604
25638
|
return { options: [] };
|
|
25605
25639
|
};
|
|
25606
|
-
var _excluded$
|
|
25640
|
+
var _excluded$25 = [
|
|
25607
25641
|
"ariaLabel",
|
|
25608
25642
|
"selectedValue",
|
|
25609
25643
|
"onSelectedValueChange",
|
|
@@ -25614,14 +25648,14 @@ var wrap = (option) => ({
|
|
|
25614
25648
|
id: option.value,
|
|
25615
25649
|
option
|
|
25616
25650
|
});
|
|
25617
|
-
var EmptyState$
|
|
25651
|
+
var EmptyState$3 = () => {
|
|
25618
25652
|
const { t } = useTranslation();
|
|
25619
25653
|
return /* @__PURE__ */ jsx(Span, {
|
|
25620
25654
|
size: "sm",
|
|
25621
25655
|
children: t("common:empty.results", "No results found")
|
|
25622
25656
|
});
|
|
25623
25657
|
};
|
|
25624
|
-
var ErrorState$
|
|
25658
|
+
var ErrorState$5 = () => {
|
|
25625
25659
|
const { t } = useTranslation();
|
|
25626
25660
|
return /* @__PURE__ */ jsx(Span, {
|
|
25627
25661
|
size: "sm",
|
|
@@ -25630,7 +25664,7 @@ var ErrorState$4 = () => {
|
|
|
25630
25664
|
};
|
|
25631
25665
|
const MobileSelectionDrawerList = (_ref) => {
|
|
25632
25666
|
let { ariaLabel, selectedValue, onSelectedValueChange, isLoading = false, isError = false } = _ref;
|
|
25633
|
-
const source = _objectWithoutProperties(_ref, _excluded$
|
|
25667
|
+
const source = _objectWithoutProperties(_ref, _excluded$25);
|
|
25634
25668
|
const data = useMemo(() => {
|
|
25635
25669
|
if (source.groups) return { groups: source.groups.map((group) => ({
|
|
25636
25670
|
label: group.label,
|
|
@@ -25663,8 +25697,8 @@ const MobileSelectionDrawerList = (_ref) => {
|
|
|
25663
25697
|
ariaLabel,
|
|
25664
25698
|
data,
|
|
25665
25699
|
slots: {
|
|
25666
|
-
EmptyState: EmptyState$
|
|
25667
|
-
ErrorState: ErrorState$
|
|
25700
|
+
EmptyState: EmptyState$3,
|
|
25701
|
+
ErrorState: ErrorState$5
|
|
25668
25702
|
},
|
|
25669
25703
|
renderItem,
|
|
25670
25704
|
onClickItem,
|
|
@@ -25673,7 +25707,7 @@ const MobileSelectionDrawerList = (_ref) => {
|
|
|
25673
25707
|
variant: "compact"
|
|
25674
25708
|
});
|
|
25675
25709
|
};
|
|
25676
|
-
var _excluded$
|
|
25710
|
+
var _excluded$24 = [
|
|
25677
25711
|
"ariaLabel",
|
|
25678
25712
|
"heading",
|
|
25679
25713
|
"selectedValue",
|
|
@@ -25687,7 +25721,7 @@ var _excluded$23 = [
|
|
|
25687
25721
|
];
|
|
25688
25722
|
const MobileSelectionDrawerWithTrigger = (_ref) => {
|
|
25689
25723
|
var _selectedValue$label;
|
|
25690
|
-
let { ariaLabel, heading, selectedValue, onSelectedValueChange, placeholder, isLoading = false, isError = false, isDisabled = false, isSearchable = false, searchPlaceholder } = _ref, optionOrGroups = _objectWithoutProperties(_ref, _excluded$
|
|
25724
|
+
let { ariaLabel, heading, selectedValue, onSelectedValueChange, placeholder, isLoading = false, isError = false, isDisabled = false, isSearchable = false, searchPlaceholder } = _ref, optionOrGroups = _objectWithoutProperties(_ref, _excluded$24);
|
|
25691
25725
|
const { t } = useTranslation();
|
|
25692
25726
|
const { options, groups } = optionOrGroups;
|
|
25693
25727
|
const [isOpen, setIsOpen] = useState(false);
|
|
@@ -26187,7 +26221,7 @@ function TransactionsToReview({ onClick, tagFilter = void 0, variants: variants$
|
|
|
26187
26221
|
})]
|
|
26188
26222
|
});
|
|
26189
26223
|
}
|
|
26190
|
-
var _excluded$
|
|
26224
|
+
var _excluded$23 = ["onTransactionsToReviewClick"];
|
|
26191
26225
|
var SECTION_CLASS_NAMES = `Layer__ProfitAndLossSummaries Layer__component`;
|
|
26192
26226
|
function Internal_ProfitAndLossSummaries({ actionable = false, revenueLabel, stringOverrides, chartColorsList, slots, variants: variants$1 }) {
|
|
26193
26227
|
var _effectiveData$income3, _effectiveData$income4, _effectiveData$income5, _data$netProfit;
|
|
@@ -26294,7 +26328,7 @@ function Internal_ProfitAndLossSummaries({ actionable = false, revenueLabel, str
|
|
|
26294
26328
|
});
|
|
26295
26329
|
}
|
|
26296
26330
|
function ProfitAndLossSummaries(_ref) {
|
|
26297
|
-
let { onTransactionsToReviewClick } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$
|
|
26331
|
+
let { onTransactionsToReviewClick } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$23);
|
|
26298
26332
|
return /* @__PURE__ */ jsx(Internal_ProfitAndLossSummaries, _objectSpread2(_objectSpread2({}, restProps), {}, { slots: { unstable_AdditionalListItems: onTransactionsToReviewClick ? [/* @__PURE__ */ jsx(TransactionsToReview, {
|
|
26299
26333
|
variants: restProps.variants,
|
|
26300
26334
|
onClick: onTransactionsToReviewClick
|
|
@@ -26490,7 +26524,7 @@ const BalanceSheetTable = ({ data, config, stringOverrides }) => {
|
|
|
26490
26524
|
})
|
|
26491
26525
|
] }, rowKey + "-" + rowIndex);
|
|
26492
26526
|
};
|
|
26493
|
-
return /* @__PURE__ */ jsxs(Table$
|
|
26527
|
+
return /* @__PURE__ */ jsxs(Table$1, {
|
|
26494
26528
|
borderCollapse: "collapse",
|
|
26495
26529
|
children: [/* @__PURE__ */ jsx(TableHead, { children: /* @__PURE__ */ jsxs(TableRow, {
|
|
26496
26530
|
isHeadRow: true,
|
|
@@ -26503,7 +26537,7 @@ const BalanceSheetTable = ({ data, config, stringOverrides }) => {
|
|
|
26503
26537
|
align: TableCellAlign.RIGHT,
|
|
26504
26538
|
children: (stringOverrides === null || stringOverrides === void 0 ? void 0 : stringOverrides.totalColumnHeader) || "Total"
|
|
26505
26539
|
})]
|
|
26506
|
-
}) }), /* @__PURE__ */ jsx(TableBody$
|
|
26540
|
+
}) }), /* @__PURE__ */ jsx(TableBody$1, { children: config.map((row, idx) => /* @__PURE__ */ jsx(Fragment, { children: data[row.lineItem] && renderLineItem(data[row.lineItem], 0, row.lineItem, idx) }, row.lineItem)) })]
|
|
26507
26541
|
});
|
|
26508
26542
|
};
|
|
26509
26543
|
const GlobalDatePicker = ({ showLabel = false }) => {
|
|
@@ -26770,7 +26804,7 @@ const StatementOfCashFlowTable = ({ data, config, stringOverrides }) => {
|
|
|
26770
26804
|
})
|
|
26771
26805
|
] }, rowKey + "-" + rowIndex);
|
|
26772
26806
|
};
|
|
26773
|
-
return /* @__PURE__ */ jsxs(Table$
|
|
26807
|
+
return /* @__PURE__ */ jsxs(Table$1, {
|
|
26774
26808
|
borderCollapse: "collapse",
|
|
26775
26809
|
children: [/* @__PURE__ */ jsx(TableHead, { children: /* @__PURE__ */ jsxs(TableRow, {
|
|
26776
26810
|
rowKey: "soc-flow-head-row",
|
|
@@ -26783,7 +26817,7 @@ const StatementOfCashFlowTable = ({ data, config, stringOverrides }) => {
|
|
|
26783
26817
|
align: TableCellAlign.RIGHT,
|
|
26784
26818
|
children: (stringOverrides === null || stringOverrides === void 0 ? void 0 : stringOverrides.totalColumnHeader) || t("common:label.total", "Total")
|
|
26785
26819
|
})]
|
|
26786
|
-
}) }), /* @__PURE__ */ jsx(TableBody$
|
|
26820
|
+
}) }), /* @__PURE__ */ jsx(TableBody$1, { children: config.map((row, idx) => {
|
|
26787
26821
|
if (row.type === "line_item") return /* @__PURE__ */ jsx(Fragment, { children: data[row.lineItem] && renderLineItem(data[row.lineItem], 0, row.lineItem ? row.lineItem : "", idx) }, row.lineItem);
|
|
26788
26822
|
else return /* @__PURE__ */ jsxs(TableRow, {
|
|
26789
26823
|
rowKey: row.name + "-" + idx,
|
|
@@ -27560,14 +27594,14 @@ const ChartOfAccountsContext = createContext({
|
|
|
27560
27594
|
changeFormData: () => {},
|
|
27561
27595
|
submitForm: () => {}
|
|
27562
27596
|
});
|
|
27563
|
-
var _excluded$
|
|
27597
|
+
var _excluded$22 = ["size"];
|
|
27564
27598
|
var Plus$1 = (_ref) => {
|
|
27565
27599
|
let { size = 14 } = _ref;
|
|
27566
27600
|
return /* @__PURE__ */ jsxs("svg", _objectSpread2(_objectSpread2({
|
|
27567
27601
|
xmlns: "http://www.w3.org/2000/svg",
|
|
27568
27602
|
viewBox: "0 0 14 14",
|
|
27569
27603
|
fill: "none"
|
|
27570
|
-
}, _objectWithoutProperties(_ref, _excluded$
|
|
27604
|
+
}, _objectWithoutProperties(_ref, _excluded$22)), {}, {
|
|
27571
27605
|
width: size,
|
|
27572
27606
|
height: size,
|
|
27573
27607
|
children: [/* @__PURE__ */ jsx("path", {
|
|
@@ -27887,14 +27921,14 @@ let LedgerAccountNodeType = /* @__PURE__ */ function(LedgerAccountNodeType$1) {
|
|
|
27887
27921
|
LedgerAccountNodeType$1["Parent"] = "Parent";
|
|
27888
27922
|
return LedgerAccountNodeType$1;
|
|
27889
27923
|
}({});
|
|
27890
|
-
var _excluded$
|
|
27924
|
+
var _excluded$21 = ["size"];
|
|
27891
27925
|
var Edit2 = (_ref) => {
|
|
27892
27926
|
let { size = 18 } = _ref;
|
|
27893
27927
|
return /* @__PURE__ */ jsx("svg", _objectSpread2(_objectSpread2({
|
|
27894
27928
|
xmlns: "http://www.w3.org/2000/svg",
|
|
27895
27929
|
viewBox: "0 0 18 18",
|
|
27896
27930
|
fill: "none"
|
|
27897
|
-
}, _objectWithoutProperties(_ref, _excluded$
|
|
27931
|
+
}, _objectWithoutProperties(_ref, _excluded$21)), {}, {
|
|
27898
27932
|
width: size,
|
|
27899
27933
|
height: size,
|
|
27900
27934
|
children: /* @__PURE__ */ jsx("path", {
|
|
@@ -28173,7 +28207,7 @@ const ChartOfAccountsTableContent = ({ stringOverrides, data, searchQuery, expan
|
|
|
28173
28207
|
description: t("chartOfAccounts:empty.accounts_match_filters", "No accounts match the current filters. Click \"Add Account\" to create a new one.")
|
|
28174
28208
|
})
|
|
28175
28209
|
});
|
|
28176
|
-
return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsxs(Table$
|
|
28210
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsxs(Table$1, {
|
|
28177
28211
|
componentName: "chart-of-accounts",
|
|
28178
28212
|
children: [
|
|
28179
28213
|
/* @__PURE__ */ jsxs("colgroup", { children: [
|
|
@@ -28211,7 +28245,7 @@ const ChartOfAccountsTableContent = ({ stringOverrides, data, searchQuery, expan
|
|
|
28211
28245
|
/* @__PURE__ */ jsx(TableCell, { isHeaderCell: true })
|
|
28212
28246
|
]
|
|
28213
28247
|
}) }),
|
|
28214
|
-
/* @__PURE__ */ jsx(TableBody$
|
|
28248
|
+
/* @__PURE__ */ jsx(TableBody$1, { children: !isError && filteredAccounts.map((account, index) => renderChartOfAccountsDesktopRow({
|
|
28215
28249
|
account,
|
|
28216
28250
|
index,
|
|
28217
28251
|
depth: 0,
|
|
@@ -28230,7 +28264,7 @@ const ChartOfAccountsTableContent = ({ stringOverrides, data, searchQuery, expan
|
|
|
28230
28264
|
cancelLabel: t("common:action.cancel_label", "Cancel")
|
|
28231
28265
|
})] });
|
|
28232
28266
|
};
|
|
28233
|
-
var COMPONENT_NAME$
|
|
28267
|
+
var COMPONENT_NAME$8 = "chart-of-accounts";
|
|
28234
28268
|
const ChartOfAccountsTableWithPanel = ({ view, containerRef, asWidget = false, withDateControl = false, withExpandAllButton = false, showAddAccountButton = true, stringOverrides, templateAccountsEditable }) => {
|
|
28235
28269
|
const { t } = useTranslation();
|
|
28236
28270
|
const { data, isLoading, addAccount, isError, isValidating, refetch, form } = useContext(ChartOfAccountsContext);
|
|
@@ -28245,21 +28279,21 @@ const ChartOfAccountsTableWithPanel = ({ view, containerRef, asWidget = false, w
|
|
|
28245
28279
|
parentRef: containerRef,
|
|
28246
28280
|
children: [
|
|
28247
28281
|
/* @__PURE__ */ jsx(Header$2, {
|
|
28248
|
-
className: `Layer__${COMPONENT_NAME$
|
|
28282
|
+
className: `Layer__${COMPONENT_NAME$8}__header`,
|
|
28249
28283
|
asHeader: true,
|
|
28250
28284
|
rounded: true,
|
|
28251
28285
|
children: /* @__PURE__ */ jsx(HeaderRow, { children: /* @__PURE__ */ jsx(HeaderCol, { children: /* @__PURE__ */ jsx(Heading$2, {
|
|
28252
|
-
className: `Layer__${COMPONENT_NAME$
|
|
28286
|
+
className: `Layer__${COMPONENT_NAME$8}__title`,
|
|
28253
28287
|
size: asWidget ? HeadingSize.view : HeadingSize.primary,
|
|
28254
28288
|
children: (stringOverrides === null || stringOverrides === void 0 ? void 0 : stringOverrides.headerText) || t("chartOfAccounts:label.chart_of_accounts", "Chart of Accounts")
|
|
28255
28289
|
}) }) })
|
|
28256
28290
|
}),
|
|
28257
28291
|
/* @__PURE__ */ jsx(Header$2, {
|
|
28258
|
-
className: `Layer__${COMPONENT_NAME$
|
|
28292
|
+
className: `Layer__${COMPONENT_NAME$8}__header`,
|
|
28259
28293
|
sticky: true,
|
|
28260
28294
|
children: /* @__PURE__ */ jsxs(HeaderRow, { children: [/* @__PURE__ */ jsx(HeaderCol, { children: /* @__PURE__ */ jsx(Heading$2, {
|
|
28261
28295
|
size: HeadingSize.secondary,
|
|
28262
|
-
className: `Layer__${COMPONENT_NAME$
|
|
28296
|
+
className: `Layer__${COMPONENT_NAME$8}__subtitle`,
|
|
28263
28297
|
children: withDateControl || withExpandAllButton ? /* @__PURE__ */ jsxs(HStack, {
|
|
28264
28298
|
align: "center",
|
|
28265
28299
|
gap: "xs",
|
|
@@ -28307,7 +28341,7 @@ const ChartOfAccountsTableWithPanel = ({ view, containerRef, asWidget = false, w
|
|
|
28307
28341
|
})
|
|
28308
28342
|
}) : null,
|
|
28309
28343
|
(!data || isLoading) && !isError ? /* @__PURE__ */ jsx("div", {
|
|
28310
|
-
className: `Layer__${COMPONENT_NAME$
|
|
28344
|
+
className: `Layer__${COMPONENT_NAME$8}__loader-container`,
|
|
28311
28345
|
children: /* @__PURE__ */ jsx(Loader, {})
|
|
28312
28346
|
}) : null
|
|
28313
28347
|
]
|
|
@@ -29978,7 +30012,7 @@ const JournalEntryDetails = () => {
|
|
|
29978
30012
|
}),
|
|
29979
30013
|
!isLoadingEntry && !isErrorEntry ? /* @__PURE__ */ jsxs("div", {
|
|
29980
30014
|
className: "Layer__journal__entry-details__line-items",
|
|
29981
|
-
children: [/* @__PURE__ */ jsx(Card, { children: /* @__PURE__ */ jsxs(Table$
|
|
30015
|
+
children: [/* @__PURE__ */ jsx(Card, { children: /* @__PURE__ */ jsxs(Table$1, {
|
|
29982
30016
|
componentName: "journal__entry-details",
|
|
29983
30017
|
borderCollapse: "collapse",
|
|
29984
30018
|
children: [/* @__PURE__ */ jsx(TableHead, { children: /* @__PURE__ */ jsxs(TableRow, {
|
|
@@ -29997,7 +30031,7 @@ const JournalEntryDetails = () => {
|
|
|
29997
30031
|
children: t("common:label.credit", "Credit")
|
|
29998
30032
|
})
|
|
29999
30033
|
]
|
|
30000
|
-
}) }), /* @__PURE__ */ jsxs(TableBody$
|
|
30034
|
+
}) }), /* @__PURE__ */ jsxs(TableBody$1, { children: [sortedLineItems === null || sortedLineItems === void 0 ? void 0 : sortedLineItems.map((item, index) => /* @__PURE__ */ jsxs(TableRow, {
|
|
30001
30035
|
rowKey: `ledger-line-item-${index}`,
|
|
30002
30036
|
children: [
|
|
30003
30037
|
/* @__PURE__ */ jsx(TableCell, { children: item.account.name }),
|
|
@@ -30159,7 +30193,7 @@ var JournalTableContent = ({ data, stringOverrides }) => {
|
|
|
30159
30193
|
]
|
|
30160
30194
|
}, rowKey + "-" + index + "-" + subIdx))] }, rowKey + "-" + index);
|
|
30161
30195
|
};
|
|
30162
|
-
return /* @__PURE__ */ jsxs(Table$
|
|
30196
|
+
return /* @__PURE__ */ jsxs(Table$1, {
|
|
30163
30197
|
borderCollapse: "collapse",
|
|
30164
30198
|
componentName: "JournalTable",
|
|
30165
30199
|
children: [/* @__PURE__ */ jsx(TableHead, { children: /* @__PURE__ */ jsxs(TableRow, {
|
|
@@ -30197,10 +30231,10 @@ var JournalTableContent = ({ data, stringOverrides }) => {
|
|
|
30197
30231
|
children: (stringOverrides === null || stringOverrides === void 0 ? void 0 : stringOverrides.creditColumnHeader) || t("common:label.credit", "Credit")
|
|
30198
30232
|
})
|
|
30199
30233
|
]
|
|
30200
|
-
}) }), /* @__PURE__ */ jsx(TableBody$
|
|
30234
|
+
}) }), /* @__PURE__ */ jsx(TableBody$1, { children: data.map((entry, idx) => renderJournalRow(entry, idx, `journal-row-${entry.id}`, 0)) })]
|
|
30201
30235
|
});
|
|
30202
30236
|
};
|
|
30203
|
-
var COMPONENT_NAME$
|
|
30237
|
+
var COMPONENT_NAME$7 = "journal-table";
|
|
30204
30238
|
const JournalTableWithPanel = ({ containerRef, pageSize = 15, stringOverrides, view }) => {
|
|
30205
30239
|
const { t } = useTranslation();
|
|
30206
30240
|
const [currentPage, setCurrentPage] = useState(1);
|
|
@@ -30223,25 +30257,25 @@ const JournalTableWithPanel = ({ containerRef, pageSize = 15, stringOverrides, v
|
|
|
30223
30257
|
}
|
|
30224
30258
|
};
|
|
30225
30259
|
return /* @__PURE__ */ jsxs(Panel, {
|
|
30226
|
-
className: `Layer__${COMPONENT_NAME$
|
|
30260
|
+
className: `Layer__${COMPONENT_NAME$7}`,
|
|
30227
30261
|
sidebar: /* @__PURE__ */ jsx(JournalSidebar, { parentRef: containerRef }),
|
|
30228
30262
|
sidebarIsOpen: Boolean(selectedEntryId && selectedEntryId !== "new"),
|
|
30229
30263
|
parentRef: containerRef,
|
|
30230
30264
|
children: [
|
|
30231
30265
|
/* @__PURE__ */ jsx(Header$2, {
|
|
30232
|
-
className: `Layer__${COMPONENT_NAME$
|
|
30266
|
+
className: `Layer__${COMPONENT_NAME$7}__header`,
|
|
30233
30267
|
asHeader: true,
|
|
30234
30268
|
sticky: true,
|
|
30235
30269
|
rounded: true,
|
|
30236
30270
|
children: /* @__PURE__ */ jsx(HeaderRow, { children: /* @__PURE__ */ jsx(HeaderCol, { children: /* @__PURE__ */ jsx(Heading$2, {
|
|
30237
|
-
className: `Layer__${COMPONENT_NAME$
|
|
30271
|
+
className: `Layer__${COMPONENT_NAME$7}__title`,
|
|
30238
30272
|
size: HeadingSize.view,
|
|
30239
30273
|
children: (stringOverrides === null || stringOverrides === void 0 ? void 0 : stringOverrides.componentTitle) || t("generalLedger:label.journal", "Journal")
|
|
30240
30274
|
}) }) })
|
|
30241
30275
|
}),
|
|
30242
30276
|
/* @__PURE__ */ jsx(Header$2, { children: /* @__PURE__ */ jsxs(HeaderRow, { children: [/* @__PURE__ */ jsx(HeaderCol, { children: /* @__PURE__ */ jsx(Heading$2, {
|
|
30243
30277
|
size: HeadingSize.secondary,
|
|
30244
|
-
className: `Layer__${COMPONENT_NAME$
|
|
30278
|
+
className: `Layer__${COMPONENT_NAME$7}__subtitle`,
|
|
30245
30279
|
children: (stringOverrides === null || stringOverrides === void 0 ? void 0 : stringOverrides.componentSubtitle) || t("generalLedger:label.entries", "Entries")
|
|
30246
30280
|
}) }), /* @__PURE__ */ jsxs(HeaderCol, { children: [/* @__PURE__ */ jsx(JournalEntriesDownloadButton, { iconOnly: ["mobile", "tablet"].includes(view) }), /* @__PURE__ */ jsx(Button$2, {
|
|
30247
30281
|
onClick: () => toCreateEntry(),
|
|
@@ -30283,7 +30317,7 @@ const JournalTableWithPanel = ({ containerRef, pageSize = 15, stringOverrides, v
|
|
|
30283
30317
|
})
|
|
30284
30318
|
}) : null,
|
|
30285
30319
|
(!data || isLoading) && !isError ? /* @__PURE__ */ jsx("div", {
|
|
30286
|
-
className: `Layer__${COMPONENT_NAME$
|
|
30320
|
+
className: `Layer__${COMPONENT_NAME$7}__loader-container`,
|
|
30287
30321
|
children: /* @__PURE__ */ jsx(Loader, {})
|
|
30288
30322
|
}) : null
|
|
30289
30323
|
]
|
|
@@ -30443,14 +30477,14 @@ const TasksHeader = ({ tasksHeader }) => {
|
|
|
30443
30477
|
})
|
|
30444
30478
|
});
|
|
30445
30479
|
};
|
|
30446
|
-
var _excluded$
|
|
30480
|
+
var _excluded$20 = ["size"];
|
|
30447
30481
|
var SmileIcon = (_ref) => {
|
|
30448
30482
|
let { size = 12 } = _ref;
|
|
30449
30483
|
return /* @__PURE__ */ jsxs("svg", _objectSpread2(_objectSpread2({
|
|
30450
30484
|
viewBox: "0 0 12 12",
|
|
30451
30485
|
fill: "none",
|
|
30452
30486
|
xmlns: "http://www.w3.org/2000/svg"
|
|
30453
|
-
}, _objectWithoutProperties(_ref, _excluded$
|
|
30487
|
+
}, _objectWithoutProperties(_ref, _excluded$20)), {}, {
|
|
30454
30488
|
width: size,
|
|
30455
30489
|
height: size,
|
|
30456
30490
|
children: [
|
|
@@ -30638,13 +30672,13 @@ function useSubmitUserResponseForTask() {
|
|
|
30638
30672
|
return Reflect.get(target, prop);
|
|
30639
30673
|
} });
|
|
30640
30674
|
}
|
|
30641
|
-
var _excluded$
|
|
30675
|
+
var _excluded$19 = [
|
|
30642
30676
|
"className",
|
|
30643
30677
|
"isInvalid",
|
|
30644
30678
|
"errorMessage"
|
|
30645
30679
|
];
|
|
30646
30680
|
const Textarea = (_ref) => {
|
|
30647
|
-
let { className, isInvalid, errorMessage } = _ref, props = _objectWithoutProperties(_ref, _excluded$
|
|
30681
|
+
let { className, isInvalid, errorMessage } = _ref, props = _objectWithoutProperties(_ref, _excluded$19);
|
|
30648
30682
|
const baseClassName$1 = classNames("Layer__textarea", isInvalid ? "Layer__textarea--error" : "", className);
|
|
30649
30683
|
return /* @__PURE__ */ jsxs(DeprecatedTooltip, {
|
|
30650
30684
|
disabled: !isInvalid || !errorMessage,
|
|
@@ -31142,14 +31176,14 @@ const useBookkeepingYearsStatus = () => {
|
|
|
31142
31176
|
isLoading
|
|
31143
31177
|
};
|
|
31144
31178
|
};
|
|
31145
|
-
var _excluded$
|
|
31179
|
+
var _excluded$18 = ["size"];
|
|
31146
31180
|
var ArrowRightCircle = (_ref) => {
|
|
31147
31181
|
let { size = 18 } = _ref;
|
|
31148
31182
|
return /* @__PURE__ */ jsxs("svg", _objectSpread2(_objectSpread2({
|
|
31149
31183
|
xmlns: "http://www.w3.org/2000/svg",
|
|
31150
31184
|
viewBox: "0 0 18 18",
|
|
31151
31185
|
fill: "none"
|
|
31152
|
-
}, _objectWithoutProperties(_ref, _excluded$
|
|
31186
|
+
}, _objectWithoutProperties(_ref, _excluded$18)), {}, {
|
|
31153
31187
|
width: size,
|
|
31154
31188
|
height: size,
|
|
31155
31189
|
children: [
|
|
@@ -32380,14 +32414,14 @@ function LinkAccountsContent({ onComplete }) {
|
|
|
32380
32414
|
})
|
|
32381
32415
|
});
|
|
32382
32416
|
}
|
|
32383
|
-
var _excluded$
|
|
32417
|
+
var _excluded$17 = ["size"];
|
|
32384
32418
|
var CoffeeIcon = (_ref) => {
|
|
32385
32419
|
let { size = 11 } = _ref;
|
|
32386
32420
|
return /* @__PURE__ */ jsxs("svg", _objectSpread2(_objectSpread2({
|
|
32387
32421
|
xmlns: "http://www.w3.org/2000/svg",
|
|
32388
32422
|
viewBox: "0 0 12 12",
|
|
32389
32423
|
fill: "none"
|
|
32390
|
-
}, _objectWithoutProperties(_ref, _excluded$
|
|
32424
|
+
}, _objectWithoutProperties(_ref, _excluded$17)), {}, {
|
|
32391
32425
|
width: size,
|
|
32392
32426
|
height: size,
|
|
32393
32427
|
children: [/* @__PURE__ */ jsxs("g", {
|
|
@@ -32436,7 +32470,7 @@ var CoffeeIcon = (_ref) => {
|
|
|
32436
32470
|
}));
|
|
32437
32471
|
};
|
|
32438
32472
|
var Coffee_default = CoffeeIcon;
|
|
32439
|
-
var _excluded$
|
|
32473
|
+
var _excluded$16 = [
|
|
32440
32474
|
"className",
|
|
32441
32475
|
"children",
|
|
32442
32476
|
"variant",
|
|
@@ -32448,7 +32482,7 @@ var _excluded$15 = [
|
|
|
32448
32482
|
"fullWidth"
|
|
32449
32483
|
];
|
|
32450
32484
|
const Link$2 = (_ref) => {
|
|
32451
|
-
let { className, children, variant = ButtonVariant.primary, leftIcon, rightIcon, iconOnly, iconAsPrimary = false, justify = "center", fullWidth } = _ref, props = _objectWithoutProperties(_ref, _excluded$
|
|
32485
|
+
let { className, children, variant = ButtonVariant.primary, leftIcon, rightIcon, iconOnly, iconAsPrimary = false, justify = "center", fullWidth } = _ref, props = _objectWithoutProperties(_ref, _excluded$16);
|
|
32452
32486
|
const linkRef = useRef(null);
|
|
32453
32487
|
let justifyContent = "center";
|
|
32454
32488
|
if (justify) justifyContent = justify;
|
|
@@ -32546,14 +32580,14 @@ const useMileageSummaryGlobalCacheActions = () => {
|
|
|
32546
32580
|
const { invalidate } = useGlobalCacheActions();
|
|
32547
32581
|
return { invalidateMileageSummary: useCallback(() => invalidate(({ tags }) => tags.includes(MILEAGE_SUMMARY_TAG_KEY)), [invalidate]) };
|
|
32548
32582
|
};
|
|
32549
|
-
var _excluded$
|
|
32583
|
+
var _excluded$15 = ["size"];
|
|
32550
32584
|
var ArrowRightCircleAlt = (_ref) => {
|
|
32551
32585
|
let { size = 18 } = _ref;
|
|
32552
32586
|
return /* @__PURE__ */ jsxs("svg", _objectSpread2(_objectSpread2({
|
|
32553
32587
|
xmlns: "http://www.w3.org/2000/svg",
|
|
32554
32588
|
viewBox: "0 0 18 18",
|
|
32555
32589
|
fill: "none"
|
|
32556
|
-
}, _objectWithoutProperties(_ref, _excluded$
|
|
32590
|
+
}, _objectWithoutProperties(_ref, _excluded$15)), {}, {
|
|
32557
32591
|
width: size,
|
|
32558
32592
|
height: size,
|
|
32559
32593
|
children: [
|
|
@@ -33834,14 +33868,14 @@ function getCustomerName(customer) {
|
|
|
33834
33868
|
var _ref, _customer$individualN;
|
|
33835
33869
|
return (_ref = (_customer$individualN = customer === null || customer === void 0 ? void 0 : customer.individualName) !== null && _customer$individualN !== void 0 ? _customer$individualN : customer === null || customer === void 0 ? void 0 : customer.companyName) !== null && _ref !== void 0 ? _ref : "Unknown Customer";
|
|
33836
33870
|
}
|
|
33837
|
-
var _excluded$
|
|
33871
|
+
var _excluded$14 = ["size"];
|
|
33838
33872
|
var ChevronRightFill = (_ref) => {
|
|
33839
33873
|
let { size = 18 } = _ref;
|
|
33840
33874
|
return /* @__PURE__ */ jsxs("svg", _objectSpread2(_objectSpread2({
|
|
33841
33875
|
xmlns: "http://www.w3.org/2000/svg",
|
|
33842
33876
|
viewBox: "0 0 18 18",
|
|
33843
33877
|
fill: "none"
|
|
33844
|
-
}, _objectWithoutProperties(_ref, _excluded$
|
|
33878
|
+
}, _objectWithoutProperties(_ref, _excluded$14)), {}, {
|
|
33845
33879
|
width: size,
|
|
33846
33880
|
height: size,
|
|
33847
33881
|
children: [/* @__PURE__ */ jsx("path", {
|
|
@@ -33972,7 +34006,7 @@ const InvoiceStatusCell = ({ invoice, inline = false }) => {
|
|
|
33972
34006
|
})] }))]
|
|
33973
34007
|
});
|
|
33974
34008
|
};
|
|
33975
|
-
var COMPONENT_NAME$
|
|
34009
|
+
var COMPONENT_NAME$6 = "InvoiceTable";
|
|
33976
34010
|
var InvoiceColumns = /* @__PURE__ */ function(InvoiceColumns$1) {
|
|
33977
34011
|
InvoiceColumns$1["SentAt"] = "SentAt";
|
|
33978
34012
|
InvoiceColumns$1["InvoiceNo"] = "InvoiceNo";
|
|
@@ -34214,7 +34248,7 @@ const InvoiceTable = () => {
|
|
|
34214
34248
|
isError,
|
|
34215
34249
|
columnConfig,
|
|
34216
34250
|
paginationProps,
|
|
34217
|
-
componentName: COMPONENT_NAME$
|
|
34251
|
+
componentName: COMPONENT_NAME$6,
|
|
34218
34252
|
slots: {
|
|
34219
34253
|
EmptyState: InvoiceTableEmptyState,
|
|
34220
34254
|
ErrorState: InvoiceTableErrorState
|
|
@@ -35863,9 +35897,9 @@ const useCustomerForm = (props) => {
|
|
|
35863
35897
|
submitError
|
|
35864
35898
|
}), [form, submitError]);
|
|
35865
35899
|
};
|
|
35866
|
-
var _excluded$
|
|
35900
|
+
var _excluded$13 = ["onSuccess", "isReadOnly"];
|
|
35867
35901
|
const CustomerForm = (_ref) => {
|
|
35868
|
-
let { onSuccess, isReadOnly } = _ref, formState = _objectWithoutProperties(_ref, _excluded$
|
|
35902
|
+
let { onSuccess, isReadOnly } = _ref, formState = _objectWithoutProperties(_ref, _excluded$13);
|
|
35869
35903
|
const { t } = useTranslation();
|
|
35870
35904
|
const { form, submitError } = useCustomerForm(_objectSpread2({ onSuccess }, formState));
|
|
35871
35905
|
return /* @__PURE__ */ jsxs(Form$1, {
|
|
@@ -36718,10 +36752,10 @@ const useInvoiceForm = (props) => {
|
|
|
36718
36752
|
submitError
|
|
36719
36753
|
]);
|
|
36720
36754
|
};
|
|
36721
|
-
var _excluded$
|
|
36755
|
+
var _excluded$12 = ["isReadOnly"];
|
|
36722
36756
|
const InvoiceForm = forwardRef((props, ref) => {
|
|
36723
36757
|
var _accountingConfig$ena;
|
|
36724
|
-
const _useInvoiceDetail = useInvoiceDetail(), { isReadOnly } = _useInvoiceDetail, viewState = _objectWithoutProperties(_useInvoiceDetail, _excluded$
|
|
36758
|
+
const _useInvoiceDetail = useInvoiceDetail(), { isReadOnly } = _useInvoiceDetail, viewState = _objectWithoutProperties(_useInvoiceDetail, _excluded$12);
|
|
36725
36759
|
const { mode } = viewState;
|
|
36726
36760
|
const { onSuccess, onChangeFormState } = props;
|
|
36727
36761
|
const { businessId } = useLayerContext();
|
|
@@ -37167,7 +37201,7 @@ const InvoiceDetail = () => {
|
|
|
37167
37201
|
})
|
|
37168
37202
|
] });
|
|
37169
37203
|
};
|
|
37170
|
-
var _excluded$
|
|
37204
|
+
var _excluded$11 = [
|
|
37171
37205
|
"className",
|
|
37172
37206
|
"label",
|
|
37173
37207
|
"meterOnly"
|
|
@@ -37178,7 +37212,7 @@ var getClassnameForSubComponent = (className, suffix) => {
|
|
|
37178
37212
|
var METER_CLASS_NAME = "Layer__Meter";
|
|
37179
37213
|
const Meter$1 = forwardRef(function Meter$2(_ref, ref) {
|
|
37180
37214
|
let { className, label: label$50, meterOnly } = _ref;
|
|
37181
|
-
return /* @__PURE__ */ jsx(Meter, _objectSpread2(_objectSpread2(_objectSpread2({}, _objectWithoutProperties(_ref, _excluded$
|
|
37215
|
+
return /* @__PURE__ */ jsx(Meter, _objectSpread2(_objectSpread2(_objectSpread2({}, _objectWithoutProperties(_ref, _excluded$11)), {}, {
|
|
37182
37216
|
className: classNames(METER_CLASS_NAME, className),
|
|
37183
37217
|
ref
|
|
37184
37218
|
}, meterOnly && { "aria-label": label$50 }), {}, { children: ({ percentage, valueText }) => /* @__PURE__ */ jsxs(VStack, {
|
|
@@ -37400,7 +37434,7 @@ function useStripeAccountStatus() {
|
|
|
37400
37434
|
businessId
|
|
37401
37435
|
}))), ({ accessToken, apiUrl: apiUrl$1, businessId: businessId$1 }) => getStripeAccountStatus(apiUrl$1, accessToken, { params: { businessId: businessId$1 } })().then(Schema.decodeUnknownPromise(StripeAccountStatusResponseSchema)).then(({ data: data$1 }) => data$1)));
|
|
37402
37436
|
}
|
|
37403
|
-
var _excluded$
|
|
37437
|
+
var _excluded$10 = ["variant"];
|
|
37404
37438
|
const BANNER_CLASS_NAMES = {
|
|
37405
37439
|
DEFAULT: "Layer__UI__Banner",
|
|
37406
37440
|
ICON_CONTAINER: "Layer__UI__Banner__iconContainer",
|
|
@@ -37492,7 +37526,7 @@ var Banner = forwardRef(({ variant = "info", title, description: description$1,
|
|
|
37492
37526
|
});
|
|
37493
37527
|
Banner.displayName = "Banner";
|
|
37494
37528
|
const BannerButton = (_ref) => {
|
|
37495
|
-
let { variant = "outlined-light" } = _ref, rest = _objectWithoutProperties(_ref, _excluded$
|
|
37529
|
+
let { variant = "outlined-light" } = _ref, rest = _objectWithoutProperties(_ref, _excluded$10);
|
|
37496
37530
|
return /* @__PURE__ */ jsx(Button$1, _objectSpread2({ variant }, rest));
|
|
37497
37531
|
};
|
|
37498
37532
|
const ConnectStripeButton = ({ isError, isMutating, onClick }) => {
|
|
@@ -37625,18 +37659,18 @@ const Invoices = ({ stringOverrides }) => {
|
|
|
37625
37659
|
var InvoicesContent = () => {
|
|
37626
37660
|
return useInvoiceRouteState().route === InvoiceRoute.Detail ? /* @__PURE__ */ jsx(InvoiceDetail, {}) : /* @__PURE__ */ jsx(InvoiceOverview, {});
|
|
37627
37661
|
};
|
|
37628
|
-
var _excluded$
|
|
37629
|
-
var COMPONENT_NAME$
|
|
37662
|
+
var _excluded$9 = ["containerRef", "stringOverrides"];
|
|
37663
|
+
var COMPONENT_NAME$5 = "profit-and-loss";
|
|
37630
37664
|
const ProfitAndLossView = (props) => {
|
|
37631
37665
|
const containerRef = useRef(null);
|
|
37632
37666
|
return /* @__PURE__ */ jsx(Container, {
|
|
37633
|
-
name: COMPONENT_NAME$
|
|
37667
|
+
name: COMPONENT_NAME$5,
|
|
37634
37668
|
ref: containerRef,
|
|
37635
37669
|
children: /* @__PURE__ */ jsx(ProfitAndLoss, { children: /* @__PURE__ */ jsx(ProfitAndLossPanel, _objectSpread2({ containerRef }, props)) })
|
|
37636
37670
|
});
|
|
37637
37671
|
};
|
|
37638
37672
|
var ProfitAndLossPanel = (_ref) => {
|
|
37639
|
-
let { containerRef, stringOverrides } = _ref, props = _objectWithoutProperties(_ref, _excluded$
|
|
37673
|
+
let { containerRef, stringOverrides } = _ref, props = _objectWithoutProperties(_ref, _excluded$9);
|
|
37640
37674
|
const { t } = useTranslation();
|
|
37641
37675
|
const { sidebarScope } = useContext(ProfitAndLossContext);
|
|
37642
37676
|
return /* @__PURE__ */ jsxs(Panel, {
|
|
@@ -37645,7 +37679,7 @@ var ProfitAndLossPanel = (_ref) => {
|
|
|
37645
37679
|
parentRef: containerRef,
|
|
37646
37680
|
children: [/* @__PURE__ */ jsx(ProfitAndLoss.Header, {
|
|
37647
37681
|
text: (stringOverrides === null || stringOverrides === void 0 ? void 0 : stringOverrides.header) || t("common:label.profit_loss", "Profit & Loss"),
|
|
37648
|
-
className: `Layer__${COMPONENT_NAME$
|
|
37682
|
+
className: `Layer__${COMPONENT_NAME$5}__header`,
|
|
37649
37683
|
headingClassName: "Layer__profit-and-loss__title"
|
|
37650
37684
|
}), /* @__PURE__ */ jsx(Components, _objectSpread2({ stringOverrides }, props))]
|
|
37651
37685
|
});
|
|
@@ -37664,15 +37698,15 @@ var Components = ({ hideChart = false, hideTable = false, stringOverrides }) =>
|
|
|
37664
37698
|
})
|
|
37665
37699
|
});
|
|
37666
37700
|
return /* @__PURE__ */ jsxs(Fragment$1, { children: [!hideChart && /* @__PURE__ */ jsxs("div", {
|
|
37667
|
-
className: `Layer__${COMPONENT_NAME$
|
|
37701
|
+
className: `Layer__${COMPONENT_NAME$5}__chart_with_summaries`,
|
|
37668
37702
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
37669
|
-
className: `Layer__${COMPONENT_NAME$
|
|
37703
|
+
className: `Layer__${COMPONENT_NAME$5}__chart_with_summaries__summary-col`,
|
|
37670
37704
|
children: [/* @__PURE__ */ jsx(GlobalMonthPicker, {}), /* @__PURE__ */ jsx(ProfitAndLoss.Summaries, {
|
|
37671
37705
|
actionable: true,
|
|
37672
37706
|
stringOverrides: stringOverrides === null || stringOverrides === void 0 ? void 0 : stringOverrides.profitAndLossSummaries
|
|
37673
37707
|
})]
|
|
37674
37708
|
}), /* @__PURE__ */ jsx("div", {
|
|
37675
|
-
className: `Layer__${COMPONENT_NAME$
|
|
37709
|
+
className: `Layer__${COMPONENT_NAME$5}__chart_with_summaries__chart-col`,
|
|
37676
37710
|
children: /* @__PURE__ */ jsx(ProfitAndLoss.Chart, {})
|
|
37677
37711
|
})]
|
|
37678
37712
|
}), !hideTable && /* @__PURE__ */ jsx(ProfitAndLossTableWithProvider, { stringOverrides: stringOverrides === null || stringOverrides === void 0 ? void 0 : stringOverrides.profitAndLossTable })] });
|
|
@@ -37856,12 +37890,12 @@ function ExpandableDataTableProvider({ children }) {
|
|
|
37856
37890
|
children
|
|
37857
37891
|
});
|
|
37858
37892
|
}
|
|
37859
|
-
var _excluded$
|
|
37893
|
+
var _excluded$8 = ["children", "className"], _excluded2$3 = ["children"], _excluded3 = ["children"];
|
|
37860
37894
|
var TREE_CLASS_NAME = "Layer__UI__Tree";
|
|
37861
37895
|
var TREE_ITEM_CLASS_NAME = "Layer__UI__TreeItem";
|
|
37862
37896
|
var TreeInner = (_ref, ref) => {
|
|
37863
37897
|
let { children, className } = _ref;
|
|
37864
|
-
return /* @__PURE__ */ jsx(Tree, _objectSpread2(_objectSpread2({}, _objectWithoutProperties(_ref, _excluded$
|
|
37898
|
+
return /* @__PURE__ */ jsx(Tree, _objectSpread2(_objectSpread2({}, _objectWithoutProperties(_ref, _excluded$8)), {}, {
|
|
37865
37899
|
className: classNames(TREE_CLASS_NAME, className),
|
|
37866
37900
|
ref,
|
|
37867
37901
|
children: withRenderProp(children, (node) => node)
|
|
@@ -38141,7 +38175,7 @@ const S3PresignedUrlSchema = Schema.Struct({
|
|
|
38141
38175
|
createdAt: Schema.Date,
|
|
38142
38176
|
documentId: Schema.NullishOr(Schema.UUID)
|
|
38143
38177
|
});
|
|
38144
|
-
var _excluded$
|
|
38178
|
+
var _excluded$7 = ["businessId", "route"], _excluded2$2 = [
|
|
38145
38179
|
"accessToken",
|
|
38146
38180
|
"apiUrl",
|
|
38147
38181
|
"businessId",
|
|
@@ -38149,7 +38183,7 @@ var _excluded$6 = ["businessId", "route"], _excluded2$2 = [
|
|
|
38149
38183
|
];
|
|
38150
38184
|
var getUnifiedReportExcel = get((_ref) => {
|
|
38151
38185
|
let { businessId, route } = _ref;
|
|
38152
|
-
return `/v1/businesses/${businessId}/reports/unified/${route}/exports/excel?${toDefinedSearchParameters(_objectSpread2({}, _objectWithoutProperties(_ref, _excluded$
|
|
38186
|
+
return `/v1/businesses/${businessId}/reports/unified/${route}/exports/excel?${toDefinedSearchParameters(_objectSpread2({}, _objectWithoutProperties(_ref, _excluded$7)))}`;
|
|
38153
38187
|
});
|
|
38154
38188
|
var getTag$1 = (report) => `#unified-${report}-report-excel`;
|
|
38155
38189
|
var UnifiedReportExcelReturnSchema = Schema.Struct({ data: S3PresignedUrlSchema });
|
|
@@ -38217,7 +38251,7 @@ const UnifiedReportHeaderButtons = () => {
|
|
|
38217
38251
|
]
|
|
38218
38252
|
});
|
|
38219
38253
|
};
|
|
38220
|
-
var _excluded$
|
|
38254
|
+
var _excluded$6 = ["businessId", "route"], _excluded2$1 = [
|
|
38221
38255
|
"accessToken",
|
|
38222
38256
|
"apiUrl",
|
|
38223
38257
|
"businessId",
|
|
@@ -38234,7 +38268,7 @@ function buildKey$25({ access_token: accessToken, apiUrl, businessId, params })
|
|
|
38234
38268
|
}
|
|
38235
38269
|
var getUnifiedReport = get((_ref) => {
|
|
38236
38270
|
let { businessId, route } = _ref;
|
|
38237
|
-
return `/v1/businesses/${businessId}/reports/unified/${route}?${toDefinedSearchParameters(_objectSpread2({}, _objectWithoutProperties(_ref, _excluded$
|
|
38271
|
+
return `/v1/businesses/${businessId}/reports/unified/${route}?${toDefinedSearchParameters(_objectSpread2({}, _objectWithoutProperties(_ref, _excluded$6)))}`;
|
|
38238
38272
|
});
|
|
38239
38273
|
function useUnifiedReport() {
|
|
38240
38274
|
const withLocale = useLocalizedKey();
|
|
@@ -38259,40 +38293,46 @@ const ExpandButton = ({ isExpanded }) => {
|
|
|
38259
38293
|
"aria-label": isExpanded ? "Collapse row" : "Expand row"
|
|
38260
38294
|
});
|
|
38261
38295
|
};
|
|
38262
|
-
var
|
|
38296
|
+
var INDENT_SIZE_XS = 10;
|
|
38297
|
+
var INDENT_SIZE_SM = 20;
|
|
38298
|
+
var INDENT_SIZE_MD = 40;
|
|
38299
|
+
var CHEVRON_OFFSET_PX = 4;
|
|
38300
|
+
var getRowIndentStyle = ({ depth, canExpand, indentSizePx }) => ({ paddingInlineStart: depth * indentSizePx + (canExpand ? 0 : CHEVRON_OFFSET_PX) });
|
|
38263
38301
|
var EMPTY_ARRAY$1 = [];
|
|
38264
|
-
function ExpandableDataTable({ data, isLoading, isError, columnConfig, componentName, ariaLabel, slots, getSubRows: getSubRows$
|
|
38302
|
+
function ExpandableDataTable({ data, isLoading, isError, columnConfig, componentName, ariaLabel, slots, getSubRows: getSubRows$3, getRowId: getRowId$2, indentSize = "sm" }) {
|
|
38265
38303
|
const { expanded, setExpanded } = useContext(ExpandableDataTableContext);
|
|
38266
38304
|
const wrappedColumnConfig = useMemo(() => {
|
|
38305
|
+
const indentSizePx = indentSize === "xs" ? INDENT_SIZE_XS : indentSize === "md" ? INDENT_SIZE_MD : INDENT_SIZE_SM;
|
|
38267
38306
|
const [first, ...rest] = columnConfig;
|
|
38268
38307
|
if (!first || !isLeafColumn(first)) return columnConfig;
|
|
38269
|
-
const
|
|
38308
|
+
const cellRenderer = first.cell;
|
|
38270
38309
|
return [_objectSpread2(_objectSpread2({}, first), {}, { cell: (row) => {
|
|
38271
38310
|
const canExpand = row.getCanExpand();
|
|
38272
38311
|
const rowIndentStyle = getRowIndentStyle({
|
|
38273
38312
|
canExpand,
|
|
38274
|
-
depth: row.depth
|
|
38313
|
+
depth: row.depth,
|
|
38314
|
+
indentSizePx
|
|
38275
38315
|
});
|
|
38276
38316
|
if (!canExpand) return /* @__PURE__ */ jsx("div", {
|
|
38277
38317
|
style: rowIndentStyle,
|
|
38278
|
-
children:
|
|
38318
|
+
children: cellRenderer(row)
|
|
38279
38319
|
});
|
|
38280
38320
|
return /* @__PURE__ */ jsx("div", {
|
|
38281
38321
|
style: rowIndentStyle,
|
|
38282
38322
|
children: /* @__PURE__ */ jsxs(HStack, {
|
|
38283
38323
|
align: "center",
|
|
38284
38324
|
gap: "xs",
|
|
38285
|
-
children: [/* @__PURE__ */ jsx(ExpandButton, { isExpanded: row.getIsExpanded() }),
|
|
38325
|
+
children: [/* @__PURE__ */ jsx(ExpandButton, { isExpanded: row.getIsExpanded() }), cellRenderer(row)]
|
|
38286
38326
|
})
|
|
38287
38327
|
});
|
|
38288
38328
|
} }), ...rest];
|
|
38289
|
-
}, [columnConfig]);
|
|
38329
|
+
}, [columnConfig, indentSize]);
|
|
38290
38330
|
const columnDefs = getColumnDefs(wrappedColumnConfig);
|
|
38291
38331
|
const columnPinning = useMemo(() => getColumnPinning(wrappedColumnConfig), [wrappedColumnConfig]);
|
|
38292
38332
|
const table$1 = useReactTable({
|
|
38293
38333
|
data: data !== null && data !== void 0 ? data : EMPTY_ARRAY$1,
|
|
38294
38334
|
columns: columnDefs,
|
|
38295
|
-
getSubRows: getSubRows$
|
|
38335
|
+
getSubRows: getSubRows$3,
|
|
38296
38336
|
getCoreRowModel: getCoreRowModel(),
|
|
38297
38337
|
getExpandedRowModel: getExpandedRowModel(),
|
|
38298
38338
|
state: {
|
|
@@ -38301,7 +38341,7 @@ function ExpandableDataTable({ data, isLoading, isError, columnConfig, component
|
|
|
38301
38341
|
},
|
|
38302
38342
|
onExpandedChange: setExpanded,
|
|
38303
38343
|
autoResetPageIndex: false,
|
|
38304
|
-
getRowId: getRowId$
|
|
38344
|
+
getRowId: getRowId$2
|
|
38305
38345
|
});
|
|
38306
38346
|
const { rows } = table$1.getExpandedRowModel();
|
|
38307
38347
|
const dependencies$1 = useMemo(() => [expanded], [expanded]);
|
|
@@ -38329,6 +38369,23 @@ function ExpandableDataTable({ data, isLoading, isError, columnConfig, component
|
|
|
38329
38369
|
}), [onRowClick, isRowClickable])
|
|
38330
38370
|
});
|
|
38331
38371
|
}
|
|
38372
|
+
var _excluded$5 = [
|
|
38373
|
+
"durationMinutes",
|
|
38374
|
+
"className",
|
|
38375
|
+
"showLessThanOneMinuteForZero"
|
|
38376
|
+
];
|
|
38377
|
+
var DurationSpan = forwardRef((_ref, ref) => {
|
|
38378
|
+
let { durationMinutes, className, showLessThanOneMinuteForZero = false } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$5);
|
|
38379
|
+
const { t } = useTranslation();
|
|
38380
|
+
const { formatMinutesAsDuration: formatMinutesAsDuration$1 } = useIntlFormatter();
|
|
38381
|
+
const formattedDuration = durationMinutes !== 0 ? formatMinutesAsDuration$1(durationMinutes) : showLessThanOneMinuteForZero ? t("timeTracking:label.less_than_one_minute", "< 1 min") : t("timeTracking:label.zero_minutes", "0 min");
|
|
38382
|
+
return /* @__PURE__ */ jsx(Span, _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
38383
|
+
className,
|
|
38384
|
+
ref,
|
|
38385
|
+
children: formattedDuration
|
|
38386
|
+
}));
|
|
38387
|
+
});
|
|
38388
|
+
DurationSpan.displayName = "DurationSpan";
|
|
38332
38389
|
const UnifiedReportTableCellContent = ({ cell, column, breadcrumb }) => {
|
|
38333
38390
|
var _cell$format;
|
|
38334
38391
|
const { formatDate: formatDate$1, formatNumber: formatNumber$1 } = useIntlFormatter();
|
|
@@ -38357,6 +38414,13 @@ const UnifiedReportTableCellContent = ({ cell, column, breadcrumb }) => {
|
|
|
38357
38414
|
variant,
|
|
38358
38415
|
children: formatNumber$1(cellValue.value)
|
|
38359
38416
|
});
|
|
38417
|
+
else if (isDurationCellValue(cellValue)) content = /* @__PURE__ */ jsx(DurationSpan, {
|
|
38418
|
+
ellipsis: true,
|
|
38419
|
+
weight,
|
|
38420
|
+
variant,
|
|
38421
|
+
durationMinutes: cellValue.value,
|
|
38422
|
+
showLessThanOneMinuteForZero: true
|
|
38423
|
+
});
|
|
38360
38424
|
else if (isEmptyCellValue(cellValue)) return null;
|
|
38361
38425
|
else content = /* @__PURE__ */ jsx(Span, {
|
|
38362
38426
|
ellipsis: true,
|
|
@@ -38422,8 +38486,8 @@ const buildNestedColumnConfig = (columns) => {
|
|
|
38422
38486
|
return makeLeafColumn(col);
|
|
38423
38487
|
});
|
|
38424
38488
|
};
|
|
38425
|
-
const getSubRows$
|
|
38426
|
-
var COMPONENT_NAME$
|
|
38489
|
+
const getSubRows$2 = (row) => row.rows ? asMutable(row.rows) : void 0;
|
|
38490
|
+
var COMPONENT_NAME$4 = "UnifiedReport";
|
|
38427
38491
|
const UnifiedReportTable = () => {
|
|
38428
38492
|
var _report$displayName;
|
|
38429
38493
|
const { t } = useTranslation();
|
|
@@ -38458,12 +38522,12 @@ const UnifiedReportTable = () => {
|
|
|
38458
38522
|
isLoading: data === void 0 || isLoading,
|
|
38459
38523
|
isError,
|
|
38460
38524
|
columnConfig,
|
|
38461
|
-
componentName: COMPONENT_NAME$
|
|
38525
|
+
componentName: COMPONENT_NAME$4,
|
|
38462
38526
|
slots: {
|
|
38463
38527
|
ErrorState: UnifiedReportErrorState,
|
|
38464
38528
|
EmptyState: UnifiedReportEmptyState
|
|
38465
38529
|
},
|
|
38466
|
-
getSubRows: getSubRows$
|
|
38530
|
+
getSubRows: getSubRows$2,
|
|
38467
38531
|
getRowId: (row) => row.rowKey
|
|
38468
38532
|
});
|
|
38469
38533
|
};
|
|
@@ -39010,7 +39074,7 @@ var ONBOARDING_CALL_COVERAGE_ITEMS = [
|
|
|
39010
39074
|
_objectSpread2({ key: "bookkeeping_process" }, translationKey("callBookings:label.onboarding_cover_bookkeeping_process", "Walk through our bookkeeping process")),
|
|
39011
39075
|
_objectSpread2({ key: "connect_bank_and_cards" }, translationKey("callBookings:label.onboarding_cover_connect_bank_and_cards", "Connect your business bank accounts and credit cards"))
|
|
39012
39076
|
];
|
|
39013
|
-
var EmptyState$
|
|
39077
|
+
var EmptyState$2 = ({ onBookCall }) => {
|
|
39014
39078
|
const { t } = useTranslation();
|
|
39015
39079
|
return /* @__PURE__ */ jsxs(VStack, {
|
|
39016
39080
|
gap: "md",
|
|
@@ -39077,7 +39141,7 @@ const CallBooking = ({ callBooking, onBookCall }) => {
|
|
|
39077
39141
|
const countdownLabel = useCallBookingCountdownLabel(callBooking === null || callBooking === void 0 ? void 0 : callBooking.eventStartAt);
|
|
39078
39142
|
if (callBooking == null) return /* @__PURE__ */ jsx(Container, {
|
|
39079
39143
|
name: "CallBooking",
|
|
39080
|
-
children: /* @__PURE__ */ jsx(EmptyState$
|
|
39144
|
+
children: /* @__PURE__ */ jsx(EmptyState$2, { onBookCall })
|
|
39081
39145
|
});
|
|
39082
39146
|
const isOnboardingCall = callBooking.purpose === CallBookingPurpose.BOOKKEEPING_ONBOARDING;
|
|
39083
39147
|
const purpose = isOnboardingCall ? t("callBookings:label.onboarding_call", "Onboarding call") : t("callBookings:label.ad_hoc_call", "Ad hoc call");
|
|
@@ -39222,7 +39286,7 @@ const useKeepInMobileViewport = () => {
|
|
|
39222
39286
|
};
|
|
39223
39287
|
};
|
|
39224
39288
|
var BookkeepingOverviewTasksContent = ({ callBooking, showCallBookingCard, tasksMobile, tasksStringOverrides, onBookCall, onClickReconnectAccounts }) => {
|
|
39225
|
-
|
|
39289
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [showCallBookingCard && /* @__PURE__ */ jsx(CallBooking, {
|
|
39226
39290
|
callBooking,
|
|
39227
39291
|
onBookCall
|
|
39228
39292
|
}), /* @__PURE__ */ jsx(Tasks, {
|
|
@@ -39230,14 +39294,6 @@ var BookkeepingOverviewTasksContent = ({ callBooking, showCallBookingCard, tasks
|
|
|
39230
39294
|
stringOverrides: tasksStringOverrides,
|
|
39231
39295
|
onClickReconnectAccounts
|
|
39232
39296
|
})] });
|
|
39233
|
-
return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(Tasks, {
|
|
39234
|
-
mobile: tasksMobile,
|
|
39235
|
-
stringOverrides: tasksStringOverrides,
|
|
39236
|
-
onClickReconnectAccounts
|
|
39237
|
-
}), showCallBookingCard && /* @__PURE__ */ jsx(CallBooking, {
|
|
39238
|
-
callBooking,
|
|
39239
|
-
onBookCall
|
|
39240
|
-
})] });
|
|
39241
39297
|
};
|
|
39242
39298
|
const BookkeepingOverview = ({ title, showTitle = true, onClickReconnectAccounts, stringOverrides, slotProps }) => {
|
|
39243
39299
|
var _slotProps$profitAndL, _stringOverrides$prof, _stringOverrides$prof2, _stringOverrides$prof3;
|
|
@@ -40086,7 +40142,7 @@ const TripsTableHeader = ({ onRecordTrip }) => {
|
|
|
40086
40142
|
} }
|
|
40087
40143
|
});
|
|
40088
40144
|
};
|
|
40089
|
-
var COMPONENT_NAME$
|
|
40145
|
+
var COMPONENT_NAME$3 = "TripsTable";
|
|
40090
40146
|
var TripColumns = /* @__PURE__ */ function(TripColumns$1) {
|
|
40091
40147
|
TripColumns$1["TripDate"] = "TripDate";
|
|
40092
40148
|
TripColumns$1["Vehicle"] = "Vehicle";
|
|
@@ -40190,7 +40246,7 @@ const TripsTable = ({ data, isLoading, isError, paginationProps, onDeleteTrip, o
|
|
|
40190
40246
|
isError,
|
|
40191
40247
|
columnConfig,
|
|
40192
40248
|
paginationProps,
|
|
40193
|
-
componentName: COMPONENT_NAME$
|
|
40249
|
+
componentName: COMPONENT_NAME$3,
|
|
40194
40250
|
slots
|
|
40195
40251
|
})]
|
|
40196
40252
|
});
|
|
@@ -41405,7 +41461,7 @@ var HomeOfficeDeductionSchema = Schema.Struct({
|
|
|
41405
41461
|
homeOfficeArea: pipe(Schema.propertySignature(Schema.NullishOr(Schema.Number)), Schema.fromKey("home_office_area"))
|
|
41406
41462
|
});
|
|
41407
41463
|
var VehicleDeductionSchema = Schema.Struct({ useMileageDeduction: pipe(Schema.propertySignature(Schema.NullishOr(Schema.Boolean)), Schema.fromKey("use_mileage_deduction")) });
|
|
41408
|
-
var DeductionsSchema
|
|
41464
|
+
var DeductionsSchema = Schema.Struct({
|
|
41409
41465
|
homeOffice: pipe(Schema.propertySignature(Schema.NullishOr(HomeOfficeDeductionSchema)), Schema.fromKey("home_office")),
|
|
41410
41466
|
vehicle: Schema.NullishOr(VehicleDeductionSchema)
|
|
41411
41467
|
});
|
|
@@ -41424,7 +41480,7 @@ var StateConfigurationSchema = Schema.Struct({
|
|
|
41424
41480
|
var UsConfigurationSchema = Schema.Struct({
|
|
41425
41481
|
federal: Schema.NullishOr(FederalConfigurationSchema),
|
|
41426
41482
|
state: Schema.NullishOr(StateConfigurationSchema),
|
|
41427
|
-
deductions: pipe(Schema.propertySignature(Schema.NullishOr(DeductionsSchema
|
|
41483
|
+
deductions: pipe(Schema.propertySignature(Schema.NullishOr(DeductionsSchema)), Schema.fromKey("deductions"))
|
|
41428
41484
|
});
|
|
41429
41485
|
const TaxProfileSchema = Schema.Struct({
|
|
41430
41486
|
taxCountryCode: pipe(Schema.propertySignature(Schema.NullishOr(Schema.String)), Schema.fromKey("tax_country_code")),
|
|
@@ -41922,108 +41978,22 @@ const StateTaxSection = ({ form, isReadOnly, isDesktop }) => {
|
|
|
41922
41978
|
]
|
|
41923
41979
|
});
|
|
41924
41980
|
};
|
|
41925
|
-
var
|
|
41926
|
-
|
|
41927
|
-
|
|
41928
|
-
|
|
41929
|
-
|
|
41930
|
-
|
|
41931
|
-
|
|
41932
|
-
});
|
|
41933
|
-
var
|
|
41934
|
-
|
|
41935
|
-
|
|
41936
|
-
homeOffice: pipe(Schema.propertySignature(Schema.NullishOr(HomeOfficeSchema)), Schema.fromKey("home_office")),
|
|
41937
|
-
qualifiedTipDeduction: pipe(Schema.propertySignature(Schema.Number), Schema.fromKey("qualified_tip_deduction")),
|
|
41938
|
-
qualifiedOvertimeDeduction: pipe(Schema.propertySignature(Schema.Number), Schema.fromKey("qualified_overtime_deduction")),
|
|
41939
|
-
selfEmploymentTaxDeduction: pipe(Schema.propertySignature(Schema.Number), Schema.fromKey("self_employment_tax_deduction")),
|
|
41940
|
-
preAdjustedGrossIncomeDeduction: pipe(Schema.propertySignature(Schema.Number), Schema.fromKey("pre_adjusted_gross_income_deduction"))
|
|
41941
|
-
});
|
|
41942
|
-
var IncomeSchema = Schema.Struct({
|
|
41943
|
-
w2Income: pipe(Schema.propertySignature(Schema.Number), Schema.fromKey("w2_income")),
|
|
41944
|
-
w2Withholding: pipe(Schema.propertySignature(Schema.Number), Schema.fromKey("w2_withholding")),
|
|
41945
|
-
businessRevenue: pipe(Schema.propertySignature(Schema.Number), Schema.fromKey("business_revenue")),
|
|
41946
|
-
total: Schema.Number
|
|
41947
|
-
});
|
|
41948
|
-
var AdjustedGrossIncomeSchema = Schema.Struct({
|
|
41949
|
-
income: IncomeSchema,
|
|
41950
|
-
deductions: DeductionsSchema,
|
|
41951
|
-
totalAdjustedGrossIncome: pipe(Schema.propertySignature(Schema.Number), Schema.fromKey("total_adjusted_gross_income"))
|
|
41952
|
-
});
|
|
41953
|
-
var MedicareSurtaxSchema = Schema.Struct({
|
|
41954
|
-
medicareSurtaxIncome: pipe(Schema.propertySignature(Schema.Number), Schema.fromKey("medicare_surtax_income")),
|
|
41955
|
-
medicareSurtaxRate: pipe(Schema.propertySignature(Schema.String), Schema.fromKey("medicare_surtax_rate")),
|
|
41956
|
-
medicareSurtaxOwed: pipe(Schema.propertySignature(Schema.Number), Schema.fromKey("medicare_surtax_owed"))
|
|
41957
|
-
});
|
|
41958
|
-
var MedicareTaxSchema = Schema.Struct({
|
|
41959
|
-
medicareIncome: pipe(Schema.propertySignature(Schema.Number), Schema.fromKey("medicare_income")),
|
|
41960
|
-
medicareTaxRate: pipe(Schema.propertySignature(Schema.String), Schema.fromKey("medicare_tax_rate")),
|
|
41961
|
-
medicareTaxOwed: pipe(Schema.propertySignature(Schema.Number), Schema.fromKey("medicare_tax_owed"))
|
|
41962
|
-
});
|
|
41963
|
-
var SocialSecurityTaxSchema = Schema.Struct({
|
|
41964
|
-
socialSecurityIncome: pipe(Schema.propertySignature(Schema.Number), Schema.fromKey("social_security_income")),
|
|
41965
|
-
socialSecurityTaxRate: pipe(Schema.propertySignature(Schema.String), Schema.fromKey("social_security_tax_rate")),
|
|
41966
|
-
socialSecurityTaxOwed: pipe(Schema.propertySignature(Schema.Number), Schema.fromKey("social_security_tax_owed"))
|
|
41967
|
-
});
|
|
41968
|
-
var FederalIncomeTaxSchema = Schema.Struct({
|
|
41969
|
-
federalDeductions: pipe(Schema.propertySignature(Schema.Number), Schema.fromKey("federal_deductions")),
|
|
41970
|
-
qualifiedBusinessIncomeDeduction: pipe(Schema.propertySignature(Schema.Number), Schema.fromKey("qualified_business_income_deduction")),
|
|
41971
|
-
qbiEffectiveRate: pipe(Schema.propertySignature(Schema.String), Schema.fromKey("qbi_effective_rate")),
|
|
41972
|
-
taxableIncome: pipe(Schema.propertySignature(Schema.Number), Schema.fromKey("taxable_income")),
|
|
41973
|
-
effectiveFederalTaxRate: pipe(Schema.propertySignature(Schema.String), Schema.fromKey("effective_federal_tax_rate")),
|
|
41974
|
-
federalIncomeTaxOwed: pipe(Schema.propertySignature(Schema.Number), Schema.fromKey("federal_income_tax_owed"))
|
|
41975
|
-
});
|
|
41976
|
-
var TotalFederalTaxSchema = Schema.Struct({
|
|
41977
|
-
federalIncomeTaxOwed: pipe(Schema.propertySignature(Schema.Number), Schema.fromKey("federal_income_tax_owed")),
|
|
41978
|
-
socialSecurityTaxOwed: pipe(Schema.propertySignature(Schema.Number), Schema.fromKey("social_security_tax_owed")),
|
|
41979
|
-
medicareTaxOwed: pipe(Schema.propertySignature(Schema.Number), Schema.fromKey("medicare_tax_owed")),
|
|
41980
|
-
medicareSurtaxOwed: pipe(Schema.propertySignature(Schema.Number), Schema.fromKey("medicare_surtax_owed")),
|
|
41981
|
-
w2Withholdings: pipe(Schema.propertySignature(Schema.Number), Schema.fromKey("w2_withholdings")),
|
|
41982
|
-
totalFederalTaxOwed: pipe(Schema.propertySignature(Schema.Number), Schema.fromKey("total_federal_tax_owed"))
|
|
41983
|
-
});
|
|
41984
|
-
var UsFederalTaxSchema = Schema.Struct({
|
|
41985
|
-
federalIncomeTax: pipe(Schema.propertySignature(FederalIncomeTaxSchema), Schema.fromKey("federal_income_tax")),
|
|
41986
|
-
socialSecurityTax: pipe(Schema.propertySignature(SocialSecurityTaxSchema), Schema.fromKey("social_security_tax")),
|
|
41987
|
-
medicareTax: pipe(Schema.propertySignature(MedicareTaxSchema), Schema.fromKey("medicare_tax")),
|
|
41988
|
-
medicareSurtax: pipe(Schema.propertySignature(Schema.NullishOr(MedicareSurtaxSchema)), Schema.fromKey("medicare_surtax")),
|
|
41989
|
-
totalFederalTax: pipe(Schema.propertySignature(TotalFederalTaxSchema), Schema.fromKey("total_federal_tax"))
|
|
41990
|
-
});
|
|
41991
|
-
var StateIncomeTaxSchema = Schema.Struct({
|
|
41992
|
-
stateAgi: pipe(Schema.propertySignature(Schema.Number), Schema.fromKey("state_agi")),
|
|
41993
|
-
stateDeductions: pipe(Schema.propertySignature(Schema.Number), Schema.fromKey("state_deductions")),
|
|
41994
|
-
stateTaxableIncome: pipe(Schema.propertySignature(Schema.Number), Schema.fromKey("state_taxable_income")),
|
|
41995
|
-
effectiveStateTaxRate: pipe(Schema.propertySignature(Schema.String), Schema.fromKey("effective_state_tax_rate")),
|
|
41996
|
-
stateIncomeTaxOwed: pipe(Schema.propertySignature(Schema.Number), Schema.fromKey("state_income_tax_owed"))
|
|
41997
|
-
});
|
|
41998
|
-
var StateAdditionalTaxSchema = Schema.Struct({
|
|
41999
|
-
taxName: pipe(Schema.propertySignature(Schema.String), Schema.fromKey("tax_name")),
|
|
42000
|
-
taxRate: pipe(Schema.propertySignature(Schema.String), Schema.fromKey("tax_rate")),
|
|
42001
|
-
taxableAmount: pipe(Schema.propertySignature(Schema.Number), Schema.fromKey("taxable_amount")),
|
|
42002
|
-
taxOwed: pipe(Schema.propertySignature(Schema.Number), Schema.fromKey("tax_owed"))
|
|
42003
|
-
});
|
|
42004
|
-
var TotalStateTaxSchema = Schema.Struct({
|
|
42005
|
-
stateIncomeTaxOwed: pipe(Schema.propertySignature(Schema.Number), Schema.fromKey("state_income_tax_owed")),
|
|
42006
|
-
additionalTaxesOwed: pipe(Schema.propertySignature(Schema.Number), Schema.fromKey("additional_taxes_owed")),
|
|
42007
|
-
stateWithholdings: pipe(Schema.propertySignature(Schema.Number), Schema.fromKey("state_withholdings")),
|
|
42008
|
-
totalStateTaxOwed: pipe(Schema.propertySignature(Schema.Number), Schema.fromKey("total_state_tax_owed"))
|
|
42009
|
-
});
|
|
42010
|
-
var UsStateTaxSchema = Schema.Struct({
|
|
42011
|
-
stateCode: pipe(Schema.propertySignature(Schema.String), Schema.fromKey("state_code")),
|
|
42012
|
-
stateName: pipe(Schema.propertySignature(Schema.String), Schema.fromKey("state_name")),
|
|
42013
|
-
filingStatus: pipe(Schema.propertySignature(Schema.String), Schema.fromKey("filing_status")),
|
|
42014
|
-
stateIncomeTax: pipe(Schema.propertySignature(StateIncomeTaxSchema), Schema.fromKey("state_income_tax")),
|
|
42015
|
-
additionalTaxes: pipe(Schema.propertySignature(Schema.Array(StateAdditionalTaxSchema)), Schema.fromKey("additional_taxes")),
|
|
42016
|
-
totalStateTax: pipe(Schema.propertySignature(TotalStateTaxSchema), Schema.fromKey("total_state_tax"))
|
|
42017
|
-
});
|
|
42018
|
-
var TaxesSchema = Schema.Struct({
|
|
42019
|
-
usFederal: pipe(Schema.propertySignature(Schema.NullishOr(UsFederalTaxSchema)), Schema.fromKey("us_federal")),
|
|
42020
|
-
usState: pipe(Schema.propertySignature(Schema.NullishOr(UsStateTaxSchema)), Schema.fromKey("us_state"))
|
|
41981
|
+
var TaxDetailsValueSchema = Schema.Union(UnifiedCellValueCurrencySchema, UnifiedCellValueDecimalSchema, UnifiedCellValuePercentageSchema, UnifiedCellValueUnknownSchema);
|
|
41982
|
+
var taxDetailsRowFields = {
|
|
41983
|
+
rowKey: pipe(Schema.propertySignature(Schema.String), Schema.fromKey("row_key")),
|
|
41984
|
+
label: Schema.String,
|
|
41985
|
+
value: Schema.optional(TaxDetailsValueSchema),
|
|
41986
|
+
operator: Schema.optional(Schema.String)
|
|
41987
|
+
};
|
|
41988
|
+
var TaxDetailsRowSchema = Schema.Struct(_objectSpread2(_objectSpread2({}, taxDetailsRowFields), {}, { breakdown: Schema.optional(Schema.Array(Schema.suspend(() => TaxDetailsRowSchema))) }));
|
|
41989
|
+
var TaxDetailsMetaSchema = Schema.Struct({
|
|
41990
|
+
year: Schema.Number,
|
|
41991
|
+
filingStatus: pipe(Schema.propertySignature(Schema.String), Schema.fromKey("filing_status"))
|
|
42021
41992
|
});
|
|
42022
41993
|
var TaxDetailsSchema = Schema.Struct({
|
|
42023
|
-
|
|
42024
|
-
|
|
42025
|
-
|
|
42026
|
-
taxes: TaxesSchema
|
|
41994
|
+
type: Schema.String,
|
|
41995
|
+
meta: TaxDetailsMetaSchema,
|
|
41996
|
+
rows: Schema.Array(TaxDetailsRowSchema)
|
|
42027
41997
|
});
|
|
42028
41998
|
const TaxDetailsResponseSchema = Schema.Struct({ data: TaxDetailsSchema });
|
|
42029
41999
|
var TAX_DETAILS_TAG_KEY = "#tax-details";
|
|
@@ -42505,21 +42475,23 @@ const TaxBanner = ({ uncategorizedCount, uncategorizedAmount }) => {
|
|
|
42505
42475
|
})
|
|
42506
42476
|
});
|
|
42507
42477
|
};
|
|
42508
|
-
|
|
42509
|
-
|
|
42510
|
-
|
|
42511
|
-
|
|
42512
|
-
|
|
42513
|
-
|
|
42514
|
-
|
|
42515
|
-
return
|
|
42516
|
-
|
|
42517
|
-
|
|
42518
|
-
|
|
42478
|
+
const ResponsiveDetailView = ({ name: name$1, slots, children, mobileProps }) => {
|
|
42479
|
+
const { isDesktop } = useSizeClass();
|
|
42480
|
+
if (isDesktop) return /* @__PURE__ */ jsx(BaseDetailView, {
|
|
42481
|
+
name: name$1,
|
|
42482
|
+
slots,
|
|
42483
|
+
children
|
|
42484
|
+
});
|
|
42485
|
+
return /* @__PURE__ */ jsxs(VStack, {
|
|
42486
|
+
className: classNames("Layer__ResponsiveDetailView", mobileProps === null || mobileProps === void 0 ? void 0 : mobileProps.className),
|
|
42487
|
+
gap: "md",
|
|
42488
|
+
children: [/* @__PURE__ */ jsx(slots.Header, {}), children]
|
|
42489
|
+
});
|
|
42519
42490
|
};
|
|
42520
42491
|
var TaxSummarySectionTypeSchema = Schema.Literal("federal", "state");
|
|
42521
42492
|
var TaxSummarySectionSchema = Schema.Struct({
|
|
42522
42493
|
type: TaxSummarySectionTypeSchema,
|
|
42494
|
+
key: Schema.NullishOr(Schema.String),
|
|
42523
42495
|
label: Schema.String,
|
|
42524
42496
|
total: Schema.Number,
|
|
42525
42497
|
taxesPaid: pipe(Schema.propertySignature(Schema.Number), Schema.fromKey("taxes_paid")),
|
|
@@ -42577,447 +42549,91 @@ function useTaxSummary({ year, reportingBasis, fullYearProjection, enabled = tru
|
|
|
42577
42549
|
};
|
|
42578
42550
|
}()));
|
|
42579
42551
|
}
|
|
42580
|
-
|
|
42581
|
-
|
|
42582
|
-
|
|
42583
|
-
|
|
42584
|
-
|
|
42585
|
-
|
|
42586
|
-
|
|
42587
|
-
|
|
42588
|
-
|
|
42589
|
-
|
|
42590
|
-
|
|
42591
|
-
})
|
|
42592
|
-
}), /* @__PURE__ */ jsx(AnimatedPresenceElement, {
|
|
42593
|
-
motionKey: "expandable-content",
|
|
42594
|
-
variant: "expand",
|
|
42595
|
-
isOpen: isExpanded,
|
|
42596
|
-
style: { overflow: "hidden" },
|
|
42597
|
-
children: /* @__PURE__ */ jsx(VStack, {
|
|
42598
|
-
className: "Layer__ExpandableCard__Content",
|
|
42599
|
-
children
|
|
42600
|
-
})
|
|
42601
|
-
})]
|
|
42602
|
-
});
|
|
42603
|
-
};
|
|
42604
|
-
const ResponsiveDetailView = ({ name: name$1, slots, children, mobileProps }) => {
|
|
42605
|
-
const { isDesktop } = useSizeClass();
|
|
42606
|
-
if (isDesktop) return /* @__PURE__ */ jsx(BaseDetailView, {
|
|
42607
|
-
name: name$1,
|
|
42608
|
-
slots,
|
|
42609
|
-
children
|
|
42610
|
-
});
|
|
42611
|
-
return /* @__PURE__ */ jsxs(VStack, {
|
|
42612
|
-
className: classNames("Layer__ResponsiveDetailView", mobileProps === null || mobileProps === void 0 ? void 0 : mobileProps.className),
|
|
42613
|
-
gap: "md",
|
|
42614
|
-
children: [/* @__PURE__ */ jsx(slots.Header, {}), children]
|
|
42615
|
-
});
|
|
42616
|
-
};
|
|
42617
|
-
let TaxTableRowVariant = /* @__PURE__ */ function(TaxTableRowVariant$1) {
|
|
42618
|
-
TaxTableRowVariant$1["Standard"] = "standard";
|
|
42619
|
-
TaxTableRowVariant$1["Nested"] = "nested";
|
|
42620
|
-
TaxTableRowVariant$1["SectionTotal"] = "section-total";
|
|
42621
|
-
TaxTableRowVariant$1["Total"] = "total";
|
|
42622
|
-
TaxTableRowVariant$1["Empty"] = "empty";
|
|
42623
|
-
return TaxTableRowVariant$1;
|
|
42624
|
-
}({});
|
|
42625
|
-
var VARIANT_CLASS_MAP = {
|
|
42626
|
-
[TaxTableRowVariant.Standard]: "Layer__TaxTable__Row",
|
|
42627
|
-
[TaxTableRowVariant.Nested]: "Layer__TaxTable__Row Layer__TaxTable__Row--nested",
|
|
42628
|
-
[TaxTableRowVariant.SectionTotal]: "Layer__TaxTable__Row Layer__TaxTable__Row--section-total",
|
|
42629
|
-
[TaxTableRowVariant.Total]: "Layer__TaxTable__Row Layer__TaxTable__Row--total",
|
|
42630
|
-
[TaxTableRowVariant.Empty]: "Layer__TaxTable__Row Layer__TaxTable__Row--empty"
|
|
42631
|
-
};
|
|
42632
|
-
var BOLD_VARIANTS = new Set([TaxTableRowVariant.SectionTotal, TaxTableRowVariant.Total]);
|
|
42633
|
-
const TaxTableRow = ({ label: label$50, value, variant, sign }) => {
|
|
42634
|
-
const { isMobile } = useSizeClass();
|
|
42635
|
-
const isEmpty = variant === TaxTableRowVariant.Empty;
|
|
42636
|
-
const isBold = BOLD_VARIANTS.has(variant);
|
|
42637
|
-
const mobileClass = isMobile ? "Layer__UI__Table-Row--mobile" : "";
|
|
42638
|
-
const className = classNames(VARIANT_CLASS_MAP[variant], mobileClass);
|
|
42639
|
-
const formattedLabel = sign ? `${sign} ${label$50}` : label$50;
|
|
42640
|
-
return /* @__PURE__ */ jsxs(Row$1, {
|
|
42641
|
-
className,
|
|
42642
|
-
children: [/* @__PURE__ */ jsx(Cell$2, { children: !isEmpty && (isBold ? /* @__PURE__ */ jsx(Span, {
|
|
42643
|
-
weight: "bold",
|
|
42644
|
-
children: formattedLabel
|
|
42645
|
-
}) : /* @__PURE__ */ jsx(Span, { children: formattedLabel })) }), /* @__PURE__ */ jsx(Cell$2, { children: !isEmpty && (typeof value === "number" ? /* @__PURE__ */ jsx(MoneySpan, {
|
|
42646
|
-
weight: isBold ? "bold" : void 0,
|
|
42647
|
-
amount: value
|
|
42648
|
-
}) : /* @__PURE__ */ jsx(Span, {
|
|
42649
|
-
weight: isBold ? "bold" : void 0,
|
|
42650
|
-
children: value
|
|
42651
|
-
})) })]
|
|
42652
|
-
});
|
|
42653
|
-
};
|
|
42654
|
-
const AdjustedGrossIncomeTable = ({ data }) => {
|
|
42655
|
-
const { t } = useTranslation();
|
|
42656
|
-
const { income, deductions, totalAdjustedGrossIncome } = data;
|
|
42657
|
-
const deductionRows = useMemo(() => [
|
|
42658
|
-
{
|
|
42659
|
-
key: "businessExpenses",
|
|
42660
|
-
label: t("taxEstimates:label.deductible_expenses", "Deductible Expenses"),
|
|
42661
|
-
getAmount: (d) => d.businessExpenses
|
|
42662
|
-
},
|
|
42663
|
-
{
|
|
42664
|
-
key: "vehicleExpense",
|
|
42665
|
-
label: t("taxEstimates:label.deductible_mileage_expenses", "Deductible Mileage Expenses"),
|
|
42666
|
-
getAmount: (d) => {
|
|
42667
|
-
var _d$vehicleExpense$amo, _d$vehicleExpense;
|
|
42668
|
-
return (_d$vehicleExpense$amo = (_d$vehicleExpense = d.vehicleExpense) === null || _d$vehicleExpense === void 0 ? void 0 : _d$vehicleExpense.amount) !== null && _d$vehicleExpense$amo !== void 0 ? _d$vehicleExpense$amo : 0;
|
|
42669
|
-
}
|
|
42670
|
-
},
|
|
42671
|
-
{
|
|
42672
|
-
key: "homeOffice",
|
|
42673
|
-
label: t("taxEstimates:label.home_office_deduction", "Home Office Deduction"),
|
|
42674
|
-
getAmount: (d) => {
|
|
42675
|
-
var _d$homeOffice$amount, _d$homeOffice;
|
|
42676
|
-
return (_d$homeOffice$amount = (_d$homeOffice = d.homeOffice) === null || _d$homeOffice === void 0 ? void 0 : _d$homeOffice.amount) !== null && _d$homeOffice$amount !== void 0 ? _d$homeOffice$amount : 0;
|
|
42677
|
-
}
|
|
42678
|
-
},
|
|
42679
|
-
{
|
|
42680
|
-
key: "selfEmploymentTaxDeduction",
|
|
42681
|
-
label: t("taxEstimates:label.self_employment_deduction", "Self-Employment Deduction"),
|
|
42682
|
-
getAmount: (d) => d.selfEmploymentTaxDeduction
|
|
42683
|
-
},
|
|
42684
|
-
{
|
|
42685
|
-
key: "qualifiedTipDeduction",
|
|
42686
|
-
label: t("taxEstimates:label.qualified_tip_deduction", "Qualified Tip Deduction"),
|
|
42687
|
-
getAmount: (d) => d.qualifiedTipDeduction
|
|
42688
|
-
},
|
|
42689
|
-
{
|
|
42690
|
-
key: "qualifiedOvertimeDeduction",
|
|
42691
|
-
label: t("taxEstimates:label.qualified_overtime_deduction", "Qualified Overtime Deduction"),
|
|
42692
|
-
getAmount: (d) => d.qualifiedOvertimeDeduction
|
|
42693
|
-
}
|
|
42694
|
-
], [t]);
|
|
42695
|
-
return /* @__PURE__ */ jsxs(Table$1, {
|
|
42696
|
-
className: "Layer__TaxTable",
|
|
42697
|
-
"aria-label": t("taxEstimates:label.adjusted_gross_income", "Adjusted Gross Income"),
|
|
42698
|
-
children: [/* @__PURE__ */ jsx(TableHeader$1, {
|
|
42699
|
-
className: "Layer__TaxTable__Header",
|
|
42700
|
-
children: /* @__PURE__ */ jsxs(Row$1, { children: [/* @__PURE__ */ jsx(Column$1, {
|
|
42701
|
-
isRowHeader: true,
|
|
42702
|
-
children: t("common:label.description", "Description")
|
|
42703
|
-
}), /* @__PURE__ */ jsx(Column$1, { children: t("common:label.amount", "Amount") })] })
|
|
42704
|
-
}), /* @__PURE__ */ jsxs(TableBody$1, { children: [
|
|
42705
|
-
/* @__PURE__ */ jsx(TaxTableRow, {
|
|
42706
|
-
label: t("taxEstimates:label.business_income", "Business Income"),
|
|
42707
|
-
value: income.businessRevenue,
|
|
42708
|
-
variant: TaxTableRowVariant.Standard
|
|
42709
|
-
}),
|
|
42710
|
-
/* @__PURE__ */ jsx(TaxTableRow, {
|
|
42711
|
-
label: t("taxEstimates:label.w2_income", "W-2 Income"),
|
|
42712
|
-
value: income.w2Income,
|
|
42713
|
-
variant: TaxTableRowVariant.Standard
|
|
42714
|
-
}),
|
|
42715
|
-
/* @__PURE__ */ jsx(TaxTableRow, {
|
|
42716
|
-
label: t("taxEstimates:label.deductions", "Deductions"),
|
|
42717
|
-
value: deductions.preAdjustedGrossIncomeDeduction,
|
|
42718
|
-
variant: TaxTableRowVariant.Standard
|
|
42719
|
-
}),
|
|
42720
|
-
deductionRows.map(({ key, label: label$50, getAmount }) => /* @__PURE__ */ jsx(TaxTableRow, {
|
|
42721
|
-
label: label$50,
|
|
42722
|
-
sign: "-",
|
|
42723
|
-
value: getAmount(deductions),
|
|
42724
|
-
variant: TaxTableRowVariant.Nested
|
|
42725
|
-
}, key)),
|
|
42726
|
-
/* @__PURE__ */ jsx(TaxTableRow, {
|
|
42727
|
-
label: t("taxEstimates:label.adjusted_gross_income", "Adjusted Gross Income"),
|
|
42728
|
-
value: totalAdjustedGrossIncome,
|
|
42729
|
-
variant: TaxTableRowVariant.Total
|
|
42730
|
-
})
|
|
42731
|
-
] })]
|
|
42732
|
-
});
|
|
42733
|
-
};
|
|
42734
|
-
const FederalTaxTable = ({ data, adjustedGrossIncome }) => {
|
|
42735
|
-
const { t } = useTranslation();
|
|
42736
|
-
const { federalIncomeTax, socialSecurityTax, medicareTax, medicareSurtax, totalFederalTax } = data;
|
|
42737
|
-
return /* @__PURE__ */ jsxs(Table$1, {
|
|
42738
|
-
className: "Layer__TaxTable",
|
|
42739
|
-
"aria-label": t("taxEstimates:label.federal_tax", "Federal Tax"),
|
|
42740
|
-
children: [/* @__PURE__ */ jsx(TableHeader$1, {
|
|
42741
|
-
className: "Layer__TaxTable__Header",
|
|
42742
|
-
children: /* @__PURE__ */ jsxs(Row$1, { children: [/* @__PURE__ */ jsx(Column$1, {
|
|
42743
|
-
isRowHeader: true,
|
|
42744
|
-
children: t("common:label.description", "Description")
|
|
42745
|
-
}), /* @__PURE__ */ jsx(Column$1, { children: t("common:label.amount", "Amount") })] })
|
|
42746
|
-
}), /* @__PURE__ */ jsxs(TableBody$1, { children: [
|
|
42747
|
-
/* @__PURE__ */ jsx(TaxTableRow, {
|
|
42748
|
-
label: t("taxEstimates:label.adjusted_gross_income", "Adjusted Gross Income"),
|
|
42749
|
-
value: adjustedGrossIncome,
|
|
42750
|
-
variant: TaxTableRowVariant.Standard
|
|
42751
|
-
}),
|
|
42752
|
-
/* @__PURE__ */ jsx(TaxTableRow, {
|
|
42753
|
-
label: t("taxEstimates:label.federal_deductions", "Federal Deductions"),
|
|
42754
|
-
sign: "-",
|
|
42755
|
-
value: federalIncomeTax.federalDeductions,
|
|
42756
|
-
variant: TaxTableRowVariant.Nested
|
|
42757
|
-
}),
|
|
42758
|
-
/* @__PURE__ */ jsx(TaxTableRow, {
|
|
42759
|
-
label: t("taxEstimates:label.business_income_deduction_rate", "Business Income Deduction ({{rate}})", { rate: federalIncomeTax.qbiEffectiveRate }),
|
|
42760
|
-
sign: "-",
|
|
42761
|
-
value: federalIncomeTax.qualifiedBusinessIncomeDeduction,
|
|
42762
|
-
variant: TaxTableRowVariant.Nested
|
|
42763
|
-
}),
|
|
42764
|
-
/* @__PURE__ */ jsx(TaxTableRow, {
|
|
42765
|
-
label: t("taxEstimates:label.taxable_income", "Taxable Income"),
|
|
42766
|
-
value: federalIncomeTax.taxableIncome,
|
|
42767
|
-
variant: TaxTableRowVariant.Standard
|
|
42768
|
-
}),
|
|
42769
|
-
/* @__PURE__ */ jsx(TaxTableRow, {
|
|
42770
|
-
label: t("taxEstimates:label.federal_tax_rate", "Federal Tax Rate"),
|
|
42771
|
-
sign: "×",
|
|
42772
|
-
value: federalIncomeTax.effectiveFederalTaxRate,
|
|
42773
|
-
variant: TaxTableRowVariant.Nested
|
|
42774
|
-
}),
|
|
42775
|
-
/* @__PURE__ */ jsx(TaxTableRow, {
|
|
42776
|
-
label: t("taxEstimates:label.federal_tax_estimate_owed", "Federal Tax Estimate (Owed)"),
|
|
42777
|
-
value: federalIncomeTax.federalIncomeTaxOwed,
|
|
42778
|
-
variant: TaxTableRowVariant.SectionTotal
|
|
42779
|
-
}),
|
|
42780
|
-
/* @__PURE__ */ jsx(TaxTableRow, {
|
|
42781
|
-
label: "",
|
|
42782
|
-
value: "",
|
|
42783
|
-
variant: TaxTableRowVariant.Empty
|
|
42784
|
-
}),
|
|
42785
|
-
/* @__PURE__ */ jsx(TaxTableRow, {
|
|
42786
|
-
label: t("taxEstimates:label.taxable_social_security_income", "Taxable Social Security Income"),
|
|
42787
|
-
value: socialSecurityTax.socialSecurityIncome,
|
|
42788
|
-
variant: TaxTableRowVariant.Standard
|
|
42789
|
-
}),
|
|
42790
|
-
/* @__PURE__ */ jsx(TaxTableRow, {
|
|
42791
|
-
label: t("taxEstimates:label.social_security_tax_rate", "Social Security Tax Rate"),
|
|
42792
|
-
sign: "×",
|
|
42793
|
-
value: socialSecurityTax.socialSecurityTaxRate,
|
|
42794
|
-
variant: TaxTableRowVariant.Nested
|
|
42795
|
-
}),
|
|
42796
|
-
/* @__PURE__ */ jsx(TaxTableRow, {
|
|
42797
|
-
label: t("taxEstimates:label.social_security_tax_estimate_owed", "Social Security Tax Estimate (Owed)"),
|
|
42798
|
-
value: socialSecurityTax.socialSecurityTaxOwed,
|
|
42799
|
-
variant: TaxTableRowVariant.SectionTotal
|
|
42800
|
-
}),
|
|
42801
|
-
/* @__PURE__ */ jsx(TaxTableRow, {
|
|
42802
|
-
label: "",
|
|
42803
|
-
value: "",
|
|
42804
|
-
variant: TaxTableRowVariant.Empty
|
|
42805
|
-
}),
|
|
42806
|
-
/* @__PURE__ */ jsx(TaxTableRow, {
|
|
42807
|
-
label: t("taxEstimates:label.taxable_medicare_income", "Taxable Medicare Income"),
|
|
42808
|
-
value: medicareTax.medicareIncome,
|
|
42809
|
-
variant: TaxTableRowVariant.Standard
|
|
42810
|
-
}),
|
|
42811
|
-
/* @__PURE__ */ jsx(TaxTableRow, {
|
|
42812
|
-
label: t("taxEstimates:label.medicare_tax_rate", "Medicare Tax Rate"),
|
|
42813
|
-
sign: "×",
|
|
42814
|
-
value: medicareTax.medicareTaxRate,
|
|
42815
|
-
variant: TaxTableRowVariant.Nested
|
|
42816
|
-
}),
|
|
42817
|
-
/* @__PURE__ */ jsx(TaxTableRow, {
|
|
42818
|
-
label: t("taxEstimates:label.medicare_tax_estimate_owed", "Medicare Tax Estimate (Owed)"),
|
|
42819
|
-
value: medicareTax.medicareTaxOwed,
|
|
42820
|
-
variant: TaxTableRowVariant.SectionTotal
|
|
42821
|
-
}),
|
|
42822
|
-
medicareSurtax && /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
42823
|
-
/* @__PURE__ */ jsx(TaxTableRow, {
|
|
42824
|
-
label: "",
|
|
42825
|
-
value: "",
|
|
42826
|
-
variant: TaxTableRowVariant.Empty
|
|
42827
|
-
}),
|
|
42828
|
-
/* @__PURE__ */ jsx(TaxTableRow, {
|
|
42829
|
-
label: t("taxEstimates:label.taxable_medicare_surtax_income", "Taxable Medicare Surtax Income"),
|
|
42830
|
-
value: medicareSurtax.medicareSurtaxIncome,
|
|
42831
|
-
variant: TaxTableRowVariant.Standard
|
|
42832
|
-
}),
|
|
42833
|
-
/* @__PURE__ */ jsx(TaxTableRow, {
|
|
42834
|
-
label: t("taxEstimates:label.medicare_surtax_rate", "Medicare Surtax Rate"),
|
|
42835
|
-
sign: "×",
|
|
42836
|
-
value: medicareSurtax.medicareSurtaxRate,
|
|
42837
|
-
variant: TaxTableRowVariant.Nested
|
|
42838
|
-
}),
|
|
42839
|
-
/* @__PURE__ */ jsx(TaxTableRow, {
|
|
42840
|
-
label: t("taxEstimates:label.medicare_surtax_estimate_owed", "Medicare Surtax Estimate (Owed)"),
|
|
42841
|
-
value: medicareSurtax.medicareSurtaxOwed,
|
|
42842
|
-
variant: TaxTableRowVariant.SectionTotal
|
|
42843
|
-
})
|
|
42844
|
-
] }),
|
|
42845
|
-
/* @__PURE__ */ jsx(TaxTableRow, {
|
|
42846
|
-
label: "",
|
|
42847
|
-
value: "",
|
|
42848
|
-
variant: TaxTableRowVariant.Empty
|
|
42849
|
-
}),
|
|
42850
|
-
/* @__PURE__ */ jsx(TaxTableRow, {
|
|
42851
|
-
label: t("taxEstimates:label.federal_tax_estimate_owed", "Federal Tax Estimate (Owed)"),
|
|
42852
|
-
value: totalFederalTax.federalIncomeTaxOwed,
|
|
42853
|
-
variant: TaxTableRowVariant.Standard
|
|
42854
|
-
}),
|
|
42855
|
-
/* @__PURE__ */ jsx(TaxTableRow, {
|
|
42856
|
-
label: t("taxEstimates:label.social_security_tax_estimate_owed", "Social Security Tax Estimate (Owed)"),
|
|
42857
|
-
sign: "+",
|
|
42858
|
-
value: totalFederalTax.socialSecurityTaxOwed,
|
|
42859
|
-
variant: TaxTableRowVariant.Nested
|
|
42860
|
-
}),
|
|
42861
|
-
/* @__PURE__ */ jsx(TaxTableRow, {
|
|
42862
|
-
label: t("taxEstimates:label.medicare_tax_estimate_owed", "Medicare Tax Estimate (Owed)"),
|
|
42863
|
-
sign: "+",
|
|
42864
|
-
value: totalFederalTax.medicareTaxOwed,
|
|
42865
|
-
variant: TaxTableRowVariant.Nested
|
|
42866
|
-
}),
|
|
42867
|
-
medicareSurtax && /* @__PURE__ */ jsx(TaxTableRow, {
|
|
42868
|
-
label: t("taxEstimates:label.medicare_surtax_estimate_owed", "Medicare Surtax Estimate (Owed)"),
|
|
42869
|
-
sign: "+",
|
|
42870
|
-
value: totalFederalTax.medicareSurtaxOwed,
|
|
42871
|
-
variant: TaxTableRowVariant.Nested
|
|
42872
|
-
}),
|
|
42873
|
-
/* @__PURE__ */ jsx(TaxTableRow, {
|
|
42874
|
-
label: t("taxEstimates:label.amount_applied_federal_w2", "Amount Applied from Federal W-2 Withholding"),
|
|
42875
|
-
sign: "-",
|
|
42876
|
-
value: totalFederalTax.w2Withholdings,
|
|
42877
|
-
variant: TaxTableRowVariant.Nested
|
|
42878
|
-
}),
|
|
42879
|
-
/* @__PURE__ */ jsx(TaxTableRow, {
|
|
42880
|
-
label: t("taxEstimates:label.total_federal_tax_estimate", "Total Federal Tax Estimate"),
|
|
42881
|
-
value: totalFederalTax.totalFederalTaxOwed,
|
|
42882
|
-
variant: TaxTableRowVariant.Total
|
|
42883
|
-
})
|
|
42884
|
-
] })]
|
|
42885
|
-
});
|
|
42552
|
+
var _excluded$1 = [
|
|
42553
|
+
"condition",
|
|
42554
|
+
"cases",
|
|
42555
|
+
"contexts"
|
|
42556
|
+
];
|
|
42557
|
+
const tConditional = (translate, key, _ref) => {
|
|
42558
|
+
let { condition, cases, contexts } = _ref;
|
|
42559
|
+
return translate(key, _objectSpread2(_objectSpread2({}, _objectWithoutProperties(_ref, _excluded$1)), {}, {
|
|
42560
|
+
context: contexts === null || contexts === void 0 ? void 0 : contexts[condition],
|
|
42561
|
+
defaultValue: cases[condition]
|
|
42562
|
+
}));
|
|
42886
42563
|
};
|
|
42887
|
-
|
|
42564
|
+
var AmountWithLabel = ({ slotProps }) => /* @__PURE__ */ jsxs(VStack, {
|
|
42565
|
+
className: "Layer__TaxSummaryCard__AmountWithLabel",
|
|
42566
|
+
gap: "2xs",
|
|
42567
|
+
align: "start",
|
|
42568
|
+
children: [/* @__PURE__ */ jsx(MoneySpan, _objectSpread2({}, slotProps.MoneySpan)), /* @__PURE__ */ jsx(Badge, _objectSpread2({
|
|
42569
|
+
size: BadgeSize.SMALL,
|
|
42570
|
+
variant: BadgeVariant.NEUTRAL
|
|
42571
|
+
}, slotProps.Badge))]
|
|
42572
|
+
});
|
|
42573
|
+
const EquationRow = ({ section, size = "md" }) => {
|
|
42888
42574
|
const { t } = useTranslation();
|
|
42889
|
-
const { stateIncomeTax, additionalTaxes, totalStateTax } = data;
|
|
42890
|
-
return /* @__PURE__ */ jsxs(Table$1, {
|
|
42891
|
-
className: "Layer__TaxTable",
|
|
42892
|
-
"aria-label": t("taxEstimates:label.state_tax", "State Tax"),
|
|
42893
|
-
children: [/* @__PURE__ */ jsx(TableHeader$1, {
|
|
42894
|
-
className: "Layer__TaxTable__Header",
|
|
42895
|
-
children: /* @__PURE__ */ jsxs(Row$1, { children: [/* @__PURE__ */ jsx(Column$1, {
|
|
42896
|
-
isRowHeader: true,
|
|
42897
|
-
children: t("common:label.description", "Description")
|
|
42898
|
-
}), /* @__PURE__ */ jsx(Column$1, { children: t("common:label.amount", "Amount") })] })
|
|
42899
|
-
}), /* @__PURE__ */ jsxs(TableBody$1, { children: [
|
|
42900
|
-
/* @__PURE__ */ jsx(TaxTableRow, {
|
|
42901
|
-
label: t("taxEstimates:label.state_adjusted_gross_income", "State Adjusted Gross Income"),
|
|
42902
|
-
value: stateIncomeTax.stateAgi,
|
|
42903
|
-
variant: TaxTableRowVariant.Standard
|
|
42904
|
-
}),
|
|
42905
|
-
/* @__PURE__ */ jsx(TaxTableRow, {
|
|
42906
|
-
label: t("taxEstimates:label.state_deductions", "State Deductions"),
|
|
42907
|
-
sign: "-",
|
|
42908
|
-
value: stateIncomeTax.stateDeductions,
|
|
42909
|
-
variant: TaxTableRowVariant.Nested
|
|
42910
|
-
}),
|
|
42911
|
-
/* @__PURE__ */ jsx(TaxTableRow, {
|
|
42912
|
-
label: t("taxEstimates:label.state_taxable_income", "State Taxable Income"),
|
|
42913
|
-
value: stateIncomeTax.stateTaxableIncome,
|
|
42914
|
-
variant: TaxTableRowVariant.Standard
|
|
42915
|
-
}),
|
|
42916
|
-
/* @__PURE__ */ jsx(TaxTableRow, {
|
|
42917
|
-
label: t("taxEstimates:label.state_tax_rate", "State Tax Rate"),
|
|
42918
|
-
sign: "×",
|
|
42919
|
-
value: stateIncomeTax.effectiveStateTaxRate,
|
|
42920
|
-
variant: TaxTableRowVariant.Nested
|
|
42921
|
-
}),
|
|
42922
|
-
/* @__PURE__ */ jsx(TaxTableRow, {
|
|
42923
|
-
label: t("taxEstimates:label.state_income_tax_estimate_owed", "State Income Tax Estimate (Owed)"),
|
|
42924
|
-
value: stateIncomeTax.stateIncomeTaxOwed,
|
|
42925
|
-
variant: TaxTableRowVariant.SectionTotal
|
|
42926
|
-
}),
|
|
42927
|
-
additionalTaxes.length > 0 && /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(TaxTableRow, {
|
|
42928
|
-
label: "",
|
|
42929
|
-
value: "",
|
|
42930
|
-
variant: TaxTableRowVariant.Empty
|
|
42931
|
-
}), additionalTaxes.map((additionalTax, index) => /* @__PURE__ */ jsxs(React.Fragment, { children: [
|
|
42932
|
-
/* @__PURE__ */ jsx(TaxTableRow, {
|
|
42933
|
-
label: t("taxEstimates:label.taxable_amount_tax_name", "Taxable Amount for {{taxName}}", { taxName: additionalTax.taxName }),
|
|
42934
|
-
value: additionalTax.taxableAmount,
|
|
42935
|
-
variant: TaxTableRowVariant.Standard
|
|
42936
|
-
}),
|
|
42937
|
-
/* @__PURE__ */ jsx(TaxTableRow, {
|
|
42938
|
-
label: t("taxEstimates:label.tax_name_rate", "{{taxName}} Rate", { taxName: additionalTax.taxName }),
|
|
42939
|
-
sign: "×",
|
|
42940
|
-
value: additionalTax.taxRate,
|
|
42941
|
-
variant: TaxTableRowVariant.Nested
|
|
42942
|
-
}),
|
|
42943
|
-
/* @__PURE__ */ jsx(TaxTableRow, {
|
|
42944
|
-
label: t("taxEstimates:label.tax_name_estimate_owed", "{{taxName}} Estimate (Owed)", { taxName: additionalTax.taxName }),
|
|
42945
|
-
value: additionalTax.taxOwed,
|
|
42946
|
-
variant: TaxTableRowVariant.SectionTotal
|
|
42947
|
-
}),
|
|
42948
|
-
index < additionalTaxes.length - 1 && /* @__PURE__ */ jsx(TaxTableRow, {
|
|
42949
|
-
label: "",
|
|
42950
|
-
value: "",
|
|
42951
|
-
variant: TaxTableRowVariant.Empty
|
|
42952
|
-
})
|
|
42953
|
-
] }, additionalTax.taxName))] }),
|
|
42954
|
-
/* @__PURE__ */ jsx(TaxTableRow, {
|
|
42955
|
-
label: "",
|
|
42956
|
-
value: "",
|
|
42957
|
-
variant: TaxTableRowVariant.Empty
|
|
42958
|
-
}),
|
|
42959
|
-
/* @__PURE__ */ jsx(TaxTableRow, {
|
|
42960
|
-
label: t("taxEstimates:label.state_income_tax_estimate_owed", "State Income Tax Estimate (Owed)"),
|
|
42961
|
-
value: totalStateTax.stateIncomeTaxOwed,
|
|
42962
|
-
variant: TaxTableRowVariant.Standard
|
|
42963
|
-
}),
|
|
42964
|
-
additionalTaxes.length > 0 && /* @__PURE__ */ jsx(TaxTableRow, {
|
|
42965
|
-
label: t("taxEstimates:label.additional_state_taxes_estimate_owed", "Additional State Taxes Estimate (Owed)"),
|
|
42966
|
-
sign: "+",
|
|
42967
|
-
value: totalStateTax.additionalTaxesOwed,
|
|
42968
|
-
variant: TaxTableRowVariant.Nested
|
|
42969
|
-
}),
|
|
42970
|
-
/* @__PURE__ */ jsx(TaxTableRow, {
|
|
42971
|
-
label: t("taxEstimates:label.amount_applied_state_withholding", "Amount Applied from State Withholding"),
|
|
42972
|
-
sign: "-",
|
|
42973
|
-
value: totalStateTax.stateWithholdings,
|
|
42974
|
-
variant: TaxTableRowVariant.Nested
|
|
42975
|
-
}),
|
|
42976
|
-
/* @__PURE__ */ jsx(TaxTableRow, {
|
|
42977
|
-
label: t("taxEstimates:label.total_state_tax_estimate", "Total State Tax Estimate"),
|
|
42978
|
-
value: totalStateTax.totalStateTaxOwed,
|
|
42979
|
-
variant: TaxTableRowVariant.Total
|
|
42980
|
-
})
|
|
42981
|
-
] })]
|
|
42982
|
-
});
|
|
42983
|
-
};
|
|
42984
|
-
const TaxDetailsExpandableCardHeading = ({ title, amount }) => {
|
|
42985
|
-
const { isMobile } = useSizeClass();
|
|
42986
42575
|
return /* @__PURE__ */ jsxs(HStack, {
|
|
42987
|
-
className: "
|
|
42988
|
-
|
|
42989
|
-
gap: "xs",
|
|
42576
|
+
className: "Layer__TaxSummaryCard__Equation",
|
|
42577
|
+
gap: size === "lg" ? "md" : "sm",
|
|
42990
42578
|
children: [
|
|
42991
|
-
/* @__PURE__ */ jsx(
|
|
42992
|
-
|
|
42993
|
-
|
|
42579
|
+
/* @__PURE__ */ jsx(AmountWithLabel, { slotProps: {
|
|
42580
|
+
MoneySpan: {
|
|
42581
|
+
amount: section.total,
|
|
42582
|
+
size
|
|
42583
|
+
},
|
|
42584
|
+
Badge: { children: t("common:label.total", "Total") }
|
|
42585
|
+
} }),
|
|
42586
|
+
/* @__PURE__ */ jsx(Span, {
|
|
42587
|
+
className: "Layer__TaxSummaryCard__Operator",
|
|
42588
|
+
size,
|
|
42589
|
+
variant: "subtle",
|
|
42590
|
+
children: "-"
|
|
42994
42591
|
}),
|
|
42995
|
-
/* @__PURE__ */ jsx(
|
|
42996
|
-
|
|
42997
|
-
|
|
42998
|
-
|
|
42999
|
-
|
|
43000
|
-
|
|
42592
|
+
/* @__PURE__ */ jsx(AmountWithLabel, { slotProps: {
|
|
42593
|
+
MoneySpan: {
|
|
42594
|
+
amount: section.taxesPaid,
|
|
42595
|
+
size
|
|
42596
|
+
},
|
|
42597
|
+
Badge: { children: t("taxEstimates:label.taxes_paid", "Taxes Paid") }
|
|
42598
|
+
} }),
|
|
42599
|
+
/* @__PURE__ */ jsx(Span, {
|
|
42600
|
+
className: "Layer__TaxSummaryCard__Operator",
|
|
42601
|
+
size,
|
|
42602
|
+
variant: "subtle",
|
|
42603
|
+
children: "="
|
|
42604
|
+
}),
|
|
42605
|
+
/* @__PURE__ */ jsx(AmountWithLabel, { slotProps: {
|
|
42606
|
+
MoneySpan: {
|
|
42607
|
+
amount: section.taxesOwed,
|
|
42608
|
+
size,
|
|
42609
|
+
weight: "bold"
|
|
42610
|
+
},
|
|
42611
|
+
Badge: { children: t("taxEstimates:label.taxes_owed", "Taxes Owed") }
|
|
42612
|
+
} })
|
|
43001
42613
|
]
|
|
43002
42614
|
});
|
|
43003
42615
|
};
|
|
42616
|
+
var PlusCircle = () => /* @__PURE__ */ jsx("span", {
|
|
42617
|
+
className: "Layer__TaxSummaryCard__OperatorCircle",
|
|
42618
|
+
"aria-hidden": true,
|
|
42619
|
+
children: /* @__PURE__ */ jsx(PlusIcon_default, { size: 24 })
|
|
42620
|
+
});
|
|
42621
|
+
var ArrowCircle = () => /* @__PURE__ */ jsx("span", {
|
|
42622
|
+
className: "Layer__TaxSummaryCard__OperatorCircle",
|
|
42623
|
+
"aria-hidden": true,
|
|
42624
|
+
children: /* @__PURE__ */ jsx(ArrowRightCircle_default, { size: 24 })
|
|
42625
|
+
});
|
|
43004
42626
|
const TaxSummaryCardDesktop = ({ data }) => {
|
|
43005
42627
|
const { t } = useTranslation();
|
|
43006
42628
|
const { formatDate: formatDate$1 } = useIntlFormatter();
|
|
43007
42629
|
const { fullYearProjection } = useFullYearProjection();
|
|
43008
|
-
return /* @__PURE__ */ jsxs(
|
|
42630
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
43009
42631
|
className: "Layer__TaxSummaryCard",
|
|
43010
|
-
children: [
|
|
43011
|
-
|
|
43012
|
-
|
|
43013
|
-
|
|
43014
|
-
align: "center",
|
|
43015
|
-
children: [/* @__PURE__ */ jsxs(VStack, {
|
|
43016
|
-
justify: "center",
|
|
43017
|
-
align: "center",
|
|
43018
|
-
children: [/* @__PURE__ */ jsx(Span, {
|
|
42632
|
+
children: [
|
|
42633
|
+
/* @__PURE__ */ jsx(VStack, {
|
|
42634
|
+
className: "Layer__TaxSummaryCard__Cell Layer__TaxSummaryCard__Cell--header",
|
|
42635
|
+
children: /* @__PURE__ */ jsx(Span, {
|
|
43019
42636
|
size: "md",
|
|
43020
|
-
variant: "subtle",
|
|
43021
42637
|
children: tConditional(t, "taxEstimates:label.taxes_owed", {
|
|
43022
42638
|
condition: fullYearProjection ? "projected" : "default",
|
|
43023
42639
|
cases: {
|
|
@@ -43026,95 +42642,75 @@ const TaxSummaryCardDesktop = ({ data }) => {
|
|
|
43026
42642
|
},
|
|
43027
42643
|
contexts: { projected: "projected" }
|
|
43028
42644
|
})
|
|
43029
|
-
})
|
|
42645
|
+
})
|
|
42646
|
+
}),
|
|
42647
|
+
data.sections.map((section, index) => {
|
|
42648
|
+
var _section$key;
|
|
42649
|
+
return /* @__PURE__ */ jsxs(HStack, {
|
|
42650
|
+
className: "Layer__TaxSummaryCard__Cell Layer__TaxSummaryCard__Cell--header Layer__TaxSummaryCard__Cell--bordered",
|
|
42651
|
+
align: "center",
|
|
42652
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
42653
|
+
className: "Layer__TaxSummaryCard__OperatorIconAnchor",
|
|
42654
|
+
children: index === 0 ? /* @__PURE__ */ jsx(ArrowCircle, {}) : /* @__PURE__ */ jsx(PlusCircle, {})
|
|
42655
|
+
}), /* @__PURE__ */ jsx(Span, {
|
|
42656
|
+
size: "md",
|
|
42657
|
+
children: section.label
|
|
42658
|
+
})]
|
|
42659
|
+
}, (_section$key = section.key) !== null && _section$key !== void 0 ? _section$key : section.label);
|
|
42660
|
+
}),
|
|
42661
|
+
/* @__PURE__ */ jsxs(VStack, {
|
|
42662
|
+
className: "Layer__TaxSummaryCard__Cell",
|
|
42663
|
+
gap: "2xs",
|
|
42664
|
+
align: "start",
|
|
42665
|
+
children: [/* @__PURE__ */ jsx(MoneySpan, {
|
|
43030
42666
|
size: "xl",
|
|
43031
42667
|
weight: "bold",
|
|
43032
42668
|
amount: data.projectedTaxesOwed
|
|
43033
|
-
})
|
|
43034
|
-
}), /* @__PURE__ */ jsxs(VStack, {
|
|
43035
|
-
align: "center",
|
|
43036
|
-
children: [/* @__PURE__ */ jsx(Span, {
|
|
42669
|
+
}), /* @__PURE__ */ jsx(Span, {
|
|
43037
42670
|
size: "sm",
|
|
43038
42671
|
variant: "subtle",
|
|
43039
|
-
children: t("taxEstimates:label.
|
|
43040
|
-
}), /* @__PURE__ */ jsx(Span, {
|
|
43041
|
-
size: "md",
|
|
43042
|
-
children: formatDate$1(data.taxesDueAt)
|
|
42672
|
+
children: t("taxEstimates:label.taxes_due_at", "Taxes due on {{date}}", { date: formatDate$1(data.taxesDueAt) })
|
|
43043
42673
|
})]
|
|
43044
|
-
})
|
|
43045
|
-
|
|
43046
|
-
|
|
43047
|
-
|
|
43048
|
-
|
|
43049
|
-
|
|
43050
|
-
|
|
43051
|
-
|
|
43052
|
-
|
|
43053
|
-
|
|
43054
|
-
variant: "subtle",
|
|
43055
|
-
children: section.label
|
|
43056
|
-
}),
|
|
43057
|
-
/* @__PURE__ */ jsx(MoneySpan, {
|
|
43058
|
-
size: "xl",
|
|
43059
|
-
weight: "bold",
|
|
43060
|
-
amount: section.taxesOwed
|
|
43061
|
-
}),
|
|
43062
|
-
/* @__PURE__ */ jsx(Span, {
|
|
43063
|
-
size: "md",
|
|
43064
|
-
variant: "subtle",
|
|
43065
|
-
children: "="
|
|
43066
|
-
}),
|
|
43067
|
-
/* @__PURE__ */ jsx(MoneySpan, {
|
|
43068
|
-
size: "lg",
|
|
43069
|
-
amount: section.total
|
|
43070
|
-
}),
|
|
43071
|
-
/* @__PURE__ */ jsx(Span, {
|
|
43072
|
-
size: "md",
|
|
43073
|
-
variant: "subtle",
|
|
43074
|
-
children: "-"
|
|
43075
|
-
}),
|
|
43076
|
-
/* @__PURE__ */ jsx(MoneySpan, {
|
|
43077
|
-
size: "lg",
|
|
43078
|
-
amount: section.taxesPaid
|
|
43079
|
-
}),
|
|
43080
|
-
/* @__PURE__ */ jsx("span", {}),
|
|
43081
|
-
/* @__PURE__ */ jsx("span", {}),
|
|
43082
|
-
/* @__PURE__ */ jsx(Span, {
|
|
43083
|
-
size: "sm",
|
|
43084
|
-
variant: "subtle",
|
|
43085
|
-
children: t("common:label.total", "Total")
|
|
43086
|
-
}),
|
|
43087
|
-
/* @__PURE__ */ jsx("span", {}),
|
|
43088
|
-
/* @__PURE__ */ jsx(Span, {
|
|
43089
|
-
size: "sm",
|
|
43090
|
-
variant: "subtle",
|
|
43091
|
-
children: t("taxEstimates:label.taxes_paid", "Taxes Paid")
|
|
43092
|
-
})
|
|
43093
|
-
]
|
|
43094
|
-
}, section.label))
|
|
42674
|
+
}),
|
|
42675
|
+
data.sections.map((section) => {
|
|
42676
|
+
var _section$key2;
|
|
42677
|
+
return /* @__PURE__ */ jsx(VStack, {
|
|
42678
|
+
className: "Layer__TaxSummaryCard__Cell Layer__TaxSummaryCard__Cell--bordered",
|
|
42679
|
+
children: /* @__PURE__ */ jsx(EquationRow, {
|
|
42680
|
+
section,
|
|
42681
|
+
size: "md"
|
|
42682
|
+
})
|
|
42683
|
+
}, (_section$key2 = section.key) !== null && _section$key2 !== void 0 ? _section$key2 : section.label);
|
|
43095
42684
|
})
|
|
43096
|
-
|
|
42685
|
+
]
|
|
43097
42686
|
});
|
|
43098
42687
|
};
|
|
42688
|
+
var SectionEquation = ({ section }) => /* @__PURE__ */ jsxs(VStack, {
|
|
42689
|
+
className: "Layer__TaxSummaryCard__MobileSection",
|
|
42690
|
+
gap: "xs",
|
|
42691
|
+
align: "start",
|
|
42692
|
+
children: [/* @__PURE__ */ jsx(Span, {
|
|
42693
|
+
size: "sm",
|
|
42694
|
+
variant: "subtle",
|
|
42695
|
+
children: section.label
|
|
42696
|
+
}), /* @__PURE__ */ jsx(EquationRow, { section })]
|
|
42697
|
+
});
|
|
43099
42698
|
const TaxSummaryCardMobile = ({ data }) => {
|
|
43100
42699
|
const { t } = useTranslation();
|
|
43101
42700
|
const { formatDate: formatDate$1 } = useIntlFormatter();
|
|
43102
42701
|
const { fullYearProjection } = useFullYearProjection();
|
|
43103
|
-
|
|
43104
|
-
|
|
43105
|
-
|
|
43106
|
-
children:
|
|
43107
|
-
className: "
|
|
43108
|
-
|
|
43109
|
-
|
|
43110
|
-
|
|
43111
|
-
|
|
43112
|
-
children: [/* @__PURE__ */ jsxs(VStack, {
|
|
43113
|
-
justify: "center",
|
|
42702
|
+
const [isExpanded, setIsExpanded] = useState(false);
|
|
42703
|
+
return /* @__PURE__ */ jsx(Card, {
|
|
42704
|
+
className: "Layer__card--reset Layer__TaxSummaryCard--mobile",
|
|
42705
|
+
children: /* @__PURE__ */ jsxs(VStack, {
|
|
42706
|
+
className: "Layer__TaxSummaryCard__MobileCard",
|
|
42707
|
+
gap: "md",
|
|
42708
|
+
children: [
|
|
42709
|
+
/* @__PURE__ */ jsxs(HStack, {
|
|
42710
|
+
justify: "space-between",
|
|
43114
42711
|
align: "center",
|
|
43115
42712
|
children: [/* @__PURE__ */ jsx(Span, {
|
|
43116
|
-
size: "
|
|
43117
|
-
variant: "subtle",
|
|
42713
|
+
size: "sm",
|
|
43118
42714
|
children: tConditional(t, "taxEstimates:label.taxes_owed", {
|
|
43119
42715
|
condition: fullYearProjection ? "projected" : "default",
|
|
43120
42716
|
cases: {
|
|
@@ -43123,81 +42719,62 @@ const TaxSummaryCardMobile = ({ data }) => {
|
|
|
43123
42719
|
},
|
|
43124
42720
|
contexts: { projected: "projected" }
|
|
43125
42721
|
})
|
|
43126
|
-
}), /* @__PURE__ */ jsx(
|
|
43127
|
-
size: "xl",
|
|
43128
|
-
weight: "bold",
|
|
43129
|
-
amount: data.projectedTaxesOwed
|
|
43130
|
-
})]
|
|
43131
|
-
}), /* @__PURE__ */ jsxs(VStack, {
|
|
43132
|
-
align: "center",
|
|
43133
|
-
children: [/* @__PURE__ */ jsx(Span, {
|
|
42722
|
+
}), /* @__PURE__ */ jsx(Span, {
|
|
43134
42723
|
size: "sm",
|
|
43135
42724
|
variant: "subtle",
|
|
43136
|
-
children: t("taxEstimates:label.
|
|
43137
|
-
}), /* @__PURE__ */ jsx(Span, {
|
|
43138
|
-
size: "md",
|
|
43139
|
-
children: formatDate$1(data.taxesDueAt)
|
|
42725
|
+
children: t("taxEstimates:label.taxes_due_at", "Taxes due on {{date}}", { date: formatDate$1(data.taxesDueAt) })
|
|
43140
42726
|
})]
|
|
43141
|
-
})
|
|
43142
|
-
|
|
43143
|
-
|
|
43144
|
-
|
|
43145
|
-
|
|
43146
|
-
|
|
43147
|
-
|
|
43148
|
-
className: "
|
|
43149
|
-
|
|
43150
|
-
|
|
43151
|
-
|
|
43152
|
-
|
|
43153
|
-
|
|
43154
|
-
|
|
43155
|
-
|
|
43156
|
-
|
|
43157
|
-
|
|
43158
|
-
|
|
43159
|
-
|
|
43160
|
-
|
|
43161
|
-
|
|
43162
|
-
|
|
43163
|
-
|
|
43164
|
-
|
|
43165
|
-
|
|
43166
|
-
size: "md",
|
|
43167
|
-
amount: section.total
|
|
43168
|
-
}),
|
|
43169
|
-
/* @__PURE__ */ jsx(Span, {
|
|
43170
|
-
size: "sm",
|
|
43171
|
-
variant: "subtle",
|
|
43172
|
-
children: "-"
|
|
43173
|
-
}),
|
|
43174
|
-
/* @__PURE__ */ jsx(MoneySpan, {
|
|
43175
|
-
size: "md",
|
|
43176
|
-
amount: section.taxesPaid
|
|
43177
|
-
}),
|
|
43178
|
-
/* @__PURE__ */ jsx("span", {}),
|
|
43179
|
-
/* @__PURE__ */ jsx("span", {}),
|
|
43180
|
-
/* @__PURE__ */ jsx(Span, {
|
|
43181
|
-
size: "sm",
|
|
43182
|
-
variant: "subtle",
|
|
43183
|
-
children: t("common:label.total", "Total")
|
|
43184
|
-
}),
|
|
43185
|
-
/* @__PURE__ */ jsx("span", {}),
|
|
43186
|
-
/* @__PURE__ */ jsx(Span, {
|
|
43187
|
-
size: "sm",
|
|
43188
|
-
variant: "subtle",
|
|
43189
|
-
children: t("taxEstimates:label.taxes_paid", "Taxes Paid")
|
|
43190
|
-
})
|
|
43191
|
-
]
|
|
43192
|
-
}, section.label))
|
|
43193
|
-
})
|
|
43194
|
-
})]
|
|
42727
|
+
}),
|
|
42728
|
+
/* @__PURE__ */ jsx(MoneySpan, {
|
|
42729
|
+
size: "xl",
|
|
42730
|
+
weight: "bold",
|
|
42731
|
+
amount: data.projectedTaxesOwed
|
|
42732
|
+
}),
|
|
42733
|
+
isExpanded && /* @__PURE__ */ jsx(VStack, {
|
|
42734
|
+
className: "Layer__TaxSummaryCard__MobileSections",
|
|
42735
|
+
gap: "md",
|
|
42736
|
+
children: data.sections.map((section) => {
|
|
42737
|
+
var _section$key;
|
|
42738
|
+
return /* @__PURE__ */ jsx(SectionEquation, { section }, (_section$key = section.key) !== null && _section$key !== void 0 ? _section$key : section.label);
|
|
42739
|
+
})
|
|
42740
|
+
}),
|
|
42741
|
+
/* @__PURE__ */ jsx(HStack, {
|
|
42742
|
+
className: "Layer__TaxSummaryCard__MobileToggleWrapper",
|
|
42743
|
+
justify: "center",
|
|
42744
|
+
children: /* @__PURE__ */ jsx(Button$1, {
|
|
42745
|
+
variant: "text",
|
|
42746
|
+
onClick: () => setIsExpanded((prev) => !prev),
|
|
42747
|
+
children: isExpanded ? t("common:label.hide_details", "Hide details") : t("common:label.show_details", "Show details")
|
|
42748
|
+
})
|
|
42749
|
+
})
|
|
42750
|
+
]
|
|
42751
|
+
})
|
|
43195
42752
|
});
|
|
43196
42753
|
};
|
|
43197
|
-
|
|
43198
|
-
|
|
43199
|
-
|
|
43200
|
-
|
|
42754
|
+
var TAX_SUMMARY_CARD_DESKTOP_BREAKPOINT = 1200;
|
|
42755
|
+
const TaxSummaryCard = () => {
|
|
42756
|
+
const { t } = useTranslation();
|
|
42757
|
+
const { year } = useTaxEstimatesYear();
|
|
42758
|
+
const { fullYearProjection } = useFullYearProjection();
|
|
42759
|
+
const { data, isLoading, isError } = useTaxSummary({
|
|
42760
|
+
year,
|
|
42761
|
+
fullYearProjection
|
|
42762
|
+
});
|
|
42763
|
+
const [viewportWidth] = useWindowSize();
|
|
42764
|
+
const isDesktop = viewportWidth >= TAX_SUMMARY_CARD_DESKTOP_BREAKPOINT;
|
|
42765
|
+
return /* @__PURE__ */ jsx(ConditionalBlock, {
|
|
42766
|
+
isLoading,
|
|
42767
|
+
isError,
|
|
42768
|
+
data,
|
|
42769
|
+
Loading: /* @__PURE__ */ jsx(Loader, {}),
|
|
42770
|
+
Error: /* @__PURE__ */ jsx(DataState, {
|
|
42771
|
+
status: DataStateStatus.failed,
|
|
42772
|
+
title: t("taxEstimates:error.load_tax_estimates_summary", "We couldn't load your tax summary"),
|
|
42773
|
+
description: t("taxEstimates:error.while_loading_tax_summary", "An error occurred while loading your tax summary. Please check your connection and try again."),
|
|
42774
|
+
spacing: true
|
|
42775
|
+
}),
|
|
42776
|
+
children: ({ data: summary }) => isDesktop ? /* @__PURE__ */ jsx(TaxSummaryCardDesktop, { data: summary }) : /* @__PURE__ */ jsx(TaxSummaryCardMobile, { data: summary })
|
|
42777
|
+
});
|
|
43201
42778
|
};
|
|
43202
42779
|
const ResponsiveDetailHeader = ({ title, description: description$1 }) => {
|
|
43203
42780
|
const { isDesktop } = useSizeClass();
|
|
@@ -43340,120 +42917,144 @@ const TaxEstimatesHeader = ({ type }) => {
|
|
|
43340
42917
|
})]
|
|
43341
42918
|
});
|
|
43342
42919
|
};
|
|
43343
|
-
|
|
43344
|
-
|
|
43345
|
-
|
|
42920
|
+
const Operator = ({ sign }) => {
|
|
42921
|
+
if (!sign) return null;
|
|
42922
|
+
return /* @__PURE__ */ jsx(Span, {
|
|
42923
|
+
className: "Layer__TaxDetails__Operator",
|
|
42924
|
+
size: "lg",
|
|
42925
|
+
variant: "subtle",
|
|
42926
|
+
"aria-hidden": "true",
|
|
42927
|
+
children: sign
|
|
42928
|
+
});
|
|
42929
|
+
};
|
|
42930
|
+
var TaxDetailsColumns = /* @__PURE__ */ function(TaxDetailsColumns$1) {
|
|
42931
|
+
TaxDetailsColumns$1["Label"] = "Label";
|
|
42932
|
+
TaxDetailsColumns$1["Amount"] = "Amount";
|
|
42933
|
+
return TaxDetailsColumns$1;
|
|
42934
|
+
}(TaxDetailsColumns || {});
|
|
42935
|
+
var COMPONENT_NAME$2 = "TaxDetails";
|
|
42936
|
+
var MobileExpandableCardsWrapper = ({ children, className }) => /* @__PURE__ */ jsx(Card, {
|
|
42937
|
+
className: `Layer__card--reset ${className !== null && className !== void 0 ? className : ""}`,
|
|
43346
42938
|
children
|
|
43347
42939
|
});
|
|
43348
|
-
|
|
42940
|
+
var EmptyState$1 = () => {
|
|
42941
|
+
const { t } = useTranslation();
|
|
42942
|
+
return /* @__PURE__ */ jsx(DataState, {
|
|
42943
|
+
status: DataStateStatus.allDone,
|
|
42944
|
+
title: t("taxEstimates:empty.no_tax_details", "No tax details"),
|
|
42945
|
+
description: t("taxEstimates:empty.no_tax_details_description", "No tax details found"),
|
|
42946
|
+
spacing: true
|
|
42947
|
+
});
|
|
42948
|
+
};
|
|
42949
|
+
var ErrorState$4 = () => {
|
|
42950
|
+
const { t } = useTranslation();
|
|
42951
|
+
return /* @__PURE__ */ jsx(DataState, {
|
|
42952
|
+
status: DataStateStatus.failed,
|
|
42953
|
+
title: t("taxEstimates:error.load_tax_details", "We couldn't load your tax details"),
|
|
42954
|
+
description: t("taxEstimates:error.while_loading_tax_details", "An error occurred while loading your tax details. Please check your connection and try again."),
|
|
42955
|
+
spacing: true
|
|
42956
|
+
});
|
|
42957
|
+
};
|
|
42958
|
+
var TaxDetailsRowLabelCell = (row) => {
|
|
42959
|
+
if (row.original.operator !== void 0 && row.original.operator !== null) return /* @__PURE__ */ jsxs(HStack, {
|
|
42960
|
+
className: "Layer__TaxDetails__TaxDetailsRow--operator",
|
|
42961
|
+
align: "center",
|
|
42962
|
+
gap: "md",
|
|
42963
|
+
children: [/* @__PURE__ */ jsx(Operator, { sign: row.original.operator }), /* @__PURE__ */ jsx(Span, { children: row.original.label })]
|
|
42964
|
+
});
|
|
42965
|
+
return /* @__PURE__ */ jsx(Span, { children: row.original.label });
|
|
42966
|
+
};
|
|
42967
|
+
var makeAmountCellRenderer = ({ formatNumber: formatNumber$1, formatPercent: formatPercent$1 }) => {
|
|
42968
|
+
return function TaxDetailsAmountCell(row) {
|
|
42969
|
+
const { value } = row.original;
|
|
42970
|
+
if (value === void 0) return /* @__PURE__ */ jsx(Span, { children: "-" });
|
|
42971
|
+
if (isPercentageCellValue(value)) return /* @__PURE__ */ jsx(Span, { children: formatPercent$1(value.value, {
|
|
42972
|
+
maximumFractionDigits: 2,
|
|
42973
|
+
minimumFractionDigits: 2
|
|
42974
|
+
}) });
|
|
42975
|
+
if (isCurrencyCellValue(value)) return /* @__PURE__ */ jsx(MoneySpan, { amount: value.value });
|
|
42976
|
+
if (isDecimalCellValue(value)) return /* @__PURE__ */ jsx(Span, { children: formatNumber$1(value.value, {
|
|
42977
|
+
maximumFractionDigits: 2,
|
|
42978
|
+
minimumFractionDigits: 0
|
|
42979
|
+
}) });
|
|
42980
|
+
const raw = value.value;
|
|
42981
|
+
if (typeof raw === "string" || typeof raw === "number" || typeof raw === "boolean") return /* @__PURE__ */ jsx(Span, { children: String(raw) });
|
|
42982
|
+
return /* @__PURE__ */ jsx(Span, { children: "-" });
|
|
42983
|
+
};
|
|
42984
|
+
};
|
|
42985
|
+
var useColumnConfig = () => {
|
|
42986
|
+
const { t } = useTranslation();
|
|
42987
|
+
const { formatNumber: formatNumber$1, formatPercent: formatPercent$1 } = useIntlFormatter();
|
|
42988
|
+
return useMemo(() => [{
|
|
42989
|
+
id: TaxDetailsColumns.Label,
|
|
42990
|
+
header: t("taxEstimates:label.tax_details_label", "Label"),
|
|
42991
|
+
cell: TaxDetailsRowLabelCell,
|
|
42992
|
+
isRowHeader: true
|
|
42993
|
+
}, {
|
|
42994
|
+
id: TaxDetailsColumns.Amount,
|
|
42995
|
+
header: t("taxEstimates:label.tax_details_amount", "Amount"),
|
|
42996
|
+
cell: makeAmountCellRenderer({
|
|
42997
|
+
formatNumber: formatNumber$1,
|
|
42998
|
+
formatPercent: formatPercent$1
|
|
42999
|
+
})
|
|
43000
|
+
}], [
|
|
43001
|
+
t,
|
|
43002
|
+
formatNumber$1,
|
|
43003
|
+
formatPercent$1
|
|
43004
|
+
]);
|
|
43005
|
+
};
|
|
43006
|
+
var getSubRows$1 = (row) => {
|
|
43007
|
+
return row.breakdown ? asMutable(row.breakdown) : void 0;
|
|
43008
|
+
};
|
|
43009
|
+
var getRowId$1 = (row) => {
|
|
43010
|
+
return row.rowKey;
|
|
43011
|
+
};
|
|
43012
|
+
function TaxDetailsContent() {
|
|
43349
43013
|
const { t } = useTranslation();
|
|
43350
43014
|
const { year } = useTaxEstimatesYear();
|
|
43351
43015
|
const { fullYearProjection } = useFullYearProjection();
|
|
43352
|
-
const projectedCondition = fullYearProjection ? "projected" : "default";
|
|
43353
43016
|
const { data, isLoading, isError } = useTaxDetails({
|
|
43354
43017
|
year,
|
|
43355
43018
|
fullYearProjection
|
|
43356
43019
|
});
|
|
43357
|
-
const { data: summaryData, isLoading: isSummaryLoading } = useTaxSummary({
|
|
43358
|
-
year,
|
|
43359
|
-
fullYearProjection
|
|
43360
|
-
});
|
|
43361
43020
|
const { isDesktop } = useSizeClass();
|
|
43362
|
-
const
|
|
43363
|
-
taxableIncome: true,
|
|
43364
|
-
federalTaxes: true,
|
|
43365
|
-
stateTaxes: true
|
|
43366
|
-
});
|
|
43367
|
-
const toggleExpanded = useCallback((key) => {
|
|
43368
|
-
setExpanded((prev) => _objectSpread2(_objectSpread2({}, prev), {}, { [key]: !prev[key] }));
|
|
43369
|
-
}, []);
|
|
43021
|
+
const columnConfig = useColumnConfig();
|
|
43370
43022
|
const ExpandableCardsWrapper = isDesktop ? VStack : MobileExpandableCardsWrapper;
|
|
43023
|
+
return /* @__PURE__ */ jsx(ConditionalBlock, {
|
|
43024
|
+
isLoading,
|
|
43025
|
+
isError,
|
|
43026
|
+
data,
|
|
43027
|
+
Loading: /* @__PURE__ */ jsx(Loader, {}),
|
|
43028
|
+
Error: /* @__PURE__ */ jsx(ErrorState$4, {}),
|
|
43029
|
+
children: ({ data: details }) => {
|
|
43030
|
+
return /* @__PURE__ */ jsx(ExpandableCardsWrapper, {
|
|
43031
|
+
className: "Layer__TaxDetails__ExpandableCardsWrapper",
|
|
43032
|
+
children: /* @__PURE__ */ jsx(ExpandableDataTableProvider, { children: /* @__PURE__ */ jsx(ExpandableDataTable, {
|
|
43033
|
+
componentName: COMPONENT_NAME$2,
|
|
43034
|
+
ariaLabel: t("taxEstimates:label.tax_details", "Tax Details"),
|
|
43035
|
+
data: asMutable(details.rows),
|
|
43036
|
+
columnConfig,
|
|
43037
|
+
isLoading,
|
|
43038
|
+
isError,
|
|
43039
|
+
indentSize: isDesktop ? "sm" : "xs",
|
|
43040
|
+
slots: {
|
|
43041
|
+
EmptyState: EmptyState$1,
|
|
43042
|
+
ErrorState: ErrorState$4
|
|
43043
|
+
},
|
|
43044
|
+
getSubRows: getSubRows$1,
|
|
43045
|
+
getRowId: getRowId$1
|
|
43046
|
+
}) })
|
|
43047
|
+
});
|
|
43048
|
+
}
|
|
43049
|
+
});
|
|
43050
|
+
}
|
|
43051
|
+
var TaxDetailsHeader = () => /* @__PURE__ */ jsx(TaxEstimatesHeader, { type: TaxEstimatesHeaderType.Estimates });
|
|
43052
|
+
const TaxDetails = () => {
|
|
43371
43053
|
return /* @__PURE__ */ jsxs(ResponsiveDetailView, {
|
|
43372
43054
|
name: "TaxDetails",
|
|
43373
43055
|
slots: { Header: TaxDetailsHeader },
|
|
43374
43056
|
mobileProps: { className: "Layer__TaxDetails--mobile" },
|
|
43375
|
-
children: [/* @__PURE__ */ jsx(
|
|
43376
|
-
isLoading: isSummaryLoading,
|
|
43377
|
-
isError,
|
|
43378
|
-
data: summaryData,
|
|
43379
|
-
Loading: /* @__PURE__ */ jsx(Loader, {}),
|
|
43380
|
-
Error: /* @__PURE__ */ jsx(DataState, {
|
|
43381
|
-
status: DataStateStatus.failed,
|
|
43382
|
-
title: t("taxEstimates:error.load_tax_estimates_summary", "We couldn't load your tax summary"),
|
|
43383
|
-
description: t("taxEstimates:error.while_loading_tax_summary", "An error occurred while loading your tax summary. Please check your connection and try again."),
|
|
43384
|
-
spacing: true
|
|
43385
|
-
}),
|
|
43386
|
-
children: ({ data: summary }) => /* @__PURE__ */ jsx(TaxSummaryCard, { data: summary })
|
|
43387
|
-
}), /* @__PURE__ */ jsx(ConditionalBlock, {
|
|
43388
|
-
isLoading,
|
|
43389
|
-
isError,
|
|
43390
|
-
data,
|
|
43391
|
-
Loading: /* @__PURE__ */ jsx(Loader, {}),
|
|
43392
|
-
Error: /* @__PURE__ */ jsx(DataState, {
|
|
43393
|
-
status: DataStateStatus.failed,
|
|
43394
|
-
title: t("taxEstimates:error.load_tax_estimates", "We couldn't load your tax estimates"),
|
|
43395
|
-
description: t("taxEstimates:error.while_loading_tax_estimates", "An error occurred while loading your tax estimates. Please check your connection and try again."),
|
|
43396
|
-
spacing: true
|
|
43397
|
-
}),
|
|
43398
|
-
children: ({ data: details }) => {
|
|
43399
|
-
const usFederal = details.taxes.usFederal;
|
|
43400
|
-
const usState = details.taxes.usState;
|
|
43401
|
-
return /* @__PURE__ */ jsxs(ExpandableCardsWrapper, { children: [
|
|
43402
|
-
/* @__PURE__ */ jsx(ExpandableCard, {
|
|
43403
|
-
isExpanded: expanded.taxableIncome,
|
|
43404
|
-
onToggleExpanded: () => toggleExpanded("taxableIncome"),
|
|
43405
|
-
slots: { Heading: /* @__PURE__ */ jsx(TaxDetailsExpandableCardHeading, {
|
|
43406
|
-
title: tConditional(t, "taxEstimates:label.taxable_business_income", {
|
|
43407
|
-
condition: projectedCondition,
|
|
43408
|
-
cases: {
|
|
43409
|
-
default: "Taxable Business Income",
|
|
43410
|
-
projected: "Projected Taxable Business Income"
|
|
43411
|
-
},
|
|
43412
|
-
contexts: { projected: "projected" }
|
|
43413
|
-
}),
|
|
43414
|
-
amount: details.adjustedGrossIncome.totalAdjustedGrossIncome
|
|
43415
|
-
}) },
|
|
43416
|
-
children: /* @__PURE__ */ jsx(AdjustedGrossIncomeTable, { data: details.adjustedGrossIncome })
|
|
43417
|
-
}),
|
|
43418
|
-
usFederal && /* @__PURE__ */ jsx(ExpandableCard, {
|
|
43419
|
-
isExpanded: expanded.federalTaxes,
|
|
43420
|
-
onToggleExpanded: () => toggleExpanded("federalTaxes"),
|
|
43421
|
-
slots: { Heading: /* @__PURE__ */ jsx(TaxDetailsExpandableCardHeading, {
|
|
43422
|
-
title: tConditional(t, "taxEstimates:label.federal_taxes", {
|
|
43423
|
-
condition: projectedCondition,
|
|
43424
|
-
cases: {
|
|
43425
|
-
default: "Federal Taxes",
|
|
43426
|
-
projected: "Projected Federal Taxes"
|
|
43427
|
-
},
|
|
43428
|
-
contexts: { projected: "projected" }
|
|
43429
|
-
}),
|
|
43430
|
-
amount: usFederal.totalFederalTax.totalFederalTaxOwed
|
|
43431
|
-
}) },
|
|
43432
|
-
children: /* @__PURE__ */ jsx(FederalTaxTable, {
|
|
43433
|
-
data: usFederal,
|
|
43434
|
-
adjustedGrossIncome: details.adjustedGrossIncome.totalAdjustedGrossIncome
|
|
43435
|
-
})
|
|
43436
|
-
}),
|
|
43437
|
-
usState && /* @__PURE__ */ jsx(ExpandableCard, {
|
|
43438
|
-
isExpanded: expanded.stateTaxes,
|
|
43439
|
-
onToggleExpanded: () => toggleExpanded("stateTaxes"),
|
|
43440
|
-
slots: { Heading: /* @__PURE__ */ jsx(TaxDetailsExpandableCardHeading, {
|
|
43441
|
-
title: tConditional(t, "taxEstimates:label.taxes_by_state_name", {
|
|
43442
|
-
condition: projectedCondition,
|
|
43443
|
-
cases: {
|
|
43444
|
-
default: "State Taxes ({{stateName}})",
|
|
43445
|
-
projected: "Projected State Taxes ({{stateName}})"
|
|
43446
|
-
},
|
|
43447
|
-
contexts: { projected: "projected" },
|
|
43448
|
-
stateName: usState.stateName
|
|
43449
|
-
}),
|
|
43450
|
-
amount: usState.totalStateTax.totalStateTaxOwed
|
|
43451
|
-
}) },
|
|
43452
|
-
children: /* @__PURE__ */ jsx(StateTaxTable, { data: usState })
|
|
43453
|
-
})
|
|
43454
|
-
] });
|
|
43455
|
-
}
|
|
43456
|
-
})]
|
|
43057
|
+
children: [/* @__PURE__ */ jsx(TaxSummaryCard, {}), /* @__PURE__ */ jsx(TaxDetailsContent, {})]
|
|
43457
43058
|
});
|
|
43458
43059
|
};
|
|
43459
43060
|
const resolveCategoryColor = ({ key }) => {
|
|
@@ -44581,6 +44182,30 @@ const useCatalogServicesGlobalCacheActions = () => {
|
|
|
44581
44182
|
forceReloadCatalogServices: useCallback(() => forceReload(({ tags }) => tags.includes(CATALOG_SERVICES_TAG_KEY)), [forceReload])
|
|
44582
44183
|
};
|
|
44583
44184
|
};
|
|
44185
|
+
const ExpandableCard = ({ children, isExpanded, onToggleExpanded, slots }) => {
|
|
44186
|
+
return /* @__PURE__ */ jsxs(Card, {
|
|
44187
|
+
className: "Layer__ExpandableCard",
|
|
44188
|
+
children: [/* @__PURE__ */ jsx("button", {
|
|
44189
|
+
type: "button",
|
|
44190
|
+
className: "Layer__ExpandableCard__Header",
|
|
44191
|
+
onClick: onToggleExpanded,
|
|
44192
|
+
children: /* @__PURE__ */ jsxs(HStack, {
|
|
44193
|
+
justify: "space-between",
|
|
44194
|
+
align: "center",
|
|
44195
|
+
children: [slots.Heading, /* @__PURE__ */ jsx(ExpandButton, { isExpanded })]
|
|
44196
|
+
})
|
|
44197
|
+
}), /* @__PURE__ */ jsx(AnimatedPresenceElement, {
|
|
44198
|
+
motionKey: "expandable-content",
|
|
44199
|
+
variant: "expand",
|
|
44200
|
+
isOpen: isExpanded,
|
|
44201
|
+
style: { overflow: "hidden" },
|
|
44202
|
+
children: /* @__PURE__ */ jsx(VStack, {
|
|
44203
|
+
className: "Layer__ExpandableCard__Content",
|
|
44204
|
+
children
|
|
44205
|
+
})
|
|
44206
|
+
})]
|
|
44207
|
+
});
|
|
44208
|
+
};
|
|
44584
44209
|
var ARCHIVE_CATALOG_SERVICE_TAG_KEY = "#archive-catalog-service";
|
|
44585
44210
|
var ArchiveCatalogServiceResponseSchema = Schema.Struct({ data: CatalogServiceSchema });
|
|
44586
44211
|
var archiveCatalogService = post(({ businessId, serviceId }) => `/v1/businesses/${businessId}/catalog/services/${serviceId}/archive`);
|
|
@@ -46412,10 +46037,10 @@ var TimeEntryDateCell = memo(function TimeEntryDateCell$1({ date }) {
|
|
|
46412
46037
|
return formatCalendarDate(date, formatDate$1);
|
|
46413
46038
|
});
|
|
46414
46039
|
var TimeEntryDurationCell = memo(function TimeEntryDurationCell$1({ durationMinutes }) {
|
|
46415
|
-
|
|
46416
|
-
|
|
46417
|
-
|
|
46418
|
-
|
|
46040
|
+
return /* @__PURE__ */ jsx(DurationSpan, {
|
|
46041
|
+
durationMinutes,
|
|
46042
|
+
showLessThanOneMinuteForZero: true
|
|
46043
|
+
});
|
|
46419
46044
|
});
|
|
46420
46045
|
var TimeEntryActionsCell = memo(function TimeEntryActionsCell$1({ entry }) {
|
|
46421
46046
|
const { t } = useTranslation();
|
|
@@ -46968,7 +46593,7 @@ var TimeTrackingStatsLegendSwatch = ({ color }) => /* @__PURE__ */ jsx("svg", {
|
|
|
46968
46593
|
})
|
|
46969
46594
|
});
|
|
46970
46595
|
var TimeTrackingStatsBreakdown = memo(function TimeTrackingStatsBreakdown$1({ entries }) {
|
|
46971
|
-
const {
|
|
46596
|
+
const { formatPercent: formatPercent$1 } = useIntlFormatter();
|
|
46972
46597
|
const chartData = useMemo(() => buildStackedChartData(entries), [entries]);
|
|
46973
46598
|
const chartTotalMinutes = useMemo(() => entries.reduce((total, entry) => total + entry.totalMinutes, 0), [entries]);
|
|
46974
46599
|
const chartKey = entries.map((entry) => entry.key).join("|");
|
|
@@ -47043,10 +46668,10 @@ var TimeTrackingStatsBreakdown = memo(function TimeTrackingStatsBreakdown$1({ en
|
|
|
47043
46668
|
className: "Layer__TimeTrackingStats__LegendMeta",
|
|
47044
46669
|
gap: "2xs",
|
|
47045
46670
|
align: "baseline",
|
|
47046
|
-
children: [/* @__PURE__ */ jsx(
|
|
46671
|
+
children: [/* @__PURE__ */ jsx(DurationSpan, {
|
|
47047
46672
|
className: "Layer__TimeTrackingStats__LegendDuration",
|
|
47048
46673
|
size: "sm",
|
|
47049
|
-
|
|
46674
|
+
durationMinutes: totalMinutes
|
|
47050
46675
|
}), /* @__PURE__ */ jsx(Span, {
|
|
47051
46676
|
className: "Layer__TimeTrackingStats__LegendPercentage",
|
|
47052
46677
|
size: "sm",
|
|
@@ -47060,9 +46685,7 @@ var TimeTrackingStatsBreakdown = memo(function TimeTrackingStatsBreakdown$1({ en
|
|
|
47060
46685
|
});
|
|
47061
46686
|
function TimeTrackingStatsContent({ summary }) {
|
|
47062
46687
|
const { t } = useTranslation();
|
|
47063
|
-
const { formatMinutesAsDuration: formatMinutesAsDuration$1 } = useIntlFormatter();
|
|
47064
46688
|
const serviceBreakdown = useMemo(() => buildServiceBreakdown(summary.byService, t("timeTracking:label.other", "Other")), [summary.byService, t]);
|
|
47065
|
-
const totalDurationDisplay = summary.totalMinutes > 0 ? formatMinutesAsDuration$1(summary.totalMinutes) : t("timeTracking:label.zero_minutes", "0 min");
|
|
47066
46689
|
return /* @__PURE__ */ jsxs(VStack, {
|
|
47067
46690
|
className: "Layer__TimeTrackingStats__Content",
|
|
47068
46691
|
gap: "lg",
|
|
@@ -47094,10 +46717,10 @@ function TimeTrackingStatsContent({ summary }) {
|
|
|
47094
46717
|
size: "sm",
|
|
47095
46718
|
variant: "subtle",
|
|
47096
46719
|
children: t("common:label.this_period", "This Period")
|
|
47097
|
-
}), /* @__PURE__ */ jsx(
|
|
46720
|
+
}), /* @__PURE__ */ jsx(DurationSpan, {
|
|
47098
46721
|
className: "Layer__TimeTrackingStats__SummaryValue",
|
|
47099
46722
|
weight: "bold",
|
|
47100
|
-
|
|
46723
|
+
durationMinutes: summary.totalMinutes
|
|
47101
46724
|
})]
|
|
47102
46725
|
})]
|
|
47103
46726
|
})]
|