{"version":3,"file":"AITypingIndicator.mjs","names":[],"sources":["../../../../../src/plugins/AIComponents/Message/AITypingIndicator.tsx"],"sourcesContent":["import React from 'react';\nimport clsx from 'clsx';\n\nimport { ThemeScopeProvider, useAIThemeScopeClassName } from '../themeScope';\n\nexport type AITypingIndicatorProps = {\n  /** What the agent is doing, such as \"Working on your calendar\". */\n  text: string;\n  className?: string;\n};\n\n/**\n * A label followed by three pulsing dots, for what the agent is doing while its reply shows\n * nothing new. The counterpart of `AITypingIndicatorView`.\n */\nexport const AITypingIndicator = ({ className, text }: AITypingIndicatorProps) => {\n  const themeScopeClassName = useAIThemeScopeClassName();\n  return (\n    <ThemeScopeProvider>\n      <div\n        aria-live='polite'\n        className={clsx(themeScopeClassName, 'str-chat__ai-typing-indicator', className)}\n        role='status'\n      >\n        <span className='str-chat__ai-typing-indicator__text'>{text}</span>\n        <span aria-hidden className='str-chat__ai-typing-indicator__dots'>\n          <span className='str-chat__ai-typing-indicator__dot' />\n          <span className='str-chat__ai-typing-indicator__dot' />\n          <span className='str-chat__ai-typing-indicator__dot' />\n        </span>\n      </div>\n    </ThemeScopeProvider>\n  );\n};\n"],"mappings":";;;;;;;;;;AAeA,IAAa,qBAAqB,EAAE,WAAW,WAAmC;CAEhF,OACE,oBAAC,oBAAD,EAAA,UACE,qBAAC,OAAD;EACE,aAAU;EACV,WAAW,KALW,yBAKN,GAAqB,iCAAiC,SAAS;EAC/E,MAAK;YAHP,CAKE,oBAAC,QAAD;GAAM,WAAU;aAAuC;EAAW,CAAA,GAClE,qBAAC,QAAD;GAAM,eAAA;GAAY,WAAU;aAA5B;IACE,oBAAC,QAAD,EAAM,WAAU,qCAAsC,CAAA;IACtD,oBAAC,QAAD,EAAM,WAAU,qCAAsC,CAAA;IACtD,oBAAC,QAAD,EAAM,WAAU,qCAAsC,CAAA;GAClD;IACH;IACa,CAAA;AAExB"}