ngx-emoji-picker
Version:
A simple emoji picker for Angular 2+ / Ionic 3 with AOT build support
2 lines โข 46.4 kB
JavaScript
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/common"),require("rxjs"),require("rxjs/operators"),require("twemoji"),require("@angular/platform-browser")):"function"==typeof define&&define.amd?define("ngx-emoji-picker",["exports","@angular/core","@angular/common","rxjs","rxjs/operators","twemoji","@angular/platform-browser"],t):t((e=e||self)["ngx-emoji-picker"]={},e.ng.core,e.ng.common,e.rxjs,e.rxjs.operators,e.twemoji,e.ng.platformBrowser)}(this,(function(e,t,o,n,i,r,a){"use strict";r=r&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r;function s(e,t,o,n){var i,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,o,a):i(t,o))||a);return r>3&&a&&Object.defineProperty(t,o,a),a}function c(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}var l,_=function(){function e(){this.selectionEmitter=new t.EventEmitter}return e.prototype.ngOnChanges=function(){},s([t.Input("emoji"),c("design:type",Object)],e.prototype,"emoji",void 0),s([t.Input("dataToEmit"),c("design:type",Object)],e.prototype,"dataToEmit",void 0),s([t.Input("options"),c("design:type",Object)],e.prototype,"options",void 0),s([t.Input("fitzpatrick"),c("design:type",Object)],e.prototype,"fitzpatrick",void 0),s([t.Output("selection"),c("design:type",t.EventEmitter)],e.prototype,"selectionEmitter",void 0),e=s([t.Component({selector:"emoji-button",template:'\n <button\n class="emoji-button" \n (click)="selectionEmitter.emit(dataToEmit || emoji)" [innerHTML]="emoji[0] | emojiFallback">\n </button>\n ',styles:[":host{display:inline-block}.emoji-button{padding:0;border:none;outline:0;background:0 0;width:34px;height:34px;border-radius:3px;font-size:24px;line-height:1.1;cursor:pointer;transition:.2s}.emoji-button:focus,.emoji-button:hover{background:#f1f1f1;border-color:#f1f1f1}.emoji-button ::ng-deep img{width:20px}"]}),c("design:paramtypes",[])],e)}(),m=function(){function e(){this.categorySelection=new t.EventEmitter}return e.prototype.handleCategorySelection=function(e){this.categorySelection.emit(e)},s([t.Input("emojisCategories"),c("design:type",Object)],e.prototype,"emojisCategories",void 0),s([t.Output("categorySelection"),c("design:type",Object)],e.prototype,"categorySelection",void 0),e=s([t.Component({selector:"emoji-categories",template:'\n <ng-container *ngFor="let category of emojisCategories">\n <emoji-button \n (selection)="handleCategorySelection($event)"\n [dataToEmit]="category"\n [emoji]="category.icon"></emoji-button>\n </ng-container>\n ',styles:[":host{display:flex;flex-wrap:wrap;justify-content:space-between;margin:0 0 10px}"]}),c("design:paramtypes",[])],e)}(),p=function(){function e(e){this._element=e}return e.prototype.scrollIntoView=function(){this._element.nativeElement.scrollIntoView()},e.ctorParameters=function(){return[{type:t.ElementRef}]},s([t.Input("category"),c("design:type",Object)],e.prototype,"category",void 0),e=s([t.Component({selector:"emoji-category",template:'\n <p class="emoji-category">{{category.name}}</p>\n ',styles:['.emoji-category{margin:0;font-size:16px;padding:5px 0 5px 5px;border-bottom:1px solid #f0f0f0;color:#777;font-family:Arial,"Arial Black",Tahoma,"Trebuchet MS",Verdana}']}),c("design:paramtypes",[t.ElementRef])],e)}(),u=[{emojis:[["๐","grinning"],["๐","smiley"],["๐","smile"],["๐","grin"],["๐","laughing"],["๐
","sweat_smile"],["๐","joy"],["๐คฃ","rofl"],["๐","blush"],["๐","innocent"],["๐","slightly_smiling_face"],["๐","upside_down_face"],["๐","wink"],["๐","relieved"],["๐","heart_eyes"],["๐","kissing_heart"],["๐","kissing"],["๐","kissing_smiling_eyes"],["๐","kissing_closed_eyes"],["๐","yum"],["๐","stuck_out_tongue_winking_eye"],["๐","stuck_out_tongue_closed_eyes"],["๐","stuck_out_tongue"],["๐ค","money_mouth_face"],["๐ค","hugs"],["๐ค","nerd_face"],["๐","sunglasses"],["๐คก","clown_face"],["๐ค ","cowboy_hat_face"],["๐","smirk"],["๐","unamused"],["๐","disappointed"],["๐","pensive"],["๐","worried"],["๐","confused"],["๐","slightly_frowning_face"],["โน๏ธ","frowning_face"],["๐ฃ","persevere"],["๐","confounded"],["๐ซ","tired_face"],["๐ฉ","weary"],["๐ค","triumph"],["๐ ","angry"],["๐ก","rage"],["๐ถ","no_mouth"],["๐","neutral_face"],["๐","expressionless"],["๐ฏ","hushed"],["๐ฆ","frowning"],["๐ง","anguished"],["๐ฎ","open_mouth"],["๐ฒ","astonished"],["๐ต","dizzy_face"],["๐ณ","flushed"],["๐ฑ","scream"],["๐จ","fearful"],["๐ฐ","cold_sweat"],["๐ข","cry"],["๐ฅ","disappointed_relieved"],["๐คค","drooling_face"],["๐ญ","sob"],["๐","sweat"],["๐ช","sleepy"],["๐ด","sleeping"],["๐","roll_eyes"],["๐ค","thinking"],["๐คฅ","lying_face"],["๐ฌ","grimacing"],["๐ค","zipper_mouth_face"],["๐คข","nauseated_face"],["๐คง","sneezing_face"],["๐ท","mask"],["๐ค","face_with_thermometer"],["๐ค","face_with_head_bandage"],["๐","smiling_imp"],["๐ฟ","imp"],["๐น","japanese_ogre"],["๐บ","japanese_goblin"],["๐ฉ","hankey"],["๐ป","ghost"],["๐","skull"],["โ ๏ธ","skull_and_crossbones"],["๐ฝ","alien"],["๐พ","space_invader"],["๐ค","robot"],["๐","jack_o_lantern"],["๐บ","smiley_cat"],["๐ธ","smile_cat"],["๐น","joy_cat"],["๐ป","heart_eyes_cat"],["๐ผ","smirk_cat"],["๐ฝ","kissing_cat"],["๐","scream_cat"],["๐ฟ","crying_cat_face"],["๐พ","pouting_cat"],["๐","open_hands"],["๐","raised_hands"],["๐","clap"],["๐","pray"],["๐ค","handshake"],["๐","+1"],["๐","-1"],["๐","fist_oncoming"],["โ","fist_raised"],["๐ค","fist_left"],["๐ค","fist_right"],["๐ค","crossed_fingers"],["โ๏ธ","v"],["๐ค","metal"],["๐","ok_hand"],["๐","point_left"],["๐","point_right"],["๐","point_up_2"],["๐","point_down"],["โ๏ธ","point_up"],["โ","hand"],["๐ค","raised_back_of_hand"],["๐","raised_hand_with_fingers_splayed"],["๐","vulcan_salute"],["๐","wave"],["๐ค","call_me_hand"],["๐ช","muscle"],["๐","middle_finger"],["โ๏ธ","writing_hand"],["๐คณ","selfie"],["๐
","nail_care"],["๐","ring"],["๐","lipstick"],["๐","kiss"],["๐","lips"],["๐
","tongue"],["๐","ear"],["๐","nose"],["๐ฃ","footprints"],["๐","eye"],["๐","eyes"],["๐ฃ","speaking_head"],["๐ค","bust_in_silhouette"],["๐ฅ","busts_in_silhouette"],["๐ถ","baby"],["๐ฆ","boy"],["๐ง","girl"],["๐จ","man"],["๐ฉ","woman"],["๐ฑโโ","blonde_woman"],["๐ฑ","blonde_man"],["๐ด","older_man"],["๐ต","older_woman"],["๐ฒ","man_with_gua_pi_mao"],["๐ณโโ","woman_with_turban"],["๐ณ","man_with_turban"],["๐ฎโโ","policewoman"],["๐ฎ","policeman"],["๐ทโโ","construction_worker_woman"],["๐ท","construction_worker_man"],["๐โโ","guardswoman"],["๐","guardsman"],["๐ต๏ธโโ๏ธ","female_detective"],["๐ต","male_detective"],["๐ฉโโ","woman_health_worker"],["๐จโโ","man_health_worker"],["๐ฉโ๐พ","woman_farmer"],["๐จโ๐พ","man_farmer"],["๐ฉโ๐ณ","woman_cook"],["๐จโ๐ณ","man_cook"],["๐ฉโ๐","woman_student"],["๐จโ๐","man_student"],["๐ฉโ๐ค","woman_singer"],["๐จโ๐ค","man_singer"],["๐ฉโ๐ซ","woman_teacher"],["๐จโ๐ซ","man_teacher"],["๐ฉโ๐ญ","woman_factory_worker"],["๐จโ๐ญ","man_factory_worker"],["๐ฉโ๐ป","woman_technologist"],["๐จโ๐ป","man_technologist"],["๐ฉโ๐ผ","woman_office_worker"],["๐จโ๐ผ","man_office_worker"],["๐ฉโ๐ง","woman_mechanic"],["๐จโ๐ง","man_mechanic"],["๐ฉโ๐ฌ","woman_scientist"],["๐จโ๐ฌ","man_scientist"],["๐ฉโ๐จ","woman_artist"],["๐จโ๐จ","man_artist"],["๐ฉโ๐","woman_firefighter"],["๐จโ๐","man_firefighter"],["๐ฉโโ","woman_pilot"],["๐จโโ","man_pilot"],["๐ฉโ๐","woman_astronaut"],["๐จโ๐","man_astronaut"],["๐ฉโโ","woman_judge"],["๐จโโ","man_judge"],["๐คถ","mrs_claus"],["๐
","santa"],["๐ธ","princess"],["๐คด","prince"],["๐ฐ","bride_with_veil"],["๐คต","man_in_tuxedo"],["๐ผ","angel"],["๐คฐ","pregnant_woman"],["๐โโ","bowing_woman"],["๐","bowing_man"],["๐","tipping_hand_woman"],["๐โโ","tipping_hand_man"],["๐
","no_good_woman"],["๐
โโ","no_good_man"],["๐","ok_woman"],["๐โโ","ok_man"],["๐","raising_hand_woman"],["๐โโ","raising_hand_man"],["๐คฆโโ","woman_facepalming"],["๐คฆโโ","man_facepalming"],["๐คทโโ","woman_shrugging"],["๐คทโโ","man_shrugging"],["๐","pouting_woman"],["๐โโ","pouting_man"],["๐","frowning_woman"],["๐โโ","frowning_man"],["๐","haircut_woman"],["๐โโ","haircut_man"],["๐","massage_woman"],["๐โโ","massage_man"],["๐ด","business_suit_levitating"],["๐","dancer"],["๐บ","man_dancing"],["๐ฏ","dancing_women"],["๐ฏโโ","dancing_men"],["๐ถโโ","walking_woman"],["๐ถ","walking_man"],["๐โโ","running_woman"],["๐","running_man"],["๐ซ","couple"],["๐ญ","two_women_holding_hands"],["๐ฌ","two_men_holding_hands"],["๐","couple_with_heart_woman_man"],["๐ฉโโค๏ธโ๐ฉ","couple_with_heart_woman_woman"],["๐จโโค๏ธโ๐จ","couple_with_heart_man_man"],["๐","couplekiss_man_woman"],["๐ฉโโค๏ธโ๐โ๐ฉ","couplekiss_woman_woman"],["๐จโโค๏ธโ๐โ๐จ","couplekiss_man_man"],["๐ช","family_man_woman_boy"],["๐จโ๐ฉโ๐ง","family_man_woman_girl"],["๐จโ๐ฉโ๐งโ๐ฆ","family_man_woman_girl_boy"],["๐จโ๐ฉโ๐ฆโ๐ฆ","family_man_woman_boy_boy"],["๐จโ๐ฉโ๐งโ๐ง","family_man_woman_girl_girl"],["๐ฉโ๐ฉโ๐ฆ","family_woman_woman_boy"],["๐ฉโ๐ฉโ๐ง","family_woman_woman_girl"],["๐ฉโ๐ฉโ๐งโ๐ฆ","family_woman_woman_girl_boy"],["๐ฉโ๐ฉโ๐ฆโ๐ฆ","family_woman_woman_boy_boy"],["๐ฉโ๐ฉโ๐งโ๐ง","family_woman_woman_girl_girl"],["๐จโ๐จโ๐ฆ","family_man_man_boy"],["๐จโ๐จโ๐ง","family_man_man_girl"],["๐จโ๐จโ๐งโ๐ฆ","family_man_man_girl_boy"],["๐จโ๐จโ๐ฆโ๐ฆ","family_man_man_boy_boy"],["๐จโ๐จโ๐งโ๐ง","family_man_man_girl_girl"],["๐ฉโ๐ฆ","family_woman_boy"],["๐ฉโ๐ง","family_woman_girl"],["๐ฉโ๐งโ๐ฆ","family_woman_girl_boy"],["๐ฉโ๐ฆโ๐ฆ","family_woman_boy_boy"],["๐ฉโ๐งโ๐ง","family_woman_girl_girl"],["๐จโ๐ฆ","family_man_boy"],["๐จโ๐ง","family_man_girl"],["๐จโ๐งโ๐ฆ","family_man_girl_boy"],["๐จโ๐ฆโ๐ฆ","family_man_boy_boy"],["๐จโ๐งโ๐ง","family_man_girl_girl"],["๐","womans_clothes"],["๐","shirt"],["๐","jeans"],["๐","necktie"],["๐","dress"],["๐","bikini"],["๐","kimono"],["๐ ","high_heel"],["๐ก","sandal"],["๐ข","boot"],["๐","mans_shoe"],["๐","athletic_shoe"],["๐","womans_hat"],["๐ฉ","tophat"],["๐","mortar_board"],["๐","crown"],["โ","rescue_worker_helmet"],["๐","school_satchel"],["๐","pouch"],["๐","purse"],["๐","handbag"],["๐ผ","briefcase"],["๐","eyeglasses"],["๐ถ","dark_sunglasses"],["๐","closed_umbrella"],["โ๏ธ","open_umbrella"]],name:"People",icon:["๐","smile"]},{emojis:[["๐ถ","dog"],["๐ฑ","cat"],["๐ญ","mouse"],["๐น","hamster"],["๐ฐ","rabbit"],["๐ฆ","fox_face"],["๐ป","bear"],["๐ผ","panda_face"],["๐จ","koala"],["๐ฏ","tiger"],["๐ฆ","lion"],["๐ฎ","cow"],["๐ท","pig"],["๐ฝ","pig_nose"],["๐ธ","frog"],["๐ต","monkey_face"],["๐","see_no_evil"],["๐","hear_no_evil"],["๐","speak_no_evil"],["๐","monkey"],["๐","chicken"],["๐ง","penguin"],["๐ฆ","bird"],["๐ค","baby_chick"],["๐ฃ","hatching_chick"],["๐ฅ","hatched_chick"],["๐ฆ","duck"],["๐ฆ
","eagle"],["๐ฆ","owl"],["๐ฆ","bat"],["๐บ","wolf"],["๐","boar"],["๐ด","horse"],["๐ฆ","unicorn"],["๐","bee"],["๐","bug"],["๐ฆ","butterfly"],["๐","snail"],["๐","shell"],["๐","beetle"],["๐","ant"],["๐ท","spider"],["๐ธ","spider_web"],["๐ข","turtle"],["๐","snake"],["๐ฆ","lizard"],["๐ฆ","scorpion"],["๐ฆ","crab"],["๐ฆ","squid"],["๐","octopus"],["๐ฆ","shrimp"],["๐ ","tropical_fish"],["๐","fish"],["๐ก","blowfish"],["๐ฌ","dolphin"],["๐ฆ","shark"],["๐ณ","whale"],["๐","whale2"],["๐","crocodile"],["๐","leopard"],["๐
","tiger2"],["๐","water_buffalo"],["๐","ox"],["๐","cow2"],["๐ฆ","deer"],["๐ช","dromedary_camel"],["๐ซ","camel"],["๐","elephant"],["๐ฆ","rhinoceros"],["๐ฆ","gorilla"],["๐","racehorse"],["๐","pig2"],["๐","goat"],["๐","ram"],["๐","sheep"],["๐","dog2"],["๐ฉ","poodle"],["๐","cat2"],["๐","rooster"],["๐ฆ","turkey"],["๐","dove"],["๐","rabbit2"],["๐","mouse2"],["๐","rat"],["๐ฟ","chipmunk"],["๐พ","feet"],["๐","dragon"],["๐ฒ","dragon_face"],["๐ต","cactus"],["๐","christmas_tree"],["๐ฒ","evergreen_tree"],["๐ณ","deciduous_tree"],["๐ด","palm_tree"],["๐ฑ","seedling"],["๐ฟ","herb"],["โ๏ธ","shamrock"],["๐","four_leaf_clover"],["๐","bamboo"],["๐","tanabata_tree"],["๐","leaves"],["๐","fallen_leaf"],["๐","maple_leaf"],["๐","mushroom"],["๐พ","ear_of_rice"],["๐","bouquet"],["๐ท","tulip"],["๐น","rose"],["๐ฅ","wilted_flower"],["๐ป","sunflower"],["๐ผ","blossom"],["๐ธ","cherry_blossom"],["๐บ","hibiscus"],["๐","earth_americas"],["๐","earth_africa"],["๐","earth_asia"],["๐","full_moon"],["๐","waning_gibbous_moon"],["๐","last_quarter_moon"],["๐","waning_crescent_moon"],["๐","new_moon"],["๐","waxing_crescent_moon"],["๐","first_quarter_moon"],["๐","moon"],["๐","new_moon_with_face"],["๐","full_moon_with_face"],["๐","sun_with_face"],["๐","first_quarter_moon_with_face"],["๐","last_quarter_moon_with_face"],["๐","crescent_moon"],["๐ซ","dizzy"],["โญ๏ธ","star"],["๐","star2"],["โจ","sparkles"],["โก๏ธ","zap"],["๐ฅ","fire"],["๐ฅ","boom"],["โ","comet"],["โ๏ธ","sunny"],["๐ค","sun_behind_small_cloud"],["โ
๏ธ","partly_sunny"],["๐ฅ","sun_behind_large_cloud"],["๐ฆ","sun_behind_rain_cloud"],["๐","rainbow"],["โ๏ธ","cloud"],["๐ง","cloud_with_rain"],["โ","cloud_with_lightning_and_rain"],["๐ฉ","cloud_with_lightning"],["๐จ","cloud_with_snow"],["โ๏ธ","snowman_with_snow"],["โ๏ธ","snowman"],["โ๏ธ","snowflake"],["๐ฌ","wind_face"],["๐จ","dash"],["๐ช","tornado"],["๐ซ","fog"],["๐","ocean"],["๐ง","droplet"],["๐ฆ","sweat_drops"],["โ๏ธ","umbrella"]],name:"Nature",icon:["๐ธ","cherry_blossom"]},{emojis:[["๐","green_apple"],["๐","apple"],["๐","pear"],["๐","tangerine"],["๐","lemon"],["๐","banana"],["๐","watermelon"],["๐","grapes"],["๐","strawberry"],["๐","melon"],["๐","cherries"],["๐","peach"],["๐","pineapple"],["๐ฅ","kiwi_fruit"],["๐ฅ","avocado"],["๐
","tomato"],["๐","eggplant"],["๐ฅ","cucumber"],["๐ฅ","carrot"],["๐ฝ","corn"],["๐ถ","hot_pepper"],["๐ฅ","potato"],["๐ ","sweet_potato"],["๐ฐ","chestnut"],["๐ฅ","peanuts"],["๐ฏ","honey_pot"],["๐ฅ","croissant"],["๐","bread"],["๐ฅ","baguette_bread"],["๐ง","cheese"],["๐ฅ","egg"],["๐ณ","fried_egg"],["๐ฅ","bacon"],["๐ฅ","pancakes"],["๐ค","fried_shrimp"],["๐","poultry_leg"],["๐","meat_on_bone"],["๐","pizza"],["๐ญ","hotdog"],["๐","hamburger"],["๐","fries"],["๐ฅ","stuffed_flatbread"],["๐ฎ","taco"],["๐ฏ","burrito"],["๐ฅ","green_salad"],["๐ฅ","shallow_pan_of_food"],["๐","spaghetti"],["๐","ramen"],["๐ฒ","stew"],["๐ฅ","fish_cake"],["๐ฃ","sushi"],["๐ฑ","bento"],["๐","curry"],["๐","rice"],["๐","rice_ball"],["๐","rice_cracker"],["๐ข","oden"],["๐ก","dango"],["๐ง","shaved_ice"],["๐จ","ice_cream"],["๐ฆ","icecream"],["๐ฐ","cake"],["๐","birthday"],["๐ฎ","custard"],["๐ญ","lollipop"],["๐ฌ","candy"],["๐ซ","chocolate_bar"],["๐ฟ","popcorn"],["๐ฉ","doughnut"],["๐ช","cookie"],["๐ฅ","milk_glass"],["๐ผ","baby_bottle"],["โ๏ธ","coffee"],["๐ต","tea"],["๐ถ","sake"],["๐บ","beer"],["๐ป","beers"],["๐ฅ","clinking_glasses"],["๐ท","wine_glass"],["๐ฅ","tumbler_glass"],["๐ธ","cocktail"],["๐น","tropical_drink"],["๐พ","champagne"],["๐ฅ","spoon"],["๐ด","fork_and_knife"],["๐ฝ","plate_with_cutlery"]],name:"Foods",icon:["๐","hamburger"]},{emojis:[["โฝ๏ธ","soccer"],["๐","basketball"],["๐","football"],["โพ๏ธ","baseball"],["๐พ","tennis"],["๐","volleyball"],["๐","rugby_football"],["๐ฑ","8ball"],["๐","ping_pong"],["๐ธ","badminton"],["๐ฅ
","goal_net"],["๐","ice_hockey"],["๐","field_hockey"],["๐","cricket"],["โณ๏ธ","golf"],["๐น","bow_and_arrow"],["๐ฃ","fishing_pole_and_fish"],["๐ฅ","boxing_glove"],["๐ฅ","martial_arts_uniform"],["โธ","ice_skate"],["๐ฟ","ski"],["โท","skier"],["๐","snowboarder"],["๐๏ธโโ๏ธ","weight_lifting_woman"],["๐","weight_lifting_man"],["๐คบ","person_fencing"],["๐คผโโ","women_wrestling"],["๐คผโโ","men_wrestling"],["๐คธโโ","woman_cartwheeling"],["๐คธโโ","man_cartwheeling"],["โน๏ธโโ๏ธ","basketball_woman"],["โน","basketball_man"],["๐คพโโ","woman_playing_handball"],["๐คพโโ","man_playing_handball"],["๐๏ธโโ๏ธ","golfing_woman"],["๐","golfing_man"],["๐โโ","surfing_woman"],["๐","surfing_man"],["๐โโ","swimming_woman"],["๐","swimming_man"],["๐คฝโโ","woman_playing_water_polo"],["๐คฝโโ","man_playing_water_polo"],["๐ฃโโ","rowing_woman"],["๐ฃ","rowing_man"],["๐","horse_racing"],["๐ดโโ","biking_woman"],["๐ด","biking_man"],["๐ตโโ","mountain_biking_woman"],["๐ต","mountain_biking_man"],["๐ฝ","running_shirt_with_sash"],["๐
","medal_sports"],["๐","medal_military"],["๐ฅ","1st_place_medal"],["๐ฅ","2nd_place_medal"],["๐ฅ","3rd_place_medal"],["๐","trophy"],["๐ต","rosette"],["๐","reminder_ribbon"],["๐ซ","ticket"],["๐","tickets"],["๐ช","circus_tent"],["๐คนโโ","woman_juggling"],["๐คนโโ","man_juggling"],["๐ญ","performing_arts"],["๐จ","art"],["๐ฌ","clapper"],["๐ค","microphone"],["๐ง","headphones"],["๐ผ","musical_score"],["๐น","musical_keyboard"],["๐ฅ","drum"],["๐ท","saxophone"],["๐บ","trumpet"],["๐ธ","guitar"],["๐ป","violin"],["๐ฒ","game_die"],["๐ฏ","dart"],["๐ณ","bowling"],["๐ฎ","video_game"],["๐ฐ","slot_machine"]],name:"Activity",icon:["โฝ๏ธ","soccer"]},{emojis:[["๐","car"],["๐","taxi"],["๐","blue_car"],["๐","bus"],["๐","trolleybus"],["๐","racing_car"],["๐","police_car"],["๐","ambulance"],["๐","fire_engine"],["๐","minibus"],["๐","truck"],["๐","articulated_lorry"],["๐","tractor"],["๐ด","kick_scooter"],["๐ฒ","bike"],["๐ต","motor_scooter"],["๐","motorcycle"],["๐จ","rotating_light"],["๐","oncoming_police_car"],["๐","oncoming_bus"],["๐","oncoming_automobile"],["๐","oncoming_taxi"],["๐ก","aerial_tramway"],["๐ ","mountain_cableway"],["๐","suspension_railway"],["๐","railway_car"],["๐","train"],["๐","mountain_railway"],["๐","monorail"],["๐","bullettrain_side"],["๐
","bullettrain_front"],["๐","light_rail"],["๐","steam_locomotive"],["๐","train2"],["๐","metro"],["๐","tram"],["๐","station"],["๐","helicopter"],["๐ฉ","small_airplane"],["โ๏ธ","airplane"],["๐ซ","flight_departure"],["๐ฌ","flight_arrival"],["๐","rocket"],["๐ฐ","artificial_satellite"],["๐บ","seat"],["๐ถ","canoe"],["โต๏ธ","boat"],["๐ฅ","motor_boat"],["๐ค","speedboat"],["๐ณ","passenger_ship"],["โด","ferry"],["๐ข","ship"],["โ๏ธ","anchor"],["๐ง","construction"],["โฝ๏ธ","fuelpump"],["๐","busstop"],["๐ฆ","vertical_traffic_light"],["๐ฅ","traffic_light"],["๐บ","world_map"],["๐ฟ","moyai"],["๐ฝ","statue_of_liberty"],["โฒ๏ธ","fountain"],["๐ผ","tokyo_tower"],["๐ฐ","european_castle"],["๐ฏ","japanese_castle"],["๐","stadium"],["๐ก","ferris_wheel"],["๐ข","roller_coaster"],["๐ ","carousel_horse"],["โฑ","parasol_on_ground"],["๐","beach_umbrella"],["๐","desert_island"],["โฐ","mountain"],["๐","mountain_snow"],["๐ป","mount_fuji"],["๐","volcano"],["๐","desert"],["๐","camping"],["โบ๏ธ","tent"],["๐ค","railway_track"],["๐ฃ","motorway"],["๐","building_construction"],["๐ญ","factory"],["๐ ","house"],["๐ก","house_with_garden"],["๐","houses"],["๐","derelict_house"],["๐ข","office"],["๐ฌ","department_store"],["๐ฃ","post_office"],["๐ค","european_post_office"],["๐ฅ","hospital"],["๐ฆ","bank"],["๐จ","hotel"],["๐ช","convenience_store"],["๐ซ","school"],["๐ฉ","love_hotel"],["๐","wedding"],["๐","classical_building"],["โช๏ธ","church"],["๐","mosque"],["๐","synagogue"],["๐","kaaba"],["โฉ","shinto_shrine"],["๐พ","japan"],["๐","rice_scene"],["๐","national_park"],["๐
","sunrise"],["๐","sunrise_over_mountains"],["๐ ","stars"],["๐","sparkler"],["๐","fireworks"],["๐","city_sunrise"],["๐","city_sunset"],["๐","cityscape"],["๐","night_with_stars"],["๐","milky_way"],["๐","bridge_at_night"],["๐","foggy"]],name:"Places",icon:["๐","car"]},{emojis:[["โ๏ธ","watch"],["๐ฑ","iphone"],["๐ฒ","calling"],["๐ป","computer"],["โจ๏ธ","keyboard"],["๐ฅ","desktop_computer"],["๐จ","printer"],["๐ฑ","computer_mouse"],["๐ฒ","trackball"],["๐น","joystick"],["๐","clamp"],["๐ฝ","minidisc"],["๐พ","floppy_disk"],["๐ฟ","cd"],["๐","dvd"],["๐ผ","vhs"],["๐ท","camera"],["๐ธ","camera_flash"],["๐น","video_camera"],["๐ฅ","movie_camera"],["๐ฝ","film_projector"],["๐","film_strip"],["๐","telephone_receiver"],["โ๏ธ","phone"],["๐","pager"],["๐ ","fax"],["๐บ","tv"],["๐ป","radio"],["๐","studio_microphone"],["๐","level_slider"],["๐","control_knobs"],["โฑ","stopwatch"],["โฒ","timer_clock"],["โฐ","alarm_clock"],["๐ฐ","mantelpiece_clock"],["โ๏ธ","hourglass"],["โณ","hourglass_flowing_sand"],["๐ก","satellite"],["๐","battery"],["๐","electric_plug"],["๐ก","bulb"],["๐ฆ","flashlight"],["๐ฏ","candle"],["๐","wastebasket"],["๐ข","oil_drum"],["๐ธ","money_with_wings"],["๐ต","dollar"],["๐ด","yen"],["๐ถ","euro"],["๐ท","pound"],["๐ฐ","moneybag"],["๐ณ","credit_card"],["๐","gem"],["โ๏ธ","balance_scale"],["๐ง","wrench"],["๐จ","hammer"],["โ","hammer_and_pick"],["๐ ","hammer_and_wrench"],["โ","pick"],["๐ฉ","nut_and_bolt"],["โ๏ธ","gear"],["โ","chains"],["๐ซ","gun"],["๐ฃ","bomb"],["๐ช","hocho"],["๐ก","dagger"],["โ๏ธ","crossed_swords"],["๐ก","shield"],["๐ฌ","smoking"],["โฐ๏ธ","coffin"],["โฑ๏ธ","funeral_urn"],["๐บ","amphora"],["๐ฎ","crystal_ball"],["๐ฟ","prayer_beads"],["๐","barber"],["โ๏ธ","alembic"],["๐ญ","telescope"],["๐ฌ","microscope"],["๐ณ","hole"],["๐","pill"],["๐","syringe"],["๐ก","thermometer"],["๐ฝ","toilet"],["๐ฐ","potable_water"],["๐ฟ","shower"],["๐","bathtub"],["๐","bath"],["๐","bellhop_bell"],["๐","key"],["๐","old_key"],["๐ช","door"],["๐","couch_and_lamp"],["๐","bed"],["๐","sleeping_bed"],["๐ผ","framed_picture"],["๐","shopping"],["๐","shopping_cart"],["๐","gift"],["๐","balloon"],["๐","flags"],["๐","ribbon"],["๐","confetti_ball"],["๐","tada"],["๐","dolls"],["๐ฎ","izakaya_lantern"],["๐","wind_chime"],["โ๏ธ","email"],["๐ฉ","envelope_with_arrow"],["๐จ","incoming_envelope"],["๐ง","e-mail"],["๐","love_letter"],["๐ฅ","inbox_tray"],["๐ค","outbox_tray"],["๐ฆ","package"],["๐ท","label"],["๐ช","mailbox_closed"],["๐ซ","mailbox"],["๐ฌ","mailbox_with_mail"],["๐ญ","mailbox_with_no_mail"],["๐ฎ","postbox"],["๐ฏ","postal_horn"],["๐","scroll"],["๐","page_with_curl"],["๐","page_facing_up"],["๐","bookmark_tabs"],["๐","bar_chart"],["๐","chart_with_upwards_trend"],["๐","chart_with_downwards_trend"],["๐","spiral_notepad"],["๐","spiral_calendar"],["๐","calendar"],["๐
","date"],["๐","card_index"],["๐","card_file_box"],["๐ณ","ballot_box"],["๐","file_cabinet"],["๐","clipboard"],["๐","file_folder"],["๐","open_file_folder"],["๐","card_index_dividers"],["๐","newspaper_roll"],["๐ฐ","newspaper"],["๐","notebook"],["๐","notebook_with_decorative_cover"],["๐","ledger"],["๐","closed_book"],["๐","green_book"],["๐","blue_book"],["๐","orange_book"],["๐","books"],["๐","book"],["๐","bookmark"],["๐","link"],["๐","paperclip"],["๐","paperclips"],["๐","triangular_ruler"],["๐","straight_ruler"],["๐","pushpin"],["๐","round_pushpin"],["โ๏ธ","scissors"],["๐","pen"],["๐","fountain_pen"],["โ๏ธ","black_nib"],["๐","paintbrush"],["๐","crayon"],["๐","memo"],["โ๏ธ","pencil2"],["๐","mag"],["๐","mag_right"],["๐","lock_with_ink_pen"],["๐","closed_lock_with_key"],["๐","lock"],["๐","unlock"]],name:"Objects",icon:["๐","bell"]},{emojis:[["โค๏ธ","heart"],["๐","yellow_heart"],["๐","green_heart"],["๐","blue_heart"],["๐","purple_heart"],["๐ค","black_heart"],["๐","broken_heart"],["โฃ๏ธ","heavy_heart_exclamation"],["๐","two_hearts"],["๐","revolving_hearts"],["๐","heartbeat"],["๐","heartpulse"],["๐","sparkling_heart"],["๐","cupid"],["๐","gift_heart"],["๐","heart_decoration"],["โฎ๏ธ","peace_symbol"],["โ๏ธ","latin_cross"],["โช๏ธ","star_and_crescent"],["๐","om"],["โธ๏ธ","wheel_of_dharma"],["โก๏ธ","star_of_david"],["๐ฏ","six_pointed_star"],["๐","menorah"],["โฏ๏ธ","yin_yang"],["โฆ๏ธ","orthodox_cross"],["๐","place_of_worship"],["โ","ophiuchus"],["โ๏ธ","aries"],["โ๏ธ","taurus"],["โ๏ธ","gemini"],["โ๏ธ","cancer"],["โ๏ธ","leo"],["โ๏ธ","virgo"],["โ๏ธ","libra"],["โ๏ธ","scorpius"],["โ๏ธ","sagittarius"],["โ๏ธ","capricorn"],["โ๏ธ","aquarius"],["โ๏ธ","pisces"],["๐","id"],["โ๏ธ","atom_symbol"],["๐","accept"],["โข๏ธ","radioactive"],["โฃ๏ธ","biohazard"],["๐ด","mobile_phone_off"],["๐ณ","vibration_mode"],["๐ถ","u6709"],["๐๏ธ","u7121"],["๐ธ","u7533"],["๐บ","u55b6"],["๐ท๏ธ","u6708"],["โด๏ธ","eight_pointed_black_star"],["๐","vs"],["๐ฎ","white_flower"],["๐","ideograph_advantage"],["ใ๏ธ","secret"],["ใ๏ธ","congratulations"],["๐ด","u5408"],["๐ต","u6e80"],["๐น","u5272"],["๐ฒ","u7981"],["๐
ฐ๏ธ","a"],["๐
ฑ๏ธ","b"],["๐","ab"],["๐","cl"],["๐
พ๏ธ","o2"],["๐","sos"],["โ","x"],["โญ๏ธ","o"],["๐","stop_sign"],["โ๏ธ","no_entry"],["๐","name_badge"],["๐ซ","no_entry_sign"],["๐ฏ","100"],["๐ข","anger"],["โจ๏ธ","hotsprings"],["๐ท","no_pedestrians"],["๐ฏ","do_not_litter"],["๐ณ","no_bicycles"],["๐ฑ","non-potable_water"],["๐","underage"],["๐ต","no_mobile_phones"],["๐ญ","no_smoking"],["โ๏ธ","exclamation"],["โ","grey_exclamation"],["โ","question"],["โ","grey_question"],["โผ๏ธ","bangbang"],["โ๏ธ","interrobang"],["๐
","low_brightness"],["๐","high_brightness"],["ใฝ๏ธ","part_alternation_mark"],["โ ๏ธ","warning"],["๐ธ","children_crossing"],["๐ฑ","trident"],["โ๏ธ","fleur_de_lis"],["๐ฐ","beginner"],["โป๏ธ","recycle"],["โ
","white_check_mark"],["๐ฏ๏ธ","u6307"],["๐น","chart"],["โ๏ธ","sparkle"],["โณ๏ธ","eight_spoked_asterisk"],["โ","negative_squared_cross_mark"],["๐","globe_with_meridians"],["๐ ","diamond_shape_with_a_dot_inside"],["โ๏ธ","m"],["๐","cyclone"],["๐ค","zzz"],["๐ง","atm"],["๐พ","wc"],["โฟ๏ธ","wheelchair"],["๐
ฟ๏ธ","parking"],["๐ณ","u7a7a"],["๐๏ธ","sa"],["๐","passport_control"],["๐","customs"],["๐","baggage_claim"],["๐
","left_luggage"],["๐น","mens"],["๐บ","womens"],["๐ผ","baby_symbol"],["๐ป","restroom"],["๐ฎ","put_litter_in_its_place"],["๐ฆ","cinema"],["๐ถ","signal_strength"],["๐","koko"],["๐ฃ","symbols"],["โน๏ธ","information_source"],["๐ค","abc"],["๐ก","abcd"],["๐ ","capital_abcd"],["๐","ng"],["๐","ok"],["๐","up"],["๐","cool"],["๐","new"],["๐","free"],["0๏ธโฃ","zero"],["1๏ธโฃ","one"],["2๏ธโฃ","two"],["3๏ธโฃ","three"],["4๏ธโฃ","four"],["5๏ธโฃ","five"],["6๏ธโฃ","six"],["7๏ธโฃ","seven"],["8๏ธโฃ","eight"],["9๏ธโฃ","nine"],["๐","keycap_ten"],["๐ข","1234"],["#๏ธโฃ","hash"],["*๏ธโฃ","asterisk"],["โถ๏ธ","arrow_forward"],["โธ","pause_button"],["โฏ","play_or_pause_button"],["โน","stop_button"],["โบ","record_button"],["โญ","next_track_button"],["โฎ","previous_track_button"],["โฉ","fast_forward"],["โช","rewind"],["โซ","arrow_double_up"],["โฌ","arrow_double_down"],["โ๏ธ","arrow_backward"],["๐ผ","arrow_up_small"],["๐ฝ","arrow_down_small"],["โก๏ธ","arrow_right"],["โฌ
๏ธ","arrow_left"],["โฌ๏ธ","arrow_up"],["โฌ๏ธ","arrow_down"],["โ๏ธ","arrow_upper_right"],["โ๏ธ","arrow_lower_right"],["โ๏ธ","arrow_lower_left"],["โ๏ธ","arrow_upper_left"],["โ๏ธ","arrow_up_down"],["โ๏ธ","left_right_arrow"],["โช๏ธ","arrow_right_hook"],["โฉ๏ธ","leftwards_arrow_with_hook"],["โคด๏ธ","arrow_heading_up"],["โคต๏ธ","arrow_heading_down"],["๐","twisted_rightwards_arrows"],["๐","repeat"],["๐","repeat_one"],["๐","arrows_counterclockwise"],["๐","arrows_clockwise"],["๐ต","musical_note"],["๐ถ","notes"],["โ","heavy_plus_sign"],["โ","heavy_minus_sign"],["โ","heavy_division_sign"],["โ๏ธ","heavy_multiplication_x"],["๐ฒ","heavy_dollar_sign"],["๐ฑ","currency_exchange"],["โข๏ธ","tm"],["ยฉ๏ธ","copyright"],["ยฎ๏ธ","registered"],["ใฐ๏ธ","wavy_dash"],["โฐ","curly_loop"],["โฟ","loop"],["๐","end"],["๐","back"],["๐","on"],["๐","top"],["๐","soon"],["โ๏ธ","heavy_check_mark"],["โ๏ธ","ballot_box_with_check"],["๐","radio_button"],["โช๏ธ","white_circle"],["โซ๏ธ","black_circle"],["๐ด","red_circle"],["๐ต","large_blue_circle"],["๐บ","small_red_triangle"],["๐ป","small_red_triangle_down"],["๐ธ","small_orange_diamond"],["๐น","small_blue_diamond"],["๐ถ","large_orange_diamond"],["๐ท","large_blue_diamond"],["๐ณ","white_square_button"],["๐ฒ","black_square_button"],["โช๏ธ","black_small_square"],["โซ๏ธ","white_small_square"],["โพ๏ธ","black_medium_small_square"],["โฝ๏ธ","white_medium_small_square"],["โผ๏ธ","black_medium_square"],["โป๏ธ","white_medium_square"],["โฌ๏ธ","black_large_square"],["โฌ๏ธ","white_large_square"],["๐","speaker"],["๐","mute"],["๐","sound"],["๐","loud_sound"],["๐","bell"],["๐","no_bell"],["๐ฃ","mega"],["๐ข","loudspeaker"],["๐โ๐จ","eye_speech_bubble"],["๐ฌ","speech_balloon"],["๐ญ","thought_balloon"],["๐ฏ","right_anger_bubble"],["โ ๏ธ","spades"],["โฃ๏ธ","clubs"],["โฅ๏ธ","hearts"],["โฆ๏ธ","diamonds"],["๐","black_joker"],["๐ด","flower_playing_cards"],["๐๏ธ","mahjong"],["๐","clock1"],["๐","clock2"],["๐","clock3"],["๐","clock4"],["๐","clock5"],["๐","clock6"],["๐","clock7"],["๐","clock8"],["๐","clock9"],["๐","clock10"],["๐","clock11"],["๐","clock12"],["๐","clock130"],["๐","clock230"],["๐","clock330"],["๐","clock430"],["๐ ","clock530"],["๐ก","clock630"],["๐ข","clock730"],["๐ฃ","clock830"],["๐ค","clock930"],["๐ฅ","clock1030"],["๐ฆ","clock1130"],["๐ง","clock1230"]],name:"Symbols",icon:["๐ ","capital_abcd"]}],d=function(){function e(){this.emojiSelectionEmitter=new t.EventEmitter}return e.prototype.selectCategory=function(e){this.emojiCategoryComponents.forEach((function(t){t.category.name===e.name&&t.scrollIntoView()}))},s([t.ViewChildren(t.forwardRef((function(){return p}))),c("design:type",t.QueryList)],e.prototype,"emojiCategoryComponents",void 0),s([t.Input("emojis"),c("design:type",Object)],e.prototype,"emojis",void 0),s([t.Output("emoji-selection"),c("design:type",Object)],e.prototype,"emojiSelectionEmitter",void 0),e=s([t.Component({selector:"emoji-list",template:'\n <div class="emoji-list">\n <ng-container *ngFor="let emojiCategory of emojis | notEmptyEmojiCategory">\n <emoji-category [category]="emojiCategory"></emoji-category>\n <div class="emoji-buttons">\n <emoji-button \n *ngFor="let emoji of emojiCategory.emojis"\n (selection)="emojiSelectionEmitter.emit($event)"\n [emoji]="emoji"></emoji-button>\n </div>\n </ng-container>\n </div>\n ',styles:[":host{overflow-y:auto}.emoji-list{padding:0 10px 10px}.emoji-buttons{display:flex;justify-content:center;flex-wrap:wrap;margin:5px 0}"]}),c("design:paramtypes",[])],e)}(),h=function(){function e(){this.emojiSelectionEmitter=new t.EventEmitter,this._emojis=u,this.emojis=this._emojis.slice(),this.emojisCategories=this._emojis.map((function(e){return Object.assign({},e,{emojis:[]})}))}return e.prototype.searchHandler=function(e){var t=this,o=this.emojisCategories.map((function(e){return Object.assign({},e,{emojis:[]})}));e=e.replace(/-/g,"").toLowerCase(),Object.keys(this._emojis).forEach((function(n){t._emojis[n].emojis.forEach((function(t){-1!==t[1].indexOf(e)&&o[n].emojis.push(t)}))})),this.emojis=o},e.prototype.categorySelectionHandler=function(e){this.emojiListComponent.selectCategory(e)},s([t.ViewChild(t.forwardRef((function(){return d})),{static:!0}),c("design:type",d)],e.prototype,"emojiListComponent",void 0),s([t.Output("emoji-selection"),c("design:type",Object)],e.prototype,"emojiSelectionEmitter",void 0),e=s([t.Component({selector:"emoji-content",template:'\n <emoji-header \n [emojisCategories]="emojisCategories"\n (categorySelection)="categorySelectionHandler($event)"\n (search)="searchHandler($event)"></emoji-header>\n <emoji-list [emojis]="emojis" (emoji-selection)="emojiSelectionEmitter.emit($event)"></emoji-list>\n <emoji-footer></emoji-footer>\n ',styles:[":host{display:flex;flex-direction:column;width:100vw;height:314px;border-radius:3px;background:#fff;text-align:left;box-shadow:0 11px 15px -7px rgba(0,0,0,.2),0 24px 38px 3px rgba(0,0,0,.14),0 9px 46px 8px rgba(0,0,0,.12)}@media (min-width:258px){:host{width:258px}}emoji-list{flex-grow:1}"]}),c("design:paramtypes",[])],e)}(),g=function(){function e(){}return e=s([t.Component({selector:"emoji-footer",template:'\n <footer class="emoji-footer"></footer>\n ',styles:[".emoji-footer{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #f9f9f9;border-radius:0 0 3px 3px;padding:10px;background:#fcfcfc}"]}),c("design:paramtypes",[])],e)}(),f=function(){function e(){this.categorySelection=new t.EventEmitter,this.searchEmitter=new t.EventEmitter}return s([t.Input("emojisCategories"),c("design:type",Object)],e.prototype,"emojisCategories",void 0),s([t.Output("categorySelection"),c("design:type",Object)],e.prototype,"categorySelection",void 0),s([t.Output("search"),c("design:type",Object)],e.prototype,"searchEmitter",void 0),e=s([t.Component({selector:"emoji-header",template:'\n <emoji-categories [emojisCategories]="emojisCategories" (categorySelection)="categorySelection.emit($event)"></emoji-categories>\n <emoji-search (search)="searchEmitter.emit($event)"></emoji-search>\n ',styles:[":host{display:block;border-bottom:1px solid #f9f9f9;border-radius:3px 3px 0 0;padding:10px;background:#fcfcfc}"]}),c("design:paramtypes",[])],e)}(),b=function(){function e(){var e=this;this.searchEmitter=new t.EventEmitter,this._searchValue=new n.Subject,this._destroyed=new n.Subject,this._searchValue.pipe(i.takeUntil(this._destroyed)).subscribe((function(t){e.searchEmitter.emit(t)}))}return e.prototype.handleInputChange=function(e){this._searchValue.next(e)},e.prototype.ngOnDestroy=function(){this._destroyed.next(!0)},s([t.Output("search"),c("design:type",t.EventEmitter)],e.prototype,"searchEmitter",void 0),s([t.ViewChild("input",{static:!0}),c("design:type",t.ElementRef)],e.prototype,"input",void 0),e=s([t.Component({selector:"emoji-search",template:'\n <input\n type="text"\n autocomplete="off"\n #input\n (input)="handleInputChange($event.target.value)"\n aria-label="Search"\n placeholder="Search"\n />\n ',styles:["input{width:100%;padding:5px 10px;border:1px solid #f0f0f0;outline:0;font-size:14px;font-weight:inherit;box-sizing:border-box}input:focus{border-color:#d7d7d7}"]}),c("design:paramtypes",[])],e)}();!function(e){e[e.top=0]="top",e[e.bottom=1]="bottom",e[e.left=2]="left",e[e.right=3]="right"}(l||(l={}));var y=function(){function e(e,o){var r=this;this._renderer=e,this._el=o,this.selectionEmitter=new t.EventEmitter,this.pickerCloseEmitter=new t.EventEmitter,this._windowResize=new n.Subject,this._destroyed=new n.Subject,this._windowResize.pipe(i.takeUntil(this._destroyed),i.debounceTime(100)).subscribe((function(e){r.setPosition(r._currentTarget,r._currentDirection)}))}return e.prototype.hide=function(){this._renderer.setStyle(this._el.nativeElement,"display","none")},e.prototype.show=function(){this._renderer.setStyle(this._el.nativeElement,"display","block"),this.setPosition(this._currentTarget,this._currentDirection)},e.prototype.setPosition=function(e,t){if(void 0===t&&(t=l.bottom),!e)return console.error("Emoji-Picker: positioning failed due to missing target element or direction code");this._renderer.setStyle(this._el.nativeElement,"transform",""),this._currentTarget=e,this._currentDirection=t;var o=e.nativeElement.getBoundingClientRect(),n=this._el.nativeElement.getBoundingClientRect(),i=0,r=0;switch(this._currentDirection){case l.top:case l.bottom:r=o.left-n.left+(o.width-n.width)/2;break;case l.left:case l.right:i=o.top-n.top+(o.height-n.height)/2}switch(this._currentDirection){case l.top:i=o.top-n.bottom;break;case l.left:r=o.left-n.right;break;case l.right:r=o.right-n.left;break;case l.bottom:i=o.bottom-n.top}n.bottom+i>window.innerHeight&&(i+=window.innerHeight-(n.bottom+i)),n.top+i<0&&(i-=n.top+i),n.right+r>window.innerWidth&&(r+=window.innerWidth-(n.right+r)),n.left+r<0&&(r-=n.left+r),this._renderer.setStyle(this._el.nativeElement,"transform","translate("+r+"px,"+i+"px)")},e.prototype.onBackground=function(e){e===this._lastHostMousedownEvent||e.emojiPickerExempt||this.pickerCloseEmitter.emit(e)},e.prototype.ngOnDestroy=function(){this._destroyed.next(!0)},e.ctorParameters=function(){return[{type:t.Renderer2},{type:t.ElementRef}]},s([t.Output("emoji-select"),c("design:type",Object)],e.prototype,"selectionEmitter",void 0),s([t.Output("picker-close"),c("design:type",Object)],e.prototype,"pickerCloseEmitter",void 0),e=s([t.Component({selector:"emoji-picker",template:'\n <emoji-content\n (emoji-selection)="selectionEmitter.emit($event)"\n ></emoji-content>\n ',host:{"(document:click)":"onBackground($event)","(click)":"_lastHostMousedownEvent = $event","(window:resize)":"_windowResize.next($event)"},styles:[":host { position: absolute; z-index: 9999; display: none; }"]}),c("design:paramtypes",[t.Renderer2,t.ElementRef])],e)}(),w=function(){function e(e){Object.assign(this,e)}return e.fromArray=function(t){return new e({char:t[0],label:t[1]})},e}(),k=function(){function e(e,o,r){var a=this;this._cfr=e,this._vcr=o,this._el=r,this._directionCode=l.bottom,this._searchBar=!1,this.emojiPickerIfEmitter=new t.EventEmitter,this.selectEmitter=new t.EventEmitter,this._emojiPickerOpenState=new n.Subject,this._destroyed=new n.Subject,this._emojiSubs=[],this.initPicker(),this._emojiPickerOpenState.pipe(i.takeUntil(this._destroyed),i.distinctUntilChanged()).subscribe((function(e){var t,o,n,i,r,s;e?null===(n=null===(o=null===(t=a._emojiPickerRef)||void 0===t?void 0:t.instance)||void 0===o?void 0:o.show)||void 0===n||n.call(o):null===(s=null===(r=null===(i=a._emojiPickerRef)||void 0===i?void 0:i.instance)||void 0===r?void 0:r.hide)||void 0===s||s.call(r)}))}return Object.defineProperty(e.prototype,"emojiPickerDirection",{set:function(e){void 0===l[e]?(console.error("Emoji-Picker: direction '"+e+"' passed as input does not exist in DIRECTIONS table, defaulting to 'bottom'"),this._directionCode=l.bottom):this._directionCode=l[e]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"emojiPickerIf",{set:function(e){this._emojiPickerOpenState.next(e)},enumerable:!0,configurable:!0}),e.prototype.initPicker=function(){var e=this;this._emojiPickerFactory=this._emojiPickerFactory||this._cfr.resolveComponentFactory(y),this._emojiPickerRef=this._emojiPickerRef||this._vcr.createComponent(this._emojiPickerFactory),this._emojiPickerRef.instance.setPosition(this._el,this._directionCode),this._emojiSubs.push(this._emojiPickerRef.instance.pickerCloseEmitter.subscribe((function(t){return e.emojiPickerIfEmitter.emit(!1)})),this._emojiPickerRef.instance.selectionEmitter.subscribe((function(t){return e.selectEmitter.emit(w.fromArray(t))})))},e.prototype.closePicker=function(){this._emojiPickerRef&&this._emojiPickerRef.destroy&&(this._emojiSubs.forEach((function(e){return e.unsubscribe()})),this._emojiPickerRef.destroy(),this._emojiSubs=[],delete this._emojiPickerRef)},e.prototype.ngOnDestroy=function(){this._destroyed.next(!0)},e.ctorParameters=function(){return[{type:t.ComponentFactoryResolver},{type:t.ViewContainerRef},{type:t.ElementRef}]},s([t.Input("emojiPickerDirection"),c("design:type",String),c("design:paramtypes",[String])],e.prototype,"emojiPickerDirection",null),s([t.Input("emojiPickerIf"),c("design:type",Boolean),c("design:paramtypes",[Boolean])],e.prototype,"emojiPickerIf",null),s([t.Output("emojiPickerIfChange"),c("design:type",Object)],e.prototype,"emojiPickerIfEmitter",void 0),s([t.Output("emojiPickerSelect"),c("design:type",Object)],e.prototype,"selectEmitter",void 0),e=s([t.Directive({selector:"[emojiPickerIf]",host:{"(click)":"$event.emojiPickerExempt = true"}}),c("design:paramtypes",[t.ComponentFactoryResolver,t.ViewContainerRef,t.ElementRef])],e)}(),j=function(){function e(e){Object.assign(this,e)}return e.prototype.clone=function(){return new e(Object.assign({},this,{caretRange:this.caretRange&&this.caretRange.cloneRange?this.caretRange.cloneRange():this.caretRange}))},e.generateNullEvent=function(){return new e({caretOffset:0,textContent:""})},e.comparePropsOfObject=function(e,t){for(var o in e)if(e[o]!==t[o])return!1;return!0},e.compare=function(e,t){return!(!e.caretRange&&t.caretRange||e.caretRange&&!t.caretRange||e.caretOffset!==t.caretOffset||e.textContent!==t.textContent||!this.comparePropsOfObject(e.caretRange,t.caretRange))},e.generateCaretEvent=function(t,o,n){var i,r,a=0,s=n.textContent;if("input"===n.tagName.toLowerCase())return new e({caretOffset:n.selectionEnd,textContent:n.value});if(void 0!==t.getSelection){if((i=t.getSelection()).rangeCount>0){var c=t.getSelection().getRangeAt(0),l=c.cloneRange();l.selectNodeContents(n),l.setEnd(c.endContainer,c.endOffset),a=l.toString().length,r=c.cloneRange()}}else if((i=o.selection)&&"Control"!=i.type){var _=i.createRange(),m=o.body.createTextRange();m.moveToElementText(n),m.setEndPoint("EndToEnd",_),a=m.text.length,(r=_.duplicate()).insertNode=function(e){var t=document.createElement("div");t.appendChild(e),r.pasteHTML(t.innerHTML)}}return new e({caretOffset:a,caretRange:r,textContent:s})},e}(),v=function(){function e(e){var o=this;this._el=e,this.caretEmitter=new t.EventEmitter,this._caretEvent$=new n.Subject,this._destroyed$=new n.Subject,this._lastCaretEvent=j.generateNullEvent(),this._caretEvent$.pipe(i.takeUntil(this._destroyed$),i.distinctUntilChanged((function(e,t){return j.compare(e,t)}))).subscribe((function(e){o.caretEmitter.emit(e),o._lastCaretEvent=e.clone()}))}return Object.defineProperty(e.prototype,"doc",{get:function(){return this._doc||(this._doc=this._el.nativeElement.ownerDocument||this._el.nativeElement.document||document),this._doc},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"win",{get:function(){return this._win||(this._win=this.doc.defaultView||this.doc.parentWindow||window),this._win},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){if(!this._el.nativeElement.getAttribute("contenteditable")&&"input"!==this._el.nativeElement.tagName.toLowerCase())throw new Error("(emojiPickerPositionEmitter) should only work on contenteditable enabled or input elements")},e.prototype.ngOnDestroy=function(){this._destroyed$.next(!0)},e.prototype.updateCaretPosition=function(){var e=j.generateCaretEvent(this.win,this.doc,this._el.nativeElement);this._caretEvent$.next(e)},e.prototype.updateCaretDueMutation=function(){var e=this,t=j.generateCaretEvent(this.win,this.doc,this._el.nativeElement),o=t.textContent.length-this._lastCaretEvent.textContent.length;t.caretOffset=this._lastCaretEvent.caretOffset+o,setTimeout((function(){e._caretEvent$.next(t)}))},e.ctorParameters=function(){return[{type:t.ElementRef}]},s([t.Output("emojiPickerCaretEmitter"),c("design:type",Object)],e.prototype,"caretEmitter",void 0),e=s([t.Directive({selector:"[emojiPickerCaretEmitter]",host:{"(keyup)":"updateCaretPosition()","(mouseup)":"updateCaretPosition()","(selectstart)":"updateCaretPosition()","(focus)":"updateCaretPosition()","(DOMSubtreeModified)":"updateCaretDueMutation($event)"}}),c("design:paramtypes",[t.ElementRef])],e)}(),E=function(){function e(){}return e.prototype.transform=function(e){return e.filter((function(e){return 0!==e.emojis.length}))},e=s([t.Pipe({name:"notEmptyEmojiCategory"})],e)}(),x=function(){function e(e){this.domSanitizer=e}return e.prototype.transform=function(e){return!e||this.supportsEmoji()?e:this.domSanitizer.bypassSecurityTrustHtml(r.parse(e.trim()))},e.prototype.supportsEmoji=function(){var e=document.createElement("canvas").getContext("2d");return e.fillText("๐",-2,4),e.getImageData(0,0,1,1).data[3]>0},e.ctorParameters=function(){return[{type:a.DomSanitizer}]},e=s([t.Pipe({name:"emojiFallback"}),c("design:paramtypes",[a.DomSanitizer])],e)}(),C=function(){function e(){}var n;return n=e,e.forRoot=function(){return{ngModule:n,providers:[]}},e=n=s([t.NgModule({declarations:[k,v,_,h,y,d,f,b,m,p,g,E,x],imports:[o.CommonModule],exports:[k,v,_,h,y,d,f,b,m,p,g],providers:[],entryComponents:[y]})],e)}();e.CaretEvent=j,e.EmojiButtonComponent=_,e.EmojiCategoriesComponent=m,e.EmojiCategoryComponent=p,e.EmojiContentComponent=h,e.EmojiEvent=w,e.EmojiFooterComponent=g,e.EmojiHeaderComponent=f,e.EmojiListComponent=d,e.EmojiPickerApiDirective=k,e.EmojiPickerCaretDirective=v,e.EmojiPickerComponent=y,e.EmojiSearchComponent=b,e.NgxEmojiPickerModule=C,e.ษตa=E,e.ษตb=x,Object.defineProperty(e,"__esModule",{value:!0})}));
//# sourceMappingURL=ngx-emoji-picker.umd.min.js.map