@burdenoff/microfe-support 2026.830.1 → 2026.902.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generated/global-operations.d.ts +42 -0
- package/dist/generated/global-operations.js +252 -239
- package/dist/generated/global-operations.js.map +1 -1
- package/dist/generated/global-types.d.ts +27 -0
- package/dist/generated/global-types.js.map +1 -1
- package/dist/index.js +2 -1
- package/dist/support/SupportAdminRoot.js +31 -34
- package/dist/support/SupportAdminRoot.js.map +1 -1
- package/dist/support/SupportUserRoot.js +19 -22
- package/dist/support/SupportUserRoot.js.map +1 -1
- package/dist/support/components/PageLayout.d.ts +1 -1
- package/dist/support/components/PageLayout.js +46 -44
- package/dist/support/components/PageLayout.js.map +1 -1
- package/dist/support/components/analytics/CategoryBreakdown.js +24 -23
- package/dist/support/components/analytics/CategoryBreakdown.js.map +1 -1
- package/dist/support/components/analytics/PriorityBreakdown.js +27 -26
- package/dist/support/components/analytics/PriorityBreakdown.js.map +1 -1
- package/dist/support/components/analytics/SLAReport.js +48 -54
- package/dist/support/components/analytics/SLAReport.js.map +1 -1
- package/dist/support/components/analytics/SatisfactionDistribution.js +56 -59
- package/dist/support/components/analytics/SatisfactionDistribution.js.map +1 -1
- package/dist/support/components/analytics/TopAgents.js +27 -26
- package/dist/support/components/analytics/TopAgents.js.map +1 -1
- package/dist/support/components/analytics/TrendChart.js +23 -21
- package/dist/support/components/analytics/TrendChart.js.map +1 -1
- package/dist/support/components/careers/BulkCandidateDialogs.d.ts +1 -0
- package/dist/support/components/careers/BulkCandidateDialogs.js +351 -214
- package/dist/support/components/careers/BulkCandidateDialogs.js.map +1 -1
- package/dist/support/components/careers/BulkOperationFeedback.d.ts +4 -1
- package/dist/support/components/careers/BulkOperationFeedback.js +49 -1
- package/dist/support/components/careers/BulkOperationFeedback.js.map +1 -1
- package/dist/support/components/kb/ArticleForm.js +145 -132
- package/dist/support/components/kb/ArticleForm.js.map +1 -1
- package/dist/support/components/settings/CannedResponsesSettings.js +104 -103
- package/dist/support/components/settings/CannedResponsesSettings.js.map +1 -1
- package/dist/support/components/settings/SLAPoliciesSettings.js +120 -123
- package/dist/support/components/settings/SLAPoliciesSettings.js.map +1 -1
- package/dist/support/components/settings/TicketCategoriesSettings.js +175 -180
- package/dist/support/components/settings/TicketCategoriesSettings.js.map +1 -1
- package/dist/support/components/tickets/AttachmentList.js +21 -20
- package/dist/support/components/tickets/AttachmentList.js.map +1 -1
- package/dist/support/components/tickets/MessageComposer.js +35 -35
- package/dist/support/components/tickets/MessageThread.js +55 -54
- package/dist/support/components/tickets/MessageThread.js.map +1 -1
- package/dist/support/components/tickets/TicketDetailHeader.js +62 -57
- package/dist/support/components/tickets/TicketDetailHeader.js.map +1 -1
- package/dist/support/components/tickets/TicketHeader.js +47 -47
- package/dist/support/components/tickets/TicketSidebar.js +122 -121
- package/dist/support/components/tickets/TicketSidebar.js.map +1 -1
- package/dist/support/hooks/index.d.ts +1 -0
- package/dist/support/hooks/index.js +1 -0
- package/dist/support/hooks/useTr.d.ts +16 -0
- package/dist/support/hooks/useTr.js +12 -0
- package/dist/support/hooks/useTr.js.map +1 -0
- package/dist/support/index.d.ts +1 -0
- package/dist/support/index.js +2 -1
- package/dist/support/pages/AnalyticsPage.js +151 -145
- package/dist/support/pages/AnalyticsPage.js.map +1 -1
- package/dist/support/pages/ArticleDetailAdminPage.js +134 -147
- package/dist/support/pages/ArticleDetailAdminPage.js.map +1 -1
- package/dist/support/pages/ArticleDetailUserPage.js +70 -79
- package/dist/support/pages/ArticleDetailUserPage.js.map +1 -1
- package/dist/support/pages/ContactInquiriesPage.js +140 -139
- package/dist/support/pages/ContactInquiriesPage.js.map +1 -1
- package/dist/support/pages/ContactInquiryDetailPage.js +259 -232
- package/dist/support/pages/ContactInquiryDetailPage.js.map +1 -1
- package/dist/support/pages/CreateArticlePage.js +57 -56
- package/dist/support/pages/CreateArticlePage.js.map +1 -1
- package/dist/support/pages/CreateTicketPage.js +151 -146
- package/dist/support/pages/CreateTicketPage.js.map +1 -1
- package/dist/support/pages/EditArticlePage.js +80 -79
- package/dist/support/pages/EditArticlePage.js.map +1 -1
- package/dist/support/pages/JobApplicationsPage.js +511 -494
- package/dist/support/pages/JobApplicationsPage.js.map +1 -1
- package/dist/support/pages/KnowledgeBaseAdminPage.js +92 -99
- package/dist/support/pages/KnowledgeBaseAdminPage.js.map +1 -1
- package/dist/support/pages/KnowledgeBaseUserPage.js +85 -92
- package/dist/support/pages/KnowledgeBaseUserPage.js.map +1 -1
- package/dist/support/pages/SettingsPage.js +88 -87
- package/dist/support/pages/SettingsPage.js.map +1 -1
- package/dist/support/pages/TicketDetailAdminPage.js +91 -90
- package/dist/support/pages/TicketDetailAdminPage.js.map +1 -1
- package/dist/support/pages/TicketDetailUserPage.js +120 -118
- package/dist/support/pages/TicketDetailUserPage.js.map +1 -1
- package/dist/support/pages/TicketListPage.js +139 -139
- package/dist/support/translations/en.d.ts +814 -0
- package/dist/support/translations/en.js +779 -0
- package/dist/support/translations/en.js.map +1 -0
- package/dist/support/translations/index.d.ts +1 -0
- package/dist/support/utils/bulkCandidateOperations.d.ts +15 -0
- package/dist/support/utils/bulkCandidateOperations.js +19 -4
- package/dist/support/utils/bulkCandidateOperations.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"en.js","names":[],"sources":["../../../src/support/translations/en.ts"],"sourcesContent":["// This file is auto-generated by scripts/extract-i18n.ts.\n// Do not edit it manually; run `bun scripts/extract-i18n.ts` instead.\nexport const enTranslations = {\n common: {\n cancel: 'Cancel',\n },\n support: {\n analytics: {\n categoryBreakdown: {\n title: 'Top Categories',\n },\n metric: {\n avgResponseTime: {\n subtitle: 'Resolution: {{resolution}}h',\n title: 'Avg Response Time',\n },\n satisfaction: {\n subtitle: 'CSAT: {{csat}}%, NPS: {{nps}}',\n title: 'Satisfaction',\n },\n slaCompliance: {\n subtitle: '{{count}} breached',\n title: 'SLA Compliance',\n },\n totalTickets: {\n subtitle: '{{open}} open, {{resolved}} resolved',\n title: 'Total Tickets',\n },\n },\n nextSteps: {\n export: {\n description: 'Share performance with stakeholders in one click.',\n label: 'Export a PDF report',\n },\n period: {\n description: 'Compare the last 7, 30, 90 days or a full year to spot trends.',\n label: 'Switch the reporting period',\n },\n sla: {\n description: 'Scroll to the SLA report to see where commitments slipped.',\n label: 'Review SLA compliance',\n },\n title: 'Make the most of your data',\n },\n priorityBreakdown: {\n title: 'Tickets by Priority',\n },\n purpose:\n 'Measure how your support operation is performing. Track ticket volume, first-response and resolution times, SLA compliance and customer satisfaction so you can spot bottlenecks, balance agent workload, and prove the impact of your team. Adjust the period to compare trends over time.',\n satisfaction: {\n avgRating: 'Avg Rating',\n csat: 'CSAT',\n distribution: 'Rating Distribution ({{count}} responses)',\n nps: 'NPS',\n promoterScore: 'Promoter Score',\n satisfaction: 'Satisfaction',\n title: 'Customer Satisfaction',\n },\n slaReport: {\n avg: 'Avg: {{value}}h',\n breached: 'Breached',\n byPriority: 'Compliance by Priority',\n firstResponse: 'First Response',\n resolution: 'Resolution',\n ticketsCount: '{{count}} tickets',\n title: 'SLA Compliance Report',\n totalTickets: 'Total Tickets',\n },\n title: 'Support Analytics',\n topAgents: {\n empty: 'No agent data available',\n resolved: '{{count}} resolved',\n title: 'Top Performing Agents',\n },\n trendChart: {\n title: 'Ticket Volume Trends',\n },\n },\n article: {\n actions: {\n archive: 'Archive',\n archiving: 'Archiving…',\n backToKnowledgeBase: 'Back to Knowledge Base',\n delete: 'Delete',\n deleting: 'Deleting…',\n edit: 'Edit',\n publish: 'Publish',\n publishing: 'Publishing…',\n unpublish: 'Unpublish',\n unpublishing: 'Unpublishing…',\n },\n adminRequired: {\n createDescription: 'You need administrator privileges to create knowledge base articles.',\n editDescription: 'You need administrator privileges to edit knowledge base articles.',\n title: 'Admin Access Required',\n },\n createPurpose:\n 'Write a knowledge base article to answer a question your customers keep asking. A clear, well-categorised guide deflects repeat tickets and helps users self-serve. Save as a draft while you work, then publish when it is ready for customers to see.',\n createSubtitle: 'Add a new article to the knowledge base',\n createTitle: 'Create New Article',\n deleteConfirm: {\n confirm: 'Delete',\n message: 'Delete this article? This cannot be undone.',\n title: 'Delete Article',\n },\n deleteDialog: {\n description: 'Are you sure you want to delete \"{{title}}\"? This action cannot be undone.',\n title: 'Delete Article?',\n },\n editPurpose:\n 'Refine an existing knowledge base article. Keep guides accurate as your product evolves, fix unclear steps, or move an article between draft and published. Changes go live for customers as soon as you save a published article.',\n editTitle: 'Edit Article',\n errors: {\n archiveFailed: 'Failed to archive article.',\n createFailed: 'Failed to create article. Please try again.',\n deleteFailed: 'Failed to delete article.',\n publishFailed: 'Failed to publish article.',\n unpublishFailed: 'Failed to unpublish article.',\n updateFailed: 'Failed to update article. Please try again.',\n },\n feedback: {\n description: 'See how readers rate this guide — low scores are a cue to revise it.',\n no: 'No ({{count}})',\n title: 'Was this article helpful?',\n userDescription: 'Your feedback helps us improve our guides for everyone.',\n yes: 'Yes ({{count}})',\n },\n loading: 'Loading article...',\n nextSteps: {\n back: {\n description: 'Return to the full list of articles.',\n label: 'Back to the knowledge base',\n },\n edit: {\n description: 'Update the content, category or tags.',\n label: 'Edit the article',\n },\n publish: {\n description: 'Make this article visible to customers.',\n label: 'Publish it',\n },\n title: 'Manage this article',\n unpublish: {\n description: 'Hide it from customers while you revise.',\n label: 'Unpublish or archive',\n },\n },\n notFound: {\n description: \"The article you're looking for doesn't exist or has been removed.\",\n editDescription: \"The article you're trying to edit doesn't exist or has been removed.\",\n title: 'Article not found',\n },\n notifications: {\n archived: 'Article archived.',\n created: 'Article created successfully!',\n deleted: 'Article deleted successfully!',\n published: 'Article published successfully!',\n unpublished: 'Article unpublished.',\n updated: 'Article updated successfully!',\n },\n status: {\n archived: 'Archived',\n draft: 'Draft',\n published: 'Published',\n },\n views: '{{count}} views',\n },\n articleForm: {\n actions: {\n cancel: 'Cancel',\n create: 'Create Article',\n edit: 'Edit',\n preview: 'Preview',\n saving: 'Saving…',\n update: 'Update Article',\n },\n labels: {\n category: 'Category',\n content: 'Content',\n excerpt: 'Excerpt',\n metaDescription: 'Meta Description',\n slug: 'URL Slug',\n status: 'Status',\n tags: 'Tags',\n title: 'Title',\n },\n markdownHint:\n 'Supports Markdown: **bold**, *italic*, # headings, - lists, [links](url), ```code```',\n nothingToPreview: 'Nothing to preview',\n placeholders: {\n category: 'Select a category',\n content: 'Article content (supports Markdown)',\n excerpt: 'Brief summary of the article (displayed in search results)',\n metaDescription: 'SEO meta description (optional)',\n slug: 'article-url-slug',\n tags: 'Enter tags separated by commas (e.g., billing, account, setup)',\n title: 'Article title',\n },\n slugHint: 'Auto-generated from title. Edit to customize.',\n status: {\n draft: 'Draft - Not visible to users',\n published: 'Published - Visible to all users',\n },\n },\n attachmentList: {\n loading: 'Loading attachments…',\n },\n contactInquiries: {\n empty: {\n description: 'Contact form submissions from your product websites will appear here.',\n title: 'No inquiries yet',\n },\n error: {\n title: 'Failed to load inquiries',\n },\n filters: {\n allProducts: 'All products',\n allStatuses: 'All statuses',\n productLabel: 'Product',\n statusLabel: 'Status',\n toggle: 'Filters',\n },\n list: {\n productTitle: 'Product: {{name}}',\n },\n loadMore: 'Load more',\n loading: 'Loading inquiries…',\n purpose:\n \"Every message sent through your product websites' contact forms lands here. Triage sales and support leads, mark spam, and convert genuine inquiries into tickets so nothing from a prospective customer slips through the cracks. Open an inquiry to read it in full and take action.\",\n search: {\n aria: 'Search inquiries',\n placeholder: 'Search by name, email, or subject...',\n },\n status: {\n archived: 'Archived',\n converted: 'Converted',\n new: 'New',\n reviewed: 'Reviewed',\n spam: 'Spam',\n },\n subtitle: 'Website contact form submissions',\n title: 'Contact Inquiries',\n },\n contactInquiryDetail: {\n actions: {\n archive: 'Archive',\n backToInquiries: 'Back to Inquiries',\n convertToTicket: 'Convert to Ticket',\n replyViaEmail: 'Reply via Email',\n statusLabel: 'Status',\n title: 'Actions',\n },\n additionalData: {\n title: 'Additional Data',\n },\n contactInfo: {\n copyEmail: 'Copy email',\n labels: {\n category: 'Category',\n company: 'Company',\n email: 'Email',\n name: 'Name',\n product: 'Product',\n source: 'Source',\n },\n title: 'Contact Information',\n },\n from: 'from',\n loading: 'Loading inquiry details…',\n message: {\n title: 'Message',\n },\n nextSteps: {\n archive: {\n description: 'Clear out anything that needs no follow-up.',\n label: 'Archive or mark spam',\n },\n convert: {\n description: 'Turn a real request into a tracked support ticket.',\n label: 'Convert to a ticket',\n },\n reply: {\n description: 'Send a branded email response from the Reply panel.',\n label: 'Reply to the sender',\n },\n title: 'Handle this inquiry',\n },\n notFound: {\n description: \"This inquiry may have been deleted or you don't have access.\",\n title: 'Inquiry not found',\n },\n notifications: {\n replySent: 'Reply sent successfully!',\n statusUpdated: 'Status updated successfully',\n },\n purpose:\n 'Everything a prospect or customer sent through your contact form, in one place. Read the message, reply by branded email, and decide what happens next — convert a genuine lead into a support ticket, mark it reviewed, or archive spam. Use the actions on the right to move it forward.',\n reply: {\n ariaLabel: 'Reply message',\n placeholder: 'Type your reply... This will be sent as a branded email to the contact.',\n send: 'Send Reply',\n title: 'Reply',\n },\n status: {\n archived: 'Archived',\n converted: 'Converted to Ticket',\n new: 'New',\n reviewed: 'Reviewed',\n spam: 'Spam',\n },\n timeAgo: {\n days: '{{days}}d ago',\n hours: '{{hours}}h ago',\n minutes: '{{minutes}}m ago',\n },\n timeline: {\n converted: 'Converted to Ticket',\n lastUpdated: 'Last Updated',\n submitted: 'Submitted',\n title: 'Timeline',\n },\n },\n createTicket: {\n actions: {\n cancel: 'Cancel',\n submit: 'Create Ticket',\n submitting: 'Creating…',\n },\n attachments: {\n label: 'Attach files, screenshots, logs, or documents',\n remove: 'Remove attachment {{fileName}}',\n uploading: 'Uploading {{fileName}}...',\n },\n category: {\n loading: 'Loading categories...',\n select: 'Select a category',\n },\n errors: {\n createFailed: 'Failed to create ticket. Please try again.',\n },\n labels: {\n attachments: 'Attachments',\n category: 'Category',\n description: 'Description',\n priority: 'Priority',\n subject: 'Subject',\n },\n markdownHint: 'Markdown is supported, including fenced code blocks.',\n notifications: {\n created: 'Ticket created successfully!',\n },\n placeholders: {\n description: 'Provide detailed information about your issue',\n subject: 'Brief description of your issue',\n },\n priority: {\n critical: 'Critical - Complete blocker, urgent',\n high: 'High - Significant impact on work',\n low: 'Low - General question or minor issue',\n normal: 'Normal - Standard support request',\n },\n purpose:\n 'Tell us what is going wrong and our support team will pick it up. The clearer your subject, description and priority, the faster we can help — attach screenshots, logs or files if they explain the problem. You will be able to follow the reply right here once it is submitted.',\n subtitle: 'Submit a new support request',\n title: 'Create New Ticket',\n validation: {\n descriptionMin: 'Description must be at least {{min}} characters long.',\n subjectMin: 'Subject must be at least {{min}} characters long.',\n },\n },\n footer: {\n ready: 'Support Ready',\n },\n knowledgeBase: {\n actions: {\n newArticle: 'New Article',\n },\n allArticles: 'All Articles',\n articleCount: '{{count}} articles',\n browseByCategory: 'Browse by Category',\n clear: 'Clear',\n clearSearch: 'Clear Search',\n empty: {\n description: 'Check back later for helpful articles and guides',\n searchDescription: 'Try adjusting your search terms or browse by category',\n searchTitle: 'No articles found',\n title: 'No articles available',\n },\n helpful: '{{count}} helpful',\n loadMore: 'Load More',\n loading: 'Loading articles...',\n popularArticles: 'Popular Articles',\n purposeAdmin:\n 'Author and curate the self-serve help center customers see. Write clear how-to guides and FAQ articles here to deflect repetitive tickets — well-covered topics mean fewer support requests. Draft and archived articles are visible to you but hidden from customers until published.',\n purposeUser:\n 'Your self-serve help center. Search how-to guides and answers before raising a ticket — most common questions (setup, billing, troubleshooting) are answered here in seconds. Browse by category or check the most popular articles below.',\n searchPlaceholder: 'Search for help articles...',\n searchResults: 'Search Results for \"{{query}}\"',\n status: {\n archived: 'Archived',\n draft: 'Draft',\n },\n subtitleAdmin: 'Manage help articles and documentation',\n subtitleUser: 'Find answers to common questions and learn how to use our platform',\n title: 'Knowledge Base',\n views: '{{count}} views',\n },\n loading: {\n default: 'Loading...',\n },\n messageComposer: {\n attachFiles: 'Attach files',\n cannedResponses: 'Canned responses',\n hint: 'Markdown supported. Press Enter to send, Shift+Enter for new line',\n internalNote: 'Internal Note (not visible to customer)',\n loadingCannedResponses: 'Loading saved replies...',\n noCannedResponses: 'No saved replies available',\n selectCannedResponse: 'Insert a saved reply',\n send: 'Send',\n sending: 'Sending...',\n },\n messageThread: {\n agentAlias: 'Support Agent',\n customer: 'Customer',\n empty: {\n description: 'Start the conversation by sending a message',\n title: 'No messages yet',\n },\n internalBadge: 'Internal',\n you: 'You',\n },\n nav: {\n analytics: 'Analytics',\n contactInquiries: 'Contact Inquiries',\n interviewers: 'Interviewers',\n jobApplications: 'Job Applications',\n jobPostings: 'Job Postings',\n knowledgeBase: 'Knowledge Base',\n settings: 'Settings',\n tickets: 'Tickets',\n },\n root: {\n errorFallback: 'Something went wrong loading this module. Please refresh the page.',\n },\n settings: {\n cannedResponses: {\n actions: {\n delete: 'Delete canned response',\n edit: 'Edit canned response',\n new: 'New Response',\n },\n empty: 'No canned responses configured',\n errors: {\n deleteFailed: 'Failed to delete response.',\n saveFailed: 'Failed to save response.',\n },\n form: {\n cancel: 'Cancel',\n create: 'Create Response',\n createTitle: 'Create New Response',\n editTitle: 'Edit Response',\n responseLabel: 'Response',\n responsePlaceholder: 'Write the saved reply agents can reuse.',\n saving: 'Saving...',\n tagsLabel: 'Tags',\n tagsPlaceholder: 'billing, onboarding, bug',\n titleLabel: 'Title',\n titlePlaceholder: 'e.g., Troubleshooting next steps',\n update: 'Update Response',\n },\n subtitle: 'Pre-written responses for common customer inquiries',\n title: 'Canned Responses',\n },\n categories: {\n actions: {\n activate: 'Activate',\n cancel: 'Cancel',\n create: 'Create Category',\n creating: 'Creating...',\n deactivate: 'Deactivate',\n delete: 'Delete category',\n edit: 'Edit category',\n new: 'New Category',\n update: 'Update Category',\n updating: 'Updating...',\n },\n aria: {\n activate: 'Activate category',\n deactivate: 'Deactivate category',\n delete: 'Delete category',\n edit: 'Edit category',\n },\n articleCount: '{{count}} articles',\n deleteDialog: {\n cancel: 'Cancel',\n confirm: 'Delete',\n description:\n 'Are you sure you want to delete this category? This action cannot be undone.',\n title: 'Delete category?',\n },\n empty: {\n createLink: 'Create your first category',\n title: 'No categories configured',\n },\n errors: {\n createFailed: 'Failed to create category.',\n deleteBlocked: 'Cannot delete category with {{count}} articles. Move articles first.',\n deleteFailed: 'Failed to delete category.',\n statusUpdateFailed: 'Failed to update category status.',\n updateFailed: 'Failed to update category.',\n },\n form: {\n activeLabel: 'Active',\n colorAria: 'Use {{color}} category color',\n colorLabel: 'Color',\n descriptionLabel: 'Description',\n descriptionPlaceholder: 'Brief description of this category...',\n iconLabel: 'Icon (emoji)',\n iconPlaceholder: 'e.g., 🛠️',\n nameLabel: 'Category Name',\n namePlaceholder: 'e.g., Technical Support',\n slugHint: 'URL-friendly identifier (auto-generated from name)',\n slugLabel: 'Slug',\n slugPlaceholder: 'technical-support',\n },\n inactiveBadge: 'Inactive',\n modal: {\n createTitle: 'Create Category',\n editTitle: 'Edit Category',\n },\n notifications: {\n activated: 'Category activated.',\n created: 'Category created successfully!',\n deactivated: 'Category deactivated.',\n deleted: 'Category deleted successfully!',\n updated: 'Category updated successfully!',\n },\n subtitle: 'Organize tickets and knowledge base articles by category',\n title: 'Ticket Categories',\n },\n loading: 'Loading settings...',\n nextSteps: {\n categories: {\n description: 'Group tickets and articles for easier triage.',\n label: 'Organise categories',\n },\n responses: {\n description: 'Reusable replies that agents can insert instantly.',\n label: 'Create canned responses',\n },\n sla: {\n description: 'Set response and resolution targets per priority.',\n label: 'Define SLA policies',\n },\n title: 'Set up your support desk',\n },\n permission: {\n description:\n 'You need administrator privileges to access support settings. Please contact your workspace admin for access.',\n title: 'Admin Access Required',\n },\n purpose:\n 'Tune how your support desk runs. Define SLA policies so high-priority tickets get a guaranteed response time, write canned responses so agents reply to common questions in one click, and organise tickets and articles into categories. These settings shape the experience for both your team and your customers.',\n sla: {\n actions: {\n delete: 'Delete SLA policy',\n edit: 'Edit SLA policy',\n new: 'New Policy',\n },\n businessHoursOnly: 'Business hours only',\n empty: 'No SLA policies configured',\n form: {\n businessHoursLabel: 'Business hours only',\n cancel: 'Cancel',\n create: 'Create Policy',\n createTitle: 'Create New Policy',\n editTitle: 'Edit Policy',\n firstResponseLabel: 'First Response (minutes)',\n nameLabel: 'Policy Name',\n namePlaceholder: 'e.g., Critical Response SLA',\n priorityLabel: 'Priority',\n resolutionLabel: 'Resolution Time (minutes)',\n saving: 'Saving...',\n update: 'Update Policy',\n },\n inactiveBadge: 'Inactive',\n subtitle: 'Manage service level agreement policies for different priority levels',\n summary:\n 'Priority: {{priority}} • First Response: {{firstResponse}}m • Resolution: {{resolution}}m',\n title: 'SLA Policies',\n twentyFourSeven: '24/7',\n },\n subtitle: 'Configure support module preferences and policies',\n tabs: {\n categories: 'Categories',\n responses: 'Canned Responses',\n sla: 'SLA Policies',\n },\n title: 'Support Settings',\n },\n shared: {\n category: {\n billingAccount: 'Billing & Account',\n bugReport: 'Bug Report',\n featureRequest: 'Feature Request',\n generalSupport: 'General Support',\n technicalSupport: 'Technical Support',\n },\n messageType: {\n agent: 'Agent',\n customer: 'Customer',\n internalNote: 'Internal Note',\n system: 'System',\n },\n notAvailable: 'N/A',\n priority: {\n critical: 'Critical',\n high: 'High',\n low: 'Low',\n normal: 'Normal',\n },\n source: {\n api: 'API',\n email: 'Email',\n import: 'Import',\n inApp: 'In-App',\n phone: 'Phone',\n website: 'Website',\n },\n status: {\n closed: 'Closed',\n inProgress: 'In Progress',\n new: 'New',\n reopened: 'Reopened',\n resolved: 'Resolved',\n waitingCustomer: 'Waiting on Customer',\n },\n uncategorized: 'Uncategorized',\n unknown: 'Unknown',\n },\n ticketDetail: {\n actions: {\n back: 'Back to Tickets',\n createNewTicket: 'Create New Ticket',\n reopen: 'Reopen',\n },\n conversationTitle: 'Conversation',\n descriptionHeading: 'Description',\n descriptionTitle: 'Customer request — Description',\n error: {\n description: 'An error occurred while loading the ticket. Please try again.',\n title: 'Failed to load ticket',\n },\n errors: {\n attachmentUploadFailed: 'Attachment upload failed: {{message}}',\n changeStatus: 'Failed to change ticket status.',\n messageSentAttachmentsFailed: 'Message sent, but attachments failed: {{message}}',\n nothingToSend: 'Nothing to send.',\n reopenFailed: 'Failed to reopen ticket.',\n reopenLimit:\n 'You have reached the maximum number of reopens for this ticket. Please create a new ticket to continue.',\n reviewSubmitFailed: 'Failed to submit review.',\n sendMessage: 'Failed to send message.',\n uploadAttachments: 'Failed to upload attachments.',\n },\n loading: 'Loading ticket details...',\n meta: {\n created: 'Created {{date}}',\n due: 'Due {{date}}',\n sla: 'SLA: {{label}}',\n },\n nextSteps: {\n inProgress: {\n description: 'Let the customer know you are working on it.',\n label: 'Mark as In Progress',\n },\n reply: {\n description: 'Draft a response in the composer below.',\n label: 'Reply to the customer',\n },\n resolve: {\n description: 'Close out the request once the issue is fixed.',\n label: 'Resolve the ticket',\n },\n title: 'Agent quick actions',\n },\n notFound: {\n description: \"The ticket you're looking for doesn't exist or has been deleted.\",\n title: 'Ticket not found',\n },\n notifications: {\n reopened: 'Ticket reopened.',\n reviewSubmitted: 'Thanks for your feedback!',\n },\n reopenCount: 'Reopen {{current}}/{{max}}',\n review: {\n description:\n 'Share a quick rating once the ticket is closed. Optional notes help improve future responses.',\n feedbackAgentHelpful: 'Agent helpful',\n feedbackIssueResolved: 'Issue resolved',\n feedbackKnowledgeBase: 'Knowledge base',\n feedbackOther: 'Other',\n feedbackResponseTime: 'Response time',\n feedbackTypeLabel: 'Feedback type',\n notesLabel: 'Notes',\n notesPlaceholder: 'Optional notes about the support experience',\n optional: 'Optional',\n rating1: '1 - Poor',\n rating2: '2 - Needs improvement',\n rating3: '3 - Okay',\n rating4: '4 - Good',\n rating5: '5 - Excellent',\n ratingLabel: 'Rating',\n selectRating: 'Select rating',\n submit: 'Submit review',\n submitting: 'Submitting...',\n title: 'Rate this support experience',\n },\n sidebar: {\n agentLabel: 'Agent',\n assignedTo: 'Assigned To',\n category: 'Category',\n createdBy: 'Created By',\n linkedTickets: {\n title: 'Linked Tickets',\n },\n satisfaction: {\n pending: 'Pending',\n title: 'Customer Satisfaction',\n },\n sla: {\n atRisk: 'SLA at risk',\n onTrack: 'On Track',\n policy: 'Policy: {{name}}',\n statusLabel: 'Status',\n },\n slaStatus: 'SLA Status',\n source: 'Source',\n tags: 'Tags',\n timestamps: {\n closed: 'Closed',\n created: 'Created',\n due: 'Due',\n firstResponse: 'First Response',\n resolved: 'Resolved',\n title: 'Timestamps',\n updated: 'Updated',\n },\n unknownUser: 'User {{id}}',\n },\n userNextSteps: {\n knowledgeBase: {\n description: 'Find answers to common questions instantly.',\n label: 'Browse the knowledge base',\n },\n newTicket: {\n description: 'Have a different issue? Start a fresh request.',\n label: 'Open a new ticket',\n },\n reopen: {\n description: 'Still stuck? Reopen to continue the conversation.',\n label: 'Reopen this ticket',\n },\n reply: {\n description: 'Add details or answer a question from our support team.',\n label: 'Reply to the conversation',\n },\n title: 'Quick actions',\n },\n },\n ticketList: {\n actions: {\n loadMore: 'Load More',\n loadingMore: 'Loading...',\n newTicket: 'New Ticket',\n },\n category: {\n general: 'General',\n },\n count: {\n plural: 'tickets',\n single: 'ticket',\n },\n empty: {\n action: 'Create Ticket',\n description: 'Create your first support ticket to get started, or adjust your filters.',\n title: 'No tickets found',\n },\n error: {\n description: 'An error occurred while loading tickets. Please try again.',\n title: 'Failed to load tickets',\n },\n filters: {\n priority: {\n all: 'All Priorities',\n label: 'Priority',\n },\n status: {\n all: 'All Statuses',\n label: 'Status',\n },\n toggle: 'Filters',\n },\n loading: 'Loading tickets...',\n meta: {\n assigned: 'Assigned',\n },\n missingProduct: {\n description:\n 'This support view needs a product configuration before tickets can be loaded.',\n title: 'Unable to load tickets for this product',\n },\n purpose: {\n admin:\n 'Your shared support inbox — triage, prioritise and respond to every customer ticket here. Filter by product, status, priority or assignee to find what needs attention, and open a ticket to read the full conversation and reply.',\n user: 'Track every help request you have raised. Open a ticket to follow the conversation with our team, add details, or share attachments — or create a new ticket whenever you hit a snag.',\n },\n scopedSearch: {\n hint: 'Search results are limited to tickets already loaded for this product. Load more tickets to expand the searchable set.',\n },\n search: {\n placeholder: 'Search tickets...',\n },\n sla: {\n atRisk: 'SLA At Risk',\n breached: 'SLA Breached',\n },\n subtitle: 'Manage and respond to customer support requests',\n title: 'Support Tickets',\n titleAccent: 'Tickets',\n },\n },\n} as const;\n"],"mappings":";AAEA,IAAa,IAAiB;CAC5B,QAAQ,EACN,QAAQ,SACV;CACA,SAAS;EACP,WAAW;GACT,mBAAmB,EACjB,OAAO,iBACT;GACA,QAAQ;IACN,iBAAiB;KACf,UAAU;KACV,OAAO;IACT;IACA,cAAc;KACZ,UAAU;KACV,OAAO;IACT;IACA,eAAe;KACb,UAAU;KACV,OAAO;IACT;IACA,cAAc;KACZ,UAAU;KACV,OAAO;IACT;GACF;GACA,WAAW;IACT,QAAQ;KACN,aAAa;KACb,OAAO;IACT;IACA,QAAQ;KACN,aAAa;KACb,OAAO;IACT;IACA,KAAK;KACH,aAAa;KACb,OAAO;IACT;IACA,OAAO;GACT;GACA,mBAAmB,EACjB,OAAO,sBACT;GACA,SACE;GACF,cAAc;IACZ,WAAW;IACX,MAAM;IACN,cAAc;IACd,KAAK;IACL,eAAe;IACf,cAAc;IACd,OAAO;GACT;GACA,WAAW;IACT,KAAK;IACL,UAAU;IACV,YAAY;IACZ,eAAe;IACf,YAAY;IACZ,cAAc;IACd,OAAO;IACP,cAAc;GAChB;GACA,OAAO;GACP,WAAW;IACT,OAAO;IACP,UAAU;IACV,OAAO;GACT;GACA,YAAY,EACV,OAAO,uBACT;EACF;EACA,SAAS;GACP,SAAS;IACP,SAAS;IACT,WAAW;IACX,qBAAqB;IACrB,QAAQ;IACR,UAAU;IACV,MAAM;IACN,SAAS;IACT,YAAY;IACZ,WAAW;IACX,cAAc;GAChB;GACA,eAAe;IACb,mBAAmB;IACnB,iBAAiB;IACjB,OAAO;GACT;GACA,eACE;GACF,gBAAgB;GAChB,aAAa;GACb,eAAe;IACb,SAAS;IACT,SAAS;IACT,OAAO;GACT;GACA,cAAc;IACZ,aAAa;IACb,OAAO;GACT;GACA,aACE;GACF,WAAW;GACX,QAAQ;IACN,eAAe;IACf,cAAc;IACd,cAAc;IACd,eAAe;IACf,iBAAiB;IACjB,cAAc;GAChB;GACA,UAAU;IACR,aAAa;IACb,IAAI;IACJ,OAAO;IACP,iBAAiB;IACjB,KAAK;GACP;GACA,SAAS;GACT,WAAW;IACT,MAAM;KACJ,aAAa;KACb,OAAO;IACT;IACA,MAAM;KACJ,aAAa;KACb,OAAO;IACT;IACA,SAAS;KACP,aAAa;KACb,OAAO;IACT;IACA,OAAO;IACP,WAAW;KACT,aAAa;KACb,OAAO;IACT;GACF;GACA,UAAU;IACR,aAAa;IACb,iBAAiB;IACjB,OAAO;GACT;GACA,eAAe;IACb,UAAU;IACV,SAAS;IACT,SAAS;IACT,WAAW;IACX,aAAa;IACb,SAAS;GACX;GACA,QAAQ;IACN,UAAU;IACV,OAAO;IACP,WAAW;GACb;GACA,OAAO;EACT;EACA,aAAa;GACX,SAAS;IACP,QAAQ;IACR,QAAQ;IACR,MAAM;IACN,SAAS;IACT,QAAQ;IACR,QAAQ;GACV;GACA,QAAQ;IACN,UAAU;IACV,SAAS;IACT,SAAS;IACT,iBAAiB;IACjB,MAAM;IACN,QAAQ;IACR,MAAM;IACN,OAAO;GACT;GACA,cACE;GACF,kBAAkB;GAClB,cAAc;IACZ,UAAU;IACV,SAAS;IACT,SAAS;IACT,iBAAiB;IACjB,MAAM;IACN,MAAM;IACN,OAAO;GACT;GACA,UAAU;GACV,QAAQ;IACN,OAAO;IACP,WAAW;GACb;EACF;EACA,gBAAgB,EACd,SAAS,uBACX;EACA,kBAAkB;GAChB,OAAO;IACL,aAAa;IACb,OAAO;GACT;GACA,OAAO,EACL,OAAO,2BACT;GACA,SAAS;IACP,aAAa;IACb,aAAa;IACb,cAAc;IACd,aAAa;IACb,QAAQ;GACV;GACA,MAAM,EACJ,cAAc,oBAChB;GACA,UAAU;GACV,SAAS;GACT,SACE;GACF,QAAQ;IACN,MAAM;IACN,aAAa;GACf;GACA,QAAQ;IACN,UAAU;IACV,WAAW;IACX,KAAK;IACL,UAAU;IACV,MAAM;GACR;GACA,UAAU;GACV,OAAO;EACT;EACA,sBAAsB;GACpB,SAAS;IACP,SAAS;IACT,iBAAiB;IACjB,iBAAiB;IACjB,eAAe;IACf,aAAa;IACb,OAAO;GACT;GACA,gBAAgB,EACd,OAAO,kBACT;GACA,aAAa;IACX,WAAW;IACX,QAAQ;KACN,UAAU;KACV,SAAS;KACT,OAAO;KACP,MAAM;KACN,SAAS;KACT,QAAQ;IACV;IACA,OAAO;GACT;GACA,MAAM;GACN,SAAS;GACT,SAAS,EACP,OAAO,UACT;GACA,WAAW;IACT,SAAS;KACP,aAAa;KACb,OAAO;IACT;IACA,SAAS;KACP,aAAa;KACb,OAAO;IACT;IACA,OAAO;KACL,aAAa;KACb,OAAO;IACT;IACA,OAAO;GACT;GACA,UAAU;IACR,aAAa;IACb,OAAO;GACT;GACA,eAAe;IACb,WAAW;IACX,eAAe;GACjB;GACA,SACE;GACF,OAAO;IACL,WAAW;IACX,aAAa;IACb,MAAM;IACN,OAAO;GACT;GACA,QAAQ;IACN,UAAU;IACV,WAAW;IACX,KAAK;IACL,UAAU;IACV,MAAM;GACR;GACA,SAAS;IACP,MAAM;IACN,OAAO;IACP,SAAS;GACX;GACA,UAAU;IACR,WAAW;IACX,aAAa;IACb,WAAW;IACX,OAAO;GACT;EACF;EACA,cAAc;GACZ,SAAS;IACP,QAAQ;IACR,QAAQ;IACR,YAAY;GACd;GACA,aAAa;IACX,OAAO;IACP,QAAQ;IACR,WAAW;GACb;GACA,UAAU;IACR,SAAS;IACT,QAAQ;GACV;GACA,QAAQ,EACN,cAAc,6CAChB;GACA,QAAQ;IACN,aAAa;IACb,UAAU;IACV,aAAa;IACb,UAAU;IACV,SAAS;GACX;GACA,cAAc;GACd,eAAe,EACb,SAAS,+BACX;GACA,cAAc;IACZ,aAAa;IACb,SAAS;GACX;GACA,UAAU;IACR,UAAU;IACV,MAAM;IACN,KAAK;IACL,QAAQ;GACV;GACA,SACE;GACF,UAAU;GACV,OAAO;GACP,YAAY;IACV,gBAAgB;IAChB,YAAY;GACd;EACF;EACA,QAAQ,EACN,OAAO,gBACT;EACA,eAAe;GACb,SAAS,EACP,YAAY,cACd;GACA,aAAa;GACb,cAAc;GACd,kBAAkB;GAClB,OAAO;GACP,aAAa;GACb,OAAO;IACL,aAAa;IACb,mBAAmB;IACnB,aAAa;IACb,OAAO;GACT;GACA,SAAS;GACT,UAAU;GACV,SAAS;GACT,iBAAiB;GACjB,cACE;GACF,aACE;GACF,mBAAmB;GACnB,eAAe;GACf,QAAQ;IACN,UAAU;IACV,OAAO;GACT;GACA,eAAe;GACf,cAAc;GACd,OAAO;GACP,OAAO;EACT;EACA,SAAS,EACP,SAAS,aACX;EACA,iBAAiB;GACf,aAAa;GACb,iBAAiB;GACjB,MAAM;GACN,cAAc;GACd,wBAAwB;GACxB,mBAAmB;GACnB,sBAAsB;GACtB,MAAM;GACN,SAAS;EACX;EACA,eAAe;GACb,YAAY;GACZ,UAAU;GACV,OAAO;IACL,aAAa;IACb,OAAO;GACT;GACA,eAAe;GACf,KAAK;EACP;EACA,KAAK;GACH,WAAW;GACX,kBAAkB;GAClB,cAAc;GACd,iBAAiB;GACjB,aAAa;GACb,eAAe;GACf,UAAU;GACV,SAAS;EACX;EACA,MAAM,EACJ,eAAe,qEACjB;EACA,UAAU;GACR,iBAAiB;IACf,SAAS;KACP,QAAQ;KACR,MAAM;KACN,KAAK;IACP;IACA,OAAO;IACP,QAAQ;KACN,cAAc;KACd,YAAY;IACd;IACA,MAAM;KACJ,QAAQ;KACR,QAAQ;KACR,aAAa;KACb,WAAW;KACX,eAAe;KACf,qBAAqB;KACrB,QAAQ;KACR,WAAW;KACX,iBAAiB;KACjB,YAAY;KACZ,kBAAkB;KAClB,QAAQ;IACV;IACA,UAAU;IACV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AAS;IACT,SAAS;IACT,aAAa;IACb,cAAc;IACd,QAAQ;IACR,YAAY;IACZ,OAAO;GACT;GACA,SAAS;IACP,YAAY;IACZ,YAAY;IACZ,UAAU;IACV,WAAW;IACX,eAAe,EACb,OAAO,iBACT;IACA,cAAc;KACZ,SAAS;KACT,OAAO;IACT;IACA,KAAK;KACH,QAAQ;KACR,SAAS;KACT,QAAQ;KACR,aAAa;IACf;IACA,WAAW;IACX,QAAQ;IACR,MAAM;IACN,YAAY;KACV,QAAQ;KACR,SAAS;KACT,KAAK;KACL,eAAe;KACf,UAAU;KACV,OAAO;KACP,SAAS;IACX;IACA,aAAa;GACf;GACA,eAAe;IACb,eAAe;KACb,aAAa;KACb,OAAO;IACT;IACA,WAAW;KACT,aAAa;KACb,OAAO;IACT;IACA,QAAQ;KACN,aAAa;KACb,OAAO;IACT;IACA,OAAO;KACL,aAAa;KACb,OAAO;IACT;IACA,OAAO;GACT;EACF;EACA,YAAY;GACV,SAAS;IACP,UAAU;IACV,aAAa;IACb,WAAW;GACb;GACA,UAAU,EACR,SAAS,UACX;GACA,OAAO;IACL,QAAQ;IACR,QAAQ;GACV;GACA,OAAO;IACL,QAAQ;IACR,aAAa;IACb,OAAO;GACT;GACA,OAAO;IACL,aAAa;IACb,OAAO;GACT;GACA,SAAS;IACP,UAAU;KACR,KAAK;KACL,OAAO;IACT;IACA,QAAQ;KACN,KAAK;KACL,OAAO;IACT;IACA,QAAQ;GACV;GACA,SAAS;GACT,MAAM,EACJ,UAAU,WACZ;GACA,gBAAgB;IACd,aACE;IACF,OAAO;GACT;GACA,SAAS;IACP,OACE;IACF,MAAM;GACR;GACA,cAAc,EACZ,MAAM,yHACR;GACA,QAAQ,EACN,aAAa,oBACf;GACA,KAAK;IACH,QAAQ;IACR,UAAU;GACZ;GACA,UAAU;GACV,OAAO;GACP,aAAa;EACf;CACF;AACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { enTranslations } from './en';
|
|
@@ -170,6 +170,21 @@ export interface EnsureRoundAggregate {
|
|
|
170
170
|
export declare function createEmptyEnsureRoundAggregate(): EnsureRoundAggregate;
|
|
171
171
|
export declare function assertCompleteEnsureRoundChunkResult(requestedApplicationIds: ReadonlyArray<string>, result: EnsureRoundAggregate): void;
|
|
172
172
|
export declare function aggregateEnsureRoundResult(aggregate: EnsureRoundAggregate, result: EnsureRoundAggregate): EnsureRoundAggregate;
|
|
173
|
+
export interface BulkCustomEmailSuccess {
|
|
174
|
+
applicationId: string;
|
|
175
|
+
email: string;
|
|
176
|
+
}
|
|
177
|
+
export interface BulkCustomEmailFailureItem {
|
|
178
|
+
applicationId: string;
|
|
179
|
+
message: string;
|
|
180
|
+
}
|
|
181
|
+
export interface BulkCustomEmailAggregate {
|
|
182
|
+
succeeded: BulkCustomEmailSuccess[];
|
|
183
|
+
failed: BulkCustomEmailFailureItem[];
|
|
184
|
+
}
|
|
185
|
+
export declare function createEmptyBulkCustomEmailAggregate(): BulkCustomEmailAggregate;
|
|
186
|
+
export declare function assertCompleteBulkCustomEmailChunkResult(requestedApplicationIds: ReadonlyArray<string>, result: BulkCustomEmailAggregate): void;
|
|
187
|
+
export declare function aggregateBulkCustomEmailResult(aggregate: BulkCustomEmailAggregate, result: BulkCustomEmailAggregate): BulkCustomEmailAggregate;
|
|
173
188
|
export declare function hasCandidateEmailType(round: CandidateRoundPreview, emailType: string): boolean;
|
|
174
189
|
export interface DuplicateNoticeSuccess {
|
|
175
190
|
email: string;
|
|
@@ -222,17 +222,32 @@ function C(e, t) {
|
|
|
222
222
|
failed: [...e.failed, ...t.failed]
|
|
223
223
|
};
|
|
224
224
|
}
|
|
225
|
-
function w(
|
|
225
|
+
function w() {
|
|
226
|
+
return {
|
|
227
|
+
succeeded: [],
|
|
228
|
+
failed: []
|
|
229
|
+
};
|
|
230
|
+
}
|
|
231
|
+
function T(e, t) {
|
|
232
|
+
v(e, [...t.succeeded.map((e) => e.applicationId), ...t.failed.map((e) => e.applicationId)], "The bulk custom email request");
|
|
233
|
+
}
|
|
234
|
+
function E(e, t) {
|
|
235
|
+
return {
|
|
236
|
+
succeeded: [...e.succeeded, ...t.succeeded],
|
|
237
|
+
failed: [...e.failed, ...t.failed]
|
|
238
|
+
};
|
|
239
|
+
}
|
|
240
|
+
function D(e, t) {
|
|
226
241
|
return e.emailLogs.some((e) => e.emailType === t);
|
|
227
242
|
}
|
|
228
|
-
function
|
|
243
|
+
function O() {
|
|
229
244
|
return {
|
|
230
245
|
succeeded: [],
|
|
231
246
|
skipped: [],
|
|
232
247
|
failed: []
|
|
233
248
|
};
|
|
234
249
|
}
|
|
235
|
-
function
|
|
250
|
+
function k(e, t) {
|
|
236
251
|
return {
|
|
237
252
|
succeeded: [...e.succeeded, ...t.succeeded],
|
|
238
253
|
skipped: [...e.skipped, ...t.skipped],
|
|
@@ -240,6 +255,6 @@ function E(e, t) {
|
|
|
240
255
|
};
|
|
241
256
|
}
|
|
242
257
|
//#endregion
|
|
243
|
-
export { f as CandidateChunkPreconditionError, e as CandidateMaterializationError, b as aggregateCandidateEmailResult,
|
|
258
|
+
export { f as CandidateChunkPreconditionError, e as CandidateMaterializationError, E as aggregateBulkCustomEmailResult, b as aggregateCandidateEmailResult, k as aggregateDuplicateNoticeResult, C as aggregateEnsureRoundResult, T as assertCompleteBulkCustomEmailChunkResult, y as assertCompleteCandidateEmailChunkResult, S as assertCompleteEnsureRoundChunkResult, p as chunkCandidateRequests, w as createEmptyBulkCustomEmailAggregate, g as createEmptyCandidateEmailAggregate, i as createEmptyCandidateSelection, O as createEmptyDuplicateNoticeAggregate, x as createEmptyEnsureRoundAggregate, m as executeSequentialCandidateChunks, h as getBulkOperationNotificationSeverity, s as getCandidateSelectionCount, u as getCandidateSelectionSummary, o as getSelectedCandidateIds, D as hasCandidateEmailType, r as materializeCandidateTargets, d as resolveExactCandidateRounds, a as selectAllMaterializedCandidates, l as setVisibleCandidateSelection, c as toggleCandidateSelection };
|
|
244
259
|
|
|
245
260
|
//# sourceMappingURL=bulkCandidateOperations.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bulkCandidateOperations.js","names":[],"sources":["../../../src/support/utils/bulkCandidateOperations.ts"],"sourcesContent":["export const BULK_CANDIDATE_REQUEST_LIMIT = 100;\n\nexport interface CandidateRoundPreview {\n id: string;\n roundConfigId: string | null;\n name: string;\n roundType: string;\n emailLogs: ReadonlyArray<{\n emailType: string;\n }>;\n}\n\nexport interface BulkCandidateTarget {\n id: string;\n jobPostingId: string | null;\n interviewRounds: ReadonlyArray<CandidateRoundPreview>;\n}\n\nexport interface CandidateTargetPage<TTarget extends { id: string }> {\n items: ReadonlyArray<TTarget>;\n total: number;\n hasMore: boolean;\n}\n\nexport type CandidateMaterializationErrorCode =\n | 'STALE_SCOPE'\n | 'TOTAL_DRIFT'\n | 'EMPTY_PAGE_WITH_MORE'\n | 'INVALID_PAGE_LENGTH'\n | 'UNIQUE_COUNT_MISMATCH'\n | 'MEMBERSHIP_DRIFT';\n\nexport class CandidateMaterializationError extends Error {\n constructor(\n public readonly code: CandidateMaterializationErrorCode,\n message: string\n ) {\n super(message);\n this.name = 'CandidateMaterializationError';\n }\n}\n\ninterface MaterializeCandidateTargetsOptions<TTarget extends { id: string }> {\n scopeKey: string;\n expectedTotal: number;\n fetchPage: (limit: number, offset: number) => Promise<CandidateTargetPage<TTarget>>;\n getCurrentScopeKey: () => string;\n pageSize?: number;\n}\n\nfunction assertCurrentScope(scopeKey: string, currentScopeKey: string): void {\n if (scopeKey !== currentScopeKey) {\n throw new CandidateMaterializationError(\n 'STALE_SCOPE',\n 'The application filters changed while candidates were loading.'\n );\n }\n}\n\nasync function materializeCandidateTargetPass<TTarget extends { id: string }>({\n scopeKey,\n expectedTotal,\n fetchPage,\n getCurrentScopeKey,\n pageSize,\n}: Required<MaterializeCandidateTargetsOptions<TTarget>>): Promise<TTarget[]> {\n const targetsById = new Map<string, TTarget>();\n let offset = 0;\n\n while (true) {\n assertCurrentScope(scopeKey, getCurrentScopeKey());\n const page = await fetchPage(pageSize, offset);\n assertCurrentScope(scopeKey, getCurrentScopeKey());\n\n if (page.total !== expectedTotal) {\n throw new CandidateMaterializationError(\n 'TOTAL_DRIFT',\n `The matching application total changed from ${expectedTotal} to ${page.total}. Refresh and select again.`\n );\n }\n\n const rawPageLength = page.items.length;\n if (rawPageLength > pageSize) {\n throw new CandidateMaterializationError(\n 'INVALID_PAGE_LENGTH',\n `The server returned ${rawPageLength} applications for a page limited to ${pageSize}.`\n );\n }\n if (page.hasMore && rawPageLength === 0) {\n throw new CandidateMaterializationError(\n 'EMPTY_PAGE_WITH_MORE',\n 'The server reported more applications but returned an empty page.'\n );\n }\n\n for (const target of page.items) {\n if (!targetsById.has(target.id)) {\n targetsById.set(target.id, target);\n }\n }\n\n offset += rawPageLength;\n\n if (!page.hasMore) {\n if (targetsById.size !== expectedTotal) {\n throw new CandidateMaterializationError(\n 'UNIQUE_COUNT_MISMATCH',\n `Expected ${expectedTotal} unique applications but loaded ${targetsById.size}. Refresh and select again.`\n );\n }\n return [...targetsById.values()];\n }\n\n if (offset >= expectedTotal) {\n throw new CandidateMaterializationError(\n 'TOTAL_DRIFT',\n 'The server reported more applications after the frozen total had already been loaded.'\n );\n }\n }\n}\n\n/**\n * Materializes a frozen application-filter scope without trusting cached pages.\n * Two independent passes must return the same ordered target snapshots. This\n * catches offset-page membership shifts while preserving the 100-item page cap.\n */\nexport async function materializeCandidateTargets<TTarget extends { id: string }>({\n scopeKey,\n expectedTotal,\n fetchPage,\n getCurrentScopeKey,\n pageSize = BULK_CANDIDATE_REQUEST_LIMIT,\n}: MaterializeCandidateTargetsOptions<TTarget>): Promise<TTarget[]> {\n if (!Number.isInteger(expectedTotal) || expectedTotal < 0) {\n throw new CandidateMaterializationError(\n 'TOTAL_DRIFT',\n 'The application total is invalid. Refresh the list and try again.'\n );\n }\n if (!Number.isInteger(pageSize) || pageSize <= 0) {\n throw new CandidateMaterializationError(\n 'INVALID_PAGE_LENGTH',\n 'The candidate page size must be a positive integer.'\n );\n }\n\n const options = {\n scopeKey,\n expectedTotal,\n fetchPage,\n getCurrentScopeKey,\n pageSize,\n };\n const firstPass = await materializeCandidateTargetPass(options);\n const secondPass = await materializeCandidateTargetPass(options);\n\n if (JSON.stringify(firstPass) !== JSON.stringify(secondPass)) {\n throw new CandidateMaterializationError(\n 'MEMBERSHIP_DRIFT',\n 'Matching applications changed while candidates were loading. Refresh and select again.'\n );\n }\n\n return secondPass;\n}\n\ninterface MaterializeCandidateTargetsByIdsOptions<TTarget extends { id: string }> {\n scopeKey: string;\n applicationIds: ReadonlyArray<string>;\n fetchChunkPage: (\n applicationIds: ReadonlyArray<string>,\n limit: number,\n offset: number\n ) => Promise<CandidateTargetPage<TTarget>>;\n getCurrentScopeKey: () => string;\n}\n\n/**\n * Revalidates selected candidates in bounded ID chunks. Each chunk is filtered\n * by both its IDs and the frozen list filter, so earlier mutations cannot make\n * later validation rescan or reinterpret the full result set.\n */\nexport async function materializeCandidateTargetsByIds<TTarget extends { id: string }>({\n scopeKey,\n applicationIds,\n fetchChunkPage,\n getCurrentScopeKey,\n}: MaterializeCandidateTargetsByIdsOptions<TTarget>): Promise<TTarget[]> {\n if (applicationIds.length === 0) return [];\n if (new Set(applicationIds).size !== applicationIds.length) {\n throw new CandidateMaterializationError(\n 'UNIQUE_COUNT_MISMATCH',\n 'Selected applications must have unique IDs.'\n );\n }\n\n const targetsById = new Map<string, TTarget>();\n for (const applicationIdChunk of chunkCandidateRequests(applicationIds)) {\n const targets = await materializeCandidateTargets({\n scopeKey,\n expectedTotal: applicationIdChunk.length,\n getCurrentScopeKey,\n fetchPage: (limit, offset) => fetchChunkPage(applicationIdChunk, limit, offset),\n });\n for (const target of targets) targetsById.set(target.id, target);\n }\n\n return applicationIds.map((applicationId) => {\n const target = targetsById.get(applicationId);\n if (!target) {\n throw new CandidateMaterializationError(\n 'UNIQUE_COUNT_MISMATCH',\n 'A selected application was not returned by its bounded validation query.'\n );\n }\n return target;\n });\n}\n\nexport interface CandidateSelectionState {\n mode: 'explicit' | 'all';\n explicitIds: ReadonlySet<string>;\n allTargetIds: ReadonlySet<string>;\n excludedIds: ReadonlySet<string>;\n}\n\nexport function createEmptyCandidateSelection(): CandidateSelectionState {\n return {\n mode: 'explicit',\n explicitIds: new Set<string>(),\n allTargetIds: new Set<string>(),\n excludedIds: new Set<string>(),\n };\n}\n\nexport function selectAllMaterializedCandidates(\n applicationIds: ReadonlyArray<string>\n): CandidateSelectionState {\n return {\n mode: 'all',\n explicitIds: new Set<string>(),\n allTargetIds: new Set(applicationIds),\n excludedIds: new Set<string>(),\n };\n}\n\nexport function getSelectedCandidateIds(selection: CandidateSelectionState): Set<string> {\n if (selection.mode === 'explicit') {\n return new Set(selection.explicitIds);\n }\n\n const selectedIds = new Set(selection.allTargetIds);\n for (const excludedId of selection.excludedIds) {\n selectedIds.delete(excludedId);\n }\n return selectedIds;\n}\n\nexport function getCandidateSelectionCount(selection: CandidateSelectionState): number {\n return getSelectedCandidateIds(selection).size;\n}\n\nexport function toggleCandidateSelection(\n selection: CandidateSelectionState,\n applicationId: string\n): CandidateSelectionState {\n if (selection.mode === 'all') {\n if (!selection.allTargetIds.has(applicationId)) {\n return selection;\n }\n const excludedIds = new Set(selection.excludedIds);\n if (excludedIds.has(applicationId)) {\n excludedIds.delete(applicationId);\n } else {\n excludedIds.add(applicationId);\n }\n return { ...selection, excludedIds };\n }\n\n const explicitIds = new Set(selection.explicitIds);\n if (explicitIds.has(applicationId)) {\n explicitIds.delete(applicationId);\n } else {\n explicitIds.add(applicationId);\n }\n return { ...selection, explicitIds };\n}\n\nexport function setVisibleCandidateSelection(\n selection: CandidateSelectionState,\n visibleApplicationIds: ReadonlyArray<string>,\n selected: boolean\n): CandidateSelectionState {\n if (selection.mode === 'all') {\n const excludedIds = new Set(selection.excludedIds);\n for (const applicationId of visibleApplicationIds) {\n if (!selection.allTargetIds.has(applicationId)) continue;\n if (selected) {\n excludedIds.delete(applicationId);\n } else {\n excludedIds.add(applicationId);\n }\n }\n return { ...selection, excludedIds };\n }\n\n const explicitIds = new Set(selection.explicitIds);\n for (const applicationId of visibleApplicationIds) {\n if (selected) {\n explicitIds.add(applicationId);\n } else {\n explicitIds.delete(applicationId);\n }\n }\n return { ...selection, explicitIds };\n}\n\nexport function getCandidateSelectionSummary(selection: CandidateSelectionState): string | null {\n const selectedCount = getCandidateSelectionCount(selection);\n if (selectedCount === 0) return null;\n\n if (selection.mode === 'all') {\n const totalCount = selection.allTargetIds.size;\n const excludedCount = totalCount - selectedCount;\n if (excludedCount === 0) {\n return `All ${totalCount} matching applications selected`;\n }\n return `${selectedCount} of ${totalCount} matching applications selected (${excludedCount} excluded)`;\n }\n\n return `${selectedCount} ${selectedCount === 1 ? 'application' : 'applications'} selected`;\n}\n\nexport interface ExactRoundPair {\n applicationId: string;\n roundId: string;\n target: BulkCandidateTarget;\n round: CandidateRoundPreview;\n}\n\nexport interface UnresolvedCandidateRound {\n target: BulkCandidateTarget;\n reason: 'MISSING' | 'AMBIGUOUS';\n}\n\nexport interface ExactRoundResolution {\n pairs: ExactRoundPair[];\n unresolved: UnresolvedCandidateRound[];\n}\n\n/** Resolve only concrete rounds with the requested config ID; never guess by name or type. */\nexport function resolveExactCandidateRounds(\n targets: ReadonlyArray<BulkCandidateTarget>,\n roundConfigId: string\n): ExactRoundResolution {\n const pairs: ExactRoundPair[] = [];\n const unresolved: UnresolvedCandidateRound[] = [];\n\n for (const target of targets) {\n const matches = target.interviewRounds.filter((round) => round.roundConfigId === roundConfigId);\n if (matches.length !== 1) {\n unresolved.push({\n target,\n reason: matches.length === 0 ? 'MISSING' : 'AMBIGUOUS',\n });\n continue;\n }\n\n const round = matches[0];\n pairs.push({ applicationId: target.id, roundId: round.id, target, round });\n }\n\n return { pairs, unresolved };\n}\n\nexport class CandidateChunkPreconditionError extends Error {\n constructor(message: string) {\n super(message);\n this.name = 'CandidateChunkPreconditionError';\n }\n}\n\nexport function assertCandidateChunkMatchesCurrentScope(\n applicationIds: ReadonlyArray<string>,\n currentTargets: ReadonlyArray<BulkCandidateTarget>,\n jobPostingId: string\n): void {\n const currentById = new Map(currentTargets.map((target) => [target.id, target]));\n\n for (const applicationId of applicationIds) {\n const target = currentById.get(applicationId);\n if (!target || target.jobPostingId !== jobPostingId) {\n throw new CandidateChunkPreconditionError(\n 'A selected application no longer matches the frozen filter and posting. No request was sent for this chunk.'\n );\n }\n }\n}\n\nexport function assertCandidateEmailChunkMatchesCurrentScope(\n items: ReadonlyArray<{ applicationId: string; roundId: string }>,\n currentTargets: ReadonlyArray<BulkCandidateTarget>,\n jobPostingId: string,\n roundConfigId: string\n): void {\n assertCandidateChunkMatchesCurrentScope(\n items.map((item) => item.applicationId),\n currentTargets,\n jobPostingId\n );\n\n const currentById = new Map(currentTargets.map((target) => [target.id, target]));\n for (const item of items) {\n const target = currentById.get(item.applicationId);\n const matchingRounds = target?.interviewRounds.filter(\n (round) => round.roundConfigId === roundConfigId\n );\n if (matchingRounds?.length !== 1 || matchingRounds[0]?.id !== item.roundId) {\n throw new CandidateChunkPreconditionError(\n 'A selected candidate round changed after preview. No request was sent for this chunk.'\n );\n }\n }\n}\n\nexport function chunkCandidateRequests<T>(\n items: ReadonlyArray<T>,\n chunkSize = BULK_CANDIDATE_REQUEST_LIMIT\n): T[][] {\n if (!Number.isInteger(chunkSize) || chunkSize <= 0) {\n throw new Error('Chunk size must be a positive integer.');\n }\n\n const chunks: T[][] = [];\n for (let index = 0; index < items.length; index += chunkSize) {\n chunks.push(items.slice(index, index + chunkSize));\n }\n return chunks;\n}\n\nexport interface SequentialExecutionProgress {\n processed: number;\n total: number;\n}\n\nexport interface SequentialExecutionResult<TItem, TAggregate> {\n aggregate: TAggregate;\n processedItems: TItem[];\n ambiguousItems: TItem[];\n notStartedItems: TItem[];\n error: unknown | null;\n}\n\ninterface ExecuteSequentialCandidateChunksOptions<TItem, TBatchResult, TAggregate> {\n items: ReadonlyArray<TItem>;\n initialAggregate: TAggregate;\n executeChunk: (chunk: ReadonlyArray<TItem>, chunkIndex: number) => Promise<TBatchResult>;\n mergeResult: (aggregate: TAggregate, result: TBatchResult) => TAggregate;\n onProgress?: (progress: SequentialExecutionProgress) => void;\n chunkSize?: number;\n}\n\n/**\n * Executes each request once and in order. A thrown transport/missing-data error\n * makes the current chunk ambiguous and prevents every later chunk from starting.\n */\nexport async function executeSequentialCandidateChunks<TItem, TBatchResult, TAggregate>({\n items,\n initialAggregate,\n executeChunk,\n mergeResult,\n onProgress,\n chunkSize = BULK_CANDIDATE_REQUEST_LIMIT,\n}: ExecuteSequentialCandidateChunksOptions<TItem, TBatchResult, TAggregate>): Promise<\n SequentialExecutionResult<TItem, TAggregate>\n> {\n const chunks = chunkCandidateRequests(items, chunkSize);\n const processedItems: TItem[] = [];\n let aggregate = initialAggregate;\n\n onProgress?.({ processed: 0, total: items.length });\n\n for (let chunkIndex = 0; chunkIndex < chunks.length; chunkIndex += 1) {\n const chunk = chunks[chunkIndex];\n try {\n const result = await executeChunk(chunk, chunkIndex);\n aggregate = mergeResult(aggregate, result);\n processedItems.push(...chunk);\n onProgress?.({ processed: processedItems.length, total: items.length });\n } catch (error) {\n const failedBeforeMutation = error instanceof CandidateChunkPreconditionError;\n return {\n aggregate,\n processedItems,\n ambiguousItems: failedBeforeMutation ? [] : [...chunk],\n notStartedItems: failedBeforeMutation\n ? chunks.slice(chunkIndex).flat()\n : chunks.slice(chunkIndex + 1).flat(),\n error,\n };\n }\n }\n\n return {\n aggregate,\n processedItems,\n ambiguousItems: [],\n notStartedItems: [],\n error: null,\n };\n}\n\nexport type BulkOperationNotificationSeverity = 'success' | 'warning' | 'error';\n\nexport function getBulkOperationNotificationSeverity({\n succeeded,\n skipped,\n failed,\n ambiguous = false,\n}: {\n succeeded: number;\n skipped: number;\n failed: number;\n ambiguous?: boolean;\n}): BulkOperationNotificationSeverity {\n if (ambiguous) return 'error';\n if (failed > 0 && succeeded === 0 && skipped === 0) return 'error';\n if (failed > 0 || skipped > 0) return 'warning';\n return 'success';\n}\n\nexport interface CandidateEmailSuccess {\n applicationId: string;\n roundId: string;\n}\n\nexport interface CandidateEmailSkip {\n applicationId: string;\n roundId: string;\n reason: string;\n message: string;\n}\n\nexport interface CandidateEmailFailure {\n applicationId: string;\n roundId: string;\n message: string;\n}\n\nexport interface CandidateEmailAggregate {\n succeeded: CandidateEmailSuccess[];\n skipped: CandidateEmailSkip[];\n failed: CandidateEmailFailure[];\n}\n\nexport function createEmptyCandidateEmailAggregate(): CandidateEmailAggregate {\n return { succeeded: [], skipped: [], failed: [] };\n}\n\nfunction candidateRoundKey(applicationId: string, roundId: string): string {\n return `${applicationId}\\0${roundId}`;\n}\n\nfunction assertExactResultKeys(\n expectedKeys: ReadonlyArray<string>,\n actualKeys: ReadonlyArray<string>,\n operationLabel: string\n): void {\n const expected = new Set(expectedKeys);\n const actual = new Set(actualKeys);\n if (\n expected.size !== expectedKeys.length ||\n actual.size !== actualKeys.length ||\n expected.size !== actual.size ||\n [...expected].some((key) => !actual.has(key))\n ) {\n throw new Error(\n `${operationLabel} returned an incomplete, duplicate, or unexpected item result. The current chunk is ambiguous and later chunks were stopped.`\n );\n }\n}\n\nexport function assertCompleteCandidateEmailChunkResult(\n requested: ReadonlyArray<{ applicationId: string; roundId: string }>,\n result: CandidateEmailAggregate\n): void {\n assertExactResultKeys(\n requested.map((item) => candidateRoundKey(item.applicationId, item.roundId)),\n [\n ...result.succeeded.map((item) => candidateRoundKey(item.applicationId, item.roundId)),\n ...result.skipped.map((item) => candidateRoundKey(item.applicationId, item.roundId)),\n ...result.failed.map((item) => candidateRoundKey(item.applicationId, item.roundId)),\n ],\n 'The candidate email request'\n );\n}\n\nexport function aggregateCandidateEmailResult(\n aggregate: CandidateEmailAggregate,\n result: CandidateEmailAggregate\n): CandidateEmailAggregate {\n return {\n succeeded: [...aggregate.succeeded, ...result.succeeded],\n skipped: [...aggregate.skipped, ...result.skipped],\n failed: [...aggregate.failed, ...result.failed],\n };\n}\n\nexport interface EnsuredRoundSummary {\n id: string;\n applicationId: string;\n}\n\nexport interface EnsureRoundFailure {\n applicationId: string;\n code: string;\n message: string;\n}\n\nexport interface EnsureRoundAggregate {\n created: EnsuredRoundSummary[];\n alreadyPresent: EnsuredRoundSummary[];\n failed: EnsureRoundFailure[];\n}\n\nexport function createEmptyEnsureRoundAggregate(): EnsureRoundAggregate {\n return { created: [], alreadyPresent: [], failed: [] };\n}\n\nexport function assertCompleteEnsureRoundChunkResult(\n requestedApplicationIds: ReadonlyArray<string>,\n result: EnsureRoundAggregate\n): void {\n assertExactResultKeys(\n requestedApplicationIds,\n [\n ...result.created.map((item) => item.applicationId),\n ...result.alreadyPresent.map((item) => item.applicationId),\n ...result.failed.map((item) => item.applicationId),\n ],\n 'The add-to-round request'\n );\n}\n\nexport function aggregateEnsureRoundResult(\n aggregate: EnsureRoundAggregate,\n result: EnsureRoundAggregate\n): EnsureRoundAggregate {\n return {\n created: [...aggregate.created, ...result.created],\n alreadyPresent: [...aggregate.alreadyPresent, ...result.alreadyPresent],\n failed: [...aggregate.failed, ...result.failed],\n };\n}\n\nexport function hasCandidateEmailType(round: CandidateRoundPreview, emailType: string): boolean {\n return round.emailLogs.some((log) => log.emailType === emailType);\n}\n\nexport interface DuplicateNoticeSuccess {\n email: string;\n}\n\nexport interface DuplicateNoticeSkip {\n email: string;\n reason: string;\n message: string;\n}\n\nexport interface DuplicateNoticeFailure {\n email: string;\n message: string;\n}\n\nexport interface DuplicateNoticeAggregate {\n succeeded: DuplicateNoticeSuccess[];\n skipped: DuplicateNoticeSkip[];\n failed: DuplicateNoticeFailure[];\n}\n\nexport function createEmptyDuplicateNoticeAggregate(): DuplicateNoticeAggregate {\n return { succeeded: [], skipped: [], failed: [] };\n}\n\nexport function aggregateDuplicateNoticeResult(\n aggregate: DuplicateNoticeAggregate,\n result: DuplicateNoticeAggregate\n): DuplicateNoticeAggregate {\n return {\n succeeded: [...aggregate.succeeded, ...result.succeeded],\n skipped: [...aggregate.skipped, ...result.skipped],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,CAAC;CAAE;AACvD;AAEA,SAAgB,EACd,GACA,GACM;CACN,EACE,GACA;EACE,GAAG,EAAO,QAAQ,KAAK,MAAS,EAAK,aAAa;EAClD,GAAG,EAAO,eAAe,KAAK,MAAS,EAAK,aAAa;EACzD,GAAG,EAAO,OAAO,KAAK,MAAS,EAAK,aAAa;CACnD,GACA,0BACF;AACF;AAEA,SAAgB,EACd,GACA,GACsB;CACtB,OAAO;EACL,SAAS,CAAC,GAAG,EAAU,SAAS,GAAG,EAAO,OAAO;EACjD,gBAAgB,CAAC,GAAG,EAAU,gBAAgB,GAAG,EAAO,cAAc;EACtE,QAAQ,CAAC,GAAG,EAAU,QAAQ,GAAG,EAAO,MAAM;CAChD;AACF;AAEA,SAAgB,EAAsB,GAA8B,GAA4B;CAC9F,OAAO,EAAM,UAAU,MAAM,MAAQ,EAAI,cAAc,CAAS;AAClE;AAuBA,SAAgB,IAAgE;CAC9E,OAAO;EAAE,WAAW,CAAC;EAAG,SAAS,CAAC;EAAG,QAAQ,CAAC;CAAE;AAClD;AAEA,SAAgB,EACd,GACA,GAC0B;CAC1B,OAAO;EACL,WAAW,CAAC,GAAG,EAAU,WAAW,GAAG,EAAO,SAAS;EACvD,SAAS,CAAC,GAAG,EAAU,SAAS,GAAG,EAAO,OAAO;EACjD,QAAQ,CAAC,GAAG,EAAU,QAAQ,GAAG,EAAO,MAAM;CAChD;AACF"}
|
|
1
|
+
{"version":3,"file":"bulkCandidateOperations.js","names":[],"sources":["../../../src/support/utils/bulkCandidateOperations.ts"],"sourcesContent":["export const BULK_CANDIDATE_REQUEST_LIMIT = 100;\n\nexport interface CandidateRoundPreview {\n id: string;\n roundConfigId: string | null;\n name: string;\n roundType: string;\n emailLogs: ReadonlyArray<{\n emailType: string;\n }>;\n}\n\nexport interface BulkCandidateTarget {\n id: string;\n jobPostingId: string | null;\n interviewRounds: ReadonlyArray<CandidateRoundPreview>;\n}\n\nexport interface CandidateTargetPage<TTarget extends { id: string }> {\n items: ReadonlyArray<TTarget>;\n total: number;\n hasMore: boolean;\n}\n\nexport type CandidateMaterializationErrorCode =\n | 'STALE_SCOPE'\n | 'TOTAL_DRIFT'\n | 'EMPTY_PAGE_WITH_MORE'\n | 'INVALID_PAGE_LENGTH'\n | 'UNIQUE_COUNT_MISMATCH'\n | 'MEMBERSHIP_DRIFT';\n\nexport class CandidateMaterializationError extends Error {\n constructor(\n public readonly code: CandidateMaterializationErrorCode,\n message: string\n ) {\n super(message);\n this.name = 'CandidateMaterializationError';\n }\n}\n\ninterface MaterializeCandidateTargetsOptions<TTarget extends { id: string }> {\n scopeKey: string;\n expectedTotal: number;\n fetchPage: (limit: number, offset: number) => Promise<CandidateTargetPage<TTarget>>;\n getCurrentScopeKey: () => string;\n pageSize?: number;\n}\n\nfunction assertCurrentScope(scopeKey: string, currentScopeKey: string): void {\n if (scopeKey !== currentScopeKey) {\n throw new CandidateMaterializationError(\n 'STALE_SCOPE',\n 'The application filters changed while candidates were loading.'\n );\n }\n}\n\nasync function materializeCandidateTargetPass<TTarget extends { id: string }>({\n scopeKey,\n expectedTotal,\n fetchPage,\n getCurrentScopeKey,\n pageSize,\n}: Required<MaterializeCandidateTargetsOptions<TTarget>>): Promise<TTarget[]> {\n const targetsById = new Map<string, TTarget>();\n let offset = 0;\n\n while (true) {\n assertCurrentScope(scopeKey, getCurrentScopeKey());\n const page = await fetchPage(pageSize, offset);\n assertCurrentScope(scopeKey, getCurrentScopeKey());\n\n if (page.total !== expectedTotal) {\n throw new CandidateMaterializationError(\n 'TOTAL_DRIFT',\n `The matching application total changed from ${expectedTotal} to ${page.total}. Refresh and select again.`\n );\n }\n\n const rawPageLength = page.items.length;\n if (rawPageLength > pageSize) {\n throw new CandidateMaterializationError(\n 'INVALID_PAGE_LENGTH',\n `The server returned ${rawPageLength} applications for a page limited to ${pageSize}.`\n );\n }\n if (page.hasMore && rawPageLength === 0) {\n throw new CandidateMaterializationError(\n 'EMPTY_PAGE_WITH_MORE',\n 'The server reported more applications but returned an empty page.'\n );\n }\n\n for (const target of page.items) {\n if (!targetsById.has(target.id)) {\n targetsById.set(target.id, target);\n }\n }\n\n offset += rawPageLength;\n\n if (!page.hasMore) {\n if (targetsById.size !== expectedTotal) {\n throw new CandidateMaterializationError(\n 'UNIQUE_COUNT_MISMATCH',\n `Expected ${expectedTotal} unique applications but loaded ${targetsById.size}. Refresh and select again.`\n );\n }\n return [...targetsById.values()];\n }\n\n if (offset >= expectedTotal) {\n throw new CandidateMaterializationError(\n 'TOTAL_DRIFT',\n 'The server reported more applications after the frozen total had already been loaded.'\n );\n }\n }\n}\n\n/**\n * Materializes a frozen application-filter scope without trusting cached pages.\n * Two independent passes must return the same ordered target snapshots. This\n * catches offset-page membership shifts while preserving the 100-item page cap.\n */\nexport async function materializeCandidateTargets<TTarget extends { id: string }>({\n scopeKey,\n expectedTotal,\n fetchPage,\n getCurrentScopeKey,\n pageSize = BULK_CANDIDATE_REQUEST_LIMIT,\n}: MaterializeCandidateTargetsOptions<TTarget>): Promise<TTarget[]> {\n if (!Number.isInteger(expectedTotal) || expectedTotal < 0) {\n throw new CandidateMaterializationError(\n 'TOTAL_DRIFT',\n 'The application total is invalid. Refresh the list and try again.'\n );\n }\n if (!Number.isInteger(pageSize) || pageSize <= 0) {\n throw new CandidateMaterializationError(\n 'INVALID_PAGE_LENGTH',\n 'The candidate page size must be a positive integer.'\n );\n }\n\n const options = {\n scopeKey,\n expectedTotal,\n fetchPage,\n getCurrentScopeKey,\n pageSize,\n };\n const firstPass = await materializeCandidateTargetPass(options);\n const secondPass = await materializeCandidateTargetPass(options);\n\n if (JSON.stringify(firstPass) !== JSON.stringify(secondPass)) {\n throw new CandidateMaterializationError(\n 'MEMBERSHIP_DRIFT',\n 'Matching applications changed while candidates were loading. Refresh and select again.'\n );\n }\n\n return secondPass;\n}\n\ninterface MaterializeCandidateTargetsByIdsOptions<TTarget extends { id: string }> {\n scopeKey: string;\n applicationIds: ReadonlyArray<string>;\n fetchChunkPage: (\n applicationIds: ReadonlyArray<string>,\n limit: number,\n offset: number\n ) => Promise<CandidateTargetPage<TTarget>>;\n getCurrentScopeKey: () => string;\n}\n\n/**\n * Revalidates selected candidates in bounded ID chunks. Each chunk is filtered\n * by both its IDs and the frozen list filter, so earlier mutations cannot make\n * later validation rescan or reinterpret the full result set.\n */\nexport async function materializeCandidateTargetsByIds<TTarget extends { id: string }>({\n scopeKey,\n applicationIds,\n fetchChunkPage,\n getCurrentScopeKey,\n}: MaterializeCandidateTargetsByIdsOptions<TTarget>): Promise<TTarget[]> {\n if (applicationIds.length === 0) return [];\n if (new Set(applicationIds).size !== applicationIds.length) {\n throw new CandidateMaterializationError(\n 'UNIQUE_COUNT_MISMATCH',\n 'Selected applications must have unique IDs.'\n );\n }\n\n const targetsById = new Map<string, TTarget>();\n for (const applicationIdChunk of chunkCandidateRequests(applicationIds)) {\n const targets = await materializeCandidateTargets({\n scopeKey,\n expectedTotal: applicationIdChunk.length,\n getCurrentScopeKey,\n fetchPage: (limit, offset) => fetchChunkPage(applicationIdChunk, limit, offset),\n });\n for (const target of targets) targetsById.set(target.id, target);\n }\n\n return applicationIds.map((applicationId) => {\n const target = targetsById.get(applicationId);\n if (!target) {\n throw new CandidateMaterializationError(\n 'UNIQUE_COUNT_MISMATCH',\n 'A selected application was not returned by its bounded validation query.'\n );\n }\n return target;\n });\n}\n\nexport interface CandidateSelectionState {\n mode: 'explicit' | 'all';\n explicitIds: ReadonlySet<string>;\n allTargetIds: ReadonlySet<string>;\n excludedIds: ReadonlySet<string>;\n}\n\nexport function createEmptyCandidateSelection(): CandidateSelectionState {\n return {\n mode: 'explicit',\n explicitIds: new Set<string>(),\n allTargetIds: new Set<string>(),\n excludedIds: new Set<string>(),\n };\n}\n\nexport function selectAllMaterializedCandidates(\n applicationIds: ReadonlyArray<string>\n): CandidateSelectionState {\n return {\n mode: 'all',\n explicitIds: new Set<string>(),\n allTargetIds: new Set(applicationIds),\n excludedIds: new Set<string>(),\n };\n}\n\nexport function getSelectedCandidateIds(selection: CandidateSelectionState): Set<string> {\n if (selection.mode === 'explicit') {\n return new Set(selection.explicitIds);\n }\n\n const selectedIds = new Set(selection.allTargetIds);\n for (const excludedId of selection.excludedIds) {\n selectedIds.delete(excludedId);\n }\n return selectedIds;\n}\n\nexport function getCandidateSelectionCount(selection: CandidateSelectionState): number {\n return getSelectedCandidateIds(selection).size;\n}\n\nexport function toggleCandidateSelection(\n selection: CandidateSelectionState,\n applicationId: string\n): CandidateSelectionState {\n if (selection.mode === 'all') {\n if (!selection.allTargetIds.has(applicationId)) {\n return selection;\n }\n const excludedIds = new Set(selection.excludedIds);\n if (excludedIds.has(applicationId)) {\n excludedIds.delete(applicationId);\n } else {\n excludedIds.add(applicationId);\n }\n return { ...selection, excludedIds };\n }\n\n const explicitIds = new Set(selection.explicitIds);\n if (explicitIds.has(applicationId)) {\n explicitIds.delete(applicationId);\n } else {\n explicitIds.add(applicationId);\n }\n return { ...selection, explicitIds };\n}\n\nexport function setVisibleCandidateSelection(\n selection: CandidateSelectionState,\n visibleApplicationIds: ReadonlyArray<string>,\n selected: boolean\n): CandidateSelectionState {\n if (selection.mode === 'all') {\n const excludedIds = new Set(selection.excludedIds);\n for (const applicationId of visibleApplicationIds) {\n if (!selection.allTargetIds.has(applicationId)) continue;\n if (selected) {\n excludedIds.delete(applicationId);\n } else {\n excludedIds.add(applicationId);\n }\n }\n return { ...selection, excludedIds };\n }\n\n const explicitIds = new Set(selection.explicitIds);\n for (const applicationId of visibleApplicationIds) {\n if (selected) {\n explicitIds.add(applicationId);\n } else {\n explicitIds.delete(applicationId);\n }\n }\n return { ...selection, explicitIds };\n}\n\nexport function getCandidateSelectionSummary(selection: CandidateSelectionState): string | null {\n const selectedCount = getCandidateSelectionCount(selection);\n if (selectedCount === 0) return null;\n\n if (selection.mode === 'all') {\n const totalCount = selection.allTargetIds.size;\n const excludedCount = totalCount - selectedCount;\n if (excludedCount === 0) {\n return `All ${totalCount} matching applications selected`;\n }\n return `${selectedCount} of ${totalCount} matching applications selected (${excludedCount} excluded)`;\n }\n\n return `${selectedCount} ${selectedCount === 1 ? 'application' : 'applications'} selected`;\n}\n\nexport interface ExactRoundPair {\n applicationId: string;\n roundId: string;\n target: BulkCandidateTarget;\n round: CandidateRoundPreview;\n}\n\nexport interface UnresolvedCandidateRound {\n target: BulkCandidateTarget;\n reason: 'MISSING' | 'AMBIGUOUS';\n}\n\nexport interface ExactRoundResolution {\n pairs: ExactRoundPair[];\n unresolved: UnresolvedCandidateRound[];\n}\n\n/** Resolve only concrete rounds with the requested config ID; never guess by name or type. */\nexport function resolveExactCandidateRounds(\n targets: ReadonlyArray<BulkCandidateTarget>,\n roundConfigId: string\n): ExactRoundResolution {\n const pairs: ExactRoundPair[] = [];\n const unresolved: UnresolvedCandidateRound[] = [];\n\n for (const target of targets) {\n const matches = target.interviewRounds.filter((round) => round.roundConfigId === roundConfigId);\n if (matches.length !== 1) {\n unresolved.push({\n target,\n reason: matches.length === 0 ? 'MISSING' : 'AMBIGUOUS',\n });\n continue;\n }\n\n const round = matches[0];\n pairs.push({ applicationId: target.id, roundId: round.id, target, round });\n }\n\n return { pairs, unresolved };\n}\n\nexport class CandidateChunkPreconditionError extends Error {\n constructor(message: string) {\n super(message);\n this.name = 'CandidateChunkPreconditionError';\n }\n}\n\nexport function assertCandidateChunkMatchesCurrentScope(\n applicationIds: ReadonlyArray<string>,\n currentTargets: ReadonlyArray<BulkCandidateTarget>,\n jobPostingId: string\n): void {\n const currentById = new Map(currentTargets.map((target) => [target.id, target]));\n\n for (const applicationId of applicationIds) {\n const target = currentById.get(applicationId);\n if (!target || target.jobPostingId !== jobPostingId) {\n throw new CandidateChunkPreconditionError(\n 'A selected application no longer matches the frozen filter and posting. No request was sent for this chunk.'\n );\n }\n }\n}\n\nexport function assertCandidateEmailChunkMatchesCurrentScope(\n items: ReadonlyArray<{ applicationId: string; roundId: string }>,\n currentTargets: ReadonlyArray<BulkCandidateTarget>,\n jobPostingId: string,\n roundConfigId: string\n): void {\n assertCandidateChunkMatchesCurrentScope(\n items.map((item) => item.applicationId),\n currentTargets,\n jobPostingId\n );\n\n const currentById = new Map(currentTargets.map((target) => [target.id, target]));\n for (const item of items) {\n const target = currentById.get(item.applicationId);\n const matchingRounds = target?.interviewRounds.filter(\n (round) => round.roundConfigId === roundConfigId\n );\n if (matchingRounds?.length !== 1 || matchingRounds[0]?.id !== item.roundId) {\n throw new CandidateChunkPreconditionError(\n 'A selected candidate round changed after preview. No request was sent for this chunk.'\n );\n }\n }\n}\n\nexport function chunkCandidateRequests<T>(\n items: ReadonlyArray<T>,\n chunkSize = BULK_CANDIDATE_REQUEST_LIMIT\n): T[][] {\n if (!Number.isInteger(chunkSize) || chunkSize <= 0) {\n throw new Error('Chunk size must be a positive integer.');\n }\n\n const chunks: T[][] = [];\n for (let index = 0; index < items.length; index += chunkSize) {\n chunks.push(items.slice(index, index + chunkSize));\n }\n return chunks;\n}\n\nexport interface SequentialExecutionProgress {\n processed: number;\n total: number;\n}\n\nexport interface SequentialExecutionResult<TItem, TAggregate> {\n aggregate: TAggregate;\n processedItems: TItem[];\n ambiguousItems: TItem[];\n notStartedItems: TItem[];\n error: unknown | null;\n}\n\ninterface ExecuteSequentialCandidateChunksOptions<TItem, TBatchResult, TAggregate> {\n items: ReadonlyArray<TItem>;\n initialAggregate: TAggregate;\n executeChunk: (chunk: ReadonlyArray<TItem>, chunkIndex: number) => Promise<TBatchResult>;\n mergeResult: (aggregate: TAggregate, result: TBatchResult) => TAggregate;\n onProgress?: (progress: SequentialExecutionProgress) => void;\n chunkSize?: number;\n}\n\n/**\n * Executes each request once and in order. A thrown transport/missing-data error\n * makes the current chunk ambiguous and prevents every later chunk from starting.\n */\nexport async function executeSequentialCandidateChunks<TItem, TBatchResult, TAggregate>({\n items,\n initialAggregate,\n executeChunk,\n mergeResult,\n onProgress,\n chunkSize = BULK_CANDIDATE_REQUEST_LIMIT,\n}: ExecuteSequentialCandidateChunksOptions<TItem, TBatchResult, TAggregate>): Promise<\n SequentialExecutionResult<TItem, TAggregate>\n> {\n const chunks = chunkCandidateRequests(items, chunkSize);\n const processedItems: TItem[] = [];\n let aggregate = initialAggregate;\n\n onProgress?.({ processed: 0, total: items.length });\n\n for (let chunkIndex = 0; chunkIndex < chunks.length; chunkIndex += 1) {\n const chunk = chunks[chunkIndex];\n try {\n const result = await executeChunk(chunk, chunkIndex);\n aggregate = mergeResult(aggregate, result);\n processedItems.push(...chunk);\n onProgress?.({ processed: processedItems.length, total: items.length });\n } catch (error) {\n const failedBeforeMutation = error instanceof CandidateChunkPreconditionError;\n return {\n aggregate,\n processedItems,\n ambiguousItems: failedBeforeMutation ? [] : [...chunk],\n notStartedItems: failedBeforeMutation\n ? chunks.slice(chunkIndex).flat()\n : chunks.slice(chunkIndex + 1).flat(),\n error,\n };\n }\n }\n\n return {\n aggregate,\n processedItems,\n ambiguousItems: [],\n notStartedItems: [],\n error: null,\n };\n}\n\nexport type BulkOperationNotificationSeverity = 'success' | 'warning' | 'error';\n\nexport function getBulkOperationNotificationSeverity({\n succeeded,\n skipped,\n failed,\n ambiguous = false,\n}: {\n succeeded: number;\n skipped: number;\n failed: number;\n ambiguous?: boolean;\n}): BulkOperationNotificationSeverity {\n if (ambiguous) return 'error';\n if (failed > 0 && succeeded === 0 && skipped === 0) return 'error';\n if (failed > 0 || skipped > 0) return 'warning';\n return 'success';\n}\n\nexport interface CandidateEmailSuccess {\n applicationId: string;\n roundId: string;\n}\n\nexport interface CandidateEmailSkip {\n applicationId: string;\n roundId: string;\n reason: string;\n message: string;\n}\n\nexport interface CandidateEmailFailure {\n applicationId: string;\n roundId: string;\n message: string;\n}\n\nexport interface CandidateEmailAggregate {\n succeeded: CandidateEmailSuccess[];\n skipped: CandidateEmailSkip[];\n failed: CandidateEmailFailure[];\n}\n\nexport function createEmptyCandidateEmailAggregate(): CandidateEmailAggregate {\n return { succeeded: [], skipped: [], failed: [] };\n}\n\nfunction candidateRoundKey(applicationId: string, roundId: string): string {\n return `${applicationId}\\0${roundId}`;\n}\n\nfunction assertExactResultKeys(\n expectedKeys: ReadonlyArray<string>,\n actualKeys: ReadonlyArray<string>,\n operationLabel: string\n): void {\n const expected = new Set(expectedKeys);\n const actual = new Set(actualKeys);\n if (\n expected.size !== expectedKeys.length ||\n actual.size !== actualKeys.length ||\n expected.size !== actual.size ||\n [...expected].some((key) => !actual.has(key))\n ) {\n throw new Error(\n `${operationLabel} returned an incomplete, duplicate, or unexpected item result. The current chunk is ambiguous and later chunks were stopped.`\n );\n }\n}\n\nexport function assertCompleteCandidateEmailChunkResult(\n requested: ReadonlyArray<{ applicationId: string; roundId: string }>,\n result: CandidateEmailAggregate\n): void {\n assertExactResultKeys(\n requested.map((item) => candidateRoundKey(item.applicationId, item.roundId)),\n [\n ...result.succeeded.map((item) => candidateRoundKey(item.applicationId, item.roundId)),\n ...result.skipped.map((item) => candidateRoundKey(item.applicationId, item.roundId)),\n ...result.failed.map((item) => candidateRoundKey(item.applicationId, item.roundId)),\n ],\n 'The candidate email request'\n );\n}\n\nexport function aggregateCandidateEmailResult(\n aggregate: CandidateEmailAggregate,\n result: CandidateEmailAggregate\n): CandidateEmailAggregate {\n return {\n succeeded: [...aggregate.succeeded, ...result.succeeded],\n skipped: [...aggregate.skipped, ...result.skipped],\n failed: [...aggregate.failed, ...result.failed],\n };\n}\n\nexport interface EnsuredRoundSummary {\n id: string;\n applicationId: string;\n}\n\nexport interface EnsureRoundFailure {\n applicationId: string;\n code: string;\n message: string;\n}\n\nexport interface EnsureRoundAggregate {\n created: EnsuredRoundSummary[];\n alreadyPresent: EnsuredRoundSummary[];\n failed: EnsureRoundFailure[];\n}\n\nexport function createEmptyEnsureRoundAggregate(): EnsureRoundAggregate {\n return { created: [], alreadyPresent: [], failed: [] };\n}\n\nexport function assertCompleteEnsureRoundChunkResult(\n requestedApplicationIds: ReadonlyArray<string>,\n result: EnsureRoundAggregate\n): void {\n assertExactResultKeys(\n requestedApplicationIds,\n [\n ...result.created.map((item) => item.applicationId),\n ...result.alreadyPresent.map((item) => item.applicationId),\n ...result.failed.map((item) => item.applicationId),\n ],\n 'The add-to-round request'\n );\n}\n\nexport function aggregateEnsureRoundResult(\n aggregate: EnsureRoundAggregate,\n result: EnsureRoundAggregate\n): EnsureRoundAggregate {\n return {\n created: [...aggregate.created, ...result.created],\n alreadyPresent: [...aggregate.alreadyPresent, ...result.alreadyPresent],\n failed: [...aggregate.failed, ...result.failed],\n };\n}\n\nexport interface BulkCustomEmailSuccess {\n applicationId: string;\n email: string;\n}\n\nexport interface BulkCustomEmailFailureItem {\n applicationId: string;\n message: string;\n}\n\nexport interface BulkCustomEmailAggregate {\n succeeded: BulkCustomEmailSuccess[];\n failed: BulkCustomEmailFailureItem[];\n}\n\nexport function createEmptyBulkCustomEmailAggregate(): BulkCustomEmailAggregate {\n return { succeeded: [], failed: [] };\n}\n\nexport function assertCompleteBulkCustomEmailChunkResult(\n requestedApplicationIds: ReadonlyArray<string>,\n result: BulkCustomEmailAggregate\n): void {\n assertExactResultKeys(\n requestedApplicationIds,\n [\n ...result.succeeded.map((item) => item.applicationId),\n ...result.failed.map((item) => item.applicationId),\n ],\n 'The bulk custom email request'\n );\n}\n\nexport function aggregateBulkCustomEmailResult(\n aggregate: BulkCustomEmailAggregate,\n result: BulkCustomEmailAggregate\n): BulkCustomEmailAggregate {\n return {\n succeeded: [...aggregate.succeeded, ...result.succeeded],\n failed: [...aggregate.failed, ...result.failed],\n };\n}\n\nexport function hasCandidateEmailType(round: CandidateRoundPreview, emailType: string): boolean {\n return round.emailLogs.some((log) => log.emailType === emailType);\n}\n\nexport interface DuplicateNoticeSuccess {\n email: string;\n}\n\nexport interface DuplicateNoticeSkip {\n email: string;\n reason: string;\n message: string;\n}\n\nexport interface DuplicateNoticeFailure {\n email: string;\n message: string;\n}\n\nexport interface DuplicateNoticeAggregate {\n succeeded: DuplicateNoticeSuccess[];\n skipped: DuplicateNoticeSkip[];\n failed: DuplicateNoticeFailure[];\n}\n\nexport function createEmptyDuplicateNoticeAggregate(): DuplicateNoticeAggregate {\n return { succeeded: [], skipped: [], failed: [] };\n}\n\nexport function aggregateDuplicateNoticeResult(\n aggregate: DuplicateNoticeAggregate,\n result: DuplicateNoticeAggregate\n): DuplicateNoticeAggregate {\n return {\n succeeded: [...aggregate.succeeded, ...result.succeeded],\n skipped: [...aggregate.skipped, ...result.skipped],\n failed: [...aggregate.failed, ...result.failed],\n };\n}\n"],"mappings":"AAgCA,IAAa,IAAb,cAAmD,MAAM;CAErC;CADlB,YACE,GACA,GACA;EAEA,AADA,MAAM,CAAO,GAHG,KAAA,OAAA,GAIhB,KAAK,OAAO;CACd;AACF;AAUA,SAAS,EAAmB,GAAkB,GAA+B;CAC3E,IAAI,MAAa,GACf,MAAM,IAAI,EACR,eACA,gEACF;AAEJ;AAEA,eAAe,EAA+D,EAC5E,aACA,kBACA,cACA,uBACA,eAC4E;CAC5E,IAAM,oBAAc,IAAI,IAAqB,GACzC,IAAS;CAEb,SAAa;EACX,EAAmB,GAAU,EAAmB,CAAC;EACjD,IAAM,IAAO,MAAM,EAAU,GAAU,CAAM;EAG7C,IAFA,EAAmB,GAAU,EAAmB,CAAC,GAE7C,EAAK,UAAU,GACjB,MAAM,IAAI,EACR,eACA,+CAA+C,EAAc,MAAM,EAAK,MAAM,4BAChF;EAGF,IAAM,IAAgB,EAAK,MAAM;EACjC,IAAI,IAAgB,GAClB,MAAM,IAAI,EACR,uBACA,uBAAuB,EAAc,sCAAsC,EAAS,EACtF;EAEF,IAAI,EAAK,WAAW,MAAkB,GACpC,MAAM,IAAI,EACR,wBACA,mEACF;EAGF,KAAK,IAAM,KAAU,EAAK,OACxB,AAAK,EAAY,IAAI,EAAO,EAAE,KAC5B,EAAY,IAAI,EAAO,IAAI,CAAM;EAMrC,IAFA,KAAU,GAEN,CAAC,EAAK,SAAS;GACjB,IAAI,EAAY,SAAS,GACvB,MAAM,IAAI,EACR,yBACA,YAAY,EAAc,kCAAkC,EAAY,KAAK,4BAC/E;GAEF,OAAO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