Version Description
- Aug 05 2022 =
- Removing stylist tab
- Thumbail not showing
- Second time add new row issue (json issue)
- Adding filter for license copy
- Fix error : strftime function deprecated issue
- Fix error : title and show_on key not found issue
Download this release
Release Info
Developer | LiveComposer |
Plugin | Page Builder: Live Composer – drag and drop website builder (visual front end site editor) |
Version | 1.5.21 |
Comparing to | |
See all releases |
Code changes from version 1.5.20 to 1.5.21
- ds-live-composer.php +2 -2
- js/dist/editor_backend.min.js +1 -1
- readme.txt +3 -3
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.5.
|
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.5.
|
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.5.21
|
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.5.21' );
|
45 |
|
46 |
define( 'DS_LIVE_COMPOSER_SHORTNAME', __( 'Live Composer', 'live-composer-page-builder' ) );
|
47 |
define( 'DS_LIVE_COMPOSER_BASENAME', plugin_basename( __FILE__ ) );
|
js/dist/editor_backend.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(b){var c={};function a(d){if(c[d])return c[d].exports;var e=c[d]={i:d,l:!1,exports:{}};return b[d].call(e.exports,e,e.exports,a),e.l=!0,e.exports}a.m=b,a.c=c,a.d=function(b,c,d){a.o(b,c)||Object.defineProperty(b,c,{enumerable:!0,get:d})},a.r=function(a){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},a.t=function(b,c){if(1&c&&(b=a(b)),8&c||4&c&&"object"==typeof b&&b&&b.__esModule)return b;var d=Object.create(null);if(a.r(d),Object.defineProperty(d,"default",{enumerable:!0,value:b}),2&c&&"string"!=typeof b)for(var e in b)a.d(d,e,(function(a){return b[a]}).bind(null,e));return d},a.n=function(c){var b=c&&c.__esModule?function(){return c.default}:function(){return c};return a.d(b,"a",b),b},a.o=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)},a.p="",a(a.s=3)}({3:function(K,n,o){"use strict";o.r(n);let L=function(a){if("object"!=typeof a|| !0===LiveComposer.Builder.Flags.modalOpen)return!1;var b='<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">'+a.title+'</span><span class="dslca-prompt-modal-descr">'+a.content+"</span></div>";b+=(a.confirm||a.cancel?'<div class="dslca-prompt-modal-actions"><a href="#" class="dslca-prompt-modal-confirm-hook"><span class="dslc-icon dslc-icon-ok"></span>'+(a.confirm_title?a.confirm_title:"Confirm")+'</a><span class="dslca-prompt-modal-cancel-hook"><span class="dslc-icon dslc-icon-remove"></span>'+(a.cancel_title?a.cancel_title:"Cancel")+"</span></div>":'<div class="dslca-prompt-modal-actions"><a href="#" class="dslca-prompt-modal-confirm-hook"><span class="dslc-icon dslc-icon-ok"></span>'+(a.ok_title?a.ok_title:"OK")+"</a></div>")+"</div>",b=jQuery(b),"function"!=typeof a.confirm&&(a.confirm=function(){}),"function"!=typeof a.cancel&&(a.cancel=function(){}),b.find(".dslca-prompt-modal-confirm-hook").click(function(c){return c.stopPropagation(),b.find(".dslca-prompt-modal-content").animate({top:"55%"},400),b.animate({opacity:0},400,function(){a.confirm(),LiveComposer.Builder.Flags.modalOpen=!1,jQuery(this).remove()}),!1}),b.find(".dslca-prompt-modal-cancel-hook").click(function(c){return c.stopPropagation(),b.find(".dslca-prompt-modal-content").animate({top:"55%"},400),b.animate({opacity:0},400,function(){jQuery(this).remove(),LiveComposer.Builder.Flags.modalOpen=!1,a.cancel()}),!1}),b.hide(),jQuery("body").append(b),b.css({opacity:0}).show().animate({opacity:1},400),b.find(".dslca-prompt-modal-content").css({top:"55%"}).animate({top:"50%"},400),LiveComposer.Builder.Flags.modalOpen=!0},M=()=>{window.dslcDebug&&console.log("updatePreset");var a=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument),b=a.find('.dslca-module-option-front[data-id="css_load_preset"]').val(),c=a.find(".dslca-module-code").innerText,d=a.data("module");"none"!==b&&""!==b&&jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-save-preset",dslc_preset_name:b,dslc_preset_code:c,dslc_module_id:d},function(b){"enabled"==b.preset_setting&&jQuery(".dslc-module-front:not(#"+a.attr("id")+')[data-module="'+a.data("module")+'"][data-dslc-preset="'+a.data("dslc-preset")+'"]',LiveComposer.Builder.PreviewAreaDocument).each(function(){window.dslc_module_output_reload(jQuery(this))})})};jQuery(document).ready(function(a){jQuery(document).on("keypress",'.dslca-module-edit-field[name="css_save_preset"]',function(b){if(13==b.which){var a=jQuery(this).val().toLowerCase().replace(/\s/g,"-");jQuery("body").addClass("dslca-new-preset-added"),jQuery('.dslca-module-edit-field[name="css_load_preset"]').append('<option value="'+a+'">'+a+"</option>").val(a).trigger("change"),jQuery(this).val(""),jQuery(".dslc-delete-preset").removeClass("dslc-delete-preset-hide")}}),jQuery(document).on("change",'.dslca-module-edit-field[name="css_load_preset"]',function(a){jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).addClass("dslca-preload-preset")}),jQuery(document).on("click",".dslc-delete-preset",function(d){var b=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument),a=b.find('.dslca-module-option-front[data-id="css_load_preset"]').val(),c=b.data("module");"none"!==a&&""!==a&&jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-delete-preset",dslc_preset_name:a,dslc_module_id:c},function(a){window.dslc_module_options_show(c)})})}),window.dslc_generate_code=function(){window.dslcDebug&&console.log("dslc_generate_code");var c,d,a="";jQuery("#dslc-main .dslc-modules-area",LiveComposer.Builder.PreviewAreaDocument).each(function(){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()):(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(){c=jQuery(this),d=N(c),c.find(".dslca-section-code").val(d),a=a+d+","}),a="["+(a=a.slice(0,-1))+"]",jQuery("#dslca-code").val(a),jQuery("#dslca-export-code").val(a);let b=new CustomEvent("pageCodeUpdated");document.dispatchEvent(b)};let N=d=>{window.dslcDebug&&console.log("generateSectionCode");var g,a,c,b,h="",e=0,f="";return jQuery(".dslc-modules-area",a=d).length?a.removeClass("dslc-modules-section-empty").addClass("dslc-modules-section-not-empty"):a.removeClass("dslc-modules-section-not-empty").addClass("dslc-modules-section-empty"),jQuery(".dslc-modules-area.dslc-last-col, .dslc-modules-area.dslc-first-col",void 0).removeClass("dslc-last-col dslc-first-col"),jQuery(".dslc-module-front.dslc-last-col, .dslc-module-front.dslc-first-col",void 0).removeClass("dslc-last-col dslc-first-col"),e=0,c=a.find(".dslca-section-code").val(),b=JSON.parse(c.replace(/“/g,'"').replace(/”/g,'"').replace(/″/g,'"')),f="",jQuery(".dslca-modules-section-settings input",a).each(function(){var a=jQuery(this),c=a.data("id"),d=a.val();f=f+c+'="'+d+'" ',b[c]=d}),void 0!==b.give_new_id&&delete b.give_new_id,b.content=[],jQuery(".dslc-modules-area",a).each(function(){var k=0,d=jQuery(this),c=parseInt(d.data("size")),j=d.data("valign"),i="no",f="no";e+=c,jQuery(this).removeClass("dslc-first-col"),jQuery(this).removeClass("dslc-last-col"),12==e?(jQuery(this).addClass("dslc-last-col").next(".dslc-modules-area").addClass("dslc-first-col"),e=0,i="yes"):e>12&&(jQuery(this).removeClass("dslc-last-col").addClass("dslc-first-col"),e=c,f="yes"),e==c&&(f="yes",jQuery(this).removeClass("dslc-last-col").addClass("dslc-first-col"));var a='{"element_type":"module_area","last":"'+i+'","first":"'+f+'","size":"'+c+'","valign":"'+j+'"}';void 0!==(a=JSON.parse(a)).give_new_id&&delete a.give_new_id,a.content=[],jQuery(".dslc-module-front",d).each(function(){var b=jQuery(this);g=parseInt(b[0].getAttribute("data-dslc-module-size"));var d="no";jQuery(this).removeClass("dslc-first-col"),jQuery(this).removeClass("dslc-last-col"),12==(k+=g)?(jQuery(this).addClass("dslc-last-col"),jQuery(this).next(".dslc-module-front").addClass("dslc-first-col"),k=0,d="yes"):k>12&&(jQuery(this).removeClass("dslc-last-col").addClass("dslc-first-col"),k=g),k==g&&jQuery(this).removeClass("dslc-last-col").addClass("dslc-first-col");try{h=b[0].querySelector(".dslca-module-code").innerText}catch(e){console.info("No DSLC code found in module: "+b[0].getAttribute("id"))}if(""!==h){var c=JSON.parse(h.replace(/“/g,'"').replace(/”/g,'"').replace(/″/g,'"'));c.last=d,jQuery.each(c,function(a,b){!1!==b&&""!==b||delete c[a],"content"===a&&(c[a]=b.replace(/\\'/g,"'")),"give_new_id"===a&&delete c[a]}),b[0].querySelector(".dslca-module-code").innerText=JSON.stringify(c),a.content.push(c)}h=""}),b.content.push(a)}),JSON.stringify(b)},O=()=>{jQuery(document).on("click",".dslca-save-composer-hook",function(d){var a,b,c;d.preventDefault(),jQuery("body").hasClass("dslca-module-saving-in-progress")||jQuery("body").hasClass("dslca-saving-in-progress")||(window.dslcDebug&&console.log("dslc_save_composer"),window.dslc_generate_code(),function(){window.dslcDebug&&console.log("dslca_gen_content_for_search");var a=document.getElementById("dslca-content-for-search");if(null!==a){var d=a.value,b="",c=LiveComposer.Builder.PreviewAreaWindow.document.querySelectorAll("#dslc-main .dslc-module-front [data-exportable-content]");void 0!==c&&Array.prototype.forEach.call(c,function(a,e){var c;if(""!==a.getAttribute("data-exportable-content")){var d=a.getAttribute("data-exportable-content");c="<"+d+">"+a.innerHTML+"</"+d+">"}else c=a.innerHTML;null!==c&&(b+=c.replace(/\s+/g," ").trim()+"\n")}),a.value=b,d!==b&&window.dslc_show_publish_button()}}(),a=jQuery("#dslca-code").val(),b=jQuery("#dslca-content-for-search").val(),c=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:c,dslc_code:a,dslc_content_for_search:b},timeout:3e4}).done(function(a){"success"==a.status?(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-'+c+'" src="'+DSLCSiteData.siteurl+"/?p="+c+'" ></iframe>'),jQuery(".lbmn-cache-iframe").each(function(b,a){jQuery(a).load(function(){jQuery(a).remove()})})):alert("Something went wrong, please try to save again. Are you sure to make any changes? Error Code: "+a.status)}).fail(function(a){"timeout"==a.statusText?alert("The request timed out after 30 seconds. Server do not respond in time. Please try again."):alert("Something went wrong. Please try again. Error Code: "+a.statusText)}).always(function(a){jQuery(".dslca-save-composer .dslca-icon").removeClass("dslc-icon-spin dslc-icon-spinner").addClass("dslc-icon-ok"),jQuery("body").removeClass("dslca-saving-in-progress")}))}),jQuery(document).on("click",".dslca-save-draft-composer-hook",function(c){var a,b;c.preventDefault(),jQuery("body").hasClass("dslca-module-saving-in-progress")||jQuery("body").hasClass("dslca-saving-in-progress")||(window.dslcDebug&&console.log("dslc_save_draft_composer"),a=jQuery("#dslca-code").val(),b=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:b,dslc_code:a},function(a){jQuery(".dslca-save-draft-composer .dslca-icon").removeClass("dslc-icon-spin dslc-icon-spinner").addClass("dslc-icon-save"),"success"==a.status?jQuery(".dslca-save-draft-composer").fadeOut(250):alert("Something went wrong, please try to save again."),jQuery("body").removeClass("dslca-saving-in-progress")}))})},P=a=>{if(window.dslcDebug&&console.log("editableContentCodeGeneration"),void 0===a)return!1;let b=a.closest(".dslc-module-front")[0],c=a.html().trim().replace(/<textarea/g,"<lctextarea").replace(/<\/textarea/g,"</lctextarea"),d=a.data("id");LiveComposer.Utils.update_module_property_raw(b,d,c)},Q=(b,a)=>{"undefined"!=typeof dslcDebug&&dslcDebug&&console.log("hideModal"),(a=jQuery(a)).outerHide("destroy"),a.hide(),jQuery(".dslca-prompt-modal-custom").length>0&&jQuery(".dslca-prompt-modal-custom").fadeOut(),a.removeClass("dslca-modal-open")};jQuery(document).ready(function(a){jQuery(document).on("click",".dslca-open-modal-hook",function(f){f.preventDefault();var b,a,c,d,e,g=jQuery(this).data("modal");b=jQuery(this),a=g,"undefined"!=typeof dslcDebug&&dslcDebug&&console.log("dslc_show_modal"),jQuery(".dslca-modal:visible").length&&Q("",jQuery(".dslca-modal:visible")),a=jQuery(a),jQuery(".dslca-container").height(),a.outerHide({clbk:function(){Q("",jQuery(".dslca-modal:visible"))}}),c=jQuery(b).position(),d=a.outerWidth()/2-b.outerWidth()/2,e=c.left-d,a.css({left:e}),jQuery(".dslca-prompt-modal-custom").insertAfter(a),jQuery(".dslca-prompt-modal-custom").length>0&&jQuery(".dslca-prompt-modal-custom").fadeIn(),a.addClass("dslca-modal-open").show()}),jQuery(document).on("click",".dslca-close-modal-hook",function(a){if(a.preventDefault(),!jQuery(this).hasClass("dslca-action-disabled")){var b=jQuery(this).data("modal");Q(jQuery(this),b)}})});let R=()=>{"undefined"!=typeof dslcDebug&&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)};window.dslc_modal_keypress_events=function(a){13==a.which?jQuery(".dslca-prompt-modal-active").length&&jQuery(".dslca-prompt-modal-confirm-hook").trigger("click"):27==a.which&&jQuery(".dslca-prompt-modal-active").length&&jQuery(".dslca-prompt-modal-cancel-hook").trigger("click")},jQuery(document).ready(function(a){jQuery(document).on("click",".dslca-prompt-modal-cancel-hook",function(a){a.preventDefault();var b=jQuery(".dslca-prompt-modal").data("id"),c=jQuery(".dslca-prompt-modal").data("target");"edit_in_progress"==b&&dslc_module_options_cancel_changes(function(){c.trigger("click")}),R(),jQuery(".dslca-prompt-modal").data("id","")}),jQuery(document).on("click",".dslca-prompt-modal-confirm-hook",function(e){e.preventDefault();var a=jQuery(".dslca-prompt-modal").data("id"),b=jQuery(".dslca-prompt-modal").data("target"),c=!0;if("edit_in_progress"==a)dslc_module_options_confirm_changes(function(){b.trigger("click")});else if("disable_lc"==a)window.location=b;else if("delete_module"===a)dslc_module_delete(b.closest(".dslc-module-front"));else if("delete_modules_area"===a){var d=b.closest(".dslc-modules-area");d.closest(".dslc-modules-section-inner"),dslc_modules_area_delete(d)}else"delete_modules_section"==a?dslc_row_delete(b.closest(".dslc-modules-section")):"export_modules_section"==a||"import_modules_section"==a&&(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(),c=!1);c&&R(),jQuery(".dslca-prompt-modal").data("id","")})}),jQuery.fn.outerHide=function(a){var b=jQuery,c=this;if("destroy"==(a=a||{}))return jQuery(document).unbind("click.outer_hide"),!1;jQuery(document).bind("click.outer_hide",function(d){0==jQuery(d.target).closest(c).length&&d.target!=c&& -1==b.inArray(jQuery(d.target)[0],jQuery(a.clickObj))&&"none"!=jQuery(c).css("display")&&(a.clbk?a.clbk():jQuery(c).hide())})},document.addEventListener("modalWysiwygCancel",function(a){jQuery(".dslca-wp-editor").hide(),jQuery(".dslca-wysiwyg-active",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-wysiwyg-active")}),document.addEventListener("modalWysiwygConfirm",function(e){var b=jQuery(".dslca-wysiwyg-active",LiveComposer.Builder.PreviewAreaDocument).closest(".dslc-module-front");if("undefined"!=typeof tinymce){if(jQuery("#wp-dslcawpeditor-wrap").hasClass("tmce-active"))var a=tinymce.get("dslcawpeditor").getContent();else a=jQuery("#dslcawpeditor").val();if(a=a.trim(),jQuery(".dslca-wp-editor").hide(),jQuery(".dslca-wysiwyg-active",LiveComposer.Builder.PreviewAreaDocument).html(a),b.hasClass("dslc-module-handle-like-accordion")){jQuery(".dslca-wysiwyg-active",LiveComposer.Builder.PreviewAreaDocument).siblings(".dslca-editable-content").html(a),jQuery(".dslca-wysiwyg-active",LiveComposer.Builder.PreviewAreaDocument).siblings(".dslca-accordion-plain-content").val(a);var c=b.find(".dslc-accordion");LiveComposer.Builder.PreviewAreaWindow.dslc_accordion_generate_code(c)}else if(b.hasClass("dslc-module-handle-like-tabs")){jQuery(".dslca-wysiwyg-active",LiveComposer.Builder.PreviewAreaDocument).siblings(".dslca-editable-content").html(a),jQuery(".dslca-wysiwyg-active",LiveComposer.Builder.PreviewAreaDocument).siblings(".dslca-tab-plain-content").val(a);var d=b.find(".dslc-tabs");LiveComposer.Builder.PreviewAreaWindow.dslc_tabs_generate_code(d)}else P(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.")});var p=window.DSLCFonts.regular,q=window.DSLCFonts.google,S=p.concat(q),T=window.DSLCIcons.fontawesome;jQuery(document).ready(function(a){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 d,a=jQuery(".dslca-module-edit-field-ttip"),h=a.find(".dslca-module-edit-field-ttip-inner"),b=jQuery(this);if(d=b.parent().parent().hasClass("dslca-modules-section-edit-option")?b.closest(".dslca-modules-section-edit-option").find(".dslca-module-edit-field-ttip-content").html():b.closest(".dslca-module-edit-option").find(".dslca-module-edit-field-ttip-content").html(),a.is(":visible"))jQuery(".dslca-module-edit-field-ttip").hide();else{h.html(d);var e=b.offset(),i=a.outerHeight(),f=a.outerWidth(),c=e.left-f/2+6,g="50%";c<0&&(g=f/2+c+"px",c=0),jQuery(".dslca-module-edit-field-ttip").show().css({top:e.top-i-20,left:c}),jQuery("head").append(jQuery("<style>.dslca-module-edit-field-ttip:after, .dslca-module-edit-field-ttip:before { left: "+g+" }</style>"))}}),jQuery(document).on("click",".dslca-module-edit-field-icon-ttip-hook",function(){var b=jQuery(".dslca-module-edit-field-icon-ttip"),f=jQuery(this);if(b.is(":visible"))jQuery(".dslca-module-edit-field-icon-ttip").hide();else{var c=f.offset(),g=b.outerHeight(),d=b.outerWidth(),a=c.left-d/2+6,e="50%";a<0&&(e=d/2+a+"px",a=0),jQuery(".dslca-module-edit-field-icon-ttip").show().css({top:c.top-g-20,left:a}),jQuery("head").append(jQuery("<style>.dslca-module-edit-field-icon-ttip:after, .dslca-module-edit-field-icon-ttip:before { left: "+e+" }</style>"))}}),window.dslc_module_options_font(),jQuery(document).on("keyup",".dslca-module-edit-field-icon",function(a){var b,c,d,e;c=(b=jQuery(this)).closest(".dslca-module-edit-option"),38==a.which&&ad(b,"previous"),40==a.which&&ad(b,"next"),13!=a.which&&38!=a.which&&40!=a.which&&(d=b.val().toLowerCase(),b.val(d),e=jQuery.grep(T,function(a,b){return 0==a.indexOf(d)})[0],jQuery(".dslca-module-edit-field-icon-suggest",c).text(e))}),jQuery(document).on("keypress",".dslca-module-edit-field-icon",function(b){var a;13==b.which&&(b.preventDefault(),a=jQuery(this).closest(".dslca-module-edit-option"),jQuery(this).val(jQuery(".dslca-module-edit-field-icon-suggest",a).text()).trigger("change"),jQuery(".dslca-module-edit-field-icon-suggest",a).text(""))}),jQuery(document).on("click",'.dslca-open-modal-hook[data-modal^=".dslc-list-icons"]',function(a){jQuery(this).closest(".dslca-module-edit-option-icon").find("input").addClass("icon-modal-active")}),jQuery(document).on("click",".dslca-modal-icons .icon-item",function(b){var a=jQuery(this).find(".icon-item_name").text();jQuery("input.icon-modal-active").val(a).change(),Q("",jQuery(".dslca-modal:visible")),jQuery("input.icon-modal-active").removeClass("icon-modal-active")}),jQuery(document).on("click",".dslca-module-edit-option-text-align-hook",function(){var a=jQuery(this),b=jQuery(this).closest(".dslca-module-edit-option-text-align-wrapper").find(".dslca-module-edit-option-text-align-hook"),c=a.data("val"),d=jQuery(this).closest(".dslca-module-edit-option-text-align-wrapper").siblings("input.dslca-module-edit-field");b.removeClass("dslca-active"),a.addClass("dslca-active"),d.val(c).trigger("change")}),jQuery(document).on("click",".dslca-module-edit-option-checkbox-hook, .dslca-modules-section-edit-option-checkbox-hook",function(){var b=jQuery(this),a=b.siblings('input[type="checkbox"]');a.prop("checked")?(a.prop("checked",!1),b.find(".dslca-icon").removeClass("dslc-icon-check").addClass("dslc-icon-check-empty")):(a.prop("checked",!0),b.find(".dslca-icon").removeClass("dslc-icon-check-empty").addClass("dslc-icon-check")),a.change()}),window.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 a=jQuery(this).closest(".dslca-module-edit-option"),c=a.find(".dslca-module-edit-field"),d=a.find(".dslca-module-edit-option-box-shadow-hor").val(),e=a.find(".dslca-module-edit-option-box-shadow-ver").val(),f=a.find(".dslca-module-edit-option-box-shadow-blur").val(),g=a.find(".dslca-module-edit-option-box-shadow-spread").val(),h=a.find(".dslca-module-edit-option-box-shadow-color").val(),b=a.find(".dslca-module-edit-option-box-shadow-inset").is(":checked"),i=d+"px "+e+"px "+f+"px "+g+"px "+h+(b=b?" inset":"");c.val(i).trigger("change")}),window.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 a=jQuery(this).closest(".dslca-module-edit-option"),b=a.find(".dslca-module-edit-field"),c=a.find(".dslca-module-edit-option-text-shadow-hor").val()+"px "+a.find(".dslca-module-edit-option-text-shadow-ver").val()+"px "+a.find(".dslca-module-edit-option-text-shadow-blur").val()+"px "+a.find(".dslca-module-edit-option-text-shadow-color").val();b.val(c).trigger("change")}),jQuery(document).on("click",".dslca-module-edit-field-colorpicker, .dslca-modules-section-edit-field-colorpicker, .dslca-module-edit-option-box-shadow-color, .dslca-module-edit-option-text-shadow-color",function(){ae(this);var b=jQuery(this).closest(".dslca-color-option"),d=jQuery(".dslca-module-edit-options-inner"),e=b.find(".wp-picker-holder"),f=b.offset(),a=f.left+15,c=window.innerWidth;c<a+260&&(a=c-260),e.css("left",a+"px"),jQuery(d).on("scroll",function(d){var a=(f=b.offset()).left+15,c=window.innerWidth;c<a+260&&(a=c-260),e.css("left",a+"px")})}),jQuery(".dslca-container").on("mouseenter",".dslca-module-edit-option-slider",function(){jQuery(this).hasClass("dslca-module-edit-option-select")||af(this)}),jQuery(".dslca-container").on("mouseenter",".dslca-modules-section-edit-option-slider",function(){af(this)}),jQuery(".dslca-module-edit-form").submit(function(a){a.preventDefault(),ct()}),jQuery(document).on("click",".dslca-module-edit-options-tab-hook",function(a){a.preventDefault(),aa(jQuery(this))}),jQuery(document).on("click",".dslca-clear-responsive-options",function(a){a.preventDefault(),Z()}),jQuery(document).on("click",".dslca-options-filter-hook",function(b){b.preventDefault();var c=jQuery(".dslca-options-filter-hook.dslca-active").data("section"),a=jQuery(this).data("section");jQuery(".dslca-options-filter-hook.dslca-active").removeClass("dslca-active"),jQuery(this).addClass("dslca-active"),jQuery(".dslca-container-loader"),document.querySelector(".dslca-container").dataset.currentSection=a,Y(a),"responsive"==c&&(jQuery(".dslca-container-loader").show(),window.LiveComposer.Builder.PreviewAreaWindow.dslc_responsive_classes(),ct(function(){jQuery(".dslca-container-loader").hide()}),jQuery("#page-builder-preview-area").resizable("destroy").attr("style","")),"responsive"==a&&jQuery("#page-builder-preview-area").resizable()}),jQuery(document).on("click",".dslca-module-edit-save",function(a){a.preventDefault(),_(function(){window.LiveComposer.Builder.UI.unloadOptionsDeps(),window.LiveComposer.Builder.Flags.panelOpened=!1,jQuery("body",window.LiveComposer.Builder.PreviewAreaDocument).removeClass("module-editing-in-progress")}),jQuery(".dslca-options-filter-hook.dslca-active").removeClass("dslca-active"),ag()}),jQuery(document).on("click",".dslca-module-edit-cancel",function(a){a.preventDefault(),ac(function(){window.LiveComposer.Builder.UI.unloadOptionsDeps(),window.LiveComposer.Builder.Flags.panelOpened=!1,jQuery("body",window.LiveComposer.Builder.PreviewAreaDocument).removeClass("module-editing-in-progress")}),jQuery(".dslca-options-filter-hook.dslca-active").removeClass("dslca-active"),ag()})});let U=()=>{var a=window.LiveComposer.Builder;window.LiveComposer.Builder.Helpers.colorpickers=[],window.LiveComposer.Builder.UI.clearUtils=function(){window.dslcDebug&&console.log("window.LiveComposer.Builder.UI.clearUtils"),window.LiveComposer.Builder.UI.clearColorPickers(),void 0!==window.LiveComposer.Builder.moduleBackup&&window.LiveComposer.Builder.moduleBackup.remove(),jQuery(".temp-styles-for-module",window.LiveComposer.Builder.PreviewAreaDocument).remove(),jQuery(".mce-tinymce",window.LiveComposer.Builder.PreviewAreaDocument).hide()},window.LiveComposer.Builder.UI.clearColorPickers=function(){Array.isArray(a.Helpers.colorpickers)&&(a.Helpers.colorpickers.forEach(function(a){jQuery(a).hasClass("dslca-modules-section-edit-field")||jQuery(a).remove()}),a.Helpers.colorpickers=[]),jQuery("body").off("click.wpcolorpicker")},window.LiveComposer.Builder.Helpers.depsHandlers=[],window.LiveComposer.Builder.UI.loadOptionsDeps=function(){jQuery(".dslca-module-edit-option").each(function(){var a=!0;try{var c=JSON.parse(LiveComposer.Utils.b64_to_utf8(jQuery(this).data("dep")))}catch(d){a=!1}if(a){var b=function(){var a=this,b={};if(("radio"==a.type||"checkbox"==a.type)&&null==c[a.value])return!1;"checkbox"==a.type&&null!=c[a.value]?b[a.value]=c[a.value]:b=c,Object.keys(b).forEach(function(c){b[c].split(",").forEach(function(e){var b=jQuery(".dslca-module-edit-option-"+e.trim()).closest(".dslca-module-edit-option"),d=!0;"radio"!=a.type&&"checkbox"!=a.type||(d=jQuery(a).is(":checked"));var f=jQuery(".dslca-module-edit-options-tab-hook.dslca-active").data("id");a.value==c&&d?(b.not(".dependent")&&b.addClass("dependent"),b.hasClass("dep-hide")&&b.removeClass("dep-hide"),b.addClass("dep-show"),f==b.data("tab")&&b.show()):(b.not(".dependent")&&b.addClass("dependent"),b.hasClass("dep-show")&&b.removeClass("dep-show"),b.addClass("dep-hide"),b.hide())})})};jQuery(document).on("change dslc-init-deps",'.dslca-module-edit-option > *[data-id="'+jQuery(this).data("id")+'"]',b),window.LiveComposer.Builder.Helpers.depsHandlers.push(b)}}),jQuery(".dslca-module-edit-option input, .dslca-module-edit-option select").trigger("dslc-init-deps")},window.LiveComposer.Builder.UI.unloadOptionsDeps=function(){window.LiveComposer.Builder.Helpers.depsHandlers.forEach(function(a){jQuery(document).unbind("change",a),jQuery(document).unbind("dslc-init-deps",a)}),window.LiveComposer.Builder.Helpers.depsHandlers=[]},window.LiveComposer.Builder.Helpers.processInlineStyleTag=function(a){if("object"!=typeof a)return!1;var c="",e="";"tablet_responsive"==a.context.closest(".dslca-module-edit-option").data("tab")?(c="@media only screen and (max-width: 1024px) and (min-width: 768px) {",e="}"):"phone_responsive"==a.context.closest(".dslca-module-edit-option").data("tab")&&(c="@media only screen and (max-width: 767px) {",e="}"),a.styleContent=c+a.styleContent+e;var b=c+a.rule+a.elems;if(b=b.replace(/ /gi,""),null==window.LiveComposer.Builder.PreviewAreaDocument[0].getElementById(b)){var d=document.createElement("style");d.innerHTML=a.styleContent,d.id=b,d.className="temp-styles-for-module",window.LiveComposer.Builder.PreviewAreaDocument[0].body.appendChild(d)}else window.LiveComposer.Builder.PreviewAreaDocument[0].getElementById(b).innerHTML=a.styleContent},window.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)},V(),W(),X()},V=()=>{jQuery(document).on("change",".dslca-module-edit-field",function(){window.dslcDebug&&console.log("on change event for .dslca-module-edit-field");var b="",k="",a=jQuery(this),d=a.data("id"),f=a.closest(".dslca-module-edit-option"),e=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument),m=e.data("module");if(jQuery(".dslca-module-options-front textarea",e),e.addClass("dslca-module-change-made"),(f.hasClass("dslca-module-edit-option-select")||f.hasClass("dslca-module-edit-option-checkbox"))&&ab(),"active"==jQuery(this).closest(".dslca-module-edit-option").data("refresh-on-change"))f.find(".dslca-module-edit-option-checkbox-wrapper").length?jQuery('input[type="checkbox"]',f).each(function(){jQuery(this).prop("checked")&&(b=b+jQuery(this).val()+" ")}):a.hasClass("dslca-module-edit-option-radio")?b=jQuery(".dslca-module-edit-field:checked",a).val():(b=a.val(),"orientation"==d&&"horizontal"==b?jQuery(".dslca-module-edit-option-thumb_width .dslca-module-edit-field").val("40").trigger("change"):"orientation"==d&&"vertical"==b&&jQuery(".dslca-module-edit-option-thumb_width .dslca-module-edit-field").val("100").trigger("change")),null!=b&&(b=b.trim().replace(/<textarea/g,"<lctextarea").replace(/<\/textarea/g,"</lctextarea")),null===b&&(b=""),jQuery('.dslca-module-options-front textarea[data-id="'+d+'"]',e).val(b),jQuery(".dslca-container-loader").show(),ct(function(){jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).addClass("dslca-module-change-made"),"css_load_preset"!=d||jQuery("body").hasClass("dslca-new-preset-added")||window.dslc_module_options_show(m),jQuery(".dslca-container-loader").hide(),jQuery("body").removeClass("dslca-new-preset-added"),LiveComposer.Utils.publish("LC.moduleChange",{moduleId:m,optionID:d,optionVal:a.val()})});else{if(a.hasClass("dslca-module-edit-field-font")){var i=a.val();i+=":400,100,200,300,500,600,700,800,900";var l=a.data("affect-on-change-el"),g=a.data("affect-on-change-rule"),h=c=a.val(),n=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument);a.val().length&& -1!==q.indexOf(a.val())?document.getElementById("page-builder-frame").contentWindow.WebFont.load({google:{families:[i]},active:function(e,f){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"):jQuery(".dslca-font-loading").removeClass("dslca-font-loading").find(".dslca-icon").removeClass("dslc-icon-spin").addClass("dslc-icon-chevron-left");var b=l.split(","),d="#"+n[0].id+" "+b.join(", #"+n[0].id+" ")+" {"+g+": "+c+"}";LiveComposer.Builder.Helpers.processInlineStyleTag({context:a,rule:g,elems:l,styleContent:d})},inactive:function(a,b){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"):jQuery(".dslca-font-loading").removeClass("dslca-font-loading").find(".dslca-icon").removeClass("dslc-icon-spin").addClass("dslc-icon-chevron-left")}}):setTimeout(function(){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"):jQuery(".dslca-font-loading").removeClass("dslca-font-loading").find(".dslca-icon").removeClass("dslc-icon-spin").addClass("dslc-icon-chevron-left");var b=l.split(","),d="#"+n[0].id+" "+b.join(", #"+n[0].id+" ")+" {"+g+": "+c+"}";LiveComposer.Builder.Helpers.processInlineStyleTag({context:a,rule:g,elems:l,styleContent:d})},100)}else a.hasClass("dslca-module-edit-field-checkbox")&&jQuery('input[type="checkbox"]',f).each(function(){jQuery(this).prop("checked")?(b+="solid ",k=k+jQuery(this).val()+" "):b+="none "});if(!a.hasClass("dslca-module-edit-field-font")&&null!=a.data("affect-on-change-el")&&null!=a.data("affect-on-change-rule")){var c,o=a.data("ext")||"";l=a.data("affect-on-change-el"),g=a.data("affect-on-change-rule"),h=c=a.val(),a.hasClass("dslca-module-edit-field-checkbox")&&(c=b,h=k),a.hasClass("dslca-module-edit-field-image")&&(c='url("'+c+'")'),null!==c&&c.length<1&&("background-color"==g||"background"==g)&&(c="transparent"),g.split(",").forEach(function(b){b=b.replace(/\s+/g,"");var d=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument),e=l.split(","),f="#"+d[0].id+" "+e.join(", #"+d[0].id+" ")+" {"+b+": "+c+o+"}";LiveComposer.Builder.Helpers.processInlineStyleTag({context:a,rule:b,elems:l,styleContent:f})})}var j="";j=-1!==d.indexOf("css_")?h:a.val(),jQuery('.dslca-module-option-front[data-id="'+d+'"]',e).val(j),LiveComposer.Utils.publish("LC.moduleChange",{moduleId:e[0].id,optionID:d,optionVal:h||a.val()})}})},W=()=>{jQuery(document).on("change",".dslca-modules-section-edit-field",function(){if(c=(b=jQuery(this)).data("id"),d=b.val(),e=d,p=d+b.data("ext"),f=b.data("css-rule"),i=a=jQuery(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument),m=jQuery('.dslca-modules-section-settings input[data-id="'+c+'"]',a),a.addClass("dslca-modules-section-change-made"),b.hasClass("dslca-modules-section-edit-field-upload")&&d&&d.length&&(d=jQuery('.dslca-modules-section-settings input[data-id="dslca-img-url"]',a).val()),"background-image"==f&&(d='url("'+d+'")',LiveComposer.Builder.PreviewAreaWindow.dslc_bg_video()),"bg_image_attachment"==c&&a.removeClass("dslc-init-parallax"),"border-top"==c||"border-right"==c||"border-bottom"==c||"border-left"==c){var b,c,a,d,p,f,m,i,n,j=jQuery('.dslca-modules-section-settings input[data-id="border_style"]').val();m=jQuery('.dslca-modules-section-settings input[data-id="border"]',a),e="",b.closest(".dslca-modules-section-edit-option-checkbox-wrapper").find(".dslca-modules-section-edit-field-checkbox").each(function(){jQuery(this).is(":checked")&&("border-top"==jQuery(this).data("id")?e+="top ":"border-right"==jQuery(this).data("id")?e+="right ":"border-bottom"==jQuery(this).data("id")?e+="bottom ":"border-left"==jQuery(this).data("id")&&(e+="left "))}),b.is(":checked")?"border-top"==b.data("id")?a.css({"border-top-style":j}):"border-right"==b.data("id")?a.css({"border-right-style":j}):"border-bottom"==b.data("id")?a.css({"border-bottom-style":j}):"border-left"==b.data("id")&&a.css({"border-left-style":j}):"border-top"==b.data("id")?a.css({"border-top-style":"hidden"}):"border-right"==b.data("id")?a.css({"border-right-style":"hidden"}):"border-bottom"==b.data("id")?a.css({"border-bottom-style":"hidden"}):"border-left"==b.data("id")&&a.css({"border-left-style":"hidden"})}else if(b.hasClass("dslca-modules-section-edit-field-checkbox")){var q=jQuery(this).closest(".dslca-modules-section-edit-option-checkbox-wrapper").find(".dslca-modules-section-edit-field-checkbox"),k="";q.each(function(){jQuery(this).prop("checked")&&(k+=jQuery(this).data("val")+" ")});var e=k;"show_on"==b.data("id")&&(-1!==k.indexOf("desktop")?jQuery(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslc-hide-on-desktop"):jQuery(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).addClass("dslc-hide-on-desktop"),-1!==k.indexOf("tablet")?jQuery(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslc-hide-on-tablet"):jQuery(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).addClass("dslc-hide-on-tablet"),-1!==k.indexOf("phone")?jQuery(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslc-hide-on-phone"):jQuery(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).addClass("dslc-hide-on-phone")),"section_divider_bottom_flip"==b.data("id")&&(-1===e.indexOf("horizontally")?jQuery('.dslc-section-divider[data-divider-pos="bottom"]',a).removeClass("dslc-flip-hor"):jQuery('.dslc-section-divider[data-divider-pos="bottom"]',a).addClass("dslc-flip-hor"),-1===e.indexOf("vertically")?jQuery('.dslc-section-divider[data-divider-pos="bottom"]',a).removeClass("dslc-flip-vert"):jQuery('.dslc-section-divider[data-divider-pos="bottom"]',a).addClass("dslc-flip-vert")),"section_divider_top_flip"==b.data("id")&&(-1===e.indexOf("horizontally")?jQuery('.dslc-section-divider[data-divider-pos="top"]',a).removeClass("dslc-flip-hor"):jQuery('.dslc-section-divider[data-divider-pos="top"]',a).addClass("dslc-flip-hor"),-1===e.indexOf("vertically")?jQuery('.dslc-section-divider[data-divider-pos="top"]',a).removeClass("dslc-flip-vert"):jQuery('.dslc-section-divider[data-divider-pos="top"]',a).addClass("dslc-flip-vert"))}else if("bg_image_attachment"==c&&"parallax"==d)a.addClass("dslc-init-parallax"),LiveComposer.Builder.PreviewAreaWindow.dslc_parallax();else if("type"==c)"full"==d?a.addClass("dslc-full"):a.removeClass("dslc-full"),LiveComposer.Builder.PreviewAreaWindow.dslc_masonry();else if("columns_spacing"==c)"nospacing"==d?a.addClass("dslc-no-columns-spacing"):a.removeClass("dslc-no-columns-spacing");else if("custom_class"==c);else if("custom_id"==c);else if("bg_video"==c){if(jQuery(".dslc-bg-video video",a).remove(),d&&d.length){var g=d;g=(g=g.replace(".webm","")).replace(".mp4",""),jQuery(".dslc-bg-video-inner",a).html('<video><source type="video/mp4" src="'+g+'.mp4" /><source type="video/webm" src="'+g+'.webm" /></video>'),LiveComposer.Builder.PreviewAreaWindow.dslc_bg_video()}}else if("section_divider_top_style"==c||"section_divider_bottom_style"==c){let h="top";"section_divider_bottom_style"==c&&(h="bottom");let o=jQuery('.dslc-section-divider[data-divider-pos="'+h+'"] svg',a).attr("style");if(jQuery('.dslc-section-divider[data-divider-pos="'+h+'"]',a).html(""),d&&d.length){let r=jQuery("#dslc-section-dividers",LiveComposer.Builder.PreviewAreaWindow.document).find("svg#"+d).clone();jQuery('.dslc-section-divider[data-divider-pos="'+h+'"]',a).html(r[0]),void 0!==o&&jQuery('.dslc-section-divider[data-divider-pos="'+h+'"] svg',a).attr("style",o)}}else if("bg_image_thumb"==c){if("enabled"==e){if(jQuery("#dslca-post-data-thumb").length){var s="url('"+jQuery("#dslca-post-data-thumb").val()+"')";i.css(f,s)}}else"disabled"==e&&i.css(f,"none")}else{b.data("css-element")&&(i=jQuery(b.data("css-element"),a)),f=f.replace(/ /g,"").split(","),n=null!=b.data("ext")?p:d;for(var l=0;l<f.length;l++)i.css(f[l],n)}if(m.val(e),!LiveComposer.Builder.Flags.generate_code_after_row_changed)return!1})},X=()=>{var a;jQuery(document).on("click",".dslca-module-edit-field-image-add-hook, .dslca-modules-section-edit-field-image-add-hook",function(){var b=jQuery(this);if(b.hasClass("dslca-module-edit-field-image-add-hook"))var c=b.siblings(".dslca-module-edit-field-image"),d=b.siblings(".dslca-module-edit-field-image-remove-hook");else c=b.siblings(".dslca-modules-section-edit-field-upload"),d=b.siblings(".dslca-modules-section-edit-field-image-remove-hook");(a=wp.media.frames.file_frame=wp.media({title:"Choose Image",button:{text:"Confirm"},multiple:!1})).on("select",function(){var e=a.state().get("selection").first().toJSON();c.val(e.id);var f=b.parent().attr("data-id");""!=e.alt&&"image"==f&&jQuery('.dslca-module-edit-option-image_alt input[data-id="image_alt"]').val(e.alt),""!=e.title&&"image"==f&&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),c.trigger("change"),b.hide(),d.show()}),a.open()}),jQuery(document).on("click",".dslca-module-edit-field-image-remove-hook, .dslca-modules-section-edit-field-image-remove-hook",function(){var a=jQuery(this);if(a.hasClass("dslca-module-edit-field-image-remove-hook"))var b=a.siblings(".dslca-module-edit-field-image"),c=a.siblings(".dslca-module-edit-field-image-add-hook");else b=a.siblings(".dslca-modules-section-edit-field-upload"),c=a.siblings(".dslca-modules-section-edit-field-image-add-hook");b.val("").trigger("change"),"image"==a.parent().attr("data-id")&&(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")),a.hide(),c.show()})};function Y(a){window.dslcDebug&&console.log("dslc_module_options_section_filter"),jQuery(".dslca-module-edit-option").hide(),jQuery('.dslca-module-edit-option[data-section="'+a+'"]').show(),aa()}let Z=()=>{let a=document.querySelector(".dslca-module-edit-options-tab-hook.dslca-active").dataset.id;("tablet_responsive"===a||"phone_responsive"===a)&&document.querySelectorAll('.dslca-module-edit-option[data-tab="'+a+'"]').forEach(b=>{let a=b.querySelector(".dslca-module-edit-field").dataset.id;"css_res_t"!==a&&"css_res_p"!==a&&jQuery(".dslca-module-edit-option-"+a).find(".dslca-module-edit-field").val("").trigger("change")})},aa=b=>{window.dslcDebug&&console.log("elementOptionsTabs");var c=jQuery(".dslca-options-filter-hook.dslca-active").data("section"),a=(b=void 0!==b?b:jQuery('.dslca-module-edit-options-tab-hook[data-section="'+c+'"]:first')).data("id");if(jQuery(".dslca-module-edit-options-tab-hook").removeClass("dslca-active"),b.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="'+c+'"]').show(),a&&(jQuery(".dslca-module-edit-option").hide(),jQuery('.dslca-module-edit-option[data-tab="'+a+'"]').show(),ab(),jQuery(".dslca-module-edit-options-tab-hook:visible").length<2?jQuery(".dslca-module-edit-options-tabs").hide():jQuery(".dslca-module-edit-options-tabs").show(),ag(),a==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")),a==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")),a!=DSLCString.str_res_tablet.toLowerCase()+"_responsive"&&a!=DSLCString.str_res_phone.toLowerCase()+"_responsive"||(jQuery(".dslca-container-loader").show(),ct(function(){jQuery(".dslca-container-loader").hide()}))),jQuery("body").hasClass("rtl")){var d,e=0,f=0;jQuery(".dslca-module-edit-options-wrapper > .dslca-module-edit-option:visible").each(function(a){jQuery(this).hasClass("dslca-module-edit-option-hidden")||jQuery(this).hasClass("dslca-module-control-group")||(e+=parseInt(jQuery(this).outerWidth(),10))}),jQuery(".dslca-module-edit-options-wrapper > .dslca-module-control-group:visible").each(function(a){f+=parseInt(jQuery(this).outerWidth(),10)}),d=parseInt(e)+parseInt(f)+10,jQuery(".dslca-module-edit-options-wrapper").css({width:d+"px"})}};function ab(){if(window.dslcDebug&&console.log("dslc_module_options_hideshow_tabs"),"styling"==jQuery(".dslca-options-filter-hook.dslca-active").data("section")){jQuery(".dslca-module-edit");var d=!0,e=!0,a=!0,b=!0,f=!0,g=!0,h=!0,i=!0,j=!0,k=!0,l=!0,m=!0,n=!0,o=!0,p=!0,q=!0,r=!0,s=!0,t=!0,u=!0,v=!0,w=!0,x=!0,_=!0,y=!0,z=!0,A=!0;jQuery('.dslca-module-edit-field[value="main_heading"]').is(":checked")||(d=!1),jQuery('.dslca-module-edit-field[value="filters"]').is(":checked")||(e=!1),jQuery('.dslca-module-edit-field[value="arrows"]').is(":checked")||(a=!1),jQuery('.dslca-module-edit-field[value="circles"]').is(":checked")||(b=!1),"carousel"!=jQuery('.dslca-module-edit-field[data-id="type"]').val()&&(a=!1,b=!1),"disabled"==jQuery('.dslca-module-edit-field[data-id="pagination_type"]').val()&&(f=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="thumbnail"]').is(":checked")||(g=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="content"]').length&&!jQuery('.dslca-module-edit-field[data-id*="elements"][value="title"]').is(":checked")&&(h=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="excerpt"]').is(":checked")||(i=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="meta"]').is(":checked")||(j=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="button"]').length&&!jQuery('.dslca-module-edit-field[data-id*="elements"][value="button"]').is(":checked")&&(k=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="categories"]').is(":checked")||(l=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="separator"]').is(":checked")||(n=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="count"]').is(":checked")||(m=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="tags"]').is(":checked")||(o=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="social"]').is(":checked")||(p=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="position"]').is(":checked")||(q=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="icon"]').length&&!jQuery('.dslca-module-edit-field[data-id*="elements"][value="icon"]').is(":checked")&&(r=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="content"]').length&&!jQuery('.dslca-module-edit-field[data-id*="elements"][value="content"]').is(":checked")&&(s=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="price"]').is(":checked")||(t=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="price_2"]').is(":checked")||(u=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="addtocart"]').is(":checked")||(v=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="details"]').is(":checked")||(w=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="quote"]').is(":checked")||(x=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="author_name"]').is(":checked")||(_=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="author_position"]').is(":checked")||(y=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="image"]').is(":checked")||(z=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="logo"]').is(":checked")||(A=!1),d?jQuery('.dslca-module-edit-options-tab-hook[data-id="heading_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="heading_styling"]').hide(),e?jQuery('.dslca-module-edit-options-tab-hook[data-id="filters_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="filters_styling"]').hide(),a?jQuery('.dslca-module-edit-options-tab-hook[data-id="carousel_arrows_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="carousel_arrows_styling"]').hide(),b?jQuery('.dslca-module-edit-options-tab-hook[data-id="carousel_circles_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="carousel_circles_styling"]').hide(),f?jQuery('.dslca-module-edit-options-tab-hook[data-id="pagination_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="pagination_styling"]').hide(),g?jQuery('.dslca-module-edit-options-tab-hook[data-id="thumbnail_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="thumbnail_styling"]').hide(),h?jQuery('.dslca-module-edit-options-tab-hook[data-id="title_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="title_styling"]').hide(),i?jQuery('.dslca-module-edit-options-tab-hook[data-id="excerpt_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="excerpt_styling"]').hide(),j?jQuery('.dslca-module-edit-options-tab-hook[data-id="meta_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="meta_styling"]').hide(),k?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():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(),l?jQuery('.dslca-module-edit-options-tab-hook[data-id="categories_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="categories_styling"]').hide(),n?jQuery('.dslca-module-edit-options-tab-hook[data-id="separator_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="separator_styling"]').hide(),m?jQuery('.dslca-module-edit-options-tab-hook[data-id="count_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="count_styling"]').hide(),o?jQuery('.dslca-module-edit-options-tab-hook[data-id="tags_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="tags_styling"]').hide(),q?jQuery('.dslca-module-edit-options-tab-hook[data-id="position_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="position_styling"]').hide(),p?jQuery('.dslca-module-edit-options-tab-hook[data-id="social_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="social_styling"]').hide(),r?jQuery('.dslca-module-edit-options-tab-hook[data-id="icon_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="icon_styling"]').hide(),s?jQuery('.dslca-module-edit-options-tab-hook[data-id="content_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="content_styling"]').hide(),t?jQuery('.dslca-module-edit-options-tab-hook[data-id="price_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="price_styling"]').hide(),u?jQuery('.dslca-module-edit-options-tab-hook[data-id="price_secondary_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="price_secondary_styling"]').hide(),v||w?jQuery('.dslca-module-edit-options-tab-hook[data-id="other_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="other_styling"]').hide(),x?jQuery('.dslca-module-edit-options-tab-hook[data-id="quote_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="quote_styling"]').hide(),_?jQuery('.dslca-module-edit-options-tab-hook[data-id="author_name_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="author_name_styling"]').hide(),y?jQuery('.dslca-module-edit-options-tab-hook[data-id="author_position_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="author_position_styling"]').hide(),z?jQuery('.dslca-module-edit-options-tab-hook[data-id="image_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="image_styling"]').hide(),A?jQuery('.dslca-module-edit-options-tab-hook[data-id="logo_styling"]').show():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 B=jQuery('.dslca-module-edit-option[data-id="css_custom"]');"enabled"==B.find("select").val()?(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()):(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(),B.css({visibility:"visible"}))}else jQuery(".dslca-module-edit-options-tabs").show();if("disabled"==jQuery('select.dslca-module-edit-field[data-id="css_res_t"]').val()?(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")):(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")),"disabled"==jQuery('select.dslca-module-edit-field[data-id="css_res_p"]').val()?(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")):(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"),jQuery(".dslca-options-filter-hook").hasClass("dslca-active")){var C=jQuery(".dslca-options-filter-hook.dslca-active").data("section");jQuery('.dslca-module-edit-option[data-section="'+C+'"]').hasClass("dep-show")&&jQuery(".dslca-module-edit-option.dep-show").show(),jQuery('.dslca-module-edit-option[data-section="'+C+'"]').hasClass("dep-hide")&&jQuery(".dslca-module-edit-option.dep-hide").hide()}if(jQuery(".dslca-module-edit-options-tab-hook").hasClass("dslca-active")){var c=jQuery(".dslca-module-edit-options-tab-hook.dslca-active").data("id");jQuery('.dslca-module-edit-option[data-tab="'+c+'"]').hasClass("dependent")?(jQuery(".dslca-module-edit-option.dependent").hide(),jQuery('.dslca-module-edit-option[data-tab="'+c+'"].dep-show').show(),jQuery('.dslca-module-edit-option[data-tab="'+c+'"].dep-hide').hide()):jQuery(".dslca-module-edit-option.dependent").hide()}}function _(a){window.dslcDebug&&console.log("dslc_module_options_confirm_changes"),a=void 0!==a&&a,jQuery(".dslca-module-being-edited",window.LiveComposer.Builder.PreviewAreaDocument).hasClass("dslc-module-DSLC_Sliders")?jQuery(".dslca-module-being-edited",window.LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-module-being-edited"):(jQuery("body").addClass("dslca-module-saving-in-progress"),ct(function(){M(),window.dslc_generate_code(),jQuery(".dslca-module-being-edited",window.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(""),window.LiveComposer.Builder.UI.clearUtils(),a&&a()})),bB(".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(),window.dslc_show_publish_button()}function ac(a){window.dslcDebug&&console.log("dslc_module_options_cancel_changes"),a=void 0!==a&&a;var b=jQuery(".dslca-module-being-edited",window.LiveComposer.Builder.PreviewAreaDocument);jQuery(".dslca-module-options-front",b).html("").append(window.LiveComposer.Builder.moduleBackup),ct(function(){window.dslc_generate_code(),jQuery(".dslca-module-being-edited",window.LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-module-being-edited"),jQuery(".dslca-module-edit-options-inner").html(""),jQuery(".dslca-module-edit-options-tabs").html(""),window.LiveComposer.Builder.UI.clearUtils(),a&&a()}),bB(".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(),window.dslc_show_publish_button(),window.LiveComposer.Builder.UI.clearUtils()}function ad(e,f){var b=jQuery(e).closest(".dslca-module-edit-option-icon"),c=jQuery(".dslca-module-edit-field-icon",b),d=T.indexOf(c.val());if("previous"==f)var a=d-1;else a=d+1;jQuery(".dslca-module-edit-field-icon-suggest",b).text(""),a<0&&(a=T.length-1),c.val(T[a]).trigger("change")}function ae(c){window.dslcDebug&&console.log("dslc_module_options_color");var d,e,f,g,h,i,a=[],b="dslcColors-"+document.domain;void 0!==localStorage[b]&&(a=JSON.parse(localStorage[b])),1>a.length&&a.push("#78b"),2>a.length&&a.push("#ab0"),3>a.length&&a.push("#de3"),a.push("#fff"),a.push("#000"),a.push("rgba(0,0,0,0)"),jQuery(c).each(function(){var c=jQuery(this).closest(".dslca-color-option"),j=jQuery(this);jQuery(this).val(),j.wpColorPicker({mode:"hsl",palettes:a,change:function(b,c){d=j;var a=j.wpColorPicker("color");g=null==a?"":a,d.val(g).trigger("change"),d.css("background",g),e=d.data("affect-on-change-el"),f=d.data("affect-on-change-rule"),null!=e&&".dslca-modules-section-being-edited"!==e&&jQuery(e,window.LiveComposer.Builder.PreviewAreaDocument.find(".dslca-module-being-edited")).css(f,g),h=jQuery(".dslca-module-being-edited",window.LiveComposer.Builder.PreviewAreaDocument),i=d.data("id"),jQuery('.dslca-module-option-front[data-id="'+i+'"]',h).val(g),h.addClass("dslca-module-change-made")}}),c.find(".wp-picker-holder .iris-picker").append('<button type="button" class="dslca-colorpicker-apply">Apply</button>');var k=c.find(".dslca-colorpicker-apply");j.wpColorPicker("open"),jQuery(k).on("click",function(){if("#fff"!==g&&"#ffffff"!==g&&"#000"!==g&&"#000000"!==g&&"rgba(0,0,0,0)"!==g){if(void 0===localStorage[b]){var a=[g];localStorage[b]=JSON.stringify(a)}else -1==(a=JSON.parse(localStorage[b])).indexOf(g)&&(a.unshift(g),3<a.length&&a.pop()),localStorage[b]=JSON.stringify(a)}j.wpColorPicker("close")}),window.LiveComposer.Builder.Helpers.colorpickers.push(jQuery(this))})}function af(a){window.dslcDebug&&console.log("dslc_module_options_numeric"),jQuery(a).each(function(){var b=jQuery(this);0===jQuery(".dslca-module-edit-field-slider",b).length&&b.append('<div class="dslca-module-edit-field-slider"></div>');var h=!0;if(h=!b.hasClass("dslca-modules-section-edit-option"))var a=b.find(".dslca-module-edit-field");else a=b.find(".dslca-modules-section-edit-field");a=b.hasClass("dslca-modules-section-edit-option")?b.find(".dslca-modules-section-edit-field"):b.find(".dslca-module-edit-field");var f=b.find(".dslca-module-edit-field-slider"),c=parseFloat(a.val()),d=parseFloat(a.data("max")),e=parseFloat(a.data("min")),i=parseFloat(a.data("increment")),g=!1;if(void 0!==a.data("onlypositive")&&1===a.data("onlypositive")&&(g=!0),c>=d&&(d=2*c),!g&&c<=e&&(e=2*c),f.slider({min:e,max:d,step:i,value:a.val(),slide:function(c,b){a.val(b.value+""),a.trigger("change")},change:function(c,a){(a.value>=d||a.value<=e)&&(f.slider("destroy"),af(b))}}),f.show(),jQuery(b).on("mouseleave",function(){void 0!==f.slider("instance")&&jQuery(f).slider("destroy"),f.remove()}),!a[0].classList.contains("slider-initiated"))return a[0].classList.add("slider-initiated"),a.on("keyup",function(b){if(void 0===b)return!1;b.shiftKey&&(38==b.keyCode&&(this.value=(parseInt(this.value)||0)+9,a.trigger("change")),40==b.keyCode&&(this.value=parseInt(this.value)+0-9,a.trigger("change"))),8!=b.keyCode&&45!=b.keyCode||a.trigger("change"),(b.keyCode>=48&&b.keyCode<=57||b.keyCode>=96&&b.keyCode<=105)&&a.trigger("change");var c=b.which?b.which:b.keyCode;return(!(c>=48&&c<=57||c>=96&&c<=105)||8==b.keyCode||39==b.keyCode||37==b.keyCode||46==b.keyCode)&&void 0}),a.on("change",function(a){g&&this.value<0&&(this.value=0);var b=(h?jQuery(a.target.closest(".dslca-module-edit-option-slider")):jQuery(a.target.closest(".dslca-modules-section-edit-option-slider"))).find(".dslca-module-edit-field-slider");void 0!==b.slider("instance")&&b.slider("value",this.value),h&&jQuery(".dslca-module-being-edited",window.LiveComposer.Builder.PreviewAreaDocument).addClass("dslca-module-change-made")}),!1})}function ag(){jQuery("html").removeClass("dslc-responsive-preview"),jQuery("body").removeClass("dslc-res-big dslc-res-smaller-monitor dslc-res-phone dslc-res-tablet")}function ah(a){return(ah="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a})(a)}function ai(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}function g(){return(g=Object.assign||function(d){for(var a=1;a<arguments.length;a++){var b=arguments[a];for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(d[c]=b[c])}return d}).apply(this,arguments)}function aj(d){for(var a=1;a<arguments.length;a++){var c=null!=arguments[a]?arguments[a]:{},b=Object.keys(c);"function"==typeof Object.getOwnPropertySymbols&&(b=b.concat(Object.getOwnPropertySymbols(c).filter(function(a){return Object.getOwnPropertyDescriptor(c,a).enumerable}))),b.forEach(function(a){ai(d,a,c[a])})}return d}function c(a){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(a)}window.dslc_module_options_font=function(){jQuery(document).off("click",".dslca-module-edit-field-font-next").on("click",".dslca-module-edit-field-font-next",function(c){if(c.preventDefault(),!jQuery(this).hasClass("dslca-font-loading")&&!jQuery(this).siblings(".dslca-font-loading").length){var a=jQuery(this).closest(".dslca-module-edit-option-font"),b=jQuery(".dslca-module-edit-field-font",a),d=S.indexOf(b.val())+1;jQuery(".dslca-module-edit-field-font-suggest",a).text(""),b.val(S[d]).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).off("click",".dslca-module-edit-field-font-prev").on("click",".dslca-module-edit-field-font-prev",function(d){if(d.preventDefault(),!jQuery(this).hasClass("dslca-font-loading")&&!jQuery(this).siblings(".dslca-font-loading").length){var b=jQuery(this).closest(".dslca-module-edit-option-font"),c=jQuery(".dslca-module-edit-field-font",b),a=S.indexOf(c.val())-1;jQuery(".dslca-module-edit-field-font-suggest",b).text(""),a<0&&(a=S.length-1),c.val(S[a]).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).off("blur",".dslca-module-edit-field-font").on("blur",".dslca-module-edit-field-font",function(b){var a=jQuery(this).closest(".dslca-module-edit-option");jQuery(".dslca-module-edit-field-font-suggest",a).hide()}),jQuery(document).off("keyup",".dslca-module-edit-field-font").on("keyup",".dslca-module-edit-field-font",function(b){var e,a,f,c,d=!1;if(a=(e=jQuery(this)).closest(".dslca-module-edit-option"),38==b.which&&jQuery(".dslca-module-edit-field-font-prev",a).click(),40==b.which&&jQuery(".dslca-module-edit-field-font-next",a).click(),13!=b.which&&38!=b.which&&40!=b.which){f=e.val();var h=new RegExp("^"+f,"i"),i=S.length,g=0;do h.test(S[g])&&!d&&(d=S[g]),g++;while(g<i)d?f!==d&&(c=d,jQuery(".dslca-module-edit-field-font-suggest",a).show()):(c=f,jQuery(".dslca-module-edit-field-font-suggest",a).hide()),jQuery(".dslca-module-edit-field-font-suggest",a).text(c),c.length&&e.val(c.substring(0,e.val().length))}}),jQuery(document).off("keydown",".dslca-module-edit-field-font").on("keydown",".dslca-module-edit-field-font",function(b){if(13==b.which||9==b.which){var a;a=jQuery(this).closest(".dslca-module-edit-option"),jQuery(".dslca-module-edit-field-font-suggest",a).text().length&&(jQuery(this).val(jQuery(".dslca-module-edit-field-font-suggest",a).text()).trigger("change"),jQuery(".dslca-module-edit-field-font-suggest",a).text(""))}})};var r=c(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),s=c(/Edge/i),ak=c(/firefox/i),al=c(/safari/i)&&!c(/chrome/i)&&!c(/android/i),h=c(/iP(ad|od|hone)/i),t=c(/chrome/i)&&c(/android/i),am={capture:!1,passive:!1};function i(a,b,c){a.addEventListener(b,c,!r&&am)}function u(a,b,c){a.removeEventListener(b,c,!r&&am)}function an(a,b){if(b){if(">"===b[0]&&(b=b.substring(1)),a)try{if(a.matches)return a.matches(b);if(a.msMatchesSelector)return a.msMatchesSelector(b);if(a.webkitMatchesSelector)return a.webkitMatchesSelector(b)}catch(c){}return!1}}function ao(a){return a.host&&a!==document&&a.host.nodeType?a.host:a.parentNode}function v(a,c,b,d){if(a){b=b||document;do{if(null!=c&&(">"===c[0]?a.parentNode===b&&an(a,c):an(a,c))||d&&a===b)return a;if(a===b)break}while(a=ao(a))}return null}var ap,aq=/\s+/g;function w(a,b,c){if(a&&b){if(a.classList)a.classList[c?"add":"remove"](b);else{var d=(" "+a.className+" ").replace(aq," ").replace(" "+b+" "," ");a.className=(d+(c?" "+b:"")).replace(aq," ")}}}function x(c,a,b){var d=c&&c.style;if(d){if(void 0===b)return document.defaultView&&document.defaultView.getComputedStyle?b=document.defaultView.getComputedStyle(c,""):c.currentStyle&&(b=c.currentStyle),void 0===a?b:b[a];a in d|| -1!==a.indexOf("webkit")||(a="-webkit-"+a),d[a]=b+("string"==typeof b?"":"px")}}function ar(a,e){var b="";if("string"==typeof a)b=a;else do{var c=x(a,"transform");c&&"none"!==c&&(b=c+" "+b)}while(!e&&(a=a.parentNode))var d=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return d&&new d(b)}function $(c,e,d){if(c){var b=c.getElementsByTagName(e),a=0,f=b.length;if(d)for(;a<f;a++)d(b[a],a);return b}return[]}function as(){return document.scrollingElement||document.documentElement}function at(b,o,k,p,a){if(b.getBoundingClientRect||b===window){var c,d,e,f,g,i,j;if(b!==window&&b!==as()?(d=(c=b.getBoundingClientRect()).top,e=c.left,f=c.bottom,g=c.right,i=c.height,j=c.width):(d=0,e=0,f=window.innerHeight,g=window.innerWidth,i=window.innerHeight,j=window.innerWidth),(o||k)&&b!==window&&(a=a||b.parentNode,!r))do if(a&&a.getBoundingClientRect&&("none"!==x(a,"transform")||k&&"static"!==x(a,"position"))){var l=a.getBoundingClientRect();d-=l.top+parseInt(x(a,"border-top-width")),e-=l.left+parseInt(x(a,"border-left-width")),f=d+c.height,g=e+c.width;break}while(a=a.parentNode)if(p&&b!==window){var h=ar(a||b),m=h&&h.a,n=h&&h.d;h&&(f=(d/=n)+(i/=n),g=(e/=m)+(j/=m))}return{top:d,left:e,bottom:f,right:g,width:j,height:i}}}function au(c,f,b){for(var a=ax(c,!0),d=at(c)[f];a;){var e=at(a)[b];if(!("top"===b||"left"===b?d>=e:d<=e))return a;if(a===as())break;a=ax(a,!1)}return!1}function y(d,f,g){for(var e=0,a=0,c=d.children;a<c.length;){if("none"!==c[a].style.display&&c[a]!==b.ghost&&c[a]!==b.dragged&&v(c[a],g.draggable,d,!1)){if(e===f)return c[a];e++}a++}return null}function av(d,c){for(var a=d.lastElementChild;a&&(a===b.ghost||"none"===x(a,"display")||c&&!an(a,c));)a=a.previousElementSibling;return a||null}function z(a,c){var d=0;if(!a||!a.parentNode)return -1;for(;a=a.previousElementSibling;)"TEMPLATE"===a.nodeName.toUpperCase()||a===b.clone||c&&!an(a,c)||d++;return d}function aw(a){var b=0,c=0,e=as();if(a)do{var d=ar(a),f=d.a,g=d.d;b+=a.scrollLeft*f,c+=a.scrollTop*g}while(a!==e&&(a=a.parentNode))return[b,c]}function ax(c,e){if(!c||!c.getBoundingClientRect)return as();var a=c,d=!1;do if(a.clientWidth<a.scrollWidth||a.clientHeight<a.scrollHeight){var b=x(a);if(a.clientWidth<a.scrollWidth&&("auto"==b.overflowX||"scroll"==b.overflowX)||a.clientHeight<a.scrollHeight&&("auto"==b.overflowY||"scroll"==b.overflowY)){if(!a.getBoundingClientRect||a===document.body)return as();if(d||e)return a;d=!0}}while(a=a.parentNode)return as()}function ay(a,b){return Math.round(a.top)===Math.round(b.top)&&Math.round(a.left)===Math.round(b.left)&&Math.round(a.height)===Math.round(b.height)&&Math.round(a.width)===Math.round(b.width)}function j(a,b){return function(){if(!ap){var c=arguments,d=this;1===c.length?a.call(d,c[0]):a.apply(d,c),ap=setTimeout(function(){ap=void 0},b)}}}function az(a,b,c){a.scrollLeft+=b,a.scrollTop+=c}function A(a){var b=window.Polymer,c=window.jQuery||window.Zepto;return b&&b.dom?b.dom(a).cloneNode(!0):c?c(a).clone(!0)[0]:a.cloneNode(!0)}var aA="Sortable"+new Date().getTime(),aB=[],aC={initializeByDefault:!0},aD={mount:function(b){for(var a in aC)!aC.hasOwnProperty(a)||a in b||(b[a]=aC[a]);aB.push(b)},pluginEvent:function(a,c,b){var d=this;this.eventCanceled=!1,b.cancel=function(){d.eventCanceled=!0};var e=a+"Global";aB.forEach(function(d){c[d.pluginName]&&(c[d.pluginName][e]&&c[d.pluginName][e](aj({sortable:c},b)),c.options[d.pluginName]&&c[d.pluginName][a]&&c[d.pluginName][a](aj({sortable:c},b)))})},initializePlugins:function(a,d,e,f){for(var b in aB.forEach(function(c){var f=c.pluginName;if(a.options[f]||c.initializeByDefault){var b=new c(a,d,a.options);b.sortable=a,b.options=a.options,a[f]=b,g(e,b.defaults)}}),a.options)if(a.options.hasOwnProperty(b)){var c=this.modifyOption(a,b,a.options[b]);void 0!==c&&(a.options[b]=c)}},getEventProperties:function(b,c){var a={};return aB.forEach(function(d){"function"==typeof d.eventProperties&&g(a,d.eventProperties.call(c[d.pluginName],b))}),a},modifyOption:function(b,c,d){var a;return aB.forEach(function(e){b[e.pluginName]&&e.optionListeners&&"function"==typeof e.optionListeners[c]&&(a=e.optionListeners[c].call(b[e.pluginName],d))}),a}},aE=function(c,d){var a=arguments.length>2&& void 0!==arguments[2]?arguments[2]:{},e=a.evt,f=function(a,d){if(null==a)return{};var b,c,e=function(c,f){if(null==c)return{};var a,b,d={},e=Object.keys(c);for(b=0;b<e.length;b++)a=e[b],f.indexOf(a)>=0||(d[a]=c[a]);return d}(a,d);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(a);for(c=0;c<f.length;c++)b=f[c],d.indexOf(b)>=0||Object.prototype.propertyIsEnumerable.call(a,b)&&(e[b]=a[b])}return e}(a,["evt"]);aD.pluginEvent.bind(b)(c,d,aj({dragEl:aG,parentEl:aH,ghostEl:aI,rootEl:aJ,nextEl:aK,lastDownEl:aL,cloneEl:aM,cloneHidden:aN,dragStarted:a$,putSortable:aT,activeSortable:b.active,originalEvent:e,oldIndex:aO,oldDraggableIndex:aQ,newIndex:aP,newDraggableIndex:aR,hideGhostForTarget:bg,unhideGhostForTarget:bh,cloneNowHidden:function(){aN=!0},cloneNowShown:function(){aN=!1},dispatchSortableEvent:function(a){aF({sortable:d,name:a,originalEvent:e})}},f))};function aF(a){!function(b){var d=b.sortable,c=b.rootEl,e=b.name,k=b.targetEl,l=b.cloneEl,m=b.toEl,n=b.fromEl,o=b.oldIndex,p=b.newIndex,q=b.oldDraggableIndex,t=b.newDraggableIndex,u=b.originalEvent,f=b.putSortable,v=b.extraEventProperties;if(d=d||c&&c[aA]){var a,g=d.options,h="on"+e.charAt(0).toUpperCase()+e.substr(1);!window.CustomEvent||r||s?(a=document.createEvent("Event")).initEvent(e,!0,!0):a=new CustomEvent(e,{bubbles:!0,cancelable:!0}),a.to=m||c,a.from=n||c,a.item=k||c,a.clone=l,a.oldIndex=o,a.newIndex=p,a.oldDraggableIndex=q,a.newDraggableIndex=t,a.originalEvent=u,a.pullMode=f?f.lastPutMode:void 0;var i=aj({},v,aD.getEventProperties(e,d));for(var j in i)a[j]=i[j];c&&c.dispatchEvent(a),g[h]&&g[h].call(d,a)}}(aj({putSortable:aT,cloneEl:aM,targetEl:aG,rootEl:aJ,oldIndex:aO,oldDraggableIndex:aQ,newIndex:aP,newDraggableIndex:aR},a))}var aG,aH,aI,aJ,aK,aL,aM,aN,aO,aP,aQ,aR,aS,aT,aU,aV,aW,aX,aY,aZ,a$,a_,a0,a1,a2,a3=!1,a4=!1,a5=[],a6=!1,a7=!1,a8=[],a9=!1,ba=[],d="undefined"!=typeof document,bb=h,bc=s||r?"cssFloat":"float",bd=d&&!t&&!h&&"draggable"in document.createElement("div"),be=function(){if(d){if(r)return!1;var a=document.createElement("x");return a.style.cssText="pointer-events:auto","auto"===a.style.pointerEvents}}(),B=function(f,g){var a=x(f),h=parseInt(a.width)-parseInt(a.paddingLeft)-parseInt(a.paddingRight)-parseInt(a.borderLeftWidth)-parseInt(a.borderRightWidth),c=y(f,0,g),d=y(f,1,g),b=c&&x(c),e=d&&x(d),i=b&&parseInt(b.marginLeft)+parseInt(b.marginRight)+at(c).width,j=e&&parseInt(e.marginLeft)+parseInt(e.marginRight)+at(d).width;if("flex"===a.display)return"column"===a.flexDirection||"column-reverse"===a.flexDirection?"vertical":"horizontal";if("grid"===a.display)return a.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(c&&b.float&&"none"!==b.float){var k="left"===b.float?"left":"right";return d&&("both"===e.clear||e.clear===k)?"vertical":"horizontal"}return c&&("block"===b.display||"flex"===b.display||"table"===b.display||"grid"===b.display||i>=h&&"none"===a[bc]||d&&"none"===a[bc]&&i+j>h)?"vertical":"horizontal"},bf=function(c){function d(a,b){return function(c,e,f,g){var i=c.options.group.name&&e.options.group.name&&c.options.group.name===e.options.group.name;if(null==a&&(b||i))return!0;if(null==a|| !1===a)return!1;if(b&&"clone"===a)return a;if("function"==typeof a)return d(a(c,e,f,g),b)(c,e,f,g);var h=(b?c:e).options.group.name;return!0===a||"string"==typeof a&&a===h||a.join&&a.indexOf(h)> -1}}var b={},a=c.group;a&&"object"==ah(a)||(a={name:a}),b.name=a.name,b.checkPull=d(a.pull,!0),b.checkPut=d(a.put),b.revertClone=a.revertClone,c.group=b},bg=function(){!be&&aI&&x(aI,"display","none")},bh=function(){!be&&aI&&x(aI,"display","")};d&&document.addEventListener("click",function(a){if(a4)return a.preventDefault(),a.stopPropagation&&a.stopPropagation(),a.stopImmediatePropagation&&a.stopImmediatePropagation(),a4=!1,!1},!0);var bi=function(a){if(aG){var e,f,g,c=(e=(a=a.touches?a.touches[0]:a).clientX,f=a.clientY,a5.some(function(b){if(!av(b)){var c=at(b),a=b[aA].options.emptyInsertThreshold,d=e>=c.left-a&&e<=c.right+a,h=f>=c.top-a&&f<=c.bottom+a;return a&&d&&h?g=b:void 0}}),g);if(c){var b={};for(var d in a)a.hasOwnProperty(d)&&(b[d]=a[d]);b.target=b.rootEl=c,b.preventDefault=void 0,b.stopPropagation=void 0,c[aA]._onDragOver(b)}}},bj=function(a){aG&&aG.parentNode[aA]._isOutsideThisEl(a.target)};function b(a,c){if(!a||!a.nodeType||1!==a.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat(({}).toString.call(a));this.el=a,this.options=c=g({},c),a[aA]=this;var j,h,e={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(a.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return B(a,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(a,b){a.setData("Text",b.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==b.supportPointer&&"PointerEvent"in window,emptyInsertThreshold:5};for(var f in aD.initializePlugins(this,a,e),e)f in c||(c[f]=e[f]);for(var d in bf(c),this)"_"===d.charAt(0)&&"function"==typeof this[d]&&(this[d]=this[d].bind(this));this.nativeDraggable=!c.forceFallback&&bd,this.nativeDraggable&&(this.options.touchStartThreshold=1),c.supportPointer?i(a,"pointerdown",this._onTapStart):(i(a,"mousedown",this._onTapStart),i(a,"touchstart",this._onTapStart)),this.nativeDraggable&&(i(a,"dragover",this),i(a,"dragenter",this)),a5.push(this.el),c.store&&c.store.get&&this.sort(c.store.get(this)||[]),g(this,(h=[],{captureAnimationState:function(){h=[],this.options.animation&&[].slice.call(this.el.children).forEach(function(a){if("none"!==x(a,"display")&&a!==b.ghost){h.push({target:a,rect:at(a)});var c=aj({},h[h.length-1].rect);if(a.thisAnimationDuration){var d=ar(a,!0);d&&(c.top-=d.f,c.left-=d.e)}a.fromRect=c}})},addAnimationState:function(a){h.push(a)},removeAnimationState:function(a){h.splice(function(a,b){for(var c in a)if(a.hasOwnProperty(c)){for(var d in b)if(b.hasOwnProperty(d)&&b[d]===a[c][d])return Number(c)}return -1}(h,{target:a}),1)},animateAll:function(a){var d=this;if(!this.options.animation)return clearTimeout(j),void("function"==typeof a&&a());var b=!1,c=0;h.forEach(function(m){var j,g,k,n,f=0,a=m.target,h=a.fromRect,e=at(a),o=a.prevFromRect,p=a.prevToRect,i=m.rect,l=ar(a,!0);l&&(e.top-=l.f,e.left-=l.e),a.toRect=e,a.thisAnimationDuration&&ay(o,e)&&!ay(h,e)&&(i.top-e.top)/(i.left-e.left)==(h.top-e.top)/(h.left-e.left)&&(f=(j=i,g=o,k=p,n=d.options,Math.sqrt(Math.pow(g.top-j.top,2)+Math.pow(g.left-j.left,2))/Math.sqrt(Math.pow(g.top-k.top,2)+Math.pow(g.left-k.left,2))*n.animation)),ay(e,h)||(a.prevFromRect=h,a.prevToRect=e,f||(f=d.options.animation),d.animate(a,i,e,f)),f&&(b=!0,c=Math.max(c,f),clearTimeout(a.animationResetTimer),a.animationResetTimer=setTimeout(function(){a.animationTime=0,a.prevFromRect=null,a.fromRect=null,a.prevToRect=null,a.thisAnimationDuration=null},f),a.thisAnimationDuration=f)}),clearTimeout(j),b?j=setTimeout(function(){"function"==typeof a&&a()},c):"function"==typeof a&&a(),h=[]},animate:function(a,d,e,c){if(c){x(a,"transition",""),x(a,"transform","");var b=ar(this.el),h=b&&b.a,i=b&&b.d,f=(d.left-e.left)/(h||1),g=(d.top-e.top)/(i||1);a.animatingX=!!f,a.animatingY=!!g,x(a,"transform","translate3d("+f+"px,"+g+"px,0)"),a.offsetWidth,x(a,"transition","transform "+c+"ms"+(this.options.easing?" "+this.options.easing:"")),x(a,"transform","translate3d(0,0,0)"),"number"==typeof a.animated&&clearTimeout(a.animated),a.animated=setTimeout(function(){x(a,"transition",""),x(a,"transform",""),a.animated=!1,a.animatingX=!1,a.animatingY=!1},c)}}}))}function bk(b,c,h,i,j,k,d,l){var a,e,f=b[aA],g=f.options.onMove;return!window.CustomEvent||r||s?(a=document.createEvent("Event")).initEvent("move",!0,!0):a=new CustomEvent("move",{bubbles:!0,cancelable:!0}),a.to=c,a.from=b,a.dragged=h,a.draggedRect=i,a.related=j||c,a.relatedRect=k||at(c),a.willInsertAfter=l,a.originalEvent=d,b.dispatchEvent(a),g&&(e=g.call(f,a,d)),e}function bl(a){a.draggable=!1}function bm(){a9=!1}function bn(a){for(var b=a.tagName+a.className+a.src+a.href+a.textContent,c=b.length,d=0;c--;)d+=b.charCodeAt(c);return d.toString(36)}function C(a){return setTimeout(a,0)}function D(a){return clearTimeout(a)}b.prototype={constructor:b,_isOutsideThisEl:function(a){this.el.contains(a)||a===this.el||(a_=null)},_getDirection:function(a,b){return"function"==typeof this.options.direction?this.options.direction.call(this,a,b,aG):this.options.direction},_onTapStart:function(a){if(a.cancelable){var g=this,d=this.el,c=this.options,h=c.preventOnFilter,j=a.type,i=a.touches&&a.touches[0]||a.pointerType&&"touch"===a.pointerType&&a,b=(i||a).target,f=a.target.shadowRoot&&(a.path&&a.path[0]||a.composedPath&&a.composedPath()[0])||b,e=c.filter;if(function(d){ba.length=0;for(var a=d.getElementsByTagName("input"),b=a.length;b--;){var c=a[b];c.checked&&ba.push(c)}}(d),!aG&&!(/mousedown|pointerdown/.test(j)&&0!==a.button||c.disabled||f.isContentEditable||(b=v(b,c.draggable,d,!1))&&b.animated||aL===b)){if(aO=z(b),aQ=z(b,c.draggable),"function"==typeof e){if(e.call(this,a,b,this))return aF({sortable:g,rootEl:f,name:"filter",targetEl:b,toEl:d,fromEl:d}),aE("filter",g,{evt:a}),void(h&&a.cancelable&&a.preventDefault())}else if(e&&(e=e.split(",").some(function(c){if(c=v(f,c.trim(),d,!1))return aF({sortable:g,rootEl:c,name:"filter",targetEl:b,fromEl:d,toEl:d}),aE("filter",g,{evt:a}),!0})))return void(h&&a.cancelable&&a.preventDefault());c.handle&&!v(f,c.handle,d,!1)||this._prepareDragStart(a,i,b)}}},_prepareDragStart:function(e,f,g){var h,a=this,j=a.el,d=a.options,c=j.ownerDocument;if(g&&!aG&&g.parentNode===j){var k=at(g);if(aJ=j,aH=(aG=g).parentNode,aK=aG.nextSibling,aL=g,aS=d.group,b.dragged=aG,aU={target:aG,clientX:(f||e).clientX,clientY:(f||e).clientY},aY=aU.clientX-k.left,aZ=aU.clientY-k.top,this._lastX=(f||e).clientX,this._lastY=(f||e).clientY,aG.style["will-change"]="all",h=function(){aE("delayEnded",a,{evt:e}),b.eventCanceled?a._onDrop():(a._disableDelayedDragEvents(),!ak&&a.nativeDraggable&&(aG.draggable=!0),a._triggerDragStart(e,f),aF({sortable:a,name:"choose",originalEvent:e}),w(aG,d.chosenClass,!0))},d.ignore.split(",").forEach(function(a){$(aG,a.trim(),bl)}),i(c,"dragover",bi),i(c,"mousemove",bi),i(c,"touchmove",bi),i(c,"mouseup",a._onDrop),i(c,"touchend",a._onDrop),i(c,"touchcancel",a._onDrop),ak&&this.nativeDraggable&&(this.options.touchStartThreshold=4,aG.draggable=!0),aE("delayStart",this,{evt:e}),!d.delay||d.delayOnTouchOnly&&!f||this.nativeDraggable&&(s||r))h();else{if(b.eventCanceled)return void this._onDrop();i(c,"mouseup",a._disableDelayedDrag),i(c,"touchend",a._disableDelayedDrag),i(c,"touchcancel",a._disableDelayedDrag),i(c,"mousemove",a._delayedDragTouchMoveHandler),i(c,"touchmove",a._delayedDragTouchMoveHandler),d.supportPointer&&i(c,"pointermove",a._delayedDragTouchMoveHandler),a._dragStartTimer=setTimeout(h,d.delay)}}},_delayedDragTouchMoveHandler:function(a){var b=a.touches?a.touches[0]:a;Math.max(Math.abs(b.clientX-this._lastX),Math.abs(b.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){aG&&bl(aG),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var a=this.el.ownerDocument;u(a,"mouseup",this._disableDelayedDrag),u(a,"touchend",this._disableDelayedDrag),u(a,"touchcancel",this._disableDelayedDrag),u(a,"mousemove",this._delayedDragTouchMoveHandler),u(a,"touchmove",this._delayedDragTouchMoveHandler),u(a,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(b,a){a=a||"touch"==b.pointerType&&b,!this.nativeDraggable||a?this.options.supportPointer?i(document,"pointermove",this._onTouchMove):i(document,a?"touchmove":"mousemove",this._onTouchMove):(i(aG,"dragend",this),i(aJ,"dragstart",this._onDragStart));try{document.selection?C(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch(c){}},_dragStarted:function(a,c){if(a3=!1,aJ&&aG){aE("dragStarted",this,{evt:c}),this.nativeDraggable&&i(document,"dragover",bj);var d=this.options;a||w(aG,d.dragClass,!1),w(aG,d.ghostClass,!0),b.active=this,a&&this._appendGhost(),aF({sortable:this,name:"start",originalEvent:c})}else this._nulling()},_emulateDragOver:function(){if(aV){this._lastX=aV.clientX,this._lastY=aV.clientY,bg();for(var a=document.elementFromPoint(aV.clientX,aV.clientY),b=a;a&&a.shadowRoot&&(a=a.shadowRoot.elementFromPoint(aV.clientX,aV.clientY))!==b;)b=a;if(aG.parentNode[aA]._isOutsideThisEl(a),b)do{if(b[aA]&&b[aA]._onDragOver({clientX:aV.clientX,clientY:aV.clientY,target:a,rootEl:b})&&!this.options.dragoverBubble)break;a=b}while(b=b.parentNode)bh()}},_onTouchMove:function(c){if(aU){var i=this.options,j=i.fallbackTolerance,k=i.fallbackOffset,d=c.touches?c.touches[0]:c,a=aI&&ar(aI,!0),l=aI&&a&&a.a,m=aI&&a&&a.d,e=bb&&a2&&aw(a2),g=(d.clientX-aU.clientX+k.x)/(l||1)+(e?e[0]-a8[0]:0)/(l||1),h=(d.clientY-aU.clientY+k.y)/(m||1)+(e?e[1]-a8[1]:0)/(m||1);if(!b.active&&!a3){if(j&&Math.max(Math.abs(d.clientX-this._lastX),Math.abs(d.clientY-this._lastY))<j)return;this._onDragStart(c,!0)}if(aI){a?(a.e+=g-(aW||0),a.f+=h-(aX||0)):a={a:1,b:0,c:0,d:1,e:g,f:h};var f="matrix(".concat(a.a,",").concat(a.b,",").concat(a.c,",").concat(a.d,",").concat(a.e,",").concat(a.f,")");x(aI,"webkitTransform",f),x(aI,"mozTransform",f),x(aI,"msTransform",f),x(aI,"transform",f),aW=g,aX=h,aV=d}c.cancelable&&c.preventDefault()}},_appendGhost:function(){if(!aI){var c=this.options.fallbackOnBody?document.body:aJ,a=at(aG,!0,bb,!0,c),d=this.options;if(bb){for(a2=c;"static"===x(a2,"position")&&"none"===x(a2,"transform")&&a2!==document;)a2=a2.parentNode;a2!==document.body&&a2!==document.documentElement?(a2===document&&(a2=as()),a.top+=a2.scrollTop,a.left+=a2.scrollLeft):a2=as(),a8=aw(a2)}w(aI=aG.cloneNode(!0),d.ghostClass,!1),w(aI,d.fallbackClass,!0),w(aI,d.dragClass,!0),x(aI,"transition",""),x(aI,"transform",""),x(aI,"box-sizing","border-box"),x(aI,"margin",0),x(aI,"top",a.top),x(aI,"left",a.left),x(aI,"width",a.width),x(aI,"height",a.height),x(aI,"opacity","0.8"),x(aI,"position",bb?"absolute":"fixed"),x(aI,"zIndex","100000"),x(aI,"pointerEvents","none"),b.ghost=aI,c.appendChild(aI),x(aI,"transform-origin",aY/parseInt(aI.style.width)*100+"% "+aZ/parseInt(aI.style.height)*100+"%")}},_onDragStart:function(c,d){var a=this,e=c.dataTransfer,f=a.options;aE("dragStart",this,{evt:c}),b.eventCanceled?this._onDrop():(aE("setupClone",this),b.eventCanceled||((aM=A(aG)).draggable=!1,aM.style["will-change"]="",this._hideClone(),w(aM,this.options.chosenClass,!1),b.clone=aM),a.cloneId=C(function(){aE("clone",a),b.eventCanceled||(a.options.removeCloneOnHide||aJ.insertBefore(aM,aG),a._hideClone(),aF({sortable:a,name:"clone"}))}),d||w(aG,f.dragClass,!0),d?(a4=!0,a._loopId=setInterval(a._emulateDragOver,50)):(u(document,"mouseup",a._onDrop),u(document,"touchend",a._onDrop),u(document,"touchcancel",a._onDrop),e&&(e.effectAllowed="move",f.setData&&f.setData.call(a,e,aG)),i(document,"drop",a),x(aG,"transform","translateZ(0)")),a3=!0,a._dragStartId=C(a._dragStarted.bind(a,d,c)),i(document,"selectstart",a),a$=!0,al&&x(document.body,"user-select","none"))},_onDragOver:function(c){var q,h,C,l,d=this.el,a=c.target,e=this.options,D=e.group,r=b.active,O=aS===D,P=e.sort,S=aT||r,Q=this,E=!1;if(!a9){if(void 0!==c.preventDefault&&c.cancelable&&c.preventDefault(),a=v(a,e.draggable,d,!0),T("dragOver"),b.eventCanceled)return E;if(aG.contains(c.target)||a.animated&&a.animatingX&&a.animatingY||Q._ignoreWhileAnimating===a)return V(!1);if(a4=!1,r&&!e.disabled&&(O?P||(C=!aJ.contains(aG)):aT===this||(this.lastPutMode=aS.checkPull(this,r,aG,c))&&D.checkPut(this,r,aG,c))){if(l="vertical"===this._getDirection(c,a),q=at(aG),T("dragOverValid"),b.eventCanceled)return E;if(C)return aH=aJ,U(),this._hideClone(),T("revert"),b.eventCanceled||(aK?aJ.insertBefore(aG,aK):aJ.appendChild(aG)),V(!0);var f,F,u,g,m=av(d,e.draggable);if(!m||(f=c,F=l,u=this,g=at(av(u.el,u.options.draggable)),(F?f.clientX>g.right+10||f.clientX<=g.right&&f.clientY>g.bottom&&f.clientX>=g.left:f.clientX>g.right&&f.clientY>g.top||f.clientX<=g.right&&f.clientY>g.bottom+10)&&!m.animated)){if(m===aG)return V(!1);if(m&&d===c.target&&(a=m),a&&(h=at(a)),!1!==bk(aJ,d,aG,q,a,h,c,!!a))return U(),d.appendChild(aG),aH=d,W(),V(!0)}else if(a.parentNode===d){h=at(a);var i,j,k,y,G,H,A,I,J,n,B,o,R=aG.parentNode!==d,K=(i=aG.animated&&aG.toRect||q,j=a.animated&&a.toRect||h,y=(k=l)?i.left:i.top,G=k?i.right:i.bottom,H=k?i.width:i.height,A=k?j.left:j.top,I=k?j.right:j.bottom,J=k?j.width:j.height,y!==A&&G!==I&&y+H/2!==A+J/2),L=l?"top":"left",p=au(a,"top","top")||au(aG,"top","top"),_=p?p.scrollTop:void 0;if(a_!==a&&(B=h[L],a6=!1,a7=!K&&e.invertSwap||R),0!==(n=function(j,m,c,e,h,f,k,n){var l,a=e?j.clientY:j.clientX,b=e?c.height:c.width,d=e?c.top:c.left,g=e?c.bottom:c.right,i=!1;if(!k){if(n&&a1<b*h){if(!a6&&(1===a0?a>d+b*f/2:a<g-b*f/2)&&(a6=!0),a6)i=!0;else if(1===a0?a<d+a1:a>g-a1)return-a0}else if(a>d+b*(1-h)/2&&a<g-b*(1-h)/2)return l=m,z(aG)<z(l)?1:-1}return(i=i||k)&&(a<d+b*f/2||a>g-b*f/2)?a>d+b/2?1:-1:0}(c,a,h,l,K?1:e.swapThreshold,null==e.invertedSwapThreshold?e.swapThreshold:e.invertedSwapThreshold,a7,a_===a))){var M=z(aG);do M-=n,o=aH.children[M];while(o&&("none"===x(o,"display")||o===aI))}if(0===n||o===a)return V(!1);a_=a,a0=n;var N=a.nextElementSibling,s=!1,t=bk(aJ,d,aG,q,a,h,c,s=1===n);if(!1!==t)return 1!==t&& -1!==t||(s=1===t),a9=!0,setTimeout(bm,30),U(),s&&!N?d.appendChild(aG):a.parentNode.insertBefore(aG,s?N:a),p&&az(p,0,_-p.scrollTop),aH=aG.parentNode,void 0===B||a7||(a1=Math.abs(B-at(a)[L])),W(),V(!0)}if(d.contains(aG))return V(!1)}return!1}function T(b,e){aE(b,Q,aj({evt:c,isOwner:O,axis:l?"vertical":"horizontal",revert:C,dragRect:q,targetRect:h,canSort:P,fromSortable:S,target:a,completed:V,onMove:function(a,b){return bk(aJ,d,aG,q,a,at(a),c,b)},changed:W},e))}function U(){T("dragOverAnimationCapture"),Q.captureAnimationState(),Q!==S&&S.captureAnimationState()}function V(f){return T("dragOverCompleted",{insertion:f}),f&&(O?r._hideClone():r._showClone(Q),Q!==S&&(w(aG,aT?aT.options.ghostClass:r.options.ghostClass,!1),w(aG,e.ghostClass,!0)),aT!==Q&&Q!==b.active?aT=Q:Q===b.active&&aT&&(aT=null),S===Q&&(Q._ignoreWhileAnimating=a),Q.animateAll(function(){T("dragOverAnimationComplete"),Q._ignoreWhileAnimating=null}),Q!==S&&(S.animateAll(),S._ignoreWhileAnimating=null)),(a!==aG||aG.animated)&&(a!==d||a.animated)||(a_=null),e.dragoverBubble||c.rootEl||a===document||(aG.parentNode[aA]._isOutsideThisEl(c.target),f||bi(c)),!e.dragoverBubble&&c.stopPropagation&&c.stopPropagation(),E=!0}function W(){aP=z(aG),aR=z(aG,e.draggable),aF({sortable:Q,name:"change",toEl:d,newIndex:aP,newDraggableIndex:aR,originalEvent:c})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){u(document,"mousemove",this._onTouchMove),u(document,"touchmove",this._onTouchMove),u(document,"pointermove",this._onTouchMove),u(document,"dragover",bi),u(document,"mousemove",bi),u(document,"touchmove",bi)},_offUpEvents:function(){var a=this.el.ownerDocument;u(a,"mouseup",this._onDrop),u(a,"touchend",this._onDrop),u(a,"pointerup",this._onDrop),u(a,"touchcancel",this._onDrop),u(document,"selectstart",this)},_onDrop:function(a){var d=this.el,c=this.options;aP=z(aG),aR=z(aG,c.draggable),aE("drop",this,{evt:a}),aH=aG&&aG.parentNode,aP=z(aG),aR=z(aG,c.draggable),b.eventCanceled||(a3=!1,a7=!1,a6=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),D(this.cloneId),D(this._dragStartId),this.nativeDraggable&&(u(document,"drop",this),u(d,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),al&&x(document.body,"user-select",""),x(aG,"transform",""),a&&(a$&&(a.cancelable&&a.preventDefault(),c.dropBubble||a.stopPropagation()),aI&&aI.parentNode&&aI.parentNode.removeChild(aI),(aJ===aH||aT&&"clone"!==aT.lastPutMode)&&aM&&aM.parentNode&&aM.parentNode.removeChild(aM),aG&&(this.nativeDraggable&&u(aG,"dragend",this),bl(aG),aG.style["will-change"]="",a$&&!a3&&w(aG,aT?aT.options.ghostClass:this.options.ghostClass,!1),w(aG,this.options.chosenClass,!1),aF({sortable:this,name:"unchoose",toEl:aH,newIndex:null,newDraggableIndex:null,originalEvent:a}),aJ!==aH?(aP>=0&&(aF({rootEl:aH,name:"add",toEl:aH,fromEl:aJ,originalEvent:a}),aF({sortable:this,name:"remove",toEl:aH,originalEvent:a}),aF({rootEl:aH,name:"sort",toEl:aH,fromEl:aJ,originalEvent:a}),aF({sortable:this,name:"sort",toEl:aH,originalEvent:a})),aT&&aT.save()):aP!==aO&&aP>=0&&(aF({sortable:this,name:"update",toEl:aH,originalEvent:a}),aF({sortable:this,name:"sort",toEl:aH,originalEvent:a})),b.active&&(null!=aP&& -1!==aP||(aP=aO,aR=aQ),aF({sortable:this,name:"end",toEl:aH,originalEvent:a}),this.save())))),this._nulling()},_nulling:function(){aE("nulling",this),aJ=aG=aH=aI=aK=aM=aL=aN=aU=aV=a$=aP=aR=aO=aQ=a_=a0=aT=aS=b.dragged=b.ghost=b.clone=b.active=null,ba.forEach(function(a){a.checked=!0}),ba.length=aW=aX=0},handleEvent:function(a){switch(a.type){case"drop":case"dragend":this._onDrop(a);break;case"dragenter":case"dragover":var b;aG&&(this._onDragOver(a),(b=a).dataTransfer&&(b.dataTransfer.dropEffect="move"),b.cancelable&&b.preventDefault());break;case"selectstart":a.preventDefault()}},toArray:function(){for(var a,c=[],d=this.el.children,b=0,f=d.length,e=this.options;b<f;b++)v(a=d[b],e.draggable,this.el,!1)&&c.push(a.getAttribute(e.dataIdAttr)||bn(a));return c},sort:function(a){var b={},c=this.el;this.toArray().forEach(function(d,e){var a=c.children[e];v(a,this.options.draggable,c,!1)&&(b[d]=a)},this),a.forEach(function(a){b[a]&&(c.removeChild(b[a]),c.appendChild(b[a]))})},save:function(){var a=this.options.store;a&&a.set&&a.set(this)},closest:function(a,b){return v(a,b||this.options.draggable,this.el,!1)},option:function(a,b){var c=this.options;if(void 0===b)return c[a];var d=aD.modifyOption(this,a,b);c[a]=void 0!==d?d:b,"group"===a&&bf(c)},destroy:function(){aE("destroy",this);var a=this.el;a[aA]=null,u(a,"mousedown",this._onTapStart),u(a,"touchstart",this._onTapStart),u(a,"pointerdown",this._onTapStart),this.nativeDraggable&&(u(a,"dragover",this),u(a,"dragenter",this)),Array.prototype.forEach.call(a.querySelectorAll("[draggable]"),function(a){a.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),a5.splice(a5.indexOf(this.el),1),this.el=a=null},_hideClone:function(){aN||(aE("hideClone",this),b.eventCanceled||(x(aM,"display","none"),this.options.removeCloneOnHide&&aM.parentNode&&aM.parentNode.removeChild(aM),aN=!0))},_showClone:function(a){"clone"===a.lastPutMode?aN&&(aE("showClone",this),b.eventCanceled||(aJ.contains(aG)&&!this.options.group.revertClone?aJ.insertBefore(aM,aG):aK?aJ.insertBefore(aM,aK):aJ.appendChild(aM),this.options.group.revertClone&&this.animate(aG,aM),x(aM,"display",""),aN=!1)):this._hideClone()}},d&&i(document,"touchmove",function(a){(b.active||a3)&&a.cancelable&&a.preventDefault()}),b.utils={on:i,off:u,css:x,find:$,is:function(a,b){return!!v(a,b,a,!1)},extend:function(b,a){if(b&&a)for(var c in a)a.hasOwnProperty(c)&&(b[c]=a[c]);return b},throttle:j,closest:v,toggleClass:w,clone:A,index:z,nextTick:C,cancelNextTick:D,detectDirection:B,getChild:y},b.get=function(a){return a[aA]},b.mount=function(){for(var d=arguments.length,a=new Array(d),c=0;c<d;c++)a[c]=arguments[c];a[0].constructor===Array&&(a=a[0]),a.forEach(function(a){if(!a.prototype||!a.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat(({}).toString.call(a));a.utils&&(b.utils=aj({},b.utils,a.utils)),aD.mount(a)})},b.create=function(a,c){return new b(a,c)},b.version="1.10.2";var bo,bp,bq,br,bs,bt,bu=[],bv=!1;function bw(){bu.forEach(function(a){clearInterval(a.pid)}),bu=[]}function bx(){clearInterval(bt)}var by=j(function(e,f,k,E){if(f.scroll){var z,s=(e.touches?e.touches[0]:e).clientX,t=(e.touches?e.touches[0]:e).clientY,h=f.scrollSensitivity,F=f.scrollSpeed,u=as(),v=!1;bp!==k&&(bp=k,bw(),bo=f.scroll,z=f.scrollFn,!0===bo&&(bo=ax(k,!0)));var a=0,i=bo;do{var d=i,g=at(d),A=g.top,B=g.bottom,C=g.left,D=g.right,l=g.width,m=g.height,n=void 0,o=void 0,_=d.scrollWidth,p=d.scrollHeight,c=x(d),w=d.scrollLeft,y=d.scrollTop;d===u?(n=l<_&&("auto"===c.overflowX||"scroll"===c.overflowX||"visible"===c.overflowX),o=m<p&&("auto"===c.overflowY||"scroll"===c.overflowY||"visible"===c.overflowY)):(n=l<_&&("auto"===c.overflowX||"scroll"===c.overflowX),o=m<p&&("auto"===c.overflowY||"scroll"===c.overflowY));var q=n&&(Math.abs(D-s)<=h&&w+l<_)-(Math.abs(C-s)<=h&&!!w),r=o&&(Math.abs(B-t)<=h&&y+m<p)-(Math.abs(A-t)<=h&&!!y);if(!bu[a])for(var j=0;j<=a;j++)bu[j]||(bu[j]={});bu[a].vx==q&&bu[a].vy==r&&bu[a].el===d||(bu[a].el=d,bu[a].vx=q,bu[a].vy=r,clearInterval(bu[a].pid),0==q&&0==r||(v=!0,bu[a].pid=setInterval((function(){E&&0===this.layer&&b.active._onTouchMove(bs);var a=bu[this.layer].vy?bu[this.layer].vy*F:0,c=bu[this.layer].vx?bu[this.layer].vx*F:0;"function"==typeof z&&"continue"!==z.call(b.dragged.parentNode[aA],c,a,e,bs,bu[this.layer].el)||az(bu[this.layer].el,c,a)}).bind({layer:a}),24))),a++}while(f.bubbleScroll&&i!==u&&(i=ax(i,!1)))bv=v}},30),k=function(a){var b=a.originalEvent,c=a.putSortable,f=a.dragEl,g=a.activeSortable,h=a.dispatchSortableEvent,i=a.hideGhostForTarget,j=a.unhideGhostForTarget;if(b){var d=c||g;i();var e=b.changedTouches&&b.changedTouches.length?b.changedTouches[0]:b,k=document.elementFromPoint(e.clientX,e.clientY);j(),d&&!d.el.contains(k)&&(h("spill"),this.onSpill({dragEl:f,putSortable:c}))}};function e(){}function f(){}e.prototype={startIndex:null,dragStart:function(a){var b=a.oldDraggableIndex;this.startIndex=b},onSpill:function(b){var c=b.dragEl,a=b.putSortable;this.sortable.captureAnimationState(),a&&a.captureAnimationState();var d=y(this.sortable.el,this.startIndex,this.options);d?this.sortable.el.insertBefore(c,d):this.sortable.el.appendChild(c),this.sortable.animateAll(),a&&a.animateAll()},drop:k},g(e,{pluginName:"revertOnSpill"}),f.prototype={onSpill:function(b){var a=b.dragEl,c=b.putSortable||this.sortable;c.captureAnimationState(),a.parentNode&&a.parentNode.removeChild(a),c.animateAll()},drop:k},g(f,{pluginName:"removeOnSpill"}),b.mount(new function(){function a(){for(var a in this.defaults={scroll:!0,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===a.charAt(0)&&"function"==typeof this[a]&&(this[a]=this[a].bind(this))}return a.prototype={dragStarted:function(a){var b=a.originalEvent;this.sortable.nativeDraggable?i(document,"dragover",this._handleAutoScroll):this.options.supportPointer?i(document,"pointermove",this._handleFallbackAutoScroll):b.touches?i(document,"touchmove",this._handleFallbackAutoScroll):i(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(b){var a=b.originalEvent;this.options.dragOverBubble||a.rootEl||this._handleAutoScroll(a)},drop:function(){this.sortable.nativeDraggable?u(document,"dragover",this._handleAutoScroll):(u(document,"pointermove",this._handleFallbackAutoScroll),u(document,"touchmove",this._handleFallbackAutoScroll),u(document,"mousemove",this._handleFallbackAutoScroll)),bx(),bw(),clearTimeout(ap),ap=void 0},nulling:function(){bs=bp=bo=bv=bt=bq=br=null,bu.length=0},_handleFallbackAutoScroll:function(a){this._handleAutoScroll(a,!0)},_handleAutoScroll:function(a,e){var f=this,c=(a.touches?a.touches[0]:a).clientX,d=(a.touches?a.touches[0]:a).clientY,b=document.elementFromPoint(c,d);if(bs=a,e||s||r||al){by(a,this.options,b,e);var g=ax(b,!0);!bv||bt&&c===bq&&d===br||(bt&&bx(),bt=setInterval(function(){var b=ax(document.elementFromPoint(c,d),!0);b!==g&&(g=b,bw()),by(a,f.options,b,e)},10),bq=c,br=d)}else{if(!this.options.bubbleScroll||ax(b,!0)===as())return void bw();by(a,this.options,ax(b,!1),!1)}}},g(a,{pluginName:"scroll",initializeByDefault:!0})}),b.mount(f,e);var bz=b;window.onerror=function(a,b,c,d){bG(a,b,c,d)},jQuery(document).on("click",".dslca-show-js-error-hook",function(a){a.preventDefault();var b=document.getElementById("dslca-js-errors-report");jQuery("body").hasClass("dslca-saving-in-progress")||L({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">'+b.value+"</span>"})}),jQuery(document).ready(function(c){var b,a;jQuery("#page-builder-frame")[0].contentWindow.onerror=function(a,b,c,d){bG(a,b,c,d)},b=document.getElementById("dslca-js-errors-report"),null!==(a=localStorage.getItem("js_errors_report"))&&(a.includes("lc-extensions")||a.includes("page-builder"))&&(b.value=a,localStorage.removeItem("js_errors_report"),document.querySelector(".dslca-show-js-error-hook").setAttribute("style","visibility:visible")),jQuery("body").addClass("dslca-enabled dslca-drag-not-in-progress"),jQuery(".dslca-invisible-overlay").hide(),jQuery(".dslca-section").eq(0).show()}),jQuery(document).on("click",".dslca-currently-editing",function(){var a=!1,b=!1;jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).length?a=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument):jQuery(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).length&&(a=jQuery(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument)),a&&((b=a.offset().top-100)<0&&(b=0),jQuery("html, body",LiveComposer.Builder.PreviewAreaDocument).animate({scrollTop:b},300,function(){a.removeAttr("style")}))}),jQuery(window).keypress(function(a){if((a.metaKey||a.ctrlKey)&&83==a.keyCode)return dslc_ajax_save_composer(),a.preventDefault(),!1}),jQuery(document).on("click",".dslca-hide-composer-hook",function(a){a.preventDefault(),window.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"),LiveComposer.Builder.Flags.uiHidden=!0,jQuery(".dslca-container").css({bottom:-1*jQuery(".dslca-container").outerHeight()}),jQuery(".dslca-header").hide()}),jQuery(document).on("click",".dslca-show-composer-hook",function(a){a.preventDefault(),window.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"),LiveComposer.Builder.Flags.uiHidden=!1,jQuery(".dslca-container").css({bottom:0}),jQuery(".dslca-header").show()}),jQuery(document).on("click",".dslca-go-to-modules-hook",function(a){a.preventDefault(),bB(".dslca-modules")}),jQuery(document).on("click",".dslca-go-to-section-hook",function(a){if(a.preventDefault(),!jQuery(this).hasClass("dslca-active")){var b=jQuery(this).data("section");bB(b),(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(a){a.preventDefault();var b=jQuery(this).attr("href");!jQuery("body").hasClass("dslca-saving-in-progress")&&jQuery(".dslca-save-composer").is(":visible")?L({title:DSLCString.str_exit_title,content:DSLCString.str_exit_descr,confirm:function(){window.location=b}}):window.location=b}),jQuery(document).on("click",".dslca-submit",function(){jQuery(this).closest("form").submit()}),jQuery(document).on("click",".dslca-section-title",function(b){var d,c,a;b.stopPropagation(),jQuery(".dslca-section-title-filter",this).length&&(window.dslcDebug&&console.log("dslc_generate_filters"),c=[],a='<a html="#" data-origin="">Show All</a>',jQuery(".dslca-section:visible .dslca-origin").each(function(){d=jQuery(this),-1==jQuery.inArray(d.data("origin"),c)&&(c.push(d.data("origin")),a+='<a href="#" data-origin="'+d.data("origin")+'">'+d.data("origin")+"</a>")}),jQuery(".dslca-section:visible .dslca-section-title-filter-options").html(a).css("background",jQuery(".dslca-section:visible").data("bg")),jQuery(".dslca-section-title-filter-options").slideToggle(300))}),jQuery(document).on("click",".dslca-section-title-filter-options a",function(d){d.preventDefault(),d.stopPropagation();var b,a,e=jQuery(this).data("origin"),c=jQuery(this).closest(".dslca-section");c.hasClass("dslca-templates-load"),jQuery(".dslca-section-title-filter-curr",c).text(jQuery(this).text()),jQuery(".dslca-section-scroller-inner").css({left:0}),b=e,a=c,window.dslcDebug&&console.log("dslc_filter_origin"),jQuery(".dslca-origin",a).attr("data-display-module","false"),jQuery('.dslca-origin[data-origin="'+b+'"]',a).attr("data-display-module","true"),""==b&&(jQuery(".dslca-origin",a).attr("data-display-module","true"),jQuery(".dslca-origin.dslca-exclude",a).attr("data-display-module","false")),jQuery(".dslca-section-title-filter-options").slideToggle(300)}),window.dslc_show_publish_button=function(){window.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")};let bA=()=>{window.dslcDebug&&console.log("hidePublishButton"),jQuery(".dslca-save-composer").hide(),jQuery(".dslca-save-draft-composer").hide()},bB=a=>{window.dslcDebug&&console.log("showSection"),jQuery(a).data("title"),jQuery(a).data("bg"),jQuery(".dslca-container").css({bottom:-500}),jQuery(".dslca-section").hide(),jQuery(a).show(),".dslca-module-edit"==a?jQuery(".dslca-currently-editing").show().find("strong").text(jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).attr("title")+" element"):".dslca-modules-section-edit"==a?jQuery(".dslca-currently-editing").show().css("background-color","#e5855f").find("strong").text("Row"):jQuery(".dslca-currently-editing").hide().find("strong").text(""),aa(),jQuery(".dslca-container").css({bottom:0}),jQuery(a).find("input.dslca-module-edit-field-colorpicker").each(function(a){jQuery(this).css("background",jQuery(this).val())})};function bC(d){if(void 0===d&&(d=!1),d){var e=jQuery(".dslca-module-edit-option-"+d),c=e.find(".dslca-module-edit-field"),i=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument)[0].id,j="";"tablet_responsive"===e.data("tab")?j="body.dslc-res-tablet ":"phone_responsive"===e.data("tab")&&(j="body.dslc-res-phone ");var b=c.data("affect-on-change-el");if(void 0!==b){var f,k,l=b.split(",");b="";for(var a=0;a<l.length;a++)a>0&&(b+=", "),b+=j+"#"+i+" "+l[a];var h,g=c.data("affect-on-change-rule").replace(/ /g,"").split(","),m=c.data("ext");if(e.toggleClass("dslca-option-off"),e.hasClass("dslca-option-off")){for(h=bE(d),c.data("val-bckp",h),a=0;a<g.length;a++)jQuery(b,LiveComposer.Builder.PreviewAreaDocument).css(g[a],""),bD(b,g[a],i);c.val("").trigger("change")}else for(c.val(c.data("val-bckp")).trigger("change"),h=(f=h=bE(d),k=m||"",""===f||null===f|| -1==f.indexOf(k)&&(f+=k),f),a=0;a<g.length;a++){var n=b+"{"+g[a]+": "+h+"}";LiveComposer.Builder.Helpers.processInlineStyleTag({context:e,rule:g[a],elems:b.replace(new RegExp("#"+i,"gi"),"").trim(),styleContent:n})}}}}function bD(d,e,f){var b,a=document.getElementById("page-builder-frame").contentWindow.document.getElementById("css-for-"+f);if(d=d.replace(/\s\s+/g," "),a){(a=a.sheet).rules?b="rules":a.cssRules&&(b="cssRules");for(var c=0;c<a[b].length;c++)if(a[b][c].selectorText==d&&a[b][c].style[e]){a[b][c].style[e]="";break}}}function bE(a){return jQuery(".dslca-module-edit-option-"+a).find(".dslca-module-edit-field").val()}jQuery(document).ready(function(a){jQuery(document).on("click",".dslca-module-edit-option .dslc-control-toggle",function(a){a.preventDefault(),bC(jQuery(a.target).closest(".dslca-module-edit-option").find(".dslca-module-edit-field").data("id"))}),jQuery(document).on("mousedown",".dslca-module-edit-option",function(a){var b=jQuery(".dslc-control-toggle");b.is(a.target)||0!==b.has(a.target).length||jQuery(a.target).closest(".dslca-module-edit-option").hasClass("dslca-option-off")&&bC(jQuery(a.target).closest(".dslca-module-edit-option").find(".dslca-module-edit-field").data("id"))})});let bF=()=>{jQuery([document,LiveComposer.Builder.PreviewAreaWindow.document]).unbind("keydown").bind("keydown",function(a){var b,c,e,d;window.dslc_modal_keypress_events(a),function(b){var c=!1;if(8===b.keyCode){var a=b.srcElement||b.target;c=!("INPUT"===a.tagName.toUpperCase()&&("TEXT"===a.type.toUpperCase()||"PASSWORD"===a.type.toUpperCase()||"NUMBER"===a.type.toUpperCase()||"FILE"===a.type.toUpperCase())||"TEXTAREA"===a.tagName.toUpperCase()||jQuery(a).hasClass("dslca-editable-content")||jQuery(a).hasClass("dslc-tabs-nav-hook-title")||jQuery(a).hasClass("dslc-accordion-title"))||a.readOnly||a.disabled}c&&b.preventDefault()}(a),(116==(b=a).which||82===b.which&&b.metaKey)&&(null===jQuery(".dslca-save-composer-hook").offsetParent&&null===jQuery(".dslca-module-edit-save").offsetParent||(b.preventDefault(),L({title:DSLCString.str_refresh_title,content:DSLCString.str_refresh_descr,confirm:function(){window.location.reload()}}))),83==(c=a).which&&(c.metaKey||c.ctrlKey)&&"block"==jQuery(".dslca-save-composer-hook").css("display")&&(dslc_save_composer(),c.preventDefault()),((e=a).metaKey||e.ctrlKey)&&(LiveComposer.Builder.UI.cmdMode=!0,LiveComposer.Builder.PreviewAreaWindow.document.querySelector("body").classList.add("key-press-cmd")),d=a,LiveComposer.Builder.UI.cmdMode&&(d.metaKey||d.ctrlKey||(LiveComposer.Builder.UI.cmdMode=!1,LiveComposer.Builder.PreviewAreaWindow.document.querySelector("body").classList.remove("key-press-cmd")))}),jQuery([document,LiveComposer.Builder.PreviewAreaWindow.document]).unbind("keyup").bind("keyup",function(a){"Meta"===a.key&&(LiveComposer.Builder.UI.cmdMode=!1,LiveComposer.Builder.PreviewAreaWindow.document.querySelector("body").classList.remove("key-press-cmd"))})};function bG(d,b,e,f){var c="JavaScript error detected in a third-party plugin";null!=b.match("wp-content/plugins/live-composer-page-builder/js")&&(c="Live Composer returned JS error");var a="";a+='<br /><strong style="color:#E55F5F;">'+c+"</strong><br />",a+=d+'<br /> File "'+b+'", line '+e+", char "+f+"<br />","undefined"!=typeof Storage&&localStorage.setItem("js_errors_report",a)}jQuery(document).on("editorFrameLoaded",function(){jQuery;var a=jQuery("div[data-hf]",LiveComposer.Builder.PreviewAreaDocument),b="";a.each(function(g,a){var e=jQuery(a).data("editing-link"),f=(jQuery(a).data("editing-type"),jQuery(a).data("editing-label")),c=jQuery(a).data("editing-sublabel");b+='<div class="dslc-hf-block-overlay"><a target="_blank" href="'+e+'" class="dslc-hf-block-overlay-button dslca-link">'+f+"</a>",void 0!==c&&(b+=' <span class="dslc-hf-block-overlay-text">'+c+"</span>"),b+="</div>";var d=document.createElement("div");d.innerHTML=b,a.append(d)})});var bH={update:null,begin:null,loopBegin:null,changeBegin:null,change:null,changeComplete:null,loopComplete:null,complete:null,loop:1,direction:"normal",autoplay:!0,timelineOffset:0},bI={duration:1e3,delay:0,endDelay:0,easing:"easeOutElastic(1, .5)",round:0},bJ=["translateX","translateY","translateZ","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","scaleZ","skew","skewX","skewY","perspective"],bK={CSS:{},springs:{}};function bL(a,b,c){return Math.min(Math.max(a,b),c)}function bM(a,b){return a.indexOf(b)> -1}function bN(a,b){return a.apply(null,b)}var bO={arr:function(a){return Array.isArray(a)},obj:function(a){return bM(Object.prototype.toString.call(a),"Object")},pth:function(a){return bO.obj(a)&&a.hasOwnProperty("totalLength")},svg:function(a){return a instanceof SVGElement},inp:function(a){return a instanceof HTMLInputElement},dom:function(a){return a.nodeType||bO.svg(a)},str:function(a){return"string"==typeof a},fnc:function(a){return"function"==typeof a},und:function(a){return void 0===a},hex:function(a){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(a)},rgb:function(a){return/^rgb/.test(a)},hsl:function(a){return/^hsl/.test(a)},col:function(a){return bO.hex(a)||bO.rgb(a)||bO.hsl(a)},key:function(a){return!bH.hasOwnProperty(a)&&!bI.hasOwnProperty(a)&&"targets"!==a&&"keyframes"!==a}};function bP(b){var a=/\(([^)]+)\)/.exec(b);return a?a[1].split(",").map(function(a){return parseFloat(a)}):[]}function bQ(g,h){var a=bP(g),d=bL(bO.und(a[0])?1:a[0],.1,100),e=bL(bO.und(a[1])?100:a[1],.1,100),i=bL(bO.und(a[2])?10:a[2],.1,100),f=bL(bO.und(a[3])?0:a[3],.1,100),c=Math.sqrt(e/d),b=i/(2*Math.sqrt(e*d)),j=b<1?c*Math.sqrt(1-b*b):0,l=b<1?(b*c-f)/j:-f+c;function k(d){var a=h?h*d/1e3:d;return a=b<1?Math.exp(-a*b*c)*(1*Math.cos(j*a)+l*Math.sin(j*a)):(1+l*a)*Math.exp(-a*c),0===d||1===d?d:1-a}return h?k:function(){var a=bK.springs[g];if(a)return a;for(var b=0,c=0;;)if(1===k(b+=1/6)){if(++c>=16)break}else c=0;var d=b*(1/6)*1e3;return bK.springs[g]=d,d}}function bR(a){return void 0===a&&(a=10),function(b){return Math.round(b*a)*(1/a)}}var l,m,bS=function(){function a(a,b){return 1-3*b+3*a}function b(a,b){return 3*b-6*a}function c(c,d,e){var f;return((a(d,e)*c+b(d,e))*c+3*d)*c}function d(c,d,e){var f;return 3*a(d,e)*c*c+2*b(d,e)*c+3*d}return function(a,f,b,g){if(0<=a&&a<=1&&0<=b&&b<=1){var h=new Float32Array(11);if(a!==f||b!==g)for(var e=0;e<11;++e)h[e]=c(.1*e,a,b);return function(d){return a===f&&b===g?d:0===d||1===d?d:c(i(d),f,g)}}function i(f){for(var g=0,e=1;10!==e&&h[e]<=f;++e)g+=.1;--e;var i=g+.1*((f-h[e])/(h[e+1]-h[e])),j=d(i,a,b);return j>=.001?function(h,a,b,e){for(var f=0;f<4;++f){var g=d(a,b,e);if(0===g)break;a-=(c(a,b,e)-h)/g}return a}(f,i,a,b):0===j?i:function(f,b,d,g,h){var e,a,i=0;do(e=c(a=b+(d-b)/2,g,h)-f)>0?d=a:b=a;while(Math.abs(e)>1e-7&& ++i<10)return a}(f,g,g+.1,a,b)}}}(),E=(l={linear:function(){return function(a){return a}}},m={Sine:function(){return function(a){return 1-Math.cos(a*Math.PI/2)}},Circ:function(){return function(a){return 1-Math.sqrt(1-a*a)}},Back:function(){return function(a){return a*a*(3*a-2)}},Bounce:function(){return function(a){for(var b,c=4;a<((b=Math.pow(2,--c))-1)/11;);return 1/Math.pow(4,3-c)-7.5625*Math.pow((3*b-2)/22-a,2)}},Elastic:function(a,b){void 0===a&&(a=1),void 0===b&&(b=.5);var c=bL(a,1,10),d=bL(b,.1,2);return function(a){return 0===a||1===a?a:-c*Math.pow(2,10*(a-1))*Math.sin((a-1-d/(2*Math.PI)*Math.asin(1/c))*(2*Math.PI)/d)}}},["Quad","Cubic","Quart","Quint","Expo"].forEach(function(a,b){m[a]=function(){return function(a){return Math.pow(a,b+2)}}}),Object.keys(m).forEach(function(a){var b=m[a];l["easeIn"+a]=b,l["easeOut"+a]=function(a,c){return function(d){return 1-b(a,c)(1-d)}},l["easeInOut"+a]=function(a,c){return function(d){return d<.5?b(a,c)(2*d)/2:1-b(a,c)(-2*d+2)/2}}}),l);function F(a,d){if(bO.fnc(a))return a;var c=a.split("(")[0],e=E[c],b=bP(a);switch(c){case"spring":return bQ(a,d);case"cubicBezier":return bN(bS,b);case"steps":return bN(bR,b);default:return bN(e,b)}}function bT(a){try{return document.querySelectorAll(a)}catch(b){return}}function bU(b,e){for(var f=b.length,g=arguments.length>=2?arguments[1]:void 0,c=[],a=0;a<f;a++)if(a in b){var d=b[a];e.call(g,d,a,b)&&c.push(d)}return c}function bV(a){return a.reduce(function(b,a){return b.concat(bO.arr(a)?bV(a):a)},[])}function bW(a){return bO.arr(a)?a:(bO.str(a)&&(a=bT(a)||a),a instanceof NodeList||a instanceof HTMLCollection?[].slice.call(a):[a])}function bX(a,b){return a.some(function(a){return a===b})}function bY(a){var b={};for(var c in a)b[c]=a[c];return b}function bZ(b,c){var d=bY(b);for(var a in b)d[a]=c.hasOwnProperty(a)?c[a]:b[a];return d}function b$(b,c){var d=bY(b);for(var a in c)d[a]=bO.und(b[a])?c[a]:b[a];return d}function b_(b){var a=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(b);if(a)return a[1]}function b0(a,b){return bO.fnc(a)?a(b.target,b.id,b.total):a}function b1(a,b){return a.getAttribute(b)}function G(c,a,d){if(bX([d,"deg","rad","turn"],b_(a)))return a;var e=bK.CSS[a+d];if(!bO.und(e))return e;var b=document.createElement(c.tagName),f=c.parentNode&&c.parentNode!==document?c.parentNode:document.body;f.appendChild(b),b.style.position="absolute",b.style.width=100+d;var h=100/b.offsetWidth;f.removeChild(b);var g=h*parseFloat(a);return bK.CSS[a+d]=g,g}function b2(a,b,c){if(b in a.style){var e=b.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),d=a.style[b]||getComputedStyle(a).getPropertyValue(e)||"0";return c?G(a,d,c):d}}function b3(a,b){return bO.dom(a)&&!bO.inp(a)&&(b1(a,b)||bO.svg(a)&&a[b])?"attribute":bO.dom(a)&&bX(bJ,b)?"transform":bO.dom(a)&&"transform"!==b&&b2(a,b)?"css":null!=a[b]?"object":void 0}function b4(b){if(bO.dom(b)){for(var a,d=b.style.transform||"",e=/(\w+)\(([^)]*)\)/g,c=new Map;a=e.exec(d);)c.set(a[1],a[2]);return c}}function H(b,c,i,k){switch(b3(b,c)){case"transform":var g,a,d,h,e,j,f;return g=b,a=c,d=k,h=i,j=bM(a,"scale")?1:0+(bM(e=a,"translate")||"perspective"===e?"px":bM(e,"rotate")||bM(e,"skew")?"deg":void 0),f=b4(g).get(a)||j,d&&(d.transforms.list.set(a,f),d.transforms.last=a),h?G(g,f,h):f;case"css":return b2(b,c,i);case"attribute":return b1(b,c);default:return b[c]||0}}function b5(a,f){var b=/^(\*=|\+=|-=)/.exec(a);if(!b)return a;var c=b_(a)||0,d=parseFloat(f),e=parseFloat(a.replace(b[0],""));switch(b[0][0]){case"+":return d+e+c;case"-":return d-e+c;case"*":return d*e+c}}function b6(a,d){if(bO.col(a)){var b,e,f,j,g,c;return b=a,bO.rgb(b)?(f=/rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(e=b))?"rgba("+f[1]+",1)":e:bO.hex(b)?(g=b.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(d,a,b,c){return a+a+b+b+c+c}),"rgba("+parseInt((c=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(g))[1],16)+","+parseInt(c[2],16)+","+parseInt(c[3],16)+",1)"):bO.hsl(b)?function(k){var e,f,g,b=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(k)||/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(k),h=parseInt(b[1],10)/360,c=parseInt(b[2],10)/100,a=parseInt(b[3],10)/100,l=b[4]||1;function i(b,c,a){return a<0&&(a+=1),a>1&&(a-=1),a<1/6?b+6*(c-b)*a:a<.5?c:a<2/3?b+(c-b)*(2/3-a)*6:b}if(0==c)e=f=g=a;else{var d=a<.5?a*(1+c):a+c-a*c,j=2*a-d;e=i(j,d,h+1/3),f=i(j,d,h),g=i(j,d,h-1/3)}return"rgba("+255*e+","+255*f+","+255*g+","+l+")"}(b):void 0}if(/\s/g.test(a))return a;var h=b_(a),i=h?a.substr(0,a.length-h.length):a;return d?i+d:i}function b7(a,b){return Math.sqrt(Math.pow(b.x-a.x,2)+Math.pow(b.y-a.y,2))}function b8(f){for(var b,c=f.points,d=0,a=0;a<c.numberOfItems;a++){var e=c.getItem(a);a>0&&(d+=b7(b,e)),b=e}return d}function b9(a){var f,d,b,e,c;if(a.getTotalLength)return a.getTotalLength();switch(a.tagName.toLowerCase()){case"circle":return 2*Math.PI*b1(a,"r");case"rect":return 2*b1(d=a,"width")+2*b1(d,"height");case"line":return b7({x:b1(b=a,"x1"),y:b1(b,"y1")},{x:b1(b,"x2"),y:b1(b,"y2")});case"polyline":return b8(a);case"polygon":return c=(e=a).points,b8(e)+b7(c.getItem(c.numberOfItems-1),c.getItem(0))}}function ca(h,i){var c=i||{},b=c.el||function(b){for(var a=b.parentNode;bO.svg(a)&&bO.svg(a.parentNode);)a=a.parentNode;return a}(h),d=b.getBoundingClientRect(),e=b1(b,"viewBox"),f=d.width,g=d.height,a=c.viewBox||(e?e.split(" "):[0,0,f,g]);return{el:b,viewBox:a,x:a[0]/1,y:a[1]/1,w:f/a[2],h:g/a[3]}}function cb(b,g){function c(a){return void 0===a&&(a=0),b.el.getPointAtLength(g+a>=1?g+a:0)}var a=ca(b.el,b.svg),d=c(),e=c(-1),f=c(1);switch(b.property){case"x":return(d.x-a.x)*a.w;case"y":return(d.y-a.y)*a.h;case"angle":return 180*Math.atan2(f.y-e.y,f.x-e.x)/Math.PI}}function cc(a,d){var c=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/g,b=b6(bO.pth(a)?a.totalLength:a,d)+"";return{original:b,numbers:b.match(c)?b.match(c).map(Number):[0],strings:bO.str(a)||d?b.split(c):[]}}function cd(a){return bU(a?bV(bO.arr(a)?a.map(bW):bW(a)):[],function(a,b,c){return c.indexOf(a)===b})}function ce(a){var b=cd(a);return b.map(function(a,c){return{target:a,id:c,total:b.length,transforms:{list:b4(a)}}})}function cf(a,c){var b=bY(c);if(/^spring/.test(b.easing)&&(b.duration=bQ(b.easing)),bO.arr(a)){var d=a.length;2!==d||bO.obj(a[0])?bO.fnc(c.duration)||(b.duration=c.duration/d):a={value:a}}var e=bO.arr(a)?a:[a];return e.map(function(b,d){var a=bO.obj(b)&&!bO.pth(b)?b:{value:b};return bO.und(a.delay)&&(a.delay=d?0:c.delay),bO.und(a.endDelay)&&(a.endDelay=d===e.length-1?c.endDelay:0),a}).map(function(a){return b$(a,b)})}var cg={css:function(a,b,c){return a.style[b]=c},attribute:function(a,b,c){return a.setAttribute(b,c)},object:function(a,b,c){return a[b]=c},transform:function(c,b,d,a,e){if(a.list.set(b,d),b===a.last||e){var f="";a.list.forEach(function(a,b){f+=b+"("+a+") "}),c.style.transform=f}}};function I(a,b){ce(a).forEach(function(a){for(var c in b){var e=b0(b[c],a),d=a.target,f=b_(e),g=H(d,c,f,a),h=b5(b6(e,f||b_(g)),g);cg[b3(d,c)](d,c,h,a.transforms,!0)}})}function ch(b,c){var d=b.length,e=function(a){return a.timelineOffset?a.timelineOffset:0},a={};return a.duration=d?Math.max.apply(Math,b.map(function(a){return e(a)+a.duration})):c.duration,a.delay=d?Math.min.apply(Math,b.map(function(a){return e(a)+a.delay})):c.delay,a.endDelay=d?a.duration-Math.max.apply(Math,b.map(function(a){return e(a)+a.duration-a.endDelay})):c.endDelay,a}var ci,cj=0,J=[],ck=[],cl=function(){function a(){ci=requestAnimationFrame(b)}function b(f){var b=J.length;if(b){for(var c=0;c<b;){var d=J[c];if(d.paused){var e=J.indexOf(d);e> -1&&(J.splice(e,1),b=J.length)}else d.tick(f);c++}a()}else ci=cancelAnimationFrame(ci)}return a}();function a(e){void 0===e&&(e={});var o,p=0,q=0,r=0,s=0,t=null;function m(b){var a=window.Promise&&new Promise(function(a){return t=a});return b.finished=a,a}var c,i,n,j,f,k,g,h,d,l,b=(j=bZ(bH,c=e),f=bZ(bI,c),k=function(e,a){var c=[],d=a.keyframes;for(var b in d&&(a=b$(function(b){for(var c=bU(bV(b.map(function(a){return Object.keys(a)})),function(a){return bO.key(a)}).reduce(function(a,b){return 0>a.indexOf(b)&&a.push(b),a},[]),d={},e=function(a){var e=c[a];d[e]=b.map(function(b){var c={};for(var a in b)bO.key(a)?a==e&&(c.value=b[a]):c[a]=b[a];return c})},a=0;a<c.length;a++)e(a);return d}(d),a)),a)bO.key(b)&&c.push({name:b,tweens:cf(a[b],e)});return c}(f,c),g=ce(c.targets),h=(i=g,n=k,bU(bV(i.map(function(a){return n.map(function(b){return function(b,c){var d=b3(b.target,c.name);if(d){var e,g,h,a=(e=c,g=b,e.tweens.map(function(l){var a=function(c,e){var a={};for(var d in c){var b=b0(c[d],e);bO.arr(b)&&1===(b=b.map(function(a){return b0(a,e)})).length&&(b=b[0]),a[d]=b}return a.duration=parseFloat(a.duration),a.delay=parseFloat(a.delay),a}(l,g),b=a.value,c=bO.arr(b)?b[1]:b,f=b_(c),i=H(g.target,e.name,f,g),j=h?h.to.original:i,d=bO.arr(b)?b[0]:j,m=b_(d)||b_(i),k=f||m;return bO.und(c)&&(c=j),a.from=cc(d,k),a.to=cc(b5(c,d),k),a.start=h?h.end:0,a.end=a.start+a.delay+a.duration+a.endDelay,a.easing=F(a.easing,a.duration),a.isPath=bO.pth(b),a.isColor=bO.col(a.from.original),a.isColor&&(a.round=1),h=a,a})),f=a[a.length-1];return{type:d,property:c.name,animatable:b,tweens:a,duration:f.end,delay:a[0].delay,endDelay:f.endDelay}}}(a,b)})})),function(a){return!bO.und(a)})),d=ch(h,f),l=cj,cj++,b$(j,{id:l,children:[],animatables:g,animations:h,duration:d.duration,delay:d.delay,endDelay:d.endDelay}));function u(){var a=b.direction;"alternate"!==a&&(b.direction="normal"!==a?"normal":"reverse"),b.reversed=!b.reversed,o.forEach(function(a){return a.reversed=b.reversed})}function v(a){return b.reversed?b.duration-a:a}function w(){p=0,q=v(b.currentTime)*(1/a.speed)}function x(b,a){a&&a.seek(b-a.timelineOffset)}function y(v){for(var i=0,n=b.animations,w=n.length;i<w;){var c=n[i],o=c.animatable,j=c.tweens,p=j.length-1,a=j[p];p&&(a=bU(j,function(a){return v<a.end})[0]||a);for(var q=bL(v-a.start-a.delay,0,a.duration)/a.duration,r=isNaN(q)?1:a.easing(q),g=a.to.strings,k=a.round,l=[],x=a.to.numbers.length,d=void 0,e=0;e<x;e++){var h=void 0,s=a.to.numbers[e],t=a.from.numbers[e]||0;h=a.isPath?cb(a.value,r*s):t+r*(s-t),k&&(a.isColor&&e>2||(h=Math.round(h*k)/k)),l.push(h)}var u=g.length;if(u){d=g[0];for(var f=0;f<u;f++){g[f];var _=g[f+1],m=l[f];isNaN(m)||(d+=_?m+_:m+" ")}}else d=l[0];cg[c.type](o.target,c.property,d,o.transforms),c.currentValue=d,i++}}function z(a){b[a]&&!b.passThrough&&b[a](b)}function A(d){var c=b.duration,e=b.delay,f=c-b.endDelay,a=v(d);b.progress=bL(a/c*100,0,100),b.reversePlayback=a<b.currentTime,o&&function(c){if(b.reversePlayback)for(var d=s;d--;)x(c,o[d]);else for(var a=0;a<s;a++)x(c,o[a])}(a),!b.began&&b.currentTime>0&&(b.began=!0,z("begin")),!b.loopBegan&&b.currentTime>0&&(b.loopBegan=!0,z("loopBegin")),a<=e&&0!==b.currentTime&&y(0),(a>=f&&b.currentTime!==c||!c)&&y(c),a>e&&a<f?(b.changeBegan||(b.changeBegan=!0,b.changeCompleted=!1,z("changeBegin")),z("change"),y(a)):b.changeBegan&&(b.changeCompleted=!0,b.changeBegan=!1,z("changeComplete")),b.currentTime=bL(a,0,c),b.began&&z("update"),d>=c&&(q=0,b.remaining&& !0!==b.remaining&&b.remaining--,b.remaining?(p=r,z("loopComplete"),b.loopBegan=!1,"alternate"===b.direction&&u()):(b.paused=!0,b.completed||(b.completed=!0,z("loopComplete"),z("complete"),!b.passThrough&&"Promise"in window&&(t(),m(b)))))}return m(b),b.reset=function(){var a=b.direction;b.passThrough=!1,b.currentTime=0,b.progress=0,b.paused=!0,b.began=!1,b.loopBegan=!1,b.changeBegan=!1,b.completed=!1,b.changeCompleted=!1,b.reversePlayback=!1,b.reversed="reverse"===a,b.remaining=b.loop,o=b.children;for(var c=s=o.length;c--;)b.children[c].reset();(b.reversed&& !0!==b.loop||"alternate"===a&&1===b.loop)&&b.remaining++,y(b.reversed?b.duration:0)},b.set=function(a,c){return I(a,c),b},b.tick=function(b){r=b,p||(p=r),A((r+(q-p))*a.speed)},b.seek=function(a){A(v(a))},b.pause=function(){b.paused=!0,w()},b.play=function(){b.paused&&(b.completed&&b.reset(),b.paused=!1,J.push(b),w(),ci||cl())},b.reverse=function(){u(),w()},b.restart=function(){b.reset(),b.play()},b.reset(),b.autoplay&&b.play(),b}function cm(c,a){for(var b=a.length;b--;)bX(c,a[b].animatable.target)&&a.splice(b,1)}"undefined"!=typeof document&&document.addEventListener("visibilitychange",function(){document.hidden?(J.forEach(function(a){return a.pause()}),ck=J.slice(0),a.running=J=[]):ck.forEach(function(a){return a.play()})}),a.version="3.1.0",a.speed=1,a.running=J,a.remove=function(i){for(var d=cd(i),e=J.length;e--;){var b=J[e],f=b.animations,a=b.children;cm(d,f);for(var c=a.length;c--;){var g=a[c],h=g.animations;cm(d,h),h.length||g.children.length||a.splice(c,1)}f.length||a.length||b.pause()}},a.get=H,a.set=I,a.convertPx=G,a.path=function(a,b){var c=bO.str(a)?bT(a)[0]:a,d=b||100;return function(a){return{property:a,el:c,svg:ca(c),totalLength:b9(c)*(d/100)}}},a.setDashoffset=function(a){var b=b9(a);return a.setAttribute("stroke-dasharray",b),b},a.stagger=function(b,a){void 0===a&&(a={});var f=a.direction||"normal",g=a.easing?F(a.easing):null,h=a.grid,i=a.axis,d=a.from||0,j="first"===d,k="center"===d,l="last"===d,c=bO.arr(b),e=c?parseFloat(b[0]):parseFloat(b),m=c?parseFloat(b[1]):0,n=b_(c?b[1]:b)||0,o=a.start||0+(c?e:0),p=[],q=0;return function(w,t,b){if(j&&(d=0),k&&(d=(b-1)/2),l&&(d=b-1),!p.length){for(var a=0;a<b;a++){if(h){var u=k?(h[0]-1)/2:d%h[0],v=k?(h[1]-1)/2:Math.floor(d/h[0]),r=u-a%h[0],s=v-Math.floor(a/h[0]),_=Math.sqrt(r*r+s*s);"x"===i&&(_=-r),"y"===i&&(_=-s),p.push(_)}else p.push(Math.abs(d-a));q=Math.max.apply(Math,p)}g&&(p=p.map(function(a){return g(a/q)*q})),"reverse"===f&&(p=p.map(function(a){return i?a<0?-1*a:-a:Math.abs(q-a)}))}return o+(c?(m-e)/q:e)*(Math.round(100*p[t])/100)+n}},a.timeline=function(b){void 0===b&&(b={});var c=a(b);return c.duration=0,c.add=function(m,i){var j=J.indexOf(c),e=c.children;function f(a){a.passThrough=!0}j> -1&&J.splice(j,1);for(var g=0;g<e.length;g++)f(e[g]);var d=b$(m,bZ(bI,b));d.targets=d.targets||b.targets;var k=c.duration;d.autoplay=!1,d.direction=c.direction,d.timelineOffset=bO.und(i)?k:b5(i,k),f(c),c.seek(d.timelineOffset);var l=a(d);f(l),e.push(l);var h=ch(e,b);return c.delay=h.delay,c.endDelay=h.endDelay,c.duration=h.duration,c.seek(0),c.reset(),c.autoplay&&c.play(),c},c},a.easing=F,a.penner=E,a.random=function(a,b){return Math.floor(Math.random()*(b-a+1))+a};var cn=a,co=function(){return!LiveComposer.Builder.Flags.panelOpened||(LiveComposer.Builder.UI.shakePanelConfirmButton(),!1)};document.addEventListener("moduleDuplicate",function(b){let a=b.detail;if(!co())return!1;a.classList.contains("dslca-action-disabled")||cr(a.closest(".dslc-module-front"))}),document.addEventListener("moduleDelete",function(a){let b=a.detail;if(!co())return!1;b.classList.contains("dslca-action-disabled")||L({title:DSLCString.str_del_module_title,content:DSLCString.str_del_module_descr,confirm:function(){var a;a=b.closest(".dslc-module-front"),window.dslcDebug&&console.log("dslc_delete_module"),bB(".dslca-modules"),cn({targets:a,easing:"easeOutExpo",scale:0,opacity:0,duration:350,delay:0,endDelay:0,complete:function(b){a.parentNode.removeChild(a),window.dslc_generate_code(),window.dslc_show_publish_button()}})}})}),document.addEventListener("moduleEdit",function(c){let a=c.detail.closest(".dslc-module-front"),d=a.dataset.module,b=LiveComposer.Builder.PreviewAreaWindow.document.querySelector(".dslca-module-being-edited"),e=jQuery(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).length;if(LiveComposer.Builder.Flags.uiHidden||null!==b&&b.length>0||e>0)return b!=a&&LiveComposer.Builder.UI.shakePanelConfirmButton(),!1;cq(),a.classList.add("dslca-module-being-edited"),window.dslc_module_options_show(d),LiveComposer.Builder.PreviewAreaWindow.document.body.classList.add("module-editing-in-progress")}),document.addEventListener("copyModuleStyles",function(a){let b=a.detail.closest(".dslc-module-front").querySelector(".dslca-module-code").innerText;localStorage.setItem("lcCopyPasteStorage",b)}),document.addEventListener("pasteModuleStyles",function(i){let d=i.detail.closest(".dslc-module-front"),g=jQuery(d),h=localStorage.getItem("lcCopyPasteStorage"),b=!1;if(h)try{b=JSON.parse(h)}catch(j){console.log("Can't parse copy/paste string into JSON:"),console.log(j)}if(b&&b.module_id===d.dataset.module){let k=d.querySelector(".dslca-module-code").innerText,a=!1;try{a=JSON.parse(k)}catch(l){console.log("Can't parse current module code into JSON:"),console.log(l)}if(a){let e=!1;for(let f in b)f.includes("css_")&&(a[f]=b[f],e=!0);for(let c in a)c.includes("css_")&&(a[c]!==b[c]&&(a[c]=""),e=!0);e&&(a.action="dslc-ajax-add-module",a.dslc="active",a.dslc_module_id=a.module_id,a.dslc_module_instance_id=a.module_instance_id,a.dslc_post_id=a.post_id,g.hasClass("dslca-preload-preset")?a.dslc_preload_preset="enabled":a.dslc_preload_preset="disabled",g.removeClass("dslca-preload-preset"),a.dslc_url_vars=LiveComposer.Utils.get_page_params(),jQuery.post(DSLCAjax.ajaxurl,a,function(a){a&&(g.after(a.output).next().addClass("dslca-module-being-edited"),g.remove(),window.dslc_generate_code(),window.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(),jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-module-being-edited"))}))}}}),document.addEventListener("moduleChangeWidth",function(g){let c=g.detail,d=c.closest(".dslc-module-front");if(!c.classList.contains("dslca-action-disabled")){var b,a,e,h=d.dataset.dslcModuleSize,f=c.dataset.size;Number(h)!==Number(f)&&(b=d,a=f,window.dslcDebug&&console.log("dslc_module_width_set"),e="dslc-"+a+"-col",jQuery(b).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(e).data("dslc-module-size",a),b.setAttribute("data-dslc-module-size",a),LiveComposer.Utils.update_module_property_raw(b,"dslc_m_size",a),LiveComposer.Builder.PreviewAreaWindow.dslc_masonry(),window.dslc_generate_code(),window.dslc_show_publish_button())}}),document.addEventListener("wysiwygEdit",function(e){let d=e.detail,c=d.closest(".dslc-module-front"),f=d.dataset.idToEdit,b=c.querySelector('[data-edit-id="'+f+'"]'),a="";if(void 0===(a="TEXTAREA"===b.tagName||"INPUT"===b.tagName?b.value:b.innerHTML)&&(a=""),a.trim().length&&(a=a.replace(/<lctextarea/g,"<textarea").replace(/<\/lctextarea/g,"</textarea")),a.includes("%")&&(a=(a=(a=(a=(a=(a=a.replace(/%\(\(%/g,"[")).replace(/%\)\)%/g,"]")).replace(/%\(%/g,"[")).replace(/%\)%/g,"]")).replace(/%\{%/g,"[")).replace(/%\}%/g,"]")),a=a.trim(),"undefined"!=typeof tinymce){var g=tinymce.get("dslcawpeditor");document.getElementById("wp-dslcawpeditor-wrap").classList.contains("tmce-active")?g.setContent(a,{format:"html"}):document.getElementById("dslcawpeditor").value=a,c.classList.contains("dslca-module-being-edited")||c.querySelector(".dslca-module-edit-hook").click(),jQuery(".dslca-wp-editor").show(),b.classList.add("dslca-wysiwyg-active"),jQuery("#dslcawpeditor_ifr, #dslcawpeditor").css({height:jQuery(".dslca-wp-editor").height()-300})}else console.info("Live Composer: TinyMCE is undefined.")});let cp=()=>{LiveComposer.Builder.PreviewAreaDocument.on("blur",".dslca-editable-content",function(){LiveComposer.Builder.Flags.uiHidden||"simple"!=jQuery(this).data("type")||P(jQuery(this))}).on("paste",".dslca-editable-content:not(.inline-editor)",function(){if(!LiveComposer.Builder.Flags.uiHidden&&"simple"==jQuery(this).data("type")){var a=jQuery(this);setTimeout(function(){"simple"==a.data("type")&&a.html(a.text()),P(a)},100)}}).on("focus",".dslca-editable-content",function(){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(){"simple"==jQuery(this).data("type")&&jQuery(this).closest(".dslc-module-front").addClass("dslca-module-change-made")})};document.addEventListener("contentEditableFocusOut",function(a){window.dslc_show_publish_button()});let cq=()=>{let a=LiveComposer.Builder.PreviewAreaWindow.document.querySelector(".dslca-module-being-edited");null!==a&&a.classList.remove("dslca-module-being-edited")};function cr(b){window.dslcDebug&&console.log("dslc_copy_module"),cq();var a=b.cloneNode(!0);jQuery(a).appendTo(b.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,top:-50}).addClass("dslca-module-being-edited"),cs(a),window.dslc_generate_code(),cn({targets:a,easing:"easeOutExpo",top:0,opacity:1,duration:400,delay:0,endDelay:0,complete:function(b){a.classList.remove("dslca-module-being-edited")}}),window.dslc_show_publish_button()}let cs=a=>{var b=LiveComposer.Utils.get_unique_id(),e=a.getAttribute("id");a.setAttribute("data-module-id",b),a.setAttribute("id","dslc-module-"+b);var c=a.getElementsByTagName("style")[0],d=c.textContent;c.setAttribute("id","#css-for-dslc-module-"+b),d=d.split(e).join("dslc-module-"+b),c.textContent=d,LiveComposer.Utils.update_module_property_raw(a,"module_instance_id",b)};window.dslc_module_options_show=function(c){window.dslcDebug&&console.log("dslc_module_options_show"),void 0===c&&console.warn("No module ID defined in dslc_module_options_show function.");var d=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument),e=jQuery(".dslca-module-options-front textarea",d),g=jQuery(".dslca-header").data("default-section"),b=jQuery(jQuery("#pseudo-panel").html());jQuery("#wpwrap").append(b);var a={action:"dslc-ajax-display-module-options",dslc:"active"};a.dslc_module_id=c,a.dslc_post_id=jQuery(".dslca-container").data("data-post-id"),a.dslc_url_vars=LiveComposer.Utils.get_page_params(),e.each(function(){var c=jQuery(this),d=c.data("id"),b=c.val();b.includes("%")&&(b=(b=(b=(b=(b=(b=b.replace(/%\(\(%/g,"[")).replace(/%\)\)%/g,"]")).replace(/%\(%/g,"[")).replace(/%\)%/g,"]")).replace(/%\{%/g,"[")).replace(/%\}%/g,"]")),a[d]=b}),jQuery(".dslca-wp-editor-actions").hide(),jQuery(".dslca-wp-editor-notification").show(),bA();var f=jQuery(".dslca-module-options-front",d).children().clone();LiveComposer.Builder.moduleBackup=f,LiveComposer.Builder.Flags.panelOpened=!0,b.show(),b.addClass("show"),jQuery.post(DSLCAjax.ajaxurl,a,function(c){b.remove(),bB(".dslca-module-edit"),jQuery("body").hasClass("rtl"),jQuery(".dslca-module-edit-options-inner").html(c.output),jQuery(".dslca-module-edit-options-tabs").html(c.output_tabs);var d=[];jQuery(".dslca-module-edit-options-inner .dslca-module-edit-option").each(function(){var a=jQuery(this).data("section");-1==d.indexOf(a)&&d.push(a)});for(var e=d.length,a=0;a<e;a++)jQuery('.dslca-header .dslca-options-filter-hook[data-section="'+d[a]+'"]').show();jQuery('.dslca-module-edit-option[data-section="'+g+'"]').length?(jQuery('.dslca-header .dslca-options-filter-hook[data-section="'+g+'"]').show(),jQuery('.dslca-header .dslca-options-filter-hook[data-section="'+g+'"]').trigger("click")):(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()}).done(function(){window.dslc_module_options_font()})};let ct=c=>{window.dslcDebug&&console.log("moduleOutputAltered"),c=void 0!==c&&c;var b=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument),d=b.data("module"),e=jQuery(".dslca-module-options-front textarea",b),f=b.data("module-id"),a={action:"dslc-ajax-add-module",dslc:"active"};a.dslc_module_id=d,a.dslc_module_instance_id=f,a.dslc_post_id=jQuery(".dslca-container").data("post-id"),b.hasClass("dslca-preload-preset")?a.dslc_preload_preset="enabled":a.dslc_preload_preset="disabled",b.removeClass("dslca-preload-preset"),e.each(function(){var b=jQuery(this),c=b.data("id"),d=b.val();a[c]=d}),a.dslc_url_vars=LiveComposer.Utils.get_page_params(),jQuery.post(DSLCAjax.ajaxurl,a,function(a){var d=LiveComposer.Builder.Helpers.insertModule(a.output,b);d.addClass("dslca-module-being-edited"),a=null,d=null,LiveComposer.Builder.PreviewAreaWindow.dslc_carousel(),LiveComposer.Builder.PreviewAreaWindow.dslc_masonry(),LiveComposer.Builder.PreviewAreaWindow.dslc_tabs(),LiveComposer.Builder.PreviewAreaWindow.dslc_init_accordion();var e=new Event("moduleOutputAltered");LiveComposer.Builder.PreviewAreaWindow.dispatchEvent(e),c&&c(a)})};window.dslc_module_output_reload=function(a,c){window.dslcDebug&&console.log("dslc_module_output_reload"),c=void 0!==c&&c;var d=a.data("module"),e=jQuery(".dslca-module-options-front textarea",a),f=a.data("module-id"),b={action:"dslc-ajax-add-module",dslc:"active"};b.dslc_module_id=d,b.dslc_module_instance_id=f,b.dslc_post_id=jQuery(".dslca-container").data("post-id"),b.dslc_preload_preset="enabled",a.removeClass("dslca-preload-preset"),e.each(function(){var a=jQuery(this),c=a.data("id"),d=a.val();b[c]=d}),a.append('<div class="dslca-module-reloading"><span class="dslca-icon dslc-icon-spin dslc-icon-refresh"></span></div>'),jQuery.post(DSLCAjax.ajaxurl,b,function(b){a.after(b.output).next().addClass("dslca-module-being-edited"),a.remove(),window.dslc_generate_code(),window.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(),c&&c(b),jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-module-being-edited")})};let cu=()=>{LiveComposer.Builder.PreviewAreaDocument.on({mouseenter:function(b){jQuery(".dslca-modules-section-manage",LiveComposer.Builder.PreviewAreaDocument).css("z-index","99998");let a=b.target.closest("[data-module-id]"),c=a.offsetHeight,d=a.offsetWidth;c<60&&d<300?a.classList.add("dslc-small-height-module"):a.classList.remove("dslc-small-height-module")},mouseleave:function(a){jQuery(".dslca-modules-section-manage",LiveComposer.Builder.PreviewAreaDocument).css("z-index","999999")}},".dslca-change-width-module-hook, .dslc-module-front .dslca-module-manage"),cp()},cv=()=>{var b,c,d,a=jQuery(".dslca-modules .dslca-section-scroller-content");0==a.length&&(a=[document.createElement("div")]),bz.create(a[0],{sort:!1,group:{name:"modules",pull:"clone",put:!1},animation:150,handle:".dslca-module",draggable:".dslca-module",chosenClass:"dslca-module-dragging",scroll:!0,scrollSensitivity:150,scrollSpeed:15,setData:function(a,b){a.setData(!1!==LiveComposer.Utils.msieversion()?"Text":"text/html",b.innerHTML)},onStart:function(a){a.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(a){a.oldIndex,a.newIndex;var f,g,e=a.item;if(a.preventDefault(),jQuery(e).closest(".dslca-section-scroller-content").length>0)return!1;jQuery(".dslca-options-hovered",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-options-hovered"),b=jQuery(e.parentNode),c=e.dataset.id,window.dslc_generate_code(),"DSLC_M_A"==c||jQuery("body").hasClass("dslca-module-drop-in-progress")||b.closest("#dslc-header").length||b.closest("#dslc-footer").length||(jQuery("body").addClass("dslca-module-drop-in-progress"),f=c,g=function(a){d=a.output,LiveComposer.Builder.Helpers.insertModule(d,jQuery(".dslca-module",b)),setTimeout(function(){LiveComposer.Builder.PreviewAreaWindow.dslc_masonry(),jQuery("body").removeClass("dslca-module-drop-in-progress")},700),jQuery(".dslca-modules-area-manage",b).css({visibility:"visible"}),LiveComposer.Builder.PreviewAreaWindow.dslc_carousel(),LiveComposer.Builder.PreviewAreaWindow.dslc_tabs(),LiveComposer.Builder.PreviewAreaWindow.dslc_init_accordion(),window.dslc_generate_code(),window.dslc_show_publish_button()},window.dslcDebug&&console.log("moduleOutputDefault"),jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-add-module",dslc:"active",dslc_module_id:f,dslc_post_id:jQuery(".dslca-container").data("post-id"),dslc_url_vars:LiveComposer.Utils.get_page_params(),dslc_new_module:!0},function(a){g(a)}),jQuery(e).find(".dslca-icon").attr("class","").attr("class","dslca-icon dslc-icon-refresh dslc-icon-spin"),jQuery(".dslca-modules-area-manage",b).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(a){a.item,a.from},onUpdate:function(a){a.item,window.dslc_show_publish_button()},onSort:function(a){a.preventDefault()},onRemove:function(a){},onFilter:function(a){a.item},onMove:function(a){a.dragged,a.draggedRect,a.related,a.relatedRect,jQuery(a.to).addClass("dslca-options-hovered")}})},cw=function(a){var b=this;this.section=jQuery(a).closest(".dslc-modules-section"),this.elem=a,this.sortable=bz.create(a,{group:"modules",animation:350,handle:".dslca-move-module-hook",draggable:".dslc-module-front",ghostClass:"dslca-module-ghost",chosenClass:"dslca-module-dragging",scroll:!0,scrollSensitivity:150,scrollSpeed:15,setData:function(a,b){a.setData(!1!==LiveComposer.Utils.msieversion()?"Text":"text/html",b.innerHTML)},onStart:function(a){a.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(a){a.oldIndex,a.newIndex,a.preventDefault(),window.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(a){var c=a.item;a.from,"DSLC_M_A"==jQuery(c).data("id")&&(cx(jQuery(b.section).find(".dslc-modules-section-wrapper .dslc-modules-section-inner")),c.remove())},onUpdate:function(a){a.item,window.dslc_show_publish_button()},onSort:function(a){},onRemove:function(a){},onFilter:function(a){a.item},onMove:function(a){a.dragged,a.draggedRect,a.related,a.relatedRect,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(a).attr("data-jsinit","initialized"),jQuery(document).on("LC.sortableOff",function(){b.sortable&&b.sortable.option&&b.sortable.option("disabled",!0)}),jQuery(document).on("LC.sortableOn",function(){b.sortable&&b.sortable.option&&b.sortable.option("disabled",!1)})};jQuery(document).on("editorFrameLoaded",function(){function a(){var a=jQuery(".dslc-modules-area",LiveComposer.Builder.PreviewAreaDocument);jQuery(a).each(function(b,a){new cw(a)})}var b=function(){return!LiveComposer.Builder.Flags.panelOpened||(LiveComposer.Builder.UI.shakePanelConfirmButton(),!1)};jQuery("#dslc-main .dslc-modules-section",LiveComposer.Builder.PreviewAreaDocument).length||jQuery("#dslca-tut-page",LiveComposer.Builder.PreviewAreaDocument).length?a():cC(a()),LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-copy-modules-area-hook",function(e){if(e.preventDefault(),!b())return!1;if(!jQuery(this).hasClass("dslca-action-disabled")){var a,d,c;a=jQuery(this).closest(".dslc-modules-area"),window.dslcDebug&&console.log("dslc_copy_modules_area"),d=a.closest(".dslc-modules-section").find(".dslc-modules-section-inner"),c=a.clone().appendTo(d),new cw(c[0]),c.find(".dslca-modules-area-manage").trigger("mouseleave"),c.data("size",a.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 a=jQuery(this);cs(a[0]),jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-module-being-edited"),window.dslc_generate_code(),a.animate({opacity:1},300)}),cv(),window.dslc_show_publish_button(),window.dslc_generate_code()}}),LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-delete-modules-area-hook",function(a){if(a.preventDefault(),!b())return!1;if(!jQuery(this).hasClass("dslca-action-disabled")){if(jQuery(this).closest(".dslc-modules-area").hasClass("dslc-modules-area-empty")){var c=jQuery(this).closest(".dslc-modules-area");cy(c)}else{var d=jQuery(this);L({title:DSLCString.str_del_area_title,content:DSLCString.str_del_area_descr,confirm:function(){cy(d.closest(".dslc-modules-area"))}})}}}),LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-change-width-modules-area-options span",function(){if(!b())return!1;if(!jQuery(this).hasClass("dslca-action-disabled")){var a=jQuery(this).closest(".dslc-modules-area"),d=a.data("size"),c=jQuery(this).data("size");Number(d)!==Number(c)&&function(b,a){window.dslcDebug&&console.log("dslc_modules_area_width_set");var c="dslc-"+a+"-col";if(b.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(c).data("size",a),LiveComposer.Builder.PreviewAreaWindow.dslc_masonry(),LiveComposer.Builder.Flags.panelOpened)return!1;window.dslc_generate_code(),window.dslc_show_publish_button()}(a,c)}}),LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-change-vertial-align-module-area-hook span",function(){!function(b,a){if(window.dslcDebug&&console.log("dslc_modules_area_vertical_align_set"),b.removeClass("dslc-valign-top dslc-valign-middle dslc-valign-bottom").addClass("dslc-valign-"+a).data("valign",a),LiveComposer.Builder.PreviewAreaWindow.dslc_masonry(),LiveComposer.Builder.Flags.panelOpened)return!1;window.dslc_generate_code(),window.dslc_show_publish_button()}(jQuery(this).closest(".dslc-modules-area"),jQuery(this).data("valign"))}),LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-add-modules-area-hook",function(a){if(a.preventDefault(),!b())return!1;cx(jQuery(this).closest(".dslc-modules-section").find(".dslc-modules-section-inner"))})});let cx=b=>{window.dslcDebug&&console.log("modulesAreaAdd");let a=window.DSLCSiteData.editorUrl+"css/icons";jQuery('<div class="dslc-modules-area dslc-col dslc-12-col dslc-modules-area-dnd dslc-modules-area-empty dslc-last-col" data-size="12">\n <div class="dslca-modules-area-manage">\n <span class="dslca-modules-area-manage-line"></span>\n <div class="dslca-modules-area-manage-inner">\n <span class="dslca-manage-action dslca-copy-modules-area-hook" title="Duplicate">\n <svg class="feather">\n <use xlink:href="'+a+'/feather-sprite.svg#copy"></use>\n </svg>\n </span>\n <span class="dslca-manage-action dslca-move-modules-area-hook" title="Drag to move">\n <svg class="feather">\n <use xlink:href="'+a+'/feather-sprite.svg#move"></use>\n </svg>\n </span>\n <span class="dslca-manage-action dslca-change-width-modules-area-hook" title="Change width">\n <svg class="feather">\n <use xlink:href="'+a+'/feather-sprite.svg#columns"></use>\n </svg>\n <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>\n <span data-size="3">3/12</span><span data-size="4">4/12</span>\n <span data-size="5">5/12</span><span data-size="6">6/12</span>\n <span data-size="7">7/12</span><span data-size="8">8/12</span>\n <span data-size="9">9/12</span><span data-size="10">10/12</span>\n <span data-size="11">11/12</span><span data-size="12">12/12</span>\n </div>\n </span>\n <span class="dslca-manage-action dslca-change-vertial-align-module-area-hook" title="Change vertical align" >\n <svg class="feather">\n <use xlink:href="'+a+'/feather-sprite.svg#git-commit"/>\n </svg>\n <div class="dslca-change-vertial-align-module-area-options">\n <span>Vertical Align</span>\n <span data-valign="top" class="dslc-popup-option">\u2B06\uFE0F Top</span>\n <span data-valign="middle" class="dslc-popup-option">\u2195\uFE0F Middle</span>\n <span data-valign="bottom" class="dslc-popup-option">\u2B07\uFE0F Bottom</span>\n </div>\n </span>\n <span class="dslca-manage-action dslca-delete-modules-area-hook" title="Delete">\n <svg class="feather">\n <use xlink:href="'+a+'/feather-sprite.svg#x"></use>\n </svg>\n </span>\n </div>\n </div>\n <!-- .dslc-module -->\n </div>').appendTo(b).css({height:0}).animate({height:99},300,function(){jQuery(this).css({height:"auto"})}).addClass("dslca-init-animation");var c=jQuery(".dslc-modules-area-empty",LiveComposer.Builder.PreviewAreaDocument);jQuery(c).each(function(b,a){new cw(a)}),cv(),window.dslc_generate_code(),window.dslc_show_publish_button()};function cy(a){window.dslcDebug&&console.log("dslc_delete_modules_area");var b=a.closest(".dslc-modules-section").find(".dslc-modules-section-inner"),c=!1;a.addClass("dslca-modules-area-being-deleted"),b.find(".dslc-modules-area").length<2&&(c=!0),a.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(),bB(".dslca-modules")),setTimeout(function(){c&&(a.closest(".dslc-modules-section-inner"),2<=a.closest("#dslc-main").find(".dslc-modules-section").length?dslc_row_delete(a.closest(".dslc-modules-section")):(a.remove(),cx(b))),a.remove(),window.dslc_generate_code(),window.dslc_show_publish_button()},900),a.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(){a.remove(),window.dslc_generate_code(),window.dslc_show_publish_button()})}let cz=()=>{jQuery("#dslc-main .dslc-modules-area",LiveComposer.Builder.PreviewAreaDocument).each(function(){"initialized"!==jQuery(this).data("jsinit")&&new cw(this)})},cA=class{constructor(a){this.sortable,this.sortableContainer=jQuery(a).find(".dslc-modules-section-wrapper .dslc-modules-section-inner").eq(0)[0],this.initSortable(a),this.initDropable(a),this.reactToSortableOnOff(),jQuery(a).attr("data-jsinit","initialized")}initDropable(a){jQuery(a).droppable({drop:function(c,a){var b=jQuery(this).find(".dslc-modules-section-inner");"DSLC_M_A"==a.draggable.data("id")&&cx(b)}})}initSortable(a){this.sortable=jQuery(this.sortableContainer).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:!0,scrollSensitivity:100,scrollSpeed:15,sort:function(){jQuery(this).removeClass("ui-state-default")},over:function(c,b){var a=b.placeholder.closest(".dslc-modules-section");jQuery(a).removeClass("dslc-modules-section-empty").addClass("dslc-modules-section-not-empty"),a.siblings(".dslc-modules-section").each(function(){jQuery(".dslc-modules-area:not(.ui-sortable-helper)",jQuery(this)).length?jQuery(this).removeClass("dslc-modules-section-empty").addClass("dslc-modules-section-not-empty"):jQuery(this).removeClass("dslc-modules-section-not-empty").addClass("dslc-modules-section-empty")})},remove:function(){0==jQuery(self.elem).find(".dslc-modules-area").length&&cx(jQuery(this.sortableContainer))},update:function(a,b){window.dslc_generate_code(),window.dslc_show_publish_button()},start:function(b,a){a.placeholder.html('<span class="dslca-placeholder-help-text"><span class="dslca-placeholder-help-text-inner">'+DSLCString.str_area_helper_text+"</span></span>"),jQuery(a.item).hasClass("dslc-12-col")?a.placeholder.width(a.item.width()).css({margin:0}):a.placeholder.width(a.item.width()-10),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(a,b){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(a,b){}})}reactToSortableOnOff(){self=this.sortable,jQuery(document).on("LC.sortableOff",function(){}),jQuery(document).on("LC.sortableOn",function(){})}},cB=()=>{jQuery;var a=function(){return!LiveComposer.Builder.Flags.panelOpened||(LiveComposer.Builder.UI.shakePanelConfirmButton(),!1)};jQuery(".dslc-modules-section",LiveComposer.Builder.PreviewAreaDocument).each(function(){new cA(this)}),LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-delete-modules-section-hook",function(b){if(!a())return!1;b.preventDefault();var c=this;jQuery(this).hasClass("dslca-action-disabled")||L({title:DSLCString.str_del_row_title,content:DSLCString.str_del_row_descr,confirm:function(){cE(jQuery(c).closest(".dslc-modules-section"))}})}),LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-import-modules-section-hook",function(b){if(b.preventDefault(),!a())return!1;jQuery(this).hasClass("dslca-action-disabled")||L({title:DSLCString.str_import_row_title,content:DSLCString.str_import_row_descr+"<br><br><textarea></textarea>",confirm:function(){cH(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(b){if(b.preventDefault(),!a())return!1;jQuery(this).hasClass("dslca-action-disabled")||(jQuery(".dslca-prompt-modal-cancel-hook").hide(),jQuery(".dslca-prompt-modal-confirm-hook").html('<span class="dslc-icon dslc-icon-ok"></span>'+DSLCString.str_ok),L({title:DSLCString.str_export_row_title,content:DSLCString.str_export_row_descr+"<br><br><textarea>["+N(jQuery(this).closest(".dslc-modules-section"))+"]</textarea></span>"}))}),LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-copy-modules-section-hook",function(){if(!a())return!1;jQuery(this).hasClass("dslca-action-disabled")||cG(jQuery(this).closest(".dslc-modules-section"))}),LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-add-modules-section-hook",function(b){if(b.preventDefault(),!a())return!1;var c=jQuery(this);jQuery(this).hasClass("dslca-action-disabled")||(c.find(".dslca-icon").removeClass("dslc-icon-align-justify").addClass("dslc-icon-spinner dslc-icon-spin"),cC(function(){c.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(!a())return!1;var b=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).length,c=jQuery(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).length;if(LiveComposer.Builder.Flags.uiHidden||b>0||c>0)return!1;jQuery(this).hasClass("dslca-action-disabled")||cF(jQuery(this).closest(".dslc-modules-section")),jQuery("body",LiveComposer.Builder.PreviewAreaDocument).addClass("section-editing-in-progress")})},cC=a=>{window.dslcDebug&&console.log("dslc_row_add"),a=void 0!==a&&a;var d=jQuery.Deferred(),c=sessionStorage,b=(jQuery(),c.getItem("cache-dslc-ajax-add-modules-section-v2"));if(null!==b&&DSLCMainOptions.section_padding_vertical!==jQuery(b).find('input[data-id="padding"]').val()&&(c.removeItem("cache-dslc-ajax-add-modules-section-v2"),b=null),null!==b)return cD(b),a&&a(),d;jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-add-modules-section",dslc:"active"},function(b){return c.setItem("cache-dslc-ajax-add-modules-section-v2",b.output),cD(b.output),a&&a(),d})};function cD(b){var a=jQuery(b);return a.appendTo(LiveComposer.Builder.PreviewAreaDocument.find("#dslc-main")),cv(),window.dslc_generate_code(),window.dslc_show_publish_button(),new cA(a),new cw(a.find(".dslc-modules-area").eq(0)[0]),a.find(".dslc-modules-area").addClass("dslc-modules-area-empty dslc-last-col"),a}function cE(a){window.dslcDebug&&console.log("dslc_row_delete"),a.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(),bB(".dslca-modules")),a.trigger("mouseleave").remove(),window.dslc_generate_code(),window.dslc_show_publish_button()}function cF(a){window.dslcDebug&&console.log("dslc_row_edit"),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"),a.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")&&(""!==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()),"border-top"==jQuery(this).data("id"))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",!0),jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check-empty").addClass("dslc-icon-check")):(jQuery(this).prop("checked",!1),jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check").addClass("dslc-icon-check-empty"));else if("border-right"==jQuery(this).data("id"))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",!0),jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check-empty").addClass("dslc-icon-check")):(jQuery(this).prop("checked",!1),jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check").addClass("dslc-icon-check-empty"));else if("border-bottom"==jQuery(this).data("id"))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",!0),jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check-empty").addClass("dslc-icon-check")):(jQuery(this).prop("checked",!1),jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check").addClass("dslc-icon-check-empty"));else if("border-left"==jQuery(this).data("id"))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",!0),jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check-empty").addClass("dslc-icon-check")):(jQuery(this).prop("checked",!1),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"))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",!0),jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check-empty").addClass("dslc-icon-check")):(jQuery(this).prop("checked",!1),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).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("%)%","]")),jQuery(this).hasClass("dslca-modules-section-edit-field-colorpicker")){var a=jQuery(this);jQuery(this).closest(".dslca-modules-section-edit-option").find(".sp-preview-inner").removeClass("sp-clear-display").css({"background-color":a.val()}),jQuery(this).css({"background-color":a.val()})}}),jQuery(".dslca-modules-section-edit-field-upload").each(function(){var a=jQuery(this).closest(".dslca-modules-section-edit-option");jQuery(this).val()&&"disabled"!==jQuery(this).val()?(jQuery(".dslca-modules-section-edit-field-image-add-hook",a).hide(),jQuery(".dslca-modules-section-edit-field-image-remove-hook",a).show()):(jQuery(".dslca-modules-section-edit-field-image-remove-hook",a).hide(),jQuery(".dslca-modules-section-edit-field-image-add-hook",a).show())}),bB(".dslca-modules-section-edit"),LiveComposer.Builder.Flags.panelOpened=!0,bA()}function cG(d){var a,b,c;window.dslcDebug&&console.log("dslc_row_copy"),(a=d.clone().appendTo(jQuery("#dslc-main",LiveComposer.Builder.PreviewAreaDocument)))[0].removeAttribute("data-jsinit"),a.find(".dslc-modules-area").each(function(){var a=jQuery(this).index();jQuery(this).data("size",d.find(".dslc-modules-area:eq( "+a+" )").data("size")),this.removeAttribute("data-jsinit")}),new cA(a),a.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 a=jQuery(this);cs(a[0]),cI(),cz(),window.dslc_generate_code(),cv(),jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-module-being-edited"),a.animate({opacity:1},300),window.dslc_show_publish_button()}),b=a[0],window.dslcDebug&&console.log("dslc_section_new_id"),c=LiveComposer.Utils.get_unique_id(),b.setAttribute("data-section-id",c),LiveComposer.Utils.update_section_property_raw(b,"section_instance_id",c)}function cH(a){window.dslcDebug&&console.log("dslc_row_import"),jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-import-modules-section",dslc:"active",dslc_modules_section_code:a},function(a){R(),jQuery("#dslc-main",LiveComposer.Builder.PreviewAreaDocument).append(a.output),LiveComposer.Builder.PreviewAreaWindow.dslc_bg_video(),LiveComposer.Builder.PreviewAreaWindow.dslc_carousel(),LiveComposer.Builder.PreviewAreaWindow.dslc_masonry(),cI(),cz(),cv(),window.dslc_generate_code(),window.dslc_show_publish_button()})}let cI=()=>{jQuery("#dslc-main .dslc-modules-section",LiveComposer.Builder.PreviewAreaDocument).each(function(){"initialized"!==jQuery(this).data("jsinit")&&new cA(this)})},cJ=()=>{cI(),cB(),jQuery(document).on("click",".dslca-row-edit-save",function(){var a;window.dslcDebug&&console.log("dslc_confirm_row_changes"),a=void 0!==a&&a,jQuery(".dslca-modules-section-being-edited .dslca-modules-section-settings input",LiveComposer.Builder.PreviewAreaDocument).each(function(){jQuery(this).data("def",jQuery(this).val())}),bB(".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"),window.dslc_generate_code(),window.dslc_show_publish_button(),a&&a(),LiveComposer.Builder.Flags.panelOpened=!1,jQuery("body",LiveComposer.Builder.PreviewAreaDocument).removeClass("section-editing-in-progress"),jQuery(".dslca-currently-editing").removeAttr("style"),jQuery(".dslca-row-options-filter-hook.dslca-active").removeClass("dslca-active"),LiveComposer.Builder.PreviewAreaWindow.dslc_responsive_classes(!0)}),jQuery(document).on("click",".dslca-row-edit-cancel",function(){var a;window.dslcDebug&&console.log("dslc_row_cancel_changes"),a=void 0!==a&&a,LiveComposer.Builder.Flags.generate_code_after_row_changed=!1,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=!0,window.dslc_generate_code(),window.dslc_show_publish_button(),bB(".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"),a&&a(),LiveComposer.Builder.Flags.panelOpened=!1,jQuery("body",LiveComposer.Builder.PreviewAreaDocument).removeClass("section-editing-in-progress"),jQuery(".dslca-currently-editing").removeAttr("style"),jQuery(".dslca-row-options-filter-hook.dslca-active").removeClass("dslca-active"),LiveComposer.Builder.PreviewAreaWindow.dslc_responsive_classes(!0)})},cK=()=>{document.querySelectorAll(".dslca-template").forEach(function(a){a.addEventListener("click",a=>{var b;a.preventDefault(),b=a.target.closest("[data-id]").dataset.id,window.dslcDebug&&console.log("dslc_load_template"),jQuery("#wpcontent").prepend('<div class="lc-template-loader"></div>'),jQuery(".lc-template-loader").prepend('<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.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-load-template",dslc:"active",dslc_template_id:b},function(a){jQuery("#dslc-main",LiveComposer.Builder.PreviewAreaDocument).html(a.output),jQuery(".lc-template-loader").remove(),LiveComposer.Builder.PreviewAreaWindow.dslc_carousel(),cI(),cz(),cv(),window.dslc_show_publish_button(),window.dslc_generate_code()})})}),jQuery(".dslca-template-import-form").submit(function(a){a.preventDefault(),window.dslcDebug&&console.log("dslc_import_template"),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(a){jQuery("#dslc-main",LiveComposer.Builder.PreviewAreaDocument).html(a.output),jQuery(".dslca-modal-templates-import .dslca-loading").hide(),jQuery(".dslca-modal-templates-import .dslca-modal-title").css({opacity:1}),Q("",".dslca-modal-templates-import"),LiveComposer.Builder.PreviewAreaWindow.dslc_bg_video(),cv(),window.dslc_show_publish_button(),window.dslc_generate_code()})}),jQuery(".dslca-template-save-form").submit(function(a){a.preventDefault(),window.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(a){Q("",".dslca-modal-templates-save")})}),jQuery(document).on("click",".dslca-delete-template-hook",function(b){var a;b.stopPropagation(),a=jQuery(this).data("id"),window.dslcDebug&&console.log("dslc_delete_template"),jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-delete-template",dslc:"active",dslc_template_id:a},function(b){jQuery('.dslca-template[data-id="'+a+'"]').fadeOut(200,function(){jQuery(this).remove()})})})};jQuery(document).ready(function(b){var a=function(a){var b=jQuery(".dslca-section-scroller",a),c=jQuery(".dslca-section-scroller-inner",a)[0];function d(a){a=a<0?-100:100,a*=.75;var d=b.find(".dslca-section-scroller-content").width(),e=b.width();if(d<=e)return!1;var f=d-e+10;a=(a=(a=parseInt(c.style.left||0)-a)>=0?0:a)<= -f?-f:a,c.style.left=a+"px"}b.on("wheel",function(a){return d(a.originalEvent.deltaY||a.originalEvent.deltaX),!1}),jQuery(".dslca-section-scroller-prev",a).click(function(a){a.preventDefault(),d(-500)}),jQuery(".dslca-section-scroller-next",a).click(function(a){a.preventDefault(),d(500)}),jQuery(window).load(function(){jQuery(window).resize(function(){d(0)})})};a(jQuery(".dslca-section.dslca-modules")),a(jQuery(".dslca-section.dslca-templates-load"))});let cL=()=>{LiveComposer.Builder.Flags.windowScroller=!1,jQuery(LiveComposer.Builder.PreviewAreaDocument).on("dragleave",".lc-scroll-top-area, .lc-scroll-bottom-area",function(a){LiveComposer.Builder.UI.stopScroller()}),jQuery(LiveComposer.Builder.PreviewAreaDocument).on("dragenter dragover",".lc-scroll-bottom-area",function(a){if(!1!==LiveComposer.Builder.Flags.windowScroller)return!1;LiveComposer.Utils.publish("LC.sortableOff",{}),LiveComposer.Builder.Flags.windowScroller=setInterval(function(){LiveComposer.Builder.PreviewAreaWindow.scrollBy(0,5)},6)}),jQuery(LiveComposer.Builder.PreviewAreaDocument).on("dragenter",".lc-scroll-top-area",function(a){if(!1!==LiveComposer.Builder.Flags.windowScroller)return!1;LiveComposer.Utils.publish("LC.sortableOff",{}),LiveComposer.Builder.Flags.windowScroller=setInterval(function(){LiveComposer.Builder.PreviewAreaWindow.scrollBy(0,-5)},6)}),jQuery(LiveComposer.Builder.PreviewAreaDocument).on("dragend mouseup","body",function(a){LiveComposer.Builder.Flags.windowScroller&&LiveComposer.Builder.UI.stopScroller()})};jQuery(document).ready(function(a){cL(),LiveComposer.Builder.UI.stopScroller=function(){LiveComposer.Utils.publish("LC.sortableOn",{}),clearInterval(LiveComposer.Builder.Flags.windowScroller),LiveComposer.Builder.Flags.windowScroller=!1},jQuery("#scroller-stopper").on("dragover",function(){LiveComposer.Builder.UI.stopScroller()})});let cM={addslashes:function(a){return a=(a=(a=(a=a.replace(/\\/g,"\\\\")).replace(/\'/g,"\\'")).replace(/\"/g,'\\"')).replace(/\0/g,"\\0")},basename:function(a){return a.split(/[\\/]/).pop()},msieversion:function(){var a=window.navigator.userAgent,b=a.indexOf("MSIE ");return!!(b>0||navigator.userAgent.match(/Trident.*rv\:11\./))&&parseInt(a.substring(b+5,a.indexOf(".",b)))},checkParams:function(a){if(!Array.isArray(a))throw"Param is not array";var b={integer:function(a){return isNaN(parseInt(a))},float:function(a){return isNaN(parseFloat(a))},string:function(a){return null!=a&&null!=a&&"string"==typeof a},array:function(a){return Array.isArray(a)},object:function(a){return"object"==typeof a}};a.map(function(a){if(!b[a[1]](a[0]))throw"Param "+a[0]+" is not "+a[1]})},utf8_to_b64:function(a){return window.btoa(unescape(encodeURIComponent(a)))},b64_to_utf8:function(a){return decodeURIComponent(escape(window.atob(a)))},get_page_params:function(){return decodeURIComponent(window.location.search.slice(1)).split("&").reduce(function(b,a){return b[(a=a.split("="))[0]]=a[1],b},{})},get_unique_id:function(){return Math.random().toString(32).slice(2)},update_module_property_raw:function(d,e,b){var c=d.getElementsByClassName("dslca-module-code")[0],f=d.querySelector('.dslca-module-option-front[data-id="'+e+'"]'),a=c.value;(a=JSON.parse(a))[e]=b,a=JSON.stringify(a),c.value=a,c.innerText=a,f.value=b,f.innerText=b},update_section_property_raw:function(d,e,b){var c=d.getElementsByClassName("dslca-section-code")[0],f=d.querySelector('.dslca-modules-section-settings input[data-id="'+e+'"]'),a=c.value;(a=JSON.parse(a))[e]=b,a=JSON.stringify(a),c.value=a,c.innerText=a,f.setAttribute("value",b),f.setAttribute("data-def",b)},publish:function(b,a){a=a||{},this.checkParams([[b,"string"],[a,"object"],]),jQuery(document).trigger({type:b,message:{details:a}}),LiveComposer.Builder.PreviewAreaWindow.dslca_publish_event(b,a)}};window.LiveComposer={Builder:{Elements:{},UI:{},Actions:{},Flags:{},PreviewFrame:{},Helpers:{}},Production:{},Utils:{}},LiveComposer.Builder.Flags={windowScroller:!1,panelOpened:!1,uiHidden:!1,modalOpen:!1,generate_code_after_row_changed:!0},LiveComposer.Builder.Actions={postponed_actions_queue:{},add_postponed_action:function(a){void 0!==a&&(isNaN(this.postponed_actions_queue[a])&&(this.postponed_actions_queue[a]=0),this.postponed_actions_queue[a]+=1)},release_postponed_actions:function(){var a=this;jQuery.each(this.postponed_actions_queue,function(b,c){1<c?a.postponed_actions_queue[b]-=1:1==c&&(window[b](),a.postponed_actions_queue[b]-=1)})},optionsChanged:function(){window.dslc_show_publish_button()}},LiveComposer.Builder.Helpers.insertModule=function(d,a){var b=jQuery(d),c=(a=jQuery(a),[]);return b.find("script").each(function(){c.push(this.innerHTML),this.parentNode.removeChild(this)}),a.after(b).remove(),c.forEach(function(c){var a=LiveComposer.Builder.PreviewAreaDocument[0].createElement("script");a.innerHTML=c,a.type="text/javascript",LiveComposer.Builder.PreviewAreaDocument[0].getElementById(b[0].id).appendChild(a)}),c=null,a=null,b},window.previewAreaTinyMCELoaded=function(a){LiveComposer.Builder.PreviewAreaWindow=a,LiveComposer.Builder.PreviewAreaDocument=jQuery(a.document),jQuery("#wpadminbar",LiveComposer.Builder.PreviewAreaDocument).remove(),window.LiveComposer.Builder.PreviewAreaDocument.on("dragstart",".dslca-module, .dslc-module-front, .dslc-modules-area, .dslc-modules-section",function(a){jQuery("[contenteditable]",window.LiveComposer.Builder.PreviewAreaDocument).attr("contenteditable",!1)}),window.LiveComposer.Builder.PreviewAreaDocument.on("dragend mousedown",".dslca-module, .dslc-module-front, .dslc-modules-area, .dslc-modules-section",function(a){jQuery("[contenteditable]",window.LiveComposer.Builder.PreviewAreaDocument).attr("contenteditable",!0)}),cK(),U(),cJ(),new class{constructor(a){this.sortable,this.initSortable(a),this.reactToSortableOnOff()}initSortable(a){this.sortable=bz.create(a,{group:"sections",animation:350,handle:".dslca-move-modules-section-hook",draggable:".dslc-modules-section-dnd",ghostClass:"dslca-sections-ghost",chosenClass:"dslca-sections-dragging",scroll:!0,scrollSensitivity:150,scrollSpeed:10,bubbleScroll:!0,direction:"vertical",setData:function(a,b){a.setData(!1!==LiveComposer.Utils.msieversion()?"Text":"text/html",b.innerHTML)},onStart:function(a){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(a){a.oldIndex,a.newIndex,a.preventDefault(),window.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"),jQuery(".dslca-anim-opacity-drop").removeClass("dslca-anim-opacity-drop")},onAdd:function(a){},onUpdate:function(a){a.item,window.dslc_show_publish_button()},onSort:function(a){jQuery(this).removeClass("ui-state-default")},onRemove:function(a){},onFilter:function(a){a.item},onMove:function(a){a.dragged,a.draggedRect,a.related,a.relatedRect}})}reactToSortableOnOff(){self=this.sortable}}(LiveComposer.Builder.PreviewAreaDocument.find("#dslc-main").eq(0)[0]),jQuery(document).trigger("editorFrameLoaded"),cv(),O(),window.dslc_generate_code(),bF(),cL(),cu(),window.LiveComposer.Utils=cM,document.addEventListener("click",function(a){if(a.target.matches('[data-event="modal-wysiwyg-cancel"]')){let b=new CustomEvent("modalWysiwygCancel",{detail:a.target});document.dispatchEvent(b)}if(a.target.matches('[data-event="modal-wysiwyg-confirm"]')){let c=new CustomEvent("modalWysiwygConfirm",{detail:a.target});document.dispatchEvent(c)}if(a.target.matches('[data-event="module-confirm"]')){let d=new CustomEvent("moduleConfirm",{detail:a.target});document.dispatchEvent(d)}if(a.target.matches('[data-event="module-cancel"]')){let e=new CustomEvent("moduleCancel",{detail:a.target});document.dispatchEvent(e)}},!1),LiveComposer.Builder.PreviewAreaWindow.document.addEventListener("click",function(a){if(a.target.matches(".dslca-link")||a.preventDefault(),a.target.matches('[data-event="module-edit"]')){let b=new CustomEvent("moduleEdit",{detail:a.target});document.dispatchEvent(b)}if(a.target.matches('[data-event="module-duplicate"]')){let c=new CustomEvent("moduleDuplicate",{detail:a.target});document.dispatchEvent(c)}if(a.target.matches('[data-event="module-delete"]')){let d=new CustomEvent("moduleDelete",{detail:a.target});document.dispatchEvent(d)}if(a.target.matches(".dslca-change-width-module-options [data-size]")){let e=new CustomEvent("moduleChangeWidth",{detail:a.target});document.dispatchEvent(e)}if(a.target.matches('[data-event="wysiwyg-edit"]')){let f=new CustomEvent("wysiwygEdit",{detail:a.target});document.dispatchEvent(f)}if(a.target.matches('[data-event="module-style-copy"]')){let g=new CustomEvent("copyModuleStyles",{detail:a.target});document.dispatchEvent(g)}if(a.target.matches('[data-event="module-style-paste"]')){let h=new CustomEvent("pasteModuleStyles",{detail:a.target});document.dispatchEvent(h)}},!1),LiveComposer.Builder.PreviewAreaWindow.document.addEventListener("focusout",function(a){if(a.target.matches('[contenteditable="true"]')){let b=new CustomEvent("contentEditableFocusOut",{detail:a.target});document.dispatchEvent(b)}},!1)},window.onbeforeunload=function(){}}})
|
1 |
+
!function(e){var t={};function o(i){if(t[i])return t[i].exports;var s=t[i]={i:i,l:!1,exports:{}};return e[i].call(s.exports,s,s.exports,o),s.l=!0,s.exports}o.m=e,o.c=t,o.d=function(e,t,i){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t||4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(o.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var s in e)o.d(i,s,function(t){return e[t]}.bind(null,s));return i},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=3)}({3:function(e,t,o){"use strict";o.r(t);let i=function(e){if("object"!=typeof e||!0===LiveComposer.Builder.Flags.modalOpen)return!1;var t='<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">'+e.title+'</span><span class="dslca-prompt-modal-descr">'+e.content+"</span></div>";t+=(e.confirm||e.cancel?'<div class="dslca-prompt-modal-actions"><a href="#" class="dslca-prompt-modal-confirm-hook"><span class="dslc-icon dslc-icon-ok"></span>'+(e.confirm_title?e.confirm_title:"Confirm")+'</a><span class="dslca-prompt-modal-cancel-hook"><span class="dslc-icon dslc-icon-remove"></span>'+(e.cancel_title?e.cancel_title:"Cancel")+"</span></div>":'<div class="dslca-prompt-modal-actions"><a href="#" class="dslca-prompt-modal-confirm-hook"><span class="dslc-icon dslc-icon-ok"></span>'+(e.ok_title?e.ok_title:"OK")+"</a></div>")+"</div>",t=jQuery(t),"function"!=typeof e.confirm&&(e.confirm=function(){}),"function"!=typeof e.cancel&&(e.cancel=function(){}),t.find(".dslca-prompt-modal-confirm-hook").click((function(o){return o.stopPropagation(),t.find(".dslca-prompt-modal-content").animate({top:"55%"},400),t.animate({opacity:0},400,(function(){e.confirm(),LiveComposer.Builder.Flags.modalOpen=!1,jQuery(this).remove()})),!1})),t.find(".dslca-prompt-modal-cancel-hook").click((function(o){return o.stopPropagation(),t.find(".dslca-prompt-modal-content").animate({top:"55%"},400),t.animate({opacity:0},400,(function(){jQuery(this).remove(),LiveComposer.Builder.Flags.modalOpen=!1,e.cancel()})),!1})),t.hide(),jQuery("body").append(t),t.css({opacity:0}).show().animate({opacity:1},400),t.find(".dslca-prompt-modal-content").css({top:"55%"}).animate({top:"50%"},400),LiveComposer.Builder.Flags.modalOpen=!0},s=()=>{window.dslcDebug&&console.log("updatePreset");var e=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument),t=e.find('.dslca-module-option-front[data-id="css_load_preset"]').val(),o=e.find(".dslca-module-code").innerText,i=e.data("module");"none"!==t&&""!==t&&jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-save-preset",dslc_preset_name:t,dslc_preset_code:o,dslc_module_id:i},(function(t){"enabled"==t.preset_setting&&jQuery(".dslc-module-front:not(#"+e.attr("id")+')[data-module="'+e.data("module")+'"][data-dslc-preset="'+e.data("dslc-preset")+'"]',LiveComposer.Builder.PreviewAreaDocument).each((function(){window.dslc_module_output_reload(jQuery(this))}))}))};jQuery(document).ready((function(e){jQuery(document).on("keypress",'.dslca-module-edit-field[name="css_save_preset"]',(function(e){if(13==e.which){var t=jQuery(this).val().toLowerCase().replace(/\s/g,"-");jQuery("body").addClass("dslca-new-preset-added"),jQuery('.dslca-module-edit-field[name="css_load_preset"]').append('<option value="'+t+'">'+t+"</option>").val(t).trigger("change"),jQuery(this).val(""),jQuery(".dslc-delete-preset").removeClass("dslc-delete-preset-hide")}})),jQuery(document).on("change",'.dslca-module-edit-field[name="css_load_preset"]',(function(e){jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).addClass("dslca-preload-preset")})),jQuery(document).on("click",".dslc-delete-preset",(function(e){var t=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument),o=t.find('.dslca-module-option-front[data-id="css_load_preset"]').val(),i=t.data("module");"none"!==o&&""!==o&&jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-delete-preset",dslc_preset_name:o,dslc_module_id:i},(function(e){window.dslc_module_options_show(i)}))}))})),window.dslc_generate_code=function(){window.dslcDebug&&console.log("dslc_generate_code");var e,t,o="";jQuery("#dslc-main .dslc-modules-area",LiveComposer.Builder.PreviewAreaDocument).each((function(){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()):(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(){e=jQuery(this),t=a(e),e.find(".dslca-section-code").val(t),o=o+t+","})),o="["+(o=o.slice(0,-1))+"]",jQuery("#dslca-code").val(o),jQuery("#dslca-export-code").val(o);let i=new CustomEvent("pageCodeUpdated");document.dispatchEvent(i)};let a=e=>{window.dslcDebug&&console.log("generateSectionCode");var t,o,i,s,a="",d=0,n="";return jQuery(".dslc-modules-area",o=e).length?o.removeClass("dslc-modules-section-empty").addClass("dslc-modules-section-not-empty"):o.removeClass("dslc-modules-section-not-empty").addClass("dslc-modules-section-empty"),jQuery(".dslc-modules-area.dslc-last-col, .dslc-modules-area.dslc-first-col",void 0).removeClass("dslc-last-col dslc-first-col"),jQuery(".dslc-module-front.dslc-last-col, .dslc-module-front.dslc-first-col",void 0).removeClass("dslc-last-col dslc-first-col"),d=0,i=o.find(".dslca-section-code").val(),s=JSON.parse(i.replace(/“/g,'"').replace(/”/g,'"').replace(/″/g,'"')),n="",jQuery(".dslca-modules-section-settings input",o).each((function(){var e=jQuery(this),t=e.data("id"),o=e.val();n=n+t+'="'+o+'" ',s[t]=o})),void 0!==s.give_new_id&&delete s.give_new_id,s.content=[],jQuery(".dslc-modules-area",o).each((function(){var e=0,o=jQuery(this),i=parseInt(o.data("size")),n=o.data("valign"),l="no",r="no";d+=i,jQuery(this).removeClass("dslc-first-col"),jQuery(this).removeClass("dslc-last-col"),12==d?(jQuery(this).addClass("dslc-last-col").next(".dslc-modules-area").addClass("dslc-first-col"),d=0,l="yes"):d>12&&(jQuery(this).removeClass("dslc-last-col").addClass("dslc-first-col"),d=i,r="yes"),d==i&&(r="yes",jQuery(this).removeClass("dslc-last-col").addClass("dslc-first-col"));var c='{"element_type":"module_area","last":"'+l+'","first":"'+r+'","size":"'+i+'","valign":"'+n+'"}';void 0!==(c=JSON.parse(c)).give_new_id&&delete c.give_new_id,c.content=[],jQuery(".dslc-module-front",o).each((function(){var o=jQuery(this);t=parseInt(o[0].getAttribute("data-dslc-module-size"));var i="no";jQuery(this).removeClass("dslc-first-col"),jQuery(this).removeClass("dslc-last-col"),12==(e+=t)?(jQuery(this).addClass("dslc-last-col"),jQuery(this).next(".dslc-module-front").addClass("dslc-first-col"),e=0,i="yes"):e>12&&(jQuery(this).removeClass("dslc-last-col").addClass("dslc-first-col"),e=t),e==t&&jQuery(this).removeClass("dslc-last-col").addClass("dslc-first-col");try{a=o[0].querySelector(".dslca-module-code").innerText}catch(e){console.info("No DSLC code found in module: "+o[0].getAttribute("id"))}if(""!==a){var s=JSON.parse(a.replace(/“/g,'"').replace(/”/g,'"').replace(/″/g,'"'));s.last=i,jQuery.each(s,(function(e,t){!1!==t&&""!==t||delete s[e],"content"===e&&(s[e]=t.replace(/“/g,'"').replace(/”/g,'"').replace(/″/g,'"')),"give_new_id"===e&&delete s[e]})),o[0].querySelector(".dslca-module-code").innerText=JSON.stringify(s),c.content.push(s)}a=""})),s.content.push(c)})),JSON.stringify(s)},d=e=>{if(window.dslcDebug&&console.log("editableContentCodeGeneration"),void 0===e)return!1;let t=e.closest(".dslc-module-front")[0],o=e.html().trim().replace(/<textarea/g,"<lctextarea").replace(/<\/textarea/g,"</lctextarea"),i=e.data("id");LiveComposer.Utils.update_module_property_raw(t,i,o)},n=(e,t)=>{"undefined"!=typeof dslcDebug&&dslcDebug&&console.log("hideModal"),(t=jQuery(t)).outerHide("destroy"),t.hide(),jQuery(".dslca-prompt-modal-custom").length>0&&jQuery(".dslca-prompt-modal-custom").fadeOut(),t.removeClass("dslca-modal-open")};jQuery(document).ready((function(e){jQuery(document).on("click",".dslca-open-modal-hook",(function(e){e.preventDefault();var t,o,i,s,a,d=jQuery(this).data("modal");t=jQuery(this),o=d,"undefined"!=typeof dslcDebug&&dslcDebug&&console.log("dslc_show_modal"),jQuery(".dslca-modal:visible").length&&n(0,jQuery(".dslca-modal:visible")),o=jQuery(o),jQuery(".dslca-container").height(),o.outerHide({clbk:function(){n(0,jQuery(".dslca-modal:visible"))}}),i=jQuery(t).position(),s=o.outerWidth()/2-t.outerWidth()/2,a=i.left-s,o.css({left:a}),jQuery(".dslca-prompt-modal-custom").insertAfter(o),jQuery(".dslca-prompt-modal-custom").length>0&&jQuery(".dslca-prompt-modal-custom").fadeIn(),o.addClass("dslca-modal-open").show()})),jQuery(document).on("click",".dslca-close-modal-hook",(function(e){if(e.preventDefault(),!jQuery(this).hasClass("dslca-action-disabled")){var t=jQuery(this).data("modal");n(jQuery(this),t)}}))}));let l=()=>{"undefined"!=typeof dslcDebug&&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)};window.dslc_modal_keypress_events=function(e){13==e.which?jQuery(".dslca-prompt-modal-active").length&&jQuery(".dslca-prompt-modal-confirm-hook").trigger("click"):27==e.which&&jQuery(".dslca-prompt-modal-active").length&&jQuery(".dslca-prompt-modal-cancel-hook").trigger("click")},jQuery(document).ready((function(e){jQuery(document).on("click",".dslca-prompt-modal-cancel-hook",(function(e){e.preventDefault();var t=jQuery(".dslca-prompt-modal").data("id"),o=jQuery(".dslca-prompt-modal").data("target");"edit_in_progress"==t&&dslc_module_options_cancel_changes((function(){o.trigger("click")})),l(),jQuery(".dslca-prompt-modal").data("id","")})),jQuery(document).on("click",".dslca-prompt-modal-confirm-hook",(function(e){e.preventDefault();var t=jQuery(".dslca-prompt-modal").data("id"),o=jQuery(".dslca-prompt-modal").data("target"),i=!0;if("edit_in_progress"==t)dslc_module_options_confirm_changes((function(){o.trigger("click")}));else if("disable_lc"==t)window.location=o;else if("delete_module"===t)dslc_module_delete(o.closest(".dslc-module-front"));else if("delete_modules_area"===t){var s=o.closest(".dslc-modules-area");s.closest(".dslc-modules-section-inner"),dslc_modules_area_delete(s)}else"delete_modules_section"==t?dslc_row_delete(o.closest(".dslc-modules-section")):"export_modules_section"==t||"import_modules_section"==t&&(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(),i=!1);i&&l(),jQuery(".dslca-prompt-modal").data("id","")}))})),jQuery.fn.outerHide=function(e){var t=jQuery,o=this;if("destroy"==(e=e||{}))return jQuery(document).unbind("click.outer_hide"),!1;jQuery(document).bind("click.outer_hide",(function(i){0==jQuery(i.target).closest(o).length&&i.target!=o&&-1==t.inArray(jQuery(i.target)[0],jQuery(e.clickObj))&&"none"!=jQuery(o).css("display")&&(e.clbk?e.clbk():jQuery(o).hide())}))},document.addEventListener("modalWysiwygCancel",(function(e){jQuery(".dslca-wp-editor").hide(),jQuery(".dslca-wysiwyg-active",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-wysiwyg-active")})),document.addEventListener("modalWysiwygConfirm",(function(e){var t=jQuery(".dslca-wysiwyg-active",LiveComposer.Builder.PreviewAreaDocument).closest(".dslc-module-front");if("undefined"!=typeof tinymce){if(jQuery("#wp-dslcawpeditor-wrap").hasClass("tmce-active"))var o=tinymce.get("dslcawpeditor").getContent();else o=jQuery("#dslcawpeditor").val();if(o=o.trim(),jQuery(".dslca-wp-editor").hide(),jQuery(".dslca-wysiwyg-active",LiveComposer.Builder.PreviewAreaDocument).html(o),t.hasClass("dslc-module-handle-like-accordion")){jQuery(".dslca-wysiwyg-active",LiveComposer.Builder.PreviewAreaDocument).siblings(".dslca-editable-content").html(o),jQuery(".dslca-wysiwyg-active",LiveComposer.Builder.PreviewAreaDocument).siblings(".dslca-accordion-plain-content").val(o);var i=t.find(".dslc-accordion");LiveComposer.Builder.PreviewAreaWindow.dslc_accordion_generate_code(i)}else if(t.hasClass("dslc-module-handle-like-tabs")){jQuery(".dslca-wysiwyg-active",LiveComposer.Builder.PreviewAreaDocument).siblings(".dslca-editable-content").html(o),jQuery(".dslca-wysiwyg-active",LiveComposer.Builder.PreviewAreaDocument).siblings(".dslca-tab-plain-content").val(o);var s=t.find(".dslc-tabs");LiveComposer.Builder.PreviewAreaWindow.dslc_tabs_generate_code(s)}else d(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.")}));var r=window.DSLCFonts.regular,c=window.DSLCFonts.google,u=r.concat(c),m=window.DSLCIcons.fontawesome;jQuery(document).ready((function(e){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,t=jQuery(".dslca-module-edit-field-ttip"),o=t.find(".dslca-module-edit-field-ttip-inner"),i=jQuery(this);if(e=i.parent().parent().hasClass("dslca-modules-section-edit-option")?i.closest(".dslca-modules-section-edit-option").find(".dslca-module-edit-field-ttip-content").html():i.closest(".dslca-module-edit-option").find(".dslca-module-edit-field-ttip-content").html(),t.is(":visible"))jQuery(".dslca-module-edit-field-ttip").hide();else{o.html(e);var s=i.offset(),a=t.outerHeight(),d=t.outerWidth(),n=s.left-d/2+6,l="50%";n<0&&(l=d/2+n+"px",n=0),jQuery(".dslca-module-edit-field-ttip").show().css({top:s.top-a-20,left:n}),jQuery("head").append(jQuery("<style>.dslca-module-edit-field-ttip:after, .dslca-module-edit-field-ttip:before { left: "+l+" }</style>"))}})),jQuery(document).on("click",".dslca-module-edit-field-icon-ttip-hook",(function(){var e=jQuery(".dslca-module-edit-field-icon-ttip"),t=jQuery(this);if(e.is(":visible"))jQuery(".dslca-module-edit-field-icon-ttip").hide();else{var o=t.offset(),i=e.outerHeight(),s=e.outerWidth(),a=o.left-s/2+6,d="50%";a<0&&(d=s/2+a+"px",a=0),jQuery(".dslca-module-edit-field-icon-ttip").show().css({top:o.top-i-20,left:a}),jQuery("head").append(jQuery("<style>.dslca-module-edit-field-icon-ttip:after, .dslca-module-edit-field-icon-ttip:before { left: "+d+" }</style>"))}})),window.dslc_module_options_font(),jQuery(document).on("keyup",".dslca-module-edit-field-icon",(function(e){var t,o,i,s;o=(t=jQuery(this)).closest(".dslca-module-edit-option"),38==e.which&&b(t,"previous"),40==e.which&&b(t,"next"),13!=e.which&&38!=e.which&&40!=e.which&&(i=t.val().toLowerCase(),t.val(i),s=jQuery.grep(m,(function(e,t){return 0==e.indexOf(i)}))[0],jQuery(".dslca-module-edit-field-icon-suggest",o).text(s))})),jQuery(document).on("keypress",".dslca-module-edit-field-icon",(function(e){var t;13==e.which&&(e.preventDefault(),t=jQuery(this).closest(".dslca-module-edit-option"),jQuery(this).val(jQuery(".dslca-module-edit-field-icon-suggest",t).text()).trigger("change"),jQuery(".dslca-module-edit-field-icon-suggest",t).text(""))})),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 t=jQuery(this).find(".icon-item_name").text();jQuery("input.icon-modal-active").val(t).change(),n(0,jQuery(".dslca-modal:visible")),jQuery("input.icon-modal-active").removeClass("icon-modal-active")})),jQuery(document).on("click",".dslca-module-edit-option-text-align-hook",(function(){var e=jQuery(this),t=jQuery(this).closest(".dslca-module-edit-option-text-align-wrapper").find(".dslca-module-edit-option-text-align-hook"),o=e.data("val"),i=jQuery(this).closest(".dslca-module-edit-option-text-align-wrapper").siblings("input.dslca-module-edit-field");t.removeClass("dslca-active"),e.addClass("dslca-active"),i.val(o).trigger("change")})),jQuery(document).on("click",".dslca-module-edit-option-checkbox-hook, .dslca-modules-section-edit-option-checkbox-hook",(function(){var e=jQuery(this),t=e.siblings('input[type="checkbox"]');t.prop("checked")?(t.prop("checked",!1),e.find(".dslca-icon").removeClass("dslc-icon-check").addClass("dslc-icon-check-empty")):(t.prop("checked",!0),e.find(".dslca-icon").removeClass("dslc-icon-check-empty").addClass("dslc-icon-check")),t.change()})),window.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"),t=e.find(".dslca-module-edit-field"),o=e.find(".dslca-module-edit-option-box-shadow-hor").val(),i=e.find(".dslca-module-edit-option-box-shadow-ver").val(),s=e.find(".dslca-module-edit-option-box-shadow-blur").val(),a=e.find(".dslca-module-edit-option-box-shadow-spread").val(),d=e.find(".dslca-module-edit-option-box-shadow-color").val(),n=e.find(".dslca-module-edit-option-box-shadow-inset").is(":checked"),l=o+"px "+i+"px "+s+"px "+a+"px "+d+(n=n?" inset":"");t.val(l).trigger("change")})),window.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"),t=e.find(".dslca-module-edit-field"),o=e.find(".dslca-module-edit-option-text-shadow-hor").val()+"px "+e.find(".dslca-module-edit-option-text-shadow-ver").val()+"px "+e.find(".dslca-module-edit-option-text-shadow-blur").val()+"px "+e.find(".dslca-module-edit-option-text-shadow-color").val();t.val(o).trigger("change")})),jQuery(document).on("click",".dslca-module-edit-field-colorpicker, .dslca-modules-section-edit-field-colorpicker, .dslca-module-edit-option-box-shadow-color, .dslca-module-edit-option-text-shadow-color",(function(){!function(e){window.dslcDebug&&console.log("dslc_module_options_color");var t,o,i,s,a,d,n=[],l="dslcColors-"+document.domain;void 0!==localStorage[l]&&(n=JSON.parse(localStorage[l])),1>n.length&&n.push("#78b"),2>n.length&&n.push("#ab0"),3>n.length&&n.push("#de3"),n.push("#fff"),n.push("#000"),n.push("rgba(0,0,0,0)"),jQuery(e).each((function(){var e=jQuery(this).closest(".dslca-color-option"),r=jQuery(this);jQuery(this).val(),r.wpColorPicker({mode:"hsl",palettes:n,change:function(e,n){t=r;var l=r.wpColorPicker("color");s=null==l?"":l,t.val(s).trigger("change"),t.css("background",s),o=t.data("affect-on-change-el"),i=t.data("affect-on-change-rule"),null!=o&&".dslca-modules-section-being-edited"!==o&&jQuery(o,window.LiveComposer.Builder.PreviewAreaDocument.find(".dslca-module-being-edited")).css(i,s),a=jQuery(".dslca-module-being-edited",window.LiveComposer.Builder.PreviewAreaDocument),d=t.data("id"),jQuery('.dslca-module-option-front[data-id="'+d+'"]',a).val(s),a.addClass("dslca-module-change-made")}}),e.find(".wp-picker-holder .iris-picker").append('<button type="button" class="dslca-colorpicker-apply">Apply</button>');var c=e.find(".dslca-colorpicker-apply");r.wpColorPicker("open"),jQuery(c).on("click",(function(){if("#fff"!==s&&"#ffffff"!==s&&"#000"!==s&&"#000000"!==s&&"rgba(0,0,0,0)"!==s)if(void 0===localStorage[l]){var e=[s];localStorage[l]=JSON.stringify(e)}else-1==(e=JSON.parse(localStorage[l])).indexOf(s)&&(e.unshift(s),3<e.length&&e.pop()),localStorage[l]=JSON.stringify(e);r.wpColorPicker("close")})),window.LiveComposer.Builder.Helpers.colorpickers.push(jQuery(this))}))}(this);var e=jQuery(this).closest(".dslca-color-option"),t=jQuery(".dslca-module-edit-options-inner"),o=e.find(".wp-picker-holder"),i=e.offset(),s=i.left+15,a=window.innerWidth;a<s+260&&(s=a-260),o.css("left",s+"px"),jQuery(t).on("scroll",(function(t){var s=(i=e.offset()).left+15,a=window.innerWidth;a<s+260&&(s=a-260),o.css("left",s+"px")}))})),jQuery(".dslca-container").on("mouseenter",".dslca-module-edit-option-slider",(function(){jQuery(this).hasClass("dslca-module-edit-option-select")||j(this)})),jQuery(".dslca-container").on("mouseenter",".dslca-modules-section-edit-option-slider",(function(){j(this)})),jQuery(".dslca-module-edit-form").submit((function(e){e.preventDefault(),Eo()})),jQuery(document).on("click",".dslca-module-edit-options-tab-hook",(function(e){e.preventDefault(),y(jQuery(this))})),jQuery(document).on("click",".dslca-clear-responsive-options",(function(e){e.preventDefault(),g()})),jQuery(document).on("click",".dslca-options-filter-hook",(function(e){e.preventDefault();var t=jQuery(".dslca-options-filter-hook.dslca-active").data("section"),o=jQuery(this).data("section");jQuery(".dslca-options-filter-hook.dslca-active").removeClass("dslca-active"),jQuery(this).addClass("dslca-active"),jQuery(".dslca-container-loader"),document.querySelector(".dslca-container").dataset.currentSection=o,function(e){window.dslcDebug&&console.log("dslc_module_options_section_filter"),jQuery(".dslca-module-edit-option").hide(),jQuery('.dslca-module-edit-option[data-section="'+e+'"]').show(),y()}(o),"responsive"==t&&(jQuery(".dslca-container-loader").show(),window.LiveComposer.Builder.PreviewAreaWindow.dslc_responsive_classes(),Eo((function(){jQuery(".dslca-container-loader").hide()})),jQuery("#page-builder-preview-area").resizable("destroy").attr("style","")),"responsive"==o&&jQuery("#page-builder-preview-area").resizable()})),jQuery(document).on("click",".dslca-module-edit-save",(function(e){e.preventDefault(),function(e){window.dslcDebug&&console.log("dslc_module_options_confirm_changes"),e=void 0!==e&&e,jQuery(".dslca-module-being-edited",window.LiveComposer.Builder.PreviewAreaDocument).hasClass("dslc-module-DSLC_Sliders")?jQuery(".dslca-module-being-edited",window.LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-module-being-edited"):(jQuery("body").addClass("dslca-module-saving-in-progress"),Eo((function(){s(),window.dslc_generate_code(),jQuery(".dslca-module-being-edited",window.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(""),window.LiveComposer.Builder.UI.clearUtils(),e&&e()}))),_t(".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(),window.dslc_show_publish_button()}((function(){window.LiveComposer.Builder.UI.unloadOptionsDeps(),window.LiveComposer.Builder.Flags.panelOpened=!1,jQuery("body",window.LiveComposer.Builder.PreviewAreaDocument).removeClass("module-editing-in-progress")})),jQuery(".dslca-options-filter-hook.dslca-active").removeClass("dslca-active"),Q()})),jQuery(document).on("click",".dslca-module-edit-cancel",(function(e){e.preventDefault(),function(e){window.dslcDebug&&console.log("dslc_module_options_cancel_changes"),e=void 0!==e&&e;var t=jQuery(".dslca-module-being-edited",window.LiveComposer.Builder.PreviewAreaDocument);jQuery(".dslca-module-options-front",t).html("").append(window.LiveComposer.Builder.moduleBackup),Eo((function(){window.dslc_generate_code(),jQuery(".dslca-module-being-edited",window.LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-module-being-edited"),jQuery(".dslca-module-edit-options-inner").html(""),jQuery(".dslca-module-edit-options-tabs").html(""),window.LiveComposer.Builder.UI.clearUtils(),e&&e()})),_t(".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(),window.dslc_show_publish_button(),window.LiveComposer.Builder.UI.clearUtils()}((function(){window.LiveComposer.Builder.UI.unloadOptionsDeps(),window.LiveComposer.Builder.Flags.panelOpened=!1,jQuery("body",window.LiveComposer.Builder.PreviewAreaDocument).removeClass("module-editing-in-progress")})),jQuery(".dslca-options-filter-hook.dslca-active").removeClass("dslca-active"),Q()}))}));let p=()=>{var e=window.LiveComposer.Builder;window.LiveComposer.Builder.Helpers.colorpickers=[],window.LiveComposer.Builder.UI.clearUtils=function(){window.dslcDebug&&console.log("window.LiveComposer.Builder.UI.clearUtils"),window.LiveComposer.Builder.UI.clearColorPickers(),void 0!==window.LiveComposer.Builder.moduleBackup&&window.LiveComposer.Builder.moduleBackup.remove(),jQuery(".temp-styles-for-module",window.LiveComposer.Builder.PreviewAreaDocument).remove(),jQuery(".mce-tinymce",window.LiveComposer.Builder.PreviewAreaDocument).hide()},window.LiveComposer.Builder.UI.clearColorPickers=function(){Array.isArray(e.Helpers.colorpickers)&&(e.Helpers.colorpickers.forEach((function(e){jQuery(e).hasClass("dslca-modules-section-edit-field")||jQuery(e).remove()})),e.Helpers.colorpickers=[]),jQuery("body").off("click.wpcolorpicker")},window.LiveComposer.Builder.Helpers.depsHandlers=[],window.LiveComposer.Builder.UI.loadOptionsDeps=function(){jQuery(".dslca-module-edit-option").each((function(){var e=!0;try{var t=JSON.parse(LiveComposer.Utils.b64_to_utf8(jQuery(this).data("dep")))}catch(t){e=!1}if(e){var o=function(){var e=this,o={};if(("radio"==e.type||"checkbox"==e.type)&&null==t[e.value])return!1;"checkbox"==e.type&&null!=t[e.value]?o[e.value]=t[e.value]:o=t,Object.keys(o).forEach((function(t){o[t].split(",").forEach((function(o){var i=jQuery(".dslca-module-edit-option-"+o.trim()).closest(".dslca-module-edit-option"),s=!0;"radio"!=e.type&&"checkbox"!=e.type||(s=jQuery(e).is(":checked"));var a=jQuery(".dslca-module-edit-options-tab-hook.dslca-active").data("id");e.value==t&&s?(i.not(".dependent")&&i.addClass("dependent"),i.hasClass("dep-hide")&&i.removeClass("dep-hide"),i.addClass("dep-show"),a==i.data("tab")&&i.show()):(i.not(".dependent")&&i.addClass("dependent"),i.hasClass("dep-show")&&i.removeClass("dep-show"),i.addClass("dep-hide"),i.hide())}))}))};jQuery(document).on("change dslc-init-deps",'.dslca-module-edit-option > *[data-id="'+jQuery(this).data("id")+'"]',o),window.LiveComposer.Builder.Helpers.depsHandlers.push(o)}})),jQuery(".dslca-module-edit-option input, .dslca-module-edit-option select").trigger("dslc-init-deps")},window.LiveComposer.Builder.UI.unloadOptionsDeps=function(){window.LiveComposer.Builder.Helpers.depsHandlers.forEach((function(e){jQuery(document).unbind("change",e),jQuery(document).unbind("dslc-init-deps",e)})),window.LiveComposer.Builder.Helpers.depsHandlers=[]},window.LiveComposer.Builder.Helpers.processInlineStyleTag=function(e){if("object"!=typeof e)return!1;var t="",o="";"tablet_responsive"==e.context.closest(".dslca-module-edit-option").data("tab")?(t="@media only screen and (max-width: 1024px) and (min-width: 768px) {",o="}"):"phone_responsive"==e.context.closest(".dslca-module-edit-option").data("tab")&&(t="@media only screen and (max-width: 767px) {",o="}"),e.styleContent=t+e.styleContent+o;var i=t+e.rule+e.elems;if(i=i.replace(/ /gi,""),null==window.LiveComposer.Builder.PreviewAreaDocument[0].getElementById(i)){var s=document.createElement("style");s.innerHTML=e.styleContent,s.id=i,s.className="temp-styles-for-module",window.LiveComposer.Builder.PreviewAreaDocument[0].body.appendChild(s)}else window.LiveComposer.Builder.PreviewAreaDocument[0].getElementById(i).innerHTML=e.styleContent},window.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)},h(),v(),f()},h=()=>{jQuery(document).on("change",".dslca-module-edit-field",(function(){window.dslcDebug&&console.log("on change event for .dslca-module-edit-field");var e="",t="",o=jQuery(this),i=o.data("id"),s=o.closest(".dslca-module-edit-option"),a=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument),d=a.data("module");if(jQuery(".dslca-module-options-front textarea",a),a.addClass("dslca-module-change-made"),(s.hasClass("dslca-module-edit-option-select")||s.hasClass("dslca-module-edit-option-checkbox"))&&w(),"active"==jQuery(this).closest(".dslca-module-edit-option").data("refresh-on-change"))s.find(".dslca-module-edit-option-checkbox-wrapper").length?jQuery('input[type="checkbox"]',s).each((function(){jQuery(this).prop("checked")&&(e=e+jQuery(this).val()+" ")})):o.hasClass("dslca-module-edit-option-radio")?e=jQuery(".dslca-module-edit-field:checked",o).val():(e=o.val(),"orientation"==i&&"horizontal"==e?jQuery(".dslca-module-edit-option-thumb_width .dslca-module-edit-field").val("40").trigger("change"):"orientation"==i&&"vertical"==e&&jQuery(".dslca-module-edit-option-thumb_width .dslca-module-edit-field").val("100").trigger("change")),null!=e&&(e=e.trim().replace(/<textarea/g,"<lctextarea").replace(/<\/textarea/g,"</lctextarea")),null===e&&(e=""),jQuery('.dslca-module-options-front textarea[data-id="'+i+'"]',a).val(e),jQuery(".dslca-container-loader").show(),Eo((function(){jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).addClass("dslca-module-change-made"),"css_load_preset"!=i||jQuery("body").hasClass("dslca-new-preset-added")||window.dslc_module_options_show(d),jQuery(".dslca-container-loader").hide(),jQuery("body").removeClass("dslca-new-preset-added"),LiveComposer.Utils.publish("LC.moduleChange",{moduleId:d,optionID:i,optionVal:o.val()})}));else{if(o.hasClass("dslca-module-edit-field-font")){var n=o.val();n+=":400,100,200,300,500,600,700,800,900";var l=o.data("affect-on-change-el"),r=o.data("affect-on-change-rule"),u=p=o.val(),m=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument);o.val().length&&-1!==c.indexOf(o.val())?document.getElementById("page-builder-frame").contentWindow.WebFont.load({google:{families:[n]},active:function(e,t){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"):jQuery(".dslca-font-loading").removeClass("dslca-font-loading").find(".dslca-icon").removeClass("dslc-icon-spin").addClass("dslc-icon-chevron-left");var i=l.split(","),s="#"+m[0].id+" "+i.join(", #"+m[0].id+" ")+" {"+r+": "+p+"}";LiveComposer.Builder.Helpers.processInlineStyleTag({context:o,rule:r,elems:l,styleContent:s})},inactive:function(e,t){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"):jQuery(".dslca-font-loading").removeClass("dslca-font-loading").find(".dslca-icon").removeClass("dslc-icon-spin").addClass("dslc-icon-chevron-left")}}):setTimeout((function(){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"):jQuery(".dslca-font-loading").removeClass("dslca-font-loading").find(".dslca-icon").removeClass("dslc-icon-spin").addClass("dslc-icon-chevron-left");var e=l.split(","),t="#"+m[0].id+" "+e.join(", #"+m[0].id+" ")+" {"+r+": "+p+"}";LiveComposer.Builder.Helpers.processInlineStyleTag({context:o,rule:r,elems:l,styleContent:t})}),100)}else o.hasClass("dslca-module-edit-field-checkbox")&&jQuery('input[type="checkbox"]',s).each((function(){jQuery(this).prop("checked")?(e+="solid ",t=t+jQuery(this).val()+" "):e+="none "}));if(!o.hasClass("dslca-module-edit-field-font")&&null!=o.data("affect-on-change-el")&&null!=o.data("affect-on-change-rule")){var p,h=o.data("ext")||"";l=o.data("affect-on-change-el"),r=o.data("affect-on-change-rule"),u=p=o.val(),o.hasClass("dslca-module-edit-field-checkbox")&&(p=e,u=t),o.hasClass("dslca-module-edit-field-image")&&(p='url("'+p+'")'),null!==p&&p.length<1&&("background-color"==r||"background"==r)&&(p="transparent"),r.split(",").forEach((function(e){e=e.replace(/\s+/g,"");var t=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument),i=l.split(","),s="#"+t[0].id+" "+i.join(", #"+t[0].id+" ")+" {"+e+": "+p+h+"}";LiveComposer.Builder.Helpers.processInlineStyleTag({context:o,rule:e,elems:l,styleContent:s})}))}var v;v=-1!==i.indexOf("css_")?u:o.val(),jQuery('.dslca-module-option-front[data-id="'+i+'"]',a).val(v),LiveComposer.Utils.publish("LC.moduleChange",{moduleId:a[0].id,optionID:i,optionVal:u||o.val()})}}))},v=()=>{jQuery(document).on("change",".dslca-modules-section-edit-field",(function(){if(t=(e=jQuery(this)).data("id"),i=e.val(),m=i,s=i+e.data("ext"),a=e.data("css-rule"),n=o=jQuery(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument),d=jQuery('.dslca-modules-section-settings input[data-id="'+t+'"]',o),o.addClass("dslca-modules-section-change-made"),e.hasClass("dslca-modules-section-edit-field-upload")&&i&&i.length&&(i=jQuery('.dslca-modules-section-settings input[data-id="dslca-img-url"]',o).val()),"background-image"==a&&(i='url("'+i+'")',LiveComposer.Builder.PreviewAreaWindow.dslc_bg_video()),"bg_image_attachment"==t&&o.removeClass("dslc-init-parallax"),"border-top"==t||"border-right"==t||"border-bottom"==t||"border-left"==t){var e,t,o,i,s,a,d,n,l,r=jQuery('.dslca-modules-section-settings input[data-id="border_style"]').val();d=jQuery('.dslca-modules-section-settings input[data-id="border"]',o),m="",e.closest(".dslca-modules-section-edit-option-checkbox-wrapper").find(".dslca-modules-section-edit-field-checkbox").each((function(){jQuery(this).is(":checked")&&("border-top"==jQuery(this).data("id")?m+="top ":"border-right"==jQuery(this).data("id")?m+="right ":"border-bottom"==jQuery(this).data("id")?m+="bottom ":"border-left"==jQuery(this).data("id")&&(m+="left "))})),e.is(":checked")?"border-top"==e.data("id")?o.css({"border-top-style":r}):"border-right"==e.data("id")?o.css({"border-right-style":r}):"border-bottom"==e.data("id")?o.css({"border-bottom-style":r}):"border-left"==e.data("id")&&o.css({"border-left-style":r}):"border-top"==e.data("id")?o.css({"border-top-style":"hidden"}):"border-right"==e.data("id")?o.css({"border-right-style":"hidden"}):"border-bottom"==e.data("id")?o.css({"border-bottom-style":"hidden"}):"border-left"==e.data("id")&&o.css({"border-left-style":"hidden"})}else if(e.hasClass("dslca-modules-section-edit-field-checkbox")){var c=jQuery(this).closest(".dslca-modules-section-edit-option-checkbox-wrapper").find(".dslca-modules-section-edit-field-checkbox"),u="";c.each((function(){jQuery(this).prop("checked")&&(u+=jQuery(this).data("val")+" ")}));var m=u;"show_on"==e.data("id")&&(-1!==u.indexOf("desktop")?jQuery(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslc-hide-on-desktop"):jQuery(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).addClass("dslc-hide-on-desktop"),-1!==u.indexOf("tablet")?jQuery(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslc-hide-on-tablet"):jQuery(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).addClass("dslc-hide-on-tablet"),-1!==u.indexOf("phone")?jQuery(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslc-hide-on-phone"):jQuery(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).addClass("dslc-hide-on-phone")),"section_divider_bottom_flip"==e.data("id")&&(-1===m.indexOf("horizontally")?jQuery('.dslc-section-divider[data-divider-pos="bottom"]',o).removeClass("dslc-flip-hor"):jQuery('.dslc-section-divider[data-divider-pos="bottom"]',o).addClass("dslc-flip-hor"),-1===m.indexOf("vertically")?jQuery('.dslc-section-divider[data-divider-pos="bottom"]',o).removeClass("dslc-flip-vert"):jQuery('.dslc-section-divider[data-divider-pos="bottom"]',o).addClass("dslc-flip-vert")),"section_divider_top_flip"==e.data("id")&&(-1===m.indexOf("horizontally")?jQuery('.dslc-section-divider[data-divider-pos="top"]',o).removeClass("dslc-flip-hor"):jQuery('.dslc-section-divider[data-divider-pos="top"]',o).addClass("dslc-flip-hor"),-1===m.indexOf("vertically")?jQuery('.dslc-section-divider[data-divider-pos="top"]',o).removeClass("dslc-flip-vert"):jQuery('.dslc-section-divider[data-divider-pos="top"]',o).addClass("dslc-flip-vert"))}else if("bg_image_attachment"==t&&"parallax"==i)o.addClass("dslc-init-parallax"),LiveComposer.Builder.PreviewAreaWindow.dslc_parallax();else if("type"==t)"full"==i?o.addClass("dslc-full"):o.removeClass("dslc-full"),LiveComposer.Builder.PreviewAreaWindow.dslc_masonry();else if("columns_spacing"==t)"nospacing"==i?o.addClass("dslc-no-columns-spacing"):o.removeClass("dslc-no-columns-spacing");else if("custom_class"==t);else if("custom_id"==t);else if("bg_video"==t){if(jQuery(".dslc-bg-video video",o).remove(),i&&i.length){var p=i;p=(p=p.replace(".webm","")).replace(".mp4",""),jQuery(".dslc-bg-video-inner",o).html('<video><source type="video/mp4" src="'+p+'.mp4" /><source type="video/webm" src="'+p+'.webm" /></video>'),LiveComposer.Builder.PreviewAreaWindow.dslc_bg_video()}}else if("section_divider_top_style"==t||"section_divider_bottom_style"==t){let e="top";"section_divider_bottom_style"==t&&(e="bottom");let s=jQuery('.dslc-section-divider[data-divider-pos="'+e+'"] svg',o).attr("style");if(jQuery('.dslc-section-divider[data-divider-pos="'+e+'"]',o).html(""),i&&i.length){let t=jQuery("#dslc-section-dividers",LiveComposer.Builder.PreviewAreaWindow.document).find("svg#"+i).clone();jQuery('.dslc-section-divider[data-divider-pos="'+e+'"]',o).html(t[0]),void 0!==s&&jQuery('.dslc-section-divider[data-divider-pos="'+e+'"] svg',o).attr("style",s)}}else if("bg_image_thumb"==t)if("enabled"==m){if(jQuery("#dslca-post-data-thumb").length){var h="url('"+jQuery("#dslca-post-data-thumb").val()+"')";n.css(a,h)}}else"disabled"==m&&n.css(a,"none");else{e.data("css-element")&&(n=jQuery(e.data("css-element"),o)),a=a.replace(/ /g,"").split(","),l=null!=e.data("ext")?s:i;for(var v=0;v<a.length;v++)n.css(a[v],l)}if(d.val(m),!LiveComposer.Builder.Flags.generate_code_after_row_changed)return!1}))},f=()=>{var e;jQuery(document).on("click",".dslca-module-edit-field-image-add-hook, .dslca-modules-section-edit-field-image-add-hook",(function(){var t=jQuery(this);if(t.hasClass("dslca-module-edit-field-image-add-hook"))var o=t.siblings(".dslca-module-edit-field-image"),i=t.siblings(".dslca-module-edit-field-image-remove-hook");else o=t.siblings(".dslca-modules-section-edit-field-upload"),i=t.siblings(".dslca-modules-section-edit-field-image-remove-hook");(e=wp.media.frames.file_frame=wp.media({title:"Choose Image",button:{text:"Confirm"},multiple:!1})).on("select",(function(){var s=e.state().get("selection").first().toJSON();o.val(s.id);var a=t.parent().attr("data-id");""!=s.alt&&"image"==a&&jQuery('.dslca-module-edit-option-image_alt input[data-id="image_alt"]').val(s.alt),""!=s.title&&"image"==a&&jQuery('.dslca-module-edit-option-image_title input[data-id="image_title"]').val(s.title),jQuery(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).find('.dslca-modules-section-settings input[data-id="dslca-img-url"]').val(s.url),o.trigger("change"),t.hide(),i.show()})),e.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 t=e.siblings(".dslca-module-edit-field-image"),o=e.siblings(".dslca-module-edit-field-image-add-hook");else t=e.siblings(".dslca-modules-section-edit-field-upload"),o=e.siblings(".dslca-modules-section-edit-field-image-add-hook");t.val("").trigger("change"),"image"==e.parent().attr("data-id")&&(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(),o.show()}))};let g=()=>{let e=document.querySelector(".dslca-module-edit-options-tab-hook.dslca-active").dataset.id;("tablet_responsive"===e||"phone_responsive"===e)&&document.querySelectorAll('.dslca-module-edit-option[data-tab="'+e+'"]').forEach((e=>{let t=e.querySelector(".dslca-module-edit-field").dataset.id;"css_res_t"!==t&&"css_res_p"!==t&&jQuery(".dslca-module-edit-option-"+t).find(".dslca-module-edit-field").val("").trigger("change")}))},y=e=>{window.dslcDebug&&console.log("elementOptionsTabs");var t=jQuery(".dslca-options-filter-hook.dslca-active").data("section"),o=(e=void 0!==e?e:jQuery('.dslca-module-edit-options-tab-hook[data-section="'+t+'"]:first')).data("id");if(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="'+t+'"]').show(),o&&(jQuery(".dslca-module-edit-option").hide(),jQuery('.dslca-module-edit-option[data-tab="'+o+'"]').show(),w(),jQuery(".dslca-module-edit-options-tab-hook:visible").length<2?jQuery(".dslca-module-edit-options-tabs").hide():jQuery(".dslca-module-edit-options-tabs").show(),Q(),o==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")),o==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")),o!=DSLCString.str_res_tablet.toLowerCase()+"_responsive"&&o!=DSLCString.str_res_phone.toLowerCase()+"_responsive"||(jQuery(".dslca-container-loader").show(),Eo((function(){jQuery(".dslca-container-loader").hide()})))),jQuery("body").hasClass("rtl")){var i,s=0,a=0;jQuery(".dslca-module-edit-options-wrapper > .dslca-module-edit-option:visible").each((function(e){jQuery(this).hasClass("dslca-module-edit-option-hidden")||jQuery(this).hasClass("dslca-module-control-group")||(s+=parseInt(jQuery(this).outerWidth(),10))})),jQuery(".dslca-module-edit-options-wrapper > .dslca-module-control-group:visible").each((function(e){a+=parseInt(jQuery(this).outerWidth(),10)})),i=parseInt(s)+parseInt(a)+10,jQuery(".dslca-module-edit-options-wrapper").css({width:i+"px"})}};function w(){if(window.dslcDebug&&console.log("dslc_module_options_hideshow_tabs"),"styling"==jQuery(".dslca-options-filter-hook.dslca-active").data("section")){jQuery(".dslca-module-edit");var e=!0,t=!0,o=!0,i=!0,s=!0,a=!0,d=!0,n=!0,l=!0,r=!0,c=!0,u=!0,m=!0,p=!0,h=!0,v=!0,f=!0,g=!0,y=!0,w=!0,b=!0,j=!0,Q=!0,_=!0,C=!0,k=!0,D=!0;jQuery('.dslca-module-edit-field[value="main_heading"]').is(":checked")||(e=!1),jQuery('.dslca-module-edit-field[value="filters"]').is(":checked")||(t=!1),jQuery('.dslca-module-edit-field[value="arrows"]').is(":checked")||(o=!1),jQuery('.dslca-module-edit-field[value="circles"]').is(":checked")||(i=!1),"carousel"!=jQuery('.dslca-module-edit-field[data-id="type"]').val()&&(o=!1,i=!1),"disabled"==jQuery('.dslca-module-edit-field[data-id="pagination_type"]').val()&&(s=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="thumbnail"]').is(":checked")||(a=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="content"]').length&&!jQuery('.dslca-module-edit-field[data-id*="elements"][value="title"]').is(":checked")&&(d=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="excerpt"]').is(":checked")||(n=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="meta"]').is(":checked")||(l=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="button"]').length&&!jQuery('.dslca-module-edit-field[data-id*="elements"][value="button"]').is(":checked")&&(r=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="categories"]').is(":checked")||(c=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="separator"]').is(":checked")||(m=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="count"]').is(":checked")||(u=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="tags"]').is(":checked")||(p=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="social"]').is(":checked")||(h=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="position"]').is(":checked")||(v=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="icon"]').length&&!jQuery('.dslca-module-edit-field[data-id*="elements"][value="icon"]').is(":checked")&&(f=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="content"]').length&&!jQuery('.dslca-module-edit-field[data-id*="elements"][value="content"]').is(":checked")&&(g=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="price"]').is(":checked")||(y=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="price_2"]').is(":checked")||(w=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="addtocart"]').is(":checked")||(b=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="details"]').is(":checked")||(j=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="quote"]').is(":checked")||(Q=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="author_name"]').is(":checked")||(_=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="author_position"]').is(":checked")||(C=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="image"]').is(":checked")||(k=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="logo"]').is(":checked")||(D=!1),e?jQuery('.dslca-module-edit-options-tab-hook[data-id="heading_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="heading_styling"]').hide(),t?jQuery('.dslca-module-edit-options-tab-hook[data-id="filters_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="filters_styling"]').hide(),o?jQuery('.dslca-module-edit-options-tab-hook[data-id="carousel_arrows_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="carousel_arrows_styling"]').hide(),i?jQuery('.dslca-module-edit-options-tab-hook[data-id="carousel_circles_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="carousel_circles_styling"]').hide(),s?jQuery('.dslca-module-edit-options-tab-hook[data-id="pagination_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="pagination_styling"]').hide(),a?jQuery('.dslca-module-edit-options-tab-hook[data-id="thumbnail_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="thumbnail_styling"]').hide(),d?jQuery('.dslca-module-edit-options-tab-hook[data-id="title_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="title_styling"]').hide(),n?jQuery('.dslca-module-edit-options-tab-hook[data-id="excerpt_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="excerpt_styling"]').hide(),l?jQuery('.dslca-module-edit-options-tab-hook[data-id="meta_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="meta_styling"]').hide(),r?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():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(),c?jQuery('.dslca-module-edit-options-tab-hook[data-id="categories_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="categories_styling"]').hide(),m?jQuery('.dslca-module-edit-options-tab-hook[data-id="separator_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="separator_styling"]').hide(),u?jQuery('.dslca-module-edit-options-tab-hook[data-id="count_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="count_styling"]').hide(),p?jQuery('.dslca-module-edit-options-tab-hook[data-id="tags_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="tags_styling"]').hide(),v?jQuery('.dslca-module-edit-options-tab-hook[data-id="position_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="position_styling"]').hide(),h?jQuery('.dslca-module-edit-options-tab-hook[data-id="social_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="social_styling"]').hide(),f?jQuery('.dslca-module-edit-options-tab-hook[data-id="icon_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="icon_styling"]').hide(),g?jQuery('.dslca-module-edit-options-tab-hook[data-id="content_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="content_styling"]').hide(),y?jQuery('.dslca-module-edit-options-tab-hook[data-id="price_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="price_styling"]').hide(),w?jQuery('.dslca-module-edit-options-tab-hook[data-id="price_secondary_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="price_secondary_styling"]').hide(),b||j?jQuery('.dslca-module-edit-options-tab-hook[data-id="other_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="other_styling"]').hide(),Q?jQuery('.dslca-module-edit-options-tab-hook[data-id="quote_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="quote_styling"]').hide(),_?jQuery('.dslca-module-edit-options-tab-hook[data-id="author_name_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="author_name_styling"]').hide(),C?jQuery('.dslca-module-edit-options-tab-hook[data-id="author_position_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="author_position_styling"]').hide(),k?jQuery('.dslca-module-edit-options-tab-hook[data-id="image_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="image_styling"]').hide(),D?jQuery('.dslca-module-edit-options-tab-hook[data-id="logo_styling"]').show():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 L=jQuery('.dslca-module-edit-option[data-id="css_custom"]');"enabled"==L.find("select").val()?(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()):(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(),L.css({visibility:"visible"}))}else jQuery(".dslca-module-edit-options-tabs").show();if("disabled"==jQuery('select.dslca-module-edit-field[data-id="css_res_t"]').val()?(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")):(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")),"disabled"==jQuery('select.dslca-module-edit-field[data-id="css_res_p"]').val()?(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")):(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"),jQuery(".dslca-options-filter-hook").hasClass("dslca-active")){var x=jQuery(".dslca-options-filter-hook.dslca-active").data("section");jQuery('.dslca-module-edit-option[data-section="'+x+'"]').hasClass("dep-show")&&jQuery(".dslca-module-edit-option.dep-show").show(),jQuery('.dslca-module-edit-option[data-section="'+x+'"]').hasClass("dep-hide")&&jQuery(".dslca-module-edit-option.dep-hide").hide()}if(jQuery(".dslca-module-edit-options-tab-hook").hasClass("dslca-active")){var B=jQuery(".dslca-module-edit-options-tab-hook.dslca-active").data("id");jQuery('.dslca-module-edit-option[data-tab="'+B+'"]').hasClass("dependent")?(jQuery(".dslca-module-edit-option.dependent").hide(),jQuery('.dslca-module-edit-option[data-tab="'+B+'"].dep-show').show(),jQuery('.dslca-module-edit-option[data-tab="'+B+'"].dep-hide').hide()):jQuery(".dslca-module-edit-option.dependent").hide()}}function b(e,t){var o=jQuery(e).closest(".dslca-module-edit-option-icon"),i=jQuery(".dslca-module-edit-field-icon",o),s=m.indexOf(i.val());if("previous"==t)var a=s-1;else a=s+1;jQuery(".dslca-module-edit-field-icon-suggest",o).text(""),a<0&&(a=m.length-1),i.val(m[a]).trigger("change")}function j(e){window.dslcDebug&&console.log("dslc_module_options_numeric"),jQuery(e).each((function(){var e=jQuery(this);0===jQuery(".dslca-module-edit-field-slider",e).length&&e.append('<div class="dslca-module-edit-field-slider"></div>');var t;if(t=!e.hasClass("dslca-modules-section-edit-option"))var o=e.find(".dslca-module-edit-field");else o=e.find(".dslca-modules-section-edit-field");o=e.hasClass("dslca-modules-section-edit-option")?e.find(".dslca-modules-section-edit-field"):e.find(".dslca-module-edit-field");var i=e.find(".dslca-module-edit-field-slider"),s=parseFloat(o.val()),a=parseFloat(o.data("max")),d=parseFloat(o.data("min")),n=parseFloat(o.data("increment")),l=!1;if(void 0!==o.data("onlypositive")&&1===o.data("onlypositive")&&(l=!0),s>=a&&(a=2*s),!l&&s<=d&&(d=2*s),i.slider({min:d,max:a,step:n,value:o.val(),slide:function(e,t){o.val(t.value+""),o.trigger("change")},change:function(t,o){(o.value>=a||o.value<=d)&&(i.slider("destroy"),j(e))}}),i.show(),jQuery(e).on("mouseleave",(function(){void 0!==i.slider("instance")&&jQuery(i).slider("destroy"),i.remove()})),!o[0].classList.contains("slider-initiated"))return o[0].classList.add("slider-initiated"),o.on("keyup",(function(e){if(void 0===e)return!1;e.shiftKey&&(38==e.keyCode&&(this.value=(parseInt(this.value)||0)+9,o.trigger("change")),40==e.keyCode&&(this.value=parseInt(this.value)+0-9,o.trigger("change"))),8!=e.keyCode&&45!=e.keyCode||o.trigger("change"),(e.keyCode>=48&&e.keyCode<=57||e.keyCode>=96&&e.keyCode<=105)&&o.trigger("change");var t=e.which?e.which:e.keyCode;return(!(t>=48&&t<=57||t>=96&&t<=105)||8==e.keyCode||39==e.keyCode||37==e.keyCode||46==e.keyCode)&&void 0})),o.on("change",(function(e){l&&this.value<0&&(this.value=0);var o=(t?jQuery(e.target.closest(".dslca-module-edit-option-slider")):jQuery(e.target.closest(".dslca-modules-section-edit-option-slider"))).find(".dslca-module-edit-field-slider");void 0!==o.slider("instance")&&o.slider("value",this.value),t&&jQuery(".dslca-module-being-edited",window.LiveComposer.Builder.PreviewAreaDocument).addClass("dslca-module-change-made")})),!1}))}function Q(){jQuery("html").removeClass("dslc-responsive-preview"),jQuery("body").removeClass("dslc-res-big dslc-res-smaller-monitor dslc-res-phone dslc-res-tablet")}function _(e){return(_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function C(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function k(){return(k=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(e[i]=o[i])}return e}).apply(this,arguments)}function D(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{},i=Object.keys(o);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(o).filter((function(e){return Object.getOwnPropertyDescriptor(o,e).enumerable})))),i.forEach((function(t){C(e,t,o[t])}))}return e}function L(e){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(e)}window.dslc_module_options_font=function(){jQuery(document).off("click",".dslca-module-edit-field-font-next").on("click",".dslca-module-edit-field-font-next",(function(e){if(e.preventDefault(),!jQuery(this).hasClass("dslca-font-loading")&&!jQuery(this).siblings(".dslca-font-loading").length){var t=jQuery(this).closest(".dslca-module-edit-option-font"),o=jQuery(".dslca-module-edit-field-font",t),i=u.indexOf(o.val())+1;jQuery(".dslca-module-edit-field-font-suggest",t).text(""),o.val(u[i]).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).off("click",".dslca-module-edit-field-font-prev").on("click",".dslca-module-edit-field-font-prev",(function(e){if(e.preventDefault(),!jQuery(this).hasClass("dslca-font-loading")&&!jQuery(this).siblings(".dslca-font-loading").length){var t=jQuery(this).closest(".dslca-module-edit-option-font"),o=jQuery(".dslca-module-edit-field-font",t),i=u.indexOf(o.val())-1;jQuery(".dslca-module-edit-field-font-suggest",t).text(""),i<0&&(i=u.length-1),o.val(u[i]).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).off("blur",".dslca-module-edit-field-font").on("blur",".dslca-module-edit-field-font",(function(e){var t=jQuery(this).closest(".dslca-module-edit-option");jQuery(".dslca-module-edit-field-font-suggest",t).hide()})),jQuery(document).off("keyup",".dslca-module-edit-field-font").on("keyup",".dslca-module-edit-field-font",(function(e){var t,o,i,s,a=!1;if(o=(t=jQuery(this)).closest(".dslca-module-edit-option"),38==e.which&&jQuery(".dslca-module-edit-field-font-prev",o).click(),40==e.which&&jQuery(".dslca-module-edit-field-font-next",o).click(),13!=e.which&&38!=e.which&&40!=e.which){i=t.val();var d=new RegExp("^"+i,"i"),n=u.length,l=0;do{d.test(u[l])&&!a&&(a=u[l]),l++}while(l<n);a?i!==a&&(s=a,jQuery(".dslca-module-edit-field-font-suggest",o).show()):(s=i,jQuery(".dslca-module-edit-field-font-suggest",o).hide()),jQuery(".dslca-module-edit-field-font-suggest",o).text(s),s.length&&t.val(s.substring(0,t.val().length))}})),jQuery(document).off("keydown",".dslca-module-edit-field-font").on("keydown",".dslca-module-edit-field-font",(function(e){var t;13!=e.which&&9!=e.which||(t=jQuery(this).closest(".dslca-module-edit-option"),jQuery(".dslca-module-edit-field-font-suggest",t).text().length&&(jQuery(this).val(jQuery(".dslca-module-edit-field-font-suggest",t).text()).trigger("change"),jQuery(".dslca-module-edit-field-font-suggest",t).text("")))}))};var x=L(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),B=L(/Edge/i),S=L(/firefox/i),A=L(/safari/i)&&!L(/chrome/i)&&!L(/android/i),P=L(/iP(ad|od|hone)/i),E=L(/chrome/i)&&L(/android/i),O={capture:!1,passive:!1};function T(e,t,o){e.addEventListener(t,o,!x&&O)}function I(e,t,o){e.removeEventListener(t,o,!x&&O)}function M(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(e){}return!1}}function N(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function F(e,t,o,i){if(e){o=o||document;do{if(null!=t&&(">"===t[0]?e.parentNode===o&&M(e,t):M(e,t))||i&&e===o)return e;if(e===o)break}while(e=N(e))}return null}var W,U=/\s+/g;function H(e,t,o){if(e&&t)if(e.classList)e.classList[o?"add":"remove"](t);else{var i=(" "+e.className+" ").replace(U," ").replace(" "+t+" "," ");e.className=(i+(o?" "+t:"")).replace(U," ")}}function z(e,t,o){var i=e&&e.style;if(i){if(void 0===o)return document.defaultView&&document.defaultView.getComputedStyle?o=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(o=e.currentStyle),void 0===t?o:o[t];t in i||-1!==t.indexOf("webkit")||(t="-webkit-"+t),i[t]=o+("string"==typeof o?"":"px")}}function R(e,t){var o="";if("string"==typeof e)o=e;else do{var i=z(e,"transform");i&&"none"!==i&&(o=i+" "+o)}while(!t&&(e=e.parentNode));var s=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return s&&new s(o)}function q(e,t,o){if(e){var i=e.getElementsByTagName(t),s=0,a=i.length;if(o)for(;s<a;s++)o(i[s],s);return i}return[]}function X(){return document.scrollingElement||document.documentElement}function Y(e,t,o,i,s){if(e.getBoundingClientRect||e===window){var a,d,n,l,r,c,u;if(e!==window&&e!==X()?(d=(a=e.getBoundingClientRect()).top,n=a.left,l=a.bottom,r=a.right,c=a.height,u=a.width):(d=0,n=0,l=window.innerHeight,r=window.innerWidth,c=window.innerHeight,u=window.innerWidth),(t||o)&&e!==window&&(s=s||e.parentNode,!x))do{if(s&&s.getBoundingClientRect&&("none"!==z(s,"transform")||o&&"static"!==z(s,"position"))){var m=s.getBoundingClientRect();d-=m.top+parseInt(z(s,"border-top-width")),n-=m.left+parseInt(z(s,"border-left-width")),l=d+a.height,r=n+a.width;break}}while(s=s.parentNode);if(i&&e!==window){var p=R(s||e),h=p&&p.a,v=p&&p.d;p&&(l=(d/=v)+(c/=v),r=(n/=h)+(u/=h))}return{top:d,left:n,bottom:l,right:r,width:u,height:c}}}function J(e,t,o){for(var i=Z(e,!0),s=Y(e)[t];i;){var a=Y(i)[o];if(!("top"===o||"left"===o?s>=a:s<=a))return i;if(i===X())break;i=Z(i,!1)}return!1}function K(e,t,o){for(var i=0,s=0,a=e.children;s<a.length;){if("none"!==a[s].style.display&&a[s]!==et.ghost&&a[s]!==et.dragged&&F(a[s],o.draggable,e,!1)){if(i===t)return a[s];i++}s++}return null}function G(e,t){for(var o=e.lastElementChild;o&&(o===et.ghost||"none"===z(o,"display")||t&&!M(o,t));)o=o.previousElementSibling;return o||null}function V(e,t){var o=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)"TEMPLATE"===e.nodeName.toUpperCase()||e===et.clone||t&&!M(e,t)||o++;return o}function $(e){var t=0,o=0,i=X();if(e)do{var s=R(e),a=s.a,d=s.d;t+=e.scrollLeft*a,o+=e.scrollTop*d}while(e!==i&&(e=e.parentNode));return[t,o]}function Z(e,t){if(!e||!e.getBoundingClientRect)return X();var o=e,i=!1;do{if(o.clientWidth<o.scrollWidth||o.clientHeight<o.scrollHeight){var s=z(o);if(o.clientWidth<o.scrollWidth&&("auto"==s.overflowX||"scroll"==s.overflowX)||o.clientHeight<o.scrollHeight&&("auto"==s.overflowY||"scroll"==s.overflowY)){if(!o.getBoundingClientRect||o===document.body)return X();if(i||t)return o;i=!0}}}while(o=o.parentNode);return X()}function ee(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}function te(e,t){return function(){if(!W){var o=arguments,i=this;1===o.length?e.call(i,o[0]):e.apply(i,o),W=setTimeout((function(){W=void 0}),t)}}}function oe(e,t,o){e.scrollLeft+=t,e.scrollTop+=o}function ie(e){var t=window.Polymer,o=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):o?o(e).clone(!0)[0]:e.cloneNode(!0)}var se="Sortable"+(new Date).getTime(),ae=[],de={initializeByDefault:!0},ne={mount:function(e){for(var t in de)!de.hasOwnProperty(t)||t in e||(e[t]=de[t]);ae.push(e)},pluginEvent:function(e,t,o){var i=this;this.eventCanceled=!1,o.cancel=function(){i.eventCanceled=!0};var s=e+"Global";ae.forEach((function(i){t[i.pluginName]&&(t[i.pluginName][s]&&t[i.pluginName][s](D({sortable:t},o)),t.options[i.pluginName]&&t[i.pluginName][e]&&t[i.pluginName][e](D({sortable:t},o)))}))},initializePlugins:function(e,t,o,i){for(var s in ae.forEach((function(i){var s=i.pluginName;if(e.options[s]||i.initializeByDefault){var a=new i(e,t,e.options);a.sortable=e,a.options=e.options,e[s]=a,k(o,a.defaults)}})),e.options)if(e.options.hasOwnProperty(s)){var a=this.modifyOption(e,s,e.options[s]);void 0!==a&&(e.options[s]=a)}},getEventProperties:function(e,t){var o={};return ae.forEach((function(i){"function"==typeof i.eventProperties&&k(o,i.eventProperties.call(t[i.pluginName],e))})),o},modifyOption:function(e,t,o){var i;return ae.forEach((function(s){e[s.pluginName]&&s.optionListeners&&"function"==typeof s.optionListeners[t]&&(i=s.optionListeners[t].call(e[s.pluginName],o))})),i}},le=function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=o.evt,s=function(e,t){if(null==e)return{};var o,i,s=function(e,t){if(null==e)return{};var o,i,s={},a=Object.keys(e);for(i=0;i<a.length;i++)o=a[i],t.indexOf(o)>=0||(s[o]=e[o]);return s}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)o=a[i],t.indexOf(o)>=0||Object.prototype.propertyIsEnumerable.call(e,o)&&(s[o]=e[o])}return s}(o,["evt"]);ne.pluginEvent.bind(et)(e,t,D({dragEl:ce,parentEl:ue,ghostEl:me,rootEl:pe,nextEl:he,lastDownEl:ve,cloneEl:fe,cloneHidden:ge,dragStarted:Se,putSortable:_e,activeSortable:et.active,originalEvent:i,oldIndex:ye,oldDraggableIndex:be,newIndex:we,newDraggableIndex:je,hideGhostForTarget:Ge,unhideGhostForTarget:Ve,cloneNowHidden:function(){ge=!0},cloneNowShown:function(){ge=!1},dispatchSortableEvent:function(e){re({sortable:t,name:e,originalEvent:i})}},s))};function re(e){!function(e){var t=e.sortable,o=e.rootEl,i=e.name,s=e.targetEl,a=e.cloneEl,d=e.toEl,n=e.fromEl,l=e.oldIndex,r=e.newIndex,c=e.oldDraggableIndex,u=e.newDraggableIndex,m=e.originalEvent,p=e.putSortable,h=e.extraEventProperties;if(t=t||o&&o[se]){var v,f=t.options,g="on"+i.charAt(0).toUpperCase()+i.substr(1);!window.CustomEvent||x||B?(v=document.createEvent("Event")).initEvent(i,!0,!0):v=new CustomEvent(i,{bubbles:!0,cancelable:!0}),v.to=d||o,v.from=n||o,v.item=s||o,v.clone=a,v.oldIndex=l,v.newIndex=r,v.oldDraggableIndex=c,v.newDraggableIndex=u,v.originalEvent=m,v.pullMode=p?p.lastPutMode:void 0;var y=D({},h,ne.getEventProperties(i,t));for(var w in y)v[w]=y[w];o&&o.dispatchEvent(v),f[g]&&f[g].call(t,v)}}(D({putSortable:_e,cloneEl:fe,targetEl:ce,rootEl:pe,oldIndex:ye,oldDraggableIndex:be,newIndex:we,newDraggableIndex:je},e))}var ce,ue,me,pe,he,ve,fe,ge,ye,we,be,je,Qe,_e,Ce,ke,De,Le,xe,Be,Se,Ae,Pe,Ee,Oe,Te=!1,Ie=!1,Me=[],Ne=!1,Fe=!1,We=[],Ue=!1,He=[],ze="undefined"!=typeof document,Re=P,qe=B||x?"cssFloat":"float",Xe=ze&&!E&&!P&&"draggable"in document.createElement("div"),Ye=function(){if(ze){if(x)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),Je=function(e,t){var o=z(e),i=parseInt(o.width)-parseInt(o.paddingLeft)-parseInt(o.paddingRight)-parseInt(o.borderLeftWidth)-parseInt(o.borderRightWidth),s=K(e,0,t),a=K(e,1,t),d=s&&z(s),n=a&&z(a),l=d&&parseInt(d.marginLeft)+parseInt(d.marginRight)+Y(s).width,r=n&&parseInt(n.marginLeft)+parseInt(n.marginRight)+Y(a).width;if("flex"===o.display)return"column"===o.flexDirection||"column-reverse"===o.flexDirection?"vertical":"horizontal";if("grid"===o.display)return o.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(s&&d.float&&"none"!==d.float){var c="left"===d.float?"left":"right";return!a||"both"!==n.clear&&n.clear!==c?"horizontal":"vertical"}return s&&("block"===d.display||"flex"===d.display||"table"===d.display||"grid"===d.display||l>=i&&"none"===o[qe]||a&&"none"===o[qe]&&l+r>i)?"vertical":"horizontal"},Ke=function(e){function t(e,o){return function(i,s,a,d){var n=i.options.group.name&&s.options.group.name&&i.options.group.name===s.options.group.name;if(null==e&&(o||n))return!0;if(null==e||!1===e)return!1;if(o&&"clone"===e)return e;if("function"==typeof e)return t(e(i,s,a,d),o)(i,s,a,d);var l=(o?i:s).options.group.name;return!0===e||"string"==typeof e&&e===l||e.join&&e.indexOf(l)>-1}}var o={},i=e.group;i&&"object"==_(i)||(i={name:i}),o.name=i.name,o.checkPull=t(i.pull,!0),o.checkPut=t(i.put),o.revertClone=i.revertClone,e.group=o},Ge=function(){!Ye&&me&&z(me,"display","none")},Ve=function(){!Ye&&me&&z(me,"display","")};ze&&document.addEventListener("click",(function(e){if(Ie)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Ie=!1,!1}),!0);var $e=function(e){if(ce){var t,o,i,s=(t=(e=e.touches?e.touches[0]:e).clientX,o=e.clientY,Me.some((function(e){if(!G(e)){var s=Y(e),a=e[se].options.emptyInsertThreshold,d=t>=s.left-a&&t<=s.right+a,n=o>=s.top-a&&o<=s.bottom+a;return a&&d&&n?i=e:void 0}})),i);if(s){var a={};for(var d in e)e.hasOwnProperty(d)&&(a[d]=e[d]);a.target=a.rootEl=s,a.preventDefault=void 0,a.stopPropagation=void 0,s[se]._onDragOver(a)}}},Ze=function(e){ce&&ce.parentNode[se]._isOutsideThisEl(e.target)};function et(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=k({},t),e[se]=this;var o,i,s={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Je(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==et.supportPointer&&"PointerEvent"in window,emptyInsertThreshold:5};for(var a in ne.initializePlugins(this,e,s),s)a in t||(t[a]=s[a]);for(var d in Ke(t),this)"_"===d.charAt(0)&&"function"==typeof this[d]&&(this[d]=this[d].bind(this));this.nativeDraggable=!t.forceFallback&&Xe,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?T(e,"pointerdown",this._onTapStart):(T(e,"mousedown",this._onTapStart),T(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(T(e,"dragover",this),T(e,"dragenter",this)),Me.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),k(this,(i=[],{captureAnimationState:function(){i=[],this.options.animation&&[].slice.call(this.el.children).forEach((function(e){if("none"!==z(e,"display")&&e!==et.ghost){i.push({target:e,rect:Y(e)});var t=D({},i[i.length-1].rect);if(e.thisAnimationDuration){var o=R(e,!0);o&&(t.top-=o.f,t.left-=o.e)}e.fromRect=t}}))},addAnimationState:function(e){i.push(e)},removeAnimationState:function(e){i.splice(function(e,t){for(var o in e)if(e.hasOwnProperty(o))for(var i in t)if(t.hasOwnProperty(i)&&t[i]===e[o][i])return Number(o);return-1}(i,{target:e}),1)},animateAll:function(e){var t=this;if(!this.options.animation)return clearTimeout(o),void("function"==typeof e&&e());var s=!1,a=0;i.forEach((function(e){var o,i,d,n,l=0,r=e.target,c=r.fromRect,u=Y(r),m=r.prevFromRect,p=r.prevToRect,h=e.rect,v=R(r,!0);v&&(u.top-=v.f,u.left-=v.e),r.toRect=u,r.thisAnimationDuration&&ee(m,u)&&!ee(c,u)&&(h.top-u.top)/(h.left-u.left)==(c.top-u.top)/(c.left-u.left)&&(o=h,i=m,d=p,n=t.options,l=Math.sqrt(Math.pow(i.top-o.top,2)+Math.pow(i.left-o.left,2))/Math.sqrt(Math.pow(i.top-d.top,2)+Math.pow(i.left-d.left,2))*n.animation),ee(u,c)||(r.prevFromRect=c,r.prevToRect=u,l||(l=t.options.animation),t.animate(r,h,u,l)),l&&(s=!0,a=Math.max(a,l),clearTimeout(r.animationResetTimer),r.animationResetTimer=setTimeout((function(){r.animationTime=0,r.prevFromRect=null,r.fromRect=null,r.prevToRect=null,r.thisAnimationDuration=null}),l),r.thisAnimationDuration=l)})),clearTimeout(o),s?o=setTimeout((function(){"function"==typeof e&&e()}),a):"function"==typeof e&&e(),i=[]},animate:function(e,t,o,i){if(i){z(e,"transition",""),z(e,"transform","");var s=R(this.el),a=s&&s.a,d=s&&s.d,n=(t.left-o.left)/(a||1),l=(t.top-o.top)/(d||1);e.animatingX=!!n,e.animatingY=!!l,z(e,"transform","translate3d("+n+"px,"+l+"px,0)"),e.offsetWidth,z(e,"transition","transform "+i+"ms"+(this.options.easing?" "+this.options.easing:"")),z(e,"transform","translate3d(0,0,0)"),"number"==typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout((function(){z(e,"transition",""),z(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1}),i)}}}))}function tt(e,t,o,i,s,a,d,n){var l,r,c=e[se],u=c.options.onMove;return!window.CustomEvent||x||B?(l=document.createEvent("Event")).initEvent("move",!0,!0):l=new CustomEvent("move",{bubbles:!0,cancelable:!0}),l.to=t,l.from=e,l.dragged=o,l.draggedRect=i,l.related=s||t,l.relatedRect=a||Y(t),l.willInsertAfter=n,l.originalEvent=d,e.dispatchEvent(l),u&&(r=u.call(c,l,d)),r}function ot(e){e.draggable=!1}function it(){Ue=!1}function st(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,o=t.length,i=0;o--;)i+=t.charCodeAt(o);return i.toString(36)}function at(e){return setTimeout(e,0)}function dt(e){return clearTimeout(e)}et.prototype={constructor:et,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(Ae=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,ce):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,o=this.el,i=this.options,s=i.preventOnFilter,a=e.type,d=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,n=(d||e).target,l=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||n,r=i.filter;if(function(e){He.length=0;for(var t=e.getElementsByTagName("input"),o=t.length;o--;){var i=t[o];i.checked&&He.push(i)}}(o),!ce&&!(/mousedown|pointerdown/.test(a)&&0!==e.button||i.disabled||l.isContentEditable||(n=F(n,i.draggable,o,!1))&&n.animated||ve===n)){if(ye=V(n),be=V(n,i.draggable),"function"==typeof r){if(r.call(this,e,n,this))return re({sortable:t,rootEl:l,name:"filter",targetEl:n,toEl:o,fromEl:o}),le("filter",t,{evt:e}),void(s&&e.cancelable&&e.preventDefault())}else if(r&&(r=r.split(",").some((function(i){if(i=F(l,i.trim(),o,!1))return re({sortable:t,rootEl:i,name:"filter",targetEl:n,fromEl:o,toEl:o}),le("filter",t,{evt:e}),!0}))))return void(s&&e.cancelable&&e.preventDefault());i.handle&&!F(l,i.handle,o,!1)||this._prepareDragStart(e,d,n)}}},_prepareDragStart:function(e,t,o){var i,s=this,a=s.el,d=s.options,n=a.ownerDocument;if(o&&!ce&&o.parentNode===a){var l=Y(o);if(pe=a,ue=(ce=o).parentNode,he=ce.nextSibling,ve=o,Qe=d.group,et.dragged=ce,Ce={target:ce,clientX:(t||e).clientX,clientY:(t||e).clientY},xe=Ce.clientX-l.left,Be=Ce.clientY-l.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,ce.style["will-change"]="all",i=function(){le("delayEnded",s,{evt:e}),et.eventCanceled?s._onDrop():(s._disableDelayedDragEvents(),!S&&s.nativeDraggable&&(ce.draggable=!0),s._triggerDragStart(e,t),re({sortable:s,name:"choose",originalEvent:e}),H(ce,d.chosenClass,!0))},d.ignore.split(",").forEach((function(e){q(ce,e.trim(),ot)})),T(n,"dragover",$e),T(n,"mousemove",$e),T(n,"touchmove",$e),T(n,"mouseup",s._onDrop),T(n,"touchend",s._onDrop),T(n,"touchcancel",s._onDrop),S&&this.nativeDraggable&&(this.options.touchStartThreshold=4,ce.draggable=!0),le("delayStart",this,{evt:e}),!d.delay||d.delayOnTouchOnly&&!t||this.nativeDraggable&&(B||x))i();else{if(et.eventCanceled)return void this._onDrop();T(n,"mouseup",s._disableDelayedDrag),T(n,"touchend",s._disableDelayedDrag),T(n,"touchcancel",s._disableDelayedDrag),T(n,"mousemove",s._delayedDragTouchMoveHandler),T(n,"touchmove",s._delayedDragTouchMoveHandler),d.supportPointer&&T(n,"pointermove",s._delayedDragTouchMoveHandler),s._dragStartTimer=setTimeout(i,d.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){ce&&ot(ce),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;I(e,"mouseup",this._disableDelayedDrag),I(e,"touchend",this._disableDelayedDrag),I(e,"touchcancel",this._disableDelayedDrag),I(e,"mousemove",this._delayedDragTouchMoveHandler),I(e,"touchmove",this._delayedDragTouchMoveHandler),I(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?T(document,"pointermove",this._onTouchMove):T(document,t?"touchmove":"mousemove",this._onTouchMove):(T(ce,"dragend",this),T(pe,"dragstart",this._onDragStart));try{document.selection?at((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(e){}},_dragStarted:function(e,t){if(Te=!1,pe&&ce){le("dragStarted",this,{evt:t}),this.nativeDraggable&&T(document,"dragover",Ze);var o=this.options;e||H(ce,o.dragClass,!1),H(ce,o.ghostClass,!0),et.active=this,e&&this._appendGhost(),re({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(ke){this._lastX=ke.clientX,this._lastY=ke.clientY,Ge();for(var e=document.elementFromPoint(ke.clientX,ke.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(ke.clientX,ke.clientY))!==t;)t=e;if(ce.parentNode[se]._isOutsideThisEl(e),t)do{if(t[se]&&t[se]._onDragOver({clientX:ke.clientX,clientY:ke.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break;e=t}while(t=t.parentNode);Ve()}},_onTouchMove:function(e){if(Ce){var t=this.options,o=t.fallbackTolerance,i=t.fallbackOffset,s=e.touches?e.touches[0]:e,a=me&&R(me,!0),d=me&&a&&a.a,n=me&&a&&a.d,l=Re&&Oe&&$(Oe),r=(s.clientX-Ce.clientX+i.x)/(d||1)+(l?l[0]-We[0]:0)/(d||1),c=(s.clientY-Ce.clientY+i.y)/(n||1)+(l?l[1]-We[1]:0)/(n||1);if(!et.active&&!Te){if(o&&Math.max(Math.abs(s.clientX-this._lastX),Math.abs(s.clientY-this._lastY))<o)return;this._onDragStart(e,!0)}if(me){a?(a.e+=r-(De||0),a.f+=c-(Le||0)):a={a:1,b:0,c:0,d:1,e:r,f:c};var u="matrix(".concat(a.a,",").concat(a.b,",").concat(a.c,",").concat(a.d,",").concat(a.e,",").concat(a.f,")");z(me,"webkitTransform",u),z(me,"mozTransform",u),z(me,"msTransform",u),z(me,"transform",u),De=r,Le=c,ke=s}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!me){var e=this.options.fallbackOnBody?document.body:pe,t=Y(ce,!0,Re,!0,e),o=this.options;if(Re){for(Oe=e;"static"===z(Oe,"position")&&"none"===z(Oe,"transform")&&Oe!==document;)Oe=Oe.parentNode;Oe!==document.body&&Oe!==document.documentElement?(Oe===document&&(Oe=X()),t.top+=Oe.scrollTop,t.left+=Oe.scrollLeft):Oe=X(),We=$(Oe)}H(me=ce.cloneNode(!0),o.ghostClass,!1),H(me,o.fallbackClass,!0),H(me,o.dragClass,!0),z(me,"transition",""),z(me,"transform",""),z(me,"box-sizing","border-box"),z(me,"margin",0),z(me,"top",t.top),z(me,"left",t.left),z(me,"width",t.width),z(me,"height",t.height),z(me,"opacity","0.8"),z(me,"position",Re?"absolute":"fixed"),z(me,"zIndex","100000"),z(me,"pointerEvents","none"),et.ghost=me,e.appendChild(me),z(me,"transform-origin",xe/parseInt(me.style.width)*100+"% "+Be/parseInt(me.style.height)*100+"%")}},_onDragStart:function(e,t){var o=this,i=e.dataTransfer,s=o.options;le("dragStart",this,{evt:e}),et.eventCanceled?this._onDrop():(le("setupClone",this),et.eventCanceled||((fe=ie(ce)).draggable=!1,fe.style["will-change"]="",this._hideClone(),H(fe,this.options.chosenClass,!1),et.clone=fe),o.cloneId=at((function(){le("clone",o),et.eventCanceled||(o.options.removeCloneOnHide||pe.insertBefore(fe,ce),o._hideClone(),re({sortable:o,name:"clone"}))})),t||H(ce,s.dragClass,!0),t?(Ie=!0,o._loopId=setInterval(o._emulateDragOver,50)):(I(document,"mouseup",o._onDrop),I(document,"touchend",o._onDrop),I(document,"touchcancel",o._onDrop),i&&(i.effectAllowed="move",s.setData&&s.setData.call(o,i,ce)),T(document,"drop",o),z(ce,"transform","translateZ(0)")),Te=!0,o._dragStartId=at(o._dragStarted.bind(o,t,e)),T(document,"selectstart",o),Se=!0,A&&z(document.body,"user-select","none"))},_onDragOver:function(e){var t,o,i,s,a=this.el,d=e.target,n=this.options,l=n.group,r=et.active,c=Qe===l,u=n.sort,m=_e||r,p=this,h=!1;if(!Ue){if(void 0!==e.preventDefault&&e.cancelable&&e.preventDefault(),d=F(d,n.draggable,a,!0),R("dragOver"),et.eventCanceled)return h;if(ce.contains(e.target)||d.animated&&d.animatingX&&d.animatingY||p._ignoreWhileAnimating===d)return X(!1);if(Ie=!1,r&&!n.disabled&&(c?u||(i=!pe.contains(ce)):_e===this||(this.lastPutMode=Qe.checkPull(this,r,ce,e))&&l.checkPut(this,r,ce,e))){if(s="vertical"===this._getDirection(e,d),t=Y(ce),R("dragOverValid"),et.eventCanceled)return h;if(i)return ue=pe,q(),this._hideClone(),R("revert"),et.eventCanceled||(he?pe.insertBefore(ce,he):pe.appendChild(ce)),X(!0);var v,f,g,y=G(a,n.draggable);if(y&&(v=e,f=s,this,g=Y(G(this.el,this.options.draggable)),!(f?v.clientX>g.right+10||v.clientX<=g.right&&v.clientY>g.bottom&&v.clientX>=g.left:v.clientX>g.right&&v.clientY>g.top||v.clientX<=g.right&&v.clientY>g.bottom+10)||y.animated)){if(d.parentNode===a){o=Y(d);var w,b,j,Q,_,C,k,L,x,B,S,A,P=ce.parentNode!==a,E=(w=ce.animated&&ce.toRect||t,b=d.animated&&d.toRect||o,Q=(j=s)?w.left:w.top,_=j?w.right:w.bottom,C=j?w.width:w.height,k=j?b.left:b.top,L=j?b.right:b.bottom,x=j?b.width:b.height,Q!==k&&_!==L&&Q+C/2!==k+x/2),O=s?"top":"left",T=J(d,"top","top")||J(ce,"top","top"),I=T?T.scrollTop:void 0;if(Ae!==d&&(S=o[O],Ne=!1,Fe=!E&&n.invertSwap||P),0!==(B=function(e,t,o,i,s,a,d,n){var l,r=i?e.clientY:e.clientX,c=i?o.height:o.width,u=i?o.top:o.left,m=i?o.bottom:o.right,p=!1;if(!d)if(n&&Ee<c*s){if(!Ne&&(1===Pe?r>u+c*a/2:r<m-c*a/2)&&(Ne=!0),Ne)p=!0;else if(1===Pe?r<u+Ee:r>m-Ee)return-Pe}else if(r>u+c*(1-s)/2&&r<m-c*(1-s)/2)return l=t,V(ce)<V(l)?1:-1;return(p=p||d)&&(r<u+c*a/2||r>m-c*a/2)?r>u+c/2?1:-1:0}(e,d,o,s,E?1:n.swapThreshold,null==n.invertedSwapThreshold?n.swapThreshold:n.invertedSwapThreshold,Fe,Ae===d))){var M=V(ce);do{M-=B,A=ue.children[M]}while(A&&("none"===z(A,"display")||A===me))}if(0===B||A===d)return X(!1);Ae=d,Pe=B;var N=d.nextElementSibling,W=!1,U=tt(pe,a,ce,t,d,o,e,W=1===B);if(!1!==U)return 1!==U&&-1!==U||(W=1===U),Ue=!0,setTimeout(it,30),q(),W&&!N?a.appendChild(ce):d.parentNode.insertBefore(ce,W?N:d),T&&oe(T,0,I-T.scrollTop),ue=ce.parentNode,void 0===S||Fe||(Ee=Math.abs(S-Y(d)[O])),K(),X(!0)}}else{if(y===ce)return X(!1);if(y&&a===e.target&&(d=y),d&&(o=Y(d)),!1!==tt(pe,a,ce,t,d,o,e,!!d))return q(),a.appendChild(ce),ue=a,K(),X(!0)}if(a.contains(ce))return X(!1)}return!1}function R(n,l){le(n,p,D({evt:e,isOwner:c,axis:s?"vertical":"horizontal",revert:i,dragRect:t,targetRect:o,canSort:u,fromSortable:m,target:d,completed:X,onMove:function(o,i){return tt(pe,a,ce,t,o,Y(o),e,i)},changed:K},l))}function q(){R("dragOverAnimationCapture"),p.captureAnimationState(),p!==m&&m.captureAnimationState()}function X(t){return R("dragOverCompleted",{insertion:t}),t&&(c?r._hideClone():r._showClone(p),p!==m&&(H(ce,_e?_e.options.ghostClass:r.options.ghostClass,!1),H(ce,n.ghostClass,!0)),_e!==p&&p!==et.active?_e=p:p===et.active&&_e&&(_e=null),m===p&&(p._ignoreWhileAnimating=d),p.animateAll((function(){R("dragOverAnimationComplete"),p._ignoreWhileAnimating=null})),p!==m&&(m.animateAll(),m._ignoreWhileAnimating=null)),(d!==ce||ce.animated)&&(d!==a||d.animated)||(Ae=null),n.dragoverBubble||e.rootEl||d===document||(ce.parentNode[se]._isOutsideThisEl(e.target),t||$e(e)),!n.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),h=!0}function K(){we=V(ce),je=V(ce,n.draggable),re({sortable:p,name:"change",toEl:a,newIndex:we,newDraggableIndex:je,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){I(document,"mousemove",this._onTouchMove),I(document,"touchmove",this._onTouchMove),I(document,"pointermove",this._onTouchMove),I(document,"dragover",$e),I(document,"mousemove",$e),I(document,"touchmove",$e)},_offUpEvents:function(){var e=this.el.ownerDocument;I(e,"mouseup",this._onDrop),I(e,"touchend",this._onDrop),I(e,"pointerup",this._onDrop),I(e,"touchcancel",this._onDrop),I(document,"selectstart",this)},_onDrop:function(e){var t=this.el,o=this.options;we=V(ce),je=V(ce,o.draggable),le("drop",this,{evt:e}),ue=ce&&ce.parentNode,we=V(ce),je=V(ce,o.draggable),et.eventCanceled||(Te=!1,Fe=!1,Ne=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),dt(this.cloneId),dt(this._dragStartId),this.nativeDraggable&&(I(document,"drop",this),I(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),A&&z(document.body,"user-select",""),z(ce,"transform",""),e&&(Se&&(e.cancelable&&e.preventDefault(),o.dropBubble||e.stopPropagation()),me&&me.parentNode&&me.parentNode.removeChild(me),(pe===ue||_e&&"clone"!==_e.lastPutMode)&&fe&&fe.parentNode&&fe.parentNode.removeChild(fe),ce&&(this.nativeDraggable&&I(ce,"dragend",this),ot(ce),ce.style["will-change"]="",Se&&!Te&&H(ce,_e?_e.options.ghostClass:this.options.ghostClass,!1),H(ce,this.options.chosenClass,!1),re({sortable:this,name:"unchoose",toEl:ue,newIndex:null,newDraggableIndex:null,originalEvent:e}),pe!==ue?(we>=0&&(re({rootEl:ue,name:"add",toEl:ue,fromEl:pe,originalEvent:e}),re({sortable:this,name:"remove",toEl:ue,originalEvent:e}),re({rootEl:ue,name:"sort",toEl:ue,fromEl:pe,originalEvent:e}),re({sortable:this,name:"sort",toEl:ue,originalEvent:e})),_e&&_e.save()):we!==ye&&we>=0&&(re({sortable:this,name:"update",toEl:ue,originalEvent:e}),re({sortable:this,name:"sort",toEl:ue,originalEvent:e})),et.active&&(null!=we&&-1!==we||(we=ye,je=be),re({sortable:this,name:"end",toEl:ue,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){le("nulling",this),pe=ce=ue=me=he=fe=ve=ge=Ce=ke=Se=we=je=ye=be=Ae=Pe=_e=Qe=et.dragged=et.ghost=et.clone=et.active=null,He.forEach((function(e){e.checked=!0})),He.length=De=Le=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":var t;ce&&(this._onDragOver(e),(t=e).dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault());break;case"selectstart":e.preventDefault()}},toArray:function(){for(var e,t=[],o=this.el.children,i=0,s=o.length,a=this.options;i<s;i++)F(e=o[i],a.draggable,this.el,!1)&&t.push(e.getAttribute(a.dataIdAttr)||st(e));return t},sort:function(e){var t={},o=this.el;this.toArray().forEach((function(e,i){var s=o.children[i];F(s,this.options.draggable,o,!1)&&(t[e]=s)}),this),e.forEach((function(e){t[e]&&(o.removeChild(t[e]),o.appendChild(t[e]))}))},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return F(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var o=this.options;if(void 0===t)return o[e];var i=ne.modifyOption(this,e,t);o[e]=void 0!==i?i:t,"group"===e&&Ke(o)},destroy:function(){le("destroy",this);var e=this.el;e[se]=null,I(e,"mousedown",this._onTapStart),I(e,"touchstart",this._onTapStart),I(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(I(e,"dragover",this),I(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),(function(e){e.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),Me.splice(Me.indexOf(this.el),1),this.el=e=null},_hideClone:function(){ge||(le("hideClone",this),et.eventCanceled||(z(fe,"display","none"),this.options.removeCloneOnHide&&fe.parentNode&&fe.parentNode.removeChild(fe),ge=!0))},_showClone:function(e){"clone"===e.lastPutMode?ge&&(le("showClone",this),et.eventCanceled||(pe.contains(ce)&&!this.options.group.revertClone?pe.insertBefore(fe,ce):he?pe.insertBefore(fe,he):pe.appendChild(fe),this.options.group.revertClone&&this.animate(ce,fe),z(fe,"display",""),ge=!1)):this._hideClone()}},ze&&T(document,"touchmove",(function(e){(et.active||Te)&&e.cancelable&&e.preventDefault()})),et.utils={on:T,off:I,css:z,find:q,is:function(e,t){return!!F(e,t,e,!1)},extend:function(e,t){if(e&&t)for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o]);return e},throttle:te,closest:F,toggleClass:H,clone:ie,index:V,nextTick:at,cancelNextTick:dt,detectDirection:Je,getChild:K},et.get=function(e){return e[se]},et.mount=function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];t[0].constructor===Array&&(t=t[0]),t.forEach((function(e){if(!e.prototype||!e.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(e));e.utils&&(et.utils=D({},et.utils,e.utils)),ne.mount(e)}))},et.create=function(e,t){return new et(e,t)},et.version="1.10.2";var nt,lt,rt,ct,ut,mt,pt=[],ht=!1;function vt(){pt.forEach((function(e){clearInterval(e.pid)})),pt=[]}function ft(){clearInterval(mt)}var gt=te((function(e,t,o,i){if(t.scroll){var s,a=(e.touches?e.touches[0]:e).clientX,d=(e.touches?e.touches[0]:e).clientY,n=t.scrollSensitivity,l=t.scrollSpeed,r=X(),c=!1;lt!==o&&(lt=o,vt(),nt=t.scroll,s=t.scrollFn,!0===nt&&(nt=Z(o,!0)));var u=0,m=nt;do{var p=m,h=Y(p),v=h.top,f=h.bottom,g=h.left,y=h.right,w=h.width,b=h.height,j=void 0,Q=void 0,_=p.scrollWidth,C=p.scrollHeight,k=z(p),D=p.scrollLeft,L=p.scrollTop;p===r?(j=w<_&&("auto"===k.overflowX||"scroll"===k.overflowX||"visible"===k.overflowX),Q=b<C&&("auto"===k.overflowY||"scroll"===k.overflowY||"visible"===k.overflowY)):(j=w<_&&("auto"===k.overflowX||"scroll"===k.overflowX),Q=b<C&&("auto"===k.overflowY||"scroll"===k.overflowY));var x=j&&(Math.abs(y-a)<=n&&D+w<_)-(Math.abs(g-a)<=n&&!!D),B=Q&&(Math.abs(f-d)<=n&&L+b<C)-(Math.abs(v-d)<=n&&!!L);if(!pt[u])for(var S=0;S<=u;S++)pt[S]||(pt[S]={});pt[u].vx==x&&pt[u].vy==B&&pt[u].el===p||(pt[u].el=p,pt[u].vx=x,pt[u].vy=B,clearInterval(pt[u].pid),0==x&&0==B||(c=!0,pt[u].pid=setInterval(function(){i&&0===this.layer&&et.active._onTouchMove(ut);var t=pt[this.layer].vy?pt[this.layer].vy*l:0,o=pt[this.layer].vx?pt[this.layer].vx*l:0;"function"==typeof s&&"continue"!==s.call(et.dragged.parentNode[se],o,t,e,ut,pt[this.layer].el)||oe(pt[this.layer].el,o,t)}.bind({layer:u}),24))),u++}while(t.bubbleScroll&&m!==r&&(m=Z(m,!1)));ht=c}}),30),yt=function(e){var t=e.originalEvent,o=e.putSortable,i=e.dragEl,s=e.activeSortable,a=e.dispatchSortableEvent,d=e.hideGhostForTarget,n=e.unhideGhostForTarget;if(t){var l=o||s;d();var r=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,c=document.elementFromPoint(r.clientX,r.clientY);n(),l&&!l.el.contains(c)&&(a("spill"),this.onSpill({dragEl:i,putSortable:o}))}};function wt(){}function bt(){}wt.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,o=e.putSortable;this.sortable.captureAnimationState(),o&&o.captureAnimationState();var i=K(this.sortable.el,this.startIndex,this.options);i?this.sortable.el.insertBefore(t,i):this.sortable.el.appendChild(t),this.sortable.animateAll(),o&&o.animateAll()},drop:yt},k(wt,{pluginName:"revertOnSpill"}),bt.prototype={onSpill:function(e){var t=e.dragEl,o=e.putSortable||this.sortable;o.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),o.animateAll()},drop:yt},k(bt,{pluginName:"removeOnSpill"}),et.mount(new function(){function e(){for(var e in this.defaults={scroll:!0,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===e.charAt(0)&&"function"==typeof this[e]&&(this[e]=this[e].bind(this))}return e.prototype={dragStarted:function(e){var t=e.originalEvent;this.sortable.nativeDraggable?T(document,"dragover",this._handleAutoScroll):this.options.supportPointer?T(document,"pointermove",this._handleFallbackAutoScroll):t.touches?T(document,"touchmove",this._handleFallbackAutoScroll):T(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;this.options.dragOverBubble||t.rootEl||this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?I(document,"dragover",this._handleAutoScroll):(I(document,"pointermove",this._handleFallbackAutoScroll),I(document,"touchmove",this._handleFallbackAutoScroll),I(document,"mousemove",this._handleFallbackAutoScroll)),ft(),vt(),clearTimeout(W),W=void 0},nulling:function(){ut=lt=nt=ht=mt=rt=ct=null,pt.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var o=this,i=(e.touches?e.touches[0]:e).clientX,s=(e.touches?e.touches[0]:e).clientY,a=document.elementFromPoint(i,s);if(ut=e,t||B||x||A){gt(e,this.options,a,t);var d=Z(a,!0);!ht||mt&&i===rt&&s===ct||(mt&&ft(),mt=setInterval((function(){var a=Z(document.elementFromPoint(i,s),!0);a!==d&&(d=a,vt()),gt(e,o.options,a,t)}),10),rt=i,ct=s)}else{if(!this.options.bubbleScroll||Z(a,!0)===X())return void vt();gt(e,this.options,Z(a,!1),!1)}}},k(e,{pluginName:"scroll",initializeByDefault:!0})}),et.mount(bt,wt);var jt=et;window.onerror=function(e,t,o,i){Lt(e,t,o,i)},jQuery(document).on("click",".dslca-show-js-error-hook",(function(e){e.preventDefault();var t=document.getElementById("dslca-js-errors-report");jQuery("body").hasClass("dslca-saving-in-progress")||i({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">'+t.value+"</span>"})})),jQuery(document).ready((function(e){var t,o;jQuery("#page-builder-frame")[0].contentWindow.onerror=function(e,t,o,i){Lt(e,t,o,i)},t=document.getElementById("dslca-js-errors-report"),null!==(o=localStorage.getItem("js_errors_report"))&&(o.includes("lc-extensions")||o.includes("page-builder"))&&(t.value=o,localStorage.removeItem("js_errors_report"),document.querySelector(".dslca-show-js-error-hook").setAttribute("style","visibility:visible")),jQuery("body").addClass("dslca-enabled dslca-drag-not-in-progress"),jQuery(".dslca-invisible-overlay").hide(),jQuery(".dslca-section").eq(0).show()})),jQuery(document).on("click",".dslca-currently-editing",(function(){var e=!1,t=!1;jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).length?e=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument):jQuery(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).length&&(e=jQuery(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument)),e&&((t=e.offset().top-100)<0&&(t=0),jQuery("html, body",LiveComposer.Builder.PreviewAreaDocument).animate({scrollTop:t},300,(function(){e.removeAttr("style")})))})),jQuery(window).keypress((function(e){if((e.metaKey||e.ctrlKey)&&83==e.keyCode)return dslc_ajax_save_composer(),e.preventDefault(),!1})),jQuery(document).on("click",".dslca-hide-composer-hook",(function(e){e.preventDefault(),window.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"),LiveComposer.Builder.Flags.uiHidden=!0,jQuery(".dslca-container").css({bottom:-1*jQuery(".dslca-container").outerHeight()}),jQuery(".dslca-header").hide()})),jQuery(document).on("click",".dslca-show-composer-hook",(function(e){e.preventDefault(),window.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"),LiveComposer.Builder.Flags.uiHidden=!1,jQuery(".dslca-container").css({bottom:0}),jQuery(".dslca-header").show()})),jQuery(document).on("click",".dslca-go-to-modules-hook",(function(e){e.preventDefault(),_t(".dslca-modules")})),jQuery(document).on("click",".dslca-go-to-section-hook",(function(e){if(e.preventDefault(),!jQuery(this).hasClass("dslca-active")){var t=jQuery(this).data("section");_t(t),(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 t=jQuery(this).attr("href");!jQuery("body").hasClass("dslca-saving-in-progress")&&jQuery(".dslca-save-composer").is(":visible")?i({title:DSLCString.str_exit_title,content:DSLCString.str_exit_descr,confirm:function(){window.location=t}}):window.location=t})),jQuery(document).on("click",".dslca-submit",(function(){jQuery(this).closest("form").submit()})),jQuery(document).on("click",".dslca-section-title",(function(e){var t,o,i;e.stopPropagation(),jQuery(".dslca-section-title-filter",this).length&&(window.dslcDebug&&console.log("dslc_generate_filters"),o=[],i='<a html="#" data-origin="">Show All</a>',jQuery(".dslca-section:visible .dslca-origin").each((function(){t=jQuery(this),-1==jQuery.inArray(t.data("origin"),o)&&(o.push(t.data("origin")),i+='<a href="#" data-origin="'+t.data("origin")+'">'+t.data("origin")+"</a>")})),jQuery(".dslca-section:visible .dslca-section-title-filter-options").html(i).css("background",jQuery(".dslca-section:visible").data("bg")),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 t,o,i=jQuery(this).data("origin"),s=jQuery(this).closest(".dslca-section");s.hasClass("dslca-templates-load"),jQuery(".dslca-section-title-filter-curr",s).text(jQuery(this).text()),jQuery(".dslca-section-scroller-inner").css({left:0}),t=i,o=s,window.dslcDebug&&console.log("dslc_filter_origin"),jQuery(".dslca-origin",o).attr("data-display-module","false"),jQuery('.dslca-origin[data-origin="'+t+'"]',o).attr("data-display-module","true"),""==t&&(jQuery(".dslca-origin",o).attr("data-display-module","true"),jQuery(".dslca-origin.dslca-exclude",o).attr("data-display-module","false")),jQuery(".dslca-section-title-filter-options").slideToggle(300)})),window.dslc_show_publish_button=function(){window.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")};let Qt=()=>{window.dslcDebug&&console.log("hidePublishButton"),jQuery(".dslca-save-composer").hide(),jQuery(".dslca-save-draft-composer").hide()},_t=e=>{window.dslcDebug&&console.log("showSection"),jQuery(e).data("title"),jQuery(e).data("bg"),jQuery(".dslca-container").css({bottom:-500}),jQuery(".dslca-section").hide(),jQuery(e).show(),".dslca-module-edit"==e?jQuery(".dslca-currently-editing").show().find("strong").text(jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).attr("title")+" element"):".dslca-modules-section-edit"==e?jQuery(".dslca-currently-editing").show().css("background-color","#e5855f").find("strong").text("Row"):jQuery(".dslca-currently-editing").hide().find("strong").text(""),y(),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 Ct(e){if(void 0===e&&(e=!1),e){var t=jQuery(".dslca-module-edit-option-"+e),o=t.find(".dslca-module-edit-field"),i=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument)[0].id,s="";"tablet_responsive"===t.data("tab")?s="body.dslc-res-tablet ":"phone_responsive"===t.data("tab")&&(s="body.dslc-res-phone ");var a=o.data("affect-on-change-el");if(void 0!==a){var d,n,l=a.split(",");a="";for(var r=0;r<l.length;r++)r>0&&(a+=", "),a+=s+"#"+i+" "+l[r];var c,u=o.data("affect-on-change-rule").replace(/ /g,"").split(","),m=o.data("ext");if(t.toggleClass("dslca-option-off"),t.hasClass("dslca-option-off")){for(c=Dt(e),o.data("val-bckp",c),r=0;r<u.length;r++)jQuery(a,LiveComposer.Builder.PreviewAreaDocument).css(u[r],""),kt(a,u[r],i);o.val("").trigger("change")}else for(o.val(o.data("val-bckp")).trigger("change"),n=m||"",""===(d=c=Dt(e))||null===d||-1==d.indexOf(n)&&(d+=n),c=d,r=0;r<u.length;r++){var p=a+"{"+u[r]+": "+c+"}";LiveComposer.Builder.Helpers.processInlineStyleTag({context:t,rule:u[r],elems:a.replace(new RegExp("#"+i,"gi"),"").trim(),styleContent:p})}}}}function kt(e,t,o){var i,s=document.getElementById("page-builder-frame").contentWindow.document.getElementById("css-for-"+o);if(e=e.replace(/\s\s+/g," "),s){(s=s.sheet).rules?i="rules":s.cssRules&&(i="cssRules");for(var a=0;a<s[i].length;a++)if(s[i][a].selectorText==e&&s[i][a].style[t]){s[i][a].style[t]="";break}}}function Dt(e){return jQuery(".dslca-module-edit-option-"+e).find(".dslca-module-edit-field").val()}jQuery(document).ready((function(e){jQuery(document).on("click",".dslca-module-edit-option .dslc-control-toggle",(function(e){e.preventDefault(),Ct(jQuery(e.target).closest(".dslca-module-edit-option").find(".dslca-module-edit-field").data("id"))})),jQuery(document).on("mousedown",".dslca-module-edit-option",(function(e){var t=jQuery(".dslc-control-toggle");t.is(e.target)||0!==t.has(e.target).length||jQuery(e.target).closest(".dslca-module-edit-option").hasClass("dslca-option-off")&&Ct(jQuery(e.target).closest(".dslca-module-edit-option").find(".dslca-module-edit-field").data("id"))}))}));function Lt(e,t,o,i){var s="JavaScript error detected in a third-party plugin";null!=t.match("wp-content/plugins/live-composer-page-builder/js")&&(s="Live Composer returned JS error");var a="";a+='<br /><strong style="color:#E55F5F;">'+s+"</strong><br />",a+=e+'<br /> File "'+t+'", line '+o+", char "+i+"<br />","undefined"!=typeof Storage&&localStorage.setItem("js_errors_report",a)}jQuery(document).on("editorFrameLoaded",(function(){jQuery;var e=jQuery("div[data-hf]",LiveComposer.Builder.PreviewAreaDocument),t="";e.each((function(e,o){var i=jQuery(o).data("editing-link"),s=(jQuery(o).data("editing-type"),jQuery(o).data("editing-label")),a=jQuery(o).data("editing-sublabel");t+='<div class="dslc-hf-block-overlay"><a target="_blank" href="'+i+'" class="dslc-hf-block-overlay-button dslca-link">'+s+"</a>",void 0!==a&&(t+=' <span class="dslc-hf-block-overlay-text">'+a+"</span>"),t+="</div>";var d=document.createElement("div");d.innerHTML=t,o.append(d)}))}));var xt={update:null,begin:null,loopBegin:null,changeBegin:null,change:null,changeComplete:null,loopComplete:null,complete:null,loop:1,direction:"normal",autoplay:!0,timelineOffset:0},Bt={duration:1e3,delay:0,endDelay:0,easing:"easeOutElastic(1, .5)",round:0},St=["translateX","translateY","translateZ","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","scaleZ","skew","skewX","skewY","perspective"],At={CSS:{},springs:{}};function Pt(e,t,o){return Math.min(Math.max(e,t),o)}function Et(e,t){return e.indexOf(t)>-1}function Ot(e,t){return e.apply(null,t)}var Tt={arr:function(e){return Array.isArray(e)},obj:function(e){return Et(Object.prototype.toString.call(e),"Object")},pth:function(e){return Tt.obj(e)&&e.hasOwnProperty("totalLength")},svg:function(e){return e instanceof SVGElement},inp:function(e){return e instanceof HTMLInputElement},dom:function(e){return e.nodeType||Tt.svg(e)},str:function(e){return"string"==typeof e},fnc:function(e){return"function"==typeof e},und:function(e){return void 0===e},hex:function(e){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e)},rgb:function(e){return/^rgb/.test(e)},hsl:function(e){return/^hsl/.test(e)},col:function(e){return Tt.hex(e)||Tt.rgb(e)||Tt.hsl(e)},key:function(e){return!xt.hasOwnProperty(e)&&!Bt.hasOwnProperty(e)&&"targets"!==e&&"keyframes"!==e}};function It(e){var t=/\(([^)]+)\)/.exec(e);return t?t[1].split(",").map((function(e){return parseFloat(e)})):[]}function Mt(e,t){var o=It(e),i=Pt(Tt.und(o[0])?1:o[0],.1,100),s=Pt(Tt.und(o[1])?100:o[1],.1,100),a=Pt(Tt.und(o[2])?10:o[2],.1,100),d=Pt(Tt.und(o[3])?0:o[3],.1,100),n=Math.sqrt(s/i),l=a/(2*Math.sqrt(s*i)),r=l<1?n*Math.sqrt(1-l*l):0,c=l<1?(l*n-d)/r:-d+n;function u(e){var o=t?t*e/1e3:e;return o=l<1?Math.exp(-o*l*n)*(1*Math.cos(r*o)+c*Math.sin(r*o)):(1+c*o)*Math.exp(-o*n),0===e||1===e?e:1-o}return t?u:function(){var t=At.springs[e];if(t)return t;for(var o=0,i=0;;)if(1===u(o+=1/6)){if(++i>=16)break}else i=0;var s=o*(1/6)*1e3;return At.springs[e]=s,s}}function Nt(e){return void 0===e&&(e=10),function(t){return Math.round(t*e)*(1/e)}}var Ft,Wt,Ut=function(){function e(e,t){return 1-3*t+3*e}function t(e,t){return 3*t-6*e}function o(o,i,s){return((e(i,s)*o+t(i,s))*o+3*i)*o}function i(o,i,s){return 3*e(i,s)*o*o+2*t(i,s)*o+3*i}return function(e,t,s,a){if(0<=e&&e<=1&&0<=s&&s<=1){var d=new Float32Array(11);if(e!==t||s!==a)for(var n=0;n<11;++n)d[n]=o(.1*n,e,s);return function(i){return e===t&&s===a||0===i||1===i?i:o(l(i),t,a)}}function l(t){for(var a=0,n=1;10!==n&&d[n]<=t;++n)a+=.1;--n;var l=a+(t-d[n])/(d[n+1]-d[n])*.1,r=i(l,e,s);return r>=.001?function(e,t,s,a){for(var d=0;d<4;++d){var n=i(t,s,a);if(0===n)break;t-=(o(t,s,a)-e)/n}return t}(t,l,e,s):0===r?l:function(e,t,i,s,a){var d,n,l=0;do{(d=o(n=t+(i-t)/2,s,a)-e)>0?i=n:t=n}while(Math.abs(d)>1e-7&&++l<10);return n}(t,a,a+.1,e,s)}}}(),Ht=(Ft={linear:function(){return function(e){return e}}},Wt={Sine:function(){return function(e){return 1-Math.cos(e*Math.PI/2)}},Circ:function(){return function(e){return 1-Math.sqrt(1-e*e)}},Back:function(){return function(e){return e*e*(3*e-2)}},Bounce:function(){return function(e){for(var t,o=4;e<((t=Math.pow(2,--o))-1)/11;);return 1/Math.pow(4,3-o)-7.5625*Math.pow((3*t-2)/22-e,2)}},Elastic:function(e,t){void 0===e&&(e=1),void 0===t&&(t=.5);var o=Pt(e,1,10),i=Pt(t,.1,2);return function(e){return 0===e||1===e?e:-o*Math.pow(2,10*(e-1))*Math.sin((e-1-i/(2*Math.PI)*Math.asin(1/o))*(2*Math.PI)/i)}}},["Quad","Cubic","Quart","Quint","Expo"].forEach((function(e,t){Wt[e]=function(){return function(e){return Math.pow(e,t+2)}}})),Object.keys(Wt).forEach((function(e){var t=Wt[e];Ft["easeIn"+e]=t,Ft["easeOut"+e]=function(e,o){return function(i){return 1-t(e,o)(1-i)}},Ft["easeInOut"+e]=function(e,o){return function(i){return i<.5?t(e,o)(2*i)/2:1-t(e,o)(-2*i+2)/2}}})),Ft);function zt(e,t){if(Tt.fnc(e))return e;var o=e.split("(")[0],i=Ht[o],s=It(e);switch(o){case"spring":return Mt(e,t);case"cubicBezier":return Ot(Ut,s);case"steps":return Ot(Nt,s);default:return Ot(i,s)}}function Rt(e){try{return document.querySelectorAll(e)}catch(e){return}}function qt(e,t){for(var o=e.length,i=arguments.length>=2?arguments[1]:void 0,s=[],a=0;a<o;a++)if(a in e){var d=e[a];t.call(i,d,a,e)&&s.push(d)}return s}function Xt(e){return e.reduce((function(e,t){return e.concat(Tt.arr(t)?Xt(t):t)}),[])}function Yt(e){return Tt.arr(e)?e:(Tt.str(e)&&(e=Rt(e)||e),e instanceof NodeList||e instanceof HTMLCollection?[].slice.call(e):[e])}function Jt(e,t){return e.some((function(e){return e===t}))}function Kt(e){var t={};for(var o in e)t[o]=e[o];return t}function Gt(e,t){var o=Kt(e);for(var i in e)o[i]=t.hasOwnProperty(i)?t[i]:e[i];return o}function Vt(e,t){var o=Kt(e);for(var i in t)o[i]=Tt.und(e[i])?t[i]:e[i];return o}function $t(e){var t=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(e);if(t)return t[1]}function Zt(e,t){return Tt.fnc(e)?e(t.target,t.id,t.total):e}function eo(e,t){return e.getAttribute(t)}function to(e,t,o){if(Jt([o,"deg","rad","turn"],$t(t)))return t;var i=At.CSS[t+o];if(!Tt.und(i))return i;var s=document.createElement(e.tagName),a=e.parentNode&&e.parentNode!==document?e.parentNode:document.body;a.appendChild(s),s.style.position="absolute",s.style.width=100+o;var d=100/s.offsetWidth;a.removeChild(s);var n=d*parseFloat(t);return At.CSS[t+o]=n,n}function oo(e,t,o){if(t in e.style){var i=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),s=e.style[t]||getComputedStyle(e).getPropertyValue(i)||"0";return o?to(e,s,o):s}}function io(e,t){return Tt.dom(e)&&!Tt.inp(e)&&(eo(e,t)||Tt.svg(e)&&e[t])?"attribute":Tt.dom(e)&&Jt(St,t)?"transform":Tt.dom(e)&&"transform"!==t&&oo(e,t)?"css":null!=e[t]?"object":void 0}function so(e){if(Tt.dom(e)){for(var t,o=e.style.transform||"",i=/(\w+)\(([^)]*)\)/g,s=new Map;t=i.exec(o);)s.set(t[1],t[2]);return s}}function ao(e,t,o,i){switch(io(e,t)){case"transform":var s,a,d,n,l,r,c;return s=e,d=i,n=o,r=Et(a=t,"scale")?1:0+(Et(l=a,"translate")||"perspective"===l?"px":Et(l,"rotate")||Et(l,"skew")?"deg":void 0),c=so(s).get(a)||r,d&&(d.transforms.list.set(a,c),d.transforms.last=a),n?to(s,c,n):c;case"css":return oo(e,t,o);case"attribute":return eo(e,t);default:return e[t]||0}}function no(e,t){var o=/^(\*=|\+=|-=)/.exec(e);if(!o)return e;var i=$t(e)||0,s=parseFloat(t),a=parseFloat(e.replace(o[0],""));switch(o[0][0]){case"+":return s+a+i;case"-":return s-a+i;case"*":return s*a+i}}function lo(e,t){var o,i,s,a,d;if(Tt.col(e))return o=e,Tt.rgb(o)?(s=/rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(i=o))?"rgba("+s[1]+",1)":i:Tt.hex(o)?(a=o.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(e,t,o,i){return t+t+o+o+i+i})),"rgba("+parseInt((d=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(a))[1],16)+","+parseInt(d[2],16)+","+parseInt(d[3],16)+",1)"):Tt.hsl(o)?function(e){var t,o,i,s=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(e)||/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(e),a=parseInt(s[1],10)/360,d=parseInt(s[2],10)/100,n=parseInt(s[3],10)/100,l=s[4]||1;function r(e,t,o){return o<0&&(o+=1),o>1&&(o-=1),o<1/6?e+6*(t-e)*o:o<.5?t:o<2/3?e+(t-e)*(2/3-o)*6:e}if(0==d)t=o=i=n;else{var c=n<.5?n*(1+d):n+d-n*d,u=2*n-c;t=r(u,c,a+1/3),o=r(u,c,a),i=r(u,c,a-1/3)}return"rgba("+255*t+","+255*o+","+255*i+","+l+")"}(o):void 0;if(/\s/g.test(e))return e;var n=$t(e),l=n?e.substr(0,e.length-n.length):e;return t?l+t:l}function ro(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function co(e){for(var t,o=e.points,i=0,s=0;s<o.numberOfItems;s++){var a=o.getItem(s);s>0&&(i+=ro(t,a)),t=a}return i}function uo(e){var t,o,i,s;if(e.getTotalLength)return e.getTotalLength();switch(e.tagName.toLowerCase()){case"circle":return 2*Math.PI*eo(e,"r");case"rect":return 2*eo(t=e,"width")+2*eo(t,"height");case"line":return ro({x:eo(o=e,"x1"),y:eo(o,"y1")},{x:eo(o,"x2"),y:eo(o,"y2")});case"polyline":return co(e);case"polygon":return s=(i=e).points,co(i)+ro(s.getItem(s.numberOfItems-1),s.getItem(0))}}function mo(e,t){var o=t||{},i=o.el||function(e){for(var t=e.parentNode;Tt.svg(t)&&Tt.svg(t.parentNode);)t=t.parentNode;return t}(e),s=i.getBoundingClientRect(),a=eo(i,"viewBox"),d=s.width,n=s.height,l=o.viewBox||(a?a.split(" "):[0,0,d,n]);return{el:i,viewBox:l,x:l[0]/1,y:l[1]/1,w:d/l[2],h:n/l[3]}}function po(e,t){function o(o){return void 0===o&&(o=0),e.el.getPointAtLength(t+o>=1?t+o:0)}var i=mo(e.el,e.svg),s=o(),a=o(-1),d=o(1);switch(e.property){case"x":return(s.x-i.x)*i.w;case"y":return(s.y-i.y)*i.h;case"angle":return 180*Math.atan2(d.y-a.y,d.x-a.x)/Math.PI}}function ho(e,t){var o=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/g,i=lo(Tt.pth(e)?e.totalLength:e,t)+"";return{original:i,numbers:i.match(o)?i.match(o).map(Number):[0],strings:Tt.str(e)||t?i.split(o):[]}}function vo(e){return qt(e?Xt(Tt.arr(e)?e.map(Yt):Yt(e)):[],(function(e,t,o){return o.indexOf(e)===t}))}function fo(e){var t=vo(e);return t.map((function(e,o){return{target:e,id:o,total:t.length,transforms:{list:so(e)}}}))}function go(e,t){var o=Kt(t);if(/^spring/.test(o.easing)&&(o.duration=Mt(o.easing)),Tt.arr(e)){var i=e.length;2!==i||Tt.obj(e[0])?Tt.fnc(t.duration)||(o.duration=t.duration/i):e={value:e}}var s=Tt.arr(e)?e:[e];return s.map((function(e,o){var i=Tt.obj(e)&&!Tt.pth(e)?e:{value:e};return Tt.und(i.delay)&&(i.delay=o?0:t.delay),Tt.und(i.endDelay)&&(i.endDelay=o===s.length-1?t.endDelay:0),i})).map((function(e){return Vt(e,o)}))}var yo={css:function(e,t,o){return e.style[t]=o},attribute:function(e,t,o){return e.setAttribute(t,o)},object:function(e,t,o){return e[t]=o},transform:function(e,t,o,i,s){if(i.list.set(t,o),t===i.last||s){var a="";i.list.forEach((function(e,t){a+=t+"("+e+") "})),e.style.transform=a}}};function wo(e,t){fo(e).forEach((function(e){for(var o in t){var i=Zt(t[o],e),s=e.target,a=$t(i),d=ao(s,o,a,e),n=no(lo(i,a||$t(d)),d);yo[io(s,o)](s,o,n,e.transforms,!0)}}))}function bo(e,t){var o=e.length,i=function(e){return e.timelineOffset?e.timelineOffset:0},s={};return s.duration=o?Math.max.apply(Math,e.map((function(e){return i(e)+e.duration}))):t.duration,s.delay=o?Math.min.apply(Math,e.map((function(e){return i(e)+e.delay}))):t.delay,s.endDelay=o?s.duration-Math.max.apply(Math,e.map((function(e){return i(e)+e.duration-e.endDelay}))):t.endDelay,s}var jo,Qo=0,_o=[],Co=[],ko=function(){function e(){jo=requestAnimationFrame(t)}function t(t){var o=_o.length;if(o){for(var i=0;i<o;){var s=_o[i];if(s.paused){var a=_o.indexOf(s);a>-1&&(_o.splice(a,1),o=_o.length)}else s.tick(t);i++}e()}else jo=cancelAnimationFrame(jo)}return e}();function Do(e){void 0===e&&(e={});var t,o=0,i=0,s=0,a=0,d=null;function n(e){var t=window.Promise&&new Promise((function(e){return d=e}));return e.finished=t,t}var l,r,c,u,m,p,h,v,f,g=(c=Gt(xt,l=e),m=function(e,t){var o=[],i=t.keyframes;for(var s in i&&(t=Vt(function(e){for(var t=qt(Xt(e.map((function(e){return Object.keys(e)}))),(function(e){return Tt.key(e)})).reduce((function(e,t){return 0>e.indexOf(t)&&e.push(t),e}),[]),o={},i=function(i){var s=t[i];o[s]=e.map((function(e){var t={};for(var o in e)Tt.key(o)?o==s&&(t.value=e[o]):t[o]=e[o];return t}))},s=0;s<t.length;s++)i(s);return o}(i),t)),t)Tt.key(s)&&o.push({name:s,tweens:go(t[s],e)});return o}(u=Gt(Bt,l),l),p=fo(l.targets),r=m,h=qt(Xt(p.map((function(e){return r.map((function(t){return function(e,t){var o=io(e.target,t.name);if(o){var i,s,a,d=(s=e,(i=t).tweens.map((function(e){var t=function(e,t){var o={};for(var i in e){var s=Zt(e[i],t);Tt.arr(s)&&1===(s=s.map((function(e){return Zt(e,t)}))).length&&(s=s[0]),o[i]=s}return o.duration=parseFloat(o.duration),o.delay=parseFloat(o.delay),o}(e,s),o=t.value,d=Tt.arr(o)?o[1]:o,n=$t(d),l=ao(s.target,i.name,n,s),r=a?a.to.original:l,c=Tt.arr(o)?o[0]:r,u=$t(c)||$t(l),m=n||u;return Tt.und(d)&&(d=r),t.from=ho(c,m),t.to=ho(no(d,c),m),t.start=a?a.end:0,t.end=t.start+t.delay+t.duration+t.endDelay,t.easing=zt(t.easing,t.duration),t.isPath=Tt.pth(o),t.isColor=Tt.col(t.from.original),t.isColor&&(t.round=1),a=t,t}))),n=d[d.length-1];return{type:o,property:t.name,animatable:e,tweens:d,duration:n.end,delay:d[0].delay,endDelay:n.endDelay}}}(e,t)}))}))),(function(e){return!Tt.und(e)})),v=bo(h,u),f=Qo,Qo++,Vt(c,{id:f,children:[],animatables:p,animations:h,duration:v.duration,delay:v.delay,endDelay:v.endDelay}));function y(){var e=g.direction;"alternate"!==e&&(g.direction="normal"!==e?"normal":"reverse"),g.reversed=!g.reversed,t.forEach((function(e){return e.reversed=g.reversed}))}function w(e){return g.reversed?g.duration-e:e}function b(){o=0,i=w(g.currentTime)*(1/Do.speed)}function j(e,t){t&&t.seek(e-t.timelineOffset)}function Q(e){for(var t=0,o=g.animations,i=o.length;t<i;){var s=o[t],a=s.animatable,d=s.tweens,n=d.length-1,l=d[n];n&&(l=qt(d,(function(t){return e<t.end}))[0]||l);for(var r=Pt(e-l.start-l.delay,0,l.duration)/l.duration,c=isNaN(r)?1:l.easing(r),u=l.to.strings,m=l.round,p=[],h=l.to.numbers.length,v=void 0,f=0;f<h;f++){var y=void 0,w=l.to.numbers[f],b=l.from.numbers[f]||0;y=l.isPath?po(l.value,c*w):b+c*(w-b),m&&(l.isColor&&f>2||(y=Math.round(y*m)/m)),p.push(y)}var j=u.length;if(j){v=u[0];for(var Q=0;Q<j;Q++){u[Q];var _=u[Q+1],C=p[Q];isNaN(C)||(v+=_?C+_:C+" ")}}else v=p[0];yo[s.type](a.target,s.property,v,a.transforms),s.currentValue=v,t++}}function _(e){g[e]&&!g.passThrough&&g[e](g)}function C(e){var l=g.duration,r=g.delay,c=l-g.endDelay,u=w(e);g.progress=Pt(u/l*100,0,100),g.reversePlayback=u<g.currentTime,t&&function(e){if(g.reversePlayback)for(var o=a;o--;)j(e,t[o]);else for(var i=0;i<a;i++)j(e,t[i])}(u),!g.began&&g.currentTime>0&&(g.began=!0,_("begin")),!g.loopBegan&&g.currentTime>0&&(g.loopBegan=!0,_("loopBegin")),u<=r&&0!==g.currentTime&&Q(0),(u>=c&&g.currentTime!==l||!l)&&Q(l),u>r&&u<c?(g.changeBegan||(g.changeBegan=!0,g.changeCompleted=!1,_("changeBegin")),_("change"),Q(u)):g.changeBegan&&(g.changeCompleted=!0,g.changeBegan=!1,_("changeComplete")),g.currentTime=Pt(u,0,l),g.began&&_("update"),e>=l&&(i=0,g.remaining&&!0!==g.remaining&&g.remaining--,g.remaining?(o=s,_("loopComplete"),g.loopBegan=!1,"alternate"===g.direction&&y()):(g.paused=!0,g.completed||(g.completed=!0,_("loopComplete"),_("complete"),!g.passThrough&&"Promise"in window&&(d(),n(g)))))}return n(g),g.reset=function(){var e=g.direction;g.passThrough=!1,g.currentTime=0,g.progress=0,g.paused=!0,g.began=!1,g.loopBegan=!1,g.changeBegan=!1,g.completed=!1,g.changeCompleted=!1,g.reversePlayback=!1,g.reversed="reverse"===e,g.remaining=g.loop,t=g.children;for(var o=a=t.length;o--;)g.children[o].reset();(g.reversed&&!0!==g.loop||"alternate"===e&&1===g.loop)&&g.remaining++,Q(g.reversed?g.duration:0)},g.set=function(e,t){return wo(e,t),g},g.tick=function(e){s=e,o||(o=s),C((s+(i-o))*Do.speed)},g.seek=function(e){C(w(e))},g.pause=function(){g.paused=!0,b()},g.play=function(){g.paused&&(g.completed&&g.reset(),g.paused=!1,_o.push(g),b(),jo||ko())},g.reverse=function(){y(),b()},g.restart=function(){g.reset(),g.play()},g.reset(),g.autoplay&&g.play(),g}function Lo(e,t){for(var o=t.length;o--;)Jt(e,t[o].animatable.target)&&t.splice(o,1)}"undefined"!=typeof document&&document.addEventListener("visibilitychange",(function(){document.hidden?(_o.forEach((function(e){return e.pause()})),Co=_o.slice(0),Do.running=_o=[]):Co.forEach((function(e){return e.play()}))})),Do.version="3.1.0",Do.speed=1,Do.running=_o,Do.remove=function(e){for(var t=vo(e),o=_o.length;o--;){var i=_o[o],s=i.animations,a=i.children;Lo(t,s);for(var d=a.length;d--;){var n=a[d],l=n.animations;Lo(t,l),l.length||n.children.length||a.splice(d,1)}s.length||a.length||i.pause()}},Do.get=ao,Do.set=wo,Do.convertPx=to,Do.path=function(e,t){var o=Tt.str(e)?Rt(e)[0]:e,i=t||100;return function(e){return{property:e,el:o,svg:mo(o),totalLength:uo(o)*(i/100)}}},Do.setDashoffset=function(e){var t=uo(e);return e.setAttribute("stroke-dasharray",t),t},Do.stagger=function(e,t){void 0===t&&(t={});var o=t.direction||"normal",i=t.easing?zt(t.easing):null,s=t.grid,a=t.axis,d=t.from||0,n="first"===d,l="center"===d,r="last"===d,c=Tt.arr(e),u=c?parseFloat(e[0]):parseFloat(e),m=c?parseFloat(e[1]):0,p=$t(c?e[1]:e)||0,h=t.start||0+(c?u:0),v=[],f=0;return function(e,t,g){if(n&&(d=0),l&&(d=(g-1)/2),r&&(d=g-1),!v.length){for(var y=0;y<g;y++){if(s){var w=l?(s[0]-1)/2:d%s[0],b=l?(s[1]-1)/2:Math.floor(d/s[0]),j=w-y%s[0],Q=b-Math.floor(y/s[0]),_=Math.sqrt(j*j+Q*Q);"x"===a&&(_=-j),"y"===a&&(_=-Q),v.push(_)}else v.push(Math.abs(d-y));f=Math.max.apply(Math,v)}i&&(v=v.map((function(e){return i(e/f)*f}))),"reverse"===o&&(v=v.map((function(e){return a?e<0?-1*e:-e:Math.abs(f-e)})))}return h+(c?(m-u)/f:u)*(Math.round(100*v[t])/100)+p}},Do.timeline=function(e){void 0===e&&(e={});var t=Do(e);return t.duration=0,t.add=function(o,i){var s=_o.indexOf(t),a=t.children;function d(e){e.passThrough=!0}s>-1&&_o.splice(s,1);for(var n=0;n<a.length;n++)d(a[n]);var l=Vt(o,Gt(Bt,e));l.targets=l.targets||e.targets;var r=t.duration;l.autoplay=!1,l.direction=t.direction,l.timelineOffset=Tt.und(i)?r:no(i,r),d(t),t.seek(l.timelineOffset);var c=Do(l);d(c),a.push(c);var u=bo(a,e);return t.delay=u.delay,t.endDelay=u.endDelay,t.duration=u.duration,t.seek(0),t.reset(),t.autoplay&&t.play(),t},t},Do.easing=zt,Do.penner=Ht,Do.random=function(e,t){return Math.floor(Math.random()*(t-e+1))+e};var xo=Do,Bo=function(){return!LiveComposer.Builder.Flags.panelOpened||(LiveComposer.Builder.UI.shakePanelConfirmButton(),!1)};document.addEventListener("moduleDuplicate",(function(e){let t=e.detail;if(!Bo())return!1;t.classList.contains("dslca-action-disabled")||function(e){window.dslcDebug&&console.log("dslc_copy_module"),Ao();var t=e.cloneNode(!0);jQuery(t).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,top:-50}).addClass("dslca-module-being-edited"),Po(t),window.dslc_generate_code(),xo({targets:t,easing:"easeOutExpo",top:0,opacity:1,duration:400,delay:0,endDelay:0,complete:function(e){t.classList.remove("dslca-module-being-edited")}}),window.dslc_show_publish_button()}(t.closest(".dslc-module-front"))})),document.addEventListener("moduleDelete",(function(e){let t=e.detail;if(!Bo())return!1;t.classList.contains("dslca-action-disabled")||i({title:DSLCString.str_del_module_title,content:DSLCString.str_del_module_descr,confirm:function(){var e;e=t.closest(".dslc-module-front"),window.dslcDebug&&console.log("dslc_delete_module"),_t(".dslca-modules"),xo({targets:e,easing:"easeOutExpo",scale:0,opacity:0,duration:350,delay:0,endDelay:0,complete:function(t){e.parentNode.removeChild(e),window.dslc_generate_code(),window.dslc_show_publish_button()}})}})})),document.addEventListener("moduleEdit",(function(e){let t=e.detail.closest(".dslc-module-front"),o=t.dataset.module,i=LiveComposer.Builder.PreviewAreaWindow.document.querySelector(".dslca-module-being-edited"),s=jQuery(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).length;if(LiveComposer.Builder.Flags.uiHidden||null!==i&&i.length>0||s>0)return i!=t&&LiveComposer.Builder.UI.shakePanelConfirmButton(),!1;Ao(),t.classList.add("dslca-module-being-edited"),window.dslc_module_options_show(o),LiveComposer.Builder.PreviewAreaWindow.document.body.classList.add("module-editing-in-progress")})),document.addEventListener("copyModuleStyles",(function(e){let t=e.detail.closest(".dslc-module-front").querySelector(".dslca-module-code").innerText;localStorage.setItem("lcCopyPasteStorage",t)})),document.addEventListener("pasteModuleStyles",(function(e){let t=e.detail.closest(".dslc-module-front"),o=jQuery(t),i=localStorage.getItem("lcCopyPasteStorage"),s=!1;if(i)try{s=JSON.parse(i)}catch(e){console.log("Can't parse copy/paste string into JSON:"),console.log(e)}if(s&&s.module_id===t.dataset.module){let e=t.querySelector(".dslca-module-code").innerText,i=!1;try{i=JSON.parse(e)}catch(e){console.log("Can't parse current module code into JSON:"),console.log(e)}if(i){let e=!1;for(let t in s)t.includes("css_")&&(i[t]=s[t],e=!0);for(let t in i)t.includes("css_")&&(i[t]!==s[t]&&(i[t]=""),e=!0);e&&(i.action="dslc-ajax-add-module",i.dslc="active",i.dslc_module_id=i.module_id,i.dslc_module_instance_id=i.module_instance_id,i.dslc_post_id=i.post_id,o.hasClass("dslca-preload-preset")?i.dslc_preload_preset="enabled":i.dslc_preload_preset="disabled",o.removeClass("dslca-preload-preset"),i.dslc_url_vars=LiveComposer.Utils.get_page_params(),jQuery.post(DSLCAjax.ajaxurl,i,(function(e){e&&(o.after(e.output).next().addClass("dslca-module-being-edited"),o.remove(),window.dslc_generate_code(),window.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(),jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-module-being-edited"))})))}}})),document.addEventListener("moduleChangeWidth",(function(e){let t=e.detail,o=t.closest(".dslc-module-front");if(!t.classList.contains("dslca-action-disabled")){var i,s,a,d=o.dataset.dslcModuleSize,n=t.dataset.size;Number(d)!==Number(n)&&(i=o,s=n,window.dslcDebug&&console.log("dslc_module_width_set"),a="dslc-"+s+"-col",jQuery(i).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(a).data("dslc-module-size",s),i.setAttribute("data-dslc-module-size",s),LiveComposer.Utils.update_module_property_raw(i,"dslc_m_size",s),LiveComposer.Builder.PreviewAreaWindow.dslc_masonry(),window.dslc_generate_code(),window.dslc_show_publish_button())}})),document.addEventListener("wysiwygEdit",(function(e){let t=e.detail,o=t.closest(".dslc-module-front"),i=t.dataset.idToEdit,s=o.querySelector('[data-edit-id="'+i+'"]'),a="";if(void 0===(a="TEXTAREA"===s.tagName||"INPUT"===s.tagName?s.value:s.innerHTML)&&(a=""),a.trim().length&&(a=a.replace(/<lctextarea/g,"<textarea").replace(/<\/lctextarea/g,"</textarea")),a.includes("%")&&(a=(a=(a=(a=(a=(a=a.replace(/%\(\(%/g,"[")).replace(/%\)\)%/g,"]")).replace(/%\(%/g,"[")).replace(/%\)%/g,"]")).replace(/%\{%/g,"[")).replace(/%\}%/g,"]")),a=a.trim(),"undefined"!=typeof tinymce){var d=tinymce.get("dslcawpeditor");document.getElementById("wp-dslcawpeditor-wrap").classList.contains("tmce-active")?d.setContent(a,{format:"html"}):document.getElementById("dslcawpeditor").value=a,o.classList.contains("dslca-module-being-edited")||o.querySelector(".dslca-module-edit-hook").click(),jQuery(".dslca-wp-editor").show(),s.classList.add("dslca-wysiwyg-active"),jQuery("#dslcawpeditor_ifr, #dslcawpeditor").css({height:jQuery(".dslca-wp-editor").height()-300})}else console.info("Live Composer: TinyMCE is undefined.")}));let So=()=>{LiveComposer.Builder.PreviewAreaDocument.on("blur",".dslca-editable-content",(function(){LiveComposer.Builder.Flags.uiHidden||"simple"!=jQuery(this).data("type")||d(jQuery(this))})).on("paste",".dslca-editable-content:not(.inline-editor)",(function(){if(!LiveComposer.Builder.Flags.uiHidden&&"simple"==jQuery(this).data("type")){var e=jQuery(this);setTimeout((function(){"simple"==e.data("type")&&e.html(e.text()),d(e)}),100)}})).on("focus",".dslca-editable-content",(function(){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(){"simple"==jQuery(this).data("type")&&jQuery(this).closest(".dslc-module-front").addClass("dslca-module-change-made")}))};document.addEventListener("contentEditableFocusOut",(function(e){window.dslc_show_publish_button()}));let Ao=()=>{let e=LiveComposer.Builder.PreviewAreaWindow.document.querySelector(".dslca-module-being-edited");null!==e&&e.classList.remove("dslca-module-being-edited")};let Po=e=>{var t=LiveComposer.Utils.get_unique_id(),o=e.getAttribute("id");e.setAttribute("data-module-id",t),e.setAttribute("id","dslc-module-"+t);var i=e.getElementsByTagName("style")[0],s=i.textContent;i.setAttribute("id","#css-for-dslc-module-"+t),s=s.split(o).join("dslc-module-"+t),i.textContent=s,LiveComposer.Utils.update_module_property_raw(e,"module_instance_id",t)};window.dslc_module_options_show=function(e){window.dslcDebug&&console.log("dslc_module_options_show"),void 0===e&&console.warn("No module ID defined in dslc_module_options_show function.");var t=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument),o=jQuery(".dslca-module-options-front textarea",t),i=jQuery(".dslca-header").data("default-section"),s=jQuery(jQuery("#pseudo-panel").html());jQuery("#wpwrap").append(s);var a={action:"dslc-ajax-display-module-options",dslc:"active"};a.dslc_module_id=e,a.dslc_post_id=jQuery(".dslca-container").data("data-post-id"),a.dslc_url_vars=LiveComposer.Utils.get_page_params(),o.each((function(){var e=jQuery(this),t=e.data("id"),o=e.val();o.includes("%")&&(o=(o=(o=(o=(o=(o=o.replace(/%\(\(%/g,"[")).replace(/%\)\)%/g,"]")).replace(/%\(%/g,"[")).replace(/%\)%/g,"]")).replace(/%\{%/g,"[")).replace(/%\}%/g,"]")),a[t]=o})),jQuery(".dslca-wp-editor-actions").hide(),jQuery(".dslca-wp-editor-notification").show(),Qt();var d=jQuery(".dslca-module-options-front",t).children().clone();LiveComposer.Builder.moduleBackup=d,LiveComposer.Builder.Flags.panelOpened=!0,s.show(),s.addClass("show"),jQuery.post(DSLCAjax.ajaxurl,a,(function(e){s.remove(),_t(".dslca-module-edit"),jQuery("body").hasClass("rtl"),jQuery(".dslca-module-edit-options-inner").html(e.output),jQuery(".dslca-module-edit-options-tabs").html(e.output_tabs);var t=[];jQuery(".dslca-module-edit-options-inner .dslca-module-edit-option").each((function(){var e=jQuery(this).data("section");-1==t.indexOf(e)&&t.push(e)}));for(var o=t.length,a=0;a<o;a++)jQuery('.dslca-header .dslca-options-filter-hook[data-section="'+t[a]+'"]').show();jQuery('.dslca-module-edit-option[data-section="'+i+'"]').length?(jQuery('.dslca-header .dslca-options-filter-hook[data-section="'+i+'"]').show(),jQuery('.dslca-header .dslca-options-filter-hook[data-section="'+i+'"]').trigger("click")):(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()})).done((function(){window.dslc_module_options_font()}))};let Eo=e=>{window.dslcDebug&&console.log("moduleOutputAltered"),e=void 0!==e&&e;var t=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument),o=t.data("module"),i=jQuery(".dslca-module-options-front textarea",t),s=t.data("module-id"),a={action:"dslc-ajax-add-module",dslc:"active"};a.dslc_module_id=o,a.dslc_module_instance_id=s,a.dslc_post_id=jQuery(".dslca-container").data("post-id"),t.hasClass("dslca-preload-preset")?a.dslc_preload_preset="enabled":a.dslc_preload_preset="disabled",t.removeClass("dslca-preload-preset"),i.each((function(){var e=jQuery(this),t=e.data("id"),o=e.val();a[t]=o})),a.dslc_url_vars=LiveComposer.Utils.get_page_params(),jQuery.post(DSLCAjax.ajaxurl,a,(function(o){var i=LiveComposer.Builder.Helpers.insertModule(o.output,t);i.addClass("dslca-module-being-edited"),o=null,i=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("moduleOutputAltered");LiveComposer.Builder.PreviewAreaWindow.dispatchEvent(s),e&&e(o)}))};window.dslc_module_output_reload=function(e,t){window.dslcDebug&&console.log("dslc_module_output_reload"),t=void 0!==t&&t;var o=e.data("module"),i=jQuery(".dslca-module-options-front textarea",e),s=e.data("module-id"),a={action:"dslc-ajax-add-module",dslc:"active"};a.dslc_module_id=o,a.dslc_module_instance_id=s,a.dslc_post_id=jQuery(".dslca-container").data("post-id"),a.dslc_preload_preset="enabled",e.removeClass("dslca-preload-preset"),i.each((function(){var e=jQuery(this),t=e.data("id"),o=e.val();a[t]=o})),e.append('<div class="dslca-module-reloading"><span class="dslca-icon dslc-icon-spin dslc-icon-refresh"></span></div>'),jQuery.post(DSLCAjax.ajaxurl,a,(function(o){e.after(o.output).next().addClass("dslca-module-being-edited"),e.remove(),window.dslc_generate_code(),window.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(),t&&t(o),jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-module-being-edited")}))};let Oo=()=>{var e,t,o,i=jQuery(".dslca-modules .dslca-section-scroller-content");0==i.length&&(i=[document.createElement("div")]),jt.create(i[0],{sort:!1,group:{name:"modules",pull:"clone",put:!1},animation:150,handle:".dslca-module",draggable:".dslca-module",chosenClass:"dslca-module-dragging",scroll:!0,scrollSensitivity:150,scrollSpeed:15,setData:function(e,t){e.setData(!1!==LiveComposer.Utils.msieversion()?"Text":"text/html",t.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(i){i.oldIndex,i.newIndex;var s,a,d=i.item;if(i.preventDefault(),jQuery(d).closest(".dslca-section-scroller-content").length>0)return!1;jQuery(".dslca-options-hovered",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-options-hovered"),e=jQuery(d.parentNode),t=d.dataset.id,window.dslc_generate_code(),"DSLC_M_A"==t||jQuery("body").hasClass("dslca-module-drop-in-progress")||e.closest("#dslc-header").length||e.closest("#dslc-footer").length||(jQuery("body").addClass("dslca-module-drop-in-progress"),s=t,a=function(t){o=t.output,LiveComposer.Builder.Helpers.insertModule(o,jQuery(".dslca-module",e)),setTimeout((function(){LiveComposer.Builder.PreviewAreaWindow.dslc_masonry(),jQuery("body").removeClass("dslca-module-drop-in-progress")}),700),jQuery(".dslca-modules-area-manage",e).css({visibility:"visible"}),LiveComposer.Builder.PreviewAreaWindow.dslc_carousel(),LiveComposer.Builder.PreviewAreaWindow.dslc_tabs(),LiveComposer.Builder.PreviewAreaWindow.dslc_init_accordion(),window.dslc_generate_code(),window.dslc_show_publish_button()},window.dslcDebug&&console.log("moduleOutputDefault"),jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-add-module",dslc:"active",dslc_module_id:s,dslc_post_id:jQuery(".dslca-container").data("post-id"),dslc_url_vars:LiveComposer.Utils.get_page_params(),dslc_new_module:!0},(function(e){a(e)})),jQuery(d).find(".dslca-icon").attr("class","").attr("class","dslca-icon dslc-icon-refresh dslc-icon-spin"),jQuery(".dslca-modules-area-manage",e).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){e.item,e.from},onUpdate:function(e){e.item,window.dslc_show_publish_button()},onSort:function(e){e.preventDefault()},onRemove:function(e){},onFilter:function(e){e.item},onMove:function(e){e.dragged,e.draggedRect,e.related,e.relatedRect,jQuery(e.to).addClass("dslca-options-hovered")}})},To=function(e){var t=this;this.section=jQuery(e).closest(".dslc-modules-section"),this.elem=e,this.sortable=jt.create(e,{group:"modules",animation:350,handle:".dslca-move-module-hook",draggable:".dslc-module-front",ghostClass:"dslca-module-ghost",chosenClass:"dslca-module-dragging",scroll:!0,scrollSensitivity:150,scrollSpeed:15,setData:function(e,t){e.setData(!1!==LiveComposer.Utils.msieversion()?"Text":"text/html",t.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(),window.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,"DSLC_M_A"==jQuery(o).data("id")&&(Io(jQuery(t.section).find(".dslc-modules-section-wrapper .dslc-modules-section-inner")),o.remove())},onUpdate:function(e){e.item,window.dslc_show_publish_button()},onSort:function(e){},onRemove:function(e){},onFilter:function(e){e.item},onMove:function(e){e.dragged,e.draggedRect,e.related,e.relatedRect,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(e).attr("data-jsinit","initialized"),jQuery(document).on("LC.sortableOff",(function(){t.sortable&&t.sortable.option&&t.sortable.option("disabled",!0)})),jQuery(document).on("LC.sortableOn",(function(){t.sortable&&t.sortable.option&&t.sortable.option("disabled",!1)}))};jQuery(document).on("editorFrameLoaded",(function(){function e(){var e=jQuery(".dslc-modules-area",LiveComposer.Builder.PreviewAreaDocument);jQuery(e).each((function(e,t){new To(t)}))}var t=function(){return!LiveComposer.Builder.Flags.panelOpened||(LiveComposer.Builder.UI.shakePanelConfirmButton(),!1)};jQuery("#dslc-main .dslc-modules-section",LiveComposer.Builder.PreviewAreaDocument).length||jQuery("#dslca-tut-page",LiveComposer.Builder.PreviewAreaDocument).length?e():Uo(e()),LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-copy-modules-area-hook",(function(e){if(e.preventDefault(),!t())return!1;var o,i,s;jQuery(this).hasClass("dslca-action-disabled")||(o=jQuery(this).closest(".dslc-modules-area"),window.dslcDebug&&console.log("dslc_copy_modules_area"),i=o.closest(".dslc-modules-section").find(".dslc-modules-section-inner"),s=o.clone().appendTo(i),new To(s[0]),s.find(".dslca-modules-area-manage").trigger("mouseleave"),s.data("size",o.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);Po(e[0]),jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-module-being-edited"),window.dslc_generate_code(),e.animate({opacity:1},300)})),Oo(),window.dslc_show_publish_button(),window.dslc_generate_code())})),LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-delete-modules-area-hook",(function(e){if(e.preventDefault(),!t())return!1;if(!jQuery(this).hasClass("dslca-action-disabled"))if(jQuery(this).closest(".dslc-modules-area").hasClass("dslc-modules-area-empty")){Mo(jQuery(this).closest(".dslc-modules-area"))}else{var o=jQuery(this);i({title:DSLCString.str_del_area_title,content:DSLCString.str_del_area_descr,confirm:function(){Mo(o.closest(".dslc-modules-area"))}})}})),LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-change-width-modules-area-options span",(function(){if(!t())return!1;if(!jQuery(this).hasClass("dslca-action-disabled")){var e=jQuery(this).closest(".dslc-modules-area"),o=e.data("size"),i=jQuery(this).data("size");Number(o)!==Number(i)&&function(e,t){window.dslcDebug&&console.log("dslc_modules_area_width_set");var o="dslc-"+t+"-col";if(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(o).data("size",t),LiveComposer.Builder.PreviewAreaWindow.dslc_masonry(),LiveComposer.Builder.Flags.panelOpened)return!1;window.dslc_generate_code(),window.dslc_show_publish_button()}(e,i)}})),LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-change-vertial-align-module-area-hook span",(function(){!function(e,t){if(window.dslcDebug&&console.log("dslc_modules_area_vertical_align_set"),e.removeClass("dslc-valign-top dslc-valign-middle dslc-valign-bottom").addClass("dslc-valign-"+t).data("valign",t),LiveComposer.Builder.PreviewAreaWindow.dslc_masonry(),LiveComposer.Builder.Flags.panelOpened)return!1;window.dslc_generate_code(),window.dslc_show_publish_button()}(jQuery(this).closest(".dslc-modules-area"),jQuery(this).data("valign"))})),LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-add-modules-area-hook",(function(e){if(e.preventDefault(),!t())return!1;Io(jQuery(this).closest(".dslc-modules-section").find(".dslc-modules-section-inner"))}))}));let Io=e=>{window.dslcDebug&&console.log("modulesAreaAdd");let t=window.DSLCSiteData.editorUrl+"css/icons";jQuery('<div class="dslc-modules-area dslc-col dslc-12-col dslc-modules-area-dnd dslc-modules-area-empty dslc-last-col" data-size="12">\n\t\t<div class="dslca-modules-area-manage">\n\t\t\t<span class="dslca-modules-area-manage-line"></span>\n\t\t\t<div class="dslca-modules-area-manage-inner">\n\t\t\t\t<span class="dslca-manage-action dslca-copy-modules-area-hook" title="Duplicate">\n\t\t\t\t\t<svg class="feather">\n\t\t\t\t\t\t<use xlink:href="'+t+'/feather-sprite.svg#copy"></use>\n\t\t\t\t\t</svg>\n\t\t\t\t</span>\n\t\t\t\t<span class="dslca-manage-action dslca-move-modules-area-hook" title="Drag to move">\n\t\t\t\t\t<svg class="feather">\n\t\t\t\t\t\t<use xlink:href="'+t+'/feather-sprite.svg#move"></use>\n\t\t\t\t\t</svg>\n\t\t\t\t</span>\n\t\t\t\t<span class="dslca-manage-action dslca-change-width-modules-area-hook" title="Change width">\n\t\t\t\t\t<svg class="feather">\n\t\t\t\t\t\t<use xlink:href="'+t+'/feather-sprite.svg#columns"></use>\n\t\t\t\t\t</svg>\n\t\t\t\t\t<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>\n\t\t\t\t\t\t<span data-size="3">3/12</span><span data-size="4">4/12</span>\n\t\t\t\t\t\t<span data-size="5">5/12</span><span data-size="6">6/12</span>\n\t\t\t\t\t\t<span data-size="7">7/12</span><span data-size="8">8/12</span>\n\t\t\t\t\t\t<span data-size="9">9/12</span><span data-size="10">10/12</span>\n\t\t\t\t\t\t<span data-size="11">11/12</span><span data-size="12">12/12</span>\n\t\t\t\t\t</div>\n\t\t\t\t</span>\n\t\t\t\t<span class="dslca-manage-action dslca-change-vertial-align-module-area-hook" title="Change vertical align" >\n\t\t\t\t\t<svg class="feather">\n\t\t\t\t\t\t<use xlink:href="'+t+'/feather-sprite.svg#git-commit"/>\n\t\t\t\t\t</svg>\n\t\t\t\t\t<div class="dslca-change-vertial-align-module-area-options">\n\t\t\t\t\t\t<span>Vertical Align</span>\n\t\t\t\t\t\t<span data-valign="top" class="dslc-popup-option">⬆️ Top</span>\n\t\t\t\t\t\t<span data-valign="middle" class="dslc-popup-option">↕️ Middle</span>\n\t\t\t\t\t\t<span data-valign="bottom" class="dslc-popup-option">⬇️ Bottom</span>\n\t\t\t\t\t</div>\n\t\t\t\t</span>\n\t\t\t\t<span class="dslca-manage-action dslca-delete-modules-area-hook" title="Delete">\n\t\t\t\t\t<svg class="feather">\n\t\t\t\t\t\t<use xlink:href="'+t+'/feather-sprite.svg#x"></use>\n\t\t\t\t\t</svg>\n\t\t\t\t</span>\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- .dslc-module --\x3e\n\t</div>').appendTo(e).css({height:0}).animate({height:99},300,(function(){jQuery(this).css({height:"auto"})})).addClass("dslca-init-animation");var o=jQuery(".dslc-modules-area-empty",LiveComposer.Builder.PreviewAreaDocument);jQuery(o).each((function(e,t){new To(t)})),Oo(),window.dslc_generate_code(),window.dslc_show_publish_button()};function Mo(e){window.dslcDebug&&console.log("dslc_delete_modules_area");var t=e.closest(".dslc-modules-section").find(".dslc-modules-section-inner"),o=!1;e.addClass("dslca-modules-area-being-deleted"),t.find(".dslc-modules-area").length<2&&(o=!0),e.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(),_t(".dslca-modules")),setTimeout((function(){o&&(e.closest(".dslc-modules-section-inner"),2<=e.closest("#dslc-main").find(".dslc-modules-section").length?dslc_row_delete(e.closest(".dslc-modules-section")):(e.remove(),Io(t))),e.remove(),window.dslc_generate_code(),window.dslc_show_publish_button()}),900),e.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(){e.remove(),window.dslc_generate_code(),window.dslc_show_publish_button()}))}let No=()=>{jQuery("#dslc-main .dslc-modules-area",LiveComposer.Builder.PreviewAreaDocument).each((function(){"initialized"!==jQuery(this).data("jsinit")&&new To(this)}))},Fo=class{constructor(e){this.sortable,this.sortableContainer=jQuery(e).find(".dslc-modules-section-wrapper .dslc-modules-section-inner").eq(0)[0],this.initSortable(e),this.initDropable(e),this.reactToSortableOnOff(),jQuery(e).attr("data-jsinit","initialized")}initDropable(e){jQuery(e).droppable({drop:function(e,t){var o=jQuery(this).find(".dslc-modules-section-inner");"DSLC_M_A"==t.draggable.data("id")&&Io(o)}})}initSortable(e){this.sortable=jQuery(this.sortableContainer).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:!0,scrollSensitivity:100,scrollSpeed:15,sort:function(){jQuery(this).removeClass("ui-state-default")},over:function(e,t){var o=t.placeholder.closest(".dslc-modules-section");jQuery(o).removeClass("dslc-modules-section-empty").addClass("dslc-modules-section-not-empty"),o.siblings(".dslc-modules-section").each((function(){jQuery(".dslc-modules-area:not(.ui-sortable-helper)",jQuery(this)).length?jQuery(this).removeClass("dslc-modules-section-empty").addClass("dslc-modules-section-not-empty"):jQuery(this).removeClass("dslc-modules-section-not-empty").addClass("dslc-modules-section-empty")}))},remove:function(){0==jQuery(self.elem).find(".dslc-modules-area").length&&Io(jQuery(this.sortableContainer))},update:function(e,t){window.dslc_generate_code(),window.dslc_show_publish_button()},start:function(e,t){t.placeholder.html('<span class="dslca-placeholder-help-text"><span class="dslca-placeholder-help-text-inner">'+DSLCString.str_area_helper_text+"</span></span>"),jQuery(t.item).hasClass("dslc-12-col")?t.placeholder.width(t.item.width()).css({margin:0}):t.placeholder.width(t.item.width()-10),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,t){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,t){}})}reactToSortableOnOff(){self=this.sortable,jQuery(document).on("LC.sortableOff",(function(){})),jQuery(document).on("LC.sortableOn",(function(){}))}},Wo=()=>{jQuery;var e=function(){return!LiveComposer.Builder.Flags.panelOpened||(LiveComposer.Builder.UI.shakePanelConfirmButton(),!1)};jQuery(".dslc-modules-section",LiveComposer.Builder.PreviewAreaDocument).each((function(){new Fo(this)})),LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-delete-modules-section-hook",(function(t){if(!e())return!1;t.preventDefault();var o=this;jQuery(this).hasClass("dslca-action-disabled")||i({title:DSLCString.str_del_row_title,content:DSLCString.str_del_row_descr,confirm:function(){!function(e){window.dslcDebug&&console.log("dslc_row_delete"),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(),_t(".dslca-modules")),e.trigger("mouseleave").remove(),window.dslc_generate_code(),window.dslc_show_publish_button()}(jQuery(o).closest(".dslc-modules-section"))}})})),LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-import-modules-section-hook",(function(t){if(t.preventDefault(),!e())return!1;jQuery(this).hasClass("dslca-action-disabled")||i({title:DSLCString.str_import_row_title,content:DSLCString.str_import_row_descr+"<br><br><textarea></textarea>",confirm:function(){(function(e){window.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){l(),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(),zo(),No(),Oo(),window.dslc_generate_code(),window.dslc_show_publish_button()}))})(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(t){if(t.preventDefault(),!e())return!1;jQuery(this).hasClass("dslca-action-disabled")||(jQuery(".dslca-prompt-modal-cancel-hook").hide(),jQuery(".dslca-prompt-modal-confirm-hook").html('<span class="dslc-icon dslc-icon-ok"></span>'+DSLCString.str_ok),i({title:DSLCString.str_export_row_title,content:DSLCString.str_export_row_descr+"<br><br><textarea>["+a(jQuery(this).closest(".dslc-modules-section"))+"]</textarea></span>"}))})),LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-copy-modules-section-hook",(function(){if(!e())return!1;jQuery(this).hasClass("dslca-action-disabled")||function(e){var t,o,i;window.dslcDebug&&console.log("dslc_row_copy"),(t=e.clone().appendTo(jQuery("#dslc-main",LiveComposer.Builder.PreviewAreaDocument)))[0].removeAttribute("data-jsinit"),t.find(".dslc-modules-area").each((function(){var t=jQuery(this).index();jQuery(this).data("size",e.find(".dslc-modules-area:eq( "+t+" )").data("size")),this.removeAttribute("data-jsinit")})),new Fo(t),t.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);Po(e[0]),zo(),No(),window.dslc_generate_code(),Oo(),jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-module-being-edited"),e.animate({opacity:1},300),window.dslc_show_publish_button()})),o=t[0],window.dslcDebug&&console.log("dslc_section_new_id"),i=LiveComposer.Utils.get_unique_id(),o.setAttribute("data-section-id",i),LiveComposer.Utils.update_section_property_raw(o,"section_instance_id",i)}(jQuery(this).closest(".dslc-modules-section"))})),LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-add-modules-section-hook",(function(t){if(t.preventDefault(),!e())return!1;var o=jQuery(this);jQuery(this).hasClass("dslca-action-disabled")||(o.find(".dslca-icon").removeClass("dslc-icon-align-justify").addClass("dslc-icon-spinner dslc-icon-spin"),Uo((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(!e())return!1;var t=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).length,o=jQuery(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).length;if(LiveComposer.Builder.Flags.uiHidden||t>0||o>0)return!1;jQuery(this).hasClass("dslca-action-disabled")||function(e){window.dslcDebug&&console.log("dslc_row_edit"),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")&&(""!==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()),"border-top"==jQuery(this).data("id"))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",!0),jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check-empty").addClass("dslc-icon-check")):(jQuery(this).prop("checked",!1),jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check").addClass("dslc-icon-check-empty"));else if("border-right"==jQuery(this).data("id"))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",!0),jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check-empty").addClass("dslc-icon-check")):(jQuery(this).prop("checked",!1),jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check").addClass("dslc-icon-check-empty"));else if("border-bottom"==jQuery(this).data("id"))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",!0),jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check-empty").addClass("dslc-icon-check")):(jQuery(this).prop("checked",!1),jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check").addClass("dslc-icon-check-empty"));else if("border-left"==jQuery(this).data("id"))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",!0),jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check-empty").addClass("dslc-icon-check")):(jQuery(this).prop("checked",!1),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"))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",!0),jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check-empty").addClass("dslc-icon-check")):(jQuery(this).prop("checked",!1),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).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("%)%","]")),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");jQuery(this).val()&&"disabled"!==jQuery(this).val()?(jQuery(".dslca-modules-section-edit-field-image-add-hook",e).hide(),jQuery(".dslca-modules-section-edit-field-image-remove-hook",e).show()):(jQuery(".dslca-modules-section-edit-field-image-remove-hook",e).hide(),jQuery(".dslca-modules-section-edit-field-image-add-hook",e).show())})),_t(".dslca-modules-section-edit"),LiveComposer.Builder.Flags.panelOpened=!0,Qt()}(jQuery(this).closest(".dslc-modules-section")),jQuery("body",LiveComposer.Builder.PreviewAreaDocument).addClass("section-editing-in-progress")}))},Uo=e=>{window.dslcDebug&&console.log("dslc_row_add"),e=void 0!==e&&e;var t=jQuery.Deferred(),o=sessionStorage,i=(jQuery(),o.getItem("cache-dslc-ajax-add-modules-section-v2"));if(null!==i&&DSLCMainOptions.section_padding_vertical!==jQuery(i).find('input[data-id="padding"]').val()&&(o.removeItem("cache-dslc-ajax-add-modules-section-v2"),i=null),null!==i)return Ho(i),e&&e(),t;jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-add-modules-section",dslc:"active"},(function(i){return o.setItem("cache-dslc-ajax-add-modules-section-v2",i.output),Ho(i.output),e&&e(),t}))};function Ho(e){var t=jQuery(e);return t.appendTo(LiveComposer.Builder.PreviewAreaDocument.find("#dslc-main")),Oo(),window.dslc_generate_code(),window.dslc_show_publish_button(),new Fo(t),new To(t.find(".dslc-modules-area").eq(0)[0]),t.find(".dslc-modules-area").addClass("dslc-modules-area-empty dslc-last-col"),t}let zo=()=>{jQuery("#dslc-main .dslc-modules-section",LiveComposer.Builder.PreviewAreaDocument).each((function(){"initialized"!==jQuery(this).data("jsinit")&&new Fo(this)}))},Ro=()=>{zo(),Wo(),jQuery(document).on("click",".dslca-row-edit-save",(function(){var e;window.dslcDebug&&console.log("dslc_confirm_row_changes"),e=void 0!==e&&e,jQuery(".dslca-modules-section-being-edited .dslca-modules-section-settings input",LiveComposer.Builder.PreviewAreaDocument).each((function(){jQuery(this).data("def",jQuery(this).val())})),_t(".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"),window.dslc_generate_code(),window.dslc_show_publish_button(),e&&e(),LiveComposer.Builder.Flags.panelOpened=!1,jQuery("body",LiveComposer.Builder.PreviewAreaDocument).removeClass("section-editing-in-progress"),jQuery(".dslca-currently-editing").removeAttr("style"),jQuery(".dslca-row-options-filter-hook.dslca-active").removeClass("dslca-active"),LiveComposer.Builder.PreviewAreaWindow.dslc_responsive_classes(!0)})),jQuery(document).on("click",".dslca-row-edit-cancel",(function(){var e;window.dslcDebug&&console.log("dslc_row_cancel_changes"),e=void 0!==e&&e,LiveComposer.Builder.Flags.generate_code_after_row_changed=!1,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=!0,window.dslc_generate_code(),window.dslc_show_publish_button(),_t(".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"),e&&e(),LiveComposer.Builder.Flags.panelOpened=!1,jQuery("body",LiveComposer.Builder.PreviewAreaDocument).removeClass("section-editing-in-progress"),jQuery(".dslca-currently-editing").removeAttr("style"),jQuery(".dslca-row-options-filter-hook.dslca-active").removeClass("dslca-active"),LiveComposer.Builder.PreviewAreaWindow.dslc_responsive_classes(!0)}))},qo=()=>{document.querySelectorAll(".dslca-template").forEach((function(e){e.addEventListener("click",(e=>{var t;e.preventDefault(),t=e.target.closest("[data-id]").dataset.id,window.dslcDebug&&console.log("dslc_load_template"),jQuery("#wpcontent").prepend('<div class="lc-template-loader"></div>'),jQuery(".lc-template-loader").prepend('<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.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-load-template",dslc:"active",dslc_template_id:t},(function(e){jQuery("#dslc-main",LiveComposer.Builder.PreviewAreaDocument).html(e.output),jQuery(".lc-template-loader").remove(),LiveComposer.Builder.PreviewAreaWindow.dslc_carousel(),zo(),No(),Oo(),window.dslc_show_publish_button(),window.dslc_generate_code()}))}))})),jQuery(".dslca-template-import-form").submit((function(e){e.preventDefault(),window.dslcDebug&&console.log("dslc_import_template"),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}),n(0,".dslca-modal-templates-import"),LiveComposer.Builder.PreviewAreaWindow.dslc_bg_video(),Oo(),window.dslc_show_publish_button(),window.dslc_generate_code()}))})),jQuery(".dslca-template-save-form").submit((function(e){e.preventDefault(),window.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){n(0,".dslca-modal-templates-save")}))})),jQuery(document).on("click",".dslca-delete-template-hook",(function(e){var t;e.stopPropagation(),t=jQuery(this).data("id"),window.dslcDebug&&console.log("dslc_delete_template"),jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-delete-template",dslc:"active",dslc_template_id:t},(function(e){jQuery('.dslca-template[data-id="'+t+'"]').fadeOut(200,(function(){jQuery(this).remove()}))}))}))};jQuery(document).ready((function(e){var t=function(e){var t=jQuery(".dslca-section-scroller",e),o=jQuery(".dslca-section-scroller-inner",e)[0];function i(e){e=e<0?-100:100,e*=.75;var i=t.find(".dslca-section-scroller-content").width(),s=t.width();if(i<=s)return!1;var a=i-s+10;e=(e=(e=parseInt(o.style.left||0)-e)>=0?0:e)<=-a?-a:e,o.style.left=e+"px"}t.on("wheel",(function(e){return i(e.originalEvent.deltaY||e.originalEvent.deltaX),!1})),jQuery(".dslca-section-scroller-prev",e).click((function(e){e.preventDefault(),i(-500)})),jQuery(".dslca-section-scroller-next",e).click((function(e){e.preventDefault(),i(500)})),jQuery(window).load((function(){jQuery(window).resize((function(){i(0)}))}))};t(jQuery(".dslca-section.dslca-modules")),t(jQuery(".dslca-section.dslca-templates-load"))}));let Xo=()=>{LiveComposer.Builder.Flags.windowScroller=!1,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(!1!==LiveComposer.Builder.Flags.windowScroller)return!1;LiveComposer.Utils.publish("LC.sortableOff",{}),LiveComposer.Builder.Flags.windowScroller=setInterval((function(){LiveComposer.Builder.PreviewAreaWindow.scrollBy(0,5)}),6)})),jQuery(LiveComposer.Builder.PreviewAreaDocument).on("dragenter",".lc-scroll-top-area",(function(e){if(!1!==LiveComposer.Builder.Flags.windowScroller)return!1;LiveComposer.Utils.publish("LC.sortableOff",{}),LiveComposer.Builder.Flags.windowScroller=setInterval((function(){LiveComposer.Builder.PreviewAreaWindow.scrollBy(0,-5)}),6)})),jQuery(LiveComposer.Builder.PreviewAreaDocument).on("dragend mouseup","body",(function(e){LiveComposer.Builder.Flags.windowScroller&&LiveComposer.Builder.UI.stopScroller()}))};jQuery(document).ready((function(e){Xo(),LiveComposer.Builder.UI.stopScroller=function(){LiveComposer.Utils.publish("LC.sortableOn",{}),clearInterval(LiveComposer.Builder.Flags.windowScroller),LiveComposer.Builder.Flags.windowScroller=!1},jQuery("#scroller-stopper").on("dragover",(function(){LiveComposer.Builder.UI.stopScroller()}))}));let Yo={addslashes:function(e){return(e=(e=(e=e.replace(/\\/g,"\\\\")).replace(/\'/g,"\\'")).replace(/\"/g,'\\"')).replace(/\0/g,"\\0")},basename:function(e){return e.split(/[\\/]/).pop()},msieversion:function(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");return!!(t>0||navigator.userAgent.match(/Trident.*rv\:11\./))&&parseInt(e.substring(t+5,e.indexOf(".",t)))},checkParams:function(e){if(!Array.isArray(e))throw"Param is not array";var t={integer:function(e){return isNaN(parseInt(e))},float:function(e){return isNaN(parseFloat(e))},string:function(e){return null!=e&&null!=e&&"string"==typeof e},array:function(e){return Array.isArray(e)},object:function(e){return"object"==typeof e}};e.map((function(e){if(!t[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,t){return e[(t=t.split("="))[0]]=t[1],e}),{})},get_unique_id:function(){return Math.random().toString(32).slice(2)},update_module_property_raw:function(e,t,o){var i=e.getElementsByClassName("dslca-module-code")[0],s=e.querySelector('.dslca-module-option-front[data-id="'+t+'"]'),a=i.value;(a=JSON.parse(a))[t]=o,a=JSON.stringify(a),i.value=a,i.innerText=a,s.value=o,s.innerText=o},update_section_property_raw:function(e,t,o){var i=e.getElementsByClassName("dslca-section-code")[0],s=e.querySelector('.dslca-modules-section-settings input[data-id="'+t+'"]'),a=i.value;(a=JSON.parse(a))[t]=o,a=JSON.stringify(a),i.value=a,i.innerText=a,s.setAttribute("value",o),s.setAttribute("data-def",o)},publish:function(e,t){t=t||{},this.checkParams([[e,"string"],[t,"object"]]),jQuery(document).trigger({type:e,message:{details:t}}),LiveComposer.Builder.PreviewAreaWindow.dslca_publish_event(e,t)}};window.LiveComposer={Builder:{Elements:{},UI:{},Actions:{},Flags:{},PreviewFrame:{},Helpers:{}},Production:{},Utils:{}},LiveComposer.Builder.Flags={windowScroller:!1,panelOpened:!1,uiHidden:!1,modalOpen:!1,generate_code_after_row_changed:!0},LiveComposer.Builder.Actions={postponed_actions_queue:{},add_postponed_action:function(e){void 0!==e&&(isNaN(this.postponed_actions_queue[e])&&(this.postponed_actions_queue[e]=0),this.postponed_actions_queue[e]+=1)},release_postponed_actions:function(){var e=this;jQuery.each(this.postponed_actions_queue,(function(t,o){1<o?e.postponed_actions_queue[t]-=1:1==o&&(window[t](),e.postponed_actions_queue[t]-=1)}))},optionsChanged:function(){window.dslc_show_publish_button()}},LiveComposer.Builder.Helpers.insertModule=function(e,t){var o=jQuery(e),i=(t=jQuery(t),[]);return o.find("script").each((function(){i.push(this.innerHTML),this.parentNode.removeChild(this)})),t.after(o).remove(),i.forEach((function(e){var t=LiveComposer.Builder.PreviewAreaDocument[0].createElement("script");t.innerHTML=e,t.type="text/javascript",LiveComposer.Builder.PreviewAreaDocument[0].getElementById(o[0].id).appendChild(t)})),i=null,t=null,o},window.previewAreaTinyMCELoaded=function(e){LiveComposer.Builder.PreviewAreaWindow=e,LiveComposer.Builder.PreviewAreaDocument=jQuery(e.document),jQuery("#wpadminbar",LiveComposer.Builder.PreviewAreaDocument).remove(),window.LiveComposer.Builder.PreviewAreaDocument.on("dragstart",".dslca-module, .dslc-module-front, .dslc-modules-area, .dslc-modules-section",(function(e){jQuery("[contenteditable]",window.LiveComposer.Builder.PreviewAreaDocument).attr("contenteditable",!1)})),window.LiveComposer.Builder.PreviewAreaDocument.on("dragend mousedown",".dslca-module, .dslc-module-front, .dslc-modules-area, .dslc-modules-section",(function(e){jQuery("[contenteditable]",window.LiveComposer.Builder.PreviewAreaDocument).attr("contenteditable",!0)})),qo(),p(),Ro(),new class{constructor(e){this.sortable,this.initSortable(e),this.reactToSortableOnOff()}initSortable(e){this.sortable=jt.create(e,{group:"sections",animation:350,handle:".dslca-move-modules-section-hook",draggable:".dslc-modules-section-dnd",ghostClass:"dslca-sections-ghost",chosenClass:"dslca-sections-dragging",scroll:!0,scrollSensitivity:150,scrollSpeed:10,bubbleScroll:!0,direction:"vertical",setData:function(e,t){e.setData(!1!==LiveComposer.Utils.msieversion()?"Text":"text/html",t.innerHTML)},onStart:function(e){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(),window.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"),jQuery(".dslca-anim-opacity-drop").removeClass("dslca-anim-opacity-drop")},onAdd:function(e){},onUpdate:function(e){e.item,window.dslc_show_publish_button()},onSort:function(e){jQuery(this).removeClass("ui-state-default")},onRemove:function(e){},onFilter:function(e){e.item},onMove:function(e){e.dragged,e.draggedRect,e.related,e.relatedRect}})}reactToSortableOnOff(){self=this.sortable}}(LiveComposer.Builder.PreviewAreaDocument.find("#dslc-main").eq(0)[0]),jQuery(document).trigger("editorFrameLoaded"),Oo(),jQuery(document).on("click",".dslca-save-composer-hook",(function(e){var t,o,i;e.preventDefault(),jQuery("body").hasClass("dslca-module-saving-in-progress")||jQuery("body").hasClass("dslca-saving-in-progress")||(window.dslcDebug&&console.log("dslc_save_composer"),window.dslc_generate_code(),function(){window.dslcDebug&&console.log("dslca_gen_content_for_search");var e=document.getElementById("dslca-content-for-search");if(null!==e){var t=e.value,o="",i=LiveComposer.Builder.PreviewAreaWindow.document.querySelectorAll("#dslc-main .dslc-module-front [data-exportable-content]");void 0!==i&&Array.prototype.forEach.call(i,(function(e,t){var i;if(""!==e.getAttribute("data-exportable-content")){var s=e.getAttribute("data-exportable-content");i="<"+s+">"+e.innerHTML+"</"+s+">"}else i=e.innerHTML;null!==i&&(o+=i.replace(/\s+/g," ").trim()+"\n")})),e.value=o,t!==o&&window.dslc_show_publish_button()}}(),t=jQuery("#dslca-code").val(),o=jQuery("#dslca-content-for-search").val(),i=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:i,dslc_code:t,dslc_content_for_search:o},timeout:3e4}).done((function(e){"success"==e.status?(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-'+i+'" src="'+DSLCSiteData.siteurl+"/?p="+i+'" ></iframe>'),jQuery(".lbmn-cache-iframe").each((function(e,t){jQuery(t).load((function(){jQuery(t).remove()}))}))):alert("Something went wrong, please try to save again. Are you sure to make any changes? Error Code: "+e.status)})).fail((function(e){console.log(e),"timeout"==e.statusText?alert("The request timed out after 30 seconds. Server do not respond in time. Please try again."):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")})))})),jQuery(document).on("click",".dslca-save-draft-composer-hook",(function(e){var t,o;e.preventDefault(),jQuery("body").hasClass("dslca-module-saving-in-progress")||jQuery("body").hasClass("dslca-saving-in-progress")||(window.dslcDebug&&console.log("dslc_save_draft_composer"),t=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:t},(function(e){jQuery(".dslca-save-draft-composer .dslca-icon").removeClass("dslc-icon-spin dslc-icon-spinner").addClass("dslc-icon-save"),"success"==e.status?jQuery(".dslca-save-draft-composer").fadeOut(250):alert("Something went wrong, please try to save again."),jQuery("body").removeClass("dslca-saving-in-progress")})))})),window.dslc_generate_code(),jQuery([document,LiveComposer.Builder.PreviewAreaWindow.document]).unbind("keydown").bind("keydown",(function(e){var t,o,s,a;window.dslc_modal_keypress_events(e),function(e){var t=!1;if(8===e.keyCode){var o=e.srcElement||e.target;t=!("INPUT"===o.tagName.toUpperCase()&&("TEXT"===o.type.toUpperCase()||"PASSWORD"===o.type.toUpperCase()||"NUMBER"===o.type.toUpperCase()||"FILE"===o.type.toUpperCase())||"TEXTAREA"===o.tagName.toUpperCase()||jQuery(o).hasClass("dslca-editable-content")||jQuery(o).hasClass("dslc-tabs-nav-hook-title")||jQuery(o).hasClass("dslc-accordion-title"))||o.readOnly||o.disabled}t&&e.preventDefault()}(e),(116==(t=e).which||82===t.which&&t.metaKey)&&(null===jQuery(".dslca-save-composer-hook").offsetParent&&null===jQuery(".dslca-module-edit-save").offsetParent||(t.preventDefault(),i({title:DSLCString.str_refresh_title,content:DSLCString.str_refresh_descr,confirm:function(){window.location.reload()}}))),83==(o=e).which&&(o.metaKey||o.ctrlKey)&&"block"==jQuery(".dslca-save-composer-hook").css("display")&&(dslc_save_composer(),o.preventDefault()),((s=e).metaKey||s.ctrlKey)&&(LiveComposer.Builder.UI.cmdMode=!0,LiveComposer.Builder.PreviewAreaWindow.document.querySelector("body").classList.add("key-press-cmd")),a=e,LiveComposer.Builder.UI.cmdMode&&(a.metaKey||a.ctrlKey||(LiveComposer.Builder.UI.cmdMode=!1,LiveComposer.Builder.PreviewAreaWindow.document.querySelector("body").classList.remove("key-press-cmd")))})),jQuery([document,LiveComposer.Builder.PreviewAreaWindow.document]).unbind("keyup").bind("keyup",(function(e){"Meta"===e.key&&(LiveComposer.Builder.UI.cmdMode=!1,LiveComposer.Builder.PreviewAreaWindow.document.querySelector("body").classList.remove("key-press-cmd"))})),Xo(),LiveComposer.Builder.PreviewAreaDocument.on({mouseenter:function(e){jQuery(".dslca-modules-section-manage",LiveComposer.Builder.PreviewAreaDocument).css("z-index","99998");let t=e.target.closest("[data-module-id]"),o=t.offsetHeight,i=t.offsetWidth;o<60&&i<300?t.classList.add("dslc-small-height-module"):t.classList.remove("dslc-small-height-module")},mouseleave:function(e){jQuery(".dslca-modules-section-manage",LiveComposer.Builder.PreviewAreaDocument).css("z-index","999999")}},".dslca-change-width-module-hook, .dslc-module-front .dslca-module-manage"),So(),window.LiveComposer.Utils=Yo,document.addEventListener("click",(function(e){if(e.target.matches('[data-event="modal-wysiwyg-cancel"]')){let t=new CustomEvent("modalWysiwygCancel",{detail:e.target});document.dispatchEvent(t)}if(e.target.matches('[data-event="modal-wysiwyg-confirm"]')){let t=new CustomEvent("modalWysiwygConfirm",{detail:e.target});document.dispatchEvent(t)}if(e.target.matches('[data-event="module-confirm"]')){let t=new CustomEvent("moduleConfirm",{detail:e.target});document.dispatchEvent(t)}if(e.target.matches('[data-event="module-cancel"]')){let t=new CustomEvent("moduleCancel",{detail:e.target});document.dispatchEvent(t)}}),!1),LiveComposer.Builder.PreviewAreaWindow.document.addEventListener("click",(function(e){if(e.target.matches(".dslca-link")||e.preventDefault(),e.target.matches('[data-event="module-edit"]')){let t=new CustomEvent("moduleEdit",{detail:e.target});document.dispatchEvent(t)}if(e.target.matches('[data-event="module-duplicate"]')){let t=new CustomEvent("moduleDuplicate",{detail:e.target});document.dispatchEvent(t)}if(e.target.matches('[data-event="module-delete"]')){let t=new CustomEvent("moduleDelete",{detail:e.target});document.dispatchEvent(t)}if(e.target.matches(".dslca-change-width-module-options [data-size]")){let t=new CustomEvent("moduleChangeWidth",{detail:e.target});document.dispatchEvent(t)}if(e.target.matches('[data-event="wysiwyg-edit"]')){let t=new CustomEvent("wysiwygEdit",{detail:e.target});document.dispatchEvent(t)}if(e.target.matches('[data-event="module-style-copy"]')){let t=new CustomEvent("copyModuleStyles",{detail:e.target});document.dispatchEvent(t)}if(e.target.matches('[data-event="module-style-paste"]')){let t=new CustomEvent("pasteModuleStyles",{detail:e.target});document.dispatchEvent(t)}}),!1),LiveComposer.Builder.PreviewAreaWindow.document.addEventListener("focusout",(function(e){if(e.target.matches('[contenteditable="true"]')){let t=new CustomEvent("contentEditableFocusOut",{detail:e.target});document.dispatchEvent(t)}}),!1)},window.onbeforeunload=function(){}}});
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
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: 6.0
|
6 |
-
Stable tag: 1.5.
|
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,7 +58,7 @@ 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.5.
|
62 |
* 🕷 Removing stylist tab
|
63 |
* 🕷 Thumbail not showing
|
64 |
* 🕷 Second time add new row issue (json issue)
|
2 |
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: 6.0.2
|
6 |
+
Stable tag: 1.5.21
|
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.5.21 - Aug 05 2022 =
|
62 |
* 🕷 Removing stylist tab
|
63 |
* 🕷 Thumbail not showing
|
64 |
* 🕷 Second time add new row issue (json issue)
|