import{a}from"./chunk-PBKFQJBF.js";import{G as s}from"./chunk-FT5KXS5Y.js";import{useContext as y}from"react";import{createContext as c}from"react";var m=c(void 0),u=m;function e(){let t=y(u);if(!t)throw new Error("This hook can only be used on component that is decendants of <ComposerWithAdaptiveCards>");return t}function S(){let{adaptiveCardsPackage:t}=e();return[t]}function r(){let[t]=a.useStyleOptions();return[t]}var g=a.useStyleSet;function A(){let[t]=g();return Object.freeze([t])}import{useMemo as x}from"react";var v={adaptiveCardsParserMaxVersion:void 0,cardEmphasisBackgroundColor:"#F9F9F9",cardPushButtonBackgroundColor:"#0063B1",cardPushButtonTextColor:"White",richCardWrapTitle:!1},p=v;function i(t){return{...p,...t}}function n(t){let{accent:o,bubbleTextColor:d,cardEmphasisBackgroundColor:f,primaryFont:C,subtle:l}={...s(t),...i(t)};return{containerStyles:{default:{foregroundColors:{default:{default:d,subtle:l},accent:{default:o,subtle:"#0078D4"},attention:{default:"#D13438",subtle:"#A4262C"},dark:{default:"#000000",subtle:"#646464"},good:{default:"#0B6A0B",subtle:"#028A02"},light:{default:"#FFFFFF",subtle:l},warning:{default:"#B75C00",subtle:"#986F0B"}}},emphasis:{backgroundColor:f,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:C,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 F(){let{hostConfigFromProps:t}=e(),[o]=r();return[x(()=>t||n(o),[t,o])]}export{i as a,u as b,S as c,r as d,A as e,F as f};
//# sourceMappingURL=chunk-A4KCEU3X.js.map
