import{useContext as c}from"react";import{createContext as f}from"react";var C=f(void 0),l=C;function e(){let t=c(l);if(!t)throw new Error("This hook can only be used on component that is decendants of <ComposerWithAdaptiveCards>");return t}function m(){let{adaptiveCardsPackage:t}=e();return[t]}import{hooks as y}from"botframework-webchat-component";function a(){let[t]=y.useStyleOptions();return[t]}import{hooks as S}from"botframework-webchat-component";var g=S.useStyleSet;function A(){let[t]=g();return Object.freeze([t])}import{useMemo as F}from"react";import{normalizeStyleOptions as x}from"botframework-webchat-api";var v={adaptiveCardsParserMaxVersion:void 0,cardEmphasisBackgroundColor:"#F9F9F9",cardPushButtonBackgroundColor:"#0063B1",cardPushButtonTextColor:"White",richCardWrapTitle:!1},s=v;function r(t){return{...s,...t}}function i(t){let{accent:o,bubbleTextColor:n,cardEmphasisBackgroundColor:u,primaryFont:p,subtle:d}={...x(t),...r(t)};return{containerStyles:{default:{foregroundColors:{default:{default:n,subtle:d},accent:{default:o,subtle:"#0078D4"},attention:{default:"#D13438",subtle:"#A4262C"},dark:{default:"#000000",subtle:"#646464"},good:{default:"#0B6A0B",subtle:"#028A02"},light:{default:"#FFFFFF",subtle:d},warning:{default:"#B75C00",subtle:"#986F0B"}}},emphasis:{backgroundColor:u,foregroundColors:{default:{default:"#000000",subtle:"#484644"}}},accent:{backgroundColor:"#C7DEF9",foregroundColors:{default:{default:"#333333",subtle:"#484644"}}},good:{backgroundColor:"#CCFFCC",foregroundColors:{default:{default:"#333333",subtle:"#484644"}}},attention:{backgroundColor:"#FFC5B2",foregroundColors:{default:{default:"#333333",subtle:"#484644"}}},warning:{backgroundColor:"#FFE2B2",foregroundColors:{default:{default:"#333333",subtle:"#484644"}}}},supportsInteractivity:!0,fontFamily:p,imageSizes:{small:40,medium:80,large:160},actions:{actionAlignment:"stretch",actionsOrientation:"vertical",buttonSpacing:8,maxActions:100,showCard:{actionMode:"inline",inlineTopMargin:8},spacing:"default"},adaptiveCard:{allowCustomStyle:!1},imageSet:{imageSize:"medium",maxImageHeight:100},factSet:{title:{color:"default",size:"default",isSubtle:!1,weight:"bolder",wrap:!0,maxWidth:150},value:{color:"default",size:"default",isSubtle:!1,weight:"default",wrap:!0},spacing:8},textBlock:{headingLevel:2}}}function h(){let{hostConfigFromProps:t}=e(),[o]=a();return[F(()=>t||i(o),[t,o])]}export{r as a,l as b,m as c,a as d,A as e,h as f};
//# sourceMappingURL=chunk-KIKUB5LF.mjs.map