- md5
- a2ba11c1a8daa4299900594fdeb536a7
- sha1
- 271c9180fc67051baf1e1f5f970848052f1ccfec
- sha256
- 9de4c9f118c312927167e28ba8c3f908ff82d2ed1587324eac1f5e26a2db659c
!function(){return function e(t,r,o){function n(s,u){if(!r[s]){if(!t[s]){var a="function"==typeof require&&require;if(!u&&a)return a(s,!0);if(i)return i(s,!0);var l=new Error("Cannot find module '"+s+"'");throw l.code="MODULE_NOT_FOUND",l}var f=r[s]={exports:{}};t[s][0].call(f.exports,function(e){return n(t[s][1][e]||e)},f,f.exports,e,t,r,o)}return r[s].exports}for(var i="function"==typeof require&&require,s=0;s<o.length;s++)n(o[s]);return n}}()({1:[function(e,t,r){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n=function(){function e(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,r,o){return r&&e(t.prototype,r),o&&e(t,o),t}}();!function(e,t){var r=function(e){function r(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(r.__proto__||Object.getPrototypeOf(r)).call(this));if(!t)throw new Error("Joomla API is not properly initiated");if(!e.getAttribute("uri"))throw new Error("No valid url for validation");return e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,HTMLElement),n(r,[{key:"connectedCallback",value:function(){var e=this,t=document.getElementById("sendtestmail");t&&t.addEventListener("click",function(){e.sendTestMail(e)})}},{key:"sendTestMail",value:function(){var e={smtpauth:this.querySelector('[name="jform[smtpauth]"]').value,smtpuser:this.querySelector('[name="jform[smtpuser]"]').value,smtppass:this.querySelector('[name="jform[smtppass]"]').value,smtphost:this.querySelector('[name="jform[smtphost]"]').value,smtpsecure:this.querySelector('[name="jform[smtpsecure]"]').value,smtpport:this.querySelector('[name="jform[smtpport]"]').value,mailfrom:this.querySelector('[name="jform[mailfrom]"]').value,fromname:this.querySelector('[name="jform[fromname]"]').value,mailer:this.querySelector('[name="jform[mailer]"]').value,mailonline:this.querySelector('[name="jform[mailonline]"]').value};t.removeMessages(),t.request({url:this.getAttribute("uri"),method:"POST",data:JSON.stringify(e),perform:!0,headers:{"Content-Type":"application/json"},onSuccess:function(e,r){e=JSON.parse(e),"object"===o(e.messages)&&null!==e.messages&&t.renderMessages(e.messages)},onError:function(e){t.renderMessages(t.ajaxErrorsMessages(e))}})}}]),r}();e.define("joomla-field-send-test-mail",r)}(customElements,Joomla)},{}]},{},[1]);
No other release has this exact content. See every version of this file.