@burdenoff/microfe-brainyrich 2026.819.1 → 2026.827.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/_rolldown/runtime.js +1 -1
- package/dist/brainyrich/BrainyRichRoot.d.ts +0 -1
- package/dist/brainyrich/BrainyRichRoot.js.map +1 -1
- package/dist/brainyrich/BrainyRichRoutes.js.map +1 -1
- package/dist/brainyrich/components/ActorName.js.map +1 -1
- package/dist/brainyrich/components/ConfirmDialog.d.ts +0 -1
- package/dist/brainyrich/components/ConfirmDialog.js.map +1 -1
- package/dist/brainyrich/components/LoadMore.js.map +1 -1
- package/dist/brainyrich/components/notify.js.map +1 -1
- package/dist/brainyrich/components/pickers.js.map +1 -1
- package/dist/brainyrich/components/reuse/CommentThread.js.map +1 -1
- package/dist/brainyrich/components/reuse/DocumentsPanel.d.ts +4 -0
- package/dist/brainyrich/components/reuse/DocumentsPanel.d.ts.map +1 -1
- package/dist/brainyrich/components/reuse/DocumentsPanel.js +150 -99
- package/dist/brainyrich/components/reuse/DocumentsPanel.js.map +1 -1
- package/dist/brainyrich/components/reuse/TagField.js.map +1 -1
- package/dist/brainyrich/components/reuse/transport.js.map +1 -1
- package/dist/brainyrich/components/viz.d.ts +0 -1
- package/dist/brainyrich/components/viz.js.map +1 -1
- package/dist/brainyrich/hooks/useBrainyRichAnalytics.js.map +1 -1
- package/dist/brainyrich/hooks/useBrainyRichApi.d.ts +176 -1
- package/dist/brainyrich/hooks/useBrainyRichApi.d.ts.map +1 -1
- package/dist/brainyrich/hooks/useBrainyRichApi.js +96 -82
- package/dist/brainyrich/hooks/useBrainyRichApi.js.map +1 -1
- package/dist/brainyrich/pages/AccountsPage.d.ts.map +1 -1
- package/dist/brainyrich/pages/AccountsPage.js +367 -363
- package/dist/brainyrich/pages/AccountsPage.js.map +1 -1
- package/dist/brainyrich/pages/AdminFirmPage.d.ts.map +1 -1
- package/dist/brainyrich/pages/AdminFirmPage.js +115 -83
- package/dist/brainyrich/pages/AdminFirmPage.js.map +1 -1
- package/dist/brainyrich/pages/AiAssistantPage.d.ts.map +1 -1
- package/dist/brainyrich/pages/AiAssistantPage.js +251 -230
- package/dist/brainyrich/pages/AiAssistantPage.js.map +1 -1
- package/dist/brainyrich/pages/AnalyticsPage.js.map +1 -1
- package/dist/brainyrich/pages/DashboardPage.js.map +1 -1
- package/dist/brainyrich/pages/FamilyPage.js.map +1 -1
- package/dist/brainyrich/pages/FirmPage.d.ts.map +1 -1
- package/dist/brainyrich/pages/FirmPage.js +148 -116
- package/dist/brainyrich/pages/FirmPage.js.map +1 -1
- package/dist/brainyrich/pages/GoalsPage.js.map +1 -1
- package/dist/brainyrich/pages/InvestmentsPage.js.map +1 -1
- package/dist/brainyrich/pages/PortfoliosPage.d.ts +14 -0
- package/dist/brainyrich/pages/PortfoliosPage.d.ts.map +1 -1
- package/dist/brainyrich/pages/PortfoliosPage.js +530 -353
- package/dist/brainyrich/pages/PortfoliosPage.js.map +1 -1
- package/dist/brainyrich/pages/ReportsPage.js.map +1 -1
- package/dist/brainyrich/pages/RiskPage.d.ts.map +1 -1
- package/dist/brainyrich/pages/RiskPage.js +381 -396
- package/dist/brainyrich/pages/RiskPage.js.map +1 -1
- package/dist/brainyrich/pages/TaxPage.js.map +1 -1
- package/dist/brainyrich/pages/_shared.d.ts +21 -1
- package/dist/brainyrich/pages/_shared.d.ts.map +1 -1
- package/dist/brainyrich/pages/_shared.js +66 -31
- package/dist/brainyrich/pages/_shared.js.map +1 -1
- package/dist/brainyrich/providers/BrainyRichProvider.d.ts +0 -1
- package/dist/brainyrich/providers/BrainyRichProvider.js.map +1 -1
- package/dist/brainyrich/services/createSandboxAssistantTransport.js.map +1 -1
- package/dist/brainyrich/types/bra.d.ts.map +1 -1
- package/dist/brainyrich/types/index.d.ts +0 -1
- package/dist/brainyrich/utils/cn.d.ts +0 -1
- package/dist/brainyrich/utils/i18n.d.ts +0 -1
- package/dist/brainyrich/utils/i18n.js.map +1 -1
- package/dist/brainyrich/utils/nativeControls.d.ts +0 -1
- package/dist/brainyrich/utils/nativeControls.js.map +1 -1
- package/dist/brainyrich/utils/navigation.js.map +1 -1
- package/dist/brainyrich/utils/pageContext.js.map +1 -1
- package/dist/dev/main.d.ts +0 -1
- package/dist/node_modules/clsx/dist/clsx.js.map +1 -1
- package/dist/node_modules/d3-array/src/ascending.js.map +1 -1
- package/dist/node_modules/d3-array/src/bisect.js.map +1 -1
- package/dist/node_modules/d3-array/src/bisector.js.map +1 -1
- package/dist/node_modules/d3-array/src/descending.js.map +1 -1
- package/dist/node_modules/d3-array/src/max.js.map +1 -1
- package/dist/node_modules/d3-array/src/min.js.map +1 -1
- package/dist/node_modules/d3-array/src/number.js.map +1 -1
- package/dist/node_modules/d3-array/src/quantile.js.map +1 -1
- package/dist/node_modules/d3-array/src/quickselect.js.map +1 -1
- package/dist/node_modules/d3-array/src/range.js.map +1 -1
- package/dist/node_modules/d3-array/src/sort.js.map +1 -1
- package/dist/node_modules/d3-array/src/ticks.js.map +1 -1
- package/dist/node_modules/d3-color/src/color.js.map +1 -1
- package/dist/node_modules/d3-color/src/define.js.map +1 -1
- package/dist/node_modules/d3-format/src/defaultLocale.js.map +1 -1
- package/dist/node_modules/d3-format/src/exponent.js.map +1 -1
- package/dist/node_modules/d3-format/src/formatDecimal.js.map +1 -1
- package/dist/node_modules/d3-format/src/formatGroup.js.map +1 -1
- package/dist/node_modules/d3-format/src/formatNumerals.js.map +1 -1
- package/dist/node_modules/d3-format/src/formatPrefixAuto.js.map +1 -1
- package/dist/node_modules/d3-format/src/formatRounded.js.map +1 -1
- package/dist/node_modules/d3-format/src/formatSpecifier.js.map +1 -1
- package/dist/node_modules/d3-format/src/formatTrim.js.map +1 -1
- package/dist/node_modules/d3-format/src/formatTypes.js.map +1 -1
- package/dist/node_modules/d3-format/src/identity.js.map +1 -1
- package/dist/node_modules/d3-format/src/locale.js.map +1 -1
- package/dist/node_modules/d3-format/src/precisionFixed.js.map +1 -1
- package/dist/node_modules/d3-format/src/precisionPrefix.js.map +1 -1
- package/dist/node_modules/d3-format/src/precisionRound.js.map +1 -1
- package/dist/node_modules/d3-interpolate/src/array.js.map +1 -1
- package/dist/node_modules/d3-interpolate/src/basis.js.map +1 -1
- package/dist/node_modules/d3-interpolate/src/basisClosed.js.map +1 -1
- package/dist/node_modules/d3-interpolate/src/color.js.map +1 -1
- package/dist/node_modules/d3-interpolate/src/date.js.map +1 -1
- package/dist/node_modules/d3-interpolate/src/number.js.map +1 -1
- package/dist/node_modules/d3-interpolate/src/numberArray.js.map +1 -1
- package/dist/node_modules/d3-interpolate/src/object.js.map +1 -1
- package/dist/node_modules/d3-interpolate/src/piecewise.js.map +1 -1
- package/dist/node_modules/d3-interpolate/src/rgb.js.map +1 -1
- package/dist/node_modules/d3-interpolate/src/round.js.map +1 -1
- package/dist/node_modules/d3-interpolate/src/string.js.map +1 -1
- package/dist/node_modules/d3-interpolate/src/value.js.map +1 -1
- package/dist/node_modules/d3-path/src/path.js.map +1 -1
- package/dist/node_modules/d3-scale/src/band.js.map +1 -1
- package/dist/node_modules/d3-scale/src/constant.js.map +1 -1
- package/dist/node_modules/d3-scale/src/continuous.js.map +1 -1
- package/dist/node_modules/d3-scale/src/diverging.js.map +1 -1
- package/dist/node_modules/d3-scale/src/identity.js.map +1 -1
- package/dist/node_modules/d3-scale/src/init.js.map +1 -1
- package/dist/node_modules/d3-scale/src/linear.js.map +1 -1
- package/dist/node_modules/d3-scale/src/log.js.map +1 -1
- package/dist/node_modules/d3-scale/src/nice.js.map +1 -1
- package/dist/node_modules/d3-scale/src/number.js.map +1 -1
- package/dist/node_modules/d3-scale/src/ordinal.js.map +1 -1
- package/dist/node_modules/d3-scale/src/pow.js.map +1 -1
- package/dist/node_modules/d3-scale/src/quantile.js.map +1 -1
- package/dist/node_modules/d3-scale/src/quantize.js.map +1 -1
- package/dist/node_modules/d3-scale/src/radial.js.map +1 -1
- package/dist/node_modules/d3-scale/src/sequential.js.map +1 -1
- package/dist/node_modules/d3-scale/src/sequentialQuantile.js.map +1 -1
- package/dist/node_modules/d3-scale/src/symlog.js.map +1 -1
- package/dist/node_modules/d3-scale/src/threshold.js.map +1 -1
- package/dist/node_modules/d3-scale/src/tickFormat.js.map +1 -1
- package/dist/node_modules/d3-scale/src/time.js.map +1 -1
- package/dist/node_modules/d3-scale/src/utcTime.js.map +1 -1
- package/dist/node_modules/d3-shape/src/area.js.map +1 -1
- package/dist/node_modules/d3-shape/src/array.js.map +1 -1
- package/dist/node_modules/d3-shape/src/constant.js.map +1 -1
- package/dist/node_modules/d3-shape/src/curve/basis.js.map +1 -1
- package/dist/node_modules/d3-shape/src/curve/basisClosed.js.map +1 -1
- package/dist/node_modules/d3-shape/src/curve/basisOpen.js.map +1 -1
- package/dist/node_modules/d3-shape/src/curve/bump.js.map +1 -1
- package/dist/node_modules/d3-shape/src/curve/linear.js.map +1 -1
- package/dist/node_modules/d3-shape/src/curve/linearClosed.js.map +1 -1
- package/dist/node_modules/d3-shape/src/curve/monotone.js.map +1 -1
- package/dist/node_modules/d3-shape/src/curve/natural.js.map +1 -1
- package/dist/node_modules/d3-shape/src/curve/step.js.map +1 -1
- package/dist/node_modules/d3-shape/src/line.js.map +1 -1
- package/dist/node_modules/d3-shape/src/noop.js.map +1 -1
- package/dist/node_modules/d3-shape/src/offset/expand.js.map +1 -1
- package/dist/node_modules/d3-shape/src/offset/none.js.map +1 -1
- package/dist/node_modules/d3-shape/src/offset/silhouette.js.map +1 -1
- package/dist/node_modules/d3-shape/src/offset/wiggle.js.map +1 -1
- package/dist/node_modules/d3-shape/src/order/none.js.map +1 -1
- package/dist/node_modules/d3-shape/src/path.js.map +1 -1
- package/dist/node_modules/d3-shape/src/point.js.map +1 -1
- package/dist/node_modules/d3-shape/src/stack.js.map +1 -1
- package/dist/node_modules/d3-shape/src/symbol/circle.js.map +1 -1
- package/dist/node_modules/d3-shape/src/symbol/cross.js.map +1 -1
- package/dist/node_modules/d3-shape/src/symbol/diamond.js.map +1 -1
- package/dist/node_modules/d3-shape/src/symbol/square.js.map +1 -1
- package/dist/node_modules/d3-shape/src/symbol/star.js.map +1 -1
- package/dist/node_modules/d3-shape/src/symbol/triangle.js.map +1 -1
- package/dist/node_modules/d3-shape/src/symbol/wye.js.map +1 -1
- package/dist/node_modules/d3-shape/src/symbol.js.map +1 -1
- package/dist/node_modules/d3-time/src/day.js.map +1 -1
- package/dist/node_modules/d3-time/src/hour.js.map +1 -1
- package/dist/node_modules/d3-time/src/interval.js.map +1 -1
- package/dist/node_modules/d3-time/src/millisecond.js.map +1 -1
- package/dist/node_modules/d3-time/src/minute.js.map +1 -1
- package/dist/node_modules/d3-time/src/month.js.map +1 -1
- package/dist/node_modules/d3-time/src/second.js.map +1 -1
- package/dist/node_modules/d3-time/src/ticks.js.map +1 -1
- package/dist/node_modules/d3-time/src/week.js.map +1 -1
- package/dist/node_modules/d3-time/src/year.js.map +1 -1
- package/dist/node_modules/d3-time-format/src/defaultLocale.js.map +1 -1
- package/dist/node_modules/d3-time-format/src/locale.js.map +1 -1
- package/dist/node_modules/decimal.js-light/decimal.js.map +1 -1
- package/dist/node_modules/eventemitter3/index.js.map +1 -1
- package/dist/node_modules/fast-equals/dist/es/index.js.map +1 -1
- package/dist/node_modules/internmap/src/index.js.map +1 -1
- package/dist/node_modules/lodash/_DataView.js.map +1 -1
- package/dist/node_modules/lodash/_Hash.js.map +1 -1
- package/dist/node_modules/lodash/_ListCache.js.map +1 -1
- package/dist/node_modules/lodash/_Map.js.map +1 -1
- package/dist/node_modules/lodash/_MapCache.js.map +1 -1
- package/dist/node_modules/lodash/_Promise.js.map +1 -1
- package/dist/node_modules/lodash/_Set.js.map +1 -1
- package/dist/node_modules/lodash/_SetCache.js.map +1 -1
- package/dist/node_modules/lodash/_Stack.js +2 -1
- package/dist/node_modules/lodash/_Stack.js.map +1 -1
- package/dist/node_modules/lodash/_Symbol.js.map +1 -1
- package/dist/node_modules/lodash/_Uint8Array.js.map +1 -1
- package/dist/node_modules/lodash/_WeakMap.js.map +1 -1
- package/dist/node_modules/lodash/_apply.js.map +1 -1
- package/dist/node_modules/lodash/_arrayEvery.js.map +1 -1
- package/dist/node_modules/lodash/_arrayFilter.js.map +1 -1
- package/dist/node_modules/lodash/_arrayIncludes.js.map +1 -1
- package/dist/node_modules/lodash/_arrayIncludesWith.js.map +1 -1
- package/dist/node_modules/lodash/_arrayLikeKeys.js.map +1 -1
- package/dist/node_modules/lodash/_arrayMap.js.map +1 -1
- package/dist/node_modules/lodash/_arrayPush.js.map +1 -1
- package/dist/node_modules/lodash/_arraySome.js.map +1 -1
- package/dist/node_modules/lodash/_asciiToArray.js.map +1 -1
- package/dist/node_modules/lodash/_assocIndexOf.js.map +1 -1
- package/dist/node_modules/lodash/_baseAssignValue.js.map +1 -1
- package/dist/node_modules/lodash/_baseEach.js.map +1 -1
- package/dist/node_modules/lodash/_baseEvery.js.map +1 -1
- package/dist/node_modules/lodash/_baseExtremum.js.map +1 -1
- package/dist/node_modules/lodash/_baseFindIndex.js.map +1 -1
- package/dist/node_modules/lodash/_baseFlatten.js.map +1 -1
- package/dist/node_modules/lodash/_baseFor.js.map +1 -1
- package/dist/node_modules/lodash/_baseForOwn.js.map +1 -1
- package/dist/node_modules/lodash/_baseGet.js.map +1 -1
- package/dist/node_modules/lodash/_baseGetAllKeys.js.map +1 -1
- package/dist/node_modules/lodash/_baseGetTag.js.map +1 -1
- package/dist/node_modules/lodash/_baseGt.js.map +1 -1
- package/dist/node_modules/lodash/_baseHasIn.js.map +1 -1
- package/dist/node_modules/lodash/_baseIndexOf.js.map +1 -1
- package/dist/node_modules/lodash/_baseIsArguments.js.map +1 -1
- package/dist/node_modules/lodash/_baseIsEqual.js.map +1 -1
- package/dist/node_modules/lodash/_baseIsEqualDeep.js.map +1 -1
- package/dist/node_modules/lodash/_baseIsMatch.js.map +1 -1
- package/dist/node_modules/lodash/_baseIsNaN.js.map +1 -1
- package/dist/node_modules/lodash/_baseIsNative.js.map +1 -1
- package/dist/node_modules/lodash/_baseIsTypedArray.js.map +1 -1
- package/dist/node_modules/lodash/_baseIteratee.js.map +1 -1
- package/dist/node_modules/lodash/_baseKeys.js.map +1 -1
- package/dist/node_modules/lodash/_baseLt.js.map +1 -1
- package/dist/node_modules/lodash/_baseMap.js.map +1 -1
- package/dist/node_modules/lodash/_baseMatches.js.map +1 -1
- package/dist/node_modules/lodash/_baseMatchesProperty.js.map +1 -1
- package/dist/node_modules/lodash/_baseOrderBy.js.map +1 -1
- package/dist/node_modules/lodash/_baseProperty.js.map +1 -1
- package/dist/node_modules/lodash/_basePropertyDeep.js.map +1 -1
- package/dist/node_modules/lodash/_baseRange.js.map +1 -1
- package/dist/node_modules/lodash/_baseRest.js.map +1 -1
- package/dist/node_modules/lodash/_baseSetToString.js.map +1 -1
- package/dist/node_modules/lodash/_baseSlice.js.map +1 -1
- package/dist/node_modules/lodash/_baseSome.js.map +1 -1
- package/dist/node_modules/lodash/_baseSortBy.js.map +1 -1
- package/dist/node_modules/lodash/_baseTimes.js.map +1 -1
- package/dist/node_modules/lodash/_baseToString.js.map +1 -1
- package/dist/node_modules/lodash/_baseTrim.js.map +1 -1
- package/dist/node_modules/lodash/_baseUnary.js.map +1 -1
- package/dist/node_modules/lodash/_baseUniq.js.map +1 -1
- package/dist/node_modules/lodash/_cacheHas.js.map +1 -1
- package/dist/node_modules/lodash/_castPath.js.map +1 -1
- package/dist/node_modules/lodash/_castSlice.js.map +1 -1
- package/dist/node_modules/lodash/_compareAscending.js.map +1 -1
- package/dist/node_modules/lodash/_compareMultiple.js.map +1 -1
- package/dist/node_modules/lodash/_coreJsData.js.map +1 -1
- package/dist/node_modules/lodash/_createBaseEach.js.map +1 -1
- package/dist/node_modules/lodash/_createBaseFor.js.map +1 -1
- package/dist/node_modules/lodash/_createCaseFirst.js.map +1 -1
- package/dist/node_modules/lodash/_createFind.js.map +1 -1
- package/dist/node_modules/lodash/_createRange.js.map +1 -1
- package/dist/node_modules/lodash/_createSet.js.map +1 -1
- package/dist/node_modules/lodash/_defineProperty.js.map +1 -1
- package/dist/node_modules/lodash/_equalArrays.js.map +1 -1
- package/dist/node_modules/lodash/_equalByTag.js.map +1 -1
- package/dist/node_modules/lodash/_equalObjects.js.map +1 -1
- package/dist/node_modules/lodash/_freeGlobal.js.map +1 -1
- package/dist/node_modules/lodash/_getAllKeys.js.map +1 -1
- package/dist/node_modules/lodash/_getMapData.js.map +1 -1
- package/dist/node_modules/lodash/_getMatchData.js.map +1 -1
- package/dist/node_modules/lodash/_getNative.js.map +1 -1
- package/dist/node_modules/lodash/_getPrototype.js.map +1 -1
- package/dist/node_modules/lodash/_getRawTag.js.map +1 -1
- package/dist/node_modules/lodash/_getSymbols.js.map +1 -1
- package/dist/node_modules/lodash/_getTag.js.map +1 -1
- package/dist/node_modules/lodash/_getValue.js.map +1 -1
- package/dist/node_modules/lodash/_hasPath.js.map +1 -1
- package/dist/node_modules/lodash/_hasUnicode.js.map +1 -1
- package/dist/node_modules/lodash/_hashClear.js.map +1 -1
- package/dist/node_modules/lodash/_hashDelete.js.map +1 -1
- package/dist/node_modules/lodash/_hashGet.js.map +1 -1
- package/dist/node_modules/lodash/_hashHas.js.map +1 -1
- package/dist/node_modules/lodash/_hashSet.js.map +1 -1
- package/dist/node_modules/lodash/_isFlattenable.js.map +1 -1
- package/dist/node_modules/lodash/_isIndex.js.map +1 -1
- package/dist/node_modules/lodash/_isIterateeCall.js.map +1 -1
- package/dist/node_modules/lodash/_isKey.js.map +1 -1
- package/dist/node_modules/lodash/_isKeyable.js.map +1 -1
- package/dist/node_modules/lodash/_isMasked.js.map +1 -1
- package/dist/node_modules/lodash/_isPrototype.js.map +1 -1
- package/dist/node_modules/lodash/_isStrictComparable.js.map +1 -1
- package/dist/node_modules/lodash/_listCacheClear.js.map +1 -1
- package/dist/node_modules/lodash/_listCacheDelete.js.map +1 -1
- package/dist/node_modules/lodash/_listCacheGet.js.map +1 -1
- package/dist/node_modules/lodash/_listCacheHas.js.map +1 -1
- package/dist/node_modules/lodash/_listCacheSet.js.map +1 -1
- package/dist/node_modules/lodash/_mapCacheClear.js.map +1 -1
- package/dist/node_modules/lodash/_mapCacheDelete.js.map +1 -1
- package/dist/node_modules/lodash/_mapCacheGet.js.map +1 -1
- package/dist/node_modules/lodash/_mapCacheHas.js.map +1 -1
- package/dist/node_modules/lodash/_mapCacheSet.js.map +1 -1
- package/dist/node_modules/lodash/_mapToArray.js.map +1 -1
- package/dist/node_modules/lodash/_matchesStrictComparable.js.map +1 -1
- package/dist/node_modules/lodash/_memoizeCapped.js.map +1 -1
- package/dist/node_modules/lodash/_nativeCreate.js.map +1 -1
- package/dist/node_modules/lodash/_nativeKeys.js.map +1 -1
- package/dist/node_modules/lodash/_nodeUtil.js.map +1 -1
- package/dist/node_modules/lodash/_objectToString.js.map +1 -1
- package/dist/node_modules/lodash/_overArg.js.map +1 -1
- package/dist/node_modules/lodash/_overRest.js.map +1 -1
- package/dist/node_modules/lodash/_root.js.map +1 -1
- package/dist/node_modules/lodash/_setCacheAdd.js.map +1 -1
- package/dist/node_modules/lodash/_setCacheHas.js.map +1 -1
- package/dist/node_modules/lodash/_setToArray.js.map +1 -1
- package/dist/node_modules/lodash/_setToString.js.map +1 -1
- package/dist/node_modules/lodash/_shortOut.js.map +1 -1
- package/dist/node_modules/lodash/_stackClear.js.map +1 -1
- package/dist/node_modules/lodash/_stackDelete.js.map +1 -1
- package/dist/node_modules/lodash/_stackGet.js.map +1 -1
- package/dist/node_modules/lodash/_stackHas.js.map +1 -1
- package/dist/node_modules/lodash/_stackSet.js.map +1 -1
- package/dist/node_modules/lodash/_strictIndexOf.js.map +1 -1
- package/dist/node_modules/lodash/_stringToArray.js.map +1 -1
- package/dist/node_modules/lodash/_stringToPath.js.map +1 -1
- package/dist/node_modules/lodash/_toKey.js.map +1 -1
- package/dist/node_modules/lodash/_toSource.js.map +1 -1
- package/dist/node_modules/lodash/_trimmedEndIndex.js.map +1 -1
- package/dist/node_modules/lodash/_unicodeToArray.js.map +1 -1
- package/dist/node_modules/lodash/constant.js.map +1 -1
- package/dist/node_modules/lodash/debounce.js.map +1 -1
- package/dist/node_modules/lodash/eq.js.map +1 -1
- package/dist/node_modules/lodash/every.js.map +1 -1
- package/dist/node_modules/lodash/find.js.map +1 -1
- package/dist/node_modules/lodash/findIndex.js.map +1 -1
- package/dist/node_modules/lodash/flatMap.js.map +1 -1
- package/dist/node_modules/lodash/get.js.map +1 -1
- package/dist/node_modules/lodash/hasIn.js.map +1 -1
- package/dist/node_modules/lodash/identity.js.map +1 -1
- package/dist/node_modules/lodash/isArguments.js.map +1 -1
- package/dist/node_modules/lodash/isArray.js.map +1 -1
- package/dist/node_modules/lodash/isArrayLike.js.map +1 -1
- package/dist/node_modules/lodash/isBoolean.js.map +1 -1
- package/dist/node_modules/lodash/isBuffer.js.map +1 -1
- package/dist/node_modules/lodash/isEqual.js.map +1 -1
- package/dist/node_modules/lodash/isFunction.js.map +1 -1
- package/dist/node_modules/lodash/isLength.js.map +1 -1
- package/dist/node_modules/lodash/isNaN.js.map +1 -1
- package/dist/node_modules/lodash/isNil.js.map +1 -1
- package/dist/node_modules/lodash/isNumber.js.map +1 -1
- package/dist/node_modules/lodash/isObject.js.map +1 -1
- package/dist/node_modules/lodash/isObjectLike.js.map +1 -1
- package/dist/node_modules/lodash/isPlainObject.js.map +1 -1
- package/dist/node_modules/lodash/isString.js.map +1 -1
- package/dist/node_modules/lodash/isSymbol.js.map +1 -1
- package/dist/node_modules/lodash/isTypedArray.js.map +1 -1
- package/dist/node_modules/lodash/keys.js.map +1 -1
- package/dist/node_modules/lodash/last.js.map +1 -1
- package/dist/node_modules/lodash/map.js.map +1 -1
- package/dist/node_modules/lodash/mapValues.js.map +1 -1
- package/dist/node_modules/lodash/max.js.map +1 -1
- package/dist/node_modules/lodash/maxBy.js.map +1 -1
- package/dist/node_modules/lodash/memoize.js.map +1 -1
- package/dist/node_modules/lodash/min.js.map +1 -1
- package/dist/node_modules/lodash/minBy.js.map +1 -1
- package/dist/node_modules/lodash/noop.js.map +1 -1
- package/dist/node_modules/lodash/now.js.map +1 -1
- package/dist/node_modules/lodash/property.js.map +1 -1
- package/dist/node_modules/lodash/range.js.map +1 -1
- package/dist/node_modules/lodash/some.js.map +1 -1
- package/dist/node_modules/lodash/sortBy.js.map +1 -1
- package/dist/node_modules/lodash/stubArray.js.map +1 -1
- package/dist/node_modules/lodash/stubFalse.js.map +1 -1
- package/dist/node_modules/lodash/throttle.js.map +1 -1
- package/dist/node_modules/lodash/toFinite.js.map +1 -1
- package/dist/node_modules/lodash/toInteger.js.map +1 -1
- package/dist/node_modules/lodash/toNumber.js.map +1 -1
- package/dist/node_modules/lodash/toString.js.map +1 -1
- package/dist/node_modules/lodash/uniqBy.js.map +1 -1
- package/dist/node_modules/lodash/upperFirst.js.map +1 -1
- package/dist/node_modules/object-assign/index.js.map +1 -1
- package/dist/node_modules/prop-types/checkPropTypes.js.map +1 -1
- package/dist/node_modules/prop-types/factoryWithThrowingShims.js.map +1 -1
- package/dist/node_modules/prop-types/factoryWithTypeCheckers.js.map +1 -1
- package/dist/node_modules/prop-types/index.js.map +1 -1
- package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js.map +1 -1
- package/dist/node_modules/prop-types/lib/has.js.map +1 -1
- package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js.map +1 -1
- package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js.map +1 -1
- package/dist/node_modules/prop-types/node_modules/react-is/index.js.map +1 -1
- package/dist/node_modules/react-is/cjs/react-is.development.js.map +1 -1
- package/dist/node_modules/react-is/cjs/react-is.production.min.js.map +1 -1
- package/dist/node_modules/react-is/index.js.map +1 -1
- package/dist/node_modules/react-smooth/es6/Animate.js +2 -2
- package/dist/node_modules/react-smooth/es6/Animate.js.map +1 -1
- package/dist/node_modules/react-smooth/es6/AnimateManager.js.map +1 -1
- package/dist/node_modules/react-smooth/es6/configUpdate.js.map +1 -1
- package/dist/node_modules/react-smooth/es6/easing.js.map +1 -1
- package/dist/node_modules/react-smooth/es6/setRafTimeout.js.map +1 -1
- package/dist/node_modules/react-smooth/es6/util.js.map +1 -1
- package/dist/node_modules/recharts/es6/cartesian/Area.js +13 -13
- package/dist/node_modules/recharts/es6/cartesian/Area.js.map +1 -1
- package/dist/node_modules/recharts/es6/cartesian/Bar.js +9 -9
- package/dist/node_modules/recharts/es6/cartesian/Bar.js.map +1 -1
- package/dist/node_modules/recharts/es6/cartesian/Brush.js +12 -12
- package/dist/node_modules/recharts/es6/cartesian/Brush.js.map +1 -1
- package/dist/node_modules/recharts/es6/cartesian/CartesianAxis.js +7 -7
- package/dist/node_modules/recharts/es6/cartesian/CartesianAxis.js.map +1 -1
- package/dist/node_modules/recharts/es6/cartesian/ErrorBar.js +4 -4
- package/dist/node_modules/recharts/es6/cartesian/ErrorBar.js.map +1 -1
- package/dist/node_modules/recharts/es6/cartesian/ReferenceArea.js +3 -3
- package/dist/node_modules/recharts/es6/cartesian/ReferenceArea.js.map +1 -1
- package/dist/node_modules/recharts/es6/cartesian/ReferenceDot.js +3 -3
- package/dist/node_modules/recharts/es6/cartesian/ReferenceDot.js.map +1 -1
- package/dist/node_modules/recharts/es6/cartesian/ReferenceLine.js +4 -4
- package/dist/node_modules/recharts/es6/cartesian/ReferenceLine.js.map +1 -1
- package/dist/node_modules/recharts/es6/cartesian/XAxis.js +3 -3
- package/dist/node_modules/recharts/es6/cartesian/XAxis.js.map +1 -1
- package/dist/node_modules/recharts/es6/cartesian/YAxis.js +3 -3
- package/dist/node_modules/recharts/es6/cartesian/YAxis.js.map +1 -1
- package/dist/node_modules/recharts/es6/cartesian/getEquidistantTicks.js.map +1 -1
- package/dist/node_modules/recharts/es6/cartesian/getTicks.js.map +1 -1
- package/dist/node_modules/recharts/es6/chart/AccessibilityManager.js +1 -1
- package/dist/node_modules/recharts/es6/chart/AccessibilityManager.js.map +1 -1
- package/dist/node_modules/recharts/es6/chart/AreaChart.js.map +1 -1
- package/dist/node_modules/recharts/es6/chart/BarChart.js.map +1 -1
- package/dist/node_modules/recharts/es6/chart/PieChart.js.map +1 -1
- package/dist/node_modules/recharts/es6/chart/generateCategoricalChart.js +22 -22
- package/dist/node_modules/recharts/es6/chart/generateCategoricalChart.js.map +1 -1
- package/dist/node_modules/recharts/es6/component/Cell.js.map +1 -1
- package/dist/node_modules/recharts/es6/component/Cursor.js +1 -1
- package/dist/node_modules/recharts/es6/component/Cursor.js.map +1 -1
- package/dist/node_modules/recharts/es6/component/DefaultLegendContent.js +11 -11
- package/dist/node_modules/recharts/es6/component/DefaultLegendContent.js.map +1 -1
- package/dist/node_modules/recharts/es6/component/DefaultTooltipContent.js +6 -6
- package/dist/node_modules/recharts/es6/component/DefaultTooltipContent.js.map +1 -1
- package/dist/node_modules/recharts/es6/component/Label.js +14 -14
- package/dist/node_modules/recharts/es6/component/Label.js.map +1 -1
- package/dist/node_modules/recharts/es6/component/LabelList.js +6 -6
- package/dist/node_modules/recharts/es6/component/LabelList.js.map +1 -1
- package/dist/node_modules/recharts/es6/component/Legend.js +5 -5
- package/dist/node_modules/recharts/es6/component/Legend.js.map +1 -1
- package/dist/node_modules/recharts/es6/component/ResponsiveContainer.js +3 -3
- package/dist/node_modules/recharts/es6/component/ResponsiveContainer.js.map +1 -1
- package/dist/node_modules/recharts/es6/component/Text.js +2 -2
- package/dist/node_modules/recharts/es6/component/Text.js.map +1 -1
- package/dist/node_modules/recharts/es6/component/Tooltip.js +3 -3
- package/dist/node_modules/recharts/es6/component/Tooltip.js.map +1 -1
- package/dist/node_modules/recharts/es6/component/TooltipBoundingBox.js +2 -2
- package/dist/node_modules/recharts/es6/component/TooltipBoundingBox.js.map +1 -1
- package/dist/node_modules/recharts/es6/container/Layer.js +2 -2
- package/dist/node_modules/recharts/es6/container/Layer.js.map +1 -1
- package/dist/node_modules/recharts/es6/container/Surface.js +2 -2
- package/dist/node_modules/recharts/es6/container/Surface.js.map +1 -1
- package/dist/node_modules/recharts/es6/context/chartLayoutContext.js +2 -2
- package/dist/node_modules/recharts/es6/context/chartLayoutContext.js.map +1 -1
- package/dist/node_modules/recharts/es6/polar/Pie.js +13 -13
- package/dist/node_modules/recharts/es6/polar/Pie.js.map +1 -1
- package/dist/node_modules/recharts/es6/polar/PolarAngleAxis.js +8 -8
- package/dist/node_modules/recharts/es6/polar/PolarAngleAxis.js.map +1 -1
- package/dist/node_modules/recharts/es6/polar/PolarRadiusAxis.js +6 -6
- package/dist/node_modules/recharts/es6/polar/PolarRadiusAxis.js.map +1 -1
- package/dist/node_modules/recharts/es6/shape/Cross.js +1 -1
- package/dist/node_modules/recharts/es6/shape/Cross.js.map +1 -1
- package/dist/node_modules/recharts/es6/shape/Curve.js +1 -1
- package/dist/node_modules/recharts/es6/shape/Curve.js.map +1 -1
- package/dist/node_modules/recharts/es6/shape/Dot.js +1 -1
- package/dist/node_modules/recharts/es6/shape/Dot.js.map +1 -1
- package/dist/node_modules/recharts/es6/shape/Polygon.js +4 -4
- package/dist/node_modules/recharts/es6/shape/Polygon.js.map +1 -1
- package/dist/node_modules/recharts/es6/shape/Rectangle.js +4 -4
- package/dist/node_modules/recharts/es6/shape/Rectangle.js.map +1 -1
- package/dist/node_modules/recharts/es6/shape/Sector.js +1 -1
- package/dist/node_modules/recharts/es6/shape/Sector.js.map +1 -1
- package/dist/node_modules/recharts/es6/shape/Symbols.js +1 -1
- package/dist/node_modules/recharts/es6/shape/Symbols.js.map +1 -1
- package/dist/node_modules/recharts/es6/shape/Trapezoid.js +4 -4
- package/dist/node_modules/recharts/es6/shape/Trapezoid.js.map +1 -1
- package/dist/node_modules/recharts/es6/util/ActiveShapeUtils.js +9 -9
- package/dist/node_modules/recharts/es6/util/ActiveShapeUtils.js.map +1 -1
- package/dist/node_modules/recharts/es6/util/BarUtils.js +1 -1
- package/dist/node_modules/recharts/es6/util/BarUtils.js.map +1 -1
- package/dist/node_modules/recharts/es6/util/CartesianUtils.js +1 -1
- package/dist/node_modules/recharts/es6/util/CartesianUtils.js.map +1 -1
- package/dist/node_modules/recharts/es6/util/ChartUtils.js.map +1 -1
- package/dist/node_modules/recharts/es6/util/CssPrefixUtils.js.map +1 -1
- package/dist/node_modules/recharts/es6/util/DOMUtils.js.map +1 -1
- package/dist/node_modules/recharts/es6/util/DataUtils.js.map +1 -1
- package/dist/node_modules/recharts/es6/util/DetectReferenceElementsDomain.js.map +1 -1
- package/dist/node_modules/recharts/es6/util/Events.js.map +1 -1
- package/dist/node_modules/recharts/es6/util/Global.js.map +1 -1
- package/dist/node_modules/recharts/es6/util/IfOverflowMatches.js.map +1 -1
- package/dist/node_modules/recharts/es6/util/LogUtils.js.map +1 -1
- package/dist/node_modules/recharts/es6/util/PolarUtils.js +1 -1
- package/dist/node_modules/recharts/es6/util/PolarUtils.js.map +1 -1
- package/dist/node_modules/recharts/es6/util/ReactUtils.js +1 -1
- package/dist/node_modules/recharts/es6/util/ReactUtils.js.map +1 -1
- package/dist/node_modules/recharts/es6/util/ReduceCSSCalc.js +1 -1
- package/dist/node_modules/recharts/es6/util/ReduceCSSCalc.js.map +1 -1
- package/dist/node_modules/recharts/es6/util/ShallowEqual.js.map +1 -1
- package/dist/node_modules/recharts/es6/util/TickUtils.js.map +1 -1
- package/dist/node_modules/recharts/es6/util/calculateViewBox.js.map +1 -1
- package/dist/node_modules/recharts/es6/util/cursor/getCursorPoints.js.map +1 -1
- package/dist/node_modules/recharts/es6/util/cursor/getCursorRectangle.js.map +1 -1
- package/dist/node_modules/recharts/es6/util/cursor/getRadialCursorPoints.js.map +1 -1
- package/dist/node_modules/recharts/es6/util/getEveryNthWithCondition.js.map +1 -1
- package/dist/node_modules/recharts/es6/util/getLegendProps.js.map +1 -1
- package/dist/node_modules/recharts/es6/util/isDomainSpecifiedByUser.js.map +1 -1
- package/dist/node_modules/recharts/es6/util/payload/getUniqPayload.js.map +1 -1
- package/dist/node_modules/recharts/es6/util/tooltip/translate.js.map +1 -1
- package/dist/node_modules/recharts/es6/util/types.js +1 -1
- package/dist/node_modules/recharts/es6/util/types.js.map +1 -1
- package/dist/node_modules/recharts-scale/es6/getNiceTickValues.js.map +1 -1
- package/dist/node_modules/recharts-scale/es6/util/arithmetic.js.map +1 -1
- package/dist/node_modules/recharts-scale/es6/util/utils.js.map +1 -1
- package/dist/node_modules/sonner/dist/index.js.map +1 -1
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +1 -1
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -1
- package/dist/node_modules/tiny-invariant/dist/esm/tiny-invariant.js.map +1 -1
- package/dist/stories/LoadMore.stories.d.ts +0 -1
- package/package.json +15 -7
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { useAccount as e, useAllAccounts as t, useArchiveAccount as n, useCreateAccount as r, usePagedAccounts as i, usePagedTransactions as a, useRecordTransaction as ee, useUpdateAccount as te } from "../hooks/useBrainyRichApi.js";
|
|
2
|
-
import { LoadMore as
|
|
3
|
-
import { ConfirmDialog as
|
|
4
|
-
import { ActorName as
|
|
5
|
-
import { DonutChart as
|
|
6
|
-
import { HouseholdPicker as
|
|
2
|
+
import { LoadMore as ne } from "../components/LoadMore.js";
|
|
3
|
+
import { ConfirmDialog as re } from "../components/ConfirmDialog.js";
|
|
4
|
+
import { ActorName as o } from "../components/ActorName.js";
|
|
5
|
+
import { DonutChart as ie, FadeIn as s, GlassCard as ae, StatTile as c } from "../components/viz.js";
|
|
6
|
+
import { HouseholdPicker as l } from "../components/pickers.js";
|
|
7
7
|
import "../components/index.js";
|
|
8
|
-
import { EmptyState as
|
|
9
|
-
import { hapticSuccess as
|
|
10
|
-
import { useTrackBrainyRichPageView as
|
|
11
|
-
import { DocumentsPanel as
|
|
12
|
-
import { TagField as
|
|
13
|
-
import { useMemo as
|
|
14
|
-
import { Archive as
|
|
15
|
-
import { jsx as
|
|
16
|
-
import { Badge as
|
|
8
|
+
import { EmptyState as u, ErrorState as d, LoadingState as f, SectionShell as p, formatCompact as oe, formatDate as se, formatMoney as m, statusBadgeVariant as ce } from "./_shared.js";
|
|
9
|
+
import { hapticSuccess as le, showToast as ue } from "../utils/nativeControls.js";
|
|
10
|
+
import { useTrackBrainyRichPageView as de } from "../hooks/useBrainyRichAnalytics.js";
|
|
11
|
+
import { DocumentsPanel as h } from "../components/reuse/DocumentsPanel.js";
|
|
12
|
+
import { TagField as g } from "../components/reuse/TagField.js";
|
|
13
|
+
import { useMemo as fe, useState as _ } from "react";
|
|
14
|
+
import { Archive as pe, ArrowDownRight as v, ArrowUpRight as y, Building2 as me, CheckCircle2 as he, ChevronRight as ge, Landmark as b, Layers as _e, MoreHorizontal as ve, Pencil as ye, Plus as be, Receipt as x, Wallet as xe } from "lucide-react";
|
|
15
|
+
import { jsx as S, jsxs as C } from "react/jsx-runtime";
|
|
16
|
+
import { Badge as w, Button as T, Card as Se, CardContent as Ce, CardDescription as we, CardHeader as Te, CardTitle as Ee, Dialog as E, DialogClose as De, DialogContent as D, DialogDescription as O, DialogFooter as k, DialogHeader as A, DialogTitle as j, DropdownMenu as Oe, DropdownMenuContent as ke, DropdownMenuItem as Ae, DropdownMenuTrigger as je, Input as M, Label as N, Select as Me, SelectContent as Ne, SelectItem as Pe, SelectTrigger as Fe, SelectValue as Ie, Sheet as P, SheetContent as F, SheetDescription as I, SheetHeader as L, SheetTitle as Le, Table as Re, TableBody as ze, TableCell as R, TableHead as z, TableHeader as Be, TableRow as B, Tabs as V, TabsContent as H, TabsList as U, TabsTrigger as W, Textarea as Ve } from "@burdenoff/fe-libs/ui";
|
|
17
17
|
//#region src/brainyrich/pages/AccountsPage.tsx
|
|
18
|
-
var
|
|
18
|
+
var G = [
|
|
19
19
|
"BANK",
|
|
20
20
|
"BROKERAGE",
|
|
21
21
|
"RETIREMENT",
|
|
@@ -24,7 +24,7 @@ var K = [
|
|
|
24
24
|
"REAL_ESTATE",
|
|
25
25
|
"ALTERNATIVE",
|
|
26
26
|
"LIABILITY"
|
|
27
|
-
],
|
|
27
|
+
], He = [
|
|
28
28
|
"BUY",
|
|
29
29
|
"SELL",
|
|
30
30
|
"DIVIDEND",
|
|
@@ -33,7 +33,7 @@ var K = [
|
|
|
33
33
|
"WITHDRAWAL",
|
|
34
34
|
"FEE",
|
|
35
35
|
"TRANSFER"
|
|
36
|
-
],
|
|
36
|
+
], Ue = {
|
|
37
37
|
BANK: "teal",
|
|
38
38
|
BROKERAGE: "brand",
|
|
39
39
|
RETIREMENT: "blue",
|
|
@@ -43,15 +43,15 @@ var K = [
|
|
|
43
43
|
ALTERNATIVE: "indigo",
|
|
44
44
|
LIABILITY: "error"
|
|
45
45
|
};
|
|
46
|
-
function
|
|
46
|
+
function K(e) {
|
|
47
47
|
return e === "DEPOSIT" || e === "DIVIDEND" || e === "INTEREST" || e === "SELL" || e === "TRANSFER";
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function q(e) {
|
|
50
50
|
if (e.trim() === "") return;
|
|
51
51
|
let t = Number(e);
|
|
52
52
|
return Number.isFinite(t) ? t : void 0;
|
|
53
53
|
}
|
|
54
|
-
var
|
|
54
|
+
var J = {
|
|
55
55
|
name: "",
|
|
56
56
|
type: "BANK",
|
|
57
57
|
institution: "",
|
|
@@ -59,7 +59,7 @@ var Y = {
|
|
|
59
59
|
cashBalance: "",
|
|
60
60
|
accountMask: "",
|
|
61
61
|
householdId: null
|
|
62
|
-
},
|
|
62
|
+
}, We = {
|
|
63
63
|
type: "DEPOSIT",
|
|
64
64
|
tradeDate: "",
|
|
65
65
|
symbol: "",
|
|
@@ -69,9 +69,9 @@ var Y = {
|
|
|
69
69
|
fee: "",
|
|
70
70
|
notes: ""
|
|
71
71
|
};
|
|
72
|
-
function
|
|
73
|
-
|
|
74
|
-
let e = t().data, a = i(), [
|
|
72
|
+
function Y() {
|
|
73
|
+
de("brainyrich.accounts.viewed");
|
|
74
|
+
let e = t().data, a = i(), [o, l] = _(void 0), [se, h] = _(!1), [g, v] = _(J), [y, x] = _(null), [P, F] = _(J), [I, L] = _(null), [Le, V] = _(!1), [H, U] = _(void 0), [W, G] = _(We), K = r(), Y = te(), qe = n(), X = ee(), Je = e.reduce((e, t) => e + (t.cashBalance ?? 0), 0), Ye = e.filter((e) => e.status === "ACTIVE").length, Xe = new Set(e.map((e) => e.institution).filter((e) => !!e)).size, Z = e[0]?.currency ?? "USD", Ze = fe(() => {
|
|
75
75
|
let t = /* @__PURE__ */ new Map();
|
|
76
76
|
for (let n of e) {
|
|
77
77
|
let e = n.cashBalance ?? 0;
|
|
@@ -80,25 +80,25 @@ function X() {
|
|
|
80
80
|
return [...t.entries()].map(([e, t]) => ({
|
|
81
81
|
label: e.replace(/_/g, " "),
|
|
82
82
|
value: t,
|
|
83
|
-
tone:
|
|
83
|
+
tone: Ue[e]
|
|
84
84
|
})).sort((e, t) => t.value - e.value);
|
|
85
85
|
}, [e]);
|
|
86
|
-
function
|
|
87
|
-
|
|
86
|
+
function Qe() {
|
|
87
|
+
v(J), h(!0);
|
|
88
88
|
}
|
|
89
|
-
function
|
|
90
|
-
|
|
91
|
-
name:
|
|
92
|
-
type:
|
|
93
|
-
institution:
|
|
94
|
-
currency:
|
|
95
|
-
cashBalance:
|
|
96
|
-
accountMask:
|
|
97
|
-
householdId:
|
|
98
|
-
}, { onSuccess: () =>
|
|
89
|
+
function $e() {
|
|
90
|
+
g.name.trim() && K.mutate({
|
|
91
|
+
name: g.name.trim(),
|
|
92
|
+
type: g.type,
|
|
93
|
+
institution: g.institution.trim() || null,
|
|
94
|
+
currency: g.currency.trim() || "USD",
|
|
95
|
+
cashBalance: q(g.cashBalance) ?? 0,
|
|
96
|
+
accountMask: g.accountMask.trim() || null,
|
|
97
|
+
householdId: g.householdId
|
|
98
|
+
}, { onSuccess: () => h(!1) });
|
|
99
99
|
}
|
|
100
|
-
function
|
|
101
|
-
|
|
100
|
+
function et(e) {
|
|
101
|
+
x(e), F({
|
|
102
102
|
name: e.name,
|
|
103
103
|
type: e.type,
|
|
104
104
|
institution: e.institution ?? "",
|
|
@@ -108,241 +108,245 @@ function X() {
|
|
|
108
108
|
householdId: e.householdId
|
|
109
109
|
});
|
|
110
110
|
}
|
|
111
|
-
function
|
|
112
|
-
!
|
|
113
|
-
id:
|
|
111
|
+
function tt() {
|
|
112
|
+
!y || !P.name.trim() || Y.mutate({
|
|
113
|
+
id: y.id,
|
|
114
114
|
input: {
|
|
115
|
-
name:
|
|
116
|
-
type:
|
|
117
|
-
institution:
|
|
118
|
-
currency:
|
|
119
|
-
cashBalance:
|
|
120
|
-
accountMask:
|
|
121
|
-
householdId:
|
|
115
|
+
name: P.name.trim(),
|
|
116
|
+
type: P.type,
|
|
117
|
+
institution: P.institution.trim() || null,
|
|
118
|
+
currency: P.currency.trim() || "USD",
|
|
119
|
+
cashBalance: q(P.cashBalance) ?? 0,
|
|
120
|
+
accountMask: P.accountMask.trim() || null,
|
|
121
|
+
householdId: P.householdId
|
|
122
122
|
}
|
|
123
|
-
}, { onSuccess: () =>
|
|
123
|
+
}, { onSuccess: () => x(null) });
|
|
124
124
|
}
|
|
125
|
-
function
|
|
126
|
-
if (!
|
|
127
|
-
let e =
|
|
128
|
-
|
|
129
|
-
|
|
125
|
+
function nt() {
|
|
126
|
+
if (!I) return;
|
|
127
|
+
let e = I.id;
|
|
128
|
+
qe.mutate(e, { onSuccess: () => {
|
|
129
|
+
le(), ue("Account archived"), L(null), o === e && l(void 0);
|
|
130
130
|
} });
|
|
131
131
|
}
|
|
132
|
-
function
|
|
133
|
-
|
|
132
|
+
function rt(e) {
|
|
133
|
+
G(We), U(e), l(void 0), V(!0);
|
|
134
|
+
}
|
|
135
|
+
function it() {
|
|
136
|
+
let e = H;
|
|
137
|
+
V(!1), U(void 0), e && l(e);
|
|
134
138
|
}
|
|
135
|
-
let Q =
|
|
136
|
-
function
|
|
137
|
-
if (!
|
|
138
|
-
let e = new Date(
|
|
139
|
+
let Q = q(W.amount), $ = Q !== void 0 && Q > 0, at = !!(H && W.tradeDate) && $;
|
|
140
|
+
function ot() {
|
|
141
|
+
if (!H || !W.tradeDate || !$) return;
|
|
142
|
+
let e = new Date(W.tradeDate);
|
|
139
143
|
Number.isNaN(e.getTime()) || X.mutate({
|
|
140
|
-
accountId:
|
|
141
|
-
type:
|
|
144
|
+
accountId: H,
|
|
145
|
+
type: W.type,
|
|
142
146
|
tradeDate: e.toISOString(),
|
|
143
|
-
symbol:
|
|
144
|
-
quantity:
|
|
145
|
-
price:
|
|
147
|
+
symbol: W.symbol.trim() || null,
|
|
148
|
+
quantity: q(W.quantity),
|
|
149
|
+
price: q(W.price),
|
|
146
150
|
amount: Q,
|
|
147
|
-
fee:
|
|
148
|
-
notes:
|
|
149
|
-
}, { onSuccess:
|
|
151
|
+
fee: q(W.fee),
|
|
152
|
+
notes: W.notes.trim() || null
|
|
153
|
+
}, { onSuccess: it });
|
|
150
154
|
}
|
|
151
|
-
return /* @__PURE__ */
|
|
155
|
+
return /* @__PURE__ */ S("div", {
|
|
152
156
|
"data-tour": "brainyrich-page-accounts",
|
|
153
157
|
className: "contents",
|
|
154
|
-
children: /* @__PURE__ */
|
|
158
|
+
children: /* @__PURE__ */ C(p, {
|
|
155
159
|
title: "Accounts",
|
|
156
160
|
description: "Linked bank, brokerage and retirement accounts with recent activity.",
|
|
157
161
|
badges: [`${e.length} account${e.length === 1 ? "" : "s"}`],
|
|
158
162
|
actionLabel: "New account",
|
|
159
|
-
onAction:
|
|
163
|
+
onAction: Qe,
|
|
160
164
|
children: [
|
|
161
|
-
/* @__PURE__ */
|
|
165
|
+
/* @__PURE__ */ C("div", {
|
|
162
166
|
className: "grid gap-4 lg:grid-cols-3",
|
|
163
|
-
children: [/* @__PURE__ */
|
|
167
|
+
children: [/* @__PURE__ */ C("div", {
|
|
164
168
|
className: "grid gap-4 sm:grid-cols-2 lg:col-span-2",
|
|
165
169
|
children: [
|
|
166
|
-
/* @__PURE__ */
|
|
170
|
+
/* @__PURE__ */ S(s, {
|
|
167
171
|
index: 0,
|
|
168
|
-
children: /* @__PURE__ */
|
|
172
|
+
children: /* @__PURE__ */ S(c, {
|
|
169
173
|
label: "Total cash",
|
|
170
|
-
value:
|
|
174
|
+
value: m(Je, Z),
|
|
171
175
|
glow: !0,
|
|
172
|
-
icon: /* @__PURE__ */
|
|
176
|
+
icon: /* @__PURE__ */ S(xe, {
|
|
173
177
|
className: "size-4",
|
|
174
178
|
"aria-hidden": "true"
|
|
175
179
|
})
|
|
176
180
|
})
|
|
177
181
|
}),
|
|
178
|
-
/* @__PURE__ */
|
|
182
|
+
/* @__PURE__ */ S(s, {
|
|
179
183
|
index: 1,
|
|
180
|
-
children: /* @__PURE__ */
|
|
184
|
+
children: /* @__PURE__ */ S(c, {
|
|
181
185
|
label: "Total accounts",
|
|
182
186
|
value: String(e.length),
|
|
183
|
-
icon: /* @__PURE__ */
|
|
187
|
+
icon: /* @__PURE__ */ S(b, {
|
|
184
188
|
className: "size-4",
|
|
185
189
|
"aria-hidden": "true"
|
|
186
190
|
})
|
|
187
191
|
})
|
|
188
192
|
}),
|
|
189
|
-
/* @__PURE__ */
|
|
193
|
+
/* @__PURE__ */ S(s, {
|
|
190
194
|
index: 2,
|
|
191
|
-
children: /* @__PURE__ */
|
|
195
|
+
children: /* @__PURE__ */ S(c, {
|
|
192
196
|
label: "Active",
|
|
193
|
-
value: `${
|
|
194
|
-
icon: /* @__PURE__ */
|
|
197
|
+
value: `${Ye}/${e.length}`,
|
|
198
|
+
icon: /* @__PURE__ */ S(he, {
|
|
195
199
|
className: "size-4",
|
|
196
200
|
"aria-hidden": "true"
|
|
197
201
|
})
|
|
198
202
|
})
|
|
199
203
|
}),
|
|
200
|
-
/* @__PURE__ */
|
|
204
|
+
/* @__PURE__ */ S(s, {
|
|
201
205
|
index: 3,
|
|
202
|
-
children: /* @__PURE__ */
|
|
206
|
+
children: /* @__PURE__ */ S(c, {
|
|
203
207
|
label: "Institutions",
|
|
204
|
-
value: String(
|
|
205
|
-
icon: /* @__PURE__ */
|
|
208
|
+
value: String(Xe),
|
|
209
|
+
icon: /* @__PURE__ */ S(me, {
|
|
206
210
|
className: "size-4",
|
|
207
211
|
"aria-hidden": "true"
|
|
208
212
|
})
|
|
209
213
|
})
|
|
210
214
|
})
|
|
211
215
|
]
|
|
212
|
-
}), /* @__PURE__ */
|
|
216
|
+
}), /* @__PURE__ */ S(s, {
|
|
213
217
|
index: 4,
|
|
214
|
-
children: /* @__PURE__ */
|
|
218
|
+
children: /* @__PURE__ */ C(ae, {
|
|
215
219
|
className: "h-full",
|
|
216
220
|
glow: !0,
|
|
217
|
-
children: [/* @__PURE__ */
|
|
221
|
+
children: [/* @__PURE__ */ C("div", {
|
|
218
222
|
className: "mb-2 flex items-center gap-2",
|
|
219
|
-
children: [/* @__PURE__ */
|
|
223
|
+
children: [/* @__PURE__ */ S(_e, {
|
|
220
224
|
className: "size-4 text-text-secondary",
|
|
221
225
|
"aria-hidden": "true"
|
|
222
|
-
}), /* @__PURE__ */
|
|
226
|
+
}), /* @__PURE__ */ S("h2", {
|
|
223
227
|
className: "text-sm font-semibold text-text-primary",
|
|
224
228
|
children: "Cash by account type"
|
|
225
229
|
})]
|
|
226
|
-
}),
|
|
230
|
+
}), Ze.length === 0 ? /* @__PURE__ */ S("p", {
|
|
227
231
|
className: "py-8 text-center text-sm text-text-secondary",
|
|
228
232
|
children: "No cash balances recorded yet."
|
|
229
|
-
}) : /* @__PURE__ */
|
|
230
|
-
data:
|
|
231
|
-
centerValue:
|
|
233
|
+
}) : /* @__PURE__ */ S(ie, {
|
|
234
|
+
data: Ze,
|
|
235
|
+
centerValue: oe(Je, Z),
|
|
232
236
|
centerLabel: "Total cash",
|
|
233
237
|
height: 200,
|
|
234
|
-
valueFormatter: (e) =>
|
|
238
|
+
valueFormatter: (e) => m(e, Z)
|
|
235
239
|
})]
|
|
236
240
|
})
|
|
237
241
|
})]
|
|
238
242
|
}),
|
|
239
|
-
/* @__PURE__ */
|
|
243
|
+
/* @__PURE__ */ S(s, {
|
|
240
244
|
index: 5,
|
|
241
245
|
as: "section",
|
|
242
|
-
children: /* @__PURE__ */
|
|
246
|
+
children: /* @__PURE__ */ C(Se, {
|
|
243
247
|
className: "transition-shadow motion-safe:hover:shadow-[var(--shadow-pop-hover,var(--shadow-elevation-2))]",
|
|
244
|
-
children: [/* @__PURE__ */
|
|
248
|
+
children: [/* @__PURE__ */ C(Te, { children: [/* @__PURE__ */ C(Ee, {
|
|
245
249
|
className: "flex items-center gap-2",
|
|
246
|
-
children: [/* @__PURE__ */
|
|
250
|
+
children: [/* @__PURE__ */ S(b, {
|
|
247
251
|
className: "h-5 w-5",
|
|
248
252
|
"aria-hidden": "true"
|
|
249
253
|
}), "Linked accounts"]
|
|
250
|
-
}), /* @__PURE__ */
|
|
251
|
-
icon: /* @__PURE__ */
|
|
254
|
+
}), /* @__PURE__ */ S(we, { children: "Select an account to view holdings and transactions." })] }), /* @__PURE__ */ S(Ce, { children: a.isLoading ? /* @__PURE__ */ S(f, {}) : a.isError ? /* @__PURE__ */ S(d, { onRetry: () => a.refetch() }) : a.items.length === 0 ? /* @__PURE__ */ S(u, {
|
|
255
|
+
icon: /* @__PURE__ */ S(b, {
|
|
252
256
|
className: "size-6",
|
|
253
257
|
"aria-hidden": "true"
|
|
254
258
|
}),
|
|
255
259
|
title: "No accounts yet",
|
|
256
260
|
description: "Add your first bank, brokerage or retirement account to start tracking net worth.",
|
|
257
|
-
action: /* @__PURE__ */
|
|
261
|
+
action: /* @__PURE__ */ C(T, {
|
|
258
262
|
size: "sm",
|
|
259
|
-
onClick:
|
|
260
|
-
children: [/* @__PURE__ */
|
|
263
|
+
onClick: Qe,
|
|
264
|
+
children: [/* @__PURE__ */ S(be, {
|
|
261
265
|
className: "size-4",
|
|
262
266
|
"aria-hidden": "true"
|
|
263
267
|
}), "New account"]
|
|
264
268
|
})
|
|
265
|
-
}) : /* @__PURE__ */
|
|
269
|
+
}) : /* @__PURE__ */ C("div", {
|
|
266
270
|
className: "overflow-x-auto",
|
|
267
|
-
children: [/* @__PURE__ */
|
|
268
|
-
/* @__PURE__ */
|
|
269
|
-
/* @__PURE__ */
|
|
270
|
-
/* @__PURE__ */
|
|
271
|
-
/* @__PURE__ */
|
|
271
|
+
children: [/* @__PURE__ */ C(Re, { children: [/* @__PURE__ */ S(Be, { children: /* @__PURE__ */ C(B, { children: [
|
|
272
|
+
/* @__PURE__ */ S(z, { children: "Account" }),
|
|
273
|
+
/* @__PURE__ */ S(z, { children: "Type" }),
|
|
274
|
+
/* @__PURE__ */ S(z, { children: "Institution" }),
|
|
275
|
+
/* @__PURE__ */ S(z, {
|
|
272
276
|
className: "text-right",
|
|
273
277
|
children: "Cash balance"
|
|
274
278
|
}),
|
|
275
|
-
/* @__PURE__ */
|
|
276
|
-
/* @__PURE__ */
|
|
279
|
+
/* @__PURE__ */ S(z, { children: "Status" }),
|
|
280
|
+
/* @__PURE__ */ S(z, {
|
|
277
281
|
className: "w-12 text-right",
|
|
278
282
|
children: "Actions"
|
|
279
283
|
})
|
|
280
|
-
] }) }), /* @__PURE__ */
|
|
284
|
+
] }) }), /* @__PURE__ */ S(ze, { children: a.items.map((e) => /* @__PURE__ */ C(B, {
|
|
281
285
|
className: "group cursor-pointer transition-colors hover:bg-bg-elevated",
|
|
282
|
-
onClick: () =>
|
|
286
|
+
onClick: () => l(e.id),
|
|
283
287
|
children: [
|
|
284
|
-
/* @__PURE__ */
|
|
288
|
+
/* @__PURE__ */ S(R, { children: /* @__PURE__ */ C("div", {
|
|
285
289
|
className: "flex items-center gap-3",
|
|
286
|
-
children: [/* @__PURE__ */
|
|
290
|
+
children: [/* @__PURE__ */ S("div", {
|
|
287
291
|
className: "flex h-9 w-9 items-center justify-center rounded-lg border border-border-subtle bg-bg-sunken text-xs font-semibold text-text-secondary transition-colors group-hover:border-[var(--color-action-primary-border)] group-hover:text-text-primary",
|
|
288
292
|
"aria-hidden": "true",
|
|
289
293
|
children: (e.institution ?? e.name).slice(0, 2).toUpperCase()
|
|
290
|
-
}), /* @__PURE__ */
|
|
294
|
+
}), /* @__PURE__ */ C("div", {
|
|
291
295
|
className: "min-w-0",
|
|
292
|
-
children: [/* @__PURE__ */
|
|
296
|
+
children: [/* @__PURE__ */ C("p", {
|
|
293
297
|
className: "flex items-center gap-1 truncate font-medium text-text-primary",
|
|
294
|
-
children: [e.name, /* @__PURE__ */
|
|
298
|
+
children: [e.name, /* @__PURE__ */ S(ge, {
|
|
295
299
|
className: "size-3.5 shrink-0 text-text-secondary opacity-0 transition-opacity group-hover:opacity-100",
|
|
296
300
|
"aria-hidden": "true"
|
|
297
301
|
})]
|
|
298
|
-
}), /* @__PURE__ */
|
|
302
|
+
}), /* @__PURE__ */ C("p", {
|
|
299
303
|
className: "truncate text-xs text-text-secondary",
|
|
300
304
|
children: [e.institution ?? "Manual account", e.accountMask ? ` · ••${e.accountMask}` : ""]
|
|
301
305
|
})]
|
|
302
306
|
})]
|
|
303
307
|
}) }),
|
|
304
|
-
/* @__PURE__ */
|
|
308
|
+
/* @__PURE__ */ S(R, { children: /* @__PURE__ */ S(w, {
|
|
305
309
|
variant: "outline",
|
|
306
310
|
children: e.type.replace(/_/g, " ")
|
|
307
311
|
}) }),
|
|
308
|
-
/* @__PURE__ */
|
|
312
|
+
/* @__PURE__ */ S(R, {
|
|
309
313
|
className: "text-sm text-text-secondary",
|
|
310
314
|
children: e.institution ?? "—"
|
|
311
315
|
}),
|
|
312
|
-
/* @__PURE__ */
|
|
316
|
+
/* @__PURE__ */ S(R, {
|
|
313
317
|
className: "text-right font-semibold tabular-nums text-text-primary",
|
|
314
|
-
children:
|
|
318
|
+
children: m(e.cashBalance, e.currency)
|
|
315
319
|
}),
|
|
316
|
-
/* @__PURE__ */
|
|
317
|
-
variant:
|
|
320
|
+
/* @__PURE__ */ S(R, { children: /* @__PURE__ */ S(w, {
|
|
321
|
+
variant: ce(e.status),
|
|
318
322
|
children: e.status
|
|
319
323
|
}) }),
|
|
320
|
-
/* @__PURE__ */
|
|
324
|
+
/* @__PURE__ */ S(R, {
|
|
321
325
|
className: "text-right",
|
|
322
326
|
onClick: (e) => e.stopPropagation(),
|
|
323
|
-
children: /* @__PURE__ */
|
|
327
|
+
children: /* @__PURE__ */ C(Oe, { children: [/* @__PURE__ */ S(je, {
|
|
324
328
|
asChild: !0,
|
|
325
|
-
children: /* @__PURE__ */
|
|
329
|
+
children: /* @__PURE__ */ S(T, {
|
|
326
330
|
variant: "ghost",
|
|
327
331
|
size: "sm",
|
|
328
332
|
"aria-label": `Actions for ${e.name}`,
|
|
329
|
-
children: /* @__PURE__ */
|
|
333
|
+
children: /* @__PURE__ */ S(ve, {
|
|
330
334
|
className: "size-4",
|
|
331
335
|
"aria-hidden": "true"
|
|
332
336
|
})
|
|
333
337
|
})
|
|
334
|
-
}), /* @__PURE__ */
|
|
338
|
+
}), /* @__PURE__ */ C(ke, {
|
|
335
339
|
align: "end",
|
|
336
|
-
children: [/* @__PURE__ */
|
|
337
|
-
onClick: () =>
|
|
338
|
-
children: [/* @__PURE__ */
|
|
340
|
+
children: [/* @__PURE__ */ C(Ae, {
|
|
341
|
+
onClick: () => et(e),
|
|
342
|
+
children: [/* @__PURE__ */ S(ye, {
|
|
339
343
|
className: "size-4",
|
|
340
344
|
"aria-hidden": "true"
|
|
341
345
|
}), "Edit"]
|
|
342
|
-
}), /* @__PURE__ */
|
|
346
|
+
}), /* @__PURE__ */ C(Ae, {
|
|
343
347
|
className: "text-status-error-text",
|
|
344
|
-
onClick: () =>
|
|
345
|
-
children: [/* @__PURE__ */
|
|
348
|
+
onClick: () => L(e),
|
|
349
|
+
children: [/* @__PURE__ */ S(pe, {
|
|
346
350
|
className: "size-4",
|
|
347
351
|
"aria-hidden": "true"
|
|
348
352
|
}), "Archive"]
|
|
@@ -350,7 +354,7 @@ function X() {
|
|
|
350
354
|
})] })
|
|
351
355
|
})
|
|
352
356
|
]
|
|
353
|
-
}, e.id)) })] }), /* @__PURE__ */
|
|
357
|
+
}, e.id)) })] }), /* @__PURE__ */ S(ne, {
|
|
354
358
|
hasMore: a.hasMore,
|
|
355
359
|
onClick: a.loadMore,
|
|
356
360
|
loading: a.isFetchingNextPage,
|
|
@@ -359,204 +363,204 @@ function X() {
|
|
|
359
363
|
}) })]
|
|
360
364
|
})
|
|
361
365
|
}),
|
|
362
|
-
/* @__PURE__ */
|
|
363
|
-
open:
|
|
364
|
-
onOpenChange:
|
|
365
|
-
children: /* @__PURE__ */
|
|
366
|
+
/* @__PURE__ */ S(E, {
|
|
367
|
+
open: se,
|
|
368
|
+
onOpenChange: h,
|
|
369
|
+
children: /* @__PURE__ */ C(D, {
|
|
366
370
|
className: "max-h-[90vh] overflow-y-auto",
|
|
367
371
|
children: [
|
|
368
|
-
/* @__PURE__ */
|
|
369
|
-
/* @__PURE__ */
|
|
370
|
-
form:
|
|
371
|
-
onChange:
|
|
372
|
+
/* @__PURE__ */ C(A, { children: [/* @__PURE__ */ S(j, { children: "New account" }), /* @__PURE__ */ S(O, { children: "Add a bank, brokerage or retirement account." })] }),
|
|
373
|
+
/* @__PURE__ */ S(Ge, {
|
|
374
|
+
form: g,
|
|
375
|
+
onChange: v
|
|
372
376
|
}),
|
|
373
|
-
/* @__PURE__ */
|
|
377
|
+
/* @__PURE__ */ C(k, { children: [/* @__PURE__ */ S(De, {
|
|
374
378
|
asChild: !0,
|
|
375
|
-
children: /* @__PURE__ */
|
|
379
|
+
children: /* @__PURE__ */ S(T, {
|
|
376
380
|
variant: "outline",
|
|
377
381
|
children: "Cancel"
|
|
378
382
|
})
|
|
379
|
-
}), /* @__PURE__ */
|
|
380
|
-
onClick:
|
|
381
|
-
disabled: !
|
|
382
|
-
children:
|
|
383
|
+
}), /* @__PURE__ */ S(T, {
|
|
384
|
+
onClick: $e,
|
|
385
|
+
disabled: !g.name.trim() || K.isPending,
|
|
386
|
+
children: K.isPending ? "Creating…" : "Create account"
|
|
383
387
|
})] })
|
|
384
388
|
]
|
|
385
389
|
})
|
|
386
390
|
}),
|
|
387
|
-
/* @__PURE__ */
|
|
388
|
-
open: !!
|
|
389
|
-
onOpenChange: (e) => !e &&
|
|
390
|
-
children: /* @__PURE__ */
|
|
391
|
+
/* @__PURE__ */ S(E, {
|
|
392
|
+
open: !!y,
|
|
393
|
+
onOpenChange: (e) => !e && x(null),
|
|
394
|
+
children: /* @__PURE__ */ C(D, {
|
|
391
395
|
className: "max-h-[90vh] overflow-y-auto",
|
|
392
396
|
children: [
|
|
393
|
-
/* @__PURE__ */
|
|
394
|
-
/* @__PURE__ */
|
|
395
|
-
form:
|
|
396
|
-
onChange:
|
|
397
|
+
/* @__PURE__ */ C(A, { children: [/* @__PURE__ */ S(j, { children: "Edit account" }), /* @__PURE__ */ S(O, { children: "Update account details." })] }),
|
|
398
|
+
/* @__PURE__ */ S(Ge, {
|
|
399
|
+
form: P,
|
|
400
|
+
onChange: F
|
|
397
401
|
}),
|
|
398
|
-
/* @__PURE__ */
|
|
402
|
+
/* @__PURE__ */ C(k, { children: [/* @__PURE__ */ S(T, {
|
|
399
403
|
variant: "outline",
|
|
400
|
-
onClick: () =>
|
|
404
|
+
onClick: () => x(null),
|
|
401
405
|
children: "Cancel"
|
|
402
|
-
}), /* @__PURE__ */
|
|
403
|
-
onClick:
|
|
404
|
-
disabled: !
|
|
405
|
-
children:
|
|
406
|
+
}), /* @__PURE__ */ S(T, {
|
|
407
|
+
onClick: tt,
|
|
408
|
+
disabled: !P.name.trim() || Y.isPending,
|
|
409
|
+
children: Y.isPending ? "Saving…" : "Save changes"
|
|
406
410
|
})] })
|
|
407
411
|
]
|
|
408
412
|
})
|
|
409
413
|
}),
|
|
410
|
-
/* @__PURE__ */
|
|
411
|
-
open: !!
|
|
412
|
-
onOpenChange: (e) => !e &&
|
|
414
|
+
/* @__PURE__ */ S(re, {
|
|
415
|
+
open: !!I,
|
|
416
|
+
onOpenChange: (e) => !e && L(null),
|
|
413
417
|
title: "Archive account?",
|
|
414
|
-
description:
|
|
418
|
+
description: I ? `“${I.name}” will be archived and hidden from active lists. This does not delete its history.` : void 0,
|
|
415
419
|
confirmLabel: "Archive account",
|
|
416
420
|
pendingLabel: "Archiving…",
|
|
417
421
|
destructive: !0,
|
|
418
|
-
pending:
|
|
419
|
-
onConfirm:
|
|
422
|
+
pending: qe.isPending,
|
|
423
|
+
onConfirm: nt
|
|
420
424
|
}),
|
|
421
|
-
/* @__PURE__ */
|
|
422
|
-
accountId:
|
|
423
|
-
onClose: () =>
|
|
424
|
-
onRecordTransaction:
|
|
425
|
+
/* @__PURE__ */ S(Ke, {
|
|
426
|
+
accountId: o,
|
|
427
|
+
onClose: () => l(void 0),
|
|
428
|
+
onRecordTransaction: rt
|
|
425
429
|
}),
|
|
426
|
-
/* @__PURE__ */
|
|
427
|
-
open:
|
|
428
|
-
onOpenChange:
|
|
429
|
-
children: /* @__PURE__ */
|
|
430
|
+
/* @__PURE__ */ S(E, {
|
|
431
|
+
open: Le,
|
|
432
|
+
onOpenChange: (e) => !e && it(),
|
|
433
|
+
children: /* @__PURE__ */ C(D, {
|
|
430
434
|
className: "max-h-[90vh] overflow-y-auto",
|
|
431
435
|
children: [
|
|
432
|
-
/* @__PURE__ */
|
|
433
|
-
/* @__PURE__ */
|
|
436
|
+
/* @__PURE__ */ C(A, { children: [/* @__PURE__ */ S(j, { children: "Record transaction" }), /* @__PURE__ */ S(O, { children: "Log activity against the selected account." })] }),
|
|
437
|
+
/* @__PURE__ */ C("div", {
|
|
434
438
|
className: "grid gap-4",
|
|
435
439
|
children: [
|
|
436
|
-
/* @__PURE__ */
|
|
440
|
+
/* @__PURE__ */ C("div", {
|
|
437
441
|
className: "grid grid-cols-2 gap-4",
|
|
438
|
-
children: [/* @__PURE__ */
|
|
442
|
+
children: [/* @__PURE__ */ C("div", {
|
|
439
443
|
className: "space-y-2",
|
|
440
|
-
children: [/* @__PURE__ */
|
|
444
|
+
children: [/* @__PURE__ */ S(N, {
|
|
441
445
|
htmlFor: "tx-type",
|
|
442
446
|
children: "Type"
|
|
443
|
-
}), /* @__PURE__ */
|
|
444
|
-
value:
|
|
445
|
-
onValueChange: (e) =>
|
|
447
|
+
}), /* @__PURE__ */ C(Me, {
|
|
448
|
+
value: W.type,
|
|
449
|
+
onValueChange: (e) => G((t) => ({
|
|
446
450
|
...t,
|
|
447
451
|
type: e
|
|
448
452
|
})),
|
|
449
|
-
children: [/* @__PURE__ */
|
|
453
|
+
children: [/* @__PURE__ */ S(Fe, {
|
|
450
454
|
id: "tx-type",
|
|
451
|
-
children: /* @__PURE__ */
|
|
452
|
-
}), /* @__PURE__ */
|
|
455
|
+
children: /* @__PURE__ */ S(Ie, {})
|
|
456
|
+
}), /* @__PURE__ */ S(Ne, { children: He.map((e) => /* @__PURE__ */ S(Pe, {
|
|
453
457
|
value: e,
|
|
454
458
|
children: e.replace(/_/g, " ")
|
|
455
459
|
}, e)) })]
|
|
456
460
|
})]
|
|
457
|
-
}), /* @__PURE__ */
|
|
461
|
+
}), /* @__PURE__ */ C("div", {
|
|
458
462
|
className: "space-y-2",
|
|
459
|
-
children: [/* @__PURE__ */
|
|
463
|
+
children: [/* @__PURE__ */ S(N, {
|
|
460
464
|
htmlFor: "tx-date",
|
|
461
465
|
children: "Trade date"
|
|
462
|
-
}), /* @__PURE__ */
|
|
466
|
+
}), /* @__PURE__ */ S(M, {
|
|
463
467
|
id: "tx-date",
|
|
464
468
|
type: "date",
|
|
465
|
-
value:
|
|
466
|
-
onChange: (e) =>
|
|
469
|
+
value: W.tradeDate,
|
|
470
|
+
onChange: (e) => G((t) => ({
|
|
467
471
|
...t,
|
|
468
472
|
tradeDate: e.target.value
|
|
469
473
|
}))
|
|
470
474
|
})]
|
|
471
475
|
})]
|
|
472
476
|
}),
|
|
473
|
-
/* @__PURE__ */
|
|
477
|
+
/* @__PURE__ */ C("div", {
|
|
474
478
|
className: "grid grid-cols-2 gap-4",
|
|
475
|
-
children: [/* @__PURE__ */
|
|
479
|
+
children: [/* @__PURE__ */ C("div", {
|
|
476
480
|
className: "space-y-2",
|
|
477
|
-
children: [/* @__PURE__ */
|
|
481
|
+
children: [/* @__PURE__ */ S(N, {
|
|
478
482
|
htmlFor: "tx-symbol",
|
|
479
483
|
children: "Symbol"
|
|
480
|
-
}), /* @__PURE__ */
|
|
484
|
+
}), /* @__PURE__ */ S(M, {
|
|
481
485
|
id: "tx-symbol",
|
|
482
|
-
value:
|
|
483
|
-
onChange: (e) =>
|
|
486
|
+
value: W.symbol,
|
|
487
|
+
onChange: (e) => G((t) => ({
|
|
484
488
|
...t,
|
|
485
489
|
symbol: e.target.value
|
|
486
490
|
})),
|
|
487
491
|
placeholder: "e.g. VOO"
|
|
488
492
|
})]
|
|
489
|
-
}), /* @__PURE__ */
|
|
493
|
+
}), /* @__PURE__ */ C("div", {
|
|
490
494
|
className: "space-y-2",
|
|
491
495
|
children: [
|
|
492
|
-
/* @__PURE__ */
|
|
496
|
+
/* @__PURE__ */ S(N, {
|
|
493
497
|
htmlFor: "tx-amount",
|
|
494
498
|
children: "Amount"
|
|
495
499
|
}),
|
|
496
|
-
/* @__PURE__ */
|
|
500
|
+
/* @__PURE__ */ S(M, {
|
|
497
501
|
id: "tx-amount",
|
|
498
502
|
type: "number",
|
|
499
503
|
min: "0",
|
|
500
504
|
step: "any",
|
|
501
|
-
value:
|
|
502
|
-
onChange: (e) =>
|
|
505
|
+
value: W.amount,
|
|
506
|
+
onChange: (e) => G((t) => ({
|
|
503
507
|
...t,
|
|
504
508
|
amount: e.target.value
|
|
505
509
|
})),
|
|
506
|
-
"aria-invalid":
|
|
510
|
+
"aria-invalid": W.amount.trim() !== "" && !$,
|
|
507
511
|
"aria-describedby": "tx-amount-hint"
|
|
508
512
|
}),
|
|
509
|
-
/* @__PURE__ */
|
|
513
|
+
/* @__PURE__ */ S("p", {
|
|
510
514
|
id: "tx-amount-hint",
|
|
511
515
|
className: "text-xs text-text-secondary",
|
|
512
|
-
children:
|
|
516
|
+
children: W.amount.trim() !== "" && !$ ? "Enter an amount greater than 0." : "Positive amount; direction is set by the type."
|
|
513
517
|
})
|
|
514
518
|
]
|
|
515
519
|
})]
|
|
516
520
|
}),
|
|
517
|
-
/* @__PURE__ */
|
|
521
|
+
/* @__PURE__ */ C("div", {
|
|
518
522
|
className: "grid grid-cols-3 gap-4",
|
|
519
523
|
children: [
|
|
520
|
-
/* @__PURE__ */
|
|
524
|
+
/* @__PURE__ */ C("div", {
|
|
521
525
|
className: "space-y-2",
|
|
522
|
-
children: [/* @__PURE__ */
|
|
526
|
+
children: [/* @__PURE__ */ S(N, {
|
|
523
527
|
htmlFor: "tx-qty",
|
|
524
528
|
children: "Quantity"
|
|
525
|
-
}), /* @__PURE__ */
|
|
529
|
+
}), /* @__PURE__ */ S(M, {
|
|
526
530
|
id: "tx-qty",
|
|
527
531
|
type: "number",
|
|
528
|
-
value:
|
|
529
|
-
onChange: (e) =>
|
|
532
|
+
value: W.quantity,
|
|
533
|
+
onChange: (e) => G((t) => ({
|
|
530
534
|
...t,
|
|
531
535
|
quantity: e.target.value
|
|
532
536
|
}))
|
|
533
537
|
})]
|
|
534
538
|
}),
|
|
535
|
-
/* @__PURE__ */
|
|
539
|
+
/* @__PURE__ */ C("div", {
|
|
536
540
|
className: "space-y-2",
|
|
537
|
-
children: [/* @__PURE__ */
|
|
541
|
+
children: [/* @__PURE__ */ S(N, {
|
|
538
542
|
htmlFor: "tx-price",
|
|
539
543
|
children: "Price"
|
|
540
|
-
}), /* @__PURE__ */
|
|
544
|
+
}), /* @__PURE__ */ S(M, {
|
|
541
545
|
id: "tx-price",
|
|
542
546
|
type: "number",
|
|
543
|
-
value:
|
|
544
|
-
onChange: (e) =>
|
|
547
|
+
value: W.price,
|
|
548
|
+
onChange: (e) => G((t) => ({
|
|
545
549
|
...t,
|
|
546
550
|
price: e.target.value
|
|
547
551
|
}))
|
|
548
552
|
})]
|
|
549
553
|
}),
|
|
550
|
-
/* @__PURE__ */
|
|
554
|
+
/* @__PURE__ */ C("div", {
|
|
551
555
|
className: "space-y-2",
|
|
552
|
-
children: [/* @__PURE__ */
|
|
556
|
+
children: [/* @__PURE__ */ S(N, {
|
|
553
557
|
htmlFor: "tx-fee",
|
|
554
558
|
children: "Fee"
|
|
555
|
-
}), /* @__PURE__ */
|
|
559
|
+
}), /* @__PURE__ */ S(M, {
|
|
556
560
|
id: "tx-fee",
|
|
557
561
|
type: "number",
|
|
558
|
-
value:
|
|
559
|
-
onChange: (e) =>
|
|
562
|
+
value: W.fee,
|
|
563
|
+
onChange: (e) => G((t) => ({
|
|
560
564
|
...t,
|
|
561
565
|
fee: e.target.value
|
|
562
566
|
}))
|
|
@@ -564,15 +568,15 @@ function X() {
|
|
|
564
568
|
})
|
|
565
569
|
]
|
|
566
570
|
}),
|
|
567
|
-
/* @__PURE__ */
|
|
571
|
+
/* @__PURE__ */ C("div", {
|
|
568
572
|
className: "space-y-2",
|
|
569
|
-
children: [/* @__PURE__ */
|
|
573
|
+
children: [/* @__PURE__ */ S(N, {
|
|
570
574
|
htmlFor: "tx-notes",
|
|
571
575
|
children: "Notes"
|
|
572
|
-
}), /* @__PURE__ */
|
|
576
|
+
}), /* @__PURE__ */ S(Ve, {
|
|
573
577
|
id: "tx-notes",
|
|
574
|
-
value:
|
|
575
|
-
onChange: (e) =>
|
|
578
|
+
value: W.notes,
|
|
579
|
+
onChange: (e) => G((t) => ({
|
|
576
580
|
...t,
|
|
577
581
|
notes: e.target.value
|
|
578
582
|
})),
|
|
@@ -581,13 +585,13 @@ function X() {
|
|
|
581
585
|
})
|
|
582
586
|
]
|
|
583
587
|
}),
|
|
584
|
-
/* @__PURE__ */
|
|
588
|
+
/* @__PURE__ */ C(k, { children: [/* @__PURE__ */ S(T, {
|
|
585
589
|
variant: "outline",
|
|
586
|
-
onClick:
|
|
590
|
+
onClick: it,
|
|
587
591
|
children: "Cancel"
|
|
588
|
-
}), /* @__PURE__ */
|
|
589
|
-
onClick:
|
|
590
|
-
disabled: !
|
|
592
|
+
}), /* @__PURE__ */ S(T, {
|
|
593
|
+
onClick: ot,
|
|
594
|
+
disabled: !at || X.isPending,
|
|
591
595
|
children: X.isPending ? "Saving…" : "Record transaction"
|
|
592
596
|
})] })
|
|
593
597
|
]
|
|
@@ -597,16 +601,16 @@ function X() {
|
|
|
597
601
|
})
|
|
598
602
|
});
|
|
599
603
|
}
|
|
600
|
-
function
|
|
601
|
-
return /* @__PURE__ */
|
|
604
|
+
function Ge({ form: e, onChange: t }) {
|
|
605
|
+
return /* @__PURE__ */ C("div", {
|
|
602
606
|
className: "grid gap-4",
|
|
603
607
|
children: [
|
|
604
|
-
/* @__PURE__ */
|
|
608
|
+
/* @__PURE__ */ C("div", {
|
|
605
609
|
className: "space-y-2",
|
|
606
|
-
children: [/* @__PURE__ */
|
|
610
|
+
children: [/* @__PURE__ */ S(N, {
|
|
607
611
|
htmlFor: "acct-name",
|
|
608
612
|
children: "Name"
|
|
609
|
-
}), /* @__PURE__ */
|
|
613
|
+
}), /* @__PURE__ */ S(M, {
|
|
610
614
|
id: "acct-name",
|
|
611
615
|
value: e.name,
|
|
612
616
|
onChange: (e) => t((t) => ({
|
|
@@ -616,33 +620,33 @@ function We({ form: e, onChange: t }) {
|
|
|
616
620
|
placeholder: "e.g. Everyday Checking"
|
|
617
621
|
})]
|
|
618
622
|
}),
|
|
619
|
-
/* @__PURE__ */
|
|
623
|
+
/* @__PURE__ */ C("div", {
|
|
620
624
|
className: "grid grid-cols-2 gap-4",
|
|
621
|
-
children: [/* @__PURE__ */
|
|
625
|
+
children: [/* @__PURE__ */ C("div", {
|
|
622
626
|
className: "space-y-2",
|
|
623
|
-
children: [/* @__PURE__ */
|
|
627
|
+
children: [/* @__PURE__ */ S(N, {
|
|
624
628
|
htmlFor: "acct-type",
|
|
625
629
|
children: "Type"
|
|
626
|
-
}), /* @__PURE__ */
|
|
630
|
+
}), /* @__PURE__ */ C(Me, {
|
|
627
631
|
value: e.type,
|
|
628
632
|
onValueChange: (e) => t((t) => ({
|
|
629
633
|
...t,
|
|
630
634
|
type: e
|
|
631
635
|
})),
|
|
632
|
-
children: [/* @__PURE__ */
|
|
636
|
+
children: [/* @__PURE__ */ S(Fe, {
|
|
633
637
|
id: "acct-type",
|
|
634
|
-
children: /* @__PURE__ */
|
|
635
|
-
}), /* @__PURE__ */
|
|
638
|
+
children: /* @__PURE__ */ S(Ie, {})
|
|
639
|
+
}), /* @__PURE__ */ S(Ne, { children: G.map((e) => /* @__PURE__ */ S(Pe, {
|
|
636
640
|
value: e,
|
|
637
641
|
children: e.replace(/_/g, " ")
|
|
638
642
|
}, e)) })]
|
|
639
643
|
})]
|
|
640
|
-
}), /* @__PURE__ */
|
|
644
|
+
}), /* @__PURE__ */ C("div", {
|
|
641
645
|
className: "space-y-2",
|
|
642
|
-
children: [/* @__PURE__ */
|
|
646
|
+
children: [/* @__PURE__ */ S(N, {
|
|
643
647
|
htmlFor: "acct-currency",
|
|
644
648
|
children: "Currency"
|
|
645
|
-
}), /* @__PURE__ */
|
|
649
|
+
}), /* @__PURE__ */ S(M, {
|
|
646
650
|
id: "acct-currency",
|
|
647
651
|
value: e.currency,
|
|
648
652
|
onChange: (e) => t((t) => ({
|
|
@@ -653,12 +657,12 @@ function We({ form: e, onChange: t }) {
|
|
|
653
657
|
})]
|
|
654
658
|
})]
|
|
655
659
|
}),
|
|
656
|
-
/* @__PURE__ */
|
|
660
|
+
/* @__PURE__ */ C("div", {
|
|
657
661
|
className: "space-y-2",
|
|
658
|
-
children: [/* @__PURE__ */
|
|
662
|
+
children: [/* @__PURE__ */ S(N, {
|
|
659
663
|
htmlFor: "acct-institution",
|
|
660
664
|
children: "Institution"
|
|
661
|
-
}), /* @__PURE__ */
|
|
665
|
+
}), /* @__PURE__ */ S(M, {
|
|
662
666
|
id: "acct-institution",
|
|
663
667
|
value: e.institution,
|
|
664
668
|
onChange: (e) => t((t) => ({
|
|
@@ -668,14 +672,14 @@ function We({ form: e, onChange: t }) {
|
|
|
668
672
|
placeholder: "e.g. Chase"
|
|
669
673
|
})]
|
|
670
674
|
}),
|
|
671
|
-
/* @__PURE__ */
|
|
675
|
+
/* @__PURE__ */ C("div", {
|
|
672
676
|
className: "grid grid-cols-2 gap-4",
|
|
673
|
-
children: [/* @__PURE__ */
|
|
677
|
+
children: [/* @__PURE__ */ C("div", {
|
|
674
678
|
className: "space-y-2",
|
|
675
|
-
children: [/* @__PURE__ */
|
|
679
|
+
children: [/* @__PURE__ */ S(N, {
|
|
676
680
|
htmlFor: "acct-balance",
|
|
677
681
|
children: "Cash balance"
|
|
678
|
-
}), /* @__PURE__ */
|
|
682
|
+
}), /* @__PURE__ */ S(M, {
|
|
679
683
|
id: "acct-balance",
|
|
680
684
|
type: "number",
|
|
681
685
|
value: e.cashBalance,
|
|
@@ -684,12 +688,12 @@ function We({ form: e, onChange: t }) {
|
|
|
684
688
|
cashBalance: e.target.value
|
|
685
689
|
}))
|
|
686
690
|
})]
|
|
687
|
-
}), /* @__PURE__ */
|
|
691
|
+
}), /* @__PURE__ */ C("div", {
|
|
688
692
|
className: "space-y-2",
|
|
689
|
-
children: [/* @__PURE__ */
|
|
693
|
+
children: [/* @__PURE__ */ S(N, {
|
|
690
694
|
htmlFor: "acct-mask",
|
|
691
695
|
children: "Account mask"
|
|
692
|
-
}), /* @__PURE__ */
|
|
696
|
+
}), /* @__PURE__ */ S(M, {
|
|
693
697
|
id: "acct-mask",
|
|
694
698
|
value: e.accountMask,
|
|
695
699
|
onChange: (e) => t((t) => ({
|
|
@@ -700,7 +704,7 @@ function We({ form: e, onChange: t }) {
|
|
|
700
704
|
})]
|
|
701
705
|
})]
|
|
702
706
|
}),
|
|
703
|
-
/* @__PURE__ */
|
|
707
|
+
/* @__PURE__ */ S(l, {
|
|
704
708
|
value: e.householdId,
|
|
705
709
|
onChange: (e) => t((t) => ({
|
|
706
710
|
...t,
|
|
@@ -710,78 +714,78 @@ function We({ form: e, onChange: t }) {
|
|
|
710
714
|
]
|
|
711
715
|
});
|
|
712
716
|
}
|
|
713
|
-
function
|
|
714
|
-
let { data: i, isLoading: ee, isError: te, refetch:
|
|
717
|
+
function Ke({ accountId: t, onClose: n, onRecordTransaction: r }) {
|
|
718
|
+
let { data: i, isLoading: ee, isError: te, refetch: re } = e(t), s = a(t ? { accountId: t } : {}), c = t ? s.items : [], l = fe(() => i ? i.holdings.filter((e) => Number.isFinite(e.marketValue) && e.marketValue > 0).map((e) => ({
|
|
715
719
|
label: e.symbol,
|
|
716
720
|
value: e.marketValue
|
|
717
|
-
})).sort((e, t) => t.value - e.value) : [], [i]),
|
|
718
|
-
return /* @__PURE__ */
|
|
721
|
+
})).sort((e, t) => t.value - e.value) : [], [i]), p = l.reduce((e, t) => e + t.value, 0);
|
|
722
|
+
return /* @__PURE__ */ S(P, {
|
|
719
723
|
open: !!t,
|
|
720
724
|
onOpenChange: (e) => !e && n(),
|
|
721
|
-
children: /* @__PURE__ */
|
|
725
|
+
children: /* @__PURE__ */ C(F, {
|
|
722
726
|
className: "flex w-full flex-col overflow-y-auto p-0 sm:max-w-xl",
|
|
723
|
-
children: [/* @__PURE__ */
|
|
727
|
+
children: [/* @__PURE__ */ C(L, {
|
|
724
728
|
className: "border-b border-border-subtle px-6 pb-4 pt-6",
|
|
725
|
-
children: [/* @__PURE__ */
|
|
729
|
+
children: [/* @__PURE__ */ S(Le, {
|
|
726
730
|
className: "text-lg",
|
|
727
731
|
children: i?.name ?? "Account"
|
|
728
|
-
}), /* @__PURE__ */
|
|
729
|
-
}), ee ? /* @__PURE__ */
|
|
732
|
+
}), /* @__PURE__ */ S(I, { children: i ? `${i.institution ?? "Manual account"} · ${i.type.replace(/_/g, " ")}` : "Loading account details…" })]
|
|
733
|
+
}), ee ? /* @__PURE__ */ S("div", {
|
|
730
734
|
className: "p-6",
|
|
731
|
-
children: /* @__PURE__ */
|
|
732
|
-
}) : te ? /* @__PURE__ */
|
|
735
|
+
children: /* @__PURE__ */ S(f, { rows: 3 })
|
|
736
|
+
}) : te ? /* @__PURE__ */ S("div", {
|
|
733
737
|
className: "p-6",
|
|
734
|
-
children: /* @__PURE__ */
|
|
735
|
-
}) : i ? /* @__PURE__ */
|
|
738
|
+
children: /* @__PURE__ */ S(d, { onRetry: () => re() })
|
|
739
|
+
}) : i ? /* @__PURE__ */ C("div", {
|
|
736
740
|
className: "space-y-6 p-6",
|
|
737
741
|
children: [
|
|
738
|
-
/* @__PURE__ */
|
|
742
|
+
/* @__PURE__ */ C(ae, {
|
|
739
743
|
glow: !0,
|
|
740
744
|
className: "space-y-4",
|
|
741
|
-
children: [/* @__PURE__ */
|
|
745
|
+
children: [/* @__PURE__ */ C("div", {
|
|
742
746
|
className: "flex items-start justify-between gap-3",
|
|
743
|
-
children: [/* @__PURE__ */
|
|
747
|
+
children: [/* @__PURE__ */ C("div", {
|
|
744
748
|
className: "min-w-0",
|
|
745
|
-
children: [/* @__PURE__ */
|
|
749
|
+
children: [/* @__PURE__ */ S("p", {
|
|
746
750
|
className: "text-xs uppercase tracking-wide text-text-secondary",
|
|
747
751
|
children: "Cash balance"
|
|
748
|
-
}), /* @__PURE__ */
|
|
752
|
+
}), /* @__PURE__ */ S("p", {
|
|
749
753
|
className: "mt-1 text-3xl font-semibold tracking-tight text-text-primary",
|
|
750
|
-
children:
|
|
754
|
+
children: m(i.cashBalance, i.currency)
|
|
751
755
|
})]
|
|
752
|
-
}), /* @__PURE__ */
|
|
753
|
-
variant:
|
|
756
|
+
}), /* @__PURE__ */ S(w, {
|
|
757
|
+
variant: ce(i.status),
|
|
754
758
|
children: i.status
|
|
755
759
|
})]
|
|
756
|
-
}), /* @__PURE__ */
|
|
760
|
+
}), /* @__PURE__ */ C("div", {
|
|
757
761
|
className: "flex flex-wrap items-center gap-x-6 gap-y-2 border-t border-border-subtle pt-3 text-xs",
|
|
758
762
|
children: [
|
|
759
|
-
/* @__PURE__ */
|
|
763
|
+
/* @__PURE__ */ C("div", {
|
|
760
764
|
className: "flex items-center gap-1.5",
|
|
761
|
-
children: [/* @__PURE__ */
|
|
765
|
+
children: [/* @__PURE__ */ S("span", {
|
|
762
766
|
className: "text-text-secondary",
|
|
763
767
|
children: "Owner"
|
|
764
|
-
}), /* @__PURE__ */
|
|
768
|
+
}), /* @__PURE__ */ S(o, {
|
|
765
769
|
id: i.ownerId,
|
|
766
770
|
className: "font-medium text-text-primary"
|
|
767
771
|
})]
|
|
768
772
|
}),
|
|
769
|
-
/* @__PURE__ */
|
|
773
|
+
/* @__PURE__ */ C("div", {
|
|
770
774
|
className: "flex items-center gap-1.5",
|
|
771
|
-
children: [/* @__PURE__ */
|
|
775
|
+
children: [/* @__PURE__ */ S("span", {
|
|
772
776
|
className: "text-text-secondary",
|
|
773
777
|
children: "Holdings value"
|
|
774
|
-
}), /* @__PURE__ */
|
|
778
|
+
}), /* @__PURE__ */ S("span", {
|
|
775
779
|
className: "font-medium text-text-primary",
|
|
776
|
-
children:
|
|
780
|
+
children: p > 0 ? m(p, i.currency) : "—"
|
|
777
781
|
})]
|
|
778
782
|
}),
|
|
779
|
-
/* @__PURE__ */
|
|
783
|
+
/* @__PURE__ */ C("div", {
|
|
780
784
|
className: "flex items-center gap-1.5",
|
|
781
|
-
children: [/* @__PURE__ */
|
|
785
|
+
children: [/* @__PURE__ */ S("span", {
|
|
782
786
|
className: "text-text-secondary",
|
|
783
787
|
children: "Positions"
|
|
784
|
-
}), /* @__PURE__ */
|
|
788
|
+
}), /* @__PURE__ */ S("span", {
|
|
785
789
|
className: "font-medium text-text-primary",
|
|
786
790
|
children: i.holdings.length
|
|
787
791
|
})]
|
|
@@ -789,178 +793,178 @@ function Ge({ accountId: t, onClose: n, onRecordTransaction: r }) {
|
|
|
789
793
|
]
|
|
790
794
|
})]
|
|
791
795
|
}),
|
|
792
|
-
|
|
796
|
+
l.length > 0 ? /* @__PURE__ */ C("div", {
|
|
793
797
|
className: "rounded-xl border border-border-subtle bg-bg-surface p-4",
|
|
794
|
-
children: [/* @__PURE__ */
|
|
798
|
+
children: [/* @__PURE__ */ S("h3", {
|
|
795
799
|
className: "mb-2 text-sm font-semibold text-text-primary",
|
|
796
800
|
children: "Holdings allocation"
|
|
797
|
-
}), /* @__PURE__ */
|
|
798
|
-
data:
|
|
799
|
-
centerValue:
|
|
801
|
+
}), /* @__PURE__ */ S(ie, {
|
|
802
|
+
data: l,
|
|
803
|
+
centerValue: oe(p, i.currency),
|
|
800
804
|
centerLabel: "Market value",
|
|
801
805
|
height: 180,
|
|
802
|
-
valueFormatter: (e) =>
|
|
806
|
+
valueFormatter: (e) => m(e, i.currency)
|
|
803
807
|
})]
|
|
804
808
|
}) : null,
|
|
805
|
-
/* @__PURE__ */
|
|
809
|
+
/* @__PURE__ */ S("div", {
|
|
806
810
|
className: "rounded-xl border border-border-subtle bg-bg-surface p-4",
|
|
807
|
-
children: /* @__PURE__ */
|
|
811
|
+
children: /* @__PURE__ */ S(g, {
|
|
808
812
|
entityType: "brainyrich-account",
|
|
809
813
|
entityId: i.id
|
|
810
814
|
})
|
|
811
815
|
}),
|
|
812
|
-
/* @__PURE__ */
|
|
816
|
+
/* @__PURE__ */ C(V, {
|
|
813
817
|
defaultValue: "holdings",
|
|
814
818
|
className: "w-full",
|
|
815
819
|
children: [
|
|
816
|
-
/* @__PURE__ */
|
|
820
|
+
/* @__PURE__ */ C(U, {
|
|
817
821
|
className: "w-full",
|
|
818
822
|
children: [
|
|
819
|
-
/* @__PURE__ */
|
|
823
|
+
/* @__PURE__ */ S(W, {
|
|
820
824
|
value: "holdings",
|
|
821
825
|
className: "flex-1",
|
|
822
826
|
children: "Holdings"
|
|
823
827
|
}),
|
|
824
|
-
/* @__PURE__ */
|
|
828
|
+
/* @__PURE__ */ S(W, {
|
|
825
829
|
value: "transactions",
|
|
826
830
|
className: "flex-1",
|
|
827
831
|
children: "Transactions"
|
|
828
832
|
}),
|
|
829
|
-
/* @__PURE__ */
|
|
833
|
+
/* @__PURE__ */ S(W, {
|
|
830
834
|
value: "documents",
|
|
831
835
|
className: "flex-1",
|
|
832
836
|
children: "Documents"
|
|
833
837
|
})
|
|
834
838
|
]
|
|
835
839
|
}),
|
|
836
|
-
/* @__PURE__ */
|
|
840
|
+
/* @__PURE__ */ S(H, {
|
|
837
841
|
value: "holdings",
|
|
838
842
|
className: "mt-4",
|
|
839
|
-
children: i.holdings.length === 0 ? /* @__PURE__ */
|
|
840
|
-
icon: /* @__PURE__ */
|
|
843
|
+
children: i.holdings.length === 0 ? /* @__PURE__ */ S(u, {
|
|
844
|
+
icon: /* @__PURE__ */ S(_e, {
|
|
841
845
|
className: "size-6",
|
|
842
846
|
"aria-hidden": "true"
|
|
843
847
|
}),
|
|
844
848
|
title: "No holdings",
|
|
845
849
|
description: "This account has no positions recorded yet."
|
|
846
|
-
}) : /* @__PURE__ */
|
|
850
|
+
}) : /* @__PURE__ */ S("div", {
|
|
847
851
|
className: "overflow-x-auto rounded-lg border border-border-subtle",
|
|
848
|
-
children: /* @__PURE__ */
|
|
849
|
-
/* @__PURE__ */
|
|
850
|
-
/* @__PURE__ */
|
|
852
|
+
children: /* @__PURE__ */ C(Re, { children: [/* @__PURE__ */ S(Be, { children: /* @__PURE__ */ C(B, { children: [
|
|
853
|
+
/* @__PURE__ */ S(z, { children: "Holding" }),
|
|
854
|
+
/* @__PURE__ */ S(z, {
|
|
851
855
|
className: "text-right",
|
|
852
856
|
children: "Qty"
|
|
853
857
|
}),
|
|
854
|
-
/* @__PURE__ */
|
|
858
|
+
/* @__PURE__ */ S(z, {
|
|
855
859
|
className: "text-right",
|
|
856
860
|
children: "Price"
|
|
857
861
|
}),
|
|
858
|
-
/* @__PURE__ */
|
|
862
|
+
/* @__PURE__ */ S(z, {
|
|
859
863
|
className: "text-right",
|
|
860
864
|
children: "Market value"
|
|
861
865
|
})
|
|
862
|
-
] }) }), /* @__PURE__ */
|
|
866
|
+
] }) }), /* @__PURE__ */ S(ze, { children: i.holdings.map((e) => /* @__PURE__ */ C(B, {
|
|
863
867
|
className: "transition-colors hover:bg-bg-elevated",
|
|
864
868
|
children: [
|
|
865
|
-
/* @__PURE__ */
|
|
869
|
+
/* @__PURE__ */ C(R, { children: [/* @__PURE__ */ S("p", {
|
|
866
870
|
className: "font-medium text-text-primary",
|
|
867
871
|
children: e.symbol
|
|
868
|
-
}), e.name ? /* @__PURE__ */
|
|
872
|
+
}), e.name ? /* @__PURE__ */ S("p", {
|
|
869
873
|
className: "truncate text-xs text-text-secondary",
|
|
870
874
|
children: e.name
|
|
871
875
|
}) : null] }),
|
|
872
|
-
/* @__PURE__ */
|
|
876
|
+
/* @__PURE__ */ S(R, {
|
|
873
877
|
className: "text-right tabular-nums text-text-secondary",
|
|
874
878
|
children: e.quantity
|
|
875
879
|
}),
|
|
876
|
-
/* @__PURE__ */
|
|
880
|
+
/* @__PURE__ */ S(R, {
|
|
877
881
|
className: "text-right tabular-nums text-text-secondary",
|
|
878
|
-
children:
|
|
882
|
+
children: m(e.lastPrice, e.currency)
|
|
879
883
|
}),
|
|
880
|
-
/* @__PURE__ */
|
|
884
|
+
/* @__PURE__ */ S(R, {
|
|
881
885
|
className: "text-right font-semibold tabular-nums text-text-primary",
|
|
882
|
-
children:
|
|
886
|
+
children: m(e.marketValue, e.currency)
|
|
883
887
|
})
|
|
884
888
|
]
|
|
885
889
|
}, e.id)) })] })
|
|
886
890
|
})
|
|
887
891
|
}),
|
|
888
|
-
/* @__PURE__ */
|
|
892
|
+
/* @__PURE__ */ C(H, {
|
|
889
893
|
value: "transactions",
|
|
890
894
|
className: "mt-4 space-y-3",
|
|
891
|
-
children: [/* @__PURE__ */
|
|
895
|
+
children: [/* @__PURE__ */ C("div", {
|
|
892
896
|
className: "flex items-center justify-between",
|
|
893
|
-
children: [/* @__PURE__ */
|
|
897
|
+
children: [/* @__PURE__ */ S("h3", {
|
|
894
898
|
className: "text-sm font-semibold text-text-primary",
|
|
895
899
|
children: "Recent activity"
|
|
896
|
-
}), /* @__PURE__ */
|
|
900
|
+
}), /* @__PURE__ */ C(T, {
|
|
897
901
|
size: "sm",
|
|
898
|
-
onClick: r,
|
|
899
|
-
children: [/* @__PURE__ */
|
|
902
|
+
onClick: () => r(i.id),
|
|
903
|
+
children: [/* @__PURE__ */ S(x, {
|
|
900
904
|
className: "size-4",
|
|
901
905
|
"aria-hidden": "true"
|
|
902
906
|
}), "Record"]
|
|
903
907
|
})]
|
|
904
|
-
}),
|
|
905
|
-
icon: /* @__PURE__ */
|
|
908
|
+
}), s.isLoading ? /* @__PURE__ */ S(f, { rows: 2 }) : s.isError ? /* @__PURE__ */ S(d, { onRetry: () => s.refetch() }) : c.length === 0 ? /* @__PURE__ */ S(u, {
|
|
909
|
+
icon: /* @__PURE__ */ S(x, {
|
|
906
910
|
className: "size-6",
|
|
907
911
|
"aria-hidden": "true"
|
|
908
912
|
}),
|
|
909
913
|
title: "No transactions",
|
|
910
914
|
description: "Record a transaction to see activity here.",
|
|
911
|
-
action: /* @__PURE__ */
|
|
915
|
+
action: /* @__PURE__ */ C(T, {
|
|
912
916
|
size: "sm",
|
|
913
|
-
onClick: r,
|
|
914
|
-
children: [/* @__PURE__ */
|
|
917
|
+
onClick: () => r(i.id),
|
|
918
|
+
children: [/* @__PURE__ */ S(be, {
|
|
915
919
|
className: "size-4",
|
|
916
920
|
"aria-hidden": "true"
|
|
917
921
|
}), "Record transaction"]
|
|
918
922
|
})
|
|
919
|
-
}) : /* @__PURE__ */
|
|
923
|
+
}) : /* @__PURE__ */ C("div", {
|
|
920
924
|
className: "space-y-2",
|
|
921
|
-
children: [
|
|
922
|
-
let t =
|
|
923
|
-
return /* @__PURE__ */
|
|
925
|
+
children: [c.map((e) => {
|
|
926
|
+
let t = K(e.type), n = t ? y : v, r = t ? "text-status-success-text" : "text-status-error-text";
|
|
927
|
+
return /* @__PURE__ */ C("div", {
|
|
924
928
|
className: "flex items-center justify-between gap-3 rounded-lg border border-border-subtle bg-bg-surface p-3 transition-colors hover:bg-bg-elevated",
|
|
925
|
-
children: [/* @__PURE__ */
|
|
929
|
+
children: [/* @__PURE__ */ C("div", {
|
|
926
930
|
className: "flex min-w-0 items-center gap-3",
|
|
927
|
-
children: [/* @__PURE__ */
|
|
931
|
+
children: [/* @__PURE__ */ S("span", {
|
|
928
932
|
className: `flex size-8 shrink-0 items-center justify-center rounded-full ${t ? "bg-status-success-bg" : "bg-status-error-bg"} ${r}`,
|
|
929
933
|
"aria-hidden": "true",
|
|
930
|
-
children: /* @__PURE__ */
|
|
931
|
-
}), /* @__PURE__ */
|
|
934
|
+
children: /* @__PURE__ */ S(n, { className: "size-4" })
|
|
935
|
+
}), /* @__PURE__ */ C("div", {
|
|
932
936
|
className: "min-w-0",
|
|
933
|
-
children: [/* @__PURE__ */
|
|
937
|
+
children: [/* @__PURE__ */ C("div", {
|
|
934
938
|
className: "flex items-center gap-2",
|
|
935
|
-
children: [/* @__PURE__ */
|
|
939
|
+
children: [/* @__PURE__ */ S("span", {
|
|
936
940
|
className: "truncate text-sm font-medium text-text-primary",
|
|
937
941
|
children: e.type.replace(/_/g, " ")
|
|
938
|
-
}), e.symbol ? /* @__PURE__ */
|
|
942
|
+
}), e.symbol ? /* @__PURE__ */ S(w, {
|
|
939
943
|
variant: "outline",
|
|
940
944
|
className: "shrink-0",
|
|
941
945
|
children: e.symbol
|
|
942
946
|
}) : null]
|
|
943
|
-
}), /* @__PURE__ */
|
|
947
|
+
}), /* @__PURE__ */ S("p", {
|
|
944
948
|
className: "mt-0.5 text-xs text-text-secondary",
|
|
945
|
-
children:
|
|
949
|
+
children: se(e.tradeDate)
|
|
946
950
|
})]
|
|
947
951
|
})]
|
|
948
|
-
}), /* @__PURE__ */
|
|
952
|
+
}), /* @__PURE__ */ C("span", {
|
|
949
953
|
className: `shrink-0 text-sm font-semibold tabular-nums ${r}`,
|
|
950
|
-
children: [t ? "+" : "−",
|
|
954
|
+
children: [t ? "+" : "−", m(Math.abs(e.amount), e.currency)]
|
|
951
955
|
})]
|
|
952
956
|
}, e.id);
|
|
953
|
-
}), /* @__PURE__ */
|
|
954
|
-
hasMore:
|
|
955
|
-
onClick:
|
|
956
|
-
loading:
|
|
957
|
+
}), /* @__PURE__ */ S(ne, {
|
|
958
|
+
hasMore: s.hasMore,
|
|
959
|
+
onClick: s.loadMore,
|
|
960
|
+
loading: s.isFetchingNextPage
|
|
957
961
|
})]
|
|
958
962
|
})]
|
|
959
963
|
}),
|
|
960
|
-
/* @__PURE__ */
|
|
964
|
+
/* @__PURE__ */ S(H, {
|
|
961
965
|
value: "documents",
|
|
962
966
|
className: "mt-4",
|
|
963
|
-
children: /* @__PURE__ */
|
|
967
|
+
children: /* @__PURE__ */ S(h, {
|
|
964
968
|
entityType: "brainyrich-account",
|
|
965
969
|
entityId: i.id
|
|
966
970
|
})
|
|
@@ -968,9 +972,9 @@ function Ge({ accountId: t, onClose: n, onRecordTransaction: r }) {
|
|
|
968
972
|
]
|
|
969
973
|
})
|
|
970
974
|
]
|
|
971
|
-
}) : /* @__PURE__ */
|
|
975
|
+
}) : /* @__PURE__ */ S("div", {
|
|
972
976
|
className: "p-6",
|
|
973
|
-
children: /* @__PURE__ */
|
|
977
|
+
children: /* @__PURE__ */ S(u, {
|
|
974
978
|
title: "Account not found",
|
|
975
979
|
description: "This account is no longer available."
|
|
976
980
|
})
|
|
@@ -979,6 +983,6 @@ function Ge({ accountId: t, onClose: n, onRecordTransaction: r }) {
|
|
|
979
983
|
});
|
|
980
984
|
}
|
|
981
985
|
//#endregion
|
|
982
|
-
export {
|
|
986
|
+
export { Y as AccountsPage };
|
|
983
987
|
|
|
984
988
|
//# sourceMappingURL=AccountsPage.js.map
|