"use strict";functione(e,r){returni(e)||o(e,r)||n(e,r)||t()}functiont(){thrownewTypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}functionn(e,t){if(e){if("string"==typeofe)returnr(e,t);varn=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void0}}functionr(e,t){(null==t||t>e.length)&&(t=e.length);for(varn=0,r=newArray(t);n<t;n++)r[n]=e[n];returnr}functiono(e,t){if("undefined"!=typeofSymbol&&Symbol.iteratorinObject(e)){varn=[],r=!0,o=!1,i=void0;try{for(varc,u=e[Symbol.iterator]();!(r=(c=u.next()).done)&&(n.push(c.value),!t||n.length!==t);r=!0);}catch(a){o=!0,i=a}finally{try{r||null==u.return||u.return()}finally{if(o)throwi}}returnn}}functioni(e){if(Array.isArray(e))returne}functionc(e,t,n,r,o,i,c){try{varu=e[i](c),a=u.value}catch(s){returnvoidn(s)}u.done?t(a):Promise.resolve(a).then(r,o)}functionu(e){returnfunction(){vart=this,n=arguments;returnnewPromise(function(r,o){vari=e.apply(t,n);functionu(e){c(i,r,o,u,a,"next",e)}functiona(e){c(i,r,o,u,a,"throw",e)}u(void0)})}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void0;vara,s="1.0.0",l={mobileIcon:!1},p=function(e){l.mobileIcon=e;try{a()}catch(t){}a=goosemodScope.patcher.channelTextAreaButtons.patch("Send",l.mobileIcon?"https://i.imgur.com/n1TQIsQ.png":"https://i.imgur.com/qzomTIw.png",function(e){if(""==goosemodScope.reactUtils.getReactInstance(document.querySelector(".channelTextArea-rNsIhG")).memoizedProps.children[4].props.textValue)returngoosemodScope.webpackModules.findByProps("ComponentDispatch").ComponentDispatch.dispatch("SHAKE_APP",{duration:200,intensity:2});vart=document.querySelector(".textArea-12jD-V"),n=null==t?void0:t.children[0],r=newKeyboardEvent("keydown",{key:"Enter",code:"Enter",which:13,keyCode:13,bubbles:!0});Object.defineProperties(r,{keyCode:{value:13},which:{value:13}}),n.dispatchEvent(r)})},d={goosemodHandlers:{onImport:function(){vare=u(regeneratorRuntime.mark(functione(){returnregeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case0:p(l.mobileIcon);case1:case"end":returne.stop()}},e)}));returnfunction(){returne.apply(this,arguments)}}(),onLoadingFinished:function(){vare=u(regeneratorRuntime.mark(functione(){returnregeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case0:goosemodScope.settings.createItem("Send Button",["(v".concat(s,")"),{type:"toggle",text:"Mobile Icon",subtext:"Replaces the send button's icon with an icon similair to Discord's mobile app's send button.",onToggle:function(e){returnp(e)},isToggled:function(){returnl.mobileIcon}}]);case1:case"end":returne.stop()}},e)}));returnfunction(){returne.apply(this,arguments)}}(),onRemove:function(){vare=u(regeneratorRuntime.mark(functione(){returnregeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case0:goosemodScope.settings.removeItem("Send Button"),a();case2:case"end":returne.stop()}},e)}));returnfunction(){returne.apply(this,arguments)}}(),getSettings:function(){return[l]},loadSettings:function(t){varn=e(t,1)[0];p((l=n).mobileIcon)}}};exports.default=d;