[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/media/system/js/ -> joomla-hidden-mail-es5.min.js (source)

   1  !function(){"use strict";function t(e){return(t=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(e)}function e(t,n){return(e=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,n)}function n(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function r(t,i,o){return(r=n()?Reflect.construct:function(t,n,r){var i=[null];i.push.apply(i,n);var o=new(Function.bind.apply(t,i));return r&&e(o,r.prototype),o}).apply(null,arguments)}function i(n){var o="function"==typeof Map?new Map:void 0;return(i=function(n){if(null===n||(i=n,-1===Function.toString.call(i).indexOf("[native code]")))return n;var i;if("function"!=typeof n)throw new TypeError("Super expression must either be null or a function");if(void 0!==o){if(o.has(n))return o.get(n);o.set(n,c)}function c(){return r(n,arguments,t(this).constructor)}return c.prototype=Object.create(n.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),e(c,n)})(n)}window.customElements.define("joomla-hidden-mail",function(t){var n,r;function i(){var e;return(e=t.call(this)||this).newElement="",e.base="",e}r=t,(n=i).prototype=Object.create(r.prototype),n.prototype.constructor=n,e(n,r);var o=i.prototype;return o.disconnectedCallback=function(){this.innerHTML=""},o.connectedCallback=function(){var t=this;if(this.base=this.getAttribute("base")+"/","1"===this.getAttribute("is-link")?(this.newElement=document.createElement("a"),this.newElement.setAttribute("href","mailto:"+this.constructor.b64DecodeUnicode(this.getAttribute("first"))+"@"+this.constructor.b64DecodeUnicode(this.getAttribute("last"))),[].slice.call(this.attributes).forEach((function(e,n){var r=t.attributes.item(n).nodeName;if(r&&-1===["is-link","is-email","first","last","text"].indexOf(r)){var i=t.attributes.item(n).nodeValue;t.newElement.setAttribute(r,i)}}))):this.newElement=document.createElement("span"),this.getAttribute("text")){var e=this.constructor.b64DecodeUnicode(this.getAttribute("text"));e=e.replace('src="images/','src="'+this.base+"images/").replace('src="media/','src="'+this.base+"media/"),this.newElement.innerHTML=Joomla.sanitizeHtml(e)}else this.newElement.innerText=window.atob(this.getAttribute("first"))+"@"+window.atob(this.getAttribute("last"));this.innerText="",this.appendChild(this.newElement)},i.b64DecodeUnicode=function(t){return decodeURIComponent(Array.prototype.map.call(atob(t),(function(t){return"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)})).join(""))},i}(i(HTMLElement)))}();


Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer