botframework-webchat-fluent-theme 4.18.1-main.20241104.06bf029 → 4.18.1-main.20241104.b245b63

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,3 @@
1
- import{injectMetaTag as ei}from"inject-meta-tag";import{Components as Un}from"botframework-webchat-component";import{WebChatDecorator as jn}from"botframework-webchat-component/decorator";import M,{memo as Zn}from"react";import Ha from"classnames";import Ze,{memo as Ma}from"react";import{useContext as sa,useMemo as da}from"react";import{createContext as la}from"react";import ra,{memo as na,useMemo as ia}from"react";function re({Provider:e},{defaults:t,displayName:a}){let o=({children:r,...n})=>{let l=ia(()=>Object.freeze({...t,...n}),[n]);return ra.createElement(e,{value:l},r)};return o.displayName=a,na(o)}var ne=la(new Proxy({},{get(){throw new Error("Unable to use VariantContext without VariantComposer")}})),ca=re(ne,{defaults:{variant:""},displayName:"VariantComposer"}),Ke=ca;function V(){let{variant:e}=sa(ne);return da(()=>e.split(" "),[e])}function ba(e){let t=document.createElement("style");return t.append(document.createTextNode(e)),t}function Xe(...e){return function(){if(!globalThis.document)throw new Error("Unable to create styles: document is not defined");return e.map(t=>ba(t))}}var ua=".webchat-fluent .ee{display:contents;font-family:var(--webchat__font--primary);--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--min-width: var(--webchat-bubble-minWidth);--webchat-bubble-maxWidth: var(--bubble-maxWidth, max(450px, 75%));--webchat-bubble-minWidth: var(--bubble-minWidth, auto);--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 .ee:has(.webchat__stacked-layout .webchat__bubble--from-user){--webchat__bubble--background-color: var(--webchat-colorBrandBackground2);--webchat__bubble--block-padding: var(--webchat-spacingVerticalS);--webchat__bubble--min-width: auto}.webchat-fluent .ee.ue{--webchat__bubble--background-color: var(--webchat-colorNeutralBackground1);--webchat__bubble--border-radius: var(--webchat-borderRadiusXLarge);--webchat__bubble--box-shadow: var(--webchat-shadow4)}.webchat-fluent .ee.re{--webchat__bubble--border-radius: var(--webchat-borderRadiusXLarge)}.webchat-fluent .ee.re .webchat__activity-status{margin:0 0 var(--webchat-spacingHorizontalXXS)}.webchat-fluent .ee.re .webchat__stacked-layout__status{order:-1}.webchat-fluent .ee.re:has(.webchat__bubble--from-user) .webchat__bubble{margin-block-end:var(--webchat-spacingVerticalM)}.webchat-fluent .ee.re .webchat__bubble .webchat__text-content .webchat__text-content__generated-badge{display:none}.webchat-fluent .ee.re:not(:has(.webchat__bubble--from-user)){--webchat__bubble--block-padding: 0;--webchat__bubble--border-radius: var(--webchat-borderRadiusMedium);--webchat__bubble--inline-padding: 0;--webchat__bubble--max-width: 100%;--webchat__bubble--min-height: 20px;display:flex;flex-flow:column nowrap;gap:var(--webchat-spacingVerticalS);margin-inline:var(--webchat-spacingHorizontalM);padding:var(--webchat-spacingVerticalMNudge) var(--webchat-spacingHorizontalM) var(--webchat-spacingVerticalM);position:relative}.webchat-fluent .ee.re:not(:has(.webchat__bubble--from-user)) .webchat__stacked-layout{margin:0;position:static}.webchat-fluent .ee.re:not(:has(.webchat__bubble--from-user)) .webchat__bubble{position:static;width:var(--webchat__bubble--max-width)}.webchat-fluent .ee.re:not(:has(.webchat__bubble--from-user)) .webchat__bubble .webchat__bubble__content{overflow:visible}.webchat-fluent .ee.re:not(:has(.webchat__bubble--from-user)) .webchat__text-content{margin-inline-start:28px}.webchat-fluent .ee.re:not(:has(.webchat__bubble--from-user)) .border-loader{display:flex;flex-flow:column nowrap;gap:var(--webchat-spacingVerticalS);padding-inline-end:var(--webchat-spacingHorizontalM);width:500px}.webchat-fluent .ee.re:not(:has(.webchat__bubble--from-user)) .border-loader__track{border-radius:inherit;box-sizing:border-box;clip-path:border-box;margin-inline-start:28px;order:-1;width:auto}.webchat-fluent .ee.re:not(:has(.webchat__bubble--from-user)) .webchat__stacked-layout__status{display:none}.webchat-fluent .ee .webchat__basic-transcript__activity-body:not(:empty){padding-block-end:var(--webchat-spacingVerticalXL)}.webchat-fluent .ee .webchat__stacked-layout{display:flex;flex-flow:column nowrap}.webchat-fluent .ee .webchat__stacked-layout .webchat__stacked-layout__content:has(.webchat__bubble){max-width:100%;overflow:visible}.webchat-fluent .ee .webchat__stacked-layout .webchat__stacked-layout__status{font-size:var(--webchat__font-size--small);line-height:var(--webchat__line-height--small)}.webchat-fluent .ee .webchat__stacked-layout .webchat__bubble{max-width:min(var(--webchat__bubble--max-width),100%);min-width:var(--webchat__bubble--min-width);overflow:visible}.webchat-fluent .ee .webchat__stacked-layout .webchat__bubble:has(.border-loader){width:100%}.webchat-fluent .ee .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-shadow:var(--webchat__bubble--box-shadow);box-sizing:border-box;color:var(--webchat-colorNeutralForeground1);max-width:100%;min-height:var(--webchat__bubble--min-height)}.webchat-fluent .ee .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 .ee .webchat__stacked-layout .webchat__bubble .webchat__text-content:empty{padding-block-end:0}.webchat-fluent .ee .webchat__stacked-layout .webchat__bubble .webchat__text-content+.webchat__text-content{margin-top:calc(var(--webchat__bubble--block-padding) * -1)}.webchat-fluent .ee .webchat__stacked-layout .webchat__bubble .webchat__text-content__generated-badge{align-items:center;align-self:flex-start;background-color:var(--webchat-colorNeutralBackground5);border-radius:var(--webchat-borderRadiusMedium);box-sizing:border-box;color:var(--webchat-colorNeutralForeground3);cursor:default;display:inline-flex;font-size:var(--webchat-fontSizeBase100);height:16px;line-height:var(--webchat-lineHeightBase100);padding-inline:var(--webchat-spacingHorizontalXS)}.webchat-fluent .ee .webchat__stacked-layout .webchat__bubble .webchat__fileContent__badge{cursor:default;font-size:var(--webchat-fontSizeBase300);line-height:var(--webchat-lineHeightBase300)}.webchat-fluent .ee .webchat__stacked-layout .webchat__bubble .webchat__fileContent__badge .webchat__fileContent__fileName{color:var(--webchat-colorBrandForegroundLink);font-family:inherit}.webchat-fluent .ee .webchat__stacked-layout .webchat__bubble .webchat__fileContent__badge .webchat__fileContent__size{color:var(--webchat-colorNeutralForeground2);font-family:inherit}.webchat-fluent .ee .webchat__render-markdown a[href]:not(.webchat__render-markdown__pure-identifier){color:var(--webchat-colorBrandForegroundLink);text-decoration-color:transparent}.webchat-fluent .ee .webchat__render-markdown a[href]:not(.webchat__render-markdown__pure-identifier):target{color:var(--webchat-colorBrandForegroundLinkSelected)}.webchat-fluent .ee .webchat__render-markdown a[href]:not(.webchat__render-markdown__pure-identifier):hover{color:var(--webchat-colorBrandForegroundLinkHover);text-decoration:underline 1px currentColor}.webchat-fluent .ee .webchat__render-markdown a[href]:not(.webchat__render-markdown__pure-identifier):active{color:var(--webchat-colorBrandForegroundLinkPressed)}.webchat-fluent .ee .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 .ee .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 .ee .webchat__render-markdown .webchat__render-markdown__citation,.webchat-fluent .ee .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 .ee .webchat__render-markdown .webchat__render-markdown__citation,.webchat-fluent .ee .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 .ee .webchat__render-markdown .webchat__render-markdown__citation,.webchat-fluent .ee .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 .ee .webchat__render-markdown .webchat__render-markdown__citation,.webchat-fluent .ee .webchat__render-markdown .webchat__render-markdown__pure-identifier):before,:is(.webchat-fluent .ee .webchat__render-markdown .webchat__render-markdown__citation,.webchat-fluent .ee .webchat__render-markdown .webchat__render-markdown__pure-identifier):after{all:unset}:is(.webchat-fluent .ee .webchat__render-markdown .webchat__render-markdown__citation,.webchat-fluent .ee .webchat__render-markdown .webchat__render-markdown__pure-identifier):has(.webchat__render-markdown__external-link-icon){padding-inline:3px}:is(.webchat-fluent .ee .webchat__render-markdown .webchat__render-markdown__citation,.webchat-fluent .ee .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 .ee .webchat__link-definitions__header{border-radius:var(--webchat-borderRadiusMedium)}.webchat-fluent .ee .webchat__link-definitions__header .webchat__link-definitions__header-text{color:var(--webchat-colorNeutralForeground3)}.webchat-fluent .ee .webchat__link-definitions__header .webchat__link-definitions__header-chevron{fill:var(--webchat-colorNeutralForeground3);font-size:var(--webchat__font-size--small);width:1em}.webchat-fluent .ee .webchat__link-definitions__header:focus-visible{outline-offset:1px;outline:var(--webchat-strokeWidthThin) solid var(--webchat-colorStrokeFocus2)}.webchat-fluent .ee .webchat__link-definitions{--webchat__citation__external-link--mask: var(--webchat-externalLink-mask);--webchat__citation__link--max-width: var(--webchat-externalLink-maxWidth)}.webchat-fluent .ee .webchat__link-definitions .webchat__link-definitions__list{color:var(--webchat__color--subtle);display:flex;flex-flow:row wrap;gap:var(--webchat-spacingHorizontalS)}.webchat-fluent .ee .webchat__link-definitions .webchat__link-definitions__list-item{border-radius:var(--webchat-borderRadiusMedium);max-width:var(--webchat__citation__link--max-width)}.webchat-fluent .ee .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 .ee .webchat__link-definitions .webchat__link-definitions__list-item-body{font-family:inherit;gap:var(--webchat-spacingHorizontalSNudge);min-width:0;padding:0}.webchat-fluent .ee .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 .ee .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 .ee .webchat__link-definitions .webchat__link-definitions__list-item-main-text{gap:var(--webchat-spacingHorizontalXS)}.webchat-fluent .ee .webchat__link-definitions .webchat__link-definitions__list-item-text{color:currentColor;text-decoration:none;text-overflow:ellipsis}.webchat-fluent .ee .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 .ee .webchat__link-definitions :is(.webchat__link-definitions__list-item-badge,.webchat__link-definitions__open-in-new-window-icon){display:none}.webchat-fluent .ve{align-items:center;box-sizing:border-box;cursor:default;display:flex;flex-wrap:nowrap;gap:var(--webchat-spacingHorizontalS);max-width:var(--webchat__bubble--max-width)}.webchat-fluent .pe{aspect-ratio:1;background-color:var(--background-color);border-radius:var(--webchat-borderRadiusSmall);width:20px}.webchat-fluent ._e{font-size:var(--webchat-fontSizeBase300);font-weight:var(--webchat-fontWeightSemibold);line-height:var(--webchat-lineHeightBase300);overflow:hidden;text-overflow:ellipsis;text-wrap:nowrap}.webchat-fluent .fe{align-items:center;background-color:var(--webchat-colorNeutralBackground5);border-radius:var(--webchat-borderRadiusMedium);color:var(--webchat-colorNeutralForeground3);display:flex;flex:none;font-size:var(--webchat-fontSizeBase100);height:20px;line-height:var(--webchat-lineHeightBase100);padding-inline:var(--webchat-spacingHorizontalXS)}.webchat-fluent .ke{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 .xe{align-items:center;display:flex;flex-flow:column nowrap;font-family:var(--webchat-fontFamilyBase);font-size:var(--webchat-fontSizeBase300);font-weight:var(--webchat-fontWeightRegular);gap:var(--webchat-spacingVerticalXS);grid-area:body;line-height:var(--webchat-lineHeightBase300);text-align:center}.webchat-fluent .me{opacity:60%}.webchat-fluent .me .oe{filter:grayscale(1)}.webchat-fluent .oe{border-radius:var(--webchat-borderRadiusMedium);height:64px;margin-block-end:var(--webchat-spacingVerticalM)}.webchat-fluent .ye{color:var(--webchat-colorNeutralForeground1);font-family:inherit;font-size:var(--webchat-fontSizeHero700);font-weight:var(--webchat-fontWeightSemibold);line-height:var(--webchat-lineHeightHero700);margin:0;overflow-wrap:anywhere}.webchat-fluent .Be{font-size:var(--webchat-fontSizeBase300);line-height:var(--webchat-lineHeightBase300);overflow-wrap:anywhere}.webchat-fluent .Ne{grid-area:toolbar}.webchat-fluent .Se{-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:var(--webchat-spacingVerticalS);grid-template-areas:\"title\" \"subtitle\";grid-template-columns:1fr;grid-template-rows:auto 1fr;overflow:hidden;padding:16px 20px;text-align:left;transition:background-color var(--webchat-durationNormal) var(--webchat-curveDecelerateMid);-webkit-user-select:none;user-select:none}.webchat-fluent .Se:has(.te){grid-template-areas:\"image title\" \"image subtitle\";grid-template-columns:20px 1fr}.webchat-fluent .Se:empty{row-gap:14px}.webchat-fluent .Se:is([aria-disabled=true],:empty){cursor:default}.webchat-fluent .Se[aria-disabled=true]:not(:empty){background-color:var(--webchat-colorNeutralBackgroundDisabled)}.webchat-fluent .Se:hover:not([aria-disabled=true],:empty){background-color:var(--webchat-colorNeutralBackground1Hover)}.webchat-fluent .Se:active:not([aria-disabled=true],:empty){background-color:var(--webchat-colorNeutralBackground1Pressed)}.webchat-fluent .Se:focus-visible{outline:solid 2px var(--webchat-colorStrokeFocus2);outline-offset:-2px}.webchat-fluent .Se:empty:after,.webchat-fluent .Se:empty:before{animation:le 3s linear infinite;background-attachment:fixed;background-image:linear-gradient(-90deg,var(--webchat-colorNeutralStencil1) 0%,var(--webchat-colorNeutralStencil2) 50%,var(--webchat-colorNeutralStencil1) 100%);background-size:300% 100%;content:\"\";display:block}@media (prefers-reduced-motion: reduce){.webchat-fluent .Se:empty:after,.webchat-fluent .Se:empty:before{animation-delay:-1s;animation-play-state:paused}}.webchat-fluent .Se:dir(rtl):empty:after,.webchat-fluent .Se:dir(rtl):empty:before{animation-direction:reverse}.webchat-fluent .Se:empty:after{border-radius:16px;height:16px;width:100%}.webchat-fluent .Se:empty:before{border-radius:18px;height:18px;width:66%}@keyframes le{0%{background-position-x:0%}to{background-position-x:-300%}}.webchat-fluent .te{grid-area:image;height:20px;width:20px}.webchat-fluent .ze{font-family:var(--webchat-fontFamilyBase);font-size:14px;font-weight:var(--webchat-fontWeightRegular);grid-area:subtitle;line-height:20px;pointer-events:none}.webchat-fluent .He{font-family:var(--webchat-fontFamilyBase);font-size:14px;font-weight:var(--webchat-fontWeightSemibold);grid-area:title;line-height:20px}.webchat-fluent .Fe{container-name:ce;container-type:inline-size}.webchat-fluent .ie{display:grid;gap:var(--webchat-spacingHorizontalM);grid-template-columns:1fr 1fr 1fr;padding:0}@container ce (width <= 480px){.webchat-fluent .ie{grid-template-columns:1fr}}.webchat-fluent .Xe{background-color:var(--webchat-colorNeutralBackground4);border-radius:inherit;cursor:copy;display:grid;gap:8px;inset:0;place-content:center;place-items:center;position:absolute;transition:all var(--webchat-durationNormal) var(--webchat-curveDecelerateMid)}.webchat-fluent .Le{background-color:var(--webchat-colorBrandBackground2Hover)}.webchat-fluent .Me{height:36px;pointer-events:none;width:36px}.webchat-fluent .We{align-items:center;background:transparent;border-radius:var(--webchat-borderRadiusXLarge);border:var(--webchat-strokeWidthThin) solid var(--webchat-colorBrandStroke2);color:currentColor;cursor:pointer;display:flex;font-family:var(--webchat__font--primary);font-size:var(--webchat-fontSizeBase200);gap:var(--webchat-spacingHorizontalXS);padding:var(--webchat-spacingVerticalXS) var(--webchat-spacingHorizontalS);text-align:start;transition:all var(--webchat-durationNormal) var(--webchat-curveDecelerateMid)}@media (hover: hover){.webchat-fluent .We:not([aria-disabled=true]):hover{background-color:var(--webchat-colorBrandBackground2Hover);color:var(--webchat-colorBrandForeground2Hover)}}.webchat-fluent .We:not([aria-disabled=true]):active{background-color:var(--webchat-colorBrandBackground2Pressed);color:var(--webchat-colorBrandForeground2Pressed)}.webchat-fluent .We[aria-disabled=true]{color:var(--webchat-colorNeutralForegroundDisabled);cursor:not-allowed}.webchat-fluent .Ve{font-size:var(--webchat-fontSizeBase200);height:1em;width:1em}.webchat-fluent .Re{align-items:flex-end;align-self:flex-end;display:flex;flex-direction:column;gap:8px}.webchat-fluent .Re:not(:empty){padding-block-end:8px;padding-inline-start:4px}.webchat-fluent .Re.Te{flex-direction:row;flex-wrap:wrap;justify-content:flex-end}.webchat-fluent .Re.Pe{flex-direction:column}.webchat-fluent .ne{-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 .ne:hover{background-color:var(--webchat-colorGray30)}.webchat-fluent .be{color:var(--webchat-colorGray190);font-size:10px}.webchat-fluent .de{font-size:24px;margin-top:8px}.webchat-fluent .Ce .ne{height:32px;justify-content:center;margin:8px 4px;width:32px}.webchat-fluent .Ce .be{display:none}.webchat-fluent .Ce .de{font-size:20px;margin-top:0}.webchat-fluent .De{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 .Ge{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 .Ue{align-items:center;color:var(--webchat-colorNeutralForeground4);display:flex;font-size:12px;gap:6px;margin-block-end:6px}.webchat-fluent .je{color:var(--webchat-colorBrandForegroundLink);text-decoration-color:transparent}.webchat-fluent .je:target{color:var(--webchat-colorBrandForegroundLinkSelected)}.webchat-fluent .je:hover{color:var(--webchat-colorBrandForegroundLinkHover);text-decoration:underline 1px currentColor}.webchat-fluent .je:active{color:var(--webchat-colorBrandForegroundLinkPressed)}.webchat-fluent .je:focus-visible{outline:none;text-decoration:underline 1px double var(--webchat-colorStrokeFocus2)}.webchat-fluent .Ie{--webchat__sendbox-button-height: 32px;display:flex;gap:4px;height:var(--webchat__sendbox-button-height);margin-inline-start:auto}.webchat-fluent .Ae{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;height:var(--webchat__sendbox-button-height);justify-content:center;padding:3px}.webchat-fluent .Ae>svg{font-size:20px;pointer-events:none}.webchat-fluent .Ae.Ee{color:var(--webchat-colorNeutralForeground2BrandSelected)}@media (hover: hover){.webchat-fluent .Ae:not([aria-disabled=true]):hover{color:var(--webchat-colorNeutralForeground2BrandHover)}}.webchat-fluent .Ae:not([aria-disabled=true]):active{color:var(--webchat-colorNeutralForeground2BrandPressed)}.webchat-fluent .Ae[aria-disabled=true]{color:var(--webchat-colorNeutralForegroundDisabled);cursor:not-allowed}.webchat-fluent .qe{align-self:center;border-inline-end:1px solid var(--webchat-colorNeutralStroke2);height:28px}.webchat-fluent .qe:is(:first-child,:last-child,:only-child){display:none}.webchat-fluent .Je{display:grid}.webchat-fluent .Ke{font-size:0;height:0;opacity:0;width:1px}.webchat-fluent .Oe{border-radius:var(--webchat-borderRadiusLarge);border:1px solid var(--webchat-colorNeutralStroke1);cursor:default;padding:6px 8px;width:fit-content}.webchat-fluent .Qe{color:transparent;font-size:0;height:0;left:0;position:absolute;top:0;width:0}.webchat-fluent .he{--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 .he.Ye .se:not(.ge){visibility:hidden}.webchat-fluent .Ze{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 .Ze:has(.we){--webchat-sendbox-attachment-area-active: \"attachment\"}.webchat-fluent .Ze:focus-within{border-color:var(--webchat-colorNeutralStroke1Selected)}.webchat-fluent .Ze: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 .Ze: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 .Ze>.ea{grid-area:text-area}.webchat-fluent .Ze>.we{grid-area:attachment}.webchat-fluent .Ze>.aa{grid-area:controls}.webchat-fluent .Ze>.ra{grid-area:telephone-keypad}.webchat-fluent .oa{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 .oa:focus-within{font-size:16px}}.webchat-fluent .ta{align-items:center;display:flex;padding-inline-start:4px}.webchat-fluent .se{color:var(--webchat-colorNeutralForeground4);cursor:default;font-family:var(--webchat-fontFamilyNumeric);font-size:10px;line-height:14px;margin-inline-end:4px}.webchat-fluent .ge{color:var(--webchat-colorStatusDangerForeground1)}.webchat-fluent .la{display:grid;grid-template-areas:\"main\";max-height:200px;overflow:hidden}.webchat-fluent .ca{height:0;visibility:collapse}.webchat-fluent .ia{border:none;font:inherit;grid-area:main;outline:inherit;overflow-wrap:anywhere;resize:inherit;scrollbar-gutter:stable}.webchat-fluent .na{overflow:hidden;visibility:hidden;white-space:pre-wrap}.webchat-fluent .ba{background-color:inherit;color:currentColor;height:100%;padding:0}.webchat-fluent .da{scrollbar-color:unset;scrollbar-width:unset;-moz-scrollbar-color:var(--webchat-colorNeutralBackground5) var(--webchat-colorNeutralForeground2);-moz-scrollbar-width:thin}.webchat-fluent .da::-webkit-scrollbar{width:8px}.webchat-fluent .da::-webkit-scrollbar-track{background-color:var(--webchat-colorNeutralBackground5);border-radius:16px}.webchat-fluent .da::-webkit-scrollbar-thumb{background-color:var(--webchat-colorNeutralForeground2);border-radius:16px}.webchat-fluent .da::-webkit-scrollbar-corner{background-color:var(--webchat-colorNeutralBackground5)}.webchat-fluent._{display:contents;--webchat-colorNeutralForegroundDisabled: var(--colorNeutralForegroundDisabled, #bdbdbd);--webchat-colorNeutralForeground1: var(--colorNeutralForeground1, #242424);--webchat-colorNeutralForeground1Hover: var(--colorNeutralForeground1Hover, #242424);--webchat-colorNeutralForeground1Pressed: var(--colorNeutralForeground1Pressed, #242424);--webchat-colorNeutralForeground2: var(--colorNeutralForeground2, #424242);--webchat-colorNeutralForeground2BrandHover: var(--colorNeutralForeground2BrandHover, #02729c);--webchat-colorNeutralForeground2BrandPressed: var(--colorNeutralForeground2BrandPressed, #01678c);--webchat-colorNeutralForeground2BrandSelected: var(--colorNeutralForeground2BrandSelected, #067191);--webchat-colorNeutralForeground3: var(--colorNeutralForeground3, #616161);--webchat-colorNeutralForeground4: var(--colorNeutralForeground4, #707070);--webchat-colorNeutralForeground5: var(--colorNeutralForeground5, #7e7e7e);--webchat-colorNeutralBackgroundDisabled: var(--colorNeutralBackgroundDisabled, #f0f0f0);--webchat-colorNeutralBackground1: var(--colorNeutralBackground1, #ffffff);--webchat-colorNeutralBackground1Hover: var(--colorNeutralBackground1Hover, #f5f5f5);--webchat-colorNeutralBackground1Pressed: var(--colorNeutralBackground1Pressed, #e0e0e0);--webchat-colorNeutralBackground3: var(--colorNeutralBackground3, #f5f5f5);--webchat-colorNeutralBackground4: var(--colorNeutralBackground4, #f0f0f0);--webchat-colorNeutralBackground5: var(--colorNeutralBackground5, #ebebeb);--webchat-colorNeutralBackground6: var(--colorNeutralBackground6, #e6e6e6);--webchat-colorNeutralStencil1: var(--colorNeutralStencil1, #e6e6e6);--webchat-colorNeutralStencil2: var(--colorNeutralStencil2, #fafafa);--webchat-colorTransparentBackground: var(--colorTransparentBackground, rgba(0, 0, 0, .4));--webchat-colorNeutralStrokeDisabled: var(--colorNeutralStrokeDisabled, #e0e0e0);--webchat-colorNeutralStroke1: var(--colorNeutralStroke1, #d1d1d1);--webchat-colorNeutralStroke1Hover: var(--colorNeutralStroke1Hover, #c7c7c7);--webchat-colorNeutralStroke1Pressed: var(--colorNeutralStroke1Pressed, #b3b3b3);--webchat-colorNeutralStroke1Selected: var(--colorNeutralStroke1Selected, #bdbdbd);--webchat-colorNeutralStroke2: var(--colorNeutralStroke2, #e0e0e0);--webchat-colorStrokeFocus2: var(--colorStrokeFocus2, #000000);--webchat-colorBrandStroke2: var(--colorBrandStroke2, #9edcf7);--webchat-colorBrandStroke2Pressed: var(--colorBrandStroke2Pressed, #01384d);--webchat-colorTransparentStroke: var(--colorTransparentStroke, transparent);--webchat-colorBrandForeground1: var(--colorBrandForeground1, #01678c);--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-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-colorGrey8: #141414;--webchat-colorGrey98: #fafafa;--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-fontFamilyMonospace: var(--fontFamilyMonospace, Consolas, \"Courier New\", Courier, monospace);--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(--strokeWidthThick, 2px);--webchat-strokeWidthThicker: var(--strokeWidthThicker, 3px);--webchat-durationUltraFast: var(--durationUltraFast, 0);--webchat-durationNormal: var(--durationNormal, .2s);--webchat-durationUltraSlow: var(--durationUltraSlow, .5s);--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._{--webchat-durationUltraFast: .01ms;--webchat-durationNormal: .01ms}}.webchat-fluent._ .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__border-animation--color-1: #464feb;--webchat__border-animation--color-2: #47cffa;--webchat__border-animation--color-3: #b47cf8}.webchat-fluent._.ae .webchat__css-custom-properties{--webchat__padding--sendbox: var(--webchat-spacingVerticalNone) var(--webchat-spacingHorizontalXL) var(--webchat-spacingVerticalMNudge) var(--webchat-spacingHorizontalMNudge)}.webchat-fluent._ .webchat__surface{background-color:var(--webchat__color--surface)}.webchat-fluent._.ae .webchat__surface{box-sizing:border-box;padding-inline-start:var(--webchat-spacingHorizontalMNudge)}.webchat-fluent._ .webchat__basic-transcript .webchat__basic-transcript__scrollable,.webchat-fluent._ .webchat__view-code-dialog__code-body{scrollbar-color:unset;scrollbar-width:unset;-moz-scrollbar-color:var(--webchat-colorNeutralForeground5) transparent;-moz-scrollbar-width:thin}:is(.webchat-fluent._ .webchat__basic-transcript .webchat__basic-transcript__scrollable,.webchat-fluent._ .webchat__view-code-dialog__code-body)::-webkit-scrollbar{width:var(--webchat-spacingVerticalMNudge);visibility:hidden}:is(.webchat-fluent._ .webchat__basic-transcript .webchat__basic-transcript__scrollable,.webchat-fluent._ .webchat__view-code-dialog__code-body)::-webkit-scrollbar-corner{background:transparent}:is(.webchat-fluent._ .webchat__basic-transcript .webchat__basic-transcript__scrollable,.webchat-fluent._ .webchat__view-code-dialog__code-body):hover::-webkit-scrollbar{width:var(--webchat-spacingVerticalMNudge)}:is(.webchat-fluent._ .webchat__basic-transcript .webchat__basic-transcript__scrollable,.webchat-fluent._ .webchat__view-code-dialog__code-body):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}:is(.webchat-fluent._ .webchat__basic-transcript .webchat__basic-transcript__scrollable,.webchat-fluent._ .webchat__view-code-dialog__code-body):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._.ae .webchat__basic-transcript .webchat__basic-transcript__scrollable{scrollbar-gutter:stable}.webchat-fluent._ .webchat__basic-transcript .webchat__basic-transcript__terminator:focus-visible+.webchat__basic-transcript__focus-indicator{border-color:var(--webchat-colorStrokeFocus2)}.webchat-fluent._ .webchat__basic-transcript:not(:focus-visible) .webchat__basic-transcript__activity-indicator--focus{display:none}.webchat-fluent._ .webchat__basic-transcript:focus-visible:has(.webchat__basic-transcript__activity-indicator--focus) .webchat__basic-transcript__focus-indicator{display:none}.webchat-fluent._ .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._ .webchat__basic-transcript:focus-visible .webchat__basic-transcript__activity:has(.webchat__basic-transcript__activity-indicator--focus) .webchat__bubble:after,.webchat-fluent._ .webchat__basic-transcript:focus-visible .webchat__basic-transcript__activity:has(.webchat__basic-transcript__activity-indicator--focus) .pre-chat-message-activity:after{border-radius:var(--webchat__bubble--border-radius);content:\"\";inset:0;outline-offset:0;outline:var(--webchat-strokeWidthThick) solid var(--webchat-colorStrokeFocus2);pointer-events:none;position:absolute}.webchat-fluent._ .webchat__basic-transcript:focus-visible .webchat__basic-transcript__activity:has(.webchat__basic-transcript__activity-indicator--focus) .pre-chat-message-activity:after{border-radius:var(--webchat-borderRadiusMedium);outline-offset:-3px}.webchat-fluent._ .webchat__basic-transcript:focus-visible .webchat__basic-transcript__activity:has(.webchat__basic-transcript__activity-indicator--focus) .liner-message-activity__text{border-radius:20px;outline-offset:4px;outline:var(--webchat-strokeWidthThick) solid var(--webchat-colorStrokeFocus2)}.webchat-fluent._.ae .webchat__basic-transcript .webchat__basic-transcript__filler{flex-grow:0}.webchat-fluent._ .webchat__basic-transcript:has(.webchat__basic-transcript__activity:only-child):has(.pre-chat-message-activity) .webchat__basic-transcript__filler{flex-grow:.5}.webchat-fluent._ .webchat__modal-dialog{height:100%;display:grid;place-items:center}.webchat-fluent._ .webchat__modal-dialog::backdrop{background-color:var(--webchat-colorTransparentBackground)}.webchat-fluent._ .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._ .webchat__modal-dialog .webchat__modal-dialog__close-button{color:var(--webchat-colorNeutralForeground1);transition:background-color var(--webchat-durationNormal) var(--webchat-curveDecelerateMid)}.webchat-fluent._ .webchat__modal-dialog .webchat__modal-dialog__close-button:not(:active):hover{background-color:var(--webchat-colorNeutralBackground3)}.webchat-fluent._ .webchat__modal-dialog .webchat__modal-dialog__close-button:focus:active{background-color:var(--webchat-colorNeutralBackground4)}.webchat-fluent._ .webchat__modal-dialog .webchat__modal-dialog__close-button:not(:focus-visible){border:none}.webchat-fluent._ .webchat__modal-dialog .webchat__modal-dialog__close-button:focus{border-color:var(--webchat-colorStrokeFocus2)}.webchat-fluent._ .webchat__modal-dialog .webchat__modal-dialog__close-button-image{fill:currentColor}.webchat-fluent._ .webchat__modal-dialog.webchat__view-code-dialog .webchat__modal-dialog__close-button-layout{display:flex;padding:var(--webchat-spacingVerticalS) var(--webchat-spacingHorizontalS)}.webchat-fluent._ .webchat__modal-dialog.webchat__view-code-dialog .webchat__modal-dialog__close-button{align-items:center;aspect-ratio:1;display:flex;height:var(--webchat-lineHeightBase300);justify-content:center;padding:0;width:unset}.webchat-fluent._ .webchat__modal-dialog.webchat__view-code-dialog .webchat__view-code-dialog__copy-button{background:transparent;border:none;color:var(--webchat-colorNeutralForeground1);height:20px;margin-block-start:var(--webchat-spacingVerticalS);padding:0;position:absolute;right:32px;top:0;transition:background-color var(--webchat-durationNormal) var(--webchat-curveDecelerateMid);width:20px}.webchat-fluent._ .webchat__modal-dialog.webchat__view-code-dialog .webchat__view-code-dialog__copy-button .webchat__code-block-copy-button__icon{background-color:currentColor}.webchat-fluent._ .webchat__modal-dialog.webchat__view-code-dialog .webchat__view-code-dialog__copy-button:hover,.webchat-fluent._ .webchat__modal-dialog.webchat__view-code-dialog .webchat__view-code-dialog__copy-button:active{background:var(--webchat-colorNeutralBackground3)}.webchat-fluent._ .webchat__modal-dialog.webchat__view-code-dialog .webchat__view-code-dialog__copy-button:focus{outline-color:var(--webchat-colorStrokeFocus2)}.webchat-fluent._ .webchat__modal-dialog.webchat__view-code-dialog .webchat__modal-dialog__box{width:fit-content}.webchat-fluent._ .webchat__modal-dialog.webchat__view-code-dialog .webchat__modal-dialog__body{margin:0;padding:var(--webchat-spacingVerticalS) var(--webchat-spacingHorizontalM)}.webchat-fluent._ .webchat__modal-dialog.webchat__view-code-dialog .webchat__view-code-dialog__title{font-size:var(--webchat-fontSizeBase300);font-weight:var(--webchat-fontWeightSemibold);line-height:var(--webchat-lineHeightBase300)}.webchat-fluent._ .webchat__modal-dialog.webchat__view-code-dialog .webchat__view-code-dialog__body{display:contents}.webchat-fluent._ .webchat__modal-dialog.webchat__view-code-dialog .webchat__view-code-dialog__code-body{background:var(--webchat__code-block--background);font-family:var(--webchat-fontFamilyMonospace);font-size:var(--webchat-fontSizeBase300);line-height:var(--webchat-fontSizeBase300);margin-inline:calc(var(--webchat-spacingHorizontalM) * -1);padding-inline:var(--webchat-spacingHorizontalM)}.webchat-fluent._ .webchat__modal-dialog.webchat__view-code-dialog .webchat__view-code-dialog__code-body:has(.shiki:focus-visible):focus-within{outline:var(--webchat-strokeWidthThick) solid var(--webchat-colorStrokeFocus2);outline-offset:calc(var(--webchat-strokeWidthThick) * -1)}.webchat-fluent._ .webchat__modal-dialog.webchat__view-code-dialog .webchat__view-code-dialog__code-body:has(.shiki:focus-visible):focus-within .shiki{outline:none}.webchat-fluent._ .webchat__modal-dialog.webchat__view-code-dialog .webchat__view-code-dialog__code-body:has(.shiki.github-light-default){--webchat__code-block--background: var(--codeBlockBackground, var(--webchat-colorGrey98))}.webchat-fluent._ .webchat__modal-dialog.webchat__view-code-dialog .webchat__view-code-dialog__code-body:has(.shiki.github-dark-default){--webchat__code-block--background: var(--codeBlockBackground, var(--webchat-colorGrey8))}.webchat-fluent._ .webchat__modal-dialog.webchat__view-code-dialog .webchat__view-code-dialog__footer{color:var(--webchat-colorNeutralForeground4);font-size:var(--webchat-fontSizeBase100);line-height:var(--webchat-lineHeightBase100)}.webchat-fluent._ .webchat__modal-dialog.webchat__view-code-dialog .webchat__view-code-dialog__link{color:var(--webchat-colorBrandForegroundLink);text-decoration-color:transparent}.webchat-fluent._ .webchat__modal-dialog.webchat__view-code-dialog .webchat__view-code-dialog__link:target{color:var(--webchat-colorBrandForegroundLinkSelected)}.webchat-fluent._ .webchat__modal-dialog.webchat__view-code-dialog .webchat__view-code-dialog__link:hover{color:var(--webchat-colorBrandForegroundLinkHover);text-decoration:underline 1px currentColor}.webchat-fluent._ .webchat__modal-dialog.webchat__view-code-dialog .webchat__view-code-dialog__link:active{color:var(--webchat-colorBrandForegroundLinkPressed)}.webchat-fluent._ .webchat__modal-dialog.webchat__view-code-dialog .webchat__view-code-dialog__link:focus-visible{outline:none;text-decoration:underline 1px double var(--webchat-colorStrokeFocus2)}.webchat-fluent._ .webchat__activity-button{background:var(--webchat-colorNeutralBackground1);border-radius:var(--webchat-borderRadiusMedium);border:var(--webchat-strokeWidthThin) solid var(--webchat-colorNeutralStroke1);color:var(--webchat-colorNeutralForeground1);gap:var(--webchat-spacingHorizontalXS);padding:5px var(--webchat-spacingHorizontalM)}.webchat-fluent._ .webchat__activity-button:hover{background:var(--webchat-colorNeutralBackground1Hover);border:var(--webchat-strokeWidthThin) solid var(--webchat-colorNeutralStroke1Hover);color:var(--webchat-colorNeutralForeground1Hover)}.webchat-fluent._ .webchat__activity-button:active{background:var(--webchat-colorNeutralBackground1Pressed);border:var(--webchat-strokeWidthThin) solid var(--webchat-colorNeutralStroke1Pressed);color:var(--webchat-colorNeutralForeground1Pressed)}.webchat-fluent._ .webchat__activity-button:focus-visible{background:var(--webchat-colorNeutralBackground1);outline:var(--webchat-strokeWidthThick) solid var(--webchat-colorStrokeFocus2);outline-offset:calc(var(--webchat-strokeWidthThick) * -1)}.webchat-fluent._ .webchat__activity-button[aria-disabled=true]{background:var(--webchat-colorNeutralBackgroundDisabled);border:var(--webchat-strokeWidthThin) solid var(--webchat-colorNeutralStrokeDisabled);color:var(--webchat-colorNeutralForegroundDisabled)}.webchat-fluent._ .webchat__activity-button .webchat__activity-button__icon{height:20px;width:20px}.webchat-fluent._ .webchat__activity-copy-button .webchat__activity-copy-button__copied-text{background-color:var(--webchat-colorNeutralBackground1)}.webchat-fluent._ .webchat__activity-copy-button.webchat__activity-copy-button--copied .webchat__activity-copy-button__copied-text{animation-duration:var(--webchat-durationUltraSlow)}.webchat-fluent._ .webchat__monochrome-image-masker{background-color:var(--webchat-colorNeutralForeground4)}.webchat-fluent .ha{align-items:center;box-sizing:border-box;color:var(--webchat-colorNeutralForeground3);display:flex;flex-direction:row;font-family:var(--webchat__font--primary);font-size:var(--webchat-fontSizeBase200);font-weight:var(--webchat-fontWeightRegular);gap:var(--webchat-spacingHorizontalM);line-height:var(--webchat-lineHeightBase200);padding:var(--webchat-spacingVerticalSNudge) var(--webchat-spacingHorizontalM);text-align:center;width:100%}.webchat-fluent .ha:before,.webchat-fluent .ha:after{border-top:var(--webchat-strokeWidthThin) solid var(--webchat-colorNeutralStroke2);content:\"\";display:flex;flex:auto;min-width:8px}.webchat-fluent .sa{text-align:center}\n/*! For license information please see botframework-webchat-fluent-theme.css.LEGAL.txt */\n",ie=Xe(ua);import{useMemo as ha}from"react";function pa(e){return ha(()=>Object.freeze(Object.fromEntries(Object.entries(e).map(([t,a])=>[t,`${t} ${a}`]))),[e])}var c=pa;import{useMemo as ma}from"react";function H(e){let t=c(e),a=V();return ma(()=>a.map(o=>t[`variant-${o}`]).filter(o=>o).join(" "),[t,a])}var le={"activity-decorator":"ee","variant-fluent":"ue","variant-copilot":"re"};import $,{memo as Na,useMemo as Sa}from"react";import{hooks as Ba}from"botframework-webchat-component";import{useMemo as fa}from"react";import{hooks as wa}from"botframework-webchat-component";var{useStyleOptions:va}=wa;function ce(e){let[t]=va();return fa(()=>Object.freeze([{...t,...e?.channelData?.webChat?.styleOptions}]),[e?.channelData?.webChat?.styleOptions,t])}import{getOrgSchemaMessage as _a}from"botframework-webchat-core";function se(e){return!!(e&&_a(e?.entities||[])?.keywords?.includes("AIGeneratedContent"))}import{useMemo as ya}from"react";import{getOrgSchemaMessage as xa}from"botframework-webchat-core";function L(e){return ya(()=>{let t=xa(e?.entities||[]);return typeof t?.author=="string"?{"@type":"Person",description:void 0,image:void 0,name:t?.author}:t?.author},[e])}var Ue={"copilot-message-header":"ve","copilot-message-header__avatar":"pe","copilot-message-header__title":"_e","copilot-message-header__ai-generated-content":"fe"};var{useLocalizer:Ta}=Ba;function Ca({activity:e}){let[{botAvatarImage:t,botAvatarBackgroundColor:a}]=ce(e),o=c(Ue),r=Ta(),n=se(e),l=Sa(()=>({"--background-color":a}),[a]),i=L(e),u=i?.image||t,p=i?.name||e?.from?.name;return $.createElement("div",{className:o["copilot-message-header"]},u&&$.createElement("img",{alt:r("AVATAR_ALT",p),className:o["copilot-message-header__avatar"],src:u,style:l}),$.createElement("span",{className:o["copilot-message-header__title"],title:p},p),n&&$.createElement("span",{className:o["copilot-message-header__ai-generated-content"]},r("ACTIVITY_CONTENT_CAUTION")))}var je=Na(Ca);function Ge({activity:e,children:t}){let a=c(le),o=V(),r=H(le),n=o.includes("copilot")&&e?.from?.role==="bot"&&!!t;return Ze.createElement("div",{className:Ha(a["activity-decorator"],r)},n&&Ze.createElement(je,{activity:e}),t)}Ge.displayName="ActivityDecorator";var de=Ma(Ge);import{getOrgSchemaMessage as Aa}from"botframework-webchat-core";function E(e){return!!(e&&Aa(e?.entities||[])?.keywords?.includes("PreChatMessage"))}import{hooks as Ja}from"botframework-webchat-component";import Qa from"classnames";import P,{memo as eo,useMemo as to}from"react";var $e={"pre-chat-message-activity":"ke","pre-chat-message-activity__body":"xe","pre-chat-message-activity__body--blueprint":"me","pre-chat-message-activity__body-avatar":"oe","pre-chat-message-activity__body-title":"ye","pre-chat-message-activity__body-subtitle":"Be","pre-chat-message-activity__toolbar":"Ne"};import{hooks as Za}from"botframework-webchat-api";import Ga from"classnames";import A,{Fragment as $a,memo as Ya}from"react";import{Components as Ea,hooks as Pa}from"botframework-webchat-component";import qe from"classnames";import O,{memo as Da,useCallback as Ia,useMemo as Ra}from"react";import{useRefFrom as Wa}from"use-ref-from";var za={preChatMessageActivityStarterPromptsCardAction:"pre-chat message activity starter prompts card action",sendBoxContainer:"send box container",sendBoxDropZone:"send box drop zone",sendBoxSendButton:"send box send button",sendBoxSuggestedAction:"send box suggested action",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"},h=za;var Ye={"pre-chat-message-activity__card-action-box":"Se","pre-chat-message-activity__card-action-image":"te",blueprintAnimation:"le","pre-chat-message-activity__card-action-subtitle":"ze","pre-chat-message-activity__card-action-title":"He"};var{useFocus:Va,useRenderMarkdownAsHTML:Oa,useSendBoxValue:Ka,useUIState:Xa}=Pa,{MonochromeImageMasker:Ua}=Ea,Je=({className:e,messageBackAction:t})=>{let[a,o]=Ka(),[r]=Xa(),n=c(Ye),l=Va(),i=Wa(t?.displayText||t?.text||""),u=Oa("message activity"),p=Ra(()=>u?{__html:u(t?.text||"")}:void 0,[t?.text,u]),s=r==="disabled",d=t&&"title"in t&&t.title,b=r==="blueprint"||!d,f=Ia(()=>{o(i.current),l("sendBox")},[l,i,o]);return b?O.createElement("div",{className:qe(e,n["pre-chat-message-activity__card-action-box"]),"data-testid":h.preChatMessageActivityStarterPromptsCardAction}):O.createElement("button",{"aria-disabled":s?!0:void 0,className:qe(e,n["pre-chat-message-activity__card-action-box"]),"data-testid":h.preChatMessageActivityStarterPromptsCardAction,onClick:s?void 0:f,tabIndex:s?-1:void 0,type:"button"},O.createElement("div",{className:n["pre-chat-message-activity__card-action-title"]},d),"image"in t&&t.image&&O.createElement(Ua,{className:n["pre-chat-message-activity__card-action-image"],src:t.image}),O.createElement("div",{className:n["pre-chat-message-activity__card-action-subtitle"],dangerouslySetInnerHTML:p}))};Je.displayName="StarterPromptsCardAction";var K=Da(Je);var Qe={"pre-chat-message-activity__card-action-toolbar":"Fe","webchat-container":"ce","pre-chat-message-activity__card-action-toolbar-grid":"ie"};var{useUIState:qa}=Za,et=({cardActions:e,className:t})=>{let a=c(Qe),[o]=qa();return A.createElement("div",{className:Ga(t,a["pre-chat-message-activity__card-action-toolbar"])},A.createElement("div",{className:a["pre-chat-message-activity__card-action-toolbar-grid"]},o==="blueprint"?A.createElement($a,null,A.createElement(K,null),A.createElement(K,null),A.createElement(K,null)):e.filter(r=>r.type==="messageBack").map((r,n)=>A.createElement(K,{key:n,messageBackAction:r}))))};et.displayName="StarterPromptsToolbar";var tt=Ya(et);var{useLocalizer:ao,useRenderMarkdownAsHTML:oo,useUIState:ro}=Ja,at=({activity:e})=>{let[t]=ro(),a=c($e),o=oo(),r=ao(),n=L(e),l=to(()=>o?{__html:o(n?.description||"")}:{__html:""},[n?.description,o]);return P.createElement("div",{className:a["pre-chat-message-activity"]},n&&P.createElement("div",{className:Qa(a["pre-chat-message-activity__body"],t==="blueprint"&&a["pre-chat-message-activity__body--blueprint"])},n.image&&P.createElement("img",{alt:r("AVATAR_ALT",n.name),className:a["pre-chat-message-activity__body-avatar"],src:n.image}),n.name&&P.createElement("h2",{className:a["pre-chat-message-activity__body-title"]},n.name),n.description&&P.createElement("div",{className:a["pre-chat-message-activity__body-subtitle"],dangerouslySetInnerHTML:l})),P.createElement(tt,{cardActions:e.suggestedActions?.actions||[],className:a["pre-chat-message-activity__toolbar"]}))};at.displayName="PreChatMessageActivity";var be=eo(at);import{hooks as Bn}from"botframework-webchat-component";import U from"classnames";import w,{memo as jt,useCallback as I,useRef as Tn,useState as Cn}from"react";import{useRefFrom as Ut}from"use-ref-from";import ot,{memo as no}from"react";function io(e){return ot.createElement("svg",{"aria-hidden":"true",className:e.className,height:"1em",viewBox:"0 0 20 20",width:"1em",xmlns:"http://www.w3.org/2000/svg"},ot.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 ue=no(io);import rt,{memo as lo}from"react";function co(e){return rt.createElement("svg",{"aria-hidden":"true",className:e.className,height:"1em",viewBox:"0 0 20 20",width:"1em",xmlns:"http://www.w3.org/2000/svg"},rt.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 he=lo(co);import nt,{memo as so}from"react";function bo(e){return nt.createElement("svg",{"aria-hidden":"true",className:e.className,height:"1em",viewBox:"0 0 16 16",width:"1em",xmlns:"http://www.w3.org/2000/svg"},nt.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 pe=so(bo);import it,{memo as uo}from"react";function ho(e){return it.createElement("svg",{"aria-hidden":"true",className:e.className,height:"1em",viewBox:"0 0 20 20",width:"1em",xmlns:"http://www.w3.org/2000/svg"},it.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 me=uo(ho);import lt,{memo as po}from"react";function mo(e){return lt.createElement("svg",{"aria-hidden":"true",className:e.className,height:"1em",viewBox:"0 0 20 20",width:"1em",xmlns:"http://www.w3.org/2000/svg"},lt.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 ge=po(mo);import{hooks as fo}from"botframework-webchat-component";import wo from"classnames";import st,{memo as vo,useCallback as _o,useEffect as yo,useRef as xo,useState as ko}from"react";import{useRefFrom as No}from"use-ref-from";var ct={"sendbox__attachment-drop-zone":"Xe","sendbox__attachment-drop-zone--droppable":"Le","sendbox__attachment-drop-zone-icon":"Me"};var{useLocalizer:So}=fo,Bo=e=>{e.preventDefault()},dt=e=>!!e.dataTransfer?.types?.some(t=>t.toLowerCase()==="files");function To(e,t){let a=e.parentNode;for(;a;){if(a===t)return!0;a=a.parentNode}return!1}var bt=e=>{let[t,a]=ko(!1),o=c(ct),r=xo(null),n=So(),l=No(e.onFilesAdded);yo(()=>{let u=0,p=b=>{u++,dt(b)&&a(r.current&&(b.target===r.current||b.target instanceof HTMLElement&&To(b.target,r.current))?"droppable":"visible")},s=()=>--u<=0&&a(!1),d=()=>{u=0,a(!1)};return document.addEventListener("dragenter",p,!1),document.addEventListener("dragleave",s,!1),document.addEventListener("dragend",d,!1),()=>{document.removeEventListener("dragenter",p),document.removeEventListener("dragleave",s),document.removeEventListener("dragend",d)}},[a]);let i=_o(u=>{u.preventDefault(),a(!1),dt(u.nativeEvent)&&l.current([...u.dataTransfer.files])},[l,a]);return t?st.createElement("div",{className:wo(o["sendbox__attachment-drop-zone"],{[o["sendbox__attachment-drop-zone--droppable"]]:t==="droppable"}),"data-testid":h.sendBoxDropZone,onDragOver:Bo,onDrop:i,ref:r},st.createElement(ue,{className:o["sendbox__attachment-drop-zone-icon"]}),n("TEXT_INPUT_DROP_ZONE")):null};bt.displayName="DropZone";var fe=vo(bt);import{hooks as er}from"botframework-webchat-component";import tr from"classnames";import Y,{memo as ar,useCallback as or}from"react";function we(e){let{title:t}=e,{type:a,value:o}=e;return a==="messageBack"?t||e.displayText:t||(typeof o=="string"?o:JSON.stringify(o))}import Co,{createContext as Ho,memo as Mo,useCallback as D,useContext as Ao,useEffect as Fo,useMemo as zo,useRef as ve}from"react";var ut=Ho({itemEffector:()=>{throw new Error("botframework-webchat-fluent-theme rovingFocus: no provider for RovingFocusContext.")}});function Lo(e){let t=ve(0),a=ve([]),o=D(({current:s},d)=>s&&(s.tabIndex=t.current===d?0:-1),[t]),r=D(s=>{let d;typeof s=="number"?d=s:d=s(t.current),d&&!a.current.at(d)?.current&&(d=0),t.current!==d&&(t.current=d,a.current.forEach((b,f)=>o(b,f)),a.current.at(d)?.current?.focus())},[o,a,t]),n=D(s=>{let{target:d}=s,b=a.current.findIndex(({current:f})=>f===d);b!==-1&&r(b)},[a,r]),l=D(s=>d=>{let b=!e.direction,f=/up|down/iu.test(s)&&e.direction==="vertical",x=/left|right/iu.test(s)&&e.direction==="horizontal",m=/right|down/iu.test(s),k=b||f||x?m?1:-1:0,N=a.current.map((T,C)=>C),S=N.indexOf(d)+k;return N.at(S)??0},[e.direction]),i=D(s=>{let{key:d}=s;switch(d){case"Up":case"ArrowUp":case"Left":case"ArrowLeft":case"Down":case"ArrowDown":case"Right":case"ArrowRight":r(l(d));break;case"Home":r(0);break;case"End":r(-1);break;case"Escape":e.onEscapeKey?.();break;default:return}s.preventDefault(),s.stopPropagation()},[r,l,e]),u=D((s,d)=>{let{current:b}=s;return a.current[Number(d)]=s,b.addEventListener("focus",n),b.addEventListener("keydown",i),o(s,d),()=>{b.removeEventListener("focus",n),b.removeEventListener("keydown",i),delete a.current[Number(d)]}},[n,i,o,a]),p=zo(()=>({itemEffector:u}),[u]);return Co.createElement(ut.Provider,{value:p},e.children)}function ht(e){let t=ve(null),{itemEffector:a}=Ao(ut);return Fo(()=>a(t,e)),t}var pt=Mo(Lo);import{hooks as Oo}from"botframework-webchat-component";import Ko from"classnames";import _e,{memo as Xo,useCallback as Uo}from"react";import Eo,{forwardRef as Po,memo as Do,useRef as Io}from"react";var Ro=e=>e.preventDefault(),Wo=Po(({"aria-hidden":e,children:t,className:a,"data-testid":o,disabled:r,onClick:n,tabIndex:l},i)=>{let u=Io(null);return Eo.createElement("button",{"aria-disabled":r?"true":void 0,"aria-hidden":e,className:a,"data-testid":o,onClick:r?Ro:n,ref:i||u,tabIndex:r?-1:l,type:"button"},t)}),mt=Do(Wo);var gt={"suggested-action":"We","suggested-action__image":"Ve"};var{useFocus:jo,usePerformCardAction:Zo,useScrollToEnd:Go,useStyleSet:$o,useSuggestedActions:Yo,useUIState:qo}=Oo;function Jo({buttonText:e,className:t,displayText:a,image:o,imageAlt:r,itemIndex:n,text:l,type:i,value:u}){let[p,s]=Yo(),[{suggestedAction:d}]=$o(),[b]=qo(),f=jo(),x=ht(n),m=Zo(),k=c(gt),N=Go(),S=Uo(({target:T})=>{(async function(){await f("sendBoxWithoutKeyboard"),m({displayText:a,text:l,type:i,value:u},{target:T}),i==="openUrl"&&s([]),N()})()},[a,f,m,N,s,l,i,u]);return _e.createElement(mt,{className:Ko(k["suggested-action"],d+"",(t||"")+""),"data-testid":h.sendBoxSuggestedAction,disabled:b==="disabled",onClick:S,ref:x,type:"button"},o&&_e.createElement("img",{alt:r,className:k["suggested-action__image"],src:o}),_e.createElement("span",null,e))}var ft=Xo(Jo);var ye={"suggested-actions":"Re","suggested-actions--flow":"Te","suggested-actions--stacked":"Pe"};var{useFocus:rr,useLocalizer:nr,useStyleOptions:ir,useStyleSet:lr,useSuggestedActions:cr,useUIState:sr}=er;function dr(e){let[{suggestedActionLayout:t}]=ir(),[{suggestedActions:a}]=lr(),[o]=sr(),r=c(ye);return Y.createElement("div",{"aria-label":e["aria-label"],"aria-orientation":"vertical",className:tr(r["suggested-actions"],a+"",{[r["suggested-actions--flow"]]:t==="flow",[r["suggested-actions--stacked"]]:t!=="flow"},e.className),role:"toolbar"},o!=="blueprint"&&e.children)}function br(){let e=c(ye),t=nr(),[a,o,{activity:r}]=cr(),n=rr(),l=or(()=>{n("sendBox")},[n]),i=E(r)?[]:a.map((u,p)=>{let{displayText:s,image:d,imageAltText:b,text:f,type:x,value:m}=u;return a?.length?Y.createElement(ft,{buttonText:we(u),displayText:s,image:d,imageAlt:d&&(b||f),itemIndex:p,key:p,text:f,type:x,value:m}):null});return Y.createElement(pt,{onEscapeKey:l},Y.createElement(dr,{"aria-label":t("SUGGESTED_ACTIONS_LABEL_ALT"),className:e["suggested-actions"]},i))}var xe=ar(br);import hr,{memo as pr,useMemo as mr,useState as gr}from"react";import{createContext as ur}from"react";var wt=ur(new Proxy({},{get(){throw new Error("botframework-webchat: This hook can only used under its corresponding <Provider>.")}}));wt.displayName="TelephoneKeypad.Context";var q=wt;var fr=pr(({children:e})=>{let[t,a]=gr(!1),o=mr(()=>Object.freeze({setShown:a,shown:t}),[a,t]);return hr.createElement(q.Provider,{value:o},e)}),ke=fr;import Ar,{memo as Fr}from"react";import{Components as Br}from"botframework-webchat-component";import Tr from"classnames";import g,{memo as xt,useCallback as y,useEffect as Cr,useRef as Hr}from"react";import{useRefFrom as yt}from"use-ref-from";import Ne,{forwardRef as vr,memo as _r,useCallback as yr}from"react";import{useRefFrom as xr}from"use-ref-from";var vt={"telephone-keypad__button":"ne","telephone-keypad__button__ruby":"be","telephone-keypad__button__text":"de","telephone-keypad--horizontal":"Ce"};var _t=_r(vr(({button:e,"data-testid":t,onClick:a,ruby:o},r)=>{let n=c(vt),l=xr(a),i=yr(()=>l.current?.(),[l]);return Ne.createElement("button",{className:n["telephone-keypad__button"],"data-testid":t,onClick:i,ref:r,type:"button"},Ne.createElement("span",{className:n["telephone-keypad__button__text"]},e==="*"?"\u2217":e),!!o&&Ne.createElement("ruby",{className:n["telephone-keypad__button__ruby"]},o))}));_t.displayName="TelephoneKeypad.Button";var _=_t;import{useContext as kr,useMemo as Nr}from"react";function B(){let{setShown:e,shown:t}=kr(q);return Nr(()=>Object.freeze([t,e]),[t,e])}var Se={"telephone-keypad":"De","telephone-keypad__box":"Ge","telephone-keypad__info-message":"Ue","telephone-keypad__info-message-link":"je"};var{LocalizedString:Mr}=Br,kt=xt(({children:e,isHorizontal:t})=>{let a=c(Se);return t?null:g.createElement("div",{className:a["telephone-keypad__box"]},e)});kt.displayName="TelephoneKeypad:Orientation";var Nt=xt(({autoFocus:e,className:t,onButtonClick:a,isHorizontal:o})=>{let r=yt(e),n=c(Se),l=Hr(null),i=yt(a),[,u]=B(),p=y(()=>i.current?.("1"),[i]),s=y(()=>i.current?.("2"),[i]),d=y(()=>i.current?.("3"),[i]),b=y(()=>i.current?.("4"),[i]),f=y(()=>i.current?.("5"),[i]),x=y(()=>i.current?.("6"),[i]),m=y(()=>i.current?.("7"),[i]),k=y(()=>i.current?.("8"),[i]),N=y(()=>i.current?.("9"),[i]),S=y(()=>i.current?.("0"),[i]),T=y(()=>i.current?.("*"),[i]),C=y(()=>i.current?.("#"),[i]),z=y(j=>{j.key==="Escape"&&u(!1)},[u]);return Cr(()=>{r.current&&l.current?.focus()},[r,l]),g.createElement("div",{className:Tr(n["telephone-keypad"],t),onKeyDown:z},g.createElement(kt,{isHorizontal:o},g.createElement(_,{button:"1","data-testid":h.sendBoxTelephoneKeypadButton1,onClick:p,ref:l}),g.createElement(_,{button:"2","data-testid":h.sendBoxTelephoneKeypadButton2,onClick:s,ruby:"ABC"}),g.createElement(_,{button:"3","data-testid":h.sendBoxTelephoneKeypadButton3,onClick:d,ruby:"DEF"}),g.createElement(_,{button:"4","data-testid":h.sendBoxTelephoneKeypadButton4,onClick:b,ruby:"GHI"}),g.createElement(_,{button:"5","data-testid":h.sendBoxTelephoneKeypadButton5,onClick:f,ruby:"JKL"}),g.createElement(_,{button:"6","data-testid":h.sendBoxTelephoneKeypadButton6,onClick:x,ruby:"MNO"}),g.createElement(_,{button:"7","data-testid":h.sendBoxTelephoneKeypadButton7,onClick:m,ruby:"PQRS"}),g.createElement(_,{button:"8","data-testid":h.sendBoxTelephoneKeypadButton8,onClick:k,ruby:"TUV"}),g.createElement(_,{button:"9","data-testid":h.sendBoxTelephoneKeypadButton9,onClick:N,ruby:"WXYZ"}),g.createElement(_,{button:"*","data-testid":h.sendBoxTelephoneKeypadButtonStar,onClick:T}),g.createElement(_,{button:"0","data-testid":h.sendBoxTelephoneKeypadButton0,onClick:S,ruby:"+"}),g.createElement(_,{button:"#","data-testid":h.sendBoxTelephoneKeypadButtonPound,onClick:C})),g.createElement("div",{className:n["telephone-keypad__info-message"]},g.createElement(pe,null),g.createElement(Mr,{linkClassName:n["telephone-keypad__info-message-link"],stringIds:"TELEPHONE_KEYPAD_INPUT_MESSAGE"})))});Nt.displayName="TelephoneKeypad";var St=Nt;var Bt=Fr(e=>B()[0]?Ar.createElement(St,{...e}):null);Bt.displayName="TelephoneKeypad.Surrogate";var Be=Bt;import{hooks as Dr}from"botframework-webchat-component";import Q,{useCallback as Ht,useRef as Ir,memo as Rr}from"react";import{useRefFrom as Wr}from"use-ref-from";import{hooks as Lr}from"botframework-webchat-api";import Te from"classnames";import Ce,{memo as He}from"react";var J={sendbox__toolbar:"Ie","sendbox__toolbar-button":"Ae","sendbox__toolbar-button--selected":"Ee","sendbox__toolbar-separator":"qe"};var{useUIState:Tt}=Lr,Er=e=>e.preventDefault(),F=He(e=>{let t=c(J),[a]=Tt(),o=e.disabled||a==="disabled";return Ce.createElement("button",{"aria-disabled":o?"true":void 0,"aria-label":e["aria-label"],className:Te(t["sendbox__toolbar-button"],e.className,{[t["sendbox__toolbar-button--selected"]]:e.selected}),"data-testid":e["data-testid"],onClick:o?Er:e.onClick,tabIndex:o?-1:void 0,type:e.type==="submit"?"submit":"button"},e.children)});F.displayName="ToolbarButton";var Me=He(e=>{let[t]=Tt(),a=c(J);return Ce.createElement("div",{className:Te(a.sendbox__toolbar,e.className)},t!=="blueprint"&&e.children)});Me.displayName="Toolbar";var Ae=He(e=>{let t=c(J);return Ce.createElement("div",{"aria-orientation":"vertical",className:Te(t["sendbox__toolbar-separator"],e.className),role:"separator"})});Ae.displayName="ToolbarSeparator";var Ct={"sendbox__add-attachment":"Je","sendbox__add-attachment-input":"Ke"};var{useLocalizer:Vr,useStyleOptions:Or}=Dr;function Kr(e){let t=Ir(null),a=c(Ct),o=Vr(),[{uploadAccept:r,uploadMultiple:n}]=Or(),l=Wr(e.onFilesAdded),i=Ht(()=>t.current?.click(),[t]),u=Ht(({target:{files:p}})=>{p&&(l.current?.([...p]),t.current&&(t.current.value=""))},[t,l]);return Q.createElement("div",{className:a["sendbox__add-attachment"]},Q.createElement("input",{accept:r,"aria-disabled":e.disabled,"aria-hidden":"true",className:a["sendbox__add-attachment-input"],multiple:n,onInput:e.disabled?void 0:u,readOnly:e.disabled,ref:t,role:"button",tabIndex:-1,type:"file"}),Q.createElement(F,{"aria-label":o("TEXT_INPUT_UPLOAD_BUTTON_ALT"),"data-testid":h.sendBoxUploadButton,onClick:i},Q.createElement(he,null)))}var Mt=Rr(Kr);import{hooks as Ur}from"botframework-webchat-component";import jr from"classnames";import Zr,{memo as Gr}from"react";var At={sendbox__attachment:"Oe"};var{useLocalizer:$r,useUIState:Yr}=Ur,qr={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 Jr({attachments:e,className:t}){let[a]=Yr(),o=c(At),r=$r({plural:!0});return a!=="blueprint"&&e.length?Zr.createElement("div",{className:jr(o.sendbox__attachment,t)},r(qr,e.length)):null}var Ft=Gr(Jr);import{useLiveRegion as en}from"botframework-webchat-component/internal";import Lt,{memo as tn}from"react";var zt={"sendbox__error-message":"Qe"};function Et({error:e,id:t}){let a=c(zt);return en(()=>e&&Lt.createElement("div",{className:"sendbox__error-message__status"},e),[e]),Lt.createElement("span",{className:a["sendbox__error-message"],id:t},e)}Et.displayName="ErrorMessage";var Pt=tn(Et);import{hooks as an}from"botframework-webchat-component";import{useCallback as on,useMemo as Dt,useState as rn}from"react";import{useRefFrom as nn}from"use-ref-from";var{useConnectivityStatus:ln,useLocalizer:cn}=an,sn=({attachments:e,message:t})=>{let[a]=ln(),[o,r]=rn(),n=cn(),l=nn(a!=="connected"&&a!=="reconnected"?"offline":!t&&!e.length?"empty":void 0),i=Dt(()=>Object.freeze(new Map().set("empty",n("SEND_BOX_IS_EMPTY_TOOLTIP_ALT")).set("offline",n("CONNECTIVITY_STATUS_ALT_FATAL"))),[n]),u=!!t?.trim();o==="empty"&&u&&r(void 0);let p=on(()=>(r(l.current),l.current),[l]);return Dt(()=>Object.freeze([o&&i.get(o),p]),[o,i,p])},It=sn;import{useCallback as dn}from"react";import{hooks as bn}from"botframework-webchat-component";var{useScrollDown:un,useScrollUp:hn}=bn;function Fe(){let e=un(),t=hn();return dn(a=>{if(a.target instanceof HTMLTextAreaElement&&a.target.value)return;let{ctrlKey:o,metaKey:r,shiftKey:n}=a;if(o||r||n)return;let l=!0;switch(a.key){case"End":e({displacement:1/0});break;case"Home":t({displacement:1/0});break;case"PageDown":e();break;case"PageUp":t();break;default:l=!1;break}l&&(a.preventDefault(),a.stopPropagation())},[e,t])}import{useMemo as pn}from"react";function ze(e){let t=pn(()=>Math.random().toString(36).substr(2,5),[]);return e=e?`${e}--`:"",`${e}${t}`}var Le={sendbox:"he","variant-copilot":"Ye","sendbox__text-counter":"se","sendbox__text-counter--error":"ge",sendbox__sendbox:"Ze","sendbox__attachment--in-grid":"we","sendbox__text-area--in-grid":"ea","sendbox__sendbox-controls--in-grid":"aa","sendbox__telephone-keypad--in-grid":"ra","sendbox__sendbox-text":"oa","sendbox__sendbox-controls":"ta"};import Rt,{memo as gn,useCallback as fn}from"react";import{hooks as wn}from"botframework-webchat-component";var{useLocalizer:vn}=wn,Wt=gn(()=>{let[e,t]=B(),a=vn(),o=fn(()=>t(r=>!r),[t]);return Rt.createElement(F,{"aria-label":a("TEXT_INPUT_TELEPHONE_KEYPAD_BUTTON_ALT"),"data-testid":h.sendBoxTelephoneKeypadToolbarButton,onClick:o,selected:e},Rt.createElement(ge,null))});Wt.displayName="SendBox.TelephoneKeypadToolbarButton";var Vt=Wt;import{hooks as yn}from"botframework-webchat-api";import ee from"classnames";import X,{forwardRef as xn,Fragment as kn,useCallback as Nn}from"react";var Ot={"sendbox__text-area":"la","sendbox__text-area--hidden":"ca","sendbox__text-area-shared":"ia","sendbox__text-area-doppelganger":"na","sendbox__text-area-input":"ba","sendbox__text-area-input--scroll":"da"};var{useUIState:Sn}=yn,Kt=xn((e,t)=>{let[a]=Sn(),o=c(Ot),r=a==="disabled",n=Nn(l=>{!l.shiftKey&&l.key==="Enter"&&(l.preventDefault(),"form"in l.target&&l.target.form instanceof HTMLFormElement&&l.target?.form?.requestSubmit())},[]);return X.createElement("div",{className:ee(o["sendbox__text-area"],{[o["sendbox__text-area--hidden"]]:e.hidden},e.className),role:e.hidden?"hidden":void 0},a==="blueprint"?X.createElement("div",{className:ee(o["sendbox__text-area-doppelganger"],o["sendbox__text-area-input--scroll"],o["sendbox__text-area-shared"])}," "):X.createElement(kn,null,X.createElement("div",{className:ee(o["sendbox__text-area-doppelganger"],o["sendbox__text-area-input--scroll"],o["sendbox__text-area-shared"])},e.value||e.placeholder," "),X.createElement("textarea",{"aria-disabled":r,"aria-label":e["aria-label"],className:ee(o["sendbox__text-area-input"],o["sendbox__text-area-input--scroll"],o["sendbox__text-area-shared"]),"data-testid":e["data-testid"],onInput:e.onInput,onKeyDown:n,placeholder:e.placeholder,readOnly:r,ref:t,rows:e.startRows??1,tabIndex:e.hidden?-1:void 0,value:e.value})))});Kt.displayName="TextArea";var Xt=Kt;var{useFocus:Hn,useLocalizer:Mn,useMakeThumbnail:An,useRegisterFocusSendBox:Fn,useSendBoxAttachments:zn,useSendBoxValue:Ln,useSendMessage:En,useStyleOptions:Pn,useUIState:Dn}=Bn;function Zt(e){let[{hideTelephoneKeypadButton:t,hideUploadButton:a,maxMessageLength:o}]=Pn(),[r,n]=zn(),[l,i]=Ln(),[u,p]=Cn(""),[s]=B(),[d]=Dn(),b=c(Le),f=H(Le),x=ze("sendbox__error-message-id"),m=Tn(null),k=Mn(),N=An(),S=En(),T=Hn(),C=e.isPrimary?l:u,z=e.isPrimary?i:p,j=d==="blueprint",[De,Ie]=It({message:C,attachments:r}),R=!!o&&C.length>o,qt=!j&&!s&&o&&isFinite(o),Re=!j&&s;Fn(I(({noKeyboard:v,waitUntil:Z})=>{m.current&&(v?Z((async()=>{let W=m.current?.getAttribute("readonly");m.current?.setAttribute("readonly","true"),await new Promise(G=>setTimeout(G,0)),m.current?.focus(),typeof W!="string"?m.current?.removeAttribute("readonly"):m.current?.setAttribute("readonly",W)})()):m.current?.focus())},[m]));let We=Ut(r),Ve=Ut(C),Jt=I(v=>{"tabIndex"in v.target&&typeof v.target.tabIndex=="number"&&v.target.tabIndex>=0||T("sendBox")},[T]),Qt=I(v=>z(v.currentTarget.value),[z]),Oe=I(async v=>{let Z=Object.freeze(await Promise.all(v.map(W=>N(W).then(G=>Object.freeze({blob:W,...G&&{thumbnailURL:G}})))));n(Z)},[N,n]),ea=I(v=>{v.preventDefault(),Ie()!=="empty"&&!R&&(S(Ve.current,void 0,{attachments:We.current}),z(""),n([])),T("sendBox")},[Ie,R,T,S,z,Ve,We,n]),ta=I(v=>S(`/DTMFKey ${v}`),[S]),aa=Fe(),oa={"aria-invalid":"false",...De&&{"aria-describedby":x,"aria-errormessage":x,"aria-invalid":"true"}};return w.createElement("form",{...oa,className:U(b.sendbox,f,e.className),"data-testid":h.sendBoxContainer,onSubmit:ea},w.createElement(xe,null),w.createElement("div",{className:U(b.sendbox__sendbox),onClickCapture:Jt,onKeyDown:aa},w.createElement(Xt,{"aria-label":k(R?"TEXT_INPUT_LENGTH_EXCEEDED_ALT":"TEXT_INPUT_ALT"),className:U(b["sendbox__sendbox-text"],b["sendbox__text-area--in-grid"]),"data-testid":h.sendBoxTextBox,hidden:Re,onInput:Qt,placeholder:e.placeholder??k("TEXT_INPUT_PLACEHOLDER"),ref:m,value:C}),w.createElement(Be,{autoFocus:!0,className:b["sendbox__telephone-keypad--in-grid"],isHorizontal:!1,onButtonClick:ta}),w.createElement(Ft,{attachments:r,className:b["sendbox__attachment--in-grid"]}),w.createElement("div",{className:U(b["sendbox__sendbox-controls"],b["sendbox__sendbox-controls--in-grid"])},qt&&w.createElement("div",{className:U(b["sendbox__text-counter"],{[b["sendbox__text-counter--error"]]:R})},`${C.length}/${o}`),w.createElement(Me,null,!t&&w.createElement(Vt,null),!a&&w.createElement(Mt,{onFilesAdded:Oe}),w.createElement(Ae,null),w.createElement(F,{"aria-label":k("TEXT_INPUT_SEND_BUTTON_ALT"),"data-testid":h.sendBoxSendButton,disabled:R||Re,type:"submit"},w.createElement(me,null)))),w.createElement(fe,{onFilesAdded:Oe}),w.createElement(Pt,{error:De,id:x})))}var te=jt(e=>w.createElement(Zt,{...e,isPrimary:!0}));te.displayName="PrimarySendBox";var In=jt(Zt);import Wn from"react";import Vn from"classnames";var Ee={theme:"_","variant-copilot":"ae"};var On="webchat-fluent";function ae(e){let t=c(Ee),a=H(Ee);return Wn.createElement("div",{className:Vn(On,t.theme,a)},e.children)}function oe(e){return!!(e&&e.from.role==="channel"&&e.type==="message"&&"text"in e)}import $t,{memo as Xn}from"react";var Gt={"liner-message-activity":"ha","liner-message-activity__text":"sa"};var Yt=({activity:e})=>{let t=c(Gt);return $t.createElement("div",{className:t["liner-message-activity"],role:"separator"},$t.createElement("span",{className:t["liner-message-activity__text"]},e.text))};Yt.displayName="LinerMessageActivity";var Pe=Xn(Yt);var{ThemeProvider:Gn}=Un,$n=Object.freeze([()=>e=>(...t)=>{let a=t[0]?.activity;if(E(a))return()=>M.createElement(be,{activity:a});if(oe(a))return()=>M.createElement(Pe,{activity:a});let o=e(...t);return o&&((...r)=>M.createElement(de,{activity:a},o(...r)))}]),Yn=[()=>()=>()=>te],qn=ie(),Jn=({children:e,variant:t="fluent"})=>M.createElement(Ke,{variant:t},M.createElement(ae,null,M.createElement(ke,null,M.createElement(Gn,{activityMiddleware:$n,sendBoxMiddleware:Yn,styles:qn},M.createElement(jn,null,e))))),Qn=Zn(Jn);var ti="tsup",ai="esmodules",oi="4.18.1-main.20241104.06bf029",Sb={buildTool:ti,moduleFormat:ai,version:oi};ei("botframework-webchat:fluent-theme","version=4.18.1-main.20241104.06bf029; build-tool=tsup; module-format=esmodules");export{Qn as FluentThemeProvider,Sb as buildInfo,h as testIds};
1
+ import{injectMetaTag as ei}from"inject-meta-tag";import{Components as Un}from"botframework-webchat-component";import{WebChatDecorator as jn}from"botframework-webchat-component/decorator";import M,{memo as Zn}from"react";import Ha from"classnames";import Ze,{memo as Ma}from"react";import{useContext as sa,useMemo as da}from"react";import{createContext as la}from"react";import ra,{memo as na,useMemo as ia}from"react";function re({Provider:e},{defaults:t,displayName:a}){let o=({children:r,...n})=>{let l=ia(()=>Object.freeze({...t,...n}),[n]);return ra.createElement(e,{value:l},r)};return o.displayName=a,na(o)}var ne=la(new Proxy({},{get(){throw new Error("Unable to use VariantContext without VariantComposer")}})),ca=re(ne,{defaults:{variant:""},displayName:"VariantComposer"}),Ke=ca;function V(){let{variant:e}=sa(ne);return da(()=>e.split(" "),[e])}function ba(e){let t=document.createElement("style");return t.append(document.createTextNode(e)),t}function Xe(...e){return function(){if(!globalThis.document)throw new Error("Unable to create styles: document is not defined");return e.map(t=>ba(t))}}var ua=".webchat-fluent .ee{display:contents;font-family:var(--webchat__font--primary);--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--min-width: var(--webchat-bubble-minWidth);--webchat-bubble-maxWidth: var(--bubble-maxWidth, max(450px, 75%));--webchat-bubble-minWidth: var(--bubble-minWidth, auto);--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 .ee:has(.webchat__stacked-layout .webchat__bubble--from-user){--webchat__bubble--background-color: var(--webchat-colorBrandBackground2);--webchat__bubble--block-padding: var(--webchat-spacingVerticalS);--webchat__bubble--min-width: auto}.webchat-fluent .ee.ue{--webchat__bubble--background-color: var(--webchat-colorNeutralBackground1);--webchat__bubble--border-radius: var(--webchat-borderRadiusXLarge);--webchat__bubble--box-shadow: var(--webchat-shadow4)}.webchat-fluent .ee.re{--webchat__bubble--border-radius: var(--webchat-borderRadiusXLarge)}.webchat-fluent .ee.re .webchat__activity-status{margin:0 0 var(--webchat-spacingHorizontalXXS)}.webchat-fluent .ee.re .webchat__stacked-layout__status{order:-1}.webchat-fluent .ee.re:has(.webchat__bubble--from-user) .webchat__bubble{margin-block-end:var(--webchat-spacingVerticalM)}.webchat-fluent .ee.re .webchat__bubble .webchat__text-content .webchat__text-content__generated-badge{display:none}.webchat-fluent .ee.re:not(:has(.webchat__bubble--from-user)){--webchat__bubble--block-padding: 0;--webchat__bubble--border-radius: var(--webchat-borderRadiusMedium);--webchat__bubble--inline-padding: 0;--webchat__bubble--max-width: 100%;--webchat__bubble--min-height: 20px;display:flex;flex-flow:column nowrap;gap:var(--webchat-spacingVerticalS);margin-inline:var(--webchat-spacingHorizontalM);padding:var(--webchat-spacingVerticalMNudge) var(--webchat-spacingHorizontalM) var(--webchat-spacingVerticalM);position:relative}.webchat-fluent .ee.re:not(:has(.webchat__bubble--from-user)) .webchat__stacked-layout{margin:0;position:static}.webchat-fluent .ee.re:not(:has(.webchat__bubble--from-user)) .webchat__bubble{position:static;width:var(--webchat__bubble--max-width)}.webchat-fluent .ee.re:not(:has(.webchat__bubble--from-user)) .webchat__bubble .webchat__bubble__content{overflow:visible}.webchat-fluent .ee.re:not(:has(.webchat__bubble--from-user)) .webchat__text-content{margin-inline-start:28px}.webchat-fluent .ee.re:not(:has(.webchat__bubble--from-user)) .border-loader{display:flex;flex-flow:column nowrap;gap:var(--webchat-spacingVerticalS);padding-inline-end:var(--webchat-spacingHorizontalM);width:500px}.webchat-fluent .ee.re:not(:has(.webchat__bubble--from-user)) .border-loader__track{border-radius:inherit;box-sizing:border-box;clip-path:border-box;margin-inline-start:28px;order:-1;width:auto}.webchat-fluent .ee.re:not(:has(.webchat__bubble--from-user)) .webchat__stacked-layout__status{display:none}.webchat-fluent .ee .webchat__basic-transcript__activity-body:not(:empty){padding-block-end:var(--webchat-spacingVerticalXL)}.webchat-fluent .ee .webchat__stacked-layout{display:flex;flex-flow:column nowrap}.webchat-fluent .ee .webchat__stacked-layout .webchat__stacked-layout__content:has(.webchat__bubble){max-width:100%;overflow:visible}.webchat-fluent .ee .webchat__stacked-layout .webchat__stacked-layout__status{font-size:var(--webchat__font-size--small);line-height:var(--webchat__line-height--small)}.webchat-fluent .ee .webchat__stacked-layout .webchat__bubble{max-width:min(var(--webchat__bubble--max-width),100%);min-width:var(--webchat__bubble--min-width);overflow:visible}.webchat-fluent .ee .webchat__stacked-layout .webchat__bubble:has(.border-loader){width:100%}.webchat-fluent .ee .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-shadow:var(--webchat__bubble--box-shadow);box-sizing:border-box;color:var(--webchat-colorNeutralForeground1);max-width:100%;min-height:var(--webchat__bubble--min-height)}.webchat-fluent .ee .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 .ee .webchat__stacked-layout .webchat__bubble .webchat__text-content:empty{padding-block-end:0}.webchat-fluent .ee .webchat__stacked-layout .webchat__bubble .webchat__text-content+.webchat__text-content{margin-top:calc(var(--webchat__bubble--block-padding) * -1)}.webchat-fluent .ee .webchat__stacked-layout .webchat__bubble .webchat__text-content__generated-badge{align-items:center;align-self:flex-start;background-color:var(--webchat-colorNeutralBackground5);border-radius:var(--webchat-borderRadiusMedium);box-sizing:border-box;color:var(--webchat-colorNeutralForeground3);cursor:default;display:inline-flex;font-size:var(--webchat-fontSizeBase100);height:16px;line-height:var(--webchat-lineHeightBase100);padding-inline:var(--webchat-spacingHorizontalXS)}.webchat-fluent .ee .webchat__stacked-layout .webchat__bubble .webchat__fileContent__badge{cursor:default;font-size:var(--webchat-fontSizeBase300);line-height:var(--webchat-lineHeightBase300)}.webchat-fluent .ee .webchat__stacked-layout .webchat__bubble .webchat__fileContent__badge .webchat__fileContent__fileName{color:var(--webchat-colorBrandForegroundLink);font-family:inherit}.webchat-fluent .ee .webchat__stacked-layout .webchat__bubble .webchat__fileContent__badge .webchat__fileContent__size{color:var(--webchat-colorNeutralForeground2);font-family:inherit}.webchat-fluent .ee .webchat__render-markdown a[href]:not(.webchat__render-markdown__pure-identifier){color:var(--webchat-colorBrandForegroundLink);text-decoration-color:transparent}.webchat-fluent .ee .webchat__render-markdown a[href]:not(.webchat__render-markdown__pure-identifier):target{color:var(--webchat-colorBrandForegroundLinkSelected)}.webchat-fluent .ee .webchat__render-markdown a[href]:not(.webchat__render-markdown__pure-identifier):hover{color:var(--webchat-colorBrandForegroundLinkHover);text-decoration:underline 1px currentColor}.webchat-fluent .ee .webchat__render-markdown a[href]:not(.webchat__render-markdown__pure-identifier):active{color:var(--webchat-colorBrandForegroundLinkPressed)}.webchat-fluent .ee .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 .ee .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 .ee .webchat__render-markdown .webchat__render-markdown__citation,.webchat-fluent .ee .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 .ee .webchat__render-markdown .webchat__render-markdown__citation,.webchat-fluent .ee .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 .ee .webchat__render-markdown .webchat__render-markdown__citation,.webchat-fluent .ee .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 .ee .webchat__render-markdown .webchat__render-markdown__citation,.webchat-fluent .ee .webchat__render-markdown .webchat__render-markdown__pure-identifier):before,:is(.webchat-fluent .ee .webchat__render-markdown .webchat__render-markdown__citation,.webchat-fluent .ee .webchat__render-markdown .webchat__render-markdown__pure-identifier):after{all:unset}:is(.webchat-fluent .ee .webchat__render-markdown .webchat__render-markdown__citation,.webchat-fluent .ee .webchat__render-markdown .webchat__render-markdown__pure-identifier):has(.webchat__render-markdown__external-link-icon){padding-inline:3px}:is(.webchat-fluent .ee .webchat__render-markdown .webchat__render-markdown__citation,.webchat-fluent .ee .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 .ee .webchat__link-definitions__header{border-radius:var(--webchat-borderRadiusMedium)}.webchat-fluent .ee .webchat__link-definitions__header .webchat__link-definitions__header-text{color:var(--webchat-colorNeutralForeground3)}.webchat-fluent .ee .webchat__link-definitions__header .webchat__link-definitions__header-chevron{fill:var(--webchat-colorNeutralForeground3);font-size:var(--webchat__font-size--small);width:1em}.webchat-fluent .ee .webchat__link-definitions__header:focus-visible{outline-offset:1px;outline:var(--webchat-strokeWidthThin) solid var(--webchat-colorStrokeFocus2)}.webchat-fluent .ee .webchat__link-definitions{--webchat__citation__external-link--mask: var(--webchat-externalLink-mask);--webchat__citation__link--max-width: var(--webchat-externalLink-maxWidth)}.webchat-fluent .ee .webchat__link-definitions .webchat__link-definitions__list{color:var(--webchat__color--subtle);display:flex;flex-flow:row wrap;gap:var(--webchat-spacingHorizontalS)}.webchat-fluent .ee .webchat__link-definitions .webchat__link-definitions__list-item{border-radius:var(--webchat-borderRadiusMedium);max-width:var(--webchat__citation__link--max-width)}.webchat-fluent .ee .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 .ee .webchat__link-definitions .webchat__link-definitions__list-item-body{font-family:inherit;gap:var(--webchat-spacingHorizontalSNudge);min-width:0;padding:0}.webchat-fluent .ee .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 .ee .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 .ee .webchat__link-definitions .webchat__link-definitions__list-item-main-text{gap:var(--webchat-spacingHorizontalXS)}.webchat-fluent .ee .webchat__link-definitions .webchat__link-definitions__list-item-text{color:currentColor;text-decoration:none;text-overflow:ellipsis}.webchat-fluent .ee .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 .ee .webchat__link-definitions :is(.webchat__link-definitions__list-item-badge,.webchat__link-definitions__open-in-new-window-icon){display:none}.webchat-fluent .ve{align-items:center;box-sizing:border-box;cursor:default;display:flex;flex-wrap:nowrap;gap:var(--webchat-spacingHorizontalS);max-width:var(--webchat__bubble--max-width)}.webchat-fluent .pe{aspect-ratio:1;background-color:var(--background-color);border-radius:var(--webchat-borderRadiusSmall);width:20px}.webchat-fluent ._e{font-size:var(--webchat-fontSizeBase300);font-weight:var(--webchat-fontWeightSemibold);line-height:var(--webchat-lineHeightBase300);overflow:hidden;text-overflow:ellipsis;text-wrap:nowrap}.webchat-fluent .fe{align-items:center;background-color:var(--webchat-colorNeutralBackground5);border-radius:var(--webchat-borderRadiusMedium);color:var(--webchat-colorNeutralForeground3);display:flex;flex:none;font-size:var(--webchat-fontSizeBase100);height:20px;line-height:var(--webchat-lineHeightBase100);padding-inline:var(--webchat-spacingHorizontalXS)}.webchat-fluent .ke{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 .xe{align-items:center;display:flex;flex-flow:column nowrap;font-family:var(--webchat-fontFamilyBase);font-size:var(--webchat-fontSizeBase300);font-weight:var(--webchat-fontWeightRegular);gap:var(--webchat-spacingVerticalXS);grid-area:body;line-height:var(--webchat-lineHeightBase300);text-align:center}.webchat-fluent .me{opacity:60%}.webchat-fluent .me .oe{filter:grayscale(1)}.webchat-fluent .oe{border-radius:var(--webchat-borderRadiusMedium);height:64px;margin-block-end:var(--webchat-spacingVerticalM)}.webchat-fluent .ye{color:var(--webchat-colorNeutralForeground1);font-family:inherit;font-size:var(--webchat-fontSizeHero700);font-weight:var(--webchat-fontWeightSemibold);line-height:var(--webchat-lineHeightHero700);margin:0;overflow-wrap:anywhere}.webchat-fluent .Be{font-size:var(--webchat-fontSizeBase300);line-height:var(--webchat-lineHeightBase300);overflow-wrap:anywhere}.webchat-fluent .Ne{grid-area:toolbar}.webchat-fluent .Se{-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:var(--webchat-spacingVerticalS);grid-template-areas:\"title\" \"subtitle\";grid-template-columns:1fr;grid-template-rows:auto 1fr;overflow:hidden;padding:16px 20px;text-align:left;transition:background-color var(--webchat-durationNormal) var(--webchat-curveDecelerateMid);-webkit-user-select:none;user-select:none}.webchat-fluent .Se:has(.te){grid-template-areas:\"image title\" \"image subtitle\";grid-template-columns:20px 1fr}.webchat-fluent .Se:empty{row-gap:14px}.webchat-fluent .Se:is([aria-disabled=true],:empty){cursor:default}.webchat-fluent .Se[aria-disabled=true]:not(:empty){background-color:var(--webchat-colorNeutralBackgroundDisabled)}.webchat-fluent .Se:hover:not([aria-disabled=true],:empty){background-color:var(--webchat-colorNeutralBackground1Hover)}.webchat-fluent .Se:active:not([aria-disabled=true],:empty){background-color:var(--webchat-colorNeutralBackground1Pressed)}.webchat-fluent .Se:focus-visible{outline:solid 2px var(--webchat-colorStrokeFocus2);outline-offset:-2px}.webchat-fluent .Se:empty:after,.webchat-fluent .Se:empty:before{animation:le 3s linear infinite;background-attachment:fixed;background-image:linear-gradient(-90deg,var(--webchat-colorNeutralStencil1) 0%,var(--webchat-colorNeutralStencil2) 50%,var(--webchat-colorNeutralStencil1) 100%);background-size:300% 100%;content:\"\";display:block}@media (prefers-reduced-motion: reduce){.webchat-fluent .Se:empty:after,.webchat-fluent .Se:empty:before{animation-delay:-1s;animation-play-state:paused}}.webchat-fluent .Se:dir(rtl):empty:after,.webchat-fluent .Se:dir(rtl):empty:before{animation-direction:reverse}.webchat-fluent .Se:empty:after{border-radius:16px;height:16px;width:100%}.webchat-fluent .Se:empty:before{border-radius:18px;height:18px;width:66%}@keyframes le{0%{background-position-x:0%}to{background-position-x:-300%}}.webchat-fluent .te{grid-area:image;height:20px;width:20px}.webchat-fluent .ze{font-family:var(--webchat-fontFamilyBase);font-size:14px;font-weight:var(--webchat-fontWeightRegular);grid-area:subtitle;line-height:20px;pointer-events:none}.webchat-fluent .He{font-family:var(--webchat-fontFamilyBase);font-size:14px;font-weight:var(--webchat-fontWeightSemibold);grid-area:title;line-height:20px}.webchat-fluent .Fe{container-name:ce;container-type:inline-size}.webchat-fluent .ie{display:grid;gap:var(--webchat-spacingHorizontalM);grid-template-columns:1fr 1fr 1fr;padding:0}@container ce (width <= 480px){.webchat-fluent .ie{grid-template-columns:1fr}}.webchat-fluent .Xe{background-color:var(--webchat-colorNeutralBackground4);border-radius:inherit;cursor:copy;display:grid;gap:8px;inset:0;place-content:center;place-items:center;position:absolute;transition:all var(--webchat-durationNormal) var(--webchat-curveDecelerateMid)}.webchat-fluent .Le{background-color:var(--webchat-colorBrandBackground2Hover)}.webchat-fluent .Me{height:36px;pointer-events:none;width:36px}.webchat-fluent .We{align-items:center;background:transparent;border-radius:var(--webchat-borderRadiusXLarge);border:var(--webchat-strokeWidthThin) solid var(--webchat-colorBrandStroke2);color:currentColor;cursor:pointer;display:flex;font-family:var(--webchat__font--primary);font-size:var(--webchat-fontSizeBase200);gap:var(--webchat-spacingHorizontalXS);padding:var(--webchat-spacingVerticalXS) var(--webchat-spacingHorizontalS);text-align:start;transition:all var(--webchat-durationNormal) var(--webchat-curveDecelerateMid)}@media (hover: hover){.webchat-fluent .We:not([aria-disabled=true]):hover{background-color:var(--webchat-colorBrandBackground2Hover);color:var(--webchat-colorBrandForeground2Hover)}}.webchat-fluent .We:not([aria-disabled=true]):active{background-color:var(--webchat-colorBrandBackground2Pressed);color:var(--webchat-colorBrandForeground2Pressed)}.webchat-fluent .We[aria-disabled=true]{color:var(--webchat-colorNeutralForegroundDisabled);cursor:not-allowed}.webchat-fluent .Ve{font-size:var(--webchat-fontSizeBase200);height:1em;width:1em}.webchat-fluent .Re{align-items:flex-end;align-self:flex-end;display:flex;flex-direction:column;gap:8px}.webchat-fluent .Re:not(:empty){padding-block-end:8px;padding-inline-start:4px}.webchat-fluent .Re.Te{flex-direction:row;flex-wrap:wrap;justify-content:flex-end}.webchat-fluent .Re.Pe{flex-direction:column}.webchat-fluent .ne{-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 .ne:hover{background-color:var(--webchat-colorGray30)}.webchat-fluent .be{color:var(--webchat-colorGray190);font-size:10px}.webchat-fluent .de{font-size:24px;margin-top:8px}.webchat-fluent .Ce .ne{height:32px;justify-content:center;margin:8px 4px;width:32px}.webchat-fluent .Ce .be{display:none}.webchat-fluent .Ce .de{font-size:20px;margin-top:0}.webchat-fluent .De{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 .Ge{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 .Ue{align-items:center;color:var(--webchat-colorNeutralForeground4);display:flex;font-size:12px;gap:6px;margin-block-end:6px}.webchat-fluent .je{color:var(--webchat-colorBrandForegroundLink);text-decoration-color:transparent}.webchat-fluent .je:target{color:var(--webchat-colorBrandForegroundLinkSelected)}.webchat-fluent .je:hover{color:var(--webchat-colorBrandForegroundLinkHover);text-decoration:underline 1px currentColor}.webchat-fluent .je:active{color:var(--webchat-colorBrandForegroundLinkPressed)}.webchat-fluent .je:focus-visible{outline:none;text-decoration:underline 1px double var(--webchat-colorStrokeFocus2)}.webchat-fluent .Ie{--webchat__sendbox-button-height: 32px;display:flex;gap:4px;height:var(--webchat__sendbox-button-height);margin-inline-start:auto}.webchat-fluent .Ae{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;height:var(--webchat__sendbox-button-height);justify-content:center;padding:3px}.webchat-fluent .Ae>svg{font-size:20px;pointer-events:none}.webchat-fluent .Ae.Ee{color:var(--webchat-colorNeutralForeground2BrandSelected)}@media (hover: hover){.webchat-fluent .Ae:not([aria-disabled=true]):hover{color:var(--webchat-colorNeutralForeground2BrandHover)}}.webchat-fluent .Ae:not([aria-disabled=true]):active{color:var(--webchat-colorNeutralForeground2BrandPressed)}.webchat-fluent .Ae[aria-disabled=true]{color:var(--webchat-colorNeutralForegroundDisabled);cursor:not-allowed}.webchat-fluent .qe{align-self:center;border-inline-end:1px solid var(--webchat-colorNeutralStroke2);height:28px}.webchat-fluent .qe:is(:first-child,:last-child,:only-child){display:none}.webchat-fluent .Je{display:grid}.webchat-fluent .Ke{font-size:0;height:0;opacity:0;width:1px}.webchat-fluent .Oe{border-radius:var(--webchat-borderRadiusLarge);border:1px solid var(--webchat-colorNeutralStroke1);cursor:default;padding:6px 8px;width:fit-content}.webchat-fluent .Qe{color:transparent;font-size:0;height:0;left:0;position:absolute;top:0;width:0}.webchat-fluent .he{--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 .he.Ye .se:not(.ge){visibility:hidden}.webchat-fluent .Ze{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 .Ze:has(.we){--webchat-sendbox-attachment-area-active: \"attachment\"}.webchat-fluent .Ze:focus-within{border-color:var(--webchat-colorNeutralStroke1Selected)}.webchat-fluent .Ze: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 .Ze: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 .Ze>.ea{grid-area:text-area}.webchat-fluent .Ze>.we{grid-area:attachment}.webchat-fluent .Ze>.aa{grid-area:controls}.webchat-fluent .Ze>.ra{grid-area:telephone-keypad}.webchat-fluent .oa{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 .oa:focus-within{font-size:16px}}.webchat-fluent .ta{align-items:center;display:flex;padding-inline-start:4px}.webchat-fluent .se{color:var(--webchat-colorNeutralForeground4);cursor:default;font-family:var(--webchat-fontFamilyNumeric);font-size:10px;line-height:14px;margin-inline-end:4px}.webchat-fluent .ge{color:var(--webchat-colorStatusDangerForeground1)}.webchat-fluent .la{display:grid;grid-template-areas:\"main\";max-height:200px;overflow:hidden}.webchat-fluent .ca{height:0;visibility:collapse}.webchat-fluent .ia{border:none;font:inherit;grid-area:main;outline:inherit;overflow-wrap:anywhere;resize:inherit;scrollbar-gutter:stable}.webchat-fluent .na{overflow:hidden;visibility:hidden;white-space:pre-wrap}.webchat-fluent .ba{background-color:inherit;color:currentColor;height:100%;padding:0}.webchat-fluent .da{scrollbar-color:unset;scrollbar-width:unset;-moz-scrollbar-color:var(--webchat-colorNeutralBackground5) var(--webchat-colorNeutralForeground2);-moz-scrollbar-width:thin}.webchat-fluent .da::-webkit-scrollbar{width:8px}.webchat-fluent .da::-webkit-scrollbar-track{background-color:var(--webchat-colorNeutralBackground5);border-radius:16px}.webchat-fluent .da::-webkit-scrollbar-thumb{background-color:var(--webchat-colorNeutralForeground2);border-radius:16px}.webchat-fluent .da::-webkit-scrollbar-corner{background-color:var(--webchat-colorNeutralBackground5)}.webchat-fluent._{display:contents;--webchat-colorNeutralForegroundDisabled: var(--colorNeutralForegroundDisabled, #bdbdbd);--webchat-colorNeutralForeground1: var(--colorNeutralForeground1, #242424);--webchat-colorNeutralForeground1Hover: var(--colorNeutralForeground1Hover, #242424);--webchat-colorNeutralForeground1Pressed: var(--colorNeutralForeground1Pressed, #242424);--webchat-colorNeutralForeground2: var(--colorNeutralForeground2, #424242);--webchat-colorNeutralForeground2BrandHover: var(--colorNeutralForeground2BrandHover, #02729c);--webchat-colorNeutralForeground2BrandPressed: var(--colorNeutralForeground2BrandPressed, #01678c);--webchat-colorNeutralForeground2BrandSelected: var(--colorNeutralForeground2BrandSelected, #067191);--webchat-colorNeutralForeground3: var(--colorNeutralForeground3, #616161);--webchat-colorNeutralForeground4: var(--colorNeutralForeground4, #707070);--webchat-colorNeutralForeground5: var(--colorNeutralForeground5, #7e7e7e);--webchat-colorNeutralBackgroundDisabled: var(--colorNeutralBackgroundDisabled, #f0f0f0);--webchat-colorNeutralBackground1: var(--colorNeutralBackground1, #ffffff);--webchat-colorNeutralBackground1Hover: var(--colorNeutralBackground1Hover, #f5f5f5);--webchat-colorNeutralBackground1Pressed: var(--colorNeutralBackground1Pressed, #e0e0e0);--webchat-colorNeutralBackground3: var(--colorNeutralBackground3, #f5f5f5);--webchat-colorNeutralBackground4: var(--colorNeutralBackground4, #f0f0f0);--webchat-colorNeutralBackground5: var(--colorNeutralBackground5, #ebebeb);--webchat-colorNeutralBackground6: var(--colorNeutralBackground6, #e6e6e6);--webchat-colorNeutralStencil1: var(--colorNeutralStencil1, #e6e6e6);--webchat-colorNeutralStencil2: var(--colorNeutralStencil2, #fafafa);--webchat-colorTransparentBackground: var(--colorTransparentBackground, rgba(0, 0, 0, .4));--webchat-colorNeutralStrokeDisabled: var(--colorNeutralStrokeDisabled, #e0e0e0);--webchat-colorNeutralStroke1: var(--colorNeutralStroke1, #d1d1d1);--webchat-colorNeutralStroke1Hover: var(--colorNeutralStroke1Hover, #c7c7c7);--webchat-colorNeutralStroke1Pressed: var(--colorNeutralStroke1Pressed, #b3b3b3);--webchat-colorNeutralStroke1Selected: var(--colorNeutralStroke1Selected, #bdbdbd);--webchat-colorNeutralStroke2: var(--colorNeutralStroke2, #e0e0e0);--webchat-colorStrokeFocus2: var(--colorStrokeFocus2, #000000);--webchat-colorBrandStroke2: var(--colorBrandStroke2, #9edcf7);--webchat-colorBrandStroke2Pressed: var(--colorBrandStroke2Pressed, #01384d);--webchat-colorTransparentStroke: var(--colorTransparentStroke, transparent);--webchat-colorBrandForeground1: var(--colorBrandForeground1, #01678c);--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-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-colorGrey8: #141414;--webchat-colorGrey98: #fafafa;--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-fontFamilyMonospace: var(--fontFamilyMonospace, Consolas, \"Courier New\", Courier, monospace);--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(--strokeWidthThick, 2px);--webchat-strokeWidthThicker: var(--strokeWidthThicker, 3px);--webchat-durationUltraFast: var(--durationUltraFast, 0);--webchat-durationNormal: var(--durationNormal, .2s);--webchat-durationUltraSlow: var(--durationUltraSlow, .5s);--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._{--webchat-durationUltraFast: .01ms;--webchat-durationNormal: .01ms}}.webchat-fluent._ .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__border-animation--color-1: #464feb;--webchat__border-animation--color-2: #47cffa;--webchat__border-animation--color-3: #b47cf8}.webchat-fluent._.ae .webchat__css-custom-properties{--webchat__padding--sendbox: var(--webchat-spacingVerticalNone) var(--webchat-spacingHorizontalXL) var(--webchat-spacingVerticalMNudge) var(--webchat-spacingHorizontalMNudge)}.webchat-fluent._ .webchat__surface{background-color:var(--webchat__color--surface)}.webchat-fluent._.ae .webchat__surface{box-sizing:border-box;padding-inline-start:var(--webchat-spacingHorizontalMNudge)}.webchat-fluent._ .webchat__basic-transcript .webchat__basic-transcript__scrollable,.webchat-fluent._ .webchat__view-code-dialog__code-body{scrollbar-color:unset;scrollbar-width:unset;-moz-scrollbar-color:var(--webchat-colorNeutralForeground5) transparent;-moz-scrollbar-width:thin}:is(.webchat-fluent._ .webchat__basic-transcript .webchat__basic-transcript__scrollable,.webchat-fluent._ .webchat__view-code-dialog__code-body)::-webkit-scrollbar{width:var(--webchat-spacingVerticalMNudge);visibility:hidden}:is(.webchat-fluent._ .webchat__basic-transcript .webchat__basic-transcript__scrollable,.webchat-fluent._ .webchat__view-code-dialog__code-body)::-webkit-scrollbar-corner{background:transparent}:is(.webchat-fluent._ .webchat__basic-transcript .webchat__basic-transcript__scrollable,.webchat-fluent._ .webchat__view-code-dialog__code-body):hover::-webkit-scrollbar{width:var(--webchat-spacingVerticalMNudge)}:is(.webchat-fluent._ .webchat__basic-transcript .webchat__basic-transcript__scrollable,.webchat-fluent._ .webchat__view-code-dialog__code-body):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}:is(.webchat-fluent._ .webchat__basic-transcript .webchat__basic-transcript__scrollable,.webchat-fluent._ .webchat__view-code-dialog__code-body):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._.ae .webchat__basic-transcript .webchat__basic-transcript__scrollable{scrollbar-gutter:stable}.webchat-fluent._ .webchat__basic-transcript .webchat__basic-transcript__terminator:focus-visible+.webchat__basic-transcript__focus-indicator{border-color:var(--webchat-colorStrokeFocus2)}.webchat-fluent._ .webchat__basic-transcript:not(:focus-visible) .webchat__basic-transcript__activity-indicator--focus{display:none}.webchat-fluent._ .webchat__basic-transcript:focus-visible:has(.webchat__basic-transcript__activity-indicator--focus) .webchat__basic-transcript__focus-indicator{display:none}.webchat-fluent._ .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._ .webchat__basic-transcript:focus-visible .webchat__basic-transcript__activity:has(.webchat__basic-transcript__activity-indicator--focus) .webchat__bubble:after,.webchat-fluent._ .webchat__basic-transcript:focus-visible .webchat__basic-transcript__activity:has(.webchat__basic-transcript__activity-indicator--focus) .pre-chat-message-activity:after{border-radius:var(--webchat__bubble--border-radius);content:\"\";inset:0;outline-offset:0;outline:var(--webchat-strokeWidthThick) solid var(--webchat-colorStrokeFocus2);pointer-events:none;position:absolute}.webchat-fluent._ .webchat__basic-transcript:focus-visible .webchat__basic-transcript__activity:has(.webchat__basic-transcript__activity-indicator--focus) .pre-chat-message-activity:after{border-radius:var(--webchat-borderRadiusMedium);outline-offset:-3px}.webchat-fluent._ .webchat__basic-transcript:focus-visible .webchat__basic-transcript__activity:has(.webchat__basic-transcript__activity-indicator--focus) .liner-message-activity__text{border-radius:20px;outline-offset:4px;outline:var(--webchat-strokeWidthThick) solid var(--webchat-colorStrokeFocus2)}.webchat-fluent._.ae .webchat__basic-transcript .webchat__basic-transcript__filler{flex-grow:0}.webchat-fluent._ .webchat__basic-transcript:has(.webchat__basic-transcript__activity:only-child):has(.pre-chat-message-activity) .webchat__basic-transcript__filler{flex-grow:.5}.webchat-fluent._ .webchat__modal-dialog{height:100%;display:grid;place-items:center}.webchat-fluent._ .webchat__modal-dialog::backdrop{background-color:var(--webchat-colorTransparentBackground)}.webchat-fluent._ .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._ .webchat__modal-dialog .webchat__modal-dialog__close-button{color:var(--webchat-colorNeutralForeground1);transition:background-color var(--webchat-durationNormal) var(--webchat-curveDecelerateMid)}.webchat-fluent._ .webchat__modal-dialog .webchat__modal-dialog__close-button:not(:active):hover{background-color:var(--webchat-colorNeutralBackground3)}.webchat-fluent._ .webchat__modal-dialog .webchat__modal-dialog__close-button:focus:active{background-color:var(--webchat-colorNeutralBackground4)}.webchat-fluent._ .webchat__modal-dialog .webchat__modal-dialog__close-button:not(:focus-visible){border:none}.webchat-fluent._ .webchat__modal-dialog .webchat__modal-dialog__close-button:focus{border-color:var(--webchat-colorStrokeFocus2)}.webchat-fluent._ .webchat__modal-dialog .webchat__modal-dialog__close-button-image{fill:currentColor}.webchat-fluent._ .webchat__modal-dialog.webchat__view-code-dialog .webchat__modal-dialog__close-button-layout{display:flex;padding:var(--webchat-spacingVerticalS) var(--webchat-spacingHorizontalS)}.webchat-fluent._ .webchat__modal-dialog.webchat__view-code-dialog .webchat__modal-dialog__close-button{align-items:center;aspect-ratio:1;display:flex;height:var(--webchat-lineHeightBase300);justify-content:center;padding:0;width:unset}.webchat-fluent._ .webchat__modal-dialog.webchat__view-code-dialog .webchat__view-code-dialog__copy-button{background:transparent;border:none;color:var(--webchat-colorNeutralForeground1);height:20px;margin-block-start:var(--webchat-spacingVerticalS);padding:0;position:absolute;right:32px;top:0;transition:background-color var(--webchat-durationNormal) var(--webchat-curveDecelerateMid);width:20px}.webchat-fluent._ .webchat__modal-dialog.webchat__view-code-dialog .webchat__view-code-dialog__copy-button .webchat__code-block-copy-button__icon{background-color:currentColor}.webchat-fluent._ .webchat__modal-dialog.webchat__view-code-dialog .webchat__view-code-dialog__copy-button:hover,.webchat-fluent._ .webchat__modal-dialog.webchat__view-code-dialog .webchat__view-code-dialog__copy-button:active{background:var(--webchat-colorNeutralBackground3)}.webchat-fluent._ .webchat__modal-dialog.webchat__view-code-dialog .webchat__view-code-dialog__copy-button:focus{outline-color:var(--webchat-colorStrokeFocus2)}.webchat-fluent._ .webchat__modal-dialog.webchat__view-code-dialog .webchat__modal-dialog__box{width:fit-content}.webchat-fluent._ .webchat__modal-dialog.webchat__view-code-dialog .webchat__modal-dialog__body{margin:0;padding:var(--webchat-spacingVerticalS) var(--webchat-spacingHorizontalM)}.webchat-fluent._ .webchat__modal-dialog.webchat__view-code-dialog .webchat__view-code-dialog__title{font-size:var(--webchat-fontSizeBase300);font-weight:var(--webchat-fontWeightSemibold);line-height:var(--webchat-lineHeightBase300)}.webchat-fluent._ .webchat__modal-dialog.webchat__view-code-dialog .webchat__view-code-dialog__body{display:contents}.webchat-fluent._ .webchat__modal-dialog.webchat__view-code-dialog .webchat__view-code-dialog__code-body{background:var(--webchat__code-block--background);font-family:var(--webchat-fontFamilyMonospace);font-size:var(--webchat-fontSizeBase300);line-height:var(--webchat-fontSizeBase300);margin-inline:calc(var(--webchat-spacingHorizontalM) * -1);padding-inline:var(--webchat-spacingHorizontalM)}.webchat-fluent._ .webchat__modal-dialog.webchat__view-code-dialog .webchat__view-code-dialog__code-body:has(.shiki:focus-visible):focus-within{outline:var(--webchat-strokeWidthThick) solid var(--webchat-colorStrokeFocus2);outline-offset:calc(var(--webchat-strokeWidthThick) * -1)}.webchat-fluent._ .webchat__modal-dialog.webchat__view-code-dialog .webchat__view-code-dialog__code-body:has(.shiki:focus-visible):focus-within .shiki{outline:none}.webchat-fluent._ .webchat__modal-dialog.webchat__view-code-dialog .webchat__view-code-dialog__code-body:has(.shiki.github-light-default){--webchat__code-block--background: var(--codeBlockBackground, var(--webchat-colorGrey98))}.webchat-fluent._ .webchat__modal-dialog.webchat__view-code-dialog .webchat__view-code-dialog__code-body:has(.shiki.github-dark-default){--webchat__code-block--background: var(--codeBlockBackground, var(--webchat-colorGrey8))}.webchat-fluent._ .webchat__modal-dialog.webchat__view-code-dialog .webchat__view-code-dialog__footer{color:var(--webchat-colorNeutralForeground4);font-size:var(--webchat-fontSizeBase100);line-height:var(--webchat-lineHeightBase100)}.webchat-fluent._ .webchat__modal-dialog.webchat__view-code-dialog .webchat__view-code-dialog__link{color:var(--webchat-colorBrandForegroundLink);text-decoration-color:transparent}.webchat-fluent._ .webchat__modal-dialog.webchat__view-code-dialog .webchat__view-code-dialog__link:target{color:var(--webchat-colorBrandForegroundLinkSelected)}.webchat-fluent._ .webchat__modal-dialog.webchat__view-code-dialog .webchat__view-code-dialog__link:hover{color:var(--webchat-colorBrandForegroundLinkHover);text-decoration:underline 1px currentColor}.webchat-fluent._ .webchat__modal-dialog.webchat__view-code-dialog .webchat__view-code-dialog__link:active{color:var(--webchat-colorBrandForegroundLinkPressed)}.webchat-fluent._ .webchat__modal-dialog.webchat__view-code-dialog .webchat__view-code-dialog__link:focus-visible{outline:none;text-decoration:underline 1px double var(--webchat-colorStrokeFocus2)}.webchat-fluent._ .webchat__activity-button{background:var(--webchat-colorNeutralBackground1);border-radius:var(--webchat-borderRadiusMedium);border:var(--webchat-strokeWidthThin) solid var(--webchat-colorNeutralStroke1);color:var(--webchat-colorNeutralForeground1);gap:var(--webchat-spacingHorizontalXS);padding:5px var(--webchat-spacingHorizontalM)}.webchat-fluent._ .webchat__activity-button:hover{background:var(--webchat-colorNeutralBackground1Hover);border:var(--webchat-strokeWidthThin) solid var(--webchat-colorNeutralStroke1Hover);color:var(--webchat-colorNeutralForeground1Hover)}.webchat-fluent._ .webchat__activity-button:active{background:var(--webchat-colorNeutralBackground1Pressed);border:var(--webchat-strokeWidthThin) solid var(--webchat-colorNeutralStroke1Pressed);color:var(--webchat-colorNeutralForeground1Pressed)}.webchat-fluent._ .webchat__activity-button:focus-visible{background:var(--webchat-colorNeutralBackground1);outline:var(--webchat-strokeWidthThick) solid var(--webchat-colorStrokeFocus2);outline-offset:calc(var(--webchat-strokeWidthThick) * -1)}.webchat-fluent._ .webchat__activity-button[aria-disabled=true]{background:var(--webchat-colorNeutralBackgroundDisabled);border:var(--webchat-strokeWidthThin) solid var(--webchat-colorNeutralStrokeDisabled);color:var(--webchat-colorNeutralForegroundDisabled)}.webchat-fluent._ .webchat__activity-button .webchat__activity-button__icon{height:20px;width:20px}.webchat-fluent._ .webchat__activity-copy-button .webchat__activity-copy-button__copied-text{background-color:var(--webchat-colorNeutralBackground1)}.webchat-fluent._ .webchat__activity-copy-button.webchat__activity-copy-button--copied .webchat__activity-copy-button__copied-text{animation-duration:var(--webchat-durationUltraSlow)}.webchat-fluent._ .webchat__monochrome-image-masker{background-color:var(--webchat-colorNeutralForeground4)}.webchat-fluent .ha{align-items:center;box-sizing:border-box;color:var(--webchat-colorNeutralForeground3);display:flex;flex-direction:row;font-family:var(--webchat__font--primary);font-size:var(--webchat-fontSizeBase200);font-weight:var(--webchat-fontWeightRegular);gap:var(--webchat-spacingHorizontalM);line-height:var(--webchat-lineHeightBase200);padding:var(--webchat-spacingVerticalSNudge) var(--webchat-spacingHorizontalM);text-align:center;width:100%}.webchat-fluent .ha:before,.webchat-fluent .ha:after{border-top:var(--webchat-strokeWidthThin) solid var(--webchat-colorNeutralStroke2);content:\"\";display:flex;flex:auto;min-width:8px}.webchat-fluent .sa{text-align:center}\n/*! For license information please see botframework-webchat-fluent-theme.css.LEGAL.txt */\n",ie=Xe(ua);import{useMemo as ha}from"react";function pa(e){return ha(()=>Object.freeze(Object.fromEntries(Object.entries(e).map(([t,a])=>[t,`${t} ${a}`]))),[e])}var c=pa;import{useMemo as ma}from"react";function H(e){let t=c(e),a=V();return ma(()=>a.map(o=>t[`variant-${o}`]).filter(o=>o).join(" "),[t,a])}var le={"activity-decorator":"ee","variant-fluent":"ue","variant-copilot":"re"};import $,{memo as Na,useMemo as Sa}from"react";import{hooks as Ba}from"botframework-webchat-component";import{useMemo as fa}from"react";import{hooks as wa}from"botframework-webchat-component";var{useStyleOptions:va}=wa;function ce(e){let[t]=va();return fa(()=>Object.freeze([{...t,...e?.channelData?.webChat?.styleOptions}]),[e?.channelData?.webChat?.styleOptions,t])}import{getOrgSchemaMessage as _a}from"botframework-webchat-core";function se(e){return!!(e&&_a(e?.entities||[])?.keywords?.includes("AIGeneratedContent"))}import{useMemo as ya}from"react";import{getOrgSchemaMessage as xa}from"botframework-webchat-core";function L(e){return ya(()=>{let t=xa(e?.entities||[]);return typeof t?.author=="string"?{"@type":"Person",description:void 0,image:void 0,name:t?.author}:t?.author},[e])}var Ue={"copilot-message-header":"ve","copilot-message-header__avatar":"pe","copilot-message-header__title":"_e","copilot-message-header__ai-generated-content":"fe"};var{useLocalizer:Ta}=Ba;function Ca({activity:e}){let[{botAvatarImage:t,botAvatarBackgroundColor:a}]=ce(e),o=c(Ue),r=Ta(),n=se(e),l=Sa(()=>({"--background-color":a}),[a]),i=L(e),u=i?.image||t,p=i?.name||e?.from?.name;return $.createElement("div",{className:o["copilot-message-header"]},u&&$.createElement("img",{alt:r("AVATAR_ALT",p),className:o["copilot-message-header__avatar"],src:u,style:l}),$.createElement("span",{className:o["copilot-message-header__title"],title:p},p),n&&$.createElement("span",{className:o["copilot-message-header__ai-generated-content"]},r("ACTIVITY_CONTENT_CAUTION")))}var je=Na(Ca);function Ge({activity:e,children:t}){let a=c(le),o=V(),r=H(le),n=o.includes("copilot")&&e?.from?.role==="bot"&&!!t;return Ze.createElement("div",{className:Ha(a["activity-decorator"],r)},n&&Ze.createElement(je,{activity:e}),t)}Ge.displayName="ActivityDecorator";var de=Ma(Ge);import{getOrgSchemaMessage as Aa}from"botframework-webchat-core";function E(e){return!!(e&&Aa(e?.entities||[])?.keywords?.includes("PreChatMessage"))}import{hooks as Ja}from"botframework-webchat-component";import Qa from"classnames";import P,{memo as eo,useMemo as to}from"react";var $e={"pre-chat-message-activity":"ke","pre-chat-message-activity__body":"xe","pre-chat-message-activity__body--blueprint":"me","pre-chat-message-activity__body-avatar":"oe","pre-chat-message-activity__body-title":"ye","pre-chat-message-activity__body-subtitle":"Be","pre-chat-message-activity__toolbar":"Ne"};import{hooks as Za}from"botframework-webchat-api";import Ga from"classnames";import A,{Fragment as $a,memo as Ya}from"react";import{Components as Ea,hooks as Pa}from"botframework-webchat-component";import qe from"classnames";import O,{memo as Da,useCallback as Ia,useMemo as Ra}from"react";import{useRefFrom as Wa}from"use-ref-from";var za={preChatMessageActivityStarterPromptsCardAction:"pre-chat message activity starter prompts card action",sendBoxContainer:"send box container",sendBoxDropZone:"send box drop zone",sendBoxSendButton:"send box send button",sendBoxSuggestedAction:"send box suggested action",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"},h=za;var Ye={"pre-chat-message-activity__card-action-box":"Se","pre-chat-message-activity__card-action-image":"te",blueprintAnimation:"le","pre-chat-message-activity__card-action-subtitle":"ze","pre-chat-message-activity__card-action-title":"He"};var{useFocus:Va,useRenderMarkdownAsHTML:Oa,useSendBoxValue:Ka,useUIState:Xa}=Pa,{MonochromeImageMasker:Ua}=Ea,Je=({className:e,messageBackAction:t})=>{let[a,o]=Ka(),[r]=Xa(),n=c(Ye),l=Va(),i=Wa(t?.displayText||t?.text||""),u=Oa("message activity"),p=Ra(()=>u?{__html:u(t?.text||"")}:void 0,[t?.text,u]),s=r==="disabled",d=t&&"title"in t&&t.title,b=r==="blueprint"||!d,f=Ia(()=>{o(i.current),l("sendBox")},[l,i,o]);return b?O.createElement("div",{className:qe(e,n["pre-chat-message-activity__card-action-box"]),"data-testid":h.preChatMessageActivityStarterPromptsCardAction}):O.createElement("button",{"aria-disabled":s?!0:void 0,className:qe(e,n["pre-chat-message-activity__card-action-box"]),"data-testid":h.preChatMessageActivityStarterPromptsCardAction,onClick:s?void 0:f,tabIndex:s?-1:void 0,type:"button"},O.createElement("div",{className:n["pre-chat-message-activity__card-action-title"]},d),"image"in t&&t.image&&O.createElement(Ua,{className:n["pre-chat-message-activity__card-action-image"],src:t.image}),O.createElement("div",{className:n["pre-chat-message-activity__card-action-subtitle"],dangerouslySetInnerHTML:p}))};Je.displayName="StarterPromptsCardAction";var K=Da(Je);var Qe={"pre-chat-message-activity__card-action-toolbar":"Fe","webchat-container":"ce","pre-chat-message-activity__card-action-toolbar-grid":"ie"};var{useUIState:qa}=Za,et=({cardActions:e,className:t})=>{let a=c(Qe),[o]=qa();return A.createElement("div",{className:Ga(t,a["pre-chat-message-activity__card-action-toolbar"])},A.createElement("div",{className:a["pre-chat-message-activity__card-action-toolbar-grid"]},o==="blueprint"?A.createElement($a,null,A.createElement(K,null),A.createElement(K,null),A.createElement(K,null)):e.filter(r=>r.type==="messageBack").map((r,n)=>A.createElement(K,{key:n,messageBackAction:r}))))};et.displayName="StarterPromptsToolbar";var tt=Ya(et);var{useLocalizer:ao,useRenderMarkdownAsHTML:oo,useUIState:ro}=Ja,at=({activity:e})=>{let[t]=ro(),a=c($e),o=oo(),r=ao(),n=L(e),l=to(()=>o?{__html:o(n?.description||"")}:{__html:""},[n?.description,o]);return P.createElement("div",{className:a["pre-chat-message-activity"]},n&&P.createElement("div",{className:Qa(a["pre-chat-message-activity__body"],t==="blueprint"&&a["pre-chat-message-activity__body--blueprint"])},n.image&&P.createElement("img",{alt:r("AVATAR_ALT",n.name),className:a["pre-chat-message-activity__body-avatar"],src:n.image}),n.name&&P.createElement("h2",{className:a["pre-chat-message-activity__body-title"]},n.name),n.description&&P.createElement("div",{className:a["pre-chat-message-activity__body-subtitle"],dangerouslySetInnerHTML:l})),P.createElement(tt,{cardActions:e.suggestedActions?.actions||[],className:a["pre-chat-message-activity__toolbar"]}))};at.displayName="PreChatMessageActivity";var be=eo(at);import{hooks as Bn}from"botframework-webchat-component";import U from"classnames";import w,{memo as jt,useCallback as I,useRef as Tn,useState as Cn}from"react";import{useRefFrom as Ut}from"use-ref-from";import ot,{memo as no}from"react";function io(e){return ot.createElement("svg",{"aria-hidden":"true",className:e.className,height:"1em",viewBox:"0 0 20 20",width:"1em",xmlns:"http://www.w3.org/2000/svg"},ot.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 ue=no(io);import rt,{memo as lo}from"react";function co(e){return rt.createElement("svg",{"aria-hidden":"true",className:e.className,height:"1em",viewBox:"0 0 20 20",width:"1em",xmlns:"http://www.w3.org/2000/svg"},rt.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 he=lo(co);import nt,{memo as so}from"react";function bo(e){return nt.createElement("svg",{"aria-hidden":"true",className:e.className,height:"1em",viewBox:"0 0 16 16",width:"1em",xmlns:"http://www.w3.org/2000/svg"},nt.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 pe=so(bo);import it,{memo as uo}from"react";function ho(e){return it.createElement("svg",{"aria-hidden":"true",className:e.className,height:"1em",viewBox:"0 0 20 20",width:"1em",xmlns:"http://www.w3.org/2000/svg"},it.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 me=uo(ho);import lt,{memo as po}from"react";function mo(e){return lt.createElement("svg",{"aria-hidden":"true",className:e.className,height:"1em",viewBox:"0 0 20 20",width:"1em",xmlns:"http://www.w3.org/2000/svg"},lt.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 ge=po(mo);import{hooks as fo}from"botframework-webchat-component";import wo from"classnames";import st,{memo as vo,useCallback as _o,useEffect as yo,useRef as xo,useState as ko}from"react";import{useRefFrom as No}from"use-ref-from";var ct={"sendbox__attachment-drop-zone":"Xe","sendbox__attachment-drop-zone--droppable":"Le","sendbox__attachment-drop-zone-icon":"Me"};var{useLocalizer:So}=fo,Bo=e=>{e.preventDefault()},dt=e=>!!e.dataTransfer?.types?.some(t=>t.toLowerCase()==="files");function To(e,t){let a=e.parentNode;for(;a;){if(a===t)return!0;a=a.parentNode}return!1}var bt=e=>{let[t,a]=ko(!1),o=c(ct),r=xo(null),n=So(),l=No(e.onFilesAdded);yo(()=>{let u=0,p=b=>{u++,dt(b)&&a(r.current&&(b.target===r.current||b.target instanceof HTMLElement&&To(b.target,r.current))?"droppable":"visible")},s=()=>--u<=0&&a(!1),d=()=>{u=0,a(!1)};return document.addEventListener("dragenter",p,!1),document.addEventListener("dragleave",s,!1),document.addEventListener("dragend",d,!1),()=>{document.removeEventListener("dragenter",p),document.removeEventListener("dragleave",s),document.removeEventListener("dragend",d)}},[a]);let i=_o(u=>{u.preventDefault(),a(!1),dt(u.nativeEvent)&&l.current([...u.dataTransfer.files])},[l,a]);return t?st.createElement("div",{className:wo(o["sendbox__attachment-drop-zone"],{[o["sendbox__attachment-drop-zone--droppable"]]:t==="droppable"}),"data-testid":h.sendBoxDropZone,onDragOver:Bo,onDrop:i,ref:r},st.createElement(ue,{className:o["sendbox__attachment-drop-zone-icon"]}),n("TEXT_INPUT_DROP_ZONE")):null};bt.displayName="DropZone";var fe=vo(bt);import{hooks as er}from"botframework-webchat-component";import tr from"classnames";import Y,{memo as ar,useCallback as or}from"react";function we(e){let{title:t}=e,{type:a,value:o}=e;return a==="messageBack"?t||e.displayText:t||(typeof o=="string"?o:JSON.stringify(o))}import Co,{createContext as Ho,memo as Mo,useCallback as D,useContext as Ao,useEffect as Fo,useMemo as zo,useRef as ve}from"react";var ut=Ho({itemEffector:()=>{throw new Error("botframework-webchat-fluent-theme rovingFocus: no provider for RovingFocusContext.")}});function Lo(e){let t=ve(0),a=ve([]),o=D(({current:s},d)=>s&&(s.tabIndex=t.current===d?0:-1),[t]),r=D(s=>{let d;typeof s=="number"?d=s:d=s(t.current),d&&!a.current.at(d)?.current&&(d=0),t.current!==d&&(t.current=d,a.current.forEach((b,f)=>o(b,f)),a.current.at(d)?.current?.focus())},[o,a,t]),n=D(s=>{let{target:d}=s,b=a.current.findIndex(({current:f})=>f===d);b!==-1&&r(b)},[a,r]),l=D(s=>d=>{let b=!e.direction,f=/up|down/iu.test(s)&&e.direction==="vertical",x=/left|right/iu.test(s)&&e.direction==="horizontal",m=/right|down/iu.test(s),k=b||f||x?m?1:-1:0,N=a.current.map((T,C)=>C),S=N.indexOf(d)+k;return N.at(S)??0},[e.direction]),i=D(s=>{let{key:d}=s;switch(d){case"Up":case"ArrowUp":case"Left":case"ArrowLeft":case"Down":case"ArrowDown":case"Right":case"ArrowRight":r(l(d));break;case"Home":r(0);break;case"End":r(-1);break;case"Escape":e.onEscapeKey?.();break;default:return}s.preventDefault(),s.stopPropagation()},[r,l,e]),u=D((s,d)=>{let{current:b}=s;return a.current[Number(d)]=s,b.addEventListener("focus",n),b.addEventListener("keydown",i),o(s,d),()=>{b.removeEventListener("focus",n),b.removeEventListener("keydown",i),delete a.current[Number(d)]}},[n,i,o,a]),p=zo(()=>({itemEffector:u}),[u]);return Co.createElement(ut.Provider,{value:p},e.children)}function ht(e){let t=ve(null),{itemEffector:a}=Ao(ut);return Fo(()=>a(t,e)),t}var pt=Mo(Lo);import{hooks as Oo}from"botframework-webchat-component";import Ko from"classnames";import _e,{memo as Xo,useCallback as Uo}from"react";import Eo,{forwardRef as Po,memo as Do,useRef as Io}from"react";var Ro=e=>e.preventDefault(),Wo=Po(({"aria-hidden":e,children:t,className:a,"data-testid":o,disabled:r,onClick:n,tabIndex:l},i)=>{let u=Io(null);return Eo.createElement("button",{"aria-disabled":r?"true":void 0,"aria-hidden":e,className:a,"data-testid":o,onClick:r?Ro:n,ref:i||u,tabIndex:r?-1:l,type:"button"},t)}),mt=Do(Wo);var gt={"suggested-action":"We","suggested-action__image":"Ve"};var{useFocus:jo,usePerformCardAction:Zo,useScrollToEnd:Go,useStyleSet:$o,useSuggestedActions:Yo,useUIState:qo}=Oo;function Jo({buttonText:e,className:t,displayText:a,image:o,imageAlt:r,itemIndex:n,text:l,type:i,value:u}){let[p,s]=Yo(),[{suggestedAction:d}]=$o(),[b]=qo(),f=jo(),x=ht(n),m=Zo(),k=c(gt),N=Go(),S=Uo(({target:T})=>{(async function(){await f("sendBoxWithoutKeyboard"),m({displayText:a,text:l,type:i,value:u},{target:T}),i==="openUrl"&&s([]),N()})()},[a,f,m,N,s,l,i,u]);return _e.createElement(mt,{className:Ko(k["suggested-action"],d+"",(t||"")+""),"data-testid":h.sendBoxSuggestedAction,disabled:b==="disabled",onClick:S,ref:x,type:"button"},o&&_e.createElement("img",{alt:r,className:k["suggested-action__image"],src:o}),_e.createElement("span",null,e))}var ft=Xo(Jo);var ye={"suggested-actions":"Re","suggested-actions--flow":"Te","suggested-actions--stacked":"Pe"};var{useFocus:rr,useLocalizer:nr,useStyleOptions:ir,useStyleSet:lr,useSuggestedActions:cr,useUIState:sr}=er;function dr(e){let[{suggestedActionLayout:t}]=ir(),[{suggestedActions:a}]=lr(),[o]=sr(),r=c(ye);return Y.createElement("div",{"aria-label":e["aria-label"],"aria-orientation":"vertical",className:tr(r["suggested-actions"],a+"",{[r["suggested-actions--flow"]]:t==="flow",[r["suggested-actions--stacked"]]:t!=="flow"},e.className),role:"toolbar"},o!=="blueprint"&&e.children)}function br(){let e=c(ye),t=nr(),[a,o,{activity:r}]=cr(),n=rr(),l=or(()=>{n("sendBox")},[n]),i=E(r)?[]:a.map((u,p)=>{let{displayText:s,image:d,imageAltText:b,text:f,type:x,value:m}=u;return a?.length?Y.createElement(ft,{buttonText:we(u),displayText:s,image:d,imageAlt:d&&(b||f),itemIndex:p,key:p,text:f,type:x,value:m}):null});return Y.createElement(pt,{onEscapeKey:l},Y.createElement(dr,{"aria-label":t("SUGGESTED_ACTIONS_LABEL_ALT"),className:e["suggested-actions"]},i))}var xe=ar(br);import hr,{memo as pr,useMemo as mr,useState as gr}from"react";import{createContext as ur}from"react";var wt=ur(new Proxy({},{get(){throw new Error("botframework-webchat: This hook can only used under its corresponding <Provider>.")}}));wt.displayName="TelephoneKeypad.Context";var q=wt;var fr=pr(({children:e})=>{let[t,a]=gr(!1),o=mr(()=>Object.freeze({setShown:a,shown:t}),[a,t]);return hr.createElement(q.Provider,{value:o},e)}),ke=fr;import Ar,{memo as Fr}from"react";import{Components as Br}from"botframework-webchat-component";import Tr from"classnames";import g,{memo as xt,useCallback as y,useEffect as Cr,useRef as Hr}from"react";import{useRefFrom as yt}from"use-ref-from";import Ne,{forwardRef as vr,memo as _r,useCallback as yr}from"react";import{useRefFrom as xr}from"use-ref-from";var vt={"telephone-keypad__button":"ne","telephone-keypad__button__ruby":"be","telephone-keypad__button__text":"de","telephone-keypad--horizontal":"Ce"};var _t=_r(vr(({button:e,"data-testid":t,onClick:a,ruby:o},r)=>{let n=c(vt),l=xr(a),i=yr(()=>l.current?.(),[l]);return Ne.createElement("button",{className:n["telephone-keypad__button"],"data-testid":t,onClick:i,ref:r,type:"button"},Ne.createElement("span",{className:n["telephone-keypad__button__text"]},e==="*"?"\u2217":e),!!o&&Ne.createElement("ruby",{className:n["telephone-keypad__button__ruby"]},o))}));_t.displayName="TelephoneKeypad.Button";var _=_t;import{useContext as kr,useMemo as Nr}from"react";function B(){let{setShown:e,shown:t}=kr(q);return Nr(()=>Object.freeze([t,e]),[t,e])}var Se={"telephone-keypad":"De","telephone-keypad__box":"Ge","telephone-keypad__info-message":"Ue","telephone-keypad__info-message-link":"je"};var{LocalizedString:Mr}=Br,kt=xt(({children:e,isHorizontal:t})=>{let a=c(Se);return t?null:g.createElement("div",{className:a["telephone-keypad__box"]},e)});kt.displayName="TelephoneKeypad:Orientation";var Nt=xt(({autoFocus:e,className:t,onButtonClick:a,isHorizontal:o})=>{let r=yt(e),n=c(Se),l=Hr(null),i=yt(a),[,u]=B(),p=y(()=>i.current?.("1"),[i]),s=y(()=>i.current?.("2"),[i]),d=y(()=>i.current?.("3"),[i]),b=y(()=>i.current?.("4"),[i]),f=y(()=>i.current?.("5"),[i]),x=y(()=>i.current?.("6"),[i]),m=y(()=>i.current?.("7"),[i]),k=y(()=>i.current?.("8"),[i]),N=y(()=>i.current?.("9"),[i]),S=y(()=>i.current?.("0"),[i]),T=y(()=>i.current?.("*"),[i]),C=y(()=>i.current?.("#"),[i]),z=y(j=>{j.key==="Escape"&&u(!1)},[u]);return Cr(()=>{r.current&&l.current?.focus()},[r,l]),g.createElement("div",{className:Tr(n["telephone-keypad"],t),onKeyDown:z},g.createElement(kt,{isHorizontal:o},g.createElement(_,{button:"1","data-testid":h.sendBoxTelephoneKeypadButton1,onClick:p,ref:l}),g.createElement(_,{button:"2","data-testid":h.sendBoxTelephoneKeypadButton2,onClick:s,ruby:"ABC"}),g.createElement(_,{button:"3","data-testid":h.sendBoxTelephoneKeypadButton3,onClick:d,ruby:"DEF"}),g.createElement(_,{button:"4","data-testid":h.sendBoxTelephoneKeypadButton4,onClick:b,ruby:"GHI"}),g.createElement(_,{button:"5","data-testid":h.sendBoxTelephoneKeypadButton5,onClick:f,ruby:"JKL"}),g.createElement(_,{button:"6","data-testid":h.sendBoxTelephoneKeypadButton6,onClick:x,ruby:"MNO"}),g.createElement(_,{button:"7","data-testid":h.sendBoxTelephoneKeypadButton7,onClick:m,ruby:"PQRS"}),g.createElement(_,{button:"8","data-testid":h.sendBoxTelephoneKeypadButton8,onClick:k,ruby:"TUV"}),g.createElement(_,{button:"9","data-testid":h.sendBoxTelephoneKeypadButton9,onClick:N,ruby:"WXYZ"}),g.createElement(_,{button:"*","data-testid":h.sendBoxTelephoneKeypadButtonStar,onClick:T}),g.createElement(_,{button:"0","data-testid":h.sendBoxTelephoneKeypadButton0,onClick:S,ruby:"+"}),g.createElement(_,{button:"#","data-testid":h.sendBoxTelephoneKeypadButtonPound,onClick:C})),g.createElement("div",{className:n["telephone-keypad__info-message"]},g.createElement(pe,null),g.createElement(Mr,{linkClassName:n["telephone-keypad__info-message-link"],stringIds:"TELEPHONE_KEYPAD_INPUT_MESSAGE"})))});Nt.displayName="TelephoneKeypad";var St=Nt;var Bt=Fr(e=>B()[0]?Ar.createElement(St,{...e}):null);Bt.displayName="TelephoneKeypad.Surrogate";var Be=Bt;import{hooks as Dr}from"botframework-webchat-component";import Q,{useCallback as Ht,useRef as Ir,memo as Rr}from"react";import{useRefFrom as Wr}from"use-ref-from";import{hooks as Lr}from"botframework-webchat-api";import Te from"classnames";import Ce,{memo as He}from"react";var J={sendbox__toolbar:"Ie","sendbox__toolbar-button":"Ae","sendbox__toolbar-button--selected":"Ee","sendbox__toolbar-separator":"qe"};var{useUIState:Tt}=Lr,Er=e=>e.preventDefault(),F=He(e=>{let t=c(J),[a]=Tt(),o=e.disabled||a==="disabled";return Ce.createElement("button",{"aria-disabled":o?"true":void 0,"aria-label":e["aria-label"],className:Te(t["sendbox__toolbar-button"],e.className,{[t["sendbox__toolbar-button--selected"]]:e.selected}),"data-testid":e["data-testid"],onClick:o?Er:e.onClick,tabIndex:o?-1:void 0,type:e.type==="submit"?"submit":"button"},e.children)});F.displayName="ToolbarButton";var Me=He(e=>{let[t]=Tt(),a=c(J);return Ce.createElement("div",{className:Te(a.sendbox__toolbar,e.className)},t!=="blueprint"&&e.children)});Me.displayName="Toolbar";var Ae=He(e=>{let t=c(J);return Ce.createElement("div",{"aria-orientation":"vertical",className:Te(t["sendbox__toolbar-separator"],e.className),role:"separator"})});Ae.displayName="ToolbarSeparator";var Ct={"sendbox__add-attachment":"Je","sendbox__add-attachment-input":"Ke"};var{useLocalizer:Vr,useStyleOptions:Or}=Dr;function Kr(e){let t=Ir(null),a=c(Ct),o=Vr(),[{uploadAccept:r,uploadMultiple:n}]=Or(),l=Wr(e.onFilesAdded),i=Ht(()=>t.current?.click(),[t]),u=Ht(({target:{files:p}})=>{p&&(l.current?.([...p]),t.current&&(t.current.value=""))},[t,l]);return Q.createElement("div",{className:a["sendbox__add-attachment"]},Q.createElement("input",{accept:r,"aria-disabled":e.disabled,"aria-hidden":"true",className:a["sendbox__add-attachment-input"],multiple:n,onInput:e.disabled?void 0:u,readOnly:e.disabled,ref:t,role:"button",tabIndex:-1,type:"file"}),Q.createElement(F,{"aria-label":o("TEXT_INPUT_UPLOAD_BUTTON_ALT"),"data-testid":h.sendBoxUploadButton,onClick:i},Q.createElement(he,null)))}var Mt=Rr(Kr);import{hooks as Ur}from"botframework-webchat-component";import jr from"classnames";import Zr,{memo as Gr}from"react";var At={sendbox__attachment:"Oe"};var{useLocalizer:$r,useUIState:Yr}=Ur,qr={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 Jr({attachments:e,className:t}){let[a]=Yr(),o=c(At),r=$r({plural:!0});return a!=="blueprint"&&e.length?Zr.createElement("div",{className:jr(o.sendbox__attachment,t)},r(qr,e.length)):null}var Ft=Gr(Jr);import{useLiveRegion as en}from"botframework-webchat-component/internal";import Lt,{memo as tn}from"react";var zt={"sendbox__error-message":"Qe"};function Et({error:e,id:t}){let a=c(zt);return en(()=>e&&Lt.createElement("div",{className:"sendbox__error-message__status"},e),[e]),Lt.createElement("span",{className:a["sendbox__error-message"],id:t},e)}Et.displayName="ErrorMessage";var Pt=tn(Et);import{hooks as an}from"botframework-webchat-component";import{useCallback as on,useMemo as Dt,useState as rn}from"react";import{useRefFrom as nn}from"use-ref-from";var{useConnectivityStatus:ln,useLocalizer:cn}=an,sn=({attachments:e,message:t})=>{let[a]=ln(),[o,r]=rn(),n=cn(),l=nn(a!=="connected"&&a!=="reconnected"?"offline":!t&&!e.length?"empty":void 0),i=Dt(()=>Object.freeze(new Map().set("empty",n("SEND_BOX_IS_EMPTY_TOOLTIP_ALT")).set("offline",n("CONNECTIVITY_STATUS_ALT_FATAL"))),[n]),u=!!t?.trim();o==="empty"&&u&&r(void 0);let p=on(()=>(r(l.current),l.current),[l]);return Dt(()=>Object.freeze([o&&i.get(o),p]),[o,i,p])},It=sn;import{useCallback as dn}from"react";import{hooks as bn}from"botframework-webchat-component";var{useScrollDown:un,useScrollUp:hn}=bn;function Fe(){let e=un(),t=hn();return dn(a=>{if(a.target instanceof HTMLTextAreaElement&&a.target.value)return;let{ctrlKey:o,metaKey:r,shiftKey:n}=a;if(o||r||n)return;let l=!0;switch(a.key){case"End":e({displacement:1/0});break;case"Home":t({displacement:1/0});break;case"PageDown":e();break;case"PageUp":t();break;default:l=!1;break}l&&(a.preventDefault(),a.stopPropagation())},[e,t])}import{useMemo as pn}from"react";function ze(e){let t=pn(()=>Math.random().toString(36).substr(2,5),[]);return e=e?`${e}--`:"",`${e}${t}`}var Le={sendbox:"he","variant-copilot":"Ye","sendbox__text-counter":"se","sendbox__text-counter--error":"ge",sendbox__sendbox:"Ze","sendbox__attachment--in-grid":"we","sendbox__text-area--in-grid":"ea","sendbox__sendbox-controls--in-grid":"aa","sendbox__telephone-keypad--in-grid":"ra","sendbox__sendbox-text":"oa","sendbox__sendbox-controls":"ta"};import Rt,{memo as gn,useCallback as fn}from"react";import{hooks as wn}from"botframework-webchat-component";var{useLocalizer:vn}=wn,Wt=gn(()=>{let[e,t]=B(),a=vn(),o=fn(()=>t(r=>!r),[t]);return Rt.createElement(F,{"aria-label":a("TEXT_INPUT_TELEPHONE_KEYPAD_BUTTON_ALT"),"data-testid":h.sendBoxTelephoneKeypadToolbarButton,onClick:o,selected:e},Rt.createElement(ge,null))});Wt.displayName="SendBox.TelephoneKeypadToolbarButton";var Vt=Wt;import{hooks as yn}from"botframework-webchat-api";import ee from"classnames";import X,{forwardRef as xn,Fragment as kn,useCallback as Nn}from"react";var Ot={"sendbox__text-area":"la","sendbox__text-area--hidden":"ca","sendbox__text-area-shared":"ia","sendbox__text-area-doppelganger":"na","sendbox__text-area-input":"ba","sendbox__text-area-input--scroll":"da"};var{useUIState:Sn}=yn,Kt=xn((e,t)=>{let[a]=Sn(),o=c(Ot),r=a==="disabled",n=Nn(l=>{!l.shiftKey&&l.key==="Enter"&&(l.preventDefault(),"form"in l.target&&l.target.form instanceof HTMLFormElement&&l.target?.form?.requestSubmit())},[]);return X.createElement("div",{className:ee(o["sendbox__text-area"],{[o["sendbox__text-area--hidden"]]:e.hidden},e.className),role:e.hidden?"hidden":void 0},a==="blueprint"?X.createElement("div",{className:ee(o["sendbox__text-area-doppelganger"],o["sendbox__text-area-input--scroll"],o["sendbox__text-area-shared"])}," "):X.createElement(kn,null,X.createElement("div",{className:ee(o["sendbox__text-area-doppelganger"],o["sendbox__text-area-input--scroll"],o["sendbox__text-area-shared"])},e.value||e.placeholder," "),X.createElement("textarea",{"aria-disabled":r,"aria-label":e["aria-label"],className:ee(o["sendbox__text-area-input"],o["sendbox__text-area-input--scroll"],o["sendbox__text-area-shared"]),"data-testid":e["data-testid"],onInput:e.onInput,onKeyDown:n,placeholder:e.placeholder,readOnly:r,ref:t,rows:e.startRows??1,tabIndex:e.hidden?-1:void 0,value:e.value})))});Kt.displayName="TextArea";var Xt=Kt;var{useFocus:Hn,useLocalizer:Mn,useMakeThumbnail:An,useRegisterFocusSendBox:Fn,useSendBoxAttachments:zn,useSendBoxValue:Ln,useSendMessage:En,useStyleOptions:Pn,useUIState:Dn}=Bn;function Zt(e){let[{hideTelephoneKeypadButton:t,hideUploadButton:a,maxMessageLength:o}]=Pn(),[r,n]=zn(),[l,i]=Ln(),[u,p]=Cn(""),[s]=B(),[d]=Dn(),b=c(Le),f=H(Le),x=ze("sendbox__error-message-id"),m=Tn(null),k=Mn(),N=An(),S=En(),T=Hn(),C=e.isPrimary?l:u,z=e.isPrimary?i:p,j=d==="blueprint",[De,Ie]=It({message:C,attachments:r}),R=!!o&&C.length>o,qt=!j&&!s&&o&&isFinite(o),Re=!j&&s;Fn(I(({noKeyboard:v,waitUntil:Z})=>{m.current&&(v?Z((async()=>{let W=m.current?.getAttribute("readonly");m.current?.setAttribute("readonly","true"),await new Promise(G=>setTimeout(G,0)),m.current?.focus(),typeof W!="string"?m.current?.removeAttribute("readonly"):m.current?.setAttribute("readonly",W)})()):m.current?.focus())},[m]));let We=Ut(r),Ve=Ut(C),Jt=I(v=>{"tabIndex"in v.target&&typeof v.target.tabIndex=="number"&&v.target.tabIndex>=0||T("sendBox")},[T]),Qt=I(v=>z(v.currentTarget.value),[z]),Oe=I(async v=>{let Z=Object.freeze(await Promise.all(v.map(W=>N(W).then(G=>Object.freeze({blob:W,...G&&{thumbnailURL:G}})))));n(Z)},[N,n]),ea=I(v=>{v.preventDefault(),Ie()!=="empty"&&!R&&(S(Ve.current,void 0,{attachments:We.current}),z(""),n([])),T("sendBox")},[Ie,R,T,S,z,Ve,We,n]),ta=I(v=>S(`/DTMFKey ${v}`),[S]),aa=Fe(),oa={"aria-invalid":"false",...De&&{"aria-describedby":x,"aria-errormessage":x,"aria-invalid":"true"}};return w.createElement("form",{...oa,className:U(b.sendbox,f,e.className),"data-testid":h.sendBoxContainer,onSubmit:ea},w.createElement(xe,null),w.createElement("div",{className:U(b.sendbox__sendbox),onClickCapture:Jt,onKeyDown:aa},w.createElement(Xt,{"aria-label":k(R?"TEXT_INPUT_LENGTH_EXCEEDED_ALT":"TEXT_INPUT_ALT"),className:U(b["sendbox__sendbox-text"],b["sendbox__text-area--in-grid"]),"data-testid":h.sendBoxTextBox,hidden:Re,onInput:Qt,placeholder:e.placeholder??k("TEXT_INPUT_PLACEHOLDER"),ref:m,value:C}),w.createElement(Be,{autoFocus:!0,className:b["sendbox__telephone-keypad--in-grid"],isHorizontal:!1,onButtonClick:ta}),w.createElement(Ft,{attachments:r,className:b["sendbox__attachment--in-grid"]}),w.createElement("div",{className:U(b["sendbox__sendbox-controls"],b["sendbox__sendbox-controls--in-grid"])},qt&&w.createElement("div",{className:U(b["sendbox__text-counter"],{[b["sendbox__text-counter--error"]]:R})},`${C.length}/${o}`),w.createElement(Me,null,!t&&w.createElement(Vt,null),!a&&w.createElement(Mt,{onFilesAdded:Oe}),w.createElement(Ae,null),w.createElement(F,{"aria-label":k("TEXT_INPUT_SEND_BUTTON_ALT"),"data-testid":h.sendBoxSendButton,disabled:R||Re,type:"submit"},w.createElement(me,null)))),w.createElement(fe,{onFilesAdded:Oe}),w.createElement(Pt,{error:De,id:x})))}var te=jt(e=>w.createElement(Zt,{...e,isPrimary:!0}));te.displayName="PrimarySendBox";var In=jt(Zt);import Wn from"react";import Vn from"classnames";var Ee={theme:"_","variant-copilot":"ae"};var On="webchat-fluent";function ae(e){let t=c(Ee),a=H(Ee);return Wn.createElement("div",{className:Vn(On,t.theme,a)},e.children)}function oe(e){return!!(e&&e.from.role==="channel"&&e.type==="message"&&"text"in e)}import $t,{memo as Xn}from"react";var Gt={"liner-message-activity":"ha","liner-message-activity__text":"sa"};var Yt=({activity:e})=>{let t=c(Gt);return $t.createElement("div",{className:t["liner-message-activity"],role:"separator"},$t.createElement("span",{className:t["liner-message-activity__text"]},e.text))};Yt.displayName="LinerMessageActivity";var Pe=Xn(Yt);var{ThemeProvider:Gn}=Un,$n=Object.freeze([()=>e=>(...t)=>{let a=t[0]?.activity;if(E(a))return()=>M.createElement(be,{activity:a});if(oe(a))return()=>M.createElement(Pe,{activity:a});let o=e(...t);return o&&((...r)=>M.createElement(de,{activity:a},o(...r)))}]),Yn=[()=>()=>()=>te],qn=ie(),Jn=({children:e,variant:t="fluent"})=>M.createElement(Ke,{variant:t},M.createElement(ae,null,M.createElement(ke,null,M.createElement(Gn,{activityMiddleware:$n,sendBoxMiddleware:Yn,styles:qn},M.createElement(jn,null,e))))),Qn=Zn(Jn);var ti="tsup",ai="esmodules",oi="4.18.1-main.20241104.b245b63",Sb={buildTool:ti,moduleFormat:ai,version:oi};ei("botframework-webchat:fluent-theme","version=4.18.1-main.20241104.b245b63; build-tool=tsup; module-format=esmodules");export{Qn as FluentThemeProvider,Sb as buildInfo,h as testIds};
2
2
  /*! For license information please see botframework-webchat-fluent-theme.mjs.LEGAL.txt */
3
3
  //# sourceMappingURL=botframework-webchat-fluent-theme.mjs.map