honkoma/priv/static/packs/emoji_picker.js

2 lines
504 KiB
JavaScript
Raw Normal View History

2018-08-12 13:29:30 +00:00
webpackJsonp([4],{808:function(e,i,a){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var _=a(915),g=a(920);a.d(i,"Picker",function(){return _.a}),a.d(i,"Emoji",function(){return g.a})},872:function(e,i,a){"use strict";var _=Object;i.a=function(){function e(e,i){for(var a=0;a<i.length;a++){var g=i[a];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),_.defineProperty(e,g.key,g)}}return function(i,a,_){return a&&e(i.prototype,a),_&&e(i,_),i}}()},873:function(e,i,a){"use strict";var _=Object;i.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}},874:function(e,i,a){"use strict";function _(e,i){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!i||"object"!=typeof i&&"function"!=typeof i?e:i}i.a=_},875:function(e,i,a){"use strict";function _(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Super expression must either be null or a function, not "+typeof i);e.prototype=g.create(i&&i.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),i&&(g.setPrototypeOf?g.setPrototypeOf(e,i):e.__proto__=i)}i.a=_;var g=Object},884:function(e,i,a){"use strict";var _=Object;i.a=_.assign||function(e){for(var i=1;i<arguments.length;i++){var a=arguments[i];for(var _ in a)Object.prototype.hasOwnProperty.call(a,_)&&(e[_]=a[_])}return e}},885:function(e,i,a){"use strict";function _(e){var i=e.split("-"),a=i.map(function(e){return"0x"+e});return l.a.apply(null,a)}function g(e){var i=e.name,a=e.short_names,g=e.skin_tone,s=e.skin_variations,n=e.emoticons,o=e.unified,h=e.custom,m=e.imageUrl,F=e.id||a[0],t=":"+F+":";return h?{id:F,name:i,colons:t,emoticons:n,custom:h,imageUrl:m}:(g&&(t+=":skin-tone-"+g+":"),{id:F,name:i,colons:t,emoticons:n,unified:o.toLowerCase(),skin:g||(s?1:null),native:_(o)})}function s(){return g(n.apply(void 0,arguments))}function n(e,i,a,_){var g={};if("string"==typeof e){var s=e.match(u);if(s&&(e=s[1],s[2]&&(i=parseInt(s[2],10))),_.aliases.hasOwnProperty(e)&&(e=_.aliases[e]),!_.emojis.hasOwnProperty(e))return null;g=_.emojis[e]}else e.id&&(_.aliases.hasOwnProperty(e.id)&&(e.id=_.aliases[e.id]),_.emojis.hasOwnProperty(e.id)&&(g=_.emojis[e.id],i||(i=e.skin)));if(f()(g).length||(g=e,g.custom=!0,g.search||(g.search=Object(d.buildSearch)(e))),g.emoticons||(g.emoticons=[]),g.variations||(g.variations=[]),g.skin_variations&&i>1&&a){g=JSON.parse(r.stringify(g));var n=c[i-1],o=g.skin_variations[n];if(!o.variations&&g.variations&&delete g.variations,void 0==o["has_img_"+a]||o["has_img_"+a]){g.skin_tone=i;for(var h in o){var m=o[h];g[h]=m}}}return g.variations&&g.variations.length&&(g=JSON.parse(r.stringify(g)),g.unified=g.variations.shift()),g}function o(e){return e.reduce(function(e,i){return-1===e.indexOf(i)&&e.push(i),e},[])}function h(e,i){var a=o(e),_=o(i);return a.filter(function(e){return _.indexOf(e)>=0})}function m(e,i){var a={};for(var _ in e){var g=e[_],s=g;i.hasOwnProperty(_)&&(s=i[_]),"object"==typeof s&&(s=m(g,s)),a[_]=s}return a}function F(){if("undefined"==typeof document)return 0;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 i=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),i}a.d(i,"b",function(){return n}),a.d(i,"c",function(){return s}),a.d(i,"d",function(){return h}),a.d(i,"a",function(){return m}),a.d(i,"f",function(){return _}),a.d(i,"e",function(){return F});var t=a(969),f=a.n(t),d=a(889),l=(a.n(d),a(972)),r=JSON,u=/^(?:\:([^\:]+)\:)(?:\:skin-tone-(\d)\:)?$/,c=["1F3FA","1F3FB","1F3FC","1F3FD","1F3FE","1F3FF"]},889:function(e,i){var a={name:"a",unified:"b",non_qualified:"c",has_img_apple:"d",has_img_google:"e",has_img_twitter:"f",has_img_emojione:"g",has_img_facebook:"h",has_img_messenger:"i",keywords:"j",sheet:"k",emoticons:"l",text:"m",short_names:"n",added_in:"o"},_=function(e){var i=[],a=function(e,a){e&&(Arra
//# sourceMappingURL=emoji_picker.js.map