/* Akeeba Frontend Framework (FEF) @package fef @copyright (c) 2017-2022 Nicholas K. Dionysopoulos / Akeeba Ltd @license GNU General Public License version 3, or later jsModal - A pure JavaScript modal dialog engine v1.0d http://jsmodal.com/ Author: Henry Rune Tang Kai (c) Copyright 2013 Henry Tang Kai. License: http://www.opensource.org/licenses/mit-license.php Date: 2013-7-11 Modified by Akeeba Ltd: - [Oct 2016] Prefix "akeeba-modal-" instead of generic "modal-" to avoid conflicts with 3PD software e.g. Bootstrap. - [Oct 2016] Remove support for AJAX content. We use our own AJAX handlers which work around 3PD plugins corrupting content. ? [Oct 2016] Added method show() which just calls open() for backwards compatibility reasons. ? [Oct 2016] Added parameter "inherit" where you can give a query selector for an element whose content will be inherited by the modal. ? [Oct 2016] open() returns the Modal object so that we can interact with it through external code. ? [Nov 2016] Added parameter "iframe" where you can give a URL to load inside an IFRAME. */ window.akeeba=window.akeeba||{}; "undefined"==typeof akeeba.Modal&&(akeeba.Modal=function(){var e={},b={},f=document.createElement("div"),d=document.createElement("div"),k=document.createElement("div"),h=document.createElement("div"),m=document.createElement("div"),n=null,l,v;e.show=function(a){try{console.log("Using akeeba.Modal.show() is deprecated. Use .open() instead.")}catch(c){}return e.open(a)};e.open=function(a){b.width=a.width||"auto";b.height=a.height||"auto";b.lock=a.lock||!1;b.hideClose=a.hideClose||!1;b.draggable=a.draggable|| !1;b.closeAfter=a.closeAfter||0;b.closeCallback=a.closeCallback||!1;b.openCallback=a.openCallback||!1;b.hideOverlay=a.hideOverlay||!1;l=function(){e.center({})};h.innerHTML="";var c=null;if(a.content)h.innerHTML=a.content;else if(a.inherit){if(c=a.inherit,"string"==typeof a.inherit&&(c=window.document.querySelector(a.inherit)),null!=c&&c.innerHTML)for(n=c;0