@burdenoff/microfe-eventfullymanaged 2026.1123.6 → 2026.1124.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.
Files changed (86) hide show
  1. package/dist/eventfullymanaged/EventfullyManagedRoutes.js +58 -54
  2. package/dist/eventfullymanaged/EventfullyManagedRoutes.js.map +1 -1
  3. package/dist/eventfullymanaged/components/ActionMenu.js +19 -19
  4. package/dist/eventfullymanaged/components/EntityFormShell.js +9 -9
  5. package/dist/eventfullymanaged/components/EntityTagsField.js +13 -13
  6. package/dist/eventfullymanaged/components/EntityTagsField.js.map +1 -1
  7. package/dist/eventfullymanaged/components/ImageUploadField.js +5 -5
  8. package/dist/eventfullymanaged/components/Pagination.js +7 -7
  9. package/dist/eventfullymanaged/components/floorPlanEditor/ZonePanels.js +51 -51
  10. package/dist/eventfullymanaged/components/floorPlanEditor/ZonePanels.js.map +1 -1
  11. package/dist/eventfullymanaged/pages/certificates/CertificateAccess.d.ts +7 -0
  12. package/dist/eventfullymanaged/pages/certificates/CertificateAccess.js +29 -0
  13. package/dist/eventfullymanaged/pages/certificates/CertificateAccess.js.map +1 -0
  14. package/dist/eventfullymanaged/pages/certificates/CertificateIssuance.d.ts +7 -0
  15. package/dist/eventfullymanaged/pages/certificates/CertificateIssuance.js +253 -0
  16. package/dist/eventfullymanaged/pages/certificates/CertificateIssuance.js.map +1 -0
  17. package/dist/eventfullymanaged/pages/certificates/CertificateTemplates.d.ts +8 -0
  18. package/dist/eventfullymanaged/pages/certificates/CertificateTemplates.js +260 -0
  19. package/dist/eventfullymanaged/pages/certificates/CertificateTemplates.js.map +1 -0
  20. package/dist/eventfullymanaged/pages/certificates/CertificatesPage.d.ts +1 -0
  21. package/dist/eventfullymanaged/pages/certificates/CertificatesPage.js +121 -0
  22. package/dist/eventfullymanaged/pages/certificates/CertificatesPage.js.map +1 -0
  23. package/dist/eventfullymanaged/pages/dashboard/DashboardPage.js +26 -26
  24. package/dist/eventfullymanaged/pages/events/EventDetailPage.js +150 -148
  25. package/dist/eventfullymanaged/pages/events/EventDetailPage.js.map +1 -1
  26. package/dist/eventfullymanaged/pages/events/VirtualSessionPage.js +100 -100
  27. package/dist/eventfullymanaged/pages/events/VirtualSessionPage.js.map +1 -1
  28. package/dist/eventfullymanaged/pages/exhibitors/ExhibitorsPage.js +19 -19
  29. package/dist/eventfullymanaged/pages/exhibitors/ExhibitorsPage.js.map +1 -1
  30. package/dist/eventfullymanaged/pages/leads/LeadCaptureDialog.js +16 -16
  31. package/dist/eventfullymanaged/pages/leads/LeadCaptureDialog.js.map +1 -1
  32. package/dist/eventfullymanaged/pages/modules/AnalyticsPage.js +103 -103
  33. package/dist/eventfullymanaged/pages/modules/AnalyticsPage.js.map +1 -1
  34. package/dist/eventfullymanaged/pages/modules/AttendeeProfilePage.js +15 -15
  35. package/dist/eventfullymanaged/pages/modules/AttendeeRecommendations.js +12 -12
  36. package/dist/eventfullymanaged/pages/modules/AttendeeRecommendations.js.map +1 -1
  37. package/dist/eventfullymanaged/pages/modules/CommunicationPage.js +80 -80
  38. package/dist/eventfullymanaged/pages/modules/CommunicationPage.js.map +1 -1
  39. package/dist/eventfullymanaged/pages/modules/EventTemplatesSection.js +14 -14
  40. package/dist/eventfullymanaged/pages/modules/EventTemplatesSection.js.map +1 -1
  41. package/dist/eventfullymanaged/pages/modules/EventsPage.js +121 -121
  42. package/dist/eventfullymanaged/pages/modules/EventsPage.js.map +1 -1
  43. package/dist/eventfullymanaged/pages/modules/IntegrationsPage.js +57 -57
  44. package/dist/eventfullymanaged/pages/modules/IntegrationsPage.js.map +1 -1
  45. package/dist/eventfullymanaged/pages/modules/KioskPage.js +241 -241
  46. package/dist/eventfullymanaged/pages/modules/KioskPage.js.map +1 -1
  47. package/dist/eventfullymanaged/pages/modules/NetworkingPage.js +120 -120
  48. package/dist/eventfullymanaged/pages/modules/NetworkingPage.js.map +1 -1
  49. package/dist/eventfullymanaged/pages/modules/OperationsHubPage.js +17 -17
  50. package/dist/eventfullymanaged/pages/modules/OperationsHubPage.js.map +1 -1
  51. package/dist/eventfullymanaged/pages/modules/RegistrationPage.js +61 -61
  52. package/dist/eventfullymanaged/pages/modules/RegistrationPage.js.map +1 -1
  53. package/dist/eventfullymanaged/pages/modules/RoadmapPanel.js +23 -23
  54. package/dist/eventfullymanaged/pages/modules/RoadmapPanel.js.map +1 -1
  55. package/dist/eventfullymanaged/pages/modules/SponsorDetailsPage.js +17 -17
  56. package/dist/eventfullymanaged/pages/modules/SponsorDetailsPage.js.map +1 -1
  57. package/dist/eventfullymanaged/pages/modules/SponsorLeadsPage.js +11 -11
  58. package/dist/eventfullymanaged/pages/modules/VenueResourcesPage.js +13 -13
  59. package/dist/eventfullymanaged/pages/modules/WorkflowsPage.js +108 -108
  60. package/dist/eventfullymanaged/pages/modules/WorkflowsPage.js.map +1 -1
  61. package/dist/eventfullymanaged/pages/registration/PromoCodeFormPage.js +22 -22
  62. package/dist/eventfullymanaged/pages/registration/PromoCodeFormPage.js.map +1 -1
  63. package/dist/eventfullymanaged/pages/registration/RegisterAttendeePage.js +45 -45
  64. package/dist/eventfullymanaged/pages/speakers/SpeakersPage.js +24 -24
  65. package/dist/eventfullymanaged/pages/speakers/SpeakersPage.js.map +1 -1
  66. package/dist/eventfullymanaged/pages/sponsors/SponsorFormPage.js +37 -37
  67. package/dist/eventfullymanaged/pages/sponsors/SponsorsListPage.js +23 -23
  68. package/dist/eventfullymanaged/pages/sponsors/SponsorsListPage.js.map +1 -1
  69. package/dist/eventfullymanaged/pages/venues/FloorPlansPage.js +123 -123
  70. package/dist/eventfullymanaged/pages/venues/FloorPlansPage.js.map +1 -1
  71. package/dist/eventfullymanaged/pages/venues/VenueDetailPage.js +37 -37
  72. package/dist/eventfullymanaged/pages/venues/VenueDetailPage.js.map +1 -1
  73. package/dist/eventfullymanaged/pages/venues/VenueFormPage.js +25 -25
  74. package/dist/eventfullymanaged/pages/venues/VenueListPage.js +26 -26
  75. package/dist/eventfullymanaged/pages/venues/VenueListPage.js.map +1 -1
  76. package/dist/generated/wspace-operations.d.ts +383 -0
  77. package/dist/generated/wspace-operations.js +177 -11
  78. package/dist/generated/wspace-operations.js.map +1 -1
  79. package/dist/generated/wspace-types.d.ts +29809 -1503
  80. package/dist/node_modules/@apollo/client/react/hooks/internal/useRenderGuard.js +19 -0
  81. package/dist/node_modules/@apollo/client/react/hooks/internal/useRenderGuard.js.map +1 -0
  82. package/dist/node_modules/@apollo/client/react/hooks/useLazyQuery.js +110 -0
  83. package/dist/node_modules/@apollo/client/react/hooks/useLazyQuery.js.map +1 -0
  84. package/dist/utils/pageContext.js +5 -0
  85. package/dist/utils/pageContext.js.map +1 -1
  86. package/package.json +1 -1
@@ -0,0 +1,19 @@
1
+ import * as e from "react";
2
+ // node_modules/@apollo/client/react/hooks/internal/useRenderGuard.js
3
+ var t;
4
+ function n() {}
5
+ function r() {
6
+ return t ||= e.createContext(null), e.useCallback(() => {
7
+ let r = console.error;
8
+ try {
9
+ return console.error = n, e.useContext(t), !0;
10
+ } catch {
11
+ return !1;
12
+ } finally {
13
+ console.error = r;
14
+ }
15
+ }, []);
16
+ }
17
+ export { r as useRenderGuard };
18
+
19
+ //# sourceMappingURL=useRenderGuard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useRenderGuard.js","names":["React","React$1","Ctx","noop","useRenderGuard","orig","\"useContext\""],"sources":["../../../../../../../node_modules/@apollo/client/react/hooks/internal/useRenderGuard.js"],"sourcesContent":["import * as React from \"react\";\nlet Ctx;\nfunction noop() { }\nexport function useRenderGuard() {\n if (!Ctx) {\n // we want the initialization to be lazy because `createContext` would error on import in a RSC\n Ctx = React.createContext(null);\n }\n return React.useCallback(\n /**\n * @returns true if the hook was called during render\n */ () => {\n const orig = console.error;\n try {\n console.error = noop;\n /**\n * `useContext` can be called conditionally during render, so this is safe.\n * (Also, during render we would want to throw as a reaction to this anyways, so it\n * wouldn't even matter if we got the order of hooks mixed up...)\n *\n * They cannot however be called outside of Render, and that's what we're testing here.\n *\n * Different versions of React have different behaviour on an invalid hook call:\n *\n * React 16.8 - 17: throws an error\n * https://github.com/facebook/react/blob/2b93d686e359c7afa299e2ec5cf63160a32a1155/packages/react/src/ReactHooks.js#L18-L26\n *\n * React 18 & 19: `console.error` in development, then `resolveDispatcher` returns `null` and a member access on `null` throws.\n * https://github.com/facebook/react/blob/58e8304483ebfadd02a295339b5e9a989ac98c6e/packages/react/src/ReactHooks.js#L28-L35\n */\n React[\"useContext\" /* hide this from the linter */](Ctx);\n return true;\n }\n catch (e) {\n return false;\n }\n finally {\n console.error = orig;\n }\n }, []);\n}\n//# sourceMappingURL=useRenderGuard.js.map"],"ignoreList":[0],"mappings":";;AACA,IAAIE;AACJ,SAASC,IAAO,CAAE;AAClB,SAAgBC,IAAiB;CAK7B,OAJA,AAEIF,MAAMF,EAAM,cAAc,IAAI,GAE3BA,EAAM,kBAGH;EACN,IAAMK,IAAO,QAAQ;EACrB,IAAI;GAkBA,OAjBA,QAAQ,QAAQF,GAgBhBF,EAAMK,WAA8CJ,CAAG,GAChD;EACX,QACU;GACN,OAAO;EACX,UACQ;GACJ,QAAQ,QAAQG;EACpB;CACJ,GAAG,CAAC,CAAC;AACT"}
@@ -0,0 +1,110 @@
1
+ import e from "../../../../@wry/equality/lib/index.js";
2
+ import { NetworkStatus as t } from "../../core/networkStatus.js";
3
+ import { maybeDeepFreeze as n } from "../../utilities/internal/maybeDeepFreeze.js";
4
+ import { variablesUnknownSymbol as r } from "../../utilities/internal/constants.js";
5
+ import { invariant as i } from "../../utilities/invariant/index.js";
6
+ import { useRenderGuard as a } from "./internal/useRenderGuard.js";
7
+ import { useDeepMemo as o } from "./internal/useDeepMemo.js";
8
+ import { useIsomorphicLayoutEffect as s } from "./internal/useIsomorphicLayoutEffect.js";
9
+ import { useApolloClient as c } from "./useApolloClient.js";
10
+ import { useSyncExternalStore as l } from "./useSyncExternalStore.js";
11
+ import * as u from "react";
12
+ // node_modules/@apollo/client/react/hooks/useLazyQuery.js
13
+ var d = [
14
+ "refetch",
15
+ "fetchMore",
16
+ "updateQuery",
17
+ "startPolling",
18
+ "stopPolling",
19
+ "subscribeToMore"
20
+ ], f = function(t, n) {
21
+ let f = c(n?.client), m = u.useRef(void 0), h = u.useRef(void 0), g = u.useRef(() => {}), _ = o(() => n, [n]), v = a();
22
+ function y() {
23
+ return f.watchQuery({
24
+ ...n,
25
+ query: t,
26
+ initialFetchPolicy: n?.fetchPolicy,
27
+ fetchPolicy: "standby",
28
+ [r]: !0
29
+ });
30
+ }
31
+ let [b, x] = u.useState(f), [S, C] = u.useState(y);
32
+ b !== f && (x(f), C(y()));
33
+ let w = u.useCallback((t, n) => {
34
+ let r = h.current?.data;
35
+ r && !e(r, t.data) && (m.current = r), h.current = t, n();
36
+ }, []), T = l(u.useCallback((t) => {
37
+ g.current = t;
38
+ let n = S.subscribe((n) => {
39
+ e(h.current, n) || w(n, t);
40
+ });
41
+ return () => {
42
+ n.unsubscribe();
43
+ };
44
+ }, [S, w]), () => h.current || p, () => p), E = u.useMemo(() => {
45
+ let e = {};
46
+ for (let t of d) e[t] = function(...e) {
47
+ return i(h.current, 31, t), S[t](...e);
48
+ };
49
+ return e;
50
+ }, [S]);
51
+ u.useEffect(() => {
52
+ let e = {
53
+ query: t,
54
+ errorPolicy: _?.errorPolicy,
55
+ refetchOn: _?.refetchOn,
56
+ refetchWritePolicy: _?.refetchWritePolicy,
57
+ returnPartialData: _?.returnPartialData,
58
+ notifyOnNetworkStatusChange: _?.notifyOnNetworkStatusChange,
59
+ pollInterval: _?.pollInterval,
60
+ nextFetchPolicy: n?.nextFetchPolicy,
61
+ skipPollAttempt: n?.skipPollAttempt
62
+ };
63
+ S.options.fetchPolicy !== "standby" && _?.fetchPolicy && (e.fetchPolicy = _.fetchPolicy), S.applyOptions(e);
64
+ }, [
65
+ t,
66
+ S,
67
+ _,
68
+ n?.nextFetchPolicy,
69
+ n?.skipPollAttempt
70
+ ]);
71
+ let D = u.useCallback((...t) => {
72
+ i(!v(), 32);
73
+ let [n] = t, r = S.options.fetchPolicy;
74
+ r === "standby" && (r = S.options.initialFetchPolicy);
75
+ let a = h.current, o = S.variables, s = S.reobserve({
76
+ fetchPolicy: r,
77
+ variables: n?.variables,
78
+ context: n?.context ?? {}
79
+ });
80
+ return S.options.notifyOnNetworkStatusChange && h.current === a && !e(S.variables, o) && (h.current &&= { ...h.current }, g.current()), s;
81
+ }, [S, v]), O = u.useRef(D);
82
+ return s(() => {
83
+ O.current = D;
84
+ }), [u.useCallback((...e) => O.current(...e), []), u.useMemo(() => {
85
+ let { partial: e, ...t } = T;
86
+ return {
87
+ ...E,
88
+ ...t,
89
+ client: f,
90
+ previousData: m.current,
91
+ variables: S.variables,
92
+ observable: S,
93
+ called: !!h.current
94
+ };
95
+ }, [
96
+ f,
97
+ T,
98
+ E,
99
+ S
100
+ ])];
101
+ }, p = n({
102
+ data: void 0,
103
+ dataState: "empty",
104
+ loading: !1,
105
+ networkStatus: t.ready,
106
+ partial: !0
107
+ });
108
+ export { f as useLazyQuery };
109
+
110
+ //# sourceMappingURL=useLazyQuery.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useLazyQuery.js","names":["React","useSyncExternalStore","equal","useSyncExternalStore$1","React$1","EAGER_METHODS","useLazyQuery","client","useApolloClient","options","previousDataRef","resultRef","forceUpdateRef","stableOptions","useDeepMemo","calledDuringRender","useRenderGuard","createObservable","variablesUnknownSymbol","currentClient","setCurrentClient","observable","setObservable","updateResult","previousData","result","forceUpdate","observableResult","subscription","initialResult","eagerMethods","key","args","invariant","updatedOptions","query","execute","executeOptions","fetchPolicy","previousResult","previousVariables","promise","executeRef","useIsomorphicLayoutEffect","maybeDeepFreeze","NetworkStatus"],"sources":["../../../../../../node_modules/@apollo/client/react/hooks/useLazyQuery.js"],"sourcesContent":["import { equal } from \"@wry/equality\";\nimport * as React from \"react\";\nimport { NetworkStatus } from \"@apollo/client\";\nimport { maybeDeepFreeze, variablesUnknownSymbol, } from \"@apollo/client/utilities/internal\";\nimport { invariant } from \"@apollo/client/utilities/invariant\";\nimport { useRenderGuard } from \"./internal/index.js\";\nimport { useDeepMemo } from \"./internal/useDeepMemo.js\";\nimport { useIsomorphicLayoutEffect } from \"./internal/useIsomorphicLayoutEffect.js\";\nimport { useApolloClient } from \"./useApolloClient.js\";\nimport { useSyncExternalStore } from \"./useSyncExternalStore.js\";\n// The following methods, when called will execute the query, regardless of\n// whether the useLazyQuery execute function was called before.\nconst EAGER_METHODS = [\n \"refetch\",\n \"fetchMore\",\n \"updateQuery\",\n \"startPolling\",\n \"stopPolling\",\n \"subscribeToMore\",\n];\nexport const useLazyQuery = function useLazyQuery(query, options) {\n const client = useApolloClient(options?.client);\n const previousDataRef = React.useRef(undefined);\n const resultRef = React.useRef(undefined);\n const forceUpdateRef = React.useRef(() => { });\n const stableOptions = useDeepMemo(() => options, [options]);\n const calledDuringRender = useRenderGuard();\n function createObservable() {\n return client.watchQuery({\n ...options,\n query,\n initialFetchPolicy: options?.fetchPolicy,\n fetchPolicy: \"standby\",\n [variablesUnknownSymbol]: true,\n });\n }\n const [currentClient, setCurrentClient] = React.useState(client);\n const [observable, setObservable] = React.useState(createObservable);\n if (currentClient !== client) {\n setCurrentClient(client);\n setObservable(createObservable());\n }\n // TODO: Revisit after we have RxJS in place. We should be able to use\n // observable.getCurrentResult() (or equivalent) to get these values which\n // will hopefully alleviate the need for us to use refs to track these values.\n const updateResult = React.useCallback((result, forceUpdate) => {\n const previousData = resultRef.current?.data;\n if (previousData && !equal(previousData, result.data)) {\n previousDataRef.current = previousData;\n }\n resultRef.current = result;\n forceUpdate();\n }, []);\n const observableResult = useSyncExternalStore(React.useCallback((forceUpdate) => {\n forceUpdateRef.current = forceUpdate;\n const subscription = observable.subscribe((result) => {\n if (!equal(resultRef.current, result)) {\n updateResult(result, forceUpdate);\n }\n });\n return () => {\n subscription.unsubscribe();\n };\n }, [observable, updateResult]), () => resultRef.current || initialResult, () => initialResult);\n // We use useMemo here to make sure the eager methods have a stable identity.\n const eagerMethods = React.useMemo(() => {\n const eagerMethods = {};\n for (const key of EAGER_METHODS) {\n eagerMethods[key] = function (...args) {\n invariant(resultRef.current, 31, key);\n // @ts-expect-error this is just to generic to type\n return observable[key](...args);\n };\n }\n return eagerMethods;\n }, [observable]);\n React.useEffect(() => {\n const updatedOptions = {\n query,\n errorPolicy: stableOptions?.errorPolicy,\n refetchOn: stableOptions?.refetchOn,\n refetchWritePolicy: stableOptions?.refetchWritePolicy,\n returnPartialData: stableOptions?.returnPartialData,\n notifyOnNetworkStatusChange: stableOptions?.notifyOnNetworkStatusChange,\n pollInterval: stableOptions?.pollInterval,\n nextFetchPolicy: options?.nextFetchPolicy,\n skipPollAttempt: options?.skipPollAttempt,\n };\n // Wait to apply the changed fetch policy until after the execute\n // function has been called. The execute function will handle setting the\n // the fetch policy away from standby for us when called for the first time.\n if (observable.options.fetchPolicy !== \"standby\" &&\n stableOptions?.fetchPolicy) {\n updatedOptions.fetchPolicy = stableOptions.fetchPolicy;\n }\n observable.applyOptions(updatedOptions);\n }, [\n query,\n observable,\n stableOptions,\n // Ensure inline functions don't suffer from stale closures by checking for\n // these deps separately. @wry/equality doesn't compare function identity\n // so `stableOptions` isn't updated when using inline functions.\n options?.nextFetchPolicy,\n options?.skipPollAttempt,\n ]);\n const execute = React.useCallback((...args) => {\n invariant(!calledDuringRender(), 32);\n const [executeOptions] = args;\n let fetchPolicy = observable.options.fetchPolicy;\n if (fetchPolicy === \"standby\") {\n fetchPolicy = observable.options.initialFetchPolicy;\n }\n const previousResult = resultRef.current;\n const previousVariables = observable.variables;\n const promise = observable.reobserve({\n fetchPolicy,\n // If `variables` is not given, reset back to empty variables by\n // ensuring the key exists in options\n variables: executeOptions?.variables,\n context: executeOptions?.context ?? {},\n });\n // If a query is already in-flight and execute is called again with\n // different variables, useLazyQuery doesn't emit a new value until the\n // network request finishes because ObservableQuery doesn't emit a new\n // value when it is deep equal to the previous one. ObservableQuery\n // doesn't track variables as part of the result.\n //\n // Below forces the hook to rerender with the new variables immediately\n // instead of waiting for ObservableQuery to emit the network result.\n //\n // See https://github.com/apollographql/apollo-client/issues/13459\n if (observable.options.notifyOnNetworkStatusChange &&\n resultRef.current === previousResult &&\n !equal(observable.variables, previousVariables)) {\n // useSyncExternalStore compares the snapshot using Object.is so we\n // need to force that comparison to fail by creating a new object,\n // otherwise it bails out of the render.\n if (resultRef.current) {\n resultRef.current = { ...resultRef.current };\n }\n forceUpdateRef.current();\n }\n return promise;\n }, [observable, calledDuringRender]);\n const executeRef = React.useRef(execute);\n useIsomorphicLayoutEffect(() => {\n executeRef.current = execute;\n });\n const stableExecute = React.useCallback((...args) => executeRef.current(...args), []);\n const result = React.useMemo(() => {\n const { partial, ...result } = observableResult;\n return {\n ...eagerMethods,\n ...result,\n client,\n previousData: previousDataRef.current,\n variables: observable.variables,\n observable,\n called: !!resultRef.current,\n };\n }, [client, observableResult, eagerMethods, observable]);\n return [stableExecute, result];\n};\nconst initialResult = maybeDeepFreeze({\n data: undefined,\n dataState: \"empty\",\n loading: false,\n networkStatus: NetworkStatus.ready,\n partial: true,\n});\n//# sourceMappingURL=useLazyQuery.js.map\n"],"ignoreList":[0],"mappings":";;;;;;;;;;;;AAYA,IAAMK,IAAgB;CAClB;CACA;CACA;CACA;CACA;CACA;AACJ,GACaC,IAAe,SAAsB,GAAO,GAAS;CAC9D,IAAMC,IAASC,EAAgBC,GAAS,MAAM,GACxCC,IAAkBV,EAAM,OAAO,KAAA,CAAS,GACxCW,IAAYX,EAAM,OAAO,KAAA,CAAS,GAClCY,IAAiBZ,EAAM,aAAa,CAAE,CAAC,GACvCa,IAAgBC,QAAkBL,GAAS,CAACA,CAAO,CAAC,GACpDM,IAAqBC,EAAe;CAC1C,SAASC,IAAmB;EACxB,OAAOV,EAAO,WAAW;GACrB,GAAGE;GACH;GACA,oBAAoBA,GAAS;GAC7B,aAAa;IACZS,IAAyB;EAC9B,CAAC;CACL;CACA,IAAM,CAACC,G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ged", t = "([^/]+)", n = "(?!create(?:/|$))", r = [
18
18
  entityType: "EVENTFULLYMANAGED_EVENT",
19
19
  activeTab: "tickets"
20
20
  },
21
+ {
22
+ pattern: RegExp(`^/events/${n}${t}/certificates$`),
23
+ entityType: "EVENTFULLYMANAGED_EVENT",
24
+ activeTab: "certificates"
25
+ },
21
26
  {
22
27
  pattern: RegExp(`^/events/${n}${t}/virtual$`),
23
28
  entityType: "EVENTFULLYMANAGED_EVENT",
@@ -1 +1 @@
1
- {"version":3,"file":"pageContext.js","names":["BASE_PATH","ID","NOT_CREATE","ROUTES","SAFE_ID","toProductPath","path","pathname","decodeSegment","segment","resolveEventfullyManagedEntity","route","match","entityId","toCurrentPage","segments","appVersion","gatherPageContext","entity","origin"],"sources":["../../src/utils/pageContext.ts"],"sourcesContent":["/**\n * Page context for the EventfullyManaged AI assistant (BOFF-3741).\n *\n * Captures where the organizer is in the app — the URL, the page and the record\n * on screen — so the floating assistant can act on \"this event\", \"this session\"\n * or \"here\" without asking which record the user means.\n *\n * Data boundary: this module emits ids and route names only. It never reads the\n * DOM, the Apollo cache or any form state, so attendee names and emails, lead\n * contact details, speaker bios and networking-profile free text cannot reach\n * the assistant through it. The query string and fragment are dropped from\n * `currentUrl` as well: they can carry search text or tokens, and the sandbox's\n * key allow-list only filters keys after the payload has left the browser.\n */\n\n/**\n * Entity types the assistant understands for EventfullyManaged. The api-calls\n * guide in algoshred/ai-assistant (`context/api-calls/products/eventfullymanaged.md`)\n * documents each one with the query that reads it; keep the two in step.\n */\nexport const EVENTFULLYMANAGED_ENTITY_TYPES = [\n 'EVENTFULLYMANAGED_EVENT',\n 'EVENTFULLYMANAGED_SESSION',\n 'EVENTFULLYMANAGED_TICKET_TYPE',\n 'EVENTFULLYMANAGED_VENUE',\n 'EVENTFULLYMANAGED_SPONSOR',\n 'EVENTFULLYMANAGED_SPEAKER',\n 'EVENTFULLYMANAGED_ATTENDEE',\n 'EVENTFULLYMANAGED_PROMO_CODE',\n 'EVENTFULLYMANAGED_NETWORKING_PROFILE',\n 'EVENTFULLYMANAGED_MEETING',\n 'EVENTFULLYMANAGED_EXHIBITOR',\n] as const;\n\nexport type EventfullyManagedEntityType = (typeof EVENTFULLYMANAGED_ENTITY_TYPES)[number];\n\n/**\n * A `type` alias rather than an `interface`, on purpose: TypeScript gives a type\n * alias an implicit index signature, which keeps it assignable to the shared\n * transport's `gatherPageContext: () => object` seam without a cast.\n *\n * Every key here is on the sandbox agent's allow-list\n * (`ALLOWED_CONTEXT_KEYS` in ai-assistant `src/context-loader.ts`). In particular\n * the URL key is `currentUrl`: an `activeUrl` key would be silently dropped.\n */\nexport type PageContext = {\n currentUrl: string;\n currentPage: string;\n entityType?: EventfullyManagedEntityType;\n entityId?: string;\n activeTab?: string;\n platform: string;\n version: string;\n viewportSize: string;\n};\n\nexport interface ResolvedEntity {\n entityType?: EventfullyManagedEntityType;\n entityId?: string;\n activeTab?: string;\n}\n\n/** The app shell mounts the MFE at this base path (`AppRoutes.tsx`). */\nconst BASE_PATH = '/eventfullymanaged';\n\n/**\n * Route → entity table, mirroring `EventfullyManagedRoutes.tsx`.\n *\n * Order matters: nested routes come before their parents so a session edit page\n * resolves to the session (the innermost record), not to its event. Create\n * pages under a parent (`events/:id/sessions/create`) deliberately fall through\n * to the parent row, because on those pages \"this event\" is the parent. A bare\n * `create` page is never treated as a record: `(?!create$)` stops\n * `/events/create` from becoming an event whose id is the word \"create\".\n *\n * `activeTab` names the sub-page when the route is a view of a record rather\n * than the record itself (a venue's floor plans, a sponsor's leads).\n */\nconst ID = '([^/]+)';\nconst NOT_CREATE = '(?!create(?:/|$))';\n\nconst ROUTES: ReadonlyArray<{\n pattern: RegExp;\n entityType: EventfullyManagedEntityType;\n activeTab?: string;\n}> = [\n {\n pattern: new RegExp(`^/events/${NOT_CREATE}[^/]+/sessions/${NOT_CREATE}${ID}/edit$`),\n entityType: 'EVENTFULLYMANAGED_SESSION',\n },\n {\n pattern: new RegExp(`^/events/${NOT_CREATE}[^/]+/tickets/${NOT_CREATE}${ID}/edit$`),\n entityType: 'EVENTFULLYMANAGED_TICKET_TYPE',\n },\n {\n pattern: new RegExp(`^/events/${NOT_CREATE}${ID}/sessions/create$`),\n entityType: 'EVENTFULLYMANAGED_EVENT',\n activeTab: 'sessions',\n },\n {\n pattern: new RegExp(`^/events/${NOT_CREATE}${ID}/tickets/create$`),\n entityType: 'EVENTFULLYMANAGED_EVENT',\n activeTab: 'tickets',\n },\n {\n pattern: new RegExp(`^/events/${NOT_CREATE}${ID}/virtual$`),\n entityType: 'EVENTFULLYMANAGED_EVENT',\n activeTab: 'virtual',\n },\n { pattern: new RegExp(`^/events/${NOT_CREATE}${ID}(?:/edit)?$`), entityType: 'EVENTFULLYMANAGED_EVENT' },\n {\n pattern: new RegExp(`^/venues/${NOT_CREATE}${ID}/floor-plans$`),\n entityType: 'EVENTFULLYMANAGED_VENUE',\n activeTab: 'floor-plans',\n },\n {\n pattern: new RegExp(`^/venues/${NOT_CREATE}${ID}/resources$`),\n entityType: 'EVENTFULLYMANAGED_VENUE',\n activeTab: 'resources',\n },\n { pattern: new RegExp(`^/venues/${NOT_CREATE}${ID}(?:/edit)?$`), entityType: 'EVENTFULLYMANAGED_VENUE' },\n {\n pattern: new RegExp(`^/sponsors/${NOT_CREATE}${ID}/leads$`),\n entityType: 'EVENTFULLYMANAGED_SPONSOR',\n activeTab: 'leads',\n },\n { pattern: new RegExp(`^/sponsors/${NOT_CREATE}${ID}(?:/edit)?$`), entityType: 'EVENTFULLYMANAGED_SPONSOR' },\n { pattern: new RegExp(`^/speakers/${NOT_CREATE}${ID}/edit$`), entityType: 'EVENTFULLYMANAGED_SPEAKER' },\n {\n pattern: new RegExp(`^/registration/attendees/${NOT_CREATE}${ID}/edit$`),\n entityType: 'EVENTFULLYMANAGED_ATTENDEE',\n },\n {\n pattern: new RegExp(`^/attendees/${ID}/profile$`),\n entityType: 'EVENTFULLYMANAGED_ATTENDEE',\n activeTab: 'profile',\n },\n {\n pattern: new RegExp(`^/registration/promo-codes/${NOT_CREATE}${ID}/edit$`),\n entityType: 'EVENTFULLYMANAGED_PROMO_CODE',\n },\n {\n pattern: new RegExp(`^/networking/profiles/${NOT_CREATE}${ID}/edit$`),\n entityType: 'EVENTFULLYMANAGED_NETWORKING_PROFILE',\n },\n {\n pattern: new RegExp(`^/networking/meetings/${NOT_CREATE}${ID}/edit$`),\n entityType: 'EVENTFULLYMANAGED_MEETING',\n },\n { pattern: new RegExp(`^/exhibitors/${NOT_CREATE}${ID}/edit$`), entityType: 'EVENTFULLYMANAGED_EXHIBITOR' },\n];\n\n/** Ids in this app are UUIDs or similar opaque tokens; anything else is not an id. */\nconst SAFE_ID = /^[A-Za-z0-9_-]{1,128}$/;\n\n/**\n * Strip the mount prefix and any trailing slash, so the table above matches\n * the same page whether the MFE runs inside the app shell\n * (`/eventfullymanaged/events/abc`) or standalone in dev (`/events/abc`).\n */\nexport function toProductPath(pathname: string): string {\n let path = pathname;\n if (path === BASE_PATH || path.startsWith(`${BASE_PATH}/`)) {\n path = path.slice(BASE_PATH.length);\n }\n path = path.replace(/\\/+$/, '');\n return path === '' ? '/' : path;\n}\n\nfunction decodeSegment(segment: string): string | undefined {\n try {\n return decodeURIComponent(segment);\n } catch {\n return undefined;\n }\n}\n\n/**\n * Resolve the record the user is looking at from the route alone.\n *\n * Returns an empty object on list, dashboard and create pages: there is no\n * \"this\" there, and a guessed entity is worse than none because the assistant\n * would act on it confidently.\n */\nexport function resolveEventfullyManagedEntity(pathname: string): ResolvedEntity {\n const path = toProductPath(pathname);\n for (const route of ROUTES) {\n const match = route.pattern.exec(path);\n if (!match?.[1]) continue;\n const entityId = decodeSegment(match[1]);\n if (!entityId || !SAFE_ID.test(entityId)) return {};\n return {\n entityType: route.entityType,\n entityId,\n ...(route.activeTab ? { activeTab: route.activeTab } : {}),\n };\n }\n return {};\n}\n\n/**\n * Up to three path segments under the product, e.g. `events/<id>/sessions`.\n * Matches the shape every other product sends, so the agent can name the page.\n */\nexport function toCurrentPage(pathname: string): string {\n const segments = toProductPath(pathname).split('/').filter(Boolean);\n return segments.length ? ['eventfullymanaged', ...segments].slice(0, 3).join('/') : 'eventfullymanaged';\n}\n\n/**\n * The published MFE version, injected by `vite.config.ts` (`define`) from the\n * `MFE_VERSION` the Publish workflow computes. Undefined under Vitest and in a\n * local dev server, hence the `typeof` guard.\n */\ndeclare const __EVENTFULLYMANAGED_MFE_VERSION__: string | undefined;\n\nfunction appVersion(): string {\n const version = typeof __EVENTFULLYMANAGED_MFE_VERSION__ === 'string' ? __EVENTFULLYMANAGED_MFE_VERSION__ : undefined;\n return version && version.trim() ? version : 'dev';\n}\n\nexport function gatherPageContext(): PageContext {\n const { origin, pathname } = window.location;\n const entity = resolveEventfullyManagedEntity(pathname);\n return {\n currentUrl: `${origin}${pathname}`,\n currentPage: toCurrentPage(pathname),\n ...(entity.entityType ? { entityType: entity.entityType, entityId: entity.entityId } : {}),\n ...(entity.activeTab ? { activeTab: entity.activeTab } : {}),\n platform: 'eventfullymanaged',\n version: appVersion(),\n viewportSize: `${window.innerWidth}x${window.innerHeight}`,\n };\n}\n"],"mappings":";AA+DA,IAAMA,IAAY,sBAeZC,IAAK,WACLC,IAAa,qBAEbC,IAID;CACH;EACE,SAAa,OAAO,YAAYD,EAAW,iBAAiBA,IAAaD,EAAG,OAAO;EACnF,YAAY;CACd;CACA;EACE,SAAa,OAAO,YAAYC,EAAW,gBAAgBA,IAAaD,EAAG,OAAO;EAClF,YAAY;CACd;CACA;EACE,SAAa,OAAO,YAAYC,IAAaD,EAAG,kBAAkB;EAClE,YAAY;EACZ,WAAW;CACb;CACA;EACE,SAAa,OAAO,YAAYC,IAAaD,EAAG,iBAAiB;EACjE,YAAY;EACZ,WAAW;CACb;CACA;EACE,SAAa,OAAO,YAAYC,IAAaD,EAAG,UAAU;EAC1D,YAAY;EACZ,WAAW;CACb;CACA;EAAE,SAAa,OAAO,YAAYC,IAAaD,EAAG,YAAY;EAAG,YAAY;CAA0B;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D,EAAcE,CAAQ;CACnC,KAAK,IAAMI,KAASR,GAAQ;EAC1B,IAAMS,IAAQD,EAAM,QAAQ,KAAKL,CAAI;EACrC,IAAI,CAACM,IAAQ,IAAI;EACjB,IAAMC,IAAWL,EAAcI,EAAM,EAAE;EAEvC,OADI,CAACC,KAAY,CAACT,EAAQ,KAAKS,CAAQ,IAAU,CAAC,IAC3C;GACL,YAAYF,EAAM;GAClB;GACA,GAAIA,EAAM,YAAY,EAAE,WAAWA,EAAM,UAAU,IAAI,CAAC;EAC1D;CACF;CACA,OAAO,CAAC;AACV;AAMA,SAAgBG,EAAc,GAA0B;CACtD,IAAMC,IAAWV,EAAcE,CAAQ,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,OAAO,OAAO;CAClE,OAAOQ,EAAS,SAAS,CAAC,qBAAqB,GAAGA,CAAQ,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,KAAK,GAAG,IAAI;AACtF;AASA,SAASC,IAAqB;CAE5B,OAAmC;AACrC;AAEA,SAAgBC,IAAiC;CAC/C,IAAM,EAAE,WAAQ,gBAAa,OAAO,UAC9BC,IAASR,EAA+BH,CAAQ;CACtD,OAAO;EACL,YAAY,GAAGY,IAASZ;EACxB,aAAaO,EAAcP,CAAQ;EACnC,GAAIW,EAAO,aAAa;GAAE,YAAYA,EAAO;GAAY,UAAUA,EAAO;EAAS,IAAI,CAAC;EACxF,GAAIA,EAAO,YAAY,EAAE,WAAWA,EAAO,UAAU,IAAI,CAAC;EAC1D,UAAU;EACV,SAASF,EAAW;EACpB,cAAc,GAAG,OAAO,WAAW,GAAG,OAAO;CAC/C;AACF"}
1
+ {"version":3,"file":"pageContext.js","names":["BASE_PATH","ID","NOT_CREATE","ROUTES","SAFE_ID","toProductPath","path","pathname","decodeSegment","segment","resolveEventfullyManagedEntity","route","match","entityId","toCurrentPage","segments","appVersion","gatherPageContext","entity","origin"],"sources":["../../src/utils/pageContext.ts"],"sourcesContent":["/**\n * Page context for the EventfullyManaged AI assistant (BOFF-3741).\n *\n * Captures where the organizer is in the app — the URL, the page and the record\n * on screen — so the floating assistant can act on \"this event\", \"this session\"\n * or \"here\" without asking which record the user means.\n *\n * Data boundary: this module emits ids and route names only. It never reads the\n * DOM, the Apollo cache or any form state, so attendee names and emails, lead\n * contact details, speaker bios and networking-profile free text cannot reach\n * the assistant through it. The query string and fragment are dropped from\n * `currentUrl` as well: they can carry search text or tokens, and the sandbox's\n * key allow-list only filters keys after the payload has left the browser.\n */\n\n/**\n * Entity types the assistant understands for EventfullyManaged. The api-calls\n * guide in algoshred/ai-assistant (`context/api-calls/products/eventfullymanaged.md`)\n * documents each one with the query that reads it; keep the two in step.\n */\nexport const EVENTFULLYMANAGED_ENTITY_TYPES = [\n 'EVENTFULLYMANAGED_EVENT',\n 'EVENTFULLYMANAGED_SESSION',\n 'EVENTFULLYMANAGED_TICKET_TYPE',\n 'EVENTFULLYMANAGED_VENUE',\n 'EVENTFULLYMANAGED_SPONSOR',\n 'EVENTFULLYMANAGED_SPEAKER',\n 'EVENTFULLYMANAGED_ATTENDEE',\n 'EVENTFULLYMANAGED_PROMO_CODE',\n 'EVENTFULLYMANAGED_NETWORKING_PROFILE',\n 'EVENTFULLYMANAGED_MEETING',\n 'EVENTFULLYMANAGED_EXHIBITOR',\n] as const;\n\nexport type EventfullyManagedEntityType = (typeof EVENTFULLYMANAGED_ENTITY_TYPES)[number];\n\n/**\n * A `type` alias rather than an `interface`, on purpose: TypeScript gives a type\n * alias an implicit index signature, which keeps it assignable to the shared\n * transport's `gatherPageContext: () => object` seam without a cast.\n *\n * Every key here is on the sandbox agent's allow-list\n * (`ALLOWED_CONTEXT_KEYS` in ai-assistant `src/context-loader.ts`). In particular\n * the URL key is `currentUrl`: an `activeUrl` key would be silently dropped.\n */\nexport type PageContext = {\n currentUrl: string;\n currentPage: string;\n entityType?: EventfullyManagedEntityType;\n entityId?: string;\n activeTab?: string;\n platform: string;\n version: string;\n viewportSize: string;\n};\n\nexport interface ResolvedEntity {\n entityType?: EventfullyManagedEntityType;\n entityId?: string;\n activeTab?: string;\n}\n\n/** The app shell mounts the MFE at this base path (`AppRoutes.tsx`). */\nconst BASE_PATH = '/eventfullymanaged';\n\n/**\n * Route → entity table, mirroring `EventfullyManagedRoutes.tsx`.\n *\n * Order matters: nested routes come before their parents so a session edit page\n * resolves to the session (the innermost record), not to its event. Create\n * pages under a parent (`events/:id/sessions/create`) deliberately fall through\n * to the parent row, because on those pages \"this event\" is the parent. A bare\n * `create` page is never treated as a record: `(?!create$)` stops\n * `/events/create` from becoming an event whose id is the word \"create\".\n *\n * `activeTab` names the sub-page when the route is a view of a record rather\n * than the record itself (a venue's floor plans, a sponsor's leads).\n */\nconst ID = '([^/]+)';\nconst NOT_CREATE = '(?!create(?:/|$))';\n\nconst ROUTES: ReadonlyArray<{\n pattern: RegExp;\n entityType: EventfullyManagedEntityType;\n activeTab?: string;\n}> = [\n {\n pattern: new RegExp(`^/events/${NOT_CREATE}[^/]+/sessions/${NOT_CREATE}${ID}/edit$`),\n entityType: 'EVENTFULLYMANAGED_SESSION',\n },\n {\n pattern: new RegExp(`^/events/${NOT_CREATE}[^/]+/tickets/${NOT_CREATE}${ID}/edit$`),\n entityType: 'EVENTFULLYMANAGED_TICKET_TYPE',\n },\n {\n pattern: new RegExp(`^/events/${NOT_CREATE}${ID}/sessions/create$`),\n entityType: 'EVENTFULLYMANAGED_EVENT',\n activeTab: 'sessions',\n },\n {\n pattern: new RegExp(`^/events/${NOT_CREATE}${ID}/tickets/create$`),\n entityType: 'EVENTFULLYMANAGED_EVENT',\n activeTab: 'tickets',\n },\n {\n pattern: new RegExp(`^/events/${NOT_CREATE}${ID}/certificates$`),\n entityType: 'EVENTFULLYMANAGED_EVENT',\n activeTab: 'certificates',\n },\n {\n pattern: new RegExp(`^/events/${NOT_CREATE}${ID}/virtual$`),\n entityType: 'EVENTFULLYMANAGED_EVENT',\n activeTab: 'virtual',\n },\n { pattern: new RegExp(`^/events/${NOT_CREATE}${ID}(?:/edit)?$`), entityType: 'EVENTFULLYMANAGED_EVENT' },\n {\n pattern: new RegExp(`^/venues/${NOT_CREATE}${ID}/floor-plans$`),\n entityType: 'EVENTFULLYMANAGED_VENUE',\n activeTab: 'floor-plans',\n },\n {\n pattern: new RegExp(`^/venues/${NOT_CREATE}${ID}/resources$`),\n entityType: 'EVENTFULLYMANAGED_VENUE',\n activeTab: 'resources',\n },\n { pattern: new RegExp(`^/venues/${NOT_CREATE}${ID}(?:/edit)?$`), entityType: 'EVENTFULLYMANAGED_VENUE' },\n {\n pattern: new RegExp(`^/sponsors/${NOT_CREATE}${ID}/leads$`),\n entityType: 'EVENTFULLYMANAGED_SPONSOR',\n activeTab: 'leads',\n },\n { pattern: new RegExp(`^/sponsors/${NOT_CREATE}${ID}(?:/edit)?$`), entityType: 'EVENTFULLYMANAGED_SPONSOR' },\n { pattern: new RegExp(`^/speakers/${NOT_CREATE}${ID}/edit$`), entityType: 'EVENTFULLYMANAGED_SPEAKER' },\n {\n pattern: new RegExp(`^/registration/attendees/${NOT_CREATE}${ID}/edit$`),\n entityType: 'EVENTFULLYMANAGED_ATTENDEE',\n },\n {\n pattern: new RegExp(`^/attendees/${ID}/profile$`),\n entityType: 'EVENTFULLYMANAGED_ATTENDEE',\n activeTab: 'profile',\n },\n {\n pattern: new RegExp(`^/registration/promo-codes/${NOT_CREATE}${ID}/edit$`),\n entityType: 'EVENTFULLYMANAGED_PROMO_CODE',\n },\n {\n pattern: new RegExp(`^/networking/profiles/${NOT_CREATE}${ID}/edit$`),\n entityType: 'EVENTFULLYMANAGED_NETWORKING_PROFILE',\n },\n {\n pattern: new RegExp(`^/networking/meetings/${NOT_CREATE}${ID}/edit$`),\n entityType: 'EVENTFULLYMANAGED_MEETING',\n },\n { pattern: new RegExp(`^/exhibitors/${NOT_CREATE}${ID}/edit$`), entityType: 'EVENTFULLYMANAGED_EXHIBITOR' },\n];\n\n/** Ids in this app are UUIDs or similar opaque tokens; anything else is not an id. */\nconst SAFE_ID = /^[A-Za-z0-9_-]{1,128}$/;\n\n/**\n * Strip the mount prefix and any trailing slash, so the table above matches\n * the same page whether the MFE runs inside the app shell\n * (`/eventfullymanaged/events/abc`) or standalone in dev (`/events/abc`).\n */\nexport function toProductPath(pathname: string): string {\n let path = pathname;\n if (path === BASE_PATH || path.startsWith(`${BASE_PATH}/`)) {\n path = path.slice(BASE_PATH.length);\n }\n path = path.replace(/\\/+$/, '');\n return path === '' ? '/' : path;\n}\n\nfunction decodeSegment(segment: string): string | undefined {\n try {\n return decodeURIComponent(segment);\n } catch {\n return undefined;\n }\n}\n\n/**\n * Resolve the record the user is looking at from the route alone.\n *\n * Returns an empty object on list, dashboard and create pages: there is no\n * \"this\" there, and a guessed entity is worse than none because the assistant\n * would act on it confidently.\n */\nexport function resolveEventfullyManagedEntity(pathname: string): ResolvedEntity {\n const path = toProductPath(pathname);\n for (const route of ROUTES) {\n const match = route.pattern.exec(path);\n if (!match?.[1]) continue;\n const entityId = decodeSegment(match[1]);\n if (!entityId || !SAFE_ID.test(entityId)) return {};\n return {\n entityType: route.entityType,\n entityId,\n ...(route.activeTab ? { activeTab: route.activeTab } : {}),\n };\n }\n return {};\n}\n\n/**\n * Up to three path segments under the product, e.g. `events/<id>/sessions`.\n * Matches the shape every other product sends, so the agent can name the page.\n */\nexport function toCurrentPage(pathname: string): string {\n const segments = toProductPath(pathname).split('/').filter(Boolean);\n return segments.length ? ['eventfullymanaged', ...segments].slice(0, 3).join('/') : 'eventfullymanaged';\n}\n\n/**\n * The published MFE version, injected by `vite.config.ts` (`define`) from the\n * `MFE_VERSION` the Publish workflow computes. Undefined under Vitest and in a\n * local dev server, hence the `typeof` guard.\n */\ndeclare const __EVENTFULLYMANAGED_MFE_VERSION__: string | undefined;\n\nfunction appVersion(): string {\n const version = typeof __EVENTFULLYMANAGED_MFE_VERSION__ === 'string' ? __EVENTFULLYMANAGED_MFE_VERSION__ : undefined;\n return version && version.trim() ? version : 'dev';\n}\n\nexport function gatherPageContext(): PageContext {\n const { origin, pathname } = window.location;\n const entity = resolveEventfullyManagedEntity(pathname);\n return {\n currentUrl: `${origin}${pathname}`,\n currentPage: toCurrentPage(pathname),\n ...(entity.entityType ? { entityType: entity.entityType, entityId: entity.entityId } : {}),\n ...(entity.activeTab ? { activeTab: entity.activeTab } : {}),\n platform: 'eventfullymanaged',\n version: appVersion(),\n viewportSize: `${window.innerWidth}x${window.innerHeight}`,\n };\n}\n"],"mappings":";AA+DA,IAAMA,IAAY,sBAeZC,IAAK,WACLC,IAAa,qBAEbC,IAID;CACH;EACE,SAAa,OAAO,YAAYD,EAAW,iBAAiBA,IAAaD,EAAG,OAAO;EACnF,YAAY;CACd;CACA;EACE,SAAa,OAAO,YAAYC,EAAW,gBAAgBA,IAAaD,EAAG,OAAO;EAClF,YAAY;CACd;CACA;EACE,SAAa,OAAO,YAAYC,IAAaD,EAAG,kBAAkB;EAClE,YAAY;EACZ,WAAW;CACb;CACA;EACE,SAAa,OAAO,YAAYC,IAAaD,EAAG,iBAAiB;EACjE,YAAY;EACZ,WAAW;CACb;CACA;EACE,SAAa,OAAO,YAAYC,IAAaD,EAAG,eAAe;EAC/D,YAAY;EACZ,WAAW;CACb;CACA;EACE,SAAa,OAAO,YAAYC,IAAaD,EAAG,UAAU;EAC1D,YAAY;EACZ,WAAW;CACb;CACA;EAAE,SAAa,OAAO,YAAYC,IAAaD,EAAG,YAAY;EAAG,YAAY;CAA0B;CACvG;EACE,SAAa,OAAO,YAAYC,IAAaD,EAAG,cAAc;EAC9D,YAAY;EACZ,WAAW;CACb;CACA;EACE,SAAa,OAAO,YAAYC,IAAaD,EAAG,YAAY;EAC5D,YAAY;EACZ,WAAW;CACb;CACA;EAAE,SAAa,OAAO,YAAYC,IAAaD,EAAG,YAAY;EAAG,YAAY;CAA0B;CACvG;EACE,SAAa,OAAO,cAAcC,IAAaD,EAAG,QAAQ;EAC1D,YAAY;EACZ,WAAW;CACb;CACA;EAAE,SAAa,OAAO,cAAcC,IAA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,OAAO,CAAC;AACV;AAMA,SAAgBG,EAAc,GAA0B;CACtD,IAAMC,IAAWV,EAAcE,CAAQ,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,OAAO,OAAO;CAClE,OAAOQ,EAAS,SAAS,CAAC,qBAAqB,GAAGA,CAAQ,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,KAAK,GAAG,IAAI;AACtF;AASA,SAASC,IAAqB;CAE5B,OAAmC;AACrC;AAEA,SAAgBC,IAAiC;CAC/C,IAAM,EAAE,WAAQ,gBAAa,OAAO,UAC9BC,IAASR,EAA+BH,CAAQ;CACtD,OAAO;EACL,YAAY,GAAGY,IAASZ;EACxB,aAAaO,EAAcP,CAAQ;EACnC,GAAIW,EAAO,aAAa;GAAE,YAAYA,EAAO;GAAY,UAAUA,EAAO;EAAS,IAAI,CAAC;EACxF,GAAIA,EAAO,YAAY,EAAE,WAAWA,EAAO,UAAU,IAAI,CAAC;EAC1D,UAAU;EACV,SAASF,EAAW;EACpB,cAAc,GAAG,OAAO,WAAW,GAAG,OAAO;CAC/C;AACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@burdenoff/microfe-eventfullymanaged",
3
- "version": "2026.1123.6",
3
+ "version": "2026.1124.1",
4
4
  "description": "EventfullyManaged - End-to-end event management platform",
5
5
  "type": "module",
6
6
  "files": [