richlagetest
Advanced tools
Comparing version 0.0.0-d8eb1a75b0b10d03108bf90306eb8d815d617f93 to 0.0.0-e4457a08cf399d1790be0290c3f4231d4fec68e4
@@ -1,2 +0,2 @@ | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _inheritsLoose=require("@babel/runtime/helpers/inheritsLoose"),React=require("react"),lodash=require("lodash");function _interopDefaultLegacy(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var _inheritsLoose__default=_interopDefaultLegacy(_inheritsLoose),React__default=_interopDefaultLegacy(React),styles_toolbar="_2M9cT",styles_button="_1lTtq",getSelectionRects=function(selection){var range=selection.getRangeAt(0),innerRects=function(range){for(var _iterator=document.createNodeIterator(range.commonAncestorContainer,NodeFilter.SHOW_ALL),innerSelectionNodes=[];_iterator.nextNode()&&_iterator.referenceNode!==range.startContainer;);for(;_iterator.nextNode()&&_iterator.referenceNode!==range.endContainer;)_iterator.referenceNode.nodeType===Node.TEXT_NODE&&innerSelectionNodes.push(_iterator.referenceNode);return innerSelectionNodes}(range).map((function(n){var r=document.createRange();return r.selectNodeContents(n),r.getBoundingClientRect()})),clientRects=range.getClientRects();return[clientRects[0]].concat(innerRects,[clientRects[clientRects.length-1]])};function addTextSelectionListener(container,callback){var handleSelection=function(){var selectedText,position,selection=document.getSelection(),selectionAnchor=null==selection?void 0:selection.anchorNode,selectionFocus=null==selection?void 0:selection.focusNode;selection&&selection.rangeCount>0&&!selection.isCollapsed&&container.contains(selectionAnchor)&&container.contains(selectionFocus)&&(selectedText=function(selection){return selection.toString().replace(/(\r\n|\r|\n){2,}/g," ")}(selection),position=function(selection){var rects=getSelectionRects(selection),left=999999,right=0;rects.forEach((function(rect){left=Math.min(left,rect.left),right=Math.max(right,rect.right)}));var y=rects[0].top+window.scrollY;return{x:(left+right)/2+window.scrollX,y:y}}(selection)),callback(selectedText,position)};return document.addEventListener("selectionchange",handleSelection),function(){return document.removeEventListener("selectionchange",handleSelection)}}var TextSelectionToolbar=function(_React$Component){function TextSelectionToolbar(props){var _this;return(_this=_React$Component.call(this,props)||this).addTextSelectionListener=function(container){container&&!_this.removeTextSelectionListener&&(_this.removeTextSelectionListener=addTextSelectionListener(container,_this.setSelectedText))},_this.setSelectedText=lodash.debounce((function(selectedText,selectedTextPosition){return _this.setState({selectedText:selectedText,selectedTextPosition:selectedTextPosition})}),50),_this.state={selectedText:""},_this}_inheritsLoose__default.default(TextSelectionToolbar,_React$Component);var _proto=TextSelectionToolbar.prototype;return _proto.componentDidMount=function(){this.addTextSelectionListener(this.props.container)},_proto.componentWillUnmount=function(){this.removeTextSelectionListener()},_proto.componentWillReceiveProps=function(nextPros){this.addTextSelectionListener(nextPros.container)},_proto.render=function(){var _this$state=this.state,selectedText=_this$state.selectedText,selectedTextPosition=_this$state.selectedTextPosition,_this$props=this.props,container=_this$props.container,children=_this$props.children;if(!selectedText||!selectedTextPosition)return null;var left=container.getBoundingClientRect().left,containerOffset=this.props.container.getBoundingClientRect().top,style={top:selectedTextPosition.y-containerOffset-5-window.scrollY,left:selectedTextPosition.x-left};return React__default.default.createElement("div",{className:styles_toolbar,style:style},children(selectedText))},TextSelectionToolbar}(React__default.default.Component),twitter=function(props){return React__default.default.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20"},props),React__default.default.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M17.653 4.268c.854-.52 1.493-1.336 1.8-2.297-.804.483-1.683.825-2.6 1.01-1.153-1.245-2.939-1.65-4.506-1.023-1.566.627-2.597 2.16-2.6 3.867.001.318.037.636.106.946-3.298-.168-6.37-1.748-8.453-4.346-.37.633-.563 1.355-.56 2.09-.117 1.34.452 2.647 1.507 3.463C1.608 7.87.88 7.696.173 7.458v.052c.142 2.038 1.63 3.717 3.614 4.077-.298.098-.608.147-.92.146-.233.001-.466-.024-.694-.074.55 1.699 2.103 2.858 3.867 2.888-1.446 1.158-3.237 1.786-5.08 1.78-.32 0-.641-.02-.96-.058 3.593 2.332 8.156 2.492 11.9.417 3.744-2.076 6.073-6.056 6.073-10.381 0-.18-.013-.36-.013-.54.801-.588 1.492-1.316 2.04-2.15-.745.336-1.536.556-2.347.653z"}))};exports.TextSelectionToolbar=TextSelectionToolbar,exports.TwitterButton=function(_ref){var selectedText=_ref.selectedText,onClick=_ref.onClick,handleOnClick=function(selectedText){null==onClick||onClick(selectedText),function(selectedText){var text="“"+selectedText+"“—",url=window.location.href;text.length+url.length>279&&(text=function(text,maxTextLength){var content=text.substring(0,maxTextLength-2);return(content=content.slice(0,content.lastIndexOf(" ")))+"…“—"}(text,279-url.length));var TWEET_ON_TWITTER_URL="https://twitter.com/intent/tweet?text="+encodeURI(text)+"&url="+encodeURI(url);window.open(TWEET_ON_TWITTER_URL)}(selectedText)};return React__default.default.createElement("button",{"data-hook":"twitter-button",className:styles_button,onClick:function(){return handleOnClick(selectedText)}},React__default.default.createElement(twitter,null))}; | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _extends=require("@babel/runtime/helpers/extends"),_objectWithoutPropertiesLoose=require("@babel/runtime/helpers/objectWithoutPropertiesLoose"),wixRichContentPluginCommons=require("wix-rich-content-plugin-commons"),React=require("react"),wixRichContentEditorCommon=require("wix-rich-content-editor-common"),_assertThisInitialized=require("@babel/runtime/helpers/assertThisInitialized"),_inheritsLoose=require("@babel/runtime/helpers/inheritsLoose"),Scrollbars=require("react-custom-scrollbars"),wixRichContentCommon=require("wix-rich-content-common");function _interopDefaultLegacy(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var _extends__default=_interopDefaultLegacy(_extends),_objectWithoutPropertiesLoose__default=_interopDefaultLegacy(_objectWithoutPropertiesLoose),React__default=_interopDefaultLegacy(React),_assertThisInitialized__default=_interopDefaultLegacy(_assertThisInitialized),_inheritsLoose__default=_interopDefaultLegacy(_inheritsLoose),Scrollbars__default=_interopDefaultLegacy(Scrollbars),FaBell=function(props){return React__default.default.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 448 512",width:"16",height:"16"},props),React__default.default.createElement("path",{d:"M224 512c35.32 0 63.97-28.65 63.97-64H160.03c0 35.35 28.65 64 63.97 64zm215.39-149.71c-19.32-20.76-55.47-51.99-55.47-154.29 0-77.7-54.48-139.9-127.94-155.16V32c0-17.67-14.32-32-31.98-32s-31.98 14.33-31.98 32v20.84C118.56 68.1 64.08 130.3 64.08 208c0 102.3-36.15 133.53-55.47 154.29-6 6.45-8.66 14.16-8.61 21.71.11 16.4 12.98 32 32.1 32h383.8c19.12 0 32-15.6 32.1-32 .05-7.55-2.61-15.27-8.61-21.71z"}))},FaFlag=function(props){return React__default.default.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 512 512",width:"16",height:"16"},props),React__default.default.createElement("path",{d:"M349.565 98.783C295.978 98.783 251.721 64 184.348 64c-24.955 0-47.309 4.384-68.045 12.013a55.947 55.947 0 0 0 3.586-23.562C118.117 24.015 94.806 1.206 66.338.048 34.345-1.254 8 24.296 8 56c0 19.026 9.497 35.825 24 45.945V488c0 13.255 10.745 24 24 24h16c13.255 0 24-10.745 24-24v-94.4c28.311-12.064 63.582-22.122 114.435-22.122 53.588 0 97.844 34.783 165.217 34.783 48.169 0 86.667-16.294 122.505-40.858C506.84 359.452 512 349.571 512 339.045v-243.1c0-23.393-24.269-38.87-45.485-29.016-34.338 15.948-76.454 31.854-116.95 31.854z"}))},FaHeart=function(props){return React__default.default.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 512 512",width:"16",height:"16"},props),React__default.default.createElement("path",{d:"M462.3 62.6C407.5 15.9 326 24.3 275.7 76.2L256 96.5l-19.7-20.3C186.1 24.3 104.5 15.9 49.7 62.6c-62.8 53.6-66.1 149.8-9.9 207.9l193.5 199.8c12.5 12.9 32.8 12.9 45.3 0l193.5-199.8c56.3-58.1 53-154.3-9.8-207.9z"}))},FaPaw=function(props){return React__default.default.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 512 512",width:"16",height:"16"},props),React__default.default.createElement("path",{d:"M256 224c-79.41 0-192 122.76-192 200.25 0 34.9 26.81 55.75 71.74 55.75 48.84 0 81.09-25.08 120.26-25.08 39.51 0 71.85 25.08 120.26 25.08 44.93 0 71.74-20.85 71.74-55.75C448 346.76 335.41 224 256 224zm-147.28-12.61c-10.4-34.65-42.44-57.09-71.56-50.13-29.12 6.96-44.29 40.69-33.89 75.34 10.4 34.65 42.44 57.09 71.56 50.13 29.12-6.96 44.29-40.69 33.89-75.34zm84.72-20.78c30.94-8.14 46.42-49.94 34.58-93.36s-46.52-72.01-77.46-63.87-46.42 49.94-34.58 93.36c11.84 43.42 46.53 72.02 77.46 63.87zm281.39-29.34c-29.12-6.96-61.15 15.48-71.56 50.13-10.4 34.65 4.77 68.38 33.89 75.34 29.12 6.96 61.15-15.48 71.56-50.13 10.4-34.65-4.77-68.38-33.89-75.34zm-156.27 29.34c30.94 8.14 65.62-20.45 77.46-63.87 11.84-43.42-3.64-85.21-34.58-93.36s-65.62 20.45-77.46 63.87c-11.84 43.42 3.64 85.22 34.58 93.36z"}))},FaSmile=function(props){return React__default.default.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 496 512",width:"16",height:"16"},props),React__default.default.createElement("path",{d:"M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm80 168c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm-160 0c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm194.8 170.2C334.3 380.4 292.5 400 248 400s-86.3-19.6-114.8-53.8c-13.6-16.3 11-36.7 24.6-20.5 22.4 26.9 55.2 42.2 90.2 42.2s67.8-15.4 90.2-42.2c13.4-16.2 38.1 4.2 24.6 20.5z"}))},FaPlane=function(props){return React__default.default.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 576 512",width:"16",height:"16"},props),React__default.default.createElement("path",{d:"M480 192H365.71L260.61 8.06A16.014 16.014 0 0 0 246.71 0h-65.5c-10.63 0-18.3 10.17-15.38 20.39L214.86 192H112l-43.2-57.6c-3.02-4.03-7.77-6.4-12.8-6.4H16.01C5.6 128-2.04 137.78.49 147.88L32 256 .49 364.12C-2.04 374.22 5.6 384 16.01 384H56c5.04 0 9.78-2.37 12.8-6.4L112 320h102.86l-49.03 171.6c-2.92 10.22 4.75 20.4 15.38 20.4h65.5c5.74 0 11.04-3.08 13.89-8.06L365.71 320H480c35.35 0 96-28.65 96-64s-60.65-64-96-64z"}))},FaUtensils=function(props){return React__default.default.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 416 512",width:"16",height:"16"},props),React__default.default.createElement("path",{d:"M207.9 15.2c.8 4.7 16.1 94.5 16.1 128.8 0 52.3-27.8 89.6-68.9 104.6L168 486.7c.7 13.7-10.2 25.3-24 25.3H80c-13.7 0-24.7-11.5-24-25.3l12.9-238.1C27.7 233.6 0 196.2 0 144 0 109.6 15.3 19.9 16.1 15.2 19.3-5.1 61.4-5.4 64 16.3v141.2c1.3 3.4 15.1 3.2 16 0 1.4-25.3 7.9-139.2 8-141.8 3.3-20.8 44.7-20.8 47.9 0 .2 2.7 6.6 116.5 8 141.8.9 3.2 14.8 3.4 16 0V16.3c2.6-21.6 44.8-21.4 48-1.1zm119.2 285.7l-15 185.1c-1.2 14 9.9 26 23.9 26h56c13.3 0 24-10.7 24-24V24c0-13.2-10.7-24-24-24-82.5 0-221.4 178.5-64.9 300.9z"}))},FaRegFutbol=function(props){return React__default.default.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 496 512",width:"16",height:"16"},props),React__default.default.createElement("path",{d:"M483.8 179.4C449.8 74.6 352.6 8 248.1 8c-25.4 0-51.2 3.9-76.7 12.2C41.2 62.5-30.1 202.4 12.2 332.6 46.2 437.4 143.4 504 247.9 504c25.4 0 51.2-3.9 76.7-12.2 130.2-42.3 201.5-182.2 159.2-312.4zm-74.5 193.7l-52.2 6.4-43.7-60.9 24.4-75.2 71.1-22.1 38.9 36.4c-.2 30.7-7.4 61.1-21.7 89.2-4.7 9.3-10.7 17.8-16.8 26.2zm0-235.4l-10.4 53.1-70.7 22-64.2-46.5V92.5l47.4-26.2c39.2 13 73.4 38 97.9 71.4zM184.9 66.4L232 92.5v73.8l-64.2 46.5-70.6-22-10.1-52.5c24.3-33.4 57.9-58.6 97.8-71.9zM139 379.5L85.9 373c-14.4-20.1-37.3-59.6-37.8-115.3l39-36.4 71.1 22.2 24.3 74.3-43.5 61.7zm48.2 67l-22.4-48.1 43.6-61.7H287l44.3 61.7-22.4 48.1c-6.2 1.8-57.6 20.4-121.7 0z"}))},getEmojiGroups=function(t){return[{title:t("EmojiPlugin_EmojiGroups_People"),icon:React__default.default.createElement(FaSmile,null),category:"people",top:948},{title:t("EmojiPlugin_EmojiGroups_Nature"),icon:React__default.default.createElement(FaPaw,null),category:"nature",top:1937},{title:t("EmojiPlugin_EmojiGroups_Food"),icon:React__default.default.createElement(FaUtensils,null),category:"food",top:2453},{title:t("EmojiPlugin_EmojiGroups_Activity"),icon:React__default.default.createElement(FaRegFutbol,null),category:"activity",top:2497},{title:t("EmojiPlugin_EmojiGroups_Travel"),icon:React__default.default.createElement(FaPlane,null),category:"travel",top:3485},{title:t("EmojiPlugin_EmojiGroups_Objects"),icon:React__default.default.createElement(FaBell,null),category:"objects",top:4603},{title:t("EmojiPlugin_EmojiGroups_Symbols"),icon:React__default.default.createElement(FaHeart,null),category:"symbols",top:6280},{title:t("EmojiPlugin_EmojiGroups_Flags"),icon:React__default.default.createElement(FaFlag,null),category:"flags",top:1e4}]},DesktopFlyOutModalStyles=Object.freeze({overlay:{backgroundColor:"rgba(0, 0, 0, 0)",zIndex:5},content:{width:"320px",boxSizing:"border-box",height:"364px",overflow:"visible",border:"solid 1px rgba(51, 51, 51, 0.1)",paddingRight:"0px",paddingLeft:"0px",display:"block",borderRadius:"2px",position:"absolute",zIndex:6,paddingTop:"20px",boxShadow:"0 0 10px 0 rgba(0, 0, 0, 0.06)"}}),DEFAULT_CONFIG={},JoyPixelsIcon=function(props){return React__default.default.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"123",height:"13",viewBox:"0 0 123 13"},props),React__default.default.createElement("path",{fill:"currentColor",fillRule:"nonzero",d:"M.714 6.195v3.99H0V.28h2.555c1.162 0 2.038.254 2.629.763.59.509.885 1.234.885 2.177 0 .434-.08.833-.242 1.197a2.659 2.659 0 0 1-.696.941 3.255 3.255 0 0 1-1.106.616c-.434.148-.924.221-1.47.221H.714zm0-.574h1.841c.439 0 .83-.06 1.176-.182a2.59 2.59 0 0 0 .878-.504 2.19 2.19 0 0 0 .553-.76c.129-.291.193-.61.193-.955 0-.76-.234-1.346-.704-1.757-.469-.41-1.167-.616-2.096-.616H.714v4.774zm9.702-2.513c.5 0 .946.085 1.34.255.395.17.727.412.998.725.27.313.477.69.62 1.13.142.442.213.935.213 1.481s-.071 1.038-.213 1.477a3.214 3.214 0 0 1-.62 1.127c-.27.313-.603.553-.998.721a3.39 3.39 0 0 1-1.34.252c-.5 0-.946-.084-1.34-.252a2.73 2.73 0 0 1-1.002-.721 3.183 3.183 0 0 1-.622-1.127 4.772 4.772 0 0 1-.214-1.477c0-.546.071-1.04.214-1.48a3.18 3.18 0 0 1 .623-1.131 2.765 2.765 0 0 1 1-.725 3.35 3.35 0 0 1 1.341-.255zm0 6.643c.415 0 .778-.071 1.089-.213.31-.143.569-.347.776-.613.208-.266.363-.587.466-.963.103-.375.154-.796.154-1.263 0-.462-.051-.882-.154-1.26a2.736 2.736 0 0 0-.466-.97 2.078 2.078 0 0 0-.776-.619 2.553 2.553 0 0 0-1.089-.217c-.415 0-.778.072-1.089.217-.31.145-.569.351-.777.62a2.78 2.78 0 0 0-.468.969 4.703 4.703 0 0 0-.158 1.26c0 .467.052.888.158 1.263.105.376.26.697.468.963.208.266.467.47.777.613.31.142.674.213 1.089.213zm3.941-6.531h.511c.065 0 .119.017.161.053.042.035.07.073.084.115l1.757 5.495c.033.107.058.21.077.308l.056.294a6.82 6.82 0 0 1 .077-.294l.045-.15 1.922-5.702c.033-.103.098-.154.196-.154h.273c.103 0 .17.051.203.154l1.841 5.544c.07.21.126.413.168.609l.06-.298.037-.153 1.814-5.653c.037-.112.117-.168.238-.168h.49l-2.331 6.965h-.49c-.075 0-.128-.049-.161-.147l-1.911-5.656-.033-.105-.03-.105a3.411 3.411 0 0 1-.049-.21l-.046.21c-.016.07-.036.14-.059.21l-1.932 5.656c-.028.098-.084.147-.168.147h-.469L14.357 3.22zm13.923-.112c.392 0 .755.068 1.089.203.333.135.622.332.868.591.245.26.436.578.573.956.138.378.207.812.207 1.302 0 .103-.015.173-.046.21-.03.037-.078.056-.143.056h-5.033v.133c0 .523.06.982.182 1.379.121.397.294.73.518.998.224.268.495.47.812.605.317.135.672.203 1.064.203a3.184 3.184 0 0 0 1.558-.374c.13-.072.242-.139.332-.2l.084-.06c.103-.077.177-.115.224-.115a.16.16 0 0 1 .14.07l.182.224a1.9 1.9 0 0 1-.445.392c-.184.121-.39.225-.616.312a4.488 4.488 0 0 1-.728.206c-.259.051-.519.077-.78.077-.476 0-.91-.083-1.302-.248a2.76 2.76 0 0 1-1.008-.725 3.298 3.298 0 0 1-.648-1.166c-.151-.46-.227-.985-.227-1.578 0-.5.071-.96.214-1.382.142-.423.347-.787.615-1.093.269-.305.598-.544.987-.717.39-.173.832-.259 1.327-.259zm.007.497c-.36 0-.681.056-.966.168-.285.112-.53.273-.738.483-.208.21-.376.462-.505.756a3.441 3.441 0 0 0-.255.987h4.592c0-.373-.051-.708-.154-1.005a2.148 2.148 0 0 0-.434-.752 1.879 1.879 0 0 0-.672-.472 2.222 2.222 0 0 0-.868-.165zm4.522 6.58V3.22h.35c.08 0 .137.016.172.049.034.033.054.089.059.168l.056 1.47c.224-.565.523-1.007.896-1.326.373-.32.833-.48 1.379-.48a2.228 2.228 0 0 1 1.085.259l-.091.462c-.014.075-.06.112-.14.112a.272.272 0 0 1-.072-.012l-.167-.056-.073-.023a2.3 2.3 0 0 0-.668-.091c-.527 0-.96.163-1.298.49-.339.327-.613.798-.823 1.414v4.529h-.665zm8.183-7.077c.392 0 .755.068 1.089.203.333.135.622.332.867.591.246.26.437.578.575.956.137.378.206.812.206 1.302 0 .103-.015.173-.045.21-.03.037-.079.056-.144.056h-5.033v.133c0 .523.06.982.182 1.379.121.397.294.73.518.998.224.268.495.47.812.605.317.135.672.203 1.064.203a3.184 3.184 0 0 0 1.558-.374c.13-.072.242-.139.332-.2l.084-.06c.103-.077.177-.115.224-.115a.16.16 0 0 1 .14.07l.182.224a1.9 1.9 0 0 1-.444.392c-.185.121-.39.225-.617.312a4.488 4.488 0 0 1-.727.206c-.26.051-.52.077-.781.077-.476 0-.91-.083-1.302-.248a2.76 2.76 0 0 1-1.008-.725 3.298 3.298 0 0 1-.647-1.166c-.152-.46-.228-.985-.228-1.578 0-.5.071-.96.214-1.382.142-.423.347-.787.616-1.093.268-.305.597-.544.987-.717.39-.173.831-.259 1.326-.259zm.007.497c-.36 0-.681.056-.966.168-.285.112-.53.273-.739.483-.207.21-.375.462-.503.756a3.441 3.441 0 0 0-.256.987h4.592c0-.373-.051-.708-.154-1.005a2.148 2.148 0 0 0-.434-.752 1.879 1.879 0 0 0-.672-.472 2.222 2.222 0 0 0-.868-.165zm9.457 6.58c-.117 0-.184-.06-.203-.182l-.07-1.099a3.69 3.69 0 0 1-1.082 1.001 2.652 2.652 0 0 1-1.389.371c-.854 0-1.52-.296-1.998-.889-.479-.593-.718-1.482-.718-2.667 0-.509.066-.983.2-1.424.133-.442.328-.824.588-1.148.259-.325.576-.58.952-.767.375-.187.808-.28 1.298-.28.471 0 .88.087 1.225.262.345.176.644.431.896.767V0h.672v10.185h-.371zm-2.555-.448c.462 0 .88-.119 1.253-.357.373-.238.707-.57 1.001-.994V4.711c-.27-.397-.568-.677-.893-.84a2.417 2.417 0 0 0-1.102-.245c-.41 0-.77.075-1.078.224-.308.15-.566.36-.773.633-.208.274-.364.6-.47.98-.105.38-.157.8-.157 1.257 0 1.036.191 1.798.574 2.285.383.488.931.732 1.645.732zm8.036.448V0h.672v4.438c.308-.41.665-.735 1.071-.973a2.662 2.662 0 0 1 1.372-.357c.854 0 1.52.295 1.998.886.479.59.718 1.478.718 2.663 0 .509-.066.983-.2 1.424a3.383 3.383 0 0 1-.587 1.149c-.26.324-.577.58-.952.766-.376.187-.809.28-1.299.28-.485 0-.903-.094-1.253-.284a2.58 2.58 0 0 1-.903-.836l-.042.854c-.014.117-.077.175-.189.175h-.406zm2.926-6.545c-.462 0-.88.119-1.253.357-.373.238-.707.57-1.001.994v3.675c.266.401.56.682.882.844.322.16.693.241 1.113.241.41 0 .77-.075 1.078-.224.308-.15.566-.36.773-.633.208-.274.364-.6.47-.98.105-.38.157-.8.157-1.257 0-1.036-.191-1.798-.574-2.285-.383-.488-.931-.732-1.645-.732zm6.167 8.785a.477.477 0 0 1-.108.161c-.045.042-.109.063-.193.063h-.476l1.225-2.723-2.947-6.706h.553a.24.24 0 0 1 .165.053c.04.035.068.073.087.115l2.345 5.418c.028.07.052.141.074.214.02.072.04.145.059.22l.036-.111.037-.11c.026-.072.053-.143.081-.213l2.317-5.418a.301.301 0 0 1 .098-.123.234.234 0 0 1 .14-.045h.511l-4.004 9.205zm8.862-9.205v7.854c0 .243-.035.467-.105.672-.07.205-.174.384-.311.536-.138.151-.31.27-.518.357-.208.086-.452.129-.732.129a1.72 1.72 0 0 1-.364-.035 1.338 1.338 0 0 1-.315-.112l.035-.336c.005-.056.037-.084.098-.084.037 0 .09.01.157.028.068.019.16.028.277.028.378 0 .658-.103.84-.308.182-.205.273-.497.273-.875V3.22h.665zm.294-2.401a.531.531 0 0 1-.053.234.703.703 0 0 1-.136.193.633.633 0 0 1-.196.133.587.587 0 0 1-.238.049.587.587 0 0 1-.238-.049.633.633 0 0 1-.329-.326.612.612 0 0 1 0-.476.623.623 0 0 1 .567-.381c.084 0 .163.016.238.049a.633.633 0 0 1 .332.333.577.577 0 0 1 .053.241zm4.795 2.289c.5 0 .946.085 1.34.255.395.17.727.412.998.725.27.313.477.69.62 1.13.142.442.213.935.213 1.481s-.071 1.038-.214 1.477a3.214 3.214 0 0 1-.619 1.127c-.27.313-.603.553-.997.721a3.39 3.39 0 0 1-1.341.252c-.5 0-.946-.084-1.34-.252a2.73 2.73 0 0 1-1.002-.721 3.183 3.183 0 0 1-.622-1.127 4.772 4.772 0 0 1-.214-1.477c0-.546.071-1.04.214-1.48a3.18 3.18 0 0 1 .623-1.131 2.765 2.765 0 0 1 1-.725 3.35 3.35 0 0 1 1.341-.255zm0 6.643c.415 0 .778-.071 1.089-.213.31-.143.569-.347.776-.613.208-.266.363-.587.466-.963.103-.375.154-.796.154-1.263 0-.462-.051-.882-.154-1.26a2.736 2.736 0 0 0-.466-.97 2.078 2.078 0 0 0-.776-.619 2.553 2.553 0 0 0-1.089-.217c-.415 0-.778.072-1.089.217-.31.145-.569.351-.776.62a2.78 2.78 0 0 0-.47.969 4.703 4.703 0 0 0-.157 1.26c0 .467.052.888.157 1.263.106.376.262.697.47.963.207.266.466.47.776.613.31.142.674.213 1.089.213zm6.44 2.674a.477.477 0 0 1-.109.161c-.044.042-.108.063-.192.063h-.476l1.225-2.723-2.947-6.706h.553a.24.24 0 0 1 .165.053c.04.035.068.073.087.115l2.345 5.418c.028.07.053.141.074.214.02.072.04.145.059.22l.036-.111.038-.11c.025-.072.052-.143.08-.213l2.317-5.418a.301.301 0 0 1 .098-.123.234.234 0 0 1 .14-.045h.511l-4.004 9.205zm5.299.224V3.22h.364c.06 0 .11.013.147.039.037.025.058.07.063.136l.063 1.078a3.69 3.69 0 0 1 1.081-1.001 2.652 2.652 0 0 1 1.39-.371c.859 0 1.526.296 2.002.889.476.593.714 1.482.714 2.667 0 .509-.066.983-.2 1.424a3.419 3.419 0 0 1-.584 1.149 2.76 2.76 0 0 1-.948.766c-.376.187-.809.28-1.299.28-.476 0-.887-.086-1.232-.259a2.505 2.505 0 0 1-.896-.77v3.402h-.665zm2.919-9.009c-.462 0-.88.12-1.257.36-.375.24-.708.576-.997 1.005v3.654c.266.401.561.684.886.847.324.163.694.245 1.109.245.41 0 .77-.075 1.078-.224.308-.15.566-.36.773-.633.208-.274.364-.6.47-.98.105-.38.157-.8.157-1.257 0-1.036-.19-1.798-.57-2.285-.38-.488-.93-.732-1.649-.732zm5.432-.42v6.965h-.665V3.22h.665zm.294-2.401a.531.531 0 0 1-.052.234.703.703 0 0 1-.137.193.633.633 0 0 1-.196.133.587.587 0 0 1-.238.049.587.587 0 0 1-.238-.049.633.633 0 0 1-.329-.326.612.612 0 0 1 0-.476.623.623 0 0 1 .567-.381c.084 0 .163.016.238.049a.633.633 0 0 1 .332.333.577.577 0 0 1 .053.241zm3.801 5.803l-2.422-3.402h.637c.065 0 .113.014.143.042l.043.046 2.082 3.006a.764.764 0 0 1 .119-.252l1.911-2.695a.35.35 0 0 1 .088-.105.19.19 0 0 1 .122-.042h.616l-2.436 3.367 2.534 3.598h-.637a.201.201 0 0 1-.154-.06.754.754 0 0 1-.091-.115l-2.114-3.08a.695.695 0 0 1-.105.238l-2.03 2.856a.953.953 0 0 1-.102.112.183.183 0 0 1-.129.049h-.595l2.52-3.563zm7.441-3.514c.392 0 .755.068 1.088.203.334.135.623.332.868.591.246.26.437.578.574.956.138.378.207.812.207 1.302 0 .103-.015.173-.046.21-.03.037-.078.056-.143.056h-5.033v.133c0 .523.06.982.182 1.379.121.397.294.73.518.998.224.268.495.47.812.605.317.135.672.203 1.064.203a3.184 3.184 0 0 0 1.557-.374c.132-.072.243-.139.333-.2l.084-.06c.103-.077.177-.115.224-.115a.16.16 0 0 1 .14.07l.182.224a1.9 1.9 0 0 1-.444.392c-.185.121-.39.225-.616.312a4.488 4.488 0 0 1-.728.206c-.26.051-.52.077-.781.077-.476 0-.91-.083-1.302-.248a2.76 2.76 0 0 1-1.008-.725 3.298 3.298 0 0 1-.647-1.166c-.152-.46-.228-.985-.228-1.578 0-.5.071-.96.214-1.382.142-.423.347-.787.615-1.093.269-.305.598-.544.988-.717.39-.173.831-.259 1.326-.259zm.007.497c-.36 0-.681.056-.966.168-.285.112-.53.273-.739.483-.207.21-.375.462-.503.756a3.441 3.441 0 0 0-.256.987h4.592c0-.373-.051-.708-.154-1.005a2.148 2.148 0 0 0-.434-.752 1.879 1.879 0 0 0-.672-.472 2.222 2.222 0 0 0-.868-.165zM115.997 0v10.185h-.665V0h.665zm6.3 4.081a.162.162 0 0 1-.154.098.293.293 0 0 1-.141-.05l-.059-.037a3.185 3.185 0 0 0-.321-.197 2.606 2.606 0 0 0-.49-.195 2.492 2.492 0 0 0-.711-.088c-.252 0-.482.036-.69.109a1.71 1.71 0 0 0-.531.29 1.321 1.321 0 0 0-.344.423c-.081.162-.122.33-.122.508 0 .22.056.401.168.546.112.145.259.268.441.371.182.103.388.191.62.266.23.075.467.15.71.224.243.075.48.157.71.248.232.092.438.205.62.34.182.135.329.301.441.497.112.196.168.434.168.714 0 .303-.055.586-.165.847-.11.261-.268.488-.476.679a2.282 2.282 0 0 1-.766.455 2.978 2.978 0 0 1-1.036.168c-.49 0-.912-.078-1.267-.235a3.557 3.557 0 0 1-.952-.612l.161-.238a.271.271 0 0 1 .077-.084.214.214 0 0 1 .119-.028c.046 0 .099.021.16.063l.064.049a2.797 2.797 0 0 0 .878.483c.213.075.475.112.788.112.294 0 .553-.04.777-.123.224-.081.41-.192.56-.332.15-.14.262-.304.34-.494.076-.189.115-.388.115-.598a.962.962 0 0 0-.168-.581 1.44 1.44 0 0 0-.441-.392 3.082 3.082 0 0 0-.62-.273c-.23-.075-.468-.15-.714-.224a10.682 10.682 0 0 1-.714-.245 2.582 2.582 0 0 1-.619-.336 1.62 1.62 0 0 1-.441-.494c-.112-.193-.168-.435-.168-.724 0-.247.054-.485.161-.714.107-.229.26-.43.459-.602.198-.173.44-.31.724-.413.285-.103.604-.154.959-.154.425 0 .801.06 1.13.182.33.121.632.308.907.56l-.147.231z"}))},emojiList={symbols:["1f4af","1f522","1f441-200d-1f5e8","1f498","2764-fe0f","1f493","1f494","1f495","1f496","1f497","1f499","1f49a","1f49b","1f49c","1f5a4","1f49d","1f49e","1f49f","2763-fe0f","1f4a2","1f4a5","1f4ab","1f4ac","1f5e8-fe0f","1f5ef-fe0f","1f4ad","1f4ae","1f310","2668-fe0f","1f6d1","1f55b","1f567","1f550","1f55c","1f551","1f55d","1f552","1f55e","1f553","1f55f","1f554","1f560","1f555","1f561","1f556","1f562","1f557","1f563","1f558","1f564","1f559","1f565","1f55a","1f566","1f300","2660-fe0f","2665-fe0f","2666-fe0f","2663-fe0f","1f0cf","1f004-fe0f","1f3b4","1f507","1f508","1f509","1f50a","1f4e2","1f4e3","1f514","1f515","1f3b5","1f3b6","1f4b9","1f4b1","1f4b2","1f3e7","1f6ae","1f6b0","267f-fe0f","1f6b9","1f6ba","1f6bb","1f6bc","1f6be","1f6c2","1f6c3","1f6c4","1f6c5","26a0-fe0f","1f6b8","26d4-fe0f","1f6ab","1f6b3","1f6ad","1f6af","1f6b1","1f6b7","1f4f5","1f51e","2622-fe0f","2623-fe0f","2b06-fe0f","2197-fe0f","27a1-fe0f","2198-fe0f","2b07-fe0f","2199-fe0f","2b05-fe0f","2196-fe0f","2195-fe0f","2194-fe0f","21a9-fe0f","21aa-fe0f","2934-fe0f","2935-fe0f","1f503","1f504","1f519","1f51a","1f51b","1f51c","1f51d","1f6d0","269b-fe0f","1f549-fe0f","2721-fe0f","2638-fe0f","262f-fe0f","271d-fe0f","2626-fe0f","262a-fe0f","262e-fe0f","1f54e","1f52f","2648-fe0f","2649-fe0f","264a-fe0f","264b-fe0f","264c-fe0f","264d-fe0f","264e-fe0f","264f-fe0f","2650-fe0f","2651-fe0f","2652-fe0f","2653-fe0f","26ce","1f500","1f501","1f502","25b6-fe0f","23e9","23ed-fe0f","23ef-fe0f","25c0-fe0f","23ea","23ee-fe0f","1f53c","23eb","1f53d","23ec","23f8-fe0f","23f9-fe0f","23fa-fe0f","23cf-fe0f","1f3a6","1f505","1f506","1f4f6","1f4f3","1f4f4","267b-fe0f","1f4db","269c-fe0f","1f530","1f531","2b55-fe0f","2705","2611-fe0f","2714-fe0f","2716-fe0f","274c","274e","2795","2796","2797","27b0","27bf","303d-fe0f","2733-fe0f","2734-fe0f","2747-fe0f","203c-fe0f","2049-fe0f","2753","2754","2755","2757-fe0f","3030-fe0f","00a9-fe0f","00ae-fe0f","2122-fe0f","0023-fe0f-20e3","002a-fe0f-20e3","0030-fe0f-20e3","0031-fe0f-20e3","0032-fe0f-20e3","0033-fe0f-20e3","0034-fe0f-20e3","0035-fe0f-20e3","0036-fe0f-20e3","0037-fe0f-20e3","0038-fe0f-20e3","0039-fe0f-20e3","1f51f","1f520","1f521","1f523","1f524","1f170","1f18e","1f171","1f191","1f192","1f193","2139-fe0f","1f194","24c2-fe0f","1f195","1f196","1f17e","1f197","1f17f-fe0f","1f198","1f199","1f19a","1f201","1f202-fe0f","1f237-fe0f","1f236","1f22f-fe0f","1f250","1f239","1f21a-fe0f","1f232","1f251","1f238","1f234","1f233","3297-fe0f","3299-fe0f","1f23a","1f235","25aa-fe0f","25ab-fe0f","25fb-fe0f","25fc-fe0f","25fd-fe0f","25fe-fe0f","2b1b-fe0f","2b1c-fe0f","1f536","1f537","1f538","1f539","1f53a","1f53b","1f4a0","1f518","1f532","1f533","26aa-fe0f","26ab-fe0f","1f534","1f535"],people:["1f600","1f601","1f602","1f923","1f603","1f604","1f605","1f606","1f609","1f60a","1f60b","1f60e","1f60d","1f618","1f617","1f619","1f61a","263a-fe0f","1f642","1f917","1f914","1f610","1f611","1f636","1f644","1f60f","1f623","1f625","1f62e","1f910","1f62f","1f62a","1f62b","1f634","1f60c","1f913","1f61b","1f61c","1f61d","1f924","1f612","1f613","1f614","1f615","1f643","1f911","1f632","2639-fe0f","1f641","1f616","1f61e","1f61f","1f624","1f622","1f62d","1f626","1f627","1f628","1f629","1f62c","1f630","1f631","1f633","1f635","1f621","1f620","1f607","1f920","1f921","1f925","1f637","1f912","1f915","1f922","1f927","1f608","1f47f","1f479","1f47a","1f480","1f47b","1f47d","1f916","1f4a9","1f63a","1f638","1f639","1f63b","1f63c","1f63d","1f640","1f63f","1f63e","1f46f","1f5e3-fe0f","1f464","1f465","1f46b","1f46c","1f46d","1f48f","1f468-200d-2764-fe0f-200d-1f48b-200d-1f468","1f469-200d-2764-fe0f-200d-1f48b-200d-1f469","1f491","1f468-200d-2764-fe0f-200d-1f468","1f469-200d-2764-fe0f-200d-1f469","1f46a","1f468-200d-1f469-200d-1f467","1f468-200d-1f469-200d-1f467-200d-1f466","1f468-200d-1f469-200d-1f466-200d-1f466","1f468-200d-1f469-200d-1f467-200d-1f467","1f468-200d-1f468-200d-1f466","1f468-200d-1f468-200d-1f467","1f468-200d-1f468-200d-1f467-200d-1f466","1f468-200d-1f468-200d-1f466-200d-1f466","1f468-200d-1f468-200d-1f467-200d-1f467","1f469-200d-1f469-200d-1f466","1f469-200d-1f469-200d-1f467","1f469-200d-1f469-200d-1f467-200d-1f466","1f469-200d-1f469-200d-1f466-200d-1f466","1f469-200d-1f469-200d-1f467-200d-1f467","1f463","1f440","1f441-fe0f","1f445","1f444","1f48b","1f4a4","1f453","1f576-fe0f","1f454","1f455","1f456","1f457","1f458","1f459","1f45a","1f45b","1f45c","1f45d","1f392","1f45e","1f45f","1f460","1f461","1f462","1f451","1f452","1f3a9","1f393","26d1-fe0f","1f484","1f48d","1f302","1f4bc"],objects:["2620-fe0f","1f48c","1f4a3","1f573-fe0f","1f6cd-fe0f","1f4ff","1f48e","1f52a","1f3fa","1f5fa-fe0f","1f488","1f5bc-fe0f","1f6ce-fe0f","1f6aa","1f6cc","1f6cf-fe0f","1f6cb-fe0f","1f6bd","1f6bf","1f6c1","231b-fe0f","23f3","231a-fe0f","23f0","23f1-fe0f","23f2-fe0f","1f570-fe0f","1f321-fe0f","26f1-fe0f","1f388","1f389","1f38a","1f38e","1f38f","1f390","1f380","1f381","1f579-fe0f","1f4ef","1f399-fe0f","1f39a-fe0f","1f39b-fe0f","1f4fb","1f4f1","1f4f2","260e-fe0f","1f4de","1f4df","1f4e0","1f50b","1f50c","1f4bb","1f5a5-fe0f","1f5a8-fe0f","2328-fe0f","1f5b1-fe0f","1f5b2-fe0f","1f4bd","1f4be","1f4bf","1f4c0","1f3a5","1f39e-fe0f","1f4fd-fe0f","1f4fa","1f4f7","1f4f8","1f4f9","1f4fc","1f50d","1f50e","1f52c","1f52d","1f4e1","1f56f-fe0f","1f4a1","1f526","1f3ee","1f4d4","1f4d5","1f4d6","1f4d7","1f4d8","1f4d9","1f4da","1f4d3","1f4d2","1f4c3","1f4dc","1f4c4","1f4f0","1f5de-fe0f","1f4d1","1f516","1f3f7-fe0f","1f4b0","1f4b4","1f4b5","1f4b6","1f4b7","1f4b8","1f4b3","2709-fe0f","1f4e7","1f4e8","1f4e9","1f4e4","1f4e5","1f4e6","1f4eb","1f4ea","1f4ec","1f4ed","1f4ee","1f5f3-fe0f","270f-fe0f","2712-fe0f","1f58b-fe0f","1f58a-fe0f","1f58c-fe0f","1f58d-fe0f","1f4dd","1f4c1","1f4c2","1f5c2-fe0f","1f4c5","1f4c6","1f5d2-fe0f","1f5d3-fe0f","1f4c7","1f4c8","1f4c9","1f4ca","1f4cb","1f4cc","1f4cd","1f4ce","1f587-fe0f","1f4cf","1f4d0","2702-fe0f","1f5c3-fe0f","1f5c4-fe0f","1f5d1-fe0f","1f512","1f513","1f50f","1f510","1f511","1f5dd-fe0f","1f528","26cf-fe0f","2692-fe0f","1f6e0-fe0f","1f5e1-fe0f","2694-fe0f","1f52b","1f6e1-fe0f","1f527","1f529","2699-fe0f","1f5dc-fe0f","2697-fe0f","2696-fe0f","1f517","26d3-fe0f","1f489","1f48a","1f6ac","26b0-fe0f","26b1-fe0f","1f5ff","1f6e2-fe0f","1f52e","1f6d2","1f6a9","1f38c","1f3f4","1f3f3-fe0f","1f3f3-fe0f-200d-1f308"],activity:["1f47e","1f574-fe0f","1f93a","26f7-fe0f","1f3c2","1f3cc-fe0f","1f3aa","1f3ad","1f3a8","1f3b0","1f397-fe0f","1f39f-fe0f","1f3ab","1f396-fe0f","1f3c6","1f3c5","1f947","1f948","1f949","26bd-fe0f","26be-fe0f","1f3c0","1f3d0","1f3c8","1f3c9","1f3be","1f3b1","1f3b3","1f3cf","1f3d1","1f3d2","1f3d3","1f3f8","1f94a","1f94b","1f945","1f3af","26f3-fe0f","26f8-fe0f","1f3a3","1f3bd","1f3bf","1f3ae","1f3b2","1f3bc","1f3a4","1f3a7","1f3b7","1f3b8","1f3b9","1f3ba","1f3bb","1f941","1f3ac","1f3f9"],nature:["1f648","1f649","1f64a","1f4a6","1f4a8","1f435","1f412","1f98d","1f436","1f415","1f429","1f43a","1f98a","1f431","1f408","1f981","1f42f","1f405","1f406","1f434","1f40e","1f98c","1f984","1f42e","1f402","1f403","1f404","1f437","1f416","1f417","1f43d","1f40f","1f411","1f410","1f42a","1f42b","1f418","1f98f","1f42d","1f401","1f400","1f439","1f430","1f407","1f43f-fe0f","1f987","1f43b","1f428","1f43c","1f43e","1f983","1f414","1f413","1f423","1f424","1f425","1f426","1f427","1f54a-fe0f","1f985","1f986","1f989","1f438","1f40a","1f422","1f98e","1f40d","1f432","1f409","1f433","1f40b","1f42c","1f41f","1f420","1f421","1f988","1f419","1f41a","1f980","1f990","1f991","1f98b","1f40c","1f41b","1f41c","1f41d","1f41e","1f577-fe0f","1f578-fe0f","1f982","1f490","1f338","1f3f5-fe0f","1f339","1f940","1f33a","1f33b","1f33c","1f337","1f331","1f332","1f333","1f334","1f335","1f33e","1f33f","2618-fe0f","1f340","1f341","1f342","1f343","1f344","1f330","1f30d","1f30e","1f30f","1f311","1f312","1f313","1f314","1f315","1f316","1f317","1f318","1f319","1f31a","1f31b","1f31c","2600-fe0f","1f31d","1f31e","2b50-fe0f","1f31f","2601-fe0f","26c5-fe0f","26c8-fe0f","1f324-fe0f","1f325-fe0f","1f326-fe0f","1f327-fe0f","1f328-fe0f","1f329-fe0f","1f32a-fe0f","1f32b-fe0f","1f32c-fe0f","2602-fe0f","2614-fe0f","26a1-fe0f","2744-fe0f","2603-fe0f","26c4-fe0f","2604-fe0f","1f525","1f4a7","1f30a","1f383","1f384","2728","1f38b","1f38d"],travel:["1f3ce-fe0f","1f3cd-fe0f","1f5fe","1f3d4-fe0f","26f0-fe0f","1f30b","1f5fb","1f3d5-fe0f","1f3d6-fe0f","1f3dc-fe0f","1f3dd-fe0f","1f3de-fe0f","1f3df-fe0f","1f3db-fe0f","1f3d7-fe0f","1f3d8-fe0f","1f3d9-fe0f","1f3da-fe0f","1f3e0","1f3e1","1f3e2","1f3e3","1f3e4","1f3e5","1f3e6","1f3e8","1f3e9","1f3ea","1f3eb","1f3ec","1f3ed","1f3ef","1f3f0","1f492","1f5fc","1f5fd","26ea-fe0f","1f54c","1f54d","26e9-fe0f","1f54b","26f2-fe0f","26fa-fe0f","1f301","1f303","1f304","1f305","1f306","1f307","1f309","1f30c","1f3a0","1f3a1","1f3a2","1f682","1f683","1f684","1f685","1f686","1f687","1f688","1f689","1f68a","1f69d","1f69e","1f68b","1f68c","1f68d","1f68e","1f690","1f691","1f692","1f693","1f694","1f695","1f696","1f697","1f698","1f699","1f69a","1f69b","1f69c","1f6b2","1f6f4","1f6f5","1f68f","1f6e3-fe0f","1f6e4-fe0f","26fd-fe0f","1f6a8","1f6a5","1f6a6","1f6a7","2693-fe0f","26f5-fe0f","1f6f6","1f6a4","1f6f3-fe0f","26f4-fe0f","1f6e5-fe0f","1f6a2","2708-fe0f","1f6e9-fe0f","1f6eb","1f6ec","1f4ba","1f681","1f69f","1f6a0","1f6a1","1f680","1f6f0-fe0f","1f320","1f308","1f386","1f387","1f391","1f3c1"],food:["1f347","1f348","1f349","1f34a","1f34b","1f34c","1f34d","1f34e","1f34f","1f350","1f351","1f352","1f353","1f95d","1f345","1f951","1f346","1f954","1f955","1f33d","1f336-fe0f","1f952","1f95c","1f35e","1f950","1f956","1f95e","1f9c0","1f356","1f357","1f953","1f354","1f35f","1f355","1f32d","1f32e","1f32f","1f959","1f95a","1f373","1f958","1f372","1f957","1f37f","1f371","1f358","1f359","1f35a","1f35b","1f35c","1f35d","1f360","1f362","1f363","1f364","1f365","1f361","1f366","1f367","1f368","1f369","1f36a","1f382","1f370","1f36b","1f36c","1f36d","1f36e","1f36f","1f37c","1f95b","2615-fe0f","1f375","1f376","1f37e","1f377","1f378","1f379","1f37a","1f37b","1f942","1f943","1f37d-fe0f","1f374","1f944"],flags:["1f1e6-1f1e8","1f1e6-1f1e9","1f1e6-1f1ea","1f1e6-1f1eb","1f1e6-1f1ec","1f1e6-1f1ee","1f1e6-1f1f1","1f1e6-1f1f2","1f1e6-1f1f4","1f1e6-1f1f6","1f1e6-1f1f7","1f1e6-1f1f8","1f1e6-1f1f9","1f1e6-1f1fa","1f1e6-1f1fc","1f1e6-1f1fd","1f1e6-1f1ff","1f1e7-1f1e6","1f1e7-1f1e7","1f1e7-1f1e9","1f1e7-1f1ea","1f1e7-1f1eb","1f1e7-1f1ec","1f1e7-1f1ed","1f1e7-1f1ee","1f1e7-1f1ef","1f1e7-1f1f1","1f1e7-1f1f2","1f1e7-1f1f3","1f1e7-1f1f4","1f1e7-1f1f6","1f1e7-1f1f7","1f1e7-1f1f8","1f1e7-1f1f9","1f1e7-1f1fb","1f1e7-1f1fc","1f1e7-1f1fe","1f1e7-1f1ff","1f1e8-1f1e6","1f1e8-1f1e8","1f1e8-1f1e9","1f1e8-1f1eb","1f1e8-1f1ec","1f1e8-1f1ed","1f1e8-1f1ee","1f1e8-1f1f0","1f1e8-1f1f1","1f1e8-1f1f2","1f1e8-1f1f3","1f1e8-1f1f4","1f1e8-1f1f5","1f1e8-1f1f7","1f1e8-1f1fa","1f1e8-1f1fb","1f1e8-1f1fc","1f1e8-1f1fd","1f1e8-1f1fe","1f1e8-1f1ff","1f1e9-1f1ea","1f1e9-1f1ec","1f1e9-1f1ef","1f1e9-1f1f0","1f1e9-1f1f2","1f1e9-1f1f4","1f1e9-1f1ff","1f1ea-1f1e6","1f1ea-1f1e8","1f1ea-1f1ea","1f1ea-1f1ec","1f1ea-1f1ed","1f1ea-1f1f7","1f1ea-1f1f8","1f1ea-1f1f9","1f1ea-1f1fa","1f1eb-1f1ee","1f1eb-1f1ef","1f1eb-1f1f0","1f1eb-1f1f2","1f1eb-1f1f4","1f1eb-1f1f7","1f1ec-1f1e6","1f1ec-1f1e7","1f1ec-1f1e9","1f1ec-1f1ea","1f1ec-1f1eb","1f1ec-1f1ec","1f1ec-1f1ed","1f1ec-1f1ee","1f1ec-1f1f1","1f1ec-1f1f2","1f1ec-1f1f3","1f1ec-1f1f5","1f1ec-1f1f6","1f1ec-1f1f7","1f1ec-1f1f8","1f1ec-1f1f9","1f1ec-1f1fa","1f1ec-1f1fc","1f1ec-1f1fe","1f1ed-1f1f0","1f1ed-1f1f2","1f1ed-1f1f3","1f1ed-1f1f7","1f1ed-1f1f9","1f1ed-1f1fa","1f1ee-1f1e8","1f1ee-1f1e9","1f1ee-1f1ea","1f1ee-1f1f1","1f1ee-1f1f2","1f1ee-1f1f3","1f1ee-1f1f4","1f1ee-1f1f6","1f1ee-1f1f7","1f1ee-1f1f8","1f1ee-1f1f9","1f1ef-1f1ea","1f1ef-1f1f2","1f1ef-1f1f4","1f1ef-1f1f5","1f1f0-1f1ea","1f1f0-1f1ec","1f1f0-1f1ed","1f1f0-1f1ee","1f1f0-1f1f2","1f1f0-1f1f3","1f1f0-1f1f5","1f1f0-1f1f7","1f1f0-1f1fc","1f1f0-1f1fe","1f1f0-1f1ff","1f1f1-1f1e6","1f1f1-1f1e7","1f1f1-1f1e8","1f1f1-1f1ee","1f1f1-1f1f0","1f1f1-1f1f7","1f1f1-1f1f8","1f1f1-1f1f9","1f1f1-1f1fa","1f1f1-1f1fb","1f1f1-1f1fe","1f1f2-1f1e6","1f1f2-1f1e8","1f1f2-1f1e9","1f1f2-1f1ea","1f1f2-1f1eb","1f1f2-1f1ec","1f1f2-1f1ed","1f1f2-1f1f0","1f1f2-1f1f1","1f1f2-1f1f2","1f1f2-1f1f3","1f1f2-1f1f4","1f1f2-1f1f5","1f1f2-1f1f6","1f1f2-1f1f7","1f1f2-1f1f8","1f1f2-1f1f9","1f1f2-1f1fa","1f1f2-1f1fb","1f1f2-1f1fc","1f1f2-1f1fd","1f1f2-1f1fe","1f1f2-1f1ff","1f1f3-1f1e6","1f1f3-1f1e8","1f1f3-1f1ea","1f1f3-1f1eb","1f1f3-1f1ec","1f1f3-1f1ee","1f1f3-1f1f1","1f1f3-1f1f4","1f1f3-1f1f5","1f1f3-1f1f7","1f1f3-1f1fa","1f1f3-1f1ff","1f1f4-1f1f2","1f1f5-1f1e6","1f1f5-1f1ea","1f1f5-1f1eb","1f1f5-1f1ec","1f1f5-1f1ed","1f1f5-1f1f0","1f1f5-1f1f1","1f1f5-1f1f2","1f1f5-1f1f3","1f1f5-1f1f7","1f1f5-1f1f8","1f1f5-1f1f9","1f1f5-1f1fc","1f1f5-1f1fe","1f1f6-1f1e6","1f1f7-1f1ea","1f1f7-1f1f4","1f1f7-1f1f8","1f1f7-1f1fa","1f1f7-1f1fc","1f1f8-1f1e6","1f1f8-1f1e7","1f1f8-1f1e8","1f1f8-1f1e9","1f1f8-1f1ea","1f1f8-1f1ec","1f1f8-1f1ed","1f1f8-1f1ee","1f1f8-1f1ef","1f1f8-1f1f0","1f1f8-1f1f1","1f1f8-1f1f2","1f1f8-1f1f3","1f1f8-1f1f4","1f1f8-1f1f7","1f1f8-1f1f8","1f1f8-1f1f9","1f1f8-1f1fb","1f1f8-1f1fd","1f1f8-1f1fe","1f1f8-1f1ff","1f1f9-1f1e6","1f1f9-1f1e8","1f1f9-1f1e9","1f1f9-1f1eb","1f1f9-1f1ec","1f1f9-1f1ed","1f1f9-1f1ef","1f1f9-1f1f0","1f1f9-1f1f1","1f1f9-1f1f2","1f1f9-1f1f3","1f1f9-1f1f4","1f1f9-1f1f7","1f1f9-1f1f9","1f1f9-1f1fb","1f1f9-1f1fc","1f1f9-1f1ff","1f1fa-1f1e6","1f1fa-1f1ec","1f1fa-1f1f2","1f1fa-1f1f8","1f1fa-1f1fe","1f1fa-1f1ff","1f1fb-1f1e6","1f1fb-1f1e8","1f1fb-1f1ea","1f1fb-1f1ec","1f1fb-1f1ee","1f1fb-1f1f3","1f1fb-1f1fa","1f1fc-1f1eb","1f1fc-1f1f8","1f1fd-1f1f0","1f1fe-1f1ea","1f1fe-1f1f9","1f1ff-1f1e6","1f1ff-1f1f2","1f1ff-1f1fc"]},getGroupEmojis=function(category){return emojiList[category].map((function(unicode){return function(unicode){if(unicode.indexOf("-")>-1){for(var parts=[],s=unicode.split("-"),i=0;i<s.length;i++){var part=parseInt(s[i],16);if(part>=65536&&part<=1114111){var hi=Math.floor((part-65536)/1024)+55296,lo=(part-65536)%1024+56320;part=String.fromCharCode(hi)+String.fromCharCode(lo)}else part=String.fromCharCode(part);parts.push(part)}return parts.join("")}var _s=parseInt(unicode,16);if(_s>=65536&&_s<=1114111){var _hi=Math.floor((_s-65536)/1024)+55296,_lo=(_s-65536)%1024+56320;return String.fromCharCode(_hi)+String.fromCharCode(_lo)}return String.fromCharCode(_s)}(unicode)}))},styles={emojiPreviewModal_emoji_icons_container:"_2ae1B",emojiPreviewModal_nav_icon:"gr5te",emojiPreviewModal_emoji_icon:"_3h6i_",emojiPreviewModal_emoji_group:"_2cnvS",emojiPreviewModal_emoji:"_1YADR",emojiPreviewModal_headerTitle:"_16eu8",emojiPreviewModal_emojis_groups_container:"_1Uv71",emojiPreviewModal_JoyPixelsIcon:"_2ngc-",emojiPreviewModal_scrollbar_thumb:"GgbqQ"},EmojiPreviewModal=function(_Component){function EmojiPreviewModal(props){var _this;(_this=_Component.call(this,props)||this).onNavIconClicked=function(group){_this.setState({activeGroup:group}),_this.groupRefs[group.category].current.scrollIntoView({behavior:"smooth"})},_this.renderNavIcons=function(activeGroup){var t=_this.props.t;return getEmojiGroups(t).map((function(group,index){var color=activeGroup.category===group.category?"#42A5F5":"#bdbdbd";return React__default.default.createElement("div",{key:"emoji-group-"+index,role:"button","data-hook":"emoji-group-"+index,onKeyPress:null,tabIndex:0,className:_this.styles.emojiPreviewModal_nav_icon,onClick:_this.onNavIconClicked.bind(_assertThisInitialized__default.default(_this),group),style:{color:color}},group.icon)}))},_this.onScroll=function(event){var scrollTop=event.srcElement.scrollTop,t=_this.props.t,categoryScrollTop=getEmojiGroups(t).find((function(_ref){var top=_ref.top;return scrollTop<top}));_this.setState({activeGroup:categoryScrollTop})},_this.renderEmojis=function(){return _this.emojiGroupsCategories.map((function(category){var emojisElements=(getGroupEmojis(category)||[]).map((function(emoji,index){return React__default.default.createElement("div",{role:"button","data-hook":"emoji-"+index,tabIndex:0,className:_this.styles.emojiPreviewModal_emoji,key:"emojis-"+category+"-"+index,onClick:_this.getBoundOnClick(emoji),onKeyPress:_this.getBoundKeyPress(emoji)},emoji)}));return React__default.default.createElement("div",{ref:_this.groupRefs[category],key:"anchor-"+category,className:_this.styles.emojiPreviewModal_emoji_group},emojisElements)}))},_this.styles=wixRichContentCommon.mergeStyles({styles:styles,theme:props.theme});var _t=props.t;_this.scrollbarRef="";var groups=getEmojiGroups(_t);return _this.groupRefs={},groups.map((function(_ref2){var category=_ref2.category;return _this.groupRefs[category]=React__default.default.createRef()})),_this.emojiGroupsCategories=groups.map((function(_ref3){return _ref3.category})),_this.state={activeGroup:groups[0]},_this}_inheritsLoose__default.default(EmojiPreviewModal,_Component);var _proto=EmojiPreviewModal.prototype;return _proto.getBoundOnClick=function(emoji){var _this2=this;return function(){return _this2.addEmoji(emoji)}},_proto.getBoundKeyPress=function(emoji){var _this3=this;return function(e){"Enter"===e.key&&_this3.addEmoji(emoji)}},_proto.addEmoji=function(emoji){var _this$props=this.props,helpers=_this$props.helpers;(0,_this$props.setEditorState)(function(editorState,emoji){var contentState=editorState.getCurrentContent(),currentSelectionState=editorState.getSelection(),emojiData={type:"EMOJI_TYPE",mutability:"IMMUTABLE",data:{emojiUnicode:emoji}},emojiEntityKey=wixRichContentEditorCommon.createEntity(editorState,emojiData),emojiAddedContent=wixRichContentEditorCommon.Modifier.replaceText(contentState,currentSelectionState,emoji,null,emojiEntityKey),newEditorState=wixRichContentEditorCommon.EditorState.push(editorState,emojiAddedContent,"insert-emoji");return wixRichContentEditorCommon.EditorState.forceSelection(newEditorState,emojiAddedContent.getSelectionAfter())}((0,_this$props.getEditorState)(),emoji)),helpers.closeModal()},_proto.render=function(){var _this4=this,activeGroup=this.state.activeGroup;return React__default.default.createElement("div",null,React__default.default.createElement("div",{className:this.styles.emojiPreviewModal_headerTitle},React__default.default.createElement("div",null,activeGroup.title),React__default.default.createElement("div",{className:this.styles.emojiPreviewModal_JoyPixelsIcon},React__default.default.createElement(JoyPixelsIcon,null))),React__default.default.createElement("div",{className:this.styles.emojiPreviewModal_emojis_groups_container},React__default.default.createElement(Scrollbars__default.default,{ref:function(_ref4){_this4.scrollbarRef=_ref4},renderThumbVertical:function(){return React__default.default.createElement("div",{className:_this4.styles.emojiPreviewModal_scrollbar_thumb})},onScroll:this.onScroll},this.renderEmojis())),React__default.default.createElement("div",{className:this.styles.emojiPreviewModal_emoji_icons_container},this.renderNavIcons(activeGroup)))},EmojiPreviewModal}(React.Component),EmojiPluginIcon=function(props){return React__default.default.createElement("svg",Object.assign({viewBox:"-2 -2 19 19",fill:"currentColor",width:"19",height:"19"},props),React__default.default.createElement("path",{d:"M7.5 15a7.5 7.5 0 1 1 0-15 7.5 7.5 0 0 1 0 15zm0-1a6.5 6.5 0 1 0 0-13 6.5 6.5 0 0 0 0 13zM5 7a1 1 0 1 1 0-2 1 1 0 0 1 0 2zm4.53 4.575c-.639.444-1.03.708-2.03.708-1 0-1.564-.194-2.175-.666-.611-.473-1-.867-1.25-1.617-.056-.167-.083-.536 0-.675a.677.677 0 0 1 .333-.292.603.603 0 0 1 .492.042c.139.083.203.194.258.333.167.5.459.903.875 1.209.417.305.967.458 1.467.458.5 0 .88-.153 1.325-.458A2.12 2.12 0 0 0 9.7 9.408a.677.677 0 0 1 .292-.333.527.527 0 0 1 .458-.042.506.506 0 0 1 .333.292.84.84 0 0 1 .042.458 3.25 3.25 0 0 1-1.295 1.792zM10 7a1 1 0 1 1 0-2 1 1 0 0 1 0 2z"}))},createInsertButtons=function(_ref){var _settings$toolbar,_settings$toolbar$ico,t=_ref.t,isMobile=_ref.isMobile,settings=_ref.settings,getEditorState=_ref.getEditorState,setEditorState=_ref.setEditorState,icon=(null==settings||null===(_settings$toolbar=settings.toolbar)||void 0===_settings$toolbar||null===(_settings$toolbar$ico=_settings$toolbar.icons)||void 0===_settings$toolbar$ico?void 0:_settings$toolbar$ico.InsertPluginButtonIcon)||EmojiPluginIcon,buttonProps={type:wixRichContentEditorCommon.BUTTON_TYPES.MODAL,name:wixRichContentEditorCommon.INSERT_PLUGIN_BUTTONS.EMOJI,tooltip:t("EmojiPlugin_InsertButton_Tooltip"),getIcon:function(){return icon},componentData:settings.componentDataDefaults||{},modalElement:wixRichContentEditorCommon.decorateComponentWithProps(EmojiPreviewModal,_extends__default.default({getEditorState:getEditorState,setEditorState:setEditorState},settings))};return[_extends__default.default({},buttonProps,{toolbars:settings.insertToolbars||[wixRichContentEditorCommon.TOOLBARS.FOOTER,wixRichContentEditorCommon.TOOLBARS.SIDE],modalStylesFn:function(_ref2){var buttonRef=_ref2.buttonRef,toolbarName=_ref2.toolbarName;return wixRichContentEditorCommon.getBottomToolbarModalStyles(buttonRef,{customStyles:DesktopFlyOutModalStyles},toolbarName)}}),_extends__default.default({},buttonProps,{modalStyles:wixRichContentEditorCommon.getModalStyles({customStyles:isMobile?{}:DesktopFlyOutModalStyles,fullScreen:!1,isMobile:isMobile}),toolbars:[wixRichContentEditorCommon.TOOLBARS.INSERT_PLUGIN,wixRichContentEditorCommon.TOOLBARS.MOBILE]})]},EMOJI_TYPE="wix-draft-plugin-emoji",emojiComponent=function(props){return React__default.default.createElement("span",{style:{fontFamily:"cursive"}},props.children)},emojiEditorStrategy=function(contentBlock,callback,contentState){contentBlock.findEntityRanges((function(character){var entityKey=character.getEntity();return null!==entityKey&&"EMOJI_TYPE"===contentState.getEntity(entityKey).getType()}),callback)};function _toPropertyKey(arg){var key=function(input,hint){if("object"!=typeof input||null===input)return input;var prim=input[Symbol.toPrimitive];if(void 0!==prim){var res=prim.call(input,hint||"default");if("object"!=typeof res)return res;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===hint?String:Number)(input)}(arg,"string");return"symbol"==typeof key?key:String(key)}var createEmojiPlugin=function(config){var type=EMOJI_TYPE,helpers=config.helpers,theme=config.theme,t=config.t,isMobile=config.isMobile,_config$type=config[type],settings=void 0===_config$type?{}:_config$type,getEditorState=config.getEditorState,setEditorState=config.setEditorState,rest=_objectWithoutPropertiesLoose__default.default(config,["helpers","theme","t","isMobile",type,"getEditorState","setEditorState"].map(_toPropertyKey)),toolbar=function(_ref){var settings=_ref.settings,t=_ref.t,isMobile=_ref.isMobile,getEditorState=_ref.getEditorState,setEditorState=_ref.setEditorState;return{InsertButtons:isMobile?[]:createInsertButtons({settings:settings,t:t,isMobile:isMobile,getEditorState:getEditorState,setEditorState:setEditorState}),name:"emoji"}}({helpers:helpers,settings:settings,isMobile:isMobile,getEditorState:getEditorState,setEditorState:setEditorState,theme:theme,t:t});return wixRichContentPluginCommons.createBasePlugin(_extends__default.default({settings:settings,theme:theme,type:type,toolbar:toolbar,helpers:helpers,t:t,defaultPluginData:DEFAULT_CONFIG,isMobile:isMobile,setEditorState:setEditorState,getEditorState:getEditorState},rest),{decorators:[{strategy:emojiEditorStrategy,component:emojiComponent}]})};createEmojiPlugin.functionName=EMOJI_TYPE;exports.EMOJI_TYPE=EMOJI_TYPE,exports.createEmojiPlugin=createEmojiPlugin,exports.pluginEmoji=function(config){return{config:_extends__default.default({},DEFAULT_CONFIG,config),type:EMOJI_TYPE,createPlugin:createEmojiPlugin,ModalsMap:{}}}; | ||
//# sourceMappingURL=module.cjs.js.map |
@@ -1,2 +0,2 @@ | ||
import _inheritsLoose from"@babel/runtime/helpers/inheritsLoose";import React from"react";import{debounce}from"lodash";var styles_toolbar="_2M9cT",styles_button="_1lTtq",getSelectionRects=function(selection){var range=selection.getRangeAt(0),innerRects=function(range){for(var _iterator=document.createNodeIterator(range.commonAncestorContainer,NodeFilter.SHOW_ALL),innerSelectionNodes=[];_iterator.nextNode()&&_iterator.referenceNode!==range.startContainer;);for(;_iterator.nextNode()&&_iterator.referenceNode!==range.endContainer;)_iterator.referenceNode.nodeType===Node.TEXT_NODE&&innerSelectionNodes.push(_iterator.referenceNode);return innerSelectionNodes}(range).map((function(n){var r=document.createRange();return r.selectNodeContents(n),r.getBoundingClientRect()})),clientRects=range.getClientRects();return[clientRects[0]].concat(innerRects,[clientRects[clientRects.length-1]])};function addTextSelectionListener(container,callback){var handleSelection=function(){var selectedText,position,selection=document.getSelection(),selectionAnchor=null==selection?void 0:selection.anchorNode,selectionFocus=null==selection?void 0:selection.focusNode;selection&&selection.rangeCount>0&&!selection.isCollapsed&&container.contains(selectionAnchor)&&container.contains(selectionFocus)&&(selectedText=function(selection){return selection.toString().replace(/(\r\n|\r|\n){2,}/g," ")}(selection),position=function(selection){var rects=getSelectionRects(selection),left=999999,right=0;rects.forEach((function(rect){left=Math.min(left,rect.left),right=Math.max(right,rect.right)}));var y=rects[0].top+window.scrollY;return{x:(left+right)/2+window.scrollX,y:y}}(selection)),callback(selectedText,position)};return document.addEventListener("selectionchange",handleSelection),function(){return document.removeEventListener("selectionchange",handleSelection)}}var TextSelectionToolbar=function(_React$Component){function TextSelectionToolbar(props){var _this;return(_this=_React$Component.call(this,props)||this).addTextSelectionListener=function(container){container&&!_this.removeTextSelectionListener&&(_this.removeTextSelectionListener=addTextSelectionListener(container,_this.setSelectedText))},_this.setSelectedText=debounce((function(selectedText,selectedTextPosition){return _this.setState({selectedText:selectedText,selectedTextPosition:selectedTextPosition})}),50),_this.state={selectedText:""},_this}_inheritsLoose(TextSelectionToolbar,_React$Component);var _proto=TextSelectionToolbar.prototype;return _proto.componentDidMount=function(){this.addTextSelectionListener(this.props.container)},_proto.componentWillUnmount=function(){this.removeTextSelectionListener()},_proto.componentWillReceiveProps=function(nextPros){this.addTextSelectionListener(nextPros.container)},_proto.render=function(){var _this$state=this.state,selectedText=_this$state.selectedText,selectedTextPosition=_this$state.selectedTextPosition,_this$props=this.props,container=_this$props.container,children=_this$props.children;if(!selectedText||!selectedTextPosition)return null;var left=container.getBoundingClientRect().left,containerOffset=this.props.container.getBoundingClientRect().top,style={top:selectedTextPosition.y-containerOffset-5-window.scrollY,left:selectedTextPosition.x-left};return React.createElement("div",{className:styles_toolbar,style:style},children(selectedText))},TextSelectionToolbar}(React.Component),twitter=function(props){return React.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20"},props),React.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M17.653 4.268c.854-.52 1.493-1.336 1.8-2.297-.804.483-1.683.825-2.6 1.01-1.153-1.245-2.939-1.65-4.506-1.023-1.566.627-2.597 2.16-2.6 3.867.001.318.037.636.106.946-3.298-.168-6.37-1.748-8.453-4.346-.37.633-.563 1.355-.56 2.09-.117 1.34.452 2.647 1.507 3.463C1.608 7.87.88 7.696.173 7.458v.052c.142 2.038 1.63 3.717 3.614 4.077-.298.098-.608.147-.92.146-.233.001-.466-.024-.694-.074.55 1.699 2.103 2.858 3.867 2.888-1.446 1.158-3.237 1.786-5.08 1.78-.32 0-.641-.02-.96-.058 3.593 2.332 8.156 2.492 11.9.417 3.744-2.076 6.073-6.056 6.073-10.381 0-.18-.013-.36-.013-.54.801-.588 1.492-1.316 2.04-2.15-.745.336-1.536.556-2.347.653z"}))};var TwitterButton=function(_ref){var selectedText=_ref.selectedText,onClick=_ref.onClick,handleOnClick=function(selectedText){null==onClick||onClick(selectedText),function(selectedText){var text="“"+selectedText+"“—",url=window.location.href;text.length+url.length>279&&(text=function(text,maxTextLength){var content=text.substring(0,maxTextLength-2);return(content=content.slice(0,content.lastIndexOf(" ")))+"…“—"}(text,279-url.length));var TWEET_ON_TWITTER_URL="https://twitter.com/intent/tweet?text="+encodeURI(text)+"&url="+encodeURI(url);window.open(TWEET_ON_TWITTER_URL)}(selectedText)};return React.createElement("button",{"data-hook":"twitter-button",className:styles_button,onClick:function(){return handleOnClick(selectedText)}},React.createElement(twitter,null))};export{TextSelectionToolbar,TwitterButton}; | ||
import _extends from"@babel/runtime/helpers/extends";import _objectWithoutPropertiesLoose from"@babel/runtime/helpers/objectWithoutPropertiesLoose";import{createBasePlugin}from"wix-rich-content-plugin-commons";import React,{Component}from"react";import{EditorState,createEntity,Modifier,TOOLBARS,getBottomToolbarModalStyles,getModalStyles,BUTTON_TYPES,INSERT_PLUGIN_BUTTONS,decorateComponentWithProps}from"wix-rich-content-editor-common";import _assertThisInitialized from"@babel/runtime/helpers/assertThisInitialized";import _inheritsLoose from"@babel/runtime/helpers/inheritsLoose";import Scrollbars from"react-custom-scrollbars";import{mergeStyles}from"wix-rich-content-common";var FaBell=function(props){return React.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 448 512",width:"16",height:"16"},props),React.createElement("path",{d:"M224 512c35.32 0 63.97-28.65 63.97-64H160.03c0 35.35 28.65 64 63.97 64zm215.39-149.71c-19.32-20.76-55.47-51.99-55.47-154.29 0-77.7-54.48-139.9-127.94-155.16V32c0-17.67-14.32-32-31.98-32s-31.98 14.33-31.98 32v20.84C118.56 68.1 64.08 130.3 64.08 208c0 102.3-36.15 133.53-55.47 154.29-6 6.45-8.66 14.16-8.61 21.71.11 16.4 12.98 32 32.1 32h383.8c19.12 0 32-15.6 32.1-32 .05-7.55-2.61-15.27-8.61-21.71z"}))},FaFlag=function(props){return React.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 512 512",width:"16",height:"16"},props),React.createElement("path",{d:"M349.565 98.783C295.978 98.783 251.721 64 184.348 64c-24.955 0-47.309 4.384-68.045 12.013a55.947 55.947 0 0 0 3.586-23.562C118.117 24.015 94.806 1.206 66.338.048 34.345-1.254 8 24.296 8 56c0 19.026 9.497 35.825 24 45.945V488c0 13.255 10.745 24 24 24h16c13.255 0 24-10.745 24-24v-94.4c28.311-12.064 63.582-22.122 114.435-22.122 53.588 0 97.844 34.783 165.217 34.783 48.169 0 86.667-16.294 122.505-40.858C506.84 359.452 512 349.571 512 339.045v-243.1c0-23.393-24.269-38.87-45.485-29.016-34.338 15.948-76.454 31.854-116.95 31.854z"}))},FaHeart=function(props){return React.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 512 512",width:"16",height:"16"},props),React.createElement("path",{d:"M462.3 62.6C407.5 15.9 326 24.3 275.7 76.2L256 96.5l-19.7-20.3C186.1 24.3 104.5 15.9 49.7 62.6c-62.8 53.6-66.1 149.8-9.9 207.9l193.5 199.8c12.5 12.9 32.8 12.9 45.3 0l193.5-199.8c56.3-58.1 53-154.3-9.8-207.9z"}))},FaPaw=function(props){return React.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 512 512",width:"16",height:"16"},props),React.createElement("path",{d:"M256 224c-79.41 0-192 122.76-192 200.25 0 34.9 26.81 55.75 71.74 55.75 48.84 0 81.09-25.08 120.26-25.08 39.51 0 71.85 25.08 120.26 25.08 44.93 0 71.74-20.85 71.74-55.75C448 346.76 335.41 224 256 224zm-147.28-12.61c-10.4-34.65-42.44-57.09-71.56-50.13-29.12 6.96-44.29 40.69-33.89 75.34 10.4 34.65 42.44 57.09 71.56 50.13 29.12-6.96 44.29-40.69 33.89-75.34zm84.72-20.78c30.94-8.14 46.42-49.94 34.58-93.36s-46.52-72.01-77.46-63.87-46.42 49.94-34.58 93.36c11.84 43.42 46.53 72.02 77.46 63.87zm281.39-29.34c-29.12-6.96-61.15 15.48-71.56 50.13-10.4 34.65 4.77 68.38 33.89 75.34 29.12 6.96 61.15-15.48 71.56-50.13 10.4-34.65-4.77-68.38-33.89-75.34zm-156.27 29.34c30.94 8.14 65.62-20.45 77.46-63.87 11.84-43.42-3.64-85.21-34.58-93.36s-65.62 20.45-77.46 63.87c-11.84 43.42 3.64 85.22 34.58 93.36z"}))},FaSmile=function(props){return React.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 496 512",width:"16",height:"16"},props),React.createElement("path",{d:"M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm80 168c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm-160 0c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm194.8 170.2C334.3 380.4 292.5 400 248 400s-86.3-19.6-114.8-53.8c-13.6-16.3 11-36.7 24.6-20.5 22.4 26.9 55.2 42.2 90.2 42.2s67.8-15.4 90.2-42.2c13.4-16.2 38.1 4.2 24.6 20.5z"}))},FaPlane=function(props){return React.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 576 512",width:"16",height:"16"},props),React.createElement("path",{d:"M480 192H365.71L260.61 8.06A16.014 16.014 0 0 0 246.71 0h-65.5c-10.63 0-18.3 10.17-15.38 20.39L214.86 192H112l-43.2-57.6c-3.02-4.03-7.77-6.4-12.8-6.4H16.01C5.6 128-2.04 137.78.49 147.88L32 256 .49 364.12C-2.04 374.22 5.6 384 16.01 384H56c5.04 0 9.78-2.37 12.8-6.4L112 320h102.86l-49.03 171.6c-2.92 10.22 4.75 20.4 15.38 20.4h65.5c5.74 0 11.04-3.08 13.89-8.06L365.71 320H480c35.35 0 96-28.65 96-64s-60.65-64-96-64z"}))},FaUtensils=function(props){return React.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 416 512",width:"16",height:"16"},props),React.createElement("path",{d:"M207.9 15.2c.8 4.7 16.1 94.5 16.1 128.8 0 52.3-27.8 89.6-68.9 104.6L168 486.7c.7 13.7-10.2 25.3-24 25.3H80c-13.7 0-24.7-11.5-24-25.3l12.9-238.1C27.7 233.6 0 196.2 0 144 0 109.6 15.3 19.9 16.1 15.2 19.3-5.1 61.4-5.4 64 16.3v141.2c1.3 3.4 15.1 3.2 16 0 1.4-25.3 7.9-139.2 8-141.8 3.3-20.8 44.7-20.8 47.9 0 .2 2.7 6.6 116.5 8 141.8.9 3.2 14.8 3.4 16 0V16.3c2.6-21.6 44.8-21.4 48-1.1zm119.2 285.7l-15 185.1c-1.2 14 9.9 26 23.9 26h56c13.3 0 24-10.7 24-24V24c0-13.2-10.7-24-24-24-82.5 0-221.4 178.5-64.9 300.9z"}))},FaRegFutbol=function(props){return React.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 496 512",width:"16",height:"16"},props),React.createElement("path",{d:"M483.8 179.4C449.8 74.6 352.6 8 248.1 8c-25.4 0-51.2 3.9-76.7 12.2C41.2 62.5-30.1 202.4 12.2 332.6 46.2 437.4 143.4 504 247.9 504c25.4 0 51.2-3.9 76.7-12.2 130.2-42.3 201.5-182.2 159.2-312.4zm-74.5 193.7l-52.2 6.4-43.7-60.9 24.4-75.2 71.1-22.1 38.9 36.4c-.2 30.7-7.4 61.1-21.7 89.2-4.7 9.3-10.7 17.8-16.8 26.2zm0-235.4l-10.4 53.1-70.7 22-64.2-46.5V92.5l47.4-26.2c39.2 13 73.4 38 97.9 71.4zM184.9 66.4L232 92.5v73.8l-64.2 46.5-70.6-22-10.1-52.5c24.3-33.4 57.9-58.6 97.8-71.9zM139 379.5L85.9 373c-14.4-20.1-37.3-59.6-37.8-115.3l39-36.4 71.1 22.2 24.3 74.3-43.5 61.7zm48.2 67l-22.4-48.1 43.6-61.7H287l44.3 61.7-22.4 48.1c-6.2 1.8-57.6 20.4-121.7 0z"}))},getEmojiGroups=function(t){return[{title:t("EmojiPlugin_EmojiGroups_People"),icon:React.createElement(FaSmile,null),category:"people",top:948},{title:t("EmojiPlugin_EmojiGroups_Nature"),icon:React.createElement(FaPaw,null),category:"nature",top:1937},{title:t("EmojiPlugin_EmojiGroups_Food"),icon:React.createElement(FaUtensils,null),category:"food",top:2453},{title:t("EmojiPlugin_EmojiGroups_Activity"),icon:React.createElement(FaRegFutbol,null),category:"activity",top:2497},{title:t("EmojiPlugin_EmojiGroups_Travel"),icon:React.createElement(FaPlane,null),category:"travel",top:3485},{title:t("EmojiPlugin_EmojiGroups_Objects"),icon:React.createElement(FaBell,null),category:"objects",top:4603},{title:t("EmojiPlugin_EmojiGroups_Symbols"),icon:React.createElement(FaHeart,null),category:"symbols",top:6280},{title:t("EmojiPlugin_EmojiGroups_Flags"),icon:React.createElement(FaFlag,null),category:"flags",top:1e4}]},DesktopFlyOutModalStyles=Object.freeze({overlay:{backgroundColor:"rgba(0, 0, 0, 0)",zIndex:5},content:{width:"320px",boxSizing:"border-box",height:"364px",overflow:"visible",border:"solid 1px rgba(51, 51, 51, 0.1)",paddingRight:"0px",paddingLeft:"0px",display:"block",borderRadius:"2px",position:"absolute",zIndex:6,paddingTop:"20px",boxShadow:"0 0 10px 0 rgba(0, 0, 0, 0.06)"}}),DEFAULT_CONFIG={},JoyPixelsIcon=function(props){return React.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"123",height:"13",viewBox:"0 0 123 13"},props),React.createElement("path",{fill:"currentColor",fillRule:"nonzero",d:"M.714 6.195v3.99H0V.28h2.555c1.162 0 2.038.254 2.629.763.59.509.885 1.234.885 2.177 0 .434-.08.833-.242 1.197a2.659 2.659 0 0 1-.696.941 3.255 3.255 0 0 1-1.106.616c-.434.148-.924.221-1.47.221H.714zm0-.574h1.841c.439 0 .83-.06 1.176-.182a2.59 2.59 0 0 0 .878-.504 2.19 2.19 0 0 0 .553-.76c.129-.291.193-.61.193-.955 0-.76-.234-1.346-.704-1.757-.469-.41-1.167-.616-2.096-.616H.714v4.774zm9.702-2.513c.5 0 .946.085 1.34.255.395.17.727.412.998.725.27.313.477.69.62 1.13.142.442.213.935.213 1.481s-.071 1.038-.213 1.477a3.214 3.214 0 0 1-.62 1.127c-.27.313-.603.553-.998.721a3.39 3.39 0 0 1-1.34.252c-.5 0-.946-.084-1.34-.252a2.73 2.73 0 0 1-1.002-.721 3.183 3.183 0 0 1-.622-1.127 4.772 4.772 0 0 1-.214-1.477c0-.546.071-1.04.214-1.48a3.18 3.18 0 0 1 .623-1.131 2.765 2.765 0 0 1 1-.725 3.35 3.35 0 0 1 1.341-.255zm0 6.643c.415 0 .778-.071 1.089-.213.31-.143.569-.347.776-.613.208-.266.363-.587.466-.963.103-.375.154-.796.154-1.263 0-.462-.051-.882-.154-1.26a2.736 2.736 0 0 0-.466-.97 2.078 2.078 0 0 0-.776-.619 2.553 2.553 0 0 0-1.089-.217c-.415 0-.778.072-1.089.217-.31.145-.569.351-.777.62a2.78 2.78 0 0 0-.468.969 4.703 4.703 0 0 0-.158 1.26c0 .467.052.888.158 1.263.105.376.26.697.468.963.208.266.467.47.777.613.31.142.674.213 1.089.213zm3.941-6.531h.511c.065 0 .119.017.161.053.042.035.07.073.084.115l1.757 5.495c.033.107.058.21.077.308l.056.294a6.82 6.82 0 0 1 .077-.294l.045-.15 1.922-5.702c.033-.103.098-.154.196-.154h.273c.103 0 .17.051.203.154l1.841 5.544c.07.21.126.413.168.609l.06-.298.037-.153 1.814-5.653c.037-.112.117-.168.238-.168h.49l-2.331 6.965h-.49c-.075 0-.128-.049-.161-.147l-1.911-5.656-.033-.105-.03-.105a3.411 3.411 0 0 1-.049-.21l-.046.21c-.016.07-.036.14-.059.21l-1.932 5.656c-.028.098-.084.147-.168.147h-.469L14.357 3.22zm13.923-.112c.392 0 .755.068 1.089.203.333.135.622.332.868.591.245.26.436.578.573.956.138.378.207.812.207 1.302 0 .103-.015.173-.046.21-.03.037-.078.056-.143.056h-5.033v.133c0 .523.06.982.182 1.379.121.397.294.73.518.998.224.268.495.47.812.605.317.135.672.203 1.064.203a3.184 3.184 0 0 0 1.558-.374c.13-.072.242-.139.332-.2l.084-.06c.103-.077.177-.115.224-.115a.16.16 0 0 1 .14.07l.182.224a1.9 1.9 0 0 1-.445.392c-.184.121-.39.225-.616.312a4.488 4.488 0 0 1-.728.206c-.259.051-.519.077-.78.077-.476 0-.91-.083-1.302-.248a2.76 2.76 0 0 1-1.008-.725 3.298 3.298 0 0 1-.648-1.166c-.151-.46-.227-.985-.227-1.578 0-.5.071-.96.214-1.382.142-.423.347-.787.615-1.093.269-.305.598-.544.987-.717.39-.173.832-.259 1.327-.259zm.007.497c-.36 0-.681.056-.966.168-.285.112-.53.273-.738.483-.208.21-.376.462-.505.756a3.441 3.441 0 0 0-.255.987h4.592c0-.373-.051-.708-.154-1.005a2.148 2.148 0 0 0-.434-.752 1.879 1.879 0 0 0-.672-.472 2.222 2.222 0 0 0-.868-.165zm4.522 6.58V3.22h.35c.08 0 .137.016.172.049.034.033.054.089.059.168l.056 1.47c.224-.565.523-1.007.896-1.326.373-.32.833-.48 1.379-.48a2.228 2.228 0 0 1 1.085.259l-.091.462c-.014.075-.06.112-.14.112a.272.272 0 0 1-.072-.012l-.167-.056-.073-.023a2.3 2.3 0 0 0-.668-.091c-.527 0-.96.163-1.298.49-.339.327-.613.798-.823 1.414v4.529h-.665zm8.183-7.077c.392 0 .755.068 1.089.203.333.135.622.332.867.591.246.26.437.578.575.956.137.378.206.812.206 1.302 0 .103-.015.173-.045.21-.03.037-.079.056-.144.056h-5.033v.133c0 .523.06.982.182 1.379.121.397.294.73.518.998.224.268.495.47.812.605.317.135.672.203 1.064.203a3.184 3.184 0 0 0 1.558-.374c.13-.072.242-.139.332-.2l.084-.06c.103-.077.177-.115.224-.115a.16.16 0 0 1 .14.07l.182.224a1.9 1.9 0 0 1-.444.392c-.185.121-.39.225-.617.312a4.488 4.488 0 0 1-.727.206c-.26.051-.52.077-.781.077-.476 0-.91-.083-1.302-.248a2.76 2.76 0 0 1-1.008-.725 3.298 3.298 0 0 1-.647-1.166c-.152-.46-.228-.985-.228-1.578 0-.5.071-.96.214-1.382.142-.423.347-.787.616-1.093.268-.305.597-.544.987-.717.39-.173.831-.259 1.326-.259zm.007.497c-.36 0-.681.056-.966.168-.285.112-.53.273-.739.483-.207.21-.375.462-.503.756a3.441 3.441 0 0 0-.256.987h4.592c0-.373-.051-.708-.154-1.005a2.148 2.148 0 0 0-.434-.752 1.879 1.879 0 0 0-.672-.472 2.222 2.222 0 0 0-.868-.165zm9.457 6.58c-.117 0-.184-.06-.203-.182l-.07-1.099a3.69 3.69 0 0 1-1.082 1.001 2.652 2.652 0 0 1-1.389.371c-.854 0-1.52-.296-1.998-.889-.479-.593-.718-1.482-.718-2.667 0-.509.066-.983.2-1.424.133-.442.328-.824.588-1.148.259-.325.576-.58.952-.767.375-.187.808-.28 1.298-.28.471 0 .88.087 1.225.262.345.176.644.431.896.767V0h.672v10.185h-.371zm-2.555-.448c.462 0 .88-.119 1.253-.357.373-.238.707-.57 1.001-.994V4.711c-.27-.397-.568-.677-.893-.84a2.417 2.417 0 0 0-1.102-.245c-.41 0-.77.075-1.078.224-.308.15-.566.36-.773.633-.208.274-.364.6-.47.98-.105.38-.157.8-.157 1.257 0 1.036.191 1.798.574 2.285.383.488.931.732 1.645.732zm8.036.448V0h.672v4.438c.308-.41.665-.735 1.071-.973a2.662 2.662 0 0 1 1.372-.357c.854 0 1.52.295 1.998.886.479.59.718 1.478.718 2.663 0 .509-.066.983-.2 1.424a3.383 3.383 0 0 1-.587 1.149c-.26.324-.577.58-.952.766-.376.187-.809.28-1.299.28-.485 0-.903-.094-1.253-.284a2.58 2.58 0 0 1-.903-.836l-.042.854c-.014.117-.077.175-.189.175h-.406zm2.926-6.545c-.462 0-.88.119-1.253.357-.373.238-.707.57-1.001.994v3.675c.266.401.56.682.882.844.322.16.693.241 1.113.241.41 0 .77-.075 1.078-.224.308-.15.566-.36.773-.633.208-.274.364-.6.47-.98.105-.38.157-.8.157-1.257 0-1.036-.191-1.798-.574-2.285-.383-.488-.931-.732-1.645-.732zm6.167 8.785a.477.477 0 0 1-.108.161c-.045.042-.109.063-.193.063h-.476l1.225-2.723-2.947-6.706h.553a.24.24 0 0 1 .165.053c.04.035.068.073.087.115l2.345 5.418c.028.07.052.141.074.214.02.072.04.145.059.22l.036-.111.037-.11c.026-.072.053-.143.081-.213l2.317-5.418a.301.301 0 0 1 .098-.123.234.234 0 0 1 .14-.045h.511l-4.004 9.205zm8.862-9.205v7.854c0 .243-.035.467-.105.672-.07.205-.174.384-.311.536-.138.151-.31.27-.518.357-.208.086-.452.129-.732.129a1.72 1.72 0 0 1-.364-.035 1.338 1.338 0 0 1-.315-.112l.035-.336c.005-.056.037-.084.098-.084.037 0 .09.01.157.028.068.019.16.028.277.028.378 0 .658-.103.84-.308.182-.205.273-.497.273-.875V3.22h.665zm.294-2.401a.531.531 0 0 1-.053.234.703.703 0 0 1-.136.193.633.633 0 0 1-.196.133.587.587 0 0 1-.238.049.587.587 0 0 1-.238-.049.633.633 0 0 1-.329-.326.612.612 0 0 1 0-.476.623.623 0 0 1 .567-.381c.084 0 .163.016.238.049a.633.633 0 0 1 .332.333.577.577 0 0 1 .053.241zm4.795 2.289c.5 0 .946.085 1.34.255.395.17.727.412.998.725.27.313.477.69.62 1.13.142.442.213.935.213 1.481s-.071 1.038-.214 1.477a3.214 3.214 0 0 1-.619 1.127c-.27.313-.603.553-.997.721a3.39 3.39 0 0 1-1.341.252c-.5 0-.946-.084-1.34-.252a2.73 2.73 0 0 1-1.002-.721 3.183 3.183 0 0 1-.622-1.127 4.772 4.772 0 0 1-.214-1.477c0-.546.071-1.04.214-1.48a3.18 3.18 0 0 1 .623-1.131 2.765 2.765 0 0 1 1-.725 3.35 3.35 0 0 1 1.341-.255zm0 6.643c.415 0 .778-.071 1.089-.213.31-.143.569-.347.776-.613.208-.266.363-.587.466-.963.103-.375.154-.796.154-1.263 0-.462-.051-.882-.154-1.26a2.736 2.736 0 0 0-.466-.97 2.078 2.078 0 0 0-.776-.619 2.553 2.553 0 0 0-1.089-.217c-.415 0-.778.072-1.089.217-.31.145-.569.351-.776.62a2.78 2.78 0 0 0-.47.969 4.703 4.703 0 0 0-.157 1.26c0 .467.052.888.157 1.263.106.376.262.697.47.963.207.266.466.47.776.613.31.142.674.213 1.089.213zm6.44 2.674a.477.477 0 0 1-.109.161c-.044.042-.108.063-.192.063h-.476l1.225-2.723-2.947-6.706h.553a.24.24 0 0 1 .165.053c.04.035.068.073.087.115l2.345 5.418c.028.07.053.141.074.214.02.072.04.145.059.22l.036-.111.038-.11c.025-.072.052-.143.08-.213l2.317-5.418a.301.301 0 0 1 .098-.123.234.234 0 0 1 .14-.045h.511l-4.004 9.205zm5.299.224V3.22h.364c.06 0 .11.013.147.039.037.025.058.07.063.136l.063 1.078a3.69 3.69 0 0 1 1.081-1.001 2.652 2.652 0 0 1 1.39-.371c.859 0 1.526.296 2.002.889.476.593.714 1.482.714 2.667 0 .509-.066.983-.2 1.424a3.419 3.419 0 0 1-.584 1.149 2.76 2.76 0 0 1-.948.766c-.376.187-.809.28-1.299.28-.476 0-.887-.086-1.232-.259a2.505 2.505 0 0 1-.896-.77v3.402h-.665zm2.919-9.009c-.462 0-.88.12-1.257.36-.375.24-.708.576-.997 1.005v3.654c.266.401.561.684.886.847.324.163.694.245 1.109.245.41 0 .77-.075 1.078-.224.308-.15.566-.36.773-.633.208-.274.364-.6.47-.98.105-.38.157-.8.157-1.257 0-1.036-.19-1.798-.57-2.285-.38-.488-.93-.732-1.649-.732zm5.432-.42v6.965h-.665V3.22h.665zm.294-2.401a.531.531 0 0 1-.052.234.703.703 0 0 1-.137.193.633.633 0 0 1-.196.133.587.587 0 0 1-.238.049.587.587 0 0 1-.238-.049.633.633 0 0 1-.329-.326.612.612 0 0 1 0-.476.623.623 0 0 1 .567-.381c.084 0 .163.016.238.049a.633.633 0 0 1 .332.333.577.577 0 0 1 .053.241zm3.801 5.803l-2.422-3.402h.637c.065 0 .113.014.143.042l.043.046 2.082 3.006a.764.764 0 0 1 .119-.252l1.911-2.695a.35.35 0 0 1 .088-.105.19.19 0 0 1 .122-.042h.616l-2.436 3.367 2.534 3.598h-.637a.201.201 0 0 1-.154-.06.754.754 0 0 1-.091-.115l-2.114-3.08a.695.695 0 0 1-.105.238l-2.03 2.856a.953.953 0 0 1-.102.112.183.183 0 0 1-.129.049h-.595l2.52-3.563zm7.441-3.514c.392 0 .755.068 1.088.203.334.135.623.332.868.591.246.26.437.578.574.956.138.378.207.812.207 1.302 0 .103-.015.173-.046.21-.03.037-.078.056-.143.056h-5.033v.133c0 .523.06.982.182 1.379.121.397.294.73.518.998.224.268.495.47.812.605.317.135.672.203 1.064.203a3.184 3.184 0 0 0 1.557-.374c.132-.072.243-.139.333-.2l.084-.06c.103-.077.177-.115.224-.115a.16.16 0 0 1 .14.07l.182.224a1.9 1.9 0 0 1-.444.392c-.185.121-.39.225-.616.312a4.488 4.488 0 0 1-.728.206c-.26.051-.52.077-.781.077-.476 0-.91-.083-1.302-.248a2.76 2.76 0 0 1-1.008-.725 3.298 3.298 0 0 1-.647-1.166c-.152-.46-.228-.985-.228-1.578 0-.5.071-.96.214-1.382.142-.423.347-.787.615-1.093.269-.305.598-.544.988-.717.39-.173.831-.259 1.326-.259zm.007.497c-.36 0-.681.056-.966.168-.285.112-.53.273-.739.483-.207.21-.375.462-.503.756a3.441 3.441 0 0 0-.256.987h4.592c0-.373-.051-.708-.154-1.005a2.148 2.148 0 0 0-.434-.752 1.879 1.879 0 0 0-.672-.472 2.222 2.222 0 0 0-.868-.165zM115.997 0v10.185h-.665V0h.665zm6.3 4.081a.162.162 0 0 1-.154.098.293.293 0 0 1-.141-.05l-.059-.037a3.185 3.185 0 0 0-.321-.197 2.606 2.606 0 0 0-.49-.195 2.492 2.492 0 0 0-.711-.088c-.252 0-.482.036-.69.109a1.71 1.71 0 0 0-.531.29 1.321 1.321 0 0 0-.344.423c-.081.162-.122.33-.122.508 0 .22.056.401.168.546.112.145.259.268.441.371.182.103.388.191.62.266.23.075.467.15.71.224.243.075.48.157.71.248.232.092.438.205.62.34.182.135.329.301.441.497.112.196.168.434.168.714 0 .303-.055.586-.165.847-.11.261-.268.488-.476.679a2.282 2.282 0 0 1-.766.455 2.978 2.978 0 0 1-1.036.168c-.49 0-.912-.078-1.267-.235a3.557 3.557 0 0 1-.952-.612l.161-.238a.271.271 0 0 1 .077-.084.214.214 0 0 1 .119-.028c.046 0 .099.021.16.063l.064.049a2.797 2.797 0 0 0 .878.483c.213.075.475.112.788.112.294 0 .553-.04.777-.123.224-.081.41-.192.56-.332.15-.14.262-.304.34-.494.076-.189.115-.388.115-.598a.962.962 0 0 0-.168-.581 1.44 1.44 0 0 0-.441-.392 3.082 3.082 0 0 0-.62-.273c-.23-.075-.468-.15-.714-.224a10.682 10.682 0 0 1-.714-.245 2.582 2.582 0 0 1-.619-.336 1.62 1.62 0 0 1-.441-.494c-.112-.193-.168-.435-.168-.724 0-.247.054-.485.161-.714.107-.229.26-.43.459-.602.198-.173.44-.31.724-.413.285-.103.604-.154.959-.154.425 0 .801.06 1.13.182.33.121.632.308.907.56l-.147.231z"}))},emojiList={symbols:["1f4af","1f522","1f441-200d-1f5e8","1f498","2764-fe0f","1f493","1f494","1f495","1f496","1f497","1f499","1f49a","1f49b","1f49c","1f5a4","1f49d","1f49e","1f49f","2763-fe0f","1f4a2","1f4a5","1f4ab","1f4ac","1f5e8-fe0f","1f5ef-fe0f","1f4ad","1f4ae","1f310","2668-fe0f","1f6d1","1f55b","1f567","1f550","1f55c","1f551","1f55d","1f552","1f55e","1f553","1f55f","1f554","1f560","1f555","1f561","1f556","1f562","1f557","1f563","1f558","1f564","1f559","1f565","1f55a","1f566","1f300","2660-fe0f","2665-fe0f","2666-fe0f","2663-fe0f","1f0cf","1f004-fe0f","1f3b4","1f507","1f508","1f509","1f50a","1f4e2","1f4e3","1f514","1f515","1f3b5","1f3b6","1f4b9","1f4b1","1f4b2","1f3e7","1f6ae","1f6b0","267f-fe0f","1f6b9","1f6ba","1f6bb","1f6bc","1f6be","1f6c2","1f6c3","1f6c4","1f6c5","26a0-fe0f","1f6b8","26d4-fe0f","1f6ab","1f6b3","1f6ad","1f6af","1f6b1","1f6b7","1f4f5","1f51e","2622-fe0f","2623-fe0f","2b06-fe0f","2197-fe0f","27a1-fe0f","2198-fe0f","2b07-fe0f","2199-fe0f","2b05-fe0f","2196-fe0f","2195-fe0f","2194-fe0f","21a9-fe0f","21aa-fe0f","2934-fe0f","2935-fe0f","1f503","1f504","1f519","1f51a","1f51b","1f51c","1f51d","1f6d0","269b-fe0f","1f549-fe0f","2721-fe0f","2638-fe0f","262f-fe0f","271d-fe0f","2626-fe0f","262a-fe0f","262e-fe0f","1f54e","1f52f","2648-fe0f","2649-fe0f","264a-fe0f","264b-fe0f","264c-fe0f","264d-fe0f","264e-fe0f","264f-fe0f","2650-fe0f","2651-fe0f","2652-fe0f","2653-fe0f","26ce","1f500","1f501","1f502","25b6-fe0f","23e9","23ed-fe0f","23ef-fe0f","25c0-fe0f","23ea","23ee-fe0f","1f53c","23eb","1f53d","23ec","23f8-fe0f","23f9-fe0f","23fa-fe0f","23cf-fe0f","1f3a6","1f505","1f506","1f4f6","1f4f3","1f4f4","267b-fe0f","1f4db","269c-fe0f","1f530","1f531","2b55-fe0f","2705","2611-fe0f","2714-fe0f","2716-fe0f","274c","274e","2795","2796","2797","27b0","27bf","303d-fe0f","2733-fe0f","2734-fe0f","2747-fe0f","203c-fe0f","2049-fe0f","2753","2754","2755","2757-fe0f","3030-fe0f","00a9-fe0f","00ae-fe0f","2122-fe0f","0023-fe0f-20e3","002a-fe0f-20e3","0030-fe0f-20e3","0031-fe0f-20e3","0032-fe0f-20e3","0033-fe0f-20e3","0034-fe0f-20e3","0035-fe0f-20e3","0036-fe0f-20e3","0037-fe0f-20e3","0038-fe0f-20e3","0039-fe0f-20e3","1f51f","1f520","1f521","1f523","1f524","1f170","1f18e","1f171","1f191","1f192","1f193","2139-fe0f","1f194","24c2-fe0f","1f195","1f196","1f17e","1f197","1f17f-fe0f","1f198","1f199","1f19a","1f201","1f202-fe0f","1f237-fe0f","1f236","1f22f-fe0f","1f250","1f239","1f21a-fe0f","1f232","1f251","1f238","1f234","1f233","3297-fe0f","3299-fe0f","1f23a","1f235","25aa-fe0f","25ab-fe0f","25fb-fe0f","25fc-fe0f","25fd-fe0f","25fe-fe0f","2b1b-fe0f","2b1c-fe0f","1f536","1f537","1f538","1f539","1f53a","1f53b","1f4a0","1f518","1f532","1f533","26aa-fe0f","26ab-fe0f","1f534","1f535"],people:["1f600","1f601","1f602","1f923","1f603","1f604","1f605","1f606","1f609","1f60a","1f60b","1f60e","1f60d","1f618","1f617","1f619","1f61a","263a-fe0f","1f642","1f917","1f914","1f610","1f611","1f636","1f644","1f60f","1f623","1f625","1f62e","1f910","1f62f","1f62a","1f62b","1f634","1f60c","1f913","1f61b","1f61c","1f61d","1f924","1f612","1f613","1f614","1f615","1f643","1f911","1f632","2639-fe0f","1f641","1f616","1f61e","1f61f","1f624","1f622","1f62d","1f626","1f627","1f628","1f629","1f62c","1f630","1f631","1f633","1f635","1f621","1f620","1f607","1f920","1f921","1f925","1f637","1f912","1f915","1f922","1f927","1f608","1f47f","1f479","1f47a","1f480","1f47b","1f47d","1f916","1f4a9","1f63a","1f638","1f639","1f63b","1f63c","1f63d","1f640","1f63f","1f63e","1f46f","1f5e3-fe0f","1f464","1f465","1f46b","1f46c","1f46d","1f48f","1f468-200d-2764-fe0f-200d-1f48b-200d-1f468","1f469-200d-2764-fe0f-200d-1f48b-200d-1f469","1f491","1f468-200d-2764-fe0f-200d-1f468","1f469-200d-2764-fe0f-200d-1f469","1f46a","1f468-200d-1f469-200d-1f467","1f468-200d-1f469-200d-1f467-200d-1f466","1f468-200d-1f469-200d-1f466-200d-1f466","1f468-200d-1f469-200d-1f467-200d-1f467","1f468-200d-1f468-200d-1f466","1f468-200d-1f468-200d-1f467","1f468-200d-1f468-200d-1f467-200d-1f466","1f468-200d-1f468-200d-1f466-200d-1f466","1f468-200d-1f468-200d-1f467-200d-1f467","1f469-200d-1f469-200d-1f466","1f469-200d-1f469-200d-1f467","1f469-200d-1f469-200d-1f467-200d-1f466","1f469-200d-1f469-200d-1f466-200d-1f466","1f469-200d-1f469-200d-1f467-200d-1f467","1f463","1f440","1f441-fe0f","1f445","1f444","1f48b","1f4a4","1f453","1f576-fe0f","1f454","1f455","1f456","1f457","1f458","1f459","1f45a","1f45b","1f45c","1f45d","1f392","1f45e","1f45f","1f460","1f461","1f462","1f451","1f452","1f3a9","1f393","26d1-fe0f","1f484","1f48d","1f302","1f4bc"],objects:["2620-fe0f","1f48c","1f4a3","1f573-fe0f","1f6cd-fe0f","1f4ff","1f48e","1f52a","1f3fa","1f5fa-fe0f","1f488","1f5bc-fe0f","1f6ce-fe0f","1f6aa","1f6cc","1f6cf-fe0f","1f6cb-fe0f","1f6bd","1f6bf","1f6c1","231b-fe0f","23f3","231a-fe0f","23f0","23f1-fe0f","23f2-fe0f","1f570-fe0f","1f321-fe0f","26f1-fe0f","1f388","1f389","1f38a","1f38e","1f38f","1f390","1f380","1f381","1f579-fe0f","1f4ef","1f399-fe0f","1f39a-fe0f","1f39b-fe0f","1f4fb","1f4f1","1f4f2","260e-fe0f","1f4de","1f4df","1f4e0","1f50b","1f50c","1f4bb","1f5a5-fe0f","1f5a8-fe0f","2328-fe0f","1f5b1-fe0f","1f5b2-fe0f","1f4bd","1f4be","1f4bf","1f4c0","1f3a5","1f39e-fe0f","1f4fd-fe0f","1f4fa","1f4f7","1f4f8","1f4f9","1f4fc","1f50d","1f50e","1f52c","1f52d","1f4e1","1f56f-fe0f","1f4a1","1f526","1f3ee","1f4d4","1f4d5","1f4d6","1f4d7","1f4d8","1f4d9","1f4da","1f4d3","1f4d2","1f4c3","1f4dc","1f4c4","1f4f0","1f5de-fe0f","1f4d1","1f516","1f3f7-fe0f","1f4b0","1f4b4","1f4b5","1f4b6","1f4b7","1f4b8","1f4b3","2709-fe0f","1f4e7","1f4e8","1f4e9","1f4e4","1f4e5","1f4e6","1f4eb","1f4ea","1f4ec","1f4ed","1f4ee","1f5f3-fe0f","270f-fe0f","2712-fe0f","1f58b-fe0f","1f58a-fe0f","1f58c-fe0f","1f58d-fe0f","1f4dd","1f4c1","1f4c2","1f5c2-fe0f","1f4c5","1f4c6","1f5d2-fe0f","1f5d3-fe0f","1f4c7","1f4c8","1f4c9","1f4ca","1f4cb","1f4cc","1f4cd","1f4ce","1f587-fe0f","1f4cf","1f4d0","2702-fe0f","1f5c3-fe0f","1f5c4-fe0f","1f5d1-fe0f","1f512","1f513","1f50f","1f510","1f511","1f5dd-fe0f","1f528","26cf-fe0f","2692-fe0f","1f6e0-fe0f","1f5e1-fe0f","2694-fe0f","1f52b","1f6e1-fe0f","1f527","1f529","2699-fe0f","1f5dc-fe0f","2697-fe0f","2696-fe0f","1f517","26d3-fe0f","1f489","1f48a","1f6ac","26b0-fe0f","26b1-fe0f","1f5ff","1f6e2-fe0f","1f52e","1f6d2","1f6a9","1f38c","1f3f4","1f3f3-fe0f","1f3f3-fe0f-200d-1f308"],activity:["1f47e","1f574-fe0f","1f93a","26f7-fe0f","1f3c2","1f3cc-fe0f","1f3aa","1f3ad","1f3a8","1f3b0","1f397-fe0f","1f39f-fe0f","1f3ab","1f396-fe0f","1f3c6","1f3c5","1f947","1f948","1f949","26bd-fe0f","26be-fe0f","1f3c0","1f3d0","1f3c8","1f3c9","1f3be","1f3b1","1f3b3","1f3cf","1f3d1","1f3d2","1f3d3","1f3f8","1f94a","1f94b","1f945","1f3af","26f3-fe0f","26f8-fe0f","1f3a3","1f3bd","1f3bf","1f3ae","1f3b2","1f3bc","1f3a4","1f3a7","1f3b7","1f3b8","1f3b9","1f3ba","1f3bb","1f941","1f3ac","1f3f9"],nature:["1f648","1f649","1f64a","1f4a6","1f4a8","1f435","1f412","1f98d","1f436","1f415","1f429","1f43a","1f98a","1f431","1f408","1f981","1f42f","1f405","1f406","1f434","1f40e","1f98c","1f984","1f42e","1f402","1f403","1f404","1f437","1f416","1f417","1f43d","1f40f","1f411","1f410","1f42a","1f42b","1f418","1f98f","1f42d","1f401","1f400","1f439","1f430","1f407","1f43f-fe0f","1f987","1f43b","1f428","1f43c","1f43e","1f983","1f414","1f413","1f423","1f424","1f425","1f426","1f427","1f54a-fe0f","1f985","1f986","1f989","1f438","1f40a","1f422","1f98e","1f40d","1f432","1f409","1f433","1f40b","1f42c","1f41f","1f420","1f421","1f988","1f419","1f41a","1f980","1f990","1f991","1f98b","1f40c","1f41b","1f41c","1f41d","1f41e","1f577-fe0f","1f578-fe0f","1f982","1f490","1f338","1f3f5-fe0f","1f339","1f940","1f33a","1f33b","1f33c","1f337","1f331","1f332","1f333","1f334","1f335","1f33e","1f33f","2618-fe0f","1f340","1f341","1f342","1f343","1f344","1f330","1f30d","1f30e","1f30f","1f311","1f312","1f313","1f314","1f315","1f316","1f317","1f318","1f319","1f31a","1f31b","1f31c","2600-fe0f","1f31d","1f31e","2b50-fe0f","1f31f","2601-fe0f","26c5-fe0f","26c8-fe0f","1f324-fe0f","1f325-fe0f","1f326-fe0f","1f327-fe0f","1f328-fe0f","1f329-fe0f","1f32a-fe0f","1f32b-fe0f","1f32c-fe0f","2602-fe0f","2614-fe0f","26a1-fe0f","2744-fe0f","2603-fe0f","26c4-fe0f","2604-fe0f","1f525","1f4a7","1f30a","1f383","1f384","2728","1f38b","1f38d"],travel:["1f3ce-fe0f","1f3cd-fe0f","1f5fe","1f3d4-fe0f","26f0-fe0f","1f30b","1f5fb","1f3d5-fe0f","1f3d6-fe0f","1f3dc-fe0f","1f3dd-fe0f","1f3de-fe0f","1f3df-fe0f","1f3db-fe0f","1f3d7-fe0f","1f3d8-fe0f","1f3d9-fe0f","1f3da-fe0f","1f3e0","1f3e1","1f3e2","1f3e3","1f3e4","1f3e5","1f3e6","1f3e8","1f3e9","1f3ea","1f3eb","1f3ec","1f3ed","1f3ef","1f3f0","1f492","1f5fc","1f5fd","26ea-fe0f","1f54c","1f54d","26e9-fe0f","1f54b","26f2-fe0f","26fa-fe0f","1f301","1f303","1f304","1f305","1f306","1f307","1f309","1f30c","1f3a0","1f3a1","1f3a2","1f682","1f683","1f684","1f685","1f686","1f687","1f688","1f689","1f68a","1f69d","1f69e","1f68b","1f68c","1f68d","1f68e","1f690","1f691","1f692","1f693","1f694","1f695","1f696","1f697","1f698","1f699","1f69a","1f69b","1f69c","1f6b2","1f6f4","1f6f5","1f68f","1f6e3-fe0f","1f6e4-fe0f","26fd-fe0f","1f6a8","1f6a5","1f6a6","1f6a7","2693-fe0f","26f5-fe0f","1f6f6","1f6a4","1f6f3-fe0f","26f4-fe0f","1f6e5-fe0f","1f6a2","2708-fe0f","1f6e9-fe0f","1f6eb","1f6ec","1f4ba","1f681","1f69f","1f6a0","1f6a1","1f680","1f6f0-fe0f","1f320","1f308","1f386","1f387","1f391","1f3c1"],food:["1f347","1f348","1f349","1f34a","1f34b","1f34c","1f34d","1f34e","1f34f","1f350","1f351","1f352","1f353","1f95d","1f345","1f951","1f346","1f954","1f955","1f33d","1f336-fe0f","1f952","1f95c","1f35e","1f950","1f956","1f95e","1f9c0","1f356","1f357","1f953","1f354","1f35f","1f355","1f32d","1f32e","1f32f","1f959","1f95a","1f373","1f958","1f372","1f957","1f37f","1f371","1f358","1f359","1f35a","1f35b","1f35c","1f35d","1f360","1f362","1f363","1f364","1f365","1f361","1f366","1f367","1f368","1f369","1f36a","1f382","1f370","1f36b","1f36c","1f36d","1f36e","1f36f","1f37c","1f95b","2615-fe0f","1f375","1f376","1f37e","1f377","1f378","1f379","1f37a","1f37b","1f942","1f943","1f37d-fe0f","1f374","1f944"],flags:["1f1e6-1f1e8","1f1e6-1f1e9","1f1e6-1f1ea","1f1e6-1f1eb","1f1e6-1f1ec","1f1e6-1f1ee","1f1e6-1f1f1","1f1e6-1f1f2","1f1e6-1f1f4","1f1e6-1f1f6","1f1e6-1f1f7","1f1e6-1f1f8","1f1e6-1f1f9","1f1e6-1f1fa","1f1e6-1f1fc","1f1e6-1f1fd","1f1e6-1f1ff","1f1e7-1f1e6","1f1e7-1f1e7","1f1e7-1f1e9","1f1e7-1f1ea","1f1e7-1f1eb","1f1e7-1f1ec","1f1e7-1f1ed","1f1e7-1f1ee","1f1e7-1f1ef","1f1e7-1f1f1","1f1e7-1f1f2","1f1e7-1f1f3","1f1e7-1f1f4","1f1e7-1f1f6","1f1e7-1f1f7","1f1e7-1f1f8","1f1e7-1f1f9","1f1e7-1f1fb","1f1e7-1f1fc","1f1e7-1f1fe","1f1e7-1f1ff","1f1e8-1f1e6","1f1e8-1f1e8","1f1e8-1f1e9","1f1e8-1f1eb","1f1e8-1f1ec","1f1e8-1f1ed","1f1e8-1f1ee","1f1e8-1f1f0","1f1e8-1f1f1","1f1e8-1f1f2","1f1e8-1f1f3","1f1e8-1f1f4","1f1e8-1f1f5","1f1e8-1f1f7","1f1e8-1f1fa","1f1e8-1f1fb","1f1e8-1f1fc","1f1e8-1f1fd","1f1e8-1f1fe","1f1e8-1f1ff","1f1e9-1f1ea","1f1e9-1f1ec","1f1e9-1f1ef","1f1e9-1f1f0","1f1e9-1f1f2","1f1e9-1f1f4","1f1e9-1f1ff","1f1ea-1f1e6","1f1ea-1f1e8","1f1ea-1f1ea","1f1ea-1f1ec","1f1ea-1f1ed","1f1ea-1f1f7","1f1ea-1f1f8","1f1ea-1f1f9","1f1ea-1f1fa","1f1eb-1f1ee","1f1eb-1f1ef","1f1eb-1f1f0","1f1eb-1f1f2","1f1eb-1f1f4","1f1eb-1f1f7","1f1ec-1f1e6","1f1ec-1f1e7","1f1ec-1f1e9","1f1ec-1f1ea","1f1ec-1f1eb","1f1ec-1f1ec","1f1ec-1f1ed","1f1ec-1f1ee","1f1ec-1f1f1","1f1ec-1f1f2","1f1ec-1f1f3","1f1ec-1f1f5","1f1ec-1f1f6","1f1ec-1f1f7","1f1ec-1f1f8","1f1ec-1f1f9","1f1ec-1f1fa","1f1ec-1f1fc","1f1ec-1f1fe","1f1ed-1f1f0","1f1ed-1f1f2","1f1ed-1f1f3","1f1ed-1f1f7","1f1ed-1f1f9","1f1ed-1f1fa","1f1ee-1f1e8","1f1ee-1f1e9","1f1ee-1f1ea","1f1ee-1f1f1","1f1ee-1f1f2","1f1ee-1f1f3","1f1ee-1f1f4","1f1ee-1f1f6","1f1ee-1f1f7","1f1ee-1f1f8","1f1ee-1f1f9","1f1ef-1f1ea","1f1ef-1f1f2","1f1ef-1f1f4","1f1ef-1f1f5","1f1f0-1f1ea","1f1f0-1f1ec","1f1f0-1f1ed","1f1f0-1f1ee","1f1f0-1f1f2","1f1f0-1f1f3","1f1f0-1f1f5","1f1f0-1f1f7","1f1f0-1f1fc","1f1f0-1f1fe","1f1f0-1f1ff","1f1f1-1f1e6","1f1f1-1f1e7","1f1f1-1f1e8","1f1f1-1f1ee","1f1f1-1f1f0","1f1f1-1f1f7","1f1f1-1f1f8","1f1f1-1f1f9","1f1f1-1f1fa","1f1f1-1f1fb","1f1f1-1f1fe","1f1f2-1f1e6","1f1f2-1f1e8","1f1f2-1f1e9","1f1f2-1f1ea","1f1f2-1f1eb","1f1f2-1f1ec","1f1f2-1f1ed","1f1f2-1f1f0","1f1f2-1f1f1","1f1f2-1f1f2","1f1f2-1f1f3","1f1f2-1f1f4","1f1f2-1f1f5","1f1f2-1f1f6","1f1f2-1f1f7","1f1f2-1f1f8","1f1f2-1f1f9","1f1f2-1f1fa","1f1f2-1f1fb","1f1f2-1f1fc","1f1f2-1f1fd","1f1f2-1f1fe","1f1f2-1f1ff","1f1f3-1f1e6","1f1f3-1f1e8","1f1f3-1f1ea","1f1f3-1f1eb","1f1f3-1f1ec","1f1f3-1f1ee","1f1f3-1f1f1","1f1f3-1f1f4","1f1f3-1f1f5","1f1f3-1f1f7","1f1f3-1f1fa","1f1f3-1f1ff","1f1f4-1f1f2","1f1f5-1f1e6","1f1f5-1f1ea","1f1f5-1f1eb","1f1f5-1f1ec","1f1f5-1f1ed","1f1f5-1f1f0","1f1f5-1f1f1","1f1f5-1f1f2","1f1f5-1f1f3","1f1f5-1f1f7","1f1f5-1f1f8","1f1f5-1f1f9","1f1f5-1f1fc","1f1f5-1f1fe","1f1f6-1f1e6","1f1f7-1f1ea","1f1f7-1f1f4","1f1f7-1f1f8","1f1f7-1f1fa","1f1f7-1f1fc","1f1f8-1f1e6","1f1f8-1f1e7","1f1f8-1f1e8","1f1f8-1f1e9","1f1f8-1f1ea","1f1f8-1f1ec","1f1f8-1f1ed","1f1f8-1f1ee","1f1f8-1f1ef","1f1f8-1f1f0","1f1f8-1f1f1","1f1f8-1f1f2","1f1f8-1f1f3","1f1f8-1f1f4","1f1f8-1f1f7","1f1f8-1f1f8","1f1f8-1f1f9","1f1f8-1f1fb","1f1f8-1f1fd","1f1f8-1f1fe","1f1f8-1f1ff","1f1f9-1f1e6","1f1f9-1f1e8","1f1f9-1f1e9","1f1f9-1f1eb","1f1f9-1f1ec","1f1f9-1f1ed","1f1f9-1f1ef","1f1f9-1f1f0","1f1f9-1f1f1","1f1f9-1f1f2","1f1f9-1f1f3","1f1f9-1f1f4","1f1f9-1f1f7","1f1f9-1f1f9","1f1f9-1f1fb","1f1f9-1f1fc","1f1f9-1f1ff","1f1fa-1f1e6","1f1fa-1f1ec","1f1fa-1f1f2","1f1fa-1f1f8","1f1fa-1f1fe","1f1fa-1f1ff","1f1fb-1f1e6","1f1fb-1f1e8","1f1fb-1f1ea","1f1fb-1f1ec","1f1fb-1f1ee","1f1fb-1f1f3","1f1fb-1f1fa","1f1fc-1f1eb","1f1fc-1f1f8","1f1fd-1f1f0","1f1fe-1f1ea","1f1fe-1f1f9","1f1ff-1f1e6","1f1ff-1f1f2","1f1ff-1f1fc"]},getGroupEmojis=function(category){return emojiList[category].map((function(unicode){return function(unicode){if(unicode.indexOf("-")>-1){for(var parts=[],s=unicode.split("-"),i=0;i<s.length;i++){var part=parseInt(s[i],16);if(part>=65536&&part<=1114111){var hi=Math.floor((part-65536)/1024)+55296,lo=(part-65536)%1024+56320;part=String.fromCharCode(hi)+String.fromCharCode(lo)}else part=String.fromCharCode(part);parts.push(part)}return parts.join("")}var _s=parseInt(unicode,16);if(_s>=65536&&_s<=1114111){var _hi=Math.floor((_s-65536)/1024)+55296,_lo=(_s-65536)%1024+56320;return String.fromCharCode(_hi)+String.fromCharCode(_lo)}return String.fromCharCode(_s)}(unicode)}))},styles={emojiPreviewModal_emoji_icons_container:"_2ae1B",emojiPreviewModal_nav_icon:"gr5te",emojiPreviewModal_emoji_icon:"_3h6i_",emojiPreviewModal_emoji_group:"_2cnvS",emojiPreviewModal_emoji:"_1YADR",emojiPreviewModal_headerTitle:"_16eu8",emojiPreviewModal_emojis_groups_container:"_1Uv71",emojiPreviewModal_JoyPixelsIcon:"_2ngc-",emojiPreviewModal_scrollbar_thumb:"GgbqQ"},EmojiPreviewModal=function(_Component){function EmojiPreviewModal(props){var _this;(_this=_Component.call(this,props)||this).onNavIconClicked=function(group){_this.setState({activeGroup:group}),_this.groupRefs[group.category].current.scrollIntoView({behavior:"smooth"})},_this.renderNavIcons=function(activeGroup){var t=_this.props.t;return getEmojiGroups(t).map((function(group,index){var color=activeGroup.category===group.category?"#42A5F5":"#bdbdbd";return React.createElement("div",{key:"emoji-group-"+index,role:"button","data-hook":"emoji-group-"+index,onKeyPress:null,tabIndex:0,className:_this.styles.emojiPreviewModal_nav_icon,onClick:_this.onNavIconClicked.bind(_assertThisInitialized(_this),group),style:{color:color}},group.icon)}))},_this.onScroll=function(event){var scrollTop=event.srcElement.scrollTop,t=_this.props.t,categoryScrollTop=getEmojiGroups(t).find((function(_ref){var top=_ref.top;return scrollTop<top}));_this.setState({activeGroup:categoryScrollTop})},_this.renderEmojis=function(){return _this.emojiGroupsCategories.map((function(category){var emojisElements=(getGroupEmojis(category)||[]).map((function(emoji,index){return React.createElement("div",{role:"button","data-hook":"emoji-"+index,tabIndex:0,className:_this.styles.emojiPreviewModal_emoji,key:"emojis-"+category+"-"+index,onClick:_this.getBoundOnClick(emoji),onKeyPress:_this.getBoundKeyPress(emoji)},emoji)}));return React.createElement("div",{ref:_this.groupRefs[category],key:"anchor-"+category,className:_this.styles.emojiPreviewModal_emoji_group},emojisElements)}))},_this.styles=mergeStyles({styles:styles,theme:props.theme});var _t=props.t;_this.scrollbarRef="";var groups=getEmojiGroups(_t);return _this.groupRefs={},groups.map((function(_ref2){var category=_ref2.category;return _this.groupRefs[category]=React.createRef()})),_this.emojiGroupsCategories=groups.map((function(_ref3){return _ref3.category})),_this.state={activeGroup:groups[0]},_this}_inheritsLoose(EmojiPreviewModal,_Component);var _proto=EmojiPreviewModal.prototype;return _proto.getBoundOnClick=function(emoji){var _this2=this;return function(){return _this2.addEmoji(emoji)}},_proto.getBoundKeyPress=function(emoji){var _this3=this;return function(e){"Enter"===e.key&&_this3.addEmoji(emoji)}},_proto.addEmoji=function(emoji){var _this$props=this.props,helpers=_this$props.helpers;(0,_this$props.setEditorState)(function(editorState,emoji){var contentState=editorState.getCurrentContent(),currentSelectionState=editorState.getSelection(),emojiEntityKey=createEntity(editorState,{type:"EMOJI_TYPE",mutability:"IMMUTABLE",data:{emojiUnicode:emoji}}),emojiAddedContent=Modifier.replaceText(contentState,currentSelectionState,emoji,null,emojiEntityKey),newEditorState=EditorState.push(editorState,emojiAddedContent,"insert-emoji");return EditorState.forceSelection(newEditorState,emojiAddedContent.getSelectionAfter())}((0,_this$props.getEditorState)(),emoji)),helpers.closeModal()},_proto.render=function(){var _this4=this,activeGroup=this.state.activeGroup;return React.createElement("div",null,React.createElement("div",{className:this.styles.emojiPreviewModal_headerTitle},React.createElement("div",null,activeGroup.title),React.createElement("div",{className:this.styles.emojiPreviewModal_JoyPixelsIcon},React.createElement(JoyPixelsIcon,null))),React.createElement("div",{className:this.styles.emojiPreviewModal_emojis_groups_container},React.createElement(Scrollbars,{ref:function(_ref4){_this4.scrollbarRef=_ref4},renderThumbVertical:function(){return React.createElement("div",{className:_this4.styles.emojiPreviewModal_scrollbar_thumb})},onScroll:this.onScroll},this.renderEmojis())),React.createElement("div",{className:this.styles.emojiPreviewModal_emoji_icons_container},this.renderNavIcons(activeGroup)))},EmojiPreviewModal}(Component),EmojiPluginIcon=function(props){return React.createElement("svg",Object.assign({viewBox:"-2 -2 19 19",fill:"currentColor",width:"19",height:"19"},props),React.createElement("path",{d:"M7.5 15a7.5 7.5 0 1 1 0-15 7.5 7.5 0 0 1 0 15zm0-1a6.5 6.5 0 1 0 0-13 6.5 6.5 0 0 0 0 13zM5 7a1 1 0 1 1 0-2 1 1 0 0 1 0 2zm4.53 4.575c-.639.444-1.03.708-2.03.708-1 0-1.564-.194-2.175-.666-.611-.473-1-.867-1.25-1.617-.056-.167-.083-.536 0-.675a.677.677 0 0 1 .333-.292.603.603 0 0 1 .492.042c.139.083.203.194.258.333.167.5.459.903.875 1.209.417.305.967.458 1.467.458.5 0 .88-.153 1.325-.458A2.12 2.12 0 0 0 9.7 9.408a.677.677 0 0 1 .292-.333.527.527 0 0 1 .458-.042.506.506 0 0 1 .333.292.84.84 0 0 1 .042.458 3.25 3.25 0 0 1-1.295 1.792zM10 7a1 1 0 1 1 0-2 1 1 0 0 1 0 2z"}))},createInsertButtons=function(_ref){var _settings$toolbar,_settings$toolbar$ico,t=_ref.t,isMobile=_ref.isMobile,settings=_ref.settings,getEditorState=_ref.getEditorState,setEditorState=_ref.setEditorState,icon=(null==settings||null===(_settings$toolbar=settings.toolbar)||void 0===_settings$toolbar||null===(_settings$toolbar$ico=_settings$toolbar.icons)||void 0===_settings$toolbar$ico?void 0:_settings$toolbar$ico.InsertPluginButtonIcon)||EmojiPluginIcon,buttonProps={type:BUTTON_TYPES.MODAL,name:INSERT_PLUGIN_BUTTONS.EMOJI,tooltip:t("EmojiPlugin_InsertButton_Tooltip"),getIcon:function(){return icon},componentData:settings.componentDataDefaults||{},modalElement:decorateComponentWithProps(EmojiPreviewModal,_extends({getEditorState:getEditorState,setEditorState:setEditorState},settings))};return[_extends({},buttonProps,{toolbars:settings.insertToolbars||[TOOLBARS.FOOTER,TOOLBARS.SIDE],modalStylesFn:function(_ref2){var buttonRef=_ref2.buttonRef,toolbarName=_ref2.toolbarName;return getBottomToolbarModalStyles(buttonRef,{customStyles:DesktopFlyOutModalStyles},toolbarName)}}),_extends({},buttonProps,{modalStyles:getModalStyles({customStyles:isMobile?{}:DesktopFlyOutModalStyles,fullScreen:!1,isMobile:isMobile}),toolbars:[TOOLBARS.INSERT_PLUGIN,TOOLBARS.MOBILE]})]},EMOJI_TYPE="wix-draft-plugin-emoji",emojiComponent=function(props){return React.createElement("span",{style:{fontFamily:"cursive"}},props.children)},emojiEditorStrategy=function(contentBlock,callback,contentState){contentBlock.findEntityRanges((function(character){var entityKey=character.getEntity();return null!==entityKey&&"EMOJI_TYPE"===contentState.getEntity(entityKey).getType()}),callback)};function _toPropertyKey(arg){var key=function(input,hint){if("object"!=typeof input||null===input)return input;var prim=input[Symbol.toPrimitive];if(void 0!==prim){var res=prim.call(input,hint||"default");if("object"!=typeof res)return res;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===hint?String:Number)(input)}(arg,"string");return"symbol"==typeof key?key:String(key)}var createEmojiPlugin=function(config){var type=EMOJI_TYPE,helpers=config.helpers,theme=config.theme,t=config.t,isMobile=config.isMobile,_config$type=config[type],settings=void 0===_config$type?{}:_config$type,getEditorState=config.getEditorState,setEditorState=config.setEditorState,rest=_objectWithoutPropertiesLoose(config,["helpers","theme","t","isMobile",type,"getEditorState","setEditorState"].map(_toPropertyKey)),toolbar=function(_ref){var settings=_ref.settings,t=_ref.t,isMobile=_ref.isMobile,getEditorState=_ref.getEditorState,setEditorState=_ref.setEditorState;return{InsertButtons:isMobile?[]:createInsertButtons({settings:settings,t:t,isMobile:isMobile,getEditorState:getEditorState,setEditorState:setEditorState}),name:"emoji"}}({helpers:helpers,settings:settings,isMobile:isMobile,getEditorState:getEditorState,setEditorState:setEditorState,theme:theme,t:t});return createBasePlugin(_extends({settings:settings,theme:theme,type:type,toolbar:toolbar,helpers:helpers,t:t,defaultPluginData:DEFAULT_CONFIG,isMobile:isMobile,setEditorState:setEditorState,getEditorState:getEditorState},rest),{decorators:[{strategy:emojiEditorStrategy,component:emojiComponent}]})};createEmojiPlugin.functionName=EMOJI_TYPE;var pluginEmoji=function(config){return{config:_extends({},DEFAULT_CONFIG,config),type:EMOJI_TYPE,createPlugin:createEmojiPlugin,ModalsMap:{}}};export{EMOJI_TYPE,createEmojiPlugin,pluginEmoji}; | ||
//# sourceMappingURL=module.js.map |
@@ -1,4 +0,4 @@ | ||
import TextSelectionToolbar from './TextSelectionToolbar'; | ||
import TwitterButton from './TwitterButton'; | ||
export { TextSelectionToolbar, TwitterButton }; | ||
export { createEmojiPlugin } from './createEmojiPlugin'; | ||
export { EMOJI_TYPE } from './types'; | ||
export { pluginEmoji } from './editor'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -1,1 +0,1 @@ | ||
{"name":"richlagetest","version":"0.0.0-d8eb1a75b0b10d03108bf90306eb8d815d617f93"} | ||
{"name":"richlagetest","version":"0.0.0-e4457a08cf399d1790be0290c3f4231d4fec68e4"} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
250121
64
461
4
3
1