CoreFiles by mySites.guru
joomla-hidden-mail-es5.min.js1 lines, 2,567 bytes, from Joomla_4.0.0-alpha3-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha2
md5
0a3c4a275cccc8158590b27fba021e87
sha1
aa537b1556fd8d6c683c374868d33a609eee2041
sha256
0a32fb95bb5622d1eddf596b694a0754bf3974cfe5c09e1ae6f47a8539338827
!function(){return function t(e,r,n){function i(u,a){if(!r[u]){if(!e[u]){var c="function"==typeof require&&require;if(!a&&c)return c(u,!0);if(o)return o(u,!0);var s=new Error("Cannot find module '"+u+"'");throw s.code="MODULE_NOT_FOUND",s}var f=r[u]={exports:{}};e[u][0].call(f.exports,function(t){return i(e[u][1][t]||t)},f,f.exports,t,e,r,n)}return r[u].exports}for(var o="function"==typeof require&&require,u=0;u<n.length;u++)i(n[u]);return i}}()({1:[function(t,e,r){"use strict";var n=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}();customElements.define("joomla-hidden-mail",function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,HTMLElement),n(e,[{key:"connectedCallback",value:function(){var t=void 0,e=this.getAttribute("base")+"/";if("1"===this.getAttribute("is-link")){(t=document.createElement("a")).setAttribute("href","mailto:"+this.b64DecodeUnicode(this.getAttribute("first"))+"@"+this.b64DecodeUnicode(this.getAttribute("last")));for(var r=0,n=this.attributes.length;r<n;++r){var i=this.attributes.item(r).nodeName;if(i){if(["is-link","is-email","first","last","text"].indexOf(i)>-1)continue;var o=this.attributes.item(r).nodeValue;t.setAttribute(i,o)}}}else t=document.createElement("span");if(this.getAttribute("text")){var u=this.b64DecodeUnicode(this.getAttribute("text"));u=u.replace('src="images/','src="'+e+"images/").replace('src="media/','src="'+e+"media/"),t.innerHTML=u}else t.innerText=window.atob(this.getAttribute("first"))+"@"+window.atob(this.getAttribute("last"));this.innerText="",this.appendChild(t)}},{key:"b64DecodeUnicode",value:function(t){return decodeURIComponent(Array.prototype.map.call(atob(t),function(t){return"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)}).join(""))}}]),e}())},{}]},{},[1]);

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