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