1/** 2* Name: Dl_Editor 3* Desc: Droit Addons editor elementor popup 4* Params: no params 5* Return: @void 6* version: 1.0.0 7* Package: @droitedd 8* Author: DroitThemes 9* Developer: Hazi 10*/ 11"use strict";class Dl_Editor{loading(a,b){let c=b.jQuery(".dlpopup-main");if(c.length){c.attr("style","display:block;");let d=b.jQuery("div.dlopen-editor");d.length||c.addClass("dialog-type-lightbox").addClass("dlopen-editor");let e=c.find("iframe");setTimeout(function(){let b=Dl_Editor.instance().getParams("elementor-preview");jQuery.ajax({url:dlproeditor.ajax_url+"?action=dtaddons_editor",type:"post",data:{template_id:a.data("templateid"),widgets_id:a.data("widgetsid"),repeater_id:a.data("repeaterid"),parent_id:+b,post_id:+a.data("postid")},success:function(b){0===b.data?(c.attr("style","display:none;"),c.removeClass("dialog-type-lightbox").removeClass("dlopen-editor"),e.removeAttr("src"),c.attr("data-render-status","false")):(e.attr("src",dlproeditor.posturl+"?post="+b.data+"&action=elementor"),a.attr("data-postid",b.data))},error:function(){console.log("Sorry!! DL Editor couldn't open right now")}})},100);let f=c.find("i.eicon-close");f.length&&f.click(function(){c.attr("style","display:none;"),c.removeClass("dialog-type-lightbox").removeClass("dlopen-editor"),e.removeAttr("src"),c.attr("data-render-status","true")})}}getParams(a){var b=null,c=[];return location.search.substr(1).split("&").forEach(function(d){c=d.split("="),c[0]===a&&(b=decodeURIComponent(c[1]))}),b}setCookie(a,b,c){var e=new Date;e.setTime(e.getTime()+1e3*(60*(60*(24*c))));var d="expires="+e.toUTCString();document.cookie=a+"="+b+";"+d+";path=/"}getCookie(a){for(var b,d=a+"=",e=document.cookie.split(";"),f=0;f<e.length;f++){for(b=e[f];" "==b.charAt(0);)b=b.substring(1);if(0===b.indexOf(d))return b.substring(d.length,b.length)}return""}static instance(){return new Dl_Editor}}!function(a,b){if(void 0===window.parent)return;let c=window.parent,d="";if(window.elementorFrontend){var e=function(){b.hooks.addAction("frontend/element_ready/global",function(b){var e=b.find(".dl-editor-icon");e.length&&e.on("click",function(b){b.preventDefault();let e=c.jQuery(".dlpopup-main");e.length&&e.attr("data-render-status","false");let f=a(this),g=f.data("templateid"),h=c.jQuery("div.dlopen-editor");g==d&&h.length||(new Dl_Editor().loading(f,c),d=g)})})};a(window).on("elementor/frontend/init",e)}}(jQuery,window.elementorFrontend); 12 13 14 15 16 17
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.