/* * Support contact : soporte@corecreativo.es. * * NOTICE OF LICENSE * * This source file is the property of Corecreativo * that is bundled with this package. * It is also available through the world-wide-web at this URL: * https://www.corecreativo.es/ * * @category front-end * @author Corecreativo (http://www.corecreativo.es/) * @copyright 2016-2022 Corecreativo and contributors */ (function(b,t){b.fn.popup=function(h){var p=this.selector,l=new b.Popup(h),m=h&&h.content?h.content:b(this).attr("href");b(document).on("click.popup",p,function(b){b.preventDefault();l.open(m,void 0,this)});return this.each(function(){b(this).data("popup",l)})};b.Popup=function(h){function p(a){var d;b.each(a,function(a,c){if(c)return d=c,!1});return d}function l(a){return"function"===typeof a?"function":a instanceof b?"jQuery":"#"===a.substr(0,1)||"."===a.substr(0,1)?"inline":-1!==b.inArray(a.substr(a.length- 3),u)?"image":"http"===a.substr(0,4)?"external":"ajax"}function m(c){r&&r.fadeOut("fast",function(){b(this).remove()});var d=!0;void 0===f&&(d=!1,f=b('
'),n=b(a.o.markup).appendTo(f),b(a.o.closeContent).one("click",function(){a.close()}).appendTo(f),b(t).resize(a.center),f.appendTo(b("body")).css("opacity",0));var e=b("."+a.o.contentClass,f);a.width?e.css("width",a.width,10):e.css("width","");a.height?e.css("height",a.height,10):e.css("height","");n.hasClass(a.o.contentClass)? n.html(c):n.find("."+a.o.contentClass).html(c);d?a.o.replaced.call(a,f,g):a.o.show.call(a,f,g)}function q(a,d){var b=(new RegExp("[?&]"+a+"=([^&]*)")).exec(d);return b&&decodeURIComponent(b[1].replace(/\+/g," "))}var a=this,u=["png","jpg","gif"],k,s,g,f,r,n;a.ele=void 0;a.o=b.extend(!0,{},{backClass:"popup_back",backOpacity:.7,containerClass:"popup_cont",closeContent:'',markup:'