botframework-webchat-fluent-theme 4.17.1-main.20240508.bf8dbd9 → 4.17.1-main.20240509.b00b5c9

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";(()=>{var Ba=Object.create;var $r=Object.defineProperty;var Na=Object.getOwnPropertyDescriptor;var Ea=Object.getOwnPropertyNames;var Fa=Object.getPrototypeOf,Ca=Object.prototype.hasOwnProperty;var a=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var Oa=(e,r,t,o)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of Ea(r))!Ca.call(e,n)&&n!==t&&$r(e,n,{get:()=>r[n],enumerable:!(o=Na(r,n))||o.enumerable});return e};var l=(e,r,t)=>(t=e!=null?Ba(Fa(e)):{},Oa(r||!e||!e.__esModule?$r(t,"default",{value:e,enumerable:!0}):t,e));var O=a((qd,Vr)=>{Vr.exports={Components:globalThis.WebChat.Components,hooks:globalThis.WebChat.hooks}});var f=a((Pd,Gr)=>{Gr.exports=globalThis.React});var q=a((Dd,ye)=>{(function(){"use strict";var e={}.hasOwnProperty;function r(){for(var n="",i=0;i<arguments.length;i++){var d=arguments[i];d&&(n=o(n,t(d)))}return n}function t(n){if(typeof n=="string"||typeof n=="number")return n;if(typeof n!="object")return"";if(Array.isArray(n))return r.apply(null,n);if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]"))return n.toString();var i="";for(var d in n)e.call(n,d)&&n[d]&&(i=o(i,d));return i}function o(n,i){return i?n?n+" "+i:n+i:n}typeof ye<"u"&&ye.exports?(r.default=r,ye.exports=r):typeof define=="function"&&typeof define.amd=="object"&&define.amd?define("classnames",[],function(){return r}):window.classNames=r})()});var R=a((Ke,Jr)=>{"use strict";var ne=function(e){return e&&e.Math===Math&&e};Jr.exports=ne(typeof globalThis=="object"&&globalThis)||ne(typeof window=="object"&&window)||ne(typeof self=="object"&&self)||ne(typeof global=="object"&&global)||ne(typeof Ke=="object"&&Ke)||function(){return this}()||Function("return this")()});var H=a((Hd,Qr)=>{"use strict";Qr.exports=function(e){try{return!!e()}catch{return!0}}});var ae=a((jd,et)=>{"use strict";var Ma=H();et.exports=!Ma(function(){var e=(function(){}).bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var at=a((Kd,nt)=>{"use strict";var qa=ae(),ot=Function.prototype,rt=ot.apply,tt=ot.call;nt.exports=typeof Reflect=="object"&&Reflect.apply||(qa?tt.bind(rt):function(){return tt.apply(rt,arguments)})});var j=a((zd,lt)=>{"use strict";var it=ae(),st=Function.prototype,ze=st.call,Pa=it&&st.bind.bind(ze,ze);lt.exports=it?Pa:function(e){return function(){return ze.apply(e,arguments)}}});var Ue=a((Ud,ct)=>{"use strict";var dt=j(),Aa=dt({}.toString),La=dt("".slice);ct.exports=function(e){return La(Aa(e),8,-1)}});var We=a((Wd,ut)=>{"use strict";var Ra=Ue(),Da=j();ut.exports=function(e){if(Ra(e)==="Function")return Da(e)}});var K=a((Zd,pt)=>{"use strict";var Ze=typeof document=="object"&&document.all;pt.exports=typeof Ze>"u"&&Ze!==void 0?function(e){return typeof e=="function"||e===Ze}:function(e){return typeof e=="function"}});var z=a(($d,mt)=>{"use strict";var Ha=H();mt.exports=!Ha(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var we=a((Vd,ft)=>{"use strict";var ja=ae(),xe=Function.prototype.call;ft.exports=ja?xe.bind(xe):function(){return xe.apply(xe,arguments)}});var gt=a(vt=>{"use strict";var bt={}.propertyIsEnumerable,ht=Object.getOwnPropertyDescriptor,Ka=ht&&!bt.call({1:2},1);vt.f=Ka?function(r){var t=ht(this,r);return!!t&&t.enumerable}:bt});var $e=a((Xd,yt)=>{"use strict";yt.exports=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}}});var wt=a((Yd,xt)=>{"use strict";var za=j(),Ua=H(),Wa=Ue(),Ve=Object,Za=za("".split);xt.exports=Ua(function(){return!Ve("z").propertyIsEnumerable(0)})?function(e){return Wa(e)==="String"?Za(e,""):Ve(e)}:Ve});var Ge=a((Jd,Tt)=>{"use strict";Tt.exports=function(e){return e==null}});var Xe=a((Qd,St)=>{"use strict";var $a=Ge(),Va=TypeError;St.exports=function(e){if($a(e))throw new Va("Can't call method on "+e);return e}});var ie=a((ec,kt)=>{"use strict";var Ga=wt(),Xa=Xe();kt.exports=function(e){return Ga(Xa(e))}});var se=a((rc,_t)=>{"use strict";var Ya=K();_t.exports=function(e){return typeof e=="object"?e!==null:Ya(e)}});var Te=a((tc,Bt)=>{"use strict";Bt.exports={}});var Qe=a((oc,Et)=>{"use strict";var Ye=Te(),Je=R(),Ja=K(),Nt=function(e){return Ja(e)?e:void 0};Et.exports=function(e,r){return arguments.length<2?Nt(Ye[e])||Nt(Je[e]):Ye[e]&&Ye[e][r]||Je[e]&&Je[e][r]}});var Ct=a((nc,Ft)=>{"use strict";var Qa=j();Ft.exports=Qa({}.isPrototypeOf)});var It=a((ac,Ot)=>{"use strict";Ot.exports=typeof navigator<"u"&&String(navigator.userAgent)||""});var Dt=a((ic,Rt)=>{"use strict";var Lt=R(),er=It(),Mt=Lt.process,qt=Lt.Deno,Pt=Mt&&Mt.versions||qt&&qt.version,At=Pt&&Pt.v8,I,Se;At&&(I=At.split("."),Se=I[0]>0&&I[0]<4?1:+(I[0]+I[1]));!Se&&er&&(I=er.match(/Edge\/(\d+)/),(!I||I[1]>=74)&&(I=er.match(/Chrome\/(\d+)/),I&&(Se=+I[1])));Rt.exports=Se});var rr=a((sc,jt)=>{"use strict";var Ht=Dt(),ei=H(),ri=R(),ti=ri.String;jt.exports=!!Object.getOwnPropertySymbols&&!ei(function(){var e=Symbol("symbol detection");return!ti(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Ht&&Ht<41})});var tr=a((lc,Kt)=>{"use strict";var oi=rr();Kt.exports=oi&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var or=a((dc,zt)=>{"use strict";var ni=Qe(),ai=K(),ii=Ct(),si=tr(),li=Object;zt.exports=si?function(e){return typeof e=="symbol"}:function(e){var r=ni("Symbol");return ai(r)&&ii(r.prototype,li(e))}});var Wt=a((cc,Ut)=>{"use strict";var di=String;Ut.exports=function(e){try{return di(e)}catch{return"Object"}}});var nr=a((uc,Zt)=>{"use strict";var ci=K(),ui=Wt(),pi=TypeError;Zt.exports=function(e){if(ci(e))return e;throw new pi(ui(e)+" is not a function")}});var Vt=a((pc,$t)=>{"use strict";var mi=nr(),fi=Ge();$t.exports=function(e,r){var t=e[r];return fi(t)?void 0:mi(t)}});var Xt=a((mc,Gt)=>{"use strict";var ar=we(),ir=K(),sr=se(),bi=TypeError;Gt.exports=function(e,r){var t,o;if(r==="string"&&ir(t=e.toString)&&!sr(o=ar(t,e))||ir(t=e.valueOf)&&!sr(o=ar(t,e))||r!=="string"&&ir(t=e.toString)&&!sr(o=ar(t,e)))return o;throw new bi("Can't convert object to primitive value")}});var Jt=a((fc,Yt)=>{"use strict";Yt.exports=!0});var ro=a((bc,eo)=>{"use strict";var Qt=R(),hi=Object.defineProperty;eo.exports=function(e,r){try{hi(Qt,e,{value:r,configurable:!0,writable:!0})}catch{Qt[e]=r}return r}});var lr=a((hc,no)=>{"use strict";var vi=Jt(),gi=R(),yi=ro(),to="__core-js_shared__",oo=no.exports=gi[to]||yi(to,{});(oo.versions||(oo.versions=[])).push({version:"3.36.1",mode:vi?"pure":"global",copyright:"\xA9 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.36.1/LICENSE",source:"https://github.com/zloirock/core-js"})});var dr=a((vc,io)=>{"use strict";var ao=lr();io.exports=function(e,r){return ao[e]||(ao[e]=r||{})}});var lo=a((gc,so)=>{"use strict";var xi=Xe(),wi=Object;so.exports=function(e){return wi(xi(e))}});var le=a((yc,co)=>{"use strict";var Ti=j(),Si=lo(),ki=Ti({}.hasOwnProperty);co.exports=Object.hasOwn||function(r,t){return ki(Si(r),t)}});var cr=a((xc,uo)=>{"use strict";var _i=j(),Bi=0,Ni=Math.random(),Ei=_i(1 .toString);uo.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Ei(++Bi+Ni,36)}});var fo=a((wc,mo)=>{"use strict";var Fi=R(),Ci=dr(),po=le(),Oi=cr(),Ii=rr(),Mi=tr(),J=Fi.Symbol,ur=Ci("wks"),qi=Mi?J.for||J:J&&J.withoutSetter||Oi;mo.exports=function(e){return po(ur,e)||(ur[e]=Ii&&po(J,e)?J[e]:qi("Symbol."+e)),ur[e]}});var go=a((Tc,vo)=>{"use strict";var Pi=we(),bo=se(),ho=or(),Ai=Vt(),Li=Xt(),Ri=fo(),Di=TypeError,Hi=Ri("toPrimitive");vo.exports=function(e,r){if(!bo(e)||ho(e))return e;var t=Ai(e,Hi),o;if(t){if(r===void 0&&(r="default"),o=Pi(t,e,r),!bo(o)||ho(o))return o;throw new Di("Can't convert object to primitive value")}return r===void 0&&(r="number"),Li(e,r)}});var pr=a((Sc,yo)=>{"use strict";var ji=go(),Ki=or();yo.exports=function(e){var r=ji(e,"string");return Ki(r)?r:r+""}});var fr=a((kc,wo)=>{"use strict";var zi=R(),xo=se(),mr=zi.document,Ui=xo(mr)&&xo(mr.createElement);wo.exports=function(e){return Ui?mr.createElement(e):{}}});var br=a((_c,To)=>{"use strict";var Wi=z(),Zi=H(),$i=fr();To.exports=!Wi&&!Zi(function(){return Object.defineProperty($i("div"),"a",{get:function(){return 7}}).a!==7})});var _o=a(ko=>{"use strict";var Vi=z(),Gi=we(),Xi=gt(),Yi=$e(),Ji=ie(),Qi=pr(),es=le(),rs=br(),So=Object.getOwnPropertyDescriptor;ko.f=Vi?So:function(r,t){if(r=Ji(r),t=Qi(t),rs)try{return So(r,t)}catch{}if(es(r,t))return Yi(!Gi(Xi.f,r,t),r[t])}});var No=a((Nc,Bo)=>{"use strict";var ts=H(),os=K(),ns=/#|\.prototype\./,de=function(e,r){var t=is[as(e)];return t===ls?!0:t===ss?!1:os(r)?ts(r):!!r},as=de.normalize=function(e){return String(e).replace(ns,".").toLowerCase()},is=de.data={},ss=de.NATIVE="N",ls=de.POLYFILL="P";Bo.exports=de});var Co=a((Ec,Fo)=>{"use strict";var Eo=We(),ds=nr(),cs=ae(),us=Eo(Eo.bind);Fo.exports=function(e,r){return ds(e),r===void 0?e:cs?us(e,r):function(){return e.apply(r,arguments)}}});var hr=a((Fc,Oo)=>{"use strict";var ps=z(),ms=H();Oo.exports=ps&&ms(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var ke=a((Cc,Io)=>{"use strict";var fs=se(),bs=String,hs=TypeError;Io.exports=function(e){if(fs(e))return e;throw new hs(bs(e)+" is not an object")}});var wr=a(qo=>{"use strict";var vs=z(),gs=br(),ys=hr(),_e=ke(),Mo=pr(),xs=TypeError,vr=Object.defineProperty,ws=Object.getOwnPropertyDescriptor,gr="enumerable",yr="configurable",xr="writable";qo.f=vs?ys?function(r,t,o){if(_e(r),t=Mo(t),_e(o),typeof r=="function"&&t==="prototype"&&"value"in o&&xr in o&&!o[xr]){var n=ws(r,t);n&&n[xr]&&(r[t]=o.value,o={configurable:yr in o?o[yr]:n[yr],enumerable:gr in o?o[gr]:n[gr],writable:!1})}return vr(r,t,o)}:vr:function(r,t,o){if(_e(r),t=Mo(t),_e(o),gs)try{return vr(r,t,o)}catch{}if("get"in o||"set"in o)throw new xs("Accessors not supported");return"value"in o&&(r[t]=o.value),r}});var Ao=a((Ic,Po)=>{"use strict";var Ts=z(),Ss=wr(),ks=$e();Po.exports=Ts?function(e,r,t){return Ss.f(e,r,ks(1,t))}:function(e,r,t){return e[r]=t,e}});var Do=a((Mc,Ro)=>{"use strict";var ce=R(),_s=at(),Bs=We(),Ns=K(),Es=_o().f,Fs=No(),Q=Te(),Cs=Co(),ee=Ao(),Lo=le();lr();var Os=function(e){var r=function(t,o,n){if(this instanceof r){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,o)}return new e(t,o,n)}return _s(e,this,arguments)};return r.prototype=e.prototype,r};Ro.exports=function(e,r){var t=e.target,o=e.global,n=e.stat,i=e.proto,d=o?ce:n?ce[t]:ce[t]&&ce[t].prototype,s=o?Q:Q[t]||ee(Q,t,{})[t],h=s.prototype,x,c,u,m,g,B,_,T,k;for(m in r)x=Fs(o?m:t+(n?".":"#")+m,e.forced),c=!x&&d&&Lo(d,m),B=s[m],c&&(e.dontCallGetSet?(k=Es(d,m),_=k&&k.value):_=d[m]),g=c&&_?_:r[m],!(!x&&!i&&typeof B==typeof g)&&(e.bind&&c?T=Cs(g,ce):e.wrap&&c?T=Os(g):i&&Ns(g)?T=Bs(g):T=g,(e.sham||g&&g.sham||B&&B.sham)&&ee(T,"sham",!0),ee(s,m,T),i&&(u=t+"Prototype",Lo(Q,u)||ee(Q,u,{}),ee(Q[u],m,g),e.real&&h&&(x||!h[m])&&ee(h,m,g)))}});var jo=a((qc,Ho)=>{"use strict";var Is=Math.ceil,Ms=Math.floor;Ho.exports=Math.trunc||function(r){var t=+r;return(t>0?Ms:Is)(t)}});var Tr=a((Pc,Ko)=>{"use strict";var qs=jo();Ko.exports=function(e){var r=+e;return r!==r||r===0?0:qs(r)}});var Uo=a((Ac,zo)=>{"use strict";var Ps=Tr(),As=Math.max,Ls=Math.min;zo.exports=function(e,r){var t=Ps(e);return t<0?As(t+r,0):Ls(t,r)}});var Zo=a((Lc,Wo)=>{"use strict";var Rs=Tr(),Ds=Math.min;Wo.exports=function(e){var r=Rs(e);return r>0?Ds(r,9007199254740991):0}});var Vo=a((Rc,$o)=>{"use strict";var Hs=Zo();$o.exports=function(e){return Hs(e.length)}});var Yo=a((Dc,Xo)=>{"use strict";var js=ie(),Ks=Uo(),zs=Vo(),Go=function(e){return function(r,t,o){var n=js(r),i=zs(n);if(i===0)return!e&&-1;var d=Ks(o,i),s;if(e&&t!==t){for(;i>d;)if(s=n[d++],s!==s)return!0}else for(;i>d;d++)if((e||d in n)&&n[d]===t)return e||d||0;return!e&&-1}};Xo.exports={includes:Go(!0),indexOf:Go(!1)}});var Sr=a((Hc,Jo)=>{"use strict";Jo.exports={}});var rn=a((jc,en)=>{"use strict";var Us=j(),kr=le(),Ws=ie(),Zs=Yo().indexOf,$s=Sr(),Qo=Us([].push);en.exports=function(e,r){var t=Ws(e),o=0,n=[],i;for(i in t)!kr($s,i)&&kr(t,i)&&Qo(n,i);for(;r.length>o;)kr(t,i=r[o++])&&(~Zs(n,i)||Qo(n,i));return n}});var _r=a((Kc,tn)=>{"use strict";tn.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var nn=a((zc,on)=>{"use strict";var Vs=rn(),Gs=_r();on.exports=Object.keys||function(r){return Vs(r,Gs)}});var sn=a(an=>{"use strict";var Xs=z(),Ys=hr(),Js=wr(),Qs=ke(),el=ie(),rl=nn();an.f=Xs&&!Ys?Object.defineProperties:function(r,t){Qs(r);for(var o=el(t),n=rl(t),i=n.length,d=0,s;i>d;)Js.f(r,s=n[d++],o[s]);return r}});var dn=a((Wc,ln)=>{"use strict";var tl=Qe();ln.exports=tl("document","documentElement")});var pn=a((Zc,un)=>{"use strict";var ol=dr(),nl=cr(),cn=ol("keys");un.exports=function(e){return cn[e]||(cn[e]=nl(e))}});var xn=a(($c,yn)=>{"use strict";var al=ke(),il=sn(),mn=_r(),sl=Sr(),ll=dn(),dl=fr(),cl=pn(),fn=">",bn="<",Nr="prototype",Er="script",vn=cl("IE_PROTO"),Br=function(){},gn=function(e){return bn+Er+fn+e+bn+"/"+Er+fn},hn=function(e){e.write(gn("")),e.close();var r=e.parentWindow.Object;return e=null,r},ul=function(){var e=dl("iframe"),r="java"+Er+":",t;return e.style.display="none",ll.appendChild(e),e.src=String(r),t=e.contentWindow.document,t.open(),t.write(gn("document.F=Object")),t.close(),t.F},Be,Ne=function(){try{Be=new ActiveXObject("htmlfile")}catch{}Ne=typeof document<"u"?document.domain&&Be?hn(Be):ul():hn(Be);for(var e=mn.length;e--;)delete Ne[Nr][mn[e]];return Ne()};sl[vn]=!0;yn.exports=Object.create||function(r,t){var o;return r!==null?(Br[Nr]=al(r),o=new Br,Br[Nr]=null,o[vn]=r):o=Ne(),t===void 0?o:il.f(o,t)}});var wn=a(()=>{"use strict";var pl=Do(),ml=z(),fl=xn();pl({target:"Object",stat:!0,sham:!ml},{create:fl})});var Sn=a((Xc,Tn)=>{"use strict";wn();var bl=Te(),hl=bl.Object;Tn.exports=function(r,t){return hl.create(r,t)}});var _n=a((Yc,kn)=>{"use strict";var vl=Sn();kn.exports=vl});var Nn=a((Jc,Bn)=>{Bn.exports=_n()});function ve(e,r){try{if(typeof document>"u")return;var t=document.createElement("meta");t.setAttribute("name",e),r&&t.setAttribute("content",r),document.head.appendChild(t)}catch(o){console.error('inject-meta-tag: Failed to inject <meta name="'.concat(e,'"> tag.'),o)}}var Ta=l(O()),te=l(f());var D=l(f());var Xr=l(f()),Yr=(0,Xr.createContext)(new Proxy({},{get(){throw new Error("botframework-webchat: This hook can only used under its corresponding <Provider>.")}}));Yr.displayName="TelephoneKeypad.Context";var ge=Yr;var Ia=(0,D.memo)(({children:e})=>{let[r,t]=(0,D.useState)(!1),o=(0,D.useMemo)(()=>Object.freeze({setShown:t,shown:r}),[t,r]);return D.default.createElement(ge.Provider,{value:o},e)}),je=Ia;var Oe=l(f());var In=l(O()),Mn=l(q()),p=l(f());var En=l(Nn()),Ee=l(f());function S(e){var r=(0,Ee.useRef)(),t=(0,Ee.useMemo)(function(){return(0,En.default)({},{current:{get:function(){return r.current}}})},[r]);return r.current=e,t}var P=l(f());var Fn={"telephone-keypad__button":"r","telephone-keypad__button__ruby":"e","telephone-keypad__button__text":"o","telephone-keypad--horizontal":"l"};var yl=".webchat-fluent .r{-webkit-user-select:none;align-items:center;-webkit-appearance:none;appearance:none;background-color:#fff;border-radius:100%;border:solid 1px var(--webchat-colorNeutralStroke1);color:var(--webchat-colorGray200);font-weight:var(--webchat-fontWeightSemibold);cursor:pointer;display:flex;flex-direction:column;height:60px;opacity:.7;padding:0;position:relative;touch-action:none;user-select:none;width:60px}.webchat-fluent .r:hover{background-color:var(--webchat-colorGray30)}.webchat-fluent .e{color:var(--webchat-colorGray190);font-size:10px}.webchat-fluent .o{font-size:24px;margin-top:8px}.webchat-fluent .l .r{height:32px;justify-content:center;margin:8px 4px;width:32px}.webchat-fluent .l .e{display:none}.webchat-fluent .l .o{font-size:20px;margin-top:0}.webchat-fluent .c{align-items:center;background:var(--webchat-colorNeutralBackground1);border:none;border-radius:var(--webchat-borderRadiusXLarge);display:flex;flex-direction:column;font-family:var(--webchat-fontFamilyBase);justify-content:center}.webchat-fluent .n{box-sizing:border-box;display:grid;gap:16px;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(4,1fr);justify-items:center;padding:16px;width:100%}.webchat-fluent .d{align-items:center;color:var(--webchat-colorNeutralForeground4);display:flex;font-size:12px;gap:6px;margin-block-end:6px}.webchat-fluent .i{color:var(--webchat-colorBrandForegroundLink);text-decoration-color:transparent}.webchat-fluent .i:target{color:var(--webchat-colorBrandForegroundLinkSelected)}.webchat-fluent .i:hover{color:var(--webchat-colorBrandForegroundLinkHover);text-decoration:underline 1px currentColor}.webchat-fluent .i:active{color:var(--webchat-colorBrandForegroundLinkPressed)}.webchat-fluent .i:focus-visible{outline:none;text-decoration:underline 1px double var(--webchat-colorStrokeFocus2)}.webchat-fluent.a{display:contents;--webchat-colorNeutralForeground1: var(--colorNeutralForeground1, #242424);--webchat-colorNeutralForeground2: var(--colorNeutralForeground2, #424242);--webchat-colorNeutralForeground4: var(--colorNeutralForeground4, #707070);--webchat-colorNeutralForeground2BrandHover: var(--colorNeutralForeground2BrandHover, #02729c);--webchat-colorNeutralForeground2BrandPressed: var(--colorNeutralForeground2BrandPressed, #01678c);--webchat-colorNeutralForeground2BrandSelected: var(--colorNeutralForeground2BrandSelected, #067191);--webchat-colorNeutralForegroundDisabled: var(--colorNeutralForegroundDisabled, #bdbdbd);--webchat-colorNeutralBackground1: var(--colorNeutralBackground1, #ffffff);--webchat-colorNeutralBackground4: var(--colorNeutralBackground4, #f0f0f0);--webchat-colorNeutralBackground5: var(--colorNeutralBackground5, #ebebeb);--webchat-colorNeutralStroke1: var(--colorNeutralStroke1, #d1d1d1);--webchat-colorNeutralStroke2: var(--colorNeutralStroke2, #e0e0e0);--webchat-colorNeutralStroke1Selected: var(--colorNeutralStroke1Selected, #bdbdbd);--webchat-colorStrokeFocus2: var(--colorStrokeFocus2, #000000);--webchat-colorBrandStroke2: var(--colorBrandStroke2, #9edcf7);--webchat-colorBrandForeground2Hover: var(--colorBrandForeground2Hover, #015a7a);--webchat-colorBrandForeground2Pressed: var(--colorBrandForeground2Pressed, #01384d);--webchat-colorBrandForegroundLink: var(--colorBrandForegroundLink, #01678c);--webchat-colorBrandForegroundLinkHover: var(--colorBrandForegroundLinkHover, #015a7a);--webchat-colorBrandForegroundLinkPressed: var(--colorBrandForegroundLinkPressed, #014259);--webchat-colorBrandForegroundLinkSelected: var(--colorBrandForegroundLinkSelected, #01678c);--webchat-colorBrandBackground2Hover: var(--colorBrandBackground2Hover, #bee7fa);--webchat-colorBrandBackground2Pressed: var(--colorBrandBackground2Pressed, #7fd2f5);--webchat-colorCompoundBrandForeground1Hover: var(--colorCompoundBrandForeground1Hover, #02729c);--webchat-colorStatusDangerForeground1: var(--colorStatusDangerForeground1, #b10e1c);--webchat-colorGray30: var(--colorGray30, #edebe9);--webchat-colorGray160: var(--colorGray160, #323130);--webchat-colorGray190: var(--colorGray190, #201f1e);--webchat-colorGray200: var(--colorGray200, #1b1a19);--webchat-borderRadiusSmall: var(--borderRadiusSmall, 2px);--webchat-borderRadiusLarge: var(--borderRadiusLarge, 6px);--webchat-borderRadiusXLarge: var(--borderRadiusXLarge, 8px);--webchat-shadow16: var(--shadow16, 0 6.4px 14.4px 0 rgba(0, 0, 0, .132), 0 1.2px 3.6px 0 rgba(0, 0, 0, .108));--webchat-spacingHorizontalMNudge: var(--spacingHorizontalMNudge, 10px);--webchat-fontFamilyBase: var(--fontFamilyBase, \"Segoe UI\", \"Segoe UI Web (West European)\", -apple-system, BlinkMacSystemFont, Roboto, \"Helvetica Neue\", sans-serif);--webchat-fontFamilyNumeric: var(--fontFamilyNumeric, Bahnschrift, \"Segoe UI\", \"Segoe UI Web (West European)\", -apple-system, BlinkMacSystemFont, Roboto, \"Helvetica Neue\", sans-serif);--webchat-fontWeightSemibold: var(--fontWeightSemibold, 600);--webchat-strokeWidthThicker: var(--strokeWidthThicker, 3px);--webchat-durationUltraFast: var(--durationUltraFast, 0);--webchat-durationNormal: var(--durationNormal, .2s);--webchat-curveAccelerateMid: var(--curveAccelerateMid, cubic-bezier(1,0,1,1));--webchat-curveDecelerateMid: var(--curveDecelerateMid, cubic-bezier(0,0,0,1))}@media (prefers-reduced-motion){.webchat-fluent.a{--webchat-durationUltraFast: .01ms;--webchat-durationNormal: .01ms}}.webchat-fluent .b{background-color:var(--webchat-colorNeutralBackground4);border-radius:inherit;cursor:copy;display:grid;gap:8px;inset:0;place-content:center;place-items:center;position:absolute}.webchat-fluent .u{background-color:#e00;color:#fff}.webchat-fluent .h{height:36px;pointer-events:none;width:36px}.webchat-fluent .s{align-items:center;background:transparent;border-radius:8px;border:1px solid var(--webchat-colorBrandStroke2);color:currentColor;cursor:pointer;display:flex;font-size:12px;gap:4px;padding:4px 8px;text-align:start;transition:all .15s ease-out}@media (hover: hover){.webchat-fluent .s:not([aria-disabled=true]):hover{background-color:var(--webchat-colorBrandBackground2Hover);color:var(--webchat-colorBrandForeground2Hover)}}.webchat-fluent .s:not([aria-disabled=true]):active{background-color:var(--webchat-colorBrandBackground2Pressed);color:var(--webchat-colorBrandForeground2Pressed)}.webchat-fluent .s[aria-disabled=true]{color:var(--webchat-colorNeutralForegroundDisabled);cursor:not-allowed}.webchat-fluent .g{font-size:12px;height:1em;width:1em}.webchat-fluent .p{align-items:flex-end;align-self:flex-end;display:flex;flex-direction:column;gap:8px}.webchat-fluent .p:not(:empty){padding-block-end:8px;padding-inline-start:4px}.webchat-fluent .p.w{flex-direction:row;flex-wrap:wrap;justify-content:flex-end}.webchat-fluent .p.v{flex-direction:column}.webchat-fluent .f{display:flex;gap:4px;margin-inline-start:auto}.webchat-fluent .x{align-items:center;-webkit-appearance:none;appearance:none;aspect-ratio:1;background:transparent;border-radius:var(--webchat-borderRadiusSmall);border:none;color:currentColor;cursor:pointer;display:flex;justify-content:center;padding:3px;width:32px}.webchat-fluent .x>svg{font-size:20px;pointer-events:none}.webchat-fluent .x.k{color:var(--webchat-colorNeutralForeground2BrandSelected)}@media (hover: hover){.webchat-fluent .x:not([aria-disabled=true]):hover{color:var(--webchat-colorNeutralForeground2BrandHover)}}.webchat-fluent .x:not([aria-disabled=true]):active{color:var(--webchat-colorNeutralForeground2BrandPressed)}.webchat-fluent .x[aria-disabled=true]{color:var(--webchat-colorNeutralForegroundDisabled);cursor:not-allowed}.webchat-fluent .m{align-self:center;border-inline-end:1px solid var(--webchat-colorNeutralStroke2);height:28px}.webchat-fluent .m:is(:first-child,:last-child,:only-child){display:none}.webchat-fluent .B{display:grid}.webchat-fluent .F{font-size:0;height:0;opacity:0;width:1px}.webchat-fluent .y{border-radius:var(--webchat-borderRadiusLarge);border:1px solid var(--webchat-colorNeutralStroke1);cursor:default;padding:6px 8px;width:fit-content}.webchat-fluent .N{color:transparent;font-size:0;height:0;left:0;position:absolute;top:0;width:0}.webchat-fluent .S{display:grid;grid-template-areas:\"main\";max-height:200px;overflow:hidden}.webchat-fluent .z{height:0;visibility:collapse}.webchat-fluent .L{border:none;font:inherit;grid-area:main;outline:inherit;overflow-wrap:anywhere;resize:inherit;scrollbar-gutter:stable}.webchat-fluent .H{overflow:hidden;visibility:hidden;white-space:pre-wrap}.webchat-fluent .W{background-color:inherit;color:currentColor;height:100%;padding:0}.webchat-fluent .P{scrollbar-color:unset;scrollbar-width:unset;-moz-scrollbar-color:var(--webchat-colorNeutralBackground5) var(--webchat-colorNeutralForeground2);-moz-scrollbar-width:thin}.webchat-fluent .P::-webkit-scrollbar{width:8px}.webchat-fluent .P::-webkit-scrollbar-track{background-color:var(--webchat-colorNeutralBackground5);border-radius:16px}.webchat-fluent .P::-webkit-scrollbar-thumb{background-color:var(--webchat-colorNeutralForeground2);border-radius:16px}.webchat-fluent .P::-webkit-scrollbar-corner{background-color:var(--webchat-colorNeutralBackground5)}.webchat-fluent .R{color:var(--webchat-colorNeutralForeground1);font-family:var(--webchat-fontFamilyBase);padding:0 10px 10px;text-rendering:optimizeLegibility;--webchat-sendbox-attachment-area-active: ;--webchat-sendbox-border-radius: var(--webchat-borderRadiusLarge)}.webchat-fluent .G{background-color:var(--webchat-colorNeutralBackground1);border-radius:var(--webchat-sendbox-border-radius);border:1px solid var(--webchat-colorNeutralStroke1);display:grid;font-family:var(--webchat-fontFamilyBase);font-size:14px;gap:6px;grid-template:[telephone-keypad-start] \"text-area\" [telephone-keypad-end] var(--webchat-sendbox-attachment-area-active) \"controls\" / [telephone-keypad] 1fr;line-height:20px;padding:8px;position:relative}.webchat-fluent .G:has(.t){--webchat-sendbox-attachment-area-active: \"attachment\" }.webchat-fluent .G:focus-within{border-color:var(--webchat-colorNeutralStroke1Selected)}.webchat-fluent .G:after{border-bottom-left-radius:var(--webchat-sendbox-border-radius);border-bottom-right-radius:var(--webchat-sendbox-border-radius);border-bottom:var(--webchat-strokeWidthThicker) solid var(--webchat-colorCompoundBrandForeground1Hover);bottom:-1px;clip-path:inset(calc(100% - var(--webchat-strokeWidthThicker)) 50% 0 50%);content:\"\";height:var(--webchat-sendbox-border-radius);left:-1px;position:absolute;right:-1px;transition:clip-path var(--webchat-durationUltraFast) var(--webchat-curveAccelerateMid)}.webchat-fluent .G:focus-within:after{clip-path:inset(calc(100% - var(--webchat-strokeWidthThicker)) 0 0 0);transition:clip-path var(--webchat-durationNormal) var(--webchat-curveDecelerateMid)}.webchat-fluent .G>.D{grid-area:text-area}.webchat-fluent .G>.t{grid-area:attachment}.webchat-fluent .G>.M{grid-area:controls}.webchat-fluent .G>.U{grid-area:telephone-keypad}.webchat-fluent .C{background-color:transparent;border:none;flex:auto;font-family:var(--webchat-fontFamilyBase);font-size:14px;line-height:20px;outline:none;padding:4px 4px 0;resize:none}.webchat-fluent .j{align-items:center;display:flex;padding-inline-start:4px}.webchat-fluent .T{color:var(--webchat-colorNeutralForeground4);cursor:default;font-family:var(--webchat-fontFamilyNumeric);font-size:10px;line-height:14px;margin-inline-end:4px}.webchat-fluent .I{color:var(--webchat-colorStatusDangerForeground1)}\n/*! For license information please see botframework-webchat-fluent-theme.development.css.LEGAL.txt */\n";function Fe(){if(globalThis.document){let e=document.createElement("style");e.append(document.createTextNode(yl)),document.head.appendChild(e)}}var Cn=l(f());function xl(e){return(0,Cn.useMemo)(()=>Object.freeze(Object.fromEntries(Object.entries(e).map(([r,t])=>[r,`${r} ${t}`]))),[e])}var v=xl;var On=(0,P.memo)((0,P.forwardRef)(({button:e,"data-testid":r,onClick:t,ruby:o},n)=>{let i=v(Fn),d=S(t),s=(0,P.useCallback)(()=>d.current?.(),[d]);return P.default.createElement("button",{className:i["telephone-keypad__button"],"data-testid":r,onClick:s,ref:n,type:"button"},P.default.createElement("span",{className:i["telephone-keypad__button__text"]},e==="star"?"\u2217":e==="pound"?"#":e),!!o&&P.default.createElement("ruby",{className:i["telephone-keypad__button__ruby"]},o))}));On.displayName="TelephoneKeypad.Button";var E=On;var wl={sendBoxDropZone:"send box drop zone",sendBoxSendButton:"send box send button",sendBoxTextBox:"send box text area",sendBoxTelephoneKeypadButton1:"send box telephone keypad button 1",sendBoxTelephoneKeypadButton2:"send box telephone keypad button 2",sendBoxTelephoneKeypadButton3:"send box telephone keypad button 3",sendBoxTelephoneKeypadButton4:"send box telephone keypad button 4",sendBoxTelephoneKeypadButton5:"send box telephone keypad button 5",sendBoxTelephoneKeypadButton6:"send box telephone keypad button 6",sendBoxTelephoneKeypadButton7:"send box telephone keypad button 7",sendBoxTelephoneKeypadButton8:"send box telephone keypad button 8",sendBoxTelephoneKeypadButton9:"send box telephone keypad button 9",sendBoxTelephoneKeypadButton0:"send box telephone keypad button 0",sendBoxTelephoneKeypadButtonStar:"send box telephone keypad button star",sendBoxTelephoneKeypadButtonPound:"send box telephone keypad button pound",sendBoxTelephoneKeypadToolbarButton:"send box telephone keypad toolbar button",sendBoxUploadButton:"send box upload button"},y=wl;var Ce=l(f());function A(){let{setShown:e,shown:r}=(0,Ce.useContext)(ge);return(0,Ce.useMemo)(()=>Object.freeze([r,e]),[r,e])}var Fr={"telephone-keypad":"c","telephone-keypad__box":"n","telephone-keypad__info-message":"d","telephone-keypad__info-message-link":"i"};var ue=l(f());function Sl(e){return ue.default.createElement("svg",{"aria-hidden":"true",className:e.className,height:"1em",viewBox:"0 0 20 20",width:"1em",xmlns:"http://www.w3.org/2000/svg"},ue.default.createElement("path",{d:"M6 2a2 2 0 0 0-2 2v5.2c.32-.08.66-.15 1-.18V4a1 1 0 0 1 1-1h4v3.5c0 .83.67 1.5 1.5 1.5H15v8a1 1 0 0 1-1 1h-3.6c-.18.36-.4.7-.66 1H14a2 2 0 0 0 2-2V7.41c0-.4-.16-.78-.44-1.06l-3.91-3.91A1.5 1.5 0 0 0 10.59 2H6Zm8.8 5h-3.3a.5.5 0 0 1-.5-.5V3.2L14.8 7ZM10 14.5a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0Zm-4-2a.5.5 0 0 0-1 0V14H3.5a.5.5 0 0 0 0 1H5v1.5a.5.5 0 0 0 1 0V15h1.5a.5.5 0 0 0 0-1H6v-1.5Z",fill:"currentColor"}))}var Cr=(0,ue.memo)(Sl);var pe=l(f());function kl(e){return pe.default.createElement("svg",{"aria-hidden":"true",className:e.className,height:"1em",viewBox:"0 0 20 20",width:"1em",xmlns:"http://www.w3.org/2000/svg"},pe.default.createElement("path",{d:"m4.83 10.48 5.65-5.65a3 3 0 0 1 4.25 4.24L8 15.8a1.5 1.5 0 0 1-2.12-2.12l6-6.01a.5.5 0 1 0-.7-.71l-6 6.01a2.5 2.5 0 0 0 3.53 3.54l6.71-6.72a4 4 0 1 0-5.65-5.66L4.12 9.78a.5.5 0 0 0 .7.7Z",fill:"currentColor"}))}var Or=(0,pe.memo)(kl);var me=l(f());function _l(e){return me.default.createElement("svg",{"aria-hidden":"true",className:e.className,height:"1em",viewBox:"0 0 16 16",width:"1em",xmlns:"http://www.w3.org/2000/svg"},me.default.createElement("path",{d:"M8.5 7.5a.5.5 0 1 0-1 0v3a.5.5 0 0 0 1 0v-3Zm.25-2a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM8 1a7 7 0 1 0 0 14A7 7 0 0 0 8 1ZM2 8a6 6 0 1 1 12 0A6 6 0 0 1 2 8Z",fill:"currentColor"}))}var Ir=(0,me.memo)(_l);var fe=l(f());function Bl(e){return fe.default.createElement("svg",{"aria-hidden":"true",className:e.className,height:"1em",viewBox:"0 0 20 20",width:"1em",xmlns:"http://www.w3.org/2000/svg"},fe.default.createElement("path",{d:"M2.18 2.11a.5.5 0 0 1 .54-.06l15 7.5a.5.5 0 0 1 0 .9l-15 7.5a.5.5 0 0 1-.7-.58L3.98 10 2.02 2.63a.5.5 0 0 1 .16-.52Zm2.7 8.39-1.61 6.06L16.38 10 3.27 3.44 4.88 9.5h6.62a.5.5 0 1 1 0 1H4.88Z",fill:"currentColor"}))}var Mr=(0,fe.memo)(Bl);var be=l(f());function Nl(e){return be.default.createElement("svg",{"aria-hidden":"true",className:e.className,height:"1em",viewBox:"0 0 20 20",width:"1em",xmlns:"http://www.w3.org/2000/svg"},be.default.createElement("path",{d:"M6 5.25a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5Zm0 4a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5ZM7.25 12a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0ZM10 5.25a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5ZM11.25 8a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0ZM10 13.25a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5ZM11.25 16a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0ZM14 5.25a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5ZM15.25 8a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0ZM14 13.25a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5Z",fill:"currentColor"}))}var qr=(0,be.memo)(Nl);var{LocalizedString:El}=In.Components,qn=(0,p.memo)(({children:e,isHorizontal:r})=>{let t=v(Fr);return r?null:p.default.createElement("div",{className:t["telephone-keypad__box"]},e)});qn.displayName="TelephoneKeypad:Orientation";var Pn=(0,p.memo)(({autoFocus:e,className:r,onButtonClick:t,isHorizontal:o})=>{let n=S(e),i=v(Fr),d=(0,p.useRef)(null),s=S(t),[,h]=A(),x=(0,p.useCallback)(()=>s.current?.("1"),[s]),c=(0,p.useCallback)(()=>s.current?.("2"),[s]),u=(0,p.useCallback)(()=>s.current?.("3"),[s]),m=(0,p.useCallback)(()=>s.current?.("4"),[s]),g=(0,p.useCallback)(()=>s.current?.("5"),[s]),B=(0,p.useCallback)(()=>s.current?.("6"),[s]),_=(0,p.useCallback)(()=>s.current?.("7"),[s]),T=(0,p.useCallback)(()=>s.current?.("8"),[s]),k=(0,p.useCallback)(()=>s.current?.("9"),[s]),M=(0,p.useCallback)(()=>s.current?.("0"),[s]),V=(0,p.useCallback)(()=>s.current?.("star"),[s]),Y=(0,p.useCallback)(()=>s.current?.("pound"),[s]),Re=(0,p.useCallback)(De=>{De.key==="Escape"&&h(!1)},[h]);return(0,p.useEffect)(()=>{n.current&&d.current?.focus()},[n,d]),p.default.createElement("div",{className:(0,Mn.default)(i["telephone-keypad"],r),onKeyDown:Re},p.default.createElement(qn,{isHorizontal:o},p.default.createElement(E,{button:"1","data-testid":y.sendBoxTelephoneKeypadButton1,onClick:x,ref:d}),p.default.createElement(E,{button:"2","data-testid":y.sendBoxTelephoneKeypadButton2,onClick:c,ruby:"ABC"}),p.default.createElement(E,{button:"3","data-testid":y.sendBoxTelephoneKeypadButton3,onClick:u,ruby:"DEF"}),p.default.createElement(E,{button:"4","data-testid":y.sendBoxTelephoneKeypadButton4,onClick:m,ruby:"GHI"}),p.default.createElement(E,{button:"5","data-testid":y.sendBoxTelephoneKeypadButton5,onClick:g,ruby:"JKL"}),p.default.createElement(E,{button:"6","data-testid":y.sendBoxTelephoneKeypadButton6,onClick:B,ruby:"MNO"}),p.default.createElement(E,{button:"7","data-testid":y.sendBoxTelephoneKeypadButton7,onClick:_,ruby:"PQRS"}),p.default.createElement(E,{button:"8","data-testid":y.sendBoxTelephoneKeypadButton8,onClick:T,ruby:"TUV"}),p.default.createElement(E,{button:"9","data-testid":y.sendBoxTelephoneKeypadButton9,onClick:k,ruby:"WXYZ"}),p.default.createElement(E,{button:"star","data-testid":y.sendBoxTelephoneKeypadButtonStar,onClick:V}),p.default.createElement(E,{button:"0","data-testid":y.sendBoxTelephoneKeypadButton0,onClick:M,ruby:"+"}),p.default.createElement(E,{button:"pound","data-testid":y.sendBoxTelephoneKeypadButtonPound,onClick:Y})),p.default.createElement("div",{className:i["telephone-keypad__info-message"]},p.default.createElement(Ir,null),p.default.createElement(El,{linkClassName:i["telephone-keypad__info-message-link"],stringIds:"TELEPHONE_KEYPAD_INPUT_MESSAGE"})))});Pn.displayName="TelephoneKeypad";var An=Pn;var Ln=(0,Oe.memo)(e=>A()[0]?Oe.default.createElement(An,{...e}):null);Ln.displayName="TelephoneKeypad.Surrogate";var Pr=Ln;var Dn=l(f()),Hn=l(q());var Rn={theme:"a"};var Cl="webchat-fluent";function Ie(e){let r=v(Rn);return Dn.default.createElement("div",{className:(0,Hn.default)(Cl,r.theme)},e.children)}var wa=l(O()),re=l(q()),b=l(f());var zn=l(O()),Un=l(q()),F=l(f());var jn={"sendbox__attachment-drop-zone":"b","sendbox__attachment-drop-zone--droppable":"u","sendbox__attachment-drop-zone-icon":"h"};var{useLocalizer:Il}=zn.hooks,Ml=e=>{e.preventDefault()},Kn=e=>!!e.dataTransfer?.types?.some(r=>r.toLowerCase()==="files");function ql(e,r){let t=e.parentNode;for(;t;){if(t===r)return!0;t=t.parentNode}return!1}var Wn=e=>{let[r,t]=(0,F.useState)(!1),o=v(jn),n=(0,F.useRef)(null),i=Il(),d=S(e.onFilesAdded);(0,F.useEffect)(()=>{let h=0,x=u=>{h++,Kn(u)&&t(n.current&&(u.target===n.current||u.target instanceof HTMLElement&&ql(u.target,n.current))?"droppable":"visible")},c=()=>--h<=0&&t(!1);return document.addEventListener("dragenter",x,!1),document.addEventListener("dragleave",c,!1),()=>{document.removeEventListener("dragenter",x),document.removeEventListener("dragleave",c)}},[t]);let s=(0,F.useCallback)(h=>{h.preventDefault(),t(!1),Kn(h.nativeEvent)&&d.current([...h.dataTransfer.files])},[d,t]);return r?F.default.createElement("div",{className:(0,Un.default)(o["sendbox__attachment-drop-zone"],{[o["sendbox__attachment-drop-zone--droppable"]]:r==="droppable"}),"data-testid":y.sendBoxDropZone,onDragOver:Ml,onDrop:s,ref:n},F.default.createElement(Cr,{className:o["sendbox__attachment-drop-zone-icon"]}),i("TEXT_INPUT_DROP_ZONE")):null};Wn.displayName="DropZone";var Ar=(0,F.memo)(Wn);var ea=l(O()),ra=l(q()),L=l(f());var Yn=l(O()),Jn=l(q()),W=l(f());var Zn={"suggested-action":"s","suggested-action__image":"g"};var U=l(f()),Al=e=>e.preventDefault(),Ll=(0,U.forwardRef)(({"aria-hidden":e,children:r,disabled:t,onClick:o,tabIndex:n,...i},d)=>{let s=(0,U.useRef)(null);return U.default.createElement("button",{"aria-disabled":t?"true":"false","aria-hidden":e,onClick:t?Al:o,ref:d||s,tabIndex:n,...t&&{"aria-disabled":"true",tabIndex:-1},...i,type:"button"},r)}),$n=(0,U.memo)(Ll);var w=l(f()),Vn=(0,w.createContext)({itemEffector:()=>{throw new Error("botframework-webchat-fluent-theme rovingFocus: no provider for RovingFocusContext.")}});function Rl(e){let r=(0,w.useRef)(0),t=(0,w.useRef)([]),o=(0,w.useCallback)(({current:c},u)=>c&&(c.tabIndex=r.current===u?0:-1),[r]),n=(0,w.useCallback)(c=>{let u;typeof c=="number"?u=c:u=c(r.current),u&&!t.current.at(u)?.current&&(u=0),r.current!==u&&(r.current=u,t.current.forEach((m,g)=>o(m,g)),t.current.at(u)?.current?.focus())},[o,t,r]),i=(0,w.useCallback)(c=>{let{target:u}=c,m=t.current.findIndex(({current:g})=>g===u);m!==-1&&n(m)},[t,n]),d=(0,w.useCallback)(c=>u=>{let m=!e.direction,g=/up|down/iu.test(c)&&e.direction==="vertical",B=/left|right/iu.test(c)&&e.direction==="horizontal",_=/right|down/iu.test(c),T=m||g||B?_?1:-1:0,k=t.current.map((V,Y)=>Y),M=k.indexOf(u)+T;return k.at(M)??0},[e.direction]),s=(0,w.useCallback)(c=>{let{key:u}=c;switch(u){case"Up":case"ArrowUp":case"Left":case"ArrowLeft":case"Down":case"ArrowDown":case"Right":case"ArrowRight":n(d(u));break;case"Home":n(0);break;case"End":n(-1);break;case"Escape":e.onEscapeKey?.();break;default:return}c.preventDefault(),c.stopPropagation()},[n,d,e]),h=(0,w.useCallback)((c,u)=>{let{current:m}=c;return t.current[Number(u)]=c,m.addEventListener("focus",i),m.addEventListener("keydown",s),o(c,u),()=>{m.removeEventListener("focus",i),m.removeEventListener("keydown",s),delete t.current[Number(u)]}},[i,s,o,t]),x=(0,w.useMemo)(()=>({itemEffector:h}),[h]);return w.default.createElement(Vn.Provider,{value:x},e.children)}function Gn(e){let r=(0,w.useRef)(null),{itemEffector:t}=(0,w.useContext)(Vn);return(0,w.useEffect)(()=>t(r,e)),r}var Xn=(0,w.memo)(Rl);var{useDisabled:Dl,useFocus:Hl,usePerformCardAction:jl,useScrollToEnd:Kl,useStyleSet:zl,useSuggestedActions:Ul}=Yn.hooks;function Wl({buttonText:e,className:r,displayText:t,image:o,imageAlt:n,itemIndex:i,text:d,type:s,value:h}){let[x,c]=Ul(),[{suggestedAction:u}]=zl(),[m]=Dl(),g=Hl(),B=Gn(i),_=jl(),T=v(Zn),k=Kl(),M=(0,W.useCallback)(({target:V})=>{(async function(){await g("sendBoxWithoutKeyboard"),_({displayText:t,text:d,type:s,value:h},{target:V}),s==="openUrl"&&c([]),k()})()},[t,g,_,k,c,d,s,h]);return W.default.createElement($n,{className:(0,Jn.default)(T["suggested-action"],u+"",(r||"")+""),disabled:m,onClick:M,ref:B,type:"button"},o&&W.default.createElement("img",{alt:n,className:T["suggested-action__image"],src:o}),W.default.createElement("span",null,e))}var Qn=(0,W.memo)(Wl);function Lr(e){let{title:r}=e,{type:t,value:o}=e;return t==="messageBack"?r||e.displayText:r||(typeof o=="string"?o:JSON.stringify(o))}var Rr={"suggested-actions":"p","suggested-actions--flow":"w","suggested-actions--stacked":"v"};var{useFocus:$l,useLocalizer:Vl,useStyleOptions:Gl,useStyleSet:Xl,useSuggestedActions:Yl}=ea.hooks;function Jl(e){let[{suggestedActionLayout:r}]=Gl(),[{suggestedActions:t}]=Xl(),o=v(Rr);return L.default.createElement("div",{"aria-label":e["aria-label"],"aria-live":"polite","aria-orientation":"vertical",className:(0,ra.default)(o["suggested-actions"],t+"",{[o["suggested-actions--flow"]]:r==="flow",[o["suggested-actions--stacked"]]:r!=="flow"},e.className),role:"toolbar"},!!e.children&&!!L.default.Children.count(e.children)&&e.children)}function Ql(){let e=v(Rr),r=Vl(),[t]=Yl(),o=$l(),n=(0,L.useCallback)(()=>{o("sendBox")},[o]),i=t.map((d,s)=>{let{displayText:h,image:x,imageAltText:c,text:u,type:m,value:g}=d;return t?.length?L.default.createElement(Qn,{buttonText:Lr(d),displayText:h,image:x,imageAlt:x&&(c||u),itemIndex:s,key:s,text:u,type:m,value:g}):null});return L.default.createElement(Xn,{onEscapeKey:n},L.default.createElement(Jl,{"aria-label":r("SUGGESTED_ACTIONS_LABEL_ALT"),className:e["suggested-actions"]},i))}var Dr=(0,L.memo)(Ql);var oa=l(O()),C=l(f());var qe=l(q()),Z=l(f());var Me={sendbox__toolbar:"f","sendbox__toolbar-button":"x","sendbox__toolbar-button--selected":"k","sendbox__toolbar-separator":"m"};var rd=e=>e.preventDefault(),G=(0,Z.memo)(e=>{let r=v(Me);return Z.default.createElement("button",{"aria-label":e["aria-label"],className:(0,qe.default)(r["sendbox__toolbar-button"],e.className,{[r["sendbox__toolbar-button--selected"]]:e.selected}),"data-testid":e["data-testid"],onClick:e.disabled?rd:e.onClick,type:e.type==="submit"?"submit":"button",...e.disabled&&{"aria-disabled":"true",tabIndex:-1}},e.children)});G.displayName="ToolbarButton";var Hr=(0,Z.memo)(e=>{let r=v(Me);return Z.default.createElement("div",{className:(0,qe.default)(r.sendbox__toolbar,e.className)},e.children)});Hr.displayName="Toolbar";var jr=(0,Z.memo)(e=>{let r=v(Me);return Z.default.createElement("div",{"aria-orientation":"vertical",className:(0,qe.default)(r["sendbox__toolbar-separator"],e.className),role:"separator"})});jr.displayName="ToolbarSeparator";var ta={"sendbox__add-attachment":"B","sendbox__add-attachment-input":"F"};var{useLocalizer:od,useStyleOptions:nd}=oa.hooks;function ad(e){let r=(0,C.useRef)(null),t=v(ta),o=od(),[{uploadAccept:n,uploadMultiple:i}]=nd(),d=S(e.onFilesAdded),s=(0,C.useCallback)(()=>r.current?.click(),[r]),h=(0,C.useCallback)(({target:{files:x}})=>{x&&(d.current?.([...x]),r.current&&(r.current.value=""))},[r,d]);return C.default.createElement("div",{className:t["sendbox__add-attachment"]},C.default.createElement("input",{accept:n,"aria-disabled":e.disabled,"aria-hidden":"true",className:t["sendbox__add-attachment-input"],multiple:i,onInput:e.disabled?void 0:h,readOnly:e.disabled,ref:r,role:"button",tabIndex:-1,type:"file"}),C.default.createElement(G,{"aria-label":o("TEXT_INPUT_UPLOAD_BUTTON_ALT"),"data-testid":y.sendBoxUploadButton,onClick:s},C.default.createElement(Or,null)))}var na=(0,C.memo)(ad);var ia=l(O()),Pe=l(f()),sa=l(q());var aa={sendbox__attachment:"y"};var{useLocalizer:sd}=ia.hooks,ld={one:"TEXT_INPUT_ATTACHMENTS_ONE",two:"TEXT_INPUT_ATTACHMENTS_TWO",few:"TEXT_INPUT_ATTACHMENTS_FEW",many:"TEXT_INPUT_ATTACHMENTS_MANY",other:"TEXT_INPUT_ATTACHMENTS_OTHER"};function dd({attachments:e,className:r}){let t=v(aa),o=sd({plural:!0});return e.length?Pe.default.createElement("div",{className:(0,sa.default)(t.sendbox__attachment,r)},o(ld,e.length)):null}var la=(0,Pe.memo)(dd);var Ae=l(f());var da={"sendbox__error-message":"N"};function ud(e){let r=v(da);return Ae.default.createElement("span",{className:r["sendbox__error-message"],id:e.id,role:"alert"},e.error)}var ca=(0,Ae.memo)(ud);var X=l(f()),ua=l(O());var{useLocalizer:pd}=ua.hooks,pa=(0,X.memo)(()=>{let[e,r]=A(),t=pd(),o=(0,X.useCallback)(()=>r(n=>!n),[r]);return X.default.createElement(G,{"aria-label":t("TEXT_INPUT_TELEPHONE_KEYPAD_BUTTON_ALT"),"data-testid":y.sendBoxTelephoneKeypadToolbarButton,onClick:o,selected:e},X.default.createElement(qr,null))});pa.displayName="SendBox.TelephoneKeypadToolbarButton";var ma=pa;var Le=l(q()),$=l(f());var fa={"sendbox__text-area":"S","sendbox__text-area--hidden":"z","sendbox__text-area-shared":"L","sendbox__text-area-doppelganger":"H","sendbox__text-area-input":"W","sendbox__text-area-input--scroll":"P"};var ba=(0,$.forwardRef)((e,r)=>{let t=v(fa),o=(0,$.useCallback)(n=>{!n.shiftKey&&n.key==="Enter"&&(n.preventDefault(),"form"in n.target&&n.target.form instanceof HTMLFormElement&&n.target?.form?.requestSubmit())},[]);return $.default.createElement("div",{className:(0,Le.default)(t["sendbox__text-area"],{[t["sendbox__text-area--hidden"]]:e.hidden},e.className),role:e.hidden?"hidden":void 0},$.default.createElement("div",{className:(0,Le.default)(t["sendbox__text-area-doppelganger"],t["sendbox__text-area-shared"],t["sendbox__text-area-input--scroll"])},e.value||e.placeholder," "),$.default.createElement("textarea",{"aria-label":e["aria-label"],className:(0,Le.default)(t["sendbox__text-area-input"],t["sendbox__text-area-shared"],t["sendbox__text-area-input--scroll"]),"data-testid":e["data-testid"],onInput:e.onInput,onKeyDown:o,placeholder:e.placeholder,ref:r,rows:e.startRows??1,tabIndex:e.hidden?-1:void 0,value:e.value}))});ba.displayName="TextArea";var ha=ba;var va=l(O()),Kr=l(f());var{useConnectivityStatus:fd,useLocalizer:bd}=va.hooks,hd=({attachments:e,message:r})=>{let[t]=fd(),o=bd(),n=S(t!=="connected"&&t!=="reconnected"?"offline":!r&&!e.length?"empty":void 0),i=(0,Kr.useMemo)(()=>Object.freeze(new Map().set("empty",o("SEND_BOX_IS_EMPTY_TOOLTIP_ALT")).set("offline",o("CONNECTIVITY_STATUS_ALT_FATAL"))),[o]);return(0,Kr.useMemo)(()=>Object.freeze([n,n.current&&i.get(n.current)]),[i,n])},ga=hd;var ya=l(f());function zr(e){let r=(0,ya.useMemo)(()=>Math.random().toString(36).substr(2,5),[]);return e=e?`${e}--`:"",`${e}${r}`}var xa={sendbox:"R",sendbox__sendbox:"G","sendbox__attachment--in-grid":"t","sendbox__text-area--in-grid":"D","sendbox__sendbox-controls--in-grid":"M","sendbox__telephone-keypad--in-grid":"U","sendbox__sendbox-text":"C","sendbox__sendbox-controls":"j","sendbox__text-counter":"T","sendbox__text-counter--error":"I"};var{useFocus:gd,useLocalizer:yd,useMakeThumbnail:xd,useRegisterFocusSendBox:wd,useSendBoxAttachments:Td,useSendMessage:Sd,useStyleOptions:kd}=wa.hooks;function _d(e){let r=(0,b.useRef)(null),[t,o]=(0,b.useState)(""),[n,i]=Td(),[{hideTelephoneKeypadButton:d,hideUploadButton:s,maxMessageLength:h}]=kd(),x=!!h&&t.length>h,c=v(xa),u=yd(),m=Sd(),g=xd(),B=zr("sendbox__error-message-id"),[_,T]=ga({message:t,attachments:n}),[k]=A(),M=gd();wd((0,b.useCallback)(({noKeyboard:N,waitUntil:He})=>{r.current&&(N?He((async()=>{let oe=r.current?.getAttribute("readonly");r.current?.setAttribute("readonly","true"),await new Promise(he=>setTimeout(he,0)),r.current?.focus(),typeof oe!="string"?r.current?.removeAttribute("readonly"):r.current?.setAttribute("readonly",oe)})()):r.current?.focus())},[r]));let V=S(n),Y=S(t),Re=(0,b.useCallback)(N=>{"tabIndex"in N.target&&typeof N.target.tabIndex=="number"&&N.target.tabIndex>=0||M("sendBox")},[M]),De=(0,b.useCallback)(N=>o(N.currentTarget.value),[o]),Zr=(0,b.useCallback)(async N=>{let He=Object.freeze(await Promise.all(N.map(oe=>g(oe).then(he=>Object.freeze({blob:oe,...he&&{thumbnailURL:he}})))));i(He)},[g,i]),Sa=(0,b.useCallback)(N=>{N.preventDefault(),_.current!=="empty"&&!x&&(m(Y.current,void 0,{attachments:V.current}),o(""),i([])),M("sendBox")},[V,Y,m,i,o,x,_,M]),ka=(0,b.useCallback)(N=>m(`/DTMF ${N}`),[m]),_a={"aria-invalid":"false",...T&&{"aria-invalid":"true","aria-errormessage":B}};return b.default.createElement("form",{..._a,className:(0,re.default)(c.sendbox,e.className),onSubmit:Sa},b.default.createElement(Dr,null),b.default.createElement("div",{className:(0,re.default)(c.sendbox__sendbox),onClickCapture:Re},b.default.createElement(ha,{"aria-label":u(x?"TEXT_INPUT_LENGTH_EXCEEDED_ALT":"TEXT_INPUT_ALT"),className:(0,re.default)(c["sendbox__sendbox-text"],c["sendbox__text-area--in-grid"]),"data-testid":y.sendBoxTextBox,hidden:k,onInput:De,placeholder:e.placeholder??u("TEXT_INPUT_PLACEHOLDER"),ref:r,value:t}),b.default.createElement(Pr,{autoFocus:!0,className:c["sendbox__telephone-keypad--in-grid"],isHorizontal:!1,onButtonClick:ka}),b.default.createElement(la,{attachments:n,className:c["sendbox__attachment--in-grid"]}),b.default.createElement("div",{className:(0,re.default)(c["sendbox__sendbox-controls"],c["sendbox__sendbox-controls--in-grid"])},!k&&h&&b.default.createElement("div",{className:(0,re.default)(c["sendbox__text-counter"],{[c["sendbox__text-counter--error"]]:x})},`${t.length}/${h}`),b.default.createElement(Hr,null,!d&&b.default.createElement(ma,null),!s&&b.default.createElement(na,{onFilesAdded:Zr}),b.default.createElement(jr,null),b.default.createElement(G,{"aria-label":u("TEXT_INPUT_SEND_BUTTON_ALT"),"data-testid":y.sendBoxSendButton,disabled:x||k,type:"submit"},b.default.createElement(Mr,null)))),b.default.createElement(Ar,{onFilesAdded:Zr}),b.default.createElement(ca,{error:T,id:B})))}var Ur=(0,b.memo)(_d);var{ThemeProvider:Bd}=Ta.Components,Nd=[()=>()=>()=>Ur],Ed=({children:e})=>te.default.createElement(Ie,null,te.default.createElement(je,null,te.default.createElement(Bd,{sendBoxMiddleware:Nd},e))),Wr=(0,te.memo)(Ed);ve("botframework-webchat:fluent-theme","version=4.17.1-main.20240508.bf8dbd9; build-tool=tsup; module-format=esmodules");Fe();globalThis.WebChat={...globalThis.WebChat,FluentThemeProvider:Wr,testIds:{...globalThis.WebChat?.testIds,...y}};})();
1
+ "use strict";(()=>{var Ba=Object.create;var $r=Object.defineProperty;var Na=Object.getOwnPropertyDescriptor;var Ea=Object.getOwnPropertyNames;var Fa=Object.getPrototypeOf,Ca=Object.prototype.hasOwnProperty;var a=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var Oa=(e,r,t,o)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of Ea(r))!Ca.call(e,n)&&n!==t&&$r(e,n,{get:()=>r[n],enumerable:!(o=Na(r,n))||o.enumerable});return e};var l=(e,r,t)=>(t=e!=null?Ba(Fa(e)):{},Oa(r||!e||!e.__esModule?$r(t,"default",{value:e,enumerable:!0}):t,e));var O=a((qd,Vr)=>{Vr.exports={Components:globalThis.WebChat.Components,hooks:globalThis.WebChat.hooks}});var f=a((Pd,Gr)=>{Gr.exports=globalThis.React});var q=a((Dd,ye)=>{(function(){"use strict";var e={}.hasOwnProperty;function r(){for(var n="",i=0;i<arguments.length;i++){var d=arguments[i];d&&(n=o(n,t(d)))}return n}function t(n){if(typeof n=="string"||typeof n=="number")return n;if(typeof n!="object")return"";if(Array.isArray(n))return r.apply(null,n);if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]"))return n.toString();var i="";for(var d in n)e.call(n,d)&&n[d]&&(i=o(i,d));return i}function o(n,i){return i?n?n+" "+i:n+i:n}typeof ye<"u"&&ye.exports?(r.default=r,ye.exports=r):typeof define=="function"&&typeof define.amd=="object"&&define.amd?define("classnames",[],function(){return r}):window.classNames=r})()});var R=a((Ke,Jr)=>{"use strict";var ne=function(e){return e&&e.Math===Math&&e};Jr.exports=ne(typeof globalThis=="object"&&globalThis)||ne(typeof window=="object"&&window)||ne(typeof self=="object"&&self)||ne(typeof global=="object"&&global)||ne(typeof Ke=="object"&&Ke)||function(){return this}()||Function("return this")()});var H=a((Hd,Qr)=>{"use strict";Qr.exports=function(e){try{return!!e()}catch{return!0}}});var ae=a((jd,et)=>{"use strict";var Ma=H();et.exports=!Ma(function(){var e=(function(){}).bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var at=a((Kd,nt)=>{"use strict";var qa=ae(),ot=Function.prototype,rt=ot.apply,tt=ot.call;nt.exports=typeof Reflect=="object"&&Reflect.apply||(qa?tt.bind(rt):function(){return tt.apply(rt,arguments)})});var j=a((zd,lt)=>{"use strict";var it=ae(),st=Function.prototype,ze=st.call,Pa=it&&st.bind.bind(ze,ze);lt.exports=it?Pa:function(e){return function(){return ze.apply(e,arguments)}}});var Ue=a((Ud,ct)=>{"use strict";var dt=j(),Aa=dt({}.toString),La=dt("".slice);ct.exports=function(e){return La(Aa(e),8,-1)}});var We=a((Wd,ut)=>{"use strict";var Ra=Ue(),Da=j();ut.exports=function(e){if(Ra(e)==="Function")return Da(e)}});var K=a((Zd,pt)=>{"use strict";var Ze=typeof document=="object"&&document.all;pt.exports=typeof Ze>"u"&&Ze!==void 0?function(e){return typeof e=="function"||e===Ze}:function(e){return typeof e=="function"}});var z=a(($d,mt)=>{"use strict";var Ha=H();mt.exports=!Ha(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var we=a((Vd,ft)=>{"use strict";var ja=ae(),xe=Function.prototype.call;ft.exports=ja?xe.bind(xe):function(){return xe.apply(xe,arguments)}});var gt=a(vt=>{"use strict";var bt={}.propertyIsEnumerable,ht=Object.getOwnPropertyDescriptor,Ka=ht&&!bt.call({1:2},1);vt.f=Ka?function(r){var t=ht(this,r);return!!t&&t.enumerable}:bt});var $e=a((Xd,yt)=>{"use strict";yt.exports=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}}});var wt=a((Yd,xt)=>{"use strict";var za=j(),Ua=H(),Wa=Ue(),Ve=Object,Za=za("".split);xt.exports=Ua(function(){return!Ve("z").propertyIsEnumerable(0)})?function(e){return Wa(e)==="String"?Za(e,""):Ve(e)}:Ve});var Ge=a((Jd,Tt)=>{"use strict";Tt.exports=function(e){return e==null}});var Xe=a((Qd,St)=>{"use strict";var $a=Ge(),Va=TypeError;St.exports=function(e){if($a(e))throw new Va("Can't call method on "+e);return e}});var ie=a((ec,kt)=>{"use strict";var Ga=wt(),Xa=Xe();kt.exports=function(e){return Ga(Xa(e))}});var se=a((rc,_t)=>{"use strict";var Ya=K();_t.exports=function(e){return typeof e=="object"?e!==null:Ya(e)}});var Te=a((tc,Bt)=>{"use strict";Bt.exports={}});var Qe=a((oc,Et)=>{"use strict";var Ye=Te(),Je=R(),Ja=K(),Nt=function(e){return Ja(e)?e:void 0};Et.exports=function(e,r){return arguments.length<2?Nt(Ye[e])||Nt(Je[e]):Ye[e]&&Ye[e][r]||Je[e]&&Je[e][r]}});var Ct=a((nc,Ft)=>{"use strict";var Qa=j();Ft.exports=Qa({}.isPrototypeOf)});var It=a((ac,Ot)=>{"use strict";Ot.exports=typeof navigator<"u"&&String(navigator.userAgent)||""});var Dt=a((ic,Rt)=>{"use strict";var Lt=R(),er=It(),Mt=Lt.process,qt=Lt.Deno,Pt=Mt&&Mt.versions||qt&&qt.version,At=Pt&&Pt.v8,I,Se;At&&(I=At.split("."),Se=I[0]>0&&I[0]<4?1:+(I[0]+I[1]));!Se&&er&&(I=er.match(/Edge\/(\d+)/),(!I||I[1]>=74)&&(I=er.match(/Chrome\/(\d+)/),I&&(Se=+I[1])));Rt.exports=Se});var rr=a((sc,jt)=>{"use strict";var Ht=Dt(),ei=H(),ri=R(),ti=ri.String;jt.exports=!!Object.getOwnPropertySymbols&&!ei(function(){var e=Symbol("symbol detection");return!ti(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Ht&&Ht<41})});var tr=a((lc,Kt)=>{"use strict";var oi=rr();Kt.exports=oi&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var or=a((dc,zt)=>{"use strict";var ni=Qe(),ai=K(),ii=Ct(),si=tr(),li=Object;zt.exports=si?function(e){return typeof e=="symbol"}:function(e){var r=ni("Symbol");return ai(r)&&ii(r.prototype,li(e))}});var Wt=a((cc,Ut)=>{"use strict";var di=String;Ut.exports=function(e){try{return di(e)}catch{return"Object"}}});var nr=a((uc,Zt)=>{"use strict";var ci=K(),ui=Wt(),pi=TypeError;Zt.exports=function(e){if(ci(e))return e;throw new pi(ui(e)+" is not a function")}});var Vt=a((pc,$t)=>{"use strict";var mi=nr(),fi=Ge();$t.exports=function(e,r){var t=e[r];return fi(t)?void 0:mi(t)}});var Xt=a((mc,Gt)=>{"use strict";var ar=we(),ir=K(),sr=se(),bi=TypeError;Gt.exports=function(e,r){var t,o;if(r==="string"&&ir(t=e.toString)&&!sr(o=ar(t,e))||ir(t=e.valueOf)&&!sr(o=ar(t,e))||r!=="string"&&ir(t=e.toString)&&!sr(o=ar(t,e)))return o;throw new bi("Can't convert object to primitive value")}});var Jt=a((fc,Yt)=>{"use strict";Yt.exports=!0});var ro=a((bc,eo)=>{"use strict";var Qt=R(),hi=Object.defineProperty;eo.exports=function(e,r){try{hi(Qt,e,{value:r,configurable:!0,writable:!0})}catch{Qt[e]=r}return r}});var lr=a((hc,no)=>{"use strict";var vi=Jt(),gi=R(),yi=ro(),to="__core-js_shared__",oo=no.exports=gi[to]||yi(to,{});(oo.versions||(oo.versions=[])).push({version:"3.36.1",mode:vi?"pure":"global",copyright:"\xA9 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.36.1/LICENSE",source:"https://github.com/zloirock/core-js"})});var dr=a((vc,io)=>{"use strict";var ao=lr();io.exports=function(e,r){return ao[e]||(ao[e]=r||{})}});var lo=a((gc,so)=>{"use strict";var xi=Xe(),wi=Object;so.exports=function(e){return wi(xi(e))}});var le=a((yc,co)=>{"use strict";var Ti=j(),Si=lo(),ki=Ti({}.hasOwnProperty);co.exports=Object.hasOwn||function(r,t){return ki(Si(r),t)}});var cr=a((xc,uo)=>{"use strict";var _i=j(),Bi=0,Ni=Math.random(),Ei=_i(1 .toString);uo.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Ei(++Bi+Ni,36)}});var fo=a((wc,mo)=>{"use strict";var Fi=R(),Ci=dr(),po=le(),Oi=cr(),Ii=rr(),Mi=tr(),J=Fi.Symbol,ur=Ci("wks"),qi=Mi?J.for||J:J&&J.withoutSetter||Oi;mo.exports=function(e){return po(ur,e)||(ur[e]=Ii&&po(J,e)?J[e]:qi("Symbol."+e)),ur[e]}});var go=a((Tc,vo)=>{"use strict";var Pi=we(),bo=se(),ho=or(),Ai=Vt(),Li=Xt(),Ri=fo(),Di=TypeError,Hi=Ri("toPrimitive");vo.exports=function(e,r){if(!bo(e)||ho(e))return e;var t=Ai(e,Hi),o;if(t){if(r===void 0&&(r="default"),o=Pi(t,e,r),!bo(o)||ho(o))return o;throw new Di("Can't convert object to primitive value")}return r===void 0&&(r="number"),Li(e,r)}});var pr=a((Sc,yo)=>{"use strict";var ji=go(),Ki=or();yo.exports=function(e){var r=ji(e,"string");return Ki(r)?r:r+""}});var fr=a((kc,wo)=>{"use strict";var zi=R(),xo=se(),mr=zi.document,Ui=xo(mr)&&xo(mr.createElement);wo.exports=function(e){return Ui?mr.createElement(e):{}}});var br=a((_c,To)=>{"use strict";var Wi=z(),Zi=H(),$i=fr();To.exports=!Wi&&!Zi(function(){return Object.defineProperty($i("div"),"a",{get:function(){return 7}}).a!==7})});var _o=a(ko=>{"use strict";var Vi=z(),Gi=we(),Xi=gt(),Yi=$e(),Ji=ie(),Qi=pr(),es=le(),rs=br(),So=Object.getOwnPropertyDescriptor;ko.f=Vi?So:function(r,t){if(r=Ji(r),t=Qi(t),rs)try{return So(r,t)}catch{}if(es(r,t))return Yi(!Gi(Xi.f,r,t),r[t])}});var No=a((Nc,Bo)=>{"use strict";var ts=H(),os=K(),ns=/#|\.prototype\./,de=function(e,r){var t=is[as(e)];return t===ls?!0:t===ss?!1:os(r)?ts(r):!!r},as=de.normalize=function(e){return String(e).replace(ns,".").toLowerCase()},is=de.data={},ss=de.NATIVE="N",ls=de.POLYFILL="P";Bo.exports=de});var Co=a((Ec,Fo)=>{"use strict";var Eo=We(),ds=nr(),cs=ae(),us=Eo(Eo.bind);Fo.exports=function(e,r){return ds(e),r===void 0?e:cs?us(e,r):function(){return e.apply(r,arguments)}}});var hr=a((Fc,Oo)=>{"use strict";var ps=z(),ms=H();Oo.exports=ps&&ms(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var ke=a((Cc,Io)=>{"use strict";var fs=se(),bs=String,hs=TypeError;Io.exports=function(e){if(fs(e))return e;throw new hs(bs(e)+" is not an object")}});var wr=a(qo=>{"use strict";var vs=z(),gs=br(),ys=hr(),_e=ke(),Mo=pr(),xs=TypeError,vr=Object.defineProperty,ws=Object.getOwnPropertyDescriptor,gr="enumerable",yr="configurable",xr="writable";qo.f=vs?ys?function(r,t,o){if(_e(r),t=Mo(t),_e(o),typeof r=="function"&&t==="prototype"&&"value"in o&&xr in o&&!o[xr]){var n=ws(r,t);n&&n[xr]&&(r[t]=o.value,o={configurable:yr in o?o[yr]:n[yr],enumerable:gr in o?o[gr]:n[gr],writable:!1})}return vr(r,t,o)}:vr:function(r,t,o){if(_e(r),t=Mo(t),_e(o),gs)try{return vr(r,t,o)}catch{}if("get"in o||"set"in o)throw new xs("Accessors not supported");return"value"in o&&(r[t]=o.value),r}});var Ao=a((Ic,Po)=>{"use strict";var Ts=z(),Ss=wr(),ks=$e();Po.exports=Ts?function(e,r,t){return Ss.f(e,r,ks(1,t))}:function(e,r,t){return e[r]=t,e}});var Do=a((Mc,Ro)=>{"use strict";var ce=R(),_s=at(),Bs=We(),Ns=K(),Es=_o().f,Fs=No(),Q=Te(),Cs=Co(),ee=Ao(),Lo=le();lr();var Os=function(e){var r=function(t,o,n){if(this instanceof r){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,o)}return new e(t,o,n)}return _s(e,this,arguments)};return r.prototype=e.prototype,r};Ro.exports=function(e,r){var t=e.target,o=e.global,n=e.stat,i=e.proto,d=o?ce:n?ce[t]:ce[t]&&ce[t].prototype,s=o?Q:Q[t]||ee(Q,t,{})[t],h=s.prototype,x,c,u,m,g,B,_,T,k;for(m in r)x=Fs(o?m:t+(n?".":"#")+m,e.forced),c=!x&&d&&Lo(d,m),B=s[m],c&&(e.dontCallGetSet?(k=Es(d,m),_=k&&k.value):_=d[m]),g=c&&_?_:r[m],!(!x&&!i&&typeof B==typeof g)&&(e.bind&&c?T=Cs(g,ce):e.wrap&&c?T=Os(g):i&&Ns(g)?T=Bs(g):T=g,(e.sham||g&&g.sham||B&&B.sham)&&ee(T,"sham",!0),ee(s,m,T),i&&(u=t+"Prototype",Lo(Q,u)||ee(Q,u,{}),ee(Q[u],m,g),e.real&&h&&(x||!h[m])&&ee(h,m,g)))}});var jo=a((qc,Ho)=>{"use strict";var Is=Math.ceil,Ms=Math.floor;Ho.exports=Math.trunc||function(r){var t=+r;return(t>0?Ms:Is)(t)}});var Tr=a((Pc,Ko)=>{"use strict";var qs=jo();Ko.exports=function(e){var r=+e;return r!==r||r===0?0:qs(r)}});var Uo=a((Ac,zo)=>{"use strict";var Ps=Tr(),As=Math.max,Ls=Math.min;zo.exports=function(e,r){var t=Ps(e);return t<0?As(t+r,0):Ls(t,r)}});var Zo=a((Lc,Wo)=>{"use strict";var Rs=Tr(),Ds=Math.min;Wo.exports=function(e){var r=Rs(e);return r>0?Ds(r,9007199254740991):0}});var Vo=a((Rc,$o)=>{"use strict";var Hs=Zo();$o.exports=function(e){return Hs(e.length)}});var Yo=a((Dc,Xo)=>{"use strict";var js=ie(),Ks=Uo(),zs=Vo(),Go=function(e){return function(r,t,o){var n=js(r),i=zs(n);if(i===0)return!e&&-1;var d=Ks(o,i),s;if(e&&t!==t){for(;i>d;)if(s=n[d++],s!==s)return!0}else for(;i>d;d++)if((e||d in n)&&n[d]===t)return e||d||0;return!e&&-1}};Xo.exports={includes:Go(!0),indexOf:Go(!1)}});var Sr=a((Hc,Jo)=>{"use strict";Jo.exports={}});var rn=a((jc,en)=>{"use strict";var Us=j(),kr=le(),Ws=ie(),Zs=Yo().indexOf,$s=Sr(),Qo=Us([].push);en.exports=function(e,r){var t=Ws(e),o=0,n=[],i;for(i in t)!kr($s,i)&&kr(t,i)&&Qo(n,i);for(;r.length>o;)kr(t,i=r[o++])&&(~Zs(n,i)||Qo(n,i));return n}});var _r=a((Kc,tn)=>{"use strict";tn.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var nn=a((zc,on)=>{"use strict";var Vs=rn(),Gs=_r();on.exports=Object.keys||function(r){return Vs(r,Gs)}});var sn=a(an=>{"use strict";var Xs=z(),Ys=hr(),Js=wr(),Qs=ke(),el=ie(),rl=nn();an.f=Xs&&!Ys?Object.defineProperties:function(r,t){Qs(r);for(var o=el(t),n=rl(t),i=n.length,d=0,s;i>d;)Js.f(r,s=n[d++],o[s]);return r}});var dn=a((Wc,ln)=>{"use strict";var tl=Qe();ln.exports=tl("document","documentElement")});var pn=a((Zc,un)=>{"use strict";var ol=dr(),nl=cr(),cn=ol("keys");un.exports=function(e){return cn[e]||(cn[e]=nl(e))}});var xn=a(($c,yn)=>{"use strict";var al=ke(),il=sn(),mn=_r(),sl=Sr(),ll=dn(),dl=fr(),cl=pn(),fn=">",bn="<",Nr="prototype",Er="script",vn=cl("IE_PROTO"),Br=function(){},gn=function(e){return bn+Er+fn+e+bn+"/"+Er+fn},hn=function(e){e.write(gn("")),e.close();var r=e.parentWindow.Object;return e=null,r},ul=function(){var e=dl("iframe"),r="java"+Er+":",t;return e.style.display="none",ll.appendChild(e),e.src=String(r),t=e.contentWindow.document,t.open(),t.write(gn("document.F=Object")),t.close(),t.F},Be,Ne=function(){try{Be=new ActiveXObject("htmlfile")}catch{}Ne=typeof document<"u"?document.domain&&Be?hn(Be):ul():hn(Be);for(var e=mn.length;e--;)delete Ne[Nr][mn[e]];return Ne()};sl[vn]=!0;yn.exports=Object.create||function(r,t){var o;return r!==null?(Br[Nr]=al(r),o=new Br,Br[Nr]=null,o[vn]=r):o=Ne(),t===void 0?o:il.f(o,t)}});var wn=a(()=>{"use strict";var pl=Do(),ml=z(),fl=xn();pl({target:"Object",stat:!0,sham:!ml},{create:fl})});var Sn=a((Xc,Tn)=>{"use strict";wn();var bl=Te(),hl=bl.Object;Tn.exports=function(r,t){return hl.create(r,t)}});var _n=a((Yc,kn)=>{"use strict";var vl=Sn();kn.exports=vl});var Nn=a((Jc,Bn)=>{Bn.exports=_n()});function ve(e,r){try{if(typeof document>"u")return;var t=document.createElement("meta");t.setAttribute("name",e),r&&t.setAttribute("content",r),document.head.appendChild(t)}catch(o){console.error('inject-meta-tag: Failed to inject <meta name="'.concat(e,'"> tag.'),o)}}var Ta=l(O()),te=l(f());var D=l(f());var Xr=l(f()),Yr=(0,Xr.createContext)(new Proxy({},{get(){throw new Error("botframework-webchat: This hook can only used under its corresponding <Provider>.")}}));Yr.displayName="TelephoneKeypad.Context";var ge=Yr;var Ia=(0,D.memo)(({children:e})=>{let[r,t]=(0,D.useState)(!1),o=(0,D.useMemo)(()=>Object.freeze({setShown:t,shown:r}),[t,r]);return D.default.createElement(ge.Provider,{value:o},e)}),je=Ia;var Oe=l(f());var In=l(O()),Mn=l(q()),p=l(f());var En=l(Nn()),Ee=l(f());function S(e){var r=(0,Ee.useRef)(),t=(0,Ee.useMemo)(function(){return(0,En.default)({},{current:{get:function(){return r.current}}})},[r]);return r.current=e,t}var P=l(f());var Fn={"telephone-keypad__button":"r","telephone-keypad__button__ruby":"e","telephone-keypad__button__text":"o","telephone-keypad--horizontal":"l"};var yl=".webchat-fluent .r{-webkit-user-select:none;align-items:center;-webkit-appearance:none;appearance:none;background-color:#fff;border-radius:100%;border:solid 1px var(--webchat-colorNeutralStroke1);color:var(--webchat-colorGray200);font-weight:var(--webchat-fontWeightSemibold);cursor:pointer;display:flex;flex-direction:column;height:60px;opacity:.7;padding:0;position:relative;touch-action:none;user-select:none;width:60px}.webchat-fluent .r:hover{background-color:var(--webchat-colorGray30)}.webchat-fluent .e{color:var(--webchat-colorGray190);font-size:10px}.webchat-fluent .o{font-size:24px;margin-top:8px}.webchat-fluent .l .r{height:32px;justify-content:center;margin:8px 4px;width:32px}.webchat-fluent .l .e{display:none}.webchat-fluent .l .o{font-size:20px;margin-top:0}.webchat-fluent .c{align-items:center;background:var(--webchat-colorNeutralBackground1);border:none;border-radius:var(--webchat-borderRadiusXLarge);display:flex;flex-direction:column;font-family:var(--webchat-fontFamilyBase);justify-content:center}.webchat-fluent .n{box-sizing:border-box;display:grid;gap:16px;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(4,1fr);justify-items:center;padding:16px;width:100%}.webchat-fluent .d{align-items:center;color:var(--webchat-colorNeutralForeground4);display:flex;font-size:12px;gap:6px;margin-block-end:6px}.webchat-fluent .i{color:var(--webchat-colorBrandForegroundLink);text-decoration-color:transparent}.webchat-fluent .i:target{color:var(--webchat-colorBrandForegroundLinkSelected)}.webchat-fluent .i:hover{color:var(--webchat-colorBrandForegroundLinkHover);text-decoration:underline 1px currentColor}.webchat-fluent .i:active{color:var(--webchat-colorBrandForegroundLinkPressed)}.webchat-fluent .i:focus-visible{outline:none;text-decoration:underline 1px double var(--webchat-colorStrokeFocus2)}.webchat-fluent.a{display:contents;--webchat-colorNeutralForeground1: var(--colorNeutralForeground1, #242424);--webchat-colorNeutralForeground2: var(--colorNeutralForeground2, #424242);--webchat-colorNeutralForeground4: var(--colorNeutralForeground4, #707070);--webchat-colorNeutralForeground2BrandHover: var(--colorNeutralForeground2BrandHover, #02729c);--webchat-colorNeutralForeground2BrandPressed: var(--colorNeutralForeground2BrandPressed, #01678c);--webchat-colorNeutralForeground2BrandSelected: var(--colorNeutralForeground2BrandSelected, #067191);--webchat-colorNeutralForegroundDisabled: var(--colorNeutralForegroundDisabled, #bdbdbd);--webchat-colorNeutralBackground1: var(--colorNeutralBackground1, #ffffff);--webchat-colorNeutralBackground4: var(--colorNeutralBackground4, #f0f0f0);--webchat-colorNeutralBackground5: var(--colorNeutralBackground5, #ebebeb);--webchat-colorNeutralStroke1: var(--colorNeutralStroke1, #d1d1d1);--webchat-colorNeutralStroke2: var(--colorNeutralStroke2, #e0e0e0);--webchat-colorNeutralStroke1Selected: var(--colorNeutralStroke1Selected, #bdbdbd);--webchat-colorStrokeFocus2: var(--colorStrokeFocus2, #000000);--webchat-colorBrandStroke2: var(--colorBrandStroke2, #9edcf7);--webchat-colorBrandForeground2Hover: var(--colorBrandForeground2Hover, #015a7a);--webchat-colorBrandForeground2Pressed: var(--colorBrandForeground2Pressed, #01384d);--webchat-colorBrandForegroundLink: var(--colorBrandForegroundLink, #01678c);--webchat-colorBrandForegroundLinkHover: var(--colorBrandForegroundLinkHover, #015a7a);--webchat-colorBrandForegroundLinkPressed: var(--colorBrandForegroundLinkPressed, #014259);--webchat-colorBrandForegroundLinkSelected: var(--colorBrandForegroundLinkSelected, #01678c);--webchat-colorBrandBackground2Hover: var(--colorBrandBackground2Hover, #bee7fa);--webchat-colorBrandBackground2Pressed: var(--colorBrandBackground2Pressed, #7fd2f5);--webchat-colorCompoundBrandForeground1Hover: var(--colorCompoundBrandForeground1Hover, #02729c);--webchat-colorStatusDangerForeground1: var(--colorStatusDangerForeground1, #b10e1c);--webchat-colorGray30: var(--colorGray30, #edebe9);--webchat-colorGray160: var(--colorGray160, #323130);--webchat-colorGray190: var(--colorGray190, #201f1e);--webchat-colorGray200: var(--colorGray200, #1b1a19);--webchat-borderRadiusSmall: var(--borderRadiusSmall, 2px);--webchat-borderRadiusLarge: var(--borderRadiusLarge, 6px);--webchat-borderRadiusXLarge: var(--borderRadiusXLarge, 8px);--webchat-shadow16: var(--shadow16, 0 6.4px 14.4px 0 rgba(0, 0, 0, .132), 0 1.2px 3.6px 0 rgba(0, 0, 0, .108));--webchat-spacingHorizontalMNudge: var(--spacingHorizontalMNudge, 10px);--webchat-fontFamilyBase: var(--fontFamilyBase, \"Segoe UI\", \"Segoe UI Web (West European)\", -apple-system, BlinkMacSystemFont, Roboto, \"Helvetica Neue\", sans-serif);--webchat-fontFamilyNumeric: var(--fontFamilyNumeric, Bahnschrift, \"Segoe UI\", \"Segoe UI Web (West European)\", -apple-system, BlinkMacSystemFont, Roboto, \"Helvetica Neue\", sans-serif);--webchat-fontWeightSemibold: var(--fontWeightSemibold, 600);--webchat-strokeWidthThicker: var(--strokeWidthThicker, 3px);--webchat-durationUltraFast: var(--durationUltraFast, 0);--webchat-durationNormal: var(--durationNormal, .2s);--webchat-curveAccelerateMid: var(--curveAccelerateMid, cubic-bezier(1,0,1,1));--webchat-curveDecelerateMid: var(--curveDecelerateMid, cubic-bezier(0,0,0,1))}@media (prefers-reduced-motion){.webchat-fluent.a{--webchat-durationUltraFast: .01ms;--webchat-durationNormal: .01ms}}.webchat-fluent .b{background-color:var(--webchat-colorNeutralBackground4);border-radius:inherit;cursor:copy;display:grid;gap:8px;inset:0;place-content:center;place-items:center;position:absolute}.webchat-fluent .u{background-color:#e00;color:#fff}.webchat-fluent .h{height:36px;pointer-events:none;width:36px}.webchat-fluent .s{align-items:center;background:transparent;border-radius:8px;border:1px solid var(--webchat-colorBrandStroke2);color:currentColor;cursor:pointer;display:flex;font-size:12px;gap:4px;padding:4px 8px;text-align:start;transition:all .15s ease-out}@media (hover: hover){.webchat-fluent .s:not([aria-disabled=true]):hover{background-color:var(--webchat-colorBrandBackground2Hover);color:var(--webchat-colorBrandForeground2Hover)}}.webchat-fluent .s:not([aria-disabled=true]):active{background-color:var(--webchat-colorBrandBackground2Pressed);color:var(--webchat-colorBrandForeground2Pressed)}.webchat-fluent .s[aria-disabled=true]{color:var(--webchat-colorNeutralForegroundDisabled);cursor:not-allowed}.webchat-fluent .g{font-size:12px;height:1em;width:1em}.webchat-fluent .p{align-items:flex-end;align-self:flex-end;display:flex;flex-direction:column;gap:8px}.webchat-fluent .p:not(:empty){padding-block-end:8px;padding-inline-start:4px}.webchat-fluent .p.w{flex-direction:row;flex-wrap:wrap;justify-content:flex-end}.webchat-fluent .p.v{flex-direction:column}.webchat-fluent .f{display:flex;gap:4px;margin-inline-start:auto}.webchat-fluent .x{align-items:center;-webkit-appearance:none;appearance:none;aspect-ratio:1;background:transparent;border-radius:var(--webchat-borderRadiusSmall);border:none;color:currentColor;cursor:pointer;display:flex;justify-content:center;padding:3px;width:32px}.webchat-fluent .x>svg{font-size:20px;pointer-events:none}.webchat-fluent .x.k{color:var(--webchat-colorNeutralForeground2BrandSelected)}@media (hover: hover){.webchat-fluent .x:not([aria-disabled=true]):hover{color:var(--webchat-colorNeutralForeground2BrandHover)}}.webchat-fluent .x:not([aria-disabled=true]):active{color:var(--webchat-colorNeutralForeground2BrandPressed)}.webchat-fluent .x[aria-disabled=true]{color:var(--webchat-colorNeutralForegroundDisabled);cursor:not-allowed}.webchat-fluent .m{align-self:center;border-inline-end:1px solid var(--webchat-colorNeutralStroke2);height:28px}.webchat-fluent .m:is(:first-child,:last-child,:only-child){display:none}.webchat-fluent .B{display:grid}.webchat-fluent .F{font-size:0;height:0;opacity:0;width:1px}.webchat-fluent .y{border-radius:var(--webchat-borderRadiusLarge);border:1px solid var(--webchat-colorNeutralStroke1);cursor:default;padding:6px 8px;width:fit-content}.webchat-fluent .N{color:transparent;font-size:0;height:0;left:0;position:absolute;top:0;width:0}.webchat-fluent .S{display:grid;grid-template-areas:\"main\";max-height:200px;overflow:hidden}.webchat-fluent .z{height:0;visibility:collapse}.webchat-fluent .L{border:none;font:inherit;grid-area:main;outline:inherit;overflow-wrap:anywhere;resize:inherit;scrollbar-gutter:stable}.webchat-fluent .H{overflow:hidden;visibility:hidden;white-space:pre-wrap}.webchat-fluent .W{background-color:inherit;color:currentColor;height:100%;padding:0}.webchat-fluent .P{scrollbar-color:unset;scrollbar-width:unset;-moz-scrollbar-color:var(--webchat-colorNeutralBackground5) var(--webchat-colorNeutralForeground2);-moz-scrollbar-width:thin}.webchat-fluent .P::-webkit-scrollbar{width:8px}.webchat-fluent .P::-webkit-scrollbar-track{background-color:var(--webchat-colorNeutralBackground5);border-radius:16px}.webchat-fluent .P::-webkit-scrollbar-thumb{background-color:var(--webchat-colorNeutralForeground2);border-radius:16px}.webchat-fluent .P::-webkit-scrollbar-corner{background-color:var(--webchat-colorNeutralBackground5)}.webchat-fluent .R{color:var(--webchat-colorNeutralForeground1);font-family:var(--webchat-fontFamilyBase);padding:0 10px 10px;text-rendering:optimizeLegibility;--webchat-sendbox-attachment-area-active: ;--webchat-sendbox-border-radius: var(--webchat-borderRadiusLarge)}.webchat-fluent .G{background-color:var(--webchat-colorNeutralBackground1);border-radius:var(--webchat-sendbox-border-radius);border:1px solid var(--webchat-colorNeutralStroke1);display:grid;font-family:var(--webchat-fontFamilyBase);font-size:14px;gap:6px;grid-template:[telephone-keypad-start] \"text-area\" [telephone-keypad-end] var(--webchat-sendbox-attachment-area-active) \"controls\" / [telephone-keypad] 1fr;line-height:20px;padding:8px;position:relative}.webchat-fluent .G:has(.t){--webchat-sendbox-attachment-area-active: \"attachment\" }.webchat-fluent .G:focus-within{border-color:var(--webchat-colorNeutralStroke1Selected)}.webchat-fluent .G:after{border-bottom-left-radius:var(--webchat-sendbox-border-radius);border-bottom-right-radius:var(--webchat-sendbox-border-radius);border-bottom:var(--webchat-strokeWidthThicker) solid var(--webchat-colorCompoundBrandForeground1Hover);bottom:-1px;clip-path:inset(calc(100% - var(--webchat-strokeWidthThicker)) 50% 0 50%);content:\"\";height:var(--webchat-sendbox-border-radius);left:-1px;position:absolute;right:-1px;transition:clip-path var(--webchat-durationUltraFast) var(--webchat-curveAccelerateMid)}.webchat-fluent .G:focus-within:after{clip-path:inset(calc(100% - var(--webchat-strokeWidthThicker)) 0 0 0);transition:clip-path var(--webchat-durationNormal) var(--webchat-curveDecelerateMid)}.webchat-fluent .G>.D{grid-area:text-area}.webchat-fluent .G>.t{grid-area:attachment}.webchat-fluent .G>.M{grid-area:controls}.webchat-fluent .G>.U{grid-area:telephone-keypad}.webchat-fluent .C{background-color:transparent;border:none;flex:auto;font-family:var(--webchat-fontFamilyBase);font-size:14px;line-height:20px;outline:none;padding:4px 4px 0;resize:none}.webchat-fluent .j{align-items:center;display:flex;padding-inline-start:4px}.webchat-fluent .T{color:var(--webchat-colorNeutralForeground4);cursor:default;font-family:var(--webchat-fontFamilyNumeric);font-size:10px;line-height:14px;margin-inline-end:4px}.webchat-fluent .I{color:var(--webchat-colorStatusDangerForeground1)}\n/*! For license information please see botframework-webchat-fluent-theme.development.css.LEGAL.txt */\n";function Fe(){if(globalThis.document){let e=document.createElement("style");e.append(document.createTextNode(yl)),document.head.appendChild(e)}}var Cn=l(f());function xl(e){return(0,Cn.useMemo)(()=>Object.freeze(Object.fromEntries(Object.entries(e).map(([r,t])=>[r,`${r} ${t}`]))),[e])}var v=xl;var On=(0,P.memo)((0,P.forwardRef)(({button:e,"data-testid":r,onClick:t,ruby:o},n)=>{let i=v(Fn),d=S(t),s=(0,P.useCallback)(()=>d.current?.(),[d]);return P.default.createElement("button",{className:i["telephone-keypad__button"],"data-testid":r,onClick:s,ref:n,type:"button"},P.default.createElement("span",{className:i["telephone-keypad__button__text"]},e==="star"?"\u2217":e==="pound"?"#":e),!!o&&P.default.createElement("ruby",{className:i["telephone-keypad__button__ruby"]},o))}));On.displayName="TelephoneKeypad.Button";var E=On;var wl={sendBoxDropZone:"send box drop zone",sendBoxSendButton:"send box send button",sendBoxTextBox:"send box text area",sendBoxTelephoneKeypadButton1:"send box telephone keypad button 1",sendBoxTelephoneKeypadButton2:"send box telephone keypad button 2",sendBoxTelephoneKeypadButton3:"send box telephone keypad button 3",sendBoxTelephoneKeypadButton4:"send box telephone keypad button 4",sendBoxTelephoneKeypadButton5:"send box telephone keypad button 5",sendBoxTelephoneKeypadButton6:"send box telephone keypad button 6",sendBoxTelephoneKeypadButton7:"send box telephone keypad button 7",sendBoxTelephoneKeypadButton8:"send box telephone keypad button 8",sendBoxTelephoneKeypadButton9:"send box telephone keypad button 9",sendBoxTelephoneKeypadButton0:"send box telephone keypad button 0",sendBoxTelephoneKeypadButtonStar:"send box telephone keypad button star",sendBoxTelephoneKeypadButtonPound:"send box telephone keypad button pound",sendBoxTelephoneKeypadToolbarButton:"send box telephone keypad toolbar button",sendBoxUploadButton:"send box upload button"},y=wl;var Ce=l(f());function A(){let{setShown:e,shown:r}=(0,Ce.useContext)(ge);return(0,Ce.useMemo)(()=>Object.freeze([r,e]),[r,e])}var Fr={"telephone-keypad":"c","telephone-keypad__box":"n","telephone-keypad__info-message":"d","telephone-keypad__info-message-link":"i"};var ue=l(f());function Sl(e){return ue.default.createElement("svg",{"aria-hidden":"true",className:e.className,height:"1em",viewBox:"0 0 20 20",width:"1em",xmlns:"http://www.w3.org/2000/svg"},ue.default.createElement("path",{d:"M6 2a2 2 0 0 0-2 2v5.2c.32-.08.66-.15 1-.18V4a1 1 0 0 1 1-1h4v3.5c0 .83.67 1.5 1.5 1.5H15v8a1 1 0 0 1-1 1h-3.6c-.18.36-.4.7-.66 1H14a2 2 0 0 0 2-2V7.41c0-.4-.16-.78-.44-1.06l-3.91-3.91A1.5 1.5 0 0 0 10.59 2H6Zm8.8 5h-3.3a.5.5 0 0 1-.5-.5V3.2L14.8 7ZM10 14.5a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0Zm-4-2a.5.5 0 0 0-1 0V14H3.5a.5.5 0 0 0 0 1H5v1.5a.5.5 0 0 0 1 0V15h1.5a.5.5 0 0 0 0-1H6v-1.5Z",fill:"currentColor"}))}var Cr=(0,ue.memo)(Sl);var pe=l(f());function kl(e){return pe.default.createElement("svg",{"aria-hidden":"true",className:e.className,height:"1em",viewBox:"0 0 20 20",width:"1em",xmlns:"http://www.w3.org/2000/svg"},pe.default.createElement("path",{d:"m4.83 10.48 5.65-5.65a3 3 0 0 1 4.25 4.24L8 15.8a1.5 1.5 0 0 1-2.12-2.12l6-6.01a.5.5 0 1 0-.7-.71l-6 6.01a2.5 2.5 0 0 0 3.53 3.54l6.71-6.72a4 4 0 1 0-5.65-5.66L4.12 9.78a.5.5 0 0 0 .7.7Z",fill:"currentColor"}))}var Or=(0,pe.memo)(kl);var me=l(f());function _l(e){return me.default.createElement("svg",{"aria-hidden":"true",className:e.className,height:"1em",viewBox:"0 0 16 16",width:"1em",xmlns:"http://www.w3.org/2000/svg"},me.default.createElement("path",{d:"M8.5 7.5a.5.5 0 1 0-1 0v3a.5.5 0 0 0 1 0v-3Zm.25-2a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM8 1a7 7 0 1 0 0 14A7 7 0 0 0 8 1ZM2 8a6 6 0 1 1 12 0A6 6 0 0 1 2 8Z",fill:"currentColor"}))}var Ir=(0,me.memo)(_l);var fe=l(f());function Bl(e){return fe.default.createElement("svg",{"aria-hidden":"true",className:e.className,height:"1em",viewBox:"0 0 20 20",width:"1em",xmlns:"http://www.w3.org/2000/svg"},fe.default.createElement("path",{d:"M2.18 2.11a.5.5 0 0 1 .54-.06l15 7.5a.5.5 0 0 1 0 .9l-15 7.5a.5.5 0 0 1-.7-.58L3.98 10 2.02 2.63a.5.5 0 0 1 .16-.52Zm2.7 8.39-1.61 6.06L16.38 10 3.27 3.44 4.88 9.5h6.62a.5.5 0 1 1 0 1H4.88Z",fill:"currentColor"}))}var Mr=(0,fe.memo)(Bl);var be=l(f());function Nl(e){return be.default.createElement("svg",{"aria-hidden":"true",className:e.className,height:"1em",viewBox:"0 0 20 20",width:"1em",xmlns:"http://www.w3.org/2000/svg"},be.default.createElement("path",{d:"M6 5.25a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5Zm0 4a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5ZM7.25 12a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0ZM10 5.25a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5ZM11.25 8a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0ZM10 13.25a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5ZM11.25 16a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0ZM14 5.25a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5ZM15.25 8a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0ZM14 13.25a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5Z",fill:"currentColor"}))}var qr=(0,be.memo)(Nl);var{LocalizedString:El}=In.Components,qn=(0,p.memo)(({children:e,isHorizontal:r})=>{let t=v(Fr);return r?null:p.default.createElement("div",{className:t["telephone-keypad__box"]},e)});qn.displayName="TelephoneKeypad:Orientation";var Pn=(0,p.memo)(({autoFocus:e,className:r,onButtonClick:t,isHorizontal:o})=>{let n=S(e),i=v(Fr),d=(0,p.useRef)(null),s=S(t),[,h]=A(),x=(0,p.useCallback)(()=>s.current?.("1"),[s]),c=(0,p.useCallback)(()=>s.current?.("2"),[s]),u=(0,p.useCallback)(()=>s.current?.("3"),[s]),m=(0,p.useCallback)(()=>s.current?.("4"),[s]),g=(0,p.useCallback)(()=>s.current?.("5"),[s]),B=(0,p.useCallback)(()=>s.current?.("6"),[s]),_=(0,p.useCallback)(()=>s.current?.("7"),[s]),T=(0,p.useCallback)(()=>s.current?.("8"),[s]),k=(0,p.useCallback)(()=>s.current?.("9"),[s]),M=(0,p.useCallback)(()=>s.current?.("0"),[s]),V=(0,p.useCallback)(()=>s.current?.("star"),[s]),Y=(0,p.useCallback)(()=>s.current?.("pound"),[s]),Re=(0,p.useCallback)(De=>{De.key==="Escape"&&h(!1)},[h]);return(0,p.useEffect)(()=>{n.current&&d.current?.focus()},[n,d]),p.default.createElement("div",{className:(0,Mn.default)(i["telephone-keypad"],r),onKeyDown:Re},p.default.createElement(qn,{isHorizontal:o},p.default.createElement(E,{button:"1","data-testid":y.sendBoxTelephoneKeypadButton1,onClick:x,ref:d}),p.default.createElement(E,{button:"2","data-testid":y.sendBoxTelephoneKeypadButton2,onClick:c,ruby:"ABC"}),p.default.createElement(E,{button:"3","data-testid":y.sendBoxTelephoneKeypadButton3,onClick:u,ruby:"DEF"}),p.default.createElement(E,{button:"4","data-testid":y.sendBoxTelephoneKeypadButton4,onClick:m,ruby:"GHI"}),p.default.createElement(E,{button:"5","data-testid":y.sendBoxTelephoneKeypadButton5,onClick:g,ruby:"JKL"}),p.default.createElement(E,{button:"6","data-testid":y.sendBoxTelephoneKeypadButton6,onClick:B,ruby:"MNO"}),p.default.createElement(E,{button:"7","data-testid":y.sendBoxTelephoneKeypadButton7,onClick:_,ruby:"PQRS"}),p.default.createElement(E,{button:"8","data-testid":y.sendBoxTelephoneKeypadButton8,onClick:T,ruby:"TUV"}),p.default.createElement(E,{button:"9","data-testid":y.sendBoxTelephoneKeypadButton9,onClick:k,ruby:"WXYZ"}),p.default.createElement(E,{button:"star","data-testid":y.sendBoxTelephoneKeypadButtonStar,onClick:V}),p.default.createElement(E,{button:"0","data-testid":y.sendBoxTelephoneKeypadButton0,onClick:M,ruby:"+"}),p.default.createElement(E,{button:"pound","data-testid":y.sendBoxTelephoneKeypadButtonPound,onClick:Y})),p.default.createElement("div",{className:i["telephone-keypad__info-message"]},p.default.createElement(Ir,null),p.default.createElement(El,{linkClassName:i["telephone-keypad__info-message-link"],stringIds:"TELEPHONE_KEYPAD_INPUT_MESSAGE"})))});Pn.displayName="TelephoneKeypad";var An=Pn;var Ln=(0,Oe.memo)(e=>A()[0]?Oe.default.createElement(An,{...e}):null);Ln.displayName="TelephoneKeypad.Surrogate";var Pr=Ln;var Dn=l(f()),Hn=l(q());var Rn={theme:"a"};var Cl="webchat-fluent";function Ie(e){let r=v(Rn);return Dn.default.createElement("div",{className:(0,Hn.default)(Cl,r.theme)},e.children)}var wa=l(O()),re=l(q()),b=l(f());var zn=l(O()),Un=l(q()),F=l(f());var jn={"sendbox__attachment-drop-zone":"b","sendbox__attachment-drop-zone--droppable":"u","sendbox__attachment-drop-zone-icon":"h"};var{useLocalizer:Il}=zn.hooks,Ml=e=>{e.preventDefault()},Kn=e=>!!e.dataTransfer?.types?.some(r=>r.toLowerCase()==="files");function ql(e,r){let t=e.parentNode;for(;t;){if(t===r)return!0;t=t.parentNode}return!1}var Wn=e=>{let[r,t]=(0,F.useState)(!1),o=v(jn),n=(0,F.useRef)(null),i=Il(),d=S(e.onFilesAdded);(0,F.useEffect)(()=>{let h=0,x=u=>{h++,Kn(u)&&t(n.current&&(u.target===n.current||u.target instanceof HTMLElement&&ql(u.target,n.current))?"droppable":"visible")},c=()=>--h<=0&&t(!1);return document.addEventListener("dragenter",x,!1),document.addEventListener("dragleave",c,!1),()=>{document.removeEventListener("dragenter",x),document.removeEventListener("dragleave",c)}},[t]);let s=(0,F.useCallback)(h=>{h.preventDefault(),t(!1),Kn(h.nativeEvent)&&d.current([...h.dataTransfer.files])},[d,t]);return r?F.default.createElement("div",{className:(0,Un.default)(o["sendbox__attachment-drop-zone"],{[o["sendbox__attachment-drop-zone--droppable"]]:r==="droppable"}),"data-testid":y.sendBoxDropZone,onDragOver:Ml,onDrop:s,ref:n},F.default.createElement(Cr,{className:o["sendbox__attachment-drop-zone-icon"]}),i("TEXT_INPUT_DROP_ZONE")):null};Wn.displayName="DropZone";var Ar=(0,F.memo)(Wn);var ea=l(O()),ra=l(q()),L=l(f());var Yn=l(O()),Jn=l(q()),W=l(f());var Zn={"suggested-action":"s","suggested-action__image":"g"};var U=l(f()),Al=e=>e.preventDefault(),Ll=(0,U.forwardRef)(({"aria-hidden":e,children:r,disabled:t,onClick:o,tabIndex:n,...i},d)=>{let s=(0,U.useRef)(null);return U.default.createElement("button",{"aria-disabled":t?"true":"false","aria-hidden":e,onClick:t?Al:o,ref:d||s,tabIndex:n,...t&&{"aria-disabled":"true",tabIndex:-1},...i,type:"button"},r)}),$n=(0,U.memo)(Ll);var w=l(f()),Vn=(0,w.createContext)({itemEffector:()=>{throw new Error("botframework-webchat-fluent-theme rovingFocus: no provider for RovingFocusContext.")}});function Rl(e){let r=(0,w.useRef)(0),t=(0,w.useRef)([]),o=(0,w.useCallback)(({current:c},u)=>c&&(c.tabIndex=r.current===u?0:-1),[r]),n=(0,w.useCallback)(c=>{let u;typeof c=="number"?u=c:u=c(r.current),u&&!t.current.at(u)?.current&&(u=0),r.current!==u&&(r.current=u,t.current.forEach((m,g)=>o(m,g)),t.current.at(u)?.current?.focus())},[o,t,r]),i=(0,w.useCallback)(c=>{let{target:u}=c,m=t.current.findIndex(({current:g})=>g===u);m!==-1&&n(m)},[t,n]),d=(0,w.useCallback)(c=>u=>{let m=!e.direction,g=/up|down/iu.test(c)&&e.direction==="vertical",B=/left|right/iu.test(c)&&e.direction==="horizontal",_=/right|down/iu.test(c),T=m||g||B?_?1:-1:0,k=t.current.map((V,Y)=>Y),M=k.indexOf(u)+T;return k.at(M)??0},[e.direction]),s=(0,w.useCallback)(c=>{let{key:u}=c;switch(u){case"Up":case"ArrowUp":case"Left":case"ArrowLeft":case"Down":case"ArrowDown":case"Right":case"ArrowRight":n(d(u));break;case"Home":n(0);break;case"End":n(-1);break;case"Escape":e.onEscapeKey?.();break;default:return}c.preventDefault(),c.stopPropagation()},[n,d,e]),h=(0,w.useCallback)((c,u)=>{let{current:m}=c;return t.current[Number(u)]=c,m.addEventListener("focus",i),m.addEventListener("keydown",s),o(c,u),()=>{m.removeEventListener("focus",i),m.removeEventListener("keydown",s),delete t.current[Number(u)]}},[i,s,o,t]),x=(0,w.useMemo)(()=>({itemEffector:h}),[h]);return w.default.createElement(Vn.Provider,{value:x},e.children)}function Gn(e){let r=(0,w.useRef)(null),{itemEffector:t}=(0,w.useContext)(Vn);return(0,w.useEffect)(()=>t(r,e)),r}var Xn=(0,w.memo)(Rl);var{useDisabled:Dl,useFocus:Hl,usePerformCardAction:jl,useScrollToEnd:Kl,useStyleSet:zl,useSuggestedActions:Ul}=Yn.hooks;function Wl({buttonText:e,className:r,displayText:t,image:o,imageAlt:n,itemIndex:i,text:d,type:s,value:h}){let[x,c]=Ul(),[{suggestedAction:u}]=zl(),[m]=Dl(),g=Hl(),B=Gn(i),_=jl(),T=v(Zn),k=Kl(),M=(0,W.useCallback)(({target:V})=>{(async function(){await g("sendBoxWithoutKeyboard"),_({displayText:t,text:d,type:s,value:h},{target:V}),s==="openUrl"&&c([]),k()})()},[t,g,_,k,c,d,s,h]);return W.default.createElement($n,{className:(0,Jn.default)(T["suggested-action"],u+"",(r||"")+""),disabled:m,onClick:M,ref:B,type:"button"},o&&W.default.createElement("img",{alt:n,className:T["suggested-action__image"],src:o}),W.default.createElement("span",null,e))}var Qn=(0,W.memo)(Wl);function Lr(e){let{title:r}=e,{type:t,value:o}=e;return t==="messageBack"?r||e.displayText:r||(typeof o=="string"?o:JSON.stringify(o))}var Rr={"suggested-actions":"p","suggested-actions--flow":"w","suggested-actions--stacked":"v"};var{useFocus:$l,useLocalizer:Vl,useStyleOptions:Gl,useStyleSet:Xl,useSuggestedActions:Yl}=ea.hooks;function Jl(e){let[{suggestedActionLayout:r}]=Gl(),[{suggestedActions:t}]=Xl(),o=v(Rr);return L.default.createElement("div",{"aria-label":e["aria-label"],"aria-live":"polite","aria-orientation":"vertical",className:(0,ra.default)(o["suggested-actions"],t+"",{[o["suggested-actions--flow"]]:r==="flow",[o["suggested-actions--stacked"]]:r!=="flow"},e.className),role:"toolbar"},!!e.children&&!!L.default.Children.count(e.children)&&e.children)}function Ql(){let e=v(Rr),r=Vl(),[t]=Yl(),o=$l(),n=(0,L.useCallback)(()=>{o("sendBox")},[o]),i=t.map((d,s)=>{let{displayText:h,image:x,imageAltText:c,text:u,type:m,value:g}=d;return t?.length?L.default.createElement(Qn,{buttonText:Lr(d),displayText:h,image:x,imageAlt:x&&(c||u),itemIndex:s,key:s,text:u,type:m,value:g}):null});return L.default.createElement(Xn,{onEscapeKey:n},L.default.createElement(Jl,{"aria-label":r("SUGGESTED_ACTIONS_LABEL_ALT"),className:e["suggested-actions"]},i))}var Dr=(0,L.memo)(Ql);var oa=l(O()),C=l(f());var qe=l(q()),Z=l(f());var Me={sendbox__toolbar:"f","sendbox__toolbar-button":"x","sendbox__toolbar-button--selected":"k","sendbox__toolbar-separator":"m"};var rd=e=>e.preventDefault(),G=(0,Z.memo)(e=>{let r=v(Me);return Z.default.createElement("button",{"aria-label":e["aria-label"],className:(0,qe.default)(r["sendbox__toolbar-button"],e.className,{[r["sendbox__toolbar-button--selected"]]:e.selected}),"data-testid":e["data-testid"],onClick:e.disabled?rd:e.onClick,type:e.type==="submit"?"submit":"button",...e.disabled&&{"aria-disabled":"true",tabIndex:-1}},e.children)});G.displayName="ToolbarButton";var Hr=(0,Z.memo)(e=>{let r=v(Me);return Z.default.createElement("div",{className:(0,qe.default)(r.sendbox__toolbar,e.className)},e.children)});Hr.displayName="Toolbar";var jr=(0,Z.memo)(e=>{let r=v(Me);return Z.default.createElement("div",{"aria-orientation":"vertical",className:(0,qe.default)(r["sendbox__toolbar-separator"],e.className),role:"separator"})});jr.displayName="ToolbarSeparator";var ta={"sendbox__add-attachment":"B","sendbox__add-attachment-input":"F"};var{useLocalizer:od,useStyleOptions:nd}=oa.hooks;function ad(e){let r=(0,C.useRef)(null),t=v(ta),o=od(),[{uploadAccept:n,uploadMultiple:i}]=nd(),d=S(e.onFilesAdded),s=(0,C.useCallback)(()=>r.current?.click(),[r]),h=(0,C.useCallback)(({target:{files:x}})=>{x&&(d.current?.([...x]),r.current&&(r.current.value=""))},[r,d]);return C.default.createElement("div",{className:t["sendbox__add-attachment"]},C.default.createElement("input",{accept:n,"aria-disabled":e.disabled,"aria-hidden":"true",className:t["sendbox__add-attachment-input"],multiple:i,onInput:e.disabled?void 0:h,readOnly:e.disabled,ref:r,role:"button",tabIndex:-1,type:"file"}),C.default.createElement(G,{"aria-label":o("TEXT_INPUT_UPLOAD_BUTTON_ALT"),"data-testid":y.sendBoxUploadButton,onClick:s},C.default.createElement(Or,null)))}var na=(0,C.memo)(ad);var ia=l(O()),Pe=l(f()),sa=l(q());var aa={sendbox__attachment:"y"};var{useLocalizer:sd}=ia.hooks,ld={one:"TEXT_INPUT_ATTACHMENTS_ONE",two:"TEXT_INPUT_ATTACHMENTS_TWO",few:"TEXT_INPUT_ATTACHMENTS_FEW",many:"TEXT_INPUT_ATTACHMENTS_MANY",other:"TEXT_INPUT_ATTACHMENTS_OTHER"};function dd({attachments:e,className:r}){let t=v(aa),o=sd({plural:!0});return e.length?Pe.default.createElement("div",{className:(0,sa.default)(t.sendbox__attachment,r)},o(ld,e.length)):null}var la=(0,Pe.memo)(dd);var Ae=l(f());var da={"sendbox__error-message":"N"};function ud(e){let r=v(da);return Ae.default.createElement("span",{className:r["sendbox__error-message"],id:e.id,role:"alert"},e.error)}var ca=(0,Ae.memo)(ud);var X=l(f()),ua=l(O());var{useLocalizer:pd}=ua.hooks,pa=(0,X.memo)(()=>{let[e,r]=A(),t=pd(),o=(0,X.useCallback)(()=>r(n=>!n),[r]);return X.default.createElement(G,{"aria-label":t("TEXT_INPUT_TELEPHONE_KEYPAD_BUTTON_ALT"),"data-testid":y.sendBoxTelephoneKeypadToolbarButton,onClick:o,selected:e},X.default.createElement(qr,null))});pa.displayName="SendBox.TelephoneKeypadToolbarButton";var ma=pa;var Le=l(q()),$=l(f());var fa={"sendbox__text-area":"S","sendbox__text-area--hidden":"z","sendbox__text-area-shared":"L","sendbox__text-area-doppelganger":"H","sendbox__text-area-input":"W","sendbox__text-area-input--scroll":"P"};var ba=(0,$.forwardRef)((e,r)=>{let t=v(fa),o=(0,$.useCallback)(n=>{!n.shiftKey&&n.key==="Enter"&&(n.preventDefault(),"form"in n.target&&n.target.form instanceof HTMLFormElement&&n.target?.form?.requestSubmit())},[]);return $.default.createElement("div",{className:(0,Le.default)(t["sendbox__text-area"],{[t["sendbox__text-area--hidden"]]:e.hidden},e.className),role:e.hidden?"hidden":void 0},$.default.createElement("div",{className:(0,Le.default)(t["sendbox__text-area-doppelganger"],t["sendbox__text-area-shared"],t["sendbox__text-area-input--scroll"])},e.value||e.placeholder," "),$.default.createElement("textarea",{"aria-label":e["aria-label"],className:(0,Le.default)(t["sendbox__text-area-input"],t["sendbox__text-area-shared"],t["sendbox__text-area-input--scroll"]),"data-testid":e["data-testid"],onInput:e.onInput,onKeyDown:o,placeholder:e.placeholder,ref:r,rows:e.startRows??1,tabIndex:e.hidden?-1:void 0,value:e.value}))});ba.displayName="TextArea";var ha=ba;var va=l(O()),Kr=l(f());var{useConnectivityStatus:fd,useLocalizer:bd}=va.hooks,hd=({attachments:e,message:r})=>{let[t]=fd(),o=bd(),n=S(t!=="connected"&&t!=="reconnected"?"offline":!r&&!e.length?"empty":void 0),i=(0,Kr.useMemo)(()=>Object.freeze(new Map().set("empty",o("SEND_BOX_IS_EMPTY_TOOLTIP_ALT")).set("offline",o("CONNECTIVITY_STATUS_ALT_FATAL"))),[o]);return(0,Kr.useMemo)(()=>Object.freeze([n,n.current&&i.get(n.current)]),[i,n])},ga=hd;var ya=l(f());function zr(e){let r=(0,ya.useMemo)(()=>Math.random().toString(36).substr(2,5),[]);return e=e?`${e}--`:"",`${e}${r}`}var xa={sendbox:"R",sendbox__sendbox:"G","sendbox__attachment--in-grid":"t","sendbox__text-area--in-grid":"D","sendbox__sendbox-controls--in-grid":"M","sendbox__telephone-keypad--in-grid":"U","sendbox__sendbox-text":"C","sendbox__sendbox-controls":"j","sendbox__text-counter":"T","sendbox__text-counter--error":"I"};var{useFocus:gd,useLocalizer:yd,useMakeThumbnail:xd,useRegisterFocusSendBox:wd,useSendBoxAttachments:Td,useSendMessage:Sd,useStyleOptions:kd}=wa.hooks;function _d(e){let r=(0,b.useRef)(null),[t,o]=(0,b.useState)(""),[n,i]=Td(),[{hideTelephoneKeypadButton:d,hideUploadButton:s,maxMessageLength:h}]=kd(),x=!!h&&t.length>h,c=v(xa),u=yd(),m=Sd(),g=xd(),B=zr("sendbox__error-message-id"),[_,T]=ga({message:t,attachments:n}),[k]=A(),M=gd();wd((0,b.useCallback)(({noKeyboard:N,waitUntil:He})=>{r.current&&(N?He((async()=>{let oe=r.current?.getAttribute("readonly");r.current?.setAttribute("readonly","true"),await new Promise(he=>setTimeout(he,0)),r.current?.focus(),typeof oe!="string"?r.current?.removeAttribute("readonly"):r.current?.setAttribute("readonly",oe)})()):r.current?.focus())},[r]));let V=S(n),Y=S(t),Re=(0,b.useCallback)(N=>{"tabIndex"in N.target&&typeof N.target.tabIndex=="number"&&N.target.tabIndex>=0||M("sendBox")},[M]),De=(0,b.useCallback)(N=>o(N.currentTarget.value),[o]),Zr=(0,b.useCallback)(async N=>{let He=Object.freeze(await Promise.all(N.map(oe=>g(oe).then(he=>Object.freeze({blob:oe,...he&&{thumbnailURL:he}})))));i(He)},[g,i]),Sa=(0,b.useCallback)(N=>{N.preventDefault(),_.current!=="empty"&&!x&&(m(Y.current,void 0,{attachments:V.current}),o(""),i([])),M("sendBox")},[V,Y,m,i,o,x,_,M]),ka=(0,b.useCallback)(N=>m(`/DTMF ${N}`),[m]),_a={"aria-invalid":"false",...T&&{"aria-invalid":"true","aria-errormessage":B}};return b.default.createElement("form",{..._a,className:(0,re.default)(c.sendbox,e.className),onSubmit:Sa},b.default.createElement(Dr,null),b.default.createElement("div",{className:(0,re.default)(c.sendbox__sendbox),onClickCapture:Re},b.default.createElement(ha,{"aria-label":u(x?"TEXT_INPUT_LENGTH_EXCEEDED_ALT":"TEXT_INPUT_ALT"),className:(0,re.default)(c["sendbox__sendbox-text"],c["sendbox__text-area--in-grid"]),"data-testid":y.sendBoxTextBox,hidden:k,onInput:De,placeholder:e.placeholder??u("TEXT_INPUT_PLACEHOLDER"),ref:r,value:t}),b.default.createElement(Pr,{autoFocus:!0,className:c["sendbox__telephone-keypad--in-grid"],isHorizontal:!1,onButtonClick:ka}),b.default.createElement(la,{attachments:n,className:c["sendbox__attachment--in-grid"]}),b.default.createElement("div",{className:(0,re.default)(c["sendbox__sendbox-controls"],c["sendbox__sendbox-controls--in-grid"])},!k&&h&&b.default.createElement("div",{className:(0,re.default)(c["sendbox__text-counter"],{[c["sendbox__text-counter--error"]]:x})},`${t.length}/${h}`),b.default.createElement(Hr,null,!d&&b.default.createElement(ma,null),!s&&b.default.createElement(na,{onFilesAdded:Zr}),b.default.createElement(jr,null),b.default.createElement(G,{"aria-label":u("TEXT_INPUT_SEND_BUTTON_ALT"),"data-testid":y.sendBoxSendButton,disabled:x||k,type:"submit"},b.default.createElement(Mr,null)))),b.default.createElement(Ar,{onFilesAdded:Zr}),b.default.createElement(ca,{error:T,id:B})))}var Ur=(0,b.memo)(_d);var{ThemeProvider:Bd}=Ta.Components,Nd=[()=>()=>()=>Ur],Ed=({children:e})=>te.default.createElement(Ie,null,te.default.createElement(je,null,te.default.createElement(Bd,{sendBoxMiddleware:Nd},e))),Wr=(0,te.memo)(Ed);ve("botframework-webchat:fluent-theme","version=4.17.1-main.20240509.b00b5c9; build-tool=tsup; module-format=esmodules");Fe();globalThis.WebChat={...globalThis.WebChat,FluentThemeProvider:Wr,testIds:{...globalThis.WebChat?.testIds,...y}};})();
2
2
  /*! For license information please see botframework-webchat-fluent-theme.development.js.LEGAL.txt */
3
3
  //# sourceMappingURL=botframework-webchat-fluent-theme.development.js.map
@@ -1,3 +1,3 @@
1
- "use strict";var Dt=Object.create;var Y=Object.defineProperty;var Pt=Object.getOwnPropertyDescriptor;var Rt=Object.getOwnPropertyNames;var Kt=Object.getPrototypeOf,zt=Object.prototype.hasOwnProperty;var Ot=(e,t)=>{for(var o in t)Y(e,o,{get:t[o],enumerable:!0})},Fe=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Rt(t))!zt.call(e,n)&&n!==o&&Y(e,n,{get:()=>t[n],enumerable:!(r=Pt(t,n))||r.enumerable});return e};var i=(e,t,o)=>(o=e!=null?Dt(Kt(e)):{},Fe(t||!e||!e.__esModule?Y(o,"default",{value:e,enumerable:!0}):o,e)),Ut=e=>Fe(Y({},"__esModule",{value:!0}),e);var sr={};Ot(sr,{FluentThemeProvider:()=>At,buildInfo:()=>ar,testIds:()=>f});module.exports=Ut(sr);var Mt=require("inject-meta-tag");var Ft=require("botframework-webchat-component"),U=i(require("react"));var M=i(require("react"));var Ae=require("react"),Me=(0,Ae.createContext)(new Proxy({},{get(){throw new Error("botframework-webchat: This hook can only used under its corresponding <Provider>.")}}));Me.displayName="TelephoneKeypad.Context";var q=Me;var Zt=(0,M.memo)(({children:e})=>{let[t,o]=(0,M.useState)(!1),r=(0,M.useMemo)(()=>Object.freeze({setShown:o,shown:t}),[o,t]);return M.default.createElement(q.Provider,{value:r},e)}),ce=Zt;var ee=i(require("react"));var Pe=require("botframework-webchat-component"),Re=i(require("classnames")),l=i(require("react")),ge=require("use-ref-from");var N=i(require("react")),Ie=require("use-ref-from");var He={"telephone-keypad__button":"r","telephone-keypad__button__ruby":"e","telephone-keypad__button__text":"o","telephone-keypad--horizontal":"l"};var Wt=".webchat-fluent .r{-webkit-user-select:none;align-items:center;-webkit-appearance:none;appearance:none;background-color:#fff;border-radius:100%;border:solid 1px var(--webchat-colorNeutralStroke1);color:var(--webchat-colorGray200);font-weight:var(--webchat-fontWeightSemibold);cursor:pointer;display:flex;flex-direction:column;height:60px;opacity:.7;padding:0;position:relative;touch-action:none;user-select:none;width:60px}.webchat-fluent .r:hover{background-color:var(--webchat-colorGray30)}.webchat-fluent .e{color:var(--webchat-colorGray190);font-size:10px}.webchat-fluent .o{font-size:24px;margin-top:8px}.webchat-fluent .l .r{height:32px;justify-content:center;margin:8px 4px;width:32px}.webchat-fluent .l .e{display:none}.webchat-fluent .l .o{font-size:20px;margin-top:0}.webchat-fluent .c{align-items:center;background:var(--webchat-colorNeutralBackground1);border:none;border-radius:var(--webchat-borderRadiusXLarge);display:flex;flex-direction:column;font-family:var(--webchat-fontFamilyBase);justify-content:center}.webchat-fluent .n{box-sizing:border-box;display:grid;gap:16px;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(4,1fr);justify-items:center;padding:16px;width:100%}.webchat-fluent .d{align-items:center;color:var(--webchat-colorNeutralForeground4);display:flex;font-size:12px;gap:6px;margin-block-end:6px}.webchat-fluent .i{color:var(--webchat-colorBrandForegroundLink);text-decoration-color:transparent}.webchat-fluent .i:target{color:var(--webchat-colorBrandForegroundLinkSelected)}.webchat-fluent .i:hover{color:var(--webchat-colorBrandForegroundLinkHover);text-decoration:underline 1px currentColor}.webchat-fluent .i:active{color:var(--webchat-colorBrandForegroundLinkPressed)}.webchat-fluent .i:focus-visible{outline:none;text-decoration:underline 1px double var(--webchat-colorStrokeFocus2)}.webchat-fluent.a{display:contents;--webchat-colorNeutralForeground1: var(--colorNeutralForeground1, #242424);--webchat-colorNeutralForeground2: var(--colorNeutralForeground2, #424242);--webchat-colorNeutralForeground4: var(--colorNeutralForeground4, #707070);--webchat-colorNeutralForeground2BrandHover: var(--colorNeutralForeground2BrandHover, #02729c);--webchat-colorNeutralForeground2BrandPressed: var(--colorNeutralForeground2BrandPressed, #01678c);--webchat-colorNeutralForeground2BrandSelected: var(--colorNeutralForeground2BrandSelected, #067191);--webchat-colorNeutralForegroundDisabled: var(--colorNeutralForegroundDisabled, #bdbdbd);--webchat-colorNeutralBackground1: var(--colorNeutralBackground1, #ffffff);--webchat-colorNeutralBackground4: var(--colorNeutralBackground4, #f0f0f0);--webchat-colorNeutralBackground5: var(--colorNeutralBackground5, #ebebeb);--webchat-colorNeutralStroke1: var(--colorNeutralStroke1, #d1d1d1);--webchat-colorNeutralStroke2: var(--colorNeutralStroke2, #e0e0e0);--webchat-colorNeutralStroke1Selected: var(--colorNeutralStroke1Selected, #bdbdbd);--webchat-colorStrokeFocus2: var(--colorStrokeFocus2, #000000);--webchat-colorBrandStroke2: var(--colorBrandStroke2, #9edcf7);--webchat-colorBrandForeground2Hover: var(--colorBrandForeground2Hover, #015a7a);--webchat-colorBrandForeground2Pressed: var(--colorBrandForeground2Pressed, #01384d);--webchat-colorBrandForegroundLink: var(--colorBrandForegroundLink, #01678c);--webchat-colorBrandForegroundLinkHover: var(--colorBrandForegroundLinkHover, #015a7a);--webchat-colorBrandForegroundLinkPressed: var(--colorBrandForegroundLinkPressed, #014259);--webchat-colorBrandForegroundLinkSelected: var(--colorBrandForegroundLinkSelected, #01678c);--webchat-colorBrandBackground2Hover: var(--colorBrandBackground2Hover, #bee7fa);--webchat-colorBrandBackground2Pressed: var(--colorBrandBackground2Pressed, #7fd2f5);--webchat-colorCompoundBrandForeground1Hover: var(--colorCompoundBrandForeground1Hover, #02729c);--webchat-colorStatusDangerForeground1: var(--colorStatusDangerForeground1, #b10e1c);--webchat-colorGray30: var(--colorGray30, #edebe9);--webchat-colorGray160: var(--colorGray160, #323130);--webchat-colorGray190: var(--colorGray190, #201f1e);--webchat-colorGray200: var(--colorGray200, #1b1a19);--webchat-borderRadiusSmall: var(--borderRadiusSmall, 2px);--webchat-borderRadiusLarge: var(--borderRadiusLarge, 6px);--webchat-borderRadiusXLarge: var(--borderRadiusXLarge, 8px);--webchat-shadow16: var(--shadow16, 0 6.4px 14.4px 0 rgba(0, 0, 0, .132), 0 1.2px 3.6px 0 rgba(0, 0, 0, .108));--webchat-spacingHorizontalMNudge: var(--spacingHorizontalMNudge, 10px);--webchat-fontFamilyBase: var(--fontFamilyBase, \"Segoe UI\", \"Segoe UI Web (West European)\", -apple-system, BlinkMacSystemFont, Roboto, \"Helvetica Neue\", sans-serif);--webchat-fontFamilyNumeric: var(--fontFamilyNumeric, Bahnschrift, \"Segoe UI\", \"Segoe UI Web (West European)\", -apple-system, BlinkMacSystemFont, Roboto, \"Helvetica Neue\", sans-serif);--webchat-fontWeightSemibold: var(--fontWeightSemibold, 600);--webchat-strokeWidthThicker: var(--strokeWidthThicker, 3px);--webchat-durationUltraFast: var(--durationUltraFast, 0);--webchat-durationNormal: var(--durationNormal, .2s);--webchat-curveAccelerateMid: var(--curveAccelerateMid, cubic-bezier(1,0,1,1));--webchat-curveDecelerateMid: var(--curveDecelerateMid, cubic-bezier(0,0,0,1))}@media (prefers-reduced-motion){.webchat-fluent.a{--webchat-durationUltraFast: .01ms;--webchat-durationNormal: .01ms}}.webchat-fluent .b{background-color:var(--webchat-colorNeutralBackground4);border-radius:inherit;cursor:copy;display:grid;gap:8px;inset:0;place-content:center;place-items:center;position:absolute}.webchat-fluent .u{background-color:#e00;color:#fff}.webchat-fluent .h{height:36px;pointer-events:none;width:36px}.webchat-fluent .s{align-items:center;background:transparent;border-radius:8px;border:1px solid var(--webchat-colorBrandStroke2);color:currentColor;cursor:pointer;display:flex;font-size:12px;gap:4px;padding:4px 8px;text-align:start;transition:all .15s ease-out}@media (hover: hover){.webchat-fluent .s:not([aria-disabled=true]):hover{background-color:var(--webchat-colorBrandBackground2Hover);color:var(--webchat-colorBrandForeground2Hover)}}.webchat-fluent .s:not([aria-disabled=true]):active{background-color:var(--webchat-colorBrandBackground2Pressed);color:var(--webchat-colorBrandForeground2Pressed)}.webchat-fluent .s[aria-disabled=true]{color:var(--webchat-colorNeutralForegroundDisabled);cursor:not-allowed}.webchat-fluent .g{font-size:12px;height:1em;width:1em}.webchat-fluent .p{align-items:flex-end;align-self:flex-end;display:flex;flex-direction:column;gap:8px}.webchat-fluent .p:not(:empty){padding-block-end:8px;padding-inline-start:4px}.webchat-fluent .p.w{flex-direction:row;flex-wrap:wrap;justify-content:flex-end}.webchat-fluent .p.v{flex-direction:column}.webchat-fluent .f{display:flex;gap:4px;margin-inline-start:auto}.webchat-fluent .x{align-items:center;-webkit-appearance:none;appearance:none;aspect-ratio:1;background:transparent;border-radius:var(--webchat-borderRadiusSmall);border:none;color:currentColor;cursor:pointer;display:flex;justify-content:center;padding:3px;width:32px}.webchat-fluent .x>svg{font-size:20px;pointer-events:none}.webchat-fluent .x.k{color:var(--webchat-colorNeutralForeground2BrandSelected)}@media (hover: hover){.webchat-fluent .x:not([aria-disabled=true]):hover{color:var(--webchat-colorNeutralForeground2BrandHover)}}.webchat-fluent .x:not([aria-disabled=true]):active{color:var(--webchat-colorNeutralForeground2BrandPressed)}.webchat-fluent .x[aria-disabled=true]{color:var(--webchat-colorNeutralForegroundDisabled);cursor:not-allowed}.webchat-fluent .m{align-self:center;border-inline-end:1px solid var(--webchat-colorNeutralStroke2);height:28px}.webchat-fluent .m:is(:first-child,:last-child,:only-child){display:none}.webchat-fluent .B{display:grid}.webchat-fluent .F{font-size:0;height:0;opacity:0;width:1px}.webchat-fluent .y{border-radius:var(--webchat-borderRadiusLarge);border:1px solid var(--webchat-colorNeutralStroke1);cursor:default;padding:6px 8px;width:fit-content}.webchat-fluent .N{color:transparent;font-size:0;height:0;left:0;position:absolute;top:0;width:0}.webchat-fluent .S{display:grid;grid-template-areas:\"main\";max-height:200px;overflow:hidden}.webchat-fluent .z{height:0;visibility:collapse}.webchat-fluent .L{border:none;font:inherit;grid-area:main;outline:inherit;overflow-wrap:anywhere;resize:inherit;scrollbar-gutter:stable}.webchat-fluent .H{overflow:hidden;visibility:hidden;white-space:pre-wrap}.webchat-fluent .W{background-color:inherit;color:currentColor;height:100%;padding:0}.webchat-fluent .P{scrollbar-color:unset;scrollbar-width:unset;-moz-scrollbar-color:var(--webchat-colorNeutralBackground5) var(--webchat-colorNeutralForeground2);-moz-scrollbar-width:thin}.webchat-fluent .P::-webkit-scrollbar{width:8px}.webchat-fluent .P::-webkit-scrollbar-track{background-color:var(--webchat-colorNeutralBackground5);border-radius:16px}.webchat-fluent .P::-webkit-scrollbar-thumb{background-color:var(--webchat-colorNeutralForeground2);border-radius:16px}.webchat-fluent .P::-webkit-scrollbar-corner{background-color:var(--webchat-colorNeutralBackground5)}.webchat-fluent .R{color:var(--webchat-colorNeutralForeground1);font-family:var(--webchat-fontFamilyBase);padding:0 10px 10px;text-rendering:optimizeLegibility;--webchat-sendbox-attachment-area-active: ;--webchat-sendbox-border-radius: var(--webchat-borderRadiusLarge)}.webchat-fluent .G{background-color:var(--webchat-colorNeutralBackground1);border-radius:var(--webchat-sendbox-border-radius);border:1px solid var(--webchat-colorNeutralStroke1);display:grid;font-family:var(--webchat-fontFamilyBase);font-size:14px;gap:6px;grid-template:[telephone-keypad-start] \"text-area\" [telephone-keypad-end] var(--webchat-sendbox-attachment-area-active) \"controls\" / [telephone-keypad] 1fr;line-height:20px;padding:8px;position:relative}.webchat-fluent .G:has(.t){--webchat-sendbox-attachment-area-active: \"attachment\" }.webchat-fluent .G:focus-within{border-color:var(--webchat-colorNeutralStroke1Selected)}.webchat-fluent .G:after{border-bottom-left-radius:var(--webchat-sendbox-border-radius);border-bottom-right-radius:var(--webchat-sendbox-border-radius);border-bottom:var(--webchat-strokeWidthThicker) solid var(--webchat-colorCompoundBrandForeground1Hover);bottom:-1px;clip-path:inset(calc(100% - var(--webchat-strokeWidthThicker)) 50% 0 50%);content:\"\";height:var(--webchat-sendbox-border-radius);left:-1px;position:absolute;right:-1px;transition:clip-path var(--webchat-durationUltraFast) var(--webchat-curveAccelerateMid)}.webchat-fluent .G:focus-within:after{clip-path:inset(calc(100% - var(--webchat-strokeWidthThicker)) 0 0 0);transition:clip-path var(--webchat-durationNormal) var(--webchat-curveDecelerateMid)}.webchat-fluent .G>.D{grid-area:text-area}.webchat-fluent .G>.t{grid-area:attachment}.webchat-fluent .G>.M{grid-area:controls}.webchat-fluent .G>.U{grid-area:telephone-keypad}.webchat-fluent .C{background-color:transparent;border:none;flex:auto;font-family:var(--webchat-fontFamilyBase);font-size:14px;line-height:20px;outline:none;padding:4px 4px 0;resize:none}.webchat-fluent .j{align-items:center;display:flex;padding-inline-start:4px}.webchat-fluent .T{color:var(--webchat-colorNeutralForeground4);cursor:default;font-family:var(--webchat-fontFamilyNumeric);font-size:10px;line-height:14px;margin-inline-end:4px}.webchat-fluent .I{color:var(--webchat-colorStatusDangerForeground1)}\n/*! For license information please see botframework-webchat-fluent-theme.css.LEGAL.txt */\n";function J(){if(globalThis.document){let e=document.createElement("style");e.append(document.createTextNode(Wt)),document.head.appendChild(e)}}var Le=require("react");function Xt(e){return(0,Le.useMemo)(()=>Object.freeze(Object.fromEntries(Object.entries(e).map(([t,o])=>[t,`${t} ${o}`]))),[e])}var m=Xt;var De=(0,N.memo)((0,N.forwardRef)(({button:e,"data-testid":t,onClick:o,ruby:r},n)=>{let u=m(He),p=(0,Ie.useRefFrom)(o),a=(0,N.useCallback)(()=>p.current?.(),[p]);return N.default.createElement("button",{className:u["telephone-keypad__button"],"data-testid":t,onClick:a,ref:n,type:"button"},N.default.createElement("span",{className:u["telephone-keypad__button__text"]},e==="star"?"\u2217":e==="pound"?"#":e),!!r&&N.default.createElement("ruby",{className:u["telephone-keypad__button__ruby"]},r))}));De.displayName="TelephoneKeypad.Button";var w=De;var Gt={sendBoxDropZone:"send box drop zone",sendBoxSendButton:"send box send button",sendBoxTextBox:"send box text area",sendBoxTelephoneKeypadButton1:"send box telephone keypad button 1",sendBoxTelephoneKeypadButton2:"send box telephone keypad button 2",sendBoxTelephoneKeypadButton3:"send box telephone keypad button 3",sendBoxTelephoneKeypadButton4:"send box telephone keypad button 4",sendBoxTelephoneKeypadButton5:"send box telephone keypad button 5",sendBoxTelephoneKeypadButton6:"send box telephone keypad button 6",sendBoxTelephoneKeypadButton7:"send box telephone keypad button 7",sendBoxTelephoneKeypadButton8:"send box telephone keypad button 8",sendBoxTelephoneKeypadButton9:"send box telephone keypad button 9",sendBoxTelephoneKeypadButton0:"send box telephone keypad button 0",sendBoxTelephoneKeypadButtonStar:"send box telephone keypad button star",sendBoxTelephoneKeypadButtonPound:"send box telephone keypad button pound",sendBoxTelephoneKeypadToolbarButton:"send box telephone keypad toolbar button",sendBoxUploadButton:"send box upload button"},f=Gt;var Q=require("react");function S(){let{setShown:e,shown:t}=(0,Q.useContext)(q);return(0,Q.useMemo)(()=>Object.freeze([t,e]),[t,e])}var ue={"telephone-keypad":"c","telephone-keypad__box":"n","telephone-keypad__info-message":"d","telephone-keypad__info-message-link":"i"};var j=i(require("react"));function Vt(e){return j.default.createElement("svg",{"aria-hidden":"true",className:e.className,height:"1em",viewBox:"0 0 20 20",width:"1em",xmlns:"http://www.w3.org/2000/svg"},j.default.createElement("path",{d:"M6 2a2 2 0 0 0-2 2v5.2c.32-.08.66-.15 1-.18V4a1 1 0 0 1 1-1h4v3.5c0 .83.67 1.5 1.5 1.5H15v8a1 1 0 0 1-1 1h-3.6c-.18.36-.4.7-.66 1H14a2 2 0 0 0 2-2V7.41c0-.4-.16-.78-.44-1.06l-3.91-3.91A1.5 1.5 0 0 0 10.59 2H6Zm8.8 5h-3.3a.5.5 0 0 1-.5-.5V3.2L14.8 7ZM10 14.5a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0Zm-4-2a.5.5 0 0 0-1 0V14H3.5a.5.5 0 0 0 0 1H5v1.5a.5.5 0 0 0 1 0V15h1.5a.5.5 0 0 0 0-1H6v-1.5Z",fill:"currentColor"}))}var me=(0,j.memo)(Vt);var W=i(require("react"));function Yt(e){return W.default.createElement("svg",{"aria-hidden":"true",className:e.className,height:"1em",viewBox:"0 0 20 20",width:"1em",xmlns:"http://www.w3.org/2000/svg"},W.default.createElement("path",{d:"m4.83 10.48 5.65-5.65a3 3 0 0 1 4.25 4.24L8 15.8a1.5 1.5 0 0 1-2.12-2.12l6-6.01a.5.5 0 1 0-.7-.71l-6 6.01a2.5 2.5 0 0 0 3.53 3.54l6.71-6.72a4 4 0 1 0-5.65-5.66L4.12 9.78a.5.5 0 0 0 .7.7Z",fill:"currentColor"}))}var pe=(0,W.memo)(Yt);var X=i(require("react"));function qt(e){return X.default.createElement("svg",{"aria-hidden":"true",className:e.className,height:"1em",viewBox:"0 0 16 16",width:"1em",xmlns:"http://www.w3.org/2000/svg"},X.default.createElement("path",{d:"M8.5 7.5a.5.5 0 1 0-1 0v3a.5.5 0 0 0 1 0v-3Zm.25-2a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM8 1a7 7 0 1 0 0 14A7 7 0 0 0 8 1ZM2 8a6 6 0 1 1 12 0A6 6 0 0 1 2 8Z",fill:"currentColor"}))}var be=(0,X.memo)(qt);var G=i(require("react"));function Jt(e){return G.default.createElement("svg",{"aria-hidden":"true",className:e.className,height:"1em",viewBox:"0 0 20 20",width:"1em",xmlns:"http://www.w3.org/2000/svg"},G.default.createElement("path",{d:"M2.18 2.11a.5.5 0 0 1 .54-.06l15 7.5a.5.5 0 0 1 0 .9l-15 7.5a.5.5 0 0 1-.7-.58L3.98 10 2.02 2.63a.5.5 0 0 1 .16-.52Zm2.7 8.39-1.61 6.06L16.38 10 3.27 3.44 4.88 9.5h6.62a.5.5 0 1 1 0 1H4.88Z",fill:"currentColor"}))}var fe=(0,G.memo)(Jt);var $=i(require("react"));function Qt(e){return $.default.createElement("svg",{"aria-hidden":"true",className:e.className,height:"1em",viewBox:"0 0 20 20",width:"1em",xmlns:"http://www.w3.org/2000/svg"},$.default.createElement("path",{d:"M6 5.25a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5Zm0 4a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5ZM7.25 12a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0ZM10 5.25a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5ZM11.25 8a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0ZM10 13.25a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5ZM11.25 16a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0ZM14 5.25a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5ZM15.25 8a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0ZM14 13.25a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5Z",fill:"currentColor"}))}var he=(0,$.memo)(Qt);var{LocalizedString:eo}=Pe.Components,Ke=(0,l.memo)(({children:e,isHorizontal:t})=>{let o=m(ue);return t?null:l.default.createElement("div",{className:o["telephone-keypad__box"]},e)});Ke.displayName="TelephoneKeypad:Orientation";var ze=(0,l.memo)(({autoFocus:e,className:t,onButtonClick:o,isHorizontal:r})=>{let n=(0,ge.useRefFrom)(e),u=m(ue),p=(0,l.useRef)(null),a=(0,ge.useRefFrom)(o),[,b]=S(),x=(0,l.useCallback)(()=>a.current?.("1"),[a]),s=(0,l.useCallback)(()=>a.current?.("2"),[a]),d=(0,l.useCallback)(()=>a.current?.("3"),[a]),g=(0,l.useCallback)(()=>a.current?.("4"),[a]),y=(0,l.useCallback)(()=>a.current?.("5"),[a]),A=(0,l.useCallback)(()=>a.current?.("6"),[a]),C=(0,l.useCallback)(()=>a.current?.("7"),[a]),F=(0,l.useCallback)(()=>a.current?.("8"),[a]),_=(0,l.useCallback)(()=>a.current?.("9"),[a]),B=(0,l.useCallback)(()=>a.current?.("0"),[a]),P=(0,l.useCallback)(()=>a.current?.("star"),[a]),z=(0,l.useCallback)(()=>a.current?.("pound"),[a]),le=(0,l.useCallback)(de=>{de.key==="Escape"&&b(!1)},[b]);return(0,l.useEffect)(()=>{n.current&&p.current?.focus()},[n,p]),l.default.createElement("div",{className:(0,Re.default)(u["telephone-keypad"],t),onKeyDown:le},l.default.createElement(Ke,{isHorizontal:r},l.default.createElement(w,{button:"1","data-testid":f.sendBoxTelephoneKeypadButton1,onClick:x,ref:p}),l.default.createElement(w,{button:"2","data-testid":f.sendBoxTelephoneKeypadButton2,onClick:s,ruby:"ABC"}),l.default.createElement(w,{button:"3","data-testid":f.sendBoxTelephoneKeypadButton3,onClick:d,ruby:"DEF"}),l.default.createElement(w,{button:"4","data-testid":f.sendBoxTelephoneKeypadButton4,onClick:g,ruby:"GHI"}),l.default.createElement(w,{button:"5","data-testid":f.sendBoxTelephoneKeypadButton5,onClick:y,ruby:"JKL"}),l.default.createElement(w,{button:"6","data-testid":f.sendBoxTelephoneKeypadButton6,onClick:A,ruby:"MNO"}),l.default.createElement(w,{button:"7","data-testid":f.sendBoxTelephoneKeypadButton7,onClick:C,ruby:"PQRS"}),l.default.createElement(w,{button:"8","data-testid":f.sendBoxTelephoneKeypadButton8,onClick:F,ruby:"TUV"}),l.default.createElement(w,{button:"9","data-testid":f.sendBoxTelephoneKeypadButton9,onClick:_,ruby:"WXYZ"}),l.default.createElement(w,{button:"star","data-testid":f.sendBoxTelephoneKeypadButtonStar,onClick:P}),l.default.createElement(w,{button:"0","data-testid":f.sendBoxTelephoneKeypadButton0,onClick:B,ruby:"+"}),l.default.createElement(w,{button:"pound","data-testid":f.sendBoxTelephoneKeypadButtonPound,onClick:z})),l.default.createElement("div",{className:u["telephone-keypad__info-message"]},l.default.createElement(be,null),l.default.createElement(eo,{linkClassName:u["telephone-keypad__info-message-link"],stringIds:"TELEPHONE_KEYPAD_INPUT_MESSAGE"})))});ze.displayName="TelephoneKeypad";var Oe=ze;var Ue=(0,ee.memo)(e=>S()[0]?ee.default.createElement(Oe,{...e}):null);Ue.displayName="TelephoneKeypad.Surrogate";var xe=Ue;var je=i(require("react")),We=i(require("classnames"));var Ze={theme:"a"};var oo="webchat-fluent";function te(e){let t=m(Ze);return je.default.createElement("div",{className:(0,We.default)(oo,t.theme)},e.children)}var Ct=require("botframework-webchat-component"),O=i(require("classnames")),c=i(require("react")),Se=require("use-ref-from");var $e=require("botframework-webchat-component"),Ve=i(require("classnames")),T=i(require("react")),Ye=require("use-ref-from");var Xe={"sendbox__attachment-drop-zone":"b","sendbox__attachment-drop-zone--droppable":"u","sendbox__attachment-drop-zone-icon":"h"};var{useLocalizer:no}=$e.hooks,ao=e=>{e.preventDefault()},Ge=e=>!!e.dataTransfer?.types?.some(t=>t.toLowerCase()==="files");function so(e,t){let o=e.parentNode;for(;o;){if(o===t)return!0;o=o.parentNode}return!1}var qe=e=>{let[t,o]=(0,T.useState)(!1),r=m(Xe),n=(0,T.useRef)(null),u=no(),p=(0,Ye.useRefFrom)(e.onFilesAdded);(0,T.useEffect)(()=>{let b=0,x=d=>{b++,Ge(d)&&o(n.current&&(d.target===n.current||d.target instanceof HTMLElement&&so(d.target,n.current))?"droppable":"visible")},s=()=>--b<=0&&o(!1);return document.addEventListener("dragenter",x,!1),document.addEventListener("dragleave",s,!1),()=>{document.removeEventListener("dragenter",x),document.removeEventListener("dragleave",s)}},[o]);let a=(0,T.useCallback)(b=>{b.preventDefault(),o(!1),Ge(b.nativeEvent)&&p.current([...b.dataTransfer.files])},[p,o]);return t?T.default.createElement("div",{className:(0,Ve.default)(r["sendbox__attachment-drop-zone"],{[r["sendbox__attachment-drop-zone--droppable"]]:t==="droppable"}),"data-testid":f.sendBoxDropZone,onDragOver:ao,onDrop:a,ref:n},T.default.createElement(me,{className:r["sendbox__attachment-drop-zone-icon"]}),u("TEXT_INPUT_DROP_ZONE")):null};qe.displayName="DropZone";var ye=(0,T.memo)(qe);var st=require("botframework-webchat-component"),lt=i(require("classnames")),E=i(require("react"));var rt=require("botframework-webchat-component"),nt=i(require("classnames")),L=i(require("react"));var Je={"suggested-action":"s","suggested-action__image":"g"};var H=i(require("react")),io=e=>e.preventDefault(),co=(0,H.forwardRef)(({"aria-hidden":e,children:t,disabled:o,onClick:r,tabIndex:n,...u},p)=>{let a=(0,H.useRef)(null);return H.default.createElement("button",{"aria-disabled":o?"true":"false","aria-hidden":e,onClick:o?io:r,ref:p||a,tabIndex:n,...o&&{"aria-disabled":"true",tabIndex:-1},...u,type:"button"},t)}),Qe=(0,H.memo)(co);var h=i(require("react")),et=(0,h.createContext)({itemEffector:()=>{throw new Error("botframework-webchat-fluent-theme rovingFocus: no provider for RovingFocusContext.")}});function uo(e){let t=(0,h.useRef)(0),o=(0,h.useRef)([]),r=(0,h.useCallback)(({current:s},d)=>s&&(s.tabIndex=t.current===d?0:-1),[t]),n=(0,h.useCallback)(s=>{let d;typeof s=="number"?d=s:d=s(t.current),d&&!o.current.at(d)?.current&&(d=0),t.current!==d&&(t.current=d,o.current.forEach((g,y)=>r(g,y)),o.current.at(d)?.current?.focus())},[r,o,t]),u=(0,h.useCallback)(s=>{let{target:d}=s,g=o.current.findIndex(({current:y})=>y===d);g!==-1&&n(g)},[o,n]),p=(0,h.useCallback)(s=>d=>{let g=!e.direction,y=/up|down/iu.test(s)&&e.direction==="vertical",A=/left|right/iu.test(s)&&e.direction==="horizontal",C=/right|down/iu.test(s),F=g||y||A?C?1:-1:0,_=o.current.map((P,z)=>z),B=_.indexOf(d)+F;return _.at(B)??0},[e.direction]),a=(0,h.useCallback)(s=>{let{key:d}=s;switch(d){case"Up":case"ArrowUp":case"Left":case"ArrowLeft":case"Down":case"ArrowDown":case"Right":case"ArrowRight":n(p(d));break;case"Home":n(0);break;case"End":n(-1);break;case"Escape":e.onEscapeKey?.();break;default:return}s.preventDefault(),s.stopPropagation()},[n,p,e]),b=(0,h.useCallback)((s,d)=>{let{current:g}=s;return o.current[Number(d)]=s,g.addEventListener("focus",u),g.addEventListener("keydown",a),r(s,d),()=>{g.removeEventListener("focus",u),g.removeEventListener("keydown",a),delete o.current[Number(d)]}},[u,a,r,o]),x=(0,h.useMemo)(()=>({itemEffector:b}),[b]);return h.default.createElement(et.Provider,{value:x},e.children)}function tt(e){let t=(0,h.useRef)(null),{itemEffector:o}=(0,h.useContext)(et);return(0,h.useEffect)(()=>o(t,e)),t}var ot=(0,h.memo)(uo);var{useDisabled:mo,useFocus:po,usePerformCardAction:bo,useScrollToEnd:fo,useStyleSet:ho,useSuggestedActions:go}=rt.hooks;function xo({buttonText:e,className:t,displayText:o,image:r,imageAlt:n,itemIndex:u,text:p,type:a,value:b}){let[x,s]=go(),[{suggestedAction:d}]=ho(),[g]=mo(),y=po(),A=tt(u),C=bo(),F=m(Je),_=fo(),B=(0,L.useCallback)(({target:P})=>{(async function(){await y("sendBoxWithoutKeyboard"),C({displayText:o,text:p,type:a,value:b},{target:P}),a==="openUrl"&&s([]),_()})()},[o,y,C,_,s,p,a,b]);return L.default.createElement(Qe,{className:(0,nt.default)(F["suggested-action"],d+"",(t||"")+""),disabled:g,onClick:B,ref:A,type:"button"},r&&L.default.createElement("img",{alt:n,className:F["suggested-action__image"],src:r}),L.default.createElement("span",null,e))}var at=(0,L.memo)(xo);function ve(e){let{title:t}=e,{type:o,value:r}=e;return o==="messageBack"?t||e.displayText:t||(typeof r=="string"?r:JSON.stringify(r))}var we={"suggested-actions":"p","suggested-actions--flow":"w","suggested-actions--stacked":"v"};var{useFocus:vo,useLocalizer:wo,useStyleOptions:To,useStyleSet:ko,useSuggestedActions:_o}=st.hooks;function Bo(e){let[{suggestedActionLayout:t}]=To(),[{suggestedActions:o}]=ko(),r=m(we);return E.default.createElement("div",{"aria-label":e["aria-label"],"aria-live":"polite","aria-orientation":"vertical",className:(0,lt.default)(r["suggested-actions"],o+"",{[r["suggested-actions--flow"]]:t==="flow",[r["suggested-actions--stacked"]]:t!=="flow"},e.className),role:"toolbar"},!!e.children&&!!E.default.Children.count(e.children)&&e.children)}function No(){let e=m(we),t=wo(),[o]=_o(),r=vo(),n=(0,E.useCallback)(()=>{r("sendBox")},[r]),u=o.map((p,a)=>{let{displayText:b,image:x,imageAltText:s,text:d,type:g,value:y}=p;return o?.length?E.default.createElement(at,{buttonText:ve(p),displayText:b,image:x,imageAlt:x&&(s||d),itemIndex:a,key:a,text:d,type:g,value:y}):null});return E.default.createElement(ot,{onEscapeKey:n},E.default.createElement(Bo,{"aria-label":t("SUGGESTED_ACTIONS_LABEL_ALT"),className:e["suggested-actions"]},u))}var Te=(0,E.memo)(No);var it=require("botframework-webchat-component"),k=i(require("react")),ct=require("use-ref-from");var re=i(require("classnames")),I=i(require("react"));var oe={sendbox__toolbar:"f","sendbox__toolbar-button":"x","sendbox__toolbar-button--selected":"k","sendbox__toolbar-separator":"m"};var Eo=e=>e.preventDefault(),R=(0,I.memo)(e=>{let t=m(oe);return I.default.createElement("button",{"aria-label":e["aria-label"],className:(0,re.default)(t["sendbox__toolbar-button"],e.className,{[t["sendbox__toolbar-button--selected"]]:e.selected}),"data-testid":e["data-testid"],onClick:e.disabled?Eo:e.onClick,type:e.type==="submit"?"submit":"button",...e.disabled&&{"aria-disabled":"true",tabIndex:-1}},e.children)});R.displayName="ToolbarButton";var ke=(0,I.memo)(e=>{let t=m(oe);return I.default.createElement("div",{className:(0,re.default)(t.sendbox__toolbar,e.className)},e.children)});ke.displayName="Toolbar";var _e=(0,I.memo)(e=>{let t=m(oe);return I.default.createElement("div",{"aria-orientation":"vertical",className:(0,re.default)(t["sendbox__toolbar-separator"],e.className),role:"separator"})});_e.displayName="ToolbarSeparator";var dt={"sendbox__add-attachment":"B","sendbox__add-attachment-input":"F"};var{useLocalizer:Fo,useStyleOptions:Ao}=it.hooks;function Mo(e){let t=(0,k.useRef)(null),o=m(dt),r=Fo(),[{uploadAccept:n,uploadMultiple:u}]=Ao(),p=(0,ct.useRefFrom)(e.onFilesAdded),a=(0,k.useCallback)(()=>t.current?.click(),[t]),b=(0,k.useCallback)(({target:{files:x}})=>{x&&(p.current?.([...x]),t.current&&(t.current.value=""))},[t,p]);return k.default.createElement("div",{className:o["sendbox__add-attachment"]},k.default.createElement("input",{accept:n,"aria-disabled":e.disabled,"aria-hidden":"true",className:o["sendbox__add-attachment-input"],multiple:u,onInput:e.disabled?void 0:b,readOnly:e.disabled,ref:t,role:"button",tabIndex:-1,type:"file"}),k.default.createElement(R,{"aria-label":r("TEXT_INPUT_UPLOAD_BUTTON_ALT"),"data-testid":f.sendBoxUploadButton,onClick:a},k.default.createElement(pe,null)))}var ut=(0,k.memo)(Mo);var pt=require("botframework-webchat-component"),ne=i(require("react")),bt=i(require("classnames"));var mt={sendbox__attachment:"y"};var{useLocalizer:Lo}=pt.hooks,Io={one:"TEXT_INPUT_ATTACHMENTS_ONE",two:"TEXT_INPUT_ATTACHMENTS_TWO",few:"TEXT_INPUT_ATTACHMENTS_FEW",many:"TEXT_INPUT_ATTACHMENTS_MANY",other:"TEXT_INPUT_ATTACHMENTS_OTHER"};function Do({attachments:e,className:t}){let o=m(mt),r=Lo({plural:!0});return e.length?ne.default.createElement("div",{className:(0,bt.default)(o.sendbox__attachment,t)},r(Io,e.length)):null}var ft=(0,ne.memo)(Do);var ae=i(require("react"));var ht={"sendbox__error-message":"N"};function Ro(e){let t=m(ht);return ae.default.createElement("span",{className:t["sendbox__error-message"],id:e.id,role:"alert"},e.error)}var gt=(0,ae.memo)(Ro);var K=i(require("react")),xt=require("botframework-webchat-component");var{useLocalizer:Ko}=xt.hooks,yt=(0,K.memo)(()=>{let[e,t]=S(),o=Ko(),r=(0,K.useCallback)(()=>t(n=>!n),[t]);return K.default.createElement(R,{"aria-label":o("TEXT_INPUT_TELEPHONE_KEYPAD_BUTTON_ALT"),"data-testid":f.sendBoxTelephoneKeypadToolbarButton,onClick:r,selected:e},K.default.createElement(he,null))});yt.displayName="SendBox.TelephoneKeypadToolbarButton";var vt=yt;var se=i(require("classnames")),D=i(require("react"));var wt={"sendbox__text-area":"S","sendbox__text-area--hidden":"z","sendbox__text-area-shared":"L","sendbox__text-area-doppelganger":"H","sendbox__text-area-input":"W","sendbox__text-area-input--scroll":"P"};var Tt=(0,D.forwardRef)((e,t)=>{let o=m(wt),r=(0,D.useCallback)(n=>{!n.shiftKey&&n.key==="Enter"&&(n.preventDefault(),"form"in n.target&&n.target.form instanceof HTMLFormElement&&n.target?.form?.requestSubmit())},[]);return D.default.createElement("div",{className:(0,se.default)(o["sendbox__text-area"],{[o["sendbox__text-area--hidden"]]:e.hidden},e.className),role:e.hidden?"hidden":void 0},D.default.createElement("div",{className:(0,se.default)(o["sendbox__text-area-doppelganger"],o["sendbox__text-area-shared"],o["sendbox__text-area-input--scroll"])},e.value||e.placeholder," "),D.default.createElement("textarea",{"aria-label":e["aria-label"],className:(0,se.default)(o["sendbox__text-area-input"],o["sendbox__text-area-shared"],o["sendbox__text-area-input--scroll"]),"data-testid":e["data-testid"],onInput:e.onInput,onKeyDown:r,placeholder:e.placeholder,ref:t,rows:e.startRows??1,tabIndex:e.hidden?-1:void 0,value:e.value}))});Tt.displayName="TextArea";var kt=Tt;var _t=require("botframework-webchat-component"),Be=require("react"),Bt=require("use-ref-from"),{useConnectivityStatus:Oo,useLocalizer:Uo}=_t.hooks,Zo=({attachments:e,message:t})=>{let[o]=Oo(),r=Uo(),n=(0,Bt.useRefFrom)(o!=="connected"&&o!=="reconnected"?"offline":!t&&!e.length?"empty":void 0),u=(0,Be.useMemo)(()=>Object.freeze(new Map().set("empty",r("SEND_BOX_IS_EMPTY_TOOLTIP_ALT")).set("offline",r("CONNECTIVITY_STATUS_ALT_FATAL"))),[r]);return(0,Be.useMemo)(()=>Object.freeze([n,n.current&&u.get(n.current)]),[u,n])},Nt=Zo;var St=require("react");function Ne(e){let t=(0,St.useMemo)(()=>Math.random().toString(36).substr(2,5),[]);return e=e?`${e}--`:"",`${e}${t}`}var Et={sendbox:"R",sendbox__sendbox:"G","sendbox__attachment--in-grid":"t","sendbox__text-area--in-grid":"D","sendbox__sendbox-controls--in-grid":"M","sendbox__telephone-keypad--in-grid":"U","sendbox__sendbox-text":"C","sendbox__sendbox-controls":"j","sendbox__text-counter":"T","sendbox__text-counter--error":"I"};var{useFocus:Wo,useLocalizer:Xo,useMakeThumbnail:Go,useRegisterFocusSendBox:$o,useSendBoxAttachments:Vo,useSendMessage:Yo,useStyleOptions:qo}=Ct.hooks;function Jo(e){let t=(0,c.useRef)(null),[o,r]=(0,c.useState)(""),[n,u]=Vo(),[{hideTelephoneKeypadButton:p,hideUploadButton:a,maxMessageLength:b}]=qo(),x=!!b&&o.length>b,s=m(Et),d=Xo(),g=Yo(),y=Go(),A=Ne("sendbox__error-message-id"),[C,F]=Nt({message:o,attachments:n}),[_]=S(),B=Wo();$o((0,c.useCallback)(({noKeyboard:v,waitUntil:ie})=>{t.current&&(v?ie((async()=>{let Z=t.current?.getAttribute("readonly");t.current?.setAttribute("readonly","true"),await new Promise(V=>setTimeout(V,0)),t.current?.focus(),typeof Z!="string"?t.current?.removeAttribute("readonly"):t.current?.setAttribute("readonly",Z)})()):t.current?.focus())},[t]));let P=(0,Se.useRefFrom)(n),z=(0,Se.useRefFrom)(o),le=(0,c.useCallback)(v=>{"tabIndex"in v.target&&typeof v.target.tabIndex=="number"&&v.target.tabIndex>=0||B("sendBox")},[B]),de=(0,c.useCallback)(v=>r(v.currentTarget.value),[r]),Ce=(0,c.useCallback)(async v=>{let ie=Object.freeze(await Promise.all(v.map(Z=>y(Z).then(V=>Object.freeze({blob:Z,...V&&{thumbnailURL:V}})))));u(ie)},[y,u]),Ht=(0,c.useCallback)(v=>{v.preventDefault(),C.current!=="empty"&&!x&&(g(z.current,void 0,{attachments:P.current}),r(""),u([])),B("sendBox")},[P,z,g,u,r,x,C,B]),Lt=(0,c.useCallback)(v=>g(`/DTMF ${v}`),[g]),It={"aria-invalid":"false",...F&&{"aria-invalid":"true","aria-errormessage":A}};return c.default.createElement("form",{...It,className:(0,O.default)(s.sendbox,e.className),onSubmit:Ht},c.default.createElement(Te,null),c.default.createElement("div",{className:(0,O.default)(s.sendbox__sendbox),onClickCapture:le},c.default.createElement(kt,{"aria-label":d(x?"TEXT_INPUT_LENGTH_EXCEEDED_ALT":"TEXT_INPUT_ALT"),className:(0,O.default)(s["sendbox__sendbox-text"],s["sendbox__text-area--in-grid"]),"data-testid":f.sendBoxTextBox,hidden:_,onInput:de,placeholder:e.placeholder??d("TEXT_INPUT_PLACEHOLDER"),ref:t,value:o}),c.default.createElement(xe,{autoFocus:!0,className:s["sendbox__telephone-keypad--in-grid"],isHorizontal:!1,onButtonClick:Lt}),c.default.createElement(ft,{attachments:n,className:s["sendbox__attachment--in-grid"]}),c.default.createElement("div",{className:(0,O.default)(s["sendbox__sendbox-controls"],s["sendbox__sendbox-controls--in-grid"])},!_&&b&&c.default.createElement("div",{className:(0,O.default)(s["sendbox__text-counter"],{[s["sendbox__text-counter--error"]]:x})},`${o.length}/${b}`),c.default.createElement(ke,null,!p&&c.default.createElement(vt,null),!a&&c.default.createElement(ut,{onFilesAdded:Ce}),c.default.createElement(_e,null),c.default.createElement(R,{"aria-label":d("TEXT_INPUT_SEND_BUTTON_ALT"),"data-testid":f.sendBoxSendButton,disabled:x||_,type:"submit"},c.default.createElement(fe,null)))),c.default.createElement(ye,{onFilesAdded:Ce}),c.default.createElement(gt,{error:F,id:A})))}var Ee=(0,c.memo)(Jo);var{ThemeProvider:Qo}=Ft.Components,er=[()=>()=>()=>Ee],tr=({children:e})=>U.default.createElement(te,null,U.default.createElement(ce,null,U.default.createElement(Qo,{sendBoxMiddleware:er},e))),At=(0,U.memo)(tr);var or="tsup",rr="commonjs",nr="4.17.1-main.20240508.bf8dbd9",ar={buildTool:or,moduleFormat:rr,version:nr};(0,Mt.injectMetaTag)("botframework-webchat:fluent-theme","version=4.17.1-main.20240508.bf8dbd9; build-tool=tsup; module-format=commonjs");J();
1
+ "use strict";var Dt=Object.create;var Y=Object.defineProperty;var Pt=Object.getOwnPropertyDescriptor;var Rt=Object.getOwnPropertyNames;var Kt=Object.getPrototypeOf,zt=Object.prototype.hasOwnProperty;var Ot=(e,t)=>{for(var o in t)Y(e,o,{get:t[o],enumerable:!0})},Fe=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Rt(t))!zt.call(e,n)&&n!==o&&Y(e,n,{get:()=>t[n],enumerable:!(r=Pt(t,n))||r.enumerable});return e};var i=(e,t,o)=>(o=e!=null?Dt(Kt(e)):{},Fe(t||!e||!e.__esModule?Y(o,"default",{value:e,enumerable:!0}):o,e)),Ut=e=>Fe(Y({},"__esModule",{value:!0}),e);var sr={};Ot(sr,{FluentThemeProvider:()=>At,buildInfo:()=>ar,testIds:()=>f});module.exports=Ut(sr);var Mt=require("inject-meta-tag");var Ft=require("botframework-webchat-component"),U=i(require("react"));var M=i(require("react"));var Ae=require("react"),Me=(0,Ae.createContext)(new Proxy({},{get(){throw new Error("botframework-webchat: This hook can only used under its corresponding <Provider>.")}}));Me.displayName="TelephoneKeypad.Context";var q=Me;var Zt=(0,M.memo)(({children:e})=>{let[t,o]=(0,M.useState)(!1),r=(0,M.useMemo)(()=>Object.freeze({setShown:o,shown:t}),[o,t]);return M.default.createElement(q.Provider,{value:r},e)}),ce=Zt;var ee=i(require("react"));var Pe=require("botframework-webchat-component"),Re=i(require("classnames")),l=i(require("react")),ge=require("use-ref-from");var N=i(require("react")),Ie=require("use-ref-from");var He={"telephone-keypad__button":"r","telephone-keypad__button__ruby":"e","telephone-keypad__button__text":"o","telephone-keypad--horizontal":"l"};var Wt=".webchat-fluent .r{-webkit-user-select:none;align-items:center;-webkit-appearance:none;appearance:none;background-color:#fff;border-radius:100%;border:solid 1px var(--webchat-colorNeutralStroke1);color:var(--webchat-colorGray200);font-weight:var(--webchat-fontWeightSemibold);cursor:pointer;display:flex;flex-direction:column;height:60px;opacity:.7;padding:0;position:relative;touch-action:none;user-select:none;width:60px}.webchat-fluent .r:hover{background-color:var(--webchat-colorGray30)}.webchat-fluent .e{color:var(--webchat-colorGray190);font-size:10px}.webchat-fluent .o{font-size:24px;margin-top:8px}.webchat-fluent .l .r{height:32px;justify-content:center;margin:8px 4px;width:32px}.webchat-fluent .l .e{display:none}.webchat-fluent .l .o{font-size:20px;margin-top:0}.webchat-fluent .c{align-items:center;background:var(--webchat-colorNeutralBackground1);border:none;border-radius:var(--webchat-borderRadiusXLarge);display:flex;flex-direction:column;font-family:var(--webchat-fontFamilyBase);justify-content:center}.webchat-fluent .n{box-sizing:border-box;display:grid;gap:16px;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(4,1fr);justify-items:center;padding:16px;width:100%}.webchat-fluent .d{align-items:center;color:var(--webchat-colorNeutralForeground4);display:flex;font-size:12px;gap:6px;margin-block-end:6px}.webchat-fluent .i{color:var(--webchat-colorBrandForegroundLink);text-decoration-color:transparent}.webchat-fluent .i:target{color:var(--webchat-colorBrandForegroundLinkSelected)}.webchat-fluent .i:hover{color:var(--webchat-colorBrandForegroundLinkHover);text-decoration:underline 1px currentColor}.webchat-fluent .i:active{color:var(--webchat-colorBrandForegroundLinkPressed)}.webchat-fluent .i:focus-visible{outline:none;text-decoration:underline 1px double var(--webchat-colorStrokeFocus2)}.webchat-fluent.a{display:contents;--webchat-colorNeutralForeground1: var(--colorNeutralForeground1, #242424);--webchat-colorNeutralForeground2: var(--colorNeutralForeground2, #424242);--webchat-colorNeutralForeground4: var(--colorNeutralForeground4, #707070);--webchat-colorNeutralForeground2BrandHover: var(--colorNeutralForeground2BrandHover, #02729c);--webchat-colorNeutralForeground2BrandPressed: var(--colorNeutralForeground2BrandPressed, #01678c);--webchat-colorNeutralForeground2BrandSelected: var(--colorNeutralForeground2BrandSelected, #067191);--webchat-colorNeutralForegroundDisabled: var(--colorNeutralForegroundDisabled, #bdbdbd);--webchat-colorNeutralBackground1: var(--colorNeutralBackground1, #ffffff);--webchat-colorNeutralBackground4: var(--colorNeutralBackground4, #f0f0f0);--webchat-colorNeutralBackground5: var(--colorNeutralBackground5, #ebebeb);--webchat-colorNeutralStroke1: var(--colorNeutralStroke1, #d1d1d1);--webchat-colorNeutralStroke2: var(--colorNeutralStroke2, #e0e0e0);--webchat-colorNeutralStroke1Selected: var(--colorNeutralStroke1Selected, #bdbdbd);--webchat-colorStrokeFocus2: var(--colorStrokeFocus2, #000000);--webchat-colorBrandStroke2: var(--colorBrandStroke2, #9edcf7);--webchat-colorBrandForeground2Hover: var(--colorBrandForeground2Hover, #015a7a);--webchat-colorBrandForeground2Pressed: var(--colorBrandForeground2Pressed, #01384d);--webchat-colorBrandForegroundLink: var(--colorBrandForegroundLink, #01678c);--webchat-colorBrandForegroundLinkHover: var(--colorBrandForegroundLinkHover, #015a7a);--webchat-colorBrandForegroundLinkPressed: var(--colorBrandForegroundLinkPressed, #014259);--webchat-colorBrandForegroundLinkSelected: var(--colorBrandForegroundLinkSelected, #01678c);--webchat-colorBrandBackground2Hover: var(--colorBrandBackground2Hover, #bee7fa);--webchat-colorBrandBackground2Pressed: var(--colorBrandBackground2Pressed, #7fd2f5);--webchat-colorCompoundBrandForeground1Hover: var(--colorCompoundBrandForeground1Hover, #02729c);--webchat-colorStatusDangerForeground1: var(--colorStatusDangerForeground1, #b10e1c);--webchat-colorGray30: var(--colorGray30, #edebe9);--webchat-colorGray160: var(--colorGray160, #323130);--webchat-colorGray190: var(--colorGray190, #201f1e);--webchat-colorGray200: var(--colorGray200, #1b1a19);--webchat-borderRadiusSmall: var(--borderRadiusSmall, 2px);--webchat-borderRadiusLarge: var(--borderRadiusLarge, 6px);--webchat-borderRadiusXLarge: var(--borderRadiusXLarge, 8px);--webchat-shadow16: var(--shadow16, 0 6.4px 14.4px 0 rgba(0, 0, 0, .132), 0 1.2px 3.6px 0 rgba(0, 0, 0, .108));--webchat-spacingHorizontalMNudge: var(--spacingHorizontalMNudge, 10px);--webchat-fontFamilyBase: var(--fontFamilyBase, \"Segoe UI\", \"Segoe UI Web (West European)\", -apple-system, BlinkMacSystemFont, Roboto, \"Helvetica Neue\", sans-serif);--webchat-fontFamilyNumeric: var(--fontFamilyNumeric, Bahnschrift, \"Segoe UI\", \"Segoe UI Web (West European)\", -apple-system, BlinkMacSystemFont, Roboto, \"Helvetica Neue\", sans-serif);--webchat-fontWeightSemibold: var(--fontWeightSemibold, 600);--webchat-strokeWidthThicker: var(--strokeWidthThicker, 3px);--webchat-durationUltraFast: var(--durationUltraFast, 0);--webchat-durationNormal: var(--durationNormal, .2s);--webchat-curveAccelerateMid: var(--curveAccelerateMid, cubic-bezier(1,0,1,1));--webchat-curveDecelerateMid: var(--curveDecelerateMid, cubic-bezier(0,0,0,1))}@media (prefers-reduced-motion){.webchat-fluent.a{--webchat-durationUltraFast: .01ms;--webchat-durationNormal: .01ms}}.webchat-fluent .b{background-color:var(--webchat-colorNeutralBackground4);border-radius:inherit;cursor:copy;display:grid;gap:8px;inset:0;place-content:center;place-items:center;position:absolute}.webchat-fluent .u{background-color:#e00;color:#fff}.webchat-fluent .h{height:36px;pointer-events:none;width:36px}.webchat-fluent .s{align-items:center;background:transparent;border-radius:8px;border:1px solid var(--webchat-colorBrandStroke2);color:currentColor;cursor:pointer;display:flex;font-size:12px;gap:4px;padding:4px 8px;text-align:start;transition:all .15s ease-out}@media (hover: hover){.webchat-fluent .s:not([aria-disabled=true]):hover{background-color:var(--webchat-colorBrandBackground2Hover);color:var(--webchat-colorBrandForeground2Hover)}}.webchat-fluent .s:not([aria-disabled=true]):active{background-color:var(--webchat-colorBrandBackground2Pressed);color:var(--webchat-colorBrandForeground2Pressed)}.webchat-fluent .s[aria-disabled=true]{color:var(--webchat-colorNeutralForegroundDisabled);cursor:not-allowed}.webchat-fluent .g{font-size:12px;height:1em;width:1em}.webchat-fluent .p{align-items:flex-end;align-self:flex-end;display:flex;flex-direction:column;gap:8px}.webchat-fluent .p:not(:empty){padding-block-end:8px;padding-inline-start:4px}.webchat-fluent .p.w{flex-direction:row;flex-wrap:wrap;justify-content:flex-end}.webchat-fluent .p.v{flex-direction:column}.webchat-fluent .f{display:flex;gap:4px;margin-inline-start:auto}.webchat-fluent .x{align-items:center;-webkit-appearance:none;appearance:none;aspect-ratio:1;background:transparent;border-radius:var(--webchat-borderRadiusSmall);border:none;color:currentColor;cursor:pointer;display:flex;justify-content:center;padding:3px;width:32px}.webchat-fluent .x>svg{font-size:20px;pointer-events:none}.webchat-fluent .x.k{color:var(--webchat-colorNeutralForeground2BrandSelected)}@media (hover: hover){.webchat-fluent .x:not([aria-disabled=true]):hover{color:var(--webchat-colorNeutralForeground2BrandHover)}}.webchat-fluent .x:not([aria-disabled=true]):active{color:var(--webchat-colorNeutralForeground2BrandPressed)}.webchat-fluent .x[aria-disabled=true]{color:var(--webchat-colorNeutralForegroundDisabled);cursor:not-allowed}.webchat-fluent .m{align-self:center;border-inline-end:1px solid var(--webchat-colorNeutralStroke2);height:28px}.webchat-fluent .m:is(:first-child,:last-child,:only-child){display:none}.webchat-fluent .B{display:grid}.webchat-fluent .F{font-size:0;height:0;opacity:0;width:1px}.webchat-fluent .y{border-radius:var(--webchat-borderRadiusLarge);border:1px solid var(--webchat-colorNeutralStroke1);cursor:default;padding:6px 8px;width:fit-content}.webchat-fluent .N{color:transparent;font-size:0;height:0;left:0;position:absolute;top:0;width:0}.webchat-fluent .S{display:grid;grid-template-areas:\"main\";max-height:200px;overflow:hidden}.webchat-fluent .z{height:0;visibility:collapse}.webchat-fluent .L{border:none;font:inherit;grid-area:main;outline:inherit;overflow-wrap:anywhere;resize:inherit;scrollbar-gutter:stable}.webchat-fluent .H{overflow:hidden;visibility:hidden;white-space:pre-wrap}.webchat-fluent .W{background-color:inherit;color:currentColor;height:100%;padding:0}.webchat-fluent .P{scrollbar-color:unset;scrollbar-width:unset;-moz-scrollbar-color:var(--webchat-colorNeutralBackground5) var(--webchat-colorNeutralForeground2);-moz-scrollbar-width:thin}.webchat-fluent .P::-webkit-scrollbar{width:8px}.webchat-fluent .P::-webkit-scrollbar-track{background-color:var(--webchat-colorNeutralBackground5);border-radius:16px}.webchat-fluent .P::-webkit-scrollbar-thumb{background-color:var(--webchat-colorNeutralForeground2);border-radius:16px}.webchat-fluent .P::-webkit-scrollbar-corner{background-color:var(--webchat-colorNeutralBackground5)}.webchat-fluent .R{color:var(--webchat-colorNeutralForeground1);font-family:var(--webchat-fontFamilyBase);padding:0 10px 10px;text-rendering:optimizeLegibility;--webchat-sendbox-attachment-area-active: ;--webchat-sendbox-border-radius: var(--webchat-borderRadiusLarge)}.webchat-fluent .G{background-color:var(--webchat-colorNeutralBackground1);border-radius:var(--webchat-sendbox-border-radius);border:1px solid var(--webchat-colorNeutralStroke1);display:grid;font-family:var(--webchat-fontFamilyBase);font-size:14px;gap:6px;grid-template:[telephone-keypad-start] \"text-area\" [telephone-keypad-end] var(--webchat-sendbox-attachment-area-active) \"controls\" / [telephone-keypad] 1fr;line-height:20px;padding:8px;position:relative}.webchat-fluent .G:has(.t){--webchat-sendbox-attachment-area-active: \"attachment\" }.webchat-fluent .G:focus-within{border-color:var(--webchat-colorNeutralStroke1Selected)}.webchat-fluent .G:after{border-bottom-left-radius:var(--webchat-sendbox-border-radius);border-bottom-right-radius:var(--webchat-sendbox-border-radius);border-bottom:var(--webchat-strokeWidthThicker) solid var(--webchat-colorCompoundBrandForeground1Hover);bottom:-1px;clip-path:inset(calc(100% - var(--webchat-strokeWidthThicker)) 50% 0 50%);content:\"\";height:var(--webchat-sendbox-border-radius);left:-1px;position:absolute;right:-1px;transition:clip-path var(--webchat-durationUltraFast) var(--webchat-curveAccelerateMid)}.webchat-fluent .G:focus-within:after{clip-path:inset(calc(100% - var(--webchat-strokeWidthThicker)) 0 0 0);transition:clip-path var(--webchat-durationNormal) var(--webchat-curveDecelerateMid)}.webchat-fluent .G>.D{grid-area:text-area}.webchat-fluent .G>.t{grid-area:attachment}.webchat-fluent .G>.M{grid-area:controls}.webchat-fluent .G>.U{grid-area:telephone-keypad}.webchat-fluent .C{background-color:transparent;border:none;flex:auto;font-family:var(--webchat-fontFamilyBase);font-size:14px;line-height:20px;outline:none;padding:4px 4px 0;resize:none}.webchat-fluent .j{align-items:center;display:flex;padding-inline-start:4px}.webchat-fluent .T{color:var(--webchat-colorNeutralForeground4);cursor:default;font-family:var(--webchat-fontFamilyNumeric);font-size:10px;line-height:14px;margin-inline-end:4px}.webchat-fluent .I{color:var(--webchat-colorStatusDangerForeground1)}\n/*! For license information please see botframework-webchat-fluent-theme.css.LEGAL.txt */\n";function J(){if(globalThis.document){let e=document.createElement("style");e.append(document.createTextNode(Wt)),document.head.appendChild(e)}}var Le=require("react");function Xt(e){return(0,Le.useMemo)(()=>Object.freeze(Object.fromEntries(Object.entries(e).map(([t,o])=>[t,`${t} ${o}`]))),[e])}var m=Xt;var De=(0,N.memo)((0,N.forwardRef)(({button:e,"data-testid":t,onClick:o,ruby:r},n)=>{let u=m(He),p=(0,Ie.useRefFrom)(o),a=(0,N.useCallback)(()=>p.current?.(),[p]);return N.default.createElement("button",{className:u["telephone-keypad__button"],"data-testid":t,onClick:a,ref:n,type:"button"},N.default.createElement("span",{className:u["telephone-keypad__button__text"]},e==="star"?"\u2217":e==="pound"?"#":e),!!r&&N.default.createElement("ruby",{className:u["telephone-keypad__button__ruby"]},r))}));De.displayName="TelephoneKeypad.Button";var w=De;var Gt={sendBoxDropZone:"send box drop zone",sendBoxSendButton:"send box send button",sendBoxTextBox:"send box text area",sendBoxTelephoneKeypadButton1:"send box telephone keypad button 1",sendBoxTelephoneKeypadButton2:"send box telephone keypad button 2",sendBoxTelephoneKeypadButton3:"send box telephone keypad button 3",sendBoxTelephoneKeypadButton4:"send box telephone keypad button 4",sendBoxTelephoneKeypadButton5:"send box telephone keypad button 5",sendBoxTelephoneKeypadButton6:"send box telephone keypad button 6",sendBoxTelephoneKeypadButton7:"send box telephone keypad button 7",sendBoxTelephoneKeypadButton8:"send box telephone keypad button 8",sendBoxTelephoneKeypadButton9:"send box telephone keypad button 9",sendBoxTelephoneKeypadButton0:"send box telephone keypad button 0",sendBoxTelephoneKeypadButtonStar:"send box telephone keypad button star",sendBoxTelephoneKeypadButtonPound:"send box telephone keypad button pound",sendBoxTelephoneKeypadToolbarButton:"send box telephone keypad toolbar button",sendBoxUploadButton:"send box upload button"},f=Gt;var Q=require("react");function S(){let{setShown:e,shown:t}=(0,Q.useContext)(q);return(0,Q.useMemo)(()=>Object.freeze([t,e]),[t,e])}var ue={"telephone-keypad":"c","telephone-keypad__box":"n","telephone-keypad__info-message":"d","telephone-keypad__info-message-link":"i"};var j=i(require("react"));function Vt(e){return j.default.createElement("svg",{"aria-hidden":"true",className:e.className,height:"1em",viewBox:"0 0 20 20",width:"1em",xmlns:"http://www.w3.org/2000/svg"},j.default.createElement("path",{d:"M6 2a2 2 0 0 0-2 2v5.2c.32-.08.66-.15 1-.18V4a1 1 0 0 1 1-1h4v3.5c0 .83.67 1.5 1.5 1.5H15v8a1 1 0 0 1-1 1h-3.6c-.18.36-.4.7-.66 1H14a2 2 0 0 0 2-2V7.41c0-.4-.16-.78-.44-1.06l-3.91-3.91A1.5 1.5 0 0 0 10.59 2H6Zm8.8 5h-3.3a.5.5 0 0 1-.5-.5V3.2L14.8 7ZM10 14.5a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0Zm-4-2a.5.5 0 0 0-1 0V14H3.5a.5.5 0 0 0 0 1H5v1.5a.5.5 0 0 0 1 0V15h1.5a.5.5 0 0 0 0-1H6v-1.5Z",fill:"currentColor"}))}var me=(0,j.memo)(Vt);var W=i(require("react"));function Yt(e){return W.default.createElement("svg",{"aria-hidden":"true",className:e.className,height:"1em",viewBox:"0 0 20 20",width:"1em",xmlns:"http://www.w3.org/2000/svg"},W.default.createElement("path",{d:"m4.83 10.48 5.65-5.65a3 3 0 0 1 4.25 4.24L8 15.8a1.5 1.5 0 0 1-2.12-2.12l6-6.01a.5.5 0 1 0-.7-.71l-6 6.01a2.5 2.5 0 0 0 3.53 3.54l6.71-6.72a4 4 0 1 0-5.65-5.66L4.12 9.78a.5.5 0 0 0 .7.7Z",fill:"currentColor"}))}var pe=(0,W.memo)(Yt);var X=i(require("react"));function qt(e){return X.default.createElement("svg",{"aria-hidden":"true",className:e.className,height:"1em",viewBox:"0 0 16 16",width:"1em",xmlns:"http://www.w3.org/2000/svg"},X.default.createElement("path",{d:"M8.5 7.5a.5.5 0 1 0-1 0v3a.5.5 0 0 0 1 0v-3Zm.25-2a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM8 1a7 7 0 1 0 0 14A7 7 0 0 0 8 1ZM2 8a6 6 0 1 1 12 0A6 6 0 0 1 2 8Z",fill:"currentColor"}))}var be=(0,X.memo)(qt);var G=i(require("react"));function Jt(e){return G.default.createElement("svg",{"aria-hidden":"true",className:e.className,height:"1em",viewBox:"0 0 20 20",width:"1em",xmlns:"http://www.w3.org/2000/svg"},G.default.createElement("path",{d:"M2.18 2.11a.5.5 0 0 1 .54-.06l15 7.5a.5.5 0 0 1 0 .9l-15 7.5a.5.5 0 0 1-.7-.58L3.98 10 2.02 2.63a.5.5 0 0 1 .16-.52Zm2.7 8.39-1.61 6.06L16.38 10 3.27 3.44 4.88 9.5h6.62a.5.5 0 1 1 0 1H4.88Z",fill:"currentColor"}))}var fe=(0,G.memo)(Jt);var $=i(require("react"));function Qt(e){return $.default.createElement("svg",{"aria-hidden":"true",className:e.className,height:"1em",viewBox:"0 0 20 20",width:"1em",xmlns:"http://www.w3.org/2000/svg"},$.default.createElement("path",{d:"M6 5.25a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5Zm0 4a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5ZM7.25 12a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0ZM10 5.25a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5ZM11.25 8a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0ZM10 13.25a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5ZM11.25 16a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0ZM14 5.25a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5ZM15.25 8a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0ZM14 13.25a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5Z",fill:"currentColor"}))}var he=(0,$.memo)(Qt);var{LocalizedString:eo}=Pe.Components,Ke=(0,l.memo)(({children:e,isHorizontal:t})=>{let o=m(ue);return t?null:l.default.createElement("div",{className:o["telephone-keypad__box"]},e)});Ke.displayName="TelephoneKeypad:Orientation";var ze=(0,l.memo)(({autoFocus:e,className:t,onButtonClick:o,isHorizontal:r})=>{let n=(0,ge.useRefFrom)(e),u=m(ue),p=(0,l.useRef)(null),a=(0,ge.useRefFrom)(o),[,b]=S(),x=(0,l.useCallback)(()=>a.current?.("1"),[a]),s=(0,l.useCallback)(()=>a.current?.("2"),[a]),d=(0,l.useCallback)(()=>a.current?.("3"),[a]),g=(0,l.useCallback)(()=>a.current?.("4"),[a]),y=(0,l.useCallback)(()=>a.current?.("5"),[a]),A=(0,l.useCallback)(()=>a.current?.("6"),[a]),C=(0,l.useCallback)(()=>a.current?.("7"),[a]),F=(0,l.useCallback)(()=>a.current?.("8"),[a]),_=(0,l.useCallback)(()=>a.current?.("9"),[a]),B=(0,l.useCallback)(()=>a.current?.("0"),[a]),P=(0,l.useCallback)(()=>a.current?.("star"),[a]),z=(0,l.useCallback)(()=>a.current?.("pound"),[a]),le=(0,l.useCallback)(de=>{de.key==="Escape"&&b(!1)},[b]);return(0,l.useEffect)(()=>{n.current&&p.current?.focus()},[n,p]),l.default.createElement("div",{className:(0,Re.default)(u["telephone-keypad"],t),onKeyDown:le},l.default.createElement(Ke,{isHorizontal:r},l.default.createElement(w,{button:"1","data-testid":f.sendBoxTelephoneKeypadButton1,onClick:x,ref:p}),l.default.createElement(w,{button:"2","data-testid":f.sendBoxTelephoneKeypadButton2,onClick:s,ruby:"ABC"}),l.default.createElement(w,{button:"3","data-testid":f.sendBoxTelephoneKeypadButton3,onClick:d,ruby:"DEF"}),l.default.createElement(w,{button:"4","data-testid":f.sendBoxTelephoneKeypadButton4,onClick:g,ruby:"GHI"}),l.default.createElement(w,{button:"5","data-testid":f.sendBoxTelephoneKeypadButton5,onClick:y,ruby:"JKL"}),l.default.createElement(w,{button:"6","data-testid":f.sendBoxTelephoneKeypadButton6,onClick:A,ruby:"MNO"}),l.default.createElement(w,{button:"7","data-testid":f.sendBoxTelephoneKeypadButton7,onClick:C,ruby:"PQRS"}),l.default.createElement(w,{button:"8","data-testid":f.sendBoxTelephoneKeypadButton8,onClick:F,ruby:"TUV"}),l.default.createElement(w,{button:"9","data-testid":f.sendBoxTelephoneKeypadButton9,onClick:_,ruby:"WXYZ"}),l.default.createElement(w,{button:"star","data-testid":f.sendBoxTelephoneKeypadButtonStar,onClick:P}),l.default.createElement(w,{button:"0","data-testid":f.sendBoxTelephoneKeypadButton0,onClick:B,ruby:"+"}),l.default.createElement(w,{button:"pound","data-testid":f.sendBoxTelephoneKeypadButtonPound,onClick:z})),l.default.createElement("div",{className:u["telephone-keypad__info-message"]},l.default.createElement(be,null),l.default.createElement(eo,{linkClassName:u["telephone-keypad__info-message-link"],stringIds:"TELEPHONE_KEYPAD_INPUT_MESSAGE"})))});ze.displayName="TelephoneKeypad";var Oe=ze;var Ue=(0,ee.memo)(e=>S()[0]?ee.default.createElement(Oe,{...e}):null);Ue.displayName="TelephoneKeypad.Surrogate";var xe=Ue;var je=i(require("react")),We=i(require("classnames"));var Ze={theme:"a"};var oo="webchat-fluent";function te(e){let t=m(Ze);return je.default.createElement("div",{className:(0,We.default)(oo,t.theme)},e.children)}var Ct=require("botframework-webchat-component"),O=i(require("classnames")),c=i(require("react")),Se=require("use-ref-from");var $e=require("botframework-webchat-component"),Ve=i(require("classnames")),T=i(require("react")),Ye=require("use-ref-from");var Xe={"sendbox__attachment-drop-zone":"b","sendbox__attachment-drop-zone--droppable":"u","sendbox__attachment-drop-zone-icon":"h"};var{useLocalizer:no}=$e.hooks,ao=e=>{e.preventDefault()},Ge=e=>!!e.dataTransfer?.types?.some(t=>t.toLowerCase()==="files");function so(e,t){let o=e.parentNode;for(;o;){if(o===t)return!0;o=o.parentNode}return!1}var qe=e=>{let[t,o]=(0,T.useState)(!1),r=m(Xe),n=(0,T.useRef)(null),u=no(),p=(0,Ye.useRefFrom)(e.onFilesAdded);(0,T.useEffect)(()=>{let b=0,x=d=>{b++,Ge(d)&&o(n.current&&(d.target===n.current||d.target instanceof HTMLElement&&so(d.target,n.current))?"droppable":"visible")},s=()=>--b<=0&&o(!1);return document.addEventListener("dragenter",x,!1),document.addEventListener("dragleave",s,!1),()=>{document.removeEventListener("dragenter",x),document.removeEventListener("dragleave",s)}},[o]);let a=(0,T.useCallback)(b=>{b.preventDefault(),o(!1),Ge(b.nativeEvent)&&p.current([...b.dataTransfer.files])},[p,o]);return t?T.default.createElement("div",{className:(0,Ve.default)(r["sendbox__attachment-drop-zone"],{[r["sendbox__attachment-drop-zone--droppable"]]:t==="droppable"}),"data-testid":f.sendBoxDropZone,onDragOver:ao,onDrop:a,ref:n},T.default.createElement(me,{className:r["sendbox__attachment-drop-zone-icon"]}),u("TEXT_INPUT_DROP_ZONE")):null};qe.displayName="DropZone";var ye=(0,T.memo)(qe);var st=require("botframework-webchat-component"),lt=i(require("classnames")),E=i(require("react"));var rt=require("botframework-webchat-component"),nt=i(require("classnames")),L=i(require("react"));var Je={"suggested-action":"s","suggested-action__image":"g"};var H=i(require("react")),io=e=>e.preventDefault(),co=(0,H.forwardRef)(({"aria-hidden":e,children:t,disabled:o,onClick:r,tabIndex:n,...u},p)=>{let a=(0,H.useRef)(null);return H.default.createElement("button",{"aria-disabled":o?"true":"false","aria-hidden":e,onClick:o?io:r,ref:p||a,tabIndex:n,...o&&{"aria-disabled":"true",tabIndex:-1},...u,type:"button"},t)}),Qe=(0,H.memo)(co);var h=i(require("react")),et=(0,h.createContext)({itemEffector:()=>{throw new Error("botframework-webchat-fluent-theme rovingFocus: no provider for RovingFocusContext.")}});function uo(e){let t=(0,h.useRef)(0),o=(0,h.useRef)([]),r=(0,h.useCallback)(({current:s},d)=>s&&(s.tabIndex=t.current===d?0:-1),[t]),n=(0,h.useCallback)(s=>{let d;typeof s=="number"?d=s:d=s(t.current),d&&!o.current.at(d)?.current&&(d=0),t.current!==d&&(t.current=d,o.current.forEach((g,y)=>r(g,y)),o.current.at(d)?.current?.focus())},[r,o,t]),u=(0,h.useCallback)(s=>{let{target:d}=s,g=o.current.findIndex(({current:y})=>y===d);g!==-1&&n(g)},[o,n]),p=(0,h.useCallback)(s=>d=>{let g=!e.direction,y=/up|down/iu.test(s)&&e.direction==="vertical",A=/left|right/iu.test(s)&&e.direction==="horizontal",C=/right|down/iu.test(s),F=g||y||A?C?1:-1:0,_=o.current.map((P,z)=>z),B=_.indexOf(d)+F;return _.at(B)??0},[e.direction]),a=(0,h.useCallback)(s=>{let{key:d}=s;switch(d){case"Up":case"ArrowUp":case"Left":case"ArrowLeft":case"Down":case"ArrowDown":case"Right":case"ArrowRight":n(p(d));break;case"Home":n(0);break;case"End":n(-1);break;case"Escape":e.onEscapeKey?.();break;default:return}s.preventDefault(),s.stopPropagation()},[n,p,e]),b=(0,h.useCallback)((s,d)=>{let{current:g}=s;return o.current[Number(d)]=s,g.addEventListener("focus",u),g.addEventListener("keydown",a),r(s,d),()=>{g.removeEventListener("focus",u),g.removeEventListener("keydown",a),delete o.current[Number(d)]}},[u,a,r,o]),x=(0,h.useMemo)(()=>({itemEffector:b}),[b]);return h.default.createElement(et.Provider,{value:x},e.children)}function tt(e){let t=(0,h.useRef)(null),{itemEffector:o}=(0,h.useContext)(et);return(0,h.useEffect)(()=>o(t,e)),t}var ot=(0,h.memo)(uo);var{useDisabled:mo,useFocus:po,usePerformCardAction:bo,useScrollToEnd:fo,useStyleSet:ho,useSuggestedActions:go}=rt.hooks;function xo({buttonText:e,className:t,displayText:o,image:r,imageAlt:n,itemIndex:u,text:p,type:a,value:b}){let[x,s]=go(),[{suggestedAction:d}]=ho(),[g]=mo(),y=po(),A=tt(u),C=bo(),F=m(Je),_=fo(),B=(0,L.useCallback)(({target:P})=>{(async function(){await y("sendBoxWithoutKeyboard"),C({displayText:o,text:p,type:a,value:b},{target:P}),a==="openUrl"&&s([]),_()})()},[o,y,C,_,s,p,a,b]);return L.default.createElement(Qe,{className:(0,nt.default)(F["suggested-action"],d+"",(t||"")+""),disabled:g,onClick:B,ref:A,type:"button"},r&&L.default.createElement("img",{alt:n,className:F["suggested-action__image"],src:r}),L.default.createElement("span",null,e))}var at=(0,L.memo)(xo);function ve(e){let{title:t}=e,{type:o,value:r}=e;return o==="messageBack"?t||e.displayText:t||(typeof r=="string"?r:JSON.stringify(r))}var we={"suggested-actions":"p","suggested-actions--flow":"w","suggested-actions--stacked":"v"};var{useFocus:vo,useLocalizer:wo,useStyleOptions:To,useStyleSet:ko,useSuggestedActions:_o}=st.hooks;function Bo(e){let[{suggestedActionLayout:t}]=To(),[{suggestedActions:o}]=ko(),r=m(we);return E.default.createElement("div",{"aria-label":e["aria-label"],"aria-live":"polite","aria-orientation":"vertical",className:(0,lt.default)(r["suggested-actions"],o+"",{[r["suggested-actions--flow"]]:t==="flow",[r["suggested-actions--stacked"]]:t!=="flow"},e.className),role:"toolbar"},!!e.children&&!!E.default.Children.count(e.children)&&e.children)}function No(){let e=m(we),t=wo(),[o]=_o(),r=vo(),n=(0,E.useCallback)(()=>{r("sendBox")},[r]),u=o.map((p,a)=>{let{displayText:b,image:x,imageAltText:s,text:d,type:g,value:y}=p;return o?.length?E.default.createElement(at,{buttonText:ve(p),displayText:b,image:x,imageAlt:x&&(s||d),itemIndex:a,key:a,text:d,type:g,value:y}):null});return E.default.createElement(ot,{onEscapeKey:n},E.default.createElement(Bo,{"aria-label":t("SUGGESTED_ACTIONS_LABEL_ALT"),className:e["suggested-actions"]},u))}var Te=(0,E.memo)(No);var it=require("botframework-webchat-component"),k=i(require("react")),ct=require("use-ref-from");var re=i(require("classnames")),I=i(require("react"));var oe={sendbox__toolbar:"f","sendbox__toolbar-button":"x","sendbox__toolbar-button--selected":"k","sendbox__toolbar-separator":"m"};var Eo=e=>e.preventDefault(),R=(0,I.memo)(e=>{let t=m(oe);return I.default.createElement("button",{"aria-label":e["aria-label"],className:(0,re.default)(t["sendbox__toolbar-button"],e.className,{[t["sendbox__toolbar-button--selected"]]:e.selected}),"data-testid":e["data-testid"],onClick:e.disabled?Eo:e.onClick,type:e.type==="submit"?"submit":"button",...e.disabled&&{"aria-disabled":"true",tabIndex:-1}},e.children)});R.displayName="ToolbarButton";var ke=(0,I.memo)(e=>{let t=m(oe);return I.default.createElement("div",{className:(0,re.default)(t.sendbox__toolbar,e.className)},e.children)});ke.displayName="Toolbar";var _e=(0,I.memo)(e=>{let t=m(oe);return I.default.createElement("div",{"aria-orientation":"vertical",className:(0,re.default)(t["sendbox__toolbar-separator"],e.className),role:"separator"})});_e.displayName="ToolbarSeparator";var dt={"sendbox__add-attachment":"B","sendbox__add-attachment-input":"F"};var{useLocalizer:Fo,useStyleOptions:Ao}=it.hooks;function Mo(e){let t=(0,k.useRef)(null),o=m(dt),r=Fo(),[{uploadAccept:n,uploadMultiple:u}]=Ao(),p=(0,ct.useRefFrom)(e.onFilesAdded),a=(0,k.useCallback)(()=>t.current?.click(),[t]),b=(0,k.useCallback)(({target:{files:x}})=>{x&&(p.current?.([...x]),t.current&&(t.current.value=""))},[t,p]);return k.default.createElement("div",{className:o["sendbox__add-attachment"]},k.default.createElement("input",{accept:n,"aria-disabled":e.disabled,"aria-hidden":"true",className:o["sendbox__add-attachment-input"],multiple:u,onInput:e.disabled?void 0:b,readOnly:e.disabled,ref:t,role:"button",tabIndex:-1,type:"file"}),k.default.createElement(R,{"aria-label":r("TEXT_INPUT_UPLOAD_BUTTON_ALT"),"data-testid":f.sendBoxUploadButton,onClick:a},k.default.createElement(pe,null)))}var ut=(0,k.memo)(Mo);var pt=require("botframework-webchat-component"),ne=i(require("react")),bt=i(require("classnames"));var mt={sendbox__attachment:"y"};var{useLocalizer:Lo}=pt.hooks,Io={one:"TEXT_INPUT_ATTACHMENTS_ONE",two:"TEXT_INPUT_ATTACHMENTS_TWO",few:"TEXT_INPUT_ATTACHMENTS_FEW",many:"TEXT_INPUT_ATTACHMENTS_MANY",other:"TEXT_INPUT_ATTACHMENTS_OTHER"};function Do({attachments:e,className:t}){let o=m(mt),r=Lo({plural:!0});return e.length?ne.default.createElement("div",{className:(0,bt.default)(o.sendbox__attachment,t)},r(Io,e.length)):null}var ft=(0,ne.memo)(Do);var ae=i(require("react"));var ht={"sendbox__error-message":"N"};function Ro(e){let t=m(ht);return ae.default.createElement("span",{className:t["sendbox__error-message"],id:e.id,role:"alert"},e.error)}var gt=(0,ae.memo)(Ro);var K=i(require("react")),xt=require("botframework-webchat-component");var{useLocalizer:Ko}=xt.hooks,yt=(0,K.memo)(()=>{let[e,t]=S(),o=Ko(),r=(0,K.useCallback)(()=>t(n=>!n),[t]);return K.default.createElement(R,{"aria-label":o("TEXT_INPUT_TELEPHONE_KEYPAD_BUTTON_ALT"),"data-testid":f.sendBoxTelephoneKeypadToolbarButton,onClick:r,selected:e},K.default.createElement(he,null))});yt.displayName="SendBox.TelephoneKeypadToolbarButton";var vt=yt;var se=i(require("classnames")),D=i(require("react"));var wt={"sendbox__text-area":"S","sendbox__text-area--hidden":"z","sendbox__text-area-shared":"L","sendbox__text-area-doppelganger":"H","sendbox__text-area-input":"W","sendbox__text-area-input--scroll":"P"};var Tt=(0,D.forwardRef)((e,t)=>{let o=m(wt),r=(0,D.useCallback)(n=>{!n.shiftKey&&n.key==="Enter"&&(n.preventDefault(),"form"in n.target&&n.target.form instanceof HTMLFormElement&&n.target?.form?.requestSubmit())},[]);return D.default.createElement("div",{className:(0,se.default)(o["sendbox__text-area"],{[o["sendbox__text-area--hidden"]]:e.hidden},e.className),role:e.hidden?"hidden":void 0},D.default.createElement("div",{className:(0,se.default)(o["sendbox__text-area-doppelganger"],o["sendbox__text-area-shared"],o["sendbox__text-area-input--scroll"])},e.value||e.placeholder," "),D.default.createElement("textarea",{"aria-label":e["aria-label"],className:(0,se.default)(o["sendbox__text-area-input"],o["sendbox__text-area-shared"],o["sendbox__text-area-input--scroll"]),"data-testid":e["data-testid"],onInput:e.onInput,onKeyDown:r,placeholder:e.placeholder,ref:t,rows:e.startRows??1,tabIndex:e.hidden?-1:void 0,value:e.value}))});Tt.displayName="TextArea";var kt=Tt;var _t=require("botframework-webchat-component"),Be=require("react"),Bt=require("use-ref-from"),{useConnectivityStatus:Oo,useLocalizer:Uo}=_t.hooks,Zo=({attachments:e,message:t})=>{let[o]=Oo(),r=Uo(),n=(0,Bt.useRefFrom)(o!=="connected"&&o!=="reconnected"?"offline":!t&&!e.length?"empty":void 0),u=(0,Be.useMemo)(()=>Object.freeze(new Map().set("empty",r("SEND_BOX_IS_EMPTY_TOOLTIP_ALT")).set("offline",r("CONNECTIVITY_STATUS_ALT_FATAL"))),[r]);return(0,Be.useMemo)(()=>Object.freeze([n,n.current&&u.get(n.current)]),[u,n])},Nt=Zo;var St=require("react");function Ne(e){let t=(0,St.useMemo)(()=>Math.random().toString(36).substr(2,5),[]);return e=e?`${e}--`:"",`${e}${t}`}var Et={sendbox:"R",sendbox__sendbox:"G","sendbox__attachment--in-grid":"t","sendbox__text-area--in-grid":"D","sendbox__sendbox-controls--in-grid":"M","sendbox__telephone-keypad--in-grid":"U","sendbox__sendbox-text":"C","sendbox__sendbox-controls":"j","sendbox__text-counter":"T","sendbox__text-counter--error":"I"};var{useFocus:Wo,useLocalizer:Xo,useMakeThumbnail:Go,useRegisterFocusSendBox:$o,useSendBoxAttachments:Vo,useSendMessage:Yo,useStyleOptions:qo}=Ct.hooks;function Jo(e){let t=(0,c.useRef)(null),[o,r]=(0,c.useState)(""),[n,u]=Vo(),[{hideTelephoneKeypadButton:p,hideUploadButton:a,maxMessageLength:b}]=qo(),x=!!b&&o.length>b,s=m(Et),d=Xo(),g=Yo(),y=Go(),A=Ne("sendbox__error-message-id"),[C,F]=Nt({message:o,attachments:n}),[_]=S(),B=Wo();$o((0,c.useCallback)(({noKeyboard:v,waitUntil:ie})=>{t.current&&(v?ie((async()=>{let Z=t.current?.getAttribute("readonly");t.current?.setAttribute("readonly","true"),await new Promise(V=>setTimeout(V,0)),t.current?.focus(),typeof Z!="string"?t.current?.removeAttribute("readonly"):t.current?.setAttribute("readonly",Z)})()):t.current?.focus())},[t]));let P=(0,Se.useRefFrom)(n),z=(0,Se.useRefFrom)(o),le=(0,c.useCallback)(v=>{"tabIndex"in v.target&&typeof v.target.tabIndex=="number"&&v.target.tabIndex>=0||B("sendBox")},[B]),de=(0,c.useCallback)(v=>r(v.currentTarget.value),[r]),Ce=(0,c.useCallback)(async v=>{let ie=Object.freeze(await Promise.all(v.map(Z=>y(Z).then(V=>Object.freeze({blob:Z,...V&&{thumbnailURL:V}})))));u(ie)},[y,u]),Ht=(0,c.useCallback)(v=>{v.preventDefault(),C.current!=="empty"&&!x&&(g(z.current,void 0,{attachments:P.current}),r(""),u([])),B("sendBox")},[P,z,g,u,r,x,C,B]),Lt=(0,c.useCallback)(v=>g(`/DTMF ${v}`),[g]),It={"aria-invalid":"false",...F&&{"aria-invalid":"true","aria-errormessage":A}};return c.default.createElement("form",{...It,className:(0,O.default)(s.sendbox,e.className),onSubmit:Ht},c.default.createElement(Te,null),c.default.createElement("div",{className:(0,O.default)(s.sendbox__sendbox),onClickCapture:le},c.default.createElement(kt,{"aria-label":d(x?"TEXT_INPUT_LENGTH_EXCEEDED_ALT":"TEXT_INPUT_ALT"),className:(0,O.default)(s["sendbox__sendbox-text"],s["sendbox__text-area--in-grid"]),"data-testid":f.sendBoxTextBox,hidden:_,onInput:de,placeholder:e.placeholder??d("TEXT_INPUT_PLACEHOLDER"),ref:t,value:o}),c.default.createElement(xe,{autoFocus:!0,className:s["sendbox__telephone-keypad--in-grid"],isHorizontal:!1,onButtonClick:Lt}),c.default.createElement(ft,{attachments:n,className:s["sendbox__attachment--in-grid"]}),c.default.createElement("div",{className:(0,O.default)(s["sendbox__sendbox-controls"],s["sendbox__sendbox-controls--in-grid"])},!_&&b&&c.default.createElement("div",{className:(0,O.default)(s["sendbox__text-counter"],{[s["sendbox__text-counter--error"]]:x})},`${o.length}/${b}`),c.default.createElement(ke,null,!p&&c.default.createElement(vt,null),!a&&c.default.createElement(ut,{onFilesAdded:Ce}),c.default.createElement(_e,null),c.default.createElement(R,{"aria-label":d("TEXT_INPUT_SEND_BUTTON_ALT"),"data-testid":f.sendBoxSendButton,disabled:x||_,type:"submit"},c.default.createElement(fe,null)))),c.default.createElement(ye,{onFilesAdded:Ce}),c.default.createElement(gt,{error:F,id:A})))}var Ee=(0,c.memo)(Jo);var{ThemeProvider:Qo}=Ft.Components,er=[()=>()=>()=>Ee],tr=({children:e})=>U.default.createElement(te,null,U.default.createElement(ce,null,U.default.createElement(Qo,{sendBoxMiddleware:er},e))),At=(0,U.memo)(tr);var or="tsup",rr="commonjs",nr="4.17.1-main.20240509.b00b5c9",ar={buildTool:or,moduleFormat:rr,version:nr};(0,Mt.injectMetaTag)("botframework-webchat:fluent-theme","version=4.17.1-main.20240509.b00b5c9; build-tool=tsup; module-format=commonjs");J();
2
2
  /*! For license information please see botframework-webchat-fluent-theme.js.LEGAL.txt */
3
3
  //# sourceMappingURL=botframework-webchat-fluent-theme.js.map
@@ -1,3 +1,3 @@
1
- import{injectMetaTag as Ur}from"inject-meta-tag";import{Components as Dr}from"botframework-webchat-component";import be,{memo as Pr}from"react";import dt,{memo as it,useMemo as ct,useState as ut}from"react";import{createContext as lt}from"react";var he=lt(new Proxy({},{get(){throw new Error("botframework-webchat: This hook can only used under its corresponding <Provider>.")}}));he.displayName="TelephoneKeypad.Context";var D=he;var mt=it(({children:e})=>{let[t,o]=ut(!1),r=ct(()=>Object.freeze({setShown:o,shown:t}),[o,t]);return dt.createElement(D.Provider,{value:r},e)}),j=mt;import zt,{memo as Ot}from"react";import{Components as It}from"botframework-webchat-component";import Dt from"classnames";import f,{memo as Be,useCallback as v,useEffect as Pt,useRef as Rt}from"react";import{useRefFrom as _e}from"use-ref-from";import W,{forwardRef as gt,memo as xt,useCallback as yt}from"react";import{useRefFrom as vt}from"use-ref-from";var ge={"telephone-keypad__button":"r","telephone-keypad__button__ruby":"e","telephone-keypad__button__text":"o","telephone-keypad--horizontal":"l"};var bt=".webchat-fluent .r{-webkit-user-select:none;align-items:center;-webkit-appearance:none;appearance:none;background-color:#fff;border-radius:100%;border:solid 1px var(--webchat-colorNeutralStroke1);color:var(--webchat-colorGray200);font-weight:var(--webchat-fontWeightSemibold);cursor:pointer;display:flex;flex-direction:column;height:60px;opacity:.7;padding:0;position:relative;touch-action:none;user-select:none;width:60px}.webchat-fluent .r:hover{background-color:var(--webchat-colorGray30)}.webchat-fluent .e{color:var(--webchat-colorGray190);font-size:10px}.webchat-fluent .o{font-size:24px;margin-top:8px}.webchat-fluent .l .r{height:32px;justify-content:center;margin:8px 4px;width:32px}.webchat-fluent .l .e{display:none}.webchat-fluent .l .o{font-size:20px;margin-top:0}.webchat-fluent .c{align-items:center;background:var(--webchat-colorNeutralBackground1);border:none;border-radius:var(--webchat-borderRadiusXLarge);display:flex;flex-direction:column;font-family:var(--webchat-fontFamilyBase);justify-content:center}.webchat-fluent .n{box-sizing:border-box;display:grid;gap:16px;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(4,1fr);justify-items:center;padding:16px;width:100%}.webchat-fluent .d{align-items:center;color:var(--webchat-colorNeutralForeground4);display:flex;font-size:12px;gap:6px;margin-block-end:6px}.webchat-fluent .i{color:var(--webchat-colorBrandForegroundLink);text-decoration-color:transparent}.webchat-fluent .i:target{color:var(--webchat-colorBrandForegroundLinkSelected)}.webchat-fluent .i:hover{color:var(--webchat-colorBrandForegroundLinkHover);text-decoration:underline 1px currentColor}.webchat-fluent .i:active{color:var(--webchat-colorBrandForegroundLinkPressed)}.webchat-fluent .i:focus-visible{outline:none;text-decoration:underline 1px double var(--webchat-colorStrokeFocus2)}.webchat-fluent.a{display:contents;--webchat-colorNeutralForeground1: var(--colorNeutralForeground1, #242424);--webchat-colorNeutralForeground2: var(--colorNeutralForeground2, #424242);--webchat-colorNeutralForeground4: var(--colorNeutralForeground4, #707070);--webchat-colorNeutralForeground2BrandHover: var(--colorNeutralForeground2BrandHover, #02729c);--webchat-colorNeutralForeground2BrandPressed: var(--colorNeutralForeground2BrandPressed, #01678c);--webchat-colorNeutralForeground2BrandSelected: var(--colorNeutralForeground2BrandSelected, #067191);--webchat-colorNeutralForegroundDisabled: var(--colorNeutralForegroundDisabled, #bdbdbd);--webchat-colorNeutralBackground1: var(--colorNeutralBackground1, #ffffff);--webchat-colorNeutralBackground4: var(--colorNeutralBackground4, #f0f0f0);--webchat-colorNeutralBackground5: var(--colorNeutralBackground5, #ebebeb);--webchat-colorNeutralStroke1: var(--colorNeutralStroke1, #d1d1d1);--webchat-colorNeutralStroke2: var(--colorNeutralStroke2, #e0e0e0);--webchat-colorNeutralStroke1Selected: var(--colorNeutralStroke1Selected, #bdbdbd);--webchat-colorStrokeFocus2: var(--colorStrokeFocus2, #000000);--webchat-colorBrandStroke2: var(--colorBrandStroke2, #9edcf7);--webchat-colorBrandForeground2Hover: var(--colorBrandForeground2Hover, #015a7a);--webchat-colorBrandForeground2Pressed: var(--colorBrandForeground2Pressed, #01384d);--webchat-colorBrandForegroundLink: var(--colorBrandForegroundLink, #01678c);--webchat-colorBrandForegroundLinkHover: var(--colorBrandForegroundLinkHover, #015a7a);--webchat-colorBrandForegroundLinkPressed: var(--colorBrandForegroundLinkPressed, #014259);--webchat-colorBrandForegroundLinkSelected: var(--colorBrandForegroundLinkSelected, #01678c);--webchat-colorBrandBackground2Hover: var(--colorBrandBackground2Hover, #bee7fa);--webchat-colorBrandBackground2Pressed: var(--colorBrandBackground2Pressed, #7fd2f5);--webchat-colorCompoundBrandForeground1Hover: var(--colorCompoundBrandForeground1Hover, #02729c);--webchat-colorStatusDangerForeground1: var(--colorStatusDangerForeground1, #b10e1c);--webchat-colorGray30: var(--colorGray30, #edebe9);--webchat-colorGray160: var(--colorGray160, #323130);--webchat-colorGray190: var(--colorGray190, #201f1e);--webchat-colorGray200: var(--colorGray200, #1b1a19);--webchat-borderRadiusSmall: var(--borderRadiusSmall, 2px);--webchat-borderRadiusLarge: var(--borderRadiusLarge, 6px);--webchat-borderRadiusXLarge: var(--borderRadiusXLarge, 8px);--webchat-shadow16: var(--shadow16, 0 6.4px 14.4px 0 rgba(0, 0, 0, .132), 0 1.2px 3.6px 0 rgba(0, 0, 0, .108));--webchat-spacingHorizontalMNudge: var(--spacingHorizontalMNudge, 10px);--webchat-fontFamilyBase: var(--fontFamilyBase, \"Segoe UI\", \"Segoe UI Web (West European)\", -apple-system, BlinkMacSystemFont, Roboto, \"Helvetica Neue\", sans-serif);--webchat-fontFamilyNumeric: var(--fontFamilyNumeric, Bahnschrift, \"Segoe UI\", \"Segoe UI Web (West European)\", -apple-system, BlinkMacSystemFont, Roboto, \"Helvetica Neue\", sans-serif);--webchat-fontWeightSemibold: var(--fontWeightSemibold, 600);--webchat-strokeWidthThicker: var(--strokeWidthThicker, 3px);--webchat-durationUltraFast: var(--durationUltraFast, 0);--webchat-durationNormal: var(--durationNormal, .2s);--webchat-curveAccelerateMid: var(--curveAccelerateMid, cubic-bezier(1,0,1,1));--webchat-curveDecelerateMid: var(--curveDecelerateMid, cubic-bezier(0,0,0,1))}@media (prefers-reduced-motion){.webchat-fluent.a{--webchat-durationUltraFast: .01ms;--webchat-durationNormal: .01ms}}.webchat-fluent .b{background-color:var(--webchat-colorNeutralBackground4);border-radius:inherit;cursor:copy;display:grid;gap:8px;inset:0;place-content:center;place-items:center;position:absolute}.webchat-fluent .u{background-color:#e00;color:#fff}.webchat-fluent .h{height:36px;pointer-events:none;width:36px}.webchat-fluent .s{align-items:center;background:transparent;border-radius:8px;border:1px solid var(--webchat-colorBrandStroke2);color:currentColor;cursor:pointer;display:flex;font-size:12px;gap:4px;padding:4px 8px;text-align:start;transition:all .15s ease-out}@media (hover: hover){.webchat-fluent .s:not([aria-disabled=true]):hover{background-color:var(--webchat-colorBrandBackground2Hover);color:var(--webchat-colorBrandForeground2Hover)}}.webchat-fluent .s:not([aria-disabled=true]):active{background-color:var(--webchat-colorBrandBackground2Pressed);color:var(--webchat-colorBrandForeground2Pressed)}.webchat-fluent .s[aria-disabled=true]{color:var(--webchat-colorNeutralForegroundDisabled);cursor:not-allowed}.webchat-fluent .g{font-size:12px;height:1em;width:1em}.webchat-fluent .p{align-items:flex-end;align-self:flex-end;display:flex;flex-direction:column;gap:8px}.webchat-fluent .p:not(:empty){padding-block-end:8px;padding-inline-start:4px}.webchat-fluent .p.w{flex-direction:row;flex-wrap:wrap;justify-content:flex-end}.webchat-fluent .p.v{flex-direction:column}.webchat-fluent .f{display:flex;gap:4px;margin-inline-start:auto}.webchat-fluent .x{align-items:center;-webkit-appearance:none;appearance:none;aspect-ratio:1;background:transparent;border-radius:var(--webchat-borderRadiusSmall);border:none;color:currentColor;cursor:pointer;display:flex;justify-content:center;padding:3px;width:32px}.webchat-fluent .x>svg{font-size:20px;pointer-events:none}.webchat-fluent .x.k{color:var(--webchat-colorNeutralForeground2BrandSelected)}@media (hover: hover){.webchat-fluent .x:not([aria-disabled=true]):hover{color:var(--webchat-colorNeutralForeground2BrandHover)}}.webchat-fluent .x:not([aria-disabled=true]):active{color:var(--webchat-colorNeutralForeground2BrandPressed)}.webchat-fluent .x[aria-disabled=true]{color:var(--webchat-colorNeutralForegroundDisabled);cursor:not-allowed}.webchat-fluent .m{align-self:center;border-inline-end:1px solid var(--webchat-colorNeutralStroke2);height:28px}.webchat-fluent .m:is(:first-child,:last-child,:only-child){display:none}.webchat-fluent .B{display:grid}.webchat-fluent .F{font-size:0;height:0;opacity:0;width:1px}.webchat-fluent .y{border-radius:var(--webchat-borderRadiusLarge);border:1px solid var(--webchat-colorNeutralStroke1);cursor:default;padding:6px 8px;width:fit-content}.webchat-fluent .N{color:transparent;font-size:0;height:0;left:0;position:absolute;top:0;width:0}.webchat-fluent .S{display:grid;grid-template-areas:\"main\";max-height:200px;overflow:hidden}.webchat-fluent .z{height:0;visibility:collapse}.webchat-fluent .L{border:none;font:inherit;grid-area:main;outline:inherit;overflow-wrap:anywhere;resize:inherit;scrollbar-gutter:stable}.webchat-fluent .H{overflow:hidden;visibility:hidden;white-space:pre-wrap}.webchat-fluent .W{background-color:inherit;color:currentColor;height:100%;padding:0}.webchat-fluent .P{scrollbar-color:unset;scrollbar-width:unset;-moz-scrollbar-color:var(--webchat-colorNeutralBackground5) var(--webchat-colorNeutralForeground2);-moz-scrollbar-width:thin}.webchat-fluent .P::-webkit-scrollbar{width:8px}.webchat-fluent .P::-webkit-scrollbar-track{background-color:var(--webchat-colorNeutralBackground5);border-radius:16px}.webchat-fluent .P::-webkit-scrollbar-thumb{background-color:var(--webchat-colorNeutralForeground2);border-radius:16px}.webchat-fluent .P::-webkit-scrollbar-corner{background-color:var(--webchat-colorNeutralBackground5)}.webchat-fluent .R{color:var(--webchat-colorNeutralForeground1);font-family:var(--webchat-fontFamilyBase);padding:0 10px 10px;text-rendering:optimizeLegibility;--webchat-sendbox-attachment-area-active: ;--webchat-sendbox-border-radius: var(--webchat-borderRadiusLarge)}.webchat-fluent .G{background-color:var(--webchat-colorNeutralBackground1);border-radius:var(--webchat-sendbox-border-radius);border:1px solid var(--webchat-colorNeutralStroke1);display:grid;font-family:var(--webchat-fontFamilyBase);font-size:14px;gap:6px;grid-template:[telephone-keypad-start] \"text-area\" [telephone-keypad-end] var(--webchat-sendbox-attachment-area-active) \"controls\" / [telephone-keypad] 1fr;line-height:20px;padding:8px;position:relative}.webchat-fluent .G:has(.t){--webchat-sendbox-attachment-area-active: \"attachment\" }.webchat-fluent .G:focus-within{border-color:var(--webchat-colorNeutralStroke1Selected)}.webchat-fluent .G:after{border-bottom-left-radius:var(--webchat-sendbox-border-radius);border-bottom-right-radius:var(--webchat-sendbox-border-radius);border-bottom:var(--webchat-strokeWidthThicker) solid var(--webchat-colorCompoundBrandForeground1Hover);bottom:-1px;clip-path:inset(calc(100% - var(--webchat-strokeWidthThicker)) 50% 0 50%);content:\"\";height:var(--webchat-sendbox-border-radius);left:-1px;position:absolute;right:-1px;transition:clip-path var(--webchat-durationUltraFast) var(--webchat-curveAccelerateMid)}.webchat-fluent .G:focus-within:after{clip-path:inset(calc(100% - var(--webchat-strokeWidthThicker)) 0 0 0);transition:clip-path var(--webchat-durationNormal) var(--webchat-curveDecelerateMid)}.webchat-fluent .G>.D{grid-area:text-area}.webchat-fluent .G>.t{grid-area:attachment}.webchat-fluent .G>.M{grid-area:controls}.webchat-fluent .G>.U{grid-area:telephone-keypad}.webchat-fluent .C{background-color:transparent;border:none;flex:auto;font-family:var(--webchat-fontFamilyBase);font-size:14px;line-height:20px;outline:none;padding:4px 4px 0;resize:none}.webchat-fluent .j{align-items:center;display:flex;padding-inline-start:4px}.webchat-fluent .T{color:var(--webchat-colorNeutralForeground4);cursor:default;font-family:var(--webchat-fontFamilyNumeric);font-size:10px;line-height:14px;margin-inline-end:4px}.webchat-fluent .I{color:var(--webchat-colorStatusDangerForeground1)}\n/*! For license information please see botframework-webchat-fluent-theme.css.LEGAL.txt */\n";function P(){if(globalThis.document){let e=document.createElement("style");e.append(document.createTextNode(bt)),document.head.appendChild(e)}}import{useMemo as ft}from"react";function ht(e){return ft(()=>Object.freeze(Object.fromEntries(Object.entries(e).map(([t,o])=>[t,`${t} ${o}`]))),[e])}var i=ht;var xe=xt(gt(({button:e,"data-testid":t,onClick:o,ruby:r},a)=>{let d=i(ge),c=vt(o),n=yt(()=>c.current?.(),[c]);return W.createElement("button",{className:d["telephone-keypad__button"],"data-testid":t,onClick:n,ref:a,type:"button"},W.createElement("span",{className:d["telephone-keypad__button__text"]},e==="star"?"\u2217":e==="pound"?"#":e),!!r&&W.createElement("ruby",{className:d["telephone-keypad__button__ruby"]},r))}));xe.displayName="TelephoneKeypad.Button";var y=xe;var wt={sendBoxDropZone:"send box drop zone",sendBoxSendButton:"send box send button",sendBoxTextBox:"send box text area",sendBoxTelephoneKeypadButton1:"send box telephone keypad button 1",sendBoxTelephoneKeypadButton2:"send box telephone keypad button 2",sendBoxTelephoneKeypadButton3:"send box telephone keypad button 3",sendBoxTelephoneKeypadButton4:"send box telephone keypad button 4",sendBoxTelephoneKeypadButton5:"send box telephone keypad button 5",sendBoxTelephoneKeypadButton6:"send box telephone keypad button 6",sendBoxTelephoneKeypadButton7:"send box telephone keypad button 7",sendBoxTelephoneKeypadButton8:"send box telephone keypad button 8",sendBoxTelephoneKeypadButton9:"send box telephone keypad button 9",sendBoxTelephoneKeypadButton0:"send box telephone keypad button 0",sendBoxTelephoneKeypadButtonStar:"send box telephone keypad button star",sendBoxTelephoneKeypadButtonPound:"send box telephone keypad button pound",sendBoxTelephoneKeypadToolbarButton:"send box telephone keypad toolbar button",sendBoxUploadButton:"send box upload button"},m=wt;import{useContext as Tt,useMemo as kt}from"react";function k(){let{setShown:e,shown:t}=Tt(D);return kt(()=>Object.freeze([t,e]),[t,e])}var X={"telephone-keypad":"c","telephone-keypad__box":"n","telephone-keypad__info-message":"d","telephone-keypad__info-message-link":"i"};import ye,{memo as Bt}from"react";function Nt(e){return ye.createElement("svg",{"aria-hidden":"true",className:e.className,height:"1em",viewBox:"0 0 20 20",width:"1em",xmlns:"http://www.w3.org/2000/svg"},ye.createElement("path",{d:"M6 2a2 2 0 0 0-2 2v5.2c.32-.08.66-.15 1-.18V4a1 1 0 0 1 1-1h4v3.5c0 .83.67 1.5 1.5 1.5H15v8a1 1 0 0 1-1 1h-3.6c-.18.36-.4.7-.66 1H14a2 2 0 0 0 2-2V7.41c0-.4-.16-.78-.44-1.06l-3.91-3.91A1.5 1.5 0 0 0 10.59 2H6Zm8.8 5h-3.3a.5.5 0 0 1-.5-.5V3.2L14.8 7ZM10 14.5a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0Zm-4-2a.5.5 0 0 0-1 0V14H3.5a.5.5 0 0 0 0 1H5v1.5a.5.5 0 0 0 1 0V15h1.5a.5.5 0 0 0 0-1H6v-1.5Z",fill:"currentColor"}))}var G=Bt(Nt);import ve,{memo as St}from"react";function Et(e){return ve.createElement("svg",{"aria-hidden":"true",className:e.className,height:"1em",viewBox:"0 0 20 20",width:"1em",xmlns:"http://www.w3.org/2000/svg"},ve.createElement("path",{d:"m4.83 10.48 5.65-5.65a3 3 0 0 1 4.25 4.24L8 15.8a1.5 1.5 0 0 1-2.12-2.12l6-6.01a.5.5 0 1 0-.7-.71l-6 6.01a2.5 2.5 0 0 0 3.53 3.54l6.71-6.72a4 4 0 1 0-5.65-5.66L4.12 9.78a.5.5 0 0 0 .7.7Z",fill:"currentColor"}))}var $=St(Et);import we,{memo as Ct}from"react";function Ft(e){return we.createElement("svg",{"aria-hidden":"true",className:e.className,height:"1em",viewBox:"0 0 16 16",width:"1em",xmlns:"http://www.w3.org/2000/svg"},we.createElement("path",{d:"M8.5 7.5a.5.5 0 1 0-1 0v3a.5.5 0 0 0 1 0v-3Zm.25-2a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM8 1a7 7 0 1 0 0 14A7 7 0 0 0 8 1ZM2 8a6 6 0 1 1 12 0A6 6 0 0 1 2 8Z",fill:"currentColor"}))}var V=Ct(Ft);import Te,{memo as At}from"react";function Mt(e){return Te.createElement("svg",{"aria-hidden":"true",className:e.className,height:"1em",viewBox:"0 0 20 20",width:"1em",xmlns:"http://www.w3.org/2000/svg"},Te.createElement("path",{d:"M2.18 2.11a.5.5 0 0 1 .54-.06l15 7.5a.5.5 0 0 1 0 .9l-15 7.5a.5.5 0 0 1-.7-.58L3.98 10 2.02 2.63a.5.5 0 0 1 .16-.52Zm2.7 8.39-1.61 6.06L16.38 10 3.27 3.44 4.88 9.5h6.62a.5.5 0 1 1 0 1H4.88Z",fill:"currentColor"}))}var Y=At(Mt);import ke,{memo as Ht}from"react";function Lt(e){return ke.createElement("svg",{"aria-hidden":"true",className:e.className,height:"1em",viewBox:"0 0 20 20",width:"1em",xmlns:"http://www.w3.org/2000/svg"},ke.createElement("path",{d:"M6 5.25a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5Zm0 4a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5ZM7.25 12a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0ZM10 5.25a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5ZM11.25 8a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0ZM10 13.25a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5ZM11.25 16a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0ZM14 5.25a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5ZM15.25 8a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0ZM14 13.25a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5Z",fill:"currentColor"}))}var q=Ht(Lt);var{LocalizedString:Kt}=It,Ne=Be(({children:e,isHorizontal:t})=>{let o=i(X);return t?null:f.createElement("div",{className:o["telephone-keypad__box"]},e)});Ne.displayName="TelephoneKeypad:Orientation";var Se=Be(({autoFocus:e,className:t,onButtonClick:o,isHorizontal:r})=>{let a=_e(e),d=i(X),c=Rt(null),n=_e(o),[,u]=k(),b=v(()=>n.current?.("1"),[n]),s=v(()=>n.current?.("2"),[n]),l=v(()=>n.current?.("3"),[n]),p=v(()=>n.current?.("4"),[n]),g=v(()=>n.current?.("5"),[n]),N=v(()=>n.current?.("6"),[n]),_=v(()=>n.current?.("7"),[n]),B=v(()=>n.current?.("8"),[n]),w=v(()=>n.current?.("9"),[n]),T=v(()=>n.current?.("0"),[n]),S=v(()=>n.current?.("star"),[n]),C=v(()=>n.current?.("pound"),[n]),O=v(U=>{U.key==="Escape"&&u(!1)},[u]);return Pt(()=>{a.current&&c.current?.focus()},[a,c]),f.createElement("div",{className:Dt(d["telephone-keypad"],t),onKeyDown:O},f.createElement(Ne,{isHorizontal:r},f.createElement(y,{button:"1","data-testid":m.sendBoxTelephoneKeypadButton1,onClick:b,ref:c}),f.createElement(y,{button:"2","data-testid":m.sendBoxTelephoneKeypadButton2,onClick:s,ruby:"ABC"}),f.createElement(y,{button:"3","data-testid":m.sendBoxTelephoneKeypadButton3,onClick:l,ruby:"DEF"}),f.createElement(y,{button:"4","data-testid":m.sendBoxTelephoneKeypadButton4,onClick:p,ruby:"GHI"}),f.createElement(y,{button:"5","data-testid":m.sendBoxTelephoneKeypadButton5,onClick:g,ruby:"JKL"}),f.createElement(y,{button:"6","data-testid":m.sendBoxTelephoneKeypadButton6,onClick:N,ruby:"MNO"}),f.createElement(y,{button:"7","data-testid":m.sendBoxTelephoneKeypadButton7,onClick:_,ruby:"PQRS"}),f.createElement(y,{button:"8","data-testid":m.sendBoxTelephoneKeypadButton8,onClick:B,ruby:"TUV"}),f.createElement(y,{button:"9","data-testid":m.sendBoxTelephoneKeypadButton9,onClick:w,ruby:"WXYZ"}),f.createElement(y,{button:"star","data-testid":m.sendBoxTelephoneKeypadButtonStar,onClick:S}),f.createElement(y,{button:"0","data-testid":m.sendBoxTelephoneKeypadButton0,onClick:T,ruby:"+"}),f.createElement(y,{button:"pound","data-testid":m.sendBoxTelephoneKeypadButtonPound,onClick:C})),f.createElement("div",{className:d["telephone-keypad__info-message"]},f.createElement(V,null),f.createElement(Kt,{linkClassName:d["telephone-keypad__info-message-link"],stringIds:"TELEPHONE_KEYPAD_INPUT_MESSAGE"})))});Se.displayName="TelephoneKeypad";var Ee=Se;var Ce=Ot(e=>k()[0]?zt.createElement(Ee,{...e}):null);Ce.displayName="TelephoneKeypad.Surrogate";var J=Ce;import Zt from"react";import jt from"classnames";var Fe={theme:"a"};var Wt="webchat-fluent";function R(e){let t=i(Fe);return Zt.createElement("div",{className:jt(Wt,t.theme)},e.children)}import{hooks as _r}from"botframework-webchat-component";import L from"classnames";import h,{memo as Br,useCallback as A,useRef as Nr,useState as Sr}from"react";import{useRefFrom as rt}from"use-ref-from";import{hooks as Gt}from"botframework-webchat-component";import $t from"classnames";import Me,{memo as Vt,useCallback as Yt,useEffect as qt,useRef as Jt,useState as Qt}from"react";import{useRefFrom as eo}from"use-ref-from";var Ae={"sendbox__attachment-drop-zone":"b","sendbox__attachment-drop-zone--droppable":"u","sendbox__attachment-drop-zone-icon":"h"};var{useLocalizer:to}=Gt,oo=e=>{e.preventDefault()},He=e=>!!e.dataTransfer?.types?.some(t=>t.toLowerCase()==="files");function ro(e,t){let o=e.parentNode;for(;o;){if(o===t)return!0;o=o.parentNode}return!1}var Le=e=>{let[t,o]=Qt(!1),r=i(Ae),a=Jt(null),d=to(),c=eo(e.onFilesAdded);qt(()=>{let u=0,b=l=>{u++,He(l)&&o(a.current&&(l.target===a.current||l.target instanceof HTMLElement&&ro(l.target,a.current))?"droppable":"visible")},s=()=>--u<=0&&o(!1);return document.addEventListener("dragenter",b,!1),document.addEventListener("dragleave",s,!1),()=>{document.removeEventListener("dragenter",b),document.removeEventListener("dragleave",s)}},[o]);let n=Yt(u=>{u.preventDefault(),o(!1),He(u.nativeEvent)&&c.current([...u.dataTransfer.files])},[c,o]);return t?Me.createElement("div",{className:$t(r["sendbox__attachment-drop-zone"],{[r["sendbox__attachment-drop-zone--droppable"]]:t==="droppable"}),"data-testid":m.sendBoxDropZone,onDragOver:oo,onDrop:n,ref:a},Me.createElement(G,{className:r["sendbox__attachment-drop-zone-icon"]}),d("TEXT_INPUT_DROP_ZONE")):null};Le.displayName="DropZone";var Q=Vt(Le);import{hooks as Ao}from"botframework-webchat-component";import Mo from"classnames";import H,{memo as Ho,useCallback as Lo}from"react";import{hooks as yo}from"botframework-webchat-component";import vo from"classnames";import te,{memo as wo,useCallback as To}from"react";var Ie={"suggested-action":"s","suggested-action__image":"g"};import ao,{forwardRef as so,memo as lo,useRef as io}from"react";var co=e=>e.preventDefault(),uo=so(({"aria-hidden":e,children:t,disabled:o,onClick:r,tabIndex:a,...d},c)=>{let n=io(null);return ao.createElement("button",{"aria-disabled":o?"true":"false","aria-hidden":e,onClick:o?co:r,ref:c||n,tabIndex:a,...o&&{"aria-disabled":"true",tabIndex:-1},...d,type:"button"},t)}),De=lo(uo);import mo,{createContext as po,memo as bo,useCallback as F,useContext as fo,useEffect as ho,useMemo as go,useRef as ee}from"react";var Pe=po({itemEffector:()=>{throw new Error("botframework-webchat-fluent-theme rovingFocus: no provider for RovingFocusContext.")}});function xo(e){let t=ee(0),o=ee([]),r=F(({current:s},l)=>s&&(s.tabIndex=t.current===l?0:-1),[t]),a=F(s=>{let l;typeof s=="number"?l=s:l=s(t.current),l&&!o.current.at(l)?.current&&(l=0),t.current!==l&&(t.current=l,o.current.forEach((p,g)=>r(p,g)),o.current.at(l)?.current?.focus())},[r,o,t]),d=F(s=>{let{target:l}=s,p=o.current.findIndex(({current:g})=>g===l);p!==-1&&a(p)},[o,a]),c=F(s=>l=>{let p=!e.direction,g=/up|down/iu.test(s)&&e.direction==="vertical",N=/left|right/iu.test(s)&&e.direction==="horizontal",_=/right|down/iu.test(s),B=p||g||N?_?1:-1:0,w=o.current.map((S,C)=>C),T=w.indexOf(l)+B;return w.at(T)??0},[e.direction]),n=F(s=>{let{key:l}=s;switch(l){case"Up":case"ArrowUp":case"Left":case"ArrowLeft":case"Down":case"ArrowDown":case"Right":case"ArrowRight":a(c(l));break;case"Home":a(0);break;case"End":a(-1);break;case"Escape":e.onEscapeKey?.();break;default:return}s.preventDefault(),s.stopPropagation()},[a,c,e]),u=F((s,l)=>{let{current:p}=s;return o.current[Number(l)]=s,p.addEventListener("focus",d),p.addEventListener("keydown",n),r(s,l),()=>{p.removeEventListener("focus",d),p.removeEventListener("keydown",n),delete o.current[Number(l)]}},[d,n,r,o]),b=go(()=>({itemEffector:u}),[u]);return mo.createElement(Pe.Provider,{value:b},e.children)}function Re(e){let t=ee(null),{itemEffector:o}=fo(Pe);return ho(()=>o(t,e)),t}var Ke=bo(xo);var{useDisabled:ko,useFocus:_o,usePerformCardAction:Bo,useScrollToEnd:No,useStyleSet:So,useSuggestedActions:Eo}=yo;function Co({buttonText:e,className:t,displayText:o,image:r,imageAlt:a,itemIndex:d,text:c,type:n,value:u}){let[b,s]=Eo(),[{suggestedAction:l}]=So(),[p]=ko(),g=_o(),N=Re(d),_=Bo(),B=i(Ie),w=No(),T=To(({target:S})=>{(async function(){await g("sendBoxWithoutKeyboard"),_({displayText:o,text:c,type:n,value:u},{target:S}),n==="openUrl"&&s([]),w()})()},[o,g,_,w,s,c,n,u]);return te.createElement(De,{className:vo(B["suggested-action"],l+"",(t||"")+""),disabled:p,onClick:T,ref:N,type:"button"},r&&te.createElement("img",{alt:a,className:B["suggested-action__image"],src:r}),te.createElement("span",null,e))}var ze=wo(Co);function oe(e){let{title:t}=e,{type:o,value:r}=e;return o==="messageBack"?t||e.displayText:t||(typeof r=="string"?r:JSON.stringify(r))}var re={"suggested-actions":"p","suggested-actions--flow":"w","suggested-actions--stacked":"v"};var{useFocus:Io,useLocalizer:Do,useStyleOptions:Po,useStyleSet:Ro,useSuggestedActions:Ko}=Ao;function zo(e){let[{suggestedActionLayout:t}]=Po(),[{suggestedActions:o}]=Ro(),r=i(re);return H.createElement("div",{"aria-label":e["aria-label"],"aria-live":"polite","aria-orientation":"vertical",className:Mo(r["suggested-actions"],o+"",{[r["suggested-actions--flow"]]:t==="flow",[r["suggested-actions--stacked"]]:t!=="flow"},e.className),role:"toolbar"},!!e.children&&!!H.Children.count(e.children)&&e.children)}function Oo(){let e=i(re),t=Do(),[o]=Ko(),r=Io(),a=Lo(()=>{r("sendBox")},[r]),d=o.map((c,n)=>{let{displayText:u,image:b,imageAltText:s,text:l,type:p,value:g}=c;return o?.length?H.createElement(ze,{buttonText:oe(c),displayText:u,image:b,imageAlt:b&&(s||l),itemIndex:n,key:n,text:l,type:p,value:g}):null});return H.createElement(Ke,{onEscapeKey:a},H.createElement(zo,{"aria-label":t("SUGGESTED_ACTIONS_LABEL_ALT"),className:e["suggested-actions"]},d))}var ne=Ho(Oo);import{hooks as Wo}from"botframework-webchat-component";import z,{useCallback as Ue,useRef as Xo,memo as Go}from"react";import{useRefFrom as $o}from"use-ref-from";import ae from"classnames";import se,{memo as le}from"react";var K={sendbox__toolbar:"f","sendbox__toolbar-button":"x","sendbox__toolbar-button--selected":"k","sendbox__toolbar-separator":"m"};var Zo=e=>e.preventDefault(),E=le(e=>{let t=i(K);return se.createElement("button",{"aria-label":e["aria-label"],className:ae(t["sendbox__toolbar-button"],e.className,{[t["sendbox__toolbar-button--selected"]]:e.selected}),"data-testid":e["data-testid"],onClick:e.disabled?Zo:e.onClick,type:e.type==="submit"?"submit":"button",...e.disabled&&{"aria-disabled":"true",tabIndex:-1}},e.children)});E.displayName="ToolbarButton";var de=le(e=>{let t=i(K);return se.createElement("div",{className:ae(t.sendbox__toolbar,e.className)},e.children)});de.displayName="Toolbar";var ie=le(e=>{let t=i(K);return se.createElement("div",{"aria-orientation":"vertical",className:ae(t["sendbox__toolbar-separator"],e.className),role:"separator"})});ie.displayName="ToolbarSeparator";var Oe={"sendbox__add-attachment":"B","sendbox__add-attachment-input":"F"};var{useLocalizer:Vo,useStyleOptions:Yo}=Wo;function qo(e){let t=Xo(null),o=i(Oe),r=Vo(),[{uploadAccept:a,uploadMultiple:d}]=Yo(),c=$o(e.onFilesAdded),n=Ue(()=>t.current?.click(),[t]),u=Ue(({target:{files:b}})=>{b&&(c.current?.([...b]),t.current&&(t.current.value=""))},[t,c]);return z.createElement("div",{className:o["sendbox__add-attachment"]},z.createElement("input",{accept:a,"aria-disabled":e.disabled,"aria-hidden":"true",className:o["sendbox__add-attachment-input"],multiple:d,onInput:e.disabled?void 0:u,readOnly:e.disabled,ref:t,role:"button",tabIndex:-1,type:"file"}),z.createElement(E,{"aria-label":r("TEXT_INPUT_UPLOAD_BUTTON_ALT"),"data-testid":m.sendBoxUploadButton,onClick:n},z.createElement($,null)))}var Ze=Go(qo);import{hooks as Qo}from"botframework-webchat-component";import er,{memo as tr}from"react";import or from"classnames";var je={sendbox__attachment:"y"};var{useLocalizer:rr}=Qo,nr={one:"TEXT_INPUT_ATTACHMENTS_ONE",two:"TEXT_INPUT_ATTACHMENTS_TWO",few:"TEXT_INPUT_ATTACHMENTS_FEW",many:"TEXT_INPUT_ATTACHMENTS_MANY",other:"TEXT_INPUT_ATTACHMENTS_OTHER"};function ar({attachments:e,className:t}){let o=i(je),r=rr({plural:!0});return e.length?er.createElement("div",{className:or(o.sendbox__attachment,t)},r(nr,e.length)):null}var We=tr(ar);import lr,{memo as dr}from"react";var Xe={"sendbox__error-message":"N"};function ir(e){let t=i(Xe);return lr.createElement("span",{className:t["sendbox__error-message"],id:e.id,role:"alert"},e.error)}var Ge=dr(ir);import $e,{memo as cr,useCallback as ur}from"react";import{hooks as mr}from"botframework-webchat-component";var{useLocalizer:pr}=mr,Ve=cr(()=>{let[e,t]=k(),o=pr(),r=ur(()=>t(a=>!a),[t]);return $e.createElement(E,{"aria-label":o("TEXT_INPUT_TELEPHONE_KEYPAD_BUTTON_ALT"),"data-testid":m.sendBoxTelephoneKeypadToolbarButton,onClick:r,selected:e},$e.createElement(q,null))});Ve.displayName="SendBox.TelephoneKeypadToolbarButton";var Ye=Ve;import ce from"classnames";import ue,{forwardRef as fr,useCallback as hr}from"react";var qe={"sendbox__text-area":"S","sendbox__text-area--hidden":"z","sendbox__text-area-shared":"L","sendbox__text-area-doppelganger":"H","sendbox__text-area-input":"W","sendbox__text-area-input--scroll":"P"};var Je=fr((e,t)=>{let o=i(qe),r=hr(a=>{!a.shiftKey&&a.key==="Enter"&&(a.preventDefault(),"form"in a.target&&a.target.form instanceof HTMLFormElement&&a.target?.form?.requestSubmit())},[]);return ue.createElement("div",{className:ce(o["sendbox__text-area"],{[o["sendbox__text-area--hidden"]]:e.hidden},e.className),role:e.hidden?"hidden":void 0},ue.createElement("div",{className:ce(o["sendbox__text-area-doppelganger"],o["sendbox__text-area-shared"],o["sendbox__text-area-input--scroll"])},e.value||e.placeholder," "),ue.createElement("textarea",{"aria-label":e["aria-label"],className:ce(o["sendbox__text-area-input"],o["sendbox__text-area-shared"],o["sendbox__text-area-input--scroll"]),"data-testid":e["data-testid"],onInput:e.onInput,onKeyDown:r,placeholder:e.placeholder,ref:t,rows:e.startRows??1,tabIndex:e.hidden?-1:void 0,value:e.value}))});Je.displayName="TextArea";var Qe=Je;import{hooks as gr}from"botframework-webchat-component";import{useMemo as et}from"react";import{useRefFrom as xr}from"use-ref-from";var{useConnectivityStatus:yr,useLocalizer:vr}=gr,wr=({attachments:e,message:t})=>{let[o]=yr(),r=vr(),a=xr(o!=="connected"&&o!=="reconnected"?"offline":!t&&!e.length?"empty":void 0),d=et(()=>Object.freeze(new Map().set("empty",r("SEND_BOX_IS_EMPTY_TOOLTIP_ALT")).set("offline",r("CONNECTIVITY_STATUS_ALT_FATAL"))),[r]);return et(()=>Object.freeze([a,a.current&&d.get(a.current)]),[d,a])},tt=wr;import{useMemo as Tr}from"react";function me(e){let t=Tr(()=>Math.random().toString(36).substr(2,5),[]);return e=e?`${e}--`:"",`${e}${t}`}var ot={sendbox:"R",sendbox__sendbox:"G","sendbox__attachment--in-grid":"t","sendbox__text-area--in-grid":"D","sendbox__sendbox-controls--in-grid":"M","sendbox__telephone-keypad--in-grid":"U","sendbox__sendbox-text":"C","sendbox__sendbox-controls":"j","sendbox__text-counter":"T","sendbox__text-counter--error":"I"};var{useFocus:Er,useLocalizer:Cr,useMakeThumbnail:Fr,useRegisterFocusSendBox:Ar,useSendBoxAttachments:Mr,useSendMessage:Hr,useStyleOptions:Lr}=_r;function Ir(e){let t=Nr(null),[o,r]=Sr(""),[a,d]=Mr(),[{hideTelephoneKeypadButton:c,hideUploadButton:n,maxMessageLength:u}]=Lr(),b=!!u&&o.length>u,s=i(ot),l=Cr(),p=Hr(),g=Fr(),N=me("sendbox__error-message-id"),[_,B]=tt({message:o,attachments:a}),[w]=k(),T=Er();Ar(A(({noKeyboard:x,waitUntil:Z})=>{t.current&&(x?Z((async()=>{let M=t.current?.getAttribute("readonly");t.current?.setAttribute("readonly","true"),await new Promise(I=>setTimeout(I,0)),t.current?.focus(),typeof M!="string"?t.current?.removeAttribute("readonly"):t.current?.setAttribute("readonly",M)})()):t.current?.focus())},[t]));let S=rt(a),C=rt(o),O=A(x=>{"tabIndex"in x.target&&typeof x.target.tabIndex=="number"&&x.target.tabIndex>=0||T("sendBox")},[T]),U=A(x=>r(x.currentTarget.value),[r]),fe=A(async x=>{let Z=Object.freeze(await Promise.all(x.map(M=>g(M).then(I=>Object.freeze({blob:M,...I&&{thumbnailURL:I}})))));d(Z)},[g,d]),nt=A(x=>{x.preventDefault(),_.current!=="empty"&&!b&&(p(C.current,void 0,{attachments:S.current}),r(""),d([])),T("sendBox")},[S,C,p,d,r,b,_,T]),at=A(x=>p(`/DTMF ${x}`),[p]),st={"aria-invalid":"false",...B&&{"aria-invalid":"true","aria-errormessage":N}};return h.createElement("form",{...st,className:L(s.sendbox,e.className),onSubmit:nt},h.createElement(ne,null),h.createElement("div",{className:L(s.sendbox__sendbox),onClickCapture:O},h.createElement(Qe,{"aria-label":l(b?"TEXT_INPUT_LENGTH_EXCEEDED_ALT":"TEXT_INPUT_ALT"),className:L(s["sendbox__sendbox-text"],s["sendbox__text-area--in-grid"]),"data-testid":m.sendBoxTextBox,hidden:w,onInput:U,placeholder:e.placeholder??l("TEXT_INPUT_PLACEHOLDER"),ref:t,value:o}),h.createElement(J,{autoFocus:!0,className:s["sendbox__telephone-keypad--in-grid"],isHorizontal:!1,onButtonClick:at}),h.createElement(We,{attachments:a,className:s["sendbox__attachment--in-grid"]}),h.createElement("div",{className:L(s["sendbox__sendbox-controls"],s["sendbox__sendbox-controls--in-grid"])},!w&&u&&h.createElement("div",{className:L(s["sendbox__text-counter"],{[s["sendbox__text-counter--error"]]:b})},`${o.length}/${u}`),h.createElement(de,null,!c&&h.createElement(Ye,null),!n&&h.createElement(Ze,{onFilesAdded:fe}),h.createElement(ie,null),h.createElement(E,{"aria-label":l("TEXT_INPUT_SEND_BUTTON_ALT"),"data-testid":m.sendBoxSendButton,disabled:b||w,type:"submit"},h.createElement(Y,null)))),h.createElement(Q,{onFilesAdded:fe}),h.createElement(Ge,{error:B,id:N})))}var pe=Br(Ir);var{ThemeProvider:Rr}=Dr,Kr=[()=>()=>()=>pe],zr=({children:e})=>be.createElement(R,null,be.createElement(j,null,be.createElement(Rr,{sendBoxMiddleware:Kr},e))),Or=Pr(zr);var Zr="tsup",jr="esmodules",Wr="4.17.1-main.20240508.bf8dbd9",xl={buildTool:Zr,moduleFormat:jr,version:Wr};Ur("botframework-webchat:fluent-theme","version=4.17.1-main.20240508.bf8dbd9; build-tool=tsup; module-format=esmodules");P();export{Or as FluentThemeProvider,xl as buildInfo,m as testIds};
1
+ import{injectMetaTag as Ur}from"inject-meta-tag";import{Components as Dr}from"botframework-webchat-component";import be,{memo as Pr}from"react";import dt,{memo as it,useMemo as ct,useState as ut}from"react";import{createContext as lt}from"react";var he=lt(new Proxy({},{get(){throw new Error("botframework-webchat: This hook can only used under its corresponding <Provider>.")}}));he.displayName="TelephoneKeypad.Context";var D=he;var mt=it(({children:e})=>{let[t,o]=ut(!1),r=ct(()=>Object.freeze({setShown:o,shown:t}),[o,t]);return dt.createElement(D.Provider,{value:r},e)}),j=mt;import zt,{memo as Ot}from"react";import{Components as It}from"botframework-webchat-component";import Dt from"classnames";import f,{memo as Be,useCallback as v,useEffect as Pt,useRef as Rt}from"react";import{useRefFrom as _e}from"use-ref-from";import W,{forwardRef as gt,memo as xt,useCallback as yt}from"react";import{useRefFrom as vt}from"use-ref-from";var ge={"telephone-keypad__button":"r","telephone-keypad__button__ruby":"e","telephone-keypad__button__text":"o","telephone-keypad--horizontal":"l"};var bt=".webchat-fluent .r{-webkit-user-select:none;align-items:center;-webkit-appearance:none;appearance:none;background-color:#fff;border-radius:100%;border:solid 1px var(--webchat-colorNeutralStroke1);color:var(--webchat-colorGray200);font-weight:var(--webchat-fontWeightSemibold);cursor:pointer;display:flex;flex-direction:column;height:60px;opacity:.7;padding:0;position:relative;touch-action:none;user-select:none;width:60px}.webchat-fluent .r:hover{background-color:var(--webchat-colorGray30)}.webchat-fluent .e{color:var(--webchat-colorGray190);font-size:10px}.webchat-fluent .o{font-size:24px;margin-top:8px}.webchat-fluent .l .r{height:32px;justify-content:center;margin:8px 4px;width:32px}.webchat-fluent .l .e{display:none}.webchat-fluent .l .o{font-size:20px;margin-top:0}.webchat-fluent .c{align-items:center;background:var(--webchat-colorNeutralBackground1);border:none;border-radius:var(--webchat-borderRadiusXLarge);display:flex;flex-direction:column;font-family:var(--webchat-fontFamilyBase);justify-content:center}.webchat-fluent .n{box-sizing:border-box;display:grid;gap:16px;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(4,1fr);justify-items:center;padding:16px;width:100%}.webchat-fluent .d{align-items:center;color:var(--webchat-colorNeutralForeground4);display:flex;font-size:12px;gap:6px;margin-block-end:6px}.webchat-fluent .i{color:var(--webchat-colorBrandForegroundLink);text-decoration-color:transparent}.webchat-fluent .i:target{color:var(--webchat-colorBrandForegroundLinkSelected)}.webchat-fluent .i:hover{color:var(--webchat-colorBrandForegroundLinkHover);text-decoration:underline 1px currentColor}.webchat-fluent .i:active{color:var(--webchat-colorBrandForegroundLinkPressed)}.webchat-fluent .i:focus-visible{outline:none;text-decoration:underline 1px double var(--webchat-colorStrokeFocus2)}.webchat-fluent.a{display:contents;--webchat-colorNeutralForeground1: var(--colorNeutralForeground1, #242424);--webchat-colorNeutralForeground2: var(--colorNeutralForeground2, #424242);--webchat-colorNeutralForeground4: var(--colorNeutralForeground4, #707070);--webchat-colorNeutralForeground2BrandHover: var(--colorNeutralForeground2BrandHover, #02729c);--webchat-colorNeutralForeground2BrandPressed: var(--colorNeutralForeground2BrandPressed, #01678c);--webchat-colorNeutralForeground2BrandSelected: var(--colorNeutralForeground2BrandSelected, #067191);--webchat-colorNeutralForegroundDisabled: var(--colorNeutralForegroundDisabled, #bdbdbd);--webchat-colorNeutralBackground1: var(--colorNeutralBackground1, #ffffff);--webchat-colorNeutralBackground4: var(--colorNeutralBackground4, #f0f0f0);--webchat-colorNeutralBackground5: var(--colorNeutralBackground5, #ebebeb);--webchat-colorNeutralStroke1: var(--colorNeutralStroke1, #d1d1d1);--webchat-colorNeutralStroke2: var(--colorNeutralStroke2, #e0e0e0);--webchat-colorNeutralStroke1Selected: var(--colorNeutralStroke1Selected, #bdbdbd);--webchat-colorStrokeFocus2: var(--colorStrokeFocus2, #000000);--webchat-colorBrandStroke2: var(--colorBrandStroke2, #9edcf7);--webchat-colorBrandForeground2Hover: var(--colorBrandForeground2Hover, #015a7a);--webchat-colorBrandForeground2Pressed: var(--colorBrandForeground2Pressed, #01384d);--webchat-colorBrandForegroundLink: var(--colorBrandForegroundLink, #01678c);--webchat-colorBrandForegroundLinkHover: var(--colorBrandForegroundLinkHover, #015a7a);--webchat-colorBrandForegroundLinkPressed: var(--colorBrandForegroundLinkPressed, #014259);--webchat-colorBrandForegroundLinkSelected: var(--colorBrandForegroundLinkSelected, #01678c);--webchat-colorBrandBackground2Hover: var(--colorBrandBackground2Hover, #bee7fa);--webchat-colorBrandBackground2Pressed: var(--colorBrandBackground2Pressed, #7fd2f5);--webchat-colorCompoundBrandForeground1Hover: var(--colorCompoundBrandForeground1Hover, #02729c);--webchat-colorStatusDangerForeground1: var(--colorStatusDangerForeground1, #b10e1c);--webchat-colorGray30: var(--colorGray30, #edebe9);--webchat-colorGray160: var(--colorGray160, #323130);--webchat-colorGray190: var(--colorGray190, #201f1e);--webchat-colorGray200: var(--colorGray200, #1b1a19);--webchat-borderRadiusSmall: var(--borderRadiusSmall, 2px);--webchat-borderRadiusLarge: var(--borderRadiusLarge, 6px);--webchat-borderRadiusXLarge: var(--borderRadiusXLarge, 8px);--webchat-shadow16: var(--shadow16, 0 6.4px 14.4px 0 rgba(0, 0, 0, .132), 0 1.2px 3.6px 0 rgba(0, 0, 0, .108));--webchat-spacingHorizontalMNudge: var(--spacingHorizontalMNudge, 10px);--webchat-fontFamilyBase: var(--fontFamilyBase, \"Segoe UI\", \"Segoe UI Web (West European)\", -apple-system, BlinkMacSystemFont, Roboto, \"Helvetica Neue\", sans-serif);--webchat-fontFamilyNumeric: var(--fontFamilyNumeric, Bahnschrift, \"Segoe UI\", \"Segoe UI Web (West European)\", -apple-system, BlinkMacSystemFont, Roboto, \"Helvetica Neue\", sans-serif);--webchat-fontWeightSemibold: var(--fontWeightSemibold, 600);--webchat-strokeWidthThicker: var(--strokeWidthThicker, 3px);--webchat-durationUltraFast: var(--durationUltraFast, 0);--webchat-durationNormal: var(--durationNormal, .2s);--webchat-curveAccelerateMid: var(--curveAccelerateMid, cubic-bezier(1,0,1,1));--webchat-curveDecelerateMid: var(--curveDecelerateMid, cubic-bezier(0,0,0,1))}@media (prefers-reduced-motion){.webchat-fluent.a{--webchat-durationUltraFast: .01ms;--webchat-durationNormal: .01ms}}.webchat-fluent .b{background-color:var(--webchat-colorNeutralBackground4);border-radius:inherit;cursor:copy;display:grid;gap:8px;inset:0;place-content:center;place-items:center;position:absolute}.webchat-fluent .u{background-color:#e00;color:#fff}.webchat-fluent .h{height:36px;pointer-events:none;width:36px}.webchat-fluent .s{align-items:center;background:transparent;border-radius:8px;border:1px solid var(--webchat-colorBrandStroke2);color:currentColor;cursor:pointer;display:flex;font-size:12px;gap:4px;padding:4px 8px;text-align:start;transition:all .15s ease-out}@media (hover: hover){.webchat-fluent .s:not([aria-disabled=true]):hover{background-color:var(--webchat-colorBrandBackground2Hover);color:var(--webchat-colorBrandForeground2Hover)}}.webchat-fluent .s:not([aria-disabled=true]):active{background-color:var(--webchat-colorBrandBackground2Pressed);color:var(--webchat-colorBrandForeground2Pressed)}.webchat-fluent .s[aria-disabled=true]{color:var(--webchat-colorNeutralForegroundDisabled);cursor:not-allowed}.webchat-fluent .g{font-size:12px;height:1em;width:1em}.webchat-fluent .p{align-items:flex-end;align-self:flex-end;display:flex;flex-direction:column;gap:8px}.webchat-fluent .p:not(:empty){padding-block-end:8px;padding-inline-start:4px}.webchat-fluent .p.w{flex-direction:row;flex-wrap:wrap;justify-content:flex-end}.webchat-fluent .p.v{flex-direction:column}.webchat-fluent .f{display:flex;gap:4px;margin-inline-start:auto}.webchat-fluent .x{align-items:center;-webkit-appearance:none;appearance:none;aspect-ratio:1;background:transparent;border-radius:var(--webchat-borderRadiusSmall);border:none;color:currentColor;cursor:pointer;display:flex;justify-content:center;padding:3px;width:32px}.webchat-fluent .x>svg{font-size:20px;pointer-events:none}.webchat-fluent .x.k{color:var(--webchat-colorNeutralForeground2BrandSelected)}@media (hover: hover){.webchat-fluent .x:not([aria-disabled=true]):hover{color:var(--webchat-colorNeutralForeground2BrandHover)}}.webchat-fluent .x:not([aria-disabled=true]):active{color:var(--webchat-colorNeutralForeground2BrandPressed)}.webchat-fluent .x[aria-disabled=true]{color:var(--webchat-colorNeutralForegroundDisabled);cursor:not-allowed}.webchat-fluent .m{align-self:center;border-inline-end:1px solid var(--webchat-colorNeutralStroke2);height:28px}.webchat-fluent .m:is(:first-child,:last-child,:only-child){display:none}.webchat-fluent .B{display:grid}.webchat-fluent .F{font-size:0;height:0;opacity:0;width:1px}.webchat-fluent .y{border-radius:var(--webchat-borderRadiusLarge);border:1px solid var(--webchat-colorNeutralStroke1);cursor:default;padding:6px 8px;width:fit-content}.webchat-fluent .N{color:transparent;font-size:0;height:0;left:0;position:absolute;top:0;width:0}.webchat-fluent .S{display:grid;grid-template-areas:\"main\";max-height:200px;overflow:hidden}.webchat-fluent .z{height:0;visibility:collapse}.webchat-fluent .L{border:none;font:inherit;grid-area:main;outline:inherit;overflow-wrap:anywhere;resize:inherit;scrollbar-gutter:stable}.webchat-fluent .H{overflow:hidden;visibility:hidden;white-space:pre-wrap}.webchat-fluent .W{background-color:inherit;color:currentColor;height:100%;padding:0}.webchat-fluent .P{scrollbar-color:unset;scrollbar-width:unset;-moz-scrollbar-color:var(--webchat-colorNeutralBackground5) var(--webchat-colorNeutralForeground2);-moz-scrollbar-width:thin}.webchat-fluent .P::-webkit-scrollbar{width:8px}.webchat-fluent .P::-webkit-scrollbar-track{background-color:var(--webchat-colorNeutralBackground5);border-radius:16px}.webchat-fluent .P::-webkit-scrollbar-thumb{background-color:var(--webchat-colorNeutralForeground2);border-radius:16px}.webchat-fluent .P::-webkit-scrollbar-corner{background-color:var(--webchat-colorNeutralBackground5)}.webchat-fluent .R{color:var(--webchat-colorNeutralForeground1);font-family:var(--webchat-fontFamilyBase);padding:0 10px 10px;text-rendering:optimizeLegibility;--webchat-sendbox-attachment-area-active: ;--webchat-sendbox-border-radius: var(--webchat-borderRadiusLarge)}.webchat-fluent .G{background-color:var(--webchat-colorNeutralBackground1);border-radius:var(--webchat-sendbox-border-radius);border:1px solid var(--webchat-colorNeutralStroke1);display:grid;font-family:var(--webchat-fontFamilyBase);font-size:14px;gap:6px;grid-template:[telephone-keypad-start] \"text-area\" [telephone-keypad-end] var(--webchat-sendbox-attachment-area-active) \"controls\" / [telephone-keypad] 1fr;line-height:20px;padding:8px;position:relative}.webchat-fluent .G:has(.t){--webchat-sendbox-attachment-area-active: \"attachment\" }.webchat-fluent .G:focus-within{border-color:var(--webchat-colorNeutralStroke1Selected)}.webchat-fluent .G:after{border-bottom-left-radius:var(--webchat-sendbox-border-radius);border-bottom-right-radius:var(--webchat-sendbox-border-radius);border-bottom:var(--webchat-strokeWidthThicker) solid var(--webchat-colorCompoundBrandForeground1Hover);bottom:-1px;clip-path:inset(calc(100% - var(--webchat-strokeWidthThicker)) 50% 0 50%);content:\"\";height:var(--webchat-sendbox-border-radius);left:-1px;position:absolute;right:-1px;transition:clip-path var(--webchat-durationUltraFast) var(--webchat-curveAccelerateMid)}.webchat-fluent .G:focus-within:after{clip-path:inset(calc(100% - var(--webchat-strokeWidthThicker)) 0 0 0);transition:clip-path var(--webchat-durationNormal) var(--webchat-curveDecelerateMid)}.webchat-fluent .G>.D{grid-area:text-area}.webchat-fluent .G>.t{grid-area:attachment}.webchat-fluent .G>.M{grid-area:controls}.webchat-fluent .G>.U{grid-area:telephone-keypad}.webchat-fluent .C{background-color:transparent;border:none;flex:auto;font-family:var(--webchat-fontFamilyBase);font-size:14px;line-height:20px;outline:none;padding:4px 4px 0;resize:none}.webchat-fluent .j{align-items:center;display:flex;padding-inline-start:4px}.webchat-fluent .T{color:var(--webchat-colorNeutralForeground4);cursor:default;font-family:var(--webchat-fontFamilyNumeric);font-size:10px;line-height:14px;margin-inline-end:4px}.webchat-fluent .I{color:var(--webchat-colorStatusDangerForeground1)}\n/*! For license information please see botframework-webchat-fluent-theme.css.LEGAL.txt */\n";function P(){if(globalThis.document){let e=document.createElement("style");e.append(document.createTextNode(bt)),document.head.appendChild(e)}}import{useMemo as ft}from"react";function ht(e){return ft(()=>Object.freeze(Object.fromEntries(Object.entries(e).map(([t,o])=>[t,`${t} ${o}`]))),[e])}var i=ht;var xe=xt(gt(({button:e,"data-testid":t,onClick:o,ruby:r},a)=>{let d=i(ge),c=vt(o),n=yt(()=>c.current?.(),[c]);return W.createElement("button",{className:d["telephone-keypad__button"],"data-testid":t,onClick:n,ref:a,type:"button"},W.createElement("span",{className:d["telephone-keypad__button__text"]},e==="star"?"\u2217":e==="pound"?"#":e),!!r&&W.createElement("ruby",{className:d["telephone-keypad__button__ruby"]},r))}));xe.displayName="TelephoneKeypad.Button";var y=xe;var wt={sendBoxDropZone:"send box drop zone",sendBoxSendButton:"send box send button",sendBoxTextBox:"send box text area",sendBoxTelephoneKeypadButton1:"send box telephone keypad button 1",sendBoxTelephoneKeypadButton2:"send box telephone keypad button 2",sendBoxTelephoneKeypadButton3:"send box telephone keypad button 3",sendBoxTelephoneKeypadButton4:"send box telephone keypad button 4",sendBoxTelephoneKeypadButton5:"send box telephone keypad button 5",sendBoxTelephoneKeypadButton6:"send box telephone keypad button 6",sendBoxTelephoneKeypadButton7:"send box telephone keypad button 7",sendBoxTelephoneKeypadButton8:"send box telephone keypad button 8",sendBoxTelephoneKeypadButton9:"send box telephone keypad button 9",sendBoxTelephoneKeypadButton0:"send box telephone keypad button 0",sendBoxTelephoneKeypadButtonStar:"send box telephone keypad button star",sendBoxTelephoneKeypadButtonPound:"send box telephone keypad button pound",sendBoxTelephoneKeypadToolbarButton:"send box telephone keypad toolbar button",sendBoxUploadButton:"send box upload button"},m=wt;import{useContext as Tt,useMemo as kt}from"react";function k(){let{setShown:e,shown:t}=Tt(D);return kt(()=>Object.freeze([t,e]),[t,e])}var X={"telephone-keypad":"c","telephone-keypad__box":"n","telephone-keypad__info-message":"d","telephone-keypad__info-message-link":"i"};import ye,{memo as Bt}from"react";function Nt(e){return ye.createElement("svg",{"aria-hidden":"true",className:e.className,height:"1em",viewBox:"0 0 20 20",width:"1em",xmlns:"http://www.w3.org/2000/svg"},ye.createElement("path",{d:"M6 2a2 2 0 0 0-2 2v5.2c.32-.08.66-.15 1-.18V4a1 1 0 0 1 1-1h4v3.5c0 .83.67 1.5 1.5 1.5H15v8a1 1 0 0 1-1 1h-3.6c-.18.36-.4.7-.66 1H14a2 2 0 0 0 2-2V7.41c0-.4-.16-.78-.44-1.06l-3.91-3.91A1.5 1.5 0 0 0 10.59 2H6Zm8.8 5h-3.3a.5.5 0 0 1-.5-.5V3.2L14.8 7ZM10 14.5a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0Zm-4-2a.5.5 0 0 0-1 0V14H3.5a.5.5 0 0 0 0 1H5v1.5a.5.5 0 0 0 1 0V15h1.5a.5.5 0 0 0 0-1H6v-1.5Z",fill:"currentColor"}))}var G=Bt(Nt);import ve,{memo as St}from"react";function Et(e){return ve.createElement("svg",{"aria-hidden":"true",className:e.className,height:"1em",viewBox:"0 0 20 20",width:"1em",xmlns:"http://www.w3.org/2000/svg"},ve.createElement("path",{d:"m4.83 10.48 5.65-5.65a3 3 0 0 1 4.25 4.24L8 15.8a1.5 1.5 0 0 1-2.12-2.12l6-6.01a.5.5 0 1 0-.7-.71l-6 6.01a2.5 2.5 0 0 0 3.53 3.54l6.71-6.72a4 4 0 1 0-5.65-5.66L4.12 9.78a.5.5 0 0 0 .7.7Z",fill:"currentColor"}))}var $=St(Et);import we,{memo as Ct}from"react";function Ft(e){return we.createElement("svg",{"aria-hidden":"true",className:e.className,height:"1em",viewBox:"0 0 16 16",width:"1em",xmlns:"http://www.w3.org/2000/svg"},we.createElement("path",{d:"M8.5 7.5a.5.5 0 1 0-1 0v3a.5.5 0 0 0 1 0v-3Zm.25-2a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM8 1a7 7 0 1 0 0 14A7 7 0 0 0 8 1ZM2 8a6 6 0 1 1 12 0A6 6 0 0 1 2 8Z",fill:"currentColor"}))}var V=Ct(Ft);import Te,{memo as At}from"react";function Mt(e){return Te.createElement("svg",{"aria-hidden":"true",className:e.className,height:"1em",viewBox:"0 0 20 20",width:"1em",xmlns:"http://www.w3.org/2000/svg"},Te.createElement("path",{d:"M2.18 2.11a.5.5 0 0 1 .54-.06l15 7.5a.5.5 0 0 1 0 .9l-15 7.5a.5.5 0 0 1-.7-.58L3.98 10 2.02 2.63a.5.5 0 0 1 .16-.52Zm2.7 8.39-1.61 6.06L16.38 10 3.27 3.44 4.88 9.5h6.62a.5.5 0 1 1 0 1H4.88Z",fill:"currentColor"}))}var Y=At(Mt);import ke,{memo as Ht}from"react";function Lt(e){return ke.createElement("svg",{"aria-hidden":"true",className:e.className,height:"1em",viewBox:"0 0 20 20",width:"1em",xmlns:"http://www.w3.org/2000/svg"},ke.createElement("path",{d:"M6 5.25a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5Zm0 4a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5ZM7.25 12a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0ZM10 5.25a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5ZM11.25 8a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0ZM10 13.25a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5ZM11.25 16a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0ZM14 5.25a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5ZM15.25 8a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0ZM14 13.25a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5Z",fill:"currentColor"}))}var q=Ht(Lt);var{LocalizedString:Kt}=It,Ne=Be(({children:e,isHorizontal:t})=>{let o=i(X);return t?null:f.createElement("div",{className:o["telephone-keypad__box"]},e)});Ne.displayName="TelephoneKeypad:Orientation";var Se=Be(({autoFocus:e,className:t,onButtonClick:o,isHorizontal:r})=>{let a=_e(e),d=i(X),c=Rt(null),n=_e(o),[,u]=k(),b=v(()=>n.current?.("1"),[n]),s=v(()=>n.current?.("2"),[n]),l=v(()=>n.current?.("3"),[n]),p=v(()=>n.current?.("4"),[n]),g=v(()=>n.current?.("5"),[n]),N=v(()=>n.current?.("6"),[n]),_=v(()=>n.current?.("7"),[n]),B=v(()=>n.current?.("8"),[n]),w=v(()=>n.current?.("9"),[n]),T=v(()=>n.current?.("0"),[n]),S=v(()=>n.current?.("star"),[n]),C=v(()=>n.current?.("pound"),[n]),O=v(U=>{U.key==="Escape"&&u(!1)},[u]);return Pt(()=>{a.current&&c.current?.focus()},[a,c]),f.createElement("div",{className:Dt(d["telephone-keypad"],t),onKeyDown:O},f.createElement(Ne,{isHorizontal:r},f.createElement(y,{button:"1","data-testid":m.sendBoxTelephoneKeypadButton1,onClick:b,ref:c}),f.createElement(y,{button:"2","data-testid":m.sendBoxTelephoneKeypadButton2,onClick:s,ruby:"ABC"}),f.createElement(y,{button:"3","data-testid":m.sendBoxTelephoneKeypadButton3,onClick:l,ruby:"DEF"}),f.createElement(y,{button:"4","data-testid":m.sendBoxTelephoneKeypadButton4,onClick:p,ruby:"GHI"}),f.createElement(y,{button:"5","data-testid":m.sendBoxTelephoneKeypadButton5,onClick:g,ruby:"JKL"}),f.createElement(y,{button:"6","data-testid":m.sendBoxTelephoneKeypadButton6,onClick:N,ruby:"MNO"}),f.createElement(y,{button:"7","data-testid":m.sendBoxTelephoneKeypadButton7,onClick:_,ruby:"PQRS"}),f.createElement(y,{button:"8","data-testid":m.sendBoxTelephoneKeypadButton8,onClick:B,ruby:"TUV"}),f.createElement(y,{button:"9","data-testid":m.sendBoxTelephoneKeypadButton9,onClick:w,ruby:"WXYZ"}),f.createElement(y,{button:"star","data-testid":m.sendBoxTelephoneKeypadButtonStar,onClick:S}),f.createElement(y,{button:"0","data-testid":m.sendBoxTelephoneKeypadButton0,onClick:T,ruby:"+"}),f.createElement(y,{button:"pound","data-testid":m.sendBoxTelephoneKeypadButtonPound,onClick:C})),f.createElement("div",{className:d["telephone-keypad__info-message"]},f.createElement(V,null),f.createElement(Kt,{linkClassName:d["telephone-keypad__info-message-link"],stringIds:"TELEPHONE_KEYPAD_INPUT_MESSAGE"})))});Se.displayName="TelephoneKeypad";var Ee=Se;var Ce=Ot(e=>k()[0]?zt.createElement(Ee,{...e}):null);Ce.displayName="TelephoneKeypad.Surrogate";var J=Ce;import Zt from"react";import jt from"classnames";var Fe={theme:"a"};var Wt="webchat-fluent";function R(e){let t=i(Fe);return Zt.createElement("div",{className:jt(Wt,t.theme)},e.children)}import{hooks as _r}from"botframework-webchat-component";import L from"classnames";import h,{memo as Br,useCallback as A,useRef as Nr,useState as Sr}from"react";import{useRefFrom as rt}from"use-ref-from";import{hooks as Gt}from"botframework-webchat-component";import $t from"classnames";import Me,{memo as Vt,useCallback as Yt,useEffect as qt,useRef as Jt,useState as Qt}from"react";import{useRefFrom as eo}from"use-ref-from";var Ae={"sendbox__attachment-drop-zone":"b","sendbox__attachment-drop-zone--droppable":"u","sendbox__attachment-drop-zone-icon":"h"};var{useLocalizer:to}=Gt,oo=e=>{e.preventDefault()},He=e=>!!e.dataTransfer?.types?.some(t=>t.toLowerCase()==="files");function ro(e,t){let o=e.parentNode;for(;o;){if(o===t)return!0;o=o.parentNode}return!1}var Le=e=>{let[t,o]=Qt(!1),r=i(Ae),a=Jt(null),d=to(),c=eo(e.onFilesAdded);qt(()=>{let u=0,b=l=>{u++,He(l)&&o(a.current&&(l.target===a.current||l.target instanceof HTMLElement&&ro(l.target,a.current))?"droppable":"visible")},s=()=>--u<=0&&o(!1);return document.addEventListener("dragenter",b,!1),document.addEventListener("dragleave",s,!1),()=>{document.removeEventListener("dragenter",b),document.removeEventListener("dragleave",s)}},[o]);let n=Yt(u=>{u.preventDefault(),o(!1),He(u.nativeEvent)&&c.current([...u.dataTransfer.files])},[c,o]);return t?Me.createElement("div",{className:$t(r["sendbox__attachment-drop-zone"],{[r["sendbox__attachment-drop-zone--droppable"]]:t==="droppable"}),"data-testid":m.sendBoxDropZone,onDragOver:oo,onDrop:n,ref:a},Me.createElement(G,{className:r["sendbox__attachment-drop-zone-icon"]}),d("TEXT_INPUT_DROP_ZONE")):null};Le.displayName="DropZone";var Q=Vt(Le);import{hooks as Ao}from"botframework-webchat-component";import Mo from"classnames";import H,{memo as Ho,useCallback as Lo}from"react";import{hooks as yo}from"botframework-webchat-component";import vo from"classnames";import te,{memo as wo,useCallback as To}from"react";var Ie={"suggested-action":"s","suggested-action__image":"g"};import ao,{forwardRef as so,memo as lo,useRef as io}from"react";var co=e=>e.preventDefault(),uo=so(({"aria-hidden":e,children:t,disabled:o,onClick:r,tabIndex:a,...d},c)=>{let n=io(null);return ao.createElement("button",{"aria-disabled":o?"true":"false","aria-hidden":e,onClick:o?co:r,ref:c||n,tabIndex:a,...o&&{"aria-disabled":"true",tabIndex:-1},...d,type:"button"},t)}),De=lo(uo);import mo,{createContext as po,memo as bo,useCallback as F,useContext as fo,useEffect as ho,useMemo as go,useRef as ee}from"react";var Pe=po({itemEffector:()=>{throw new Error("botframework-webchat-fluent-theme rovingFocus: no provider for RovingFocusContext.")}});function xo(e){let t=ee(0),o=ee([]),r=F(({current:s},l)=>s&&(s.tabIndex=t.current===l?0:-1),[t]),a=F(s=>{let l;typeof s=="number"?l=s:l=s(t.current),l&&!o.current.at(l)?.current&&(l=0),t.current!==l&&(t.current=l,o.current.forEach((p,g)=>r(p,g)),o.current.at(l)?.current?.focus())},[r,o,t]),d=F(s=>{let{target:l}=s,p=o.current.findIndex(({current:g})=>g===l);p!==-1&&a(p)},[o,a]),c=F(s=>l=>{let p=!e.direction,g=/up|down/iu.test(s)&&e.direction==="vertical",N=/left|right/iu.test(s)&&e.direction==="horizontal",_=/right|down/iu.test(s),B=p||g||N?_?1:-1:0,w=o.current.map((S,C)=>C),T=w.indexOf(l)+B;return w.at(T)??0},[e.direction]),n=F(s=>{let{key:l}=s;switch(l){case"Up":case"ArrowUp":case"Left":case"ArrowLeft":case"Down":case"ArrowDown":case"Right":case"ArrowRight":a(c(l));break;case"Home":a(0);break;case"End":a(-1);break;case"Escape":e.onEscapeKey?.();break;default:return}s.preventDefault(),s.stopPropagation()},[a,c,e]),u=F((s,l)=>{let{current:p}=s;return o.current[Number(l)]=s,p.addEventListener("focus",d),p.addEventListener("keydown",n),r(s,l),()=>{p.removeEventListener("focus",d),p.removeEventListener("keydown",n),delete o.current[Number(l)]}},[d,n,r,o]),b=go(()=>({itemEffector:u}),[u]);return mo.createElement(Pe.Provider,{value:b},e.children)}function Re(e){let t=ee(null),{itemEffector:o}=fo(Pe);return ho(()=>o(t,e)),t}var Ke=bo(xo);var{useDisabled:ko,useFocus:_o,usePerformCardAction:Bo,useScrollToEnd:No,useStyleSet:So,useSuggestedActions:Eo}=yo;function Co({buttonText:e,className:t,displayText:o,image:r,imageAlt:a,itemIndex:d,text:c,type:n,value:u}){let[b,s]=Eo(),[{suggestedAction:l}]=So(),[p]=ko(),g=_o(),N=Re(d),_=Bo(),B=i(Ie),w=No(),T=To(({target:S})=>{(async function(){await g("sendBoxWithoutKeyboard"),_({displayText:o,text:c,type:n,value:u},{target:S}),n==="openUrl"&&s([]),w()})()},[o,g,_,w,s,c,n,u]);return te.createElement(De,{className:vo(B["suggested-action"],l+"",(t||"")+""),disabled:p,onClick:T,ref:N,type:"button"},r&&te.createElement("img",{alt:a,className:B["suggested-action__image"],src:r}),te.createElement("span",null,e))}var ze=wo(Co);function oe(e){let{title:t}=e,{type:o,value:r}=e;return o==="messageBack"?t||e.displayText:t||(typeof r=="string"?r:JSON.stringify(r))}var re={"suggested-actions":"p","suggested-actions--flow":"w","suggested-actions--stacked":"v"};var{useFocus:Io,useLocalizer:Do,useStyleOptions:Po,useStyleSet:Ro,useSuggestedActions:Ko}=Ao;function zo(e){let[{suggestedActionLayout:t}]=Po(),[{suggestedActions:o}]=Ro(),r=i(re);return H.createElement("div",{"aria-label":e["aria-label"],"aria-live":"polite","aria-orientation":"vertical",className:Mo(r["suggested-actions"],o+"",{[r["suggested-actions--flow"]]:t==="flow",[r["suggested-actions--stacked"]]:t!=="flow"},e.className),role:"toolbar"},!!e.children&&!!H.Children.count(e.children)&&e.children)}function Oo(){let e=i(re),t=Do(),[o]=Ko(),r=Io(),a=Lo(()=>{r("sendBox")},[r]),d=o.map((c,n)=>{let{displayText:u,image:b,imageAltText:s,text:l,type:p,value:g}=c;return o?.length?H.createElement(ze,{buttonText:oe(c),displayText:u,image:b,imageAlt:b&&(s||l),itemIndex:n,key:n,text:l,type:p,value:g}):null});return H.createElement(Ke,{onEscapeKey:a},H.createElement(zo,{"aria-label":t("SUGGESTED_ACTIONS_LABEL_ALT"),className:e["suggested-actions"]},d))}var ne=Ho(Oo);import{hooks as Wo}from"botframework-webchat-component";import z,{useCallback as Ue,useRef as Xo,memo as Go}from"react";import{useRefFrom as $o}from"use-ref-from";import ae from"classnames";import se,{memo as le}from"react";var K={sendbox__toolbar:"f","sendbox__toolbar-button":"x","sendbox__toolbar-button--selected":"k","sendbox__toolbar-separator":"m"};var Zo=e=>e.preventDefault(),E=le(e=>{let t=i(K);return se.createElement("button",{"aria-label":e["aria-label"],className:ae(t["sendbox__toolbar-button"],e.className,{[t["sendbox__toolbar-button--selected"]]:e.selected}),"data-testid":e["data-testid"],onClick:e.disabled?Zo:e.onClick,type:e.type==="submit"?"submit":"button",...e.disabled&&{"aria-disabled":"true",tabIndex:-1}},e.children)});E.displayName="ToolbarButton";var de=le(e=>{let t=i(K);return se.createElement("div",{className:ae(t.sendbox__toolbar,e.className)},e.children)});de.displayName="Toolbar";var ie=le(e=>{let t=i(K);return se.createElement("div",{"aria-orientation":"vertical",className:ae(t["sendbox__toolbar-separator"],e.className),role:"separator"})});ie.displayName="ToolbarSeparator";var Oe={"sendbox__add-attachment":"B","sendbox__add-attachment-input":"F"};var{useLocalizer:Vo,useStyleOptions:Yo}=Wo;function qo(e){let t=Xo(null),o=i(Oe),r=Vo(),[{uploadAccept:a,uploadMultiple:d}]=Yo(),c=$o(e.onFilesAdded),n=Ue(()=>t.current?.click(),[t]),u=Ue(({target:{files:b}})=>{b&&(c.current?.([...b]),t.current&&(t.current.value=""))},[t,c]);return z.createElement("div",{className:o["sendbox__add-attachment"]},z.createElement("input",{accept:a,"aria-disabled":e.disabled,"aria-hidden":"true",className:o["sendbox__add-attachment-input"],multiple:d,onInput:e.disabled?void 0:u,readOnly:e.disabled,ref:t,role:"button",tabIndex:-1,type:"file"}),z.createElement(E,{"aria-label":r("TEXT_INPUT_UPLOAD_BUTTON_ALT"),"data-testid":m.sendBoxUploadButton,onClick:n},z.createElement($,null)))}var Ze=Go(qo);import{hooks as Qo}from"botframework-webchat-component";import er,{memo as tr}from"react";import or from"classnames";var je={sendbox__attachment:"y"};var{useLocalizer:rr}=Qo,nr={one:"TEXT_INPUT_ATTACHMENTS_ONE",two:"TEXT_INPUT_ATTACHMENTS_TWO",few:"TEXT_INPUT_ATTACHMENTS_FEW",many:"TEXT_INPUT_ATTACHMENTS_MANY",other:"TEXT_INPUT_ATTACHMENTS_OTHER"};function ar({attachments:e,className:t}){let o=i(je),r=rr({plural:!0});return e.length?er.createElement("div",{className:or(o.sendbox__attachment,t)},r(nr,e.length)):null}var We=tr(ar);import lr,{memo as dr}from"react";var Xe={"sendbox__error-message":"N"};function ir(e){let t=i(Xe);return lr.createElement("span",{className:t["sendbox__error-message"],id:e.id,role:"alert"},e.error)}var Ge=dr(ir);import $e,{memo as cr,useCallback as ur}from"react";import{hooks as mr}from"botframework-webchat-component";var{useLocalizer:pr}=mr,Ve=cr(()=>{let[e,t]=k(),o=pr(),r=ur(()=>t(a=>!a),[t]);return $e.createElement(E,{"aria-label":o("TEXT_INPUT_TELEPHONE_KEYPAD_BUTTON_ALT"),"data-testid":m.sendBoxTelephoneKeypadToolbarButton,onClick:r,selected:e},$e.createElement(q,null))});Ve.displayName="SendBox.TelephoneKeypadToolbarButton";var Ye=Ve;import ce from"classnames";import ue,{forwardRef as fr,useCallback as hr}from"react";var qe={"sendbox__text-area":"S","sendbox__text-area--hidden":"z","sendbox__text-area-shared":"L","sendbox__text-area-doppelganger":"H","sendbox__text-area-input":"W","sendbox__text-area-input--scroll":"P"};var Je=fr((e,t)=>{let o=i(qe),r=hr(a=>{!a.shiftKey&&a.key==="Enter"&&(a.preventDefault(),"form"in a.target&&a.target.form instanceof HTMLFormElement&&a.target?.form?.requestSubmit())},[]);return ue.createElement("div",{className:ce(o["sendbox__text-area"],{[o["sendbox__text-area--hidden"]]:e.hidden},e.className),role:e.hidden?"hidden":void 0},ue.createElement("div",{className:ce(o["sendbox__text-area-doppelganger"],o["sendbox__text-area-shared"],o["sendbox__text-area-input--scroll"])},e.value||e.placeholder," "),ue.createElement("textarea",{"aria-label":e["aria-label"],className:ce(o["sendbox__text-area-input"],o["sendbox__text-area-shared"],o["sendbox__text-area-input--scroll"]),"data-testid":e["data-testid"],onInput:e.onInput,onKeyDown:r,placeholder:e.placeholder,ref:t,rows:e.startRows??1,tabIndex:e.hidden?-1:void 0,value:e.value}))});Je.displayName="TextArea";var Qe=Je;import{hooks as gr}from"botframework-webchat-component";import{useMemo as et}from"react";import{useRefFrom as xr}from"use-ref-from";var{useConnectivityStatus:yr,useLocalizer:vr}=gr,wr=({attachments:e,message:t})=>{let[o]=yr(),r=vr(),a=xr(o!=="connected"&&o!=="reconnected"?"offline":!t&&!e.length?"empty":void 0),d=et(()=>Object.freeze(new Map().set("empty",r("SEND_BOX_IS_EMPTY_TOOLTIP_ALT")).set("offline",r("CONNECTIVITY_STATUS_ALT_FATAL"))),[r]);return et(()=>Object.freeze([a,a.current&&d.get(a.current)]),[d,a])},tt=wr;import{useMemo as Tr}from"react";function me(e){let t=Tr(()=>Math.random().toString(36).substr(2,5),[]);return e=e?`${e}--`:"",`${e}${t}`}var ot={sendbox:"R",sendbox__sendbox:"G","sendbox__attachment--in-grid":"t","sendbox__text-area--in-grid":"D","sendbox__sendbox-controls--in-grid":"M","sendbox__telephone-keypad--in-grid":"U","sendbox__sendbox-text":"C","sendbox__sendbox-controls":"j","sendbox__text-counter":"T","sendbox__text-counter--error":"I"};var{useFocus:Er,useLocalizer:Cr,useMakeThumbnail:Fr,useRegisterFocusSendBox:Ar,useSendBoxAttachments:Mr,useSendMessage:Hr,useStyleOptions:Lr}=_r;function Ir(e){let t=Nr(null),[o,r]=Sr(""),[a,d]=Mr(),[{hideTelephoneKeypadButton:c,hideUploadButton:n,maxMessageLength:u}]=Lr(),b=!!u&&o.length>u,s=i(ot),l=Cr(),p=Hr(),g=Fr(),N=me("sendbox__error-message-id"),[_,B]=tt({message:o,attachments:a}),[w]=k(),T=Er();Ar(A(({noKeyboard:x,waitUntil:Z})=>{t.current&&(x?Z((async()=>{let M=t.current?.getAttribute("readonly");t.current?.setAttribute("readonly","true"),await new Promise(I=>setTimeout(I,0)),t.current?.focus(),typeof M!="string"?t.current?.removeAttribute("readonly"):t.current?.setAttribute("readonly",M)})()):t.current?.focus())},[t]));let S=rt(a),C=rt(o),O=A(x=>{"tabIndex"in x.target&&typeof x.target.tabIndex=="number"&&x.target.tabIndex>=0||T("sendBox")},[T]),U=A(x=>r(x.currentTarget.value),[r]),fe=A(async x=>{let Z=Object.freeze(await Promise.all(x.map(M=>g(M).then(I=>Object.freeze({blob:M,...I&&{thumbnailURL:I}})))));d(Z)},[g,d]),nt=A(x=>{x.preventDefault(),_.current!=="empty"&&!b&&(p(C.current,void 0,{attachments:S.current}),r(""),d([])),T("sendBox")},[S,C,p,d,r,b,_,T]),at=A(x=>p(`/DTMF ${x}`),[p]),st={"aria-invalid":"false",...B&&{"aria-invalid":"true","aria-errormessage":N}};return h.createElement("form",{...st,className:L(s.sendbox,e.className),onSubmit:nt},h.createElement(ne,null),h.createElement("div",{className:L(s.sendbox__sendbox),onClickCapture:O},h.createElement(Qe,{"aria-label":l(b?"TEXT_INPUT_LENGTH_EXCEEDED_ALT":"TEXT_INPUT_ALT"),className:L(s["sendbox__sendbox-text"],s["sendbox__text-area--in-grid"]),"data-testid":m.sendBoxTextBox,hidden:w,onInput:U,placeholder:e.placeholder??l("TEXT_INPUT_PLACEHOLDER"),ref:t,value:o}),h.createElement(J,{autoFocus:!0,className:s["sendbox__telephone-keypad--in-grid"],isHorizontal:!1,onButtonClick:at}),h.createElement(We,{attachments:a,className:s["sendbox__attachment--in-grid"]}),h.createElement("div",{className:L(s["sendbox__sendbox-controls"],s["sendbox__sendbox-controls--in-grid"])},!w&&u&&h.createElement("div",{className:L(s["sendbox__text-counter"],{[s["sendbox__text-counter--error"]]:b})},`${o.length}/${u}`),h.createElement(de,null,!c&&h.createElement(Ye,null),!n&&h.createElement(Ze,{onFilesAdded:fe}),h.createElement(ie,null),h.createElement(E,{"aria-label":l("TEXT_INPUT_SEND_BUTTON_ALT"),"data-testid":m.sendBoxSendButton,disabled:b||w,type:"submit"},h.createElement(Y,null)))),h.createElement(Q,{onFilesAdded:fe}),h.createElement(Ge,{error:B,id:N})))}var pe=Br(Ir);var{ThemeProvider:Rr}=Dr,Kr=[()=>()=>()=>pe],zr=({children:e})=>be.createElement(R,null,be.createElement(j,null,be.createElement(Rr,{sendBoxMiddleware:Kr},e))),Or=Pr(zr);var Zr="tsup",jr="esmodules",Wr="4.17.1-main.20240509.b00b5c9",xl={buildTool:Zr,moduleFormat:jr,version:Wr};Ur("botframework-webchat:fluent-theme","version=4.17.1-main.20240509.b00b5c9; build-tool=tsup; module-format=esmodules");P();export{Or as FluentThemeProvider,xl as buildInfo,m as testIds};
2
2
  /*! For license information please see botframework-webchat-fluent-theme.mjs.LEGAL.txt */
3
3
  //# sourceMappingURL=botframework-webchat-fluent-theme.mjs.map
@@ -1,3 +1,3 @@
1
- "use strict";(()=>{var Ba=Object.create;var $r=Object.defineProperty;var Na=Object.getOwnPropertyDescriptor;var Ea=Object.getOwnPropertyNames;var Fa=Object.getPrototypeOf,Ca=Object.prototype.hasOwnProperty;var a=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var Oa=(e,r,t,o)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of Ea(r))!Ca.call(e,n)&&n!==t&&$r(e,n,{get:()=>r[n],enumerable:!(o=Na(r,n))||o.enumerable});return e};var l=(e,r,t)=>(t=e!=null?Ba(Fa(e)):{},Oa(r||!e||!e.__esModule?$r(t,"default",{value:e,enumerable:!0}):t,e));var O=a((qd,Vr)=>{Vr.exports={Components:globalThis.WebChat.Components,hooks:globalThis.WebChat.hooks}});var f=a((Pd,Gr)=>{Gr.exports=globalThis.React});var q=a((Dd,ye)=>{(function(){"use strict";var e={}.hasOwnProperty;function r(){for(var n="",i=0;i<arguments.length;i++){var d=arguments[i];d&&(n=o(n,t(d)))}return n}function t(n){if(typeof n=="string"||typeof n=="number")return n;if(typeof n!="object")return"";if(Array.isArray(n))return r.apply(null,n);if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]"))return n.toString();var i="";for(var d in n)e.call(n,d)&&n[d]&&(i=o(i,d));return i}function o(n,i){return i?n?n+" "+i:n+i:n}typeof ye<"u"&&ye.exports?(r.default=r,ye.exports=r):typeof define=="function"&&typeof define.amd=="object"&&define.amd?define("classnames",[],function(){return r}):window.classNames=r})()});var R=a((Ke,Jr)=>{"use strict";var ne=function(e){return e&&e.Math===Math&&e};Jr.exports=ne(typeof globalThis=="object"&&globalThis)||ne(typeof window=="object"&&window)||ne(typeof self=="object"&&self)||ne(typeof global=="object"&&global)||ne(typeof Ke=="object"&&Ke)||function(){return this}()||Function("return this")()});var H=a((Hd,Qr)=>{"use strict";Qr.exports=function(e){try{return!!e()}catch{return!0}}});var ae=a((jd,et)=>{"use strict";var Ma=H();et.exports=!Ma(function(){var e=(function(){}).bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var at=a((Kd,nt)=>{"use strict";var qa=ae(),ot=Function.prototype,rt=ot.apply,tt=ot.call;nt.exports=typeof Reflect=="object"&&Reflect.apply||(qa?tt.bind(rt):function(){return tt.apply(rt,arguments)})});var j=a((zd,lt)=>{"use strict";var it=ae(),st=Function.prototype,ze=st.call,Pa=it&&st.bind.bind(ze,ze);lt.exports=it?Pa:function(e){return function(){return ze.apply(e,arguments)}}});var Ue=a((Ud,ct)=>{"use strict";var dt=j(),Aa=dt({}.toString),La=dt("".slice);ct.exports=function(e){return La(Aa(e),8,-1)}});var We=a((Wd,ut)=>{"use strict";var Ra=Ue(),Da=j();ut.exports=function(e){if(Ra(e)==="Function")return Da(e)}});var K=a((Zd,pt)=>{"use strict";var Ze=typeof document=="object"&&document.all;pt.exports=typeof Ze>"u"&&Ze!==void 0?function(e){return typeof e=="function"||e===Ze}:function(e){return typeof e=="function"}});var z=a(($d,mt)=>{"use strict";var Ha=H();mt.exports=!Ha(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var we=a((Vd,ft)=>{"use strict";var ja=ae(),xe=Function.prototype.call;ft.exports=ja?xe.bind(xe):function(){return xe.apply(xe,arguments)}});var gt=a(vt=>{"use strict";var bt={}.propertyIsEnumerable,ht=Object.getOwnPropertyDescriptor,Ka=ht&&!bt.call({1:2},1);vt.f=Ka?function(r){var t=ht(this,r);return!!t&&t.enumerable}:bt});var $e=a((Xd,yt)=>{"use strict";yt.exports=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}}});var wt=a((Yd,xt)=>{"use strict";var za=j(),Ua=H(),Wa=Ue(),Ve=Object,Za=za("".split);xt.exports=Ua(function(){return!Ve("z").propertyIsEnumerable(0)})?function(e){return Wa(e)==="String"?Za(e,""):Ve(e)}:Ve});var Ge=a((Jd,Tt)=>{"use strict";Tt.exports=function(e){return e==null}});var Xe=a((Qd,St)=>{"use strict";var $a=Ge(),Va=TypeError;St.exports=function(e){if($a(e))throw new Va("Can't call method on "+e);return e}});var ie=a((ec,kt)=>{"use strict";var Ga=wt(),Xa=Xe();kt.exports=function(e){return Ga(Xa(e))}});var se=a((rc,_t)=>{"use strict";var Ya=K();_t.exports=function(e){return typeof e=="object"?e!==null:Ya(e)}});var Te=a((tc,Bt)=>{"use strict";Bt.exports={}});var Qe=a((oc,Et)=>{"use strict";var Ye=Te(),Je=R(),Ja=K(),Nt=function(e){return Ja(e)?e:void 0};Et.exports=function(e,r){return arguments.length<2?Nt(Ye[e])||Nt(Je[e]):Ye[e]&&Ye[e][r]||Je[e]&&Je[e][r]}});var Ct=a((nc,Ft)=>{"use strict";var Qa=j();Ft.exports=Qa({}.isPrototypeOf)});var It=a((ac,Ot)=>{"use strict";Ot.exports=typeof navigator<"u"&&String(navigator.userAgent)||""});var Dt=a((ic,Rt)=>{"use strict";var Lt=R(),er=It(),Mt=Lt.process,qt=Lt.Deno,Pt=Mt&&Mt.versions||qt&&qt.version,At=Pt&&Pt.v8,I,Se;At&&(I=At.split("."),Se=I[0]>0&&I[0]<4?1:+(I[0]+I[1]));!Se&&er&&(I=er.match(/Edge\/(\d+)/),(!I||I[1]>=74)&&(I=er.match(/Chrome\/(\d+)/),I&&(Se=+I[1])));Rt.exports=Se});var rr=a((sc,jt)=>{"use strict";var Ht=Dt(),ei=H(),ri=R(),ti=ri.String;jt.exports=!!Object.getOwnPropertySymbols&&!ei(function(){var e=Symbol("symbol detection");return!ti(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Ht&&Ht<41})});var tr=a((lc,Kt)=>{"use strict";var oi=rr();Kt.exports=oi&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var or=a((dc,zt)=>{"use strict";var ni=Qe(),ai=K(),ii=Ct(),si=tr(),li=Object;zt.exports=si?function(e){return typeof e=="symbol"}:function(e){var r=ni("Symbol");return ai(r)&&ii(r.prototype,li(e))}});var Wt=a((cc,Ut)=>{"use strict";var di=String;Ut.exports=function(e){try{return di(e)}catch{return"Object"}}});var nr=a((uc,Zt)=>{"use strict";var ci=K(),ui=Wt(),pi=TypeError;Zt.exports=function(e){if(ci(e))return e;throw new pi(ui(e)+" is not a function")}});var Vt=a((pc,$t)=>{"use strict";var mi=nr(),fi=Ge();$t.exports=function(e,r){var t=e[r];return fi(t)?void 0:mi(t)}});var Xt=a((mc,Gt)=>{"use strict";var ar=we(),ir=K(),sr=se(),bi=TypeError;Gt.exports=function(e,r){var t,o;if(r==="string"&&ir(t=e.toString)&&!sr(o=ar(t,e))||ir(t=e.valueOf)&&!sr(o=ar(t,e))||r!=="string"&&ir(t=e.toString)&&!sr(o=ar(t,e)))return o;throw new bi("Can't convert object to primitive value")}});var Jt=a((fc,Yt)=>{"use strict";Yt.exports=!0});var ro=a((bc,eo)=>{"use strict";var Qt=R(),hi=Object.defineProperty;eo.exports=function(e,r){try{hi(Qt,e,{value:r,configurable:!0,writable:!0})}catch{Qt[e]=r}return r}});var lr=a((hc,no)=>{"use strict";var vi=Jt(),gi=R(),yi=ro(),to="__core-js_shared__",oo=no.exports=gi[to]||yi(to,{});(oo.versions||(oo.versions=[])).push({version:"3.36.1",mode:vi?"pure":"global",copyright:"\xA9 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.36.1/LICENSE",source:"https://github.com/zloirock/core-js"})});var dr=a((vc,io)=>{"use strict";var ao=lr();io.exports=function(e,r){return ao[e]||(ao[e]=r||{})}});var lo=a((gc,so)=>{"use strict";var xi=Xe(),wi=Object;so.exports=function(e){return wi(xi(e))}});var le=a((yc,co)=>{"use strict";var Ti=j(),Si=lo(),ki=Ti({}.hasOwnProperty);co.exports=Object.hasOwn||function(r,t){return ki(Si(r),t)}});var cr=a((xc,uo)=>{"use strict";var _i=j(),Bi=0,Ni=Math.random(),Ei=_i(1 .toString);uo.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Ei(++Bi+Ni,36)}});var fo=a((wc,mo)=>{"use strict";var Fi=R(),Ci=dr(),po=le(),Oi=cr(),Ii=rr(),Mi=tr(),J=Fi.Symbol,ur=Ci("wks"),qi=Mi?J.for||J:J&&J.withoutSetter||Oi;mo.exports=function(e){return po(ur,e)||(ur[e]=Ii&&po(J,e)?J[e]:qi("Symbol."+e)),ur[e]}});var go=a((Tc,vo)=>{"use strict";var Pi=we(),bo=se(),ho=or(),Ai=Vt(),Li=Xt(),Ri=fo(),Di=TypeError,Hi=Ri("toPrimitive");vo.exports=function(e,r){if(!bo(e)||ho(e))return e;var t=Ai(e,Hi),o;if(t){if(r===void 0&&(r="default"),o=Pi(t,e,r),!bo(o)||ho(o))return o;throw new Di("Can't convert object to primitive value")}return r===void 0&&(r="number"),Li(e,r)}});var pr=a((Sc,yo)=>{"use strict";var ji=go(),Ki=or();yo.exports=function(e){var r=ji(e,"string");return Ki(r)?r:r+""}});var fr=a((kc,wo)=>{"use strict";var zi=R(),xo=se(),mr=zi.document,Ui=xo(mr)&&xo(mr.createElement);wo.exports=function(e){return Ui?mr.createElement(e):{}}});var br=a((_c,To)=>{"use strict";var Wi=z(),Zi=H(),$i=fr();To.exports=!Wi&&!Zi(function(){return Object.defineProperty($i("div"),"a",{get:function(){return 7}}).a!==7})});var _o=a(ko=>{"use strict";var Vi=z(),Gi=we(),Xi=gt(),Yi=$e(),Ji=ie(),Qi=pr(),es=le(),rs=br(),So=Object.getOwnPropertyDescriptor;ko.f=Vi?So:function(r,t){if(r=Ji(r),t=Qi(t),rs)try{return So(r,t)}catch{}if(es(r,t))return Yi(!Gi(Xi.f,r,t),r[t])}});var No=a((Nc,Bo)=>{"use strict";var ts=H(),os=K(),ns=/#|\.prototype\./,de=function(e,r){var t=is[as(e)];return t===ls?!0:t===ss?!1:os(r)?ts(r):!!r},as=de.normalize=function(e){return String(e).replace(ns,".").toLowerCase()},is=de.data={},ss=de.NATIVE="N",ls=de.POLYFILL="P";Bo.exports=de});var Co=a((Ec,Fo)=>{"use strict";var Eo=We(),ds=nr(),cs=ae(),us=Eo(Eo.bind);Fo.exports=function(e,r){return ds(e),r===void 0?e:cs?us(e,r):function(){return e.apply(r,arguments)}}});var hr=a((Fc,Oo)=>{"use strict";var ps=z(),ms=H();Oo.exports=ps&&ms(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var ke=a((Cc,Io)=>{"use strict";var fs=se(),bs=String,hs=TypeError;Io.exports=function(e){if(fs(e))return e;throw new hs(bs(e)+" is not an object")}});var wr=a(qo=>{"use strict";var vs=z(),gs=br(),ys=hr(),_e=ke(),Mo=pr(),xs=TypeError,vr=Object.defineProperty,ws=Object.getOwnPropertyDescriptor,gr="enumerable",yr="configurable",xr="writable";qo.f=vs?ys?function(r,t,o){if(_e(r),t=Mo(t),_e(o),typeof r=="function"&&t==="prototype"&&"value"in o&&xr in o&&!o[xr]){var n=ws(r,t);n&&n[xr]&&(r[t]=o.value,o={configurable:yr in o?o[yr]:n[yr],enumerable:gr in o?o[gr]:n[gr],writable:!1})}return vr(r,t,o)}:vr:function(r,t,o){if(_e(r),t=Mo(t),_e(o),gs)try{return vr(r,t,o)}catch{}if("get"in o||"set"in o)throw new xs("Accessors not supported");return"value"in o&&(r[t]=o.value),r}});var Ao=a((Ic,Po)=>{"use strict";var Ts=z(),Ss=wr(),ks=$e();Po.exports=Ts?function(e,r,t){return Ss.f(e,r,ks(1,t))}:function(e,r,t){return e[r]=t,e}});var Do=a((Mc,Ro)=>{"use strict";var ce=R(),_s=at(),Bs=We(),Ns=K(),Es=_o().f,Fs=No(),Q=Te(),Cs=Co(),ee=Ao(),Lo=le();lr();var Os=function(e){var r=function(t,o,n){if(this instanceof r){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,o)}return new e(t,o,n)}return _s(e,this,arguments)};return r.prototype=e.prototype,r};Ro.exports=function(e,r){var t=e.target,o=e.global,n=e.stat,i=e.proto,d=o?ce:n?ce[t]:ce[t]&&ce[t].prototype,s=o?Q:Q[t]||ee(Q,t,{})[t],h=s.prototype,x,c,u,m,g,B,_,T,k;for(m in r)x=Fs(o?m:t+(n?".":"#")+m,e.forced),c=!x&&d&&Lo(d,m),B=s[m],c&&(e.dontCallGetSet?(k=Es(d,m),_=k&&k.value):_=d[m]),g=c&&_?_:r[m],!(!x&&!i&&typeof B==typeof g)&&(e.bind&&c?T=Cs(g,ce):e.wrap&&c?T=Os(g):i&&Ns(g)?T=Bs(g):T=g,(e.sham||g&&g.sham||B&&B.sham)&&ee(T,"sham",!0),ee(s,m,T),i&&(u=t+"Prototype",Lo(Q,u)||ee(Q,u,{}),ee(Q[u],m,g),e.real&&h&&(x||!h[m])&&ee(h,m,g)))}});var jo=a((qc,Ho)=>{"use strict";var Is=Math.ceil,Ms=Math.floor;Ho.exports=Math.trunc||function(r){var t=+r;return(t>0?Ms:Is)(t)}});var Tr=a((Pc,Ko)=>{"use strict";var qs=jo();Ko.exports=function(e){var r=+e;return r!==r||r===0?0:qs(r)}});var Uo=a((Ac,zo)=>{"use strict";var Ps=Tr(),As=Math.max,Ls=Math.min;zo.exports=function(e,r){var t=Ps(e);return t<0?As(t+r,0):Ls(t,r)}});var Zo=a((Lc,Wo)=>{"use strict";var Rs=Tr(),Ds=Math.min;Wo.exports=function(e){var r=Rs(e);return r>0?Ds(r,9007199254740991):0}});var Vo=a((Rc,$o)=>{"use strict";var Hs=Zo();$o.exports=function(e){return Hs(e.length)}});var Yo=a((Dc,Xo)=>{"use strict";var js=ie(),Ks=Uo(),zs=Vo(),Go=function(e){return function(r,t,o){var n=js(r),i=zs(n);if(i===0)return!e&&-1;var d=Ks(o,i),s;if(e&&t!==t){for(;i>d;)if(s=n[d++],s!==s)return!0}else for(;i>d;d++)if((e||d in n)&&n[d]===t)return e||d||0;return!e&&-1}};Xo.exports={includes:Go(!0),indexOf:Go(!1)}});var Sr=a((Hc,Jo)=>{"use strict";Jo.exports={}});var rn=a((jc,en)=>{"use strict";var Us=j(),kr=le(),Ws=ie(),Zs=Yo().indexOf,$s=Sr(),Qo=Us([].push);en.exports=function(e,r){var t=Ws(e),o=0,n=[],i;for(i in t)!kr($s,i)&&kr(t,i)&&Qo(n,i);for(;r.length>o;)kr(t,i=r[o++])&&(~Zs(n,i)||Qo(n,i));return n}});var _r=a((Kc,tn)=>{"use strict";tn.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var nn=a((zc,on)=>{"use strict";var Vs=rn(),Gs=_r();on.exports=Object.keys||function(r){return Vs(r,Gs)}});var sn=a(an=>{"use strict";var Xs=z(),Ys=hr(),Js=wr(),Qs=ke(),el=ie(),rl=nn();an.f=Xs&&!Ys?Object.defineProperties:function(r,t){Qs(r);for(var o=el(t),n=rl(t),i=n.length,d=0,s;i>d;)Js.f(r,s=n[d++],o[s]);return r}});var dn=a((Wc,ln)=>{"use strict";var tl=Qe();ln.exports=tl("document","documentElement")});var pn=a((Zc,un)=>{"use strict";var ol=dr(),nl=cr(),cn=ol("keys");un.exports=function(e){return cn[e]||(cn[e]=nl(e))}});var xn=a(($c,yn)=>{"use strict";var al=ke(),il=sn(),mn=_r(),sl=Sr(),ll=dn(),dl=fr(),cl=pn(),fn=">",bn="<",Nr="prototype",Er="script",vn=cl("IE_PROTO"),Br=function(){},gn=function(e){return bn+Er+fn+e+bn+"/"+Er+fn},hn=function(e){e.write(gn("")),e.close();var r=e.parentWindow.Object;return e=null,r},ul=function(){var e=dl("iframe"),r="java"+Er+":",t;return e.style.display="none",ll.appendChild(e),e.src=String(r),t=e.contentWindow.document,t.open(),t.write(gn("document.F=Object")),t.close(),t.F},Be,Ne=function(){try{Be=new ActiveXObject("htmlfile")}catch{}Ne=typeof document<"u"?document.domain&&Be?hn(Be):ul():hn(Be);for(var e=mn.length;e--;)delete Ne[Nr][mn[e]];return Ne()};sl[vn]=!0;yn.exports=Object.create||function(r,t){var o;return r!==null?(Br[Nr]=al(r),o=new Br,Br[Nr]=null,o[vn]=r):o=Ne(),t===void 0?o:il.f(o,t)}});var wn=a(()=>{"use strict";var pl=Do(),ml=z(),fl=xn();pl({target:"Object",stat:!0,sham:!ml},{create:fl})});var Sn=a((Xc,Tn)=>{"use strict";wn();var bl=Te(),hl=bl.Object;Tn.exports=function(r,t){return hl.create(r,t)}});var _n=a((Yc,kn)=>{"use strict";var vl=Sn();kn.exports=vl});var Nn=a((Jc,Bn)=>{Bn.exports=_n()});function ve(e,r){try{if(typeof document>"u")return;var t=document.createElement("meta");t.setAttribute("name",e),r&&t.setAttribute("content",r),document.head.appendChild(t)}catch(o){console.error('inject-meta-tag: Failed to inject <meta name="'.concat(e,'"> tag.'),o)}}var Ta=l(O()),te=l(f());var D=l(f());var Xr=l(f()),Yr=(0,Xr.createContext)(new Proxy({},{get(){throw new Error("botframework-webchat: This hook can only used under its corresponding <Provider>.")}}));Yr.displayName="TelephoneKeypad.Context";var ge=Yr;var Ia=(0,D.memo)(({children:e})=>{let[r,t]=(0,D.useState)(!1),o=(0,D.useMemo)(()=>Object.freeze({setShown:t,shown:r}),[t,r]);return D.default.createElement(ge.Provider,{value:o},e)}),je=Ia;var Oe=l(f());var In=l(O()),Mn=l(q()),p=l(f());var En=l(Nn()),Ee=l(f());function S(e){var r=(0,Ee.useRef)(),t=(0,Ee.useMemo)(function(){return(0,En.default)({},{current:{get:function(){return r.current}}})},[r]);return r.current=e,t}var P=l(f());var Fn={"telephone-keypad__button":"r","telephone-keypad__button__ruby":"e","telephone-keypad__button__text":"o","telephone-keypad--horizontal":"l"};var yl=".webchat-fluent .r{-webkit-user-select:none;align-items:center;-webkit-appearance:none;appearance:none;background-color:#fff;border-radius:100%;border:solid 1px var(--webchat-colorNeutralStroke1);color:var(--webchat-colorGray200);font-weight:var(--webchat-fontWeightSemibold);cursor:pointer;display:flex;flex-direction:column;height:60px;opacity:.7;padding:0;position:relative;touch-action:none;user-select:none;width:60px}.webchat-fluent .r:hover{background-color:var(--webchat-colorGray30)}.webchat-fluent .e{color:var(--webchat-colorGray190);font-size:10px}.webchat-fluent .o{font-size:24px;margin-top:8px}.webchat-fluent .l .r{height:32px;justify-content:center;margin:8px 4px;width:32px}.webchat-fluent .l .e{display:none}.webchat-fluent .l .o{font-size:20px;margin-top:0}.webchat-fluent .c{align-items:center;background:var(--webchat-colorNeutralBackground1);border:none;border-radius:var(--webchat-borderRadiusXLarge);display:flex;flex-direction:column;font-family:var(--webchat-fontFamilyBase);justify-content:center}.webchat-fluent .n{box-sizing:border-box;display:grid;gap:16px;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(4,1fr);justify-items:center;padding:16px;width:100%}.webchat-fluent .d{align-items:center;color:var(--webchat-colorNeutralForeground4);display:flex;font-size:12px;gap:6px;margin-block-end:6px}.webchat-fluent .i{color:var(--webchat-colorBrandForegroundLink);text-decoration-color:transparent}.webchat-fluent .i:target{color:var(--webchat-colorBrandForegroundLinkSelected)}.webchat-fluent .i:hover{color:var(--webchat-colorBrandForegroundLinkHover);text-decoration:underline 1px currentColor}.webchat-fluent .i:active{color:var(--webchat-colorBrandForegroundLinkPressed)}.webchat-fluent .i:focus-visible{outline:none;text-decoration:underline 1px double var(--webchat-colorStrokeFocus2)}.webchat-fluent.a{display:contents;--webchat-colorNeutralForeground1: var(--colorNeutralForeground1, #242424);--webchat-colorNeutralForeground2: var(--colorNeutralForeground2, #424242);--webchat-colorNeutralForeground4: var(--colorNeutralForeground4, #707070);--webchat-colorNeutralForeground2BrandHover: var(--colorNeutralForeground2BrandHover, #02729c);--webchat-colorNeutralForeground2BrandPressed: var(--colorNeutralForeground2BrandPressed, #01678c);--webchat-colorNeutralForeground2BrandSelected: var(--colorNeutralForeground2BrandSelected, #067191);--webchat-colorNeutralForegroundDisabled: var(--colorNeutralForegroundDisabled, #bdbdbd);--webchat-colorNeutralBackground1: var(--colorNeutralBackground1, #ffffff);--webchat-colorNeutralBackground4: var(--colorNeutralBackground4, #f0f0f0);--webchat-colorNeutralBackground5: var(--colorNeutralBackground5, #ebebeb);--webchat-colorNeutralStroke1: var(--colorNeutralStroke1, #d1d1d1);--webchat-colorNeutralStroke2: var(--colorNeutralStroke2, #e0e0e0);--webchat-colorNeutralStroke1Selected: var(--colorNeutralStroke1Selected, #bdbdbd);--webchat-colorStrokeFocus2: var(--colorStrokeFocus2, #000000);--webchat-colorBrandStroke2: var(--colorBrandStroke2, #9edcf7);--webchat-colorBrandForeground2Hover: var(--colorBrandForeground2Hover, #015a7a);--webchat-colorBrandForeground2Pressed: var(--colorBrandForeground2Pressed, #01384d);--webchat-colorBrandForegroundLink: var(--colorBrandForegroundLink, #01678c);--webchat-colorBrandForegroundLinkHover: var(--colorBrandForegroundLinkHover, #015a7a);--webchat-colorBrandForegroundLinkPressed: var(--colorBrandForegroundLinkPressed, #014259);--webchat-colorBrandForegroundLinkSelected: var(--colorBrandForegroundLinkSelected, #01678c);--webchat-colorBrandBackground2Hover: var(--colorBrandBackground2Hover, #bee7fa);--webchat-colorBrandBackground2Pressed: var(--colorBrandBackground2Pressed, #7fd2f5);--webchat-colorCompoundBrandForeground1Hover: var(--colorCompoundBrandForeground1Hover, #02729c);--webchat-colorStatusDangerForeground1: var(--colorStatusDangerForeground1, #b10e1c);--webchat-colorGray30: var(--colorGray30, #edebe9);--webchat-colorGray160: var(--colorGray160, #323130);--webchat-colorGray190: var(--colorGray190, #201f1e);--webchat-colorGray200: var(--colorGray200, #1b1a19);--webchat-borderRadiusSmall: var(--borderRadiusSmall, 2px);--webchat-borderRadiusLarge: var(--borderRadiusLarge, 6px);--webchat-borderRadiusXLarge: var(--borderRadiusXLarge, 8px);--webchat-shadow16: var(--shadow16, 0 6.4px 14.4px 0 rgba(0, 0, 0, .132), 0 1.2px 3.6px 0 rgba(0, 0, 0, .108));--webchat-spacingHorizontalMNudge: var(--spacingHorizontalMNudge, 10px);--webchat-fontFamilyBase: var(--fontFamilyBase, \"Segoe UI\", \"Segoe UI Web (West European)\", -apple-system, BlinkMacSystemFont, Roboto, \"Helvetica Neue\", sans-serif);--webchat-fontFamilyNumeric: var(--fontFamilyNumeric, Bahnschrift, \"Segoe UI\", \"Segoe UI Web (West European)\", -apple-system, BlinkMacSystemFont, Roboto, \"Helvetica Neue\", sans-serif);--webchat-fontWeightSemibold: var(--fontWeightSemibold, 600);--webchat-strokeWidthThicker: var(--strokeWidthThicker, 3px);--webchat-durationUltraFast: var(--durationUltraFast, 0);--webchat-durationNormal: var(--durationNormal, .2s);--webchat-curveAccelerateMid: var(--curveAccelerateMid, cubic-bezier(1,0,1,1));--webchat-curveDecelerateMid: var(--curveDecelerateMid, cubic-bezier(0,0,0,1))}@media (prefers-reduced-motion){.webchat-fluent.a{--webchat-durationUltraFast: .01ms;--webchat-durationNormal: .01ms}}.webchat-fluent .b{background-color:var(--webchat-colorNeutralBackground4);border-radius:inherit;cursor:copy;display:grid;gap:8px;inset:0;place-content:center;place-items:center;position:absolute}.webchat-fluent .u{background-color:#e00;color:#fff}.webchat-fluent .h{height:36px;pointer-events:none;width:36px}.webchat-fluent .s{align-items:center;background:transparent;border-radius:8px;border:1px solid var(--webchat-colorBrandStroke2);color:currentColor;cursor:pointer;display:flex;font-size:12px;gap:4px;padding:4px 8px;text-align:start;transition:all .15s ease-out}@media (hover: hover){.webchat-fluent .s:not([aria-disabled=true]):hover{background-color:var(--webchat-colorBrandBackground2Hover);color:var(--webchat-colorBrandForeground2Hover)}}.webchat-fluent .s:not([aria-disabled=true]):active{background-color:var(--webchat-colorBrandBackground2Pressed);color:var(--webchat-colorBrandForeground2Pressed)}.webchat-fluent .s[aria-disabled=true]{color:var(--webchat-colorNeutralForegroundDisabled);cursor:not-allowed}.webchat-fluent .g{font-size:12px;height:1em;width:1em}.webchat-fluent .p{align-items:flex-end;align-self:flex-end;display:flex;flex-direction:column;gap:8px}.webchat-fluent .p:not(:empty){padding-block-end:8px;padding-inline-start:4px}.webchat-fluent .p.w{flex-direction:row;flex-wrap:wrap;justify-content:flex-end}.webchat-fluent .p.v{flex-direction:column}.webchat-fluent .f{display:flex;gap:4px;margin-inline-start:auto}.webchat-fluent .x{align-items:center;-webkit-appearance:none;appearance:none;aspect-ratio:1;background:transparent;border-radius:var(--webchat-borderRadiusSmall);border:none;color:currentColor;cursor:pointer;display:flex;justify-content:center;padding:3px;width:32px}.webchat-fluent .x>svg{font-size:20px;pointer-events:none}.webchat-fluent .x.k{color:var(--webchat-colorNeutralForeground2BrandSelected)}@media (hover: hover){.webchat-fluent .x:not([aria-disabled=true]):hover{color:var(--webchat-colorNeutralForeground2BrandHover)}}.webchat-fluent .x:not([aria-disabled=true]):active{color:var(--webchat-colorNeutralForeground2BrandPressed)}.webchat-fluent .x[aria-disabled=true]{color:var(--webchat-colorNeutralForegroundDisabled);cursor:not-allowed}.webchat-fluent .m{align-self:center;border-inline-end:1px solid var(--webchat-colorNeutralStroke2);height:28px}.webchat-fluent .m:is(:first-child,:last-child,:only-child){display:none}.webchat-fluent .B{display:grid}.webchat-fluent .F{font-size:0;height:0;opacity:0;width:1px}.webchat-fluent .y{border-radius:var(--webchat-borderRadiusLarge);border:1px solid var(--webchat-colorNeutralStroke1);cursor:default;padding:6px 8px;width:fit-content}.webchat-fluent .N{color:transparent;font-size:0;height:0;left:0;position:absolute;top:0;width:0}.webchat-fluent .S{display:grid;grid-template-areas:\"main\";max-height:200px;overflow:hidden}.webchat-fluent .z{height:0;visibility:collapse}.webchat-fluent .L{border:none;font:inherit;grid-area:main;outline:inherit;overflow-wrap:anywhere;resize:inherit;scrollbar-gutter:stable}.webchat-fluent .H{overflow:hidden;visibility:hidden;white-space:pre-wrap}.webchat-fluent .W{background-color:inherit;color:currentColor;height:100%;padding:0}.webchat-fluent .P{scrollbar-color:unset;scrollbar-width:unset;-moz-scrollbar-color:var(--webchat-colorNeutralBackground5) var(--webchat-colorNeutralForeground2);-moz-scrollbar-width:thin}.webchat-fluent .P::-webkit-scrollbar{width:8px}.webchat-fluent .P::-webkit-scrollbar-track{background-color:var(--webchat-colorNeutralBackground5);border-radius:16px}.webchat-fluent .P::-webkit-scrollbar-thumb{background-color:var(--webchat-colorNeutralForeground2);border-radius:16px}.webchat-fluent .P::-webkit-scrollbar-corner{background-color:var(--webchat-colorNeutralBackground5)}.webchat-fluent .R{color:var(--webchat-colorNeutralForeground1);font-family:var(--webchat-fontFamilyBase);padding:0 10px 10px;text-rendering:optimizeLegibility;--webchat-sendbox-attachment-area-active: ;--webchat-sendbox-border-radius: var(--webchat-borderRadiusLarge)}.webchat-fluent .G{background-color:var(--webchat-colorNeutralBackground1);border-radius:var(--webchat-sendbox-border-radius);border:1px solid var(--webchat-colorNeutralStroke1);display:grid;font-family:var(--webchat-fontFamilyBase);font-size:14px;gap:6px;grid-template:[telephone-keypad-start] \"text-area\" [telephone-keypad-end] var(--webchat-sendbox-attachment-area-active) \"controls\" / [telephone-keypad] 1fr;line-height:20px;padding:8px;position:relative}.webchat-fluent .G:has(.t){--webchat-sendbox-attachment-area-active: \"attachment\" }.webchat-fluent .G:focus-within{border-color:var(--webchat-colorNeutralStroke1Selected)}.webchat-fluent .G:after{border-bottom-left-radius:var(--webchat-sendbox-border-radius);border-bottom-right-radius:var(--webchat-sendbox-border-radius);border-bottom:var(--webchat-strokeWidthThicker) solid var(--webchat-colorCompoundBrandForeground1Hover);bottom:-1px;clip-path:inset(calc(100% - var(--webchat-strokeWidthThicker)) 50% 0 50%);content:\"\";height:var(--webchat-sendbox-border-radius);left:-1px;position:absolute;right:-1px;transition:clip-path var(--webchat-durationUltraFast) var(--webchat-curveAccelerateMid)}.webchat-fluent .G:focus-within:after{clip-path:inset(calc(100% - var(--webchat-strokeWidthThicker)) 0 0 0);transition:clip-path var(--webchat-durationNormal) var(--webchat-curveDecelerateMid)}.webchat-fluent .G>.D{grid-area:text-area}.webchat-fluent .G>.t{grid-area:attachment}.webchat-fluent .G>.M{grid-area:controls}.webchat-fluent .G>.U{grid-area:telephone-keypad}.webchat-fluent .C{background-color:transparent;border:none;flex:auto;font-family:var(--webchat-fontFamilyBase);font-size:14px;line-height:20px;outline:none;padding:4px 4px 0;resize:none}.webchat-fluent .j{align-items:center;display:flex;padding-inline-start:4px}.webchat-fluent .T{color:var(--webchat-colorNeutralForeground4);cursor:default;font-family:var(--webchat-fontFamilyNumeric);font-size:10px;line-height:14px;margin-inline-end:4px}.webchat-fluent .I{color:var(--webchat-colorStatusDangerForeground1)}\n/*! For license information please see botframework-webchat-fluent-theme.production.min.css.LEGAL.txt */\n";function Fe(){if(globalThis.document){let e=document.createElement("style");e.append(document.createTextNode(yl)),document.head.appendChild(e)}}var Cn=l(f());function xl(e){return(0,Cn.useMemo)(()=>Object.freeze(Object.fromEntries(Object.entries(e).map(([r,t])=>[r,`${r} ${t}`]))),[e])}var v=xl;var On=(0,P.memo)((0,P.forwardRef)(({button:e,"data-testid":r,onClick:t,ruby:o},n)=>{let i=v(Fn),d=S(t),s=(0,P.useCallback)(()=>d.current?.(),[d]);return P.default.createElement("button",{className:i["telephone-keypad__button"],"data-testid":r,onClick:s,ref:n,type:"button"},P.default.createElement("span",{className:i["telephone-keypad__button__text"]},e==="star"?"\u2217":e==="pound"?"#":e),!!o&&P.default.createElement("ruby",{className:i["telephone-keypad__button__ruby"]},o))}));On.displayName="TelephoneKeypad.Button";var E=On;var wl={sendBoxDropZone:"send box drop zone",sendBoxSendButton:"send box send button",sendBoxTextBox:"send box text area",sendBoxTelephoneKeypadButton1:"send box telephone keypad button 1",sendBoxTelephoneKeypadButton2:"send box telephone keypad button 2",sendBoxTelephoneKeypadButton3:"send box telephone keypad button 3",sendBoxTelephoneKeypadButton4:"send box telephone keypad button 4",sendBoxTelephoneKeypadButton5:"send box telephone keypad button 5",sendBoxTelephoneKeypadButton6:"send box telephone keypad button 6",sendBoxTelephoneKeypadButton7:"send box telephone keypad button 7",sendBoxTelephoneKeypadButton8:"send box telephone keypad button 8",sendBoxTelephoneKeypadButton9:"send box telephone keypad button 9",sendBoxTelephoneKeypadButton0:"send box telephone keypad button 0",sendBoxTelephoneKeypadButtonStar:"send box telephone keypad button star",sendBoxTelephoneKeypadButtonPound:"send box telephone keypad button pound",sendBoxTelephoneKeypadToolbarButton:"send box telephone keypad toolbar button",sendBoxUploadButton:"send box upload button"},y=wl;var Ce=l(f());function A(){let{setShown:e,shown:r}=(0,Ce.useContext)(ge);return(0,Ce.useMemo)(()=>Object.freeze([r,e]),[r,e])}var Fr={"telephone-keypad":"c","telephone-keypad__box":"n","telephone-keypad__info-message":"d","telephone-keypad__info-message-link":"i"};var ue=l(f());function Sl(e){return ue.default.createElement("svg",{"aria-hidden":"true",className:e.className,height:"1em",viewBox:"0 0 20 20",width:"1em",xmlns:"http://www.w3.org/2000/svg"},ue.default.createElement("path",{d:"M6 2a2 2 0 0 0-2 2v5.2c.32-.08.66-.15 1-.18V4a1 1 0 0 1 1-1h4v3.5c0 .83.67 1.5 1.5 1.5H15v8a1 1 0 0 1-1 1h-3.6c-.18.36-.4.7-.66 1H14a2 2 0 0 0 2-2V7.41c0-.4-.16-.78-.44-1.06l-3.91-3.91A1.5 1.5 0 0 0 10.59 2H6Zm8.8 5h-3.3a.5.5 0 0 1-.5-.5V3.2L14.8 7ZM10 14.5a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0Zm-4-2a.5.5 0 0 0-1 0V14H3.5a.5.5 0 0 0 0 1H5v1.5a.5.5 0 0 0 1 0V15h1.5a.5.5 0 0 0 0-1H6v-1.5Z",fill:"currentColor"}))}var Cr=(0,ue.memo)(Sl);var pe=l(f());function kl(e){return pe.default.createElement("svg",{"aria-hidden":"true",className:e.className,height:"1em",viewBox:"0 0 20 20",width:"1em",xmlns:"http://www.w3.org/2000/svg"},pe.default.createElement("path",{d:"m4.83 10.48 5.65-5.65a3 3 0 0 1 4.25 4.24L8 15.8a1.5 1.5 0 0 1-2.12-2.12l6-6.01a.5.5 0 1 0-.7-.71l-6 6.01a2.5 2.5 0 0 0 3.53 3.54l6.71-6.72a4 4 0 1 0-5.65-5.66L4.12 9.78a.5.5 0 0 0 .7.7Z",fill:"currentColor"}))}var Or=(0,pe.memo)(kl);var me=l(f());function _l(e){return me.default.createElement("svg",{"aria-hidden":"true",className:e.className,height:"1em",viewBox:"0 0 16 16",width:"1em",xmlns:"http://www.w3.org/2000/svg"},me.default.createElement("path",{d:"M8.5 7.5a.5.5 0 1 0-1 0v3a.5.5 0 0 0 1 0v-3Zm.25-2a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM8 1a7 7 0 1 0 0 14A7 7 0 0 0 8 1ZM2 8a6 6 0 1 1 12 0A6 6 0 0 1 2 8Z",fill:"currentColor"}))}var Ir=(0,me.memo)(_l);var fe=l(f());function Bl(e){return fe.default.createElement("svg",{"aria-hidden":"true",className:e.className,height:"1em",viewBox:"0 0 20 20",width:"1em",xmlns:"http://www.w3.org/2000/svg"},fe.default.createElement("path",{d:"M2.18 2.11a.5.5 0 0 1 .54-.06l15 7.5a.5.5 0 0 1 0 .9l-15 7.5a.5.5 0 0 1-.7-.58L3.98 10 2.02 2.63a.5.5 0 0 1 .16-.52Zm2.7 8.39-1.61 6.06L16.38 10 3.27 3.44 4.88 9.5h6.62a.5.5 0 1 1 0 1H4.88Z",fill:"currentColor"}))}var Mr=(0,fe.memo)(Bl);var be=l(f());function Nl(e){return be.default.createElement("svg",{"aria-hidden":"true",className:e.className,height:"1em",viewBox:"0 0 20 20",width:"1em",xmlns:"http://www.w3.org/2000/svg"},be.default.createElement("path",{d:"M6 5.25a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5Zm0 4a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5ZM7.25 12a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0ZM10 5.25a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5ZM11.25 8a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0ZM10 13.25a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5ZM11.25 16a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0ZM14 5.25a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5ZM15.25 8a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0ZM14 13.25a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5Z",fill:"currentColor"}))}var qr=(0,be.memo)(Nl);var{LocalizedString:El}=In.Components,qn=(0,p.memo)(({children:e,isHorizontal:r})=>{let t=v(Fr);return r?null:p.default.createElement("div",{className:t["telephone-keypad__box"]},e)});qn.displayName="TelephoneKeypad:Orientation";var Pn=(0,p.memo)(({autoFocus:e,className:r,onButtonClick:t,isHorizontal:o})=>{let n=S(e),i=v(Fr),d=(0,p.useRef)(null),s=S(t),[,h]=A(),x=(0,p.useCallback)(()=>s.current?.("1"),[s]),c=(0,p.useCallback)(()=>s.current?.("2"),[s]),u=(0,p.useCallback)(()=>s.current?.("3"),[s]),m=(0,p.useCallback)(()=>s.current?.("4"),[s]),g=(0,p.useCallback)(()=>s.current?.("5"),[s]),B=(0,p.useCallback)(()=>s.current?.("6"),[s]),_=(0,p.useCallback)(()=>s.current?.("7"),[s]),T=(0,p.useCallback)(()=>s.current?.("8"),[s]),k=(0,p.useCallback)(()=>s.current?.("9"),[s]),M=(0,p.useCallback)(()=>s.current?.("0"),[s]),V=(0,p.useCallback)(()=>s.current?.("star"),[s]),Y=(0,p.useCallback)(()=>s.current?.("pound"),[s]),Re=(0,p.useCallback)(De=>{De.key==="Escape"&&h(!1)},[h]);return(0,p.useEffect)(()=>{n.current&&d.current?.focus()},[n,d]),p.default.createElement("div",{className:(0,Mn.default)(i["telephone-keypad"],r),onKeyDown:Re},p.default.createElement(qn,{isHorizontal:o},p.default.createElement(E,{button:"1","data-testid":y.sendBoxTelephoneKeypadButton1,onClick:x,ref:d}),p.default.createElement(E,{button:"2","data-testid":y.sendBoxTelephoneKeypadButton2,onClick:c,ruby:"ABC"}),p.default.createElement(E,{button:"3","data-testid":y.sendBoxTelephoneKeypadButton3,onClick:u,ruby:"DEF"}),p.default.createElement(E,{button:"4","data-testid":y.sendBoxTelephoneKeypadButton4,onClick:m,ruby:"GHI"}),p.default.createElement(E,{button:"5","data-testid":y.sendBoxTelephoneKeypadButton5,onClick:g,ruby:"JKL"}),p.default.createElement(E,{button:"6","data-testid":y.sendBoxTelephoneKeypadButton6,onClick:B,ruby:"MNO"}),p.default.createElement(E,{button:"7","data-testid":y.sendBoxTelephoneKeypadButton7,onClick:_,ruby:"PQRS"}),p.default.createElement(E,{button:"8","data-testid":y.sendBoxTelephoneKeypadButton8,onClick:T,ruby:"TUV"}),p.default.createElement(E,{button:"9","data-testid":y.sendBoxTelephoneKeypadButton9,onClick:k,ruby:"WXYZ"}),p.default.createElement(E,{button:"star","data-testid":y.sendBoxTelephoneKeypadButtonStar,onClick:V}),p.default.createElement(E,{button:"0","data-testid":y.sendBoxTelephoneKeypadButton0,onClick:M,ruby:"+"}),p.default.createElement(E,{button:"pound","data-testid":y.sendBoxTelephoneKeypadButtonPound,onClick:Y})),p.default.createElement("div",{className:i["telephone-keypad__info-message"]},p.default.createElement(Ir,null),p.default.createElement(El,{linkClassName:i["telephone-keypad__info-message-link"],stringIds:"TELEPHONE_KEYPAD_INPUT_MESSAGE"})))});Pn.displayName="TelephoneKeypad";var An=Pn;var Ln=(0,Oe.memo)(e=>A()[0]?Oe.default.createElement(An,{...e}):null);Ln.displayName="TelephoneKeypad.Surrogate";var Pr=Ln;var Dn=l(f()),Hn=l(q());var Rn={theme:"a"};var Cl="webchat-fluent";function Ie(e){let r=v(Rn);return Dn.default.createElement("div",{className:(0,Hn.default)(Cl,r.theme)},e.children)}var wa=l(O()),re=l(q()),b=l(f());var zn=l(O()),Un=l(q()),F=l(f());var jn={"sendbox__attachment-drop-zone":"b","sendbox__attachment-drop-zone--droppable":"u","sendbox__attachment-drop-zone-icon":"h"};var{useLocalizer:Il}=zn.hooks,Ml=e=>{e.preventDefault()},Kn=e=>!!e.dataTransfer?.types?.some(r=>r.toLowerCase()==="files");function ql(e,r){let t=e.parentNode;for(;t;){if(t===r)return!0;t=t.parentNode}return!1}var Wn=e=>{let[r,t]=(0,F.useState)(!1),o=v(jn),n=(0,F.useRef)(null),i=Il(),d=S(e.onFilesAdded);(0,F.useEffect)(()=>{let h=0,x=u=>{h++,Kn(u)&&t(n.current&&(u.target===n.current||u.target instanceof HTMLElement&&ql(u.target,n.current))?"droppable":"visible")},c=()=>--h<=0&&t(!1);return document.addEventListener("dragenter",x,!1),document.addEventListener("dragleave",c,!1),()=>{document.removeEventListener("dragenter",x),document.removeEventListener("dragleave",c)}},[t]);let s=(0,F.useCallback)(h=>{h.preventDefault(),t(!1),Kn(h.nativeEvent)&&d.current([...h.dataTransfer.files])},[d,t]);return r?F.default.createElement("div",{className:(0,Un.default)(o["sendbox__attachment-drop-zone"],{[o["sendbox__attachment-drop-zone--droppable"]]:r==="droppable"}),"data-testid":y.sendBoxDropZone,onDragOver:Ml,onDrop:s,ref:n},F.default.createElement(Cr,{className:o["sendbox__attachment-drop-zone-icon"]}),i("TEXT_INPUT_DROP_ZONE")):null};Wn.displayName="DropZone";var Ar=(0,F.memo)(Wn);var ea=l(O()),ra=l(q()),L=l(f());var Yn=l(O()),Jn=l(q()),W=l(f());var Zn={"suggested-action":"s","suggested-action__image":"g"};var U=l(f()),Al=e=>e.preventDefault(),Ll=(0,U.forwardRef)(({"aria-hidden":e,children:r,disabled:t,onClick:o,tabIndex:n,...i},d)=>{let s=(0,U.useRef)(null);return U.default.createElement("button",{"aria-disabled":t?"true":"false","aria-hidden":e,onClick:t?Al:o,ref:d||s,tabIndex:n,...t&&{"aria-disabled":"true",tabIndex:-1},...i,type:"button"},r)}),$n=(0,U.memo)(Ll);var w=l(f()),Vn=(0,w.createContext)({itemEffector:()=>{throw new Error("botframework-webchat-fluent-theme rovingFocus: no provider for RovingFocusContext.")}});function Rl(e){let r=(0,w.useRef)(0),t=(0,w.useRef)([]),o=(0,w.useCallback)(({current:c},u)=>c&&(c.tabIndex=r.current===u?0:-1),[r]),n=(0,w.useCallback)(c=>{let u;typeof c=="number"?u=c:u=c(r.current),u&&!t.current.at(u)?.current&&(u=0),r.current!==u&&(r.current=u,t.current.forEach((m,g)=>o(m,g)),t.current.at(u)?.current?.focus())},[o,t,r]),i=(0,w.useCallback)(c=>{let{target:u}=c,m=t.current.findIndex(({current:g})=>g===u);m!==-1&&n(m)},[t,n]),d=(0,w.useCallback)(c=>u=>{let m=!e.direction,g=/up|down/iu.test(c)&&e.direction==="vertical",B=/left|right/iu.test(c)&&e.direction==="horizontal",_=/right|down/iu.test(c),T=m||g||B?_?1:-1:0,k=t.current.map((V,Y)=>Y),M=k.indexOf(u)+T;return k.at(M)??0},[e.direction]),s=(0,w.useCallback)(c=>{let{key:u}=c;switch(u){case"Up":case"ArrowUp":case"Left":case"ArrowLeft":case"Down":case"ArrowDown":case"Right":case"ArrowRight":n(d(u));break;case"Home":n(0);break;case"End":n(-1);break;case"Escape":e.onEscapeKey?.();break;default:return}c.preventDefault(),c.stopPropagation()},[n,d,e]),h=(0,w.useCallback)((c,u)=>{let{current:m}=c;return t.current[Number(u)]=c,m.addEventListener("focus",i),m.addEventListener("keydown",s),o(c,u),()=>{m.removeEventListener("focus",i),m.removeEventListener("keydown",s),delete t.current[Number(u)]}},[i,s,o,t]),x=(0,w.useMemo)(()=>({itemEffector:h}),[h]);return w.default.createElement(Vn.Provider,{value:x},e.children)}function Gn(e){let r=(0,w.useRef)(null),{itemEffector:t}=(0,w.useContext)(Vn);return(0,w.useEffect)(()=>t(r,e)),r}var Xn=(0,w.memo)(Rl);var{useDisabled:Dl,useFocus:Hl,usePerformCardAction:jl,useScrollToEnd:Kl,useStyleSet:zl,useSuggestedActions:Ul}=Yn.hooks;function Wl({buttonText:e,className:r,displayText:t,image:o,imageAlt:n,itemIndex:i,text:d,type:s,value:h}){let[x,c]=Ul(),[{suggestedAction:u}]=zl(),[m]=Dl(),g=Hl(),B=Gn(i),_=jl(),T=v(Zn),k=Kl(),M=(0,W.useCallback)(({target:V})=>{(async function(){await g("sendBoxWithoutKeyboard"),_({displayText:t,text:d,type:s,value:h},{target:V}),s==="openUrl"&&c([]),k()})()},[t,g,_,k,c,d,s,h]);return W.default.createElement($n,{className:(0,Jn.default)(T["suggested-action"],u+"",(r||"")+""),disabled:m,onClick:M,ref:B,type:"button"},o&&W.default.createElement("img",{alt:n,className:T["suggested-action__image"],src:o}),W.default.createElement("span",null,e))}var Qn=(0,W.memo)(Wl);function Lr(e){let{title:r}=e,{type:t,value:o}=e;return t==="messageBack"?r||e.displayText:r||(typeof o=="string"?o:JSON.stringify(o))}var Rr={"suggested-actions":"p","suggested-actions--flow":"w","suggested-actions--stacked":"v"};var{useFocus:$l,useLocalizer:Vl,useStyleOptions:Gl,useStyleSet:Xl,useSuggestedActions:Yl}=ea.hooks;function Jl(e){let[{suggestedActionLayout:r}]=Gl(),[{suggestedActions:t}]=Xl(),o=v(Rr);return L.default.createElement("div",{"aria-label":e["aria-label"],"aria-live":"polite","aria-orientation":"vertical",className:(0,ra.default)(o["suggested-actions"],t+"",{[o["suggested-actions--flow"]]:r==="flow",[o["suggested-actions--stacked"]]:r!=="flow"},e.className),role:"toolbar"},!!e.children&&!!L.default.Children.count(e.children)&&e.children)}function Ql(){let e=v(Rr),r=Vl(),[t]=Yl(),o=$l(),n=(0,L.useCallback)(()=>{o("sendBox")},[o]),i=t.map((d,s)=>{let{displayText:h,image:x,imageAltText:c,text:u,type:m,value:g}=d;return t?.length?L.default.createElement(Qn,{buttonText:Lr(d),displayText:h,image:x,imageAlt:x&&(c||u),itemIndex:s,key:s,text:u,type:m,value:g}):null});return L.default.createElement(Xn,{onEscapeKey:n},L.default.createElement(Jl,{"aria-label":r("SUGGESTED_ACTIONS_LABEL_ALT"),className:e["suggested-actions"]},i))}var Dr=(0,L.memo)(Ql);var oa=l(O()),C=l(f());var qe=l(q()),Z=l(f());var Me={sendbox__toolbar:"f","sendbox__toolbar-button":"x","sendbox__toolbar-button--selected":"k","sendbox__toolbar-separator":"m"};var rd=e=>e.preventDefault(),G=(0,Z.memo)(e=>{let r=v(Me);return Z.default.createElement("button",{"aria-label":e["aria-label"],className:(0,qe.default)(r["sendbox__toolbar-button"],e.className,{[r["sendbox__toolbar-button--selected"]]:e.selected}),"data-testid":e["data-testid"],onClick:e.disabled?rd:e.onClick,type:e.type==="submit"?"submit":"button",...e.disabled&&{"aria-disabled":"true",tabIndex:-1}},e.children)});G.displayName="ToolbarButton";var Hr=(0,Z.memo)(e=>{let r=v(Me);return Z.default.createElement("div",{className:(0,qe.default)(r.sendbox__toolbar,e.className)},e.children)});Hr.displayName="Toolbar";var jr=(0,Z.memo)(e=>{let r=v(Me);return Z.default.createElement("div",{"aria-orientation":"vertical",className:(0,qe.default)(r["sendbox__toolbar-separator"],e.className),role:"separator"})});jr.displayName="ToolbarSeparator";var ta={"sendbox__add-attachment":"B","sendbox__add-attachment-input":"F"};var{useLocalizer:od,useStyleOptions:nd}=oa.hooks;function ad(e){let r=(0,C.useRef)(null),t=v(ta),o=od(),[{uploadAccept:n,uploadMultiple:i}]=nd(),d=S(e.onFilesAdded),s=(0,C.useCallback)(()=>r.current?.click(),[r]),h=(0,C.useCallback)(({target:{files:x}})=>{x&&(d.current?.([...x]),r.current&&(r.current.value=""))},[r,d]);return C.default.createElement("div",{className:t["sendbox__add-attachment"]},C.default.createElement("input",{accept:n,"aria-disabled":e.disabled,"aria-hidden":"true",className:t["sendbox__add-attachment-input"],multiple:i,onInput:e.disabled?void 0:h,readOnly:e.disabled,ref:r,role:"button",tabIndex:-1,type:"file"}),C.default.createElement(G,{"aria-label":o("TEXT_INPUT_UPLOAD_BUTTON_ALT"),"data-testid":y.sendBoxUploadButton,onClick:s},C.default.createElement(Or,null)))}var na=(0,C.memo)(ad);var ia=l(O()),Pe=l(f()),sa=l(q());var aa={sendbox__attachment:"y"};var{useLocalizer:sd}=ia.hooks,ld={one:"TEXT_INPUT_ATTACHMENTS_ONE",two:"TEXT_INPUT_ATTACHMENTS_TWO",few:"TEXT_INPUT_ATTACHMENTS_FEW",many:"TEXT_INPUT_ATTACHMENTS_MANY",other:"TEXT_INPUT_ATTACHMENTS_OTHER"};function dd({attachments:e,className:r}){let t=v(aa),o=sd({plural:!0});return e.length?Pe.default.createElement("div",{className:(0,sa.default)(t.sendbox__attachment,r)},o(ld,e.length)):null}var la=(0,Pe.memo)(dd);var Ae=l(f());var da={"sendbox__error-message":"N"};function ud(e){let r=v(da);return Ae.default.createElement("span",{className:r["sendbox__error-message"],id:e.id,role:"alert"},e.error)}var ca=(0,Ae.memo)(ud);var X=l(f()),ua=l(O());var{useLocalizer:pd}=ua.hooks,pa=(0,X.memo)(()=>{let[e,r]=A(),t=pd(),o=(0,X.useCallback)(()=>r(n=>!n),[r]);return X.default.createElement(G,{"aria-label":t("TEXT_INPUT_TELEPHONE_KEYPAD_BUTTON_ALT"),"data-testid":y.sendBoxTelephoneKeypadToolbarButton,onClick:o,selected:e},X.default.createElement(qr,null))});pa.displayName="SendBox.TelephoneKeypadToolbarButton";var ma=pa;var Le=l(q()),$=l(f());var fa={"sendbox__text-area":"S","sendbox__text-area--hidden":"z","sendbox__text-area-shared":"L","sendbox__text-area-doppelganger":"H","sendbox__text-area-input":"W","sendbox__text-area-input--scroll":"P"};var ba=(0,$.forwardRef)((e,r)=>{let t=v(fa),o=(0,$.useCallback)(n=>{!n.shiftKey&&n.key==="Enter"&&(n.preventDefault(),"form"in n.target&&n.target.form instanceof HTMLFormElement&&n.target?.form?.requestSubmit())},[]);return $.default.createElement("div",{className:(0,Le.default)(t["sendbox__text-area"],{[t["sendbox__text-area--hidden"]]:e.hidden},e.className),role:e.hidden?"hidden":void 0},$.default.createElement("div",{className:(0,Le.default)(t["sendbox__text-area-doppelganger"],t["sendbox__text-area-shared"],t["sendbox__text-area-input--scroll"])},e.value||e.placeholder," "),$.default.createElement("textarea",{"aria-label":e["aria-label"],className:(0,Le.default)(t["sendbox__text-area-input"],t["sendbox__text-area-shared"],t["sendbox__text-area-input--scroll"]),"data-testid":e["data-testid"],onInput:e.onInput,onKeyDown:o,placeholder:e.placeholder,ref:r,rows:e.startRows??1,tabIndex:e.hidden?-1:void 0,value:e.value}))});ba.displayName="TextArea";var ha=ba;var va=l(O()),Kr=l(f());var{useConnectivityStatus:fd,useLocalizer:bd}=va.hooks,hd=({attachments:e,message:r})=>{let[t]=fd(),o=bd(),n=S(t!=="connected"&&t!=="reconnected"?"offline":!r&&!e.length?"empty":void 0),i=(0,Kr.useMemo)(()=>Object.freeze(new Map().set("empty",o("SEND_BOX_IS_EMPTY_TOOLTIP_ALT")).set("offline",o("CONNECTIVITY_STATUS_ALT_FATAL"))),[o]);return(0,Kr.useMemo)(()=>Object.freeze([n,n.current&&i.get(n.current)]),[i,n])},ga=hd;var ya=l(f());function zr(e){let r=(0,ya.useMemo)(()=>Math.random().toString(36).substr(2,5),[]);return e=e?`${e}--`:"",`${e}${r}`}var xa={sendbox:"R",sendbox__sendbox:"G","sendbox__attachment--in-grid":"t","sendbox__text-area--in-grid":"D","sendbox__sendbox-controls--in-grid":"M","sendbox__telephone-keypad--in-grid":"U","sendbox__sendbox-text":"C","sendbox__sendbox-controls":"j","sendbox__text-counter":"T","sendbox__text-counter--error":"I"};var{useFocus:gd,useLocalizer:yd,useMakeThumbnail:xd,useRegisterFocusSendBox:wd,useSendBoxAttachments:Td,useSendMessage:Sd,useStyleOptions:kd}=wa.hooks;function _d(e){let r=(0,b.useRef)(null),[t,o]=(0,b.useState)(""),[n,i]=Td(),[{hideTelephoneKeypadButton:d,hideUploadButton:s,maxMessageLength:h}]=kd(),x=!!h&&t.length>h,c=v(xa),u=yd(),m=Sd(),g=xd(),B=zr("sendbox__error-message-id"),[_,T]=ga({message:t,attachments:n}),[k]=A(),M=gd();wd((0,b.useCallback)(({noKeyboard:N,waitUntil:He})=>{r.current&&(N?He((async()=>{let oe=r.current?.getAttribute("readonly");r.current?.setAttribute("readonly","true"),await new Promise(he=>setTimeout(he,0)),r.current?.focus(),typeof oe!="string"?r.current?.removeAttribute("readonly"):r.current?.setAttribute("readonly",oe)})()):r.current?.focus())},[r]));let V=S(n),Y=S(t),Re=(0,b.useCallback)(N=>{"tabIndex"in N.target&&typeof N.target.tabIndex=="number"&&N.target.tabIndex>=0||M("sendBox")},[M]),De=(0,b.useCallback)(N=>o(N.currentTarget.value),[o]),Zr=(0,b.useCallback)(async N=>{let He=Object.freeze(await Promise.all(N.map(oe=>g(oe).then(he=>Object.freeze({blob:oe,...he&&{thumbnailURL:he}})))));i(He)},[g,i]),Sa=(0,b.useCallback)(N=>{N.preventDefault(),_.current!=="empty"&&!x&&(m(Y.current,void 0,{attachments:V.current}),o(""),i([])),M("sendBox")},[V,Y,m,i,o,x,_,M]),ka=(0,b.useCallback)(N=>m(`/DTMF ${N}`),[m]),_a={"aria-invalid":"false",...T&&{"aria-invalid":"true","aria-errormessage":B}};return b.default.createElement("form",{..._a,className:(0,re.default)(c.sendbox,e.className),onSubmit:Sa},b.default.createElement(Dr,null),b.default.createElement("div",{className:(0,re.default)(c.sendbox__sendbox),onClickCapture:Re},b.default.createElement(ha,{"aria-label":u(x?"TEXT_INPUT_LENGTH_EXCEEDED_ALT":"TEXT_INPUT_ALT"),className:(0,re.default)(c["sendbox__sendbox-text"],c["sendbox__text-area--in-grid"]),"data-testid":y.sendBoxTextBox,hidden:k,onInput:De,placeholder:e.placeholder??u("TEXT_INPUT_PLACEHOLDER"),ref:r,value:t}),b.default.createElement(Pr,{autoFocus:!0,className:c["sendbox__telephone-keypad--in-grid"],isHorizontal:!1,onButtonClick:ka}),b.default.createElement(la,{attachments:n,className:c["sendbox__attachment--in-grid"]}),b.default.createElement("div",{className:(0,re.default)(c["sendbox__sendbox-controls"],c["sendbox__sendbox-controls--in-grid"])},!k&&h&&b.default.createElement("div",{className:(0,re.default)(c["sendbox__text-counter"],{[c["sendbox__text-counter--error"]]:x})},`${t.length}/${h}`),b.default.createElement(Hr,null,!d&&b.default.createElement(ma,null),!s&&b.default.createElement(na,{onFilesAdded:Zr}),b.default.createElement(jr,null),b.default.createElement(G,{"aria-label":u("TEXT_INPUT_SEND_BUTTON_ALT"),"data-testid":y.sendBoxSendButton,disabled:x||k,type:"submit"},b.default.createElement(Mr,null)))),b.default.createElement(Ar,{onFilesAdded:Zr}),b.default.createElement(ca,{error:T,id:B})))}var Ur=(0,b.memo)(_d);var{ThemeProvider:Bd}=Ta.Components,Nd=[()=>()=>()=>Ur],Ed=({children:e})=>te.default.createElement(Ie,null,te.default.createElement(je,null,te.default.createElement(Bd,{sendBoxMiddleware:Nd},e))),Wr=(0,te.memo)(Ed);ve("botframework-webchat:fluent-theme","version=4.17.1-main.20240508.bf8dbd9; build-tool=tsup; module-format=esmodules");Fe();globalThis.WebChat={...globalThis.WebChat,FluentThemeProvider:Wr,testIds:{...globalThis.WebChat?.testIds,...y}};})();
1
+ "use strict";(()=>{var Ba=Object.create;var $r=Object.defineProperty;var Na=Object.getOwnPropertyDescriptor;var Ea=Object.getOwnPropertyNames;var Fa=Object.getPrototypeOf,Ca=Object.prototype.hasOwnProperty;var a=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var Oa=(e,r,t,o)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of Ea(r))!Ca.call(e,n)&&n!==t&&$r(e,n,{get:()=>r[n],enumerable:!(o=Na(r,n))||o.enumerable});return e};var l=(e,r,t)=>(t=e!=null?Ba(Fa(e)):{},Oa(r||!e||!e.__esModule?$r(t,"default",{value:e,enumerable:!0}):t,e));var O=a((qd,Vr)=>{Vr.exports={Components:globalThis.WebChat.Components,hooks:globalThis.WebChat.hooks}});var f=a((Pd,Gr)=>{Gr.exports=globalThis.React});var q=a((Dd,ye)=>{(function(){"use strict";var e={}.hasOwnProperty;function r(){for(var n="",i=0;i<arguments.length;i++){var d=arguments[i];d&&(n=o(n,t(d)))}return n}function t(n){if(typeof n=="string"||typeof n=="number")return n;if(typeof n!="object")return"";if(Array.isArray(n))return r.apply(null,n);if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]"))return n.toString();var i="";for(var d in n)e.call(n,d)&&n[d]&&(i=o(i,d));return i}function o(n,i){return i?n?n+" "+i:n+i:n}typeof ye<"u"&&ye.exports?(r.default=r,ye.exports=r):typeof define=="function"&&typeof define.amd=="object"&&define.amd?define("classnames",[],function(){return r}):window.classNames=r})()});var R=a((Ke,Jr)=>{"use strict";var ne=function(e){return e&&e.Math===Math&&e};Jr.exports=ne(typeof globalThis=="object"&&globalThis)||ne(typeof window=="object"&&window)||ne(typeof self=="object"&&self)||ne(typeof global=="object"&&global)||ne(typeof Ke=="object"&&Ke)||function(){return this}()||Function("return this")()});var H=a((Hd,Qr)=>{"use strict";Qr.exports=function(e){try{return!!e()}catch{return!0}}});var ae=a((jd,et)=>{"use strict";var Ma=H();et.exports=!Ma(function(){var e=(function(){}).bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var at=a((Kd,nt)=>{"use strict";var qa=ae(),ot=Function.prototype,rt=ot.apply,tt=ot.call;nt.exports=typeof Reflect=="object"&&Reflect.apply||(qa?tt.bind(rt):function(){return tt.apply(rt,arguments)})});var j=a((zd,lt)=>{"use strict";var it=ae(),st=Function.prototype,ze=st.call,Pa=it&&st.bind.bind(ze,ze);lt.exports=it?Pa:function(e){return function(){return ze.apply(e,arguments)}}});var Ue=a((Ud,ct)=>{"use strict";var dt=j(),Aa=dt({}.toString),La=dt("".slice);ct.exports=function(e){return La(Aa(e),8,-1)}});var We=a((Wd,ut)=>{"use strict";var Ra=Ue(),Da=j();ut.exports=function(e){if(Ra(e)==="Function")return Da(e)}});var K=a((Zd,pt)=>{"use strict";var Ze=typeof document=="object"&&document.all;pt.exports=typeof Ze>"u"&&Ze!==void 0?function(e){return typeof e=="function"||e===Ze}:function(e){return typeof e=="function"}});var z=a(($d,mt)=>{"use strict";var Ha=H();mt.exports=!Ha(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var we=a((Vd,ft)=>{"use strict";var ja=ae(),xe=Function.prototype.call;ft.exports=ja?xe.bind(xe):function(){return xe.apply(xe,arguments)}});var gt=a(vt=>{"use strict";var bt={}.propertyIsEnumerable,ht=Object.getOwnPropertyDescriptor,Ka=ht&&!bt.call({1:2},1);vt.f=Ka?function(r){var t=ht(this,r);return!!t&&t.enumerable}:bt});var $e=a((Xd,yt)=>{"use strict";yt.exports=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}}});var wt=a((Yd,xt)=>{"use strict";var za=j(),Ua=H(),Wa=Ue(),Ve=Object,Za=za("".split);xt.exports=Ua(function(){return!Ve("z").propertyIsEnumerable(0)})?function(e){return Wa(e)==="String"?Za(e,""):Ve(e)}:Ve});var Ge=a((Jd,Tt)=>{"use strict";Tt.exports=function(e){return e==null}});var Xe=a((Qd,St)=>{"use strict";var $a=Ge(),Va=TypeError;St.exports=function(e){if($a(e))throw new Va("Can't call method on "+e);return e}});var ie=a((ec,kt)=>{"use strict";var Ga=wt(),Xa=Xe();kt.exports=function(e){return Ga(Xa(e))}});var se=a((rc,_t)=>{"use strict";var Ya=K();_t.exports=function(e){return typeof e=="object"?e!==null:Ya(e)}});var Te=a((tc,Bt)=>{"use strict";Bt.exports={}});var Qe=a((oc,Et)=>{"use strict";var Ye=Te(),Je=R(),Ja=K(),Nt=function(e){return Ja(e)?e:void 0};Et.exports=function(e,r){return arguments.length<2?Nt(Ye[e])||Nt(Je[e]):Ye[e]&&Ye[e][r]||Je[e]&&Je[e][r]}});var Ct=a((nc,Ft)=>{"use strict";var Qa=j();Ft.exports=Qa({}.isPrototypeOf)});var It=a((ac,Ot)=>{"use strict";Ot.exports=typeof navigator<"u"&&String(navigator.userAgent)||""});var Dt=a((ic,Rt)=>{"use strict";var Lt=R(),er=It(),Mt=Lt.process,qt=Lt.Deno,Pt=Mt&&Mt.versions||qt&&qt.version,At=Pt&&Pt.v8,I,Se;At&&(I=At.split("."),Se=I[0]>0&&I[0]<4?1:+(I[0]+I[1]));!Se&&er&&(I=er.match(/Edge\/(\d+)/),(!I||I[1]>=74)&&(I=er.match(/Chrome\/(\d+)/),I&&(Se=+I[1])));Rt.exports=Se});var rr=a((sc,jt)=>{"use strict";var Ht=Dt(),ei=H(),ri=R(),ti=ri.String;jt.exports=!!Object.getOwnPropertySymbols&&!ei(function(){var e=Symbol("symbol detection");return!ti(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Ht&&Ht<41})});var tr=a((lc,Kt)=>{"use strict";var oi=rr();Kt.exports=oi&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var or=a((dc,zt)=>{"use strict";var ni=Qe(),ai=K(),ii=Ct(),si=tr(),li=Object;zt.exports=si?function(e){return typeof e=="symbol"}:function(e){var r=ni("Symbol");return ai(r)&&ii(r.prototype,li(e))}});var Wt=a((cc,Ut)=>{"use strict";var di=String;Ut.exports=function(e){try{return di(e)}catch{return"Object"}}});var nr=a((uc,Zt)=>{"use strict";var ci=K(),ui=Wt(),pi=TypeError;Zt.exports=function(e){if(ci(e))return e;throw new pi(ui(e)+" is not a function")}});var Vt=a((pc,$t)=>{"use strict";var mi=nr(),fi=Ge();$t.exports=function(e,r){var t=e[r];return fi(t)?void 0:mi(t)}});var Xt=a((mc,Gt)=>{"use strict";var ar=we(),ir=K(),sr=se(),bi=TypeError;Gt.exports=function(e,r){var t,o;if(r==="string"&&ir(t=e.toString)&&!sr(o=ar(t,e))||ir(t=e.valueOf)&&!sr(o=ar(t,e))||r!=="string"&&ir(t=e.toString)&&!sr(o=ar(t,e)))return o;throw new bi("Can't convert object to primitive value")}});var Jt=a((fc,Yt)=>{"use strict";Yt.exports=!0});var ro=a((bc,eo)=>{"use strict";var Qt=R(),hi=Object.defineProperty;eo.exports=function(e,r){try{hi(Qt,e,{value:r,configurable:!0,writable:!0})}catch{Qt[e]=r}return r}});var lr=a((hc,no)=>{"use strict";var vi=Jt(),gi=R(),yi=ro(),to="__core-js_shared__",oo=no.exports=gi[to]||yi(to,{});(oo.versions||(oo.versions=[])).push({version:"3.36.1",mode:vi?"pure":"global",copyright:"\xA9 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.36.1/LICENSE",source:"https://github.com/zloirock/core-js"})});var dr=a((vc,io)=>{"use strict";var ao=lr();io.exports=function(e,r){return ao[e]||(ao[e]=r||{})}});var lo=a((gc,so)=>{"use strict";var xi=Xe(),wi=Object;so.exports=function(e){return wi(xi(e))}});var le=a((yc,co)=>{"use strict";var Ti=j(),Si=lo(),ki=Ti({}.hasOwnProperty);co.exports=Object.hasOwn||function(r,t){return ki(Si(r),t)}});var cr=a((xc,uo)=>{"use strict";var _i=j(),Bi=0,Ni=Math.random(),Ei=_i(1 .toString);uo.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Ei(++Bi+Ni,36)}});var fo=a((wc,mo)=>{"use strict";var Fi=R(),Ci=dr(),po=le(),Oi=cr(),Ii=rr(),Mi=tr(),J=Fi.Symbol,ur=Ci("wks"),qi=Mi?J.for||J:J&&J.withoutSetter||Oi;mo.exports=function(e){return po(ur,e)||(ur[e]=Ii&&po(J,e)?J[e]:qi("Symbol."+e)),ur[e]}});var go=a((Tc,vo)=>{"use strict";var Pi=we(),bo=se(),ho=or(),Ai=Vt(),Li=Xt(),Ri=fo(),Di=TypeError,Hi=Ri("toPrimitive");vo.exports=function(e,r){if(!bo(e)||ho(e))return e;var t=Ai(e,Hi),o;if(t){if(r===void 0&&(r="default"),o=Pi(t,e,r),!bo(o)||ho(o))return o;throw new Di("Can't convert object to primitive value")}return r===void 0&&(r="number"),Li(e,r)}});var pr=a((Sc,yo)=>{"use strict";var ji=go(),Ki=or();yo.exports=function(e){var r=ji(e,"string");return Ki(r)?r:r+""}});var fr=a((kc,wo)=>{"use strict";var zi=R(),xo=se(),mr=zi.document,Ui=xo(mr)&&xo(mr.createElement);wo.exports=function(e){return Ui?mr.createElement(e):{}}});var br=a((_c,To)=>{"use strict";var Wi=z(),Zi=H(),$i=fr();To.exports=!Wi&&!Zi(function(){return Object.defineProperty($i("div"),"a",{get:function(){return 7}}).a!==7})});var _o=a(ko=>{"use strict";var Vi=z(),Gi=we(),Xi=gt(),Yi=$e(),Ji=ie(),Qi=pr(),es=le(),rs=br(),So=Object.getOwnPropertyDescriptor;ko.f=Vi?So:function(r,t){if(r=Ji(r),t=Qi(t),rs)try{return So(r,t)}catch{}if(es(r,t))return Yi(!Gi(Xi.f,r,t),r[t])}});var No=a((Nc,Bo)=>{"use strict";var ts=H(),os=K(),ns=/#|\.prototype\./,de=function(e,r){var t=is[as(e)];return t===ls?!0:t===ss?!1:os(r)?ts(r):!!r},as=de.normalize=function(e){return String(e).replace(ns,".").toLowerCase()},is=de.data={},ss=de.NATIVE="N",ls=de.POLYFILL="P";Bo.exports=de});var Co=a((Ec,Fo)=>{"use strict";var Eo=We(),ds=nr(),cs=ae(),us=Eo(Eo.bind);Fo.exports=function(e,r){return ds(e),r===void 0?e:cs?us(e,r):function(){return e.apply(r,arguments)}}});var hr=a((Fc,Oo)=>{"use strict";var ps=z(),ms=H();Oo.exports=ps&&ms(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var ke=a((Cc,Io)=>{"use strict";var fs=se(),bs=String,hs=TypeError;Io.exports=function(e){if(fs(e))return e;throw new hs(bs(e)+" is not an object")}});var wr=a(qo=>{"use strict";var vs=z(),gs=br(),ys=hr(),_e=ke(),Mo=pr(),xs=TypeError,vr=Object.defineProperty,ws=Object.getOwnPropertyDescriptor,gr="enumerable",yr="configurable",xr="writable";qo.f=vs?ys?function(r,t,o){if(_e(r),t=Mo(t),_e(o),typeof r=="function"&&t==="prototype"&&"value"in o&&xr in o&&!o[xr]){var n=ws(r,t);n&&n[xr]&&(r[t]=o.value,o={configurable:yr in o?o[yr]:n[yr],enumerable:gr in o?o[gr]:n[gr],writable:!1})}return vr(r,t,o)}:vr:function(r,t,o){if(_e(r),t=Mo(t),_e(o),gs)try{return vr(r,t,o)}catch{}if("get"in o||"set"in o)throw new xs("Accessors not supported");return"value"in o&&(r[t]=o.value),r}});var Ao=a((Ic,Po)=>{"use strict";var Ts=z(),Ss=wr(),ks=$e();Po.exports=Ts?function(e,r,t){return Ss.f(e,r,ks(1,t))}:function(e,r,t){return e[r]=t,e}});var Do=a((Mc,Ro)=>{"use strict";var ce=R(),_s=at(),Bs=We(),Ns=K(),Es=_o().f,Fs=No(),Q=Te(),Cs=Co(),ee=Ao(),Lo=le();lr();var Os=function(e){var r=function(t,o,n){if(this instanceof r){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,o)}return new e(t,o,n)}return _s(e,this,arguments)};return r.prototype=e.prototype,r};Ro.exports=function(e,r){var t=e.target,o=e.global,n=e.stat,i=e.proto,d=o?ce:n?ce[t]:ce[t]&&ce[t].prototype,s=o?Q:Q[t]||ee(Q,t,{})[t],h=s.prototype,x,c,u,m,g,B,_,T,k;for(m in r)x=Fs(o?m:t+(n?".":"#")+m,e.forced),c=!x&&d&&Lo(d,m),B=s[m],c&&(e.dontCallGetSet?(k=Es(d,m),_=k&&k.value):_=d[m]),g=c&&_?_:r[m],!(!x&&!i&&typeof B==typeof g)&&(e.bind&&c?T=Cs(g,ce):e.wrap&&c?T=Os(g):i&&Ns(g)?T=Bs(g):T=g,(e.sham||g&&g.sham||B&&B.sham)&&ee(T,"sham",!0),ee(s,m,T),i&&(u=t+"Prototype",Lo(Q,u)||ee(Q,u,{}),ee(Q[u],m,g),e.real&&h&&(x||!h[m])&&ee(h,m,g)))}});var jo=a((qc,Ho)=>{"use strict";var Is=Math.ceil,Ms=Math.floor;Ho.exports=Math.trunc||function(r){var t=+r;return(t>0?Ms:Is)(t)}});var Tr=a((Pc,Ko)=>{"use strict";var qs=jo();Ko.exports=function(e){var r=+e;return r!==r||r===0?0:qs(r)}});var Uo=a((Ac,zo)=>{"use strict";var Ps=Tr(),As=Math.max,Ls=Math.min;zo.exports=function(e,r){var t=Ps(e);return t<0?As(t+r,0):Ls(t,r)}});var Zo=a((Lc,Wo)=>{"use strict";var Rs=Tr(),Ds=Math.min;Wo.exports=function(e){var r=Rs(e);return r>0?Ds(r,9007199254740991):0}});var Vo=a((Rc,$o)=>{"use strict";var Hs=Zo();$o.exports=function(e){return Hs(e.length)}});var Yo=a((Dc,Xo)=>{"use strict";var js=ie(),Ks=Uo(),zs=Vo(),Go=function(e){return function(r,t,o){var n=js(r),i=zs(n);if(i===0)return!e&&-1;var d=Ks(o,i),s;if(e&&t!==t){for(;i>d;)if(s=n[d++],s!==s)return!0}else for(;i>d;d++)if((e||d in n)&&n[d]===t)return e||d||0;return!e&&-1}};Xo.exports={includes:Go(!0),indexOf:Go(!1)}});var Sr=a((Hc,Jo)=>{"use strict";Jo.exports={}});var rn=a((jc,en)=>{"use strict";var Us=j(),kr=le(),Ws=ie(),Zs=Yo().indexOf,$s=Sr(),Qo=Us([].push);en.exports=function(e,r){var t=Ws(e),o=0,n=[],i;for(i in t)!kr($s,i)&&kr(t,i)&&Qo(n,i);for(;r.length>o;)kr(t,i=r[o++])&&(~Zs(n,i)||Qo(n,i));return n}});var _r=a((Kc,tn)=>{"use strict";tn.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var nn=a((zc,on)=>{"use strict";var Vs=rn(),Gs=_r();on.exports=Object.keys||function(r){return Vs(r,Gs)}});var sn=a(an=>{"use strict";var Xs=z(),Ys=hr(),Js=wr(),Qs=ke(),el=ie(),rl=nn();an.f=Xs&&!Ys?Object.defineProperties:function(r,t){Qs(r);for(var o=el(t),n=rl(t),i=n.length,d=0,s;i>d;)Js.f(r,s=n[d++],o[s]);return r}});var dn=a((Wc,ln)=>{"use strict";var tl=Qe();ln.exports=tl("document","documentElement")});var pn=a((Zc,un)=>{"use strict";var ol=dr(),nl=cr(),cn=ol("keys");un.exports=function(e){return cn[e]||(cn[e]=nl(e))}});var xn=a(($c,yn)=>{"use strict";var al=ke(),il=sn(),mn=_r(),sl=Sr(),ll=dn(),dl=fr(),cl=pn(),fn=">",bn="<",Nr="prototype",Er="script",vn=cl("IE_PROTO"),Br=function(){},gn=function(e){return bn+Er+fn+e+bn+"/"+Er+fn},hn=function(e){e.write(gn("")),e.close();var r=e.parentWindow.Object;return e=null,r},ul=function(){var e=dl("iframe"),r="java"+Er+":",t;return e.style.display="none",ll.appendChild(e),e.src=String(r),t=e.contentWindow.document,t.open(),t.write(gn("document.F=Object")),t.close(),t.F},Be,Ne=function(){try{Be=new ActiveXObject("htmlfile")}catch{}Ne=typeof document<"u"?document.domain&&Be?hn(Be):ul():hn(Be);for(var e=mn.length;e--;)delete Ne[Nr][mn[e]];return Ne()};sl[vn]=!0;yn.exports=Object.create||function(r,t){var o;return r!==null?(Br[Nr]=al(r),o=new Br,Br[Nr]=null,o[vn]=r):o=Ne(),t===void 0?o:il.f(o,t)}});var wn=a(()=>{"use strict";var pl=Do(),ml=z(),fl=xn();pl({target:"Object",stat:!0,sham:!ml},{create:fl})});var Sn=a((Xc,Tn)=>{"use strict";wn();var bl=Te(),hl=bl.Object;Tn.exports=function(r,t){return hl.create(r,t)}});var _n=a((Yc,kn)=>{"use strict";var vl=Sn();kn.exports=vl});var Nn=a((Jc,Bn)=>{Bn.exports=_n()});function ve(e,r){try{if(typeof document>"u")return;var t=document.createElement("meta");t.setAttribute("name",e),r&&t.setAttribute("content",r),document.head.appendChild(t)}catch(o){console.error('inject-meta-tag: Failed to inject <meta name="'.concat(e,'"> tag.'),o)}}var Ta=l(O()),te=l(f());var D=l(f());var Xr=l(f()),Yr=(0,Xr.createContext)(new Proxy({},{get(){throw new Error("botframework-webchat: This hook can only used under its corresponding <Provider>.")}}));Yr.displayName="TelephoneKeypad.Context";var ge=Yr;var Ia=(0,D.memo)(({children:e})=>{let[r,t]=(0,D.useState)(!1),o=(0,D.useMemo)(()=>Object.freeze({setShown:t,shown:r}),[t,r]);return D.default.createElement(ge.Provider,{value:o},e)}),je=Ia;var Oe=l(f());var In=l(O()),Mn=l(q()),p=l(f());var En=l(Nn()),Ee=l(f());function S(e){var r=(0,Ee.useRef)(),t=(0,Ee.useMemo)(function(){return(0,En.default)({},{current:{get:function(){return r.current}}})},[r]);return r.current=e,t}var P=l(f());var Fn={"telephone-keypad__button":"r","telephone-keypad__button__ruby":"e","telephone-keypad__button__text":"o","telephone-keypad--horizontal":"l"};var yl=".webchat-fluent .r{-webkit-user-select:none;align-items:center;-webkit-appearance:none;appearance:none;background-color:#fff;border-radius:100%;border:solid 1px var(--webchat-colorNeutralStroke1);color:var(--webchat-colorGray200);font-weight:var(--webchat-fontWeightSemibold);cursor:pointer;display:flex;flex-direction:column;height:60px;opacity:.7;padding:0;position:relative;touch-action:none;user-select:none;width:60px}.webchat-fluent .r:hover{background-color:var(--webchat-colorGray30)}.webchat-fluent .e{color:var(--webchat-colorGray190);font-size:10px}.webchat-fluent .o{font-size:24px;margin-top:8px}.webchat-fluent .l .r{height:32px;justify-content:center;margin:8px 4px;width:32px}.webchat-fluent .l .e{display:none}.webchat-fluent .l .o{font-size:20px;margin-top:0}.webchat-fluent .c{align-items:center;background:var(--webchat-colorNeutralBackground1);border:none;border-radius:var(--webchat-borderRadiusXLarge);display:flex;flex-direction:column;font-family:var(--webchat-fontFamilyBase);justify-content:center}.webchat-fluent .n{box-sizing:border-box;display:grid;gap:16px;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(4,1fr);justify-items:center;padding:16px;width:100%}.webchat-fluent .d{align-items:center;color:var(--webchat-colorNeutralForeground4);display:flex;font-size:12px;gap:6px;margin-block-end:6px}.webchat-fluent .i{color:var(--webchat-colorBrandForegroundLink);text-decoration-color:transparent}.webchat-fluent .i:target{color:var(--webchat-colorBrandForegroundLinkSelected)}.webchat-fluent .i:hover{color:var(--webchat-colorBrandForegroundLinkHover);text-decoration:underline 1px currentColor}.webchat-fluent .i:active{color:var(--webchat-colorBrandForegroundLinkPressed)}.webchat-fluent .i:focus-visible{outline:none;text-decoration:underline 1px double var(--webchat-colorStrokeFocus2)}.webchat-fluent.a{display:contents;--webchat-colorNeutralForeground1: var(--colorNeutralForeground1, #242424);--webchat-colorNeutralForeground2: var(--colorNeutralForeground2, #424242);--webchat-colorNeutralForeground4: var(--colorNeutralForeground4, #707070);--webchat-colorNeutralForeground2BrandHover: var(--colorNeutralForeground2BrandHover, #02729c);--webchat-colorNeutralForeground2BrandPressed: var(--colorNeutralForeground2BrandPressed, #01678c);--webchat-colorNeutralForeground2BrandSelected: var(--colorNeutralForeground2BrandSelected, #067191);--webchat-colorNeutralForegroundDisabled: var(--colorNeutralForegroundDisabled, #bdbdbd);--webchat-colorNeutralBackground1: var(--colorNeutralBackground1, #ffffff);--webchat-colorNeutralBackground4: var(--colorNeutralBackground4, #f0f0f0);--webchat-colorNeutralBackground5: var(--colorNeutralBackground5, #ebebeb);--webchat-colorNeutralStroke1: var(--colorNeutralStroke1, #d1d1d1);--webchat-colorNeutralStroke2: var(--colorNeutralStroke2, #e0e0e0);--webchat-colorNeutralStroke1Selected: var(--colorNeutralStroke1Selected, #bdbdbd);--webchat-colorStrokeFocus2: var(--colorStrokeFocus2, #000000);--webchat-colorBrandStroke2: var(--colorBrandStroke2, #9edcf7);--webchat-colorBrandForeground2Hover: var(--colorBrandForeground2Hover, #015a7a);--webchat-colorBrandForeground2Pressed: var(--colorBrandForeground2Pressed, #01384d);--webchat-colorBrandForegroundLink: var(--colorBrandForegroundLink, #01678c);--webchat-colorBrandForegroundLinkHover: var(--colorBrandForegroundLinkHover, #015a7a);--webchat-colorBrandForegroundLinkPressed: var(--colorBrandForegroundLinkPressed, #014259);--webchat-colorBrandForegroundLinkSelected: var(--colorBrandForegroundLinkSelected, #01678c);--webchat-colorBrandBackground2Hover: var(--colorBrandBackground2Hover, #bee7fa);--webchat-colorBrandBackground2Pressed: var(--colorBrandBackground2Pressed, #7fd2f5);--webchat-colorCompoundBrandForeground1Hover: var(--colorCompoundBrandForeground1Hover, #02729c);--webchat-colorStatusDangerForeground1: var(--colorStatusDangerForeground1, #b10e1c);--webchat-colorGray30: var(--colorGray30, #edebe9);--webchat-colorGray160: var(--colorGray160, #323130);--webchat-colorGray190: var(--colorGray190, #201f1e);--webchat-colorGray200: var(--colorGray200, #1b1a19);--webchat-borderRadiusSmall: var(--borderRadiusSmall, 2px);--webchat-borderRadiusLarge: var(--borderRadiusLarge, 6px);--webchat-borderRadiusXLarge: var(--borderRadiusXLarge, 8px);--webchat-shadow16: var(--shadow16, 0 6.4px 14.4px 0 rgba(0, 0, 0, .132), 0 1.2px 3.6px 0 rgba(0, 0, 0, .108));--webchat-spacingHorizontalMNudge: var(--spacingHorizontalMNudge, 10px);--webchat-fontFamilyBase: var(--fontFamilyBase, \"Segoe UI\", \"Segoe UI Web (West European)\", -apple-system, BlinkMacSystemFont, Roboto, \"Helvetica Neue\", sans-serif);--webchat-fontFamilyNumeric: var(--fontFamilyNumeric, Bahnschrift, \"Segoe UI\", \"Segoe UI Web (West European)\", -apple-system, BlinkMacSystemFont, Roboto, \"Helvetica Neue\", sans-serif);--webchat-fontWeightSemibold: var(--fontWeightSemibold, 600);--webchat-strokeWidthThicker: var(--strokeWidthThicker, 3px);--webchat-durationUltraFast: var(--durationUltraFast, 0);--webchat-durationNormal: var(--durationNormal, .2s);--webchat-curveAccelerateMid: var(--curveAccelerateMid, cubic-bezier(1,0,1,1));--webchat-curveDecelerateMid: var(--curveDecelerateMid, cubic-bezier(0,0,0,1))}@media (prefers-reduced-motion){.webchat-fluent.a{--webchat-durationUltraFast: .01ms;--webchat-durationNormal: .01ms}}.webchat-fluent .b{background-color:var(--webchat-colorNeutralBackground4);border-radius:inherit;cursor:copy;display:grid;gap:8px;inset:0;place-content:center;place-items:center;position:absolute}.webchat-fluent .u{background-color:#e00;color:#fff}.webchat-fluent .h{height:36px;pointer-events:none;width:36px}.webchat-fluent .s{align-items:center;background:transparent;border-radius:8px;border:1px solid var(--webchat-colorBrandStroke2);color:currentColor;cursor:pointer;display:flex;font-size:12px;gap:4px;padding:4px 8px;text-align:start;transition:all .15s ease-out}@media (hover: hover){.webchat-fluent .s:not([aria-disabled=true]):hover{background-color:var(--webchat-colorBrandBackground2Hover);color:var(--webchat-colorBrandForeground2Hover)}}.webchat-fluent .s:not([aria-disabled=true]):active{background-color:var(--webchat-colorBrandBackground2Pressed);color:var(--webchat-colorBrandForeground2Pressed)}.webchat-fluent .s[aria-disabled=true]{color:var(--webchat-colorNeutralForegroundDisabled);cursor:not-allowed}.webchat-fluent .g{font-size:12px;height:1em;width:1em}.webchat-fluent .p{align-items:flex-end;align-self:flex-end;display:flex;flex-direction:column;gap:8px}.webchat-fluent .p:not(:empty){padding-block-end:8px;padding-inline-start:4px}.webchat-fluent .p.w{flex-direction:row;flex-wrap:wrap;justify-content:flex-end}.webchat-fluent .p.v{flex-direction:column}.webchat-fluent .f{display:flex;gap:4px;margin-inline-start:auto}.webchat-fluent .x{align-items:center;-webkit-appearance:none;appearance:none;aspect-ratio:1;background:transparent;border-radius:var(--webchat-borderRadiusSmall);border:none;color:currentColor;cursor:pointer;display:flex;justify-content:center;padding:3px;width:32px}.webchat-fluent .x>svg{font-size:20px;pointer-events:none}.webchat-fluent .x.k{color:var(--webchat-colorNeutralForeground2BrandSelected)}@media (hover: hover){.webchat-fluent .x:not([aria-disabled=true]):hover{color:var(--webchat-colorNeutralForeground2BrandHover)}}.webchat-fluent .x:not([aria-disabled=true]):active{color:var(--webchat-colorNeutralForeground2BrandPressed)}.webchat-fluent .x[aria-disabled=true]{color:var(--webchat-colorNeutralForegroundDisabled);cursor:not-allowed}.webchat-fluent .m{align-self:center;border-inline-end:1px solid var(--webchat-colorNeutralStroke2);height:28px}.webchat-fluent .m:is(:first-child,:last-child,:only-child){display:none}.webchat-fluent .B{display:grid}.webchat-fluent .F{font-size:0;height:0;opacity:0;width:1px}.webchat-fluent .y{border-radius:var(--webchat-borderRadiusLarge);border:1px solid var(--webchat-colorNeutralStroke1);cursor:default;padding:6px 8px;width:fit-content}.webchat-fluent .N{color:transparent;font-size:0;height:0;left:0;position:absolute;top:0;width:0}.webchat-fluent .S{display:grid;grid-template-areas:\"main\";max-height:200px;overflow:hidden}.webchat-fluent .z{height:0;visibility:collapse}.webchat-fluent .L{border:none;font:inherit;grid-area:main;outline:inherit;overflow-wrap:anywhere;resize:inherit;scrollbar-gutter:stable}.webchat-fluent .H{overflow:hidden;visibility:hidden;white-space:pre-wrap}.webchat-fluent .W{background-color:inherit;color:currentColor;height:100%;padding:0}.webchat-fluent .P{scrollbar-color:unset;scrollbar-width:unset;-moz-scrollbar-color:var(--webchat-colorNeutralBackground5) var(--webchat-colorNeutralForeground2);-moz-scrollbar-width:thin}.webchat-fluent .P::-webkit-scrollbar{width:8px}.webchat-fluent .P::-webkit-scrollbar-track{background-color:var(--webchat-colorNeutralBackground5);border-radius:16px}.webchat-fluent .P::-webkit-scrollbar-thumb{background-color:var(--webchat-colorNeutralForeground2);border-radius:16px}.webchat-fluent .P::-webkit-scrollbar-corner{background-color:var(--webchat-colorNeutralBackground5)}.webchat-fluent .R{color:var(--webchat-colorNeutralForeground1);font-family:var(--webchat-fontFamilyBase);padding:0 10px 10px;text-rendering:optimizeLegibility;--webchat-sendbox-attachment-area-active: ;--webchat-sendbox-border-radius: var(--webchat-borderRadiusLarge)}.webchat-fluent .G{background-color:var(--webchat-colorNeutralBackground1);border-radius:var(--webchat-sendbox-border-radius);border:1px solid var(--webchat-colorNeutralStroke1);display:grid;font-family:var(--webchat-fontFamilyBase);font-size:14px;gap:6px;grid-template:[telephone-keypad-start] \"text-area\" [telephone-keypad-end] var(--webchat-sendbox-attachment-area-active) \"controls\" / [telephone-keypad] 1fr;line-height:20px;padding:8px;position:relative}.webchat-fluent .G:has(.t){--webchat-sendbox-attachment-area-active: \"attachment\" }.webchat-fluent .G:focus-within{border-color:var(--webchat-colorNeutralStroke1Selected)}.webchat-fluent .G:after{border-bottom-left-radius:var(--webchat-sendbox-border-radius);border-bottom-right-radius:var(--webchat-sendbox-border-radius);border-bottom:var(--webchat-strokeWidthThicker) solid var(--webchat-colorCompoundBrandForeground1Hover);bottom:-1px;clip-path:inset(calc(100% - var(--webchat-strokeWidthThicker)) 50% 0 50%);content:\"\";height:var(--webchat-sendbox-border-radius);left:-1px;position:absolute;right:-1px;transition:clip-path var(--webchat-durationUltraFast) var(--webchat-curveAccelerateMid)}.webchat-fluent .G:focus-within:after{clip-path:inset(calc(100% - var(--webchat-strokeWidthThicker)) 0 0 0);transition:clip-path var(--webchat-durationNormal) var(--webchat-curveDecelerateMid)}.webchat-fluent .G>.D{grid-area:text-area}.webchat-fluent .G>.t{grid-area:attachment}.webchat-fluent .G>.M{grid-area:controls}.webchat-fluent .G>.U{grid-area:telephone-keypad}.webchat-fluent .C{background-color:transparent;border:none;flex:auto;font-family:var(--webchat-fontFamilyBase);font-size:14px;line-height:20px;outline:none;padding:4px 4px 0;resize:none}.webchat-fluent .j{align-items:center;display:flex;padding-inline-start:4px}.webchat-fluent .T{color:var(--webchat-colorNeutralForeground4);cursor:default;font-family:var(--webchat-fontFamilyNumeric);font-size:10px;line-height:14px;margin-inline-end:4px}.webchat-fluent .I{color:var(--webchat-colorStatusDangerForeground1)}\n/*! For license information please see botframework-webchat-fluent-theme.production.min.css.LEGAL.txt */\n";function Fe(){if(globalThis.document){let e=document.createElement("style");e.append(document.createTextNode(yl)),document.head.appendChild(e)}}var Cn=l(f());function xl(e){return(0,Cn.useMemo)(()=>Object.freeze(Object.fromEntries(Object.entries(e).map(([r,t])=>[r,`${r} ${t}`]))),[e])}var v=xl;var On=(0,P.memo)((0,P.forwardRef)(({button:e,"data-testid":r,onClick:t,ruby:o},n)=>{let i=v(Fn),d=S(t),s=(0,P.useCallback)(()=>d.current?.(),[d]);return P.default.createElement("button",{className:i["telephone-keypad__button"],"data-testid":r,onClick:s,ref:n,type:"button"},P.default.createElement("span",{className:i["telephone-keypad__button__text"]},e==="star"?"\u2217":e==="pound"?"#":e),!!o&&P.default.createElement("ruby",{className:i["telephone-keypad__button__ruby"]},o))}));On.displayName="TelephoneKeypad.Button";var E=On;var wl={sendBoxDropZone:"send box drop zone",sendBoxSendButton:"send box send button",sendBoxTextBox:"send box text area",sendBoxTelephoneKeypadButton1:"send box telephone keypad button 1",sendBoxTelephoneKeypadButton2:"send box telephone keypad button 2",sendBoxTelephoneKeypadButton3:"send box telephone keypad button 3",sendBoxTelephoneKeypadButton4:"send box telephone keypad button 4",sendBoxTelephoneKeypadButton5:"send box telephone keypad button 5",sendBoxTelephoneKeypadButton6:"send box telephone keypad button 6",sendBoxTelephoneKeypadButton7:"send box telephone keypad button 7",sendBoxTelephoneKeypadButton8:"send box telephone keypad button 8",sendBoxTelephoneKeypadButton9:"send box telephone keypad button 9",sendBoxTelephoneKeypadButton0:"send box telephone keypad button 0",sendBoxTelephoneKeypadButtonStar:"send box telephone keypad button star",sendBoxTelephoneKeypadButtonPound:"send box telephone keypad button pound",sendBoxTelephoneKeypadToolbarButton:"send box telephone keypad toolbar button",sendBoxUploadButton:"send box upload button"},y=wl;var Ce=l(f());function A(){let{setShown:e,shown:r}=(0,Ce.useContext)(ge);return(0,Ce.useMemo)(()=>Object.freeze([r,e]),[r,e])}var Fr={"telephone-keypad":"c","telephone-keypad__box":"n","telephone-keypad__info-message":"d","telephone-keypad__info-message-link":"i"};var ue=l(f());function Sl(e){return ue.default.createElement("svg",{"aria-hidden":"true",className:e.className,height:"1em",viewBox:"0 0 20 20",width:"1em",xmlns:"http://www.w3.org/2000/svg"},ue.default.createElement("path",{d:"M6 2a2 2 0 0 0-2 2v5.2c.32-.08.66-.15 1-.18V4a1 1 0 0 1 1-1h4v3.5c0 .83.67 1.5 1.5 1.5H15v8a1 1 0 0 1-1 1h-3.6c-.18.36-.4.7-.66 1H14a2 2 0 0 0 2-2V7.41c0-.4-.16-.78-.44-1.06l-3.91-3.91A1.5 1.5 0 0 0 10.59 2H6Zm8.8 5h-3.3a.5.5 0 0 1-.5-.5V3.2L14.8 7ZM10 14.5a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0Zm-4-2a.5.5 0 0 0-1 0V14H3.5a.5.5 0 0 0 0 1H5v1.5a.5.5 0 0 0 1 0V15h1.5a.5.5 0 0 0 0-1H6v-1.5Z",fill:"currentColor"}))}var Cr=(0,ue.memo)(Sl);var pe=l(f());function kl(e){return pe.default.createElement("svg",{"aria-hidden":"true",className:e.className,height:"1em",viewBox:"0 0 20 20",width:"1em",xmlns:"http://www.w3.org/2000/svg"},pe.default.createElement("path",{d:"m4.83 10.48 5.65-5.65a3 3 0 0 1 4.25 4.24L8 15.8a1.5 1.5 0 0 1-2.12-2.12l6-6.01a.5.5 0 1 0-.7-.71l-6 6.01a2.5 2.5 0 0 0 3.53 3.54l6.71-6.72a4 4 0 1 0-5.65-5.66L4.12 9.78a.5.5 0 0 0 .7.7Z",fill:"currentColor"}))}var Or=(0,pe.memo)(kl);var me=l(f());function _l(e){return me.default.createElement("svg",{"aria-hidden":"true",className:e.className,height:"1em",viewBox:"0 0 16 16",width:"1em",xmlns:"http://www.w3.org/2000/svg"},me.default.createElement("path",{d:"M8.5 7.5a.5.5 0 1 0-1 0v3a.5.5 0 0 0 1 0v-3Zm.25-2a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM8 1a7 7 0 1 0 0 14A7 7 0 0 0 8 1ZM2 8a6 6 0 1 1 12 0A6 6 0 0 1 2 8Z",fill:"currentColor"}))}var Ir=(0,me.memo)(_l);var fe=l(f());function Bl(e){return fe.default.createElement("svg",{"aria-hidden":"true",className:e.className,height:"1em",viewBox:"0 0 20 20",width:"1em",xmlns:"http://www.w3.org/2000/svg"},fe.default.createElement("path",{d:"M2.18 2.11a.5.5 0 0 1 .54-.06l15 7.5a.5.5 0 0 1 0 .9l-15 7.5a.5.5 0 0 1-.7-.58L3.98 10 2.02 2.63a.5.5 0 0 1 .16-.52Zm2.7 8.39-1.61 6.06L16.38 10 3.27 3.44 4.88 9.5h6.62a.5.5 0 1 1 0 1H4.88Z",fill:"currentColor"}))}var Mr=(0,fe.memo)(Bl);var be=l(f());function Nl(e){return be.default.createElement("svg",{"aria-hidden":"true",className:e.className,height:"1em",viewBox:"0 0 20 20",width:"1em",xmlns:"http://www.w3.org/2000/svg"},be.default.createElement("path",{d:"M6 5.25a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5Zm0 4a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5ZM7.25 12a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0ZM10 5.25a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5ZM11.25 8a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0ZM10 13.25a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5ZM11.25 16a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0ZM14 5.25a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5ZM15.25 8a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0ZM14 13.25a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5Z",fill:"currentColor"}))}var qr=(0,be.memo)(Nl);var{LocalizedString:El}=In.Components,qn=(0,p.memo)(({children:e,isHorizontal:r})=>{let t=v(Fr);return r?null:p.default.createElement("div",{className:t["telephone-keypad__box"]},e)});qn.displayName="TelephoneKeypad:Orientation";var Pn=(0,p.memo)(({autoFocus:e,className:r,onButtonClick:t,isHorizontal:o})=>{let n=S(e),i=v(Fr),d=(0,p.useRef)(null),s=S(t),[,h]=A(),x=(0,p.useCallback)(()=>s.current?.("1"),[s]),c=(0,p.useCallback)(()=>s.current?.("2"),[s]),u=(0,p.useCallback)(()=>s.current?.("3"),[s]),m=(0,p.useCallback)(()=>s.current?.("4"),[s]),g=(0,p.useCallback)(()=>s.current?.("5"),[s]),B=(0,p.useCallback)(()=>s.current?.("6"),[s]),_=(0,p.useCallback)(()=>s.current?.("7"),[s]),T=(0,p.useCallback)(()=>s.current?.("8"),[s]),k=(0,p.useCallback)(()=>s.current?.("9"),[s]),M=(0,p.useCallback)(()=>s.current?.("0"),[s]),V=(0,p.useCallback)(()=>s.current?.("star"),[s]),Y=(0,p.useCallback)(()=>s.current?.("pound"),[s]),Re=(0,p.useCallback)(De=>{De.key==="Escape"&&h(!1)},[h]);return(0,p.useEffect)(()=>{n.current&&d.current?.focus()},[n,d]),p.default.createElement("div",{className:(0,Mn.default)(i["telephone-keypad"],r),onKeyDown:Re},p.default.createElement(qn,{isHorizontal:o},p.default.createElement(E,{button:"1","data-testid":y.sendBoxTelephoneKeypadButton1,onClick:x,ref:d}),p.default.createElement(E,{button:"2","data-testid":y.sendBoxTelephoneKeypadButton2,onClick:c,ruby:"ABC"}),p.default.createElement(E,{button:"3","data-testid":y.sendBoxTelephoneKeypadButton3,onClick:u,ruby:"DEF"}),p.default.createElement(E,{button:"4","data-testid":y.sendBoxTelephoneKeypadButton4,onClick:m,ruby:"GHI"}),p.default.createElement(E,{button:"5","data-testid":y.sendBoxTelephoneKeypadButton5,onClick:g,ruby:"JKL"}),p.default.createElement(E,{button:"6","data-testid":y.sendBoxTelephoneKeypadButton6,onClick:B,ruby:"MNO"}),p.default.createElement(E,{button:"7","data-testid":y.sendBoxTelephoneKeypadButton7,onClick:_,ruby:"PQRS"}),p.default.createElement(E,{button:"8","data-testid":y.sendBoxTelephoneKeypadButton8,onClick:T,ruby:"TUV"}),p.default.createElement(E,{button:"9","data-testid":y.sendBoxTelephoneKeypadButton9,onClick:k,ruby:"WXYZ"}),p.default.createElement(E,{button:"star","data-testid":y.sendBoxTelephoneKeypadButtonStar,onClick:V}),p.default.createElement(E,{button:"0","data-testid":y.sendBoxTelephoneKeypadButton0,onClick:M,ruby:"+"}),p.default.createElement(E,{button:"pound","data-testid":y.sendBoxTelephoneKeypadButtonPound,onClick:Y})),p.default.createElement("div",{className:i["telephone-keypad__info-message"]},p.default.createElement(Ir,null),p.default.createElement(El,{linkClassName:i["telephone-keypad__info-message-link"],stringIds:"TELEPHONE_KEYPAD_INPUT_MESSAGE"})))});Pn.displayName="TelephoneKeypad";var An=Pn;var Ln=(0,Oe.memo)(e=>A()[0]?Oe.default.createElement(An,{...e}):null);Ln.displayName="TelephoneKeypad.Surrogate";var Pr=Ln;var Dn=l(f()),Hn=l(q());var Rn={theme:"a"};var Cl="webchat-fluent";function Ie(e){let r=v(Rn);return Dn.default.createElement("div",{className:(0,Hn.default)(Cl,r.theme)},e.children)}var wa=l(O()),re=l(q()),b=l(f());var zn=l(O()),Un=l(q()),F=l(f());var jn={"sendbox__attachment-drop-zone":"b","sendbox__attachment-drop-zone--droppable":"u","sendbox__attachment-drop-zone-icon":"h"};var{useLocalizer:Il}=zn.hooks,Ml=e=>{e.preventDefault()},Kn=e=>!!e.dataTransfer?.types?.some(r=>r.toLowerCase()==="files");function ql(e,r){let t=e.parentNode;for(;t;){if(t===r)return!0;t=t.parentNode}return!1}var Wn=e=>{let[r,t]=(0,F.useState)(!1),o=v(jn),n=(0,F.useRef)(null),i=Il(),d=S(e.onFilesAdded);(0,F.useEffect)(()=>{let h=0,x=u=>{h++,Kn(u)&&t(n.current&&(u.target===n.current||u.target instanceof HTMLElement&&ql(u.target,n.current))?"droppable":"visible")},c=()=>--h<=0&&t(!1);return document.addEventListener("dragenter",x,!1),document.addEventListener("dragleave",c,!1),()=>{document.removeEventListener("dragenter",x),document.removeEventListener("dragleave",c)}},[t]);let s=(0,F.useCallback)(h=>{h.preventDefault(),t(!1),Kn(h.nativeEvent)&&d.current([...h.dataTransfer.files])},[d,t]);return r?F.default.createElement("div",{className:(0,Un.default)(o["sendbox__attachment-drop-zone"],{[o["sendbox__attachment-drop-zone--droppable"]]:r==="droppable"}),"data-testid":y.sendBoxDropZone,onDragOver:Ml,onDrop:s,ref:n},F.default.createElement(Cr,{className:o["sendbox__attachment-drop-zone-icon"]}),i("TEXT_INPUT_DROP_ZONE")):null};Wn.displayName="DropZone";var Ar=(0,F.memo)(Wn);var ea=l(O()),ra=l(q()),L=l(f());var Yn=l(O()),Jn=l(q()),W=l(f());var Zn={"suggested-action":"s","suggested-action__image":"g"};var U=l(f()),Al=e=>e.preventDefault(),Ll=(0,U.forwardRef)(({"aria-hidden":e,children:r,disabled:t,onClick:o,tabIndex:n,...i},d)=>{let s=(0,U.useRef)(null);return U.default.createElement("button",{"aria-disabled":t?"true":"false","aria-hidden":e,onClick:t?Al:o,ref:d||s,tabIndex:n,...t&&{"aria-disabled":"true",tabIndex:-1},...i,type:"button"},r)}),$n=(0,U.memo)(Ll);var w=l(f()),Vn=(0,w.createContext)({itemEffector:()=>{throw new Error("botframework-webchat-fluent-theme rovingFocus: no provider for RovingFocusContext.")}});function Rl(e){let r=(0,w.useRef)(0),t=(0,w.useRef)([]),o=(0,w.useCallback)(({current:c},u)=>c&&(c.tabIndex=r.current===u?0:-1),[r]),n=(0,w.useCallback)(c=>{let u;typeof c=="number"?u=c:u=c(r.current),u&&!t.current.at(u)?.current&&(u=0),r.current!==u&&(r.current=u,t.current.forEach((m,g)=>o(m,g)),t.current.at(u)?.current?.focus())},[o,t,r]),i=(0,w.useCallback)(c=>{let{target:u}=c,m=t.current.findIndex(({current:g})=>g===u);m!==-1&&n(m)},[t,n]),d=(0,w.useCallback)(c=>u=>{let m=!e.direction,g=/up|down/iu.test(c)&&e.direction==="vertical",B=/left|right/iu.test(c)&&e.direction==="horizontal",_=/right|down/iu.test(c),T=m||g||B?_?1:-1:0,k=t.current.map((V,Y)=>Y),M=k.indexOf(u)+T;return k.at(M)??0},[e.direction]),s=(0,w.useCallback)(c=>{let{key:u}=c;switch(u){case"Up":case"ArrowUp":case"Left":case"ArrowLeft":case"Down":case"ArrowDown":case"Right":case"ArrowRight":n(d(u));break;case"Home":n(0);break;case"End":n(-1);break;case"Escape":e.onEscapeKey?.();break;default:return}c.preventDefault(),c.stopPropagation()},[n,d,e]),h=(0,w.useCallback)((c,u)=>{let{current:m}=c;return t.current[Number(u)]=c,m.addEventListener("focus",i),m.addEventListener("keydown",s),o(c,u),()=>{m.removeEventListener("focus",i),m.removeEventListener("keydown",s),delete t.current[Number(u)]}},[i,s,o,t]),x=(0,w.useMemo)(()=>({itemEffector:h}),[h]);return w.default.createElement(Vn.Provider,{value:x},e.children)}function Gn(e){let r=(0,w.useRef)(null),{itemEffector:t}=(0,w.useContext)(Vn);return(0,w.useEffect)(()=>t(r,e)),r}var Xn=(0,w.memo)(Rl);var{useDisabled:Dl,useFocus:Hl,usePerformCardAction:jl,useScrollToEnd:Kl,useStyleSet:zl,useSuggestedActions:Ul}=Yn.hooks;function Wl({buttonText:e,className:r,displayText:t,image:o,imageAlt:n,itemIndex:i,text:d,type:s,value:h}){let[x,c]=Ul(),[{suggestedAction:u}]=zl(),[m]=Dl(),g=Hl(),B=Gn(i),_=jl(),T=v(Zn),k=Kl(),M=(0,W.useCallback)(({target:V})=>{(async function(){await g("sendBoxWithoutKeyboard"),_({displayText:t,text:d,type:s,value:h},{target:V}),s==="openUrl"&&c([]),k()})()},[t,g,_,k,c,d,s,h]);return W.default.createElement($n,{className:(0,Jn.default)(T["suggested-action"],u+"",(r||"")+""),disabled:m,onClick:M,ref:B,type:"button"},o&&W.default.createElement("img",{alt:n,className:T["suggested-action__image"],src:o}),W.default.createElement("span",null,e))}var Qn=(0,W.memo)(Wl);function Lr(e){let{title:r}=e,{type:t,value:o}=e;return t==="messageBack"?r||e.displayText:r||(typeof o=="string"?o:JSON.stringify(o))}var Rr={"suggested-actions":"p","suggested-actions--flow":"w","suggested-actions--stacked":"v"};var{useFocus:$l,useLocalizer:Vl,useStyleOptions:Gl,useStyleSet:Xl,useSuggestedActions:Yl}=ea.hooks;function Jl(e){let[{suggestedActionLayout:r}]=Gl(),[{suggestedActions:t}]=Xl(),o=v(Rr);return L.default.createElement("div",{"aria-label":e["aria-label"],"aria-live":"polite","aria-orientation":"vertical",className:(0,ra.default)(o["suggested-actions"],t+"",{[o["suggested-actions--flow"]]:r==="flow",[o["suggested-actions--stacked"]]:r!=="flow"},e.className),role:"toolbar"},!!e.children&&!!L.default.Children.count(e.children)&&e.children)}function Ql(){let e=v(Rr),r=Vl(),[t]=Yl(),o=$l(),n=(0,L.useCallback)(()=>{o("sendBox")},[o]),i=t.map((d,s)=>{let{displayText:h,image:x,imageAltText:c,text:u,type:m,value:g}=d;return t?.length?L.default.createElement(Qn,{buttonText:Lr(d),displayText:h,image:x,imageAlt:x&&(c||u),itemIndex:s,key:s,text:u,type:m,value:g}):null});return L.default.createElement(Xn,{onEscapeKey:n},L.default.createElement(Jl,{"aria-label":r("SUGGESTED_ACTIONS_LABEL_ALT"),className:e["suggested-actions"]},i))}var Dr=(0,L.memo)(Ql);var oa=l(O()),C=l(f());var qe=l(q()),Z=l(f());var Me={sendbox__toolbar:"f","sendbox__toolbar-button":"x","sendbox__toolbar-button--selected":"k","sendbox__toolbar-separator":"m"};var rd=e=>e.preventDefault(),G=(0,Z.memo)(e=>{let r=v(Me);return Z.default.createElement("button",{"aria-label":e["aria-label"],className:(0,qe.default)(r["sendbox__toolbar-button"],e.className,{[r["sendbox__toolbar-button--selected"]]:e.selected}),"data-testid":e["data-testid"],onClick:e.disabled?rd:e.onClick,type:e.type==="submit"?"submit":"button",...e.disabled&&{"aria-disabled":"true",tabIndex:-1}},e.children)});G.displayName="ToolbarButton";var Hr=(0,Z.memo)(e=>{let r=v(Me);return Z.default.createElement("div",{className:(0,qe.default)(r.sendbox__toolbar,e.className)},e.children)});Hr.displayName="Toolbar";var jr=(0,Z.memo)(e=>{let r=v(Me);return Z.default.createElement("div",{"aria-orientation":"vertical",className:(0,qe.default)(r["sendbox__toolbar-separator"],e.className),role:"separator"})});jr.displayName="ToolbarSeparator";var ta={"sendbox__add-attachment":"B","sendbox__add-attachment-input":"F"};var{useLocalizer:od,useStyleOptions:nd}=oa.hooks;function ad(e){let r=(0,C.useRef)(null),t=v(ta),o=od(),[{uploadAccept:n,uploadMultiple:i}]=nd(),d=S(e.onFilesAdded),s=(0,C.useCallback)(()=>r.current?.click(),[r]),h=(0,C.useCallback)(({target:{files:x}})=>{x&&(d.current?.([...x]),r.current&&(r.current.value=""))},[r,d]);return C.default.createElement("div",{className:t["sendbox__add-attachment"]},C.default.createElement("input",{accept:n,"aria-disabled":e.disabled,"aria-hidden":"true",className:t["sendbox__add-attachment-input"],multiple:i,onInput:e.disabled?void 0:h,readOnly:e.disabled,ref:r,role:"button",tabIndex:-1,type:"file"}),C.default.createElement(G,{"aria-label":o("TEXT_INPUT_UPLOAD_BUTTON_ALT"),"data-testid":y.sendBoxUploadButton,onClick:s},C.default.createElement(Or,null)))}var na=(0,C.memo)(ad);var ia=l(O()),Pe=l(f()),sa=l(q());var aa={sendbox__attachment:"y"};var{useLocalizer:sd}=ia.hooks,ld={one:"TEXT_INPUT_ATTACHMENTS_ONE",two:"TEXT_INPUT_ATTACHMENTS_TWO",few:"TEXT_INPUT_ATTACHMENTS_FEW",many:"TEXT_INPUT_ATTACHMENTS_MANY",other:"TEXT_INPUT_ATTACHMENTS_OTHER"};function dd({attachments:e,className:r}){let t=v(aa),o=sd({plural:!0});return e.length?Pe.default.createElement("div",{className:(0,sa.default)(t.sendbox__attachment,r)},o(ld,e.length)):null}var la=(0,Pe.memo)(dd);var Ae=l(f());var da={"sendbox__error-message":"N"};function ud(e){let r=v(da);return Ae.default.createElement("span",{className:r["sendbox__error-message"],id:e.id,role:"alert"},e.error)}var ca=(0,Ae.memo)(ud);var X=l(f()),ua=l(O());var{useLocalizer:pd}=ua.hooks,pa=(0,X.memo)(()=>{let[e,r]=A(),t=pd(),o=(0,X.useCallback)(()=>r(n=>!n),[r]);return X.default.createElement(G,{"aria-label":t("TEXT_INPUT_TELEPHONE_KEYPAD_BUTTON_ALT"),"data-testid":y.sendBoxTelephoneKeypadToolbarButton,onClick:o,selected:e},X.default.createElement(qr,null))});pa.displayName="SendBox.TelephoneKeypadToolbarButton";var ma=pa;var Le=l(q()),$=l(f());var fa={"sendbox__text-area":"S","sendbox__text-area--hidden":"z","sendbox__text-area-shared":"L","sendbox__text-area-doppelganger":"H","sendbox__text-area-input":"W","sendbox__text-area-input--scroll":"P"};var ba=(0,$.forwardRef)((e,r)=>{let t=v(fa),o=(0,$.useCallback)(n=>{!n.shiftKey&&n.key==="Enter"&&(n.preventDefault(),"form"in n.target&&n.target.form instanceof HTMLFormElement&&n.target?.form?.requestSubmit())},[]);return $.default.createElement("div",{className:(0,Le.default)(t["sendbox__text-area"],{[t["sendbox__text-area--hidden"]]:e.hidden},e.className),role:e.hidden?"hidden":void 0},$.default.createElement("div",{className:(0,Le.default)(t["sendbox__text-area-doppelganger"],t["sendbox__text-area-shared"],t["sendbox__text-area-input--scroll"])},e.value||e.placeholder," "),$.default.createElement("textarea",{"aria-label":e["aria-label"],className:(0,Le.default)(t["sendbox__text-area-input"],t["sendbox__text-area-shared"],t["sendbox__text-area-input--scroll"]),"data-testid":e["data-testid"],onInput:e.onInput,onKeyDown:o,placeholder:e.placeholder,ref:r,rows:e.startRows??1,tabIndex:e.hidden?-1:void 0,value:e.value}))});ba.displayName="TextArea";var ha=ba;var va=l(O()),Kr=l(f());var{useConnectivityStatus:fd,useLocalizer:bd}=va.hooks,hd=({attachments:e,message:r})=>{let[t]=fd(),o=bd(),n=S(t!=="connected"&&t!=="reconnected"?"offline":!r&&!e.length?"empty":void 0),i=(0,Kr.useMemo)(()=>Object.freeze(new Map().set("empty",o("SEND_BOX_IS_EMPTY_TOOLTIP_ALT")).set("offline",o("CONNECTIVITY_STATUS_ALT_FATAL"))),[o]);return(0,Kr.useMemo)(()=>Object.freeze([n,n.current&&i.get(n.current)]),[i,n])},ga=hd;var ya=l(f());function zr(e){let r=(0,ya.useMemo)(()=>Math.random().toString(36).substr(2,5),[]);return e=e?`${e}--`:"",`${e}${r}`}var xa={sendbox:"R",sendbox__sendbox:"G","sendbox__attachment--in-grid":"t","sendbox__text-area--in-grid":"D","sendbox__sendbox-controls--in-grid":"M","sendbox__telephone-keypad--in-grid":"U","sendbox__sendbox-text":"C","sendbox__sendbox-controls":"j","sendbox__text-counter":"T","sendbox__text-counter--error":"I"};var{useFocus:gd,useLocalizer:yd,useMakeThumbnail:xd,useRegisterFocusSendBox:wd,useSendBoxAttachments:Td,useSendMessage:Sd,useStyleOptions:kd}=wa.hooks;function _d(e){let r=(0,b.useRef)(null),[t,o]=(0,b.useState)(""),[n,i]=Td(),[{hideTelephoneKeypadButton:d,hideUploadButton:s,maxMessageLength:h}]=kd(),x=!!h&&t.length>h,c=v(xa),u=yd(),m=Sd(),g=xd(),B=zr("sendbox__error-message-id"),[_,T]=ga({message:t,attachments:n}),[k]=A(),M=gd();wd((0,b.useCallback)(({noKeyboard:N,waitUntil:He})=>{r.current&&(N?He((async()=>{let oe=r.current?.getAttribute("readonly");r.current?.setAttribute("readonly","true"),await new Promise(he=>setTimeout(he,0)),r.current?.focus(),typeof oe!="string"?r.current?.removeAttribute("readonly"):r.current?.setAttribute("readonly",oe)})()):r.current?.focus())},[r]));let V=S(n),Y=S(t),Re=(0,b.useCallback)(N=>{"tabIndex"in N.target&&typeof N.target.tabIndex=="number"&&N.target.tabIndex>=0||M("sendBox")},[M]),De=(0,b.useCallback)(N=>o(N.currentTarget.value),[o]),Zr=(0,b.useCallback)(async N=>{let He=Object.freeze(await Promise.all(N.map(oe=>g(oe).then(he=>Object.freeze({blob:oe,...he&&{thumbnailURL:he}})))));i(He)},[g,i]),Sa=(0,b.useCallback)(N=>{N.preventDefault(),_.current!=="empty"&&!x&&(m(Y.current,void 0,{attachments:V.current}),o(""),i([])),M("sendBox")},[V,Y,m,i,o,x,_,M]),ka=(0,b.useCallback)(N=>m(`/DTMF ${N}`),[m]),_a={"aria-invalid":"false",...T&&{"aria-invalid":"true","aria-errormessage":B}};return b.default.createElement("form",{..._a,className:(0,re.default)(c.sendbox,e.className),onSubmit:Sa},b.default.createElement(Dr,null),b.default.createElement("div",{className:(0,re.default)(c.sendbox__sendbox),onClickCapture:Re},b.default.createElement(ha,{"aria-label":u(x?"TEXT_INPUT_LENGTH_EXCEEDED_ALT":"TEXT_INPUT_ALT"),className:(0,re.default)(c["sendbox__sendbox-text"],c["sendbox__text-area--in-grid"]),"data-testid":y.sendBoxTextBox,hidden:k,onInput:De,placeholder:e.placeholder??u("TEXT_INPUT_PLACEHOLDER"),ref:r,value:t}),b.default.createElement(Pr,{autoFocus:!0,className:c["sendbox__telephone-keypad--in-grid"],isHorizontal:!1,onButtonClick:ka}),b.default.createElement(la,{attachments:n,className:c["sendbox__attachment--in-grid"]}),b.default.createElement("div",{className:(0,re.default)(c["sendbox__sendbox-controls"],c["sendbox__sendbox-controls--in-grid"])},!k&&h&&b.default.createElement("div",{className:(0,re.default)(c["sendbox__text-counter"],{[c["sendbox__text-counter--error"]]:x})},`${t.length}/${h}`),b.default.createElement(Hr,null,!d&&b.default.createElement(ma,null),!s&&b.default.createElement(na,{onFilesAdded:Zr}),b.default.createElement(jr,null),b.default.createElement(G,{"aria-label":u("TEXT_INPUT_SEND_BUTTON_ALT"),"data-testid":y.sendBoxSendButton,disabled:x||k,type:"submit"},b.default.createElement(Mr,null)))),b.default.createElement(Ar,{onFilesAdded:Zr}),b.default.createElement(ca,{error:T,id:B})))}var Ur=(0,b.memo)(_d);var{ThemeProvider:Bd}=Ta.Components,Nd=[()=>()=>()=>Ur],Ed=({children:e})=>te.default.createElement(Ie,null,te.default.createElement(je,null,te.default.createElement(Bd,{sendBoxMiddleware:Nd},e))),Wr=(0,te.memo)(Ed);ve("botframework-webchat:fluent-theme","version=4.17.1-main.20240509.b00b5c9; build-tool=tsup; module-format=esmodules");Fe();globalThis.WebChat={...globalThis.WebChat,FluentThemeProvider:Wr,testIds:{...globalThis.WebChat?.testIds,...y}};})();
2
2
  /*! For license information please see botframework-webchat-fluent-theme.production.min.js.LEGAL.txt */
3
3
  //# sourceMappingURL=botframework-webchat-fluent-theme.production.min.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "botframework-webchat-fluent-theme",
3
- "version": "4.17.1-main.20240508.bf8dbd9",
3
+ "version": "4.17.1-main.20240509.b00b5c9",
4
4
  "description": "Fluent theme for Bot Framework Web Chat",
5
5
  "main": "./dist/botframework-webchat-fluent-theme.js",
6
6
  "types": "./dist/botframework-webchat-fluent-theme.d.ts",
@@ -69,9 +69,9 @@
69
69
  "typescript": "^5.4.5"
70
70
  },
71
71
  "dependencies": {
72
- "botframework-webchat-api": "4.17.1-main.20240508.bf8dbd9",
73
- "botframework-webchat-component": "4.17.1-main.20240508.bf8dbd9",
74
- "botframework-webchat-core": "4.17.1-main.20240508.bf8dbd9",
72
+ "botframework-webchat-api": "4.17.1-main.20240509.b00b5c9",
73
+ "botframework-webchat-component": "4.17.1-main.20240509.b00b5c9",
74
+ "botframework-webchat-core": "4.17.1-main.20240509.b00b5c9",
75
75
  "classnames": "2.5.1",
76
76
  "inject-meta-tag": "0.0.1",
77
77
  "math-random": "2.0.1",