Version Description
- Oct 17 2022 =
- Fix error : JSON Parse error Expected ',' or '}' after property value
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.22 |
Comparing to | |
See all releases |
Code changes from version 1.5.21 to 1.5.22
- ds-live-composer.php +2 -2
- js/dist/editor_backend.min.js +1 -1
- readme.txt +4 -1
ds-live-composer.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin URI: https://www.livecomposerplugin.com
|
5 |
* Description: Page builder for WordPress with drag and drop header/footer editing.
|
6 |
* Author: Live Composer Team
|
7 |
-
* Version: 1.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.22
|
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.22' );
|
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(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(){}}});
|
1 |
+
!function(e){var t={};function o(i){if(t[i])return t[i].exports;var a=t[i]={i:i,l:!1,exports:{}};return e[i].call(a.exports,a,a.exports,o),a.l=!0,a.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 a in e)o.d(i,a,(function(t){return e[t]}).bind(null,a));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},a=()=>{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=s(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 s=e=>{window.dslcDebug&&console.log("generateSectionCode");var t,o,i,a,s="",l=0,d="";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"),l=0,a=JSON.parse((i=o.find(".dslca-section-code").val()).replace(/“/g,'"').replace(/”/g,'"').replace(/″/g,'"')),d="",jQuery(".dslca-modules-section-settings input",o).each(function(){var e=jQuery(this),t=e.data("id"),o=e.val();d=d+t+'="'+o+'" ',a[t]=o}),void 0!==a.give_new_id&&delete a.give_new_id,a.content=[],jQuery(".dslc-modules-area",o).each(function(){var e=0,o=jQuery(this),i=parseInt(o.data("size")),d=o.data("valign"),n="no",r="no";l+=i,jQuery(this).removeClass("dslc-first-col"),jQuery(this).removeClass("dslc-last-col"),12==l?(jQuery(this).addClass("dslc-last-col").next(".dslc-modules-area").addClass("dslc-first-col"),l=0,n="yes"):l>12&&(jQuery(this).removeClass("dslc-last-col").addClass("dslc-first-col"),l=i,r="yes"),l==i&&(r="yes",jQuery(this).removeClass("dslc-last-col").addClass("dslc-first-col"));var c='{"element_type":"module_area","last":"'+n+'","first":"'+r+'","size":"'+i+'","valign":"'+d+'"}';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{s=o[0].querySelector(".dslca-module-code").innerText}catch(a){console.info("No DSLC code found in module: "+o[0].getAttribute("id"))}if(""!==s){var l=JSON.parse(s.replace(/“/g,'"').replace(/”/g,'"').replace(/″/g,'"'));l.last=i,jQuery.each(l,function(e,t){!1!==t&&""!==t||delete l[e],"content"==e&&(l[e]=t.replace(/“/g,'"').replace(/”/g,'"').replace(/″/g,'"')),"main_heading_title"==e&&(l[e]=t.replace(/“/g,'"').replace(/”/g,'"').replace(/″/g,'"')),"main_heading_link_title"==e&&(l[e]=t.replace(/“/g,'"').replace(/”/g,'"').replace(/″/g,'"')),"tabs_content"==e&&(l[e]=t.replace(/“/g,'"').replace(/”/g,'"').replace(/″/g,'"')),"tabs_nav"==e&&(l[e]=t.replace(/“/g,'"').replace(/”/g,'"').replace(/″/g,'"')),"accordion_content"==e&&(l[e]=t.replace(/“/g,'"').replace(/”/g,'"').replace(/″/g,'"')),"accordion_nav"==e&&(l[e]=t.replace(/“/g,'"').replace(/”/g,'"').replace(/″/g,'"')),"button_text"==e&&(l[e]=t.replace(/“/g,'"').replace(/”/g,'"').replace(/″/g,'"')),"title"==e&&(l[e]=t.replace(/“/g,'"').replace(/”/g,'"').replace(/″/g,'"')),"button_title"==e&&(l[e]=t.replace(/“/g,'"').replace(/”/g,'"').replace(/″/g,'"')),"label"==e&&(l[e]=t.replace(/“/g,'"').replace(/”/g,'"').replace(/″/g,'"')),"txt_leave_comment"==e&&(l[e]=t.replace(/“/g,'"').replace(/”/g,'"').replace(/″/g,'"')),"txt_comment"==e&&(l[e]=t.replace(/“/g,'"').replace(/”/g,'"').replace(/″/g,'"')),"txt_name"==e&&(l[e]=t.replace(/“/g,'"').replace(/”/g,'"').replace(/″/g,'"')),"txt_url"==e&&(l[e]=t.replace(/“/g,'"').replace(/”/g,'"').replace(/″/g,'"')),"txt_submit_comment"==e&&(l[e]=t.replace(/“/g,'"').replace(/”/g,'"').replace(/″/g,'"')),"txt_gdpr"==e&&(l[e]=t.replace(/“/g,'"').replace(/”/g,'"').replace(/″/g,'"')),"give_new_id"==e&&delete l[e]}),o[0].querySelector(".dslca-module-code").innerText=JSON.stringify(l),c.content.push(l)}s=""}),a.content.push(c)}),JSON.stringify(a)},l=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)},d=(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,a,s,l=jQuery(this).data("modal");t=jQuery(this),o=l,"undefined"!=typeof dslcDebug&&dslcDebug&&console.log("dslc_show_modal"),jQuery(".dslca-modal:visible").length&&d(0,jQuery(".dslca-modal:visible")),o=jQuery(o),jQuery(".dslca-container").height(),o.outerHide({clbk:function(){d(0,jQuery(".dslca-modal:visible"))}}),i=jQuery(t).position(),a=o.outerWidth()/2-t.outerWidth()/2,s=i.left-a,o.css({left:s}),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");d(jQuery(this),t)}})});let n=()=>{"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")}),n(),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 a=o.closest(".dslc-modules-area");a.closest(".dslc-modules-section-inner"),dslc_modules_area_delete(a)}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&&n(),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 a=t.find(".dslc-tabs");LiveComposer.Builder.PreviewAreaWindow.dslc_tabs_generate_code(a)}else l(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),p=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 a=i.offset(),s=t.outerHeight(),l=t.outerWidth(),d=a.left-l/2+6,n="50%";d<0&&(n=l/2+d+"px",d=0),jQuery(".dslca-module-edit-field-ttip").show().css({top:a.top-s-20,left:d}),jQuery("head").append(jQuery("<style>.dslca-module-edit-field-ttip:after, .dslca-module-edit-field-ttip:before { left: "+n+" }</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(),a=e.outerWidth(),s=o.left-a/2+6,l="50%";s<0&&(l=a/2+s+"px",s=0),jQuery(".dslca-module-edit-field-icon-ttip").show().css({top:o.top-i-20,left:s}),jQuery("head").append(jQuery("<style>.dslca-module-edit-field-icon-ttip:after, .dslca-module-edit-field-icon-ttip:before { left: "+l+" }</style>"))}}),window.dslc_module_options_font(),jQuery(document).on("keyup",".dslca-module-edit-field-icon",function(e){var t,o,i,a;o=(t=jQuery(this)).closest(".dslca-module-edit-option"),38==e.which&&y(t,"previous"),40==e.which&&y(t,"next"),13!=e.which&&38!=e.which&&40!=e.which&&(i=t.val().toLowerCase(),t.val(i),a=jQuery.grep(p,function(e,t){return 0==e.indexOf(i)})[0],jQuery(".dslca-module-edit-field-icon-suggest",o).text(a))}),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(),d(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(),a=e.find(".dslca-module-edit-option-box-shadow-blur").val(),s=e.find(".dslca-module-edit-option-box-shadow-spread").val(),l=e.find(".dslca-module-edit-option-box-shadow-color").val(),d=e.find(".dslca-module-edit-option-box-shadow-inset").is(":checked"),n=o+"px "+i+"px "+a+"px "+s+"px "+l+(d=d?" inset":"");t.val(n).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(){e=this,window.dslcDebug&&console.log("dslc_module_options_color"),d=[],n="dslcColors-"+document.domain,void 0!==localStorage[n]&&(d=JSON.parse(localStorage[n])),1>d.length&&d.push("#78b"),2>d.length&&d.push("#ab0"),3>d.length&&d.push("#de3"),d.push("#fff"),d.push("#000"),d.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:d,change:function(e,d){t=r;var n=r.wpColorPicker("color");a=null==n?"":n,t.val(a).trigger("change"),t.css("background",a),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,a),s=jQuery(".dslca-module-being-edited",window.LiveComposer.Builder.PreviewAreaDocument),jQuery('.dslca-module-option-front[data-id="'+(l=t.data("id"))+'"]',s).val(a),s.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"!==a&&"#ffffff"!==a&&"#000"!==a&&"#000000"!==a&&"rgba(0,0,0,0)"!==a){if(void 0===localStorage[n]){var e=[a];localStorage[n]=JSON.stringify(e)}else -1==(e=JSON.parse(localStorage[n])).indexOf(a)&&(e.unshift(a),3<e.length&&e.pop()),localStorage[n]=JSON.stringify(e)}r.wpColorPicker("close")}),window.LiveComposer.Builder.Helpers.colorpickers.push(jQuery(this))});var e,t,o,i,a,s,l,d,n,r=jQuery(this).closest(".dslca-color-option"),c=jQuery(".dslca-module-edit-options-inner"),u=r.find(".wp-picker-holder"),p=r.offset(),m=p.left+15,h=window.innerWidth;h<m+260&&(m=h-260),u.css("left",m+"px"),jQuery(c).on("scroll",function(e){var t=(p=r.offset()).left+15,o=window.innerWidth;o<t+260&&(t=o-260),u.css("left",t+"px")})}),jQuery(".dslca-container").on("mouseenter",".dslca-module-edit-option-slider",function(){jQuery(this).hasClass("dslca-module-edit-option-select")||$(this)}),jQuery(".dslca-container").on("mouseenter",".dslca-modules-section-edit-option-slider",function(){$(this)}),jQuery(".dslca-module-edit-form").submit(function(e){e.preventDefault(),op()}),jQuery(document).on("click",".dslca-module-edit-options-tab-hook",function(e){e.preventDefault(),b(jQuery(this))}),jQuery(document).on("click",".dslca-clear-responsive-options",function(e){e.preventDefault(),v()}),jQuery(document).on("click",".dslca-options-filter-hook",function(e){e.preventDefault();var t,o=jQuery(".dslca-options-filter-hook.dslca-active").data("section"),i=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=i,t=i,window.dslcDebug&&console.log("dslc_module_options_section_filter"),jQuery(".dslca-module-edit-option").hide(),jQuery('.dslca-module-edit-option[data-section="'+t+'"]').show(),b(),"responsive"==o&&(jQuery(".dslca-container-loader").show(),window.LiveComposer.Builder.PreviewAreaWindow.dslc_responsive_classes(),op(function(){jQuery(".dslca-container-loader").hide()}),jQuery("#page-builder-preview-area").resizable("destroy").attr("style","")),"responsive"==i&&jQuery("#page-builder-preview-area").resizable()}),jQuery(document).on("click",".dslca-module-edit-save",function(e){var t;e.preventDefault(),t=function(){window.LiveComposer.Builder.UI.unloadOptionsDeps(),window.LiveComposer.Builder.Flags.panelOpened=!1,jQuery("body",window.LiveComposer.Builder.PreviewAreaDocument).removeClass("module-editing-in-progress")},window.dslcDebug&&console.log("dslc_module_options_confirm_changes"),t=void 0!==t&&t,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"),op(function(){a(),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(),t&&t()})),tm(".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(),jQuery(".dslca-options-filter-hook.dslca-active").removeClass("dslca-active"),C()}),jQuery(document).on("click",".dslca-module-edit-cancel",function(e){var t,o;e.preventDefault(),t=function(){window.LiveComposer.Builder.UI.unloadOptionsDeps(),window.LiveComposer.Builder.Flags.panelOpened=!1,jQuery("body",window.LiveComposer.Builder.PreviewAreaDocument).removeClass("module-editing-in-progress")},window.dslcDebug&&console.log("dslc_module_options_cancel_changes"),t=void 0!==t&&t,o=jQuery(".dslca-module-being-edited",window.LiveComposer.Builder.PreviewAreaDocument),jQuery(".dslca-module-options-front",o).html("").append(window.LiveComposer.Builder.moduleBackup),op(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(),t&&t()}),tm(".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(),jQuery(".dslca-options-filter-hook.dslca-active").removeClass("dslca-active"),C()})});let m=()=>{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(o){e=!1}if(e){var i=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"),a=!0;"radio"!=e.type&&"checkbox"!=e.type||(a=jQuery(e).is(":checked"));var s=jQuery(".dslca-module-edit-options-tab-hook.dslca-active").data("id");e.value==t&&a?(i.not(".dependent")&&i.addClass("dependent"),i.hasClass("dep-hide")&&i.removeClass("dep-hide"),i.addClass("dep-show"),s==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")+'"]',i),window.LiveComposer.Builder.Helpers.depsHandlers.push(i)}}),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 a=document.createElement("style");a.innerHTML=e.styleContent,a.id=i,a.className="temp-styles-for-module",window.LiveComposer.Builder.PreviewAreaDocument[0].body.appendChild(a)}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(),f(),g()},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"),a=o.closest(".dslca-module-edit-option"),s=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument),l=s.data("module");if(jQuery(".dslca-module-options-front textarea",s),s.addClass("dslca-module-change-made"),(a.hasClass("dslca-module-edit-option-select")||a.hasClass("dslca-module-edit-option-checkbox"))&&w(),"active"==jQuery(this).closest(".dslca-module-edit-option").data("refresh-on-change"))a.find(".dslca-module-edit-option-checkbox-wrapper").length?jQuery('input[type="checkbox"]',a).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+'"]',s).val(e),jQuery(".dslca-container-loader").show(),op(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(l),jQuery(".dslca-container-loader").hide(),jQuery("body").removeClass("dslca-new-preset-added"),LiveComposer.Utils.publish("LC.moduleChange",{moduleId:l,optionID:i,optionVal:o.val()})});else{if(o.hasClass("dslca-module-edit-field-font")){var d,n=o.val();n+=":400,100,200,300,500,600,700,800,900";var r=o.data("affect-on-change-el"),u=o.data("affect-on-change-rule"),p=h=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=r.split(","),a="#"+m[0].id+" "+i.join(", #"+m[0].id+" ")+" {"+u+": "+h+"}";LiveComposer.Builder.Helpers.processInlineStyleTag({context:o,rule:u,elems:r,styleContent:a})},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=r.split(","),t="#"+m[0].id+" "+e.join(", #"+m[0].id+" ")+" {"+u+": "+h+"}";LiveComposer.Builder.Helpers.processInlineStyleTag({context:o,rule:u,elems:r,styleContent:t})},100)}else o.hasClass("dslca-module-edit-field-checkbox")&&jQuery('input[type="checkbox"]',a).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 h,f=o.data("ext")||"";r=o.data("affect-on-change-el"),u=o.data("affect-on-change-rule"),p=h=o.val(),o.hasClass("dslca-module-edit-field-checkbox")&&(h=e,p=t),o.hasClass("dslca-module-edit-field-image")&&(h='url("'+h+'")'),null!==h&&h.length<1&&("background-color"==u||"background"==u)&&(h="transparent"),u.split(",").forEach(function(e){e=e.replace(/\s+/g,"");var t=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument),i=r.split(","),a="#"+t[0].id+" "+i.join(", #"+t[0].id+" ")+" {"+e+": "+h+f+"}";LiveComposer.Builder.Helpers.processInlineStyleTag({context:o,rule:e,elems:r,styleContent:a})})}d=-1!==i.indexOf("css_")?p:o.val(),jQuery('.dslca-module-option-front[data-id="'+i+'"]',s).val(d),LiveComposer.Utils.publish("LC.moduleChange",{moduleId:s[0].id,optionID:i,optionVal:p||o.val()})}})},f=()=>{jQuery(document).on("change",".dslca-modules-section-edit-field",function(){if(t=(e=jQuery(this)).data("id"),p=i=e.val(),a=i+e.data("ext"),s=e.data("css-rule"),d=o=jQuery(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument),l=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"==s&&(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,a,s,l,d,n,r=jQuery('.dslca-modules-section-settings input[data-id="border_style"]').val();l=jQuery('.dslca-modules-section-settings input[data-id="border"]',o),p="",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")?p+="top ":"border-right"==jQuery(this).data("id")?p+="right ":"border-bottom"==jQuery(this).data("id")?p+="bottom ":"border-left"==jQuery(this).data("id")&&(p+="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 p=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===p.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===p.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===p.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===p.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 m=i;m=(m=m.replace(".webm","")).replace(".mp4",""),jQuery(".dslc-bg-video-inner",o).html('<video><source type="video/mp4" src="'+m+'.mp4" /><source type="video/webm" src="'+m+'.webm" /></video>'),LiveComposer.Builder.PreviewAreaWindow.dslc_bg_video()}}else if("section_divider_top_style"==t||"section_divider_bottom_style"==t){let h="top";"section_divider_bottom_style"==t&&(h="bottom");let f=jQuery('.dslc-section-divider[data-divider-pos="'+h+'"] svg',o).attr("style");if(jQuery('.dslc-section-divider[data-divider-pos="'+h+'"]',o).html(""),i&&i.length){let g=jQuery("#dslc-section-dividers",LiveComposer.Builder.PreviewAreaWindow.document).find("svg#"+i).clone();jQuery('.dslc-section-divider[data-divider-pos="'+h+'"]',o).html(g[0]),void 0!==f&&jQuery('.dslc-section-divider[data-divider-pos="'+h+'"] svg',o).attr("style",f)}}else if("bg_image_thumb"==t){if("enabled"==p){if(jQuery("#dslca-post-data-thumb").length){var v="url('"+jQuery("#dslca-post-data-thumb").val()+"')";d.css(s,v)}}else"disabled"==p&&d.css(s,"none")}else{e.data("css-element")&&(d=jQuery(e.data("css-element"),o)),s=s.replace(/ /g,"").split(","),n=null!=e.data("ext")?a:i;for(var b=0;b<s.length;b++)d.css(s[b],n)}if(l.val(p),!LiveComposer.Builder.Flags.generate_code_after_row_changed)return!1})},g=()=>{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 a=e.state().get("selection").first().toJSON();o.val(a.id);var s=t.parent().attr("data-id");""!=a.alt&&"image"==s&&jQuery('.dslca-module-edit-option-image_alt input[data-id="image_alt"]').val(a.alt),""!=a.title&&"image"==s&&jQuery('.dslca-module-edit-option-image_title input[data-id="image_title"]').val(a.title),jQuery(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).find('.dslca-modules-section-settings input[data-id="dslca-img-url"]').val(a.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()})},v=()=>{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")})},b=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(),C(),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(),op(function(){jQuery(".dslca-container-loader").hide()}))),jQuery("body").hasClass("rtl")){var i,a=0,s=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")||(a+=parseInt(jQuery(this).outerWidth(),10))}),jQuery(".dslca-module-edit-options-wrapper > .dslca-module-control-group:visible").each(function(e){s+=parseInt(jQuery(this).outerWidth(),10)}),i=parseInt(a)+parseInt(s)+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,a=!0,s=!0,l=!0,d=!0,n=!0,r=!0,c=!0,u=!0,p=!0,m=!0,h=!0,f=!0,g=!0,v=!0,b=!0,w=!0,y=!0,$=!0,C=!0,k=!0,_=!0,x=!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()&&(a=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="thumbnail"]').is(":checked")||(s=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="content"]').length&&!jQuery('.dslca-module-edit-field[data-id*="elements"][value="title"]').is(":checked")&&(l=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="excerpt"]').is(":checked")||(d=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="meta"]').is(":checked")||(n=!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")||(p=!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")||(m=!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")||(f=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="icon"]').length&&!jQuery('.dslca-module-edit-field[data-id*="elements"][value="icon"]').is(":checked")&&(g=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="content"]').length&&!jQuery('.dslca-module-edit-field[data-id*="elements"][value="content"]').is(":checked")&&(v=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="price"]').is(":checked")||(b=!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")||(y=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="details"]').is(":checked")||($=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="quote"]').is(":checked")||(C=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="author_name"]').is(":checked")||(k=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="author_position"]').is(":checked")||(_=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="image"]').is(":checked")||(x=!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(),a?jQuery('.dslca-module-edit-options-tab-hook[data-id="pagination_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="pagination_styling"]').hide(),s?jQuery('.dslca-module-edit-options-tab-hook[data-id="thumbnail_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="thumbnail_styling"]').hide(),l?jQuery('.dslca-module-edit-options-tab-hook[data-id="title_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="title_styling"]').hide(),d?jQuery('.dslca-module-edit-options-tab-hook[data-id="excerpt_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="excerpt_styling"]').hide(),n?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(),p?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(),m?jQuery('.dslca-module-edit-options-tab-hook[data-id="tags_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="tags_styling"]').hide(),f?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(),g?jQuery('.dslca-module-edit-options-tab-hook[data-id="icon_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="icon_styling"]').hide(),v?jQuery('.dslca-module-edit-options-tab-hook[data-id="content_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="content_styling"]').hide(),b?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(),y||$?jQuery('.dslca-module-edit-options-tab-hook[data-id="other_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="other_styling"]').hide(),C?jQuery('.dslca-module-edit-options-tab-hook[data-id="quote_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="quote_styling"]').hide(),k?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(),_?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(),x?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 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 P=jQuery(".dslca-options-filter-hook.dslca-active").data("section");jQuery('.dslca-module-edit-option[data-section="'+P+'"]').hasClass("dep-show")&&jQuery(".dslca-module-edit-option.dep-show").show(),jQuery('.dslca-module-edit-option[data-section="'+P+'"]').hasClass("dep-hide")&&jQuery(".dslca-module-edit-option.dep-hide").hide()}if(jQuery(".dslca-module-edit-options-tab-hook").hasClass("dslca-active")){var A=jQuery(".dslca-module-edit-options-tab-hook.dslca-active").data("id");jQuery('.dslca-module-edit-option[data-tab="'+A+'"]').hasClass("dependent")?(jQuery(".dslca-module-edit-option.dependent").hide(),jQuery('.dslca-module-edit-option[data-tab="'+A+'"].dep-show').show(),jQuery('.dslca-module-edit-option[data-tab="'+A+'"].dep-hide').hide()):jQuery(".dslca-module-edit-option.dependent").hide()}}function y(e,t){var o=jQuery(e).closest(".dslca-module-edit-option-icon"),i=jQuery(".dslca-module-edit-field-icon",o),a=p.indexOf(i.val());if("previous"==t)var s=a-1;else s=a+1;jQuery(".dslca-module-edit-field-icon-suggest",o).text(""),s<0&&(s=p.length-1),i.val(p[s]).trigger("change")}function $(e){window.dslcDebug&&console.log("dslc_module_options_numeric"),jQuery(e).each(function(){var e,t=jQuery(this);if(0===jQuery(".dslca-module-edit-field-slider",t).length&&t.append('<div class="dslca-module-edit-field-slider"></div>'),e=!t.hasClass("dslca-modules-section-edit-option"))var o=t.find(".dslca-module-edit-field");else o=t.find(".dslca-modules-section-edit-field");o=t.hasClass("dslca-modules-section-edit-option")?t.find(".dslca-modules-section-edit-field"):t.find(".dslca-module-edit-field");var i=t.find(".dslca-module-edit-field-slider"),a=parseFloat(o.val()),s=parseFloat(o.data("max")),l=parseFloat(o.data("min")),d=parseFloat(o.data("increment")),n=!1;if(void 0!==o.data("onlypositive")&&1===o.data("onlypositive")&&(n=!0),a>=s&&(s=2*a),!n&&a<=l&&(l=2*a),i.slider({min:l,max:s,step:d,value:o.val(),slide:function(e,t){o.val(t.value+""),o.trigger("change")},change:function(e,o){(o.value>=s||o.value<=l)&&(i.slider("destroy"),$(t))}}),i.show(),jQuery(t).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(t){n&&this.value<0&&(this.value=0);var o=(e?jQuery(t.target.closest(".dslca-module-edit-option-slider")):jQuery(t.target.closest(".dslca-modules-section-edit-option-slider"))).find(".dslca-module-edit-field-slider");void 0!==o.slider("instance")&&o.slider("value",this.value),e&&jQuery(".dslca-module-being-edited",window.LiveComposer.Builder.PreviewAreaDocument).addClass("dslca-module-change-made")}),!1})}function C(){jQuery("html").removeClass("dslc-responsive-preview"),jQuery("body").removeClass("dslc-res-big dslc-res-smaller-monitor dslc-res-phone dslc-res-tablet")}function k(e){return(k="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 _(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function x(){return(x=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){_(e,t,o[t])})}return e}function B(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,a,s=!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){var l=RegExp("^"+(i=t.val()),"i"),d=u.length,n=0;do l.test(u[n])&&!s&&(s=u[n]),n++;while(n<d);s?i!==s&&(a=s,jQuery(".dslca-module-edit-field-font-suggest",o).show()):(a=i,jQuery(".dslca-module-edit-field-font-suggest",o).hide()),jQuery(".dslca-module-edit-field-font-suggest",o).text(a),a.length&&t.val(a.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 P=B(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),A=B(/Edge/i),E=B(/firefox/i),S=B(/safari/i)&&!B(/chrome/i)&&!B(/android/i),T=B(/iP(ad|od|hone)/i),O=B(/chrome/i)&&B(/android/i),L={capture:!1,passive:!1};function I(e,t,o){e.addEventListener(t,o,!P&&L)}function W(e,t,o){e.removeEventListener(t,o,!P&&L)}function N(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(o){}return!1}}function F(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function M(e,t,o,i){if(e){o=o||document;do{if(null!=t&&(">"===t[0]?e.parentNode===o&&N(e,t):N(e,t))||i&&e===o)return e;if(e===o)break}while(e=F(e))}return null}var U,j=/\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(j," ").replace(" "+t+" "," ");e.className=(i+(o?" "+t:"")).replace(j," ")}}}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 a=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return a&&new a(o)}function q(e,t,o){if(e){var i=e.getElementsByTagName(t),a=0,s=i.length;if(o)for(;a<s;a++)o(i[a],a);return i}return[]}function X(){return document.scrollingElement||document.documentElement}function Y(e,t,o,i,a){if(e.getBoundingClientRect||e===window){var s,l,d,n,r,c,u;if(e!==window&&e!==X()?(l=(s=e.getBoundingClientRect()).top,d=s.left,n=s.bottom,r=s.right,c=s.height,u=s.width):(l=0,d=0,n=window.innerHeight,r=window.innerWidth,c=window.innerHeight,u=window.innerWidth),(t||o)&&e!==window&&(a=a||e.parentNode,!P))do if(a&&a.getBoundingClientRect&&("none"!==z(a,"transform")||o&&"static"!==z(a,"position"))){var p=a.getBoundingClientRect();l-=p.top+parseInt(z(a,"border-top-width")),d-=p.left+parseInt(z(a,"border-left-width")),n=l+s.height,r=d+s.width;break}while(a=a.parentNode);if(i&&e!==window){var m=R(a||e),h=m&&m.a,f=m&&m.d;m&&(n=(l/=f)+(c/=f),r=(d/=h)+(u/=h))}return{top:l,left:d,bottom:n,right:r,width:u,height:c}}}function K(e,t,o){for(var i=Q(e,!0),a=Y(e)[t];i;){var s=Y(i)[o];if(!("top"===o||"left"===o?a>=s:a<=s))return i;if(i===X())break;i=Q(i,!1)}return!1}function G(e,t,o){for(var i=0,a=0,s=e.children;a<s.length;){if("none"!==s[a].style.display&&s[a]!==e6.ghost&&s[a]!==e6.dragged&&M(s[a],o.draggable,e,!1)){if(i===t)return s[a];i++}a++}return null}function V(e,t){for(var o=e.lastElementChild;o&&(o===e6.ghost||"none"===z(o,"display")||t&&!N(o,t));)o=o.previousElementSibling;return o||null}function Z(e,t){var o=0;if(!e||!e.parentNode)return -1;for(;e=e.previousElementSibling;)"TEMPLATE"===e.nodeName.toUpperCase()||e===e6.clone||t&&!N(e,t)||o++;return o}function J(e){var t=0,o=0,i=X();if(e)do{var a=R(e),s=a.a,l=a.d;t+=e.scrollLeft*s,o+=e.scrollTop*l}while(e!==i&&(e=e.parentNode));return[t,o]}function Q(e,t){if(!e||!e.getBoundingClientRect)return X();var o=e,i=!1;do if(o.clientWidth<o.scrollWidth||o.clientHeight<o.scrollHeight){var a=z(o);if(o.clientWidth<o.scrollWidth&&("auto"==a.overflowX||"scroll"==a.overflowX)||o.clientHeight<o.scrollHeight&&("auto"==a.overflowY||"scroll"==a.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 et(e,t){return function(){if(!U){var o=arguments;1===o.length?e.call(this,o[0]):e.apply(this,o),U=setTimeout(function(){U=void 0},t)}}}function eo(e,t,o){e.scrollLeft+=t,e.scrollTop+=o}function ei(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 ea="Sortable"+new Date().getTime(),es=[],el={initializeByDefault:!0},ed={mount:function(e){for(var t in el)!el.hasOwnProperty(t)||t in e||(e[t]=el[t]);es.push(e)},pluginEvent:function(e,t,o){var i=this;this.eventCanceled=!1,o.cancel=function(){i.eventCanceled=!0};var a=e+"Global";es.forEach(function(i){t[i.pluginName]&&(t[i.pluginName][a]&&t[i.pluginName][a](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 a in es.forEach(function(i){var a=i.pluginName;if(e.options[a]||i.initializeByDefault){var s=new i(e,t,e.options);s.sortable=e,s.options=e.options,e[a]=s,x(o,s.defaults)}}),e.options)if(e.options.hasOwnProperty(a)){var s=this.modifyOption(e,a,e.options[a]);void 0!==s&&(e.options[a]=s)}},getEventProperties:function(e,t){var o={};return es.forEach(function(i){"function"==typeof i.eventProperties&&x(o,i.eventProperties.call(t[i.pluginName],e))}),o},modifyOption:function(e,t,o){var i;return es.forEach(function(a){e[a.pluginName]&&a.optionListeners&&"function"==typeof a.optionListeners[t]&&(i=a.optionListeners[t].call(e[a.pluginName],o))}),i}},en=function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=o.evt,a=function(e,t){if(null==e)return{};var o,i,a=function(e,t){if(null==e)return{};var o,i,a={},s=Object.keys(e);for(i=0;i<s.length;i++)o=s[i],t.indexOf(o)>=0||(a[o]=e[o]);return a}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)o=s[i],t.indexOf(o)>=0||Object.prototype.propertyIsEnumerable.call(e,o)&&(a[o]=e[o])}return a}(o,["evt"]);ed.pluginEvent.bind(e6)(e,t,D({dragEl:ec,parentEl:eu,ghostEl:ep,rootEl:em,nextEl:eh,lastDownEl:ef,cloneEl:eg,cloneHidden:ev,dragStarted:eA,putSortable:eC,activeSortable:e6.active,originalEvent:i,oldIndex:eb,oldDraggableIndex:ew,newIndex:e8,newDraggableIndex:ey,hideGhostForTarget:eX,unhideGhostForTarget:e4,cloneNowHidden:function(){ev=!0},cloneNowShown:function(){ev=!1},dispatchSortableEvent:function(e){er({sortable:t,name:e,originalEvent:i})}},a))};function er(e){!function(e){var t=e.sortable,o=e.rootEl,i=e.name,a=e.targetEl,s=e.cloneEl,l=e.toEl,d=e.fromEl,n=e.oldIndex,r=e.newIndex,c=e.oldDraggableIndex,u=e.newDraggableIndex,p=e.originalEvent,m=e.putSortable,h=e.extraEventProperties;if(t=t||o&&o[ea]){var f,g=t.options,v="on"+i.charAt(0).toUpperCase()+i.substr(1);!window.CustomEvent||P||A?(f=document.createEvent("Event")).initEvent(i,!0,!0):f=new CustomEvent(i,{bubbles:!0,cancelable:!0}),f.to=l||o,f.from=d||o,f.item=a||o,f.clone=s,f.oldIndex=n,f.newIndex=r,f.oldDraggableIndex=c,f.newDraggableIndex=u,f.originalEvent=p,f.pullMode=m?m.lastPutMode:void 0;var b=D({},h,ed.getEventProperties(i,t));for(var w in b)f[w]=b[w];o&&o.dispatchEvent(f),g[v]&&g[v].call(t,f)}}(D({putSortable:eC,cloneEl:eg,targetEl:ec,rootEl:em,oldIndex:eb,oldDraggableIndex:ew,newIndex:e8,newDraggableIndex:ey},e))}var ec,eu,ep,em,eh,ef,eg,ev,eb,e8,ew,ey,e$,eC,ek,e_,ex,eD,eB,eP,eA,eE,eS,eT,eO,eL=!1,eI=!1,e0=[],eW=!1,eN=!1,eF=[],eM=!1,e1=[],eU="undefined"!=typeof document,ej=T,eH=A||P?"cssFloat":"float",e3=eU&&!O&&!T&&"draggable"in document.createElement("div"),ez=function(){if(eU){if(P)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),eR=function(e,t){var o=z(e),i=parseInt(o.width)-parseInt(o.paddingLeft)-parseInt(o.paddingRight)-parseInt(o.borderLeftWidth)-parseInt(o.borderRightWidth),a=G(e,0,t),s=G(e,1,t),l=a&&z(a),d=s&&z(s),n=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+Y(a).width,r=d&&parseInt(d.marginLeft)+parseInt(d.marginRight)+Y(s).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(a&&l.float&&"none"!==l.float){var c="left"===l.float?"left":"right";return s&&("both"===d.clear||d.clear===c)?"vertical":"horizontal"}return a&&("block"===l.display||"flex"===l.display||"table"===l.display||"grid"===l.display||n>=i&&"none"===o[eH]||s&&"none"===o[eH]&&n+r>i)?"vertical":"horizontal"},eq=function(e){function t(e,o){return function(i,a,s,l){var d=i.options.group.name&&a.options.group.name&&i.options.group.name===a.options.group.name;if(null==e&&(o||d))return!0;if(null==e||!1===e)return!1;if(o&&"clone"===e)return e;if("function"==typeof e)return t(e(i,a,s,l),o)(i,a,s,l);var n=(o?i:a).options.group.name;return!0===e||"string"==typeof e&&e===n||e.join&&e.indexOf(n)>-1}}var o={},i=e.group;i&&"object"==k(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},eX=function(){!ez&&ep&&z(ep,"display","none")},e4=function(){!ez&&ep&&z(ep,"display","")};eU&&document.addEventListener("click",function(e){if(eI)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),eI=!1,!1},!0);var eY=function(e){if(ec){var t,o,i,a=(t=(e=e.touches?e.touches[0]:e).clientX,o=e.clientY,e0.some(function(e){if(!V(e)){var a=Y(e),s=e[ea].options.emptyInsertThreshold,l=t>=a.left-s&&t<=a.right+s,d=o>=a.top-s&&o<=a.bottom+s;return s&&l&&d?i=e:void 0}}),i);if(a){var s={};for(var l in e)e.hasOwnProperty(l)&&(s[l]=e[l]);s.target=s.rootEl=a,s.preventDefault=void 0,s.stopPropagation=void 0,a[ea]._onDragOver(s)}}},e2=function(e){ec&&ec.parentNode[ea]._isOutsideThisEl(e.target)};function e6(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=x({},t),e[ea]=this;var o,i,a={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 eR(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!==e6.supportPointer&&"PointerEvent"in window,emptyInsertThreshold:5};for(var s in ed.initializePlugins(this,e,a),a)s in t||(t[s]=a[s]);for(var l in eq(t),this)"_"===l.charAt(0)&&"function"==typeof this[l]&&(this[l]=this[l].bind(this));this.nativeDraggable=!t.forceFallback&&e3,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?I(e,"pointerdown",this._onTapStart):(I(e,"mousedown",this._onTapStart),I(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(I(e,"dragover",this),I(e,"dragenter",this)),e0.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),x(this,(i=[],{captureAnimationState:function(){i=[],this.options.animation&&[].slice.call(this.el.children).forEach(function(e){if("none"!==z(e,"display")&&e!==e6.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 a=!1,s=0;i.forEach(function(e){var o,i,l,d,n=0,r=e.target,c=r.fromRect,u=Y(r),p=r.prevFromRect,m=r.prevToRect,h=e.rect,f=R(r,!0);f&&(u.top-=f.f,u.left-=f.e),r.toRect=u,r.thisAnimationDuration&&ee(p,u)&&!ee(c,u)&&(h.top-u.top)/(h.left-u.left)==(c.top-u.top)/(c.left-u.left)&&(o=h,i=p,l=m,d=t.options,n=Math.sqrt(Math.pow(i.top-o.top,2)+Math.pow(i.left-o.left,2))/Math.sqrt(Math.pow(i.top-l.top,2)+Math.pow(i.left-l.left,2))*d.animation),ee(u,c)||(r.prevFromRect=c,r.prevToRect=u,n||(n=t.options.animation),t.animate(r,h,u,n)),n&&(a=!0,s=Math.max(s,n),clearTimeout(r.animationResetTimer),r.animationResetTimer=setTimeout(function(){r.animationTime=0,r.prevFromRect=null,r.fromRect=null,r.prevToRect=null,r.thisAnimationDuration=null},n),r.thisAnimationDuration=n)}),clearTimeout(o),a?o=setTimeout(function(){"function"==typeof e&&e()},s):"function"==typeof e&&e(),i=[]},animate:function(e,t,o,i){if(i){z(e,"transition",""),z(e,"transform","");var a=R(this.el),s=a&&a.a,l=a&&a.d,d=(t.left-o.left)/(s||1),n=(t.top-o.top)/(l||1);e.animatingX=!!d,e.animatingY=!!n,z(e,"transform","translate3d("+d+"px,"+n+"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 e7(e,t,o,i,a,s,l,d){var n,r,c=e[ea],u=c.options.onMove;return!window.CustomEvent||P||A?(n=document.createEvent("Event")).initEvent("move",!0,!0):n=new CustomEvent("move",{bubbles:!0,cancelable:!0}),n.to=t,n.from=e,n.dragged=o,n.draggedRect=i,n.related=a||t,n.relatedRect=s||Y(t),n.willInsertAfter=d,n.originalEvent=l,e.dispatchEvent(n),u&&(r=u.call(c,n,l)),r}function e5(e){e.draggable=!1}function eK(){eM=!1}function eG(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 eV(e){return setTimeout(e,0)}function e9(e){return clearTimeout(e)}e6.prototype={constructor:e6,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(eE=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,ec):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,o=this.el,i=this.options,a=i.preventOnFilter,s=e.type,l=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,d=(l||e).target,n=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||d,r=i.filter;if(function(e){e1.length=0;for(var t=e.getElementsByTagName("input"),o=t.length;o--;){var i=t[o];i.checked&&e1.push(i)}}(o),!ec&&!(/mousedown|pointerdown/.test(s)&&0!==e.button||i.disabled||n.isContentEditable||(d=M(d,i.draggable,o,!1))&&d.animated||ef===d)){if(eb=Z(d),ew=Z(d,i.draggable),"function"==typeof r){if(r.call(this,e,d,this))return er({sortable:t,rootEl:n,name:"filter",targetEl:d,toEl:o,fromEl:o}),en("filter",t,{evt:e}),void(a&&e.cancelable&&e.preventDefault())}else if(r&&(r=r.split(",").some(function(i){if(i=M(n,i.trim(),o,!1))return er({sortable:t,rootEl:i,name:"filter",targetEl:d,fromEl:o,toEl:o}),en("filter",t,{evt:e}),!0})))return void(a&&e.cancelable&&e.preventDefault());i.handle&&!M(n,i.handle,o,!1)||this._prepareDragStart(e,l,d)}}},_prepareDragStart:function(e,t,o){var i,a=this,s=a.el,l=a.options,d=s.ownerDocument;if(o&&!ec&&o.parentNode===s){var n=Y(o);if(em=s,eu=(ec=o).parentNode,eh=ec.nextSibling,ef=o,e$=l.group,e6.dragged=ec,eB=(ek={target:ec,clientX:(t||e).clientX,clientY:(t||e).clientY}).clientX-n.left,eP=ek.clientY-n.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,ec.style["will-change"]="all",i=function(){en("delayEnded",a,{evt:e}),e6.eventCanceled?a._onDrop():(a._disableDelayedDragEvents(),!E&&a.nativeDraggable&&(ec.draggable=!0),a._triggerDragStart(e,t),er({sortable:a,name:"choose",originalEvent:e}),H(ec,l.chosenClass,!0))},l.ignore.split(",").forEach(function(e){q(ec,e.trim(),e5)}),I(d,"dragover",eY),I(d,"mousemove",eY),I(d,"touchmove",eY),I(d,"mouseup",a._onDrop),I(d,"touchend",a._onDrop),I(d,"touchcancel",a._onDrop),E&&this.nativeDraggable&&(this.options.touchStartThreshold=4,ec.draggable=!0),en("delayStart",this,{evt:e}),!l.delay||l.delayOnTouchOnly&&!t||this.nativeDraggable&&(A||P))i();else{if(e6.eventCanceled)return void this._onDrop();I(d,"mouseup",a._disableDelayedDrag),I(d,"touchend",a._disableDelayedDrag),I(d,"touchcancel",a._disableDelayedDrag),I(d,"mousemove",a._delayedDragTouchMoveHandler),I(d,"touchmove",a._delayedDragTouchMoveHandler),l.supportPointer&&I(d,"pointermove",a._delayedDragTouchMoveHandler),a._dragStartTimer=setTimeout(i,l.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(){ec&&e5(ec),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;W(e,"mouseup",this._disableDelayedDrag),W(e,"touchend",this._disableDelayedDrag),W(e,"touchcancel",this._disableDelayedDrag),W(e,"mousemove",this._delayedDragTouchMoveHandler),W(e,"touchmove",this._delayedDragTouchMoveHandler),W(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?I(document,"pointermove",this._onTouchMove):I(document,t?"touchmove":"mousemove",this._onTouchMove):(I(ec,"dragend",this),I(em,"dragstart",this._onDragStart));try{document.selection?eV(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch(o){}},_dragStarted:function(e,t){if(eL=!1,em&&ec){en("dragStarted",this,{evt:t}),this.nativeDraggable&&I(document,"dragover",e2);var o=this.options;e||H(ec,o.dragClass,!1),H(ec,o.ghostClass,!0),e6.active=this,e&&this._appendGhost(),er({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(e_){this._lastX=e_.clientX,this._lastY=e_.clientY,eX();for(var e=document.elementFromPoint(e_.clientX,e_.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(e_.clientX,e_.clientY))!==t;)t=e;if(ec.parentNode[ea]._isOutsideThisEl(e),t)do{if(t[ea]&&t[ea]._onDragOver({clientX:e_.clientX,clientY:e_.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break;e=t}while(t=t.parentNode);e4()}},_onTouchMove:function(e){if(ek){var t=this.options,o=t.fallbackTolerance,i=t.fallbackOffset,a=e.touches?e.touches[0]:e,s=ep&&R(ep,!0),l=ep&&s&&s.a,d=ep&&s&&s.d,n=ej&&eO&&J(eO),r=(a.clientX-ek.clientX+i.x)/(l||1)+(n?n[0]-eF[0]:0)/(l||1),c=(a.clientY-ek.clientY+i.y)/(d||1)+(n?n[1]-eF[1]:0)/(d||1);if(!e6.active&&!eL){if(o&&Math.max(Math.abs(a.clientX-this._lastX),Math.abs(a.clientY-this._lastY))<o)return;this._onDragStart(e,!0)}if(ep){s?(s.e+=r-(ex||0),s.f+=c-(eD||0)):s={a:1,b:0,c:0,d:1,e:r,f:c};var u="matrix(".concat(s.a,",").concat(s.b,",").concat(s.c,",").concat(s.d,",").concat(s.e,",").concat(s.f,")");z(ep,"webkitTransform",u),z(ep,"mozTransform",u),z(ep,"msTransform",u),z(ep,"transform",u),ex=r,eD=c,e_=a}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!ep){var e=this.options.fallbackOnBody?document.body:em,t=Y(ec,!0,ej,!0,e),o=this.options;if(ej){for(eO=e;"static"===z(eO,"position")&&"none"===z(eO,"transform")&&eO!==document;)eO=eO.parentNode;eO!==document.body&&eO!==document.documentElement?(eO===document&&(eO=X()),t.top+=eO.scrollTop,t.left+=eO.scrollLeft):eO=X(),eF=J(eO)}H(ep=ec.cloneNode(!0),o.ghostClass,!1),H(ep,o.fallbackClass,!0),H(ep,o.dragClass,!0),z(ep,"transition",""),z(ep,"transform",""),z(ep,"box-sizing","border-box"),z(ep,"margin",0),z(ep,"top",t.top),z(ep,"left",t.left),z(ep,"width",t.width),z(ep,"height",t.height),z(ep,"opacity","0.8"),z(ep,"position",ej?"absolute":"fixed"),z(ep,"zIndex","100000"),z(ep,"pointerEvents","none"),e6.ghost=ep,e.appendChild(ep),z(ep,"transform-origin",eB/parseInt(ep.style.width)*100+"% "+eP/parseInt(ep.style.height)*100+"%")}},_onDragStart:function(e,t){var o=this,i=e.dataTransfer,a=o.options;en("dragStart",this,{evt:e}),e6.eventCanceled?this._onDrop():(en("setupClone",this),e6.eventCanceled||((eg=ei(ec)).draggable=!1,eg.style["will-change"]="",this._hideClone(),H(eg,this.options.chosenClass,!1),e6.clone=eg),o.cloneId=eV(function(){en("clone",o),e6.eventCanceled||(o.options.removeCloneOnHide||em.insertBefore(eg,ec),o._hideClone(),er({sortable:o,name:"clone"}))}),t||H(ec,a.dragClass,!0),t?(eI=!0,o._loopId=setInterval(o._emulateDragOver,50)):(W(document,"mouseup",o._onDrop),W(document,"touchend",o._onDrop),W(document,"touchcancel",o._onDrop),i&&(i.effectAllowed="move",a.setData&&a.setData.call(o,i,ec)),I(document,"drop",o),z(ec,"transform","translateZ(0)")),eL=!0,o._dragStartId=eV(o._dragStarted.bind(o,t,e)),I(document,"selectstart",o),eA=!0,S&&z(document.body,"user-select","none"))},_onDragOver:function(e){var t,o,i,a,s=this.el,l=e.target,d=this.options,n=d.group,r=e6.active,c=e$===n,u=d.sort,p=eC||r,m=this,h=!1;if(!eM){if(void 0!==e.preventDefault&&e.cancelable&&e.preventDefault(),l=M(l,d.draggable,s,!0),R("dragOver"),e6.eventCanceled)return h;if(ec.contains(e.target)||l.animated&&l.animatingX&&l.animatingY||m._ignoreWhileAnimating===l)return X(!1);if(eI=!1,r&&!d.disabled&&(c?u||(i=!em.contains(ec)):eC===this||(this.lastPutMode=e$.checkPull(this,r,ec,e))&&n.checkPut(this,r,ec,e))){if(a="vertical"===this._getDirection(e,l),t=Y(ec),R("dragOverValid"),e6.eventCanceled)return h;if(i)return eu=em,q(),this._hideClone(),R("revert"),e6.eventCanceled||(eh?em.insertBefore(ec,eh):em.appendChild(ec)),X(!0);var f,g,v,b=V(s,d.draggable);if(!b||(f=e,g=a,v=Y(V(this.el,this.options.draggable)),(g?f.clientX>v.right+10||f.clientX<=v.right&&f.clientY>v.bottom&&f.clientX>=v.left:f.clientX>v.right&&f.clientY>v.top||f.clientX<=v.right&&f.clientY>v.bottom+10)&&!b.animated)){if(b===ec)return X(!1);if(b&&s===e.target&&(l=b),l&&(o=Y(l)),!1!==e7(em,s,ec,t,l,o,e,!!l))return q(),s.appendChild(ec),eu=s,G(),X(!0)}else if(l.parentNode===s){o=Y(l);var w,y,$,C,k,_,x,B,P,A,E,S,T=ec.parentNode!==s,O=(w=ec.animated&&ec.toRect||t,y=l.animated&&l.toRect||o,C=($=a)?w.left:w.top,k=$?w.right:w.bottom,_=$?w.width:w.height,x=$?y.left:y.top,B=$?y.right:y.bottom,P=$?y.width:y.height,C!==x&&k!==B&&C+_/2!==x+P/2),L=a?"top":"left",I=K(l,"top","top")||K(ec,"top","top"),W=I?I.scrollTop:void 0;if(eE!==l&&(E=o[L],eW=!1,eN=!O&&d.invertSwap||T),0!==(A=function(e,t,o,i,a,s,l,d){var n,r=i?e.clientY:e.clientX,c=i?o.height:o.width,u=i?o.top:o.left,p=i?o.bottom:o.right,m=!1;if(!l){if(d&&eT<c*a){if(!eW&&(1===eS?r>u+c*s/2:r<p-c*s/2)&&(eW=!0),eW)m=!0;else if(1===eS?r<u+eT:r>p-eT)return-eS}else if(r>u+c*(1-a)/2&&r<p-c*(1-a)/2)return n=t,Z(ec)<Z(n)?1:-1}return(m=m||l)&&(r<u+c*s/2||r>p-c*s/2)?r>u+c/2?1:-1:0}(e,l,o,a,O?1:d.swapThreshold,null==d.invertedSwapThreshold?d.swapThreshold:d.invertedSwapThreshold,eN,eE===l))){var N=Z(ec);do N-=A,S=eu.children[N];while(S&&("none"===z(S,"display")||S===ep))}if(0===A||S===l)return X(!1);eE=l,eS=A;var F=l.nextElementSibling,U=!1,j=e7(em,s,ec,t,l,o,e,U=1===A);if(!1!==j)return 1!==j&&-1!==j||(U=1===j),eM=!0,setTimeout(eK,30),q(),U&&!F?s.appendChild(ec):l.parentNode.insertBefore(ec,U?F:l),I&&eo(I,0,W-I.scrollTop),eu=ec.parentNode,void 0===E||eN||(eT=Math.abs(E-Y(l)[L])),G(),X(!0)}if(s.contains(ec))return X(!1)}return!1}function R(d,n){en(d,m,D({evt:e,isOwner:c,axis:a?"vertical":"horizontal",revert:i,dragRect:t,targetRect:o,canSort:u,fromSortable:p,target:l,completed:X,onMove:function(o,i){return e7(em,s,ec,t,o,Y(o),e,i)},changed:G},n))}function q(){R("dragOverAnimationCapture"),m.captureAnimationState(),m!==p&&p.captureAnimationState()}function X(t){return R("dragOverCompleted",{insertion:t}),t&&(c?r._hideClone():r._showClone(m),m!==p&&(H(ec,eC?eC.options.ghostClass:r.options.ghostClass,!1),H(ec,d.ghostClass,!0)),eC!==m&&m!==e6.active?eC=m:m===e6.active&&eC&&(eC=null),p===m&&(m._ignoreWhileAnimating=l),m.animateAll(function(){R("dragOverAnimationComplete"),m._ignoreWhileAnimating=null}),m!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(l!==ec||ec.animated)&&(l!==s||l.animated)||(eE=null),d.dragoverBubble||e.rootEl||l===document||(ec.parentNode[ea]._isOutsideThisEl(e.target),t||eY(e)),!d.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),h=!0}function G(){e8=Z(ec),ey=Z(ec,d.draggable),er({sortable:m,name:"change",toEl:s,newIndex:e8,newDraggableIndex:ey,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){W(document,"mousemove",this._onTouchMove),W(document,"touchmove",this._onTouchMove),W(document,"pointermove",this._onTouchMove),W(document,"dragover",eY),W(document,"mousemove",eY),W(document,"touchmove",eY)},_offUpEvents:function(){var e=this.el.ownerDocument;W(e,"mouseup",this._onDrop),W(e,"touchend",this._onDrop),W(e,"pointerup",this._onDrop),W(e,"touchcancel",this._onDrop),W(document,"selectstart",this)},_onDrop:function(e){var t=this.el,o=this.options;e8=Z(ec),ey=Z(ec,o.draggable),en("drop",this,{evt:e}),eu=ec&&ec.parentNode,e8=Z(ec),ey=Z(ec,o.draggable),e6.eventCanceled||(eL=!1,eN=!1,eW=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),e9(this.cloneId),e9(this._dragStartId),this.nativeDraggable&&(W(document,"drop",this),W(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),S&&z(document.body,"user-select",""),z(ec,"transform",""),e&&(eA&&(e.cancelable&&e.preventDefault(),o.dropBubble||e.stopPropagation()),ep&&ep.parentNode&&ep.parentNode.removeChild(ep),(em===eu||eC&&"clone"!==eC.lastPutMode)&&eg&&eg.parentNode&&eg.parentNode.removeChild(eg),ec&&(this.nativeDraggable&&W(ec,"dragend",this),e5(ec),ec.style["will-change"]="",eA&&!eL&&H(ec,eC?eC.options.ghostClass:this.options.ghostClass,!1),H(ec,this.options.chosenClass,!1),er({sortable:this,name:"unchoose",toEl:eu,newIndex:null,newDraggableIndex:null,originalEvent:e}),em!==eu?(e8>=0&&(er({rootEl:eu,name:"add",toEl:eu,fromEl:em,originalEvent:e}),er({sortable:this,name:"remove",toEl:eu,originalEvent:e}),er({rootEl:eu,name:"sort",toEl:eu,fromEl:em,originalEvent:e}),er({sortable:this,name:"sort",toEl:eu,originalEvent:e})),eC&&eC.save()):e8!==eb&&e8>=0&&(er({sortable:this,name:"update",toEl:eu,originalEvent:e}),er({sortable:this,name:"sort",toEl:eu,originalEvent:e})),e6.active&&(null!=e8&&-1!==e8||(e8=eb,ey=ew),er({sortable:this,name:"end",toEl:eu,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){en("nulling",this),em=ec=eu=ep=eh=eg=ef=ev=ek=e_=eA=e8=ey=eb=ew=eE=eS=eC=e$=e6.dragged=e6.ghost=e6.clone=e6.active=null,e1.forEach(function(e){e.checked=!0}),e1.length=ex=eD=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":var t;ec&&(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,a=o.length,s=this.options;i<a;i++)M(e=o[i],s.draggable,this.el,!1)&&t.push(e.getAttribute(s.dataIdAttr)||eG(e));return t},sort:function(e){var t={},o=this.el;this.toArray().forEach(function(e,i){var a=o.children[i];M(a,this.options.draggable,o,!1)&&(t[e]=a)},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 M(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=ed.modifyOption(this,e,t);o[e]=void 0!==i?i:t,"group"===e&&eq(o)},destroy:function(){en("destroy",this);var e=this.el;e[ea]=null,W(e,"mousedown",this._onTapStart),W(e,"touchstart",this._onTapStart),W(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(W(e,"dragover",this),W(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),function(e){e.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),e0.splice(e0.indexOf(this.el),1),this.el=e=null},_hideClone:function(){ev||(en("hideClone",this),e6.eventCanceled||(z(eg,"display","none"),this.options.removeCloneOnHide&&eg.parentNode&&eg.parentNode.removeChild(eg),ev=!0))},_showClone:function(e){"clone"===e.lastPutMode?ev&&(en("showClone",this),e6.eventCanceled||(em.contains(ec)&&!this.options.group.revertClone?em.insertBefore(eg,ec):eh?em.insertBefore(eg,eh):em.appendChild(eg),this.options.group.revertClone&&this.animate(ec,eg),z(eg,"display",""),ev=!1)):this._hideClone()}},eU&&I(document,"touchmove",function(e){(e6.active||eL)&&e.cancelable&&e.preventDefault()}),e6.utils={on:I,off:W,css:z,find:q,is:function(e,t){return!!M(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:et,closest:M,toggleClass:H,clone:ei,index:Z,nextTick:eV,cancelNextTick:e9,detectDirection:eR,getChild:G},e6.get=function(e){return e[ea]},e6.mount=function(){for(var e=arguments.length,t=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&&(e6.utils=D({},e6.utils,e.utils)),ed.mount(e)})},e6.create=function(e,t){return new e6(e,t)},e6.version="1.10.2";var eZ,eJ,eQ,te,tt,to,ti=[],ta=!1;function ts(){ti.forEach(function(e){clearInterval(e.pid)}),ti=[]}function tl(){clearInterval(to)}var td=et(function(e,t,o,i){if(t.scroll){var a,s=(e.touches?e.touches[0]:e).clientX,l=(e.touches?e.touches[0]:e).clientY,d=t.scrollSensitivity,n=t.scrollSpeed,r=X(),c=!1;eJ!==o&&(eJ=o,ts(),eZ=t.scroll,a=t.scrollFn,!0===eZ&&(eZ=Q(o,!0)));var u=0,p=eZ;do{var m=p,h=Y(m),f=h.top,g=h.bottom,v=h.left,b=h.right,w=h.width,y=h.height,$=void 0,C=void 0,k=m.scrollWidth,_=m.scrollHeight,x=z(m),D=m.scrollLeft,B=m.scrollTop;m===r?($=w<k&&("auto"===x.overflowX||"scroll"===x.overflowX||"visible"===x.overflowX),C=y<_&&("auto"===x.overflowY||"scroll"===x.overflowY||"visible"===x.overflowY)):($=w<k&&("auto"===x.overflowX||"scroll"===x.overflowX),C=y<_&&("auto"===x.overflowY||"scroll"===x.overflowY));var P=$&&(Math.abs(b-s)<=d&&D+w<k)-(Math.abs(v-s)<=d&&!!D),A=C&&(Math.abs(g-l)<=d&&B+y<_)-(Math.abs(f-l)<=d&&!!B);if(!ti[u])for(var E=0;E<=u;E++)ti[E]||(ti[E]={});ti[u].vx==P&&ti[u].vy==A&&ti[u].el===m||(ti[u].el=m,ti[u].vx=P,ti[u].vy=A,clearInterval(ti[u].pid),0==P&&0==A||(c=!0,ti[u].pid=setInterval((function(){i&&0===this.layer&&e6.active._onTouchMove(tt);var t=ti[this.layer].vy?ti[this.layer].vy*n:0,o=ti[this.layer].vx?ti[this.layer].vx*n:0;"function"==typeof a&&"continue"!==a.call(e6.dragged.parentNode[ea],o,t,e,tt,ti[this.layer].el)||eo(ti[this.layer].el,o,t)}).bind({layer:u}),24))),u++}while(t.bubbleScroll&&p!==r&&(p=Q(p,!1)));ta=c}},30),tn=function(e){var t=e.originalEvent,o=e.putSortable,i=e.dragEl,a=e.activeSortable,s=e.dispatchSortableEvent,l=e.hideGhostForTarget,d=e.unhideGhostForTarget;if(t){var n=o||a;l();var r=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,c=document.elementFromPoint(r.clientX,r.clientY);d(),n&&!n.el.contains(c)&&(s("spill"),this.onSpill({dragEl:i,putSortable:o}))}};function tr(){}function tc(){}tr.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=G(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:tn},x(tr,{pluginName:"revertOnSpill"}),tc.prototype={onSpill:function(e){var t=e.dragEl,o=e.putSortable||this.sortable;o.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),o.animateAll()},drop:tn},x(tc,{pluginName:"removeOnSpill"}),e6.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?I(document,"dragover",this._handleAutoScroll):this.options.supportPointer?I(document,"pointermove",this._handleFallbackAutoScroll):t.touches?I(document,"touchmove",this._handleFallbackAutoScroll):I(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;this.options.dragOverBubble||t.rootEl||this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?W(document,"dragover",this._handleAutoScroll):(W(document,"pointermove",this._handleFallbackAutoScroll),W(document,"touchmove",this._handleFallbackAutoScroll),W(document,"mousemove",this._handleFallbackAutoScroll)),tl(),ts(),clearTimeout(U),U=void 0},nulling:function(){tt=eJ=eZ=ta=to=eQ=te=null,ti.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var o=this,i=(e.touches?e.touches[0]:e).clientX,a=(e.touches?e.touches[0]:e).clientY,s=document.elementFromPoint(i,a);if(tt=e,t||A||P||S){td(e,this.options,s,t);var l=Q(s,!0);!ta||to&&i===eQ&&a===te||(to&&tl(),to=setInterval(function(){var s=Q(document.elementFromPoint(i,a),!0);s!==l&&(l=s,ts()),td(e,o.options,s,t)},10),eQ=i,te=a)}else{if(!this.options.bubbleScroll||Q(s,!0)===X())return void ts();td(e,this.options,Q(s,!1),!1)}}},x(e,{pluginName:"scroll",initializeByDefault:!0})}),e6.mount(tc,tr);var tu=e6;window.onerror=function(e,t,o,i){tv(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){tv(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(),tm(".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");tm(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"),a=jQuery(this).closest(".dslca-section");a.hasClass("dslca-templates-load"),jQuery(".dslca-section-title-filter-curr",a).text(jQuery(this).text()),jQuery(".dslca-section-scroller-inner").css({left:0}),t=i,o=a,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 tp=()=>{window.dslcDebug&&console.log("hidePublishButton"),jQuery(".dslca-save-composer").hide(),jQuery(".dslca-save-draft-composer").hide()},tm=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(""),b(),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 th(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,a="";"tablet_responsive"===t.data("tab")?a="body.dslc-res-tablet ":"phone_responsive"===t.data("tab")&&(a="body.dslc-res-phone ");var s=o.data("affect-on-change-el");if(void 0!==s){var l,d,n=s.split(",");s="";for(var r=0;r<n.length;r++)r>0&&(s+=", "),s+=a+"#"+i+" "+n[r];var c,u=o.data("affect-on-change-rule").replace(/ /g,"").split(","),p=o.data("ext");if(t.toggleClass("dslca-option-off"),t.hasClass("dslca-option-off")){for(c=tg(e),o.data("val-bckp",c),r=0;r<u.length;r++)jQuery(s,LiveComposer.Builder.PreviewAreaDocument).css(u[r],""),tf(s,u[r],i);o.val("").trigger("change")}else for(o.val(o.data("val-bckp")).trigger("change"),d=p||"",""===(l=c=tg(e))||null===l||-1==l.indexOf(d)&&(l+=d),c=l,r=0;r<u.length;r++){var m=s+"{"+u[r]+": "+c+"}";LiveComposer.Builder.Helpers.processInlineStyleTag({context:t,rule:u[r],elems:s.replace(RegExp("#"+i,"gi"),"").trim(),styleContent:m})}}}}function tf(e,t,o){var i,a=document.getElementById("page-builder-frame").contentWindow.document.getElementById("css-for-"+o);if(e=e.replace(/\s\s+/g," "),a){(a=a.sheet).rules?i="rules":a.cssRules&&(i="cssRules");for(var s=0;s<a[i].length;s++)if(a[i][s].selectorText==e&&a[i][s].style[t]){a[i][s].style[t]="";break}}}function tg(e){return jQuery(".dslca-module-edit-option-"+e).find(".dslca-module-edit-field").val()}function tv(e,t,o,i){var a="JavaScript error detected in a third-party plugin";null!=t.match("wp-content/plugins/live-composer-page-builder/js")&&(a="Live Composer returned JS error");var s="";s+='<br /><strong style="color:#E55F5F;">'+a+"</strong><br />",s+=e+'<br /> File "'+t+'", line '+o+", char "+i+"<br />","undefined"!=typeof Storage&&localStorage.setItem("js_errors_report",s)}jQuery(document).ready(function(e){jQuery(document).on("click",".dslca-module-edit-option .dslc-control-toggle",function(e){e.preventDefault(),th(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")&&th(jQuery(e.target).closest(".dslca-module-edit-option").find(".dslca-module-edit-field").data("id"))})}),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"),a=(jQuery(o).data("editing-type"),jQuery(o).data("editing-label")),s=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">'+a+"</a>",void 0!==s&&(t+=' <span class="dslc-hf-block-overlay-text">'+s+"</span>"),t+="</div>";var l=document.createElement("div");l.innerHTML=t,o.append(l)})});var tb={update:null,begin:null,loopBegin:null,changeBegin:null,change:null,changeComplete:null,loopComplete:null,complete:null,loop:1,direction:"normal",autoplay:!0,timelineOffset:0},t8={duration:1e3,delay:0,endDelay:0,easing:"easeOutElastic(1, .5)",round:0},tw=["translateX","translateY","translateZ","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","scaleZ","skew","skewX","skewY","perspective"],ty={CSS:{},springs:{}};function t$(e,t,o){return Math.min(Math.max(e,t),o)}function tC(e,t){return e.indexOf(t)>-1}function tk(e,t){return e.apply(null,t)}var t_={arr:function(e){return Array.isArray(e)},obj:function(e){return tC(Object.prototype.toString.call(e),"Object")},pth:function(e){return t_.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||t_.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 t_.hex(e)||t_.rgb(e)||t_.hsl(e)},key:function(e){return!tb.hasOwnProperty(e)&&!t8.hasOwnProperty(e)&&"targets"!==e&&"keyframes"!==e}};function tx(e){var t=/\(([^)]+)\)/.exec(e);return t?t[1].split(",").map(function(e){return parseFloat(e)}):[]}function tD(e,t){var o=tx(e),i=t$(t_.und(o[0])?1:o[0],.1,100),a=t$(t_.und(o[1])?100:o[1],.1,100),s=t$(t_.und(o[2])?10:o[2],.1,100),l=t$(t_.und(o[3])?0:o[3],.1,100),d=Math.sqrt(a/i),n=s/(2*Math.sqrt(a*i)),r=n<1?d*Math.sqrt(1-n*n):0,c=n<1?(n*d-l)/r:-l+d;function u(e){var o=t?t*e/1e3:e;return o=n<1?Math.exp(-o*n*d)*(1*Math.cos(r*o)+c*Math.sin(r*o)):(1+c*o)*Math.exp(-o*d),0===e||1===e?e:1-o}return t?u:function(){var t=ty.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 a=o*(1/6)*1e3;return ty.springs[e]=a,a}}function tB(e){return void 0===e&&(e=10),function(t){return Math.round(t*e)*(1/e)}}var tP,tA,tE=function(){function e(e,t){return 1-3*t+3*e}function t(e,t){return 3*t-6*e}function o(o,i,a){return((e(i,a)*o+t(i,a))*o+3*i)*o}function i(o,i,a){return 3*e(i,a)*o*o+2*t(i,a)*o+3*i}return function(e,t,a,s){if(0<=e&&e<=1&&0<=a&&a<=1){var l=new Float32Array(11);if(e!==t||a!==s)for(var d=0;d<11;++d)l[d]=o(.1*d,e,a);return function(d){return e===t&&a===s||0===d||1===d?d:o(function t(s){for(var d=0,n=1;10!==n&&l[n]<=s;++n)d+=.1;var r=d+(s-l[--n])/(l[n+1]-l[n])*.1,c=i(r,e,a);return c>=.001?function(e,t,a,s){for(var l=0;l<4;++l){var d=i(t,a,s);if(0===d)break;t-=(o(t,a,s)-e)/d}return t}(s,r,e,a):0===c?r:function(e,t,i,a,s){var l,d,n=0;do(l=o(d=t+(i-t)/2,a,s)-e)>0?i=d:t=d;while(Math.abs(l)>1e-7&&++n<10);return d}(s,d,d+.1,e,a)}(d),t,s)}}}}(),tS=(tP={linear:function(){return function(e){return e}}},tA={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=t$(e,1,10),i=t$(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){tA[e]=function(){return function(e){return Math.pow(e,t+2)}}}),Object.keys(tA).forEach(function(e){var t=tA[e];tP["easeIn"+e]=t,tP["easeOut"+e]=function(e,o){return function(i){return 1-t(e,o)(1-i)}},tP["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}}}),tP);function tT(e,t){if(t_.fnc(e))return e;var o=e.split("(")[0],i=tS[o],a=tx(e);switch(o){case"spring":return tD(e,t);case"cubicBezier":return tk(tE,a);case"steps":return tk(tB,a);default:return tk(i,a)}}function tO(e){try{return document.querySelectorAll(e)}catch(t){return}}function tL(e,t){for(var o=e.length,i=arguments.length>=2?arguments[1]:void 0,a=[],s=0;s<o;s++)if(s in e){var l=e[s];t.call(i,l,s,e)&&a.push(l)}return a}function tI(e){return e.reduce(function(e,t){return e.concat(t_.arr(t)?tI(t):t)},[])}function t0(e){return t_.arr(e)?e:(t_.str(e)&&(e=tO(e)||e),e instanceof NodeList||e instanceof HTMLCollection?[].slice.call(e):[e])}function tW(e,t){return e.some(function(e){return e===t})}function tN(e){var t={};for(var o in e)t[o]=e[o];return t}function tF(e,t){var o=tN(e);for(var i in e)o[i]=t.hasOwnProperty(i)?t[i]:e[i];return o}function tM(e,t){var o=tN(e);for(var i in t)o[i]=t_.und(e[i])?t[i]:e[i];return o}function t1(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 tU(e,t){return t_.fnc(e)?e(t.target,t.id,t.total):e}function tj(e,t){return e.getAttribute(t)}function tH(e,t,o){if(tW([o,"deg","rad","turn"],t1(t)))return t;var i=ty.CSS[t+o];if(!t_.und(i))return i;var a=document.createElement(e.tagName),s=e.parentNode&&e.parentNode!==document?e.parentNode:document.body;s.appendChild(a),a.style.position="absolute",a.style.width=100+o;var l=100/a.offsetWidth;s.removeChild(a);var d=l*parseFloat(t);return ty.CSS[t+o]=d,d}function t3(e,t,o){if(t in e.style){var i=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),a=e.style[t]||getComputedStyle(e).getPropertyValue(i)||"0";return o?tH(e,a,o):a}}function tz(e,t){return t_.dom(e)&&!t_.inp(e)&&(tj(e,t)||t_.svg(e)&&e[t])?"attribute":t_.dom(e)&&tW(tw,t)?"transform":t_.dom(e)&&"transform"!==t&&t3(e,t)?"css":null!=e[t]?"object":void 0}function tR(e){if(t_.dom(e)){for(var t,o=e.style.transform||"",i=/(\w+)\(([^)]*)\)/g,a=new Map;t=i.exec(o);)a.set(t[1],t[2]);return a}}function tq(e,t,o,i){switch(tz(e,t)){case"transform":var a,s,l,d,n,r,c;return a=e,l=i,d=o,r=tC(s=t,"scale")?1:0+(tC(n=s,"translate")||"perspective"===n?"px":tC(n,"rotate")||tC(n,"skew")?"deg":void 0),c=tR(a).get(s)||r,l&&(l.transforms.list.set(s,c),l.transforms.last=s),d?tH(a,c,d):c;case"css":return t3(e,t,o);case"attribute":return tj(e,t);default:return e[t]||0}}function tX(e,t){var o=/^(\*=|\+=|-=)/.exec(e);if(!o)return e;var i=t1(e)||0,a=parseFloat(t),s=parseFloat(e.replace(o[0],""));switch(o[0][0]){case"+":return a+s+i;case"-":return a-s+i;case"*":return a*s+i}}function t4(e,t){if(t_.col(e))return o=e,t_.rgb(o)?(a=/rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(i=o))?"rgba("+a[1]+",1)":i:t_.hex(o)?(s=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((l=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(s))[1],16)+","+parseInt(l[2],16)+","+parseInt(l[3],16)+",1)"):t_.hsl(o)?function(e){var t,o,i,a=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(e)||/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(e),s=parseInt(a[1],10)/360,l=parseInt(a[2],10)/100,d=parseInt(a[3],10)/100,n=a[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==l)t=o=i=d;else{var c=d<.5?d*(1+l):d+l-d*l,u=2*d-c;t=r(u,c,s+1/3),o=r(u,c,s),i=r(u,c,s-1/3)}return"rgba("+255*t+","+255*o+","+255*i+","+n+")"}(o):void 0;if(/\s/g.test(e))return e;var o,i,a,s,l,d=t1(e),n=d?e.substr(0,e.length-d.length):e;return t?n+t:n}function tY(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function t2(e){for(var t,o=e.points,i=0,a=0;a<o.numberOfItems;a++){var s=o.getItem(a);a>0&&(i+=tY(t,s)),t=s}return i}function t6(e){var t,o,i,a;if(e.getTotalLength)return e.getTotalLength();switch(e.tagName.toLowerCase()){case"circle":return 2*Math.PI*tj(e,"r");case"rect":return 2*tj(t=e,"width")+2*tj(t,"height");case"line":return tY({x:tj(o=e,"x1"),y:tj(o,"y1")},{x:tj(o,"x2"),y:tj(o,"y2")});case"polyline":return t2(e);case"polygon":return a=(i=e).points,t2(i)+tY(a.getItem(a.numberOfItems-1),a.getItem(0))}}function t7(e,t){var o=t||{},i=o.el||function(e){for(var t=e.parentNode;t_.svg(t)&&t_.svg(t.parentNode);)t=t.parentNode;return t}(e),a=i.getBoundingClientRect(),s=tj(i,"viewBox"),l=a.width,d=a.height,n=o.viewBox||(s?s.split(" "):[0,0,l,d]);return{el:i,viewBox:n,x:n[0]/1,y:n[1]/1,w:l/n[2],h:d/n[3]}}function t5(e,t){function o(o){return void 0===o&&(o=0),e.el.getPointAtLength(t+o>=1?t+o:0)}var i=t7(e.el,e.svg),a=o(),s=o(-1),l=o(1);switch(e.property){case"x":return(a.x-i.x)*i.w;case"y":return(a.y-i.y)*i.h;case"angle":return 180*Math.atan2(l.y-s.y,l.x-s.x)/Math.PI}}function tK(e,t){var o=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/g,i=t4(t_.pth(e)?e.totalLength:e,t)+"";return{original:i,numbers:i.match(o)?i.match(o).map(Number):[0],strings:t_.str(e)||t?i.split(o):[]}}function tG(e){return tL(e?tI(t_.arr(e)?e.map(t0):t0(e)):[],function(e,t,o){return o.indexOf(e)===t})}function tV(e){var t=tG(e);return t.map(function(e,o){return{target:e,id:o,total:t.length,transforms:{list:tR(e)}}})}function t9(e,t){var o=tN(t);if(/^spring/.test(o.easing)&&(o.duration=tD(o.easing)),t_.arr(e)){var i=e.length;2!==i||t_.obj(e[0])?t_.fnc(t.duration)||(o.duration=t.duration/i):e={value:e}}var a=t_.arr(e)?e:[e];return a.map(function(e,o){var i=t_.obj(e)&&!t_.pth(e)?e:{value:e};return t_.und(i.delay)&&(i.delay=o?0:t.delay),t_.und(i.endDelay)&&(i.endDelay=o===a.length-1?t.endDelay:0),i}).map(function(e){return tM(e,o)})}var tZ={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,a){if(i.list.set(t,o),t===i.last||a){var s="";i.list.forEach(function(e,t){s+=t+"("+e+") "}),e.style.transform=s}}};function tJ(e,t){tV(e).forEach(function(e){for(var o in t){var i=tU(t[o],e),a=e.target,s=t1(i),l=tq(a,o,s,e),d=tX(t4(i,s||t1(l)),l);tZ[tz(a,o)](a,o,d,e.transforms,!0)}})}function tQ(e,t){var o=e.length,i=function(e){return e.timelineOffset?e.timelineOffset:0},a={};return a.duration=o?Math.max.apply(Math,e.map(function(e){return i(e)+e.duration})):t.duration,a.delay=o?Math.min.apply(Math,e.map(function(e){return i(e)+e.delay})):t.delay,a.endDelay=o?a.duration-Math.max.apply(Math,e.map(function(e){return i(e)+e.duration-e.endDelay})):t.endDelay,a}var oe,ot=0,oo=[],oi=[],oa=function(){function e(){oe=requestAnimationFrame(t)}function t(t){var o=oo.length;if(o){for(var i=0;i<o;){var a=oo[i];if(a.paused){var s=oo.indexOf(a);s>-1&&(oo.splice(s,1),o=oo.length)}else a.tick(t);i++}e()}else oe=cancelAnimationFrame(oe)}return e}();function os(e){void 0===e&&(e={});var t,o=0,i=0,a=0,s=0,l=null;function d(e){var t=window.Promise&&new Promise(function(e){return l=e});return e.finished=t,t}var n,r,c,u,p,m,h,f,g,v=(c=tF(tb,n=e),p=function(e,t){var o=[],i=t.keyframes;for(var a in i&&(t=tM(function(e){for(var t=tL(tI(e.map(function(e){return Object.keys(e)})),function(e){return t_.key(e)}).reduce(function(e,t){return 0>e.indexOf(t)&&e.push(t),e},[]),o={},i=function(i){var a=t[i];o[a]=e.map(function(e){var t={};for(var o in e)t_.key(o)?o==a&&(t.value=e[o]):t[o]=e[o];return t})},a=0;a<t.length;a++)i(a);return o}(i),t)),t)t_.key(a)&&o.push({name:a,tweens:t9(t[a],e)});return o}(u=tF(t8,n),n),m=tV(n.targets),r=p,h=tL(tI(m.map(function(e){return r.map(function(t){return function(e,t){var o=tz(e.target,t.name);if(o){var i,a,s,l=(a=e,(i=t).tweens.map(function(e){var t=function(e,t){var o={};for(var i in e){var a=tU(e[i],t);t_.arr(a)&&1===(a=a.map(function(e){return tU(e,t)})).length&&(a=a[0]),o[i]=a}return o.duration=parseFloat(o.duration),o.delay=parseFloat(o.delay),o}(e,a),o=t.value,l=t_.arr(o)?o[1]:o,d=t1(l),n=tq(a.target,i.name,d,a),r=s?s.to.original:n,c=t_.arr(o)?o[0]:r,u=t1(c)||t1(n),p=d||u;return t_.und(l)&&(l=r),t.from=tK(c,p),t.to=tK(tX(l,c),p),t.start=s?s.end:0,t.end=t.start+t.delay+t.duration+t.endDelay,t.easing=tT(t.easing,t.duration),t.isPath=t_.pth(o),t.isColor=t_.col(t.from.original),t.isColor&&(t.round=1),s=t,t})),d=l[l.length-1];return{type:o,property:t.name,animatable:e,tweens:l,duration:d.end,delay:l[0].delay,endDelay:d.endDelay}}}(e,t)})})),function(e){return!t_.und(e)}),f=tQ(h,u),g=ot,ot++,tM(c,{id:g,children:[],animatables:m,animations:h,duration:f.duration,delay:f.delay,endDelay:f.endDelay}));function b(){var e=v.direction;"alternate"!==e&&(v.direction="normal"!==e?"normal":"reverse"),v.reversed=!v.reversed,t.forEach(function(e){return e.reversed=v.reversed})}function w(e){return v.reversed?v.duration-e:e}function y(){o=0,i=w(v.currentTime)*(1/os.speed)}function $(e,t){t&&t.seek(e-t.timelineOffset)}function C(e){for(var t=0,o=v.animations,i=o.length;t<i;){var a=o[t],s=a.animatable,l=a.tweens,d=l.length-1,n=l[d];d&&(n=tL(l,function(t){return e<t.end})[0]||n);for(var r=t$(e-n.start-n.delay,0,n.duration)/n.duration,c=isNaN(r)?1:n.easing(r),u=n.to.strings,p=n.round,m=[],h=n.to.numbers.length,f=void 0,g=0;g<h;g++){var b=void 0,w=n.to.numbers[g],y=n.from.numbers[g]||0;b=n.isPath?t5(n.value,c*w):y+c*(w-y),p&&(n.isColor&&g>2||(b=Math.round(b*p)/p)),m.push(b)}var $=u.length;if($){f=u[0];for(var C=0;C<$;C++){u[C];var k=u[C+1],_=m[C];isNaN(_)||(f+=k?_+k:_+" ")}}else f=m[0];tZ[a.type](s.target,a.property,f,s.transforms),a.currentValue=f,t++}}function k(e){v[e]&&!v.passThrough&&v[e](v)}function _(e){var n=v.duration,r=v.delay,c=n-v.endDelay,u=w(e);v.progress=t$(u/n*100,0,100),v.reversePlayback=u<v.currentTime,t&&function(e){if(v.reversePlayback)for(var o=s;o--;)$(e,t[o]);else for(var i=0;i<s;i++)$(e,t[i])}(u),!v.began&&v.currentTime>0&&(v.began=!0,k("begin")),!v.loopBegan&&v.currentTime>0&&(v.loopBegan=!0,k("loopBegin")),u<=r&&0!==v.currentTime&&C(0),(u>=c&&v.currentTime!==n||!n)&&C(n),u>r&&u<c?(v.changeBegan||(v.changeBegan=!0,v.changeCompleted=!1,k("changeBegin")),k("change"),C(u)):v.changeBegan&&(v.changeCompleted=!0,v.changeBegan=!1,k("changeComplete")),v.currentTime=t$(u,0,n),v.began&&k("update"),e>=n&&(i=0,v.remaining&&!0!==v.remaining&&v.remaining--,v.remaining?(o=a,k("loopComplete"),v.loopBegan=!1,"alternate"===v.direction&&b()):(v.paused=!0,v.completed||(v.completed=!0,k("loopComplete"),k("complete"),!v.passThrough&&"Promise"in window&&(l(),d(v)))))}return d(v),v.reset=function(){var e=v.direction;v.passThrough=!1,v.currentTime=0,v.progress=0,v.paused=!0,v.began=!1,v.loopBegan=!1,v.changeBegan=!1,v.completed=!1,v.changeCompleted=!1,v.reversePlayback=!1,v.reversed="reverse"===e,v.remaining=v.loop,t=v.children;for(var o=s=t.length;o--;)v.children[o].reset();(v.reversed&&!0!==v.loop||"alternate"===e&&1===v.loop)&&v.remaining++,C(v.reversed?v.duration:0)},v.set=function(e,t){return tJ(e,t),v},v.tick=function(e){a=e,o||(o=a),_((a+(i-o))*os.speed)},v.seek=function(e){_(w(e))},v.pause=function(){v.paused=!0,y()},v.play=function(){v.paused&&(v.completed&&v.reset(),v.paused=!1,oo.push(v),y(),oe||oa())},v.reverse=function(){b(),y()},v.restart=function(){v.reset(),v.play()},v.reset(),v.autoplay&&v.play(),v}function ol(e,t){for(var o=t.length;o--;)tW(e,t[o].animatable.target)&&t.splice(o,1)}"undefined"!=typeof document&&document.addEventListener("visibilitychange",function(){document.hidden?(oo.forEach(function(e){return e.pause()}),oi=oo.slice(0),os.running=oo=[]):oi.forEach(function(e){return e.play()})}),os.version="3.1.0",os.speed=1,os.running=oo,os.remove=function(e){for(var t=tG(e),o=oo.length;o--;){var i=oo[o],a=i.animations,s=i.children;ol(t,a);for(var l=s.length;l--;){var d=s[l],n=d.animations;ol(t,n),n.length||d.children.length||s.splice(l,1)}a.length||s.length||i.pause()}},os.get=tq,os.set=tJ,os.convertPx=tH,os.path=function(e,t){var o=t_.str(e)?tO(e)[0]:e,i=t||100;return function(e){return{property:e,el:o,svg:t7(o),totalLength:t6(o)*(i/100)}}},os.setDashoffset=function(e){var t=t6(e);return e.setAttribute("stroke-dasharray",t),t},os.stagger=function(e,t){void 0===t&&(t={});var o=t.direction||"normal",i=t.easing?tT(t.easing):null,a=t.grid,s=t.axis,l=t.from||0,d="first"===l,n="center"===l,r="last"===l,c=t_.arr(e),u=c?parseFloat(e[0]):parseFloat(e),p=c?parseFloat(e[1]):0,m=t1(c?e[1]:e)||0,h=t.start||0+(c?u:0),f=[],g=0;return function(e,t,v){if(d&&(l=0),n&&(l=(v-1)/2),r&&(l=v-1),!f.length){for(var b=0;b<v;b++){if(a){var w=n?(a[0]-1)/2:l%a[0],y=n?(a[1]-1)/2:Math.floor(l/a[0]),$=w-b%a[0],C=y-Math.floor(b/a[0]),k=Math.sqrt($*$+C*C);"x"===s&&(k=-$),"y"===s&&(k=-C),f.push(k)}else f.push(Math.abs(l-b));g=Math.max.apply(Math,f)}i&&(f=f.map(function(e){return i(e/g)*g})),"reverse"===o&&(f=f.map(function(e){return s?e<0?-1*e:-e:Math.abs(g-e)}))}return h+(c?(p-u)/g:u)*(Math.round(100*f[t])/100)+m}},os.timeline=function(e){void 0===e&&(e={});var t=os(e);return t.duration=0,t.add=function(o,i){var a=oo.indexOf(t),s=t.children;function l(e){e.passThrough=!0}a>-1&&oo.splice(a,1);for(var d=0;d<s.length;d++)l(s[d]);var n=tM(o,tF(t8,e));n.targets=n.targets||e.targets;var r=t.duration;n.autoplay=!1,n.direction=t.direction,n.timelineOffset=t_.und(i)?r:tX(i,r),l(t),t.seek(n.timelineOffset);var c=os(n);l(c),s.push(c);var u=tQ(s,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},os.easing=tT,os.penner=tS,os.random=function(e,t){return Math.floor(Math.random()*(t-e+1))+e};var od=os,on=function(){return!LiveComposer.Builder.Flags.panelOpened||(LiveComposer.Builder.UI.shakePanelConfirmButton(),!1)};document.addEventListener("moduleDuplicate",function(e){var t,o;let i=e.detail;if(!on())return!1;i.classList.contains("dslca-action-disabled")||(t=i.closest(".dslc-module-front"),window.dslcDebug&&console.log("dslc_copy_module"),oc(),jQuery(o=t.cloneNode(!0)).appendTo(t.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"),ou(o),window.dslc_generate_code(),od({targets:o,easing:"easeOutExpo",top:0,opacity:1,duration:400,delay:0,endDelay:0,complete:function(e){o.classList.remove("dslca-module-being-edited")}}),window.dslc_show_publish_button())}),document.addEventListener("moduleDelete",function(e){let t=e.detail;if(!on())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"),tm(".dslca-modules"),od({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"),a=jQuery(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).length;if(LiveComposer.Builder.Flags.uiHidden||null!==i&&i.length>0||a>0)return i!=t&&LiveComposer.Builder.UI.shakePanelConfirmButton(),!1;oc(),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"),a=!1;if(i)try{a=JSON.parse(i)}catch(s){console.log("Can't parse copy/paste string into JSON:"),console.log(s)}if(a&&a.module_id===t.dataset.module){let l=t.querySelector(".dslca-module-code").innerText,d=!1;try{d=JSON.parse(l)}catch(n){console.log("Can't parse current module code into JSON:"),console.log(n)}if(d){let r=!1;for(let c in a)c.includes("css_")&&(d[c]=a[c],r=!0);for(let u in d)u.includes("css_")&&(d[u]!==a[u]&&(d[u]=""),r=!0);r&&(d.action="dslc-ajax-add-module",d.dslc="active",d.dslc_module_id=d.module_id,d.dslc_module_instance_id=d.module_instance_id,d.dslc_post_id=d.post_id,o.hasClass("dslca-preload-preset")?d.dslc_preload_preset="enabled":d.dslc_preload_preset="disabled",o.removeClass("dslca-preload-preset"),d.dslc_url_vars=LiveComposer.Utils.get_page_params(),jQuery.post(DSLCAjax.ajaxurl,d,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,a,s,l=o.dataset.dslcModuleSize,d=t.dataset.size;Number(l)!==Number(d)&&(i=o,a=d,window.dslcDebug&&console.log("dslc_module_width_set"),s="dslc-"+a+"-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(s).data("dslc-module-size",a),i.setAttribute("data-dslc-module-size",a),LiveComposer.Utils.update_module_property_raw(i,"dslc_m_size",a),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,a=o.querySelector('[data-edit-id="'+i+'"]'),s="";if(void 0===(s="TEXTAREA"===a.tagName||"INPUT"===a.tagName?a.value:a.innerHTML)&&(s=""),s.trim().length&&(s=s.replace(/<lctextarea/g,"<textarea").replace(/<\/lctextarea/g,"</textarea")),s.includes("%")&&(s=(s=(s=(s=(s=(s=s.replace(/%\(\(%/g,"[")).replace(/%\)\)%/g,"]")).replace(/%\(%/g,"[")).replace(/%\)%/g,"]")).replace(/%\{%/g,"[")).replace(/%\}%/g,"]")),s=s.trim(),"undefined"!=typeof tinymce){var l=tinymce.get("dslcawpeditor");document.getElementById("wp-dslcawpeditor-wrap").classList.contains("tmce-active")?l.setContent(s,{format:"html"}):document.getElementById("dslcawpeditor").value=s,o.classList.contains("dslca-module-being-edited")||o.querySelector(".dslca-module-edit-hook").click(),jQuery(".dslca-wp-editor").show(),a.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 or=()=>{LiveComposer.Builder.PreviewAreaDocument.on("blur",".dslca-editable-content",function(){LiveComposer.Builder.Flags.uiHidden||"simple"!=jQuery(this).data("type")||l(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()),l(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 oc=()=>{let e=LiveComposer.Builder.PreviewAreaWindow.document.querySelector(".dslca-module-being-edited");null!==e&&e.classList.remove("dslca-module-being-edited")},ou=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],a=i.textContent;i.setAttribute("id","#css-for-dslc-module-"+t),a=a.split(o).join("dslc-module-"+t),i.textContent=a,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"),a=jQuery(jQuery("#pseudo-panel").html());jQuery("#wpwrap").append(a);var s={action:"dslc-ajax-display-module-options",dslc:"active"};s.dslc_module_id=e,s.dslc_post_id=jQuery(".dslca-container").data("data-post-id"),s.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,"]")),s[t]=o}),jQuery(".dslca-wp-editor-actions").hide(),jQuery(".dslca-wp-editor-notification").show(),tp();var l=jQuery(".dslca-module-options-front",t).children().clone();LiveComposer.Builder.moduleBackup=l,LiveComposer.Builder.Flags.panelOpened=!0,a.show(),a.addClass("show"),jQuery.post(DSLCAjax.ajaxurl,s,function(e){a.remove(),tm(".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,s=0;s<o;s++)jQuery('.dslca-header .dslca-options-filter-hook[data-section="'+t[s]+'"]').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 op=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),a=t.data("module-id"),s={action:"dslc-ajax-add-module",dslc:"active"};s.dslc_module_id=o,s.dslc_module_instance_id=a,s.dslc_post_id=jQuery(".dslca-container").data("post-id"),t.hasClass("dslca-preload-preset")?s.dslc_preload_preset="enabled":s.dslc_preload_preset="disabled",t.removeClass("dslca-preload-preset"),i.each(function(){var e=jQuery(this),t=e.data("id"),o=e.val();s[t]=o}),s.dslc_url_vars=LiveComposer.Utils.get_page_params(),jQuery.post(DSLCAjax.ajaxurl,s,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 a=new Event("moduleOutputAltered");LiveComposer.Builder.PreviewAreaWindow.dispatchEvent(a),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),a=e.data("module-id"),s={action:"dslc-ajax-add-module",dslc:"active"};s.dslc_module_id=o,s.dslc_module_instance_id=a,s.dslc_post_id=jQuery(".dslca-container").data("post-id"),s.dslc_preload_preset="enabled",e.removeClass("dslca-preload-preset"),i.each(function(){var e=jQuery(this),t=e.data("id"),o=e.val();s[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,s,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 om=()=>{var e,t,o,i=jQuery(".dslca-modules .dslca-section-scroller-content");0==i.length&&(i=[document.createElement("div")]),tu.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 a,s,l=i.item;if(i.preventDefault(),jQuery(l).closest(".dslca-section-scroller-content").length>0)return!1;jQuery(".dslca-options-hovered",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-options-hovered"),e=jQuery(l.parentNode),t=l.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"),a=t,s=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:a,dslc_post_id:jQuery(".dslca-container").data("post-id"),dslc_url_vars:LiveComposer.Utils.get_page_params(),dslc_new_module:!0},function(e){s(e)}),jQuery(l).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")}})},oh=function(e){var t=this;this.section=jQuery(e).closest(".dslc-modules-section"),this.elem=e,this.sortable=tu.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")&&(of(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 oh(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():ow(e()),LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-copy-modules-area-hook",function(e){var o,i,a;if(e.preventDefault(),!t())return!1;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"),a=o.clone().appendTo(i),new oh(a[0]),a.find(".dslca-modules-area-manage").trigger("mouseleave"),a.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);ou(e[0]),jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-module-being-edited"),window.dslc_generate_code(),e.animate({opacity:1},300)}),om(),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"))og(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(){og(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){if(window.dslcDebug&&console.log("dslc_modules_area_width_set"),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("dslc-"+t+"-col").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;of(jQuery(this).closest(".dslc-modules-section").find(".dslc-modules-section-inner"))})});let of=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 <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="'+t+'/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="'+t+'/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="'+t+'/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="'+t+'/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">⬆️ Top</span>\n <span data-valign="middle" class="dslc-popup-option">↕️ Middle</span>\n <span data-valign="bottom" class="dslc-popup-option">⬇️ 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="'+t+'/feather-sprite.svg#x"></use>\n </svg>\n </span>\n </div>\n </div>\n <!-- .dslc-module -->\n </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 oh(t)}),om(),window.dslc_generate_code(),window.dslc_show_publish_button()};function og(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(),tm(".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(),of(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 ov=()=>{jQuery("#dslc-main .dslc-modules-area",LiveComposer.Builder.PreviewAreaDocument).each(function(){"initialized"!==jQuery(this).data("jsinit")&&new oh(this)})},ob=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")&&of(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&&of(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(){})}},o8=()=>{jQuery;var e=function(){return!LiveComposer.Builder.Flags.panelOpened||(LiveComposer.Builder.UI.shakePanelConfirmButton(),!1)};jQuery(".dslc-modules-section",LiveComposer.Builder.PreviewAreaDocument).each(function(){new ob(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(){var e;e=jQuery(o).closest(".dslc-modules-section"),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(),tm(".dslca-modules")),e.trigger("mouseleave").remove(),window.dslc_generate_code(),window.dslc_show_publish_button()}})}),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(){var e;e=jQuery(".dslca-prompt-modal textarea").val(),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){n(),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(),o$(),ov(),om(),window.dslc_generate_code(),window.dslc_show_publish_button()}),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>["+s(jQuery(this).closest(".dslc-modules-section"))+"]</textarea></span>"}))}),LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-copy-modules-section-hook",function(){var t,o,i,a;if(!e())return!1;jQuery(this).hasClass("dslca-action-disabled")||(t=jQuery(this).closest(".dslc-modules-section"),window.dslcDebug&&console.log("dslc_row_copy"),(o=t.clone().appendTo(jQuery("#dslc-main",LiveComposer.Builder.PreviewAreaDocument)))[0].removeAttribute("data-jsinit"),o.find(".dslc-modules-area").each(function(){var e=jQuery(this).index();jQuery(this).data("size",t.find(".dslc-modules-area:eq( "+e+" )").data("size")),this.removeAttribute("data-jsinit")}),new ob(o),o.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);ou(e[0]),o$(),ov(),window.dslc_generate_code(),om(),jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-module-being-edited"),e.animate({opacity:1},300),window.dslc_show_publish_button()}),i=o[0],window.dslcDebug&&console.log("dslc_section_new_id"),a=LiveComposer.Utils.get_unique_id(),i.setAttribute("data-section-id",a),LiveComposer.Utils.update_section_property_raw(i,"section_instance_id",a))}),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"),ow(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,o=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).length,i=jQuery(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).length;if(LiveComposer.Builder.Flags.uiHidden||o>0||i>0)return!1;jQuery(this).hasClass("dslca-action-disabled")||(t=jQuery(this).closest(".dslc-modules-section"),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"),t.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())}),tm(".dslca-modules-section-edit"),LiveComposer.Builder.Flags.panelOpened=!0,tp()),jQuery("body",LiveComposer.Builder.PreviewAreaDocument).addClass("section-editing-in-progress")})},ow=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 oy(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),oy(i.output),e&&e(),t})};function oy(e){var t=jQuery(e);return t.appendTo(LiveComposer.Builder.PreviewAreaDocument.find("#dslc-main")),om(),window.dslc_generate_code(),window.dslc_show_publish_button(),new ob(t),new oh(t.find(".dslc-modules-area").eq(0)[0]),t.find(".dslc-modules-area").addClass("dslc-modules-area-empty dslc-last-col"),t}let o$=()=>{jQuery("#dslc-main .dslc-modules-section",LiveComposer.Builder.PreviewAreaDocument).each(function(){"initialized"!==jQuery(this).data("jsinit")&&new ob(this)})},oC=()=>{o$(),o8(),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())}),tm(".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(),tm(".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)})},ok=()=>{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(),o$(),ov(),om(),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}),d(0,".dslca-modal-templates-import"),LiveComposer.Builder.PreviewAreaWindow.dslc_bg_video(),om(),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){d(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(),a=t.width();if(i<=a)return!1;var s=i-a+10;e=(e=(e=parseInt(o.style.left||0)-e)>=0?0:e)<=-s?-s: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 o_=()=>{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){o_(),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 ox={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],a=e.querySelector('.dslca-module-option-front[data-id="'+t+'"]'),s=i.value;(s=JSON.parse(s))[t]=o,s=JSON.stringify(s),i.value=s,i.innerText=s,a.value=o,a.innerText=o},update_section_property_raw:function(e,t,o){var i=e.getElementsByClassName("dslca-section-code")[0],a=e.querySelector('.dslca-modules-section-settings input[data-id="'+t+'"]'),s=i.value;(s=JSON.parse(s))[t]=o,s=JSON.stringify(s),i.value=s,i.innerText=s,a.setAttribute("value",o),a.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)}),ok(),m(),oC(),new class{constructor(e){this.sortable,this.initSortable(e),this.reactToSortableOnOff()}initSortable(e){this.sortable=tu.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"),om(),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 a=e.getAttribute("data-exportable-content");i="<"+a+">"+e.innerHTML+"</"+a+">"}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,a,s;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()),((a=e).metaKey||a.ctrlKey)&&(LiveComposer.Builder.UI.cmdMode=!0,LiveComposer.Builder.PreviewAreaWindow.document.querySelector("body").classList.add("key-press-cmd")),s=e,LiveComposer.Builder.UI.cmdMode&&(s.metaKey||s.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"))}),o_(),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"),or(),window.LiveComposer.Utils=ox,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 o=new CustomEvent("modalWysiwygConfirm",{detail:e.target});document.dispatchEvent(o)}if(e.target.matches('[data-event="module-confirm"]')){let i=new CustomEvent("moduleConfirm",{detail:e.target});document.dispatchEvent(i)}if(e.target.matches('[data-event="module-cancel"]')){let a=new CustomEvent("moduleCancel",{detail:e.target});document.dispatchEvent(a)}},!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 o=new CustomEvent("moduleDuplicate",{detail:e.target});document.dispatchEvent(o)}if(e.target.matches('[data-event="module-delete"]')){let i=new CustomEvent("moduleDelete",{detail:e.target});document.dispatchEvent(i)}if(e.target.matches(".dslca-change-width-module-options [data-size]")){let a=new CustomEvent("moduleChangeWidth",{detail:e.target});document.dispatchEvent(a)}if(e.target.matches('[data-event="wysiwyg-edit"]')){let s=new CustomEvent("wysiwygEdit",{detail:e.target});document.dispatchEvent(s)}if(e.target.matches('[data-event="module-style-copy"]')){let l=new CustomEvent("copyModuleStyles",{detail:e.target});document.dispatchEvent(l)}if(e.target.matches('[data-event="module-style-paste"]')){let d=new CustomEvent("pasteModuleStyles",{detail:e.target});document.dispatchEvent(d)}},!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
@@ -3,7 +3,7 @@ Contributors: LiveComposer
|
|
3 |
Tags: page builder, landing page builder, frontend page builder, drag and drop page builder, website builder
|
4 |
Requires at least: 4.7
|
5 |
Tested up to: 6.0.2
|
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,6 +58,9 @@ In most of the cases, this is because the homepage is not a real WordPress page,
|
|
58 |
* 🦊 [Check out our WooCommerce Page Builder Extension](https://livecomposerplugin.com/downloads/woocommerce-page-builder/?utm_source=wp-admin&utm_medium=changelog&utm_campaign=woo-integration)
|
59 |
* 👀 [We keep updating and improving our extensions pack](https://livecomposerplugin.com/downloads/extensions/?utm_source=wp-admin&utm_medium=changelog&utm_campaign=add-ons) ACF + CPT + MegaMenu + 9 more add-ons.
|
60 |
|
|
|
|
|
|
|
61 |
= 1.5.21 - Aug 05 2022 =
|
62 |
* 🕷 Removing stylist tab
|
63 |
* 🕷 Thumbail not showing
|
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.22
|
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.22 - Oct 17 2022 =
|
62 |
+
* 🕷 Fix error : JSON Parse error Expected ',' or '}' after property value
|
63 |
+
|
64 |
= 1.5.21 - Aug 05 2022 =
|
65 |
* 🕷 Removing stylist tab
|
66 |
* 🕷 Thumbail not showing
|