botframework-webchat-fluent-theme 4.17.1-main.20240625.336dd7c → 4.17.1-main.20240708.c9247bf
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 Ca=Object.create;var Vr=Object.defineProperty;var Oa=Object.getOwnPropertyDescriptor;var Ia=Object.getOwnPropertyNames;var Ma=Object.getPrototypeOf,Pa=Object.prototype.hasOwnProperty;var a=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var qa=(e,r,t,o)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of Ia(r))!Pa.call(e,n)&&n!==t&&Vr(e,n,{get:()=>r[n],enumerable:!(o=Oa(r,n))||o.enumerable});return e};var c=(e,r,t)=>(t=e!=null?Ca(Ma(e)):{},qa(r||!e||!e.__esModule?Vr(t,"default",{value:e,enumerable:!0}):t,e));var C=a((Hc,Gr)=>{Gr.exports={Components:globalThis.WebChat.Components,hooks:globalThis.WebChat.hooks}});var m=a((jc,Xr)=>{Xr.exports=globalThis.React});var P=a((Wc,ye)=>{(function(){"use strict";var e={}.hasOwnProperty;function r(){for(var n="",i=0;i<arguments.length;i++){var l=arguments[i];l&&(n=o(n,t(l)))}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 l in n)e.call(n,l)&&n[l]&&(i=o(i,l));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 L=a((Ke,Qr)=>{"use strict";var ne=function(e){return e&&e.Math===Math&&e};Qr.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((Zc,et)=>{"use strict";et.exports=function(e){try{return!!e()}catch{return!0}}});var ae=a(($c,rt)=>{"use strict";var Da=H();rt.exports=!Da(function(){var e=(function(){}).bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var it=a((Vc,at)=>{"use strict";var La=ae(),nt=Function.prototype,tt=nt.apply,ot=nt.call;at.exports=typeof Reflect=="object"&&Reflect.apply||(La?ot.bind(tt):function(){return ot.apply(tt,arguments)})});var j=a((Gc,ct)=>{"use strict";var st=ae(),lt=Function.prototype,ze=lt.call,Ra=st&<.bind.bind(ze,ze);ct.exports=st?Ra:function(e){return function(){return ze.apply(e,arguments)}}});var Ue=a((Xc,ut)=>{"use strict";var dt=j(),Ha=dt({}.toString),ja=dt("".slice);ut.exports=function(e){return ja(Ha(e),8,-1)}});var We=a((Yc,pt)=>{"use strict";var Ka=Ue(),za=j();pt.exports=function(e){if(Ka(e)==="Function")return za(e)}});var K=a((Jc,ft)=>{"use strict";var Ze=typeof document=="object"&&document.all;ft.exports=typeof Ze>"u"&&Ze!==void 0?function(e){return typeof e=="function"||e===Ze}:function(e){return typeof e=="function"}});var z=a((Qc,mt)=>{"use strict";var Ua=H();mt.exports=!Ua(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var we=a((ed,bt)=>{"use strict";var Wa=ae(),xe=Function.prototype.call;bt.exports=Wa?xe.bind(xe):function(){return xe.apply(xe,arguments)}});var yt=a(gt=>{"use strict";var ht={}.propertyIsEnumerable,vt=Object.getOwnPropertyDescriptor,Za=vt&&!ht.call({1:2},1);gt.f=Za?function(r){var t=vt(this,r);return!!t&&t.enumerable}:ht});var $e=a((td,xt)=>{"use strict";xt.exports=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}}});var Tt=a((od,wt)=>{"use strict";var $a=j(),Va=H(),Ga=Ue(),Ve=Object,Xa=$a("".split);wt.exports=Va(function(){return!Ve("z").propertyIsEnumerable(0)})?function(e){return Ga(e)==="String"?Xa(e,""):Ve(e)}:Ve});var Ge=a((nd,kt)=>{"use strict";kt.exports=function(e){return e==null}});var Xe=a((ad,St)=>{"use strict";var Ya=Ge(),Ja=TypeError;St.exports=function(e){if(Ya(e))throw new Ja("Can't call method on "+e);return e}});var ie=a((id,_t)=>{"use strict";var Qa=Tt(),ei=Xe();_t.exports=function(e){return Qa(ei(e))}});var se=a((sd,Bt)=>{"use strict";var ri=K();Bt.exports=function(e){return typeof e=="object"?e!==null:ri(e)}});var Te=a((ld,Nt)=>{"use strict";Nt.exports={}});var Qe=a((cd,Ft)=>{"use strict";var Ye=Te(),Je=L(),ti=K(),Et=function(e){return ti(e)?e:void 0};Ft.exports=function(e,r){return arguments.length<2?Et(Ye[e])||Et(Je[e]):Ye[e]&&Ye[e][r]||Je[e]&&Je[e][r]}});var Ot=a((dd,Ct)=>{"use strict";var oi=j();Ct.exports=oi({}.isPrototypeOf)});var Mt=a((ud,It)=>{"use strict";It.exports=typeof navigator<"u"&&String(navigator.userAgent)||""});var Ht=a((pd,Rt)=>{"use strict";var Lt=L(),er=Mt(),Pt=Lt.process,qt=Lt.Deno,At=Pt&&Pt.versions||qt&&qt.version,Dt=At&&At.v8,I,ke;Dt&&(I=Dt.split("."),ke=I[0]>0&&I[0]<4?1:+(I[0]+I[1]));!ke&&er&&(I=er.match(/Edge\/(\d+)/),(!I||I[1]>=74)&&(I=er.match(/Chrome\/(\d+)/),I&&(ke=+I[1])));Rt.exports=ke});var rr=a((fd,Kt)=>{"use strict";var jt=Ht(),ni=H(),ai=L(),ii=ai.String;Kt.exports=!!Object.getOwnPropertySymbols&&!ni(function(){var e=Symbol("symbol detection");return!ii(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&jt&&jt<41})});var tr=a((md,zt)=>{"use strict";var si=rr();zt.exports=si&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var or=a((bd,Ut)=>{"use strict";var li=Qe(),ci=K(),di=Ot(),ui=tr(),pi=Object;Ut.exports=ui?function(e){return typeof e=="symbol"}:function(e){var r=li("Symbol");return ci(r)&&di(r.prototype,pi(e))}});var Zt=a((hd,Wt)=>{"use strict";var fi=String;Wt.exports=function(e){try{return fi(e)}catch{return"Object"}}});var nr=a((vd,$t)=>{"use strict";var mi=K(),bi=Zt(),hi=TypeError;$t.exports=function(e){if(mi(e))return e;throw new hi(bi(e)+" is not a function")}});var Gt=a((gd,Vt)=>{"use strict";var vi=nr(),gi=Ge();Vt.exports=function(e,r){var t=e[r];return gi(t)?void 0:vi(t)}});var Yt=a((yd,Xt)=>{"use strict";var ar=we(),ir=K(),sr=se(),yi=TypeError;Xt.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 yi("Can't convert object to primitive value")}});var Qt=a((xd,Jt)=>{"use strict";Jt.exports=!0});var to=a((wd,ro)=>{"use strict";var eo=L(),xi=Object.defineProperty;ro.exports=function(e,r){try{xi(eo,e,{value:r,configurable:!0,writable:!0})}catch{eo[e]=r}return r}});var lr=a((Td,ao)=>{"use strict";var wi=Qt(),Ti=L(),ki=to(),oo="__core-js_shared__",no=ao.exports=Ti[oo]||ki(oo,{});(no.versions||(no.versions=[])).push({version:"3.36.1",mode:wi?"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 cr=a((kd,so)=>{"use strict";var io=lr();so.exports=function(e,r){return io[e]||(io[e]=r||{})}});var co=a((Sd,lo)=>{"use strict";var Si=Xe(),_i=Object;lo.exports=function(e){return _i(Si(e))}});var le=a((_d,uo)=>{"use strict";var Bi=j(),Ni=co(),Ei=Bi({}.hasOwnProperty);uo.exports=Object.hasOwn||function(r,t){return Ei(Ni(r),t)}});var dr=a((Bd,po)=>{"use strict";var Fi=j(),Ci=0,Oi=Math.random(),Ii=Fi(1 .toString);po.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Ii(++Ci+Oi,36)}});var bo=a((Nd,mo)=>{"use strict";var Mi=L(),Pi=cr(),fo=le(),qi=dr(),Ai=rr(),Di=tr(),J=Mi.Symbol,ur=Pi("wks"),Li=Di?J.for||J:J&&J.withoutSetter||qi;mo.exports=function(e){return fo(ur,e)||(ur[e]=Ai&&fo(J,e)?J[e]:Li("Symbol."+e)),ur[e]}});var yo=a((Ed,go)=>{"use strict";var Ri=we(),ho=se(),vo=or(),Hi=Gt(),ji=Yt(),Ki=bo(),zi=TypeError,Ui=Ki("toPrimitive");go.exports=function(e,r){if(!ho(e)||vo(e))return e;var t=Hi(e,Ui),o;if(t){if(r===void 0&&(r="default"),o=Ri(t,e,r),!ho(o)||vo(o))return o;throw new zi("Can't convert object to primitive value")}return r===void 0&&(r="number"),ji(e,r)}});var pr=a((Fd,xo)=>{"use strict";var Wi=yo(),Zi=or();xo.exports=function(e){var r=Wi(e,"string");return Zi(r)?r:r+""}});var mr=a((Cd,To)=>{"use strict";var $i=L(),wo=se(),fr=$i.document,Vi=wo(fr)&&wo(fr.createElement);To.exports=function(e){return Vi?fr.createElement(e):{}}});var br=a((Od,ko)=>{"use strict";var Gi=z(),Xi=H(),Yi=mr();ko.exports=!Gi&&!Xi(function(){return Object.defineProperty(Yi("div"),"a",{get:function(){return 7}}).a!==7})});var Bo=a(_o=>{"use strict";var Ji=z(),Qi=we(),es=yt(),rs=$e(),ts=ie(),os=pr(),ns=le(),as=br(),So=Object.getOwnPropertyDescriptor;_o.f=Ji?So:function(r,t){if(r=ts(r),t=os(t),as)try{return So(r,t)}catch{}if(ns(r,t))return rs(!Qi(es.f,r,t),r[t])}});var Eo=a((Md,No)=>{"use strict";var is=H(),ss=K(),ls=/#|\.prototype\./,ce=function(e,r){var t=ds[cs(e)];return t===ps?!0:t===us?!1:ss(r)?is(r):!!r},cs=ce.normalize=function(e){return String(e).replace(ls,".").toLowerCase()},ds=ce.data={},us=ce.NATIVE="N",ps=ce.POLYFILL="P";No.exports=ce});var Oo=a((Pd,Co)=>{"use strict";var Fo=We(),fs=nr(),ms=ae(),bs=Fo(Fo.bind);Co.exports=function(e,r){return fs(e),r===void 0?e:ms?bs(e,r):function(){return e.apply(r,arguments)}}});var hr=a((qd,Io)=>{"use strict";var hs=z(),vs=H();Io.exports=hs&&vs(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var Se=a((Ad,Mo)=>{"use strict";var gs=se(),ys=String,xs=TypeError;Mo.exports=function(e){if(gs(e))return e;throw new xs(ys(e)+" is not an object")}});var wr=a(qo=>{"use strict";var ws=z(),Ts=br(),ks=hr(),_e=Se(),Po=pr(),Ss=TypeError,vr=Object.defineProperty,_s=Object.getOwnPropertyDescriptor,gr="enumerable",yr="configurable",xr="writable";qo.f=ws?ks?function(r,t,o){if(_e(r),t=Po(t),_e(o),typeof r=="function"&&t==="prototype"&&"value"in o&&xr in o&&!o[xr]){var n=_s(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=Po(t),_e(o),Ts)try{return vr(r,t,o)}catch{}if("get"in o||"set"in o)throw new Ss("Accessors not supported");return"value"in o&&(r[t]=o.value),r}});var Do=a((Ld,Ao)=>{"use strict";var Bs=z(),Ns=wr(),Es=$e();Ao.exports=Bs?function(e,r,t){return Ns.f(e,r,Es(1,t))}:function(e,r,t){return e[r]=t,e}});var Ho=a((Rd,Ro)=>{"use strict";var de=L(),Fs=it(),Cs=We(),Os=K(),Is=Bo().f,Ms=Eo(),Q=Te(),Ps=Oo(),ee=Do(),Lo=le();lr();var qs=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 Fs(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,l=o?de:n?de[t]:de[t]&&de[t].prototype,s=o?Q:Q[t]||ee(Q,t,{})[t],h=s.prototype,x,d,u,f,g,B,_,T,S;for(f in r)x=Ms(o?f:t+(n?".":"#")+f,e.forced),d=!x&&l&&Lo(l,f),B=s[f],d&&(e.dontCallGetSet?(S=Is(l,f),_=S&&S.value):_=l[f]),g=d&&_?_:r[f],!(!x&&!i&&typeof B==typeof g)&&(e.bind&&d?T=Ps(g,de):e.wrap&&d?T=qs(g):i&&Os(g)?T=Cs(g):T=g,(e.sham||g&&g.sham||B&&B.sham)&&ee(T,"sham",!0),ee(s,f,T),i&&(u=t+"Prototype",Lo(Q,u)||ee(Q,u,{}),ee(Q[u],f,g),e.real&&h&&(x||!h[f])&&ee(h,f,g)))}});var Ko=a((Hd,jo)=>{"use strict";var As=Math.ceil,Ds=Math.floor;jo.exports=Math.trunc||function(r){var t=+r;return(t>0?Ds:As)(t)}});var Tr=a((jd,zo)=>{"use strict";var Ls=Ko();zo.exports=function(e){var r=+e;return r!==r||r===0?0:Ls(r)}});var Wo=a((Kd,Uo)=>{"use strict";var Rs=Tr(),Hs=Math.max,js=Math.min;Uo.exports=function(e,r){var t=Rs(e);return t<0?Hs(t+r,0):js(t,r)}});var $o=a((zd,Zo)=>{"use strict";var Ks=Tr(),zs=Math.min;Zo.exports=function(e){var r=Ks(e);return r>0?zs(r,9007199254740991):0}});var Go=a((Ud,Vo)=>{"use strict";var Us=$o();Vo.exports=function(e){return Us(e.length)}});var Jo=a((Wd,Yo)=>{"use strict";var Ws=ie(),Zs=Wo(),$s=Go(),Xo=function(e){return function(r,t,o){var n=Ws(r),i=$s(n);if(i===0)return!e&&-1;var l=Zs(o,i),s;if(e&&t!==t){for(;i>l;)if(s=n[l++],s!==s)return!0}else for(;i>l;l++)if((e||l in n)&&n[l]===t)return e||l||0;return!e&&-1}};Yo.exports={includes:Xo(!0),indexOf:Xo(!1)}});var kr=a((Zd,Qo)=>{"use strict";Qo.exports={}});var tn=a(($d,rn)=>{"use strict";var Vs=j(),Sr=le(),Gs=ie(),Xs=Jo().indexOf,Ys=kr(),en=Vs([].push);rn.exports=function(e,r){var t=Gs(e),o=0,n=[],i;for(i in t)!Sr(Ys,i)&&Sr(t,i)&&en(n,i);for(;r.length>o;)Sr(t,i=r[o++])&&(~Xs(n,i)||en(n,i));return n}});var _r=a((Vd,on)=>{"use strict";on.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var an=a((Gd,nn)=>{"use strict";var Js=tn(),Qs=_r();nn.exports=Object.keys||function(r){return Js(r,Qs)}});var ln=a(sn=>{"use strict";var el=z(),rl=hr(),tl=wr(),ol=Se(),nl=ie(),al=an();sn.f=el&&!rl?Object.defineProperties:function(r,t){ol(r);for(var o=nl(t),n=al(t),i=n.length,l=0,s;i>l;)tl.f(r,s=n[l++],o[s]);return r}});var dn=a((Yd,cn)=>{"use strict";var il=Qe();cn.exports=il("document","documentElement")});var fn=a((Jd,pn)=>{"use strict";var sl=cr(),ll=dr(),un=sl("keys");pn.exports=function(e){return un[e]||(un[e]=ll(e))}});var wn=a((Qd,xn)=>{"use strict";var cl=Se(),dl=ln(),mn=_r(),ul=kr(),pl=dn(),fl=mr(),ml=fn(),bn=">",hn="<",Nr="prototype",Er="script",gn=ml("IE_PROTO"),Br=function(){},yn=function(e){return hn+Er+bn+e+hn+"/"+Er+bn},vn=function(e){e.write(yn("")),e.close();var r=e.parentWindow.Object;return e=null,r},bl=function(){var e=fl("iframe"),r="java"+Er+":",t;return e.style.display="none",pl.appendChild(e),e.src=String(r),t=e.contentWindow.document,t.open(),t.write(yn("document.F=Object")),t.close(),t.F},Be,Ne=function(){try{Be=new ActiveXObject("htmlfile")}catch{}Ne=typeof document<"u"?document.domain&&Be?vn(Be):bl():vn(Be);for(var e=mn.length;e--;)delete Ne[Nr][mn[e]];return Ne()};ul[gn]=!0;xn.exports=Object.create||function(r,t){var o;return r!==null?(Br[Nr]=cl(r),o=new Br,Br[Nr]=null,o[gn]=r):o=Ne(),t===void 0?o:dl.f(o,t)}});var Tn=a(()=>{"use strict";var hl=Ho(),vl=z(),gl=wn();hl({target:"Object",stat:!0,sham:!vl},{create:gl})});var Sn=a((tu,kn)=>{"use strict";Tn();var yl=Te(),xl=yl.Object;kn.exports=function(r,t){return xl.create(r,t)}});var Bn=a((ou,_n)=>{"use strict";var wl=Sn();_n.exports=wl});var En=a((nu,Nn)=>{Nn.exports=Bn()});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 _a=c(C()),te=c(m());var R=c(m());var Yr=c(m()),Jr=(0,Yr.createContext)(new Proxy({},{get(){throw new Error("botframework-webchat: This hook can only used under its corresponding <Provider>.")}}));Jr.displayName="TelephoneKeypad.Context";var ge=Jr;var Aa=(0,R.memo)(({children:e})=>{let[r,t]=(0,R.useState)(!1),o=(0,R.useMemo)(()=>Object.freeze({setShown:t,shown:r}),[t,r]);return R.default.createElement(ge.Provider,{value:o},e)}),je=Aa;var Oe=c(m());var Mn=c(C()),Pn=c(P()),p=c(m());var Fn=c(En()),Ee=c(m());function k(e){var r=(0,Ee.useRef)(),t=(0,Ee.useMemo)(function(){return(0,Fn.default)({},{current:{get:function(){return r.current}}})},[r]);return r.current=e,t}var q=c(m());var Cn={"telephone-keypad__button":"r","telephone-keypad__button__ruby":"e","telephone-keypad__button__text":"o","telephone-keypad--horizontal":"l"};var kl=".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}@media only screen and (hover: none) and (pointer: coarse){.webchat-fluent .C:focus-within{font-size:16px}}.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(kl)),document.head.appendChild(e)}}var On=c(m());function Sl(e){return(0,On.useMemo)(()=>Object.freeze(Object.fromEntries(Object.entries(e).map(([r,t])=>[r,`${r} ${t}`]))),[e])}var v=Sl;var In=(0,q.memo)((0,q.forwardRef)(({button:e,"data-testid":r,onClick:t,ruby:o},n)=>{let i=v(Cn),l=k(t),s=(0,q.useCallback)(()=>l.current?.(),[l]);return q.default.createElement("button",{className:i["telephone-keypad__button"],"data-testid":r,onClick:s,ref:n,type:"button"},q.default.createElement("span",{className:i["telephone-keypad__button__text"]},e==="*"?"\u2217":e),!!o&&q.default.createElement("ruby",{className:i["telephone-keypad__button__ruby"]},o))}));In.displayName="TelephoneKeypad.Button";var E=In;var _l={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=_l;var Ce=c(m());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=c(m());function Nl(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)(Nl);var pe=c(m());function El(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)(El);var fe=c(m());function Fl(e){return fe.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"},fe.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,fe.memo)(Fl);var me=c(m());function Cl(e){return me.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"},me.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,me.memo)(Cl);var be=c(m());function Ol(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 Pr=(0,be.memo)(Ol);var{LocalizedString:Il}=Mn.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 An=(0,p.memo)(({autoFocus:e,className:r,onButtonClick:t,isHorizontal:o})=>{let n=k(e),i=v(Fr),l=(0,p.useRef)(null),s=k(t),[,h]=A(),x=(0,p.useCallback)(()=>s.current?.("1"),[s]),d=(0,p.useCallback)(()=>s.current?.("2"),[s]),u=(0,p.useCallback)(()=>s.current?.("3"),[s]),f=(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]),S=(0,p.useCallback)(()=>s.current?.("9"),[s]),M=(0,p.useCallback)(()=>s.current?.("0"),[s]),V=(0,p.useCallback)(()=>s.current?.("*"),[s]),Y=(0,p.useCallback)(()=>s.current?.("#"),[s]),Le=(0,p.useCallback)(Re=>{Re.key==="Escape"&&h(!1)},[h]);return(0,p.useEffect)(()=>{n.current&&l.current?.focus()},[n,l]),p.default.createElement("div",{className:(0,Pn.default)(i["telephone-keypad"],r),onKeyDown:Le},p.default.createElement(qn,{isHorizontal:o},p.default.createElement(E,{button:"1","data-testid":y.sendBoxTelephoneKeypadButton1,onClick:x,ref:l}),p.default.createElement(E,{button:"2","data-testid":y.sendBoxTelephoneKeypadButton2,onClick:d,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:f,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:S,ruby:"WXYZ"}),p.default.createElement(E,{button:"*","data-testid":y.sendBoxTelephoneKeypadButtonStar,onClick:V}),p.default.createElement(E,{button:"0","data-testid":y.sendBoxTelephoneKeypadButton0,onClick:M,ruby:"+"}),p.default.createElement(E,{button:"#","data-testid":y.sendBoxTelephoneKeypadButtonPound,onClick:Y})),p.default.createElement("div",{className:i["telephone-keypad__info-message"]},p.default.createElement(Ir,null),p.default.createElement(Il,{linkClassName:i["telephone-keypad__info-message-link"],stringIds:"TELEPHONE_KEYPAD_INPUT_MESSAGE"})))});An.displayName="TelephoneKeypad";var Dn=An;var Ln=(0,Oe.memo)(e=>A()[0]?Oe.default.createElement(Dn,{...e}):null);Ln.displayName="TelephoneKeypad.Surrogate";var qr=Ln;var Hn=c(m()),jn=c(P());var Rn={theme:"a"};var Pl="webchat-fluent";function Ie(e){let r=v(Rn);return Hn.default.createElement("div",{className:(0,jn.default)(Pl,r.theme)},e.children)}var Sa=c(C()),re=c(P()),b=c(m());var Un=c(C()),Wn=c(P()),F=c(m());var Kn={"sendbox__attachment-drop-zone":"b","sendbox__attachment-drop-zone--droppable":"u","sendbox__attachment-drop-zone-icon":"h"};var{useLocalizer:Al}=Un.hooks,Dl=e=>{e.preventDefault()},zn=e=>!!e.dataTransfer?.types?.some(r=>r.toLowerCase()==="files");function Ll(e,r){let t=e.parentNode;for(;t;){if(t===r)return!0;t=t.parentNode}return!1}var Zn=e=>{let[r,t]=(0,F.useState)(!1),o=v(Kn),n=(0,F.useRef)(null),i=Al(),l=k(e.onFilesAdded);(0,F.useEffect)(()=>{let h=0,x=u=>{h++,zn(u)&&t(n.current&&(u.target===n.current||u.target instanceof HTMLElement&&Ll(u.target,n.current))?"droppable":"visible")},d=()=>--h<=0&&t(!1);return document.addEventListener("dragenter",x,!1),document.addEventListener("dragleave",d,!1),()=>{document.removeEventListener("dragenter",x),document.removeEventListener("dragleave",d)}},[t]);let s=(0,F.useCallback)(h=>{h.preventDefault(),t(!1),zn(h.nativeEvent)&&l.current([...h.dataTransfer.files])},[l,t]);return r?F.default.createElement("div",{className:(0,Wn.default)(o["sendbox__attachment-drop-zone"],{[o["sendbox__attachment-drop-zone--droppable"]]:r==="droppable"}),"data-testid":y.sendBoxDropZone,onDragOver:Dl,onDrop:s,ref:n},F.default.createElement(Cr,{className:o["sendbox__attachment-drop-zone-icon"]}),i("TEXT_INPUT_DROP_ZONE")):null};Zn.displayName="DropZone";var Ar=(0,F.memo)(Zn);var ra=c(C()),ta=c(P()),D=c(m());var Jn=c(C()),Qn=c(P()),W=c(m());var $n={"suggested-action":"s","suggested-action__image":"g"};var U=c(m()),Hl=e=>e.preventDefault(),jl=(0,U.forwardRef)(({"aria-hidden":e,children:r,disabled:t,onClick:o,tabIndex:n,...i},l)=>{let s=(0,U.useRef)(null);return U.default.createElement("button",{"aria-disabled":t?"true":"false","aria-hidden":e,onClick:t?Hl:o,ref:l||s,tabIndex:n,...t&&{"aria-disabled":"true",tabIndex:-1},...i,type:"button"},r)}),Vn=(0,U.memo)(jl);var w=c(m()),Gn=(0,w.createContext)({itemEffector:()=>{throw new Error("botframework-webchat-fluent-theme rovingFocus: no provider for RovingFocusContext.")}});function Kl(e){let r=(0,w.useRef)(0),t=(0,w.useRef)([]),o=(0,w.useCallback)(({current:d},u)=>d&&(d.tabIndex=r.current===u?0:-1),[r]),n=(0,w.useCallback)(d=>{let u;typeof d=="number"?u=d:u=d(r.current),u&&!t.current.at(u)?.current&&(u=0),r.current!==u&&(r.current=u,t.current.forEach((f,g)=>o(f,g)),t.current.at(u)?.current?.focus())},[o,t,r]),i=(0,w.useCallback)(d=>{let{target:u}=d,f=t.current.findIndex(({current:g})=>g===u);f!==-1&&n(f)},[t,n]),l=(0,w.useCallback)(d=>u=>{let f=!e.direction,g=/up|down/iu.test(d)&&e.direction==="vertical",B=/left|right/iu.test(d)&&e.direction==="horizontal",_=/right|down/iu.test(d),T=f||g||B?_?1:-1:0,S=t.current.map((V,Y)=>Y),M=S.indexOf(u)+T;return S.at(M)??0},[e.direction]),s=(0,w.useCallback)(d=>{let{key:u}=d;switch(u){case"Up":case"ArrowUp":case"Left":case"ArrowLeft":case"Down":case"ArrowDown":case"Right":case"ArrowRight":n(l(u));break;case"Home":n(0);break;case"End":n(-1);break;case"Escape":e.onEscapeKey?.();break;default:return}d.preventDefault(),d.stopPropagation()},[n,l,e]),h=(0,w.useCallback)((d,u)=>{let{current:f}=d;return t.current[Number(u)]=d,f.addEventListener("focus",i),f.addEventListener("keydown",s),o(d,u),()=>{f.removeEventListener("focus",i),f.removeEventListener("keydown",s),delete t.current[Number(u)]}},[i,s,o,t]),x=(0,w.useMemo)(()=>({itemEffector:h}),[h]);return w.default.createElement(Gn.Provider,{value:x},e.children)}function Xn(e){let r=(0,w.useRef)(null),{itemEffector:t}=(0,w.useContext)(Gn);return(0,w.useEffect)(()=>t(r,e)),r}var Yn=(0,w.memo)(Kl);var{useDisabled:zl,useFocus:Ul,usePerformCardAction:Wl,useScrollToEnd:Zl,useStyleSet:$l,useSuggestedActions:Vl}=Jn.hooks;function Gl({buttonText:e,className:r,displayText:t,image:o,imageAlt:n,itemIndex:i,text:l,type:s,value:h}){let[x,d]=Vl(),[{suggestedAction:u}]=$l(),[f]=zl(),g=Ul(),B=Xn(i),_=Wl(),T=v($n),S=Zl(),M=(0,W.useCallback)(({target:V})=>{(async function(){await g("sendBoxWithoutKeyboard"),_({displayText:t,text:l,type:s,value:h},{target:V}),s==="openUrl"&&d([]),S()})()},[t,g,_,S,d,l,s,h]);return W.default.createElement(Vn,{className:(0,Qn.default)(T["suggested-action"],u+"",(r||"")+""),disabled:f,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 ea=(0,W.memo)(Gl);function Dr(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 Lr={"suggested-actions":"p","suggested-actions--flow":"w","suggested-actions--stacked":"v"};var{useFocus:Yl,useLocalizer:Jl,useStyleOptions:Ql,useStyleSet:ec,useSuggestedActions:rc}=ra.hooks;function tc(e){let[{suggestedActionLayout:r}]=Ql(),[{suggestedActions:t}]=ec(),o=v(Lr);return D.default.createElement("div",{"aria-label":e["aria-label"],"aria-live":"polite","aria-orientation":"vertical",className:(0,ta.default)(o["suggested-actions"],t+"",{[o["suggested-actions--flow"]]:r==="flow",[o["suggested-actions--stacked"]]:r!=="flow"},e.className),role:"toolbar"},!!e.children&&!!D.default.Children.count(e.children)&&e.children)}function oc(){let e=v(Lr),r=Jl(),[t]=rc(),o=Yl(),n=(0,D.useCallback)(()=>{o("sendBox")},[o]),i=t.map((l,s)=>{let{displayText:h,image:x,imageAltText:d,text:u,type:f,value:g}=l;return t?.length?D.default.createElement(ea,{buttonText:Dr(l),displayText:h,image:x,imageAlt:x&&(d||u),itemIndex:s,key:s,text:u,type:f,value:g}):null});return D.default.createElement(Yn,{onEscapeKey:n},D.default.createElement(tc,{"aria-label":r("SUGGESTED_ACTIONS_LABEL_ALT"),className:e["suggested-actions"]},i))}var Rr=(0,D.memo)(oc);var na=c(C()),O=c(m());var Pe=c(P()),Z=c(m());var Me={sendbox__toolbar:"f","sendbox__toolbar-button":"x","sendbox__toolbar-button--selected":"k","sendbox__toolbar-separator":"m"};var ac=e=>e.preventDefault(),G=(0,Z.memo)(e=>{let r=v(Me);return Z.default.createElement("button",{"aria-label":e["aria-label"],className:(0,Pe.default)(r["sendbox__toolbar-button"],e.className,{[r["sendbox__toolbar-button--selected"]]:e.selected}),"data-testid":e["data-testid"],onClick:e.disabled?ac: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,Pe.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,Pe.default)(r["sendbox__toolbar-separator"],e.className),role:"separator"})});jr.displayName="ToolbarSeparator";var oa={"sendbox__add-attachment":"B","sendbox__add-attachment-input":"F"};var{useLocalizer:sc,useStyleOptions:lc}=na.hooks;function cc(e){let r=(0,O.useRef)(null),t=v(oa),o=sc(),[{uploadAccept:n,uploadMultiple:i}]=lc(),l=k(e.onFilesAdded),s=(0,O.useCallback)(()=>r.current?.click(),[r]),h=(0,O.useCallback)(({target:{files:x}})=>{x&&(l.current?.([...x]),r.current&&(r.current.value=""))},[r,l]);return O.default.createElement("div",{className:t["sendbox__add-attachment"]},O.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"}),O.default.createElement(G,{"aria-label":o("TEXT_INPUT_UPLOAD_BUTTON_ALT"),"data-testid":y.sendBoxUploadButton,onClick:s},O.default.createElement(Or,null)))}var aa=(0,O.memo)(cc);var sa=c(C()),qe=c(m()),la=c(P());var ia={sendbox__attachment:"y"};var{useLocalizer:uc}=sa.hooks,pc={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 fc({attachments:e,className:r}){let t=v(ia),o=uc({plural:!0});return e.length?qe.default.createElement("div",{className:(0,la.default)(t.sendbox__attachment,r)},o(pc,e.length)):null}var ca=(0,qe.memo)(fc);var Ae=c(m());var da={"sendbox__error-message":"N"};function bc(e){let r=v(da);return Ae.default.createElement("span",{className:r["sendbox__error-message"],id:e.id,role:"alert"},e.error)}var ua=(0,Ae.memo)(bc);var X=c(m()),pa=c(C());var{useLocalizer:hc}=pa.hooks,fa=(0,X.memo)(()=>{let[e,r]=A(),t=hc(),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(Pr,null))});fa.displayName="SendBox.TelephoneKeypadToolbarButton";var ma=fa;var De=c(P()),$=c(m());var ba={"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 ha=(0,$.forwardRef)((e,r)=>{let t=v(ba),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,De.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,De.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,De.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}))});ha.displayName="TextArea";var va=ha;var ga=c(C()),Kr=c(m());var{useConnectivityStatus:gc,useLocalizer:yc}=ga.hooks,xc=({attachments:e,message:r})=>{let[t]=gc(),o=yc(),n=k(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])},ya=xc;var xa=c(m());function zr(e){let r=(0,xa.useMemo)(()=>Math.random().toString(36).substr(2,5),[]);return e=e?`${e}--`:"",`${e}${r}`}var wa={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 Ta=c(m()),ka=c(C()),{useScrollDown:Tc,useScrollUp:kc}=ka.hooks;function Ur(){let e=Tc(),r=kc();return(0,Ta.useCallback)(t=>{if(t.target instanceof HTMLTextAreaElement&&t.target.value)return;let{ctrlKey:o,metaKey:n,shiftKey:i}=t;if(o||n||i)return;let l=!0;switch(t.key){case"End":e({displacement:1/0});break;case"Home":r({displacement:1/0});break;case"PageDown":e();break;case"PageUp":r();break;default:l=!1;break}l&&(t.preventDefault(),t.stopPropagation())},[e,r])}var{useFocus:Sc,useLocalizer:_c,useMakeThumbnail:Bc,useRegisterFocusSendBox:Nc,useSendBoxAttachments:Ec,useSendMessage:Fc,useStyleOptions:Cc}=Sa.hooks;function Oc(e){let r=(0,b.useRef)(null),[t,o]=(0,b.useState)(""),[n,i]=Ec(),[{hideTelephoneKeypadButton:l,hideUploadButton:s,maxMessageLength:h}]=Cc(),x=!!h&&t.length>h,d=v(wa),u=_c(),f=Fc(),g=Bc(),B=zr("sendbox__error-message-id"),[_,T]=ya({message:t,attachments:n}),[S]=A(),M=Sc();Nc((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=k(n),Y=k(t),Le=(0,b.useCallback)(N=>{"tabIndex"in N.target&&typeof N.target.tabIndex=="number"&&N.target.tabIndex>=0||M("sendBox")},[M]),Re=(0,b.useCallback)(N=>o(N.currentTarget.value),[o]),$r=(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]),Ba=(0,b.useCallback)(N=>{N.preventDefault(),_.current!=="empty"&&!x&&(f(Y.current,void 0,{attachments:V.current}),o(""),i([])),M("sendBox")},[V,Y,f,i,o,x,_,M]),Na=(0,b.useCallback)(N=>f(`/DTMFKey ${N}`),[f]),Ea=Ur(),Fa={"aria-invalid":"false",...T&&{"aria-invalid":"true","aria-errormessage":B}};return b.default.createElement("form",{...Fa,className:(0,re.default)(d.sendbox,e.className),onSubmit:Ba},b.default.createElement(Rr,null),b.default.createElement("div",{className:(0,re.default)(d.sendbox__sendbox),onClickCapture:Le,onKeyDown:Ea},b.default.createElement(va,{"aria-label":u(x?"TEXT_INPUT_LENGTH_EXCEEDED_ALT":"TEXT_INPUT_ALT"),className:(0,re.default)(d["sendbox__sendbox-text"],d["sendbox__text-area--in-grid"]),"data-testid":y.sendBoxTextBox,hidden:S,onInput:Re,placeholder:e.placeholder??u("TEXT_INPUT_PLACEHOLDER"),ref:r,value:t}),b.default.createElement(qr,{autoFocus:!0,className:d["sendbox__telephone-keypad--in-grid"],isHorizontal:!1,onButtonClick:Na}),b.default.createElement(ca,{attachments:n,className:d["sendbox__attachment--in-grid"]}),b.default.createElement("div",{className:(0,re.default)(d["sendbox__sendbox-controls"],d["sendbox__sendbox-controls--in-grid"])},!S&&h&&b.default.createElement("div",{className:(0,re.default)(d["sendbox__text-counter"],{[d["sendbox__text-counter--error"]]:x})},`${t.length}/${h}`),b.default.createElement(Hr,null,!l&&b.default.createElement(ma,null),!s&&b.default.createElement(aa,{onFilesAdded:$r}),b.default.createElement(jr,null),b.default.createElement(G,{"aria-label":u("TEXT_INPUT_SEND_BUTTON_ALT"),"data-testid":y.sendBoxSendButton,disabled:x||S,type:"submit"},b.default.createElement(Mr,null)))),b.default.createElement(Ar,{onFilesAdded:$r}),b.default.createElement(ua,{error:T,id:B})))}var Wr=(0,b.memo)(Oc);var{ThemeProvider:Ic}=_a.Components,Mc=[()=>()=>()=>Wr],Pc=({children:e})=>te.default.createElement(Ie,null,te.default.createElement(je,null,te.default.createElement(Ic,{sendBoxMiddleware:Mc},e))),Zr=(0,te.memo)(Pc);ve("botframework-webchat:fluent-theme","version=4.17.1-main.20240625.336dd7c; build-tool=tsup; module-format=esmodules");Fe();globalThis.WebChat={...globalThis.WebChat,FluentThemeProvider:Zr,testIds:{...globalThis.WebChat?.testIds,...y}};})();
|
|
1
|
+
"use strict";(()=>{var Ca=Object.create;var Vr=Object.defineProperty;var Oa=Object.getOwnPropertyDescriptor;var Ia=Object.getOwnPropertyNames;var Ma=Object.getPrototypeOf,Pa=Object.prototype.hasOwnProperty;var a=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var qa=(e,r,t,o)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of Ia(r))!Pa.call(e,n)&&n!==t&&Vr(e,n,{get:()=>r[n],enumerable:!(o=Oa(r,n))||o.enumerable});return e};var c=(e,r,t)=>(t=e!=null?Ca(Ma(e)):{},qa(r||!e||!e.__esModule?Vr(t,"default",{value:e,enumerable:!0}):t,e));var C=a((Hc,Gr)=>{Gr.exports={Components:globalThis.WebChat.Components,hooks:globalThis.WebChat.hooks}});var m=a((jc,Xr)=>{Xr.exports=globalThis.React});var P=a((Wc,ye)=>{(function(){"use strict";var e={}.hasOwnProperty;function r(){for(var n="",i=0;i<arguments.length;i++){var l=arguments[i];l&&(n=o(n,t(l)))}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 l in n)e.call(n,l)&&n[l]&&(i=o(i,l));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 L=a((Ke,Qr)=>{"use strict";var ne=function(e){return e&&e.Math===Math&&e};Qr.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((Zc,et)=>{"use strict";et.exports=function(e){try{return!!e()}catch{return!0}}});var ae=a(($c,rt)=>{"use strict";var Da=H();rt.exports=!Da(function(){var e=(function(){}).bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var it=a((Vc,at)=>{"use strict";var La=ae(),nt=Function.prototype,tt=nt.apply,ot=nt.call;at.exports=typeof Reflect=="object"&&Reflect.apply||(La?ot.bind(tt):function(){return ot.apply(tt,arguments)})});var j=a((Gc,ct)=>{"use strict";var st=ae(),lt=Function.prototype,ze=lt.call,Ra=st&<.bind.bind(ze,ze);ct.exports=st?Ra:function(e){return function(){return ze.apply(e,arguments)}}});var Ue=a((Xc,ut)=>{"use strict";var dt=j(),Ha=dt({}.toString),ja=dt("".slice);ut.exports=function(e){return ja(Ha(e),8,-1)}});var We=a((Yc,pt)=>{"use strict";var Ka=Ue(),za=j();pt.exports=function(e){if(Ka(e)==="Function")return za(e)}});var K=a((Jc,ft)=>{"use strict";var Ze=typeof document=="object"&&document.all;ft.exports=typeof Ze>"u"&&Ze!==void 0?function(e){return typeof e=="function"||e===Ze}:function(e){return typeof e=="function"}});var z=a((Qc,mt)=>{"use strict";var Ua=H();mt.exports=!Ua(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var we=a((ed,bt)=>{"use strict";var Wa=ae(),xe=Function.prototype.call;bt.exports=Wa?xe.bind(xe):function(){return xe.apply(xe,arguments)}});var yt=a(gt=>{"use strict";var ht={}.propertyIsEnumerable,vt=Object.getOwnPropertyDescriptor,Za=vt&&!ht.call({1:2},1);gt.f=Za?function(r){var t=vt(this,r);return!!t&&t.enumerable}:ht});var $e=a((td,xt)=>{"use strict";xt.exports=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}}});var Tt=a((od,wt)=>{"use strict";var $a=j(),Va=H(),Ga=Ue(),Ve=Object,Xa=$a("".split);wt.exports=Va(function(){return!Ve("z").propertyIsEnumerable(0)})?function(e){return Ga(e)==="String"?Xa(e,""):Ve(e)}:Ve});var Ge=a((nd,kt)=>{"use strict";kt.exports=function(e){return e==null}});var Xe=a((ad,St)=>{"use strict";var Ya=Ge(),Ja=TypeError;St.exports=function(e){if(Ya(e))throw new Ja("Can't call method on "+e);return e}});var ie=a((id,_t)=>{"use strict";var Qa=Tt(),ei=Xe();_t.exports=function(e){return Qa(ei(e))}});var se=a((sd,Bt)=>{"use strict";var ri=K();Bt.exports=function(e){return typeof e=="object"?e!==null:ri(e)}});var Te=a((ld,Nt)=>{"use strict";Nt.exports={}});var Qe=a((cd,Ft)=>{"use strict";var Ye=Te(),Je=L(),ti=K(),Et=function(e){return ti(e)?e:void 0};Ft.exports=function(e,r){return arguments.length<2?Et(Ye[e])||Et(Je[e]):Ye[e]&&Ye[e][r]||Je[e]&&Je[e][r]}});var Ot=a((dd,Ct)=>{"use strict";var oi=j();Ct.exports=oi({}.isPrototypeOf)});var Mt=a((ud,It)=>{"use strict";It.exports=typeof navigator<"u"&&String(navigator.userAgent)||""});var Ht=a((pd,Rt)=>{"use strict";var Lt=L(),er=Mt(),Pt=Lt.process,qt=Lt.Deno,At=Pt&&Pt.versions||qt&&qt.version,Dt=At&&At.v8,I,ke;Dt&&(I=Dt.split("."),ke=I[0]>0&&I[0]<4?1:+(I[0]+I[1]));!ke&&er&&(I=er.match(/Edge\/(\d+)/),(!I||I[1]>=74)&&(I=er.match(/Chrome\/(\d+)/),I&&(ke=+I[1])));Rt.exports=ke});var rr=a((fd,Kt)=>{"use strict";var jt=Ht(),ni=H(),ai=L(),ii=ai.String;Kt.exports=!!Object.getOwnPropertySymbols&&!ni(function(){var e=Symbol("symbol detection");return!ii(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&jt&&jt<41})});var tr=a((md,zt)=>{"use strict";var si=rr();zt.exports=si&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var or=a((bd,Ut)=>{"use strict";var li=Qe(),ci=K(),di=Ot(),ui=tr(),pi=Object;Ut.exports=ui?function(e){return typeof e=="symbol"}:function(e){var r=li("Symbol");return ci(r)&&di(r.prototype,pi(e))}});var Zt=a((hd,Wt)=>{"use strict";var fi=String;Wt.exports=function(e){try{return fi(e)}catch{return"Object"}}});var nr=a((vd,$t)=>{"use strict";var mi=K(),bi=Zt(),hi=TypeError;$t.exports=function(e){if(mi(e))return e;throw new hi(bi(e)+" is not a function")}});var Gt=a((gd,Vt)=>{"use strict";var vi=nr(),gi=Ge();Vt.exports=function(e,r){var t=e[r];return gi(t)?void 0:vi(t)}});var Yt=a((yd,Xt)=>{"use strict";var ar=we(),ir=K(),sr=se(),yi=TypeError;Xt.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 yi("Can't convert object to primitive value")}});var Qt=a((xd,Jt)=>{"use strict";Jt.exports=!0});var to=a((wd,ro)=>{"use strict";var eo=L(),xi=Object.defineProperty;ro.exports=function(e,r){try{xi(eo,e,{value:r,configurable:!0,writable:!0})}catch{eo[e]=r}return r}});var lr=a((Td,ao)=>{"use strict";var wi=Qt(),Ti=L(),ki=to(),oo="__core-js_shared__",no=ao.exports=Ti[oo]||ki(oo,{});(no.versions||(no.versions=[])).push({version:"3.36.1",mode:wi?"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 cr=a((kd,so)=>{"use strict";var io=lr();so.exports=function(e,r){return io[e]||(io[e]=r||{})}});var co=a((Sd,lo)=>{"use strict";var Si=Xe(),_i=Object;lo.exports=function(e){return _i(Si(e))}});var le=a((_d,uo)=>{"use strict";var Bi=j(),Ni=co(),Ei=Bi({}.hasOwnProperty);uo.exports=Object.hasOwn||function(r,t){return Ei(Ni(r),t)}});var dr=a((Bd,po)=>{"use strict";var Fi=j(),Ci=0,Oi=Math.random(),Ii=Fi(1 .toString);po.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Ii(++Ci+Oi,36)}});var bo=a((Nd,mo)=>{"use strict";var Mi=L(),Pi=cr(),fo=le(),qi=dr(),Ai=rr(),Di=tr(),J=Mi.Symbol,ur=Pi("wks"),Li=Di?J.for||J:J&&J.withoutSetter||qi;mo.exports=function(e){return fo(ur,e)||(ur[e]=Ai&&fo(J,e)?J[e]:Li("Symbol."+e)),ur[e]}});var yo=a((Ed,go)=>{"use strict";var Ri=we(),ho=se(),vo=or(),Hi=Gt(),ji=Yt(),Ki=bo(),zi=TypeError,Ui=Ki("toPrimitive");go.exports=function(e,r){if(!ho(e)||vo(e))return e;var t=Hi(e,Ui),o;if(t){if(r===void 0&&(r="default"),o=Ri(t,e,r),!ho(o)||vo(o))return o;throw new zi("Can't convert object to primitive value")}return r===void 0&&(r="number"),ji(e,r)}});var pr=a((Fd,xo)=>{"use strict";var Wi=yo(),Zi=or();xo.exports=function(e){var r=Wi(e,"string");return Zi(r)?r:r+""}});var mr=a((Cd,To)=>{"use strict";var $i=L(),wo=se(),fr=$i.document,Vi=wo(fr)&&wo(fr.createElement);To.exports=function(e){return Vi?fr.createElement(e):{}}});var br=a((Od,ko)=>{"use strict";var Gi=z(),Xi=H(),Yi=mr();ko.exports=!Gi&&!Xi(function(){return Object.defineProperty(Yi("div"),"a",{get:function(){return 7}}).a!==7})});var Bo=a(_o=>{"use strict";var Ji=z(),Qi=we(),es=yt(),rs=$e(),ts=ie(),os=pr(),ns=le(),as=br(),So=Object.getOwnPropertyDescriptor;_o.f=Ji?So:function(r,t){if(r=ts(r),t=os(t),as)try{return So(r,t)}catch{}if(ns(r,t))return rs(!Qi(es.f,r,t),r[t])}});var Eo=a((Md,No)=>{"use strict";var is=H(),ss=K(),ls=/#|\.prototype\./,ce=function(e,r){var t=ds[cs(e)];return t===ps?!0:t===us?!1:ss(r)?is(r):!!r},cs=ce.normalize=function(e){return String(e).replace(ls,".").toLowerCase()},ds=ce.data={},us=ce.NATIVE="N",ps=ce.POLYFILL="P";No.exports=ce});var Oo=a((Pd,Co)=>{"use strict";var Fo=We(),fs=nr(),ms=ae(),bs=Fo(Fo.bind);Co.exports=function(e,r){return fs(e),r===void 0?e:ms?bs(e,r):function(){return e.apply(r,arguments)}}});var hr=a((qd,Io)=>{"use strict";var hs=z(),vs=H();Io.exports=hs&&vs(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var Se=a((Ad,Mo)=>{"use strict";var gs=se(),ys=String,xs=TypeError;Mo.exports=function(e){if(gs(e))return e;throw new xs(ys(e)+" is not an object")}});var wr=a(qo=>{"use strict";var ws=z(),Ts=br(),ks=hr(),_e=Se(),Po=pr(),Ss=TypeError,vr=Object.defineProperty,_s=Object.getOwnPropertyDescriptor,gr="enumerable",yr="configurable",xr="writable";qo.f=ws?ks?function(r,t,o){if(_e(r),t=Po(t),_e(o),typeof r=="function"&&t==="prototype"&&"value"in o&&xr in o&&!o[xr]){var n=_s(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=Po(t),_e(o),Ts)try{return vr(r,t,o)}catch{}if("get"in o||"set"in o)throw new Ss("Accessors not supported");return"value"in o&&(r[t]=o.value),r}});var Do=a((Ld,Ao)=>{"use strict";var Bs=z(),Ns=wr(),Es=$e();Ao.exports=Bs?function(e,r,t){return Ns.f(e,r,Es(1,t))}:function(e,r,t){return e[r]=t,e}});var Ho=a((Rd,Ro)=>{"use strict";var de=L(),Fs=it(),Cs=We(),Os=K(),Is=Bo().f,Ms=Eo(),Q=Te(),Ps=Oo(),ee=Do(),Lo=le();lr();var qs=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 Fs(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,l=o?de:n?de[t]:de[t]&&de[t].prototype,s=o?Q:Q[t]||ee(Q,t,{})[t],h=s.prototype,x,d,u,f,g,B,_,T,S;for(f in r)x=Ms(o?f:t+(n?".":"#")+f,e.forced),d=!x&&l&&Lo(l,f),B=s[f],d&&(e.dontCallGetSet?(S=Is(l,f),_=S&&S.value):_=l[f]),g=d&&_?_:r[f],!(!x&&!i&&typeof B==typeof g)&&(e.bind&&d?T=Ps(g,de):e.wrap&&d?T=qs(g):i&&Os(g)?T=Cs(g):T=g,(e.sham||g&&g.sham||B&&B.sham)&&ee(T,"sham",!0),ee(s,f,T),i&&(u=t+"Prototype",Lo(Q,u)||ee(Q,u,{}),ee(Q[u],f,g),e.real&&h&&(x||!h[f])&&ee(h,f,g)))}});var Ko=a((Hd,jo)=>{"use strict";var As=Math.ceil,Ds=Math.floor;jo.exports=Math.trunc||function(r){var t=+r;return(t>0?Ds:As)(t)}});var Tr=a((jd,zo)=>{"use strict";var Ls=Ko();zo.exports=function(e){var r=+e;return r!==r||r===0?0:Ls(r)}});var Wo=a((Kd,Uo)=>{"use strict";var Rs=Tr(),Hs=Math.max,js=Math.min;Uo.exports=function(e,r){var t=Rs(e);return t<0?Hs(t+r,0):js(t,r)}});var $o=a((zd,Zo)=>{"use strict";var Ks=Tr(),zs=Math.min;Zo.exports=function(e){var r=Ks(e);return r>0?zs(r,9007199254740991):0}});var Go=a((Ud,Vo)=>{"use strict";var Us=$o();Vo.exports=function(e){return Us(e.length)}});var Jo=a((Wd,Yo)=>{"use strict";var Ws=ie(),Zs=Wo(),$s=Go(),Xo=function(e){return function(r,t,o){var n=Ws(r),i=$s(n);if(i===0)return!e&&-1;var l=Zs(o,i),s;if(e&&t!==t){for(;i>l;)if(s=n[l++],s!==s)return!0}else for(;i>l;l++)if((e||l in n)&&n[l]===t)return e||l||0;return!e&&-1}};Yo.exports={includes:Xo(!0),indexOf:Xo(!1)}});var kr=a((Zd,Qo)=>{"use strict";Qo.exports={}});var tn=a(($d,rn)=>{"use strict";var Vs=j(),Sr=le(),Gs=ie(),Xs=Jo().indexOf,Ys=kr(),en=Vs([].push);rn.exports=function(e,r){var t=Gs(e),o=0,n=[],i;for(i in t)!Sr(Ys,i)&&Sr(t,i)&&en(n,i);for(;r.length>o;)Sr(t,i=r[o++])&&(~Xs(n,i)||en(n,i));return n}});var _r=a((Vd,on)=>{"use strict";on.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var an=a((Gd,nn)=>{"use strict";var Js=tn(),Qs=_r();nn.exports=Object.keys||function(r){return Js(r,Qs)}});var ln=a(sn=>{"use strict";var el=z(),rl=hr(),tl=wr(),ol=Se(),nl=ie(),al=an();sn.f=el&&!rl?Object.defineProperties:function(r,t){ol(r);for(var o=nl(t),n=al(t),i=n.length,l=0,s;i>l;)tl.f(r,s=n[l++],o[s]);return r}});var dn=a((Yd,cn)=>{"use strict";var il=Qe();cn.exports=il("document","documentElement")});var fn=a((Jd,pn)=>{"use strict";var sl=cr(),ll=dr(),un=sl("keys");pn.exports=function(e){return un[e]||(un[e]=ll(e))}});var wn=a((Qd,xn)=>{"use strict";var cl=Se(),dl=ln(),mn=_r(),ul=kr(),pl=dn(),fl=mr(),ml=fn(),bn=">",hn="<",Nr="prototype",Er="script",gn=ml("IE_PROTO"),Br=function(){},yn=function(e){return hn+Er+bn+e+hn+"/"+Er+bn},vn=function(e){e.write(yn("")),e.close();var r=e.parentWindow.Object;return e=null,r},bl=function(){var e=fl("iframe"),r="java"+Er+":",t;return e.style.display="none",pl.appendChild(e),e.src=String(r),t=e.contentWindow.document,t.open(),t.write(yn("document.F=Object")),t.close(),t.F},Be,Ne=function(){try{Be=new ActiveXObject("htmlfile")}catch{}Ne=typeof document<"u"?document.domain&&Be?vn(Be):bl():vn(Be);for(var e=mn.length;e--;)delete Ne[Nr][mn[e]];return Ne()};ul[gn]=!0;xn.exports=Object.create||function(r,t){var o;return r!==null?(Br[Nr]=cl(r),o=new Br,Br[Nr]=null,o[gn]=r):o=Ne(),t===void 0?o:dl.f(o,t)}});var Tn=a(()=>{"use strict";var hl=Ho(),vl=z(),gl=wn();hl({target:"Object",stat:!0,sham:!vl},{create:gl})});var Sn=a((tu,kn)=>{"use strict";Tn();var yl=Te(),xl=yl.Object;kn.exports=function(r,t){return xl.create(r,t)}});var Bn=a((ou,_n)=>{"use strict";var wl=Sn();_n.exports=wl});var En=a((nu,Nn)=>{Nn.exports=Bn()});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 _a=c(C()),te=c(m());var R=c(m());var Yr=c(m()),Jr=(0,Yr.createContext)(new Proxy({},{get(){throw new Error("botframework-webchat: This hook can only used under its corresponding <Provider>.")}}));Jr.displayName="TelephoneKeypad.Context";var ge=Jr;var Aa=(0,R.memo)(({children:e})=>{let[r,t]=(0,R.useState)(!1),o=(0,R.useMemo)(()=>Object.freeze({setShown:t,shown:r}),[t,r]);return R.default.createElement(ge.Provider,{value:o},e)}),je=Aa;var Oe=c(m());var Mn=c(C()),Pn=c(P()),p=c(m());var Fn=c(En()),Ee=c(m());function k(e){var r=(0,Ee.useRef)(),t=(0,Ee.useMemo)(function(){return(0,Fn.default)({},{current:{get:function(){return r.current}}})},[r]);return r.current=e,t}var q=c(m());var Cn={"telephone-keypad__button":"r","telephone-keypad__button__ruby":"e","telephone-keypad__button__text":"o","telephone-keypad--horizontal":"l"};var kl=".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}@media only screen and (hover: none) and (pointer: coarse){.webchat-fluent .C:focus-within{font-size:16px}}.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(kl)),document.head.appendChild(e)}}var On=c(m());function Sl(e){return(0,On.useMemo)(()=>Object.freeze(Object.fromEntries(Object.entries(e).map(([r,t])=>[r,`${r} ${t}`]))),[e])}var v=Sl;var In=(0,q.memo)((0,q.forwardRef)(({button:e,"data-testid":r,onClick:t,ruby:o},n)=>{let i=v(Cn),l=k(t),s=(0,q.useCallback)(()=>l.current?.(),[l]);return q.default.createElement("button",{className:i["telephone-keypad__button"],"data-testid":r,onClick:s,ref:n,type:"button"},q.default.createElement("span",{className:i["telephone-keypad__button__text"]},e==="*"?"\u2217":e),!!o&&q.default.createElement("ruby",{className:i["telephone-keypad__button__ruby"]},o))}));In.displayName="TelephoneKeypad.Button";var E=In;var _l={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=_l;var Ce=c(m());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=c(m());function Nl(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)(Nl);var pe=c(m());function El(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)(El);var fe=c(m());function Fl(e){return fe.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"},fe.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,fe.memo)(Fl);var me=c(m());function Cl(e){return me.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"},me.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,me.memo)(Cl);var be=c(m());function Ol(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 Pr=(0,be.memo)(Ol);var{LocalizedString:Il}=Mn.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 An=(0,p.memo)(({autoFocus:e,className:r,onButtonClick:t,isHorizontal:o})=>{let n=k(e),i=v(Fr),l=(0,p.useRef)(null),s=k(t),[,h]=A(),x=(0,p.useCallback)(()=>s.current?.("1"),[s]),d=(0,p.useCallback)(()=>s.current?.("2"),[s]),u=(0,p.useCallback)(()=>s.current?.("3"),[s]),f=(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]),S=(0,p.useCallback)(()=>s.current?.("9"),[s]),M=(0,p.useCallback)(()=>s.current?.("0"),[s]),V=(0,p.useCallback)(()=>s.current?.("*"),[s]),Y=(0,p.useCallback)(()=>s.current?.("#"),[s]),Le=(0,p.useCallback)(Re=>{Re.key==="Escape"&&h(!1)},[h]);return(0,p.useEffect)(()=>{n.current&&l.current?.focus()},[n,l]),p.default.createElement("div",{className:(0,Pn.default)(i["telephone-keypad"],r),onKeyDown:Le},p.default.createElement(qn,{isHorizontal:o},p.default.createElement(E,{button:"1","data-testid":y.sendBoxTelephoneKeypadButton1,onClick:x,ref:l}),p.default.createElement(E,{button:"2","data-testid":y.sendBoxTelephoneKeypadButton2,onClick:d,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:f,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:S,ruby:"WXYZ"}),p.default.createElement(E,{button:"*","data-testid":y.sendBoxTelephoneKeypadButtonStar,onClick:V}),p.default.createElement(E,{button:"0","data-testid":y.sendBoxTelephoneKeypadButton0,onClick:M,ruby:"+"}),p.default.createElement(E,{button:"#","data-testid":y.sendBoxTelephoneKeypadButtonPound,onClick:Y})),p.default.createElement("div",{className:i["telephone-keypad__info-message"]},p.default.createElement(Ir,null),p.default.createElement(Il,{linkClassName:i["telephone-keypad__info-message-link"],stringIds:"TELEPHONE_KEYPAD_INPUT_MESSAGE"})))});An.displayName="TelephoneKeypad";var Dn=An;var Ln=(0,Oe.memo)(e=>A()[0]?Oe.default.createElement(Dn,{...e}):null);Ln.displayName="TelephoneKeypad.Surrogate";var qr=Ln;var Hn=c(m()),jn=c(P());var Rn={theme:"a"};var Pl="webchat-fluent";function Ie(e){let r=v(Rn);return Hn.default.createElement("div",{className:(0,jn.default)(Pl,r.theme)},e.children)}var Sa=c(C()),re=c(P()),b=c(m());var Un=c(C()),Wn=c(P()),F=c(m());var Kn={"sendbox__attachment-drop-zone":"b","sendbox__attachment-drop-zone--droppable":"u","sendbox__attachment-drop-zone-icon":"h"};var{useLocalizer:Al}=Un.hooks,Dl=e=>{e.preventDefault()},zn=e=>!!e.dataTransfer?.types?.some(r=>r.toLowerCase()==="files");function Ll(e,r){let t=e.parentNode;for(;t;){if(t===r)return!0;t=t.parentNode}return!1}var Zn=e=>{let[r,t]=(0,F.useState)(!1),o=v(Kn),n=(0,F.useRef)(null),i=Al(),l=k(e.onFilesAdded);(0,F.useEffect)(()=>{let h=0,x=u=>{h++,zn(u)&&t(n.current&&(u.target===n.current||u.target instanceof HTMLElement&&Ll(u.target,n.current))?"droppable":"visible")},d=()=>--h<=0&&t(!1);return document.addEventListener("dragenter",x,!1),document.addEventListener("dragleave",d,!1),()=>{document.removeEventListener("dragenter",x),document.removeEventListener("dragleave",d)}},[t]);let s=(0,F.useCallback)(h=>{h.preventDefault(),t(!1),zn(h.nativeEvent)&&l.current([...h.dataTransfer.files])},[l,t]);return r?F.default.createElement("div",{className:(0,Wn.default)(o["sendbox__attachment-drop-zone"],{[o["sendbox__attachment-drop-zone--droppable"]]:r==="droppable"}),"data-testid":y.sendBoxDropZone,onDragOver:Dl,onDrop:s,ref:n},F.default.createElement(Cr,{className:o["sendbox__attachment-drop-zone-icon"]}),i("TEXT_INPUT_DROP_ZONE")):null};Zn.displayName="DropZone";var Ar=(0,F.memo)(Zn);var ra=c(C()),ta=c(P()),D=c(m());var Jn=c(C()),Qn=c(P()),W=c(m());var $n={"suggested-action":"s","suggested-action__image":"g"};var U=c(m()),Hl=e=>e.preventDefault(),jl=(0,U.forwardRef)(({"aria-hidden":e,children:r,disabled:t,onClick:o,tabIndex:n,...i},l)=>{let s=(0,U.useRef)(null);return U.default.createElement("button",{"aria-disabled":t?"true":"false","aria-hidden":e,onClick:t?Hl:o,ref:l||s,tabIndex:n,...t&&{"aria-disabled":"true",tabIndex:-1},...i,type:"button"},r)}),Vn=(0,U.memo)(jl);var w=c(m()),Gn=(0,w.createContext)({itemEffector:()=>{throw new Error("botframework-webchat-fluent-theme rovingFocus: no provider for RovingFocusContext.")}});function Kl(e){let r=(0,w.useRef)(0),t=(0,w.useRef)([]),o=(0,w.useCallback)(({current:d},u)=>d&&(d.tabIndex=r.current===u?0:-1),[r]),n=(0,w.useCallback)(d=>{let u;typeof d=="number"?u=d:u=d(r.current),u&&!t.current.at(u)?.current&&(u=0),r.current!==u&&(r.current=u,t.current.forEach((f,g)=>o(f,g)),t.current.at(u)?.current?.focus())},[o,t,r]),i=(0,w.useCallback)(d=>{let{target:u}=d,f=t.current.findIndex(({current:g})=>g===u);f!==-1&&n(f)},[t,n]),l=(0,w.useCallback)(d=>u=>{let f=!e.direction,g=/up|down/iu.test(d)&&e.direction==="vertical",B=/left|right/iu.test(d)&&e.direction==="horizontal",_=/right|down/iu.test(d),T=f||g||B?_?1:-1:0,S=t.current.map((V,Y)=>Y),M=S.indexOf(u)+T;return S.at(M)??0},[e.direction]),s=(0,w.useCallback)(d=>{let{key:u}=d;switch(u){case"Up":case"ArrowUp":case"Left":case"ArrowLeft":case"Down":case"ArrowDown":case"Right":case"ArrowRight":n(l(u));break;case"Home":n(0);break;case"End":n(-1);break;case"Escape":e.onEscapeKey?.();break;default:return}d.preventDefault(),d.stopPropagation()},[n,l,e]),h=(0,w.useCallback)((d,u)=>{let{current:f}=d;return t.current[Number(u)]=d,f.addEventListener("focus",i),f.addEventListener("keydown",s),o(d,u),()=>{f.removeEventListener("focus",i),f.removeEventListener("keydown",s),delete t.current[Number(u)]}},[i,s,o,t]),x=(0,w.useMemo)(()=>({itemEffector:h}),[h]);return w.default.createElement(Gn.Provider,{value:x},e.children)}function Xn(e){let r=(0,w.useRef)(null),{itemEffector:t}=(0,w.useContext)(Gn);return(0,w.useEffect)(()=>t(r,e)),r}var Yn=(0,w.memo)(Kl);var{useDisabled:zl,useFocus:Ul,usePerformCardAction:Wl,useScrollToEnd:Zl,useStyleSet:$l,useSuggestedActions:Vl}=Jn.hooks;function Gl({buttonText:e,className:r,displayText:t,image:o,imageAlt:n,itemIndex:i,text:l,type:s,value:h}){let[x,d]=Vl(),[{suggestedAction:u}]=$l(),[f]=zl(),g=Ul(),B=Xn(i),_=Wl(),T=v($n),S=Zl(),M=(0,W.useCallback)(({target:V})=>{(async function(){await g("sendBoxWithoutKeyboard"),_({displayText:t,text:l,type:s,value:h},{target:V}),s==="openUrl"&&d([]),S()})()},[t,g,_,S,d,l,s,h]);return W.default.createElement(Vn,{className:(0,Qn.default)(T["suggested-action"],u+"",(r||"")+""),disabled:f,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 ea=(0,W.memo)(Gl);function Dr(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 Lr={"suggested-actions":"p","suggested-actions--flow":"w","suggested-actions--stacked":"v"};var{useFocus:Yl,useLocalizer:Jl,useStyleOptions:Ql,useStyleSet:ec,useSuggestedActions:rc}=ra.hooks;function tc(e){let[{suggestedActionLayout:r}]=Ql(),[{suggestedActions:t}]=ec(),o=v(Lr);return D.default.createElement("div",{"aria-label":e["aria-label"],"aria-live":"polite","aria-orientation":"vertical",className:(0,ta.default)(o["suggested-actions"],t+"",{[o["suggested-actions--flow"]]:r==="flow",[o["suggested-actions--stacked"]]:r!=="flow"},e.className),role:"toolbar"},!!e.children&&!!D.default.Children.count(e.children)&&e.children)}function oc(){let e=v(Lr),r=Jl(),[t]=rc(),o=Yl(),n=(0,D.useCallback)(()=>{o("sendBox")},[o]),i=t.map((l,s)=>{let{displayText:h,image:x,imageAltText:d,text:u,type:f,value:g}=l;return t?.length?D.default.createElement(ea,{buttonText:Dr(l),displayText:h,image:x,imageAlt:x&&(d||u),itemIndex:s,key:s,text:u,type:f,value:g}):null});return D.default.createElement(Yn,{onEscapeKey:n},D.default.createElement(tc,{"aria-label":r("SUGGESTED_ACTIONS_LABEL_ALT"),className:e["suggested-actions"]},i))}var Rr=(0,D.memo)(oc);var na=c(C()),O=c(m());var Pe=c(P()),Z=c(m());var Me={sendbox__toolbar:"f","sendbox__toolbar-button":"x","sendbox__toolbar-button--selected":"k","sendbox__toolbar-separator":"m"};var ac=e=>e.preventDefault(),G=(0,Z.memo)(e=>{let r=v(Me);return Z.default.createElement("button",{"aria-label":e["aria-label"],className:(0,Pe.default)(r["sendbox__toolbar-button"],e.className,{[r["sendbox__toolbar-button--selected"]]:e.selected}),"data-testid":e["data-testid"],onClick:e.disabled?ac: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,Pe.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,Pe.default)(r["sendbox__toolbar-separator"],e.className),role:"separator"})});jr.displayName="ToolbarSeparator";var oa={"sendbox__add-attachment":"B","sendbox__add-attachment-input":"F"};var{useLocalizer:sc,useStyleOptions:lc}=na.hooks;function cc(e){let r=(0,O.useRef)(null),t=v(oa),o=sc(),[{uploadAccept:n,uploadMultiple:i}]=lc(),l=k(e.onFilesAdded),s=(0,O.useCallback)(()=>r.current?.click(),[r]),h=(0,O.useCallback)(({target:{files:x}})=>{x&&(l.current?.([...x]),r.current&&(r.current.value=""))},[r,l]);return O.default.createElement("div",{className:t["sendbox__add-attachment"]},O.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"}),O.default.createElement(G,{"aria-label":o("TEXT_INPUT_UPLOAD_BUTTON_ALT"),"data-testid":y.sendBoxUploadButton,onClick:s},O.default.createElement(Or,null)))}var aa=(0,O.memo)(cc);var sa=c(C()),qe=c(m()),la=c(P());var ia={sendbox__attachment:"y"};var{useLocalizer:uc}=sa.hooks,pc={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 fc({attachments:e,className:r}){let t=v(ia),o=uc({plural:!0});return e.length?qe.default.createElement("div",{className:(0,la.default)(t.sendbox__attachment,r)},o(pc,e.length)):null}var ca=(0,qe.memo)(fc);var Ae=c(m());var da={"sendbox__error-message":"N"};function bc(e){let r=v(da);return Ae.default.createElement("span",{className:r["sendbox__error-message"],id:e.id,role:"alert"},e.error)}var ua=(0,Ae.memo)(bc);var X=c(m()),pa=c(C());var{useLocalizer:hc}=pa.hooks,fa=(0,X.memo)(()=>{let[e,r]=A(),t=hc(),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(Pr,null))});fa.displayName="SendBox.TelephoneKeypadToolbarButton";var ma=fa;var De=c(P()),$=c(m());var ba={"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 ha=(0,$.forwardRef)((e,r)=>{let t=v(ba),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,De.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,De.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,De.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}))});ha.displayName="TextArea";var va=ha;var ga=c(C()),Kr=c(m());var{useConnectivityStatus:gc,useLocalizer:yc}=ga.hooks,xc=({attachments:e,message:r})=>{let[t]=gc(),o=yc(),n=k(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])},ya=xc;var xa=c(m());function zr(e){let r=(0,xa.useMemo)(()=>Math.random().toString(36).substr(2,5),[]);return e=e?`${e}--`:"",`${e}${r}`}var wa={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 Ta=c(m()),ka=c(C()),{useScrollDown:Tc,useScrollUp:kc}=ka.hooks;function Ur(){let e=Tc(),r=kc();return(0,Ta.useCallback)(t=>{if(t.target instanceof HTMLTextAreaElement&&t.target.value)return;let{ctrlKey:o,metaKey:n,shiftKey:i}=t;if(o||n||i)return;let l=!0;switch(t.key){case"End":e({displacement:1/0});break;case"Home":r({displacement:1/0});break;case"PageDown":e();break;case"PageUp":r();break;default:l=!1;break}l&&(t.preventDefault(),t.stopPropagation())},[e,r])}var{useFocus:Sc,useLocalizer:_c,useMakeThumbnail:Bc,useRegisterFocusSendBox:Nc,useSendBoxAttachments:Ec,useSendMessage:Fc,useStyleOptions:Cc}=Sa.hooks;function Oc(e){let r=(0,b.useRef)(null),[t,o]=(0,b.useState)(""),[n,i]=Ec(),[{hideTelephoneKeypadButton:l,hideUploadButton:s,maxMessageLength:h}]=Cc(),x=!!h&&t.length>h,d=v(wa),u=_c(),f=Fc(),g=Bc(),B=zr("sendbox__error-message-id"),[_,T]=ya({message:t,attachments:n}),[S]=A(),M=Sc();Nc((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=k(n),Y=k(t),Le=(0,b.useCallback)(N=>{"tabIndex"in N.target&&typeof N.target.tabIndex=="number"&&N.target.tabIndex>=0||M("sendBox")},[M]),Re=(0,b.useCallback)(N=>o(N.currentTarget.value),[o]),$r=(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]),Ba=(0,b.useCallback)(N=>{N.preventDefault(),_.current!=="empty"&&!x&&(f(Y.current,void 0,{attachments:V.current}),o(""),i([])),M("sendBox")},[V,Y,f,i,o,x,_,M]),Na=(0,b.useCallback)(N=>f(`/DTMFKey ${N}`),[f]),Ea=Ur(),Fa={"aria-invalid":"false",...T&&{"aria-invalid":"true","aria-errormessage":B}};return b.default.createElement("form",{...Fa,className:(0,re.default)(d.sendbox,e.className),onSubmit:Ba},b.default.createElement(Rr,null),b.default.createElement("div",{className:(0,re.default)(d.sendbox__sendbox),onClickCapture:Le,onKeyDown:Ea},b.default.createElement(va,{"aria-label":u(x?"TEXT_INPUT_LENGTH_EXCEEDED_ALT":"TEXT_INPUT_ALT"),className:(0,re.default)(d["sendbox__sendbox-text"],d["sendbox__text-area--in-grid"]),"data-testid":y.sendBoxTextBox,hidden:S,onInput:Re,placeholder:e.placeholder??u("TEXT_INPUT_PLACEHOLDER"),ref:r,value:t}),b.default.createElement(qr,{autoFocus:!0,className:d["sendbox__telephone-keypad--in-grid"],isHorizontal:!1,onButtonClick:Na}),b.default.createElement(ca,{attachments:n,className:d["sendbox__attachment--in-grid"]}),b.default.createElement("div",{className:(0,re.default)(d["sendbox__sendbox-controls"],d["sendbox__sendbox-controls--in-grid"])},!S&&h&&b.default.createElement("div",{className:(0,re.default)(d["sendbox__text-counter"],{[d["sendbox__text-counter--error"]]:x})},`${t.length}/${h}`),b.default.createElement(Hr,null,!l&&b.default.createElement(ma,null),!s&&b.default.createElement(aa,{onFilesAdded:$r}),b.default.createElement(jr,null),b.default.createElement(G,{"aria-label":u("TEXT_INPUT_SEND_BUTTON_ALT"),"data-testid":y.sendBoxSendButton,disabled:x||S,type:"submit"},b.default.createElement(Mr,null)))),b.default.createElement(Ar,{onFilesAdded:$r}),b.default.createElement(ua,{error:T,id:B})))}var Wr=(0,b.memo)(Oc);var{ThemeProvider:Ic}=_a.Components,Mc=[()=>()=>()=>Wr],Pc=({children:e})=>te.default.createElement(Ie,null,te.default.createElement(je,null,te.default.createElement(Ic,{sendBoxMiddleware:Mc},e))),Zr=(0,te.memo)(Pc);ve("botframework-webchat:fluent-theme","version=4.17.1-main.20240708.c9247bf; build-tool=tsup; module-format=esmodules");Fe();globalThis.WebChat={...globalThis.WebChat,FluentThemeProvider:Zr,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 zt=Object.create;var Y=Object.defineProperty;var Ot=Object.getOwnPropertyDescriptor;var Ut=Object.getOwnPropertyNames;var Zt=Object.getPrototypeOf,jt=Object.prototype.hasOwnProperty;var Wt=(e,t)=>{for(var o in t)Y(e,o,{get:t[o],enumerable:!0})},Ae=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Ut(t))!jt.call(e,n)&&n!==o&&Y(e,n,{get:()=>t[n],enumerable:!(r=Ot(t,n))||r.enumerable});return e};var i=(e,t,o)=>(o=e!=null?zt(Zt(e)):{},Ae(t||!e||!e.__esModule?Y(o,"default",{value:e,enumerable:!0}):o,e)),Xt=e=>Ae(Y({},"__esModule",{value:!0}),e);var mr={};Wt(mr,{FluentThemeProvider:()=>Lt,buildInfo:()=>ur,testIds:()=>f});module.exports=Xt(mr);var It=require("inject-meta-tag");var Ht=require("botframework-webchat-component"),U=i(require("react"));var M=i(require("react"));var Me=require("react"),He=(0,Me.createContext)(new Proxy({},{get(){throw new Error("botframework-webchat: This hook can only used under its corresponding <Provider>.")}}));He.displayName="TelephoneKeypad.Context";var q=He;var Gt=(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=Gt;var ee=i(require("react"));var Ke=require("botframework-webchat-component"),Re=i(require("classnames")),l=i(require("react")),ge=require("use-ref-from");var N=i(require("react")),De=require("use-ref-from");var Le={"telephone-keypad__button":"r","telephone-keypad__button__ruby":"e","telephone-keypad__button__text":"o","telephone-keypad--horizontal":"l"};var Vt=".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}@media only screen and (hover: none) and (pointer: coarse){.webchat-fluent .C:focus-within{font-size:16px}}.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(Vt)),document.head.appendChild(e)}}var Ie=require("react");function Yt(e){return(0,Ie.useMemo)(()=>Object.freeze(Object.fromEntries(Object.entries(e).map(([t,o])=>[t,`${t} ${o}`]))),[e])}var m=Yt;var Pe=(0,N.memo)((0,N.forwardRef)(({button:e,"data-testid":t,onClick:o,ruby:r},n)=>{let c=m(Le),p=(0,De.useRefFrom)(o),a=(0,N.useCallback)(()=>p.current?.(),[p]);return N.default.createElement("button",{className:c["telephone-keypad__button"],"data-testid":t,onClick:a,ref:n,type:"button"},N.default.createElement("span",{className:c["telephone-keypad__button__text"]},e==="*"?"\u2217":e),!!r&&N.default.createElement("ruby",{className:c["telephone-keypad__button__ruby"]},r))}));Pe.displayName="TelephoneKeypad.Button";var w=Pe;var qt={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=qt;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 Qt(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)(Qt);var W=i(require("react"));function eo(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)(eo);var X=i(require("react"));function to(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)(to);var G=i(require("react"));function oo(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)(oo);var $=i(require("react"));function ro(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)(ro);var{LocalizedString:no}=Ke.Components,ze=(0,l.memo)(({children:e,isHorizontal:t})=>{let o=m(ue);return t?null:l.default.createElement("div",{className:o["telephone-keypad__box"]},e)});ze.displayName="TelephoneKeypad:Orientation";var Oe=(0,l.memo)(({autoFocus:e,className:t,onButtonClick:o,isHorizontal:r})=>{let n=(0,ge.useRefFrom)(e),c=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?.("*"),[a]),z=(0,l.useCallback)(()=>a.current?.("#"),[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)(c["telephone-keypad"],t),onKeyDown:le},l.default.createElement(ze,{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:"*","data-testid":f.sendBoxTelephoneKeypadButtonStar,onClick:P}),l.default.createElement(w,{button:"0","data-testid":f.sendBoxTelephoneKeypadButton0,onClick:B,ruby:"+"}),l.default.createElement(w,{button:"#","data-testid":f.sendBoxTelephoneKeypadButtonPound,onClick:z})),l.default.createElement("div",{className:c["telephone-keypad__info-message"]},l.default.createElement(be,null),l.default.createElement(no,{linkClassName:c["telephone-keypad__info-message-link"],stringIds:"TELEPHONE_KEYPAD_INPUT_MESSAGE"})))});Oe.displayName="TelephoneKeypad";var Ue=Oe;var Ze=(0,ee.memo)(e=>S()[0]?ee.default.createElement(Ue,{...e}):null);Ze.displayName="TelephoneKeypad.Surrogate";var xe=Ze;var We=i(require("react")),Xe=i(require("classnames"));var je={theme:"a"};var so="webchat-fluent";function te(e){let t=m(je);return We.default.createElement("div",{className:(0,Xe.default)(so,t.theme)},e.children)}var Mt=require("botframework-webchat-component"),O=i(require("classnames")),u=i(require("react")),Ee=require("use-ref-from");var Ve=require("botframework-webchat-component"),Ye=i(require("classnames")),T=i(require("react")),qe=require("use-ref-from");var Ge={"sendbox__attachment-drop-zone":"b","sendbox__attachment-drop-zone--droppable":"u","sendbox__attachment-drop-zone-icon":"h"};var{useLocalizer:io}=Ve.hooks,co=e=>{e.preventDefault()},$e=e=>!!e.dataTransfer?.types?.some(t=>t.toLowerCase()==="files");function uo(e,t){let o=e.parentNode;for(;o;){if(o===t)return!0;o=o.parentNode}return!1}var Je=e=>{let[t,o]=(0,T.useState)(!1),r=m(Ge),n=(0,T.useRef)(null),c=io(),p=(0,qe.useRefFrom)(e.onFilesAdded);(0,T.useEffect)(()=>{let b=0,x=d=>{b++,$e(d)&&o(n.current&&(d.target===n.current||d.target instanceof HTMLElement&&uo(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),$e(b.nativeEvent)&&p.current([...b.dataTransfer.files])},[p,o]);return t?T.default.createElement("div",{className:(0,Ye.default)(r["sendbox__attachment-drop-zone"],{[r["sendbox__attachment-drop-zone--droppable"]]:t==="droppable"}),"data-testid":f.sendBoxDropZone,onDragOver:co,onDrop:a,ref:n},T.default.createElement(me,{className:r["sendbox__attachment-drop-zone-icon"]}),c("TEXT_INPUT_DROP_ZONE")):null};Je.displayName="DropZone";var ye=(0,T.memo)(Je);var lt=require("botframework-webchat-component"),dt=i(require("classnames")),E=i(require("react"));var nt=require("botframework-webchat-component"),at=i(require("classnames")),L=i(require("react"));var Qe={"suggested-action":"s","suggested-action__image":"g"};var H=i(require("react")),po=e=>e.preventDefault(),bo=(0,H.forwardRef)(({"aria-hidden":e,children:t,disabled:o,onClick:r,tabIndex:n,...c},p)=>{let a=(0,H.useRef)(null);return H.default.createElement("button",{"aria-disabled":o?"true":"false","aria-hidden":e,onClick:o?po:r,ref:p||a,tabIndex:n,...o&&{"aria-disabled":"true",tabIndex:-1},...c,type:"button"},t)}),et=(0,H.memo)(bo);var h=i(require("react")),tt=(0,h.createContext)({itemEffector:()=>{throw new Error("botframework-webchat-fluent-theme rovingFocus: no provider for RovingFocusContext.")}});function fo(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]),c=(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",c),g.addEventListener("keydown",a),r(s,d),()=>{g.removeEventListener("focus",c),g.removeEventListener("keydown",a),delete o.current[Number(d)]}},[c,a,r,o]),x=(0,h.useMemo)(()=>({itemEffector:b}),[b]);return h.default.createElement(tt.Provider,{value:x},e.children)}function ot(e){let t=(0,h.useRef)(null),{itemEffector:o}=(0,h.useContext)(tt);return(0,h.useEffect)(()=>o(t,e)),t}var rt=(0,h.memo)(fo);var{useDisabled:ho,useFocus:go,usePerformCardAction:xo,useScrollToEnd:yo,useStyleSet:vo,useSuggestedActions:wo}=nt.hooks;function To({buttonText:e,className:t,displayText:o,image:r,imageAlt:n,itemIndex:c,text:p,type:a,value:b}){let[x,s]=wo(),[{suggestedAction:d}]=vo(),[g]=ho(),y=go(),A=ot(c),C=xo(),F=m(Qe),_=yo(),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(et,{className:(0,at.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 st=(0,L.memo)(To);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:_o,useLocalizer:Bo,useStyleOptions:No,useStyleSet:So,useSuggestedActions:Eo}=lt.hooks;function Co(e){let[{suggestedActionLayout:t}]=No(),[{suggestedActions:o}]=So(),r=m(we);return E.default.createElement("div",{"aria-label":e["aria-label"],"aria-live":"polite","aria-orientation":"vertical",className:(0,dt.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 Fo(){let e=m(we),t=Bo(),[o]=Eo(),r=_o(),n=(0,E.useCallback)(()=>{r("sendBox")},[r]),c=o.map((p,a)=>{let{displayText:b,image:x,imageAltText:s,text:d,type:g,value:y}=p;return o?.length?E.default.createElement(st,{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(rt,{onEscapeKey:n},E.default.createElement(Co,{"aria-label":t("SUGGESTED_ACTIONS_LABEL_ALT"),className:e["suggested-actions"]},c))}var Te=(0,E.memo)(Fo);var ct=require("botframework-webchat-component"),k=i(require("react")),ut=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 Mo=e=>e.preventDefault(),K=(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?Mo:e.onClick,type:e.type==="submit"?"submit":"button",...e.disabled&&{"aria-disabled":"true",tabIndex:-1}},e.children)});K.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 it={"sendbox__add-attachment":"B","sendbox__add-attachment-input":"F"};var{useLocalizer:Lo,useStyleOptions:Io}=ct.hooks;function Do(e){let t=(0,k.useRef)(null),o=m(it),r=Lo(),[{uploadAccept:n,uploadMultiple:c}]=Io(),p=(0,ut.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:c,onInput:e.disabled?void 0:b,readOnly:e.disabled,ref:t,role:"button",tabIndex:-1,type:"file"}),k.default.createElement(K,{"aria-label":r("TEXT_INPUT_UPLOAD_BUTTON_ALT"),"data-testid":f.sendBoxUploadButton,onClick:a},k.default.createElement(pe,null)))}var mt=(0,k.memo)(Do);var bt=require("botframework-webchat-component"),ne=i(require("react")),ft=i(require("classnames"));var pt={sendbox__attachment:"y"};var{useLocalizer:Ko}=bt.hooks,Ro={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 zo({attachments:e,className:t}){let o=m(pt),r=Ko({plural:!0});return e.length?ne.default.createElement("div",{className:(0,ft.default)(o.sendbox__attachment,t)},r(Ro,e.length)):null}var ht=(0,ne.memo)(zo);var ae=i(require("react"));var gt={"sendbox__error-message":"N"};function Uo(e){let t=m(gt);return ae.default.createElement("span",{className:t["sendbox__error-message"],id:e.id,role:"alert"},e.error)}var xt=(0,ae.memo)(Uo);var R=i(require("react")),yt=require("botframework-webchat-component");var{useLocalizer:Zo}=yt.hooks,vt=(0,R.memo)(()=>{let[e,t]=S(),o=Zo(),r=(0,R.useCallback)(()=>t(n=>!n),[t]);return R.default.createElement(K,{"aria-label":o("TEXT_INPUT_TELEPHONE_KEYPAD_BUTTON_ALT"),"data-testid":f.sendBoxTelephoneKeypadToolbarButton,onClick:r,selected:e},R.default.createElement(he,null))});vt.displayName="SendBox.TelephoneKeypadToolbarButton";var wt=vt;var se=i(require("classnames")),D=i(require("react"));var Tt={"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 kt=(0,D.forwardRef)((e,t)=>{let o=m(Tt),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}))});kt.displayName="TextArea";var _t=kt;var Bt=require("botframework-webchat-component"),Be=require("react"),Nt=require("use-ref-from"),{useConnectivityStatus:Wo,useLocalizer:Xo}=Bt.hooks,Go=({attachments:e,message:t})=>{let[o]=Wo(),r=Xo(),n=(0,Nt.useRefFrom)(o!=="connected"&&o!=="reconnected"?"offline":!t&&!e.length?"empty":void 0),c=(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&&c.get(n.current)]),[c,n])},St=Go;var Et=require("react");function Ne(e){let t=(0,Et.useMemo)(()=>Math.random().toString(36).substr(2,5),[]);return e=e?`${e}--`:"",`${e}${t}`}var Ct={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 Ft=require("react"),At=require("botframework-webchat-component"),{useScrollDown:Vo,useScrollUp:Yo}=At.hooks;function Se(){let e=Vo(),t=Yo();return(0,Ft.useCallback)(o=>{if(o.target instanceof HTMLTextAreaElement&&o.target.value)return;let{ctrlKey:r,metaKey:n,shiftKey:c}=o;if(r||n||c)return;let p=!0;switch(o.key){case"End":e({displacement:1/0});break;case"Home":t({displacement:1/0});break;case"PageDown":e();break;case"PageUp":t();break;default:p=!1;break}p&&(o.preventDefault(),o.stopPropagation())},[e,t])}var{useFocus:qo,useLocalizer:Jo,useMakeThumbnail:Qo,useRegisterFocusSendBox:er,useSendBoxAttachments:tr,useSendMessage:or,useStyleOptions:rr}=Mt.hooks;function nr(e){let t=(0,u.useRef)(null),[o,r]=(0,u.useState)(""),[n,c]=tr(),[{hideTelephoneKeypadButton:p,hideUploadButton:a,maxMessageLength:b}]=rr(),x=!!b&&o.length>b,s=m(Ct),d=Jo(),g=or(),y=Qo(),A=Ne("sendbox__error-message-id"),[C,F]=St({message:o,attachments:n}),[_]=S(),B=qo();er((0,u.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,Ee.useRefFrom)(n),z=(0,Ee.useRefFrom)(o),le=(0,u.useCallback)(v=>{"tabIndex"in v.target&&typeof v.target.tabIndex=="number"&&v.target.tabIndex>=0||B("sendBox")},[B]),de=(0,u.useCallback)(v=>r(v.currentTarget.value),[r]),Fe=(0,u.useCallback)(async v=>{let ie=Object.freeze(await Promise.all(v.map(Z=>y(Z).then(V=>Object.freeze({blob:Z,...V&&{thumbnailURL:V}})))));c(ie)},[y,c]),Dt=(0,u.useCallback)(v=>{v.preventDefault(),C.current!=="empty"&&!x&&(g(z.current,void 0,{attachments:P.current}),r(""),c([])),B("sendBox")},[P,z,g,c,r,x,C,B]),Pt=(0,u.useCallback)(v=>g(`/DTMFKey ${v}`),[g]),Kt=Se(),Rt={"aria-invalid":"false",...F&&{"aria-invalid":"true","aria-errormessage":A}};return u.default.createElement("form",{...Rt,className:(0,O.default)(s.sendbox,e.className),onSubmit:Dt},u.default.createElement(Te,null),u.default.createElement("div",{className:(0,O.default)(s.sendbox__sendbox),onClickCapture:le,onKeyDown:Kt},u.default.createElement(_t,{"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}),u.default.createElement(xe,{autoFocus:!0,className:s["sendbox__telephone-keypad--in-grid"],isHorizontal:!1,onButtonClick:Pt}),u.default.createElement(ht,{attachments:n,className:s["sendbox__attachment--in-grid"]}),u.default.createElement("div",{className:(0,O.default)(s["sendbox__sendbox-controls"],s["sendbox__sendbox-controls--in-grid"])},!_&&b&&u.default.createElement("div",{className:(0,O.default)(s["sendbox__text-counter"],{[s["sendbox__text-counter--error"]]:x})},`${o.length}/${b}`),u.default.createElement(ke,null,!p&&u.default.createElement(wt,null),!a&&u.default.createElement(mt,{onFilesAdded:Fe}),u.default.createElement(_e,null),u.default.createElement(K,{"aria-label":d("TEXT_INPUT_SEND_BUTTON_ALT"),"data-testid":f.sendBoxSendButton,disabled:x||_,type:"submit"},u.default.createElement(fe,null)))),u.default.createElement(ye,{onFilesAdded:Fe}),u.default.createElement(xt,{error:F,id:A})))}var Ce=(0,u.memo)(nr);var{ThemeProvider:ar}=Ht.Components,sr=[()=>()=>()=>Ce],lr=({children:e})=>U.default.createElement(te,null,U.default.createElement(ce,null,U.default.createElement(ar,{sendBoxMiddleware:sr},e))),Lt=(0,U.memo)(lr);var dr="tsup",ir="commonjs",cr="4.17.1-main.20240625.336dd7c",ur={buildTool:dr,moduleFormat:ir,version:cr};(0,It.injectMetaTag)("botframework-webchat:fluent-theme","version=4.17.1-main.20240625.336dd7c; build-tool=tsup; module-format=commonjs");J();
|
|
1
|
+
"use strict";var zt=Object.create;var Y=Object.defineProperty;var Ot=Object.getOwnPropertyDescriptor;var Ut=Object.getOwnPropertyNames;var Zt=Object.getPrototypeOf,jt=Object.prototype.hasOwnProperty;var Wt=(e,t)=>{for(var o in t)Y(e,o,{get:t[o],enumerable:!0})},Ae=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Ut(t))!jt.call(e,n)&&n!==o&&Y(e,n,{get:()=>t[n],enumerable:!(r=Ot(t,n))||r.enumerable});return e};var i=(e,t,o)=>(o=e!=null?zt(Zt(e)):{},Ae(t||!e||!e.__esModule?Y(o,"default",{value:e,enumerable:!0}):o,e)),Xt=e=>Ae(Y({},"__esModule",{value:!0}),e);var mr={};Wt(mr,{FluentThemeProvider:()=>Lt,buildInfo:()=>ur,testIds:()=>f});module.exports=Xt(mr);var It=require("inject-meta-tag");var Ht=require("botframework-webchat-component"),U=i(require("react"));var M=i(require("react"));var Me=require("react"),He=(0,Me.createContext)(new Proxy({},{get(){throw new Error("botframework-webchat: This hook can only used under its corresponding <Provider>.")}}));He.displayName="TelephoneKeypad.Context";var q=He;var Gt=(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=Gt;var ee=i(require("react"));var Ke=require("botframework-webchat-component"),Re=i(require("classnames")),l=i(require("react")),ge=require("use-ref-from");var N=i(require("react")),De=require("use-ref-from");var Le={"telephone-keypad__button":"r","telephone-keypad__button__ruby":"e","telephone-keypad__button__text":"o","telephone-keypad--horizontal":"l"};var Vt=".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}@media only screen and (hover: none) and (pointer: coarse){.webchat-fluent .C:focus-within{font-size:16px}}.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(Vt)),document.head.appendChild(e)}}var Ie=require("react");function Yt(e){return(0,Ie.useMemo)(()=>Object.freeze(Object.fromEntries(Object.entries(e).map(([t,o])=>[t,`${t} ${o}`]))),[e])}var m=Yt;var Pe=(0,N.memo)((0,N.forwardRef)(({button:e,"data-testid":t,onClick:o,ruby:r},n)=>{let c=m(Le),p=(0,De.useRefFrom)(o),a=(0,N.useCallback)(()=>p.current?.(),[p]);return N.default.createElement("button",{className:c["telephone-keypad__button"],"data-testid":t,onClick:a,ref:n,type:"button"},N.default.createElement("span",{className:c["telephone-keypad__button__text"]},e==="*"?"\u2217":e),!!r&&N.default.createElement("ruby",{className:c["telephone-keypad__button__ruby"]},r))}));Pe.displayName="TelephoneKeypad.Button";var w=Pe;var qt={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=qt;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 Qt(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)(Qt);var W=i(require("react"));function eo(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)(eo);var X=i(require("react"));function to(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)(to);var G=i(require("react"));function oo(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)(oo);var $=i(require("react"));function ro(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)(ro);var{LocalizedString:no}=Ke.Components,ze=(0,l.memo)(({children:e,isHorizontal:t})=>{let o=m(ue);return t?null:l.default.createElement("div",{className:o["telephone-keypad__box"]},e)});ze.displayName="TelephoneKeypad:Orientation";var Oe=(0,l.memo)(({autoFocus:e,className:t,onButtonClick:o,isHorizontal:r})=>{let n=(0,ge.useRefFrom)(e),c=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?.("*"),[a]),z=(0,l.useCallback)(()=>a.current?.("#"),[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)(c["telephone-keypad"],t),onKeyDown:le},l.default.createElement(ze,{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:"*","data-testid":f.sendBoxTelephoneKeypadButtonStar,onClick:P}),l.default.createElement(w,{button:"0","data-testid":f.sendBoxTelephoneKeypadButton0,onClick:B,ruby:"+"}),l.default.createElement(w,{button:"#","data-testid":f.sendBoxTelephoneKeypadButtonPound,onClick:z})),l.default.createElement("div",{className:c["telephone-keypad__info-message"]},l.default.createElement(be,null),l.default.createElement(no,{linkClassName:c["telephone-keypad__info-message-link"],stringIds:"TELEPHONE_KEYPAD_INPUT_MESSAGE"})))});Oe.displayName="TelephoneKeypad";var Ue=Oe;var Ze=(0,ee.memo)(e=>S()[0]?ee.default.createElement(Ue,{...e}):null);Ze.displayName="TelephoneKeypad.Surrogate";var xe=Ze;var We=i(require("react")),Xe=i(require("classnames"));var je={theme:"a"};var so="webchat-fluent";function te(e){let t=m(je);return We.default.createElement("div",{className:(0,Xe.default)(so,t.theme)},e.children)}var Mt=require("botframework-webchat-component"),O=i(require("classnames")),u=i(require("react")),Ee=require("use-ref-from");var Ve=require("botframework-webchat-component"),Ye=i(require("classnames")),T=i(require("react")),qe=require("use-ref-from");var Ge={"sendbox__attachment-drop-zone":"b","sendbox__attachment-drop-zone--droppable":"u","sendbox__attachment-drop-zone-icon":"h"};var{useLocalizer:io}=Ve.hooks,co=e=>{e.preventDefault()},$e=e=>!!e.dataTransfer?.types?.some(t=>t.toLowerCase()==="files");function uo(e,t){let o=e.parentNode;for(;o;){if(o===t)return!0;o=o.parentNode}return!1}var Je=e=>{let[t,o]=(0,T.useState)(!1),r=m(Ge),n=(0,T.useRef)(null),c=io(),p=(0,qe.useRefFrom)(e.onFilesAdded);(0,T.useEffect)(()=>{let b=0,x=d=>{b++,$e(d)&&o(n.current&&(d.target===n.current||d.target instanceof HTMLElement&&uo(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),$e(b.nativeEvent)&&p.current([...b.dataTransfer.files])},[p,o]);return t?T.default.createElement("div",{className:(0,Ye.default)(r["sendbox__attachment-drop-zone"],{[r["sendbox__attachment-drop-zone--droppable"]]:t==="droppable"}),"data-testid":f.sendBoxDropZone,onDragOver:co,onDrop:a,ref:n},T.default.createElement(me,{className:r["sendbox__attachment-drop-zone-icon"]}),c("TEXT_INPUT_DROP_ZONE")):null};Je.displayName="DropZone";var ye=(0,T.memo)(Je);var lt=require("botframework-webchat-component"),dt=i(require("classnames")),E=i(require("react"));var nt=require("botframework-webchat-component"),at=i(require("classnames")),L=i(require("react"));var Qe={"suggested-action":"s","suggested-action__image":"g"};var H=i(require("react")),po=e=>e.preventDefault(),bo=(0,H.forwardRef)(({"aria-hidden":e,children:t,disabled:o,onClick:r,tabIndex:n,...c},p)=>{let a=(0,H.useRef)(null);return H.default.createElement("button",{"aria-disabled":o?"true":"false","aria-hidden":e,onClick:o?po:r,ref:p||a,tabIndex:n,...o&&{"aria-disabled":"true",tabIndex:-1},...c,type:"button"},t)}),et=(0,H.memo)(bo);var h=i(require("react")),tt=(0,h.createContext)({itemEffector:()=>{throw new Error("botframework-webchat-fluent-theme rovingFocus: no provider for RovingFocusContext.")}});function fo(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]),c=(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",c),g.addEventListener("keydown",a),r(s,d),()=>{g.removeEventListener("focus",c),g.removeEventListener("keydown",a),delete o.current[Number(d)]}},[c,a,r,o]),x=(0,h.useMemo)(()=>({itemEffector:b}),[b]);return h.default.createElement(tt.Provider,{value:x},e.children)}function ot(e){let t=(0,h.useRef)(null),{itemEffector:o}=(0,h.useContext)(tt);return(0,h.useEffect)(()=>o(t,e)),t}var rt=(0,h.memo)(fo);var{useDisabled:ho,useFocus:go,usePerformCardAction:xo,useScrollToEnd:yo,useStyleSet:vo,useSuggestedActions:wo}=nt.hooks;function To({buttonText:e,className:t,displayText:o,image:r,imageAlt:n,itemIndex:c,text:p,type:a,value:b}){let[x,s]=wo(),[{suggestedAction:d}]=vo(),[g]=ho(),y=go(),A=ot(c),C=xo(),F=m(Qe),_=yo(),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(et,{className:(0,at.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 st=(0,L.memo)(To);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:_o,useLocalizer:Bo,useStyleOptions:No,useStyleSet:So,useSuggestedActions:Eo}=lt.hooks;function Co(e){let[{suggestedActionLayout:t}]=No(),[{suggestedActions:o}]=So(),r=m(we);return E.default.createElement("div",{"aria-label":e["aria-label"],"aria-live":"polite","aria-orientation":"vertical",className:(0,dt.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 Fo(){let e=m(we),t=Bo(),[o]=Eo(),r=_o(),n=(0,E.useCallback)(()=>{r("sendBox")},[r]),c=o.map((p,a)=>{let{displayText:b,image:x,imageAltText:s,text:d,type:g,value:y}=p;return o?.length?E.default.createElement(st,{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(rt,{onEscapeKey:n},E.default.createElement(Co,{"aria-label":t("SUGGESTED_ACTIONS_LABEL_ALT"),className:e["suggested-actions"]},c))}var Te=(0,E.memo)(Fo);var ct=require("botframework-webchat-component"),k=i(require("react")),ut=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 Mo=e=>e.preventDefault(),K=(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?Mo:e.onClick,type:e.type==="submit"?"submit":"button",...e.disabled&&{"aria-disabled":"true",tabIndex:-1}},e.children)});K.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 it={"sendbox__add-attachment":"B","sendbox__add-attachment-input":"F"};var{useLocalizer:Lo,useStyleOptions:Io}=ct.hooks;function Do(e){let t=(0,k.useRef)(null),o=m(it),r=Lo(),[{uploadAccept:n,uploadMultiple:c}]=Io(),p=(0,ut.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:c,onInput:e.disabled?void 0:b,readOnly:e.disabled,ref:t,role:"button",tabIndex:-1,type:"file"}),k.default.createElement(K,{"aria-label":r("TEXT_INPUT_UPLOAD_BUTTON_ALT"),"data-testid":f.sendBoxUploadButton,onClick:a},k.default.createElement(pe,null)))}var mt=(0,k.memo)(Do);var bt=require("botframework-webchat-component"),ne=i(require("react")),ft=i(require("classnames"));var pt={sendbox__attachment:"y"};var{useLocalizer:Ko}=bt.hooks,Ro={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 zo({attachments:e,className:t}){let o=m(pt),r=Ko({plural:!0});return e.length?ne.default.createElement("div",{className:(0,ft.default)(o.sendbox__attachment,t)},r(Ro,e.length)):null}var ht=(0,ne.memo)(zo);var ae=i(require("react"));var gt={"sendbox__error-message":"N"};function Uo(e){let t=m(gt);return ae.default.createElement("span",{className:t["sendbox__error-message"],id:e.id,role:"alert"},e.error)}var xt=(0,ae.memo)(Uo);var R=i(require("react")),yt=require("botframework-webchat-component");var{useLocalizer:Zo}=yt.hooks,vt=(0,R.memo)(()=>{let[e,t]=S(),o=Zo(),r=(0,R.useCallback)(()=>t(n=>!n),[t]);return R.default.createElement(K,{"aria-label":o("TEXT_INPUT_TELEPHONE_KEYPAD_BUTTON_ALT"),"data-testid":f.sendBoxTelephoneKeypadToolbarButton,onClick:r,selected:e},R.default.createElement(he,null))});vt.displayName="SendBox.TelephoneKeypadToolbarButton";var wt=vt;var se=i(require("classnames")),D=i(require("react"));var Tt={"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 kt=(0,D.forwardRef)((e,t)=>{let o=m(Tt),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}))});kt.displayName="TextArea";var _t=kt;var Bt=require("botframework-webchat-component"),Be=require("react"),Nt=require("use-ref-from"),{useConnectivityStatus:Wo,useLocalizer:Xo}=Bt.hooks,Go=({attachments:e,message:t})=>{let[o]=Wo(),r=Xo(),n=(0,Nt.useRefFrom)(o!=="connected"&&o!=="reconnected"?"offline":!t&&!e.length?"empty":void 0),c=(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&&c.get(n.current)]),[c,n])},St=Go;var Et=require("react");function Ne(e){let t=(0,Et.useMemo)(()=>Math.random().toString(36).substr(2,5),[]);return e=e?`${e}--`:"",`${e}${t}`}var Ct={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 Ft=require("react"),At=require("botframework-webchat-component"),{useScrollDown:Vo,useScrollUp:Yo}=At.hooks;function Se(){let e=Vo(),t=Yo();return(0,Ft.useCallback)(o=>{if(o.target instanceof HTMLTextAreaElement&&o.target.value)return;let{ctrlKey:r,metaKey:n,shiftKey:c}=o;if(r||n||c)return;let p=!0;switch(o.key){case"End":e({displacement:1/0});break;case"Home":t({displacement:1/0});break;case"PageDown":e();break;case"PageUp":t();break;default:p=!1;break}p&&(o.preventDefault(),o.stopPropagation())},[e,t])}var{useFocus:qo,useLocalizer:Jo,useMakeThumbnail:Qo,useRegisterFocusSendBox:er,useSendBoxAttachments:tr,useSendMessage:or,useStyleOptions:rr}=Mt.hooks;function nr(e){let t=(0,u.useRef)(null),[o,r]=(0,u.useState)(""),[n,c]=tr(),[{hideTelephoneKeypadButton:p,hideUploadButton:a,maxMessageLength:b}]=rr(),x=!!b&&o.length>b,s=m(Ct),d=Jo(),g=or(),y=Qo(),A=Ne("sendbox__error-message-id"),[C,F]=St({message:o,attachments:n}),[_]=S(),B=qo();er((0,u.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,Ee.useRefFrom)(n),z=(0,Ee.useRefFrom)(o),le=(0,u.useCallback)(v=>{"tabIndex"in v.target&&typeof v.target.tabIndex=="number"&&v.target.tabIndex>=0||B("sendBox")},[B]),de=(0,u.useCallback)(v=>r(v.currentTarget.value),[r]),Fe=(0,u.useCallback)(async v=>{let ie=Object.freeze(await Promise.all(v.map(Z=>y(Z).then(V=>Object.freeze({blob:Z,...V&&{thumbnailURL:V}})))));c(ie)},[y,c]),Dt=(0,u.useCallback)(v=>{v.preventDefault(),C.current!=="empty"&&!x&&(g(z.current,void 0,{attachments:P.current}),r(""),c([])),B("sendBox")},[P,z,g,c,r,x,C,B]),Pt=(0,u.useCallback)(v=>g(`/DTMFKey ${v}`),[g]),Kt=Se(),Rt={"aria-invalid":"false",...F&&{"aria-invalid":"true","aria-errormessage":A}};return u.default.createElement("form",{...Rt,className:(0,O.default)(s.sendbox,e.className),onSubmit:Dt},u.default.createElement(Te,null),u.default.createElement("div",{className:(0,O.default)(s.sendbox__sendbox),onClickCapture:le,onKeyDown:Kt},u.default.createElement(_t,{"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}),u.default.createElement(xe,{autoFocus:!0,className:s["sendbox__telephone-keypad--in-grid"],isHorizontal:!1,onButtonClick:Pt}),u.default.createElement(ht,{attachments:n,className:s["sendbox__attachment--in-grid"]}),u.default.createElement("div",{className:(0,O.default)(s["sendbox__sendbox-controls"],s["sendbox__sendbox-controls--in-grid"])},!_&&b&&u.default.createElement("div",{className:(0,O.default)(s["sendbox__text-counter"],{[s["sendbox__text-counter--error"]]:x})},`${o.length}/${b}`),u.default.createElement(ke,null,!p&&u.default.createElement(wt,null),!a&&u.default.createElement(mt,{onFilesAdded:Fe}),u.default.createElement(_e,null),u.default.createElement(K,{"aria-label":d("TEXT_INPUT_SEND_BUTTON_ALT"),"data-testid":f.sendBoxSendButton,disabled:x||_,type:"submit"},u.default.createElement(fe,null)))),u.default.createElement(ye,{onFilesAdded:Fe}),u.default.createElement(xt,{error:F,id:A})))}var Ce=(0,u.memo)(nr);var{ThemeProvider:ar}=Ht.Components,sr=[()=>()=>()=>Ce],lr=({children:e})=>U.default.createElement(te,null,U.default.createElement(ce,null,U.default.createElement(ar,{sendBoxMiddleware:sr},e))),Lt=(0,U.memo)(lr);var dr="tsup",ir="commonjs",cr="4.17.1-main.20240708.c9247bf",ur={buildTool:dr,moduleFormat:ir,version:cr};(0,It.injectMetaTag)("botframework-webchat:fluent-theme","version=4.17.1-main.20240708.c9247bf; 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 $r}from"inject-meta-tag";import{Components as Ur}from"botframework-webchat-component";import fe,{memo as Zr}from"react";import ct,{memo as ut,useMemo as mt,useState as pt}from"react";import{createContext as it}from"react";var ge=it(new Proxy({},{get(){throw new Error("botframework-webchat: This hook can only used under its corresponding <Provider>.")}}));ge.displayName="TelephoneKeypad.Context";var D=ge;var bt=ut(({children:e})=>{let[t,o]=pt(!1),r=mt(()=>Object.freeze({setShown:o,shown:t}),[o,t]);return ct.createElement(D.Provider,{value:r},e)}),j=bt;import Ut,{memo as Zt}from"react";import{Components as Pt}from"botframework-webchat-component";import Kt from"classnames";import f,{memo as Ne,useCallback as v,useEffect as Rt,useRef as zt}from"react";import{useRefFrom as Be}from"use-ref-from";import W,{forwardRef as yt,memo as vt,useCallback as wt}from"react";import{useRefFrom as Tt}from"use-ref-from";var xe={"telephone-keypad__button":"r","telephone-keypad__button__ruby":"e","telephone-keypad__button__text":"o","telephone-keypad--horizontal":"l"};var ht=".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}@media only screen and (hover: none) and (pointer: coarse){.webchat-fluent .C:focus-within{font-size:16px}}.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(ht)),document.head.appendChild(e)}}import{useMemo as gt}from"react";function xt(e){return gt(()=>Object.freeze(Object.fromEntries(Object.entries(e).map(([t,o])=>[t,`${t} ${o}`]))),[e])}var i=xt;var ye=vt(yt(({button:e,"data-testid":t,onClick:o,ruby:r},a)=>{let d=i(xe),c=Tt(o),n=wt(()=>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==="*"?"\u2217":e),!!r&&W.createElement("ruby",{className:d["telephone-keypad__button__ruby"]},r))}));ye.displayName="TelephoneKeypad.Button";var y=ye;var kt={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=kt;import{useContext as _t,useMemo as Bt}from"react";function k(){let{setShown:e,shown:t}=_t(D);return Bt(()=>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 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:"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=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 20 20",width:"1em",xmlns:"http://www.w3.org/2000/svg"},we.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 $=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 16 16",width:"1em",xmlns:"http://www.w3.org/2000/svg"},Te.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=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:"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=Ht(Lt);import _e,{memo as It}from"react";function Dt(e){return _e.createElement("svg",{"aria-hidden":"true",className:e.className,height:"1em",viewBox:"0 0 20 20",width:"1em",xmlns:"http://www.w3.org/2000/svg"},_e.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=It(Dt);var{LocalizedString:Ot}=Pt,Se=Ne(({children:e,isHorizontal:t})=>{let o=i(X);return t?null:f.createElement("div",{className:o["telephone-keypad__box"]},e)});Se.displayName="TelephoneKeypad:Orientation";var Ee=Ne(({autoFocus:e,className:t,onButtonClick:o,isHorizontal:r})=>{let a=Be(e),d=i(X),c=zt(null),n=Be(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?.("*"),[n]),C=v(()=>n.current?.("#"),[n]),O=v(U=>{U.key==="Escape"&&u(!1)},[u]);return Rt(()=>{a.current&&c.current?.focus()},[a,c]),f.createElement("div",{className:Kt(d["telephone-keypad"],t),onKeyDown:O},f.createElement(Se,{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:"*","data-testid":m.sendBoxTelephoneKeypadButtonStar,onClick:S}),f.createElement(y,{button:"0","data-testid":m.sendBoxTelephoneKeypadButton0,onClick:T,ruby:"+"}),f.createElement(y,{button:"#","data-testid":m.sendBoxTelephoneKeypadButtonPound,onClick:C})),f.createElement("div",{className:d["telephone-keypad__info-message"]},f.createElement(V,null),f.createElement(Ot,{linkClassName:d["telephone-keypad__info-message-link"],stringIds:"TELEPHONE_KEYPAD_INPUT_MESSAGE"})))});Ee.displayName="TelephoneKeypad";var Ce=Ee;var Fe=Zt(e=>k()[0]?Ut.createElement(Ce,{...e}):null);Fe.displayName="TelephoneKeypad.Surrogate";var J=Fe;import Wt from"react";import Xt from"classnames";var Ae={theme:"a"};var Gt="webchat-fluent";function K(e){let t=i(Ae);return Wt.createElement("div",{className:Xt(Gt,t.theme)},e.children)}import{hooks as Fr}from"botframework-webchat-component";import L from"classnames";import h,{memo as Ar,useCallback as A,useRef as Mr,useState as Hr}from"react";import{useRefFrom as nt}from"use-ref-from";import{hooks as Vt}from"botframework-webchat-component";import Yt from"classnames";import He,{memo as qt,useCallback as Jt,useEffect as Qt,useRef as eo,useState as to}from"react";import{useRefFrom as oo}from"use-ref-from";var Me={"sendbox__attachment-drop-zone":"b","sendbox__attachment-drop-zone--droppable":"u","sendbox__attachment-drop-zone-icon":"h"};var{useLocalizer:ro}=Vt,no=e=>{e.preventDefault()},Le=e=>!!e.dataTransfer?.types?.some(t=>t.toLowerCase()==="files");function ao(e,t){let o=e.parentNode;for(;o;){if(o===t)return!0;o=o.parentNode}return!1}var Ie=e=>{let[t,o]=to(!1),r=i(Me),a=eo(null),d=ro(),c=oo(e.onFilesAdded);Qt(()=>{let u=0,b=l=>{u++,Le(l)&&o(a.current&&(l.target===a.current||l.target instanceof HTMLElement&&ao(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=Jt(u=>{u.preventDefault(),o(!1),Le(u.nativeEvent)&&c.current([...u.dataTransfer.files])},[c,o]);return t?He.createElement("div",{className:Yt(r["sendbox__attachment-drop-zone"],{[r["sendbox__attachment-drop-zone--droppable"]]:t==="droppable"}),"data-testid":m.sendBoxDropZone,onDragOver:no,onDrop:n,ref:a},He.createElement(G,{className:r["sendbox__attachment-drop-zone-icon"]}),d("TEXT_INPUT_DROP_ZONE")):null};Ie.displayName="DropZone";var Q=qt(Ie);import{hooks as Ho}from"botframework-webchat-component";import Lo from"classnames";import H,{memo as Io,useCallback as Do}from"react";import{hooks as wo}from"botframework-webchat-component";import To from"classnames";import te,{memo as ko,useCallback as _o}from"react";var De={"suggested-action":"s","suggested-action__image":"g"};import lo,{forwardRef as io,memo as co,useRef as uo}from"react";var mo=e=>e.preventDefault(),po=io(({"aria-hidden":e,children:t,disabled:o,onClick:r,tabIndex:a,...d},c)=>{let n=uo(null);return lo.createElement("button",{"aria-disabled":o?"true":"false","aria-hidden":e,onClick:o?mo:r,ref:c||n,tabIndex:a,...o&&{"aria-disabled":"true",tabIndex:-1},...d,type:"button"},t)}),Pe=co(po);import bo,{createContext as fo,memo as ho,useCallback as F,useContext as go,useEffect as xo,useMemo as yo,useRef as ee}from"react";var Ke=fo({itemEffector:()=>{throw new Error("botframework-webchat-fluent-theme rovingFocus: no provider for RovingFocusContext.")}});function vo(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=yo(()=>({itemEffector:u}),[u]);return bo.createElement(Ke.Provider,{value:b},e.children)}function Re(e){let t=ee(null),{itemEffector:o}=go(Ke);return xo(()=>o(t,e)),t}var ze=ho(vo);var{useDisabled:Bo,useFocus:No,usePerformCardAction:So,useScrollToEnd:Eo,useStyleSet:Co,useSuggestedActions:Fo}=wo;function Ao({buttonText:e,className:t,displayText:o,image:r,imageAlt:a,itemIndex:d,text:c,type:n,value:u}){let[b,s]=Fo(),[{suggestedAction:l}]=Co(),[p]=Bo(),g=No(),N=Re(d),_=So(),B=i(De),w=Eo(),T=_o(({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(Pe,{className:To(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 Oe=ko(Ao);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:Po,useLocalizer:Ko,useStyleOptions:Ro,useStyleSet:zo,useSuggestedActions:Oo}=Ho;function Uo(e){let[{suggestedActionLayout:t}]=Ro(),[{suggestedActions:o}]=zo(),r=i(re);return H.createElement("div",{"aria-label":e["aria-label"],"aria-live":"polite","aria-orientation":"vertical",className:Lo(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 Zo(){let e=i(re),t=Ko(),[o]=Oo(),r=Po(),a=Do(()=>{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(Oe,{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(ze,{onEscapeKey:a},H.createElement(Uo,{"aria-label":t("SUGGESTED_ACTIONS_LABEL_ALT"),className:e["suggested-actions"]},d))}var ne=Io(Zo);import{hooks as Go}from"botframework-webchat-component";import z,{useCallback as Ze,useRef as $o,memo as Vo}from"react";import{useRefFrom as Yo}from"use-ref-from";import ae from"classnames";import se,{memo as le}from"react";var R={sendbox__toolbar:"f","sendbox__toolbar-button":"x","sendbox__toolbar-button--selected":"k","sendbox__toolbar-separator":"m"};var Wo=e=>e.preventDefault(),E=le(e=>{let t=i(R);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?Wo: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(R);return se.createElement("div",{className:ae(t.sendbox__toolbar,e.className)},e.children)});de.displayName="Toolbar";var ie=le(e=>{let t=i(R);return se.createElement("div",{"aria-orientation":"vertical",className:ae(t["sendbox__toolbar-separator"],e.className),role:"separator"})});ie.displayName="ToolbarSeparator";var Ue={"sendbox__add-attachment":"B","sendbox__add-attachment-input":"F"};var{useLocalizer:qo,useStyleOptions:Jo}=Go;function Qo(e){let t=$o(null),o=i(Ue),r=qo(),[{uploadAccept:a,uploadMultiple:d}]=Jo(),c=Yo(e.onFilesAdded),n=Ze(()=>t.current?.click(),[t]),u=Ze(({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 je=Vo(Qo);import{hooks as tr}from"botframework-webchat-component";import or,{memo as rr}from"react";import nr from"classnames";var We={sendbox__attachment:"y"};var{useLocalizer:ar}=tr,sr={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 lr({attachments:e,className:t}){let o=i(We),r=ar({plural:!0});return e.length?or.createElement("div",{className:nr(o.sendbox__attachment,t)},r(sr,e.length)):null}var Xe=rr(lr);import ir,{memo as cr}from"react";var Ge={"sendbox__error-message":"N"};function ur(e){let t=i(Ge);return ir.createElement("span",{className:t["sendbox__error-message"],id:e.id,role:"alert"},e.error)}var $e=cr(ur);import Ve,{memo as mr,useCallback as pr}from"react";import{hooks as br}from"botframework-webchat-component";var{useLocalizer:fr}=br,Ye=mr(()=>{let[e,t]=k(),o=fr(),r=pr(()=>t(a=>!a),[t]);return Ve.createElement(E,{"aria-label":o("TEXT_INPUT_TELEPHONE_KEYPAD_BUTTON_ALT"),"data-testid":m.sendBoxTelephoneKeypadToolbarButton,onClick:r,selected:e},Ve.createElement(q,null))});Ye.displayName="SendBox.TelephoneKeypadToolbarButton";var qe=Ye;import ce from"classnames";import ue,{forwardRef as gr,useCallback as xr}from"react";var Je={"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 Qe=gr((e,t)=>{let o=i(Je),r=xr(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}))});Qe.displayName="TextArea";var et=Qe;import{hooks as yr}from"botframework-webchat-component";import{useMemo as tt}from"react";import{useRefFrom as vr}from"use-ref-from";var{useConnectivityStatus:wr,useLocalizer:Tr}=yr,kr=({attachments:e,message:t})=>{let[o]=wr(),r=Tr(),a=vr(o!=="connected"&&o!=="reconnected"?"offline":!t&&!e.length?"empty":void 0),d=tt(()=>Object.freeze(new Map().set("empty",r("SEND_BOX_IS_EMPTY_TOOLTIP_ALT")).set("offline",r("CONNECTIVITY_STATUS_ALT_FATAL"))),[r]);return tt(()=>Object.freeze([a,a.current&&d.get(a.current)]),[d,a])},ot=kr;import{useMemo as _r}from"react";function me(e){let t=_r(()=>Math.random().toString(36).substr(2,5),[]);return e=e?`${e}--`:"",`${e}${t}`}var rt={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"};import{useCallback as Nr}from"react";import{hooks as Sr}from"botframework-webchat-component";var{useScrollDown:Er,useScrollUp:Cr}=Sr;function pe(){let e=Er(),t=Cr();return Nr(o=>{if(o.target instanceof HTMLTextAreaElement&&o.target.value)return;let{ctrlKey:r,metaKey:a,shiftKey:d}=o;if(r||a||d)return;let c=!0;switch(o.key){case"End":e({displacement:1/0});break;case"Home":t({displacement:1/0});break;case"PageDown":e();break;case"PageUp":t();break;default:c=!1;break}c&&(o.preventDefault(),o.stopPropagation())},[e,t])}var{useFocus:Lr,useLocalizer:Ir,useMakeThumbnail:Dr,useRegisterFocusSendBox:Pr,useSendBoxAttachments:Kr,useSendMessage:Rr,useStyleOptions:zr}=Fr;function Or(e){let t=Mr(null),[o,r]=Hr(""),[a,d]=Kr(),[{hideTelephoneKeypadButton:c,hideUploadButton:n,maxMessageLength:u}]=zr(),b=!!u&&o.length>u,s=i(rt),l=Ir(),p=Rr(),g=Dr(),N=me("sendbox__error-message-id"),[_,B]=ot({message:o,attachments:a}),[w]=k(),T=Lr();Pr(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=nt(a),C=nt(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]),he=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]),at=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]),st=A(x=>p(`/DTMFKey ${x}`),[p]),lt=pe(),dt={"aria-invalid":"false",...B&&{"aria-invalid":"true","aria-errormessage":N}};return h.createElement("form",{...dt,className:L(s.sendbox,e.className),onSubmit:at},h.createElement(ne,null),h.createElement("div",{className:L(s.sendbox__sendbox),onClickCapture:O,onKeyDown:lt},h.createElement(et,{"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:st}),h.createElement(Xe,{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(qe,null),!n&&h.createElement(je,{onFilesAdded:he}),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:he}),h.createElement($e,{error:B,id:N})))}var be=Ar(Or);var{ThemeProvider:jr}=Ur,Wr=[()=>()=>()=>be],Xr=({children:e})=>fe.createElement(K,null,fe.createElement(j,null,fe.createElement(jr,{sendBoxMiddleware:Wr},e))),Gr=Zr(Xr);var Vr="tsup",Yr="esmodules",qr="4.17.1-main.20240625.336dd7c",El={buildTool:Vr,moduleFormat:Yr,version:qr};$r("botframework-webchat:fluent-theme","version=4.17.1-main.20240625.336dd7c; build-tool=tsup; module-format=esmodules");P();export{Gr as FluentThemeProvider,El as buildInfo,m as testIds};
|
|
1
|
+
import{injectMetaTag as $r}from"inject-meta-tag";import{Components as Ur}from"botframework-webchat-component";import fe,{memo as Zr}from"react";import ct,{memo as ut,useMemo as mt,useState as pt}from"react";import{createContext as it}from"react";var ge=it(new Proxy({},{get(){throw new Error("botframework-webchat: This hook can only used under its corresponding <Provider>.")}}));ge.displayName="TelephoneKeypad.Context";var D=ge;var bt=ut(({children:e})=>{let[t,o]=pt(!1),r=mt(()=>Object.freeze({setShown:o,shown:t}),[o,t]);return ct.createElement(D.Provider,{value:r},e)}),j=bt;import Ut,{memo as Zt}from"react";import{Components as Pt}from"botframework-webchat-component";import Kt from"classnames";import f,{memo as Ne,useCallback as v,useEffect as Rt,useRef as zt}from"react";import{useRefFrom as Be}from"use-ref-from";import W,{forwardRef as yt,memo as vt,useCallback as wt}from"react";import{useRefFrom as Tt}from"use-ref-from";var xe={"telephone-keypad__button":"r","telephone-keypad__button__ruby":"e","telephone-keypad__button__text":"o","telephone-keypad--horizontal":"l"};var ht=".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}@media only screen and (hover: none) and (pointer: coarse){.webchat-fluent .C:focus-within{font-size:16px}}.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(ht)),document.head.appendChild(e)}}import{useMemo as gt}from"react";function xt(e){return gt(()=>Object.freeze(Object.fromEntries(Object.entries(e).map(([t,o])=>[t,`${t} ${o}`]))),[e])}var i=xt;var ye=vt(yt(({button:e,"data-testid":t,onClick:o,ruby:r},a)=>{let d=i(xe),c=Tt(o),n=wt(()=>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==="*"?"\u2217":e),!!r&&W.createElement("ruby",{className:d["telephone-keypad__button__ruby"]},r))}));ye.displayName="TelephoneKeypad.Button";var y=ye;var kt={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=kt;import{useContext as _t,useMemo as Bt}from"react";function k(){let{setShown:e,shown:t}=_t(D);return Bt(()=>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 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:"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=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 20 20",width:"1em",xmlns:"http://www.w3.org/2000/svg"},we.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 $=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 16 16",width:"1em",xmlns:"http://www.w3.org/2000/svg"},Te.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=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:"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=Ht(Lt);import _e,{memo as It}from"react";function Dt(e){return _e.createElement("svg",{"aria-hidden":"true",className:e.className,height:"1em",viewBox:"0 0 20 20",width:"1em",xmlns:"http://www.w3.org/2000/svg"},_e.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=It(Dt);var{LocalizedString:Ot}=Pt,Se=Ne(({children:e,isHorizontal:t})=>{let o=i(X);return t?null:f.createElement("div",{className:o["telephone-keypad__box"]},e)});Se.displayName="TelephoneKeypad:Orientation";var Ee=Ne(({autoFocus:e,className:t,onButtonClick:o,isHorizontal:r})=>{let a=Be(e),d=i(X),c=zt(null),n=Be(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?.("*"),[n]),C=v(()=>n.current?.("#"),[n]),O=v(U=>{U.key==="Escape"&&u(!1)},[u]);return Rt(()=>{a.current&&c.current?.focus()},[a,c]),f.createElement("div",{className:Kt(d["telephone-keypad"],t),onKeyDown:O},f.createElement(Se,{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:"*","data-testid":m.sendBoxTelephoneKeypadButtonStar,onClick:S}),f.createElement(y,{button:"0","data-testid":m.sendBoxTelephoneKeypadButton0,onClick:T,ruby:"+"}),f.createElement(y,{button:"#","data-testid":m.sendBoxTelephoneKeypadButtonPound,onClick:C})),f.createElement("div",{className:d["telephone-keypad__info-message"]},f.createElement(V,null),f.createElement(Ot,{linkClassName:d["telephone-keypad__info-message-link"],stringIds:"TELEPHONE_KEYPAD_INPUT_MESSAGE"})))});Ee.displayName="TelephoneKeypad";var Ce=Ee;var Fe=Zt(e=>k()[0]?Ut.createElement(Ce,{...e}):null);Fe.displayName="TelephoneKeypad.Surrogate";var J=Fe;import Wt from"react";import Xt from"classnames";var Ae={theme:"a"};var Gt="webchat-fluent";function K(e){let t=i(Ae);return Wt.createElement("div",{className:Xt(Gt,t.theme)},e.children)}import{hooks as Fr}from"botframework-webchat-component";import L from"classnames";import h,{memo as Ar,useCallback as A,useRef as Mr,useState as Hr}from"react";import{useRefFrom as nt}from"use-ref-from";import{hooks as Vt}from"botframework-webchat-component";import Yt from"classnames";import He,{memo as qt,useCallback as Jt,useEffect as Qt,useRef as eo,useState as to}from"react";import{useRefFrom as oo}from"use-ref-from";var Me={"sendbox__attachment-drop-zone":"b","sendbox__attachment-drop-zone--droppable":"u","sendbox__attachment-drop-zone-icon":"h"};var{useLocalizer:ro}=Vt,no=e=>{e.preventDefault()},Le=e=>!!e.dataTransfer?.types?.some(t=>t.toLowerCase()==="files");function ao(e,t){let o=e.parentNode;for(;o;){if(o===t)return!0;o=o.parentNode}return!1}var Ie=e=>{let[t,o]=to(!1),r=i(Me),a=eo(null),d=ro(),c=oo(e.onFilesAdded);Qt(()=>{let u=0,b=l=>{u++,Le(l)&&o(a.current&&(l.target===a.current||l.target instanceof HTMLElement&&ao(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=Jt(u=>{u.preventDefault(),o(!1),Le(u.nativeEvent)&&c.current([...u.dataTransfer.files])},[c,o]);return t?He.createElement("div",{className:Yt(r["sendbox__attachment-drop-zone"],{[r["sendbox__attachment-drop-zone--droppable"]]:t==="droppable"}),"data-testid":m.sendBoxDropZone,onDragOver:no,onDrop:n,ref:a},He.createElement(G,{className:r["sendbox__attachment-drop-zone-icon"]}),d("TEXT_INPUT_DROP_ZONE")):null};Ie.displayName="DropZone";var Q=qt(Ie);import{hooks as Ho}from"botframework-webchat-component";import Lo from"classnames";import H,{memo as Io,useCallback as Do}from"react";import{hooks as wo}from"botframework-webchat-component";import To from"classnames";import te,{memo as ko,useCallback as _o}from"react";var De={"suggested-action":"s","suggested-action__image":"g"};import lo,{forwardRef as io,memo as co,useRef as uo}from"react";var mo=e=>e.preventDefault(),po=io(({"aria-hidden":e,children:t,disabled:o,onClick:r,tabIndex:a,...d},c)=>{let n=uo(null);return lo.createElement("button",{"aria-disabled":o?"true":"false","aria-hidden":e,onClick:o?mo:r,ref:c||n,tabIndex:a,...o&&{"aria-disabled":"true",tabIndex:-1},...d,type:"button"},t)}),Pe=co(po);import bo,{createContext as fo,memo as ho,useCallback as F,useContext as go,useEffect as xo,useMemo as yo,useRef as ee}from"react";var Ke=fo({itemEffector:()=>{throw new Error("botframework-webchat-fluent-theme rovingFocus: no provider for RovingFocusContext.")}});function vo(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=yo(()=>({itemEffector:u}),[u]);return bo.createElement(Ke.Provider,{value:b},e.children)}function Re(e){let t=ee(null),{itemEffector:o}=go(Ke);return xo(()=>o(t,e)),t}var ze=ho(vo);var{useDisabled:Bo,useFocus:No,usePerformCardAction:So,useScrollToEnd:Eo,useStyleSet:Co,useSuggestedActions:Fo}=wo;function Ao({buttonText:e,className:t,displayText:o,image:r,imageAlt:a,itemIndex:d,text:c,type:n,value:u}){let[b,s]=Fo(),[{suggestedAction:l}]=Co(),[p]=Bo(),g=No(),N=Re(d),_=So(),B=i(De),w=Eo(),T=_o(({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(Pe,{className:To(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 Oe=ko(Ao);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:Po,useLocalizer:Ko,useStyleOptions:Ro,useStyleSet:zo,useSuggestedActions:Oo}=Ho;function Uo(e){let[{suggestedActionLayout:t}]=Ro(),[{suggestedActions:o}]=zo(),r=i(re);return H.createElement("div",{"aria-label":e["aria-label"],"aria-live":"polite","aria-orientation":"vertical",className:Lo(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 Zo(){let e=i(re),t=Ko(),[o]=Oo(),r=Po(),a=Do(()=>{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(Oe,{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(ze,{onEscapeKey:a},H.createElement(Uo,{"aria-label":t("SUGGESTED_ACTIONS_LABEL_ALT"),className:e["suggested-actions"]},d))}var ne=Io(Zo);import{hooks as Go}from"botframework-webchat-component";import z,{useCallback as Ze,useRef as $o,memo as Vo}from"react";import{useRefFrom as Yo}from"use-ref-from";import ae from"classnames";import se,{memo as le}from"react";var R={sendbox__toolbar:"f","sendbox__toolbar-button":"x","sendbox__toolbar-button--selected":"k","sendbox__toolbar-separator":"m"};var Wo=e=>e.preventDefault(),E=le(e=>{let t=i(R);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?Wo: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(R);return se.createElement("div",{className:ae(t.sendbox__toolbar,e.className)},e.children)});de.displayName="Toolbar";var ie=le(e=>{let t=i(R);return se.createElement("div",{"aria-orientation":"vertical",className:ae(t["sendbox__toolbar-separator"],e.className),role:"separator"})});ie.displayName="ToolbarSeparator";var Ue={"sendbox__add-attachment":"B","sendbox__add-attachment-input":"F"};var{useLocalizer:qo,useStyleOptions:Jo}=Go;function Qo(e){let t=$o(null),o=i(Ue),r=qo(),[{uploadAccept:a,uploadMultiple:d}]=Jo(),c=Yo(e.onFilesAdded),n=Ze(()=>t.current?.click(),[t]),u=Ze(({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 je=Vo(Qo);import{hooks as tr}from"botframework-webchat-component";import or,{memo as rr}from"react";import nr from"classnames";var We={sendbox__attachment:"y"};var{useLocalizer:ar}=tr,sr={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 lr({attachments:e,className:t}){let o=i(We),r=ar({plural:!0});return e.length?or.createElement("div",{className:nr(o.sendbox__attachment,t)},r(sr,e.length)):null}var Xe=rr(lr);import ir,{memo as cr}from"react";var Ge={"sendbox__error-message":"N"};function ur(e){let t=i(Ge);return ir.createElement("span",{className:t["sendbox__error-message"],id:e.id,role:"alert"},e.error)}var $e=cr(ur);import Ve,{memo as mr,useCallback as pr}from"react";import{hooks as br}from"botframework-webchat-component";var{useLocalizer:fr}=br,Ye=mr(()=>{let[e,t]=k(),o=fr(),r=pr(()=>t(a=>!a),[t]);return Ve.createElement(E,{"aria-label":o("TEXT_INPUT_TELEPHONE_KEYPAD_BUTTON_ALT"),"data-testid":m.sendBoxTelephoneKeypadToolbarButton,onClick:r,selected:e},Ve.createElement(q,null))});Ye.displayName="SendBox.TelephoneKeypadToolbarButton";var qe=Ye;import ce from"classnames";import ue,{forwardRef as gr,useCallback as xr}from"react";var Je={"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 Qe=gr((e,t)=>{let o=i(Je),r=xr(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}))});Qe.displayName="TextArea";var et=Qe;import{hooks as yr}from"botframework-webchat-component";import{useMemo as tt}from"react";import{useRefFrom as vr}from"use-ref-from";var{useConnectivityStatus:wr,useLocalizer:Tr}=yr,kr=({attachments:e,message:t})=>{let[o]=wr(),r=Tr(),a=vr(o!=="connected"&&o!=="reconnected"?"offline":!t&&!e.length?"empty":void 0),d=tt(()=>Object.freeze(new Map().set("empty",r("SEND_BOX_IS_EMPTY_TOOLTIP_ALT")).set("offline",r("CONNECTIVITY_STATUS_ALT_FATAL"))),[r]);return tt(()=>Object.freeze([a,a.current&&d.get(a.current)]),[d,a])},ot=kr;import{useMemo as _r}from"react";function me(e){let t=_r(()=>Math.random().toString(36).substr(2,5),[]);return e=e?`${e}--`:"",`${e}${t}`}var rt={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"};import{useCallback as Nr}from"react";import{hooks as Sr}from"botframework-webchat-component";var{useScrollDown:Er,useScrollUp:Cr}=Sr;function pe(){let e=Er(),t=Cr();return Nr(o=>{if(o.target instanceof HTMLTextAreaElement&&o.target.value)return;let{ctrlKey:r,metaKey:a,shiftKey:d}=o;if(r||a||d)return;let c=!0;switch(o.key){case"End":e({displacement:1/0});break;case"Home":t({displacement:1/0});break;case"PageDown":e();break;case"PageUp":t();break;default:c=!1;break}c&&(o.preventDefault(),o.stopPropagation())},[e,t])}var{useFocus:Lr,useLocalizer:Ir,useMakeThumbnail:Dr,useRegisterFocusSendBox:Pr,useSendBoxAttachments:Kr,useSendMessage:Rr,useStyleOptions:zr}=Fr;function Or(e){let t=Mr(null),[o,r]=Hr(""),[a,d]=Kr(),[{hideTelephoneKeypadButton:c,hideUploadButton:n,maxMessageLength:u}]=zr(),b=!!u&&o.length>u,s=i(rt),l=Ir(),p=Rr(),g=Dr(),N=me("sendbox__error-message-id"),[_,B]=ot({message:o,attachments:a}),[w]=k(),T=Lr();Pr(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=nt(a),C=nt(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]),he=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]),at=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]),st=A(x=>p(`/DTMFKey ${x}`),[p]),lt=pe(),dt={"aria-invalid":"false",...B&&{"aria-invalid":"true","aria-errormessage":N}};return h.createElement("form",{...dt,className:L(s.sendbox,e.className),onSubmit:at},h.createElement(ne,null),h.createElement("div",{className:L(s.sendbox__sendbox),onClickCapture:O,onKeyDown:lt},h.createElement(et,{"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:st}),h.createElement(Xe,{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(qe,null),!n&&h.createElement(je,{onFilesAdded:he}),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:he}),h.createElement($e,{error:B,id:N})))}var be=Ar(Or);var{ThemeProvider:jr}=Ur,Wr=[()=>()=>()=>be],Xr=({children:e})=>fe.createElement(K,null,fe.createElement(j,null,fe.createElement(jr,{sendBoxMiddleware:Wr},e))),Gr=Zr(Xr);var Vr="tsup",Yr="esmodules",qr="4.17.1-main.20240708.c9247bf",El={buildTool:Vr,moduleFormat:Yr,version:qr};$r("botframework-webchat:fluent-theme","version=4.17.1-main.20240708.c9247bf; build-tool=tsup; module-format=esmodules");P();export{Gr as FluentThemeProvider,El 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 Ca=Object.create;var Vr=Object.defineProperty;var Oa=Object.getOwnPropertyDescriptor;var Ia=Object.getOwnPropertyNames;var Ma=Object.getPrototypeOf,Pa=Object.prototype.hasOwnProperty;var a=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var qa=(e,r,t,o)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of Ia(r))!Pa.call(e,n)&&n!==t&&Vr(e,n,{get:()=>r[n],enumerable:!(o=Oa(r,n))||o.enumerable});return e};var c=(e,r,t)=>(t=e!=null?Ca(Ma(e)):{},qa(r||!e||!e.__esModule?Vr(t,"default",{value:e,enumerable:!0}):t,e));var C=a((Hc,Gr)=>{Gr.exports={Components:globalThis.WebChat.Components,hooks:globalThis.WebChat.hooks}});var m=a((jc,Xr)=>{Xr.exports=globalThis.React});var P=a((Wc,ye)=>{(function(){"use strict";var e={}.hasOwnProperty;function r(){for(var n="",i=0;i<arguments.length;i++){var l=arguments[i];l&&(n=o(n,t(l)))}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 l in n)e.call(n,l)&&n[l]&&(i=o(i,l));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 L=a((Ke,Qr)=>{"use strict";var ne=function(e){return e&&e.Math===Math&&e};Qr.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((Zc,et)=>{"use strict";et.exports=function(e){try{return!!e()}catch{return!0}}});var ae=a(($c,rt)=>{"use strict";var Da=H();rt.exports=!Da(function(){var e=(function(){}).bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var it=a((Vc,at)=>{"use strict";var La=ae(),nt=Function.prototype,tt=nt.apply,ot=nt.call;at.exports=typeof Reflect=="object"&&Reflect.apply||(La?ot.bind(tt):function(){return ot.apply(tt,arguments)})});var j=a((Gc,ct)=>{"use strict";var st=ae(),lt=Function.prototype,ze=lt.call,Ra=st&<.bind.bind(ze,ze);ct.exports=st?Ra:function(e){return function(){return ze.apply(e,arguments)}}});var Ue=a((Xc,ut)=>{"use strict";var dt=j(),Ha=dt({}.toString),ja=dt("".slice);ut.exports=function(e){return ja(Ha(e),8,-1)}});var We=a((Yc,pt)=>{"use strict";var Ka=Ue(),za=j();pt.exports=function(e){if(Ka(e)==="Function")return za(e)}});var K=a((Jc,ft)=>{"use strict";var Ze=typeof document=="object"&&document.all;ft.exports=typeof Ze>"u"&&Ze!==void 0?function(e){return typeof e=="function"||e===Ze}:function(e){return typeof e=="function"}});var z=a((Qc,mt)=>{"use strict";var Ua=H();mt.exports=!Ua(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var we=a((ed,bt)=>{"use strict";var Wa=ae(),xe=Function.prototype.call;bt.exports=Wa?xe.bind(xe):function(){return xe.apply(xe,arguments)}});var yt=a(gt=>{"use strict";var ht={}.propertyIsEnumerable,vt=Object.getOwnPropertyDescriptor,Za=vt&&!ht.call({1:2},1);gt.f=Za?function(r){var t=vt(this,r);return!!t&&t.enumerable}:ht});var $e=a((td,xt)=>{"use strict";xt.exports=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}}});var Tt=a((od,wt)=>{"use strict";var $a=j(),Va=H(),Ga=Ue(),Ve=Object,Xa=$a("".split);wt.exports=Va(function(){return!Ve("z").propertyIsEnumerable(0)})?function(e){return Ga(e)==="String"?Xa(e,""):Ve(e)}:Ve});var Ge=a((nd,kt)=>{"use strict";kt.exports=function(e){return e==null}});var Xe=a((ad,St)=>{"use strict";var Ya=Ge(),Ja=TypeError;St.exports=function(e){if(Ya(e))throw new Ja("Can't call method on "+e);return e}});var ie=a((id,_t)=>{"use strict";var Qa=Tt(),ei=Xe();_t.exports=function(e){return Qa(ei(e))}});var se=a((sd,Bt)=>{"use strict";var ri=K();Bt.exports=function(e){return typeof e=="object"?e!==null:ri(e)}});var Te=a((ld,Nt)=>{"use strict";Nt.exports={}});var Qe=a((cd,Ft)=>{"use strict";var Ye=Te(),Je=L(),ti=K(),Et=function(e){return ti(e)?e:void 0};Ft.exports=function(e,r){return arguments.length<2?Et(Ye[e])||Et(Je[e]):Ye[e]&&Ye[e][r]||Je[e]&&Je[e][r]}});var Ot=a((dd,Ct)=>{"use strict";var oi=j();Ct.exports=oi({}.isPrototypeOf)});var Mt=a((ud,It)=>{"use strict";It.exports=typeof navigator<"u"&&String(navigator.userAgent)||""});var Ht=a((pd,Rt)=>{"use strict";var Lt=L(),er=Mt(),Pt=Lt.process,qt=Lt.Deno,At=Pt&&Pt.versions||qt&&qt.version,Dt=At&&At.v8,I,ke;Dt&&(I=Dt.split("."),ke=I[0]>0&&I[0]<4?1:+(I[0]+I[1]));!ke&&er&&(I=er.match(/Edge\/(\d+)/),(!I||I[1]>=74)&&(I=er.match(/Chrome\/(\d+)/),I&&(ke=+I[1])));Rt.exports=ke});var rr=a((fd,Kt)=>{"use strict";var jt=Ht(),ni=H(),ai=L(),ii=ai.String;Kt.exports=!!Object.getOwnPropertySymbols&&!ni(function(){var e=Symbol("symbol detection");return!ii(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&jt&&jt<41})});var tr=a((md,zt)=>{"use strict";var si=rr();zt.exports=si&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var or=a((bd,Ut)=>{"use strict";var li=Qe(),ci=K(),di=Ot(),ui=tr(),pi=Object;Ut.exports=ui?function(e){return typeof e=="symbol"}:function(e){var r=li("Symbol");return ci(r)&&di(r.prototype,pi(e))}});var Zt=a((hd,Wt)=>{"use strict";var fi=String;Wt.exports=function(e){try{return fi(e)}catch{return"Object"}}});var nr=a((vd,$t)=>{"use strict";var mi=K(),bi=Zt(),hi=TypeError;$t.exports=function(e){if(mi(e))return e;throw new hi(bi(e)+" is not a function")}});var Gt=a((gd,Vt)=>{"use strict";var vi=nr(),gi=Ge();Vt.exports=function(e,r){var t=e[r];return gi(t)?void 0:vi(t)}});var Yt=a((yd,Xt)=>{"use strict";var ar=we(),ir=K(),sr=se(),yi=TypeError;Xt.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 yi("Can't convert object to primitive value")}});var Qt=a((xd,Jt)=>{"use strict";Jt.exports=!0});var to=a((wd,ro)=>{"use strict";var eo=L(),xi=Object.defineProperty;ro.exports=function(e,r){try{xi(eo,e,{value:r,configurable:!0,writable:!0})}catch{eo[e]=r}return r}});var lr=a((Td,ao)=>{"use strict";var wi=Qt(),Ti=L(),ki=to(),oo="__core-js_shared__",no=ao.exports=Ti[oo]||ki(oo,{});(no.versions||(no.versions=[])).push({version:"3.36.1",mode:wi?"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 cr=a((kd,so)=>{"use strict";var io=lr();so.exports=function(e,r){return io[e]||(io[e]=r||{})}});var co=a((Sd,lo)=>{"use strict";var Si=Xe(),_i=Object;lo.exports=function(e){return _i(Si(e))}});var le=a((_d,uo)=>{"use strict";var Bi=j(),Ni=co(),Ei=Bi({}.hasOwnProperty);uo.exports=Object.hasOwn||function(r,t){return Ei(Ni(r),t)}});var dr=a((Bd,po)=>{"use strict";var Fi=j(),Ci=0,Oi=Math.random(),Ii=Fi(1 .toString);po.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Ii(++Ci+Oi,36)}});var bo=a((Nd,mo)=>{"use strict";var Mi=L(),Pi=cr(),fo=le(),qi=dr(),Ai=rr(),Di=tr(),J=Mi.Symbol,ur=Pi("wks"),Li=Di?J.for||J:J&&J.withoutSetter||qi;mo.exports=function(e){return fo(ur,e)||(ur[e]=Ai&&fo(J,e)?J[e]:Li("Symbol."+e)),ur[e]}});var yo=a((Ed,go)=>{"use strict";var Ri=we(),ho=se(),vo=or(),Hi=Gt(),ji=Yt(),Ki=bo(),zi=TypeError,Ui=Ki("toPrimitive");go.exports=function(e,r){if(!ho(e)||vo(e))return e;var t=Hi(e,Ui),o;if(t){if(r===void 0&&(r="default"),o=Ri(t,e,r),!ho(o)||vo(o))return o;throw new zi("Can't convert object to primitive value")}return r===void 0&&(r="number"),ji(e,r)}});var pr=a((Fd,xo)=>{"use strict";var Wi=yo(),Zi=or();xo.exports=function(e){var r=Wi(e,"string");return Zi(r)?r:r+""}});var mr=a((Cd,To)=>{"use strict";var $i=L(),wo=se(),fr=$i.document,Vi=wo(fr)&&wo(fr.createElement);To.exports=function(e){return Vi?fr.createElement(e):{}}});var br=a((Od,ko)=>{"use strict";var Gi=z(),Xi=H(),Yi=mr();ko.exports=!Gi&&!Xi(function(){return Object.defineProperty(Yi("div"),"a",{get:function(){return 7}}).a!==7})});var Bo=a(_o=>{"use strict";var Ji=z(),Qi=we(),es=yt(),rs=$e(),ts=ie(),os=pr(),ns=le(),as=br(),So=Object.getOwnPropertyDescriptor;_o.f=Ji?So:function(r,t){if(r=ts(r),t=os(t),as)try{return So(r,t)}catch{}if(ns(r,t))return rs(!Qi(es.f,r,t),r[t])}});var Eo=a((Md,No)=>{"use strict";var is=H(),ss=K(),ls=/#|\.prototype\./,ce=function(e,r){var t=ds[cs(e)];return t===ps?!0:t===us?!1:ss(r)?is(r):!!r},cs=ce.normalize=function(e){return String(e).replace(ls,".").toLowerCase()},ds=ce.data={},us=ce.NATIVE="N",ps=ce.POLYFILL="P";No.exports=ce});var Oo=a((Pd,Co)=>{"use strict";var Fo=We(),fs=nr(),ms=ae(),bs=Fo(Fo.bind);Co.exports=function(e,r){return fs(e),r===void 0?e:ms?bs(e,r):function(){return e.apply(r,arguments)}}});var hr=a((qd,Io)=>{"use strict";var hs=z(),vs=H();Io.exports=hs&&vs(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var Se=a((Ad,Mo)=>{"use strict";var gs=se(),ys=String,xs=TypeError;Mo.exports=function(e){if(gs(e))return e;throw new xs(ys(e)+" is not an object")}});var wr=a(qo=>{"use strict";var ws=z(),Ts=br(),ks=hr(),_e=Se(),Po=pr(),Ss=TypeError,vr=Object.defineProperty,_s=Object.getOwnPropertyDescriptor,gr="enumerable",yr="configurable",xr="writable";qo.f=ws?ks?function(r,t,o){if(_e(r),t=Po(t),_e(o),typeof r=="function"&&t==="prototype"&&"value"in o&&xr in o&&!o[xr]){var n=_s(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=Po(t),_e(o),Ts)try{return vr(r,t,o)}catch{}if("get"in o||"set"in o)throw new Ss("Accessors not supported");return"value"in o&&(r[t]=o.value),r}});var Do=a((Ld,Ao)=>{"use strict";var Bs=z(),Ns=wr(),Es=$e();Ao.exports=Bs?function(e,r,t){return Ns.f(e,r,Es(1,t))}:function(e,r,t){return e[r]=t,e}});var Ho=a((Rd,Ro)=>{"use strict";var de=L(),Fs=it(),Cs=We(),Os=K(),Is=Bo().f,Ms=Eo(),Q=Te(),Ps=Oo(),ee=Do(),Lo=le();lr();var qs=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 Fs(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,l=o?de:n?de[t]:de[t]&&de[t].prototype,s=o?Q:Q[t]||ee(Q,t,{})[t],h=s.prototype,x,d,u,f,g,B,_,T,S;for(f in r)x=Ms(o?f:t+(n?".":"#")+f,e.forced),d=!x&&l&&Lo(l,f),B=s[f],d&&(e.dontCallGetSet?(S=Is(l,f),_=S&&S.value):_=l[f]),g=d&&_?_:r[f],!(!x&&!i&&typeof B==typeof g)&&(e.bind&&d?T=Ps(g,de):e.wrap&&d?T=qs(g):i&&Os(g)?T=Cs(g):T=g,(e.sham||g&&g.sham||B&&B.sham)&&ee(T,"sham",!0),ee(s,f,T),i&&(u=t+"Prototype",Lo(Q,u)||ee(Q,u,{}),ee(Q[u],f,g),e.real&&h&&(x||!h[f])&&ee(h,f,g)))}});var Ko=a((Hd,jo)=>{"use strict";var As=Math.ceil,Ds=Math.floor;jo.exports=Math.trunc||function(r){var t=+r;return(t>0?Ds:As)(t)}});var Tr=a((jd,zo)=>{"use strict";var Ls=Ko();zo.exports=function(e){var r=+e;return r!==r||r===0?0:Ls(r)}});var Wo=a((Kd,Uo)=>{"use strict";var Rs=Tr(),Hs=Math.max,js=Math.min;Uo.exports=function(e,r){var t=Rs(e);return t<0?Hs(t+r,0):js(t,r)}});var $o=a((zd,Zo)=>{"use strict";var Ks=Tr(),zs=Math.min;Zo.exports=function(e){var r=Ks(e);return r>0?zs(r,9007199254740991):0}});var Go=a((Ud,Vo)=>{"use strict";var Us=$o();Vo.exports=function(e){return Us(e.length)}});var Jo=a((Wd,Yo)=>{"use strict";var Ws=ie(),Zs=Wo(),$s=Go(),Xo=function(e){return function(r,t,o){var n=Ws(r),i=$s(n);if(i===0)return!e&&-1;var l=Zs(o,i),s;if(e&&t!==t){for(;i>l;)if(s=n[l++],s!==s)return!0}else for(;i>l;l++)if((e||l in n)&&n[l]===t)return e||l||0;return!e&&-1}};Yo.exports={includes:Xo(!0),indexOf:Xo(!1)}});var kr=a((Zd,Qo)=>{"use strict";Qo.exports={}});var tn=a(($d,rn)=>{"use strict";var Vs=j(),Sr=le(),Gs=ie(),Xs=Jo().indexOf,Ys=kr(),en=Vs([].push);rn.exports=function(e,r){var t=Gs(e),o=0,n=[],i;for(i in t)!Sr(Ys,i)&&Sr(t,i)&&en(n,i);for(;r.length>o;)Sr(t,i=r[o++])&&(~Xs(n,i)||en(n,i));return n}});var _r=a((Vd,on)=>{"use strict";on.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var an=a((Gd,nn)=>{"use strict";var Js=tn(),Qs=_r();nn.exports=Object.keys||function(r){return Js(r,Qs)}});var ln=a(sn=>{"use strict";var el=z(),rl=hr(),tl=wr(),ol=Se(),nl=ie(),al=an();sn.f=el&&!rl?Object.defineProperties:function(r,t){ol(r);for(var o=nl(t),n=al(t),i=n.length,l=0,s;i>l;)tl.f(r,s=n[l++],o[s]);return r}});var dn=a((Yd,cn)=>{"use strict";var il=Qe();cn.exports=il("document","documentElement")});var fn=a((Jd,pn)=>{"use strict";var sl=cr(),ll=dr(),un=sl("keys");pn.exports=function(e){return un[e]||(un[e]=ll(e))}});var wn=a((Qd,xn)=>{"use strict";var cl=Se(),dl=ln(),mn=_r(),ul=kr(),pl=dn(),fl=mr(),ml=fn(),bn=">",hn="<",Nr="prototype",Er="script",gn=ml("IE_PROTO"),Br=function(){},yn=function(e){return hn+Er+bn+e+hn+"/"+Er+bn},vn=function(e){e.write(yn("")),e.close();var r=e.parentWindow.Object;return e=null,r},bl=function(){var e=fl("iframe"),r="java"+Er+":",t;return e.style.display="none",pl.appendChild(e),e.src=String(r),t=e.contentWindow.document,t.open(),t.write(yn("document.F=Object")),t.close(),t.F},Be,Ne=function(){try{Be=new ActiveXObject("htmlfile")}catch{}Ne=typeof document<"u"?document.domain&&Be?vn(Be):bl():vn(Be);for(var e=mn.length;e--;)delete Ne[Nr][mn[e]];return Ne()};ul[gn]=!0;xn.exports=Object.create||function(r,t){var o;return r!==null?(Br[Nr]=cl(r),o=new Br,Br[Nr]=null,o[gn]=r):o=Ne(),t===void 0?o:dl.f(o,t)}});var Tn=a(()=>{"use strict";var hl=Ho(),vl=z(),gl=wn();hl({target:"Object",stat:!0,sham:!vl},{create:gl})});var Sn=a((tu,kn)=>{"use strict";Tn();var yl=Te(),xl=yl.Object;kn.exports=function(r,t){return xl.create(r,t)}});var Bn=a((ou,_n)=>{"use strict";var wl=Sn();_n.exports=wl});var En=a((nu,Nn)=>{Nn.exports=Bn()});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 _a=c(C()),te=c(m());var R=c(m());var Yr=c(m()),Jr=(0,Yr.createContext)(new Proxy({},{get(){throw new Error("botframework-webchat: This hook can only used under its corresponding <Provider>.")}}));Jr.displayName="TelephoneKeypad.Context";var ge=Jr;var Aa=(0,R.memo)(({children:e})=>{let[r,t]=(0,R.useState)(!1),o=(0,R.useMemo)(()=>Object.freeze({setShown:t,shown:r}),[t,r]);return R.default.createElement(ge.Provider,{value:o},e)}),je=Aa;var Oe=c(m());var Mn=c(C()),Pn=c(P()),p=c(m());var Fn=c(En()),Ee=c(m());function k(e){var r=(0,Ee.useRef)(),t=(0,Ee.useMemo)(function(){return(0,Fn.default)({},{current:{get:function(){return r.current}}})},[r]);return r.current=e,t}var q=c(m());var Cn={"telephone-keypad__button":"r","telephone-keypad__button__ruby":"e","telephone-keypad__button__text":"o","telephone-keypad--horizontal":"l"};var kl=".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}@media only screen and (hover: none) and (pointer: coarse){.webchat-fluent .C:focus-within{font-size:16px}}.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(kl)),document.head.appendChild(e)}}var On=c(m());function Sl(e){return(0,On.useMemo)(()=>Object.freeze(Object.fromEntries(Object.entries(e).map(([r,t])=>[r,`${r} ${t}`]))),[e])}var v=Sl;var In=(0,q.memo)((0,q.forwardRef)(({button:e,"data-testid":r,onClick:t,ruby:o},n)=>{let i=v(Cn),l=k(t),s=(0,q.useCallback)(()=>l.current?.(),[l]);return q.default.createElement("button",{className:i["telephone-keypad__button"],"data-testid":r,onClick:s,ref:n,type:"button"},q.default.createElement("span",{className:i["telephone-keypad__button__text"]},e==="*"?"\u2217":e),!!o&&q.default.createElement("ruby",{className:i["telephone-keypad__button__ruby"]},o))}));In.displayName="TelephoneKeypad.Button";var E=In;var _l={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=_l;var Ce=c(m());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=c(m());function Nl(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)(Nl);var pe=c(m());function El(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)(El);var fe=c(m());function Fl(e){return fe.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"},fe.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,fe.memo)(Fl);var me=c(m());function Cl(e){return me.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"},me.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,me.memo)(Cl);var be=c(m());function Ol(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 Pr=(0,be.memo)(Ol);var{LocalizedString:Il}=Mn.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 An=(0,p.memo)(({autoFocus:e,className:r,onButtonClick:t,isHorizontal:o})=>{let n=k(e),i=v(Fr),l=(0,p.useRef)(null),s=k(t),[,h]=A(),x=(0,p.useCallback)(()=>s.current?.("1"),[s]),d=(0,p.useCallback)(()=>s.current?.("2"),[s]),u=(0,p.useCallback)(()=>s.current?.("3"),[s]),f=(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]),S=(0,p.useCallback)(()=>s.current?.("9"),[s]),M=(0,p.useCallback)(()=>s.current?.("0"),[s]),V=(0,p.useCallback)(()=>s.current?.("*"),[s]),Y=(0,p.useCallback)(()=>s.current?.("#"),[s]),Le=(0,p.useCallback)(Re=>{Re.key==="Escape"&&h(!1)},[h]);return(0,p.useEffect)(()=>{n.current&&l.current?.focus()},[n,l]),p.default.createElement("div",{className:(0,Pn.default)(i["telephone-keypad"],r),onKeyDown:Le},p.default.createElement(qn,{isHorizontal:o},p.default.createElement(E,{button:"1","data-testid":y.sendBoxTelephoneKeypadButton1,onClick:x,ref:l}),p.default.createElement(E,{button:"2","data-testid":y.sendBoxTelephoneKeypadButton2,onClick:d,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:f,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:S,ruby:"WXYZ"}),p.default.createElement(E,{button:"*","data-testid":y.sendBoxTelephoneKeypadButtonStar,onClick:V}),p.default.createElement(E,{button:"0","data-testid":y.sendBoxTelephoneKeypadButton0,onClick:M,ruby:"+"}),p.default.createElement(E,{button:"#","data-testid":y.sendBoxTelephoneKeypadButtonPound,onClick:Y})),p.default.createElement("div",{className:i["telephone-keypad__info-message"]},p.default.createElement(Ir,null),p.default.createElement(Il,{linkClassName:i["telephone-keypad__info-message-link"],stringIds:"TELEPHONE_KEYPAD_INPUT_MESSAGE"})))});An.displayName="TelephoneKeypad";var Dn=An;var Ln=(0,Oe.memo)(e=>A()[0]?Oe.default.createElement(Dn,{...e}):null);Ln.displayName="TelephoneKeypad.Surrogate";var qr=Ln;var Hn=c(m()),jn=c(P());var Rn={theme:"a"};var Pl="webchat-fluent";function Ie(e){let r=v(Rn);return Hn.default.createElement("div",{className:(0,jn.default)(Pl,r.theme)},e.children)}var Sa=c(C()),re=c(P()),b=c(m());var Un=c(C()),Wn=c(P()),F=c(m());var Kn={"sendbox__attachment-drop-zone":"b","sendbox__attachment-drop-zone--droppable":"u","sendbox__attachment-drop-zone-icon":"h"};var{useLocalizer:Al}=Un.hooks,Dl=e=>{e.preventDefault()},zn=e=>!!e.dataTransfer?.types?.some(r=>r.toLowerCase()==="files");function Ll(e,r){let t=e.parentNode;for(;t;){if(t===r)return!0;t=t.parentNode}return!1}var Zn=e=>{let[r,t]=(0,F.useState)(!1),o=v(Kn),n=(0,F.useRef)(null),i=Al(),l=k(e.onFilesAdded);(0,F.useEffect)(()=>{let h=0,x=u=>{h++,zn(u)&&t(n.current&&(u.target===n.current||u.target instanceof HTMLElement&&Ll(u.target,n.current))?"droppable":"visible")},d=()=>--h<=0&&t(!1);return document.addEventListener("dragenter",x,!1),document.addEventListener("dragleave",d,!1),()=>{document.removeEventListener("dragenter",x),document.removeEventListener("dragleave",d)}},[t]);let s=(0,F.useCallback)(h=>{h.preventDefault(),t(!1),zn(h.nativeEvent)&&l.current([...h.dataTransfer.files])},[l,t]);return r?F.default.createElement("div",{className:(0,Wn.default)(o["sendbox__attachment-drop-zone"],{[o["sendbox__attachment-drop-zone--droppable"]]:r==="droppable"}),"data-testid":y.sendBoxDropZone,onDragOver:Dl,onDrop:s,ref:n},F.default.createElement(Cr,{className:o["sendbox__attachment-drop-zone-icon"]}),i("TEXT_INPUT_DROP_ZONE")):null};Zn.displayName="DropZone";var Ar=(0,F.memo)(Zn);var ra=c(C()),ta=c(P()),D=c(m());var Jn=c(C()),Qn=c(P()),W=c(m());var $n={"suggested-action":"s","suggested-action__image":"g"};var U=c(m()),Hl=e=>e.preventDefault(),jl=(0,U.forwardRef)(({"aria-hidden":e,children:r,disabled:t,onClick:o,tabIndex:n,...i},l)=>{let s=(0,U.useRef)(null);return U.default.createElement("button",{"aria-disabled":t?"true":"false","aria-hidden":e,onClick:t?Hl:o,ref:l||s,tabIndex:n,...t&&{"aria-disabled":"true",tabIndex:-1},...i,type:"button"},r)}),Vn=(0,U.memo)(jl);var w=c(m()),Gn=(0,w.createContext)({itemEffector:()=>{throw new Error("botframework-webchat-fluent-theme rovingFocus: no provider for RovingFocusContext.")}});function Kl(e){let r=(0,w.useRef)(0),t=(0,w.useRef)([]),o=(0,w.useCallback)(({current:d},u)=>d&&(d.tabIndex=r.current===u?0:-1),[r]),n=(0,w.useCallback)(d=>{let u;typeof d=="number"?u=d:u=d(r.current),u&&!t.current.at(u)?.current&&(u=0),r.current!==u&&(r.current=u,t.current.forEach((f,g)=>o(f,g)),t.current.at(u)?.current?.focus())},[o,t,r]),i=(0,w.useCallback)(d=>{let{target:u}=d,f=t.current.findIndex(({current:g})=>g===u);f!==-1&&n(f)},[t,n]),l=(0,w.useCallback)(d=>u=>{let f=!e.direction,g=/up|down/iu.test(d)&&e.direction==="vertical",B=/left|right/iu.test(d)&&e.direction==="horizontal",_=/right|down/iu.test(d),T=f||g||B?_?1:-1:0,S=t.current.map((V,Y)=>Y),M=S.indexOf(u)+T;return S.at(M)??0},[e.direction]),s=(0,w.useCallback)(d=>{let{key:u}=d;switch(u){case"Up":case"ArrowUp":case"Left":case"ArrowLeft":case"Down":case"ArrowDown":case"Right":case"ArrowRight":n(l(u));break;case"Home":n(0);break;case"End":n(-1);break;case"Escape":e.onEscapeKey?.();break;default:return}d.preventDefault(),d.stopPropagation()},[n,l,e]),h=(0,w.useCallback)((d,u)=>{let{current:f}=d;return t.current[Number(u)]=d,f.addEventListener("focus",i),f.addEventListener("keydown",s),o(d,u),()=>{f.removeEventListener("focus",i),f.removeEventListener("keydown",s),delete t.current[Number(u)]}},[i,s,o,t]),x=(0,w.useMemo)(()=>({itemEffector:h}),[h]);return w.default.createElement(Gn.Provider,{value:x},e.children)}function Xn(e){let r=(0,w.useRef)(null),{itemEffector:t}=(0,w.useContext)(Gn);return(0,w.useEffect)(()=>t(r,e)),r}var Yn=(0,w.memo)(Kl);var{useDisabled:zl,useFocus:Ul,usePerformCardAction:Wl,useScrollToEnd:Zl,useStyleSet:$l,useSuggestedActions:Vl}=Jn.hooks;function Gl({buttonText:e,className:r,displayText:t,image:o,imageAlt:n,itemIndex:i,text:l,type:s,value:h}){let[x,d]=Vl(),[{suggestedAction:u}]=$l(),[f]=zl(),g=Ul(),B=Xn(i),_=Wl(),T=v($n),S=Zl(),M=(0,W.useCallback)(({target:V})=>{(async function(){await g("sendBoxWithoutKeyboard"),_({displayText:t,text:l,type:s,value:h},{target:V}),s==="openUrl"&&d([]),S()})()},[t,g,_,S,d,l,s,h]);return W.default.createElement(Vn,{className:(0,Qn.default)(T["suggested-action"],u+"",(r||"")+""),disabled:f,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 ea=(0,W.memo)(Gl);function Dr(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 Lr={"suggested-actions":"p","suggested-actions--flow":"w","suggested-actions--stacked":"v"};var{useFocus:Yl,useLocalizer:Jl,useStyleOptions:Ql,useStyleSet:ec,useSuggestedActions:rc}=ra.hooks;function tc(e){let[{suggestedActionLayout:r}]=Ql(),[{suggestedActions:t}]=ec(),o=v(Lr);return D.default.createElement("div",{"aria-label":e["aria-label"],"aria-live":"polite","aria-orientation":"vertical",className:(0,ta.default)(o["suggested-actions"],t+"",{[o["suggested-actions--flow"]]:r==="flow",[o["suggested-actions--stacked"]]:r!=="flow"},e.className),role:"toolbar"},!!e.children&&!!D.default.Children.count(e.children)&&e.children)}function oc(){let e=v(Lr),r=Jl(),[t]=rc(),o=Yl(),n=(0,D.useCallback)(()=>{o("sendBox")},[o]),i=t.map((l,s)=>{let{displayText:h,image:x,imageAltText:d,text:u,type:f,value:g}=l;return t?.length?D.default.createElement(ea,{buttonText:Dr(l),displayText:h,image:x,imageAlt:x&&(d||u),itemIndex:s,key:s,text:u,type:f,value:g}):null});return D.default.createElement(Yn,{onEscapeKey:n},D.default.createElement(tc,{"aria-label":r("SUGGESTED_ACTIONS_LABEL_ALT"),className:e["suggested-actions"]},i))}var Rr=(0,D.memo)(oc);var na=c(C()),O=c(m());var Pe=c(P()),Z=c(m());var Me={sendbox__toolbar:"f","sendbox__toolbar-button":"x","sendbox__toolbar-button--selected":"k","sendbox__toolbar-separator":"m"};var ac=e=>e.preventDefault(),G=(0,Z.memo)(e=>{let r=v(Me);return Z.default.createElement("button",{"aria-label":e["aria-label"],className:(0,Pe.default)(r["sendbox__toolbar-button"],e.className,{[r["sendbox__toolbar-button--selected"]]:e.selected}),"data-testid":e["data-testid"],onClick:e.disabled?ac: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,Pe.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,Pe.default)(r["sendbox__toolbar-separator"],e.className),role:"separator"})});jr.displayName="ToolbarSeparator";var oa={"sendbox__add-attachment":"B","sendbox__add-attachment-input":"F"};var{useLocalizer:sc,useStyleOptions:lc}=na.hooks;function cc(e){let r=(0,O.useRef)(null),t=v(oa),o=sc(),[{uploadAccept:n,uploadMultiple:i}]=lc(),l=k(e.onFilesAdded),s=(0,O.useCallback)(()=>r.current?.click(),[r]),h=(0,O.useCallback)(({target:{files:x}})=>{x&&(l.current?.([...x]),r.current&&(r.current.value=""))},[r,l]);return O.default.createElement("div",{className:t["sendbox__add-attachment"]},O.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"}),O.default.createElement(G,{"aria-label":o("TEXT_INPUT_UPLOAD_BUTTON_ALT"),"data-testid":y.sendBoxUploadButton,onClick:s},O.default.createElement(Or,null)))}var aa=(0,O.memo)(cc);var sa=c(C()),qe=c(m()),la=c(P());var ia={sendbox__attachment:"y"};var{useLocalizer:uc}=sa.hooks,pc={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 fc({attachments:e,className:r}){let t=v(ia),o=uc({plural:!0});return e.length?qe.default.createElement("div",{className:(0,la.default)(t.sendbox__attachment,r)},o(pc,e.length)):null}var ca=(0,qe.memo)(fc);var Ae=c(m());var da={"sendbox__error-message":"N"};function bc(e){let r=v(da);return Ae.default.createElement("span",{className:r["sendbox__error-message"],id:e.id,role:"alert"},e.error)}var ua=(0,Ae.memo)(bc);var X=c(m()),pa=c(C());var{useLocalizer:hc}=pa.hooks,fa=(0,X.memo)(()=>{let[e,r]=A(),t=hc(),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(Pr,null))});fa.displayName="SendBox.TelephoneKeypadToolbarButton";var ma=fa;var De=c(P()),$=c(m());var ba={"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 ha=(0,$.forwardRef)((e,r)=>{let t=v(ba),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,De.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,De.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,De.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}))});ha.displayName="TextArea";var va=ha;var ga=c(C()),Kr=c(m());var{useConnectivityStatus:gc,useLocalizer:yc}=ga.hooks,xc=({attachments:e,message:r})=>{let[t]=gc(),o=yc(),n=k(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])},ya=xc;var xa=c(m());function zr(e){let r=(0,xa.useMemo)(()=>Math.random().toString(36).substr(2,5),[]);return e=e?`${e}--`:"",`${e}${r}`}var wa={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 Ta=c(m()),ka=c(C()),{useScrollDown:Tc,useScrollUp:kc}=ka.hooks;function Ur(){let e=Tc(),r=kc();return(0,Ta.useCallback)(t=>{if(t.target instanceof HTMLTextAreaElement&&t.target.value)return;let{ctrlKey:o,metaKey:n,shiftKey:i}=t;if(o||n||i)return;let l=!0;switch(t.key){case"End":e({displacement:1/0});break;case"Home":r({displacement:1/0});break;case"PageDown":e();break;case"PageUp":r();break;default:l=!1;break}l&&(t.preventDefault(),t.stopPropagation())},[e,r])}var{useFocus:Sc,useLocalizer:_c,useMakeThumbnail:Bc,useRegisterFocusSendBox:Nc,useSendBoxAttachments:Ec,useSendMessage:Fc,useStyleOptions:Cc}=Sa.hooks;function Oc(e){let r=(0,b.useRef)(null),[t,o]=(0,b.useState)(""),[n,i]=Ec(),[{hideTelephoneKeypadButton:l,hideUploadButton:s,maxMessageLength:h}]=Cc(),x=!!h&&t.length>h,d=v(wa),u=_c(),f=Fc(),g=Bc(),B=zr("sendbox__error-message-id"),[_,T]=ya({message:t,attachments:n}),[S]=A(),M=Sc();Nc((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=k(n),Y=k(t),Le=(0,b.useCallback)(N=>{"tabIndex"in N.target&&typeof N.target.tabIndex=="number"&&N.target.tabIndex>=0||M("sendBox")},[M]),Re=(0,b.useCallback)(N=>o(N.currentTarget.value),[o]),$r=(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]),Ba=(0,b.useCallback)(N=>{N.preventDefault(),_.current!=="empty"&&!x&&(f(Y.current,void 0,{attachments:V.current}),o(""),i([])),M("sendBox")},[V,Y,f,i,o,x,_,M]),Na=(0,b.useCallback)(N=>f(`/DTMFKey ${N}`),[f]),Ea=Ur(),Fa={"aria-invalid":"false",...T&&{"aria-invalid":"true","aria-errormessage":B}};return b.default.createElement("form",{...Fa,className:(0,re.default)(d.sendbox,e.className),onSubmit:Ba},b.default.createElement(Rr,null),b.default.createElement("div",{className:(0,re.default)(d.sendbox__sendbox),onClickCapture:Le,onKeyDown:Ea},b.default.createElement(va,{"aria-label":u(x?"TEXT_INPUT_LENGTH_EXCEEDED_ALT":"TEXT_INPUT_ALT"),className:(0,re.default)(d["sendbox__sendbox-text"],d["sendbox__text-area--in-grid"]),"data-testid":y.sendBoxTextBox,hidden:S,onInput:Re,placeholder:e.placeholder??u("TEXT_INPUT_PLACEHOLDER"),ref:r,value:t}),b.default.createElement(qr,{autoFocus:!0,className:d["sendbox__telephone-keypad--in-grid"],isHorizontal:!1,onButtonClick:Na}),b.default.createElement(ca,{attachments:n,className:d["sendbox__attachment--in-grid"]}),b.default.createElement("div",{className:(0,re.default)(d["sendbox__sendbox-controls"],d["sendbox__sendbox-controls--in-grid"])},!S&&h&&b.default.createElement("div",{className:(0,re.default)(d["sendbox__text-counter"],{[d["sendbox__text-counter--error"]]:x})},`${t.length}/${h}`),b.default.createElement(Hr,null,!l&&b.default.createElement(ma,null),!s&&b.default.createElement(aa,{onFilesAdded:$r}),b.default.createElement(jr,null),b.default.createElement(G,{"aria-label":u("TEXT_INPUT_SEND_BUTTON_ALT"),"data-testid":y.sendBoxSendButton,disabled:x||S,type:"submit"},b.default.createElement(Mr,null)))),b.default.createElement(Ar,{onFilesAdded:$r}),b.default.createElement(ua,{error:T,id:B})))}var Wr=(0,b.memo)(Oc);var{ThemeProvider:Ic}=_a.Components,Mc=[()=>()=>()=>Wr],Pc=({children:e})=>te.default.createElement(Ie,null,te.default.createElement(je,null,te.default.createElement(Ic,{sendBoxMiddleware:Mc},e))),Zr=(0,te.memo)(Pc);ve("botframework-webchat:fluent-theme","version=4.17.1-main.20240625.336dd7c; build-tool=tsup; module-format=esmodules");Fe();globalThis.WebChat={...globalThis.WebChat,FluentThemeProvider:Zr,testIds:{...globalThis.WebChat?.testIds,...y}};})();
|
|
1
|
+
"use strict";(()=>{var Ca=Object.create;var Vr=Object.defineProperty;var Oa=Object.getOwnPropertyDescriptor;var Ia=Object.getOwnPropertyNames;var Ma=Object.getPrototypeOf,Pa=Object.prototype.hasOwnProperty;var a=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var qa=(e,r,t,o)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of Ia(r))!Pa.call(e,n)&&n!==t&&Vr(e,n,{get:()=>r[n],enumerable:!(o=Oa(r,n))||o.enumerable});return e};var c=(e,r,t)=>(t=e!=null?Ca(Ma(e)):{},qa(r||!e||!e.__esModule?Vr(t,"default",{value:e,enumerable:!0}):t,e));var C=a((Hc,Gr)=>{Gr.exports={Components:globalThis.WebChat.Components,hooks:globalThis.WebChat.hooks}});var m=a((jc,Xr)=>{Xr.exports=globalThis.React});var P=a((Wc,ye)=>{(function(){"use strict";var e={}.hasOwnProperty;function r(){for(var n="",i=0;i<arguments.length;i++){var l=arguments[i];l&&(n=o(n,t(l)))}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 l in n)e.call(n,l)&&n[l]&&(i=o(i,l));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 L=a((Ke,Qr)=>{"use strict";var ne=function(e){return e&&e.Math===Math&&e};Qr.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((Zc,et)=>{"use strict";et.exports=function(e){try{return!!e()}catch{return!0}}});var ae=a(($c,rt)=>{"use strict";var Da=H();rt.exports=!Da(function(){var e=(function(){}).bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var it=a((Vc,at)=>{"use strict";var La=ae(),nt=Function.prototype,tt=nt.apply,ot=nt.call;at.exports=typeof Reflect=="object"&&Reflect.apply||(La?ot.bind(tt):function(){return ot.apply(tt,arguments)})});var j=a((Gc,ct)=>{"use strict";var st=ae(),lt=Function.prototype,ze=lt.call,Ra=st&<.bind.bind(ze,ze);ct.exports=st?Ra:function(e){return function(){return ze.apply(e,arguments)}}});var Ue=a((Xc,ut)=>{"use strict";var dt=j(),Ha=dt({}.toString),ja=dt("".slice);ut.exports=function(e){return ja(Ha(e),8,-1)}});var We=a((Yc,pt)=>{"use strict";var Ka=Ue(),za=j();pt.exports=function(e){if(Ka(e)==="Function")return za(e)}});var K=a((Jc,ft)=>{"use strict";var Ze=typeof document=="object"&&document.all;ft.exports=typeof Ze>"u"&&Ze!==void 0?function(e){return typeof e=="function"||e===Ze}:function(e){return typeof e=="function"}});var z=a((Qc,mt)=>{"use strict";var Ua=H();mt.exports=!Ua(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var we=a((ed,bt)=>{"use strict";var Wa=ae(),xe=Function.prototype.call;bt.exports=Wa?xe.bind(xe):function(){return xe.apply(xe,arguments)}});var yt=a(gt=>{"use strict";var ht={}.propertyIsEnumerable,vt=Object.getOwnPropertyDescriptor,Za=vt&&!ht.call({1:2},1);gt.f=Za?function(r){var t=vt(this,r);return!!t&&t.enumerable}:ht});var $e=a((td,xt)=>{"use strict";xt.exports=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}}});var Tt=a((od,wt)=>{"use strict";var $a=j(),Va=H(),Ga=Ue(),Ve=Object,Xa=$a("".split);wt.exports=Va(function(){return!Ve("z").propertyIsEnumerable(0)})?function(e){return Ga(e)==="String"?Xa(e,""):Ve(e)}:Ve});var Ge=a((nd,kt)=>{"use strict";kt.exports=function(e){return e==null}});var Xe=a((ad,St)=>{"use strict";var Ya=Ge(),Ja=TypeError;St.exports=function(e){if(Ya(e))throw new Ja("Can't call method on "+e);return e}});var ie=a((id,_t)=>{"use strict";var Qa=Tt(),ei=Xe();_t.exports=function(e){return Qa(ei(e))}});var se=a((sd,Bt)=>{"use strict";var ri=K();Bt.exports=function(e){return typeof e=="object"?e!==null:ri(e)}});var Te=a((ld,Nt)=>{"use strict";Nt.exports={}});var Qe=a((cd,Ft)=>{"use strict";var Ye=Te(),Je=L(),ti=K(),Et=function(e){return ti(e)?e:void 0};Ft.exports=function(e,r){return arguments.length<2?Et(Ye[e])||Et(Je[e]):Ye[e]&&Ye[e][r]||Je[e]&&Je[e][r]}});var Ot=a((dd,Ct)=>{"use strict";var oi=j();Ct.exports=oi({}.isPrototypeOf)});var Mt=a((ud,It)=>{"use strict";It.exports=typeof navigator<"u"&&String(navigator.userAgent)||""});var Ht=a((pd,Rt)=>{"use strict";var Lt=L(),er=Mt(),Pt=Lt.process,qt=Lt.Deno,At=Pt&&Pt.versions||qt&&qt.version,Dt=At&&At.v8,I,ke;Dt&&(I=Dt.split("."),ke=I[0]>0&&I[0]<4?1:+(I[0]+I[1]));!ke&&er&&(I=er.match(/Edge\/(\d+)/),(!I||I[1]>=74)&&(I=er.match(/Chrome\/(\d+)/),I&&(ke=+I[1])));Rt.exports=ke});var rr=a((fd,Kt)=>{"use strict";var jt=Ht(),ni=H(),ai=L(),ii=ai.String;Kt.exports=!!Object.getOwnPropertySymbols&&!ni(function(){var e=Symbol("symbol detection");return!ii(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&jt&&jt<41})});var tr=a((md,zt)=>{"use strict";var si=rr();zt.exports=si&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var or=a((bd,Ut)=>{"use strict";var li=Qe(),ci=K(),di=Ot(),ui=tr(),pi=Object;Ut.exports=ui?function(e){return typeof e=="symbol"}:function(e){var r=li("Symbol");return ci(r)&&di(r.prototype,pi(e))}});var Zt=a((hd,Wt)=>{"use strict";var fi=String;Wt.exports=function(e){try{return fi(e)}catch{return"Object"}}});var nr=a((vd,$t)=>{"use strict";var mi=K(),bi=Zt(),hi=TypeError;$t.exports=function(e){if(mi(e))return e;throw new hi(bi(e)+" is not a function")}});var Gt=a((gd,Vt)=>{"use strict";var vi=nr(),gi=Ge();Vt.exports=function(e,r){var t=e[r];return gi(t)?void 0:vi(t)}});var Yt=a((yd,Xt)=>{"use strict";var ar=we(),ir=K(),sr=se(),yi=TypeError;Xt.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 yi("Can't convert object to primitive value")}});var Qt=a((xd,Jt)=>{"use strict";Jt.exports=!0});var to=a((wd,ro)=>{"use strict";var eo=L(),xi=Object.defineProperty;ro.exports=function(e,r){try{xi(eo,e,{value:r,configurable:!0,writable:!0})}catch{eo[e]=r}return r}});var lr=a((Td,ao)=>{"use strict";var wi=Qt(),Ti=L(),ki=to(),oo="__core-js_shared__",no=ao.exports=Ti[oo]||ki(oo,{});(no.versions||(no.versions=[])).push({version:"3.36.1",mode:wi?"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 cr=a((kd,so)=>{"use strict";var io=lr();so.exports=function(e,r){return io[e]||(io[e]=r||{})}});var co=a((Sd,lo)=>{"use strict";var Si=Xe(),_i=Object;lo.exports=function(e){return _i(Si(e))}});var le=a((_d,uo)=>{"use strict";var Bi=j(),Ni=co(),Ei=Bi({}.hasOwnProperty);uo.exports=Object.hasOwn||function(r,t){return Ei(Ni(r),t)}});var dr=a((Bd,po)=>{"use strict";var Fi=j(),Ci=0,Oi=Math.random(),Ii=Fi(1 .toString);po.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Ii(++Ci+Oi,36)}});var bo=a((Nd,mo)=>{"use strict";var Mi=L(),Pi=cr(),fo=le(),qi=dr(),Ai=rr(),Di=tr(),J=Mi.Symbol,ur=Pi("wks"),Li=Di?J.for||J:J&&J.withoutSetter||qi;mo.exports=function(e){return fo(ur,e)||(ur[e]=Ai&&fo(J,e)?J[e]:Li("Symbol."+e)),ur[e]}});var yo=a((Ed,go)=>{"use strict";var Ri=we(),ho=se(),vo=or(),Hi=Gt(),ji=Yt(),Ki=bo(),zi=TypeError,Ui=Ki("toPrimitive");go.exports=function(e,r){if(!ho(e)||vo(e))return e;var t=Hi(e,Ui),o;if(t){if(r===void 0&&(r="default"),o=Ri(t,e,r),!ho(o)||vo(o))return o;throw new zi("Can't convert object to primitive value")}return r===void 0&&(r="number"),ji(e,r)}});var pr=a((Fd,xo)=>{"use strict";var Wi=yo(),Zi=or();xo.exports=function(e){var r=Wi(e,"string");return Zi(r)?r:r+""}});var mr=a((Cd,To)=>{"use strict";var $i=L(),wo=se(),fr=$i.document,Vi=wo(fr)&&wo(fr.createElement);To.exports=function(e){return Vi?fr.createElement(e):{}}});var br=a((Od,ko)=>{"use strict";var Gi=z(),Xi=H(),Yi=mr();ko.exports=!Gi&&!Xi(function(){return Object.defineProperty(Yi("div"),"a",{get:function(){return 7}}).a!==7})});var Bo=a(_o=>{"use strict";var Ji=z(),Qi=we(),es=yt(),rs=$e(),ts=ie(),os=pr(),ns=le(),as=br(),So=Object.getOwnPropertyDescriptor;_o.f=Ji?So:function(r,t){if(r=ts(r),t=os(t),as)try{return So(r,t)}catch{}if(ns(r,t))return rs(!Qi(es.f,r,t),r[t])}});var Eo=a((Md,No)=>{"use strict";var is=H(),ss=K(),ls=/#|\.prototype\./,ce=function(e,r){var t=ds[cs(e)];return t===ps?!0:t===us?!1:ss(r)?is(r):!!r},cs=ce.normalize=function(e){return String(e).replace(ls,".").toLowerCase()},ds=ce.data={},us=ce.NATIVE="N",ps=ce.POLYFILL="P";No.exports=ce});var Oo=a((Pd,Co)=>{"use strict";var Fo=We(),fs=nr(),ms=ae(),bs=Fo(Fo.bind);Co.exports=function(e,r){return fs(e),r===void 0?e:ms?bs(e,r):function(){return e.apply(r,arguments)}}});var hr=a((qd,Io)=>{"use strict";var hs=z(),vs=H();Io.exports=hs&&vs(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var Se=a((Ad,Mo)=>{"use strict";var gs=se(),ys=String,xs=TypeError;Mo.exports=function(e){if(gs(e))return e;throw new xs(ys(e)+" is not an object")}});var wr=a(qo=>{"use strict";var ws=z(),Ts=br(),ks=hr(),_e=Se(),Po=pr(),Ss=TypeError,vr=Object.defineProperty,_s=Object.getOwnPropertyDescriptor,gr="enumerable",yr="configurable",xr="writable";qo.f=ws?ks?function(r,t,o){if(_e(r),t=Po(t),_e(o),typeof r=="function"&&t==="prototype"&&"value"in o&&xr in o&&!o[xr]){var n=_s(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=Po(t),_e(o),Ts)try{return vr(r,t,o)}catch{}if("get"in o||"set"in o)throw new Ss("Accessors not supported");return"value"in o&&(r[t]=o.value),r}});var Do=a((Ld,Ao)=>{"use strict";var Bs=z(),Ns=wr(),Es=$e();Ao.exports=Bs?function(e,r,t){return Ns.f(e,r,Es(1,t))}:function(e,r,t){return e[r]=t,e}});var Ho=a((Rd,Ro)=>{"use strict";var de=L(),Fs=it(),Cs=We(),Os=K(),Is=Bo().f,Ms=Eo(),Q=Te(),Ps=Oo(),ee=Do(),Lo=le();lr();var qs=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 Fs(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,l=o?de:n?de[t]:de[t]&&de[t].prototype,s=o?Q:Q[t]||ee(Q,t,{})[t],h=s.prototype,x,d,u,f,g,B,_,T,S;for(f in r)x=Ms(o?f:t+(n?".":"#")+f,e.forced),d=!x&&l&&Lo(l,f),B=s[f],d&&(e.dontCallGetSet?(S=Is(l,f),_=S&&S.value):_=l[f]),g=d&&_?_:r[f],!(!x&&!i&&typeof B==typeof g)&&(e.bind&&d?T=Ps(g,de):e.wrap&&d?T=qs(g):i&&Os(g)?T=Cs(g):T=g,(e.sham||g&&g.sham||B&&B.sham)&&ee(T,"sham",!0),ee(s,f,T),i&&(u=t+"Prototype",Lo(Q,u)||ee(Q,u,{}),ee(Q[u],f,g),e.real&&h&&(x||!h[f])&&ee(h,f,g)))}});var Ko=a((Hd,jo)=>{"use strict";var As=Math.ceil,Ds=Math.floor;jo.exports=Math.trunc||function(r){var t=+r;return(t>0?Ds:As)(t)}});var Tr=a((jd,zo)=>{"use strict";var Ls=Ko();zo.exports=function(e){var r=+e;return r!==r||r===0?0:Ls(r)}});var Wo=a((Kd,Uo)=>{"use strict";var Rs=Tr(),Hs=Math.max,js=Math.min;Uo.exports=function(e,r){var t=Rs(e);return t<0?Hs(t+r,0):js(t,r)}});var $o=a((zd,Zo)=>{"use strict";var Ks=Tr(),zs=Math.min;Zo.exports=function(e){var r=Ks(e);return r>0?zs(r,9007199254740991):0}});var Go=a((Ud,Vo)=>{"use strict";var Us=$o();Vo.exports=function(e){return Us(e.length)}});var Jo=a((Wd,Yo)=>{"use strict";var Ws=ie(),Zs=Wo(),$s=Go(),Xo=function(e){return function(r,t,o){var n=Ws(r),i=$s(n);if(i===0)return!e&&-1;var l=Zs(o,i),s;if(e&&t!==t){for(;i>l;)if(s=n[l++],s!==s)return!0}else for(;i>l;l++)if((e||l in n)&&n[l]===t)return e||l||0;return!e&&-1}};Yo.exports={includes:Xo(!0),indexOf:Xo(!1)}});var kr=a((Zd,Qo)=>{"use strict";Qo.exports={}});var tn=a(($d,rn)=>{"use strict";var Vs=j(),Sr=le(),Gs=ie(),Xs=Jo().indexOf,Ys=kr(),en=Vs([].push);rn.exports=function(e,r){var t=Gs(e),o=0,n=[],i;for(i in t)!Sr(Ys,i)&&Sr(t,i)&&en(n,i);for(;r.length>o;)Sr(t,i=r[o++])&&(~Xs(n,i)||en(n,i));return n}});var _r=a((Vd,on)=>{"use strict";on.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var an=a((Gd,nn)=>{"use strict";var Js=tn(),Qs=_r();nn.exports=Object.keys||function(r){return Js(r,Qs)}});var ln=a(sn=>{"use strict";var el=z(),rl=hr(),tl=wr(),ol=Se(),nl=ie(),al=an();sn.f=el&&!rl?Object.defineProperties:function(r,t){ol(r);for(var o=nl(t),n=al(t),i=n.length,l=0,s;i>l;)tl.f(r,s=n[l++],o[s]);return r}});var dn=a((Yd,cn)=>{"use strict";var il=Qe();cn.exports=il("document","documentElement")});var fn=a((Jd,pn)=>{"use strict";var sl=cr(),ll=dr(),un=sl("keys");pn.exports=function(e){return un[e]||(un[e]=ll(e))}});var wn=a((Qd,xn)=>{"use strict";var cl=Se(),dl=ln(),mn=_r(),ul=kr(),pl=dn(),fl=mr(),ml=fn(),bn=">",hn="<",Nr="prototype",Er="script",gn=ml("IE_PROTO"),Br=function(){},yn=function(e){return hn+Er+bn+e+hn+"/"+Er+bn},vn=function(e){e.write(yn("")),e.close();var r=e.parentWindow.Object;return e=null,r},bl=function(){var e=fl("iframe"),r="java"+Er+":",t;return e.style.display="none",pl.appendChild(e),e.src=String(r),t=e.contentWindow.document,t.open(),t.write(yn("document.F=Object")),t.close(),t.F},Be,Ne=function(){try{Be=new ActiveXObject("htmlfile")}catch{}Ne=typeof document<"u"?document.domain&&Be?vn(Be):bl():vn(Be);for(var e=mn.length;e--;)delete Ne[Nr][mn[e]];return Ne()};ul[gn]=!0;xn.exports=Object.create||function(r,t){var o;return r!==null?(Br[Nr]=cl(r),o=new Br,Br[Nr]=null,o[gn]=r):o=Ne(),t===void 0?o:dl.f(o,t)}});var Tn=a(()=>{"use strict";var hl=Ho(),vl=z(),gl=wn();hl({target:"Object",stat:!0,sham:!vl},{create:gl})});var Sn=a((tu,kn)=>{"use strict";Tn();var yl=Te(),xl=yl.Object;kn.exports=function(r,t){return xl.create(r,t)}});var Bn=a((ou,_n)=>{"use strict";var wl=Sn();_n.exports=wl});var En=a((nu,Nn)=>{Nn.exports=Bn()});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 _a=c(C()),te=c(m());var R=c(m());var Yr=c(m()),Jr=(0,Yr.createContext)(new Proxy({},{get(){throw new Error("botframework-webchat: This hook can only used under its corresponding <Provider>.")}}));Jr.displayName="TelephoneKeypad.Context";var ge=Jr;var Aa=(0,R.memo)(({children:e})=>{let[r,t]=(0,R.useState)(!1),o=(0,R.useMemo)(()=>Object.freeze({setShown:t,shown:r}),[t,r]);return R.default.createElement(ge.Provider,{value:o},e)}),je=Aa;var Oe=c(m());var Mn=c(C()),Pn=c(P()),p=c(m());var Fn=c(En()),Ee=c(m());function k(e){var r=(0,Ee.useRef)(),t=(0,Ee.useMemo)(function(){return(0,Fn.default)({},{current:{get:function(){return r.current}}})},[r]);return r.current=e,t}var q=c(m());var Cn={"telephone-keypad__button":"r","telephone-keypad__button__ruby":"e","telephone-keypad__button__text":"o","telephone-keypad--horizontal":"l"};var kl=".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}@media only screen and (hover: none) and (pointer: coarse){.webchat-fluent .C:focus-within{font-size:16px}}.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(kl)),document.head.appendChild(e)}}var On=c(m());function Sl(e){return(0,On.useMemo)(()=>Object.freeze(Object.fromEntries(Object.entries(e).map(([r,t])=>[r,`${r} ${t}`]))),[e])}var v=Sl;var In=(0,q.memo)((0,q.forwardRef)(({button:e,"data-testid":r,onClick:t,ruby:o},n)=>{let i=v(Cn),l=k(t),s=(0,q.useCallback)(()=>l.current?.(),[l]);return q.default.createElement("button",{className:i["telephone-keypad__button"],"data-testid":r,onClick:s,ref:n,type:"button"},q.default.createElement("span",{className:i["telephone-keypad__button__text"]},e==="*"?"\u2217":e),!!o&&q.default.createElement("ruby",{className:i["telephone-keypad__button__ruby"]},o))}));In.displayName="TelephoneKeypad.Button";var E=In;var _l={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=_l;var Ce=c(m());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=c(m());function Nl(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)(Nl);var pe=c(m());function El(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)(El);var fe=c(m());function Fl(e){return fe.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"},fe.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,fe.memo)(Fl);var me=c(m());function Cl(e){return me.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"},me.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,me.memo)(Cl);var be=c(m());function Ol(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 Pr=(0,be.memo)(Ol);var{LocalizedString:Il}=Mn.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 An=(0,p.memo)(({autoFocus:e,className:r,onButtonClick:t,isHorizontal:o})=>{let n=k(e),i=v(Fr),l=(0,p.useRef)(null),s=k(t),[,h]=A(),x=(0,p.useCallback)(()=>s.current?.("1"),[s]),d=(0,p.useCallback)(()=>s.current?.("2"),[s]),u=(0,p.useCallback)(()=>s.current?.("3"),[s]),f=(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]),S=(0,p.useCallback)(()=>s.current?.("9"),[s]),M=(0,p.useCallback)(()=>s.current?.("0"),[s]),V=(0,p.useCallback)(()=>s.current?.("*"),[s]),Y=(0,p.useCallback)(()=>s.current?.("#"),[s]),Le=(0,p.useCallback)(Re=>{Re.key==="Escape"&&h(!1)},[h]);return(0,p.useEffect)(()=>{n.current&&l.current?.focus()},[n,l]),p.default.createElement("div",{className:(0,Pn.default)(i["telephone-keypad"],r),onKeyDown:Le},p.default.createElement(qn,{isHorizontal:o},p.default.createElement(E,{button:"1","data-testid":y.sendBoxTelephoneKeypadButton1,onClick:x,ref:l}),p.default.createElement(E,{button:"2","data-testid":y.sendBoxTelephoneKeypadButton2,onClick:d,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:f,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:S,ruby:"WXYZ"}),p.default.createElement(E,{button:"*","data-testid":y.sendBoxTelephoneKeypadButtonStar,onClick:V}),p.default.createElement(E,{button:"0","data-testid":y.sendBoxTelephoneKeypadButton0,onClick:M,ruby:"+"}),p.default.createElement(E,{button:"#","data-testid":y.sendBoxTelephoneKeypadButtonPound,onClick:Y})),p.default.createElement("div",{className:i["telephone-keypad__info-message"]},p.default.createElement(Ir,null),p.default.createElement(Il,{linkClassName:i["telephone-keypad__info-message-link"],stringIds:"TELEPHONE_KEYPAD_INPUT_MESSAGE"})))});An.displayName="TelephoneKeypad";var Dn=An;var Ln=(0,Oe.memo)(e=>A()[0]?Oe.default.createElement(Dn,{...e}):null);Ln.displayName="TelephoneKeypad.Surrogate";var qr=Ln;var Hn=c(m()),jn=c(P());var Rn={theme:"a"};var Pl="webchat-fluent";function Ie(e){let r=v(Rn);return Hn.default.createElement("div",{className:(0,jn.default)(Pl,r.theme)},e.children)}var Sa=c(C()),re=c(P()),b=c(m());var Un=c(C()),Wn=c(P()),F=c(m());var Kn={"sendbox__attachment-drop-zone":"b","sendbox__attachment-drop-zone--droppable":"u","sendbox__attachment-drop-zone-icon":"h"};var{useLocalizer:Al}=Un.hooks,Dl=e=>{e.preventDefault()},zn=e=>!!e.dataTransfer?.types?.some(r=>r.toLowerCase()==="files");function Ll(e,r){let t=e.parentNode;for(;t;){if(t===r)return!0;t=t.parentNode}return!1}var Zn=e=>{let[r,t]=(0,F.useState)(!1),o=v(Kn),n=(0,F.useRef)(null),i=Al(),l=k(e.onFilesAdded);(0,F.useEffect)(()=>{let h=0,x=u=>{h++,zn(u)&&t(n.current&&(u.target===n.current||u.target instanceof HTMLElement&&Ll(u.target,n.current))?"droppable":"visible")},d=()=>--h<=0&&t(!1);return document.addEventListener("dragenter",x,!1),document.addEventListener("dragleave",d,!1),()=>{document.removeEventListener("dragenter",x),document.removeEventListener("dragleave",d)}},[t]);let s=(0,F.useCallback)(h=>{h.preventDefault(),t(!1),zn(h.nativeEvent)&&l.current([...h.dataTransfer.files])},[l,t]);return r?F.default.createElement("div",{className:(0,Wn.default)(o["sendbox__attachment-drop-zone"],{[o["sendbox__attachment-drop-zone--droppable"]]:r==="droppable"}),"data-testid":y.sendBoxDropZone,onDragOver:Dl,onDrop:s,ref:n},F.default.createElement(Cr,{className:o["sendbox__attachment-drop-zone-icon"]}),i("TEXT_INPUT_DROP_ZONE")):null};Zn.displayName="DropZone";var Ar=(0,F.memo)(Zn);var ra=c(C()),ta=c(P()),D=c(m());var Jn=c(C()),Qn=c(P()),W=c(m());var $n={"suggested-action":"s","suggested-action__image":"g"};var U=c(m()),Hl=e=>e.preventDefault(),jl=(0,U.forwardRef)(({"aria-hidden":e,children:r,disabled:t,onClick:o,tabIndex:n,...i},l)=>{let s=(0,U.useRef)(null);return U.default.createElement("button",{"aria-disabled":t?"true":"false","aria-hidden":e,onClick:t?Hl:o,ref:l||s,tabIndex:n,...t&&{"aria-disabled":"true",tabIndex:-1},...i,type:"button"},r)}),Vn=(0,U.memo)(jl);var w=c(m()),Gn=(0,w.createContext)({itemEffector:()=>{throw new Error("botframework-webchat-fluent-theme rovingFocus: no provider for RovingFocusContext.")}});function Kl(e){let r=(0,w.useRef)(0),t=(0,w.useRef)([]),o=(0,w.useCallback)(({current:d},u)=>d&&(d.tabIndex=r.current===u?0:-1),[r]),n=(0,w.useCallback)(d=>{let u;typeof d=="number"?u=d:u=d(r.current),u&&!t.current.at(u)?.current&&(u=0),r.current!==u&&(r.current=u,t.current.forEach((f,g)=>o(f,g)),t.current.at(u)?.current?.focus())},[o,t,r]),i=(0,w.useCallback)(d=>{let{target:u}=d,f=t.current.findIndex(({current:g})=>g===u);f!==-1&&n(f)},[t,n]),l=(0,w.useCallback)(d=>u=>{let f=!e.direction,g=/up|down/iu.test(d)&&e.direction==="vertical",B=/left|right/iu.test(d)&&e.direction==="horizontal",_=/right|down/iu.test(d),T=f||g||B?_?1:-1:0,S=t.current.map((V,Y)=>Y),M=S.indexOf(u)+T;return S.at(M)??0},[e.direction]),s=(0,w.useCallback)(d=>{let{key:u}=d;switch(u){case"Up":case"ArrowUp":case"Left":case"ArrowLeft":case"Down":case"ArrowDown":case"Right":case"ArrowRight":n(l(u));break;case"Home":n(0);break;case"End":n(-1);break;case"Escape":e.onEscapeKey?.();break;default:return}d.preventDefault(),d.stopPropagation()},[n,l,e]),h=(0,w.useCallback)((d,u)=>{let{current:f}=d;return t.current[Number(u)]=d,f.addEventListener("focus",i),f.addEventListener("keydown",s),o(d,u),()=>{f.removeEventListener("focus",i),f.removeEventListener("keydown",s),delete t.current[Number(u)]}},[i,s,o,t]),x=(0,w.useMemo)(()=>({itemEffector:h}),[h]);return w.default.createElement(Gn.Provider,{value:x},e.children)}function Xn(e){let r=(0,w.useRef)(null),{itemEffector:t}=(0,w.useContext)(Gn);return(0,w.useEffect)(()=>t(r,e)),r}var Yn=(0,w.memo)(Kl);var{useDisabled:zl,useFocus:Ul,usePerformCardAction:Wl,useScrollToEnd:Zl,useStyleSet:$l,useSuggestedActions:Vl}=Jn.hooks;function Gl({buttonText:e,className:r,displayText:t,image:o,imageAlt:n,itemIndex:i,text:l,type:s,value:h}){let[x,d]=Vl(),[{suggestedAction:u}]=$l(),[f]=zl(),g=Ul(),B=Xn(i),_=Wl(),T=v($n),S=Zl(),M=(0,W.useCallback)(({target:V})=>{(async function(){await g("sendBoxWithoutKeyboard"),_({displayText:t,text:l,type:s,value:h},{target:V}),s==="openUrl"&&d([]),S()})()},[t,g,_,S,d,l,s,h]);return W.default.createElement(Vn,{className:(0,Qn.default)(T["suggested-action"],u+"",(r||"")+""),disabled:f,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 ea=(0,W.memo)(Gl);function Dr(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 Lr={"suggested-actions":"p","suggested-actions--flow":"w","suggested-actions--stacked":"v"};var{useFocus:Yl,useLocalizer:Jl,useStyleOptions:Ql,useStyleSet:ec,useSuggestedActions:rc}=ra.hooks;function tc(e){let[{suggestedActionLayout:r}]=Ql(),[{suggestedActions:t}]=ec(),o=v(Lr);return D.default.createElement("div",{"aria-label":e["aria-label"],"aria-live":"polite","aria-orientation":"vertical",className:(0,ta.default)(o["suggested-actions"],t+"",{[o["suggested-actions--flow"]]:r==="flow",[o["suggested-actions--stacked"]]:r!=="flow"},e.className),role:"toolbar"},!!e.children&&!!D.default.Children.count(e.children)&&e.children)}function oc(){let e=v(Lr),r=Jl(),[t]=rc(),o=Yl(),n=(0,D.useCallback)(()=>{o("sendBox")},[o]),i=t.map((l,s)=>{let{displayText:h,image:x,imageAltText:d,text:u,type:f,value:g}=l;return t?.length?D.default.createElement(ea,{buttonText:Dr(l),displayText:h,image:x,imageAlt:x&&(d||u),itemIndex:s,key:s,text:u,type:f,value:g}):null});return D.default.createElement(Yn,{onEscapeKey:n},D.default.createElement(tc,{"aria-label":r("SUGGESTED_ACTIONS_LABEL_ALT"),className:e["suggested-actions"]},i))}var Rr=(0,D.memo)(oc);var na=c(C()),O=c(m());var Pe=c(P()),Z=c(m());var Me={sendbox__toolbar:"f","sendbox__toolbar-button":"x","sendbox__toolbar-button--selected":"k","sendbox__toolbar-separator":"m"};var ac=e=>e.preventDefault(),G=(0,Z.memo)(e=>{let r=v(Me);return Z.default.createElement("button",{"aria-label":e["aria-label"],className:(0,Pe.default)(r["sendbox__toolbar-button"],e.className,{[r["sendbox__toolbar-button--selected"]]:e.selected}),"data-testid":e["data-testid"],onClick:e.disabled?ac: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,Pe.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,Pe.default)(r["sendbox__toolbar-separator"],e.className),role:"separator"})});jr.displayName="ToolbarSeparator";var oa={"sendbox__add-attachment":"B","sendbox__add-attachment-input":"F"};var{useLocalizer:sc,useStyleOptions:lc}=na.hooks;function cc(e){let r=(0,O.useRef)(null),t=v(oa),o=sc(),[{uploadAccept:n,uploadMultiple:i}]=lc(),l=k(e.onFilesAdded),s=(0,O.useCallback)(()=>r.current?.click(),[r]),h=(0,O.useCallback)(({target:{files:x}})=>{x&&(l.current?.([...x]),r.current&&(r.current.value=""))},[r,l]);return O.default.createElement("div",{className:t["sendbox__add-attachment"]},O.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"}),O.default.createElement(G,{"aria-label":o("TEXT_INPUT_UPLOAD_BUTTON_ALT"),"data-testid":y.sendBoxUploadButton,onClick:s},O.default.createElement(Or,null)))}var aa=(0,O.memo)(cc);var sa=c(C()),qe=c(m()),la=c(P());var ia={sendbox__attachment:"y"};var{useLocalizer:uc}=sa.hooks,pc={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 fc({attachments:e,className:r}){let t=v(ia),o=uc({plural:!0});return e.length?qe.default.createElement("div",{className:(0,la.default)(t.sendbox__attachment,r)},o(pc,e.length)):null}var ca=(0,qe.memo)(fc);var Ae=c(m());var da={"sendbox__error-message":"N"};function bc(e){let r=v(da);return Ae.default.createElement("span",{className:r["sendbox__error-message"],id:e.id,role:"alert"},e.error)}var ua=(0,Ae.memo)(bc);var X=c(m()),pa=c(C());var{useLocalizer:hc}=pa.hooks,fa=(0,X.memo)(()=>{let[e,r]=A(),t=hc(),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(Pr,null))});fa.displayName="SendBox.TelephoneKeypadToolbarButton";var ma=fa;var De=c(P()),$=c(m());var ba={"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 ha=(0,$.forwardRef)((e,r)=>{let t=v(ba),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,De.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,De.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,De.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}))});ha.displayName="TextArea";var va=ha;var ga=c(C()),Kr=c(m());var{useConnectivityStatus:gc,useLocalizer:yc}=ga.hooks,xc=({attachments:e,message:r})=>{let[t]=gc(),o=yc(),n=k(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])},ya=xc;var xa=c(m());function zr(e){let r=(0,xa.useMemo)(()=>Math.random().toString(36).substr(2,5),[]);return e=e?`${e}--`:"",`${e}${r}`}var wa={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 Ta=c(m()),ka=c(C()),{useScrollDown:Tc,useScrollUp:kc}=ka.hooks;function Ur(){let e=Tc(),r=kc();return(0,Ta.useCallback)(t=>{if(t.target instanceof HTMLTextAreaElement&&t.target.value)return;let{ctrlKey:o,metaKey:n,shiftKey:i}=t;if(o||n||i)return;let l=!0;switch(t.key){case"End":e({displacement:1/0});break;case"Home":r({displacement:1/0});break;case"PageDown":e();break;case"PageUp":r();break;default:l=!1;break}l&&(t.preventDefault(),t.stopPropagation())},[e,r])}var{useFocus:Sc,useLocalizer:_c,useMakeThumbnail:Bc,useRegisterFocusSendBox:Nc,useSendBoxAttachments:Ec,useSendMessage:Fc,useStyleOptions:Cc}=Sa.hooks;function Oc(e){let r=(0,b.useRef)(null),[t,o]=(0,b.useState)(""),[n,i]=Ec(),[{hideTelephoneKeypadButton:l,hideUploadButton:s,maxMessageLength:h}]=Cc(),x=!!h&&t.length>h,d=v(wa),u=_c(),f=Fc(),g=Bc(),B=zr("sendbox__error-message-id"),[_,T]=ya({message:t,attachments:n}),[S]=A(),M=Sc();Nc((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=k(n),Y=k(t),Le=(0,b.useCallback)(N=>{"tabIndex"in N.target&&typeof N.target.tabIndex=="number"&&N.target.tabIndex>=0||M("sendBox")},[M]),Re=(0,b.useCallback)(N=>o(N.currentTarget.value),[o]),$r=(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]),Ba=(0,b.useCallback)(N=>{N.preventDefault(),_.current!=="empty"&&!x&&(f(Y.current,void 0,{attachments:V.current}),o(""),i([])),M("sendBox")},[V,Y,f,i,o,x,_,M]),Na=(0,b.useCallback)(N=>f(`/DTMFKey ${N}`),[f]),Ea=Ur(),Fa={"aria-invalid":"false",...T&&{"aria-invalid":"true","aria-errormessage":B}};return b.default.createElement("form",{...Fa,className:(0,re.default)(d.sendbox,e.className),onSubmit:Ba},b.default.createElement(Rr,null),b.default.createElement("div",{className:(0,re.default)(d.sendbox__sendbox),onClickCapture:Le,onKeyDown:Ea},b.default.createElement(va,{"aria-label":u(x?"TEXT_INPUT_LENGTH_EXCEEDED_ALT":"TEXT_INPUT_ALT"),className:(0,re.default)(d["sendbox__sendbox-text"],d["sendbox__text-area--in-grid"]),"data-testid":y.sendBoxTextBox,hidden:S,onInput:Re,placeholder:e.placeholder??u("TEXT_INPUT_PLACEHOLDER"),ref:r,value:t}),b.default.createElement(qr,{autoFocus:!0,className:d["sendbox__telephone-keypad--in-grid"],isHorizontal:!1,onButtonClick:Na}),b.default.createElement(ca,{attachments:n,className:d["sendbox__attachment--in-grid"]}),b.default.createElement("div",{className:(0,re.default)(d["sendbox__sendbox-controls"],d["sendbox__sendbox-controls--in-grid"])},!S&&h&&b.default.createElement("div",{className:(0,re.default)(d["sendbox__text-counter"],{[d["sendbox__text-counter--error"]]:x})},`${t.length}/${h}`),b.default.createElement(Hr,null,!l&&b.default.createElement(ma,null),!s&&b.default.createElement(aa,{onFilesAdded:$r}),b.default.createElement(jr,null),b.default.createElement(G,{"aria-label":u("TEXT_INPUT_SEND_BUTTON_ALT"),"data-testid":y.sendBoxSendButton,disabled:x||S,type:"submit"},b.default.createElement(Mr,null)))),b.default.createElement(Ar,{onFilesAdded:$r}),b.default.createElement(ua,{error:T,id:B})))}var Wr=(0,b.memo)(Oc);var{ThemeProvider:Ic}=_a.Components,Mc=[()=>()=>()=>Wr],Pc=({children:e})=>te.default.createElement(Ie,null,te.default.createElement(je,null,te.default.createElement(Ic,{sendBoxMiddleware:Mc},e))),Zr=(0,te.memo)(Pc);ve("botframework-webchat:fluent-theme","version=4.17.1-main.20240708.c9247bf; build-tool=tsup; module-format=esmodules");Fe();globalThis.WebChat={...globalThis.WebChat,FluentThemeProvider:Zr,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.
|
|
3
|
+
"version": "4.17.1-main.20240708.c9247bf",
|
|
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.
|
|
73
|
-
"botframework-webchat-component": "4.17.1-main.
|
|
74
|
-
"botframework-webchat-core": "4.17.1-main.
|
|
72
|
+
"botframework-webchat-api": "4.17.1-main.20240708.c9247bf",
|
|
73
|
+
"botframework-webchat-component": "4.17.1-main.20240708.c9247bf",
|
|
74
|
+
"botframework-webchat-core": "4.17.1-main.20240708.c9247bf",
|
|
75
75
|
"classnames": "2.5.1",
|
|
76
76
|
"inject-meta-tag": "0.0.1",
|
|
77
77
|
"math-random": "2.0.1",
|