Pleroma/priv/static/packs/emoji_picker-9cf581d158c1cefc73c9.js

2 lines
607 KiB
JavaScript
Raw Normal View History

2017-11-12 14:23:05 +01:00
webpackJsonp([7],{751:function(e,_,i){"use strict";Object.defineProperty(_,"__esModule",{value:!0});var a=i(817),s=i(821);i.d(_,"Picker",function(){return a.a}),i.d(_,"Emoji",function(){return s.a})},785:function(e,_,i){"use strict";var a=Object;_.a=a.getPrototypeOf||function(e){return e=Object(e),"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?Object.prototype:null}},786:function(e,_,i){"use strict";var a=Object;_.a=function(){function e(e,_){for(var i=0;i<_.length;i++){var s=_[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),a.defineProperty(e,s.key,s)}}return function(_,i,a){return i&&e(_.prototype,i),a&&e(_,a),_}}()},787:function(e,_,i){"use strict";function a(e,_){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!_||"object"!=typeof _&&"function"!=typeof _?e:_}_.a=a},788:function(e,_,i){"use strict";function a(e,_){if("function"!=typeof _&&null!==_)throw new TypeError("Super expression must either be null or a function, not "+typeof _);e.prototype=s.create(_&&_.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),_&&(s.setPrototypeOf?s.setPrototypeOf(e,_):e.__proto__=_)}_.a=a;var s=Object},789:function(e,_,i){"use strict";function a(e){var _=e.split("-"),i=_.map(function(e){return"0x"+e});return F.a.apply(null,i)}function s(e){var _=e.name,i=e.short_names,s=e.skin_tone,g=e.skin_variations,m=e.emoticons,o=e.unified,h=e.custom,n=e.imageUrl,t=e.id||i[0],r=":"+t+":";return h?{id:t,name:_,colons:r,emoticons:m,custom:h,imageUrl:n}:(s&&(r+=":skin-tone-"+s+":"),{id:t,name:_,colons:r,emoticons:m,unified:o.toLowerCase(),skin:s||(g?1:null),native:a(o)})}function g(){return s(m.apply(void 0,arguments))}function m(e,_,i){var a={};if("string"==typeof e){var s=e.match(c);if(s&&(e=s[1],s[2]&&(_=parseInt(s[2]))),d.a.short_names.hasOwnProperty(e)&&(e=d.a.short_names[e]),!d.a.emojis.hasOwnProperty(e))return null;a=d.a.emojis[e]}else e.id&&(d.a.short_names.hasOwnProperty(e.id)&&(e.id=d.a.short_names[e.id]),d.a.emojis.hasOwnProperty(e.id)&&(a=d.a.emojis[e.id],_||(_=e.skin)));if(f()(a).length||(a=e,a.custom=!0,a.search||(a.search=Object(l.a)(e))),a.emoticons||(a.emoticons=[]),a.variations||(a.variations=[]),a.skin_variations&&_>1&&i){a=JSON.parse(p.stringify(a));var g=u[_-1],m=a.skin_variations[g];if(!m.variations&&a.variations&&delete a.variations,m["has_img_"+i]){a.skin_tone=_;for(var o in m){var h=m[o];a[o]=h}}}return a.variations&&a.variations.length&&(a=JSON.parse(p.stringify(a)),a.unified=a.variations.shift()),a}function o(e){return e.reduce(function(e,_){return-1===e.indexOf(_)&&e.push(_),e},[])}function h(e,_){var i=o(e),a=o(_);return i.filter(function(e){return a.indexOf(e)>=0})}function n(e,_){var i={};for(var a in e){var s=e[a],g=s;_.hasOwnProperty(a)&&(g=_[a]),"object"==typeof g&&(g=n(s,g)),i[a]=g}return i}function t(){var e=document.createElement("div");e.style.width="100px",e.style.height="100px",e.style.overflow="scroll",e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e);var _=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),_}i.d(_,"b",function(){return m}),i.d(_,"c",function(){return g}),i.d(_,"d",function(){return h}),i.d(_,"a",function(){return n}),i.d(_,"f",function(){return a}),i.d(_,"e",function(){return t});var r=i(868),f=i.n(r),l=i(818),d=i(796),F=i(871),p=JSON,c=/^(?:\:([^\:]+)\:)(?:\:skin-tone-(\d)\:)?$/,u=["1F3FA","1F3FB","1F3FC","1F3FD","1F3FE","1F3FF"]},796:function(e,_,i){"use strict";function a(e){for(var _ in e){var i=e[_];i.short_names||(i.short_names=[]),i.short_names.unshift(_),i.sheet_x=i.sheet[0],i.sheet_y=i.sheet[1],delete i.sheet,i.text||(i.text=""),null===i.added_in||i.added_in||(i.added_in="6.0"),i.search=Object(s.a)({short_names:i.short_names,name:i.name,keywords:i.keywords,emoticons:i.emoticons})}}var s=i(818),g=i(867);a(g.a.emojis),a(g.a.skins),_.a=g.a},800:function(e,_,i){"use strict";var a=Object;_.a=a.assign||function(e){for(var _=1;_<arguments.length;_++){var i=arguments[_];for(var a in i)
//# sourceMappingURL=emoji_picker-9cf581d158c1cefc73c9.js.map