"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={mobileIcon:!1},l=function(e){s.mobileIcon=e;try{a()}catch(t){}a=goosemodScope.patcher.channelTextAreaButtons.patch("Send",s.mobileIcon?"https://i.imgur.com/n1TQIsQ.png":"https://i.imgur.com/qzomTIw.png",function(){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});vare=document.querySelector(".textArea-12jD-V"),t=null==e?void0:e.children[0],n=newKeyboardEvent("keydown",{key:"Enter",code:"Enter",which:13,keyCode:13,bubbles:!0});Object.defineProperties(n,{keyCode:{value:13},which:{value:13}}),t.dispatchEvent(n)})},p={goosemodHandlers:{onImport:function(){vare=u(regeneratorRuntime.mark(functione(){returnregeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case0:l(s.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(version,")"),{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){returnl(e)},isToggled:function(){returns.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[s]},loadSettings:function(t){varn=e(t,1)[0];l((s=n).mobileIcon)}}};exports.default=p;