@layerfi/components 0.1.133 → 0.1.134-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.
@@ -283,7 +283,7 @@ var getIntlLocale = (locale) => {
283
283
  };
284
284
  var package_default = {
285
285
  name: "@layerfi/components",
286
- version: "0.1.133",
286
+ version: "0.1.134-alpha",
287
287
  description: "Layer React Components",
288
288
  main: "dist/cjs/index.cjs",
289
289
  module: "dist/esm/index.mjs",
@@ -3781,11 +3781,11 @@ function _objectWithoutProperties(e, t) {
3781
3781
  }
3782
3782
  //#endregion
3783
3783
  //#region src/utils/swr/localeKeyMiddleware.ts
3784
- var _excluded$118 = ["_locale"];
3784
+ var _excluded$120 = ["_locale"];
3785
3785
  var createLocalizedFetcher = (fetcher) => {
3786
3786
  if (!fetcher) return null;
3787
3787
  return (_ref, ...rest) => {
3788
- let { _locale } = _ref, key = _objectWithoutProperties(_ref, _excluded$118);
3788
+ let { _locale } = _ref, key = _objectWithoutProperties(_ref, _excluded$120);
3789
3789
  setLocaleHeader(_locale);
3790
3790
  return fetcher(key, ...rest);
3791
3791
  };
@@ -3802,7 +3802,7 @@ var useLocalizedKey = () => {
3802
3802
  };
3803
3803
  //#endregion
3804
3804
  //#region src/hooks/api/businesses/[business-id]/bank-accounts/useUnlinkBankAccount.ts
3805
- var _excluded$117 = ["trigger"];
3805
+ var _excluded$119 = ["trigger"];
3806
3806
  var UNLINK_BANK_ACCOUNT_TAG_KEY = "#unlink-bank-account";
3807
3807
  var unlinkBankAccount = del(({ businessId, bankAccountId }) => `/v1/businesses/${businessId}/bank-accounts/${bankAccountId}`);
3808
3808
  function buildKey$87({ access_token: accessToken, apiUrl, businessId }) {
@@ -3825,7 +3825,7 @@ function useUnlinkBankAccount() {
3825
3825
  })), ({ accessToken, apiUrl, businessId }, { arg: bankAccountId }) => unlinkBankAccount(apiUrl, accessToken, { params: {
3826
3826
  businessId,
3827
3827
  bankAccountId
3828
- } }), { revalidate: false }), { trigger: rawTrigger } = _useSWRMutation, rest = _objectWithoutProperties(_useSWRMutation, _excluded$117);
3828
+ } }), { revalidate: false }), { trigger: rawTrigger } = _useSWRMutation, rest = _objectWithoutProperties(_useSWRMutation, _excluded$119);
3829
3829
  const triggerRef = (0, react.useRef)(rawTrigger);
3830
3830
  triggerRef.current = rawTrigger;
3831
3831
  return _objectSpread2({ trigger: (0, react.useCallback)((bankAccountId) => triggerRef.current(bankAccountId), []) }, rest);
@@ -8109,6 +8109,7 @@ var TagValueDefinitionSchema = effect.Schema.Struct({
8109
8109
  displayName: effect.Schema.propertySignature(effect.Schema.NullishOr(effect.Schema.NonEmptyTrimmedString)).pipe(effect.Schema.fromKey("display_name")),
8110
8110
  archivedAt: (0, effect.pipe)(effect.Schema.propertySignature(effect.Schema.NullishOr(effect.Schema.Date)), effect.Schema.fromKey("archived_at"))
8111
8111
  });
8112
+ var isActiveTagValueDefinition = (tagValueDefinition) => tagValueDefinition.archivedAt == null;
8112
8113
  var TagKeyValueSchema = effect.Schema.Struct({
8113
8114
  key: effect.Schema.NonEmptyTrimmedString,
8114
8115
  value: effect.Schema.NonEmptyTrimmedString,
@@ -9808,14 +9809,14 @@ var useBankTransactionsFilters = ({ scope, monthlyView, applyGlobalDateRange, fi
9808
9809
  };
9809
9810
  //#endregion
9810
9811
  //#region src/icons/Bell.tsx
9811
- var _excluded$116 = ["size"];
9812
+ var _excluded$118 = ["size"];
9812
9813
  var Bell = (_ref) => {
9813
9814
  let { size = 18 } = _ref;
9814
9815
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", _objectSpread2(_objectSpread2({
9815
9816
  xmlns: "http://www.w3.org/2000/svg",
9816
9817
  viewBox: "0 0 18 18",
9817
9818
  fill: "none"
9818
- }, _objectWithoutProperties(_ref, _excluded$116)), {}, {
9819
+ }, _objectWithoutProperties(_ref, _excluded$118)), {}, {
9819
9820
  width: size,
9820
9821
  height: size,
9821
9822
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
@@ -9833,14 +9834,14 @@ var Bell = (_ref) => {
9833
9834
  };
9834
9835
  //#endregion
9835
9836
  //#region src/icons/CreditCard.tsx
9836
- var _excluded$115 = ["size"];
9837
+ var _excluded$117 = ["size"];
9837
9838
  var CreditCard = (_ref) => {
9838
9839
  let { size = 12 } = _ref;
9839
9840
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", _objectSpread2(_objectSpread2({
9840
9841
  xmlns: "http://www.w3.org/2000/svg",
9841
9842
  viewBox: "0 0 12 12",
9842
9843
  fill: "none"
9843
- }, _objectWithoutProperties(_ref, _excluded$115)), {}, {
9844
+ }, _objectWithoutProperties(_ref, _excluded$117)), {}, {
9844
9845
  width: size,
9845
9846
  height: size,
9846
9847
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
@@ -9858,14 +9859,14 @@ var CreditCard = (_ref) => {
9858
9859
  };
9859
9860
  //#endregion
9860
9861
  //#region src/icons/Folder.tsx
9861
- var _excluded$114 = ["size"];
9862
+ var _excluded$116 = ["size"];
9862
9863
  var Folder = (_ref) => {
9863
9864
  let { size = 12 } = _ref;
9864
9865
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", _objectSpread2(_objectSpread2({
9865
9866
  xmlns: "http://www.w3.org/2000/svg",
9866
9867
  viewBox: "0 0 12 12",
9867
9868
  fill: "none"
9868
- }, _objectWithoutProperties(_ref, _excluded$114)), {}, {
9869
+ }, _objectWithoutProperties(_ref, _excluded$116)), {}, {
9869
9870
  width: size,
9870
9871
  height: size,
9871
9872
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
@@ -9878,14 +9879,14 @@ var Folder = (_ref) => {
9878
9879
  };
9879
9880
  //#endregion
9880
9881
  //#region src/icons/Link.tsx
9881
- var _excluded$113 = ["size"];
9882
+ var _excluded$115 = ["size"];
9882
9883
  var Link$2 = (_ref) => {
9883
9884
  let { size = 18 } = _ref;
9884
9885
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", _objectSpread2(_objectSpread2({
9885
9886
  xmlns: "http://www.w3.org/2000/svg",
9886
9887
  viewBox: "0 0 18 18",
9887
9888
  fill: "none"
9888
- }, _objectWithoutProperties(_ref, _excluded$113)), {}, {
9889
+ }, _objectWithoutProperties(_ref, _excluded$115)), {}, {
9889
9890
  width: size,
9890
9891
  height: size,
9891
9892
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
@@ -9911,14 +9912,14 @@ var PlaidIcon = () => {
9911
9912
  };
9912
9913
  //#endregion
9913
9914
  //#region src/icons/Sunrise.tsx
9914
- var _excluded$112 = ["size"];
9915
+ var _excluded$114 = ["size"];
9915
9916
  var Sunrise = (_ref) => {
9916
9917
  let { size = 12 } = _ref;
9917
9918
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", _objectSpread2(_objectSpread2({
9918
9919
  xmlns: "http://www.w3.org/2000/svg",
9919
9920
  viewBox: "0 0 12 12",
9920
9921
  fill: "none"
9921
- }, _objectWithoutProperties(_ref, _excluded$112)), {}, {
9922
+ }, _objectWithoutProperties(_ref, _excluded$114)), {}, {
9922
9923
  width: size,
9923
9924
  height: size,
9924
9925
  children: [
@@ -10001,7 +10002,7 @@ var ChevronRight$2 = (_ref) => {
10001
10002
  };
10002
10003
  //#endregion
10003
10004
  //#region src/components/Button/IconButton.tsx
10004
- var _excluded$111 = [
10005
+ var _excluded$113 = [
10005
10006
  "className",
10006
10007
  "children",
10007
10008
  "icon",
@@ -10013,7 +10014,7 @@ var _excluded$111 = [
10013
10014
  "download"
10014
10015
  ];
10015
10016
  var IconButton = (_ref) => {
10016
- let { className, children: _children, icon, active, withBorder = false, href, target, rel, download } = _ref, props = _objectWithoutProperties(_ref, _excluded$111);
10017
+ let { className, children: _children, icon, active, withBorder = false, href, target, rel, download } = _ref, props = _objectWithoutProperties(_ref, _excluded$113);
10017
10018
  const baseClassName = (0, classnames.default)("Layer__icon-btn", `Layer__icon-btn--${active ? "active" : "inactive"}`, withBorder && "Layer__icon-btn--border", className);
10018
10019
  if (href) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("a", {
10019
10020
  href,
@@ -10103,17 +10104,17 @@ var useTooltip = ({ initialOpen = false, placement = "top", open: controlledOpen
10103
10104
  };
10104
10105
  //#endregion
10105
10106
  //#region src/components/Tooltip/Tooltip.tsx
10106
- var _excluded$110 = ["children"], _excluded2$15 = ["children", "asChild"], _excluded3$6 = ["className", "width"];
10107
+ var _excluded$112 = ["children"], _excluded2$16 = ["children", "asChild"], _excluded3$6 = ["className", "width"];
10107
10108
  var DeprecatedTooltip = (_ref) => {
10108
10109
  let { children } = _ref;
10109
- const tooltip = useTooltip(_objectWithoutProperties(_ref, _excluded$110));
10110
+ const tooltip = useTooltip(_objectWithoutProperties(_ref, _excluded$112));
10110
10111
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TooltipContext.Provider, {
10111
10112
  value: tooltip,
10112
10113
  children
10113
10114
  });
10114
10115
  };
10115
10116
  var DeprecatedTooltipTrigger = (0, react.forwardRef)(function TooltipTrigger(_ref2, propRef) {
10116
- let { children, asChild = false } = _ref2, props = _objectWithoutProperties(_ref2, _excluded2$15);
10117
+ let { children, asChild = false } = _ref2, props = _objectWithoutProperties(_ref2, _excluded2$16);
10117
10118
  const context = useTooltipContext();
10118
10119
  const childrenRef = (0, react.isValidElement)(children) && "ref" in children ? children.ref : null;
10119
10120
  const ref = (0, _floating_ui_react.useMergeRefs)([
@@ -10146,7 +10147,7 @@ var DeprecatedTooltipContent = (0, react.forwardRef)(function TooltipContent(_re
10146
10147
  });
10147
10148
  //#endregion
10148
10149
  //#region src/components/Typography/Text.tsx
10149
- var _excluded$109 = [
10150
+ var _excluded$111 = [
10150
10151
  "as",
10151
10152
  "className",
10152
10153
  "children",
@@ -10157,7 +10158,7 @@ var _excluded$109 = [
10157
10158
  "status",
10158
10159
  "pb",
10159
10160
  "invertColor"
10160
- ], _excluded2$14 = [
10161
+ ], _excluded2$15 = [
10161
10162
  "as",
10162
10163
  "className",
10163
10164
  "children",
@@ -10183,7 +10184,7 @@ var TextUseTooltip = /* @__PURE__ */ function(TextUseTooltip) {
10183
10184
  return TextUseTooltip;
10184
10185
  }({});
10185
10186
  var Text = (_ref) => {
10186
- let { as: Component = "p", className, children, size = TextSize.md, weight = TextWeight.normal, withDeprecatedTooltip: withTooltip, ellipsis, status, pb, invertColor } = _ref, props = _objectWithoutProperties(_ref, _excluded$109);
10187
+ let { as: Component = "p", className, children, size = TextSize.md, weight = TextWeight.normal, withDeprecatedTooltip: withTooltip, ellipsis, status, pb, invertColor } = _ref, props = _objectWithoutProperties(_ref, _excluded$111);
10187
10188
  const dataProperties = toDataProperties({
10188
10189
  status,
10189
10190
  ellipsis,
@@ -10204,7 +10205,7 @@ var Text = (_ref) => {
10204
10205
  }));
10205
10206
  };
10206
10207
  var DeprecatedTextWithTooltip = (_ref2) => {
10207
- let { as: Component = "p", className, children, size: _size = TextSize.md, weight: _weight = TextWeight.normal, withDeprecatedTooltip: _withTooltip = TextUseTooltip.whenTruncated, tooltipOptions } = _ref2, props = _objectWithoutProperties(_ref2, _excluded2$14);
10208
+ let { as: Component = "p", className, children, size: _size = TextSize.md, weight: _weight = TextWeight.normal, withDeprecatedTooltip: _withTooltip = TextUseTooltip.whenTruncated, tooltipOptions } = _ref2, props = _objectWithoutProperties(_ref2, _excluded2$15);
10208
10209
  const textElementRef = (0, react.useRef)();
10209
10210
  const compareSize = () => {
10210
10211
  if (textElementRef.current) setHover(textElementRef.current.children[0].scrollWidth > textElementRef.current.children[0].clientWidth);
@@ -10312,14 +10313,14 @@ var Badge = ({ icon, onClick, children, tooltip, size = BadgeSize.MEDIUM, varian
10312
10313
  };
10313
10314
  //#endregion
10314
10315
  //#region src/icons/Loader.tsx
10315
- var _excluded$108 = ["size"];
10316
+ var _excluded$110 = ["size"];
10316
10317
  var Loader$1 = (_ref) => {
10317
10318
  let { size = 18 } = _ref;
10318
10319
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", _objectSpread2(_objectSpread2({
10319
10320
  xmlns: "http://www.w3.org/2000/svg",
10320
10321
  viewBox: "0 0 18 18",
10321
10322
  fill: "none"
10322
- }, _objectWithoutProperties(_ref, _excluded$108)), {}, {
10323
+ }, _objectWithoutProperties(_ref, _excluded$110)), {}, {
10323
10324
  width: size,
10324
10325
  height: size,
10325
10326
  children: [
@@ -10376,7 +10377,7 @@ var Loader$1 = (_ref) => {
10376
10377
  };
10377
10378
  //#endregion
10378
10379
  //#region src/components/Button/Button.tsx
10379
- var _excluded$107 = [
10380
+ var _excluded$109 = [
10380
10381
  "className",
10381
10382
  "children",
10382
10383
  "variant",
@@ -10396,7 +10397,7 @@ var ButtonVariant = /* @__PURE__ */ function(ButtonVariant) {
10396
10397
  return ButtonVariant;
10397
10398
  }({});
10398
10399
  var Button$2 = (_ref) => {
10399
- let { className, children, variant = ButtonVariant.primary, leftIcon, rightIcon, iconOnly, iconAsPrimary = false, justify = "center", fullWidth, isProcessing, tooltip } = _ref, props = _objectWithoutProperties(_ref, _excluded$107);
10400
+ let { className, children, variant = ButtonVariant.primary, leftIcon, rightIcon, iconOnly, iconAsPrimary = false, justify = "center", fullWidth, isProcessing, tooltip } = _ref, props = _objectWithoutProperties(_ref, _excluded$109);
10400
10401
  const buttonRef = (0, react.useRef)(null);
10401
10402
  let justifyContent = "center";
10402
10403
  if (justify) justifyContent = justify;
@@ -10445,14 +10446,14 @@ var Button$2 = (_ref) => {
10445
10446
  };
10446
10447
  //#endregion
10447
10448
  //#region src/icons/AlertOctagon.tsx
10448
- var _excluded$106 = ["size"];
10449
+ var _excluded$108 = ["size"];
10449
10450
  var AlertOctagon = (_ref) => {
10450
10451
  let { size = 18 } = _ref;
10451
10452
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", _objectSpread2(_objectSpread2({
10452
10453
  viewBox: "0 0 18 18",
10453
10454
  fill: "none",
10454
10455
  xmlns: "http://www.w3.org/2000/svg"
10455
- }, _objectWithoutProperties(_ref, _excluded$106)), {}, {
10456
+ }, _objectWithoutProperties(_ref, _excluded$108)), {}, {
10456
10457
  width: size,
10457
10458
  height: size,
10458
10459
  children: [
@@ -10479,14 +10480,14 @@ var AlertOctagon = (_ref) => {
10479
10480
  };
10480
10481
  //#endregion
10481
10482
  //#region src/icons/CheckCircle.tsx
10482
- var _excluded$105 = ["size"];
10483
+ var _excluded$107 = ["size"];
10483
10484
  var CheckCircle$2 = (_ref) => {
10484
10485
  let { size = 18 } = _ref;
10485
10486
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", _objectSpread2(_objectSpread2({
10486
10487
  viewBox: "0 0 18 18",
10487
10488
  fill: "none",
10488
10489
  xmlns: "http://www.w3.org/2000/svg"
10489
- }, _objectWithoutProperties(_ref, _excluded$105)), {}, {
10490
+ }, _objectWithoutProperties(_ref, _excluded$107)), {}, {
10490
10491
  width: size,
10491
10492
  height: size,
10492
10493
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
@@ -10504,14 +10505,14 @@ var CheckCircle$2 = (_ref) => {
10504
10505
  };
10505
10506
  //#endregion
10506
10507
  //#region src/icons/RefreshCcw.tsx
10507
- var _excluded$104 = ["size"];
10508
+ var _excluded$106 = ["size"];
10508
10509
  var RefreshCcw$1 = (_ref) => {
10509
10510
  let { size = 18 } = _ref;
10510
10511
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", _objectSpread2(_objectSpread2({
10511
10512
  viewBox: "0 0 18 18",
10512
10513
  fill: "none",
10513
10514
  xmlns: "http://www.w3.org/2000/svg"
10514
- }, _objectWithoutProperties(_ref, _excluded$104)), {}, {
10515
+ }, _objectWithoutProperties(_ref, _excluded$106)), {}, {
10515
10516
  width: size,
10516
10517
  height: size,
10517
10518
  children: [
@@ -11098,7 +11099,7 @@ function BankTransactionTagVisibilityProvider({ children, showTags }) {
11098
11099
  }
11099
11100
  //#endregion
11100
11101
  //#region src/components/ui/Stack/Stack.tsx
11101
- var _excluded$103 = [
11102
+ var _excluded$105 = [
11102
11103
  "align",
11103
11104
  "children",
11104
11105
  "className",
@@ -11116,7 +11117,7 @@ var _excluded$103 = [
11116
11117
  ];
11117
11118
  var CLASS_NAME$11 = "Layer__Stack";
11118
11119
  var Stack = (0, react.forwardRef)(function Stack(_ref, ref) {
11119
- let { align, children, className, direction, gap, justify, overflow, pb, pbs, pbe, pi, pis, pie, fluid } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$103);
11120
+ let { align, children, className, direction, gap, justify, overflow, pb, pbs, pbe, pi, pis, pie, fluid } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$105);
11120
11121
  const dataProperties = toDataProperties({
11121
11122
  align,
11122
11123
  direction,
@@ -11445,7 +11446,7 @@ function useSizeClass() {
11445
11446
  }
11446
11447
  //#endregion
11447
11448
  //#region src/components/ui/Tooltip/Tooltip.tsx
11448
- var _excluded$102 = ["children"], _excluded2$13 = [
11449
+ var _excluded$104 = ["children"], _excluded2$14 = [
11449
11450
  "children",
11450
11451
  "asChild",
11451
11452
  "wordBreak"
@@ -11456,14 +11457,14 @@ var _excluded$102 = ["children"], _excluded2$13 = [
11456
11457
  ];
11457
11458
  var Tooltip$1 = (_ref) => {
11458
11459
  let { children } = _ref;
11459
- const tooltip = useTooltip(_objectWithoutProperties(_ref, _excluded$102));
11460
+ const tooltip = useTooltip(_objectWithoutProperties(_ref, _excluded$104));
11460
11461
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TooltipContext.Provider, {
11461
11462
  value: tooltip,
11462
11463
  children
11463
11464
  });
11464
11465
  };
11465
11466
  var TooltipTrigger = (0, react.forwardRef)(function TooltipTrigger(_ref2, propRef) {
11466
- let { children, asChild = false, wordBreak } = _ref2, props = _objectWithoutProperties(_ref2, _excluded2$13);
11467
+ let { children, asChild = false, wordBreak } = _ref2, props = _objectWithoutProperties(_ref2, _excluded2$14);
11467
11468
  const context = useTooltipContext();
11468
11469
  const childrenRef = (0, react.isValidElement)(children) && "ref" in children ? children.ref : null;
11469
11470
  const ref = (0, _floating_ui_react.useMergeRefs)([
@@ -11557,7 +11558,7 @@ function useTruncationDetection(elementRef, options = {
11557
11558
  }
11558
11559
  //#endregion
11559
11560
  //#region src/components/ui/Typography/Text.tsx
11560
- var _excluded$101 = [
11561
+ var _excluded$103 = [
11561
11562
  "align",
11562
11563
  "children",
11563
11564
  "ellipsis",
@@ -11573,7 +11574,7 @@ var _excluded$101 = [
11573
11574
  "weight"
11574
11575
  ];
11575
11576
  function splitTextProps(props) {
11576
- const { align, children, ellipsis, nonAria, noWrap, numeric, pb, pbe, pbs, size, status, variant, weight } = props, restProps = _objectWithoutProperties(props, _excluded$101);
11577
+ const { align, children, ellipsis, nonAria, noWrap, numeric, pb, pbe, pbs, size, status, variant, weight } = props, restProps = _objectWithoutProperties(props, _excluded$103);
11577
11578
  return {
11578
11579
  children,
11579
11580
  dataProperties: toDataProperties({
@@ -11746,7 +11747,7 @@ function withRenderProp(renderProp, callback) {
11746
11747
  }
11747
11748
  //#endregion
11748
11749
  //#region src/components/ui/Button/Button.tsx
11749
- var _excluded$100 = [
11750
+ var _excluded$102 = [
11750
11751
  "children",
11751
11752
  "ellipsis",
11752
11753
  "icon",
@@ -11774,7 +11775,7 @@ function ButtonTransparentContent({ children }) {
11774
11775
  });
11775
11776
  }
11776
11777
  var Button$1 = (0, react.forwardRef)((_ref, ref) => {
11777
- let { children, ellipsis, icon, inset, size = "md", variant = "solid", fullWidth = false, flex = false } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$100);
11778
+ let { children, ellipsis, icon, inset, size = "md", variant = "solid", fullWidth = false, flex = false } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$102);
11778
11779
  const { isPending = false } = restProps;
11779
11780
  const dataProperties = toDataProperties({
11780
11781
  ellipsis,
@@ -11797,10 +11798,10 @@ var Button$1 = (0, react.forwardRef)((_ref, ref) => {
11797
11798
  Button$1.displayName = "Button";
11798
11799
  //#endregion
11799
11800
  //#region src/utils/i18n/plural.ts
11800
- var _excluded$99 = ["one", "other"];
11801
+ var _excluded$101 = ["one", "other"];
11801
11802
  var tPlural = (translate, key, _ref) => {
11802
11803
  let { one, other } = _ref;
11803
- return translate(key, _objectSpread2(_objectSpread2({}, _objectWithoutProperties(_ref, _excluded$99)), {}, {
11804
+ return translate(key, _objectSpread2(_objectSpread2({}, _objectWithoutProperties(_ref, _excluded$101)), {}, {
11804
11805
  defaultValue_one: one,
11805
11806
  defaultValue_other: other
11806
11807
  }));
@@ -13078,7 +13079,7 @@ var useVirtualKeyboardHeight = () => {
13078
13079
  };
13079
13080
  //#endregion
13080
13081
  //#region src/components/ui/Modal/Modal.tsx
13081
- var _excluded$98 = ["variant"], _excluded2$12 = [
13082
+ var _excluded$100 = ["variant"], _excluded2$13 = [
13082
13083
  "variant",
13083
13084
  "children",
13084
13085
  "slots",
@@ -13088,7 +13089,7 @@ var _excluded$98 = ["variant"], _excluded2$12 = [
13088
13089
  ];
13089
13090
  var MODAL_OVERLAY_CLASS_NAME = `Layer__Portal Layer__ModalOverlay`;
13090
13091
  var ModalOverlay = (0, react.forwardRef)((_ref, ref) => {
13091
- let { variant } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$98);
13092
+ let { variant } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$100);
13092
13093
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components_Modal.ModalOverlay, _objectSpread2(_objectSpread2(_objectSpread2({}, toDataProperties({ variant })), restProps), {}, {
13093
13094
  className: MODAL_OVERLAY_CLASS_NAME,
13094
13095
  ref
@@ -13122,7 +13123,7 @@ var MobileDrawerKeyboardSpacer = () => {
13122
13123
  };
13123
13124
  var DIALOG_CLASS_NAME = "Layer__Dialog";
13124
13125
  var Dialog$3 = (0, react.forwardRef)((_ref2, ref) => {
13125
- let { variant = "center", children, slots, isEntering, isExiting, fixedHeight } = _ref2, restProps = _objectWithoutProperties(_ref2, _excluded2$12);
13126
+ let { variant = "center", children, slots, isEntering, isExiting, fixedHeight } = _ref2, restProps = _objectWithoutProperties(_ref2, _excluded2$13);
13126
13127
  const dataProperties = toDataProperties({
13127
13128
  variant,
13128
13129
  entering: isEntering,
@@ -13192,7 +13193,7 @@ function Drawer({ isOpen, onOpenChange, size = "md", flexBlock, flexInline, chil
13192
13193
  }
13193
13194
  //#endregion
13194
13195
  //#region src/components/ui/Typography/Heading.tsx
13195
- var _excluded$97 = [
13196
+ var _excluded$99 = [
13196
13197
  "align",
13197
13198
  "pie",
13198
13199
  "pbe",
@@ -13204,7 +13205,7 @@ var _excluded$97 = [
13204
13205
  ];
13205
13206
  var HEADING_CLASS_NAME = "Layer__UI__Heading";
13206
13207
  var Heading$1 = (0, react.forwardRef)((_ref, ref) => {
13207
- let { align, pie, pbe, size, variant, weight, ellipsis, className } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$97);
13208
+ let { align, pie, pbe, size, variant, weight, ellipsis, className } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$99);
13208
13209
  const dataProperties = toDataProperties({
13209
13210
  pbe,
13210
13211
  pie,
@@ -13294,14 +13295,14 @@ function ModalActions({ children }) {
13294
13295
  }
13295
13296
  //#endregion
13296
13297
  //#region src/icons/AlertCircle.tsx
13297
- var _excluded$96 = ["size"];
13298
+ var _excluded$98 = ["size"];
13298
13299
  var AlertCircle$1 = (_ref) => {
13299
13300
  let { size = 18 } = _ref;
13300
13301
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", _objectSpread2(_objectSpread2({
13301
13302
  viewBox: "0 0 18 18",
13302
13303
  fill: "none",
13303
13304
  xmlns: "http://www.w3.org/2000/svg"
13304
- }, _objectWithoutProperties(_ref, _excluded$96)), {}, {
13305
+ }, _objectWithoutProperties(_ref, _excluded$98)), {}, {
13305
13306
  width: size,
13306
13307
  height: size,
13307
13308
  children: [
@@ -13328,14 +13329,14 @@ var AlertCircle$1 = (_ref) => {
13328
13329
  };
13329
13330
  //#endregion
13330
13331
  //#region src/icons/Save.tsx
13331
- var _excluded$95 = ["size"];
13332
+ var _excluded$97 = ["size"];
13332
13333
  var Save$6 = (_ref) => {
13333
13334
  let { size = 18 } = _ref;
13334
13335
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", _objectSpread2(_objectSpread2({
13335
13336
  xmlns: "http://www.w3.org/2000/svg",
13336
13337
  viewBox: "0 0 18 18",
13337
13338
  fill: "none"
13338
- }, _objectWithoutProperties(_ref, _excluded$95)), {}, {
13339
+ }, _objectWithoutProperties(_ref, _excluded$97)), {}, {
13339
13340
  width: size,
13340
13341
  height: size,
13341
13342
  children: [
@@ -13362,7 +13363,7 @@ var Save$6 = (_ref) => {
13362
13363
  };
13363
13364
  //#endregion
13364
13365
  //#region src/components/Button/RetryButton.tsx
13365
- var _excluded$94 = [
13366
+ var _excluded$96 = [
13366
13367
  "className",
13367
13368
  "processing",
13368
13369
  "disabled",
@@ -13370,7 +13371,7 @@ var _excluded$94 = [
13370
13371
  "children"
13371
13372
  ];
13372
13373
  var RetryButton = (_ref) => {
13373
- let { className, processing, disabled, error, children } = _ref, props = _objectWithoutProperties(_ref, _excluded$94);
13374
+ let { className, processing, disabled, error, children } = _ref, props = _objectWithoutProperties(_ref, _excluded$96);
13374
13375
  const baseClassName = (0, classnames.default)("Layer__retry-btn", processing ? "Layer__btn--processing" : "", className);
13375
13376
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Button$2, _objectSpread2(_objectSpread2({}, props), {}, {
13376
13377
  className: baseClassName,
@@ -13384,7 +13385,7 @@ var RetryButton = (_ref) => {
13384
13385
  };
13385
13386
  //#endregion
13386
13387
  //#region src/components/Button/SubmitButton.tsx
13387
- var _excluded$93 = [
13388
+ var _excluded$95 = [
13388
13389
  "active",
13389
13390
  "className",
13390
13391
  "processing",
@@ -13421,7 +13422,7 @@ var buildRightIcon = ({ processing, error, action, noIcon }) => {
13421
13422
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Save$6, { size: 16 });
13422
13423
  };
13423
13424
  var SubmitButton = (_ref) => {
13424
- let { active, className, processing, disabled, error, children, action = SubmitAction.SAVE, noIcon, variant = ButtonVariant.primary, withRetry, iconAsPrimary = true } = _ref, props = _objectWithoutProperties(_ref, _excluded$93);
13425
+ let { active, className, processing, disabled, error, children, action = SubmitAction.SAVE, noIcon, variant = ButtonVariant.primary, withRetry, iconAsPrimary = true } = _ref, props = _objectWithoutProperties(_ref, _excluded$95);
13425
13426
  const { t } = (0, react_i18next.useTranslation)();
13426
13427
  const baseClassName = (0, classnames.default)(active ? "Layer__btn--active" : "", className);
13427
13428
  if (withRetry && error) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(RetryButton, _objectSpread2(_objectSpread2({}, props), {}, {
@@ -13446,7 +13447,7 @@ var SubmitButton = (_ref) => {
13446
13447
  };
13447
13448
  //#endregion
13448
13449
  //#region src/components/blocks/BaseConfirmationModal/BaseConfirmationModal.tsx
13449
- var _excluded$92 = [
13450
+ var _excluded$94 = [
13450
13451
  "isOpen",
13451
13452
  "onOpenChange",
13452
13453
  "useDrawer"
@@ -13512,7 +13513,7 @@ var BaseConfirmationModalContent = (0, react.memo)(function BaseConfirmationModa
13512
13513
  });
13513
13514
  });
13514
13515
  function BaseConfirmationModal(_ref) {
13515
- let { isOpen, onOpenChange, useDrawer = false } = _ref, contentProps = _objectWithoutProperties(_ref, _excluded$92);
13516
+ let { isOpen, onOpenChange, useDrawer = false } = _ref, contentProps = _objectWithoutProperties(_ref, _excluded$94);
13516
13517
  if (useDrawer) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Drawer, {
13517
13518
  flexBlock: true,
13518
13519
  isOpen,
@@ -13570,14 +13571,14 @@ var COMBO_BOX_CLASS_NAMES = {
13570
13571
  };
13571
13572
  //#endregion
13572
13573
  //#region src/icons/Check.tsx
13573
- var _excluded$91 = ["size"];
13574
+ var _excluded$93 = ["size"];
13574
13575
  var Check$4 = (_ref) => {
13575
13576
  let { size = 18 } = _ref;
13576
13577
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", _objectSpread2(_objectSpread2({
13577
13578
  viewBox: "0 0 18 18",
13578
13579
  fill: "none",
13579
13580
  xmlns: "http://www.w3.org/2000/svg"
13580
- }, _objectWithoutProperties(_ref, _excluded$91)), {}, {
13581
+ }, _objectWithoutProperties(_ref, _excluded$93)), {}, {
13581
13582
  width: size,
13582
13583
  height: size,
13583
13584
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
@@ -13590,14 +13591,14 @@ var Check$4 = (_ref) => {
13590
13591
  };
13591
13592
  //#endregion
13592
13593
  //#region src/icons/ChevronDown.tsx
13593
- var _excluded$90 = ["size"];
13594
+ var _excluded$92 = ["size"];
13594
13595
  var ChevronDown = (_ref) => {
13595
13596
  let { size = 18 } = _ref;
13596
13597
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", _objectSpread2(_objectSpread2({
13597
13598
  viewBox: "0 0 18 18",
13598
13599
  fill: "none",
13599
13600
  xmlns: "http://www.w3.org/2000/svg"
13600
- }, _objectWithoutProperties(_ref, _excluded$90)), {}, {
13601
+ }, _objectWithoutProperties(_ref, _excluded$92)), {}, {
13601
13602
  width: size,
13602
13603
  height: size,
13603
13604
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
@@ -13610,14 +13611,14 @@ var ChevronDown = (_ref) => {
13610
13611
  };
13611
13612
  //#endregion
13612
13613
  //#region src/icons/X.tsx
13613
- var _excluded$89 = ["size"];
13614
+ var _excluded$91 = ["size"];
13614
13615
  var X$1 = (_ref) => {
13615
13616
  let { size = 18 } = _ref;
13616
13617
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", _objectSpread2(_objectSpread2({
13617
13618
  xmlns: "http://www.w3.org/2000/svg",
13618
13619
  viewBox: "0 0 18 18",
13619
13620
  fill: "none"
13620
- }, _objectWithoutProperties(_ref, _excluded$89)), {}, {
13621
+ }, _objectWithoutProperties(_ref, _excluded$91)), {}, {
13621
13622
  width: size,
13622
13623
  height: size,
13623
13624
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
@@ -13635,10 +13636,10 @@ var X$1 = (_ref) => {
13635
13636
  };
13636
13637
  //#endregion
13637
13638
  //#region src/components/ui/ComboBox/useComboBoxSubcomponents.tsx
13638
- var _excluded$88 = ["children"], _excluded2$11 = ["children"], _excluded3$4 = ["children"], _excluded4$3 = ["children"], _excluded5$2 = ["children"], _excluded6$2 = ["children"], _excluded7 = ["children"], _excluded8 = ["children"];
13639
+ var _excluded$90 = ["children"], _excluded2$12 = ["children"], _excluded3$4 = ["children"], _excluded4$3 = ["children"], _excluded5$2 = ["children"], _excluded6$2 = ["children"], _excluded7 = ["children"], _excluded8 = ["children"];
13639
13640
  function buildCustomClearIndicator() {
13640
13641
  return function CustomClearIndicator(_ref) {
13641
- let { children } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$88);
13642
+ let { children } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$90);
13642
13643
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_select.components.ClearIndicator, _objectSpread2(_objectSpread2({}, restProps), {}, {
13643
13644
  className: COMBO_BOX_CLASS_NAMES.CLEAR_INDICATOR,
13644
13645
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(X$1, { size: 16 })
@@ -13647,7 +13648,7 @@ function buildCustomClearIndicator() {
13647
13648
  }
13648
13649
  function buildCustomDropdownIndicator() {
13649
13650
  return function CustomDropdownIndicator(_ref2) {
13650
- let { children } = _ref2, restProps = _objectWithoutProperties(_ref2, _excluded2$11);
13651
+ let { children } = _ref2, restProps = _objectWithoutProperties(_ref2, _excluded2$12);
13651
13652
  const { isDisabled } = restProps;
13652
13653
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_select.components.DropdownIndicator, _objectSpread2(_objectSpread2({}, restProps), {}, {
13653
13654
  className: COMBO_BOX_CLASS_NAMES.DROPDOWN_INDICATOR,
@@ -13849,7 +13850,7 @@ function useCommonComboBoxProps({ className, options, groups, onInputValueChange
13849
13850
  }
13850
13851
  //#endregion
13851
13852
  //#region src/components/ui/ComboBox/ComboBox.tsx
13852
- var _excluded$87 = [
13853
+ var _excluded$89 = [
13853
13854
  "className",
13854
13855
  "slots",
13855
13856
  "isError",
@@ -13857,7 +13858,7 @@ var _excluded$87 = [
13857
13858
  "onSelectedValueChange"
13858
13859
  ];
13859
13860
  function ComboBox(_ref) {
13860
- let { className, slots, isError, selectedValue, onSelectedValueChange } = _ref, props = _objectWithoutProperties(_ref, _excluded$87);
13861
+ let { className, slots, isError, selectedValue, onSelectedValueChange } = _ref, props = _objectWithoutProperties(_ref, _excluded$89);
13861
13862
  const commonSelectProps = useCommonComboBoxProps(_objectSpread2({
13862
13863
  className,
13863
13864
  slots,
@@ -13878,13 +13879,13 @@ function ComboBox(_ref) {
13878
13879
  }
13879
13880
  //#endregion
13880
13881
  //#region src/components/ui/Typography/MoneySpan.tsx
13881
- var _excluded$86 = [
13882
+ var _excluded$88 = [
13882
13883
  "amount",
13883
13884
  "displayPlusSign",
13884
13885
  "className"
13885
13886
  ];
13886
13887
  var MoneySpan = (0, react.forwardRef)((_ref, ref) => {
13887
- let { amount, displayPlusSign, className } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$86);
13888
+ let { amount, displayPlusSign, className } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$88);
13888
13889
  const { formatCurrencyFromCents } = useIntlFormatter();
13889
13890
  const formattedAmount = formatCurrencyFromCents(amount, { signDisplay: displayPlusSign ? "always" : "auto" });
13890
13891
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Span, _objectSpread2(_objectSpread2({}, restProps), {}, {
@@ -13896,14 +13897,14 @@ var MoneySpan = (0, react.forwardRef)((_ref, ref) => {
13896
13897
  MoneySpan.displayName = "MoneySpan";
13897
13898
  //#endregion
13898
13899
  //#region src/icons/MinimizeTwo.tsx
13899
- var _excluded$85 = ["size"];
13900
+ var _excluded$87 = ["size"];
13900
13901
  var MinimizeTwo = (_ref) => {
13901
13902
  let { size = 18 } = _ref;
13902
13903
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", _objectSpread2(_objectSpread2({
13903
13904
  xmlns: "http://www.w3.org/2000/svg",
13904
13905
  viewBox: "0 0 18 18",
13905
13906
  fill: "none"
13906
- }, _objectWithoutProperties(_ref, _excluded$85)), {}, {
13907
+ }, _objectWithoutProperties(_ref, _excluded$87)), {}, {
13907
13908
  width: size,
13908
13909
  height: size,
13909
13910
  children: [
@@ -13936,14 +13937,14 @@ var MinimizeTwo = (_ref) => {
13936
13937
  };
13937
13938
  //#endregion
13938
13939
  //#region src/icons/Scissors.tsx
13939
- var _excluded$84 = ["size"];
13940
+ var _excluded$86 = ["size"];
13940
13941
  var Scissors = (_ref) => {
13941
13942
  let { size = 11 } = _ref;
13942
13943
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", _objectSpread2(_objectSpread2({
13943
13944
  viewBox: "0 0 11 11",
13944
13945
  fill: "none",
13945
13946
  xmlns: "http://www.w3.org/2000/svg"
13946
- }, _objectWithoutProperties(_ref, _excluded$84)), {}, {
13947
+ }, _objectWithoutProperties(_ref, _excluded$86)), {}, {
13947
13948
  width: size,
13948
13949
  height: size,
13949
13950
  children: [
@@ -14403,7 +14404,7 @@ var getCategoryActionableId = (value, label) => {
14403
14404
  };
14404
14405
  //#endregion
14405
14406
  //#region src/components/ui/Input/InputGroup.tsx
14406
- var _excluded$83 = [
14407
+ var _excluded$85 = [
14407
14408
  "actionCount",
14408
14409
  "className",
14409
14410
  "slots",
@@ -14411,7 +14412,7 @@ var _excluded$83 = [
14411
14412
  ];
14412
14413
  var INPUT_GROUP_CLASS_NAME = "Layer__UI__InputGroup";
14413
14414
  var InputGroup$1 = (0, react.forwardRef)(function InputGroup(_ref, ref) {
14414
- let { actionCount, className, slots, children } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$83);
14415
+ let { actionCount, className, slots, children } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$85);
14415
14416
  const combinedClassName = (0, classnames.default)(INPUT_GROUP_CLASS_NAME, className);
14416
14417
  const dataProperties = toDataProperties({ "action-count": actionCount });
14417
14418
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components_Group.Group, _objectSpread2(_objectSpread2(_objectSpread2({}, restProps), dataProperties), {}, {
@@ -14422,10 +14423,10 @@ var InputGroup$1 = (0, react.forwardRef)(function InputGroup(_ref, ref) {
14422
14423
  });
14423
14424
  //#endregion
14424
14425
  //#region src/components/ui/SearchField/MinimalSearchField.tsx
14425
- var _excluded$82 = ["placeholder", "isDisabled"];
14426
+ var _excluded$84 = ["placeholder", "isDisabled"];
14426
14427
  var CLASS_NAME$8 = "Layer__MinimalSearchField";
14427
14428
  function MinimalSearchField(_ref) {
14428
- let { placeholder, isDisabled } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$82);
14429
+ let { placeholder, isDisabled } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$84);
14429
14430
  const { t } = (0, react_i18next.useTranslation)();
14430
14431
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_aria_components_SearchField.SearchField, _objectSpread2(_objectSpread2({}, restProps), {}, {
14431
14432
  isDisabled,
@@ -14445,7 +14446,7 @@ function MinimalSearchField(_ref) {
14445
14446
  }
14446
14447
  //#endregion
14447
14448
  //#region src/components/SearchField/SearchField.tsx
14448
- var _excluded$81 = [
14449
+ var _excluded$83 = [
14449
14450
  "slot",
14450
14451
  "className",
14451
14452
  "label",
@@ -14453,7 +14454,7 @@ var _excluded$81 = [
14453
14454
  ];
14454
14455
  var CLASS_NAME$7 = "Layer__SearchField";
14455
14456
  function SearchField(_ref) {
14456
- let { slot = "search", className, label, isDisabled } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$81);
14457
+ let { slot = "search", className, label, isDisabled } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$83);
14457
14458
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(InputGroup$1, {
14458
14459
  slot,
14459
14460
  className: (0, classnames.default)(CLASS_NAME$7, className),
@@ -14664,13 +14665,13 @@ var resolveSelectedOption = (source, selectedValue) => {
14664
14665
  };
14665
14666
  //#endregion
14666
14667
  //#region src/components/ui/Checkbox/Checkbox.tsx
14667
- var _excluded$80 = [
14668
+ var _excluded$82 = [
14668
14669
  "children",
14669
14670
  "className",
14670
14671
  "variant",
14671
14672
  "size",
14672
14673
  "isIndeterminate"
14673
- ], _excluded2$10 = ["tooltip"];
14674
+ ], _excluded2$11 = ["tooltip"];
14674
14675
  var CLASS_NAME$6 = "Layer__Checkbox";
14675
14676
  var CHECK_SIZE = {
14676
14677
  sm: 12,
@@ -14678,7 +14679,7 @@ var CHECK_SIZE = {
14678
14679
  lg: 16
14679
14680
  };
14680
14681
  function Checkbox(_ref) {
14681
- let { children, className, variant = "default", size = "sm", isIndeterminate } = _ref, props = _objectWithoutProperties(_ref, _excluded$80);
14682
+ let { children, className, variant = "default", size = "sm", isIndeterminate } = _ref, props = _objectWithoutProperties(_ref, _excluded$82);
14682
14683
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components_Checkbox.Checkbox, _objectSpread2(_objectSpread2(_objectSpread2({}, (0, react.useMemo)(() => toDataProperties({
14683
14684
  size,
14684
14685
  variant,
@@ -14697,7 +14698,7 @@ function Checkbox(_ref) {
14697
14698
  }));
14698
14699
  }
14699
14700
  function CheckboxWithTooltip(_ref2) {
14700
- let { tooltip } = _ref2, props = _objectWithoutProperties(_ref2, _excluded2$10);
14701
+ let { tooltip } = _ref2, props = _objectWithoutProperties(_ref2, _excluded2$11);
14701
14702
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
14702
14703
  className: "Layer__checkbox-wrapper",
14703
14704
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(DeprecatedTooltip, {
@@ -14787,7 +14788,7 @@ var MobileList = ({ ariaLabel, data, slots, renderItem, onClickItem, isLoading,
14787
14788
  };
14788
14789
  //#endregion
14789
14790
  //#region src/components/ui/MobileSelectionDrawer/MobileSelectionDrawerList.tsx
14790
- var _excluded$79 = [
14791
+ var _excluded$81 = [
14791
14792
  "ariaLabel",
14792
14793
  "selectedValue",
14793
14794
  "onSelectedValueChange",
@@ -14814,7 +14815,7 @@ var ErrorState$5 = () => {
14814
14815
  };
14815
14816
  var MobileSelectionDrawerList = (_ref) => {
14816
14817
  let { ariaLabel, selectedValue, onSelectedValueChange, isLoading = false, isError = false } = _ref;
14817
- const source = _objectWithoutProperties(_ref, _excluded$79);
14818
+ const source = _objectWithoutProperties(_ref, _excluded$81);
14818
14819
  const data = (0, react.useMemo)(() => {
14819
14820
  if (source.groups) return { groups: source.groups.map((group) => ({
14820
14821
  label: group.label,
@@ -14859,7 +14860,7 @@ var MobileSelectionDrawerList = (_ref) => {
14859
14860
  };
14860
14861
  //#endregion
14861
14862
  //#region src/components/ui/MobileSelectionDrawer/MobileSelectionDrawerWithTrigger.tsx
14862
- var _excluded$78 = [
14863
+ var _excluded$80 = [
14863
14864
  "ariaLabel",
14864
14865
  "heading",
14865
14866
  "selectedValue",
@@ -14874,7 +14875,7 @@ var _excluded$78 = [
14874
14875
  ];
14875
14876
  var MobileSelectionDrawerWithTrigger = (_ref) => {
14876
14877
  var _slotProps$Trigger$ic, _slotProps$Trigger, _resolvedSelectedValu;
14877
- let { ariaLabel, heading, selectedValue, onSelectedValueChange, placeholder, isLoading = false, isError = false, isDisabled = false, isSearchable = false, searchPlaceholder, slotProps } = _ref, optionOrGroups = _objectWithoutProperties(_ref, _excluded$78);
14878
+ let { ariaLabel, heading, selectedValue, onSelectedValueChange, placeholder, isLoading = false, isError = false, isDisabled = false, isSearchable = false, searchPlaceholder, slotProps } = _ref, optionOrGroups = _objectWithoutProperties(_ref, _excluded$80);
14878
14879
  const { t } = (0, react_i18next.useTranslation)();
14879
14880
  const { options, groups } = optionOrGroups;
14880
14881
  const [isOpen, setIsOpen] = (0, react.useState)(false);
@@ -15423,14 +15424,14 @@ var BankTransactionsBulkActions = ({ isMobileView = false, slotProps }) => {
15423
15424
  };
15424
15425
  //#endregion
15425
15426
  //#region src/icons/DownloadCloud.tsx
15426
- var _excluded$77 = ["size"];
15427
+ var _excluded$79 = ["size"];
15427
15428
  var DownloadCloud = (_ref) => {
15428
15429
  let { size = 18 } = _ref;
15429
15430
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", _objectSpread2(_objectSpread2({
15430
15431
  xmlns: "http://www.w3.org/2000/svg",
15431
15432
  viewBox: "0 0 18 18",
15432
15433
  fill: "none"
15433
- }, _objectWithoutProperties(_ref, _excluded$77)), {}, {
15434
+ }, _objectWithoutProperties(_ref, _excluded$79)), {}, {
15434
15435
  width: size,
15435
15436
  height: size,
15436
15437
  children: [
@@ -15457,14 +15458,14 @@ var DownloadCloud = (_ref) => {
15457
15458
  };
15458
15459
  //#endregion
15459
15460
  //#region src/icons/UploadCloud.tsx
15460
- var _excluded$76 = ["size"];
15461
+ var _excluded$78 = ["size"];
15461
15462
  var UploadCloud = (_ref) => {
15462
15463
  let { size = 18 } = _ref;
15463
15464
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", _objectSpread2(_objectSpread2({
15464
15465
  viewBox: "0 0 18 18",
15465
15466
  fill: "none",
15466
15467
  xmlns: "http://www.w3.org/2000/svg"
15467
- }, _objectWithoutProperties(_ref, _excluded$76)), {}, {
15468
+ }, _objectWithoutProperties(_ref, _excluded$78)), {}, {
15468
15469
  width: size,
15469
15470
  height: size,
15470
15471
  children: [
@@ -15731,7 +15732,7 @@ function useCustomAccountParseCsv() {
15731
15732
  }
15732
15733
  //#endregion
15733
15734
  //#region src/components/ui/ComboBox/CreatableComboBox.tsx
15734
- var _excluded$75 = [
15735
+ var _excluded$77 = [
15735
15736
  "className",
15736
15737
  "slots",
15737
15738
  "isError",
@@ -15744,7 +15745,7 @@ var _excluded$75 = [
15744
15745
  ];
15745
15746
  var returnTrue = () => true;
15746
15747
  function CreatableComboBox(_ref) {
15747
- let { className, slots, isError, selectedValue, onSelectedValueChange, onCreateOption, formatCreateLabel, createOptionPosition = "first", isValidNewOption = returnTrue } = _ref, props = _objectWithoutProperties(_ref, _excluded$75);
15748
+ let { className, slots, isError, selectedValue, onSelectedValueChange, onCreateOption, formatCreateLabel, createOptionPosition = "first", isValidNewOption = returnTrue } = _ref, props = _objectWithoutProperties(_ref, _excluded$77);
15748
15749
  const commonSelectProps = useCommonComboBoxProps(_objectSpread2({
15749
15750
  className,
15750
15751
  slots,
@@ -15789,14 +15790,14 @@ var CopyTemplateHeadersButtonGroup = ({ headers, className }) => {
15789
15790
  };
15790
15791
  //#endregion
15791
15792
  //#region src/icons/CloseIcon.tsx
15792
- var _excluded$74 = ["size"];
15793
+ var _excluded$76 = ["size"];
15793
15794
  var CloseIcon = (_ref) => {
15794
15795
  let { size = 12 } = _ref;
15795
15796
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", _objectSpread2(_objectSpread2({
15796
15797
  viewBox: "0 0 12 12",
15797
15798
  fill: "none",
15798
15799
  xmlns: "http://www.w3.org/2000/svg"
15799
- }, _objectWithoutProperties(_ref, _excluded$74)), {}, {
15800
+ }, _objectWithoutProperties(_ref, _excluded$76)), {}, {
15800
15801
  width: size,
15801
15802
  height: size,
15802
15803
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
@@ -16035,7 +16036,7 @@ function useCreateCustomAccount() {
16035
16036
  }
16036
16037
  //#endregion
16037
16038
  //#region src/components/ui/Form/Form.tsx
16038
- var _excluded$73 = ["children", "className"], _excluded2$9 = [
16039
+ var _excluded$75 = ["children", "className"], _excluded2$10 = [
16039
16040
  "children",
16040
16041
  "inline",
16041
16042
  "textarea",
@@ -16044,7 +16045,7 @@ var _excluded$73 = ["children", "className"], _excluded2$9 = [
16044
16045
  var FORM_CLASS_NAME = "Layer__UI__Form";
16045
16046
  var Form = (0, react.forwardRef)(function Form(_ref, ref) {
16046
16047
  let { children, className } = _ref;
16047
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components_Form.Form, _objectSpread2(_objectSpread2({}, _objectWithoutProperties(_ref, _excluded$73)), {}, {
16048
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components_Form.Form, _objectSpread2(_objectSpread2({}, _objectWithoutProperties(_ref, _excluded$75)), {}, {
16048
16049
  className: (0, classnames.default)(FORM_CLASS_NAME, className),
16049
16050
  ref,
16050
16051
  children
@@ -16052,7 +16053,7 @@ var Form = (0, react.forwardRef)(function Form(_ref, ref) {
16052
16053
  });
16053
16054
  var TEXT_FIELD_CLASS_NAME = "Layer__UI__TextField";
16054
16055
  var TextField = (0, react.forwardRef)(function TextField(_ref2, ref) {
16055
- let { children, inline, textarea, className } = _ref2, restProps = _objectWithoutProperties(_ref2, _excluded2$9);
16056
+ let { children, inline, textarea, className } = _ref2, restProps = _objectWithoutProperties(_ref2, _excluded2$10);
16056
16057
  const dataProperties = toDataProperties({
16057
16058
  inline,
16058
16059
  textarea
@@ -16267,10 +16268,10 @@ function useBigDecimalInput({ value, onChange, onBlur, mode, maxValue, maxDecima
16267
16268
  }
16268
16269
  //#endregion
16269
16270
  //#region src/components/ui/Input/Input.tsx
16270
- var _excluded$72 = ["inset", "placement"];
16271
+ var _excluded$74 = ["inset", "placement"];
16271
16272
  var INPUT_CLASS_NAME = "Layer__UI__Input";
16272
16273
  var Input$1 = (0, react.forwardRef)(function Input(_ref, ref) {
16273
- let { inset, placement } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$72);
16274
+ let { inset, placement } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$74);
16274
16275
  const dataProperties = toDataProperties({
16275
16276
  inset,
16276
16277
  placement
@@ -16282,7 +16283,7 @@ var Input$1 = (0, react.forwardRef)(function Input(_ref, ref) {
16282
16283
  });
16283
16284
  //#endregion
16284
16285
  //#region src/components/forms/FormBigDecimalField.tsx
16285
- var _excluded$71 = [
16286
+ var _excluded$73 = [
16286
16287
  "mode",
16287
16288
  "allowNegative",
16288
16289
  "maxValue",
@@ -16296,7 +16297,7 @@ var DEFAULT_MAX_VALUE$1 = effect.BigDecimal.fromBigInt(BigInt(1e7));
16296
16297
  var DEFAULT_MIN_DECIMAL_PLACES$1 = 0;
16297
16298
  var DEFAULT_MAX_DECIMAL_PLACES$1 = 3;
16298
16299
  function FormBigDecimalField(_ref) {
16299
- 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$71);
16300
+ 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$73);
16300
16301
  const { name, state, handleChange, handleBlur } = useFieldContext();
16301
16302
  const { value } = state;
16302
16303
  const { inputValue, onInputChange, onInputBlur, onBeforeInput, onPaste } = useBigDecimalInput({
@@ -16358,15 +16359,15 @@ function FormCheckboxField({ label, className, inline = false, showLabel = true,
16358
16359
  }
16359
16360
  //#endregion
16360
16361
  //#region src/components/ui/Date/Date.tsx
16361
- var _excluded$70 = [
16362
+ var _excluded$72 = [
16362
16363
  "inline",
16363
16364
  "className",
16364
16365
  "isReadOnly"
16365
- ], _excluded2$8 = ["inset", "pointerEvents"], _excluded3$3 = ["isReadOnly"], _excluded4$2 = ["className"];
16366
+ ], _excluded2$9 = ["inset", "pointerEvents"], _excluded3$3 = ["isReadOnly"], _excluded4$2 = ["className"];
16366
16367
  var DATE_PICKER_CLASS_NAME = "Layer__UI__DatePicker";
16367
16368
  var DATE_FIELD_CLASS_NAME = "Layer__UI__DateField";
16368
16369
  var DateField = (0, react.forwardRef)(function DateField(_ref, ref) {
16369
- let { inline, className, isReadOnly } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$70);
16370
+ let { inline, className, isReadOnly } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$72);
16370
16371
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components_DateField.DateField, _objectSpread2(_objectSpread2(_objectSpread2({}, toDataProperties({
16371
16372
  inline,
16372
16373
  readonly: isReadOnly
@@ -16378,7 +16379,7 @@ var DateField = (0, react.forwardRef)(function DateField(_ref, ref) {
16378
16379
  });
16379
16380
  var DATE_INPUT_CLASS_NAME = "Layer__UI__DateInput";
16380
16381
  var DateInput = (0, react.forwardRef)(function DateInput(_ref2, ref) {
16381
- let { inset, pointerEvents } = _ref2, restProps = _objectWithoutProperties(_ref2, _excluded2$8);
16382
+ let { inset, pointerEvents } = _ref2, restProps = _objectWithoutProperties(_ref2, _excluded2$9);
16382
16383
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components_DateField.DateInput, _objectSpread2(_objectSpread2(_objectSpread2({}, toDataProperties({
16383
16384
  inset,
16384
16385
  "pointer-events": pointerEvents
@@ -16457,10 +16458,10 @@ function FormDateField({ label, className, inline = false, showLabel = true, sho
16457
16458
  }
16458
16459
  //#endregion
16459
16460
  //#region src/components/ui/Calendar/Calendar.tsx
16460
- var _excluded$69 = ["className", "isReadOnly"], _excluded2$7 = ["className"], _excluded3$2 = ["className"], _excluded4$1 = ["className", "size"], _excluded5$1 = ["className"], _excluded6$1 = ["className", "size"];
16461
+ var _excluded$71 = ["className", "isReadOnly"], _excluded2$8 = ["className"], _excluded3$2 = ["className"], _excluded4$1 = ["className", "size"], _excluded5$1 = ["className"], _excluded6$1 = ["className", "size"];
16461
16462
  var CALENDAR_CLASS_NAME = "Layer__UI__Calendar";
16462
16463
  var Calendar = (0, react.forwardRef)(function Calendar(_ref, ref) {
16463
- let { className, isReadOnly } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$69);
16464
+ let { className, isReadOnly } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$71);
16464
16465
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components_Calendar.Calendar, _objectSpread2(_objectSpread2(_objectSpread2({}, toDataProperties({ readonly: isReadOnly })), restProps), {}, {
16465
16466
  isReadOnly,
16466
16467
  className: (0, classnames.default)(CALENDAR_CLASS_NAME, className),
@@ -16470,7 +16471,7 @@ var Calendar = (0, react.forwardRef)(function Calendar(_ref, ref) {
16470
16471
  var CALENDAR_GRID_CLASS_NAME = "Layer__UI__CalendarGrid";
16471
16472
  var CalendarGrid = (0, react.forwardRef)(function CalendarGrid(_ref2, ref) {
16472
16473
  let { className } = _ref2;
16473
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components_Calendar.CalendarGrid, _objectSpread2(_objectSpread2({}, _objectWithoutProperties(_ref2, _excluded2$7)), {}, {
16474
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components_Calendar.CalendarGrid, _objectSpread2(_objectSpread2({}, _objectWithoutProperties(_ref2, _excluded2$8)), {}, {
16474
16475
  className: (0, classnames.default)(CALENDAR_GRID_CLASS_NAME, className),
16475
16476
  ref
16476
16477
  }));
@@ -16607,10 +16608,10 @@ var DatePickerInput = ({ errorText, variant, onClick, isReadOnly }) => {
16607
16608
  };
16608
16609
  //#endregion
16609
16610
  //#region src/components/ui/Popover/Popover.tsx
16610
- var _excluded$68 = ["flexInline"];
16611
+ var _excluded$70 = ["flexInline"];
16611
16612
  var POPOVER_CLASS_NAMES = `Layer__Portal Layer__Popover`;
16612
16613
  var Popover$2 = (0, react.forwardRef)(function Popover(_ref, ref) {
16613
- let { flexInline = false } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$68);
16614
+ let { flexInline = false } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$70);
16614
16615
  const dataProperties = toDataProperties({ "flex-inline": flexInline });
16615
16616
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components_Popover.Popover, _objectSpread2(_objectSpread2(_objectSpread2({}, restProps), dataProperties), {}, {
16616
16617
  className: POPOVER_CLASS_NAMES,
@@ -16740,7 +16741,7 @@ var nrbdEquals = (a, b) => {
16740
16741
  };
16741
16742
  //#endregion
16742
16743
  //#region src/components/forms/FormNonRecursiveBigDecimalField.tsx
16743
- var _excluded$67 = [
16744
+ var _excluded$69 = [
16744
16745
  "mode",
16745
16746
  "allowNegative",
16746
16747
  "maxValue",
@@ -16754,7 +16755,7 @@ var DEFAULT_MAX_VALUE = effect.BigDecimal.fromBigInt(BigInt(1e7));
16754
16755
  var DEFAULT_MIN_DECIMAL_PLACES = 0;
16755
16756
  var DEFAULT_MAX_DECIMAL_PLACES = 3;
16756
16757
  function FormNonRecursiveBigDecimalField(_ref) {
16757
- 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$67);
16758
+ 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);
16758
16759
  const { name, state, handleChange, handleBlur } = useFieldContext();
16759
16760
  const { value: nrbdValue } = state;
16760
16761
  const { inputValue, onInputChange, onInputBlur, onBeforeInput, onPaste } = useBigDecimalInput({
@@ -16791,14 +16792,14 @@ function FormNonRecursiveBigDecimalField(_ref) {
16791
16792
  }
16792
16793
  //#endregion
16793
16794
  //#region src/components/ui/NumberField/NumberField.tsx
16794
- var _excluded$66 = [
16795
+ var _excluded$68 = [
16795
16796
  "inline",
16796
16797
  "className",
16797
16798
  "isReadOnly"
16798
16799
  ];
16799
16800
  var NUMBER_FIELD_CLASS_NAME = "Layer__UI__NumberField";
16800
16801
  var NumberField = (0, react.forwardRef)(function NumberField(_ref, ref) {
16801
- let { inline, className, isReadOnly } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$66);
16802
+ let { inline, className, isReadOnly } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$68);
16802
16803
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components_NumberField.NumberField, _objectSpread2(_objectSpread2(_objectSpread2({ step: 1 }, toDataProperties({
16803
16804
  inline,
16804
16805
  readonly: isReadOnly
@@ -16849,17 +16850,17 @@ function FormNumberField({ label, className, inline = false, showLabel = true, s
16849
16850
  }
16850
16851
  //#endregion
16851
16852
  //#region src/components/ui/RadioGroup/RadioGroup.tsx
16852
- var _excluded$65 = [
16853
+ var _excluded$67 = [
16853
16854
  "children",
16854
16855
  "className",
16855
16856
  "onChange"
16856
- ], _excluded2$6 = ["children", "className"];
16857
+ ], _excluded2$7 = ["children", "className"];
16857
16858
  var RADIO_GROUP_CLASS_NAME = "Layer__RadioGroup";
16858
16859
  var RADIO_CLASS_NAME = "Layer__Radio";
16859
16860
  var INDICATOR_SIZE = 10;
16860
16861
  function RadioGroup(_ref) {
16861
16862
  let { children, className, onChange } = _ref;
16862
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components_RadioGroup.RadioGroup, _objectSpread2(_objectSpread2({}, _objectWithoutProperties(_ref, _excluded$65)), {}, {
16863
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components_RadioGroup.RadioGroup, _objectSpread2(_objectSpread2({}, _objectWithoutProperties(_ref, _excluded$67)), {}, {
16863
16864
  onChange,
16864
16865
  className: (0, classnames.default)(RADIO_GROUP_CLASS_NAME, className),
16865
16866
  children
@@ -16867,7 +16868,7 @@ function RadioGroup(_ref) {
16867
16868
  }
16868
16869
  function Radio(_ref2) {
16869
16870
  let { children, className } = _ref2;
16870
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components_RadioGroup.Radio, _objectSpread2(_objectSpread2({}, _objectWithoutProperties(_ref2, _excluded2$6)), {}, {
16871
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components_RadioGroup.Radio, _objectSpread2(_objectSpread2({}, _objectWithoutProperties(_ref2, _excluded2$7)), {}, {
16871
16872
  className: (0, classnames.default)(RADIO_CLASS_NAME, className),
16872
16873
  children: withRenderProp(children, (node) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
16873
16874
  slot: "radio",
@@ -16974,11 +16975,11 @@ function FormRadioGroupYesNoField({ label, className, inline = false, showLabel
16974
16975
  }
16975
16976
  //#endregion
16976
16977
  //#region src/components/ui/Switch/Switch.tsx
16977
- var _excluded$64 = ["children", "className"];
16978
+ var _excluded$66 = ["children", "className"];
16978
16979
  var SWITCH_CLASS_NAME = "Layer__UI__Switch";
16979
16980
  var Switch = (0, react.forwardRef)((_ref, ref) => {
16980
16981
  let { children, className } = _ref;
16981
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components_Switch.Switch, _objectSpread2(_objectSpread2({}, _objectWithoutProperties(_ref, _excluded$64)), {}, {
16982
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components_Switch.Switch, _objectSpread2(_objectSpread2({}, _objectWithoutProperties(_ref, _excluded$66)), {}, {
16982
16983
  className: (0, classnames.default)(SWITCH_CLASS_NAME, className),
16983
16984
  ref,
16984
16985
  children: withRenderProp(children, (node) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { slot: "indicator" }), node] }))
@@ -17012,10 +17013,10 @@ function FormSwitchField({ label, slots, className, inline = false, showLabel =
17012
17013
  }
17013
17014
  //#endregion
17014
17015
  //#region src/components/ui/Input/TextArea.tsx
17015
- var _excluded$63 = ["resize"];
17016
+ var _excluded$65 = ["resize"];
17016
17017
  var TEXTAREA_CLASS_NAME = "Layer__UI__TextArea";
17017
17018
  var TextArea = (0, react.forwardRef)(function TextArea(_ref, ref) {
17018
- let { resize = "none" } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$63);
17019
+ let { resize = "none" } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$65);
17019
17020
  const dataProperties = toDataProperties({ resize });
17020
17021
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components_TextArea.TextArea, _objectSpread2(_objectSpread2(_objectSpread2({}, restProps), dataProperties), {}, {
17021
17022
  className: TEXTAREA_CLASS_NAME,
@@ -17024,9 +17025,9 @@ var TextArea = (0, react.forwardRef)(function TextArea(_ref, ref) {
17024
17025
  });
17025
17026
  //#endregion
17026
17027
  //#region src/components/forms/FormTextAreaField.tsx
17027
- var _excluded$62 = ["placeholder"];
17028
+ var _excluded$64 = ["placeholder"];
17028
17029
  function FormTextAreaField(_ref) {
17029
- let { placeholder } = _ref, props = _objectWithoutProperties(_ref, _excluded$62);
17030
+ let { placeholder } = _ref, props = _objectWithoutProperties(_ref, _excluded$64);
17030
17031
  const { name, state, handleChange, handleBlur } = useFieldContext();
17031
17032
  const { value } = state;
17032
17033
  const onChange = (0, react.useCallback)((e) => {
@@ -17047,9 +17048,9 @@ function FormTextAreaField(_ref) {
17047
17048
  }
17048
17049
  //#endregion
17049
17050
  //#region src/components/forms/FormTextField.tsx
17050
- var _excluded$61 = ["placeholder"];
17051
+ var _excluded$63 = ["placeholder"];
17051
17052
  function FormTextField(_ref) {
17052
- let { placeholder } = _ref, props = _objectWithoutProperties(_ref, _excluded$61);
17053
+ let { placeholder } = _ref, props = _objectWithoutProperties(_ref, _excluded$63);
17053
17054
  const { name, state, handleChange, handleBlur } = useFieldContext();
17054
17055
  const { value } = state;
17055
17056
  const onChange = (0, react.useCallback)((e) => {
@@ -17152,14 +17153,14 @@ var useCustomAccountForm = ({ onSuccess }) => {
17152
17153
  };
17153
17154
  //#endregion
17154
17155
  //#region src/components/Input/Input.tsx
17155
- var _excluded$60 = [
17156
+ var _excluded$62 = [
17156
17157
  "className",
17157
17158
  "isInvalid",
17158
17159
  "errorMessage",
17159
17160
  "leftText"
17160
17161
  ];
17161
17162
  var Input = (_ref) => {
17162
- let { className, isInvalid, errorMessage, leftText } = _ref, props = _objectWithoutProperties(_ref, _excluded$60);
17163
+ let { className, isInvalid, errorMessage, leftText } = _ref, props = _objectWithoutProperties(_ref, _excluded$62);
17163
17164
  const baseClassName = (0, classnames.default)("Layer__input", isInvalid ? "Layer__input--error" : "", leftText ? "Layer__input--with-left-text" : "", className);
17164
17165
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(DeprecatedTooltip, {
17165
17166
  disabled: !isInvalid || !errorMessage,
@@ -17191,14 +17192,14 @@ var InputGroup = ({ label, name, className, inline, children }) => {
17191
17192
  };
17192
17193
  //#endregion
17193
17194
  //#region src/icons/ChevronDownFill.tsx
17194
- var _excluded$59 = ["size"];
17195
+ var _excluded$61 = ["size"];
17195
17196
  var ChevronDownFill = (_ref) => {
17196
17197
  let { size = 18 } = _ref;
17197
17198
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", _objectSpread2(_objectSpread2({
17198
17199
  xmlns: "http://www.w3.org/2000/svg",
17199
17200
  viewBox: "0 0 18 18",
17200
17201
  fill: "none"
17201
- }, _objectWithoutProperties(_ref, _excluded$59)), {}, {
17202
+ }, _objectWithoutProperties(_ref, _excluded$61)), {}, {
17202
17203
  width: size,
17203
17204
  height: size,
17204
17205
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
@@ -17214,9 +17215,9 @@ var ChevronDownFill = (_ref) => {
17214
17215
  };
17215
17216
  //#endregion
17216
17217
  //#region src/components/Input/SelectMenuPortal.tsx
17217
- var _excluded$58 = ["children"];
17218
+ var _excluded$60 = ["children"];
17218
17219
  var SelectMenuPortal = (_ref) => {
17219
- let { children } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$58);
17220
+ let { children } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$60);
17220
17221
  const dataProperties = toDataProperties({ "react-aria-top-layer": true });
17221
17222
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_select.components.MenuPortal, _objectSpread2(_objectSpread2({}, restProps), {}, {
17222
17223
  innerProps: dataProperties,
@@ -17225,7 +17226,7 @@ var SelectMenuPortal = (_ref) => {
17225
17226
  };
17226
17227
  //#endregion
17227
17228
  //#region src/components/Input/Select.tsx
17228
- var Select$1 = ({ name, options, className, classNamePrefix = "Layer__select", value, onChange, disabled, placeholder, isInvalid, errorMessage, inputId, isLoading, formatOptionLabel }) => {
17229
+ var Select$2 = ({ name, options, className, classNamePrefix = "Layer__select", value, onChange, disabled, placeholder, isInvalid, errorMessage, inputId, isLoading, formatOptionLabel }) => {
17229
17230
  const { t } = (0, react_i18next.useTranslation)();
17230
17231
  const baseClassName = (0, classnames.default)("Layer__select", isInvalid ? "Layer__select--error" : "", className);
17231
17232
  const DropdownIndicator = (0, react.useCallback)((props) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_select.components.DropdownIndicator, _objectSpread2(_objectSpread2({}, props), {}, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ChevronDownFill, {}) })), []);
@@ -17260,10 +17261,10 @@ var Select$1 = ({ name, options, className, classNamePrefix = "Layer__select", v
17260
17261
  };
17261
17262
  //#endregion
17262
17263
  //#region src/components/Typography/ErrorText.tsx
17263
- var _excluded$57 = ["className"];
17264
+ var _excluded$59 = ["className"];
17264
17265
  var ErrorText = (_ref) => {
17265
17266
  let { className } = _ref;
17266
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Text, _objectSpread2(_objectSpread2({}, _objectWithoutProperties(_ref, _excluded$57)), {}, {
17267
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Text, _objectSpread2(_objectSpread2({}, _objectWithoutProperties(_ref, _excluded$59)), {}, {
17267
17268
  status: "error",
17268
17269
  className
17269
17270
  }));
@@ -17340,7 +17341,7 @@ var CustomAccountForm = ({ initialAccountName, onCancel, onSuccess }) => {
17340
17341
  name: "account_type",
17341
17342
  label: t("generalLedger:label.account_type", "Account type"),
17342
17343
  className: "Layer__custom-account-form__field",
17343
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Select$1, {
17344
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Select$2, {
17344
17345
  className: "Layer__custom-account-form__input",
17345
17346
  name: "account_type",
17346
17347
  placeholder: t("generalLedger:action.select_account_type", "Select account type..."),
@@ -17592,7 +17593,7 @@ function UploadTransactionsUploadCsvStep({ selectedAccount, onSelectAccount, sel
17592
17593
  }
17593
17594
  //#endregion
17594
17595
  //#region src/hooks/api/businesses/[business-id]/custom-accounts/[custom-account-id]/transactions/useCreateCustomAccountTransactions.ts
17595
- var _excluded$56 = ["customAccountId"];
17596
+ var _excluded$58 = ["customAccountId"];
17596
17597
  var createCustomAccountTransactions = post(({ businessId, customAccountId }) => `/v1/businesses/${businessId}/custom-accounts/${customAccountId}/transactions`);
17597
17598
  function buildKey$73({ access_token: accessToken, apiUrl, businessId }) {
17598
17599
  if (accessToken && apiUrl) return {
@@ -17607,7 +17608,7 @@ function useCreateCustomAccountTransactions() {
17607
17608
  const { data } = useAuth();
17608
17609
  const { businessId } = useLayerContext();
17609
17610
  return (0, swr_mutation.default)(() => withLocale(buildKey$73(_objectSpread2(_objectSpread2({}, data), {}, { businessId }))), ({ accessToken, apiUrl, businessId }, _ref) => {
17610
- let { arg: _ref2 } = _ref, { customAccountId } = _ref2, body = _objectWithoutProperties(_ref2, _excluded$56);
17611
+ let { arg: _ref2 } = _ref, { customAccountId } = _ref2, body = _objectWithoutProperties(_ref2, _excluded$58);
17611
17612
  return createCustomAccountTransactions(apiUrl, accessToken, {
17612
17613
  params: {
17613
17614
  businessId,
@@ -17621,16 +17622,47 @@ function useCreateCustomAccountTransactions() {
17621
17622
  });
17622
17623
  }
17623
17624
  //#endregion
17625
+ //#region src/schemas/accountingConfiguration.ts
17626
+ var ReportingBasis = /* @__PURE__ */ function(ReportingBasis) {
17627
+ ReportingBasis["Accrual"] = "ACCRUAL";
17628
+ ReportingBasis["Cash"] = "CASH";
17629
+ ReportingBasis["DeprecatedCash"] = "DEPRECATED_CASH";
17630
+ ReportingBasis["MoneyMovementOnly"] = "MONEY_MOVEMENT_ONLY";
17631
+ return ReportingBasis;
17632
+ }({});
17633
+ effect.Schema.Enums(ReportingBasis);
17634
+ var AccountingConfigurationCategoryListMode = /* @__PURE__ */ function(AccountingConfigurationCategoryListMode) {
17635
+ AccountingConfigurationCategoryListMode["AllAccounts"] = "ALL_ACCOUNTS";
17636
+ AccountingConfigurationCategoryListMode["RevenuesAndExpenses"] = "REVENUES_AND_EXPENSES";
17637
+ return AccountingConfigurationCategoryListMode;
17638
+ }({});
17639
+ effect.Schema.Enums(AccountingConfigurationCategoryListMode);
17640
+ var AccountingConfigurationSchema = effect.Schema.Struct({
17641
+ id: effect.Schema.UUID,
17642
+ enableAccountNumbers: (0, effect.pipe)(effect.Schema.propertySignature(effect.Schema.Boolean), effect.Schema.fromKey("enable_account_numbers")),
17643
+ enableCustomerManagement: (0, effect.pipe)(effect.Schema.propertySignature(effect.Schema.Boolean), effect.Schema.fromKey("enable_customer_management")),
17644
+ taxEstimatesUserAgreementAt: (0, effect.pipe)(effect.Schema.propertySignature(effect.Schema.NullishOr(effect.Schema.Date)), effect.Schema.fromKey("tax_estimates_user_agreement_at")),
17645
+ enableTaxEstimates: (0, effect.pipe)(effect.Schema.propertySignature(effect.Schema.Boolean), effect.Schema.fromKey("enable_tax_estimates")),
17646
+ enableMileageTracking: (0, effect.pipe)(effect.Schema.propertySignature(effect.Schema.Boolean), effect.Schema.fromKey("enable_mileage_tracking")),
17647
+ enableStripeOnboarding: (0, effect.pipe)(effect.Schema.propertySignature(effect.Schema.Boolean), effect.Schema.fromKey("enable_stripe_onboarding")),
17648
+ platformDisplayTags: (0, effect.pipe)(effect.Schema.propertySignature(effect.Schema.Array(TagDimensionSchema)), effect.Schema.fromKey("platform_display_tags"))
17649
+ });
17650
+ //#endregion
17624
17651
  //#region src/schemas/reports/reportConfig.ts
17625
17652
  var ReportControl = /* @__PURE__ */ function(ReportControl) {
17626
17653
  ReportControl["Date"] = "date";
17627
17654
  ReportControl["DateRange"] = "date_range";
17628
17655
  ReportControl["GroupBy"] = "group_by";
17656
+ ReportControl["ReportingBasis"] = "reporting_basis";
17629
17657
  ReportControl["Year"] = "year";
17630
17658
  ReportControl["Unknown"] = "unknown";
17631
17659
  return ReportControl;
17632
17660
  }({});
17633
17661
  var TransformedReportControlSchema = createTransformedEnumSchema(effect.Schema.Enums(ReportControl), ReportControl, ReportControl.Unknown);
17662
+ var TagControlSchema = effect.Schema.Struct({
17663
+ tagDimension: (0, effect.pipe)(effect.Schema.propertySignature(TagDimensionSchema), effect.Schema.fromKey("tag_dimension")),
17664
+ initialSelectedTags: (0, effect.pipe)(effect.Schema.propertySignature(effect.Schema.Array(TagValueDefinitionSchema)), effect.Schema.fromKey("initial_selected_tags"))
17665
+ });
17634
17666
  var ReportConfigSchema = effect.Schema.Struct({
17635
17667
  key: effect.Schema.String,
17636
17668
  reportRoute: (0, effect.pipe)(effect.Schema.propertySignature(effect.Schema.String), effect.Schema.fromKey("report_route")),
@@ -17640,7 +17672,8 @@ var ReportConfigSchema = effect.Schema.Struct({
17640
17672
  key: effect.Schema.String,
17641
17673
  value: effect.Schema.String
17642
17674
  })), effect.Schema.fromKey("base_query_parameters")),
17643
- isDefaultReport: effect.Schema.optional(effect.Schema.Boolean).pipe(effect.Schema.fromKey("is_default_report"))
17675
+ isDefaultReport: effect.Schema.optional(effect.Schema.Boolean).pipe(effect.Schema.fromKey("is_default_report")),
17676
+ tagControl: effect.Schema.optional(effect.Schema.NullOr(TagControlSchema)).pipe(effect.Schema.fromKey("tag_control"))
17644
17677
  });
17645
17678
  var ReportGroupSchema = effect.Schema.Struct({
17646
17679
  groupType: (0, effect.pipe)(effect.Schema.propertySignature(effect.Schema.String), effect.Schema.fromKey("group_type")),
@@ -17656,6 +17689,7 @@ var DateGroupBy = /* @__PURE__ */ function(DateGroupBy) {
17656
17689
  DateGroupBy["Year"] = "YEAR";
17657
17690
  return DateGroupBy;
17658
17691
  }({});
17692
+ var isUnifiedReportReportingBasis = (value) => value === ReportingBasis.Cash || value === ReportingBasis.Accrual;
17659
17693
  var Alignment = /* @__PURE__ */ function(Alignment) {
17660
17694
  Alignment["Left"] = "LEFT";
17661
17695
  Alignment["Right"] = "RIGHT";
@@ -17737,12 +17771,12 @@ var UnifiedReportSchema = effect.Schema.Struct({
17737
17771
  });
17738
17772
  //#endregion
17739
17773
  //#region src/components/ui/Table/Table.tsx
17740
- var _excluded$55 = [
17774
+ var _excluded$57 = [
17741
17775
  "children",
17742
17776
  "className",
17743
17777
  "nonAria",
17744
17778
  "slot"
17745
- ], _excluded2$5 = [
17779
+ ], _excluded2$6 = [
17746
17780
  "children",
17747
17781
  "className",
17748
17782
  "nonAria"
@@ -17793,7 +17827,7 @@ var toAlignmentDataValue = (alignment) => {
17793
17827
  };
17794
17828
  var getClassName = (component, additionalClassNames) => (0, classnames.default)(`${CSS_PREFIX$1}-${component}`, additionalClassNames);
17795
17829
  var Table$1 = (0, react.forwardRef)((_ref, ref) => {
17796
- let { children, className, nonAria, slot } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$55);
17830
+ let { children, className, nonAria, slot } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$57);
17797
17831
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(nonAria ? "table" : react_aria_components_Table.Table, _objectSpread2(_objectSpread2({
17798
17832
  className: getClassName(TableSubComponent.Table, className),
17799
17833
  slot: slot !== null && slot !== void 0 ? slot : void 0
@@ -17804,7 +17838,7 @@ var Table$1 = (0, react.forwardRef)((_ref, ref) => {
17804
17838
  });
17805
17839
  Table$1.displayName = TableSubComponent.Table;
17806
17840
  var TableHeaderInner = (_ref2, ref) => {
17807
- let { children, className, nonAria } = _ref2, restProps = _objectWithoutProperties(_ref2, _excluded2$5);
17841
+ let { children, className, nonAria } = _ref2, restProps = _objectWithoutProperties(_ref2, _excluded2$6);
17808
17842
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(nonAria ? "thead" : react_aria_components_Table.TableHeader, _objectSpread2(_objectSpread2({ className: getClassName(TableSubComponent.TableHeader, className) }, restProps), {}, {
17809
17843
  ref,
17810
17844
  children: withRenderProp(children, (node) => node)
@@ -19046,7 +19080,7 @@ var useGetBankTransactionMatchOrCategoryWithDefault = (bankTransaction) => {
19046
19080
  };
19047
19081
  //#endregion
19048
19082
  //#region src/hooks/api/businesses/[business-id]/bank-transactions/[bank-transaction-id]/categorize/useCategorizeBankTransaction.ts
19049
- var _excluded$54 = ["bankTransactionId"];
19083
+ var _excluded$56 = ["bankTransactionId"];
19050
19084
  var CATEGORIZE_BANK_TRANSACTION_TAG = "#categorize-bank-transaction";
19051
19085
  var categorizeBankTransaction = put(({ businessId, bankTransactionId }) => `/v1/businesses/${businessId}/bank-transactions/${bankTransactionId}/categorize`);
19052
19086
  function buildKey$72({ access_token: accessToken, apiUrl, businessId }) {
@@ -19070,7 +19104,7 @@ function useCategorizeBankTransaction() {
19070
19104
  apiUrl: auth === null || auth === void 0 ? void 0 : auth.apiUrl,
19071
19105
  businessId
19072
19106
  })), ({ accessToken, apiUrl, businessId }, _ref) => {
19073
- let { arg: _ref2 } = _ref, { bankTransactionId } = _ref2, rest = _objectWithoutProperties(_ref2, _excluded$54);
19107
+ let { arg: _ref2 } = _ref, { bankTransactionId } = _ref2, rest = _objectWithoutProperties(_ref2, _excluded$56);
19074
19108
  return categorizeBankTransaction(apiUrl, accessToken, {
19075
19109
  params: {
19076
19110
  businessId,
@@ -19140,7 +19174,7 @@ function useCategorizeBankTransactionWithCacheUpdate() {
19140
19174
  }
19141
19175
  //#endregion
19142
19176
  //#region src/hooks/api/businesses/[business-id]/bank-transactions/[bank-transaction-id]/match/useMatchBankTransaction.ts
19143
- var _excluded$53 = ["bankTransactionId"];
19177
+ var _excluded$55 = ["bankTransactionId"];
19144
19178
  var matchBankTransaction = put(({ businessId, bankTransactionId }) => `/v1/businesses/${businessId}/bank-transactions/${bankTransactionId}/match`);
19145
19179
  var MATCH_BANK_TRANSACTION_TAG = "#match-bank-transaction";
19146
19180
  function buildKey$71({ access_token: accessToken, apiUrl, businessId }) {
@@ -19164,7 +19198,7 @@ function useMatchBankTransaction() {
19164
19198
  apiUrl: auth === null || auth === void 0 ? void 0 : auth.apiUrl,
19165
19199
  businessId
19166
19200
  })), ({ accessToken, apiUrl, businessId }, _ref) => {
19167
- let { arg: _ref2 } = _ref, { bankTransactionId } = _ref2, body = _objectWithoutProperties(_ref2, _excluded$53);
19201
+ let { arg: _ref2 } = _ref, { bankTransactionId } = _ref2, body = _objectWithoutProperties(_ref2, _excluded$55);
19168
19202
  return matchBankTransaction(apiUrl, accessToken, {
19169
19203
  params: {
19170
19204
  businessId,
@@ -19300,14 +19334,14 @@ function useDelayedVisibility({ delay, initialVisibility = false }) {
19300
19334
  }
19301
19335
  //#endregion
19302
19336
  //#region src/icons/File.tsx
19303
- var _excluded$52 = ["size"];
19337
+ var _excluded$54 = ["size"];
19304
19338
  var File$1 = (_ref) => {
19305
19339
  let { size = 12 } = _ref;
19306
19340
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", _objectSpread2(_objectSpread2({
19307
19341
  xmlns: "http://www.w3.org/2000/svg",
19308
19342
  viewBox: "0 0 12 12",
19309
19343
  fill: "none"
19310
- }, _objectWithoutProperties(_ref, _excluded$52)), {}, {
19344
+ }, _objectWithoutProperties(_ref, _excluded$54)), {}, {
19311
19345
  width: size,
19312
19346
  height: size,
19313
19347
  children: [
@@ -19412,7 +19446,7 @@ var variants = {
19412
19446
  };
19413
19447
  //#endregion
19414
19448
  //#region src/components/ui/AnimatedPresenceElement/AnimatedPresenceElement.tsx
19415
- var _excluded$51 = [
19449
+ var _excluded$53 = [
19416
19450
  "as",
19417
19451
  "children",
19418
19452
  "variant",
@@ -19421,7 +19455,7 @@ var _excluded$51 = [
19421
19455
  "motionKey"
19422
19456
  ];
19423
19457
  function AnimatedPresenceElementInner(_ref, ref) {
19424
- let { as, children, variant, isOpen, slotProps = { AnimatePresence: { initial: false } }, motionKey } = _ref, props = _objectWithoutProperties(_ref, _excluded$51);
19458
+ let { as, children, variant, isOpen, slotProps = { AnimatePresence: { initial: false } }, motionKey } = _ref, props = _objectWithoutProperties(_ref, _excluded$53);
19425
19459
  const config = variants[variant];
19426
19460
  const MotionComponent = motion_react.motion[as !== null && as !== void 0 ? as : "div"];
19427
19461
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(motion_react.AnimatePresence, _objectSpread2(_objectSpread2({}, slotProps.AnimatePresence), {}, { children: isOpen && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(MotionComponent, _objectSpread2(_objectSpread2({
@@ -19580,14 +19614,14 @@ function useBookkeepingPeriods() {
19580
19614
  }
19581
19615
  //#endregion
19582
19616
  //#region src/icons/Clock.tsx
19583
- var _excluded$50 = ["size"];
19617
+ var _excluded$52 = ["size"];
19584
19618
  var Clock$1 = (_ref) => {
19585
19619
  let { size = 18 } = _ref;
19586
19620
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", _objectSpread2(_objectSpread2({
19587
19621
  xmlns: "http://www.w3.org/2000/svg",
19588
19622
  viewBox: "0 0 18 18",
19589
19623
  fill: "none"
19590
- }, _objectWithoutProperties(_ref, _excluded$50)), {}, {
19624
+ }, _objectWithoutProperties(_ref, _excluded$52)), {}, {
19591
19625
  width: size,
19592
19626
  height: size,
19593
19627
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
@@ -20142,14 +20176,14 @@ var useSplitsForm = ({ bankTransaction, isOpen }) => {
20142
20176
  };
20143
20177
  //#endregion
20144
20178
  //#region src/icons/ScissorsFullOpen.tsx
20145
- var _excluded$49 = ["size"];
20179
+ var _excluded$51 = ["size"];
20146
20180
  var ScissorsFullOpen = (_ref) => {
20147
20181
  let { size = 12 } = _ref;
20148
20182
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", _objectSpread2(_objectSpread2({
20149
20183
  viewBox: "0 0 12 12",
20150
20184
  fill: "none",
20151
20185
  xmlns: "http://www.w3.org/2000/svg"
20152
- }, _objectWithoutProperties(_ref, _excluded$49)), {}, {
20186
+ }, _objectWithoutProperties(_ref, _excluded$51)), {}, {
20153
20187
  width: size,
20154
20188
  height: size,
20155
20189
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("g", {
@@ -20196,14 +20230,14 @@ var ScissorsFullOpen = (_ref) => {
20196
20230
  };
20197
20231
  //#endregion
20198
20232
  //#region src/icons/Trash.tsx
20199
- var _excluded$48 = ["size"];
20233
+ var _excluded$50 = ["size"];
20200
20234
  var Trash$1 = (_ref) => {
20201
20235
  let { size = 18 } = _ref;
20202
20236
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", _objectSpread2(_objectSpread2({
20203
20237
  xmlns: "http://www.w3.org/2000/svg",
20204
20238
  viewBox: "0 0 18 18",
20205
20239
  fill: "none"
20206
- }, _objectWithoutProperties(_ref, _excluded$48)), {}, {
20240
+ }, _objectWithoutProperties(_ref, _excluded$50)), {}, {
20207
20241
  width: size,
20208
20242
  height: size,
20209
20243
  children: [
@@ -20634,7 +20668,7 @@ function useTagDimensionByKey({ isEnabled = true, dimensionKey }) {
20634
20668
  }
20635
20669
  //#endregion
20636
20670
  //#region src/components/Tags/TagDimensionsGroup/TagDimensionCombobox.tsx
20637
- var toOption = (dv, t) => {
20671
+ var toOption$1 = (dv, t) => {
20638
20672
  var _dv$displayName;
20639
20673
  const baseLabel = (_dv$displayName = dv.displayName) !== null && _dv$displayName !== void 0 ? _dv$displayName : dv.value;
20640
20674
  const label = dv.archivedAt ? t("tags:label.tag_label_archived", "{{label}} (Archived)", { label: baseLabel }) : baseLabel;
@@ -20650,10 +20684,10 @@ var TagDimensionCombobox = ({ dimensionKey, value, onValueChange, isReadOnly, sh
20650
20684
  var _tagDimension$display;
20651
20685
  const { t } = (0, react_i18next.useTranslation)();
20652
20686
  const { data: tagDimension, isLoading } = useTagDimensionByKey({ dimensionKey });
20653
- const options = (0, react.useMemo)(() => tagDimension ? tagDimension.definedValues.map((dv) => toOption(dv, t)) : [], [tagDimension, t]);
20687
+ const options = (0, react.useMemo)(() => tagDimension ? tagDimension.definedValues.map((dv) => toOption$1(dv, t)) : [], [tagDimension, t]);
20654
20688
  const selectedOption = (0, react.useMemo)(() => {
20655
20689
  if (value === null) return null;
20656
- return toOption({
20690
+ return toOption$1({
20657
20691
  id: value.id,
20658
20692
  key: value.key,
20659
20693
  value: value.value,
@@ -20969,9 +21003,9 @@ var ReceiptsProvider = ({ children, bankTransaction, isActive }) => {
20969
21003
  };
20970
21004
  //#endregion
20971
21005
  //#region src/icons/Eye.tsx
20972
- var _excluded$47 = ["size"];
21006
+ var _excluded$49 = ["size"];
20973
21007
  var Eye = (_ref) => {
20974
- let { size = 18 } = _ref, props = _objectWithoutProperties(_ref, _excluded$47);
21008
+ let { size = 18 } = _ref, props = _objectWithoutProperties(_ref, _excluded$49);
20975
21009
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", _objectSpread2(_objectSpread2({
20976
21010
  xmlns: "http://www.w3.org/2000/svg",
20977
21011
  width: size,
@@ -21068,9 +21102,9 @@ var FileThumb = ({ url, floatingActions = false, uploadPending, deletePending, n
21068
21102
  };
21069
21103
  //#endregion
21070
21104
  //#region src/components/Button/TextButton.tsx
21071
- var _excluded$46 = ["className", "children"];
21105
+ var _excluded$48 = ["className", "children"];
21072
21106
  var TextButton = (_ref) => {
21073
- let { className, children } = _ref, props = _objectWithoutProperties(_ref, _excluded$46);
21107
+ let { className, children } = _ref, props = _objectWithoutProperties(_ref, _excluded$48);
21074
21108
  const baseClassName = (0, classnames.default)("Layer__text-btn", className);
21075
21109
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", _objectSpread2(_objectSpread2({}, props), {}, {
21076
21110
  className: baseClassName,
@@ -21120,7 +21154,7 @@ var FileInput = ({ text, onUpload, disabled = false, secondary, iconOnly = false
21120
21154
  };
21121
21155
  //#endregion
21122
21156
  //#region src/components/BankTransactionReceipts/BankTransactionReceipts.tsx
21123
- var _excluded$45 = ["bankTransaction", "isActive"];
21157
+ var _excluded$47 = ["bankTransaction", "isActive"];
21124
21158
  var MAX_RECEIPTS_COUNT = 10;
21125
21159
  var openReceiptInNewTab = (url, receiptTitle) => (e) => {
21126
21160
  e.preventDefault();
@@ -21141,7 +21175,7 @@ var BankTransactionReceiptsWithProvider = (0, react.forwardRef)((_ref, ref) => {
21141
21175
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ReceiptsProvider, {
21142
21176
  bankTransaction,
21143
21177
  isActive,
21144
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(BankTransactionReceipts, _objectSpread2(_objectSpread2({}, _objectWithoutProperties(_ref, _excluded$45)), {}, { ref }))
21178
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(BankTransactionReceipts, _objectSpread2(_objectSpread2({}, _objectWithoutProperties(_ref, _excluded$47)), {}, { ref }))
21145
21179
  });
21146
21180
  });
21147
21181
  BankTransactionReceiptsWithProvider.displayName = "BankTransactionReceiptsWithProvider";
@@ -21224,14 +21258,14 @@ var getCurrencyFormatConfig = (intl) => {
21224
21258
  };
21225
21259
  //#endregion
21226
21260
  //#region src/components/Input/AmountInput.tsx
21227
- var _excluded$44 = [
21261
+ var _excluded$46 = [
21228
21262
  "onChange",
21229
21263
  "className",
21230
21264
  "errorMessage",
21231
21265
  "isInvalid"
21232
21266
  ];
21233
21267
  var AmountInput = (_ref) => {
21234
- let { onChange, className, errorMessage, isInvalid } = _ref, props = _objectWithoutProperties(_ref, _excluded$44);
21268
+ let { onChange, className, errorMessage, isInvalid } = _ref, props = _objectWithoutProperties(_ref, _excluded$46);
21235
21269
  const intl = (0, react_intl.useIntl)();
21236
21270
  const formatter = useIntlFormatter();
21237
21271
  const currencyFormatConfig = (0, react.useMemo)(() => getCurrencyFormatConfig(intl), [intl]);
@@ -21891,14 +21925,14 @@ var BankTransactionsMobileListItemCheckbox = ({ bulkActionsEnabled, bankTransact
21891
21925
  };
21892
21926
  //#endregion
21893
21927
  //#region src/icons/Paperclip.tsx
21894
- var _excluded$43 = ["size"];
21928
+ var _excluded$45 = ["size"];
21895
21929
  var Paperclip = (_ref) => {
21896
21930
  let { size = 20 } = _ref;
21897
21931
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", _objectSpread2(_objectSpread2({
21898
21932
  xmlns: "http://www.w3.org/2000/svg",
21899
21933
  viewBox: "0 0 20 20",
21900
21934
  fill: "none"
21901
- }, _objectWithoutProperties(_ref, _excluded$43)), {}, {
21935
+ }, _objectWithoutProperties(_ref, _excluded$45)), {}, {
21902
21936
  width: size,
21903
21937
  height: size,
21904
21938
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
@@ -23087,14 +23121,14 @@ var BankTransactionRow = ({ index, bankTransaction, initialLoad, showDescription
23087
23121
  };
23088
23122
  //#endregion
23089
23123
  //#region src/icons/Inbox.tsx
23090
- var _excluded$42 = ["size"];
23124
+ var _excluded$44 = ["size"];
23091
23125
  var Inbox = (_ref) => {
23092
23126
  let { size = 18 } = _ref;
23093
23127
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", _objectSpread2(_objectSpread2({
23094
23128
  xmlns: "http://www.w3.org/2000/svg",
23095
23129
  viewBox: "0 0 18 18",
23096
23130
  fill: "none"
23097
- }, _objectWithoutProperties(_ref, _excluded$42)), {}, {
23131
+ }, _objectWithoutProperties(_ref, _excluded$44)), {}, {
23098
23132
  width: size,
23099
23133
  height: size,
23100
23134
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
@@ -23405,14 +23439,14 @@ function useArchiveCategorizationRule() {
23405
23439
  }
23406
23440
  //#endregion
23407
23441
  //#region src/icons/BackArrow.tsx
23408
- var _excluded$41 = ["size"];
23442
+ var _excluded$43 = ["size"];
23409
23443
  var BackArrow = (_ref) => {
23410
23444
  let { size = 18 } = _ref;
23411
23445
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", _objectSpread2(_objectSpread2({
23412
23446
  viewBox: "0 0 12 12",
23413
23447
  fill: "none",
23414
23448
  xmlns: "http://www.w3.org/2000/svg"
23415
- }, _objectWithoutProperties(_ref, _excluded$41)), {}, {
23449
+ }, _objectWithoutProperties(_ref, _excluded$43)), {}, {
23416
23450
  width: size,
23417
23451
  height: size,
23418
23452
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
@@ -23516,9 +23550,9 @@ var usePaginationRange = ({ totalCount, pageSize, siblingCount = 1, currentPage
23516
23550
  };
23517
23551
  //#endregion
23518
23552
  //#region src/components/Pagination/Pagination.tsx
23519
- var _excluded$40 = ["children", "isSelected"];
23553
+ var _excluded$42 = ["children", "isSelected"];
23520
23554
  var PaginationButton = (_ref) => {
23521
- let { children, isSelected } = _ref, buttonProps = _objectWithoutProperties(_ref, _excluded$40);
23555
+ let { children, isSelected } = _ref, buttonProps = _objectWithoutProperties(_ref, _excluded$42);
23522
23556
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Button$1, _objectSpread2(_objectSpread2({
23523
23557
  inset: true,
23524
23558
  icon: true,
@@ -23587,11 +23621,11 @@ var Pagination = ({ onPageChange, totalCount, siblingCount = 1, currentPage, pag
23587
23621
  };
23588
23622
  //#endregion
23589
23623
  //#region src/components/ui/MobileList/PaginatedMobileList.tsx
23590
- var _excluded$39 = ["data", "paginationProps"];
23624
+ var _excluded$41 = ["data", "paginationProps"];
23591
23625
  var EMPTY_ARRAY$4 = [];
23592
23626
  var PaginatedMobileList = (props) => {
23593
23627
  var _data$length;
23594
- const { data, paginationProps } = props, listProps = _objectWithoutProperties(props, _excluded$39);
23628
+ const { data, paginationProps } = props, listProps = _objectWithoutProperties(props, _excluded$41);
23595
23629
  const { initialPage = 0, onSetPage, pageSize = 20, hasMore, fetchMore, autoResetPageIndexRef } = paginationProps;
23596
23630
  const { pageItems, pageIndex, setPage } = usePaginatedList({
23597
23631
  data: data !== null && data !== void 0 ? data : EMPTY_ARRAY$4,
@@ -24665,7 +24699,7 @@ var SuggestedCategorizationRuleUpdatesDialog = ({ isOpen, onOpenChange, ruleSugg
24665
24699
  };
24666
24700
  //#endregion
24667
24701
  //#region src/components/BankTransactions/BankTransactions.tsx
24668
- var _excluded$38 = [
24702
+ var _excluded$40 = [
24669
24703
  "onError",
24670
24704
  "showTags",
24671
24705
  "showCustomerVendor",
@@ -24677,7 +24711,7 @@ var _excluded$38 = [
24677
24711
  ];
24678
24712
  var COMPONENT_NAME$12 = "bank-transactions";
24679
24713
  var BankTransactions = (_ref) => {
24680
- let { onError, showTags = false, showCustomerVendor = false, monthlyView = false, applyGlobalDateRange = false, mode, renderInAppLink, filters } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$38);
24714
+ let { onError, showTags = false, showCustomerVendor = false, monthlyView = false, applyGlobalDateRange = false, mode, renderInAppLink, filters } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$40);
24681
24715
  usePreloadTagDimensions({ isEnabled: showTags });
24682
24716
  usePreloadCustomers({ isEnabled: showCustomerVendor });
24683
24717
  usePreloadVendors({ isEnabled: showCustomerVendor });
@@ -24993,9 +25027,9 @@ function QuickbooksContextProvider({ children }) {
24993
25027
  }
24994
25028
  //#endregion
24995
25029
  //#region src/icons/Cog.tsx
24996
- var _excluded$37 = ["size"];
25030
+ var _excluded$39 = ["size"];
24997
25031
  var Cog = (_ref) => {
24998
- let { size = 12 } = _ref, props = _objectWithoutProperties(_ref, _excluded$37);
25032
+ let { size = 12 } = _ref, props = _objectWithoutProperties(_ref, _excluded$39);
24999
25033
  const id = (0, react.useId)();
25000
25034
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", _objectSpread2(_objectSpread2({
25001
25035
  xmlns: "http://www.w3.org/2000/svg",
@@ -25027,9 +25061,9 @@ var Cog = (_ref) => {
25027
25061
  };
25028
25062
  //#endregion
25029
25063
  //#region src/icons/QuickbooksIcon.tsx
25030
- var _excluded$36 = ["size"];
25064
+ var _excluded$38 = ["size"];
25031
25065
  var QuickbooksIcon = (_ref) => {
25032
- let { size = 24 } = _ref, props = _objectWithoutProperties(_ref, _excluded$36);
25066
+ let { size = 24 } = _ref, props = _objectWithoutProperties(_ref, _excluded$38);
25033
25067
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", _objectSpread2(_objectSpread2({
25034
25068
  xmlns: "http://www.w3.org/2000/svg",
25035
25069
  viewBox: "0 0 24 24",
@@ -25229,14 +25263,14 @@ function IntegrationsQuickbooksUnlinkConfirmationModal({ isOpen, onOpenChange })
25229
25263
  }
25230
25264
  //#endregion
25231
25265
  //#region src/icons/MoreVertical.tsx
25232
- var _excluded$35 = ["size"];
25266
+ var _excluded$37 = ["size"];
25233
25267
  var MoreVertical = (_ref) => {
25234
25268
  let { size = 18 } = _ref;
25235
25269
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", _objectSpread2(_objectSpread2({
25236
25270
  viewBox: "0 0 16 14",
25237
25271
  fill: "none",
25238
25272
  xmlns: "http://www.w3.org/2000/svg"
25239
- }, _objectWithoutProperties(_ref, _excluded$35)), {}, {
25273
+ }, _objectWithoutProperties(_ref, _excluded$37)), {}, {
25240
25274
  width: size,
25241
25275
  height: size,
25242
25276
  children: [
@@ -25441,14 +25475,14 @@ var IntegrationsComponent = ({ stringOverrides }) => {
25441
25475
  };
25442
25476
  //#endregion
25443
25477
  //#region src/icons/PlusIcon.tsx
25444
- var _excluded$34 = ["size"];
25478
+ var _excluded$36 = ["size"];
25445
25479
  var PlusIcon = (_ref) => {
25446
25480
  let { size = 14 } = _ref;
25447
25481
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", _objectSpread2(_objectSpread2({
25448
25482
  xmlns: "http://www.w3.org/2000/svg",
25449
25483
  viewBox: "0 0 16 16",
25450
25484
  fill: "none"
25451
- }, _objectWithoutProperties(_ref, _excluded$34)), {}, {
25485
+ }, _objectWithoutProperties(_ref, _excluded$36)), {}, {
25452
25486
  width: size,
25453
25487
  height: size,
25454
25488
  children: [
@@ -25526,14 +25560,14 @@ function useConfirmAndExcludeMultiple({ onSuccess }) {
25526
25560
  }
25527
25561
  //#endregion
25528
25562
  //#region src/icons/InstitutionIcon.tsx
25529
- var _excluded$33 = ["size"];
25563
+ var _excluded$35 = ["size"];
25530
25564
  var InstitutionIcon = (_ref) => {
25531
25565
  let { size = 18 } = _ref;
25532
25566
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", _objectSpread2(_objectSpread2({
25533
25567
  viewBox: "0 0 27 28",
25534
25568
  fill: "none",
25535
25569
  xmlns: "http://www.w3.org/2000/svg"
25536
- }, _objectWithoutProperties(_ref, _excluded$33)), {}, {
25570
+ }, _objectWithoutProperties(_ref, _excluded$35)), {}, {
25537
25571
  width: size,
25538
25572
  height: size,
25539
25573
  children: [
@@ -26058,10 +26092,10 @@ var MenuItem = (0, react.forwardRef)(function MenuItem({ children, textValue, on
26058
26092
  });
26059
26093
  //#endregion
26060
26094
  //#region src/components/ui/Pill/Pill.tsx
26061
- var _excluded$32 = ["children", "status"];
26095
+ var _excluded$34 = ["children", "status"];
26062
26096
  var PILL_CLASS_NAME = "Layer__Pill";
26063
26097
  var Pill = (0, react.forwardRef)(function Pill(_ref, ref) {
26064
- let { children, status } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$32);
26098
+ let { children, status } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$34);
26065
26099
  const dataProperties = toDataProperties({ status });
26066
26100
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components_Button.Button, _objectSpread2(_objectSpread2(_objectSpread2({}, restProps), dataProperties), {}, {
26067
26101
  className: PILL_CLASS_NAME,
@@ -27259,16 +27293,16 @@ var useProfitAndLossLTM = ({ tagFilter, reportingBasis, chartWindow }) => {
27259
27293
  };
27260
27294
  //#endregion
27261
27295
  //#region src/components/Chart/ChartYAxis.tsx
27262
- var _excluded$31 = [
27296
+ var _excluded$33 = [
27263
27297
  "verticalAnchor",
27264
27298
  "visibleTicksCount",
27265
27299
  "tickFormatter",
27266
27300
  "format",
27267
27301
  "payload"
27268
- ], _excluded2$4 = ["format"];
27302
+ ], _excluded2$5 = ["format"];
27269
27303
  var CustomizedYTick = (_ref) => {
27270
27304
  let { verticalAnchor: _verticalAnchor, visibleTicksCount: _visibleTicksCount, tickFormatter: _tickFormatter, format, payload } = _ref;
27271
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("text", _objectSpread2(_objectSpread2({}, _objectWithoutProperties(_ref, _excluded$31)), {}, {
27305
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("text", _objectSpread2(_objectSpread2({}, _objectWithoutProperties(_ref, _excluded$33)), {}, {
27272
27306
  className: "Layer__ChartYAxis__tick",
27273
27307
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("tspan", {
27274
27308
  dy: "0.355em",
@@ -27277,7 +27311,7 @@ var CustomizedYTick = (_ref) => {
27277
27311
  }));
27278
27312
  };
27279
27313
  var ChartYAxis = (_ref2) => {
27280
- let { format } = _ref2, props = _objectWithoutProperties(_ref2, _excluded2$4);
27314
+ let { format } = _ref2, props = _objectWithoutProperties(_ref2, _excluded2$5);
27281
27315
  const { formatNumber } = useIntlFormatter();
27282
27316
  const formatYAxisValue = (0, react.useCallback)((value) => {
27283
27317
  if (!value) return value;
@@ -27455,7 +27489,7 @@ var ProfitAndLossChartSelectionIndicator = ({ viewBox, selected }) => {
27455
27489
  };
27456
27490
  //#endregion
27457
27491
  //#region src/components/ProfitAndLossChart/ProfitAndLossChartBar.tsx
27458
- var _excluded$30 = ["payload", "fill"];
27492
+ var _excluded$32 = ["payload", "fill"];
27459
27493
  var BAR_RADIUS$1 = [
27460
27494
  2,
27461
27495
  2,
@@ -27475,7 +27509,7 @@ var ProfitAndLossChartBar = ({ dataKey, xAxisId, cellFill, className, barSize, s
27475
27509
  isAnimationActive: barAnimation,
27476
27510
  fill: cellFill,
27477
27511
  shape: (0, react.useCallback)((props) => {
27478
- const { payload, fill } = props, restProps = _objectWithoutProperties(props, _excluded$30);
27512
+ const { payload, fill } = props, restProps = _objectWithoutProperties(props, _excluded$32);
27479
27513
  const shouldRound = payload && isOutermostBar(payload, dataKey, xAxisId);
27480
27514
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(recharts.Rectangle, _objectSpread2(_objectSpread2({}, restProps), {}, {
27481
27515
  fill,
@@ -27541,14 +27575,14 @@ var ProfitAndLossChartLegend = () => {
27541
27575
  };
27542
27576
  //#endregion
27543
27577
  //#region src/icons/BarChart2.tsx
27544
- var _excluded$29 = ["size"];
27578
+ var _excluded$31 = ["size"];
27545
27579
  var BarChart2 = (_ref) => {
27546
27580
  let { size = 12 } = _ref;
27547
27581
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", _objectSpread2(_objectSpread2({
27548
27582
  xmlns: "http://www.w3.org/2000/svg",
27549
27583
  viewBox: "0 0 12 12",
27550
27584
  fill: "none"
27551
- }, _objectWithoutProperties(_ref, _excluded$29)), {}, {
27585
+ }, _objectWithoutProperties(_ref, _excluded$31)), {}, {
27552
27586
  width: size,
27553
27587
  height: size,
27554
27588
  children: [
@@ -27594,7 +27628,7 @@ var ProfitAndLossChartStateCard = () => {
27594
27628
  };
27595
27629
  //#endregion
27596
27630
  //#region src/components/Chart/ChartTooltip.tsx
27597
- var _excluded$28 = [
27631
+ var _excluded$30 = [
27598
27632
  "content",
27599
27633
  "cursorWidth",
27600
27634
  "animationDuration",
@@ -27630,7 +27664,7 @@ var ChartTooltipCursor = ({ width, points, height }) => {
27630
27664
  });
27631
27665
  };
27632
27666
  var ChartTooltip = (_ref) => {
27633
- let { content, cursorWidth, animationDuration = 100, animationEasing = "ease-out" } = _ref, props = _objectWithoutProperties(_ref, _excluded$28);
27667
+ let { content, cursorWidth, animationDuration = 100, animationEasing = "ease-out" } = _ref, props = _objectWithoutProperties(_ref, _excluded$30);
27634
27668
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(recharts.Tooltip, _objectSpread2({
27635
27669
  wrapperClassName: "Layer__ChartTooltip__wrapper",
27636
27670
  content,
@@ -28071,7 +28105,7 @@ var DetailedChart = ({ data, isLoading, interactionProps, stylingProps, slots })
28071
28105
  };
28072
28106
  //#endregion
28073
28107
  //#region src/icons/SortArrows.tsx
28074
- var _excluded$27 = ["size"];
28108
+ var _excluded$29 = ["size"];
28075
28109
  var ClassNames = {
28076
28110
  DESC_ARROW: "Layer__SortArrows__DescArrow",
28077
28111
  ASC_ARROW: "Layer__SortArrows__AscArrow"
@@ -28082,7 +28116,7 @@ var SortArrows = (_ref) => {
28082
28116
  xmlns: "http://www.w3.org/2000/svg",
28083
28117
  viewBox: "0 0 12 13",
28084
28118
  fill: "none"
28085
- }, _objectWithoutProperties(_ref, _excluded$27)), {}, {
28119
+ }, _objectWithoutProperties(_ref, _excluded$29)), {}, {
28086
28120
  width: size,
28087
28121
  height: size,
28088
28122
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("g", {
@@ -28227,7 +28261,7 @@ var RegularValueIcon = ({ colorMapping }) => {
28227
28261
  };
28228
28262
  //#endregion
28229
28263
  //#region src/components/DetailedTable/DetailedTable.tsx
28230
- var _excluded$26 = ["data"];
28264
+ var _excluded$28 = ["data"];
28231
28265
  var DetailedTable = ({ stylingProps, sortParams, sortFunction, interactionProps, rows, stringOverrides, showTypeColumn = true }) => {
28232
28266
  const { t } = (0, react_i18next.useTranslation)();
28233
28267
  const setAndToggleSortDirection = (params) => {
@@ -28358,7 +28392,7 @@ var DetailedTable = ({ stylingProps, sortParams, sortFunction, interactionProps,
28358
28392
  });
28359
28393
  };
28360
28394
  var DetailedTableWithData = (_ref) => {
28361
- let { data } = _ref, props = _objectWithoutProperties(_ref, _excluded$26);
28395
+ let { data } = _ref, props = _objectWithoutProperties(_ref, _excluded$28);
28362
28396
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(DetailedTable, _objectSpread2({ rows: useDetailedTableRows({ data }) }, props));
28363
28397
  };
28364
28398
  //#endregion
@@ -28532,9 +28566,9 @@ var LedgerAccountsContext = (0, react.createContext)({
28532
28566
  });
28533
28567
  //#endregion
28534
28568
  //#region src/components/Button/BackButton.tsx
28535
- var _excluded$25 = ["className", "textOnly"];
28569
+ var _excluded$27 = ["className", "textOnly"];
28536
28570
  var BackButton = (_ref) => {
28537
- let { className, textOnly = false } = _ref, props = _objectWithoutProperties(_ref, _excluded$25);
28571
+ let { className, textOnly = false } = _ref, props = _objectWithoutProperties(_ref, _excluded$27);
28538
28572
  const baseClassName = (0, classnames.default)("Layer__btn", "Layer__back-btn", className);
28539
28573
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", _objectSpread2(_objectSpread2({}, props), {}, {
28540
28574
  className: baseClassName,
@@ -28543,9 +28577,9 @@ var BackButton = (_ref) => {
28543
28577
  };
28544
28578
  //#endregion
28545
28579
  //#region src/components/Button/CloseButton.tsx
28546
- var _excluded$24 = ["className", "textOnly"];
28580
+ var _excluded$26 = ["className", "textOnly"];
28547
28581
  var CloseButton$1 = (_ref) => {
28548
- let { className, textOnly = false } = _ref, props = _objectWithoutProperties(_ref, _excluded$24);
28582
+ let { className, textOnly = false } = _ref, props = _objectWithoutProperties(_ref, _excluded$26);
28549
28583
  const baseClassName = (0, classnames.default)("Layer__btn", "Layer__back-btn", className);
28550
28584
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", _objectSpread2(_objectSpread2({}, props), {}, {
28551
28585
  className: baseClassName,
@@ -31190,7 +31224,7 @@ function TransactionsToReview({ onClick, tagFilter = void 0, variants }) {
31190
31224
  }
31191
31225
  //#endregion
31192
31226
  //#region src/components/ProfitAndLossSummaries/ProfitAndLossSummaries.tsx
31193
- var _excluded$23 = ["onTransactionsToReviewClick"];
31227
+ var _excluded$25 = ["onTransactionsToReviewClick"];
31194
31228
  var SECTION_CLASS_NAMES = `Layer__ProfitAndLossSummaries Layer__component`;
31195
31229
  function Internal_ProfitAndLossSummaries({ actionable = false, revenueLabel, stringOverrides, chartColorsList, slots, variants }) {
31196
31230
  var _effectiveData$income3, _effectiveData$income4, _effectiveData$income5, _data$netProfit;
@@ -31297,7 +31331,7 @@ function Internal_ProfitAndLossSummaries({ actionable = false, revenueLabel, str
31297
31331
  });
31298
31332
  }
31299
31333
  function ProfitAndLossSummaries(_ref) {
31300
- let { onTransactionsToReviewClick } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$23);
31334
+ let { onTransactionsToReviewClick } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$25);
31301
31335
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Internal_ProfitAndLossSummaries, _objectSpread2(_objectSpread2({}, restProps), {}, { slots: { unstable_AdditionalListItems: onTransactionsToReviewClick ? [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(TransactionsToReview, {
31302
31336
  variants: restProps.variants,
31303
31337
  onClick: onTransactionsToReviewClick
@@ -32705,7 +32739,7 @@ var ChartOfAccountsForm = ({ stringOverrides }) => {
32705
32739
  name: "parent",
32706
32740
  label: (stringOverrides === null || stringOverrides === void 0 ? void 0 : stringOverrides.parentLabel) || t("chartOfAccounts:label.parent", "Parent"),
32707
32741
  inline: true,
32708
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Select$1, {
32742
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Select$2, {
32709
32743
  options: parentOptions,
32710
32744
  value: form === null || form === void 0 ? void 0 : form.data.parent,
32711
32745
  onChange: (sel) => changeFormData("parent", sel),
@@ -32746,7 +32780,7 @@ var ChartOfAccountsForm = ({ stringOverrides }) => {
32746
32780
  name: "type",
32747
32781
  label: (stringOverrides === null || stringOverrides === void 0 ? void 0 : stringOverrides.typeLabel) || t("common:label.type", "Type"),
32748
32782
  inline: true,
32749
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Select$1, {
32783
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Select$2, {
32750
32784
  options: ledgerAccountTypesOptions,
32751
32785
  value: form === null || form === void 0 ? void 0 : form.data.type,
32752
32786
  onChange: (sel) => changeFormData("type", sel),
@@ -32759,7 +32793,7 @@ var ChartOfAccountsForm = ({ stringOverrides }) => {
32759
32793
  name: "subType",
32760
32794
  label: (stringOverrides === null || stringOverrides === void 0 ? void 0 : stringOverrides.subTypeLabel) || t("chartOfAccounts:label.sub_type", "Sub-Type"),
32761
32795
  inline: true,
32762
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Select$1, {
32796
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Select$2, {
32763
32797
  options: (form === null || form === void 0 || (_form$data$type = form.data.type) === null || _form$data$type === void 0 ? void 0 : _form$data$type.value) !== void 0 ? ledgerAccountSubtypesForType[form === null || form === void 0 || (_form$data$type2 = form.data.type) === null || _form$data$type2 === void 0 ? void 0 : _form$data$type2.value] : Object.values(ledgerAccountSubtypesForType).flat(),
32764
32798
  value: form === null || form === void 0 ? void 0 : form.data.subType,
32765
32799
  isInvalid: Boolean(form === null || form === void 0 || (_form$errors9 = form.errors) === null || _form$errors9 === void 0 ? void 0 : _form$errors9.find((x) => x.field === "subType")),
@@ -32772,7 +32806,7 @@ var ChartOfAccountsForm = ({ stringOverrides }) => {
32772
32806
  name: "normality",
32773
32807
  label: (stringOverrides === null || stringOverrides === void 0 ? void 0 : stringOverrides.normalityLabel) || t("common:label.normality", "Normality"),
32774
32808
  inline: true,
32775
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Select$1, {
32809
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Select$2, {
32776
32810
  options: normalityOptions,
32777
32811
  value: form === null || form === void 0 ? void 0 : form.data.normality,
32778
32812
  isInvalid: Boolean(form === null || form === void 0 || (_form$errors11 = form.errors) === null || _form$errors11 === void 0 ? void 0 : _form$errors11.find((x) => x.field === "normality")),
@@ -32822,14 +32856,14 @@ var LedgerAccountNodeType = /* @__PURE__ */ function(LedgerAccountNodeType) {
32822
32856
  }({});
32823
32857
  //#endregion
32824
32858
  //#region src/icons/Edit2.tsx
32825
- var _excluded$22 = ["size"];
32859
+ var _excluded$24 = ["size"];
32826
32860
  var Edit2 = (_ref) => {
32827
32861
  let { size = 18 } = _ref;
32828
32862
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", _objectSpread2(_objectSpread2({
32829
32863
  xmlns: "http://www.w3.org/2000/svg",
32830
32864
  viewBox: "0 0 18 18",
32831
32865
  fill: "none"
32832
- }, _objectWithoutProperties(_ref, _excluded$22)), {}, {
32866
+ }, _objectWithoutProperties(_ref, _excluded$24)), {}, {
32833
32867
  width: size,
32834
32868
  height: size,
32835
32869
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
@@ -33258,14 +33292,14 @@ var ChartOfAccountsTable = ({ stringOverrides, searchQuery, templateAccountsEdit
33258
33292
  };
33259
33293
  //#endregion
33260
33294
  //#region src/icons/Plus.tsx
33261
- var _excluded$21 = ["size"];
33295
+ var _excluded$23 = ["size"];
33262
33296
  var Plus$8 = (_ref) => {
33263
33297
  let { size = 14 } = _ref;
33264
33298
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", _objectSpread2(_objectSpread2({
33265
33299
  xmlns: "http://www.w3.org/2000/svg",
33266
33300
  viewBox: "0 0 14 14",
33267
33301
  fill: "none"
33268
- }, _objectWithoutProperties(_ref, _excluded$21)), {}, {
33302
+ }, _objectWithoutProperties(_ref, _excluded$23)), {}, {
33269
33303
  width: size,
33270
33304
  height: size,
33271
33305
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
@@ -35658,14 +35692,14 @@ var TasksHeader = ({ tasksHeader }) => {
35658
35692
  };
35659
35693
  //#endregion
35660
35694
  //#region src/icons/SmileIcon.tsx
35661
- var _excluded$20 = ["size"];
35695
+ var _excluded$22 = ["size"];
35662
35696
  var SmileIcon = (_ref) => {
35663
35697
  let { size = 12 } = _ref;
35664
35698
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", _objectSpread2(_objectSpread2({
35665
35699
  viewBox: "0 0 12 12",
35666
35700
  fill: "none",
35667
35701
  xmlns: "http://www.w3.org/2000/svg"
35668
- }, _objectWithoutProperties(_ref, _excluded$20)), {}, {
35702
+ }, _objectWithoutProperties(_ref, _excluded$22)), {}, {
35669
35703
  width: size,
35670
35704
  height: size,
35671
35705
  children: [
@@ -35864,13 +35898,13 @@ function useSubmitUserResponseForTask() {
35864
35898
  }
35865
35899
  //#endregion
35866
35900
  //#region src/components/Textarea/Textarea.tsx
35867
- var _excluded$19 = [
35901
+ var _excluded$21 = [
35868
35902
  "className",
35869
35903
  "isInvalid",
35870
35904
  "errorMessage"
35871
35905
  ];
35872
35906
  var Textarea = (_ref) => {
35873
- let { className, isInvalid, errorMessage } = _ref, props = _objectWithoutProperties(_ref, _excluded$19);
35907
+ let { className, isInvalid, errorMessage } = _ref, props = _objectWithoutProperties(_ref, _excluded$21);
35874
35908
  const baseClassName = (0, classnames.default)("Layer__textarea", isInvalid ? "Layer__textarea--error" : "", className);
35875
35909
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(DeprecatedTooltip, {
35876
35910
  disabled: !isInvalid || !errorMessage,
@@ -36383,14 +36417,14 @@ var useBookkeepingYearsStatus = () => {
36383
36417
  };
36384
36418
  //#endregion
36385
36419
  //#region src/icons/ArrowRightCircle.tsx
36386
- var _excluded$18 = ["size"];
36420
+ var _excluded$20 = ["size"];
36387
36421
  var ArrowRightCircle = (_ref) => {
36388
36422
  let { size = 18 } = _ref;
36389
36423
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", _objectSpread2(_objectSpread2({
36390
36424
  xmlns: "http://www.w3.org/2000/svg",
36391
36425
  viewBox: "0 0 18 18",
36392
36426
  fill: "none"
36393
- }, _objectWithoutProperties(_ref, _excluded$18)), {}, {
36427
+ }, _objectWithoutProperties(_ref, _excluded$20)), {}, {
36394
36428
  width: size,
36395
36429
  height: size,
36396
36430
  children: [
@@ -37606,14 +37640,14 @@ function LinkAccountsContent({ onComplete }) {
37606
37640
  }
37607
37641
  //#endregion
37608
37642
  //#region src/icons/Coffee.tsx
37609
- var _excluded$17 = ["size"];
37643
+ var _excluded$19 = ["size"];
37610
37644
  var CoffeeIcon = (_ref) => {
37611
37645
  let { size = 11 } = _ref;
37612
37646
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", _objectSpread2(_objectSpread2({
37613
37647
  xmlns: "http://www.w3.org/2000/svg",
37614
37648
  viewBox: "0 0 12 12",
37615
37649
  fill: "none"
37616
- }, _objectWithoutProperties(_ref, _excluded$17)), {}, {
37650
+ }, _objectWithoutProperties(_ref, _excluded$19)), {}, {
37617
37651
  width: size,
37618
37652
  height: size,
37619
37653
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("g", {
@@ -37663,7 +37697,7 @@ var CoffeeIcon = (_ref) => {
37663
37697
  };
37664
37698
  //#endregion
37665
37699
  //#region src/components/Button/Link.tsx
37666
- var _excluded$16 = [
37700
+ var _excluded$18 = [
37667
37701
  "className",
37668
37702
  "children",
37669
37703
  "variant",
@@ -37675,7 +37709,7 @@ var _excluded$16 = [
37675
37709
  "fullWidth"
37676
37710
  ];
37677
37711
  var Link$1 = (_ref) => {
37678
- let { className, children, variant = ButtonVariant.primary, leftIcon, rightIcon, iconOnly, iconAsPrimary = false, justify = "center", fullWidth } = _ref, props = _objectWithoutProperties(_ref, _excluded$16);
37712
+ let { className, children, variant = ButtonVariant.primary, leftIcon, rightIcon, iconOnly, iconAsPrimary = false, justify = "center", fullWidth } = _ref, props = _objectWithoutProperties(_ref, _excluded$18);
37679
37713
  const linkRef = (0, react.useRef)(null);
37680
37714
  let justifyContent = "center";
37681
37715
  if (justify) justifyContent = justify;
@@ -37781,14 +37815,14 @@ var useMileageSummaryGlobalCacheActions = () => {
37781
37815
  };
37782
37816
  //#endregion
37783
37817
  //#region src/icons/ArrowRightCircleAlt.tsx
37784
- var _excluded$15 = ["size"];
37818
+ var _excluded$17 = ["size"];
37785
37819
  var ArrowRightCircleAlt = (_ref) => {
37786
37820
  let { size = 18 } = _ref;
37787
37821
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", _objectSpread2(_objectSpread2({
37788
37822
  xmlns: "http://www.w3.org/2000/svg",
37789
37823
  viewBox: "0 0 18 18",
37790
37824
  fill: "none"
37791
- }, _objectWithoutProperties(_ref, _excluded$15)), {}, {
37825
+ }, _objectWithoutProperties(_ref, _excluded$17)), {}, {
37792
37826
  width: size,
37793
37827
  height: size,
37794
37828
  children: [
@@ -39118,14 +39152,14 @@ function getCustomerName(customer) {
39118
39152
  }
39119
39153
  //#endregion
39120
39154
  //#region src/icons/ChevronRightFill.tsx
39121
- var _excluded$14 = ["size"];
39155
+ var _excluded$16 = ["size"];
39122
39156
  var ChevronRightFill = (_ref) => {
39123
39157
  let { size = 18 } = _ref;
39124
39158
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", _objectSpread2(_objectSpread2({
39125
39159
  xmlns: "http://www.w3.org/2000/svg",
39126
39160
  viewBox: "0 0 18 18",
39127
39161
  fill: "none"
39128
- }, _objectWithoutProperties(_ref, _excluded$14)), {}, {
39162
+ }, _objectWithoutProperties(_ref, _excluded$16)), {}, {
39129
39163
  width: size,
39130
39164
  height: size,
39131
39165
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
@@ -40975,32 +41009,6 @@ var InvoicePaymentDrawer = ({ isOpen, onOpenChange, invoice }) => {
40975
41009
  });
40976
41010
  };
40977
41011
  //#endregion
40978
- //#region src/schemas/accountingConfiguration.ts
40979
- var ReportingBasis = /* @__PURE__ */ function(ReportingBasis) {
40980
- ReportingBasis["Accrual"] = "ACCRUAL";
40981
- ReportingBasis["Cash"] = "CASH";
40982
- ReportingBasis["DeprecatedCash"] = "DEPRECATED_CASH";
40983
- ReportingBasis["MoneyMovementOnly"] = "MONEY_MOVEMENT_ONLY";
40984
- return ReportingBasis;
40985
- }({});
40986
- effect.Schema.Enums(ReportingBasis);
40987
- var AccountingConfigurationCategoryListMode = /* @__PURE__ */ function(AccountingConfigurationCategoryListMode) {
40988
- AccountingConfigurationCategoryListMode["AllAccounts"] = "ALL_ACCOUNTS";
40989
- AccountingConfigurationCategoryListMode["RevenuesAndExpenses"] = "REVENUES_AND_EXPENSES";
40990
- return AccountingConfigurationCategoryListMode;
40991
- }({});
40992
- effect.Schema.Enums(AccountingConfigurationCategoryListMode);
40993
- var AccountingConfigurationSchema = effect.Schema.Struct({
40994
- id: effect.Schema.UUID,
40995
- enableAccountNumbers: (0, effect.pipe)(effect.Schema.propertySignature(effect.Schema.Boolean), effect.Schema.fromKey("enable_account_numbers")),
40996
- enableCustomerManagement: (0, effect.pipe)(effect.Schema.propertySignature(effect.Schema.Boolean), effect.Schema.fromKey("enable_customer_management")),
40997
- taxEstimatesUserAgreementAt: (0, effect.pipe)(effect.Schema.propertySignature(effect.Schema.NullishOr(effect.Schema.Date)), effect.Schema.fromKey("tax_estimates_user_agreement_at")),
40998
- enableTaxEstimates: (0, effect.pipe)(effect.Schema.propertySignature(effect.Schema.Boolean), effect.Schema.fromKey("enable_tax_estimates")),
40999
- enableMileageTracking: (0, effect.pipe)(effect.Schema.propertySignature(effect.Schema.Boolean), effect.Schema.fromKey("enable_mileage_tracking")),
41000
- enableStripeOnboarding: (0, effect.pipe)(effect.Schema.propertySignature(effect.Schema.Boolean), effect.Schema.fromKey("enable_stripe_onboarding")),
41001
- platformDisplayTags: (0, effect.pipe)(effect.Schema.propertySignature(effect.Schema.Array(TagDimensionSchema)), effect.Schema.fromKey("platform_display_tags"))
41002
- });
41003
- //#endregion
41004
41012
  //#region src/hooks/api/businesses/[business-id]/accounting-config/useAccountingConfiguration.tsx
41005
41013
  var ACCOUNTING_CONFIGURATION_TAG_KEY = "#accounting-configuration";
41006
41014
  function buildKey$33({ access_token: accessToken, apiUrl, businessId }) {
@@ -41218,9 +41226,9 @@ var useCustomerForm = (props) => {
41218
41226
  };
41219
41227
  //#endregion
41220
41228
  //#region src/components/CustomerForm/CustomerForm.tsx
41221
- var _excluded$13 = ["onSuccess", "isReadOnly"];
41229
+ var _excluded$15 = ["onSuccess", "isReadOnly"];
41222
41230
  var CustomerForm = (_ref) => {
41223
- let { onSuccess, isReadOnly } = _ref, formState = _objectWithoutProperties(_ref, _excluded$13);
41231
+ let { onSuccess, isReadOnly } = _ref, formState = _objectWithoutProperties(_ref, _excluded$15);
41224
41232
  const { t } = (0, react_i18next.useTranslation)();
41225
41233
  const { form, submitError } = useCustomerForm(_objectSpread2({ onSuccess }, formState));
41226
41234
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(Form, {
@@ -42105,10 +42113,10 @@ var useInvoiceForm = (props) => {
42105
42113
  };
42106
42114
  //#endregion
42107
42115
  //#region src/components/Invoices/InvoiceForm/InvoiceForm.tsx
42108
- var _excluded$12 = ["isReadOnly"];
42116
+ var _excluded$14 = ["isReadOnly"];
42109
42117
  var InvoiceForm = (0, react.forwardRef)((props, ref) => {
42110
42118
  var _accountingConfig$ena;
42111
- const _useInvoiceDetail = useInvoiceDetail(), { isReadOnly } = _useInvoiceDetail, viewState = _objectWithoutProperties(_useInvoiceDetail, _excluded$12);
42119
+ const _useInvoiceDetail = useInvoiceDetail(), { isReadOnly } = _useInvoiceDetail, viewState = _objectWithoutProperties(_useInvoiceDetail, _excluded$14);
42112
42120
  const { mode } = viewState;
42113
42121
  const { onSuccess, onChangeFormState } = props;
42114
42122
  const { businessId } = useLayerContext();
@@ -42576,7 +42584,7 @@ var InvoiceDetail = () => {
42576
42584
  };
42577
42585
  //#endregion
42578
42586
  //#region src/components/ui/Meter/Meter.tsx
42579
- var _excluded$11 = [
42587
+ var _excluded$13 = [
42580
42588
  "className",
42581
42589
  "label",
42582
42590
  "meterOnly"
@@ -42587,7 +42595,7 @@ var getClassnameForSubComponent = (className, suffix) => {
42587
42595
  var METER_CLASS_NAME = "Layer__Meter";
42588
42596
  var Meter = (0, react.forwardRef)(function Meter(_ref, ref) {
42589
42597
  let { className, label, meterOnly } = _ref;
42590
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components_Meter.Meter, _objectSpread2(_objectSpread2(_objectSpread2({}, _objectWithoutProperties(_ref, _excluded$11)), {}, {
42598
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components_Meter.Meter, _objectSpread2(_objectSpread2(_objectSpread2({}, _objectWithoutProperties(_ref, _excluded$13)), {}, {
42591
42599
  className: (0, classnames.default)(METER_CLASS_NAME, className),
42592
42600
  ref
42593
42601
  }, meterOnly && { "aria-label": label }), {}, { children: ({ percentage, valueText }) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(VStack, {
@@ -42817,7 +42825,7 @@ function useStripeAccountStatus() {
42817
42825
  }
42818
42826
  //#endregion
42819
42827
  //#region src/components/ui/Banner/Banner.tsx
42820
- var _excluded$10 = ["variant"];
42828
+ var _excluded$12 = ["variant"];
42821
42829
  var BANNER_CLASS_NAMES = {
42822
42830
  DEFAULT: "Layer__UI__Banner",
42823
42831
  ICON_CONTAINER: "Layer__UI__Banner__iconContainer",
@@ -42906,7 +42914,7 @@ var Banner = (0, react.forwardRef)(({ variant = "info", title, description, slot
42906
42914
  });
42907
42915
  Banner.displayName = "Banner";
42908
42916
  var BannerButton = (_ref) => {
42909
- let { variant = "outlined-light" } = _ref, rest = _objectWithoutProperties(_ref, _excluded$10);
42917
+ let { variant = "outlined-light" } = _ref, rest = _objectWithoutProperties(_ref, _excluded$12);
42910
42918
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Button$1, _objectSpread2({ variant }, rest));
42911
42919
  };
42912
42920
  //#endregion
@@ -43053,7 +43061,7 @@ var InvoicesContent = () => {
43053
43061
  };
43054
43062
  //#endregion
43055
43063
  //#region src/components/ProfitAndLossView/ProfitAndLossView.tsx
43056
- var _excluded$9 = ["containerRef", "stringOverrides"];
43064
+ var _excluded$11 = ["containerRef", "stringOverrides"];
43057
43065
  var COMPONENT_NAME$5 = "profit-and-loss";
43058
43066
  var ProfitAndLossView = (props) => {
43059
43067
  const containerRef = (0, react.useRef)(null);
@@ -43064,7 +43072,7 @@ var ProfitAndLossView = (props) => {
43064
43072
  });
43065
43073
  };
43066
43074
  var ProfitAndLossPanel = (_ref) => {
43067
- let { containerRef, stringOverrides } = _ref, props = _objectWithoutProperties(_ref, _excluded$9);
43075
+ let { containerRef, stringOverrides } = _ref, props = _objectWithoutProperties(_ref, _excluded$11);
43068
43076
  const { t } = (0, react_i18next.useTranslation)();
43069
43077
  const { sidebarScope } = (0, react.useContext)(ProfitAndLossContext);
43070
43078
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(Panel, {
@@ -43140,12 +43148,16 @@ var UnifiedReportStoreContext = (0, react.createContext)((0, zustand.createStore
43140
43148
  baseReport: null,
43141
43149
  detailReportConfig: null,
43142
43150
  groupBy: DateGroupBy.AllTime,
43151
+ reportingBasis: null,
43152
+ selectedTagValues: [],
43143
43153
  dateSelectionMode: "full",
43144
43154
  actions: {
43145
43155
  setBaseReport: () => {},
43146
43156
  openDetailReport: () => {},
43147
43157
  closeDetailReport: () => {},
43148
- setGroupBy: () => {}
43158
+ setGroupBy: () => {},
43159
+ setReportingBasis: () => {},
43160
+ setSelectedTagValues: () => {}
43149
43161
  }
43150
43162
  })));
43151
43163
  function useUnifiedReportDateSelectionMode() {
@@ -43200,24 +43212,70 @@ function useUnifiedReportGroupByParam() {
43200
43212
  setGroupBy
43201
43213
  }), [groupBy, setGroupBy]);
43202
43214
  }
43215
+ function useUnifiedReportReportingBasisParam() {
43216
+ const store = (0, react.useContext)(UnifiedReportStoreContext);
43217
+ const reportingBasis = (0, zustand.useStore)(store, (state) => state.reportingBasis);
43218
+ const setReportingBasis = (0, zustand.useStore)(store, (state) => state.actions.setReportingBasis);
43219
+ return (0, react.useMemo)(() => ({
43220
+ reportingBasis,
43221
+ setReportingBasis
43222
+ }), [reportingBasis, setReportingBasis]);
43223
+ }
43224
+ function useUnifiedReportTagSelection() {
43225
+ const store = (0, react.useContext)(UnifiedReportStoreContext);
43226
+ const selectedTagValues = (0, zustand.useStore)(store, (state) => state.selectedTagValues);
43227
+ const setSelectedTagValues = (0, zustand.useStore)(store, (state) => state.actions.setSelectedTagValues);
43228
+ return (0, react.useMemo)(() => ({
43229
+ selectedTagValues,
43230
+ setSelectedTagValues
43231
+ }), [selectedTagValues, setSelectedTagValues]);
43232
+ }
43233
+ var buildUnifiedReportTagFilters = (report, selectedTagValues) => {
43234
+ var _report$tagControl;
43235
+ const key = (_report$tagControl = report.tagControl) === null || _report$tagControl === void 0 ? void 0 : _report$tagControl.tagDimension.key.trim();
43236
+ if (!key) return;
43237
+ const values = selectedTagValues.filter(isActiveTagValueDefinition).map((tagValue) => tagValue.value).filter((value) => value.trim().length > 0);
43238
+ if (values.length === 0) return;
43239
+ return JSON.stringify(values.map((value) => ({
43240
+ key,
43241
+ values: [value]
43242
+ })));
43243
+ };
43244
+ var REPORTING_BASIS_QUERY_PARAMETER = "reporting_basis";
43245
+ var getInitialReportingBasis = (report) => {
43246
+ const value = report.baseQueryParameters[REPORTING_BASIS_QUERY_PARAMETER];
43247
+ return isUnifiedReportReportingBasis(value) ? value : null;
43248
+ };
43249
+ var getBaseQueryParameters = (report, hasReportingBasisControl) => {
43250
+ if (!hasReportingBasisControl) return report.baseQueryParameters;
43251
+ return Object.fromEntries(Object.entries(report.baseQueryParameters).filter(([key]) => key !== REPORTING_BASIS_QUERY_PARAMETER));
43252
+ };
43203
43253
  function useUnifiedReportParams() {
43204
43254
  const { report } = useActiveUnifiedReport();
43205
- const groupBy = (0, zustand.useStore)((0, react.useContext)(UnifiedReportStoreContext), (state) => state.groupBy);
43255
+ const store = (0, react.useContext)(UnifiedReportStoreContext);
43256
+ const groupBy = (0, zustand.useStore)(store, (state) => state.groupBy);
43257
+ const reportingBasis = (0, zustand.useStore)(store, (state) => state.reportingBasis);
43258
+ const selectedTagValues = (0, zustand.useStore)(store, (state) => state.selectedTagValues);
43206
43259
  const dateSelectionMode = useUnifiedReportDateSelectionMode();
43207
43260
  const { date: effectiveDate } = useGlobalDate({ dateSelectionMode });
43208
43261
  const { startDate, endDate } = useGlobalDateRange({ dateSelectionMode });
43209
43262
  const { startDate: yearStartDate } = useGlobalDateRange({ dateSelectionMode: "year" });
43210
43263
  return (0, react.useMemo)(() => {
43211
43264
  if (!report) return null;
43212
- return _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({ route: report.reportRoute }, report.baseQueryParameters), hasControl(report, ReportControl.Date) && { effectiveDate }), hasControl(report, ReportControl.DateRange) && {
43265
+ const tagFilters = buildUnifiedReportTagFilters(report, selectedTagValues);
43266
+ const hasReportingBasisControl = hasControl(report, ReportControl.ReportingBasis);
43267
+ const baseQueryParameters = getBaseQueryParameters(report, hasReportingBasisControl);
43268
+ return _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({ route: report.reportRoute }, baseQueryParameters), hasControl(report, ReportControl.Date) && { effectiveDate }), hasControl(report, ReportControl.DateRange) && {
43213
43269
  startDate,
43214
43270
  endDate
43215
- }), hasControl(report, ReportControl.GroupBy) && groupBy != null && { groupBy }), hasControl(report, ReportControl.Year) && { year: (0, date_fns.getYear)(yearStartDate) });
43271
+ }), hasControl(report, ReportControl.GroupBy) && groupBy != null && { groupBy }), hasReportingBasisControl && reportingBasis != null && { reportingBasis }), hasControl(report, ReportControl.Year) && { year: (0, date_fns.getYear)(yearStartDate) }), tagFilters && { tagFilters });
43216
43272
  }, [
43217
43273
  effectiveDate,
43218
43274
  endDate,
43219
43275
  groupBy,
43220
43276
  report,
43277
+ reportingBasis,
43278
+ selectedTagValues,
43221
43279
  startDate,
43222
43280
  yearStartDate
43223
43281
  ]);
@@ -43235,15 +43293,24 @@ var createUnifiedReportStore = (dateSelectionMode) => (0, zustand.createStore)((
43235
43293
  baseReport: null,
43236
43294
  detailReportConfig: null,
43237
43295
  groupBy: DateGroupBy.AllTime,
43296
+ reportingBasis: null,
43297
+ selectedTagValues: [],
43238
43298
  dateSelectionMode,
43239
43299
  actions: {
43240
- setBaseReport: (baseReport) => set({
43241
- baseReport,
43242
- detailReportConfig: null
43243
- }),
43300
+ setBaseReport: (baseReport) => {
43301
+ var _baseReport$tagContro, _baseReport$tagContro2;
43302
+ return set({
43303
+ baseReport,
43304
+ detailReportConfig: null,
43305
+ reportingBasis: getInitialReportingBasis(baseReport),
43306
+ selectedTagValues: (_baseReport$tagContro = (_baseReport$tagContro2 = baseReport.tagControl) === null || _baseReport$tagContro2 === void 0 ? void 0 : _baseReport$tagContro2.initialSelectedTags.filter(isActiveTagValueDefinition)) !== null && _baseReport$tagContro !== void 0 ? _baseReport$tagContro : []
43307
+ });
43308
+ },
43244
43309
  openDetailReport: (detailReportConfig) => set({ detailReportConfig }),
43245
43310
  closeDetailReport: () => set({ detailReportConfig: null }),
43246
- setGroupBy: (groupBy) => set({ groupBy })
43311
+ setGroupBy: (groupBy) => set({ groupBy }),
43312
+ setReportingBasis: (reportingBasis) => set({ reportingBasis }),
43313
+ setSelectedTagValues: (selectedTagValues) => set({ selectedTagValues: selectedTagValues.filter(isActiveTagValueDefinition) })
43247
43314
  }
43248
43315
  }));
43249
43316
  function useHydrateUnifiedReportStore(store) {
@@ -43277,12 +43344,12 @@ function UnifiedReportStoreProvider({ children, dateSelectionMode = "full" }) {
43277
43344
  }
43278
43345
  //#endregion
43279
43346
  //#region src/components/ui/Tree/Tree.tsx
43280
- var _excluded$8 = ["children", "className"], _excluded2$3 = ["children"], _excluded3 = ["children"];
43347
+ var _excluded$10 = ["children", "className"], _excluded2$4 = ["children"], _excluded3 = ["children"];
43281
43348
  var TREE_CLASS_NAME = "Layer__UI__Tree";
43282
43349
  var TREE_ITEM_CLASS_NAME = "Layer__UI__TreeItem";
43283
43350
  var TreeInner = (_ref, ref) => {
43284
43351
  let { children, className } = _ref;
43285
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components_Tree.Tree, _objectSpread2(_objectSpread2({}, _objectWithoutProperties(_ref, _excluded$8)), {}, {
43352
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components_Tree.Tree, _objectSpread2(_objectSpread2({}, _objectWithoutProperties(_ref, _excluded$10)), {}, {
43286
43353
  className: (0, classnames.default)(TREE_CLASS_NAME, className),
43287
43354
  ref,
43288
43355
  children: withRenderProp(children, (node) => node)
@@ -43292,7 +43359,7 @@ var Tree = (0, react.forwardRef)(TreeInner);
43292
43359
  Tree.displayName = "Tree";
43293
43360
  var TreeItemInner = (_ref2, ref) => {
43294
43361
  let { children } = _ref2;
43295
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components_Tree.TreeItem, _objectSpread2(_objectSpread2({}, _objectWithoutProperties(_ref2, _excluded2$3)), {}, {
43362
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_aria_components_Tree.TreeItem, _objectSpread2(_objectSpread2({}, _objectWithoutProperties(_ref2, _excluded2$4)), {}, {
43296
43363
  className: TREE_ITEM_CLASS_NAME,
43297
43364
  ref,
43298
43365
  children: withRenderProp(children, (node) => node)
@@ -43555,7 +43622,7 @@ var S3PresignedUrlSchema = effect.Schema.Struct({
43555
43622
  });
43556
43623
  //#endregion
43557
43624
  //#region src/hooks/api/businesses/[business-id]/reports/unified/report-name/exports/excel/useUnifiedReportExcel.ts
43558
- var _excluded$7 = ["businessId", "route"], _excluded2$2 = [
43625
+ var _excluded$9 = ["businessId", "route"], _excluded2$3 = [
43559
43626
  "accessToken",
43560
43627
  "apiUrl",
43561
43628
  "businessId",
@@ -43563,7 +43630,7 @@ var _excluded$7 = ["businessId", "route"], _excluded2$2 = [
43563
43630
  ];
43564
43631
  var getUnifiedReportExcel = get$1((_ref) => {
43565
43632
  let { businessId, route } = _ref;
43566
- return `/v1/businesses/${businessId}/reports/unified/${route}/exports/excel?${toDefinedSearchParameters(_objectSpread2({}, _objectWithoutProperties(_ref, _excluded$7)))}`;
43633
+ return `/v1/businesses/${businessId}/reports/unified/${route}/exports/excel?${toDefinedSearchParameters(_objectSpread2({}, _objectWithoutProperties(_ref, _excluded$9)))}`;
43567
43634
  });
43568
43635
  var getTag$1 = (report) => `#unified-${report}-report-excel`;
43569
43636
  var UnifiedReportExcelReturnSchema = effect.Schema.Struct({ data: S3PresignedUrlSchema });
@@ -43586,7 +43653,7 @@ function useUnifiedReportExcel({ onSuccess } = {}) {
43586
43653
  businessId,
43587
43654
  params
43588
43655
  }))), (_ref2) => {
43589
- let { accessToken, apiUrl, businessId, tags } = _ref2, restParams = _objectWithoutProperties(_ref2, _excluded2$2);
43656
+ let { accessToken, apiUrl, businessId, tags } = _ref2, restParams = _objectWithoutProperties(_ref2, _excluded2$3);
43590
43657
  return getUnifiedReportExcel(apiUrl, accessToken, { params: _objectSpread2({ businessId }, restParams) })().then(effect.Schema.decodeUnknownPromise(UnifiedReportExcelReturnSchema)).then(function() {
43591
43658
  var _ref3 = _asyncToGenerator(function* ({ data }) {
43592
43659
  if (onSuccess) yield onSuccess(data);
@@ -43637,7 +43704,7 @@ var UnifiedReportHeaderButtons = () => {
43637
43704
  };
43638
43705
  //#endregion
43639
43706
  //#region src/hooks/api/businesses/[business-id]/reports/unified/report-name/useUnifiedReport.tsx
43640
- var _excluded$6 = ["businessId", "route"], _excluded2$1 = [
43707
+ var _excluded$8 = ["businessId", "route"], _excluded2$2 = [
43641
43708
  "accessToken",
43642
43709
  "apiUrl",
43643
43710
  "businessId",
@@ -43654,7 +43721,7 @@ function buildKey$24({ access_token: accessToken, apiUrl, businessId, params })
43654
43721
  }
43655
43722
  var getUnifiedReport = get$1((_ref) => {
43656
43723
  let { businessId, route } = _ref;
43657
- return `/v1/businesses/${businessId}/reports/unified/${route}?${toDefinedSearchParameters(_objectSpread2({}, _objectWithoutProperties(_ref, _excluded$6)))}`;
43724
+ return `/v1/businesses/${businessId}/reports/unified/${route}?${toDefinedSearchParameters(_objectSpread2({}, _objectWithoutProperties(_ref, _excluded$8)))}`;
43658
43725
  });
43659
43726
  function useUnifiedReport() {
43660
43727
  const withLocale = useLocalizedKey();
@@ -43667,19 +43734,19 @@ function useUnifiedReport() {
43667
43734
  businessId,
43668
43735
  params
43669
43736
  }))), (_ref2) => {
43670
- let { accessToken, apiUrl, businessId, tags } = _ref2, restParams = _objectWithoutProperties(_ref2, _excluded2$1);
43737
+ let { accessToken, apiUrl, businessId, tags } = _ref2, restParams = _objectWithoutProperties(_ref2, _excluded2$2);
43671
43738
  return getUnifiedReport(apiUrl, accessToken, { params: _objectSpread2({ businessId }, restParams) })().then(({ data }) => effect.Schema.decodeUnknownPromise(UnifiedReportSchema)(data));
43672
43739
  }));
43673
43740
  }
43674
43741
  //#endregion
43675
43742
  //#region src/components/ui/Typography/DurationSpan.tsx
43676
- var _excluded$5 = [
43743
+ var _excluded$7 = [
43677
43744
  "durationMinutes",
43678
43745
  "className",
43679
43746
  "showLessThanOneMinuteForZero"
43680
43747
  ];
43681
43748
  var DurationSpan = (0, react.forwardRef)((_ref, ref) => {
43682
- let { durationMinutes, className, showLessThanOneMinuteForZero = false } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$5);
43749
+ let { durationMinutes, className, showLessThanOneMinuteForZero = false } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$7);
43683
43750
  const { t } = (0, react_i18next.useTranslation)();
43684
43751
  const { formatMinutesAsDuration } = useIntlFormatter();
43685
43752
  const formattedDuration = durationMinutes !== 0 ? formatMinutesAsDuration(durationMinutes) : showLessThanOneMinuteForZero ? t("timeTracking:label.less_than_one_minute", "< 1 min") : t("timeTracking:label.zero_minutes", "0 min");
@@ -43903,6 +43970,185 @@ var GlobalYearPicker = () => {
43903
43970
  });
43904
43971
  };
43905
43972
  //#endregion
43973
+ //#region src/components/UnifiedReports/UnifiedReportReportingBasisControl.tsx
43974
+ var REPORTING_BASIS_CONFIG = [_objectSpread2({ value: ReportingBasis.Cash }, translationKey("reports:label.cash", "Cash")), _objectSpread2({ value: ReportingBasis.Accrual }, translationKey("reports:label.accrual", "Accrual"))];
43975
+ var useReportingBasisControlData = () => {
43976
+ const { t } = (0, react_i18next.useTranslation)();
43977
+ return {
43978
+ label: t("reports:label.reporting_basis", "Reporting basis"),
43979
+ options: REPORTING_BASIS_CONFIG.map(({ value, i18nKey, defaultValue }) => ({
43980
+ value,
43981
+ label: t(i18nKey, defaultValue)
43982
+ }))
43983
+ };
43984
+ };
43985
+ function UnifiedReportReportingBasisControl({ value, onValueChange }) {
43986
+ var _options$find;
43987
+ const inputId = (0, react.useId)();
43988
+ const { label, options } = useReportingBasisControlData();
43989
+ const selectedOption = value ? (_options$find = options.find((option) => option.value === value)) !== null && _options$find !== void 0 ? _options$find : null : null;
43990
+ const handleSelectedValueChange = (option) => {
43991
+ if (option) onValueChange(option.value);
43992
+ };
43993
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(VStack, {
43994
+ className: "Layer__UnifiedReports__ReportingBasisControl__Container",
43995
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(Label$1, {
43996
+ pbe: "3xs",
43997
+ size: "sm",
43998
+ htmlFor: inputId,
43999
+ children: label
44000
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ComboBox, {
44001
+ options,
44002
+ onSelectedValueChange: handleSelectedValueChange,
44003
+ selectedValue: selectedOption,
44004
+ isSearchable: false,
44005
+ isClearable: false,
44006
+ inputId
44007
+ })]
44008
+ });
44009
+ }
44010
+ //#endregion
44011
+ //#region src/components/ui/ComboBox/useMultiSelectComboBoxSubcomponents.tsx
44012
+ var _excluded$6 = ["children"], _excluded2$1 = ["children", "innerProps"];
44013
+ var getSelectedCount = (selectedValues) => {
44014
+ if (!selectedValues) return 0;
44015
+ if (Array.isArray(selectedValues)) return selectedValues.length;
44016
+ return 1;
44017
+ };
44018
+ var getSelectedLabels = (selectedValues, locale) => {
44019
+ if (!selectedValues) return "";
44020
+ if (Array.isArray(selectedValues)) {
44021
+ const labels = selectedValues.map((v) => v.label);
44022
+ if (labels.length === 0) return "";
44023
+ return new Intl.ListFormat(locale, {
44024
+ style: "long",
44025
+ type: "conjunction"
44026
+ }).format(labels);
44027
+ }
44028
+ return selectedValues.label;
44029
+ };
44030
+ var buildCustomMultiValue = () => {
44031
+ return function CustomMultiValue(_ref) {
44032
+ let { children } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$6);
44033
+ const { index, selectProps } = restProps;
44034
+ const isTyping = selectProps.inputValue && selectProps.inputValue.length > 0;
44035
+ if (index > 0 || isTyping) return null;
44036
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_select.components.MultiValue, _objectSpread2(_objectSpread2({}, restProps), {}, {
44037
+ className: COMBO_BOX_CLASS_NAMES.MULTI_VALUE,
44038
+ children
44039
+ }));
44040
+ };
44041
+ };
44042
+ var buildCustomMultiValueLabel = () => {
44043
+ return function CustomMultiValueLabel(_ref2) {
44044
+ let { children, innerProps } = _ref2, restProps = _objectWithoutProperties(_ref2, _excluded2$1);
44045
+ const locale = useLocale();
44046
+ const selectedValues = restProps.selectProps.value;
44047
+ const selectedCount = getSelectedCount(selectedValues);
44048
+ const selectedLabels = getSelectedLabels(selectedValues, locale);
44049
+ const mergedInnerProps = _objectSpread2(_objectSpread2({}, innerProps), {}, { className: (0, classnames.default)(innerProps === null || innerProps === void 0 ? void 0 : innerProps.className, COMBO_BOX_CLASS_NAMES.MULTI_VALUE_LABEL) });
44050
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_select.components.MultiValueLabel, _objectSpread2(_objectSpread2({}, restProps), {}, {
44051
+ innerProps: mergedInnerProps,
44052
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(HStack, {
44053
+ gap: "3xs",
44054
+ align: "center",
44055
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)(Badge, {
44056
+ size: BadgeSize.SMALL,
44057
+ variant: BadgeVariant.INFO,
44058
+ children: [selectedCount, /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.Filter, { size: 12 })]
44059
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Span, {
44060
+ variant: "inherit",
44061
+ withTooltip: true,
44062
+ children: selectedLabels
44063
+ })]
44064
+ })
44065
+ }));
44066
+ };
44067
+ };
44068
+ var NullComponent = () => null;
44069
+ var useMultiSelectComboBoxSubcomponents = () => {
44070
+ const MultiValueRef = (0, react.useRef)(buildCustomMultiValue());
44071
+ const MultiValueLabelRef = (0, react.useRef)(buildCustomMultiValueLabel());
44072
+ return (0, react.useMemo)(() => ({
44073
+ MultiValue: MultiValueRef.current,
44074
+ MultiValueLabel: MultiValueLabelRef.current,
44075
+ MultiValueRemove: NullComponent
44076
+ }), []);
44077
+ };
44078
+ //#endregion
44079
+ //#region src/components/ui/ComboBox/MultiSelectComboBox.tsx
44080
+ var _excluded$5 = [
44081
+ "className",
44082
+ "slots",
44083
+ "isError",
44084
+ "selectedValues",
44085
+ "onSelectedValuesChange"
44086
+ ];
44087
+ function MultiSelectComboBox(_ref) {
44088
+ let { className, slots, isError, selectedValues, onSelectedValuesChange } = _ref, props = _objectWithoutProperties(_ref, _excluded$5);
44089
+ const commonSelectProps = useCommonComboBoxProps(_objectSpread2({
44090
+ className,
44091
+ slots,
44092
+ isError
44093
+ }, props));
44094
+ const multiSelectComponents = useMultiSelectComboBoxSubcomponents();
44095
+ const components = (0, react.useMemo)(() => _objectSpread2(_objectSpread2({}, commonSelectProps.components), multiSelectComponents), [commonSelectProps.components, multiSelectComponents]);
44096
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(VStack, {
44097
+ gap: "3xs",
44098
+ fluid: true,
44099
+ className: className ? `${className}__Container` : void 0,
44100
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_select.default, _objectSpread2(_objectSpread2({}, commonSelectProps), {}, {
44101
+ components,
44102
+ value: selectedValues,
44103
+ onChange: onSelectedValuesChange,
44104
+ closeMenuOnSelect: false,
44105
+ hideSelectedOptions: false,
44106
+ isMulti: true
44107
+ })), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ComboBoxErrorMessage, {
44108
+ isError,
44109
+ errorMessage: slots === null || slots === void 0 ? void 0 : slots.ErrorMessage
44110
+ })]
44111
+ });
44112
+ }
44113
+ //#endregion
44114
+ //#region src/components/UnifiedReports/UnifiedReportTagControl.tsx
44115
+ var toOption = (tagValueDefinition) => {
44116
+ var _tagValueDefinition$d;
44117
+ return {
44118
+ label: (_tagValueDefinition$d = tagValueDefinition.displayName) !== null && _tagValueDefinition$d !== void 0 ? _tagValueDefinition$d : tagValueDefinition.value,
44119
+ value: tagValueDefinition.value,
44120
+ tagValueDefinition
44121
+ };
44122
+ };
44123
+ function UnifiedReportTagControl({ tagControl }) {
44124
+ var _tagControl$tagDimens;
44125
+ const inputId = (0, react.useId)();
44126
+ const { t } = (0, react_i18next.useTranslation)();
44127
+ const { selectedTagValues, setSelectedTagValues } = useUnifiedReportTagSelection();
44128
+ const dimensionName = (_tagControl$tagDimens = tagControl.tagDimension.displayName) !== null && _tagControl$tagDimens !== void 0 ? _tagControl$tagDimens : capitalizeFirstLetter(tagControl.tagDimension.key);
44129
+ const options = tagControl.tagDimension.definedValues.filter(isActiveTagValueDefinition).map(toOption);
44130
+ const selectedValues = selectedTagValues.filter(isActiveTagValueDefinition).map(toOption);
44131
+ const handleSelectedValuesChange = (values) => {
44132
+ setSelectedTagValues(values.map(({ tagValueDefinition }) => tagValueDefinition));
44133
+ };
44134
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(VStack, {
44135
+ gap: "3xs",
44136
+ className: "Layer__UnifiedReports__TagControl__Container",
44137
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(Label$1, {
44138
+ size: "sm",
44139
+ htmlFor: inputId,
44140
+ children: dimensionName
44141
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(MultiSelectComboBox, {
44142
+ inputId,
44143
+ options,
44144
+ selectedValues,
44145
+ onSelectedValuesChange: handleSelectedValuesChange,
44146
+ placeholder: t("tags:action.select_dimension_name", "Select {{dimensionName}}", { dimensionName }),
44147
+ isSearchable: selectedValues.length === 0
44148
+ })]
44149
+ });
44150
+ }
44151
+ //#endregion
43906
44152
  //#region src/components/UnifiedReports/UnifiedReportControls.tsx
43907
44153
  var SMALL_BREAKPOINT$1 = 560;
43908
44154
  var MEDIUM_BREAKPOINT$1 = 760;
@@ -43928,6 +44174,7 @@ var UnifiedReportDateSelection = ({ isCompact }) => {
43928
44174
  var UnifiedReportControls = () => {
43929
44175
  const { baseReport } = useBaseUnifiedReport();
43930
44176
  const { groupBy, setGroupBy } = useUnifiedReportGroupByParam();
44177
+ const { reportingBasis, setReportingBasis } = useUnifiedReportReportingBasisParam();
43931
44178
  const dateSelectionMode = useUnifiedReportDateSelectionMode();
43932
44179
  const [size, setSize] = (0, react.useState)(3);
43933
44180
  const containerRef = useElementSize((size) => {
@@ -43936,19 +44183,29 @@ var UnifiedReportControls = () => {
43936
44183
  const variant = getVariantForWidth(size);
43937
44184
  const hasGroupBy = dateSelectionMode === "full" && hasControl(baseReport, ReportControl.GroupBy);
43938
44185
  const hasYear = hasControl(baseReport, ReportControl.Year);
44186
+ const hasReportingBasis = hasControl(baseReport, ReportControl.ReportingBasis) && reportingBasis != null;
44187
+ const tagControl = baseReport === null || baseReport === void 0 ? void 0 : baseReport.tagControl;
43939
44188
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(Stack, {
43940
44189
  ref: containerRef,
43941
44190
  direction: variant === "large" ? "row" : "column",
43942
44191
  pb: "md",
43943
44192
  pi: "lg",
43944
44193
  gap: "xs",
43945
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(UnifiedReportDateSelection, { isCompact: variant === "small" }), (hasYear || hasGroupBy) && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
44194
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(UnifiedReportDateSelection, { isCompact: variant === "small" }), (hasYear || hasGroupBy || hasReportingBasis || tagControl) && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
43946
44195
  className: "Layer__UnifiedReports__AdditionalControls",
43947
44196
  "data-variant": variant,
43948
- children: [hasYear && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(GlobalYearPicker, {}), hasGroupBy && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(DateGroupByComboBox, {
43949
- value: groupBy,
43950
- onValueChange: setGroupBy
43951
- })]
44197
+ children: [
44198
+ hasYear && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(GlobalYearPicker, {}),
44199
+ hasGroupBy && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(DateGroupByComboBox, {
44200
+ value: groupBy,
44201
+ onValueChange: setGroupBy
44202
+ }),
44203
+ tagControl && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(UnifiedReportTagControl, { tagControl }),
44204
+ hasReportingBasis && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(UnifiedReportReportingBasisControl, {
44205
+ value: reportingBasis,
44206
+ onValueChange: setReportingBasis
44207
+ })
44208
+ ]
43952
44209
  })]
43953
44210
  });
43954
44211
  };