{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/xwmmLiR3CC4FXXYz8XsN/v1RJOcnfNWDJrh6rM0fD/Twemoji.js"],
  "sourcesContent": ["import{jsx as _jsx}from\"react/jsx-runtime\";import{useMemo}from\"react\";import{addPropertyControls,ControlType}from\"framer\";import twemojiParser from\"https://jspm.dev/twemoji-parser@14.0.0\";const fireSrc=\"https://cdnjs.cloudflare.com/ajax/libs/twemoji/14.0.2/svg/1f525.svg\";const baseURL=\"https://cdnjs.cloudflare.com/ajax/libs/twemoji/14.0.2/svg/\";/**\n * TWEMOJI\n *\n * Convert any emoji into a Twemoji from Twitter. Choose a preset or type in your emoji and the Twemoji will automatically appear on the canvas.\n *\n * ```jsx\n * <Twemoji search=\"\uD83C\uDF50\" />\n * ```\n *\n * @framerIntrinsicWidth 100\n * @framerIntrinsicHeight 100\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */ export function Twemoji(props){const{search,isSelection,selection,style}=props;const emoji=useMemo(()=>{if(isSelection)return selection;if(!search||search.length>2)return\"\u2B50\uFE0F\";return search;},[search,isSelection,selection]);const src=useMemo(()=>{const parsedTwemoji=twemojiParser.parse(emoji,{buildUrl:icon=>`${baseURL}${icon}.svg`});return parsedTwemoji[0].url;},[emoji]);return /*#__PURE__*/ _jsx(\"div\",{style:containerStyle,children:/*#__PURE__*/ _jsx(\"img\",{src:src,style:containerStyle})});}Twemoji.defaultProps={width:100,height:100,search:\"\u2B50\uFE0F\"};addPropertyControls(Twemoji,{isSelection:{type:ControlType.Boolean,title:\"Select\",enabledTitle:\"Preset\",disabledTitle:\"Search\"},selection:{type:ControlType.Enum,title:\" \",options:[\"\uD83D\uDD25\",\"\uD83D\uDC96\",\"\uD83D\uDE06\",\"\uD83D\uDC4D\",\"\uD83D\uDC4E\"],defaultValue:\"\uD83D\uDD25\",displaySegmentedControl:true,hidden:({isSelection})=>!isSelection},search:{type:ControlType.String,title:\" \",placeholder:\"Paste Emoji\u2026\",hidden:({isSelection})=>isSelection}});const containerStyle={height:\"100%\",width:\"100%\",objectFit:\"contain\",textAlign:\"center\",overflow:\"hidden\",backgroundColor:\"transparent\"};\nexport const __FramerMetadata__ = {\"exports\":{\"Twemoji\":{\"type\":\"reactComponent\",\"name\":\"Twemoji\",\"slots\":[],\"annotations\":{\"framerIntrinsicHeight\":\"100\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerIntrinsicWidth\":\"100\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Twemoji.map"],
  "mappings": "uGAAgR,IAAMA,EAAQ,6DAcnR,SAASC,EAAQC,EAAM,CAAC,GAAK,CAAC,OAAAC,EAAO,YAAAC,EAAY,UAAAC,EAAU,MAAAC,CAAK,EAAEJ,EAAYK,EAAMC,EAAQ,IAAQJ,EAAmBC,EAAa,CAACF,GAAQA,EAAO,OAAO,EAAQ,eAAYA,EAAS,CAACA,EAAOC,EAAYC,CAAS,CAAC,EAAQI,EAAID,EAAQ,IAAyBE,EAAc,MAAMH,EAAM,CAAC,SAASI,GAAM,GAAGX,CAAO,GAAGW,CAAI,MAAM,CAAC,EAAuB,CAAC,EAAE,IAAM,CAACJ,CAAK,CAAC,EAAE,OAAqBK,EAAK,MAAM,CAAC,MAAMC,EAAe,SAAuBD,EAAK,MAAM,CAAC,IAAIH,EAAI,MAAMI,CAAc,CAAC,CAAC,CAAC,CAAE,CAACZ,EAAQ,aAAa,CAAC,MAAM,IAAI,OAAO,IAAI,OAAO,cAAI,EAAEa,EAAoBb,EAAQ,CAAC,YAAY,CAAC,KAAKc,EAAY,QAAQ,MAAM,SAAS,aAAa,SAAS,cAAc,QAAQ,EAAE,UAAU,CAAC,KAAKA,EAAY,KAAK,MAAM,IAAI,QAAQ,CAAC,YAAK,YAAK,YAAK,YAAK,WAAI,EAAE,aAAa,YAAK,wBAAwB,GAAK,OAAO,CAAC,CAAC,YAAAX,CAAW,IAAI,CAACA,CAAW,EAAE,OAAO,CAAC,KAAKW,EAAY,OAAO,MAAM,IAAI,YAAY,oBAAe,OAAO,CAAC,CAAC,YAAAX,CAAW,IAAIA,CAAW,CAAC,CAAC,EAAE,IAAMS,EAAe,CAAC,OAAO,OAAO,MAAM,OAAO,UAAU,UAAU,UAAU,SAAS,SAAS,SAAS,gBAAgB,aAAa",
  "names": ["baseURL", "Twemoji", "props", "search", "isSelection", "selection", "style", "emoji", "se", "src", "exports", "icon", "p", "containerStyle", "addPropertyControls", "ControlType"]
}
