CoreFiles by mySites.guru
joomla-hidden-mail-es5.min.js4 lines, 2,756 bytes, from Joomla_4.0.0-alpha5-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha3
md5
be31c0e22f7a14837479292c127082a3
sha1
6af3a920b7cc3f21501d0309863735dc9a7aa5b8
sha256
ae35a7ae5a5d79f21199ef981f7da9ba141c366b6cd3b696205458ccc39bb581
(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 _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)}customElements.define('joomla-hidden-mail',function(a){function b(){return _classCallCheck(this,b),_possibleConstructorReturn(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return _inherits(b,a),_createClass(b,[{key:'connectedCallback',value:function connectedCallback(){var a=void 0,b=this.getAttribute('base')+'/';if('1'===this.getAttribute('is-link')){a=document.createElement('a'),a.setAttribute('href','mailto:'+this.b64DecodeUnicode(this.getAttribute('first'))+'@'+this.b64DecodeUnicode(this.getAttribute('last')));for(var c,d=0,e=this.attributes.length;d<e;++d)if(c=this.attributes.item(d).nodeName,c){if(-1<['is-link','is-email','first','last','text'].indexOf(c))continue;var f=this.attributes.item(d).nodeValue;a.setAttribute(c,f)}}else a=document.createElement('span');if(this.getAttribute('text')){var g=this.b64DecodeUnicode(this.getAttribute('text'));g=g.replace('src="images/','src="'+b+'images/').replace('src="media/','src="'+b+'media/'),a.innerHTML=g}else a.innerText=window.atob(this.getAttribute('first'))+'@'+window.atob(this.getAttribute('last'));this.innerText='',this.appendChild(a)}},{key:'b64DecodeUnicode',value:function b64DecodeUnicode(a){return decodeURIComponent(Array.prototype.map.call(atob(a),function(a){return'%'+('00'+a.charCodeAt(0).toString(16)).slice(-2)}).join(''))}}]),b}(HTMLElement));

},{}]},{},[1]);

No other release has this exact content. See every version of this file.