@burdenoff/microfe-proserviceworld 2026.706.3 → 2026.709.2
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/dev/main.d.ts +2 -0
- package/dist/dev/main.d.ts.map +1 -0
- package/dist/generated/global-operations.d.ts +2 -0
- package/dist/generated/global-operations.d.ts.map +1 -0
- package/dist/generated/global-types.d.ts +18199 -0
- package/dist/generated/global-types.d.ts.map +1 -0
- package/dist/generated/wspace-operations.d.ts +2 -0
- package/dist/generated/wspace-operations.d.ts.map +1 -0
- package/dist/generated/wspace-types.d.ts +43046 -0
- package/dist/generated/wspace-types.d.ts.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +3 -1
- package/dist/proserviceworld/ProServiceWorldRoot.d.ts +5 -0
- package/dist/proserviceworld/ProServiceWorldRoot.d.ts.map +1 -0
- package/dist/proserviceworld/ProServiceWorldRoutes.d.ts +2 -0
- package/dist/proserviceworld/ProServiceWorldRoutes.d.ts.map +1 -0
- package/dist/proserviceworld/ProServiceWorldRoutes.js +95 -42
- package/dist/proserviceworld/ProServiceWorldRoutes.js.map +1 -1
- package/dist/proserviceworld/components/DiscussionThread.d.ts +12 -0
- package/dist/proserviceworld/components/DiscussionThread.d.ts.map +1 -0
- package/dist/proserviceworld/components/FeatureFlaggedPage.d.ts +8 -0
- package/dist/proserviceworld/components/FeatureFlaggedPage.d.ts.map +1 -0
- package/dist/proserviceworld/components/FeatureFlaggedPage.js +17 -0
- package/dist/proserviceworld/components/FeatureFlaggedPage.js.map +1 -0
- package/dist/proserviceworld/components/LoadMore.d.ts +12 -0
- package/dist/proserviceworld/components/LoadMore.d.ts.map +1 -0
- package/dist/proserviceworld/components/LoadMore.js +30 -0
- package/dist/proserviceworld/components/LoadMore.js.map +1 -0
- package/dist/proserviceworld/components/TagPicker.d.ts +11 -0
- package/dist/proserviceworld/components/TagPicker.d.ts.map +1 -0
- package/dist/proserviceworld/components/TagPicker.js +31 -0
- package/dist/proserviceworld/components/TagPicker.js.map +1 -0
- package/dist/proserviceworld/components/ui.d.ts +82 -0
- package/dist/proserviceworld/components/ui.d.ts.map +1 -0
- package/dist/proserviceworld/hooks/useAnalytics.d.ts +18 -0
- package/dist/proserviceworld/hooks/useAnalytics.d.ts.map +1 -0
- package/dist/proserviceworld/hooks/useAnalytics.js +21 -0
- package/dist/proserviceworld/hooks/useAnalytics.js.map +1 -0
- package/dist/proserviceworld/hooks/useEntityComments.d.ts +27 -0
- package/dist/proserviceworld/hooks/useEntityComments.d.ts.map +1 -0
- package/dist/proserviceworld/hooks/useFiles.d.ts +23 -0
- package/dist/proserviceworld/hooks/useFiles.d.ts.map +1 -0
- package/dist/proserviceworld/hooks/usePageViewAnalytics.d.ts +10 -0
- package/dist/proserviceworld/hooks/usePageViewAnalytics.d.ts.map +1 -0
- package/dist/proserviceworld/hooks/usePageViewAnalytics.js +24 -0
- package/dist/proserviceworld/hooks/usePageViewAnalytics.js.map +1 -0
- package/dist/proserviceworld/hooks/useProServiceWorldApi.d.ts +351 -0
- package/dist/proserviceworld/hooks/useProServiceWorldApi.d.ts.map +1 -0
- package/dist/proserviceworld/hooks/useProServiceWorldApi.js +47 -27
- package/dist/proserviceworld/hooks/useProServiceWorldApi.js.map +1 -1
- package/dist/proserviceworld/i18n/index.d.ts +13 -0
- package/dist/proserviceworld/i18n/index.d.ts.map +1 -0
- package/dist/proserviceworld/i18n/index.js +171 -0
- package/dist/proserviceworld/i18n/index.js.map +1 -0
- package/dist/proserviceworld/index.d.ts +6 -0
- package/dist/proserviceworld/index.d.ts.map +1 -0
- package/dist/proserviceworld/index.js +2 -0
- package/dist/proserviceworld/pages/AnalyticsPage.d.ts +4 -0
- package/dist/proserviceworld/pages/AnalyticsPage.d.ts.map +1 -0
- package/dist/proserviceworld/pages/ClientDetailPage.d.ts +4 -0
- package/dist/proserviceworld/pages/ClientDetailPage.d.ts.map +1 -0
- package/dist/proserviceworld/pages/ClientsPage.d.ts +9 -0
- package/dist/proserviceworld/pages/ClientsPage.d.ts.map +1 -0
- package/dist/proserviceworld/pages/ClientsPage.js +218 -155
- package/dist/proserviceworld/pages/ClientsPage.js.map +1 -1
- package/dist/proserviceworld/pages/CompliancePage.d.ts +4 -0
- package/dist/proserviceworld/pages/CompliancePage.d.ts.map +1 -0
- package/dist/proserviceworld/pages/ConflictsPage.d.ts +4 -0
- package/dist/proserviceworld/pages/ConflictsPage.d.ts.map +1 -0
- package/dist/proserviceworld/pages/DashboardPage.d.ts +4 -0
- package/dist/proserviceworld/pages/DashboardPage.d.ts.map +1 -0
- package/dist/proserviceworld/pages/DocumentsPage.d.ts +4 -0
- package/dist/proserviceworld/pages/DocumentsPage.d.ts.map +1 -0
- package/dist/proserviceworld/pages/EngagementDetailPage.d.ts +4 -0
- package/dist/proserviceworld/pages/EngagementDetailPage.d.ts.map +1 -0
- package/dist/proserviceworld/pages/EngagementDetailPage.js +162 -156
- package/dist/proserviceworld/pages/EngagementDetailPage.js.map +1 -1
- package/dist/proserviceworld/pages/EngagementsPage.d.ts +4 -0
- package/dist/proserviceworld/pages/EngagementsPage.d.ts.map +1 -0
- package/dist/proserviceworld/pages/EngagementsPage.js +201 -140
- package/dist/proserviceworld/pages/EngagementsPage.js.map +1 -1
- package/dist/proserviceworld/pages/InvoicesPage.d.ts +4 -0
- package/dist/proserviceworld/pages/InvoicesPage.d.ts.map +1 -0
- package/dist/proserviceworld/pages/MattersPage.d.ts +4 -0
- package/dist/proserviceworld/pages/MattersPage.d.ts.map +1 -0
- package/dist/proserviceworld/pages/MattersPage.js +212 -158
- package/dist/proserviceworld/pages/MattersPage.js.map +1 -1
- package/dist/proserviceworld/pages/PracticeAreasPage.d.ts +4 -0
- package/dist/proserviceworld/pages/PracticeAreasPage.d.ts.map +1 -0
- package/dist/proserviceworld/pages/TimePage.d.ts +4 -0
- package/dist/proserviceworld/pages/TimePage.d.ts.map +1 -0
- package/dist/proserviceworld/providers/ProServiceWorldProvider.d.ts +6 -0
- package/dist/proserviceworld/providers/ProServiceWorldProvider.d.ts.map +1 -0
- package/dist/proserviceworld/services/assistantApi.d.ts +74 -0
- package/dist/proserviceworld/services/assistantApi.d.ts.map +1 -0
- package/dist/proserviceworld/services/assistantApi.js +203 -0
- package/dist/proserviceworld/services/assistantApi.js.map +1 -0
- package/dist/proserviceworld/services/createSandboxAssistantTransport.d.ts +28 -0
- package/dist/proserviceworld/services/createSandboxAssistantTransport.d.ts.map +1 -0
- package/dist/proserviceworld/services/createSandboxAssistantTransport.js +120 -0
- package/dist/proserviceworld/services/createSandboxAssistantTransport.js.map +1 -0
- package/dist/proserviceworld/types/index.d.ts +57 -0
- package/dist/proserviceworld/types/index.d.ts.map +1 -0
- package/dist/proserviceworld/utils/cn.d.ts +4 -0
- package/dist/proserviceworld/utils/cn.d.ts.map +1 -0
- package/dist/proserviceworld/utils/native.d.ts +23 -0
- package/dist/proserviceworld/utils/native.d.ts.map +1 -0
- package/dist/proserviceworld/utils/native.js +14 -0
- package/dist/proserviceworld/utils/native.js.map +1 -0
- package/dist/proserviceworld/utils/nav.d.ts +6 -0
- package/dist/proserviceworld/utils/nav.d.ts.map +1 -0
- package/dist/proserviceworld/utils/navigation.d.ts +2 -0
- package/dist/proserviceworld/utils/navigation.d.ts.map +1 -0
- package/dist/proserviceworld/utils/pageContext.d.ts +12 -0
- package/dist/proserviceworld/utils/pageContext.d.ts.map +1 -0
- package/dist/proserviceworld/utils/pageContext.js +74 -0
- package/dist/proserviceworld/utils/pageContext.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"native.d.ts","sourceRoot":"","sources":["../../../src/proserviceworld/utils/native.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,MAAM,iBAAiB,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AAE7D,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,uBAAuB,CAAC,EAAE;YACxB,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,iBAAiB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;YACrD,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,SAAS,GAAG,SAAS,GAAG,OAAO,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;YAClE,KAAK,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,OAAO,GAAG,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;YAC3E,gBAAgB,CAAC,EAAE,MAAM,OAAO,CAAC;SAClC,CAAC;KACH;CACF;AAOD,wBAAsB,cAAc,CAAC,KAAK,GAAE,iBAA2B,GAAG,OAAO,CAAC,IAAI,CAAC,CAQtF;AAED,wBAAsB,cAAc,CAAC,IAAI,EAAE,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAQzF;AAED,wBAAsB,WAAW,CAC/B,OAAO,EAAE,MAAM,EACf,QAAQ,GAAE,OAAO,GAAG,MAAgB,GACnC,OAAO,CAAC,IAAI,CAAC,CAQf;AAED,wBAAgB,gBAAgB,IAAI,OAAO,CAG1C"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region src/proserviceworld/utils/native.ts
|
|
2
|
+
function e() {
|
|
3
|
+
if (!(typeof window > "u")) return window.__burdenoffNativeBridge;
|
|
4
|
+
}
|
|
5
|
+
async function t(t = "light") {
|
|
6
|
+
let n = e();
|
|
7
|
+
if (n?.impact) try {
|
|
8
|
+
await n.impact(t);
|
|
9
|
+
} catch {}
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
export { t as impactFeedback };
|
|
13
|
+
|
|
14
|
+
//# sourceMappingURL=native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"native.js","names":[],"sources":["../../../src/proserviceworld/utils/native.ts"],"sourcesContent":["/**\n * ProServiceWorld native-bridge helpers.\n *\n * The host app shell owns the Capacitor bridge and exposes it at\n * `window.__burdenoffNativeBridge`. This module provides typed, safe wrappers\n * that no-op gracefully on web or when the bridge is unavailable.\n */\n\nexport type HapticImpactStyle = 'light' | 'medium' | 'heavy';\n\ndeclare global {\n interface Window {\n __burdenoffNativeBridge?: {\n impact?: (style: HapticImpactStyle) => Promise<void>;\n notify?: (type: 'success' | 'warning' | 'error') => Promise<void>;\n toast?: (message: string, duration?: 'short' | 'long') => Promise<boolean>;\n isNativePlatform?: () => boolean;\n };\n }\n}\n\nfunction getBridge() {\n if (typeof window === 'undefined') return undefined;\n return window.__burdenoffNativeBridge;\n}\n\nexport async function impactFeedback(style: HapticImpactStyle = 'light'): Promise<void> {\n const bridge = getBridge();\n if (!bridge?.impact) return;\n try {\n await bridge.impact(style);\n } catch {\n /* no-op on web / unsupported */\n }\n}\n\nexport async function notifyFeedback(type: 'success' | 'warning' | 'error'): Promise<void> {\n const bridge = getBridge();\n if (!bridge?.notify) return;\n try {\n await bridge.notify(type);\n } catch {\n /* no-op */\n }\n}\n\nexport async function nativeToast(\n message: string,\n duration: 'short' | 'long' = 'short'\n): Promise<void> {\n const bridge = getBridge();\n if (!bridge?.toast) return;\n try {\n await bridge.toast(message, duration);\n } catch {\n /* no-op */\n }\n}\n\nexport function isNativePlatform(): boolean {\n const bridge = getBridge();\n return bridge?.isNativePlatform?.() ?? false;\n}\n"],"mappings":";AAqBA,SAAS,IAAY;AACf,cAAO,SAAW,KACtB,QAAO,OAAO;;AAGhB,eAAsB,EAAe,IAA2B,SAAwB;CACtF,IAAM,IAAS,GAAW;AACrB,QAAQ,OACb,KAAI;AACF,QAAM,EAAO,OAAO,EAAM;SACpB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nav.d.ts","sourceRoot":"","sources":["../../../src/proserviceworld/utils/nav.ts"],"names":[],"mappings":"AAGA;;;GAGG;AACH,wBAAgB,MAAM,IAAI,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAInD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"navigation.d.ts","sourceRoot":"","sources":["../../../src/proserviceworld/utils/navigation.ts"],"names":[],"mappings":"AAAA,wBAAgB,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,GAAG,MAAM,CAIvE"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { PageContext } from '../types';
|
|
2
|
+
|
|
3
|
+
interface ConversationContextShape {
|
|
4
|
+
entityType?: string;
|
|
5
|
+
entityId?: string;
|
|
6
|
+
activeTab?: string;
|
|
7
|
+
metadata?: Record<string, unknown>;
|
|
8
|
+
}
|
|
9
|
+
export declare function gatherPageContext(): PageContext;
|
|
10
|
+
export declare function resolveProServiceWorldConversationContext(pathname: string, search: string): ConversationContextShape;
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=pageContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pageContext.d.ts","sourceRoot":"","sources":["../../../src/proserviceworld/utils/pageContext.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAE5C,UAAU,wBAAwB;IAChC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACpC;AAID,wBAAgB,iBAAiB,IAAI,WAAW,CAoB/C;AAMD,wBAAgB,yCAAyC,CACvD,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,MAAM,GACb,wBAAwB,CA+D1B"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
//#region src/proserviceworld/utils/pageContext.ts
|
|
2
|
+
var e = "proserviceworld";
|
|
3
|
+
function t() {
|
|
4
|
+
let t = window.location.href, n = window.location.pathname.split("/").filter(Boolean).slice(0, 3).join("/") || "home", i = r(window.location.pathname, window.location.search);
|
|
5
|
+
return {
|
|
6
|
+
currentUrl: t,
|
|
7
|
+
currentPage: n,
|
|
8
|
+
entityType: i.entityType,
|
|
9
|
+
entityId: i.entityId,
|
|
10
|
+
platform: e,
|
|
11
|
+
version: "2026.709.1",
|
|
12
|
+
viewportSize: `${window.innerWidth}x${window.innerHeight}`,
|
|
13
|
+
userAgent: navigator.userAgent,
|
|
14
|
+
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
function n(e, t) {
|
|
18
|
+
return t.match(e);
|
|
19
|
+
}
|
|
20
|
+
function r(e, t) {
|
|
21
|
+
let r = new URLSearchParams(t);
|
|
22
|
+
for (let [t, r] of [
|
|
23
|
+
[/^\/proserviceworld\/clients\/([^/]+)$/, "PROSERVICEWORLD_CLIENT"],
|
|
24
|
+
[/^\/proserviceworld\/engagements\/([^/]+)$/, "PROSERVICEWORLD_ENGAGEMENT"],
|
|
25
|
+
[/^\/proserviceworld\/matters\/([^/]+)$/, "PROSERVICEWORLD_MATTER"],
|
|
26
|
+
[/^\/proserviceworld\/invoices\/([^/]+)$/, "PROSERVICEWORLD_INVOICE"],
|
|
27
|
+
[/^\/proserviceworld\/compliance\/([^/]+)$/, "PROSERVICEWORLD_COMPLIANCE"],
|
|
28
|
+
[/^\/proserviceworld\/conflicts\/([^/]+)$/, "PROSERVICEWORLD_CONFLICT"],
|
|
29
|
+
[/^\/proserviceworld\/documents\/([^/]+)$/, "PROSERVICEWORLD_DOCUMENT"],
|
|
30
|
+
[/^\/proserviceworld\/practice-areas\/([^/]+)$/, "PROSERVICEWORLD_PRACTICE_AREA"]
|
|
31
|
+
]) {
|
|
32
|
+
let i = n(t, e);
|
|
33
|
+
if (i) return {
|
|
34
|
+
entityType: r,
|
|
35
|
+
entityId: i[1],
|
|
36
|
+
metadata: { routePattern: t.source }
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
let i = {
|
|
40
|
+
clients: "PROSERVICEWORLD_CLIENT_LIST",
|
|
41
|
+
engagements: "PROSERVICEWORLD_ENGAGEMENT_LIST",
|
|
42
|
+
matters: "PROSERVICEWORLD_MATTER_LIST",
|
|
43
|
+
time: "PROSERVICEWORLD_TIME",
|
|
44
|
+
invoices: "PROSERVICEWORLD_INVOICE_LIST",
|
|
45
|
+
compliance: "PROSERVICEWORLD_COMPLIANCE_LIST",
|
|
46
|
+
conflicts: "PROSERVICEWORLD_CONFLICT_LIST",
|
|
47
|
+
documents: "PROSERVICEWORLD_DOCUMENT_LIST",
|
|
48
|
+
"practice-areas": "PROSERVICEWORLD_PRACTICE_AREA_LIST",
|
|
49
|
+
analytics: "PROSERVICEWORLD_ANALYTICS"
|
|
50
|
+
}, a = e.match(/^\/proserviceworld\/([^/]+)$/);
|
|
51
|
+
if (a) {
|
|
52
|
+
let e = i[a[1] ?? ""];
|
|
53
|
+
if (e) return {
|
|
54
|
+
entityType: e,
|
|
55
|
+
metadata: { routePattern: a[0] }
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
let o = r.get("tab") ?? (() => {
|
|
59
|
+
let t = e.split("/").filter(Boolean);
|
|
60
|
+
return t.length > 2 ? t[t.length - 1] : void 0;
|
|
61
|
+
})();
|
|
62
|
+
return {
|
|
63
|
+
activeTab: o ?? void 0,
|
|
64
|
+
metadata: {
|
|
65
|
+
...o ? { activeTab: o } : {},
|
|
66
|
+
...r.get("selectedTargetId") ? { selectedTargetId: r.get("selectedTargetId") } : {},
|
|
67
|
+
...r.get("actionId") ? { actionId: r.get("actionId") } : {}
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
//#endregion
|
|
72
|
+
export { t as gatherPageContext };
|
|
73
|
+
|
|
74
|
+
//# sourceMappingURL=pageContext.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pageContext.js","names":[],"sources":["../../../src/proserviceworld/utils/pageContext.ts"],"sourcesContent":["/**\n * Page context gathering for ProServiceWorld.\n *\n * Captures the user's current browser context to be sent alongside every\n * assistant prompt. The exported shape matches the agent's allow-list contract\n * (`currentUrl`, `currentPage`, `entityType`, `entityId`, `platform`, `version`,\n * `viewportSize`).\n */\n\nimport type { PageContext } from '../types';\n\ninterface ConversationContextShape {\n entityType?: string;\n entityId?: string;\n activeTab?: string;\n metadata?: Record<string, unknown>;\n}\n\nconst PRODUCT_ID = 'proserviceworld';\n\nexport function gatherPageContext(): PageContext {\n const url = window.location.href;\n const pathSegments = window.location.pathname.split('/').filter(Boolean);\n const currentPage = pathSegments.slice(0, 3).join('/') || 'home';\n const entity = resolveProServiceWorldConversationContext(\n window.location.pathname,\n window.location.search\n );\n\n return {\n currentUrl: url,\n currentPage,\n entityType: entity.entityType,\n entityId: entity.entityId,\n platform: PRODUCT_ID,\n version: import.meta.env.VITE_APP_VERSION ?? '2026.709.1',\n viewportSize: `${window.innerWidth}x${window.innerHeight}`,\n userAgent: navigator.userAgent,\n timestamp: new Date().toISOString(),\n };\n}\n\nfunction matchPath(pattern: RegExp, pathname: string): RegExpMatchArray | null {\n return pathname.match(pattern);\n}\n\nexport function resolveProServiceWorldConversationContext(\n pathname: string,\n search: string\n): ConversationContextShape {\n const params = new URLSearchParams(search);\n\n const directMatches: Array<[RegExp, string]> = [\n [/^\\/proserviceworld\\/clients\\/([^/]+)$/, 'PROSERVICEWORLD_CLIENT'],\n [/^\\/proserviceworld\\/engagements\\/([^/]+)$/, 'PROSERVICEWORLD_ENGAGEMENT'],\n [/^\\/proserviceworld\\/matters\\/([^/]+)$/, 'PROSERVICEWORLD_MATTER'],\n [/^\\/proserviceworld\\/invoices\\/([^/]+)$/, 'PROSERVICEWORLD_INVOICE'],\n [/^\\/proserviceworld\\/compliance\\/([^/]+)$/, 'PROSERVICEWORLD_COMPLIANCE'],\n [/^\\/proserviceworld\\/conflicts\\/([^/]+)$/, 'PROSERVICEWORLD_CONFLICT'],\n [/^\\/proserviceworld\\/documents\\/([^/]+)$/, 'PROSERVICEWORLD_DOCUMENT'],\n [/^\\/proserviceworld\\/practice-areas\\/([^/]+)$/, 'PROSERVICEWORLD_PRACTICE_AREA'],\n ];\n\n for (const [pattern, entityType] of directMatches) {\n const match = matchPath(pattern, pathname);\n if (match) {\n return {\n entityType,\n entityId: match[1],\n metadata: { routePattern: pattern.source },\n };\n }\n }\n\n const listEntityMap: Record<string, string> = {\n clients: 'PROSERVICEWORLD_CLIENT_LIST',\n engagements: 'PROSERVICEWORLD_ENGAGEMENT_LIST',\n matters: 'PROSERVICEWORLD_MATTER_LIST',\n time: 'PROSERVICEWORLD_TIME',\n invoices: 'PROSERVICEWORLD_INVOICE_LIST',\n compliance: 'PROSERVICEWORLD_COMPLIANCE_LIST',\n conflicts: 'PROSERVICEWORLD_CONFLICT_LIST',\n documents: 'PROSERVICEWORLD_DOCUMENT_LIST',\n 'practice-areas': 'PROSERVICEWORLD_PRACTICE_AREA_LIST',\n analytics: 'PROSERVICEWORLD_ANALYTICS',\n };\n\n const listMatch = pathname.match(/^\\/proserviceworld\\/([^/]+)$/);\n if (listMatch) {\n const entityType = listEntityMap[listMatch[1] ?? ''];\n if (entityType) {\n return { entityType, metadata: { routePattern: listMatch[0] } };\n }\n }\n\n const activeTab =\n params.get('tab') ??\n (() => {\n const segments = pathname.split('/').filter(Boolean);\n return segments.length > 2 ? segments[segments.length - 1] : undefined;\n })();\n\n return {\n activeTab: activeTab ?? undefined,\n metadata: {\n ...(activeTab ? { activeTab } : {}),\n ...(params.get('selectedTargetId')\n ? { selectedTargetId: params.get('selectedTargetId') }\n : {}),\n ...(params.get('actionId') ? { actionId: params.get('actionId') } : {}),\n },\n };\n}\n"],"mappings":";AAkBA,IAAM,IAAa;AAEnB,SAAgB,IAAiC;CAC/C,IAAM,IAAM,OAAO,SAAS,MAEtB,IADe,OAAO,SAAS,SAAS,MAAM,IAAI,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