@burdenoff/microfe-notification 2026.1124.1 → 2026.1127.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/AdminNotificationRoutes.js +59 -51
- package/dist/AdminNotificationRoutes.js.map +1 -1
- package/dist/NotificationRoutes.js +76 -68
- package/dist/NotificationRoutes.js.map +1 -1
- package/dist/UserNotificationRoutes.js +39 -31
- package/dist/UserNotificationRoutes.js.map +1 -1
- package/dist/components/NotificationListFooter.js +1 -1
- package/dist/components/NotificationListFooter.js.map +1 -1
- package/dist/components/NotificationPanel.js +0 -1
- package/dist/components/NotificationPanel.js.map +1 -1
- package/dist/components/loadingSystem.d.ts +64 -0
- package/dist/components/loadingSystem.js +34 -0
- package/dist/components/loadingSystem.js.map +1 -0
- package/dist/graphql/global-client.js +34 -34
- package/dist/index.js +9 -11
- package/dist/navigation-v2/AdminPageV2.js +23 -16
- package/dist/navigation-v2/AdminPageV2.js.map +1 -1
- package/dist/navigation-v2/NotificationArchivedV2.js +104 -98
- package/dist/navigation-v2/NotificationArchivedV2.js.map +1 -1
- package/dist/navigation-v2/NotificationInboxV2.js +133 -127
- package/dist/navigation-v2/NotificationInboxV2.js.map +1 -1
- package/dist/navigation-v2/NotificationSettingsV2.js +91 -85
- package/dist/navigation-v2/NotificationSettingsV2.js.map +1 -1
- package/dist/navigation-v2/NotificationsV2Landing.js +31 -23
- package/dist/navigation-v2/NotificationsV2Landing.js.map +1 -1
- package/dist/pages/CreateNotificationPage.js +442 -432
- package/dist/pages/CreateNotificationPage.js.map +1 -1
- package/dist/pages/NotificationCenterPage.js +93 -87
- package/dist/pages/NotificationCenterPage.js.map +1 -1
- package/dist/pages/NotificationHistoryAdminPage.js +231 -225
- package/dist/pages/NotificationHistoryAdminPage.js.map +1 -1
- package/dist/pages/NotificationHistoryPage.js +72 -66
- package/dist/pages/NotificationHistoryPage.js.map +1 -1
- package/dist/pages/NotificationLandingPage.js +42 -34
- package/dist/pages/NotificationLandingPage.js.map +1 -1
- package/dist/pages/NotificationPreferencesPage.js +80 -71
- package/dist/pages/NotificationPreferencesPage.js.map +1 -1
- package/dist/pages/NotificationTemplatesPage.js +192 -181
- package/dist/pages/NotificationTemplatesPage.js.map +1 -1
- package/dist/pages/NotificationTopicsPage.js +124 -118
- package/dist/pages/NotificationTopicsPage.js.map +1 -1
- package/dist/pages/TemplateEditorPage.js +248 -233
- package/dist/pages/TemplateEditorPage.js.map +1 -1
- package/package.json +5 -2
- package/dist/components/index.js +0 -4
- package/dist/hooks/index.js +0 -8
- package/dist/node_modules/@apollo/client/errors/CombinedGraphQLErrors.js +0 -23
- package/dist/node_modules/@apollo/client/errors/CombinedGraphQLErrors.js.map +0 -1
- package/dist/node_modules/@apollo/client/errors/utils.js +0 -15
- package/dist/node_modules/@apollo/client/errors/utils.js.map +0 -1
- package/dist/node_modules/@apollo/client/link/core/ApolloLink.js +0 -51
- package/dist/node_modules/@apollo/client/link/core/ApolloLink.js.map +0 -1
- package/dist/node_modules/@apollo/client/link/subscriptions/index.js +0 -40
- package/dist/node_modules/@apollo/client/link/subscriptions/index.js.map +0 -1
- package/dist/node_modules/@apollo/client/link/utils/createOperation.js +0 -33
- package/dist/node_modules/@apollo/client/link/utils/createOperation.js.map +0 -1
- package/dist/node_modules/@apollo/client/utilities/caching/sizes.js +0 -5
- package/dist/node_modules/@apollo/client/utilities/caching/sizes.js.map +0 -1
- package/dist/node_modules/@apollo/client/utilities/graphql/print.js +0 -15
- package/dist/node_modules/@apollo/client/utilities/graphql/print.js.map +0 -1
- package/dist/node_modules/@apollo/client/utilities/internal/caches.js +0 -18
- package/dist/node_modules/@apollo/client/utilities/internal/caches.js.map +0 -1
- package/dist/node_modules/@apollo/client/utilities/internal/checkDocument.js +0 -20
- package/dist/node_modules/@apollo/client/utilities/internal/checkDocument.js.map +0 -1
- package/dist/node_modules/@apollo/client/utilities/internal/getMainDefinition.js +0 -16
- package/dist/node_modules/@apollo/client/utilities/internal/getMainDefinition.js.map +0 -1
- package/dist/node_modules/@apollo/client/utilities/internal/getMemoryInternals.js +0 -8
- package/dist/node_modules/@apollo/client/utilities/internal/getMemoryInternals.js.map +0 -1
- package/dist/node_modules/@apollo/client/utilities/internal/getOperationDefinition.js +0 -8
- package/dist/node_modules/@apollo/client/utilities/internal/getOperationDefinition.js.map +0 -1
- package/dist/node_modules/@apollo/client/utilities/internal/getOperationName.js +0 -7
- package/dist/node_modules/@apollo/client/utilities/internal/getOperationName.js.map +0 -1
- package/dist/node_modules/@apollo/client/utilities/internal/globals/global.js +0 -8
- package/dist/node_modules/@apollo/client/utilities/internal/globals/global.js.map +0 -1
- package/dist/node_modules/@apollo/client/utilities/internal/globals/maybe.js +0 -9
- package/dist/node_modules/@apollo/client/utilities/internal/globals/maybe.js.map +0 -1
- package/dist/node_modules/@apollo/client/utilities/internal/isNonNullObject.js +0 -7
- package/dist/node_modules/@apollo/client/utilities/internal/isNonNullObject.js.map +0 -1
- package/dist/node_modules/@apollo/client/utilities/internal/makeUniqueId.js +0 -9
- package/dist/node_modules/@apollo/client/utilities/internal/makeUniqueId.js.map +0 -1
- package/dist/node_modules/@apollo/client/utilities/internal/memoize.js +0 -22
- package/dist/node_modules/@apollo/client/utilities/internal/memoize.js.map +0 -1
- package/dist/node_modules/@apollo/client/utilities/internal/stringifyForDisplay.js +0 -9
- package/dist/node_modules/@apollo/client/utilities/internal/stringifyForDisplay.js.map +0 -1
- package/dist/node_modules/@apollo/client/utilities/invariant/index.js +0 -56
- package/dist/node_modules/@apollo/client/utilities/invariant/index.js.map +0 -1
- package/dist/node_modules/@apollo/client/version.js +0 -5
- package/dist/node_modules/@apollo/client/version.js.map +0 -1
- package/dist/node_modules/@wry/caches/lib/weak.js +0 -66
- package/dist/node_modules/@wry/caches/lib/weak.js.map +0 -1
- package/dist/node_modules/@wry/trie/lib/index.js +0 -52
- package/dist/node_modules/@wry/trie/lib/index.js.map +0 -1
- package/dist/node_modules/graphql-ws/dist/client.js +0 -279
- package/dist/node_modules/graphql-ws/dist/client.js.map +0 -1
- package/dist/node_modules/graphql-ws/dist/common-CGW11Fyb.js +0 -61
- package/dist/node_modules/graphql-ws/dist/common-CGW11Fyb.js.map +0 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/NotificationFactories.js +0 -20
- package/dist/node_modules/rxjs/dist/esm5/internal/NotificationFactories.js.map +0 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/Observable.js +0 -77
- package/dist/node_modules/rxjs/dist/esm5/internal/Observable.js.map +0 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/Subscriber.js +0 -116
- package/dist/node_modules/rxjs/dist/esm5/internal/Subscriber.js.map +0 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/Subscription.js +0 -96
- package/dist/node_modules/rxjs/dist/esm5/internal/Subscription.js.map +0 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/config.js +0 -11
- package/dist/node_modules/rxjs/dist/esm5/internal/config.js.map +0 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/observable/empty.js +0 -8
- package/dist/node_modules/rxjs/dist/esm5/internal/observable/empty.js.map +0 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js +0 -15
- package/dist/node_modules/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js.map +0 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/symbol/observable.js +0 -7
- package/dist/node_modules/rxjs/dist/esm5/internal/symbol/observable.js.map +0 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/UnsubscriptionError.js +0 -12
- package/dist/node_modules/rxjs/dist/esm5/internal/util/UnsubscriptionError.js.map +0 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/arrRemove.js +0 -10
- package/dist/node_modules/rxjs/dist/esm5/internal/util/arrRemove.js.map +0 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/createErrorClass.js +0 -10
- package/dist/node_modules/rxjs/dist/esm5/internal/util/createErrorClass.js.map +0 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/errorContext.js +0 -21
- package/dist/node_modules/rxjs/dist/esm5/internal/util/errorContext.js.map +0 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/identity.js +0 -7
- package/dist/node_modules/rxjs/dist/esm5/internal/util/identity.js.map +0 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/isFunction.js +0 -7
- package/dist/node_modules/rxjs/dist/esm5/internal/util/isFunction.js.map +0 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/noop.js +0 -5
- package/dist/node_modules/rxjs/dist/esm5/internal/util/noop.js.map +0 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/pipe.js +0 -12
- package/dist/node_modules/rxjs/dist/esm5/internal/util/pipe.js.map +0 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/reportUnhandledError.js +0 -13
- package/dist/node_modules/rxjs/dist/esm5/internal/util/reportUnhandledError.js.map +0 -1
- package/dist/node_modules/tslib/tslib.es6.js +0 -51
- package/dist/node_modules/tslib/tslib.es6.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserNotificationRoutes.js","names":["NotificationHistoryPage","lazy","m","NotificationPreferencesPage","PageLoader","UserNotificationRoutes","useNotification","tr","useTr","centerPath","basePath","historyDetails","useFeatureFlagDetails","historyEnabled","Suspense","Routes","Route","Navigate","NotificationCenterPage","FeatureDisabledPage"],"sources":["../src/UserNotificationRoutes.tsx"],"sourcesContent":["import { lazy, Suspense } from 'react';\nimport { Navigate, Route, Routes } from 'react-router';\nimport { useFeatureFlagDetails } from '@burdenoff/fe-libs/shared/feature-flags';\nimport { FeatureDisabledPage } from './components/FeatureDisabledPage';\nimport { useNotification } from './providers/NotificationProvider';\nimport { useTr } from './shared/hooks/useTr';\n\n// Eager load - Primary landing page\nimport { NotificationCenterPage } from './pages/NotificationCenterPage';\n\n// Lazy load - Secondary pages\nconst NotificationHistoryPage = lazy(() =>\n import('./pages/NotificationHistoryPage').then((m) => ({\n default: m.NotificationHistoryPage,\n }))\n);\nconst NotificationPreferencesPage = lazy(() =>\n import('./pages/NotificationPreferencesPage').then((m) => ({\n default: m.NotificationPreferencesPage,\n }))\n);\n\n// Loading fallback component\nfunction PageLoader() {\n return (\n <div className=\"flex h-64 items-center justify-center\">\n
|
|
1
|
+
{"version":3,"file":"UserNotificationRoutes.js","names":["NotificationHistoryPage","lazy","m","NotificationPreferencesPage","PageLoader","SectionLoaderOr","CompactMarkOr","UserNotificationRoutes","useNotification","tr","useTr","centerPath","basePath","historyDetails","useFeatureFlagDetails","historyEnabled","Suspense","Routes","Route","Navigate","NotificationCenterPage","FeatureDisabledPage"],"sources":["../src/UserNotificationRoutes.tsx"],"sourcesContent":["import { lazy, Suspense } from 'react';\nimport { Navigate, Route, Routes } from 'react-router';\nimport { useFeatureFlagDetails } from '@burdenoff/fe-libs/shared/feature-flags';\nimport { FeatureDisabledPage } from './components/FeatureDisabledPage';\nimport { useNotification } from './providers/NotificationProvider';\nimport { useTr } from './shared/hooks/useTr';\n\n// Eager load - Primary landing page\nimport { NotificationCenterPage } from './pages/NotificationCenterPage';\nimport { CompactMarkOr, SectionLoaderOr } from './components/loadingSystem';\n\n// Lazy load - Secondary pages\nconst NotificationHistoryPage = lazy(() =>\n import('./pages/NotificationHistoryPage').then((m) => ({\n default: m.NotificationHistoryPage,\n }))\n);\nconst NotificationPreferencesPage = lazy(() =>\n import('./pages/NotificationPreferencesPage').then((m) => ({\n default: m.NotificationPreferencesPage,\n }))\n);\n\n// Loading fallback component\nfunction PageLoader() {\n return (\n <SectionLoaderOr\n route\n minHeight=\"16rem\"\n today={\n <div className=\"flex h-64 items-center justify-center\">\n <CompactMarkOr\n className=\"h-8 w-8\"\n today={\n <div className=\"h-8 w-8 animate-spin rounded-full border-4 border-primary border-t-transparent\" />\n }\n />\n </div>\n }\n />\n );\n}\n\n/**\n * Internal router for the User-facing Notification microfrontend.\n * This component handles routing within the microfrontend using React Router v7.\n *\n * Only exposes user-facing routes intended for product shells. RBAC permissions\n * still gate in-page actions via usePermissions checks.\n *\n * Routes:\n * - / → Redirect to notification center\n * - /list → Notification center (canonical list alias used by shell nav homePath)\n * - /center → Notification center (in-app notifications)\n * - /history → Notification history and archive\n * - /preferences → Topic subscriptions and preferences\n * - unmatched → Absolute redirect to /{basePath}/center (avoids relative redirect loops)\n */\nexport function UserNotificationRoutes() {\n const { basePath = '/' } = useNotification();\n const tr = useTr();\n const centerPath = `${basePath.endsWith('/') ? basePath.slice(0, -1) : basePath}/center`;\n\n // Component-level feature gate. `notification.history` is declared as\n // unreleased (defaultValue=false). We use `useFeatureFlagDetails` and\n // explicitly fall back to `false` when the flag is absent from the cache,\n // because the provider's global default-allow would otherwise return `true`\n // for unseeded flags — which would defeat the whole point of the unreleased\n // pattern.\n const historyDetails = useFeatureFlagDetails('notification.history');\n const historyEnabled = historyDetails ? Boolean(historyDetails.value) : false;\n\n return (\n <Suspense fallback={<PageLoader />}>\n <Routes>\n {/* Default redirect to notification center */}\n <Route index element={<Navigate to={centerPath} replace />} />\n\n {/* Canonical list alias used by product-shell nav homePath */}\n <Route path=\"list\" element={<NotificationCenterPage />} />\n\n {/* User-facing routes (all users) */}\n <Route path=\"center\" element={<NotificationCenterPage />} />\n <Route\n path=\"history\"\n element={\n historyEnabled ? (\n <NotificationHistoryPage />\n ) : (\n <FeatureDisabledPage\n title={tr(\n 'notification.featureDisabled.historyTitle',\n 'Notification history is not enabled'\n )}\n description={tr(\n 'notification.featureDisabled.historyUserDescription',\n 'This page is controlled by the notification.history feature flag. Ask an administrator to enable it for this tenant if history should be available.'\n )}\n />\n )\n }\n />\n <Route path=\"preferences\" element={<NotificationPreferencesPage />} />\n\n {/* Catch-all route - absolute redirect so an unmatched path like /list\n cannot recursively append /center (e.g. /list/center/center/...) */}\n <Route path=\"*\" element={<Navigate to={centerPath} replace />} />\n </Routes>\n </Suspense>\n );\n}\n"],"mappings":";;;;;;;;;;AAYA,IAAMA,IAA0BC,QAC9B,OAAO,qCAAkC,CAAC,MAAM,OAAO,EACrD,SAASC,EAAE,wBACb,EAAE,CACJ,GACMC,IAA8BF,QAClC,OAAO,yCAAsC,CAAC,MAAM,OAAO,EACzD,SAASC,EAAE,4BACb,EAAE,CACJ;AAGA,SAASE,IAAa;CACpB,OACE,kBAACC,GAAD;EACE,OAAA;EACA,WAAU;EACV,OACE,kBAAC,OAAD;GAAK,WAAU;GACb,UAAA,kBAACC,GAAD;IACE,WAAU;IACV,OACE,kBAAC,OAAD,EAAK,WAAU,iFAAkF,CAAA;GAEpG,CAAA;EACE,CAAA;CAER,CAAA;AAEL;AAiBA,SAAgBC,IAAyB;CACvC,IAAM,EAAE,cAAW,QAAQC,EAAgB,GACrCC,IAAKC,EAAM,GACXC,IAAa,GAAGC,EAAS,SAAS,GAAG,IAAIA,EAAS,MAAM,GAAG,EAAE,IAAIA,EAAS,UAQ1EC,IAAiBC,EAAsB,sBAAsB,GAC7DC,IAAiBF,IAAiB,EAAQA,EAAe,QAAS;CAExE,OACE,kBAACG,GAAD;EAAU,UAAU,kBAACZ,GAAD,CAAa,CAAA;EAC/B,UAAA,kBAACa,GAAD,EAAA,UAAA;GAEE,kBAACC,GAAD;IAAO,OAAA;IAAM,SAAS,kBAACC,GAAD;KAAU,IAAIR;KAAY,SAAA;IAAS,CAAA;GAAI,CAAA;GAG7D,kBAACO,GAAD;IAAO,MAAK;IAAO,SAAS,kBAACE,GAAD,CAAyB,CAAA;GAAI,CAAA;GAGzD,kBAACF,GAAD;IAAO,MAAK;IAAS,SAAS,kBAACE,GAAD,CAAyB,CAAA;GAAI,CAAA;GAC3D,kBAACF,GAAD;IACE,MAAK;IACL,SACEH,IACE,kBAACf,GAAD,CAA0B,CAAA,IAE1B,kBAACqB,GAAD;KACE,OAAOZ,EACL,6CACA,qCACF;KACA,aAAaA,EACX,uDACA,qJACF;IACD,CAAA;GAGN,CAAA;GACD,kBAACS,GAAD;IAAO,MAAK;IAAc,SAAS,kBAACf,GAAD,CAA8B,CAAA;GAAI,CAAA;GAIrE,kBAACe,GAAD;IAAO,MAAK;IAAI,SAAS,kBAACC,GAAD;KAAU,IAAIR;KAAY,SAAA;IAAS,CAAA;GAAI,CAAA;EAC1D,EAAA,CAAA;CACA,CAAA;AAEd"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useTr as e } from "../shared/hooks/useTr.js";
|
|
2
|
-
import {
|
|
2
|
+
import { SpinnerIcon as t } from "./loadingSystem.js";
|
|
3
3
|
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
4
4
|
import { Button as i } from "@burdenoff/fe-libs/ui";
|
|
5
5
|
import { useInfiniteScroll as a } from "@burdenoff/fe-libs/shared/hooks";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NotificationListFooter.js","names":["NotificationListFooter","tr","useTr","endRef","useInfiniteScroll","isLoadingMore","onLoadMore","hasMore","
|
|
1
|
+
{"version":3,"file":"NotificationListFooter.js","names":["NotificationListFooter","tr","useTr","endRef","useInfiniteScroll","isLoadingMore","onLoadMore","hasMore","SpinnerIcon","Button","shownCount"],"sources":["../../src/components/NotificationListFooter.tsx"],"sourcesContent":["import { useInfiniteScroll } from '@burdenoff/fe-libs/shared/hooks';\nimport { Button } from '@burdenoff/fe-libs/ui';\nimport { useTr } from '../shared/hooks/useTr';\nimport { SpinnerIcon } from './loadingSystem';\n\ninterface NotificationListFooterProps {\n /** More notifications exist after the ones loaded. */\n hasMore: boolean;\n /** The next page is loading. */\n isLoadingMore: boolean;\n /** Load the next page (useNotifications' loadMore). */\n onLoadMore: () => void | Promise<void>;\n /** How many notifications the list shows; the end note needs at least one. */\n shownCount: number;\n}\n\n/**\n * The end of a notification list (BOFF-15331): loads the next page as it\n * scrolls into view, shows a loading row meanwhile, keeps a \"Load more\"\n * button for keyboard users and browsers without IntersectionObserver, and\n * says so when everything is shown.\n */\nexport function NotificationListFooter({\n hasMore,\n isLoadingMore,\n onLoadMore,\n shownCount,\n}: NotificationListFooterProps) {\n const tr = useTr();\n const endRef = useInfiniteScroll({\n hasMore,\n loading: isLoadingMore,\n onLoadMore: () => void onLoadMore(),\n });\n\n if (!hasMore) {\n return shownCount > 0 ? (\n <p\n data-testid=\"notifications-list-end\"\n className=\"py-4 text-center text-xs text-text-tertiary\"\n >\n {tr('notifications.listEnd', \"That's everything\")}\n </p>\n ) : null;\n }\n\n return (\n <div data-testid=\"notifications-list-footer\" className=\"flex flex-col items-center py-4\">\n <div ref={endRef} aria-hidden=\"true\" className=\"h-px w-full\" />\n {isLoadingMore ? (\n <div role=\"status\" className=\"flex items-center gap-2 text-sm text-text-secondary\">\n <SpinnerIcon size={16} className=\"animate-spin\" aria-hidden=\"true\" />\n {tr('notifications.loadingMore', 'Loading more…')}\n </div>\n ) : (\n <Button type=\"button\" variant=\"ghost\" size=\"sm\" onClick={() => void onLoadMore()}>\n {tr('notifications.loadMore', 'Load more')}\n </Button>\n )}\n </div>\n );\n}\n"],"mappings":";;;;;;AAsBA,SAAgBA,EAAuB,EACrC,YACA,kBACA,eACA,iBAC8B;CAC9B,IAAMC,IAAKC,EAAM,GACXC,IAASC,EAAkB;EAC/B;EACA,SAASC;EACT,kBAAkB,KAAKC,EAAW;CACpC,CAAC;CAaD,OAXKC,IAYH,kBAAC,OAAD;EAAK,eAAY;EAA4B,WAAU;EAAvD,UAAA,CACE,kBAAC,OAAD;GAAK,KAAKJ;GAAQ,eAAY;GAAO,WAAU;EAAe,CAAA,GAC7DE,IACC,kBAAC,OAAD;GAAK,MAAK;GAAS,WAAU;GAA7B,UAAA,CACE,kBAACG,GAAD;IAAa,MAAM;IAAI,WAAU;IAAe,eAAY;GAAQ,CAAA,GACnEP,EAAG,6BAA6B,eAAe,CAC7C;EAEL,CAAA,IAAA,kBAACQ,GAAD;GAAQ,MAAK;GAAS,SAAQ;GAAQ,MAAK;GAAK,eAAe,KAAKH,EAAW;GAC5E,UAAAL,EAAG,0BAA0B,WAAW;EACnC,CAAA,CAEP;C,KAvBES,IAAa,IAClB,kBAAC,KAAD;EACE,eAAY;EACZ,WAAU;EAET,UAAAT,EAAG,yBAAyB,mBAAmB;CAC/C,CAAA,IACD;AAkBR"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { useNotificationStore as e } from "../store/notificationStore.js";
|
|
2
2
|
import { useNotifications as t } from "../hooks/useNotifications.js";
|
|
3
|
-
import "../hooks/index.js";
|
|
4
3
|
import { NotificationCard as n } from "./NotificationCard.js";
|
|
5
4
|
import { useTr as r } from "../shared/hooks/useTr.js";
|
|
6
5
|
import { Bell as i, X as a } from "lucide-react";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NotificationPanel.js","names":["_Fragment","NotificationPanel","tr","useTr","glass","useGlassEmptyStates","useNotificationStore","useNotifications","isPanelOpen","recentNotifications","notifications","Fragment","togglePanel","Bell","unreadCount","markAllAsRead","X","NotificationCard","markAsRead","archiveNotification","recordAction","notification","EmptyState","onViewAll"],"sources":["../../src/components/NotificationPanel.tsx"],"sourcesContent":["import { X, Bell } from 'lucide-react';\nimport { EmptyState, useGlassEmptyStates } from '@burdenoff/fe-libs/ui';\nimport { useNotificationStore } from '../store/notificationStore';\nimport { useNotifications } from '../hooks';\nimport { NotificationCard } from './NotificationCard';\nimport { useTr } from '../shared/hooks/useTr';\n\ninterface NotificationPanelProps {\n onViewAll?: () => void;\n}\n\n/**\n * Notification dropdown panel\n *\n * Quick view of recent notifications that appears when clicking the bell icon\n */\nexport function NotificationPanel({ onViewAll }: NotificationPanelProps) {\n const tr = useTr();\n const glass = useGlassEmptyStates();\n const { isPanelOpen, togglePanel } = useNotificationStore();\n const {\n notifications,\n unreadCount,\n markAsRead,\n markAllAsRead,\n archiveNotification,\n recordAction,\n } = useNotifications();\n\n if (!isPanelOpen) return null;\n\n // Show only the 5 most recent notifications\n const recentNotifications = notifications.slice(0, 5);\n\n return (\n <>\n {/* Backdrop */}\n <div className=\"fixed inset-0 z-40\" onClick={togglePanel} aria-hidden=\"true\" />\n\n {/* Panel */}\n <div\n data-tour=\"notification-panel\"\n className=\"absolute right-0 top-full mt-2 w-96 max-h-[600px] bg-gloss-card border border-border-seam rounded-lg shadow-[var(--shadow-pop)] z-50 overflow-hidden flex flex-col animate-in fade-in slide-in-from-top-2 duration-200\"\n >\n {/* Header */}\n <div className=\"flex items-center justify-between p-4 border-b border-border-seam bg-accent-wash\">\n <div className=\"flex items-center gap-2\">\n <Bell size={20} className=\"text-primary\" />\n <h2 className=\"text-base font-semibold text-primary\">\n {tr('notifCommon.notifications', 'Notifications')}\n </h2>\n {unreadCount > 0 && (\n <span className=\"px-2 py-0.5 text-xs font-semibold tabular-nums text-white bg-primary-500 rounded-full\">\n {unreadCount}\n </span>\n )}\n </div>\n\n <div className=\"flex items-center gap-2\">\n {unreadCount > 0 && (\n <button\n data-tour=\"notification-panel-mark-all-read\"\n onClick={markAllAsRead}\n className=\"text-xs text-accent-primary hover:text-accent-primary/80 transition-colors duration-150\"\n >\n {tr('notifCommon.markAllRead', 'Mark all read')}\n </button>\n )}\n <button\n onClick={togglePanel}\n className=\"p-1 hover:bg-bg-sunken rounded transition-colors duration-150\"\n aria-label={tr('notifCommon.closePanel', 'Close panel')}\n >\n <X size={16} className=\"text-tertiary\" />\n </button>\n </div>\n </div>\n\n {/* Notifications list */}\n <div className=\"flex-1 overflow-y-auto\">\n {recentNotifications.length > 0 ? (\n <div className=\"flex flex-col gap-2 p-2\">\n {recentNotifications.map((notification) => (\n <NotificationCard\n key={notification.id}\n notification={notification}\n onMarkAsRead={markAsRead}\n onArchive={archiveNotification}\n onAction={recordAction}\n compact\n analyticsSource=\"panel\"\n />\n ))}\n </div>\n ) : glass ? (\n <EmptyState\n kind=\"all-done\"\n size=\"panel\"\n title={tr('notifCommon.noNotifications', 'No notifications')}\n description={tr('notifCommon.allCaughtUp', \"You're all caught up!\")}\n />\n ) : (\n // BOFF-15570: drop the legacy branch once every product opts in to glassEmptyStates.\n <div className=\"flex flex-col items-center justify-center p-8 text-center animate-in fade-in duration-200\">\n <Bell size={48} className=\"text-tertiary mb-4\" />\n <p className=\"text-sm text-text-secondary\">\n {tr('notifCommon.noNotifications', 'No notifications')}\n </p>\n <p className=\"text-xs text-tertiary mt-1\">\n {tr('notifCommon.allCaughtUp', \"You're all caught up!\")}\n </p>\n </div>\n )}\n </div>\n\n {/* Footer */}\n {recentNotifications.length > 0 && (\n <div className=\"p-3 border-t border-default\">\n <button\n data-tour=\"notification-panel-view-all\"\n onClick={() => {\n togglePanel();\n if (onViewAll) onViewAll();\n }}\n className=\"w-full py-2 text-sm text-accent-primary hover:text-accent-primary/80 font-medium transition-colors duration-150\"\n >\n {tr('notifCommon.viewAllNotifications', 'View All Notifications')}\n </button>\n </div>\n )}\n </div>\n </>\n );\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"NotificationPanel.js","names":["_Fragment","NotificationPanel","tr","useTr","glass","useGlassEmptyStates","useNotificationStore","useNotifications","isPanelOpen","recentNotifications","notifications","Fragment","togglePanel","Bell","unreadCount","markAllAsRead","X","NotificationCard","markAsRead","archiveNotification","recordAction","notification","EmptyState","onViewAll"],"sources":["../../src/components/NotificationPanel.tsx"],"sourcesContent":["import { X, Bell } from 'lucide-react';\nimport { EmptyState, useGlassEmptyStates } from '@burdenoff/fe-libs/ui';\nimport { useNotificationStore } from '../store/notificationStore';\nimport { useNotifications } from '../hooks';\nimport { NotificationCard } from './NotificationCard';\nimport { useTr } from '../shared/hooks/useTr';\n\ninterface NotificationPanelProps {\n onViewAll?: () => void;\n}\n\n/**\n * Notification dropdown panel\n *\n * Quick view of recent notifications that appears when clicking the bell icon\n */\nexport function NotificationPanel({ onViewAll }: NotificationPanelProps) {\n const tr = useTr();\n const glass = useGlassEmptyStates();\n const { isPanelOpen, togglePanel } = useNotificationStore();\n const {\n notifications,\n unreadCount,\n markAsRead,\n markAllAsRead,\n archiveNotification,\n recordAction,\n } = useNotifications();\n\n if (!isPanelOpen) return null;\n\n // Show only the 5 most recent notifications\n const recentNotifications = notifications.slice(0, 5);\n\n return (\n <>\n {/* Backdrop */}\n <div className=\"fixed inset-0 z-40\" onClick={togglePanel} aria-hidden=\"true\" />\n\n {/* Panel */}\n <div\n data-tour=\"notification-panel\"\n className=\"absolute right-0 top-full mt-2 w-96 max-h-[600px] bg-gloss-card border border-border-seam rounded-lg shadow-[var(--shadow-pop)] z-50 overflow-hidden flex flex-col animate-in fade-in slide-in-from-top-2 duration-200\"\n >\n {/* Header */}\n <div className=\"flex items-center justify-between p-4 border-b border-border-seam bg-accent-wash\">\n <div className=\"flex items-center gap-2\">\n <Bell size={20} className=\"text-primary\" />\n <h2 className=\"text-base font-semibold text-primary\">\n {tr('notifCommon.notifications', 'Notifications')}\n </h2>\n {unreadCount > 0 && (\n <span className=\"px-2 py-0.5 text-xs font-semibold tabular-nums text-white bg-primary-500 rounded-full\">\n {unreadCount}\n </span>\n )}\n </div>\n\n <div className=\"flex items-center gap-2\">\n {unreadCount > 0 && (\n <button\n data-tour=\"notification-panel-mark-all-read\"\n onClick={markAllAsRead}\n className=\"text-xs text-accent-primary hover:text-accent-primary/80 transition-colors duration-150\"\n >\n {tr('notifCommon.markAllRead', 'Mark all read')}\n </button>\n )}\n <button\n onClick={togglePanel}\n className=\"p-1 hover:bg-bg-sunken rounded transition-colors duration-150\"\n aria-label={tr('notifCommon.closePanel', 'Close panel')}\n >\n <X size={16} className=\"text-tertiary\" />\n </button>\n </div>\n </div>\n\n {/* Notifications list */}\n <div className=\"flex-1 overflow-y-auto\">\n {recentNotifications.length > 0 ? (\n <div className=\"flex flex-col gap-2 p-2\">\n {recentNotifications.map((notification) => (\n <NotificationCard\n key={notification.id}\n notification={notification}\n onMarkAsRead={markAsRead}\n onArchive={archiveNotification}\n onAction={recordAction}\n compact\n analyticsSource=\"panel\"\n />\n ))}\n </div>\n ) : glass ? (\n <EmptyState\n kind=\"all-done\"\n size=\"panel\"\n title={tr('notifCommon.noNotifications', 'No notifications')}\n description={tr('notifCommon.allCaughtUp', \"You're all caught up!\")}\n />\n ) : (\n // BOFF-15570: drop the legacy branch once every product opts in to glassEmptyStates.\n <div className=\"flex flex-col items-center justify-center p-8 text-center animate-in fade-in duration-200\">\n <Bell size={48} className=\"text-tertiary mb-4\" />\n <p className=\"text-sm text-text-secondary\">\n {tr('notifCommon.noNotifications', 'No notifications')}\n </p>\n <p className=\"text-xs text-tertiary mt-1\">\n {tr('notifCommon.allCaughtUp', \"You're all caught up!\")}\n </p>\n </div>\n )}\n </div>\n\n {/* Footer */}\n {recentNotifications.length > 0 && (\n <div className=\"p-3 border-t border-default\">\n <button\n data-tour=\"notification-panel-view-all\"\n onClick={() => {\n togglePanel();\n if (onViewAll) onViewAll();\n }}\n className=\"w-full py-2 text-sm text-accent-primary hover:text-accent-primary/80 font-medium transition-colors duration-150\"\n >\n {tr('notifCommon.viewAllNotifications', 'View All Notifications')}\n </button>\n </div>\n )}\n </div>\n </>\n );\n}\n"],"mappings":";;;;;;;;AAgBA,SAAgBC,EAAkB,EAAE,gBAAqC;CACvE,IAAMC,IAAKC,EAAM,GACXC,IAAQC,EAAoB,GAC5B,EAAE,gBAAa,mBAAgBC,EAAqB,GACpD,EACJ,kBACA,gBACA,eACA,kBACA,wBACA,oBACEC,EAAiB;CAErB,IAAI,CAACC,GAAa,OAAO;CAGzB,IAAMC,IAAsBC,EAAc,MAAM,GAAG,CAAC;CAEpD,OACE,kBAAAV,GAAA,EAAA,UAAA,CAEE,kBAAC,OAAD;EAAK,WAAU;EAAqB,SAASY;EAAa,eAAY;CAAQ,CAAA,GAG9E,kBAAC,OAAD;EACE,aAAU;EACV,WAAU;EAFZ,UAAA;GAKE,kBAAC,OAAD;IAAK,WAAU;IAAf,UAAA,CACE,kBAAC,OAAD;KAAK,WAAU;KAAf,UAAA;MACE,kBAACC,GAAD;OAAM,MAAM;OAAI,WAAU;MAAgB,CAAA;MAC1C,kBAAC,MAAD;OAAI,WAAU;OACX,UAAAX,EAAG,6BAA6B,eAAe;MAC9C,CAAA;MACHY,IAAc,KACb,kBAAC,QAAD;OAAM,WAAU;OACb,UAAAA;MACG,CAAA;KAEL;IAEL,CAAA,GAAA,kBAAC,OAAD;KAAK,WAAU;KAAf,UAAA,CACGA,IAAc,KACb,kBAAC,UAAD;MACE,aAAU;MACV,SAASC;MACT,WAAU;MAET,UAAAb,EAAG,2BAA2B,eAAe;KACxC,CAAA,GAEV,kBAAC,UAAD;MACE,SAASU;MACT,WAAU;MACV,cAAYV,EAAG,0BAA0B,aAAa;MAEtD,UAAA,kBAACc,GAAD;OAAG,MAAM;OAAI,WAAU;MAAiB,CAAA;KAClC,CAAA,CACL;IACF,CAAA,CAAA;;GAGL,kBAAC,OAAD;IAAK,WAAU;IACZ,UAAAP,EAAoB,SAAS,IAC5B,kBAAC,OAAD;KAAK,WAAU;KACZ,UAAAA,EAAoB,KAAK,MACxB,kBAACQ,GAAD;MAEgB;MACd,cAAcC;MACd,WAAWC;MACX,UAAUC;MACV,SAAA;MACA,iBAAgB;KACjB,GAPMC,EAAa,EAOnB,CACF;IACE,CAAA,IACHjB,IACF,kBAACkB,GAAD;KACE,MAAK;KACL,MAAK;KACL,OAAOpB,EAAG,+BAA+B,kBAAkB;KAC3D,aAAaA,EAAG,2BAA2B,uBAAuB;IACnE,CAAA,IAGD,kBAAC,OAAD;KAAK,WAAU;KAAf,UAAA;MACE,kBAACW,GAAD;OAAM,MAAM;OAAI,WAAU;MAAsB,CAAA;MAChD,kBAAC,KAAD;OAAG,WAAU;OACV,UAAAX,EAAG,+BAA+B,kBAAkB;MACpD,CAAA;MACH,kBAAC,KAAD;OAAG,WAAU;OACV,UAAAA,EAAG,2BAA2B,uBAAuB;MACrD,CAAA;KACA;;GAEJ,CAAA;GAGJO,EAAoB,SAAS,KAC5B,kBAAC,OAAD;IAAK,WAAU;IACb,UAAA,kBAAC,UAAD;KACE,aAAU;KACV,eAAe;MAEb,AADAG,EAAY,GACRW,KAAWA,EAAU;KAC3B;KACA,WAAU;KAET,UAAArB,EAAG,oCAAoC,wBAAwB;IAC1D,CAAA;GACL,CAAA;EAEJ;CACL,CAAA,CAAA,EAAA,CAAA;AAEN"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
import { SpinnerIconProps } from '@burdenoff/fe-libs/ui/loading/SpinnerIcon';
|
|
3
|
+
/**
|
|
4
|
+
* A drop-in for `<Loader2 className="… animate-spin" />`. Without the opt-in it IS this module's
|
|
5
|
+
* `Loader2`, with exactly the props it was given: fe-libs resolves a newer lucide-react than the
|
|
6
|
+
* module's (its icons add `aria-hidden`), so fe-libs' own `SpinnerIcon` would not draw the module's
|
|
7
|
+
* spinner byte for byte. Under the opt-in, fe-libs' `SpinnerIcon`: the compact mark, sized from
|
|
8
|
+
* the classes, `animate-spin` dropped; `tone="current"` lights it in the label's colour (a filled
|
|
9
|
+
* button).
|
|
10
|
+
*/
|
|
11
|
+
export declare function SpinnerIcon({ tone, ...props }: SpinnerIconProps): import('react').JSX.Element;
|
|
12
|
+
/**
|
|
13
|
+
* A spinner the module draws itself (a CSS ring, its own svg, a turning icon): `today` exactly
|
|
14
|
+
* without the opt-in; under it, the compact mark. As fe-libs' `CompactMarkOr`, with the mark's
|
|
15
|
+
* `tone`: in a filled button it lights in the label's colour (an accent light on an accent fill
|
|
16
|
+
* would not show).
|
|
17
|
+
*/
|
|
18
|
+
export declare function CompactMarkOr({ today, className, tone, }: {
|
|
19
|
+
/** The spinner as the module draws it today. */
|
|
20
|
+
today: ReactNode;
|
|
21
|
+
/** The compact mark's classes (its size, its margins). */
|
|
22
|
+
className?: string;
|
|
23
|
+
tone?: 'brand' | 'current';
|
|
24
|
+
}): import('react').JSX.Element;
|
|
25
|
+
export type SkeletonBlockProps = HTMLAttributes<HTMLElement> & {
|
|
26
|
+
/** Today's element: a `span` stays a `span` (it may sit in a line of text). */
|
|
27
|
+
as?: 'div' | 'span';
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* A grey block standing in for content on its way: a drop-in for today's hand-made
|
|
31
|
+
* `<div className="… animate-pulse bg-…" />`. Without the opt-in it IS that element, with exactly
|
|
32
|
+
* the props it was given, in their order; under it, the system's skeleton (one light passing, still
|
|
33
|
+
* under reduced motion, hidden from assistive technology) in the block's size, shape and place.
|
|
34
|
+
*/
|
|
35
|
+
export declare function SkeletonBlock({ as, ...props }: SkeletonBlockProps): import('react').JSX.Element;
|
|
36
|
+
/**
|
|
37
|
+
* A box that pulses as a whole around its grey blocks (today's `<div className="animate-pulse …">`
|
|
38
|
+
* with plain blocks inside): a drop-in for that element. Without the opt-in it IS that element,
|
|
39
|
+
* prop for prop; under it, the same element without the pulse (its blocks are `SkeletonBlock`s,
|
|
40
|
+
* each with the system's light).
|
|
41
|
+
*/
|
|
42
|
+
export type SkeletonGroupProps = HTMLAttributes<HTMLElement> & {
|
|
43
|
+
/** Today's element. */
|
|
44
|
+
as?: 'div' | 'span' | 'li' | 'section';
|
|
45
|
+
};
|
|
46
|
+
export declare function SkeletonGroup({ as, ...props }: SkeletonGroupProps): import('react').JSX.Element;
|
|
47
|
+
export interface SectionLoaderOrProps {
|
|
48
|
+
/** Today's loader, rendered exactly as it is without the opt-in. */
|
|
49
|
+
today: ReactNode;
|
|
50
|
+
/** What is loading, from today's words; the shell's "Loading…" when the box had none. */
|
|
51
|
+
label?: string;
|
|
52
|
+
/** Today's box height, so nothing moves when the content lands. */
|
|
53
|
+
minHeight?: string;
|
|
54
|
+
/** A page's loader (a route's code or its first data): it also runs the route wire. */
|
|
55
|
+
route?: boolean;
|
|
56
|
+
/** Where today's box sat (its grid span, margins). */
|
|
57
|
+
className?: string;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* A box that waits on content of unknown shape. Without the opt-in it is `today`, exactly; under
|
|
61
|
+
* it, fe-libs' `SectionLoader`: nothing for 300 ms, then the product's mark and the words, held at
|
|
62
|
+
* least 600 ms, in a box of today's height.
|
|
63
|
+
*/
|
|
64
|
+
export declare function SectionLoaderOr({ today, label, minHeight, route, className, }: SectionLoaderOrProps): import('react').JSX.Element;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Loader2 as e } from "lucide-react";
|
|
2
|
+
import { Fragment as t, jsx as n } from "react/jsx-runtime";
|
|
3
|
+
import { BrandLoader as r } from "@burdenoff/fe-libs/ui/loading/BrandLoader";
|
|
4
|
+
import { useLoadingSystem as i } from "@burdenoff/fe-libs/ui/loading/LoadingSystemProvider";
|
|
5
|
+
import { SectionLoader as a } from "@burdenoff/fe-libs/ui/loading/Loaders";
|
|
6
|
+
import { SpinnerIcon as o } from "@burdenoff/fe-libs/ui/loading/SpinnerIcon";
|
|
7
|
+
import "@burdenoff/fe-libs/ui/skeleton";
|
|
8
|
+
import { useShellLabel as s } from "@burdenoff/fe-libs/shared/providers/shell/useShellLabel";
|
|
9
|
+
// src/components/loadingSystem.tsx
|
|
10
|
+
function c({ tone: t, ...r }) {
|
|
11
|
+
return i() ? /* @__PURE__ */ n(o, {
|
|
12
|
+
tone: t,
|
|
13
|
+
...r
|
|
14
|
+
}) : /* @__PURE__ */ n(e, { ...r });
|
|
15
|
+
}
|
|
16
|
+
function l({ today: e, className: a, tone: o }) {
|
|
17
|
+
return i() ? /* @__PURE__ */ n(r, {
|
|
18
|
+
size: "s",
|
|
19
|
+
tone: o,
|
|
20
|
+
className: a
|
|
21
|
+
}) : /* @__PURE__ */ n(t, { children: e });
|
|
22
|
+
}
|
|
23
|
+
function u({ today: e, label: r, minHeight: o, route: c, className: l }) {
|
|
24
|
+
let u = i(), d = s();
|
|
25
|
+
return u ? /* @__PURE__ */ n(a, {
|
|
26
|
+
label: r ?? d("loading.generic", "Loading…"),
|
|
27
|
+
minHeight: o,
|
|
28
|
+
route: c,
|
|
29
|
+
className: l
|
|
30
|
+
}) : /* @__PURE__ */ n(t, { children: e });
|
|
31
|
+
}
|
|
32
|
+
export { l as CompactMarkOr, u as SectionLoaderOr, c as SpinnerIcon };
|
|
33
|
+
|
|
34
|
+
//# sourceMappingURL=loadingSystem.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"loadingSystem.js","names":["SpinnerIcon","SystemSpinnerIcon","_Fragment","SpinnerIcon$1","props","useLoadingSystem","SpinnerIcon","Loader2","CompactMarkOr","BrandLoader","Fragment","today","SectionLoaderOr","loadingSystem","shellLabel","useShellLabel","SectionLoader","label"],"sources":["../../src/components/loadingSystem.tsx"],"sourcesContent":["/**\n * The loading system's pieces for this module's own hand-made loaders (BOFF-16259). Without the\n * product's opt-in (`AppShellConfig.loadingSystem`, FluidGrids only) each renders exactly today's\n * markup, so every other product that mounts the module sees no change; under it, the fe-libs\n * piece: the compact mark for a spinner, the system's skeleton for a pulse block, the section\n * loader for a box that waits.\n *\n * fe-libs is imported by its per-file paths (the same modules its barrels re-export), so a test\n * that stubs a barrel never takes these pieces with it; a component that branches on the opt-in\n * itself reads `useLoadingSystem` from `@burdenoff/fe-libs/ui/loading/LoadingSystemProvider`.\n */\nimport type { HTMLAttributes, ReactNode } from 'react';\nimport { Loader2 } from 'lucide-react';\nimport { BrandLoader } from '@burdenoff/fe-libs/ui/loading/BrandLoader';\nimport { useLoadingSystem } from '@burdenoff/fe-libs/ui/loading/LoadingSystemProvider';\nimport { SectionLoader } from '@burdenoff/fe-libs/ui/loading/Loaders';\nimport {\n SpinnerIcon as SystemSpinnerIcon,\n type SpinnerIconProps,\n} from '@burdenoff/fe-libs/ui/loading/SpinnerIcon';\nimport { Skeleton } from '@burdenoff/fe-libs/ui/skeleton';\nimport { useShellLabel } from '@burdenoff/fe-libs/shared/providers/shell/useShellLabel';\n\n/**\n * A drop-in for `<Loader2 className=\"… animate-spin\" />`. Without the opt-in it IS this module's\n * `Loader2`, with exactly the props it was given: fe-libs resolves a newer lucide-react than the\n * module's (its icons add `aria-hidden`), so fe-libs' own `SpinnerIcon` would not draw the module's\n * spinner byte for byte. Under the opt-in, fe-libs' `SpinnerIcon`: the compact mark, sized from\n * the classes, `animate-spin` dropped; `tone=\"current\"` lights it in the label's colour (a filled\n * button).\n */\nexport function SpinnerIcon({ tone, ...props }: SpinnerIconProps) {\n const loadingSystem = useLoadingSystem();\n if (!loadingSystem) return <Loader2 {...props} />;\n return <SystemSpinnerIcon tone={tone} {...props} />;\n}\n\n/**\n * A spinner the module draws itself (a CSS ring, its own svg, a turning icon): `today` exactly\n * without the opt-in; under it, the compact mark. As fe-libs' `CompactMarkOr`, with the mark's\n * `tone`: in a filled button it lights in the label's colour (an accent light on an accent fill\n * would not show).\n */\nexport function CompactMarkOr({\n today,\n className,\n tone,\n}: {\n /** The spinner as the module draws it today. */\n today: ReactNode;\n /** The compact mark's classes (its size, its margins). */\n className?: string;\n tone?: 'brand' | 'current';\n}) {\n const loadingSystem = useLoadingSystem();\n if (!loadingSystem) return <>{today}</>;\n return <BrandLoader size=\"s\" tone={tone} className={className} />;\n}\n\n/** What today's block paints itself, which the system's skeleton paints instead. */\nconst TODAYS_PAINT = /^(?:[\\w-]+:)*(?:animate-pulse|animate-vc-shimmer|bg-\\S+)$/;\n\n/** A pulse block's classes under the opt-in: its size, shape and place, not its paint. */\nfunction skeletonClasses(className: string | undefined): string | undefined {\n const kept = (className ?? '')\n .split(/\\s+/)\n .filter((c) => c && !TODAYS_PAINT.test(c))\n .join(' ');\n return kept || undefined;\n}\n\nexport type SkeletonBlockProps = HTMLAttributes<HTMLElement> & {\n /** Today's element: a `span` stays a `span` (it may sit in a line of text). */\n as?: 'div' | 'span';\n};\n\n/**\n * A grey block standing in for content on its way: a drop-in for today's hand-made\n * `<div className=\"… animate-pulse bg-…\" />`. Without the opt-in it IS that element, with exactly\n * the props it was given, in their order; under it, the system's skeleton (one light passing, still\n * under reduced motion, hidden from assistive technology) in the block's size, shape and place.\n */\nexport function SkeletonBlock({ as = 'div', ...props }: SkeletonBlockProps) {\n const loadingSystem = useLoadingSystem();\n if (!loadingSystem) {\n const Today = as;\n return <Today {...props} />;\n }\n const { className, ...rest } = props;\n const kept = skeletonClasses(className);\n if (as === 'span') {\n // fe-libs' Skeleton is a div; in a line of text the same skeleton is a span (its attributes,\n // its corner unless the block sets its own).\n const corner = kept && /(?:^|\\s|:)rounded/.test(kept) ? '' : 'rounded-card';\n return (\n <span\n data-slot=\"skeleton\"\n data-loading-system=\"skeleton\"\n aria-hidden=\"true\"\n className={[corner, kept].filter(Boolean).join(' ')}\n {...rest}\n />\n );\n }\n return <Skeleton className={kept} {...(rest as HTMLAttributes<HTMLDivElement>)} />;\n}\n\n/**\n * A box that pulses as a whole around its grey blocks (today's `<div className=\"animate-pulse …\">`\n * with plain blocks inside): a drop-in for that element. Without the opt-in it IS that element,\n * prop for prop; under it, the same element without the pulse (its blocks are `SkeletonBlock`s,\n * each with the system's light).\n */\nexport type SkeletonGroupProps = HTMLAttributes<HTMLElement> & {\n /** Today's element. */\n as?: 'div' | 'span' | 'li' | 'section';\n};\n\nexport function SkeletonGroup({ as = 'div', ...props }: SkeletonGroupProps) {\n const loadingSystem = useLoadingSystem();\n const Today = as;\n if (!loadingSystem) return <Today {...props} />;\n const className =\n props.className\n ?.split(/\\s+/)\n .filter((c) => c && !/^(?:[\\w-]+:)*(?:animate-pulse|animate-vc-shimmer)$/.test(c))\n .join(' ') || undefined;\n return <Today {...props} className={className} />;\n}\n\nexport interface SectionLoaderOrProps {\n /** Today's loader, rendered exactly as it is without the opt-in. */\n today: ReactNode;\n /** What is loading, from today's words; the shell's \"Loading…\" when the box had none. */\n label?: string;\n /** Today's box height, so nothing moves when the content lands. */\n minHeight?: string;\n /** A page's loader (a route's code or its first data): it also runs the route wire. */\n route?: boolean;\n /** Where today's box sat (its grid span, margins). */\n className?: string;\n}\n\n/**\n * A box that waits on content of unknown shape. Without the opt-in it is `today`, exactly; under\n * it, fe-libs' `SectionLoader`: nothing for 300 ms, then the product's mark and the words, held at\n * least 600 ms, in a box of today's height.\n */\nexport function SectionLoaderOr({\n today,\n label,\n minHeight,\n route,\n className,\n}: SectionLoaderOrProps) {\n const loadingSystem = useLoadingSystem();\n const shellLabel = useShellLabel();\n if (!loadingSystem) return <>{today}</>;\n return (\n <SectionLoader\n label={label ?? shellLabel('loading.generic', 'Loading…')}\n minHeight={minHeight}\n route={route}\n className={className}\n />\n );\n}\n"],"mappings":";;;;;;;;;AA+BA,SAAgBA,EAAY,EAAE,SAAM,GAAGI,KAA2B;CAGhE,OAFsBC,EACjB,IACE,kBAACJ,GAAD;EAAyB;EAAM,GAAIG;CAAQ,CAAA,IADvB,kBAACG,GAAD,EAAS,GAAIH,EAAQ,CAAA;AAElD;AAQA,SAAgBI,EAAc,EAC5B,UACA,cACA,WAOC;CAGD,OAFsBH,EACjB,IACE,kBAACI,GAAD;EAAa,MAAK;EAAU;EAAiB;CAAY,CAAA,IADrC,kBAAAP,GAAA,EAAA,UAAGS,EAAQ,CAAA;AAExC;AA2FA,SAAgBC,EAAgB,EAC9B,UACA,UACA,cACA,UACA,gBACuB;CACvB,IAAMC,IAAgBR,EAAiB,GACjCS,IAAaC,EAAc;CAEjC,OADKF,IAEH,kBAACG,GAAD;EACE,OAAOC,KAASH,EAAW,mBAAmB,UAAU;EAC7C;EACJ;EACI;CACZ,CAAA,IAPwB,kBAAAZ,GAAA,EAAA,UAAGS,EAAQ,CAAA;AASxC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
1
|
+
import { ApolloClient as e, ApolloLink as t, HttpLink as n, InMemoryCache as r, Observable as i, from as a, split as o } from "@apollo/client";
|
|
2
|
+
import { setContext as s } from "@apollo/client/link/context";
|
|
3
|
+
import { onError as c } from "@apollo/client/link/error";
|
|
4
|
+
import { GraphQLWsLink as l } from "@apollo/client/link/subscriptions";
|
|
5
|
+
import { getMainDefinition as u } from "@apollo/client/utilities";
|
|
6
|
+
import { isAuthNetworkError as d, redirectToLogin as f } from "@burdenoff/fe-libs/shared/utils";
|
|
7
|
+
import { getStoredOrganizationId as p, getStoredWorkspaceId as m, getStoredWorkspaceToken as h, isWorkspaceTokenValidForContext as g } from "@burdenoff/fe-libs/shared/graphql";
|
|
8
|
+
import { createClient as _ } from "graphql-ws";
|
|
9
9
|
// src/graphql/global-client.ts
|
|
10
10
|
function v(e = []) {
|
|
11
11
|
return e.some((e) => {
|
|
@@ -14,17 +14,17 @@ function v(e = []) {
|
|
|
14
14
|
});
|
|
15
15
|
}
|
|
16
16
|
function y(e) {
|
|
17
|
-
let
|
|
18
|
-
return
|
|
17
|
+
let t = u(e);
|
|
18
|
+
return t.kind === "OperationDefinition" && t.operation === "mutation";
|
|
19
19
|
}
|
|
20
20
|
function b(e) {
|
|
21
21
|
let t = e.errors;
|
|
22
22
|
return Array.isArray(t) && t.length > 0;
|
|
23
23
|
}
|
|
24
24
|
function x(e) {
|
|
25
|
-
return new
|
|
25
|
+
return new t((t, n) => {
|
|
26
26
|
let r = y(t.query) && t.getContext().autoRefreshAfterMutation !== !1 && t.getContext().skipMutationAutoRefresh !== !0;
|
|
27
|
-
return new
|
|
27
|
+
return new i((i) => {
|
|
28
28
|
let a = n(t).subscribe({
|
|
29
29
|
next: (t) => {
|
|
30
30
|
i.next(t), r && !b(t) && e()?.refetchQueries({ include: "active" });
|
|
@@ -52,44 +52,44 @@ function D(e) {
|
|
|
52
52
|
}
|
|
53
53
|
var O = { preferWorkspaceAuth: !0 };
|
|
54
54
|
function k() {
|
|
55
|
-
let e =
|
|
55
|
+
let e = m();
|
|
56
56
|
if (!e) return null;
|
|
57
|
-
let t =
|
|
58
|
-
return
|
|
57
|
+
let t = h();
|
|
58
|
+
return g(t, {
|
|
59
59
|
workspaceId: e,
|
|
60
|
-
organizationId:
|
|
60
|
+
organizationId: p()
|
|
61
61
|
}) ? t : null;
|
|
62
62
|
}
|
|
63
|
-
function A(
|
|
64
|
-
let
|
|
65
|
-
if (S && C ===
|
|
66
|
-
C =
|
|
67
|
-
let
|
|
68
|
-
url: D(
|
|
69
|
-
connectionParams: () => ({ authorization:
|
|
63
|
+
function A(t, i) {
|
|
64
|
+
let p = E(t || "https://gw-global.local.burdenoff.com/global/graphql"), m = i ?? null;
|
|
65
|
+
if (S && C === p && w === m) return S;
|
|
66
|
+
C = p, w = m;
|
|
67
|
+
let h = new n({ uri: p }), g = typeof window < "u" ? new l(_({
|
|
68
|
+
url: D(p),
|
|
69
|
+
connectionParams: () => ({ authorization: i ? `Bearer ${i}` : "" }),
|
|
70
70
|
lazy: !0,
|
|
71
71
|
retryAttempts: 3
|
|
72
|
-
})) : null, y =
|
|
72
|
+
})) : null, y = s((e, t) => {
|
|
73
73
|
let n = t.preferWorkspaceAuth === !0 ? k() : null;
|
|
74
74
|
return { headers: {
|
|
75
75
|
...t.headers,
|
|
76
|
-
authorization:
|
|
76
|
+
authorization: i ? `Bearer ${i}` : "",
|
|
77
77
|
...n ? { "x-workspace-authorization": `Bearer ${n}` } : {}
|
|
78
78
|
} };
|
|
79
|
-
}), b =
|
|
80
|
-
e && (v("errors" in e && Array.isArray(e.errors) ? e.errors : []) || e instanceof Error &&
|
|
81
|
-
}), T =
|
|
82
|
-
let
|
|
83
|
-
return
|
|
84
|
-
},
|
|
85
|
-
return S = new
|
|
86
|
-
link:
|
|
79
|
+
}), b = c(({ error: e }) => {
|
|
80
|
+
e && (v("errors" in e && Array.isArray(e.errors) ? e.errors : []) || e instanceof Error && d(e)) && f();
|
|
81
|
+
}), T = g ? o(({ query: e }) => {
|
|
82
|
+
let t = u(e);
|
|
83
|
+
return t.kind === "OperationDefinition" && t.operation === "subscription";
|
|
84
|
+
}, g, h) : h, O = x(() => S);
|
|
85
|
+
return S = new e({
|
|
86
|
+
link: a([
|
|
87
87
|
b,
|
|
88
88
|
O,
|
|
89
89
|
y,
|
|
90
90
|
T
|
|
91
91
|
]),
|
|
92
|
-
cache: new
|
|
92
|
+
cache: new r({ typePolicies: {
|
|
93
93
|
Query: { fields: {
|
|
94
94
|
notifications: { merge(e, t) {
|
|
95
95
|
return t;
|
package/dist/index.js
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import "./
|
|
9
|
-
import "./components/index.js";
|
|
10
|
-
import { NotificationBell as s } from "./components/NotificationBell.js";
|
|
1
|
+
import { NotificationRoot as e } from "./NotificationRoot.js";
|
|
2
|
+
import { UserNotificationRoot as t } from "./UserNotificationRoot.js";
|
|
3
|
+
import { AdminNotificationRoot as n } from "./AdminNotificationRoot.js";
|
|
4
|
+
import { useNotifications as r } from "./hooks/useNotifications.js";
|
|
5
|
+
import { useNotificationStore as i } from "./store/notificationStore.js";
|
|
6
|
+
import { useNotification as a } from "./providers/NotificationProvider.js";
|
|
7
|
+
import { NotificationBell as o } from "./components/NotificationBell.js";
|
|
8
|
+
import { NotificationCard as s } from "./components/NotificationCard.js";
|
|
11
9
|
import { NotificationPanel as c } from "./components/NotificationPanel.js";
|
|
12
10
|
import { filterNotifications as l, formatRelativeTime as u, getNotificationTypeIcon as d, getNotificationTypeLabel as f, getPriorityColor as p, getPriorityIcon as m, groupNotificationsByDate as h, sortNotificationsByDate as g, substituteTemplateVariables as _, truncateText as v, validateTemplateVariables as y } from "./utils/index.js";
|
|
13
|
-
export {
|
|
11
|
+
export { n as AdminNotificationRoot, o as NotificationBell, s as NotificationCard, c as NotificationPanel, e as NotificationRoot, t as UserNotificationRoot, l as filterNotifications, u as formatRelativeTime, d as getNotificationTypeIcon, f as getNotificationTypeLabel, p as getPriorityColor, m as getPriorityIcon, h as groupNotificationsByDate, g as sortNotificationsByDate, _ as substituteTemplateVariables, v as truncateText, a as useNotification, i as useNotificationStore, r as useNotifications, y as validateTemplateVariables };
|
|
@@ -1,17 +1,24 @@
|
|
|
1
1
|
import { useTr as e } from "../shared/hooks/useTr.js";
|
|
2
2
|
import { BackToNotifications as t } from "./BackToNotifications.js";
|
|
3
3
|
import { holdsAdminToolPermission as n } from "./useAdminTools.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
4
|
+
import { CompactMarkOr as r, SectionLoaderOr as i } from "../components/loadingSystem.js";
|
|
5
|
+
import { usePermissions as a } from "@burdenoff/fe-libs/shared/providers/shell";
|
|
6
|
+
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
7
|
+
import { AccessGate as c } from "@burdenoff/fe-libs/ui";
|
|
7
8
|
// src/navigation-v2/AdminPageV2.tsx
|
|
8
|
-
function
|
|
9
|
-
return /* @__PURE__ */ i
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
function l() {
|
|
10
|
+
return /* @__PURE__ */ o(i, {
|
|
11
|
+
minHeight: "16rem",
|
|
12
|
+
today: /* @__PURE__ */ o("div", {
|
|
13
|
+
className: "flex h-64 items-center justify-center",
|
|
14
|
+
children: /* @__PURE__ */ o(r, {
|
|
15
|
+
className: "h-8 w-8",
|
|
16
|
+
today: /* @__PURE__ */ o("div", { className: "h-8 w-8 animate-spin rounded-full border-4 border-primary border-t-transparent" })
|
|
17
|
+
})
|
|
18
|
+
})
|
|
12
19
|
});
|
|
13
20
|
}
|
|
14
|
-
var
|
|
21
|
+
var u = {
|
|
15
22
|
send: {
|
|
16
23
|
key: "notifications.v2.admin.send",
|
|
17
24
|
fallback: "Send"
|
|
@@ -29,23 +36,23 @@ var c = {
|
|
|
29
36
|
fallback: "Topics"
|
|
30
37
|
}
|
|
31
38
|
};
|
|
32
|
-
function
|
|
33
|
-
let f = e(), { hasPermission: p, isLoading: m } =
|
|
34
|
-
return m ? g = /* @__PURE__ */
|
|
39
|
+
function d({ tool: r, children: i, back: d = !0 }) {
|
|
40
|
+
let f = e(), { hasPermission: p, isLoading: m } = a(), h = f(u[r].key, u[r].fallback), g = i;
|
|
41
|
+
return m ? g = /* @__PURE__ */ o(l, {}) : n(r, p) || (g = /* @__PURE__ */ o(c, {
|
|
35
42
|
className: "py-16",
|
|
36
43
|
message: f("notifications.v2.needAccess", "You need access to {{page}}", { page: h }),
|
|
37
44
|
granterHint: f("notifications.v2.needAccessHint", "Ask a workspace admin to give your role this permission.")
|
|
38
|
-
})), /* @__PURE__ */
|
|
45
|
+
})), /* @__PURE__ */ s("div", {
|
|
39
46
|
className: "flex h-full flex-col",
|
|
40
|
-
children: [d && /* @__PURE__ */
|
|
47
|
+
children: [d && /* @__PURE__ */ o("div", {
|
|
41
48
|
className: "px-3 pt-2 sm:px-4",
|
|
42
|
-
children: /* @__PURE__ */
|
|
43
|
-
}), /* @__PURE__ */
|
|
49
|
+
children: /* @__PURE__ */ o(t, {})
|
|
50
|
+
}), /* @__PURE__ */ o("div", {
|
|
44
51
|
className: "min-h-0 flex-1",
|
|
45
52
|
children: g
|
|
46
53
|
})]
|
|
47
54
|
});
|
|
48
55
|
}
|
|
49
|
-
export {
|
|
56
|
+
export { d as AdminPageV2 };
|
|
50
57
|
|
|
51
58
|
//# sourceMappingURL=AdminPageV2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AdminPageV2.js","names":["PageLoader","PAGE_NAMES","AdminPageV2","tr","useTr","usePermissions","name","tool","body","children","isLoading","holdsAdminToolPermission","hasPermission","AccessGate","back","BackToNotifications"],"sources":["../../src/navigation-v2/AdminPageV2.tsx"],"sourcesContent":["import type { ReactNode } from 'react';\nimport { usePermissions } from '@burdenoff/fe-libs/shared/providers/shell';\nimport { AccessGate } from '@burdenoff/fe-libs/ui';\nimport { useTr } from '../shared/hooks/useTr';\nimport { BackToNotifications } from './BackToNotifications';\nimport { holdsAdminToolPermission, type AdminToolId } from './useAdminTools';\n\nfunction PageLoader() {\n return (\n <div className=\"flex h-64 items-center justify-center\">\n
|
|
1
|
+
{"version":3,"file":"AdminPageV2.js","names":["PageLoader","SectionLoaderOr","CompactMarkOr","PAGE_NAMES","AdminPageV2","tr","useTr","usePermissions","name","tool","body","children","isLoading","holdsAdminToolPermission","hasPermission","AccessGate","back","BackToNotifications"],"sources":["../../src/navigation-v2/AdminPageV2.tsx"],"sourcesContent":["import type { ReactNode } from 'react';\nimport { usePermissions } from '@burdenoff/fe-libs/shared/providers/shell';\nimport { AccessGate } from '@burdenoff/fe-libs/ui';\nimport { useTr } from '../shared/hooks/useTr';\nimport { BackToNotifications } from './BackToNotifications';\nimport { holdsAdminToolPermission, type AdminToolId } from './useAdminTools';\nimport { CompactMarkOr, SectionLoaderOr } from '../components/loadingSystem';\n\nfunction PageLoader() {\n return (\n <SectionLoaderOr\n minHeight=\"16rem\"\n today={\n <div className=\"flex h-64 items-center justify-center\">\n <CompactMarkOr\n className=\"h-8 w-8\"\n today={\n <div className=\"h-8 w-8 animate-spin rounded-full border-4 border-primary border-t-transparent\" />\n }\n />\n </div>\n }\n />\n );\n}\n\nconst PAGE_NAMES: Record<AdminToolId, { key: string; fallback: string }> = {\n send: { key: 'notifications.v2.admin.send', fallback: 'Send' },\n deliveryLog: { key: 'notifications.v2.admin.deliveryLog', fallback: 'Delivery log' },\n templates: { key: 'notifications.v2.admin.templates', fallback: 'Templates' },\n topics: { key: 'notifications.v2.admin.topics', fallback: 'Topics' },\n};\n\n/**\n * A Navigation v2 admin page (BOFF-11872): \"‹ Notifications\" above it, and a\n * route-level gate (§8 item 1). Someone without the permission sees \"You need\n * access\" instead of loading a page they cannot use; the page's own in-page\n * checks stay as they are.\n */\nexport function AdminPageV2({\n tool,\n children,\n back = true,\n}: {\n tool: AdminToolId;\n children: ReactNode;\n /** False for a page with its own back button (Send). */\n back?: boolean;\n}) {\n const tr = useTr();\n const { hasPermission, isLoading } = usePermissions();\n const name = tr(PAGE_NAMES[tool].key, PAGE_NAMES[tool].fallback);\n let body: ReactNode = children;\n if (isLoading) body = <PageLoader />;\n else if (!holdsAdminToolPermission(tool, hasPermission)) {\n body = (\n <AccessGate\n className=\"py-16\"\n message={tr('notifications.v2.needAccess', 'You need access to {{page}}', { page: name })}\n granterHint={tr(\n 'notifications.v2.needAccessHint',\n 'Ask a workspace admin to give your role this permission.'\n )}\n />\n );\n }\n return (\n <div className=\"flex h-full flex-col\">\n {back && (\n <div className=\"px-3 pt-2 sm:px-4\">\n <BackToNotifications />\n </div>\n )}\n <div className=\"min-h-0 flex-1\">{body}</div>\n </div>\n );\n}\n"],"mappings":";;;;;;;;AAQA,SAASA,IAAa;CACpB,OACE,kBAACC,GAAD;EACE,WAAU;EACV,OACE,kBAAC,OAAD;GAAK,WAAU;GACb,UAAA,kBAACC,GAAD;IACE,WAAU;IACV,OACE,kBAAC,OAAD,EAAK,WAAU,iFAAkF,CAAA;GAEpG,CAAA;EACE,CAAA;CAER,CAAA;AAEL;AAEA,IAAMC,IAAqE;CACzE,MAAM;EAAE,KAAK;EAA+B,UAAU;CAAO;CAC7D,aAAa;EAAE,KAAK;EAAsC,UAAU;CAAe;CACnF,WAAW;EAAE,KAAK;EAAoC,UAAU;CAAY;CAC5E,QAAQ;EAAE,KAAK;EAAiC,UAAU;CAAS;AACrE;AAQA,SAAgBC,EAAY,EAC1B,SACA,aACA,UAAO,MAMN;CACD,IAAMC,IAAKC,EAAM,GACX,EAAE,kBAAe,iBAAcC,EAAe,GAC9CC,IAAOH,EAAGF,EAAWM,EAAK,CAAC,KAAKN,EAAWM,EAAK,CAAC,QAAQ,GAC3DC,IAAkBC;CActB,OAbIC,IAAW,IAAO,kBAACZ,GAAD,CAAa,CAAA,IACzBa,EAAyBJ,GAAMK,CAAa,MACpD,IACE,kBAACC,GAAD;EACE,WAAU;EACV,SAASV,EAAG,+BAA+B,+BAA+B,EAAE,MAAMG,EAAK,CAAC;EACxF,aAAaH,EACX,mCACA,0DACF;CACD,CAAA,IAIH,kBAAC,OAAD;EAAK,WAAU;EAAf,UAAA,CACGW,KACC,kBAAC,OAAD;GAAK,WAAU;GACb,UAAA,kBAACC,GAAD,CAAsB,CAAA;EACnB,CAAA,GAEP,kBAAC,OAAD;GAAK,WAAU;GAAkB,UAAAP;EAAU,CAAA,CACxC;;AAET"}
|