botframework-webchat-core 4.17.0-main.20240503.d335d91 → 4.17.0
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
|
-
var go=Object.defineProperty;var Di=(t,e)=>{for(var i in e)go(t,i,{get:e[i],enumerable:!0})};var Wt="WEB_CHAT/CLEAR_SUGGESTED_ACTIONS";function Ni(){return{type:Wt}}var T="DIRECT_LINE/CONNECT",mt=`${T}_FULFILLED`,hi=`${T}_FULFILLING`,lt=`${T}_PENDING`,ft=`${T}_REJECTED`,dt=`${T}_STILL_PENDING`;function vi({directLine:t,userID:e,username:i}){return{type:T,payload:{directLine:t,userID:e,username:i}}}var _="DIRECT_LINE/DISCONNECT",yt=`${_}_PENDING`,Yc=`${_}_REJECTED`,ut=`${_}_FULFILLED`;function _i(){return{type:_}}var Mt="WEB_CHAT/DISMISS_NOTIFICATION";function Co(t){return{payload:{id:t},type:Mt}}var Do=Co;var Ut="WEB_CHAT/EMIT_TYPING_INDICATOR";function Tt(){return{type:Ut}}var j="WEB_CHAT/MARK_ACTIVITY";function No({id:t},e,i){return{type:j,payload:{activityID:t,name:e,value:i}}}var $=No;var I="DIRECT_LINE/POST_ACTIVITY",At=`${I}_FULFILLED`,St=`${I}_IMPEDED`,d=`${I}_PENDING`,H=`${I}_REJECTED`;function ho(t,e="keyboard"){return{type:I,meta:{method:e},payload:{activity:t}}}var y=ho;var Vt="WEB_CHAT/SEND_EVENT";function bi(t,e){return{type:Vt,payload:{name:t,value:e}}}var Yt="WEB_CHAT/SEND_FILES";function xi(t){return{type:Yt,payload:{files:t}}}var jt="WEB_CHAT/SEND_MESSAGE";function Et(t,e,{attachments:i,channelData:o}={}){return{type:jt,payload:{attachments:i,channelData:o,method:e,text:t}}}var $t="WEB_CHAT/SEND_MESSAGE_BACK";function Pi(t,e,i){return{type:$t,payload:{displayText:i,text:e,value:t}}}var Ht="WEB_CHAT/SEND_POST_BACK";function Oi(t){return{type:Ht,payload:{value:t}}}var Jt="WEB_CHAT/SET_DICTATE_INTERIMS";function Li(t){return{type:Jt,payload:{dictateInterims:t}}}var J="WEB_CHAT/SET_DICTATE_STATE";function It(t){return{type:J,payload:{dictateState:t}}}var qt="WEB_CHAT/SET_LANGUAGE";function ki(t){return{type:qt,payload:{language:t}}}import vo from"math-random";function b(){return vo().toString(36).substring(2)}var Kt="WEB_CHAT/SET_NOTIFICATION";function L({alt:t,data:e,id:i,level:o,message:n}){return(!i||typeof i!="string")&&(console.warn('botframework-webchat: The "id" argument passed to "setNotification" must be a string; defaulting to a random value.'),i=b()),(!o||typeof o!="string")&&(console.warn('botframework-webchat: The "level" argument passed to "setNotification" must be a string; defaulting to "info".'),o="info"),{type:Kt,payload:{alt:t,data:e,id:i,level:o,message:n}}}var C="WEB_CHAT/SET_SEND_BOX";function gt(t){return{type:C,payload:{text:t}}}var zt="WEB_CHAT/SET_SEND_BOX_ATTACHMENTS";function Ct(t){return{type:zt,payload:{attachments:t}}}var Xt="WEB_CHAT/SET_SEND_TIMEOUT";function Ri(t){return{type:Xt,payload:{sendTimeout:t}}}var q="WEB_CHAT/SET_SEND_TYPING_INDICATOR";function Gi(t){return{payload:{sendTypingIndicator:!!t},type:q}}var Qt="WEB_CHAT/START_DICTATE";function Dt(){return{type:Qt}}var Zt="WEB_CHAT/START_SPEAKING";function Nt(){return{type:Zt}}var te="WEB_CHAT/STOP_DICTATE";function k(){return{type:te}}var K="WEB_CHAT/STOP_SPEAKING";function ht(){return{type:K}}var ee="WEB_CHAT/SUBMIT_SEND_BOX";function wi(t="keyboard",{channelData:e}={}){return{type:ee,payload:{channelData:e,method:t}}}var ie={};Di(ie,{SENDING:()=>bo,SEND_FAILED:()=>_o,SENT:()=>xo});var _o="send failed",bo="sending",xo="sent";var ne={};Di(ne,{DICTATING:()=>oe,IDLE:()=>z,STARTING:()=>vt,STOPPING:()=>_t,WILL_START:()=>D});var z=0,D=1,vt=2,oe=3,_t=4;import{applyMiddleware as Jr,createStore as qr}from"redux";import{composeWithDevTools as Kr}from"redux-devtools-extension";import zr from"redux-saga";import{combineReducers as Jo}from"redux";var R="DIRECT_LINE/RECONNECT",bt=`${R}_FULFILLED`,Fi=`${R}_FULFILLING`,G=`${R}_PENDING`,Bi=`${R}_REJECTED`;var X="WEB_CHAT/SAGA_ERROR";function re(){return{type:X}}var Po="uninitialized";function ce(t=Po,{type:e,meta:i}){if(t!=="sagaerror")switch(e){case lt:case G:t!=="uninitialized"&&(t="reconnecting");break;case mt:t="connected";break;case bt:t="reconnected";break;case ft:t="error";break;case dt:t="connectingslow";break;case ut:t=i&&i.error?"error":"notconnected";break;case X:t="sagaerror";break;default:break}return t}import f from"simple-update-in";var Wi="DIRECT_LINE/DELETE_ACTIVITY";var A="DIRECT_LINE/INCOMING_ACTIVITY";function Oo(t){return{type:A,payload:{activity:t}}}var Mi=Oo;var xt="sending",Q="send failed",Z="sent";var Lo=[],ko="https://docs.botframework.com/static/devportal/client/images/bot-framework-default-placeholder.png";function se(t){return t.channelData?.clientActivityID}function ae(t){return e=>se(e)===t}function Vi(t,e,{Date:i}){return t=f(t,["attachments",()=>!0,"contentUrl"],o=>{if(o!==ko&&!/^blob:/iu.test(o))return o}),t=f(t,["channelData","webchat:sequence-id"],o=>typeof o=="number"?o:typeof t.timestamp<"u"?+new i(t.timestamp):(e?.channelData?.["webchat:sequence-id"]||0)+.001),t=f(t,["channelData","webchat:sequence-id"],o=>typeof o=="number"?o:+new i(t.timestamp||0)||0),t}function Ui(t,e,i){e=Vi(e,t[t.length-1],i);let{channelData:{clientActivityID:o,"webchat:sequence-id":n}={}}=e,r=t.filter(({channelData:{clientActivityID:p}={},id:c})=>!(o&&p===o)&&!(c&&c===e.id)),s=r.findIndex(({channelData:{"webchat:sequence-id":p}={}})=>(p||0)>(n||0));return r.splice(~s?s:r.length,0,e),r}function pe(t){return function(i=Lo,o){switch(o.type){case Wi:i=f(i,[({id:n})=>n===o.payload.activityID]);break;case j:{let{payload:n}=o;i=f(i,[({id:r})=>r===n.activityID,"channelData",n.name],()=>n.value)}break;case d:{let{payload:{activity:n}}=o;n=f(n,["channelData","state"],()=>xt),n=f(n,["channelData","webchat:send-status"],()=>xt),i=Ui(i,n,t)}break;case St:i=f(i,[ae(o.meta.clientActivityID),"channelData","state"],()=>Q);break;case H:i=f(i,[ae(o.meta.clientActivityID)],n=>(n=f(n,["channelData","state"],()=>Q),f(n,["channelData","webchat:send-status"],()=>Q)));break;case At:i=f(i,[ae(o.meta.clientActivityID)],()=>{let n=f(Vi(o.payload.activity,i[i.length-1],t),["channelData","state"],()=>Z);return f(n,["channelData","webchat:send-status"],()=>Z)});break;case A:{let{payload:{activity:n}}=o;if(n.from.role==="user"){let{id:r}=n,s=se(n),p=i.find(c=>s&&se(c)===s||r&&c.id===r);if(p){let{channelData:{"webchat:send-status":c}}=p;(c===xt||c===Q||c===Z)&&(n=f(n,["channelData","webchat:send-status"],()=>c))}else n=f(n,["channelData","webchat:send-status"],()=>Z)}i=Ui(i,n,t)}break;default:break}return i}}function me(t){return()=>({ponyfill:t})}import le from"simple-update-in";var Yi;function Ro(){return Yi||(Yi=Object.freeze(Array.from(new Set([...Object.getOwnPropertyNames(Object.prototype),"prototype"]))))}function w(t){return Ro().includes(t)}var Go={};function fe({Date:t}){return function(i=Go,o){let{type:n}=o,r=t.now();if(n===Mt)i=le(i,[o.payload.id]);else if(n===X)i=le(i,["connectivitystatus","message"],()=>"javascripterror");else if(n===Kt){let{alt:s,data:p,id:c,level:u,message:E}=o.payload;if(!w(c)){let v=i[c];(!v||s!==v.alt||!Object.is(p,v.data)||u!==v.level||E!==v.message)&&(i=le(i,[c],()=>({alt:s,data:p,id:c,level:u,message:E,timestamp:r})))}}return i}}import tt from"simple-update-in";var wo={};function de({Date:t}){return function(i=wo,{payload:o,type:n}){if(n===A||n===d){let{activity:{from:{id:r,name:s,role:p},type:c}}=o;if(c==="typing"){let u=t.now();i=tt(i,[r,"at"],E=>E||u),i=tt(i,[r,"last"],()=>u),i=tt(i,[r,"name"],()=>s),i=tt(i,[r,"role"],()=>p)}else c==="message"&&(i=tt(i,[r]))}return i}}var Fo=[];function ye(t=Fo,{payload:e,type:i}){switch(i){case Jt:t=e.dictateInterims;break;default:break}return t}var Bo=0;function ue(t=Bo,{payload:e,type:i}){switch(i){case J:t=e.dictateState;break;case Qt:(t===0||t===4||t===1)&&(t=2);break;case te:t===2||t===3?t=4:t===1&&(t=0);break;default:break}return t}var Wo="en-US";function Te(t=Wo,{payload:e,type:i}){switch(i){case qt:t=e.language;break;default:break}return t}var Ae="DIRECT_LINE/CONNECTION_STATUS_UPDATE";function Se(t){return{type:Ae,payload:{connectionStatus:t}}}var Mo=0;function Ee(t=Mo,{payload:e,type:i}){switch(i){case Ae:t=e.connectionStatus;break;default:break}return t}var Ie="WEB_CHAT/SET_REFERENCE_GRAMMAR_ID";function ge(t){return{type:Ie,payload:{referenceGrammarID:t}}}var Uo=null;function Ce(t=Uo,{payload:e,type:i}){switch(i){case Ie:t=e.referenceGrammarID||null;break;default:break}return t}var Vo=Object.freeze([]);function De(t=Vo,{payload:e,type:i}){switch(i){case zt:t=e.attachments;break;default:break}return t}var Yo="";function Ne(t=Yo,{payload:e,type:i}){switch(i){case C:t=e.text;break;default:break}return t}var jo=2e4;function he(t=jo,{payload:e,type:i}){switch(i){case Xt:t=e.sendTimeout;break;default:break}return t}var $o=!1;function ve(t=$o,{payload:e,type:i}){switch(i){case q:t=e.sendTypingIndicator;break;default:break}return t}function _e(t=!1,{type:e}){switch(e){case Zt:t=!0;break;case K:t=!1;break;default:break}return t}var Ho=[],be="WEB_CHAT/SET_SUGGESTED_ACTIONS";function et(t=Ho){return{type:be,payload:{suggestedActions:t}}}var xe=[];function Pe(t=xe,{payload:e={},type:i}){switch(i){case be:(e.suggestedActions||[]).length?t=[].slice.call(e.suggestedActions):t=xe;break;case Wt:t=xe;break;default:break}return t}function Oe(t){return Jo({activities:pe(t),connectivityStatus:ce,dictateInterims:ye,dictateState:ue,internal:me(t),language:Te,notifications:fe(t),readyState:Ee,referenceGrammarID:Ce,sendBoxAttachments:De,sendBoxValue:Ne,sendTimeout:he,sendTypingIndicator:ve,shouldSpeakIncomingActivity:_e,suggestedActions:Pe,typing:de(t)})}import{fork as l}from"redux-saga/effects";import{put as Xo,takeEvery as Qo}from"redux-saga/effects";import{call as qo,cancel as Ko,fork as zo,take as ji}from"redux-saga/effects";function a(t,...e){return qo(function*(){for(;;){let{meta:{userID:o,username:n},payload:{directLine:r}}=yield ji([hi,Fi]),s=yield zo(t,{directLine:r,userID:o,username:n},...e);yield ji([yt,G]),yield Ko(s)}})}function*Zo(){yield Xo(et())}function*tn(){yield Qo(({payload:t,type:e})=>e===d&&t.activity.type==="message",Zo)}function*Le(){yield a(tn)}import{call as on,put as ke,takeLatest as nn}from"redux-saga/effects";import en from"p-defer-es5";function x(){let t,e=[];return{push:n=>{if(t){let{resolve:r}=t;t=null,r(n)}else e.push(n)},shift:()=>e.length?Promise.resolve(e.shift()):(t||(t=en())).promise}}var Re="connectivitystatus";function rn(t){let{push:e,shift:i}=x(),o=t.subscribe({next:e});return{shift:i,unsubscribe(){o.unsubscribe()}}}function*cn({payload:{directLine:t}}){let{shift:e,unsubscribe:i}=rn(t.connectionStatus$);try{let o;for(;;)switch(yield on(e)){case 0:case 1:yield ke(L({id:Re,level:"info",message:o?"reconnecting":"connecting"}));break;case 2:o=1,yield ke(L({id:Re,level:"success",message:"connected"}));break;case 3:case 4:o=1,yield ke(L({id:Re,level:"error",message:"failedtoconnect"}));break;default:break}}finally{i()}}function*$i(){yield nn(T,cn)}import{put as Hi}from"redux-saga/effects";import{call as Ge}from"redux-saga/effects";function it(t,e){return Ge(function*(){let o=x(),n=t.subscribe({next:o.push});try{for(;;){let r=yield Ge(o.shift);yield Ge(e,r)}}finally{n.unsubscribe()}})}function*an({directLine:t}){yield it(t.connectionStatus$,function*(i){yield Hi(Se(i)),yield Hi(ge(t.referenceGrammarId))})}function*we(){yield a(an)}import{call as We,cancel as mn,cancelled as ln,fork as fn,put as dn,race as qi,take as B}from"redux-saga/effects";import{jwtDecode as yn}from"jwt-decode";import{fork as sn,put as pn}from"redux-saga/effects";function F(...t){return sn(function*(){for(let i of t)yield pn(i)})}var ot="DIRECT_LINE/UPDATE_CONNECTION_STATUS";function Fe(t){return{type:ot,payload:{connectionStatus:t}}}var Me=1,Ue=2,un=0;function Be(){return`r_${b().substring(0,10)}`}function*Tn(t){let e=x(),i=t.connectionStatus$.subscribe({next:e.push});try{for(;;){let o=yield We(e.shift);yield dn(Fe(o))}}finally{i.unsubscribe()}}function An(t,e){let{token:i}=t,o;try{o=(yn(i)||{}).user}catch{}let n={fromAction:e,fromToken:o};return o?(e&&e!==o&&console.warn("Web Chat: user ID is both specified in the Direct Line token and passed in, will use the user ID from the token."),n.final=o):e?typeof e!="string"?(console.warn("Web Chat: user ID must be a string."),n.final=Be()):/^dl_/u.test(e)?(console.warn('Web Chat: user ID prefixed with "dl_" is reserved and must be embedded into the Direct Line token to prevent forgery.'),n.final=Be()):n.final=e:n.final=Be(),n}function*Sn(t){let e=t.activity$.subscribe({next:()=>0}),i=e.unsubscribe.bind(e);try{for(;;){let{payload:{connectionStatus:o}}=yield B(ot);if(o===Ue)return()=>{i(),t.end()};if(o!==un&&o!==Me)throw new Error(`Failed to connect, DirectLineJS returned ${o}.`)}}catch(o){throw i(),o}finally{(yield ln())&&i()}}function*En(){for(;;){let{payload:{connectionStatus:t}}=yield B(ot);if(t===Ue)break;if(t!==Me)throw new Error(`Failed to reconnect. DirectLineJS returned ${t}.`)}}function*In({type:t,meta:e,payload:i},o){try{yield F({type:`${t}_PENDING`,meta:e,payload:i});let n=yield o();return yield F({type:`${t}_FULFILLING`,meta:e,payload:i},{type:`${t}_FULFILLED`,meta:e,payload:i}),n}catch(n){throw yield F({type:`${t}_REJECTED`,error:!0,meta:e,payload:n}),n}}function*gn(){throw yield B(_),new Error("disconnected")}function Ji(t,e){return In(t,function*(){let{result:o}=yield qi({_:gn(),result:e()});return o})}function*Ki(){for(;;){let{payload:{directLine:t,userID:e,username:i}}=yield B(T),o=yield fn(Tn,t),n=An(t,e),r={userID:n.final,username:i};t.setUserId&&n.fromToken!==r.userID&&t.setUserId(r.userID);let s;try{let p=yield Ji({type:T,meta:r,payload:{directLine:t}},()=>We(Sn,t));try{for(;;){let{updateConnectionStatusAction:{payload:{connectionStatus:c}={}}={}}=yield qi({_:B(_),updateConnectionStatusAction:B(ot)});if(c===Me)yield Ji({type:R,meta:r,payload:{directLine:t}},()=>We(En));else if(c!==Ue){if(typeof c<"u")throw new Error(`Connection status changed to ${c}`);break}}}finally{p()}}catch(p){s={error:p}}finally{yield mn(o),yield F({type:yt,meta:s,payload:{directLine:t}},{type:ut,meta:s,payload:{directLine:t}})}}}import{call as Cn,put as Dn,race as Nn,take as Ve}from"redux-saga/effects";function S(t,e){return new Promise(i=>e.setTimeout(i,Math.max(t,0)))}var hn=15e3;function*Ye(t){for(;;)yield Ve([lt,G]),"slow"in(yield Nn({fulfilled:Ve([mt,bt]),rejected:Ve([ft,Bi]),slow:Cn(S,hn,t)}))&&(yield Dn({type:dt}))}import{put as vn,takeEvery as _n}from"redux-saga/effects";function*bn(){yield vn(y({type:"typing"}))}function*xn(){yield _n(({type:t})=>t===Ut,bn)}function*je(){yield a(xn)}import{put as Pn,select as On,takeEvery as Ln}from"redux-saga/effects";var zi=({activities:t})=>t,nt=t=>e=>zi(e).filter(t);var Xi=t=>nt(({type:e})=>e===t),$e=zi;function rt(t){return t.channelData?.speak}function*kn(){let t=yield On(nt(rt));for(let e of t)yield Pn($(e,"speak",!1))}function*He(){yield Ln(K,kn)}import{put as Rn}from"redux-saga/effects";import W from"simple-update-in";var Je="DIRECT_LINE/QUEUE_INCOMING_ACTIVITY";function qe(t){return{type:Je,payload:{activity:t}}}var Gn=t=>t;function wn(t,e){return t.from?t.from.role||(t.from.id===e?t=W(t,["from","role"],()=>"user"):t.from.id?t=W(t,["from","role"],()=>"bot"):t=W(t,["from","role"],()=>"channel")):t=W(t,["from","role"],()=>"channel"),t}function Fn(t){return["attachmentLayout","attachments","channelData","conversation","entities","from","inputHint","locale","name","recipient","speak","suggestedActions","text","textFormat","timestamp","type"].reduce((e,i)=>{let{[i]:o}=e;return W(e,[i],typeof o>"u"||o===null?void 0:Gn)},t)}function Bn(t){return W(t,["from","name"],e=>{let{channelId:i,from:o={}}=t;return(i==="directline"||i==="webchat")&&o.id===o.name&&o.role==="bot"?"Bot":e})}function*Wn({directLine:t,userID:e}){yield it(t.activity$,function*(o){o=Fn(o),o=wn(o,e),o=Bn(o),yield Rn(qe(o))})}function*Ke(){yield a(Wn)}import{all as Mn,call as Ot,cancelled as Un,put as ct,race as Vn,select as eo,take as Yn,takeEvery as jn}from"redux-saga/effects";function N(t,e=2){if(typeof t!="number")throw new Error("First argument must be a number");let i=t+"";for(;i.length<e;)i="0"+i;return i}function ze(t){if(!(t.getTimezoneOffset&&t.getFullYear&&t.getMonth&&t.getDate&&t.getHours&&t.getMinutes&&t.getSeconds&&t.getMilliseconds))throw new Error("First argument must be a Date-like object.");let i=-t.getTimezoneOffset(),o=i<0?"-":"+",n=~~Math.abs(i);return`${t.getFullYear()}-${N(t.getMonth()+1)}-${N(t.getDate())}T${N(t.getHours())}:${N(t.getMinutes())}:${N(t.getSeconds())}.${N(t.getMilliseconds(),3)}${i?`${o}${N(~~(n/60))}:${N(n%60)}`:"Z"}`}function Pt(t,...e){if(!t)return t;let i={...t};for(let o of e)(typeof o!="string"||!w(o))&&delete i[o];return i}var Qi=({language:t})=>t;import{call as Zi}from"redux-saga/effects";function Xe(t){return Zi(function*(){let i;try{return yield Zi(()=>new Promise((o,n)=>{i=t.subscribe({complete:o,error:n,next:o})}))}finally{i&&i.unsubscribe()}})}var to=({sendTimeout:t})=>t;var $n=3e5;function*Hn(t,e,i,o,{meta:{method:n},payload:{activity:r}},s){let p=r.type==="message"&&r.attachments||[],c=b(),u=yield eo(Qi),E=typeof window.Intl>"u"?void 0:new Intl.DateTimeFormat().resolvedOptions().timeZone,v=new s.Date,U={...Pt(r,"id"),channelData:{...Pt(r.channelData,"state","webchat:send-status"),clientActivityID:c},channelId:"webchat",from:{id:e,name:i,role:"user"},locale:u,localTimestamp:ze(v),localTimezone:E,...r.type==="message"?{attachments:p&&p.map(({contentType:O,contentUrl:pt,name:Bt,thumbnailUrl:Y})=>({contentType:O,contentUrl:pt,name:Bt,thumbnailUrl:Y})),text:r.text}:r.type==="event"?{name:r.name,value:r.value}:{}};o||(U.entities=[...U.entities||[],{requiresBotState:!0,supportsListening:!0,supportsTts:!0,type:"ClientCapabilities"}]);let V={clientActivityID:c,method:n};yield ct({type:d,meta:V,payload:{activity:U}});let Ci;try{let O=Ot(function*(){for(;;){let{payload:{activity:Y}}=yield Yn(A);if(Y.channelData?.clientActivityID===c&&Y.id)return Ci=!0,Y}}),pt=yield eo(to),{send:{echoBack:Bt}}=yield Vn({send:Mn({echoBack:O,postActivity:Xe(t.postActivity(U))}),timeout:Ot(function*(){throw yield Ot(S,pt,s),yield ct({type:St,meta:V,payload:{activity:U}}),yield Ot(S,$n-pt,s),Ci?new Error("timed out while waiting for postActivity to return any values"):new Error("timed out while waiting for outgoing message to echo back")})});yield ct({type:At,meta:V,payload:{activity:Bt}})}catch(O){console.error("botframework-webchat: Failed to post activity to chat adapter.",O),yield ct({type:H,error:!0,meta:V,payload:O})}finally{(yield Un())&&(yield ct({type:H,error:!0,meta:V,payload:new Error("cancelled")}))}}function*Qe(t){yield a(function*({directLine:i,userID:o,username:n}){let r=0;yield jn(I,function*(p){yield*Hn(i,o,n,r++,p,t)})})}import{call as Jn,cancelled as qn,fork as Kn,put as oo,race as zn,select as Ze,take as no}from"redux-saga/effects";var io=t=>t&&t.from.role==="bot";var Xn=5e3;function*Qn(t,e,i){for(;!(yield qn());){let o=yield no(t),n=yield Ze(e);yield Kn(i,o,n)}}function*Zn(t,e){let i=e;for(;!i.find(r=>r.id===t||r.replyToId===t);){let{payload:{activity:n}}=yield no(A);if(n.id===t)break;i=yield Ze($e)}}function*tr({userID:t},e){yield Qn(Je,$e,function*({payload:{activity:o}},n){let{replyToId:r}=o,s=n.filter(({from:{role:u}})=>u==="bot");r&&s.length&&"timeout"in(yield zn({_:Zn(r,n),timeout:Jn(S,Xn,e)}))&&console.warn(`botframework-webchat: Timed out while waiting for activity "${r}" which activity "${o.id}" is replying to.`,{activity:o,replyToId:r}),yield oo(Mi(o));let p=yield Ze(Xi("message")),c=p[p.length-1];if(io(c)){let{suggestedActions:{actions:u,to:E}={actions:void 0,to:void 0}}=c;yield oo(et(E?.length&&!E.includes(t)?null:u))}})}function*ti(t){yield a(tr,t)}import{put as er,takeEvery as ir}from"redux-saga/effects";function*or({payload:{name:t,value:e}}){yield er(y({name:t,type:"event",value:e}))}function*nr(){yield ir(({payload:t,type:e})=>e===Vt&&t.name,or)}function*ei(){yield a(nr)}import{put as rr,takeEvery as cr}from"redux-saga/effects";import ro from"mime";var ar=ro.getType.bind(ro);function*sr({payload:{files:t}}){yield rr(y({attachments:[].map.call(t,({name:e,thumbnail:i,url:o})=>({contentType:ar(e)||"application/octet-stream",contentUrl:o,name:e,thumbnailUrl:i})),channelData:{attachmentSizes:[].map.call(t,({size:e})=>e)},type:"message"}))}function*pr(){yield cr(({payload:t,type:e})=>e===Yt&&t.files.length,sr)}function*ii(){yield a(pr)}import{put as mr,takeEvery as lr}from"redux-saga/effects";function*fr({payload:{displayText:t,text:e,value:i}}){yield mr(y({channelData:{messageBack:{displayText:t}},text:e,type:"message",value:i}))}function*dr(){yield lr($t,fr)}function*oi(){yield a(dr)}import{put as yr,takeEvery as ur}from"redux-saga/effects";function*Tr({payload:{attachments:t=[],channelData:e,method:i,text:o}}){yield yr(y({attachments:t.map(({blob:n,thumbnailURL:r})=>({contentType:n instanceof File&&n.type||"application/octet-stream",contentUrl:URL.createObjectURL(n),name:n instanceof File?n.name:void 0,thumbnailUrl:r?.toString()})),channelData:{...e,attachmentSizes:t.map(({blob:{size:n}})=>n)},text:o||void 0,textFormat:"plain",type:"message"},i))}function*Ar(){yield ur(({payload:t,type:e})=>e===jt&&(t.text||t.attachments?.length),Tr)}function*ni(){yield a(Ar)}import{put as Sr,takeEvery as Er}from"redux-saga/effects";function*Ir({payload:{value:t}}){yield Sr(y({channelData:{postBack:!0},text:typeof t=="string"?t:void 0,type:"message",value:typeof t!="string"?t:void 0}))}function*gr(){yield Er(Ht,Ir)}function*ri(){yield a(gr)}import{call as Cr,cancel as Dr,put as Nr,select as hr,take as vr,takeLatest as _r}from"redux-saga/effects";var co=({sendTypingIndicator:t})=>t;var br=3e3;function ci(t){return vr(({payload:e,type:i})=>i===q&&!e.sendTypingIndicator==!t)}function*xr(t,e){let{Date:i}=e;for((yield hr(co))||(yield ci(!0));;){let n=-1/0,r=yield _r(({payload:s,type:p})=>p===C&&s.text||p===I&&s.activity.type!=="typing",function*({payload:s,type:p}){if(p===C){let c=br-i.now()+n;c>0&&(yield Cr(S,c,e)),yield Nr(Tt()),n=i.now()}else s.activity.type==="message"&&(n=-1/0)});yield ci(!1),yield Dr(r),yield ci(!0)}}function*ai(t){yield a(xr,t)}import{put as pi,select as Pr,takeEvery as Or}from"redux-saga/effects";var ao=({shouldSpeakIncomingActivity:t})=>t;function si(t){return t&&t.from&&t.type==="message"}function*Lr({userID:t}){yield Or(({payload:e,type:i})=>i===A&&e.activity.from.id!==t&&e.activity.from.role!=="user",function*({payload:{activity:e}}){let i=yield Pr(ao),o=si(e)&&i;o&&(e.speak||e.text||~(e.attachments||[]).findIndex(({content:{speak:n}={}})=>n))&&(yield pi($(e,"speak",!0))),o&&e.inputHint==="expectingInput"?yield pi(It(1)):e.inputHint==="ignoringInput"&&(yield pi(k()))})}function*mi(){yield a(Lr)}import{put as kr,select as po,takeEvery as Rr}from"redux-saga/effects";var so=({dictateState:t})=>t;function*Gr(){let t=yield po(nt(rt));(yield po(so))===1&&!t.length&&(yield kr(Dt()))}function*li(){yield Rr(({type:t})=>t===j||t===J,Gr)}import{put as wr,takeEvery as Fr}from"redux-saga/effects";function*Br(){yield Fr(({meta:t,payload:e,type:i})=>i===d&&t.method==="speech"&&e.activity.type==="message",function*(){yield wr(Nt())})}function*fi(){yield a(Br)}import{put as Wr,takeEvery as Mr}from"redux-saga/effects";function*Ur(){yield Mr(({payload:t,type:e})=>e===d&&t.activity.type==="message",function*(){yield Wr(k())})}function*di(){yield a(Ur)}import{put as Vr,takeEvery as Yr}from"redux-saga/effects";function*jr(){yield Yr(({meta:t,payload:e,type:i})=>i===C&&e.text||i===d&&t.method!=="speech"&&e.activity.type==="message",function*(){yield Vr(ht())})}function*yi(){yield a(jr)}import{put as Ti,select as lo,takeEvery as $r}from"redux-saga/effects";function ui({sendBoxAttachments:t}){return t}var mo=({sendBoxValue:t})=>t;function*Hr(){yield $r(ee,function*({payload:{channelData:t,method:e}}){let i=yield lo(ui),o=yield lo(mo);(i.length||o)&&(yield Ti(Et(o.trim(),e,{attachments:i,channelData:t})),yield Ti(gt("")),yield Ti(Ct(Object.freeze([]))))})}function*Ai(){yield a(Hr)}function Si({ponyfill:t}){return function*(){yield l(Le),yield l($i),yield l(we),yield l(Ki),yield l(Ye,t),yield l(je),yield l(He),yield l(Ke),yield l(Qe,t),yield l(ti,t),yield l(ei),yield l(ii),yield l(oi),yield l(ni),yield l(ri),yield l(ai,t),yield l(mi),yield l(li),yield l(fi),yield l(di),yield l(yi),yield l(Ai)}}function Xr(t,...e){let i=zr({onError:(...o)=>{let[n]=o;console.error(n);let r=t();r&&r.dispatch(re())}});return{enhancer:Jr(...e,i),sagaMiddleware:i}}function Ei(t,e,...i){let o=typeof globalThis>"u"?window:globalThis,n=t.ponyfill||{},r={cancelAnimationFrame:n.cancelAnimationFrame||(typeof cancelAnimationFrame=="function"?cancelAnimationFrame.bind(o):void 0),cancelIdleCallback:n.cancelIdleCallback||(typeof cancelIdleCallback=="function"?cancelIdleCallback.bind(o):void 0),clearImmediate:n.clearImmediate||(typeof clearImmediate=="function"?clearImmediate.bind(o):void 0),clearInterval:n.clearInterval||(typeof clearInterval=="function"?clearInterval.bind(o):void 0),clearTimeout:n.clearTimeout||(typeof clearTimeout=="function"?clearTimeout.bind(o):void 0),Date:n.Date||Date,requestAnimationFrame:n.requestAnimationFrame||(typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(o):void 0),requestIdleCallback:n.requestIdleCallback||(typeof requestIdleCallback=="function"?requestIdleCallback.bind(o):void 0),setImmediate:n.setImmediate||(typeof setImmediate=="function"?setImmediate.bind(o):void 0),setInterval:n.setInterval||(typeof setInterval=="function"?setInterval.bind(o):void 0),setTimeout:n.setTimeout||(typeof setTimeout=="function"?setTimeout.bind(o):void 0)},{enhancer:s,sagaMiddleware:p}=Xr(()=>c,...i),c=qr(Oe(r),e||{},t.devTools?Kr(s):s);return p.run(Si({ponyfill:r})),c}function fo(t,...e){return Ei({},t,...e)}function Qr(t,...e){return Ei({devTools:!0},t,...e)}import{lazy as Ec,parse as Ic,string as Lt,union as gc,value as kt}from"valibot";import{array as Zr,fallback as tc,optional as ec,transform as ic,union as oc}from"valibot";var nc=t=>tc(ec(oc([ic(Zr(t),e=>e[0]),t])),void 0),m=nc;import{parse as Tc,string as Ac}from"valibot";import{lazy as mc,object as lc,optional as yo,parse as fc,string as h,unknown as dc,value as yc}from"valibot";import{array as rc,fallback as cc,parse as ac,transform as sc}from"valibot";var pc=t=>cc(sc(rc(t),e=>e.filter(i=>typeof i<"u")),e=>e?.input?[ac(t,e?.input)]:void 0);function P(t){return pc(m(t))}var uc={"@context":yo(h([yc("https://schema.org")])),"@id":yo(h()),"@type":h(),additionalType:m(h()),alternateName:m(h()),description:m(h()),name:m(h()),potentialAction:P(mc(()=>at())),url:m(h())},g=t=>lc({...uc,...t},dc()),Ii=t=>fc(g(),t);var st=t=>g({slogan:m(Ac()),...t}),Sc=t=>Tc(st(),t);var at=t=>g({actionStatus:m(gc([Lt([kt("ActiveActionStatus")]),Lt([kt("CompletedActionStatus")]),Lt([kt("FailedActionStatus")]),Lt([kt("PotentialActionStatus")])])),provider:m(Ec(()=>st())),...t}),Cc=t=>Ic(at(),t);import{lazy as To,number as _c,parse as bc,string as xc,union as Pc}from"valibot";import{lazy as Gt,parse as hc,string as wt,union as vc}from"valibot";import{parse as Dc,string as uo}from"valibot";var Rt=t=>g({inDefinedTermSet:m(uo()),termCode:m(uo()),...t}),Nc=t=>Dc(Rt(),t);var M=t=>g({abstract:m(wt()),author:P(wt()),citation:P(Gt(()=>M())),keywords:P(vc([Gt(()=>Rt()),wt()])),pattern:m(Gt(()=>Rt())),text:m(wt()),usageInfo:m(Gt(()=>M())),...t}),Ft=t=>hc(M(),t);var Oc=t=>M({appearance:m(To(()=>M())),claimInterpreter:m(To(()=>st())),position:m(Pc([_c(),xc()])),...t}),Lc=t=>bc(Oc(),t);import{parse as kc,string as Rc}from"valibot";var Gc=t=>at({actionOption:m(Rc()),...t}),wc=t=>kc(Gc(),t);function Ao(t){let e=(t||[]).find(o=>{if(o.type?.startsWith("https://schema.org/"))return Ii(o)["@id"]===""}),i=e&&Ft(e);return i&&Ft(i)}function So(t,e){try{return t()}catch{return e}}function Eo(t){return t?Array.isArray(t)?t:[t]:[]}function gi(t){let e;return()=>{e||(t(),e=1)}}function Io(t){return gi(()=>console.warn(`botframework-webchat: ${t}.`))}var ly={ActivityClientState:ie,DictateState:ne},Fc="tsup",Bc="esmodules",Wc="4.17.0-main.20240503.d335d91",fy={buildTool:Fc,moduleFormat:Bc,version:Wc};export{ly as Constants,fy as buildInfo,Ni as clearSuggestedActions,vi as connect,fo as createStore,Qr as createStoreWithDevTools,Ei as createStoreWithOptions,_i as disconnect,Do as dismissNotification,Tt as emitTypingIndicator,Ao as getOrgSchemaMessage,w as isForbiddenPropertyName,$ as markActivity,Bc as moduleFormat,So as onErrorResumeNext,Cc as parseAction,Lc as parseClaim,Ft as parseCreativeWork,Nc as parseDefinedTerm,Sc as parseProject,Ii as parseThing,wc as parseVoteAction,y as postActivity,bi as sendEvent,xi as sendFiles,Et as sendMessage,Pi as sendMessageBack,Oi as sendPostBack,Li as setDictateInterims,It as setDictateState,ki as setLanguage,L as setNotification,gt as setSendBox,Ct as setSendBoxAttachments,Ri as setSendTimeout,Gi as setSendTypingIndicator,Eo as singleToArray,Dt as startDictate,Nt as startSpeakingActivity,k as stopDictate,ht as stopSpeakingActivity,wi as submitSendBox,Wc as version,Io as warnOnce};
|
|
1
|
+
var go=Object.defineProperty;var Di=(t,e)=>{for(var i in e)go(t,i,{get:e[i],enumerable:!0})};var Wt="WEB_CHAT/CLEAR_SUGGESTED_ACTIONS";function Ni(){return{type:Wt}}var T="DIRECT_LINE/CONNECT",mt=`${T}_FULFILLED`,hi=`${T}_FULFILLING`,lt=`${T}_PENDING`,ft=`${T}_REJECTED`,dt=`${T}_STILL_PENDING`;function vi({directLine:t,userID:e,username:i}){return{type:T,payload:{directLine:t,userID:e,username:i}}}var _="DIRECT_LINE/DISCONNECT",yt=`${_}_PENDING`,Yc=`${_}_REJECTED`,ut=`${_}_FULFILLED`;function _i(){return{type:_}}var Mt="WEB_CHAT/DISMISS_NOTIFICATION";function Co(t){return{payload:{id:t},type:Mt}}var Do=Co;var Ut="WEB_CHAT/EMIT_TYPING_INDICATOR";function Tt(){return{type:Ut}}var j="WEB_CHAT/MARK_ACTIVITY";function No({id:t},e,i){return{type:j,payload:{activityID:t,name:e,value:i}}}var $=No;var I="DIRECT_LINE/POST_ACTIVITY",At=`${I}_FULFILLED`,St=`${I}_IMPEDED`,d=`${I}_PENDING`,H=`${I}_REJECTED`;function ho(t,e="keyboard"){return{type:I,meta:{method:e},payload:{activity:t}}}var y=ho;var Vt="WEB_CHAT/SEND_EVENT";function bi(t,e){return{type:Vt,payload:{name:t,value:e}}}var Yt="WEB_CHAT/SEND_FILES";function xi(t){return{type:Yt,payload:{files:t}}}var jt="WEB_CHAT/SEND_MESSAGE";function Et(t,e,{attachments:i,channelData:o}={}){return{type:jt,payload:{attachments:i,channelData:o,method:e,text:t}}}var $t="WEB_CHAT/SEND_MESSAGE_BACK";function Pi(t,e,i){return{type:$t,payload:{displayText:i,text:e,value:t}}}var Ht="WEB_CHAT/SEND_POST_BACK";function Oi(t){return{type:Ht,payload:{value:t}}}var Jt="WEB_CHAT/SET_DICTATE_INTERIMS";function Li(t){return{type:Jt,payload:{dictateInterims:t}}}var J="WEB_CHAT/SET_DICTATE_STATE";function It(t){return{type:J,payload:{dictateState:t}}}var qt="WEB_CHAT/SET_LANGUAGE";function ki(t){return{type:qt,payload:{language:t}}}import vo from"math-random";function b(){return vo().toString(36).substring(2)}var Kt="WEB_CHAT/SET_NOTIFICATION";function L({alt:t,data:e,id:i,level:o,message:n}){return(!i||typeof i!="string")&&(console.warn('botframework-webchat: The "id" argument passed to "setNotification" must be a string; defaulting to a random value.'),i=b()),(!o||typeof o!="string")&&(console.warn('botframework-webchat: The "level" argument passed to "setNotification" must be a string; defaulting to "info".'),o="info"),{type:Kt,payload:{alt:t,data:e,id:i,level:o,message:n}}}var C="WEB_CHAT/SET_SEND_BOX";function gt(t){return{type:C,payload:{text:t}}}var zt="WEB_CHAT/SET_SEND_BOX_ATTACHMENTS";function Ct(t){return{type:zt,payload:{attachments:t}}}var Xt="WEB_CHAT/SET_SEND_TIMEOUT";function Ri(t){return{type:Xt,payload:{sendTimeout:t}}}var q="WEB_CHAT/SET_SEND_TYPING_INDICATOR";function Gi(t){return{payload:{sendTypingIndicator:!!t},type:q}}var Qt="WEB_CHAT/START_DICTATE";function Dt(){return{type:Qt}}var Zt="WEB_CHAT/START_SPEAKING";function Nt(){return{type:Zt}}var te="WEB_CHAT/STOP_DICTATE";function k(){return{type:te}}var K="WEB_CHAT/STOP_SPEAKING";function ht(){return{type:K}}var ee="WEB_CHAT/SUBMIT_SEND_BOX";function wi(t="keyboard",{channelData:e}={}){return{type:ee,payload:{channelData:e,method:t}}}var ie={};Di(ie,{SENDING:()=>bo,SEND_FAILED:()=>_o,SENT:()=>xo});var _o="send failed",bo="sending",xo="sent";var ne={};Di(ne,{DICTATING:()=>oe,IDLE:()=>z,STARTING:()=>vt,STOPPING:()=>_t,WILL_START:()=>D});var z=0,D=1,vt=2,oe=3,_t=4;import{applyMiddleware as Jr,createStore as qr}from"redux";import{composeWithDevTools as Kr}from"redux-devtools-extension";import zr from"redux-saga";import{combineReducers as Jo}from"redux";var R="DIRECT_LINE/RECONNECT",bt=`${R}_FULFILLED`,Fi=`${R}_FULFILLING`,G=`${R}_PENDING`,Bi=`${R}_REJECTED`;var X="WEB_CHAT/SAGA_ERROR";function re(){return{type:X}}var Po="uninitialized";function ce(t=Po,{type:e,meta:i}){if(t!=="sagaerror")switch(e){case lt:case G:t!=="uninitialized"&&(t="reconnecting");break;case mt:t="connected";break;case bt:t="reconnected";break;case ft:t="error";break;case dt:t="connectingslow";break;case ut:t=i&&i.error?"error":"notconnected";break;case X:t="sagaerror";break;default:break}return t}import f from"simple-update-in";var Wi="DIRECT_LINE/DELETE_ACTIVITY";var A="DIRECT_LINE/INCOMING_ACTIVITY";function Oo(t){return{type:A,payload:{activity:t}}}var Mi=Oo;var xt="sending",Q="send failed",Z="sent";var Lo=[],ko="https://docs.botframework.com/static/devportal/client/images/bot-framework-default-placeholder.png";function se(t){return t.channelData?.clientActivityID}function ae(t){return e=>se(e)===t}function Vi(t,e,{Date:i}){return t=f(t,["attachments",()=>!0,"contentUrl"],o=>{if(o!==ko&&!/^blob:/iu.test(o))return o}),t=f(t,["channelData","webchat:sequence-id"],o=>typeof o=="number"?o:typeof t.timestamp<"u"?+new i(t.timestamp):(e?.channelData?.["webchat:sequence-id"]||0)+.001),t=f(t,["channelData","webchat:sequence-id"],o=>typeof o=="number"?o:+new i(t.timestamp||0)||0),t}function Ui(t,e,i){e=Vi(e,t[t.length-1],i);let{channelData:{clientActivityID:o,"webchat:sequence-id":n}={}}=e,r=t.filter(({channelData:{clientActivityID:p}={},id:c})=>!(o&&p===o)&&!(c&&c===e.id)),s=r.findIndex(({channelData:{"webchat:sequence-id":p}={}})=>(p||0)>(n||0));return r.splice(~s?s:r.length,0,e),r}function pe(t){return function(i=Lo,o){switch(o.type){case Wi:i=f(i,[({id:n})=>n===o.payload.activityID]);break;case j:{let{payload:n}=o;i=f(i,[({id:r})=>r===n.activityID,"channelData",n.name],()=>n.value)}break;case d:{let{payload:{activity:n}}=o;n=f(n,["channelData","state"],()=>xt),n=f(n,["channelData","webchat:send-status"],()=>xt),i=Ui(i,n,t)}break;case St:i=f(i,[ae(o.meta.clientActivityID),"channelData","state"],()=>Q);break;case H:i=f(i,[ae(o.meta.clientActivityID)],n=>(n=f(n,["channelData","state"],()=>Q),f(n,["channelData","webchat:send-status"],()=>Q)));break;case At:i=f(i,[ae(o.meta.clientActivityID)],()=>{let n=f(Vi(o.payload.activity,i[i.length-1],t),["channelData","state"],()=>Z);return f(n,["channelData","webchat:send-status"],()=>Z)});break;case A:{let{payload:{activity:n}}=o;if(n.from.role==="user"){let{id:r}=n,s=se(n),p=i.find(c=>s&&se(c)===s||r&&c.id===r);if(p){let{channelData:{"webchat:send-status":c}}=p;(c===xt||c===Q||c===Z)&&(n=f(n,["channelData","webchat:send-status"],()=>c))}else n=f(n,["channelData","webchat:send-status"],()=>Z)}i=Ui(i,n,t)}break;default:break}return i}}function me(t){return()=>({ponyfill:t})}import le from"simple-update-in";var Yi;function Ro(){return Yi||(Yi=Object.freeze(Array.from(new Set([...Object.getOwnPropertyNames(Object.prototype),"prototype"]))))}function w(t){return Ro().includes(t)}var Go={};function fe({Date:t}){return function(i=Go,o){let{type:n}=o,r=t.now();if(n===Mt)i=le(i,[o.payload.id]);else if(n===X)i=le(i,["connectivitystatus","message"],()=>"javascripterror");else if(n===Kt){let{alt:s,data:p,id:c,level:u,message:E}=o.payload;if(!w(c)){let v=i[c];(!v||s!==v.alt||!Object.is(p,v.data)||u!==v.level||E!==v.message)&&(i=le(i,[c],()=>({alt:s,data:p,id:c,level:u,message:E,timestamp:r})))}}return i}}import tt from"simple-update-in";var wo={};function de({Date:t}){return function(i=wo,{payload:o,type:n}){if(n===A||n===d){let{activity:{from:{id:r,name:s,role:p},type:c}}=o;if(c==="typing"){let u=t.now();i=tt(i,[r,"at"],E=>E||u),i=tt(i,[r,"last"],()=>u),i=tt(i,[r,"name"],()=>s),i=tt(i,[r,"role"],()=>p)}else c==="message"&&(i=tt(i,[r]))}return i}}var Fo=[];function ye(t=Fo,{payload:e,type:i}){switch(i){case Jt:t=e.dictateInterims;break;default:break}return t}var Bo=0;function ue(t=Bo,{payload:e,type:i}){switch(i){case J:t=e.dictateState;break;case Qt:(t===0||t===4||t===1)&&(t=2);break;case te:t===2||t===3?t=4:t===1&&(t=0);break;default:break}return t}var Wo="en-US";function Te(t=Wo,{payload:e,type:i}){switch(i){case qt:t=e.language;break;default:break}return t}var Ae="DIRECT_LINE/CONNECTION_STATUS_UPDATE";function Se(t){return{type:Ae,payload:{connectionStatus:t}}}var Mo=0;function Ee(t=Mo,{payload:e,type:i}){switch(i){case Ae:t=e.connectionStatus;break;default:break}return t}var Ie="WEB_CHAT/SET_REFERENCE_GRAMMAR_ID";function ge(t){return{type:Ie,payload:{referenceGrammarID:t}}}var Uo=null;function Ce(t=Uo,{payload:e,type:i}){switch(i){case Ie:t=e.referenceGrammarID||null;break;default:break}return t}var Vo=Object.freeze([]);function De(t=Vo,{payload:e,type:i}){switch(i){case zt:t=e.attachments;break;default:break}return t}var Yo="";function Ne(t=Yo,{payload:e,type:i}){switch(i){case C:t=e.text;break;default:break}return t}var jo=2e4;function he(t=jo,{payload:e,type:i}){switch(i){case Xt:t=e.sendTimeout;break;default:break}return t}var $o=!1;function ve(t=$o,{payload:e,type:i}){switch(i){case q:t=e.sendTypingIndicator;break;default:break}return t}function _e(t=!1,{type:e}){switch(e){case Zt:t=!0;break;case K:t=!1;break;default:break}return t}var Ho=[],be="WEB_CHAT/SET_SUGGESTED_ACTIONS";function et(t=Ho){return{type:be,payload:{suggestedActions:t}}}var xe=[];function Pe(t=xe,{payload:e={},type:i}){switch(i){case be:(e.suggestedActions||[]).length?t=[].slice.call(e.suggestedActions):t=xe;break;case Wt:t=xe;break;default:break}return t}function Oe(t){return Jo({activities:pe(t),connectivityStatus:ce,dictateInterims:ye,dictateState:ue,internal:me(t),language:Te,notifications:fe(t),readyState:Ee,referenceGrammarID:Ce,sendBoxAttachments:De,sendBoxValue:Ne,sendTimeout:he,sendTypingIndicator:ve,shouldSpeakIncomingActivity:_e,suggestedActions:Pe,typing:de(t)})}import{fork as l}from"redux-saga/effects";import{put as Xo,takeEvery as Qo}from"redux-saga/effects";import{call as qo,cancel as Ko,fork as zo,take as ji}from"redux-saga/effects";function a(t,...e){return qo(function*(){for(;;){let{meta:{userID:o,username:n},payload:{directLine:r}}=yield ji([hi,Fi]),s=yield zo(t,{directLine:r,userID:o,username:n},...e);yield ji([yt,G]),yield Ko(s)}})}function*Zo(){yield Xo(et())}function*tn(){yield Qo(({payload:t,type:e})=>e===d&&t.activity.type==="message",Zo)}function*Le(){yield a(tn)}import{call as on,put as ke,takeLatest as nn}from"redux-saga/effects";import en from"p-defer-es5";function x(){let t,e=[];return{push:n=>{if(t){let{resolve:r}=t;t=null,r(n)}else e.push(n)},shift:()=>e.length?Promise.resolve(e.shift()):(t||(t=en())).promise}}var Re="connectivitystatus";function rn(t){let{push:e,shift:i}=x(),o=t.subscribe({next:e});return{shift:i,unsubscribe(){o.unsubscribe()}}}function*cn({payload:{directLine:t}}){let{shift:e,unsubscribe:i}=rn(t.connectionStatus$);try{let o;for(;;)switch(yield on(e)){case 0:case 1:yield ke(L({id:Re,level:"info",message:o?"reconnecting":"connecting"}));break;case 2:o=1,yield ke(L({id:Re,level:"success",message:"connected"}));break;case 3:case 4:o=1,yield ke(L({id:Re,level:"error",message:"failedtoconnect"}));break;default:break}}finally{i()}}function*$i(){yield nn(T,cn)}import{put as Hi}from"redux-saga/effects";import{call as Ge}from"redux-saga/effects";function it(t,e){return Ge(function*(){let o=x(),n=t.subscribe({next:o.push});try{for(;;){let r=yield Ge(o.shift);yield Ge(e,r)}}finally{n.unsubscribe()}})}function*an({directLine:t}){yield it(t.connectionStatus$,function*(i){yield Hi(Se(i)),yield Hi(ge(t.referenceGrammarId))})}function*we(){yield a(an)}import{call as We,cancel as mn,cancelled as ln,fork as fn,put as dn,race as qi,take as B}from"redux-saga/effects";import{jwtDecode as yn}from"jwt-decode";import{fork as sn,put as pn}from"redux-saga/effects";function F(...t){return sn(function*(){for(let i of t)yield pn(i)})}var ot="DIRECT_LINE/UPDATE_CONNECTION_STATUS";function Fe(t){return{type:ot,payload:{connectionStatus:t}}}var Me=1,Ue=2,un=0;function Be(){return`r_${b().substring(0,10)}`}function*Tn(t){let e=x(),i=t.connectionStatus$.subscribe({next:e.push});try{for(;;){let o=yield We(e.shift);yield dn(Fe(o))}}finally{i.unsubscribe()}}function An(t,e){let{token:i}=t,o;try{o=(yn(i)||{}).user}catch{}let n={fromAction:e,fromToken:o};return o?(e&&e!==o&&console.warn("Web Chat: user ID is both specified in the Direct Line token and passed in, will use the user ID from the token."),n.final=o):e?typeof e!="string"?(console.warn("Web Chat: user ID must be a string."),n.final=Be()):/^dl_/u.test(e)?(console.warn('Web Chat: user ID prefixed with "dl_" is reserved and must be embedded into the Direct Line token to prevent forgery.'),n.final=Be()):n.final=e:n.final=Be(),n}function*Sn(t){let e=t.activity$.subscribe({next:()=>0}),i=e.unsubscribe.bind(e);try{for(;;){let{payload:{connectionStatus:o}}=yield B(ot);if(o===Ue)return()=>{i(),t.end()};if(o!==un&&o!==Me)throw new Error(`Failed to connect, DirectLineJS returned ${o}.`)}}catch(o){throw i(),o}finally{(yield ln())&&i()}}function*En(){for(;;){let{payload:{connectionStatus:t}}=yield B(ot);if(t===Ue)break;if(t!==Me)throw new Error(`Failed to reconnect. DirectLineJS returned ${t}.`)}}function*In({type:t,meta:e,payload:i},o){try{yield F({type:`${t}_PENDING`,meta:e,payload:i});let n=yield o();return yield F({type:`${t}_FULFILLING`,meta:e,payload:i},{type:`${t}_FULFILLED`,meta:e,payload:i}),n}catch(n){throw yield F({type:`${t}_REJECTED`,error:!0,meta:e,payload:n}),n}}function*gn(){throw yield B(_),new Error("disconnected")}function Ji(t,e){return In(t,function*(){let{result:o}=yield qi({_:gn(),result:e()});return o})}function*Ki(){for(;;){let{payload:{directLine:t,userID:e,username:i}}=yield B(T),o=yield fn(Tn,t),n=An(t,e),r={userID:n.final,username:i};t.setUserId&&n.fromToken!==r.userID&&t.setUserId(r.userID);let s;try{let p=yield Ji({type:T,meta:r,payload:{directLine:t}},()=>We(Sn,t));try{for(;;){let{updateConnectionStatusAction:{payload:{connectionStatus:c}={}}={}}=yield qi({_:B(_),updateConnectionStatusAction:B(ot)});if(c===Me)yield Ji({type:R,meta:r,payload:{directLine:t}},()=>We(En));else if(c!==Ue){if(typeof c<"u")throw new Error(`Connection status changed to ${c}`);break}}}finally{p()}}catch(p){s={error:p}}finally{yield mn(o),yield F({type:yt,meta:s,payload:{directLine:t}},{type:ut,meta:s,payload:{directLine:t}})}}}import{call as Cn,put as Dn,race as Nn,take as Ve}from"redux-saga/effects";function S(t,e){return new Promise(i=>e.setTimeout(i,Math.max(t,0)))}var hn=15e3;function*Ye(t){for(;;)yield Ve([lt,G]),"slow"in(yield Nn({fulfilled:Ve([mt,bt]),rejected:Ve([ft,Bi]),slow:Cn(S,hn,t)}))&&(yield Dn({type:dt}))}import{put as vn,takeEvery as _n}from"redux-saga/effects";function*bn(){yield vn(y({type:"typing"}))}function*xn(){yield _n(({type:t})=>t===Ut,bn)}function*je(){yield a(xn)}import{put as Pn,select as On,takeEvery as Ln}from"redux-saga/effects";var zi=({activities:t})=>t,nt=t=>e=>zi(e).filter(t);var Xi=t=>nt(({type:e})=>e===t),$e=zi;function rt(t){return t.channelData?.speak}function*kn(){let t=yield On(nt(rt));for(let e of t)yield Pn($(e,"speak",!1))}function*He(){yield Ln(K,kn)}import{put as Rn}from"redux-saga/effects";import W from"simple-update-in";var Je="DIRECT_LINE/QUEUE_INCOMING_ACTIVITY";function qe(t){return{type:Je,payload:{activity:t}}}var Gn=t=>t;function wn(t,e){return t.from?t.from.role||(t.from.id===e?t=W(t,["from","role"],()=>"user"):t.from.id?t=W(t,["from","role"],()=>"bot"):t=W(t,["from","role"],()=>"channel")):t=W(t,["from","role"],()=>"channel"),t}function Fn(t){return["attachmentLayout","attachments","channelData","conversation","entities","from","inputHint","locale","name","recipient","speak","suggestedActions","text","textFormat","timestamp","type"].reduce((e,i)=>{let{[i]:o}=e;return W(e,[i],typeof o>"u"||o===null?void 0:Gn)},t)}function Bn(t){return W(t,["from","name"],e=>{let{channelId:i,from:o={}}=t;return(i==="directline"||i==="webchat")&&o.id===o.name&&o.role==="bot"?"Bot":e})}function*Wn({directLine:t,userID:e}){yield it(t.activity$,function*(o){o=Fn(o),o=wn(o,e),o=Bn(o),yield Rn(qe(o))})}function*Ke(){yield a(Wn)}import{all as Mn,call as Ot,cancelled as Un,put as ct,race as Vn,select as eo,take as Yn,takeEvery as jn}from"redux-saga/effects";function N(t,e=2){if(typeof t!="number")throw new Error("First argument must be a number");let i=t+"";for(;i.length<e;)i="0"+i;return i}function ze(t){if(!(t.getTimezoneOffset&&t.getFullYear&&t.getMonth&&t.getDate&&t.getHours&&t.getMinutes&&t.getSeconds&&t.getMilliseconds))throw new Error("First argument must be a Date-like object.");let i=-t.getTimezoneOffset(),o=i<0?"-":"+",n=~~Math.abs(i);return`${t.getFullYear()}-${N(t.getMonth()+1)}-${N(t.getDate())}T${N(t.getHours())}:${N(t.getMinutes())}:${N(t.getSeconds())}.${N(t.getMilliseconds(),3)}${i?`${o}${N(~~(n/60))}:${N(n%60)}`:"Z"}`}function Pt(t,...e){if(!t)return t;let i={...t};for(let o of e)(typeof o!="string"||!w(o))&&delete i[o];return i}var Qi=({language:t})=>t;import{call as Zi}from"redux-saga/effects";function Xe(t){return Zi(function*(){let i;try{return yield Zi(()=>new Promise((o,n)=>{i=t.subscribe({complete:o,error:n,next:o})}))}finally{i&&i.unsubscribe()}})}var to=({sendTimeout:t})=>t;var $n=3e5;function*Hn(t,e,i,o,{meta:{method:n},payload:{activity:r}},s){let p=r.type==="message"&&r.attachments||[],c=b(),u=yield eo(Qi),E=typeof window.Intl>"u"?void 0:new Intl.DateTimeFormat().resolvedOptions().timeZone,v=new s.Date,U={...Pt(r,"id"),channelData:{...Pt(r.channelData,"state","webchat:send-status"),clientActivityID:c},channelId:"webchat",from:{id:e,name:i,role:"user"},locale:u,localTimestamp:ze(v),localTimezone:E,...r.type==="message"?{attachments:p&&p.map(({contentType:O,contentUrl:pt,name:Bt,thumbnailUrl:Y})=>({contentType:O,contentUrl:pt,name:Bt,thumbnailUrl:Y})),text:r.text}:r.type==="event"?{name:r.name,value:r.value}:{}};o||(U.entities=[...U.entities||[],{requiresBotState:!0,supportsListening:!0,supportsTts:!0,type:"ClientCapabilities"}]);let V={clientActivityID:c,method:n};yield ct({type:d,meta:V,payload:{activity:U}});let Ci;try{let O=Ot(function*(){for(;;){let{payload:{activity:Y}}=yield Yn(A);if(Y.channelData?.clientActivityID===c&&Y.id)return Ci=!0,Y}}),pt=yield eo(to),{send:{echoBack:Bt}}=yield Vn({send:Mn({echoBack:O,postActivity:Xe(t.postActivity(U))}),timeout:Ot(function*(){throw yield Ot(S,pt,s),yield ct({type:St,meta:V,payload:{activity:U}}),yield Ot(S,$n-pt,s),Ci?new Error("timed out while waiting for postActivity to return any values"):new Error("timed out while waiting for outgoing message to echo back")})});yield ct({type:At,meta:V,payload:{activity:Bt}})}catch(O){console.error("botframework-webchat: Failed to post activity to chat adapter.",O),yield ct({type:H,error:!0,meta:V,payload:O})}finally{(yield Un())&&(yield ct({type:H,error:!0,meta:V,payload:new Error("cancelled")}))}}function*Qe(t){yield a(function*({directLine:i,userID:o,username:n}){let r=0;yield jn(I,function*(p){yield*Hn(i,o,n,r++,p,t)})})}import{call as Jn,cancelled as qn,fork as Kn,put as oo,race as zn,select as Ze,take as no}from"redux-saga/effects";var io=t=>t&&t.from.role==="bot";var Xn=5e3;function*Qn(t,e,i){for(;!(yield qn());){let o=yield no(t),n=yield Ze(e);yield Kn(i,o,n)}}function*Zn(t,e){let i=e;for(;!i.find(r=>r.id===t||r.replyToId===t);){let{payload:{activity:n}}=yield no(A);if(n.id===t)break;i=yield Ze($e)}}function*tr({userID:t},e){yield Qn(Je,$e,function*({payload:{activity:o}},n){let{replyToId:r}=o,s=n.filter(({from:{role:u}})=>u==="bot");r&&s.length&&"timeout"in(yield zn({_:Zn(r,n),timeout:Jn(S,Xn,e)}))&&console.warn(`botframework-webchat: Timed out while waiting for activity "${r}" which activity "${o.id}" is replying to.`,{activity:o,replyToId:r}),yield oo(Mi(o));let p=yield Ze(Xi("message")),c=p[p.length-1];if(io(c)){let{suggestedActions:{actions:u,to:E}={actions:void 0,to:void 0}}=c;yield oo(et(E?.length&&!E.includes(t)?null:u))}})}function*ti(t){yield a(tr,t)}import{put as er,takeEvery as ir}from"redux-saga/effects";function*or({payload:{name:t,value:e}}){yield er(y({name:t,type:"event",value:e}))}function*nr(){yield ir(({payload:t,type:e})=>e===Vt&&t.name,or)}function*ei(){yield a(nr)}import{put as rr,takeEvery as cr}from"redux-saga/effects";import ro from"mime";var ar=ro.getType.bind(ro);function*sr({payload:{files:t}}){yield rr(y({attachments:[].map.call(t,({name:e,thumbnail:i,url:o})=>({contentType:ar(e)||"application/octet-stream",contentUrl:o,name:e,thumbnailUrl:i})),channelData:{attachmentSizes:[].map.call(t,({size:e})=>e)},type:"message"}))}function*pr(){yield cr(({payload:t,type:e})=>e===Yt&&t.files.length,sr)}function*ii(){yield a(pr)}import{put as mr,takeEvery as lr}from"redux-saga/effects";function*fr({payload:{displayText:t,text:e,value:i}}){yield mr(y({channelData:{messageBack:{displayText:t}},text:e,type:"message",value:i}))}function*dr(){yield lr($t,fr)}function*oi(){yield a(dr)}import{put as yr,takeEvery as ur}from"redux-saga/effects";function*Tr({payload:{attachments:t=[],channelData:e,method:i,text:o}}){yield yr(y({attachments:t.map(({blob:n,thumbnailURL:r})=>({contentType:n instanceof File&&n.type||"application/octet-stream",contentUrl:URL.createObjectURL(n),name:n instanceof File?n.name:void 0,thumbnailUrl:r?.toString()})),channelData:{...e,attachmentSizes:t.map(({blob:{size:n}})=>n)},text:o||void 0,textFormat:"plain",type:"message"},i))}function*Ar(){yield ur(({payload:t,type:e})=>e===jt&&(t.text||t.attachments?.length),Tr)}function*ni(){yield a(Ar)}import{put as Sr,takeEvery as Er}from"redux-saga/effects";function*Ir({payload:{value:t}}){yield Sr(y({channelData:{postBack:!0},text:typeof t=="string"?t:void 0,type:"message",value:typeof t!="string"?t:void 0}))}function*gr(){yield Er(Ht,Ir)}function*ri(){yield a(gr)}import{call as Cr,cancel as Dr,put as Nr,select as hr,take as vr,takeLatest as _r}from"redux-saga/effects";var co=({sendTypingIndicator:t})=>t;var br=3e3;function ci(t){return vr(({payload:e,type:i})=>i===q&&!e.sendTypingIndicator==!t)}function*xr(t,e){let{Date:i}=e;for((yield hr(co))||(yield ci(!0));;){let n=-1/0,r=yield _r(({payload:s,type:p})=>p===C&&s.text||p===I&&s.activity.type!=="typing",function*({payload:s,type:p}){if(p===C){let c=br-i.now()+n;c>0&&(yield Cr(S,c,e)),yield Nr(Tt()),n=i.now()}else s.activity.type==="message"&&(n=-1/0)});yield ci(!1),yield Dr(r),yield ci(!0)}}function*ai(t){yield a(xr,t)}import{put as pi,select as Pr,takeEvery as Or}from"redux-saga/effects";var ao=({shouldSpeakIncomingActivity:t})=>t;function si(t){return t&&t.from&&t.type==="message"}function*Lr({userID:t}){yield Or(({payload:e,type:i})=>i===A&&e.activity.from.id!==t&&e.activity.from.role!=="user",function*({payload:{activity:e}}){let i=yield Pr(ao),o=si(e)&&i;o&&(e.speak||e.text||~(e.attachments||[]).findIndex(({content:{speak:n}={}})=>n))&&(yield pi($(e,"speak",!0))),o&&e.inputHint==="expectingInput"?yield pi(It(1)):e.inputHint==="ignoringInput"&&(yield pi(k()))})}function*mi(){yield a(Lr)}import{put as kr,select as po,takeEvery as Rr}from"redux-saga/effects";var so=({dictateState:t})=>t;function*Gr(){let t=yield po(nt(rt));(yield po(so))===1&&!t.length&&(yield kr(Dt()))}function*li(){yield Rr(({type:t})=>t===j||t===J,Gr)}import{put as wr,takeEvery as Fr}from"redux-saga/effects";function*Br(){yield Fr(({meta:t,payload:e,type:i})=>i===d&&t.method==="speech"&&e.activity.type==="message",function*(){yield wr(Nt())})}function*fi(){yield a(Br)}import{put as Wr,takeEvery as Mr}from"redux-saga/effects";function*Ur(){yield Mr(({payload:t,type:e})=>e===d&&t.activity.type==="message",function*(){yield Wr(k())})}function*di(){yield a(Ur)}import{put as Vr,takeEvery as Yr}from"redux-saga/effects";function*jr(){yield Yr(({meta:t,payload:e,type:i})=>i===C&&e.text||i===d&&t.method!=="speech"&&e.activity.type==="message",function*(){yield Vr(ht())})}function*yi(){yield a(jr)}import{put as Ti,select as lo,takeEvery as $r}from"redux-saga/effects";function ui({sendBoxAttachments:t}){return t}var mo=({sendBoxValue:t})=>t;function*Hr(){yield $r(ee,function*({payload:{channelData:t,method:e}}){let i=yield lo(ui),o=yield lo(mo);(i.length||o)&&(yield Ti(Et(o.trim(),e,{attachments:i,channelData:t})),yield Ti(gt("")),yield Ti(Ct(Object.freeze([]))))})}function*Ai(){yield a(Hr)}function Si({ponyfill:t}){return function*(){yield l(Le),yield l($i),yield l(we),yield l(Ki),yield l(Ye,t),yield l(je),yield l(He),yield l(Ke),yield l(Qe,t),yield l(ti,t),yield l(ei),yield l(ii),yield l(oi),yield l(ni),yield l(ri),yield l(ai,t),yield l(mi),yield l(li),yield l(fi),yield l(di),yield l(yi),yield l(Ai)}}function Xr(t,...e){let i=zr({onError:(...o)=>{let[n]=o;console.error(n);let r=t();r&&r.dispatch(re())}});return{enhancer:Jr(...e,i),sagaMiddleware:i}}function Ei(t,e,...i){let o=typeof globalThis>"u"?window:globalThis,n=t.ponyfill||{},r={cancelAnimationFrame:n.cancelAnimationFrame||(typeof cancelAnimationFrame=="function"?cancelAnimationFrame.bind(o):void 0),cancelIdleCallback:n.cancelIdleCallback||(typeof cancelIdleCallback=="function"?cancelIdleCallback.bind(o):void 0),clearImmediate:n.clearImmediate||(typeof clearImmediate=="function"?clearImmediate.bind(o):void 0),clearInterval:n.clearInterval||(typeof clearInterval=="function"?clearInterval.bind(o):void 0),clearTimeout:n.clearTimeout||(typeof clearTimeout=="function"?clearTimeout.bind(o):void 0),Date:n.Date||Date,requestAnimationFrame:n.requestAnimationFrame||(typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(o):void 0),requestIdleCallback:n.requestIdleCallback||(typeof requestIdleCallback=="function"?requestIdleCallback.bind(o):void 0),setImmediate:n.setImmediate||(typeof setImmediate=="function"?setImmediate.bind(o):void 0),setInterval:n.setInterval||(typeof setInterval=="function"?setInterval.bind(o):void 0),setTimeout:n.setTimeout||(typeof setTimeout=="function"?setTimeout.bind(o):void 0)},{enhancer:s,sagaMiddleware:p}=Xr(()=>c,...i),c=qr(Oe(r),e||{},t.devTools?Kr(s):s);return p.run(Si({ponyfill:r})),c}function fo(t,...e){return Ei({},t,...e)}function Qr(t,...e){return Ei({devTools:!0},t,...e)}import{lazy as Ec,parse as Ic,string as Lt,union as gc,value as kt}from"valibot";import{array as Zr,fallback as tc,optional as ec,transform as ic,union as oc}from"valibot";var nc=t=>tc(ec(oc([ic(Zr(t),e=>e[0]),t])),void 0),m=nc;import{parse as Tc,string as Ac}from"valibot";import{lazy as mc,object as lc,optional as yo,parse as fc,string as h,unknown as dc,value as yc}from"valibot";import{array as rc,fallback as cc,parse as ac,transform as sc}from"valibot";var pc=t=>cc(sc(rc(t),e=>e.filter(i=>typeof i<"u")),e=>e?.input?[ac(t,e?.input)]:void 0);function P(t){return pc(m(t))}var uc={"@context":yo(h([yc("https://schema.org")])),"@id":yo(h()),"@type":h(),additionalType:m(h()),alternateName:m(h()),description:m(h()),name:m(h()),potentialAction:P(mc(()=>at())),url:m(h())},g=t=>lc({...uc,...t},dc()),Ii=t=>fc(g(),t);var st=t=>g({slogan:m(Ac()),...t}),Sc=t=>Tc(st(),t);var at=t=>g({actionStatus:m(gc([Lt([kt("ActiveActionStatus")]),Lt([kt("CompletedActionStatus")]),Lt([kt("FailedActionStatus")]),Lt([kt("PotentialActionStatus")])])),provider:m(Ec(()=>st())),...t}),Cc=t=>Ic(at(),t);import{lazy as To,number as _c,parse as bc,string as xc,union as Pc}from"valibot";import{lazy as Gt,parse as hc,string as wt,union as vc}from"valibot";import{parse as Dc,string as uo}from"valibot";var Rt=t=>g({inDefinedTermSet:m(uo()),termCode:m(uo()),...t}),Nc=t=>Dc(Rt(),t);var M=t=>g({abstract:m(wt()),author:P(wt()),citation:P(Gt(()=>M())),keywords:P(vc([Gt(()=>Rt()),wt()])),pattern:m(Gt(()=>Rt())),text:m(wt()),usageInfo:m(Gt(()=>M())),...t}),Ft=t=>hc(M(),t);var Oc=t=>M({appearance:m(To(()=>M())),claimInterpreter:m(To(()=>st())),position:m(Pc([_c(),xc()])),...t}),Lc=t=>bc(Oc(),t);import{parse as kc,string as Rc}from"valibot";var Gc=t=>at({actionOption:m(Rc()),...t}),wc=t=>kc(Gc(),t);function Ao(t){let e=(t||[]).find(o=>{if(o.type?.startsWith("https://schema.org/"))return Ii(o)["@id"]===""}),i=e&&Ft(e);return i&&Ft(i)}function So(t,e){try{return t()}catch{return e}}function Eo(t){return t?Array.isArray(t)?t:[t]:[]}function gi(t){let e;return()=>{e||(t(),e=1)}}function Io(t){return gi(()=>console.warn(`botframework-webchat: ${t}.`))}var ly={ActivityClientState:ie,DictateState:ne},Fc="tsup",Bc="esmodules",Wc="4.17.0",fy={buildTool:Fc,moduleFormat:Bc,version:Wc};export{ly as Constants,fy as buildInfo,Ni as clearSuggestedActions,vi as connect,fo as createStore,Qr as createStoreWithDevTools,Ei as createStoreWithOptions,_i as disconnect,Do as dismissNotification,Tt as emitTypingIndicator,Ao as getOrgSchemaMessage,w as isForbiddenPropertyName,$ as markActivity,Bc as moduleFormat,So as onErrorResumeNext,Cc as parseAction,Lc as parseClaim,Ft as parseCreativeWork,Nc as parseDefinedTerm,Sc as parseProject,Ii as parseThing,wc as parseVoteAction,y as postActivity,bi as sendEvent,xi as sendFiles,Et as sendMessage,Pi as sendMessageBack,Oi as sendPostBack,Li as setDictateInterims,It as setDictateState,ki as setLanguage,L as setNotification,gt as setSendBox,Ct as setSendBoxAttachments,Ri as setSendTimeout,Gi as setSendTypingIndicator,Eo as singleToArray,Dt as startDictate,Nt as startSpeakingActivity,k as stopDictate,ht as stopSpeakingActivity,wi as submitSendBox,Wc as version,Io as warnOnce};
|
|
2
2
|
/*! For license information please see botframework-webchat-core.mjs.LEGAL.txt */
|
|
3
3
|
//# sourceMappingURL=botframework-webchat-core.mjs.map
|