"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("@evo/emoji-text"),r=require("@prom-ui/core/Text");function n(e){if(e&&"object"==typeof e&&"default"in e)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var i=n(e);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o.apply(this,arguments)}function a(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var u=["children","size","type"],c={small:11,default:13,big:15,h1:24,h2:22,h3:20,h4:18,h5:16,h6:14},l=i.forwardRef((function(e,n){var l=e.children,f=e.size,p=void 0===f?c.default:f,s=e.type,b=void 0===s?"apple":s,y=a(e,u);return i.createElement(r.Text,o({ref:n},y),i.createElement(t.EmojiText,{size:c[y["text-size"]]||p,type:b},l))}));l.displayName="TextEmoji",exports.TextEmoji=l;
