botframework-webchat-fluent-theme 4.18.1-main.20240808.851825d → 4.18.1-main.20240813.c50aac5
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.
- package/dist/botframework-webchat-fluent-theme.css.map +1 -1
- package/dist/botframework-webchat-fluent-theme.d.mts +2 -1
- package/dist/botframework-webchat-fluent-theme.d.ts +2 -1
- package/dist/botframework-webchat-fluent-theme.development.css.map +1 -1
- package/dist/botframework-webchat-fluent-theme.development.js +1 -1
- package/dist/botframework-webchat-fluent-theme.development.js.map +1 -1
- package/dist/botframework-webchat-fluent-theme.js +1 -1
- package/dist/botframework-webchat-fluent-theme.js.map +1 -1
- package/dist/botframework-webchat-fluent-theme.mjs +1 -1
- package/dist/botframework-webchat-fluent-theme.mjs.map +1 -1
- package/dist/botframework-webchat-fluent-theme.production.min.css.map +1 -1
- package/dist/botframework-webchat-fluent-theme.production.min.js +1 -1
- package/dist/botframework-webchat-fluent-theme.production.min.js.map +1 -1
- package/package.json +4 -4
- package/src/components/activity/ActivityDecorator.module.css +305 -0
- package/src/components/activity/ActivityDecorator.tsx +26 -0
- package/src/components/activity/CopilotMessageHeader.module.css +42 -0
- package/src/components/activity/CopilotMessageHeader.tsx +41 -0
- package/src/components/activity/index.ts +1 -0
- package/src/components/preChatActivity/PreChatMessageActivity.module.css +4 -2
- package/src/components/preChatActivity/StarterPromptsCardAction.module.css +1 -1
- package/src/components/preChatActivity/private/MonochromeImageMasker.module.css +3 -1
- package/src/components/sendBox/SendBox.module.css +3 -1
- package/src/components/theme/Theme.module.css +223 -10
- package/src/components/theme/Theme.tsx +3 -2
- package/src/private/FluentThemeProvider.tsx +20 -11
- package/src/private/VariantComposer.ts +29 -0
- package/src/private/createComposer.tsx +16 -0
- package/src/private/useVariants.ts +7 -0
- package/src/styles/index.ts +2 -1
- package/src/styles/useVariantClassName.ts +16 -0
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";(()=>{var ps=Object.create;var at=Object.defineProperty;var fs=Object.getOwnPropertyDescriptor;var ds=Object.getOwnPropertyNames;var ys=Object.getPrototypeOf,hs=Object.prototype.hasOwnProperty;var u=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var ms=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of ds(r))!hs.call(e,i)&&i!==t&&at(e,i,{get:()=>r[i],enumerable:!(n=fs(r,i))||n.enumerable});return e};var l=(e,r,t)=>(t=e!=null?ps(ys(e)):{},ms(r||!e||!e.__esModule?at(t,"default",{value:e,enumerable:!0}):t,e));var N=u((Rc,lt)=>{lt.exports={Components:globalThis.WebChat.Components,hooks:globalThis.WebChat.hooks}});var v=u((Lc,ct)=>{ct.exports=globalThis.React});var B=u((Yc,Ae)=>{(function(){"use strict";var e={}.hasOwnProperty;function r(){for(var i="",s=0;s<arguments.length;s++){var a=arguments[s];a&&(i=n(i,t(a)))}return i}function t(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return r.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var s="";for(var a in i)e.call(i,a)&&i[a]&&(s=n(s,a));return s}function n(i,s){return s?i?i+" "+s:i+s:i}typeof Ae<"u"&&Ae.exports?(r.default=r,Ae.exports=r):typeof define=="function"&&typeof define.amd=="object"&&define.amd?define("classnames",[],function(){return r}):window.classNames=r})()});var j=u((Qe,ht)=>{"use strict";var fe=function(e){return e&&e.Math===Math&&e};ht.exports=fe(typeof globalThis=="object"&&globalThis)||fe(typeof window=="object"&&window)||fe(typeof self=="object"&&self)||fe(typeof global=="object"&&global)||fe(typeof Qe=="object"&&Qe)||function(){return this}()||Function("return this")()});var L=u((Jc,mt)=>{"use strict";mt.exports=function(e){try{return!!e()}catch{return!0}}});var de=u((Qc,vt)=>{"use strict";var As=L();vt.exports=!As(function(){var e=(function(){}).bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var kt=u((ep,_t)=>{"use strict";var Bs=de(),xt=Function.prototype,bt=xt.apply,gt=xt.call;_t.exports=typeof Reflect=="object"&&Reflect.apply||(Bs?gt.bind(bt):function(){return gt.apply(bt,arguments)})});var H=u((rp,Tt)=>{"use strict";var wt=de(),Et=Function.prototype,er=Et.call,Is=wt&&Et.bind.bind(er,er);Tt.exports=wt?Is:function(e){return function(){return er.apply(e,arguments)}}});var rr=u((tp,Nt)=>{"use strict";var St=H(),Ms=St({}.toString),Ps=St("".slice);Nt.exports=function(e){return Ps(Ms(e),8,-1)}});var tr=u((np,At)=>{"use strict";var Cs=rr(),Ds=H();At.exports=function(e){if(Cs(e)==="Function")return Ds(e)}});var $=u((ip,Bt)=>{"use strict";var nr=typeof document=="object"&&document.all;Bt.exports=typeof nr>"u"&&nr!==void 0?function(e){return typeof e=="function"||e===nr}:function(e){return typeof e=="function"}});var z=u((op,It)=>{"use strict";var Os=L();It.exports=!Os(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var Ie=u((sp,Mt)=>{"use strict";var qs=de(),Be=Function.prototype.call;Mt.exports=qs?Be.bind(Be):function(){return Be.apply(Be,arguments)}});var Ot=u(Dt=>{"use strict";var Pt={}.propertyIsEnumerable,Ct=Object.getOwnPropertyDescriptor,Fs=Ct&&!Pt.call({1:2},1);Dt.f=Fs?function(r){var t=Ct(this,r);return!!t&&t.enumerable}:Pt});var ir=u((ap,qt)=>{"use strict";qt.exports=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}}});var jt=u((lp,Ft)=>{"use strict";var js=H(),Rs=L(),Ls=rr(),or=Object,Hs=js("".split);Ft.exports=Rs(function(){return!or("z").propertyIsEnumerable(0)})?function(e){return Ls(e)==="String"?Hs(e,""):or(e)}:or});var sr=u((cp,Rt)=>{"use strict";Rt.exports=function(e){return e==null}});var ur=u((pp,Lt)=>{"use strict";var $s=sr(),zs=TypeError;Lt.exports=function(e){if($s(e))throw new zs("Can't call method on "+e);return e}});var ye=u((fp,Ht)=>{"use strict";var Ks=jt(),Us=ur();Ht.exports=function(e){return Ks(Us(e))}});var he=u((dp,$t)=>{"use strict";var Gs=$();$t.exports=function(e){return typeof e=="object"?e!==null:Gs(e)}});var Me=u((yp,zt)=>{"use strict";zt.exports={}});var cr=u((hp,Ut)=>{"use strict";var ar=Me(),lr=j(),Xs=$(),Kt=function(e){return Xs(e)?e:void 0};Ut.exports=function(e,r){return arguments.length<2?Kt(ar[e])||Kt(lr[e]):ar[e]&&ar[e][r]||lr[e]&&lr[e][r]}});var Xt=u((mp,Gt)=>{"use strict";var Ws=H();Gt.exports=Ws({}.isPrototypeOf)});var Vt=u((vp,Wt)=>{"use strict";Wt.exports=typeof navigator<"u"&&String(navigator.userAgent)||""});var tn=u((bp,rn)=>{"use strict";var en=j(),pr=Vt(),Zt=en.process,Yt=en.Deno,Jt=Zt&&Zt.versions||Yt&&Yt.version,Qt=Jt&&Jt.v8,C,Pe;Qt&&(C=Qt.split("."),Pe=C[0]>0&&C[0]<4?1:+(C[0]+C[1]));!Pe&&pr&&(C=pr.match(/Edge\/(\d+)/),(!C||C[1]>=74)&&(C=pr.match(/Chrome\/(\d+)/),C&&(Pe=+C[1])));rn.exports=Pe});var fr=u((gp,on)=>{"use strict";var nn=tn(),Vs=L(),Zs=j(),Ys=Zs.String;on.exports=!!Object.getOwnPropertySymbols&&!Vs(function(){var e=Symbol("symbol detection");return!Ys(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&nn&&nn<41})});var dr=u((xp,sn)=>{"use strict";var Js=fr();sn.exports=Js&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var yr=u((_p,un)=>{"use strict";var Qs=cr(),eu=$(),ru=Xt(),tu=dr(),nu=Object;un.exports=tu?function(e){return typeof e=="symbol"}:function(e){var r=Qs("Symbol");return eu(r)&&ru(r.prototype,nu(e))}});var ln=u((kp,an)=>{"use strict";var iu=String;an.exports=function(e){try{return iu(e)}catch{return"Object"}}});var hr=u((wp,cn)=>{"use strict";var ou=$(),su=ln(),uu=TypeError;cn.exports=function(e){if(ou(e))return e;throw new uu(su(e)+" is not a function")}});var fn=u((Ep,pn)=>{"use strict";var au=hr(),lu=sr();pn.exports=function(e,r){var t=e[r];return lu(t)?void 0:au(t)}});var yn=u((Tp,dn)=>{"use strict";var mr=Ie(),vr=$(),br=he(),cu=TypeError;dn.exports=function(e,r){var t,n;if(r==="string"&&vr(t=e.toString)&&!br(n=mr(t,e))||vr(t=e.valueOf)&&!br(n=mr(t,e))||r!=="string"&&vr(t=e.toString)&&!br(n=mr(t,e)))return n;throw new cu("Can't convert object to primitive value")}});var mn=u((Sp,hn)=>{"use strict";hn.exports=!0});var gn=u((Np,bn)=>{"use strict";var vn=j(),pu=Object.defineProperty;bn.exports=function(e,r){try{pu(vn,e,{value:r,configurable:!0,writable:!0})}catch{vn[e]=r}return r}});var gr=u((Ap,kn)=>{"use strict";var fu=mn(),du=j(),yu=gn(),xn="__core-js_shared__",_n=kn.exports=du[xn]||yu(xn,{});(_n.versions||(_n.versions=[])).push({version:"3.36.1",mode:fu?"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 xr=u((Bp,En)=>{"use strict";var wn=gr();En.exports=function(e,r){return wn[e]||(wn[e]=r||{})}});var Sn=u((Ip,Tn)=>{"use strict";var hu=ur(),mu=Object;Tn.exports=function(e){return mu(hu(e))}});var me=u((Mp,Nn)=>{"use strict";var vu=H(),bu=Sn(),gu=vu({}.hasOwnProperty);Nn.exports=Object.hasOwn||function(r,t){return gu(bu(r),t)}});var _r=u((Pp,An)=>{"use strict";var xu=H(),_u=0,ku=Math.random(),wu=xu(1 .toString);An.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+wu(++_u+ku,36)}});var Mn=u((Cp,In)=>{"use strict";var Eu=j(),Tu=xr(),Bn=me(),Su=_r(),Nu=fr(),Au=dr(),ie=Eu.Symbol,kr=Tu("wks"),Bu=Au?ie.for||ie:ie&&ie.withoutSetter||Su;In.exports=function(e){return Bn(kr,e)||(kr[e]=Nu&&Bn(ie,e)?ie[e]:Bu("Symbol."+e)),kr[e]}});var On=u((Dp,Dn)=>{"use strict";var Iu=Ie(),Pn=he(),Cn=yr(),Mu=fn(),Pu=yn(),Cu=Mn(),Du=TypeError,Ou=Cu("toPrimitive");Dn.exports=function(e,r){if(!Pn(e)||Cn(e))return e;var t=Mu(e,Ou),n;if(t){if(r===void 0&&(r="default"),n=Iu(t,e,r),!Pn(n)||Cn(n))return n;throw new Du("Can't convert object to primitive value")}return r===void 0&&(r="number"),Pu(e,r)}});var wr=u((Op,qn)=>{"use strict";var qu=On(),Fu=yr();qn.exports=function(e){var r=qu(e,"string");return Fu(r)?r:r+""}});var Tr=u((qp,jn)=>{"use strict";var ju=j(),Fn=he(),Er=ju.document,Ru=Fn(Er)&&Fn(Er.createElement);jn.exports=function(e){return Ru?Er.createElement(e):{}}});var Sr=u((Fp,Rn)=>{"use strict";var Lu=z(),Hu=L(),$u=Tr();Rn.exports=!Lu&&!Hu(function(){return Object.defineProperty($u("div"),"a",{get:function(){return 7}}).a!==7})});var $n=u(Hn=>{"use strict";var zu=z(),Ku=Ie(),Uu=Ot(),Gu=ir(),Xu=ye(),Wu=wr(),Vu=me(),Zu=Sr(),Ln=Object.getOwnPropertyDescriptor;Hn.f=zu?Ln:function(r,t){if(r=Xu(r),t=Wu(t),Zu)try{return Ln(r,t)}catch{}if(Vu(r,t))return Gu(!Ku(Uu.f,r,t),r[t])}});var Kn=u((Rp,zn)=>{"use strict";var Yu=L(),Ju=$(),Qu=/#|\.prototype\./,ve=function(e,r){var t=ra[ea(e)];return t===na?!0:t===ta?!1:Ju(r)?Yu(r):!!r},ea=ve.normalize=function(e){return String(e).replace(Qu,".").toLowerCase()},ra=ve.data={},ta=ve.NATIVE="N",na=ve.POLYFILL="P";zn.exports=ve});var Xn=u((Lp,Gn)=>{"use strict";var Un=tr(),ia=hr(),oa=de(),sa=Un(Un.bind);Gn.exports=function(e,r){return ia(e),r===void 0?e:oa?sa(e,r):function(){return e.apply(r,arguments)}}});var Nr=u((Hp,Wn)=>{"use strict";var ua=z(),aa=L();Wn.exports=ua&&aa(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var Ce=u(($p,Vn)=>{"use strict";var la=he(),ca=String,pa=TypeError;Vn.exports=function(e){if(la(e))return e;throw new pa(ca(e)+" is not an object")}});var Pr=u(Yn=>{"use strict";var fa=z(),da=Sr(),ya=Nr(),De=Ce(),Zn=wr(),ha=TypeError,Ar=Object.defineProperty,ma=Object.getOwnPropertyDescriptor,Br="enumerable",Ir="configurable",Mr="writable";Yn.f=fa?ya?function(r,t,n){if(De(r),t=Zn(t),De(n),typeof r=="function"&&t==="prototype"&&"value"in n&&Mr in n&&!n[Mr]){var i=ma(r,t);i&&i[Mr]&&(r[t]=n.value,n={configurable:Ir in n?n[Ir]:i[Ir],enumerable:Br in n?n[Br]:i[Br],writable:!1})}return Ar(r,t,n)}:Ar:function(r,t,n){if(De(r),t=Zn(t),De(n),da)try{return Ar(r,t,n)}catch{}if("get"in n||"set"in n)throw new ha("Accessors not supported");return"value"in n&&(r[t]=n.value),r}});var Qn=u((Kp,Jn)=>{"use strict";var va=z(),ba=Pr(),ga=ir();Jn.exports=va?function(e,r,t){return ba.f(e,r,ga(1,t))}:function(e,r,t){return e[r]=t,e}});var ti=u((Up,ri)=>{"use strict";var be=j(),xa=kt(),_a=tr(),ka=$(),wa=$n().f,Ea=Kn(),oe=Me(),Ta=Xn(),se=Qn(),ei=me();gr();var Sa=function(e){var r=function(t,n,i){if(this instanceof r){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,i)}return xa(e,this,arguments)};return r.prototype=e.prototype,r};ri.exports=function(e,r){var t=e.target,n=e.global,i=e.stat,s=e.proto,a=n?be:i?be[t]:be[t]&&be[t].prototype,o=n?oe:oe[t]||se(oe,t,{})[t],c=o.prototype,y,p,f,m,g,_,w,E,S;for(m in r)y=Ea(n?m:t+(i?".":"#")+m,e.forced),p=!y&&a&&ei(a,m),_=o[m],p&&(e.dontCallGetSet?(S=wa(a,m),w=S&&S.value):w=a[m]),g=p&&w?w:r[m],!(!y&&!s&&typeof _==typeof g)&&(e.bind&&p?E=Ta(g,be):e.wrap&&p?E=Sa(g):s&&ka(g)?E=_a(g):E=g,(e.sham||g&&g.sham||_&&_.sham)&&se(E,"sham",!0),se(o,m,E),s&&(f=t+"Prototype",ei(oe,f)||se(oe,f,{}),se(oe[f],m,g),e.real&&c&&(y||!c[m])&&se(c,m,g)))}});var ii=u((Gp,ni)=>{"use strict";var Na=Math.ceil,Aa=Math.floor;ni.exports=Math.trunc||function(r){var t=+r;return(t>0?Aa:Na)(t)}});var Cr=u((Xp,oi)=>{"use strict";var Ba=ii();oi.exports=function(e){var r=+e;return r!==r||r===0?0:Ba(r)}});var ui=u((Wp,si)=>{"use strict";var Ia=Cr(),Ma=Math.max,Pa=Math.min;si.exports=function(e,r){var t=Ia(e);return t<0?Ma(t+r,0):Pa(t,r)}});var li=u((Vp,ai)=>{"use strict";var Ca=Cr(),Da=Math.min;ai.exports=function(e){var r=Ca(e);return r>0?Da(r,9007199254740991):0}});var pi=u((Zp,ci)=>{"use strict";var Oa=li();ci.exports=function(e){return Oa(e.length)}});var yi=u((Yp,di)=>{"use strict";var qa=ye(),Fa=ui(),ja=pi(),fi=function(e){return function(r,t,n){var i=qa(r),s=ja(i);if(s===0)return!e&&-1;var a=Fa(n,s),o;if(e&&t!==t){for(;s>a;)if(o=i[a++],o!==o)return!0}else for(;s>a;a++)if((e||a in i)&&i[a]===t)return e||a||0;return!e&&-1}};di.exports={includes:fi(!0),indexOf:fi(!1)}});var Dr=u((Jp,hi)=>{"use strict";hi.exports={}});var bi=u((Qp,vi)=>{"use strict";var Ra=H(),Or=me(),La=ye(),Ha=yi().indexOf,$a=Dr(),mi=Ra([].push);vi.exports=function(e,r){var t=La(e),n=0,i=[],s;for(s in t)!Or($a,s)&&Or(t,s)&&mi(i,s);for(;r.length>n;)Or(t,s=r[n++])&&(~Ha(i,s)||mi(i,s));return i}});var qr=u((ef,gi)=>{"use strict";gi.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var _i=u((rf,xi)=>{"use strict";var za=bi(),Ka=qr();xi.exports=Object.keys||function(r){return za(r,Ka)}});var wi=u(ki=>{"use strict";var Ua=z(),Ga=Nr(),Xa=Pr(),Wa=Ce(),Va=ye(),Za=_i();ki.f=Ua&&!Ga?Object.defineProperties:function(r,t){Wa(r);for(var n=Va(t),i=Za(t),s=i.length,a=0,o;s>a;)Xa.f(r,o=i[a++],n[o]);return r}});var Ti=u((nf,Ei)=>{"use strict";var Ya=cr();Ei.exports=Ya("document","documentElement")});var Ai=u((of,Ni)=>{"use strict";var Ja=xr(),Qa=_r(),Si=Ja("keys");Ni.exports=function(e){return Si[e]||(Si[e]=Qa(e))}});var qi=u((sf,Oi)=>{"use strict";var el=Ce(),rl=wi(),Bi=qr(),tl=Dr(),nl=Ti(),il=Tr(),ol=Ai(),Ii=">",Mi="<",jr="prototype",Rr="script",Ci=ol("IE_PROTO"),Fr=function(){},Di=function(e){return Mi+Rr+Ii+e+Mi+"/"+Rr+Ii},Pi=function(e){e.write(Di("")),e.close();var r=e.parentWindow.Object;return e=null,r},sl=function(){var e=il("iframe"),r="java"+Rr+":",t;return e.style.display="none",nl.appendChild(e),e.src=String(r),t=e.contentWindow.document,t.open(),t.write(Di("document.F=Object")),t.close(),t.F},Oe,qe=function(){try{Oe=new ActiveXObject("htmlfile")}catch{}qe=typeof document<"u"?document.domain&&Oe?Pi(Oe):sl():Pi(Oe);for(var e=Bi.length;e--;)delete qe[jr][Bi[e]];return qe()};tl[Ci]=!0;Oi.exports=Object.create||function(r,t){var n;return r!==null?(Fr[jr]=el(r),n=new Fr,Fr[jr]=null,n[Ci]=r):n=qe(),t===void 0?n:rl.f(n,t)}});var Fi=u(()=>{"use strict";var ul=ti(),al=z(),ll=qi();ul({target:"Object",stat:!0,sham:!al},{create:ll})});var Ri=u((lf,ji)=>{"use strict";Fi();var cl=Me(),pl=cl.Object;ji.exports=function(r,t){return pl.create(r,t)}});var Hi=u((cf,Li)=>{"use strict";var fl=Ri();Li.exports=fl});var zi=u((pf,$i)=>{$i.exports=Hi()});function Te(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(n){console.error('inject-meta-tag: Failed to inject <meta name="'.concat(e,'"> tag.'),n)}}var is=l(N()),Q=l(v());var Hc=new RegExp("^(?:[\\u{1F1E6}-\\u{1F1FF}]{2}|\\u{1F3F4}[\\u{E0061}-\\u{E007A}]{2}[\\u{E0030}-\\u{E0039}\\u{E0061}-\\u{E007A}]{1,3}\\u{E007F}|(?:\\p{Emoji}\\uFE0F\\u20E3?|\\p{Emoji_Modifier_Base}\\p{Emoji_Modifier}?|\\p{Emoji_Presentation})(?:\\u200D(?:\\p{Emoji}\\uFE0F\\u20E3?|\\p{Emoji_Modifier_Base}\\p{Emoji_Modifier}?|\\p{Emoji_Presentation}))*)+$","u");var Ve;function vs(e){return{lang:e?.lang??Ve?.lang,message:e?.message,abortEarly:e?.abortEarly??Ve?.abortEarly,abortPipeEarly:e?.abortPipeEarly??Ve?.abortPipeEarly}}var bs;function gs(e){return bs?.get(e)}var xs;function _s(e){return xs?.get(e)}var ks;function ws(e,r){return ks?.get(e)?.get(r)}function pt(e){let r=typeof e;return r==="string"?`"${e}"`:r==="number"||r==="bigint"||r==="boolean"?`${e}`:r==="object"||r==="function"?(e&&Object.getPrototypeOf(e)?.constructor?.name)??"null":r}function Se(e,r,t,n,i){let s=i&&"input"in i?i.input:t.value,a=i?.expected??e.expects??null,o=i?.received??pt(s),c={kind:e.kind,type:e.type,input:s,expected:a,received:o,message:`Invalid ${r}: ${a?`Expected ${a} but r`:"R"}eceived ${o}`,requirement:e.requirement,path:i?.path,issues:i?.issues,lang:n.lang,abortEarly:n.abortEarly,abortPipeEarly:n.abortPipeEarly},y=e.kind==="schema",p=i?.message??e.message??ws(e.reference,c.lang)??(y?_s(c.lang):null)??n.message??gs(c.lang);p&&(c.message=typeof p=="function"?p(c):p),y&&(t.typed=!1),t.issues?t.issues.push(c):t.issues=[c]}function Ze(e,r){return{kind:"schema",type:"array",reference:Ze,expects:"Array",async:!1,item:e,message:r,_run(t,n){let i=t.value;if(Array.isArray(i)){t.typed=!0,t.value=[];for(let s=0;s<i.length;s++){let a=i[s],o=this.item._run({typed:!1,value:a},n);if(o.issues){let c={type:"array",origin:"value",input:i,key:s,value:a};for(let y of o.issues)y.path?y.path.unshift(c):y.path=[c],t.issues?.push(y);if(t.issues||(t.issues=o.issues),n.abortEarly){t.typed=!1;break}}o.typed||(t.typed=!1),t.value.push(o.value)}}else Se(this,"type",t,n);return t}}}function te(e,r){return{kind:"schema",type:"literal",reference:te,expects:pt(e),async:!1,literal:e,message:r,_run(t,n){return t.value===this.literal?t.typed=!0:Se(this,"type",t,n),t}}}function Ye(e,r){return{kind:"schema",type:"object",reference:Ye,expects:"Object",async:!1,entries:e,message:r,_run(t,n){let i=t.value;if(i&&typeof i=="object"){t.typed=!0,t.value={};for(let s in this.entries){let a=i[s],o=this.entries[s]._run({typed:!1,value:a},n);if(o.issues){let c={type:"object",origin:"value",input:i,key:s,value:a};for(let y of o.issues)y.path?y.path.unshift(c):y.path=[c],t.issues?.push(y);if(t.issues||(t.issues=o.issues),n.abortEarly){t.typed=!1;break}}o.typed||(t.typed=!1),(o.value!==void 0||s in i)&&(t.value[s]=o.value)}}else Se(this,"type",t,n);return t}}}function Je(e){return{kind:"schema",type:"string",reference:Je,expects:"string",async:!1,message:e,_run(r,t){return typeof r.value=="string"?r.typed=!0:Se(this,"type",r,t),r}}}function ft(e,r,t){let n=e._run({typed:!1,value:r},vs(t));return{typed:n.typed,success:!n.issues,output:n.value,issues:n.issues}}var Es=Ye({"@context":te("https://schema.org"),"@id":te(""),"@type":te("Message"),keywords:Ze(Je()),type:te("https://schema.org/Message")});function ne(e){return e?.type!=="message"?!1:!!e.entities?.find(t=>ft(Es,t).success)?.keywords.includes("PreChatMessage")}var io=l(N()),K=l(v());var Ts=".webchat-fluent .d{display:grid;grid-template-areas:\"body\" \"toolbar\";grid-template-rows:auto auto;gap:var(--webchat-spacingHorizontalXXXL);padding:var(--webchat-spacingHorizontalXXXL)}.webchat-fluent .r{font-family:var(--webchat-fontFamilyBase);font-size:var(--webchat-fontSizeBase300);font-weight:var(--webchat-fontWeightRegular);grid-area:body;line-height:var(--webchat-lineHeightBase300);text-align:center}.webchat-fluent .r h2{color:var(--webchat-colorNeutralForeground1);font-family:inherit;font-weight:var(--webchat-fontWeightSemibold);font-size:var(--webchat-fontSizeHero700);line-height:var(--webchat-lineHeightHero700);margin:var(--webchat-spacingVerticalL) 0 0}.webchat-fluent .r img{border-radius:4px;height:64px}.webchat-fluent .b{grid-area:toolbar}.webchat-fluent .u{background-color:var(--webchat-colorNeutralForeground4);-webkit-mask-image:var(--mask-image);mask-image:var(--mask-image);--webkit-mask-image: var(--mask-image)}.webchat-fluent .e{-webkit-appearance:none;appearance:none;background-color:var(--webchat-colorNeutralBackground1);border:0;border-radius:16px;box-shadow:var(--webchat-shadow2);color:var(--webchat-colorNeutralForeground1);cursor:pointer;display:grid;gap:8px;grid-template-areas:\"image title\" \"image subtitle\";grid-template-columns:20px 1fr;grid-template-rows:auto 1fr;overflow:hidden;padding:16px 20px;text-align:left;-webkit-user-select:none;user-select:none}.webchat-fluent .e:disabled{background-color:var(--webchat-colorNeutralBackground1Disabled)}.webchat-fluent .e:hover{background-color:var(--webchat-colorNeutralGrey94)}.webchat-fluent .e:active{background-color:var(--webchat-colorNeutralBackground1Pressed)}.webchat-fluent .e:focus-visible{outline:solid 2px var(--webchat-colorStrokeFocus2);outline-offset:-2px}.webchat-fluent .h{grid-area:image;height:20px;width:20px}.webchat-fluent .g{font-family:var(--webchat-fontFamilyBase);font-size:14px;font-weight:var(--webchat-fontWeightRegular);grid-area:subtitle;line-height:20px;pointer-events:none}.webchat-fluent .s{font-family:var(--webchat-fontFamilyBase);font-size:14px;font-weight:var(--webchat-fontWeightSemibold);grid-area:title;line-height:20px}.webchat-fluent .w{container-name:a;container-type:inline-size}.webchat-fluent .o{display:grid;gap:var(--webchat-spacingHorizontalM);grid-template-columns:1fr 1fr 1fr;padding:0}@container a (width <= 480px){.webchat-fluent .o{grid-template-columns:1fr}}.webchat-fluent .p{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 .f{background-color:#e00;color:#fff}.webchat-fluent .v{height:36px;pointer-events:none;width:36px}.webchat-fluent .x{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 .x:not([aria-disabled=true]):hover{background-color:var(--webchat-colorBrandBackground2Hover);color:var(--webchat-colorBrandForeground2Hover)}}.webchat-fluent .x:not([aria-disabled=true]):active{background-color:var(--webchat-colorBrandBackground2Pressed);color:var(--webchat-colorBrandForeground2Pressed)}.webchat-fluent .x[aria-disabled=true]{color:var(--webchat-colorNeutralForegroundDisabled);cursor:not-allowed}.webchat-fluent .m{font-size:12px;height:1em;width:1em}.webchat-fluent .k{align-items:flex-end;align-self:flex-end;display:flex;flex-direction:column;gap:8px}.webchat-fluent .k:not(:empty){padding-block-end:8px;padding-inline-start:4px}.webchat-fluent .k.B{flex-direction:row;flex-wrap:wrap;justify-content:flex-end}.webchat-fluent .k.y{flex-direction:column}.webchat-fluent .t{-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 .t:hover{background-color:var(--webchat-colorGray30)}.webchat-fluent .l{color:var(--webchat-colorGray190);font-size:10px}.webchat-fluent .c{font-size:24px;margin-top:8px}.webchat-fluent .F .t{height:32px;justify-content:center;margin:8px 4px;width:32px}.webchat-fluent .F .l{display:none}.webchat-fluent .F .c{font-size:20px;margin-top:0}.webchat-fluent .N{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 .S{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 .z{align-items:center;color:var(--webchat-colorNeutralForeground4);display:flex;font-size:12px;gap:6px;margin-block-end:6px}.webchat-fluent .H{color:var(--webchat-colorBrandForegroundLink);text-decoration-color:transparent}.webchat-fluent .H:target{color:var(--webchat-colorBrandForegroundLinkSelected)}.webchat-fluent .H:hover{color:var(--webchat-colorBrandForegroundLinkHover);text-decoration:underline 1px currentColor}.webchat-fluent .H:active{color:var(--webchat-colorBrandForegroundLinkPressed)}.webchat-fluent .H:focus-visible{outline:none;text-decoration:underline 1px double var(--webchat-colorStrokeFocus2)}.webchat-fluent .L{display:flex;gap:4px;margin-inline-start:auto}.webchat-fluent .W{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 .W>svg{font-size:20px;pointer-events:none}.webchat-fluent .W.R{color:var(--webchat-colorNeutralForeground2BrandSelected)}@media (hover: hover){.webchat-fluent .W:not([aria-disabled=true]):hover{color:var(--webchat-colorNeutralForeground2BrandHover)}}.webchat-fluent .W:not([aria-disabled=true]):active{color:var(--webchat-colorNeutralForeground2BrandPressed)}.webchat-fluent .W[aria-disabled=true]{color:var(--webchat-colorNeutralForegroundDisabled);cursor:not-allowed}.webchat-fluent .P{align-self:center;border-inline-end:1px solid var(--webchat-colorNeutralStroke2);height:28px}.webchat-fluent .P:is(:first-child,:last-child,:only-child){display:none}.webchat-fluent .X{display:grid}.webchat-fluent .G{font-size:0;height:0;opacity:0;width:1px}.webchat-fluent .D{border-radius:var(--webchat-borderRadiusLarge);border:1px solid var(--webchat-colorNeutralStroke1);cursor:default;padding:6px 8px;width:fit-content}.webchat-fluent .M{color:transparent;font-size:0;height:0;left:0;position:absolute;top:0;width:0}.webchat-fluent .U{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 .C{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 .C:has(.n){--webchat-sendbox-attachment-area-active: \"attachment\" }.webchat-fluent .C:focus-within{border-color:var(--webchat-colorNeutralStroke1Selected)}.webchat-fluent .C: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 .C: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 .C>.j{grid-area:text-area}.webchat-fluent .C>.n{grid-area:attachment}.webchat-fluent .C>.T{grid-area:controls}.webchat-fluent .C>.I{grid-area:telephone-keypad}.webchat-fluent .A{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 .A:focus-within{font-size:16px}}.webchat-fluent .V{align-items:center;display:flex;padding-inline-start:4px}.webchat-fluent .E{color:var(--webchat-colorNeutralForeground4);cursor:default;font-family:var(--webchat-fontFamilyNumeric);font-size:10px;line-height:14px;margin-inline-end:4px}.webchat-fluent .q{color:var(--webchat-colorStatusDangerForeground1)}.webchat-fluent .J{display:grid;grid-template-areas:\"main\";max-height:200px;overflow:hidden}.webchat-fluent .K{height:0;visibility:collapse}.webchat-fluent .O{border:none;font:inherit;grid-area:main;outline:inherit;overflow-wrap:anywhere;resize:inherit;scrollbar-gutter:stable}.webchat-fluent .Q{overflow:hidden;visibility:hidden;white-space:pre-wrap}.webchat-fluent .Y{background-color:inherit;color:currentColor;height:100%;padding:0}.webchat-fluent .Z{scrollbar-color:unset;scrollbar-width:unset;-moz-scrollbar-color:var(--webchat-colorNeutralBackground5) var(--webchat-colorNeutralForeground2);-moz-scrollbar-width:thin}.webchat-fluent .Z::-webkit-scrollbar{width:8px}.webchat-fluent .Z::-webkit-scrollbar-track{background-color:var(--webchat-colorNeutralBackground5);border-radius:16px}.webchat-fluent .Z::-webkit-scrollbar-thumb{background-color:var(--webchat-colorNeutralForeground2);border-radius:16px}.webchat-fluent .Z::-webkit-scrollbar-corner{background-color:var(--webchat-colorNeutralBackground5)}.webchat-fluent.i{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-colorNeutralBackground1Disabled: var(--colorNeutralBackground1Disabled, #f0f0f0);--webchat-colorNeutralBackground1Pressed: var(--colorNeutralBackground1Pressed, #e0e0e0);--webchat-colorNeutralGrey94: var(--colorNeutralGrey94, #f0f0f0);--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-spacingHorizontalM: var(--spacingHorizontalM, 12px);--webchat-spacingHorizontalXXXL: var(--spacingHorizontalXXXL, 32px);--webchat-spacingVerticalL: var(--spacingVerticalL, 16px);--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-fontWeightRegular: var(--fontWeightRegular, 400);--webchat-fontWeightSemibold: var(--fontWeightSemibold, 600);--webchat-fontSizeBase300: var(--fontSizeBase300, 14px);--webchat-fontSizeHero700: var(--fontSizeHero700, 28px);--webchat-lineHeightBase300: var(--lineHeightBase300, 20px);--webchat-lineHeightHero700: var(--lineHeightHero700, 36px);--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));--webchat-shadow2: 0 0 2px rgba(0, 0, 0, 12%), 0 1px 2px rgba(0, 0, 0, 14%)}@media (prefers-reduced-motion){.webchat-fluent.i{--webchat-durationUltraFast: .01ms;--webchat-durationNormal: .01ms}}\n/*! For license information please see botframework-webchat-fluent-theme.production.min.css.LEGAL.txt */\n";function Ne(){if(globalThis.document){let e=document.createElement("style");e.append(document.createTextNode(Ts)),document.head.appendChild(e)}}var dt=l(v());function Ss(e){return(0,dt.useMemo)(()=>Object.freeze(Object.fromEntries(Object.entries(e).map(([r,t])=>[r,`${r} ${t}`]))),[e])}var h=Ss;var yt={"pre-chat-message-activity":"d","pre-chat-message-activity__body":"r","pre-chat-message-activity__toolbar":"b"};var ro=l(B()),ae=l(v());var Zi=l(N()),Yi=l(B()),D=l(v());var Ki=l(zi()),Fe=l(v());function T(e){var r=(0,Fe.useRef)(),t=(0,Fe.useMemo)(function(){return(0,Ki.default)({},{current:{get:function(){return r.current}}})},[r]);return r.current=e,t}var dl={preChatMessageActivityStarterPromptsCardAction:"pre-chat message activity starter prompts card action",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"},x=dl;var Gi=l(B()),ue=l(v());var Ui={"pre-chat-message-activity__monochrome-image-masker":"u"};var Xi=({className:e,src:r})=>{let t=h(Ui),n=(0,ue.useMemo)(()=>({"--mask-image":`url(${r})`}),[r]);return ue.default.createElement("div",{className:(0,Gi.default)(e,t["pre-chat-message-activity__monochrome-image-masker"]),style:n})};Xi.displayName="MonochromeImageMasker";var Wi=(0,ue.memo)(Xi);var Vi={"pre-chat-message-activity__card-action-box":"e","pre-chat-message-activity__card-action-image":"h","pre-chat-message-activity__card-action-subtitle":"g","pre-chat-message-activity__card-action-title":"s"};var{useFocus:ml,useRenderMarkdownAsHTML:vl,useSendBoxValue:bl}=Zi.hooks,Ji=({className:e,messageBackAction:r})=>{let[t,n]=bl(),i=h(Vi),s=ml(),a=T(r.displayText||r.text||""),o=vl("message activity"),c=(0,D.useMemo)(()=>o?{__html:o(r.text||"")}:{__html:""},[r.text,o]),y=(0,D.useCallback)(()=>{n(a.current),s("sendBox")},[s,a,n]);return D.default.createElement("button",{className:(0,Yi.default)(e,i["pre-chat-message-activity__card-action-box"]),"data-testid":x.preChatMessageActivityStarterPromptsCardAction,onClick:y,type:"button"},D.default.createElement("div",{className:i["pre-chat-message-activity__card-action-title"]},"title"in r&&r.title),"image"in r&&r.image&&D.default.createElement(Wi,{className:i["pre-chat-message-activity__card-action-image"],src:r.image}),D.default.createElement("div",{className:i["pre-chat-message-activity__card-action-subtitle"],dangerouslySetInnerHTML:c}))};Ji.displayName="StarterPromptAction";var Qi=(0,D.memo)(Ji);var eo={"pre-chat-message-activity__card-action-toolbar":"w","webchat-container":"a","pre-chat-message-activity__card-action-toolbar-grid":"o"};var to=({cardActions:e,className:r})=>{let t=h(eo);return ae.default.createElement("div",{className:(0,ro.default)(r,t["pre-chat-message-activity__card-action-toolbar"])},ae.default.createElement("div",{className:t["pre-chat-message-activity__card-action-toolbar-grid"]},e.filter(n=>n.type==="messageBack").map(n=>ae.default.createElement(Qi,{key:n.text,messageBackAction:n}))))};to.displayName="StarterPrompts";var no=(0,ae.memo)(to);var{useRenderMarkdownAsHTML:xl}=io.hooks,oo=({activity:e})=>{let r=h(yt),t=xl(),n=(0,K.useMemo)(()=>t?{__html:t(e.text||"")}:{__html:""},[e.text,t]);return K.default.createElement("div",{className:r["pre-chat-message-activity"]},K.default.createElement("div",{className:r["pre-chat-message-activity__body"],dangerouslySetInnerHTML:n}),K.default.createElement(no,{cardActions:e.suggestedActions?.actions||[],className:r["pre-chat-message-activity__toolbar"]}))};oo.displayName="PreChatMessageActivity";var Lr=(0,K.memo)(oo);var Qo=l(N()),le=l(B()),b=l(v());var ge=l(v());function _l(e){return ge.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"},ge.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 Hr=(0,ge.memo)(_l);var xe=l(v());function kl(e){return xe.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"},xe.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 $r=(0,xe.memo)(kl);var _e=l(v());function wl(e){return _e.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"},_e.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 zr=(0,_e.memo)(wl);var ke=l(v());function El(e){return ke.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"},ke.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 Kr=(0,ke.memo)(El);var we=l(v());function Tl(e){return we.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"},we.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 Ur=(0,we.memo)(Tl);var ao=l(N()),lo=l(B()),I=l(v());var so={"sendbox__attachment-drop-zone":"p","sendbox__attachment-drop-zone--droppable":"f","sendbox__attachment-drop-zone-icon":"v"};var{useLocalizer:Nl}=ao.hooks,Al=e=>{e.preventDefault()},uo=e=>!!e.dataTransfer?.types?.some(r=>r.toLowerCase()==="files");function Bl(e,r){let t=e.parentNode;for(;t;){if(t===r)return!0;t=t.parentNode}return!1}var co=e=>{let[r,t]=(0,I.useState)(!1),n=h(so),i=(0,I.useRef)(null),s=Nl(),a=T(e.onFilesAdded);(0,I.useEffect)(()=>{let c=0,y=f=>{c++,uo(f)&&t(i.current&&(f.target===i.current||f.target instanceof HTMLElement&&Bl(f.target,i.current))?"droppable":"visible")},p=()=>--c<=0&&t(!1);return document.addEventListener("dragenter",y,!1),document.addEventListener("dragleave",p,!1),()=>{document.removeEventListener("dragenter",y),document.removeEventListener("dragleave",p)}},[t]);let o=(0,I.useCallback)(c=>{c.preventDefault(),t(!1),uo(c.nativeEvent)&&a.current([...c.dataTransfer.files])},[a,t]);return r?I.default.createElement("div",{className:(0,lo.default)(n["sendbox__attachment-drop-zone"],{[n["sendbox__attachment-drop-zone--droppable"]]:r==="droppable"}),"data-testid":x.sendBoxDropZone,onDragOver:Al,onDrop:o,ref:i},I.default.createElement(Hr,{className:n["sendbox__attachment-drop-zone-icon"]}),s("TEXT_INPUT_DROP_ZONE")):null};co.displayName="DropZone";var Gr=(0,I.memo)(co);var xo=l(N()),_o=l(B()),O=l(v());function Xr(e){let{title:r}=e,{type:t,value:n}=e;return t==="messageBack"?r||e.displayText:r||(typeof n=="string"?n:JSON.stringify(n))}var k=l(v()),po=(0,k.createContext)({itemEffector:()=>{throw new Error("botframework-webchat-fluent-theme rovingFocus: no provider for RovingFocusContext.")}});function Il(e){let r=(0,k.useRef)(0),t=(0,k.useRef)([]),n=(0,k.useCallback)(({current:p},f)=>p&&(p.tabIndex=r.current===f?0:-1),[r]),i=(0,k.useCallback)(p=>{let f;typeof p=="number"?f=p:f=p(r.current),f&&!t.current.at(f)?.current&&(f=0),r.current!==f&&(r.current=f,t.current.forEach((m,g)=>n(m,g)),t.current.at(f)?.current?.focus())},[n,t,r]),s=(0,k.useCallback)(p=>{let{target:f}=p,m=t.current.findIndex(({current:g})=>g===f);m!==-1&&i(m)},[t,i]),a=(0,k.useCallback)(p=>f=>{let m=!e.direction,g=/up|down/iu.test(p)&&e.direction==="vertical",_=/left|right/iu.test(p)&&e.direction==="horizontal",w=/right|down/iu.test(p),E=m||g||_?w?1:-1:0,S=t.current.map((Z,ee)=>ee),R=S.indexOf(f)+E;return S.at(R)??0},[e.direction]),o=(0,k.useCallback)(p=>{let{key:f}=p;switch(f){case"Up":case"ArrowUp":case"Left":case"ArrowLeft":case"Down":case"ArrowDown":case"Right":case"ArrowRight":i(a(f));break;case"Home":i(0);break;case"End":i(-1);break;case"Escape":e.onEscapeKey?.();break;default:return}p.preventDefault(),p.stopPropagation()},[i,a,e]),c=(0,k.useCallback)((p,f)=>{let{current:m}=p;return t.current[Number(f)]=p,m.addEventListener("focus",s),m.addEventListener("keydown",o),n(p,f),()=>{m.removeEventListener("focus",s),m.removeEventListener("keydown",o),delete t.current[Number(f)]}},[s,o,n,t]),y=(0,k.useMemo)(()=>({itemEffector:c}),[c]);return k.default.createElement(po.Provider,{value:y},e.children)}function fo(e){let r=(0,k.useRef)(null),{itemEffector:t}=(0,k.useContext)(po);return(0,k.useEffect)(()=>t(r,e)),r}var yo=(0,k.memo)(Il);var vo=l(N()),bo=l(B()),G=l(v());var ho={"suggested-action":"x","suggested-action__image":"m"};var U=l(v()),Pl=e=>e.preventDefault(),Cl=(0,U.forwardRef)(({"aria-hidden":e,children:r,disabled:t,onClick:n,tabIndex:i,...s},a)=>{let o=(0,U.useRef)(null);return U.default.createElement("button",{"aria-disabled":t?"true":"false","aria-hidden":e,onClick:t?Pl:n,ref:a||o,tabIndex:i,...t&&{"aria-disabled":"true",tabIndex:-1},...s,type:"button"},r)}),mo=(0,U.memo)(Cl);var{useDisabled:Dl,useFocus:Ol,usePerformCardAction:ql,useScrollToEnd:Fl,useStyleSet:jl,useSuggestedActions:Rl}=vo.hooks;function Ll({buttonText:e,className:r,displayText:t,image:n,imageAlt:i,itemIndex:s,text:a,type:o,value:c}){let[y,p]=Rl(),[{suggestedAction:f}]=jl(),[m]=Dl(),g=Ol(),_=fo(s),w=ql(),E=h(ho),S=Fl(),R=(0,G.useCallback)(({target:Z})=>{(async function(){await g("sendBoxWithoutKeyboard"),w({displayText:t,text:a,type:o,value:c},{target:Z}),o==="openUrl"&&p([]),S()})()},[t,g,w,S,p,a,o,c]);return G.default.createElement(mo,{className:(0,bo.default)(E["suggested-action"],f+"",(r||"")+""),disabled:m,onClick:R,ref:_,type:"button"},n&&G.default.createElement("img",{alt:i,className:E["suggested-action__image"],src:n}),G.default.createElement("span",null,e))}var go=(0,G.memo)(Ll);var Wr={"suggested-actions":"k","suggested-actions--flow":"B","suggested-actions--stacked":"y"};var{useFocus:$l,useLocalizer:zl,useStyleOptions:Kl,useStyleSet:Ul,useSuggestedActions:Gl}=xo.hooks;function Xl(e){let[{suggestedActionLayout:r}]=Kl(),[{suggestedActions:t}]=Ul(),n=h(Wr);return O.default.createElement("div",{"aria-label":e["aria-label"],"aria-live":"polite","aria-orientation":"vertical",className:(0,_o.default)(n["suggested-actions"],t+"",{[n["suggested-actions--flow"]]:r==="flow",[n["suggested-actions--stacked"]]:r!=="flow"},e.className),role:"toolbar"},!!e.children&&!!O.default.Children.count(e.children)&&e.children)}function Wl(){let e=h(Wr),r=zl(),[t,n,{activity:i}]=Gl(),s=$l(),a=(0,O.useCallback)(()=>{s("sendBox")},[s]),o=ne(i)?[]:t.map((c,y)=>{let{displayText:p,image:f,imageAltText:m,text:g,type:_,value:w}=c;return t?.length?O.default.createElement(go,{buttonText:Xr(c),displayText:p,image:f,imageAlt:f&&(m||g),itemIndex:y,key:y,text:g,type:_,value:w}):null});return O.default.createElement(yo,{onEscapeKey:a},O.default.createElement(Xl,{"aria-label":r("SUGGESTED_ACTIONS_LABEL_ALT"),className:e["suggested-actions"]},o))}var Vr=(0,O.memo)(Wl);var X=l(v());var ko=l(v()),wo=(0,ko.createContext)(new Proxy({},{get(){throw new Error("botframework-webchat: This hook can only used under its corresponding <Provider>.")}}));wo.displayName="TelephoneKeypad.Context";var je=wo;var Vl=(0,X.memo)(({children:e})=>{let[r,t]=(0,X.useState)(!1),n=(0,X.useMemo)(()=>Object.freeze({setShown:t,shown:r}),[t,r]);return X.default.createElement(je.Provider,{value:n},e)}),Zr=Vl;var Le=l(v());var So=l(N()),No=l(B()),d=l(v());var q=l(v());var Eo={"telephone-keypad__button":"t","telephone-keypad__button__ruby":"l","telephone-keypad__button__text":"c","telephone-keypad--horizontal":"F"};var To=(0,q.memo)((0,q.forwardRef)(({button:e,"data-testid":r,onClick:t,ruby:n},i)=>{let s=h(Eo),a=T(t),o=(0,q.useCallback)(()=>a.current?.(),[a]);return q.default.createElement("button",{className:s["telephone-keypad__button"],"data-testid":r,onClick:o,ref:i,type:"button"},q.default.createElement("span",{className:s["telephone-keypad__button__text"]},e==="*"?"\u2217":e),!!n&&q.default.createElement("ruby",{className:s["telephone-keypad__button__ruby"]},n))}));To.displayName="TelephoneKeypad.Button";var M=To;var Re=l(v());function F(){let{setShown:e,shown:r}=(0,Re.useContext)(je);return(0,Re.useMemo)(()=>Object.freeze([r,e]),[r,e])}var Yr={"telephone-keypad":"N","telephone-keypad__box":"S","telephone-keypad__info-message":"z","telephone-keypad__info-message-link":"H"};var{LocalizedString:Jl}=So.Components,Ao=(0,d.memo)(({children:e,isHorizontal:r})=>{let t=h(Yr);return r?null:d.default.createElement("div",{className:t["telephone-keypad__box"]},e)});Ao.displayName="TelephoneKeypad:Orientation";var Bo=(0,d.memo)(({autoFocus:e,className:r,onButtonClick:t,isHorizontal:n})=>{let i=T(e),s=h(Yr),a=(0,d.useRef)(null),o=T(t),[,c]=F(),y=(0,d.useCallback)(()=>o.current?.("1"),[o]),p=(0,d.useCallback)(()=>o.current?.("2"),[o]),f=(0,d.useCallback)(()=>o.current?.("3"),[o]),m=(0,d.useCallback)(()=>o.current?.("4"),[o]),g=(0,d.useCallback)(()=>o.current?.("5"),[o]),_=(0,d.useCallback)(()=>o.current?.("6"),[o]),w=(0,d.useCallback)(()=>o.current?.("7"),[o]),E=(0,d.useCallback)(()=>o.current?.("8"),[o]),S=(0,d.useCallback)(()=>o.current?.("9"),[o]),R=(0,d.useCallback)(()=>o.current?.("0"),[o]),Z=(0,d.useCallback)(()=>o.current?.("*"),[o]),ee=(0,d.useCallback)(()=>o.current?.("#"),[o]),ce=(0,d.useCallback)(re=>{re.key==="Escape"&&c(!1)},[c]);return(0,d.useEffect)(()=>{i.current&&a.current?.focus()},[i,a]),d.default.createElement("div",{className:(0,No.default)(s["telephone-keypad"],r),onKeyDown:ce},d.default.createElement(Ao,{isHorizontal:n},d.default.createElement(M,{button:"1","data-testid":x.sendBoxTelephoneKeypadButton1,onClick:y,ref:a}),d.default.createElement(M,{button:"2","data-testid":x.sendBoxTelephoneKeypadButton2,onClick:p,ruby:"ABC"}),d.default.createElement(M,{button:"3","data-testid":x.sendBoxTelephoneKeypadButton3,onClick:f,ruby:"DEF"}),d.default.createElement(M,{button:"4","data-testid":x.sendBoxTelephoneKeypadButton4,onClick:m,ruby:"GHI"}),d.default.createElement(M,{button:"5","data-testid":x.sendBoxTelephoneKeypadButton5,onClick:g,ruby:"JKL"}),d.default.createElement(M,{button:"6","data-testid":x.sendBoxTelephoneKeypadButton6,onClick:_,ruby:"MNO"}),d.default.createElement(M,{button:"7","data-testid":x.sendBoxTelephoneKeypadButton7,onClick:w,ruby:"PQRS"}),d.default.createElement(M,{button:"8","data-testid":x.sendBoxTelephoneKeypadButton8,onClick:E,ruby:"TUV"}),d.default.createElement(M,{button:"9","data-testid":x.sendBoxTelephoneKeypadButton9,onClick:S,ruby:"WXYZ"}),d.default.createElement(M,{button:"*","data-testid":x.sendBoxTelephoneKeypadButtonStar,onClick:Z}),d.default.createElement(M,{button:"0","data-testid":x.sendBoxTelephoneKeypadButton0,onClick:R,ruby:"+"}),d.default.createElement(M,{button:"#","data-testid":x.sendBoxTelephoneKeypadButtonPound,onClick:ee})),d.default.createElement("div",{className:s["telephone-keypad__info-message"]},d.default.createElement(zr,null),d.default.createElement(Jl,{linkClassName:s["telephone-keypad__info-message-link"],stringIds:"TELEPHONE_KEYPAD_INPUT_MESSAGE"})))});Bo.displayName="TelephoneKeypad";var Io=Bo;var Mo=(0,Le.memo)(e=>F()[0]?Le.default.createElement(Io,{...e}):null);Mo.displayName="TelephoneKeypad.Surrogate";var Jr=Mo;var Co=l(N()),P=l(v());var $e=l(B()),W=l(v());var He={sendbox__toolbar:"L","sendbox__toolbar-button":"W","sendbox__toolbar-button--selected":"R","sendbox__toolbar-separator":"P"};var ec=e=>e.preventDefault(),Y=(0,W.memo)(e=>{let r=h(He);return W.default.createElement("button",{"aria-label":e["aria-label"],className:(0,$e.default)(r["sendbox__toolbar-button"],e.className,{[r["sendbox__toolbar-button--selected"]]:e.selected}),"data-testid":e["data-testid"],onClick:e.disabled?ec:e.onClick,type:e.type==="submit"?"submit":"button",...e.disabled&&{"aria-disabled":"true",tabIndex:-1}},e.children)});Y.displayName="ToolbarButton";var Qr=(0,W.memo)(e=>{let r=h(He);return W.default.createElement("div",{className:(0,$e.default)(r.sendbox__toolbar,e.className)},e.children)});Qr.displayName="Toolbar";var et=(0,W.memo)(e=>{let r=h(He);return W.default.createElement("div",{"aria-orientation":"vertical",className:(0,$e.default)(r["sendbox__toolbar-separator"],e.className),role:"separator"})});et.displayName="ToolbarSeparator";var Po={"sendbox__add-attachment":"X","sendbox__add-attachment-input":"G"};var{useLocalizer:tc,useStyleOptions:nc}=Co.hooks;function ic(e){let r=(0,P.useRef)(null),t=h(Po),n=tc(),[{uploadAccept:i,uploadMultiple:s}]=nc(),a=T(e.onFilesAdded),o=(0,P.useCallback)(()=>r.current?.click(),[r]),c=(0,P.useCallback)(({target:{files:y}})=>{y&&(a.current?.([...y]),r.current&&(r.current.value=""))},[r,a]);return P.default.createElement("div",{className:t["sendbox__add-attachment"]},P.default.createElement("input",{accept:i,"aria-disabled":e.disabled,"aria-hidden":"true",className:t["sendbox__add-attachment-input"],multiple:s,onInput:e.disabled?void 0:c,readOnly:e.disabled,ref:r,role:"button",tabIndex:-1,type:"file"}),P.default.createElement(Y,{"aria-label":n("TEXT_INPUT_UPLOAD_BUTTON_ALT"),"data-testid":x.sendBoxUploadButton,onClick:o},P.default.createElement($r,null)))}var Do=(0,P.memo)(ic);var qo=l(N()),ze=l(v()),Fo=l(B());var Oo={sendbox__attachment:"D"};var{useLocalizer:sc}=qo.hooks,uc={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 ac({attachments:e,className:r}){let t=h(Oo),n=sc({plural:!0});return e.length?ze.default.createElement("div",{className:(0,Fo.default)(t.sendbox__attachment,r)},n(uc,e.length)):null}var jo=(0,ze.memo)(ac);var Ke=l(v());var Ro={"sendbox__error-message":"M"};function cc(e){let r=h(Ro);return Ke.default.createElement("span",{className:r["sendbox__error-message"],id:e.id,role:"alert"},e.error)}var Lo=(0,Ke.memo)(cc);var Ho=l(N()),rt=l(v());var{useConnectivityStatus:pc,useLocalizer:fc}=Ho.hooks,dc=({attachments:e,message:r})=>{let[t]=pc(),n=fc(),i=T(t!=="connected"&&t!=="reconnected"?"offline":!r&&!e.length?"empty":void 0),s=(0,rt.useMemo)(()=>Object.freeze(new Map().set("empty",n("SEND_BOX_IS_EMPTY_TOOLTIP_ALT")).set("offline",n("CONNECTIVITY_STATUS_ALT_FATAL"))),[n]);return(0,rt.useMemo)(()=>Object.freeze([i,i.current&&s.get(i.current)]),[s,i])},$o=dc;var zo=l(v()),Ko=l(N()),{useScrollDown:yc,useScrollUp:hc}=Ko.hooks;function tt(){let e=yc(),r=hc();return(0,zo.useCallback)(t=>{if(t.target instanceof HTMLTextAreaElement&&t.target.value)return;let{ctrlKey:n,metaKey:i,shiftKey:s}=t;if(n||i||s)return;let a=!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:a=!1;break}a&&(t.preventDefault(),t.stopPropagation())},[e,r])}var Uo=l(v());function nt(e){let r=(0,Uo.useMemo)(()=>Math.random().toString(36).substr(2,5),[]);return e=e?`${e}--`:"",`${e}${r}`}var Go={sendbox:"U",sendbox__sendbox:"C","sendbox__attachment--in-grid":"n","sendbox__text-area--in-grid":"j","sendbox__sendbox-controls--in-grid":"T","sendbox__telephone-keypad--in-grid":"I","sendbox__sendbox-text":"A","sendbox__sendbox-controls":"V","sendbox__text-counter":"E","sendbox__text-counter--error":"q"};var J=l(v()),Xo=l(N());var{useLocalizer:vc}=Xo.hooks,Wo=(0,J.memo)(()=>{let[e,r]=F(),t=vc(),n=(0,J.useCallback)(()=>r(i=>!i),[r]);return J.default.createElement(Y,{"aria-label":t("TEXT_INPUT_TELEPHONE_KEYPAD_BUTTON_ALT"),"data-testid":x.sendBoxTelephoneKeypadToolbarButton,onClick:n,selected:e},J.default.createElement(Ur,null))});Wo.displayName="SendBox.TelephoneKeypadToolbarButton";var Vo=Wo;var Ue=l(B()),V=l(v());var Zo={"sendbox__text-area":"J","sendbox__text-area--hidden":"K","sendbox__text-area-shared":"O","sendbox__text-area-doppelganger":"Q","sendbox__text-area-input":"Y","sendbox__text-area-input--scroll":"Z"};var Yo=(0,V.forwardRef)((e,r)=>{let t=h(Zo),n=(0,V.useCallback)(i=>{!i.shiftKey&&i.key==="Enter"&&(i.preventDefault(),"form"in i.target&&i.target.form instanceof HTMLFormElement&&i.target?.form?.requestSubmit())},[]);return V.default.createElement("div",{className:(0,Ue.default)(t["sendbox__text-area"],{[t["sendbox__text-area--hidden"]]:e.hidden},e.className),role:e.hidden?"hidden":void 0},V.default.createElement("div",{className:(0,Ue.default)(t["sendbox__text-area-doppelganger"],t["sendbox__text-area-shared"],t["sendbox__text-area-input--scroll"])},e.value||e.placeholder," "),V.default.createElement("textarea",{"aria-label":e["aria-label"],className:(0,Ue.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:n,placeholder:e.placeholder,ref:r,rows:e.startRows??1,tabIndex:e.hidden?-1:void 0,value:e.value}))});Yo.displayName="TextArea";var Jo=Yo;var{useFocus:gc,useLocalizer:xc,useMakeThumbnail:_c,useRegisterFocusSendBox:kc,useSendBoxAttachments:wc,useSendBoxValue:Ec,useSendMessage:Tc,useStyleOptions:Sc}=Qo.hooks;function es(e){let r=(0,b.useRef)(null),[t,n]=(0,b.useState)(""),[i,s]=Ec(),a=e.isPrimary?i:t,o=e.isPrimary?s:n,[c,y]=wc(),[{hideTelephoneKeypadButton:p,hideUploadButton:f,maxMessageLength:m}]=Sc(),g=!!m&&a.length>m,_=h(Go),w=xc(),E=Tc(),S=_c(),R=nt("sendbox__error-message-id"),[Z,ee]=$o({message:a,attachments:c}),[ce]=F(),re=gc();kc((0,b.useCallback)(({noKeyboard:A,waitUntil:We})=>{r.current&&(A?We((async()=>{let pe=r.current?.getAttribute("readonly");r.current?.setAttribute("readonly","true"),await new Promise(Ee=>setTimeout(Ee,0)),r.current?.focus(),typeof pe!="string"?r.current?.removeAttribute("readonly"):r.current?.setAttribute("readonly",pe)})()):r.current?.focus())},[r]));let ot=T(c),st=T(a),os=(0,b.useCallback)(A=>{"tabIndex"in A.target&&typeof A.target.tabIndex=="number"&&A.target.tabIndex>=0||re("sendBox")},[re]),ss=(0,b.useCallback)(A=>o(A.currentTarget.value),[o]),ut=(0,b.useCallback)(async A=>{let We=Object.freeze(await Promise.all(A.map(pe=>S(pe).then(Ee=>Object.freeze({blob:pe,...Ee&&{thumbnailURL:Ee}})))));y(We)},[S,y]),us=(0,b.useCallback)(A=>{A.preventDefault(),Z.current!=="empty"&&!g&&(E(st.current,void 0,{attachments:ot.current}),o(""),y([])),re("sendBox")},[ot,st,E,y,o,g,Z,re]),as=(0,b.useCallback)(A=>E(`/DTMFKey ${A}`),[E]),ls=tt(),cs={"aria-invalid":"false",...ee&&{"aria-invalid":"true","aria-errormessage":R}};return b.default.createElement("form",{...cs,className:(0,le.default)(_.sendbox,e.className),onSubmit:us},b.default.createElement(Vr,null),b.default.createElement("div",{className:(0,le.default)(_.sendbox__sendbox),onClickCapture:os,onKeyDown:ls},b.default.createElement(Jo,{"aria-label":w(g?"TEXT_INPUT_LENGTH_EXCEEDED_ALT":"TEXT_INPUT_ALT"),className:(0,le.default)(_["sendbox__sendbox-text"],_["sendbox__text-area--in-grid"]),"data-testid":x.sendBoxTextBox,hidden:ce,onInput:ss,placeholder:e.placeholder??w("TEXT_INPUT_PLACEHOLDER"),ref:r,value:a}),b.default.createElement(Jr,{autoFocus:!0,className:_["sendbox__telephone-keypad--in-grid"],isHorizontal:!1,onButtonClick:as}),b.default.createElement(jo,{attachments:c,className:_["sendbox__attachment--in-grid"]}),b.default.createElement("div",{className:(0,le.default)(_["sendbox__sendbox-controls"],_["sendbox__sendbox-controls--in-grid"])},!ce&&m&&isFinite(m)&&b.default.createElement("div",{className:(0,le.default)(_["sendbox__text-counter"],{[_["sendbox__text-counter--error"]]:g})},`${a.length}/${m}`),b.default.createElement(Qr,null,!p&&b.default.createElement(Vo,null),!f&&b.default.createElement(Do,{onFilesAdded:ut}),b.default.createElement(et,null),b.default.createElement(Y,{"aria-label":w("TEXT_INPUT_SEND_BUTTON_ALT"),"data-testid":x.sendBoxSendButton,disabled:g||ce,type:"submit"},b.default.createElement(Kr,null)))),b.default.createElement(Gr,{onFilesAdded:ut}),b.default.createElement(Lo,{error:ee,id:R})))}var Ge=(0,b.memo)(e=>b.default.createElement(es,{...e,isPrimary:!0}));Ge.displayName="PrimarySendBox";var Nc=(0,b.memo)(es);var ts=l(v()),ns=l(B());var rs={theme:"i"};var Bc="webchat-fluent";function Xe(e){let r=h(rs);return ts.default.createElement("div",{className:(0,ns.default)(Bc,r.theme)},e.children)}var{ThemeProvider:Ic}=is.Components,Mc=[()=>e=>(...r)=>{let t=r[0]?.activity;return t&&ne(t)?()=>Q.default.createElement(Lr,{activity:t}):e(...r)}],Pc=[()=>()=>()=>Ge],Cc=({children:e})=>Q.default.createElement(Xe,null,Q.default.createElement(Zr,null,Q.default.createElement(Ic,{activityMiddleware:Mc,sendBoxMiddleware:Pc},e))),it=(0,Q.memo)(Cc);Te("botframework-webchat:fluent-theme","version=4.18.1-main.20240808.851825d; build-tool=tsup; module-format=esmodules");Ne();globalThis.WebChat={...globalThis.WebChat,FluentThemeProvider:it,testIds:{...globalThis.WebChat?.testIds,...x}};})();
|
|
1
|
+
"use strict";(()=>{var Aa=Object.create;var gt=Object.defineProperty;var Ca=Object.getOwnPropertyDescriptor;var Ma=Object.getOwnPropertyNames;var Ia=Object.getPrototypeOf,Pa=Object.prototype.hasOwnProperty;var l=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var Da=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of Ma(r))!Pa.call(e,o)&&o!==t&>(e,o,{get:()=>r[o],enumerable:!(n=Ca(r,o))||n.enumerable});return e};var u=(e,r,t)=>(t=e!=null?Aa(Ia(e)):{},Da(r||!e||!e.__esModule?gt(t,"default",{value:e,enumerable:!0}):t,e));var E=l((up,_t)=>{_t.exports={Components:globalThis.WebChat.Components,hooks:globalThis.WebChat.hooks}});var d=l((cp,wt)=>{wt.exports=globalThis.React});var B=l((pp,Me)=>{(function(){"use strict";var e={}.hasOwnProperty;function r(){for(var o="",i=0;i<arguments.length;i++){var s=arguments[i];s&&(o=n(o,t(s)))}return o}function t(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return r.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var i="";for(var s in o)e.call(o,s)&&o[s]&&(i=n(i,s));return i}function n(o,i){return i?o?o+" "+i:o+i:o}typeof Me<"u"&&Me.exports?(r.default=r,Me.exports=r):typeof define=="function"&&typeof define.amd=="object"&&define.amd?define("classnames",[],function(){return r}):window.classNames=r})()});var z=l((ur,Dt)=>{"use strict";var me=function(e){return e&&e.Math===Math&&e};Dt.exports=me(typeof globalThis=="object"&&globalThis)||me(typeof window=="object"&&window)||me(typeof self=="object"&&self)||me(typeof global=="object"&&global)||me(typeof ur=="object"&&ur)||function(){return this}()||Function("return this")()});var R=l((Xp,Ft)=>{"use strict";Ft.exports=function(e){try{return!!e()}catch{return!0}}});var ve=l((Kp,Ot)=>{"use strict";var Ja=R();Ot.exports=!Ja(function(){var e=(function(){}).bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var Lt=l((Wp,jt)=>{"use strict";var Qa=ve(),zt=Function.prototype,Ht=zt.apply,qt=zt.call;jt.exports=typeof Reflect=="object"&&Reflect.apply||(Qa?qt.bind(Ht):function(){return qt.apply(Ht,arguments)})});var $=l((Up,Vt)=>{"use strict";var Rt=ve(),$t=Function.prototype,cr=$t.call,es=Rt&&$t.bind.bind(cr,cr);Vt.exports=Rt?es:function(e){return function(){return cr.apply(e,arguments)}}});var pr=l((Gp,Kt)=>{"use strict";var Xt=$(),rs=Xt({}.toString),ts=Xt("".slice);Kt.exports=function(e){return ts(rs(e),8,-1)}});var fr=l((Zp,Wt)=>{"use strict";var ns=pr(),os=$();Wt.exports=function(e){if(ns(e)==="Function")return os(e)}});var V=l((Yp,Ut)=>{"use strict";var dr=typeof document=="object"&&document.all;Ut.exports=typeof dr>"u"&&dr!==void 0?function(e){return typeof e=="function"||e===dr}:function(e){return typeof e=="function"}});var X=l((Jp,Gt)=>{"use strict";var is=R();Gt.exports=!is(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var Oe=l((Qp,Zt)=>{"use strict";var as=ve(),Fe=Function.prototype.call;Zt.exports=as?Fe.bind(Fe):function(){return Fe.apply(Fe,arguments)}});var en=l(Qt=>{"use strict";var Yt={}.propertyIsEnumerable,Jt=Object.getOwnPropertyDescriptor,ss=Jt&&!Yt.call({1:2},1);Qt.f=ss?function(r){var t=Jt(this,r);return!!t&&t.enumerable}:Yt});var hr=l((rf,rn)=>{"use strict";rn.exports=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}}});var nn=l((tf,tn)=>{"use strict";var ls=$(),us=R(),cs=pr(),br=Object,ps=ls("".split);tn.exports=us(function(){return!br("z").propertyIsEnumerable(0)})?function(e){return cs(e)==="String"?ps(e,""):br(e)}:br});var yr=l((nf,on)=>{"use strict";on.exports=function(e){return e==null}});var mr=l((of,an)=>{"use strict";var fs=yr(),ds=TypeError;an.exports=function(e){if(fs(e))throw new ds("Can't call method on "+e);return e}});var ge=l((af,sn)=>{"use strict";var hs=nn(),bs=mr();sn.exports=function(e){return hs(bs(e))}});var _e=l((sf,ln)=>{"use strict";var ys=V();ln.exports=function(e){return typeof e=="object"?e!==null:ys(e)}});var He=l((lf,un)=>{"use strict";un.exports={}});var _r=l((uf,pn)=>{"use strict";var vr=He(),gr=z(),ms=V(),cn=function(e){return ms(e)?e:void 0};pn.exports=function(e,r){return arguments.length<2?cn(vr[e])||cn(gr[e]):vr[e]&&vr[e][r]||gr[e]&&gr[e][r]}});var dn=l((cf,fn)=>{"use strict";var vs=$();fn.exports=vs({}.isPrototypeOf)});var bn=l((pf,hn)=>{"use strict";hn.exports=typeof navigator<"u"&&String(navigator.userAgent)||""});var xn=l((ff,wn)=>{"use strict";var _n=z(),wr=bn(),yn=_n.process,mn=_n.Deno,vn=yn&&yn.versions||mn&&mn.version,gn=vn&&vn.v8,P,qe;gn&&(P=gn.split("."),qe=P[0]>0&&P[0]<4?1:+(P[0]+P[1]));!qe&&wr&&(P=wr.match(/Edge\/(\d+)/),(!P||P[1]>=74)&&(P=wr.match(/Chrome\/(\d+)/),P&&(qe=+P[1])));wn.exports=qe});var xr=l((df,Tn)=>{"use strict";var kn=xn(),gs=R(),_s=z(),ws=_s.String;Tn.exports=!!Object.getOwnPropertySymbols&&!gs(function(){var e=Symbol("symbol detection");return!ws(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&kn&&kn<41})});var kr=l((hf,Sn)=>{"use strict";var xs=xr();Sn.exports=xs&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var Tr=l((bf,En)=>{"use strict";var ks=_r(),Ts=V(),Ss=dn(),Es=kr(),Ns=Object;En.exports=Es?function(e){return typeof e=="symbol"}:function(e){var r=ks("Symbol");return Ts(r)&&Ss(r.prototype,Ns(e))}});var Bn=l((yf,Nn)=>{"use strict";var Bs=String;Nn.exports=function(e){try{return Bs(e)}catch{return"Object"}}});var Sr=l((mf,An)=>{"use strict";var As=V(),Cs=Bn(),Ms=TypeError;An.exports=function(e){if(As(e))return e;throw new Ms(Cs(e)+" is not a function")}});var Mn=l((vf,Cn)=>{"use strict";var Is=Sr(),Ps=yr();Cn.exports=function(e,r){var t=e[r];return Ps(t)?void 0:Is(t)}});var Pn=l((gf,In)=>{"use strict";var Er=Oe(),Nr=V(),Br=_e(),Ds=TypeError;In.exports=function(e,r){var t,n;if(r==="string"&&Nr(t=e.toString)&&!Br(n=Er(t,e))||Nr(t=e.valueOf)&&!Br(n=Er(t,e))||r!=="string"&&Nr(t=e.toString)&&!Br(n=Er(t,e)))return n;throw new Ds("Can't convert object to primitive value")}});var Fn=l((_f,Dn)=>{"use strict";Dn.exports=!0});var qn=l((wf,Hn)=>{"use strict";var On=z(),Fs=Object.defineProperty;Hn.exports=function(e,r){try{Fs(On,e,{value:r,configurable:!0,writable:!0})}catch{On[e]=r}return r}});var Ar=l((xf,Ln)=>{"use strict";var Os=Fn(),Hs=z(),qs=qn(),zn="__core-js_shared__",jn=Ln.exports=Hs[zn]||qs(zn,{});(jn.versions||(jn.versions=[])).push({version:"3.36.1",mode:Os?"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=l((kf,$n)=>{"use strict";var Rn=Ar();$n.exports=function(e,r){return Rn[e]||(Rn[e]=r||{})}});var Xn=l((Tf,Vn)=>{"use strict";var zs=mr(),js=Object;Vn.exports=function(e){return js(zs(e))}});var we=l((Sf,Kn)=>{"use strict";var Ls=$(),Rs=Xn(),$s=Ls({}.hasOwnProperty);Kn.exports=Object.hasOwn||function(r,t){return $s(Rs(r),t)}});var Mr=l((Ef,Wn)=>{"use strict";var Vs=$(),Xs=0,Ks=Math.random(),Ws=Vs(1 .toString);Wn.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Ws(++Xs+Ks,36)}});var Zn=l((Nf,Gn)=>{"use strict";var Us=z(),Gs=Cr(),Un=we(),Zs=Mr(),Ys=xr(),Js=kr(),se=Us.Symbol,Ir=Gs("wks"),Qs=Js?se.for||se:se&&se.withoutSetter||Zs;Gn.exports=function(e){return Un(Ir,e)||(Ir[e]=Ys&&Un(se,e)?se[e]:Qs("Symbol."+e)),Ir[e]}});var eo=l((Bf,Qn)=>{"use strict";var el=Oe(),Yn=_e(),Jn=Tr(),rl=Mn(),tl=Pn(),nl=Zn(),ol=TypeError,il=nl("toPrimitive");Qn.exports=function(e,r){if(!Yn(e)||Jn(e))return e;var t=rl(e,il),n;if(t){if(r===void 0&&(r="default"),n=el(t,e,r),!Yn(n)||Jn(n))return n;throw new ol("Can't convert object to primitive value")}return r===void 0&&(r="number"),tl(e,r)}});var Pr=l((Af,ro)=>{"use strict";var al=eo(),sl=Tr();ro.exports=function(e){var r=al(e,"string");return sl(r)?r:r+""}});var Fr=l((Cf,no)=>{"use strict";var ll=z(),to=_e(),Dr=ll.document,ul=to(Dr)&&to(Dr.createElement);no.exports=function(e){return ul?Dr.createElement(e):{}}});var Or=l((Mf,oo)=>{"use strict";var cl=X(),pl=R(),fl=Fr();oo.exports=!cl&&!pl(function(){return Object.defineProperty(fl("div"),"a",{get:function(){return 7}}).a!==7})});var so=l(ao=>{"use strict";var dl=X(),hl=Oe(),bl=en(),yl=hr(),ml=ge(),vl=Pr(),gl=we(),_l=Or(),io=Object.getOwnPropertyDescriptor;ao.f=dl?io:function(r,t){if(r=ml(r),t=vl(t),_l)try{return io(r,t)}catch{}if(gl(r,t))return yl(!hl(bl.f,r,t),r[t])}});var uo=l((Pf,lo)=>{"use strict";var wl=R(),xl=V(),kl=/#|\.prototype\./,xe=function(e,r){var t=Sl[Tl(e)];return t===Nl?!0:t===El?!1:xl(r)?wl(r):!!r},Tl=xe.normalize=function(e){return String(e).replace(kl,".").toLowerCase()},Sl=xe.data={},El=xe.NATIVE="N",Nl=xe.POLYFILL="P";lo.exports=xe});var fo=l((Df,po)=>{"use strict";var co=fr(),Bl=Sr(),Al=ve(),Cl=co(co.bind);po.exports=function(e,r){return Bl(e),r===void 0?e:Al?Cl(e,r):function(){return e.apply(r,arguments)}}});var Hr=l((Ff,ho)=>{"use strict";var Ml=X(),Il=R();ho.exports=Ml&&Il(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var ze=l((Of,bo)=>{"use strict";var Pl=_e(),Dl=String,Fl=TypeError;bo.exports=function(e){if(Pl(e))return e;throw new Fl(Dl(e)+" is not an object")}});var Rr=l(mo=>{"use strict";var Ol=X(),Hl=Or(),ql=Hr(),je=ze(),yo=Pr(),zl=TypeError,qr=Object.defineProperty,jl=Object.getOwnPropertyDescriptor,zr="enumerable",jr="configurable",Lr="writable";mo.f=Ol?ql?function(r,t,n){if(je(r),t=yo(t),je(n),typeof r=="function"&&t==="prototype"&&"value"in n&&Lr in n&&!n[Lr]){var o=jl(r,t);o&&o[Lr]&&(r[t]=n.value,n={configurable:jr in n?n[jr]:o[jr],enumerable:zr in n?n[zr]:o[zr],writable:!1})}return qr(r,t,n)}:qr:function(r,t,n){if(je(r),t=yo(t),je(n),Hl)try{return qr(r,t,n)}catch{}if("get"in n||"set"in n)throw new zl("Accessors not supported");return"value"in n&&(r[t]=n.value),r}});var go=l((qf,vo)=>{"use strict";var Ll=X(),Rl=Rr(),$l=hr();vo.exports=Ll?function(e,r,t){return Rl.f(e,r,$l(1,t))}:function(e,r,t){return e[r]=t,e}});var xo=l((zf,wo)=>{"use strict";var ke=z(),Vl=Lt(),Xl=fr(),Kl=V(),Wl=so().f,Ul=uo(),le=He(),Gl=fo(),ue=go(),_o=we();Ar();var Zl=function(e){var r=function(t,n,o){if(this instanceof r){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,o)}return Vl(e,this,arguments)};return r.prototype=e.prototype,r};wo.exports=function(e,r){var t=e.target,n=e.global,o=e.stat,i=e.proto,s=n?ke:o?ke[t]:ke[t]&&ke[t].prototype,a=n?le:le[t]||ue(le,t,{})[t],c=a.prototype,y,p,h,m,g,w,k,T,N;for(m in r)y=Ul(n?m:t+(o?".":"#")+m,e.forced),p=!y&&s&&_o(s,m),w=a[m],p&&(e.dontCallGetSet?(N=Wl(s,m),k=N&&N.value):k=s[m]),g=p&&k?k:r[m],!(!y&&!i&&typeof w==typeof g)&&(e.bind&&p?T=Gl(g,ke):e.wrap&&p?T=Zl(g):i&&Kl(g)?T=Xl(g):T=g,(e.sham||g&&g.sham||w&&w.sham)&&ue(T,"sham",!0),ue(a,m,T),i&&(h=t+"Prototype",_o(le,h)||ue(le,h,{}),ue(le[h],m,g),e.real&&c&&(y||!c[m])&&ue(c,m,g)))}});var To=l((jf,ko)=>{"use strict";var Yl=Math.ceil,Jl=Math.floor;ko.exports=Math.trunc||function(r){var t=+r;return(t>0?Jl:Yl)(t)}});var $r=l((Lf,So)=>{"use strict";var Ql=To();So.exports=function(e){var r=+e;return r!==r||r===0?0:Ql(r)}});var No=l((Rf,Eo)=>{"use strict";var eu=$r(),ru=Math.max,tu=Math.min;Eo.exports=function(e,r){var t=eu(e);return t<0?ru(t+r,0):tu(t,r)}});var Ao=l(($f,Bo)=>{"use strict";var nu=$r(),ou=Math.min;Bo.exports=function(e){var r=nu(e);return r>0?ou(r,9007199254740991):0}});var Mo=l((Vf,Co)=>{"use strict";var iu=Ao();Co.exports=function(e){return iu(e.length)}});var Do=l((Xf,Po)=>{"use strict";var au=ge(),su=No(),lu=Mo(),Io=function(e){return function(r,t,n){var o=au(r),i=lu(o);if(i===0)return!e&&-1;var s=su(n,i),a;if(e&&t!==t){for(;i>s;)if(a=o[s++],a!==a)return!0}else for(;i>s;s++)if((e||s in o)&&o[s]===t)return e||s||0;return!e&&-1}};Po.exports={includes:Io(!0),indexOf:Io(!1)}});var Vr=l((Kf,Fo)=>{"use strict";Fo.exports={}});var qo=l((Wf,Ho)=>{"use strict";var uu=$(),Xr=we(),cu=ge(),pu=Do().indexOf,fu=Vr(),Oo=uu([].push);Ho.exports=function(e,r){var t=cu(e),n=0,o=[],i;for(i in t)!Xr(fu,i)&&Xr(t,i)&&Oo(o,i);for(;r.length>n;)Xr(t,i=r[n++])&&(~pu(o,i)||Oo(o,i));return o}});var Kr=l((Uf,zo)=>{"use strict";zo.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var Lo=l((Gf,jo)=>{"use strict";var du=qo(),hu=Kr();jo.exports=Object.keys||function(r){return du(r,hu)}});var $o=l(Ro=>{"use strict";var bu=X(),yu=Hr(),mu=Rr(),vu=ze(),gu=ge(),_u=Lo();Ro.f=bu&&!yu?Object.defineProperties:function(r,t){vu(r);for(var n=gu(t),o=_u(t),i=o.length,s=0,a;i>s;)mu.f(r,a=o[s++],n[a]);return r}});var Xo=l((Yf,Vo)=>{"use strict";var wu=_r();Vo.exports=wu("document","documentElement")});var Uo=l((Jf,Wo)=>{"use strict";var xu=Cr(),ku=Mr(),Ko=xu("keys");Wo.exports=function(e){return Ko[e]||(Ko[e]=ku(e))}});var ti=l((Qf,ri)=>{"use strict";var Tu=ze(),Su=$o(),Go=Kr(),Eu=Vr(),Nu=Xo(),Bu=Fr(),Au=Uo(),Zo=">",Yo="<",Ur="prototype",Gr="script",Qo=Au("IE_PROTO"),Wr=function(){},ei=function(e){return Yo+Gr+Zo+e+Yo+"/"+Gr+Zo},Jo=function(e){e.write(ei("")),e.close();var r=e.parentWindow.Object;return e=null,r},Cu=function(){var e=Bu("iframe"),r="java"+Gr+":",t;return e.style.display="none",Nu.appendChild(e),e.src=String(r),t=e.contentWindow.document,t.open(),t.write(ei("document.F=Object")),t.close(),t.F},Le,Re=function(){try{Le=new ActiveXObject("htmlfile")}catch{}Re=typeof document<"u"?document.domain&&Le?Jo(Le):Cu():Jo(Le);for(var e=Go.length;e--;)delete Re[Ur][Go[e]];return Re()};Eu[Qo]=!0;ri.exports=Object.create||function(r,t){var n;return r!==null?(Wr[Ur]=Tu(r),n=new Wr,Wr[Ur]=null,n[Qo]=r):n=Re(),t===void 0?n:Su.f(n,t)}});var ni=l(()=>{"use strict";var Mu=xo(),Iu=X(),Pu=ti();Mu({target:"Object",stat:!0,sham:!Iu},{create:Pu})});var ii=l((td,oi)=>{"use strict";ni();var Du=He(),Fu=Du.Object;oi.exports=function(r,t){return Fu.create(r,t)}});var si=l((nd,ai)=>{"use strict";var Ou=ii();ai.exports=Ou});var ui=l((od,li)=>{li.exports=si()});function Ce(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(n){console.error('inject-meta-tag: Failed to inject <meta name="'.concat(e,'"> tag.'),n)}}var xa=u(E()),j=u(d());var At=u(B()),ye=u(d());var Ie=u(d());var xt=u(d());var ne=u(d());function rr({Provider:e},{defaults:r,displayName:t}){let n=({children:o,...i})=>{let s=(0,ne.useMemo)(()=>Object.freeze({...r,...i}),[i]);return ne.default.createElement(e,{value:s},o)};return n.displayName=t,(0,ne.memo)(n)}var tr=(0,xt.createContext)(new Proxy({},{get(){throw new Error("Unable to use VariantContext without VariantComposer")}})),Fa=rr(tr,{defaults:{variant:""},displayName:"VariantComposer"}),kt=Fa;function be(){let{variant:e}=(0,Ie.useContext)(tr);return(0,Ie.useMemo)(()=>e.split(" "),[e])}var Oa=".webchat-fluent .e{display:contents;--webchat__bubble--inline-padding: var(--webchat-spacingHorizontalL);--webchat__bubble--block-padding: var(--webchat-spacingVerticalM);--webchat__bubble--min-height: var(--webchat-bubble-minHeight);--webchat__bubble--max-width: var(--webchat-bubble-maxWidth);--webchat-bubble-maxWidth: var(--bubble-maxWidth, 450px);--webchat-bubble-minHeight: var(--bubble-minHeight, 36px);--webchat-externalLink-mask: var(--externalLink-mask, var(--webchat__icon-url--external-link) center center / 10px 10px);--webchat-externalLink-maxWidth: var(--externalLink-maxWidth, 204px)}.webchat-fluent .e:has(.webchat__stacked-layout .webchat__bubble--from-user){--webchat__bubble--background-color: var(--webchat-colorBrandBackground2);--webchat__bubble--block-padding: var(--webchat-spacingVerticalS)}.webchat-fluent .e.h{--webchat__bubble--background-color: var(--webchat-colorNeutralBackground1);--webchat__bubble--border-radius: var(--webchat-borderRadiusXLarge);--webchat__bubble--box-shadow: var(--webchat-shadow4)}.webchat-fluent .e.s{--webchat__bubble--border-radius: var(--webchat-borderRadiusXLarge)}.webchat-fluent .e.s:not(:has(.webchat__bubble--from-user)){--webchat__bubble--block-padding: var(--webchat-spacingVerticalS) var(--webchat-spacingVerticalXXS);--webchat__bubble--border-radius: var(--webchat-borderRadiusSmall);--webchat__bubble--inline-padding: 32px var(--webchat-spacingHorizontalNone)}.webchat-fluent .e.s:not(:has(.webchat__bubble--from-user)) .webchat__stacked-layout__status{display:none}.webchat-fluent .e.s .webchat__activity-status{margin:0 0 var(--webchat-spacingHorizontalXXS)}.webchat-fluent .e.s .webchat__stacked-layout__status{order:-1}.webchat-fluent .e.s:not(:has(.webchat__bubble--from-user)) .webchat__stacked-layout .webchat__bubble .webchat__text-content{padding-block:calc(var(--webchat-spacingVerticalS) + 20px) var(--webchat-spacingVerticalXXS)}.webchat-fluent .e.s:not(:has(.webchat__bubble--from-user)) .webchat__stacked-layout .webchat__bubble{margin-block-start:-24px;margin-inline-start:-4px}.webchat-fluent .e .webchat__basic-transcript__activity-body:not(:empty){padding-block-end:var(--webchat-spacingVerticalXL)}.webchat-fluent .e .webchat__stacked-layout{display:flex;flex-flow:column nowrap}.webchat-fluent .e .webchat__stacked-layout .webchat__stacked-layout__content:has(.webchat__bubble){overflow:visible}.webchat-fluent .e .webchat__stacked-layout .webchat__stacked-layout__status{font-size:var(--webchat__font-size--small);line-height:var(--webchat__line-height--small)}.webchat-fluent .e .webchat__stacked-layout .webchat__bubble{max-width:var(--webchat__bubble--max-width);overflow:visible}.webchat-fluent .e .webchat__stacked-layout .webchat__bubble .webchat__bubble__content{background-color:var(--webchat__bubble--background-color);border-radius:var(--webchat__bubble--border-radius);border-width:0;box-sizing:border-box;color:var(--webchat-colorNeutralForeground1);min-height:var(--webchat__bubble--min-height)}.webchat-fluent .e .webchat__stacked-layout .webchat__bubble .webchat__text-content{font-size:var(--webchat__font-size--medium);line-height:var(--webchat__line-height--medium);min-height:auto;padding-block:var(--webchat__bubble--block-padding);padding-inline:var(--webchat__bubble--inline-padding)}.webchat-fluent .e .webchat__stacked-layout .webchat__bubble .webchat__bubble__content:before{border-radius:inherit;box-shadow:var(--webchat__bubble--box-shadow);content:\"\";inset:0;isolation:isolate;pointer-events:none;position:absolute}.webchat-fluent .e .webchat__render-markdown a[href]:not(.webchat__render-markdown__pure-identifier){color:var(--webchat-colorBrandForegroundLink);text-decoration-color:transparent}.webchat-fluent .e .webchat__render-markdown a[href]:not(.webchat__render-markdown__pure-identifier):target{color:var(--webchat-colorBrandForegroundLinkSelected)}.webchat-fluent .e .webchat__render-markdown a[href]:not(.webchat__render-markdown__pure-identifier):hover{color:var(--webchat-colorBrandForegroundLinkHover);text-decoration:underline 1px currentColor}.webchat-fluent .e .webchat__render-markdown a[href]:not(.webchat__render-markdown__pure-identifier):active{color:var(--webchat-colorBrandForegroundLinkPressed)}.webchat-fluent .e .webchat__render-markdown a[href]:not(.webchat__render-markdown__pure-identifier):focus-visible{outline:none;text-decoration:underline 1px double var(--webchat-colorStrokeFocus2)}.webchat-fluent .e .webchat__render-markdown a[href]:not(.webchat__render-markdown__pure-identifier) .webchat__render-markdown__external-link-icon{background:currentColor;-webkit-mask:var(--webchat__icon-url--external-link) no-repeat;mask:var(--webchat__icon-url--external-link) no-repeat}.webchat-fluent .e .webchat__render-markdown .webchat__render-markdown__citation,.webchat-fluent .e .webchat__render-markdown .webchat__render-markdown__pure-identifier{align-items:center;background-color:var(--webchat-colorNeutralBackground3);border-radius:var(--webchat-borderRadiusMedium);border:var(--webchat-strokeWidthThin) solid var(--webchat-colorNeutralStroke2);box-sizing:border-box;color:var(--webchat-colorNeutralForeground2);display:inline-flex;font-size:var(--webchat-fontSizeBase100);font-weight:var(--webchat-fontWeightSemibold);height:14px;justify-content:center;line-height:var(--webchat-lineHeightBase100);margin-left:var(--webchat-spacingHorizontalXXS);margin-right:var(--webchat-spacingHorizontalXXS);min-width:14px;text-decoration:none;transition:all var(--webchat-durationNormal) var(--webchat-curveDecelerateMid);vertical-align:calc((var(--webchat-lineHeightBase100) - var(--webchat-fontSizeBase100)) / 2)}:is(.webchat-fluent .e .webchat__render-markdown .webchat__render-markdown__citation,.webchat-fluent .e .webchat__render-markdown .webchat__render-markdown__pure-identifier):hover{background-color:var(--webchat-colorBrandBackground2Hover);border-color:var(--webchat-colorBrandStroke2Hover);color:var(--webchat-colorBrandForeground2Hover);cursor:pointer}:is(.webchat-fluent .e .webchat__render-markdown .webchat__render-markdown__citation,.webchat-fluent .e .webchat__render-markdown .webchat__render-markdown__pure-identifier):hover:active{background-color:var(--webchat-colorBrandBackground2Pressed);border-color:var(--webchat-colorBrandStroke2Pressed);color:var(--webchat-colorBrandForeground2Pressed)}:is(.webchat-fluent .e .webchat__render-markdown .webchat__render-markdown__citation,.webchat-fluent .e .webchat__render-markdown .webchat__render-markdown__pure-identifier):before,:is(.webchat-fluent .e .webchat__render-markdown .webchat__render-markdown__citation,.webchat-fluent .e .webchat__render-markdown .webchat__render-markdown__pure-identifier):after{all:unset}:is(.webchat-fluent .e .webchat__render-markdown .webchat__render-markdown__citation,.webchat-fluent .e .webchat__render-markdown .webchat__render-markdown__pure-identifier):has(.webchat__render-markdown__external-link-icon){padding-inline:3px}:is(.webchat-fluent .e .webchat__render-markdown .webchat__render-markdown__citation,.webchat-fluent .e .webchat__render-markdown .webchat__render-markdown__pure-identifier) .webchat__render-markdown__external-link-icon{background:currentColor;height:.7em;-webkit-mask:var(--webchat__icon-url--external-link) no-repeat;mask:var(--webchat__icon-url--external-link) no-repeat}.webchat-fluent .e .webchat__link-definitions__header .webchat__link-definitions__header-text{color:var(--webchat-colorNeutralForeground3)}.webchat-fluent .e .webchat__link-definitions__header .webchat__link-definitions__header-chevron{fill:var(--webchat-colorNeutralForeground3);font-size:var(--webchat__font-size--small);width:1em}.webchat-fluent .e .webchat__link-definitions{--webchat__citation__external-link--mask: var(--webchat-externalLink-mask);--webchat__citation__link--max-width: var(--webchat-externalLink-maxWidth)}.webchat-fluent .e .webchat__link-definitions .webchat__link-definitions__list{color:var(--webchat__color--subtle);display:flex;flex-flow:row wrap;gap:var(--webchat-spacingHorizontalS)}.webchat-fluent .e .webchat__link-definitions .webchat__link-definitions__list-item{border-radius:var(--webchat-borderRadiusMedium);max-width:var(--webchat__citation__link--max-width)}.webchat-fluent .e .webchat__link-definitions .webchat__link-definitions__list-item-box{background-color:var(--webchat-colorNeutralBackground3);border-radius:var(--webchat-borderRadiusMedium);border:var(--webchat-strokeWidthThin) solid var(--webchat-colorNeutralStroke2);box-sizing:border-box;color:currentColor;display:inline-flex;font-size:var(--webchat__font-size--small);height:24px;padding-inline-end:var(--webchat-spacingHorizontalS)}.webchat-fluent .e .webchat__link-definitions .webchat__link-definitions__list-item-body{font-family:inherit;gap:var(--webchat-spacingHorizontalSNudge);min-width:0;padding:0}.webchat-fluent .e .webchat__link-definitions .webchat__link-definitions__badge{align-self:center;background-color:transparent;border-radius:0;border:none;color:currentColor;font-size:var(--webchat-fontSizeBase100);font-weight:var(--webchat-fontWeightSemibold);line-height:var(--webchat-lineHeightBase100);margin:0;min-width:20px;padding:0;position:relative;text-align:center}.webchat-fluent .e .webchat__link-definitions .webchat__link-definitions__badge:after{border-right:var(--webchat-strokeWidthThin) solid var(--webchat-colorNeutralStroke2);bottom:0;content:\"\";display:block;height:16px;position:absolute;right:0;top:0;width:0}.webchat-fluent .e .webchat__link-definitions .webchat__link-definitions__list-item-main-text{gap:var(--webchat-spacingHorizontalXS)}.webchat-fluent .e .webchat__link-definitions .webchat__link-definitions__list-item-text{color:currentColor;text-decoration:none;text-overflow:ellipsis}.webchat-fluent .e .webchat__link-definitions .webchat__link-definitions__list-item-main-text:has(.webchat__link-definitions__open-in-new-window-icon):before{align-self:center;background:currentColor;color:currentColor;content:\"\";flex:none;font-size:var(--webchat-fontSizeBase400);height:1em;-webkit-mask:var(--webchat__citation__external-link--mask) no-repeat;mask:var(--webchat__citation__external-link--mask) no-repeat;padding:0;width:1em}.webchat-fluent .e .webchat__link-definitions .webchat__link-definitions__open-in-new-window-icon{display:none}.webchat-fluent .g{align-items:center;cursor:default;display:flex;flex-wrap:nowrap;gap:var(--webchat-spacingHorizontalS);margin-inline-start:var(--webchat-spacingVerticalMNudge);padding-block-start:var(--webchat-spacingVerticalXS);position:relative;z-index:1}.webchat-fluent .u{aspect-ratio:1;background-color:var(--background-color);border-radius:var(--webchat-borderRadiusSmall);width:20px}.webchat-fluent .w{font-size:var(--webchat-fontSizeBase300);font-weight:var(--webchat-fontWeightSemibold);line-height:var(--webchat-lineHeightBase300);max-width:240px;overflow:hidden;text-overflow:ellipsis;text-wrap:nowrap}.webchat-fluent .p{align-items:center;background-color:var(--webchat-colorNeutralBackground5);border-radius:var(--webchat-borderRadiusMedium);color:var(--webchat-colorNeutralForeground3);display:flex;font-size:var(--webchat-fontSizeBase100);height:20px;line-height:var(--webchat-lineHeightBase100);padding-inline:4px}.webchat-fluent .v{box-sizing:border-box;display:grid;gap:var(--webchat-spacingHorizontalXXXL);grid-template-areas:\"body\" \"toolbar\";grid-template-rows:auto auto;padding:var(--webchat-spacingHorizontalXXXL) var(--webchat-spacingHorizontalM);position:relative}.webchat-fluent .o{font-family:var(--webchat-fontFamilyBase);font-size:var(--webchat-fontSizeBase300);font-weight:var(--webchat-fontWeightRegular);grid-area:body;line-height:var(--webchat-lineHeightBase300);text-align:center}.webchat-fluent .o h2{color:var(--webchat-colorNeutralForeground1);font-family:inherit;font-weight:var(--webchat-fontWeightSemibold);font-size:var(--webchat-fontSizeHero700);line-height:var(--webchat-lineHeightHero700);margin:var(--webchat-spacingVerticalL) 0 0}.webchat-fluent .o img{border-radius:4px;height:64px}.webchat-fluent ._{grid-area:toolbar}.webchat-fluent .f{background-color:var(--webchat-colorNeutralForeground4);-webkit-mask-image:var(--mask-image);mask-image:var(--mask-image);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.webchat-fluent .r{-webkit-appearance:none;appearance:none;background-color:var(--webchat-colorNeutralBackground1);border:0;border-radius:16px;box-shadow:var(--webchat-shadow2);color:var(--webchat-colorNeutralForeground1);cursor:pointer;display:grid;gap:8px;grid-template-areas:\"image title\" \"image subtitle\";grid-template-columns:20px 1fr;grid-template-rows:auto 1fr;overflow:hidden;padding:16px 20px;text-align:left;-webkit-user-select:none;user-select:none}.webchat-fluent .r:disabled{background-color:var(--webchat-colorNeutralBackground1Disabled)}.webchat-fluent .r:hover{background-color:var(--webchat-colorNeutralBackground1Hover)}.webchat-fluent .r:active{background-color:var(--webchat-colorNeutralBackground1Pressed)}.webchat-fluent .r:focus-visible{outline:solid 2px var(--webchat-colorStrokeFocus2);outline-offset:-2px}.webchat-fluent .x{grid-area:image;height:20px;width:20px}.webchat-fluent .k{font-family:var(--webchat-fontFamilyBase);font-size:14px;font-weight:var(--webchat-fontWeightRegular);grid-area:subtitle;line-height:20px;pointer-events:none}.webchat-fluent .m{font-family:var(--webchat-fontFamilyBase);font-size:14px;font-weight:var(--webchat-fontWeightSemibold);grid-area:title;line-height:20px}.webchat-fluent .B{container-name:l;container-type:inline-size}.webchat-fluent .c{display:grid;gap:var(--webchat-spacingHorizontalM);grid-template-columns:1fr 1fr 1fr;padding:0}@container l (width <= 480px){.webchat-fluent .c{grid-template-columns:1fr}}.webchat-fluent .y{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 .N{background-color:#e00;color:#fff}.webchat-fluent .S{height:36px;pointer-events:none;width:36px}.webchat-fluent .z{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 .z:not([aria-disabled=true]):hover{background-color:var(--webchat-colorBrandBackground2Hover);color:var(--webchat-colorBrandForeground2Hover)}}.webchat-fluent .z:not([aria-disabled=true]):active{background-color:var(--webchat-colorBrandBackground2Pressed);color:var(--webchat-colorBrandForeground2Pressed)}.webchat-fluent .z[aria-disabled=true]{color:var(--webchat-colorNeutralForegroundDisabled);cursor:not-allowed}.webchat-fluent .H{font-size:12px;height:1em;width:1em}.webchat-fluent .F{align-items:flex-end;align-self:flex-end;display:flex;flex-direction:column;gap:8px}.webchat-fluent .F:not(:empty){padding-block-end:8px;padding-inline-start:4px}.webchat-fluent .F.X{flex-direction:row;flex-wrap:wrap;justify-content:flex-end}.webchat-fluent .F.L{flex-direction:column}.webchat-fluent .n{-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 .n:hover{background-color:var(--webchat-colorGray30)}.webchat-fluent .i{color:var(--webchat-colorGray190);font-size:10px}.webchat-fluent .b{font-size:24px;margin-top:8px}.webchat-fluent .V .n{height:32px;justify-content:center;margin:8px 4px;width:32px}.webchat-fluent .V .i{display:none}.webchat-fluent .V .b{font-size:20px;margin-top:0}.webchat-fluent .W{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 .M{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 .R{align-items:center;color:var(--webchat-colorNeutralForeground4);display:flex;font-size:12px;gap:6px;margin-block-end:6px}.webchat-fluent .P{color:var(--webchat-colorBrandForegroundLink);text-decoration-color:transparent}.webchat-fluent .P:target{color:var(--webchat-colorBrandForegroundLinkSelected)}.webchat-fluent .P:hover{color:var(--webchat-colorBrandForegroundLinkHover);text-decoration:underline 1px currentColor}.webchat-fluent .P:active{color:var(--webchat-colorBrandForegroundLinkPressed)}.webchat-fluent .P:focus-visible{outline:none;text-decoration:underline 1px double var(--webchat-colorStrokeFocus2)}.webchat-fluent .T{display:flex;gap:4px;margin-inline-start:auto}.webchat-fluent .C{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 .C>svg{font-size:20px;pointer-events:none}.webchat-fluent .C.D{color:var(--webchat-colorNeutralForeground2BrandSelected)}@media (hover: hover){.webchat-fluent .C:not([aria-disabled=true]):hover{color:var(--webchat-colorNeutralForeground2BrandHover)}}.webchat-fluent .C:not([aria-disabled=true]):active{color:var(--webchat-colorNeutralForeground2BrandPressed)}.webchat-fluent .C[aria-disabled=true]{color:var(--webchat-colorNeutralForegroundDisabled);cursor:not-allowed}.webchat-fluent .G{align-self:center;border-inline-end:1px solid var(--webchat-colorNeutralStroke2);height:28px}.webchat-fluent .G:is(:first-child,:last-child,:only-child){display:none}.webchat-fluent .U{display:grid}.webchat-fluent .j{font-size:0;height:0;opacity:0;width:1px}.webchat-fluent .I{border-radius:var(--webchat-borderRadiusLarge);border:1px solid var(--webchat-colorNeutralStroke1);cursor:default;padding:6px 8px;width:fit-content}.webchat-fluent .A{color:transparent;font-size:0;height:0;left:0;position:absolute;top:0;width:0}.webchat-fluent .E{--webchat__sendbox--padding: var(--webchat__padding--sendbox);color:var(--webchat-colorNeutralForeground1);font-family:var(--webchat-fontFamilyBase);padding:var(--webchat__sendbox--padding);text-rendering:optimizeLegibility;--webchat-sendbox-attachment-area-active: ;--webchat-sendbox-border-radius: var(--webchat-borderRadiusLarge)}.webchat-fluent .q{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 .q:has(.d){--webchat-sendbox-attachment-area-active: \"attachment\" }.webchat-fluent .q:focus-within{border-color:var(--webchat-colorNeutralStroke1Selected)}.webchat-fluent .q: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 .q: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 .q>.J{grid-area:text-area}.webchat-fluent .q>.d{grid-area:attachment}.webchat-fluent .q>.K{grid-area:controls}.webchat-fluent .q>.O{grid-area:telephone-keypad}.webchat-fluent .Q{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 .Q:focus-within{font-size:16px}}.webchat-fluent .Y{align-items:center;display:flex;padding-inline-start:4px}.webchat-fluent .Z{color:var(--webchat-colorNeutralForeground4);cursor:default;font-family:var(--webchat-fontFamilyNumeric);font-size:10px;line-height:14px;margin-inline-end:4px}.webchat-fluent .ee{color:var(--webchat-colorStatusDangerForeground1)}.webchat-fluent .ae{display:grid;grid-template-areas:\"main\";max-height:200px;overflow:hidden}.webchat-fluent .re{height:0;visibility:collapse}.webchat-fluent .oe{border:none;font:inherit;grid-area:main;outline:inherit;overflow-wrap:anywhere;resize:inherit;scrollbar-gutter:stable}.webchat-fluent .te{overflow:hidden;visibility:hidden;white-space:pre-wrap}.webchat-fluent .le{background-color:inherit;color:currentColor;height:100%;padding:0}.webchat-fluent .ce{scrollbar-color:unset;scrollbar-width:unset;-moz-scrollbar-color:var(--webchat-colorNeutralBackground5) var(--webchat-colorNeutralForeground2);-moz-scrollbar-width:thin}.webchat-fluent .ce::-webkit-scrollbar{width:8px}.webchat-fluent .ce::-webkit-scrollbar-track{background-color:var(--webchat-colorNeutralBackground5);border-radius:16px}.webchat-fluent .ce::-webkit-scrollbar-thumb{background-color:var(--webchat-colorNeutralForeground2);border-radius:16px}.webchat-fluent .ce::-webkit-scrollbar-corner{background-color:var(--webchat-colorNeutralBackground5)}.webchat-fluent.a{display:contents;--webchat-colorNeutralForeground1: var(--colorNeutralForeground1, #242424);--webchat-colorNeutralForeground2: var(--colorNeutralForeground2, #424242);--webchat-colorNeutralForeground3: var(--colorNeutralForeground3, #616161);--webchat-colorNeutralForeground4: var(--colorNeutralForeground4, #707070);--webchat-colorNeutralForeground5: var(--colorNeutralForeground5, #7e7e7e);--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-colorNeutralBackground3: var(--colorNeutralBackground3, #f5f5f5);--webchat-colorNeutralBackground4: var(--colorNeutralBackground4, #f0f0f0);--webchat-colorNeutralBackground5: var(--colorNeutralBackground5, #ebebeb);--webchat-colorTransparentBackground: var(--colorTransparentBackground, rgba(0, 0, 0, .4));--webchat-colorNeutralBackground1Disabled: var(--colorNeutralBackground1Disabled, #f0f0f0);--webchat-colorNeutralBackground1Hover: var(--colorNeutralBackground1Pressed, #f0f0f0);--webchat-colorNeutralBackground1Pressed: var(--colorNeutralBackground1Pressed, #e0e0e0);--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-colorTransparentStroke: var(--colorTransparentStroke, transparent);--webchat-colorBrandForeground1: var(--colorBrandForeground1, #01678c);--webchat-colorBrandForeground2Hover: var(--colorBrandForeground2Hover, #015a7a);--webchat-colorBrandForeground2Pressed: var(--colorBrandForeground2Pressed, #01384d);--webchat-colorBrandStroke2Pressed: var(--colorBrandStroke2Pressed, #01384d);--webchat-colorBrandForegroundLink: var(--colorBrandForegroundLink, #01678c);--webchat-colorBrandForegroundLinkHover: var(--colorBrandForegroundLinkHover, #015a7a);--webchat-colorBrandForegroundLinkPressed: var(--colorBrandForegroundLinkPressed, #014259);--webchat-colorBrandForegroundLinkSelected: var(--colorBrandForegroundLinkSelected, #01678c);--webchat-colorBrandBackground2: var(--colorBrandBackground2, #def2fc);--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-shadow2: var(--shadow2, 0 0 2px rgba(0, 0, 0, 12%), 0 1px 2px rgba(0, 0, 0, 14%));--webchat-shadow4: var(--shadow4, 0 0 2px rgba(0, 0, 0, .12), 0 2px 4px rgba(0, 0, 0, .14));--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-shadow64: var(--shadow64, 0 0 8px rgba(0, 0, 0, .12), 0 32px 64px rgba(0, 0, 0, .14));--webchat-spacingHorizontalNone: var(--spacingHorizontalNone, 0);--webchat-spacingHorizontalXXS: var(--spacingHorizontalXXS, 2px);--webchat-spacingHorizontalXS: var(--spacingHorizontalXS, 4px);--webchat-spacingHorizontalSNudge: var(--spacingHorizontalSNudge, 6px);--webchat-spacingHorizontalS: var(--spacingHorizontalS, 8px);--webchat-spacingHorizontalMNudge: var(--spacingHorizontalMNudge, 10px);--webchat-spacingHorizontalM: var(--spacingHorizontalM, 12px);--webchat-spacingHorizontalL: var(--spacingHorizontalL, 16px);--webchat-spacingHorizontalXL: var(--spacingHorizontalXL, 20px);--webchat-spacingHorizontalXXL: var(--spacingHorizontalXXL, 24px);--webchat-spacingHorizontalXXXL: var(--spacingHorizontalXXXL, 32px);--webchat-spacingVerticalNone: var(--spacingVerticalNone, 0);--webchat-spacingVerticalXXS: var(--spacingVerticalXXS, 2px);--webchat-spacingVerticalXS: var(--spacingVerticalXS, 4px);--webchat-spacingVerticalSNudge: var(--spacingVerticalSNudge, 6px);--webchat-spacingVerticalS: var(--spacingVerticalS, 8px);--webchat-spacingVerticalMNudge: var(--spacingVerticalMNudge, 10px);--webchat-spacingVerticalM: var(--spacingVerticalM, 12px);--webchat-spacingVerticalL: var(--spacingVerticalL, 16px);--webchat-spacingVerticalXL: var(--spacingVerticalXL, 20px);--webchat-spacingVerticalXXL: var(--spacingVerticalXXL, 24px);--webchat-spacingVerticalXXXL: var(--spacingVerticalXXXL, 32px);--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-fontWeightRegular: var(--fontWeightRegular, 400);--webchat-fontWeightSemibold: var(--fontWeightSemibold, 600);--webchat-fontSizeBase100: var(--fontSizeBase100, 10px);--webchat-fontSizeBase200: var(--fontSizeBase200, 12px);--webchat-fontSizeBase300: var(--fontSizeBase300, 14px);--webchat-fontSizeBase400: var(--fontSizeBase400, 16px);--webchat-fontSizeBase500: var(--fontSizeBase500, 20px);--webchat-fontSizeBase600: var(--fontSizeBase600, 24px);--webchat-fontSizeHero700: var(--fontSizeHero700, 28px);--webchat-fontSizeHero800: var(--fontSizeHero800, 32px);--webchat-fontSizeHero900: var(--fontSizeHero900, 40px);--webchat-lineHeightBase100: var(--lineHeightBase100, 14px);--webchat-lineHeightBase200: var(--lineHeightBase200, 16px);--webchat-lineHeightBase300: var(--lineHeightBase300, 20px);--webchat-lineHeightBase400: var(--lineHeightBase400, 22px);--webchat-lineHeightBase500: var(--lineHeightBase500, 28px);--webchat-lineHeightBase600: var(--lineHeightBase600, 32px);--webchat-lineHeightHero700: var(--lineHeightHero700, 36px);--webchat-lineHeightHero800: var(--lineHeightHero800, 40px);--webchat-lineHeightHero900: var(--lineHeightHero900, 52px);--webchat-lineHeightHero1000: var(--lineHeightHero1000, 92px);--webchat-borderRadiusSmall: var(--borderRadiusSmall, 2px);--webchat-borderRadiusMedium: var(--borderRadiusMedium, 4px);--webchat-borderRadiusLarge: var(--borderRadiusLarge, 6px);--webchat-borderRadiusXLarge: var(--borderRadiusXLarge, 8px);--webchat-strokeWidthThin: var(--strokeWidthThin, 1px);--webchat-strokeWidthThick: var(--strokeWidthThicker, 2px);--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.a .webchat__css-custom-properties{--webchat__color--accent: var(--webchat-colorBrandForeground1);--webchat__color--subtle: var(--webchat-colorNeutralForeground2);--webchat__color--timestamp: var(--webchat-colorNeutralForeground3);--webchat__font--primary: var(--webchat-fontFamilyBase);--webchat__font-size--small: var(--webchat-fontSizeBase200);--webchat__font-size--medium: var(--webchat-fontSizeBase300);--webchat__line-height--small: var(--webchat-lineHeightBase200);--webchat__line-height--medium: var(--webchat-lineHeightBase300);--webchat__max-width--bubble: var(--webchat-bubble-maxWidth);--webchat__min-height--bubble: var(--webchat-bubble-minHeight);--webchat__padding--regular: var(--webchat-spacingVerticalS);--webchat__padding--sendbox: var(--webchat-spacingVerticalNone) var(--webchat-spacingHorizontalMNudge) var(--webchat-spacingHorizontalMNudge)}.webchat-fluent.a.t .webchat__css-custom-properties{--webchat__padding--sendbox: var(--webchat-spacingVerticalNone) var(--webchat-spacingHorizontalXL) var(--webchat-spacingVerticalMNudge) var(--webchat-spacingHorizontalMNudge)}.webchat-fluent.a .webchat__surface{background-color:var(--webchat__color--surface)}.webchat-fluent.a.t .webchat__surface{box-sizing:border-box;padding-inline-start:var(--webchat-spacingHorizontalMNudge)}.webchat-fluent.a .webchat__basic-transcript .webchat__basic-transcript__scrollable{scrollbar-color:unset;scrollbar-width:unset;-moz-scrollbar-color:var(--webchat-colorNeutralForeground5) transparent;-moz-scrollbar-width:thin}.webchat-fluent.a .webchat__basic-transcript .webchat__basic-transcript__scrollable::-webkit-scrollbar{width:var(--webchat-spacingVerticalMNudge);visibility:hidden}.webchat-fluent.a .webchat__basic-transcript .webchat__basic-transcript__scrollable:hover::-webkit-scrollbar{width:var(--webchat-spacingVerticalMNudge)}.webchat-fluent.a .webchat__basic-transcript .webchat__basic-transcript__scrollable:hover::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:var(--webchat-colorNeutralForeground5);border-radius:10px;border-right:4px solid transparent;border:3px solid transparent}.webchat-fluent.a .webchat__basic-transcript .webchat__basic-transcript__scrollable:hover::-webkit-scrollbar-thumb:hover{background-clip:padding-box;background-color:var(--webchat-colorNeutralForeground5);border-radius:10px;border-right:2px solid transparent;border:1px solid transparent}.webchat-fluent.a.t .webchat__basic-transcript .webchat__basic-transcript__scrollable{scrollbar-gutter:stable}.webchat-fluent.a .webchat__basic-transcript .webchat__basic-transcript__terminator:focus-visible+.webchat__basic-transcript__focus-indicator{border-color:var(--webchat-colorStrokeFocus2)}.webchat-fluent.a .webchat__basic-transcript:not(:focus-visible) .webchat__basic-transcript__activity-indicator--focus{display:none}.webchat-fluent.a .webchat__basic-transcript:focus-visible:has(.webchat__basic-transcript__activity-indicator--focus) .webchat__basic-transcript__focus-indicator{display:none}.webchat-fluent.a .webchat__basic-transcript:focus-visible .webchat__basic-transcript__activity:has(.webchat__basic-transcript__activity-indicator--focus) .webchat__basic-transcript__activity-indicator--focus{display:none}.webchat-fluent.a .webchat__basic-transcript:focus-visible .webchat__basic-transcript__activity:has(.webchat__basic-transcript__activity-indicator--focus) .webchat__bubble:after,.webchat-fluent.a .webchat__basic-transcript:focus-visible .webchat__basic-transcript__activity:has(.webchat__basic-transcript__activity-indicator--focus) .pre-chat-message-activity:after{content:\"\";position:absolute;inset:-2px;border:var(--webchat-strokeWidthThick) solid var(--webchat-colorStrokeFocus2);border-radius:var(--webchat__bubble--border-radius);pointer-events:none}.webchat-fluent.a .webchat__basic-transcript:focus-visible .webchat__basic-transcript__activity:has(.webchat__basic-transcript__activity-indicator--focus) .pre-chat-message-activity:after{inset:0;border-radius:var(--webchat-borderRadiusSmall)}.webchat-fluent.a .webchat__basic-transcript:has(.webchat__basic-transcript__activity:only-child):has(.pre-chat-message-activity) .webchat__basic-transcript__filler{flex-grow:.5}.webchat-fluent.a .webchat__modal-dialog{height:100%;display:grid;place-items:center}.webchat-fluent.a .webchat__modal-dialog::backdrop{background-color:var(--webchat-colorTransparentBackground)}.webchat-fluent.a .webchat__modal-dialog .webchat__modal-dialog__box{background-color:var(--webchat-colorNeutralBackground1);border-radius:var(--webchat-borderRadiusXLarge);position:relative;color:var(--webchat-colorNeutralForeground1);box-shadow:var(--webchat-shadow64)}.webchat-fluent.a .webchat__modal-dialog .webchat__modal-dialog__close-button{color:var(--webchat-colorNeutralForeground1);transition:background-color var(--webchat-durationNormal) var(--webchat-curveDecelerateMid)}.webchat-fluent.a .webchat__modal-dialog .webchat__modal-dialog__close-button:focus:not(:active):hover{background-color:var(--webchat-colorNeutralBackground3)}.webchat-fluent.a .webchat__modal-dialog .webchat__modal-dialog__close-button:focus:active{background-color:var(--webchat-colorNeutralBackground4)}.webchat-fluent.a .webchat__modal-dialog .webchat__modal-dialog__close-button:not(:focus-visible){border:none}.webchat-fluent.a .webchat__modal-dialog .webchat__modal-dialog__close-button:focus{border-color:var(--webchat-colorStrokeFocus2)}.webchat-fluent.a .webchat__modal-dialog .webchat__modal-dialog__close-button-image{fill:currentColor}\n/*! For license information please see botframework-webchat-fluent-theme.production.min.css.LEGAL.txt */\n";function Pe(){if(globalThis.document){let e=document.createElement("style");e.append(document.createTextNode(Oa)),document.head.appendChild(e)}}var Tt=u(d());function Ha(e){return(0,Tt.useMemo)(()=>Object.freeze(Object.fromEntries(Object.entries(e).map(([r,t])=>[r,`${r} ${t}`]))),[e])}var f=Ha;var St=u(d());function oe(e){let r=f(e),t=be();return(0,St.useMemo)(()=>t.map(n=>r[`variant-${n}`]).filter(n=>n).join(" "),[r,t])}var nr={"activity-decorator":"e","variant-fluent":"h","variant-copilot":"s"};var Nt=u(E()),F=u(d());var Et={"copilot-message-header":"g","copilot-message-header__avatar":"u","copilot-message-header__title":"w","copilot-message-header__ai-generated-content":"p"};var{useStyleOptions:ja,useLocalizer:La}=Nt.hooks;function Ra({activity:e}){let[{botAvatarImage:r,botAvatarBackgroundColor:t}]=ja(),n=f(Et),o=La(),i=(0,F.useMemo)(()=>!!e,[e]),s=e?.from?.name,a=(0,F.useMemo)(()=>({"--background-color":t}),[t]);return F.default.createElement("div",{className:n["copilot-message-header"]},F.default.createElement("img",{alt:o("AVATAR_ALT",s),className:n["copilot-message-header__avatar"],src:r,style:a}),F.default.createElement("span",{className:n["copilot-message-header__title"],title:s},s),i&&F.default.createElement("span",{className:n["copilot-message-header__ai-generated-content"]},o("ACTIVITY_CONTENT_CAUTION")))}var Bt=(0,F.memo)(Ra);function Ct({activity:e,children:r}){let t=f(nr),n=be(),o=oe(nr),i=n.includes("copilot")&&e?.from?.role!=="user"&&!!r;return ye.default.createElement("div",{className:(0,At.default)(t["activity-decorator"],o)},i&&ye.default.createElement(Bt,{activity:e}),r)}Ct.displayName="ActivityDecorator";var or=(0,ye.memo)(Ct);var jp=new RegExp("^(?:[\\u{1F1E6}-\\u{1F1FF}]{2}|\\u{1F3F4}[\\u{E0061}-\\u{E007A}]{2}[\\u{E0030}-\\u{E0039}\\u{E0061}-\\u{E007A}]{1,3}\\u{E007F}|(?:\\p{Emoji}\\uFE0F\\u20E3?|\\p{Emoji_Modifier_Base}\\p{Emoji_Modifier}?|\\p{Emoji_Presentation})(?:\\u200D(?:\\p{Emoji}\\uFE0F\\u20E3?|\\p{Emoji_Modifier_Base}\\p{Emoji_Modifier}?|\\p{Emoji_Presentation}))*)+$","u");var ir;function $a(e){return{lang:e?.lang??ir?.lang,message:e?.message,abortEarly:e?.abortEarly??ir?.abortEarly,abortPipeEarly:e?.abortPipeEarly??ir?.abortPipeEarly}}var Va;function Xa(e){return Va?.get(e)}var Ka;function Wa(e){return Ka?.get(e)}var Ua;function Ga(e,r){return Ua?.get(e)?.get(r)}function Mt(e){let r=typeof e;return r==="string"?`"${e}"`:r==="number"||r==="bigint"||r==="boolean"?`${e}`:r==="object"||r==="function"?(e&&Object.getPrototypeOf(e)?.constructor?.name)??"null":r}function De(e,r,t,n,o){let i=o&&"input"in o?o.input:t.value,s=o?.expected??e.expects??null,a=o?.received??Mt(i),c={kind:e.kind,type:e.type,input:i,expected:s,received:a,message:`Invalid ${r}: ${s?`Expected ${s} but r`:"R"}eceived ${a}`,requirement:e.requirement,path:o?.path,issues:o?.issues,lang:n.lang,abortEarly:n.abortEarly,abortPipeEarly:n.abortPipeEarly},y=e.kind==="schema",p=o?.message??e.message??Ga(e.reference,c.lang)??(y?Wa(c.lang):null)??n.message??Xa(c.lang);p&&(c.message=typeof p=="function"?p(c):p),y&&(t.typed=!1),t.issues?t.issues.push(c):t.issues=[c]}function ar(e,r){return{kind:"schema",type:"array",reference:ar,expects:"Array",async:!1,item:e,message:r,_run(t,n){let o=t.value;if(Array.isArray(o)){t.typed=!0,t.value=[];for(let i=0;i<o.length;i++){let s=o[i],a=this.item._run({typed:!1,value:s},n);if(a.issues){let c={type:"array",origin:"value",input:o,key:i,value:s};for(let y of a.issues)y.path?y.path.unshift(c):y.path=[c],t.issues?.push(y);if(t.issues||(t.issues=a.issues),n.abortEarly){t.typed=!1;break}}a.typed||(t.typed=!1),t.value.push(a.value)}}else De(this,"type",t,n);return t}}}function ie(e,r){return{kind:"schema",type:"literal",reference:ie,expects:Mt(e),async:!1,literal:e,message:r,_run(t,n){return t.value===this.literal?t.typed=!0:De(this,"type",t,n),t}}}function sr(e,r){return{kind:"schema",type:"object",reference:sr,expects:"Object",async:!1,entries:e,message:r,_run(t,n){let o=t.value;if(o&&typeof o=="object"){t.typed=!0,t.value={};for(let i in this.entries){let s=o[i],a=this.entries[i]._run({typed:!1,value:s},n);if(a.issues){let c={type:"object",origin:"value",input:o,key:i,value:s};for(let y of a.issues)y.path?y.path.unshift(c):y.path=[c],t.issues?.push(y);if(t.issues||(t.issues=a.issues),n.abortEarly){t.typed=!1;break}}a.typed||(t.typed=!1),(a.value!==void 0||i in o)&&(t.value[i]=a.value)}}else De(this,"type",t,n);return t}}}function lr(e){return{kind:"schema",type:"string",reference:lr,expects:"string",async:!1,message:e,_run(r,t){return typeof r.value=="string"?r.typed=!0:De(this,"type",r,t),r}}}function It(e,r,t){let n=e._run({typed:!1,value:r},$a(t));return{typed:n.typed,success:!n.issues,output:n.value,issues:n.issues}}var Za=sr({"@context":ie("https://schema.org"),"@id":ie(""),"@type":ie("Message"),keywords:ar(lr()),type:ie("https://schema.org/Message")});function ae(e){return e?.type!=="message"?!1:!!e.entities?.find(t=>It(Za,t).success)?.keywords.includes("PreChatMessage")}var Ti=u(E()),K=u(d());var Pt={"pre-chat-message-activity":"v","pre-chat-message-activity__body":"o","pre-chat-message-activity__toolbar":"_"};var wi=u(B()),pe=u(d());var yi=u(E()),mi=u(B()),D=u(d());var ci=u(ui()),$e=u(d());function S(e){var r=(0,$e.useRef)(),t=(0,$e.useMemo)(function(){return(0,ci.default)({},{current:{get:function(){return r.current}}})},[r]);return r.current=e,t}var Hu={preChatMessageActivityStarterPromptsCardAction:"pre-chat message activity starter prompts card action",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"},_=Hu;var fi=u(B()),ce=u(d());var pi={"pre-chat-message-activity__monochrome-image-masker":"f"};var di=({className:e,src:r})=>{let t=f(pi),n=(0,ce.useMemo)(()=>({"--mask-image":`url(${r})`}),[r]);return ce.default.createElement("div",{className:(0,fi.default)(e,t["pre-chat-message-activity__monochrome-image-masker"]),style:n})};di.displayName="MonochromeImageMasker";var hi=(0,ce.memo)(di);var bi={"pre-chat-message-activity__card-action-box":"r","pre-chat-message-activity__card-action-image":"x","pre-chat-message-activity__card-action-subtitle":"k","pre-chat-message-activity__card-action-title":"m"};var{useFocus:ju,useRenderMarkdownAsHTML:Lu,useSendBoxValue:Ru}=yi.hooks,vi=({className:e,messageBackAction:r})=>{let[t,n]=Ru(),o=f(bi),i=ju(),s=S(r.displayText||r.text||""),a=Lu("message activity"),c=(0,D.useMemo)(()=>a?{__html:a(r.text||"")}:{__html:""},[r.text,a]),y=(0,D.useCallback)(()=>{n(s.current),i("sendBox")},[i,s,n]);return D.default.createElement("button",{className:(0,mi.default)(e,o["pre-chat-message-activity__card-action-box"]),"data-testid":_.preChatMessageActivityStarterPromptsCardAction,onClick:y,type:"button"},D.default.createElement("div",{className:o["pre-chat-message-activity__card-action-title"]},"title"in r&&r.title),"image"in r&&r.image&&D.default.createElement(hi,{className:o["pre-chat-message-activity__card-action-image"],src:r.image}),D.default.createElement("div",{className:o["pre-chat-message-activity__card-action-subtitle"],dangerouslySetInnerHTML:c}))};vi.displayName="StarterPromptAction";var gi=(0,D.memo)(vi);var _i={"pre-chat-message-activity__card-action-toolbar":"B","webchat-container":"l","pre-chat-message-activity__card-action-toolbar-grid":"c"};var xi=({cardActions:e,className:r})=>{let t=f(_i);return pe.default.createElement("div",{className:(0,wi.default)(r,t["pre-chat-message-activity__card-action-toolbar"])},pe.default.createElement("div",{className:t["pre-chat-message-activity__card-action-toolbar-grid"]},e.filter(n=>n.type==="messageBack").map(n=>pe.default.createElement(gi,{key:n.text,messageBackAction:n}))))};xi.displayName="StarterPrompts";var ki=(0,pe.memo)(xi);var{useRenderMarkdownAsHTML:Vu}=Ti.hooks,Si=({activity:e})=>{let r=f(Pt),t=Vu(),n=(0,K.useMemo)(()=>t?{__html:t(e.text||"")}:{__html:""},[e.text,t]);return K.default.createElement("div",{className:r["pre-chat-message-activity"]},K.default.createElement("div",{className:r["pre-chat-message-activity__body"],dangerouslySetInnerHTML:n}),K.default.createElement(ki,{cardActions:e.suggestedActions?.actions||[],className:r["pre-chat-message-activity__toolbar"]}))};Si.displayName="PreChatMessageActivity";var Zr=(0,K.memo)(Si);var va=u(E()),fe=u(B()),v=u(d());var Te=u(d());function Xu(e){return Te.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"},Te.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 Yr=(0,Te.memo)(Xu);var Se=u(d());function Ku(e){return Se.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"},Se.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 Jr=(0,Se.memo)(Ku);var Ee=u(d());function Wu(e){return Ee.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"},Ee.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 Qr=(0,Ee.memo)(Wu);var Ne=u(d());function Uu(e){return Ne.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"},Ne.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 et=(0,Ne.memo)(Uu);var Be=u(d());function Gu(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 rt=(0,Be.memo)(Gu);var Bi=u(E()),Ai=u(B()),C=u(d());var Ei={"sendbox__attachment-drop-zone":"y","sendbox__attachment-drop-zone--droppable":"N","sendbox__attachment-drop-zone-icon":"S"};var{useLocalizer:Yu}=Bi.hooks,Ju=e=>{e.preventDefault()},Ni=e=>!!e.dataTransfer?.types?.some(r=>r.toLowerCase()==="files");function Qu(e,r){let t=e.parentNode;for(;t;){if(t===r)return!0;t=t.parentNode}return!1}var Ci=e=>{let[r,t]=(0,C.useState)(!1),n=f(Ei),o=(0,C.useRef)(null),i=Yu(),s=S(e.onFilesAdded);(0,C.useEffect)(()=>{let c=0,y=h=>{c++,Ni(h)&&t(o.current&&(h.target===o.current||h.target instanceof HTMLElement&&Qu(h.target,o.current))?"droppable":"visible")},p=()=>--c<=0&&t(!1);return document.addEventListener("dragenter",y,!1),document.addEventListener("dragleave",p,!1),()=>{document.removeEventListener("dragenter",y),document.removeEventListener("dragleave",p)}},[t]);let a=(0,C.useCallback)(c=>{c.preventDefault(),t(!1),Ni(c.nativeEvent)&&s.current([...c.dataTransfer.files])},[s,t]);return r?C.default.createElement("div",{className:(0,Ai.default)(n["sendbox__attachment-drop-zone"],{[n["sendbox__attachment-drop-zone--droppable"]]:r==="droppable"}),"data-testid":_.sendBoxDropZone,onDragOver:Ju,onDrop:a,ref:o},C.default.createElement(Yr,{className:n["sendbox__attachment-drop-zone-icon"]}),i("TEXT_INPUT_DROP_ZONE")):null};Ci.displayName="DropZone";var tt=(0,C.memo)(Ci);var zi=u(E()),ji=u(B()),O=u(d());function nt(e){let{title:r}=e,{type:t,value:n}=e;return t==="messageBack"?r||e.displayText:r||(typeof n=="string"?n:JSON.stringify(n))}var x=u(d()),Mi=(0,x.createContext)({itemEffector:()=>{throw new Error("botframework-webchat-fluent-theme rovingFocus: no provider for RovingFocusContext.")}});function ec(e){let r=(0,x.useRef)(0),t=(0,x.useRef)([]),n=(0,x.useCallback)(({current:p},h)=>p&&(p.tabIndex=r.current===h?0:-1),[r]),o=(0,x.useCallback)(p=>{let h;typeof p=="number"?h=p:h=p(r.current),h&&!t.current.at(h)?.current&&(h=0),r.current!==h&&(r.current=h,t.current.forEach((m,g)=>n(m,g)),t.current.at(h)?.current?.focus())},[n,t,r]),i=(0,x.useCallback)(p=>{let{target:h}=p,m=t.current.findIndex(({current:g})=>g===h);m!==-1&&o(m)},[t,o]),s=(0,x.useCallback)(p=>h=>{let m=!e.direction,g=/up|down/iu.test(p)&&e.direction==="vertical",w=/left|right/iu.test(p)&&e.direction==="horizontal",k=/right|down/iu.test(p),T=m||g||w?k?1:-1:0,N=t.current.map((J,re)=>re),L=N.indexOf(h)+T;return N.at(L)??0},[e.direction]),a=(0,x.useCallback)(p=>{let{key:h}=p;switch(h){case"Up":case"ArrowUp":case"Left":case"ArrowLeft":case"Down":case"ArrowDown":case"Right":case"ArrowRight":o(s(h));break;case"Home":o(0);break;case"End":o(-1);break;case"Escape":e.onEscapeKey?.();break;default:return}p.preventDefault(),p.stopPropagation()},[o,s,e]),c=(0,x.useCallback)((p,h)=>{let{current:m}=p;return t.current[Number(h)]=p,m.addEventListener("focus",i),m.addEventListener("keydown",a),n(p,h),()=>{m.removeEventListener("focus",i),m.removeEventListener("keydown",a),delete t.current[Number(h)]}},[i,a,n,t]),y=(0,x.useMemo)(()=>({itemEffector:c}),[c]);return x.default.createElement(Mi.Provider,{value:y},e.children)}function Ii(e){let r=(0,x.useRef)(null),{itemEffector:t}=(0,x.useContext)(Mi);return(0,x.useEffect)(()=>t(r,e)),r}var Pi=(0,x.memo)(ec);var Oi=u(E()),Hi=u(B()),U=u(d());var Di={"suggested-action":"z","suggested-action__image":"H"};var W=u(d()),tc=e=>e.preventDefault(),nc=(0,W.forwardRef)(({"aria-hidden":e,children:r,disabled:t,onClick:n,tabIndex:o,...i},s)=>{let a=(0,W.useRef)(null);return W.default.createElement("button",{"aria-disabled":t?"true":"false","aria-hidden":e,onClick:t?tc:n,ref:s||a,tabIndex:o,...t&&{"aria-disabled":"true",tabIndex:-1},...i,type:"button"},r)}),Fi=(0,W.memo)(nc);var{useDisabled:oc,useFocus:ic,usePerformCardAction:ac,useScrollToEnd:sc,useStyleSet:lc,useSuggestedActions:uc}=Oi.hooks;function cc({buttonText:e,className:r,displayText:t,image:n,imageAlt:o,itemIndex:i,text:s,type:a,value:c}){let[y,p]=uc(),[{suggestedAction:h}]=lc(),[m]=oc(),g=ic(),w=Ii(i),k=ac(),T=f(Di),N=sc(),L=(0,U.useCallback)(({target:J})=>{(async function(){await g("sendBoxWithoutKeyboard"),k({displayText:t,text:s,type:a,value:c},{target:J}),a==="openUrl"&&p([]),N()})()},[t,g,k,N,p,s,a,c]);return U.default.createElement(Fi,{className:(0,Hi.default)(T["suggested-action"],h+"",(r||"")+""),disabled:m,onClick:L,ref:w,type:"button"},n&&U.default.createElement("img",{alt:o,className:T["suggested-action__image"],src:n}),U.default.createElement("span",null,e))}var qi=(0,U.memo)(cc);var ot={"suggested-actions":"F","suggested-actions--flow":"X","suggested-actions--stacked":"L"};var{useFocus:fc,useLocalizer:dc,useStyleOptions:hc,useStyleSet:bc,useSuggestedActions:yc}=zi.hooks;function mc(e){let[{suggestedActionLayout:r}]=hc(),[{suggestedActions:t}]=bc(),n=f(ot);return O.default.createElement("div",{"aria-label":e["aria-label"],"aria-live":"polite","aria-orientation":"vertical",className:(0,ji.default)(n["suggested-actions"],t+"",{[n["suggested-actions--flow"]]:r==="flow",[n["suggested-actions--stacked"]]:r!=="flow"},e.className),role:"toolbar"},!!e.children&&!!O.default.Children.count(e.children)&&e.children)}function vc(){let e=f(ot),r=dc(),[t,n,{activity:o}]=yc(),i=fc(),s=(0,O.useCallback)(()=>{i("sendBox")},[i]),a=ae(o)?[]:t.map((c,y)=>{let{displayText:p,image:h,imageAltText:m,text:g,type:w,value:k}=c;return t?.length?O.default.createElement(qi,{buttonText:nt(c),displayText:p,image:h,imageAlt:h&&(m||g),itemIndex:y,key:y,text:g,type:w,value:k}):null});return O.default.createElement(Pi,{onEscapeKey:s},O.default.createElement(mc,{"aria-label":r("SUGGESTED_ACTIONS_LABEL_ALT"),className:e["suggested-actions"]},a))}var it=(0,O.memo)(vc);var G=u(d());var Li=u(d()),Ri=(0,Li.createContext)(new Proxy({},{get(){throw new Error("botframework-webchat: This hook can only used under its corresponding <Provider>.")}}));Ri.displayName="TelephoneKeypad.Context";var Ve=Ri;var gc=(0,G.memo)(({children:e})=>{let[r,t]=(0,G.useState)(!1),n=(0,G.useMemo)(()=>Object.freeze({setShown:t,shown:r}),[t,r]);return G.default.createElement(Ve.Provider,{value:n},e)}),at=gc;var Ke=u(d());var Xi=u(E()),Ki=u(B()),b=u(d());var H=u(d());var $i={"telephone-keypad__button":"n","telephone-keypad__button__ruby":"i","telephone-keypad__button__text":"b","telephone-keypad--horizontal":"V"};var Vi=(0,H.memo)((0,H.forwardRef)(({button:e,"data-testid":r,onClick:t,ruby:n},o)=>{let i=f($i),s=S(t),a=(0,H.useCallback)(()=>s.current?.(),[s]);return H.default.createElement("button",{className:i["telephone-keypad__button"],"data-testid":r,onClick:a,ref:o,type:"button"},H.default.createElement("span",{className:i["telephone-keypad__button__text"]},e==="*"?"\u2217":e),!!n&&H.default.createElement("ruby",{className:i["telephone-keypad__button__ruby"]},n))}));Vi.displayName="TelephoneKeypad.Button";var M=Vi;var Xe=u(d());function q(){let{setShown:e,shown:r}=(0,Xe.useContext)(Ve);return(0,Xe.useMemo)(()=>Object.freeze([r,e]),[r,e])}var st={"telephone-keypad":"W","telephone-keypad__box":"M","telephone-keypad__info-message":"R","telephone-keypad__info-message-link":"P"};var{LocalizedString:xc}=Xi.Components,Wi=(0,b.memo)(({children:e,isHorizontal:r})=>{let t=f(st);return r?null:b.default.createElement("div",{className:t["telephone-keypad__box"]},e)});Wi.displayName="TelephoneKeypad:Orientation";var Ui=(0,b.memo)(({autoFocus:e,className:r,onButtonClick:t,isHorizontal:n})=>{let o=S(e),i=f(st),s=(0,b.useRef)(null),a=S(t),[,c]=q(),y=(0,b.useCallback)(()=>a.current?.("1"),[a]),p=(0,b.useCallback)(()=>a.current?.("2"),[a]),h=(0,b.useCallback)(()=>a.current?.("3"),[a]),m=(0,b.useCallback)(()=>a.current?.("4"),[a]),g=(0,b.useCallback)(()=>a.current?.("5"),[a]),w=(0,b.useCallback)(()=>a.current?.("6"),[a]),k=(0,b.useCallback)(()=>a.current?.("7"),[a]),T=(0,b.useCallback)(()=>a.current?.("8"),[a]),N=(0,b.useCallback)(()=>a.current?.("9"),[a]),L=(0,b.useCallback)(()=>a.current?.("0"),[a]),J=(0,b.useCallback)(()=>a.current?.("*"),[a]),re=(0,b.useCallback)(()=>a.current?.("#"),[a]),de=(0,b.useCallback)(te=>{te.key==="Escape"&&c(!1)},[c]);return(0,b.useEffect)(()=>{o.current&&s.current?.focus()},[o,s]),b.default.createElement("div",{className:(0,Ki.default)(i["telephone-keypad"],r),onKeyDown:de},b.default.createElement(Wi,{isHorizontal:n},b.default.createElement(M,{button:"1","data-testid":_.sendBoxTelephoneKeypadButton1,onClick:y,ref:s}),b.default.createElement(M,{button:"2","data-testid":_.sendBoxTelephoneKeypadButton2,onClick:p,ruby:"ABC"}),b.default.createElement(M,{button:"3","data-testid":_.sendBoxTelephoneKeypadButton3,onClick:h,ruby:"DEF"}),b.default.createElement(M,{button:"4","data-testid":_.sendBoxTelephoneKeypadButton4,onClick:m,ruby:"GHI"}),b.default.createElement(M,{button:"5","data-testid":_.sendBoxTelephoneKeypadButton5,onClick:g,ruby:"JKL"}),b.default.createElement(M,{button:"6","data-testid":_.sendBoxTelephoneKeypadButton6,onClick:w,ruby:"MNO"}),b.default.createElement(M,{button:"7","data-testid":_.sendBoxTelephoneKeypadButton7,onClick:k,ruby:"PQRS"}),b.default.createElement(M,{button:"8","data-testid":_.sendBoxTelephoneKeypadButton8,onClick:T,ruby:"TUV"}),b.default.createElement(M,{button:"9","data-testid":_.sendBoxTelephoneKeypadButton9,onClick:N,ruby:"WXYZ"}),b.default.createElement(M,{button:"*","data-testid":_.sendBoxTelephoneKeypadButtonStar,onClick:J}),b.default.createElement(M,{button:"0","data-testid":_.sendBoxTelephoneKeypadButton0,onClick:L,ruby:"+"}),b.default.createElement(M,{button:"#","data-testid":_.sendBoxTelephoneKeypadButtonPound,onClick:re})),b.default.createElement("div",{className:i["telephone-keypad__info-message"]},b.default.createElement(Qr,null),b.default.createElement(xc,{linkClassName:i["telephone-keypad__info-message-link"],stringIds:"TELEPHONE_KEYPAD_INPUT_MESSAGE"})))});Ui.displayName="TelephoneKeypad";var Gi=Ui;var Zi=(0,Ke.memo)(e=>q()[0]?Ke.default.createElement(Gi,{...e}):null);Zi.displayName="TelephoneKeypad.Surrogate";var lt=Zi;var Ji=u(E()),I=u(d());var Ue=u(B()),Z=u(d());var We={sendbox__toolbar:"T","sendbox__toolbar-button":"C","sendbox__toolbar-button--selected":"D","sendbox__toolbar-separator":"G"};var Tc=e=>e.preventDefault(),Q=(0,Z.memo)(e=>{let r=f(We);return Z.default.createElement("button",{"aria-label":e["aria-label"],className:(0,Ue.default)(r["sendbox__toolbar-button"],e.className,{[r["sendbox__toolbar-button--selected"]]:e.selected}),"data-testid":e["data-testid"],onClick:e.disabled?Tc:e.onClick,type:e.type==="submit"?"submit":"button",...e.disabled&&{"aria-disabled":"true",tabIndex:-1}},e.children)});Q.displayName="ToolbarButton";var ut=(0,Z.memo)(e=>{let r=f(We);return Z.default.createElement("div",{className:(0,Ue.default)(r.sendbox__toolbar,e.className)},e.children)});ut.displayName="Toolbar";var ct=(0,Z.memo)(e=>{let r=f(We);return Z.default.createElement("div",{"aria-orientation":"vertical",className:(0,Ue.default)(r["sendbox__toolbar-separator"],e.className),role:"separator"})});ct.displayName="ToolbarSeparator";var Yi={"sendbox__add-attachment":"U","sendbox__add-attachment-input":"j"};var{useLocalizer:Ec,useStyleOptions:Nc}=Ji.hooks;function Bc(e){let r=(0,I.useRef)(null),t=f(Yi),n=Ec(),[{uploadAccept:o,uploadMultiple:i}]=Nc(),s=S(e.onFilesAdded),a=(0,I.useCallback)(()=>r.current?.click(),[r]),c=(0,I.useCallback)(({target:{files:y}})=>{y&&(s.current?.([...y]),r.current&&(r.current.value=""))},[r,s]);return I.default.createElement("div",{className:t["sendbox__add-attachment"]},I.default.createElement("input",{accept:o,"aria-disabled":e.disabled,"aria-hidden":"true",className:t["sendbox__add-attachment-input"],multiple:i,onInput:e.disabled?void 0:c,readOnly:e.disabled,ref:r,role:"button",tabIndex:-1,type:"file"}),I.default.createElement(Q,{"aria-label":n("TEXT_INPUT_UPLOAD_BUTTON_ALT"),"data-testid":_.sendBoxUploadButton,onClick:a},I.default.createElement(Jr,null)))}var Qi=(0,I.memo)(Bc);var ra=u(E()),Ge=u(d()),ta=u(B());var ea={sendbox__attachment:"I"};var{useLocalizer:Cc}=ra.hooks,Mc={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 Ic({attachments:e,className:r}){let t=f(ea),n=Cc({plural:!0});return e.length?Ge.default.createElement("div",{className:(0,ta.default)(t.sendbox__attachment,r)},n(Mc,e.length)):null}var na=(0,Ge.memo)(Ic);var Ze=u(d());var oa={"sendbox__error-message":"A"};function Dc(e){let r=f(oa);return Ze.default.createElement("span",{className:r["sendbox__error-message"],id:e.id,role:"alert"},e.error)}var ia=(0,Ze.memo)(Dc);var aa=u(E()),pt=u(d());var{useConnectivityStatus:Fc,useLocalizer:Oc}=aa.hooks,Hc=({attachments:e,message:r})=>{let[t]=Fc(),n=Oc(),o=S(t!=="connected"&&t!=="reconnected"?"offline":!r&&!e.length?"empty":void 0),i=(0,pt.useMemo)(()=>Object.freeze(new Map().set("empty",n("SEND_BOX_IS_EMPTY_TOOLTIP_ALT")).set("offline",n("CONNECTIVITY_STATUS_ALT_FATAL"))),[n]);return(0,pt.useMemo)(()=>Object.freeze([o,o.current&&i.get(o.current)]),[i,o])},sa=Hc;var la=u(d()),ua=u(E()),{useScrollDown:qc,useScrollUp:zc}=ua.hooks;function ft(){let e=qc(),r=zc();return(0,la.useCallback)(t=>{if(t.target instanceof HTMLTextAreaElement&&t.target.value)return;let{ctrlKey:n,metaKey:o,shiftKey:i}=t;if(n||o||i)return;let s=!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:s=!1;break}s&&(t.preventDefault(),t.stopPropagation())},[e,r])}var ca=u(d());function dt(e){let r=(0,ca.useMemo)(()=>Math.random().toString(36).substr(2,5),[]);return e=e?`${e}--`:"",`${e}${r}`}var pa={sendbox:"E",sendbox__sendbox:"q","sendbox__attachment--in-grid":"d","sendbox__text-area--in-grid":"J","sendbox__sendbox-controls--in-grid":"K","sendbox__telephone-keypad--in-grid":"O","sendbox__sendbox-text":"Q","sendbox__sendbox-controls":"Y","sendbox__text-counter":"Z","sendbox__text-counter--error":"ee"};var ee=u(d()),fa=u(E());var{useLocalizer:Lc}=fa.hooks,da=(0,ee.memo)(()=>{let[e,r]=q(),t=Lc(),n=(0,ee.useCallback)(()=>r(o=>!o),[r]);return ee.default.createElement(Q,{"aria-label":t("TEXT_INPUT_TELEPHONE_KEYPAD_BUTTON_ALT"),"data-testid":_.sendBoxTelephoneKeypadToolbarButton,onClick:n,selected:e},ee.default.createElement(rt,null))});da.displayName="SendBox.TelephoneKeypadToolbarButton";var ha=da;var Ye=u(B()),Y=u(d());var ba={"sendbox__text-area":"ae","sendbox__text-area--hidden":"re","sendbox__text-area-shared":"oe","sendbox__text-area-doppelganger":"te","sendbox__text-area-input":"le","sendbox__text-area-input--scroll":"ce"};var ya=(0,Y.forwardRef)((e,r)=>{let t=f(ba),n=(0,Y.useCallback)(o=>{!o.shiftKey&&o.key==="Enter"&&(o.preventDefault(),"form"in o.target&&o.target.form instanceof HTMLFormElement&&o.target?.form?.requestSubmit())},[]);return Y.default.createElement("div",{className:(0,Ye.default)(t["sendbox__text-area"],{[t["sendbox__text-area--hidden"]]:e.hidden},e.className),role:e.hidden?"hidden":void 0},Y.default.createElement("div",{className:(0,Ye.default)(t["sendbox__text-area-doppelganger"],t["sendbox__text-area-shared"],t["sendbox__text-area-input--scroll"])},e.value||e.placeholder," "),Y.default.createElement("textarea",{"aria-label":e["aria-label"],className:(0,Ye.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:n,placeholder:e.placeholder,ref:r,rows:e.startRows??1,tabIndex:e.hidden?-1:void 0,value:e.value}))});ya.displayName="TextArea";var ma=ya;var{useFocus:$c,useLocalizer:Vc,useMakeThumbnail:Xc,useRegisterFocusSendBox:Kc,useSendBoxAttachments:Wc,useSendBoxValue:Uc,useSendMessage:Gc,useStyleOptions:Zc}=va.hooks;function ga(e){let r=(0,v.useRef)(null),[t,n]=(0,v.useState)(""),[o,i]=Uc(),s=e.isPrimary?o:t,a=e.isPrimary?i:n,[c,y]=Wc(),[{hideTelephoneKeypadButton:p,hideUploadButton:h,maxMessageLength:m}]=Zc(),g=!!m&&s.length>m,w=f(pa),k=Vc(),T=Gc(),N=Xc(),L=dt("sendbox__error-message-id"),[J,re]=sa({message:s,attachments:c}),[de]=q(),te=$c();Kc((0,v.useCallback)(({noKeyboard:A,waitUntil:er})=>{r.current&&(A?er((async()=>{let he=r.current?.getAttribute("readonly");r.current?.setAttribute("readonly","true"),await new Promise(Ae=>setTimeout(Ae,0)),r.current?.focus(),typeof he!="string"?r.current?.removeAttribute("readonly"):r.current?.setAttribute("readonly",he)})()):r.current?.focus())},[r]));let yt=S(c),mt=S(s),ka=(0,v.useCallback)(A=>{"tabIndex"in A.target&&typeof A.target.tabIndex=="number"&&A.target.tabIndex>=0||te("sendBox")},[te]),Ta=(0,v.useCallback)(A=>a(A.currentTarget.value),[a]),vt=(0,v.useCallback)(async A=>{let er=Object.freeze(await Promise.all(A.map(he=>N(he).then(Ae=>Object.freeze({blob:he,...Ae&&{thumbnailURL:Ae}})))));y(er)},[N,y]),Sa=(0,v.useCallback)(A=>{A.preventDefault(),J.current!=="empty"&&!g&&(T(mt.current,void 0,{attachments:yt.current}),a(""),y([])),te("sendBox")},[yt,mt,T,y,a,g,J,te]),Ea=(0,v.useCallback)(A=>T(`/DTMFKey ${A}`),[T]),Na=ft(),Ba={"aria-invalid":"false",...re&&{"aria-invalid":"true","aria-errormessage":L}};return v.default.createElement("form",{...Ba,className:(0,fe.default)(w.sendbox,e.className),onSubmit:Sa},v.default.createElement(it,null),v.default.createElement("div",{className:(0,fe.default)(w.sendbox__sendbox),onClickCapture:ka,onKeyDown:Na},v.default.createElement(ma,{"aria-label":k(g?"TEXT_INPUT_LENGTH_EXCEEDED_ALT":"TEXT_INPUT_ALT"),className:(0,fe.default)(w["sendbox__sendbox-text"],w["sendbox__text-area--in-grid"]),"data-testid":_.sendBoxTextBox,hidden:de,onInput:Ta,placeholder:e.placeholder??k("TEXT_INPUT_PLACEHOLDER"),ref:r,value:s}),v.default.createElement(lt,{autoFocus:!0,className:w["sendbox__telephone-keypad--in-grid"],isHorizontal:!1,onButtonClick:Ea}),v.default.createElement(na,{attachments:c,className:w["sendbox__attachment--in-grid"]}),v.default.createElement("div",{className:(0,fe.default)(w["sendbox__sendbox-controls"],w["sendbox__sendbox-controls--in-grid"])},!de&&m&&isFinite(m)&&v.default.createElement("div",{className:(0,fe.default)(w["sendbox__text-counter"],{[w["sendbox__text-counter--error"]]:g})},`${s.length}/${m}`),v.default.createElement(ut,null,!p&&v.default.createElement(ha,null),!h&&v.default.createElement(Qi,{onFilesAdded:vt}),v.default.createElement(ct,null),v.default.createElement(Q,{"aria-label":k("TEXT_INPUT_SEND_BUTTON_ALT"),"data-testid":_.sendBoxSendButton,disabled:g||de,type:"submit"},v.default.createElement(et,null)))),v.default.createElement(tt,{onFilesAdded:vt}),v.default.createElement(ia,{error:re,id:L})))}var Je=(0,v.memo)(e=>v.default.createElement(ga,{...e,isPrimary:!0}));Je.displayName="PrimarySendBox";var Yc=(0,v.memo)(ga);var _a=u(d()),wa=u(B());var ht={theme:"a","variant-copilot":"t"};var Qc="webchat-fluent";function Qe(e){let r=f(ht),t=oe(ht);return _a.default.createElement("div",{className:(0,wa.default)(Qc,r.theme,t)},e.children)}var{ThemeProvider:ep}=xa.Components,rp=[()=>e=>(...r)=>{let t=r[0]?.activity;if(t&&ae(t))return()=>j.default.createElement(Zr,{activity:t});let n=e(...r);return n&&((...o)=>j.default.createElement(or,{activity:t},n(...o)))}],tp=[()=>()=>()=>Je],np=({children:e,variant:r="fluent"})=>j.default.createElement(kt,{variant:r},j.default.createElement(Qe,null,j.default.createElement(at,null,j.default.createElement(ep,{activityMiddleware:rp,sendBoxMiddleware:tp},e)))),bt=(0,j.memo)(np);Ce("botframework-webchat:fluent-theme","version=4.18.1-main.20240813.c50aac5; build-tool=tsup; module-format=esmodules");Pe();globalThis.WebChat={...globalThis.WebChat,FluentThemeProvider:bt,testIds:{...globalThis.WebChat?.testIds,..._}};})();
|
|
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
|