{"version":3,"file":"ChatView.a11y.utility.mjs","names":[],"sources":["../../../../src/plugins/SlotLayout/ChatView.a11y.utility.ts"],"sourcesContent":["// ChatView views are independent surfaces, not panels of one WAI-ARIA Tabs widget, so their\n// containers carry only an ID. `createChatViewA11yContextValue` builds per-instance IDs so\n// skip-links and programmatic focus have stable hooks when several ChatViews coexist.\n\nexport type ChatViewA11yContextValue = {\n  chatViewPanelIds: Record<'channels' | 'threads', string>;\n};\n\nexport const DEFAULT_CHAT_VIEW_A11Y_CONTEXT_VALUE: ChatViewA11yContextValue = {\n  chatViewPanelIds: {\n    channels: 'str-chat__chat-view-panel-channels',\n    threads: 'str-chat__chat-view-panel-threads',\n  },\n};\n\nexport const createChatViewA11yContextValue = (\n  chatViewId: string,\n): ChatViewA11yContextValue => ({\n  chatViewPanelIds: {\n    channels: `str-chat__chat-view-${chatViewId}-panel-channels`,\n    threads: `str-chat__chat-view-${chatViewId}-panel-threads`,\n  },\n});\n"],"mappings":";AAQA,IAAa,uCAAiE,EAC5E,kBAAkB;CAChB,UAAU;CACV,SAAS;AACX,EACF;AAEA,IAAa,kCACX,gBAC8B,EAC9B,kBAAkB;CAChB,UAAU,uBAAuB,WAAW;CAC5C,SAAS,uBAAuB,WAAW;AAC7C,EACF"}