Version Description
- June 22 2019 =
- Improved compatibility with custom 3-rd party theme shortcodes.
Download this release
Release Info
Developer | LiveComposer |
Plugin | Page Builder: Live Composer – drag and drop website builder (visual front end site editor) |
Version | 1.4.7 |
Comparing to | |
See all releases |
Code changes from version 1.4.6 to 1.4.7
- ds-live-composer.php +2 -2
- includes/shortcodes.php +8 -0
- js/builder.all.min.js +1 -1
- readme.txt +4 -1
ds-live-composer.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin URI: https://www.livecomposerplugin.com
|
5 |
* Description: Page builder for WordPress with drag and drop header/footer editing.
|
6 |
* Author: Live Composer Team
|
7 |
-
* Version: 1.4.
|
8 |
* Author URI: https://livecomposerplugin.com
|
9 |
* License: GPL3
|
10 |
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
@@ -41,7 +41,7 @@ if ( ! defined( 'DS_LIVE_COMPOSER_VER' ) && version_compare( PHP_VERSION, '5.3.0
|
|
41 |
* Constants
|
42 |
*/
|
43 |
|
44 |
-
define( 'DS_LIVE_COMPOSER_VER', '1.4.
|
45 |
|
46 |
define( 'DS_LIVE_COMPOSER_SHORTNAME', __( 'Live Composer', 'live-composer-page-builder' ) );
|
47 |
define( 'DS_LIVE_COMPOSER_BASENAME', plugin_basename( __FILE__ ) );
|
4 |
* Plugin URI: https://www.livecomposerplugin.com
|
5 |
* Description: Page builder for WordPress with drag and drop header/footer editing.
|
6 |
* Author: Live Composer Team
|
7 |
+
* Version: 1.4.7
|
8 |
* Author URI: https://livecomposerplugin.com
|
9 |
* License: GPL3
|
10 |
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
41 |
* Constants
|
42 |
*/
|
43 |
|
44 |
+
define( 'DS_LIVE_COMPOSER_VER', '1.4.7' );
|
45 |
|
46 |
define( 'DS_LIVE_COMPOSER_SHORTNAME', __( 'Live Composer', 'live-composer-page-builder' ) );
|
47 |
define( 'DS_LIVE_COMPOSER_BASENAME', plugin_basename( __FILE__ ) );
|
includes/shortcodes.php
CHANGED
@@ -201,6 +201,7 @@ function dslc_sc_page_title() {
|
|
201 |
return $output;
|
202 |
}
|
203 |
add_shortcode( 'dslc_page_title', 'dslc_sc_page_title' );
|
|
|
204 |
|
205 |
|
206 |
/**
|
@@ -211,6 +212,7 @@ add_shortcode( 'dslc_page_title', 'dslc_sc_page_title' );
|
|
211 |
* http://codex.wordpress.org/Function_Reference/get_option
|
212 |
*/
|
213 |
add_shortcode( 'dslc_bloghome', 'dslc_bloghome_shortcode' );
|
|
|
214 |
function dslc_bloghome_shortcode() {
|
215 |
// Code
|
216 |
$output = home_url();
|
@@ -237,6 +239,7 @@ function dslc_sc_authorbio() {
|
|
237 |
return $output;
|
238 |
}
|
239 |
add_shortcode( 'dslc_authorbio', 'dslc_sc_authorbio' );
|
|
|
240 |
|
241 |
/**
|
242 |
* Add Shortcode:
|
@@ -245,6 +248,7 @@ add_shortcode( 'dslc_authorbio', 'dslc_sc_authorbio' );
|
|
245 |
* Outputs comments count
|
246 |
*/
|
247 |
add_shortcode( 'dslc_commentscount', 'dslc_sc_commentscount' );
|
|
|
248 |
function dslc_sc_commentscount() {
|
249 |
$num_comments = get_comments_number(); // get_comments_number returns only a numeric value
|
250 |
|
@@ -268,6 +272,7 @@ function dslc_sc_commentscount() {
|
|
268 |
* Outputs archive page headings.
|
269 |
*/
|
270 |
add_shortcode( 'dslc_archive_heading', 'dslc_archive_heading_shortcode' );
|
|
|
271 |
function dslc_archive_heading_shortcode() {
|
272 |
|
273 |
$output = '';
|
@@ -357,6 +362,7 @@ function dslc_archive_heading_shortcode() {
|
|
357 |
|
358 |
// [nextpost_url]
|
359 |
add_shortcode( 'dslc_nextpost_url', 'dslc_nextpost_url_shortcode' );
|
|
|
360 |
function dslc_nextpost_url_shortcode( $atts ) {
|
361 |
|
362 |
// Attributes
|
@@ -378,6 +384,7 @@ function dslc_nextpost_url_shortcode( $atts ) {
|
|
378 |
|
379 |
// [prevpost_url]
|
380 |
add_shortcode( 'dslc_prevpost_url', 'dslc_prevpost_url_shortcode' );
|
|
|
381 |
function dslc_prevpost_url_shortcode( $atts ) {
|
382 |
|
383 |
// Attributes
|
@@ -404,6 +411,7 @@ function dslc_prevpost_url_shortcode( $atts ) {
|
|
404 |
* Outputs single post pagination
|
405 |
*/
|
406 |
add_shortcode( 'dslc_postpagination', 'dslc_postpagination_shortcode' );
|
|
|
407 |
function dslc_postpagination_shortcode() {
|
408 |
$output = wp_link_pages( array(
|
409 |
'before' => '<div class="page-links"><span class="page-links__title">' . __( 'Pages:', 'live-composer-page-builder' ) . '</span><span class="page-numbers">',
|
201 |
return $output;
|
202 |
}
|
203 |
add_shortcode( 'dslc_page_title', 'dslc_sc_page_title' );
|
204 |
+
add_shortcode( 'lbmn_pagetitle', 'dslc_sc_page_title' );
|
205 |
|
206 |
|
207 |
/**
|
212 |
* http://codex.wordpress.org/Function_Reference/get_option
|
213 |
*/
|
214 |
add_shortcode( 'dslc_bloghome', 'dslc_bloghome_shortcode' );
|
215 |
+
add_shortcode( 'lbmn_bloghome', 'dslc_bloghome_shortcode' );
|
216 |
function dslc_bloghome_shortcode() {
|
217 |
// Code
|
218 |
$output = home_url();
|
239 |
return $output;
|
240 |
}
|
241 |
add_shortcode( 'dslc_authorbio', 'dslc_sc_authorbio' );
|
242 |
+
add_shortcode( 'lbmn_authorbio', 'dslc_sc_authorbio' );
|
243 |
|
244 |
/**
|
245 |
* Add Shortcode:
|
248 |
* Outputs comments count
|
249 |
*/
|
250 |
add_shortcode( 'dslc_commentscount', 'dslc_sc_commentscount' );
|
251 |
+
add_shortcode( 'lbmn_commentscount', 'dslc_sc_commentscount' );
|
252 |
function dslc_sc_commentscount() {
|
253 |
$num_comments = get_comments_number(); // get_comments_number returns only a numeric value
|
254 |
|
272 |
* Outputs archive page headings.
|
273 |
*/
|
274 |
add_shortcode( 'dslc_archive_heading', 'dslc_archive_heading_shortcode' );
|
275 |
+
add_shortcode( 'lbmn_archive_heading', 'dslc_archive_heading_shortcode' );
|
276 |
function dslc_archive_heading_shortcode() {
|
277 |
|
278 |
$output = '';
|
362 |
|
363 |
// [nextpost_url]
|
364 |
add_shortcode( 'dslc_nextpost_url', 'dslc_nextpost_url_shortcode' );
|
365 |
+
add_shortcode( 'lbmn_nextpost_url', 'dslc_nextpost_url_shortcode' );
|
366 |
function dslc_nextpost_url_shortcode( $atts ) {
|
367 |
|
368 |
// Attributes
|
384 |
|
385 |
// [prevpost_url]
|
386 |
add_shortcode( 'dslc_prevpost_url', 'dslc_prevpost_url_shortcode' );
|
387 |
+
add_shortcode( 'lbmn_prevpost_url', 'dslc_prevpost_url_shortcode' );
|
388 |
function dslc_prevpost_url_shortcode( $atts ) {
|
389 |
|
390 |
// Attributes
|
411 |
* Outputs single post pagination
|
412 |
*/
|
413 |
add_shortcode( 'dslc_postpagination', 'dslc_postpagination_shortcode' );
|
414 |
+
add_shortcode( 'lbmn_postpagination', 'dslc_postpagination_shortcode' );
|
415 |
function dslc_postpagination_shortcode() {
|
416 |
$output = wp_link_pages( array(
|
417 |
'before' => '<div class="page-links"><span class="page-links__title">' . __( 'Pages:', 'live-composer-page-builder' ) . '</span><span class="page-numbers">',
|
js/builder.all.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
"use strict";function dslc_ui_animations(){if(dslcDebug)console.log("dslc_ui_animations");jQuery(document).on("mouseenter",".dslca-modules-area-manage",function(){jQuery(this).closest(".dslc-modules-area").addClass("dslca-options-hovered")}).on("mouseleave",".dslca-modules-area-manage",function(){jQuery(this).closest(".dslc-modules-area").removeClass("dslca-options-hovered")});jQuery(document).on("mouseenter",".dslca-drag-not-in-progress .dslc-module-front",function(e){if(!jQuery("body").hasClass("dslca-composer-hidden")){if(jQuery(this).height()<190)jQuery(".dslca-module-manage",this).addClass("dslca-horizontal");else jQuery(".dslca-module-manage",this).removeClass("dslca-horizontal")}}).on("mouseleave",".dslca-drag-not-in-progress .dslc-module-front",function(e){if(!jQuery("body").hasClass("dslca-composer-hidden")){}});jQuery(document).on("mouseenter",".dslca-drag-not-in-progress .dslc-modules-area",function(e){var o=jQuery(this);if(!jQuery("body").hasClass("dslca-composer-hidden")){if(jQuery(this).height()<130)jQuery(".dslca-modules-area-manage",this).addClass("dslca-horizontal");else jQuery(".dslca-modules-area-manage",this).removeClass("dslca-horizontal")}}).on("mouseleave",".dslca-drag-not-in-progress .dslc-modules-area",function(e){var o=jQuery(this);if(!jQuery("body").hasClass("dslca-composer-hidden")){}})}jQuery(document).ready(function(){dslc_ui_animations()});"use strict";function dslc_save_composer(){if(dslcDebug)console.log("dslc_save_composer");dslc_generate_code();dslca_gen_content_for_search();var e=jQuery("#dslca-code").val(),o=jQuery("#dslca-content-for-search").val(),s=jQuery(".dslca-container").data("post-id");jQuery("body").addClass("dslca-saving-in-progress");jQuery(".dslca-save-composer .dslca-icon").removeClass("dslc-icon-ok").addClass("dslc-icon-spin dslc-icon-spinner");jQuery.ajax({method:"POST",type:"POST",url:DSLCAjax.ajaxurl,data:{action:"dslc-ajax-save-composer",dslc:"active",dslc_post_id:s,dslc_code:e,dslc_content_for_search:o},timeout:3e4}).done(function(e){if(e.status=="success"){jQuery(".dslca-save-composer").fadeOut(250);jQuery(".dslca-save-draft-composer").fadeOut(250);jQuery("body").append('<iframe class="lbmn-cache-iframe" id="lbmn-cache-iframe-'+s+'" src="'+DSLCSiteData.siteurl+"/?p="+s+'" ></iframe>');jQuery(".lbmn-cache-iframe").each(function(e,o){jQuery(o).load(function(){jQuery(o).remove()})})}else{alert("Something went wrong, please try to save again. Are you sure to make any changes? Error Code: "+e.status)}}).fail(function(e){if(e.statusText=="timeout"){alert("The request timed out after 30 seconds. Server do not respond in time. Please try again.")}else{alert("Something went wrong. Please try again. Error Code: "+e.statusText)}}).always(function(e){jQuery(".dslca-save-composer .dslca-icon").removeClass("dslc-icon-spin dslc-icon-spinner").addClass("dslc-icon-ok");jQuery("body").removeClass("dslca-saving-in-progress")})}function dslc_save_draft_composer(){if(dslcDebug)console.log("dslc_save_draft_composer");var e=jQuery("#dslca-code").val(),o=jQuery(".dslca-container").data("post-id");jQuery("body").addClass("dslca-saving-in-progress");jQuery(".dslca-save-draft-composer .dslca-icon").removeClass("dslc-icon-ok").addClass("dslc-icon-spin dslc-icon-spinner");jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-save-draft-composer",dslc:"active",dslc_post_id:o,dslc_code:e},function(e){jQuery(".dslca-save-draft-composer .dslca-icon").removeClass("dslc-icon-spin dslc-icon-spinner").addClass("dslc-icon-save");if(e.status=="success"){jQuery(".dslca-save-draft-composer").fadeOut(250)}else{alert("Something went wrong, please try to save again.")}jQuery("body").removeClass("dslca-saving-in-progress")})}function dslc_generate_code(){if(dslcDebug)console.log("dslc_generate_code");var e="",o,s="",d="",l=12,i=12,t=0,a=0,r,c,n,u,m,p="",f;jQuery("#dslc-main .dslc-modules-area",LiveComposer.Builder.PreviewAreaDocument).each(function(){if(jQuery(".dslc-module-front",this).length){jQuery(this).removeClass("dslc-modules-area-empty").addClass("dslc-modules-area-not-empty");jQuery(".dslca-no-content",this).hide()}else{jQuery(this).removeClass("dslc-modules-area-not-empty").addClass("dslc-modules-area-empty");jQuery(".dslca-no-content:not(:visible)",this).show().css({"-webkit-animation-name":"dslcBounceIn","-moz-animation-name":"dslcBounceIn","animation-name":"dslcBounceIn","animation-duration":"0.6s","-webkit-animation-duration":"0.6s",padding:0}).animate({padding:"35px 0"},300)}});jQuery("#dslc-main .dslc-modules-section",LiveComposer.Builder.PreviewAreaDocument).each(function(){m=jQuery(this);f=dslc_generate_section_code(m);m.find(".dslca-section-code").val(f);d=d+f+","});d=d.slice(0,-1);d="["+d+"]";jQuery("#dslca-code").val(d);jQuery("#dslca-export-code").val(d)}function dslc_generate_section_code(e){if(dslcDebug)console.log("dslc_generate_section_code");console.log(e);var i="",t,o="",s="",a=12,d=12,r=0,c=0,n,u,m,p,l,f="",v="",h;l=e;if(jQuery(".dslc-modules-area",l).length){l.removeClass("dslc-modules-section-empty").addClass("dslc-modules-section-not-empty")}else{l.removeClass("dslc-modules-section-not-empty").addClass("dslc-modules-section-empty")}jQuery(".dslc-modules-area.dslc-last-col, .dslc-modules-area.dslc-first-col",this).removeClass("dslc-last-col dslc-first-col");jQuery(".dslc-module-front.dslc-last-col, .dslc-module-front.dslc-first-col",this).removeClass("dslc-last-col dslc-first-col");c=0;v=l.find(".dslca-section-code").val();console.log("modulesSectionJsonString:");console.log(v);if(undefined!==v){}h=JSON.parse(v);f="";jQuery(".dslca-modules-section-settings input",l).each(function(){var e=jQuery(this);var o=e.data("id");var s=e.val();f=f+o+'="'+s+'" ';h[o]=s});if(undefined!==h["give_new_id"]){delete h["give_new_id"]}h["content"]=[];jQuery(".dslc-modules-area",l).each(function(){r=0;u=jQuery(this);n=parseInt(u.data("size"));m="no";p="no";c+=n;jQuery(this).removeClass("dslc-first-col");jQuery(this).removeClass("dslc-last-col");if(c==d){jQuery(this).addClass("dslc-last-col").next(".dslc-modules-area").addClass("dslc-first-col");c=0;m="yes"}else if(c>d){jQuery(this).removeClass("dslc-last-col").addClass("dslc-first-col");c=n;p="yes"}if(c==n){p="yes";jQuery(this).removeClass("dslc-last-col").addClass("dslc-first-col")}var l='{"element_type":"module_area","last":"'+m+'","first":"'+p+'","size":"'+n+'"}';l=JSON.parse(l);if(undefined!==l["give_new_id"]){delete l["give_new_id"]}l.content=[];jQuery(".dslc-module-front",u).each(function(){var o=jQuery(this);t=parseInt(o[0].getAttribute("data-dslc-module-size"));var e="no";var s="no";jQuery(this).removeClass("dslc-first-col");jQuery(this).removeClass("dslc-last-col");r+=t;if(r==a){jQuery(this).addClass("dslc-last-col");jQuery(this).next(".dslc-module-front").addClass("dslc-first-col");r=0;e="yes";s="yes"}else if(r>a){jQuery(this).removeClass("dslc-last-col").addClass("dslc-first-col");r=t;s="yes"}if(r==t){s="yes";jQuery(this).removeClass("dslc-last-col").addClass("dslc-first-col")}try{i=o[0].querySelector(".dslca-module-code").value}catch(e){console.info("No DSLC code found in module: "+o[0].getAttribute("id"))}if(""!==i){var d=JSON.parse(i);d.last=e;jQuery.each(d,function(e,o){if(false===o||""===o){delete d[e]}if("content"===e){d[e]=o.replace(/\\'/g,"'")}if("give_new_id"===e){delete d[e]}});o[0].querySelector(".dslca-module-code").value=JSON.stringify(d);l["content"].push(d)}i=""});h["content"].push(l)});var _=JSON.stringify(h);return _}jQuery(document).ready(function(o){o(document).on("click",".dslca-save-composer-hook",function(e){e.preventDefault();if(!o("body").hasClass("dslca-module-saving-in-progress")&&!o("body").hasClass("dslca-saving-in-progress")){dslc_save_composer()}});o(document).on("click",".dslca-save-draft-composer-hook",function(e){e.preventDefault();if(!o("body").hasClass("dslca-module-saving-in-progress")&&!o("body").hasClass("dslca-saving-in-progress")){dslc_save_draft_composer()}})});function dslca_gen_content_for_search(){if(dslcDebug)console.log("dslca_gen_content_for_search");var e=document.getElementById("dslca-content-for-search");if(null===e){return}var o=e.value;var l="";var s=LiveComposer.Builder.PreviewAreaWindow.document.querySelectorAll("#dslc-main .dslc-module-front [data-exportable-content]");if(undefined!==s){Array.prototype.forEach.call(s,function(e,o){var s;if(e.getAttribute("data-exportable-content")!==""){var d=e.getAttribute("data-exportable-content");s="<"+d+">"+e.innerHTML+"</"+d+">"}else{s=e.innerHTML}if(s!==null){l+=s.replace(/\s+/g," ").trim()+"\n"}})}e.value=l;if(o!==l){dslc_show_publish_button()}}var massagesTicker=jQuery("#editor-messages").newsTicker({row_height:40,max_rows:2,speed:900,direction:"up",duration:12e3,autostart:1,pauseOnHover:1,start:function(){jQuery("#editor-messages").css("opacity","1")}});jQuery(document).ready(function(s){s(document).on("click",".dslc-editor-messages-hide",function(e){var o=s(".dslc-editor-messages-hide").data("can-hide");if(o=="1"){jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-hidden-panel"});s(".dslc-editor-messages-section-122017").css("display","none");s(".dslca-container").removeClass("active-message-panel")}else{s("#editor-messages").html('<div class="dslc-notice"><a href="https://livecomposerplugin.com/hide-messages/?utm_source=editing-screen&utm_medium=editor-messages&utm_campaign=hide-messages" target="_blank">Only users who support our plugin development can hide this panel. <b>Click to learn more.</b></a></div>')}});if(s("div.dslc-editor-messages-section-122017").length){s(".dslc-editor-messages-section-122017").css("display","block");s(".dslca-container").addClass("active-message-panel")}});"use strict";var dslcRegularFontsArray=DSLCFonts.regular;var dslcGoogleFontsArray=DSLCFonts.google;var dslcAllFontsArray=dslcRegularFontsArray.concat(dslcGoogleFontsArray);var dslcIconsCurrentSet=DSLCIcons.fontawesome;var dslcDebug=false;var LiveComposer={Builder:{Elements:{},UI:{},Actions:{},Flags:{},PreviewFrame:{},Helpers:{}},Production:{},Utils:{}};(function(){LiveComposer.Builder.Flags={windowScroller:false,panelOpened:false,generate_code_after_row_changed:true};LiveComposer.Builder.Actions={postponed_actions_queue:{},add_postponed_action:function(e){if(e===undefined){return}if(isNaN(this.postponed_actions_queue[e])){this.postponed_actions_queue[e]=0}this.postponed_actions_queue[e]+=1},release_postponed_actions:function(){var s=this;jQuery.each(this.postponed_actions_queue,function(e,o){if(1<o){s.postponed_actions_queue[e]-=1}else if(1==o){window[e]();s.postponed_actions_queue[e]-=1}})}};LiveComposer.Builder.Helpers.insertModule=function(e,o){var s=jQuery(e),o=jQuery(o);var d=[];s.find("script").each(function(){d.push(this.innerHTML);this.parentNode.removeChild(this)});o.after(s).remove();d.forEach(function(e){var o=LiveComposer.Builder.PreviewAreaDocument[0].createElement("script");o.innerHTML=e;o.type="text/javascript";LiveComposer.Builder.PreviewAreaDocument[0].getElementById(s[0].id).appendChild(o)});d=null;o=null;return s}})();"use strict";LiveComposer.Builder.UI.CModalWindow=function(o){if(typeof o!="object"||this.instancesExists===true)return false;var s=this;var d='<div class="dslca-prompt-modal dslca-prompt-modal-active">'+'<div class="dslca-prompt-modal-content"><div class="dslca-prompt-modal-msg">'+'<span class="dslca-prompt-modal-title">'+o.title+"</span>"+'<span class="dslca-prompt-modal-descr">'+o.content+"</span></div>";var e="";if(o.confirm||o.cancel){e='<div class="dslca-prompt-modal-actions">'+'<a href="#" class="dslca-prompt-modal-confirm-hook"><span class="dslc-icon dslc-icon-ok">'+"</span>"+(o.confirm_title?o.confirm_title:"Confirm")+'</a><span class="dslca-prompt-modal-cancel-hook"><span class="dslc-icon dslc-icon-remove">'+"</span>"+(o.cancel_title?o.cancel_title:"Cancel")+"</span></div>"}else{e='<div class="dslca-prompt-modal-actions">'+'<a href="#" class="dslca-prompt-modal-confirm-hook"><span class="dslc-icon dslc-icon-ok">'+"</span>"+(o.ok_title?o.ok_title:"OK")+"</a></div>"}d+=e+"</div>";d=jQuery(d);if(typeof o.confirm!="function")o.confirm=function(){};if(typeof o.cancel!="function")o.cancel=function(){};d.find(".dslca-prompt-modal-confirm-hook").click(function(e){e.stopPropagation();d.find(".dslca-prompt-modal-content").animate({top:"55%"},400);d.animate({opacity:0},400,function(){o.confirm();s.instancesExists=false;jQuery(this).remove()});return false});d.find(".dslca-prompt-modal-cancel-hook").click(function(e){e.stopPropagation();d.find(".dslca-prompt-modal-content").animate({top:"55%"},400);d.animate({opacity:0},400,function(){jQuery(this).remove();s.instancesExists=false;o.cancel()});return false});d.hide();jQuery("body").append(d);d.css({opacity:0}).show().animate({opacity:1},400);d.find(".dslca-prompt-modal-content").css({top:"55%"}).animate({top:"50%"},400);this.instancesExists=true};"use strict";function dslc_show_modal(e,o){if(typeof dslcDebug!=="undefined"&&dslcDebug)console.log("dslc_show_modal");if(jQuery(".dslca-modal:visible").length){dslc_hide_modal("",jQuery(".dslca-modal:visible"))}var o=jQuery(o);var s=jQuery(".dslca-container").height();o.outerHide({clbk:function(){dslc_hide_modal("",jQuery(".dslca-modal:visible"))}});var d=jQuery(e).position(),l=o.outerWidth()/2-e.outerWidth()/2,i=d.left-l;o.css({left:i});jQuery(".dslca-prompt-modal-custom").insertAfter(o);if(jQuery(".dslca-prompt-modal-custom").length>0){jQuery(".dslca-prompt-modal-custom").fadeIn()}o.addClass("dslca-modal-open").show()}function dslc_hide_modal(e,o){if(typeof dslcDebug!=="undefined"&&dslcDebug)console.log("dslc_hide_modal");var o=jQuery(o);o.outerHide("destroy");o.hide();if(jQuery(".dslca-prompt-modal-custom").length>0){jQuery(".dslca-prompt-modal-custom").fadeOut()}o.removeClass("dslca-modal-open")}jQuery(document).ready(function(e){e(document).on("click",".dslca-open-modal-hook",function(e){e.preventDefault();var o=jQuery(this).data("modal");dslc_show_modal(jQuery(this),o)});jQuery(document).on("click",".dslca-close-modal-hook",function(e){e.preventDefault();if(!jQuery(this).hasClass("dslca-action-disabled")){var o=jQuery(this).data("modal");dslc_hide_modal(jQuery(this),o)}})});function dslc_js_confirm(e,o,s){if(typeof dslcDebug!=="undefined"&&dslcDebug)console.log("dslc_js_confirm");jQuery(".dslca-prompt-modal").addClass("dslca-prompt-modal-active");jQuery(".dslca-prompt-modal").data("id",e);jQuery(".dslca-prompt-modal").data("target",s);jQuery(".dslca-prompt-modal-msg").html(o);jQuery(".dslca-prompt-modal").css({opacity:0}).show().animate({opacity:1},400);jQuery(".dslca-prompt-modal-content").css({top:"55%"}).animate({top:"50%"},400)}function dslc_js_confirm_close(){if(typeof dslcDebug!=="undefined"&&dslcDebug)console.log("dslc_js_confirm_close");jQuery(".dslca-prompt-modal").removeClass("dslca-prompt-modal-active");jQuery(".dslca-prompt-modal").animate({opacity:0},400,function(){jQuery(this).hide();jQuery(".dslca-prompt-modal-cancel-hook").show();jQuery(".dslca-prompt-modal-confirm-hook").html('<span class="dslc-icon dslc-icon-ok"></span>'+DSLCString.str_confirm)});jQuery(".dslca-prompt-modal-content").animate({top:"55%"},400)}function dslc_modal_keypress_events(e){if(e.which==13){if(jQuery(".dslca-prompt-modal-active").length){jQuery(".dslca-prompt-modal-confirm-hook").trigger("click")}}else if(e.which==27){if(jQuery(".dslca-prompt-modal-active").length){jQuery(".dslca-prompt-modal-cancel-hook").trigger("click")}}}jQuery(document).ready(function(a){a(document).on("click",".dslca-prompt-modal-cancel-hook",function(e){e.preventDefault();var o=jQuery(".dslca-prompt-modal").data("id");var s=jQuery(".dslca-prompt-modal").data("target");if(o=="edit_in_progress"){dslc_module_options_cancel_changes(function(){s.trigger("click")})}else if(o=="delete_module"){}dslc_js_confirm_close();jQuery(".dslca-prompt-modal").data("id","")});a(document).on("click",".dslca-prompt-modal-confirm-hook",function(e){e.preventDefault();var o=jQuery(".dslca-prompt-modal").data("id");var s=jQuery(".dslca-prompt-modal").data("target");var d=true;if(o=="edit_in_progress"){dslc_module_options_confirm_changes(function(){s.trigger("click")})}else if(o=="disable_lc"){window.location=s}else if("delete_module"===o){var l=s.closest(".dslc-module-front");dslc_delete_module(l)}else if("delete_modules_area"===o){var i=s.closest(".dslc-modules-area");var t=i.closest(".dslc-modules-section-inner");dslc_modules_area_delete(i)}else if(o=="delete_modules_section"){dslc_row_delete(s.closest(".dslc-modules-section"))}else if(o=="export_modules_section"){}else if(o=="import_modules_section"){dslc_row_import(a(".dslca-prompt-modal textarea").val());a(".dslca-prompt-modal-confirm-hook span").css({opacity:0});a(".dslca-prompt-modal-confirm-hook .dslca-loading").show();d=false}if(d)dslc_js_confirm_close();jQuery(".dslca-prompt-modal").data("id","")})});jQuery.fn.outerHide=function(o){var s=jQuery;o=o?o:{};var d=this;if("destroy"==o){s(document).unbind("click.outer_hide");return false}s(document).bind("click.outer_hide",function(e){if(s(e.target).closest(d).length==0&&e.target!=d&&s.inArray(s(e.target)[0],s(o.clickObj))==-1&&s(d).css("display")!="none"){if(o.clbk){o.clbk()}else{s(d).hide()}}})};"use strict";jQuery(document).on("editorFrameLoaded",function(){var i=jQuery;var s=function(){if(LiveComposer.Builder.Flags.panelOpened){LiveComposer.Builder.UI.shakePanelConfirmButton();return false}return true};LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-copy-module-hook",function(e){e.preventDefault();if(!s())return false;if(!i(this).hasClass("dslca-action-disabled")){dslc_module_copy(i(this).closest(".dslc-module-front"))}});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-delete-module-hook",function(e){e.preventDefault();if(!s())return false;var o=this;if(!i(this).hasClass("dslca-action-disabled")){LiveComposer.Builder.UI.CModalWindow({title:DSLCString.str_del_module_title,content:DSLCString.str_del_module_descr,confirm:function(){var e=jQuery(o).closest(".dslc-module-front");dslc_delete_module(e)}})}});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-module-edit-hook, .dslc-module-front > div:not(.dslca-module-manage)",function(e){if(dslcDebug)console.log("dslca-module-edit-hook");e.preventDefault();var o=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).length;var s=jQuery(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).length;if(i("body").hasClass("dslca-composer-hidden")||o>0||s>0){if(jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument)[0]!=jQuery(this).closest(".dslc-module-front")[0]){LiveComposer.Builder.UI.shakePanelConfirmButton()}return false}var d=i(this).closest(".dslc-module-front"),l=d.data("dslc-module-id");i(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-module-being-edited");d.addClass("dslca-module-being-edited");dslc_module_options_show(l);jQuery("body",LiveComposer.Builder.PreviewAreaDocument).addClass("module-editing-in-progress")});LiveComposer.Builder.PreviewAreaDocument.on({mouseenter:function(){jQuery(".dslca-modules-section-manage",LiveComposer.Builder.PreviewAreaDocument).css("z-index","99998")},mouseleave:function(){jQuery(".dslca-modules-section-manage",LiveComposer.Builder.PreviewAreaDocument).css("z-index","999999")}},".dslca-change-width-module-hook, .dslc-module-front .dslca-module-manage");LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-change-width-module-options span",function(){if(!jQuery(this).hasClass("dslca-action-disabled")){var e=jQuery(this).closest(".dslc-module-front");var o=e.data("dslc-module-size");var s=jQuery(this).data("size");if(Number(o)!==Number(s)){dslc_module_width_set(e,s)}}});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-module-get-defaults-hook",function(){var e=jQuery(this).closest(".dslc-module-front");var o=dslc_dm_get_defaults(e);var s='<span class="dslca-prompt-modal-title">Module Defaults</span>'+'<span class="dslca-prompt-modal-descr">The code bellow is used to alter the defaults.</span>'+"<textarea></textarea><br><br>";i(".dslca-prompt-modal-cancel-hook").hide();i(".dslca-prompt-modal-confirm-hook").html('<span class="dslc-icon dslc-icon-ok"></span>OK');dslc_js_confirm("dev_mode_get_default",s,e)});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-refresh-module-hook",function(e){jQuery(this).css({"-webkit-animation-name":"dslcRotate","-moz-animation-name":"dslcRotate","animation-name":"dslcRotate","animation-duration":"0.6s","-webkit-animation-duration":"0.6s","animation-iteration-count":"infinite","-webkit-animation-iteration-count":"infinite"});jQuery(this).closest(".dslc-module-front").addClass("dslca-module-being-edited");dslc_module_output_altered(function(){jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-module-being-edited")})});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-wysiwyg-actions-edit-hook",function(){var e=jQuery(this).parent().siblings(".dslca-editable-content");var o=e.closest(".dslc-module-front");if(o.hasClass("dslc-module-handle-like-accordion")){LiveComposer.Builder.PreviewAreaWindow.dslc_accordion_generate_code(o.find(".dslc-accordion"));var s=o.find('.dslca-module-option-front[data-id="accordion_content"]').val();var d=s.split("(dslc_sep)");var l=e.closest(".dslc-accordion-item").index();var i=d[l].trim().replace(/<lctextarea/g,"<textarea").replace(/<\/lctextarea/g,"</textarea")}else if(o.hasClass("dslc-module-handle-like-tabs")){LiveComposer.Builder.PreviewAreaWindow.dslc_tabs_generate_code(o.find(".dslc-tabs"));var s=o.find('.dslca-module-option-front[data-id="tabs_content"]').val();var d=s.split("(dslc_sep)");var l=e.closest(".dslc-tabs-tab-content").index();var i=d[l].trim().replace(/<lctextarea/g,"<textarea").replace(/<\/lctextarea/g,"</textarea")}else{var i=o.find('.dslca-module-option-front[data-id="'+e.data("id")+'"]').val().replace(/<lctextarea/g,"<textarea").replace(/<\/lctextarea/g,"</textarea")}if(i.includes("%")){i=i.replace(/%\(\(%/g,"[");i=i.replace(/%\)\)%/g,"]");i=i.replace(/%\(%/g,"[");i=i.replace(/%\)%/g,"]");i=i.replace(/%\{%/g,"[");i=i.replace(/%\}%/g,"]")}if(typeof tinymce!="undefined"){var t=tinymce.get("dslcawpeditor");if(jQuery("#wp-dslcawpeditor-wrap").hasClass("tmce-active")){t.setContent(i,{format:"html"})}else{jQuery("textarea#dslcawpeditor").val(i)}if(!o.hasClass("dslca-module-being-edited")){o.find(".dslca-module-edit-hook").trigger("click")}jQuery(".dslca-wp-editor").show();e.addClass("dslca-wysiwyg-active");jQuery("#dslcawpeditor_ifr, #dslcawpeditor").css({height:jQuery(".dslca-wp-editor").height()-300})}else{console.info("Live Composer: TinyMCE is undefined.")}});LiveComposer.Builder.PreviewAreaDocument.on("blur",".dslca-editable-content",function(){if(!jQuery("body").hasClass("dslca-composer-hidden")&&jQuery(this).data("type")=="simple"){dslc_editable_content_gen_code(jQuery(this))}}).on("paste",".dslca-editable-content:not(.inline-editor)",function(){if(!jQuery("body").hasClass("dslca-composer-hidden")&&jQuery(this).data("type")=="simple"){var e=jQuery(this);setTimeout(function(){if(e.data("type")=="simple"){e.html(e.text())}dslc_editable_content_gen_code(e)},100)}}).on("focus",".dslca-editable-content",function(){if(jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).length>0&&!jQuery(this).closest(".dslc-module-front").hasClass("dslca-module-being-edited")){jQuery(this).trigger("blur")}}).on("keyup",".dslca-editable-content",function(){if(jQuery(this).data("type")=="simple"){jQuery(this).closest(".dslc-module-front").addClass("dslca-module-change-made")}})});function dslc_module_delete(e){if(dslcDebug)console.log("dslc_delete_module");e.addClass("dslca-module-being-deleted");if(e.hasClass("dslca-module-being-edited")){dslc_show_section(".dslca-modules")}setTimeout(function(){e.remove();dslc_generate_code();dslc_show_publish_button()},1e3);e.css({"-webkit-animation-name":"dslcBounceOut2","-moz-animation-name":"dslcBounceOut2","animation-name":"dslcBounceOut2","animation-duration":"0.6s","-webkit-animation-duration":"0.6s"}).animate({opacity:0},500,function(){e.css({marginBottom:0}).animate({height:0},400,"easeOutQuart")})}function dslc_module_copy(e){if(dslcDebug)console.log("dslc_copy_module");jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-module-being-edited");var o=e[0].cloneNode(true);jQuery(o).appendTo(e.closest(".dslc-modules-area")).css({"-webkit-animation-name":"none","-moz-animation-name":"none","animation-name":"none","animation-duration":"0","-webkit-animation-duration":"0",opacity:0}).addClass("dslca-module-being-edited");dslc_module_new_id(o);dslc_generate_code();jQuery(o).css({opacity:0}).removeClass("dslca-module-being-edited").animate({opacity:1},300);dslc_show_publish_button()}function dslc_module_new_id(e){var o=LiveComposer.Utils.get_unique_id();var s=e.getAttribute("id");e.setAttribute("data-module-id",o);e.setAttribute("id","dslc-module-"+o);var d=e.getElementsByTagName("style")[0];var l=d.textContent;d.setAttribute("id","#css-for-dslc-module-"+o);l=l.split(s).join("dslc-module-"+o);d.textContent=l;LiveComposer.Utils.update_module_property_raw(e,"module_instance_id",o)}function dslc_module_width_set(e,o){if(dslcDebug)console.log("dslc_module_width_set");var s="dslc-"+o+"-col";e.removeClass("dslc-1-col dslc-2-col dslc-3-col dslc-4-col dslc-5-col dslc-6-col dslc-7-col dslc-8-col dslc-9-col dslc-10-col dslc-11-col dslc-12-col").addClass(s).data("dslc-module-size",o);e[0].setAttribute("data-dslc-module-size",o);LiveComposer.Utils.update_module_property_raw(e[0],"dslc_m_size",o);LiveComposer.Builder.PreviewAreaWindow.dslc_masonry();dslc_generate_code();dslc_show_publish_button()}function dslc_module_options_show(e){if(dslcDebug)console.log("dslc_module_options_show");var o=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument),s=jQuery(".dslca-module-options-front textarea",o),l=jQuery(".dslca-header").data("default-section"),i=jQuery(jQuery("#pseudo-panel").html());jQuery("#wpwrap").append(i);var d={};d["action"]="dslc-ajax-display-module-options";d["dslc"]="active";d["dslc_module_id"]=e;d["dslc_post_id"]=jQuery(".dslca-container").data("data-post-id");d.dslc_url_vars=LiveComposer.Utils.get_page_params();s.each(function(){var e=jQuery(this),o=e.data("id"),s=e.val();if(s.includes("%")){s=s.replace(/%\(\(%/g,"[");s=s.replace(/%\)\)%/g,"]");s=s.replace(/%\(%/g,"[");s=s.replace(/%\)%/g,"]");s=s.replace(/%\{%/g,"[");s=s.replace(/%\}%/g,"]")}d[o]=s});jQuery(".dslca-wp-editor-actions").hide();jQuery(".dslca-wp-editor-notification").show();dslc_hide_publish_button();var t=jQuery(".dslca-module-options-front",o).children().clone();LiveComposer.Builder.moduleBackup=t;LiveComposer.Builder.Flags.panelOpened=true;i.show();i.addClass("show");jQuery.post(DSLCAjax.ajaxurl,d,function(e){i.remove();dslc_show_section(".dslca-module-edit");if(!jQuery("body").hasClass("rtl")){jQuery(".dslca-module-edit-options-inner").html(e.output)}else{jQuery(".dslca-module-edit-options-inner").html(e.output)}jQuery(".dslca-module-edit-options-tabs").html(e.output_tabs);var o=[];jQuery(".dslca-module-edit-options-inner .dslca-module-edit-option").each(function(){var e=jQuery(this).data("section");if(o.indexOf(e)==-1){o.push(e)}});var s=o.length;for(var d=0;d<s;d++){jQuery('.dslca-header .dslca-options-filter-hook[data-section="'+o[d]+'"]').show()}if(jQuery('.dslca-module-edit-option[data-section="'+l+'"]').length){jQuery('.dslca-header .dslca-options-filter-hook[data-section="'+l+'"]').show();jQuery('.dslca-header .dslca-options-filter-hook[data-section="'+l+'"]').trigger("click")}else{jQuery(".dslca-header .dslca-options-filter-hook:first").hide();jQuery(".dslca-header .dslca-options-filter-hook:first").next(".dslca-options-filter-hook").trigger("click")}jQuery(".dslca-module-edit-actions").show();jQuery(".dslca-wp-editor-notification").hide();jQuery(".dslca-wp-editor-actions").show();jQuery(".dslca-header .dslca-go-to-section-hook").hide();jQuery(".dslca-row-edit-actions").hide();LiveComposer.Builder.UI.loadOptionsDeps()})}function dslc_module_output_default(e,o){if(dslcDebug)console.log("dslc_module_output_default");jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-add-module",dslc:"active",dslc_module_id:e,dslc_post_id:jQuery(".dslca-container").data("post-id"),dslc_url_vars:LiveComposer.Utils.get_page_params(),dslc_new_module:true},function(e){o(e)})}function dslc_module_output_altered(d){if(dslcDebug)console.log("dslc_module_output_altered");d=typeof d!=="undefined"?d:false;var l=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument),e=l.data("dslc-module-id"),o=jQuery(".dslca-module-options-front textarea",l),s=l.data("module-id");var i={};i["action"]="dslc-ajax-add-module";i["dslc"]="active";i["dslc_module_id"]=e;i["dslc_module_instance_id"]=s;i["dslc_post_id"]=jQuery(".dslca-container").data("post-id");if(l.hasClass("dslca-preload-preset"))i["dslc_preload_preset"]="enabled";else i["dslc_preload_preset"]="disabled";l.removeClass("dslca-preload-preset");o.each(function(){var e=jQuery(this);var o=e.data("id");var s=e.val();i[o]=s});i.dslc_url_vars=LiveComposer.Utils.get_page_params();jQuery.post(DSLCAjax.ajaxurl,i,function(e){var o=LiveComposer.Builder.Helpers.insertModule(e.output,l);o.addClass("dslca-module-being-edited");e=null;o=null;LiveComposer.Builder.PreviewAreaWindow.dslc_carousel();LiveComposer.Builder.PreviewAreaWindow.dslc_masonry();LiveComposer.Builder.PreviewAreaWindow.dslc_tabs();LiveComposer.Builder.PreviewAreaWindow.dslc_init_accordion();var s=new Event("dslc_module_output_altered");LiveComposer.Builder.PreviewAreaWindow.dispatchEvent(s);if(d){d(e)}})}function dslc_module_output_reload(o,s){if(dslcDebug)console.log("dslc_module_output_reload");s=typeof s!=="undefined"?s:false;var e=o.data("dslc-module-id"),d=jQuery(".dslca-module-options-front textarea",o),l=o.data("module-id");var i={};i["action"]="dslc-ajax-add-module";i["dslc"]="active";i["dslc_module_id"]=e;i["dslc_module_instance_id"]=l;i["dslc_post_id"]=jQuery(".dslca-container").data("post-id");i["dslc_preload_preset"]="enabled";o.removeClass("dslca-preload-preset");d.each(function(){var e=jQuery(this);var o=e.data("id");var s=e.val();i[o]=s});o.append('<div class="dslca-module-reloading"><span class="dslca-icon dslc-icon-spin dslc-icon-refresh"></span></div>');jQuery.post(DSLCAjax.ajaxurl,i,function(e){o.after(e.output).next().addClass("dslca-module-being-edited");o.remove();dslc_generate_code();dslc_show_publish_button();LiveComposer.Builder.PreviewAreaWindow.dslc_carousel();LiveComposer.Builder.PreviewAreaWindow.dslc_masonry();LiveComposer.Builder.PreviewAreaWindow.dslc_tabs();LiveComposer.Builder.PreviewAreaWindow.dslc_init_accordion();if(s){s(e)}jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-module-being-edited")})}function dslc_delete_module(e){dslc_module_delete(e)}function dslc_copy_module(e){dslc_module_copy(e)}function dslc_display_module_options(e){dslc_module_options_show(e)}function dslc_get_module_output(e,o){dslc_module_output_default(e,o)}function dslc_preview_change(e){dslc_module_output_altered(e)}function dslc_reload_module(e,o){dslc_module_output_reload(e,o)}"use strict";LiveComposer.Builder.Elements.CModuleArea=function(o){var s=this;this.section=jQuery(o).closest(".dslc-modules-section");this.elem=o;this.observer=new mqMutationObserver(o,function(){var e=s.elem.classList;if(o.querySelectorAll(".dslc-module-front").length==0){e.add("dslc-modules-area-empty");e.remove("dslc-modules-area-not-empty")}else{e.remove("dslc-modules-area-empty");e.add("dslc-modules-area-not-empty")}},{childList:true});this.sortable=Sortable.create(o,{group:"modules",animation:350,handle:".dslca-move-module-hook",draggable:".dslc-module-front",ghostClass:"dslca-module-ghost",chosenClass:"dslca-module-dragging",scroll:true,scrollSensitivity:150,scrollSpeed:15,setData:function(e,o){e.setData(LiveComposer.Utils.msieversion()!==false?"Text":"text/html",o.innerHTML)},onStart:function(e){e.oldIndex;jQuery("body").removeClass("dslca-drag-not-in-progress").addClass("dslca-drag-in-progress");jQuery("body",LiveComposer.Builder.PreviewAreaWindow.document).removeClass("dslca-drag-not-in-progress").addClass("dslca-drag-in-progress")},onEnd:function(e){e.oldIndex;e.newIndex;e.preventDefault();dslc_generate_code();LiveComposer.Builder.UI.stopScroller();jQuery("body").removeClass("dslca-drag-in-progress").addClass("dslca-drag-not-in-progress");jQuery("body",LiveComposer.Builder.PreviewAreaWindow.document).removeClass("dslca-drag-in-progress").addClass("dslca-drag-not-in-progress")},onAdd:function(e){var o=e.item;e.from;if(jQuery(o).data("id")=="DSLC_M_A"){dslc_modules_area_add(jQuery(s.section).find(".dslc-modules-section-wrapper .dslc-modules-section-inner"));o.remove()}},onUpdate:function(e){var o=e.item;dslc_show_publish_button()},onSort:function(e){},onRemove:function(e){},onFilter:function(e){var o=e.item},onMove:function(e){e.dragged;e.draggedRect;e.related;e.relatedRect;if(jQuery(".dslc-modules-area-empty").find(".dslc-module-front").length>0){jQuery(this).removeClass("dslc-modules-area-empty").addClass("dslc-modules-area-not-empty");jQuery(".dslca-no-content:not(:visible)",this).show().css({"-webkit-animation-name":"dslcBounceIn","-moz-animation-name":"dslcBounceIn","animation-name":"dslcBounceIn","animation-duration":"0.6s","-webkit-animation-duration":"0.6s",padding:0}).animate({padding:"35px 0"},300,function(){})}}});jQuery(o).attr("data-jsinit","initialized");jQuery(document).on("LC.sortableOff",function(){s.sortable&&s.sortable.option&&s.sortable.option("disabled",true)});jQuery(document).on("LC.sortableOn",function(){s.sortable&&s.sortable.option&&s.sortable.option("disabled",false)})};"use strict";jQuery(document).on("editorFrameLoaded",function(){function e(){var e=jQuery(".dslc-modules-area",LiveComposer.Builder.PreviewAreaDocument);jQuery(e).each(function(e,o){new LiveComposer.Builder.Elements.CModuleArea(o)})}var l=function(){if(LiveComposer.Builder.Flags.panelOpened){LiveComposer.Builder.UI.shakePanelConfirmButton();return false}return true};if(!jQuery("#dslc-main .dslc-modules-section",LiveComposer.Builder.PreviewAreaDocument).length&&!jQuery("#dslca-tut-page",LiveComposer.Builder.PreviewAreaDocument).length){dslc_row_add(e())}else{e()}LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-copy-modules-area-hook",function(e){e.preventDefault();if(!l())return false;if(!jQuery(this).hasClass("dslca-action-disabled")){var o=jQuery(this).closest(".dslc-modules-area");dslc_copy_modules_area(o)}});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-delete-modules-area-hook",function(e){e.preventDefault();if(!l())return false;if(!jQuery(this).hasClass("dslca-action-disabled")){var o=jQuery(this).closest(".dslc-modules-area").hasClass("dslc-modules-area-empty");if(!o){var s=jQuery(this);LiveComposer.Builder.UI.CModalWindow({title:DSLCString.str_del_area_title,content:DSLCString.str_del_area_descr,confirm:function(){var e=s.closest(".dslc-modules-area");dslc_modules_area_delete(e)}})}else{var d=jQuery(this).closest(".dslc-modules-area");dslc_delete_modules_area(d)}}});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-change-width-modules-area-options span",function(){if(!l())return false;if(!jQuery(this).hasClass("dslca-action-disabled")){var e=jQuery(this).closest(".dslc-modules-area");var o=e.data("size");var s=jQuery(this).data("size");if(Number(o)!==Number(s)){dslc_modules_area_width_set(e,s)}}});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-add-modules-area-hook",function(e){e.preventDefault();if(!l())return false;dslc_modules_area_add(jQuery(this).closest(".dslc-modules-section").find(".dslc-modules-section-inner"))})});function dslc_modules_area_add(e){if(dslcDebug)console.log("dslc_add_modules_area");var o='<div class="dslc-modules-area dslc-modules-area-dnd dslc-col dslc-12-col dslc-modules-area-empty " data-size="12">'+'<div class="dslca-modules-area-manage"> <div class="dslca-modules-area-manage-inner">'+'<span class="dslca-manage-action dslca-copy-modules-area-hook" title="Duplicate" ><span class="dslca-icon dslc-icon-copy">'+'</span></span> <span class="dslca-manage-action dslca-move-modules-area-hook" title="Drag to move" >'+'<span class="dslca-icon dslc-icon-move"></span></span>'+'<span class="dslca-manage-action dslca-change-width-modules-area-hook" title="Change width" >'+'<span class="dslca-icon dslc-icon-columns"></span> <div class="dslca-change-width-modules-area-options">'+'<span>Container Width</span><span data-size="1">1/12</span><span data-size="2">2/12</span>'+'<span data-size="3">3/12</span><span data-size="4">4/12</span> <span data-size="5">5/12</span><span data-size="6">6/12</span>'+'<span data-size="7">7/12</span><span data-size="8">8/12</span> <span data-size="9">9/12</span><span data-size="10">10/12</span>'+'<span data-size="11">11/12</span><span data-size="12">12/12</span> </div> </span>'+'<span class="dslca-manage-action dslca-delete-modules-area-hook" title="Delete" ><span class="dslca-icon dslc-icon-remove"></span></span> </div> </div>'+"</div>";jQuery(o).appendTo(e).css({height:0}).animate({height:99},300,function(){jQuery(this).css({height:"auto"})}).addClass("dslca-init-animation");var s=jQuery(".dslc-modules-area-empty",LiveComposer.Builder.PreviewAreaDocument);jQuery(s).each(function(e,o){new LiveComposer.Builder.Elements.CModuleArea(o)});dslc_drag_and_drop();dslc_generate_code();dslc_show_publish_button()}function dslc_modules_area_delete(o){if(dslcDebug)console.log("dslc_delete_modules_area");var s=o.closest(".dslc-modules-section").find(".dslc-modules-section-inner"),d=false;o.addClass("dslca-modules-area-being-deleted");if(s.find(".dslc-modules-area").length<2){d=true}if(o.find(".dslca-module-being-edited").length){jQuery(".dslca-header .dslca-options-filter-hook",LiveComposer.Builder.PreviewAreaDocument).hide();jQuery(".dslca-module-edit-actions",LiveComposer.Builder.PreviewAreaDocument).hide();jQuery(".dslca-header .dslca-go-to-section-hook",LiveComposer.Builder.PreviewAreaDocument).show();dslc_show_section(".dslca-modules")}setTimeout(function(){if(d){var e=o.closest(".dslc-modules-section-inner");if(2<=o.closest("#dslc-main").find(".dslc-modules-section").length){dslc_row_delete(o.closest(".dslc-modules-section"))}else{o.remove();dslc_modules_area_add(s)}}o.remove();dslc_generate_code();dslc_show_publish_button()},900);o.css({"-webkit-animation-name":"dslcBounceOut","-moz-animation-name":"dslcBounceOut","animation-name":"dslcBounceOut","animation-duration":"0.6s","-webkit-animation-duration":"0.6s",overflow:"hidden"}).animate({opacity:0},600).animate({height:0,marginBottom:0},300,function(){o.remove();dslc_generate_code();dslc_show_publish_button()})}function dslc_modules_area_copy(e){if(dslcDebug)console.log("dslc_copy_modules_area");var o,s=e.closest(".dslc-modules-section").find(".dslc-modules-section-inner");var d=e.clone().appendTo(s);new LiveComposer.Builder.Elements.CModuleArea(d[0]);d.find(".dslca-modules-area-manage").trigger("mouseleave");d.data("size",e.data("size")).find(".dslc-module-front").css({"-webkit-animation-name":"none","-moz-animation-name":"none","animation-name":"none","animation-duration":"0","-webkit-animation-duration":"0",opacity:0}).each(function(){var e=jQuery(this);dslc_module_new_id(e[0]);jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-module-being-edited");dslc_generate_code();e.animate({opacity:1},300)});dslc_drag_and_drop();dslc_show_publish_button();dslc_generate_code()}function dslc_modules_area_width_set(e,o){if(dslcDebug)console.log("dslc_modules_area_width_set");var s="dslc-"+o+"-col";e.removeClass("dslc-1-col dslc-2-col dslc-3-col dslc-4-col dslc-5-col dslc-6-col dslc-7-col dslc-8-col dslc-9-col dslc-10-col dslc-11-col dslc-12-col").addClass(s).data("size",o);LiveComposer.Builder.PreviewAreaWindow.dslc_masonry();if(LiveComposer.Builder.Flags.panelOpened){return false}dslc_generate_code();dslc_show_publish_button()}LiveComposer.Builder.moduleareas_init=function(){jQuery("#dslc-main .dslc-modules-area",LiveComposer.Builder.PreviewAreaDocument).each(function(){if(jQuery(this).data("jsinit")!=="initialized"){new LiveComposer.Builder.Elements.CModuleArea(this)}})};function dslc_add_modules_area(e){dslc_modules_area_add(e)}function dslc_delete_modules_area(e){dslc_modules_area_delete(e)}function dslc_copy_modules_area(e){dslc_modules_area_copy(e)}"use strict";function dslc_update_preset(){if(dslcDebug)console.log("dslc_update_preset");var o=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument),e=o.find('.dslca-module-option-front[data-id="css_load_preset"]').val(),s=o.find(".dslca-module-code").val(),d=o.data("dslc-module-id");if("none"!==e&&""!==e){jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-save-preset",dslc_preset_name:e,dslc_preset_code:s,dslc_module_id:d},function(e){if(e.preset_setting=="enabled"){jQuery(".dslc-module-front:not(#"+o.attr("id")+')[data-dslc-module-id="'+o.data("dslc-module-id")+'"][data-dslc-preset="'+o.data("dslc-preset")+'"]',LiveComposer.Builder.PreviewAreaDocument).each(function(){dslc_module_output_reload(jQuery(this))})}})}}jQuery(document).ready(function(d){d(document).on("keypress",'.dslca-module-edit-field[name="css_save_preset"]',function(e){if(e.which==13){var o=d(this).val(),s=o.toLowerCase().replace(/\s/g,"-");d("body").addClass("dslca-new-preset-added");d('.dslca-module-edit-field[name="css_load_preset"]').append('<option value="'+s+'">'+s+"</option>").val(s).trigger("change");d(this).val("");jQuery(".dslc-delete-preset").removeClass("dslc-delete-preset-hide")}});d(document).on("change",'.dslca-module-edit-field[name="css_load_preset"]',function(e){d(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).addClass("dslca-preload-preset")});d(document).on("click",".dslc-delete-preset",function(e){var o=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument),s=o.find('.dslca-module-option-front[data-id="css_load_preset"]').val(),d=o.data("dslc-module-id");if("none"!==s&&""!==s){jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-delete-preset",dslc_preset_name:s,dslc_module_id:d},function(e){dslc_module_options_show(d)})}})});"use strict";LiveComposer.Builder.Elements.CRow=function(e){var o=this;this.elem=e;var s=jQuery(e).find(".dslc-modules-section-wrapper .dslc-modules-section-inner").eq(0)[0];jQuery(e).droppable({drop:function(e,o){var s=jQuery(this).find(".dslc-modules-section-inner");var d=o.draggable.data("id");if(d=="DSLC_M_A"){dslc_modules_area_add(s)}}});this.sortable=jQuery(s).sortable({connectWith:".dslc-modules-section-inner",items:".dslc-modules-area-dnd",handle:'.dslca-move-modules-area-hook:not(".dslca-action-disabled")',placeholder:"dslca-modules-area-placeholder",cursorAt:{top:0,left:0},tolerance:"intersect",scroll:true,scrollSensitivity:100,scrollSpeed:15,sort:function(){jQuery(this).removeClass("ui-state-default")},over:function(e,o){var s=o.placeholder.closest(".dslc-modules-section");jQuery(s).removeClass("dslc-modules-section-empty").addClass("dslc-modules-section-not-empty");s.siblings(".dslc-modules-section").each(function(){if(jQuery(".dslc-modules-area:not(.ui-sortable-helper)",jQuery(this)).length){jQuery(this).removeClass("dslc-modules-section-empty").addClass("dslc-modules-section-not-empty")}else{jQuery(this).removeClass("dslc-modules-section-not-empty").addClass("dslc-modules-section-empty")}})},remove:function(){jQuery(o.elem).find(".dslc-modules-area").length==0&&dslc_modules_area_add(jQuery(s))},update:function(e,o){dslc_generate_code();dslc_show_publish_button()},start:function(e,o){o.placeholder.html('<span class="dslca-placeholder-help-text"><span class="dslca-placeholder-help-text-inner">'+DSLCString.str_area_helper_text+"</span></span>");if(!jQuery(o.item).hasClass("dslc-12-col")){o.placeholder.width(o.item.width()-10)}else{o.placeholder.width(o.item.width()).css({margin:0})}jQuery("body").removeClass("dslca-drag-not-in-progress").addClass("dslca-drag-in-progress dslca-modules-area-drag-in-progress");jQuery(".dslc-modules-section-inner").sortable("refreshPositions")},stop:function(e,o){LiveComposer.Builder.UI.stopScroller();jQuery("body").removeClass("dslca-drag-in-progress dslca-modules-area-drag-in-progress").addClass("dslca-drag-not-in-progress");jQuery(".dslca-anim-opacity-drop").removeClass("dslca-anim-opacity-drop")},change:function(e,o){}});jQuery(e).attr("data-jsinit","initialized");jQuery(document).on("LC.sortableOff",function(){if(undefined!==o.sortable.sortable("instance")){o.sortable.sortable("option","disabled",true)}});jQuery(document).on("LC.sortableOn",function(){if(undefined!==o.sortable.sortable("instance")){o.sortable.sortable("option","disabled",false)}})};"use strict";jQuery(document).on("editorFrameLoaded",function(){var d=jQuery;var l=function(){if(LiveComposer.Builder.Flags.panelOpened){LiveComposer.Builder.UI.shakePanelConfirmButton();return false}return true};jQuery(".dslc-modules-section",LiveComposer.Builder.PreviewAreaDocument).each(function(){new LiveComposer.Builder.Elements.CRow(this)});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-delete-modules-section-hook",function(e){if(!l())return false;e.preventDefault();var o=this;if(!d(this).hasClass("dslca-action-disabled")){LiveComposer.Builder.UI.CModalWindow({title:DSLCString.str_del_row_title,content:DSLCString.str_del_row_descr,confirm:function(){dslc_row_delete(d(o).closest(".dslc-modules-section"))}})}});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-import-modules-section-hook",function(e){e.preventDefault();if(!l())return false;if(!jQuery(this).hasClass("dslca-action-disabled")){LiveComposer.Builder.UI.CModalWindow({title:DSLCString.str_import_row_title,content:DSLCString.str_import_row_descr+"<br><br><textarea></textarea>",confirm:function(){dslc_row_import(jQuery(".dslca-prompt-modal textarea").val());jQuery(".dslca-prompt-modal-confirm-hook span").css({opacity:0});jQuery(".dslca-prompt-modal-confirm-hook .dslca-loading").show()},confirm_title:DSLCString.str_import})}});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-export-modules-section-hook",function(e){e.preventDefault();if(!l())return false;if(!d(this).hasClass("dslca-action-disabled")){d(".dslca-prompt-modal-cancel-hook").hide();d(".dslca-prompt-modal-confirm-hook").html('<span class="dslc-icon dslc-icon-ok"></span>'+DSLCString.str_ok);LiveComposer.Builder.UI.CModalWindow({title:DSLCString.str_export_row_title,content:DSLCString.str_export_row_descr+"<br><br><textarea>"+"["+dslc_generate_section_code(d(this).closest(".dslc-modules-section"))+"]"+"</textarea></span>"})}});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-copy-modules-section-hook",function(){if(!l())return false;if(!jQuery(this).hasClass("dslca-action-disabled")){dslc_row_copy(jQuery(this).closest(".dslc-modules-section"))}});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-add-modules-section-hook",function(e){e.preventDefault();if(!l())return false;var o=d(this);if(!d(this).hasClass("dslca-action-disabled")){o.find(".dslca-icon").removeClass("dslc-icon-align-justify").addClass("dslc-icon-spinner dslc-icon-spin");dslc_row_add(function(){o.find(".dslca-icon").removeClass("dslc-icon-spinner dslc-icon-spin").addClass("dslc-icon-align-justify")})}});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-edit-modules-section-hook",function(){if(!l())return false;var e=this;var o=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).length;var s=jQuery(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).length;if(d("body").hasClass("dslca-composer-hidden")||o>0||s>0)return false;if(!d(this).hasClass("dslca-action-disabled")){dslc_row_edit(d(this).closest(".dslc-modules-section"))}jQuery("body",LiveComposer.Builder.PreviewAreaDocument).addClass("section-editing-in-progress")})});function dslc_row_add(o){if(dslcDebug)console.log("dslc_row_add");o=typeof o!=="undefined"?o:false;var s=jQuery.Deferred();var d=sessionStorage;var l=jQuery();var e=d.getItem("cache-dslc-ajax-add-modules-section");if(null!==e){var i,t;i=DSLCMainOptions.section_padding_vertical;t=jQuery(e).find('input[data-id="padding"]').val();if(i!==t){d.removeItem("cache-dslc-ajax-add-modules-section");e=null}}if(null===e){jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-add-modules-section",dslc:"active"},function(e){d.setItem("cache-dslc-ajax-add-modules-section",e.output);l=dslc_row_after_add(e.output);if(o){o()}return s})}else{l=dslc_row_after_add(e);if(o){o()}return s}}function dslc_row_after_add(e){var o=jQuery(e);o.appendTo(LiveComposer.Builder.PreviewAreaDocument.find("#dslc-main"));dslc_drag_and_drop();dslc_generate_code();dslc_show_publish_button();new LiveComposer.Builder.Elements.CRow(o);new LiveComposer.Builder.Elements.CModuleArea(o.find(".dslc-modules-area").eq(0)[0]);o.find(".dslc-modules-area").addClass("dslc-modules-area-empty dslc-last-col");return o}function dslc_row_delete(e){if(dslcDebug)console.log("dslc_row_delete");if(e.find(".dslca-module-being-edited")){jQuery(".dslca-header .dslca-options-filter-hook").hide();jQuery(".dslca-module-edit-actions").hide();jQuery(".dslca-header .dslca-go-to-section-hook").show();dslc_show_section(".dslca-modules")}e.trigger("mouseleave").remove();dslc_generate_code();dslc_show_publish_button()}function dslc_row_edit(e){if(dslcDebug)console.log("dslc_row_edit");var o,s;jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-module-being-edited");jQuery(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-modules-section-being-edited").removeClass("dslca-modules-section-change-made");e.addClass("dslca-modules-section-being-edited");jQuery(".dslca-header .dslca-go-to-section-hook").hide();jQuery('.dslca-row-options-filter-hook[data-section="styling"], .dslca-row-options-filter-hook[data-section="responsive"]').show();jQuery('.dslca-row-options-filter-hook[data-section="styling"]').trigger("click");jQuery(".dslca-header .dslca-options-filter-hook").hide();jQuery(".dslca-module-edit-actions").hide();jQuery(".dslca-row-edit-actions").show();jQuery(".dslca-modules-section-edit-field").each(function(){if("type"===jQuery(this).data("id")){if(""===jQuery('.dslca-modules-section-being-edited .dslca-modules-section-settings input[data-id="type"]',LiveComposer.Builder.PreviewAreaDocument).val()||"wrapped"===jQuery('.dslca-modules-section-being-edited .dslca-modules-section-settings input[data-id="type"]',LiveComposer.Builder.PreviewAreaDocument).val()){jQuery('select[data-id="type"]').val("wrapper").change()}}if(jQuery(this).data("id")=="border-top"){if(jQuery('.dslca-modules-section-being-edited .dslca-modules-section-settings input[data-id="border"]',LiveComposer.Builder.PreviewAreaDocument).val().indexOf("top")>=0){jQuery(this).prop("checked",true);jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check-empty").addClass("dslc-icon-check")}else{jQuery(this).prop("checked",false);jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check").addClass("dslc-icon-check-empty")}}else if(jQuery(this).data("id")=="border-right"){if(jQuery('.dslca-modules-section-being-edited .dslca-modules-section-settings input[data-id="border"]',LiveComposer.Builder.PreviewAreaDocument).val().indexOf("right")>=0){jQuery(this).prop("checked",true);jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check-empty").addClass("dslc-icon-check")}else{jQuery(this).prop("checked",false);jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check").addClass("dslc-icon-check-empty")}}else if(jQuery(this).data("id")=="border-bottom"){if(jQuery('.dslca-modules-section-being-edited .dslca-modules-section-settings input[data-id="border"]',LiveComposer.Builder.PreviewAreaDocument).val().indexOf("bottom")>=0){jQuery(this).prop("checked",true);jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check-empty").addClass("dslc-icon-check")}else{jQuery(this).prop("checked",false);jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check").addClass("dslc-icon-check-empty")}}else if(jQuery(this).data("id")=="border-left"){if(jQuery('.dslca-modules-section-being-edited .dslca-modules-section-settings input[data-id="border"]',LiveComposer.Builder.PreviewAreaDocument).val().indexOf("left")>=0){jQuery(this).prop("checked",true);jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check-empty").addClass("dslc-icon-check")}else{jQuery(this).prop("checked",false);jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check").addClass("dslc-icon-check-empty")}}else if(jQuery(this).hasClass("dslca-modules-section-edit-field-checkbox")){if(jQuery('.dslca-modules-section-being-edited .dslca-modules-section-settings input[data-id="'+jQuery(this).data("id")+'"]',LiveComposer.Builder.PreviewAreaDocument).val().indexOf(jQuery(this).data("val"))>=0){jQuery(this).prop("checked",true);jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check-empty").addClass("dslc-icon-check")}else{jQuery(this).prop("checked",false);jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check").addClass("dslc-icon-check-empty")}}else{jQuery(this).val(jQuery('.dslca-modules-section-being-edited .dslca-modules-section-settings input[data-id="'+jQuery(this).data("id")+'"]',LiveComposer.Builder.PreviewAreaDocument).val().trim().replace("%(%","[").replace("%)%","]"));if(jQuery(this).hasClass("dslca-modules-section-edit-field-colorpicker")){var e=jQuery(this);jQuery(this).closest(".dslca-modules-section-edit-option").find(".sp-preview-inner").removeClass("sp-clear-display").css({"background-color":e.val()});jQuery(this).css({"background-color":e.val()})}}});jQuery(".dslca-modules-section-edit-field-upload").each(function(){var e=jQuery(this).closest(".dslca-modules-section-edit-option");if(jQuery(this).val()&&jQuery(this).val()!=="disabled"){jQuery(".dslca-modules-section-edit-field-image-add-hook",e).hide();jQuery(".dslca-modules-section-edit-field-image-remove-hook",e).show()}else{jQuery(".dslca-modules-section-edit-field-image-remove-hook",e).hide();jQuery(".dslca-modules-section-edit-field-image-add-hook",e).show()}});dslc_show_section(".dslca-modules-section-edit");LiveComposer.Builder.Flags.panelOpened=true;dslc_hide_publish_button()}function dslc_row_edit_cancel(e){if(dslcDebug)console.log("dslc_row_cancel_changes");e=typeof e!=="undefined"?e:false;LiveComposer.Builder.Flags.generate_code_after_row_changed=false;jQuery(".dslca-modules-section-being-edited .dslca-modules-section-settings input",LiveComposer.Builder.PreviewAreaDocument).each(function(){jQuery(this).val(jQuery(this).data("def"));jQuery('.dslca-modules-section-edit-field[data-id="'+jQuery(this).data("id")+'"]').val(jQuery(this).data("def")).trigger("change")});LiveComposer.Builder.Flags.generate_code_after_row_changed=true;dslc_generate_code();dslc_show_publish_button();dslc_show_section(".dslca-modules");jQuery(".dslca-row-edit-actions").hide();jQuery(".dslca-row-options-filter-hook").hide();jQuery(".dslca-header .dslca-go-to-section-hook").show();dslc_show_publish_button;jQuery(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-modules-section-being-edited dslca-modules-section-change-made");if(e){e()}LiveComposer.Builder.Flags.panelOpened=false;jQuery("body",LiveComposer.Builder.PreviewAreaDocument).removeClass("section-editing-in-progress")}function dslc_row_edit_confirm(e){if(dslcDebug)console.log("dslc_confirm_row_changes");e=typeof e!=="undefined"?e:false;jQuery(".dslca-modules-section-being-edited .dslca-modules-section-settings input",LiveComposer.Builder.PreviewAreaDocument).each(function(){jQuery(this).data("def",jQuery(this).val())});dslc_show_section(".dslca-modules");jQuery(".dslca-row-edit-actions").hide();jQuery(".dslca-row-options-filter-hook").hide();jQuery(".dslca-header .dslca-go-to-section-hook").show();jQuery(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-modules-section-being-edited dslca-modules-section-change-made");dslc_generate_code();dslc_show_publish_button();if(e){e()}LiveComposer.Builder.Flags.panelOpened=false;jQuery("body",LiveComposer.Builder.PreviewAreaDocument).removeClass("section-editing-in-progress")}function dslc_row_copy(o){if(dslcDebug)console.log("dslc_row_copy");var e,s,d;s=o.clone().appendTo(jQuery("#dslc-main",LiveComposer.Builder.PreviewAreaDocument));s[0].removeAttribute("data-jsinit");s.find(".dslc-modules-area").each(function(){var e=jQuery(this).index();jQuery(this).data("size",o.find(".dslc-modules-area:eq( "+e+" )").data("size"));this.removeAttribute("data-jsinit")});new LiveComposer.Builder.Elements.CRow(s);s.find(".dslc-module-front").css({"-webkit-animation-name":"none","-moz-animation-name":"none","animation-name":"none","animation-duration":"0","-webkit-animation-duration":"0",opacity:0}).each(function(){var e=jQuery(this);dslc_module_new_id(e[0]);LiveComposer.Builder.rows_init();LiveComposer.Builder.moduleareas_init();dslc_generate_code();dslc_drag_and_drop();jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-module-being-edited");e.animate({opacity:1},300);dslc_show_publish_button()});dslc_section_new_id(s[0])}function dslc_section_new_id(e){if(dslcDebug)console.log("dslc_section_new_id");var o=LiveComposer.Utils.get_unique_id();e.setAttribute("data-section-id",o);LiveComposer.Utils.update_section_property_raw(e,"section_instance_id",o)}function dslc_row_import(e){if(dslcDebug)console.log("dslc_row_import");jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-import-modules-section",dslc:"active",dslc_modules_section_code:e},function(e){dslc_js_confirm_close();jQuery("#dslc-main",LiveComposer.Builder.PreviewAreaDocument).append(e.output);LiveComposer.Builder.PreviewAreaWindow.dslc_bg_video();LiveComposer.Builder.PreviewAreaWindow.dslc_carousel();LiveComposer.Builder.PreviewAreaWindow.dslc_masonry();LiveComposer.Builder.rows_init();LiveComposer.Builder.moduleareas_init();dslc_drag_and_drop();dslc_generate_code();dslc_show_publish_button()})}function dslc_add_modules_section(){dslc_row_add()}function dslc_delete_modules_section(e){dslc_row_delete(e)}function dslc_edit_modules_section(e){dslc_row_edit(e)}function dslc_copy_modules_section(e){dslc_row_copy(e)}function dslc_import_modules_section(e){dslc_row_import(e)}jQuery(document).ready(function(e){e(document).on("click",".dslca-row-edit-save",function(){dslc_row_edit_confirm();e(".dslca-currently-editing").removeAttr("style");e(".dslca-row-options-filter-hook.dslca-active").removeClass("dslca-active");LiveComposer.Builder.PreviewAreaWindow.dslc_responsive_classes(true)});e(document).on("click",".dslca-row-edit-cancel",function(){dslc_row_edit_cancel();e(".dslca-currently-editing").removeAttr("style");e(".dslca-row-options-filter-hook.dslca-active").removeClass("dslca-active");LiveComposer.Builder.PreviewAreaWindow.dslc_responsive_classes(true)})});LiveComposer.Builder.rows_init=function(){jQuery("#dslc-main .dslc-modules-section",LiveComposer.Builder.PreviewAreaDocument).each(function(){if(jQuery(this).data("jsinit")!=="initialized"){new LiveComposer.Builder.Elements.CRow(this)}})};jQuery(document).ready(function(e){var o=function(e){var l=.75;var o=500;var i=100;var t=jQuery(".dslca-section-scroller",e);var a=jQuery(".dslca-section-scroller-inner",e)[0];t.on("wheel",function(e){s(e.originalEvent.deltaY||e.originalEvent.deltaX);return false});function s(e){if(e<0){e=-i}else{e=i}e=e*l;var o=t.find(".dslca-section-scroller-content").width();var s=t.width();if(o<=s)return false;var d=o-s+10;e=parseInt(a.style.left||0)-e;e=e>=0?0:e;e=e<=-d?-d:e;a.style.left=e+"px"}jQuery(".dslca-section-scroller-prev",e).click(function(e){e.preventDefault();s(-o)});jQuery(".dslca-section-scroller-next",e).click(function(e){e.preventDefault();s(o)});jQuery(window).load(function(){jQuery(window).resize(function(){s(0)})})};o(jQuery(".dslca-section.dslca-modules"));o(jQuery(".dslca-section.dslca-templates-load"))});jQuery(document).ready(function(e){LiveComposer.Builder.UI.initPreviewAreaScroller=function(){var o=5;var s=6;LiveComposer.Builder.Flags.windowScroller=false;jQuery(LiveComposer.Builder.PreviewAreaDocument).on("dragleave",".lc-scroll-top-area, .lc-scroll-bottom-area",function(e){LiveComposer.Builder.UI.stopScroller()});jQuery(LiveComposer.Builder.PreviewAreaDocument).on("dragenter dragover",".lc-scroll-bottom-area",function(e){if(LiveComposer.Builder.Flags.windowScroller!==false)return false;LiveComposer.Utils.publish("LC.sortableOff",{});LiveComposer.Builder.Flags.windowScroller=setInterval(function(){LiveComposer.Builder.PreviewAreaWindow.scrollBy(0,o)},s)});jQuery(LiveComposer.Builder.PreviewAreaDocument).on("dragenter",".lc-scroll-top-area",function(e){if(LiveComposer.Builder.Flags.windowScroller!==false)return false;LiveComposer.Utils.publish("LC.sortableOff",{});LiveComposer.Builder.Flags.windowScroller=setInterval(function(){LiveComposer.Builder.PreviewAreaWindow.scrollBy(0,-o)},s)});jQuery(LiveComposer.Builder.PreviewAreaDocument).on("dragend mouseup","body",function(e){LiveComposer.Builder.Flags.windowScroller&&LiveComposer.Builder.UI.stopScroller()})};LiveComposer.Builder.UI.stopScroller=function(){LiveComposer.Utils.publish("LC.sortableOn",{});clearInterval(LiveComposer.Builder.Flags.windowScroller);LiveComposer.Builder.Flags.windowScroller=false};jQuery("#scroller-stopper").on("dragover",function(){LiveComposer.Builder.UI.stopScroller()})});"use strict";LiveComposer.Builder.Elements.CSectionsContainer=function(e){var o=this;this.sortable=jQuery(e).sortable({items:".dslc-modules-section-dnd",handle:'.dslca-move-modules-section-hook:not(".dslca-action-disabled")',placeholder:"dslca-modules-section-placeholder",tolerance:"intersect",cursorAt:{bottom:10},axis:"y",scroll:true,scrollSensitivity:140,scrollSpeed:5,sort:function(){jQuery(this).removeClass("ui-state-default")},update:function(e,o){dslc_show_publish_button()},start:function(e,o){jQuery("body").removeClass("dslca-drag-not-in-progress").addClass("dslca-drag-in-progress");jQuery("body",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-drag-not-in-progress").addClass("dslca-drag-in-progress");o.placeholder.html('<span class="dslca-placeholder-help-text"><span class="dslca-placeholder-help-text-inner">'+DSLCString.str_row_helper_text+"</span></span>");jQuery(".dslc-content").sortable("refreshPositions")},stop:function(e,o){dslc_generate_code();LiveComposer.Builder.UI.stopScroller();jQuery("body",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-drag-in-progress").addClass("dslca-drag-not-in-progress");jQuery("body").removeClass("dslca-drag-in-progress").addClass("dslca-drag-not-in-progress");jQuery(".dslca-anim-opacity-drop").removeClass("dslca-anim-opacity-drop")}});jQuery(document).on("LC.sortableOff",function(){if(undefined!==o.sortable.sortable("instance")){o.sortable.sortable("option","disabled",true)}});jQuery(document).on("LC.sortableOn",function(){if(undefined!==o.sortable.sortable("instance")){o.sortable.sortable("option","disabled",false)}})};"use strict";jQuery(document).ready(function(d){dslc_module_options_tooltip();dslc_module_options_font();dslc_module_options_icon();dslc_module_options_icon_returnid();dslc_module_options_text_align();dslc_module_options_checkbox();dslc_module_options_box_shadow();dslc_module_options_text_shadow();var e="";e+=".dslca-module-edit-field-colorpicker";e+=", .dslca-modules-section-edit-field-colorpicker";e+=", .dslca-module-edit-option-box-shadow-color";e+=", .dslca-module-edit-option-text-shadow-color";jQuery(document).on("click",e,function(){dslc_module_options_color(this);var l=jQuery(this).closest(".dslca-color-option");var e=jQuery(".dslca-module-edit-options-inner");var i=l.find(".wp-picker-holder");var t=l.offset();var o=t.left+15;var s=window.innerWidth;var d=260;if(s<o+d){o=s-d}i.css("left",o+"px");jQuery(e).on("scroll",function(e){t=l.offset();var o=t.left+15;var s=window.innerWidth;var d=260;if(s<o+d){o=s-d}i.css("left",o+"px")})});jQuery(".dslca-container").on("mouseenter",".dslca-module-edit-option-slider",function(){if(!jQuery(this).hasClass("dslca-module-edit-option-select")){dslc_module_options_numeric(this)}});jQuery(".dslca-container").on("mouseenter",".dslca-modules-section-edit-option-slider",function(){dslc_module_options_numeric(this)});jQuery(".dslca-module-edit-form").submit(function(e){e.preventDefault();dslc_module_output_altered()});d(document).on("click",".dslca-module-edit-options-tab-hook",function(e){e.preventDefault();dslc_module_options_tab_filter(d(this))});d(document).on("click",".dslca-options-filter-hook",function(e){e.preventDefault();var o=jQuery(".dslca-options-filter-hook.dslca-active").data("section");var s=jQuery(this).data("section");d(".dslca-options-filter-hook.dslca-active").removeClass("dslca-active");d(this).addClass("dslca-active");dslc_module_options_section_filter(s);if(o=="responsive"){jQuery(".dslca-container-loader").show();LiveComposer.Builder.PreviewAreaWindow.dslc_responsive_classes();dslc_module_output_altered(function(){jQuery(".dslca-container-loader").hide()});jQuery("#page-builder-preview-area").resizable("destroy").attr("style","")}if(s=="responsive"){jQuery("#page-builder-preview-area").resizable()}});jQuery(document).on("click",".dslca-module-edit-save",function(e){e.preventDefault();dslc_module_options_confirm_changes(function(){LiveComposer.Builder.UI.unloadOptionsDeps();LiveComposer.Builder.Flags.panelOpened=false;jQuery("body",LiveComposer.Builder.PreviewAreaDocument).removeClass("module-editing-in-progress")});jQuery(".dslca-options-filter-hook.dslca-active").removeClass("dslca-active");dslc_disable_responsive_view()});jQuery(document).on("click",".dslca-module-edit-cancel",function(e){e.preventDefault();dslc_module_options_cancel_changes(function(){LiveComposer.Builder.UI.unloadOptionsDeps();LiveComposer.Builder.Flags.panelOpened=false;jQuery("body",LiveComposer.Builder.PreviewAreaDocument).removeClass("module-editing-in-progress")});jQuery(".dslca-options-filter-hook.dslca-active").removeClass("dslca-active");dslc_disable_responsive_view()})});(function(){var t=jQuery;var e=LiveComposer.Builder;LiveComposer.Builder.Helpers.colorpickers=[];LiveComposer.Builder.UI.clearUtils=function(){if(dslcDebug)console.log("LiveComposer.Builder.UI.clearUtils");LiveComposer.Builder.UI.clearColorPickers();if(undefined!==LiveComposer.Builder.moduleBackup){LiveComposer.Builder.moduleBackup.remove()}jQuery(".temp-styles-for-module",LiveComposer.Builder.PreviewAreaDocument).remove();jQuery(".mce-tinymce",LiveComposer.Builder.PreviewAreaDocument).hide()};LiveComposer.Builder.UI.clearColorPickers=function(){if(Array.isArray(e.Helpers.colorpickers)){e.Helpers.colorpickers.forEach(function(e){if(!jQuery(e).hasClass("dslca-modules-section-edit-field")){jQuery(e).remove()}});e.Helpers.colorpickers=[]}jQuery("body").off("click.wpcolorpicker")};LiveComposer.Builder.Helpers.depsHandlers=[];LiveComposer.Builder.UI.loadOptionsDeps=function(){var e=this;t(".dslca-module-edit-option").each(function(){var e=this;var o=true;try{var s=JSON.parse(LiveComposer.Utils.b64_to_utf8(t(this).data("dep")))}catch(e){o=false}if(o){var d=function(){var i=this;var e={};if((i.type=="radio"||i.type=="checkbox")&&s[i.value]==undefined){return false}if(i.type=="checkbox"&&s[i.value]!=undefined){e[i.value]=s[i.value]}else{e=s}Object.keys(e).forEach(function(l){e[l].split(",").forEach(function(e){var o=t(".dslca-module-edit-option-"+e.trim()).closest(".dslca-module-edit-option");var s=true;if(i.type=="radio"||i.type=="checkbox"){s=t(i).is(":checked")}var d=jQuery(".dslca-module-edit-options-tab-hook.dslca-active").data("id");if(i.value==l&&s){if(o.not(".dependent")){o.addClass("dependent")}if(o.hasClass("dep-hide")){o.removeClass("dep-hide");o.addClass("dep-show")}else{o.addClass("dep-show")}if(d==o.data("tab")){o.show()}}else{if(o.not(".dependent")){o.addClass("dependent")}if(o.hasClass("dep-show")){o.removeClass("dep-show");o.addClass("dep-hide")}else{o.addClass("dep-hide")}o.hide()}})})};t(document).on("change dslc-init-deps",'.dslca-module-edit-option *[data-id="'+t(this).data("id")+'"]',d);LiveComposer.Builder.Helpers.depsHandlers.push(d)}});t(".dslca-module-edit-option input, .dslca-module-edit-option select").trigger("dslc-init-deps")};LiveComposer.Builder.UI.unloadOptionsDeps=function(){LiveComposer.Builder.Helpers.depsHandlers.forEach(function(e){t(document).unbind("change",e);t(document).unbind("dslc-init-deps",e)});LiveComposer.Builder.Helpers.depsHandlers=[]};LiveComposer.Builder.Helpers.processInlineStyleTag=function(e){if(typeof e!="object")return false;var o="",s="";if(e.context.closest(".dslca-module-edit-option").data("tab")=="tablet_responsive"){o="@media only screen and (max-width: 1024px) and (min-width: 768px) {";s="}"}else if(e.context.closest(".dslca-module-edit-option").data("tab")=="phone_responsive"){o="@media only screen and (max-width: 767px) {";s="}"}e.styleContent=o+e.styleContent+s;var d=o+e.rule+e.elems;d=d.replace(/ /gi,"");if(LiveComposer.Builder.PreviewAreaDocument[0].getElementById(d)==null){var l=document.createElement("style");l.innerHTML=e.styleContent;l.id=d;l.className="temp-styles-for-module";LiveComposer.Builder.PreviewAreaDocument[0].body.appendChild(l)}else{LiveComposer.Builder.PreviewAreaDocument[0].getElementById(d).innerHTML=e.styleContent}};LiveComposer.Builder.UI.shakePanelConfirmButton=function(){jQuery(".dslca-module-edit-save").addClass("lc-shake-effect active");setTimeout(function(){jQuery(".dslca-module-edit-save").removeClass("lc-shake-effect active")},1e3)}})();function dslc_module_options_section_filter(e){if(dslcDebug)console.log("dslc_module_options_section_filter");jQuery(".dslca-module-edit-option").hide();jQuery('.dslca-module-edit-option[data-section="'+e+'"]').show();dslc_module_options_tab_filter()}function dslc_module_options_tab_filter(e){if(dslcDebug)console.log("dslc_module_options_tab_filter");var o=jQuery(".dslca-options-filter-hook.dslca-active").data("section");e=typeof e!=="undefined"?e:jQuery('.dslca-module-edit-options-tab-hook[data-section="'+o+'"]:first');var s=e.data("id");jQuery(".dslca-module-edit-options-tab-hook").removeClass("dslca-active");e.addClass("dslca-active");jQuery(".dslca-module-edit-options-tabs").show();jQuery(".dslca-module-edit-options-tab-hook").hide();jQuery('.dslca-module-edit-options-tab-hook[data-section="'+o+'"]').show();if(s){jQuery(".dslca-module-edit-option").hide();jQuery('.dslca-module-edit-option[data-tab="'+s+'"]').show();dslc_module_options_hideshow_tabs();if(jQuery(".dslca-module-edit-options-tab-hook:visible").length<2){jQuery(".dslca-module-edit-options-tabs").hide()}else{jQuery(".dslca-module-edit-options-tabs").show()}dslc_disable_responsive_view();if(s==DSLCString.str_res_tablet.toLowerCase()+"_responsive"){jQuery("body").removeClass("dslc-res-big dslc-res-smaller-monitor dslc-res-phone dslc-res-tablet");jQuery("body").addClass("dslc-res-tablet");jQuery("html").addClass("dslc-responsive-preview")}if(s==DSLCString.str_res_phone.toLowerCase()+"_responsive"){jQuery("body").removeClass("dslc-res-big dslc-res-smaller-monitor dslc-res-phone dslc-res-tablet");jQuery("body").addClass("dslc-res-phone");jQuery("html").addClass("dslc-responsive-preview")}if(s==DSLCString.str_res_tablet.toLowerCase()+"_responsive"||s==DSLCString.str_res_phone.toLowerCase()+"_responsive"){jQuery(".dslca-container-loader").show();dslc_module_output_altered(function(){jQuery(".dslca-container-loader").hide()})}}if(jQuery("body").hasClass("rtl")){var d=0;var l=0;var i=0;jQuery(".dslca-module-edit-options-wrapper > .dslca-module-edit-option:visible").each(function(e){if(!jQuery(this).hasClass("dslca-module-edit-option-hidden")&&!jQuery(this).hasClass("dslca-module-control-group")){d+=parseInt(jQuery(this).outerWidth(),10)}});jQuery(".dslca-module-edit-options-wrapper > .dslca-module-control-group:visible").each(function(e){l+=parseInt(jQuery(this).outerWidth(),10)});i=parseInt(d)+parseInt(l)+10;jQuery(".dslca-module-edit-options-wrapper").css({width:i+"px"})}}function dslc_module_options_hideshow_tabs(){if(dslcDebug)console.log("dslc_module_options_hideshow_tabs");var e=jQuery(".dslca-options-filter-hook.dslca-active").data("section");if(e=="styling"){var o=jQuery(".dslca-module-edit"),s=true,d=true,l=true,i=true,t=true,a=true,r=true,c=true,n=true,u=true,m=true,p=true,f=true,v=true,h=true,_=true,y=true,g=true,j=true,Q=true,b=true,C=true,w=true,k=true,L=true,B=true,D=true;if(!jQuery('.dslca-module-edit-field[value="main_heading"]').is(":checked"))s=false;if(!jQuery('.dslca-module-edit-field[value="filters"]').is(":checked"))d=false;if(!jQuery('.dslca-module-edit-field[value="arrows"]').is(":checked"))l=false;if(!jQuery('.dslca-module-edit-field[value="circles"]').is(":checked"))i=false;if(jQuery('.dslca-module-edit-field[data-id="type"]').val()!="carousel"){l=false;i=false}if(jQuery('.dslca-module-edit-field[data-id="pagination_type"]').val()=="disabled"){t=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="thumbnail"]').is(":checked")){a=false}if(jQuery('.dslca-module-edit-field[data-id*="elements"][value="content"]').length&&!jQuery('.dslca-module-edit-field[data-id*="elements"][value="title"]').is(":checked")){r=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="excerpt"]').is(":checked")){c=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="meta"]').is(":checked")){n=false}if(jQuery('.dslca-module-edit-field[data-id*="elements"][value="button"]').length&&!jQuery('.dslca-module-edit-field[data-id*="elements"][value="button"]').is(":checked")){u=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="categories"]').is(":checked")){m=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="separator"]').is(":checked")){f=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="count"]').is(":checked")){p=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="tags"]').is(":checked")){v=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="social"]').is(":checked")){h=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="position"]').is(":checked")){_=false}if(jQuery('.dslca-module-edit-field[data-id*="elements"][value="icon"]').length&&!jQuery('.dslca-module-edit-field[data-id*="elements"][value="icon"]').is(":checked")){y=false}if(jQuery('.dslca-module-edit-field[data-id*="elements"][value="content"]').length&&!jQuery('.dslca-module-edit-field[data-id*="elements"][value="content"]').is(":checked")){g=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="price"]').is(":checked")){j=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="price_2"]').is(":checked")){Q=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="addtocart"]').is(":checked")){b=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="details"]').is(":checked")){C=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="quote"]').is(":checked")){w=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="author_name"]').is(":checked")){k=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="author_position"]').is(":checked")){L=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="image"]').is(":checked")){B=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="logo"]').is(":checked")){D=false}if(s)jQuery('.dslca-module-edit-options-tab-hook[data-id="heading_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="heading_styling"]').hide();if(d)jQuery('.dslca-module-edit-options-tab-hook[data-id="filters_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="filters_styling"]').hide();if(l)jQuery('.dslca-module-edit-options-tab-hook[data-id="carousel_arrows_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="carousel_arrows_styling"]').hide();if(i)jQuery('.dslca-module-edit-options-tab-hook[data-id="carousel_circles_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="carousel_circles_styling"]').hide();if(t)jQuery('.dslca-module-edit-options-tab-hook[data-id="pagination_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="pagination_styling"]').hide();if(a)jQuery('.dslca-module-edit-options-tab-hook[data-id="thumbnail_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="thumbnail_styling"]').hide();if(r)jQuery('.dslca-module-edit-options-tab-hook[data-id="title_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="title_styling"]').hide();if(c)jQuery('.dslca-module-edit-options-tab-hook[data-id="excerpt_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="excerpt_styling"]').hide();if(n)jQuery('.dslca-module-edit-options-tab-hook[data-id="meta_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="meta_styling"]').hide();if(u)jQuery('.dslca-module-edit-options-tab-hook[data-id="button_styling"], .dslca-module-edit-options-tab-hook[data-id="primary_button_styling"],'+' .dslca-module-edit-options-tab-hook[data-id="secondary_button_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="button_styling"], .dslca-module-edit-options-tab-hook[data-id="primary_button_styling"],'+' .dslca-module-edit-options-tab-hook[data-id="secondary_button_styling"]').hide();if(m)jQuery('.dslca-module-edit-options-tab-hook[data-id="categories_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="categories_styling"]').hide();if(f)jQuery('.dslca-module-edit-options-tab-hook[data-id="separator_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="separator_styling"]').hide();if(p)jQuery('.dslca-module-edit-options-tab-hook[data-id="count_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="count_styling"]').hide();if(v)jQuery('.dslca-module-edit-options-tab-hook[data-id="tags_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="tags_styling"]').hide();if(_)jQuery('.dslca-module-edit-options-tab-hook[data-id="position_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="position_styling"]').hide();if(h)jQuery('.dslca-module-edit-options-tab-hook[data-id="social_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="social_styling"]').hide();if(y)jQuery('.dslca-module-edit-options-tab-hook[data-id="icon_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="icon_styling"]').hide();if(g)jQuery('.dslca-module-edit-options-tab-hook[data-id="content_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="content_styling"]').hide();if(j)jQuery('.dslca-module-edit-options-tab-hook[data-id="price_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="price_styling"]').hide();if(Q)jQuery('.dslca-module-edit-options-tab-hook[data-id="price_secondary_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="price_secondary_styling"]').hide();if(b||C)jQuery('.dslca-module-edit-options-tab-hook[data-id="other_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="other_styling"]').hide();if(w)jQuery('.dslca-module-edit-options-tab-hook[data-id="quote_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="quote_styling"]').hide();if(k)jQuery('.dslca-module-edit-options-tab-hook[data-id="author_name_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="author_name_styling"]').hide();if(L)jQuery('.dslca-module-edit-options-tab-hook[data-id="author_position_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="author_position_styling"]').hide();if(B)jQuery('.dslca-module-edit-options-tab-hook[data-id="image_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="image_styling"]').hide();if(D)jQuery('.dslca-module-edit-options-tab-hook[data-id="logo_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="logo_styling"]').hide()}if(jQuery('.dslca-options-filter-hook[data-section="styling"]').hasClass("dslca-active")){var x=jQuery('.dslca-module-edit-option[data-id="css_custom"]'),A=x.find("select").val();if(A=="enabled"){jQuery('.dslca-module-edit-option[data-section="styling"]').css({visibility:"visible"});jQuery(".dslca-module-edit-option[data-tab]").css("visibility","visible");jQuery(".dslca-module-edit-options-tabs").show()}else{jQuery('.dslca-module-edit-option[data-section="styling"]').css({visibility:"hidden"});jQuery(".dslca-module-control-group.dslca-module-edit-option").css("visibility","hidden");jQuery(".dslca-module-edit-options-tabs").hide();x.css({visibility:"visible"})}}else{jQuery(".dslca-module-edit-options-tabs").show()}if(jQuery('select.dslca-module-edit-field[data-id="css_res_t"]').val()=="disabled"){jQuery('.dslca-module-edit-option[data-id*="css_res_t"]').css("visibility","hidden");jQuery('.dslca-module-edit-option[data-tab="tablet_responsive"]').css("visibility","hidden")}else{jQuery('.dslca-module-edit-option[data-id*="css_res_t"]').css("visibility","visible");jQuery('.dslca-module-edit-option[data-tab="tablet_responsive"]').css("visibility","visible")}if(jQuery('select.dslca-module-edit-field[data-id="css_res_p"]').val()=="disabled"){jQuery('.dslca-module-edit-option[data-id*="css_res_p"]').css("visibility","hidden");jQuery('.dslca-module-edit-option[data-tab="phone_responsive"]').css("visibility","hidden")}else{jQuery('.dslca-module-edit-option[data-id*="css_res_p"]').css("visibility","visible");jQuery('.dslca-module-edit-option[data-tab="phone_responsive"]').css("visibility","visible")}jQuery('.dslca-module-edit-option[data-id="css_res_p"], .dslca-module-edit-option[data-id="css_res_t"]').css("visibility","visible");if(jQuery(".dslca-options-filter-hook").hasClass("dslca-active")){var P=jQuery(".dslca-options-filter-hook.dslca-active").data("section");if(jQuery('.dslca-module-edit-option[data-section="'+P+'"]').hasClass("dep-show")){jQuery(".dslca-module-edit-option.dep-show").show()}if(jQuery('.dslca-module-edit-option[data-section="'+P+'"]').hasClass("dep-hide")){jQuery(".dslca-module-edit-option.dep-hide").hide()}}if(jQuery(".dslca-module-edit-options-tab-hook").hasClass("dslca-active")){var S=jQuery(".dslca-module-edit-options-tab-hook.dslca-active").data("id");if(jQuery('.dslca-module-edit-option[data-tab="'+S+'"]').hasClass("dependent")){jQuery(".dslca-module-edit-option.dependent").hide();jQuery('.dslca-module-edit-option[data-tab="'+S+'"].dep-show').show();jQuery('.dslca-module-edit-option[data-tab="'+S+'"].dep-hide').hide()}else{jQuery(".dslca-module-edit-option.dependent").hide()}}}function dslc_module_options_confirm_changes(e){if(dslcDebug)console.log("dslc_module_options_confirm_changes");e=typeof e!=="undefined"?e:false;if(jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).hasClass("dslc-module-DSLC_Sliders")){jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-module-being-edited")}else{jQuery("body").addClass("dslca-module-saving-in-progress");dslc_module_output_altered(function(){dslc_update_preset();dslc_generate_code();jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-module-being-edited");jQuery("body").removeClass("dslca-module-saving-in-progress");jQuery(".dslca-module-edit-options-inner").html("");jQuery(".dslca-module-edit-options-tabs").html("");LiveComposer.Builder.UI.clearUtils();if(e){e()}})}dslc_show_section(".dslca-modules");jQuery(".dslca-header .dslca-options-filter-hook").hide();jQuery(".dslca-module-edit-actions").hide();jQuery(".dslca-header .dslca-go-to-section-hook").show();dslc_show_publish_button()}function dslc_module_options_cancel_changes(e){if(dslcDebug)console.log("dslc_module_options_cancel_changes");e=typeof e!=="undefined"?e:false;var o=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument);jQuery(".dslca-module-options-front",o).html("").append(LiveComposer.Builder.moduleBackup);dslc_module_output_altered(function(){dslc_generate_code();jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-module-being-edited");jQuery(".dslca-module-edit-options-inner").html("");jQuery(".dslca-module-edit-options-tabs").html("");LiveComposer.Builder.UI.clearUtils();if(e){e()}});dslc_show_section(".dslca-modules");jQuery(".dslca-header .dslca-options-filter-hook").hide();jQuery(".dslca-module-edit-actions").hide();jQuery(".dslca-header .dslca-go-to-section-hook").show();dslc_show_publish_button();LiveComposer.Builder.UI.clearUtils()}function dslc_module_options_tooltip(){jQuery(document).on("click",".dslca-module-edit-field-ttip-close",function(){jQuery(".dslca-module-edit-field-ttip, .dslca-module-edit-field-icon-ttip").hide()});jQuery(document).on("click",".dslca-module-edit-field-ttip-hook",function(){var e=jQuery(".dslca-module-edit-field-ttip"),o=e.find(".dslca-module-edit-field-ttip-inner"),s=jQuery(this),d,l;l=s.parent();if(l.parent().hasClass("dslca-modules-section-edit-option")){d=s.closest(".dslca-modules-section-edit-option").find(".dslca-module-edit-field-ttip-content").html()}else{d=s.closest(".dslca-module-edit-option").find(".dslca-module-edit-field-ttip-content").html()}if(e.is(":visible")){jQuery(".dslca-module-edit-field-ttip").hide()}else{o.html(d);var i=s.offset();var t=e.outerHeight();var a=e.outerWidth();var r=i.left-a/2+6;var c="50%";if(r<0){c=a/2+r+"px";r=0}jQuery(".dslca-module-edit-field-ttip").show().css({top:i.top-t-20,left:r});jQuery("head").append(jQuery("<style>.dslca-module-edit-field-ttip:after, .dslca-module-edit-field-ttip:before { left: "+c+" }</style>"))}});jQuery(document).on("click",".dslca-module-edit-field-icon-ttip-hook",function(){var e=jQuery(".dslca-module-edit-field-icon-ttip");var o=jQuery(this);if(e.is(":visible")){jQuery(".dslca-module-edit-field-icon-ttip").hide()}else{var s=o.offset();var d=e.outerHeight();var l=e.outerWidth();var i=s.left-l/2+6;var t="50%";if(i<0){t=l/2+i+"px";i=0}jQuery(".dslca-module-edit-field-icon-ttip").show().css({top:s.top-d-20,left:i});jQuery("head").append(jQuery("<style>.dslca-module-edit-field-icon-ttip:after, .dslca-module-edit-field-icon-ttip:before { left: "+t+" }</style>"))}})}function dslc_module_options_font(){jQuery(document).on("click",".dslca-module-edit-field-font-next",function(e){e.preventDefault();if(!jQuery(this).hasClass("dslca-font-loading")&&!jQuery(this).siblings(".dslca-font-loading").length){var o=jQuery(this).closest(".dslca-module-edit-option-font");var s=jQuery(".dslca-module-edit-field-font",o);var d=dslcAllFontsArray.indexOf(s.val());var l=d+1;jQuery(".dslca-module-edit-field-font-suggest",o).text("");s.val(dslcAllFontsArray[l]).trigger("change");jQuery(this).addClass("dslca-font-loading").find(".dslca-icon").removeClass("dslc-icon-chevron-right").addClass("dslc-icon-refresh dslc-icon-spin")}});jQuery(document).on("click",".dslca-module-edit-field-font-prev",function(e){e.preventDefault();if(!jQuery(this).hasClass("dslca-font-loading")&&!jQuery(this).siblings(".dslca-font-loading").length){var o=jQuery(this).closest(".dslca-module-edit-option-font");var s=jQuery(".dslca-module-edit-field-font",o);var d=dslcAllFontsArray.indexOf(s.val());var l=d-1;jQuery(".dslca-module-edit-field-font-suggest",o).text("");if(l<0){l=dslcAllFontsArray.length-1}s.val(dslcAllFontsArray[l]).trigger("change");jQuery(this).addClass("dslca-font-loading").find(".dslca-icon").removeClass("dslc-icon-chevron-left").addClass("dslc-icon-refresh dslc-icon-spin")}});jQuery(document).on("keyup",".dslca-module-edit-field-font",function(e){var o,s,d,l=false,i;o=jQuery(this);s=o.closest(".dslca-module-edit-option");if(e.which==38){jQuery(".dslca-module-edit-field-font-prev",s).click()}if(e.which==40){jQuery(".dslca-module-edit-field-font-next",s).click()}if(e.which!=13&&e.which!=38&&e.which!=40){d=o.val();var t=[];var a=new RegExp("^"+d,"i");var r=dslcAllFontsArray.length;var c=0;do{if(a.test(dslcAllFontsArray[c])){if(!l){var l=dslcAllFontsArray[c]}}c++}while(c<r);if(!l){i=d;jQuery(".dslca-module-edit-field-font-suggest",s).hide()}else{i=l;jQuery(".dslca-module-edit-field-font-suggest",s).show()}jQuery(".dslca-module-edit-field-font-suggest",s).text(i);if(i.length){o.val(i.substring(0,o.val().length))}}});jQuery(document).on("keypress",".dslca-module-edit-field-font",function(e){if(e.which==13){e.preventDefault();var o,s,d,l,i;o=jQuery(this);s=o.closest(".dslca-module-edit-option");jQuery(this).val(jQuery(".dslca-module-edit-field-font-suggest",s).text()).trigger("change");jQuery(".dslca-module-edit-field-font-suggest",s).text("")}})}function dslc_list_icon(e,o){var s=jQuery(e).closest(".dslca-module-edit-option-icon");var d=jQuery(".dslca-module-edit-field-icon",s);var l=dslcIconsCurrentSet.indexOf(d.val());if(o=="previous"){var i=l-1}else{var i=l+1}jQuery(".dslca-module-edit-field-icon-suggest",s).text("");if(i<0){i=dslcIconsCurrentSet.length-1}d.val(dslcIconsCurrentSet[i]).trigger("change")}function dslc_module_options_icon(){jQuery(document).on("keyup",".dslca-module-edit-field-icon",function(e){var o,s,d,l,i;o=jQuery(this);s=o.closest(".dslca-module-edit-option");if(e.which==38){dslc_list_icon(o,"previous")}if(e.which==40){dslc_list_icon(o,"next")}if(e.which!=13&&e.which!=38&&e.which!=40){d=o.val().toLowerCase();o.val(d);l=jQuery.grep(dslcIconsCurrentSet,function(e,o){return e.indexOf(d)==0});i=l[0];jQuery(".dslca-module-edit-field-icon-suggest",s).text(i)}});jQuery(document).on("keypress",".dslca-module-edit-field-icon",function(e){if(e.which==13){e.preventDefault();var o,s,d,l,i;o=jQuery(this);s=o.closest(".dslca-module-edit-option");jQuery(this).val(jQuery(".dslca-module-edit-field-icon-suggest",s).text()).trigger("change");jQuery(".dslca-module-edit-field-icon-suggest",s).text("")}})}function dslc_module_options_icon_returnid(){jQuery(document).on("click",'.dslca-open-modal-hook[data-modal^=".dslc-list-icons"]',function(e){jQuery(this).closest(".dslca-module-edit-option-icon").find("input").addClass("icon-modal-active")});jQuery(document).on("click",".dslca-modal-icons .icon-item",function(e){var o=jQuery(this).find(".icon-item_name").text();jQuery("input.icon-modal-active").val(o).change();dslc_hide_modal("",jQuery(".dslca-modal:visible"));jQuery("input.icon-modal-active").removeClass("icon-modal-active")})}function dslc_module_options_text_align(){jQuery(document).on("click",".dslca-module-edit-option-text-align-hook",function(){var e=jQuery(this),o=jQuery(this).closest(".dslca-module-edit-option-text-align-wrapper").find(".dslca-module-edit-option-text-align-hook"),s=e.data("val"),d=jQuery(this).closest(".dslca-module-edit-option-text-align-wrapper").siblings("input.dslca-module-edit-field");o.removeClass("dslca-active");e.addClass("dslca-active");d.val(s).trigger("change")})}function dslc_module_options_checkbox(){jQuery(document).on("click",".dslca-module-edit-option-checkbox-hook, .dslca-modules-section-edit-option-checkbox-hook",function(){var e=jQuery(this);var o=e.siblings('input[type="checkbox"]');if(o.prop("checked")){o.prop("checked",false);e.find(".dslca-icon").removeClass("dslc-icon-check").addClass("dslc-icon-check-empty")}else{o.prop("checked",true);e.find(".dslca-icon").removeClass("dslc-icon-check-empty").addClass("dslc-icon-check")}o.change()})}function dslc_module_options_box_shadow(){if(dslcDebug)console.log("dslc_module_options_box_shadow");jQuery(document).on("change",".dslca-module-edit-option-box-shadow-hor, "+".dslca-module-edit-option-box-shadow-ver, .dslca-module-edit-option-box-shadow-blur, .dslca-module-edit-option-box-shadow-spread,"+" .dslca-module-edit-option-box-shadow-color, .dslca-module-edit-option-box-shadow-inset",function(){var e=jQuery(this).closest(".dslca-module-edit-option"),o=e.find(".dslca-module-edit-field"),s=e.find(".dslca-module-edit-option-box-shadow-hor").val(),d=e.find(".dslca-module-edit-option-box-shadow-ver").val(),l=e.find(".dslca-module-edit-option-box-shadow-blur").val(),i=e.find(".dslca-module-edit-option-box-shadow-spread").val(),t=e.find(".dslca-module-edit-option-box-shadow-color").val(),a=e.find(".dslca-module-edit-option-box-shadow-inset").is(":checked");if(a){a=" inset"}else{a=""}var r=s+"px "+d+"px "+l+"px "+i+"px "+t+a;o.val(r).trigger("change")})}function dslc_module_options_text_shadow(){if(dslcDebug)console.log("dslc_module_options_text_shadow");jQuery(document).on("change",".dslca-module-edit-option-text-shadow-hor, .dslca-module-edit-option-text-shadow-ver,"+".dslca-module-edit-option-text-shadow-blur, .dslca-module-edit-option-text-shadow-color",function(){var e=jQuery(this).closest(".dslca-module-edit-option"),o=e.find(".dslca-module-edit-field"),s=e.find(".dslca-module-edit-option-text-shadow-hor").val(),d=e.find(".dslca-module-edit-option-text-shadow-ver").val(),l=e.find(".dslca-module-edit-option-text-shadow-blur").val(),i=e.find(".dslca-module-edit-option-text-shadow-color").val();var t=s+"px "+d+"px "+l+"px "+i;o.val(t).trigger("change")})}function dslc_module_options_color(e){if(dslcDebug)console.log("dslc_module_options_color");var l,i,t,a,r,c,n;var u=[],o,s;var m="dslcColors-"+document.domain;if(undefined!==localStorage[m]){o=JSON.parse(localStorage[m]);u=o}if(1>u.length){u.push("#78b")}if(2>u.length){u.push("#ab0")}if(3>u.length){u.push("#de3")}u.push("#fff");u.push("#000");u.push("rgba(0,0,0,0)");var d=e;jQuery(d).each(function(){var e=jQuery(this).closest(".dslca-color-option");var d=jQuery(this);n=jQuery(this).val();d.wpColorPicker({mode:"hsl",palettes:u,change:function(e,o){l=d;var s=d.wpColorPicker("color");if(s==null){a=""}else{a=s}l.val(a).trigger("change");l.css("background",a);i=l.data("affect-on-change-el");t=l.data("affect-on-change-rule");if(null!=i){jQuery(i,".dslca-module-being-edited").css(t,a)}r=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument);c=l.data("id");jQuery('.dslca-module-option-front[data-id="'+c+'"]',r).val(a);r.addClass("dslca-module-change-made")}});var o=e.find(".wp-picker-holder .iris-picker");o.append('<button type="button" class="dslca-colorpicker-apply">Apply</button>');var s=e.find(".dslca-colorpicker-apply");d.wpColorPicker("open");jQuery(s).on("click",function(){if("#fff"!==a&&"#ffffff"!==a&&"#000"!==a&&"#000000"!==a&&"rgba(0,0,0,0)"!==a){if(undefined===localStorage[m]){var e=[a];localStorage[m]=JSON.stringify(e)}else{var e=JSON.parse(localStorage[m]);if(e.indexOf(a)==-1){e.unshift(a);if(3<e.length){e.pop()}}localStorage[m]=JSON.stringify(e)}}d.wpColorPicker("close")});LiveComposer.Builder.Helpers.colorpickers.push(jQuery(this))})}function dslc_module_options_numeric(e){if(dslcDebug)console.log("dslc_module_options_numeric");var o=e;jQuery(o).each(function(){var s=jQuery(this);if(0===jQuery(".dslca-module-edit-field-slider",s).length){s.append('<div class="dslca-module-edit-field-slider"></div>')}var l=true;if(s.hasClass("dslca-modules-section-edit-option")){l=false}else{l=true}if(l){var d=s.find(".dslca-module-edit-field")}else{var d=s.find(".dslca-modules-section-edit-field")}if(s.hasClass("dslca-modules-section-edit-option")){var d=s.find(".dslca-modules-section-edit-field")}else{var d=s.find(".dslca-module-edit-field")}var i="",t=s.find(".dslca-module-edit-field-slider"),e=parseFloat(d.val()),a=parseFloat(d.data("max")),r=parseFloat(d.data("min")),o=parseFloat(d.data("increment")),c=a,n=r;var u=false;if(undefined!==d.data("onlypositive")&&1===d.data("onlypositive")){u=true}if(e>=a){a=e*2}if(!u&&e<=r){r=e*2}t.slider({min:r,max:a,step:o,value:d.val(),slide:function(e,o){d.val(o.value+i);d.trigger("change")},change:function(e,o){if(o.value>=a||o.value<=r){t.slider("destroy");dslc_module_options_numeric(s)}}});t.show();jQuery(s).on("mouseleave",function(){if(undefined!==t.slider("instance")){jQuery(t).slider("destroy")}t.remove()});if(d[0].classList.contains("slider-initiated"))return;d[0].classList.add("slider-initiated");d.on("keyup",function(e){if(undefined===e){return false}if(e.shiftKey){if(e.keyCode==38){this.value=(parseInt(this.value)||0)+9;d.trigger("change")}if(e.keyCode==40){this.value=parseInt(this.value)+0-9;d.trigger("change")}}if(e.keyCode==8||e.keyCode==45){d.trigger("change")}if(e.keyCode>=48&&e.keyCode<=57||e.keyCode>=96&&e.keyCode<=105){d.trigger("change")}var o=e.which?e.which:e.keyCode;if((o>=48&&o<=57||o>=96&&o<=105)&&e.keyCode!=8&&e.keyCode!=39&&e.keyCode!=37&&e.keyCode!=46){return false}});d.on("change",function(e){if(u&&this.value<0){this.value=0}var o;if(l){o=jQuery(e.target.closest(".dslca-module-edit-option-slider"))}else{o=jQuery(e.target.closest(".dslca-modules-section-edit-option-slider"))}var s=o.find(".dslca-module-edit-field-slider");if(undefined!==s.slider("instance")){s.slider("value",this.value)}if(l){var d=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument);d.addClass("dslca-module-change-made")}});return false})}function dslc_disable_responsive_view(){jQuery("html").removeClass("dslc-responsive-preview");jQuery("body").removeClass("dslc-res-big dslc-res-smaller-monitor dslc-res-phone dslc-res-tablet")}function dslc_filter_module_options(e){dslc_module_options_section_filter(e)}function dslc_show_module_options_tab(e){dslc_module_options_tab_filter(e)}function dslc_confirm_changes(e){dslc_module_options_confirm_changes(e)}function dslc_cancel_changes(e){dslc_module_options_cancel_changes(e)}function dslc_init_colorpicker(){dslc_module_options_color()}function dslc_init_options_slider(){dslc_module_options_numeric()}function dslc_module_edit_options_hideshow_tabs(){dslc_module_options_hideshow_tabs()}"use strict";function dslc_template_load(e){if(dslcDebug)console.log("dslc_load_template");var o,s;jQuery("#wpcontent").prepend('<div class="lc-template-loader"></div>');var d='<div class="lc-loader lds-css"><div class="lds-spinner"><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div></div>';jQuery(".lc-template-loader").prepend(d);jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-load-template",dslc:"active",dslc_template_id:e},function(e){jQuery("#dslc-main",LiveComposer.Builder.PreviewAreaDocument).html(e.output);jQuery(".lc-template-loader").remove();LiveComposer.Builder.PreviewAreaWindow.dslc_carousel();LiveComposer.Builder.rows_init();LiveComposer.Builder.moduleareas_init();dslc_drag_and_drop();dslc_show_publish_button();dslc_generate_code()})}function dslc_template_import(){if(dslcDebug)console.log("dslc_import_template");var e,o;jQuery(".dslca-modal-templates-import .dslca-modal-title").css({opacity:0});jQuery(".dslca-modal-templates-import .dslca-loading").show();jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-import-template",dslc:"active",dslc_template_code:jQuery("#dslca-import-code").val()},function(e){jQuery("#dslc-main",LiveComposer.Builder.PreviewAreaDocument).html(e.output);jQuery(".dslca-modal-templates-import .dslca-loading").hide();jQuery(".dslca-modal-templates-import .dslca-modal-title").css({opacity:1});dslc_hide_modal("",".dslca-modal-templates-import");LiveComposer.Builder.PreviewAreaWindow.dslc_bg_video();dslc_drag_and_drop();dslc_show_publish_button();dslc_generate_code()})}function dslc_template_save(){if(dslcDebug)console.log("dslc_save_template");jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-save-template",dslc:"active",dslc_template_code:jQuery("#dslca-code").val(),dslc_template_title:jQuery("#dslca-save-template-title").val()},function(e){dslc_hide_modal("",".dslca-modal-templates-save")})}function dslc_template_delete(o){if(dslcDebug)console.log("dslc_delete_template");jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-delete-template",dslc:"active",dslc_template_id:o},function(e){jQuery('.dslca-template[data-id="'+o+'"]').fadeOut(200,function(){jQuery(this).remove()})})}function dslc_load_template(e){dslc_template_load(e)}function dslc_import_template(){dslc_template_import()}function dslc_save_template(){dslc_template_save()}function dslc_delete_template(e){dslc_template_delete(e)}jQuery(document).ready(function(o){jQuery(document).on("click",".dslca-template",function(e){e.preventDefault();dslc_template_load(jQuery(this).data("id"))});o(".dslca-template-import-form").submit(function(e){e.preventDefault();dslc_template_import()});o(".dslca-template-save-form").submit(function(e){e.preventDefault();dslc_template_save()});o(document).on("click",".dslca-delete-template-hook",function(e){e.stopPropagation();dslc_template_delete(o(this).data("id"))})});"use strict";window.onerror=function(e,o,s,d){dslca_generate_error_report(e,o,s,d)};jQuery(document).on("click",".dslca-show-js-error-hook",function(e){e.preventDefault();var o=document.getElementById("dslca-js-errors-report");if(!jQuery("body").hasClass("dslca-saving-in-progress")){LiveComposer.Builder.UI.CModalWindow({title:'<a href="https://livecomposerplugin.com/support/" target="_blank"><span class="dslca-icon dslc-icon-comment"></span> Get Support Info</a>',content:'<span class="dslca-error-report">'+o.value+"</span>"})}});jQuery(document).ready(function(e){jQuery("#page-builder-frame")[0].contentWindow.onerror=function(e,o,s,d){dslca_generate_error_report(e,o,s,d)};dslca_update_report_log();jQuery("body").addClass("dslca-enabled dslca-drag-not-in-progress");jQuery(".dslca-invisible-overlay").hide();jQuery(".dslca-section").eq(0).show()});window.previewAreaTinyMCELoaded=function(){var e=this;LiveComposer.Builder.PreviewAreaWindow=this;LiveComposer.Builder.PreviewAreaDocument=jQuery(this.document);jQuery("#wpadminbar",LiveComposer.Builder.PreviewAreaDocument).remove();dslc_fix_contenteditable();var o=LiveComposer.Builder.PreviewAreaDocument.find("#dslc-main").eq(0)[0];new LiveComposer.Builder.Elements.CSectionsContainer(o);jQuery(document).trigger("editorFrameLoaded");dslc_drag_and_drop();dslc_generate_code();dslc_keypress_events();LiveComposer.Builder.UI.initPreviewAreaScroller()};jQuery(document).on("click",".dslca-currently-editing",function(){var e=false,o=false,s;if(jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).length){e=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument);s="#5890e5"}else if(jQuery(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).length){e=jQuery(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument);s="#eabba9"}if(e){o=e.offset().top-100;if(o<0){o=0}var d=[];jQuery("html, body",LiveComposer.Builder.PreviewAreaDocument).animate({scrollTop:o},300,function(){e.removeAttr("style")})}});jQuery(window).keypress(function(e){if((e.metaKey||e.ctrlKey)&&e.keyCode==83){dslc_ajax_save_composer();e.preventDefault();return false}});jQuery(document).on("click",".dslca-hide-composer-hook",function(e){e.preventDefault();dslc_hide_composer()});jQuery(document).on("click",".dslca-show-composer-hook",function(e){e.preventDefault();dslc_show_composer()});jQuery(document).on("click",".dslca-go-to-modules-hook",function(e){e.preventDefault();dslc_show_section(".dslca-modules")});jQuery(document).on("click",".dslca-go-to-section-hook",function(e){e.preventDefault();if(jQuery(this).hasClass("dslca-active")){return}var o=jQuery(this).data("section");dslc_show_section(o);if(jQuery(this).hasClass("dslca-go-to-section-modules")||jQuery(this).hasClass("dslca-go-to-section-templates")){jQuery(this).addClass("dslca-active").siblings(".dslca-go-to-section-hook").removeClass("dslca-active")}});jQuery(document).on("click",".dslca-close-composer-hook",function(e){e.preventDefault();var o=jQuery(this).attr("href");if(!jQuery("body").hasClass("dslca-saving-in-progress")&&jQuery(".dslca-save-composer").is(":visible")){LiveComposer.Builder.UI.CModalWindow({title:DSLCString.str_exit_title,content:DSLCString.str_exit_descr,confirm:function(){window.location=o}})}else{window.location=o}});jQuery(document).on("click",".dslca-submit",function(){jQuery(this).closest("form").submit()});jQuery(document).on("click",".dslca-section-title",function(e){e.stopPropagation();if(jQuery(".dslca-section-title-filter",this).length){dslc_generate_filters();jQuery(".dslca-section-title-filter-options").slideToggle(300)}});jQuery(document).on("click",".dslca-section-title-filter-options a",function(e){e.preventDefault();e.stopPropagation();var o=jQuery(this).data("origin");var s=jQuery(this).closest(".dslca-section");if(s.hasClass("dslca-templates-load")){jQuery(".dslca-section-title-filter-curr",s).text(jQuery(this).text())}else{jQuery(".dslca-section-title-filter-curr",s).text(jQuery(this).text())}jQuery(".dslca-section-scroller-inner").css({left:0});dslc_filter_origin(o,s);jQuery(".dslca-section-title-filter-options").slideToggle(300)});function dslc_hide_composer(){if(dslcDebug)console.log("dslc_hide_composer");jQuery(".dslca-hide-composer-hook").hide();jQuery(".dslca-show-composer-hook").show();jQuery("body").addClass("dslca-composer-hidden");jQuery("body",LiveComposer.Builder.PreviewAreaDocument).addClass("dslca-composer-hidden");jQuery(".dslca-container").css({bottom:jQuery(".dslca-container").outerHeight()*-1});jQuery(".dslca-header").hide()}function dslc_show_composer(){if(dslcDebug)console.log("dslc_show_composer");jQuery(".dslca-show-composer-hook").hide();jQuery(".dslca-hide-composer-hook").show();jQuery("body").removeClass("dslca-composer-hidden");jQuery("body",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-composer-hidden");jQuery(".dslca-container").css({bottom:0});jQuery(".dslca-header").show()}function dslc_show_publish_button(){if(dslcDebug)console.log("dslc_show_publish_button");jQuery(".dslca-save-composer").show().addClass("dslca-init-animation");jQuery(".dslca-save-draft-composer").show().addClass("dslca-init-animation")}function dslc_hide_publish_button(){if(dslcDebug)console.log("dslc_hide_publish_button");jQuery(".dslca-save-composer").hide();jQuery(".dslca-save-draft-composer").hide()}function dslc_show_section(e){if(dslcDebug)console.log("dslc_show_section");var o=jQuery(e).data("title"),s=jQuery(e).data("bg");jQuery(".dslca-container").css({bottom:-500});jQuery(".dslca-section").hide();jQuery(e).show();if(e==".dslca-module-edit"){jQuery(".dslca-currently-editing").show().find("strong").text(jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).attr("title")+" element")}else if(e==".dslca-modules-section-edit"){jQuery(".dslca-currently-editing").show().css("background-color","#e5855f").find("strong").text("Row")}else{jQuery(".dslca-currently-editing").hide().find("strong").text("")}dslc_module_options_tab_filter();jQuery(".dslca-container").css({bottom:0});jQuery(e).find("input.dslca-module-edit-field-colorpicker").each(function(e){jQuery(this).css("background",jQuery(this).val())})}function dslc_generate_filters(){if(dslcDebug)console.log("dslc_generate_filters");var e,o=[],s='<a html="#" data-origin="">Show All</a>',d=jQuery(".dslca-section:visible .dslca-origin");d.each(function(){e=jQuery(this);if(jQuery.inArray(e.data("origin"),o)==-1){o.push(e.data("origin"));s+='<a href="#" data-origin="'+e.data("origin")+'">'+e.data("origin")+"</a>"}});jQuery(".dslca-section:visible .dslca-section-title-filter-options").html(s).css("background",jQuery(".dslca-section:visible").data("bg"))}function dslc_filter_origin(e,o){if(dslcDebug)console.log("dslc_filter_origin");jQuery(".dslca-origin",o).attr("data-display-module","false");jQuery('.dslca-origin[data-origin="'+e+'"]',o).attr("data-display-module","true");if(e==""){jQuery(".dslca-origin",o).attr("data-display-module","true");jQuery(".dslca-origin.dslca-exclude",o).attr("data-display-module","false")}}function dslc_drag_and_drop(){if(dslcDebug)console.log("dslc_drag_and_drop");var e,s,d,l;var o=jQuery(".dslca-modules .dslca-section-scroller-content");if(o.length==0){o=[document.createElement("div")]}var i=Sortable.create(o[0],{sort:false,group:{name:"modules",pull:"clone",put:false},animation:150,handle:".dslca-module",draggable:".dslca-module",chosenClass:"dslca-module-dragging",scroll:true,scrollSensitivity:150,scrollSpeed:15,setData:function(e,o){e.setData(LiveComposer.Utils.msieversion()!==false?"Text":"text/html",o.innerHTML)},onStart:function(e){e.oldIndex;jQuery("body").removeClass("dslca-new-module-drag-not-in-progress").addClass("dslca-new-module-drag-in-progress");jQuery("body",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-new-module-drag-not-in-progress").addClass("dslca-new-module-drag-in-progress");jQuery("#dslc-header").addClass("dslca-header-low-z-index")},onEnd:function(e){e.oldIndex;e.newIndex;var o=e.item;e.preventDefault();if(jQuery(o).closest(".dslca-section-scroller-content").length>0)return false;jQuery(".dslca-options-hovered",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-options-hovered");s=jQuery(o.parentNode);d=o.dataset.id;dslc_generate_code();if(d=="DSLC_M_A"||jQuery("body").hasClass("dslca-module-drop-in-progress")||s.closest("#dslc-header").length||s.closest("#dslc-footer").length){}else{jQuery("body").addClass("dslca-module-drop-in-progress");dslc_module_output_default(d,function(e){l=e.output;var o=LiveComposer.Builder.Helpers.insertModule(l,jQuery(".dslca-module",s));setTimeout(function(){LiveComposer.Builder.PreviewAreaWindow.dslc_masonry();jQuery("body").removeClass("dslca-module-drop-in-progress")},700);jQuery(".dslca-modules-area-manage",s).css({visibility:"visible"});LiveComposer.Builder.PreviewAreaWindow.dslc_carousel();LiveComposer.Builder.PreviewAreaWindow.dslc_tabs();LiveComposer.Builder.PreviewAreaWindow.dslc_init_accordion();dslc_generate_code();dslc_show_publish_button()});jQuery(o).find(".dslca-icon").attr("class","").attr("class","dslca-icon dslc-icon-refresh dslc-icon-spin");jQuery(".dslca-modules-area-manage",s).css({visibility:"hidden"})}LiveComposer.Builder.UI.stopScroller();jQuery("body").removeClass("dslca-new-module-drag-in-progress").addClass("dslca-new-module-drag-not-in-progress");jQuery("body",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-new-module-drag-in-progress").addClass("dslca-new-module-drag-not-in-progress");jQuery("#dslc-header").removeClass("dslca-header-low-z-index")},onAdd:function(e){var o=e.item;e.from},onUpdate:function(e){var o=e.item;dslc_show_publish_button()},onSort:function(e){e.preventDefault()},onRemove:function(e){},onFilter:function(e){var o=e.item},onMove:function(e){e.dragged;e.draggedRect;e.related;e.relatedRect;jQuery(e.to).addClass("dslca-options-hovered")}})}function dslc_option_changed(){dslc_show_publish_button()}function dslc_module_dragdrop_init(){dslc_drag_and_drop()}function dslc_fix_contenteditable(){LiveComposer.Builder.PreviewAreaDocument.on("dragstart",".dslca-module, .dslc-module-front, .dslc-modules-area, .dslc-modules-section",function(e){jQuery("[contenteditable]",LiveComposer.Builder.PreviewAreaDocument).attr("contenteditable",false)});LiveComposer.Builder.PreviewAreaDocument.on("dragend mousedown",".dslca-module, .dslc-module-front, .dslc-modules-area, .dslc-modules-section",function(e){jQuery("[contenteditable]",LiveComposer.Builder.PreviewAreaDocument).attr("contenteditable",true)})}function dslc_toogle_control(e){if(e===undefined)e=false;if(!e)return;var o=jQuery(".dslca-module-edit-option-"+e);var s=o.find(".dslca-module-edit-field");var d=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument);var l=d[0].id;var i="";if("tablet_responsive"===o.data("tab")){i="body.dslc-res-tablet "}else if("phone_responsive"===o.data("tab")){i="body.dslc-res-phone "}var t=s.data("affect-on-change-el");if(t===undefined)return;var a=t.split(",");t="";for(var r=0;r<a.length;r++){if(r>0){t+=", "}t+=i+"#"+l+" "+a[r]}var c=s.data("affect-on-change-rule").replace(/ /g,"");var n=c.split(",");var u;var m=s.data("ext");o.toggleClass("dslca-option-off");if(o.hasClass("dslca-option-off")){u=dslc_get_control_value(e);s.data("val-bckp",u);for(var r=0;r<n.length;r++){jQuery(t,LiveComposer.Builder.PreviewAreaDocument).css(n[r],"");disable_css_rule(t,n[r],l)}s.val("").trigger("change")}else{s.val(s.data("val-bckp")).trigger("change");u=dslc_get_control_value(e);u=dslc_combine_value_and_extension(u,m||"");for(var r=0;r<n.length;r++){var p=t+"{"+n[r]+": "+u+"}";LiveComposer.Builder.Helpers.processInlineStyleTag({context:o,rule:n[r],elems:t.replace(new RegExp("#"+l,"gi"),"").trim(),styleContent:p})}}}jQuery(document).ready(function(d){jQuery(document).on("click",".dslca-module-edit-option .dslc-control-toggle",function(e){e.preventDefault();var o=jQuery(e.target).closest(".dslca-module-edit-option").find(".dslca-module-edit-field").data("id");dslc_toogle_control(o)});jQuery(document).on("mousedown",".dslca-module-edit-option",function(e){var o=d(".dslc-control-toggle");if(!o.is(e.target)&&o.has(e.target).length===0){if(jQuery(e.target).closest(".dslca-module-edit-option").hasClass("dslca-option-off")){var s=d(e.target).closest(".dslca-module-edit-option").find(".dslca-module-edit-field").data("id");dslc_toogle_control(s)}}})});function disable_css_rule(e,o,s){var d;var l="css-for-"+s;var i=document.getElementById("page-builder-frame").contentWindow.document.getElementById(l);e=e.replace(/\s\s+/g," ");if(i){i=i.sheet;if(i["rules"]){d="rules"}else if(i["cssRules"]){d="cssRules"}else{}for(var t=0;t<i[d].length;t++){if(i[d][t].selectorText==e){if(i[d][t].style[o]){i[d][t].style[o]="";break}}}}}function dslc_combine_value_and_extension(e,o){if(""===e||null===e){return e}if(e.indexOf(o)==-1){e=e+o}return e}function dslc_get_control_value(e){var o=jQuery(".dslca-module-edit-option-"+e);var s="text";var d=o.find(".dslca-module-edit-field");var l;l=d.val();return l}function dslc_keypress_events(){jQuery([document,LiveComposer.Builder.PreviewAreaWindow.document]).unbind("keydown").bind("keydown",function(e){dslc_modal_keypress_events(e);dslc_disable_backspace_navigation(e);dslc_notice_on_refresh(e);dslc_save_page(e)})}function dslc_disable_backspace_navigation(e){var o=false;if(e.keyCode===8){var s=e.srcElement||e.target;if(s.tagName.toUpperCase()==="INPUT"&&(s.type.toUpperCase()==="TEXT"||s.type.toUpperCase()==="PASSWORD"||s.type.toUpperCase()==="NUMBER"||s.type.toUpperCase()==="FILE")||s.tagName.toUpperCase()==="TEXTAREA"||jQuery(s).hasClass("dslca-editable-content")||jQuery(s).hasClass("dslc-tabs-nav-hook-title")||jQuery(s).hasClass("dslc-accordion-title")){o=s.readOnly||s.disabled}else{o=true}}if(o){e.preventDefault()}}function dslc_notice_on_refresh(e){if(e.which==116||e.which===82&&e.metaKey){if(jQuery(".dslca-save-composer-hook").offsetParent!==null||jQuery(".dslca-module-edit-save").offsetParent!==null){e.preventDefault();LiveComposer.Builder.UI.CModalWindow({title:DSLCString.str_refresh_title,content:DSLCString.str_refresh_descr,confirm:function(){window.location.reload()}})}}}function dslc_save_page(e){if(e.which==83&&(e.metaKey||e.ctrlKey)){if(jQuery(".dslca-save-composer-hook").css("display")=="block"){dslc_save_composer();e.preventDefault();return false}}}function dslca_generate_error_report(e,o,s,d){var l="JavaScript error detected in a third-party plugin";if(o.match("wp-content/plugins/live-composer-page-builder/js")!=null){l="Live Composer returned JS error"}var i="";i+='<br /><strong style="color:#E55F5F;">'+l+"</strong><br />";i+=e+'<br /> File "'+o+'", line '+s+", char "+d+"<br />";if("undefined"!==typeof Storage){localStorage.setItem("js_errors_report",i)}}function dslca_update_report_log(){var e=document.getElementById("dslca-js-errors-report");var o=localStorage.getItem("js_errors_report");if(null!==o){e.value=o;localStorage.removeItem("js_errors_report");document.querySelector(".dslca-show-js-error-hook").setAttribute("style","visibility:visible")}}jQuery(document).on("editorFrameLoaded",function(){var a=jQuery;var e=a("div[data-hf]",LiveComposer.Builder.PreviewAreaDocument);var r="";e.each(function(e,o){var s=a(o).data("editing-link");var d=a(o).data("editing-type");var l=a(o).data("editing-label");var i=a(o).data("editing-sublabel");r+='<div class="dslc-hf-block-overlay"><a target="_blank" href="'+s+'" class="dslc-hf-block-overlay-button dslca-link">'+l+"</a>";if(i!==undefined){r+=' <span class="dslc-hf-block-overlay-text">'+i+"</span>"}r+="</div>";var t=document.createElement("div");t.innerHTML=r;o.append(t)})});"use strict";LiveComposer.Utils={addslashes:function(e){e=e.replace(/\\/g,"\\\\");e=e.replace(/\'/g,"\\'");e=e.replace(/\"/g,'\\"');e=e.replace(/\0/g,"\\0");return e},basename:function(e){return e.split(/[\\/]/).pop()},msieversion:function(){var e=window.navigator.userAgent;var o=e.indexOf("MSIE ");if(o>0||!!navigator.userAgent.match(/Trident.*rv\:11\./)){return parseInt(e.substring(o+5,e.indexOf(".",o)))}else{return false}},checkParams:function(e){if(!Array.isArray(e)){throw"Param is not array"}var o={integer:function(e){return isNaN(parseInt(e))},float:function(e){return isNaN(parseFloat(e))},string:function(e){return e!=null&&e!=undefined&&typeof e=="string"},array:function(e){return Array.isArray(e)},object:function(e){return typeof e=="object"}};e.map(function(e){if(!o[e[1]](e[0])){throw"Param "+e[0]+" is not "+e[1]}})},utf8_to_b64:function(e){return window.btoa(unescape(encodeURIComponent(e)))},b64_to_utf8:function(e){return decodeURIComponent(escape(window.atob(e)))},get_page_params:function(){return decodeURIComponent(window.location.search.slice(1)).split("&").reduce(function e(o,s){s=s.split("=");o[s[0]]=s[1];return o},{})},get_unique_id:function(){return Math.random().toString(32).slice(2)},update_module_property_raw:function(e,o,s){var d=e.getElementsByClassName("dslca-module-code")[0];var l=e.querySelector('.dslca-module-option-front[data-id="'+o+'"]');var i=d.value;i=JSON.parse(i);i[o]=s;i=JSON.stringify(i);d.value=i;d.innerHTML=i;l.value=s;l.innerHTML=s},update_section_property_raw:function(e,o,s){var d=e.getElementsByClassName("dslca-section-code")[0];var l=e.querySelector('.dslca-modules-section-settings input[data-id="'+o+'"]');var i=d.value;i=JSON.parse(i);i[o]=s;i=JSON.stringify(i);d.value=i;d.innerHTML=i;l.setAttribute("value",s);l.setAttribute("data-def",s)},publish:function(e,o){o=o?o:{};this.checkParams([[e,"string"],[o,"object"]]);jQuery(document).trigger({type:e,message:{details:o}});LiveComposer.Builder.PreviewAreaWindow.dslca_publish_event(e,o)}};"use strict";function dslc_dm_get_defaults(e){if(dslcDebug)console.log("dslc_dm_get_defaults");var o=e.find(".dslca-module-code").val();jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-dm-module-defaults",dslc:"active",dslc_modules_options:o},function(e){jQuery(".dslca-prompt-modal textarea").val(e.output)})}function dslc_editable_content_gen_code(e){if(dslcDebug)console.log("dslc_editable_content_gen_code");if(undefined===e){return false}var o,s,d;o=e.closest(".dslc-module-front");s=e.html().trim().replace(/<textarea/g,"<lctextarea").replace(/<\/textarea/g,"</lctextarea");d=e.data("id");jQuery('.dslca-module-option-front[data-id="'+d+'"]',o).val(s)}function dslc_filter_textarea(e){if(dslcDebug)console.log("dslc_filter_textarea");if(undefined===e){return false}var o;o=e.trim().replace(/<textarea/g,"<lctextarea").replace(/<\/textarea/g,"</lctextarea");return o}window.onbeforeunload=function(){return};jQuery(document).ready(function(g){jQuery(document).on("change",".dslca-modules-section-edit-field",function(){var e,o,s,d,l,i,t,a,r,c,n;e=g(this);o=e.data("id");l=e.val();i=l;t=l+e.data("ext");a=e.data("css-rule");s=g(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument);c=s;r=g('.dslca-modules-section-settings input[data-id="'+o+'"]',s);s.addClass("dslca-modules-section-change-made");if(e.hasClass("dslca-modules-section-edit-field-upload")){if(l&&l.length){l=g('.dslca-modules-section-settings input[data-id="dslca-img-url"]',s).val()}}if(a=="background-image"){l='url("'+l+'")';LiveComposer.Builder.PreviewAreaWindow.dslc_bg_video()}if(o=="bg_image_attachment"){s.removeClass("dslc-init-parallax")}if(o=="border-top"||o=="border-right"||o=="border-bottom"||o=="border-left"){var u=g('.dslca-modules-section-settings input[data-id="border_style"]').val();r=g('.dslca-modules-section-settings input[data-id="border"]',s);i="";var m=e.closest(".dslca-modules-section-edit-option-checkbox-wrapper");m.find(".dslca-modules-section-edit-field-checkbox").each(function(){if(g(this).is(":checked")){if(g(this).data("id")=="border-top"){i+="top "}else if(g(this).data("id")=="border-right"){i+="right "}else if(g(this).data("id")=="border-bottom"){i+="bottom "}else if(g(this).data("id")=="border-left"){i+="left "}}});if(e.is(":checked")){if(e.data("id")=="border-top"){s.css({"border-top-style":u})}else if(e.data("id")=="border-right"){s.css({"border-right-style":u})}else if(e.data("id")=="border-bottom"){s.css({"border-bottom-style":u})}else if(e.data("id")=="border-left"){s.css({"border-left-style":u})}}else{if(e.data("id")=="border-top"){s.css({"border-top-style":"hidden"})}else if(e.data("id")=="border-right"){s.css({"border-right-style":"hidden"})}else if(e.data("id")=="border-bottom"){s.css({"border-bottom-style":"hidden"})}else if(e.data("id")=="border-left"){s.css({"border-left-style":"hidden"})}}}else if(e.hasClass("dslca-modules-section-edit-field-checkbox")){var p=g(this).closest(".dslca-modules-section-edit-option-checkbox-wrapper").find(".dslca-modules-section-edit-field-checkbox");var f="";p.each(function(){if(g(this).prop("checked")){f+=g(this).data("val")+" "}});var i=f;if(e.data("id")=="show_on"){if(f.indexOf("desktop")!==-1){g(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslc-hide-on-desktop")}else{g(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).addClass("dslc-hide-on-desktop")}if(f.indexOf("tablet")!==-1){g(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslc-hide-on-tablet")}else{g(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).addClass("dslc-hide-on-tablet")}if(f.indexOf("phone")!==-1){g(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslc-hide-on-phone")}else{g(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).addClass("dslc-hide-on-phone")}}}else if(o=="bg_image_attachment"&&l=="parallax"||o=="type"){if(o=="bg_image_attachment"){s.addClass("dslc-init-parallax");LiveComposer.Builder.PreviewAreaWindow.dslc_parallax()}else if(o=="type"){if(l=="full"){s.addClass("dslc-full")}else{s.removeClass("dslc-full")}LiveComposer.Builder.PreviewAreaWindow.dslc_masonry()}}else if(o=="columns_spacing"){if(l=="nospacing"){s.addClass("dslc-no-columns-spacing")}else{s.removeClass("dslc-no-columns-spacing")}}else if(o=="custom_class"){}else if(o=="custom_id"){}else if(o=="bg_video"){jQuery(".dslc-bg-video video",s).remove();if(l&&l.length){var v=l;v=v.replace(".webm","");v=v.replace(".mp4","");jQuery(".dslc-bg-video-inner",s).html('<video><source type="video/mp4" src="'+v+'.mp4" /><source type="video/webm" src="'+v+'.webm" /></video>');LiveComposer.Builder.PreviewAreaWindow.dslc_bg_video()}}else if(o=="bg_image_thumb"){if(i=="enabled"){if(jQuery("#dslca-post-data-thumb").length){var h="url('"+jQuery("#dslca-post-data-thumb").val()+"')";c.css(a,h)}}else if(i=="disabled"){c.css(a,"none")}}else{if(e.data("css-element")){c=jQuery(e.data("css-element"),s)}a=a.replace(/ /g,"").split(",");var _;if(null!=e.data("ext")){_=t}else{_=l}for(var y=0;y<a.length;y++){c.css(a[y],_)}}r.val(i);if(!LiveComposer.Builder.Flags.generate_code_after_row_changed)return false});jQuery(document).on("blur",".dslc-editable-area",function(e){var o=g(this).closest(".dslc-module-front");var s=g(this).data("dslc-option-id");var d=g(this).html();jQuery('.dslca-module-options-front textarea[data-id="'+s+'"]',o).val(d);dslc_module_output_altered()});jQuery(document).on("change",".dslca-module-edit-field",function(){if(dslcDebug)console.log("on change event for .dslca-module-edit-field");var e="",o="",l=jQuery(this),s=l.data("id"),d=l.closest(".dslca-module-edit-option"),i=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument),t=i.data("dslc-module-id"),a=jQuery(".dslca-module-options-front textarea",i);i.addClass("dslca-module-change-made");if(d.hasClass("dslca-module-edit-option-select")||d.hasClass("dslca-module-edit-option-checkbox")){dslc_module_options_hideshow_tabs()}if(jQuery(this).closest(".dslca-module-edit-option").data("refresh-on-change")=="active"){if(d.find(".dslca-module-edit-option-checkbox-wrapper").length){var r=jQuery('input[type="checkbox"]',d);r.each(function(){if(g(this).prop("checked")){e=e+jQuery(this).val()+" "}})}else if(l.hasClass("dslca-module-edit-option-radio")){var e=jQuery(".dslca-module-edit-field:checked",l).val()}else{var e=l.val();if(s=="orientation"&&e=="horizontal"){var c=jQuery(".dslca-module-edit-option-thumb_width .dslca-module-edit-field");c.val("40").trigger("change")}else if(s=="orientation"&&e=="vertical"){var c=jQuery(".dslca-module-edit-option-thumb_width .dslca-module-edit-field");c.val("100").trigger("change")}}e=dslc_filter_textarea(e);jQuery('.dslca-module-options-front textarea[data-id="'+s+'"]',i).val(e);jQuery(".dslca-container-loader").show();dslc_module_output_altered(function(){jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).addClass("dslca-module-change-made");if(s=="css_load_preset"&&!jQuery("body").hasClass("dslca-new-preset-added")){dslc_module_options_show(t);jQuery(".dslca-container-loader").hide()}else{jQuery(".dslca-container-loader").hide()}jQuery("body").removeClass("dslca-new-preset-added");LiveComposer.Utils.publish("LC.moduleChange",{moduleId:t,optionID:s,optionVal:l.val()})})}else{if(l.hasClass("dslca-module-edit-field-font")){var n=l.val();n=n+":400,100,200,300,500,600,700,800,900";var u=l.data("affect-on-change-el");var m=l.data("affect-on-change-rule");var p=l.val();var f=p;var v=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument);if(l.val().length&&dslcGoogleFontsArray.indexOf(l.val())!==-1){document.getElementById("page-builder-frame").contentWindow.WebFont.load({google:{families:[n]},active:function(e,o){if(jQuery(".dslca-font-loading").closest(".dslca-module-edit-field-font-next").length){jQuery(".dslca-font-loading").removeClass("dslca-font-loading").find(".dslca-icon").removeClass("dslc-icon-spin").addClass("dslc-icon-chevron-right")}else{jQuery(".dslca-font-loading").removeClass("dslca-font-loading").find(".dslca-icon").removeClass("dslc-icon-spin").addClass("dslc-icon-chevron-left")}var s=u.split(",");var d="#"+v[0].id+" "+s.join(", #"+v[0].id+" ")+" {"+m+": "+p+"}";LiveComposer.Builder.Helpers.processInlineStyleTag({context:l,rule:m,elems:u,styleContent:d})},inactive:function(e,o){if(jQuery(".dslca-font-loading").closest(".dslca-module-edit-field-font-next").length){jQuery(".dslca-font-loading").removeClass("dslca-font-loading").find(".dslca-icon").removeClass("dslc-icon-spin").addClass("dslc-icon-chevron-right")}else{jQuery(".dslca-font-loading").removeClass("dslca-font-loading").find(".dslca-icon").removeClass("dslc-icon-spin").addClass("dslc-icon-chevron-left")}}})}else{setTimeout(function(){if(jQuery(".dslca-font-loading.dslca-module-edit-field-font-next").length){jQuery(".dslca-font-loading").removeClass("dslca-font-loading").find(".dslca-icon").removeClass("dslc-icon-spin").addClass("dslc-icon-chevron-right")}else{jQuery(".dslca-font-loading").removeClass("dslca-font-loading").find(".dslca-icon").removeClass("dslc-icon-spin").addClass("dslc-icon-chevron-left")}var e=u.split(",");var o="#"+v[0].id+" "+e.join(", #"+v[0].id+" ")+" {"+m+": "+p+"}";LiveComposer.Builder.Helpers.processInlineStyleTag({context:l,rule:m,elems:u,styleContent:o})},100)}}else if(l.hasClass("dslca-module-edit-field-checkbox")){var r=jQuery('input[type="checkbox"]',d);r.each(function(){if(jQuery(this).prop("checked")){e=e+"solid ";o=o+g(this).val()+" "}else{e=e+"none "}})}if(!l.hasClass("dslca-module-edit-field-font")&&l.data("affect-on-change-el")!=null&&l.data("affect-on-change-rule")!=null){var h=l.data("ext")||"";var u=l.data("affect-on-change-el");var m=l.data("affect-on-change-rule");var p=l.val();var f=p;if(l.hasClass("dslca-module-edit-field-checkbox")){p=e;f=o}if(l.hasClass("dslca-module-edit-field-image")){p='url("'+p+'")'}if(null!==p&&p.length<1&&(m=="background-color"||m=="background")){p="transparent"}m.split(",").forEach(function(e){e=e.replace(/\s+/g,"");var o=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument);var s=u.split(",");var d="#"+o[0].id+" "+s.join(", #"+o[0].id+" ")+" {"+e+": "+p+h+"}";LiveComposer.Builder.Helpers.processInlineStyleTag({context:l,rule:e,elems:u,styleContent:d})})}var _="";if(s.indexOf("css_")!==-1){_=f}else{_=l.val()}jQuery('.dslca-module-option-front[data-id="'+s+'"]',i).val(_);LiveComposer.Utils.publish("LC.moduleChange",{moduleId:i[0].id,optionID:s,optionVal:f||l.val()})}})});jQuery(document).ready(function(e){var i;jQuery(document).on("click",".dslca-module-edit-field-image-add-hook, .dslca-modules-section-edit-field-image-add-hook",function(){var s=jQuery(this);if(s.hasClass("dslca-module-edit-field-image-add-hook")){var d=s.siblings(".dslca-module-edit-field-image");var l=s.siblings(".dslca-module-edit-field-image-remove-hook")}else{var d=s.siblings(".dslca-modules-section-edit-field-upload");var l=s.siblings(".dslca-modules-section-edit-field-image-remove-hook")}var e=false;i=wp.media.frames.file_frame=wp.media({title:"Choose Image",button:{text:"Confirm"},multiple:e});i.on("select",function(){var e=i.state().get("selection").first().toJSON();d.val(e.id);var o=s.parent().attr("data-id");if(e.alt!=""&&o=="image"){jQuery('.dslca-module-edit-option-image_alt input[data-id="image_alt"]').val(e.alt)}if(e.title!=""&&o=="image"){jQuery('.dslca-module-edit-option-image_title input[data-id="image_title"]').val(e.title)}jQuery(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).find('.dslca-modules-section-settings input[data-id="dslca-img-url"]').val(e.url);d.trigger("change");s.hide();l.show()});i.open()});jQuery(document).on("click",".dslca-module-edit-field-image-remove-hook, .dslca-modules-section-edit-field-image-remove-hook",function(){var e=jQuery(this);if(e.hasClass("dslca-module-edit-field-image-remove-hook")){var o=e.siblings(".dslca-module-edit-field-image");var s=e.siblings(".dslca-module-edit-field-image-add-hook")}else{var o=e.siblings(".dslca-modules-section-edit-field-upload");var s=e.siblings(".dslca-modules-section-edit-field-image-add-hook")}o.val("").trigger("change");var d=e.parent().attr("data-id");if(d=="image"){jQuery(".dslca-module-edit-option-image_alt input").attr("value","").trigger("change");jQuery(".dslca-module-edit-option-image_alt input").attr("data-val-bckp","").trigger("change");jQuery(".dslca-module-edit-option-image_title input").attr("value","").trigger("change");jQuery(".dslca-module-edit-option-image_title input").attr("data-val-bckp","").trigger("change")}e.hide();s.show()});jQuery(document).on("click",".dslca-wp-editor-save-hook",function(){var e=jQuery(".dslca-wysiwyg-active",LiveComposer.Builder.PreviewAreaDocument).closest(".dslc-module-front");if(typeof tinymce!="undefined"){if(jQuery("#wp-dslcawpeditor-wrap").hasClass("tmce-active")){var o=tinymce.get("dslcawpeditor");var s=o.getContent()}else{var s=jQuery("#dslcawpeditor").val()}jQuery(".dslca-wp-editor").hide();jQuery(".dslca-wysiwyg-active",LiveComposer.Builder.PreviewAreaDocument).html(s);if(e.hasClass("dslc-module-handle-like-accordion")){jQuery(".dslca-wysiwyg-active",LiveComposer.Builder.PreviewAreaDocument).siblings(".dslca-accordion-plain-content").val(s);var d=e.find(".dslc-accordion");LiveComposer.Builder.PreviewAreaWindow.dslc_accordion_generate_code(d)}else if(e.hasClass("dslc-module-handle-like-tabs")){jQuery(".dslca-wysiwyg-active",LiveComposer.Builder.PreviewAreaDocument).siblings(".dslca-tab-plain-content").val(s);var l=e.find(".dslc-tabs");LiveComposer.Builder.PreviewAreaWindow.dslc_tabs_generate_code(l)}dslc_editable_content_gen_code(jQuery(".dslca-wysiwyg-active",LiveComposer.Builder.PreviewAreaDocument));jQuery(".dslca-wysiwyg-active",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-wysiwyg-active")}else{console.info("Live Composer: TinyMCE is undefined.")}});jQuery(document).on("click",".dslca-wp-editor-cancel-hook",function(){e(".dslca-wp-editor").hide();e(".dslca-wysiwyg-active",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-wysiwyg-active")})});
|
1 |
+
"use strict";function dslc_ui_animations(){if(dslcDebug)console.log("dslc_ui_animations");jQuery(document).on("mouseenter",".dslca-modules-area-manage",function(){jQuery(this).closest(".dslc-modules-area").addClass("dslca-options-hovered")}).on("mouseleave",".dslca-modules-area-manage",function(){jQuery(this).closest(".dslc-modules-area").removeClass("dslca-options-hovered")});jQuery(document).on("mouseenter",".dslca-drag-not-in-progress .dslc-module-front",function(e){if(!jQuery("body").hasClass("dslca-composer-hidden")){if(jQuery(this).height()<190)jQuery(".dslca-module-manage",this).addClass("dslca-horizontal");else jQuery(".dslca-module-manage",this).removeClass("dslca-horizontal")}}).on("mouseleave",".dslca-drag-not-in-progress .dslc-module-front",function(e){if(!jQuery("body").hasClass("dslca-composer-hidden")){}});jQuery(document).on("mouseenter",".dslca-drag-not-in-progress .dslc-modules-area",function(e){var o=jQuery(this);if(!jQuery("body").hasClass("dslca-composer-hidden")){if(jQuery(this).height()<130)jQuery(".dslca-modules-area-manage",this).addClass("dslca-horizontal");else jQuery(".dslca-modules-area-manage",this).removeClass("dslca-horizontal")}}).on("mouseleave",".dslca-drag-not-in-progress .dslc-modules-area",function(e){var o=jQuery(this);if(!jQuery("body").hasClass("dslca-composer-hidden")){}})}jQuery(document).ready(function(){dslc_ui_animations()});"use strict";function dslc_save_composer(){if(dslcDebug)console.log("dslc_save_composer");dslc_generate_code();dslca_gen_content_for_search();var e=jQuery("#dslca-code").val(),o=jQuery("#dslca-content-for-search").val(),s=jQuery(".dslca-container").data("post-id");jQuery("body").addClass("dslca-saving-in-progress");jQuery(".dslca-save-composer .dslca-icon").removeClass("dslc-icon-ok").addClass("dslc-icon-spin dslc-icon-spinner");jQuery.ajax({method:"POST",type:"POST",url:DSLCAjax.ajaxurl,data:{action:"dslc-ajax-save-composer",dslc:"active",dslc_post_id:s,dslc_code:e,dslc_content_for_search:o},timeout:3e4}).done(function(e){if(e.status=="success"){jQuery(".dslca-save-composer").fadeOut(250);jQuery(".dslca-save-draft-composer").fadeOut(250);jQuery("body").append('<iframe class="lbmn-cache-iframe" id="lbmn-cache-iframe-'+s+'" src="'+DSLCSiteData.siteurl+"/?p="+s+'" ></iframe>');jQuery(".lbmn-cache-iframe").each(function(e,o){jQuery(o).load(function(){jQuery(o).remove()})})}else{alert("Something went wrong, please try to save again. Are you sure to make any changes? Error Code: "+e.status)}}).fail(function(e){if(e.statusText=="timeout"){alert("The request timed out after 30 seconds. Server do not respond in time. Please try again.")}else{alert("Something went wrong. Please try again. Error Code: "+e.statusText)}}).always(function(e){jQuery(".dslca-save-composer .dslca-icon").removeClass("dslc-icon-spin dslc-icon-spinner").addClass("dslc-icon-ok");jQuery("body").removeClass("dslca-saving-in-progress")})}function dslc_save_draft_composer(){if(dslcDebug)console.log("dslc_save_draft_composer");var e=jQuery("#dslca-code").val(),o=jQuery(".dslca-container").data("post-id");jQuery("body").addClass("dslca-saving-in-progress");jQuery(".dslca-save-draft-composer .dslca-icon").removeClass("dslc-icon-ok").addClass("dslc-icon-spin dslc-icon-spinner");jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-save-draft-composer",dslc:"active",dslc_post_id:o,dslc_code:e},function(e){jQuery(".dslca-save-draft-composer .dslca-icon").removeClass("dslc-icon-spin dslc-icon-spinner").addClass("dslc-icon-save");if(e.status=="success"){jQuery(".dslca-save-draft-composer").fadeOut(250)}else{alert("Something went wrong, please try to save again.")}jQuery("body").removeClass("dslca-saving-in-progress")})}function dslc_generate_code(){if(dslcDebug)console.log("dslc_generate_code");var e="",o,s="",d="",l=12,i=12,t=0,a=0,r,c,n,u,m,p="",f;jQuery("#dslc-main .dslc-modules-area",LiveComposer.Builder.PreviewAreaDocument).each(function(){if(jQuery(".dslc-module-front",this).length){jQuery(this).removeClass("dslc-modules-area-empty").addClass("dslc-modules-area-not-empty");jQuery(".dslca-no-content",this).hide()}else{jQuery(this).removeClass("dslc-modules-area-not-empty").addClass("dslc-modules-area-empty");jQuery(".dslca-no-content:not(:visible)",this).show().css({"-webkit-animation-name":"dslcBounceIn","-moz-animation-name":"dslcBounceIn","animation-name":"dslcBounceIn","animation-duration":"0.6s","-webkit-animation-duration":"0.6s",padding:0}).animate({padding:"35px 0"},300)}});jQuery("#dslc-main .dslc-modules-section",LiveComposer.Builder.PreviewAreaDocument).each(function(){m=jQuery(this);f=dslc_generate_section_code(m);m.find(".dslca-section-code").val(f);d=d+f+","});d=d.slice(0,-1);d="["+d+"]";jQuery("#dslca-code").val(d);jQuery("#dslca-export-code").val(d)}function dslc_generate_section_code(e){if(dslcDebug)console.log("dslc_generate_section_code");var i="",t,o="",s="",a=12,d=12,r=0,c=0,n,u,m,p,l,f="",v="",h;l=e;if(jQuery(".dslc-modules-area",l).length){l.removeClass("dslc-modules-section-empty").addClass("dslc-modules-section-not-empty")}else{l.removeClass("dslc-modules-section-not-empty").addClass("dslc-modules-section-empty")}jQuery(".dslc-modules-area.dslc-last-col, .dslc-modules-area.dslc-first-col",this).removeClass("dslc-last-col dslc-first-col");jQuery(".dslc-module-front.dslc-last-col, .dslc-module-front.dslc-first-col",this).removeClass("dslc-last-col dslc-first-col");c=0;v=l.find(".dslca-section-code").val();h=JSON.parse(v);f="";jQuery(".dslca-modules-section-settings input",l).each(function(){var e=jQuery(this);var o=e.data("id");var s=e.val();f=f+o+'="'+s+'" ';h[o]=s});if(undefined!==h["give_new_id"]){delete h["give_new_id"]}h["content"]=[];jQuery(".dslc-modules-area",l).each(function(){r=0;u=jQuery(this);n=parseInt(u.data("size"));m="no";p="no";c+=n;jQuery(this).removeClass("dslc-first-col");jQuery(this).removeClass("dslc-last-col");if(c==d){jQuery(this).addClass("dslc-last-col").next(".dslc-modules-area").addClass("dslc-first-col");c=0;m="yes"}else if(c>d){jQuery(this).removeClass("dslc-last-col").addClass("dslc-first-col");c=n;p="yes"}if(c==n){p="yes";jQuery(this).removeClass("dslc-last-col").addClass("dslc-first-col")}var l='{"element_type":"module_area","last":"'+m+'","first":"'+p+'","size":"'+n+'"}';l=JSON.parse(l);if(undefined!==l["give_new_id"]){delete l["give_new_id"]}l.content=[];jQuery(".dslc-module-front",u).each(function(){var o=jQuery(this);t=parseInt(o[0].getAttribute("data-dslc-module-size"));var e="no";var s="no";jQuery(this).removeClass("dslc-first-col");jQuery(this).removeClass("dslc-last-col");r+=t;if(r==a){jQuery(this).addClass("dslc-last-col");jQuery(this).next(".dslc-module-front").addClass("dslc-first-col");r=0;e="yes";s="yes"}else if(r>a){jQuery(this).removeClass("dslc-last-col").addClass("dslc-first-col");r=t;s="yes"}if(r==t){s="yes";jQuery(this).removeClass("dslc-last-col").addClass("dslc-first-col")}try{i=o[0].querySelector(".dslca-module-code").value}catch(e){console.info("No DSLC code found in module: "+o[0].getAttribute("id"))}if(""!==i){var d=JSON.parse(i);d.last=e;jQuery.each(d,function(e,o){if(false===o||""===o){delete d[e]}if("content"===e){d[e]=o.replace(/\\'/g,"'")}if("give_new_id"===e){delete d[e]}});o[0].querySelector(".dslca-module-code").value=JSON.stringify(d);l["content"].push(d)}i=""});h["content"].push(l)});var _=JSON.stringify(h);return _}jQuery(document).ready(function(o){o(document).on("click",".dslca-save-composer-hook",function(e){e.preventDefault();if(!o("body").hasClass("dslca-module-saving-in-progress")&&!o("body").hasClass("dslca-saving-in-progress")){dslc_save_composer()}});o(document).on("click",".dslca-save-draft-composer-hook",function(e){e.preventDefault();if(!o("body").hasClass("dslca-module-saving-in-progress")&&!o("body").hasClass("dslca-saving-in-progress")){dslc_save_draft_composer()}})});function dslca_gen_content_for_search(){if(dslcDebug)console.log("dslca_gen_content_for_search");var e=document.getElementById("dslca-content-for-search");if(null===e){return}var o=e.value;var l="";var s=LiveComposer.Builder.PreviewAreaWindow.document.querySelectorAll("#dslc-main .dslc-module-front [data-exportable-content]");if(undefined!==s){Array.prototype.forEach.call(s,function(e,o){var s;if(e.getAttribute("data-exportable-content")!==""){var d=e.getAttribute("data-exportable-content");s="<"+d+">"+e.innerHTML+"</"+d+">"}else{s=e.innerHTML}if(s!==null){l+=s.replace(/\s+/g," ").trim()+"\n"}})}e.value=l;if(o!==l){dslc_show_publish_button()}}var massagesTicker=jQuery("#editor-messages").newsTicker({row_height:40,max_rows:2,speed:900,direction:"up",duration:12e3,autostart:1,pauseOnHover:1,start:function(){jQuery("#editor-messages").css("opacity","1")}});jQuery(document).ready(function(s){s(document).on("click",".dslc-editor-messages-hide",function(e){var o=s(".dslc-editor-messages-hide").data("can-hide");if(o=="1"){jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-hidden-panel"});s(".dslc-editor-messages-section-122017").css("display","none");s(".dslca-container").removeClass("active-message-panel")}else{s("#editor-messages").html('<div class="dslc-notice"><a href="https://livecomposerplugin.com/hide-messages/?utm_source=editing-screen&utm_medium=editor-messages&utm_campaign=hide-messages" target="_blank">Only users who support our plugin development can hide this panel. <b>Click to learn more.</b></a></div>')}});if(s("div.dslc-editor-messages-section-122017").length){s(".dslc-editor-messages-section-122017").css("display","block");s(".dslca-container").addClass("active-message-panel")}});"use strict";var dslcRegularFontsArray=DSLCFonts.regular;var dslcGoogleFontsArray=DSLCFonts.google;var dslcAllFontsArray=dslcRegularFontsArray.concat(dslcGoogleFontsArray);var dslcIconsCurrentSet=DSLCIcons.fontawesome;var dslcDebug=false;var LiveComposer={Builder:{Elements:{},UI:{},Actions:{},Flags:{},PreviewFrame:{},Helpers:{}},Production:{},Utils:{}};(function(){LiveComposer.Builder.Flags={windowScroller:false,panelOpened:false,generate_code_after_row_changed:true};LiveComposer.Builder.Actions={postponed_actions_queue:{},add_postponed_action:function(e){if(e===undefined){return}if(isNaN(this.postponed_actions_queue[e])){this.postponed_actions_queue[e]=0}this.postponed_actions_queue[e]+=1},release_postponed_actions:function(){var s=this;jQuery.each(this.postponed_actions_queue,function(e,o){if(1<o){s.postponed_actions_queue[e]-=1}else if(1==o){window[e]();s.postponed_actions_queue[e]-=1}})}};LiveComposer.Builder.Helpers.insertModule=function(e,o){var s=jQuery(e),o=jQuery(o);var d=[];s.find("script").each(function(){d.push(this.innerHTML);this.parentNode.removeChild(this)});o.after(s).remove();d.forEach(function(e){var o=LiveComposer.Builder.PreviewAreaDocument[0].createElement("script");o.innerHTML=e;o.type="text/javascript";LiveComposer.Builder.PreviewAreaDocument[0].getElementById(s[0].id).appendChild(o)});d=null;o=null;return s}})();"use strict";LiveComposer.Builder.UI.CModalWindow=function(o){if(typeof o!="object"||this.instancesExists===true)return false;var s=this;var d='<div class="dslca-prompt-modal dslca-prompt-modal-active">'+'<div class="dslca-prompt-modal-content"><div class="dslca-prompt-modal-msg">'+'<span class="dslca-prompt-modal-title">'+o.title+"</span>"+'<span class="dslca-prompt-modal-descr">'+o.content+"</span></div>";var e="";if(o.confirm||o.cancel){e='<div class="dslca-prompt-modal-actions">'+'<a href="#" class="dslca-prompt-modal-confirm-hook"><span class="dslc-icon dslc-icon-ok">'+"</span>"+(o.confirm_title?o.confirm_title:"Confirm")+'</a><span class="dslca-prompt-modal-cancel-hook"><span class="dslc-icon dslc-icon-remove">'+"</span>"+(o.cancel_title?o.cancel_title:"Cancel")+"</span></div>"}else{e='<div class="dslca-prompt-modal-actions">'+'<a href="#" class="dslca-prompt-modal-confirm-hook"><span class="dslc-icon dslc-icon-ok">'+"</span>"+(o.ok_title?o.ok_title:"OK")+"</a></div>"}d+=e+"</div>";d=jQuery(d);if(typeof o.confirm!="function")o.confirm=function(){};if(typeof o.cancel!="function")o.cancel=function(){};d.find(".dslca-prompt-modal-confirm-hook").click(function(e){e.stopPropagation();d.find(".dslca-prompt-modal-content").animate({top:"55%"},400);d.animate({opacity:0},400,function(){o.confirm();s.instancesExists=false;jQuery(this).remove()});return false});d.find(".dslca-prompt-modal-cancel-hook").click(function(e){e.stopPropagation();d.find(".dslca-prompt-modal-content").animate({top:"55%"},400);d.animate({opacity:0},400,function(){jQuery(this).remove();s.instancesExists=false;o.cancel()});return false});d.hide();jQuery("body").append(d);d.css({opacity:0}).show().animate({opacity:1},400);d.find(".dslca-prompt-modal-content").css({top:"55%"}).animate({top:"50%"},400);this.instancesExists=true};"use strict";function dslc_show_modal(e,o){if(typeof dslcDebug!=="undefined"&&dslcDebug)console.log("dslc_show_modal");if(jQuery(".dslca-modal:visible").length){dslc_hide_modal("",jQuery(".dslca-modal:visible"))}var o=jQuery(o);var s=jQuery(".dslca-container").height();o.outerHide({clbk:function(){dslc_hide_modal("",jQuery(".dslca-modal:visible"))}});var d=jQuery(e).position(),l=o.outerWidth()/2-e.outerWidth()/2,i=d.left-l;o.css({left:i});jQuery(".dslca-prompt-modal-custom").insertAfter(o);if(jQuery(".dslca-prompt-modal-custom").length>0){jQuery(".dslca-prompt-modal-custom").fadeIn()}o.addClass("dslca-modal-open").show()}function dslc_hide_modal(e,o){if(typeof dslcDebug!=="undefined"&&dslcDebug)console.log("dslc_hide_modal");var o=jQuery(o);o.outerHide("destroy");o.hide();if(jQuery(".dslca-prompt-modal-custom").length>0){jQuery(".dslca-prompt-modal-custom").fadeOut()}o.removeClass("dslca-modal-open")}jQuery(document).ready(function(e){e(document).on("click",".dslca-open-modal-hook",function(e){e.preventDefault();var o=jQuery(this).data("modal");dslc_show_modal(jQuery(this),o)});jQuery(document).on("click",".dslca-close-modal-hook",function(e){e.preventDefault();if(!jQuery(this).hasClass("dslca-action-disabled")){var o=jQuery(this).data("modal");dslc_hide_modal(jQuery(this),o)}})});function dslc_js_confirm(e,o,s){if(typeof dslcDebug!=="undefined"&&dslcDebug)console.log("dslc_js_confirm");jQuery(".dslca-prompt-modal").addClass("dslca-prompt-modal-active");jQuery(".dslca-prompt-modal").data("id",e);jQuery(".dslca-prompt-modal").data("target",s);jQuery(".dslca-prompt-modal-msg").html(o);jQuery(".dslca-prompt-modal").css({opacity:0}).show().animate({opacity:1},400);jQuery(".dslca-prompt-modal-content").css({top:"55%"}).animate({top:"50%"},400)}function dslc_js_confirm_close(){if(typeof dslcDebug!=="undefined"&&dslcDebug)console.log("dslc_js_confirm_close");jQuery(".dslca-prompt-modal").removeClass("dslca-prompt-modal-active");jQuery(".dslca-prompt-modal").animate({opacity:0},400,function(){jQuery(this).hide();jQuery(".dslca-prompt-modal-cancel-hook").show();jQuery(".dslca-prompt-modal-confirm-hook").html('<span class="dslc-icon dslc-icon-ok"></span>'+DSLCString.str_confirm)});jQuery(".dslca-prompt-modal-content").animate({top:"55%"},400)}function dslc_modal_keypress_events(e){if(e.which==13){if(jQuery(".dslca-prompt-modal-active").length){jQuery(".dslca-prompt-modal-confirm-hook").trigger("click")}}else if(e.which==27){if(jQuery(".dslca-prompt-modal-active").length){jQuery(".dslca-prompt-modal-cancel-hook").trigger("click")}}}jQuery(document).ready(function(a){a(document).on("click",".dslca-prompt-modal-cancel-hook",function(e){e.preventDefault();var o=jQuery(".dslca-prompt-modal").data("id");var s=jQuery(".dslca-prompt-modal").data("target");if(o=="edit_in_progress"){dslc_module_options_cancel_changes(function(){s.trigger("click")})}else if(o=="delete_module"){}dslc_js_confirm_close();jQuery(".dslca-prompt-modal").data("id","")});a(document).on("click",".dslca-prompt-modal-confirm-hook",function(e){e.preventDefault();var o=jQuery(".dslca-prompt-modal").data("id");var s=jQuery(".dslca-prompt-modal").data("target");var d=true;if(o=="edit_in_progress"){dslc_module_options_confirm_changes(function(){s.trigger("click")})}else if(o=="disable_lc"){window.location=s}else if("delete_module"===o){var l=s.closest(".dslc-module-front");dslc_delete_module(l)}else if("delete_modules_area"===o){var i=s.closest(".dslc-modules-area");var t=i.closest(".dslc-modules-section-inner");dslc_modules_area_delete(i)}else if(o=="delete_modules_section"){dslc_row_delete(s.closest(".dslc-modules-section"))}else if(o=="export_modules_section"){}else if(o=="import_modules_section"){dslc_row_import(a(".dslca-prompt-modal textarea").val());a(".dslca-prompt-modal-confirm-hook span").css({opacity:0});a(".dslca-prompt-modal-confirm-hook .dslca-loading").show();d=false}if(d)dslc_js_confirm_close();jQuery(".dslca-prompt-modal").data("id","")})});jQuery.fn.outerHide=function(o){var s=jQuery;o=o?o:{};var d=this;if("destroy"==o){s(document).unbind("click.outer_hide");return false}s(document).bind("click.outer_hide",function(e){if(s(e.target).closest(d).length==0&&e.target!=d&&s.inArray(s(e.target)[0],s(o.clickObj))==-1&&s(d).css("display")!="none"){if(o.clbk){o.clbk()}else{s(d).hide()}}})};"use strict";jQuery(document).on("editorFrameLoaded",function(){var i=jQuery;var s=function(){if(LiveComposer.Builder.Flags.panelOpened){LiveComposer.Builder.UI.shakePanelConfirmButton();return false}return true};LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-copy-module-hook",function(e){e.preventDefault();if(!s())return false;if(!i(this).hasClass("dslca-action-disabled")){dslc_module_copy(i(this).closest(".dslc-module-front"))}});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-delete-module-hook",function(e){e.preventDefault();if(!s())return false;var o=this;if(!i(this).hasClass("dslca-action-disabled")){LiveComposer.Builder.UI.CModalWindow({title:DSLCString.str_del_module_title,content:DSLCString.str_del_module_descr,confirm:function(){var e=jQuery(o).closest(".dslc-module-front");dslc_delete_module(e)}})}});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-module-edit-hook, .dslc-module-front > div:not(.dslca-module-manage)",function(e){if(dslcDebug)console.log("dslca-module-edit-hook");e.preventDefault();var o=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).length;var s=jQuery(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).length;if(i("body").hasClass("dslca-composer-hidden")||o>0||s>0){if(jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument)[0]!=jQuery(this).closest(".dslc-module-front")[0]){LiveComposer.Builder.UI.shakePanelConfirmButton()}return false}var d=i(this).closest(".dslc-module-front"),l=d.data("dslc-module-id");i(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-module-being-edited");d.addClass("dslca-module-being-edited");dslc_module_options_show(l);jQuery("body",LiveComposer.Builder.PreviewAreaDocument).addClass("module-editing-in-progress")});LiveComposer.Builder.PreviewAreaDocument.on({mouseenter:function(){jQuery(".dslca-modules-section-manage",LiveComposer.Builder.PreviewAreaDocument).css("z-index","99998")},mouseleave:function(){jQuery(".dslca-modules-section-manage",LiveComposer.Builder.PreviewAreaDocument).css("z-index","999999")}},".dslca-change-width-module-hook, .dslc-module-front .dslca-module-manage");LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-change-width-module-options span",function(){if(!jQuery(this).hasClass("dslca-action-disabled")){var e=jQuery(this).closest(".dslc-module-front");var o=e.data("dslc-module-size");var s=jQuery(this).data("size");if(Number(o)!==Number(s)){dslc_module_width_set(e,s)}}});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-module-get-defaults-hook",function(){var e=jQuery(this).closest(".dslc-module-front");var o=dslc_dm_get_defaults(e);var s='<span class="dslca-prompt-modal-title">Module Defaults</span>'+'<span class="dslca-prompt-modal-descr">The code bellow is used to alter the defaults.</span>'+"<textarea></textarea><br><br>";i(".dslca-prompt-modal-cancel-hook").hide();i(".dslca-prompt-modal-confirm-hook").html('<span class="dslc-icon dslc-icon-ok"></span>OK');dslc_js_confirm("dev_mode_get_default",s,e)});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-refresh-module-hook",function(e){jQuery(this).css({"-webkit-animation-name":"dslcRotate","-moz-animation-name":"dslcRotate","animation-name":"dslcRotate","animation-duration":"0.6s","-webkit-animation-duration":"0.6s","animation-iteration-count":"infinite","-webkit-animation-iteration-count":"infinite"});jQuery(this).closest(".dslc-module-front").addClass("dslca-module-being-edited");dslc_module_output_altered(function(){jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-module-being-edited")})});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-wysiwyg-actions-edit-hook",function(){var e=jQuery(this).parent().siblings(".dslca-editable-content");var o=e.closest(".dslc-module-front");if(o.hasClass("dslc-module-handle-like-accordion")){LiveComposer.Builder.PreviewAreaWindow.dslc_accordion_generate_code(o.find(".dslc-accordion"));var s=o.find('.dslca-module-option-front[data-id="accordion_content"]').val();var d=s.split("(dslc_sep)");var l=e.closest(".dslc-accordion-item").index();var i=d[l].trim().replace(/<lctextarea/g,"<textarea").replace(/<\/lctextarea/g,"</textarea")}else if(o.hasClass("dslc-module-handle-like-tabs")){LiveComposer.Builder.PreviewAreaWindow.dslc_tabs_generate_code(o.find(".dslc-tabs"));var s=o.find('.dslca-module-option-front[data-id="tabs_content"]').val();var d=s.split("(dslc_sep)");var l=e.closest(".dslc-tabs-tab-content").index();var i=d[l].trim().replace(/<lctextarea/g,"<textarea").replace(/<\/lctextarea/g,"</textarea")}else{var i=o.find('.dslca-module-option-front[data-id="'+e.data("id")+'"]').val().replace(/<lctextarea/g,"<textarea").replace(/<\/lctextarea/g,"</textarea")}if(i.includes("%")){i=i.replace(/%\(\(%/g,"[");i=i.replace(/%\)\)%/g,"]");i=i.replace(/%\(%/g,"[");i=i.replace(/%\)%/g,"]");i=i.replace(/%\{%/g,"[");i=i.replace(/%\}%/g,"]")}if(typeof tinymce!="undefined"){var t=tinymce.get("dslcawpeditor");if(jQuery("#wp-dslcawpeditor-wrap").hasClass("tmce-active")){t.setContent(i,{format:"html"})}else{jQuery("textarea#dslcawpeditor").val(i)}if(!o.hasClass("dslca-module-being-edited")){o.find(".dslca-module-edit-hook").trigger("click")}jQuery(".dslca-wp-editor").show();e.addClass("dslca-wysiwyg-active");jQuery("#dslcawpeditor_ifr, #dslcawpeditor").css({height:jQuery(".dslca-wp-editor").height()-300})}else{console.info("Live Composer: TinyMCE is undefined.")}});LiveComposer.Builder.PreviewAreaDocument.on("blur",".dslca-editable-content",function(){if(!jQuery("body").hasClass("dslca-composer-hidden")&&jQuery(this).data("type")=="simple"){dslc_editable_content_gen_code(jQuery(this))}}).on("paste",".dslca-editable-content:not(.inline-editor)",function(){if(!jQuery("body").hasClass("dslca-composer-hidden")&&jQuery(this).data("type")=="simple"){var e=jQuery(this);setTimeout(function(){if(e.data("type")=="simple"){e.html(e.text())}dslc_editable_content_gen_code(e)},100)}}).on("focus",".dslca-editable-content",function(){if(jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).length>0&&!jQuery(this).closest(".dslc-module-front").hasClass("dslca-module-being-edited")){jQuery(this).trigger("blur")}}).on("keyup",".dslca-editable-content",function(){if(jQuery(this).data("type")=="simple"){jQuery(this).closest(".dslc-module-front").addClass("dslca-module-change-made")}})});function dslc_module_delete(e){if(dslcDebug)console.log("dslc_delete_module");e.addClass("dslca-module-being-deleted");if(e.hasClass("dslca-module-being-edited")){dslc_show_section(".dslca-modules")}setTimeout(function(){e.remove();dslc_generate_code();dslc_show_publish_button()},1e3);e.css({"-webkit-animation-name":"dslcBounceOut2","-moz-animation-name":"dslcBounceOut2","animation-name":"dslcBounceOut2","animation-duration":"0.6s","-webkit-animation-duration":"0.6s"}).animate({opacity:0},500,function(){e.css({marginBottom:0}).animate({height:0},400,"easeOutQuart")})}function dslc_module_copy(e){if(dslcDebug)console.log("dslc_copy_module");jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-module-being-edited");var o=e[0].cloneNode(true);jQuery(o).appendTo(e.closest(".dslc-modules-area")).css({"-webkit-animation-name":"none","-moz-animation-name":"none","animation-name":"none","animation-duration":"0","-webkit-animation-duration":"0",opacity:0}).addClass("dslca-module-being-edited");dslc_module_new_id(o);dslc_generate_code();jQuery(o).css({opacity:0}).removeClass("dslca-module-being-edited").animate({opacity:1},300);dslc_show_publish_button()}function dslc_module_new_id(e){var o=LiveComposer.Utils.get_unique_id();var s=e.getAttribute("id");e.setAttribute("data-module-id",o);e.setAttribute("id","dslc-module-"+o);var d=e.getElementsByTagName("style")[0];var l=d.textContent;d.setAttribute("id","#css-for-dslc-module-"+o);l=l.split(s).join("dslc-module-"+o);d.textContent=l;LiveComposer.Utils.update_module_property_raw(e,"module_instance_id",o)}function dslc_module_width_set(e,o){if(dslcDebug)console.log("dslc_module_width_set");var s="dslc-"+o+"-col";e.removeClass("dslc-1-col dslc-2-col dslc-3-col dslc-4-col dslc-5-col dslc-6-col dslc-7-col dslc-8-col dslc-9-col dslc-10-col dslc-11-col dslc-12-col").addClass(s).data("dslc-module-size",o);e[0].setAttribute("data-dslc-module-size",o);LiveComposer.Utils.update_module_property_raw(e[0],"dslc_m_size",o);LiveComposer.Builder.PreviewAreaWindow.dslc_masonry();dslc_generate_code();dslc_show_publish_button()}function dslc_module_options_show(e){if(dslcDebug)console.log("dslc_module_options_show");var o=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument),s=jQuery(".dslca-module-options-front textarea",o),l=jQuery(".dslca-header").data("default-section"),i=jQuery(jQuery("#pseudo-panel").html());jQuery("#wpwrap").append(i);var d={};d["action"]="dslc-ajax-display-module-options";d["dslc"]="active";d["dslc_module_id"]=e;d["dslc_post_id"]=jQuery(".dslca-container").data("data-post-id");d.dslc_url_vars=LiveComposer.Utils.get_page_params();s.each(function(){var e=jQuery(this),o=e.data("id"),s=e.val();if(s.includes("%")){s=s.replace(/%\(\(%/g,"[");s=s.replace(/%\)\)%/g,"]");s=s.replace(/%\(%/g,"[");s=s.replace(/%\)%/g,"]");s=s.replace(/%\{%/g,"[");s=s.replace(/%\}%/g,"]")}d[o]=s});jQuery(".dslca-wp-editor-actions").hide();jQuery(".dslca-wp-editor-notification").show();dslc_hide_publish_button();var t=jQuery(".dslca-module-options-front",o).children().clone();LiveComposer.Builder.moduleBackup=t;LiveComposer.Builder.Flags.panelOpened=true;i.show();i.addClass("show");jQuery.post(DSLCAjax.ajaxurl,d,function(e){i.remove();dslc_show_section(".dslca-module-edit");if(!jQuery("body").hasClass("rtl")){jQuery(".dslca-module-edit-options-inner").html(e.output)}else{jQuery(".dslca-module-edit-options-inner").html(e.output)}jQuery(".dslca-module-edit-options-tabs").html(e.output_tabs);var o=[];jQuery(".dslca-module-edit-options-inner .dslca-module-edit-option").each(function(){var e=jQuery(this).data("section");if(o.indexOf(e)==-1){o.push(e)}});var s=o.length;for(var d=0;d<s;d++){jQuery('.dslca-header .dslca-options-filter-hook[data-section="'+o[d]+'"]').show()}if(jQuery('.dslca-module-edit-option[data-section="'+l+'"]').length){jQuery('.dslca-header .dslca-options-filter-hook[data-section="'+l+'"]').show();jQuery('.dslca-header .dslca-options-filter-hook[data-section="'+l+'"]').trigger("click")}else{jQuery(".dslca-header .dslca-options-filter-hook:first").hide();jQuery(".dslca-header .dslca-options-filter-hook:first").next(".dslca-options-filter-hook").trigger("click")}jQuery(".dslca-module-edit-actions").show();jQuery(".dslca-wp-editor-notification").hide();jQuery(".dslca-wp-editor-actions").show();jQuery(".dslca-header .dslca-go-to-section-hook").hide();jQuery(".dslca-row-edit-actions").hide();LiveComposer.Builder.UI.loadOptionsDeps()})}function dslc_module_output_default(e,o){if(dslcDebug)console.log("dslc_module_output_default");jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-add-module",dslc:"active",dslc_module_id:e,dslc_post_id:jQuery(".dslca-container").data("post-id"),dslc_url_vars:LiveComposer.Utils.get_page_params(),dslc_new_module:true},function(e){o(e)})}function dslc_module_output_altered(d){if(dslcDebug)console.log("dslc_module_output_altered");d=typeof d!=="undefined"?d:false;var l=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument),e=l.data("dslc-module-id"),o=jQuery(".dslca-module-options-front textarea",l),s=l.data("module-id");var i={};i["action"]="dslc-ajax-add-module";i["dslc"]="active";i["dslc_module_id"]=e;i["dslc_module_instance_id"]=s;i["dslc_post_id"]=jQuery(".dslca-container").data("post-id");if(l.hasClass("dslca-preload-preset"))i["dslc_preload_preset"]="enabled";else i["dslc_preload_preset"]="disabled";l.removeClass("dslca-preload-preset");o.each(function(){var e=jQuery(this);var o=e.data("id");var s=e.val();i[o]=s});i.dslc_url_vars=LiveComposer.Utils.get_page_params();jQuery.post(DSLCAjax.ajaxurl,i,function(e){var o=LiveComposer.Builder.Helpers.insertModule(e.output,l);o.addClass("dslca-module-being-edited");e=null;o=null;LiveComposer.Builder.PreviewAreaWindow.dslc_carousel();LiveComposer.Builder.PreviewAreaWindow.dslc_masonry();LiveComposer.Builder.PreviewAreaWindow.dslc_tabs();LiveComposer.Builder.PreviewAreaWindow.dslc_init_accordion();var s=new Event("dslc_module_output_altered");LiveComposer.Builder.PreviewAreaWindow.dispatchEvent(s);if(d){d(e)}})}function dslc_module_output_reload(o,s){if(dslcDebug)console.log("dslc_module_output_reload");s=typeof s!=="undefined"?s:false;var e=o.data("dslc-module-id"),d=jQuery(".dslca-module-options-front textarea",o),l=o.data("module-id");var i={};i["action"]="dslc-ajax-add-module";i["dslc"]="active";i["dslc_module_id"]=e;i["dslc_module_instance_id"]=l;i["dslc_post_id"]=jQuery(".dslca-container").data("post-id");i["dslc_preload_preset"]="enabled";o.removeClass("dslca-preload-preset");d.each(function(){var e=jQuery(this);var o=e.data("id");var s=e.val();i[o]=s});o.append('<div class="dslca-module-reloading"><span class="dslca-icon dslc-icon-spin dslc-icon-refresh"></span></div>');jQuery.post(DSLCAjax.ajaxurl,i,function(e){o.after(e.output).next().addClass("dslca-module-being-edited");o.remove();dslc_generate_code();dslc_show_publish_button();LiveComposer.Builder.PreviewAreaWindow.dslc_carousel();LiveComposer.Builder.PreviewAreaWindow.dslc_masonry();LiveComposer.Builder.PreviewAreaWindow.dslc_tabs();LiveComposer.Builder.PreviewAreaWindow.dslc_init_accordion();if(s){s(e)}jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-module-being-edited")})}function dslc_delete_module(e){dslc_module_delete(e)}function dslc_copy_module(e){dslc_module_copy(e)}function dslc_display_module_options(e){dslc_module_options_show(e)}function dslc_get_module_output(e,o){dslc_module_output_default(e,o)}function dslc_preview_change(e){dslc_module_output_altered(e)}function dslc_reload_module(e,o){dslc_module_output_reload(e,o)}"use strict";LiveComposer.Builder.Elements.CModuleArea=function(o){var s=this;this.section=jQuery(o).closest(".dslc-modules-section");this.elem=o;this.observer=new mqMutationObserver(o,function(){var e=s.elem.classList;if(o.querySelectorAll(".dslc-module-front").length==0){e.add("dslc-modules-area-empty");e.remove("dslc-modules-area-not-empty")}else{e.remove("dslc-modules-area-empty");e.add("dslc-modules-area-not-empty")}},{childList:true});this.sortable=Sortable.create(o,{group:"modules",animation:350,handle:".dslca-move-module-hook",draggable:".dslc-module-front",ghostClass:"dslca-module-ghost",chosenClass:"dslca-module-dragging",scroll:true,scrollSensitivity:150,scrollSpeed:15,setData:function(e,o){e.setData(LiveComposer.Utils.msieversion()!==false?"Text":"text/html",o.innerHTML)},onStart:function(e){e.oldIndex;jQuery("body").removeClass("dslca-drag-not-in-progress").addClass("dslca-drag-in-progress");jQuery("body",LiveComposer.Builder.PreviewAreaWindow.document).removeClass("dslca-drag-not-in-progress").addClass("dslca-drag-in-progress")},onEnd:function(e){e.oldIndex;e.newIndex;e.preventDefault();dslc_generate_code();LiveComposer.Builder.UI.stopScroller();jQuery("body").removeClass("dslca-drag-in-progress").addClass("dslca-drag-not-in-progress");jQuery("body",LiveComposer.Builder.PreviewAreaWindow.document).removeClass("dslca-drag-in-progress").addClass("dslca-drag-not-in-progress")},onAdd:function(e){var o=e.item;e.from;if(jQuery(o).data("id")=="DSLC_M_A"){dslc_modules_area_add(jQuery(s.section).find(".dslc-modules-section-wrapper .dslc-modules-section-inner"));o.remove()}},onUpdate:function(e){var o=e.item;dslc_show_publish_button()},onSort:function(e){},onRemove:function(e){},onFilter:function(e){var o=e.item},onMove:function(e){e.dragged;e.draggedRect;e.related;e.relatedRect;if(jQuery(".dslc-modules-area-empty").find(".dslc-module-front").length>0){jQuery(this).removeClass("dslc-modules-area-empty").addClass("dslc-modules-area-not-empty");jQuery(".dslca-no-content:not(:visible)",this).show().css({"-webkit-animation-name":"dslcBounceIn","-moz-animation-name":"dslcBounceIn","animation-name":"dslcBounceIn","animation-duration":"0.6s","-webkit-animation-duration":"0.6s",padding:0}).animate({padding:"35px 0"},300,function(){})}}});jQuery(o).attr("data-jsinit","initialized");jQuery(document).on("LC.sortableOff",function(){s.sortable&&s.sortable.option&&s.sortable.option("disabled",true)});jQuery(document).on("LC.sortableOn",function(){s.sortable&&s.sortable.option&&s.sortable.option("disabled",false)})};"use strict";jQuery(document).on("editorFrameLoaded",function(){function e(){var e=jQuery(".dslc-modules-area",LiveComposer.Builder.PreviewAreaDocument);jQuery(e).each(function(e,o){new LiveComposer.Builder.Elements.CModuleArea(o)})}var l=function(){if(LiveComposer.Builder.Flags.panelOpened){LiveComposer.Builder.UI.shakePanelConfirmButton();return false}return true};if(!jQuery("#dslc-main .dslc-modules-section",LiveComposer.Builder.PreviewAreaDocument).length&&!jQuery("#dslca-tut-page",LiveComposer.Builder.PreviewAreaDocument).length){dslc_row_add(e())}else{e()}LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-copy-modules-area-hook",function(e){e.preventDefault();if(!l())return false;if(!jQuery(this).hasClass("dslca-action-disabled")){var o=jQuery(this).closest(".dslc-modules-area");dslc_copy_modules_area(o)}});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-delete-modules-area-hook",function(e){e.preventDefault();if(!l())return false;if(!jQuery(this).hasClass("dslca-action-disabled")){var o=jQuery(this).closest(".dslc-modules-area").hasClass("dslc-modules-area-empty");if(!o){var s=jQuery(this);LiveComposer.Builder.UI.CModalWindow({title:DSLCString.str_del_area_title,content:DSLCString.str_del_area_descr,confirm:function(){var e=s.closest(".dslc-modules-area");dslc_modules_area_delete(e)}})}else{var d=jQuery(this).closest(".dslc-modules-area");dslc_delete_modules_area(d)}}});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-change-width-modules-area-options span",function(){if(!l())return false;if(!jQuery(this).hasClass("dslca-action-disabled")){var e=jQuery(this).closest(".dslc-modules-area");var o=e.data("size");var s=jQuery(this).data("size");if(Number(o)!==Number(s)){dslc_modules_area_width_set(e,s)}}});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-add-modules-area-hook",function(e){e.preventDefault();if(!l())return false;dslc_modules_area_add(jQuery(this).closest(".dslc-modules-section").find(".dslc-modules-section-inner"))})});function dslc_modules_area_add(e){if(dslcDebug)console.log("dslc_add_modules_area");var o='<div class="dslc-modules-area dslc-modules-area-dnd dslc-col dslc-12-col dslc-modules-area-empty " data-size="12">'+'<div class="dslca-modules-area-manage"> <div class="dslca-modules-area-manage-inner">'+'<span class="dslca-manage-action dslca-copy-modules-area-hook" title="Duplicate" ><span class="dslca-icon dslc-icon-copy">'+'</span></span> <span class="dslca-manage-action dslca-move-modules-area-hook" title="Drag to move" >'+'<span class="dslca-icon dslc-icon-move"></span></span>'+'<span class="dslca-manage-action dslca-change-width-modules-area-hook" title="Change width" >'+'<span class="dslca-icon dslc-icon-columns"></span> <div class="dslca-change-width-modules-area-options">'+'<span>Container Width</span><span data-size="1">1/12</span><span data-size="2">2/12</span>'+'<span data-size="3">3/12</span><span data-size="4">4/12</span> <span data-size="5">5/12</span><span data-size="6">6/12</span>'+'<span data-size="7">7/12</span><span data-size="8">8/12</span> <span data-size="9">9/12</span><span data-size="10">10/12</span>'+'<span data-size="11">11/12</span><span data-size="12">12/12</span> </div> </span>'+'<span class="dslca-manage-action dslca-delete-modules-area-hook" title="Delete" ><span class="dslca-icon dslc-icon-remove"></span></span> </div> </div>'+"</div>";jQuery(o).appendTo(e).css({height:0}).animate({height:99},300,function(){jQuery(this).css({height:"auto"})}).addClass("dslca-init-animation");var s=jQuery(".dslc-modules-area-empty",LiveComposer.Builder.PreviewAreaDocument);jQuery(s).each(function(e,o){new LiveComposer.Builder.Elements.CModuleArea(o)});dslc_drag_and_drop();dslc_generate_code();dslc_show_publish_button()}function dslc_modules_area_delete(o){if(dslcDebug)console.log("dslc_delete_modules_area");var s=o.closest(".dslc-modules-section").find(".dslc-modules-section-inner"),d=false;o.addClass("dslca-modules-area-being-deleted");if(s.find(".dslc-modules-area").length<2){d=true}if(o.find(".dslca-module-being-edited").length){jQuery(".dslca-header .dslca-options-filter-hook",LiveComposer.Builder.PreviewAreaDocument).hide();jQuery(".dslca-module-edit-actions",LiveComposer.Builder.PreviewAreaDocument).hide();jQuery(".dslca-header .dslca-go-to-section-hook",LiveComposer.Builder.PreviewAreaDocument).show();dslc_show_section(".dslca-modules")}setTimeout(function(){if(d){var e=o.closest(".dslc-modules-section-inner");if(2<=o.closest("#dslc-main").find(".dslc-modules-section").length){dslc_row_delete(o.closest(".dslc-modules-section"))}else{o.remove();dslc_modules_area_add(s)}}o.remove();dslc_generate_code();dslc_show_publish_button()},900);o.css({"-webkit-animation-name":"dslcBounceOut","-moz-animation-name":"dslcBounceOut","animation-name":"dslcBounceOut","animation-duration":"0.6s","-webkit-animation-duration":"0.6s",overflow:"hidden"}).animate({opacity:0},600).animate({height:0,marginBottom:0},300,function(){o.remove();dslc_generate_code();dslc_show_publish_button()})}function dslc_modules_area_copy(e){if(dslcDebug)console.log("dslc_copy_modules_area");var o,s=e.closest(".dslc-modules-section").find(".dslc-modules-section-inner");var d=e.clone().appendTo(s);new LiveComposer.Builder.Elements.CModuleArea(d[0]);d.find(".dslca-modules-area-manage").trigger("mouseleave");d.data("size",e.data("size")).find(".dslc-module-front").css({"-webkit-animation-name":"none","-moz-animation-name":"none","animation-name":"none","animation-duration":"0","-webkit-animation-duration":"0",opacity:0}).each(function(){var e=jQuery(this);dslc_module_new_id(e[0]);jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-module-being-edited");dslc_generate_code();e.animate({opacity:1},300)});dslc_drag_and_drop();dslc_show_publish_button();dslc_generate_code()}function dslc_modules_area_width_set(e,o){if(dslcDebug)console.log("dslc_modules_area_width_set");var s="dslc-"+o+"-col";e.removeClass("dslc-1-col dslc-2-col dslc-3-col dslc-4-col dslc-5-col dslc-6-col dslc-7-col dslc-8-col dslc-9-col dslc-10-col dslc-11-col dslc-12-col").addClass(s).data("size",o);LiveComposer.Builder.PreviewAreaWindow.dslc_masonry();if(LiveComposer.Builder.Flags.panelOpened){return false}dslc_generate_code();dslc_show_publish_button()}LiveComposer.Builder.moduleareas_init=function(){jQuery("#dslc-main .dslc-modules-area",LiveComposer.Builder.PreviewAreaDocument).each(function(){if(jQuery(this).data("jsinit")!=="initialized"){new LiveComposer.Builder.Elements.CModuleArea(this)}})};function dslc_add_modules_area(e){dslc_modules_area_add(e)}function dslc_delete_modules_area(e){dslc_modules_area_delete(e)}function dslc_copy_modules_area(e){dslc_modules_area_copy(e)}"use strict";function dslc_update_preset(){if(dslcDebug)console.log("dslc_update_preset");var o=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument),e=o.find('.dslca-module-option-front[data-id="css_load_preset"]').val(),s=o.find(".dslca-module-code").val(),d=o.data("dslc-module-id");if("none"!==e&&""!==e){jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-save-preset",dslc_preset_name:e,dslc_preset_code:s,dslc_module_id:d},function(e){if(e.preset_setting=="enabled"){jQuery(".dslc-module-front:not(#"+o.attr("id")+')[data-dslc-module-id="'+o.data("dslc-module-id")+'"][data-dslc-preset="'+o.data("dslc-preset")+'"]',LiveComposer.Builder.PreviewAreaDocument).each(function(){dslc_module_output_reload(jQuery(this))})}})}}jQuery(document).ready(function(d){d(document).on("keypress",'.dslca-module-edit-field[name="css_save_preset"]',function(e){if(e.which==13){var o=d(this).val(),s=o.toLowerCase().replace(/\s/g,"-");d("body").addClass("dslca-new-preset-added");d('.dslca-module-edit-field[name="css_load_preset"]').append('<option value="'+s+'">'+s+"</option>").val(s).trigger("change");d(this).val("");jQuery(".dslc-delete-preset").removeClass("dslc-delete-preset-hide")}});d(document).on("change",'.dslca-module-edit-field[name="css_load_preset"]',function(e){d(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).addClass("dslca-preload-preset")});d(document).on("click",".dslc-delete-preset",function(e){var o=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument),s=o.find('.dslca-module-option-front[data-id="css_load_preset"]').val(),d=o.data("dslc-module-id");if("none"!==s&&""!==s){jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-delete-preset",dslc_preset_name:s,dslc_module_id:d},function(e){dslc_module_options_show(d)})}})});"use strict";LiveComposer.Builder.Elements.CRow=function(e){var o=this;this.elem=e;var s=jQuery(e).find(".dslc-modules-section-wrapper .dslc-modules-section-inner").eq(0)[0];jQuery(e).droppable({drop:function(e,o){var s=jQuery(this).find(".dslc-modules-section-inner");var d=o.draggable.data("id");if(d=="DSLC_M_A"){dslc_modules_area_add(s)}}});this.sortable=jQuery(s).sortable({connectWith:".dslc-modules-section-inner",items:".dslc-modules-area-dnd",handle:'.dslca-move-modules-area-hook:not(".dslca-action-disabled")',placeholder:"dslca-modules-area-placeholder",cursorAt:{top:0,left:0},tolerance:"intersect",scroll:true,scrollSensitivity:100,scrollSpeed:15,sort:function(){jQuery(this).removeClass("ui-state-default")},over:function(e,o){var s=o.placeholder.closest(".dslc-modules-section");jQuery(s).removeClass("dslc-modules-section-empty").addClass("dslc-modules-section-not-empty");s.siblings(".dslc-modules-section").each(function(){if(jQuery(".dslc-modules-area:not(.ui-sortable-helper)",jQuery(this)).length){jQuery(this).removeClass("dslc-modules-section-empty").addClass("dslc-modules-section-not-empty")}else{jQuery(this).removeClass("dslc-modules-section-not-empty").addClass("dslc-modules-section-empty")}})},remove:function(){jQuery(o.elem).find(".dslc-modules-area").length==0&&dslc_modules_area_add(jQuery(s))},update:function(e,o){dslc_generate_code();dslc_show_publish_button()},start:function(e,o){o.placeholder.html('<span class="dslca-placeholder-help-text"><span class="dslca-placeholder-help-text-inner">'+DSLCString.str_area_helper_text+"</span></span>");if(!jQuery(o.item).hasClass("dslc-12-col")){o.placeholder.width(o.item.width()-10)}else{o.placeholder.width(o.item.width()).css({margin:0})}jQuery("body").removeClass("dslca-drag-not-in-progress").addClass("dslca-drag-in-progress dslca-modules-area-drag-in-progress");jQuery(".dslc-modules-section-inner").sortable("refreshPositions")},stop:function(e,o){LiveComposer.Builder.UI.stopScroller();jQuery("body").removeClass("dslca-drag-in-progress dslca-modules-area-drag-in-progress").addClass("dslca-drag-not-in-progress");jQuery(".dslca-anim-opacity-drop").removeClass("dslca-anim-opacity-drop")},change:function(e,o){}});jQuery(e).attr("data-jsinit","initialized");jQuery(document).on("LC.sortableOff",function(){if(undefined!==o.sortable.sortable("instance")){o.sortable.sortable("option","disabled",true)}});jQuery(document).on("LC.sortableOn",function(){if(undefined!==o.sortable.sortable("instance")){o.sortable.sortable("option","disabled",false)}})};"use strict";jQuery(document).on("editorFrameLoaded",function(){var d=jQuery;var l=function(){if(LiveComposer.Builder.Flags.panelOpened){LiveComposer.Builder.UI.shakePanelConfirmButton();return false}return true};jQuery(".dslc-modules-section",LiveComposer.Builder.PreviewAreaDocument).each(function(){new LiveComposer.Builder.Elements.CRow(this)});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-delete-modules-section-hook",function(e){if(!l())return false;e.preventDefault();var o=this;if(!d(this).hasClass("dslca-action-disabled")){LiveComposer.Builder.UI.CModalWindow({title:DSLCString.str_del_row_title,content:DSLCString.str_del_row_descr,confirm:function(){dslc_row_delete(d(o).closest(".dslc-modules-section"))}})}});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-import-modules-section-hook",function(e){e.preventDefault();if(!l())return false;if(!jQuery(this).hasClass("dslca-action-disabled")){LiveComposer.Builder.UI.CModalWindow({title:DSLCString.str_import_row_title,content:DSLCString.str_import_row_descr+"<br><br><textarea></textarea>",confirm:function(){dslc_row_import(jQuery(".dslca-prompt-modal textarea").val());jQuery(".dslca-prompt-modal-confirm-hook span").css({opacity:0});jQuery(".dslca-prompt-modal-confirm-hook .dslca-loading").show()},confirm_title:DSLCString.str_import})}});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-export-modules-section-hook",function(e){e.preventDefault();if(!l())return false;if(!d(this).hasClass("dslca-action-disabled")){d(".dslca-prompt-modal-cancel-hook").hide();d(".dslca-prompt-modal-confirm-hook").html('<span class="dslc-icon dslc-icon-ok"></span>'+DSLCString.str_ok);LiveComposer.Builder.UI.CModalWindow({title:DSLCString.str_export_row_title,content:DSLCString.str_export_row_descr+"<br><br><textarea>"+"["+dslc_generate_section_code(d(this).closest(".dslc-modules-section"))+"]"+"</textarea></span>"})}});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-copy-modules-section-hook",function(){if(!l())return false;if(!jQuery(this).hasClass("dslca-action-disabled")){dslc_row_copy(jQuery(this).closest(".dslc-modules-section"))}});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-add-modules-section-hook",function(e){e.preventDefault();if(!l())return false;var o=d(this);if(!d(this).hasClass("dslca-action-disabled")){o.find(".dslca-icon").removeClass("dslc-icon-align-justify").addClass("dslc-icon-spinner dslc-icon-spin");dslc_row_add(function(){o.find(".dslca-icon").removeClass("dslc-icon-spinner dslc-icon-spin").addClass("dslc-icon-align-justify")})}});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-edit-modules-section-hook",function(){if(!l())return false;var e=this;var o=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).length;var s=jQuery(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).length;if(d("body").hasClass("dslca-composer-hidden")||o>0||s>0)return false;if(!d(this).hasClass("dslca-action-disabled")){dslc_row_edit(d(this).closest(".dslc-modules-section"))}jQuery("body",LiveComposer.Builder.PreviewAreaDocument).addClass("section-editing-in-progress")})});function dslc_row_add(o){if(dslcDebug)console.log("dslc_row_add");o=typeof o!=="undefined"?o:false;var s=jQuery.Deferred();var d=sessionStorage;var l=jQuery();var e=d.getItem("cache-dslc-ajax-add-modules-section");if(null!==e){var i,t;i=DSLCMainOptions.section_padding_vertical;t=jQuery(e).find('input[data-id="padding"]').val();if(i!==t){d.removeItem("cache-dslc-ajax-add-modules-section");e=null}}if(null===e){jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-add-modules-section",dslc:"active"},function(e){d.setItem("cache-dslc-ajax-add-modules-section",e.output);l=dslc_row_after_add(e.output);if(o){o()}return s})}else{l=dslc_row_after_add(e);if(o){o()}return s}}function dslc_row_after_add(e){var o=jQuery(e);o.appendTo(LiveComposer.Builder.PreviewAreaDocument.find("#dslc-main"));dslc_drag_and_drop();dslc_generate_code();dslc_show_publish_button();new LiveComposer.Builder.Elements.CRow(o);new LiveComposer.Builder.Elements.CModuleArea(o.find(".dslc-modules-area").eq(0)[0]);o.find(".dslc-modules-area").addClass("dslc-modules-area-empty dslc-last-col");return o}function dslc_row_delete(e){if(dslcDebug)console.log("dslc_row_delete");if(e.find(".dslca-module-being-edited")){jQuery(".dslca-header .dslca-options-filter-hook").hide();jQuery(".dslca-module-edit-actions").hide();jQuery(".dslca-header .dslca-go-to-section-hook").show();dslc_show_section(".dslca-modules")}e.trigger("mouseleave").remove();dslc_generate_code();dslc_show_publish_button()}function dslc_row_edit(e){if(dslcDebug)console.log("dslc_row_edit");var o,s;jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-module-being-edited");jQuery(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-modules-section-being-edited").removeClass("dslca-modules-section-change-made");e.addClass("dslca-modules-section-being-edited");jQuery(".dslca-header .dslca-go-to-section-hook").hide();jQuery('.dslca-row-options-filter-hook[data-section="styling"], .dslca-row-options-filter-hook[data-section="responsive"]').show();jQuery('.dslca-row-options-filter-hook[data-section="styling"]').trigger("click");jQuery(".dslca-header .dslca-options-filter-hook").hide();jQuery(".dslca-module-edit-actions").hide();jQuery(".dslca-row-edit-actions").show();jQuery(".dslca-modules-section-edit-field").each(function(){if("type"===jQuery(this).data("id")){if(""===jQuery('.dslca-modules-section-being-edited .dslca-modules-section-settings input[data-id="type"]',LiveComposer.Builder.PreviewAreaDocument).val()||"wrapped"===jQuery('.dslca-modules-section-being-edited .dslca-modules-section-settings input[data-id="type"]',LiveComposer.Builder.PreviewAreaDocument).val()){jQuery('select[data-id="type"]').val("wrapper").change()}}if(jQuery(this).data("id")=="border-top"){if(jQuery('.dslca-modules-section-being-edited .dslca-modules-section-settings input[data-id="border"]',LiveComposer.Builder.PreviewAreaDocument).val().indexOf("top")>=0){jQuery(this).prop("checked",true);jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check-empty").addClass("dslc-icon-check")}else{jQuery(this).prop("checked",false);jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check").addClass("dslc-icon-check-empty")}}else if(jQuery(this).data("id")=="border-right"){if(jQuery('.dslca-modules-section-being-edited .dslca-modules-section-settings input[data-id="border"]',LiveComposer.Builder.PreviewAreaDocument).val().indexOf("right")>=0){jQuery(this).prop("checked",true);jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check-empty").addClass("dslc-icon-check")}else{jQuery(this).prop("checked",false);jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check").addClass("dslc-icon-check-empty")}}else if(jQuery(this).data("id")=="border-bottom"){if(jQuery('.dslca-modules-section-being-edited .dslca-modules-section-settings input[data-id="border"]',LiveComposer.Builder.PreviewAreaDocument).val().indexOf("bottom")>=0){jQuery(this).prop("checked",true);jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check-empty").addClass("dslc-icon-check")}else{jQuery(this).prop("checked",false);jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check").addClass("dslc-icon-check-empty")}}else if(jQuery(this).data("id")=="border-left"){if(jQuery('.dslca-modules-section-being-edited .dslca-modules-section-settings input[data-id="border"]',LiveComposer.Builder.PreviewAreaDocument).val().indexOf("left")>=0){jQuery(this).prop("checked",true);jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check-empty").addClass("dslc-icon-check")}else{jQuery(this).prop("checked",false);jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check").addClass("dslc-icon-check-empty")}}else if(jQuery(this).hasClass("dslca-modules-section-edit-field-checkbox")){if(jQuery('.dslca-modules-section-being-edited .dslca-modules-section-settings input[data-id="'+jQuery(this).data("id")+'"]',LiveComposer.Builder.PreviewAreaDocument).val().indexOf(jQuery(this).data("val"))>=0){jQuery(this).prop("checked",true);jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check-empty").addClass("dslc-icon-check")}else{jQuery(this).prop("checked",false);jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check").addClass("dslc-icon-check-empty")}}else{jQuery(this).val(jQuery('.dslca-modules-section-being-edited .dslca-modules-section-settings input[data-id="'+jQuery(this).data("id")+'"]',LiveComposer.Builder.PreviewAreaDocument).val().trim().replace("%(%","[").replace("%)%","]"));if(jQuery(this).hasClass("dslca-modules-section-edit-field-colorpicker")){var e=jQuery(this);jQuery(this).closest(".dslca-modules-section-edit-option").find(".sp-preview-inner").removeClass("sp-clear-display").css({"background-color":e.val()});jQuery(this).css({"background-color":e.val()})}}});jQuery(".dslca-modules-section-edit-field-upload").each(function(){var e=jQuery(this).closest(".dslca-modules-section-edit-option");if(jQuery(this).val()&&jQuery(this).val()!=="disabled"){jQuery(".dslca-modules-section-edit-field-image-add-hook",e).hide();jQuery(".dslca-modules-section-edit-field-image-remove-hook",e).show()}else{jQuery(".dslca-modules-section-edit-field-image-remove-hook",e).hide();jQuery(".dslca-modules-section-edit-field-image-add-hook",e).show()}});dslc_show_section(".dslca-modules-section-edit");LiveComposer.Builder.Flags.panelOpened=true;dslc_hide_publish_button()}function dslc_row_edit_cancel(e){if(dslcDebug)console.log("dslc_row_cancel_changes");e=typeof e!=="undefined"?e:false;LiveComposer.Builder.Flags.generate_code_after_row_changed=false;jQuery(".dslca-modules-section-being-edited .dslca-modules-section-settings input",LiveComposer.Builder.PreviewAreaDocument).each(function(){jQuery(this).val(jQuery(this).data("def"));jQuery('.dslca-modules-section-edit-field[data-id="'+jQuery(this).data("id")+'"]').val(jQuery(this).data("def")).trigger("change")});LiveComposer.Builder.Flags.generate_code_after_row_changed=true;dslc_generate_code();dslc_show_publish_button();dslc_show_section(".dslca-modules");jQuery(".dslca-row-edit-actions").hide();jQuery(".dslca-row-options-filter-hook").hide();jQuery(".dslca-header .dslca-go-to-section-hook").show();dslc_show_publish_button;jQuery(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-modules-section-being-edited dslca-modules-section-change-made");if(e){e()}LiveComposer.Builder.Flags.panelOpened=false;jQuery("body",LiveComposer.Builder.PreviewAreaDocument).removeClass("section-editing-in-progress")}function dslc_row_edit_confirm(e){if(dslcDebug)console.log("dslc_confirm_row_changes");e=typeof e!=="undefined"?e:false;jQuery(".dslca-modules-section-being-edited .dslca-modules-section-settings input",LiveComposer.Builder.PreviewAreaDocument).each(function(){jQuery(this).data("def",jQuery(this).val())});dslc_show_section(".dslca-modules");jQuery(".dslca-row-edit-actions").hide();jQuery(".dslca-row-options-filter-hook").hide();jQuery(".dslca-header .dslca-go-to-section-hook").show();jQuery(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-modules-section-being-edited dslca-modules-section-change-made");dslc_generate_code();dslc_show_publish_button();if(e){e()}LiveComposer.Builder.Flags.panelOpened=false;jQuery("body",LiveComposer.Builder.PreviewAreaDocument).removeClass("section-editing-in-progress")}function dslc_row_copy(o){if(dslcDebug)console.log("dslc_row_copy");var e,s,d;s=o.clone().appendTo(jQuery("#dslc-main",LiveComposer.Builder.PreviewAreaDocument));s[0].removeAttribute("data-jsinit");s.find(".dslc-modules-area").each(function(){var e=jQuery(this).index();jQuery(this).data("size",o.find(".dslc-modules-area:eq( "+e+" )").data("size"));this.removeAttribute("data-jsinit")});new LiveComposer.Builder.Elements.CRow(s);s.find(".dslc-module-front").css({"-webkit-animation-name":"none","-moz-animation-name":"none","animation-name":"none","animation-duration":"0","-webkit-animation-duration":"0",opacity:0}).each(function(){var e=jQuery(this);dslc_module_new_id(e[0]);LiveComposer.Builder.rows_init();LiveComposer.Builder.moduleareas_init();dslc_generate_code();dslc_drag_and_drop();jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-module-being-edited");e.animate({opacity:1},300);dslc_show_publish_button()});dslc_section_new_id(s[0])}function dslc_section_new_id(e){if(dslcDebug)console.log("dslc_section_new_id");var o=LiveComposer.Utils.get_unique_id();e.setAttribute("data-section-id",o);LiveComposer.Utils.update_section_property_raw(e,"section_instance_id",o)}function dslc_row_import(e){if(dslcDebug)console.log("dslc_row_import");jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-import-modules-section",dslc:"active",dslc_modules_section_code:e},function(e){dslc_js_confirm_close();jQuery("#dslc-main",LiveComposer.Builder.PreviewAreaDocument).append(e.output);LiveComposer.Builder.PreviewAreaWindow.dslc_bg_video();LiveComposer.Builder.PreviewAreaWindow.dslc_carousel();LiveComposer.Builder.PreviewAreaWindow.dslc_masonry();LiveComposer.Builder.rows_init();LiveComposer.Builder.moduleareas_init();dslc_drag_and_drop();dslc_generate_code();dslc_show_publish_button()})}function dslc_add_modules_section(){dslc_row_add()}function dslc_delete_modules_section(e){dslc_row_delete(e)}function dslc_edit_modules_section(e){dslc_row_edit(e)}function dslc_copy_modules_section(e){dslc_row_copy(e)}function dslc_import_modules_section(e){dslc_row_import(e)}jQuery(document).ready(function(e){e(document).on("click",".dslca-row-edit-save",function(){dslc_row_edit_confirm();e(".dslca-currently-editing").removeAttr("style");e(".dslca-row-options-filter-hook.dslca-active").removeClass("dslca-active");LiveComposer.Builder.PreviewAreaWindow.dslc_responsive_classes(true)});e(document).on("click",".dslca-row-edit-cancel",function(){dslc_row_edit_cancel();e(".dslca-currently-editing").removeAttr("style");e(".dslca-row-options-filter-hook.dslca-active").removeClass("dslca-active");LiveComposer.Builder.PreviewAreaWindow.dslc_responsive_classes(true)})});LiveComposer.Builder.rows_init=function(){jQuery("#dslc-main .dslc-modules-section",LiveComposer.Builder.PreviewAreaDocument).each(function(){if(jQuery(this).data("jsinit")!=="initialized"){new LiveComposer.Builder.Elements.CRow(this)}})};jQuery(document).ready(function(e){var o=function(e){var l=.75;var o=500;var i=100;var t=jQuery(".dslca-section-scroller",e);var a=jQuery(".dslca-section-scroller-inner",e)[0];t.on("wheel",function(e){s(e.originalEvent.deltaY||e.originalEvent.deltaX);return false});function s(e){if(e<0){e=-i}else{e=i}e=e*l;var o=t.find(".dslca-section-scroller-content").width();var s=t.width();if(o<=s)return false;var d=o-s+10;e=parseInt(a.style.left||0)-e;e=e>=0?0:e;e=e<=-d?-d:e;a.style.left=e+"px"}jQuery(".dslca-section-scroller-prev",e).click(function(e){e.preventDefault();s(-o)});jQuery(".dslca-section-scroller-next",e).click(function(e){e.preventDefault();s(o)});jQuery(window).load(function(){jQuery(window).resize(function(){s(0)})})};o(jQuery(".dslca-section.dslca-modules"));o(jQuery(".dslca-section.dslca-templates-load"))});jQuery(document).ready(function(e){LiveComposer.Builder.UI.initPreviewAreaScroller=function(){var o=5;var s=6;LiveComposer.Builder.Flags.windowScroller=false;jQuery(LiveComposer.Builder.PreviewAreaDocument).on("dragleave",".lc-scroll-top-area, .lc-scroll-bottom-area",function(e){LiveComposer.Builder.UI.stopScroller()});jQuery(LiveComposer.Builder.PreviewAreaDocument).on("dragenter dragover",".lc-scroll-bottom-area",function(e){if(LiveComposer.Builder.Flags.windowScroller!==false)return false;LiveComposer.Utils.publish("LC.sortableOff",{});LiveComposer.Builder.Flags.windowScroller=setInterval(function(){LiveComposer.Builder.PreviewAreaWindow.scrollBy(0,o)},s)});jQuery(LiveComposer.Builder.PreviewAreaDocument).on("dragenter",".lc-scroll-top-area",function(e){if(LiveComposer.Builder.Flags.windowScroller!==false)return false;LiveComposer.Utils.publish("LC.sortableOff",{});LiveComposer.Builder.Flags.windowScroller=setInterval(function(){LiveComposer.Builder.PreviewAreaWindow.scrollBy(0,-o)},s)});jQuery(LiveComposer.Builder.PreviewAreaDocument).on("dragend mouseup","body",function(e){LiveComposer.Builder.Flags.windowScroller&&LiveComposer.Builder.UI.stopScroller()})};LiveComposer.Builder.UI.stopScroller=function(){LiveComposer.Utils.publish("LC.sortableOn",{});clearInterval(LiveComposer.Builder.Flags.windowScroller);LiveComposer.Builder.Flags.windowScroller=false};jQuery("#scroller-stopper").on("dragover",function(){LiveComposer.Builder.UI.stopScroller()})});"use strict";LiveComposer.Builder.Elements.CSectionsContainer=function(e){var o=this;this.sortable=jQuery(e).sortable({items:".dslc-modules-section-dnd",handle:'.dslca-move-modules-section-hook:not(".dslca-action-disabled")',placeholder:"dslca-modules-section-placeholder",tolerance:"intersect",cursorAt:{bottom:10},axis:"y",scroll:true,scrollSensitivity:140,scrollSpeed:5,sort:function(){jQuery(this).removeClass("ui-state-default")},update:function(e,o){dslc_show_publish_button()},start:function(e,o){jQuery("body").removeClass("dslca-drag-not-in-progress").addClass("dslca-drag-in-progress");jQuery("body",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-drag-not-in-progress").addClass("dslca-drag-in-progress");o.placeholder.html('<span class="dslca-placeholder-help-text"><span class="dslca-placeholder-help-text-inner">'+DSLCString.str_row_helper_text+"</span></span>");jQuery(".dslc-content").sortable("refreshPositions")},stop:function(e,o){dslc_generate_code();LiveComposer.Builder.UI.stopScroller();jQuery("body",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-drag-in-progress").addClass("dslca-drag-not-in-progress");jQuery("body").removeClass("dslca-drag-in-progress").addClass("dslca-drag-not-in-progress");jQuery(".dslca-anim-opacity-drop").removeClass("dslca-anim-opacity-drop")}});jQuery(document).on("LC.sortableOff",function(){if(undefined!==o.sortable.sortable("instance")){o.sortable.sortable("option","disabled",true)}});jQuery(document).on("LC.sortableOn",function(){if(undefined!==o.sortable.sortable("instance")){o.sortable.sortable("option","disabled",false)}})};"use strict";jQuery(document).ready(function(d){dslc_module_options_tooltip();dslc_module_options_font();dslc_module_options_icon();dslc_module_options_icon_returnid();dslc_module_options_text_align();dslc_module_options_checkbox();dslc_module_options_box_shadow();dslc_module_options_text_shadow();var e="";e+=".dslca-module-edit-field-colorpicker";e+=", .dslca-modules-section-edit-field-colorpicker";e+=", .dslca-module-edit-option-box-shadow-color";e+=", .dslca-module-edit-option-text-shadow-color";jQuery(document).on("click",e,function(){dslc_module_options_color(this);var l=jQuery(this).closest(".dslca-color-option");var e=jQuery(".dslca-module-edit-options-inner");var i=l.find(".wp-picker-holder");var t=l.offset();var o=t.left+15;var s=window.innerWidth;var d=260;if(s<o+d){o=s-d}i.css("left",o+"px");jQuery(e).on("scroll",function(e){t=l.offset();var o=t.left+15;var s=window.innerWidth;var d=260;if(s<o+d){o=s-d}i.css("left",o+"px")})});jQuery(".dslca-container").on("mouseenter",".dslca-module-edit-option-slider",function(){if(!jQuery(this).hasClass("dslca-module-edit-option-select")){dslc_module_options_numeric(this)}});jQuery(".dslca-container").on("mouseenter",".dslca-modules-section-edit-option-slider",function(){dslc_module_options_numeric(this)});jQuery(".dslca-module-edit-form").submit(function(e){e.preventDefault();dslc_module_output_altered()});d(document).on("click",".dslca-module-edit-options-tab-hook",function(e){e.preventDefault();dslc_module_options_tab_filter(d(this))});d(document).on("click",".dslca-options-filter-hook",function(e){e.preventDefault();var o=jQuery(".dslca-options-filter-hook.dslca-active").data("section");var s=jQuery(this).data("section");d(".dslca-options-filter-hook.dslca-active").removeClass("dslca-active");d(this).addClass("dslca-active");dslc_module_options_section_filter(s);if(o=="responsive"){jQuery(".dslca-container-loader").show();LiveComposer.Builder.PreviewAreaWindow.dslc_responsive_classes();dslc_module_output_altered(function(){jQuery(".dslca-container-loader").hide()});jQuery("#page-builder-preview-area").resizable("destroy").attr("style","")}if(s=="responsive"){jQuery("#page-builder-preview-area").resizable()}});jQuery(document).on("click",".dslca-module-edit-save",function(e){e.preventDefault();dslc_module_options_confirm_changes(function(){LiveComposer.Builder.UI.unloadOptionsDeps();LiveComposer.Builder.Flags.panelOpened=false;jQuery("body",LiveComposer.Builder.PreviewAreaDocument).removeClass("module-editing-in-progress")});jQuery(".dslca-options-filter-hook.dslca-active").removeClass("dslca-active");dslc_disable_responsive_view()});jQuery(document).on("click",".dslca-module-edit-cancel",function(e){e.preventDefault();dslc_module_options_cancel_changes(function(){LiveComposer.Builder.UI.unloadOptionsDeps();LiveComposer.Builder.Flags.panelOpened=false;jQuery("body",LiveComposer.Builder.PreviewAreaDocument).removeClass("module-editing-in-progress")});jQuery(".dslca-options-filter-hook.dslca-active").removeClass("dslca-active");dslc_disable_responsive_view()})});(function(){var t=jQuery;var e=LiveComposer.Builder;LiveComposer.Builder.Helpers.colorpickers=[];LiveComposer.Builder.UI.clearUtils=function(){if(dslcDebug)console.log("LiveComposer.Builder.UI.clearUtils");LiveComposer.Builder.UI.clearColorPickers();if(undefined!==LiveComposer.Builder.moduleBackup){LiveComposer.Builder.moduleBackup.remove()}jQuery(".temp-styles-for-module",LiveComposer.Builder.PreviewAreaDocument).remove();jQuery(".mce-tinymce",LiveComposer.Builder.PreviewAreaDocument).hide()};LiveComposer.Builder.UI.clearColorPickers=function(){if(Array.isArray(e.Helpers.colorpickers)){e.Helpers.colorpickers.forEach(function(e){if(!jQuery(e).hasClass("dslca-modules-section-edit-field")){jQuery(e).remove()}});e.Helpers.colorpickers=[]}jQuery("body").off("click.wpcolorpicker")};LiveComposer.Builder.Helpers.depsHandlers=[];LiveComposer.Builder.UI.loadOptionsDeps=function(){var e=this;t(".dslca-module-edit-option").each(function(){var e=this;var o=true;try{var s=JSON.parse(LiveComposer.Utils.b64_to_utf8(t(this).data("dep")))}catch(e){o=false}if(o){var d=function(){var i=this;var e={};if((i.type=="radio"||i.type=="checkbox")&&s[i.value]==undefined){return false}if(i.type=="checkbox"&&s[i.value]!=undefined){e[i.value]=s[i.value]}else{e=s}Object.keys(e).forEach(function(l){e[l].split(",").forEach(function(e){var o=t(".dslca-module-edit-option-"+e.trim()).closest(".dslca-module-edit-option");var s=true;if(i.type=="radio"||i.type=="checkbox"){s=t(i).is(":checked")}var d=jQuery(".dslca-module-edit-options-tab-hook.dslca-active").data("id");if(i.value==l&&s){if(o.not(".dependent")){o.addClass("dependent")}if(o.hasClass("dep-hide")){o.removeClass("dep-hide");o.addClass("dep-show")}else{o.addClass("dep-show")}if(d==o.data("tab")){o.show()}}else{if(o.not(".dependent")){o.addClass("dependent")}if(o.hasClass("dep-show")){o.removeClass("dep-show");o.addClass("dep-hide")}else{o.addClass("dep-hide")}o.hide()}})})};t(document).on("change dslc-init-deps",'.dslca-module-edit-option *[data-id="'+t(this).data("id")+'"]',d);LiveComposer.Builder.Helpers.depsHandlers.push(d)}});t(".dslca-module-edit-option input, .dslca-module-edit-option select").trigger("dslc-init-deps")};LiveComposer.Builder.UI.unloadOptionsDeps=function(){LiveComposer.Builder.Helpers.depsHandlers.forEach(function(e){t(document).unbind("change",e);t(document).unbind("dslc-init-deps",e)});LiveComposer.Builder.Helpers.depsHandlers=[]};LiveComposer.Builder.Helpers.processInlineStyleTag=function(e){if(typeof e!="object")return false;var o="",s="";if(e.context.closest(".dslca-module-edit-option").data("tab")=="tablet_responsive"){o="@media only screen and (max-width: 1024px) and (min-width: 768px) {";s="}"}else if(e.context.closest(".dslca-module-edit-option").data("tab")=="phone_responsive"){o="@media only screen and (max-width: 767px) {";s="}"}e.styleContent=o+e.styleContent+s;var d=o+e.rule+e.elems;d=d.replace(/ /gi,"");if(LiveComposer.Builder.PreviewAreaDocument[0].getElementById(d)==null){var l=document.createElement("style");l.innerHTML=e.styleContent;l.id=d;l.className="temp-styles-for-module";LiveComposer.Builder.PreviewAreaDocument[0].body.appendChild(l)}else{LiveComposer.Builder.PreviewAreaDocument[0].getElementById(d).innerHTML=e.styleContent}};LiveComposer.Builder.UI.shakePanelConfirmButton=function(){jQuery(".dslca-module-edit-save").addClass("lc-shake-effect active");setTimeout(function(){jQuery(".dslca-module-edit-save").removeClass("lc-shake-effect active")},1e3)}})();function dslc_module_options_section_filter(e){if(dslcDebug)console.log("dslc_module_options_section_filter");jQuery(".dslca-module-edit-option").hide();jQuery('.dslca-module-edit-option[data-section="'+e+'"]').show();dslc_module_options_tab_filter()}function dslc_module_options_tab_filter(e){if(dslcDebug)console.log("dslc_module_options_tab_filter");var o=jQuery(".dslca-options-filter-hook.dslca-active").data("section");e=typeof e!=="undefined"?e:jQuery('.dslca-module-edit-options-tab-hook[data-section="'+o+'"]:first');var s=e.data("id");jQuery(".dslca-module-edit-options-tab-hook").removeClass("dslca-active");e.addClass("dslca-active");jQuery(".dslca-module-edit-options-tabs").show();jQuery(".dslca-module-edit-options-tab-hook").hide();jQuery('.dslca-module-edit-options-tab-hook[data-section="'+o+'"]').show();if(s){jQuery(".dslca-module-edit-option").hide();jQuery('.dslca-module-edit-option[data-tab="'+s+'"]').show();dslc_module_options_hideshow_tabs();if(jQuery(".dslca-module-edit-options-tab-hook:visible").length<2){jQuery(".dslca-module-edit-options-tabs").hide()}else{jQuery(".dslca-module-edit-options-tabs").show()}dslc_disable_responsive_view();if(s==DSLCString.str_res_tablet.toLowerCase()+"_responsive"){jQuery("body").removeClass("dslc-res-big dslc-res-smaller-monitor dslc-res-phone dslc-res-tablet");jQuery("body").addClass("dslc-res-tablet");jQuery("html").addClass("dslc-responsive-preview")}if(s==DSLCString.str_res_phone.toLowerCase()+"_responsive"){jQuery("body").removeClass("dslc-res-big dslc-res-smaller-monitor dslc-res-phone dslc-res-tablet");jQuery("body").addClass("dslc-res-phone");jQuery("html").addClass("dslc-responsive-preview")}if(s==DSLCString.str_res_tablet.toLowerCase()+"_responsive"||s==DSLCString.str_res_phone.toLowerCase()+"_responsive"){jQuery(".dslca-container-loader").show();dslc_module_output_altered(function(){jQuery(".dslca-container-loader").hide()})}}if(jQuery("body").hasClass("rtl")){var d=0;var l=0;var i=0;jQuery(".dslca-module-edit-options-wrapper > .dslca-module-edit-option:visible").each(function(e){if(!jQuery(this).hasClass("dslca-module-edit-option-hidden")&&!jQuery(this).hasClass("dslca-module-control-group")){d+=parseInt(jQuery(this).outerWidth(),10)}});jQuery(".dslca-module-edit-options-wrapper > .dslca-module-control-group:visible").each(function(e){l+=parseInt(jQuery(this).outerWidth(),10)});i=parseInt(d)+parseInt(l)+10;jQuery(".dslca-module-edit-options-wrapper").css({width:i+"px"})}}function dslc_module_options_hideshow_tabs(){if(dslcDebug)console.log("dslc_module_options_hideshow_tabs");var e=jQuery(".dslca-options-filter-hook.dslca-active").data("section");if(e=="styling"){var o=jQuery(".dslca-module-edit"),s=true,d=true,l=true,i=true,t=true,a=true,r=true,c=true,n=true,u=true,m=true,p=true,f=true,v=true,h=true,_=true,y=true,g=true,j=true,Q=true,b=true,C=true,w=true,k=true,L=true,B=true,D=true;if(!jQuery('.dslca-module-edit-field[value="main_heading"]').is(":checked"))s=false;if(!jQuery('.dslca-module-edit-field[value="filters"]').is(":checked"))d=false;if(!jQuery('.dslca-module-edit-field[value="arrows"]').is(":checked"))l=false;if(!jQuery('.dslca-module-edit-field[value="circles"]').is(":checked"))i=false;if(jQuery('.dslca-module-edit-field[data-id="type"]').val()!="carousel"){l=false;i=false}if(jQuery('.dslca-module-edit-field[data-id="pagination_type"]').val()=="disabled"){t=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="thumbnail"]').is(":checked")){a=false}if(jQuery('.dslca-module-edit-field[data-id*="elements"][value="content"]').length&&!jQuery('.dslca-module-edit-field[data-id*="elements"][value="title"]').is(":checked")){r=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="excerpt"]').is(":checked")){c=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="meta"]').is(":checked")){n=false}if(jQuery('.dslca-module-edit-field[data-id*="elements"][value="button"]').length&&!jQuery('.dslca-module-edit-field[data-id*="elements"][value="button"]').is(":checked")){u=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="categories"]').is(":checked")){m=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="separator"]').is(":checked")){f=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="count"]').is(":checked")){p=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="tags"]').is(":checked")){v=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="social"]').is(":checked")){h=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="position"]').is(":checked")){_=false}if(jQuery('.dslca-module-edit-field[data-id*="elements"][value="icon"]').length&&!jQuery('.dslca-module-edit-field[data-id*="elements"][value="icon"]').is(":checked")){y=false}if(jQuery('.dslca-module-edit-field[data-id*="elements"][value="content"]').length&&!jQuery('.dslca-module-edit-field[data-id*="elements"][value="content"]').is(":checked")){g=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="price"]').is(":checked")){j=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="price_2"]').is(":checked")){Q=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="addtocart"]').is(":checked")){b=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="details"]').is(":checked")){C=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="quote"]').is(":checked")){w=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="author_name"]').is(":checked")){k=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="author_position"]').is(":checked")){L=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="image"]').is(":checked")){B=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="logo"]').is(":checked")){D=false}if(s)jQuery('.dslca-module-edit-options-tab-hook[data-id="heading_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="heading_styling"]').hide();if(d)jQuery('.dslca-module-edit-options-tab-hook[data-id="filters_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="filters_styling"]').hide();if(l)jQuery('.dslca-module-edit-options-tab-hook[data-id="carousel_arrows_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="carousel_arrows_styling"]').hide();if(i)jQuery('.dslca-module-edit-options-tab-hook[data-id="carousel_circles_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="carousel_circles_styling"]').hide();if(t)jQuery('.dslca-module-edit-options-tab-hook[data-id="pagination_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="pagination_styling"]').hide();if(a)jQuery('.dslca-module-edit-options-tab-hook[data-id="thumbnail_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="thumbnail_styling"]').hide();if(r)jQuery('.dslca-module-edit-options-tab-hook[data-id="title_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="title_styling"]').hide();if(c)jQuery('.dslca-module-edit-options-tab-hook[data-id="excerpt_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="excerpt_styling"]').hide();if(n)jQuery('.dslca-module-edit-options-tab-hook[data-id="meta_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="meta_styling"]').hide();if(u)jQuery('.dslca-module-edit-options-tab-hook[data-id="button_styling"], .dslca-module-edit-options-tab-hook[data-id="primary_button_styling"],'+' .dslca-module-edit-options-tab-hook[data-id="secondary_button_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="button_styling"], .dslca-module-edit-options-tab-hook[data-id="primary_button_styling"],'+' .dslca-module-edit-options-tab-hook[data-id="secondary_button_styling"]').hide();if(m)jQuery('.dslca-module-edit-options-tab-hook[data-id="categories_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="categories_styling"]').hide();if(f)jQuery('.dslca-module-edit-options-tab-hook[data-id="separator_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="separator_styling"]').hide();if(p)jQuery('.dslca-module-edit-options-tab-hook[data-id="count_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="count_styling"]').hide();if(v)jQuery('.dslca-module-edit-options-tab-hook[data-id="tags_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="tags_styling"]').hide();if(_)jQuery('.dslca-module-edit-options-tab-hook[data-id="position_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="position_styling"]').hide();if(h)jQuery('.dslca-module-edit-options-tab-hook[data-id="social_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="social_styling"]').hide();if(y)jQuery('.dslca-module-edit-options-tab-hook[data-id="icon_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="icon_styling"]').hide();if(g)jQuery('.dslca-module-edit-options-tab-hook[data-id="content_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="content_styling"]').hide();if(j)jQuery('.dslca-module-edit-options-tab-hook[data-id="price_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="price_styling"]').hide();if(Q)jQuery('.dslca-module-edit-options-tab-hook[data-id="price_secondary_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="price_secondary_styling"]').hide();if(b||C)jQuery('.dslca-module-edit-options-tab-hook[data-id="other_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="other_styling"]').hide();if(w)jQuery('.dslca-module-edit-options-tab-hook[data-id="quote_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="quote_styling"]').hide();if(k)jQuery('.dslca-module-edit-options-tab-hook[data-id="author_name_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="author_name_styling"]').hide();if(L)jQuery('.dslca-module-edit-options-tab-hook[data-id="author_position_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="author_position_styling"]').hide();if(B)jQuery('.dslca-module-edit-options-tab-hook[data-id="image_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="image_styling"]').hide();if(D)jQuery('.dslca-module-edit-options-tab-hook[data-id="logo_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="logo_styling"]').hide()}if(jQuery('.dslca-options-filter-hook[data-section="styling"]').hasClass("dslca-active")){var x=jQuery('.dslca-module-edit-option[data-id="css_custom"]'),A=x.find("select").val();if(A=="enabled"){jQuery('.dslca-module-edit-option[data-section="styling"]').css({visibility:"visible"});jQuery(".dslca-module-edit-option[data-tab]").css("visibility","visible");jQuery(".dslca-module-edit-options-tabs").show()}else{jQuery('.dslca-module-edit-option[data-section="styling"]').css({visibility:"hidden"});jQuery(".dslca-module-control-group.dslca-module-edit-option").css("visibility","hidden");jQuery(".dslca-module-edit-options-tabs").hide();x.css({visibility:"visible"})}}else{jQuery(".dslca-module-edit-options-tabs").show()}if(jQuery('select.dslca-module-edit-field[data-id="css_res_t"]').val()=="disabled"){jQuery('.dslca-module-edit-option[data-id*="css_res_t"]').css("visibility","hidden");jQuery('.dslca-module-edit-option[data-tab="tablet_responsive"]').css("visibility","hidden")}else{jQuery('.dslca-module-edit-option[data-id*="css_res_t"]').css("visibility","visible");jQuery('.dslca-module-edit-option[data-tab="tablet_responsive"]').css("visibility","visible")}if(jQuery('select.dslca-module-edit-field[data-id="css_res_p"]').val()=="disabled"){jQuery('.dslca-module-edit-option[data-id*="css_res_p"]').css("visibility","hidden");jQuery('.dslca-module-edit-option[data-tab="phone_responsive"]').css("visibility","hidden")}else{jQuery('.dslca-module-edit-option[data-id*="css_res_p"]').css("visibility","visible");jQuery('.dslca-module-edit-option[data-tab="phone_responsive"]').css("visibility","visible")}jQuery('.dslca-module-edit-option[data-id="css_res_p"], .dslca-module-edit-option[data-id="css_res_t"]').css("visibility","visible");if(jQuery(".dslca-options-filter-hook").hasClass("dslca-active")){var P=jQuery(".dslca-options-filter-hook.dslca-active").data("section");if(jQuery('.dslca-module-edit-option[data-section="'+P+'"]').hasClass("dep-show")){jQuery(".dslca-module-edit-option.dep-show").show()}if(jQuery('.dslca-module-edit-option[data-section="'+P+'"]').hasClass("dep-hide")){jQuery(".dslca-module-edit-option.dep-hide").hide()}}if(jQuery(".dslca-module-edit-options-tab-hook").hasClass("dslca-active")){var S=jQuery(".dslca-module-edit-options-tab-hook.dslca-active").data("id");if(jQuery('.dslca-module-edit-option[data-tab="'+S+'"]').hasClass("dependent")){jQuery(".dslca-module-edit-option.dependent").hide();jQuery('.dslca-module-edit-option[data-tab="'+S+'"].dep-show').show();jQuery('.dslca-module-edit-option[data-tab="'+S+'"].dep-hide').hide()}else{jQuery(".dslca-module-edit-option.dependent").hide()}}}function dslc_module_options_confirm_changes(e){if(dslcDebug)console.log("dslc_module_options_confirm_changes");e=typeof e!=="undefined"?e:false;if(jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).hasClass("dslc-module-DSLC_Sliders")){jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-module-being-edited")}else{jQuery("body").addClass("dslca-module-saving-in-progress");dslc_module_output_altered(function(){dslc_update_preset();dslc_generate_code();jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-module-being-edited");jQuery("body").removeClass("dslca-module-saving-in-progress");jQuery(".dslca-module-edit-options-inner").html("");jQuery(".dslca-module-edit-options-tabs").html("");LiveComposer.Builder.UI.clearUtils();if(e){e()}})}dslc_show_section(".dslca-modules");jQuery(".dslca-header .dslca-options-filter-hook").hide();jQuery(".dslca-module-edit-actions").hide();jQuery(".dslca-header .dslca-go-to-section-hook").show();dslc_show_publish_button()}function dslc_module_options_cancel_changes(e){if(dslcDebug)console.log("dslc_module_options_cancel_changes");e=typeof e!=="undefined"?e:false;var o=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument);jQuery(".dslca-module-options-front",o).html("").append(LiveComposer.Builder.moduleBackup);dslc_module_output_altered(function(){dslc_generate_code();jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-module-being-edited");jQuery(".dslca-module-edit-options-inner").html("");jQuery(".dslca-module-edit-options-tabs").html("");LiveComposer.Builder.UI.clearUtils();if(e){e()}});dslc_show_section(".dslca-modules");jQuery(".dslca-header .dslca-options-filter-hook").hide();jQuery(".dslca-module-edit-actions").hide();jQuery(".dslca-header .dslca-go-to-section-hook").show();dslc_show_publish_button();LiveComposer.Builder.UI.clearUtils()}function dslc_module_options_tooltip(){jQuery(document).on("click",".dslca-module-edit-field-ttip-close",function(){jQuery(".dslca-module-edit-field-ttip, .dslca-module-edit-field-icon-ttip").hide()});jQuery(document).on("click",".dslca-module-edit-field-ttip-hook",function(){var e=jQuery(".dslca-module-edit-field-ttip"),o=e.find(".dslca-module-edit-field-ttip-inner"),s=jQuery(this),d,l;l=s.parent();if(l.parent().hasClass("dslca-modules-section-edit-option")){d=s.closest(".dslca-modules-section-edit-option").find(".dslca-module-edit-field-ttip-content").html()}else{d=s.closest(".dslca-module-edit-option").find(".dslca-module-edit-field-ttip-content").html()}if(e.is(":visible")){jQuery(".dslca-module-edit-field-ttip").hide()}else{o.html(d);var i=s.offset();var t=e.outerHeight();var a=e.outerWidth();var r=i.left-a/2+6;var c="50%";if(r<0){c=a/2+r+"px";r=0}jQuery(".dslca-module-edit-field-ttip").show().css({top:i.top-t-20,left:r});jQuery("head").append(jQuery("<style>.dslca-module-edit-field-ttip:after, .dslca-module-edit-field-ttip:before { left: "+c+" }</style>"))}});jQuery(document).on("click",".dslca-module-edit-field-icon-ttip-hook",function(){var e=jQuery(".dslca-module-edit-field-icon-ttip");var o=jQuery(this);if(e.is(":visible")){jQuery(".dslca-module-edit-field-icon-ttip").hide()}else{var s=o.offset();var d=e.outerHeight();var l=e.outerWidth();var i=s.left-l/2+6;var t="50%";if(i<0){t=l/2+i+"px";i=0}jQuery(".dslca-module-edit-field-icon-ttip").show().css({top:s.top-d-20,left:i});jQuery("head").append(jQuery("<style>.dslca-module-edit-field-icon-ttip:after, .dslca-module-edit-field-icon-ttip:before { left: "+t+" }</style>"))}})}function dslc_module_options_font(){jQuery(document).on("click",".dslca-module-edit-field-font-next",function(e){e.preventDefault();if(!jQuery(this).hasClass("dslca-font-loading")&&!jQuery(this).siblings(".dslca-font-loading").length){var o=jQuery(this).closest(".dslca-module-edit-option-font");var s=jQuery(".dslca-module-edit-field-font",o);var d=dslcAllFontsArray.indexOf(s.val());var l=d+1;jQuery(".dslca-module-edit-field-font-suggest",o).text("");s.val(dslcAllFontsArray[l]).trigger("change");jQuery(this).addClass("dslca-font-loading").find(".dslca-icon").removeClass("dslc-icon-chevron-right").addClass("dslc-icon-refresh dslc-icon-spin")}});jQuery(document).on("click",".dslca-module-edit-field-font-prev",function(e){e.preventDefault();if(!jQuery(this).hasClass("dslca-font-loading")&&!jQuery(this).siblings(".dslca-font-loading").length){var o=jQuery(this).closest(".dslca-module-edit-option-font");var s=jQuery(".dslca-module-edit-field-font",o);var d=dslcAllFontsArray.indexOf(s.val());var l=d-1;jQuery(".dslca-module-edit-field-font-suggest",o).text("");if(l<0){l=dslcAllFontsArray.length-1}s.val(dslcAllFontsArray[l]).trigger("change");jQuery(this).addClass("dslca-font-loading").find(".dslca-icon").removeClass("dslc-icon-chevron-left").addClass("dslc-icon-refresh dslc-icon-spin")}});jQuery(document).on("keyup",".dslca-module-edit-field-font",function(e){var o,s,d,l=false,i;o=jQuery(this);s=o.closest(".dslca-module-edit-option");if(e.which==38){jQuery(".dslca-module-edit-field-font-prev",s).click()}if(e.which==40){jQuery(".dslca-module-edit-field-font-next",s).click()}if(e.which!=13&&e.which!=38&&e.which!=40){d=o.val();var t=[];var a=new RegExp("^"+d,"i");var r=dslcAllFontsArray.length;var c=0;do{if(a.test(dslcAllFontsArray[c])){if(!l){var l=dslcAllFontsArray[c]}}c++}while(c<r);if(!l){i=d;jQuery(".dslca-module-edit-field-font-suggest",s).hide()}else{i=l;jQuery(".dslca-module-edit-field-font-suggest",s).show()}jQuery(".dslca-module-edit-field-font-suggest",s).text(i);if(i.length){o.val(i.substring(0,o.val().length))}}});jQuery(document).on("keypress",".dslca-module-edit-field-font",function(e){if(e.which==13){e.preventDefault();var o,s,d,l,i;o=jQuery(this);s=o.closest(".dslca-module-edit-option");jQuery(this).val(jQuery(".dslca-module-edit-field-font-suggest",s).text()).trigger("change");jQuery(".dslca-module-edit-field-font-suggest",s).text("")}})}function dslc_list_icon(e,o){var s=jQuery(e).closest(".dslca-module-edit-option-icon");var d=jQuery(".dslca-module-edit-field-icon",s);var l=dslcIconsCurrentSet.indexOf(d.val());if(o=="previous"){var i=l-1}else{var i=l+1}jQuery(".dslca-module-edit-field-icon-suggest",s).text("");if(i<0){i=dslcIconsCurrentSet.length-1}d.val(dslcIconsCurrentSet[i]).trigger("change")}function dslc_module_options_icon(){jQuery(document).on("keyup",".dslca-module-edit-field-icon",function(e){var o,s,d,l,i;o=jQuery(this);s=o.closest(".dslca-module-edit-option");if(e.which==38){dslc_list_icon(o,"previous")}if(e.which==40){dslc_list_icon(o,"next")}if(e.which!=13&&e.which!=38&&e.which!=40){d=o.val().toLowerCase();o.val(d);l=jQuery.grep(dslcIconsCurrentSet,function(e,o){return e.indexOf(d)==0});i=l[0];jQuery(".dslca-module-edit-field-icon-suggest",s).text(i)}});jQuery(document).on("keypress",".dslca-module-edit-field-icon",function(e){if(e.which==13){e.preventDefault();var o,s,d,l,i;o=jQuery(this);s=o.closest(".dslca-module-edit-option");jQuery(this).val(jQuery(".dslca-module-edit-field-icon-suggest",s).text()).trigger("change");jQuery(".dslca-module-edit-field-icon-suggest",s).text("")}})}function dslc_module_options_icon_returnid(){jQuery(document).on("click",'.dslca-open-modal-hook[data-modal^=".dslc-list-icons"]',function(e){jQuery(this).closest(".dslca-module-edit-option-icon").find("input").addClass("icon-modal-active")});jQuery(document).on("click",".dslca-modal-icons .icon-item",function(e){var o=jQuery(this).find(".icon-item_name").text();jQuery("input.icon-modal-active").val(o).change();dslc_hide_modal("",jQuery(".dslca-modal:visible"));jQuery("input.icon-modal-active").removeClass("icon-modal-active")})}function dslc_module_options_text_align(){jQuery(document).on("click",".dslca-module-edit-option-text-align-hook",function(){var e=jQuery(this),o=jQuery(this).closest(".dslca-module-edit-option-text-align-wrapper").find(".dslca-module-edit-option-text-align-hook"),s=e.data("val"),d=jQuery(this).closest(".dslca-module-edit-option-text-align-wrapper").siblings("input.dslca-module-edit-field");o.removeClass("dslca-active");e.addClass("dslca-active");d.val(s).trigger("change")})}function dslc_module_options_checkbox(){jQuery(document).on("click",".dslca-module-edit-option-checkbox-hook, .dslca-modules-section-edit-option-checkbox-hook",function(){var e=jQuery(this);var o=e.siblings('input[type="checkbox"]');if(o.prop("checked")){o.prop("checked",false);e.find(".dslca-icon").removeClass("dslc-icon-check").addClass("dslc-icon-check-empty")}else{o.prop("checked",true);e.find(".dslca-icon").removeClass("dslc-icon-check-empty").addClass("dslc-icon-check")}o.change()})}function dslc_module_options_box_shadow(){if(dslcDebug)console.log("dslc_module_options_box_shadow");jQuery(document).on("change",".dslca-module-edit-option-box-shadow-hor, "+".dslca-module-edit-option-box-shadow-ver, .dslca-module-edit-option-box-shadow-blur, .dslca-module-edit-option-box-shadow-spread,"+" .dslca-module-edit-option-box-shadow-color, .dslca-module-edit-option-box-shadow-inset",function(){var e=jQuery(this).closest(".dslca-module-edit-option"),o=e.find(".dslca-module-edit-field"),s=e.find(".dslca-module-edit-option-box-shadow-hor").val(),d=e.find(".dslca-module-edit-option-box-shadow-ver").val(),l=e.find(".dslca-module-edit-option-box-shadow-blur").val(),i=e.find(".dslca-module-edit-option-box-shadow-spread").val(),t=e.find(".dslca-module-edit-option-box-shadow-color").val(),a=e.find(".dslca-module-edit-option-box-shadow-inset").is(":checked");if(a){a=" inset"}else{a=""}var r=s+"px "+d+"px "+l+"px "+i+"px "+t+a;o.val(r).trigger("change")})}function dslc_module_options_text_shadow(){if(dslcDebug)console.log("dslc_module_options_text_shadow");jQuery(document).on("change",".dslca-module-edit-option-text-shadow-hor, .dslca-module-edit-option-text-shadow-ver,"+".dslca-module-edit-option-text-shadow-blur, .dslca-module-edit-option-text-shadow-color",function(){var e=jQuery(this).closest(".dslca-module-edit-option"),o=e.find(".dslca-module-edit-field"),s=e.find(".dslca-module-edit-option-text-shadow-hor").val(),d=e.find(".dslca-module-edit-option-text-shadow-ver").val(),l=e.find(".dslca-module-edit-option-text-shadow-blur").val(),i=e.find(".dslca-module-edit-option-text-shadow-color").val();var t=s+"px "+d+"px "+l+"px "+i;o.val(t).trigger("change")})}function dslc_module_options_color(e){if(dslcDebug)console.log("dslc_module_options_color");var l,i,t,a,r,c,n;var u=[],o,s;var m="dslcColors-"+document.domain;if(undefined!==localStorage[m]){o=JSON.parse(localStorage[m]);u=o}if(1>u.length){u.push("#78b")}if(2>u.length){u.push("#ab0")}if(3>u.length){u.push("#de3")}u.push("#fff");u.push("#000");u.push("rgba(0,0,0,0)");var d=e;jQuery(d).each(function(){var e=jQuery(this).closest(".dslca-color-option");var d=jQuery(this);n=jQuery(this).val();d.wpColorPicker({mode:"hsl",palettes:u,change:function(e,o){l=d;var s=d.wpColorPicker("color");if(s==null){a=""}else{a=s}l.val(a).trigger("change");l.css("background",a);i=l.data("affect-on-change-el");t=l.data("affect-on-change-rule");if(null!=i){jQuery(i,".dslca-module-being-edited").css(t,a)}r=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument);c=l.data("id");jQuery('.dslca-module-option-front[data-id="'+c+'"]',r).val(a);r.addClass("dslca-module-change-made")}});var o=e.find(".wp-picker-holder .iris-picker");o.append('<button type="button" class="dslca-colorpicker-apply">Apply</button>');var s=e.find(".dslca-colorpicker-apply");d.wpColorPicker("open");jQuery(s).on("click",function(){if("#fff"!==a&&"#ffffff"!==a&&"#000"!==a&&"#000000"!==a&&"rgba(0,0,0,0)"!==a){if(undefined===localStorage[m]){var e=[a];localStorage[m]=JSON.stringify(e)}else{var e=JSON.parse(localStorage[m]);if(e.indexOf(a)==-1){e.unshift(a);if(3<e.length){e.pop()}}localStorage[m]=JSON.stringify(e)}}d.wpColorPicker("close")});LiveComposer.Builder.Helpers.colorpickers.push(jQuery(this))})}function dslc_module_options_numeric(e){if(dslcDebug)console.log("dslc_module_options_numeric");var o=e;jQuery(o).each(function(){var s=jQuery(this);if(0===jQuery(".dslca-module-edit-field-slider",s).length){s.append('<div class="dslca-module-edit-field-slider"></div>')}var l=true;if(s.hasClass("dslca-modules-section-edit-option")){l=false}else{l=true}if(l){var d=s.find(".dslca-module-edit-field")}else{var d=s.find(".dslca-modules-section-edit-field")}if(s.hasClass("dslca-modules-section-edit-option")){var d=s.find(".dslca-modules-section-edit-field")}else{var d=s.find(".dslca-module-edit-field")}var i="",t=s.find(".dslca-module-edit-field-slider"),e=parseFloat(d.val()),a=parseFloat(d.data("max")),r=parseFloat(d.data("min")),o=parseFloat(d.data("increment")),c=a,n=r;var u=false;if(undefined!==d.data("onlypositive")&&1===d.data("onlypositive")){u=true}if(e>=a){a=e*2}if(!u&&e<=r){r=e*2}t.slider({min:r,max:a,step:o,value:d.val(),slide:function(e,o){d.val(o.value+i);d.trigger("change")},change:function(e,o){if(o.value>=a||o.value<=r){t.slider("destroy");dslc_module_options_numeric(s)}}});t.show();jQuery(s).on("mouseleave",function(){if(undefined!==t.slider("instance")){jQuery(t).slider("destroy")}t.remove()});if(d[0].classList.contains("slider-initiated"))return;d[0].classList.add("slider-initiated");d.on("keyup",function(e){if(undefined===e){return false}if(e.shiftKey){if(e.keyCode==38){this.value=(parseInt(this.value)||0)+9;d.trigger("change")}if(e.keyCode==40){this.value=parseInt(this.value)+0-9;d.trigger("change")}}if(e.keyCode==8||e.keyCode==45){d.trigger("change")}if(e.keyCode>=48&&e.keyCode<=57||e.keyCode>=96&&e.keyCode<=105){d.trigger("change")}var o=e.which?e.which:e.keyCode;if((o>=48&&o<=57||o>=96&&o<=105)&&e.keyCode!=8&&e.keyCode!=39&&e.keyCode!=37&&e.keyCode!=46){return false}});d.on("change",function(e){if(u&&this.value<0){this.value=0}var o;if(l){o=jQuery(e.target.closest(".dslca-module-edit-option-slider"))}else{o=jQuery(e.target.closest(".dslca-modules-section-edit-option-slider"))}var s=o.find(".dslca-module-edit-field-slider");if(undefined!==s.slider("instance")){s.slider("value",this.value)}if(l){var d=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument);d.addClass("dslca-module-change-made")}});return false})}function dslc_disable_responsive_view(){jQuery("html").removeClass("dslc-responsive-preview");jQuery("body").removeClass("dslc-res-big dslc-res-smaller-monitor dslc-res-phone dslc-res-tablet")}function dslc_filter_module_options(e){dslc_module_options_section_filter(e)}function dslc_show_module_options_tab(e){dslc_module_options_tab_filter(e)}function dslc_confirm_changes(e){dslc_module_options_confirm_changes(e)}function dslc_cancel_changes(e){dslc_module_options_cancel_changes(e)}function dslc_init_colorpicker(){dslc_module_options_color()}function dslc_init_options_slider(){dslc_module_options_numeric()}function dslc_module_edit_options_hideshow_tabs(){dslc_module_options_hideshow_tabs()}"use strict";function dslc_template_load(e){if(dslcDebug)console.log("dslc_load_template");var o,s;jQuery("#wpcontent").prepend('<div class="lc-template-loader"></div>');var d='<div class="lc-loader lds-css"><div class="lds-spinner"><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div></div>';jQuery(".lc-template-loader").prepend(d);jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-load-template",dslc:"active",dslc_template_id:e},function(e){jQuery("#dslc-main",LiveComposer.Builder.PreviewAreaDocument).html(e.output);jQuery(".lc-template-loader").remove();LiveComposer.Builder.PreviewAreaWindow.dslc_carousel();LiveComposer.Builder.rows_init();LiveComposer.Builder.moduleareas_init();dslc_drag_and_drop();dslc_show_publish_button();dslc_generate_code()})}function dslc_template_import(){if(dslcDebug)console.log("dslc_import_template");var e,o;jQuery(".dslca-modal-templates-import .dslca-modal-title").css({opacity:0});jQuery(".dslca-modal-templates-import .dslca-loading").show();jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-import-template",dslc:"active",dslc_template_code:jQuery("#dslca-import-code").val()},function(e){jQuery("#dslc-main",LiveComposer.Builder.PreviewAreaDocument).html(e.output);jQuery(".dslca-modal-templates-import .dslca-loading").hide();jQuery(".dslca-modal-templates-import .dslca-modal-title").css({opacity:1});dslc_hide_modal("",".dslca-modal-templates-import");LiveComposer.Builder.PreviewAreaWindow.dslc_bg_video();dslc_drag_and_drop();dslc_show_publish_button();dslc_generate_code()})}function dslc_template_save(){if(dslcDebug)console.log("dslc_save_template");jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-save-template",dslc:"active",dslc_template_code:jQuery("#dslca-code").val(),dslc_template_title:jQuery("#dslca-save-template-title").val()},function(e){dslc_hide_modal("",".dslca-modal-templates-save")})}function dslc_template_delete(o){if(dslcDebug)console.log("dslc_delete_template");jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-delete-template",dslc:"active",dslc_template_id:o},function(e){jQuery('.dslca-template[data-id="'+o+'"]').fadeOut(200,function(){jQuery(this).remove()})})}function dslc_load_template(e){dslc_template_load(e)}function dslc_import_template(){dslc_template_import()}function dslc_save_template(){dslc_template_save()}function dslc_delete_template(e){dslc_template_delete(e)}jQuery(document).ready(function(o){jQuery(document).on("click",".dslca-template",function(e){e.preventDefault();dslc_template_load(jQuery(this).data("id"))});o(".dslca-template-import-form").submit(function(e){e.preventDefault();dslc_template_import()});o(".dslca-template-save-form").submit(function(e){e.preventDefault();dslc_template_save()});o(document).on("click",".dslca-delete-template-hook",function(e){e.stopPropagation();dslc_template_delete(o(this).data("id"))})});"use strict";window.onerror=function(e,o,s,d){dslca_generate_error_report(e,o,s,d)};jQuery(document).on("click",".dslca-show-js-error-hook",function(e){e.preventDefault();var o=document.getElementById("dslca-js-errors-report");if(!jQuery("body").hasClass("dslca-saving-in-progress")){LiveComposer.Builder.UI.CModalWindow({title:'<a href="https://livecomposerplugin.com/support/" target="_blank"><span class="dslca-icon dslc-icon-comment"></span> Get Support Info</a>',content:'<span class="dslca-error-report">'+o.value+"</span>"})}});jQuery(document).ready(function(e){jQuery("#page-builder-frame")[0].contentWindow.onerror=function(e,o,s,d){dslca_generate_error_report(e,o,s,d)};dslca_update_report_log();jQuery("body").addClass("dslca-enabled dslca-drag-not-in-progress");jQuery(".dslca-invisible-overlay").hide();jQuery(".dslca-section").eq(0).show()});window.previewAreaTinyMCELoaded=function(){var e=this;LiveComposer.Builder.PreviewAreaWindow=this;LiveComposer.Builder.PreviewAreaDocument=jQuery(this.document);jQuery("#wpadminbar",LiveComposer.Builder.PreviewAreaDocument).remove();dslc_fix_contenteditable();var o=LiveComposer.Builder.PreviewAreaDocument.find("#dslc-main").eq(0)[0];new LiveComposer.Builder.Elements.CSectionsContainer(o);jQuery(document).trigger("editorFrameLoaded");dslc_drag_and_drop();dslc_generate_code();dslc_keypress_events();LiveComposer.Builder.UI.initPreviewAreaScroller()};jQuery(document).on("click",".dslca-currently-editing",function(){var e=false,o=false,s;if(jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).length){e=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument);s="#5890e5"}else if(jQuery(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).length){e=jQuery(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument);s="#eabba9"}if(e){o=e.offset().top-100;if(o<0){o=0}var d=[];jQuery("html, body",LiveComposer.Builder.PreviewAreaDocument).animate({scrollTop:o},300,function(){e.removeAttr("style")})}});jQuery(window).keypress(function(e){if((e.metaKey||e.ctrlKey)&&e.keyCode==83){dslc_ajax_save_composer();e.preventDefault();return false}});jQuery(document).on("click",".dslca-hide-composer-hook",function(e){e.preventDefault();dslc_hide_composer()});jQuery(document).on("click",".dslca-show-composer-hook",function(e){e.preventDefault();dslc_show_composer()});jQuery(document).on("click",".dslca-go-to-modules-hook",function(e){e.preventDefault();dslc_show_section(".dslca-modules")});jQuery(document).on("click",".dslca-go-to-section-hook",function(e){e.preventDefault();if(jQuery(this).hasClass("dslca-active")){return}var o=jQuery(this).data("section");dslc_show_section(o);if(jQuery(this).hasClass("dslca-go-to-section-modules")||jQuery(this).hasClass("dslca-go-to-section-templates")){jQuery(this).addClass("dslca-active").siblings(".dslca-go-to-section-hook").removeClass("dslca-active")}});jQuery(document).on("click",".dslca-close-composer-hook",function(e){e.preventDefault();var o=jQuery(this).attr("href");if(!jQuery("body").hasClass("dslca-saving-in-progress")&&jQuery(".dslca-save-composer").is(":visible")){LiveComposer.Builder.UI.CModalWindow({title:DSLCString.str_exit_title,content:DSLCString.str_exit_descr,confirm:function(){window.location=o}})}else{window.location=o}});jQuery(document).on("click",".dslca-submit",function(){jQuery(this).closest("form").submit()});jQuery(document).on("click",".dslca-section-title",function(e){e.stopPropagation();if(jQuery(".dslca-section-title-filter",this).length){dslc_generate_filters();jQuery(".dslca-section-title-filter-options").slideToggle(300)}});jQuery(document).on("click",".dslca-section-title-filter-options a",function(e){e.preventDefault();e.stopPropagation();var o=jQuery(this).data("origin");var s=jQuery(this).closest(".dslca-section");if(s.hasClass("dslca-templates-load")){jQuery(".dslca-section-title-filter-curr",s).text(jQuery(this).text())}else{jQuery(".dslca-section-title-filter-curr",s).text(jQuery(this).text())}jQuery(".dslca-section-scroller-inner").css({left:0});dslc_filter_origin(o,s);jQuery(".dslca-section-title-filter-options").slideToggle(300)});function dslc_hide_composer(){if(dslcDebug)console.log("dslc_hide_composer");jQuery(".dslca-hide-composer-hook").hide();jQuery(".dslca-show-composer-hook").show();jQuery("body").addClass("dslca-composer-hidden");jQuery("body",LiveComposer.Builder.PreviewAreaDocument).addClass("dslca-composer-hidden");jQuery(".dslca-container").css({bottom:jQuery(".dslca-container").outerHeight()*-1});jQuery(".dslca-header").hide()}function dslc_show_composer(){if(dslcDebug)console.log("dslc_show_composer");jQuery(".dslca-show-composer-hook").hide();jQuery(".dslca-hide-composer-hook").show();jQuery("body").removeClass("dslca-composer-hidden");jQuery("body",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-composer-hidden");jQuery(".dslca-container").css({bottom:0});jQuery(".dslca-header").show()}function dslc_show_publish_button(){if(dslcDebug)console.log("dslc_show_publish_button");jQuery(".dslca-save-composer").show().addClass("dslca-init-animation");jQuery(".dslca-save-draft-composer").show().addClass("dslca-init-animation")}function dslc_hide_publish_button(){if(dslcDebug)console.log("dslc_hide_publish_button");jQuery(".dslca-save-composer").hide();jQuery(".dslca-save-draft-composer").hide()}function dslc_show_section(e){if(dslcDebug)console.log("dslc_show_section");var o=jQuery(e).data("title"),s=jQuery(e).data("bg");jQuery(".dslca-container").css({bottom:-500});jQuery(".dslca-section").hide();jQuery(e).show();if(e==".dslca-module-edit"){jQuery(".dslca-currently-editing").show().find("strong").text(jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).attr("title")+" element")}else if(e==".dslca-modules-section-edit"){jQuery(".dslca-currently-editing").show().css("background-color","#e5855f").find("strong").text("Row")}else{jQuery(".dslca-currently-editing").hide().find("strong").text("")}dslc_module_options_tab_filter();jQuery(".dslca-container").css({bottom:0});jQuery(e).find("input.dslca-module-edit-field-colorpicker").each(function(e){jQuery(this).css("background",jQuery(this).val())})}function dslc_generate_filters(){if(dslcDebug)console.log("dslc_generate_filters");var e,o=[],s='<a html="#" data-origin="">Show All</a>',d=jQuery(".dslca-section:visible .dslca-origin");d.each(function(){e=jQuery(this);if(jQuery.inArray(e.data("origin"),o)==-1){o.push(e.data("origin"));s+='<a href="#" data-origin="'+e.data("origin")+'">'+e.data("origin")+"</a>"}});jQuery(".dslca-section:visible .dslca-section-title-filter-options").html(s).css("background",jQuery(".dslca-section:visible").data("bg"))}function dslc_filter_origin(e,o){if(dslcDebug)console.log("dslc_filter_origin");jQuery(".dslca-origin",o).attr("data-display-module","false");jQuery('.dslca-origin[data-origin="'+e+'"]',o).attr("data-display-module","true");if(e==""){jQuery(".dslca-origin",o).attr("data-display-module","true");jQuery(".dslca-origin.dslca-exclude",o).attr("data-display-module","false")}}function dslc_drag_and_drop(){if(dslcDebug)console.log("dslc_drag_and_drop");var e,s,d,l;var o=jQuery(".dslca-modules .dslca-section-scroller-content");if(o.length==0){o=[document.createElement("div")]}var i=Sortable.create(o[0],{sort:false,group:{name:"modules",pull:"clone",put:false},animation:150,handle:".dslca-module",draggable:".dslca-module",chosenClass:"dslca-module-dragging",scroll:true,scrollSensitivity:150,scrollSpeed:15,setData:function(e,o){e.setData(LiveComposer.Utils.msieversion()!==false?"Text":"text/html",o.innerHTML)},onStart:function(e){e.oldIndex;jQuery("body").removeClass("dslca-new-module-drag-not-in-progress").addClass("dslca-new-module-drag-in-progress");jQuery("body",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-new-module-drag-not-in-progress").addClass("dslca-new-module-drag-in-progress");jQuery("#dslc-header").addClass("dslca-header-low-z-index")},onEnd:function(e){e.oldIndex;e.newIndex;var o=e.item;e.preventDefault();if(jQuery(o).closest(".dslca-section-scroller-content").length>0)return false;jQuery(".dslca-options-hovered",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-options-hovered");s=jQuery(o.parentNode);d=o.dataset.id;dslc_generate_code();if(d=="DSLC_M_A"||jQuery("body").hasClass("dslca-module-drop-in-progress")||s.closest("#dslc-header").length||s.closest("#dslc-footer").length){}else{jQuery("body").addClass("dslca-module-drop-in-progress");dslc_module_output_default(d,function(e){l=e.output;var o=LiveComposer.Builder.Helpers.insertModule(l,jQuery(".dslca-module",s));setTimeout(function(){LiveComposer.Builder.PreviewAreaWindow.dslc_masonry();jQuery("body").removeClass("dslca-module-drop-in-progress")},700);jQuery(".dslca-modules-area-manage",s).css({visibility:"visible"});LiveComposer.Builder.PreviewAreaWindow.dslc_carousel();LiveComposer.Builder.PreviewAreaWindow.dslc_tabs();LiveComposer.Builder.PreviewAreaWindow.dslc_init_accordion();dslc_generate_code();dslc_show_publish_button()});jQuery(o).find(".dslca-icon").attr("class","").attr("class","dslca-icon dslc-icon-refresh dslc-icon-spin");jQuery(".dslca-modules-area-manage",s).css({visibility:"hidden"})}LiveComposer.Builder.UI.stopScroller();jQuery("body").removeClass("dslca-new-module-drag-in-progress").addClass("dslca-new-module-drag-not-in-progress");jQuery("body",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-new-module-drag-in-progress").addClass("dslca-new-module-drag-not-in-progress");jQuery("#dslc-header").removeClass("dslca-header-low-z-index")},onAdd:function(e){var o=e.item;e.from},onUpdate:function(e){var o=e.item;dslc_show_publish_button()},onSort:function(e){e.preventDefault()},onRemove:function(e){},onFilter:function(e){var o=e.item},onMove:function(e){e.dragged;e.draggedRect;e.related;e.relatedRect;jQuery(e.to).addClass("dslca-options-hovered")}})}function dslc_option_changed(){dslc_show_publish_button()}function dslc_module_dragdrop_init(){dslc_drag_and_drop()}function dslc_fix_contenteditable(){LiveComposer.Builder.PreviewAreaDocument.on("dragstart",".dslca-module, .dslc-module-front, .dslc-modules-area, .dslc-modules-section",function(e){jQuery("[contenteditable]",LiveComposer.Builder.PreviewAreaDocument).attr("contenteditable",false)});LiveComposer.Builder.PreviewAreaDocument.on("dragend mousedown",".dslca-module, .dslc-module-front, .dslc-modules-area, .dslc-modules-section",function(e){jQuery("[contenteditable]",LiveComposer.Builder.PreviewAreaDocument).attr("contenteditable",true)})}function dslc_toogle_control(e){if(e===undefined)e=false;if(!e)return;var o=jQuery(".dslca-module-edit-option-"+e);var s=o.find(".dslca-module-edit-field");var d=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument);var l=d[0].id;var i="";if("tablet_responsive"===o.data("tab")){i="body.dslc-res-tablet "}else if("phone_responsive"===o.data("tab")){i="body.dslc-res-phone "}var t=s.data("affect-on-change-el");if(t===undefined)return;var a=t.split(",");t="";for(var r=0;r<a.length;r++){if(r>0){t+=", "}t+=i+"#"+l+" "+a[r]}var c=s.data("affect-on-change-rule").replace(/ /g,"");var n=c.split(",");var u;var m=s.data("ext");o.toggleClass("dslca-option-off");if(o.hasClass("dslca-option-off")){u=dslc_get_control_value(e);s.data("val-bckp",u);for(var r=0;r<n.length;r++){jQuery(t,LiveComposer.Builder.PreviewAreaDocument).css(n[r],"");disable_css_rule(t,n[r],l)}s.val("").trigger("change")}else{s.val(s.data("val-bckp")).trigger("change");u=dslc_get_control_value(e);u=dslc_combine_value_and_extension(u,m||"");for(var r=0;r<n.length;r++){var p=t+"{"+n[r]+": "+u+"}";LiveComposer.Builder.Helpers.processInlineStyleTag({context:o,rule:n[r],elems:t.replace(new RegExp("#"+l,"gi"),"").trim(),styleContent:p})}}}jQuery(document).ready(function(d){jQuery(document).on("click",".dslca-module-edit-option .dslc-control-toggle",function(e){e.preventDefault();var o=jQuery(e.target).closest(".dslca-module-edit-option").find(".dslca-module-edit-field").data("id");dslc_toogle_control(o)});jQuery(document).on("mousedown",".dslca-module-edit-option",function(e){var o=d(".dslc-control-toggle");if(!o.is(e.target)&&o.has(e.target).length===0){if(jQuery(e.target).closest(".dslca-module-edit-option").hasClass("dslca-option-off")){var s=d(e.target).closest(".dslca-module-edit-option").find(".dslca-module-edit-field").data("id");dslc_toogle_control(s)}}})});function disable_css_rule(e,o,s){var d;var l="css-for-"+s;var i=document.getElementById("page-builder-frame").contentWindow.document.getElementById(l);e=e.replace(/\s\s+/g," ");if(i){i=i.sheet;if(i["rules"]){d="rules"}else if(i["cssRules"]){d="cssRules"}else{}for(var t=0;t<i[d].length;t++){if(i[d][t].selectorText==e){if(i[d][t].style[o]){i[d][t].style[o]="";break}}}}}function dslc_combine_value_and_extension(e,o){if(""===e||null===e){return e}if(e.indexOf(o)==-1){e=e+o}return e}function dslc_get_control_value(e){var o=jQuery(".dslca-module-edit-option-"+e);var s="text";var d=o.find(".dslca-module-edit-field");var l;l=d.val();return l}function dslc_keypress_events(){jQuery([document,LiveComposer.Builder.PreviewAreaWindow.document]).unbind("keydown").bind("keydown",function(e){dslc_modal_keypress_events(e);dslc_disable_backspace_navigation(e);dslc_notice_on_refresh(e);dslc_save_page(e)})}function dslc_disable_backspace_navigation(e){var o=false;if(e.keyCode===8){var s=e.srcElement||e.target;if(s.tagName.toUpperCase()==="INPUT"&&(s.type.toUpperCase()==="TEXT"||s.type.toUpperCase()==="PASSWORD"||s.type.toUpperCase()==="NUMBER"||s.type.toUpperCase()==="FILE")||s.tagName.toUpperCase()==="TEXTAREA"||jQuery(s).hasClass("dslca-editable-content")||jQuery(s).hasClass("dslc-tabs-nav-hook-title")||jQuery(s).hasClass("dslc-accordion-title")){o=s.readOnly||s.disabled}else{o=true}}if(o){e.preventDefault()}}function dslc_notice_on_refresh(e){if(e.which==116||e.which===82&&e.metaKey){if(jQuery(".dslca-save-composer-hook").offsetParent!==null||jQuery(".dslca-module-edit-save").offsetParent!==null){e.preventDefault();LiveComposer.Builder.UI.CModalWindow({title:DSLCString.str_refresh_title,content:DSLCString.str_refresh_descr,confirm:function(){window.location.reload()}})}}}function dslc_save_page(e){if(e.which==83&&(e.metaKey||e.ctrlKey)){if(jQuery(".dslca-save-composer-hook").css("display")=="block"){dslc_save_composer();e.preventDefault();return false}}}function dslca_generate_error_report(e,o,s,d){var l="JavaScript error detected in a third-party plugin";if(o.match("wp-content/plugins/live-composer-page-builder/js")!=null){l="Live Composer returned JS error"}var i="";i+='<br /><strong style="color:#E55F5F;">'+l+"</strong><br />";i+=e+'<br /> File "'+o+'", line '+s+", char "+d+"<br />";if("undefined"!==typeof Storage){localStorage.setItem("js_errors_report",i)}}function dslca_update_report_log(){var e=document.getElementById("dslca-js-errors-report");var o=localStorage.getItem("js_errors_report");if(null!==o){e.value=o;localStorage.removeItem("js_errors_report");document.querySelector(".dslca-show-js-error-hook").setAttribute("style","visibility:visible")}}jQuery(document).on("editorFrameLoaded",function(){var a=jQuery;var e=a("div[data-hf]",LiveComposer.Builder.PreviewAreaDocument);var r="";e.each(function(e,o){var s=a(o).data("editing-link");var d=a(o).data("editing-type");var l=a(o).data("editing-label");var i=a(o).data("editing-sublabel");r+='<div class="dslc-hf-block-overlay"><a target="_blank" href="'+s+'" class="dslc-hf-block-overlay-button dslca-link">'+l+"</a>";if(i!==undefined){r+=' <span class="dslc-hf-block-overlay-text">'+i+"</span>"}r+="</div>";var t=document.createElement("div");t.innerHTML=r;o.append(t)})});"use strict";LiveComposer.Utils={addslashes:function(e){e=e.replace(/\\/g,"\\\\");e=e.replace(/\'/g,"\\'");e=e.replace(/\"/g,'\\"');e=e.replace(/\0/g,"\\0");return e},basename:function(e){return e.split(/[\\/]/).pop()},msieversion:function(){var e=window.navigator.userAgent;var o=e.indexOf("MSIE ");if(o>0||!!navigator.userAgent.match(/Trident.*rv\:11\./)){return parseInt(e.substring(o+5,e.indexOf(".",o)))}else{return false}},checkParams:function(e){if(!Array.isArray(e)){throw"Param is not array"}var o={integer:function(e){return isNaN(parseInt(e))},float:function(e){return isNaN(parseFloat(e))},string:function(e){return e!=null&&e!=undefined&&typeof e=="string"},array:function(e){return Array.isArray(e)},object:function(e){return typeof e=="object"}};e.map(function(e){if(!o[e[1]](e[0])){throw"Param "+e[0]+" is not "+e[1]}})},utf8_to_b64:function(e){return window.btoa(unescape(encodeURIComponent(e)))},b64_to_utf8:function(e){return decodeURIComponent(escape(window.atob(e)))},get_page_params:function(){return decodeURIComponent(window.location.search.slice(1)).split("&").reduce(function e(o,s){s=s.split("=");o[s[0]]=s[1];return o},{})},get_unique_id:function(){return Math.random().toString(32).slice(2)},update_module_property_raw:function(e,o,s){var d=e.getElementsByClassName("dslca-module-code")[0];var l=e.querySelector('.dslca-module-option-front[data-id="'+o+'"]');var i=d.value;i=JSON.parse(i);i[o]=s;i=JSON.stringify(i);d.value=i;d.innerHTML=i;l.value=s;l.innerHTML=s},update_section_property_raw:function(e,o,s){var d=e.getElementsByClassName("dslca-section-code")[0];var l=e.querySelector('.dslca-modules-section-settings input[data-id="'+o+'"]');var i=d.value;i=JSON.parse(i);i[o]=s;i=JSON.stringify(i);d.value=i;d.innerHTML=i;l.setAttribute("value",s);l.setAttribute("data-def",s)},publish:function(e,o){o=o?o:{};this.checkParams([[e,"string"],[o,"object"]]);jQuery(document).trigger({type:e,message:{details:o}});LiveComposer.Builder.PreviewAreaWindow.dslca_publish_event(e,o)}};"use strict";function dslc_dm_get_defaults(e){if(dslcDebug)console.log("dslc_dm_get_defaults");var o=e.find(".dslca-module-code").val();jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-dm-module-defaults",dslc:"active",dslc_modules_options:o},function(e){jQuery(".dslca-prompt-modal textarea").val(e.output)})}function dslc_editable_content_gen_code(e){if(dslcDebug)console.log("dslc_editable_content_gen_code");if(undefined===e){return false}var o,s,d;o=e.closest(".dslc-module-front");s=e.html().trim().replace(/<textarea/g,"<lctextarea").replace(/<\/textarea/g,"</lctextarea");d=e.data("id");jQuery('.dslca-module-option-front[data-id="'+d+'"]',o).val(s)}function dslc_filter_textarea(e){if(dslcDebug)console.log("dslc_filter_textarea");if(undefined===e){return false}var o;o=e.trim().replace(/<textarea/g,"<lctextarea").replace(/<\/textarea/g,"</lctextarea");return o}window.onbeforeunload=function(){return};jQuery(document).ready(function(g){jQuery(document).on("change",".dslca-modules-section-edit-field",function(){var e,o,s,d,l,i,t,a,r,c,n;e=g(this);o=e.data("id");l=e.val();i=l;t=l+e.data("ext");a=e.data("css-rule");s=g(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument);c=s;r=g('.dslca-modules-section-settings input[data-id="'+o+'"]',s);s.addClass("dslca-modules-section-change-made");if(e.hasClass("dslca-modules-section-edit-field-upload")){if(l&&l.length){l=g('.dslca-modules-section-settings input[data-id="dslca-img-url"]',s).val()}}if(a=="background-image"){l='url("'+l+'")';LiveComposer.Builder.PreviewAreaWindow.dslc_bg_video()}if(o=="bg_image_attachment"){s.removeClass("dslc-init-parallax")}if(o=="border-top"||o=="border-right"||o=="border-bottom"||o=="border-left"){var u=g('.dslca-modules-section-settings input[data-id="border_style"]').val();r=g('.dslca-modules-section-settings input[data-id="border"]',s);i="";var m=e.closest(".dslca-modules-section-edit-option-checkbox-wrapper");m.find(".dslca-modules-section-edit-field-checkbox").each(function(){if(g(this).is(":checked")){if(g(this).data("id")=="border-top"){i+="top "}else if(g(this).data("id")=="border-right"){i+="right "}else if(g(this).data("id")=="border-bottom"){i+="bottom "}else if(g(this).data("id")=="border-left"){i+="left "}}});if(e.is(":checked")){if(e.data("id")=="border-top"){s.css({"border-top-style":u})}else if(e.data("id")=="border-right"){s.css({"border-right-style":u})}else if(e.data("id")=="border-bottom"){s.css({"border-bottom-style":u})}else if(e.data("id")=="border-left"){s.css({"border-left-style":u})}}else{if(e.data("id")=="border-top"){s.css({"border-top-style":"hidden"})}else if(e.data("id")=="border-right"){s.css({"border-right-style":"hidden"})}else if(e.data("id")=="border-bottom"){s.css({"border-bottom-style":"hidden"})}else if(e.data("id")=="border-left"){s.css({"border-left-style":"hidden"})}}}else if(e.hasClass("dslca-modules-section-edit-field-checkbox")){var p=g(this).closest(".dslca-modules-section-edit-option-checkbox-wrapper").find(".dslca-modules-section-edit-field-checkbox");var f="";p.each(function(){if(g(this).prop("checked")){f+=g(this).data("val")+" "}});var i=f;if(e.data("id")=="show_on"){if(f.indexOf("desktop")!==-1){g(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslc-hide-on-desktop")}else{g(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).addClass("dslc-hide-on-desktop")}if(f.indexOf("tablet")!==-1){g(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslc-hide-on-tablet")}else{g(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).addClass("dslc-hide-on-tablet")}if(f.indexOf("phone")!==-1){g(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslc-hide-on-phone")}else{g(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).addClass("dslc-hide-on-phone")}}}else if(o=="bg_image_attachment"&&l=="parallax"||o=="type"){if(o=="bg_image_attachment"){s.addClass("dslc-init-parallax");LiveComposer.Builder.PreviewAreaWindow.dslc_parallax()}else if(o=="type"){if(l=="full"){s.addClass("dslc-full")}else{s.removeClass("dslc-full")}LiveComposer.Builder.PreviewAreaWindow.dslc_masonry()}}else if(o=="columns_spacing"){if(l=="nospacing"){s.addClass("dslc-no-columns-spacing")}else{s.removeClass("dslc-no-columns-spacing")}}else if(o=="custom_class"){}else if(o=="custom_id"){}else if(o=="bg_video"){jQuery(".dslc-bg-video video",s).remove();if(l&&l.length){var v=l;v=v.replace(".webm","");v=v.replace(".mp4","");jQuery(".dslc-bg-video-inner",s).html('<video><source type="video/mp4" src="'+v+'.mp4" /><source type="video/webm" src="'+v+'.webm" /></video>');LiveComposer.Builder.PreviewAreaWindow.dslc_bg_video()}}else if(o=="bg_image_thumb"){if(i=="enabled"){if(jQuery("#dslca-post-data-thumb").length){var h="url('"+jQuery("#dslca-post-data-thumb").val()+"')";c.css(a,h)}}else if(i=="disabled"){c.css(a,"none")}}else{if(e.data("css-element")){c=jQuery(e.data("css-element"),s)}a=a.replace(/ /g,"").split(",");var _;if(null!=e.data("ext")){_=t}else{_=l}for(var y=0;y<a.length;y++){c.css(a[y],_)}}r.val(i);if(!LiveComposer.Builder.Flags.generate_code_after_row_changed)return false});jQuery(document).on("blur",".dslc-editable-area",function(e){var o=g(this).closest(".dslc-module-front");var s=g(this).data("dslc-option-id");var d=g(this).html();jQuery('.dslca-module-options-front textarea[data-id="'+s+'"]',o).val(d);dslc_module_output_altered()});jQuery(document).on("change",".dslca-module-edit-field",function(){if(dslcDebug)console.log("on change event for .dslca-module-edit-field");var e="",o="",l=jQuery(this),s=l.data("id"),d=l.closest(".dslca-module-edit-option"),i=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument),t=i.data("dslc-module-id"),a=jQuery(".dslca-module-options-front textarea",i);i.addClass("dslca-module-change-made");if(d.hasClass("dslca-module-edit-option-select")||d.hasClass("dslca-module-edit-option-checkbox")){dslc_module_options_hideshow_tabs()}if(jQuery(this).closest(".dslca-module-edit-option").data("refresh-on-change")=="active"){if(d.find(".dslca-module-edit-option-checkbox-wrapper").length){var r=jQuery('input[type="checkbox"]',d);r.each(function(){if(g(this).prop("checked")){e=e+jQuery(this).val()+" "}})}else if(l.hasClass("dslca-module-edit-option-radio")){var e=jQuery(".dslca-module-edit-field:checked",l).val()}else{var e=l.val();if(s=="orientation"&&e=="horizontal"){var c=jQuery(".dslca-module-edit-option-thumb_width .dslca-module-edit-field");c.val("40").trigger("change")}else if(s=="orientation"&&e=="vertical"){var c=jQuery(".dslca-module-edit-option-thumb_width .dslca-module-edit-field");c.val("100").trigger("change")}}e=dslc_filter_textarea(e);jQuery('.dslca-module-options-front textarea[data-id="'+s+'"]',i).val(e);jQuery(".dslca-container-loader").show();dslc_module_output_altered(function(){jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).addClass("dslca-module-change-made");if(s=="css_load_preset"&&!jQuery("body").hasClass("dslca-new-preset-added")){dslc_module_options_show(t);jQuery(".dslca-container-loader").hide()}else{jQuery(".dslca-container-loader").hide()}jQuery("body").removeClass("dslca-new-preset-added");LiveComposer.Utils.publish("LC.moduleChange",{moduleId:t,optionID:s,optionVal:l.val()})})}else{if(l.hasClass("dslca-module-edit-field-font")){var n=l.val();n=n+":400,100,200,300,500,600,700,800,900";var u=l.data("affect-on-change-el");var m=l.data("affect-on-change-rule");var p=l.val();var f=p;var v=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument);if(l.val().length&&dslcGoogleFontsArray.indexOf(l.val())!==-1){document.getElementById("page-builder-frame").contentWindow.WebFont.load({google:{families:[n]},active:function(e,o){if(jQuery(".dslca-font-loading").closest(".dslca-module-edit-field-font-next").length){jQuery(".dslca-font-loading").removeClass("dslca-font-loading").find(".dslca-icon").removeClass("dslc-icon-spin").addClass("dslc-icon-chevron-right")}else{jQuery(".dslca-font-loading").removeClass("dslca-font-loading").find(".dslca-icon").removeClass("dslc-icon-spin").addClass("dslc-icon-chevron-left")}var s=u.split(",");var d="#"+v[0].id+" "+s.join(", #"+v[0].id+" ")+" {"+m+": "+p+"}";LiveComposer.Builder.Helpers.processInlineStyleTag({context:l,rule:m,elems:u,styleContent:d})},inactive:function(e,o){if(jQuery(".dslca-font-loading").closest(".dslca-module-edit-field-font-next").length){jQuery(".dslca-font-loading").removeClass("dslca-font-loading").find(".dslca-icon").removeClass("dslc-icon-spin").addClass("dslc-icon-chevron-right")}else{jQuery(".dslca-font-loading").removeClass("dslca-font-loading").find(".dslca-icon").removeClass("dslc-icon-spin").addClass("dslc-icon-chevron-left")}}})}else{setTimeout(function(){if(jQuery(".dslca-font-loading.dslca-module-edit-field-font-next").length){jQuery(".dslca-font-loading").removeClass("dslca-font-loading").find(".dslca-icon").removeClass("dslc-icon-spin").addClass("dslc-icon-chevron-right")}else{jQuery(".dslca-font-loading").removeClass("dslca-font-loading").find(".dslca-icon").removeClass("dslc-icon-spin").addClass("dslc-icon-chevron-left")}var e=u.split(",");var o="#"+v[0].id+" "+e.join(", #"+v[0].id+" ")+" {"+m+": "+p+"}";LiveComposer.Builder.Helpers.processInlineStyleTag({context:l,rule:m,elems:u,styleContent:o})},100)}}else if(l.hasClass("dslca-module-edit-field-checkbox")){var r=jQuery('input[type="checkbox"]',d);r.each(function(){if(jQuery(this).prop("checked")){e=e+"solid ";o=o+g(this).val()+" "}else{e=e+"none "}})}if(!l.hasClass("dslca-module-edit-field-font")&&l.data("affect-on-change-el")!=null&&l.data("affect-on-change-rule")!=null){var h=l.data("ext")||"";var u=l.data("affect-on-change-el");var m=l.data("affect-on-change-rule");var p=l.val();var f=p;if(l.hasClass("dslca-module-edit-field-checkbox")){p=e;f=o}if(l.hasClass("dslca-module-edit-field-image")){p='url("'+p+'")'}if(null!==p&&p.length<1&&(m=="background-color"||m=="background")){p="transparent"}m.split(",").forEach(function(e){e=e.replace(/\s+/g,"");var o=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument);var s=u.split(",");var d="#"+o[0].id+" "+s.join(", #"+o[0].id+" ")+" {"+e+": "+p+h+"}";LiveComposer.Builder.Helpers.processInlineStyleTag({context:l,rule:e,elems:u,styleContent:d})})}var _="";if(s.indexOf("css_")!==-1){_=f}else{_=l.val()}jQuery('.dslca-module-option-front[data-id="'+s+'"]',i).val(_);LiveComposer.Utils.publish("LC.moduleChange",{moduleId:i[0].id,optionID:s,optionVal:f||l.val()})}})});jQuery(document).ready(function(e){var i;jQuery(document).on("click",".dslca-module-edit-field-image-add-hook, .dslca-modules-section-edit-field-image-add-hook",function(){var s=jQuery(this);if(s.hasClass("dslca-module-edit-field-image-add-hook")){var d=s.siblings(".dslca-module-edit-field-image");var l=s.siblings(".dslca-module-edit-field-image-remove-hook")}else{var d=s.siblings(".dslca-modules-section-edit-field-upload");var l=s.siblings(".dslca-modules-section-edit-field-image-remove-hook")}var e=false;i=wp.media.frames.file_frame=wp.media({title:"Choose Image",button:{text:"Confirm"},multiple:e});i.on("select",function(){var e=i.state().get("selection").first().toJSON();d.val(e.id);var o=s.parent().attr("data-id");if(e.alt!=""&&o=="image"){jQuery('.dslca-module-edit-option-image_alt input[data-id="image_alt"]').val(e.alt)}if(e.title!=""&&o=="image"){jQuery('.dslca-module-edit-option-image_title input[data-id="image_title"]').val(e.title)}jQuery(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).find('.dslca-modules-section-settings input[data-id="dslca-img-url"]').val(e.url);d.trigger("change");s.hide();l.show()});i.open()});jQuery(document).on("click",".dslca-module-edit-field-image-remove-hook, .dslca-modules-section-edit-field-image-remove-hook",function(){var e=jQuery(this);if(e.hasClass("dslca-module-edit-field-image-remove-hook")){var o=e.siblings(".dslca-module-edit-field-image");var s=e.siblings(".dslca-module-edit-field-image-add-hook")}else{var o=e.siblings(".dslca-modules-section-edit-field-upload");var s=e.siblings(".dslca-modules-section-edit-field-image-add-hook")}o.val("").trigger("change");var d=e.parent().attr("data-id");if(d=="image"){jQuery(".dslca-module-edit-option-image_alt input").attr("value","").trigger("change");jQuery(".dslca-module-edit-option-image_alt input").attr("data-val-bckp","").trigger("change");jQuery(".dslca-module-edit-option-image_title input").attr("value","").trigger("change");jQuery(".dslca-module-edit-option-image_title input").attr("data-val-bckp","").trigger("change")}e.hide();s.show()});jQuery(document).on("click",".dslca-wp-editor-save-hook",function(){var e=jQuery(".dslca-wysiwyg-active",LiveComposer.Builder.PreviewAreaDocument).closest(".dslc-module-front");if(typeof tinymce!="undefined"){if(jQuery("#wp-dslcawpeditor-wrap").hasClass("tmce-active")){var o=tinymce.get("dslcawpeditor");var s=o.getContent()}else{var s=jQuery("#dslcawpeditor").val()}jQuery(".dslca-wp-editor").hide();jQuery(".dslca-wysiwyg-active",LiveComposer.Builder.PreviewAreaDocument).html(s);if(e.hasClass("dslc-module-handle-like-accordion")){jQuery(".dslca-wysiwyg-active",LiveComposer.Builder.PreviewAreaDocument).siblings(".dslca-accordion-plain-content").val(s);var d=e.find(".dslc-accordion");LiveComposer.Builder.PreviewAreaWindow.dslc_accordion_generate_code(d)}else if(e.hasClass("dslc-module-handle-like-tabs")){jQuery(".dslca-wysiwyg-active",LiveComposer.Builder.PreviewAreaDocument).siblings(".dslca-tab-plain-content").val(s);var l=e.find(".dslc-tabs");LiveComposer.Builder.PreviewAreaWindow.dslc_tabs_generate_code(l)}dslc_editable_content_gen_code(jQuery(".dslca-wysiwyg-active",LiveComposer.Builder.PreviewAreaDocument));jQuery(".dslca-wysiwyg-active",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-wysiwyg-active")}else{console.info("Live Composer: TinyMCE is undefined.")}});jQuery(document).on("click",".dslca-wp-editor-cancel-hook",function(){e(".dslca-wp-editor").hide();e(".dslca-wysiwyg-active",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-wysiwyg-active")})});
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: LiveComposer
|
|
3 |
Tags: page builder, landing page builder, frontend page builder, drag and drop page builder, website builder
|
4 |
Requires at least: 4.7
|
5 |
Tested up to: 5.2
|
6 |
-
Stable tag: 1.4.
|
7 |
License: GPLv3
|
8 |
|
9 |
Page builder for WordPress with drag and drop header/footer editing, responsive settings, and animations. Compatible with Gutenberg block editor.
|
@@ -58,6 +58,9 @@ In most of the cases, this is because the homepage is not a real WordPress page,
|
|
58 |
* 🦊 [Check out our WooCommerce Page Builder Extension](https://livecomposerplugin.com/downloads/woocommerce-page-builder/?utm_source=wp-admin&utm_medium=changelog&utm_campaign=woo-integration)
|
59 |
* 👀 [We keep updating and improving our extensions pack](https://livecomposerplugin.com/downloads/extensions/?utm_source=wp-admin&utm_medium=changelog&utm_campaign=add-ons) ACF + CPT + MegaMenu + 9 more add-ons.
|
60 |
|
|
|
|
|
|
|
61 |
= 1.4.6 - June 18 2019 =
|
62 |
* Fixed broken posts listing on the home page when WP Admin > Settings > Front Page isn't set.
|
63 |
|
3 |
Tags: page builder, landing page builder, frontend page builder, drag and drop page builder, website builder
|
4 |
Requires at least: 4.7
|
5 |
Tested up to: 5.2
|
6 |
+
Stable tag: 1.4.7
|
7 |
License: GPLv3
|
8 |
|
9 |
Page builder for WordPress with drag and drop header/footer editing, responsive settings, and animations. Compatible with Gutenberg block editor.
|
58 |
* 🦊 [Check out our WooCommerce Page Builder Extension](https://livecomposerplugin.com/downloads/woocommerce-page-builder/?utm_source=wp-admin&utm_medium=changelog&utm_campaign=woo-integration)
|
59 |
* 👀 [We keep updating and improving our extensions pack](https://livecomposerplugin.com/downloads/extensions/?utm_source=wp-admin&utm_medium=changelog&utm_campaign=add-ons) ACF + CPT + MegaMenu + 9 more add-ons.
|
60 |
|
61 |
+
= 1.4.7 - June 22 2019 =
|
62 |
+
* Improved compatibility with custom 3-rd party theme shortcodes.
|
63 |
+
|
64 |
= 1.4.6 - June 18 2019 =
|
65 |
* Fixed broken posts listing on the home page when WP Admin > Settings > Front Page isn't set.
|
66 |
|