@burdenoff/microfe-eventfullymanaged 2026.1123.4 → 2026.1123.6

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.
@@ -0,0 +1,74 @@
1
+ import { useMutation, useQuery } from '@apollo/client/react';
2
+ export interface VirtualPoll {
3
+ id: string;
4
+ prompt: string;
5
+ options: string[];
6
+ status: 'OPEN' | 'CLOSED';
7
+ voteCounts: number[];
8
+ myOptionIndex: number | null;
9
+ }
10
+ export interface VirtualQuestion {
11
+ id: string;
12
+ text: string;
13
+ status: 'PENDING' | 'APPROVED' | 'REJECTED';
14
+ isOwn: boolean;
15
+ }
16
+ type SessionVariables = {
17
+ sessionId: string;
18
+ };
19
+ type PageVariables = SessionVariables & {
20
+ limit: number;
21
+ offset: number;
22
+ };
23
+ type Page<T> = {
24
+ items: T[];
25
+ hasMore: boolean;
26
+ };
27
+ export declare const liveVirtualPollsDocument: import('graphql').DocumentNode;
28
+ export declare const liveVirtualQuestionsDocument: import('graphql').DocumentNode;
29
+ export declare const openVirtualPollDocument: import('graphql').DocumentNode;
30
+ export declare const closeVirtualPollDocument: import('graphql').DocumentNode;
31
+ export declare const voteVirtualPollDocument: import('graphql').DocumentNode;
32
+ export declare const askVirtualQuestionDocument: import('graphql').DocumentNode;
33
+ export declare const moderateVirtualQuestionDocument: import('graphql').DocumentNode;
34
+ export declare const virtualEngagementChangedSubscription = "\n subscription VirtualEngagementChanged($sessionId: ID!) {\n eventfullyManagedVirtualEngagementChanged(sessionId: $sessionId)\n }\n";
35
+ export declare const useLiveVirtualPolls: (variables: PageVariables) => useQuery.Result<{
36
+ polls: Page<VirtualPoll>;
37
+ }, PageVariables, "empty" | "complete" | "streaming", PageVariables, undefined>;
38
+ export declare const useLiveVirtualQuestions: (variables: PageVariables) => useQuery.Result<{
39
+ questions: Page<VirtualQuestion>;
40
+ }, PageVariables, "empty" | "complete" | "streaming", PageVariables, undefined>;
41
+ export declare const useOpenVirtualPoll: () => useMutation.ResultTuple<{
42
+ poll: VirtualPoll;
43
+ }, {
44
+ sessionId: string;
45
+ prompt: string;
46
+ options: string[];
47
+ }, import('@apollo/client').ApolloCache, undefined>;
48
+ export declare const useCloseVirtualPoll: () => useMutation.ResultTuple<{
49
+ poll: VirtualPoll;
50
+ }, {
51
+ sessionId: string;
52
+ pollId: string;
53
+ }, import('@apollo/client').ApolloCache, undefined>;
54
+ export declare const useVoteVirtualPoll: () => useMutation.ResultTuple<{
55
+ poll: VirtualPoll;
56
+ }, {
57
+ sessionId: string;
58
+ pollId: string;
59
+ optionIndex: number;
60
+ }, import('@apollo/client').ApolloCache, undefined>;
61
+ export declare const useAskVirtualQuestion: () => useMutation.ResultTuple<{
62
+ question: VirtualQuestion;
63
+ }, {
64
+ text: string;
65
+ sessionId: string;
66
+ }, import('@apollo/client').ApolloCache, undefined>;
67
+ export declare const useModerateVirtualQuestion: () => useMutation.ResultTuple<{
68
+ question: VirtualQuestion;
69
+ }, {
70
+ sessionId: string;
71
+ questionId: string;
72
+ decision: "APPROVE" | "REJECT";
73
+ }, import('@apollo/client').ApolloCache, undefined>;
74
+ export {};
@@ -0,0 +1,87 @@
1
+ import { gql as e } from "../../node_modules/graphql-tag/lib/index.js";
2
+ import { useMutation as t } from "../../node_modules/@apollo/client/react/hooks/useMutation.js";
3
+ import { useQuery as n } from "../../node_modules/@apollo/client/react/hooks/useQuery.js";
4
+ // src/eventfullymanaged/api/virtualEngagementApi.ts
5
+ var r = e`
6
+ fragment LiveVirtualPoll on EventfullyManagedVirtualPoll {
7
+ id
8
+ prompt
9
+ options
10
+ status
11
+ voteCounts
12
+ myOptionIndex
13
+ }
14
+ `, i = e`
15
+ fragment LiveVirtualQuestion on EventfullyManagedVirtualQuestion {
16
+ id
17
+ text
18
+ status
19
+ isOwn
20
+ }
21
+ `, a = e`
22
+ query LiveVirtualPolls($sessionId: ID!, $limit: Int!, $offset: Int!) {
23
+ polls: eventfullyManagedVirtualPolls(sessionId: $sessionId, limit: $limit, offset: $offset) {
24
+ items {
25
+ ...LiveVirtualPoll
26
+ }
27
+ hasMore
28
+ }
29
+ }
30
+ ${r}
31
+ `, o = e`
32
+ query LiveVirtualQuestions($sessionId: ID!, $limit: Int!, $offset: Int!) {
33
+ questions: eventfullyManagedVirtualQuestions(sessionId: $sessionId, limit: $limit, offset: $offset) {
34
+ items {
35
+ ...LiveVirtualQuestion
36
+ }
37
+ hasMore
38
+ }
39
+ }
40
+ ${i}
41
+ `, s = e`
42
+ mutation OpenVirtualPoll($sessionId: ID!, $prompt: String!, $options: [String!]!) {
43
+ poll: eventfullyManagedOpenVirtualPoll(sessionId: $sessionId, prompt: $prompt, options: $options) {
44
+ ...LiveVirtualPoll
45
+ }
46
+ }
47
+ ${r}
48
+ `, c = e`
49
+ mutation CloseVirtualPoll($sessionId: ID!, $pollId: ID!) {
50
+ poll: eventfullyManagedCloseVirtualPoll(sessionId: $sessionId, pollId: $pollId) {
51
+ ...LiveVirtualPoll
52
+ }
53
+ }
54
+ ${r}
55
+ `, l = e`
56
+ mutation VoteVirtualPoll($sessionId: ID!, $pollId: ID!, $optionIndex: Int!) {
57
+ poll: eventfullyManagedVoteVirtualPoll(sessionId: $sessionId, pollId: $pollId, optionIndex: $optionIndex) {
58
+ ...LiveVirtualPoll
59
+ }
60
+ }
61
+ ${r}
62
+ `, u = e`
63
+ mutation AskVirtualQuestion($sessionId: ID!, $text: String!) {
64
+ question: eventfullyManagedAskVirtualQuestion(sessionId: $sessionId, text: $text) {
65
+ ...LiveVirtualQuestion
66
+ }
67
+ }
68
+ ${i}
69
+ `, d = e`
70
+ mutation ModerateVirtualQuestion(
71
+ $sessionId: ID!
72
+ $questionId: ID!
73
+ $decision: EventfullyManagedVirtualQuestionDecision!
74
+ ) {
75
+ question: eventfullyManagedModerateVirtualQuestion(
76
+ sessionId: $sessionId
77
+ questionId: $questionId
78
+ decision: $decision
79
+ ) {
80
+ ...LiveVirtualQuestion
81
+ }
82
+ }
83
+ ${i}
84
+ `, f = "\n subscription VirtualEngagementChanged($sessionId: ID!) {\n eventfullyManagedVirtualEngagementChanged(sessionId: $sessionId)\n }\n", p = (e) => n(a, { variables: e }), m = (e) => n(o, { variables: e }), h = () => t(s), g = () => t(c), _ = () => t(l), v = () => t(u), y = () => t(d);
85
+ export { u as askVirtualQuestionDocument, c as closeVirtualPollDocument, a as liveVirtualPollsDocument, o as liveVirtualQuestionsDocument, d as moderateVirtualQuestionDocument, s as openVirtualPollDocument, v as useAskVirtualQuestion, g as useCloseVirtualPoll, p as useLiveVirtualPolls, m as useLiveVirtualQuestions, y as useModerateVirtualQuestion, h as useOpenVirtualPoll, _ as useVoteVirtualPoll, f as virtualEngagementChangedSubscription, l as voteVirtualPollDocument };
86
+
87
+ //# sourceMappingURL=virtualEngagementApi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"virtualEngagementApi.js","names":["pollFields","questionFields","liveVirtualPollsDocument","liveVirtualQuestionsDocument","openVirtualPollDocument","closeVirtualPollDocument","voteVirtualPollDocument","askVirtualQuestionDocument","moderateVirtualQuestionDocument","virtualEngagementChangedSubscription","useLiveVirtualPolls","useQuery","useLiveVirtualQuestions","useOpenVirtualPoll","useMutation","useCloseVirtualPoll","useVoteVirtualPoll","useAskVirtualQuestion","useModerateVirtualQuestion"],"sources":["../../../src/eventfullymanaged/api/virtualEngagementApi.ts"],"sourcesContent":["import { gql } from '@apollo/client';\nimport { useMutation, useQuery } from '@apollo/client/react';\n\nexport interface VirtualPoll {\n id: string;\n prompt: string;\n options: string[];\n status: 'OPEN' | 'CLOSED';\n voteCounts: number[];\n myOptionIndex: number | null;\n}\n\nexport interface VirtualQuestion {\n id: string;\n text: string;\n status: 'PENDING' | 'APPROVED' | 'REJECTED';\n isOwn: boolean;\n}\n\ntype SessionVariables = { sessionId: string };\ntype PollVariables = SessionVariables & { pollId: string };\ntype PageVariables = SessionVariables & { limit: number; offset: number };\ntype Page<T> = { items: T[]; hasMore: boolean };\n\nconst pollFields = gql`\n fragment LiveVirtualPoll on EventfullyManagedVirtualPoll {\n id\n prompt\n options\n status\n voteCounts\n myOptionIndex\n }\n`;\n\nconst questionFields = gql`\n fragment LiveVirtualQuestion on EventfullyManagedVirtualQuestion {\n id\n text\n status\n isOwn\n }\n`;\n\nexport const liveVirtualPollsDocument = gql`\n query LiveVirtualPolls($sessionId: ID!, $limit: Int!, $offset: Int!) {\n polls: eventfullyManagedVirtualPolls(sessionId: $sessionId, limit: $limit, offset: $offset) {\n items {\n ...LiveVirtualPoll\n }\n hasMore\n }\n }\n ${pollFields}\n`;\n\nexport const liveVirtualQuestionsDocument = gql`\n query LiveVirtualQuestions($sessionId: ID!, $limit: Int!, $offset: Int!) {\n questions: eventfullyManagedVirtualQuestions(sessionId: $sessionId, limit: $limit, offset: $offset) {\n items {\n ...LiveVirtualQuestion\n }\n hasMore\n }\n }\n ${questionFields}\n`;\n\nexport const openVirtualPollDocument = gql`\n mutation OpenVirtualPoll($sessionId: ID!, $prompt: String!, $options: [String!]!) {\n poll: eventfullyManagedOpenVirtualPoll(sessionId: $sessionId, prompt: $prompt, options: $options) {\n ...LiveVirtualPoll\n }\n }\n ${pollFields}\n`;\n\nexport const closeVirtualPollDocument = gql`\n mutation CloseVirtualPoll($sessionId: ID!, $pollId: ID!) {\n poll: eventfullyManagedCloseVirtualPoll(sessionId: $sessionId, pollId: $pollId) {\n ...LiveVirtualPoll\n }\n }\n ${pollFields}\n`;\n\nexport const voteVirtualPollDocument = gql`\n mutation VoteVirtualPoll($sessionId: ID!, $pollId: ID!, $optionIndex: Int!) {\n poll: eventfullyManagedVoteVirtualPoll(sessionId: $sessionId, pollId: $pollId, optionIndex: $optionIndex) {\n ...LiveVirtualPoll\n }\n }\n ${pollFields}\n`;\n\nexport const askVirtualQuestionDocument = gql`\n mutation AskVirtualQuestion($sessionId: ID!, $text: String!) {\n question: eventfullyManagedAskVirtualQuestion(sessionId: $sessionId, text: $text) {\n ...LiveVirtualQuestion\n }\n }\n ${questionFields}\n`;\n\nexport const moderateVirtualQuestionDocument = gql`\n mutation ModerateVirtualQuestion(\n $sessionId: ID!\n $questionId: ID!\n $decision: EventfullyManagedVirtualQuestionDecision!\n ) {\n question: eventfullyManagedModerateVirtualQuestion(\n sessionId: $sessionId\n questionId: $questionId\n decision: $decision\n ) {\n ...LiveVirtualQuestion\n }\n }\n ${questionFields}\n`;\n\nexport const virtualEngagementChangedSubscription = `\n subscription VirtualEngagementChanged($sessionId: ID!) {\n eventfullyManagedVirtualEngagementChanged(sessionId: $sessionId)\n }\n`;\n\nexport const useLiveVirtualPolls = (variables: PageVariables) =>\n useQuery<{ polls: Page<VirtualPoll> }, PageVariables>(liveVirtualPollsDocument, { variables });\n\nexport const useLiveVirtualQuestions = (variables: PageVariables) =>\n useQuery<{ questions: Page<VirtualQuestion> }, PageVariables>(liveVirtualQuestionsDocument, { variables });\n\nexport const useOpenVirtualPoll = () =>\n useMutation<{ poll: VirtualPoll }, SessionVariables & { prompt: string; options: string[] }>(openVirtualPollDocument);\n\nexport const useCloseVirtualPoll = () => useMutation<{ poll: VirtualPoll }, PollVariables>(closeVirtualPollDocument);\n\nexport const useVoteVirtualPoll = () =>\n useMutation<{ poll: VirtualPoll }, PollVariables & { optionIndex: number }>(voteVirtualPollDocument);\n\nexport const useAskVirtualQuestion = () =>\n useMutation<{ question: VirtualQuestion }, SessionVariables & { text: string }>(askVirtualQuestionDocument);\n\nexport const useModerateVirtualQuestion = () =>\n useMutation<{ question: VirtualQuestion }, SessionVariables & { questionId: string; decision: 'APPROVE' | 'REJECT' }>(\n moderateVirtualQuestionDocument\n );\n"],"mappings":";;;;AAwBA,IAAMA,IAAa,CAAG;;;;;;;;;GAWhBC,IAAiB,CAAG;;;;;;;GASbC,IAA2B,CAAG;;;;;;;;;IASvCF,EAAW;GAGFG,IAA+B,CAAG;;;;;;;;;IAS3CF,EAAe;GAGNG,IAA0B,CAAG;;;;;;IAMtCJ,EAAW;GAGFK,IAA2B,CAAG;;;;;;IAMvCL,EAAW;GAGFM,IAA0B,CAAG;;;;;;IAMtCN,EAAW;GAGFO,IAA6B,CAAG;;;;;;IAMzCN,EAAe;GAGNO,IAAkC,CAAG;;;;;;;;;;;;;;IAc9CP,EAAe;GAGNQ,IAAuC,6IAMvCC,KAAuB,MAClCC,EAAsDT,GAA0B,EAAE,aAAU,CAAC,GAElFU,KAA2B,MACtCD,EAA8DR,GAA8B,EAAE,aAAU,CAAC,GAE9FU,UACXC,EAA6FV,CAAuB,GAEzGW,UAA4BD,EAAkDT,CAAwB,GAEtGW,UACXF,EAA4ER,CAAuB,GAExFW,UACXH,EAAgFP,CAA0B,GAE/FW,UACXJ,EACEN,CACF"}
@@ -18,7 +18,7 @@ function s({ selected: s, onChange: c }) {
18
18
  }),
19
19
  /* @__PURE__ */ r("p", {
20
20
  className: "text-text-secondary",
21
- children: s.length ? u("any", "Attendees with any selected tag receive the campaign.") : u("all", "All attendees in the selected event or workspace receive the campaign.")
21
+ children: s.length ? u("targetsAny", "Targets attendees with any selected tag.") : u("targetsAll", "Targets all attendees in the selected event or workspace.")
22
22
  }),
23
23
  s.length > 0 ? /* @__PURE__ */ r("ul", {
24
24
  className: "flex flex-wrap gap-2",
@@ -1 +1 @@
1
- {"version":3,"file":"CampaignAudiencePicker.js","names":["CampaignAudiencePicker","translate","useI18n","t","fullKey","key","value","fallback","search","setSearch","useState","term","useCampaignAudienceTagsQuery","tags","data","tag","selected","id","Button","onChange","Input","event","error","loading"],"sources":["../../../src/eventfullymanaged/components/CampaignAudiencePicker.tsx"],"sourcesContent":["import { useI18n } from '@burdenoff/fe-libs/shared/providers/shell/I18nProvider';\nimport { Button, Input } from '@burdenoff/fe-libs/ui';\nimport { useState } from 'react';\n\nimport { useCampaignAudienceTagsQuery } from '../api/eventApi';\n\nexport type CampaignAudienceTag = { id: string; label: string };\n\nexport function CampaignAudiencePicker({\n selected,\n onChange,\n}: {\n selected: CampaignAudienceTag[];\n onChange: (tags: CampaignAudienceTag[]) => void;\n}) {\n const { t: translate } = useI18n();\n const t = (key: string, fallback: string) => {\n const fullKey = `eventfullymanaged.communication.audiencePicker.${key}`;\n const value = translate(fullKey);\n return value === fullKey ? fallback : value;\n };\n const [search, setSearch] = useState('');\n const term = search.trim();\n const { data, loading, error } = useCampaignAudienceTagsQuery(term);\n const tags =\n data?.searchTags?.filter((tag) => tag.scope !== 'PRIVATE' && !selected.some(({ id }) => id === tag.id)) ?? [];\n\n return (\n <fieldset className=\"min-w-0 space-y-2 text-sm\">\n <legend className=\"font-medium text-text-primary\">{t('label', 'Audience segments')}</legend>\n <p className=\"text-text-secondary\">\n {selected.length\n ? t('any', 'Attendees with any selected tag receive the campaign.')\n : t('all', 'All attendees in the selected event or workspace receive the campaign.')}\n </p>\n {selected.length > 0 ? (\n <ul className=\"flex flex-wrap gap-2\">\n {selected.map((tag) => (\n <li key={tag.id}>\n <Button\n type=\"button\"\n variant=\"outline\"\n size=\"sm\"\n aria-label={`${t('remove', 'Remove tag')} ${tag.label}`}\n onClick={() => onChange(selected.filter(({ id }) => id !== tag.id))}\n >\n {tag.label} ×\n </Button>\n </li>\n ))}\n </ul>\n ) : null}\n <Input\n value={search}\n onChange={(event) => setSearch(event.target.value)}\n aria-label={t('search', 'Search workspace tags')}\n placeholder={t('search', 'Search workspace tags')}\n />\n {error ? <p role=\"status\">{t('failed', 'Workspace tags are temporarily unavailable.')}</p> : null}\n {loading ? <p role=\"status\">{t('loading', 'Loading workspace tags…')}</p> : null}\n {!loading && !error && tags.length > 0 ? (\n <ul className=\"flex max-h-40 flex-wrap gap-2 overflow-auto\">\n {tags.map((tag) => (\n <li key={tag.id}>\n <Button\n type=\"button\"\n variant=\"outline\"\n size=\"sm\"\n onClick={() => onChange([...selected, { id: tag.id, label: tag.label }])}\n >\n {tag.label}\n </Button>\n </li>\n ))}\n </ul>\n ) : null}\n {!loading && !error && term && tags.length === 0 ? (\n <p role=\"status\">{t('empty', 'No matching workspace tags.')}</p>\n ) : null}\n </fieldset>\n );\n}\n"],"mappings":";;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BAAC,KAAD;IAAG,MAAK;IAAU,UAAAnB,EAAE,UAAU,6CAA6C;GAAK,CAAA,IAAI;GAC5FoB,IAAU,kBAAC,KAAD;IAAG,MAAK;IAAU,UAAApB,EAAE,WAAW,yBAAyB;GAAK,CAAA,IAAI;GAC3E,CAACoB,KAAW,CAACD,KAAST,EAAK,SAAS,IACnC,kBAAC,MAAD;IAAI,WAAU;IACX,UAAAA,EAAK,KAAK,MACT,kBAAC,MAAD,EAAA,UACE,kBAACK,GAAD;KACE,MAAK;KACL,SAAQ;KACR,MAAK;KACL,eAAeC,EAAS,CAAC,GAAGH,GAAU;MAAE,IAAID,EAAI;MAAI,OAAOA,EAAI;KAAM,CAAC,CAAC;KAEtE,UAAAA,EAAI;IACC,CAAA,EACN,GATKA,EAAI,EAST,CACL;GACC,CAAA,IACF;GACH,CAACQ,KAAW,CAACD,KAASX,KAAQE,EAAK,WAAW,IAC7C,kBAAC,KAAD;IAAG,MAAK;IAAU,UAAAV,EAAE,SAAS,6BAA6B;GAAK,CAAA,IAC7D;EACI;;AAEd"}
1
+ {"version":3,"file":"CampaignAudiencePicker.js","names":["CampaignAudiencePicker","translate","useI18n","t","fullKey","key","value","fallback","search","setSearch","useState","term","useCampaignAudienceTagsQuery","tags","data","tag","selected","id","Button","onChange","Input","event","error","loading"],"sources":["../../../src/eventfullymanaged/components/CampaignAudiencePicker.tsx"],"sourcesContent":["import { useI18n } from '@burdenoff/fe-libs/shared/providers/shell/I18nProvider';\nimport { Button, Input } from '@burdenoff/fe-libs/ui';\nimport { useState } from 'react';\n\nimport { useCampaignAudienceTagsQuery } from '../api/eventApi';\n\nexport type CampaignAudienceTag = { id: string; label: string };\n\nexport function CampaignAudiencePicker({\n selected,\n onChange,\n}: {\n selected: CampaignAudienceTag[];\n onChange: (tags: CampaignAudienceTag[]) => void;\n}) {\n const { t: translate } = useI18n();\n const t = (key: string, fallback: string) => {\n const fullKey = `eventfullymanaged.communication.audiencePicker.${key}`;\n const value = translate(fullKey);\n return value === fullKey ? fallback : value;\n };\n const [search, setSearch] = useState('');\n const term = search.trim();\n const { data, loading, error } = useCampaignAudienceTagsQuery(term);\n const tags =\n data?.searchTags?.filter((tag) => tag.scope !== 'PRIVATE' && !selected.some(({ id }) => id === tag.id)) ?? [];\n\n return (\n <fieldset className=\"min-w-0 space-y-2 text-sm\">\n <legend className=\"font-medium text-text-primary\">{t('label', 'Audience segments')}</legend>\n <p className=\"text-text-secondary\">\n {selected.length\n ? t('targetsAny', 'Targets attendees with any selected tag.')\n : t('targetsAll', 'Targets all attendees in the selected event or workspace.')}\n </p>\n {selected.length > 0 ? (\n <ul className=\"flex flex-wrap gap-2\">\n {selected.map((tag) => (\n <li key={tag.id}>\n <Button\n type=\"button\"\n variant=\"outline\"\n size=\"sm\"\n aria-label={`${t('remove', 'Remove tag')} ${tag.label}`}\n onClick={() => onChange(selected.filter(({ id }) => id !== tag.id))}\n >\n {tag.label} ×\n </Button>\n </li>\n ))}\n </ul>\n ) : null}\n <Input\n value={search}\n onChange={(event) => setSearch(event.target.value)}\n aria-label={t('search', 'Search workspace tags')}\n placeholder={t('search', 'Search workspace tags')}\n />\n {error ? <p role=\"status\">{t('failed', 'Workspace tags are temporarily unavailable.')}</p> : null}\n {loading ? <p role=\"status\">{t('loading', 'Loading workspace tags…')}</p> : null}\n {!loading && !error && tags.length > 0 ? (\n <ul className=\"flex max-h-40 flex-wrap gap-2 overflow-auto\">\n {tags.map((tag) => (\n <li key={tag.id}>\n <Button\n type=\"button\"\n variant=\"outline\"\n size=\"sm\"\n onClick={() => onChange([...selected, { id: tag.id, label: tag.label }])}\n >\n {tag.label}\n </Button>\n </li>\n ))}\n </ul>\n ) : null}\n {!loading && !error && term && tags.length === 0 ? (\n <p role=\"status\">{t('empty', 'No matching workspace tags.')}</p>\n ) : null}\n </fieldset>\n );\n}\n"],"mappings":";;;;;;AAQA,SAAgBA,EAAuB,EACrC,aACA,eAIC;CACD,IAAM,EAAE,GAAGC,MAAcC,EAAQ,GA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FoB,IAAU,kBAAC,KAAD;IAAG,MAAK;IAAU,UAAApB,EAAE,WAAW,yBAAyB;GAAK,CAAA,IAAI;GAC3E,CAACoB,KAAW,CAACD,KAAST,EAAK,SAAS,IACnC,kBAAC,MAAD;IAAI,WAAU;IACX,UAAAA,EAAK,KAAK,MACT,kBAAC,MAAD,EAAA,UACE,kBAACK,GAAD;KACE,MAAK;KACL,SAAQ;KACR,MAAK;KACL,eAAeC,EAAS,CAAC,GAAGH,GAAU;MAAE,IAAID,EAAI;MAAI,OAAOA,EAAI;KAAM,CAAC,CAAC;KAEtE,UAAAA,EAAI;IACC,CAAA,EACN,GATKA,EAAI,EAST,CACL;GACC,CAAA,IACF;GACH,CAACQ,KAAW,CAACD,KAASX,KAAQE,EAAK,WAAW,IAC7C,kBAAC,KAAD;IAAG,MAAK;IAAU,UAAAV,EAAE,SAAS,6BAA6B;GAAK,CAAA,IAC7D;EACI;;AAEd"}
@@ -0,0 +1,4 @@
1
+ export declare function VirtualEngagementPanel({ sessionId, canModerate }: {
2
+ sessionId: string;
3
+ canModerate: boolean;
4
+ }): import('react').JSX.Element;
@@ -0,0 +1,324 @@
1
+ import { useTr as e } from "../../../shared/hooks/useTr.js";
2
+ import { useAskVirtualQuestion as t, useCloseVirtualPoll as n, useLiveVirtualPolls as r, useLiveVirtualQuestions as i, useModerateVirtualQuestion as a, useOpenVirtualPoll as o, useVoteVirtualPoll as s, virtualEngagementChangedSubscription as c } from "../../api/virtualEngagementApi.js";
3
+ import { useEvmSubscription as l } from "../../hooks/useEvmSubscription.js";
4
+ import { describeError as u, mutationSucceeded as d } from "../../lib/mutationResult.js";
5
+ import { notify as f } from "../../lib/toast.js";
6
+ import { useId as p, useState as m } from "react";
7
+ import { jsx as h, jsxs as g } from "react/jsx-runtime";
8
+ import { Badge as _, Button as v, GlassCard as y, Label as b, Skeleton as x, Textarea as S } from "@burdenoff/fe-libs/ui";
9
+ // src/eventfullymanaged/pages/events/VirtualEngagementPanel.tsx
10
+ var C = 15;
11
+ function w({ offset: t, hasMore: n, disabled: r, onChange: i }) {
12
+ let a = e();
13
+ return t === 0 && !n ? null : /* @__PURE__ */ g("div", {
14
+ className: "flex gap-2",
15
+ children: [/* @__PURE__ */ h(v, {
16
+ type: "button",
17
+ size: "sm",
18
+ variant: "outline",
19
+ disabled: r || t === 0,
20
+ onClick: () => i(t - C),
21
+ children: a("eventfullymanaged.engagement.previous", "Previous")
22
+ }), /* @__PURE__ */ h(v, {
23
+ type: "button",
24
+ size: "sm",
25
+ variant: "outline",
26
+ disabled: r || !n,
27
+ onClick: () => i(t + C),
28
+ children: a("eventfullymanaged.engagement.next", "Next")
29
+ })]
30
+ });
31
+ }
32
+ function T({ sessionId: T, canModerate: E }) {
33
+ let D = e(), O = p(), [k, A] = m(0), [j, M] = m(0), [N, P] = m(""), [F, I] = m(""), [L, R] = m(""), z = r({
34
+ sessionId: T,
35
+ limit: C,
36
+ offset: k
37
+ }), B = i({
38
+ sessionId: T,
39
+ limit: C,
40
+ offset: j
41
+ }), [V, { loading: H }] = o(), [U, { loading: W }] = n(), [G, { loading: K }] = s(), [q, { loading: J }] = t(), [Y, { loading: X }] = a(), Z = async () => {
42
+ await Promise.allSettled([z.refetch(), B.refetch()]);
43
+ };
44
+ l({
45
+ query: c,
46
+ variables: { sessionId: T },
47
+ operationName: "VirtualEngagementChanged",
48
+ onData: (e) => {
49
+ e.eventfullyManagedVirtualEngagementChanged && Z();
50
+ },
51
+ pollFn: Z
52
+ });
53
+ let Q = async () => {
54
+ let e = D("eventfullymanaged.engagement.openFailed", "Could not open the poll"), t = F.split("\n").map((e) => e.trim()).filter(Boolean);
55
+ try {
56
+ let n = await V({ variables: {
57
+ sessionId: T,
58
+ prompt: N.trim(),
59
+ options: t
60
+ } });
61
+ if (!d(n, n.data?.poll?.id, e)) return;
62
+ P(""), I(""), A(0), await z.refetch({
63
+ sessionId: T,
64
+ limit: C,
65
+ offset: 0
66
+ });
67
+ } catch (t) {
68
+ f.error(e, u(t));
69
+ }
70
+ }, ee = async (e) => {
71
+ let t = D("eventfullymanaged.engagement.closeFailed", "Could not close the poll");
72
+ try {
73
+ let n = await U({ variables: {
74
+ sessionId: T,
75
+ pollId: e
76
+ } });
77
+ d(n, n.data?.poll?.id, t) && await z.refetch();
78
+ } catch (e) {
79
+ f.error(t, u(e));
80
+ }
81
+ }, te = async (e, t) => {
82
+ let n = D("eventfullymanaged.engagement.voteFailed", "Could not record your vote");
83
+ try {
84
+ let r = await G({ variables: {
85
+ sessionId: T,
86
+ pollId: e,
87
+ optionIndex: t
88
+ } });
89
+ d(r, r.data?.poll?.id, n) && await z.refetch();
90
+ } catch (e) {
91
+ f.error(n, u(e));
92
+ }
93
+ }, ne = async () => {
94
+ let e = D("eventfullymanaged.engagement.askFailed", "Could not submit the question");
95
+ try {
96
+ let t = await q({ variables: {
97
+ sessionId: T,
98
+ text: L.trim()
99
+ } });
100
+ if (!d(t, t.data?.question?.id, e)) return;
101
+ R(""), M(0), await B.refetch({
102
+ sessionId: T,
103
+ limit: C,
104
+ offset: 0
105
+ });
106
+ } catch (t) {
107
+ f.error(e, u(t));
108
+ }
109
+ }, $ = async (e, t) => {
110
+ let n = D("eventfullymanaged.engagement.moderateFailed", "Could not moderate the question");
111
+ try {
112
+ let r = await Y({ variables: {
113
+ sessionId: T,
114
+ questionId: e,
115
+ decision: t
116
+ } });
117
+ d(r, r.data?.question?.id, n) && await B.refetch();
118
+ } catch (e) {
119
+ f.error(n, u(e));
120
+ }
121
+ }, re = {
122
+ PENDING: D("eventfullymanaged.engagement.pending", "Pending approval"),
123
+ APPROVED: D("eventfullymanaged.engagement.approved", "Approved"),
124
+ REJECTED: D("eventfullymanaged.engagement.rejected", "Rejected")
125
+ };
126
+ return /* @__PURE__ */ g("div", {
127
+ className: "grid gap-4 lg:grid-cols-2",
128
+ children: [/* @__PURE__ */ g(y, {
129
+ treatment: "plain",
130
+ className: "space-y-4 border-border-seam p-4",
131
+ children: [
132
+ /* @__PURE__ */ h("h2", {
133
+ className: "text-sm font-semibold text-text-primary",
134
+ children: D("eventfullymanaged.engagement.livePolls", "Live polls")
135
+ }),
136
+ E && /* @__PURE__ */ g("form", {
137
+ className: "grid gap-2 border-b border-border-seam pb-4",
138
+ onSubmit: (e) => {
139
+ e.preventDefault(), Q();
140
+ },
141
+ children: [
142
+ /* @__PURE__ */ h(b, {
143
+ htmlFor: `${O}-prompt`,
144
+ children: D("eventfullymanaged.engagement.pollPrompt", "Poll question")
145
+ }),
146
+ /* @__PURE__ */ h(S, {
147
+ id: `${O}-prompt`,
148
+ value: N,
149
+ maxLength: 300,
150
+ rows: 2,
151
+ onChange: (e) => P(e.target.value)
152
+ }),
153
+ /* @__PURE__ */ h(b, {
154
+ htmlFor: `${O}-options`,
155
+ children: D("eventfullymanaged.engagement.pollOptions", "Answers, one per line")
156
+ }),
157
+ /* @__PURE__ */ h(S, {
158
+ id: `${O}-options`,
159
+ value: F,
160
+ maxLength: 2010,
161
+ rows: 3,
162
+ onChange: (e) => I(e.target.value)
163
+ }),
164
+ /* @__PURE__ */ h(v, {
165
+ type: "submit",
166
+ size: "sm",
167
+ className: "justify-self-start",
168
+ disabled: H || !N.trim() || !F.trim(),
169
+ children: D("eventfullymanaged.engagement.openPoll", "Open poll")
170
+ })
171
+ ]
172
+ }),
173
+ z.error && /* @__PURE__ */ h("p", {
174
+ role: "alert",
175
+ className: "text-sm text-status-danger",
176
+ children: D("eventfullymanaged.engagement.pollLoadError", "Could not load live polls.")
177
+ }),
178
+ z.loading && !z.data && /* @__PURE__ */ h(x, { className: "h-12 w-full" }),
179
+ z.data?.polls.items.length === 0 && /* @__PURE__ */ h("p", {
180
+ className: "text-sm text-text-muted",
181
+ children: D("eventfullymanaged.engagement.noPolls", "No polls yet.")
182
+ }),
183
+ z.data?.polls.items.map((e) => /* @__PURE__ */ g("article", {
184
+ className: "grid gap-2 rounded-card border border-border-seam p-3",
185
+ children: [
186
+ /* @__PURE__ */ g("div", {
187
+ className: "flex items-start justify-between gap-2",
188
+ children: [/* @__PURE__ */ h("h3", {
189
+ className: "text-sm font-semibold text-text-primary",
190
+ children: e.prompt
191
+ }), /* @__PURE__ */ h(_, {
192
+ variant: e.status === "OPEN" ? "success" : "secondary",
193
+ children: e.status === "OPEN" ? D("eventfullymanaged.engagement.open", "Open") : D("eventfullymanaged.engagement.closed", "Closed")
194
+ })]
195
+ }),
196
+ e.options.map((t, n) => /* @__PURE__ */ g(v, {
197
+ type: "button",
198
+ size: "sm",
199
+ variant: e.myOptionIndex === n ? "secondary" : "outline",
200
+ className: "h-auto min-h-8 justify-between gap-3 whitespace-normal text-start",
201
+ "aria-pressed": e.myOptionIndex === n,
202
+ disabled: e.status !== "OPEN" || e.myOptionIndex !== null || K,
203
+ onClick: () => void te(e.id, n),
204
+ children: [/* @__PURE__ */ h("span", { children: t }), /* @__PURE__ */ h("span", { children: e.voteCounts[n] ?? 0 })]
205
+ }, t)),
206
+ e.myOptionIndex !== null && /* @__PURE__ */ h("p", {
207
+ className: "text-xs text-text-muted",
208
+ children: D("eventfullymanaged.engagement.voteRecorded", "Your vote was recorded.")
209
+ }),
210
+ E && e.status === "OPEN" && /* @__PURE__ */ h(v, {
211
+ type: "button",
212
+ size: "sm",
213
+ variant: "outline",
214
+ disabled: W,
215
+ onClick: () => void ee(e.id),
216
+ className: "justify-self-start",
217
+ children: D("eventfullymanaged.engagement.closePoll", "Close poll")
218
+ })
219
+ ]
220
+ }, e.id)),
221
+ /* @__PURE__ */ h(w, {
222
+ offset: k,
223
+ hasMore: z.data?.polls.hasMore ?? !1,
224
+ disabled: z.loading,
225
+ onChange: A
226
+ })
227
+ ]
228
+ }), /* @__PURE__ */ g(y, {
229
+ treatment: "plain",
230
+ className: "space-y-4 border-border-seam p-4",
231
+ children: [
232
+ /* @__PURE__ */ h("h2", {
233
+ className: "text-sm font-semibold text-text-primary",
234
+ children: D("eventfullymanaged.engagement.questions", "Questions and answers")
235
+ }),
236
+ /* @__PURE__ */ g("form", {
237
+ className: "grid gap-2 border-b border-border-seam pb-4",
238
+ onSubmit: (e) => {
239
+ e.preventDefault(), ne();
240
+ },
241
+ children: [
242
+ /* @__PURE__ */ h(b, {
243
+ htmlFor: `${O}-question`,
244
+ children: D("eventfullymanaged.engagement.yourQuestion", "Your question")
245
+ }),
246
+ /* @__PURE__ */ h(S, {
247
+ id: `${O}-question`,
248
+ rows: 3,
249
+ maxLength: 500,
250
+ value: L,
251
+ onChange: (e) => R(e.target.value)
252
+ }),
253
+ /* @__PURE__ */ h("p", {
254
+ className: "text-xs text-text-muted",
255
+ children: D("eventfullymanaged.engagement.moderationExplanation", "The host reviews questions before other attendees can see them.")
256
+ }),
257
+ /* @__PURE__ */ h(v, {
258
+ type: "submit",
259
+ size: "sm",
260
+ className: "justify-self-start",
261
+ disabled: J || !L.trim(),
262
+ children: D("eventfullymanaged.engagement.askQuestion", "Submit question")
263
+ })
264
+ ]
265
+ }),
266
+ B.error && /* @__PURE__ */ h("p", {
267
+ role: "alert",
268
+ className: "text-sm text-status-danger",
269
+ children: D("eventfullymanaged.engagement.questionLoadError", "Could not load questions.")
270
+ }),
271
+ B.loading && !B.data && /* @__PURE__ */ h(x, { className: "h-12 w-full" }),
272
+ B.data?.questions.items.length === 0 && /* @__PURE__ */ h("p", {
273
+ className: "text-sm text-text-muted",
274
+ children: D("eventfullymanaged.engagement.noQuestions", "No questions yet.")
275
+ }),
276
+ B.data?.questions.items.map((e) => /* @__PURE__ */ g("article", {
277
+ className: "space-y-2 rounded-card border border-border-seam p-3",
278
+ children: [
279
+ /* @__PURE__ */ g("div", {
280
+ className: "flex flex-wrap items-center gap-2",
281
+ children: [(E || e.isOwn) && /* @__PURE__ */ h(_, {
282
+ variant: e.status === "APPROVED" ? "success" : "secondary",
283
+ children: re[e.status]
284
+ }), e.isOwn && /* @__PURE__ */ h("span", {
285
+ className: "text-xs text-text-muted",
286
+ children: D("eventfullymanaged.engagement.you", "You")
287
+ })]
288
+ }),
289
+ /* @__PURE__ */ h("p", {
290
+ className: "whitespace-pre-wrap break-words text-sm text-text-primary",
291
+ children: e.text
292
+ }),
293
+ E && e.status === "PENDING" && /* @__PURE__ */ g("div", {
294
+ className: "flex flex-wrap gap-2",
295
+ children: [/* @__PURE__ */ h(v, {
296
+ type: "button",
297
+ size: "sm",
298
+ disabled: X,
299
+ onClick: () => void $(e.id, "APPROVE"),
300
+ children: D("eventfullymanaged.engagement.approve", "Approve")
301
+ }), /* @__PURE__ */ h(v, {
302
+ type: "button",
303
+ size: "sm",
304
+ variant: "outline",
305
+ disabled: X,
306
+ onClick: () => void $(e.id, "REJECT"),
307
+ children: D("eventfullymanaged.engagement.reject", "Reject")
308
+ })]
309
+ })
310
+ ]
311
+ }, e.id)),
312
+ /* @__PURE__ */ h(w, {
313
+ offset: j,
314
+ hasMore: B.data?.questions.hasMore ?? !1,
315
+ disabled: B.loading,
316
+ onChange: M
317
+ })
318
+ ]
319
+ })]
320
+ });
321
+ }
322
+ export { T as VirtualEngagementPanel };
323
+
324
+ //# sourceMappingURL=VirtualEngagementPanel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VirtualEngagementPanel.js","names":["pageSize","ResultsPager","tr","useTr","offset","hasMore","Button","disabled","onChange","VirtualEngagementPanel","id","useId","pollOffset","setPollOffset","useState","questionOffset","setQuestionOffset","prompt","setPrompt","pollOptions","setPollOptions","questionText","setQuestionText","polls","useLiveVirtualPolls","questions","useLiveVirtualQuestions","openPoll","opening","useOpenVirtualPoll","closePoll","closing","useCloseVirtualPoll","votePoll","voting","useVoteVirtualPoll","askQuestion","asking","useAskVirtualQuestion","moderateQuestion","moderating","useModerateVirtualQuestion","refresh","virtualEngagementChangedSubscription","data","open","failure","options","option","result","mutationSucceeded","error","describeError","close","vote","ask","moderate","questionLabels","GlassCard","canModerate","event","Label","Textarea","Skeleton","poll","Badge","optionIndex","question"],"sources":["../../../../src/eventfullymanaged/pages/events/VirtualEngagementPanel.tsx"],"sourcesContent":["import { Badge, Button, GlassCard, Label, Skeleton, Textarea } from '@burdenoff/fe-libs/ui';\nimport { useId, useState } from 'react';\n\nimport { useTr } from '../../../shared/hooks/useTr';\nimport {\n useAskVirtualQuestion,\n useCloseVirtualPoll,\n useLiveVirtualPolls,\n useLiveVirtualQuestions,\n useModerateVirtualQuestion,\n useOpenVirtualPoll,\n useVoteVirtualPoll,\n virtualEngagementChangedSubscription,\n} from '../../api/virtualEngagementApi';\nimport { useEvmSubscription } from '../../hooks/useEvmSubscription';\nimport { describeError, mutationSucceeded } from '../../lib/mutationResult';\nimport { notify } from '../../lib/toast';\n\nconst pageSize = 15;\n\nfunction ResultsPager({\n offset,\n hasMore,\n disabled,\n onChange,\n}: {\n offset: number;\n hasMore: boolean;\n disabled: boolean;\n onChange: (offset: number) => void;\n}) {\n const tr = useTr();\n if (offset === 0 && !hasMore) return null;\n return (\n <div className=\"flex gap-2\">\n <Button\n type=\"button\"\n size=\"sm\"\n variant=\"outline\"\n disabled={disabled || offset === 0}\n onClick={() => onChange(offset - pageSize)}\n >\n {tr('eventfullymanaged.engagement.previous', 'Previous')}\n </Button>\n <Button\n type=\"button\"\n size=\"sm\"\n variant=\"outline\"\n disabled={disabled || !hasMore}\n onClick={() => onChange(offset + pageSize)}\n >\n {tr('eventfullymanaged.engagement.next', 'Next')}\n </Button>\n </div>\n );\n}\n\nexport function VirtualEngagementPanel({ sessionId, canModerate }: { sessionId: string; canModerate: boolean }) {\n const tr = useTr();\n const id = useId();\n const [pollOffset, setPollOffset] = useState(0);\n const [questionOffset, setQuestionOffset] = useState(0);\n const [prompt, setPrompt] = useState('');\n const [pollOptions, setPollOptions] = useState('');\n const [questionText, setQuestionText] = useState('');\n const polls = useLiveVirtualPolls({ sessionId, limit: pageSize, offset: pollOffset });\n const questions = useLiveVirtualQuestions({ sessionId, limit: pageSize, offset: questionOffset });\n const [openPoll, { loading: opening }] = useOpenVirtualPoll();\n const [closePoll, { loading: closing }] = useCloseVirtualPoll();\n const [votePoll, { loading: voting }] = useVoteVirtualPoll();\n const [askQuestion, { loading: asking }] = useAskVirtualQuestion();\n const [moderateQuestion, { loading: moderating }] = useModerateVirtualQuestion();\n\n const refresh = async () => {\n await Promise.allSettled([polls.refetch(), questions.refetch()]);\n };\n\n useEvmSubscription<{ eventfullyManagedVirtualEngagementChanged: boolean | null }>({\n query: virtualEngagementChangedSubscription,\n variables: { sessionId },\n operationName: 'VirtualEngagementChanged',\n onData: (data) => {\n if (data.eventfullyManagedVirtualEngagementChanged) void refresh();\n },\n pollFn: refresh,\n });\n\n const open = async () => {\n const failure = tr('eventfullymanaged.engagement.openFailed', 'Could not open the poll');\n const options = pollOptions\n .split('\\n')\n .map((option) => option.trim())\n .filter(Boolean);\n try {\n const result = await openPoll({ variables: { sessionId, prompt: prompt.trim(), options } });\n if (!mutationSucceeded(result, result.data?.poll?.id, failure)) return;\n setPrompt('');\n setPollOptions('');\n setPollOffset(0);\n await polls.refetch({ sessionId, limit: pageSize, offset: 0 });\n } catch (error) {\n notify.error(failure, describeError(error));\n }\n };\n\n const close = async (pollId: string) => {\n const failure = tr('eventfullymanaged.engagement.closeFailed', 'Could not close the poll');\n try {\n const result = await closePoll({ variables: { sessionId, pollId } });\n if (mutationSucceeded(result, result.data?.poll?.id, failure)) await polls.refetch();\n } catch (error) {\n notify.error(failure, describeError(error));\n }\n };\n\n const vote = async (pollId: string, optionIndex: number) => {\n const failure = tr('eventfullymanaged.engagement.voteFailed', 'Could not record your vote');\n try {\n const result = await votePoll({ variables: { sessionId, pollId, optionIndex } });\n if (mutationSucceeded(result, result.data?.poll?.id, failure)) await polls.refetch();\n } catch (error) {\n notify.error(failure, describeError(error));\n }\n };\n\n const ask = async () => {\n const failure = tr('eventfullymanaged.engagement.askFailed', 'Could not submit the question');\n try {\n const result = await askQuestion({ variables: { sessionId, text: questionText.trim() } });\n if (!mutationSucceeded(result, result.data?.question?.id, failure)) return;\n setQuestionText('');\n setQuestionOffset(0);\n await questions.refetch({ sessionId, limit: pageSize, offset: 0 });\n } catch (error) {\n notify.error(failure, describeError(error));\n }\n };\n\n const moderate = async (questionId: string, decision: 'APPROVE' | 'REJECT') => {\n const failure = tr('eventfullymanaged.engagement.moderateFailed', 'Could not moderate the question');\n try {\n const result = await moderateQuestion({ variables: { sessionId, questionId, decision } });\n if (mutationSucceeded(result, result.data?.question?.id, failure)) await questions.refetch();\n } catch (error) {\n notify.error(failure, describeError(error));\n }\n };\n\n const questionLabels = {\n PENDING: tr('eventfullymanaged.engagement.pending', 'Pending approval'),\n APPROVED: tr('eventfullymanaged.engagement.approved', 'Approved'),\n REJECTED: tr('eventfullymanaged.engagement.rejected', 'Rejected'),\n };\n\n return (\n <div className=\"grid gap-4 lg:grid-cols-2\">\n <GlassCard treatment=\"plain\" className=\"space-y-4 border-border-seam p-4\">\n <h2 className=\"text-sm font-semibold text-text-primary\">\n {tr('eventfullymanaged.engagement.livePolls', 'Live polls')}\n </h2>\n {canModerate && (\n <form\n className=\"grid gap-2 border-b border-border-seam pb-4\"\n onSubmit={(event) => {\n event.preventDefault();\n void open();\n }}\n >\n <Label htmlFor={`${id}-prompt`}>{tr('eventfullymanaged.engagement.pollPrompt', 'Poll question')}</Label>\n <Textarea\n id={`${id}-prompt`}\n value={prompt}\n maxLength={300}\n rows={2}\n onChange={(event) => setPrompt(event.target.value)}\n />\n <Label htmlFor={`${id}-options`}>\n {tr('eventfullymanaged.engagement.pollOptions', 'Answers, one per line')}\n </Label>\n <Textarea\n id={`${id}-options`}\n value={pollOptions}\n maxLength={2010}\n rows={3}\n onChange={(event) => setPollOptions(event.target.value)}\n />\n <Button\n type=\"submit\"\n size=\"sm\"\n className=\"justify-self-start\"\n disabled={opening || !prompt.trim() || !pollOptions.trim()}\n >\n {tr('eventfullymanaged.engagement.openPoll', 'Open poll')}\n </Button>\n </form>\n )}\n {polls.error && (\n <p role=\"alert\" className=\"text-sm text-status-danger\">\n {tr('eventfullymanaged.engagement.pollLoadError', 'Could not load live polls.')}\n </p>\n )}\n {polls.loading && !polls.data && <Skeleton className=\"h-12 w-full\" />}\n {polls.data?.polls.items.length === 0 && (\n <p className=\"text-sm text-text-muted\">{tr('eventfullymanaged.engagement.noPolls', 'No polls yet.')}</p>\n )}\n {polls.data?.polls.items.map((poll) => (\n <article key={poll.id} className=\"grid gap-2 rounded-card border border-border-seam p-3\">\n <div className=\"flex items-start justify-between gap-2\">\n <h3 className=\"text-sm font-semibold text-text-primary\">{poll.prompt}</h3>\n <Badge variant={poll.status === 'OPEN' ? 'success' : 'secondary'}>\n {poll.status === 'OPEN'\n ? tr('eventfullymanaged.engagement.open', 'Open')\n : tr('eventfullymanaged.engagement.closed', 'Closed')}\n </Badge>\n </div>\n {poll.options.map((option, optionIndex) => (\n <Button\n key={option}\n type=\"button\"\n size=\"sm\"\n variant={poll.myOptionIndex === optionIndex ? 'secondary' : 'outline'}\n className=\"h-auto min-h-8 justify-between gap-3 whitespace-normal text-start\"\n aria-pressed={poll.myOptionIndex === optionIndex}\n disabled={poll.status !== 'OPEN' || poll.myOptionIndex !== null || voting}\n onClick={() => void vote(poll.id, optionIndex)}\n >\n <span>{option}</span>\n <span>{poll.voteCounts[optionIndex] ?? 0}</span>\n </Button>\n ))}\n {poll.myOptionIndex !== null && (\n <p className=\"text-xs text-text-muted\">\n {tr('eventfullymanaged.engagement.voteRecorded', 'Your vote was recorded.')}\n </p>\n )}\n {canModerate && poll.status === 'OPEN' && (\n <Button\n type=\"button\"\n size=\"sm\"\n variant=\"outline\"\n disabled={closing}\n onClick={() => void close(poll.id)}\n className=\"justify-self-start\"\n >\n {tr('eventfullymanaged.engagement.closePoll', 'Close poll')}\n </Button>\n )}\n </article>\n ))}\n <ResultsPager\n offset={pollOffset}\n hasMore={polls.data?.polls.hasMore ?? false}\n disabled={polls.loading}\n onChange={setPollOffset}\n />\n </GlassCard>\n\n <GlassCard treatment=\"plain\" className=\"space-y-4 border-border-seam p-4\">\n <h2 className=\"text-sm font-semibold text-text-primary\">\n {tr('eventfullymanaged.engagement.questions', 'Questions and answers')}\n </h2>\n <form\n className=\"grid gap-2 border-b border-border-seam pb-4\"\n onSubmit={(event) => {\n event.preventDefault();\n void ask();\n }}\n >\n <Label htmlFor={`${id}-question`}>{tr('eventfullymanaged.engagement.yourQuestion', 'Your question')}</Label>\n <Textarea\n id={`${id}-question`}\n rows={3}\n maxLength={500}\n value={questionText}\n onChange={(event) => setQuestionText(event.target.value)}\n />\n <p className=\"text-xs text-text-muted\">\n {tr(\n 'eventfullymanaged.engagement.moderationExplanation',\n 'The host reviews questions before other attendees can see them.'\n )}\n </p>\n <Button type=\"submit\" size=\"sm\" className=\"justify-self-start\" disabled={asking || !questionText.trim()}>\n {tr('eventfullymanaged.engagement.askQuestion', 'Submit question')}\n </Button>\n </form>\n {questions.error && (\n <p role=\"alert\" className=\"text-sm text-status-danger\">\n {tr('eventfullymanaged.engagement.questionLoadError', 'Could not load questions.')}\n </p>\n )}\n {questions.loading && !questions.data && <Skeleton className=\"h-12 w-full\" />}\n {questions.data?.questions.items.length === 0 && (\n <p className=\"text-sm text-text-muted\">\n {tr('eventfullymanaged.engagement.noQuestions', 'No questions yet.')}\n </p>\n )}\n {questions.data?.questions.items.map((question) => (\n <article key={question.id} className=\"space-y-2 rounded-card border border-border-seam p-3\">\n <div className=\"flex flex-wrap items-center gap-2\">\n {(canModerate || question.isOwn) && (\n <Badge variant={question.status === 'APPROVED' ? 'success' : 'secondary'}>\n {questionLabels[question.status]}\n </Badge>\n )}\n {question.isOwn && (\n <span className=\"text-xs text-text-muted\">{tr('eventfullymanaged.engagement.you', 'You')}</span>\n )}\n </div>\n <p className=\"whitespace-pre-wrap break-words text-sm text-text-primary\">{question.text}</p>\n {canModerate && question.status === 'PENDING' && (\n <div className=\"flex flex-wrap gap-2\">\n <Button\n type=\"button\"\n size=\"sm\"\n disabled={moderating}\n onClick={() => void moderate(question.id, 'APPROVE')}\n >\n {tr('eventfullymanaged.engagement.approve', 'Approve')}\n </Button>\n <Button\n type=\"button\"\n size=\"sm\"\n variant=\"outline\"\n disabled={moderating}\n onClick={() => void moderate(question.id, 'REJECT')}\n >\n {tr('eventfullymanaged.engagement.reject', 'Reject')}\n </Button>\n </div>\n )}\n </article>\n ))}\n <ResultsPager\n offset={questionOffset}\n hasMore={questions.data?.questions.hasMore ?? false}\n disabled={questions.loading}\n onChange={setQuestionOffset}\n />\n </GlassCard>\n </div>\n );\n}\n"],"mappings":";;;;;;;;;AAkBA,IAAMA,IAAW;AAEjB,SAASC,EAAa,EACpB,WACA,YACA,aACA,eAMC;CACD,IAAMC,IAAKC,EAAM;CAEjB,OADIC,MAAW,KAAK,CAACC,IAAgB,OAEnC,kBAAC,OAAD;EAAK,WAAU;EAAf,UAAA,CACE,kBAACC,GAAD;GACE,MAAK;GACL,MAAK;GACL,SAAQ;GACR,UAAUC,KAAYH,MAAW;GACjC,eAAeI,EAASJ,IAASJ,CAAQ;GAExC,UAAAE,EAAG,yCAAyC,UAAU;EACjD,CAAA,GACR,kBAACI,GAAD;GACE,MAAK;GACL,MAAK;GACL,SAAQ;GACR,UAAUC,KAAY,CAACF;GACvB,eAAeG,EAASJ,IAASJ,CAAQ;GAExC,UAAAE,EAAG,qCAAqC,MAAM;EACzC,CAAA,CACL;;AAET;AAEA,SAAgBO,EAAuB,EAAE,cAAW,kBAA4D;CAC9G,IAAMP,IAAKC,EAAM,GACXO,IAAKC,EAAM,GACX,CAACC,GAAYC,KAAiBC,EAAS,CAAC,GACxC,CAACC,GAAgBC,KAAqBF,EAAS,CAAC,GAChD,CAACG,GAAQC,KAAaJ,EAAS,EAAE,GACjC,CAACK,GAAaC,KAAkBN,EAAS,EAAE,GAC3C,CAACO,GAAcC,KAAmBR,EAAS,EAAE,GAC7CS,IAAQC,EAAoB;EAAE;EAAW,OAAOxB;EAAU,QAAQY;CAAW,CAAC,GAC9Ea,IAAYC,EAAwB;EAAE;EAAW,OAAO1B;EAAU,QAAQe;CAAe,CAAC,GAC1F,CAACY,GAAU,EAAE,SAASC,OAAaC,EAAmB,GACtD,CAACC,GAAW,EAAE,S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