- md5
- e03f0bbb9867e0f17a35deaa42e998b5
- sha1
- d1f2f0f8c7938e25806513c5a5e518add0508c19
- sha256
- d62a958c41c45d22d2e8b02a41db528962f2af9b42f947e04acc372f4e0018f5
(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
'use strict';var _typeof='function'==typeof Symbol&&'symbol'==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&'function'==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?'symbol':typeof a},_createClass=function(){function a(a,b){for(var c,d=0;d<b.length;d++)c=b[d],c.enumerable=c.enumerable||!1,c.configurable=!0,'value'in c&&(c.writable=!0),Object.defineProperty(a,c.key,c)}return function(b,c,d){return c&&a(b.prototype,c),d&&a(b,d),b}}();function _classCallCheck(a,b){if(!(a instanceof b))throw new TypeError('Cannot call a class as a function')}function _possibleConstructorReturn(a,b){if(!a)throw new ReferenceError('this hasn\'t been initialised - super() hasn\'t been called');return b&&('object'==typeof b||'function'==typeof b)?b:a}function _inherits(a,b){if('function'!=typeof b&&null!==b)throw new TypeError('Super expression must either be null or a function, not '+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}(function(a,b){var c=function(a){function c(){_classCallCheck(this,c);var a=_possibleConstructorReturn(this,(c.__proto__||Object.getPrototypeOf(c)).call(this));if(!b)throw new Error('Joomla API is not properly initiated');if(!a.getAttribute('uri'))throw new Error('No valid url for validation');return a}return _inherits(c,a),_createClass(c,[{key:'connectedCallback',value:function connectedCallback(){var a=this,b=document.getElementById('sendtestmail');b&&b.addEventListener('click',function(){a.sendTestMail(a)})}},{key:'sendTestMail',value:function sendTestMail(){var a={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};b.removeMessages(),b.request({url:this.getAttribute('uri'),method:'POST',data:JSON.stringify(a),perform:!0,headers:{"Content-Type":'application/json'},onSuccess:function onSuccess(a){a=JSON.parse(a),'object'===_typeof(a.messages)&&null!==a.messages&&b.renderMessages(a.messages)},onError:function onError(a){b.renderMessages(b.ajaxErrorsMessages(a))}})}}]),c}(HTMLElement);a.define('joomla-field-send-test-mail',c)})(customElements,Joomla);
},{}]},{},[1]);
No other release has this exact content. See every version of this file.