var x=Object.create;var a=Object.defineProperty;var T=Object.getOwnPropertyDescriptor;var F=Object.getOwnPropertyNames;var P=Object.getPrototypeOf,R=Object.prototype.hasOwnProperty;var te=(e,t)=>()=>(e&&(t=e(e=0)),t);var oe=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),re=(e,t)=>{for(var o in t)a(e,o,{get:t[o],enumerable:!0})},S=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of F(t))!R.call(e,i)&&i!==o&&a(e,i,{get:()=>t[i],enumerable:!(r=T(t,i))||r.enumerable});return e};var ne=(e,t,o)=>(o=e!=null?x(P(e)):{},S(t||!e||!e.__esModule?a(o,"default",{value:e,enumerable:!0}):o,e)),ie=e=>S(a({},"__esModule",{value:!0}),e);import*as U from"botframework-webchat-api/decorator";import{Constants as G,createStore as V,createStoreWithDevTools as ye,createStoreWithOptions as j}from"botframework-webchat-core";import*as q from"botframework-webchat-component/internal";import h,{Components as We,concatMiddleware as H,createStyleSet as z,hooks as J,testIds as K,withEmoji as N}from"botframework-webchat-component";import{buildInfo as m}from"botframework-webchat-api";import{buildInfo as s}from"botframework-webchat-component";import{buildInfo as c}from"botframework-webchat-core";var _="4.18.1-main.20240831.f4058ce";function n(e,t){try{let{document:o}=globalThis;if(typeof o<"u"&&o.createElement&&o.head&&o.head.appendChild){let r=o.querySelector(`html meta[name="${encodeURI(e)}"]`)||o.createElement("meta");r.setAttribute("name",e),r.setAttribute("content",t),o.head.appendChild(r)}}catch{}}function p(e){n("botframework-webchat:api",`version=${m.version}; build-tool=${m.buildTool}; module-format=${m.moduleFormat}`),n("botframework-webchat:bundle",`version=${_}; variant=${e}; build-tool=tsup; module-format=esmodules`),n("botframework-webchat:component",`version=${s.version}; build-tool=${s.buildTool}; module-format=${s.moduleFormat}`),n("botframework-webchat:core",`version=${c.version}; build-tool=${c.buildTool}; module-format=${c.moduleFormat}`),n("botframework-webchat:bundle:variant",e),n("botframework-webchat:bundle:version","4.18.1-main.20240831.f4058ce"),n("botframework-webchat:core:version",c.version),n("botframework-webchat:ui:version",s.version)}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 B}from"botframework-directlinejs";function d({botAgent:e,conversationId:t,conversationStartProperties:o,domain:r,fetch:i,pollingInterval:g,secret:v,streamUrl:y,token:C,watermark:W,webSocket:k}){return new B({botAgent:e,conversationId:t,conversationStartProperties:o,domain:r,fetch:i,pollingInterval:g,secret:v,streamUrl:y,token:C,watermark:W,webSocket:k,createFormData:D=>{let w=new FormData;return D.forEach(({contentType:I,data:L,filename:$,name:A})=>{w.append(A,new Blob(L,{type:I}),$)}),w}})}import{DirectLineStreaming as E}from"botframework-directlinejs";function b({botAgent:e,conversationId:t,domain:o,token:r}){return Promise.resolve(new E({botAgent:e,conversationId:t,domain:o,token:r}))}import O from"react";import M from"react-dom";function f(e,t,o){M.render(O.createElement(e,{...t}),o)}var Q=f.bind(null,h),X="tsup",Y="esmodules",u="4.18.1-main.20240831.f4058ce",Ae={buildTool:X,moduleFormat:Y,variant:"minimal",version:u},Z=e=>(e.botAgent&&console.warn("Web Chat: Developers are not currently allowed to set botAgent in the createDirectLine function. See https://github.com/microsoft/BotFramework-WebChat/issues/2119 for more details."),d({...e,botAgent:`WebChat/${u} (Minimal)`})),ee=e=>(e.botAgent&&console.warn("Web Chat: Developers are not currently allowed to set botAgent in the createDirectLine function. See https://github.com/microsoft/BotFramework-WebChat/issues/2119 for more details."),b({...e,botAgent:`WebChat/${u} (Minimal)`})),xe=h;window.WebChat={...window.WebChat,concatMiddleware:H,Constants:G,createBrowserWebSpeechPonyfillFactory:l,createDirectLine:Z,createDirectLineAppServiceExtension:ee,createStore:V,createStoreWithOptions:j,createStyleSet:z,decorator:U,internal:q,hooks:J,ReactWebChat:h,renderWebChat:Q,testIds:{...window.WebChat?.testIds||{},...K},withEmoji:N};p("minimal");export{te as a,oe as b,re as c,ne as d,ie as e,p as f,l as g,d as h,b as i,f as j,G as k,V as l,ye as m,j as n,q as o,We as p,H as q,z as r,J as s,N as t,Q as u,u as v,Ae as w,Z as x,ee as y,xe as z};
/*! For license information please see chunk-MA2JMNLQ.mjs.LEGAL.txt */
//# sourceMappingURL=chunk-MA2JMNLQ.mjs.map