{"version":3,"file":"FunctionIcon.CVVZ3zB5.mjs","names":[],"sources":["https:/framerusercontent.com/modules/EAwhMnwIZCgABfufU1mn/vuPEP0YzOtzxViQ8oIBH/FunctionIcon.js"],"sourcesContent":["// Welcome to Code in Framer\n// Get Started: https://www.framer.com/developers/\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * These annotations control how your component sizes\n * Learn more: https://www.framer.com/developers/components/auto-sizing\n *\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */export default function FunctionIcon(props){let colors={\"AI & Machine Learning\":{color:\"#389e0d\",background:\"#f6ffed\",borderColor:\"#b7eb8f\"},\"APIs & External Services\":{color:\"#c41d7f\",background:\"#fff0f6\",borderColor:\"#ffadd2\"},Other:{color:\"#531dab\",background:\"#f9f0ff\",borderColor:\"#d3adf7\"}};// Get the color from category, or default to \"green\"\nconst iconColor=props.category&&colors[props.category]?colors[props.category].color:\"black\";let style={...colors[props.category],padding:\"0 7px\",background:colors[props.category].background,height:\"100%\",borderRadius:\"2px\",display:\"flex\",border:\"1px solid\",justifyContent:\"center\",alignItems:\"center\",overflow:\"hidden\"};const categoryColors=colors[props.category]||colors[\"Other\"];return /*#__PURE__*/_jsx(\"div\",{style:style,children:/*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"100%\",display:\"inline-block\",background:categoryColors.background,backgroundColor:categoryColors.color,WebkitMask:`url('${props.icon}') no-repeat center / contain`,mask:`url('${props.icon}') no-repeat center / contain`}})});}FunctionIcon.defaultProps={category:\"AI & Machine Learning\",icon:\"https://storage.googleapis.com/moonlit-public-assets/icons/AlertOutline.svg\"};// Styles are written in object syntax\n// Learn more: https://reactjs.org/docs/dom-elements.html#style\nconst containerStyle={height:\"100%\",display:\"flex\",justifyContent:\"center\",alignItems:\"center\",overflow:\"hidden\"};addPropertyControls(FunctionIcon,{category:{title:\"Category\",type:ControlType.String},icon:{title:\"Icon\",type:ControlType.String}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FunctionIcon\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"any\",\"framerSupportedLayoutWidth\":\"any\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FunctionIcon.map"],"mappings":"iOAQG,SAAwB,EAAa,EAAM,CAAC,IAAI,EAAO,CAAC,wBAAwB,CAAC,MAAM,UAAU,WAAW,UAAU,YAAY,UAAU,CAAC,2BAA2B,CAAC,MAAM,UAAU,WAAW,UAAU,YAAY,UAAU,CAAC,MAAM,CAAC,MAAM,UAAU,WAAW,UAAU,YAAY,UAAU,CAAC,CAC3R,EAAM,UAAU,EAAO,EAAM,WAAU,EAAO,EAAM,UAAU,MAAc,IAAI,EAAM,CAAC,GAAG,EAAO,EAAM,UAAU,QAAQ,QAAQ,WAAW,EAAO,EAAM,UAAU,WAAW,OAAO,OAAO,aAAa,MAAM,QAAQ,OAAO,OAAO,YAAY,eAAe,SAAS,WAAW,SAAS,SAAS,SAAS,CAAO,EAAe,EAAO,EAAM,WAAW,EAAO,MAAS,OAAoB,EAAK,MAAM,CAAO,QAAM,SAAsB,EAAK,MAAM,CAAC,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,QAAQ,eAAe,WAAW,EAAe,WAAW,gBAAgB,EAAe,MAAM,WAAW,QAAQ,EAAM,KAAK,+BAA+B,KAAK,QAAQ,EAAM,KAAK,+BAA+B,CAAC,CAAC,CAAC,CAAC,kBAP3pB,IAAoD,CAOymB,EAAa,aAAa,CAAC,SAAS,wBAAwB,KAAK,8EAA8E,CAEruB,EAAoB,EAAa,CAAC,SAAS,CAAC,MAAM,WAAW,KAAK,EAAY,OAAO,CAAC,KAAK,CAAC,MAAM,OAAO,KAAK,EAAY,OAAO,CAAC,CAAC"}