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 ee=(e,t)=>()=>(e&&(t=e(e=0)),t);var te=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),oe=(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 re=(e,t,o)=>(o=e!=null?x(P(e)):{},S(t||!e||!e.__esModule?a(o,"default",{value:e,enumerable:!0}):o,e)),ne=e=>S(a({},"__esModule",{value:!0}),e);import*as U from"botframework-webchat-api/decorator";import{Constants as G,createStore as V,createStoreWithDevTools as ve,createStoreWithOptions as j}from"botframework-webchat-core";import h,{Components as Ce,concatMiddleware as q,createStyleSet as H,hooks as z,testIds as J,withEmoji as K}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.20240823.c5330cc";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.20240823.c5330cc"),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 N=f.bind(null,h),Q="tsup",X="esmodules",u="4.18.1-main.20240823.c5330cc",$e={buildTool:Q,moduleFormat:X,variant:"minimal",version:u},Y=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)`})),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."),b({...e,botAgent:`WebChat/${u} (Minimal)`})),Ae=h;window.WebChat={...window.WebChat,concatMiddleware:q,Constants:G,createBrowserWebSpeechPonyfillFactory:l,createDirectLine:Y,createDirectLineAppServiceExtension:Z,createStore:V,createStoreWithOptions:j,createStyleSet:H,decorator:U,hooks:z,ReactWebChat:h,renderWebChat:N,testIds:{...window.WebChat?.testIds||{},...J},withEmoji:K};p("minimal");export{ee as a,te as b,oe as c,re as d,ne as e,p as f,l as g,d as h,b as i,f as j,G as k,V as l,ve as m,j as n,Ce as o,q as p,H as q,z as r,K as s,N as t,u,$e as v,Y as w,Z as x,Ae as y};
/*! For license information please see chunk-J22NLI4A.mjs.LEGAL.txt */
//# sourceMappingURL=chunk-J22NLI4A.mjs.map