var v=Object.create;var i=Object.defineProperty;var A=Object.getOwnPropertyDescriptor;var L=Object.getOwnPropertyNames;var x=Object.getPrototypeOf,k=Object.prototype.hasOwnProperty;var _=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),j=(e,t)=>{for(var o in t)i(e,o,{get:t[o],enumerable:!0})},O=(e,t,o,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of L(t))!k.call(e,r)&&r!==o&&i(e,r,{get:()=>t[r],enumerable:!(n=A(t,r))||n.enumerable});return e};var G=(e,t,o)=>(o=e!=null?v(x(e)):{},O(t||!e||!e.__esModule?i(o,"default",{value:e,enumerable:!0}):o,e));import*as F from"botframework-webchat-api/decorator";import{WebChatDecorator as I}from"botframework-webchat-component/decorator";import*as Y from"botframework-webchat-component/internal";import{Constants as ee,createStore as te,createStoreWithDevTools as oe,createStoreWithOptions as re}from"botframework-webchat-core";import h,{Components as ie,concatMiddleware as ae,createStyleSet as se,hooks as ce,testIds as pe,withEmoji as me}from"botframework-webchat-component";function l(){return!window.SpeechRecognition&&!window.webkitSpeechRecognition&&console.warn("Web Chat: This browser does not support Web Speech API Speech Recognition."),window.speechSynthesis||console.warn("Web Chat: This browser does not support Web Speech API Speech Synthesis."),()=>({SpeechGrammarList:window.SpeechGrammarList||window.webkitSpeechGrammarList,SpeechRecognition:window.SpeechRecognition||window.webkitSpeechRecognition,speechSynthesis:window.speechSynthesis,SpeechSynthesisUtterance:window.SpeechSynthesisUtterance})}import{DirectLine as P}from"botframework-directlinejs";function a({botAgent:e,conversationId:t,conversationStartProperties:o,domain:n,fetch:r,pollingInterval:f,secret:b,streamUrl:d,token:S,watermark:w,webSocket:y}){return new P({botAgent:e,conversationId:t,conversationStartProperties:o,domain:n,fetch:r,pollingInterval:f,secret:b,streamUrl:d,token:S,watermark:w,webSocket:y,createFormData:g=>{let m=new FormData;return g.forEach(({contentType:u,data:C,filename:W,name:D})=>{m.append(D,new Blob(C,{type:u}),W)}),m}})}import{DirectLineStreaming as R}from"botframework-directlinejs";function s({botAgent:e,conversationId:t,domain:o,token:n}){return Promise.resolve(new R({botAgent:e,conversationId:t,domain:o,token:n}))}import T from"react";import E from"react-dom";function c(e,t,o){E.render(T.createElement(e,{...t}),o)}var de=c.bind(null,h),B="tsup",M="esmodules",p="4.18.1-main.20250703.da78356",Se=Object.freeze({buildTool:B,moduleFormat:M,variant:"minimal",version:p}),we=e=>(e.botAgent&&console.warn("Web Chat: Developers are not currently allowed to set botAgent. See https://github.com/microsoft/BotFramework-WebChat/issues/2119 for more details."),a({...e,botAgent:`WebChat/${p} (Minimal)`})),ye=e=>(e.botAgent&&console.warn("Web Chat: Developers are not currently allowed to set botAgent. See https://github.com/microsoft/BotFramework-WebChat/issues/2119 for more details."),s({...e,botAgent:`WebChat/${p} (Minimal)`})),ge=h,ue=Object.freeze({...F,WebChatDecorator:I});export{_ as a,j as b,G as c,a as d,s as e,l as f,c as g,Y as h,ee as i,te as j,oe as k,re as l,h as m,ie as n,ae as o,se as p,ce as q,pe as r,me as s,de as t,p as u,Se as v,we as w,ye as x,ge as y,ue as z};
/*! For license information please see chunk-KW66GT7V.mjs.LEGAL.txt */
//# sourceMappingURL=chunk-KW66GT7V.mjs.map