@burdenoff/microfe-eventfullymanaged 2026.1102.4 → 2026.1108.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 (496) hide show
  1. package/dist/dev/main.d.ts +0 -2
  2. package/dist/eventfullymanaged/EventfullyManagedRoot.d.ts +1 -3
  3. package/dist/eventfullymanaged/EventfullyManagedRoot.js +6 -6
  4. package/dist/eventfullymanaged/EventfullyManagedRoot.js.map +1 -1
  5. package/dist/eventfullymanaged/EventfullyManagedRoutes.d.ts +1 -2
  6. package/dist/eventfullymanaged/api/eventApi.d.ts +0 -2
  7. package/dist/eventfullymanaged/components/ActionMenu.d.ts +1 -3
  8. package/dist/eventfullymanaged/components/AttendanceForecast.d.ts +1 -3
  9. package/dist/eventfullymanaged/components/EntityFormShell.d.ts +1 -3
  10. package/dist/eventfullymanaged/components/EntityTagsField.d.ts +1 -2
  11. package/dist/eventfullymanaged/components/EventCharts.d.ts +4 -5
  12. package/dist/eventfullymanaged/components/EventDraftAssistant.d.ts +1 -3
  13. package/dist/eventfullymanaged/components/FloorPlanZoneEditor.d.ts +1 -3
  14. package/dist/eventfullymanaged/components/ImageUploadField.d.ts +8 -7
  15. package/dist/eventfullymanaged/components/ImageUploadField.js +39 -48
  16. package/dist/eventfullymanaged/components/ImageUploadField.js.map +1 -1
  17. package/dist/eventfullymanaged/components/PageLayout.d.ts +1 -3
  18. package/dist/eventfullymanaged/components/Pagination.d.ts +1 -2
  19. package/dist/eventfullymanaged/components/ResolvedImage.d.ts +14 -0
  20. package/dist/eventfullymanaged/components/ResolvedImage.js +18 -0
  21. package/dist/eventfullymanaged/components/ResolvedImage.js.map +1 -0
  22. package/dist/eventfullymanaged/components/SafeLink.d.ts +1 -3
  23. package/dist/eventfullymanaged/components/floorPlanEditor/ZoneCanvas.d.ts +1 -3
  24. package/dist/eventfullymanaged/components/floorPlanEditor/ZonePanels.d.ts +3 -5
  25. package/dist/eventfullymanaged/components/floorPlanEditor/useZoneEditorState.d.ts +0 -2
  26. package/dist/eventfullymanaged/components/index.d.ts +0 -1
  27. package/dist/eventfullymanaged/context/EventfullyManagedContext.d.ts +1 -3
  28. package/dist/eventfullymanaged/hooks/index.d.ts +0 -1
  29. package/dist/eventfullymanaged/hooks/useEventDelete.d.ts +0 -1
  30. package/dist/eventfullymanaged/hooks/useEvmSubscription.d.ts +0 -1
  31. package/dist/eventfullymanaged/hooks/useResolvedImageUrl.d.ts +42 -0
  32. package/dist/eventfullymanaged/hooks/useResolvedImageUrl.js +106 -0
  33. package/dist/eventfullymanaged/hooks/useResolvedImageUrl.js.map +1 -0
  34. package/dist/eventfullymanaged/hooks/useVirtualCall.d.ts +0 -1
  35. package/dist/eventfullymanaged/index.d.ts +0 -1
  36. package/dist/eventfullymanaged/lib/eventDraft.d.ts +0 -1
  37. package/dist/eventfullymanaged/lib/fileRef.d.ts +24 -0
  38. package/dist/eventfullymanaged/lib/fileRef.js +15 -0
  39. package/dist/eventfullymanaged/lib/fileRef.js.map +1 -0
  40. package/dist/eventfullymanaged/lib/floorPlanZones.d.ts +0 -1
  41. package/dist/eventfullymanaged/lib/format.d.ts +0 -1
  42. package/dist/eventfullymanaged/lib/mutationResult.d.ts +0 -2
  43. package/dist/eventfullymanaged/lib/offlineCheckInQueue.d.ts +0 -1
  44. package/dist/eventfullymanaged/lib/toast.d.ts +0 -2
  45. package/dist/eventfullymanaged/lib/useOfflineCheckInSync.d.ts +0 -2
  46. package/dist/eventfullymanaged/pages/dashboard/DashboardPage.d.ts +1 -2
  47. package/dist/eventfullymanaged/pages/events/EventDetailPage.d.ts +1 -2
  48. package/dist/eventfullymanaged/pages/events/EventFormPage.d.ts +1 -2
  49. package/dist/eventfullymanaged/pages/events/SessionFormPage.d.ts +1 -2
  50. package/dist/eventfullymanaged/pages/events/TicketTypeFormPage.d.ts +1 -2
  51. package/dist/eventfullymanaged/pages/events/VirtualSessionPage.d.ts +1 -2
  52. package/dist/eventfullymanaged/pages/events/VirtualSessionPage.js +3 -3
  53. package/dist/eventfullymanaged/pages/events/VirtualSessionPage.js.map +1 -1
  54. package/dist/eventfullymanaged/pages/events/eventFormUtils.d.ts +0 -1
  55. package/dist/eventfullymanaged/pages/exhibitors/ExhibitorFormPage.d.ts +1 -2
  56. package/dist/eventfullymanaged/pages/exhibitors/ExhibitorsPage.d.ts +1 -2
  57. package/dist/eventfullymanaged/pages/leads/LeadCaptureDialog.d.ts +1 -2
  58. package/dist/eventfullymanaged/pages/modules/AnalyticsPage.d.ts +1 -2
  59. package/dist/eventfullymanaged/pages/modules/AttendeeProfilePage.d.ts +1 -2
  60. package/dist/eventfullymanaged/pages/modules/AttendeeRecommendations.d.ts +1 -2
  61. package/dist/eventfullymanaged/pages/modules/CommunicationPage.d.ts +1 -2
  62. package/dist/eventfullymanaged/pages/modules/EntityListSection.d.ts +1 -2
  63. package/dist/eventfullymanaged/pages/modules/EventsPage.d.ts +1 -2
  64. package/dist/eventfullymanaged/pages/modules/IntegrationsPage.d.ts +1 -2
  65. package/dist/eventfullymanaged/pages/modules/KioskPage.d.ts +1 -2
  66. package/dist/eventfullymanaged/pages/modules/NetworkingPage.d.ts +1 -2
  67. package/dist/eventfullymanaged/pages/modules/OperationsHubPage.d.ts +1 -2
  68. package/dist/eventfullymanaged/pages/modules/RegistrationPage.d.ts +1 -2
  69. package/dist/eventfullymanaged/pages/modules/RegistrationPage.js +1 -1
  70. package/dist/eventfullymanaged/pages/modules/RegistrationPage.js.map +1 -1
  71. package/dist/eventfullymanaged/pages/modules/RoadmapPanel.d.ts +1 -2
  72. package/dist/eventfullymanaged/pages/modules/SponsorDetailsPage.d.ts +1 -2
  73. package/dist/eventfullymanaged/pages/modules/SponsorDetailsPage.js +81 -80
  74. package/dist/eventfullymanaged/pages/modules/SponsorDetailsPage.js.map +1 -1
  75. package/dist/eventfullymanaged/pages/modules/SponsorLeadsPage.d.ts +1 -2
  76. package/dist/eventfullymanaged/pages/modules/VenueResourcesPage.d.ts +1 -2
  77. package/dist/eventfullymanaged/pages/modules/VenueResourcesPage.js +1 -1
  78. package/dist/eventfullymanaged/pages/modules/VenueResourcesPage.js.map +1 -1
  79. package/dist/eventfullymanaged/pages/modules/WorkflowsPage.d.ts +1 -2
  80. package/dist/eventfullymanaged/pages/networking/MeetingFormPage.d.ts +1 -2
  81. package/dist/eventfullymanaged/pages/networking/NetworkingProfileFormPage.d.ts +1 -2
  82. package/dist/eventfullymanaged/pages/registration/AttendeeFormPage.d.ts +1 -2
  83. package/dist/eventfullymanaged/pages/registration/PromoCodeFormPage.d.ts +1 -2
  84. package/dist/eventfullymanaged/pages/registration/RegisterAttendeePage.d.ts +1 -2
  85. package/dist/eventfullymanaged/pages/speakers/SpeakerFormPage.d.ts +1 -2
  86. package/dist/eventfullymanaged/pages/speakers/SpeakersPage.d.ts +1 -2
  87. package/dist/eventfullymanaged/pages/speakers/SpeakersPage.js +73 -73
  88. package/dist/eventfullymanaged/pages/speakers/SpeakersPage.js.map +1 -1
  89. package/dist/eventfullymanaged/pages/sponsors/SponsorFormPage.d.ts +1 -2
  90. package/dist/eventfullymanaged/pages/sponsors/SponsorsListPage.d.ts +1 -2
  91. package/dist/eventfullymanaged/pages/sponsors/SponsorsListPage.js +97 -96
  92. package/dist/eventfullymanaged/pages/sponsors/SponsorsListPage.js.map +1 -1
  93. package/dist/eventfullymanaged/pages/venues/FloorPlansPage.d.ts +1 -2
  94. package/dist/eventfullymanaged/pages/venues/FloorPlansPage.js +173 -134
  95. package/dist/eventfullymanaged/pages/venues/FloorPlansPage.js.map +1 -1
  96. package/dist/eventfullymanaged/pages/venues/VenueDetailPage.d.ts +1 -2
  97. package/dist/eventfullymanaged/pages/venues/VenueDetailPage.js +96 -94
  98. package/dist/eventfullymanaged/pages/venues/VenueDetailPage.js.map +1 -1
  99. package/dist/eventfullymanaged/pages/venues/VenueFormPage.d.ts +1 -2
  100. package/dist/eventfullymanaged/pages/venues/VenueListPage.d.ts +1 -2
  101. package/dist/eventfullymanaged/store/eventfullyManagedStore.d.ts +0 -1
  102. package/dist/eventfullymanaged/types/index.d.ts +0 -2
  103. package/dist/eventfullymanaged/utils/cn.d.ts +0 -1
  104. package/dist/eventfullymanaged/utils/constants.d.ts +0 -1
  105. package/dist/eventfullymanaged/utils/navigation.d.ts +0 -1
  106. package/dist/eventfullymanaged/utils/shellBridge.d.ts +0 -1
  107. package/dist/generated/global-operations.d.ts +0 -1
  108. package/dist/generated/global-types.d.ts +0 -1
  109. package/dist/generated/wspace-operations.d.ts +0 -1
  110. package/dist/generated/wspace-types.d.ts +0 -1
  111. package/dist/index.d.ts +0 -1
  112. package/dist/node_modules/@apollo/client/react/hooks/useQuery.js.map +1 -1
  113. package/dist/node_modules/@apollo/client/react/hooks/useSyncExternalStore.js.map +1 -1
  114. package/dist/node_modules/@apollo/client/version.js +1 -1
  115. package/dist/node_modules/@apollo/client/version.js.map +1 -1
  116. package/dist/node_modules/d3-array/dist/d3-array.js +204 -0
  117. package/dist/node_modules/d3-array/dist/d3-array.js.map +1 -0
  118. package/dist/node_modules/d3-color/dist/d3-color.js +388 -0
  119. package/dist/node_modules/d3-color/dist/d3-color.js.map +1 -0
  120. package/dist/node_modules/d3-format/dist/d3-format.js +186 -0
  121. package/dist/node_modules/d3-format/dist/d3-format.js.map +1 -0
  122. package/dist/node_modules/d3-interpolate/dist/d3-interpolate.js +185 -0
  123. package/dist/node_modules/d3-interpolate/dist/d3-interpolate.js.map +1 -0
  124. package/dist/node_modules/d3-path/{src/path.js → dist/d3-path.js} +33 -9
  125. package/dist/node_modules/d3-path/dist/d3-path.js.map +1 -0
  126. package/dist/node_modules/d3-scale/dist/d3-scale.js +622 -0
  127. package/dist/node_modules/d3-scale/dist/d3-scale.js.map +1 -0
  128. package/dist/node_modules/d3-shape/dist/d3-shape.js +901 -0
  129. package/dist/node_modules/d3-shape/dist/d3-shape.js.map +1 -0
  130. package/dist/node_modules/d3-time/dist/d3-time.js +241 -0
  131. package/dist/node_modules/d3-time/dist/d3-time.js.map +1 -0
  132. package/dist/node_modules/d3-time-format/{src/locale.js → dist/d3-time-format.js} +229 -173
  133. package/dist/node_modules/d3-time-format/dist/d3-time-format.js.map +1 -0
  134. package/dist/node_modules/fast-equals/dist/es/index.js +107 -76
  135. package/dist/node_modules/fast-equals/dist/es/index.js.map +1 -1
  136. package/dist/node_modules/graphql/error/GraphQLError.js +5 -2
  137. package/dist/node_modules/graphql/error/GraphQLError.js.map +1 -1
  138. package/dist/node_modules/graphql/language/ast.js.map +1 -1
  139. package/dist/node_modules/graphql/language/lexer.js +14 -8
  140. package/dist/node_modules/graphql/language/lexer.js.map +1 -1
  141. package/dist/node_modules/graphql/language/location.js +30 -11
  142. package/dist/node_modules/graphql/language/location.js.map +1 -1
  143. package/dist/node_modules/graphql/language/parser.js +9 -7
  144. package/dist/node_modules/graphql/language/parser.js.map +1 -1
  145. package/dist/node_modules/graphql/language/printLocation.js.map +1 -1
  146. package/dist/node_modules/graphql/language/source.js.map +1 -1
  147. package/dist/node_modules/graphql-tag/lib/index.js +2 -1
  148. package/dist/node_modules/graphql-tag/lib/index.js.map +1 -1
  149. package/dist/node_modules/recharts/es6/cartesian/Brush.js +1 -1
  150. package/dist/node_modules/recharts/es6/cartesian/Brush.js.map +1 -1
  151. package/dist/node_modules/recharts/es6/shape/Curve.js +22 -32
  152. package/dist/node_modules/recharts/es6/shape/Curve.js.map +1 -1
  153. package/dist/node_modules/recharts/es6/shape/Symbols.js +1 -8
  154. package/dist/node_modules/recharts/es6/shape/Symbols.js.map +1 -1
  155. package/dist/node_modules/recharts/es6/util/ChartUtils.js +7 -13
  156. package/dist/node_modules/recharts/es6/util/ChartUtils.js.map +1 -1
  157. package/dist/node_modules/rxjs/dist/esm5/internal/Subscriber.js +1 -1
  158. package/dist/node_modules/rxjs/dist/esm5/internal/Subscription.js +1 -1
  159. package/dist/node_modules/rxjs/dist/esm5/internal/operators/OperatorSubscriber.js +1 -1
  160. package/dist/node_modules/rxjs/dist/esm5/internal/scheduler/Action.js +1 -1
  161. package/dist/node_modules/rxjs/dist/esm5/internal/scheduler/AsapAction.js +1 -1
  162. package/dist/node_modules/rxjs/dist/esm5/internal/scheduler/AsapScheduler.js +1 -1
  163. package/dist/node_modules/rxjs/dist/esm5/internal/scheduler/AsyncAction.js +1 -1
  164. package/dist/node_modules/rxjs/dist/esm5/internal/scheduler/AsyncScheduler.js +1 -1
  165. package/dist/node_modules/rxjs/dist/esm5/internal/scheduler/immediateProvider.js +1 -1
  166. package/dist/node_modules/rxjs/dist/esm5/internal/scheduler/intervalProvider.js +1 -1
  167. package/dist/node_modules/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js +1 -1
  168. package/dist/node_modules/rxjs/node_modules/tslib/tslib.es6.js +51 -0
  169. package/dist/node_modules/rxjs/node_modules/tslib/tslib.es6.js.map +1 -0
  170. package/dist/node_modules/tslib/tslib.es6.js +4 -51
  171. package/dist/node_modules/tslib/tslib.es6.js.map +1 -1
  172. package/dist/node_modules/victory-vendor/es/d3-scale.js +27 -43
  173. package/dist/node_modules/victory-vendor/es/d3-scale.js.map +1 -1
  174. package/dist/services/createSandboxAssistantTransport.d.ts +0 -1
  175. package/dist/shared/hooks/index.d.ts +0 -1
  176. package/dist/shared/hooks/useTr.d.ts +0 -1
  177. package/dist/stories/ActionMenu.stories.d.ts +0 -2
  178. package/dist/stories/Pagination.stories.d.ts +0 -2
  179. package/dist/stories/SafeLink.stories.d.ts +0 -2
  180. package/dist/test/happydom.d.ts +1 -0
  181. package/dist/utils/pageContext.d.ts +0 -1
  182. package/dist/utils/pageContext.js +1 -1
  183. package/package.json +69 -58
  184. package/dist/dev/main.d.ts.map +0 -1
  185. package/dist/eventfullymanaged/EventfullyManagedRoot.d.ts.map +0 -1
  186. package/dist/eventfullymanaged/EventfullyManagedRoutes.d.ts.map +0 -1
  187. package/dist/eventfullymanaged/api/eventApi.d.ts.map +0 -1
  188. package/dist/eventfullymanaged/components/ActionMenu.d.ts.map +0 -1
  189. package/dist/eventfullymanaged/components/AttendanceForecast.d.ts.map +0 -1
  190. package/dist/eventfullymanaged/components/EntityFormShell.d.ts.map +0 -1
  191. package/dist/eventfullymanaged/components/EntityTagsField.d.ts.map +0 -1
  192. package/dist/eventfullymanaged/components/EventCharts.d.ts.map +0 -1
  193. package/dist/eventfullymanaged/components/EventDraftAssistant.d.ts.map +0 -1
  194. package/dist/eventfullymanaged/components/FloorPlanZoneEditor.d.ts.map +0 -1
  195. package/dist/eventfullymanaged/components/ImageUploadField.d.ts.map +0 -1
  196. package/dist/eventfullymanaged/components/PageLayout.d.ts.map +0 -1
  197. package/dist/eventfullymanaged/components/Pagination.d.ts.map +0 -1
  198. package/dist/eventfullymanaged/components/SafeLink.d.ts.map +0 -1
  199. package/dist/eventfullymanaged/components/floorPlanEditor/ZoneCanvas.d.ts.map +0 -1
  200. package/dist/eventfullymanaged/components/floorPlanEditor/ZonePanels.d.ts.map +0 -1
  201. package/dist/eventfullymanaged/components/floorPlanEditor/useZoneEditorState.d.ts.map +0 -1
  202. package/dist/eventfullymanaged/components/index.d.ts.map +0 -1
  203. package/dist/eventfullymanaged/context/EventfullyManagedContext.d.ts.map +0 -1
  204. package/dist/eventfullymanaged/hooks/index.d.ts.map +0 -1
  205. package/dist/eventfullymanaged/hooks/useEventDelete.d.ts.map +0 -1
  206. package/dist/eventfullymanaged/hooks/useEvmSubscription.d.ts.map +0 -1
  207. package/dist/eventfullymanaged/hooks/useVirtualCall.d.ts.map +0 -1
  208. package/dist/eventfullymanaged/index.d.ts.map +0 -1
  209. package/dist/eventfullymanaged/lib/eventDraft.d.ts.map +0 -1
  210. package/dist/eventfullymanaged/lib/floorPlanZones.d.ts.map +0 -1
  211. package/dist/eventfullymanaged/lib/format.d.ts.map +0 -1
  212. package/dist/eventfullymanaged/lib/mutationResult.d.ts.map +0 -1
  213. package/dist/eventfullymanaged/lib/offlineCheckInQueue.d.ts.map +0 -1
  214. package/dist/eventfullymanaged/lib/toast.d.ts.map +0 -1
  215. package/dist/eventfullymanaged/lib/useOfflineCheckInSync.d.ts.map +0 -1
  216. package/dist/eventfullymanaged/pages/dashboard/DashboardPage.d.ts.map +0 -1
  217. package/dist/eventfullymanaged/pages/events/EventDetailPage.d.ts.map +0 -1
  218. package/dist/eventfullymanaged/pages/events/EventFormPage.d.ts.map +0 -1
  219. package/dist/eventfullymanaged/pages/events/SessionFormPage.d.ts.map +0 -1
  220. package/dist/eventfullymanaged/pages/events/TicketTypeFormPage.d.ts.map +0 -1
  221. package/dist/eventfullymanaged/pages/events/VirtualSessionPage.d.ts.map +0 -1
  222. package/dist/eventfullymanaged/pages/events/eventFormUtils.d.ts.map +0 -1
  223. package/dist/eventfullymanaged/pages/exhibitors/ExhibitorFormPage.d.ts.map +0 -1
  224. package/dist/eventfullymanaged/pages/exhibitors/ExhibitorsPage.d.ts.map +0 -1
  225. package/dist/eventfullymanaged/pages/leads/LeadCaptureDialog.d.ts.map +0 -1
  226. package/dist/eventfullymanaged/pages/modules/AnalyticsPage.d.ts.map +0 -1
  227. package/dist/eventfullymanaged/pages/modules/AttendeeProfilePage.d.ts.map +0 -1
  228. package/dist/eventfullymanaged/pages/modules/AttendeeRecommendations.d.ts.map +0 -1
  229. package/dist/eventfullymanaged/pages/modules/CommunicationPage.d.ts.map +0 -1
  230. package/dist/eventfullymanaged/pages/modules/EntityListSection.d.ts.map +0 -1
  231. package/dist/eventfullymanaged/pages/modules/EventsPage.d.ts.map +0 -1
  232. package/dist/eventfullymanaged/pages/modules/IntegrationsPage.d.ts.map +0 -1
  233. package/dist/eventfullymanaged/pages/modules/KioskPage.d.ts.map +0 -1
  234. package/dist/eventfullymanaged/pages/modules/NetworkingPage.d.ts.map +0 -1
  235. package/dist/eventfullymanaged/pages/modules/OperationsHubPage.d.ts.map +0 -1
  236. package/dist/eventfullymanaged/pages/modules/RegistrationPage.d.ts.map +0 -1
  237. package/dist/eventfullymanaged/pages/modules/RoadmapPanel.d.ts.map +0 -1
  238. package/dist/eventfullymanaged/pages/modules/SponsorDetailsPage.d.ts.map +0 -1
  239. package/dist/eventfullymanaged/pages/modules/SponsorLeadsPage.d.ts.map +0 -1
  240. package/dist/eventfullymanaged/pages/modules/VenueResourcesPage.d.ts.map +0 -1
  241. package/dist/eventfullymanaged/pages/modules/WorkflowsPage.d.ts.map +0 -1
  242. package/dist/eventfullymanaged/pages/networking/MeetingFormPage.d.ts.map +0 -1
  243. package/dist/eventfullymanaged/pages/networking/NetworkingProfileFormPage.d.ts.map +0 -1
  244. package/dist/eventfullymanaged/pages/registration/AttendeeFormPage.d.ts.map +0 -1
  245. package/dist/eventfullymanaged/pages/registration/PromoCodeFormPage.d.ts.map +0 -1
  246. package/dist/eventfullymanaged/pages/registration/RegisterAttendeePage.d.ts.map +0 -1
  247. package/dist/eventfullymanaged/pages/speakers/SpeakerFormPage.d.ts.map +0 -1
  248. package/dist/eventfullymanaged/pages/speakers/SpeakersPage.d.ts.map +0 -1
  249. package/dist/eventfullymanaged/pages/sponsors/SponsorFormPage.d.ts.map +0 -1
  250. package/dist/eventfullymanaged/pages/sponsors/SponsorsListPage.d.ts.map +0 -1
  251. package/dist/eventfullymanaged/pages/venues/FloorPlansPage.d.ts.map +0 -1
  252. package/dist/eventfullymanaged/pages/venues/VenueDetailPage.d.ts.map +0 -1
  253. package/dist/eventfullymanaged/pages/venues/VenueFormPage.d.ts.map +0 -1
  254. package/dist/eventfullymanaged/pages/venues/VenueListPage.d.ts.map +0 -1
  255. package/dist/eventfullymanaged/store/eventfullyManagedStore.d.ts.map +0 -1
  256. package/dist/eventfullymanaged/types/index.d.ts.map +0 -1
  257. package/dist/eventfullymanaged/utils/cn.d.ts.map +0 -1
  258. package/dist/eventfullymanaged/utils/constants.d.ts.map +0 -1
  259. package/dist/eventfullymanaged/utils/navigation.d.ts.map +0 -1
  260. package/dist/eventfullymanaged/utils/shellBridge.d.ts.map +0 -1
  261. package/dist/generated/global-operations.d.ts.map +0 -1
  262. package/dist/generated/global-types.d.ts.map +0 -1
  263. package/dist/generated/wspace-operations.d.ts.map +0 -1
  264. package/dist/generated/wspace-types.d.ts.map +0 -1
  265. package/dist/index.d.ts.map +0 -1
  266. package/dist/node_modules/d3-array/src/ascending.js +0 -7
  267. package/dist/node_modules/d3-array/src/ascending.js.map +0 -1
  268. package/dist/node_modules/d3-array/src/bisect.js +0 -9
  269. package/dist/node_modules/d3-array/src/bisect.js.map +0 -1
  270. package/dist/node_modules/d3-array/src/bisector.js +0 -42
  271. package/dist/node_modules/d3-array/src/bisector.js.map +0 -1
  272. package/dist/node_modules/d3-array/src/descending.js +0 -7
  273. package/dist/node_modules/d3-array/src/descending.js.map +0 -1
  274. package/dist/node_modules/d3-array/src/max.js +0 -13
  275. package/dist/node_modules/d3-array/src/max.js.map +0 -1
  276. package/dist/node_modules/d3-array/src/min.js +0 -13
  277. package/dist/node_modules/d3-array/src/min.js.map +0 -1
  278. package/dist/node_modules/d3-array/src/number.js +0 -14
  279. package/dist/node_modules/d3-array/src/number.js.map +0 -1
  280. package/dist/node_modules/d3-array/src/quantile.js +0 -24
  281. package/dist/node_modules/d3-array/src/quantile.js.map +0 -1
  282. package/dist/node_modules/d3-array/src/quickselect.js +0 -25
  283. package/dist/node_modules/d3-array/src/quickselect.js.map +0 -1
  284. package/dist/node_modules/d3-array/src/range.js +0 -9
  285. package/dist/node_modules/d3-array/src/range.js.map +0 -1
  286. package/dist/node_modules/d3-array/src/sort.js +0 -16
  287. package/dist/node_modules/d3-array/src/sort.js.map +0 -1
  288. package/dist/node_modules/d3-array/src/ticks.js +0 -34
  289. package/dist/node_modules/d3-array/src/ticks.js.map +0 -1
  290. package/dist/node_modules/d3-color/src/color.js +0 -290
  291. package/dist/node_modules/d3-color/src/color.js.map +0 -1
  292. package/dist/node_modules/d3-color/src/define.js +0 -12
  293. package/dist/node_modules/d3-color/src/define.js.map +0 -1
  294. package/dist/node_modules/d3-format/src/defaultLocale.js +0 -14
  295. package/dist/node_modules/d3-format/src/defaultLocale.js.map +0 -1
  296. package/dist/node_modules/d3-format/src/exponent.js +0 -8
  297. package/dist/node_modules/d3-format/src/exponent.js.map +0 -1
  298. package/dist/node_modules/d3-format/src/formatDecimal.js +0 -12
  299. package/dist/node_modules/d3-format/src/formatDecimal.js.map +0 -1
  300. package/dist/node_modules/d3-format/src/formatGroup.js +0 -10
  301. package/dist/node_modules/d3-format/src/formatGroup.js.map +0 -1
  302. package/dist/node_modules/d3-format/src/formatNumerals.js +0 -11
  303. package/dist/node_modules/d3-format/src/formatNumerals.js.map +0 -1
  304. package/dist/node_modules/d3-format/src/formatPrefixAuto.js +0 -12
  305. package/dist/node_modules/d3-format/src/formatPrefixAuto.js.map +0 -1
  306. package/dist/node_modules/d3-format/src/formatRounded.js +0 -11
  307. package/dist/node_modules/d3-format/src/formatRounded.js.map +0 -1
  308. package/dist/node_modules/d3-format/src/formatSpecifier.js +0 -28
  309. package/dist/node_modules/d3-format/src/formatSpecifier.js.map +0 -1
  310. package/dist/node_modules/d3-format/src/formatTrim.js +0 -18
  311. package/dist/node_modules/d3-format/src/formatTrim.js.map +0 -1
  312. package/dist/node_modules/d3-format/src/formatTypes.js +0 -22
  313. package/dist/node_modules/d3-format/src/formatTypes.js.map +0 -1
  314. package/dist/node_modules/d3-format/src/identity.js +0 -7
  315. package/dist/node_modules/d3-format/src/identity.js.map +0 -1
  316. package/dist/node_modules/d3-format/src/locale.js +0 -83
  317. package/dist/node_modules/d3-format/src/locale.js.map +0 -1
  318. package/dist/node_modules/d3-format/src/precisionFixed.js +0 -8
  319. package/dist/node_modules/d3-format/src/precisionFixed.js.map +0 -1
  320. package/dist/node_modules/d3-format/src/precisionPrefix.js +0 -8
  321. package/dist/node_modules/d3-format/src/precisionPrefix.js.map +0 -1
  322. package/dist/node_modules/d3-format/src/precisionRound.js +0 -8
  323. package/dist/node_modules/d3-format/src/precisionRound.js.map +0 -1
  324. package/dist/node_modules/d3-interpolate/src/array.js +0 -13
  325. package/dist/node_modules/d3-interpolate/src/array.js.map +0 -1
  326. package/dist/node_modules/d3-interpolate/src/basis.js +0 -15
  327. package/dist/node_modules/d3-interpolate/src/basis.js.map +0 -1
  328. package/dist/node_modules/d3-interpolate/src/basisClosed.js +0 -12
  329. package/dist/node_modules/d3-interpolate/src/basisClosed.js.map +0 -1
  330. package/dist/node_modules/d3-interpolate/src/color.js +0 -24
  331. package/dist/node_modules/d3-interpolate/src/color.js.map +0 -1
  332. package/dist/node_modules/d3-interpolate/src/constant.js +0 -5
  333. package/dist/node_modules/d3-interpolate/src/constant.js.map +0 -1
  334. package/dist/node_modules/d3-interpolate/src/date.js +0 -10
  335. package/dist/node_modules/d3-interpolate/src/date.js.map +0 -1
  336. package/dist/node_modules/d3-interpolate/src/number.js +0 -9
  337. package/dist/node_modules/d3-interpolate/src/number.js.map +0 -1
  338. package/dist/node_modules/d3-interpolate/src/numberArray.js +0 -15
  339. package/dist/node_modules/d3-interpolate/src/numberArray.js.map +0 -1
  340. package/dist/node_modules/d3-interpolate/src/object.js +0 -13
  341. package/dist/node_modules/d3-interpolate/src/object.js.map +0 -1
  342. package/dist/node_modules/d3-interpolate/src/piecewise.js +0 -13
  343. package/dist/node_modules/d3-interpolate/src/piecewise.js.map +0 -1
  344. package/dist/node_modules/d3-interpolate/src/rgb.js +0 -18
  345. package/dist/node_modules/d3-interpolate/src/rgb.js.map +0 -1
  346. package/dist/node_modules/d3-interpolate/src/round.js +0 -9
  347. package/dist/node_modules/d3-interpolate/src/round.js.map +0 -1
  348. package/dist/node_modules/d3-interpolate/src/string.js +0 -27
  349. package/dist/node_modules/d3-interpolate/src/string.js.map +0 -1
  350. package/dist/node_modules/d3-interpolate/src/value.js +0 -17
  351. package/dist/node_modules/d3-interpolate/src/value.js.map +0 -1
  352. package/dist/node_modules/d3-path/src/path.js.map +0 -1
  353. package/dist/node_modules/d3-scale/src/band.js +0 -51
  354. package/dist/node_modules/d3-scale/src/band.js.map +0 -1
  355. package/dist/node_modules/d3-scale/src/constant.js +0 -9
  356. package/dist/node_modules/d3-scale/src/constant.js.map +0 -1
  357. package/dist/node_modules/d3-scale/src/continuous.js +0 -72
  358. package/dist/node_modules/d3-scale/src/continuous.js.map +0 -1
  359. package/dist/node_modules/d3-scale/src/diverging.js +0 -81
  360. package/dist/node_modules/d3-scale/src/diverging.js.map +0 -1
  361. package/dist/node_modules/d3-scale/src/identity.js +0 -19
  362. package/dist/node_modules/d3-scale/src/identity.js.map +0 -1
  363. package/dist/node_modules/d3-scale/src/init.js +0 -24
  364. package/dist/node_modules/d3-scale/src/init.js.map +0 -1
  365. package/dist/node_modules/d3-scale/src/linear.js +0 -35
  366. package/dist/node_modules/d3-scale/src/linear.js.map +0 -1
  367. package/dist/node_modules/d3-scale/src/log.js +0 -76
  368. package/dist/node_modules/d3-scale/src/log.js.map +0 -1
  369. package/dist/node_modules/d3-scale/src/nice.js +0 -9
  370. package/dist/node_modules/d3-scale/src/nice.js.map +0 -1
  371. package/dist/node_modules/d3-scale/src/number.js +0 -7
  372. package/dist/node_modules/d3-scale/src/number.js.map +0 -1
  373. package/dist/node_modules/d3-scale/src/ordinal.js +0 -30
  374. package/dist/node_modules/d3-scale/src/ordinal.js.map +0 -1
  375. package/dist/node_modules/d3-scale/src/pow.js +0 -36
  376. package/dist/node_modules/d3-scale/src/pow.js.map +0 -1
  377. package/dist/node_modules/d3-scale/src/quantile.js +0 -36
  378. package/dist/node_modules/d3-scale/src/quantile.js.map +0 -1
  379. package/dist/node_modules/d3-scale/src/quantize.js +0 -32
  380. package/dist/node_modules/d3-scale/src/quantize.js.map +0 -1
  381. package/dist/node_modules/d3-scale/src/radial.js +0 -38
  382. package/dist/node_modules/d3-scale/src/radial.js.map +0 -1
  383. package/dist/node_modules/d3-scale/src/sequential.js +0 -66
  384. package/dist/node_modules/d3-scale/src/sequential.js.map +0 -1
  385. package/dist/node_modules/d3-scale/src/sequentialQuantile.js +0 -29
  386. package/dist/node_modules/d3-scale/src/sequentialQuantile.js.map +0 -1
  387. package/dist/node_modules/d3-scale/src/symlog.js +0 -29
  388. package/dist/node_modules/d3-scale/src/symlog.js.map +0 -1
  389. package/dist/node_modules/d3-scale/src/threshold.js +0 -24
  390. package/dist/node_modules/d3-scale/src/threshold.js.map +0 -1
  391. package/dist/node_modules/d3-scale/src/tickFormat.js +0 -28
  392. package/dist/node_modules/d3-scale/src/tickFormat.js.map +0 -1
  393. package/dist/node_modules/d3-scale/src/time.js +0 -46
  394. package/dist/node_modules/d3-scale/src/time.js.map +0 -1
  395. package/dist/node_modules/d3-scale/src/utcTime.js +0 -18
  396. package/dist/node_modules/d3-scale/src/utcTime.js.map +0 -1
  397. package/dist/node_modules/d3-shape/src/area.js +0 -56
  398. package/dist/node_modules/d3-shape/src/area.js.map +0 -1
  399. package/dist/node_modules/d3-shape/src/array.js +0 -7
  400. package/dist/node_modules/d3-shape/src/array.js.map +0 -1
  401. package/dist/node_modules/d3-shape/src/constant.js +0 -9
  402. package/dist/node_modules/d3-shape/src/constant.js.map +0 -1
  403. package/dist/node_modules/d3-shape/src/curve/basis.js +0 -44
  404. package/dist/node_modules/d3-shape/src/curve/basis.js.map +0 -1
  405. package/dist/node_modules/d3-shape/src/curve/basisClosed.js +0 -45
  406. package/dist/node_modules/d3-shape/src/curve/basisClosed.js.map +0 -1
  407. package/dist/node_modules/d3-shape/src/curve/basisOpen.js +0 -43
  408. package/dist/node_modules/d3-shape/src/curve/basisOpen.js.map +0 -1
  409. package/dist/node_modules/d3-shape/src/curve/bump.js +0 -37
  410. package/dist/node_modules/d3-shape/src/curve/bump.js.map +0 -1
  411. package/dist/node_modules/d3-shape/src/curve/linear.js +0 -33
  412. package/dist/node_modules/d3-shape/src/curve/linear.js.map +0 -1
  413. package/dist/node_modules/d3-shape/src/curve/linearClosed.js +0 -24
  414. package/dist/node_modules/d3-shape/src/curve/linearClosed.js.map +0 -1
  415. package/dist/node_modules/d3-shape/src/curve/monotone.js +0 -89
  416. package/dist/node_modules/d3-shape/src/curve/monotone.js.map +0 -1
  417. package/dist/node_modules/d3-shape/src/curve/natural.js +0 -40
  418. package/dist/node_modules/d3-shape/src/curve/natural.js.map +0 -1
  419. package/dist/node_modules/d3-shape/src/curve/step.js +0 -44
  420. package/dist/node_modules/d3-shape/src/curve/step.js.map +0 -1
  421. package/dist/node_modules/d3-shape/src/line.js +0 -29
  422. package/dist/node_modules/d3-shape/src/line.js.map +0 -1
  423. package/dist/node_modules/d3-shape/src/math.js +0 -7
  424. package/dist/node_modules/d3-shape/src/math.js.map +0 -1
  425. package/dist/node_modules/d3-shape/src/noop.js +0 -5
  426. package/dist/node_modules/d3-shape/src/noop.js.map +0 -1
  427. package/dist/node_modules/d3-shape/src/offset/expand.js +0 -14
  428. package/dist/node_modules/d3-shape/src/offset/expand.js.map +0 -1
  429. package/dist/node_modules/d3-shape/src/offset/none.js +0 -7
  430. package/dist/node_modules/d3-shape/src/offset/none.js.map +0 -1
  431. package/dist/node_modules/d3-shape/src/offset/silhouette.js +0 -14
  432. package/dist/node_modules/d3-shape/src/offset/silhouette.js.map +0 -1
  433. package/dist/node_modules/d3-shape/src/offset/wiggle.js +0 -20
  434. package/dist/node_modules/d3-shape/src/offset/wiggle.js.map +0 -1
  435. package/dist/node_modules/d3-shape/src/order/none.js +0 -8
  436. package/dist/node_modules/d3-shape/src/order/none.js.map +0 -1
  437. package/dist/node_modules/d3-shape/src/path.js +0 -18
  438. package/dist/node_modules/d3-shape/src/path.js.map +0 -1
  439. package/dist/node_modules/d3-shape/src/point.js +0 -10
  440. package/dist/node_modules/d3-shape/src/point.js.map +0 -1
  441. package/dist/node_modules/d3-shape/src/stack.js +0 -33
  442. package/dist/node_modules/d3-shape/src/stack.js.map +0 -1
  443. package/dist/node_modules/d3-shape/src/symbol/circle.js +0 -9
  444. package/dist/node_modules/d3-shape/src/symbol/circle.js.map +0 -1
  445. package/dist/node_modules/d3-shape/src/symbol/cross.js +0 -9
  446. package/dist/node_modules/d3-shape/src/symbol/cross.js.map +0 -1
  447. package/dist/node_modules/d3-shape/src/symbol/diamond.js +0 -9
  448. package/dist/node_modules/d3-shape/src/symbol/diamond.js.map +0 -1
  449. package/dist/node_modules/d3-shape/src/symbol/square.js +0 -9
  450. package/dist/node_modules/d3-shape/src/symbol/square.js.map +0 -1
  451. package/dist/node_modules/d3-shape/src/symbol/star.js +0 -14
  452. package/dist/node_modules/d3-shape/src/symbol/star.js.map +0 -1
  453. package/dist/node_modules/d3-shape/src/symbol/triangle.js +0 -9
  454. package/dist/node_modules/d3-shape/src/symbol/triangle.js.map +0 -1
  455. package/dist/node_modules/d3-shape/src/symbol/wye.js +0 -9
  456. package/dist/node_modules/d3-shape/src/symbol/wye.js.map +0 -1
  457. package/dist/node_modules/d3-shape/src/symbol.js +0 -22
  458. package/dist/node_modules/d3-shape/src/symbol.js.map +0 -1
  459. package/dist/node_modules/d3-time/src/day.js +0 -20
  460. package/dist/node_modules/d3-time/src/day.js.map +0 -1
  461. package/dist/node_modules/d3-time/src/duration.js +0 -5
  462. package/dist/node_modules/d3-time/src/duration.js.map +0 -1
  463. package/dist/node_modules/d3-time/src/hour.js +0 -18
  464. package/dist/node_modules/d3-time/src/hour.js.map +0 -1
  465. package/dist/node_modules/d3-time/src/interval.js +0 -29
  466. package/dist/node_modules/d3-time/src/interval.js.map +0 -1
  467. package/dist/node_modules/d3-time/src/millisecond.js +0 -13
  468. package/dist/node_modules/d3-time/src/millisecond.js.map +0 -1
  469. package/dist/node_modules/d3-time/src/minute.js +0 -18
  470. package/dist/node_modules/d3-time/src/minute.js.map +0 -1
  471. package/dist/node_modules/d3-time/src/month.js +0 -17
  472. package/dist/node_modules/d3-time/src/month.js.map +0 -1
  473. package/dist/node_modules/d3-time/src/second.js +0 -12
  474. package/dist/node_modules/d3-time/src/second.js.map +0 -1
  475. package/dist/node_modules/d3-time/src/ticks.js +0 -124
  476. package/dist/node_modules/d3-time/src/ticks.js.map +0 -1
  477. package/dist/node_modules/d3-time/src/week.js +0 -24
  478. package/dist/node_modules/d3-time/src/week.js.map +0 -1
  479. package/dist/node_modules/d3-time/src/year.js +0 -25
  480. package/dist/node_modules/d3-time/src/year.js.map +0 -1
  481. package/dist/node_modules/d3-time-format/src/defaultLocale.js +0 -61
  482. package/dist/node_modules/d3-time-format/src/defaultLocale.js.map +0 -1
  483. package/dist/node_modules/d3-time-format/src/locale.js.map +0 -1
  484. package/dist/node_modules/graphql/jsutils/invariant.js +0 -7
  485. package/dist/node_modules/graphql/jsutils/invariant.js.map +0 -1
  486. package/dist/node_modules/internmap/src/index.js +0 -39
  487. package/dist/node_modules/internmap/src/index.js.map +0 -1
  488. package/dist/services/createSandboxAssistantTransport.d.ts.map +0 -1
  489. package/dist/shared/hooks/index.d.ts.map +0 -1
  490. package/dist/shared/hooks/useTr.d.ts.map +0 -1
  491. package/dist/stories/ActionMenu.stories.d.ts.map +0 -1
  492. package/dist/stories/Pagination.stories.d.ts.map +0 -1
  493. package/dist/stories/SafeLink.stories.d.ts.map +0 -1
  494. package/dist/test/setup.d.ts +0 -11
  495. package/dist/test/setup.d.ts.map +0 -1
  496. package/dist/utils/pageContext.d.ts.map +0 -1
@@ -0,0 +1,42 @@
1
+ import { ApolloClient } from '@apollo/client';
2
+ export declare const GET_FILE_DOWNLOAD_URL: import('graphql').DocumentNode;
3
+ export type CacheEntry = {
4
+ url: string;
5
+ mintedAt: number;
6
+ };
7
+ /** Clears the resolver cache. Exported for tests. */
8
+ export declare function resetResolvedImageUrlCache(): void;
9
+ /**
10
+ * Mints a short-lived signed download URL for a files-svc file id. Concurrent
11
+ * callers for the same file share one request, and a fresh URL is reused for
12
+ * half its lifetime so lists of thumbnails do not hammer files-svc.
13
+ */
14
+ export declare function resolveFileDownloadUrl(client: Pick<ApolloClient, 'query'>, fileId: string): Promise<string | null>;
15
+ /**
16
+ * When a mounted consumer should renew its cached URL, and when that URL
17
+ * expires. Renewal happens once the URL leaves its reuse window; after a failed
18
+ * renewal it is retried every minute for as long as the URL is still valid.
19
+ * Exported for tests.
20
+ */
21
+ export declare function renewalSchedule(entry: CacheEntry, renewFailedAt: number, now: number): {
22
+ renewInMs: number | null;
23
+ expiresInMs: number;
24
+ };
25
+ export interface ResolvedImageUrl {
26
+ /** A URL an `<img>` can load, or null while resolving / when unavailable. */
27
+ url: string | null;
28
+ loading: boolean;
29
+ /** True when files-svc could not mint a URL for the referenced file. */
30
+ failed: boolean;
31
+ /** Asks files-svc again after a failure. A no-op for plain URLs. */
32
+ retry: () => void;
33
+ }
34
+ /**
35
+ * Turns a stored image value into something an `<img>` can render: `files:<id>`
36
+ * references are resolved to a signed URL; plain URLs are returned as-is.
37
+ *
38
+ * While a consumer stays mounted its URL is renewed in place once it passes the
39
+ * reuse window, so a page left open for hours (or an image that only starts
40
+ * loading when it scrolls into view) never renders an expired signed URL.
41
+ */
42
+ export declare function useResolvedImageUrl(value: string | null | undefined): ResolvedImageUrl;
@@ -0,0 +1,106 @@
1
+ import { gql as e } from "../../node_modules/graphql-tag/lib/index.js";
2
+ import { useApolloClient as t } from "../../node_modules/@apollo/client/react/hooks/useApolloClient.js";
3
+ import { FILE_URL_TTL_SECONDS as n, parseFileRef as r } from "../lib/fileRef.js";
4
+ import { useCallback as i, useEffect as a, useState as o, useSyncExternalStore as s } from "react";
5
+ // src/eventfullymanaged/hooks/useResolvedImageUrl.ts
6
+ var c = e`
7
+ query EventfullymanagedGetFileDownloadUrl($id: ID!, $expiresIn: Int) {
8
+ getFileDownloadUrl(id: $id, expiresIn: $expiresIn)
9
+ }
10
+ `, l = n * 1e3 / 2, u = n * 1e3, d = 6e4, f = /* @__PURE__ */ new Map(), p = /* @__PURE__ */ new Map(), m = /* @__PURE__ */ new Set();
11
+ function h() {
12
+ for (let e of m) e();
13
+ }
14
+ function g(e) {
15
+ return m.add(e), () => {
16
+ m.delete(e);
17
+ };
18
+ }
19
+ function _(e, t) {
20
+ let n = f.get(e);
21
+ return !n || t - n.mintedAt > l ? null : n.url;
22
+ }
23
+ async function v(e, t) {
24
+ let n = _(t, Date.now());
25
+ if (n) return n;
26
+ let r = p.get(t);
27
+ if (r) return r;
28
+ let i = (async () => {
29
+ try {
30
+ let n = (await e.query({
31
+ query: c,
32
+ variables: {
33
+ id: t,
34
+ expiresIn: 21600
35
+ },
36
+ fetchPolicy: "no-cache"
37
+ })).data?.getFileDownloadUrl ?? null;
38
+ return n && (f.set(t, {
39
+ url: n,
40
+ mintedAt: Date.now()
41
+ }), h()), n;
42
+ } catch {
43
+ return null;
44
+ } finally {
45
+ p.delete(t);
46
+ }
47
+ })();
48
+ return p.set(t, i), i;
49
+ }
50
+ function y(e, t, n) {
51
+ let r = e.mintedAt + u, i = t >= e.mintedAt ? t + d : e.mintedAt + l + 1;
52
+ return {
53
+ renewInMs: i < r ? Math.max(0, i - n) : null,
54
+ expiresInMs: Math.max(0, r - n)
55
+ };
56
+ }
57
+ function b(e) {
58
+ let n = t(), c = r(e), l = !c && e ? e : null, u = i(() => c ? f.get(c) ?? null : null, [c]), d = s(g, u, u), [p, m] = o(null), [h, _] = o(0), [b, x] = o(null), [S, C] = o(0);
59
+ a(() => {
60
+ if (!c) return;
61
+ let e = !0, t = () => {
62
+ v(n, c).then((t) => {
63
+ e && (m(t ? null : c), t ? C(0) : f.has(c) && C(Date.now()));
64
+ });
65
+ }, r, i, a = f.get(c);
66
+ if (a) {
67
+ let n = y(a, S, Date.now());
68
+ n.renewInMs !== null && (r = setTimeout(t, n.renewInMs)), i = setTimeout(() => {
69
+ e && x(a);
70
+ }, n.expiresInMs);
71
+ } else t();
72
+ return () => {
73
+ e = !1, clearTimeout(r), clearTimeout(i);
74
+ };
75
+ }, [
76
+ n,
77
+ c,
78
+ d,
79
+ h,
80
+ S
81
+ ]);
82
+ let w = i(() => {
83
+ m(null), C(0), _((e) => e + 1);
84
+ }, []);
85
+ if (!c) return {
86
+ url: l,
87
+ loading: !1,
88
+ failed: !1,
89
+ retry: w
90
+ };
91
+ let T = p === c;
92
+ return d && d !== b ? {
93
+ url: d.url,
94
+ loading: !1,
95
+ failed: !1,
96
+ retry: w
97
+ } : {
98
+ url: null,
99
+ loading: !T,
100
+ failed: T,
101
+ retry: w
102
+ };
103
+ }
104
+ export { c as GET_FILE_DOWNLOAD_URL, y as renewalSchedule, v as resolveFileDownloadUrl, b as useResolvedImageUrl };
105
+
106
+ //# sourceMappingURL=useResolvedImageUrl.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useResolvedImageUrl.js","names":["GET_FILE_DOWNLOAD_URL","REUSE_WINDOW_MS","FILE_URL_TTL_SECONDS","URL_LIFETIME_MS","RENEW_RETRY_MS","urlCache","inFlight","listeners","notifyListeners","listener","subscribe","cachedUrl","entry","fileId","now","resolveFileDownloadUrl","cached","pending","request","url","client","renewalSchedule","expiresAt","renewAt","renewFailedAt","useResolvedImageUrl","useApolloClient","parseFileRef","value","passthrough","getSnapshot","useCallback","useSyncExternalStore","failedFileId","setFailedFileId","useState","attempt","setAttempt","expiredEntry","setExpiredEntry","setRenewFailedAt","active","resolve","renewTimer","expiryTimer","current","schedule","retry","failed"],"sources":["../../../src/eventfullymanaged/hooks/useResolvedImageUrl.ts"],"sourcesContent":["import { gql } from '@apollo/client';\nimport type { ApolloClient } from '@apollo/client';\nimport { useApolloClient } from '@apollo/client/react';\nimport { useCallback, useEffect, useState, useSyncExternalStore } from 'react';\n\nimport { FILE_URL_TTL_SECONDS, parseFileRef } from '../lib/fileRef';\n\nexport const GET_FILE_DOWNLOAD_URL = gql`\n query EventfullymanagedGetFileDownloadUrl($id: ID!, $expiresIn: Int) {\n getFileDownloadUrl(id: $id, expiresIn: $expiresIn)\n }\n`;\n\ninterface DownloadUrlResponse {\n getFileDownloadUrl?: string | null;\n}\n\n/** Re-mint a URL once it is older than this (well inside its 6h lifetime). */\nconst REUSE_WINDOW_MS = (FILE_URL_TTL_SECONDS * 1000) / 2;\n\n/** How long a minted URL stays valid. */\nconst URL_LIFETIME_MS = FILE_URL_TTL_SECONDS * 1000;\n\n/** Delay between renewal attempts after files-svc fails to mint a fresh URL. */\nconst RENEW_RETRY_MS = 60_000;\n\nexport type CacheEntry = { url: string; mintedAt: number };\n\nconst urlCache = new Map<string, CacheEntry>();\nconst inFlight = new Map<string, Promise<string | null>>();\nconst listeners = new Set<() => void>();\n\nfunction notifyListeners(): void {\n for (const listener of listeners) {\n listener();\n }\n}\n\nfunction subscribe(listener: () => void): () => void {\n listeners.add(listener);\n return () => {\n listeners.delete(listener);\n };\n}\n\n/** Clears the resolver cache. Exported for tests. */\nexport function resetResolvedImageUrlCache(): void {\n urlCache.clear();\n inFlight.clear();\n notifyListeners();\n}\n\nfunction cachedUrl(fileId: string, now: number): string | null {\n const entry = urlCache.get(fileId);\n if (!entry || now - entry.mintedAt > REUSE_WINDOW_MS) {\n return null;\n }\n return entry.url;\n}\n\n/**\n * Mints a short-lived signed download URL for a files-svc file id. Concurrent\n * callers for the same file share one request, and a fresh URL is reused for\n * half its lifetime so lists of thumbnails do not hammer files-svc.\n */\nexport async function resolveFileDownloadUrl(\n client: Pick<ApolloClient, 'query'>,\n fileId: string\n): Promise<string | null> {\n const cached = cachedUrl(fileId, Date.now());\n if (cached) {\n return cached;\n }\n const pending = inFlight.get(fileId);\n if (pending) {\n return pending;\n }\n const request = (async () => {\n try {\n const result = await client.query<DownloadUrlResponse>({\n query: GET_FILE_DOWNLOAD_URL,\n variables: { id: fileId, expiresIn: FILE_URL_TTL_SECONDS },\n fetchPolicy: 'no-cache',\n });\n const url = result.data?.getFileDownloadUrl ?? null;\n if (url) {\n urlCache.set(fileId, { url, mintedAt: Date.now() });\n notifyListeners();\n }\n return url;\n } catch {\n return null;\n } finally {\n inFlight.delete(fileId);\n }\n })();\n inFlight.set(fileId, request);\n return request;\n}\n\n/**\n * When a mounted consumer should renew its cached URL, and when that URL\n * expires. Renewal happens once the URL leaves its reuse window; after a failed\n * renewal it is retried every minute for as long as the URL is still valid.\n * Exported for tests.\n */\nexport function renewalSchedule(\n entry: CacheEntry,\n renewFailedAt: number,\n now: number\n): { renewInMs: number | null; expiresInMs: number } {\n const expiresAt = entry.mintedAt + URL_LIFETIME_MS;\n const renewAt =\n renewFailedAt >= entry.mintedAt ? renewFailedAt + RENEW_RETRY_MS : entry.mintedAt + REUSE_WINDOW_MS + 1;\n return {\n renewInMs: renewAt < expiresAt ? Math.max(0, renewAt - now) : null,\n expiresInMs: Math.max(0, expiresAt - now),\n };\n}\n\nexport interface ResolvedImageUrl {\n /** A URL an `<img>` can load, or null while resolving / when unavailable. */\n url: string | null;\n loading: boolean;\n /** True when files-svc could not mint a URL for the referenced file. */\n failed: boolean;\n /** Asks files-svc again after a failure. A no-op for plain URLs. */\n retry: () => void;\n}\n\n/**\n * Turns a stored image value into something an `<img>` can render: `files:<id>`\n * references are resolved to a signed URL; plain URLs are returned as-is.\n *\n * While a consumer stays mounted its URL is renewed in place once it passes the\n * reuse window, so a page left open for hours (or an image that only starts\n * loading when it scrolls into view) never renders an expired signed URL.\n */\nexport function useResolvedImageUrl(value: string | null | undefined): ResolvedImageUrl {\n const client = useApolloClient();\n const fileId = parseFileRef(value);\n const passthrough = !fileId && value ? value : null;\n\n // The shared cache is an external store: every component showing the same\n // file re-renders as soon as any one of them resolves or renews it. The\n // snapshot is the cache entry itself, which is replaced on every mint.\n const getSnapshot = useCallback(() => (fileId ? (urlCache.get(fileId) ?? null) : null), [fileId]);\n const entry = useSyncExternalStore(subscribe, getSnapshot, getSnapshot);\n const [failedFileId, setFailedFileId] = useState<string | null>(null);\n const [attempt, setAttempt] = useState(0);\n // The cache entry whose URL has passed its lifetime (set by a timer, so the\n // render itself stays pure).\n const [expiredEntry, setExpiredEntry] = useState<CacheEntry | null>(null);\n\n // When the latest renewal attempt failed (epoch ms); drives the retry schedule.\n const [renewFailedAt, setRenewFailedAt] = useState(0);\n\n useEffect(() => {\n if (!fileId) {\n return undefined;\n }\n let active = true;\n const resolve = () => {\n void resolveFileDownloadUrl(client, fileId).then((url) => {\n if (active) {\n setFailedFileId(url ? null : fileId);\n // A successful mint replaces the cache entry, which re-runs this\n // effect with a fresh schedule. A failed renewal (a URL is already\n // cached) schedules a retry; a failed first resolution waits for\n // retry() instead.\n if (url) {\n setRenewFailedAt(0);\n } else if (urlCache.has(fileId)) {\n setRenewFailedAt(Date.now());\n }\n }\n });\n };\n\n let renewTimer: ReturnType<typeof setTimeout> | undefined;\n let expiryTimer: ReturnType<typeof setTimeout> | undefined;\n const current = urlCache.get(fileId);\n if (current) {\n const schedule = renewalSchedule(current, renewFailedAt, Date.now());\n if (schedule.renewInMs !== null) {\n renewTimer = setTimeout(resolve, schedule.renewInMs);\n }\n // Stop serving the URL once it expires, in case every renewal failed.\n expiryTimer = setTimeout(() => {\n if (active) {\n setExpiredEntry(current);\n }\n }, schedule.expiresInMs);\n } else {\n resolve();\n }\n\n return () => {\n active = false;\n clearTimeout(renewTimer);\n clearTimeout(expiryTimer);\n };\n }, [client, fileId, entry, attempt, renewFailedAt]);\n\n const retry = useCallback(() => {\n setFailedFileId(null);\n setRenewFailedAt(0);\n setAttempt((value) => value + 1);\n }, []);\n\n if (!fileId) {\n return { url: passthrough, loading: false, failed: false, retry };\n }\n const failed = failedFileId === fileId;\n if (entry && entry !== expiredEntry) {\n return { url: entry.url, loading: false, failed: false, retry };\n }\n return { url: null, loading: !failed, failed, retry };\n}\n"],"mappings":";;;;;AAOA,IAAaA,IAAwB,CAAG;;;;GAWlCC,IAAmBC,IAAuB,MAAQ,GAGlDC,IAAkBD,IAAuB,KAGzCE,IAAiB,KAIjBC,oBAAW,IAAI,IAAwB,GACvCC,oBAAW,IAAI,IAAoC,GACnDC,oBAAY,IAAI,IAAgB;AAEtC,SAASC,IAAwB;CAC/B,KAAK,IAAMC,KAAYF,GACrB,EAAS;AAEb;AAEA,SAASG,EAAU,GAAkC;CAEnD,OADAH,EAAU,IAAIE,CAAQ,SACT;EACX,EAAU,OAAOA,CAAQ;CAC3B;AACF;AASA,SAASE,EAAU,GAAgB,GAA4B;CAC7D,IAAMC,IAAQP,EAAS,IAAIQ,CAAM;CAIjC,OAHI,CAACD,KAASE,IAAMF,EAAM,WAAWX,IAC5B,OAEFW,EAAM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ualCallParticipant, b: VirtualCallP
44
44
  /** Does `self` initiate the offer toward `other`? */
45
45
  export declare function isInitiator(self: VirtualCallParticipant, other: VirtualCallParticipant, mode: 'MEETING' | 'WEBINAR'): boolean;
46
46
  export declare function useVirtualCall({ sessionId, selfActorId, mode, selfRole, participants, sendSignal, muted, videoEnabled, }: UseVirtualCallArgs): UseVirtualCallResult;
47
- //# sourceMappingURL=useVirtualCall.d.ts.map
@@ -24,4 +24,3 @@
24
24
  */
25
25
  export { EventfullyManagedRoot } from './EventfullyManagedRoot';
26
26
  export type { EventfullyManagedRootProps } from './types';
27
- //# sourceMappingURL=index.d.ts.map
@@ -22,4 +22,3 @@ export declare function confirmedDraftFacts(input: EventDraftFacts): string;
22
22
  export declare function eventDraftPrompt(facts: EventDraftFacts): string;
23
23
  /** Fail closed on the observed free-admission/length failures; organizer review remains mandatory for other claims. */
24
24
  export declare function parseEventDraft(raw: string, facts: EventDraftFacts): EventDraft;
25
- //# sourceMappingURL=eventDraft.d.ts.map
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Stable references to images stored in wspace-files-svc.
3
+ *
4
+ * EventfullyManaged entities keep their images in plain string columns
5
+ * (`FloorPlan.imageUrl`, `Sponsor.logoUrl`, `Speaker.avatarUrl`). Persisting a
6
+ * presigned download URL there does not work: S3 caps presigned GET URLs at
7
+ * 7 days (wspace-files-svc rejects any longer `expiresIn` with
8
+ * INTERNAL_SERVER_ERROR), so a stored link either fails to mint or rots in the
9
+ * database a week later.
10
+ *
11
+ * Uploads therefore persist a `files:<fileId>` reference instead, and the UI
12
+ * resolves it to a short-lived signed URL at render time. Plain `http(s)` URLs
13
+ * (external logos typed into a form, legacy rows) pass through unchanged.
14
+ */
15
+ export declare const FILE_REF_PREFIX = "files:";
16
+ /**
17
+ * Presigned URLs are minted for 6 hours. That stays well below the 7-day S3
18
+ * ceiling, and the resolver cache re-mints a URL long before it expires.
19
+ */
20
+ export declare const FILE_URL_TTL_SECONDS: number;
21
+ /** Builds the stored reference for a files-svc file id. */
22
+ export declare function toFileRef(fileId: string): string;
23
+ /** Returns the file id behind a `files:` reference, or null for anything else. */
24
+ export declare function parseFileRef(value: string | null | undefined): string | null;
@@ -0,0 +1,15 @@
1
+ // src/eventfullymanaged/lib/fileRef.ts
2
+ var e = "files:", t = 21600, n = /^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$/;
3
+ function r(t) {
4
+ let r = t.trim();
5
+ if (!n.test(r)) throw Error("Invalid file id");
6
+ return `${e}${r}`;
7
+ }
8
+ function i(e) {
9
+ if (!e || !e.startsWith("files:")) return null;
10
+ let t = e.slice(6);
11
+ return n.test(t) ? t : null;
12
+ }
13
+ export { e as FILE_REF_PREFIX, t as FILE_URL_TTL_SECONDS, i as parseFileRef, r as toFileRef };
14
+
15
+ //# sourceMappingURL=fileRef.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fileRef.js","names":["FILE_REF_PREFIX","FILE_URL_TTL_SECONDS","FILE_ID_PATTERN","toFileRef","id","fileId","parseFileRef","value"],"sources":["../../../src/eventfullymanaged/lib/fileRef.ts"],"sourcesContent":["/**\n * Stable references to images stored in wspace-files-svc.\n *\n * EventfullyManaged entities keep their images in plain string columns\n * (`FloorPlan.imageUrl`, `Sponsor.logoUrl`, `Speaker.avatarUrl`). Persisting a\n * presigned download URL there does not work: S3 caps presigned GET URLs at\n * 7 days (wspace-files-svc rejects any longer `expiresIn` with\n * INTERNAL_SERVER_ERROR), so a stored link either fails to mint or rots in the\n * database a week later.\n *\n * Uploads therefore persist a `files:<fileId>` reference instead, and the UI\n * resolves it to a short-lived signed URL at render time. Plain `http(s)` URLs\n * (external logos typed into a form, legacy rows) pass through unchanged.\n */\n\nexport const FILE_REF_PREFIX = 'files:';\n\n/**\n * Presigned URLs are minted for 6 hours. That stays well below the 7-day S3\n * ceiling, and the resolver cache re-mints a URL long before it expires.\n */\nexport const FILE_URL_TTL_SECONDS = 6 * 60 * 60;\n\nconst FILE_ID_PATTERN = /^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$/;\n\n/** Builds the stored reference for a files-svc file id. */\nexport function toFileRef(fileId: string): string {\n const id = fileId.trim();\n if (!FILE_ID_PATTERN.test(id)) {\n throw new Error('Invalid file id');\n }\n return `${FILE_REF_PREFIX}${id}`;\n}\n\n/** Returns the file id behind a `files:` reference, or null for anything else. */\nexport function parseFileRef(value: string | null | undefined): string | null {\n if (!value || !value.startsWith(FILE_REF_PREFIX)) {\n return null;\n }\n const id = value.slice(FILE_REF_PREFIX.length);\n return FILE_ID_PATTERN.test(id) ? id : null;\n}\n"],"mappings":";AAeA,IAAaA,IAAkB,UAMlBC,IAAuB,OAE9BC,IAAkB;AAGxB,SAAgBC,EAAU,GAAwB;CAChD,IAAMC,IAAKC,EAAO,KAAK;CACvB,IAAI,CAACH,EAAgB,KAAKE,CAAE,GAC1B,MAAU,MAAM,iBAAiB;CAEnC,OAAO,GAAGJ,IAAkBI;AAC9B;AAGA,SAAgBE,EAAa,GAAiD;CAC5E,IAAI,CAACC,KAAS,CAACA,EAAM,WAAA,QAA0B,GAC7C,OAAO;CAET,IAAMH,IAAKG,EAAM,MAAM,CAAsB;CAC7C,OAAOL,EAAgB,KAAKE,CAAE,IAAIA,IAAK;AACzC"}
@@ -145,4 +145,3 @@ export type ZoneSummary = {
145
145
  export declare function summarizeZones(zones: Zone[]): ZoneSummary;
146
146
  /** Structural equality used to track unsaved editor changes. */
147
147
  export declare function zonesEqual(a: Zone[], b: Zone[]): boolean;
148
- //# sourceMappingURL=floorPlanZones.d.ts.map
@@ -24,4 +24,3 @@ export type DiscountType = 'PERCENT' | 'FIXED' | string;
24
24
  export declare function computeDiscount(subtotal: number, discountType: DiscountType, discountValue: number): number;
25
25
  /** Short human label for a promo discount, e.g. "10% off" or "₹1,000 off". */
26
26
  export declare function describeDiscount(discountType: DiscountType, discountValue: string | number, currency: string): string;
27
- //# sourceMappingURL=format.d.ts.map
@@ -1,5 +1,4 @@
1
1
  import { ErrorLike } from '@apollo/client';
2
-
3
2
  /**
4
3
  * The shared gateway Apollo client runs mutations with `errorPolicy: 'all'`, so a
5
4
  * server-side failure is returned IN-BAND on `result.error` rather than thrown —
@@ -20,4 +19,3 @@ export declare function mutationSucceeded(result: {
20
19
  * `errorPolicy: 'none'`) into a human-readable description for the toast.
21
20
  */
22
21
  export declare function describeError(error: unknown): string | undefined;
23
- //# sourceMappingURL=mutationResult.d.ts.map
@@ -51,4 +51,3 @@ export declare function removePendingScan(clientScanId: string): Promise<void>;
51
51
  export declare function markPendingScanFailed(clientScanId: string, error: string): Promise<void>;
52
52
  /** How many scans are currently queued — powers the kiosk's "pending sync" badge. */
53
53
  export declare function countPendingScans(): Promise<number>;
54
- //# sourceMappingURL=offlineCheckInQueue.d.ts.map
@@ -1,5 +1,4 @@
1
1
  import { toast } from 'sonner';
2
-
3
2
  /**
4
3
  * Module-wide toast API. sonner is a global singleton; the matching <Toaster>
5
4
  * is owned by the HOST app shell (mounted once via AppShellProvider). Every
@@ -19,4 +18,3 @@ export declare const notify: {
19
18
  dismiss(id?: string | number): void;
20
19
  };
21
20
  export { toast };
22
- //# sourceMappingURL=toast.d.ts.map
@@ -1,5 +1,4 @@
1
1
  import { PendingScan } from './offlineCheckInQueue';
2
-
3
2
  type ScanCheckInMutate = (options: {
4
3
  variables: {
5
4
  input: Record<string, unknown>;
@@ -26,4 +25,3 @@ export interface OfflineCheckInSyncState {
26
25
  }
27
26
  export declare function useOfflineCheckInSync(scanCheckIn: ScanCheckInMutate, onSynced?: (scan: PendingScan) => void): OfflineCheckInSyncState;
28
27
  export {};
29
- //# sourceMappingURL=useOfflineCheckInSync.d.ts.map
@@ -1,2 +1 @@
1
- export default function DashboardPage(): import("react").JSX.Element;
2
- //# sourceMappingURL=DashboardPage.d.ts.map
1
+ export default function DashboardPage(): import('react').JSX.Element;
@@ -1,2 +1 @@
1
- export default function EventDetailPage(): import("react").JSX.Element;
2
- //# sourceMappingURL=EventDetailPage.d.ts.map
1
+ export default function EventDetailPage(): import('react').JSX.Element;
@@ -1,2 +1 @@
1
- export default function EventFormPage(): import("react").JSX.Element;
2
- //# sourceMappingURL=EventFormPage.d.ts.map
1
+ export default function EventFormPage(): import('react').JSX.Element;
@@ -1,2 +1 @@
1
- export default function SessionFormPage(): import("react").JSX.Element;
2
- //# sourceMappingURL=SessionFormPage.d.ts.map
1
+ export default function SessionFormPage(): import('react').JSX.Element;
@@ -1,2 +1 @@
1
- export default function TicketTypeFormPage(): import("react").JSX.Element;
2
- //# sourceMappingURL=TicketTypeFormPage.d.ts.map
1
+ export default function TicketTypeFormPage(): import('react').JSX.Element;
@@ -1,2 +1 @@
1
- export default function VirtualSessionPage(): import("react").JSX.Element;
2
- //# sourceMappingURL=VirtualSessionPage.d.ts.map
1
+ export default function VirtualSessionPage(): import('react').JSX.Element;
@@ -36,13 +36,13 @@ function N({ actorId: e, role: t, isLocal: n, stream: r, muted: i, videoEnabled:
36
36
  children: j(e)
37
37
  })
38
38
  }), /* @__PURE__ */ y("div", {
39
- className: "absolute inset-x-0 bottom-0 flex items-center justify-between gap-2 bg-gradient-to-t from-black/60 to-transparent p-2",
39
+ className: "absolute inset-x-0 bottom-0 flex items-center justify-between gap-2 bg-gradient-to-t from-bg-overlay to-transparent p-2",
40
40
  children: [/* @__PURE__ */ y("span", {
41
- className: "truncate text-xs font-medium text-white",
41
+ className: "truncate text-xs font-medium text-action-primary-text",
42
42
  children: [n ? "You" : `Participant ${e.slice(0, 6)}`, t === "HOST" ? " · Host" : t === "PRESENTER" ? " · Presenter" : ""]
43
43
  }), /* @__PURE__ */ y("span", {
44
44
  className: "flex items-center gap-1.5",
45
- children: [i ? /* @__PURE__ */ v(b, { className: "h-3.5 w-3.5 text-white" }) : null, n ? null : /* @__PURE__ */ v("span", {
45
+ children: [i ? /* @__PURE__ */ v(b, { className: "h-3.5 w-3.5 text-action-primary-text" }) : null, n ? null : /* @__PURE__ */ v("span", {
46
46
  className: `h-2 w-2 rounded-full ${M(o)}`,
47
47
  title: o ?? "connecting"
48
48
  })]
@@ -1 +1 @@
1
- {"version":3,"file":"VirtualSessionPage.js","names":["Badge","_Fragment","Badge$1","initials","id","connectionDotClass","state","VideoTile","videoRef","useRef","useEffect","stream","videoEnabled","isLocal","actorId","role","muted","MicOff","connectionState","VirtualSessionPage","eventId","useParams","useEventfullyManaged","selfActorId","currentUser","eventData","eventLoading","useEventQuery","sessionQuery","useVirtualSessionQuery","session","mode","setMode","useState","hostSession","hosting","useHostVirtualSessionMutation","joinSession","joining","useJoinVirtualSessionMutation","leaveSession","leaving","useLeaveVirtualSessionMutation","endSession","ending","useEndVirtualSessionMutation","setMuteMutation","useSetVirtualMuteMutation","setVideoMutation","useSetVirtualVideoMutation","promotePresenter","usePromoteVirtualPresenterMutation","sendSignalMutation","useSendVirtualSignalMutation","selfParticipant","useMemo","p","activeParticipants","localMuted","setLocalMuted","localVideoOff","setLocalVideoOff","sendSignal","useCallback","args","call","useVirtualCall","useEvmSubscription","VIRTUAL_SIGNAL_SUBSCRIPTION_SDL","signal","data","VIRTUAL_PARTICIPANTS_CHANGED_SUBSCRIPTION_SDL","onHost","response","chosenMode","mutationSucceeded","notify","error","describeError","onJoin","onLeave","onEnd","toggleMute","next","toggleVideo","onPromote","participant","isHost","busy","Skeleton","Button","navigate","ArrowLeft","PagePurpose","EmphasisPanel","GradientText","GlassCard","IllustratedEmptyState","Select","value","SelectTrigger","SelectValue","SelectContent","SelectItem","Radio","Fragment","jsx","Mic","VideoOff","Video","PhoneOff","ScreenShare","Users"],"sources":["../../../../src/eventfullymanaged/pages/events/VirtualSessionPage.tsx"],"sourcesContent":["/* eslint-disable react-hooks/set-state-in-effect -- mirrors server-confirmed mute/video state into local toggle state, same established pattern as the fleet's *FormPage.tsx entity-hydration effects */\n/**\n * VirtualSessionPage (BOFF-4318)\n *\n * Real join/host flow for an event's virtual/hybrid session, backed by\n * `wspace-eventfullymanaged-svc`'s bounded browser-native WebRTC core\n * (`VirtualSessionService`). MEETING mode is a full mesh (cap 8);\n * WEBINAR mode is a host/presenter-broadcast star (cap 30) — attendees\n * only peer with the host/presenters, never each other. See\n * `useVirtualCall` for the exact topology and signaling logic.\n *\n * Large-audience broadcast (hundreds+ viewers) needs a real SFU/media\n * server and is explicit deferred follow-up — not built here.\n */\nimport {\n Badge,\n Button,\n EmphasisPanel,\n GlassCard,\n GradientText,\n IllustratedEmptyState,\n PagePurpose,\n Select,\n SelectContent,\n SelectItem,\n SelectTrigger,\n SelectValue,\n Skeleton,\n} from '@burdenoff/fe-libs/ui';\nimport { ArrowLeft, Mic, MicOff, PhoneOff, Radio, ScreenShare, Users, Video, VideoOff } from 'lucide-react';\nimport { useCallback, useEffect, useMemo, useRef, useState } from 'react';\nimport { useParams } from 'react-router';\n\nimport {\n useEndVirtualSessionMutation,\n useEventQuery,\n useHostVirtualSessionMutation,\n useJoinVirtualSessionMutation,\n useLeaveVirtualSessionMutation,\n usePromoteVirtualPresenterMutation,\n useSendVirtualSignalMutation,\n useSetVirtualMuteMutation,\n useSetVirtualVideoMutation,\n useVirtualSessionQuery,\n VIRTUAL_PARTICIPANTS_CHANGED_SUBSCRIPTION_SDL,\n VIRTUAL_SIGNAL_SUBSCRIPTION_SDL,\n type VirtualParticipantGql,\n} from '../../api/eventApi';\nimport { useEventfullyManaged } from '../../context/EventfullyManagedContext';\nimport { useEvmSubscription } from '../../hooks/useEvmSubscription';\nimport { type IncomingVirtualSignal, type VirtualCallRole, useVirtualCall } from '../../hooks/useVirtualCall';\nimport { describeError, mutationSucceeded } from '../../lib/mutationResult';\nimport { notify } from '../../lib/toast';\n\nfunction initials(id: string): string {\n return id.slice(0, 2).toUpperCase();\n}\n\nfunction connectionDotClass(state: RTCPeerConnectionState | undefined): string {\n if (state === 'connected') return 'bg-status-success';\n if (state === 'connecting' || state === 'new') return 'bg-status-warning';\n if (state === 'failed' || state === 'disconnected' || state === 'closed') return 'bg-status-danger';\n return 'bg-text-muted';\n}\n\ninterface VideoTileProps {\n actorId: string;\n role: VirtualCallRole;\n isLocal: boolean;\n stream: MediaStream | null;\n /** Muted/videoEnabled reflect the persisted participant state (server-confirmed for remotes, local toggle for self). */\n muted: boolean;\n videoEnabled: boolean;\n connectionState?: RTCPeerConnectionState;\n}\n\nfunction VideoTile({ actorId, role, isLocal, stream, muted, videoEnabled, connectionState }: VideoTileProps) {\n const videoRef = useRef<HTMLVideoElement>(null);\n useEffect(() => {\n if (videoRef.current) videoRef.current.srcObject = stream;\n }, [stream]);\n\n const showVideo = Boolean(stream) && videoEnabled;\n\n return (\n <div className=\"relative aspect-video overflow-hidden rounded-card border border-border-seam bg-bg-sunken\">\n {showVideo ? (\n <video\n ref={videoRef}\n autoPlay\n playsInline\n muted={isLocal}\n className=\"h-full w-full object-cover\"\n style={isLocal ? { transform: 'scaleX(-1)' } : undefined}\n />\n ) : (\n <div className=\"flex h-full w-full items-center justify-center\">\n <span className=\"flex h-12 w-12 items-center justify-center rounded-full bg-accent-primary/10 text-sm font-semibold text-accent-primary\">\n {initials(actorId)}\n </span>\n </div>\n )}\n <div className=\"absolute inset-x-0 bottom-0 flex items-center justify-between gap-2 bg-gradient-to-t from-black/60 to-transparent p-2\">\n <span className=\"truncate text-xs font-medium text-white\">\n {isLocal ? 'You' : `Participant ${actorId.slice(0, 6)}`}\n {role === 'HOST' ? ' · Host' : role === 'PRESENTER' ? ' · Presenter' : ''}\n </span>\n <span className=\"flex items-center gap-1.5\">\n {muted ? <MicOff className=\"h-3.5 w-3.5 text-white\" /> : null}\n {!isLocal ? (\n <span\n className={`h-2 w-2 rounded-full ${connectionDotClass(connectionState)}`}\n title={connectionState ?? 'connecting'}\n />\n ) : null}\n </span>\n </div>\n </div>\n );\n}\n\nexport default function VirtualSessionPage() {\n const { id: eventId = '' } = useParams<{ id: string }>();\n const { navigate, currentUser } = useEventfullyManaged();\n const selfActorId = currentUser?.id ?? '';\n\n const { data: eventData, loading: eventLoading } = useEventQuery(eventId);\n const sessionQuery = useVirtualSessionQuery({ eventId });\n const session = sessionQuery.data?.virtualSession ?? null;\n\n const [mode, setMode] = useState<'MEETING' | 'WEBINAR'>('MEETING');\n const [hostSession, { loading: hosting }] = useHostVirtualSessionMutation();\n const [joinSession, { loading: joining }] = useJoinVirtualSessionMutation();\n const [leaveSession, { loading: leaving }] = useLeaveVirtualSessionMutation();\n const [endSession, { loading: ending }] = useEndVirtualSessionMutation();\n const [setMuteMutation] = useSetVirtualMuteMutation();\n const [setVideoMutation] = useSetVirtualVideoMutation();\n const [promotePresenter] = usePromoteVirtualPresenterMutation();\n const [sendSignalMutation] = useSendVirtualSignalMutation();\n\n const selfParticipant = useMemo(\n () => session?.participants.find((p) => p.actorId === selfActorId && !p.leftAt) ?? null,\n [session, selfActorId]\n );\n const activeParticipants = useMemo(() => (session?.participants ?? []).filter((p) => !p.leftAt), [session]);\n\n const [localMuted, setLocalMuted] = useState(false);\n const [localVideoOff, setLocalVideoOff] = useState(false);\n useEffect(() => {\n if (selfParticipant) {\n setLocalMuted(selfParticipant.muted);\n setLocalVideoOff(!selfParticipant.videoEnabled);\n }\n }, [selfParticipant?.muted, selfParticipant?.videoEnabled]); // eslint-disable-line react-hooks/exhaustive-deps\n\n const sendSignal = useCallback(\n async (args: { toActorId: string; signalType: 'OFFER' | 'ANSWER' | 'ICE_CANDIDATE'; payload: unknown }) => {\n if (!session) return;\n await sendSignalMutation({\n variables: {\n sessionId: session.id,\n toActorId: args.toActorId,\n signalType: args.signalType,\n payload: args.payload,\n },\n });\n },\n [session, sendSignalMutation]\n );\n\n const call = useVirtualCall({\n sessionId: selfParticipant ? session?.id : null,\n selfActorId,\n mode: session?.mode ?? 'MEETING',\n selfRole: selfParticipant?.role ?? null,\n participants: activeParticipants.map((p) => ({ actorId: p.actorId, role: p.role })),\n sendSignal,\n muted: localMuted,\n videoEnabled: !localVideoOff,\n });\n\n useEvmSubscription<{ eventfullyManagedVirtualSignal: IncomingVirtualSignal }>({\n query: VIRTUAL_SIGNAL_SUBSCRIPTION_SDL,\n variables: { sessionId: session?.id },\n operationName: 'EventfullymanagedVirtualSignal',\n enabled: Boolean(selfParticipant && session),\n onData: (data) => {\n const signal = data.eventfullyManagedVirtualSignal;\n if (signal) call.handleIncomingSignal(signal);\n },\n // No real polling substitute exists for signaling — a missed signal is\n // simply a missed negotiation step. The fallback here just retries the\n // subscription's own reconnect path via re-render, kept as a no-op.\n pollFn: () => {},\n pollIntervalMs: 15_000,\n });\n\n useEvmSubscription<{ eventfullyManagedVirtualParticipantsChanged: unknown }>({\n query: VIRTUAL_PARTICIPANTS_CHANGED_SUBSCRIPTION_SDL,\n variables: { sessionId: session?.id },\n operationName: 'EventfullymanagedVirtualParticipantsChanged',\n enabled: Boolean(session),\n onData: () => {\n void sessionQuery.refetch();\n },\n pollFn: () => {\n void sessionQuery.refetch();\n },\n pollIntervalMs: 5_000,\n });\n\n const onHost = async (chosenMode: 'MEETING' | 'WEBINAR') => {\n try {\n const response = await hostSession({ variables: { eventId, mode: chosenMode } });\n if (!mutationSucceeded(response, response.data?.hostVirtualSession?.id, 'Could not start session')) {\n return;\n }\n notify.success('Session started', chosenMode === 'WEBINAR' ? 'Hosting as a webinar.' : 'Hosting a meeting.');\n await sessionQuery.refetch();\n } catch (error) {\n notify.error('Could not start session', describeError(error));\n }\n };\n\n const onJoin = async () => {\n try {\n const response = await joinSession({ variables: { eventId } });\n if (!mutationSucceeded(response, response.data?.joinVirtualSession?.id, 'Could not join session')) {\n return;\n }\n await sessionQuery.refetch();\n } catch (error) {\n notify.error('Could not join session', describeError(error));\n }\n };\n\n const onLeave = async () => {\n if (!session) return;\n try {\n await leaveSession({ variables: { sessionId: session.id } });\n notify.success('Left session', 'You are no longer in the virtual session.');\n await sessionQuery.refetch();\n } catch (error) {\n notify.error('Could not leave session', describeError(error));\n }\n };\n\n const onEnd = async () => {\n if (!session) return;\n try {\n await endSession({ variables: { sessionId: session.id } });\n notify.success('Session ended', 'The virtual session has been ended for everyone.');\n await sessionQuery.refetch();\n } catch (error) {\n notify.error('Could not end session', describeError(error));\n }\n };\n\n const toggleMute = async () => {\n if (!session) return;\n const next = !localMuted;\n setLocalMuted(next);\n try {\n await setMuteMutation({ variables: { sessionId: session.id, muted: next } });\n } catch (error) {\n setLocalMuted(!next);\n notify.error('Could not update mute state', describeError(error));\n }\n };\n\n const toggleVideo = async () => {\n if (!session) return;\n const next = !localVideoOff;\n setLocalVideoOff(next);\n try {\n await setVideoMutation({ variables: { sessionId: session.id, videoEnabled: !next } });\n } catch (error) {\n setLocalVideoOff(!next);\n notify.error('Could not update camera state', describeError(error));\n }\n };\n\n const onPromote = async (participant: VirtualParticipantGql) => {\n if (!session) return;\n try {\n await promotePresenter({ variables: { sessionId: session.id, actorId: participant.actorId } });\n notify.success('Promoted to presenter', `Participant ${participant.actorId.slice(0, 6)} can now broadcast.`);\n await sessionQuery.refetch();\n } catch (error) {\n notify.error('Could not promote participant', describeError(error));\n }\n };\n\n const isHost = selfParticipant?.role === 'HOST';\n const busy = hosting || joining || leaving || ending;\n\n if (eventLoading || sessionQuery.loading) {\n return (\n <div className=\"space-y-4 p-6\">\n <Skeleton className=\"h-8 w-64\" />\n <Skeleton className=\"h-64 w-full\" />\n </div>\n );\n }\n\n return (\n <div className=\"space-y-6 p-6\">\n <Button type=\"button\" variant=\"ghost\" size=\"sm\" onClick={() => navigate(`/events/${eventId}`)}>\n <ArrowLeft className=\"h-4 w-4\" />\n Back to Event\n </Button>\n\n <PagePurpose>\n A virtual session is a real, browser-native WebRTC room for this event — no external meeting link. Hosts start a\n Meeting (small mesh, up to 8 people all connected directly) or a Webinar (up to 30 attendees who see and hear\n only the host/presenters). Signaling is relayed through EventfullyManaged; media never touches our servers.\n </PagePurpose>\n\n <EmphasisPanel className=\"flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between\">\n <div>\n <h1 className=\"text-2xl font-bold text-text-primary\">\n <GradientText>Virtual Session</GradientText>\n </h1>\n <p className=\"mt-1 text-sm text-text-secondary\">{eventData?.event?.name ?? 'Event'}</p>\n </div>\n {session ? (\n <Badge variant={session.status === 'ACTIVE' ? 'success' : 'secondary'} className=\"uppercase\">\n {session.mode} · {session.status}\n </Badge>\n ) : null}\n </EmphasisPanel>\n\n {!session || session.status !== 'ACTIVE' ? (\n <GlassCard treatment=\"plain\" className=\"border-border-seam p-8\">\n <IllustratedEmptyState\n illustration=\"empty-data\"\n title=\"No live virtual session\"\n description=\"Start a session to host attendees over WebRTC, or join once someone else has started one.\"\n className=\"py-6\"\n />\n <div className=\"mt-4 flex flex-wrap items-center justify-center gap-2\">\n <Select value={mode} onValueChange={(value) => setMode(value as 'MEETING' | 'WEBINAR')}>\n <SelectTrigger aria-label=\"Session mode\" className=\"w-48\">\n <SelectValue />\n </SelectTrigger>\n <SelectContent>\n <SelectItem value=\"MEETING\">Meeting (up to 8)</SelectItem>\n <SelectItem value=\"WEBINAR\">Webinar (up to 30)</SelectItem>\n </SelectContent>\n </Select>\n <Button type=\"button\" onClick={() => onHost(mode)} disabled={busy}>\n <Radio className=\"h-4 w-4\" />\n {hosting ? 'Starting…' : 'Start session'}\n </Button>\n </div>\n </GlassCard>\n ) : !selfParticipant ? (\n <GlassCard treatment=\"plain\" className=\"border-border-seam p-8\">\n <IllustratedEmptyState\n illustration=\"empty-people\"\n title=\"A session is live\"\n description={`${session.participantCount} of ${session.maxParticipants} seats in use. Join to turn on your camera and mic.`}\n className=\"py-6\"\n />\n <div className=\"mt-4 flex justify-center\">\n <Button type=\"button\" onClick={onJoin} disabled={busy}>\n <Video className=\"h-4 w-4\" />\n {joining ? 'Joining…' : 'Join session'}\n </Button>\n </div>\n </GlassCard>\n ) : (\n <>\n {call.mediaError ? (\n <GlassCard\n treatment=\"plain\"\n className=\"border-status-danger/40 bg-status-danger/5 p-4 text-sm text-status-danger\"\n >\n Camera/microphone unavailable: {call.mediaError}. You are still connected to the session and can see other\n participants, but others will not see or hear you.\n </GlassCard>\n ) : null}\n\n <div className=\"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3\">\n <VideoTile\n actorId={selfActorId}\n role={selfParticipant.role}\n isLocal\n stream={call.localStream}\n muted={localMuted}\n videoEnabled={!localVideoOff}\n />\n {activeParticipants\n .filter((p) => p.actorId !== selfActorId)\n .map((participant) => (\n <VideoTile\n key={participant.actorId}\n actorId={participant.actorId}\n role={participant.role}\n isLocal={false}\n stream={call.remoteStreams.get(participant.actorId) ?? null}\n muted={participant.muted}\n videoEnabled={participant.videoEnabled}\n connectionState={call.connectionStates.get(participant.actorId)}\n />\n ))}\n </div>\n\n <GlassCard\n treatment=\"plain\"\n className=\"flex flex-wrap items-center justify-center gap-2 border-border-seam p-4\"\n >\n <Button type=\"button\" variant={localMuted ? 'outline' : 'secondary'} onClick={toggleMute}>\n {localMuted ? <MicOff className=\"h-4 w-4\" /> : <Mic className=\"h-4 w-4\" />}\n {localMuted ? 'Unmute' : 'Mute'}\n </Button>\n <Button type=\"button\" variant={localVideoOff ? 'outline' : 'secondary'} onClick={toggleVideo}>\n {localVideoOff ? <VideoOff className=\"h-4 w-4\" /> : <Video className=\"h-4 w-4\" />}\n {localVideoOff ? 'Start Video' : 'Stop Video'}\n </Button>\n <Button type=\"button\" variant=\"outline\" onClick={onLeave} disabled={busy}>\n <PhoneOff className=\"h-4 w-4\" />\n {leaving ? 'Leaving…' : 'Leave'}\n </Button>\n {isHost ? (\n <Button type=\"button\" variant=\"destructive\" onClick={onEnd} disabled={busy}>\n <ScreenShare className=\"h-4 w-4\" />\n {ending ? 'Ending…' : 'End for everyone'}\n </Button>\n ) : null}\n </GlassCard>\n\n <GlassCard treatment=\"plain\" className=\"border-border-seam p-4\">\n <h2 className=\"flex items-center gap-2 text-sm font-semibold text-text-primary\">\n <Users className=\"h-4 w-4 text-accent-primary\" />\n Participants ({activeParticipants.length}/{session.maxParticipants})\n </h2>\n <div className=\"mt-3 space-y-2\">\n {activeParticipants.map((participant) => (\n <div key={participant.id} className=\"flex items-center justify-between gap-2 text-sm\">\n <span className=\"flex items-center gap-2 text-text-secondary\">\n <span\n className={`h-2 w-2 rounded-full ${\n participant.actorId === selfActorId\n ? 'bg-status-success'\n : connectionDotClass(call.connectionStates.get(participant.actorId))\n }`}\n />\n {participant.actorId === selfActorId ? 'You' : `Participant ${participant.actorId.slice(0, 6)}`}\n <Badge variant=\"secondary\" className=\"uppercase\">\n {participant.role}\n </Badge>\n </span>\n {isHost && session.mode === 'WEBINAR' && participant.role === 'ATTENDEE' ? (\n <Button type=\"button\" variant=\"ghost\" size=\"sm\" onClick={() => onPromote(participant)}>\n Promote to presenter\n </Button>\n ) : null}\n </div>\n ))}\n </div>\n </GlassCard>\n </>\n )}\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;AAsDA,SAASG,EAAS,GAAoB;CACpC,OAAOC,EAAG,MAAM,GAAG,CAAC,CAAC,CAAC,YAAY;AACpC;AAEA,SAASC,EAAmB,GAAmD;CAI7E,OAHIC,MAAU,cAAoB,sBAC9BA,MAAU,gBAAgBA,MAAU,QAAc,sBAClDA,MAAU,YAAYA,MAAU,kBAAkBA,MAAU,WAAiB,qBAC1E;AACT;AAaA,SAASC,EAAU,EAAE,YAAS,SAAM,YAAS,WAAQ,UAAO,iBAAc,sBAAmC;CAC3G,IAAMC,IAAWC,EAAyB,IAAI;CAO9C,OANAC,QAAgB;EACd,AAAIF,EAAS,YAAS,EAAS,QAAQ,YAAYG;CACrD,GAAG,CAACA,CAAM,CAAC,GAKT,kBAAC,OAAD;EAAK,WAAU;EAAf,UAAA,CAHwBA,KAAWC,IAK/B,kBAAC,SAAD;GACE,KAAKJ;GACL,UAAA;GACA,aAAA;GACA,OAAOK;GACP,WAAU;GACV,OAAOA,IAAU,EAAE,WAAW,aAAa,IAAI,KAAA;EAChD,CAAA,IAED,kBAAC,OAAD;GAAK,WAAU;GACb,UAAA,kBAAC,QAAD;IAAM,WAAU;IACb,UAAAV,EAASW,CAAO;GACb,CAAA;EACH,CAAA,GAEP,kBAAC,OAAD;GAAK,WAAU;GAAf,UAAA,CACE,kBAAC,QAAD;IAAM,WAAU;IA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AAQ,gBAAgB;KACvE,WAAU;IACX,CAAA,GACD,kBAAC,OAAD;KAAK,WAAU;KACb,UAAA,kBAAC4D,GAAD;MAAQ,MAAK;MAAS,SAASX;MAAQ,UAAUS;MAAjD,UAAA,CACE,kBAACqB,GAAD,EAAO,WAAU,UAAW,CAAA,GAC3BvE,IAAU,aAAa,cAClB;;IACL,CAAA,CACI;GAEX,CAAA;EA4FC;;AAET"}
1
+ {"version":3,"file":"VirtualSessionPage.js","names":["Badge","_Fragment","Badge$1","initials","id","connectionDotClass","state","VideoTile","videoRef","useRef","useEffect","stream","videoEnabled","isLocal","actorId","role","muted","MicOff","connectionState","VirtualSessionPage","eventId","useParams","useEventfullyManaged","selfActorId","currentUser","eventData","eventLoading","useEventQuery","sessionQuery","useVirtualSessionQuery","session","mode","setMode","useState","hostSession","hosting","useHostVirtualSessionMutation","joinSession","joining","useJoinVirtualSessionMutation","leaveSession","leaving","useLeaveVirtualSessionMutation","endSession","ending","useEndVirtualSessionMutation","setMuteMutation","useSetVirtualMuteMutation","setVideoMutation","useSetVirtualVideoMutation","promotePresenter","usePromoteVirtualPresenterMutation","sendSignalMutation","useSendVirtualSignalMutation","selfParticipant","useMemo","p","activeParticipants","localMuted","setLocalMuted","localVideoOff","setLocalVideoOff","sendSignal","useCallback","args","call","useVirtualCall","useEvmSubscription","VIRTUAL_SIGNAL_SUBSCRIPTION_SDL","signal","data","VIRTUAL_PARTICIPANTS_CHANGED_SUBSCRIPTION_SDL","onHost","response","chosenMode","mutationSucceeded","notify","error","describeError","onJoin","onLeave","onEnd","toggleMute","next","toggleVideo","onPromote","participant","isHost","busy","Skeleton","Button","navigate","ArrowLeft","PagePurpose","EmphasisPanel","GradientText","GlassCard","IllustratedEmptyState","Select","value","SelectTrigger","SelectValue","SelectContent","SelectItem","Radio","Fragment","jsx","Mic","VideoOff","Video","PhoneOff","ScreenShare","Users"],"sources":["../../../../src/eventfullymanaged/pages/events/VirtualSessionPage.tsx"],"sourcesContent":["/* eslint-disable react-hooks/set-state-in-effect -- mirrors server-confirmed mute/video state into local toggle state, same established pattern as the fleet's *FormPage.tsx entity-hydration effects */\n/**\n * VirtualSessionPage (BOFF-4318)\n *\n * Real join/host flow for an event's virtual/hybrid session, backed by\n * `wspace-eventfullymanaged-svc`'s bounded browser-native WebRTC core\n * (`VirtualSessionService`). MEETING mode is a full mesh (cap 8);\n * WEBINAR mode is a host/presenter-broadcast star (cap 30) — attendees\n * only peer with the host/presenters, never each other. See\n * `useVirtualCall` for the exact topology and signaling logic.\n *\n * Large-audience broadcast (hundreds+ viewers) needs a real SFU/media\n * server and is explicit deferred follow-up — not built here.\n */\nimport {\n Badge,\n Button,\n EmphasisPanel,\n GlassCard,\n GradientText,\n IllustratedEmptyState,\n PagePurpose,\n Select,\n SelectContent,\n SelectItem,\n SelectTrigger,\n SelectValue,\n Skeleton,\n} from '@burdenoff/fe-libs/ui';\nimport { ArrowLeft, Mic, MicOff, PhoneOff, Radio, ScreenShare, Users, Video, VideoOff } from 'lucide-react';\nimport { useCallback, useEffect, useMemo, useRef, useState } from 'react';\nimport { useParams } from 'react-router';\n\nimport {\n useEndVirtualSessionMutation,\n useEventQuery,\n useHostVirtualSessionMutation,\n useJoinVirtualSessionMutation,\n useLeaveVirtualSessionMutation,\n usePromoteVirtualPresenterMutation,\n useSendVirtualSignalMutation,\n useSetVirtualMuteMutation,\n useSetVirtualVideoMutation,\n useVirtualSessionQuery,\n VIRTUAL_PARTICIPANTS_CHANGED_SUBSCRIPTION_SDL,\n VIRTUAL_SIGNAL_SUBSCRIPTION_SDL,\n type VirtualParticipantGql,\n} from '../../api/eventApi';\nimport { useEventfullyManaged } from '../../context/EventfullyManagedContext';\nimport { useEvmSubscription } from '../../hooks/useEvmSubscription';\nimport { type IncomingVirtualSignal, type VirtualCallRole, useVirtualCall } from '../../hooks/useVirtualCall';\nimport { describeError, mutationSucceeded } from '../../lib/mutationResult';\nimport { notify } from '../../lib/toast';\n\nfunction initials(id: string): string {\n return id.slice(0, 2).toUpperCase();\n}\n\nfunction connectionDotClass(state: RTCPeerConnectionState | undefined): string {\n if (state === 'connected') return 'bg-status-success';\n if (state === 'connecting' || state === 'new') return 'bg-status-warning';\n if (state === 'failed' || state === 'disconnected' || state === 'closed') return 'bg-status-danger';\n return 'bg-text-muted';\n}\n\ninterface VideoTileProps {\n actorId: string;\n role: VirtualCallRole;\n isLocal: boolean;\n stream: MediaStream | null;\n /** Muted/videoEnabled reflect the persisted participant state (server-confirmed for remotes, local toggle for self). */\n muted: boolean;\n videoEnabled: boolean;\n connectionState?: RTCPeerConnectionState;\n}\n\nfunction VideoTile({ actorId, role, isLocal, stream, muted, videoEnabled, connectionState }: VideoTileProps) {\n const videoRef = useRef<HTMLVideoElement>(null);\n useEffect(() => {\n if (videoRef.current) videoRef.current.srcObject = stream;\n }, [stream]);\n\n const showVideo = Boolean(stream) && videoEnabled;\n\n return (\n <div className=\"relative aspect-video overflow-hidden rounded-card border border-border-seam bg-bg-sunken\">\n {showVideo ? (\n <video\n ref={videoRef}\n autoPlay\n playsInline\n muted={isLocal}\n className=\"h-full w-full object-cover\"\n style={isLocal ? { transform: 'scaleX(-1)' } : undefined}\n />\n ) : (\n <div className=\"flex h-full w-full items-center justify-center\">\n <span className=\"flex h-12 w-12 items-center justify-center rounded-full bg-accent-primary/10 text-sm font-semibold text-accent-primary\">\n {initials(actorId)}\n </span>\n </div>\n )}\n <div className=\"absolute inset-x-0 bottom-0 flex items-center justify-between gap-2 bg-gradient-to-t from-bg-overlay to-transparent p-2\">\n <span className=\"truncate text-xs font-medium text-action-primary-text\">\n {isLocal ? 'You' : `Participant ${actorId.slice(0, 6)}`}\n {role === 'HOST' ? ' · Host' : role === 'PRESENTER' ? ' · Presenter' : ''}\n </span>\n <span className=\"flex items-center gap-1.5\">\n {muted ? <MicOff className=\"h-3.5 w-3.5 text-action-primary-text\" /> : null}\n {!isLocal ? (\n <span\n className={`h-2 w-2 rounded-full ${connectionDotClass(connectionState)}`}\n title={connectionState ?? 'connecting'}\n />\n ) : null}\n </span>\n </div>\n </div>\n );\n}\n\nexport default function VirtualSessionPage() {\n const { id: eventId = '' } = useParams<{ id: string }>();\n const { navigate, currentUser } = useEventfullyManaged();\n const selfActorId = currentUser?.id ?? '';\n\n const { data: eventData, loading: eventLoading } = useEventQuery(eventId);\n const sessionQuery = useVirtualSessionQuery({ eventId });\n const session = sessionQuery.data?.virtualSession ?? null;\n\n const [mode, setMode] = useState<'MEETING' | 'WEBINAR'>('MEETING');\n const [hostSession, { loading: hosting }] = useHostVirtualSessionMutation();\n const [joinSession, { loading: joining }] = useJoinVirtualSessionMutation();\n const [leaveSession, { loading: leaving }] = useLeaveVirtualSessionMutation();\n const [endSession, { loading: ending }] = useEndVirtualSessionMutation();\n const [setMuteMutation] = useSetVirtualMuteMutation();\n const [setVideoMutation] = useSetVirtualVideoMutation();\n const [promotePresenter] = usePromoteVirtualPresenterMutation();\n const [sendSignalMutation] = useSendVirtualSignalMutation();\n\n const selfParticipant = useMemo(\n () => session?.participants.find((p) => p.actorId === selfActorId && !p.leftAt) ?? null,\n [session, selfActorId]\n );\n const activeParticipants = useMemo(() => (session?.participants ?? []).filter((p) => !p.leftAt), [session]);\n\n const [localMuted, setLocalMuted] = useState(false);\n const [localVideoOff, setLocalVideoOff] = useState(false);\n useEffect(() => {\n if (selfParticipant) {\n setLocalMuted(selfParticipant.muted);\n setLocalVideoOff(!selfParticipant.videoEnabled);\n }\n }, [selfParticipant?.muted, selfParticipant?.videoEnabled]); // eslint-disable-line react-hooks/exhaustive-deps\n\n const sendSignal = useCallback(\n async (args: { toActorId: string; signalType: 'OFFER' | 'ANSWER' | 'ICE_CANDIDATE'; payload: unknown }) => {\n if (!session) return;\n await sendSignalMutation({\n variables: {\n sessionId: session.id,\n toActorId: args.toActorId,\n signalType: args.signalType,\n payload: args.payload,\n },\n });\n },\n [session, sendSignalMutation]\n );\n\n const call = useVirtualCall({\n sessionId: selfParticipant ? session?.id : null,\n selfActorId,\n mode: session?.mode ?? 'MEETING',\n selfRole: selfParticipant?.role ?? null,\n participants: activeParticipants.map((p) => ({ actorId: p.actorId, role: p.role })),\n sendSignal,\n muted: localMuted,\n videoEnabled: !localVideoOff,\n });\n\n useEvmSubscription<{ eventfullyManagedVirtualSignal: IncomingVirtualSignal }>({\n query: VIRTUAL_SIGNAL_SUBSCRIPTION_SDL,\n variables: { sessionId: session?.id },\n operationName: 'EventfullymanagedVirtualSignal',\n enabled: Boolean(selfParticipant && session),\n onData: (data) => {\n const signal = data.eventfullyManagedVirtualSignal;\n if (signal) call.handleIncomingSignal(signal);\n },\n // No real polling substitute exists for signaling — a missed signal is\n // simply a missed negotiation step. The fallback here just retries the\n // subscription's own reconnect path via re-render, kept as a no-op.\n pollFn: () => {},\n pollIntervalMs: 15_000,\n });\n\n useEvmSubscription<{ eventfullyManagedVirtualParticipantsChanged: unknown }>({\n query: VIRTUAL_PARTICIPANTS_CHANGED_SUBSCRIPTION_SDL,\n variables: { sessionId: session?.id },\n operationName: 'EventfullymanagedVirtualParticipantsChanged',\n enabled: Boolean(session),\n onData: () => {\n void sessionQuery.refetch();\n },\n pollFn: () => {\n void sessionQuery.refetch();\n },\n pollIntervalMs: 5_000,\n });\n\n const onHost = async (chosenMode: 'MEETING' | 'WEBINAR') => {\n try {\n const response = await hostSession({ variables: { eventId, mode: chosenMode } });\n if (!mutationSucceeded(response, response.data?.hostVirtualSession?.id, 'Could not start session')) {\n return;\n }\n notify.success('Session started', chosenMode === 'WEBINAR' ? 'Hosting as a webinar.' : 'Hosting a meeting.');\n await sessionQuery.refetch();\n } catch (error) {\n notify.error('Could not start session', describeError(error));\n }\n };\n\n const onJoin = async () => {\n try {\n const response = await joinSession({ variables: { eventId } });\n if (!mutationSucceeded(response, response.data?.joinVirtualSession?.id, 'Could not join session')) {\n return;\n }\n await sessionQuery.refetch();\n } catch (error) {\n notify.error('Could not join session', describeError(error));\n }\n };\n\n const onLeave = async () => {\n if (!session) return;\n try {\n await leaveSession({ variables: { sessionId: session.id } });\n notify.success('Left session', 'You are no longer in the virtual session.');\n await sessionQuery.refetch();\n } catch (error) {\n notify.error('Could not leave session', describeError(error));\n }\n };\n\n const onEnd = async () => {\n if (!session) return;\n try {\n await endSession({ variables: { sessionId: session.id } });\n notify.success('Session ended', 'The virtual session has been ended for everyone.');\n await sessionQuery.refetch();\n } catch (error) {\n notify.error('Could not end session', describeError(error));\n }\n };\n\n const toggleMute = async () => {\n if (!session) return;\n const next = !localMuted;\n setLocalMuted(next);\n try {\n await setMuteMutation({ variables: { sessionId: session.id, muted: next } });\n } catch (error) {\n setLocalMuted(!next);\n notify.error('Could not update mute state', describeError(error));\n }\n };\n\n const toggleVideo = async () => {\n if (!session) return;\n const next = !localVideoOff;\n setLocalVideoOff(next);\n try {\n await setVideoMutation({ variables: { sessionId: session.id, videoEnabled: !next } });\n } catch (error) {\n setLocalVideoOff(!next);\n notify.error('Could not update camera state', describeError(error));\n }\n };\n\n const onPromote = async (participant: VirtualParticipantGql) => {\n if (!session) return;\n try {\n await promotePresenter({ variables: { sessionId: session.id, actorId: participant.actorId } });\n notify.success('Promoted to presenter', `Participant ${participant.actorId.slice(0, 6)} can now broadcast.`);\n await sessionQuery.refetch();\n } catch (error) {\n notify.error('Could not promote participant', describeError(error));\n }\n };\n\n const isHost = selfParticipant?.role === 'HOST';\n const busy = hosting || joining || leaving || ending;\n\n if (eventLoading || sessionQuery.loading) {\n return (\n <div className=\"space-y-4 p-6\">\n <Skeleton className=\"h-8 w-64\" />\n <Skeleton className=\"h-64 w-full\" />\n </div>\n );\n }\n\n return (\n <div className=\"space-y-6 p-6\">\n <Button type=\"button\" variant=\"ghost\" size=\"sm\" onClick={() => navigate(`/events/${eventId}`)}>\n <ArrowLeft className=\"h-4 w-4\" />\n Back to Event\n </Button>\n\n <PagePurpose>\n A virtual session is a real, browser-native WebRTC room for this event — no external meeting link. Hosts start a\n Meeting (small mesh, up to 8 people all connected directly) or a Webinar (up to 30 attendees who see and hear\n only the host/presenters). Signaling is relayed through EventfullyManaged; media never touches our servers.\n </PagePurpose>\n\n <EmphasisPanel className=\"flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between\">\n <div>\n <h1 className=\"text-2xl font-bold text-text-primary\">\n <GradientText>Virtual Session</GradientText>\n </h1>\n <p className=\"mt-1 text-sm text-text-secondary\">{eventData?.event?.name ?? 'Event'}</p>\n </div>\n {session ? (\n <Badge variant={session.status === 'ACTIVE' ? 'success' : 'secondary'} className=\"uppercase\">\n {session.mode} · {session.status}\n </Badge>\n ) : null}\n </EmphasisPanel>\n\n {!session || session.status !== 'ACTIVE' ? (\n <GlassCard treatment=\"plain\" className=\"border-border-seam p-8\">\n <IllustratedEmptyState\n illustration=\"empty-data\"\n title=\"No live virtual session\"\n description=\"Start a session to host attendees over WebRTC, or join once someone else has started one.\"\n className=\"py-6\"\n />\n <div className=\"mt-4 flex flex-wrap items-center justify-center gap-2\">\n <Select value={mode} onValueChange={(value) => setMode(value as 'MEETING' | 'WEBINAR')}>\n <SelectTrigger aria-label=\"Session mode\" className=\"w-48\">\n <SelectValue />\n </SelectTrigger>\n <SelectContent>\n <SelectItem value=\"MEETING\">Meeting (up to 8)</SelectItem>\n <SelectItem value=\"WEBINAR\">Webinar (up to 30)</SelectItem>\n </SelectContent>\n </Select>\n <Button type=\"button\" onClick={() => onHost(mode)} disabled={busy}>\n <Radio className=\"h-4 w-4\" />\n {hosting ? 'Starting…' : 'Start session'}\n </Button>\n </div>\n </GlassCard>\n ) : !selfParticipant ? (\n <GlassCard treatment=\"plain\" className=\"border-border-seam p-8\">\n <IllustratedEmptyState\n illustration=\"empty-people\"\n title=\"A session is live\"\n description={`${session.participantCount} of ${session.maxParticipants} seats in use. Join to turn on your camera and mic.`}\n className=\"py-6\"\n />\n <div className=\"mt-4 flex justify-center\">\n <Button type=\"button\" onClick={onJoin} disabled={busy}>\n <Video className=\"h-4 w-4\" />\n {joining ? 'Joining…' : 'Join session'}\n </Button>\n </div>\n </GlassCard>\n ) : (\n <>\n {call.mediaError ? (\n <GlassCard\n treatment=\"plain\"\n className=\"border-status-danger/40 bg-status-danger/5 p-4 text-sm text-status-danger\"\n >\n Camera/microphone unavailable: {call.mediaError}. You are still connected to the session and can see other\n participants, but others will not see or hear you.\n </GlassCard>\n ) : null}\n\n <div className=\"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3\">\n <VideoTile\n actorId={selfActorId}\n role={selfParticipant.role}\n isLocal\n stream={call.localStream}\n muted={localMuted}\n videoEnabled={!localVideoOff}\n />\n {activeParticipants\n .filter((p) => p.actorId !== selfActorId)\n .map((participant) => (\n <VideoTile\n key={participant.actorId}\n actorId={participant.actorId}\n role={participant.role}\n isLocal={false}\n stream={call.remoteStreams.get(participant.actorId) ?? null}\n muted={participant.muted}\n videoEnabled={participant.videoEnabled}\n connectionState={call.connectionStates.get(participant.actorId)}\n />\n ))}\n </div>\n\n <GlassCard\n treatment=\"plain\"\n className=\"flex flex-wrap items-center justify-center gap-2 border-border-seam p-4\"\n >\n <Button type=\"button\" variant={localMuted ? 'outline' : 'secondary'} onClick={toggleMute}>\n {localMuted ? <MicOff className=\"h-4 w-4\" /> : <Mic className=\"h-4 w-4\" />}\n {localMuted ? 'Unmute' : 'Mute'}\n </Button>\n <Button type=\"button\" variant={localVideoOff ? 'outline' : 'secondary'} onClick={toggleVideo}>\n {localVideoOff ? <VideoOff className=\"h-4 w-4\" /> : <Video className=\"h-4 w-4\" />}\n {localVideoOff ? 'Start Video' : 'Stop Video'}\n </Button>\n <Button type=\"button\" variant=\"outline\" onClick={onLeave} disabled={busy}>\n <PhoneOff className=\"h-4 w-4\" />\n {leaving ? 'Leaving…' : 'Leave'}\n </Button>\n {isHost ? (\n <Button type=\"button\" variant=\"destructive\" onClick={onEnd} disabled={busy}>\n <ScreenShare className=\"h-4 w-4\" />\n {ending ? 'Ending…' : 'End for everyone'}\n </Button>\n ) : null}\n </GlassCard>\n\n <GlassCard treatment=\"plain\" className=\"border-border-seam p-4\">\n <h2 className=\"flex items-center gap-2 text-sm font-semibold text-text-primary\">\n <Users className=\"h-4 w-4 text-accent-primary\" />\n Participants ({activeParticipants.length}/{session.maxParticipants})\n </h2>\n <div className=\"mt-3 space-y-2\">\n {activeParticipants.map((participant) => (\n <div key={participant.id} className=\"flex items-center justify-between gap-2 text-sm\">\n <span className=\"flex items-center gap-2 text-text-secondary\">\n <span\n className={`h-2 w-2 rounded-full ${\n participant.actorId === selfActorId\n ? 'bg-status-success'\n : connectionDotClass(call.connectionStates.get(participant.actorId))\n }`}\n />\n {participant.actorId === selfActorId ? 'You' : `Participant ${participant.actorId.slice(0, 6)}`}\n <Badge variant=\"secondary\" className=\"uppercase\">\n {participant.role}\n </Badge>\n </span>\n {isHost && session.mode === 'WEBINAR' && participant.role === 'ATTENDEE' ? (\n <Button type=\"button\" variant=\"ghost\" size=\"sm\" onClick={() => onPromote(participant)}>\n Promote to presenter\n </Button>\n ) : null}\n </div>\n ))}\n </div>\n </GlassCard>\n </>\n )}\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;AAsDA,SAASG,EAAS,GAAoB;CACpC,OAAOC,EAAG,MAAM,GAAG,CAAC,CAAC,CAAC,YAAY;AACpC;AAEA,SAASC,EAAmB,GAAmD;CAI7E,OAHIC,MAAU,cAAoB,sBAC9BA,MAAU,gBAAgBA,MAAU,QAAc,sBAClDA,MAAU,YAAYA,MAAU,kBAAkBA,MAAU,WAAiB,qBAC1E;AACT;AAaA,SAASC,EAAU,EAAE,YAAS,SAAM,YAAS,WAAQ,UAAO,iBAAc,sBAAmC;CAC3G,IAAMC,IAAWC,EAAyB,IAAI;CAO9C,OANAC,QAAgB;EACd,AAAIF,EAAS,YAAS,EAAS,QAAQ,YAAYG;CACrD,GAAG,CAACA,CAAM,CAAC,GAKT,kBAAC,OAAD;EAAK,WAAU;EAAf,UAAA,CAHwBA,KAAWC,IAK/B,kBAAC,SAAD;GACE,KAAKJ;GACL,UAAA;GACA,aAAA;GACA,OAAOK;GACP,WAA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CAAW;QAAG,UAAA;OAE/E,CAAA,IACN,IACD;MAnBK,GAAAA,EAAY,EAmBjB,CACN;KACE,CAAA,CACI;;GACX,EAAA,CAAA,IAzGF,kBAACU,GAAD;IAAW,WAAU;IAAQ,WAAU;IAAvC,UAAA,CACE,kBAACC,GAAD;KACE,cAAa;KACb,OAAM;KACN,aAAa,GAAGnE,EAAQ,iBAAiB,MAAMA,EAAQ,gBAAgB;KACvE,WAAU;IACX,CAAA,GACD,kBAAC,OAAD;KAAK,WAAU;KACb,UAAA,kBAAC4D,GAAD;MAAQ,MAAK;MAAS,SAASX;MAAQ,UAAUS;MAAjD,UAAA,CACE,kBAACqB,GAAD,EAAO,WAAU,UAAW,CAAA,GAC3BvE,IAAU,aAAa,cAClB;;IACL,CAAA,CACI;GAEX,CAAA;EA4FC;;AAET"}
@@ -37,4 +37,3 @@ export declare const CURRENCY_OPTIONS: ReadonlyArray<{
37
37
  value: string;
38
38
  label: string;
39
39
  }>;
40
- //# sourceMappingURL=eventFormUtils.d.ts.map
@@ -1,2 +1 @@
1
- export default function ExhibitorFormPage(): import("react").JSX.Element;
2
- //# sourceMappingURL=ExhibitorFormPage.d.ts.map
1
+ export default function ExhibitorFormPage(): import('react').JSX.Element;
@@ -1,2 +1 @@
1
- export default function ExhibitorsPage(): import("react").JSX.Element;
2
- //# sourceMappingURL=ExhibitorsPage.d.ts.map
1
+ export default function ExhibitorsPage(): import('react').JSX.Element;
@@ -19,5 +19,4 @@ export interface LeadCaptureDialogProps {
19
19
  * `metadata.company` (no first-class column) and `scannedAt` maps to the
20
20
  * backend `capturedAt` timestamp.
21
21
  */
22
- export declare function LeadCaptureDialog({ open, onOpenChange, eventId, exhibitorId, sponsorId, contextLabel, onCreated, }: LeadCaptureDialogProps): import("react").JSX.Element;
23
- //# sourceMappingURL=LeadCaptureDialog.d.ts.map
22
+ export declare function LeadCaptureDialog({ open, onOpenChange, eventId, exhibitorId, sponsorId, contextLabel, onCreated, }: LeadCaptureDialogProps): import('react').JSX.Element;
@@ -1,2 +1 @@
1
- export default function AnalyticsPage(): import("react").JSX.Element;
2
- //# sourceMappingURL=AnalyticsPage.d.ts.map
1
+ export default function AnalyticsPage(): import('react').JSX.Element;
@@ -1,2 +1 @@
1
- export default function AttendeeProfilePage(): import("react").JSX.Element;
2
- //# sourceMappingURL=AttendeeProfilePage.d.ts.map
1
+ export default function AttendeeProfilePage(): import('react').JSX.Element;
@@ -8,6 +8,5 @@ interface AttendeeRecommendationsProps {
8
8
  /** Attendees already loaded by the page, used to put names on suggested connections. */
9
9
  attendees: AttendeeName[];
10
10
  }
11
- export declare function AttendeeRecommendations({ attendeeId, eventId, attendees }: AttendeeRecommendationsProps): import("react").JSX.Element;
11
+ export declare function AttendeeRecommendations({ attendeeId, eventId, attendees }: AttendeeRecommendationsProps): import('react').JSX.Element;
12
12
  export {};
13
- //# sourceMappingURL=AttendeeRecommendations.d.ts.map
@@ -1,2 +1 @@
1
- export default function CommunicationPage(): import("react").JSX.Element;
2
- //# sourceMappingURL=CommunicationPage.d.ts.map
1
+ export default function CommunicationPage(): import('react').JSX.Element;
@@ -11,6 +11,5 @@ interface EntityListSectionProps {
11
11
  /** Illustration used for the zero-state. Defaults to a generic data illustration. */
12
12
  emptyIllustration?: string;
13
13
  }
14
- export declare function EntityListSection({ heading, rows, emptyLabel, emptyIllustration, }: EntityListSectionProps): import("react").JSX.Element;
14
+ export declare function EntityListSection({ heading, rows, emptyLabel, emptyIllustration, }: EntityListSectionProps): import('react').JSX.Element;
15
15
  export {};
16
- //# sourceMappingURL=EntityListSection.d.ts.map
@@ -1,2 +1 @@
1
- export default function EventsPage(): import("react").JSX.Element;
2
- //# sourceMappingURL=EventsPage.d.ts.map
1
+ export default function EventsPage(): import('react').JSX.Element;
@@ -1,2 +1 @@
1
- export default function IntegrationsPage(): import("react").JSX.Element;
2
- //# sourceMappingURL=IntegrationsPage.d.ts.map
1
+ export default function IntegrationsPage(): import('react').JSX.Element;
@@ -14,6 +14,5 @@ declare global {
14
14
  BarcodeDetector?: BarcodeDetectorCtor;
15
15
  }
16
16
  }
17
- export default function KioskPage(): import("react").JSX.Element;
17
+ export default function KioskPage(): import('react').JSX.Element;
18
18
  export {};
19
- //# sourceMappingURL=KioskPage.d.ts.map
@@ -1,2 +1 @@
1
- export default function NetworkingPage(): import("react").JSX.Element;
2
- //# sourceMappingURL=NetworkingPage.d.ts.map
1
+ export default function NetworkingPage(): import('react').JSX.Element;
@@ -4,6 +4,5 @@ interface OperationsHubPageProps {
4
4
  description: string;
5
5
  sectionKeys: SectionKey[];
6
6
  }
7
- export default function OperationsHubPage({ title, description, sectionKeys }: OperationsHubPageProps): import("react").JSX.Element;
7
+ export default function OperationsHubPage({ title, description, sectionKeys }: OperationsHubPageProps): import('react').JSX.Element;
8
8
  export {};
9
- //# sourceMappingURL=OperationsHubPage.d.ts.map
@@ -1,2 +1 @@
1
- export default function RegistrationPage(): import("react").JSX.Element;
2
- //# sourceMappingURL=RegistrationPage.d.ts.map
1
+ export default function RegistrationPage(): import('react').JSX.Element;