botframework-webchat 4.18.1-main.20250127.e44c342 → 4.18.1-main.20250129.b40802d

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,3 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk3OAYAR43js = require('./chunk-3OAYAR43.js');var _chunkE2QTQNYPjs = require('./chunk-E2QTQNYP.js');var E=Object.freeze({..._chunkE2QTQNYPjs.z,variant:"full-es5"}),B= exports.createDirectLine =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."),_chunkE2QTQNYPjs.h.call(void 0, {...e,botAgent:`WebChat/${_chunkE2QTQNYPjs.y} (ES5)`})),I= exports.createDirectLineAppServiceExtension =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."),_chunkE2QTQNYPjs.i.call(void 0, {...e,botAgent:`WebChat/${_chunkE2QTQNYPjs.y} (ES5)`}));exports.Components = _chunk3OAYAR43js.m; exports.Constants = _chunkE2QTQNYPjs.l; exports.ReactWebChat = _chunk3OAYAR43js.d; exports.buildInfo = E; exports.concatMiddleware = _chunkE2QTQNYPjs.s; exports.createAdaptiveCardsAttachmentForScreenReaderMiddleware = _chunk3OAYAR43js.a; exports.createAdaptiveCardsAttachmentMiddleware = _chunk3OAYAR43js.b; exports.createBrowserWebSpeechPonyfillFactory = _chunkE2QTQNYPjs.j; exports.createCognitiveServicesSpeechServicesPonyfillFactory = _chunk3OAYAR43js.e; exports.createDirectLine = B; exports.createDirectLineAppServiceExtension = I; exports.createDirectLineSpeechAdapters = _chunk3OAYAR43js.f; exports.createStore = _chunkE2QTQNYPjs.m; exports.createStoreWithDevTools = _chunkE2QTQNYPjs.n; exports.createStoreWithOptions = _chunkE2QTQNYPjs.o; exports.createStyleSet = _chunk3OAYAR43js.g; exports.decorator = _chunkE2QTQNYPjs.D; exports.hooks = _chunk3OAYAR43js.l; exports.internal = _chunkE2QTQNYPjs.p; exports.renderMarkdown = _chunk3OAYAR43js.c; exports.renderWebChat = _chunk3OAYAR43js.h; exports.testIds = _chunkE2QTQNYPjs.v; exports.version = _chunkE2QTQNYPjs.y; exports.withEmoji = _chunkE2QTQNYPjs.w;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk7WMTUZ5Ojs = require('./chunk-7WMTUZ5O.js');var _chunk5MUSNARNjs = require('./chunk-5MUSNARN.js');var E=Object.freeze({..._chunk5MUSNARNjs.z,variant:"full-es5"}),B= exports.createDirectLine =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."),_chunk5MUSNARNjs.h.call(void 0, {...e,botAgent:`WebChat/${_chunk5MUSNARNjs.y} (ES5)`})),I= exports.createDirectLineAppServiceExtension =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."),_chunk5MUSNARNjs.i.call(void 0, {...e,botAgent:`WebChat/${_chunk5MUSNARNjs.y} (ES5)`}));exports.Components = _chunk7WMTUZ5Ojs.m; exports.Constants = _chunk5MUSNARNjs.l; exports.ReactWebChat = _chunk7WMTUZ5Ojs.d; exports.buildInfo = E; exports.concatMiddleware = _chunk5MUSNARNjs.s; exports.createAdaptiveCardsAttachmentForScreenReaderMiddleware = _chunk7WMTUZ5Ojs.a; exports.createAdaptiveCardsAttachmentMiddleware = _chunk7WMTUZ5Ojs.b; exports.createBrowserWebSpeechPonyfillFactory = _chunk5MUSNARNjs.j; exports.createCognitiveServicesSpeechServicesPonyfillFactory = _chunk7WMTUZ5Ojs.e; exports.createDirectLine = B; exports.createDirectLineAppServiceExtension = I; exports.createDirectLineSpeechAdapters = _chunk7WMTUZ5Ojs.f; exports.createStore = _chunk5MUSNARNjs.m; exports.createStoreWithDevTools = _chunk5MUSNARNjs.n; exports.createStoreWithOptions = _chunk5MUSNARNjs.o; exports.createStyleSet = _chunk7WMTUZ5Ojs.g; exports.decorator = _chunk5MUSNARNjs.D; exports.hooks = _chunk7WMTUZ5Ojs.l; exports.internal = _chunk5MUSNARNjs.p; exports.renderMarkdown = _chunk7WMTUZ5Ojs.c; exports.renderWebChat = _chunk7WMTUZ5Ojs.h; exports.testIds = _chunk5MUSNARNjs.v; exports.version = _chunk5MUSNARNjs.y; exports.withEmoji = _chunk5MUSNARNjs.w;
2
2
  /*! For license information please see botframework-webchat.es5.js.LEGAL.txt */
3
3
  //# sourceMappingURL=botframework-webchat.es5.js.map
@@ -1,3 +1,3 @@
1
- import{a,b as i,c as s,d as c,e as l,f as m,g as b,h as x,l as S,m as w}from"./chunk-BRCX6KNE.mjs";import{d as r,e as o,f,h as p,i as u,j as d,k as A,l as g,o as h,r as C,s as D,u as t,v as n,z as v}from"./chunk-ASV62R53.mjs";var E=Object.freeze({...n,variant:"full-es5"}),B=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."),r({...e,botAgent:`WebChat/${t} (ES5)`})),I=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."),o({...e,botAgent:`WebChat/${t} (ES5)`}));export{w as Components,p as Constants,c as ReactWebChat,E as buildInfo,h as concatMiddleware,a as createAdaptiveCardsAttachmentForScreenReaderMiddleware,i as createAdaptiveCardsAttachmentMiddleware,f as createBrowserWebSpeechPonyfillFactory,l as createCognitiveServicesSpeechServicesPonyfillFactory,B as createDirectLine,I as createDirectLineAppServiceExtension,m as createDirectLineSpeechAdapters,u as createStore,d as createStoreWithDevTools,A as createStoreWithOptions,b as createStyleSet,v as decorator,S as hooks,g as internal,s as renderMarkdown,x as renderWebChat,C as testIds,t as version,D as withEmoji};
1
+ import{a,b as i,c as s,d as c,e as l,f as m,g as b,h as x,l as S,m as w}from"./chunk-V775MBEJ.mjs";import{d as r,e as o,f,h as p,i as u,j as d,k as A,l as g,o as h,r as C,s as D,u as t,v as n,z as v}from"./chunk-2KQWLCLT.mjs";var E=Object.freeze({...n,variant:"full-es5"}),B=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."),r({...e,botAgent:`WebChat/${t} (ES5)`})),I=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."),o({...e,botAgent:`WebChat/${t} (ES5)`}));export{w as Components,p as Constants,c as ReactWebChat,E as buildInfo,h as concatMiddleware,a as createAdaptiveCardsAttachmentForScreenReaderMiddleware,i as createAdaptiveCardsAttachmentMiddleware,f as createBrowserWebSpeechPonyfillFactory,l as createCognitiveServicesSpeechServicesPonyfillFactory,B as createDirectLine,I as createDirectLineAppServiceExtension,m as createDirectLineSpeechAdapters,u as createStore,d as createStoreWithDevTools,A as createStoreWithOptions,b as createStyleSet,v as decorator,S as hooks,g as internal,s as renderMarkdown,x as renderWebChat,C as testIds,t as version,D as withEmoji};
2
2
  /*! For license information please see botframework-webchat.es5.mjs.LEGAL.txt */
3
3
  //# sourceMappingURL=botframework-webchat.es5.mjs.map
@@ -1,3 +1,3 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk3OAYAR43js = require('./chunk-3OAYAR43.js');var _chunkE2QTQNYPjs = require('./chunk-E2QTQNYP.js');exports.Components = _chunk3OAYAR43js.m; exports.Constants = _chunkE2QTQNYPjs.l; exports.ReactWebChat = _chunk3OAYAR43js.d; exports.buildInfo = _chunk3OAYAR43js.i; exports.concatMiddleware = _chunkE2QTQNYPjs.s; exports.createAdaptiveCardsAttachmentForScreenReaderMiddleware = _chunk3OAYAR43js.a; exports.createAdaptiveCardsAttachmentMiddleware = _chunk3OAYAR43js.b; exports.createBrowserWebSpeechPonyfillFactory = _chunkE2QTQNYPjs.j; exports.createCognitiveServicesSpeechServicesPonyfillFactory = _chunk3OAYAR43js.e; exports.createDirectLine = _chunk3OAYAR43js.j; exports.createDirectLineAppServiceExtension = _chunk3OAYAR43js.k; exports.createDirectLineSpeechAdapters = _chunk3OAYAR43js.f; exports.createStore = _chunkE2QTQNYPjs.m; exports.createStoreWithDevTools = _chunkE2QTQNYPjs.n; exports.createStoreWithOptions = _chunkE2QTQNYPjs.o; exports.createStyleSet = _chunk3OAYAR43js.g; exports.decorator = _chunkE2QTQNYPjs.D; exports.default = _chunk3OAYAR43js.n; exports.hooks = _chunk3OAYAR43js.l; exports.internal = _chunkE2QTQNYPjs.p; exports.renderMarkdown = _chunk3OAYAR43js.c; exports.renderWebChat = _chunk3OAYAR43js.h; exports.testIds = _chunkE2QTQNYPjs.v; exports.version = _chunkE2QTQNYPjs.y; exports.withEmoji = _chunkE2QTQNYPjs.w;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk7WMTUZ5Ojs = require('./chunk-7WMTUZ5O.js');var _chunk5MUSNARNjs = require('./chunk-5MUSNARN.js');exports.Components = _chunk7WMTUZ5Ojs.m; exports.Constants = _chunk5MUSNARNjs.l; exports.ReactWebChat = _chunk7WMTUZ5Ojs.d; exports.buildInfo = _chunk7WMTUZ5Ojs.i; exports.concatMiddleware = _chunk5MUSNARNjs.s; exports.createAdaptiveCardsAttachmentForScreenReaderMiddleware = _chunk7WMTUZ5Ojs.a; exports.createAdaptiveCardsAttachmentMiddleware = _chunk7WMTUZ5Ojs.b; exports.createBrowserWebSpeechPonyfillFactory = _chunk5MUSNARNjs.j; exports.createCognitiveServicesSpeechServicesPonyfillFactory = _chunk7WMTUZ5Ojs.e; exports.createDirectLine = _chunk7WMTUZ5Ojs.j; exports.createDirectLineAppServiceExtension = _chunk7WMTUZ5Ojs.k; exports.createDirectLineSpeechAdapters = _chunk7WMTUZ5Ojs.f; exports.createStore = _chunk5MUSNARNjs.m; exports.createStoreWithDevTools = _chunk5MUSNARNjs.n; exports.createStoreWithOptions = _chunk5MUSNARNjs.o; exports.createStyleSet = _chunk7WMTUZ5Ojs.g; exports.decorator = _chunk5MUSNARNjs.D; exports.default = _chunk7WMTUZ5Ojs.n; exports.hooks = _chunk7WMTUZ5Ojs.l; exports.internal = _chunk5MUSNARNjs.p; exports.renderMarkdown = _chunk7WMTUZ5Ojs.c; exports.renderWebChat = _chunk7WMTUZ5Ojs.h; exports.testIds = _chunk5MUSNARNjs.v; exports.version = _chunk5MUSNARNjs.y; exports.withEmoji = _chunk5MUSNARNjs.w;
2
2
  /*! For license information please see botframework-webchat.js.LEGAL.txt */
3
3
  //# sourceMappingURL=botframework-webchat.js.map
@@ -1,3 +1,3 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkE2QTQNYPjs = require('./chunk-E2QTQNYP.js');exports.Components = _chunkE2QTQNYPjs.r; exports.Constants = _chunkE2QTQNYPjs.l; exports.ReactWebChat = _chunkE2QTQNYPjs.q; exports.buildInfo = _chunkE2QTQNYPjs.z; exports.concatMiddleware = _chunkE2QTQNYPjs.s; exports.createBrowserWebSpeechPonyfillFactory = _chunkE2QTQNYPjs.j; exports.createDirectLine = _chunkE2QTQNYPjs.A; exports.createDirectLineAppServiceExtension = _chunkE2QTQNYPjs.B; exports.createStore = _chunkE2QTQNYPjs.m; exports.createStoreWithDevTools = _chunkE2QTQNYPjs.n; exports.createStoreWithOptions = _chunkE2QTQNYPjs.o; exports.createStyleSet = _chunkE2QTQNYPjs.t; exports.decorator = _chunkE2QTQNYPjs.D; exports.default = _chunkE2QTQNYPjs.C; exports.hooks = _chunkE2QTQNYPjs.u; exports.internal = _chunkE2QTQNYPjs.p; exports.renderWebChat = _chunkE2QTQNYPjs.x; exports.testIds = _chunkE2QTQNYPjs.v; exports.version = _chunkE2QTQNYPjs.y; exports.withEmoji = _chunkE2QTQNYPjs.w;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk5MUSNARNjs = require('./chunk-5MUSNARN.js');exports.Components = _chunk5MUSNARNjs.r; exports.Constants = _chunk5MUSNARNjs.l; exports.ReactWebChat = _chunk5MUSNARNjs.q; exports.buildInfo = _chunk5MUSNARNjs.z; exports.concatMiddleware = _chunk5MUSNARNjs.s; exports.createBrowserWebSpeechPonyfillFactory = _chunk5MUSNARNjs.j; exports.createDirectLine = _chunk5MUSNARNjs.A; exports.createDirectLineAppServiceExtension = _chunk5MUSNARNjs.B; exports.createStore = _chunk5MUSNARNjs.m; exports.createStoreWithDevTools = _chunk5MUSNARNjs.n; exports.createStoreWithOptions = _chunk5MUSNARNjs.o; exports.createStyleSet = _chunk5MUSNARNjs.t; exports.decorator = _chunk5MUSNARNjs.D; exports.default = _chunk5MUSNARNjs.C; exports.hooks = _chunk5MUSNARNjs.u; exports.internal = _chunk5MUSNARNjs.p; exports.renderWebChat = _chunk5MUSNARNjs.x; exports.testIds = _chunk5MUSNARNjs.v; exports.version = _chunk5MUSNARNjs.y; exports.withEmoji = _chunk5MUSNARNjs.w;
2
2
  /*! For license information please see botframework-webchat.minimal.js.LEGAL.txt */
3
3
  //# sourceMappingURL=botframework-webchat.minimal.js.map
@@ -1,3 +1,3 @@
1
- import{f as a,h as b,i as c,j as d,k as e,l as f,m as g,n as h,o as i,p as j,q as k,r as l,s as m,t as n,u as o,v as p,w as q,x as r,y as s,z as t}from"./chunk-ASV62R53.mjs";export{h as Components,b as Constants,g as ReactWebChat,p as buildInfo,i as concatMiddleware,a as createBrowserWebSpeechPonyfillFactory,q as createDirectLine,r as createDirectLineAppServiceExtension,c as createStore,d as createStoreWithDevTools,e as createStoreWithOptions,j as createStyleSet,t as decorator,s as default,k as hooks,f as internal,n as renderWebChat,l as testIds,o as version,m as withEmoji};
1
+ import{f as a,h as b,i as c,j as d,k as e,l as f,m as g,n as h,o as i,p as j,q as k,r as l,s as m,t as n,u as o,v as p,w as q,x as r,y as s,z as t}from"./chunk-2KQWLCLT.mjs";export{h as Components,b as Constants,g as ReactWebChat,p as buildInfo,i as concatMiddleware,a as createBrowserWebSpeechPonyfillFactory,q as createDirectLine,r as createDirectLineAppServiceExtension,c as createStore,d as createStoreWithDevTools,e as createStoreWithOptions,j as createStyleSet,t as decorator,s as default,k as hooks,f as internal,n as renderWebChat,l as testIds,o as version,m as withEmoji};
2
2
  /*! For license information please see botframework-webchat.minimal.mjs.LEGAL.txt */
3
3
  //# sourceMappingURL=botframework-webchat.minimal.mjs.map
@@ -1,3 +1,3 @@
1
- import{a,b,c,d,e,f,g,h as s,i as t,j as u,k as v,l as w,m as x,n as y}from"./chunk-BRCX6KNE.mjs";import{f as h,h as i,i as j,j as k,k as l,l as m,o as n,r as o,s as p,u as q,z as r}from"./chunk-ASV62R53.mjs";export{x as Components,i as Constants,d as ReactWebChat,t as buildInfo,n as concatMiddleware,a as createAdaptiveCardsAttachmentForScreenReaderMiddleware,b as createAdaptiveCardsAttachmentMiddleware,h as createBrowserWebSpeechPonyfillFactory,e as createCognitiveServicesSpeechServicesPonyfillFactory,u as createDirectLine,v as createDirectLineAppServiceExtension,f as createDirectLineSpeechAdapters,j as createStore,k as createStoreWithDevTools,l as createStoreWithOptions,g as createStyleSet,r as decorator,y as default,w as hooks,m as internal,c as renderMarkdown,s as renderWebChat,o as testIds,q as version,p as withEmoji};
1
+ import{a,b,c,d,e,f,g,h as s,i as t,j as u,k as v,l as w,m as x,n as y}from"./chunk-V775MBEJ.mjs";import{f as h,h as i,i as j,j as k,k as l,l as m,o as n,r as o,s as p,u as q,z as r}from"./chunk-2KQWLCLT.mjs";export{x as Components,i as Constants,d as ReactWebChat,t as buildInfo,n as concatMiddleware,a as createAdaptiveCardsAttachmentForScreenReaderMiddleware,b as createAdaptiveCardsAttachmentMiddleware,h as createBrowserWebSpeechPonyfillFactory,e as createCognitiveServicesSpeechServicesPonyfillFactory,u as createDirectLine,v as createDirectLineAppServiceExtension,f as createDirectLineSpeechAdapters,j as createStore,k as createStoreWithDevTools,l as createStoreWithOptions,g as createStyleSet,r as decorator,y as default,w as hooks,m as internal,c as renderMarkdown,s as renderWebChat,o as testIds,q as version,p as withEmoji};
2
2
  /*! For license information please see botframework-webchat.mjs.LEGAL.txt */
3
3
  //# sourceMappingURL=botframework-webchat.mjs.map
@@ -1,3 +1,3 @@
1
- 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{Constants as Z,createStore as ee,createStoreWithDevTools as te,createStoreWithOptions as oe}from"botframework-webchat-core";import*as re from"botframework-webchat-component/internal";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.20250127.e44c342",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,Z 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};
2
- /*! For license information please see chunk-ASV62R53.mjs.LEGAL.txt */
3
- //# sourceMappingURL=chunk-ASV62R53.mjs.map
1
+ 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{Constants as Z,createStore as ee,createStoreWithDevTools as te,createStoreWithOptions as oe}from"botframework-webchat-core";import*as re from"botframework-webchat-component/internal";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.20250129.b40802d",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,Z 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};
2
+ /*! For license information please see chunk-2KQWLCLT.mjs.LEGAL.txt */
3
+ //# sourceMappingURL=chunk-2KQWLCLT.mjs.map
@@ -1,3 +1,3 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var L=Object.create;var i=Object.defineProperty;var x=Object.getOwnPropertyDescriptor;var k=Object.getOwnPropertyNames;var O=Object.getPrototypeOf,P=Object.prototype.hasOwnProperty;var l=e=>{throw TypeError(e)};var R=(e,t,o)=>t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o;var U=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),z= exports.b =(e,t)=>{for(var o in t)i(e,o,{get:t[o],enumerable:!0})},T=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of k(t))!P.call(e,n)&&n!==o&&i(e,n,{get:()=>t[n],enumerable:!(r=x(t,n))||r.enumerable});return e};var $=(e,t,o)=>(o=e!=null?L(O(e)):{},T(t||!e||!e.__esModule?i(o,"default",{value:e,enumerable:!0}):o,e));var H=(e,t,o)=>R(e,typeof t!="symbol"?t+"":t,o),h=(e,t,o)=>t.has(e)||l("Cannot "+o);var q=(e,t,o)=>(h(e,t,"read from private field"),o?o.call(e):t.get(e)),J= exports.f =(e,t,o)=>t.has(e)?l("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,o),K= exports.g =(e,t,o,r)=>(h(e,t,"write to private field"),r?r.call(e,o):t.set(e,o),o);var _decorator = require('botframework-webchat-api/decorator'); var M = _interopRequireWildcard(_decorator);var _decorator2 = require('botframework-webchat-component/decorator');var _botframeworkwebchatcore = require('botframework-webchat-core');var _internal = require('botframework-webchat-component/internal'); var me = _interopRequireWildcard(_internal);var _botframeworkwebchatcomponent = require('botframework-webchat-component'); var _botframeworkwebchatcomponent2 = _interopRequireDefault(_botframeworkwebchatcomponent);function f(){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})}var _botframeworkdirectlinejs = require('botframework-directlinejs');function a({botAgent:e,conversationId:t,conversationStartProperties:o,domain:r,fetch:n,pollingInterval:d,secret:S,streamUrl:w,token:y,watermark:g,webSocket:u}){return new (0, _botframeworkdirectlinejs.DirectLine)({botAgent:e,conversationId:t,conversationStartProperties:o,domain:r,fetch:n,pollingInterval:d,secret:S,streamUrl:w,token:y,watermark:g,webSocket:u,createFormData:C=>{let m=new FormData;return C.forEach(({contentType:W,data:D,filename:v,name:A})=>{m.append(A,new Blob(D,{type:W}),v)}),m}})}function s({botAgent:e,conversationId:t,domain:o,token:r}){return Promise.resolve(new (0, _botframeworkdirectlinejs.DirectLineStreaming)({botAgent:e,conversationId:t,domain:o,token:r}))}var _react = require('react'); var _react2 = _interopRequireDefault(_react);var _reactdom = require('react-dom'); var _reactdom2 = _interopRequireDefault(_reactdom);function c(e,t,o){_reactdom2.default.render(_react2.default.createElement(e,{...t}),o)}var We=c.bind(null,_botframeworkwebchatcomponent2.default),j="tsup",G="esmodules",p= exports.y ="4.18.1-main.20250127.e44c342",De= exports.z =Object.freeze({buildTool:j,moduleFormat:G,variant:"minimal",version:p}),ve= exports.A =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)`})),Ae= exports.B =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)`})),Le= exports.C =_botframeworkwebchatcomponent2.default,xe= exports.D =Object.freeze({...M,WebChatDecorator:_decorator2.WebChatDecorator});exports.a = U; exports.b = z; exports.c = $; exports.d = H; exports.e = q; exports.f = J; exports.g = K; exports.h = a; exports.i = s; exports.j = f; exports.k = c; exports.l = _botframeworkwebchatcore.Constants; exports.m = _botframeworkwebchatcore.createStore; exports.n = _botframeworkwebchatcore.createStoreWithDevTools; exports.o = _botframeworkwebchatcore.createStoreWithOptions; exports.p = me; exports.q = _botframeworkwebchatcomponent2.default; exports.r = _botframeworkwebchatcomponent.Components; exports.s = _botframeworkwebchatcomponent.concatMiddleware; exports.t = _botframeworkwebchatcomponent.createStyleSet; exports.u = _botframeworkwebchatcomponent.hooks; exports.v = _botframeworkwebchatcomponent.testIds; exports.w = _botframeworkwebchatcomponent.withEmoji; exports.x = We; exports.y = p; exports.z = De; exports.A = ve; exports.B = Ae; exports.C = Le; exports.D = xe;
2
- /*! For license information please see chunk-E2QTQNYP.js.LEGAL.txt */
3
- //# sourceMappingURL=chunk-E2QTQNYP.js.map
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var L=Object.create;var i=Object.defineProperty;var x=Object.getOwnPropertyDescriptor;var k=Object.getOwnPropertyNames;var O=Object.getPrototypeOf,P=Object.prototype.hasOwnProperty;var l=e=>{throw TypeError(e)};var R=(e,t,o)=>t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o;var U=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),z= exports.b =(e,t)=>{for(var o in t)i(e,o,{get:t[o],enumerable:!0})},T=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of k(t))!P.call(e,n)&&n!==o&&i(e,n,{get:()=>t[n],enumerable:!(r=x(t,n))||r.enumerable});return e};var $=(e,t,o)=>(o=e!=null?L(O(e)):{},T(t||!e||!e.__esModule?i(o,"default",{value:e,enumerable:!0}):o,e));var H=(e,t,o)=>R(e,typeof t!="symbol"?t+"":t,o),h=(e,t,o)=>t.has(e)||l("Cannot "+o);var q=(e,t,o)=>(h(e,t,"read from private field"),o?o.call(e):t.get(e)),J= exports.f =(e,t,o)=>t.has(e)?l("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,o),K= exports.g =(e,t,o,r)=>(h(e,t,"write to private field"),r?r.call(e,o):t.set(e,o),o);var _decorator = require('botframework-webchat-api/decorator'); var M = _interopRequireWildcard(_decorator);var _decorator2 = require('botframework-webchat-component/decorator');var _botframeworkwebchatcore = require('botframework-webchat-core');var _internal = require('botframework-webchat-component/internal'); var me = _interopRequireWildcard(_internal);var _botframeworkwebchatcomponent = require('botframework-webchat-component'); var _botframeworkwebchatcomponent2 = _interopRequireDefault(_botframeworkwebchatcomponent);function f(){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})}var _botframeworkdirectlinejs = require('botframework-directlinejs');function a({botAgent:e,conversationId:t,conversationStartProperties:o,domain:r,fetch:n,pollingInterval:d,secret:S,streamUrl:w,token:y,watermark:g,webSocket:u}){return new (0, _botframeworkdirectlinejs.DirectLine)({botAgent:e,conversationId:t,conversationStartProperties:o,domain:r,fetch:n,pollingInterval:d,secret:S,streamUrl:w,token:y,watermark:g,webSocket:u,createFormData:C=>{let m=new FormData;return C.forEach(({contentType:W,data:D,filename:v,name:A})=>{m.append(A,new Blob(D,{type:W}),v)}),m}})}function s({botAgent:e,conversationId:t,domain:o,token:r}){return Promise.resolve(new (0, _botframeworkdirectlinejs.DirectLineStreaming)({botAgent:e,conversationId:t,domain:o,token:r}))}var _react = require('react'); var _react2 = _interopRequireDefault(_react);var _reactdom = require('react-dom'); var _reactdom2 = _interopRequireDefault(_reactdom);function c(e,t,o){_reactdom2.default.render(_react2.default.createElement(e,{...t}),o)}var We=c.bind(null,_botframeworkwebchatcomponent2.default),j="tsup",G="esmodules",p= exports.y ="4.18.1-main.20250129.b40802d",De= exports.z =Object.freeze({buildTool:j,moduleFormat:G,variant:"minimal",version:p}),ve= exports.A =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)`})),Ae= exports.B =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)`})),Le= exports.C =_botframeworkwebchatcomponent2.default,xe= exports.D =Object.freeze({...M,WebChatDecorator:_decorator2.WebChatDecorator});exports.a = U; exports.b = z; exports.c = $; exports.d = H; exports.e = q; exports.f = J; exports.g = K; exports.h = a; exports.i = s; exports.j = f; exports.k = c; exports.l = _botframeworkwebchatcore.Constants; exports.m = _botframeworkwebchatcore.createStore; exports.n = _botframeworkwebchatcore.createStoreWithDevTools; exports.o = _botframeworkwebchatcore.createStoreWithOptions; exports.p = me; exports.q = _botframeworkwebchatcomponent2.default; exports.r = _botframeworkwebchatcomponent.Components; exports.s = _botframeworkwebchatcomponent.concatMiddleware; exports.t = _botframeworkwebchatcomponent.createStyleSet; exports.u = _botframeworkwebchatcomponent.hooks; exports.v = _botframeworkwebchatcomponent.testIds; exports.w = _botframeworkwebchatcomponent.withEmoji; exports.x = We; exports.y = p; exports.z = De; exports.A = ve; exports.B = Ae; exports.C = Le; exports.D = xe;
2
+ /*! For license information please see chunk-5MUSNARN.js.LEGAL.txt */
3
+ //# sourceMappingURL=chunk-5MUSNARN.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/__w/1/s/BotFramework-WebChat/packages/bundle/dist/chunk-E2QTQNYP.js","../src/module/exports-minimal.ts","../src/createBrowserWebSpeechPonyfillFactory.ts","../src/createDirectLine.ts","../src/createDirectLineAppServiceExtension.ts","../src/renderWebChat.tsx"],"names":["createBrowserWebSpeechPonyfillFactory","createDirectLine","botAgent","conversationId","conversationStartProperties","domain","fetch","pollingInterval","secret","streamUrl","token","watermark","webSocket","DirectLine","attachments","formData","contentType","data","filename","name","createDirectLineAppServiceExtension","DirectLineStreaming","renderWebChat","ReactWebChat","props","element","ReactDOM","React","buildTool","moduleFormat","version","buildInfo","options","exports_minimal_default","decorator","apiDecorator","WebChatDecorator"],"mappings":"AAAA,+bAAI,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,cAAc,CAAC,I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from 'botframework-webchat-api';\nimport * as apiDecorator from 'botframework-webchat-api/decorator';\nimport { WebChatDecorator } from 'botframework-webchat-component/decorator';\nimport { Constants, createStore, createStoreWithDevTools, createStoreWithOptions } from 'botframework-webchat-core';\nimport * as internal from 'botframework-webchat-component/internal';\n\nimport ReactWebChat, {\n Components,\n concatMiddleware,\n createStyleSet,\n hooks,\n testIds,\n withEmoji\n} from 'botframework-webchat-component';\n\nimport createBrowserWebSpeechPonyfillFactory from '../createBrowserWebSpeechPonyfillFactory';\nimport defaultCreateDirectLine from '../createDirectLine';\nimport defaultCreateDirectLineAppServiceExtension from '../createDirectLineAppServiceExtension';\nimport coreRenderWebChat from '../renderWebChat';\n\nconst renderWebChat = coreRenderWebChat.bind(null, ReactWebChat);\n\nconst buildTool = process.env.build_tool;\nconst moduleFormat = process.env.module_format;\nconst version = process.env.npm_package_version;\n\nconst buildInfo = Object.freeze({\n buildTool,\n moduleFormat,\n variant: 'minimal',\n version\n});\n\nexport const createDirectLine = (options: Omit<Parameters<typeof defaultCreateDirectLine>[0], 'botAgent'>) => {\n (options as any).botAgent &&\n console.warn(\n 'Web Chat: Developers are not currently allowed to set botAgent. See https://github.com/microsoft/BotFramework-WebChat/issues/2119 for more details.'\n );\n\n return defaultCreateDirectLine({ ...options, botAgent: `WebChat/${version} (Minimal)` });\n};\n\nexport const createDirectLineAppServiceExtension = (\n options: Omit<Parameters<typeof defaultCreateDirectLineAppServiceExtension>[0], 'botAgent'>\n) => {\n (options as any).botAgent &&\n console.warn(\n 'Web Chat: Developers are not currently allowed to set botAgent. See https://github.com/microsoft/BotFramework-WebChat/issues/2119 for more details.'\n );\n\n return defaultCreateDirectLineAppServiceExtension({ ...options, botAgent: `WebChat/${version} (Minimal)` });\n};\n\nexport default ReactWebChat;\n\nconst decorator = Object.freeze({\n ...apiDecorator,\n WebChatDecorator\n});\n\nexport {\n buildInfo,\n Components,\n concatMiddleware,\n Constants,\n createBrowserWebSpeechPonyfillFactory,\n createStore,\n createStoreWithDevTools,\n createStoreWithOptions,\n createStyleSet,\n decorator,\n hooks,\n internal,\n ReactWebChat,\n renderWebChat,\n testIds,\n version,\n withEmoji\n};\n\nexport type { StrictStyleOptions, StyleOptions };\n","import { WebSpeechPonyfill } from 'botframework-webchat-api';\n\nexport default function createBrowserWebSpeechPonyfillFactory(): () => WebSpeechPonyfill {\n if (!window.SpeechRecognition && !window.webkitSpeechRecognition) {\n console.warn('Web Chat: This browser does not support Web Speech API Speech Recognition.');\n }\n\n if (!window.speechSynthesis) {\n console.warn('Web Chat: This browser does not support Web Speech API Speech Synthesis.');\n }\n\n return () => ({\n SpeechGrammarList: window.SpeechGrammarList || window.webkitSpeechGrammarList,\n SpeechRecognition: window.SpeechRecognition || window.webkitSpeechRecognition,\n speechSynthesis: window.speechSynthesis,\n SpeechSynthesisUtterance: window.SpeechSynthesisUtterance\n });\n}\n","import { DirectLine } from 'botframework-directlinejs';\n\ntype CreateDirectLineOptions = {\n botAgent?: string;\n conversationId?: string;\n conversationStartProperties?: any;\n domain?: string;\n fetch?: typeof window.fetch;\n pollingInterval?: number;\n secret?: string;\n streamUrl?: string;\n token?: string;\n watermark?: string;\n webSocket?: typeof WebSocket;\n};\n\nexport default function createDirectLine({\n botAgent,\n conversationId,\n conversationStartProperties,\n domain,\n fetch,\n pollingInterval,\n secret,\n streamUrl,\n token,\n watermark,\n webSocket\n}: CreateDirectLineOptions) {\n // TODO: [P3] Checks if DLJS supports ponyfilling fetch.\n return new DirectLine({\n botAgent,\n conversationId,\n conversationStartProperties,\n domain,\n fetch,\n pollingInterval,\n secret,\n streamUrl,\n token,\n watermark,\n webSocket,\n createFormData: attachments => {\n const formData = new FormData();\n\n attachments.forEach(\n ({\n contentType,\n data,\n filename,\n name\n }: {\n contentType?: string;\n data: BlobPart[];\n filename?: string;\n name?: string;\n }) => {\n formData.append(name, new Blob(data, { type: contentType }), filename);\n }\n );\n\n return formData;\n }\n } as any);\n}\n","import { DirectLineStreaming } from 'botframework-directlinejs';\n\nexport default function createDirectLineAppServiceExtension({\n botAgent,\n conversationId,\n domain,\n token\n}: {\n botAgent?: string;\n conversationId?: string;\n domain?: string;\n token: string;\n}): Promise<any> {\n return Promise.resolve(\n new DirectLineStreaming({\n botAgent,\n conversationId,\n domain,\n token\n })\n );\n}\n","import React, { ComponentType } from 'react';\nimport ReactDOM from 'react-dom';\n\nexport default function renderWebChat(ReactWebChat: ComponentType<any>, props: any, element: HTMLElement): void {\n ReactDOM.render(<ReactWebChat {...props} />, element);\n}\n"]}
1
+ {"version":3,"sources":["/__w/1/s/BotFramework-WebChat/packages/bundle/dist/chunk-5MUSNARN.js","../src/module/exports-minimal.ts","../src/createBrowserWebSpeechPonyfillFactory.ts","../src/createDirectLine.ts","../src/createDirectLineAppServiceExtension.ts","../src/renderWebChat.tsx"],"names":["createBrowserWebSpeechPonyfillFactory","createDirectLine","botAgent","conversationId","conversationStartProperties","domain","fetch","pollingInterval","secret","streamUrl","token","watermark","webSocket","DirectLine","attachments","formData","contentType","data","filename","name","createDirectLineAppServiceExtension","DirectLineStreaming","renderWebChat","ReactWebChat","props","element","ReactDOM","React","buildTool","moduleFormat","version","buildInfo","options","exports_minimal_default","decorator","apiDecorator","WebChatDecorator"],"mappings":"AAAA,+bAAI,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,wBAAwB,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,mBAAmB,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,MAAM,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC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,EAAAA,aAAY,MAAA,CAAO,MAAA,CAAO,CAC9B,SAAA,CAAAH,CAAAA,CACA,YAAA,CAAAC,CAAAA,CACA,OAAA,CAAS,SAAA,CACT,OAAA,CAAAC,CACF,CAAC,CAAA,CAEY7B,EAAAA,aAAoB+B,CAAAA,EAAAA,CAC9BA,CAAAA,CAAgB,QAAA,EACf,OAAA,CAAQ,IAAA,CACN,qJACF,CAAA,CAEK/B,CAAAA,CAAwB,CAAE,GAAG+B,CAAAA,CAAS,QAAA,CAAU,CAAA,QAAA,EAAWF,CAAO,CAAA,UAAA,CAAa,CAAC,CAAA,CAAA,CAG5EV,EAAAA,aACXY,CAAAA,EAAAA,CAECA,CAAAA,CAAgB,QAAA,EACf,OAAA,CAAQ,IAAA,CACN,qJACF,CAAA,CAEKZ,CAAAA,CAA2C,CAAE,GAAGY,CAAAA,CAAS,QAAA,CAAU,CAAA,QAAA,EAAWF,CAAO,CAAA,UAAA,CAAa,CAAC,CAAA,CAAA,CAGrGG,EAAAA,aAAQV,sCAAAA,CAETW,EAAAA,aAAY,MAAA,CAAO,MAAA,CAAO,CAC9B,GAAGC,CAAAA,CACH,gBAAA,CAAAC,4BACF,CAAC,CAAA,CAAA,y3BAAA;ADzDD","file":"/__w/1/s/BotFramework-WebChat/packages/bundle/dist/chunk-5MUSNARN.js","sourcesContent":[null,"import { StrictStyleOptions, StyleOptions } from 'botframework-webchat-api';\nimport * as apiDecorator from 'botframework-webchat-api/decorator';\nimport { WebChatDecorator } from 'botframework-webchat-component/decorator';\nimport { Constants, createStore, createStoreWithDevTools, createStoreWithOptions } from 'botframework-webchat-core';\nimport * as internal from 'botframework-webchat-component/internal';\n\nimport ReactWebChat, {\n Components,\n concatMiddleware,\n createStyleSet,\n hooks,\n testIds,\n withEmoji\n} from 'botframework-webchat-component';\n\nimport createBrowserWebSpeechPonyfillFactory from '../createBrowserWebSpeechPonyfillFactory';\nimport defaultCreateDirectLine from '../createDirectLine';\nimport defaultCreateDirectLineAppServiceExtension from '../createDirectLineAppServiceExtension';\nimport coreRenderWebChat from '../renderWebChat';\n\nconst renderWebChat = coreRenderWebChat.bind(null, ReactWebChat);\n\nconst buildTool = process.env.build_tool;\nconst moduleFormat = process.env.module_format;\nconst version = process.env.npm_package_version;\n\nconst buildInfo = Object.freeze({\n buildTool,\n moduleFormat,\n variant: 'minimal',\n version\n});\n\nexport const createDirectLine = (options: Omit<Parameters<typeof defaultCreateDirectLine>[0], 'botAgent'>) => {\n (options as any).botAgent &&\n console.warn(\n 'Web Chat: Developers are not currently allowed to set botAgent. See https://github.com/microsoft/BotFramework-WebChat/issues/2119 for more details.'\n );\n\n return defaultCreateDirectLine({ ...options, botAgent: `WebChat/${version} (Minimal)` });\n};\n\nexport const createDirectLineAppServiceExtension = (\n options: Omit<Parameters<typeof defaultCreateDirectLineAppServiceExtension>[0], 'botAgent'>\n) => {\n (options as any).botAgent &&\n console.warn(\n 'Web Chat: Developers are not currently allowed to set botAgent. See https://github.com/microsoft/BotFramework-WebChat/issues/2119 for more details.'\n );\n\n return defaultCreateDirectLineAppServiceExtension({ ...options, botAgent: `WebChat/${version} (Minimal)` });\n};\n\nexport default ReactWebChat;\n\nconst decorator = Object.freeze({\n ...apiDecorator,\n WebChatDecorator\n});\n\nexport {\n buildInfo,\n Components,\n concatMiddleware,\n Constants,\n createBrowserWebSpeechPonyfillFactory,\n createStore,\n createStoreWithDevTools,\n createStoreWithOptions,\n createStyleSet,\n decorator,\n hooks,\n internal,\n ReactWebChat,\n renderWebChat,\n testIds,\n version,\n withEmoji\n};\n\nexport type { StrictStyleOptions, StyleOptions };\n","import { WebSpeechPonyfill } from 'botframework-webchat-api';\n\nexport default function createBrowserWebSpeechPonyfillFactory(): () => WebSpeechPonyfill {\n if (!window.SpeechRecognition && !window.webkitSpeechRecognition) {\n console.warn('Web Chat: This browser does not support Web Speech API Speech Recognition.');\n }\n\n if (!window.speechSynthesis) {\n console.warn('Web Chat: This browser does not support Web Speech API Speech Synthesis.');\n }\n\n return () => ({\n SpeechGrammarList: window.SpeechGrammarList || window.webkitSpeechGrammarList,\n SpeechRecognition: window.SpeechRecognition || window.webkitSpeechRecognition,\n speechSynthesis: window.speechSynthesis,\n SpeechSynthesisUtterance: window.SpeechSynthesisUtterance\n });\n}\n","import { DirectLine } from 'botframework-directlinejs';\n\ntype CreateDirectLineOptions = {\n botAgent?: string;\n conversationId?: string;\n conversationStartProperties?: any;\n domain?: string;\n fetch?: typeof window.fetch;\n pollingInterval?: number;\n secret?: string;\n streamUrl?: string;\n token?: string;\n watermark?: string;\n webSocket?: typeof WebSocket;\n};\n\nexport default function createDirectLine({\n botAgent,\n conversationId,\n conversationStartProperties,\n domain,\n fetch,\n pollingInterval,\n secret,\n streamUrl,\n token,\n watermark,\n webSocket\n}: CreateDirectLineOptions) {\n // TODO: [P3] Checks if DLJS supports ponyfilling fetch.\n return new DirectLine({\n botAgent,\n conversationId,\n conversationStartProperties,\n domain,\n fetch,\n pollingInterval,\n secret,\n streamUrl,\n token,\n watermark,\n webSocket,\n createFormData: attachments => {\n const formData = new FormData();\n\n attachments.forEach(\n ({\n contentType,\n data,\n filename,\n name\n }: {\n contentType?: string;\n data: BlobPart[];\n filename?: string;\n name?: string;\n }) => {\n formData.append(name, new Blob(data, { type: contentType }), filename);\n }\n );\n\n return formData;\n }\n } as any);\n}\n","import { DirectLineStreaming } from 'botframework-directlinejs';\n\nexport default function createDirectLineAppServiceExtension({\n botAgent,\n conversationId,\n domain,\n token\n}: {\n botAgent?: string;\n conversationId?: string;\n domain?: string;\n token: string;\n}): Promise<any> {\n return Promise.resolve(\n new DirectLineStreaming({\n botAgent,\n conversationId,\n domain,\n token\n })\n );\n}\n","import React, { ComponentType } from 'react';\nimport ReactDOM from 'react-dom';\n\nexport default function renderWebChat(ReactWebChat: ComponentType<any>, props: any, element: HTMLElement): void {\n ReactDOM.render(<ReactWebChat {...props} />, element);\n}\n"]}